@gv-tech/ui-native 2.29.3 → 2.29.5
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.d.ts +1 -58
- package/dist/__contracts.d.ts.map +1 -1
- package/dist/attachment.d.ts.map +1 -1
- package/dist/bubble.d.ts.map +1 -1
- package/dist/button-group.d.ts +7 -3
- package/dist/button-group.d.ts.map +1 -1
- package/dist/button-group.test.d.ts +2 -0
- package/dist/button-group.test.d.ts.map +1 -0
- package/dist/chart.d.ts.map +1 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/index.d.ts +0 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/marker.d.ts.map +1 -1
- package/dist/message-scroller.d.ts.map +1 -1
- package/dist/message.d.ts.map +1 -1
- package/dist/questionnaire.d.ts.map +1 -1
- package/dist/resizable.d.ts.map +1 -1
- package/dist/sonner.d.ts.map +1 -1
- package/dist/switch.d.ts.map +1 -1
- package/dist/ui-native.cjs +2 -2
- package/dist/ui-native.esm.js +1036 -1177
- package/package.json +1 -1
- package/src/__contracts.ts +0 -211
- package/src/attachment.tsx +1 -0
- package/src/bubble.tsx +1 -0
- package/src/button-group.tsx +30 -11
- package/src/chart.tsx +1 -0
- package/src/command.tsx +1 -0
- package/src/index.ts +4 -79
- package/src/marker.tsx +1 -0
- package/src/message-scroller.tsx +1 -0
- package/src/message.tsx +1 -0
- package/src/questionnaire.tsx +1 -0
- package/src/resizable.tsx +1 -0
- package/src/sonner.tsx +1 -0
- package/src/switch.tsx +27 -16
package/package.json
CHANGED
package/src/__contracts.ts
CHANGED
|
@@ -16,15 +16,6 @@ import type {
|
|
|
16
16
|
AlertDialogTriggerBaseProps,
|
|
17
17
|
AlertTitleBaseProps,
|
|
18
18
|
AspectRatioBaseProps,
|
|
19
|
-
AttachmentActionBaseProps,
|
|
20
|
-
AttachmentActionsBaseProps,
|
|
21
|
-
AttachmentBaseProps,
|
|
22
|
-
AttachmentContentBaseProps,
|
|
23
|
-
AttachmentDescriptionBaseProps,
|
|
24
|
-
AttachmentGroupBaseProps,
|
|
25
|
-
AttachmentMediaBaseProps,
|
|
26
|
-
AttachmentTitleBaseProps,
|
|
27
|
-
AttachmentTriggerBaseProps,
|
|
28
19
|
AvatarBaseProps,
|
|
29
20
|
AvatarFallbackBaseProps,
|
|
30
21
|
AvatarImageBaseProps,
|
|
@@ -36,10 +27,6 @@ import type {
|
|
|
36
27
|
BreadcrumbListBaseProps,
|
|
37
28
|
BreadcrumbPageBaseProps,
|
|
38
29
|
BreadcrumbSeparatorBaseProps,
|
|
39
|
-
BubbleBaseProps,
|
|
40
|
-
BubbleContentBaseProps,
|
|
41
|
-
BubbleGroupBaseProps,
|
|
42
|
-
BubbleReactionsBaseProps,
|
|
43
30
|
ButtonBaseProps,
|
|
44
31
|
ButtonGroupBaseProps,
|
|
45
32
|
ButtonGroupSeparatorBaseProps,
|
|
@@ -51,9 +38,6 @@ import type {
|
|
|
51
38
|
CarouselItemBaseProps,
|
|
52
39
|
CarouselNextBaseProps,
|
|
53
40
|
CarouselPreviousBaseProps,
|
|
54
|
-
ChartContainerBaseProps,
|
|
55
|
-
ChartLegendContentBaseProps,
|
|
56
|
-
ChartTooltipContentBaseProps,
|
|
57
41
|
CheckboxBaseProps,
|
|
58
42
|
CollapsibleBaseProps,
|
|
59
43
|
CollapsibleContentBaseProps,
|
|
@@ -73,14 +57,6 @@ import type {
|
|
|
73
57
|
ComboboxSeparatorBaseProps,
|
|
74
58
|
ComboboxTriggerBaseProps,
|
|
75
59
|
ComboboxValueBaseProps,
|
|
76
|
-
CommandBaseProps,
|
|
77
|
-
CommandEmptyBaseProps,
|
|
78
|
-
CommandGroupBaseProps,
|
|
79
|
-
CommandInputBaseProps,
|
|
80
|
-
CommandItemBaseProps,
|
|
81
|
-
CommandListBaseProps,
|
|
82
|
-
CommandSeparatorBaseProps,
|
|
83
|
-
CommandShortcutBaseProps,
|
|
84
60
|
ContextMenuBaseProps,
|
|
85
61
|
ContextMenuCheckboxItemBaseProps,
|
|
86
62
|
ContextMenuContentBaseProps,
|
|
@@ -164,9 +140,6 @@ import type {
|
|
|
164
140
|
KbdBaseProps,
|
|
165
141
|
KbdGroupBaseProps,
|
|
166
142
|
LabelBaseProps,
|
|
167
|
-
MarkerBaseProps,
|
|
168
|
-
MarkerContentBaseProps,
|
|
169
|
-
MarkerIconBaseProps,
|
|
170
143
|
MenubarBaseProps,
|
|
171
144
|
MenubarCheckboxItemBaseProps,
|
|
172
145
|
MenubarContentBaseProps,
|
|
@@ -180,18 +153,6 @@ import type {
|
|
|
180
153
|
MenubarSubContentBaseProps,
|
|
181
154
|
MenubarSubTriggerBaseProps,
|
|
182
155
|
MenubarTriggerBaseProps,
|
|
183
|
-
MessageAvatarBaseProps,
|
|
184
|
-
MessageBaseProps,
|
|
185
|
-
MessageContentBaseProps,
|
|
186
|
-
MessageFooterBaseProps,
|
|
187
|
-
MessageGroupBaseProps,
|
|
188
|
-
MessageHeaderBaseProps,
|
|
189
|
-
MessageScrollerBaseProps,
|
|
190
|
-
MessageScrollerButtonBaseProps,
|
|
191
|
-
MessageScrollerContentBaseProps,
|
|
192
|
-
MessageScrollerItemBaseProps,
|
|
193
|
-
MessageScrollerProviderBaseProps,
|
|
194
|
-
MessageScrollerViewportBaseProps,
|
|
195
156
|
NativeSelectBaseProps,
|
|
196
157
|
NativeSelectOptGroupBaseProps,
|
|
197
158
|
NativeSelectOptionBaseProps,
|
|
@@ -215,26 +176,8 @@ import type {
|
|
|
215
176
|
PopoverContentBaseProps,
|
|
216
177
|
PopoverTriggerBaseProps,
|
|
217
178
|
ProgressBaseProps,
|
|
218
|
-
QuestionnaireActionsBaseProps,
|
|
219
|
-
QuestionnaireBaseProps,
|
|
220
|
-
QuestionnaireChoiceBaseProps,
|
|
221
|
-
QuestionnaireChoiceDescriptionBaseProps,
|
|
222
|
-
QuestionnaireChoicesBaseProps,
|
|
223
|
-
QuestionnaireDescriptionBaseProps,
|
|
224
|
-
QuestionnaireErrorBaseProps,
|
|
225
|
-
QuestionnaireInputBaseProps,
|
|
226
|
-
QuestionnaireItemBaseProps,
|
|
227
|
-
QuestionnaireNextBaseProps,
|
|
228
|
-
QuestionnairePreviousBaseProps,
|
|
229
|
-
QuestionnaireProgressBaseProps,
|
|
230
|
-
QuestionnaireSkipBaseProps,
|
|
231
|
-
QuestionnaireSubmitBaseProps,
|
|
232
|
-
QuestionnaireTitleBaseProps,
|
|
233
179
|
RadioGroupBaseProps,
|
|
234
180
|
RadioGroupItemBaseProps,
|
|
235
|
-
ResizableHandleBaseProps,
|
|
236
|
-
ResizablePanelBaseProps,
|
|
237
|
-
ResizablePanelGroupBaseProps,
|
|
238
181
|
ScrollAreaBaseProps,
|
|
239
182
|
ScrollToTopBaseProps,
|
|
240
183
|
SearchBaseProps,
|
|
@@ -337,15 +280,6 @@ import type {
|
|
|
337
280
|
AlertDialogTrigger,
|
|
338
281
|
AlertTitle,
|
|
339
282
|
AspectRatio,
|
|
340
|
-
Attachment,
|
|
341
|
-
AttachmentAction,
|
|
342
|
-
AttachmentActions,
|
|
343
|
-
AttachmentContent,
|
|
344
|
-
AttachmentDescription,
|
|
345
|
-
AttachmentGroup,
|
|
346
|
-
AttachmentMedia,
|
|
347
|
-
AttachmentTitle,
|
|
348
|
-
AttachmentTrigger,
|
|
349
283
|
Avatar,
|
|
350
284
|
AvatarFallback,
|
|
351
285
|
AvatarImage,
|
|
@@ -357,10 +291,6 @@ import type {
|
|
|
357
291
|
BreadcrumbList,
|
|
358
292
|
BreadcrumbPage,
|
|
359
293
|
BreadcrumbSeparator,
|
|
360
|
-
Bubble,
|
|
361
|
-
BubbleContent,
|
|
362
|
-
BubbleGroup,
|
|
363
|
-
BubbleReactions,
|
|
364
294
|
Button,
|
|
365
295
|
ButtonGroup,
|
|
366
296
|
ButtonGroupSeparator,
|
|
@@ -372,9 +302,6 @@ import type {
|
|
|
372
302
|
CarouselItem,
|
|
373
303
|
CarouselNext,
|
|
374
304
|
CarouselPrevious,
|
|
375
|
-
ChartContainer,
|
|
376
|
-
ChartLegendContent,
|
|
377
|
-
ChartTooltipContent,
|
|
378
305
|
Checkbox,
|
|
379
306
|
Collapsible,
|
|
380
307
|
CollapsibleContent,
|
|
@@ -394,14 +321,6 @@ import type {
|
|
|
394
321
|
ComboboxSeparator,
|
|
395
322
|
ComboboxTrigger,
|
|
396
323
|
ComboboxValue,
|
|
397
|
-
Command,
|
|
398
|
-
CommandEmpty,
|
|
399
|
-
CommandGroup,
|
|
400
|
-
CommandInput,
|
|
401
|
-
CommandItem,
|
|
402
|
-
CommandList,
|
|
403
|
-
CommandSeparator,
|
|
404
|
-
CommandShortcut,
|
|
405
324
|
ContextMenu,
|
|
406
325
|
ContextMenuCheckboxItem,
|
|
407
326
|
ContextMenuContent,
|
|
@@ -485,9 +404,6 @@ import type {
|
|
|
485
404
|
Kbd,
|
|
486
405
|
KbdGroup,
|
|
487
406
|
Label,
|
|
488
|
-
Marker,
|
|
489
|
-
MarkerContent,
|
|
490
|
-
MarkerIcon,
|
|
491
407
|
Menubar,
|
|
492
408
|
MenubarCheckboxItem,
|
|
493
409
|
MenubarContent,
|
|
@@ -501,18 +417,6 @@ import type {
|
|
|
501
417
|
MenubarSubContent,
|
|
502
418
|
MenubarSubTrigger,
|
|
503
419
|
MenubarTrigger,
|
|
504
|
-
Message,
|
|
505
|
-
MessageAvatar,
|
|
506
|
-
MessageContent,
|
|
507
|
-
MessageFooter,
|
|
508
|
-
MessageGroup,
|
|
509
|
-
MessageHeader,
|
|
510
|
-
MessageScroller,
|
|
511
|
-
MessageScrollerButton,
|
|
512
|
-
MessageScrollerContent,
|
|
513
|
-
MessageScrollerItem,
|
|
514
|
-
MessageScrollerProvider,
|
|
515
|
-
MessageScrollerViewport,
|
|
516
420
|
NativeSelect,
|
|
517
421
|
NativeSelectOptGroup,
|
|
518
422
|
NativeSelectOption,
|
|
@@ -536,26 +440,8 @@ import type {
|
|
|
536
440
|
PopoverContent,
|
|
537
441
|
PopoverTrigger,
|
|
538
442
|
Progress,
|
|
539
|
-
Questionnaire,
|
|
540
|
-
QuestionnaireActions,
|
|
541
|
-
QuestionnaireChoice,
|
|
542
|
-
QuestionnaireChoiceDescription,
|
|
543
|
-
QuestionnaireChoices,
|
|
544
|
-
QuestionnaireDescription,
|
|
545
|
-
QuestionnaireError,
|
|
546
|
-
QuestionnaireInput,
|
|
547
|
-
QuestionnaireItem,
|
|
548
|
-
QuestionnaireNext,
|
|
549
|
-
QuestionnairePrevious,
|
|
550
|
-
QuestionnaireProgress,
|
|
551
|
-
QuestionnaireSkip,
|
|
552
|
-
QuestionnaireSubmit,
|
|
553
|
-
QuestionnaireTitle,
|
|
554
443
|
RadioGroup,
|
|
555
444
|
RadioGroupItem,
|
|
556
|
-
ResizableHandle,
|
|
557
|
-
ResizablePanel,
|
|
558
|
-
ResizablePanelGroup,
|
|
559
445
|
ScrollArea,
|
|
560
446
|
ScrollToTop,
|
|
561
447
|
Search,
|
|
@@ -687,13 +573,6 @@ export const _test_CarouselContent: CarouselContentBaseProps = {} as React.Compo
|
|
|
687
573
|
export const _test_CarouselItem: CarouselItemBaseProps = {} as React.ComponentProps<typeof CarouselItem>;
|
|
688
574
|
export const _test_CarouselNext: CarouselNextBaseProps = {} as React.ComponentProps<typeof CarouselNext>;
|
|
689
575
|
export const _test_CarouselPrevious: CarouselPreviousBaseProps = {} as React.ComponentProps<typeof CarouselPrevious>;
|
|
690
|
-
export const _test_ChartContainer: ChartContainerBaseProps = {} as React.ComponentProps<typeof ChartContainer>;
|
|
691
|
-
export const _test_ChartLegendContent: ChartLegendContentBaseProps = {} as React.ComponentProps<
|
|
692
|
-
typeof ChartLegendContent
|
|
693
|
-
>;
|
|
694
|
-
export const _test_ChartTooltipContent: ChartTooltipContentBaseProps = {} as React.ComponentProps<
|
|
695
|
-
typeof ChartTooltipContent
|
|
696
|
-
>;
|
|
697
576
|
export const _test_Checkbox: CheckboxBaseProps = {} as React.ComponentProps<typeof Checkbox>;
|
|
698
577
|
export const _test_Collapsible: CollapsibleBaseProps = {} as React.ComponentProps<typeof Collapsible>;
|
|
699
578
|
export const _test_CollapsibleContent: CollapsibleContentBaseProps = {} as React.ComponentProps<
|
|
@@ -702,14 +581,6 @@ export const _test_CollapsibleContent: CollapsibleContentBaseProps = {} as React
|
|
|
702
581
|
export const _test_CollapsibleTrigger: CollapsibleTriggerBaseProps = {} as React.ComponentProps<
|
|
703
582
|
typeof CollapsibleTrigger
|
|
704
583
|
>;
|
|
705
|
-
export const _test_Command: CommandBaseProps = {} as React.ComponentProps<typeof Command>;
|
|
706
|
-
export const _test_CommandEmpty: CommandEmptyBaseProps = {} as React.ComponentProps<typeof CommandEmpty>;
|
|
707
|
-
export const _test_CommandGroup: CommandGroupBaseProps = {} as React.ComponentProps<typeof CommandGroup>;
|
|
708
|
-
export const _test_CommandInput: CommandInputBaseProps = {} as React.ComponentProps<typeof CommandInput>;
|
|
709
|
-
export const _test_CommandItem: CommandItemBaseProps = {} as React.ComponentProps<typeof CommandItem>;
|
|
710
|
-
export const _test_CommandList: CommandListBaseProps = {} as React.ComponentProps<typeof CommandList>;
|
|
711
|
-
export const _test_CommandSeparator: CommandSeparatorBaseProps = {} as React.ComponentProps<typeof CommandSeparator>;
|
|
712
|
-
export const _test_CommandShortcut: CommandShortcutBaseProps = {} as React.ComponentProps<typeof CommandShortcut>;
|
|
713
584
|
export const _test_ContextMenu: ContextMenuBaseProps = {} as React.ComponentProps<typeof ContextMenu>;
|
|
714
585
|
export const _test_ContextMenuCheckboxItem: ContextMenuCheckboxItemBaseProps = {} as React.ComponentProps<
|
|
715
586
|
typeof ContextMenuCheckboxItem
|
|
@@ -849,11 +720,6 @@ export const _test_PopoverTrigger: PopoverTriggerBaseProps = {} as React.Compone
|
|
|
849
720
|
export const _test_Progress: ProgressBaseProps = {} as React.ComponentProps<typeof Progress>;
|
|
850
721
|
export const _test_RadioGroup: RadioGroupBaseProps = {} as React.ComponentProps<typeof RadioGroup>;
|
|
851
722
|
export const _test_RadioGroupItem: RadioGroupItemBaseProps = {} as React.ComponentProps<typeof RadioGroupItem>;
|
|
852
|
-
export const _test_ResizableHandle: ResizableHandleBaseProps = {} as React.ComponentProps<typeof ResizableHandle>;
|
|
853
|
-
export const _test_ResizablePanel: ResizablePanelBaseProps = {} as React.ComponentProps<typeof ResizablePanel>;
|
|
854
|
-
export const _test_ResizablePanelGroup: ResizablePanelGroupBaseProps = {} as React.ComponentProps<
|
|
855
|
-
typeof ResizablePanelGroup
|
|
856
|
-
>;
|
|
857
723
|
export const _test_ScrollArea: ScrollAreaBaseProps = {} as React.ComponentProps<typeof ScrollArea>;
|
|
858
724
|
export const _test_ScrollToTop: ScrollToTopBaseProps = {} as React.ComponentProps<typeof ScrollToTop>;
|
|
859
725
|
export const _test_Search: SearchBaseProps = {} as React.ComponentProps<typeof Search>;
|
|
@@ -1019,80 +885,3 @@ export const _test_SidebarProvider: SidebarProviderBaseProps = {} as React.Compo
|
|
|
1019
885
|
export const _test_SidebarRail: SidebarRailBaseProps = {} as React.ComponentProps<typeof SidebarRail>;
|
|
1020
886
|
export const _test_SidebarSeparator: SidebarSeparatorBaseProps = {} as React.ComponentProps<typeof SidebarSeparator>;
|
|
1021
887
|
export const _test_SidebarTrigger: SidebarTriggerBaseProps = {} as React.ComponentProps<typeof SidebarTrigger>;
|
|
1022
|
-
export const _test_AttachmentAction: AttachmentActionBaseProps = {} as React.ComponentProps<typeof AttachmentAction>;
|
|
1023
|
-
export const _test_AttachmentActions: AttachmentActionsBaseProps = {} as React.ComponentProps<typeof AttachmentActions>;
|
|
1024
|
-
export const _test_Attachment: AttachmentBaseProps = {} as React.ComponentProps<typeof Attachment>;
|
|
1025
|
-
export const _test_AttachmentContent: AttachmentContentBaseProps = {} as React.ComponentProps<typeof AttachmentContent>;
|
|
1026
|
-
export const _test_AttachmentDescription: AttachmentDescriptionBaseProps = {} as React.ComponentProps<
|
|
1027
|
-
typeof AttachmentDescription
|
|
1028
|
-
>;
|
|
1029
|
-
export const _test_AttachmentGroup: AttachmentGroupBaseProps = {} as React.ComponentProps<typeof AttachmentGroup>;
|
|
1030
|
-
export const _test_AttachmentMedia: AttachmentMediaBaseProps = {} as React.ComponentProps<typeof AttachmentMedia>;
|
|
1031
|
-
export const _test_AttachmentTitle: AttachmentTitleBaseProps = {} as React.ComponentProps<typeof AttachmentTitle>;
|
|
1032
|
-
export const _test_AttachmentTrigger: AttachmentTriggerBaseProps = {} as React.ComponentProps<typeof AttachmentTrigger>;
|
|
1033
|
-
export const _test_Bubble: BubbleBaseProps = {} as React.ComponentProps<typeof Bubble>;
|
|
1034
|
-
export const _test_BubbleContent: BubbleContentBaseProps = {} as React.ComponentProps<typeof BubbleContent>;
|
|
1035
|
-
export const _test_BubbleGroup: BubbleGroupBaseProps = {} as React.ComponentProps<typeof BubbleGroup>;
|
|
1036
|
-
export const _test_BubbleReactions: BubbleReactionsBaseProps = {} as React.ComponentProps<typeof BubbleReactions>;
|
|
1037
|
-
export const _test_Marker: MarkerBaseProps = {} as React.ComponentProps<typeof Marker>;
|
|
1038
|
-
export const _test_MarkerContent: MarkerContentBaseProps = {} as React.ComponentProps<typeof MarkerContent>;
|
|
1039
|
-
export const _test_MarkerIcon: MarkerIconBaseProps = {} as React.ComponentProps<typeof MarkerIcon>;
|
|
1040
|
-
export const _test_MessageAvatar: MessageAvatarBaseProps = {} as React.ComponentProps<typeof MessageAvatar>;
|
|
1041
|
-
export const _test_Message: MessageBaseProps = {} as React.ComponentProps<typeof Message>;
|
|
1042
|
-
export const _test_MessageContent: MessageContentBaseProps = {} as React.ComponentProps<typeof MessageContent>;
|
|
1043
|
-
export const _test_MessageFooter: MessageFooterBaseProps = {} as React.ComponentProps<typeof MessageFooter>;
|
|
1044
|
-
export const _test_MessageGroup: MessageGroupBaseProps = {} as React.ComponentProps<typeof MessageGroup>;
|
|
1045
|
-
export const _test_MessageHeader: MessageHeaderBaseProps = {} as React.ComponentProps<typeof MessageHeader>;
|
|
1046
|
-
export const _test_MessageScroller: MessageScrollerBaseProps = {} as React.ComponentProps<typeof MessageScroller>;
|
|
1047
|
-
export const _test_MessageScrollerButton: MessageScrollerButtonBaseProps = {} as React.ComponentProps<
|
|
1048
|
-
typeof MessageScrollerButton
|
|
1049
|
-
>;
|
|
1050
|
-
export const _test_MessageScrollerContent: MessageScrollerContentBaseProps = {} as React.ComponentProps<
|
|
1051
|
-
typeof MessageScrollerContent
|
|
1052
|
-
>;
|
|
1053
|
-
export const _test_MessageScrollerItem: MessageScrollerItemBaseProps = {} as React.ComponentProps<
|
|
1054
|
-
typeof MessageScrollerItem
|
|
1055
|
-
>;
|
|
1056
|
-
export const _test_MessageScrollerProvider: MessageScrollerProviderBaseProps = {} as React.ComponentProps<
|
|
1057
|
-
typeof MessageScrollerProvider
|
|
1058
|
-
>;
|
|
1059
|
-
export const _test_MessageScrollerViewport: MessageScrollerViewportBaseProps = {} as React.ComponentProps<
|
|
1060
|
-
typeof MessageScrollerViewport
|
|
1061
|
-
>;
|
|
1062
|
-
export const _test_QuestionnaireActions: QuestionnaireActionsBaseProps = {} as React.ComponentProps<
|
|
1063
|
-
typeof QuestionnaireActions
|
|
1064
|
-
>;
|
|
1065
|
-
export const _test_Questionnaire: QuestionnaireBaseProps = {} as React.ComponentProps<typeof Questionnaire>;
|
|
1066
|
-
export const _test_QuestionnaireChoice: QuestionnaireChoiceBaseProps = {} as React.ComponentProps<
|
|
1067
|
-
typeof QuestionnaireChoice
|
|
1068
|
-
>;
|
|
1069
|
-
export const _test_QuestionnaireChoiceDescription: QuestionnaireChoiceDescriptionBaseProps = {} as React.ComponentProps<
|
|
1070
|
-
typeof QuestionnaireChoiceDescription
|
|
1071
|
-
>;
|
|
1072
|
-
export const _test_QuestionnaireChoices: QuestionnaireChoicesBaseProps = {} as React.ComponentProps<
|
|
1073
|
-
typeof QuestionnaireChoices
|
|
1074
|
-
>;
|
|
1075
|
-
export const _test_QuestionnaireDescription: QuestionnaireDescriptionBaseProps = {} as React.ComponentProps<
|
|
1076
|
-
typeof QuestionnaireDescription
|
|
1077
|
-
>;
|
|
1078
|
-
export const _test_QuestionnaireError: QuestionnaireErrorBaseProps = {} as React.ComponentProps<
|
|
1079
|
-
typeof QuestionnaireError
|
|
1080
|
-
>;
|
|
1081
|
-
export const _test_QuestionnaireInput: QuestionnaireInputBaseProps = {} as React.ComponentProps<
|
|
1082
|
-
typeof QuestionnaireInput
|
|
1083
|
-
>;
|
|
1084
|
-
export const _test_QuestionnaireItem: QuestionnaireItemBaseProps = {} as React.ComponentProps<typeof QuestionnaireItem>;
|
|
1085
|
-
export const _test_QuestionnaireNext: QuestionnaireNextBaseProps = {} as React.ComponentProps<typeof QuestionnaireNext>;
|
|
1086
|
-
export const _test_QuestionnairePrevious: QuestionnairePreviousBaseProps = {} as React.ComponentProps<
|
|
1087
|
-
typeof QuestionnairePrevious
|
|
1088
|
-
>;
|
|
1089
|
-
export const _test_QuestionnaireProgress: QuestionnaireProgressBaseProps = {} as React.ComponentProps<
|
|
1090
|
-
typeof QuestionnaireProgress
|
|
1091
|
-
>;
|
|
1092
|
-
export const _test_QuestionnaireSkip: QuestionnaireSkipBaseProps = {} as React.ComponentProps<typeof QuestionnaireSkip>;
|
|
1093
|
-
export const _test_QuestionnaireSubmit: QuestionnaireSubmitBaseProps = {} as React.ComponentProps<
|
|
1094
|
-
typeof QuestionnaireSubmit
|
|
1095
|
-
>;
|
|
1096
|
-
export const _test_QuestionnaireTitle: QuestionnaireTitleBaseProps = {} as React.ComponentProps<
|
|
1097
|
-
typeof QuestionnaireTitle
|
|
1098
|
-
>;
|
package/src/attachment.tsx
CHANGED
package/src/bubble.tsx
CHANGED
package/src/button-group.tsx
CHANGED
|
@@ -1,16 +1,33 @@
|
|
|
1
|
+
// Native groups follow `orientation` and the separator's own orientation.
|
|
2
|
+
// Joined corner radii from the web CSS child selectors are not applied here.
|
|
3
|
+
// See the divergence registry.
|
|
4
|
+
|
|
1
5
|
import type { ButtonGroupBaseProps, ButtonGroupSeparatorBaseProps, ButtonGroupTextBaseProps } from '@gv-tech/ui-core';
|
|
6
|
+
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
7
|
import * as React from 'react';
|
|
3
8
|
import { Text, View } from 'react-native';
|
|
4
9
|
|
|
5
10
|
import { cn } from './lib/utils';
|
|
11
|
+
import { Separator } from './separator';
|
|
12
|
+
|
|
13
|
+
const buttonGroupVariants = cva('flex w-fit items-stretch', {
|
|
14
|
+
variants: {
|
|
15
|
+
orientation: {
|
|
16
|
+
horizontal: 'flex-row',
|
|
17
|
+
vertical: 'flex-col',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
orientation: 'horizontal',
|
|
22
|
+
},
|
|
23
|
+
});
|
|
6
24
|
|
|
7
|
-
// TODO: Implement proper React Native ButtonGroup logic
|
|
8
25
|
function ButtonGroup({
|
|
9
26
|
className,
|
|
10
|
-
orientation
|
|
27
|
+
orientation = 'horizontal',
|
|
11
28
|
...props
|
|
12
|
-
}: React.ComponentProps<typeof View> & ButtonGroupBaseProps) {
|
|
13
|
-
return <View className={cn(
|
|
29
|
+
}: React.ComponentProps<typeof View> & VariantProps<typeof buttonGroupVariants> & ButtonGroupBaseProps) {
|
|
30
|
+
return <View className={cn(buttonGroupVariants({ orientation }), className)} {...props} />;
|
|
14
31
|
}
|
|
15
32
|
|
|
16
33
|
function ButtonGroupText({
|
|
@@ -18,18 +35,20 @@ function ButtonGroupText({
|
|
|
18
35
|
asChild: _asChild,
|
|
19
36
|
...props
|
|
20
37
|
}: React.ComponentProps<typeof Text> & ButtonGroupTextBaseProps) {
|
|
21
|
-
return
|
|
38
|
+
return (
|
|
39
|
+
<Text
|
|
40
|
+
className={cn('bg-muted text-foreground rounded-lg border px-2.5 text-sm font-medium', className)}
|
|
41
|
+
{...props}
|
|
42
|
+
/>
|
|
43
|
+
);
|
|
22
44
|
}
|
|
23
45
|
|
|
24
46
|
function ButtonGroupSeparator({
|
|
25
47
|
className,
|
|
26
|
-
orientation
|
|
48
|
+
orientation = 'vertical',
|
|
27
49
|
...props
|
|
28
|
-
}: React.ComponentProps<typeof
|
|
29
|
-
return <
|
|
50
|
+
}: React.ComponentProps<typeof Separator> & ButtonGroupSeparatorBaseProps) {
|
|
51
|
+
return <Separator orientation={orientation} className={cn('bg-border', className)} {...props} />;
|
|
30
52
|
}
|
|
31
53
|
|
|
32
|
-
// Stub for buttonGroupVariants to satisfy web/native shared imports if needed
|
|
33
|
-
const buttonGroupVariants = () => '';
|
|
34
|
-
|
|
35
54
|
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
|
package/src/chart.tsx
CHANGED
package/src/command.tsx
CHANGED
package/src/index.ts
CHANGED
|
@@ -62,16 +62,6 @@ export type { CardProps } from './card';
|
|
|
62
62
|
// Carousel
|
|
63
63
|
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from './carousel';
|
|
64
64
|
|
|
65
|
-
// Chart
|
|
66
|
-
export {
|
|
67
|
-
ChartContainer,
|
|
68
|
-
ChartLegend,
|
|
69
|
-
ChartLegendContent,
|
|
70
|
-
ChartStyle,
|
|
71
|
-
ChartTooltip,
|
|
72
|
-
ChartTooltipContent,
|
|
73
|
-
} from './chart';
|
|
74
|
-
|
|
75
65
|
// Checkbox
|
|
76
66
|
export { Checkbox } from './checkbox';
|
|
77
67
|
export type { CheckboxProps } from './checkbox';
|
|
@@ -79,19 +69,6 @@ export type { CheckboxProps } from './checkbox';
|
|
|
79
69
|
// Collapsible
|
|
80
70
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './collapsible';
|
|
81
71
|
|
|
82
|
-
// Command
|
|
83
|
-
export {
|
|
84
|
-
Command,
|
|
85
|
-
CommandDialog,
|
|
86
|
-
CommandEmpty,
|
|
87
|
-
CommandGroup,
|
|
88
|
-
CommandInput,
|
|
89
|
-
CommandItem,
|
|
90
|
-
CommandList,
|
|
91
|
-
CommandSeparator,
|
|
92
|
-
CommandShortcut,
|
|
93
|
-
} from './command';
|
|
94
|
-
|
|
95
72
|
// Context Menu
|
|
96
73
|
export {
|
|
97
74
|
ContextMenu,
|
|
@@ -224,9 +201,6 @@ export { Progress } from './progress';
|
|
|
224
201
|
export { RadioGroup, RadioGroupItem } from './radio-group';
|
|
225
202
|
export type { RadioGroupItemProps, RadioGroupProps } from './radio-group';
|
|
226
203
|
|
|
227
|
-
// Resizable
|
|
228
|
-
export { ResizableHandle, ResizablePanel, ResizablePanelGroup } from './resizable';
|
|
229
|
-
|
|
230
204
|
// Scroll Area
|
|
231
205
|
export { ScrollArea } from './scroll-area';
|
|
232
206
|
|
|
@@ -278,9 +252,6 @@ export { Skeleton } from './skeleton';
|
|
|
278
252
|
// Slider
|
|
279
253
|
export { Slider } from './slider';
|
|
280
254
|
|
|
281
|
-
// Sonner
|
|
282
|
-
export { Toaster as Sonner } from './sonner';
|
|
283
|
-
|
|
284
255
|
// Switch
|
|
285
256
|
export { Switch } from './switch';
|
|
286
257
|
|
|
@@ -437,53 +408,7 @@ export {
|
|
|
437
408
|
useSidebar,
|
|
438
409
|
} from './sidebar';
|
|
439
410
|
|
|
440
|
-
//
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
AttachmentActions,
|
|
445
|
-
AttachmentContent,
|
|
446
|
-
AttachmentDescription,
|
|
447
|
-
AttachmentGroup,
|
|
448
|
-
AttachmentMedia,
|
|
449
|
-
AttachmentTitle,
|
|
450
|
-
AttachmentTrigger,
|
|
451
|
-
} from './attachment';
|
|
452
|
-
|
|
453
|
-
// Bubble
|
|
454
|
-
export { Bubble, BubbleContent, BubbleGroup, BubbleReactions } from './bubble';
|
|
455
|
-
|
|
456
|
-
// Marker
|
|
457
|
-
export { Marker, MarkerContent, MarkerIcon } from './marker';
|
|
458
|
-
|
|
459
|
-
// Message
|
|
460
|
-
export { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader } from './message';
|
|
461
|
-
|
|
462
|
-
// Message Scroller
|
|
463
|
-
export {
|
|
464
|
-
MessageScroller,
|
|
465
|
-
MessageScrollerButton,
|
|
466
|
-
MessageScrollerContent,
|
|
467
|
-
MessageScrollerItem,
|
|
468
|
-
MessageScrollerProvider,
|
|
469
|
-
MessageScrollerViewport,
|
|
470
|
-
} from './message-scroller';
|
|
471
|
-
|
|
472
|
-
// Questionnaire
|
|
473
|
-
export {
|
|
474
|
-
Questionnaire,
|
|
475
|
-
QuestionnaireActions,
|
|
476
|
-
QuestionnaireChoice,
|
|
477
|
-
QuestionnaireChoiceDescription,
|
|
478
|
-
QuestionnaireChoices,
|
|
479
|
-
QuestionnaireDescription,
|
|
480
|
-
QuestionnaireError,
|
|
481
|
-
QuestionnaireInput,
|
|
482
|
-
QuestionnaireItem,
|
|
483
|
-
QuestionnaireNext,
|
|
484
|
-
QuestionnairePrevious,
|
|
485
|
-
QuestionnaireProgress,
|
|
486
|
-
QuestionnaireSkip,
|
|
487
|
-
QuestionnaireSubmit,
|
|
488
|
-
QuestionnaireTitle,
|
|
489
|
-
} from './questionnaire';
|
|
411
|
+
// Chart, Command, Resizable, and Sonner are web-only and are not exported.
|
|
412
|
+
// Attachment, Bubble, Marker, Message, Message Scroller, and Questionnaire
|
|
413
|
+
// stay unexported until the native behavior is real. Contracts remain in ui-core.
|
|
414
|
+
// See docs/reference/parity-matrix.md.
|
package/src/marker.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// Not exported from @gv-tech/ui-native until the native behavior is real. See docs/reference/parity-matrix.md.
|
|
1
2
|
import type { MarkerBaseProps, MarkerContentBaseProps, MarkerIconBaseProps } from '@gv-tech/ui-core';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
import { View } from 'react-native';
|
package/src/message-scroller.tsx
CHANGED
package/src/message.tsx
CHANGED
package/src/questionnaire.tsx
CHANGED
package/src/resizable.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// Not exported from @gv-tech/ui-native. Web-only. Use a fixed layout. See docs/reference/parity-matrix.md.
|
|
1
2
|
import type { ResizableHandleBaseProps, ResizablePanelBaseProps, ResizablePanelGroupBaseProps } from '@gv-tech/ui-core';
|
|
2
3
|
import * as React from 'react';
|
|
3
4
|
import { View } from 'react-native';
|
package/src/sonner.tsx
CHANGED
package/src/switch.tsx
CHANGED
|
@@ -10,24 +10,35 @@ export interface SwitchProps
|
|
|
10
10
|
SwitchBaseProps {}
|
|
11
11
|
|
|
12
12
|
const Switch = React.forwardRef<React.ComponentRef<typeof SwitchPrimitives.Root>, SwitchProps>(
|
|
13
|
-
({ className, checked, onCheckedChange, ...props }, ref) =>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<SwitchPrimitives.Thumb
|
|
13
|
+
({ className, checked, onCheckedChange, ...props }, ref) => {
|
|
14
|
+
const isChecked = checked ?? false;
|
|
15
|
+
// The native primitive never sets data-state, so those variants never match on device.
|
|
16
|
+
const state = isChecked ? 'checked' : 'unchecked';
|
|
17
|
+
const dataState = { dataSet: { state } };
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<SwitchPrimitives.Root
|
|
21
|
+
ref={ref}
|
|
22
|
+
checked={isChecked}
|
|
23
|
+
onCheckedChange={onCheckedChange || (() => {})}
|
|
25
24
|
className={cn(
|
|
26
|
-
'
|
|
25
|
+
'peer focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input inline-flex h-6 w-11 shrink-0 cursor-pointer flex-row items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50',
|
|
26
|
+
isChecked ? 'bg-primary' : 'bg-input',
|
|
27
|
+
className,
|
|
27
28
|
)}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
{...props}
|
|
30
|
+
{...dataState}
|
|
31
|
+
>
|
|
32
|
+
<SwitchPrimitives.Thumb
|
|
33
|
+
{...dataState}
|
|
34
|
+
className={cn(
|
|
35
|
+
'bg-background pointer-events-none block h-5 w-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-[18px] data-[state=unchecked]:translate-x-0',
|
|
36
|
+
isChecked ? 'translate-x-[18px]' : 'translate-x-0',
|
|
37
|
+
)}
|
|
38
|
+
/>
|
|
39
|
+
</SwitchPrimitives.Root>
|
|
40
|
+
);
|
|
41
|
+
},
|
|
31
42
|
);
|
|
32
43
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
33
44
|
|