@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.
@@ -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 const TooltipProvider: React_2.FC<TooltipPrimitive.TooltipProviderProps>;
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capitaltg/vero",
3
- "version": "1.10.7",
3
+ "version": "1.10.9",
4
4
  "description": "Accessible, modern, open source React component library inspired by USWDS built with Radix UI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",