@trackunit/react-form-components 1.3.21 → 1.3.22
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 +4 -4
package/index.cjs.js
CHANGED
|
@@ -679,10 +679,10 @@ const Checkbox = React.forwardRef(({ className, dataTestId = "checkbox", onChang
|
|
|
679
679
|
disabled: isReadonly,
|
|
680
680
|
invalid: isReadonly ? false : isInvalid,
|
|
681
681
|
state: indeterminate ? "indeterminate" : checked ? "selected" : "deselected",
|
|
682
|
-
}), id: uuid, tabIndex: isReadonly ? -1 : tabIndex, children: icon })] }), jsxRuntime.jsx(reactComponents.Tooltip, { className: cvaBinaryControlLabelTooltip(), disabled: !isLabelCutOff, label: label, placement: "top", children: jsxRuntime.jsx("span", { className: cvaLabel({
|
|
682
|
+
}), id: uuid, tabIndex: isReadonly ? -1 : tabIndex, children: icon })] }), label ? (jsxRuntime.jsx(reactComponents.Tooltip, { className: cvaBinaryControlLabelTooltip(), disabled: !isLabelCutOff, label: label, placement: "top", children: jsxRuntime.jsx("span", { className: cvaLabel({
|
|
683
683
|
invalid: isReadonly ? false : isInvalid,
|
|
684
684
|
disabled: isReadonly,
|
|
685
|
-
}), id: `checkbox-label-${label}`, ref: labelRef, children: label }) }, "tooltip-" + rest.name), suffix ? (jsxRuntime.jsx("div", { className: cvaBinaryControlSuffixContainer(), "data-testid": dataTestId ? `${dataTestId}-suffix-container` : undefined, children: suffix })) : null] }));
|
|
685
|
+
}), id: `checkbox-label-${label}`, ref: labelRef, children: label }) }, "tooltip-" + rest.name)) : null, suffix ? (jsxRuntime.jsx("div", { className: cvaBinaryControlSuffixContainer(), "data-testid": dataTestId ? `${dataTestId}-suffix-container` : undefined, children: suffix })) : null] }));
|
|
686
686
|
});
|
|
687
687
|
Checkbox.displayName = "Checkbox";
|
|
688
688
|
|
package/index.esm.js
CHANGED
|
@@ -660,10 +660,10 @@ const Checkbox = forwardRef(({ className, dataTestId = "checkbox", onChange, che
|
|
|
660
660
|
disabled: isReadonly,
|
|
661
661
|
invalid: isReadonly ? false : isInvalid,
|
|
662
662
|
state: indeterminate ? "indeterminate" : checked ? "selected" : "deselected",
|
|
663
|
-
}), id: uuid, tabIndex: isReadonly ? -1 : tabIndex, children: icon })] }), jsx(Tooltip, { className: cvaBinaryControlLabelTooltip(), disabled: !isLabelCutOff, label: label, placement: "top", children: jsx("span", { className: cvaLabel({
|
|
663
|
+
}), id: uuid, tabIndex: isReadonly ? -1 : tabIndex, children: icon })] }), label ? (jsx(Tooltip, { className: cvaBinaryControlLabelTooltip(), disabled: !isLabelCutOff, label: label, placement: "top", children: jsx("span", { className: cvaLabel({
|
|
664
664
|
invalid: isReadonly ? false : isInvalid,
|
|
665
665
|
disabled: isReadonly,
|
|
666
|
-
}), id: `checkbox-label-${label}`, ref: labelRef, children: label }) }, "tooltip-" + rest.name), suffix ? (jsx("div", { className: cvaBinaryControlSuffixContainer(), "data-testid": dataTestId ? `${dataTestId}-suffix-container` : undefined, children: suffix })) : null] }));
|
|
666
|
+
}), id: `checkbox-label-${label}`, ref: labelRef, children: label }) }, "tooltip-" + rest.name)) : null, suffix ? (jsx("div", { className: cvaBinaryControlSuffixContainer(), "data-testid": dataTestId ? `${dataTestId}-suffix-container` : undefined, children: suffix })) : null] }));
|
|
667
667
|
});
|
|
668
668
|
Checkbox.displayName = "Checkbox";
|
|
669
669
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.22",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -9,10 +9,8 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"react": "18.3.1",
|
|
11
11
|
"usehooks-ts": "^3.1.0",
|
|
12
|
-
"react-select": "^5.8.0",
|
|
13
12
|
"@js-temporal/polyfill": "^0.4.4",
|
|
14
13
|
"libphonenumber-js": "1.10.36",
|
|
15
|
-
"@testing-library/react": "15.0.6",
|
|
16
14
|
"jest-fetch-mock": "^3.0.3",
|
|
17
15
|
"zod": "3.22.4",
|
|
18
16
|
"react-hook-form": "7.53.1",
|
|
@@ -23,7 +21,9 @@
|
|
|
23
21
|
"@trackunit/shared-utils": "1.5.18",
|
|
24
22
|
"@trackunit/ui-design-tokens": "1.3.18",
|
|
25
23
|
"@trackunit/i18n-library-translation": "1.3.19",
|
|
26
|
-
"string-ts": "^2.0.0"
|
|
24
|
+
"string-ts": "^2.0.0",
|
|
25
|
+
"react-select": "^5.8.0",
|
|
26
|
+
"@testing-library/react": "15.0.6"
|
|
27
27
|
},
|
|
28
28
|
"module": "./index.esm.js",
|
|
29
29
|
"main": "./index.cjs.js",
|