@vacano/ui 1.2.1 → 1.4.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.cjs +316 -272
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +29 -0
- package/dist/index.js +1521 -1335
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -242,6 +242,15 @@ export declare type FieldLabelProps = VacanoComponentProps<HTMLSpanElement> & {
|
|
|
242
242
|
|
|
243
243
|
export declare type FieldLabelVariant = 'normal' | 'error';
|
|
244
244
|
|
|
245
|
+
export declare const FieldMessage: ({ children, className, ref, variant, ...rest }: FieldMessageProps) => JSX.Element | null;
|
|
246
|
+
|
|
247
|
+
export declare type FieldMessageProps = VacanoComponentProps<HTMLSpanElement> & Omit<HTMLAttributes<HTMLSpanElement>, 'className'> & {
|
|
248
|
+
children?: ReactNode;
|
|
249
|
+
variant?: FieldMessageVariant;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
export declare type FieldMessageVariant = 'normal' | 'error' | 'success' | 'warning';
|
|
253
|
+
|
|
245
254
|
/**
|
|
246
255
|
* Go-style date formatting
|
|
247
256
|
* Reference time: Mon Jan 2 15:04:05 MST 2006
|
|
@@ -398,6 +407,26 @@ export declare type MultiSelectProps = VacanoComponentProps<HTMLDivElement, Mult
|
|
|
398
407
|
|
|
399
408
|
export declare type MultiSelectVariant = 'normal' | 'error';
|
|
400
409
|
|
|
410
|
+
export declare const OtpCode: ({ className, classnames, disabled, label, length, onChange, ref, size, value, variant, ...rest }: OtpCodeProps) => JSX.Element;
|
|
411
|
+
|
|
412
|
+
export declare type OtpCodeClassNames = {
|
|
413
|
+
container?: string;
|
|
414
|
+
input?: string;
|
|
415
|
+
label?: string;
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
export declare type OtpCodeProps = VacanoComponentProps<HTMLDivElement, OtpCodeClassNames> & {
|
|
419
|
+
disabled?: boolean;
|
|
420
|
+
label?: string;
|
|
421
|
+
length?: number;
|
|
422
|
+
onChange?: (value: string) => void;
|
|
423
|
+
size?: VacanoComponentSize;
|
|
424
|
+
value?: string;
|
|
425
|
+
variant?: OtpCodeVariant;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
export declare type OtpCodeVariant = 'normal' | 'error';
|
|
429
|
+
|
|
401
430
|
export declare const Panel: ({ children, className, classnames, description, ref, title, variant, ...rest }: PanelProps) => JSX.Element;
|
|
402
431
|
|
|
403
432
|
export declare type PanelClassNames = {
|