@trackunit/react-form-components 0.0.113 → 0.0.115
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 +1 -1
- package/index.esm.js +1 -1
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -471,7 +471,7 @@ const Checkbox = React__namespace.forwardRef((_a, ref) => {
|
|
|
471
471
|
(_b = internalRef === null || internalRef === void 0 ? void 0 : internalRef.current) === null || _b === void 0 ? void 0 : _b.click();
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
|
-
const uuid = rest.id
|
|
474
|
+
const uuid = rest.id;
|
|
475
475
|
return (jsxRuntime.jsxs("label", { "data-testid": dataTestId && `${dataTestId}-container`, htmlFor: uuid, className: cvaCheckboxContainer({ className }), ref: internalRef, onKeyPress: onKeyPress, children: [jsxRuntime.jsx("input", Object.assign({ type: "checkbox", className: cvaCheckboxInput(), checked: !indeterminate && checked, onChange: onChange, disabled: disabled, "data-testid": dataTestId, readOnly: readOnly, "aria-checked": !indeterminate && checked, id: uuid }, rest, { ref: ref })), jsxRuntime.jsx("span", { id: uuid, tabIndex: isReadonly ? -1 : tabIndex, className: cvaCheckbox({
|
|
476
476
|
disabled: isReadonly,
|
|
477
477
|
invalid: isReadonly ? false : isInvalid,
|
package/index.esm.js
CHANGED
|
@@ -445,7 +445,7 @@ const Checkbox = React.forwardRef((_a, ref) => {
|
|
|
445
445
|
(_b = internalRef === null || internalRef === void 0 ? void 0 : internalRef.current) === null || _b === void 0 ? void 0 : _b.click();
|
|
446
446
|
}
|
|
447
447
|
};
|
|
448
|
-
const uuid = rest.id
|
|
448
|
+
const uuid = rest.id;
|
|
449
449
|
return (jsxs("label", { "data-testid": dataTestId && `${dataTestId}-container`, htmlFor: uuid, className: cvaCheckboxContainer({ className }), ref: internalRef, onKeyPress: onKeyPress, children: [jsx$1("input", Object.assign({ type: "checkbox", className: cvaCheckboxInput(), checked: !indeterminate && checked, onChange: onChange, disabled: disabled, "data-testid": dataTestId, readOnly: readOnly, "aria-checked": !indeterminate && checked, id: uuid }, rest, { ref: ref })), jsx$1("span", { id: uuid, tabIndex: isReadonly ? -1 : tabIndex, className: cvaCheckbox({
|
|
450
450
|
disabled: isReadonly,
|
|
451
451
|
invalid: isReadonly ? false : isInvalid,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.115",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@trackunit/css-class-variance-utilities": "0.0.11",
|
|
11
11
|
"@trackunit/i18n-library-translation": "0.0.68",
|
|
12
|
-
"@trackunit/react-components": "0.1.
|
|
12
|
+
"@trackunit/react-components": "0.1.146",
|
|
13
13
|
"date-fns": "2.29.3",
|
|
14
14
|
"libphonenumber-js": "1.10.36",
|
|
15
15
|
"react": "18.2.0",
|