@trackunit/react-form-components 1.14.0 → 1.14.6-alpha-31c8a61f2f9.0
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/index.cjs.js +3 -1
- package/index.esm.js +3 -1
- package/package.json +7 -7
package/index.cjs.js
CHANGED
|
@@ -4082,7 +4082,9 @@ const ToggleSwitch = react.forwardRef(({ onChange, onClick, preventDefaultOnClic
|
|
|
4082
4082
|
const handleKeyPress = e => {
|
|
4083
4083
|
if (e.code === "Enter") {
|
|
4084
4084
|
e.preventDefault();
|
|
4085
|
-
!readOnly
|
|
4085
|
+
if (!readOnly) {
|
|
4086
|
+
inputRef.current?.click();
|
|
4087
|
+
}
|
|
4086
4088
|
}
|
|
4087
4089
|
// Space key is already supported natively by the input element
|
|
4088
4090
|
};
|
package/index.esm.js
CHANGED
|
@@ -4081,7 +4081,9 @@ const ToggleSwitch = forwardRef(({ onChange, onClick, preventDefaultOnClick, cla
|
|
|
4081
4081
|
const handleKeyPress = e => {
|
|
4082
4082
|
if (e.code === "Enter") {
|
|
4083
4083
|
e.preventDefault();
|
|
4084
|
-
!readOnly
|
|
4084
|
+
if (!readOnly) {
|
|
4085
|
+
inputRef.current?.click();
|
|
4086
|
+
}
|
|
4085
4087
|
}
|
|
4086
4088
|
// Space key is already supported natively by the input element
|
|
4087
4089
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "1.14.0",
|
|
3
|
+
"version": "1.14.6-alpha-31c8a61f2f9.0",
|
|
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.0",
|
|
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.33-alpha-31c8a61f2f9.0",
|
|
18
|
+
"@trackunit/react-components": "1.17.4-alpha-31c8a61f2f9.0",
|
|
19
|
+
"@trackunit/ui-icons": "1.11.32-alpha-31c8a61f2f9.0",
|
|
20
|
+
"@trackunit/shared-utils": "1.13.33-alpha-31c8a61f2f9.0",
|
|
21
|
+
"@trackunit/ui-design-tokens": "1.11.33-alpha-31c8a61f2f9.0",
|
|
22
|
+
"@trackunit/i18n-library-translation": "1.12.17-alpha-31c8a61f2f9.0",
|
|
23
23
|
"string-ts": "^2.0.0",
|
|
24
24
|
"@js-temporal/polyfill": "^0.5.1",
|
|
25
25
|
"es-toolkit": "^1.39.10",
|