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