@gv-tech/ui-native 2.27.3 → 2.29.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.d.ts +44 -1
- package/dist/__contracts.d.ts.map +1 -1
- package/dist/attachment.d.ts +12 -0
- package/dist/attachment.d.ts.map +1 -0
- package/dist/badge.d.ts +1 -1
- package/dist/badge.d.ts.map +1 -1
- package/dist/breadcrumb.d.ts +27 -8
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/bubble.d.ts +7 -0
- package/dist/bubble.d.ts.map +1 -0
- package/dist/button-group.d.ts +3 -3
- package/dist/button-group.d.ts.map +1 -1
- package/dist/button.d.ts +5 -2
- package/dist/button.d.ts.map +1 -1
- package/dist/calendar.d.ts +10 -7
- package/dist/calendar.d.ts.map +1 -1
- package/dist/carousel.d.ts +29 -6
- package/dist/carousel.d.ts.map +1 -1
- package/dist/combobox.d.ts +16 -16
- package/dist/combobox.d.ts.map +1 -1
- package/dist/direction.d.ts +1 -1
- package/dist/direction.d.ts.map +1 -1
- package/dist/empty.d.ts +6 -6
- package/dist/empty.d.ts.map +1 -1
- package/dist/field.d.ts +10 -10
- package/dist/field.d.ts.map +1 -1
- package/dist/hooks/use-theme.d.ts +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/input-group.d.ts +6 -6
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-otp.d.ts +4 -4
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/item.d.ts +10 -10
- package/dist/item.d.ts.map +1 -1
- package/dist/kbd.d.ts +2 -2
- package/dist/kbd.d.ts.map +1 -1
- package/dist/marker.d.ts +6 -0
- package/dist/marker.d.ts.map +1 -0
- package/dist/message-scroller.d.ts +9 -0
- package/dist/message-scroller.d.ts.map +1 -0
- package/dist/message.d.ts +9 -0
- package/dist/message.d.ts.map +1 -0
- package/dist/native-select.d.ts +3 -3
- package/dist/native-select.d.ts.map +1 -1
- package/dist/pagination.d.ts +15 -8
- package/dist/pagination.d.ts.map +1 -1
- package/dist/questionnaire.d.ts +18 -0
- package/dist/questionnaire.d.ts.map +1 -0
- package/dist/scroll-area.d.ts +9 -2
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-to-top.d.ts +1 -1
- package/dist/scroll-to-top.d.ts.map +1 -1
- package/dist/search.d.ts +6 -3
- package/dist/search.d.ts.map +1 -1
- package/dist/sidebar.d.ts +23 -23
- package/dist/sidebar.d.ts.map +1 -1
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/spinner.d.ts +1 -1
- package/dist/spinner.d.ts.map +1 -1
- package/dist/support-fab.d.ts +1 -1
- package/dist/support-fab.d.ts.map +1 -1
- package/dist/table-of-contents.d.ts +4 -4
- package/dist/table-of-contents.d.ts.map +1 -1
- package/dist/theme-provider.d.ts +1 -1
- package/dist/theme-provider.d.ts.map +1 -1
- package/dist/theme-toggle.d.ts +1 -1
- package/dist/theme-toggle.d.ts.map +1 -1
- package/dist/ui-native.cjs +2 -2
- package/dist/ui-native.esm.js +379 -266
- package/package.json +2 -1
- package/src/__contracts.ts +163 -0
- package/src/attachment.tsx +51 -0
- package/src/bubble.tsx +26 -0
- package/src/index.ts +51 -0
- package/src/marker.tsx +17 -0
- package/src/message-scroller.tsx +39 -0
- package/src/message.tsx +36 -0
- package/src/questionnaire.tsx +87 -0
- package/src/scroll-to-top.tsx +1 -1
- package/src/support-fab.tsx +25 -3
- package/src/switch.tsx +20 -58
- package/src/table-of-contents.tsx +7 -2
- package/src/tabs.tsx +16 -5
- package/dist/alert-dialog.d.ts +0 -51
- package/dist/alert-dialog.d.ts.map +0 -1
- package/dist/alert.d.ts +0 -10
- package/dist/alert.d.ts.map +0 -1
- package/dist/card.d.ts +0 -13
- package/dist/card.d.ts.map +0 -1
- package/dist/checkbox.d.ts +0 -15
- package/dist/checkbox.d.ts.map +0 -1
- package/dist/context-menu.d.ts +0 -61
- package/dist/context-menu.d.ts.map +0 -1
- package/dist/dialog.d.ts +0 -61
- package/dist/dialog.d.ts.map +0 -1
- package/dist/drawer.d.ts +0 -33
- package/dist/drawer.d.ts.map +0 -1
- package/dist/dropdown-menu.d.ts +0 -60
- package/dist/dropdown-menu.d.ts.map +0 -1
- package/dist/form.d.ts +0 -33
- package/dist/form.d.ts.map +0 -1
- package/dist/hover-card.d.ts +0 -23
- package/dist/hover-card.d.ts.map +0 -1
- package/dist/input.d.ts +0 -8
- package/dist/input.d.ts.map +0 -1
- package/dist/label.d.ts +0 -9
- package/dist/label.d.ts.map +0 -1
- package/dist/menubar.d.ts +0 -53
- package/dist/menubar.d.ts.map +0 -1
- package/dist/navigation-menu.d.ts +0 -14
- package/dist/navigation-menu.d.ts.map +0 -1
- package/dist/popover.d.ts +0 -9
- package/dist/popover.d.ts.map +0 -1
- package/dist/progress.d.ts +0 -6
- package/dist/progress.d.ts.map +0 -1
- package/dist/radio-group.d.ts +0 -11
- package/dist/radio-group.d.ts.map +0 -1
- package/dist/select.d.ts +0 -59
- package/dist/select.d.ts.map +0 -1
- package/dist/separator.d.ts +0 -9
- package/dist/separator.d.ts.map +0 -1
- package/dist/sheet.d.ts +0 -59
- package/dist/sheet.d.ts.map +0 -1
- package/dist/switch.d.ts +0 -8
- package/dist/switch.d.ts.map +0 -1
- package/dist/table.d.ts +0 -12
- package/dist/table.d.ts.map +0 -1
- package/dist/tabs.d.ts +0 -30
- package/dist/tabs.d.ts.map +0 -1
- package/dist/text.d.ts +0 -13
- package/dist/text.d.ts.map +0 -1
- package/dist/textarea.d.ts +0 -6
- package/dist/textarea.d.ts.map +0 -1
- package/dist/toast.d.ts +0 -35
- package/dist/toast.d.ts.map +0 -1
- package/dist/toggle-group.d.ts +0 -11
- package/dist/toggle-group.d.ts.map +0 -1
- package/dist/toggle.d.ts +0 -8
- package/dist/toggle.d.ts.map +0 -1
- package/dist/tooltip.d.ts +0 -30
- package/dist/tooltip.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gv-tech/ui-native",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.0",
|
|
4
4
|
"description": "React Native implementations of the GV Tech design system components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"clsx": "^2.1.1",
|
|
70
70
|
"nativewind": "^5.0.0-preview.4",
|
|
71
71
|
"react-hook-form": "^7.71.1",
|
|
72
|
+
"react-native-css": "^3.0.1",
|
|
72
73
|
"react-native-css-interop": "^0.2.4",
|
|
73
74
|
"tailwind-merge": "^3.4.1",
|
|
74
75
|
"tailwindcss": "^4.1.18"
|
package/src/__contracts.ts
CHANGED
|
@@ -20,6 +20,15 @@ import {
|
|
|
20
20
|
AlertDialogTrigger,
|
|
21
21
|
AlertTitle,
|
|
22
22
|
AspectRatio,
|
|
23
|
+
Attachment,
|
|
24
|
+
AttachmentAction,
|
|
25
|
+
AttachmentActions,
|
|
26
|
+
AttachmentContent,
|
|
27
|
+
AttachmentDescription,
|
|
28
|
+
AttachmentGroup,
|
|
29
|
+
AttachmentMedia,
|
|
30
|
+
AttachmentTitle,
|
|
31
|
+
AttachmentTrigger,
|
|
23
32
|
Avatar,
|
|
24
33
|
AvatarFallback,
|
|
25
34
|
AvatarImage,
|
|
@@ -31,6 +40,10 @@ import {
|
|
|
31
40
|
BreadcrumbList,
|
|
32
41
|
BreadcrumbPage,
|
|
33
42
|
BreadcrumbSeparator,
|
|
43
|
+
Bubble,
|
|
44
|
+
BubbleContent,
|
|
45
|
+
BubbleGroup,
|
|
46
|
+
BubbleReactions,
|
|
34
47
|
Button,
|
|
35
48
|
ButtonGroup,
|
|
36
49
|
ButtonGroupSeparator,
|
|
@@ -155,6 +168,9 @@ import {
|
|
|
155
168
|
Kbd,
|
|
156
169
|
KbdGroup,
|
|
157
170
|
Label,
|
|
171
|
+
Marker,
|
|
172
|
+
MarkerContent,
|
|
173
|
+
MarkerIcon,
|
|
158
174
|
Menubar,
|
|
159
175
|
MenubarCheckboxItem,
|
|
160
176
|
MenubarContent,
|
|
@@ -168,6 +184,18 @@ import {
|
|
|
168
184
|
MenubarSubContent,
|
|
169
185
|
MenubarSubTrigger,
|
|
170
186
|
MenubarTrigger,
|
|
187
|
+
Message,
|
|
188
|
+
MessageAvatar,
|
|
189
|
+
MessageContent,
|
|
190
|
+
MessageFooter,
|
|
191
|
+
MessageGroup,
|
|
192
|
+
MessageHeader,
|
|
193
|
+
MessageScroller,
|
|
194
|
+
MessageScrollerButton,
|
|
195
|
+
MessageScrollerContent,
|
|
196
|
+
MessageScrollerItem,
|
|
197
|
+
MessageScrollerProvider,
|
|
198
|
+
MessageScrollerViewport,
|
|
171
199
|
NativeSelect,
|
|
172
200
|
NativeSelectOptGroup,
|
|
173
201
|
NativeSelectOption,
|
|
@@ -191,6 +219,21 @@ import {
|
|
|
191
219
|
PopoverContent,
|
|
192
220
|
PopoverTrigger,
|
|
193
221
|
Progress,
|
|
222
|
+
Questionnaire,
|
|
223
|
+
QuestionnaireActions,
|
|
224
|
+
QuestionnaireChoice,
|
|
225
|
+
QuestionnaireChoiceDescription,
|
|
226
|
+
QuestionnaireChoices,
|
|
227
|
+
QuestionnaireDescription,
|
|
228
|
+
QuestionnaireError,
|
|
229
|
+
QuestionnaireInput,
|
|
230
|
+
QuestionnaireItem,
|
|
231
|
+
QuestionnaireNext,
|
|
232
|
+
QuestionnairePrevious,
|
|
233
|
+
QuestionnaireProgress,
|
|
234
|
+
QuestionnaireSkip,
|
|
235
|
+
QuestionnaireSubmit,
|
|
236
|
+
QuestionnaireTitle,
|
|
194
237
|
RadioGroup,
|
|
195
238
|
RadioGroupItem,
|
|
196
239
|
ResizableHandle,
|
|
@@ -295,6 +338,15 @@ import type {
|
|
|
295
338
|
AlertDialogTriggerBaseProps,
|
|
296
339
|
AlertTitleBaseProps,
|
|
297
340
|
AspectRatioBaseProps,
|
|
341
|
+
AttachmentActionBaseProps,
|
|
342
|
+
AttachmentActionsBaseProps,
|
|
343
|
+
AttachmentBaseProps,
|
|
344
|
+
AttachmentContentBaseProps,
|
|
345
|
+
AttachmentDescriptionBaseProps,
|
|
346
|
+
AttachmentGroupBaseProps,
|
|
347
|
+
AttachmentMediaBaseProps,
|
|
348
|
+
AttachmentTitleBaseProps,
|
|
349
|
+
AttachmentTriggerBaseProps,
|
|
298
350
|
AvatarBaseProps,
|
|
299
351
|
AvatarFallbackBaseProps,
|
|
300
352
|
AvatarImageBaseProps,
|
|
@@ -306,6 +358,10 @@ import type {
|
|
|
306
358
|
BreadcrumbListBaseProps,
|
|
307
359
|
BreadcrumbPageBaseProps,
|
|
308
360
|
BreadcrumbSeparatorBaseProps,
|
|
361
|
+
BubbleBaseProps,
|
|
362
|
+
BubbleContentBaseProps,
|
|
363
|
+
BubbleGroupBaseProps,
|
|
364
|
+
BubbleReactionsBaseProps,
|
|
309
365
|
ButtonBaseProps,
|
|
310
366
|
ButtonGroupBaseProps,
|
|
311
367
|
ButtonGroupSeparatorBaseProps,
|
|
@@ -430,6 +486,9 @@ import type {
|
|
|
430
486
|
KbdBaseProps,
|
|
431
487
|
KbdGroupBaseProps,
|
|
432
488
|
LabelBaseProps,
|
|
489
|
+
MarkerBaseProps,
|
|
490
|
+
MarkerContentBaseProps,
|
|
491
|
+
MarkerIconBaseProps,
|
|
433
492
|
MenubarBaseProps,
|
|
434
493
|
MenubarCheckboxItemBaseProps,
|
|
435
494
|
MenubarContentBaseProps,
|
|
@@ -443,6 +502,18 @@ import type {
|
|
|
443
502
|
MenubarSubContentBaseProps,
|
|
444
503
|
MenubarSubTriggerBaseProps,
|
|
445
504
|
MenubarTriggerBaseProps,
|
|
505
|
+
MessageAvatarBaseProps,
|
|
506
|
+
MessageBaseProps,
|
|
507
|
+
MessageContentBaseProps,
|
|
508
|
+
MessageFooterBaseProps,
|
|
509
|
+
MessageGroupBaseProps,
|
|
510
|
+
MessageHeaderBaseProps,
|
|
511
|
+
MessageScrollerBaseProps,
|
|
512
|
+
MessageScrollerButtonBaseProps,
|
|
513
|
+
MessageScrollerContentBaseProps,
|
|
514
|
+
MessageScrollerItemBaseProps,
|
|
515
|
+
MessageScrollerProviderBaseProps,
|
|
516
|
+
MessageScrollerViewportBaseProps,
|
|
446
517
|
NativeSelectBaseProps,
|
|
447
518
|
NativeSelectOptGroupBaseProps,
|
|
448
519
|
NativeSelectOptionBaseProps,
|
|
@@ -466,6 +537,21 @@ import type {
|
|
|
466
537
|
PopoverContentBaseProps,
|
|
467
538
|
PopoverTriggerBaseProps,
|
|
468
539
|
ProgressBaseProps,
|
|
540
|
+
QuestionnaireActionsBaseProps,
|
|
541
|
+
QuestionnaireBaseProps,
|
|
542
|
+
QuestionnaireChoiceBaseProps,
|
|
543
|
+
QuestionnaireChoiceDescriptionBaseProps,
|
|
544
|
+
QuestionnaireChoicesBaseProps,
|
|
545
|
+
QuestionnaireDescriptionBaseProps,
|
|
546
|
+
QuestionnaireErrorBaseProps,
|
|
547
|
+
QuestionnaireInputBaseProps,
|
|
548
|
+
QuestionnaireItemBaseProps,
|
|
549
|
+
QuestionnaireNextBaseProps,
|
|
550
|
+
QuestionnairePreviousBaseProps,
|
|
551
|
+
QuestionnaireProgressBaseProps,
|
|
552
|
+
QuestionnaireSkipBaseProps,
|
|
553
|
+
QuestionnaireSubmitBaseProps,
|
|
554
|
+
QuestionnaireTitleBaseProps,
|
|
469
555
|
RadioGroupBaseProps,
|
|
470
556
|
RadioGroupItemBaseProps,
|
|
471
557
|
ResizableHandleBaseProps,
|
|
@@ -934,5 +1020,82 @@ export const _test_SidebarProvider: SidebarProviderBaseProps = {} as React.Compo
|
|
|
934
1020
|
export const _test_SidebarRail: SidebarRailBaseProps = {} as React.ComponentProps<typeof SidebarRail>;
|
|
935
1021
|
export const _test_SidebarSeparator: SidebarSeparatorBaseProps = {} as React.ComponentProps<typeof SidebarSeparator>;
|
|
936
1022
|
export const _test_SidebarTrigger: SidebarTriggerBaseProps = {} as React.ComponentProps<typeof SidebarTrigger>;
|
|
1023
|
+
export const _test_AttachmentAction: AttachmentActionBaseProps = {} as React.ComponentProps<typeof AttachmentAction>;
|
|
1024
|
+
export const _test_AttachmentActions: AttachmentActionsBaseProps = {} as React.ComponentProps<typeof AttachmentActions>;
|
|
1025
|
+
export const _test_Attachment: AttachmentBaseProps = {} as React.ComponentProps<typeof Attachment>;
|
|
1026
|
+
export const _test_AttachmentContent: AttachmentContentBaseProps = {} as React.ComponentProps<typeof AttachmentContent>;
|
|
1027
|
+
export const _test_AttachmentDescription: AttachmentDescriptionBaseProps = {} as React.ComponentProps<
|
|
1028
|
+
typeof AttachmentDescription
|
|
1029
|
+
>;
|
|
1030
|
+
export const _test_AttachmentGroup: AttachmentGroupBaseProps = {} as React.ComponentProps<typeof AttachmentGroup>;
|
|
1031
|
+
export const _test_AttachmentMedia: AttachmentMediaBaseProps = {} as React.ComponentProps<typeof AttachmentMedia>;
|
|
1032
|
+
export const _test_AttachmentTitle: AttachmentTitleBaseProps = {} as React.ComponentProps<typeof AttachmentTitle>;
|
|
1033
|
+
export const _test_AttachmentTrigger: AttachmentTriggerBaseProps = {} as React.ComponentProps<typeof AttachmentTrigger>;
|
|
1034
|
+
export const _test_Bubble: BubbleBaseProps = {} as React.ComponentProps<typeof Bubble>;
|
|
1035
|
+
export const _test_BubbleContent: BubbleContentBaseProps = {} as React.ComponentProps<typeof BubbleContent>;
|
|
1036
|
+
export const _test_BubbleGroup: BubbleGroupBaseProps = {} as React.ComponentProps<typeof BubbleGroup>;
|
|
1037
|
+
export const _test_BubbleReactions: BubbleReactionsBaseProps = {} as React.ComponentProps<typeof BubbleReactions>;
|
|
1038
|
+
export const _test_Marker: MarkerBaseProps = {} as React.ComponentProps<typeof Marker>;
|
|
1039
|
+
export const _test_MarkerContent: MarkerContentBaseProps = {} as React.ComponentProps<typeof MarkerContent>;
|
|
1040
|
+
export const _test_MarkerIcon: MarkerIconBaseProps = {} as React.ComponentProps<typeof MarkerIcon>;
|
|
1041
|
+
export const _test_MessageAvatar: MessageAvatarBaseProps = {} as React.ComponentProps<typeof MessageAvatar>;
|
|
1042
|
+
export const _test_Message: MessageBaseProps = {} as React.ComponentProps<typeof Message>;
|
|
1043
|
+
export const _test_MessageContent: MessageContentBaseProps = {} as React.ComponentProps<typeof MessageContent>;
|
|
1044
|
+
export const _test_MessageFooter: MessageFooterBaseProps = {} as React.ComponentProps<typeof MessageFooter>;
|
|
1045
|
+
export const _test_MessageGroup: MessageGroupBaseProps = {} as React.ComponentProps<typeof MessageGroup>;
|
|
1046
|
+
export const _test_MessageHeader: MessageHeaderBaseProps = {} as React.ComponentProps<typeof MessageHeader>;
|
|
1047
|
+
export const _test_MessageScroller: MessageScrollerBaseProps = {} as React.ComponentProps<typeof MessageScroller>;
|
|
1048
|
+
export const _test_MessageScrollerButton: MessageScrollerButtonBaseProps = {} as React.ComponentProps<
|
|
1049
|
+
typeof MessageScrollerButton
|
|
1050
|
+
>;
|
|
1051
|
+
export const _test_MessageScrollerContent: MessageScrollerContentBaseProps = {} as React.ComponentProps<
|
|
1052
|
+
typeof MessageScrollerContent
|
|
1053
|
+
>;
|
|
1054
|
+
export const _test_MessageScrollerItem: MessageScrollerItemBaseProps = {} as React.ComponentProps<
|
|
1055
|
+
typeof MessageScrollerItem
|
|
1056
|
+
>;
|
|
1057
|
+
export const _test_MessageScrollerProvider: MessageScrollerProviderBaseProps = {} as React.ComponentProps<
|
|
1058
|
+
typeof MessageScrollerProvider
|
|
1059
|
+
>;
|
|
1060
|
+
export const _test_MessageScrollerViewport: MessageScrollerViewportBaseProps = {} as React.ComponentProps<
|
|
1061
|
+
typeof MessageScrollerViewport
|
|
1062
|
+
>;
|
|
1063
|
+
export const _test_QuestionnaireActions: QuestionnaireActionsBaseProps = {} as React.ComponentProps<
|
|
1064
|
+
typeof QuestionnaireActions
|
|
1065
|
+
>;
|
|
1066
|
+
export const _test_Questionnaire: QuestionnaireBaseProps = {} as React.ComponentProps<typeof Questionnaire>;
|
|
1067
|
+
export const _test_QuestionnaireChoice: QuestionnaireChoiceBaseProps = {} as React.ComponentProps<
|
|
1068
|
+
typeof QuestionnaireChoice
|
|
1069
|
+
>;
|
|
1070
|
+
export const _test_QuestionnaireChoiceDescription: QuestionnaireChoiceDescriptionBaseProps = {} as React.ComponentProps<
|
|
1071
|
+
typeof QuestionnaireChoiceDescription
|
|
1072
|
+
>;
|
|
1073
|
+
export const _test_QuestionnaireChoices: QuestionnaireChoicesBaseProps = {} as React.ComponentProps<
|
|
1074
|
+
typeof QuestionnaireChoices
|
|
1075
|
+
>;
|
|
1076
|
+
export const _test_QuestionnaireDescription: QuestionnaireDescriptionBaseProps = {} as React.ComponentProps<
|
|
1077
|
+
typeof QuestionnaireDescription
|
|
1078
|
+
>;
|
|
1079
|
+
export const _test_QuestionnaireError: QuestionnaireErrorBaseProps = {} as React.ComponentProps<
|
|
1080
|
+
typeof QuestionnaireError
|
|
1081
|
+
>;
|
|
1082
|
+
export const _test_QuestionnaireInput: QuestionnaireInputBaseProps = {} as React.ComponentProps<
|
|
1083
|
+
typeof QuestionnaireInput
|
|
1084
|
+
>;
|
|
1085
|
+
export const _test_QuestionnaireItem: QuestionnaireItemBaseProps = {} as React.ComponentProps<typeof QuestionnaireItem>;
|
|
1086
|
+
export const _test_QuestionnaireNext: QuestionnaireNextBaseProps = {} as React.ComponentProps<typeof QuestionnaireNext>;
|
|
1087
|
+
export const _test_QuestionnairePrevious: QuestionnairePreviousBaseProps = {} as React.ComponentProps<
|
|
1088
|
+
typeof QuestionnairePrevious
|
|
1089
|
+
>;
|
|
1090
|
+
export const _test_QuestionnaireProgress: QuestionnaireProgressBaseProps = {} as React.ComponentProps<
|
|
1091
|
+
typeof QuestionnaireProgress
|
|
1092
|
+
>;
|
|
1093
|
+
export const _test_QuestionnaireSkip: QuestionnaireSkipBaseProps = {} as React.ComponentProps<typeof QuestionnaireSkip>;
|
|
1094
|
+
export const _test_QuestionnaireSubmit: QuestionnaireSubmitBaseProps = {} as React.ComponentProps<
|
|
1095
|
+
typeof QuestionnaireSubmit
|
|
1096
|
+
>;
|
|
1097
|
+
export const _test_QuestionnaireTitle: QuestionnaireTitleBaseProps = {} as React.ComponentProps<
|
|
1098
|
+
typeof QuestionnaireTitle
|
|
1099
|
+
>;
|
|
937
1100
|
|
|
938
1101
|
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
AttachmentActionBaseProps,
|
|
3
|
+
AttachmentActionsBaseProps,
|
|
4
|
+
AttachmentBaseProps,
|
|
5
|
+
AttachmentContentBaseProps,
|
|
6
|
+
AttachmentDescriptionBaseProps,
|
|
7
|
+
AttachmentGroupBaseProps,
|
|
8
|
+
AttachmentMediaBaseProps,
|
|
9
|
+
AttachmentTitleBaseProps,
|
|
10
|
+
AttachmentTriggerBaseProps,
|
|
11
|
+
} from '@gv-tech/ui-core';
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import { Pressable, View } from 'react-native';
|
|
14
|
+
|
|
15
|
+
// Web-first stub: structure-only passthrough until the full native
|
|
16
|
+
// implementation lands. See docs/reference/parity-matrix.md.
|
|
17
|
+
export const Attachment: React.FC<AttachmentBaseProps> = ({ children, className }) => {
|
|
18
|
+
return <View className={className}>{children}</View>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const AttachmentMedia: React.FC<AttachmentMediaBaseProps> = ({ children, className }) => {
|
|
22
|
+
return <View className={className}>{children}</View>;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const AttachmentContent: React.FC<AttachmentContentBaseProps> = ({ children, className }) => {
|
|
26
|
+
return <View className={className}>{children}</View>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const AttachmentTitle: React.FC<AttachmentTitleBaseProps> = ({ children, className }) => {
|
|
30
|
+
return <View className={className}>{children}</View>;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const AttachmentDescription: React.FC<AttachmentDescriptionBaseProps> = ({ children, className }) => {
|
|
34
|
+
return <View className={className}>{children}</View>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const AttachmentActions: React.FC<AttachmentActionsBaseProps> = ({ children, className }) => {
|
|
38
|
+
return <View className={className}>{children}</View>;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const AttachmentAction: React.FC<AttachmentActionBaseProps> = ({ children, className }) => {
|
|
42
|
+
return <View className={className}>{children}</View>;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const AttachmentTrigger: React.FC<AttachmentTriggerBaseProps> = ({ children, className }) => {
|
|
46
|
+
return <Pressable className={className}>{children}</Pressable>;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const AttachmentGroup: React.FC<AttachmentGroupBaseProps> = ({ children, className }) => {
|
|
50
|
+
return <View className={className}>{children}</View>;
|
|
51
|
+
};
|
package/src/bubble.tsx
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
BubbleBaseProps,
|
|
3
|
+
BubbleContentBaseProps,
|
|
4
|
+
BubbleGroupBaseProps,
|
|
5
|
+
BubbleReactionsBaseProps,
|
|
6
|
+
} from '@gv-tech/ui-core';
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import { View } from 'react-native';
|
|
9
|
+
|
|
10
|
+
// Web-first stub: structure-only passthrough until the full native
|
|
11
|
+
// chat implementation lands. See docs/reference/parity-matrix.md.
|
|
12
|
+
export const BubbleGroup: React.FC<BubbleGroupBaseProps> = ({ children, className }) => {
|
|
13
|
+
return <View className={className}>{children}</View>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const Bubble: React.FC<BubbleBaseProps> = ({ children, className }) => {
|
|
17
|
+
return <View className={className}>{children}</View>;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const BubbleContent: React.FC<BubbleContentBaseProps> = ({ children, className }) => {
|
|
21
|
+
return <View className={className}>{children}</View>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const BubbleReactions: React.FC<BubbleReactionsBaseProps> = ({ children, className }) => {
|
|
25
|
+
return <View className={className}>{children}</View>;
|
|
26
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -436,3 +436,54 @@ export {
|
|
|
436
436
|
SidebarTrigger,
|
|
437
437
|
useSidebar,
|
|
438
438
|
} from './sidebar';
|
|
439
|
+
|
|
440
|
+
// Attachment
|
|
441
|
+
export {
|
|
442
|
+
Attachment,
|
|
443
|
+
AttachmentAction,
|
|
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';
|
package/src/marker.tsx
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { MarkerBaseProps, MarkerContentBaseProps, MarkerIconBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
|
|
5
|
+
// Web-first stub: structure-only passthrough until the full native
|
|
6
|
+
// implementation lands. See docs/reference/parity-matrix.md.
|
|
7
|
+
export const Marker: React.FC<MarkerBaseProps> = ({ children, className }) => {
|
|
8
|
+
return <View className={className}>{children}</View>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const MarkerIcon: React.FC<MarkerIconBaseProps> = ({ children, className }) => {
|
|
12
|
+
return <View className={className}>{children}</View>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const MarkerContent: React.FC<MarkerContentBaseProps> = ({ children, className }) => {
|
|
16
|
+
return <View className={className}>{children}</View>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
MessageScrollerBaseProps,
|
|
3
|
+
MessageScrollerButtonBaseProps,
|
|
4
|
+
MessageScrollerContentBaseProps,
|
|
5
|
+
MessageScrollerItemBaseProps,
|
|
6
|
+
MessageScrollerProviderBaseProps,
|
|
7
|
+
MessageScrollerViewportBaseProps,
|
|
8
|
+
} from '@gv-tech/ui-core';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { Pressable, ScrollView, View } from 'react-native';
|
|
11
|
+
|
|
12
|
+
// Web-first stub: the web implementation is backed by the
|
|
13
|
+
// `@shadcn/react/message-scroller` headless primitive, which has no native
|
|
14
|
+
// equivalent. Until a Reanimated-based implementation lands, these preserve
|
|
15
|
+
// the export surface with ScrollView semantics.
|
|
16
|
+
// See docs/reference/parity-matrix.md.
|
|
17
|
+
export const MessageScrollerProvider: React.FC<MessageScrollerProviderBaseProps> = ({ children }) => {
|
|
18
|
+
return <>{children}</>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const MessageScroller: React.FC<MessageScrollerBaseProps> = ({ children, className }) => {
|
|
22
|
+
return <View className={className}>{children}</View>;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const MessageScrollerViewport: React.FC<MessageScrollerViewportBaseProps> = ({ children, className }) => {
|
|
26
|
+
return <ScrollView className={className}>{children}</ScrollView>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const MessageScrollerContent: React.FC<MessageScrollerContentBaseProps> = ({ children, className }) => {
|
|
30
|
+
return <View className={className}>{children}</View>;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const MessageScrollerItem: React.FC<MessageScrollerItemBaseProps> = ({ children, className }) => {
|
|
34
|
+
return <View className={className}>{children}</View>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const MessageScrollerButton: React.FC<MessageScrollerButtonBaseProps> = ({ children, className }) => {
|
|
38
|
+
return <Pressable className={className}>{children}</Pressable>;
|
|
39
|
+
};
|
package/src/message.tsx
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
MessageAvatarBaseProps,
|
|
3
|
+
MessageBaseProps,
|
|
4
|
+
MessageContentBaseProps,
|
|
5
|
+
MessageFooterBaseProps,
|
|
6
|
+
MessageGroupBaseProps,
|
|
7
|
+
MessageHeaderBaseProps,
|
|
8
|
+
} from '@gv-tech/ui-core';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
import { View } from 'react-native';
|
|
11
|
+
|
|
12
|
+
// Web-first stub: structure-only passthrough until the full native
|
|
13
|
+
// chat implementation lands. See docs/reference/parity-matrix.md.
|
|
14
|
+
export const MessageGroup: React.FC<MessageGroupBaseProps> = ({ children, className }) => {
|
|
15
|
+
return <View className={className}>{children}</View>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const Message: React.FC<MessageBaseProps> = ({ children, className }) => {
|
|
19
|
+
return <View className={className}>{children}</View>;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const MessageAvatar: React.FC<MessageAvatarBaseProps> = ({ children, className }) => {
|
|
23
|
+
return <View className={className}>{children}</View>;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const MessageContent: React.FC<MessageContentBaseProps> = ({ children, className }) => {
|
|
27
|
+
return <View className={className}>{children}</View>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const MessageHeader: React.FC<MessageHeaderBaseProps> = ({ children, className }) => {
|
|
31
|
+
return <View className={className}>{children}</View>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const MessageFooter: React.FC<MessageFooterBaseProps> = ({ children, className }) => {
|
|
35
|
+
return <View className={className}>{children}</View>;
|
|
36
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
QuestionnaireActionsBaseProps,
|
|
3
|
+
QuestionnaireBaseProps,
|
|
4
|
+
QuestionnaireChoiceBaseProps,
|
|
5
|
+
QuestionnaireChoiceDescriptionBaseProps,
|
|
6
|
+
QuestionnaireChoicesBaseProps,
|
|
7
|
+
QuestionnaireDescriptionBaseProps,
|
|
8
|
+
QuestionnaireErrorBaseProps,
|
|
9
|
+
QuestionnaireInputBaseProps,
|
|
10
|
+
QuestionnaireItemBaseProps,
|
|
11
|
+
QuestionnaireNextBaseProps,
|
|
12
|
+
QuestionnairePreviousBaseProps,
|
|
13
|
+
QuestionnaireProgressBaseProps,
|
|
14
|
+
QuestionnaireSkipBaseProps,
|
|
15
|
+
QuestionnaireSubmitBaseProps,
|
|
16
|
+
QuestionnaireTitleBaseProps,
|
|
17
|
+
} from '@gv-tech/ui-core';
|
|
18
|
+
import * as React from 'react';
|
|
19
|
+
import { Pressable, View } from 'react-native';
|
|
20
|
+
|
|
21
|
+
// Web-first stub: the web implementation is backed by the
|
|
22
|
+
// `@shadcn/react/questionnaire` headless primitive, which has no native
|
|
23
|
+
// equivalent. Until a native implementation lands, these preserve the export
|
|
24
|
+
// surface with basic View/Pressable semantics.
|
|
25
|
+
// See docs/reference/parity-matrix.md.
|
|
26
|
+
export const Questionnaire: React.FC<QuestionnaireBaseProps> = ({ children, className }) => {
|
|
27
|
+
return <View className={className}>{children}</View>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const QuestionnaireProgress: React.FC<QuestionnaireProgressBaseProps> = ({ children, className }) => {
|
|
31
|
+
return <View className={className}>{children}</View>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const QuestionnaireItem: React.FC<QuestionnaireItemBaseProps> = ({ children, className }) => {
|
|
35
|
+
return <View className={className}>{children}</View>;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const QuestionnaireTitle: React.FC<QuestionnaireTitleBaseProps> = ({ children, className }) => {
|
|
39
|
+
return <View className={className}>{children}</View>;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export const QuestionnaireDescription: React.FC<QuestionnaireDescriptionBaseProps> = ({ children, className }) => {
|
|
43
|
+
return <View className={className}>{children}</View>;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const QuestionnaireChoices: React.FC<QuestionnaireChoicesBaseProps> = ({ children, className }) => {
|
|
47
|
+
return <View className={className}>{children}</View>;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export const QuestionnaireChoice: React.FC<QuestionnaireChoiceBaseProps> = ({ children, className }) => {
|
|
51
|
+
return <Pressable className={className}>{children}</Pressable>;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const QuestionnaireChoiceDescription: React.FC<QuestionnaireChoiceDescriptionBaseProps> = ({
|
|
55
|
+
children,
|
|
56
|
+
className,
|
|
57
|
+
}) => {
|
|
58
|
+
return <View className={className}>{children}</View>;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const QuestionnaireInput: React.FC<QuestionnaireInputBaseProps> = ({ children, className }) => {
|
|
62
|
+
return <View className={className}>{children}</View>;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const QuestionnaireError: React.FC<QuestionnaireErrorBaseProps> = ({ children, className }) => {
|
|
66
|
+
return <View className={className}>{children}</View>;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const QuestionnaireActions: React.FC<QuestionnaireActionsBaseProps> = ({ children, className }) => {
|
|
70
|
+
return <View className={className}>{children}</View>;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export const QuestionnairePrevious: React.FC<QuestionnairePreviousBaseProps> = ({ children, className }) => {
|
|
74
|
+
return <Pressable className={className}>{children}</Pressable>;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export const QuestionnaireSkip: React.FC<QuestionnaireSkipBaseProps> = ({ children, className }) => {
|
|
78
|
+
return <Pressable className={className}>{children}</Pressable>;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export const QuestionnaireNext: React.FC<QuestionnaireNextBaseProps> = ({ children, className }) => {
|
|
82
|
+
return <Pressable className={className}>{children}</Pressable>;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export const QuestionnaireSubmit: React.FC<QuestionnaireSubmitBaseProps> = ({ children, className }) => {
|
|
86
|
+
return <Pressable className={className}>{children}</Pressable>;
|
|
87
|
+
};
|
package/src/scroll-to-top.tsx
CHANGED
|
@@ -22,7 +22,7 @@ export interface ScrollToTopProps extends ScrollToTopBaseProps {
|
|
|
22
22
|
* For Native: The scroll target is typically a ref to a ScrollView or FlatList.
|
|
23
23
|
* This is required unless you manually call the scroll handler.
|
|
24
24
|
*/
|
|
25
|
-
scrollRef?: React.RefObject<ScrollView | FlatList>;
|
|
25
|
+
scrollRef?: React.RefObject<ScrollView | FlatList | null>;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Custom duration specifically for Native animations (opacity/transform).
|
package/src/support-fab.tsx
CHANGED
|
@@ -9,9 +9,31 @@ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } f
|
|
|
9
9
|
import { cn } from './lib/utils';
|
|
10
10
|
import { Text } from './text';
|
|
11
11
|
|
|
12
|
-
const
|
|
12
|
+
const DEFAULT_SUPPORT_URL = 'https://www.buymeacoffee.com';
|
|
13
|
+
const ALLOWED_SUPPORT_DOMAINS = new Set(['buymeacoffee.com', 'www.buymeacoffee.com']);
|
|
14
|
+
|
|
15
|
+
const validateSupportUrl = (url: string) => {
|
|
13
16
|
const trimmed = url.trim();
|
|
14
|
-
|
|
17
|
+
|
|
18
|
+
try {
|
|
19
|
+
const parsed = new URL(trimmed);
|
|
20
|
+
const hostname = parsed.hostname.toLowerCase();
|
|
21
|
+
|
|
22
|
+
if (parsed.protocol !== 'https:' || !ALLOWED_SUPPORT_DOMAINS.has(hostname)) {
|
|
23
|
+
console.warn(`Invalid supportUrl: ${url}. Falling back to default.`);
|
|
24
|
+
return DEFAULT_SUPPORT_URL;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return trimmed;
|
|
28
|
+
} catch {
|
|
29
|
+
console.warn(`Invalid supportUrl: ${url}. Falling back to default.`);
|
|
30
|
+
return DEFAULT_SUPPORT_URL;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const normalizeBaseUrl = (url: string) => {
|
|
35
|
+
const validated = validateSupportUrl(url);
|
|
36
|
+
return validated.endsWith('/') ? validated.slice(0, -1) : validated;
|
|
15
37
|
};
|
|
16
38
|
|
|
17
39
|
const sanitizeCreator = (creatorId: string) => creatorId.trim().replace(/^@+/, '');
|
|
@@ -36,7 +58,7 @@ export interface SupportFabProps extends Omit<React.ComponentPropsWithoutRef<typ
|
|
|
36
58
|
}
|
|
37
59
|
|
|
38
60
|
export function SupportFab({
|
|
39
|
-
supportUrl =
|
|
61
|
+
supportUrl = DEFAULT_SUPPORT_URL,
|
|
40
62
|
creatorId,
|
|
41
63
|
title = 'Buy me a coffee',
|
|
42
64
|
description = 'Support the project directly from this panel.',
|