@gram-ai/elements 1.13.5 → 1.13.7
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/elements.cjs +15 -15
- package/dist/elements.css +1 -1
- package/dist/elements.js +1854 -1926
- package/dist/index-C6vUoNWt.cjs +16 -0
- package/dist/{index-DIbAybZr.js → index-SAJg5Cz7.js} +481 -381
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.js +1 -1
- package/package.json +1 -1
- package/dist/index-CgiTs8q9.cjs +0 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { useAssistantState as
|
|
4
|
-
import { parse as
|
|
5
|
-
const
|
|
1
|
+
import { jsxs as fe, jsx as te } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as Fe, useContext as We, forwardRef as Ce, createElement as se, useRef as _e, useState as be, useEffect as Ue } from "react";
|
|
3
|
+
import { useAssistantState as $e } from "@assistant-ui/react";
|
|
4
|
+
import { parse as Be, View as De, Warn as Je } from "vega";
|
|
5
|
+
const qe = Fe(
|
|
6
6
|
void 0
|
|
7
|
-
),
|
|
8
|
-
const e =
|
|
7
|
+
), ze = () => {
|
|
8
|
+
const e = We(qe);
|
|
9
9
|
if (!e)
|
|
10
10
|
throw new Error("useElements must be used within a ElementsProvider");
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Ye = {
|
|
13
13
|
compact: {
|
|
14
14
|
// Padding - small increments (1, 1.5, 2, 2.5, 3)
|
|
15
15
|
"p-xs": "p-1",
|
|
@@ -100,10 +100,10 @@ const $e = Ne(
|
|
|
100
100
|
"text-title": "text-3xl",
|
|
101
101
|
"text-subtitle": "text-lg"
|
|
102
102
|
}
|
|
103
|
-
},
|
|
104
|
-
const { config: e } =
|
|
105
|
-
return (t) =>
|
|
106
|
-
},
|
|
103
|
+
}, Xe = () => {
|
|
104
|
+
const { config: e } = ze(), r = e.theme?.density ?? "normal";
|
|
105
|
+
return (t) => Ye[r][t];
|
|
106
|
+
}, Ze = {
|
|
107
107
|
sharp: {
|
|
108
108
|
sm: "rounded-sm",
|
|
109
109
|
md: "rounded",
|
|
@@ -125,131 +125,131 @@ const $e = Ne(
|
|
|
125
125
|
xl: "rounded-3xl",
|
|
126
126
|
full: "rounded-full"
|
|
127
127
|
}
|
|
128
|
-
},
|
|
129
|
-
const { config: e } =
|
|
130
|
-
return (t) =>
|
|
128
|
+
}, He = () => {
|
|
129
|
+
const { config: e } = ze(), r = e.theme?.radius ?? "soft";
|
|
130
|
+
return (t) => Ze[r][t];
|
|
131
131
|
};
|
|
132
|
-
function
|
|
132
|
+
function Ae(e) {
|
|
133
133
|
var r, t, o = "";
|
|
134
134
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
135
135
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
136
136
|
var a = e.length;
|
|
137
|
-
for (r = 0; r < a; r++) e[r] && (t =
|
|
137
|
+
for (r = 0; r < a; r++) e[r] && (t = Ae(e[r])) && (o && (o += " "), o += t);
|
|
138
138
|
} else for (t in e) e[t] && (o && (o += " "), o += t);
|
|
139
139
|
return o;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r =
|
|
141
|
+
function Ke() {
|
|
142
|
+
for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = Ae(e)) && (o && (o += " "), o += r);
|
|
143
143
|
return o;
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const Qe = (e, r) => {
|
|
146
146
|
const t = new Array(e.length + r.length);
|
|
147
147
|
for (let o = 0; o < e.length; o++)
|
|
148
148
|
t[o] = e[o];
|
|
149
149
|
for (let o = 0; o < r.length; o++)
|
|
150
150
|
t[e.length + o] = r[o];
|
|
151
151
|
return t;
|
|
152
|
-
},
|
|
152
|
+
}, et = (e, r) => ({
|
|
153
153
|
classGroupId: e,
|
|
154
154
|
validator: r
|
|
155
|
-
}),
|
|
155
|
+
}), Se = (e = /* @__PURE__ */ new Map(), r = null, t) => ({
|
|
156
156
|
nextPart: e,
|
|
157
157
|
validators: r,
|
|
158
158
|
classGroupId: t
|
|
159
|
-
}),
|
|
160
|
-
const r =
|
|
159
|
+
}), H = "-", he = [], tt = "arbitrary..", rt = (e) => {
|
|
160
|
+
const r = st(e), {
|
|
161
161
|
conflictingClassGroups: t,
|
|
162
162
|
conflictingClassGroupModifiers: o
|
|
163
163
|
} = e;
|
|
164
164
|
return {
|
|
165
165
|
getClassGroupId: (i) => {
|
|
166
166
|
if (i.startsWith("[") && i.endsWith("]"))
|
|
167
|
-
return
|
|
168
|
-
const
|
|
169
|
-
return
|
|
167
|
+
return ot(i);
|
|
168
|
+
const m = i.split(H), c = m[0] === "" && m.length > 1 ? 1 : 0;
|
|
169
|
+
return Re(m, c, r);
|
|
170
170
|
},
|
|
171
|
-
getConflictingClassGroupIds: (i,
|
|
172
|
-
if (
|
|
173
|
-
const
|
|
174
|
-
return
|
|
171
|
+
getConflictingClassGroupIds: (i, m) => {
|
|
172
|
+
if (m) {
|
|
173
|
+
const c = o[i], g = t[i];
|
|
174
|
+
return c ? g ? Qe(g, c) : c : g || he;
|
|
175
175
|
}
|
|
176
|
-
return t[i] ||
|
|
176
|
+
return t[i] || he;
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
|
-
},
|
|
179
|
+
}, Re = (e, r, t) => {
|
|
180
180
|
if (e.length - r === 0)
|
|
181
181
|
return t.classGroupId;
|
|
182
|
-
const a = e[r],
|
|
183
|
-
if (
|
|
184
|
-
const g =
|
|
182
|
+
const a = e[r], l = t.nextPart.get(a);
|
|
183
|
+
if (l) {
|
|
184
|
+
const g = Re(e, r + 1, l);
|
|
185
185
|
if (g) return g;
|
|
186
186
|
}
|
|
187
187
|
const i = t.validators;
|
|
188
188
|
if (i === null)
|
|
189
189
|
return;
|
|
190
|
-
const
|
|
191
|
-
for (let g = 0; g <
|
|
190
|
+
const m = r === 0 ? e.join(H) : e.slice(r).join(H), c = i.length;
|
|
191
|
+
for (let g = 0; g < c; g++) {
|
|
192
192
|
const f = i[g];
|
|
193
|
-
if (f.validator(
|
|
193
|
+
if (f.validator(m))
|
|
194
194
|
return f.classGroupId;
|
|
195
195
|
}
|
|
196
|
-
},
|
|
196
|
+
}, ot = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
197
197
|
const r = e.slice(1, -1), t = r.indexOf(":"), o = r.slice(0, t);
|
|
198
|
-
return o ?
|
|
199
|
-
})(),
|
|
198
|
+
return o ? tt + o : void 0;
|
|
199
|
+
})(), st = (e) => {
|
|
200
200
|
const {
|
|
201
201
|
theme: r,
|
|
202
202
|
classGroups: t
|
|
203
203
|
} = e;
|
|
204
|
-
return
|
|
205
|
-
},
|
|
206
|
-
const t =
|
|
204
|
+
return nt(t, r);
|
|
205
|
+
}, nt = (e, r) => {
|
|
206
|
+
const t = Se();
|
|
207
207
|
for (const o in e) {
|
|
208
208
|
const a = e[o];
|
|
209
|
-
|
|
209
|
+
ae(a, t, o, r);
|
|
210
210
|
}
|
|
211
211
|
return t;
|
|
212
|
-
},
|
|
212
|
+
}, ae = (e, r, t, o) => {
|
|
213
213
|
const a = e.length;
|
|
214
|
-
for (let
|
|
215
|
-
const i = e[
|
|
216
|
-
|
|
214
|
+
for (let l = 0; l < a; l++) {
|
|
215
|
+
const i = e[l];
|
|
216
|
+
at(i, r, t, o);
|
|
217
217
|
}
|
|
218
|
-
},
|
|
218
|
+
}, at = (e, r, t, o) => {
|
|
219
219
|
if (typeof e == "string") {
|
|
220
|
-
|
|
220
|
+
it(e, r, t);
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
223
|
if (typeof e == "function") {
|
|
224
|
-
|
|
224
|
+
lt(e, r, t, o);
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
|
-
|
|
228
|
-
},
|
|
229
|
-
const o = e === "" ? r :
|
|
227
|
+
ct(e, r, t, o);
|
|
228
|
+
}, it = (e, r, t) => {
|
|
229
|
+
const o = e === "" ? r : Ie(r, e);
|
|
230
230
|
o.classGroupId = t;
|
|
231
|
-
},
|
|
232
|
-
if (
|
|
233
|
-
|
|
231
|
+
}, lt = (e, r, t, o) => {
|
|
232
|
+
if (dt(e)) {
|
|
233
|
+
ae(e(o), r, t, o);
|
|
234
234
|
return;
|
|
235
235
|
}
|
|
236
|
-
r.validators === null && (r.validators = []), r.validators.push(
|
|
237
|
-
},
|
|
238
|
-
const a = Object.entries(e),
|
|
239
|
-
for (let i = 0; i <
|
|
240
|
-
const [
|
|
241
|
-
|
|
236
|
+
r.validators === null && (r.validators = []), r.validators.push(et(t, e));
|
|
237
|
+
}, ct = (e, r, t, o) => {
|
|
238
|
+
const a = Object.entries(e), l = a.length;
|
|
239
|
+
for (let i = 0; i < l; i++) {
|
|
240
|
+
const [m, c] = a[i];
|
|
241
|
+
ae(c, Ie(r, m), t, o);
|
|
242
242
|
}
|
|
243
|
-
},
|
|
243
|
+
}, Ie = (e, r) => {
|
|
244
244
|
let t = e;
|
|
245
|
-
const o = r.split(
|
|
246
|
-
for (let
|
|
247
|
-
const i = o[
|
|
248
|
-
let
|
|
249
|
-
|
|
245
|
+
const o = r.split(H), a = o.length;
|
|
246
|
+
for (let l = 0; l < a; l++) {
|
|
247
|
+
const i = o[l];
|
|
248
|
+
let m = t.nextPart.get(i);
|
|
249
|
+
m || (m = Se(), t.nextPart.set(i, m)), t = m;
|
|
250
250
|
}
|
|
251
251
|
return t;
|
|
252
|
-
},
|
|
252
|
+
}, dt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, pt = (e) => {
|
|
253
253
|
if (e < 1)
|
|
254
254
|
return {
|
|
255
255
|
get: () => {
|
|
@@ -258,177 +258,177 @@ const Xe = (e, r) => {
|
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
260
|
let r = 0, t = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
261
|
-
const a = (
|
|
262
|
-
t[
|
|
261
|
+
const a = (l, i) => {
|
|
262
|
+
t[l] = i, r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ Object.create(null));
|
|
263
263
|
};
|
|
264
264
|
return {
|
|
265
|
-
get(
|
|
266
|
-
let i = t[
|
|
265
|
+
get(l) {
|
|
266
|
+
let i = t[l];
|
|
267
267
|
if (i !== void 0)
|
|
268
268
|
return i;
|
|
269
|
-
if ((i = o[
|
|
270
|
-
return a(
|
|
269
|
+
if ((i = o[l]) !== void 0)
|
|
270
|
+
return a(l, i), i;
|
|
271
271
|
},
|
|
272
|
-
set(
|
|
273
|
-
|
|
272
|
+
set(l, i) {
|
|
273
|
+
l in t ? t[l] = i : a(l, i);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
},
|
|
276
|
+
}, ne = "!", xe = ":", mt = [], ye = (e, r, t, o, a) => ({
|
|
277
277
|
modifiers: e,
|
|
278
278
|
hasImportantModifier: r,
|
|
279
279
|
baseClassName: t,
|
|
280
280
|
maybePostfixModifierPosition: o,
|
|
281
281
|
isExternal: a
|
|
282
|
-
}),
|
|
282
|
+
}), ut = (e) => {
|
|
283
283
|
const {
|
|
284
284
|
prefix: r,
|
|
285
285
|
experimentalParseClassName: t
|
|
286
286
|
} = e;
|
|
287
287
|
let o = (a) => {
|
|
288
|
-
const
|
|
289
|
-
let i = 0,
|
|
288
|
+
const l = [];
|
|
289
|
+
let i = 0, m = 0, c = 0, g;
|
|
290
290
|
const f = a.length;
|
|
291
|
-
for (let
|
|
292
|
-
const w = a[
|
|
293
|
-
if (i === 0 &&
|
|
294
|
-
if (w ===
|
|
295
|
-
|
|
291
|
+
for (let z = 0; z < f; z++) {
|
|
292
|
+
const w = a[z];
|
|
293
|
+
if (i === 0 && m === 0) {
|
|
294
|
+
if (w === xe) {
|
|
295
|
+
l.push(a.slice(c, z)), c = z + 1;
|
|
296
296
|
continue;
|
|
297
297
|
}
|
|
298
298
|
if (w === "/") {
|
|
299
|
-
g =
|
|
299
|
+
g = z;
|
|
300
300
|
continue;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
w === "[" ? i++ : w === "]" ? i-- : w === "(" ?
|
|
303
|
+
w === "[" ? i++ : w === "]" ? i-- : w === "(" ? m++ : w === ")" && m--;
|
|
304
304
|
}
|
|
305
|
-
const v =
|
|
306
|
-
let x = v,
|
|
307
|
-
v.endsWith(
|
|
305
|
+
const v = l.length === 0 ? a : a.slice(c);
|
|
306
|
+
let x = v, C = !1;
|
|
307
|
+
v.endsWith(ne) ? (x = v.slice(0, -1), C = !0) : (
|
|
308
308
|
/**
|
|
309
309
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
310
310
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
311
311
|
*/
|
|
312
|
-
v.startsWith(
|
|
312
|
+
v.startsWith(ne) && (x = v.slice(1), C = !0)
|
|
313
313
|
);
|
|
314
|
-
const
|
|
315
|
-
return
|
|
314
|
+
const A = g && g > c ? g - c : void 0;
|
|
315
|
+
return ye(l, C, x, A);
|
|
316
316
|
};
|
|
317
317
|
if (r) {
|
|
318
|
-
const a = r +
|
|
319
|
-
o = (i) => i.startsWith(a) ?
|
|
318
|
+
const a = r + xe, l = o;
|
|
319
|
+
o = (i) => i.startsWith(a) ? l(i.slice(a.length)) : ye(mt, !1, i, void 0, !0);
|
|
320
320
|
}
|
|
321
321
|
if (t) {
|
|
322
322
|
const a = o;
|
|
323
|
-
o = (
|
|
324
|
-
className:
|
|
323
|
+
o = (l) => t({
|
|
324
|
+
className: l,
|
|
325
325
|
parseClassName: a
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
return o;
|
|
329
|
-
},
|
|
329
|
+
}, gt = (e) => {
|
|
330
330
|
const r = /* @__PURE__ */ new Map();
|
|
331
331
|
return e.orderSensitiveModifiers.forEach((t, o) => {
|
|
332
332
|
r.set(t, 1e6 + o);
|
|
333
333
|
}), (t) => {
|
|
334
334
|
const o = [];
|
|
335
335
|
let a = [];
|
|
336
|
-
for (let
|
|
337
|
-
const i = t[
|
|
338
|
-
|
|
336
|
+
for (let l = 0; l < t.length; l++) {
|
|
337
|
+
const i = t[l], m = i[0] === "[", c = r.has(i);
|
|
338
|
+
m || c ? (a.length > 0 && (a.sort(), o.push(...a), a = []), o.push(i)) : a.push(i);
|
|
339
339
|
}
|
|
340
340
|
return a.length > 0 && (a.sort(), o.push(...a)), o;
|
|
341
341
|
};
|
|
342
|
-
},
|
|
343
|
-
cache:
|
|
344
|
-
parseClassName:
|
|
345
|
-
sortModifiers:
|
|
346
|
-
...
|
|
347
|
-
}),
|
|
342
|
+
}, ft = (e) => ({
|
|
343
|
+
cache: pt(e.cacheSize),
|
|
344
|
+
parseClassName: ut(e),
|
|
345
|
+
sortModifiers: gt(e),
|
|
346
|
+
...rt(e)
|
|
347
|
+
}), bt = /\s+/, ht = (e, r) => {
|
|
348
348
|
const {
|
|
349
349
|
parseClassName: t,
|
|
350
350
|
getClassGroupId: o,
|
|
351
351
|
getConflictingClassGroupIds: a,
|
|
352
|
-
sortModifiers:
|
|
353
|
-
} = r, i = [],
|
|
354
|
-
let
|
|
355
|
-
for (let g =
|
|
356
|
-
const f =
|
|
352
|
+
sortModifiers: l
|
|
353
|
+
} = r, i = [], m = e.trim().split(bt);
|
|
354
|
+
let c = "";
|
|
355
|
+
for (let g = m.length - 1; g >= 0; g -= 1) {
|
|
356
|
+
const f = m[g], {
|
|
357
357
|
isExternal: v,
|
|
358
358
|
modifiers: x,
|
|
359
|
-
hasImportantModifier:
|
|
360
|
-
baseClassName:
|
|
361
|
-
maybePostfixModifierPosition:
|
|
359
|
+
hasImportantModifier: C,
|
|
360
|
+
baseClassName: A,
|
|
361
|
+
maybePostfixModifierPosition: z
|
|
362
362
|
} = t(f);
|
|
363
363
|
if (v) {
|
|
364
|
-
|
|
364
|
+
c = f + (c.length > 0 ? " " + c : c);
|
|
365
365
|
continue;
|
|
366
366
|
}
|
|
367
|
-
let w = !!
|
|
368
|
-
if (!
|
|
367
|
+
let w = !!z, E = o(w ? A.substring(0, z) : A);
|
|
368
|
+
if (!E) {
|
|
369
369
|
if (!w) {
|
|
370
|
-
|
|
370
|
+
c = f + (c.length > 0 ? " " + c : c);
|
|
371
371
|
continue;
|
|
372
372
|
}
|
|
373
|
-
if (
|
|
374
|
-
|
|
373
|
+
if (E = o(A), !E) {
|
|
374
|
+
c = f + (c.length > 0 ? " " + c : c);
|
|
375
375
|
continue;
|
|
376
376
|
}
|
|
377
377
|
w = !1;
|
|
378
378
|
}
|
|
379
|
-
const $ = x.length === 0 ? "" : x.length === 1 ? x[0] :
|
|
380
|
-
if (i.indexOf(
|
|
379
|
+
const $ = x.length === 0 ? "" : x.length === 1 ? x[0] : l(x).join(":"), W = C ? $ + ne : $, P = W + E;
|
|
380
|
+
if (i.indexOf(P) > -1)
|
|
381
381
|
continue;
|
|
382
|
-
i.push(
|
|
383
|
-
const
|
|
384
|
-
for (let
|
|
385
|
-
const _ =
|
|
382
|
+
i.push(P);
|
|
383
|
+
const j = a(E, w);
|
|
384
|
+
for (let M = 0; M < j.length; ++M) {
|
|
385
|
+
const _ = j[M];
|
|
386
386
|
i.push(W + _);
|
|
387
387
|
}
|
|
388
|
-
|
|
388
|
+
c = f + (c.length > 0 ? " " + c : c);
|
|
389
389
|
}
|
|
390
|
-
return
|
|
391
|
-
},
|
|
390
|
+
return c;
|
|
391
|
+
}, xt = (...e) => {
|
|
392
392
|
let r = 0, t, o, a = "";
|
|
393
393
|
for (; r < e.length; )
|
|
394
|
-
(t = e[r++]) && (o =
|
|
394
|
+
(t = e[r++]) && (o = Ne(t)) && (a && (a += " "), a += o);
|
|
395
395
|
return a;
|
|
396
|
-
},
|
|
396
|
+
}, Ne = (e) => {
|
|
397
397
|
if (typeof e == "string")
|
|
398
398
|
return e;
|
|
399
399
|
let r, t = "";
|
|
400
400
|
for (let o = 0; o < e.length; o++)
|
|
401
|
-
e[o] && (r =
|
|
401
|
+
e[o] && (r = Ne(e[o])) && (t && (t += " "), t += r);
|
|
402
402
|
return t;
|
|
403
|
-
},
|
|
404
|
-
let t, o, a,
|
|
405
|
-
const i = (
|
|
403
|
+
}, yt = (e, ...r) => {
|
|
404
|
+
let t, o, a, l;
|
|
405
|
+
const i = (c) => {
|
|
406
406
|
const g = r.reduce((f, v) => v(f), e());
|
|
407
|
-
return t =
|
|
408
|
-
},
|
|
409
|
-
const g = o(
|
|
407
|
+
return t = ft(g), o = t.cache.get, a = t.cache.set, l = m, m(c);
|
|
408
|
+
}, m = (c) => {
|
|
409
|
+
const g = o(c);
|
|
410
410
|
if (g)
|
|
411
411
|
return g;
|
|
412
|
-
const f =
|
|
413
|
-
return a(
|
|
412
|
+
const f = ht(c, t);
|
|
413
|
+
return a(c, f), f;
|
|
414
414
|
};
|
|
415
|
-
return
|
|
416
|
-
},
|
|
417
|
-
const r = (t) => t[e] ||
|
|
415
|
+
return l = i, (...c) => l(xt(...c));
|
|
416
|
+
}, wt = [], b = (e) => {
|
|
417
|
+
const r = (t) => t[e] || wt;
|
|
418
418
|
return r.isThemeGetter = !0, r;
|
|
419
|
-
},
|
|
419
|
+
}, Ee = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Me = /^\((?:(\w[\w-]*):)?(.+)\)$/i, kt = /^\d+\/\d+$/, vt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ct = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, zt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, At = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, St = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, L = (e) => kt.test(e), u = (e) => !!e && !Number.isNaN(Number(e)), N = (e) => !!e && Number.isInteger(Number(e)), re = (e) => e.endsWith("%") && u(e.slice(0, -1)), I = (e) => vt.test(e), Rt = () => !0, It = (e) => (
|
|
420
420
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
421
421
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
422
422
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
423
|
-
|
|
424
|
-
),
|
|
425
|
-
const o =
|
|
423
|
+
Ct.test(e) && !zt.test(e)
|
|
424
|
+
), Oe = () => !1, Nt = (e) => At.test(e), Et = (e) => St.test(e), Mt = (e) => !s(e) && !n(e), Ot = (e) => V(e, je, Oe), s = (e) => Ee.test(e), T = (e) => V(e, Ge, It), oe = (e) => V(e, Lt, u), we = (e) => V(e, Te, Oe), Tt = (e) => V(e, Pe, Et), X = (e) => V(e, Le, Nt), n = (e) => Me.test(e), U = (e) => F(e, Ge), Pt = (e) => F(e, Vt), ke = (e) => F(e, Te), jt = (e) => F(e, je), Gt = (e) => F(e, Pe), Z = (e) => F(e, Le, !0), V = (e, r, t) => {
|
|
425
|
+
const o = Ee.exec(e);
|
|
426
426
|
return o ? o[1] ? r(o[1]) : t(o[2]) : !1;
|
|
427
427
|
}, F = (e, r, t = !1) => {
|
|
428
|
-
const o =
|
|
428
|
+
const o = Me.exec(e);
|
|
429
429
|
return o ? o[1] ? r(o[1]) : t : !1;
|
|
430
|
-
},
|
|
431
|
-
const e = b("color"), r = b("font"), t = b("text"), o = b("font-weight"), a = b("tracking"),
|
|
430
|
+
}, Te = (e) => e === "position" || e === "percentage", Pe = (e) => e === "image" || e === "url", je = (e) => e === "length" || e === "size" || e === "bg-size", Ge = (e) => e === "length", Lt = (e) => e === "number", Vt = (e) => e === "family-name", Le = (e) => e === "shadow", Ft = () => {
|
|
431
|
+
const e = b("color"), r = b("font"), t = b("text"), o = b("font-weight"), a = b("tracking"), l = b("leading"), i = b("breakpoint"), m = b("container"), c = b("spacing"), g = b("radius"), f = b("shadow"), v = b("inset-shadow"), x = b("text-shadow"), C = b("drop-shadow"), A = b("blur"), z = b("perspective"), w = b("aspect"), E = b("ease"), $ = b("animate"), W = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [
|
|
432
432
|
"center",
|
|
433
433
|
"top",
|
|
434
434
|
"bottom",
|
|
@@ -446,15 +446,15 @@ const Xe = (e, r) => {
|
|
|
446
446
|
"bottom-left",
|
|
447
447
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
448
448
|
"left-bottom"
|
|
449
|
-
],
|
|
450
|
-
span: ["full",
|
|
451
|
-
},
|
|
449
|
+
], j = () => [...P(), n, s], M = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], p = () => [n, s, c], S = () => [L, "full", "auto", ...p()], ie = () => [N, "none", "subgrid", n, s], le = () => ["auto", {
|
|
450
|
+
span: ["full", N, n, s]
|
|
451
|
+
}, N, n, s], B = () => [N, "auto", n, s], ce = () => ["auto", "min", "max", "fr", n, s], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], R = () => ["auto", ...p()], O = () => [L, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...p()], d = () => [e, n, s], de = () => [...P(), ke, we, {
|
|
452
452
|
position: [n, s]
|
|
453
|
-
}],
|
|
453
|
+
}], pe = () => ["no-repeat", {
|
|
454
454
|
repeat: ["", "x", "y", "space", "round"]
|
|
455
|
-
}],
|
|
455
|
+
}], me = () => ["auto", "cover", "contain", jt, Ot, {
|
|
456
456
|
size: [n, s]
|
|
457
|
-
}],
|
|
457
|
+
}], Q = () => [re, U, T], y = () => [
|
|
458
458
|
// Deprecated since Tailwind CSS v4.0.0
|
|
459
459
|
"",
|
|
460
460
|
"none",
|
|
@@ -462,35 +462,35 @@ const Xe = (e, r) => {
|
|
|
462
462
|
g,
|
|
463
463
|
n,
|
|
464
464
|
s
|
|
465
|
-
], k = () => ["",
|
|
465
|
+
], k = () => ["", u, U, T], D = () => ["solid", "dashed", "dotted", "double"], ue = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], h = () => [u, re, ke, we], ge = () => [
|
|
466
466
|
// Deprecated since Tailwind CSS v4.0.0
|
|
467
467
|
"",
|
|
468
468
|
"none",
|
|
469
|
-
|
|
469
|
+
A,
|
|
470
470
|
n,
|
|
471
471
|
s
|
|
472
|
-
],
|
|
472
|
+
], J = () => ["none", u, n, s], q = () => ["none", u, n, s], ee = () => [u, n, s], Y = () => [L, "full", ...p()];
|
|
473
473
|
return {
|
|
474
474
|
cacheSize: 500,
|
|
475
475
|
theme: {
|
|
476
476
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
477
477
|
aspect: ["video"],
|
|
478
|
-
blur: [
|
|
479
|
-
breakpoint: [
|
|
480
|
-
color: [
|
|
481
|
-
container: [
|
|
482
|
-
"drop-shadow": [
|
|
478
|
+
blur: [I],
|
|
479
|
+
breakpoint: [I],
|
|
480
|
+
color: [Rt],
|
|
481
|
+
container: [I],
|
|
482
|
+
"drop-shadow": [I],
|
|
483
483
|
ease: ["in", "out", "in-out"],
|
|
484
|
-
font: [
|
|
484
|
+
font: [Mt],
|
|
485
485
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
486
|
-
"inset-shadow": [
|
|
486
|
+
"inset-shadow": [I],
|
|
487
487
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
488
488
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
489
|
-
radius: [
|
|
490
|
-
shadow: [
|
|
491
|
-
spacing: ["px",
|
|
492
|
-
text: [
|
|
493
|
-
"text-shadow": [
|
|
489
|
+
radius: [I],
|
|
490
|
+
shadow: [I],
|
|
491
|
+
spacing: ["px", u],
|
|
492
|
+
text: [I],
|
|
493
|
+
"text-shadow": [I],
|
|
494
494
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
495
495
|
},
|
|
496
496
|
classGroups: {
|
|
@@ -515,7 +515,7 @@ const Xe = (e, r) => {
|
|
|
515
515
|
* @see https://tailwindcss.com/docs/columns
|
|
516
516
|
*/
|
|
517
517
|
columns: [{
|
|
518
|
-
columns: [
|
|
518
|
+
columns: [u, s, n, m]
|
|
519
519
|
}],
|
|
520
520
|
/**
|
|
521
521
|
* Break After
|
|
@@ -593,28 +593,28 @@ const Xe = (e, r) => {
|
|
|
593
593
|
* @see https://tailwindcss.com/docs/object-position
|
|
594
594
|
*/
|
|
595
595
|
"object-position": [{
|
|
596
|
-
object:
|
|
596
|
+
object: j()
|
|
597
597
|
}],
|
|
598
598
|
/**
|
|
599
599
|
* Overflow
|
|
600
600
|
* @see https://tailwindcss.com/docs/overflow
|
|
601
601
|
*/
|
|
602
602
|
overflow: [{
|
|
603
|
-
overflow:
|
|
603
|
+
overflow: M()
|
|
604
604
|
}],
|
|
605
605
|
/**
|
|
606
606
|
* Overflow X
|
|
607
607
|
* @see https://tailwindcss.com/docs/overflow
|
|
608
608
|
*/
|
|
609
609
|
"overflow-x": [{
|
|
610
|
-
"overflow-x":
|
|
610
|
+
"overflow-x": M()
|
|
611
611
|
}],
|
|
612
612
|
/**
|
|
613
613
|
* Overflow Y
|
|
614
614
|
* @see https://tailwindcss.com/docs/overflow
|
|
615
615
|
*/
|
|
616
616
|
"overflow-y": [{
|
|
617
|
-
"overflow-y":
|
|
617
|
+
"overflow-y": M()
|
|
618
618
|
}],
|
|
619
619
|
/**
|
|
620
620
|
* Overscroll Behavior
|
|
@@ -647,63 +647,63 @@ const Xe = (e, r) => {
|
|
|
647
647
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
648
648
|
*/
|
|
649
649
|
inset: [{
|
|
650
|
-
inset:
|
|
650
|
+
inset: S()
|
|
651
651
|
}],
|
|
652
652
|
/**
|
|
653
653
|
* Right / Left
|
|
654
654
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
655
655
|
*/
|
|
656
656
|
"inset-x": [{
|
|
657
|
-
"inset-x":
|
|
657
|
+
"inset-x": S()
|
|
658
658
|
}],
|
|
659
659
|
/**
|
|
660
660
|
* Top / Bottom
|
|
661
661
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
662
662
|
*/
|
|
663
663
|
"inset-y": [{
|
|
664
|
-
"inset-y":
|
|
664
|
+
"inset-y": S()
|
|
665
665
|
}],
|
|
666
666
|
/**
|
|
667
667
|
* Start
|
|
668
668
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
669
669
|
*/
|
|
670
670
|
start: [{
|
|
671
|
-
start:
|
|
671
|
+
start: S()
|
|
672
672
|
}],
|
|
673
673
|
/**
|
|
674
674
|
* End
|
|
675
675
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
676
676
|
*/
|
|
677
677
|
end: [{
|
|
678
|
-
end:
|
|
678
|
+
end: S()
|
|
679
679
|
}],
|
|
680
680
|
/**
|
|
681
681
|
* Top
|
|
682
682
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
683
683
|
*/
|
|
684
684
|
top: [{
|
|
685
|
-
top:
|
|
685
|
+
top: S()
|
|
686
686
|
}],
|
|
687
687
|
/**
|
|
688
688
|
* Right
|
|
689
689
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
690
690
|
*/
|
|
691
691
|
right: [{
|
|
692
|
-
right:
|
|
692
|
+
right: S()
|
|
693
693
|
}],
|
|
694
694
|
/**
|
|
695
695
|
* Bottom
|
|
696
696
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
697
697
|
*/
|
|
698
698
|
bottom: [{
|
|
699
|
-
bottom:
|
|
699
|
+
bottom: S()
|
|
700
700
|
}],
|
|
701
701
|
/**
|
|
702
702
|
* Left
|
|
703
703
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
704
704
|
*/
|
|
705
705
|
left: [{
|
|
706
|
-
left:
|
|
706
|
+
left: S()
|
|
707
707
|
}],
|
|
708
708
|
/**
|
|
709
709
|
* Visibility
|
|
@@ -715,7 +715,7 @@ const Xe = (e, r) => {
|
|
|
715
715
|
* @see https://tailwindcss.com/docs/z-index
|
|
716
716
|
*/
|
|
717
717
|
z: [{
|
|
718
|
-
z: [
|
|
718
|
+
z: [N, "auto", n, s]
|
|
719
719
|
}],
|
|
720
720
|
// ------------------------
|
|
721
721
|
// --- Flexbox and Grid ---
|
|
@@ -725,7 +725,7 @@ const Xe = (e, r) => {
|
|
|
725
725
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
726
726
|
*/
|
|
727
727
|
basis: [{
|
|
728
|
-
basis: [L, "full", "auto",
|
|
728
|
+
basis: [L, "full", "auto", m, ...p()]
|
|
729
729
|
}],
|
|
730
730
|
/**
|
|
731
731
|
* Flex Direction
|
|
@@ -746,84 +746,84 @@ const Xe = (e, r) => {
|
|
|
746
746
|
* @see https://tailwindcss.com/docs/flex
|
|
747
747
|
*/
|
|
748
748
|
flex: [{
|
|
749
|
-
flex: [
|
|
749
|
+
flex: [u, L, "auto", "initial", "none", s]
|
|
750
750
|
}],
|
|
751
751
|
/**
|
|
752
752
|
* Flex Grow
|
|
753
753
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
754
754
|
*/
|
|
755
755
|
grow: [{
|
|
756
|
-
grow: ["",
|
|
756
|
+
grow: ["", u, n, s]
|
|
757
757
|
}],
|
|
758
758
|
/**
|
|
759
759
|
* Flex Shrink
|
|
760
760
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
761
761
|
*/
|
|
762
762
|
shrink: [{
|
|
763
|
-
shrink: ["",
|
|
763
|
+
shrink: ["", u, n, s]
|
|
764
764
|
}],
|
|
765
765
|
/**
|
|
766
766
|
* Order
|
|
767
767
|
* @see https://tailwindcss.com/docs/order
|
|
768
768
|
*/
|
|
769
769
|
order: [{
|
|
770
|
-
order: [
|
|
770
|
+
order: [N, "first", "last", "none", n, s]
|
|
771
771
|
}],
|
|
772
772
|
/**
|
|
773
773
|
* Grid Template Columns
|
|
774
774
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
775
775
|
*/
|
|
776
776
|
"grid-cols": [{
|
|
777
|
-
"grid-cols":
|
|
777
|
+
"grid-cols": ie()
|
|
778
778
|
}],
|
|
779
779
|
/**
|
|
780
780
|
* Grid Column Start / End
|
|
781
781
|
* @see https://tailwindcss.com/docs/grid-column
|
|
782
782
|
*/
|
|
783
783
|
"col-start-end": [{
|
|
784
|
-
col:
|
|
784
|
+
col: le()
|
|
785
785
|
}],
|
|
786
786
|
/**
|
|
787
787
|
* Grid Column Start
|
|
788
788
|
* @see https://tailwindcss.com/docs/grid-column
|
|
789
789
|
*/
|
|
790
790
|
"col-start": [{
|
|
791
|
-
"col-start":
|
|
791
|
+
"col-start": B()
|
|
792
792
|
}],
|
|
793
793
|
/**
|
|
794
794
|
* Grid Column End
|
|
795
795
|
* @see https://tailwindcss.com/docs/grid-column
|
|
796
796
|
*/
|
|
797
797
|
"col-end": [{
|
|
798
|
-
"col-end":
|
|
798
|
+
"col-end": B()
|
|
799
799
|
}],
|
|
800
800
|
/**
|
|
801
801
|
* Grid Template Rows
|
|
802
802
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
803
803
|
*/
|
|
804
804
|
"grid-rows": [{
|
|
805
|
-
"grid-rows":
|
|
805
|
+
"grid-rows": ie()
|
|
806
806
|
}],
|
|
807
807
|
/**
|
|
808
808
|
* Grid Row Start / End
|
|
809
809
|
* @see https://tailwindcss.com/docs/grid-row
|
|
810
810
|
*/
|
|
811
811
|
"row-start-end": [{
|
|
812
|
-
row:
|
|
812
|
+
row: le()
|
|
813
813
|
}],
|
|
814
814
|
/**
|
|
815
815
|
* Grid Row Start
|
|
816
816
|
* @see https://tailwindcss.com/docs/grid-row
|
|
817
817
|
*/
|
|
818
818
|
"row-start": [{
|
|
819
|
-
"row-start":
|
|
819
|
+
"row-start": B()
|
|
820
820
|
}],
|
|
821
821
|
/**
|
|
822
822
|
* Grid Row End
|
|
823
823
|
* @see https://tailwindcss.com/docs/grid-row
|
|
824
824
|
*/
|
|
825
825
|
"row-end": [{
|
|
826
|
-
"row-end":
|
|
826
|
+
"row-end": B()
|
|
827
827
|
}],
|
|
828
828
|
/**
|
|
829
829
|
* Grid Auto Flow
|
|
@@ -837,14 +837,14 @@ const Xe = (e, r) => {
|
|
|
837
837
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
838
838
|
*/
|
|
839
839
|
"auto-cols": [{
|
|
840
|
-
"auto-cols":
|
|
840
|
+
"auto-cols": ce()
|
|
841
841
|
}],
|
|
842
842
|
/**
|
|
843
843
|
* Grid Auto Rows
|
|
844
844
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
845
845
|
*/
|
|
846
846
|
"auto-rows": [{
|
|
847
|
-
"auto-rows":
|
|
847
|
+
"auto-rows": ce()
|
|
848
848
|
}],
|
|
849
849
|
/**
|
|
850
850
|
* Gap
|
|
@@ -872,35 +872,35 @@ const Xe = (e, r) => {
|
|
|
872
872
|
* @see https://tailwindcss.com/docs/justify-content
|
|
873
873
|
*/
|
|
874
874
|
"justify-content": [{
|
|
875
|
-
justify: [...
|
|
875
|
+
justify: [...K(), "normal"]
|
|
876
876
|
}],
|
|
877
877
|
/**
|
|
878
878
|
* Justify Items
|
|
879
879
|
* @see https://tailwindcss.com/docs/justify-items
|
|
880
880
|
*/
|
|
881
881
|
"justify-items": [{
|
|
882
|
-
"justify-items": [...
|
|
882
|
+
"justify-items": [...G(), "normal"]
|
|
883
883
|
}],
|
|
884
884
|
/**
|
|
885
885
|
* Justify Self
|
|
886
886
|
* @see https://tailwindcss.com/docs/justify-self
|
|
887
887
|
*/
|
|
888
888
|
"justify-self": [{
|
|
889
|
-
"justify-self": ["auto", ...
|
|
889
|
+
"justify-self": ["auto", ...G()]
|
|
890
890
|
}],
|
|
891
891
|
/**
|
|
892
892
|
* Align Content
|
|
893
893
|
* @see https://tailwindcss.com/docs/align-content
|
|
894
894
|
*/
|
|
895
895
|
"align-content": [{
|
|
896
|
-
content: ["normal", ...
|
|
896
|
+
content: ["normal", ...K()]
|
|
897
897
|
}],
|
|
898
898
|
/**
|
|
899
899
|
* Align Items
|
|
900
900
|
* @see https://tailwindcss.com/docs/align-items
|
|
901
901
|
*/
|
|
902
902
|
"align-items": [{
|
|
903
|
-
items: [...
|
|
903
|
+
items: [...G(), {
|
|
904
904
|
baseline: ["", "last"]
|
|
905
905
|
}]
|
|
906
906
|
}],
|
|
@@ -909,7 +909,7 @@ const Xe = (e, r) => {
|
|
|
909
909
|
* @see https://tailwindcss.com/docs/align-self
|
|
910
910
|
*/
|
|
911
911
|
"align-self": [{
|
|
912
|
-
self: ["auto", ...
|
|
912
|
+
self: ["auto", ...G(), {
|
|
913
913
|
baseline: ["", "last"]
|
|
914
914
|
}]
|
|
915
915
|
}],
|
|
@@ -918,21 +918,21 @@ const Xe = (e, r) => {
|
|
|
918
918
|
* @see https://tailwindcss.com/docs/place-content
|
|
919
919
|
*/
|
|
920
920
|
"place-content": [{
|
|
921
|
-
"place-content":
|
|
921
|
+
"place-content": K()
|
|
922
922
|
}],
|
|
923
923
|
/**
|
|
924
924
|
* Place Items
|
|
925
925
|
* @see https://tailwindcss.com/docs/place-items
|
|
926
926
|
*/
|
|
927
927
|
"place-items": [{
|
|
928
|
-
"place-items": [...
|
|
928
|
+
"place-items": [...G(), "baseline"]
|
|
929
929
|
}],
|
|
930
930
|
/**
|
|
931
931
|
* Place Self
|
|
932
932
|
* @see https://tailwindcss.com/docs/place-self
|
|
933
933
|
*/
|
|
934
934
|
"place-self": [{
|
|
935
|
-
"place-self": ["auto", ...
|
|
935
|
+
"place-self": ["auto", ...G()]
|
|
936
936
|
}],
|
|
937
937
|
// Spacing
|
|
938
938
|
/**
|
|
@@ -1003,63 +1003,63 @@ const Xe = (e, r) => {
|
|
|
1003
1003
|
* @see https://tailwindcss.com/docs/margin
|
|
1004
1004
|
*/
|
|
1005
1005
|
m: [{
|
|
1006
|
-
m:
|
|
1006
|
+
m: R()
|
|
1007
1007
|
}],
|
|
1008
1008
|
/**
|
|
1009
1009
|
* Margin X
|
|
1010
1010
|
* @see https://tailwindcss.com/docs/margin
|
|
1011
1011
|
*/
|
|
1012
1012
|
mx: [{
|
|
1013
|
-
mx:
|
|
1013
|
+
mx: R()
|
|
1014
1014
|
}],
|
|
1015
1015
|
/**
|
|
1016
1016
|
* Margin Y
|
|
1017
1017
|
* @see https://tailwindcss.com/docs/margin
|
|
1018
1018
|
*/
|
|
1019
1019
|
my: [{
|
|
1020
|
-
my:
|
|
1020
|
+
my: R()
|
|
1021
1021
|
}],
|
|
1022
1022
|
/**
|
|
1023
1023
|
* Margin Start
|
|
1024
1024
|
* @see https://tailwindcss.com/docs/margin
|
|
1025
1025
|
*/
|
|
1026
1026
|
ms: [{
|
|
1027
|
-
ms:
|
|
1027
|
+
ms: R()
|
|
1028
1028
|
}],
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Margin End
|
|
1031
1031
|
* @see https://tailwindcss.com/docs/margin
|
|
1032
1032
|
*/
|
|
1033
1033
|
me: [{
|
|
1034
|
-
me:
|
|
1034
|
+
me: R()
|
|
1035
1035
|
}],
|
|
1036
1036
|
/**
|
|
1037
1037
|
* Margin Top
|
|
1038
1038
|
* @see https://tailwindcss.com/docs/margin
|
|
1039
1039
|
*/
|
|
1040
1040
|
mt: [{
|
|
1041
|
-
mt:
|
|
1041
|
+
mt: R()
|
|
1042
1042
|
}],
|
|
1043
1043
|
/**
|
|
1044
1044
|
* Margin Right
|
|
1045
1045
|
* @see https://tailwindcss.com/docs/margin
|
|
1046
1046
|
*/
|
|
1047
1047
|
mr: [{
|
|
1048
|
-
mr:
|
|
1048
|
+
mr: R()
|
|
1049
1049
|
}],
|
|
1050
1050
|
/**
|
|
1051
1051
|
* Margin Bottom
|
|
1052
1052
|
* @see https://tailwindcss.com/docs/margin
|
|
1053
1053
|
*/
|
|
1054
1054
|
mb: [{
|
|
1055
|
-
mb:
|
|
1055
|
+
mb: R()
|
|
1056
1056
|
}],
|
|
1057
1057
|
/**
|
|
1058
1058
|
* Margin Left
|
|
1059
1059
|
* @see https://tailwindcss.com/docs/margin
|
|
1060
1060
|
*/
|
|
1061
1061
|
ml: [{
|
|
1062
|
-
ml:
|
|
1062
|
+
ml: R()
|
|
1063
1063
|
}],
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Space Between X
|
|
@@ -1093,14 +1093,14 @@ const Xe = (e, r) => {
|
|
|
1093
1093
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1094
1094
|
*/
|
|
1095
1095
|
size: [{
|
|
1096
|
-
size:
|
|
1096
|
+
size: O()
|
|
1097
1097
|
}],
|
|
1098
1098
|
/**
|
|
1099
1099
|
* Width
|
|
1100
1100
|
* @see https://tailwindcss.com/docs/width
|
|
1101
1101
|
*/
|
|
1102
1102
|
w: [{
|
|
1103
|
-
w: [
|
|
1103
|
+
w: [m, "screen", ...O()]
|
|
1104
1104
|
}],
|
|
1105
1105
|
/**
|
|
1106
1106
|
* Min-Width
|
|
@@ -1108,11 +1108,11 @@ const Xe = (e, r) => {
|
|
|
1108
1108
|
*/
|
|
1109
1109
|
"min-w": [{
|
|
1110
1110
|
"min-w": [
|
|
1111
|
-
|
|
1111
|
+
m,
|
|
1112
1112
|
"screen",
|
|
1113
1113
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1114
1114
|
"none",
|
|
1115
|
-
...
|
|
1115
|
+
...O()
|
|
1116
1116
|
]
|
|
1117
1117
|
}],
|
|
1118
1118
|
/**
|
|
@@ -1121,7 +1121,7 @@ const Xe = (e, r) => {
|
|
|
1121
1121
|
*/
|
|
1122
1122
|
"max-w": [{
|
|
1123
1123
|
"max-w": [
|
|
1124
|
-
|
|
1124
|
+
m,
|
|
1125
1125
|
"screen",
|
|
1126
1126
|
"none",
|
|
1127
1127
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
@@ -1130,7 +1130,7 @@ const Xe = (e, r) => {
|
|
|
1130
1130
|
{
|
|
1131
1131
|
screen: [i]
|
|
1132
1132
|
},
|
|
1133
|
-
...
|
|
1133
|
+
...O()
|
|
1134
1134
|
]
|
|
1135
1135
|
}],
|
|
1136
1136
|
/**
|
|
@@ -1138,21 +1138,21 @@ const Xe = (e, r) => {
|
|
|
1138
1138
|
* @see https://tailwindcss.com/docs/height
|
|
1139
1139
|
*/
|
|
1140
1140
|
h: [{
|
|
1141
|
-
h: ["screen", "lh", ...
|
|
1141
|
+
h: ["screen", "lh", ...O()]
|
|
1142
1142
|
}],
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Min-Height
|
|
1145
1145
|
* @see https://tailwindcss.com/docs/min-height
|
|
1146
1146
|
*/
|
|
1147
1147
|
"min-h": [{
|
|
1148
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1148
|
+
"min-h": ["screen", "lh", "none", ...O()]
|
|
1149
1149
|
}],
|
|
1150
1150
|
/**
|
|
1151
1151
|
* Max-Height
|
|
1152
1152
|
* @see https://tailwindcss.com/docs/max-height
|
|
1153
1153
|
*/
|
|
1154
1154
|
"max-h": [{
|
|
1155
|
-
"max-h": ["screen", "lh", ...
|
|
1155
|
+
"max-h": ["screen", "lh", ...O()]
|
|
1156
1156
|
}],
|
|
1157
1157
|
// ------------------
|
|
1158
1158
|
// --- Typography ---
|
|
@@ -1162,7 +1162,7 @@ const Xe = (e, r) => {
|
|
|
1162
1162
|
* @see https://tailwindcss.com/docs/font-size
|
|
1163
1163
|
*/
|
|
1164
1164
|
"font-size": [{
|
|
1165
|
-
text: ["base", t,
|
|
1165
|
+
text: ["base", t, U, T]
|
|
1166
1166
|
}],
|
|
1167
1167
|
/**
|
|
1168
1168
|
* Font Smoothing
|
|
@@ -1179,14 +1179,14 @@ const Xe = (e, r) => {
|
|
|
1179
1179
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1180
1180
|
*/
|
|
1181
1181
|
"font-weight": [{
|
|
1182
|
-
font: [o, n,
|
|
1182
|
+
font: [o, n, oe]
|
|
1183
1183
|
}],
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Font Stretch
|
|
1186
1186
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1187
1187
|
*/
|
|
1188
1188
|
"font-stretch": [{
|
|
1189
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1189
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", re, s]
|
|
1190
1190
|
}],
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Font Family
|
|
@@ -1237,7 +1237,7 @@ const Xe = (e, r) => {
|
|
|
1237
1237
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1238
1238
|
*/
|
|
1239
1239
|
"line-clamp": [{
|
|
1240
|
-
"line-clamp": [
|
|
1240
|
+
"line-clamp": [u, "none", n, oe]
|
|
1241
1241
|
}],
|
|
1242
1242
|
/**
|
|
1243
1243
|
* Line Height
|
|
@@ -1246,7 +1246,7 @@ const Xe = (e, r) => {
|
|
|
1246
1246
|
leading: [{
|
|
1247
1247
|
leading: [
|
|
1248
1248
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1249
|
-
|
|
1249
|
+
l,
|
|
1250
1250
|
...p()
|
|
1251
1251
|
]
|
|
1252
1252
|
}],
|
|
@@ -1284,14 +1284,14 @@ const Xe = (e, r) => {
|
|
|
1284
1284
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1285
1285
|
*/
|
|
1286
1286
|
"placeholder-color": [{
|
|
1287
|
-
placeholder:
|
|
1287
|
+
placeholder: d()
|
|
1288
1288
|
}],
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Text Color
|
|
1291
1291
|
* @see https://tailwindcss.com/docs/text-color
|
|
1292
1292
|
*/
|
|
1293
1293
|
"text-color": [{
|
|
1294
|
-
text:
|
|
1294
|
+
text: d()
|
|
1295
1295
|
}],
|
|
1296
1296
|
/**
|
|
1297
1297
|
* Text Decoration
|
|
@@ -1310,21 +1310,21 @@ const Xe = (e, r) => {
|
|
|
1310
1310
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1311
1311
|
*/
|
|
1312
1312
|
"text-decoration-thickness": [{
|
|
1313
|
-
decoration: [
|
|
1313
|
+
decoration: [u, "from-font", "auto", n, T]
|
|
1314
1314
|
}],
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Text Decoration Color
|
|
1317
1317
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1318
1318
|
*/
|
|
1319
1319
|
"text-decoration-color": [{
|
|
1320
|
-
decoration:
|
|
1320
|
+
decoration: d()
|
|
1321
1321
|
}],
|
|
1322
1322
|
/**
|
|
1323
1323
|
* Text Underline Offset
|
|
1324
1324
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1325
1325
|
*/
|
|
1326
1326
|
"underline-offset": [{
|
|
1327
|
-
"underline-offset": [
|
|
1327
|
+
"underline-offset": [u, "auto", n, s]
|
|
1328
1328
|
}],
|
|
1329
1329
|
/**
|
|
1330
1330
|
* Text Transform
|
|
@@ -1421,21 +1421,21 @@ const Xe = (e, r) => {
|
|
|
1421
1421
|
* @see https://tailwindcss.com/docs/background-position
|
|
1422
1422
|
*/
|
|
1423
1423
|
"bg-position": [{
|
|
1424
|
-
bg:
|
|
1424
|
+
bg: de()
|
|
1425
1425
|
}],
|
|
1426
1426
|
/**
|
|
1427
1427
|
* Background Repeat
|
|
1428
1428
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1429
1429
|
*/
|
|
1430
1430
|
"bg-repeat": [{
|
|
1431
|
-
bg:
|
|
1431
|
+
bg: pe()
|
|
1432
1432
|
}],
|
|
1433
1433
|
/**
|
|
1434
1434
|
* Background Size
|
|
1435
1435
|
* @see https://tailwindcss.com/docs/background-size
|
|
1436
1436
|
*/
|
|
1437
1437
|
"bg-size": [{
|
|
1438
|
-
bg:
|
|
1438
|
+
bg: me()
|
|
1439
1439
|
}],
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Background Image
|
|
@@ -1445,59 +1445,59 @@ const Xe = (e, r) => {
|
|
|
1445
1445
|
bg: ["none", {
|
|
1446
1446
|
linear: [{
|
|
1447
1447
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1448
|
-
},
|
|
1448
|
+
}, N, n, s],
|
|
1449
1449
|
radial: ["", n, s],
|
|
1450
|
-
conic: [
|
|
1451
|
-
}, Gt,
|
|
1450
|
+
conic: [N, n, s]
|
|
1451
|
+
}, Gt, Tt]
|
|
1452
1452
|
}],
|
|
1453
1453
|
/**
|
|
1454
1454
|
* Background Color
|
|
1455
1455
|
* @see https://tailwindcss.com/docs/background-color
|
|
1456
1456
|
*/
|
|
1457
1457
|
"bg-color": [{
|
|
1458
|
-
bg:
|
|
1458
|
+
bg: d()
|
|
1459
1459
|
}],
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Gradient Color Stops From Position
|
|
1462
1462
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1463
1463
|
*/
|
|
1464
1464
|
"gradient-from-pos": [{
|
|
1465
|
-
from:
|
|
1465
|
+
from: Q()
|
|
1466
1466
|
}],
|
|
1467
1467
|
/**
|
|
1468
1468
|
* Gradient Color Stops Via Position
|
|
1469
1469
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1470
1470
|
*/
|
|
1471
1471
|
"gradient-via-pos": [{
|
|
1472
|
-
via:
|
|
1472
|
+
via: Q()
|
|
1473
1473
|
}],
|
|
1474
1474
|
/**
|
|
1475
1475
|
* Gradient Color Stops To Position
|
|
1476
1476
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1477
1477
|
*/
|
|
1478
1478
|
"gradient-to-pos": [{
|
|
1479
|
-
to:
|
|
1479
|
+
to: Q()
|
|
1480
1480
|
}],
|
|
1481
1481
|
/**
|
|
1482
1482
|
* Gradient Color Stops From
|
|
1483
1483
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1484
1484
|
*/
|
|
1485
1485
|
"gradient-from": [{
|
|
1486
|
-
from:
|
|
1486
|
+
from: d()
|
|
1487
1487
|
}],
|
|
1488
1488
|
/**
|
|
1489
1489
|
* Gradient Color Stops Via
|
|
1490
1490
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1491
1491
|
*/
|
|
1492
1492
|
"gradient-via": [{
|
|
1493
|
-
via:
|
|
1493
|
+
via: d()
|
|
1494
1494
|
}],
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Gradient Color Stops To
|
|
1497
1497
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1498
1498
|
*/
|
|
1499
1499
|
"gradient-to": [{
|
|
1500
|
-
to:
|
|
1500
|
+
to: d()
|
|
1501
1501
|
}],
|
|
1502
1502
|
// ---------------
|
|
1503
1503
|
// --- Borders ---
|
|
@@ -1713,70 +1713,70 @@ const Xe = (e, r) => {
|
|
|
1713
1713
|
* @see https://tailwindcss.com/docs/border-color
|
|
1714
1714
|
*/
|
|
1715
1715
|
"border-color": [{
|
|
1716
|
-
border:
|
|
1716
|
+
border: d()
|
|
1717
1717
|
}],
|
|
1718
1718
|
/**
|
|
1719
1719
|
* Border Color X
|
|
1720
1720
|
* @see https://tailwindcss.com/docs/border-color
|
|
1721
1721
|
*/
|
|
1722
1722
|
"border-color-x": [{
|
|
1723
|
-
"border-x":
|
|
1723
|
+
"border-x": d()
|
|
1724
1724
|
}],
|
|
1725
1725
|
/**
|
|
1726
1726
|
* Border Color Y
|
|
1727
1727
|
* @see https://tailwindcss.com/docs/border-color
|
|
1728
1728
|
*/
|
|
1729
1729
|
"border-color-y": [{
|
|
1730
|
-
"border-y":
|
|
1730
|
+
"border-y": d()
|
|
1731
1731
|
}],
|
|
1732
1732
|
/**
|
|
1733
1733
|
* Border Color S
|
|
1734
1734
|
* @see https://tailwindcss.com/docs/border-color
|
|
1735
1735
|
*/
|
|
1736
1736
|
"border-color-s": [{
|
|
1737
|
-
"border-s":
|
|
1737
|
+
"border-s": d()
|
|
1738
1738
|
}],
|
|
1739
1739
|
/**
|
|
1740
1740
|
* Border Color E
|
|
1741
1741
|
* @see https://tailwindcss.com/docs/border-color
|
|
1742
1742
|
*/
|
|
1743
1743
|
"border-color-e": [{
|
|
1744
|
-
"border-e":
|
|
1744
|
+
"border-e": d()
|
|
1745
1745
|
}],
|
|
1746
1746
|
/**
|
|
1747
1747
|
* Border Color Top
|
|
1748
1748
|
* @see https://tailwindcss.com/docs/border-color
|
|
1749
1749
|
*/
|
|
1750
1750
|
"border-color-t": [{
|
|
1751
|
-
"border-t":
|
|
1751
|
+
"border-t": d()
|
|
1752
1752
|
}],
|
|
1753
1753
|
/**
|
|
1754
1754
|
* Border Color Right
|
|
1755
1755
|
* @see https://tailwindcss.com/docs/border-color
|
|
1756
1756
|
*/
|
|
1757
1757
|
"border-color-r": [{
|
|
1758
|
-
"border-r":
|
|
1758
|
+
"border-r": d()
|
|
1759
1759
|
}],
|
|
1760
1760
|
/**
|
|
1761
1761
|
* Border Color Bottom
|
|
1762
1762
|
* @see https://tailwindcss.com/docs/border-color
|
|
1763
1763
|
*/
|
|
1764
1764
|
"border-color-b": [{
|
|
1765
|
-
"border-b":
|
|
1765
|
+
"border-b": d()
|
|
1766
1766
|
}],
|
|
1767
1767
|
/**
|
|
1768
1768
|
* Border Color Left
|
|
1769
1769
|
* @see https://tailwindcss.com/docs/border-color
|
|
1770
1770
|
*/
|
|
1771
1771
|
"border-color-l": [{
|
|
1772
|
-
"border-l":
|
|
1772
|
+
"border-l": d()
|
|
1773
1773
|
}],
|
|
1774
1774
|
/**
|
|
1775
1775
|
* Divide Color
|
|
1776
1776
|
* @see https://tailwindcss.com/docs/divide-color
|
|
1777
1777
|
*/
|
|
1778
1778
|
"divide-color": [{
|
|
1779
|
-
divide:
|
|
1779
|
+
divide: d()
|
|
1780
1780
|
}],
|
|
1781
1781
|
/**
|
|
1782
1782
|
* Outline Style
|
|
@@ -1790,21 +1790,21 @@ const Xe = (e, r) => {
|
|
|
1790
1790
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1791
1791
|
*/
|
|
1792
1792
|
"outline-offset": [{
|
|
1793
|
-
"outline-offset": [
|
|
1793
|
+
"outline-offset": [u, n, s]
|
|
1794
1794
|
}],
|
|
1795
1795
|
/**
|
|
1796
1796
|
* Outline Width
|
|
1797
1797
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1798
1798
|
*/
|
|
1799
1799
|
"outline-w": [{
|
|
1800
|
-
outline: ["",
|
|
1800
|
+
outline: ["", u, U, T]
|
|
1801
1801
|
}],
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Outline Color
|
|
1804
1804
|
* @see https://tailwindcss.com/docs/outline-color
|
|
1805
1805
|
*/
|
|
1806
1806
|
"outline-color": [{
|
|
1807
|
-
outline:
|
|
1807
|
+
outline: d()
|
|
1808
1808
|
}],
|
|
1809
1809
|
// ---------------
|
|
1810
1810
|
// --- Effects ---
|
|
@@ -1819,7 +1819,7 @@ const Xe = (e, r) => {
|
|
|
1819
1819
|
"",
|
|
1820
1820
|
"none",
|
|
1821
1821
|
f,
|
|
1822
|
-
|
|
1822
|
+
Z,
|
|
1823
1823
|
X
|
|
1824
1824
|
]
|
|
1825
1825
|
}],
|
|
@@ -1828,21 +1828,21 @@ const Xe = (e, r) => {
|
|
|
1828
1828
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
1829
1829
|
*/
|
|
1830
1830
|
"shadow-color": [{
|
|
1831
|
-
shadow:
|
|
1831
|
+
shadow: d()
|
|
1832
1832
|
}],
|
|
1833
1833
|
/**
|
|
1834
1834
|
* Inset Box Shadow
|
|
1835
1835
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1836
1836
|
*/
|
|
1837
1837
|
"inset-shadow": [{
|
|
1838
|
-
"inset-shadow": ["none", v,
|
|
1838
|
+
"inset-shadow": ["none", v, Z, X]
|
|
1839
1839
|
}],
|
|
1840
1840
|
/**
|
|
1841
1841
|
* Inset Box Shadow Color
|
|
1842
1842
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
1843
1843
|
*/
|
|
1844
1844
|
"inset-shadow-color": [{
|
|
1845
|
-
"inset-shadow":
|
|
1845
|
+
"inset-shadow": d()
|
|
1846
1846
|
}],
|
|
1847
1847
|
/**
|
|
1848
1848
|
* Ring Width
|
|
@@ -1863,7 +1863,7 @@ const Xe = (e, r) => {
|
|
|
1863
1863
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
1864
1864
|
*/
|
|
1865
1865
|
"ring-color": [{
|
|
1866
|
-
ring:
|
|
1866
|
+
ring: d()
|
|
1867
1867
|
}],
|
|
1868
1868
|
/**
|
|
1869
1869
|
* Ring Offset Width
|
|
@@ -1872,7 +1872,7 @@ const Xe = (e, r) => {
|
|
|
1872
1872
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1873
1873
|
*/
|
|
1874
1874
|
"ring-offset-w": [{
|
|
1875
|
-
"ring-offset": [
|
|
1875
|
+
"ring-offset": [u, T]
|
|
1876
1876
|
}],
|
|
1877
1877
|
/**
|
|
1878
1878
|
* Ring Offset Color
|
|
@@ -1881,7 +1881,7 @@ const Xe = (e, r) => {
|
|
|
1881
1881
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1882
1882
|
*/
|
|
1883
1883
|
"ring-offset-color": [{
|
|
1884
|
-
"ring-offset":
|
|
1884
|
+
"ring-offset": d()
|
|
1885
1885
|
}],
|
|
1886
1886
|
/**
|
|
1887
1887
|
* Inset Ring Width
|
|
@@ -1895,42 +1895,42 @@ const Xe = (e, r) => {
|
|
|
1895
1895
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
1896
1896
|
*/
|
|
1897
1897
|
"inset-ring-color": [{
|
|
1898
|
-
"inset-ring":
|
|
1898
|
+
"inset-ring": d()
|
|
1899
1899
|
}],
|
|
1900
1900
|
/**
|
|
1901
1901
|
* Text Shadow
|
|
1902
1902
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1903
1903
|
*/
|
|
1904
1904
|
"text-shadow": [{
|
|
1905
|
-
"text-shadow": ["none", x,
|
|
1905
|
+
"text-shadow": ["none", x, Z, X]
|
|
1906
1906
|
}],
|
|
1907
1907
|
/**
|
|
1908
1908
|
* Text Shadow Color
|
|
1909
1909
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
1910
1910
|
*/
|
|
1911
1911
|
"text-shadow-color": [{
|
|
1912
|
-
"text-shadow":
|
|
1912
|
+
"text-shadow": d()
|
|
1913
1913
|
}],
|
|
1914
1914
|
/**
|
|
1915
1915
|
* Opacity
|
|
1916
1916
|
* @see https://tailwindcss.com/docs/opacity
|
|
1917
1917
|
*/
|
|
1918
1918
|
opacity: [{
|
|
1919
|
-
opacity: [
|
|
1919
|
+
opacity: [u, n, s]
|
|
1920
1920
|
}],
|
|
1921
1921
|
/**
|
|
1922
1922
|
* Mix Blend Mode
|
|
1923
1923
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1924
1924
|
*/
|
|
1925
1925
|
"mix-blend": [{
|
|
1926
|
-
"mix-blend": [...
|
|
1926
|
+
"mix-blend": [...ue(), "plus-darker", "plus-lighter"]
|
|
1927
1927
|
}],
|
|
1928
1928
|
/**
|
|
1929
1929
|
* Background Blend Mode
|
|
1930
1930
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1931
1931
|
*/
|
|
1932
1932
|
"bg-blend": [{
|
|
1933
|
-
"bg-blend":
|
|
1933
|
+
"bg-blend": ue()
|
|
1934
1934
|
}],
|
|
1935
1935
|
/**
|
|
1936
1936
|
* Mask Clip
|
|
@@ -1951,7 +1951,7 @@ const Xe = (e, r) => {
|
|
|
1951
1951
|
* @see https://tailwindcss.com/docs/mask-image
|
|
1952
1952
|
*/
|
|
1953
1953
|
"mask-image-linear-pos": [{
|
|
1954
|
-
"mask-linear": [
|
|
1954
|
+
"mask-linear": [u]
|
|
1955
1955
|
}],
|
|
1956
1956
|
"mask-image-linear-from-pos": [{
|
|
1957
1957
|
"mask-linear-from": h()
|
|
@@ -1960,10 +1960,10 @@ const Xe = (e, r) => {
|
|
|
1960
1960
|
"mask-linear-to": h()
|
|
1961
1961
|
}],
|
|
1962
1962
|
"mask-image-linear-from-color": [{
|
|
1963
|
-
"mask-linear-from":
|
|
1963
|
+
"mask-linear-from": d()
|
|
1964
1964
|
}],
|
|
1965
1965
|
"mask-image-linear-to-color": [{
|
|
1966
|
-
"mask-linear-to":
|
|
1966
|
+
"mask-linear-to": d()
|
|
1967
1967
|
}],
|
|
1968
1968
|
"mask-image-t-from-pos": [{
|
|
1969
1969
|
"mask-t-from": h()
|
|
@@ -1972,10 +1972,10 @@ const Xe = (e, r) => {
|
|
|
1972
1972
|
"mask-t-to": h()
|
|
1973
1973
|
}],
|
|
1974
1974
|
"mask-image-t-from-color": [{
|
|
1975
|
-
"mask-t-from":
|
|
1975
|
+
"mask-t-from": d()
|
|
1976
1976
|
}],
|
|
1977
1977
|
"mask-image-t-to-color": [{
|
|
1978
|
-
"mask-t-to":
|
|
1978
|
+
"mask-t-to": d()
|
|
1979
1979
|
}],
|
|
1980
1980
|
"mask-image-r-from-pos": [{
|
|
1981
1981
|
"mask-r-from": h()
|
|
@@ -1984,10 +1984,10 @@ const Xe = (e, r) => {
|
|
|
1984
1984
|
"mask-r-to": h()
|
|
1985
1985
|
}],
|
|
1986
1986
|
"mask-image-r-from-color": [{
|
|
1987
|
-
"mask-r-from":
|
|
1987
|
+
"mask-r-from": d()
|
|
1988
1988
|
}],
|
|
1989
1989
|
"mask-image-r-to-color": [{
|
|
1990
|
-
"mask-r-to":
|
|
1990
|
+
"mask-r-to": d()
|
|
1991
1991
|
}],
|
|
1992
1992
|
"mask-image-b-from-pos": [{
|
|
1993
1993
|
"mask-b-from": h()
|
|
@@ -1996,10 +1996,10 @@ const Xe = (e, r) => {
|
|
|
1996
1996
|
"mask-b-to": h()
|
|
1997
1997
|
}],
|
|
1998
1998
|
"mask-image-b-from-color": [{
|
|
1999
|
-
"mask-b-from":
|
|
1999
|
+
"mask-b-from": d()
|
|
2000
2000
|
}],
|
|
2001
2001
|
"mask-image-b-to-color": [{
|
|
2002
|
-
"mask-b-to":
|
|
2002
|
+
"mask-b-to": d()
|
|
2003
2003
|
}],
|
|
2004
2004
|
"mask-image-l-from-pos": [{
|
|
2005
2005
|
"mask-l-from": h()
|
|
@@ -2008,10 +2008,10 @@ const Xe = (e, r) => {
|
|
|
2008
2008
|
"mask-l-to": h()
|
|
2009
2009
|
}],
|
|
2010
2010
|
"mask-image-l-from-color": [{
|
|
2011
|
-
"mask-l-from":
|
|
2011
|
+
"mask-l-from": d()
|
|
2012
2012
|
}],
|
|
2013
2013
|
"mask-image-l-to-color": [{
|
|
2014
|
-
"mask-l-to":
|
|
2014
|
+
"mask-l-to": d()
|
|
2015
2015
|
}],
|
|
2016
2016
|
"mask-image-x-from-pos": [{
|
|
2017
2017
|
"mask-x-from": h()
|
|
@@ -2020,10 +2020,10 @@ const Xe = (e, r) => {
|
|
|
2020
2020
|
"mask-x-to": h()
|
|
2021
2021
|
}],
|
|
2022
2022
|
"mask-image-x-from-color": [{
|
|
2023
|
-
"mask-x-from":
|
|
2023
|
+
"mask-x-from": d()
|
|
2024
2024
|
}],
|
|
2025
2025
|
"mask-image-x-to-color": [{
|
|
2026
|
-
"mask-x-to":
|
|
2026
|
+
"mask-x-to": d()
|
|
2027
2027
|
}],
|
|
2028
2028
|
"mask-image-y-from-pos": [{
|
|
2029
2029
|
"mask-y-from": h()
|
|
@@ -2032,10 +2032,10 @@ const Xe = (e, r) => {
|
|
|
2032
2032
|
"mask-y-to": h()
|
|
2033
2033
|
}],
|
|
2034
2034
|
"mask-image-y-from-color": [{
|
|
2035
|
-
"mask-y-from":
|
|
2035
|
+
"mask-y-from": d()
|
|
2036
2036
|
}],
|
|
2037
2037
|
"mask-image-y-to-color": [{
|
|
2038
|
-
"mask-y-to":
|
|
2038
|
+
"mask-y-to": d()
|
|
2039
2039
|
}],
|
|
2040
2040
|
"mask-image-radial": [{
|
|
2041
2041
|
"mask-radial": [n, s]
|
|
@@ -2047,10 +2047,10 @@ const Xe = (e, r) => {
|
|
|
2047
2047
|
"mask-radial-to": h()
|
|
2048
2048
|
}],
|
|
2049
2049
|
"mask-image-radial-from-color": [{
|
|
2050
|
-
"mask-radial-from":
|
|
2050
|
+
"mask-radial-from": d()
|
|
2051
2051
|
}],
|
|
2052
2052
|
"mask-image-radial-to-color": [{
|
|
2053
|
-
"mask-radial-to":
|
|
2053
|
+
"mask-radial-to": d()
|
|
2054
2054
|
}],
|
|
2055
2055
|
"mask-image-radial-shape": [{
|
|
2056
2056
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -2062,10 +2062,10 @@ const Xe = (e, r) => {
|
|
|
2062
2062
|
}]
|
|
2063
2063
|
}],
|
|
2064
2064
|
"mask-image-radial-pos": [{
|
|
2065
|
-
"mask-radial-at":
|
|
2065
|
+
"mask-radial-at": P()
|
|
2066
2066
|
}],
|
|
2067
2067
|
"mask-image-conic-pos": [{
|
|
2068
|
-
"mask-conic": [
|
|
2068
|
+
"mask-conic": [u]
|
|
2069
2069
|
}],
|
|
2070
2070
|
"mask-image-conic-from-pos": [{
|
|
2071
2071
|
"mask-conic-from": h()
|
|
@@ -2074,10 +2074,10 @@ const Xe = (e, r) => {
|
|
|
2074
2074
|
"mask-conic-to": h()
|
|
2075
2075
|
}],
|
|
2076
2076
|
"mask-image-conic-from-color": [{
|
|
2077
|
-
"mask-conic-from":
|
|
2077
|
+
"mask-conic-from": d()
|
|
2078
2078
|
}],
|
|
2079
2079
|
"mask-image-conic-to-color": [{
|
|
2080
|
-
"mask-conic-to":
|
|
2080
|
+
"mask-conic-to": d()
|
|
2081
2081
|
}],
|
|
2082
2082
|
/**
|
|
2083
2083
|
* Mask Mode
|
|
@@ -2098,21 +2098,21 @@ const Xe = (e, r) => {
|
|
|
2098
2098
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2099
2099
|
*/
|
|
2100
2100
|
"mask-position": [{
|
|
2101
|
-
mask:
|
|
2101
|
+
mask: de()
|
|
2102
2102
|
}],
|
|
2103
2103
|
/**
|
|
2104
2104
|
* Mask Repeat
|
|
2105
2105
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2106
2106
|
*/
|
|
2107
2107
|
"mask-repeat": [{
|
|
2108
|
-
mask:
|
|
2108
|
+
mask: pe()
|
|
2109
2109
|
}],
|
|
2110
2110
|
/**
|
|
2111
2111
|
* Mask Size
|
|
2112
2112
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2113
2113
|
*/
|
|
2114
2114
|
"mask-size": [{
|
|
2115
|
-
mask:
|
|
2115
|
+
mask: me()
|
|
2116
2116
|
}],
|
|
2117
2117
|
/**
|
|
2118
2118
|
* Mask Type
|
|
@@ -2149,21 +2149,21 @@ const Xe = (e, r) => {
|
|
|
2149
2149
|
* @see https://tailwindcss.com/docs/blur
|
|
2150
2150
|
*/
|
|
2151
2151
|
blur: [{
|
|
2152
|
-
blur:
|
|
2152
|
+
blur: ge()
|
|
2153
2153
|
}],
|
|
2154
2154
|
/**
|
|
2155
2155
|
* Brightness
|
|
2156
2156
|
* @see https://tailwindcss.com/docs/brightness
|
|
2157
2157
|
*/
|
|
2158
2158
|
brightness: [{
|
|
2159
|
-
brightness: [
|
|
2159
|
+
brightness: [u, n, s]
|
|
2160
2160
|
}],
|
|
2161
2161
|
/**
|
|
2162
2162
|
* Contrast
|
|
2163
2163
|
* @see https://tailwindcss.com/docs/contrast
|
|
2164
2164
|
*/
|
|
2165
2165
|
contrast: [{
|
|
2166
|
-
contrast: [
|
|
2166
|
+
contrast: [u, n, s]
|
|
2167
2167
|
}],
|
|
2168
2168
|
/**
|
|
2169
2169
|
* Drop Shadow
|
|
@@ -2174,8 +2174,8 @@ const Xe = (e, r) => {
|
|
|
2174
2174
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2175
2175
|
"",
|
|
2176
2176
|
"none",
|
|
2177
|
-
|
|
2178
|
-
|
|
2177
|
+
C,
|
|
2178
|
+
Z,
|
|
2179
2179
|
X
|
|
2180
2180
|
]
|
|
2181
2181
|
}],
|
|
@@ -2184,42 +2184,42 @@ const Xe = (e, r) => {
|
|
|
2184
2184
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2185
2185
|
*/
|
|
2186
2186
|
"drop-shadow-color": [{
|
|
2187
|
-
"drop-shadow":
|
|
2187
|
+
"drop-shadow": d()
|
|
2188
2188
|
}],
|
|
2189
2189
|
/**
|
|
2190
2190
|
* Grayscale
|
|
2191
2191
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2192
2192
|
*/
|
|
2193
2193
|
grayscale: [{
|
|
2194
|
-
grayscale: ["",
|
|
2194
|
+
grayscale: ["", u, n, s]
|
|
2195
2195
|
}],
|
|
2196
2196
|
/**
|
|
2197
2197
|
* Hue Rotate
|
|
2198
2198
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2199
2199
|
*/
|
|
2200
2200
|
"hue-rotate": [{
|
|
2201
|
-
"hue-rotate": [
|
|
2201
|
+
"hue-rotate": [u, n, s]
|
|
2202
2202
|
}],
|
|
2203
2203
|
/**
|
|
2204
2204
|
* Invert
|
|
2205
2205
|
* @see https://tailwindcss.com/docs/invert
|
|
2206
2206
|
*/
|
|
2207
2207
|
invert: [{
|
|
2208
|
-
invert: ["",
|
|
2208
|
+
invert: ["", u, n, s]
|
|
2209
2209
|
}],
|
|
2210
2210
|
/**
|
|
2211
2211
|
* Saturate
|
|
2212
2212
|
* @see https://tailwindcss.com/docs/saturate
|
|
2213
2213
|
*/
|
|
2214
2214
|
saturate: [{
|
|
2215
|
-
saturate: [
|
|
2215
|
+
saturate: [u, n, s]
|
|
2216
2216
|
}],
|
|
2217
2217
|
/**
|
|
2218
2218
|
* Sepia
|
|
2219
2219
|
* @see https://tailwindcss.com/docs/sepia
|
|
2220
2220
|
*/
|
|
2221
2221
|
sepia: [{
|
|
2222
|
-
sepia: ["",
|
|
2222
|
+
sepia: ["", u, n, s]
|
|
2223
2223
|
}],
|
|
2224
2224
|
/**
|
|
2225
2225
|
* Backdrop Filter
|
|
@@ -2239,63 +2239,63 @@ const Xe = (e, r) => {
|
|
|
2239
2239
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2240
2240
|
*/
|
|
2241
2241
|
"backdrop-blur": [{
|
|
2242
|
-
"backdrop-blur":
|
|
2242
|
+
"backdrop-blur": ge()
|
|
2243
2243
|
}],
|
|
2244
2244
|
/**
|
|
2245
2245
|
* Backdrop Brightness
|
|
2246
2246
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2247
2247
|
*/
|
|
2248
2248
|
"backdrop-brightness": [{
|
|
2249
|
-
"backdrop-brightness": [
|
|
2249
|
+
"backdrop-brightness": [u, n, s]
|
|
2250
2250
|
}],
|
|
2251
2251
|
/**
|
|
2252
2252
|
* Backdrop Contrast
|
|
2253
2253
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2254
2254
|
*/
|
|
2255
2255
|
"backdrop-contrast": [{
|
|
2256
|
-
"backdrop-contrast": [
|
|
2256
|
+
"backdrop-contrast": [u, n, s]
|
|
2257
2257
|
}],
|
|
2258
2258
|
/**
|
|
2259
2259
|
* Backdrop Grayscale
|
|
2260
2260
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2261
2261
|
*/
|
|
2262
2262
|
"backdrop-grayscale": [{
|
|
2263
|
-
"backdrop-grayscale": ["",
|
|
2263
|
+
"backdrop-grayscale": ["", u, n, s]
|
|
2264
2264
|
}],
|
|
2265
2265
|
/**
|
|
2266
2266
|
* Backdrop Hue Rotate
|
|
2267
2267
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2268
2268
|
*/
|
|
2269
2269
|
"backdrop-hue-rotate": [{
|
|
2270
|
-
"backdrop-hue-rotate": [
|
|
2270
|
+
"backdrop-hue-rotate": [u, n, s]
|
|
2271
2271
|
}],
|
|
2272
2272
|
/**
|
|
2273
2273
|
* Backdrop Invert
|
|
2274
2274
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2275
2275
|
*/
|
|
2276
2276
|
"backdrop-invert": [{
|
|
2277
|
-
"backdrop-invert": ["",
|
|
2277
|
+
"backdrop-invert": ["", u, n, s]
|
|
2278
2278
|
}],
|
|
2279
2279
|
/**
|
|
2280
2280
|
* Backdrop Opacity
|
|
2281
2281
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2282
2282
|
*/
|
|
2283
2283
|
"backdrop-opacity": [{
|
|
2284
|
-
"backdrop-opacity": [
|
|
2284
|
+
"backdrop-opacity": [u, n, s]
|
|
2285
2285
|
}],
|
|
2286
2286
|
/**
|
|
2287
2287
|
* Backdrop Saturate
|
|
2288
2288
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2289
2289
|
*/
|
|
2290
2290
|
"backdrop-saturate": [{
|
|
2291
|
-
"backdrop-saturate": [
|
|
2291
|
+
"backdrop-saturate": [u, n, s]
|
|
2292
2292
|
}],
|
|
2293
2293
|
/**
|
|
2294
2294
|
* Backdrop Sepia
|
|
2295
2295
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2296
2296
|
*/
|
|
2297
2297
|
"backdrop-sepia": [{
|
|
2298
|
-
"backdrop-sepia": ["",
|
|
2298
|
+
"backdrop-sepia": ["", u, n, s]
|
|
2299
2299
|
}],
|
|
2300
2300
|
// --------------
|
|
2301
2301
|
// --- Tables ---
|
|
@@ -2364,21 +2364,21 @@ const Xe = (e, r) => {
|
|
|
2364
2364
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2365
2365
|
*/
|
|
2366
2366
|
duration: [{
|
|
2367
|
-
duration: [
|
|
2367
|
+
duration: [u, "initial", n, s]
|
|
2368
2368
|
}],
|
|
2369
2369
|
/**
|
|
2370
2370
|
* Transition Timing Function
|
|
2371
2371
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2372
2372
|
*/
|
|
2373
2373
|
ease: [{
|
|
2374
|
-
ease: ["linear", "initial",
|
|
2374
|
+
ease: ["linear", "initial", E, n, s]
|
|
2375
2375
|
}],
|
|
2376
2376
|
/**
|
|
2377
2377
|
* Transition Delay
|
|
2378
2378
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2379
2379
|
*/
|
|
2380
2380
|
delay: [{
|
|
2381
|
-
delay: [
|
|
2381
|
+
delay: [u, n, s]
|
|
2382
2382
|
}],
|
|
2383
2383
|
/**
|
|
2384
2384
|
* Animation
|
|
@@ -2402,70 +2402,70 @@ const Xe = (e, r) => {
|
|
|
2402
2402
|
* @see https://tailwindcss.com/docs/perspective
|
|
2403
2403
|
*/
|
|
2404
2404
|
perspective: [{
|
|
2405
|
-
perspective: [
|
|
2405
|
+
perspective: [z, n, s]
|
|
2406
2406
|
}],
|
|
2407
2407
|
/**
|
|
2408
2408
|
* Perspective Origin
|
|
2409
2409
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2410
2410
|
*/
|
|
2411
2411
|
"perspective-origin": [{
|
|
2412
|
-
"perspective-origin":
|
|
2412
|
+
"perspective-origin": j()
|
|
2413
2413
|
}],
|
|
2414
2414
|
/**
|
|
2415
2415
|
* Rotate
|
|
2416
2416
|
* @see https://tailwindcss.com/docs/rotate
|
|
2417
2417
|
*/
|
|
2418
2418
|
rotate: [{
|
|
2419
|
-
rotate:
|
|
2419
|
+
rotate: J()
|
|
2420
2420
|
}],
|
|
2421
2421
|
/**
|
|
2422
2422
|
* Rotate X
|
|
2423
2423
|
* @see https://tailwindcss.com/docs/rotate
|
|
2424
2424
|
*/
|
|
2425
2425
|
"rotate-x": [{
|
|
2426
|
-
"rotate-x":
|
|
2426
|
+
"rotate-x": J()
|
|
2427
2427
|
}],
|
|
2428
2428
|
/**
|
|
2429
2429
|
* Rotate Y
|
|
2430
2430
|
* @see https://tailwindcss.com/docs/rotate
|
|
2431
2431
|
*/
|
|
2432
2432
|
"rotate-y": [{
|
|
2433
|
-
"rotate-y":
|
|
2433
|
+
"rotate-y": J()
|
|
2434
2434
|
}],
|
|
2435
2435
|
/**
|
|
2436
2436
|
* Rotate Z
|
|
2437
2437
|
* @see https://tailwindcss.com/docs/rotate
|
|
2438
2438
|
*/
|
|
2439
2439
|
"rotate-z": [{
|
|
2440
|
-
"rotate-z":
|
|
2440
|
+
"rotate-z": J()
|
|
2441
2441
|
}],
|
|
2442
2442
|
/**
|
|
2443
2443
|
* Scale
|
|
2444
2444
|
* @see https://tailwindcss.com/docs/scale
|
|
2445
2445
|
*/
|
|
2446
2446
|
scale: [{
|
|
2447
|
-
scale:
|
|
2447
|
+
scale: q()
|
|
2448
2448
|
}],
|
|
2449
2449
|
/**
|
|
2450
2450
|
* Scale X
|
|
2451
2451
|
* @see https://tailwindcss.com/docs/scale
|
|
2452
2452
|
*/
|
|
2453
2453
|
"scale-x": [{
|
|
2454
|
-
"scale-x":
|
|
2454
|
+
"scale-x": q()
|
|
2455
2455
|
}],
|
|
2456
2456
|
/**
|
|
2457
2457
|
* Scale Y
|
|
2458
2458
|
* @see https://tailwindcss.com/docs/scale
|
|
2459
2459
|
*/
|
|
2460
2460
|
"scale-y": [{
|
|
2461
|
-
"scale-y":
|
|
2461
|
+
"scale-y": q()
|
|
2462
2462
|
}],
|
|
2463
2463
|
/**
|
|
2464
2464
|
* Scale Z
|
|
2465
2465
|
* @see https://tailwindcss.com/docs/scale
|
|
2466
2466
|
*/
|
|
2467
2467
|
"scale-z": [{
|
|
2468
|
-
"scale-z":
|
|
2468
|
+
"scale-z": q()
|
|
2469
2469
|
}],
|
|
2470
2470
|
/**
|
|
2471
2471
|
* Scale 3D
|
|
@@ -2505,7 +2505,7 @@ const Xe = (e, r) => {
|
|
|
2505
2505
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2506
2506
|
*/
|
|
2507
2507
|
"transform-origin": [{
|
|
2508
|
-
origin:
|
|
2508
|
+
origin: j()
|
|
2509
2509
|
}],
|
|
2510
2510
|
/**
|
|
2511
2511
|
* Transform Style
|
|
@@ -2519,28 +2519,28 @@ const Xe = (e, r) => {
|
|
|
2519
2519
|
* @see https://tailwindcss.com/docs/translate
|
|
2520
2520
|
*/
|
|
2521
2521
|
translate: [{
|
|
2522
|
-
translate:
|
|
2522
|
+
translate: Y()
|
|
2523
2523
|
}],
|
|
2524
2524
|
/**
|
|
2525
2525
|
* Translate X
|
|
2526
2526
|
* @see https://tailwindcss.com/docs/translate
|
|
2527
2527
|
*/
|
|
2528
2528
|
"translate-x": [{
|
|
2529
|
-
"translate-x":
|
|
2529
|
+
"translate-x": Y()
|
|
2530
2530
|
}],
|
|
2531
2531
|
/**
|
|
2532
2532
|
* Translate Y
|
|
2533
2533
|
* @see https://tailwindcss.com/docs/translate
|
|
2534
2534
|
*/
|
|
2535
2535
|
"translate-y": [{
|
|
2536
|
-
"translate-y":
|
|
2536
|
+
"translate-y": Y()
|
|
2537
2537
|
}],
|
|
2538
2538
|
/**
|
|
2539
2539
|
* Translate Z
|
|
2540
2540
|
* @see https://tailwindcss.com/docs/translate
|
|
2541
2541
|
*/
|
|
2542
2542
|
"translate-z": [{
|
|
2543
|
-
"translate-z":
|
|
2543
|
+
"translate-z": Y()
|
|
2544
2544
|
}],
|
|
2545
2545
|
/**
|
|
2546
2546
|
* Translate None
|
|
@@ -2555,7 +2555,7 @@ const Xe = (e, r) => {
|
|
|
2555
2555
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2556
2556
|
*/
|
|
2557
2557
|
accent: [{
|
|
2558
|
-
accent:
|
|
2558
|
+
accent: d()
|
|
2559
2559
|
}],
|
|
2560
2560
|
/**
|
|
2561
2561
|
* Appearance
|
|
@@ -2569,7 +2569,7 @@ const Xe = (e, r) => {
|
|
|
2569
2569
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2570
2570
|
*/
|
|
2571
2571
|
"caret-color": [{
|
|
2572
|
-
caret:
|
|
2572
|
+
caret: d()
|
|
2573
2573
|
}],
|
|
2574
2574
|
/**
|
|
2575
2575
|
* Color Scheme
|
|
@@ -2815,21 +2815,21 @@ const Xe = (e, r) => {
|
|
|
2815
2815
|
* @see https://tailwindcss.com/docs/fill
|
|
2816
2816
|
*/
|
|
2817
2817
|
fill: [{
|
|
2818
|
-
fill: ["none", ...
|
|
2818
|
+
fill: ["none", ...d()]
|
|
2819
2819
|
}],
|
|
2820
2820
|
/**
|
|
2821
2821
|
* Stroke Width
|
|
2822
2822
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2823
2823
|
*/
|
|
2824
2824
|
"stroke-w": [{
|
|
2825
|
-
stroke: [
|
|
2825
|
+
stroke: [u, U, T, oe]
|
|
2826
2826
|
}],
|
|
2827
2827
|
/**
|
|
2828
2828
|
* Stroke
|
|
2829
2829
|
* @see https://tailwindcss.com/docs/stroke
|
|
2830
2830
|
*/
|
|
2831
2831
|
stroke: [{
|
|
2832
|
-
stroke: ["none", ...
|
|
2832
|
+
stroke: ["none", ...d()]
|
|
2833
2833
|
}],
|
|
2834
2834
|
// ---------------------
|
|
2835
2835
|
// --- Accessibility ---
|
|
@@ -2897,44 +2897,129 @@ const Xe = (e, r) => {
|
|
|
2897
2897
|
},
|
|
2898
2898
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2899
2899
|
};
|
|
2900
|
-
},
|
|
2901
|
-
function
|
|
2902
|
-
return
|
|
2900
|
+
}, Wt = /* @__PURE__ */ yt(Ft);
|
|
2901
|
+
function _t(...e) {
|
|
2902
|
+
return Wt(Ke(e));
|
|
2903
2903
|
}
|
|
2904
|
-
function
|
|
2904
|
+
function rr(e) {
|
|
2905
2905
|
throw new Error(`Unexpected value: ${e}`);
|
|
2906
2906
|
}
|
|
2907
|
-
const
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2907
|
+
const Ut = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), $t = (e) => e.replace(
|
|
2908
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
2909
|
+
(r, t, o) => o ? o.toUpperCase() : t.toLowerCase()
|
|
2910
|
+
), ve = (e) => {
|
|
2911
|
+
const r = $t(e);
|
|
2912
|
+
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
2913
|
+
}, Ve = (...e) => e.filter((r, t, o) => !!r && r.trim() !== "" && o.indexOf(r) === t).join(" ").trim(), Bt = (e) => {
|
|
2914
|
+
for (const r in e)
|
|
2915
|
+
if (r.startsWith("aria-") || r === "role" || r === "title")
|
|
2916
|
+
return !0;
|
|
2917
|
+
};
|
|
2918
|
+
var Dt = {
|
|
2919
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2920
|
+
width: 24,
|
|
2921
|
+
height: 24,
|
|
2922
|
+
viewBox: "0 0 24 24",
|
|
2923
|
+
fill: "none",
|
|
2924
|
+
stroke: "currentColor",
|
|
2925
|
+
strokeWidth: 2,
|
|
2926
|
+
strokeLinecap: "round",
|
|
2927
|
+
strokeLinejoin: "round"
|
|
2928
|
+
};
|
|
2929
|
+
const Jt = Ce(
|
|
2930
|
+
({
|
|
2931
|
+
color: e = "currentColor",
|
|
2932
|
+
size: r = 24,
|
|
2933
|
+
strokeWidth: t = 2,
|
|
2934
|
+
absoluteStrokeWidth: o,
|
|
2935
|
+
className: a = "",
|
|
2936
|
+
children: l,
|
|
2937
|
+
iconNode: i,
|
|
2938
|
+
...m
|
|
2939
|
+
}, c) => se(
|
|
2940
|
+
"svg",
|
|
2941
|
+
{
|
|
2942
|
+
ref: c,
|
|
2943
|
+
...Dt,
|
|
2944
|
+
width: r,
|
|
2945
|
+
height: r,
|
|
2946
|
+
stroke: e,
|
|
2947
|
+
strokeWidth: o ? Number(t) * 24 / Number(r) : t,
|
|
2948
|
+
className: Ve("lucide", a),
|
|
2949
|
+
...!l && !Bt(m) && { "aria-hidden": "true" },
|
|
2950
|
+
...m
|
|
2951
|
+
},
|
|
2952
|
+
[
|
|
2953
|
+
...i.map(([g, f]) => se(g, f)),
|
|
2954
|
+
...Array.isArray(l) ? l : [l]
|
|
2955
|
+
]
|
|
2956
|
+
)
|
|
2957
|
+
);
|
|
2958
|
+
const qt = (e, r) => {
|
|
2959
|
+
const t = Ce(
|
|
2960
|
+
({ className: o, ...a }, l) => se(Jt, {
|
|
2961
|
+
ref: l,
|
|
2962
|
+
iconNode: r,
|
|
2963
|
+
className: Ve(
|
|
2964
|
+
`lucide-${Ut(ve(e))}`,
|
|
2965
|
+
`lucide-${e}`,
|
|
2966
|
+
o
|
|
2967
|
+
),
|
|
2968
|
+
...a
|
|
2969
|
+
})
|
|
2970
|
+
);
|
|
2971
|
+
return t.displayName = ve(e), t;
|
|
2972
|
+
};
|
|
2973
|
+
const Yt = [
|
|
2974
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2975
|
+
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
2976
|
+
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
2977
|
+
], Xt = qt("circle-alert", Yt), Zt = ({ code: e }) => {
|
|
2978
|
+
const r = $e(({ message: f }) => f), t = _e(null), [o, a] = be(!0), [l, i] = be(null), m = r.status?.type === "complete", c = He(), g = Xe();
|
|
2979
|
+
return Ue(() => {
|
|
2980
|
+
if (!m || !t.current)
|
|
2911
2981
|
return;
|
|
2912
2982
|
let f = null;
|
|
2913
2983
|
return (async () => {
|
|
2914
2984
|
try {
|
|
2915
|
-
|
|
2916
|
-
|
|
2985
|
+
let x;
|
|
2986
|
+
try {
|
|
2987
|
+
x = JSON.parse(e);
|
|
2988
|
+
} catch (A) {
|
|
2989
|
+
throw new Error(
|
|
2990
|
+
`Invalid JSON syntax: ${A instanceof Error ? A.message : "Unable to parse"}`
|
|
2991
|
+
);
|
|
2992
|
+
}
|
|
2993
|
+
const C = Be(x);
|
|
2994
|
+
f = new De(C, {
|
|
2917
2995
|
container: t.current ?? void 0,
|
|
2918
2996
|
renderer: "svg",
|
|
2919
2997
|
hover: !0,
|
|
2920
|
-
logLevel:
|
|
2998
|
+
logLevel: Je
|
|
2921
2999
|
}), await f.runAsync(), a(!1);
|
|
2922
3000
|
} catch (x) {
|
|
2923
|
-
console.error("Failed to render chart:", x)
|
|
3001
|
+
console.error("Failed to render chart:", x);
|
|
3002
|
+
const C = x instanceof Error ? x.message : "Failed to render chart";
|
|
3003
|
+
i(C), a(!1);
|
|
2924
3004
|
}
|
|
2925
3005
|
})(), () => {
|
|
2926
3006
|
f && f.finalize();
|
|
2927
3007
|
};
|
|
2928
|
-
}, [
|
|
3008
|
+
}, [m, e]), /* @__PURE__ */ fe(
|
|
2929
3009
|
"div",
|
|
2930
3010
|
{
|
|
2931
|
-
className:
|
|
2932
|
-
|
|
2933
|
-
|
|
3011
|
+
className: _t(
|
|
3012
|
+
// the after:hidden is to prevent assistant-ui from showing its default code block loading indicator
|
|
3013
|
+
"relative flex min-h-[400px] w-fit max-w-full min-w-[400px] items-center justify-center border p-6 after:hidden",
|
|
3014
|
+
c("lg"),
|
|
2934
3015
|
g("p-lg")
|
|
2935
3016
|
),
|
|
2936
3017
|
children: [
|
|
2937
|
-
o && /* @__PURE__ */ te("div", { className: "shimmer text-muted-foreground bg-background/80 absolute inset-0 z-10 flex items-center justify-center
|
|
3018
|
+
(o || !m) && /* @__PURE__ */ te("div", { className: "shimmer text-muted-foreground bg-background/80 absolute inset-0 z-10 flex items-center justify-center", children: "Rendering chart..." }),
|
|
3019
|
+
l && /* @__PURE__ */ fe("div", { className: "bg-background absolute inset-0 z-10 flex items-center justify-center gap-2 text-rose-500", children: [
|
|
3020
|
+
/* @__PURE__ */ te(Xt, { name: "alert-circle", className: "h-4 w-4" }),
|
|
3021
|
+
"Error rendering chart"
|
|
3022
|
+
] }),
|
|
2938
3023
|
/* @__PURE__ */ te(
|
|
2939
3024
|
"div",
|
|
2940
3025
|
{
|
|
@@ -2945,22 +3030,37 @@ const Vt = ({ code: e }) => {
|
|
|
2945
3030
|
]
|
|
2946
3031
|
}
|
|
2947
3032
|
);
|
|
2948
|
-
},
|
|
3033
|
+
}, Ht = {
|
|
2949
3034
|
language: "vega",
|
|
2950
|
-
prompt: `
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
3035
|
+
prompt: `When a user requests a chart or visualization, respond with a valid Vega specification (https://vega.github.io/vega/) in a code block with language 'vega'.
|
|
3036
|
+
|
|
3037
|
+
CRITICAL JSON REQUIREMENTS:
|
|
3038
|
+
- The code block MUST contain ONLY valid, parseable JSON
|
|
3039
|
+
- NO comments (no // or /* */ anywhere)
|
|
3040
|
+
- NO trailing commas
|
|
3041
|
+
- Use double quotes for all strings and keys
|
|
3042
|
+
- NO text before or after the JSON object
|
|
3043
|
+
- The JSON must start with { and end with }
|
|
3044
|
+
|
|
3045
|
+
CONTENT GUIDELINES:
|
|
3046
|
+
- Outside the code block, describe trends and insights found in the data
|
|
3047
|
+
- Do not describe visual properties or technical implementation details
|
|
3048
|
+
- Do not mention "Vega" or other technical terms - this is user-facing
|
|
3049
|
+
|
|
3050
|
+
The Vega spec will be parsed with JSON.parse() - if it fails, the chart will error. Ensure strict JSON validity.`,
|
|
3051
|
+
Component: Zt,
|
|
2954
3052
|
Header: void 0
|
|
2955
|
-
},
|
|
3053
|
+
}, or = [Ht];
|
|
2956
3054
|
export {
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
3055
|
+
Xt as C,
|
|
3056
|
+
qe as E,
|
|
3057
|
+
Ke as a,
|
|
3058
|
+
_t as b,
|
|
3059
|
+
qt as c,
|
|
3060
|
+
Xe as d,
|
|
3061
|
+
He as e,
|
|
3062
|
+
rr as f,
|
|
3063
|
+
Ht as g,
|
|
3064
|
+
or as r,
|
|
3065
|
+
ze as u
|
|
2966
3066
|
};
|