diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml index 42a8bf9e..1fb7184d 100644 --- a/.github/workflows/scala.yml +++ b/.github/workflows/scala.yml @@ -12,6 +12,8 @@ jobs: uses: olafurpg/setup-scala@v2 with: java-version: 1.8 + - name: version + run: node --version - name: Checking your code format run: csbt scalafmtCheckAll - name: Run tests diff --git a/.scalafmt.conf b/.scalafmt.conf index 00e03164..5ac7d31c 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -21,6 +21,8 @@ spaces.inImportCurlyBraces = true continuationIndent.defnSite = 2 +docstrings.style = Asterisk + rewrite.neverInfix.excludeFilters = [until to by diff --git a/build.sbt b/build.sbt index 1e9ceb08..4018aa3f 100644 --- a/build.sbt +++ b/build.sbt @@ -103,6 +103,7 @@ lazy val demo = "react" -> reactJS, "react-dom" -> reactJS, "fomantic-ui-less" -> FUILess, + "create-react-context" -> "0.3.0", "react-semantic-toasts" -> Toasts ), // don't publish the demo @@ -120,16 +121,16 @@ lazy val facade = .settings(commonSettings: _*) .settings( name := "react-semantic-ui", - version in webpack := "4.43.0", + version in webpack := "4.44.1", version in startWebpackDevServer := "3.11.0", - version in installJsdom := "16.2.2", + version in installJsdom := "16.4.0", // Requires the DOM for tests requireJsDomEnv in Test := true, // Remove the following when a new scalajs-bundler is released. // See https://github.com/scalacenter/scalajs-bundler/issues/332 - Test / jsEnv := new build.JSDOMNodeJSEnv( - build.JSDOMNodeJSEnv.Config((Test / installJsdom).value) - ), + // Test / jsEnv := new build.JSDOMNodeJSEnv( + // build.JSDOMNodeJSEnv.Config((Test / installJsdom).value) + // ), // Compile tests to JS using fast-optimisation // scalaJSStage in Test := FastOptStage, npmDependencies in Compile ++= Seq( @@ -142,9 +143,9 @@ lazy val facade = "com.github.japgolly.scalajs-react" %%% "core" % scalaJsReact, "com.github.japgolly.scalajs-react" %%% "extra" % scalaJsReact, "com.github.japgolly.scalajs-react" %%% "test" % scalaJsReact % Test, - "io.github.cquiroz.react" %%% "common" % "0.9.7", - "com.lihaoyi" %%% "utest" % "0.7.4" % Test, - "org.typelevel" %%% "cats-core" % "2.1.1" % Test + "io.github.cquiroz.react" %%% "common" % "0.9.8", + "com.lihaoyi" %%% "utest" % "0.7.5" % Test, + "org.typelevel" %%% "cats-core" % "2.2.0" % Test ), webpackConfigFile in Test := Some(baseDirectory.value / "test.webpack.config.js"), testFrameworks += new TestFramework("utest.runner.Framework") diff --git a/demo/yarn.lock b/demo/yarn.lock index 974f36eb..0f21c8a9 100644 --- a/demo/yarn.lock +++ b/demo/yarn.lock @@ -8,6 +8,13 @@ dependencies: regenerator-runtime "^0.12.0" +"@babel/runtime@^7.10.5": + version "7.11.2" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.11.2.tgz#f549c13c754cc40b87644b9fa9f09a6a95fe0736" + integrity sha512-TeWkU52so0mPtDcaCTxNBI/IHiz0pZgr8VEFqXFtZWpYD08ZB6FaSwVAS8MKRQAP3bYKiVjwysOJgMFY28o6Tw== + dependencies: + regenerator-runtime "^0.13.4" + "@babel/runtime@^7.7.2": version "7.9.6" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.9.6.tgz#a9102eb5cadedf3f31d08a9ecf294af7827ea29f" @@ -1275,10 +1282,6 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" -classnames@^2.2.6: - version "2.2.6" - resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce" - clean-css@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.3.tgz#507b5de7d97b48ee53d84adb0160ff6216380f78" @@ -1330,6 +1333,11 @@ cloneable-readable@^1.0.0: process-nextick-args "^2.0.0" readable-stream "^2.3.5" +clsx@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/clsx/-/clsx-1.1.1.tgz#98b3134f9abbdf23b2663491ace13c5c03a73188" + integrity sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA== + coa@~2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/coa/-/coa-2.0.2.tgz#43f6c21151b4ef2bf57187db0d73de229e3e7ec3" @@ -1563,7 +1571,7 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: safe-buffer "^5.0.1" sha.js "^2.4.8" -create-react-context@^0.3.0: +create-react-context@0.3.0, create-react-context@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/create-react-context/-/create-react-context-0.3.0.tgz#546dede9dc422def0d3fc2fe03afe0bc0f4f7d8c" integrity sha512-dNldIoSuNSvlTJ7slIKC/ZFGKexBMBrrcc+TTe1NdmROnaASuLPvqpwj9v4XS4uXZ8+YPu0sNmShX2rXI5LNsw== @@ -3513,9 +3521,10 @@ jsprim@^1.2.2: json-schema "0.2.3" verror "1.10.0" -keyboard-key@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/keyboard-key/-/keyboard-key-1.0.4.tgz#52d8fa07b7e17757072aa22a67fb4ae85e4c46b0" +keyboard-key@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/keyboard-key/-/keyboard-key-1.1.0.tgz#6f2e8e37fa11475bb1f1d65d5174f1b35653f5b7" + integrity sha512-qkBzPTi3rlAKvX7k0/ub44sqOfXeLc/jcnGGmj5c7BJpU8eDrEVPyhCvNYAaoubbsLm9uGWwQJO1ytQK1a9/dQ== killable@^1.0.1: version "1.0.1" @@ -3682,6 +3691,11 @@ lodash@^4.17.14, lodash@^4.17.15: resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== +lodash@^4.17.19: + version "4.17.20" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" + integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== + loglevel@^1.6.8: version "1.6.8" resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.6.8.tgz#8a25fb75d092230ecd4457270d80b54e28011171" @@ -5244,7 +5258,7 @@ react-is@^16.8.1: version "16.8.6" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16" -react-popper@^1.3.4: +react-popper@^1.3.7: version "1.3.7" resolved "https://registry.yarnpkg.com/react-popper/-/react-popper-1.3.7.tgz#f6a3471362ef1f0d10a4963673789de1baca2324" integrity sha512-nmqYTx7QVjCm3WUZLeuOomna138R1luC4EqkW3hxJUrAe+3eNz3oFCLYdnPwILfn0mX1Ew2c3wctrjlUMYYUww== @@ -5562,21 +5576,21 @@ selfsigned@^1.10.7: dependencies: node-forge "0.9.0" -semantic-ui-react@0.88.2: - version "0.88.2" - resolved "https://registry.yarnpkg.com/semantic-ui-react/-/semantic-ui-react-0.88.2.tgz#3d4b54f8b799769b412435c8531475fd34aa4149" - integrity sha512-+02kN2z8PuA/cMdvDUsHhbJmBzxxgOXVHMFr9XK7zGb0wkW9A6OPQMFokWz7ozlVtKjN6r7zsb+Qvjk/qq1OWw== +semantic-ui-react@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/semantic-ui-react/-/semantic-ui-react-1.2.0.tgz#5bc62003b28701c5b923a0290bd17be43336d031" + integrity sha512-9tNL94nEy16RdupTQNiURyemWUIxtTpQgFimCbOOHRBOe1ApsFz3FWFsrGjv9zFtE7dQMslLYov9BQOelTCVwA== dependencies: - "@babel/runtime" "^7.1.2" + "@babel/runtime" "^7.10.5" "@semantic-ui-react/event-stack" "^3.1.0" "@stardust-ui/react-component-event-listener" "~0.38.0" "@stardust-ui/react-component-ref" "~0.38.0" - classnames "^2.2.6" - keyboard-key "^1.0.4" - lodash "^4.17.15" + clsx "^1.1.1" + keyboard-key "^1.1.0" + lodash "^4.17.19" prop-types "^15.7.2" react-is "^16.8.6" - react-popper "^1.3.4" + react-popper "^1.3.7" shallowequal "^1.1.0" semver@^5.3.0, semver@^5.5.0: diff --git a/facade/src/main/scala/react/semanticui/addons/confirm/Confirm.scala b/facade/src/main/scala/react/semanticui/addons/confirm/Confirm.scala index c8e26116..13a7e2fd 100644 --- a/facade/src/main/scala/react/semanticui/addons/confirm/Confirm.scala +++ b/facade/src/main/scala/react/semanticui/addons/confirm/Confirm.scala @@ -71,19 +71,19 @@ object Confirm { var confirmButton: js.UndefOr[suiraw.SemanticShorthandItemS[Button.ButtonProps]] = js.native /** - * Called when the Modal is closed without clicking confirm. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when the Modal is closed without clicking confirm. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onCancel: js.UndefOr[RawOnCancel] = js.native /** - * Called when the OK button is clicked. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when the OK button is clicked. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onConfirm: js.UndefOr[RawOnCancel] = js.native } diff --git a/facade/src/main/scala/react/semanticui/addons/portal/Portal.scala b/facade/src/main/scala/react/semanticui/addons/portal/Portal.scala index 04714c11..aecf396c 100644 --- a/facade/src/main/scala/react/semanticui/addons/portal/Portal.scala +++ b/facade/src/main/scala/react/semanticui/addons/portal/Portal.scala @@ -72,10 +72,10 @@ object Portal { var closeOnEscape: js.UndefOr[Boolean] = js.undefined /** - * Controls whether or not the portal should close when mousing out of the portal. - * NOTE: This will prevent `closeOnTriggerMouseLeave` when mousing over the - * gap from the trigger to the portal. - */ + * Controls whether or not the portal should close when mousing out of the portal. + * NOTE: This will prevent `closeOnTriggerMouseLeave` when mousing over the + * gap from the trigger to the portal. + */ var closeOnPortalMouseLeave: js.UndefOr[Boolean] = js.undefined /** Controls whether or not the portal should close on blur of the trigger. */ @@ -103,35 +103,35 @@ object Portal { var mouseLeaveDelay: js.UndefOr[JsNumber] = js.undefined /** - * Called when a close event happens - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when a close event happens + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onClose: js.UndefOr[RawOnClose] = js.undefined /** - * Called when the portal is mounted on the DOM - * - * @param {null} - * @param {object} data - All props. - */ + * Called when the portal is mounted on the DOM + * + * @param {null} + * @param {object} data - All props. + */ var onMount: js.UndefOr[RawOnMount] = js.native /** - * Called when an open event happens - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when an open event happens + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onOpen: js.UndefOr[RawOnOpen] = js.undefined /** - * Called when the portal is unmounted from the DOM - * - * @param {null} - * @param {object} data - All props. - */ + * Called when the portal is unmounted from the DOM + * + * @param {null} + * @param {object} data - All props. + */ var onUnmount: js.UndefOr[RawOnUnmount] /** Controls whether or not the portal is displayed. */ diff --git a/facade/src/main/scala/react/semanticui/addons/portal/PortalInner.scala b/facade/src/main/scala/react/semanticui/addons/portal/PortalInner.scala index 35db6183..fd3836bd 100644 --- a/facade/src/main/scala/react/semanticui/addons/portal/PortalInner.scala +++ b/facade/src/main/scala/react/semanticui/addons/portal/PortalInner.scala @@ -49,19 +49,19 @@ object PortalInner { // var mountNode?: any /** - * Called when the PortalInner is mounted on the DOM. - * - * @param {null} - * @param {object} data - All props. - */ + * Called when the PortalInner is mounted on the DOM. + * + * @param {null} + * @param {object} data - All props. + */ var onMount: js.UndefOr[RawOnMount] = js.native /** - * Called when the PortalInner is unmounted from the DOM. - * - * @param {null} - * @param {object} data - All props. - */ + * Called when the PortalInner is unmounted from the DOM. + * + * @param {null} + * @param {object} data - All props. + */ var onUnmount: js.UndefOr[RawOnUnmount] } diff --git a/facade/src/main/scala/react/semanticui/addons/radio/Radio.scala b/facade/src/main/scala/react/semanticui/addons/radio/Radio.scala index 561dbeef..e624ea08 100644 --- a/facade/src/main/scala/react/semanticui/addons/radio/Radio.scala +++ b/facade/src/main/scala/react/semanticui/addons/radio/Radio.scala @@ -97,35 +97,35 @@ object Radio { var name: js.UndefOr[String] = js.native /** - * Called when the user attempts to change the checked state. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and proposed checked/indeterminate state. - */ + * Called when the user attempts to change the checked state. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and proposed checked/indeterminate state. + */ var onChange: js.UndefOr[RawEvent] = js.native /** - * Called when the checkbox or label is clicked. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and current checked/indeterminate state. - */ + * Called when the checkbox or label is clicked. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and current checked/indeterminate state. + */ var onClick: js.UndefOr[RawEvent] = js.native /** - * Called when the user presses down on the mouse. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and current checked/indeterminate state. - */ + * Called when the user presses down on the mouse. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and current checked/indeterminate state. + */ var onMouseDown: js.UndefOr[RawEvent] = js.native /** - * Called when the user releases the mouse. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and current checked/indeterminate state. - */ + * Called when the user releases the mouse. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and current checked/indeterminate state. + */ var onMouseUp: js.UndefOr[RawEvent] = js.native /** Format as a radio element. This means it is an exclusive option. */ diff --git a/facade/src/main/scala/react/semanticui/addons/textarea/TextArea.scala b/facade/src/main/scala/react/semanticui/addons/textarea/TextArea.scala index 7bcf14eb..4fa484e6 100644 --- a/facade/src/main/scala/react/semanticui/addons/textarea/TextArea.scala +++ b/facade/src/main/scala/react/semanticui/addons/textarea/TextArea.scala @@ -45,19 +45,19 @@ object TextArea { var as: js.UndefOr[AsT] = js.native /** - * Called on change. - * - * @param {SyntheticEvent} event - The React SyntheticEvent object - * @param {object} data - All props and the event value. - */ + * Called on change. + * + * @param {SyntheticEvent} event - The React SyntheticEvent object + * @param {object} data - All props and the event value. + */ var onChange: js.UndefOr[RawEvent] = js.undefined /** - * Called on input. - * - * @param {SyntheticEvent} event - The React SyntheticEvent object - * @param {object} data - All props and the event value. - */ + * Called on input. + * + * @param {SyntheticEvent} event - The React SyntheticEvent object + * @param {object} data - All props and the event value. + */ var onInput: js.UndefOr[RawEvent] = js.undefined /** Indicates row count for a TextArea. */ diff --git a/facade/src/main/scala/react/semanticui/collections/form/FormButton.scala b/facade/src/main/scala/react/semanticui/collections/form/FormButton.scala index 1a5ef67b..708e237c 100644 --- a/facade/src/main/scala/react/semanticui/collections/form/FormButton.scala +++ b/facade/src/main/scala/react/semanticui/collections/form/FormButton.scala @@ -110,10 +110,10 @@ object FormButton { js.undefined /** - * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). - * Extra FormField props are passed to the control component. - * Mutually exclusive with children. - */ + * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). + * Extra FormField props are passed to the control component. + * Mutually exclusive with children. + */ // control?: any var control: js.UndefOr[String] diff --git a/facade/src/main/scala/react/semanticui/collections/form/FormCheckbox.scala b/facade/src/main/scala/react/semanticui/collections/form/FormCheckbox.scala index 34e034f9..bff3622d 100644 --- a/facade/src/main/scala/react/semanticui/collections/form/FormCheckbox.scala +++ b/facade/src/main/scala/react/semanticui/collections/form/FormCheckbox.scala @@ -85,10 +85,10 @@ object FormCheckbox { js.undefined /** - * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). - * Extra FormField props are passed to the control component. - * Mutually exclusive with children. - */ + * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). + * Extra FormField props are passed to the control component. + * Mutually exclusive with children. + */ // control?: any var control: js.UndefOr[String] @@ -132,35 +132,35 @@ object FormCheckbox { var name: js.UndefOr[String] = js.native /** - * Called when the user attempts to change the checked state. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and proposed checked/indeterminate state. - */ + * Called when the user attempts to change the checked state. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and proposed checked/indeterminate state. + */ var onChange: js.UndefOr[Checkbox.RawEvent] = js.native /** - * Called when the checkbox or label is clicked. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and current checked/indeterminate state. - */ + * Called when the checkbox or label is clicked. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and current checked/indeterminate state. + */ var onClick: js.UndefOr[Checkbox.RawEvent] = js.native /** - * Called when the user presses down on the mouse. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and current checked/indeterminate state. - */ + * Called when the user presses down on the mouse. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and current checked/indeterminate state. + */ var onMouseDown: js.UndefOr[Checkbox.RawEvent] = js.native /** - * Called when the user releases the mouse. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and current checked/indeterminate state. - */ + * Called when the user releases the mouse. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and current checked/indeterminate state. + */ var onMouseUp: js.UndefOr[Checkbox.RawEvent] = js.native /** Format as a radio element. This means it is an exclusive option. */ diff --git a/facade/src/main/scala/react/semanticui/collections/form/FormDropdown.scala b/facade/src/main/scala/react/semanticui/collections/form/FormDropdown.scala index f92bacb0..720f47b0 100644 --- a/facade/src/main/scala/react/semanticui/collections/form/FormDropdown.scala +++ b/facade/src/main/scala/react/semanticui/collections/form/FormDropdown.scala @@ -132,10 +132,10 @@ object FormDropdown { js.undefined /** - * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). - * Extra FormDropdown props are passed to the control component. - * Mutually exclusive with children. - */ + * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). + * Extra FormDropdown props are passed to the control component. + * Mutually exclusive with children. + */ // control?: any var control: js.UndefOr[String] @@ -158,9 +158,9 @@ object FormDropdown { var additionPosition: js.UndefOr[String] /** - * Allow user additions to the list of options (boolean). - * Requires the use of `selection`, `options` and `search`. - */ + * Allow user additions to the list of options (boolean). + * Requires the use of `selection`, `options` and `search`. + */ var allowAdditions: js.UndefOr[Boolean] = js.native /** A Dropdown can reduce its complexity. */ @@ -182,10 +182,10 @@ object FormDropdown { var closeOnEscape: js.UndefOr[Boolean] = js.native /** - * Whether or not the menu should close when a value is selected from the dropdown. - * By default, multiple selection dropdowns will remain open on change, while single - * selection dropdowns will close on change. - */ + * Whether or not the menu should close when a value is selected from the dropdown. + * By default, multiple selection dropdowns will remain open on change, while single + * selection dropdowns will close on change. + */ var closeOnChange: js.UndefOr[Boolean] = js.native /** A compact dropdown has no minimum width. */ @@ -255,83 +255,83 @@ object FormDropdown { var noResultsMessage: js.UndefOr[React.Node] = js.native /** - * Called when a user adds a new item. Use this to update the options list. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and the new item's value. - */ + * Called when a user adds a new item. Use this to update the options list. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and the new item's value. + */ var onAddItem: js.UndefOr[Dropdown.RawOnAddItem] = js.native /** - * Called on blur. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called on blur. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onBlur: js.UndefOr[Dropdown.RawOnBlur] = js.native /** - * Called when the user attempts to change the value. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and proposed value. - */ + * Called when the user attempts to change the value. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and proposed value. + */ var onChange: js.UndefOr[FormDropdown.RawOnChange] = js.undefined /** - * Called on click. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called on click. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onClick: js.UndefOr[Dropdown.RawOnClick] /** - * Called when a close event happens. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when a close event happens. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onClose: js.UndefOr[Dropdown.RawOnClose] = js.undefined /** - * Called on focus. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called on focus. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onFocus: js.UndefOr[Dropdown.RawOnFocus] = js.undefined /** - * Called when a multi-select label is clicked. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All label props. - */ + * Called when a multi-select label is clicked. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All label props. + */ var onLabelClick: js.UndefOr[Dropdown.RawOnLabelClick] = js.undefined /** - * Called on mousedown. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called on mousedown. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onMouseDown: js.UndefOr[Dropdown.RawOnMouseDown] = js.undefined /** - * Called when an open event happens. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when an open event happens. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onOpen: js.UndefOr[Dropdown.RawOnOpen] = js.undefined /** - * Called on search input change. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props, includes current value of searchQuery. - */ + * Called on search input change. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props, includes current value of searchQuery. + */ var onSearchChange: js.UndefOr[Dropdown.RawOnSearchChange] = js.undefined /** Controls whether or not the dropdown menu is displayed. */ @@ -350,23 +350,23 @@ object FormDropdown { var pointing: js.UndefOr[Boolean | String] = js.native /** - * Mapped over the active items and returns shorthand for the active item Labels. - * Only applies to `multiple` Dropdowns. - * - * @param {object} item - A currently active dropdown item. - * @param {number} index - The current index. - * @param {props} defaultLabelProps - The default props for an active item Label. - * @return {*} Shorthand for a Label. - */ + * Mapped over the active items and returns shorthand for the active item Labels. + * Only applies to `multiple` Dropdowns. + * + * @param {object} item - A currently active dropdown item. + * @param {number} index - The current index. + * @param {props} defaultLabelProps - The default props for an active item Label. + * @return {*} Shorthand for a Label. + */ var renderLabel: js.UndefOr[Dropdown.RawRenderLabel] = js.native /** A dropdown can have its menu scroll. */ var scrolling: js.UndefOr[Boolean] = js.native /** - * A selection dropdown can allow a user to search through a large list of choices. - * Pass a function here to replace the default search. - */ + * A selection dropdown can allow a user to search through a large list of choices. + * Pass a function here to replace the default search. + */ var search: js.UndefOr[Boolean | Dropdown.RawSearchFunction] = js.native /** A shorthand for a search input. */ @@ -406,9 +406,9 @@ object FormDropdown { var upward: js.UndefOr[Boolean] = js.native /** - * A dropdown will go to the last element when ArrowUp is pressed on the first, - * or go to the first when ArrowDown is pressed on the last( aka infinite selection ) - */ + * A dropdown will go to the last element when ArrowUp is pressed on the first, + * or go to the first when ArrowDown is pressed on the last( aka infinite selection ) + */ var wrapSelection: js.UndefOr[Boolean] = js.native } diff --git a/facade/src/main/scala/react/semanticui/collections/form/FormField.scala b/facade/src/main/scala/react/semanticui/collections/form/FormField.scala index 42b99bd7..15310978 100644 --- a/facade/src/main/scala/react/semanticui/collections/form/FormField.scala +++ b/facade/src/main/scala/react/semanticui/collections/form/FormField.scala @@ -56,10 +56,10 @@ object FormField { js.undefined /** - * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). - * Extra FormField props are passed to the control component. - * Mutually exclusive with children. - */ + * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). + * Extra FormField props are passed to the control component. + * Mutually exclusive with children. + */ // control?: any var control: js.UndefOr[String] diff --git a/facade/src/main/scala/react/semanticui/collections/form/FormInput.scala b/facade/src/main/scala/react/semanticui/collections/form/FormInput.scala index 646c760e..48396e51 100644 --- a/facade/src/main/scala/react/semanticui/collections/form/FormInput.scala +++ b/facade/src/main/scala/react/semanticui/collections/form/FormInput.scala @@ -76,10 +76,10 @@ object FormInput { js.undefined /** - * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). - * Extra FormInput props are passed to the control component. - * Mutually exclusive with children. - */ + * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). + * Extra FormInput props are passed to the control component. + * Mutually exclusive with children. + */ // control?: any var control: js.UndefOr[String] @@ -138,11 +138,11 @@ object FormInput { var loading: js.UndefOr[Boolean] = js.native /** - * Called on change. - * - * @param {ChangeEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and a proposed value. - */ + * Called on change. + * + * @param {ChangeEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and a proposed value. + */ var onChange: js.UndefOr[js.Function1[ReactEventFromInput, Unit]] /** An Input can vary in size. */ diff --git a/facade/src/main/scala/react/semanticui/collections/form/FormTextArea.scala b/facade/src/main/scala/react/semanticui/collections/form/FormTextArea.scala index 7b60eeb1..a5868581 100644 --- a/facade/src/main/scala/react/semanticui/collections/form/FormTextArea.scala +++ b/facade/src/main/scala/react/semanticui/collections/form/FormTextArea.scala @@ -64,10 +64,10 @@ object FormTextArea { js.undefined /** - * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). - * Extra FormTextArea props are passed to the control component. - * Mutually exclusive with children. - */ + * A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). + * Extra FormTextArea props are passed to the control component. + * Mutually exclusive with children. + */ var control: js.UndefOr[String] /** Individual fields may be disabled. */ @@ -92,19 +92,19 @@ object FormTextArea { var width: js.UndefOr[suiraw.SemanticWIDTHS] = js.native // | 'equal' /** - * Called on change. - * - * @param {SyntheticEvent} event - The React SyntheticEvent object - * @param {object} data - All props and the event value. - */ + * Called on change. + * + * @param {SyntheticEvent} event - The React SyntheticEvent object + * @param {object} data - All props and the event value. + */ var onChange: js.UndefOr[TextArea.RawEvent] = js.undefined /** - * Called on input. - * - * @param {SyntheticEvent} event - The React SyntheticEvent object - * @param {object} data - All props and the event value. - */ + * Called on input. + * + * @param {SyntheticEvent} event - The React SyntheticEvent object + * @param {object} data - All props and the event value. + */ var onInput: js.UndefOr[TextArea.RawEvent] = js.undefined /** Indicates row count for a TextArea. */ diff --git a/facade/src/main/scala/react/semanticui/collections/menu/Menu.scala b/facade/src/main/scala/react/semanticui/collections/menu/Menu.scala index 078991a2..a4aed3de 100644 --- a/facade/src/main/scala/react/semanticui/collections/menu/Menu.scala +++ b/facade/src/main/scala/react/semanticui/collections/menu/Menu.scala @@ -107,11 +107,11 @@ object Menu { // items: customPropTypes.collectionShorthand, /** - * onClick handler for MenuItem. Mutually exclusive with children. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All item props. - */ + * onClick handler for MenuItem. Mutually exclusive with children. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All item props. + */ var onItemClick: js.UndefOr[js.Function1[ReactEvent, Unit]] = js.native /** A pagination menu is specially formatted to present links to pages of content. */ diff --git a/facade/src/main/scala/react/semanticui/collections/menu/MenuItem.scala b/facade/src/main/scala/react/semanticui/collections/menu/MenuItem.scala index 89f72f6a..c5b8b821 100644 --- a/facade/src/main/scala/react/semanticui/collections/menu/MenuItem.scala +++ b/facade/src/main/scala/react/semanticui/collections/menu/MenuItem.scala @@ -94,12 +94,12 @@ object MenuItem { var name: js.UndefOr[String] = js.native /** - * Called on click. When passed, the component will render as an `a` - * tag by default instead of a `div`. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called on click. When passed, the component will render as an `a` + * tag by default instead of a `div`. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onClick: js.UndefOr[js.Function1[ReactEvent, Unit]] = js.native /** A menu item can take left or right position. */ diff --git a/facade/src/main/scala/react/semanticui/collections/message/Message.scala b/facade/src/main/scala/react/semanticui/collections/message/Message.scala index c69cfddb..11f778bf 100644 --- a/facade/src/main/scala/react/semanticui/collections/message/Message.scala +++ b/facade/src/main/scala/react/semanticui/collections/message/Message.scala @@ -111,12 +111,12 @@ object Message { var negative: js.UndefOr[Boolean] = js.undefined /** - * A message that the user can choose to hide. - * Called when the user clicks the "x" icon. This also adds the "x" icon. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * A message that the user can choose to hide. + * Called when the user clicks the "x" icon. This also adds the "x" icon. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onDismiss: js.UndefOr[js.Function2[ReactEvent, MessageProps, Unit]] = js.undefined /** A message may be formatted to display a positive message. Same as `success`. */ diff --git a/facade/src/main/scala/react/semanticui/elements/input/Input.scala b/facade/src/main/scala/react/semanticui/elements/input/Input.scala index 40ab36e6..318db7dc 100644 --- a/facade/src/main/scala/react/semanticui/elements/input/Input.scala +++ b/facade/src/main/scala/react/semanticui/elements/input/Input.scala @@ -110,11 +110,11 @@ object Input { var loading: js.UndefOr[Boolean] = js.native /** - * Called on change. - * - * @param {ChangeEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and a proposed value. - */ + * Called on change. + * + * @param {ChangeEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and a proposed value. + */ var onChange: js.UndefOr[js.Function1[ReactEventFromInput, Unit]] /** An Input can vary in size. */ diff --git a/facade/src/main/scala/react/semanticui/elements/list/List.scala b/facade/src/main/scala/react/semanticui/elements/list/List.scala index 5058d9d7..1bee2ef3 100644 --- a/facade/src/main/scala/react/semanticui/elements/list/List.scala +++ b/facade/src/main/scala/react/semanticui/elements/list/List.scala @@ -97,11 +97,11 @@ object List { var link: js.UndefOr[Boolean] = js.native /** - * onClick handler for ListItem. Mutually exclusive with children. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All item props. - */ + * onClick handler for ListItem. Mutually exclusive with children. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All item props. + */ var onItemClick: js.UndefOr[js.Function2[ReactMouseEvent, ListItem.ListItemProps, Unit]] = js.native diff --git a/facade/src/main/scala/react/semanticui/elements/list/ListItem.scala b/facade/src/main/scala/react/semanticui/elements/list/ListItem.scala index 0cea6fa7..95eb9fe9 100644 --- a/facade/src/main/scala/react/semanticui/elements/list/ListItem.scala +++ b/facade/src/main/scala/react/semanticui/elements/list/ListItem.scala @@ -81,11 +81,11 @@ object ListItem { var image: js.UndefOr[suiraw.SemanticShorthandItemS[Image.ImageProps]] = js.native /** - * Called on click. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called on click. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onClick: js.UndefOr[js.Function2[ReactMouseEvent, ListItemProps, Unit]] = js.native /** A value for an ordered list. */ diff --git a/facade/src/main/scala/react/semanticui/modules/checkbox/Checkbox.scala b/facade/src/main/scala/react/semanticui/modules/checkbox/Checkbox.scala index 2607604c..9852c80a 100644 --- a/facade/src/main/scala/react/semanticui/modules/checkbox/Checkbox.scala +++ b/facade/src/main/scala/react/semanticui/modules/checkbox/Checkbox.scala @@ -98,35 +98,35 @@ object Checkbox { var name: js.UndefOr[String] = js.native /** - * Called when the user attempts to change the checked state. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and proposed checked/indeterminate state. - */ + * Called when the user attempts to change the checked state. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and proposed checked/indeterminate state. + */ var onChange: js.UndefOr[RawEvent] = js.native /** - * Called when the checkbox or label is clicked. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and current checked/indeterminate state. - */ + * Called when the checkbox or label is clicked. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and current checked/indeterminate state. + */ var onClick: js.UndefOr[RawEvent] = js.native /** - * Called when the user presses down on the mouse. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and current checked/indeterminate state. - */ + * Called when the user presses down on the mouse. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and current checked/indeterminate state. + */ var onMouseDown: js.UndefOr[RawEvent] = js.native /** - * Called when the user releases the mouse. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and current checked/indeterminate state. - */ + * Called when the user releases the mouse. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and current checked/indeterminate state. + */ var onMouseUp: js.UndefOr[RawEvent] = js.native /** Format as a radio element. This means it is an exclusive option. */ diff --git a/facade/src/main/scala/react/semanticui/modules/dimmer/DimmerInner.scala b/facade/src/main/scala/react/semanticui/modules/dimmer/DimmerInner.scala index e8de30ce..44047a9b 100644 --- a/facade/src/main/scala/react/semanticui/modules/dimmer/DimmerInner.scala +++ b/facade/src/main/scala/react/semanticui/modules/dimmer/DimmerInner.scala @@ -70,19 +70,19 @@ object DimmerInner { var disabled: js.UndefOr[Boolean] = js.native /** - * Called when the dimmer is clicked. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when the dimmer is clicked. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onClick: js.UndefOr[RawOnClick] = js.native /** - * Handles click outside Dimmer's content, but inside Dimmer area. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Handles click outside Dimmer's content, but inside Dimmer area. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onClickOutside: js.UndefOr[RawOnClickOutside] = js.native /** A dimmer can be formatted to have its colors inverted. */ diff --git a/facade/src/main/scala/react/semanticui/modules/dropdown/Dropdown.scala b/facade/src/main/scala/react/semanticui/modules/dropdown/Dropdown.scala index 477a4410..cbb4d90c 100644 --- a/facade/src/main/scala/react/semanticui/modules/dropdown/Dropdown.scala +++ b/facade/src/main/scala/react/semanticui/modules/dropdown/Dropdown.scala @@ -168,9 +168,9 @@ object Dropdown { var additionPosition: js.UndefOr[String] /** - * Allow user additions to the list of options (boolean). - * Requires the use of `selection`, `options` and `search`. - */ + * Allow user additions to the list of options (boolean). + * Requires the use of `selection`, `options` and `search`. + */ var allowAdditions: js.UndefOr[Boolean] = js.native /** A Dropdown can reduce its complexity. */ @@ -195,10 +195,10 @@ object Dropdown { var closeOnEscape: js.UndefOr[Boolean] = js.native /** - * Whether or not the menu should close when a value is selected from the dropdown. - * By default, multiple selection dropdowns will remain open on change, while single - * selection dropdowns will close on change. - */ + * Whether or not the menu should close when a value is selected from the dropdown. + * By default, multiple selection dropdowns will remain open on change, while single + * selection dropdowns will close on change. + */ var closeOnChange: js.UndefOr[Boolean] = js.native /** A compact dropdown has no minimum width. */ @@ -268,83 +268,83 @@ object Dropdown { var noResultsMessage: js.UndefOr[React.Node] = js.native /** - * Called when a user adds a new item. Use this to update the options list. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and the new item's value. - */ + * Called when a user adds a new item. Use this to update the options list. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and the new item's value. + */ var onAddItem: js.UndefOr[RawOnAddItem] = js.native /** - * Called on blur. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called on blur. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onBlur: js.UndefOr[RawOnBlur] = js.native /** - * Called when the user attempts to change the value. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props and proposed value. - */ + * Called when the user attempts to change the value. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props and proposed value. + */ var onChange: js.UndefOr[RawOnChange] = js.undefined /** - * Called on click. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called on click. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onClick: js.UndefOr[RawOnClick] /** - * Called when a close event happens. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when a close event happens. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onClose: js.UndefOr[RawOnClose] = js.undefined /** - * Called on focus. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called on focus. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onFocus: js.UndefOr[RawOnFocus] = js.undefined /** - * Called when a multi-select label is clicked. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All label props. - */ + * Called when a multi-select label is clicked. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All label props. + */ var onLabelClick: js.UndefOr[RawOnLabelClick] = js.undefined /** - * Called on mousedown. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called on mousedown. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onMouseDown: js.UndefOr[RawOnMouseDown] = js.undefined /** - * Called when an open event happens. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when an open event happens. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onOpen: js.UndefOr[RawOnOpen] = js.undefined /** - * Called on search input change. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props, includes current value of searchQuery. - */ + * Called on search input change. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props, includes current value of searchQuery. + */ var onSearchChange: js.UndefOr[RawOnSearchChange] = js.undefined /** Controls whether or not the dropdown menu is displayed. */ @@ -363,23 +363,23 @@ object Dropdown { var pointing: js.UndefOr[Boolean | String] = js.native /** - * Mapped over the active items and returns shorthand for the active item Labels. - * Only applies to `multiple` Dropdowns. - * - * @param {object} item - A currently active dropdown item. - * @param {number} index - The current index. - * @param {props} defaultLabelProps - The default props for an active item Label. - * @return {*} Shorthand for a Label. - */ + * Mapped over the active items and returns shorthand for the active item Labels. + * Only applies to `multiple` Dropdowns. + * + * @param {object} item - A currently active dropdown item. + * @param {number} index - The current index. + * @param {props} defaultLabelProps - The default props for an active item Label. + * @return {*} Shorthand for a Label. + */ var renderLabel: js.UndefOr[RawRenderLabel] = js.native /** A dropdown can have its menu scroll. */ var scrolling: js.UndefOr[Boolean] = js.native /** - * A selection dropdown can allow a user to search through a large list of choices. - * Pass a function here to replace the default search. - */ + * A selection dropdown can allow a user to search through a large list of choices. + * Pass a function here to replace the default search. + */ var search: js.UndefOr[Boolean | RawSearchFunction] = js.native /** A shorthand for a search input. */ @@ -419,9 +419,9 @@ object Dropdown { var upward: js.UndefOr[Boolean] = js.native /** - * A dropdown will go to the last element when ArrowUp is pressed on the first, - * or go to the first when ArrowDown is pressed on the last( aka infinite selection ) - */ + * A dropdown will go to the last element when ArrowUp is pressed on the first, + * or go to the first when ArrowDown is pressed on the last( aka infinite selection ) + */ var wrapSelection: js.UndefOr[Boolean] = js.native } diff --git a/facade/src/main/scala/react/semanticui/modules/dropdown/DropdownItem.scala b/facade/src/main/scala/react/semanticui/modules/dropdown/DropdownItem.scala index 3d2a731a..f0dee0d5 100644 --- a/facade/src/main/scala/react/semanticui/modules/dropdown/DropdownItem.scala +++ b/facade/src/main/scala/react/semanticui/modules/dropdown/DropdownItem.scala @@ -94,17 +94,17 @@ object DropdownItem { var label: js.UndefOr[suiraw.SemanticShorthandItemS[LabelProps]] = js.native /** - * Called on click. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called on click. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onClick: js.UndefOr[js.Function2[ReactMouseEvent, DropdownItemProps, Unit]] = js.native /** - * The item currently selected by keyboard shortcut. - * This is not the active item. - */ + * The item currently selected by keyboard shortcut. + * This is not the active item. + */ var selected: js.UndefOr[Boolean] = js.native /** Display text. */ diff --git a/facade/src/main/scala/react/semanticui/modules/modal/Modal.scala b/facade/src/main/scala/react/semanticui/modules/modal/Modal.scala index dd7e6a84..2e49b31e 100644 --- a/facade/src/main/scala/react/semanticui/modules/modal/Modal.scala +++ b/facade/src/main/scala/react/semanticui/modules/modal/Modal.scala @@ -122,43 +122,43 @@ object Modal { // mountNode?: any /** - * Action onClick handler when using shorthand `actions`. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Action onClick handler when using shorthand `actions`. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onActionClick: js.UndefOr[RawOnActionClick] = js.native /** - * Called when a close event happens. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when a close event happens. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onClose: js.UndefOr[RawOnClose] = js.native /** - * Called when the portal is mounted on the DOM. - * - * @param {null} - * @param {object} data - All props. - */ + * Called when the portal is mounted on the DOM. + * + * @param {null} + * @param {object} data - All props. + */ var onMount: js.UndefOr[RawOnMount] = js.native /** - * Called when an open event happens. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when an open event happens. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onOpen: js.UndefOr[RawOnClose] = js.native /** - * Called when the portal is unmounted from the DOM. - * - * @param {null} - * @param {object} data - All props. - */ + * Called when the portal is unmounted from the DOM. + * + * @param {null} + * @param {object} data - All props. + */ var onUnmount: js.UndefOr[RawOnUnmount] = js.native /** Controls whether or not the Modal is displayed. */ diff --git a/facade/src/main/scala/react/semanticui/modules/modal/ModalActions.scala b/facade/src/main/scala/react/semanticui/modules/modal/ModalActions.scala index 370cf0e1..2a976b4e 100644 --- a/facade/src/main/scala/react/semanticui/modules/modal/ModalActions.scala +++ b/facade/src/main/scala/react/semanticui/modules/modal/ModalActions.scala @@ -58,11 +58,11 @@ object ModalActions { var content: js.UndefOr[suiraw.SemanticShorthandContent] = js.native /** - * onClick handler for an action. Mutually exclusive with children. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All item props. - */ + * onClick handler for an action. Mutually exclusive with children. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All item props. + */ var onActionClick: js.UndefOr[RawOnActionClick] = js.native } diff --git a/facade/src/main/scala/react/semanticui/modules/popup/Popup.scala b/facade/src/main/scala/react/semanticui/modules/popup/Popup.scala index 157ae028..0dcdb909 100644 --- a/facade/src/main/scala/react/semanticui/modules/popup/Popup.scala +++ b/facade/src/main/scala/react/semanticui/modules/popup/Popup.scala @@ -106,48 +106,49 @@ object Popup { /** Invert the colors of the popup */ var inverted: js.UndefOr[Boolean] = js.native - /** Offset value to apply to rendered popup. Accepts the following units: - * - px or unit-less, interpreted as pixels - * - %, percentage relative to the length of the trigger element - * - %p, percentage relative to the length of the popup element - * - vw, CSS viewport width unit - * - vh, CSS viewport height unit - */ + /** + * Offset value to apply to rendered popup. Accepts the following units: + * - px or unit-less, interpreted as pixels + * - %, percentage relative to the length of the trigger element + * - %p, percentage relative to the length of the popup element + * - vw, CSS viewport width unit + * - vh, CSS viewport height unit + */ var offset: js.UndefOr[JsNumber | String] = js.native /** Events triggering the popup. */ var on: js.UndefOr[String | js.Array[String]] = js.native /** - * Called when a close event happens. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when a close event happens. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onClose: js.UndefOr[RawOnClose] = js.native /** - * Called when the portal is mounted on the DOM. - * - * @param {null} - * @param {object} data - All props. - */ + * Called when the portal is mounted on the DOM. + * + * @param {null} + * @param {object} data - All props. + */ // onMount?: (nothing: null, data: PopupProps) => void /** - * Called when an open event happens. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {object} data - All props. - */ + * Called when an open event happens. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {object} data - All props. + */ var onOpen: js.UndefOr[RawOnOpen] = js.native /** - * Called when the portal is unmounted from the DOM. - * - * @param {null} - * @param {object} data - All props. - */ + * Called when the portal is unmounted from the DOM. + * + * @param {null} + * @param {object} data - All props. + */ // onUnmount?: (nothing: null, data: PopupProps) => void /** Disables automatic repositioning of the component, it will always be placed according to the position value. */ diff --git a/facade/src/main/scala/react/semanticui/modules/tab/Tab.scala b/facade/src/main/scala/react/semanticui/modules/tab/Tab.scala index 9effd4c6..90660f01 100644 --- a/facade/src/main/scala/react/semanticui/modules/tab/Tab.scala +++ b/facade/src/main/scala/react/semanticui/modules/tab/Tab.scala @@ -112,27 +112,27 @@ object Tab { var grid: js.UndefOr[Grid.GridProps] /** - * Called on tab change. - * - * @param {SyntheticEvent} event - React's original SyntheticEvent. - * @param {data} data - The proposed new Tab.Pane. - * @param {activeIndex} data.activeIndex - The new proposed activeIndex. - * @param {panes} data.panes - Props of the new proposed active pane. - */ + * Called on tab change. + * + * @param {SyntheticEvent} event - React's original SyntheticEvent. + * @param {data} data - The proposed new Tab.Pane. + * @param {activeIndex} data.activeIndex - The new proposed activeIndex. + * @param {panes} data.panes - Props of the new proposed active pane. + */ var onTabChange: js.UndefOr[RawOnTabChange] /** - * Array of objects describing each Menu.Item and Tab.Pane: - * { - * menuItem: 'Home', - * render: () => Welcome!, - * } - * or - * { - * menuItem: 'Home', - * pane: 'Welcome', - * } - */ + * Array of objects describing each Menu.Item and Tab.Pane: + * { + * menuItem: 'Home', + * render: () => Welcome!, + * } + * or + * { + * menuItem: 'Home', + * pane: 'Welcome', + * } + */ var panes: js.UndefOr[js.Array[RawPane]] = js.native /** A Tab can render only active pane. */ diff --git a/facade/src/main/scala/react/semanticui/views/card/Card.scala b/facade/src/main/scala/react/semanticui/views/card/Card.scala index 8b2d4464..03e5b8b5 100644 --- a/facade/src/main/scala/react/semanticui/views/card/Card.scala +++ b/facade/src/main/scala/react/semanticui/views/card/Card.scala @@ -95,9 +95,9 @@ object Card { var meta: js.UndefOr[suiraw.SemanticShorthandItemS[CardMeta.CardMetaProps]] = js.native /** - * Called on click. When passed, the component renders as an `a` - * tag by default instead of a `div`. - */ + * Called on click. When passed, the component renders as an `a` + * tag by default instead of a `div`. + */ var onClick: js.UndefOr[js.Function2[ReactMouseEvent, CardProps, Unit]] = js.native /** A Card can be formatted to raise above the page. */