@gv-tech/ui-core 2.22.2 → 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.
- package/dist/contracts/alert.d.ts +3 -1
- package/dist/contracts/alert.d.ts.map +1 -1
- package/dist/contracts/badge.d.ts +3 -1
- package/dist/contracts/badge.d.ts.map +1 -1
- package/dist/contracts/button-group.d.ts +18 -0
- package/dist/contracts/button-group.d.ts.map +1 -0
- package/dist/contracts/checkbox.d.ts +2 -2
- package/dist/contracts/checkbox.d.ts.map +1 -1
- package/dist/contracts/combobox.d.ts +66 -0
- package/dist/contracts/combobox.d.ts.map +1 -0
- package/dist/contracts/direction.d.ts +8 -0
- package/dist/contracts/direction.d.ts.map +1 -0
- package/dist/contracts/empty.d.ts +13 -0
- package/dist/contracts/empty.d.ts.map +1 -0
- package/dist/contracts/field.d.ts +48 -0
- package/dist/contracts/field.d.ts.map +1 -0
- package/dist/contracts/input-group.d.ts +30 -0
- package/dist/contracts/input-group.d.ts.map +1 -0
- package/dist/contracts/input-otp.d.ts +17 -0
- package/dist/contracts/input-otp.d.ts.map +1 -0
- package/dist/contracts/item.d.ts +48 -0
- package/dist/contracts/item.d.ts.map +1 -0
- package/dist/contracts/kbd.d.ts +10 -0
- package/dist/contracts/kbd.d.ts.map +1 -0
- package/dist/contracts/native-select.d.ts +16 -0
- package/dist/contracts/native-select.d.ts.map +1 -0
- package/dist/contracts/resizable.d.ts +1 -1
- package/dist/contracts/resizable.d.ts.map +1 -1
- package/dist/contracts/search.d.ts +1 -0
- package/dist/contracts/search.d.ts.map +1 -1
- package/dist/contracts/sidebar.d.ts +108 -0
- package/dist/contracts/sidebar.d.ts.map +1 -0
- package/dist/contracts/sonner.d.ts +1 -9
- package/dist/contracts/sonner.d.ts.map +1 -1
- package/dist/contracts/spinner.d.ts +4 -0
- package/dist/contracts/spinner.d.ts.map +1 -0
- package/dist/contracts/switch.d.ts +1 -1
- package/dist/contracts/switch.d.ts.map +1 -1
- package/dist/contracts/textarea.d.ts +2 -2
- package/dist/contracts/textarea.d.ts.map +1 -1
- package/dist/contracts/toast.d.ts +1 -1
- package/dist/contracts/toast.d.ts.map +1 -1
- package/dist/contracts/toggle-group.d.ts +1 -1
- package/dist/contracts/toggle-group.d.ts.map +1 -1
- package/dist/contracts/toggle.d.ts +2 -2
- package/dist/contracts/toggle.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/contracts/alert.ts +3 -1
- package/src/contracts/badge.ts +4 -1
- package/src/contracts/button-group.ts +21 -0
- package/src/contracts/checkbox.ts +2 -2
- package/src/contracts/combobox.ts +79 -0
- package/src/contracts/direction.ts +9 -0
- package/src/contracts/empty.ts +15 -0
- package/src/contracts/field.ts +56 -0
- package/src/contracts/input-group.ts +37 -0
- package/src/contracts/input-otp.ts +20 -0
- package/src/contracts/item.ts +59 -0
- package/src/contracts/kbd.ts +11 -0
- package/src/contracts/native-select.ts +19 -0
- package/src/contracts/resizable.ts +1 -1
- package/src/contracts/search.ts +1 -0
- package/src/contracts/sidebar.ts +130 -0
- package/src/contracts/sonner.ts +1 -9
- package/src/contracts/spinner.ts +3 -0
- package/src/contracts/switch.ts +1 -1
- package/src/contracts/textarea.ts +2 -2
- package/src/contracts/toast.ts +1 -1
- package/src/contracts/toggle-group.ts +2 -1
- package/src/contracts/toggle.ts +2 -2
- 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
|
-
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
|
+
onValueChange?: (value: any) => void;
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
}
|
|
15
16
|
|
package/src/contracts/toggle.ts
CHANGED
|
@@ -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';
|