@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
|
@@ -12,290 +12,312 @@ var defaultColors = {
|
|
|
12
12
|
black: "#000000",
|
|
13
13
|
white: "#ffffff",
|
|
14
14
|
slate: {
|
|
15
|
-
1: "#
|
|
16
|
-
2: "#
|
|
17
|
-
3: "#
|
|
18
|
-
4: "#
|
|
19
|
-
5: "#
|
|
20
|
-
6: "#
|
|
21
|
-
7: "#
|
|
22
|
-
8: "#
|
|
23
|
-
9: "#
|
|
24
|
-
10: "#
|
|
25
|
-
11: "#
|
|
15
|
+
1: "#f8fafc",
|
|
16
|
+
2: "#f1f5f9",
|
|
17
|
+
3: "#e2e8f0",
|
|
18
|
+
4: "#cbd5e1",
|
|
19
|
+
5: "#94a3b8",
|
|
20
|
+
6: "#64748b",
|
|
21
|
+
7: "#475569",
|
|
22
|
+
8: "#334155",
|
|
23
|
+
9: "#1e293b",
|
|
24
|
+
10: "#0f172a",
|
|
25
|
+
11: "#020617",
|
|
26
|
+
12: "#01020a"
|
|
26
27
|
},
|
|
27
28
|
gray: {
|
|
28
|
-
1: "#
|
|
29
|
-
2: "#
|
|
30
|
-
3: "#
|
|
31
|
-
4: "#
|
|
32
|
-
5: "#
|
|
33
|
-
6: "#
|
|
34
|
-
7: "#
|
|
35
|
-
8: "#
|
|
36
|
-
9: "#
|
|
37
|
-
10: "#
|
|
38
|
-
11: "#
|
|
29
|
+
1: "#f9fafb",
|
|
30
|
+
2: "#f3f4f6",
|
|
31
|
+
3: "#e5e7eb",
|
|
32
|
+
4: "#d1d5db",
|
|
33
|
+
5: "#9ca3af",
|
|
34
|
+
6: "#6b7280",
|
|
35
|
+
7: "#4b5563",
|
|
36
|
+
8: "#374151",
|
|
37
|
+
9: "#1f2937",
|
|
38
|
+
10: "#111827",
|
|
39
|
+
11: "#030712",
|
|
40
|
+
12: "#020409"
|
|
39
41
|
},
|
|
40
42
|
zinc: {
|
|
41
43
|
1: "#fafafa",
|
|
42
44
|
2: "#f4f4f5",
|
|
43
|
-
3: "#
|
|
44
|
-
4: "#
|
|
45
|
-
5: "#
|
|
46
|
-
6: "#
|
|
47
|
-
7: "#
|
|
48
|
-
8: "#
|
|
49
|
-
9: "#
|
|
50
|
-
10: "#
|
|
51
|
-
11: "#
|
|
45
|
+
3: "#e4e4e7",
|
|
46
|
+
4: "#d4d4d8",
|
|
47
|
+
5: "#a1a1aa",
|
|
48
|
+
6: "#71717a",
|
|
49
|
+
7: "#52525b",
|
|
50
|
+
8: "#3f3f46",
|
|
51
|
+
9: "#27272a",
|
|
52
|
+
10: "#18181b",
|
|
53
|
+
11: "#09090b",
|
|
54
|
+
12: "#050506"
|
|
52
55
|
},
|
|
53
56
|
neutral: {
|
|
54
57
|
1: "#fafafa",
|
|
55
58
|
2: "#f5f5f5",
|
|
56
|
-
3: "#
|
|
57
|
-
4: "#
|
|
58
|
-
5: "#
|
|
59
|
-
6: "#
|
|
60
|
-
7: "#
|
|
61
|
-
8: "#
|
|
62
|
-
9: "#
|
|
63
|
-
10: "#
|
|
64
|
-
11: "#
|
|
59
|
+
3: "#e5e5e5",
|
|
60
|
+
4: "#d4d4d4",
|
|
61
|
+
5: "#a3a3a3",
|
|
62
|
+
6: "#737373",
|
|
63
|
+
7: "#525252",
|
|
64
|
+
8: "#404040",
|
|
65
|
+
9: "#262626",
|
|
66
|
+
10: "#171717",
|
|
67
|
+
11: "#0a0a0a",
|
|
68
|
+
12: "#050505"
|
|
65
69
|
},
|
|
66
70
|
stone: {
|
|
67
|
-
1: "#
|
|
68
|
-
2: "#
|
|
69
|
-
3: "#
|
|
70
|
-
4: "#
|
|
71
|
-
5: "#
|
|
72
|
-
6: "#
|
|
73
|
-
7: "#
|
|
74
|
-
8: "#
|
|
75
|
-
9: "#
|
|
76
|
-
10: "#
|
|
77
|
-
11: "#
|
|
71
|
+
1: "#fafaf9",
|
|
72
|
+
2: "#f5f5f4",
|
|
73
|
+
3: "#e7e5e4",
|
|
74
|
+
4: "#d6d3d1",
|
|
75
|
+
5: "#a8a29e",
|
|
76
|
+
6: "#78716c",
|
|
77
|
+
7: "#57534e",
|
|
78
|
+
8: "#44403c",
|
|
79
|
+
9: "#292524",
|
|
80
|
+
10: "#1c1917",
|
|
81
|
+
11: "#0c0a09",
|
|
82
|
+
12: "#070605"
|
|
78
83
|
},
|
|
79
84
|
red: {
|
|
80
|
-
1: "#
|
|
81
|
-
2: "#
|
|
82
|
-
3: "#
|
|
83
|
-
4: "#
|
|
84
|
-
5: "#
|
|
85
|
-
6: "#
|
|
86
|
-
7: "#
|
|
87
|
-
8: "#
|
|
88
|
-
9: "#
|
|
89
|
-
10: "#
|
|
90
|
-
11: "#
|
|
85
|
+
1: "#fef2f2",
|
|
86
|
+
2: "#fee2e2",
|
|
87
|
+
3: "#fecaca",
|
|
88
|
+
4: "#fca5a5",
|
|
89
|
+
5: "#f87171",
|
|
90
|
+
6: "#ef4444",
|
|
91
|
+
7: "#dc2626",
|
|
92
|
+
8: "#b91c1c",
|
|
93
|
+
9: "#991b1b",
|
|
94
|
+
10: "#7f1d1d",
|
|
95
|
+
11: "#450a0a",
|
|
96
|
+
12: "#280606"
|
|
91
97
|
},
|
|
92
98
|
orange: {
|
|
93
|
-
1: "#
|
|
94
|
-
2: "#
|
|
95
|
-
3: "#
|
|
96
|
-
4: "#
|
|
97
|
-
5: "#
|
|
98
|
-
6: "#
|
|
99
|
-
7: "#
|
|
100
|
-
8: "#
|
|
101
|
-
9: "#
|
|
102
|
-
10: "#
|
|
103
|
-
11: "#
|
|
99
|
+
1: "#fff7ed",
|
|
100
|
+
2: "#ffedd5",
|
|
101
|
+
3: "#fed7aa",
|
|
102
|
+
4: "#fdba74",
|
|
103
|
+
5: "#fb923c",
|
|
104
|
+
6: "#f97316",
|
|
105
|
+
7: "#ea580c",
|
|
106
|
+
8: "#c2410c",
|
|
107
|
+
9: "#9a3412",
|
|
108
|
+
10: "#7c2d12",
|
|
109
|
+
11: "#431407",
|
|
110
|
+
12: "#270c04"
|
|
104
111
|
},
|
|
105
112
|
amber: {
|
|
106
|
-
1: "#
|
|
107
|
-
2: "#
|
|
108
|
-
3: "#
|
|
109
|
-
4: "#
|
|
110
|
-
5: "#
|
|
111
|
-
6: "#
|
|
112
|
-
7: "#
|
|
113
|
-
8: "#
|
|
114
|
-
9: "#
|
|
115
|
-
10: "#
|
|
116
|
-
11: "#
|
|
113
|
+
1: "#fffbeb",
|
|
114
|
+
2: "#fef3c7",
|
|
115
|
+
3: "#fde68a",
|
|
116
|
+
4: "#fcd34d",
|
|
117
|
+
5: "#fbbf24",
|
|
118
|
+
6: "#f59e0b",
|
|
119
|
+
7: "#d97706",
|
|
120
|
+
8: "#b45309",
|
|
121
|
+
9: "#92400e",
|
|
122
|
+
10: "#78350f",
|
|
123
|
+
11: "#451a03",
|
|
124
|
+
12: "#291002"
|
|
117
125
|
},
|
|
118
126
|
yellow: {
|
|
119
|
-
1: "#
|
|
120
|
-
2: "#
|
|
121
|
-
3: "#
|
|
122
|
-
4: "#
|
|
123
|
-
5: "#
|
|
124
|
-
6: "#
|
|
125
|
-
7: "#
|
|
126
|
-
8: "#
|
|
127
|
-
9: "#
|
|
128
|
-
10: "#
|
|
129
|
-
11: "#
|
|
127
|
+
1: "#fefce8",
|
|
128
|
+
2: "#fef9c3",
|
|
129
|
+
3: "#fef08a",
|
|
130
|
+
4: "#fde047",
|
|
131
|
+
5: "#facc15",
|
|
132
|
+
6: "#eab308",
|
|
133
|
+
7: "#ca8a04",
|
|
134
|
+
8: "#a16207",
|
|
135
|
+
9: "#854d0e",
|
|
136
|
+
10: "#713f12",
|
|
137
|
+
11: "#422006",
|
|
138
|
+
12: "#271304"
|
|
130
139
|
},
|
|
131
140
|
lime: {
|
|
132
|
-
1: "#
|
|
133
|
-
2: "#
|
|
134
|
-
3: "#
|
|
135
|
-
4: "#
|
|
136
|
-
5: "#
|
|
137
|
-
6: "#
|
|
138
|
-
7: "#
|
|
139
|
-
8: "#
|
|
140
|
-
9: "#
|
|
141
|
-
10: "#
|
|
142
|
-
11: "#
|
|
141
|
+
1: "#f7fee7",
|
|
142
|
+
2: "#ecfccb",
|
|
143
|
+
3: "#d9f99d",
|
|
144
|
+
4: "#bef264",
|
|
145
|
+
5: "#a3e635",
|
|
146
|
+
6: "#84cc16",
|
|
147
|
+
7: "#65a30d",
|
|
148
|
+
8: "#4d7c0f",
|
|
149
|
+
9: "#3f6212",
|
|
150
|
+
10: "#365314",
|
|
151
|
+
11: "#1a2e05",
|
|
152
|
+
12: "#0f1b03"
|
|
143
153
|
},
|
|
144
154
|
green: {
|
|
145
|
-
1: "#
|
|
146
|
-
2: "#
|
|
147
|
-
3: "#
|
|
148
|
-
4: "#
|
|
149
|
-
5: "#
|
|
150
|
-
6: "#
|
|
151
|
-
7: "#
|
|
152
|
-
8: "#
|
|
153
|
-
9: "#
|
|
154
|
-
10: "#
|
|
155
|
-
11: "#
|
|
155
|
+
1: "#f0fdf4",
|
|
156
|
+
2: "#dcfce7",
|
|
157
|
+
3: "#bbf7d0",
|
|
158
|
+
4: "#86efac",
|
|
159
|
+
5: "#4ade80",
|
|
160
|
+
6: "#22c55e",
|
|
161
|
+
7: "#16a34a",
|
|
162
|
+
8: "#15803d",
|
|
163
|
+
9: "#166534",
|
|
164
|
+
10: "#14532d",
|
|
165
|
+
11: "#052e16",
|
|
166
|
+
12: "#031b0d"
|
|
156
167
|
},
|
|
157
168
|
emerald: {
|
|
158
|
-
1: "#
|
|
159
|
-
2: "#
|
|
160
|
-
3: "#
|
|
161
|
-
4: "#
|
|
162
|
-
5: "#
|
|
163
|
-
6: "#
|
|
164
|
-
7: "#
|
|
165
|
-
8: "#
|
|
166
|
-
9: "#
|
|
167
|
-
10: "#
|
|
168
|
-
11: "#
|
|
169
|
+
1: "#ecfdf5",
|
|
170
|
+
2: "#d1fae5",
|
|
171
|
+
3: "#a7f3d0",
|
|
172
|
+
4: "#6ee7b7",
|
|
173
|
+
5: "#34d399",
|
|
174
|
+
6: "#10b981",
|
|
175
|
+
7: "#059669",
|
|
176
|
+
8: "#047857",
|
|
177
|
+
9: "#065f46",
|
|
178
|
+
10: "#064e3b",
|
|
179
|
+
11: "#022c22",
|
|
180
|
+
12: "#011a14"
|
|
169
181
|
},
|
|
170
182
|
teal: {
|
|
171
|
-
1: "#
|
|
172
|
-
2: "#
|
|
173
|
-
3: "#
|
|
174
|
-
4: "#
|
|
175
|
-
5: "#
|
|
176
|
-
6: "#
|
|
177
|
-
7: "#
|
|
178
|
-
8: "#
|
|
179
|
-
9: "#
|
|
180
|
-
10: "#
|
|
181
|
-
11: "#
|
|
183
|
+
1: "#f0fdfa",
|
|
184
|
+
2: "#ccfbf1",
|
|
185
|
+
3: "#99f6e4",
|
|
186
|
+
4: "#5eead4",
|
|
187
|
+
5: "#2dd4bf",
|
|
188
|
+
6: "#14b8a6",
|
|
189
|
+
7: "#0d9488",
|
|
190
|
+
8: "#0f766e",
|
|
191
|
+
9: "#115e59",
|
|
192
|
+
10: "#134e4a",
|
|
193
|
+
11: "#042f2e",
|
|
194
|
+
12: "#021c1b"
|
|
182
195
|
},
|
|
183
196
|
cyan: {
|
|
184
197
|
1: "#ecfeff",
|
|
185
|
-
2: "#
|
|
186
|
-
3: "#
|
|
187
|
-
4: "#
|
|
188
|
-
5: "#
|
|
189
|
-
6: "#
|
|
190
|
-
7: "#
|
|
191
|
-
8: "#
|
|
192
|
-
9: "#
|
|
193
|
-
10: "#
|
|
194
|
-
11: "#
|
|
198
|
+
2: "#cffafe",
|
|
199
|
+
3: "#a5f3fc",
|
|
200
|
+
4: "#67e8f9",
|
|
201
|
+
5: "#22d3ee",
|
|
202
|
+
6: "#06b6d4",
|
|
203
|
+
7: "#0891b2",
|
|
204
|
+
8: "#0e7490",
|
|
205
|
+
9: "#155e75",
|
|
206
|
+
10: "#164e63",
|
|
207
|
+
11: "#083344",
|
|
208
|
+
12: "#041e28"
|
|
195
209
|
},
|
|
196
210
|
sky: {
|
|
197
|
-
1: "#
|
|
211
|
+
1: "#f0f9ff",
|
|
198
212
|
2: "#e0f2fe",
|
|
199
|
-
3: "#
|
|
200
|
-
4: "#
|
|
201
|
-
5: "#
|
|
202
|
-
6: "#
|
|
203
|
-
7: "#
|
|
204
|
-
8: "#
|
|
205
|
-
9: "#
|
|
206
|
-
10: "#
|
|
207
|
-
11: "#
|
|
213
|
+
3: "#bae6fd",
|
|
214
|
+
4: "#7dd3fc",
|
|
215
|
+
5: "#38bdf8",
|
|
216
|
+
6: "#0ea5e9",
|
|
217
|
+
7: "#0284c7",
|
|
218
|
+
8: "#0369a1",
|
|
219
|
+
9: "#075985",
|
|
220
|
+
10: "#0c4a6e",
|
|
221
|
+
11: "#082f49",
|
|
222
|
+
12: "#041b2b"
|
|
208
223
|
},
|
|
209
224
|
blue: {
|
|
210
|
-
1: "#
|
|
211
|
-
2: "#
|
|
212
|
-
3: "#
|
|
213
|
-
4: "#
|
|
214
|
-
5: "#
|
|
215
|
-
6: "#
|
|
216
|
-
7: "#
|
|
217
|
-
8: "#
|
|
218
|
-
9: "#
|
|
219
|
-
10: "#
|
|
220
|
-
11: "#
|
|
225
|
+
1: "#eff6ff",
|
|
226
|
+
2: "#dbeafe",
|
|
227
|
+
3: "#bfdbfe",
|
|
228
|
+
4: "#93c5fd",
|
|
229
|
+
5: "#60a5fa",
|
|
230
|
+
6: "#3b82f6",
|
|
231
|
+
7: "#2563eb",
|
|
232
|
+
8: "#1d4ed8",
|
|
233
|
+
9: "#1e40af",
|
|
234
|
+
10: "#1e3a8a",
|
|
235
|
+
11: "#172554",
|
|
236
|
+
12: "#0d1633"
|
|
221
237
|
},
|
|
222
238
|
indigo: {
|
|
223
|
-
1: "#
|
|
224
|
-
2: "#
|
|
225
|
-
3: "#
|
|
226
|
-
4: "#
|
|
227
|
-
5: "#
|
|
228
|
-
6: "#
|
|
229
|
-
7: "#
|
|
230
|
-
8: "#
|
|
231
|
-
9: "#
|
|
232
|
-
10: "#
|
|
233
|
-
11: "#
|
|
239
|
+
1: "#eef2ff",
|
|
240
|
+
2: "#e0e7ff",
|
|
241
|
+
3: "#c7d2fe",
|
|
242
|
+
4: "#a5b4fc",
|
|
243
|
+
5: "#818cf8",
|
|
244
|
+
6: "#6366f1",
|
|
245
|
+
7: "#4f46e5",
|
|
246
|
+
8: "#4338ca",
|
|
247
|
+
9: "#3730a3",
|
|
248
|
+
10: "#312e81",
|
|
249
|
+
11: "#1e1b4b",
|
|
250
|
+
12: "#12102d"
|
|
234
251
|
},
|
|
235
252
|
violet: {
|
|
236
253
|
1: "#f5f3ff",
|
|
237
|
-
2: "#
|
|
238
|
-
3: "#
|
|
239
|
-
4: "#
|
|
240
|
-
5: "#
|
|
241
|
-
6: "#
|
|
242
|
-
7: "#
|
|
243
|
-
8: "#
|
|
244
|
-
9: "#
|
|
245
|
-
10: "#
|
|
246
|
-
11: "#
|
|
254
|
+
2: "#ede9fe",
|
|
255
|
+
3: "#ddd6fe",
|
|
256
|
+
4: "#c4b5fd",
|
|
257
|
+
5: "#a78bfa",
|
|
258
|
+
6: "#8b5cf6",
|
|
259
|
+
7: "#7c3aed",
|
|
260
|
+
8: "#6d28d9",
|
|
261
|
+
9: "#5b21b6",
|
|
262
|
+
10: "#4c1d95",
|
|
263
|
+
11: "#2e1065",
|
|
264
|
+
12: "#1c0a3d"
|
|
247
265
|
},
|
|
248
266
|
purple: {
|
|
249
|
-
1: "#
|
|
250
|
-
2: "#
|
|
251
|
-
3: "#
|
|
252
|
-
4: "#
|
|
253
|
-
5: "#
|
|
254
|
-
6: "#
|
|
255
|
-
7: "#
|
|
256
|
-
8: "#
|
|
257
|
-
9: "#
|
|
258
|
-
10: "#
|
|
259
|
-
11: "#
|
|
267
|
+
1: "#faf5ff",
|
|
268
|
+
2: "#f3e8ff",
|
|
269
|
+
3: "#e9d5ff",
|
|
270
|
+
4: "#d8b4fe",
|
|
271
|
+
5: "#c084fc",
|
|
272
|
+
6: "#a855f7",
|
|
273
|
+
7: "#9333ea",
|
|
274
|
+
8: "#7e22ce",
|
|
275
|
+
9: "#6b21a8",
|
|
276
|
+
10: "#581c87",
|
|
277
|
+
11: "#3b0764",
|
|
278
|
+
12: "#23043c"
|
|
260
279
|
},
|
|
261
280
|
fuchsia: {
|
|
262
|
-
1: "#
|
|
263
|
-
2: "#
|
|
264
|
-
3: "#
|
|
265
|
-
4: "#
|
|
266
|
-
5: "#
|
|
267
|
-
6: "#
|
|
268
|
-
7: "#
|
|
269
|
-
8: "#
|
|
270
|
-
9: "#
|
|
271
|
-
10: "#
|
|
272
|
-
11: "#
|
|
281
|
+
1: "#fdf4ff",
|
|
282
|
+
2: "#fae8ff",
|
|
283
|
+
3: "#f5d0fe",
|
|
284
|
+
4: "#f0abfc",
|
|
285
|
+
5: "#e879f9",
|
|
286
|
+
6: "#d946ef",
|
|
287
|
+
7: "#c026d3",
|
|
288
|
+
8: "#a21caf",
|
|
289
|
+
9: "#86198f",
|
|
290
|
+
10: "#701a75",
|
|
291
|
+
11: "#4a044e",
|
|
292
|
+
12: "#2d022f"
|
|
273
293
|
},
|
|
274
294
|
pink: {
|
|
275
|
-
1: "#
|
|
276
|
-
2: "#
|
|
277
|
-
3: "#
|
|
278
|
-
4: "#
|
|
279
|
-
5: "#
|
|
280
|
-
6: "#
|
|
281
|
-
7: "#
|
|
282
|
-
8: "#
|
|
283
|
-
9: "#
|
|
284
|
-
10: "#
|
|
285
|
-
11: "#
|
|
295
|
+
1: "#fdf2f8",
|
|
296
|
+
2: "#fce7f3",
|
|
297
|
+
3: "#fbcfe8",
|
|
298
|
+
4: "#f9a8d4",
|
|
299
|
+
5: "#f472b6",
|
|
300
|
+
6: "#ec4899",
|
|
301
|
+
7: "#db2777",
|
|
302
|
+
8: "#be185d",
|
|
303
|
+
9: "#9d174d",
|
|
304
|
+
10: "#831843",
|
|
305
|
+
11: "#500724",
|
|
306
|
+
12: "#300415"
|
|
286
307
|
},
|
|
287
308
|
rose: {
|
|
288
|
-
1: "#
|
|
289
|
-
2: "#
|
|
290
|
-
3: "#
|
|
291
|
-
4: "#
|
|
292
|
-
5: "#
|
|
293
|
-
6: "#
|
|
294
|
-
7: "#
|
|
295
|
-
8: "#
|
|
296
|
-
9: "#
|
|
297
|
-
10: "#
|
|
298
|
-
11: "#
|
|
309
|
+
1: "#fff1f2",
|
|
310
|
+
2: "#ffe4e6",
|
|
311
|
+
3: "#fecdd3",
|
|
312
|
+
4: "#fda4af",
|
|
313
|
+
5: "#fb7185",
|
|
314
|
+
6: "#f43f5e",
|
|
315
|
+
7: "#e11d48",
|
|
316
|
+
8: "#be123c",
|
|
317
|
+
9: "#9f1239",
|
|
318
|
+
10: "#881337",
|
|
319
|
+
11: "#4c0519",
|
|
320
|
+
12: "#2d030e"
|
|
299
321
|
}
|
|
300
322
|
};
|
|
301
323
|
var defaultTheme = {
|
|
@@ -507,8 +529,8 @@ var defaultTheme = {
|
|
|
507
529
|
}
|
|
508
530
|
},
|
|
509
531
|
screens: {
|
|
510
|
-
sm:
|
|
511
|
-
//
|
|
532
|
+
sm: 576,
|
|
533
|
+
// small tablets / large phones (landscape)
|
|
512
534
|
md: 768,
|
|
513
535
|
// tablets (iPad and up)
|
|
514
536
|
lg: 1024,
|
|
@@ -590,7 +612,18 @@ var MODIFIERS = /* @__PURE__ */ new Set([
|
|
|
590
612
|
"first-line",
|
|
591
613
|
"marker",
|
|
592
614
|
// Print media modifier
|
|
593
|
-
"print"
|
|
615
|
+
"print",
|
|
616
|
+
// Orientation media modifiers (CSS-injection only)
|
|
617
|
+
"landscape",
|
|
618
|
+
"portrait",
|
|
619
|
+
// Accessibility media modifiers (CSS-injection only)
|
|
620
|
+
"motion-reduce",
|
|
621
|
+
"motion-safe",
|
|
622
|
+
"contrast-more",
|
|
623
|
+
"contrast-less",
|
|
624
|
+
// Directionality modifiers (CSS-injection only)
|
|
625
|
+
"rtl",
|
|
626
|
+
"ltr"
|
|
594
627
|
]);
|
|
595
628
|
var UTILITY_PREFIXES = [
|
|
596
629
|
// Multi-word flex
|
|
@@ -767,6 +800,7 @@ var UTILITY_PREFIXES = [
|
|
|
767
800
|
"outline-offset",
|
|
768
801
|
"will-change",
|
|
769
802
|
"mix-blend",
|
|
803
|
+
"bg-blend",
|
|
770
804
|
"decoration",
|
|
771
805
|
"perspective",
|
|
772
806
|
"tint",
|
|
@@ -789,6 +823,8 @@ var UTILITY_PREFIXES = [
|
|
|
789
823
|
"capitalize",
|
|
790
824
|
"normal-case",
|
|
791
825
|
"antialiased",
|
|
826
|
+
"subpixel-antialiased",
|
|
827
|
+
"overflow-ellipsis",
|
|
792
828
|
"truncate",
|
|
793
829
|
"sr-only",
|
|
794
830
|
"not-sr-only",
|
|
@@ -1115,6 +1151,20 @@ var STANDALONE_UTILITIES = /* @__PURE__ */ new Set([
|
|
|
1115
1151
|
"max-h-screen",
|
|
1116
1152
|
"min-w-screen",
|
|
1117
1153
|
"max-w-screen",
|
|
1154
|
+
// max-w named container sizes (Tailwind compat)
|
|
1155
|
+
"max-w-none",
|
|
1156
|
+
"max-w-xs",
|
|
1157
|
+
"max-w-sm",
|
|
1158
|
+
"max-w-md",
|
|
1159
|
+
"max-w-lg",
|
|
1160
|
+
"max-w-xl",
|
|
1161
|
+
"max-w-2xl",
|
|
1162
|
+
"max-w-3xl",
|
|
1163
|
+
"max-w-4xl",
|
|
1164
|
+
"max-w-5xl",
|
|
1165
|
+
"max-w-6xl",
|
|
1166
|
+
"max-w-7xl",
|
|
1167
|
+
"max-w-prose",
|
|
1118
1168
|
// Extended cursors (web-only)
|
|
1119
1169
|
"cursor-grab",
|
|
1120
1170
|
"cursor-grabbing",
|
|
@@ -1504,6 +1554,8 @@ var STANDALONE = {
|
|
|
1504
1554
|
"resize-y": isWeb ? { resize: "vertical" } : null,
|
|
1505
1555
|
"resize-x": isWeb ? { resize: "horizontal" } : null,
|
|
1506
1556
|
antialiased: isWeb ? { WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale" } : null,
|
|
1557
|
+
"subpixel-antialiased": isWeb ? { WebkitFontSmoothing: "subpixel-antialiased", MozOsxFontSmoothing: "auto" } : null,
|
|
1558
|
+
"overflow-ellipsis": isWeb ? { textOverflow: "ellipsis" } : null,
|
|
1507
1559
|
"sr-only": isWeb ? {
|
|
1508
1560
|
position: "absolute",
|
|
1509
1561
|
width: 1,
|
|
@@ -1618,6 +1670,20 @@ var STANDALONE = {
|
|
|
1618
1670
|
"max-h-screen": { maxHeight: "100vh" },
|
|
1619
1671
|
"min-w-screen": isWeb ? { minWidth: "100vw" } : null,
|
|
1620
1672
|
"max-w-screen": isWeb ? { maxWidth: "100vw" } : null,
|
|
1673
|
+
// max-w named container sizes (mirrors Tailwind's container scale)
|
|
1674
|
+
"max-w-none": { maxWidth: "none" },
|
|
1675
|
+
"max-w-xs": { maxWidth: 320 },
|
|
1676
|
+
"max-w-sm": { maxWidth: 384 },
|
|
1677
|
+
"max-w-md": { maxWidth: 448 },
|
|
1678
|
+
"max-w-lg": { maxWidth: 512 },
|
|
1679
|
+
"max-w-xl": { maxWidth: 576 },
|
|
1680
|
+
"max-w-2xl": { maxWidth: 672 },
|
|
1681
|
+
"max-w-3xl": { maxWidth: 768 },
|
|
1682
|
+
"max-w-4xl": { maxWidth: 896 },
|
|
1683
|
+
"max-w-5xl": { maxWidth: 1024 },
|
|
1684
|
+
"max-w-6xl": { maxWidth: 1152 },
|
|
1685
|
+
"max-w-7xl": { maxWidth: 1280 },
|
|
1686
|
+
"max-w-prose": isWeb ? { maxWidth: "65ch" } : null,
|
|
1621
1687
|
// Extended cursors (web-only)
|
|
1622
1688
|
"cursor-grab": isWeb ? { cursor: "grab" } : null,
|
|
1623
1689
|
"cursor-grabbing": isWeb ? { cursor: "grabbing" } : null,
|
|
@@ -2357,7 +2423,7 @@ var RESOLVERS = {
|
|
|
2357
2423
|
};
|
|
2358
2424
|
return widths[value] ? { columnWidth: widths[value] } : null;
|
|
2359
2425
|
},
|
|
2360
|
-
// ── Mix blend mode (web-only)
|
|
2426
|
+
// ── Mix / background blend mode (web-only) ───────────────────────────────
|
|
2361
2427
|
"mix-blend": ({ value }) => {
|
|
2362
2428
|
if (!isWeb) return null;
|
|
2363
2429
|
const modes = [
|
|
@@ -2381,6 +2447,28 @@ var RESOLVERS = {
|
|
|
2381
2447
|
];
|
|
2382
2448
|
return modes.includes(value) ? { mixBlendMode: value } : null;
|
|
2383
2449
|
},
|
|
2450
|
+
"bg-blend": ({ value }) => {
|
|
2451
|
+
if (!isWeb) return null;
|
|
2452
|
+
const modes = [
|
|
2453
|
+
"normal",
|
|
2454
|
+
"multiply",
|
|
2455
|
+
"screen",
|
|
2456
|
+
"overlay",
|
|
2457
|
+
"darken",
|
|
2458
|
+
"lighten",
|
|
2459
|
+
"color-dodge",
|
|
2460
|
+
"color-burn",
|
|
2461
|
+
"hard-light",
|
|
2462
|
+
"soft-light",
|
|
2463
|
+
"difference",
|
|
2464
|
+
"exclusion",
|
|
2465
|
+
"hue",
|
|
2466
|
+
"saturation",
|
|
2467
|
+
"color",
|
|
2468
|
+
"luminosity"
|
|
2469
|
+
];
|
|
2470
|
+
return modes.includes(value) ? { backgroundBlendMode: value } : null;
|
|
2471
|
+
},
|
|
2384
2472
|
// ── Will-change (web-only) ─────────────────────────────────────────────────
|
|
2385
2473
|
"will-change": ({ value, isArbitrary }) => {
|
|
2386
2474
|
if (!isWeb) return null;
|
|
@@ -2957,6 +3045,18 @@ var GROUP_PEER_PREFIX = {
|
|
|
2957
3045
|
var MODE_MODS = /* @__PURE__ */ new Set(["dark", "light", "not-dark", "not-light"]);
|
|
2958
3046
|
var RESPONSIVE_MODS = /* @__PURE__ */ new Set(["sm", "md", "lg", "xl", "2xl"]);
|
|
2959
3047
|
var PRINT_MODS = /* @__PURE__ */ new Set(["print"]);
|
|
3048
|
+
var MEDIA_MODS = {
|
|
3049
|
+
landscape: "(orientation: landscape)",
|
|
3050
|
+
portrait: "(orientation: portrait)",
|
|
3051
|
+
"motion-reduce": "(prefers-reduced-motion: reduce)",
|
|
3052
|
+
"motion-safe": "(prefers-reduced-motion: no-preference)",
|
|
3053
|
+
"contrast-more": "(prefers-contrast: more)",
|
|
3054
|
+
"contrast-less": "(prefers-contrast: less)"
|
|
3055
|
+
};
|
|
3056
|
+
var DIR_MODS = {
|
|
3057
|
+
rtl: '[dir="rtl"]',
|
|
3058
|
+
ltr: '[dir="ltr"]'
|
|
3059
|
+
};
|
|
2960
3060
|
function buildDivideDecls(styles) {
|
|
2961
3061
|
const parts = [];
|
|
2962
3062
|
if ("__divideX" in styles) {
|
|
@@ -2992,12 +3092,17 @@ function injectClassRule(cls, bucketKey, styles, darkMode, important = false) {
|
|
|
2992
3092
|
const hasDark = nonResponsiveMods.includes("dark") || nonResponsiveMods.includes("not-light");
|
|
2993
3093
|
const hasLight = nonResponsiveMods.includes("light") || nonResponsiveMods.includes("not-dark");
|
|
2994
3094
|
const hasPrint = nonResponsiveMods.includes("print");
|
|
3095
|
+
const mediaMods = nonResponsiveMods.filter((m) => m in MEDIA_MODS);
|
|
3096
|
+
const dirMods = nonResponsiveMods.filter((m) => m in DIR_MODS);
|
|
2995
3097
|
const ancestorMods = nonResponsiveMods.filter((m) => m in GROUP_PEER_PREFIX);
|
|
2996
|
-
const pseudoMods = nonResponsiveMods.filter(
|
|
3098
|
+
const pseudoMods = nonResponsiveMods.filter(
|
|
3099
|
+
(m) => !MODE_MODS.has(m) && !(m in GROUP_PEER_PREFIX) && !PRINT_MODS.has(m) && !(m in MEDIA_MODS) && !(m in DIR_MODS)
|
|
3100
|
+
);
|
|
2997
3101
|
const pseudoSuffix = pseudoMods.map((p) => MODIFIER_TO_PSEUDO[p] ?? `:${p}`).join("");
|
|
2998
3102
|
const elementSelector = `.${escaped}${pseudoSuffix}${childSuffix}`;
|
|
2999
3103
|
const ancestorPrefix = ancestorMods.length ? ancestorMods.map((m) => GROUP_PEER_PREFIX[m]).join(" ") + " " : "";
|
|
3000
|
-
const
|
|
3104
|
+
const dirPrefix = dirMods.length ? dirMods.map((m) => DIR_MODS[m]).join(" ") + " " : "";
|
|
3105
|
+
const selector = `${dirPrefix}${ancestorPrefix}${elementSelector}`;
|
|
3001
3106
|
let rule;
|
|
3002
3107
|
if (hasDark) {
|
|
3003
3108
|
if (darkMode === "media") {
|
|
@@ -3021,6 +3126,9 @@ function injectClassRule(cls, bucketKey, styles, darkMode, important = false) {
|
|
|
3021
3126
|
if (hasPrint) {
|
|
3022
3127
|
rule = `@media print { ${rule} }`;
|
|
3023
3128
|
}
|
|
3129
|
+
for (const m of mediaMods) {
|
|
3130
|
+
rule = `@media ${MEDIA_MODS[m]} { ${rule} }`;
|
|
3131
|
+
}
|
|
3024
3132
|
if (responsiveMods.length > 0) {
|
|
3025
3133
|
const screens = getGlobalScreens();
|
|
3026
3134
|
const minWidth = Math.max(...responsiveMods.map((m) => screens[m] ?? 0));
|
|
@@ -3171,6 +3279,17 @@ function matchesMods(mods, isDark, state, breakpoints) {
|
|
|
3171
3279
|
case "xl":
|
|
3172
3280
|
case "2xl":
|
|
3173
3281
|
return breakpoints.has(mod);
|
|
3282
|
+
// CSS-only modifiers — never applied as inline styles
|
|
3283
|
+
case "print":
|
|
3284
|
+
case "landscape":
|
|
3285
|
+
case "portrait":
|
|
3286
|
+
case "motion-reduce":
|
|
3287
|
+
case "motion-safe":
|
|
3288
|
+
case "contrast-more":
|
|
3289
|
+
case "contrast-less":
|
|
3290
|
+
case "rtl":
|
|
3291
|
+
case "ltr":
|
|
3292
|
+
return false;
|
|
3174
3293
|
default:
|
|
3175
3294
|
return false;
|
|
3176
3295
|
}
|