@7shifts/sous-chef 3.65.1 → 3.65.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/dist/index.css +3 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -11302,7 +11302,7 @@ const RadioGroupField = ({
|
|
|
11302
11302
|
}, caption), controllers.error && React__default.createElement(ErrorMessage, null, controllers.error))));
|
|
11303
11303
|
};
|
|
11304
11304
|
|
|
11305
|
-
var styles$f = {"text-field":"_6Of1F","text-field--invalid":"_NQPNK","text-field--prefixed":"_BpQWQ","text-field--suffixed":"_cpYWb","password-container":"_pAoib","password-toggle":"_WVvS6"};
|
|
11305
|
+
var styles$f = {"text-field":"_6Of1F","text-field--invalid":"_NQPNK","text-field--prefixed":"_BpQWQ","text-field--suffixed":"_cpYWb","password-container":"_pAoib","password-toggle":"_WVvS6","password-toggle--disabled":"_G29N3"};
|
|
11306
11306
|
|
|
11307
11307
|
var styles$e = {"password-criteria":"_1ruWK","password-criteria--invalid":"_xR7tb"};
|
|
11308
11308
|
|
|
@@ -11365,7 +11365,10 @@ const PasswordField = ({
|
|
|
11365
11365
|
testId
|
|
11366
11366
|
}) => {
|
|
11367
11367
|
const [type, setType] = useState('password');
|
|
11368
|
-
const toggleType = () =>
|
|
11368
|
+
const toggleType = () => {
|
|
11369
|
+
if (disabled) return;
|
|
11370
|
+
setType(type === 'password' ? 'text' : 'password');
|
|
11371
|
+
};
|
|
11369
11372
|
const controllers = useFieldControllers({
|
|
11370
11373
|
name,
|
|
11371
11374
|
id: inputId,
|
|
@@ -11402,7 +11405,9 @@ const PasswordField = ({
|
|
|
11402
11405
|
onChange: controllers.onChange,
|
|
11403
11406
|
onBlur: controllers.onBlur
|
|
11404
11407
|
}), React__default.createElement("div", {
|
|
11405
|
-
className: styles$f['password-toggle'],
|
|
11408
|
+
className: classnames(styles$f['password-toggle'], {
|
|
11409
|
+
[styles$f['password-toggle--disabled']]: disabled
|
|
11410
|
+
}),
|
|
11406
11411
|
onClick: toggleType,
|
|
11407
11412
|
onKeyPress: toggleType,
|
|
11408
11413
|
"data-testid": testId && `${testId}-toggle`,
|