@jars-labs/jars-components 1.0.65 → 1.0.67

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/dist/index.js CHANGED
@@ -1090,15 +1090,15 @@ EyeShow.displayName = 'EyeShow';
1090
1090
  *
1091
1091
  */
1092
1092
  var PasswordInput = function (_a) {
1093
- var name = _a.name, label = _a.label, placeholder = _a.placeholder, value = _a.value, onChange = _a.onChange, onBlur = _a.onBlur, error = _a.error, _b = _a.disabled, disabled = _b === undefined ? false : _b, _c = _a.defaultVisible, defaultVisible = _c === undefined ? false : _c;
1093
+ var name = _a.name, label = _a.label, placeholder = _a.placeholder, value = _a.value, onChange = _a.onChange, onBlur = _a.onBlur, error = _a.error, _b = _a.disabled, disabled = _b === undefined ? false : _b, _c = _a.defaultVisible, defaultVisible = _c === undefined ? false : _c, rest = __rest(_a, ["name", "label", "placeholder", "value", "onChange", "onBlur", "error", "disabled", "defaultVisible"]);
1094
1094
  var _d = useState(defaultVisible), showPassword = _d[0], setShowPassword = _d[1];
1095
1095
  var togglePasswordVisibility = function () {
1096
1096
  setShowPassword(function (prevShowPassword) { return !prevShowPassword; });
1097
1097
  };
1098
- return (jsx(Input, { "data-testid": name, name: name, label: label, disabled: disabled, placeholder: placeholder, type: showPassword ? 'text' : 'password', value: value, onChange: onChange, onBlur: onBlur, error: error, rightSection: jsx(Flex, { onClick: !disabled ? togglePasswordVisibility : undefined, align: 'center', style: {
1098
+ return (jsx(Input, __assign({ "data-testid": name, name: name, label: label, disabled: disabled, placeholder: placeholder, type: showPassword ? 'text' : 'password', value: value, onChange: onChange, onBlur: onBlur, error: error, rightSection: jsx(Flex, { onClick: !disabled ? togglePasswordVisibility : undefined, align: 'center', style: {
1099
1099
  cursor: !disabled ? 'pointer' : 'default',
1100
1100
  opacity: disabled ? 0.5 : 1,
1101
- }, children: showPassword ? (jsx(EyeShow, { width: "32px", height: "32px", stroke: "var(--color-neutral-600)" })) : (jsx(EyeHide, { width: "32px", height: "32px", stroke: "var(--color-neutral-600)" })) }) }));
1101
+ }, children: showPassword ? (jsx(EyeShow, { width: "32px", height: "32px", stroke: "var(--color-neutral-600)" })) : (jsx(EyeHide, { width: "32px", height: "32px", stroke: "var(--color-neutral-600)" })) }) }, rest)));
1102
1102
  };
1103
1103
  PasswordInput.displayName = 'PasswordInput';
1104
1104