@gv-tech/ui-native 2.28.0 → 2.29.1

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 (197) hide show
  1. package/dist/__contracts.d.ts +44 -2
  2. package/dist/__contracts.d.ts.map +1 -1
  3. package/dist/aspect-ratio.d.ts.map +1 -1
  4. package/dist/attachment.d.ts +12 -0
  5. package/dist/attachment.d.ts.map +1 -0
  6. package/dist/badge.d.ts +1 -1
  7. package/dist/badge.d.ts.map +1 -1
  8. package/dist/breadcrumb.d.ts +27 -8
  9. package/dist/breadcrumb.d.ts.map +1 -1
  10. package/dist/bubble.d.ts +7 -0
  11. package/dist/bubble.d.ts.map +1 -0
  12. package/dist/button-group.d.ts +3 -3
  13. package/dist/button-group.d.ts.map +1 -1
  14. package/dist/button.d.ts +5 -2
  15. package/dist/button.d.ts.map +1 -1
  16. package/dist/calendar.d.ts +10 -7
  17. package/dist/calendar.d.ts.map +1 -1
  18. package/dist/carousel.d.ts +29 -6
  19. package/dist/carousel.d.ts.map +1 -1
  20. package/dist/collapsible.d.ts.map +1 -1
  21. package/dist/combobox.d.ts +16 -16
  22. package/dist/combobox.d.ts.map +1 -1
  23. package/dist/command.d.ts.map +1 -1
  24. package/dist/direction.d.ts +1 -1
  25. package/dist/direction.d.ts.map +1 -1
  26. package/dist/empty.d.ts +6 -6
  27. package/dist/empty.d.ts.map +1 -1
  28. package/dist/field.d.ts +10 -10
  29. package/dist/field.d.ts.map +1 -1
  30. package/dist/hooks/use-theme.d.ts +1 -1
  31. package/dist/hooks/use-theme.d.ts.map +1 -1
  32. package/dist/hooks/use-toast.d.ts.map +1 -1
  33. package/dist/index.d.ts +6 -0
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/input-group.d.ts +6 -6
  36. package/dist/input-group.d.ts.map +1 -1
  37. package/dist/input-otp.d.ts +4 -4
  38. package/dist/input-otp.d.ts.map +1 -1
  39. package/dist/item.d.ts +10 -10
  40. package/dist/item.d.ts.map +1 -1
  41. package/dist/kbd.d.ts +2 -2
  42. package/dist/kbd.d.ts.map +1 -1
  43. package/dist/marker.d.ts +6 -0
  44. package/dist/marker.d.ts.map +1 -0
  45. package/dist/message-scroller.d.ts +9 -0
  46. package/dist/message-scroller.d.ts.map +1 -0
  47. package/dist/message.d.ts +9 -0
  48. package/dist/message.d.ts.map +1 -0
  49. package/dist/native-select.d.ts +3 -3
  50. package/dist/native-select.d.ts.map +1 -1
  51. package/dist/pagination.d.ts +17 -10
  52. package/dist/pagination.d.ts.map +1 -1
  53. package/dist/questionnaire.d.ts +18 -0
  54. package/dist/questionnaire.d.ts.map +1 -0
  55. package/dist/scroll-area.d.ts +9 -2
  56. package/dist/scroll-area.d.ts.map +1 -1
  57. package/dist/scroll-to-top.d.ts +7 -6
  58. package/dist/scroll-to-top.d.ts.map +1 -1
  59. package/dist/search.d.ts +6 -3
  60. package/dist/search.d.ts.map +1 -1
  61. package/dist/sidebar.d.ts +23 -23
  62. package/dist/sidebar.d.ts.map +1 -1
  63. package/dist/skeleton.d.ts +1 -1
  64. package/dist/skeleton.d.ts.map +1 -1
  65. package/dist/slider.d.ts.map +1 -1
  66. package/dist/sonner.d.ts.map +1 -1
  67. package/dist/spinner.d.ts +1 -1
  68. package/dist/spinner.d.ts.map +1 -1
  69. package/dist/support-fab.d.ts +1 -1
  70. package/dist/support-fab.d.ts.map +1 -1
  71. package/dist/table-of-contents.d.ts +9 -17
  72. package/dist/table-of-contents.d.ts.map +1 -1
  73. package/dist/theme-provider.d.ts +1 -1
  74. package/dist/theme-provider.d.ts.map +1 -1
  75. package/dist/theme-toggle.d.ts +1 -1
  76. package/dist/theme-toggle.d.ts.map +1 -1
  77. package/dist/toaster.d.ts.map +1 -1
  78. package/dist/ui-native.cjs +2 -2
  79. package/dist/ui-native.esm.js +407 -268
  80. package/package.json +19 -18
  81. package/src/__contracts.ts +441 -281
  82. package/src/aspect-ratio.tsx +1 -0
  83. package/src/attachment.tsx +51 -0
  84. package/src/badge.tsx +3 -3
  85. package/src/breadcrumb.tsx +2 -8
  86. package/src/bubble.tsx +26 -0
  87. package/src/button-group.tsx +8 -3
  88. package/src/button.tsx +4 -3
  89. package/src/calendar.tsx +8 -5
  90. package/src/card.tsx +1 -1
  91. package/src/carousel.tsx +6 -23
  92. package/src/collapsible.tsx +1 -1
  93. package/src/combobox.tsx +8 -8
  94. package/src/command.tsx +1 -0
  95. package/src/context-menu.tsx +1 -0
  96. package/src/dialog.tsx +1 -1
  97. package/src/drawer.tsx +1 -0
  98. package/src/dropdown-menu.tsx +1 -0
  99. package/src/empty.tsx +6 -1
  100. package/src/field.tsx +2 -1
  101. package/src/form.tsx +9 -9
  102. package/src/hooks/use-theme.ts +1 -0
  103. package/src/hooks/use-toast.ts +1 -0
  104. package/src/hover-card.tsx +1 -0
  105. package/src/index.ts +51 -0
  106. package/src/input-group.tsx +7 -2
  107. package/src/input-otp.tsx +6 -1
  108. package/src/input.tsx +1 -1
  109. package/src/item.tsx +9 -3
  110. package/src/kbd.tsx +1 -0
  111. package/src/marker.tsx +17 -0
  112. package/src/menubar.tsx +1 -0
  113. package/src/message-scroller.tsx +39 -0
  114. package/src/message.tsx +36 -0
  115. package/src/native-select.tsx +2 -1
  116. package/src/navigation-menu.tsx +18 -6
  117. package/src/pagination.tsx +5 -2
  118. package/src/popover.tsx +1 -1
  119. package/src/progress.tsx +1 -2
  120. package/src/questionnaire.tsx +87 -0
  121. package/src/radio-group.tsx +1 -1
  122. package/src/scroll-area.tsx +1 -0
  123. package/src/scroll-to-top.tsx +11 -10
  124. package/src/search.tsx +2 -1
  125. package/src/select.tsx +1 -1
  126. package/src/sidebar.tsx +20 -19
  127. package/src/skeleton.tsx +4 -2
  128. package/src/slider.tsx +2 -1
  129. package/src/sonner.tsx +1 -0
  130. package/src/spinner.tsx +4 -1
  131. package/src/switch.tsx +1 -1
  132. package/src/table-of-contents.tsx +16 -27
  133. package/src/tabs.tsx +18 -7
  134. package/src/text.tsx +3 -3
  135. package/src/theme-provider.tsx +3 -1
  136. package/src/theme-toggle.tsx +32 -29
  137. package/src/toaster.tsx +1 -0
  138. package/src/toggle-group.tsx +2 -2
  139. package/src/toggle.tsx +3 -2
  140. package/dist/alert-dialog.d.ts +0 -51
  141. package/dist/alert-dialog.d.ts.map +0 -1
  142. package/dist/alert.d.ts +0 -10
  143. package/dist/alert.d.ts.map +0 -1
  144. package/dist/card.d.ts +0 -13
  145. package/dist/card.d.ts.map +0 -1
  146. package/dist/checkbox.d.ts +0 -15
  147. package/dist/checkbox.d.ts.map +0 -1
  148. package/dist/context-menu.d.ts +0 -61
  149. package/dist/context-menu.d.ts.map +0 -1
  150. package/dist/dialog.d.ts +0 -61
  151. package/dist/dialog.d.ts.map +0 -1
  152. package/dist/drawer.d.ts +0 -33
  153. package/dist/drawer.d.ts.map +0 -1
  154. package/dist/dropdown-menu.d.ts +0 -60
  155. package/dist/dropdown-menu.d.ts.map +0 -1
  156. package/dist/form.d.ts +0 -33
  157. package/dist/form.d.ts.map +0 -1
  158. package/dist/hover-card.d.ts +0 -23
  159. package/dist/hover-card.d.ts.map +0 -1
  160. package/dist/input.d.ts +0 -8
  161. package/dist/input.d.ts.map +0 -1
  162. package/dist/label.d.ts +0 -9
  163. package/dist/label.d.ts.map +0 -1
  164. package/dist/menubar.d.ts +0 -53
  165. package/dist/menubar.d.ts.map +0 -1
  166. package/dist/navigation-menu.d.ts +0 -14
  167. package/dist/navigation-menu.d.ts.map +0 -1
  168. package/dist/popover.d.ts +0 -9
  169. package/dist/popover.d.ts.map +0 -1
  170. package/dist/progress.d.ts +0 -6
  171. package/dist/progress.d.ts.map +0 -1
  172. package/dist/radio-group.d.ts +0 -11
  173. package/dist/radio-group.d.ts.map +0 -1
  174. package/dist/select.d.ts +0 -59
  175. package/dist/select.d.ts.map +0 -1
  176. package/dist/separator.d.ts +0 -9
  177. package/dist/separator.d.ts.map +0 -1
  178. package/dist/sheet.d.ts +0 -59
  179. package/dist/sheet.d.ts.map +0 -1
  180. package/dist/switch.d.ts +0 -8
  181. package/dist/switch.d.ts.map +0 -1
  182. package/dist/table.d.ts +0 -12
  183. package/dist/table.d.ts.map +0 -1
  184. package/dist/tabs.d.ts +0 -30
  185. package/dist/tabs.d.ts.map +0 -1
  186. package/dist/text.d.ts +0 -13
  187. package/dist/text.d.ts.map +0 -1
  188. package/dist/textarea.d.ts +0 -6
  189. package/dist/textarea.d.ts.map +0 -1
  190. package/dist/toast.d.ts +0 -35
  191. package/dist/toast.d.ts.map +0 -1
  192. package/dist/toggle-group.d.ts +0 -11
  193. package/dist/toggle-group.d.ts.map +0 -1
  194. package/dist/toggle.d.ts +0 -8
  195. package/dist/toggle.d.ts.map +0 -1
  196. package/dist/tooltip.d.ts +0 -30
  197. package/dist/tooltip.d.ts.map +0 -1
@@ -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
+ };
@@ -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
+ };
@@ -5,9 +5,10 @@ import type {
5
5
  } from '@gv-tech/ui-core';
6
6
  import * as React from 'react';
7
7
  import { Text, View } from 'react-native';
8
+
8
9
  import { cn } from './lib/utils';
9
10
 
10
- function NativeSelect({ className, size, ...props }: React.ComponentProps<typeof View> & NativeSelectBaseProps) {
11
+ function NativeSelect({ className, size: _size, ...props }: React.ComponentProps<typeof View> & NativeSelectBaseProps) {
11
12
  // Native select relies on @react-native-picker/picker, providing shim
12
13
  return (
13
14
  <View className={cn('border-input rounded-md border p-2', className)} {...props}>
@@ -11,8 +11,10 @@ import type {
11
11
  import * as NavigationMenuPrimitive from '@rn-primitives/navigation-menu';
12
12
  import { ChevronDown } from 'lucide-react-native';
13
13
  import * as React from 'react';
14
- import { GestureResponderEvent, View } from 'react-native';
14
+ import type { GestureResponderEvent } from 'react-native';
15
+ import { View } from 'react-native';
15
16
  import Animated, { FadeIn, FadeOut } from 'react-native-reanimated';
17
+
16
18
  import { cn } from './lib/utils';
17
19
 
18
20
  export const NavigationMenu = React.forwardRef<
@@ -20,7 +22,17 @@ export const NavigationMenu = React.forwardRef<
20
22
  NavigationMenuBaseProps
21
23
  >(
22
24
  (
23
- { className, children, value, onValueChange, dir, orientation, delayDuration, skipDelayDuration, ...props },
25
+ {
26
+ className,
27
+ children,
28
+ value,
29
+ onValueChange,
30
+ dir: _dir,
31
+ orientation: _orientation,
32
+ delayDuration,
33
+ skipDelayDuration,
34
+ ...props
35
+ },
24
36
  ref,
25
37
  ) => {
26
38
  return (
@@ -95,7 +107,7 @@ NavigationMenuTrigger.displayName = 'NavigationMenuTrigger';
95
107
  export const NavigationMenuContent = React.forwardRef<
96
108
  React.ComponentRef<typeof NavigationMenuPrimitive.Content>,
97
109
  NavigationMenuContentBaseProps
98
- >(({ className, children, forceMount, ...props }, ref) => {
110
+ >(({ className, children, forceMount: _forceMount, ...props }, ref) => {
99
111
  return (
100
112
  <NavigationMenuPrimitive.Portal>
101
113
  <NavigationMenuPrimitive.Content ref={ref} {...props}>
@@ -115,7 +127,7 @@ NavigationMenuContent.displayName = 'NavigationMenuContent';
115
127
  export const NavigationMenuLink = React.forwardRef<
116
128
  React.ComponentRef<typeof NavigationMenuPrimitive.Link>,
117
129
  NavigationMenuLinkBaseProps & { onPress?: () => void }
118
- >(({ className, children, active, onSelect, onPress, href, ...props }, ref) => {
130
+ >(({ className, children, active, onSelect, onPress, href: _href, ...props }, ref) => {
119
131
  const handlePress = (e: GestureResponderEvent) => {
120
132
  if (onPress) {
121
133
  onPress();
@@ -146,7 +158,7 @@ NavigationMenuLink.displayName = 'NavigationMenuLink';
146
158
  export const NavigationMenuViewport = React.forwardRef<
147
159
  React.ComponentRef<typeof NavigationMenuPrimitive.Viewport>,
148
160
  NavigationMenuViewportBaseProps
149
- >(({ className, forceMount, ...props }, ref) => {
161
+ >(({ className, forceMount: _forceMount, ...props }, ref) => {
150
162
  return (
151
163
  <View className="absolute top-full left-0 flex justify-center">
152
164
  <NavigationMenuPrimitive.Viewport
@@ -165,7 +177,7 @@ NavigationMenuViewport.displayName = 'NavigationMenuViewport';
165
177
  export const NavigationMenuIndicator = React.forwardRef<
166
178
  React.ComponentRef<typeof NavigationMenuPrimitive.Indicator>,
167
179
  NavigationMenuIndicatorBaseProps
168
- >(({ className, forceMount, ...props }, ref) => {
180
+ >(({ className, forceMount: _forceMount, ...props }, ref) => {
169
181
  return (
170
182
  <NavigationMenuPrimitive.Indicator
171
183
  ref={ref}
@@ -10,6 +10,7 @@ import type {
10
10
  import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react-native';
11
11
  import * as React from 'react';
12
12
  import { View } from 'react-native';
13
+
13
14
  import { Button } from './button';
14
15
  import { cn } from './lib/utils';
15
16
  import { Text } from './text';
@@ -17,6 +18,8 @@ import { Text } from './text';
17
18
  export const Pagination = ({ className, children, ...props }: PaginationBaseProps) => {
18
19
  return (
19
20
  <View
21
+ // RN has no nav element; `role` targets web parity via react-native-web
22
+ // eslint-disable-next-line jsx-a11y/prefer-tag-over-role
20
23
  role="navigation"
21
24
  aria-label="pagination"
22
25
  className={cn('mx-auto flex w-full flex-row justify-center', className)}
@@ -68,7 +71,7 @@ PaginationLink.displayName = 'PaginationLink';
68
71
 
69
72
  export const PaginationPrevious = ({
70
73
  className,
71
- children,
74
+ children: _children,
72
75
  onPress,
73
76
  ...props
74
77
  }: PaginationPreviousBaseProps & { onPress?: () => void }) => (
@@ -87,7 +90,7 @@ PaginationPrevious.displayName = 'PaginationPrevious';
87
90
 
88
91
  export const PaginationNext = ({
89
92
  className,
90
- children,
93
+ children: _children,
91
94
  onPress,
92
95
  ...props
93
96
  }: PaginationNextBaseProps & { onPress?: () => void }) => (
package/src/popover.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  PopoverAnchorBaseProps,
3
3
  PopoverBaseProps,
4
4
  PopoverContentBaseProps,
package/src/progress.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import { ProgressBaseProps } from '@gv-tech/ui-core';
1
+ import type { ProgressBaseProps } from '@gv-tech/ui-core';
2
2
  import * as React from 'react';
3
3
  import { View } from 'react-native';
4
4
 
@@ -12,7 +12,6 @@ const Progress = React.forwardRef<
12
12
  ref={ref}
13
13
  className={cn('bg-muted relative h-2 w-full overflow-hidden rounded-full', className)}
14
14
  accessibilityRole="progressbar"
15
- role="progressbar"
16
15
  {...props}
17
16
  >
18
17
  <View className="bg-primary h-full rounded-full" style={{ width: `${value || 0}%` }} />
@@ -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
+ };
@@ -1,4 +1,4 @@
1
- import { RadioGroupBaseProps, RadioGroupItemBaseProps } from '@gv-tech/ui-core';
1
+ import type { RadioGroupBaseProps, RadioGroupItemBaseProps } from '@gv-tech/ui-core';
2
2
  import * as RadioGroupPrimitive from '@rn-primitives/radio-group';
3
3
  import { Circle } from 'lucide-react-native';
4
4
  import * as React from 'react';
@@ -1,6 +1,7 @@
1
1
  import type { ScrollAreaBaseProps, ScrollBarBaseProps } from '@gv-tech/ui-core';
2
2
  import * as React from 'react';
3
3
  import { ScrollView, View } from 'react-native';
4
+
4
5
  import { cn } from './lib/utils';
5
6
 
6
7
  export const ScrollArea = React.forwardRef<ScrollView, ScrollAreaBaseProps>(
@@ -1,31 +1,32 @@
1
1
  'use client';
2
2
 
3
+ import type { ScrollToTopBaseProps } from '@gv-tech/ui-core';
3
4
  import { ArrowUp } from 'lucide-react-native';
4
5
  import * as React from 'react';
5
6
  import {
7
+ type ScrollView,
6
8
  AccessibilityInfo,
7
9
  Animated,
8
10
  type FlatList,
9
11
  type NativeScrollEvent,
10
12
  type NativeSyntheticEvent,
11
13
  Platform,
12
- ScrollView,
13
14
  View,
14
15
  } from 'react-native';
15
16
 
16
- import type { ScrollToTopBaseProps } from '@gv-tech/ui-core';
17
17
  import { Button } from './button';
18
18
  import { cn } from './lib/utils';
19
19
 
20
20
  export interface ScrollToTopProps extends ScrollToTopBaseProps {
21
21
  /**
22
- * For Native: The scroll target is typically a ref to a ScrollView or FlatList.
23
- * This is required unless you manually call the scroll handler.
22
+ * For Native: The scroll target is typically a ref to a ScrollView or FlatList. This is required unless you manually
23
+ * 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).
29
+ *
29
30
  * @default 300
30
31
  */
31
32
  animationDuration?: number;
@@ -34,8 +35,8 @@ export interface ScrollToTopProps extends ScrollToTopBaseProps {
34
35
  /**
35
36
  * GV Tech Animated Scroll To Top (Native)
36
37
  *
37
- * A floating action button that appears when scrolling down and allows the user
38
- * to quickly return to the top of a ScrollView, FlatList, or SectionList.
38
+ * A floating action button that appears when scrolling down and allows the user to quickly return to the top of a
39
+ * ScrollView, FlatList, or SectionList.
39
40
  *
40
41
  * Reuses the internal GV Tech Button primitive for consistent styling.
41
42
  */
@@ -61,9 +62,9 @@ export const ScrollToTop = React.forwardRef<ScrollToTopHandle, ScrollToTopProps>
61
62
  const [isVisible, setIsVisible] = React.useState(false);
62
63
  const [isExiting, setIsExiting] = React.useState(false);
63
64
 
64
- // Animation states
65
- const opacity = React.useRef(new Animated.Value(0)).current;
66
- const translateY = React.useRef(new Animated.Value(20)).current;
65
+ // Animation states (lazy state initializers keep stable instances without render-time ref reads)
66
+ const [opacity] = React.useState(() => new Animated.Value(0));
67
+ const [translateY] = React.useState(() => new Animated.Value(20));
67
68
 
68
69
  const animateIn = () => {
69
70
  Animated.parallel([
package/src/search.tsx CHANGED
@@ -1,7 +1,8 @@
1
- import { SearchBaseProps, SearchTriggerBaseProps } from '@gv-tech/ui-core';
1
+ import type { SearchBaseProps, SearchTriggerBaseProps } from '@gv-tech/ui-core';
2
2
  import { Search as SearchIcon } from 'lucide-react-native';
3
3
  import * as React from 'react';
4
4
  import { Platform, Text, View } from 'react-native';
5
+
5
6
  import { Button } from './button';
6
7
  import { Dialog } from './dialog';
7
8
  import { cn } from './lib/utils';
package/src/select.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  SelectBaseProps,
3
3
  SelectContentBaseProps,
4
4
  SelectGroupBaseProps,
package/src/sidebar.tsx CHANGED
@@ -25,13 +25,14 @@ import type {
25
25
  } from '@gv-tech/ui-core';
26
26
  import * as React from 'react';
27
27
  import { Pressable, Text, View } from 'react-native';
28
+
28
29
  import { cn } from './lib/utils';
29
30
 
30
31
  function SidebarProvider({
31
32
  className,
32
- defaultOpen,
33
- open,
34
- onOpenChange,
33
+ defaultOpen: _defaultOpen,
34
+ open: _open,
35
+ onOpenChange: _onOpenChange,
35
36
  ...props
36
37
  }: React.ComponentProps<typeof View> & SidebarProviderBaseProps) {
37
38
  return <View className={className} {...props} />;
@@ -39,9 +40,9 @@ function SidebarProvider({
39
40
 
40
41
  function Sidebar({
41
42
  className,
42
- side,
43
- variant,
44
- collapsible,
43
+ side: _side,
44
+ variant: _variant,
45
+ collapsible: _collapsible,
45
46
  ...props
46
47
  }: React.ComponentProps<typeof View> & SidebarBaseProps) {
47
48
  return (
@@ -89,7 +90,7 @@ function SidebarGroup({ className, ...props }: React.ComponentProps<typeof View>
89
90
 
90
91
  function SidebarGroupLabel({
91
92
  className,
92
- asChild,
93
+ asChild: _asChild,
93
94
  ...props
94
95
  }: React.ComponentProps<typeof View> & SidebarGroupLabelBaseProps) {
95
96
  return <View className={className} {...props} />;
@@ -97,7 +98,7 @@ function SidebarGroupLabel({
97
98
 
98
99
  function SidebarGroupAction({
99
100
  className,
100
- asChild,
101
+ asChild: _asChild,
101
102
  ...props
102
103
  }: React.ComponentProps<typeof Pressable> & SidebarGroupActionBaseProps) {
103
104
  return <Pressable className={className} {...(props as Record<string, unknown>)} />;
@@ -120,11 +121,11 @@ function SidebarMenuItem({ className, ...props }: React.ComponentProps<typeof Vi
120
121
 
121
122
  function SidebarMenuButton({
122
123
  className,
123
- asChild,
124
- isActive,
125
- variant,
126
- size,
127
- tooltip,
124
+ asChild: _asChild,
125
+ isActive: _isActive,
126
+ variant: _variant,
127
+ size: _size,
128
+ tooltip: _tooltip,
128
129
  ...props
129
130
  }: React.ComponentProps<typeof Pressable> & SidebarMenuButtonBaseProps) {
130
131
  return <Pressable className={className} {...(props as Record<string, unknown>)} />;
@@ -132,8 +133,8 @@ function SidebarMenuButton({
132
133
 
133
134
  function SidebarMenuAction({
134
135
  className,
135
- asChild,
136
- showOnHover,
136
+ asChild: _asChild,
137
+ showOnHover: _showOnHover,
137
138
  ...props
138
139
  }: React.ComponentProps<typeof Pressable> & SidebarMenuActionBaseProps) {
139
140
  return <Pressable className={className} {...(props as Record<string, unknown>)} />;
@@ -145,7 +146,7 @@ function SidebarMenuBadge({ className, ...props }: React.ComponentProps<typeof V
145
146
 
146
147
  function SidebarMenuSkeleton({
147
148
  className,
148
- showIcon,
149
+ showIcon: _showIcon,
149
150
  ...props
150
151
  }: React.ComponentProps<typeof View> & SidebarMenuSkeletonBaseProps) {
151
152
  return <View className={className} {...props} />;
@@ -161,9 +162,9 @@ function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<typeof
161
162
 
162
163
  function SidebarMenuSubButton({
163
164
  className,
164
- asChild,
165
- size,
166
- isActive,
165
+ asChild: _asChild,
166
+ size: _size,
167
+ isActive: _isActive,
167
168
  ...props
168
169
  }: React.ComponentProps<typeof Pressable> & SidebarMenuSubButtonBaseProps) {
169
170
  return <Pressable className={className} {...(props as Record<string, unknown>)} />;
package/src/skeleton.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { View } from 'react-native';
2
+ import type { View } from 'react-native';
3
3
  import Animated, {
4
4
  useAnimatedStyle,
5
5
  useSharedValue,
@@ -14,12 +14,14 @@ function Skeleton({ className, ...props }: React.ComponentPropsWithoutRef<typeof
14
14
  const opacity = useSharedValue(0.5);
15
15
 
16
16
  React.useEffect(() => {
17
+ // Shared values are stable across renders; mutation here drives the Reanimated loop
18
+ // eslint-disable-next-line react/immutability
17
19
  opacity.value = withRepeat(
18
20
  withSequence(withTiming(0.2, { duration: 500 }), withTiming(0.5, { duration: 500 })),
19
21
  -1,
20
22
  true,
21
23
  );
22
- }, []);
24
+ }, [opacity]);
23
25
 
24
26
  const animatedStyle = useAnimatedStyle(() => ({
25
27
  opacity: opacity.value,
package/src/slider.tsx CHANGED
@@ -1,13 +1,14 @@
1
1
  import type { SliderBaseProps } from '@gv-tech/ui-core';
2
2
  import * as SliderPrimitive from '@rn-primitives/slider';
3
3
  import * as React from 'react';
4
+
4
5
  import { cn } from './lib/utils';
5
6
 
6
7
  export const Slider: React.FC<SliderBaseProps> = ({
7
8
  className,
8
9
  value,
9
10
  onValueChange: onValueChangeProp,
10
- defaultValue,
11
+ defaultValue: _defaultValue,
11
12
  min = 0,
12
13
  max = 100,
13
14
  step = 1,
package/src/sonner.tsx CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { SonnerBaseProps } from '@gv-tech/ui-core';
2
2
  import * as React from 'react';
3
+
3
4
  import { ToastProvider, ToastViewport } from './toast';
4
5
 
5
6
  export const Toaster: React.FC<SonnerBaseProps> = () => {
package/src/spinner.tsx CHANGED
@@ -2,7 +2,10 @@ import type { SpinnerBaseProps } from '@gv-tech/ui-core';
2
2
  import * as React from 'react';
3
3
  import { ActivityIndicator } from 'react-native';
4
4
 
5
- function Spinner({ className, ...props }: React.ComponentProps<typeof ActivityIndicator> & SpinnerBaseProps) {
5
+ function Spinner({
6
+ className: _className,
7
+ ...props
8
+ }: React.ComponentProps<typeof ActivityIndicator> & SpinnerBaseProps) {
6
9
  return <ActivityIndicator size="small" {...props} />;
7
10
  }
8
11
 
package/src/switch.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import { SwitchBaseProps } from '@gv-tech/ui-core';
1
+ import type { SwitchBaseProps } from '@gv-tech/ui-core';
2
2
  import * as SwitchPrimitives from '@rn-primitives/switch';
3
3
  import * as React from 'react';
4
4
 
@@ -1,20 +1,12 @@
1
- import * as React from 'react';
2
- import {
3
- LayoutChangeEvent,
4
- NativeScrollEvent,
5
- NativeSyntheticEvent,
6
- Platform,
7
- Text as RNText,
8
- ScrollView,
9
- TouchableOpacity,
10
- View,
11
- } from 'react-native';
12
-
13
- import {
1
+ import type {
14
2
  HeadingItem as BaseHeadingItem,
15
3
  TableOfContentsContentBaseProps,
16
4
  TableOfContentsRootBaseProps,
17
5
  } from '@gv-tech/ui-core';
6
+ import * as React from 'react';
7
+ import type { LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent } from 'react-native';
8
+ import { Platform, Text as RNText, ScrollView, TouchableOpacity, View } from 'react-native';
9
+
18
10
  import { cn, slugify } from './lib/utils';
19
11
  import { Text } from './text';
20
12
 
@@ -43,9 +35,7 @@ export function useTOC() {
43
35
  return context;
44
36
  }
45
37
 
46
- /**
47
- * Native Table of Contents Provider
48
- */
38
+ /** Native Table of Contents Provider */
49
39
  export function TableOfContents({ children, activeId: activeIdOverride }: TableOfContentsRootBaseProps) {
50
40
  const [headings, setHeadings] = React.useState<HeadingItem[]>([]);
51
41
  const [activeId, setActiveId] = React.useState<string | null>(null);
@@ -136,9 +126,7 @@ export function TableOfContents({ children, activeId: activeIdOverride }: TableO
136
126
  );
137
127
  }
138
128
 
139
- /**
140
- * Heading component that registers itself with the TOC provider
141
- */
129
+ /** Heading component that registers itself with the TOC provider */
142
130
  export function TableOfContentsHeader({
143
131
  children,
144
132
  level = 2,
@@ -174,18 +162,21 @@ export function TableOfContentsHeader({
174
162
  );
175
163
  }
176
164
 
177
- /**
178
- * Renders the TOC list of links
179
- */
165
+ /** Renders the TOC list of links */
180
166
  export function TableOfContentsList({ className }: { className?: string }) {
181
167
  const { headings, activeId, scrollToHeading } = useTOC();
182
168
 
169
+ const minLevel = React.useMemo(() => {
170
+ if (headings.length === 0) {
171
+ return 0;
172
+ }
173
+ return Math.min(...headings.map((h) => h.level));
174
+ }, [headings]);
175
+
183
176
  if (headings.length === 0) {
184
177
  return null;
185
178
  }
186
179
 
187
- const minLevel = Math.min(...headings.map((h) => h.level));
188
-
189
180
  return (
190
181
  <View className={cn('space-y-2 p-4', className)}>
191
182
  <Text variant="overline" className="mb-2 font-bold">
@@ -212,9 +203,7 @@ export function TableOfContentsList({ className }: { className?: string }) {
212
203
  );
213
204
  }
214
205
 
215
- /**
216
- * Wrapper for content that handles scrolling
217
- */
206
+ /** Wrapper for content that handles scrolling */
218
207
  export function TableOfContentsContent({ children, className }: TableOfContentsContentBaseProps) {
219
208
  const { scrollViewRef, onScroll } = useTOC();
220
209