@vacano/ui 1.3.0 → 1.4.1
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 +166 -140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +11 -2
- package/dist/index.js +464 -417
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ export declare type CheckboxProps = VacanoComponentProps<HTMLInputElement, Check
|
|
|
96
96
|
checked: boolean;
|
|
97
97
|
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
98
98
|
indeterminate?: boolean;
|
|
99
|
-
label?:
|
|
99
|
+
label?: ReactNode;
|
|
100
100
|
variant?: CheckboxVariant;
|
|
101
101
|
};
|
|
102
102
|
|
|
@@ -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
|
|
@@ -503,7 +512,7 @@ export declare type RadioGroupProps = VacanoComponentProps<HTMLDivElement, Radio
|
|
|
503
512
|
export declare type RadioProps = VacanoComponentProps<HTMLInputElement, RadioClassNames> & Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'checked' | 'onChange' | 'className'> & {
|
|
504
513
|
checked: boolean;
|
|
505
514
|
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
506
|
-
label?:
|
|
515
|
+
label?: ReactNode;
|
|
507
516
|
variant?: RadioVariant;
|
|
508
517
|
};
|
|
509
518
|
|