@trackunit/react-form-components 2.16.1 → 2.16.2

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 CHANGED
@@ -4257,7 +4257,7 @@ const PasswordField = ({ id, label, tip, helpText, helpAddon, errorMessage, isIn
4257
4257
  const handleChange = react.useCallback((event) => {
4258
4258
  onChange?.(event);
4259
4259
  }, [onChange]);
4260
- return (jsxRuntime.jsx(FormGroup, { "data-testid": dataTestId ? `${dataTestId}-FormGroup` : undefined, helpAddon: helpAddon, helpText: (renderAsInvalid && errorMessage) || helpText, htmlFor: htmlFor, isInvalid: renderAsInvalid, label: label, required: required ? !(Boolean(rest.disabled) || Boolean(rest.readOnly)) : false, tip: tip, children: jsxRuntime.jsx(PasswordBaseInput, { ...rest, "aria-labelledby": `${htmlFor}-label`, className: className, "data-testid": dataTestId, disabled: rest.readOnly, id: htmlFor, isInvalid: renderAsInvalid, maxLength: maxLength, onChange: handleChange, ref: ref, required: required, value: value }) }));
4260
+ return (jsxRuntime.jsx(FormGroup, { "data-testid": dataTestId ? `${dataTestId}-FormGroup` : undefined, helpAddon: helpAddon, helpText: (renderAsInvalid && errorMessage) || helpText, htmlFor: htmlFor, isInvalid: renderAsInvalid, label: label, required: required ? !(Boolean(rest.disabled) || Boolean(rest.readOnly)) : false, tip: tip, children: jsxRuntime.jsx(PasswordBaseInput, { ...rest, "aria-labelledby": `${htmlFor}-label`, className: className, "data-testid": dataTestId, id: htmlFor, isInvalid: renderAsInvalid, maxLength: maxLength, onChange: handleChange, ref: ref, required: required, value: value }) }));
4261
4261
  };
4262
4262
  PasswordField.displayName = "PasswordField";
4263
4263
 
package/index.esm.js CHANGED
@@ -4256,7 +4256,7 @@ const PasswordField = ({ id, label, tip, helpText, helpAddon, errorMessage, isIn
4256
4256
  const handleChange = useCallback((event) => {
4257
4257
  onChange?.(event);
4258
4258
  }, [onChange]);
4259
- return (jsx(FormGroup, { "data-testid": dataTestId ? `${dataTestId}-FormGroup` : undefined, helpAddon: helpAddon, helpText: (renderAsInvalid && errorMessage) || helpText, htmlFor: htmlFor, isInvalid: renderAsInvalid, label: label, required: required ? !(Boolean(rest.disabled) || Boolean(rest.readOnly)) : false, tip: tip, children: jsx(PasswordBaseInput, { ...rest, "aria-labelledby": `${htmlFor}-label`, className: className, "data-testid": dataTestId, disabled: rest.readOnly, id: htmlFor, isInvalid: renderAsInvalid, maxLength: maxLength, onChange: handleChange, ref: ref, required: required, value: value }) }));
4259
+ return (jsx(FormGroup, { "data-testid": dataTestId ? `${dataTestId}-FormGroup` : undefined, helpAddon: helpAddon, helpText: (renderAsInvalid && errorMessage) || helpText, htmlFor: htmlFor, isInvalid: renderAsInvalid, label: label, required: required ? !(Boolean(rest.disabled) || Boolean(rest.readOnly)) : false, tip: tip, children: jsx(PasswordBaseInput, { ...rest, "aria-labelledby": `${htmlFor}-label`, className: className, "data-testid": dataTestId, id: htmlFor, isInvalid: renderAsInvalid, maxLength: maxLength, onChange: handleChange, ref: ref, required: required, value: value }) }));
4260
4260
  };
4261
4261
  PasswordField.displayName = "PasswordField";
4262
4262
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-form-components",
3
- "version": "2.16.1",
3
+ "version": "2.16.2",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "migrations": "./migrations.json",
@@ -10,17 +10,17 @@
10
10
  "dependencies": {
11
11
  "react-calendar": "^6.0.1",
12
12
  "react-select": "^5.10.2",
13
- "@trackunit/date-and-time-utils": "1.20.9",
13
+ "@trackunit/date-and-time-utils": "1.20.10",
14
14
  "usehooks-ts": "^3.1.0",
15
15
  "libphonenumber-js": "^1.13.11",
16
16
  "zod": "^3.25.76",
17
17
  "tailwind-merge": "^3.7.0",
18
- "@trackunit/css-class-variance-utilities": "2.6.9",
19
- "@trackunit/react-components": "5.0.0",
20
- "@trackunit/ui-icons": "1.20.9",
21
- "@trackunit/shared-utils": "1.22.9",
22
- "@trackunit/ui-design-tokens": "1.21.9",
23
- "@trackunit/i18n-library-translation": "2.13.1",
18
+ "@trackunit/css-class-variance-utilities": "2.6.10",
19
+ "@trackunit/react-components": "5.0.1",
20
+ "@trackunit/ui-icons": "1.20.10",
21
+ "@trackunit/shared-utils": "1.22.10",
22
+ "@trackunit/ui-design-tokens": "1.21.10",
23
+ "@trackunit/i18n-library-translation": "2.13.2",
24
24
  "string-ts": "^2.0.0",
25
25
  "es-toolkit": "^1.52.0"
26
26
  },