@trackunit/react-form-components 1.14.36-alpha-3fb17ca5f15.0 → 1.14.37
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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +7 -7
package/index.cjs.js
CHANGED
|
@@ -3778,7 +3778,7 @@ const FormFieldSelectAdapter = ({ className, "data-testid": dataTestId, helpText
|
|
|
3778
3778
|
const renderAsInvalid = isInvalid || Boolean(errorMessage);
|
|
3779
3779
|
const htmlFor = react.useMemo(() => htmlForProp ?? id ?? "selectField-" + sharedUtils.uuidv4(), [htmlForProp, id]);
|
|
3780
3780
|
const innerRef = react.useRef(null);
|
|
3781
|
-
// eslint-disable-next-line
|
|
3781
|
+
// eslint-disable-next-line @trackunit/no-typescript-assertion, @typescript-eslint/no-non-null-assertion
|
|
3782
3782
|
react.useImperativeHandle(ref, () => innerRef.current, []);
|
|
3783
3783
|
react.useEffect(() => {
|
|
3784
3784
|
if (innerValue === undefined) {
|
|
@@ -3799,7 +3799,7 @@ const FormFieldSelectAdapter = ({ className, "data-testid": dataTestId, helpText
|
|
|
3799
3799
|
// and should not be added as a backup option. Zero (0) is a valid option value, so we allow it.
|
|
3800
3800
|
innerValue !== undefined && innerValue !== "" && !options.find(option => option.value === innerValue)
|
|
3801
3801
|
? // It is safe enough to assert this because the only properties that are used are value and label, and those are present in the TOption type.
|
|
3802
|
-
// eslint-disable-next-line
|
|
3802
|
+
// eslint-disable-next-line @trackunit/no-typescript-assertion
|
|
3803
3803
|
{ value: innerValue, label: String(innerValue) }
|
|
3804
3804
|
: null,
|
|
3805
3805
|
...options,
|
package/index.esm.js
CHANGED
|
@@ -3777,7 +3777,7 @@ const FormFieldSelectAdapter = ({ className, "data-testid": dataTestId, helpText
|
|
|
3777
3777
|
const renderAsInvalid = isInvalid || Boolean(errorMessage);
|
|
3778
3778
|
const htmlFor = useMemo(() => htmlForProp ?? id ?? "selectField-" + uuidv4(), [htmlForProp, id]);
|
|
3779
3779
|
const innerRef = useRef(null);
|
|
3780
|
-
// eslint-disable-next-line
|
|
3780
|
+
// eslint-disable-next-line @trackunit/no-typescript-assertion, @typescript-eslint/no-non-null-assertion
|
|
3781
3781
|
useImperativeHandle(ref, () => innerRef.current, []);
|
|
3782
3782
|
useEffect(() => {
|
|
3783
3783
|
if (innerValue === undefined) {
|
|
@@ -3798,7 +3798,7 @@ const FormFieldSelectAdapter = ({ className, "data-testid": dataTestId, helpText
|
|
|
3798
3798
|
// and should not be added as a backup option. Zero (0) is a valid option value, so we allow it.
|
|
3799
3799
|
innerValue !== undefined && innerValue !== "" && !options.find(option => option.value === innerValue)
|
|
3800
3800
|
? // It is safe enough to assert this because the only properties that are used are value and label, and those are present in the TOption type.
|
|
3801
|
-
// eslint-disable-next-line
|
|
3801
|
+
// eslint-disable-next-line @trackunit/no-typescript-assertion
|
|
3802
3802
|
{ value: innerValue, label: String(innerValue) }
|
|
3803
3803
|
: null,
|
|
3804
3804
|
...options,
|
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.37",
|
|
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.49
|
|
18
|
-
"@trackunit/react-components": "1.17.
|
|
19
|
-
"@trackunit/ui-icons": "1.11.48
|
|
20
|
-
"@trackunit/shared-utils": "1.13.49
|
|
21
|
-
"@trackunit/ui-design-tokens": "1.11.49
|
|
22
|
-
"@trackunit/i18n-library-translation": "1.12.35
|
|
17
|
+
"@trackunit/css-class-variance-utilities": "1.11.49",
|
|
18
|
+
"@trackunit/react-components": "1.17.34",
|
|
19
|
+
"@trackunit/ui-icons": "1.11.48",
|
|
20
|
+
"@trackunit/shared-utils": "1.13.49",
|
|
21
|
+
"@trackunit/ui-design-tokens": "1.11.49",
|
|
22
|
+
"@trackunit/i18n-library-translation": "1.12.35",
|
|
23
23
|
"string-ts": "^2.0.0",
|
|
24
24
|
"@js-temporal/polyfill": "^0.5.1",
|
|
25
25
|
"es-toolkit": "^1.39.10"
|