bleam 0.0.4 → 0.0.6
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.
- package/dist/ai.cjs +187 -0
- package/dist/ai.d.cts +52 -0
- package/dist/ai.d.ts +52 -0
- package/dist/ai.js +182 -0
- package/dist/animated.cjs +286 -0
- package/dist/animated.d.cts +47 -0
- package/dist/animated.d.ts +47 -0
- package/dist/animated.js +281 -0
- package/dist/app.d.cts +1 -2
- package/dist/app.d.ts +1 -2
- package/dist/app.js +1 -2
- package/dist/bundler.d.cts +1 -2
- package/dist/bundler.d.ts +1 -2
- package/dist/chrome.cjs +265 -0
- package/dist/chrome.d.cts +19 -0
- package/dist/chrome.d.ts +19 -0
- package/dist/chrome.js +262 -0
- package/dist/cli.cjs +918 -68
- package/dist/cli.js +917 -71
- package/dist/config-Bb6SULnR.cjs +46 -0
- package/dist/config-CfWa3q-k.js +28 -0
- package/dist/config-ClDGHNb3.d.ts +39 -0
- package/dist/config-D3gPaVMb.d.cts +39 -0
- package/dist/config.cjs +4 -25
- package/dist/config.d.cts +2 -28
- package/dist/config.d.ts +2 -28
- package/dist/config.js +2 -24
- package/dist/crypto-BB92-Upx.js +7 -0
- package/dist/crypto-CT3VZ7lF.cjs +13 -0
- package/dist/crypto.cjs +2 -2
- package/dist/crypto.d.cts +8 -1
- package/dist/crypto.d.ts +8 -1
- package/dist/crypto.js +2 -2
- package/dist/dev-protocol.d.cts +3 -3
- package/dist/dev-protocol.d.ts +3 -3
- package/dist/dev-protocol.js +1 -2
- package/dist/fs.cjs +12 -2
- package/dist/fs.d.cts +7 -1
- package/dist/fs.d.ts +7 -1
- package/dist/fs.js +10 -1
- package/dist/index.cjs +4 -5
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2 -4
- package/dist/native-macos-D6p2SmUj.js +20 -0
- package/dist/native-macos-DLwo_ii9.cjs +31 -0
- package/dist/native-runtime-C85Nuc4F.js +10 -0
- package/dist/native-runtime-CbPzrs8j.d.cts +33 -0
- package/dist/{native-runtime-CdeT0JyQ.cjs → native-runtime-CsXnXkQn.cjs} +1 -14
- package/dist/native-runtime-DxHSrsTX.d.ts +33 -0
- package/dist/native.cjs +35 -32
- package/dist/native.d.cts +4 -34
- package/dist/native.d.ts +3 -33
- package/dist/native.js +36 -34
- package/dist/runtime.d.cts +1 -2
- package/dist/runtime.d.ts +1 -2
- package/dist/schema-BOuUHcqo.d.cts +58 -0
- package/dist/schema-DVmoD9JL.js +90 -0
- package/dist/schema-bxeeCyLn.cjs +102 -0
- package/dist/schema-ipsECAso.d.ts +58 -0
- package/dist/schema.cjs +4 -0
- package/dist/schema.d.cts +2 -0
- package/dist/schema.d.ts +2 -0
- package/dist/schema.js +3 -0
- package/dist/state.cjs +765 -0
- package/dist/state.d.cts +129 -0
- package/dist/state.d.ts +129 -0
- package/dist/state.js +747 -0
- package/dist/styles.cjs +742 -0
- package/dist/styles.d.cts +701 -0
- package/dist/styles.d.ts +701 -0
- package/dist/styles.js +739 -0
- package/dist/ui.cjs +113 -0
- package/dist/ui.d.cts +30 -0
- package/dist/ui.d.ts +30 -0
- package/dist/ui.js +110 -0
- package/metro-config.cjs +18 -13
- package/package.json +48 -13
- package/templates/basic/app/index.tsx +136 -0
- package/templates/basic/app.config.ts +4 -2
- package/dist/app.d.cts.map +0 -1
- package/dist/app.d.ts.map +0 -1
- package/dist/app.js.map +0 -1
- package/dist/bundler.d.cts.map +0 -1
- package/dist/bundler.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/config.d.cts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/crypto-BNhWeXMj.cjs +0 -15
- package/dist/crypto-Bg8cD8wX.d.cts +0 -8
- package/dist/crypto-Bg8cD8wX.d.cts.map +0 -1
- package/dist/crypto-CCA_hvao.js +0 -11
- package/dist/crypto-CCA_hvao.js.map +0 -1
- package/dist/crypto-IOzbNoJD.d.ts +0 -8
- package/dist/crypto-IOzbNoJD.d.ts.map +0 -1
- package/dist/dev-protocol.d.cts.map +0 -1
- package/dist/dev-protocol.d.ts.map +0 -1
- package/dist/dev-protocol.js.map +0 -1
- package/dist/fs-BK7joD1g.js +0 -13
- package/dist/fs-BK7joD1g.js.map +0 -1
- package/dist/fs-CEhcjuN6.d.ts +0 -9
- package/dist/fs-CEhcjuN6.d.ts.map +0 -1
- package/dist/fs-CfE8CHf_.d.cts +0 -9
- package/dist/fs-CfE8CHf_.d.cts.map +0 -1
- package/dist/fs-DKHYTPua.cjs +0 -18
- package/dist/native-runtime-BoqybBBf.js +0 -18
- package/dist/native-runtime-BoqybBBf.js.map +0 -1
- package/dist/native.d.cts.map +0 -1
- package/dist/native.d.ts.map +0 -1
- package/dist/native.js.map +0 -1
- package/dist/runtime.d.cts.map +0 -1
- package/dist/runtime.d.ts.map +0 -1
- package/templates/basic/app.tsx +0 -18
package/dist/styles.cjs
ADDED
|
@@ -0,0 +1,742 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
let react_native = require("react-native");
|
|
3
|
+
react_native = require_chunk.__toESM(react_native);
|
|
4
|
+
|
|
5
|
+
//#region src/styles.ts
|
|
6
|
+
const isDev = process.env.NODE_ENV !== "production";
|
|
7
|
+
const spacing = {
|
|
8
|
+
"0": 0,
|
|
9
|
+
px: 1,
|
|
10
|
+
"0.5": 2,
|
|
11
|
+
"1": 4,
|
|
12
|
+
"1.5": 6,
|
|
13
|
+
"2": 8,
|
|
14
|
+
"2.5": 10,
|
|
15
|
+
"3": 12,
|
|
16
|
+
"3.5": 14,
|
|
17
|
+
"4": 16,
|
|
18
|
+
"5": 20,
|
|
19
|
+
"6": 24,
|
|
20
|
+
"7": 28,
|
|
21
|
+
"8": 32,
|
|
22
|
+
"9": 36,
|
|
23
|
+
"10": 40,
|
|
24
|
+
"11": 44,
|
|
25
|
+
"12": 48,
|
|
26
|
+
"14": 56,
|
|
27
|
+
"16": 64,
|
|
28
|
+
"20": 80,
|
|
29
|
+
"24": 96,
|
|
30
|
+
"28": 112,
|
|
31
|
+
"32": 128,
|
|
32
|
+
"36": 144,
|
|
33
|
+
"40": 160,
|
|
34
|
+
"44": 176,
|
|
35
|
+
"48": 192,
|
|
36
|
+
"52": 208,
|
|
37
|
+
"56": 224,
|
|
38
|
+
"60": 240,
|
|
39
|
+
"64": 256,
|
|
40
|
+
"72": 288,
|
|
41
|
+
"80": 320,
|
|
42
|
+
"96": 384
|
|
43
|
+
};
|
|
44
|
+
const fontSizes = {
|
|
45
|
+
xs: {
|
|
46
|
+
fontSize: 12,
|
|
47
|
+
lineHeight: 16
|
|
48
|
+
},
|
|
49
|
+
sm: {
|
|
50
|
+
fontSize: 14,
|
|
51
|
+
lineHeight: 20
|
|
52
|
+
},
|
|
53
|
+
base: {
|
|
54
|
+
fontSize: 16,
|
|
55
|
+
lineHeight: 24
|
|
56
|
+
},
|
|
57
|
+
lg: {
|
|
58
|
+
fontSize: 18,
|
|
59
|
+
lineHeight: 28
|
|
60
|
+
},
|
|
61
|
+
xl: {
|
|
62
|
+
fontSize: 20,
|
|
63
|
+
lineHeight: 28
|
|
64
|
+
},
|
|
65
|
+
"2xl": {
|
|
66
|
+
fontSize: 24,
|
|
67
|
+
lineHeight: 32
|
|
68
|
+
},
|
|
69
|
+
"3xl": {
|
|
70
|
+
fontSize: 30,
|
|
71
|
+
lineHeight: 36
|
|
72
|
+
},
|
|
73
|
+
"4xl": {
|
|
74
|
+
fontSize: 36,
|
|
75
|
+
lineHeight: 40
|
|
76
|
+
},
|
|
77
|
+
"5xl": {
|
|
78
|
+
fontSize: 48,
|
|
79
|
+
lineHeight: 56
|
|
80
|
+
},
|
|
81
|
+
"6xl": {
|
|
82
|
+
fontSize: 60,
|
|
83
|
+
lineHeight: 68
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const tracking = {
|
|
87
|
+
tighter: -.8,
|
|
88
|
+
tight: -.4,
|
|
89
|
+
normal: 0,
|
|
90
|
+
wide: .8,
|
|
91
|
+
wider: 1.5,
|
|
92
|
+
widest: 3.2
|
|
93
|
+
};
|
|
94
|
+
const lineHeights = {
|
|
95
|
+
none: 1,
|
|
96
|
+
"3": 12,
|
|
97
|
+
"4": 16,
|
|
98
|
+
"5": 20,
|
|
99
|
+
"6": 24,
|
|
100
|
+
"7": 28,
|
|
101
|
+
"8": 32,
|
|
102
|
+
"9": 36,
|
|
103
|
+
"10": 40
|
|
104
|
+
};
|
|
105
|
+
const fractions = {
|
|
106
|
+
"1/2": "50%",
|
|
107
|
+
"1/3": "33.333333%",
|
|
108
|
+
"2/3": "66.666667%",
|
|
109
|
+
"1/4": "25%",
|
|
110
|
+
"2/4": "50%",
|
|
111
|
+
"3/4": "75%",
|
|
112
|
+
"1/5": "20%",
|
|
113
|
+
"2/5": "40%",
|
|
114
|
+
"3/5": "60%",
|
|
115
|
+
"4/5": "80%",
|
|
116
|
+
"1/6": "16.666667%",
|
|
117
|
+
"2/6": "33.333333%",
|
|
118
|
+
"3/6": "50%",
|
|
119
|
+
"4/6": "66.666667%",
|
|
120
|
+
"5/6": "83.333333%",
|
|
121
|
+
"1/12": "8.333333%",
|
|
122
|
+
"2/12": "16.666667%",
|
|
123
|
+
"3/12": "25%",
|
|
124
|
+
"4/12": "33.333333%",
|
|
125
|
+
"5/12": "41.666667%",
|
|
126
|
+
"6/12": "50%",
|
|
127
|
+
"7/12": "58.333333%",
|
|
128
|
+
"8/12": "66.666667%",
|
|
129
|
+
"9/12": "75%",
|
|
130
|
+
"10/12": "83.333333%",
|
|
131
|
+
"11/12": "91.666667%"
|
|
132
|
+
};
|
|
133
|
+
const maxWidths = {
|
|
134
|
+
xs: 320,
|
|
135
|
+
sm: 384,
|
|
136
|
+
md: 448,
|
|
137
|
+
lg: 512,
|
|
138
|
+
xl: 576,
|
|
139
|
+
"2xl": 672,
|
|
140
|
+
"3xl": 768,
|
|
141
|
+
"4xl": 896,
|
|
142
|
+
"5xl": 1024,
|
|
143
|
+
"6xl": 1152,
|
|
144
|
+
"7xl": 1280
|
|
145
|
+
};
|
|
146
|
+
const maxHeights = {
|
|
147
|
+
xs: 320,
|
|
148
|
+
sm: 384,
|
|
149
|
+
md: 448,
|
|
150
|
+
lg: 512,
|
|
151
|
+
xl: 576,
|
|
152
|
+
"2xl": 672,
|
|
153
|
+
"3xl": 768,
|
|
154
|
+
"4xl": 896,
|
|
155
|
+
"5xl": 1024,
|
|
156
|
+
"6xl": 1152,
|
|
157
|
+
"7xl": 1280
|
|
158
|
+
};
|
|
159
|
+
const rotateTransforms = {
|
|
160
|
+
"0": "0deg",
|
|
161
|
+
"1": "1deg",
|
|
162
|
+
"2": "2deg",
|
|
163
|
+
"3": "3deg",
|
|
164
|
+
"6": "6deg",
|
|
165
|
+
"12": "12deg",
|
|
166
|
+
"30": "30deg",
|
|
167
|
+
"45": "45deg",
|
|
168
|
+
"90": "90deg",
|
|
169
|
+
"180": "180deg"
|
|
170
|
+
};
|
|
171
|
+
const scaleTransforms = {
|
|
172
|
+
"50": .5,
|
|
173
|
+
"75": .75,
|
|
174
|
+
"90": .9,
|
|
175
|
+
"95": .95,
|
|
176
|
+
"100": 1,
|
|
177
|
+
"105": 1.05,
|
|
178
|
+
"110": 1.1,
|
|
179
|
+
"125": 1.25,
|
|
180
|
+
"150": 1.5
|
|
181
|
+
};
|
|
182
|
+
const borderWidths = [
|
|
183
|
+
"0",
|
|
184
|
+
"2",
|
|
185
|
+
"4",
|
|
186
|
+
"8"
|
|
187
|
+
];
|
|
188
|
+
const borderSides = {
|
|
189
|
+
t: "borderTopWidth",
|
|
190
|
+
r: "borderRightWidth",
|
|
191
|
+
b: "borderBottomWidth",
|
|
192
|
+
l: "borderLeftWidth"
|
|
193
|
+
};
|
|
194
|
+
const opacityValues = [
|
|
195
|
+
0,
|
|
196
|
+
5,
|
|
197
|
+
10,
|
|
198
|
+
15,
|
|
199
|
+
20,
|
|
200
|
+
25,
|
|
201
|
+
30,
|
|
202
|
+
35,
|
|
203
|
+
40,
|
|
204
|
+
45,
|
|
205
|
+
50,
|
|
206
|
+
55,
|
|
207
|
+
60,
|
|
208
|
+
65,
|
|
209
|
+
70,
|
|
210
|
+
75,
|
|
211
|
+
80,
|
|
212
|
+
85,
|
|
213
|
+
90,
|
|
214
|
+
95,
|
|
215
|
+
100
|
|
216
|
+
];
|
|
217
|
+
const radii = {
|
|
218
|
+
none: 0,
|
|
219
|
+
sm: 2,
|
|
220
|
+
DEFAULT: 4,
|
|
221
|
+
md: 6,
|
|
222
|
+
lg: 8,
|
|
223
|
+
xl: 12,
|
|
224
|
+
"2xl": 16,
|
|
225
|
+
"3xl": 24,
|
|
226
|
+
full: 9999
|
|
227
|
+
};
|
|
228
|
+
const paletteColors = {
|
|
229
|
+
transparent: "transparent",
|
|
230
|
+
black: "#000000",
|
|
231
|
+
white: "#ffffff",
|
|
232
|
+
"slate-50": "#f8fafc",
|
|
233
|
+
"slate-100": "#f1f5f9",
|
|
234
|
+
"slate-200": "#e2e8f0",
|
|
235
|
+
"slate-300": "#cbd5e1",
|
|
236
|
+
"slate-400": "#94a3b8",
|
|
237
|
+
"slate-500": "#64748b",
|
|
238
|
+
"slate-600": "#475569",
|
|
239
|
+
"slate-700": "#334155",
|
|
240
|
+
"slate-800": "#1e293b",
|
|
241
|
+
"slate-900": "#0f172a",
|
|
242
|
+
"slate-950": "#020617",
|
|
243
|
+
"gray-50": "#f9fafb",
|
|
244
|
+
"gray-100": "#f3f4f6",
|
|
245
|
+
"gray-200": "#e5e7eb",
|
|
246
|
+
"gray-300": "#d1d5db",
|
|
247
|
+
"gray-400": "#9ca3af",
|
|
248
|
+
"gray-500": "#6b7280",
|
|
249
|
+
"gray-600": "#4b5563",
|
|
250
|
+
"gray-700": "#374151",
|
|
251
|
+
"gray-800": "#1f2937",
|
|
252
|
+
"gray-900": "#111827",
|
|
253
|
+
"gray-950": "#030712",
|
|
254
|
+
"zinc-50": "#fafafa",
|
|
255
|
+
"zinc-100": "#f4f4f5",
|
|
256
|
+
"zinc-200": "#e4e4e7",
|
|
257
|
+
"zinc-300": "#d4d4d8",
|
|
258
|
+
"zinc-400": "#a1a1aa",
|
|
259
|
+
"zinc-500": "#71717a",
|
|
260
|
+
"zinc-600": "#52525b",
|
|
261
|
+
"zinc-700": "#3f3f46",
|
|
262
|
+
"zinc-800": "#27272a",
|
|
263
|
+
"zinc-900": "#18181b",
|
|
264
|
+
"zinc-950": "#09090b",
|
|
265
|
+
"neutral-50": "#fafafa",
|
|
266
|
+
"neutral-100": "#f5f5f5",
|
|
267
|
+
"neutral-200": "#e5e5e5",
|
|
268
|
+
"neutral-300": "#d4d4d4",
|
|
269
|
+
"neutral-400": "#a3a3a3",
|
|
270
|
+
"neutral-500": "#737373",
|
|
271
|
+
"neutral-600": "#525252",
|
|
272
|
+
"neutral-700": "#404040",
|
|
273
|
+
"neutral-800": "#262626",
|
|
274
|
+
"neutral-900": "#171717",
|
|
275
|
+
"neutral-950": "#0a0a0a",
|
|
276
|
+
"stone-50": "#fafaf9",
|
|
277
|
+
"stone-100": "#f5f5f4",
|
|
278
|
+
"stone-200": "#e7e5e4",
|
|
279
|
+
"stone-300": "#d6d3d1",
|
|
280
|
+
"stone-400": "#a8a29e",
|
|
281
|
+
"stone-500": "#78716c",
|
|
282
|
+
"stone-600": "#57534e",
|
|
283
|
+
"stone-700": "#44403c",
|
|
284
|
+
"stone-800": "#292524",
|
|
285
|
+
"stone-900": "#1c1917",
|
|
286
|
+
"stone-950": "#0c0a09",
|
|
287
|
+
"red-50": "#fef2f2",
|
|
288
|
+
"red-100": "#fee2e2",
|
|
289
|
+
"red-200": "#fecaca",
|
|
290
|
+
"red-300": "#fca5a5",
|
|
291
|
+
"red-400": "#f87171",
|
|
292
|
+
"red-500": "#ef4444",
|
|
293
|
+
"red-600": "#dc2626",
|
|
294
|
+
"red-700": "#b91c1c",
|
|
295
|
+
"red-800": "#991b1b",
|
|
296
|
+
"red-900": "#7f1d1d",
|
|
297
|
+
"red-950": "#450a0a",
|
|
298
|
+
"orange-50": "#fff7ed",
|
|
299
|
+
"orange-100": "#ffedd5",
|
|
300
|
+
"orange-200": "#fed7aa",
|
|
301
|
+
"orange-300": "#fdba74",
|
|
302
|
+
"orange-400": "#fb923c",
|
|
303
|
+
"orange-500": "#f97316",
|
|
304
|
+
"orange-600": "#ea580c",
|
|
305
|
+
"orange-700": "#c2410c",
|
|
306
|
+
"orange-800": "#9a3412",
|
|
307
|
+
"orange-900": "#7c2d12",
|
|
308
|
+
"orange-950": "#431407",
|
|
309
|
+
"amber-50": "#fffbeb",
|
|
310
|
+
"amber-100": "#fef3c7",
|
|
311
|
+
"amber-200": "#fde68a",
|
|
312
|
+
"amber-300": "#fcd34d",
|
|
313
|
+
"amber-400": "#fbbf24",
|
|
314
|
+
"amber-500": "#f59e0b",
|
|
315
|
+
"amber-600": "#d97706",
|
|
316
|
+
"amber-700": "#b45309",
|
|
317
|
+
"amber-800": "#92400e",
|
|
318
|
+
"amber-900": "#78350f",
|
|
319
|
+
"amber-950": "#451a03",
|
|
320
|
+
"yellow-50": "#fefce8",
|
|
321
|
+
"yellow-100": "#fef9c3",
|
|
322
|
+
"yellow-200": "#fef08a",
|
|
323
|
+
"yellow-300": "#fde047",
|
|
324
|
+
"yellow-400": "#facc15",
|
|
325
|
+
"yellow-500": "#eab308",
|
|
326
|
+
"yellow-600": "#ca8a04",
|
|
327
|
+
"yellow-700": "#a16207",
|
|
328
|
+
"yellow-800": "#854d0e",
|
|
329
|
+
"yellow-900": "#713f12",
|
|
330
|
+
"yellow-950": "#422006",
|
|
331
|
+
"lime-50": "#f7fee7",
|
|
332
|
+
"lime-100": "#ecfccb",
|
|
333
|
+
"lime-200": "#d9f99d",
|
|
334
|
+
"lime-300": "#bef264",
|
|
335
|
+
"lime-400": "#a3e635",
|
|
336
|
+
"lime-500": "#84cc16",
|
|
337
|
+
"lime-600": "#65a30d",
|
|
338
|
+
"lime-700": "#4d7c0f",
|
|
339
|
+
"lime-800": "#3f6212",
|
|
340
|
+
"lime-900": "#365314",
|
|
341
|
+
"lime-950": "#1a2e05",
|
|
342
|
+
"green-50": "#f0fdf4",
|
|
343
|
+
"green-100": "#dcfce7",
|
|
344
|
+
"green-200": "#bbf7d0",
|
|
345
|
+
"green-300": "#86efac",
|
|
346
|
+
"green-400": "#4ade80",
|
|
347
|
+
"green-500": "#22c55e",
|
|
348
|
+
"green-600": "#16a34a",
|
|
349
|
+
"green-700": "#15803d",
|
|
350
|
+
"green-800": "#166534",
|
|
351
|
+
"green-900": "#14532d",
|
|
352
|
+
"green-950": "#052e16",
|
|
353
|
+
"emerald-50": "#ecfdf5",
|
|
354
|
+
"emerald-100": "#d1fae5",
|
|
355
|
+
"emerald-200": "#a7f3d0",
|
|
356
|
+
"emerald-300": "#6ee7b7",
|
|
357
|
+
"emerald-400": "#34d399",
|
|
358
|
+
"emerald-500": "#10b981",
|
|
359
|
+
"emerald-600": "#059669",
|
|
360
|
+
"emerald-700": "#047857",
|
|
361
|
+
"emerald-800": "#065f46",
|
|
362
|
+
"emerald-900": "#064e3b",
|
|
363
|
+
"emerald-950": "#022c22",
|
|
364
|
+
"teal-50": "#f0fdfa",
|
|
365
|
+
"teal-100": "#ccfbf1",
|
|
366
|
+
"teal-200": "#99f6e4",
|
|
367
|
+
"teal-300": "#5eead4",
|
|
368
|
+
"teal-400": "#2dd4bf",
|
|
369
|
+
"teal-500": "#14b8a6",
|
|
370
|
+
"teal-600": "#0d9488",
|
|
371
|
+
"teal-700": "#0f766e",
|
|
372
|
+
"teal-800": "#115e59",
|
|
373
|
+
"teal-900": "#134e4a",
|
|
374
|
+
"teal-950": "#042f2e",
|
|
375
|
+
"cyan-50": "#ecfeff",
|
|
376
|
+
"cyan-100": "#cffafe",
|
|
377
|
+
"cyan-200": "#a5f3fc",
|
|
378
|
+
"cyan-300": "#67e8f9",
|
|
379
|
+
"cyan-400": "#22d3ee",
|
|
380
|
+
"cyan-500": "#06b6d4",
|
|
381
|
+
"cyan-600": "#0891b2",
|
|
382
|
+
"cyan-700": "#0e7490",
|
|
383
|
+
"cyan-800": "#155e75",
|
|
384
|
+
"cyan-900": "#164e63",
|
|
385
|
+
"cyan-950": "#083344",
|
|
386
|
+
"sky-50": "#f0f9ff",
|
|
387
|
+
"sky-100": "#e0f2fe",
|
|
388
|
+
"sky-200": "#bae6fd",
|
|
389
|
+
"sky-300": "#7dd3fc",
|
|
390
|
+
"sky-400": "#38bdf8",
|
|
391
|
+
"sky-500": "#0ea5e9",
|
|
392
|
+
"sky-600": "#0284c7",
|
|
393
|
+
"sky-700": "#0369a1",
|
|
394
|
+
"sky-800": "#075985",
|
|
395
|
+
"sky-900": "#0c4a6e",
|
|
396
|
+
"sky-950": "#082f49",
|
|
397
|
+
"blue-50": "#eff6ff",
|
|
398
|
+
"blue-100": "#dbeafe",
|
|
399
|
+
"blue-200": "#bfdbfe",
|
|
400
|
+
"blue-300": "#93c5fd",
|
|
401
|
+
"blue-400": "#60a5fa",
|
|
402
|
+
"blue-500": "#3b82f6",
|
|
403
|
+
"blue-600": "#2563eb",
|
|
404
|
+
"blue-700": "#1d4ed8",
|
|
405
|
+
"blue-800": "#1e40af",
|
|
406
|
+
"blue-900": "#1e3a8a",
|
|
407
|
+
"blue-950": "#172554",
|
|
408
|
+
"indigo-50": "#eef2ff",
|
|
409
|
+
"indigo-100": "#e0e7ff",
|
|
410
|
+
"indigo-200": "#c7d2fe",
|
|
411
|
+
"indigo-300": "#a5b4fc",
|
|
412
|
+
"indigo-400": "#818cf8",
|
|
413
|
+
"indigo-500": "#6366f1",
|
|
414
|
+
"indigo-600": "#4f46e5",
|
|
415
|
+
"indigo-700": "#4338ca",
|
|
416
|
+
"indigo-800": "#3730a3",
|
|
417
|
+
"indigo-900": "#312e81",
|
|
418
|
+
"indigo-950": "#1e1b4b",
|
|
419
|
+
"violet-50": "#f5f3ff",
|
|
420
|
+
"violet-100": "#ede9fe",
|
|
421
|
+
"violet-200": "#ddd6fe",
|
|
422
|
+
"violet-300": "#c4b5fd",
|
|
423
|
+
"violet-400": "#a78bfa",
|
|
424
|
+
"violet-500": "#8b5cf6",
|
|
425
|
+
"violet-600": "#7c3aed",
|
|
426
|
+
"violet-700": "#6d28d9",
|
|
427
|
+
"violet-800": "#5b21b6",
|
|
428
|
+
"violet-900": "#4c1d95",
|
|
429
|
+
"violet-950": "#2e1065",
|
|
430
|
+
"purple-50": "#faf5ff",
|
|
431
|
+
"purple-100": "#f3e8ff",
|
|
432
|
+
"purple-200": "#e9d5ff",
|
|
433
|
+
"purple-300": "#d8b4fe",
|
|
434
|
+
"purple-400": "#c084fc",
|
|
435
|
+
"purple-500": "#a855f7",
|
|
436
|
+
"purple-600": "#9333ea",
|
|
437
|
+
"purple-700": "#7e22ce",
|
|
438
|
+
"purple-800": "#6b21a8",
|
|
439
|
+
"purple-900": "#581c87",
|
|
440
|
+
"purple-950": "#3b0764",
|
|
441
|
+
"fuchsia-50": "#fdf4ff",
|
|
442
|
+
"fuchsia-100": "#fae8ff",
|
|
443
|
+
"fuchsia-200": "#f5d0fe",
|
|
444
|
+
"fuchsia-300": "#f0abfc",
|
|
445
|
+
"fuchsia-400": "#e879f9",
|
|
446
|
+
"fuchsia-500": "#d946ef",
|
|
447
|
+
"fuchsia-600": "#c026d3",
|
|
448
|
+
"fuchsia-700": "#a21caf",
|
|
449
|
+
"fuchsia-800": "#86198f",
|
|
450
|
+
"fuchsia-900": "#701a75",
|
|
451
|
+
"fuchsia-950": "#4a044e",
|
|
452
|
+
"pink-50": "#fdf2f8",
|
|
453
|
+
"pink-100": "#fce7f3",
|
|
454
|
+
"pink-200": "#fbcfe8",
|
|
455
|
+
"pink-300": "#f9a8d4",
|
|
456
|
+
"pink-400": "#f472b6",
|
|
457
|
+
"pink-500": "#ec4899",
|
|
458
|
+
"pink-600": "#db2777",
|
|
459
|
+
"pink-700": "#be185d",
|
|
460
|
+
"pink-800": "#9d174d",
|
|
461
|
+
"pink-900": "#831843",
|
|
462
|
+
"pink-950": "#500724",
|
|
463
|
+
"rose-50": "#fff1f2",
|
|
464
|
+
"rose-100": "#ffe4e6",
|
|
465
|
+
"rose-200": "#fecdd3",
|
|
466
|
+
"rose-300": "#fda4af",
|
|
467
|
+
"rose-400": "#fb7185",
|
|
468
|
+
"rose-500": "#f43f5e",
|
|
469
|
+
"rose-600": "#e11d48",
|
|
470
|
+
"rose-700": "#be123c",
|
|
471
|
+
"rose-800": "#9f1239",
|
|
472
|
+
"rose-900": "#881337",
|
|
473
|
+
"rose-950": "#4c0519"
|
|
474
|
+
};
|
|
475
|
+
const colors = {
|
|
476
|
+
system: (0, react_native.PlatformColor)("systemBackground"),
|
|
477
|
+
secondarySystem: (0, react_native.PlatformColor)("secondarySystemBackground"),
|
|
478
|
+
tertiarySystem: (0, react_native.PlatformColor)("tertiarySystemBackground"),
|
|
479
|
+
systemGrouped: (0, react_native.PlatformColor)("systemGroupedBackground"),
|
|
480
|
+
secondarySystemGrouped: (0, react_native.PlatformColor)("secondarySystemGroupedBackground"),
|
|
481
|
+
tertiarySystemGrouped: (0, react_native.PlatformColor)("tertiarySystemGroupedBackground"),
|
|
482
|
+
fill: (0, react_native.PlatformColor)("systemFill"),
|
|
483
|
+
secondaryFill: (0, react_native.PlatformColor)("secondarySystemFill"),
|
|
484
|
+
tertiaryFill: (0, react_native.PlatformColor)("tertiarySystemFill"),
|
|
485
|
+
quaternaryFill: (0, react_native.PlatformColor)("quaternarySystemFill"),
|
|
486
|
+
label: (0, react_native.PlatformColor)("label"),
|
|
487
|
+
secondaryLabel: (0, react_native.PlatformColor)("secondaryLabel"),
|
|
488
|
+
tertiaryLabel: (0, react_native.PlatformColor)("tertiaryLabel"),
|
|
489
|
+
quaternaryLabel: (0, react_native.PlatformColor)("quaternaryLabel"),
|
|
490
|
+
placeholder: (0, react_native.PlatformColor)("placeholderText"),
|
|
491
|
+
separator: (0, react_native.PlatformColor)("separator"),
|
|
492
|
+
opaqueSeparator: (0, react_native.PlatformColor)("opaqueSeparator"),
|
|
493
|
+
link: (0, react_native.PlatformColor)("link"),
|
|
494
|
+
clear: (0, react_native.PlatformColor)("clear"),
|
|
495
|
+
blue: (0, react_native.PlatformColor)("systemBlue"),
|
|
496
|
+
brown: (0, react_native.PlatformColor)("systemBrown"),
|
|
497
|
+
cyan: (0, react_native.PlatformColor)("systemCyan"),
|
|
498
|
+
green: (0, react_native.PlatformColor)("systemGreen"),
|
|
499
|
+
indigo: (0, react_native.PlatformColor)("systemIndigo"),
|
|
500
|
+
mint: (0, react_native.PlatformColor)("systemMint"),
|
|
501
|
+
orange: (0, react_native.PlatformColor)("systemOrange"),
|
|
502
|
+
pink: (0, react_native.PlatformColor)("systemPink"),
|
|
503
|
+
purple: (0, react_native.PlatformColor)("systemPurple"),
|
|
504
|
+
red: (0, react_native.PlatformColor)("systemRed"),
|
|
505
|
+
teal: (0, react_native.PlatformColor)("systemTeal"),
|
|
506
|
+
yellow: (0, react_native.PlatformColor)("systemYellow"),
|
|
507
|
+
gray: (0, react_native.PlatformColor)("systemGray"),
|
|
508
|
+
gray2: (0, react_native.PlatformColor)("systemGray2"),
|
|
509
|
+
gray3: (0, react_native.PlatformColor)("systemGray3"),
|
|
510
|
+
gray4: (0, react_native.PlatformColor)("systemGray4"),
|
|
511
|
+
gray5: (0, react_native.PlatformColor)("systemGray5"),
|
|
512
|
+
gray6: (0, react_native.PlatformColor)("systemGray6")
|
|
513
|
+
};
|
|
514
|
+
const platformColors = {
|
|
515
|
+
system: "systemBackground",
|
|
516
|
+
"secondary-system": "secondarySystemBackground",
|
|
517
|
+
"tertiary-system": "tertiarySystemBackground",
|
|
518
|
+
"system-grouped": "systemGroupedBackground",
|
|
519
|
+
"secondary-system-grouped": "secondarySystemGroupedBackground",
|
|
520
|
+
"tertiary-system-grouped": "tertiarySystemGroupedBackground",
|
|
521
|
+
fill: "systemFill",
|
|
522
|
+
"secondary-fill": "secondarySystemFill",
|
|
523
|
+
"tertiary-fill": "tertiarySystemFill",
|
|
524
|
+
"quaternary-fill": "quaternarySystemFill",
|
|
525
|
+
label: "label",
|
|
526
|
+
"secondary-label": "secondaryLabel",
|
|
527
|
+
"tertiary-label": "tertiaryLabel",
|
|
528
|
+
"quaternary-label": "quaternaryLabel",
|
|
529
|
+
placeholder: "placeholderText",
|
|
530
|
+
separator: "separator",
|
|
531
|
+
"opaque-separator": "opaqueSeparator",
|
|
532
|
+
link: "link",
|
|
533
|
+
clear: "clear",
|
|
534
|
+
"system-blue": "systemBlue",
|
|
535
|
+
"system-brown": "systemBrown",
|
|
536
|
+
"system-cyan": "systemCyan",
|
|
537
|
+
"system-green": "systemGreen",
|
|
538
|
+
"system-indigo": "systemIndigo",
|
|
539
|
+
"system-mint": "systemMint",
|
|
540
|
+
"system-orange": "systemOrange",
|
|
541
|
+
"system-pink": "systemPink",
|
|
542
|
+
"system-purple": "systemPurple",
|
|
543
|
+
"system-red": "systemRed",
|
|
544
|
+
"system-teal": "systemTeal",
|
|
545
|
+
"system-yellow": "systemYellow",
|
|
546
|
+
"system-gray": "systemGray",
|
|
547
|
+
"system-gray-2": "systemGray2",
|
|
548
|
+
"system-gray-3": "systemGray3",
|
|
549
|
+
"system-gray-4": "systemGray4",
|
|
550
|
+
"system-gray-5": "systemGray5",
|
|
551
|
+
"system-gray-6": "systemGray6"
|
|
552
|
+
};
|
|
553
|
+
const staticStyles = {
|
|
554
|
+
flex: { display: "flex" },
|
|
555
|
+
hidden: { display: "none" },
|
|
556
|
+
"flex-1": { flex: 1 },
|
|
557
|
+
"flex-row": { flexDirection: "row" },
|
|
558
|
+
"flex-col": { flexDirection: "column" },
|
|
559
|
+
"flex-wrap": { flexWrap: "wrap" },
|
|
560
|
+
"flex-nowrap": { flexWrap: "nowrap" },
|
|
561
|
+
"items-start": { alignItems: "flex-start" },
|
|
562
|
+
"items-center": { alignItems: "center" },
|
|
563
|
+
"items-end": { alignItems: "flex-end" },
|
|
564
|
+
"items-stretch": { alignItems: "stretch" },
|
|
565
|
+
"justify-start": { justifyContent: "flex-start" },
|
|
566
|
+
"justify-center": { justifyContent: "center" },
|
|
567
|
+
"justify-end": { justifyContent: "flex-end" },
|
|
568
|
+
"justify-between": { justifyContent: "space-between" },
|
|
569
|
+
"justify-around": { justifyContent: "space-around" },
|
|
570
|
+
"justify-evenly": { justifyContent: "space-evenly" },
|
|
571
|
+
"self-start": { alignSelf: "flex-start" },
|
|
572
|
+
"self-center": { alignSelf: "center" },
|
|
573
|
+
"self-end": { alignSelf: "flex-end" },
|
|
574
|
+
"self-stretch": { alignSelf: "stretch" },
|
|
575
|
+
relative: { position: "relative" },
|
|
576
|
+
absolute: { position: "absolute" },
|
|
577
|
+
"text-left": { textAlign: "left" },
|
|
578
|
+
"text-center": { textAlign: "center" },
|
|
579
|
+
"text-right": { textAlign: "right" },
|
|
580
|
+
"font-thin": { fontWeight: "100" },
|
|
581
|
+
"font-extralight": { fontWeight: "200" },
|
|
582
|
+
"font-light": { fontWeight: "300" },
|
|
583
|
+
"font-normal": { fontWeight: "400" },
|
|
584
|
+
"font-medium": { fontWeight: "500" },
|
|
585
|
+
"font-semibold": { fontWeight: "600" },
|
|
586
|
+
"font-bold": { fontWeight: "700" },
|
|
587
|
+
"font-extrabold": { fontWeight: "800" },
|
|
588
|
+
"font-black": { fontWeight: "900" },
|
|
589
|
+
italic: { fontStyle: "italic" },
|
|
590
|
+
underline: { textDecorationLine: "underline" },
|
|
591
|
+
"line-through": { textDecorationLine: "line-through" },
|
|
592
|
+
uppercase: { textTransform: "uppercase" },
|
|
593
|
+
lowercase: { textTransform: "lowercase" },
|
|
594
|
+
capitalize: { textTransform: "capitalize" },
|
|
595
|
+
border: { borderWidth: 1 },
|
|
596
|
+
"border-0": { borderWidth: 0 },
|
|
597
|
+
"border-2": { borderWidth: 2 },
|
|
598
|
+
"border-4": { borderWidth: 4 },
|
|
599
|
+
"border-8": { borderWidth: 8 },
|
|
600
|
+
"overflow-hidden": { overflow: "hidden" },
|
|
601
|
+
"overflow-visible": { overflow: "visible" }
|
|
602
|
+
};
|
|
603
|
+
function oneSide(property, value) {
|
|
604
|
+
return { [property]: value };
|
|
605
|
+
}
|
|
606
|
+
function twoSides(first, second, value) {
|
|
607
|
+
return {
|
|
608
|
+
[first]: value,
|
|
609
|
+
[second]: value
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
function fourSides(first, second, third, fourth, value) {
|
|
613
|
+
return {
|
|
614
|
+
[first]: value,
|
|
615
|
+
[second]: value,
|
|
616
|
+
[third]: value,
|
|
617
|
+
[fourth]: value
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
function createTokenStyles() {
|
|
621
|
+
const tokens = { ...staticStyles };
|
|
622
|
+
for (const [key, size] of Object.entries(spacing)) Object.assign(tokens, {
|
|
623
|
+
[`p-${key}`]: oneSide("padding", size),
|
|
624
|
+
[`px-${key}`]: twoSides("paddingLeft", "paddingRight", size),
|
|
625
|
+
[`py-${key}`]: twoSides("paddingTop", "paddingBottom", size),
|
|
626
|
+
[`pt-${key}`]: oneSide("paddingTop", size),
|
|
627
|
+
[`pr-${key}`]: oneSide("paddingRight", size),
|
|
628
|
+
[`pb-${key}`]: oneSide("paddingBottom", size),
|
|
629
|
+
[`pl-${key}`]: oneSide("paddingLeft", size),
|
|
630
|
+
[`m-${key}`]: oneSide("margin", size),
|
|
631
|
+
[`mx-${key}`]: twoSides("marginLeft", "marginRight", size),
|
|
632
|
+
[`my-${key}`]: twoSides("marginTop", "marginBottom", size),
|
|
633
|
+
[`mt-${key}`]: oneSide("marginTop", size),
|
|
634
|
+
[`mr-${key}`]: oneSide("marginRight", size),
|
|
635
|
+
[`mb-${key}`]: oneSide("marginBottom", size),
|
|
636
|
+
[`ml-${key}`]: oneSide("marginLeft", size),
|
|
637
|
+
[`gap-${key}`]: oneSide("gap", size),
|
|
638
|
+
[`w-${key}`]: oneSide("width", size),
|
|
639
|
+
[`h-${key}`]: oneSide("height", size),
|
|
640
|
+
[`max-w-${key}`]: oneSide("maxWidth", size),
|
|
641
|
+
[`max-h-${key}`]: oneSide("maxHeight", size),
|
|
642
|
+
[`inset-${key}`]: fourSides("top", "right", "bottom", "left", size),
|
|
643
|
+
[`inset-x-${key}`]: twoSides("left", "right", size),
|
|
644
|
+
[`inset-y-${key}`]: twoSides("top", "bottom", size),
|
|
645
|
+
[`top-${key}`]: oneSide("top", size),
|
|
646
|
+
[`right-${key}`]: oneSide("right", size),
|
|
647
|
+
[`bottom-${key}`]: oneSide("bottom", size),
|
|
648
|
+
[`left-${key}`]: oneSide("left", size)
|
|
649
|
+
});
|
|
650
|
+
for (const [key, maxWidth] of Object.entries(maxWidths)) tokens[`max-w-${key}`] = oneSide("maxWidth", maxWidth);
|
|
651
|
+
for (const [key, maxHeight] of Object.entries(maxHeights)) tokens[`max-h-${key}`] = oneSide("maxHeight", maxHeight);
|
|
652
|
+
tokens["w-full"] = oneSide("width", "100%");
|
|
653
|
+
tokens["h-full"] = oneSide("height", "100%");
|
|
654
|
+
tokens["max-w-full"] = oneSide("maxWidth", "100%");
|
|
655
|
+
tokens["max-h-full"] = oneSide("maxHeight", "100%");
|
|
656
|
+
for (const [key, value] of Object.entries(fractions)) {
|
|
657
|
+
tokens[`w-${key}`] = oneSide("width", value);
|
|
658
|
+
tokens[`h-${key}`] = oneSide("height", value);
|
|
659
|
+
tokens[`max-w-${key}`] = oneSide("maxWidth", value);
|
|
660
|
+
tokens[`max-h-${key}`] = oneSide("maxHeight", value);
|
|
661
|
+
}
|
|
662
|
+
for (const [key, property] of Object.entries(borderSides)) {
|
|
663
|
+
tokens[`border-${key}`] = oneSide(property, 1);
|
|
664
|
+
for (const width of borderWidths) tokens[`border-${key}-${width}`] = oneSide(property, Number(width));
|
|
665
|
+
}
|
|
666
|
+
for (const [key, rotate] of Object.entries(rotateTransforms)) {
|
|
667
|
+
tokens[`rotate-${key}`] = { transform: [{ rotate }] };
|
|
668
|
+
tokens[`-rotate-${key}`] = { transform: [{ rotate: `-${rotate}` }] };
|
|
669
|
+
}
|
|
670
|
+
for (const [key, scale] of Object.entries(scaleTransforms)) tokens[`scale-${key}`] = { transform: [{ scale }] };
|
|
671
|
+
tokens.rounded = oneSide("borderRadius", radii.DEFAULT);
|
|
672
|
+
for (const [key, radius] of Object.entries(radii)) tokens[`rounded-${key}`] = oneSide("borderRadius", radius);
|
|
673
|
+
for (const [key, style] of Object.entries(fontSizes)) tokens[`text-${key}`] = style;
|
|
674
|
+
for (const [key, letterSpacing] of Object.entries(tracking)) tokens[`tracking-${key}`] = { letterSpacing };
|
|
675
|
+
for (const [key, lineHeight] of Object.entries(lineHeights)) tokens[`leading-${key}`] = { lineHeight };
|
|
676
|
+
for (const opacity of opacityValues) tokens[`opacity-${opacity}`] = { opacity: opacity / 100 };
|
|
677
|
+
for (const [key, color] of Object.entries(paletteColors)) {
|
|
678
|
+
tokens[`bg-${key}`] = { backgroundColor: color };
|
|
679
|
+
tokens[`text-${key}`] = { color };
|
|
680
|
+
tokens[`tint-${key}`] = { tintColor: color };
|
|
681
|
+
tokens[`border-${key}`] = { borderColor: color };
|
|
682
|
+
}
|
|
683
|
+
for (const [key, name] of Object.entries(platformColors)) {
|
|
684
|
+
const color = (0, react_native.PlatformColor)(name);
|
|
685
|
+
tokens[`bg-${key}`] = { backgroundColor: color };
|
|
686
|
+
tokens[`text-${key}`] = { color };
|
|
687
|
+
tokens[`tint-${key}`] = { tintColor: color };
|
|
688
|
+
tokens[`border-${key}`] = { borderColor: color };
|
|
689
|
+
}
|
|
690
|
+
return tokens;
|
|
691
|
+
}
|
|
692
|
+
const tokenStyles = createTokenStyles();
|
|
693
|
+
function variantApplies(variant) {
|
|
694
|
+
switch (variant) {
|
|
695
|
+
case "light": return react_native.Appearance.getColorScheme() !== "dark";
|
|
696
|
+
case "dark": return react_native.Appearance.getColorScheme() === "dark";
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
function resolveVariantToken(token) {
|
|
700
|
+
const parts = token.split(":");
|
|
701
|
+
if (parts.length === 1) return token;
|
|
702
|
+
const baseToken = parts.at(-1);
|
|
703
|
+
if (!baseToken) return token;
|
|
704
|
+
for (const variant of parts.slice(0, -1)) {
|
|
705
|
+
const applies = variantApplies(variant);
|
|
706
|
+
if (applies === void 0) return token;
|
|
707
|
+
if (!applies) return;
|
|
708
|
+
}
|
|
709
|
+
return baseToken;
|
|
710
|
+
}
|
|
711
|
+
function parseToken(token) {
|
|
712
|
+
const resolvedToken = resolveVariantToken(token);
|
|
713
|
+
if (!resolvedToken) return;
|
|
714
|
+
token = resolvedToken;
|
|
715
|
+
return tokenStyles[token];
|
|
716
|
+
}
|
|
717
|
+
function pushInput(input, output) {
|
|
718
|
+
if (!input) return;
|
|
719
|
+
if (typeof input === "object") {
|
|
720
|
+
output.push(input);
|
|
721
|
+
return;
|
|
722
|
+
}
|
|
723
|
+
if (/\s/.test(input)) {
|
|
724
|
+
if (isDev) throw new Error(`Bleam style strings must contain exactly one token: ${input}`);
|
|
725
|
+
return;
|
|
726
|
+
}
|
|
727
|
+
const style = parseToken(input);
|
|
728
|
+
if (style) {
|
|
729
|
+
output.push(style);
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
732
|
+
if (isDev) throw new Error(`Unknown bleam style token: ${input}`);
|
|
733
|
+
}
|
|
734
|
+
function sx(...inputs) {
|
|
735
|
+
const output = [];
|
|
736
|
+
for (const input of inputs) pushInput(input, output);
|
|
737
|
+
return Object.assign({}, ...output);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
//#endregion
|
|
741
|
+
exports.colors = colors;
|
|
742
|
+
exports.sx = sx;
|