@capitaltg/vero 1.8.1 → 1.9.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 +60 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2841 -2765
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +114 -9
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -60,12 +60,14 @@ declare type AlertVariant = 'success' | 'warning' | 'danger' | 'info';
|
|
|
60
60
|
|
|
61
61
|
export declare const Autocomplete: default_2.ForwardRefExoticComponent<AutocompleteProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
62
62
|
|
|
63
|
+
declare type AutocompleteFormAttributes = Pick<React.SelectHTMLAttributes<HTMLSelectElement>, 'name' | 'required' | 'autoFocus'>;
|
|
64
|
+
|
|
63
65
|
export declare interface AutocompleteOption {
|
|
64
66
|
value: string;
|
|
65
67
|
label: string;
|
|
66
68
|
}
|
|
67
69
|
|
|
68
|
-
export declare interface AutocompleteProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'disabled'
|
|
70
|
+
export declare interface AutocompleteProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'disabled'>, AutocompleteFormAttributes {
|
|
69
71
|
loadOptions?: (inputValue: string) => Promise<AutocompleteOption[]>;
|
|
70
72
|
options?: AutocompleteOption[];
|
|
71
73
|
value: string;
|
|
@@ -81,6 +83,20 @@ export declare interface AutocompleteProps extends Omit<ButtonHTMLAttributes<HTM
|
|
|
81
83
|
errorMessage?: string;
|
|
82
84
|
zIndex?: number;
|
|
83
85
|
isDisabled?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* The name attribute for form submission.
|
|
88
|
+
* This is required for the autocomplete value to be included in form data.
|
|
89
|
+
*/
|
|
90
|
+
name?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the autocomplete is required for form validation.
|
|
93
|
+
* When true, the form cannot be submitted without a selection.
|
|
94
|
+
*/
|
|
95
|
+
required?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Automatically focuses the autocomplete when the page loads.
|
|
98
|
+
*/
|
|
99
|
+
autoFocus?: boolean;
|
|
84
100
|
}
|
|
85
101
|
|
|
86
102
|
export declare const Badge: React_2.ForwardRefExoticComponent<BadgeProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -154,12 +170,14 @@ export declare function cn(...inputs: ClassValue[]): string;
|
|
|
154
170
|
|
|
155
171
|
export declare const Combobox: default_2.ForwardRefExoticComponent<ComboboxProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
156
172
|
|
|
173
|
+
declare type ComboboxFormAttributes = Pick<React.SelectHTMLAttributes<HTMLSelectElement>, 'name' | 'required' | 'autoFocus'>;
|
|
174
|
+
|
|
157
175
|
export declare interface ComboboxOption {
|
|
158
176
|
value: string;
|
|
159
177
|
label: string;
|
|
160
178
|
}
|
|
161
179
|
|
|
162
|
-
export declare interface ComboboxProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'disabled'
|
|
180
|
+
export declare interface ComboboxProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'disabled'>, ComboboxFormAttributes {
|
|
163
181
|
options: ComboboxOption[];
|
|
164
182
|
value: string;
|
|
165
183
|
onChange: (value: string) => void;
|
|
@@ -170,6 +188,20 @@ export declare interface ComboboxProps extends Omit<ButtonHTMLAttributes<HTMLBut
|
|
|
170
188
|
listClassName?: string;
|
|
171
189
|
zIndex?: number;
|
|
172
190
|
isDisabled?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* The name attribute for form submission.
|
|
193
|
+
* This is required for the combobox value to be included in form data.
|
|
194
|
+
*/
|
|
195
|
+
name?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Whether the combobox is required for form validation.
|
|
198
|
+
* When true, the form cannot be submitted without a selection.
|
|
199
|
+
*/
|
|
200
|
+
required?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Automatically focuses the combobox when the page loads.
|
|
203
|
+
*/
|
|
204
|
+
autoFocus?: boolean;
|
|
173
205
|
}
|
|
174
206
|
|
|
175
207
|
/**
|
|
@@ -193,7 +225,9 @@ export declare function configureZIndex(config: Partial<ZIndexConfig>): void;
|
|
|
193
225
|
|
|
194
226
|
export declare const DatePicker: default_2.ForwardRefExoticComponent<DatePickerProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
195
227
|
|
|
196
|
-
|
|
228
|
+
declare type DatePickerFormAttributes = Pick<React.SelectHTMLAttributes<HTMLSelectElement>, 'name' | 'required' | 'autoFocus'>;
|
|
229
|
+
|
|
230
|
+
export declare interface DatePickerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'disabled' | 'value'>, DatePickerFormAttributes {
|
|
197
231
|
value?: Date;
|
|
198
232
|
startMonth?: Date;
|
|
199
233
|
endMonth?: Date;
|
|
@@ -202,6 +236,20 @@ export declare interface DatePickerProps extends Omit<ButtonHTMLAttributes<HTMLB
|
|
|
202
236
|
className?: string;
|
|
203
237
|
zIndex?: number;
|
|
204
238
|
isDisabled?: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* The name attribute for form submission.
|
|
241
|
+
* This is required for the date picker value to be included in form data.
|
|
242
|
+
*/
|
|
243
|
+
name?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Whether the date picker is required for form validation.
|
|
246
|
+
* When true, the form cannot be submitted without a date selection.
|
|
247
|
+
*/
|
|
248
|
+
required?: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* Automatically focuses the date picker when the page loads.
|
|
251
|
+
*/
|
|
252
|
+
autoFocus?: boolean;
|
|
205
253
|
}
|
|
206
254
|
|
|
207
255
|
export declare interface DateRange {
|
|
@@ -211,7 +259,9 @@ export declare interface DateRange {
|
|
|
211
259
|
|
|
212
260
|
export declare const DateRangePicker: React_2.ForwardRefExoticComponent<DateRangePickerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
213
261
|
|
|
214
|
-
|
|
262
|
+
declare type DateRangePickerFormAttributes = Pick<React.SelectHTMLAttributes<HTMLSelectElement>, 'name' | 'required' | 'autoFocus'>;
|
|
263
|
+
|
|
264
|
+
export declare interface DateRangePickerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'disabled' | 'value'>, DateRangePickerFormAttributes {
|
|
215
265
|
value: DateRange;
|
|
216
266
|
onChange: (range: DateRange) => void;
|
|
217
267
|
placeholder?: {
|
|
@@ -221,6 +271,20 @@ export declare interface DateRangePickerProps extends Omit<ButtonHTMLAttributes<
|
|
|
221
271
|
className?: string;
|
|
222
272
|
zIndex?: number;
|
|
223
273
|
isDisabled?: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* The name attribute for form submission.
|
|
276
|
+
* This is required for the date range picker value to be included in form data.
|
|
277
|
+
*/
|
|
278
|
+
name?: string;
|
|
279
|
+
/**
|
|
280
|
+
* Whether the date range picker is required for form validation.
|
|
281
|
+
* When true, the form cannot be submitted without a date range selection.
|
|
282
|
+
*/
|
|
283
|
+
required?: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* Automatically focuses the date range picker when the page loads.
|
|
286
|
+
*/
|
|
287
|
+
autoFocus?: boolean;
|
|
224
288
|
}
|
|
225
289
|
|
|
226
290
|
export declare const Dialog: FC<DialogPrimitive.DialogProps>;
|
|
@@ -367,14 +431,16 @@ declare type MultipleProps = {
|
|
|
367
431
|
onValueChange?: (value: string[]) => void;
|
|
368
432
|
};
|
|
369
433
|
|
|
370
|
-
export declare const MultiSelect: default_2.ForwardRefExoticComponent<MultiSelectProps & default_2.RefAttributes<
|
|
434
|
+
export declare const MultiSelect: default_2.ForwardRefExoticComponent<MultiSelectProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
435
|
+
|
|
436
|
+
declare type MultiSelectFormAttributes = Pick<React.SelectHTMLAttributes<HTMLSelectElement>, 'name' | 'required' | 'autoFocus'>;
|
|
371
437
|
|
|
372
438
|
export declare interface MultiSelectOption {
|
|
373
439
|
value: string;
|
|
374
440
|
label: string;
|
|
375
441
|
}
|
|
376
442
|
|
|
377
|
-
export declare interface MultiSelectProps extends Omit<
|
|
443
|
+
export declare interface MultiSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>, MultiSelectFormAttributes {
|
|
378
444
|
options: MultiSelectOption[];
|
|
379
445
|
value: string[];
|
|
380
446
|
onChange: (value: string[]) => void;
|
|
@@ -385,6 +451,20 @@ export declare interface MultiSelectProps extends Omit<ButtonHTMLAttributes<HTML
|
|
|
385
451
|
listClassName?: string;
|
|
386
452
|
zIndex?: number;
|
|
387
453
|
isDisabled?: boolean;
|
|
454
|
+
/**
|
|
455
|
+
* The name attribute for form submission.
|
|
456
|
+
* This is required for the multi-select value to be included in form data.
|
|
457
|
+
*/
|
|
458
|
+
name?: string;
|
|
459
|
+
/**
|
|
460
|
+
* Whether the multi-select is required for form validation.
|
|
461
|
+
* When true, the form cannot be submitted without at least one selection.
|
|
462
|
+
*/
|
|
463
|
+
required?: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* Automatically focuses the multi-select when the page loads.
|
|
466
|
+
*/
|
|
467
|
+
autoFocus?: boolean;
|
|
388
468
|
}
|
|
389
469
|
|
|
390
470
|
declare type OmittedPrimitiveProps = Omit<ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>, 'type' | 'value' | 'defaultValue' | 'collapsible' | 'onValueChange'>;
|
|
@@ -447,6 +527,8 @@ export declare interface SelectContentProps extends ComponentPropsWithoutRef<typ
|
|
|
447
527
|
zIndex?: number;
|
|
448
528
|
}
|
|
449
529
|
|
|
530
|
+
declare type SelectFormAttributes = Pick<React.SelectHTMLAttributes<HTMLSelectElement>, 'name' | 'required' | 'autoFocus'>;
|
|
531
|
+
|
|
450
532
|
export declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
451
533
|
|
|
452
534
|
export declare const SelectItem: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -462,7 +544,7 @@ export declare interface SelectOption {
|
|
|
462
544
|
label: string;
|
|
463
545
|
}
|
|
464
546
|
|
|
465
|
-
export declare interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'disabled'
|
|
547
|
+
export declare interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'disabled'>, SelectFormAttributes {
|
|
466
548
|
options: SelectOption[];
|
|
467
549
|
value: string;
|
|
468
550
|
onChange: (value: string) => void;
|
|
@@ -470,6 +552,20 @@ export declare interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButto
|
|
|
470
552
|
className?: string;
|
|
471
553
|
zIndex?: number;
|
|
472
554
|
isDisabled?: boolean;
|
|
555
|
+
/**
|
|
556
|
+
* The name attribute for form submission.
|
|
557
|
+
* This is required for the select value to be included in form data.
|
|
558
|
+
*/
|
|
559
|
+
name?: string;
|
|
560
|
+
/**
|
|
561
|
+
* Whether the select is required for form validation.
|
|
562
|
+
* When true, the form cannot be submitted without a selection.
|
|
563
|
+
*/
|
|
564
|
+
required?: boolean;
|
|
565
|
+
/**
|
|
566
|
+
* Automatically focuses the select when the page loads.
|
|
567
|
+
*/
|
|
568
|
+
autoFocus?: boolean;
|
|
473
569
|
}
|
|
474
570
|
|
|
475
571
|
export declare const SelectRoot: React_2.FC<SelectPrimitive.SelectProps>;
|
|
@@ -587,7 +683,7 @@ export declare interface SwitchProps extends Omit<ComponentPropsWithoutRef<typeo
|
|
|
587
683
|
isDisabled?: boolean;
|
|
588
684
|
}
|
|
589
685
|
|
|
590
|
-
export declare const Tabs: React_2.ForwardRefExoticComponent<
|
|
686
|
+
export declare const Tabs: React_2.ForwardRefExoticComponent<TabsProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
591
687
|
|
|
592
688
|
export declare const TabsContent: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
593
689
|
|
|
@@ -597,7 +693,16 @@ export declare const TabsList: React_2.ForwardRefExoticComponent<Omit<TabsPrimit
|
|
|
597
693
|
|
|
598
694
|
export declare type TabsListProps = ComponentPropsWithoutRef<typeof TabsPrimitive.List>;
|
|
599
695
|
|
|
600
|
-
export declare
|
|
696
|
+
export declare interface TabsProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
|
|
697
|
+
/**
|
|
698
|
+
* The controlled value of the active tab. When provided, the component becomes a controlled component.
|
|
699
|
+
*/
|
|
700
|
+
value?: string;
|
|
701
|
+
/**
|
|
702
|
+
* The default value of the active tab when the component is uncontrolled.
|
|
703
|
+
*/
|
|
704
|
+
defaultValue?: string;
|
|
705
|
+
}
|
|
601
706
|
|
|
602
707
|
export declare const TabsTrigger: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
603
708
|
|