@capitaltg/vero 1.10.7 → 1.10.9
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 +31 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1342 -1320
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +12 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -231,9 +231,12 @@ export declare interface CheckboxGroupProps extends Omit<HTMLAttributes<HTMLDivE
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
export declare interface CheckboxOption {
|
|
234
|
+
/** Option identifier (used in value array). Consider standardizing with RadioGroup, which uses "value" for the option key. */
|
|
234
235
|
id: string;
|
|
235
236
|
label: string;
|
|
236
237
|
description?: string;
|
|
238
|
+
/** Optional explicit id for the checkbox input. Defaults to `${groupId}-${id}` when CheckboxGroup has an id. */
|
|
239
|
+
inputId?: string;
|
|
237
240
|
}
|
|
238
241
|
|
|
239
242
|
export declare interface CheckboxProps extends Omit<ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, 'checked' | 'disabled'> {
|
|
@@ -262,6 +265,12 @@ export declare interface ComboboxProps extends Omit<ButtonHTMLAttributes<HTMLBut
|
|
|
262
265
|
placeholder?: string;
|
|
263
266
|
searchPlaceholder?: string;
|
|
264
267
|
emptyMessage?: string;
|
|
268
|
+
/**
|
|
269
|
+
* Custom filter function for search. Receives the option's value and current search string.
|
|
270
|
+
* Return 0 to hide the item, or a positive number to show it (higher = better match rank).
|
|
271
|
+
* When not provided, default filtering matches by both value and label (case-insensitive substring).
|
|
272
|
+
*/
|
|
273
|
+
filter?: (value: string, search: string) => number;
|
|
265
274
|
className?: string;
|
|
266
275
|
listClassName?: string;
|
|
267
276
|
zIndex?: number;
|
|
@@ -580,6 +589,8 @@ export declare interface RadioOption {
|
|
|
580
589
|
value: string;
|
|
581
590
|
label: string;
|
|
582
591
|
description?: string;
|
|
592
|
+
/** Optional explicit id for the radio input. Defaults to `${groupId}-${value}` when RadioGroup has an id. */
|
|
593
|
+
id?: string;
|
|
583
594
|
}
|
|
584
595
|
|
|
585
596
|
export declare interface RadioProps extends Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, 'checked' | 'disabled'> {
|
|
@@ -812,7 +823,7 @@ export declare interface TooltipProps extends Omit<ComponentPropsWithoutRef<type
|
|
|
812
823
|
zIndex?: number;
|
|
813
824
|
}
|
|
814
825
|
|
|
815
|
-
export declare
|
|
826
|
+
export declare function TooltipProvider({ delayDuration, ...props }: Readonly<React_2.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>>): JSX_2.Element;
|
|
816
827
|
|
|
817
828
|
export declare const tw: <T extends string>(strings: TemplateStringsArray, ...values: unknown[]) => T;
|
|
818
829
|
|