@mgcrea/react-native-tailwind 0.6.1 → 0.7.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 (40) hide show
  1. package/README.md +404 -0
  2. package/dist/babel/config-loader.ts +1 -23
  3. package/dist/babel/index.cjs +227 -60
  4. package/dist/babel/index.d.ts +27 -2
  5. package/dist/babel/index.test.ts +268 -0
  6. package/dist/babel/index.ts +352 -44
  7. package/dist/index.d.ts +3 -0
  8. package/dist/index.js +1 -1
  9. package/dist/parser/__snapshots__/colors.test.js.snap +242 -90
  10. package/dist/parser/__snapshots__/transforms.test.js.snap +58 -0
  11. package/dist/parser/colors.js +1 -1
  12. package/dist/runtime.cjs +2 -0
  13. package/dist/runtime.cjs.map +7 -0
  14. package/dist/runtime.d.ts +139 -0
  15. package/dist/runtime.js +2 -0
  16. package/dist/runtime.js.map +7 -0
  17. package/dist/runtime.test.js +1 -0
  18. package/dist/stubs/tw.d.ts +60 -0
  19. package/dist/stubs/tw.js +1 -0
  20. package/dist/utils/flattenColors.d.ts +16 -0
  21. package/dist/utils/flattenColors.js +1 -0
  22. package/dist/utils/flattenColors.test.js +1 -0
  23. package/dist/utils/modifiers.d.ts +29 -0
  24. package/dist/utils/modifiers.js +1 -0
  25. package/dist/utils/modifiers.test.js +1 -0
  26. package/dist/utils/styleKey.test.js +1 -0
  27. package/package.json +15 -3
  28. package/src/babel/config-loader.ts +1 -23
  29. package/src/babel/index.test.ts +268 -0
  30. package/src/babel/index.ts +352 -44
  31. package/src/index.ts +5 -0
  32. package/src/parser/colors.ts +8 -22
  33. package/src/runtime.test.ts +325 -0
  34. package/src/runtime.ts +280 -0
  35. package/src/stubs/tw.ts +80 -0
  36. package/src/utils/flattenColors.test.ts +361 -0
  37. package/src/utils/flattenColors.ts +32 -0
  38. package/src/utils/modifiers.test.ts +286 -0
  39. package/src/utils/modifiers.ts +63 -0
  40. package/src/utils/styleKey.test.ts +168 -0
@@ -2,98 +2,250 @@
2
2
 
3
3
  exports[`COLORS should export complete color palette 1`] = `
4
4
  {
5
+ "amber-100": "#fef3c6",
6
+ "amber-200": "#fee685",
7
+ "amber-300": "#ffd230",
8
+ "amber-400": "#ffb900",
9
+ "amber-50": "#fffbeb",
10
+ "amber-500": "#fe9a00",
11
+ "amber-600": "#e17100",
12
+ "amber-700": "#bb4d00",
13
+ "amber-800": "#973c00",
14
+ "amber-900": "#7b3306",
15
+ "amber-950": "#461901",
5
16
  "black": "#000000",
6
- "blue-100": "#DBEAFE",
7
- "blue-200": "#BFDBFE",
8
- "blue-300": "#93C5FD",
9
- "blue-400": "#60A5FA",
10
- "blue-50": "#EFF6FF",
11
- "blue-500": "#3B82F6",
12
- "blue-600": "#2563EB",
13
- "blue-700": "#1D4ED8",
14
- "blue-800": "#1E40AF",
15
- "blue-900": "#1E3A8A",
16
- "gray-100": "#F3F4F6",
17
- "gray-200": "#E5E7EB",
18
- "gray-300": "#D1D5DB",
19
- "gray-400": "#9CA3AF",
20
- "gray-50": "#F9FAFB",
21
- "gray-500": "#6B7280",
22
- "gray-600": "#4B5563",
23
- "gray-700": "#374151",
24
- "gray-800": "#1F2937",
25
- "gray-900": "#111827",
26
- "green-100": "#DCFCE7",
27
- "green-200": "#BBF7D0",
28
- "green-300": "#86EFAC",
29
- "green-400": "#4ADE80",
30
- "green-50": "#F0FDF4",
31
- "green-500": "#22C55E",
32
- "green-600": "#16A34A",
33
- "green-700": "#15803D",
34
- "green-800": "#166534",
35
- "green-900": "#14532D",
36
- "indigo-100": "#E0E7FF",
37
- "indigo-200": "#C7D2FE",
38
- "indigo-300": "#A5B4FC",
39
- "indigo-400": "#818CF8",
40
- "indigo-50": "#EEF2FF",
41
- "indigo-500": "#6366F1",
42
- "indigo-600": "#4F46E5",
43
- "indigo-700": "#4338CA",
44
- "indigo-800": "#3730A3",
45
- "indigo-900": "#312E81",
46
- "orange-100": "#FFEDD5",
47
- "orange-200": "#FED7AA",
48
- "orange-300": "#FDBA74",
49
- "orange-400": "#FB923C",
50
- "orange-50": "#FFF7ED",
51
- "orange-500": "#F97316",
52
- "orange-600": "#EA580C",
53
- "orange-700": "#C2410C",
54
- "orange-800": "#9A3412",
55
- "orange-900": "#7C2D12",
56
- "pink-100": "#FCE7F3",
57
- "pink-200": "#FBCFE8",
58
- "pink-300": "#F9A8D4",
59
- "pink-400": "#F472B6",
60
- "pink-50": "#FDF2F8",
61
- "pink-500": "#EC4899",
62
- "pink-600": "#DB2777",
63
- "pink-700": "#BE185D",
64
- "pink-800": "#9D174D",
65
- "pink-900": "#831843",
66
- "purple-100": "#F3E8FF",
67
- "purple-200": "#E9D5FF",
68
- "purple-300": "#D8B4FE",
69
- "purple-400": "#C084FC",
70
- "purple-50": "#FAF5FF",
71
- "purple-500": "#A855F7",
72
- "purple-600": "#9333EA",
73
- "purple-700": "#7E22CE",
74
- "purple-800": "#6B21A8",
75
- "purple-900": "#581C87",
76
- "red-100": "#FEE2E2",
77
- "red-200": "#FECACA",
78
- "red-300": "#FCA5A5",
79
- "red-400": "#F87171",
80
- "red-50": "#FEF2F2",
81
- "red-500": "#EF4444",
82
- "red-600": "#DC2626",
83
- "red-700": "#B91C1C",
84
- "red-800": "#991B1B",
85
- "red-900": "#7F1D1D",
17
+ "blue-100": "#dbeafe",
18
+ "blue-200": "#bedbff",
19
+ "blue-300": "#8ec5ff",
20
+ "blue-400": "#51a2ff",
21
+ "blue-50": "#eff6ff",
22
+ "blue-500": "#2b7fff",
23
+ "blue-600": "#155dfc",
24
+ "blue-700": "#1447e6",
25
+ "blue-800": "#193cb8",
26
+ "blue-900": "#1c398e",
27
+ "blue-950": "#162456",
28
+ "cyan-100": "#cefafe",
29
+ "cyan-200": "#a2f4fd",
30
+ "cyan-300": "#53eafd",
31
+ "cyan-400": "#00d3f2",
32
+ "cyan-50": "#ecfeff",
33
+ "cyan-500": "#00b8db",
34
+ "cyan-600": "#0092b8",
35
+ "cyan-700": "#007595",
36
+ "cyan-800": "#005f78",
37
+ "cyan-900": "#104e64",
38
+ "cyan-950": "#053345",
39
+ "emerald-100": "#d0fae5",
40
+ "emerald-200": "#a4f4cf",
41
+ "emerald-300": "#5ee9b5",
42
+ "emerald-400": "#00d492",
43
+ "emerald-50": "#ecfdf5",
44
+ "emerald-500": "#00bc7d",
45
+ "emerald-600": "#009966",
46
+ "emerald-700": "#007a55",
47
+ "emerald-800": "#006045",
48
+ "emerald-900": "#004f3b",
49
+ "emerald-950": "#002c22",
50
+ "fuchsia-100": "#fae8ff",
51
+ "fuchsia-200": "#f6cfff",
52
+ "fuchsia-300": "#f4a8ff",
53
+ "fuchsia-400": "#ed6aff",
54
+ "fuchsia-50": "#fdf4ff",
55
+ "fuchsia-500": "#e12afb",
56
+ "fuchsia-600": "#c800de",
57
+ "fuchsia-700": "#a800b7",
58
+ "fuchsia-800": "#8a0194",
59
+ "fuchsia-900": "#721378",
60
+ "fuchsia-950": "#4b004f",
61
+ "gray-100": "#f3f4f6",
62
+ "gray-200": "#e5e7eb",
63
+ "gray-300": "#d1d5dc",
64
+ "gray-400": "#99a1af",
65
+ "gray-50": "#f9fafb",
66
+ "gray-500": "#6a7282",
67
+ "gray-600": "#4a5565",
68
+ "gray-700": "#364153",
69
+ "gray-800": "#1e2939",
70
+ "gray-900": "#101828",
71
+ "gray-950": "#030712",
72
+ "green-100": "#dcfce7",
73
+ "green-200": "#b9f8cf",
74
+ "green-300": "#7bf1a8",
75
+ "green-400": "#05df72",
76
+ "green-50": "#f0fdf4",
77
+ "green-500": "#00c950",
78
+ "green-600": "#00a63e",
79
+ "green-700": "#008236",
80
+ "green-800": "#016630",
81
+ "green-900": "#0d542b",
82
+ "green-950": "#032e15",
83
+ "indigo-100": "#e0e7ff",
84
+ "indigo-200": "#c6d2ff",
85
+ "indigo-300": "#a3b3ff",
86
+ "indigo-400": "#7c86ff",
87
+ "indigo-50": "#eef2ff",
88
+ "indigo-500": "#615fff",
89
+ "indigo-600": "#4f39f6",
90
+ "indigo-700": "#432dd7",
91
+ "indigo-800": "#372aac",
92
+ "indigo-900": "#312c85",
93
+ "indigo-950": "#1e1a4d",
94
+ "lime-100": "#ecfcca",
95
+ "lime-200": "#d8f999",
96
+ "lime-300": "#bbf451",
97
+ "lime-400": "#9ae600",
98
+ "lime-50": "#f7fee7",
99
+ "lime-500": "#7ccf00",
100
+ "lime-600": "#5ea500",
101
+ "lime-700": "#497d00",
102
+ "lime-800": "#3c6300",
103
+ "lime-900": "#35530e",
104
+ "lime-950": "#192e03",
105
+ "neutral-100": "#f5f5f5",
106
+ "neutral-200": "#e5e5e5",
107
+ "neutral-300": "#d4d4d4",
108
+ "neutral-400": "#a1a1a1",
109
+ "neutral-50": "#fafafa",
110
+ "neutral-500": "#737373",
111
+ "neutral-600": "#525252",
112
+ "neutral-700": "#404040",
113
+ "neutral-800": "#262626",
114
+ "neutral-900": "#171717",
115
+ "neutral-950": "#0a0a0a",
116
+ "orange-100": "#ffedd4",
117
+ "orange-200": "#ffd6a7",
118
+ "orange-300": "#ffb86a",
119
+ "orange-400": "#ff8904",
120
+ "orange-50": "#fff7ed",
121
+ "orange-500": "#ff6900",
122
+ "orange-600": "#f54900",
123
+ "orange-700": "#ca3500",
124
+ "orange-800": "#9f2d00",
125
+ "orange-900": "#7e2a0c",
126
+ "orange-950": "#441306",
127
+ "pink-100": "#fce7f3",
128
+ "pink-200": "#fccee8",
129
+ "pink-300": "#fda5d5",
130
+ "pink-400": "#fb64b6",
131
+ "pink-50": "#fdf2f8",
132
+ "pink-500": "#f6339a",
133
+ "pink-600": "#e60076",
134
+ "pink-700": "#c6005c",
135
+ "pink-800": "#a3004c",
136
+ "pink-900": "#861043",
137
+ "pink-950": "#510424",
138
+ "purple-100": "#f3e8ff",
139
+ "purple-200": "#e9d4ff",
140
+ "purple-300": "#dab2ff",
141
+ "purple-400": "#c27aff",
142
+ "purple-50": "#faf5ff",
143
+ "purple-500": "#ad46ff",
144
+ "purple-600": "#9810fa",
145
+ "purple-700": "#8200db",
146
+ "purple-800": "#6e11b0",
147
+ "purple-900": "#59168b",
148
+ "purple-950": "#3c0366",
149
+ "red-100": "#ffe2e2",
150
+ "red-200": "#ffc9c9",
151
+ "red-300": "#ffa2a2",
152
+ "red-400": "#ff6467",
153
+ "red-50": "#fef2f2",
154
+ "red-500": "#fb2c36",
155
+ "red-600": "#e7000b",
156
+ "red-700": "#c10007",
157
+ "red-800": "#9f0712",
158
+ "red-900": "#82181a",
159
+ "red-950": "#460809",
160
+ "rose-100": "#ffe4e6",
161
+ "rose-200": "#ffccd3",
162
+ "rose-300": "#ffa1ad",
163
+ "rose-400": "#ff637e",
164
+ "rose-50": "#fff1f2",
165
+ "rose-500": "#ff2056",
166
+ "rose-600": "#ec003f",
167
+ "rose-700": "#c70036",
168
+ "rose-800": "#a50036",
169
+ "rose-900": "#8b0836",
170
+ "rose-950": "#4d0218",
171
+ "sky-100": "#dff2fe",
172
+ "sky-200": "#b8e6fe",
173
+ "sky-300": "#74d4ff",
174
+ "sky-400": "#00bcff",
175
+ "sky-50": "#f0f9ff",
176
+ "sky-500": "#00a6f4",
177
+ "sky-600": "#0084d1",
178
+ "sky-700": "#0069a8",
179
+ "sky-800": "#00598a",
180
+ "sky-900": "#024a70",
181
+ "sky-950": "#052f4a",
182
+ "slate-100": "#f1f5f9",
183
+ "slate-200": "#e2e8f0",
184
+ "slate-300": "#cad5e2",
185
+ "slate-400": "#90a1b9",
186
+ "slate-50": "#f8fafc",
187
+ "slate-500": "#62748e",
188
+ "slate-600": "#45556c",
189
+ "slate-700": "#314158",
190
+ "slate-800": "#1d293d",
191
+ "slate-900": "#0f172b",
192
+ "slate-950": "#020618",
193
+ "stone-100": "#f5f5f4",
194
+ "stone-200": "#e7e5e4",
195
+ "stone-300": "#d6d3d1",
196
+ "stone-400": "#a6a09b",
197
+ "stone-50": "#fafaf9",
198
+ "stone-500": "#79716b",
199
+ "stone-600": "#57534d",
200
+ "stone-700": "#44403b",
201
+ "stone-800": "#292524",
202
+ "stone-900": "#1c1917",
203
+ "stone-950": "#0c0a09",
204
+ "teal-100": "#cbfbf1",
205
+ "teal-200": "#96f7e4",
206
+ "teal-300": "#46ecd5",
207
+ "teal-400": "#00d5be",
208
+ "teal-50": "#f0fdfa",
209
+ "teal-500": "#00bba7",
210
+ "teal-600": "#009689",
211
+ "teal-700": "#00786f",
212
+ "teal-800": "#005f5a",
213
+ "teal-900": "#0b4f4a",
214
+ "teal-950": "#022f2e",
86
215
  "transparent": "transparent",
216
+ "violet-100": "#ede9fe",
217
+ "violet-200": "#ddd6ff",
218
+ "violet-300": "#c4b4ff",
219
+ "violet-400": "#a684ff",
220
+ "violet-50": "#f5f3ff",
221
+ "violet-500": "#8e51ff",
222
+ "violet-600": "#7f22fe",
223
+ "violet-700": "#7008e7",
224
+ "violet-800": "#5d0ec0",
225
+ "violet-900": "#4d179a",
226
+ "violet-950": "#2f0d68",
87
227
  "white": "#FFFFFF",
88
- "yellow-100": "#FEF9C3",
89
- "yellow-200": "#FEF08A",
90
- "yellow-300": "#FDE047",
91
- "yellow-400": "#FACC15",
92
- "yellow-50": "#FEFCE8",
93
- "yellow-500": "#EAB308",
94
- "yellow-600": "#CA8A04",
95
- "yellow-700": "#A16207",
96
- "yellow-800": "#854D0E",
97
- "yellow-900": "#713F12",
228
+ "yellow-100": "#fef9c2",
229
+ "yellow-200": "#fff085",
230
+ "yellow-300": "#ffdf20",
231
+ "yellow-400": "#fdc700",
232
+ "yellow-50": "#fefce8",
233
+ "yellow-500": "#f0b100",
234
+ "yellow-600": "#d08700",
235
+ "yellow-700": "#a65f00",
236
+ "yellow-800": "#894b00",
237
+ "yellow-900": "#733e0a",
238
+ "yellow-950": "#432004",
239
+ "zinc-100": "#f4f4f5",
240
+ "zinc-200": "#e4e4e7",
241
+ "zinc-300": "#d4d4d8",
242
+ "zinc-400": "#9f9fa9",
243
+ "zinc-50": "#fafafa",
244
+ "zinc-500": "#71717b",
245
+ "zinc-600": "#52525c",
246
+ "zinc-700": "#3f3f46",
247
+ "zinc-800": "#27272a",
248
+ "zinc-900": "#18181b",
249
+ "zinc-950": "#09090b",
98
250
  }
99
251
  `;
@@ -0,0 +1,58 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`SCALE_MAP should export complete scale map 1`] = `
4
+ {
5
+ "0": 0,
6
+ "100": 1,
7
+ "105": 1.05,
8
+ "110": 1.1,
9
+ "125": 1.25,
10
+ "150": 1.5,
11
+ "200": 2,
12
+ "50": 0.5,
13
+ "75": 0.75,
14
+ "90": 0.9,
15
+ "95": 0.95,
16
+ }
17
+ `;
18
+
19
+ exports[`ROTATE_MAP should export complete rotate map 1`] = `
20
+ {
21
+ "0": 0,
22
+ "1": 1,
23
+ "12": 12,
24
+ "180": 180,
25
+ "2": 2,
26
+ "3": 3,
27
+ "45": 45,
28
+ "6": 6,
29
+ "90": 90,
30
+ }
31
+ `;
32
+
33
+ exports[`SKEW_MAP should export complete skew map 1`] = `
34
+ {
35
+ "0": 0,
36
+ "1": 1,
37
+ "12": 12,
38
+ "2": 2,
39
+ "3": 3,
40
+ "6": 6,
41
+ }
42
+ `;
43
+
44
+ exports[`PERSPECTIVE_SCALE should export complete perspective scale 1`] = `
45
+ {
46
+ "0": 0,
47
+ "100": 100,
48
+ "1000": 1000,
49
+ "200": 200,
50
+ "300": 300,
51
+ "400": 400,
52
+ "500": 500,
53
+ "600": 600,
54
+ "700": 700,
55
+ "800": 800,
56
+ "900": 900,
57
+ }
58
+ `;
@@ -1 +1 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.COLORS=void 0;exports.parseColor=parseColor;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _palettes=require("../config/palettes");function flattenColors(){var flat={};for(var _ref of Object.entries(_palettes.TAILWIND_PALETTES)){var _ref2=(0,_slicedToArray2.default)(_ref,2);var colorName=_ref2[0];var shades=_ref2[1];for(var _ref3 of Object.entries(shades)){var _ref4=(0,_slicedToArray2.default)(_ref3,2);var shade=_ref4[0];var hex=_ref4[1];flat[`${colorName}-${shade}`]=hex;}}flat.white="#FFFFFF";flat.black="#000000";flat.transparent="transparent";return flat;}var COLORS=exports.COLORS=flattenColors();function applyOpacity(hex,opacity){if(hex==="transparent"){return"transparent";}var cleanHex=hex.replace(/^#/,"");var fullHex=cleanHex.length===3?cleanHex.split("").map(function(char){return char+char;}).join(""):cleanHex;var alpha=Math.round(opacity/100*255);var alphaHex=alpha.toString(16).padStart(2,"0").toUpperCase();return`#${fullHex.toUpperCase()}${alphaHex}`;}function parseArbitraryColor(value){var hexMatch=value.match(/^\[#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\]$/);if(hexMatch){var hex=hexMatch[1];if(hex.length===3){var expanded=hex.split("").map(function(char){return char+char;}).join("");return`#${expanded}`;}return`#${hex}`;}if(value.startsWith("[")&&value.endsWith("]")){if(process.env.NODE_ENV!=="production"){console.warn(`[react-native-tailwind] Unsupported arbitrary color value: ${value}. Only hex colors are supported (e.g., [#ff0000], [#f00], or [#ff0000aa]).`);}return null;}return null;}function parseColor(cls,customColors){var getColor=function getColor(key){var _customColors$key;return(_customColors$key=customColors==null?void 0:customColors[key])!=null?_customColors$key:COLORS[key];};var parseColorWithOpacity=function parseColorWithOpacity(colorKey){var _getColor;var opacityMatch=colorKey.match(/^(.+)\/(\d+)$/);if(opacityMatch){var baseColorKey=opacityMatch[1];var opacity=Number.parseInt(opacityMatch[2],10);if(opacity<0||opacity>100){if(process.env.NODE_ENV!=="production"){console.warn(`[react-native-tailwind] Invalid opacity value: ${opacity}. Opacity must be between 0 and 100.`);}return null;}var _arbitraryColor=parseArbitraryColor(baseColorKey);if(_arbitraryColor!==null){return applyOpacity(_arbitraryColor,opacity);}var color=getColor(baseColorKey);if(color){return applyOpacity(color,opacity);}return null;}var arbitraryColor=parseArbitraryColor(colorKey);if(arbitraryColor!==null){return arbitraryColor;}return(_getColor=getColor(colorKey))!=null?_getColor:null;};if(cls.startsWith("bg-")){var colorKey=cls.substring(3);if(colorKey.startsWith("[")&&!colorKey.startsWith("[#")){return null;}var color=parseColorWithOpacity(colorKey);if(color){return{backgroundColor:color};}}if(cls.startsWith("text-")){var _colorKey=cls.substring(5);if(_colorKey.startsWith("[")&&!_colorKey.startsWith("[#")){return null;}var _color=parseColorWithOpacity(_colorKey);if(_color){return{color:_color};}}if(cls.startsWith("border-")&&!cls.match(/^border-[0-9]/)){var _colorKey2=cls.substring(7);if(_colorKey2.startsWith("[")&&!_colorKey2.startsWith("[#")){return null;}var _color2=parseColorWithOpacity(_colorKey2);if(_color2){return{borderColor:_color2};}}return null;}
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.COLORS=void 0;exports.parseColor=parseColor;var _palettes=require("../config/palettes");var _flattenColors=require("../utils/flattenColors");var COLORS=exports.COLORS=Object.assign({},(0,_flattenColors.flattenColors)(_palettes.TAILWIND_PALETTES),{white:"#FFFFFF",black:"#000000",transparent:"transparent"});function applyOpacity(hex,opacity){if(hex==="transparent"){return"transparent";}var cleanHex=hex.replace(/^#/,"");var fullHex=cleanHex.length===3?cleanHex.split("").map(function(char){return char+char;}).join(""):cleanHex;var alpha=Math.round(opacity/100*255);var alphaHex=alpha.toString(16).padStart(2,"0").toUpperCase();return`#${fullHex.toUpperCase()}${alphaHex}`;}function parseArbitraryColor(value){var hexMatch=value.match(/^\[#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\]$/);if(hexMatch){var hex=hexMatch[1];if(hex.length===3){var expanded=hex.split("").map(function(char){return char+char;}).join("");return`#${expanded}`;}return`#${hex}`;}if(value.startsWith("[")&&value.endsWith("]")){if(process.env.NODE_ENV!=="production"){console.warn(`[react-native-tailwind] Unsupported arbitrary color value: ${value}. Only hex colors are supported (e.g., [#ff0000], [#f00], or [#ff0000aa]).`);}return null;}return null;}function parseColor(cls,customColors){var getColor=function getColor(key){var _customColors$key;return(_customColors$key=customColors==null?void 0:customColors[key])!=null?_customColors$key:COLORS[key];};var parseColorWithOpacity=function parseColorWithOpacity(colorKey){var _getColor;var opacityMatch=colorKey.match(/^(.+)\/(\d+)$/);if(opacityMatch){var baseColorKey=opacityMatch[1];var opacity=Number.parseInt(opacityMatch[2],10);if(opacity<0||opacity>100){if(process.env.NODE_ENV!=="production"){console.warn(`[react-native-tailwind] Invalid opacity value: ${opacity}. Opacity must be between 0 and 100.`);}return null;}var _arbitraryColor=parseArbitraryColor(baseColorKey);if(_arbitraryColor!==null){return applyOpacity(_arbitraryColor,opacity);}var color=getColor(baseColorKey);if(color){return applyOpacity(color,opacity);}return null;}var arbitraryColor=parseArbitraryColor(colorKey);if(arbitraryColor!==null){return arbitraryColor;}return(_getColor=getColor(colorKey))!=null?_getColor:null;};if(cls.startsWith("bg-")){var colorKey=cls.substring(3);if(colorKey.startsWith("[")&&!colorKey.startsWith("[#")){return null;}var color=parseColorWithOpacity(colorKey);if(color){return{backgroundColor:color};}}if(cls.startsWith("text-")){var _colorKey=cls.substring(5);if(_colorKey.startsWith("[")&&!_colorKey.startsWith("[#")){return null;}var _color=parseColorWithOpacity(_colorKey);if(_color){return{color:_color};}}if(cls.startsWith("border-")&&!cls.match(/^border-[0-9]/)){var _colorKey2=cls.substring(7);if(_colorKey2.startsWith("[")&&!_colorKey2.startsWith("[#")){return null;}var _color2=parseColorWithOpacity(_colorKey2);if(_color2){return{borderColor:_color2};}}return null;}
@@ -0,0 +1,2 @@
1
+ "use strict";var E=Object.defineProperty,ut=Object.defineProperties,dt=Object.getOwnPropertyDescriptor,pt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertyNames,F=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable;var H=(t,e,r)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,U=(t,e)=>{for(var r in e||(e={}))B.call(e,r)&&H(t,r,e[r]);if(F)for(var r of F(e))bt.call(e,r)&&H(t,r,e[r]);return t},X=(t,e)=>ut(t,pt(e));var yt=(t,e)=>{for(var r in e)E(t,r,{get:e[r],enumerable:!0})},ht=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of gt(e))!B.call(t,n)&&n!==r&&E(t,n,{get:()=>e[n],enumerable:!(i=dt(e,n))||i.enumerable});return t};var mt=t=>ht(E({},"__esModule",{value:!0}),t);var ie={};yt(ie,{clearCache:()=>te,getCacheStats:()=>ee,getCustomColors:()=>Qt,setConfig:()=>Jt,tw:()=>re,twStyle:()=>ne});module.exports=mt(ie);var G={"aspect-auto":void 0,"aspect-square":1,"aspect-video":1.7777777777777777};function xt(t){let e=t.match(/^\[(\d+)\/(\d+)\]$/);if(e){let r=Number.parseInt(e[1],10),i=Number.parseInt(e[2],10);return i===0?(process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid aspect ratio: ${t}. Denominator cannot be zero.`),null):r/i}return null}function N(t){if(!t.startsWith("aspect-"))return null;if(t in G){let i=G[t];return i===void 0?{}:{aspectRatio:i}}let e=t.substring(7),r=xt(e);return r!==null?{aspectRatio:r}:null}var Y={"":1,0:0,2:2,4:4,8:8},C={none:0,sm:2,"":4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999},Z={t:"borderTopWidth",r:"borderRightWidth",b:"borderBottomWidth",l:"borderLeftWidth"},q={tl:"borderTopLeftRadius",tr:"borderTopRightRadius",bl:"borderBottomLeftRadius",br:"borderBottomRightRadius"},St={t:["borderTopLeftRadius","borderTopRightRadius"],r:["borderTopRightRadius","borderBottomRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"]};function J(t){let e=t.match(/^\[(\d+)(?:px)?\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary border width value: ${t}. Only px values are supported (e.g., [8px] or [8]).`),null)}function M(t){let e=t.match(/^\[(\d+)(?:px)?\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary border radius value: ${t}. Only px values are supported (e.g., [12px] or [12]).`),null)}function _(t){return t==="border-solid"?{borderStyle:"solid"}:t==="border-dotted"?{borderStyle:"dotted"}:t==="border-dashed"?{borderStyle:"dashed"}:t.startsWith("border-")?wt(t):t==="border"?{borderWidth:1}:t.startsWith("rounded")?Ot(t):null}function wt(t){let e=t.match(/^border-([trbl])(?:-(.+))?$/);if(e){let n=e[1],s=e[2]||"";if(s.startsWith("[")){let a=J(s);return a!==null?{[Z[n]]:a}:null}let o=Y[s];return o!==void 0?{[Z[n]]:o}:null}let r=t.match(/^border-(\d+)$/);if(r){let n=Y[r[1]];if(n!==void 0)return{borderWidth:n}}let i=t.match(/^border-(\[.+\])$/);if(i){let n=J(i[1]);if(n!==null)return{borderWidth:n}}return null}function Ot(t){let e=t.substring(7);if(e==="")return{borderRadius:C[""]};if(!e.startsWith("-"))return null;let r=e.substring(1);if(r==="")return null;let i=r.match(/^(tl|tr|bl|br)(?:-(.+))?$/);if(i){let o=i[1],a=i[2]||"";if(a.startsWith("[")){let d=M(a);return d!==null?{[q[o]]:d}:null}let f=C[a];return f!==void 0?{[q[o]]:f}:null}let n=r.match(/^([trbl])(?:-(.+))?$/);if(n){let o=n[1],a=n[2]||"",f;if(a.startsWith("[")){let d=M(a);if(d!==null)f=d;else return null}else f=C[a];if(f!==void 0){let d={};return St[o].forEach(p=>d[p]=f),d}return null}if(r.startsWith("[")){let o=M(r);return o!==null?{borderRadius:o}:null}let s=C[r];return s!==void 0?{borderRadius:s}:null}var Q={red:{50:"#fef2f2",100:"#ffe2e2",200:"#ffc9c9",300:"#ffa2a2",400:"#ff6467",500:"#fb2c36",600:"#e7000b",700:"#c10007",800:"#9f0712",900:"#82181a",950:"#460809"},orange:{50:"#fff7ed",100:"#ffedd4",200:"#ffd6a7",300:"#ffb86a",400:"#ff8904",500:"#ff6900",600:"#f54900",700:"#ca3500",800:"#9f2d00",900:"#7e2a0c",950:"#441306"},amber:{50:"#fffbeb",100:"#fef3c6",200:"#fee685",300:"#ffd230",400:"#ffb900",500:"#fe9a00",600:"#e17100",700:"#bb4d00",800:"#973c00",900:"#7b3306",950:"#461901"},yellow:{50:"#fefce8",100:"#fef9c2",200:"#fff085",300:"#ffdf20",400:"#fdc700",500:"#f0b100",600:"#d08700",700:"#a65f00",800:"#894b00",900:"#733e0a",950:"#432004"},lime:{50:"#f7fee7",100:"#ecfcca",200:"#d8f999",300:"#bbf451",400:"#9ae600",500:"#7ccf00",600:"#5ea500",700:"#497d00",800:"#3c6300",900:"#35530e",950:"#192e03"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#b9f8cf",300:"#7bf1a8",400:"#05df72",500:"#00c950",600:"#00a63e",700:"#008236",800:"#016630",900:"#0d542b",950:"#032e15"},emerald:{50:"#ecfdf5",100:"#d0fae5",200:"#a4f4cf",300:"#5ee9b5",400:"#00d492",500:"#00bc7d",600:"#009966",700:"#007a55",800:"#006045",900:"#004f3b",950:"#002c22"},teal:{50:"#f0fdfa",100:"#cbfbf1",200:"#96f7e4",300:"#46ecd5",400:"#00d5be",500:"#00bba7",600:"#009689",700:"#00786f",800:"#005f5a",900:"#0b4f4a",950:"#022f2e"},cyan:{50:"#ecfeff",100:"#cefafe",200:"#a2f4fd",300:"#53eafd",400:"#00d3f2",500:"#00b8db",600:"#0092b8",700:"#007595",800:"#005f78",900:"#104e64",950:"#053345"},sky:{50:"#f0f9ff",100:"#dff2fe",200:"#b8e6fe",300:"#74d4ff",400:"#00bcff",500:"#00a6f4",600:"#0084d1",700:"#0069a8",800:"#00598a",900:"#024a70",950:"#052f4a"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bedbff",300:"#8ec5ff",400:"#51a2ff",500:"#2b7fff",600:"#155dfc",700:"#1447e6",800:"#193cb8",900:"#1c398e",950:"#162456"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c6d2ff",300:"#a3b3ff",400:"#7c86ff",500:"#615fff",600:"#4f39f6",700:"#432dd7",800:"#372aac",900:"#312c85",950:"#1e1a4d"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6ff",300:"#c4b4ff",400:"#a684ff",500:"#8e51ff",600:"#7f22fe",700:"#7008e7",800:"#5d0ec0",900:"#4d179a",950:"#2f0d68"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d4ff",300:"#dab2ff",400:"#c27aff",500:"#ad46ff",600:"#9810fa",700:"#8200db",800:"#6e11b0",900:"#59168b",950:"#3c0366"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f6cfff",300:"#f4a8ff",400:"#ed6aff",500:"#e12afb",600:"#c800de",700:"#a800b7",800:"#8a0194",900:"#721378",950:"#4b004f"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fccee8",300:"#fda5d5",400:"#fb64b6",500:"#f6339a",600:"#e60076",700:"#c6005c",800:"#a3004c",900:"#861043",950:"#510424"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#ffccd3",300:"#ffa1ad",400:"#ff637e",500:"#ff2056",600:"#ec003f",700:"#c70036",800:"#a50036",900:"#8b0836",950:"#4d0218"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cad5e2",400:"#90a1b9",500:"#62748e",600:"#45556c",700:"#314158",800:"#1d293d",900:"#0f172b",950:"#020618"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5dc",400:"#99a1af",500:"#6a7282",600:"#4a5565",700:"#364153",800:"#1e2939",900:"#101828",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#9f9fa9",500:"#71717b",600:"#52525c",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a1a1a1",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a6a09b",500:"#79716b",600:"#57534d",700:"#44403b",800:"#292524",900:"#1c1917",950:"#0c0a09"}};function T(t,e=""){let r={};for(let[i,n]of Object.entries(t)){let s=e?`${e}-${i}`:i;typeof n=="string"?r[s]=n:typeof n=="object"&&n!==null&&Object.assign(r,T(n,s))}return r}var Rt=X(U({},T(Q)),{white:"#FFFFFF",black:"#000000",transparent:"transparent"});function tt(t,e){if(t==="transparent")return"transparent";let r=t.replace(/^#/,""),i=r.length===3?r.split("").map(o=>o+o).join(""):r,s=Math.round(e/100*255).toString(16).padStart(2,"0").toUpperCase();return`#${i.toUpperCase()}${s}`}function et(t){let e=t.match(/^\[#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\]$/);if(e){let r=e[1];return r.length===3?`#${r.split("").map(n=>n+n).join("")}`:`#${r}`}return t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary color value: ${t}. Only hex colors are supported (e.g., [#ff0000], [#f00], or [#ff0000aa]).`),null}function v(t,e){let r=n=>{var s;return(s=e==null?void 0:e[n])!=null?s:Rt[n]},i=n=>{var a;let s=n.match(/^(.+)\/(\d+)$/);if(s){let f=s[1],d=Number.parseInt(s[2],10);if(d<0||d>100)return process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid opacity value: ${d}. Opacity must be between 0 and 100.`),null;let p=et(f);if(p!==null)return tt(p,d);let g=r(f);return g?tt(g,d):null}let o=et(n);return o!==null?o:(a=r(n))!=null?a:null};if(t.startsWith("bg-")){let n=t.substring(3);if(n.startsWith("[")&&!n.startsWith("[#"))return null;let s=i(n);if(s)return{backgroundColor:s}}if(t.startsWith("text-")){let n=t.substring(5);if(n.startsWith("[")&&!n.startsWith("[#"))return null;let s=i(n);if(s)return{color:s}}if(t.startsWith("border-")&&!t.match(/^border-[0-9]/)){let n=t.substring(7);if(n.startsWith("[")&&!n.startsWith("[#"))return null;let s=i(n);if(s)return{borderColor:s}}return null}function y(t){let e=t.match(/^\[(-?\d+)(?:px)?\]$/);if(e)return parseInt(e[1],10);let r=t.match(/^\[(-?\d+(?:\.\d+)?)%\]$/);return r?`${r[1]}%`:(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary inset unit: ${t}. Only px and % are supported.`),null)}function Wt(t){let e=t.match(/^\[(-?\d+)\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary z-index: ${t}. Only integers are supported.`),null)}var Tt={flex:{display:"flex"},hidden:{display:"none"}},Et={"flex-row":{flexDirection:"row"},"flex-row-reverse":{flexDirection:"row-reverse"},"flex-col":{flexDirection:"column"},"flex-col-reverse":{flexDirection:"column-reverse"}},Ct={"flex-wrap":{flexWrap:"wrap"},"flex-wrap-reverse":{flexWrap:"wrap-reverse"},"flex-nowrap":{flexWrap:"nowrap"}},At={"flex-1":{flex:1},"flex-auto":{flex:1},"flex-none":{flex:0}},Nt={grow:{flexGrow:1},"grow-0":{flexGrow:0},shrink:{flexShrink:1},"shrink-0":{flexShrink:0}},Mt={"justify-start":{justifyContent:"flex-start"},"justify-end":{justifyContent:"flex-end"},"justify-center":{justifyContent:"center"},"justify-between":{justifyContent:"space-between"},"justify-around":{justifyContent:"space-around"},"justify-evenly":{justifyContent:"space-evenly"}},_t={"items-start":{alignItems:"flex-start"},"items-end":{alignItems:"flex-end"},"items-center":{alignItems:"center"},"items-baseline":{alignItems:"baseline"},"items-stretch":{alignItems:"stretch"}},vt={"self-auto":{alignSelf:"auto"},"self-start":{alignSelf:"flex-start"},"self-end":{alignSelf:"flex-end"},"self-center":{alignSelf:"center"},"self-stretch":{alignSelf:"stretch"},"self-baseline":{alignSelf:"baseline"}},It={"content-start":{alignContent:"flex-start"},"content-end":{alignContent:"flex-end"},"content-center":{alignContent:"center"},"content-between":{alignContent:"space-between"},"content-around":{alignContent:"space-around"},"content-stretch":{alignContent:"stretch"}},jt={absolute:{position:"absolute"},relative:{position:"relative"}},$t={"overflow-hidden":{overflow:"hidden"},"overflow-visible":{overflow:"visible"},"overflow-scroll":{overflow:"scroll"}},Pt={"opacity-0":{opacity:0},"opacity-5":{opacity:.05},"opacity-10":{opacity:.1},"opacity-15":{opacity:.15},"opacity-20":{opacity:.2},"opacity-25":{opacity:.25},"opacity-30":{opacity:.3},"opacity-35":{opacity:.35},"opacity-40":{opacity:.4},"opacity-45":{opacity:.45},"opacity-50":{opacity:.5},"opacity-55":{opacity:.55},"opacity-60":{opacity:.6},"opacity-65":{opacity:.65},"opacity-70":{opacity:.7},"opacity-75":{opacity:.75},"opacity-80":{opacity:.8},"opacity-85":{opacity:.85},"opacity-90":{opacity:.9},"opacity-95":{opacity:.95},"opacity-100":{opacity:1}},Vt={0:0,10:10,20:20,30:30,40:40,50:50,auto:0},h={0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,8:32,10:40,12:48,16:64,20:80,24:96};function I(t){var e,r,i,n,s,o,a,f,d,p,g,K;if(t.startsWith("z-")){let u=t.substring(2),c=Wt(u);if(c!==null)return{zIndex:c};let l=Vt[u];if(l!==void 0)return{zIndex:l}}if(t.startsWith("top-")){let u=t.substring(4);if(u==="auto")return{};let c=y(u);if(c!==null)return{top:c};let l=h[u];if(l!==void 0)return{top:l}}if(t.startsWith("right-")){let u=t.substring(6);if(u==="auto")return{};let c=y(u);if(c!==null)return{right:c};let l=h[u];if(l!==void 0)return{right:l}}if(t.startsWith("bottom-")){let u=t.substring(7);if(u==="auto")return{};let c=y(u);if(c!==null)return{bottom:c};let l=h[u];if(l!==void 0)return{bottom:l}}if(t.startsWith("left-")){let u=t.substring(5);if(u==="auto")return{};let c=y(u);if(c!==null)return{left:c};let l=h[u];if(l!==void 0)return{left:l}}if(t.startsWith("inset-x-")){let u=t.substring(8),c=y(u);if(c!==null)return{left:c,right:c};let l=h[u];if(l!==void 0)return{left:l,right:l}}if(t.startsWith("inset-y-")){let u=t.substring(8),c=y(u);if(c!==null)return{top:c,bottom:c};let l=h[u];if(l!==void 0)return{top:l,bottom:l}}if(t.startsWith("inset-")){let u=t.substring(6),c=y(u);if(c!==null)return{top:c,right:c,bottom:c,left:c};let l=h[u];if(l!==void 0)return{top:l,right:l,bottom:l,left:l}}return(K=(g=(p=(d=(f=(a=(o=(s=(n=(i=(r=(e=Tt[t])!=null?e:Et[t])!=null?r:Ct[t])!=null?i:At[t])!=null?n:Nt[t])!=null?s:Mt[t])!=null?o:_t[t])!=null?a:vt[t])!=null?f:It[t])!=null?d:jt[t])!=null?p:$t[t])!=null?g:Pt[t])!=null?K:null}var rt={"shadow-sm":{shadowColor:"#000000",shadowOffset:{width:0,height:1},shadowOpacity:.05,shadowRadius:1,elevation:1},shadow:{shadowColor:"#000000",shadowOffset:{width:0,height:1},shadowOpacity:.1,shadowRadius:2,elevation:2},"shadow-md":{shadowColor:"#000000",shadowOffset:{width:0,height:3},shadowOpacity:.15,shadowRadius:4,elevation:4},"shadow-lg":{shadowColor:"#000000",shadowOffset:{width:0,height:6},shadowOpacity:.2,shadowRadius:8,elevation:8},"shadow-xl":{shadowColor:"#000000",shadowOffset:{width:0,height:10},shadowOpacity:.25,shadowRadius:12,elevation:12},"shadow-2xl":{shadowColor:"#000000",shadowOffset:{width:0,height:20},shadowOpacity:.3,shadowRadius:24,elevation:16},"shadow-none":{shadowColor:"transparent",shadowOffset:{width:0,height:0},shadowOpacity:0,shadowRadius:0,elevation:0}};function j(t){return t in rt?rt[t]:null}var x={0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384},S={full:"100%","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%"};function w(t){let e=t.match(/^\[(\d+)(?:px)?\]$/);if(e)return parseInt(e[1],10);let r=t.match(/^\[(\d+(?:\.\d+)?)%\]$/);return r?`${r[1]}%`:(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary size unit: ${t}. Only px and % are supported.`),null)}function $(t){if(t.startsWith("w-")){let e=t.substring(2),r=w(e);if(r!==null)return{width:r};let i=S[e];if(i)return{width:i};let n=x[e];if(n!==void 0)return{width:n};if(e==="auto")return{width:"auto"}}if(t.startsWith("h-")){let e=t.substring(2),r=w(e);if(r!==null)return{height:r};let i=S[e];if(i)return{height:i};let n=x[e];if(n!==void 0)return{height:n};if(e==="auto")return{height:"auto"}}if(t.startsWith("min-w-")){let e=t.substring(6),r=w(e);if(r!==null)return{minWidth:r};let i=S[e];if(i)return{minWidth:i};let n=x[e];if(n!==void 0)return{minWidth:n}}if(t.startsWith("min-h-")){let e=t.substring(6),r=w(e);if(r!==null)return{minHeight:r};let i=S[e];if(i)return{minHeight:i};let n=x[e];if(n!==void 0)return{minHeight:n}}if(t.startsWith("max-w-")){let e=t.substring(6),r=w(e);if(r!==null)return{maxWidth:r};let i=S[e];if(i)return{maxWidth:i};let n=x[e];if(n!==void 0)return{maxWidth:n}}if(t.startsWith("max-h-")){let e=t.substring(6),r=w(e);if(r!==null)return{maxHeight:r};let i=S[e];if(i)return{maxHeight:i};let n=x[e];if(n!==void 0)return{maxHeight:n}}return null}var O={0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384};function P(t){let e=t.match(/^\[(\d+)(?:px)?\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary spacing value: ${t}. Only px values are supported (e.g., [16px] or [16]).`),null)}function V(t){let e=t.match(/^m([xytrbls]?)-(.+)$/);if(e){let[,n,s]=e,o=P(s);if(o!==null)return nt(n,o);let a=O[s];if(a!==void 0)return nt(n,a)}let r=t.match(/^p([xytrbls]?)-(.+)$/);if(r){let[,n,s]=r,o=P(s);if(o!==null)return it(n,o);let a=O[s];if(a!==void 0)return it(n,a)}let i=t.match(/^gap-(.+)$/);if(i){let n=i[1],s=P(n);if(s!==null)return{gap:s};let o=O[n];if(o!==void 0)return{gap:o}}return null}function nt(t,e){switch(t){case"":return{margin:e};case"x":return{marginHorizontal:e};case"y":return{marginVertical:e};case"t":return{marginTop:e};case"r":return{marginRight:e};case"b":return{marginBottom:e};case"l":return{marginLeft:e};default:return{}}}function it(t,e){switch(t){case"":return{padding:e};case"x":return{paddingHorizontal:e};case"y":return{paddingVertical:e};case"t":return{paddingTop:e};case"r":return{paddingRight:e};case"b":return{paddingBottom:e};case"l":return{paddingLeft:e};default:return{}}}var D={0:0,50:.5,75:.75,90:.9,95:.95,100:1,105:1.05,110:1.1,125:1.25,150:1.5,200:2},A={0:0,1:1,2:2,3:3,6:6,12:12,45:45,90:90,180:180},st={0:0,1:1,2:2,3:3,6:6,12:12},Dt={0:0,100:100,200:200,300:300,400:400,500:500,600:600,700:700,800:800,900:900,1e3:1e3};function L(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?)\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary scale value: ${t}. Only numbers are supported (e.g., [1.5], [0.75]).`),null)}function R(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?)deg\]$/);return e?`${e[1]}deg`:(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary rotation value: ${t}. Only deg unit is supported (e.g., [45deg], [-15deg]).`),null)}function ot(t){let e=t.match(/^\[(-?\d+)(?:px)?\]$/);if(e)return parseInt(e[1],10);let r=t.match(/^\[(-?\d+(?:\.\d+)?)%\]$/);return r?`${r[1]}%`:(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary translation unit: ${t}. Only px and % are supported.`),null)}function Lt(t){let e=t.match(/^\[(-?\d+)\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary perspective value: ${t}. Only integers are supported (e.g., [1500]).`),null)}function z(t){if(t.startsWith("origin-"))return process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] transform-origin is not supported in React Native. Class "${t}" will be ignored.`),null;if(t.startsWith("scale-")){let e=t.substring(6),r=L(e);if(r!==null)return{transform:[{scale:r}]};let i=D[e];if(i!==void 0)return{transform:[{scale:i}]}}if(t.startsWith("scale-x-")){let e=t.substring(8),r=L(e);if(r!==null)return{transform:[{scaleX:r}]};let i=D[e];if(i!==void 0)return{transform:[{scaleX:i}]}}if(t.startsWith("scale-y-")){let e=t.substring(8),r=L(e);if(r!==null)return{transform:[{scaleY:r}]};let i=D[e];if(i!==void 0)return{transform:[{scaleY:i}]}}if(t.startsWith("rotate-")||t.startsWith("-rotate-")){let e=t.startsWith("-"),r=e?t.substring(8):t.substring(7),i=R(r);if(i!==null)return{transform:[{rotate:e?`-${i}`:i}]};let n=A[r];if(n!==void 0)return{transform:[{rotate:`${e?-n:n}deg`}]}}if(t.startsWith("rotate-x-")||t.startsWith("-rotate-x-")){let e=t.startsWith("-"),r=e?t.substring(10):t.substring(9),i=R(r);if(i!==null)return{transform:[{rotateX:e?`-${i}`:i}]};let n=A[r];if(n!==void 0)return{transform:[{rotateX:`${e?-n:n}deg`}]}}if(t.startsWith("rotate-y-")||t.startsWith("-rotate-y-")){let e=t.startsWith("-"),r=e?t.substring(10):t.substring(9),i=R(r);if(i!==null)return{transform:[{rotateY:e?`-${i}`:i}]};let n=A[r];if(n!==void 0)return{transform:[{rotateY:`${e?-n:n}deg`}]}}if(t.startsWith("rotate-z-")||t.startsWith("-rotate-z-")){let e=t.startsWith("-"),r=e?t.substring(10):t.substring(9),i=R(r);if(i!==null)return{transform:[{rotateZ:e?`-${i}`:i}]};let n=A[r];if(n!==void 0)return{transform:[{rotateZ:`${e?-n:n}deg`}]}}if(t.startsWith("translate-x-")||t.startsWith("-translate-x-")){let e=t.startsWith("-"),r=e?t.substring(13):t.substring(12),i=ot(r);if(i!==null)return{transform:[{translateX:typeof i=="number"?e?-i:i:e?`-${i}`:i}]};let n=O[r];if(n!==void 0)return{transform:[{translateX:e?-n:n}]}}if(t.startsWith("translate-y-")||t.startsWith("-translate-y-")){let e=t.startsWith("-"),r=e?t.substring(13):t.substring(12),i=ot(r);if(i!==null)return{transform:[{translateY:typeof i=="number"?e?-i:i:e?`-${i}`:i}]};let n=O[r];if(n!==void 0)return{transform:[{translateY:e?-n:n}]}}if(t.startsWith("skew-x-")||t.startsWith("-skew-x-")){let e=t.startsWith("-"),r=e?t.substring(8):t.substring(7),i=R(r);if(i!==null)return{transform:[{skewX:e?`-${i}`:i}]};let n=st[r];if(n!==void 0)return{transform:[{skewX:`${e?-n:n}deg`}]}}if(t.startsWith("skew-y-")||t.startsWith("-skew-y-")){let e=t.startsWith("-"),r=e?t.substring(8):t.substring(7),i=R(r);if(i!==null)return{transform:[{skewY:e?`-${i}`:i}]};let n=st[r];if(n!==void 0)return{transform:[{skewY:`${e?-n:n}deg`}]}}if(t.startsWith("perspective-")){let e=t.substring(12),r=Lt(e);if(r!==null)return{transform:[{perspective:r}]};let i=Dt[e];if(i!==void 0)return{transform:[{perspective:i}]}}return null}var zt={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128};var kt={"font-sans":{fontFamily:"System"},"font-serif":{fontFamily:"serif"},"font-mono":{fontFamily:"Courier"}},Kt={"font-thin":{fontWeight:"100"},"font-extralight":{fontWeight:"200"},"font-light":{fontWeight:"300"},"font-normal":{fontWeight:"400"},"font-medium":{fontWeight:"500"},"font-semibold":{fontWeight:"600"},"font-bold":{fontWeight:"700"},"font-extrabold":{fontWeight:"800"},"font-black":{fontWeight:"900"}},Ft={italic:{fontStyle:"italic"},"not-italic":{fontStyle:"normal"}},Ht={"text-left":{textAlign:"left"},"text-center":{textAlign:"center"},"text-right":{textAlign:"right"},"text-justify":{textAlign:"justify"}},Bt={underline:{textDecorationLine:"underline"},"line-through":{textDecorationLine:"line-through"},"no-underline":{textDecorationLine:"none"}},Ut={uppercase:{textTransform:"uppercase"},lowercase:{textTransform:"lowercase"},capitalize:{textTransform:"capitalize"},"normal-case":{textTransform:"none"}},Xt={"leading-none":{lineHeight:16},"leading-tight":{lineHeight:20},"leading-snug":{lineHeight:22},"leading-normal":{lineHeight:24},"leading-relaxed":{lineHeight:28},"leading-loose":{lineHeight:32}},Gt={"tracking-tighter":{letterSpacing:-.8},"tracking-tight":{letterSpacing:-.4},"tracking-normal":{letterSpacing:0},"tracking-wide":{letterSpacing:.4},"tracking-wider":{letterSpacing:.8},"tracking-widest":{letterSpacing:1.6}};function Yt(t){let e=t.match(/^\[(\d+)(?:px)?\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary font size value: ${t}. Only px values are supported (e.g., [18px] or [18]).`),null)}function Zt(t){let e=t.match(/^\[(\d+)(?:px)?\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary line height value: ${t}. Only px values are supported (e.g., [24px] or [24]).`),null)}function k(t){var e,r,i,n,s,o,a,f;if(t.startsWith("text-")){let d=t.substring(5),p=Yt(d);if(p!==null)return{fontSize:p};let g=zt[d];if(g!==void 0)return{fontSize:g}}if(t.startsWith("leading-")){let d=t.substring(8),p=Zt(d);if(p!==null)return{lineHeight:p}}return(f=(a=(o=(s=(n=(i=(r=(e=kt[t])!=null?e:Kt[t])!=null?r:Ft[t])!=null?i:Ht[t])!=null?n:Bt[t])!=null?s:Ut[t])!=null?o:Xt[t])!=null?a:Gt[t])!=null?f:null}function W(t,e){let r=t.split(/\s+/).filter(Boolean),i={};for(let n of r){let s=qt(n,e);Object.assign(i,s)}return i}function qt(t,e){let r=[V,_,i=>v(i,e),I,k,$,j,N,z];for(let i of r){let n=i(t);if(n!==null)return n}return process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unknown class: "${t}"`),{}}var at=["active","focus","disabled"];function ft(t){return at.some(e=>t.includes(`${e}:`))}function ct(t){let e=t.split(/\s+/).filter(Boolean),r=[],i=new Map;for(let n of e){let s=!1;for(let o of at){let a=`${o}:`;if(n.startsWith(a)){let f=n.slice(a.length);i.has(o)||i.set(o,[]);let d=i.get(o);d&&d.push(f),s=!0;break}}s||r.push(n)}return{base:r,modifiers:i}}var b,m=new Map;function Jt(t){var e,r;(r=(e=t.theme)==null?void 0:e.extend)!=null&&r.colors?b=T(t.theme.extend.colors):b=void 0,m.clear()}function Qt(){return b}function te(){m.clear()}function ee(){return{size:m.size,keys:Array.from(m.keys())}}function lt(t){let e=m.get(t);if(e)return e;if(!ft(t)){let f={style:W(t,b)};return m.set(t,f),f}let{base:r,modifiers:i}=ct(t),n=r.join(" "),o={style:n?W(n,b):{}};if(i.has("active")){let a=i.get("active");if(a&&a.length>0){let f=a.join(" ");o.activeStyle=W(f,b)}}if(i.has("focus")){let a=i.get("focus");if(a&&a.length>0){let f=a.join(" ");o.focusStyle=W(f,b)}}if(i.has("disabled")){let a=i.get("disabled");if(a&&a.length>0){let f=a.join(" ");o.disabledStyle=W(f,b)}}return m.set(t,o),o}function re(t,...e){let i=t.reduce((n,s,o)=>{let a=e[o],f=a?String(a):"";return n+s+f},"").trim().replace(/\s+/g," ");return i?lt(i):{style:{}}}function ne(t){let e=t.trim().replace(/\s+/g," ");if(e)return lt(e)}
2
+ //# sourceMappingURL=runtime.cjs.map