@capitaltg/vero 1.8.1 → 1.8.2
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 +58 -56
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2036 -2011
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +17 -4
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -367,14 +367,14 @@ declare type MultipleProps = {
|
|
|
367
367
|
onValueChange?: (value: string[]) => void;
|
|
368
368
|
};
|
|
369
369
|
|
|
370
|
-
export declare const MultiSelect: default_2.ForwardRefExoticComponent<MultiSelectProps & default_2.RefAttributes<
|
|
370
|
+
export declare const MultiSelect: default_2.ForwardRefExoticComponent<MultiSelectProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
371
371
|
|
|
372
372
|
export declare interface MultiSelectOption {
|
|
373
373
|
value: string;
|
|
374
374
|
label: string;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
export declare interface MultiSelectProps extends Omit<
|
|
377
|
+
export declare interface MultiSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
378
378
|
options: MultiSelectOption[];
|
|
379
379
|
value: string[];
|
|
380
380
|
onChange: (value: string[]) => void;
|
|
@@ -587,7 +587,7 @@ export declare interface SwitchProps extends Omit<ComponentPropsWithoutRef<typeo
|
|
|
587
587
|
isDisabled?: boolean;
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
export declare const Tabs: React_2.ForwardRefExoticComponent<
|
|
590
|
+
export declare const Tabs: React_2.ForwardRefExoticComponent<TabsProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
591
591
|
|
|
592
592
|
export declare const TabsContent: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
593
593
|
|
|
@@ -597,7 +597,20 @@ export declare const TabsList: React_2.ForwardRefExoticComponent<Omit<TabsPrimit
|
|
|
597
597
|
|
|
598
598
|
export declare type TabsListProps = ComponentPropsWithoutRef<typeof TabsPrimitive.List>;
|
|
599
599
|
|
|
600
|
-
export declare
|
|
600
|
+
export declare interface TabsProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {
|
|
601
|
+
/**
|
|
602
|
+
* The controlled value of the active tab. When provided, the component becomes a controlled component.
|
|
603
|
+
*/
|
|
604
|
+
value?: string;
|
|
605
|
+
/**
|
|
606
|
+
* The default value of the active tab when the component is uncontrolled.
|
|
607
|
+
*/
|
|
608
|
+
defaultValue?: string;
|
|
609
|
+
/**
|
|
610
|
+
* How tabs are activated. When set to "automatic", tabs are activated when receiving focus. When set to "manual", tabs are activated when clicked.
|
|
611
|
+
*/
|
|
612
|
+
activationMode?: 'automatic' | 'manual';
|
|
613
|
+
}
|
|
601
614
|
|
|
602
615
|
export declare const TabsTrigger: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
603
616
|
|