@nattstack/ui 0.0.41 → 0.0.42
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.
|
@@ -129,6 +129,7 @@ declare const LABEL_CLASS_NAME: {
|
|
|
129
129
|
//#region src/components/otp-field/otp-field.d.ts
|
|
130
130
|
interface OTPFieldProps extends Omit<OTPFieldPreview.Root.Props, "disabled"> {
|
|
131
131
|
isDisabled?: OTPFieldPreview.Root.Props["disabled"];
|
|
132
|
+
isMasked?: OTPFieldPreview.Root.Props["mask"];
|
|
132
133
|
}
|
|
133
134
|
declare function OTPField(props: OTPFieldProps): JSX.Element;
|
|
134
135
|
declare const OTP_FIELD_CLASS_NAME: {
|
package/dist/components/index.js
CHANGED
|
@@ -321,7 +321,7 @@ var otp_field_module_default = { "otp_field": "otp-field-module_otp_field_l-Sakq
|
|
|
321
321
|
//#endregion
|
|
322
322
|
//#region src/components/otp-field/otp-field.tsx
|
|
323
323
|
function OTPField(props) {
|
|
324
|
-
const { className: customClassName = "", isDisabled = false, ...rest } = props;
|
|
324
|
+
const { className: customClassName = "", isDisabled = false, isMasked = false, ...rest } = props;
|
|
325
325
|
const combinedClassName = normalizeWhitespace(`
|
|
326
326
|
${OTP_FIELD_CLASS_NAME.BASE}
|
|
327
327
|
${customClassName}
|
|
@@ -329,6 +329,7 @@ function OTPField(props) {
|
|
|
329
329
|
return /* @__PURE__ */ jsx(OTPFieldPreview.Root, {
|
|
330
330
|
className: combinedClassName,
|
|
331
331
|
disabled: isDisabled,
|
|
332
|
+
mask: isMasked,
|
|
332
333
|
...rest
|
|
333
334
|
});
|
|
334
335
|
}
|