@admin-layout/gluestack-ui-mobile 10.0.9-alpha.9 → 10.1.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/CHANGELOG.md +1 -9
  2. package/lib/components/ui/accordion/index.web.d.ts +209 -0
  3. package/lib/components/ui/accordion/index.web.js +156 -0
  4. package/lib/components/ui/accordion/index.web.js.map +1 -0
  5. package/lib/components/ui/actionsheet/index.web.d.ts +872 -0
  6. package/lib/components/ui/actionsheet/index.web.js +286 -0
  7. package/lib/components/ui/actionsheet/index.web.js.map +1 -0
  8. package/lib/components/ui/alert/index.web.d.ts +135 -0
  9. package/lib/components/ui/alert/index.web.js +38 -0
  10. package/lib/components/ui/alert/index.web.js.map +1 -0
  11. package/lib/components/ui/alert-dialog/index.web.d.ts +64 -0
  12. package/lib/components/ui/alert-dialog/index.web.js +139 -0
  13. package/lib/components/ui/alert-dialog/index.web.js.map +1 -0
  14. package/lib/components/ui/avatar/index.web.d.ts +21 -0
  15. package/lib/components/ui/avatar/index.web.js +92 -0
  16. package/lib/components/ui/avatar/index.web.js.map +1 -0
  17. package/lib/components/ui/badge/index.web.d.ts +382 -0
  18. package/lib/components/ui/badge/index.web.js +138 -0
  19. package/lib/components/ui/badge/index.web.js.map +1 -0
  20. package/lib/components/ui/button/index.web.d.ts +247 -0
  21. package/lib/components/ui/button/index.web.js +57 -0
  22. package/lib/components/ui/button/index.web.js.map +1 -0
  23. package/lib/components/ui/checkbox/index.web.d.ts +265 -0
  24. package/lib/components/ui/checkbox/index.web.js +77 -0
  25. package/lib/components/ui/checkbox/index.web.js.map +1 -0
  26. package/lib/components/ui/divider/index.web.d.ts +53 -0
  27. package/lib/components/ui/divider/index.web.js +21 -0
  28. package/lib/components/ui/divider/index.web.js.map +1 -0
  29. package/lib/components/ui/drawer/index.web.d.ts +174 -0
  30. package/lib/components/ui/drawer/index.web.js +65 -0
  31. package/lib/components/ui/drawer/index.web.js.map +1 -0
  32. package/lib/components/ui/fab/index.web.d.ts +520 -0
  33. package/lib/components/ui/fab/index.web.js +146 -0
  34. package/lib/components/ui/fab/index.web.js.map +1 -0
  35. package/lib/components/ui/flat-list/index.web.d.ts +21 -0
  36. package/lib/components/ui/flat-list/index.web.js +41 -0
  37. package/lib/components/ui/flat-list/index.web.js.map +1 -0
  38. package/lib/components/ui/form-control/index.web.d.ts +2071 -0
  39. package/lib/components/ui/form-control/index.web.js +290 -0
  40. package/lib/components/ui/form-control/index.web.js.map +1 -0
  41. package/lib/components/ui/image/index.web.d.ts +142 -0
  42. package/lib/components/ui/image/index.web.js +29 -0
  43. package/lib/components/ui/image/index.web.js.map +1 -0
  44. package/lib/components/ui/image-background/index.web.d.ts +8 -0
  45. package/lib/components/ui/image-background/index.web.js +23 -0
  46. package/lib/components/ui/image-background/index.web.js.map +1 -0
  47. package/lib/components/ui/input/index.web.d.ts +163 -0
  48. package/lib/components/ui/input/index.web.js +50 -0
  49. package/lib/components/ui/input/index.web.js.map +1 -0
  50. package/lib/components/ui/input-accessory-view/index.web.d.ts +9 -0
  51. package/lib/components/ui/input-accessory-view/index.web.js +16 -0
  52. package/lib/components/ui/input-accessory-view/index.web.js.map +1 -0
  53. package/lib/components/ui/keyboard-avoiding-view/index.web.d.ts +9 -0
  54. package/lib/components/ui/keyboard-avoiding-view/index.web.js +8 -0
  55. package/lib/components/ui/keyboard-avoiding-view/index.web.js.map +1 -0
  56. package/lib/components/ui/link/index.web.d.ts +365 -0
  57. package/lib/components/ui/link/index.web.js +70 -0
  58. package/lib/components/ui/link/index.web.js.map +1 -0
  59. package/lib/components/ui/menu/index.web.d.ts +142 -0
  60. package/lib/components/ui/menu/index.web.js +83 -0
  61. package/lib/components/ui/menu/index.web.js.map +1 -0
  62. package/lib/components/ui/modal/index.web.d.ts +111 -0
  63. package/lib/components/ui/modal/index.web.js +58 -0
  64. package/lib/components/ui/modal/index.web.js.map +1 -0
  65. package/lib/components/ui/popover/index.web.d.ts +309 -0
  66. package/lib/components/ui/popover/index.web.js +184 -0
  67. package/lib/components/ui/popover/index.web.js.map +1 -0
  68. package/lib/components/ui/portal/index.web.d.ts +9 -0
  69. package/lib/components/ui/portal/index.web.js +16 -0
  70. package/lib/components/ui/portal/index.web.js.map +1 -0
  71. package/lib/components/ui/pressable/index.web.d.ts +8 -0
  72. package/lib/components/ui/pressable/index.web.js +44 -0
  73. package/lib/components/ui/pressable/index.web.js.map +1 -0
  74. package/lib/components/ui/progress/index.web.d.ts +237 -0
  75. package/lib/components/ui/progress/index.web.js +73 -0
  76. package/lib/components/ui/progress/index.web.js.map +1 -0
  77. package/lib/components/ui/radio/index.web.d.ts +224 -0
  78. package/lib/components/ui/radio/index.web.js +69 -0
  79. package/lib/components/ui/radio/index.web.js.map +1 -0
  80. package/lib/components/ui/refresh-control/index.web.d.ts +14 -0
  81. package/lib/components/ui/refresh-control/index.web.js +69 -0
  82. package/lib/components/ui/refresh-control/index.web.js.map +1 -0
  83. package/lib/components/ui/safe-area-view/index.web.d.ts +6 -0
  84. package/lib/components/ui/safe-area-view/index.web.js +10 -0
  85. package/lib/components/ui/safe-area-view/index.web.js.map +1 -0
  86. package/lib/components/ui/scroll-view/index.web.d.ts +44 -0
  87. package/lib/components/ui/scroll-view/index.web.js +41 -0
  88. package/lib/components/ui/scroll-view/index.web.js.map +1 -0
  89. package/lib/components/ui/section-list/index.web.d.ts +26 -0
  90. package/lib/components/ui/section-list/index.web.js +35 -0
  91. package/lib/components/ui/section-list/index.web.js.map +1 -0
  92. package/lib/components/ui/select/index.web.d.ts +162 -0
  93. package/lib/components/ui/select/index.web.js +51 -0
  94. package/lib/components/ui/select/index.web.js.map +1 -0
  95. package/lib/components/ui/slider/index.web.d.ts +223 -0
  96. package/lib/components/ui/slider/index.web.js +189 -0
  97. package/lib/components/ui/slider/index.web.js.map +1 -0
  98. package/lib/components/ui/spinner/index.web.d.ts +176 -0
  99. package/lib/components/ui/spinner/index.web.js +55 -0
  100. package/lib/components/ui/spinner/index.web.js.map +1 -0
  101. package/lib/components/ui/status-bar/index.web.d.ts +14 -0
  102. package/lib/components/ui/status-bar/index.web.js +7 -0
  103. package/lib/components/ui/status-bar/index.web.js.map +1 -0
  104. package/lib/components/ui/switch/index.web.d.ts +71 -0
  105. package/lib/components/ui/switch/index.web.js +27 -0
  106. package/lib/components/ui/switch/index.web.js.map +1 -0
  107. package/lib/components/ui/tabs/index.web.d.ts +351 -0
  108. package/lib/components/ui/tabs/index.web.js +120 -0
  109. package/lib/components/ui/tabs/index.web.js.map +1 -0
  110. package/lib/components/ui/textarea/index.web.d.ts +162 -0
  111. package/lib/components/ui/textarea/index.web.js +50 -0
  112. package/lib/components/ui/textarea/index.web.js.map +1 -0
  113. package/lib/components/ui/toast/index.web.d.ts +225 -0
  114. package/lib/components/ui/toast/index.web.js +80 -0
  115. package/lib/components/ui/toast/index.web.js.map +1 -0
  116. package/lib/components/ui/tooltip/index.web.d.ts +86 -0
  117. package/lib/components/ui/tooltip/index.web.js +110 -0
  118. package/lib/components/ui/tooltip/index.web.js.map +1 -0
  119. package/lib/components/ui/view/index.web.d.ts +2 -0
  120. package/lib/components/ui/view/index.web.js +7 -0
  121. package/lib/components/ui/view/index.web.js.map +1 -0
  122. package/lib/components/ui/virtualized-list/index.web.d.ts +19 -0
  123. package/lib/components/ui/virtualized-list/index.web.js +30 -0
  124. package/lib/components/ui/virtualized-list/index.web.js.map +1 -0
  125. package/lib/components/usePermissionAutoFetch.d.ts +7 -19
  126. package/lib/containers/layout/DrawerBottomNavigationConfig.d.ts +47 -47
  127. package/lib/containers/layout/DrawerConfig.d.ts +31 -31
  128. package/lib/redux/settings.d.ts +3 -9
  129. package/package.json +9 -5
  130. package/src/components/ui/accordion/index.web.tsx +294 -0
  131. package/src/components/ui/actionsheet/index.web.tsx +555 -0
  132. package/src/components/ui/alert/index.web.tsx +71 -0
  133. package/src/components/ui/alert-dialog/index.web.tsx +241 -0
  134. package/src/components/ui/avatar/index.web.tsx +150 -0
  135. package/src/components/ui/badge/index.web.tsx +188 -0
  136. package/src/components/ui/button/index.web.tsx +86 -0
  137. package/src/components/ui/checkbox/index.web.tsx +151 -0
  138. package/src/components/ui/divider/index.web.tsx +37 -0
  139. package/src/components/ui/drawer/index.web.tsx +144 -0
  140. package/src/components/ui/fab/index.web.tsx +201 -0
  141. package/src/components/ui/flat-list/index.web.tsx +89 -0
  142. package/src/components/ui/form-control/index.web.tsx +451 -0
  143. package/src/components/ui/image/index.web.tsx +43 -0
  144. package/src/components/ui/image-background/index.web.tsx +43 -0
  145. package/src/components/ui/input/index.web.tsx +80 -0
  146. package/src/components/ui/input-accessory-view/index.web.tsx +31 -0
  147. package/src/components/ui/keyboard-avoiding-view/index.web.tsx +23 -0
  148. package/src/components/ui/link/index.web.tsx +103 -0
  149. package/src/components/ui/menu/index.web.tsx +159 -0
  150. package/src/components/ui/modal/index.web.tsx +135 -0
  151. package/src/components/ui/popover/index.web.tsx +326 -0
  152. package/src/components/ui/portal/index.web.tsx +34 -0
  153. package/src/components/ui/pressable/index.web.tsx +73 -0
  154. package/src/components/ui/progress/index.web.tsx +123 -0
  155. package/src/components/ui/radio/index.web.tsx +130 -0
  156. package/src/components/ui/refresh-control/index.web.tsx +104 -0
  157. package/src/components/ui/safe-area-view/index.web.tsx +24 -0
  158. package/src/components/ui/scroll-view/index.web.tsx +142 -0
  159. package/src/components/ui/section-list/index.web.tsx +93 -0
  160. package/src/components/ui/select/index.web.tsx +83 -0
  161. package/src/components/ui/slider/index.web.tsx +283 -0
  162. package/src/components/ui/spinner/index.web.tsx +81 -0
  163. package/src/components/ui/status-bar/index.web.tsx +20 -0
  164. package/src/components/ui/switch/index.web.tsx +44 -0
  165. package/src/components/ui/tabs/index.web.tsx +205 -0
  166. package/src/components/ui/textarea/index.web.tsx +86 -0
  167. package/src/components/ui/toast/index.web.tsx +132 -0
  168. package/src/components/ui/tooltip/index.web.tsx +155 -0
  169. package/src/components/ui/view/index.web.tsx +15 -0
  170. package/src/components/ui/virtualized-list/index.web.tsx +84 -0
@@ -0,0 +1,520 @@
1
+ import React from 'react';
2
+ import type { VariantProps } from '@gluestack-ui/nativewind-utils';
3
+ declare const UIFab: import("@gluestack-ui/fab/lib/types").IFabComponentType<Omit<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>, "ref"> & {
4
+ context?: any;
5
+ } & React.RefAttributes<React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>>, React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>, import("@gluestack-ui/icon/lib/createIcon").IIconProps & (((import("@gluestack-ui/icon").IPrimitiveIcon & React.RefAttributes<import("@gluestack-ui/icon").Svg>) | {
6
+ fill?: import("react-native").ColorValue;
7
+ stroke?: import("react-native").ColorValue;
8
+ }) & React.RefAttributes<(import("@gluestack-ui/icon").IPrimitiveIcon & React.RefAttributes<import("@gluestack-ui/icon").Svg>) | {
9
+ fill?: import("react-native").ColorValue;
10
+ stroke?: import("react-native").ColorValue;
11
+ }>)>;
12
+ declare const fabIconStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
13
+ size: {
14
+ '2xs': string;
15
+ xs: string;
16
+ sm: string;
17
+ md: string;
18
+ lg: string;
19
+ xl: string;
20
+ };
21
+ } | ({
22
+ size: {
23
+ '2xs': string;
24
+ xs: string;
25
+ sm: string;
26
+ md: string;
27
+ lg: string;
28
+ xl: string;
29
+ };
30
+ } & {
31
+ size: {
32
+ '2xs': import("tailwind-merge").ClassNameValue | {
33
+ base?: import("tailwind-merge").ClassNameValue;
34
+ };
35
+ xs: import("tailwind-merge").ClassNameValue | {
36
+ base?: import("tailwind-merge").ClassNameValue;
37
+ };
38
+ sm: import("tailwind-merge").ClassNameValue | {
39
+ base?: import("tailwind-merge").ClassNameValue;
40
+ };
41
+ md: import("tailwind-merge").ClassNameValue | {
42
+ base?: import("tailwind-merge").ClassNameValue;
43
+ };
44
+ lg: import("tailwind-merge").ClassNameValue | {
45
+ base?: import("tailwind-merge").ClassNameValue;
46
+ };
47
+ xl: import("tailwind-merge").ClassNameValue | {
48
+ base?: import("tailwind-merge").ClassNameValue;
49
+ };
50
+ };
51
+ }), undefined, "text-typography-50 fill-none", import("tailwind-variants/dist/config").TVConfig<{
52
+ size: {
53
+ '2xs': string;
54
+ xs: string;
55
+ sm: string;
56
+ md: string;
57
+ lg: string;
58
+ xl: string;
59
+ };
60
+ }, {
61
+ size: {
62
+ '2xs': string;
63
+ xs: string;
64
+ sm: string;
65
+ md: string;
66
+ lg: string;
67
+ xl: string;
68
+ };
69
+ }>, {
70
+ size: {
71
+ '2xs': string;
72
+ xs: string;
73
+ sm: string;
74
+ md: string;
75
+ lg: string;
76
+ xl: string;
77
+ };
78
+ }, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
79
+ size: {
80
+ '2xs': string;
81
+ xs: string;
82
+ sm: string;
83
+ md: string;
84
+ lg: string;
85
+ xl: string;
86
+ };
87
+ }, undefined, "text-typography-50 fill-none", import("tailwind-variants/dist/config").TVConfig<{
88
+ size: {
89
+ '2xs': string;
90
+ xs: string;
91
+ sm: string;
92
+ md: string;
93
+ lg: string;
94
+ xl: string;
95
+ };
96
+ }, {
97
+ size: {
98
+ '2xs': string;
99
+ xs: string;
100
+ sm: string;
101
+ md: string;
102
+ lg: string;
103
+ xl: string;
104
+ };
105
+ }>, unknown, unknown, undefined>>;
106
+ declare const Fab: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>, "ref"> & {
107
+ context?: any;
108
+ } & React.RefAttributes<React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>>, "ref"> & import("@gluestack-ui/fab/lib/types").InterfaceFabProps & React.RefAttributes<Omit<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>, "ref"> & {
109
+ context?: any;
110
+ } & React.RefAttributes<React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>>>, "ref">, "context"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
111
+ size: {
112
+ sm: string;
113
+ md: string;
114
+ lg: string;
115
+ };
116
+ placement: {
117
+ 'top right': string;
118
+ 'top left': string;
119
+ 'bottom right': string;
120
+ 'bottom left': string;
121
+ 'top center': string;
122
+ 'bottom center': string;
123
+ };
124
+ } | ({
125
+ size: {
126
+ sm: string;
127
+ md: string;
128
+ lg: string;
129
+ };
130
+ placement: {
131
+ 'top right': string;
132
+ 'top left': string;
133
+ 'bottom right': string;
134
+ 'bottom left': string;
135
+ 'top center': string;
136
+ 'bottom center': string;
137
+ };
138
+ } & {
139
+ size: {
140
+ sm: import("tailwind-merge").ClassNameValue | {
141
+ base?: import("tailwind-merge").ClassNameValue;
142
+ };
143
+ md: import("tailwind-merge").ClassNameValue | {
144
+ base?: import("tailwind-merge").ClassNameValue;
145
+ };
146
+ lg: import("tailwind-merge").ClassNameValue | {
147
+ base?: import("tailwind-merge").ClassNameValue;
148
+ };
149
+ };
150
+ placement: {
151
+ 'top right': import("tailwind-merge").ClassNameValue | {
152
+ base?: import("tailwind-merge").ClassNameValue;
153
+ };
154
+ 'top left': import("tailwind-merge").ClassNameValue | {
155
+ base?: import("tailwind-merge").ClassNameValue;
156
+ };
157
+ 'bottom right': import("tailwind-merge").ClassNameValue | {
158
+ base?: import("tailwind-merge").ClassNameValue;
159
+ };
160
+ 'bottom left': import("tailwind-merge").ClassNameValue | {
161
+ base?: import("tailwind-merge").ClassNameValue;
162
+ };
163
+ 'top center': import("tailwind-merge").ClassNameValue | {
164
+ base?: import("tailwind-merge").ClassNameValue;
165
+ };
166
+ 'bottom center': import("tailwind-merge").ClassNameValue | {
167
+ base?: import("tailwind-merge").ClassNameValue;
168
+ };
169
+ };
170
+ }), undefined, "group/fab bg-primary-500 rounded-full z-20 p-4 flex-row items-center justify-center absolute hover:bg-primary-600 active:bg-primary-700 disabled:opacity-40 disabled:pointer-events-all disabled:cursor-not-allowed data-[focus=true]:web:outline-none data-[focus-visible=true]:web:ring-2 data-[focus-visible=true]:web:ring-indicator-info shadow-hard-2 border-0", import("tailwind-variants/dist/config").TVConfig<{
171
+ size: {
172
+ sm: string;
173
+ md: string;
174
+ lg: string;
175
+ };
176
+ placement: {
177
+ 'top right': string;
178
+ 'top left': string;
179
+ 'bottom right': string;
180
+ 'bottom left': string;
181
+ 'top center': string;
182
+ 'bottom center': string;
183
+ };
184
+ }, {
185
+ size: {
186
+ sm: string;
187
+ md: string;
188
+ lg: string;
189
+ };
190
+ placement: {
191
+ 'top right': string;
192
+ 'top left': string;
193
+ 'bottom right': string;
194
+ 'bottom left': string;
195
+ 'top center': string;
196
+ 'bottom center': string;
197
+ };
198
+ }>, {
199
+ size: {
200
+ sm: string;
201
+ md: string;
202
+ lg: string;
203
+ };
204
+ placement: {
205
+ 'top right': string;
206
+ 'top left': string;
207
+ 'bottom right': string;
208
+ 'bottom left': string;
209
+ 'top center': string;
210
+ 'bottom center': string;
211
+ };
212
+ }, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
213
+ size: {
214
+ sm: string;
215
+ md: string;
216
+ lg: string;
217
+ };
218
+ placement: {
219
+ 'top right': string;
220
+ 'top left': string;
221
+ 'bottom right': string;
222
+ 'bottom left': string;
223
+ 'top center': string;
224
+ 'bottom center': string;
225
+ };
226
+ }, undefined, "group/fab bg-primary-500 rounded-full z-20 p-4 flex-row items-center justify-center absolute hover:bg-primary-600 active:bg-primary-700 disabled:opacity-40 disabled:pointer-events-all disabled:cursor-not-allowed data-[focus=true]:web:outline-none data-[focus-visible=true]:web:ring-2 data-[focus-visible=true]:web:ring-indicator-info shadow-hard-2 border-0", import("tailwind-variants/dist/config").TVConfig<{
227
+ size: {
228
+ sm: string;
229
+ md: string;
230
+ lg: string;
231
+ };
232
+ placement: {
233
+ 'top right': string;
234
+ 'top left': string;
235
+ 'bottom right': string;
236
+ 'bottom left': string;
237
+ 'top center': string;
238
+ 'bottom center': string;
239
+ };
240
+ }, {
241
+ size: {
242
+ sm: string;
243
+ md: string;
244
+ lg: string;
245
+ };
246
+ placement: {
247
+ 'top right': string;
248
+ 'top left': string;
249
+ 'bottom right': string;
250
+ 'bottom left': string;
251
+ 'top center': string;
252
+ 'bottom center': string;
253
+ };
254
+ }>, unknown, unknown, undefined>>> & React.RefAttributes<Omit<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>, "ref"> & {
255
+ context?: any;
256
+ } & React.RefAttributes<React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>>>>;
257
+ declare const FabLabel: React.ForwardRefExoticComponent<Omit<Omit<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>, "ref"> & VariantProps<import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
258
+ isTruncated: {
259
+ true: string;
260
+ };
261
+ bold: {
262
+ true: string;
263
+ };
264
+ underline: {
265
+ true: string;
266
+ };
267
+ strikeThrough: {
268
+ true: string;
269
+ };
270
+ size: {
271
+ '2xs': string;
272
+ xs: string;
273
+ sm: string;
274
+ md: string;
275
+ lg: string;
276
+ xl: string;
277
+ '2xl': string;
278
+ '3xl': string;
279
+ '4xl': string;
280
+ '5xl': string;
281
+ '6xl': string;
282
+ };
283
+ sub: {
284
+ true: string;
285
+ };
286
+ italic: {
287
+ true: string;
288
+ };
289
+ highlight: {
290
+ true: string;
291
+ };
292
+ } & {
293
+ size: {
294
+ sm: string;
295
+ md: string;
296
+ lg: string;
297
+ };
298
+ }, undefined, "text-typography-50 font-normal font-body tracking-md text-left mx-2", import("tailwind-variants/dist/config").TVConfig<{
299
+ isTruncated: {
300
+ true: string;
301
+ };
302
+ bold: {
303
+ true: string;
304
+ };
305
+ underline: {
306
+ true: string;
307
+ };
308
+ strikeThrough: {
309
+ true: string;
310
+ };
311
+ size: {
312
+ '2xs': string;
313
+ xs: string;
314
+ sm: string;
315
+ md: string;
316
+ lg: string;
317
+ xl: string;
318
+ '2xl': string;
319
+ '3xl': string;
320
+ '4xl': string;
321
+ '5xl': string;
322
+ '6xl': string;
323
+ };
324
+ sub: {
325
+ true: string;
326
+ };
327
+ italic: {
328
+ true: string;
329
+ };
330
+ highlight: {
331
+ true: string;
332
+ };
333
+ }, {
334
+ isTruncated: {
335
+ true: string;
336
+ };
337
+ bold: {
338
+ true: string;
339
+ };
340
+ underline: {
341
+ true: string;
342
+ };
343
+ strikeThrough: {
344
+ true: string;
345
+ };
346
+ size: {
347
+ '2xs': string;
348
+ xs: string;
349
+ sm: string;
350
+ md: string;
351
+ lg: string;
352
+ xl: string;
353
+ '2xl': string;
354
+ '3xl': string;
355
+ '4xl': string;
356
+ '5xl': string;
357
+ '6xl': string;
358
+ };
359
+ sub: {
360
+ true: string;
361
+ };
362
+ italic: {
363
+ true: string;
364
+ };
365
+ highlight: {
366
+ true: string;
367
+ };
368
+ }>, {
369
+ isTruncated: {
370
+ true: string;
371
+ };
372
+ bold: {
373
+ true: string;
374
+ };
375
+ underline: {
376
+ true: string;
377
+ };
378
+ strikeThrough: {
379
+ true: string;
380
+ };
381
+ size: {
382
+ '2xs': string;
383
+ xs: string;
384
+ sm: string;
385
+ md: string;
386
+ lg: string;
387
+ xl: string;
388
+ '2xl': string;
389
+ '3xl': string;
390
+ '4xl': string;
391
+ '5xl': string;
392
+ '6xl': string;
393
+ };
394
+ sub: {
395
+ true: string;
396
+ };
397
+ italic: {
398
+ true: string;
399
+ };
400
+ highlight: {
401
+ true: string;
402
+ };
403
+ }, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
404
+ isTruncated: {
405
+ true: string;
406
+ };
407
+ bold: {
408
+ true: string;
409
+ };
410
+ underline: {
411
+ true: string;
412
+ };
413
+ strikeThrough: {
414
+ true: string;
415
+ };
416
+ size: {
417
+ '2xs': string;
418
+ xs: string;
419
+ sm: string;
420
+ md: string;
421
+ lg: string;
422
+ xl: string;
423
+ '2xl': string;
424
+ '3xl': string;
425
+ '4xl': string;
426
+ '5xl': string;
427
+ '6xl': string;
428
+ };
429
+ sub: {
430
+ true: string;
431
+ };
432
+ italic: {
433
+ true: string;
434
+ };
435
+ highlight: {
436
+ true: string;
437
+ };
438
+ }, undefined, "text-typography-50 font-normal font-body tracking-md text-left mx-2", import("tailwind-variants/dist/config").TVConfig<{
439
+ isTruncated: {
440
+ true: string;
441
+ };
442
+ bold: {
443
+ true: string;
444
+ };
445
+ underline: {
446
+ true: string;
447
+ };
448
+ strikeThrough: {
449
+ true: string;
450
+ };
451
+ size: {
452
+ '2xs': string;
453
+ xs: string;
454
+ sm: string;
455
+ md: string;
456
+ lg: string;
457
+ xl: string;
458
+ '2xl': string;
459
+ '3xl': string;
460
+ '4xl': string;
461
+ '5xl': string;
462
+ '6xl': string;
463
+ };
464
+ sub: {
465
+ true: string;
466
+ };
467
+ italic: {
468
+ true: string;
469
+ };
470
+ highlight: {
471
+ true: string;
472
+ };
473
+ }, {
474
+ isTruncated: {
475
+ true: string;
476
+ };
477
+ bold: {
478
+ true: string;
479
+ };
480
+ underline: {
481
+ true: string;
482
+ };
483
+ strikeThrough: {
484
+ true: string;
485
+ };
486
+ size: {
487
+ '2xs': string;
488
+ xs: string;
489
+ sm: string;
490
+ md: string;
491
+ lg: string;
492
+ xl: string;
493
+ '2xl': string;
494
+ '3xl': string;
495
+ '4xl': string;
496
+ '5xl': string;
497
+ '6xl': string;
498
+ };
499
+ sub: {
500
+ true: string;
501
+ };
502
+ italic: {
503
+ true: string;
504
+ };
505
+ highlight: {
506
+ true: string;
507
+ };
508
+ }>, unknown, unknown, undefined>>> & React.RefAttributes<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>>;
509
+ type IFabIconProps = React.ComponentPropsWithoutRef<typeof UIFab.Icon> & VariantProps<typeof fabIconStyle> & {
510
+ height?: number;
511
+ width?: number;
512
+ };
513
+ declare const FabIcon: React.ForwardRefExoticComponent<IFabIconProps & React.RefAttributes<import("@gluestack-ui/icon/lib/createIcon").IIconProps & (((import("@gluestack-ui/icon").IPrimitiveIcon & React.RefAttributes<import("@gluestack-ui/icon").Svg>) | {
514
+ fill?: import("react-native").ColorValue;
515
+ stroke?: import("react-native").ColorValue;
516
+ }) & React.RefAttributes<(import("@gluestack-ui/icon").IPrimitiveIcon & React.RefAttributes<import("@gluestack-ui/icon").Svg>) | {
517
+ fill?: import("react-native").ColorValue;
518
+ stroke?: import("react-native").ColorValue;
519
+ }>)>>;
520
+ export { Fab, FabLabel, FabIcon };
@@ -0,0 +1,146 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { createFab } from '@gluestack-ui/fab';
4
+ import { tva } from '@gluestack-ui/nativewind-utils/tva';
5
+ import { withStyleContext, useStyleContext } from '@gluestack-ui/nativewind-utils/withStyleContext';
6
+ import { cssInterop } from 'nativewind';
7
+ import { PrimitiveIcon, UIIcon } from '@gluestack-ui/icon';
8
+ const SCOPE = 'FAB';
9
+ // Create styled components for web
10
+ const StyledButton = React.forwardRef((props, ref) => React.createElement("button", { ref: ref, ...props }));
11
+ StyledButton.displayName = 'StyledButton';
12
+ const StyledSpan = React.forwardRef((props, ref) => (React.createElement("span", { ref: ref, ...props })));
13
+ StyledSpan.displayName = 'StyledSpan';
14
+ const Root = withStyleContext(StyledButton, SCOPE);
15
+ const UIFab = createFab({
16
+ Root: Root,
17
+ Label: StyledSpan,
18
+ Icon: UIIcon,
19
+ });
20
+ cssInterop(PrimitiveIcon, {
21
+ className: {
22
+ target: 'style',
23
+ nativeStyleToProp: {
24
+ height: true,
25
+ width: true,
26
+ fill: true,
27
+ color: 'classNameColor',
28
+ stroke: true,
29
+ },
30
+ },
31
+ });
32
+ const fabStyle = tva({
33
+ base: 'group/fab bg-primary-500 rounded-full z-20 p-4 flex-row items-center justify-center absolute hover:bg-primary-600 active:bg-primary-700 disabled:opacity-40 disabled:pointer-events-all disabled:cursor-not-allowed data-[focus=true]:web:outline-none data-[focus-visible=true]:web:ring-2 data-[focus-visible=true]:web:ring-indicator-info shadow-hard-2 border-0',
34
+ variants: {
35
+ size: {
36
+ sm: 'px-2.5 py-2.5',
37
+ md: 'px-3 py-3',
38
+ lg: 'px-4 py-4',
39
+ },
40
+ placement: {
41
+ 'top right': 'top-4 right-4',
42
+ 'top left': 'top-4 left-4',
43
+ 'bottom right': 'bottom-4 right-4',
44
+ 'bottom left': 'bottom-4 left-4',
45
+ 'top center': 'top-4 self-center',
46
+ 'bottom center': 'bottom-4 self-center',
47
+ },
48
+ },
49
+ });
50
+ const fabLabelStyle = tva({
51
+ base: 'text-typography-50 font-normal font-body tracking-md text-left mx-2',
52
+ variants: {
53
+ isTruncated: {
54
+ true: 'truncate',
55
+ },
56
+ bold: {
57
+ true: 'font-bold',
58
+ },
59
+ underline: {
60
+ true: 'underline',
61
+ },
62
+ strikeThrough: {
63
+ true: 'line-through',
64
+ },
65
+ size: {
66
+ '2xs': 'text-2xs',
67
+ xs: 'text-xs',
68
+ sm: 'text-sm',
69
+ md: 'text-base',
70
+ lg: 'text-lg',
71
+ xl: 'text-xl',
72
+ '2xl': 'text-2xl',
73
+ '3xl': 'text-3xl',
74
+ '4xl': 'text-4xl',
75
+ '5xl': 'text-5xl',
76
+ '6xl': 'text-6xl',
77
+ },
78
+ sub: {
79
+ true: 'text-xs',
80
+ },
81
+ italic: {
82
+ true: 'italic',
83
+ },
84
+ highlight: {
85
+ true: 'bg-yellow-500',
86
+ },
87
+ },
88
+ parentVariants: {
89
+ size: {
90
+ sm: 'text-sm',
91
+ md: 'text-base',
92
+ lg: 'text-lg',
93
+ },
94
+ },
95
+ });
96
+ const fabIconStyle = tva({
97
+ base: 'text-typography-50 fill-none',
98
+ variants: {
99
+ size: {
100
+ '2xs': 'h-3 w-3',
101
+ xs: 'h-3.5 w-3.5',
102
+ sm: 'h-4 w-4',
103
+ md: 'w-[18px] h-[18px]',
104
+ lg: 'h-5 w-5',
105
+ xl: 'h-6 w-6',
106
+ },
107
+ },
108
+ });
109
+ const Fab = React.forwardRef(({ size = 'md', placement = 'bottom right', className, ...props }, ref) => {
110
+ return (React.createElement(UIFab, { ref: ref, ...props, className: fabStyle({ size, placement, class: className }), context: { size } }));
111
+ });
112
+ const FabLabel = React.forwardRef(({ size, isTruncated = false, bold = false, underline = false, strikeThrough = false, className, ...props }, ref) => {
113
+ const { size: parentSize } = useStyleContext(SCOPE);
114
+ return (React.createElement(UIFab.Label, { ref: ref, ...props, className: fabLabelStyle({
115
+ parentVariants: {
116
+ size: parentSize,
117
+ },
118
+ size,
119
+ isTruncated,
120
+ bold,
121
+ underline,
122
+ strikeThrough,
123
+ class: className,
124
+ }) }));
125
+ });
126
+ const FabIcon = React.forwardRef(({ size, className, ...props }, ref) => {
127
+ const { size: parentSize } = useStyleContext(SCOPE);
128
+ if (typeof size === 'number') {
129
+ return React.createElement(UIFab.Icon, { ref: ref, ...props, className: fabIconStyle({ class: className }), size: size });
130
+ }
131
+ else if ((props.height !== undefined || props.width !== undefined) && size === undefined) {
132
+ return React.createElement(UIFab.Icon, { ref: ref, ...props, className: fabIconStyle({ class: className }) });
133
+ }
134
+ return (React.createElement(UIFab.Icon, { ref: ref, ...props, className: fabIconStyle({
135
+ parentVariants: {
136
+ size: parentSize,
137
+ },
138
+ size,
139
+ class: className,
140
+ }) }));
141
+ });
142
+ Fab.displayName = 'Fab';
143
+ FabLabel.displayName = 'FabLabel';
144
+ FabIcon.displayName = 'FabIcon';
145
+ export { Fab, FabLabel, FabIcon };
146
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/components/ui/fab/index.web.tsx"],"names":[],"mappings":"AAAA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{
5
+ item: T;
6
+ index: number;
7
+ }) => React.ReactElement;
8
+ keyExtractor?: (item: T, index: number) => string;
9
+ horizontal?: boolean;
10
+ className?: string;
11
+ contentContainerStyle?: React.CSSProperties;
12
+ ListHeaderComponent?: React.ReactElement | null;
13
+ ListFooterComponent?: React.ReactElement | null;
14
+ ListEmptyComponent?: React.ReactElement | null;
15
+ onEndReached?: () => void;
16
+ onEndReachedThreshold?: number;
17
+ }
18
+ declare const FlatList: <T>(props: FlatListProps<T> & {
19
+ ref?: React.Ref<HTMLDivElement>;
20
+ }) => React.ReactElement;
21
+ export { FlatList };