@ews-admin/global-design-system 1.9.0 → 1.10.0
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
|
@@ -32547,7 +32547,8 @@ const UserIcon = ({ size = 24, color = "currentColor", className = "", ...props
|
|
|
32547
32547
|
};
|
|
32548
32548
|
|
|
32549
32549
|
const Input = React.forwardRef(({ className, variant = "default", size = "md", label, helperText, error, leftIcon, rightIcon, fullWidth = false, showPasswordToggle = false, required = false, countryCodeSelect, leftAddon, rightAddon, id, type = "text", onChange, onBlur, ...props }, ref) => {
|
|
32550
|
-
const
|
|
32550
|
+
const generatedId = React.useId();
|
|
32551
|
+
const inputId = id || `input-${generatedId.replace(/:/g, "")}`;
|
|
32551
32552
|
const hasError = Boolean(error);
|
|
32552
32553
|
const actualVariant = hasError ? "error" : variant;
|
|
32553
32554
|
// Password visibility state
|