@kbach/react 0.5.0 → 0.5.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.
- package/KBACH.md +952 -0
- package/README.md +4 -4
- package/dist/{chunk-2BRVUJPY.mjs → chunk-XGWS3OQD.mjs} +1 -1
- package/dist/{chunk-LTYLJ4B3.mjs → chunk-XVPIJMIR.mjs} +360 -241
- package/dist/index.js +360 -241
- package/dist/index.mjs +1 -1
- package/dist/jsx-dev-runtime.js +360 -241
- package/dist/jsx-dev-runtime.mjs +2 -2
- package/dist/jsx-runtime.js +360 -241
- package/dist/jsx-runtime.mjs +2 -2
- package/package.json +6 -3
- package/scripts/postinstall.js +28 -0
package/dist/index.js
CHANGED
|
@@ -142,290 +142,312 @@ var defaultColors = {
|
|
|
142
142
|
black: "#000000",
|
|
143
143
|
white: "#ffffff",
|
|
144
144
|
slate: {
|
|
145
|
-
1: "#
|
|
146
|
-
2: "#
|
|
147
|
-
3: "#
|
|
148
|
-
4: "#
|
|
149
|
-
5: "#
|
|
150
|
-
6: "#
|
|
151
|
-
7: "#
|
|
152
|
-
8: "#
|
|
153
|
-
9: "#
|
|
154
|
-
10: "#
|
|
155
|
-
11: "#
|
|
145
|
+
1: "#f8fafc",
|
|
146
|
+
2: "#f1f5f9",
|
|
147
|
+
3: "#e2e8f0",
|
|
148
|
+
4: "#cbd5e1",
|
|
149
|
+
5: "#94a3b8",
|
|
150
|
+
6: "#64748b",
|
|
151
|
+
7: "#475569",
|
|
152
|
+
8: "#334155",
|
|
153
|
+
9: "#1e293b",
|
|
154
|
+
10: "#0f172a",
|
|
155
|
+
11: "#020617",
|
|
156
|
+
12: "#01020a"
|
|
156
157
|
},
|
|
157
158
|
gray: {
|
|
158
|
-
1: "#
|
|
159
|
-
2: "#
|
|
160
|
-
3: "#
|
|
161
|
-
4: "#
|
|
162
|
-
5: "#
|
|
163
|
-
6: "#
|
|
164
|
-
7: "#
|
|
165
|
-
8: "#
|
|
166
|
-
9: "#
|
|
167
|
-
10: "#
|
|
168
|
-
11: "#
|
|
159
|
+
1: "#f9fafb",
|
|
160
|
+
2: "#f3f4f6",
|
|
161
|
+
3: "#e5e7eb",
|
|
162
|
+
4: "#d1d5db",
|
|
163
|
+
5: "#9ca3af",
|
|
164
|
+
6: "#6b7280",
|
|
165
|
+
7: "#4b5563",
|
|
166
|
+
8: "#374151",
|
|
167
|
+
9: "#1f2937",
|
|
168
|
+
10: "#111827",
|
|
169
|
+
11: "#030712",
|
|
170
|
+
12: "#020409"
|
|
169
171
|
},
|
|
170
172
|
zinc: {
|
|
171
173
|
1: "#fafafa",
|
|
172
174
|
2: "#f4f4f5",
|
|
173
|
-
3: "#
|
|
174
|
-
4: "#
|
|
175
|
-
5: "#
|
|
176
|
-
6: "#
|
|
177
|
-
7: "#
|
|
178
|
-
8: "#
|
|
179
|
-
9: "#
|
|
180
|
-
10: "#
|
|
181
|
-
11: "#
|
|
175
|
+
3: "#e4e4e7",
|
|
176
|
+
4: "#d4d4d8",
|
|
177
|
+
5: "#a1a1aa",
|
|
178
|
+
6: "#71717a",
|
|
179
|
+
7: "#52525b",
|
|
180
|
+
8: "#3f3f46",
|
|
181
|
+
9: "#27272a",
|
|
182
|
+
10: "#18181b",
|
|
183
|
+
11: "#09090b",
|
|
184
|
+
12: "#050506"
|
|
182
185
|
},
|
|
183
186
|
neutral: {
|
|
184
187
|
1: "#fafafa",
|
|
185
188
|
2: "#f5f5f5",
|
|
186
|
-
3: "#
|
|
187
|
-
4: "#
|
|
188
|
-
5: "#
|
|
189
|
-
6: "#
|
|
190
|
-
7: "#
|
|
191
|
-
8: "#
|
|
192
|
-
9: "#
|
|
193
|
-
10: "#
|
|
194
|
-
11: "#
|
|
189
|
+
3: "#e5e5e5",
|
|
190
|
+
4: "#d4d4d4",
|
|
191
|
+
5: "#a3a3a3",
|
|
192
|
+
6: "#737373",
|
|
193
|
+
7: "#525252",
|
|
194
|
+
8: "#404040",
|
|
195
|
+
9: "#262626",
|
|
196
|
+
10: "#171717",
|
|
197
|
+
11: "#0a0a0a",
|
|
198
|
+
12: "#050505"
|
|
195
199
|
},
|
|
196
200
|
stone: {
|
|
197
|
-
1: "#
|
|
198
|
-
2: "#
|
|
199
|
-
3: "#
|
|
200
|
-
4: "#
|
|
201
|
-
5: "#
|
|
202
|
-
6: "#
|
|
203
|
-
7: "#
|
|
204
|
-
8: "#
|
|
205
|
-
9: "#
|
|
206
|
-
10: "#
|
|
207
|
-
11: "#
|
|
201
|
+
1: "#fafaf9",
|
|
202
|
+
2: "#f5f5f4",
|
|
203
|
+
3: "#e7e5e4",
|
|
204
|
+
4: "#d6d3d1",
|
|
205
|
+
5: "#a8a29e",
|
|
206
|
+
6: "#78716c",
|
|
207
|
+
7: "#57534e",
|
|
208
|
+
8: "#44403c",
|
|
209
|
+
9: "#292524",
|
|
210
|
+
10: "#1c1917",
|
|
211
|
+
11: "#0c0a09",
|
|
212
|
+
12: "#070605"
|
|
208
213
|
},
|
|
209
214
|
red: {
|
|
210
|
-
1: "#
|
|
211
|
-
2: "#
|
|
212
|
-
3: "#
|
|
213
|
-
4: "#
|
|
214
|
-
5: "#
|
|
215
|
-
6: "#
|
|
216
|
-
7: "#
|
|
217
|
-
8: "#
|
|
218
|
-
9: "#
|
|
219
|
-
10: "#
|
|
220
|
-
11: "#
|
|
215
|
+
1: "#fef2f2",
|
|
216
|
+
2: "#fee2e2",
|
|
217
|
+
3: "#fecaca",
|
|
218
|
+
4: "#fca5a5",
|
|
219
|
+
5: "#f87171",
|
|
220
|
+
6: "#ef4444",
|
|
221
|
+
7: "#dc2626",
|
|
222
|
+
8: "#b91c1c",
|
|
223
|
+
9: "#991b1b",
|
|
224
|
+
10: "#7f1d1d",
|
|
225
|
+
11: "#450a0a",
|
|
226
|
+
12: "#280606"
|
|
221
227
|
},
|
|
222
228
|
orange: {
|
|
223
|
-
1: "#
|
|
224
|
-
2: "#
|
|
225
|
-
3: "#
|
|
226
|
-
4: "#
|
|
227
|
-
5: "#
|
|
228
|
-
6: "#
|
|
229
|
-
7: "#
|
|
230
|
-
8: "#
|
|
231
|
-
9: "#
|
|
232
|
-
10: "#
|
|
233
|
-
11: "#
|
|
229
|
+
1: "#fff7ed",
|
|
230
|
+
2: "#ffedd5",
|
|
231
|
+
3: "#fed7aa",
|
|
232
|
+
4: "#fdba74",
|
|
233
|
+
5: "#fb923c",
|
|
234
|
+
6: "#f97316",
|
|
235
|
+
7: "#ea580c",
|
|
236
|
+
8: "#c2410c",
|
|
237
|
+
9: "#9a3412",
|
|
238
|
+
10: "#7c2d12",
|
|
239
|
+
11: "#431407",
|
|
240
|
+
12: "#270c04"
|
|
234
241
|
},
|
|
235
242
|
amber: {
|
|
236
|
-
1: "#
|
|
237
|
-
2: "#
|
|
238
|
-
3: "#
|
|
239
|
-
4: "#
|
|
240
|
-
5: "#
|
|
241
|
-
6: "#
|
|
242
|
-
7: "#
|
|
243
|
-
8: "#
|
|
244
|
-
9: "#
|
|
245
|
-
10: "#
|
|
246
|
-
11: "#
|
|
243
|
+
1: "#fffbeb",
|
|
244
|
+
2: "#fef3c7",
|
|
245
|
+
3: "#fde68a",
|
|
246
|
+
4: "#fcd34d",
|
|
247
|
+
5: "#fbbf24",
|
|
248
|
+
6: "#f59e0b",
|
|
249
|
+
7: "#d97706",
|
|
250
|
+
8: "#b45309",
|
|
251
|
+
9: "#92400e",
|
|
252
|
+
10: "#78350f",
|
|
253
|
+
11: "#451a03",
|
|
254
|
+
12: "#291002"
|
|
247
255
|
},
|
|
248
256
|
yellow: {
|
|
249
|
-
1: "#
|
|
250
|
-
2: "#
|
|
251
|
-
3: "#
|
|
252
|
-
4: "#
|
|
253
|
-
5: "#
|
|
254
|
-
6: "#
|
|
255
|
-
7: "#
|
|
256
|
-
8: "#
|
|
257
|
-
9: "#
|
|
258
|
-
10: "#
|
|
259
|
-
11: "#
|
|
257
|
+
1: "#fefce8",
|
|
258
|
+
2: "#fef9c3",
|
|
259
|
+
3: "#fef08a",
|
|
260
|
+
4: "#fde047",
|
|
261
|
+
5: "#facc15",
|
|
262
|
+
6: "#eab308",
|
|
263
|
+
7: "#ca8a04",
|
|
264
|
+
8: "#a16207",
|
|
265
|
+
9: "#854d0e",
|
|
266
|
+
10: "#713f12",
|
|
267
|
+
11: "#422006",
|
|
268
|
+
12: "#271304"
|
|
260
269
|
},
|
|
261
270
|
lime: {
|
|
262
|
-
1: "#
|
|
263
|
-
2: "#
|
|
264
|
-
3: "#
|
|
265
|
-
4: "#
|
|
266
|
-
5: "#
|
|
267
|
-
6: "#
|
|
268
|
-
7: "#
|
|
269
|
-
8: "#
|
|
270
|
-
9: "#
|
|
271
|
-
10: "#
|
|
272
|
-
11: "#
|
|
271
|
+
1: "#f7fee7",
|
|
272
|
+
2: "#ecfccb",
|
|
273
|
+
3: "#d9f99d",
|
|
274
|
+
4: "#bef264",
|
|
275
|
+
5: "#a3e635",
|
|
276
|
+
6: "#84cc16",
|
|
277
|
+
7: "#65a30d",
|
|
278
|
+
8: "#4d7c0f",
|
|
279
|
+
9: "#3f6212",
|
|
280
|
+
10: "#365314",
|
|
281
|
+
11: "#1a2e05",
|
|
282
|
+
12: "#0f1b03"
|
|
273
283
|
},
|
|
274
284
|
green: {
|
|
275
|
-
1: "#
|
|
276
|
-
2: "#
|
|
277
|
-
3: "#
|
|
278
|
-
4: "#
|
|
279
|
-
5: "#
|
|
280
|
-
6: "#
|
|
281
|
-
7: "#
|
|
282
|
-
8: "#
|
|
283
|
-
9: "#
|
|
284
|
-
10: "#
|
|
285
|
-
11: "#
|
|
285
|
+
1: "#f0fdf4",
|
|
286
|
+
2: "#dcfce7",
|
|
287
|
+
3: "#bbf7d0",
|
|
288
|
+
4: "#86efac",
|
|
289
|
+
5: "#4ade80",
|
|
290
|
+
6: "#22c55e",
|
|
291
|
+
7: "#16a34a",
|
|
292
|
+
8: "#15803d",
|
|
293
|
+
9: "#166534",
|
|
294
|
+
10: "#14532d",
|
|
295
|
+
11: "#052e16",
|
|
296
|
+
12: "#031b0d"
|
|
286
297
|
},
|
|
287
298
|
emerald: {
|
|
288
|
-
1: "#
|
|
289
|
-
2: "#
|
|
290
|
-
3: "#
|
|
291
|
-
4: "#
|
|
292
|
-
5: "#
|
|
293
|
-
6: "#
|
|
294
|
-
7: "#
|
|
295
|
-
8: "#
|
|
296
|
-
9: "#
|
|
297
|
-
10: "#
|
|
298
|
-
11: "#
|
|
299
|
+
1: "#ecfdf5",
|
|
300
|
+
2: "#d1fae5",
|
|
301
|
+
3: "#a7f3d0",
|
|
302
|
+
4: "#6ee7b7",
|
|
303
|
+
5: "#34d399",
|
|
304
|
+
6: "#10b981",
|
|
305
|
+
7: "#059669",
|
|
306
|
+
8: "#047857",
|
|
307
|
+
9: "#065f46",
|
|
308
|
+
10: "#064e3b",
|
|
309
|
+
11: "#022c22",
|
|
310
|
+
12: "#011a14"
|
|
299
311
|
},
|
|
300
312
|
teal: {
|
|
301
|
-
1: "#
|
|
302
|
-
2: "#
|
|
303
|
-
3: "#
|
|
304
|
-
4: "#
|
|
305
|
-
5: "#
|
|
306
|
-
6: "#
|
|
307
|
-
7: "#
|
|
308
|
-
8: "#
|
|
309
|
-
9: "#
|
|
310
|
-
10: "#
|
|
311
|
-
11: "#
|
|
313
|
+
1: "#f0fdfa",
|
|
314
|
+
2: "#ccfbf1",
|
|
315
|
+
3: "#99f6e4",
|
|
316
|
+
4: "#5eead4",
|
|
317
|
+
5: "#2dd4bf",
|
|
318
|
+
6: "#14b8a6",
|
|
319
|
+
7: "#0d9488",
|
|
320
|
+
8: "#0f766e",
|
|
321
|
+
9: "#115e59",
|
|
322
|
+
10: "#134e4a",
|
|
323
|
+
11: "#042f2e",
|
|
324
|
+
12: "#021c1b"
|
|
312
325
|
},
|
|
313
326
|
cyan: {
|
|
314
327
|
1: "#ecfeff",
|
|
315
|
-
2: "#
|
|
316
|
-
3: "#
|
|
317
|
-
4: "#
|
|
318
|
-
5: "#
|
|
319
|
-
6: "#
|
|
320
|
-
7: "#
|
|
321
|
-
8: "#
|
|
322
|
-
9: "#
|
|
323
|
-
10: "#
|
|
324
|
-
11: "#
|
|
328
|
+
2: "#cffafe",
|
|
329
|
+
3: "#a5f3fc",
|
|
330
|
+
4: "#67e8f9",
|
|
331
|
+
5: "#22d3ee",
|
|
332
|
+
6: "#06b6d4",
|
|
333
|
+
7: "#0891b2",
|
|
334
|
+
8: "#0e7490",
|
|
335
|
+
9: "#155e75",
|
|
336
|
+
10: "#164e63",
|
|
337
|
+
11: "#083344",
|
|
338
|
+
12: "#041e28"
|
|
325
339
|
},
|
|
326
340
|
sky: {
|
|
327
|
-
1: "#
|
|
341
|
+
1: "#f0f9ff",
|
|
328
342
|
2: "#e0f2fe",
|
|
329
|
-
3: "#
|
|
330
|
-
4: "#
|
|
331
|
-
5: "#
|
|
332
|
-
6: "#
|
|
333
|
-
7: "#
|
|
334
|
-
8: "#
|
|
335
|
-
9: "#
|
|
336
|
-
10: "#
|
|
337
|
-
11: "#
|
|
343
|
+
3: "#bae6fd",
|
|
344
|
+
4: "#7dd3fc",
|
|
345
|
+
5: "#38bdf8",
|
|
346
|
+
6: "#0ea5e9",
|
|
347
|
+
7: "#0284c7",
|
|
348
|
+
8: "#0369a1",
|
|
349
|
+
9: "#075985",
|
|
350
|
+
10: "#0c4a6e",
|
|
351
|
+
11: "#082f49",
|
|
352
|
+
12: "#041b2b"
|
|
338
353
|
},
|
|
339
354
|
blue: {
|
|
340
|
-
1: "#
|
|
341
|
-
2: "#
|
|
342
|
-
3: "#
|
|
343
|
-
4: "#
|
|
344
|
-
5: "#
|
|
345
|
-
6: "#
|
|
346
|
-
7: "#
|
|
347
|
-
8: "#
|
|
348
|
-
9: "#
|
|
349
|
-
10: "#
|
|
350
|
-
11: "#
|
|
355
|
+
1: "#eff6ff",
|
|
356
|
+
2: "#dbeafe",
|
|
357
|
+
3: "#bfdbfe",
|
|
358
|
+
4: "#93c5fd",
|
|
359
|
+
5: "#60a5fa",
|
|
360
|
+
6: "#3b82f6",
|
|
361
|
+
7: "#2563eb",
|
|
362
|
+
8: "#1d4ed8",
|
|
363
|
+
9: "#1e40af",
|
|
364
|
+
10: "#1e3a8a",
|
|
365
|
+
11: "#172554",
|
|
366
|
+
12: "#0d1633"
|
|
351
367
|
},
|
|
352
368
|
indigo: {
|
|
353
|
-
1: "#
|
|
354
|
-
2: "#
|
|
355
|
-
3: "#
|
|
356
|
-
4: "#
|
|
357
|
-
5: "#
|
|
358
|
-
6: "#
|
|
359
|
-
7: "#
|
|
360
|
-
8: "#
|
|
361
|
-
9: "#
|
|
362
|
-
10: "#
|
|
363
|
-
11: "#
|
|
369
|
+
1: "#eef2ff",
|
|
370
|
+
2: "#e0e7ff",
|
|
371
|
+
3: "#c7d2fe",
|
|
372
|
+
4: "#a5b4fc",
|
|
373
|
+
5: "#818cf8",
|
|
374
|
+
6: "#6366f1",
|
|
375
|
+
7: "#4f46e5",
|
|
376
|
+
8: "#4338ca",
|
|
377
|
+
9: "#3730a3",
|
|
378
|
+
10: "#312e81",
|
|
379
|
+
11: "#1e1b4b",
|
|
380
|
+
12: "#12102d"
|
|
364
381
|
},
|
|
365
382
|
violet: {
|
|
366
383
|
1: "#f5f3ff",
|
|
367
|
-
2: "#
|
|
368
|
-
3: "#
|
|
369
|
-
4: "#
|
|
370
|
-
5: "#
|
|
371
|
-
6: "#
|
|
372
|
-
7: "#
|
|
373
|
-
8: "#
|
|
374
|
-
9: "#
|
|
375
|
-
10: "#
|
|
376
|
-
11: "#
|
|
384
|
+
2: "#ede9fe",
|
|
385
|
+
3: "#ddd6fe",
|
|
386
|
+
4: "#c4b5fd",
|
|
387
|
+
5: "#a78bfa",
|
|
388
|
+
6: "#8b5cf6",
|
|
389
|
+
7: "#7c3aed",
|
|
390
|
+
8: "#6d28d9",
|
|
391
|
+
9: "#5b21b6",
|
|
392
|
+
10: "#4c1d95",
|
|
393
|
+
11: "#2e1065",
|
|
394
|
+
12: "#1c0a3d"
|
|
377
395
|
},
|
|
378
396
|
purple: {
|
|
379
|
-
1: "#
|
|
380
|
-
2: "#
|
|
381
|
-
3: "#
|
|
382
|
-
4: "#
|
|
383
|
-
5: "#
|
|
384
|
-
6: "#
|
|
385
|
-
7: "#
|
|
386
|
-
8: "#
|
|
387
|
-
9: "#
|
|
388
|
-
10: "#
|
|
389
|
-
11: "#
|
|
397
|
+
1: "#faf5ff",
|
|
398
|
+
2: "#f3e8ff",
|
|
399
|
+
3: "#e9d5ff",
|
|
400
|
+
4: "#d8b4fe",
|
|
401
|
+
5: "#c084fc",
|
|
402
|
+
6: "#a855f7",
|
|
403
|
+
7: "#9333ea",
|
|
404
|
+
8: "#7e22ce",
|
|
405
|
+
9: "#6b21a8",
|
|
406
|
+
10: "#581c87",
|
|
407
|
+
11: "#3b0764",
|
|
408
|
+
12: "#23043c"
|
|
390
409
|
},
|
|
391
410
|
fuchsia: {
|
|
392
|
-
1: "#
|
|
393
|
-
2: "#
|
|
394
|
-
3: "#
|
|
395
|
-
4: "#
|
|
396
|
-
5: "#
|
|
397
|
-
6: "#
|
|
398
|
-
7: "#
|
|
399
|
-
8: "#
|
|
400
|
-
9: "#
|
|
401
|
-
10: "#
|
|
402
|
-
11: "#
|
|
411
|
+
1: "#fdf4ff",
|
|
412
|
+
2: "#fae8ff",
|
|
413
|
+
3: "#f5d0fe",
|
|
414
|
+
4: "#f0abfc",
|
|
415
|
+
5: "#e879f9",
|
|
416
|
+
6: "#d946ef",
|
|
417
|
+
7: "#c026d3",
|
|
418
|
+
8: "#a21caf",
|
|
419
|
+
9: "#86198f",
|
|
420
|
+
10: "#701a75",
|
|
421
|
+
11: "#4a044e",
|
|
422
|
+
12: "#2d022f"
|
|
403
423
|
},
|
|
404
424
|
pink: {
|
|
405
|
-
1: "#
|
|
406
|
-
2: "#
|
|
407
|
-
3: "#
|
|
408
|
-
4: "#
|
|
409
|
-
5: "#
|
|
410
|
-
6: "#
|
|
411
|
-
7: "#
|
|
412
|
-
8: "#
|
|
413
|
-
9: "#
|
|
414
|
-
10: "#
|
|
415
|
-
11: "#
|
|
425
|
+
1: "#fdf2f8",
|
|
426
|
+
2: "#fce7f3",
|
|
427
|
+
3: "#fbcfe8",
|
|
428
|
+
4: "#f9a8d4",
|
|
429
|
+
5: "#f472b6",
|
|
430
|
+
6: "#ec4899",
|
|
431
|
+
7: "#db2777",
|
|
432
|
+
8: "#be185d",
|
|
433
|
+
9: "#9d174d",
|
|
434
|
+
10: "#831843",
|
|
435
|
+
11: "#500724",
|
|
436
|
+
12: "#300415"
|
|
416
437
|
},
|
|
417
438
|
rose: {
|
|
418
|
-
1: "#
|
|
419
|
-
2: "#
|
|
420
|
-
3: "#
|
|
421
|
-
4: "#
|
|
422
|
-
5: "#
|
|
423
|
-
6: "#
|
|
424
|
-
7: "#
|
|
425
|
-
8: "#
|
|
426
|
-
9: "#
|
|
427
|
-
10: "#
|
|
428
|
-
11: "#
|
|
439
|
+
1: "#fff1f2",
|
|
440
|
+
2: "#ffe4e6",
|
|
441
|
+
3: "#fecdd3",
|
|
442
|
+
4: "#fda4af",
|
|
443
|
+
5: "#fb7185",
|
|
444
|
+
6: "#f43f5e",
|
|
445
|
+
7: "#e11d48",
|
|
446
|
+
8: "#be123c",
|
|
447
|
+
9: "#9f1239",
|
|
448
|
+
10: "#881337",
|
|
449
|
+
11: "#4c0519",
|
|
450
|
+
12: "#2d030e"
|
|
429
451
|
}
|
|
430
452
|
};
|
|
431
453
|
var defaultTheme = {
|
|
@@ -637,8 +659,8 @@ var defaultTheme = {
|
|
|
637
659
|
}
|
|
638
660
|
},
|
|
639
661
|
screens: {
|
|
640
|
-
sm:
|
|
641
|
-
//
|
|
662
|
+
sm: 576,
|
|
663
|
+
// small tablets / large phones (landscape)
|
|
642
664
|
md: 768,
|
|
643
665
|
// tablets (iPad and up)
|
|
644
666
|
lg: 1024,
|
|
@@ -756,7 +778,18 @@ var MODIFIERS = /* @__PURE__ */ new Set([
|
|
|
756
778
|
"first-line",
|
|
757
779
|
"marker",
|
|
758
780
|
// Print media modifier
|
|
759
|
-
"print"
|
|
781
|
+
"print",
|
|
782
|
+
// Orientation media modifiers (CSS-injection only)
|
|
783
|
+
"landscape",
|
|
784
|
+
"portrait",
|
|
785
|
+
// Accessibility media modifiers (CSS-injection only)
|
|
786
|
+
"motion-reduce",
|
|
787
|
+
"motion-safe",
|
|
788
|
+
"contrast-more",
|
|
789
|
+
"contrast-less",
|
|
790
|
+
// Directionality modifiers (CSS-injection only)
|
|
791
|
+
"rtl",
|
|
792
|
+
"ltr"
|
|
760
793
|
]);
|
|
761
794
|
var UTILITY_PREFIXES = [
|
|
762
795
|
// Multi-word flex
|
|
@@ -933,6 +966,7 @@ var UTILITY_PREFIXES = [
|
|
|
933
966
|
"outline-offset",
|
|
934
967
|
"will-change",
|
|
935
968
|
"mix-blend",
|
|
969
|
+
"bg-blend",
|
|
936
970
|
"decoration",
|
|
937
971
|
"perspective",
|
|
938
972
|
"tint",
|
|
@@ -955,6 +989,8 @@ var UTILITY_PREFIXES = [
|
|
|
955
989
|
"capitalize",
|
|
956
990
|
"normal-case",
|
|
957
991
|
"antialiased",
|
|
992
|
+
"subpixel-antialiased",
|
|
993
|
+
"overflow-ellipsis",
|
|
958
994
|
"truncate",
|
|
959
995
|
"sr-only",
|
|
960
996
|
"not-sr-only",
|
|
@@ -1281,6 +1317,20 @@ var STANDALONE_UTILITIES = /* @__PURE__ */ new Set([
|
|
|
1281
1317
|
"max-h-screen",
|
|
1282
1318
|
"min-w-screen",
|
|
1283
1319
|
"max-w-screen",
|
|
1320
|
+
// max-w named container sizes (Tailwind compat)
|
|
1321
|
+
"max-w-none",
|
|
1322
|
+
"max-w-xs",
|
|
1323
|
+
"max-w-sm",
|
|
1324
|
+
"max-w-md",
|
|
1325
|
+
"max-w-lg",
|
|
1326
|
+
"max-w-xl",
|
|
1327
|
+
"max-w-2xl",
|
|
1328
|
+
"max-w-3xl",
|
|
1329
|
+
"max-w-4xl",
|
|
1330
|
+
"max-w-5xl",
|
|
1331
|
+
"max-w-6xl",
|
|
1332
|
+
"max-w-7xl",
|
|
1333
|
+
"max-w-prose",
|
|
1284
1334
|
// Extended cursors (web-only)
|
|
1285
1335
|
"cursor-grab",
|
|
1286
1336
|
"cursor-grabbing",
|
|
@@ -1670,6 +1720,8 @@ var STANDALONE = {
|
|
|
1670
1720
|
"resize-y": isWeb ? { resize: "vertical" } : null,
|
|
1671
1721
|
"resize-x": isWeb ? { resize: "horizontal" } : null,
|
|
1672
1722
|
antialiased: isWeb ? { WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale" } : null,
|
|
1723
|
+
"subpixel-antialiased": isWeb ? { WebkitFontSmoothing: "subpixel-antialiased", MozOsxFontSmoothing: "auto" } : null,
|
|
1724
|
+
"overflow-ellipsis": isWeb ? { textOverflow: "ellipsis" } : null,
|
|
1673
1725
|
"sr-only": isWeb ? {
|
|
1674
1726
|
position: "absolute",
|
|
1675
1727
|
width: 1,
|
|
@@ -1784,6 +1836,20 @@ var STANDALONE = {
|
|
|
1784
1836
|
"max-h-screen": { maxHeight: "100vh" },
|
|
1785
1837
|
"min-w-screen": isWeb ? { minWidth: "100vw" } : null,
|
|
1786
1838
|
"max-w-screen": isWeb ? { maxWidth: "100vw" } : null,
|
|
1839
|
+
// max-w named container sizes (mirrors Tailwind's container scale)
|
|
1840
|
+
"max-w-none": { maxWidth: "none" },
|
|
1841
|
+
"max-w-xs": { maxWidth: 320 },
|
|
1842
|
+
"max-w-sm": { maxWidth: 384 },
|
|
1843
|
+
"max-w-md": { maxWidth: 448 },
|
|
1844
|
+
"max-w-lg": { maxWidth: 512 },
|
|
1845
|
+
"max-w-xl": { maxWidth: 576 },
|
|
1846
|
+
"max-w-2xl": { maxWidth: 672 },
|
|
1847
|
+
"max-w-3xl": { maxWidth: 768 },
|
|
1848
|
+
"max-w-4xl": { maxWidth: 896 },
|
|
1849
|
+
"max-w-5xl": { maxWidth: 1024 },
|
|
1850
|
+
"max-w-6xl": { maxWidth: 1152 },
|
|
1851
|
+
"max-w-7xl": { maxWidth: 1280 },
|
|
1852
|
+
"max-w-prose": isWeb ? { maxWidth: "65ch" } : null,
|
|
1787
1853
|
// Extended cursors (web-only)
|
|
1788
1854
|
"cursor-grab": isWeb ? { cursor: "grab" } : null,
|
|
1789
1855
|
"cursor-grabbing": isWeb ? { cursor: "grabbing" } : null,
|
|
@@ -2523,7 +2589,7 @@ var RESOLVERS = {
|
|
|
2523
2589
|
};
|
|
2524
2590
|
return widths[value] ? { columnWidth: widths[value] } : null;
|
|
2525
2591
|
},
|
|
2526
|
-
// ── Mix blend mode (web-only)
|
|
2592
|
+
// ── Mix / background blend mode (web-only) ───────────────────────────────
|
|
2527
2593
|
"mix-blend": ({ value }) => {
|
|
2528
2594
|
if (!isWeb) return null;
|
|
2529
2595
|
const modes = [
|
|
@@ -2547,6 +2613,28 @@ var RESOLVERS = {
|
|
|
2547
2613
|
];
|
|
2548
2614
|
return modes.includes(value) ? { mixBlendMode: value } : null;
|
|
2549
2615
|
},
|
|
2616
|
+
"bg-blend": ({ value }) => {
|
|
2617
|
+
if (!isWeb) return null;
|
|
2618
|
+
const modes = [
|
|
2619
|
+
"normal",
|
|
2620
|
+
"multiply",
|
|
2621
|
+
"screen",
|
|
2622
|
+
"overlay",
|
|
2623
|
+
"darken",
|
|
2624
|
+
"lighten",
|
|
2625
|
+
"color-dodge",
|
|
2626
|
+
"color-burn",
|
|
2627
|
+
"hard-light",
|
|
2628
|
+
"soft-light",
|
|
2629
|
+
"difference",
|
|
2630
|
+
"exclusion",
|
|
2631
|
+
"hue",
|
|
2632
|
+
"saturation",
|
|
2633
|
+
"color",
|
|
2634
|
+
"luminosity"
|
|
2635
|
+
];
|
|
2636
|
+
return modes.includes(value) ? { backgroundBlendMode: value } : null;
|
|
2637
|
+
},
|
|
2550
2638
|
// ── Will-change (web-only) ─────────────────────────────────────────────────
|
|
2551
2639
|
"will-change": ({ value, isArbitrary }) => {
|
|
2552
2640
|
if (!isWeb) return null;
|
|
@@ -3087,6 +3175,18 @@ var GROUP_PEER_PREFIX = {
|
|
|
3087
3175
|
var MODE_MODS = /* @__PURE__ */ new Set(["dark", "light", "not-dark", "not-light"]);
|
|
3088
3176
|
var RESPONSIVE_MODS = /* @__PURE__ */ new Set(["sm", "md", "lg", "xl", "2xl"]);
|
|
3089
3177
|
var PRINT_MODS = /* @__PURE__ */ new Set(["print"]);
|
|
3178
|
+
var MEDIA_MODS = {
|
|
3179
|
+
landscape: "(orientation: landscape)",
|
|
3180
|
+
portrait: "(orientation: portrait)",
|
|
3181
|
+
"motion-reduce": "(prefers-reduced-motion: reduce)",
|
|
3182
|
+
"motion-safe": "(prefers-reduced-motion: no-preference)",
|
|
3183
|
+
"contrast-more": "(prefers-contrast: more)",
|
|
3184
|
+
"contrast-less": "(prefers-contrast: less)"
|
|
3185
|
+
};
|
|
3186
|
+
var DIR_MODS = {
|
|
3187
|
+
rtl: '[dir="rtl"]',
|
|
3188
|
+
ltr: '[dir="ltr"]'
|
|
3189
|
+
};
|
|
3090
3190
|
function buildDivideDecls(styles) {
|
|
3091
3191
|
const parts = [];
|
|
3092
3192
|
if ("__divideX" in styles) {
|
|
@@ -3122,12 +3222,17 @@ function injectClassRule(cls, bucketKey, styles, darkMode, important = false) {
|
|
|
3122
3222
|
const hasDark = nonResponsiveMods.includes("dark") || nonResponsiveMods.includes("not-light");
|
|
3123
3223
|
const hasLight = nonResponsiveMods.includes("light") || nonResponsiveMods.includes("not-dark");
|
|
3124
3224
|
const hasPrint = nonResponsiveMods.includes("print");
|
|
3225
|
+
const mediaMods = nonResponsiveMods.filter((m) => m in MEDIA_MODS);
|
|
3226
|
+
const dirMods = nonResponsiveMods.filter((m) => m in DIR_MODS);
|
|
3125
3227
|
const ancestorMods = nonResponsiveMods.filter((m) => m in GROUP_PEER_PREFIX);
|
|
3126
|
-
const pseudoMods = nonResponsiveMods.filter(
|
|
3228
|
+
const pseudoMods = nonResponsiveMods.filter(
|
|
3229
|
+
(m) => !MODE_MODS.has(m) && !(m in GROUP_PEER_PREFIX) && !PRINT_MODS.has(m) && !(m in MEDIA_MODS) && !(m in DIR_MODS)
|
|
3230
|
+
);
|
|
3127
3231
|
const pseudoSuffix = pseudoMods.map((p) => MODIFIER_TO_PSEUDO[p] ?? `:${p}`).join("");
|
|
3128
3232
|
const elementSelector = `.${escaped}${pseudoSuffix}${childSuffix}`;
|
|
3129
3233
|
const ancestorPrefix = ancestorMods.length ? ancestorMods.map((m) => GROUP_PEER_PREFIX[m]).join(" ") + " " : "";
|
|
3130
|
-
const
|
|
3234
|
+
const dirPrefix = dirMods.length ? dirMods.map((m) => DIR_MODS[m]).join(" ") + " " : "";
|
|
3235
|
+
const selector = `${dirPrefix}${ancestorPrefix}${elementSelector}`;
|
|
3131
3236
|
let rule;
|
|
3132
3237
|
if (hasDark) {
|
|
3133
3238
|
if (darkMode === "media") {
|
|
@@ -3151,6 +3256,9 @@ function injectClassRule(cls, bucketKey, styles, darkMode, important = false) {
|
|
|
3151
3256
|
if (hasPrint) {
|
|
3152
3257
|
rule = `@media print { ${rule} }`;
|
|
3153
3258
|
}
|
|
3259
|
+
for (const m of mediaMods) {
|
|
3260
|
+
rule = `@media ${MEDIA_MODS[m]} { ${rule} }`;
|
|
3261
|
+
}
|
|
3154
3262
|
if (responsiveMods.length > 0) {
|
|
3155
3263
|
const screens = getGlobalScreens();
|
|
3156
3264
|
const minWidth = Math.max(...responsiveMods.map((m) => screens[m] ?? 0));
|
|
@@ -3301,6 +3409,17 @@ function matchesMods(mods, isDark, state, breakpoints) {
|
|
|
3301
3409
|
case "xl":
|
|
3302
3410
|
case "2xl":
|
|
3303
3411
|
return breakpoints.has(mod);
|
|
3412
|
+
// CSS-only modifiers — never applied as inline styles
|
|
3413
|
+
case "print":
|
|
3414
|
+
case "landscape":
|
|
3415
|
+
case "portrait":
|
|
3416
|
+
case "motion-reduce":
|
|
3417
|
+
case "motion-safe":
|
|
3418
|
+
case "contrast-more":
|
|
3419
|
+
case "contrast-less":
|
|
3420
|
+
case "rtl":
|
|
3421
|
+
case "ltr":
|
|
3422
|
+
return false;
|
|
3304
3423
|
default:
|
|
3305
3424
|
return false;
|
|
3306
3425
|
}
|