@gv-tech/ui-core 2.22.1 → 2.23.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.
Files changed (75) hide show
  1. package/dist/contracts/alert.d.ts +3 -1
  2. package/dist/contracts/alert.d.ts.map +1 -1
  3. package/dist/contracts/badge.d.ts +3 -1
  4. package/dist/contracts/badge.d.ts.map +1 -1
  5. package/dist/contracts/button-group.d.ts +18 -0
  6. package/dist/contracts/button-group.d.ts.map +1 -0
  7. package/dist/contracts/checkbox.d.ts +2 -2
  8. package/dist/contracts/checkbox.d.ts.map +1 -1
  9. package/dist/contracts/combobox.d.ts +66 -0
  10. package/dist/contracts/combobox.d.ts.map +1 -0
  11. package/dist/contracts/direction.d.ts +8 -0
  12. package/dist/contracts/direction.d.ts.map +1 -0
  13. package/dist/contracts/empty.d.ts +13 -0
  14. package/dist/contracts/empty.d.ts.map +1 -0
  15. package/dist/contracts/field.d.ts +48 -0
  16. package/dist/contracts/field.d.ts.map +1 -0
  17. package/dist/contracts/input-group.d.ts +30 -0
  18. package/dist/contracts/input-group.d.ts.map +1 -0
  19. package/dist/contracts/input-otp.d.ts +17 -0
  20. package/dist/contracts/input-otp.d.ts.map +1 -0
  21. package/dist/contracts/item.d.ts +48 -0
  22. package/dist/contracts/item.d.ts.map +1 -0
  23. package/dist/contracts/kbd.d.ts +10 -0
  24. package/dist/contracts/kbd.d.ts.map +1 -0
  25. package/dist/contracts/native-select.d.ts +16 -0
  26. package/dist/contracts/native-select.d.ts.map +1 -0
  27. package/dist/contracts/resizable.d.ts +1 -1
  28. package/dist/contracts/resizable.d.ts.map +1 -1
  29. package/dist/contracts/search.d.ts +1 -0
  30. package/dist/contracts/search.d.ts.map +1 -1
  31. package/dist/contracts/sidebar.d.ts +108 -0
  32. package/dist/contracts/sidebar.d.ts.map +1 -0
  33. package/dist/contracts/sonner.d.ts +1 -9
  34. package/dist/contracts/sonner.d.ts.map +1 -1
  35. package/dist/contracts/spinner.d.ts +4 -0
  36. package/dist/contracts/spinner.d.ts.map +1 -0
  37. package/dist/contracts/switch.d.ts +1 -1
  38. package/dist/contracts/switch.d.ts.map +1 -1
  39. package/dist/contracts/textarea.d.ts +2 -2
  40. package/dist/contracts/textarea.d.ts.map +1 -1
  41. package/dist/contracts/toast.d.ts +1 -1
  42. package/dist/contracts/toast.d.ts.map +1 -1
  43. package/dist/contracts/toggle-group.d.ts +1 -1
  44. package/dist/contracts/toggle-group.d.ts.map +1 -1
  45. package/dist/contracts/toggle.d.ts +2 -2
  46. package/dist/contracts/toggle.d.ts.map +1 -1
  47. package/dist/index.cjs +1 -1
  48. package/dist/index.d.ts +14 -0
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.mjs +2 -2
  51. package/package.json +1 -1
  52. package/src/contracts/alert.ts +3 -1
  53. package/src/contracts/badge.ts +4 -1
  54. package/src/contracts/button-group.ts +21 -0
  55. package/src/contracts/checkbox.ts +2 -2
  56. package/src/contracts/combobox.ts +79 -0
  57. package/src/contracts/direction.ts +9 -0
  58. package/src/contracts/empty.ts +15 -0
  59. package/src/contracts/field.ts +56 -0
  60. package/src/contracts/input-group.ts +37 -0
  61. package/src/contracts/input-otp.ts +20 -0
  62. package/src/contracts/item.ts +59 -0
  63. package/src/contracts/kbd.ts +11 -0
  64. package/src/contracts/native-select.ts +19 -0
  65. package/src/contracts/resizable.ts +1 -1
  66. package/src/contracts/search.ts +1 -0
  67. package/src/contracts/sidebar.ts +130 -0
  68. package/src/contracts/sonner.ts +1 -9
  69. package/src/contracts/spinner.ts +3 -0
  70. package/src/contracts/switch.ts +1 -1
  71. package/src/contracts/textarea.ts +2 -2
  72. package/src/contracts/toast.ts +1 -1
  73. package/src/contracts/toggle-group.ts +2 -1
  74. package/src/contracts/toggle.ts +2 -2
  75. package/src/index.ts +128 -0
@@ -9,7 +9,8 @@ export interface ToggleGroupBaseProps {
9
9
  type?: 'single' | 'multiple';
10
10
  defaultValue?: string | string[];
11
11
  value?: string | string[];
12
- onValueChange?: (value: string | string[]) => void;
12
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
13
+ onValueChange?: (value: any) => void;
13
14
  disabled?: boolean;
14
15
  }
15
16
 
@@ -34,8 +34,8 @@ export const toggleVariantValues = {
34
34
  },
35
35
  } as const;
36
36
 
37
- export type ToggleVariant = keyof typeof toggleVariantValues.variant;
38
- export type ToggleSize = keyof typeof toggleVariantValues.size;
37
+ export type ToggleVariant = keyof typeof toggleVariantValues.variant | null;
38
+ export type ToggleSize = keyof typeof toggleVariantValues.size | null;
39
39
 
40
40
  export interface ToggleBaseProps {
41
41
  children?: React.ReactNode;
package/src/index.ts CHANGED
@@ -337,3 +337,131 @@ export type {
337
337
  TableOfContentsListBaseProps,
338
338
  TableOfContentsRootBaseProps,
339
339
  } from './contracts/table-of-contents';
340
+
341
+ // Button Group
342
+ export { buttonGroupOrientationValues } from './contracts/button-group';
343
+ export type {
344
+ ButtonGroupBaseProps,
345
+ ButtonGroupOrientation,
346
+ ButtonGroupSeparatorBaseProps,
347
+ ButtonGroupTextBaseProps,
348
+ } from './contracts/button-group';
349
+
350
+ // Direction
351
+ export type { DirectionProviderBaseProps, DirectionType } from './contracts/direction';
352
+
353
+ // Empty
354
+ export { emptyMediaVariantValues } from './contracts/empty';
355
+ export type { EmptyBaseProps, EmptyMediaBaseProps, EmptyMediaVariant } from './contracts/empty';
356
+
357
+ // Spinner
358
+ export type { SpinnerBaseProps } from './contracts/spinner';
359
+
360
+ // Field
361
+ export type {
362
+ FieldBaseProps,
363
+ FieldContentBaseProps,
364
+ FieldDescriptionBaseProps,
365
+ FieldErrorBaseProps,
366
+ FieldGroupBaseProps,
367
+ FieldLabelBaseProps,
368
+ FieldLegendBaseProps,
369
+ FieldOrientation,
370
+ FieldSeparatorBaseProps,
371
+ FieldSetBaseProps,
372
+ FieldTitleBaseProps,
373
+ } from './contracts/field';
374
+
375
+ // Input Group
376
+ export type {
377
+ InputGroupAddonAlign,
378
+ InputGroupAddonBaseProps,
379
+ InputGroupBaseProps,
380
+ InputGroupButtonBaseProps,
381
+ InputGroupButtonSize,
382
+ InputGroupInputBaseProps,
383
+ InputGroupTextBaseProps,
384
+ InputGroupTextareaBaseProps,
385
+ } from './contracts/input-group';
386
+
387
+ // Native Select
388
+ export type {
389
+ NativeSelectBaseProps,
390
+ NativeSelectOptGroupBaseProps,
391
+ NativeSelectOptionBaseProps,
392
+ NativeSelectSize,
393
+ } from './contracts/native-select';
394
+
395
+ // Kbd
396
+ export type { KbdBaseProps, KbdGroupBaseProps } from './contracts/kbd';
397
+
398
+ // Item
399
+ export type {
400
+ ItemActionsBaseProps,
401
+ ItemBaseProps,
402
+ ItemContentBaseProps,
403
+ ItemDescriptionBaseProps,
404
+ ItemFooterBaseProps,
405
+ ItemGroupBaseProps,
406
+ ItemHeaderBaseProps,
407
+ ItemMediaBaseProps,
408
+ ItemMediaVariant,
409
+ ItemSeparatorBaseProps,
410
+ ItemSize,
411
+ ItemTitleBaseProps,
412
+ ItemVariant,
413
+ } from './contracts/item';
414
+
415
+ // Combobox
416
+ export type {
417
+ ComboboxChipBaseProps,
418
+ ComboboxChipsBaseProps,
419
+ ComboboxChipsInputBaseProps,
420
+ ComboboxClearBaseProps,
421
+ ComboboxCollectionBaseProps,
422
+ ComboboxContentBaseProps,
423
+ ComboboxEmptyBaseProps,
424
+ ComboboxGroupBaseProps,
425
+ ComboboxInputBaseProps,
426
+ ComboboxItemBaseProps,
427
+ ComboboxLabelBaseProps,
428
+ ComboboxListBaseProps,
429
+ ComboboxSeparatorBaseProps,
430
+ ComboboxTriggerBaseProps,
431
+ ComboboxValueBaseProps,
432
+ } from './contracts/combobox';
433
+
434
+ // Input OTP
435
+ export type {
436
+ InputOTPBaseProps,
437
+ InputOTPGroupBaseProps,
438
+ InputOTPSeparatorBaseProps,
439
+ InputOTPSlotBaseProps,
440
+ } from './contracts/input-otp';
441
+
442
+ // Sidebar
443
+ export type {
444
+ SidebarBaseProps,
445
+ SidebarContentBaseProps,
446
+ SidebarFooterBaseProps,
447
+ SidebarGroupActionBaseProps,
448
+ SidebarGroupBaseProps,
449
+ SidebarGroupContentBaseProps,
450
+ SidebarGroupLabelBaseProps,
451
+ SidebarHeaderBaseProps,
452
+ SidebarInputBaseProps,
453
+ SidebarInsetBaseProps,
454
+ SidebarMenuActionBaseProps,
455
+ SidebarMenuBadgeBaseProps,
456
+ SidebarMenuBaseProps,
457
+ SidebarMenuButtonBaseProps,
458
+ SidebarMenuItemBaseProps,
459
+ SidebarMenuSkeletonBaseProps,
460
+ SidebarMenuSubBaseProps,
461
+ SidebarMenuSubButtonBaseProps,
462
+ SidebarMenuSubItemBaseProps,
463
+ SidebarProviderBaseProps,
464
+ SidebarRailBaseProps,
465
+ SidebarSeparatorBaseProps,
466
+ SidebarTriggerBaseProps,
467
+ } from './contracts/sidebar';