@capitaltg/vero 1.10.9 → 1.11.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 +64 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +4260 -4192
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +49 -4
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -141,6 +141,10 @@ export declare interface AutocompleteProps<T, K extends keyof T, L extends keyof
|
|
|
141
141
|
* @default 'Failed to load options'
|
|
142
142
|
*/
|
|
143
143
|
errorMessage?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Additional class names for the popover content (e.g. to set min-width or width).
|
|
146
|
+
*/
|
|
147
|
+
popoverClassName?: string;
|
|
144
148
|
/**
|
|
145
149
|
* Z-index value for the popover dropdown.
|
|
146
150
|
* If not provided, uses the default z-index from the theme.
|
|
@@ -225,6 +229,7 @@ export declare interface CheckboxGroupProps extends Omit<HTMLAttributes<HTMLDivE
|
|
|
225
229
|
value: string[];
|
|
226
230
|
onChange: (value: string[]) => void;
|
|
227
231
|
className?: string;
|
|
232
|
+
/** Number of columns for default and tile variants (vertical orientation). Defaults to 1. */
|
|
228
233
|
columns?: 1 | 2 | 3 | 4;
|
|
229
234
|
orientation?: 'horizontal' | 'vertical';
|
|
230
235
|
variant?: 'default' | 'tile' | 'button';
|
|
@@ -273,7 +278,18 @@ export declare interface ComboboxProps extends Omit<ButtonHTMLAttributes<HTMLBut
|
|
|
273
278
|
filter?: (value: string, search: string) => number;
|
|
274
279
|
className?: string;
|
|
275
280
|
listClassName?: string;
|
|
281
|
+
/** Additional class names for the popover content (e.g. to set min-width or width). */
|
|
282
|
+
popoverClassName?: string;
|
|
283
|
+
/**
|
|
284
|
+
* Z-index value for the popover dropdown.
|
|
285
|
+
* If not provided, uses the default z-index from the theme.
|
|
286
|
+
*/
|
|
276
287
|
zIndex?: number;
|
|
288
|
+
/**
|
|
289
|
+
* Whether the component is disabled.
|
|
290
|
+
* When true, the combobox cannot be interacted with.
|
|
291
|
+
* @default false
|
|
292
|
+
*/
|
|
277
293
|
isDisabled?: boolean;
|
|
278
294
|
/**
|
|
279
295
|
* The name attribute for form submission.
|
|
@@ -536,7 +552,18 @@ export declare interface MultiSelectProps extends Omit<HTMLAttributes<HTMLDivEle
|
|
|
536
552
|
emptyMessage?: string;
|
|
537
553
|
className?: string;
|
|
538
554
|
listClassName?: string;
|
|
555
|
+
/** Additional class names for the popover content (e.g. to set min-width or width). */
|
|
556
|
+
popoverClassName?: string;
|
|
557
|
+
/**
|
|
558
|
+
* Z-index value for the popover dropdown.
|
|
559
|
+
* If not provided, uses the default z-index from the theme.
|
|
560
|
+
*/
|
|
539
561
|
zIndex?: number;
|
|
562
|
+
/**
|
|
563
|
+
* Whether the component is disabled.
|
|
564
|
+
* When true, the multi-select cannot be interacted with.
|
|
565
|
+
* @default false
|
|
566
|
+
*/
|
|
540
567
|
isDisabled?: boolean;
|
|
541
568
|
/**
|
|
542
569
|
* The name attribute for form submission.
|
|
@@ -575,14 +602,28 @@ export declare const Radio: React_2.ForwardRefExoticComponent<RadioProps & React
|
|
|
575
602
|
|
|
576
603
|
export declare const RadioGroup: React_2.ForwardRefExoticComponent<RadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
577
604
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
value: string;
|
|
581
|
-
onChange: (value: string) => void;
|
|
605
|
+
declare type RadioGroupBaseProps = Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, 'onValueChange' | 'onChange'> & {
|
|
606
|
+
value?: string;
|
|
607
|
+
onChange?: (value: string) => void;
|
|
582
608
|
className?: string;
|
|
609
|
+
/** Number of columns for default and tile variants (vertical orientation). Defaults to 1. */
|
|
583
610
|
columns?: 1 | 2 | 3 | 4;
|
|
584
611
|
orientation?: 'horizontal' | 'vertical';
|
|
585
612
|
variant?: 'default' | 'tile' | 'button';
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
export declare type RadioGroupProps = RadioGroupPropsWithOptions | RadioGroupPropsWithChildren;
|
|
616
|
+
|
|
617
|
+
/** Use with Radio components as children when you need custom layout or structure. */
|
|
618
|
+
declare interface RadioGroupPropsWithChildren extends RadioGroupBaseProps {
|
|
619
|
+
options?: never;
|
|
620
|
+
children: ReactNode;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/** Use with an `options` array; RadioGroup renders Radio items and applies layout. */
|
|
624
|
+
declare interface RadioGroupPropsWithOptions extends RadioGroupBaseProps {
|
|
625
|
+
options: RadioOption[];
|
|
626
|
+
children?: never;
|
|
586
627
|
}
|
|
587
628
|
|
|
588
629
|
export declare interface RadioOption {
|
|
@@ -667,6 +708,8 @@ export declare const SelectTrigger: React_2.ForwardRefExoticComponent<SelectTrig
|
|
|
667
708
|
|
|
668
709
|
export declare interface SelectTriggerProps extends Omit<ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>, 'disabled'> {
|
|
669
710
|
isDisabled?: boolean;
|
|
711
|
+
/** When false, the trigger value span is shown with muted styling (placeholder state). */
|
|
712
|
+
hasValue?: boolean;
|
|
670
713
|
}
|
|
671
714
|
|
|
672
715
|
export declare const SelectValue: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
@@ -850,6 +893,8 @@ declare type UseAriaDisabledActive = {
|
|
|
850
893
|
onClick: (evt: React.MouseEvent) => void;
|
|
851
894
|
onTouchStart: (evt: React.TouchEvent) => void;
|
|
852
895
|
onTouchEnd: (evt: React.TouchEvent) => void;
|
|
896
|
+
onPointerDown: (evt: React.PointerEvent) => void;
|
|
897
|
+
onPointerDownCapture: (evt: React.PointerEvent) => void;
|
|
853
898
|
onKeyDown: (evt: React.KeyboardEvent) => void;
|
|
854
899
|
onKeyUp: (evt: React.KeyboardEvent) => void;
|
|
855
900
|
onKeyPress: (evt: React.KeyboardEvent) => void;
|