@kbach/react 0.5.1 → 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 +3 -3
- package/dist/{chunk-EBISJEHP.mjs → chunk-XGWS3OQD.mjs} +1 -1
- package/dist/{chunk-M3LZVDYD.mjs → chunk-XVPIJMIR.mjs} +358 -239
- package/dist/index.js +358 -239
- package/dist/index.mjs +1 -1
- package/dist/jsx-dev-runtime.js +358 -239
- package/dist/jsx-dev-runtime.mjs +2 -2
- package/dist/jsx-runtime.js +358 -239
- package/dist/jsx-runtime.mjs +2 -2
- package/package.json +6 -3
- package/scripts/postinstall.js +28 -0
package/dist/jsx-runtime.js
CHANGED
|
@@ -44,290 +44,312 @@ var defaultColors = {
|
|
|
44
44
|
black: "#000000",
|
|
45
45
|
white: "#ffffff",
|
|
46
46
|
slate: {
|
|
47
|
-
1: "#
|
|
48
|
-
2: "#
|
|
49
|
-
3: "#
|
|
50
|
-
4: "#
|
|
51
|
-
5: "#
|
|
52
|
-
6: "#
|
|
53
|
-
7: "#
|
|
54
|
-
8: "#
|
|
55
|
-
9: "#
|
|
56
|
-
10: "#
|
|
57
|
-
11: "#
|
|
47
|
+
1: "#f8fafc",
|
|
48
|
+
2: "#f1f5f9",
|
|
49
|
+
3: "#e2e8f0",
|
|
50
|
+
4: "#cbd5e1",
|
|
51
|
+
5: "#94a3b8",
|
|
52
|
+
6: "#64748b",
|
|
53
|
+
7: "#475569",
|
|
54
|
+
8: "#334155",
|
|
55
|
+
9: "#1e293b",
|
|
56
|
+
10: "#0f172a",
|
|
57
|
+
11: "#020617",
|
|
58
|
+
12: "#01020a"
|
|
58
59
|
},
|
|
59
60
|
gray: {
|
|
60
|
-
1: "#
|
|
61
|
-
2: "#
|
|
62
|
-
3: "#
|
|
63
|
-
4: "#
|
|
64
|
-
5: "#
|
|
65
|
-
6: "#
|
|
66
|
-
7: "#
|
|
67
|
-
8: "#
|
|
68
|
-
9: "#
|
|
69
|
-
10: "#
|
|
70
|
-
11: "#
|
|
61
|
+
1: "#f9fafb",
|
|
62
|
+
2: "#f3f4f6",
|
|
63
|
+
3: "#e5e7eb",
|
|
64
|
+
4: "#d1d5db",
|
|
65
|
+
5: "#9ca3af",
|
|
66
|
+
6: "#6b7280",
|
|
67
|
+
7: "#4b5563",
|
|
68
|
+
8: "#374151",
|
|
69
|
+
9: "#1f2937",
|
|
70
|
+
10: "#111827",
|
|
71
|
+
11: "#030712",
|
|
72
|
+
12: "#020409"
|
|
71
73
|
},
|
|
72
74
|
zinc: {
|
|
73
75
|
1: "#fafafa",
|
|
74
76
|
2: "#f4f4f5",
|
|
75
|
-
3: "#
|
|
76
|
-
4: "#
|
|
77
|
-
5: "#
|
|
78
|
-
6: "#
|
|
79
|
-
7: "#
|
|
80
|
-
8: "#
|
|
81
|
-
9: "#
|
|
82
|
-
10: "#
|
|
83
|
-
11: "#
|
|
77
|
+
3: "#e4e4e7",
|
|
78
|
+
4: "#d4d4d8",
|
|
79
|
+
5: "#a1a1aa",
|
|
80
|
+
6: "#71717a",
|
|
81
|
+
7: "#52525b",
|
|
82
|
+
8: "#3f3f46",
|
|
83
|
+
9: "#27272a",
|
|
84
|
+
10: "#18181b",
|
|
85
|
+
11: "#09090b",
|
|
86
|
+
12: "#050506"
|
|
84
87
|
},
|
|
85
88
|
neutral: {
|
|
86
89
|
1: "#fafafa",
|
|
87
90
|
2: "#f5f5f5",
|
|
88
|
-
3: "#
|
|
89
|
-
4: "#
|
|
90
|
-
5: "#
|
|
91
|
-
6: "#
|
|
92
|
-
7: "#
|
|
93
|
-
8: "#
|
|
94
|
-
9: "#
|
|
95
|
-
10: "#
|
|
96
|
-
11: "#
|
|
91
|
+
3: "#e5e5e5",
|
|
92
|
+
4: "#d4d4d4",
|
|
93
|
+
5: "#a3a3a3",
|
|
94
|
+
6: "#737373",
|
|
95
|
+
7: "#525252",
|
|
96
|
+
8: "#404040",
|
|
97
|
+
9: "#262626",
|
|
98
|
+
10: "#171717",
|
|
99
|
+
11: "#0a0a0a",
|
|
100
|
+
12: "#050505"
|
|
97
101
|
},
|
|
98
102
|
stone: {
|
|
99
|
-
1: "#
|
|
100
|
-
2: "#
|
|
101
|
-
3: "#
|
|
102
|
-
4: "#
|
|
103
|
-
5: "#
|
|
104
|
-
6: "#
|
|
105
|
-
7: "#
|
|
106
|
-
8: "#
|
|
107
|
-
9: "#
|
|
108
|
-
10: "#
|
|
109
|
-
11: "#
|
|
103
|
+
1: "#fafaf9",
|
|
104
|
+
2: "#f5f5f4",
|
|
105
|
+
3: "#e7e5e4",
|
|
106
|
+
4: "#d6d3d1",
|
|
107
|
+
5: "#a8a29e",
|
|
108
|
+
6: "#78716c",
|
|
109
|
+
7: "#57534e",
|
|
110
|
+
8: "#44403c",
|
|
111
|
+
9: "#292524",
|
|
112
|
+
10: "#1c1917",
|
|
113
|
+
11: "#0c0a09",
|
|
114
|
+
12: "#070605"
|
|
110
115
|
},
|
|
111
116
|
red: {
|
|
112
|
-
1: "#
|
|
113
|
-
2: "#
|
|
114
|
-
3: "#
|
|
115
|
-
4: "#
|
|
116
|
-
5: "#
|
|
117
|
-
6: "#
|
|
118
|
-
7: "#
|
|
119
|
-
8: "#
|
|
120
|
-
9: "#
|
|
121
|
-
10: "#
|
|
122
|
-
11: "#
|
|
117
|
+
1: "#fef2f2",
|
|
118
|
+
2: "#fee2e2",
|
|
119
|
+
3: "#fecaca",
|
|
120
|
+
4: "#fca5a5",
|
|
121
|
+
5: "#f87171",
|
|
122
|
+
6: "#ef4444",
|
|
123
|
+
7: "#dc2626",
|
|
124
|
+
8: "#b91c1c",
|
|
125
|
+
9: "#991b1b",
|
|
126
|
+
10: "#7f1d1d",
|
|
127
|
+
11: "#450a0a",
|
|
128
|
+
12: "#280606"
|
|
123
129
|
},
|
|
124
130
|
orange: {
|
|
125
|
-
1: "#
|
|
126
|
-
2: "#
|
|
127
|
-
3: "#
|
|
128
|
-
4: "#
|
|
129
|
-
5: "#
|
|
130
|
-
6: "#
|
|
131
|
-
7: "#
|
|
132
|
-
8: "#
|
|
133
|
-
9: "#
|
|
134
|
-
10: "#
|
|
135
|
-
11: "#
|
|
131
|
+
1: "#fff7ed",
|
|
132
|
+
2: "#ffedd5",
|
|
133
|
+
3: "#fed7aa",
|
|
134
|
+
4: "#fdba74",
|
|
135
|
+
5: "#fb923c",
|
|
136
|
+
6: "#f97316",
|
|
137
|
+
7: "#ea580c",
|
|
138
|
+
8: "#c2410c",
|
|
139
|
+
9: "#9a3412",
|
|
140
|
+
10: "#7c2d12",
|
|
141
|
+
11: "#431407",
|
|
142
|
+
12: "#270c04"
|
|
136
143
|
},
|
|
137
144
|
amber: {
|
|
138
|
-
1: "#
|
|
139
|
-
2: "#
|
|
140
|
-
3: "#
|
|
141
|
-
4: "#
|
|
142
|
-
5: "#
|
|
143
|
-
6: "#
|
|
144
|
-
7: "#
|
|
145
|
-
8: "#
|
|
146
|
-
9: "#
|
|
147
|
-
10: "#
|
|
148
|
-
11: "#
|
|
145
|
+
1: "#fffbeb",
|
|
146
|
+
2: "#fef3c7",
|
|
147
|
+
3: "#fde68a",
|
|
148
|
+
4: "#fcd34d",
|
|
149
|
+
5: "#fbbf24",
|
|
150
|
+
6: "#f59e0b",
|
|
151
|
+
7: "#d97706",
|
|
152
|
+
8: "#b45309",
|
|
153
|
+
9: "#92400e",
|
|
154
|
+
10: "#78350f",
|
|
155
|
+
11: "#451a03",
|
|
156
|
+
12: "#291002"
|
|
149
157
|
},
|
|
150
158
|
yellow: {
|
|
151
|
-
1: "#
|
|
152
|
-
2: "#
|
|
153
|
-
3: "#
|
|
154
|
-
4: "#
|
|
155
|
-
5: "#
|
|
156
|
-
6: "#
|
|
157
|
-
7: "#
|
|
158
|
-
8: "#
|
|
159
|
-
9: "#
|
|
160
|
-
10: "#
|
|
161
|
-
11: "#
|
|
159
|
+
1: "#fefce8",
|
|
160
|
+
2: "#fef9c3",
|
|
161
|
+
3: "#fef08a",
|
|
162
|
+
4: "#fde047",
|
|
163
|
+
5: "#facc15",
|
|
164
|
+
6: "#eab308",
|
|
165
|
+
7: "#ca8a04",
|
|
166
|
+
8: "#a16207",
|
|
167
|
+
9: "#854d0e",
|
|
168
|
+
10: "#713f12",
|
|
169
|
+
11: "#422006",
|
|
170
|
+
12: "#271304"
|
|
162
171
|
},
|
|
163
172
|
lime: {
|
|
164
|
-
1: "#
|
|
165
|
-
2: "#
|
|
166
|
-
3: "#
|
|
167
|
-
4: "#
|
|
168
|
-
5: "#
|
|
169
|
-
6: "#
|
|
170
|
-
7: "#
|
|
171
|
-
8: "#
|
|
172
|
-
9: "#
|
|
173
|
-
10: "#
|
|
174
|
-
11: "#
|
|
173
|
+
1: "#f7fee7",
|
|
174
|
+
2: "#ecfccb",
|
|
175
|
+
3: "#d9f99d",
|
|
176
|
+
4: "#bef264",
|
|
177
|
+
5: "#a3e635",
|
|
178
|
+
6: "#84cc16",
|
|
179
|
+
7: "#65a30d",
|
|
180
|
+
8: "#4d7c0f",
|
|
181
|
+
9: "#3f6212",
|
|
182
|
+
10: "#365314",
|
|
183
|
+
11: "#1a2e05",
|
|
184
|
+
12: "#0f1b03"
|
|
175
185
|
},
|
|
176
186
|
green: {
|
|
177
|
-
1: "#
|
|
178
|
-
2: "#
|
|
179
|
-
3: "#
|
|
180
|
-
4: "#
|
|
181
|
-
5: "#
|
|
182
|
-
6: "#
|
|
183
|
-
7: "#
|
|
184
|
-
8: "#
|
|
185
|
-
9: "#
|
|
186
|
-
10: "#
|
|
187
|
-
11: "#
|
|
187
|
+
1: "#f0fdf4",
|
|
188
|
+
2: "#dcfce7",
|
|
189
|
+
3: "#bbf7d0",
|
|
190
|
+
4: "#86efac",
|
|
191
|
+
5: "#4ade80",
|
|
192
|
+
6: "#22c55e",
|
|
193
|
+
7: "#16a34a",
|
|
194
|
+
8: "#15803d",
|
|
195
|
+
9: "#166534",
|
|
196
|
+
10: "#14532d",
|
|
197
|
+
11: "#052e16",
|
|
198
|
+
12: "#031b0d"
|
|
188
199
|
},
|
|
189
200
|
emerald: {
|
|
190
|
-
1: "#
|
|
191
|
-
2: "#
|
|
192
|
-
3: "#
|
|
193
|
-
4: "#
|
|
194
|
-
5: "#
|
|
195
|
-
6: "#
|
|
196
|
-
7: "#
|
|
197
|
-
8: "#
|
|
198
|
-
9: "#
|
|
199
|
-
10: "#
|
|
200
|
-
11: "#
|
|
201
|
+
1: "#ecfdf5",
|
|
202
|
+
2: "#d1fae5",
|
|
203
|
+
3: "#a7f3d0",
|
|
204
|
+
4: "#6ee7b7",
|
|
205
|
+
5: "#34d399",
|
|
206
|
+
6: "#10b981",
|
|
207
|
+
7: "#059669",
|
|
208
|
+
8: "#047857",
|
|
209
|
+
9: "#065f46",
|
|
210
|
+
10: "#064e3b",
|
|
211
|
+
11: "#022c22",
|
|
212
|
+
12: "#011a14"
|
|
201
213
|
},
|
|
202
214
|
teal: {
|
|
203
|
-
1: "#
|
|
204
|
-
2: "#
|
|
205
|
-
3: "#
|
|
206
|
-
4: "#
|
|
207
|
-
5: "#
|
|
208
|
-
6: "#
|
|
209
|
-
7: "#
|
|
210
|
-
8: "#
|
|
211
|
-
9: "#
|
|
212
|
-
10: "#
|
|
213
|
-
11: "#
|
|
215
|
+
1: "#f0fdfa",
|
|
216
|
+
2: "#ccfbf1",
|
|
217
|
+
3: "#99f6e4",
|
|
218
|
+
4: "#5eead4",
|
|
219
|
+
5: "#2dd4bf",
|
|
220
|
+
6: "#14b8a6",
|
|
221
|
+
7: "#0d9488",
|
|
222
|
+
8: "#0f766e",
|
|
223
|
+
9: "#115e59",
|
|
224
|
+
10: "#134e4a",
|
|
225
|
+
11: "#042f2e",
|
|
226
|
+
12: "#021c1b"
|
|
214
227
|
},
|
|
215
228
|
cyan: {
|
|
216
229
|
1: "#ecfeff",
|
|
217
|
-
2: "#
|
|
218
|
-
3: "#
|
|
219
|
-
4: "#
|
|
220
|
-
5: "#
|
|
221
|
-
6: "#
|
|
222
|
-
7: "#
|
|
223
|
-
8: "#
|
|
224
|
-
9: "#
|
|
225
|
-
10: "#
|
|
226
|
-
11: "#
|
|
230
|
+
2: "#cffafe",
|
|
231
|
+
3: "#a5f3fc",
|
|
232
|
+
4: "#67e8f9",
|
|
233
|
+
5: "#22d3ee",
|
|
234
|
+
6: "#06b6d4",
|
|
235
|
+
7: "#0891b2",
|
|
236
|
+
8: "#0e7490",
|
|
237
|
+
9: "#155e75",
|
|
238
|
+
10: "#164e63",
|
|
239
|
+
11: "#083344",
|
|
240
|
+
12: "#041e28"
|
|
227
241
|
},
|
|
228
242
|
sky: {
|
|
229
|
-
1: "#
|
|
243
|
+
1: "#f0f9ff",
|
|
230
244
|
2: "#e0f2fe",
|
|
231
|
-
3: "#
|
|
232
|
-
4: "#
|
|
233
|
-
5: "#
|
|
234
|
-
6: "#
|
|
235
|
-
7: "#
|
|
236
|
-
8: "#
|
|
237
|
-
9: "#
|
|
238
|
-
10: "#
|
|
239
|
-
11: "#
|
|
245
|
+
3: "#bae6fd",
|
|
246
|
+
4: "#7dd3fc",
|
|
247
|
+
5: "#38bdf8",
|
|
248
|
+
6: "#0ea5e9",
|
|
249
|
+
7: "#0284c7",
|
|
250
|
+
8: "#0369a1",
|
|
251
|
+
9: "#075985",
|
|
252
|
+
10: "#0c4a6e",
|
|
253
|
+
11: "#082f49",
|
|
254
|
+
12: "#041b2b"
|
|
240
255
|
},
|
|
241
256
|
blue: {
|
|
242
|
-
1: "#
|
|
243
|
-
2: "#
|
|
244
|
-
3: "#
|
|
245
|
-
4: "#
|
|
246
|
-
5: "#
|
|
247
|
-
6: "#
|
|
248
|
-
7: "#
|
|
249
|
-
8: "#
|
|
250
|
-
9: "#
|
|
251
|
-
10: "#
|
|
252
|
-
11: "#
|
|
257
|
+
1: "#eff6ff",
|
|
258
|
+
2: "#dbeafe",
|
|
259
|
+
3: "#bfdbfe",
|
|
260
|
+
4: "#93c5fd",
|
|
261
|
+
5: "#60a5fa",
|
|
262
|
+
6: "#3b82f6",
|
|
263
|
+
7: "#2563eb",
|
|
264
|
+
8: "#1d4ed8",
|
|
265
|
+
9: "#1e40af",
|
|
266
|
+
10: "#1e3a8a",
|
|
267
|
+
11: "#172554",
|
|
268
|
+
12: "#0d1633"
|
|
253
269
|
},
|
|
254
270
|
indigo: {
|
|
255
|
-
1: "#
|
|
256
|
-
2: "#
|
|
257
|
-
3: "#
|
|
258
|
-
4: "#
|
|
259
|
-
5: "#
|
|
260
|
-
6: "#
|
|
261
|
-
7: "#
|
|
262
|
-
8: "#
|
|
263
|
-
9: "#
|
|
264
|
-
10: "#
|
|
265
|
-
11: "#
|
|
271
|
+
1: "#eef2ff",
|
|
272
|
+
2: "#e0e7ff",
|
|
273
|
+
3: "#c7d2fe",
|
|
274
|
+
4: "#a5b4fc",
|
|
275
|
+
5: "#818cf8",
|
|
276
|
+
6: "#6366f1",
|
|
277
|
+
7: "#4f46e5",
|
|
278
|
+
8: "#4338ca",
|
|
279
|
+
9: "#3730a3",
|
|
280
|
+
10: "#312e81",
|
|
281
|
+
11: "#1e1b4b",
|
|
282
|
+
12: "#12102d"
|
|
266
283
|
},
|
|
267
284
|
violet: {
|
|
268
285
|
1: "#f5f3ff",
|
|
269
|
-
2: "#
|
|
270
|
-
3: "#
|
|
271
|
-
4: "#
|
|
272
|
-
5: "#
|
|
273
|
-
6: "#
|
|
274
|
-
7: "#
|
|
275
|
-
8: "#
|
|
276
|
-
9: "#
|
|
277
|
-
10: "#
|
|
278
|
-
11: "#
|
|
286
|
+
2: "#ede9fe",
|
|
287
|
+
3: "#ddd6fe",
|
|
288
|
+
4: "#c4b5fd",
|
|
289
|
+
5: "#a78bfa",
|
|
290
|
+
6: "#8b5cf6",
|
|
291
|
+
7: "#7c3aed",
|
|
292
|
+
8: "#6d28d9",
|
|
293
|
+
9: "#5b21b6",
|
|
294
|
+
10: "#4c1d95",
|
|
295
|
+
11: "#2e1065",
|
|
296
|
+
12: "#1c0a3d"
|
|
279
297
|
},
|
|
280
298
|
purple: {
|
|
281
|
-
1: "#
|
|
282
|
-
2: "#
|
|
283
|
-
3: "#
|
|
284
|
-
4: "#
|
|
285
|
-
5: "#
|
|
286
|
-
6: "#
|
|
287
|
-
7: "#
|
|
288
|
-
8: "#
|
|
289
|
-
9: "#
|
|
290
|
-
10: "#
|
|
291
|
-
11: "#
|
|
299
|
+
1: "#faf5ff",
|
|
300
|
+
2: "#f3e8ff",
|
|
301
|
+
3: "#e9d5ff",
|
|
302
|
+
4: "#d8b4fe",
|
|
303
|
+
5: "#c084fc",
|
|
304
|
+
6: "#a855f7",
|
|
305
|
+
7: "#9333ea",
|
|
306
|
+
8: "#7e22ce",
|
|
307
|
+
9: "#6b21a8",
|
|
308
|
+
10: "#581c87",
|
|
309
|
+
11: "#3b0764",
|
|
310
|
+
12: "#23043c"
|
|
292
311
|
},
|
|
293
312
|
fuchsia: {
|
|
294
|
-
1: "#
|
|
295
|
-
2: "#
|
|
296
|
-
3: "#
|
|
297
|
-
4: "#
|
|
298
|
-
5: "#
|
|
299
|
-
6: "#
|
|
300
|
-
7: "#
|
|
301
|
-
8: "#
|
|
302
|
-
9: "#
|
|
303
|
-
10: "#
|
|
304
|
-
11: "#
|
|
313
|
+
1: "#fdf4ff",
|
|
314
|
+
2: "#fae8ff",
|
|
315
|
+
3: "#f5d0fe",
|
|
316
|
+
4: "#f0abfc",
|
|
317
|
+
5: "#e879f9",
|
|
318
|
+
6: "#d946ef",
|
|
319
|
+
7: "#c026d3",
|
|
320
|
+
8: "#a21caf",
|
|
321
|
+
9: "#86198f",
|
|
322
|
+
10: "#701a75",
|
|
323
|
+
11: "#4a044e",
|
|
324
|
+
12: "#2d022f"
|
|
305
325
|
},
|
|
306
326
|
pink: {
|
|
307
|
-
1: "#
|
|
308
|
-
2: "#
|
|
309
|
-
3: "#
|
|
310
|
-
4: "#
|
|
311
|
-
5: "#
|
|
312
|
-
6: "#
|
|
313
|
-
7: "#
|
|
314
|
-
8: "#
|
|
315
|
-
9: "#
|
|
316
|
-
10: "#
|
|
317
|
-
11: "#
|
|
327
|
+
1: "#fdf2f8",
|
|
328
|
+
2: "#fce7f3",
|
|
329
|
+
3: "#fbcfe8",
|
|
330
|
+
4: "#f9a8d4",
|
|
331
|
+
5: "#f472b6",
|
|
332
|
+
6: "#ec4899",
|
|
333
|
+
7: "#db2777",
|
|
334
|
+
8: "#be185d",
|
|
335
|
+
9: "#9d174d",
|
|
336
|
+
10: "#831843",
|
|
337
|
+
11: "#500724",
|
|
338
|
+
12: "#300415"
|
|
318
339
|
},
|
|
319
340
|
rose: {
|
|
320
|
-
1: "#
|
|
321
|
-
2: "#
|
|
322
|
-
3: "#
|
|
323
|
-
4: "#
|
|
324
|
-
5: "#
|
|
325
|
-
6: "#
|
|
326
|
-
7: "#
|
|
327
|
-
8: "#
|
|
328
|
-
9: "#
|
|
329
|
-
10: "#
|
|
330
|
-
11: "#
|
|
341
|
+
1: "#fff1f2",
|
|
342
|
+
2: "#ffe4e6",
|
|
343
|
+
3: "#fecdd3",
|
|
344
|
+
4: "#fda4af",
|
|
345
|
+
5: "#fb7185",
|
|
346
|
+
6: "#f43f5e",
|
|
347
|
+
7: "#e11d48",
|
|
348
|
+
8: "#be123c",
|
|
349
|
+
9: "#9f1239",
|
|
350
|
+
10: "#881337",
|
|
351
|
+
11: "#4c0519",
|
|
352
|
+
12: "#2d030e"
|
|
331
353
|
}
|
|
332
354
|
};
|
|
333
355
|
var defaultTheme = {
|
|
@@ -658,7 +680,18 @@ var MODIFIERS = /* @__PURE__ */ new Set([
|
|
|
658
680
|
"first-line",
|
|
659
681
|
"marker",
|
|
660
682
|
// Print media modifier
|
|
661
|
-
"print"
|
|
683
|
+
"print",
|
|
684
|
+
// Orientation media modifiers (CSS-injection only)
|
|
685
|
+
"landscape",
|
|
686
|
+
"portrait",
|
|
687
|
+
// Accessibility media modifiers (CSS-injection only)
|
|
688
|
+
"motion-reduce",
|
|
689
|
+
"motion-safe",
|
|
690
|
+
"contrast-more",
|
|
691
|
+
"contrast-less",
|
|
692
|
+
// Directionality modifiers (CSS-injection only)
|
|
693
|
+
"rtl",
|
|
694
|
+
"ltr"
|
|
662
695
|
]);
|
|
663
696
|
var UTILITY_PREFIXES = [
|
|
664
697
|
// Multi-word flex
|
|
@@ -835,6 +868,7 @@ var UTILITY_PREFIXES = [
|
|
|
835
868
|
"outline-offset",
|
|
836
869
|
"will-change",
|
|
837
870
|
"mix-blend",
|
|
871
|
+
"bg-blend",
|
|
838
872
|
"decoration",
|
|
839
873
|
"perspective",
|
|
840
874
|
"tint",
|
|
@@ -857,6 +891,8 @@ var UTILITY_PREFIXES = [
|
|
|
857
891
|
"capitalize",
|
|
858
892
|
"normal-case",
|
|
859
893
|
"antialiased",
|
|
894
|
+
"subpixel-antialiased",
|
|
895
|
+
"overflow-ellipsis",
|
|
860
896
|
"truncate",
|
|
861
897
|
"sr-only",
|
|
862
898
|
"not-sr-only",
|
|
@@ -1183,6 +1219,20 @@ var STANDALONE_UTILITIES = /* @__PURE__ */ new Set([
|
|
|
1183
1219
|
"max-h-screen",
|
|
1184
1220
|
"min-w-screen",
|
|
1185
1221
|
"max-w-screen",
|
|
1222
|
+
// max-w named container sizes (Tailwind compat)
|
|
1223
|
+
"max-w-none",
|
|
1224
|
+
"max-w-xs",
|
|
1225
|
+
"max-w-sm",
|
|
1226
|
+
"max-w-md",
|
|
1227
|
+
"max-w-lg",
|
|
1228
|
+
"max-w-xl",
|
|
1229
|
+
"max-w-2xl",
|
|
1230
|
+
"max-w-3xl",
|
|
1231
|
+
"max-w-4xl",
|
|
1232
|
+
"max-w-5xl",
|
|
1233
|
+
"max-w-6xl",
|
|
1234
|
+
"max-w-7xl",
|
|
1235
|
+
"max-w-prose",
|
|
1186
1236
|
// Extended cursors (web-only)
|
|
1187
1237
|
"cursor-grab",
|
|
1188
1238
|
"cursor-grabbing",
|
|
@@ -1572,6 +1622,8 @@ var STANDALONE = {
|
|
|
1572
1622
|
"resize-y": isWeb ? { resize: "vertical" } : null,
|
|
1573
1623
|
"resize-x": isWeb ? { resize: "horizontal" } : null,
|
|
1574
1624
|
antialiased: isWeb ? { WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale" } : null,
|
|
1625
|
+
"subpixel-antialiased": isWeb ? { WebkitFontSmoothing: "subpixel-antialiased", MozOsxFontSmoothing: "auto" } : null,
|
|
1626
|
+
"overflow-ellipsis": isWeb ? { textOverflow: "ellipsis" } : null,
|
|
1575
1627
|
"sr-only": isWeb ? {
|
|
1576
1628
|
position: "absolute",
|
|
1577
1629
|
width: 1,
|
|
@@ -1686,6 +1738,20 @@ var STANDALONE = {
|
|
|
1686
1738
|
"max-h-screen": { maxHeight: "100vh" },
|
|
1687
1739
|
"min-w-screen": isWeb ? { minWidth: "100vw" } : null,
|
|
1688
1740
|
"max-w-screen": isWeb ? { maxWidth: "100vw" } : null,
|
|
1741
|
+
// max-w named container sizes (mirrors Tailwind's container scale)
|
|
1742
|
+
"max-w-none": { maxWidth: "none" },
|
|
1743
|
+
"max-w-xs": { maxWidth: 320 },
|
|
1744
|
+
"max-w-sm": { maxWidth: 384 },
|
|
1745
|
+
"max-w-md": { maxWidth: 448 },
|
|
1746
|
+
"max-w-lg": { maxWidth: 512 },
|
|
1747
|
+
"max-w-xl": { maxWidth: 576 },
|
|
1748
|
+
"max-w-2xl": { maxWidth: 672 },
|
|
1749
|
+
"max-w-3xl": { maxWidth: 768 },
|
|
1750
|
+
"max-w-4xl": { maxWidth: 896 },
|
|
1751
|
+
"max-w-5xl": { maxWidth: 1024 },
|
|
1752
|
+
"max-w-6xl": { maxWidth: 1152 },
|
|
1753
|
+
"max-w-7xl": { maxWidth: 1280 },
|
|
1754
|
+
"max-w-prose": isWeb ? { maxWidth: "65ch" } : null,
|
|
1689
1755
|
// Extended cursors (web-only)
|
|
1690
1756
|
"cursor-grab": isWeb ? { cursor: "grab" } : null,
|
|
1691
1757
|
"cursor-grabbing": isWeb ? { cursor: "grabbing" } : null,
|
|
@@ -2425,7 +2491,7 @@ var RESOLVERS = {
|
|
|
2425
2491
|
};
|
|
2426
2492
|
return widths[value] ? { columnWidth: widths[value] } : null;
|
|
2427
2493
|
},
|
|
2428
|
-
// ── Mix blend mode (web-only)
|
|
2494
|
+
// ── Mix / background blend mode (web-only) ───────────────────────────────
|
|
2429
2495
|
"mix-blend": ({ value }) => {
|
|
2430
2496
|
if (!isWeb) return null;
|
|
2431
2497
|
const modes = [
|
|
@@ -2449,6 +2515,28 @@ var RESOLVERS = {
|
|
|
2449
2515
|
];
|
|
2450
2516
|
return modes.includes(value) ? { mixBlendMode: value } : null;
|
|
2451
2517
|
},
|
|
2518
|
+
"bg-blend": ({ value }) => {
|
|
2519
|
+
if (!isWeb) return null;
|
|
2520
|
+
const modes = [
|
|
2521
|
+
"normal",
|
|
2522
|
+
"multiply",
|
|
2523
|
+
"screen",
|
|
2524
|
+
"overlay",
|
|
2525
|
+
"darken",
|
|
2526
|
+
"lighten",
|
|
2527
|
+
"color-dodge",
|
|
2528
|
+
"color-burn",
|
|
2529
|
+
"hard-light",
|
|
2530
|
+
"soft-light",
|
|
2531
|
+
"difference",
|
|
2532
|
+
"exclusion",
|
|
2533
|
+
"hue",
|
|
2534
|
+
"saturation",
|
|
2535
|
+
"color",
|
|
2536
|
+
"luminosity"
|
|
2537
|
+
];
|
|
2538
|
+
return modes.includes(value) ? { backgroundBlendMode: value } : null;
|
|
2539
|
+
},
|
|
2452
2540
|
// ── Will-change (web-only) ─────────────────────────────────────────────────
|
|
2453
2541
|
"will-change": ({ value, isArbitrary }) => {
|
|
2454
2542
|
if (!isWeb) return null;
|
|
@@ -2977,6 +3065,18 @@ var GROUP_PEER_PREFIX = {
|
|
|
2977
3065
|
var MODE_MODS = /* @__PURE__ */ new Set(["dark", "light", "not-dark", "not-light"]);
|
|
2978
3066
|
var RESPONSIVE_MODS = /* @__PURE__ */ new Set(["sm", "md", "lg", "xl", "2xl"]);
|
|
2979
3067
|
var PRINT_MODS = /* @__PURE__ */ new Set(["print"]);
|
|
3068
|
+
var MEDIA_MODS = {
|
|
3069
|
+
landscape: "(orientation: landscape)",
|
|
3070
|
+
portrait: "(orientation: portrait)",
|
|
3071
|
+
"motion-reduce": "(prefers-reduced-motion: reduce)",
|
|
3072
|
+
"motion-safe": "(prefers-reduced-motion: no-preference)",
|
|
3073
|
+
"contrast-more": "(prefers-contrast: more)",
|
|
3074
|
+
"contrast-less": "(prefers-contrast: less)"
|
|
3075
|
+
};
|
|
3076
|
+
var DIR_MODS = {
|
|
3077
|
+
rtl: '[dir="rtl"]',
|
|
3078
|
+
ltr: '[dir="ltr"]'
|
|
3079
|
+
};
|
|
2980
3080
|
function buildDivideDecls(styles) {
|
|
2981
3081
|
const parts = [];
|
|
2982
3082
|
if ("__divideX" in styles) {
|
|
@@ -3012,12 +3112,17 @@ function injectClassRule(cls, bucketKey, styles, darkMode, important = false) {
|
|
|
3012
3112
|
const hasDark = nonResponsiveMods.includes("dark") || nonResponsiveMods.includes("not-light");
|
|
3013
3113
|
const hasLight = nonResponsiveMods.includes("light") || nonResponsiveMods.includes("not-dark");
|
|
3014
3114
|
const hasPrint = nonResponsiveMods.includes("print");
|
|
3115
|
+
const mediaMods = nonResponsiveMods.filter((m) => m in MEDIA_MODS);
|
|
3116
|
+
const dirMods = nonResponsiveMods.filter((m) => m in DIR_MODS);
|
|
3015
3117
|
const ancestorMods = nonResponsiveMods.filter((m) => m in GROUP_PEER_PREFIX);
|
|
3016
|
-
const pseudoMods = nonResponsiveMods.filter(
|
|
3118
|
+
const pseudoMods = nonResponsiveMods.filter(
|
|
3119
|
+
(m) => !MODE_MODS.has(m) && !(m in GROUP_PEER_PREFIX) && !PRINT_MODS.has(m) && !(m in MEDIA_MODS) && !(m in DIR_MODS)
|
|
3120
|
+
);
|
|
3017
3121
|
const pseudoSuffix = pseudoMods.map((p) => MODIFIER_TO_PSEUDO[p] ?? `:${p}`).join("");
|
|
3018
3122
|
const elementSelector = `.${escaped}${pseudoSuffix}${childSuffix}`;
|
|
3019
3123
|
const ancestorPrefix = ancestorMods.length ? ancestorMods.map((m) => GROUP_PEER_PREFIX[m]).join(" ") + " " : "";
|
|
3020
|
-
const
|
|
3124
|
+
const dirPrefix = dirMods.length ? dirMods.map((m) => DIR_MODS[m]).join(" ") + " " : "";
|
|
3125
|
+
const selector = `${dirPrefix}${ancestorPrefix}${elementSelector}`;
|
|
3021
3126
|
let rule;
|
|
3022
3127
|
if (hasDark) {
|
|
3023
3128
|
if (darkMode === "media") {
|
|
@@ -3041,6 +3146,9 @@ function injectClassRule(cls, bucketKey, styles, darkMode, important = false) {
|
|
|
3041
3146
|
if (hasPrint) {
|
|
3042
3147
|
rule = `@media print { ${rule} }`;
|
|
3043
3148
|
}
|
|
3149
|
+
for (const m of mediaMods) {
|
|
3150
|
+
rule = `@media ${MEDIA_MODS[m]} { ${rule} }`;
|
|
3151
|
+
}
|
|
3044
3152
|
if (responsiveMods.length > 0) {
|
|
3045
3153
|
const screens = getGlobalScreens();
|
|
3046
3154
|
const minWidth = Math.max(...responsiveMods.map((m) => screens[m] ?? 0));
|
|
@@ -3191,6 +3299,17 @@ function matchesMods(mods, isDark, state, breakpoints) {
|
|
|
3191
3299
|
case "xl":
|
|
3192
3300
|
case "2xl":
|
|
3193
3301
|
return breakpoints.has(mod);
|
|
3302
|
+
// CSS-only modifiers — never applied as inline styles
|
|
3303
|
+
case "print":
|
|
3304
|
+
case "landscape":
|
|
3305
|
+
case "portrait":
|
|
3306
|
+
case "motion-reduce":
|
|
3307
|
+
case "motion-safe":
|
|
3308
|
+
case "contrast-more":
|
|
3309
|
+
case "contrast-less":
|
|
3310
|
+
case "rtl":
|
|
3311
|
+
case "ltr":
|
|
3312
|
+
return false;
|
|
3194
3313
|
default:
|
|
3195
3314
|
return false;
|
|
3196
3315
|
}
|