@admin-layout/gluestack-ui-mobile 11.0.4-alpha.4 → 12.0.16-alpha.2

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 (180) hide show
  1. package/CHANGELOG.md +67 -13
  2. package/lib/components/AuthWrapper.js +5 -3
  3. package/lib/components/AuthWrapper.js.map +1 -1
  4. package/lib/components/WithConfiguration.js +1 -1
  5. package/lib/components/WithConfiguration.js.map +1 -1
  6. package/lib/components/ui/accordion/index.web.d.ts +209 -0
  7. package/lib/components/ui/accordion/index.web.js +156 -0
  8. package/lib/components/ui/accordion/index.web.js.map +1 -0
  9. package/lib/components/ui/actionsheet/index.web.d.ts +872 -0
  10. package/lib/components/ui/actionsheet/index.web.js +286 -0
  11. package/lib/components/ui/actionsheet/index.web.js.map +1 -0
  12. package/lib/components/ui/alert/index.web.d.ts +135 -0
  13. package/lib/components/ui/alert/index.web.js +38 -0
  14. package/lib/components/ui/alert/index.web.js.map +1 -0
  15. package/lib/components/ui/alert-dialog/index.web.d.ts +64 -0
  16. package/lib/components/ui/alert-dialog/index.web.js +139 -0
  17. package/lib/components/ui/alert-dialog/index.web.js.map +1 -0
  18. package/lib/components/ui/avatar/index.web.d.ts +21 -0
  19. package/lib/components/ui/avatar/index.web.js +92 -0
  20. package/lib/components/ui/avatar/index.web.js.map +1 -0
  21. package/lib/components/ui/badge/index.web.d.ts +382 -0
  22. package/lib/components/ui/badge/index.web.js +138 -0
  23. package/lib/components/ui/badge/index.web.js.map +1 -0
  24. package/lib/components/ui/button/index.web.d.ts +247 -0
  25. package/lib/components/ui/button/index.web.js +57 -0
  26. package/lib/components/ui/button/index.web.js.map +1 -0
  27. package/lib/components/ui/checkbox/index.web.d.ts +265 -0
  28. package/lib/components/ui/checkbox/index.web.js +77 -0
  29. package/lib/components/ui/checkbox/index.web.js.map +1 -0
  30. package/lib/components/ui/divider/index.web.d.ts +53 -0
  31. package/lib/components/ui/divider/index.web.js +21 -0
  32. package/lib/components/ui/divider/index.web.js.map +1 -0
  33. package/lib/components/ui/drawer/index.web.d.ts +174 -0
  34. package/lib/components/ui/drawer/index.web.js +65 -0
  35. package/lib/components/ui/drawer/index.web.js.map +1 -0
  36. package/lib/components/ui/fab/index.web.d.ts +520 -0
  37. package/lib/components/ui/fab/index.web.js +146 -0
  38. package/lib/components/ui/fab/index.web.js.map +1 -0
  39. package/lib/components/ui/flat-list/index.web.d.ts +21 -0
  40. package/lib/components/ui/flat-list/index.web.js +41 -0
  41. package/lib/components/ui/flat-list/index.web.js.map +1 -0
  42. package/lib/components/ui/form-control/index.web.d.ts +2071 -0
  43. package/lib/components/ui/form-control/index.web.js +290 -0
  44. package/lib/components/ui/form-control/index.web.js.map +1 -0
  45. package/lib/components/ui/image/index.web.d.ts +142 -0
  46. package/lib/components/ui/image/index.web.js +29 -0
  47. package/lib/components/ui/image/index.web.js.map +1 -0
  48. package/lib/components/ui/image-background/index.web.d.ts +8 -0
  49. package/lib/components/ui/image-background/index.web.js +23 -0
  50. package/lib/components/ui/image-background/index.web.js.map +1 -0
  51. package/lib/components/ui/input/index.web.d.ts +163 -0
  52. package/lib/components/ui/input/index.web.js +50 -0
  53. package/lib/components/ui/input/index.web.js.map +1 -0
  54. package/lib/components/ui/input-accessory-view/index.web.d.ts +9 -0
  55. package/lib/components/ui/input-accessory-view/index.web.js +16 -0
  56. package/lib/components/ui/input-accessory-view/index.web.js.map +1 -0
  57. package/lib/components/ui/keyboard-avoiding-view/index.web.d.ts +9 -0
  58. package/lib/components/ui/keyboard-avoiding-view/index.web.js +8 -0
  59. package/lib/components/ui/keyboard-avoiding-view/index.web.js.map +1 -0
  60. package/lib/components/ui/link/index.web.d.ts +365 -0
  61. package/lib/components/ui/link/index.web.js +70 -0
  62. package/lib/components/ui/link/index.web.js.map +1 -0
  63. package/lib/components/ui/menu/index.web.d.ts +142 -0
  64. package/lib/components/ui/menu/index.web.js +83 -0
  65. package/lib/components/ui/menu/index.web.js.map +1 -0
  66. package/lib/components/ui/modal/index.web.d.ts +111 -0
  67. package/lib/components/ui/modal/index.web.js +58 -0
  68. package/lib/components/ui/modal/index.web.js.map +1 -0
  69. package/lib/components/ui/popover/index.web.d.ts +309 -0
  70. package/lib/components/ui/popover/index.web.js +184 -0
  71. package/lib/components/ui/popover/index.web.js.map +1 -0
  72. package/lib/components/ui/portal/index.web.d.ts +9 -0
  73. package/lib/components/ui/portal/index.web.js +16 -0
  74. package/lib/components/ui/portal/index.web.js.map +1 -0
  75. package/lib/components/ui/pressable/index.web.d.ts +8 -0
  76. package/lib/components/ui/pressable/index.web.js +44 -0
  77. package/lib/components/ui/pressable/index.web.js.map +1 -0
  78. package/lib/components/ui/progress/index.web.d.ts +237 -0
  79. package/lib/components/ui/progress/index.web.js +73 -0
  80. package/lib/components/ui/progress/index.web.js.map +1 -0
  81. package/lib/components/ui/radio/index.web.d.ts +224 -0
  82. package/lib/components/ui/radio/index.web.js +69 -0
  83. package/lib/components/ui/radio/index.web.js.map +1 -0
  84. package/lib/components/ui/refresh-control/index.web.d.ts +14 -0
  85. package/lib/components/ui/refresh-control/index.web.js +69 -0
  86. package/lib/components/ui/refresh-control/index.web.js.map +1 -0
  87. package/lib/components/ui/safe-area-view/index.web.d.ts +6 -0
  88. package/lib/components/ui/safe-area-view/index.web.js +10 -0
  89. package/lib/components/ui/safe-area-view/index.web.js.map +1 -0
  90. package/lib/components/ui/scroll-view/index.web.d.ts +44 -0
  91. package/lib/components/ui/scroll-view/index.web.js +41 -0
  92. package/lib/components/ui/scroll-view/index.web.js.map +1 -0
  93. package/lib/components/ui/section-list/index.web.d.ts +26 -0
  94. package/lib/components/ui/section-list/index.web.js +35 -0
  95. package/lib/components/ui/section-list/index.web.js.map +1 -0
  96. package/lib/components/ui/select/index.web.d.ts +162 -0
  97. package/lib/components/ui/select/index.web.js +51 -0
  98. package/lib/components/ui/select/index.web.js.map +1 -0
  99. package/lib/components/ui/slider/index.web.d.ts +223 -0
  100. package/lib/components/ui/slider/index.web.js +189 -0
  101. package/lib/components/ui/slider/index.web.js.map +1 -0
  102. package/lib/components/ui/spinner/index.web.d.ts +176 -0
  103. package/lib/components/ui/spinner/index.web.js +55 -0
  104. package/lib/components/ui/spinner/index.web.js.map +1 -0
  105. package/lib/components/ui/status-bar/index.web.d.ts +14 -0
  106. package/lib/components/ui/status-bar/index.web.js +7 -0
  107. package/lib/components/ui/status-bar/index.web.js.map +1 -0
  108. package/lib/components/ui/switch/index.web.d.ts +71 -0
  109. package/lib/components/ui/switch/index.web.js +27 -0
  110. package/lib/components/ui/switch/index.web.js.map +1 -0
  111. package/lib/components/ui/tabs/index.web.d.ts +351 -0
  112. package/lib/components/ui/tabs/index.web.js +120 -0
  113. package/lib/components/ui/tabs/index.web.js.map +1 -0
  114. package/lib/components/ui/textarea/index.web.d.ts +162 -0
  115. package/lib/components/ui/textarea/index.web.js +50 -0
  116. package/lib/components/ui/textarea/index.web.js.map +1 -0
  117. package/lib/components/ui/toast/index.web.d.ts +225 -0
  118. package/lib/components/ui/toast/index.web.js +80 -0
  119. package/lib/components/ui/toast/index.web.js.map +1 -0
  120. package/lib/components/ui/tooltip/index.web.d.ts +86 -0
  121. package/lib/components/ui/tooltip/index.web.js +110 -0
  122. package/lib/components/ui/tooltip/index.web.js.map +1 -0
  123. package/lib/components/ui/view/index.web.d.ts +2 -0
  124. package/lib/components/ui/view/index.web.js +7 -0
  125. package/lib/components/ui/view/index.web.js.map +1 -0
  126. package/lib/components/ui/virtualized-list/index.web.d.ts +19 -0
  127. package/lib/components/ui/virtualized-list/index.web.js +30 -0
  128. package/lib/components/ui/virtualized-list/index.web.js.map +1 -0
  129. package/lib/containers/layout/DrawerBottomNavigationConfig.d.ts +47 -47
  130. package/lib/containers/layout/DrawerConfig.d.ts +31 -31
  131. package/lib/interfaces/settings.d.ts +1 -0
  132. package/lib/redux/settings.d.ts +4 -9
  133. package/lib/utils/generateMobileNavigations.js +8 -8
  134. package/lib/utils/generateMobileNavigations.js.map +1 -1
  135. package/package.json +8 -4
  136. package/src/components/AuthWrapper.tsx +6 -3
  137. package/src/components/WithConfiguration.tsx +1 -1
  138. package/src/components/ui/accordion/index.web.tsx +294 -0
  139. package/src/components/ui/actionsheet/index.web.tsx +555 -0
  140. package/src/components/ui/alert/index.web.tsx +71 -0
  141. package/src/components/ui/alert-dialog/index.web.tsx +241 -0
  142. package/src/components/ui/avatar/index.web.tsx +150 -0
  143. package/src/components/ui/badge/index.web.tsx +188 -0
  144. package/src/components/ui/button/index.web.tsx +86 -0
  145. package/src/components/ui/checkbox/index.web.tsx +151 -0
  146. package/src/components/ui/divider/index.web.tsx +37 -0
  147. package/src/components/ui/drawer/index.web.tsx +144 -0
  148. package/src/components/ui/fab/index.web.tsx +201 -0
  149. package/src/components/ui/flat-list/index.web.tsx +89 -0
  150. package/src/components/ui/form-control/index.web.tsx +451 -0
  151. package/src/components/ui/image/index.web.tsx +43 -0
  152. package/src/components/ui/image-background/index.web.tsx +43 -0
  153. package/src/components/ui/input/index.web.tsx +80 -0
  154. package/src/components/ui/input-accessory-view/index.web.tsx +31 -0
  155. package/src/components/ui/keyboard-avoiding-view/index.web.tsx +23 -0
  156. package/src/components/ui/link/index.web.tsx +103 -0
  157. package/src/components/ui/menu/index.web.tsx +159 -0
  158. package/src/components/ui/modal/index.web.tsx +135 -0
  159. package/src/components/ui/popover/index.web.tsx +326 -0
  160. package/src/components/ui/portal/index.web.tsx +34 -0
  161. package/src/components/ui/pressable/index.web.tsx +73 -0
  162. package/src/components/ui/progress/index.web.tsx +123 -0
  163. package/src/components/ui/radio/index.web.tsx +130 -0
  164. package/src/components/ui/refresh-control/index.web.tsx +104 -0
  165. package/src/components/ui/safe-area-view/index.web.tsx +24 -0
  166. package/src/components/ui/scroll-view/index.web.tsx +142 -0
  167. package/src/components/ui/section-list/index.web.tsx +93 -0
  168. package/src/components/ui/select/index.web.tsx +83 -0
  169. package/src/components/ui/slider/index.web.tsx +283 -0
  170. package/src/components/ui/spinner/index.web.tsx +81 -0
  171. package/src/components/ui/status-bar/index.web.tsx +20 -0
  172. package/src/components/ui/switch/index.web.tsx +44 -0
  173. package/src/components/ui/tabs/index.web.tsx +205 -0
  174. package/src/components/ui/textarea/index.web.tsx +86 -0
  175. package/src/components/ui/toast/index.web.tsx +132 -0
  176. package/src/components/ui/tooltip/index.web.tsx +155 -0
  177. package/src/components/ui/view/index.web.tsx +15 -0
  178. package/src/components/ui/virtualized-list/index.web.tsx +84 -0
  179. package/src/interfaces/settings.ts +1 -0
  180. package/src/utils/generateMobileNavigations.ts +23 -23
@@ -0,0 +1,176 @@
1
+ import React from 'react';
2
+ import type { VariantProps } from '@gluestack-ui/nativewind-utils';
3
+ declare const spinnerStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
4
+ size: {
5
+ xs: string;
6
+ sm: string;
7
+ md: string;
8
+ lg: string;
9
+ xl: string;
10
+ };
11
+ colorScheme: {
12
+ primary: string;
13
+ success: string;
14
+ warning: string;
15
+ error: string;
16
+ light: string;
17
+ dark: string;
18
+ };
19
+ } | ({
20
+ size: {
21
+ xs: string;
22
+ sm: string;
23
+ md: string;
24
+ lg: string;
25
+ xl: string;
26
+ };
27
+ colorScheme: {
28
+ primary: string;
29
+ success: string;
30
+ warning: string;
31
+ error: string;
32
+ light: string;
33
+ dark: string;
34
+ };
35
+ } & {
36
+ size: {
37
+ xs: import("tailwind-merge").ClassNameValue | {
38
+ base?: import("tailwind-merge").ClassNameValue;
39
+ };
40
+ sm: import("tailwind-merge").ClassNameValue | {
41
+ base?: import("tailwind-merge").ClassNameValue;
42
+ };
43
+ md: import("tailwind-merge").ClassNameValue | {
44
+ base?: import("tailwind-merge").ClassNameValue;
45
+ };
46
+ lg: import("tailwind-merge").ClassNameValue | {
47
+ base?: import("tailwind-merge").ClassNameValue;
48
+ };
49
+ xl: import("tailwind-merge").ClassNameValue | {
50
+ base?: import("tailwind-merge").ClassNameValue;
51
+ };
52
+ };
53
+ colorScheme: {
54
+ primary: import("tailwind-merge").ClassNameValue | {
55
+ base?: import("tailwind-merge").ClassNameValue;
56
+ };
57
+ success: import("tailwind-merge").ClassNameValue | {
58
+ base?: import("tailwind-merge").ClassNameValue;
59
+ };
60
+ warning: import("tailwind-merge").ClassNameValue | {
61
+ base?: import("tailwind-merge").ClassNameValue;
62
+ };
63
+ error: import("tailwind-merge").ClassNameValue | {
64
+ base?: import("tailwind-merge").ClassNameValue;
65
+ };
66
+ light: import("tailwind-merge").ClassNameValue | {
67
+ base?: import("tailwind-merge").ClassNameValue;
68
+ };
69
+ dark: import("tailwind-merge").ClassNameValue | {
70
+ base?: import("tailwind-merge").ClassNameValue;
71
+ };
72
+ };
73
+ }), undefined, "inline-block rounded-full border-[2px] border-t-transparent animate-spin", import("tailwind-variants/dist/config").TVConfig<{
74
+ size: {
75
+ xs: string;
76
+ sm: string;
77
+ md: string;
78
+ lg: string;
79
+ xl: string;
80
+ };
81
+ colorScheme: {
82
+ primary: string;
83
+ success: string;
84
+ warning: string;
85
+ error: string;
86
+ light: string;
87
+ dark: string;
88
+ };
89
+ }, {
90
+ size: {
91
+ xs: string;
92
+ sm: string;
93
+ md: string;
94
+ lg: string;
95
+ xl: string;
96
+ };
97
+ colorScheme: {
98
+ primary: string;
99
+ success: string;
100
+ warning: string;
101
+ error: string;
102
+ light: string;
103
+ dark: string;
104
+ };
105
+ }>, {
106
+ size: {
107
+ xs: string;
108
+ sm: string;
109
+ md: string;
110
+ lg: string;
111
+ xl: string;
112
+ };
113
+ colorScheme: {
114
+ primary: string;
115
+ success: string;
116
+ warning: string;
117
+ error: string;
118
+ light: string;
119
+ dark: string;
120
+ };
121
+ }, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
122
+ size: {
123
+ xs: string;
124
+ sm: string;
125
+ md: string;
126
+ lg: string;
127
+ xl: string;
128
+ };
129
+ colorScheme: {
130
+ primary: string;
131
+ success: string;
132
+ warning: string;
133
+ error: string;
134
+ light: string;
135
+ dark: string;
136
+ };
137
+ }, undefined, "inline-block rounded-full border-[2px] border-t-transparent animate-spin", import("tailwind-variants/dist/config").TVConfig<{
138
+ size: {
139
+ xs: string;
140
+ sm: string;
141
+ md: string;
142
+ lg: string;
143
+ xl: string;
144
+ };
145
+ colorScheme: {
146
+ primary: string;
147
+ success: string;
148
+ warning: string;
149
+ error: string;
150
+ light: string;
151
+ dark: string;
152
+ };
153
+ }, {
154
+ size: {
155
+ xs: string;
156
+ sm: string;
157
+ md: string;
158
+ lg: string;
159
+ xl: string;
160
+ };
161
+ colorScheme: {
162
+ primary: string;
163
+ success: string;
164
+ warning: string;
165
+ error: string;
166
+ light: string;
167
+ dark: string;
168
+ };
169
+ }>, unknown, unknown, undefined>>;
170
+ type ISpinnerProps = React.ComponentProps<'div'> & {
171
+ size?: VariantProps<typeof spinnerStyle>['size'];
172
+ colorScheme?: VariantProps<typeof spinnerStyle>['colorScheme'];
173
+ label?: string;
174
+ };
175
+ declare const Spinner: React.ForwardRefExoticComponent<Omit<ISpinnerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
176
+ export { Spinner };
@@ -0,0 +1,55 @@
1
+ 'use client';
2
+ import React, { forwardRef } from 'react';
3
+ import { tva } from '@gluestack-ui/nativewind-utils/tva';
4
+ const SCOPE = 'SPINNER';
5
+ const spinnerStyle = tva({
6
+ base: 'inline-block rounded-full border-[2px] border-t-transparent animate-spin',
7
+ variants: {
8
+ size: {
9
+ xs: 'h-3 w-3 border-[1px]',
10
+ sm: 'h-4 w-4 border-[1.5px]',
11
+ md: 'h-6 w-6 border-[2px]',
12
+ lg: 'h-8 w-8 border-[2.5px]',
13
+ xl: 'h-12 w-12 border-[3px]',
14
+ },
15
+ colorScheme: {
16
+ primary: 'border-blue-600',
17
+ success: 'border-green-600',
18
+ warning: 'border-yellow-600',
19
+ error: 'border-red-600',
20
+ light: 'border-white',
21
+ dark: 'border-gray-900',
22
+ },
23
+ },
24
+ defaultVariants: {
25
+ size: 'md',
26
+ colorScheme: 'primary',
27
+ },
28
+ });
29
+ const Spinner = forwardRef(({ className, size, colorScheme, label = 'Loading...', ...props }, ref) => {
30
+ return (React.createElement("div", { ref: ref, role: "status", "aria-label": label, className: spinnerStyle({ size, colorScheme, class: className }), ...props },
31
+ React.createElement("span", { className: "sr-only" }, label)));
32
+ });
33
+ Spinner.displayName = 'Spinner';
34
+ export { Spinner };
35
+ // Add keyframes for spin animation to your global CSS:
36
+ const styles = `
37
+ @keyframes spin {
38
+ from {
39
+ transform: rotate(0deg);
40
+ }
41
+ to {
42
+ transform: rotate(360deg);
43
+ }
44
+ }
45
+
46
+ .animate-spin {
47
+ animation: spin 0.8s linear infinite;
48
+ }
49
+ `;
50
+ if (typeof document !== 'undefined') {
51
+ const styleSheet = document.createElement('style');
52
+ styleSheet.textContent = styles;
53
+ document.head.appendChild(styleSheet);
54
+ }
55
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/components/ui/spinner/index.web.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AAKzD,MAAM,KAAK,GAAG,SAAS,CAAC;AAExB,MAAM,YAAY,GAAG,GAAG,CAAC;IACrB,IAAI,EAAE,0EAA0E;IAChF,QAAQ,EAAE;QACN,IAAI,EAAE;YACF,EAAE,EAAE,sBAAsB;YAC1B,EAAE,EAAE,wBAAwB;YAC5B,EAAE,EAAE,sBAAsB;YAC1B,EAAE,EAAE,wBAAwB;YAC5B,EAAE,EAAE,wBAAwB;SAC/B;QACD,WAAW,EAAE;YACT,OAAO,EAAE,iBAAiB;YAC1B,OAAO,EAAE,kBAAkB;YAC3B,OAAO,EAAE,mBAAmB;YAC5B,KAAK,EAAE,gBAAgB;YACvB,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,iBAAiB;SAC1B;KACJ;IACD,eAAe,EAAE;QACb,IAAI,EAAE,IAAI;QACV,WAAW,EAAE,SAAS;KACzB;CACJ,CAAC,CAAC;AAQH,MAAM,OAAO,GAAG,UAAU,CACtB,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,GAAG,YAAY,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACtE,OAAO,CACH,6BACI,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,QAAQ,gBACD,KAAK,EACjB,SAAS,EAAE,YAAY,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,KAC5D,KAAK;QAET,8BAAM,SAAS,EAAC,SAAS,IAAE,KAAK,CAAQ,CACtC,CACT,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,uDAAuD;AACvD,MAAM,MAAM,GAAG;;;;;;;;;;;;;CAad,CAAC;AAEF,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,CAAC;IAClC,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACnD,UAAU,CAAC,WAAW,GAAG,MAAM,CAAC;IAChC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,14 @@
1
+ interface StatusBarProps {
2
+ animated?: boolean;
3
+ backgroundColor?: string;
4
+ barStyle?: 'default' | 'light-content' | 'dark-content';
5
+ hidden?: boolean;
6
+ networkActivityIndicatorVisible?: boolean;
7
+ showHideTransition?: 'fade' | 'slide';
8
+ translucent?: boolean;
9
+ }
10
+ declare const StatusBar: {
11
+ (_props: StatusBarProps): null;
12
+ displayName: string;
13
+ };
14
+ export { StatusBar };
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ const StatusBar = (_props) => {
3
+ return null;
4
+ };
5
+ StatusBar.displayName = 'StatusBar';
6
+ export { StatusBar };
7
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/components/ui/status-bar/index.web.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAab,MAAM,SAAS,GAAG,CAAC,MAAsB,EAAQ,EAAE;IAC/C,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,71 @@
1
+ import React from 'react';
2
+ import type { VariantProps } from '@gluestack-ui/nativewind-utils';
3
+ declare const UISwitch: import("@gluestack-ui/switch/lib/types").ISwitchComponentType<Omit<any, "ref"> & {
4
+ context?: any;
5
+ } & React.RefAttributes<({ value, onValueChange, disabled, ...props }: any) => React.JSX.Element>>;
6
+ declare const switchStyle: import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
7
+ size: {
8
+ sm: string;
9
+ md: string;
10
+ lg: string;
11
+ };
12
+ } | ({
13
+ size: {
14
+ sm: string;
15
+ md: string;
16
+ lg: string;
17
+ };
18
+ } & {
19
+ size: {
20
+ sm: import("tailwind-merge").ClassNameValue | {
21
+ base?: import("tailwind-merge").ClassNameValue;
22
+ };
23
+ md: import("tailwind-merge").ClassNameValue | {
24
+ base?: import("tailwind-merge").ClassNameValue;
25
+ };
26
+ lg: import("tailwind-merge").ClassNameValue | {
27
+ base?: import("tailwind-merge").ClassNameValue;
28
+ };
29
+ };
30
+ }), undefined, "appearance-none relative inline-block w-10 h-6 rounded-full bg-gray-300 transition-colors duration-200 ease-in-out cursor-pointer focus:outline-none focus:ring-2 focus:ring-indicator-primary checked:bg-primary-500 disabled:cursor-not-allowed disabled:opacity-40 data-[invalid=true]:border-error-700 data-[invalid=true]:border-2", import("tailwind-variants/dist/config").TVConfig<{
31
+ size: {
32
+ sm: string;
33
+ md: string;
34
+ lg: string;
35
+ };
36
+ }, {
37
+ size: {
38
+ sm: string;
39
+ md: string;
40
+ lg: string;
41
+ };
42
+ }>, {
43
+ size: {
44
+ sm: string;
45
+ md: string;
46
+ lg: string;
47
+ };
48
+ }, undefined, import("@gluestack-ui/nativewind-utils/types").TVReturnType<{
49
+ size: {
50
+ sm: string;
51
+ md: string;
52
+ lg: string;
53
+ };
54
+ }, undefined, "appearance-none relative inline-block w-10 h-6 rounded-full bg-gray-300 transition-colors duration-200 ease-in-out cursor-pointer focus:outline-none focus:ring-2 focus:ring-indicator-primary checked:bg-primary-500 disabled:cursor-not-allowed disabled:opacity-40 data-[invalid=true]:border-error-700 data-[invalid=true]:border-2", import("tailwind-variants/dist/config").TVConfig<{
55
+ size: {
56
+ sm: string;
57
+ md: string;
58
+ lg: string;
59
+ };
60
+ }, {
61
+ size: {
62
+ sm: string;
63
+ md: string;
64
+ lg: string;
65
+ };
66
+ }>, unknown, unknown, undefined>>;
67
+ type ISwitchProps = React.ComponentProps<typeof UISwitch> & VariantProps<typeof switchStyle>;
68
+ declare const Switch: React.ForwardRefExoticComponent<Omit<ISwitchProps, "ref"> & React.RefAttributes<Omit<any, "ref"> & {
69
+ context?: any;
70
+ } & React.RefAttributes<({ value, onValueChange, disabled, ...props }: any) => React.JSX.Element>>>;
71
+ export { Switch };
@@ -0,0 +1,27 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import { createSwitch } from '@gluestack-ui/switch';
4
+ import { tva } from '@gluestack-ui/nativewind-utils/tva';
5
+ import { withStyleContext } from '@gluestack-ui/nativewind-utils/withStyleContext';
6
+ const WebSwitch = ({ value, onValueChange, disabled, ...props }) => {
7
+ return (React.createElement("input", { type: "checkbox", checked: value, onChange: (e) => onValueChange?.(e.target.checked), disabled: disabled, ...props }));
8
+ };
9
+ const UISwitch = createSwitch({
10
+ Root: withStyleContext(WebSwitch),
11
+ });
12
+ const switchStyle = tva({
13
+ base: 'appearance-none relative inline-block w-10 h-6 rounded-full bg-gray-300 transition-colors duration-200 ease-in-out cursor-pointer focus:outline-none focus:ring-2 focus:ring-indicator-primary checked:bg-primary-500 disabled:cursor-not-allowed disabled:opacity-40 data-[invalid=true]:border-error-700 data-[invalid=true]:border-2',
14
+ variants: {
15
+ size: {
16
+ sm: 'w-8 h-5',
17
+ md: 'w-10 h-6',
18
+ lg: 'w-12 h-7',
19
+ },
20
+ },
21
+ });
22
+ const Switch = React.forwardRef(({ className, size = 'md', ...props }, ref) => {
23
+ return React.createElement(UISwitch, { ref: ref, ...props, className: switchStyle({ size, class: className }) });
24
+ });
25
+ Switch.displayName = 'Switch';
26
+ export { Switch };
27
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/components/ui/switch/index.web.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AAGnF,MAAM,SAAS,GAAG,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAO,EAAE,EAAE;IACpE,OAAO,CACH,+BACI,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAClD,QAAQ,EAAE,QAAQ,KACd,KAAK,GACX,CACL,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,YAAY,CAAC;IAC1B,IAAI,EAAE,gBAAgB,CAAC,SAAS,CAAC;CACpC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,GAAG,CAAC;IACpB,IAAI,EAAE,yUAAyU;IAC/U,QAAQ,EAAE;QACN,IAAI,EAAE;YACF,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;SACjB;KACJ;CACJ,CAAC,CAAC;AAIH,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAC3B,CAAC,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC1C,OAAO,oBAAC,QAAQ,IAAC,GAAG,EAAE,GAAG,KAAM,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GAAI,CAAC;AACjG,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,CAAC"}