@trackunit/react-form-components 1.14.9 → 1.14.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.11",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"zod": "^3.23.8",
|
|
15
15
|
"react-hook-form": "7.62.0",
|
|
16
16
|
"tailwind-merge": "^2.0.0",
|
|
17
|
-
"@trackunit/css-class-variance-utilities": "1.11.
|
|
18
|
-
"@trackunit/react-components": "1.17.
|
|
19
|
-
"@trackunit/ui-icons": "1.11.
|
|
20
|
-
"@trackunit/shared-utils": "1.13.
|
|
21
|
-
"@trackunit/ui-design-tokens": "1.11.
|
|
22
|
-
"@trackunit/i18n-library-translation": "1.12.
|
|
17
|
+
"@trackunit/css-class-variance-utilities": "1.11.38",
|
|
18
|
+
"@trackunit/react-components": "1.17.9",
|
|
19
|
+
"@trackunit/ui-icons": "1.11.37",
|
|
20
|
+
"@trackunit/shared-utils": "1.13.38",
|
|
21
|
+
"@trackunit/ui-design-tokens": "1.11.38",
|
|
22
|
+
"@trackunit/i18n-library-translation": "1.12.22",
|
|
23
23
|
"string-ts": "^2.0.0",
|
|
24
24
|
"@js-temporal/polyfill": "^0.5.1",
|
|
25
25
|
"es-toolkit": "^1.39.10",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonProps } from "@trackunit/react-components";
|
|
2
2
|
import { MappedOmit, Size } from "@trackunit/shared-utils";
|
|
3
|
-
import { ChangeEvent, InputHTMLAttributes,
|
|
3
|
+
import { ChangeEvent, InputHTMLAttributes, MouseEventHandler } from "react";
|
|
4
4
|
export interface ToggleSwitchProps extends CommonProps, MappedOmit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "onChange" | "size" | "children"> {
|
|
5
5
|
/**
|
|
6
6
|
* custom onChange event handler.
|
|
@@ -11,7 +11,7 @@ export interface ToggleSwitchProps extends CommonProps, MappedOmit<InputHTMLAttr
|
|
|
11
11
|
*
|
|
12
12
|
* _**Do not**_ pass onClick handlers to trigger the toggle behavior. Use the onChange handler instead.
|
|
13
13
|
*/
|
|
14
|
-
onClick?:
|
|
14
|
+
onClick?: MouseEventHandler<HTMLSpanElement>;
|
|
15
15
|
/**
|
|
16
16
|
* Whether the ToggleSwitch is toggled(active) or not.
|
|
17
17
|
*/
|