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

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 +2 -6
  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
package/CHANGELOG.md CHANGED
@@ -3,15 +3,11 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [10.0.9-alpha.9](https://github.com/CDEBase/admin-layout/compare/v10.0.9-alpha.8...v10.0.9-alpha.9) (2025-04-16)
6
+ ## [10.1.1-alpha.8](https://github.com/CDEBase/admin-layout/compare/v10.1.1-alpha.7...v10.1.1-alpha.8) (2025-06-10)
7
7
 
8
8
  **Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
9
9
 
10
- ## [10.0.9-alpha.4](https://github.com/CDEBase/admin-layout/compare/v10.0.9-alpha.3...v10.0.9-alpha.4) (2025-04-14)
11
-
12
- ## [10.0.8-alpha.2](https://github.com/CDEBase/admin-layout/compare/v10.0.8-alpha.1...v10.0.8-alpha.2) (2025-04-11)
13
-
14
- ## [10.0.8-alpha.0](https://github.com/CDEBase/admin-layout/compare/v10.0.6...v10.0.8-alpha.0) (2025-04-11)
10
+ ## [10.1.1-alpha.0](https://github.com/CDEBase/admin-layout/compare/v10.0.8-alpha.2...v10.1.1-alpha.0) (2025-05-22)
15
11
 
16
12
  **Note:** Version bump only for package @admin-layout/gluestack-ui-mobile
17
13
 
@@ -0,0 +1,209 @@
1
+ import React from 'react';
2
+ import type { VariantProps } from '@gluestack-ui/nativewind-utils';
3
+ /** Styles */
4
+ declare const accordionStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
5
+ variant: {
6
+ filled: string;
7
+ unfilled: string;
8
+ };
9
+ size: {
10
+ sm: string;
11
+ md: string;
12
+ lg: string;
13
+ };
14
+ } | ({
15
+ variant: {
16
+ filled: string;
17
+ unfilled: string;
18
+ };
19
+ size: {
20
+ sm: string;
21
+ md: string;
22
+ lg: string;
23
+ };
24
+ } & {
25
+ variant: {
26
+ filled: import("tailwind-merge").ClassNameValue | {
27
+ base?: import("tailwind-merge").ClassNameValue;
28
+ };
29
+ unfilled: import("tailwind-merge").ClassNameValue | {
30
+ base?: import("tailwind-merge").ClassNameValue;
31
+ };
32
+ };
33
+ size: {
34
+ sm: import("tailwind-merge").ClassNameValue | {
35
+ base?: import("tailwind-merge").ClassNameValue;
36
+ };
37
+ md: import("tailwind-merge").ClassNameValue | {
38
+ base?: import("tailwind-merge").ClassNameValue;
39
+ };
40
+ lg: import("tailwind-merge").ClassNameValue | {
41
+ base?: import("tailwind-merge").ClassNameValue;
42
+ };
43
+ };
44
+ }), undefined, "w-full", import("tailwind-variants/dist/config").TVConfig<{
45
+ variant: {
46
+ filled: string;
47
+ unfilled: string;
48
+ };
49
+ size: {
50
+ sm: string;
51
+ md: string;
52
+ lg: string;
53
+ };
54
+ }, {
55
+ variant: {
56
+ filled: string;
57
+ unfilled: string;
58
+ };
59
+ size: {
60
+ sm: string;
61
+ md: string;
62
+ lg: string;
63
+ };
64
+ }>, {
65
+ variant: {
66
+ filled: string;
67
+ unfilled: string;
68
+ };
69
+ size: {
70
+ sm: string;
71
+ md: string;
72
+ lg: string;
73
+ };
74
+ }, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
75
+ variant: {
76
+ filled: string;
77
+ unfilled: string;
78
+ };
79
+ size: {
80
+ sm: string;
81
+ md: string;
82
+ lg: string;
83
+ };
84
+ }, undefined, "w-full", import("tailwind-variants/dist/config").TVConfig<{
85
+ variant: {
86
+ filled: string;
87
+ unfilled: string;
88
+ };
89
+ size: {
90
+ sm: string;
91
+ md: string;
92
+ lg: string;
93
+ };
94
+ }, {
95
+ variant: {
96
+ filled: string;
97
+ unfilled: string;
98
+ };
99
+ size: {
100
+ sm: string;
101
+ md: string;
102
+ lg: string;
103
+ };
104
+ }>, unknown, unknown, undefined>>;
105
+ declare const accordionItemStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
106
+ variant: {
107
+ filled: string;
108
+ unfilled: string;
109
+ };
110
+ } | ({} & {
111
+ variant: {
112
+ filled: string;
113
+ unfilled: string;
114
+ };
115
+ }), undefined, "", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>;
116
+ declare const accordionTitleTextStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
117
+ size: {
118
+ sm: string;
119
+ md: string;
120
+ lg: string;
121
+ };
122
+ } | ({} & {
123
+ size: {
124
+ sm: string;
125
+ md: string;
126
+ lg: string;
127
+ };
128
+ }), undefined, "text-typography-900 font-bold flex-1 text-left", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "text-typography-900 font-bold flex-1 text-left", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>;
129
+ declare const accordionIconStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
130
+ size: {
131
+ '2xs': string;
132
+ xs: string;
133
+ sm: string;
134
+ md: string;
135
+ lg: string;
136
+ xl: string;
137
+ };
138
+ } | ({} & {
139
+ size: {
140
+ '2xs': string;
141
+ xs: string;
142
+ sm: string;
143
+ md: string;
144
+ lg: string;
145
+ xl: string;
146
+ };
147
+ }), undefined, "text-typography-900 fill-none", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "text-typography-900 fill-none", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>;
148
+ declare const accordionContentTextStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
149
+ size: {
150
+ sm: string;
151
+ md: string;
152
+ lg: string;
153
+ };
154
+ } | ({} & {
155
+ size: {
156
+ sm: string;
157
+ md: string;
158
+ lg: string;
159
+ };
160
+ }), undefined, "text-typography-700 font-normal", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "text-typography-700 font-normal", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>;
161
+ declare const accordionHeaderStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "mx-0 my-0", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "mx-0 my-0", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>;
162
+ declare const accordionContentStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "pt-1 pb-3 px-4", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "pt-1 pb-3 px-4", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>;
163
+ declare const accordionTriggerStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{} | {}, undefined, "w-full flex-row justify-between items-center outline-none focus:outline-none data-[disabled=true]:opacity-40 data-[disabled=true]:cursor-not-allowed data-[focus-visible=true]:bg-background-50 py-3 px-4", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<unknown, undefined, "w-full flex-row justify-between items-center outline-none focus:outline-none data-[disabled=true]:opacity-40 data-[disabled=true]:cursor-not-allowed data-[focus-visible=true]:bg-background-50 py-3 px-4", import("tailwind-variants/dist/config").TVConfig<unknown, unknown>, unknown, unknown, undefined>>;
164
+ /** Creator */
165
+ declare const UIAccordion: import("@gluestack-ui/accordion/lib/types").IAccordionComponentType<Omit<any, "ref"> & {
166
+ context?: any;
167
+ } & React.RefAttributes<any>, Omit<any, "ref"> & React.RefAttributes<unknown>, Omit<any, "ref"> & React.RefAttributes<unknown>, Omit<any, "ref"> & React.RefAttributes<unknown>, Omit<any, "ref"> & React.RefAttributes<unknown>, import("@gluestack-ui/icon/lib/createIcon").IIconProps & (((import("@gluestack-ui/icon").IPrimitiveIcon & React.RefAttributes<import("@gluestack-ui/icon").Svg>) | {
168
+ fill?: import("react-native").ColorValue;
169
+ stroke?: import("react-native").ColorValue;
170
+ }) & React.RefAttributes<(import("@gluestack-ui/icon").IPrimitiveIcon & React.RefAttributes<import("@gluestack-ui/icon").Svg>) | {
171
+ fill?: import("react-native").ColorValue;
172
+ stroke?: import("react-native").ColorValue;
173
+ }>), Omit<any, "ref"> & React.RefAttributes<unknown>, Omit<any, "ref"> & React.RefAttributes<unknown>>;
174
+ type StyleContextType = {
175
+ variant?: 'filled' | 'unfilled';
176
+ size?: 'sm' | 'md' | 'lg';
177
+ };
178
+ type IAccordionProps = React.ComponentPropsWithoutRef<typeof UIAccordion> & VariantProps<typeof accordionStyle> & {
179
+ context?: StyleContextType;
180
+ };
181
+ type IAccordionItemProps = React.ComponentPropsWithoutRef<typeof UIAccordion.Item> & VariantProps<typeof accordionItemStyle>;
182
+ type IAccordionContentProps = React.ComponentPropsWithoutRef<typeof UIAccordion.Content> & VariantProps<typeof accordionContentStyle>;
183
+ type IAccordionContentTextProps = React.ComponentPropsWithoutRef<typeof UIAccordion.ContentText> & VariantProps<typeof accordionContentTextStyle>;
184
+ type IAccordionIconProps = VariantProps<typeof accordionIconStyle> & React.ComponentPropsWithoutRef<typeof UIAccordion.Icon> & {
185
+ as?: React.ElementType;
186
+ height?: number;
187
+ width?: number;
188
+ };
189
+ type IAccordionHeaderProps = React.ComponentPropsWithoutRef<typeof UIAccordion.Header> & VariantProps<typeof accordionHeaderStyle>;
190
+ type IAccordionTriggerProps = React.ComponentPropsWithoutRef<typeof UIAccordion.Trigger> & VariantProps<typeof accordionTriggerStyle>;
191
+ type IAccordionTitleTextProps = React.ComponentPropsWithoutRef<typeof UIAccordion.TitleText> & VariantProps<typeof accordionTitleTextStyle>;
192
+ /** Components */
193
+ declare const Accordion: React.ForwardRefExoticComponent<Omit<IAccordionProps, "ref"> & React.RefAttributes<Omit<any, "ref"> & {
194
+ context?: any;
195
+ } & React.RefAttributes<any>>>;
196
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<IAccordionItemProps, "ref"> & React.RefAttributes<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
197
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<IAccordionContentProps, "ref"> & React.RefAttributes<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
198
+ declare const AccordionContentText: React.ForwardRefExoticComponent<Omit<IAccordionContentTextProps, "ref"> & React.RefAttributes<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
199
+ declare const AccordionIcon: React.ForwardRefExoticComponent<IAccordionIconProps & React.RefAttributes<import("@gluestack-ui/icon/lib/createIcon").IIconProps & (((import("@gluestack-ui/icon").IPrimitiveIcon & React.RefAttributes<import("@gluestack-ui/icon").Svg>) | {
200
+ fill?: import("react-native").ColorValue;
201
+ stroke?: import("react-native").ColorValue;
202
+ }) & React.RefAttributes<(import("@gluestack-ui/icon").IPrimitiveIcon & React.RefAttributes<import("@gluestack-ui/icon").Svg>) | {
203
+ fill?: import("react-native").ColorValue;
204
+ stroke?: import("react-native").ColorValue;
205
+ }>)>>;
206
+ declare const AccordionHeader: React.ForwardRefExoticComponent<Omit<IAccordionHeaderProps, "ref"> & React.RefAttributes<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
207
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<IAccordionTriggerProps, "ref"> & React.RefAttributes<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
208
+ declare const AccordionTitleText: React.ForwardRefExoticComponent<Omit<IAccordionTitleTextProps, "ref"> & React.RefAttributes<Omit<any, "ref"> & React.RefAttributes<unknown>>>;
209
+ export { Accordion, AccordionItem, AccordionHeader, AccordionTrigger, AccordionTitleText, AccordionContentText, AccordionIcon, AccordionContent, };
@@ -0,0 +1,156 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { createAccordion } from '@gluestack-ui/accordion';
4
+ import { tva } from '@gluestack-ui/nativewind-utils/tva';
5
+ import { withStyleContext, useStyleContext } from '@gluestack-ui/nativewind-utils/withStyleContext';
6
+ import { UIIcon } from '@gluestack-ui/icon';
7
+ const SCOPE = 'ACCORDION';
8
+ /** Styles */
9
+ const accordionStyle = tva({
10
+ base: 'w-full',
11
+ variants: {
12
+ variant: {
13
+ filled: 'bg-white shadow-hard-2',
14
+ unfilled: '',
15
+ },
16
+ size: {
17
+ sm: '',
18
+ md: '',
19
+ lg: '',
20
+ },
21
+ },
22
+ });
23
+ const accordionItemStyle = tva({
24
+ base: '',
25
+ parentVariants: {
26
+ variant: {
27
+ filled: 'bg-background-0',
28
+ unfilled: 'bg-transparent',
29
+ },
30
+ },
31
+ });
32
+ const accordionTitleTextStyle = tva({
33
+ base: 'text-typography-900 font-bold flex-1 text-left',
34
+ parentVariants: {
35
+ size: {
36
+ sm: 'text-sm',
37
+ md: 'text-base',
38
+ lg: 'text-lg',
39
+ },
40
+ },
41
+ });
42
+ const accordionIconStyle = tva({
43
+ base: 'text-typography-900 fill-none',
44
+ parentVariants: {
45
+ size: {
46
+ '2xs': 'h-3 w-3',
47
+ xs: 'h-3.5 w-3.5',
48
+ sm: 'h-4 w-4',
49
+ md: 'h-[18px] w-[18px]',
50
+ lg: 'h-5 w-5',
51
+ xl: 'h-6 w-6',
52
+ },
53
+ },
54
+ });
55
+ const accordionContentTextStyle = tva({
56
+ base: 'text-typography-700 font-normal',
57
+ parentVariants: {
58
+ size: {
59
+ sm: 'text-sm',
60
+ md: 'text-base',
61
+ lg: 'text-lg',
62
+ },
63
+ },
64
+ });
65
+ const accordionHeaderStyle = tva({
66
+ base: 'mx-0 my-0',
67
+ });
68
+ const accordionContentStyle = tva({
69
+ base: 'pt-1 pb-3 px-4',
70
+ });
71
+ const accordionTriggerStyle = tva({
72
+ base: 'w-full flex-row justify-between items-center outline-none focus:outline-none data-[disabled=true]:opacity-40 data-[disabled=true]:cursor-not-allowed data-[focus-visible=true]:bg-background-50 py-3 px-4',
73
+ });
74
+ // Create web-specific components
75
+ const RootComponent = withStyleContext('div', SCOPE);
76
+ const ItemComponent = React.forwardRef((props, ref) => React.createElement("div", { ...props, ref: ref }));
77
+ const HeaderComponent = React.forwardRef((props, ref) => React.createElement("h3", { ...props, ref: ref }));
78
+ const TriggerComponent = React.forwardRef((props, ref) => React.createElement("button", { ...props, ref: ref }));
79
+ const TitleTextComponent = React.forwardRef((props, ref) => React.createElement("span", { ...props, ref: ref }));
80
+ const ContentTextComponent = React.forwardRef((props, ref) => React.createElement("p", { ...props, ref: ref }));
81
+ const ContentComponent = React.forwardRef((props, ref) => React.createElement("div", { ...props, ref: ref }));
82
+ /** Creator */
83
+ const UIAccordion = createAccordion({
84
+ Root: RootComponent,
85
+ Item: ItemComponent,
86
+ Header: HeaderComponent,
87
+ Trigger: TriggerComponent,
88
+ Icon: UIIcon,
89
+ TitleText: TitleTextComponent,
90
+ ContentText: ContentTextComponent,
91
+ Content: ContentComponent,
92
+ });
93
+ /** Components */
94
+ const Accordion = React.forwardRef(({ className, variant = 'filled', size = 'md', ...props }, ref) => {
95
+ return (React.createElement(UIAccordion, { ref: ref, ...props, className: accordionStyle({ variant, class: className }), context: { variant, size } }));
96
+ });
97
+ const AccordionItem = React.forwardRef(({ className, ...props }, ref) => {
98
+ const { variant } = useStyleContext(SCOPE);
99
+ return (React.createElement(UIAccordion.Item, { ref: ref, ...props, className: accordionItemStyle({
100
+ parentVariants: { variant },
101
+ class: className,
102
+ }) }));
103
+ });
104
+ const AccordionContent = React.forwardRef(({ className, ...props }, ref) => {
105
+ return (React.createElement(UIAccordion.Content, { ref: ref, ...props, className: accordionContentStyle({
106
+ class: className,
107
+ }) }));
108
+ });
109
+ const AccordionContentText = React.forwardRef(({ className, ...props }, ref) => {
110
+ const { size } = useStyleContext(SCOPE);
111
+ return (React.createElement(UIAccordion.ContentText, { ref: ref, ...props, className: accordionContentTextStyle({
112
+ parentVariants: { size },
113
+ class: className,
114
+ }) }));
115
+ });
116
+ const AccordionIcon = React.forwardRef(({ size, className, ...props }, ref) => {
117
+ const { size: parentSize } = useStyleContext(SCOPE);
118
+ if (typeof size === 'number') {
119
+ return (React.createElement(UIAccordion.Icon, { ref: ref, ...props, className: accordionIconStyle({ class: className }), size: size }));
120
+ }
121
+ else if ((props.height !== undefined || props.width !== undefined) && size === undefined) {
122
+ return React.createElement(UIAccordion.Icon, { ref: ref, ...props, className: accordionIconStyle({ class: className }) });
123
+ }
124
+ return (React.createElement(UIAccordion.Icon, { ref: ref, ...props, className: accordionIconStyle({
125
+ size,
126
+ class: className,
127
+ parentVariants: { size: parentSize },
128
+ }) }));
129
+ });
130
+ const AccordionHeader = React.forwardRef(({ className, ...props }, ref) => {
131
+ return (React.createElement(UIAccordion.Header, { ref: ref, ...props, className: accordionHeaderStyle({
132
+ class: className,
133
+ }) }));
134
+ });
135
+ const AccordionTrigger = React.forwardRef(({ className, ...props }, ref) => {
136
+ return (React.createElement(UIAccordion.Trigger, { ref: ref, ...props, className: accordionTriggerStyle({
137
+ class: className,
138
+ }) }));
139
+ });
140
+ const AccordionTitleText = React.forwardRef(({ className, ...props }, ref) => {
141
+ const { size } = useStyleContext(SCOPE);
142
+ return (React.createElement(UIAccordion.TitleText, { ref: ref, ...props, className: accordionTitleTextStyle({
143
+ parentVariants: { size },
144
+ class: className,
145
+ }) }));
146
+ });
147
+ Accordion.displayName = 'Accordion';
148
+ AccordionItem.displayName = 'AccordionItem';
149
+ AccordionHeader.displayName = 'AccordionHeader';
150
+ AccordionTrigger.displayName = 'AccordionTrigger';
151
+ AccordionTitleText.displayName = 'AccordionTitleText';
152
+ AccordionContentText.displayName = 'AccordionContentText';
153
+ AccordionIcon.displayName = 'AccordionIcon';
154
+ AccordionContent.displayName = 'AccordionContent';
155
+ export { Accordion, AccordionItem, AccordionHeader, AccordionTrigger, AccordionTitleText, AccordionContentText, AccordionIcon, AccordionContent, };
156
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/components/ui/accordion/index.web.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AACpG,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,MAAM,KAAK,GAAG,WAAW,CAAC;AAE1B,aAAa;AACb,MAAM,cAAc,GAAG,GAAG,CAAC;IACvB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE;QACN,OAAO,EAAE;YACL,MAAM,EAAE,wBAAwB;YAChC,QAAQ,EAAE,EAAE;SACf;QACD,IAAI,EAAE;YACF,EAAE,EAAE,EAAE;YACN,EAAE,EAAE,EAAE;YACN,EAAE,EAAE,EAAE;SACT;KACJ;CACJ,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,GAAG,CAAC;IAC3B,IAAI,EAAE,EAAE;IACR,cAAc,EAAE;QACZ,OAAO,EAAE;YACL,MAAM,EAAE,iBAAiB;YACzB,QAAQ,EAAE,gBAAgB;SAC7B;KACJ;CACJ,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG,GAAG,CAAC;IAChC,IAAI,EAAE,gDAAgD;IACtD,cAAc,EAAE;QACZ,IAAI,EAAE;YACF,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,WAAW;YACf,EAAE,EAAE,SAAS;SAChB;KACJ;CACJ,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,GAAG,CAAC;IAC3B,IAAI,EAAE,+BAA+B;IACrC,cAAc,EAAE;QACZ,IAAI,EAAE;YACF,KAAK,EAAE,SAAS;YA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