@gram-ai/elements 1.16.4 → 1.16.5
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/contexts/ElementsProvider.d.ts +1 -1
- package/dist/elements.cjs +120 -33
- package/dist/elements.js +29508 -9126
- package/dist/hooks/useMCPTools.d.ts +11 -0
- package/dist/hooks/useSession.d.ts +13 -0
- package/dist/{index-SAJg5Cz7.js → index-Bjdy_BPv.js} +378 -385
- package/dist/{index-C6vUoNWt.cjs → index-CqzaiyM-.cjs} +2 -2
- package/dist/lib/tools.d.ts +6 -0
- package/dist/lib/utils.d.ts +1 -1
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.js +1 -1
- package/dist/server.cjs +1 -29
- package/dist/server.d.ts +32 -4
- package/dist/server.js +21 -4069
- package/dist/types/index.d.ts +23 -11
- package/package.json +3 -1
- package/dist/index-BqoFmyxX.cjs +0 -60
- package/dist/index-CVZt-xeH.js +0 -14913
|
@@ -1,15 +1,15 @@
|
|
|
1
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
|
|
2
|
+
import { createContext as Fe, useContext as We, forwardRef as Ce, createElement as se, useRef as be, useState as _e, useMemo as Ue, useEffect as Be } from "react";
|
|
3
3
|
import { useAssistantState as $e } from "@assistant-ui/react";
|
|
4
|
-
import { parse as
|
|
5
|
-
const
|
|
4
|
+
import { parse as De, View as Je, Warn as qe } from "vega";
|
|
5
|
+
const Ye = Fe(
|
|
6
6
|
void 0
|
|
7
7
|
), ze = () => {
|
|
8
|
-
const e = We(
|
|
8
|
+
const e = We(Ye);
|
|
9
9
|
if (!e)
|
|
10
10
|
throw new Error("useElements must be used within a ElementsProvider");
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Xe = {
|
|
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 qe = Fe(
|
|
|
100
100
|
"text-title": "text-3xl",
|
|
101
101
|
"text-subtitle": "text-lg"
|
|
102
102
|
}
|
|
103
|
-
},
|
|
103
|
+
}, Ze = () => {
|
|
104
104
|
const { config: e } = ze(), r = e.theme?.density ?? "normal";
|
|
105
|
-
return (
|
|
106
|
-
},
|
|
105
|
+
return (o) => Xe[r][o];
|
|
106
|
+
}, He = {
|
|
107
107
|
sharp: {
|
|
108
108
|
sm: "rounded-sm",
|
|
109
109
|
md: "rounded",
|
|
@@ -125,131 +125,131 @@ const qe = Fe(
|
|
|
125
125
|
xl: "rounded-3xl",
|
|
126
126
|
full: "rounded-full"
|
|
127
127
|
}
|
|
128
|
-
},
|
|
128
|
+
}, Ke = () => {
|
|
129
129
|
const { config: e } = ze(), r = e.theme?.radius ?? "soft";
|
|
130
|
-
return (
|
|
130
|
+
return (o) => He[r][o];
|
|
131
131
|
};
|
|
132
132
|
function Ae(e) {
|
|
133
|
-
var r,
|
|
134
|
-
if (typeof e == "string" || typeof e == "number")
|
|
133
|
+
var r, o, t = "";
|
|
134
|
+
if (typeof e == "string" || typeof e == "number") t += 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] && (
|
|
138
|
-
} else for (
|
|
139
|
-
return
|
|
140
|
-
}
|
|
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
|
-
return o;
|
|
137
|
+
for (r = 0; r < a; r++) e[r] && (o = Ae(e[r])) && (t && (t += " "), t += o);
|
|
138
|
+
} else for (o in e) e[o] && (t && (t += " "), t += o);
|
|
139
|
+
return t;
|
|
144
140
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
for (let o = 0; o < e.length; o++)
|
|
148
|
-
t[o] = e[o];
|
|
149
|
-
for (let o = 0; o < r.length; o++)
|
|
150
|
-
t[e.length + o] = r[o];
|
|
141
|
+
function Qe() {
|
|
142
|
+
for (var e, r, o = 0, t = "", a = arguments.length; o < a; o++) (e = arguments[o]) && (r = Ae(e)) && (t && (t += " "), t += r);
|
|
151
143
|
return t;
|
|
152
|
-
}
|
|
144
|
+
}
|
|
145
|
+
const et = (e, r) => {
|
|
146
|
+
const o = new Array(e.length + r.length);
|
|
147
|
+
for (let t = 0; t < e.length; t++)
|
|
148
|
+
o[t] = e[t];
|
|
149
|
+
for (let t = 0; t < r.length; t++)
|
|
150
|
+
o[e.length + t] = r[t];
|
|
151
|
+
return o;
|
|
152
|
+
}, tt = (e, r) => ({
|
|
153
153
|
classGroupId: e,
|
|
154
154
|
validator: r
|
|
155
|
-
}), Se = (e = /* @__PURE__ */ new Map(), r = null,
|
|
155
|
+
}), Se = (e = /* @__PURE__ */ new Map(), r = null, o) => ({
|
|
156
156
|
nextPart: e,
|
|
157
157
|
validators: r,
|
|
158
|
-
classGroupId:
|
|
159
|
-
}), H = "-", he = [],
|
|
160
|
-
const r =
|
|
161
|
-
conflictingClassGroups:
|
|
162
|
-
conflictingClassGroupModifiers:
|
|
158
|
+
classGroupId: o
|
|
159
|
+
}), H = "-", he = [], rt = "arbitrary..", ot = (e) => {
|
|
160
|
+
const r = nt(e), {
|
|
161
|
+
conflictingClassGroups: o,
|
|
162
|
+
conflictingClassGroupModifiers: t
|
|
163
163
|
} = e;
|
|
164
164
|
return {
|
|
165
165
|
getClassGroupId: (i) => {
|
|
166
166
|
if (i.startsWith("[") && i.endsWith("]"))
|
|
167
|
-
return
|
|
168
|
-
const
|
|
169
|
-
return Re(
|
|
167
|
+
return st(i);
|
|
168
|
+
const u = i.split(H), c = u[0] === "" && u.length > 1 ? 1 : 0;
|
|
169
|
+
return Re(u, c, r);
|
|
170
170
|
},
|
|
171
|
-
getConflictingClassGroupIds: (i,
|
|
172
|
-
if (
|
|
173
|
-
const c =
|
|
174
|
-
return c ? g ?
|
|
171
|
+
getConflictingClassGroupIds: (i, u) => {
|
|
172
|
+
if (u) {
|
|
173
|
+
const c = t[i], g = o[i];
|
|
174
|
+
return c ? g ? et(g, c) : c : g || he;
|
|
175
175
|
}
|
|
176
|
-
return
|
|
176
|
+
return o[i] || he;
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
|
-
}, Re = (e, r,
|
|
179
|
+
}, Re = (e, r, o) => {
|
|
180
180
|
if (e.length - r === 0)
|
|
181
|
-
return
|
|
182
|
-
const a = e[r], l =
|
|
181
|
+
return o.classGroupId;
|
|
182
|
+
const a = e[r], l = o.nextPart.get(a);
|
|
183
183
|
if (l) {
|
|
184
184
|
const g = Re(e, r + 1, l);
|
|
185
185
|
if (g) return g;
|
|
186
186
|
}
|
|
187
|
-
const i =
|
|
187
|
+
const i = o.validators;
|
|
188
188
|
if (i === null)
|
|
189
189
|
return;
|
|
190
|
-
const
|
|
190
|
+
const u = r === 0 ? e.join(H) : e.slice(r).join(H), c = i.length;
|
|
191
191
|
for (let g = 0; g < c; g++) {
|
|
192
192
|
const f = i[g];
|
|
193
|
-
if (f.validator(
|
|
193
|
+
if (f.validator(u))
|
|
194
194
|
return f.classGroupId;
|
|
195
195
|
}
|
|
196
|
-
},
|
|
197
|
-
const r = e.slice(1, -1),
|
|
198
|
-
return
|
|
199
|
-
})(),
|
|
196
|
+
}, st = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
197
|
+
const r = e.slice(1, -1), o = r.indexOf(":"), t = r.slice(0, o);
|
|
198
|
+
return t ? rt + t : void 0;
|
|
199
|
+
})(), nt = (e) => {
|
|
200
200
|
const {
|
|
201
201
|
theme: r,
|
|
202
|
-
classGroups:
|
|
202
|
+
classGroups: o
|
|
203
203
|
} = e;
|
|
204
|
-
return
|
|
205
|
-
},
|
|
206
|
-
const
|
|
207
|
-
for (const
|
|
208
|
-
const a = e[
|
|
209
|
-
ae(a,
|
|
204
|
+
return at(o, r);
|
|
205
|
+
}, at = (e, r) => {
|
|
206
|
+
const o = Se();
|
|
207
|
+
for (const t in e) {
|
|
208
|
+
const a = e[t];
|
|
209
|
+
ae(a, o, t, r);
|
|
210
210
|
}
|
|
211
|
-
return
|
|
212
|
-
}, ae = (e, r,
|
|
211
|
+
return o;
|
|
212
|
+
}, ae = (e, r, o, t) => {
|
|
213
213
|
const a = e.length;
|
|
214
214
|
for (let l = 0; l < a; l++) {
|
|
215
215
|
const i = e[l];
|
|
216
|
-
|
|
216
|
+
it(i, r, o, t);
|
|
217
217
|
}
|
|
218
|
-
},
|
|
218
|
+
}, it = (e, r, o, t) => {
|
|
219
219
|
if (typeof e == "string") {
|
|
220
|
-
|
|
220
|
+
lt(e, r, o);
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
223
|
if (typeof e == "function") {
|
|
224
|
-
|
|
224
|
+
ct(e, r, o, t);
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
|
-
|
|
228
|
-
},
|
|
229
|
-
const
|
|
230
|
-
|
|
231
|
-
},
|
|
232
|
-
if (
|
|
233
|
-
ae(e(
|
|
227
|
+
dt(e, r, o, t);
|
|
228
|
+
}, lt = (e, r, o) => {
|
|
229
|
+
const t = e === "" ? r : Ie(r, e);
|
|
230
|
+
t.classGroupId = o;
|
|
231
|
+
}, ct = (e, r, o, t) => {
|
|
232
|
+
if (pt(e)) {
|
|
233
|
+
ae(e(t), r, o, t);
|
|
234
234
|
return;
|
|
235
235
|
}
|
|
236
|
-
r.validators === null && (r.validators = []), r.validators.push(
|
|
237
|
-
},
|
|
236
|
+
r.validators === null && (r.validators = []), r.validators.push(tt(o, e));
|
|
237
|
+
}, dt = (e, r, o, t) => {
|
|
238
238
|
const a = Object.entries(e), l = a.length;
|
|
239
239
|
for (let i = 0; i < l; i++) {
|
|
240
|
-
const [
|
|
241
|
-
ae(c, Ie(r,
|
|
240
|
+
const [u, c] = a[i];
|
|
241
|
+
ae(c, Ie(r, u), o, t);
|
|
242
242
|
}
|
|
243
243
|
}, Ie = (e, r) => {
|
|
244
|
-
let
|
|
245
|
-
const
|
|
244
|
+
let o = e;
|
|
245
|
+
const t = r.split(H), a = t.length;
|
|
246
246
|
for (let l = 0; l < a; l++) {
|
|
247
|
-
const i =
|
|
248
|
-
let
|
|
249
|
-
|
|
247
|
+
const i = t[l];
|
|
248
|
+
let u = o.nextPart.get(i);
|
|
249
|
+
u || (u = Se(), o.nextPart.set(i, u)), o = u;
|
|
250
250
|
}
|
|
251
|
-
return
|
|
252
|
-
},
|
|
251
|
+
return o;
|
|
252
|
+
}, pt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, mt = (e) => {
|
|
253
253
|
if (e < 1)
|
|
254
254
|
return {
|
|
255
255
|
get: () => {
|
|
@@ -257,178 +257,178 @@ const Qe = (e, r) => {
|
|
|
257
257
|
set: () => {
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
|
-
let r = 0,
|
|
260
|
+
let r = 0, o = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
|
|
261
261
|
const a = (l, i) => {
|
|
262
|
-
|
|
262
|
+
o[l] = i, r++, r > e && (r = 0, t = o, o = /* @__PURE__ */ Object.create(null));
|
|
263
263
|
};
|
|
264
264
|
return {
|
|
265
265
|
get(l) {
|
|
266
|
-
let i =
|
|
266
|
+
let i = o[l];
|
|
267
267
|
if (i !== void 0)
|
|
268
268
|
return i;
|
|
269
|
-
if ((i =
|
|
269
|
+
if ((i = t[l]) !== void 0)
|
|
270
270
|
return a(l, i), i;
|
|
271
271
|
},
|
|
272
272
|
set(l, i) {
|
|
273
|
-
l in
|
|
273
|
+
l in o ? o[l] = i : a(l, i);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
}, ne = "!", xe = ":",
|
|
276
|
+
}, ne = "!", xe = ":", ut = [], ye = (e, r, o, t, a) => ({
|
|
277
277
|
modifiers: e,
|
|
278
278
|
hasImportantModifier: r,
|
|
279
|
-
baseClassName:
|
|
280
|
-
maybePostfixModifierPosition:
|
|
279
|
+
baseClassName: o,
|
|
280
|
+
maybePostfixModifierPosition: t,
|
|
281
281
|
isExternal: a
|
|
282
|
-
}),
|
|
282
|
+
}), gt = (e) => {
|
|
283
283
|
const {
|
|
284
284
|
prefix: r,
|
|
285
|
-
experimentalParseClassName:
|
|
285
|
+
experimentalParseClassName: o
|
|
286
286
|
} = e;
|
|
287
|
-
let
|
|
287
|
+
let t = (a) => {
|
|
288
288
|
const l = [];
|
|
289
|
-
let i = 0,
|
|
289
|
+
let i = 0, u = 0, c = 0, g;
|
|
290
290
|
const f = a.length;
|
|
291
|
-
for (let
|
|
292
|
-
const
|
|
293
|
-
if (i === 0 &&
|
|
294
|
-
if (
|
|
295
|
-
l.push(a.slice(c,
|
|
291
|
+
for (let C = 0; C < f; C++) {
|
|
292
|
+
const k = a[C];
|
|
293
|
+
if (i === 0 && u === 0) {
|
|
294
|
+
if (k === xe) {
|
|
295
|
+
l.push(a.slice(c, C)), c = C + 1;
|
|
296
296
|
continue;
|
|
297
297
|
}
|
|
298
|
-
if (
|
|
299
|
-
g =
|
|
298
|
+
if (k === "/") {
|
|
299
|
+
g = C;
|
|
300
300
|
continue;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
|
|
303
|
+
k === "[" ? i++ : k === "]" ? i-- : k === "(" ? u++ : k === ")" && u--;
|
|
304
304
|
}
|
|
305
|
-
const
|
|
306
|
-
let
|
|
307
|
-
|
|
305
|
+
const x = l.length === 0 ? a : a.slice(c);
|
|
306
|
+
let y = x, z = !1;
|
|
307
|
+
x.endsWith(ne) ? (y = x.slice(0, -1), z = !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
|
-
|
|
312
|
+
x.startsWith(ne) && (y = x.slice(1), z = !0)
|
|
313
313
|
);
|
|
314
|
-
const
|
|
315
|
-
return ye(l,
|
|
314
|
+
const N = g && g > c ? g - c : void 0;
|
|
315
|
+
return ye(l, z, y, N);
|
|
316
316
|
};
|
|
317
317
|
if (r) {
|
|
318
|
-
const a = r + xe, l =
|
|
319
|
-
|
|
318
|
+
const a = r + xe, l = t;
|
|
319
|
+
t = (i) => i.startsWith(a) ? l(i.slice(a.length)) : ye(ut, !1, i, void 0, !0);
|
|
320
320
|
}
|
|
321
|
-
if (
|
|
322
|
-
const a =
|
|
323
|
-
|
|
321
|
+
if (o) {
|
|
322
|
+
const a = t;
|
|
323
|
+
t = (l) => o({
|
|
324
324
|
className: l,
|
|
325
325
|
parseClassName: a
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
return
|
|
329
|
-
},
|
|
328
|
+
return t;
|
|
329
|
+
}, ft = (e) => {
|
|
330
330
|
const r = /* @__PURE__ */ new Map();
|
|
331
|
-
return e.orderSensitiveModifiers.forEach((
|
|
332
|
-
r.set(
|
|
333
|
-
}), (
|
|
334
|
-
const
|
|
331
|
+
return e.orderSensitiveModifiers.forEach((o, t) => {
|
|
332
|
+
r.set(o, 1e6 + t);
|
|
333
|
+
}), (o) => {
|
|
334
|
+
const t = [];
|
|
335
335
|
let a = [];
|
|
336
|
-
for (let l = 0; l <
|
|
337
|
-
const i =
|
|
338
|
-
|
|
336
|
+
for (let l = 0; l < o.length; l++) {
|
|
337
|
+
const i = o[l], u = i[0] === "[", c = r.has(i);
|
|
338
|
+
u || c ? (a.length > 0 && (a.sort(), t.push(...a), a = []), t.push(i)) : a.push(i);
|
|
339
339
|
}
|
|
340
|
-
return a.length > 0 && (a.sort(),
|
|
340
|
+
return a.length > 0 && (a.sort(), t.push(...a)), t;
|
|
341
341
|
};
|
|
342
|
-
},
|
|
343
|
-
cache:
|
|
344
|
-
parseClassName:
|
|
345
|
-
sortModifiers:
|
|
346
|
-
...
|
|
347
|
-
}),
|
|
342
|
+
}, bt = (e) => ({
|
|
343
|
+
cache: mt(e.cacheSize),
|
|
344
|
+
parseClassName: gt(e),
|
|
345
|
+
sortModifiers: ft(e),
|
|
346
|
+
...ot(e)
|
|
347
|
+
}), ht = /\s+/, xt = (e, r) => {
|
|
348
348
|
const {
|
|
349
|
-
parseClassName:
|
|
350
|
-
getClassGroupId:
|
|
349
|
+
parseClassName: o,
|
|
350
|
+
getClassGroupId: t,
|
|
351
351
|
getConflictingClassGroupIds: a,
|
|
352
352
|
sortModifiers: l
|
|
353
|
-
} = r, i = [],
|
|
353
|
+
} = r, i = [], u = e.trim().split(ht);
|
|
354
354
|
let c = "";
|
|
355
|
-
for (let g =
|
|
356
|
-
const f =
|
|
357
|
-
isExternal:
|
|
358
|
-
modifiers:
|
|
359
|
-
hasImportantModifier:
|
|
360
|
-
baseClassName:
|
|
361
|
-
maybePostfixModifierPosition:
|
|
362
|
-
} =
|
|
363
|
-
if (
|
|
355
|
+
for (let g = u.length - 1; g >= 0; g -= 1) {
|
|
356
|
+
const f = u[g], {
|
|
357
|
+
isExternal: x,
|
|
358
|
+
modifiers: y,
|
|
359
|
+
hasImportantModifier: z,
|
|
360
|
+
baseClassName: N,
|
|
361
|
+
maybePostfixModifierPosition: C
|
|
362
|
+
} = o(f);
|
|
363
|
+
if (x) {
|
|
364
364
|
c = f + (c.length > 0 ? " " + c : c);
|
|
365
365
|
continue;
|
|
366
366
|
}
|
|
367
|
-
let
|
|
367
|
+
let k = !!C, E = t(k ? N.substring(0, C) : N);
|
|
368
368
|
if (!E) {
|
|
369
|
-
if (!
|
|
369
|
+
if (!k) {
|
|
370
370
|
c = f + (c.length > 0 ? " " + c : c);
|
|
371
371
|
continue;
|
|
372
372
|
}
|
|
373
|
-
if (E =
|
|
373
|
+
if (E = t(N), !E) {
|
|
374
374
|
c = f + (c.length > 0 ? " " + c : c);
|
|
375
375
|
continue;
|
|
376
376
|
}
|
|
377
|
-
|
|
377
|
+
k = !1;
|
|
378
378
|
}
|
|
379
|
-
const
|
|
379
|
+
const B = y.length === 0 ? "" : y.length === 1 ? y[0] : l(y).join(":"), W = z ? B + ne : B, P = W + E;
|
|
380
380
|
if (i.indexOf(P) > -1)
|
|
381
381
|
continue;
|
|
382
382
|
i.push(P);
|
|
383
|
-
const
|
|
384
|
-
for (let M = 0; M <
|
|
385
|
-
const _ =
|
|
383
|
+
const G = a(E, k);
|
|
384
|
+
for (let M = 0; M < G.length; ++M) {
|
|
385
|
+
const _ = G[M];
|
|
386
386
|
i.push(W + _);
|
|
387
387
|
}
|
|
388
388
|
c = f + (c.length > 0 ? " " + c : c);
|
|
389
389
|
}
|
|
390
390
|
return c;
|
|
391
|
-
},
|
|
392
|
-
let r = 0,
|
|
391
|
+
}, yt = (...e) => {
|
|
392
|
+
let r = 0, o, t, a = "";
|
|
393
393
|
for (; r < e.length; )
|
|
394
|
-
(
|
|
394
|
+
(o = e[r++]) && (t = Ne(o)) && (a && (a += " "), a += t);
|
|
395
395
|
return a;
|
|
396
396
|
}, Ne = (e) => {
|
|
397
397
|
if (typeof e == "string")
|
|
398
398
|
return e;
|
|
399
|
-
let r,
|
|
400
|
-
for (let
|
|
401
|
-
e[
|
|
402
|
-
return
|
|
403
|
-
},
|
|
404
|
-
let
|
|
399
|
+
let r, o = "";
|
|
400
|
+
for (let t = 0; t < e.length; t++)
|
|
401
|
+
e[t] && (r = Ne(e[t])) && (o && (o += " "), o += r);
|
|
402
|
+
return o;
|
|
403
|
+
}, wt = (e, ...r) => {
|
|
404
|
+
let o, t, a, l;
|
|
405
405
|
const i = (c) => {
|
|
406
|
-
const g = r.reduce((f,
|
|
407
|
-
return
|
|
408
|
-
},
|
|
409
|
-
const g =
|
|
406
|
+
const g = r.reduce((f, x) => x(f), e());
|
|
407
|
+
return o = bt(g), t = o.cache.get, a = o.cache.set, l = u, u(c);
|
|
408
|
+
}, u = (c) => {
|
|
409
|
+
const g = t(c);
|
|
410
410
|
if (g)
|
|
411
411
|
return g;
|
|
412
|
-
const f =
|
|
412
|
+
const f = xt(c, o);
|
|
413
413
|
return a(c, f), f;
|
|
414
414
|
};
|
|
415
|
-
return l = i, (...c) => l(
|
|
416
|
-
},
|
|
417
|
-
const r = (
|
|
415
|
+
return l = i, (...c) => l(yt(...c));
|
|
416
|
+
}, kt = [], b = (e) => {
|
|
417
|
+
const r = (o) => o[e] || kt;
|
|
418
418
|
return r.isThemeGetter = !0, r;
|
|
419
|
-
}, Ee = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Me = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
419
|
+
}, Ee = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Me = /^\((?:(\w[\w-]*):)?(.+)\)$/i, vt = /^\d+\/\d+$/, Ct = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, zt = /\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$/, At = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, St = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Rt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, L = (e) => vt.test(e), m = (e) => !!e && !Number.isNaN(Number(e)), I = (e) => !!e && Number.isInteger(Number(e)), re = (e) => e.endsWith("%") && m(e.slice(0, -1)), R = (e) => Ct.test(e), It = () => !0, Nt = (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
|
-
), Oe = () => !1,
|
|
425
|
-
const
|
|
426
|
-
return
|
|
427
|
-
}, F = (e, r,
|
|
428
|
-
const
|
|
429
|
-
return
|
|
430
|
-
}, Te = (e) => e === "position" || e === "percentage", Pe = (e) => e === "image" || e === "url",
|
|
431
|
-
const e = b("color"), r = b("font"),
|
|
423
|
+
zt.test(e) && !At.test(e)
|
|
424
|
+
), Oe = () => !1, Et = (e) => St.test(e), Mt = (e) => Rt.test(e), Ot = (e) => !s(e) && !n(e), Tt = (e) => V(e, Ge, Oe), s = (e) => Ee.test(e), T = (e) => V(e, je, Nt), oe = (e) => V(e, Vt, m), we = (e) => V(e, Te, Oe), Pt = (e) => V(e, Pe, Mt), X = (e) => V(e, Le, Et), n = (e) => Me.test(e), U = (e) => F(e, je), Gt = (e) => F(e, Ft), ke = (e) => F(e, Te), jt = (e) => F(e, Ge), Lt = (e) => F(e, Pe), Z = (e) => F(e, Le, !0), V = (e, r, o) => {
|
|
425
|
+
const t = Ee.exec(e);
|
|
426
|
+
return t ? t[1] ? r(t[1]) : o(t[2]) : !1;
|
|
427
|
+
}, F = (e, r, o = !1) => {
|
|
428
|
+
const t = Me.exec(e);
|
|
429
|
+
return t ? t[1] ? r(t[1]) : o : !1;
|
|
430
|
+
}, Te = (e) => e === "position" || e === "percentage", Pe = (e) => e === "image" || e === "url", Ge = (e) => e === "length" || e === "size" || e === "bg-size", je = (e) => e === "length", Vt = (e) => e === "number", Ft = (e) => e === "family-name", Le = (e) => e === "shadow", Wt = () => {
|
|
431
|
+
const e = b("color"), r = b("font"), o = b("text"), t = b("font-weight"), a = b("tracking"), l = b("leading"), i = b("breakpoint"), u = b("container"), c = b("spacing"), g = b("radius"), f = b("shadow"), x = b("inset-shadow"), y = b("text-shadow"), z = b("drop-shadow"), N = b("blur"), C = b("perspective"), k = b("aspect"), E = b("ease"), B = 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 Qe = (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
|
+
], G = () => [...P(), n, s], M = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], p = () => [n, s, c], A = () => [L, "full", "auto", ...p()], ie = () => [I, "none", "subgrid", n, s], le = () => ["auto", {
|
|
450
|
+
span: ["full", I, n, s]
|
|
451
|
+
}, I, n, s], $ = () => [I, "auto", n, s], ce = () => ["auto", "min", "max", "fr", n, s], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], j = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], S = () => ["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
|
-
}], me = () => ["auto", "cover", "contain", jt,
|
|
455
|
+
}], me = () => ["auto", "cover", "contain", jt, Tt, {
|
|
456
456
|
size: [n, s]
|
|
457
|
-
}], Q = () => [re, U, T],
|
|
457
|
+
}], Q = () => [re, U, T], w = () => [
|
|
458
458
|
// Deprecated since Tailwind CSS v4.0.0
|
|
459
459
|
"",
|
|
460
460
|
"none",
|
|
@@ -462,35 +462,35 @@ const Qe = (e, r) => {
|
|
|
462
462
|
g,
|
|
463
463
|
n,
|
|
464
464
|
s
|
|
465
|
-
],
|
|
465
|
+
], v = () => ["", m, 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 = () => [m, re, ke, we], ge = () => [
|
|
466
466
|
// Deprecated since Tailwind CSS v4.0.0
|
|
467
467
|
"",
|
|
468
468
|
"none",
|
|
469
|
-
|
|
469
|
+
N,
|
|
470
470
|
n,
|
|
471
471
|
s
|
|
472
|
-
], J = () => ["none",
|
|
472
|
+
], J = () => ["none", m, n, s], q = () => ["none", m, n, s], ee = () => [m, 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: [R],
|
|
479
|
+
breakpoint: [R],
|
|
480
|
+
color: [It],
|
|
481
|
+
container: [R],
|
|
482
|
+
"drop-shadow": [R],
|
|
483
483
|
ease: ["in", "out", "in-out"],
|
|
484
|
-
font: [
|
|
484
|
+
font: [Ot],
|
|
485
485
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
486
|
-
"inset-shadow": [
|
|
486
|
+
"inset-shadow": [R],
|
|
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: [R],
|
|
490
|
+
shadow: [R],
|
|
491
|
+
spacing: ["px", m],
|
|
492
|
+
text: [R],
|
|
493
|
+
"text-shadow": [R],
|
|
494
494
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
495
495
|
},
|
|
496
496
|
classGroups: {
|
|
@@ -502,7 +502,7 @@ const Qe = (e, r) => {
|
|
|
502
502
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
503
503
|
*/
|
|
504
504
|
aspect: [{
|
|
505
|
-
aspect: ["auto", "square", L, s, n,
|
|
505
|
+
aspect: ["auto", "square", L, s, n, k]
|
|
506
506
|
}],
|
|
507
507
|
/**
|
|
508
508
|
* Container
|
|
@@ -515,7 +515,7 @@ const Qe = (e, r) => {
|
|
|
515
515
|
* @see https://tailwindcss.com/docs/columns
|
|
516
516
|
*/
|
|
517
517
|
columns: [{
|
|
518
|
-
columns: [
|
|
518
|
+
columns: [m, s, n, u]
|
|
519
519
|
}],
|
|
520
520
|
/**
|
|
521
521
|
* Break After
|
|
@@ -593,7 +593,7 @@ const Qe = (e, r) => {
|
|
|
593
593
|
* @see https://tailwindcss.com/docs/object-position
|
|
594
594
|
*/
|
|
595
595
|
"object-position": [{
|
|
596
|
-
object:
|
|
596
|
+
object: G()
|
|
597
597
|
}],
|
|
598
598
|
/**
|
|
599
599
|
* Overflow
|
|
@@ -647,63 +647,63 @@ const Qe = (e, r) => {
|
|
|
647
647
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
648
648
|
*/
|
|
649
649
|
inset: [{
|
|
650
|
-
inset:
|
|
650
|
+
inset: A()
|
|
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": A()
|
|
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": A()
|
|
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: A()
|
|
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: A()
|
|
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: A()
|
|
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: A()
|
|
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: A()
|
|
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: A()
|
|
707
707
|
}],
|
|
708
708
|
/**
|
|
709
709
|
* Visibility
|
|
@@ -715,7 +715,7 @@ const Qe = (e, r) => {
|
|
|
715
715
|
* @see https://tailwindcss.com/docs/z-index
|
|
716
716
|
*/
|
|
717
717
|
z: [{
|
|
718
|
-
z: [
|
|
718
|
+
z: [I, "auto", n, s]
|
|
719
719
|
}],
|
|
720
720
|
// ------------------------
|
|
721
721
|
// --- Flexbox and Grid ---
|
|
@@ -725,7 +725,7 @@ const Qe = (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", u, ...p()]
|
|
729
729
|
}],
|
|
730
730
|
/**
|
|
731
731
|
* Flex Direction
|
|
@@ -746,28 +746,28 @@ const Qe = (e, r) => {
|
|
|
746
746
|
* @see https://tailwindcss.com/docs/flex
|
|
747
747
|
*/
|
|
748
748
|
flex: [{
|
|
749
|
-
flex: [
|
|
749
|
+
flex: [m, 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: ["", m, 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: ["", m, 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: [I, "first", "last", "none", n, s]
|
|
771
771
|
}],
|
|
772
772
|
/**
|
|
773
773
|
* Grid Template Columns
|
|
@@ -788,14 +788,14 @@ const Qe = (e, r) => {
|
|
|
788
788
|
* @see https://tailwindcss.com/docs/grid-column
|
|
789
789
|
*/
|
|
790
790
|
"col-start": [{
|
|
791
|
-
"col-start":
|
|
791
|
+
"col-start": $()
|
|
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": $()
|
|
799
799
|
}],
|
|
800
800
|
/**
|
|
801
801
|
* Grid Template Rows
|
|
@@ -816,14 +816,14 @@ const Qe = (e, r) => {
|
|
|
816
816
|
* @see https://tailwindcss.com/docs/grid-row
|
|
817
817
|
*/
|
|
818
818
|
"row-start": [{
|
|
819
|
-
"row-start":
|
|
819
|
+
"row-start": $()
|
|
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": $()
|
|
827
827
|
}],
|
|
828
828
|
/**
|
|
829
829
|
* Grid Auto Flow
|
|
@@ -879,14 +879,14 @@ const Qe = (e, r) => {
|
|
|
879
879
|
* @see https://tailwindcss.com/docs/justify-items
|
|
880
880
|
*/
|
|
881
881
|
"justify-items": [{
|
|
882
|
-
"justify-items": [...
|
|
882
|
+
"justify-items": [...j(), "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", ...j()]
|
|
890
890
|
}],
|
|
891
891
|
/**
|
|
892
892
|
* Align Content
|
|
@@ -900,7 +900,7 @@ const Qe = (e, r) => {
|
|
|
900
900
|
* @see https://tailwindcss.com/docs/align-items
|
|
901
901
|
*/
|
|
902
902
|
"align-items": [{
|
|
903
|
-
items: [...
|
|
903
|
+
items: [...j(), {
|
|
904
904
|
baseline: ["", "last"]
|
|
905
905
|
}]
|
|
906
906
|
}],
|
|
@@ -909,7 +909,7 @@ const Qe = (e, r) => {
|
|
|
909
909
|
* @see https://tailwindcss.com/docs/align-self
|
|
910
910
|
*/
|
|
911
911
|
"align-self": [{
|
|
912
|
-
self: ["auto", ...
|
|
912
|
+
self: ["auto", ...j(), {
|
|
913
913
|
baseline: ["", "last"]
|
|
914
914
|
}]
|
|
915
915
|
}],
|
|
@@ -925,14 +925,14 @@ const Qe = (e, r) => {
|
|
|
925
925
|
* @see https://tailwindcss.com/docs/place-items
|
|
926
926
|
*/
|
|
927
927
|
"place-items": [{
|
|
928
|
-
"place-items": [...
|
|
928
|
+
"place-items": [...j(), "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", ...j()]
|
|
936
936
|
}],
|
|
937
937
|
// Spacing
|
|
938
938
|
/**
|
|
@@ -1003,63 +1003,63 @@ const Qe = (e, r) => {
|
|
|
1003
1003
|
* @see https://tailwindcss.com/docs/margin
|
|
1004
1004
|
*/
|
|
1005
1005
|
m: [{
|
|
1006
|
-
m:
|
|
1006
|
+
m: S()
|
|
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: S()
|
|
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: S()
|
|
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: S()
|
|
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: S()
|
|
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: S()
|
|
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: S()
|
|
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: S()
|
|
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: S()
|
|
1063
1063
|
}],
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Space Between X
|
|
@@ -1100,7 +1100,7 @@ const Qe = (e, r) => {
|
|
|
1100
1100
|
* @see https://tailwindcss.com/docs/width
|
|
1101
1101
|
*/
|
|
1102
1102
|
w: [{
|
|
1103
|
-
w: [
|
|
1103
|
+
w: [u, "screen", ...O()]
|
|
1104
1104
|
}],
|
|
1105
1105
|
/**
|
|
1106
1106
|
* Min-Width
|
|
@@ -1108,7 +1108,7 @@ const Qe = (e, r) => {
|
|
|
1108
1108
|
*/
|
|
1109
1109
|
"min-w": [{
|
|
1110
1110
|
"min-w": [
|
|
1111
|
-
|
|
1111
|
+
u,
|
|
1112
1112
|
"screen",
|
|
1113
1113
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1114
1114
|
"none",
|
|
@@ -1121,7 +1121,7 @@ const Qe = (e, r) => {
|
|
|
1121
1121
|
*/
|
|
1122
1122
|
"max-w": [{
|
|
1123
1123
|
"max-w": [
|
|
1124
|
-
|
|
1124
|
+
u,
|
|
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 */
|
|
@@ -1162,7 +1162,7 @@ const Qe = (e, r) => {
|
|
|
1162
1162
|
* @see https://tailwindcss.com/docs/font-size
|
|
1163
1163
|
*/
|
|
1164
1164
|
"font-size": [{
|
|
1165
|
-
text: ["base",
|
|
1165
|
+
text: ["base", o, U, T]
|
|
1166
1166
|
}],
|
|
1167
1167
|
/**
|
|
1168
1168
|
* Font Smoothing
|
|
@@ -1179,7 +1179,7 @@ const Qe = (e, r) => {
|
|
|
1179
1179
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1180
1180
|
*/
|
|
1181
1181
|
"font-weight": [{
|
|
1182
|
-
font: [
|
|
1182
|
+
font: [t, n, oe]
|
|
1183
1183
|
}],
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Font Stretch
|
|
@@ -1193,7 +1193,7 @@ const Qe = (e, r) => {
|
|
|
1193
1193
|
* @see https://tailwindcss.com/docs/font-family
|
|
1194
1194
|
*/
|
|
1195
1195
|
"font-family": [{
|
|
1196
|
-
font: [
|
|
1196
|
+
font: [Gt, s, r]
|
|
1197
1197
|
}],
|
|
1198
1198
|
/**
|
|
1199
1199
|
* Font Variant Numeric
|
|
@@ -1237,7 +1237,7 @@ const Qe = (e, r) => {
|
|
|
1237
1237
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1238
1238
|
*/
|
|
1239
1239
|
"line-clamp": [{
|
|
1240
|
-
"line-clamp": [
|
|
1240
|
+
"line-clamp": [m, "none", n, oe]
|
|
1241
1241
|
}],
|
|
1242
1242
|
/**
|
|
1243
1243
|
* Line Height
|
|
@@ -1310,7 +1310,7 @@ const Qe = (e, r) => {
|
|
|
1310
1310
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1311
1311
|
*/
|
|
1312
1312
|
"text-decoration-thickness": [{
|
|
1313
|
-
decoration: [
|
|
1313
|
+
decoration: [m, "from-font", "auto", n, T]
|
|
1314
1314
|
}],
|
|
1315
1315
|
/**
|
|
1316
1316
|
* Text Decoration Color
|
|
@@ -1324,7 +1324,7 @@ const Qe = (e, r) => {
|
|
|
1324
1324
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1325
1325
|
*/
|
|
1326
1326
|
"underline-offset": [{
|
|
1327
|
-
"underline-offset": [
|
|
1327
|
+
"underline-offset": [m, "auto", n, s]
|
|
1328
1328
|
}],
|
|
1329
1329
|
/**
|
|
1330
1330
|
* Text Transform
|
|
@@ -1445,10 +1445,10 @@ const Qe = (e, r) => {
|
|
|
1445
1445
|
bg: ["none", {
|
|
1446
1446
|
linear: [{
|
|
1447
1447
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1448
|
-
},
|
|
1448
|
+
}, I, n, s],
|
|
1449
1449
|
radial: ["", n, s],
|
|
1450
|
-
conic: [
|
|
1451
|
-
},
|
|
1450
|
+
conic: [I, n, s]
|
|
1451
|
+
}, Lt, Pt]
|
|
1452
1452
|
}],
|
|
1453
1453
|
/**
|
|
1454
1454
|
* Background Color
|
|
@@ -1507,175 +1507,175 @@ const Qe = (e, r) => {
|
|
|
1507
1507
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1508
1508
|
*/
|
|
1509
1509
|
rounded: [{
|
|
1510
|
-
rounded:
|
|
1510
|
+
rounded: w()
|
|
1511
1511
|
}],
|
|
1512
1512
|
/**
|
|
1513
1513
|
* Border Radius Start
|
|
1514
1514
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1515
1515
|
*/
|
|
1516
1516
|
"rounded-s": [{
|
|
1517
|
-
"rounded-s":
|
|
1517
|
+
"rounded-s": w()
|
|
1518
1518
|
}],
|
|
1519
1519
|
/**
|
|
1520
1520
|
* Border Radius End
|
|
1521
1521
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1522
1522
|
*/
|
|
1523
1523
|
"rounded-e": [{
|
|
1524
|
-
"rounded-e":
|
|
1524
|
+
"rounded-e": w()
|
|
1525
1525
|
}],
|
|
1526
1526
|
/**
|
|
1527
1527
|
* Border Radius Top
|
|
1528
1528
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1529
1529
|
*/
|
|
1530
1530
|
"rounded-t": [{
|
|
1531
|
-
"rounded-t":
|
|
1531
|
+
"rounded-t": w()
|
|
1532
1532
|
}],
|
|
1533
1533
|
/**
|
|
1534
1534
|
* Border Radius Right
|
|
1535
1535
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1536
1536
|
*/
|
|
1537
1537
|
"rounded-r": [{
|
|
1538
|
-
"rounded-r":
|
|
1538
|
+
"rounded-r": w()
|
|
1539
1539
|
}],
|
|
1540
1540
|
/**
|
|
1541
1541
|
* Border Radius Bottom
|
|
1542
1542
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1543
1543
|
*/
|
|
1544
1544
|
"rounded-b": [{
|
|
1545
|
-
"rounded-b":
|
|
1545
|
+
"rounded-b": w()
|
|
1546
1546
|
}],
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Border Radius Left
|
|
1549
1549
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1550
1550
|
*/
|
|
1551
1551
|
"rounded-l": [{
|
|
1552
|
-
"rounded-l":
|
|
1552
|
+
"rounded-l": w()
|
|
1553
1553
|
}],
|
|
1554
1554
|
/**
|
|
1555
1555
|
* Border Radius Start Start
|
|
1556
1556
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1557
1557
|
*/
|
|
1558
1558
|
"rounded-ss": [{
|
|
1559
|
-
"rounded-ss":
|
|
1559
|
+
"rounded-ss": w()
|
|
1560
1560
|
}],
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Border Radius Start End
|
|
1563
1563
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1564
1564
|
*/
|
|
1565
1565
|
"rounded-se": [{
|
|
1566
|
-
"rounded-se":
|
|
1566
|
+
"rounded-se": w()
|
|
1567
1567
|
}],
|
|
1568
1568
|
/**
|
|
1569
1569
|
* Border Radius End End
|
|
1570
1570
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1571
1571
|
*/
|
|
1572
1572
|
"rounded-ee": [{
|
|
1573
|
-
"rounded-ee":
|
|
1573
|
+
"rounded-ee": w()
|
|
1574
1574
|
}],
|
|
1575
1575
|
/**
|
|
1576
1576
|
* Border Radius End Start
|
|
1577
1577
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1578
1578
|
*/
|
|
1579
1579
|
"rounded-es": [{
|
|
1580
|
-
"rounded-es":
|
|
1580
|
+
"rounded-es": w()
|
|
1581
1581
|
}],
|
|
1582
1582
|
/**
|
|
1583
1583
|
* Border Radius Top Left
|
|
1584
1584
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1585
1585
|
*/
|
|
1586
1586
|
"rounded-tl": [{
|
|
1587
|
-
"rounded-tl":
|
|
1587
|
+
"rounded-tl": w()
|
|
1588
1588
|
}],
|
|
1589
1589
|
/**
|
|
1590
1590
|
* Border Radius Top Right
|
|
1591
1591
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1592
1592
|
*/
|
|
1593
1593
|
"rounded-tr": [{
|
|
1594
|
-
"rounded-tr":
|
|
1594
|
+
"rounded-tr": w()
|
|
1595
1595
|
}],
|
|
1596
1596
|
/**
|
|
1597
1597
|
* Border Radius Bottom Right
|
|
1598
1598
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1599
1599
|
*/
|
|
1600
1600
|
"rounded-br": [{
|
|
1601
|
-
"rounded-br":
|
|
1601
|
+
"rounded-br": w()
|
|
1602
1602
|
}],
|
|
1603
1603
|
/**
|
|
1604
1604
|
* Border Radius Bottom Left
|
|
1605
1605
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1606
1606
|
*/
|
|
1607
1607
|
"rounded-bl": [{
|
|
1608
|
-
"rounded-bl":
|
|
1608
|
+
"rounded-bl": w()
|
|
1609
1609
|
}],
|
|
1610
1610
|
/**
|
|
1611
1611
|
* Border Width
|
|
1612
1612
|
* @see https://tailwindcss.com/docs/border-width
|
|
1613
1613
|
*/
|
|
1614
1614
|
"border-w": [{
|
|
1615
|
-
border:
|
|
1615
|
+
border: v()
|
|
1616
1616
|
}],
|
|
1617
1617
|
/**
|
|
1618
1618
|
* Border Width X
|
|
1619
1619
|
* @see https://tailwindcss.com/docs/border-width
|
|
1620
1620
|
*/
|
|
1621
1621
|
"border-w-x": [{
|
|
1622
|
-
"border-x":
|
|
1622
|
+
"border-x": v()
|
|
1623
1623
|
}],
|
|
1624
1624
|
/**
|
|
1625
1625
|
* Border Width Y
|
|
1626
1626
|
* @see https://tailwindcss.com/docs/border-width
|
|
1627
1627
|
*/
|
|
1628
1628
|
"border-w-y": [{
|
|
1629
|
-
"border-y":
|
|
1629
|
+
"border-y": v()
|
|
1630
1630
|
}],
|
|
1631
1631
|
/**
|
|
1632
1632
|
* Border Width Start
|
|
1633
1633
|
* @see https://tailwindcss.com/docs/border-width
|
|
1634
1634
|
*/
|
|
1635
1635
|
"border-w-s": [{
|
|
1636
|
-
"border-s":
|
|
1636
|
+
"border-s": v()
|
|
1637
1637
|
}],
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Border Width End
|
|
1640
1640
|
* @see https://tailwindcss.com/docs/border-width
|
|
1641
1641
|
*/
|
|
1642
1642
|
"border-w-e": [{
|
|
1643
|
-
"border-e":
|
|
1643
|
+
"border-e": v()
|
|
1644
1644
|
}],
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Border Width Top
|
|
1647
1647
|
* @see https://tailwindcss.com/docs/border-width
|
|
1648
1648
|
*/
|
|
1649
1649
|
"border-w-t": [{
|
|
1650
|
-
"border-t":
|
|
1650
|
+
"border-t": v()
|
|
1651
1651
|
}],
|
|
1652
1652
|
/**
|
|
1653
1653
|
* Border Width Right
|
|
1654
1654
|
* @see https://tailwindcss.com/docs/border-width
|
|
1655
1655
|
*/
|
|
1656
1656
|
"border-w-r": [{
|
|
1657
|
-
"border-r":
|
|
1657
|
+
"border-r": v()
|
|
1658
1658
|
}],
|
|
1659
1659
|
/**
|
|
1660
1660
|
* Border Width Bottom
|
|
1661
1661
|
* @see https://tailwindcss.com/docs/border-width
|
|
1662
1662
|
*/
|
|
1663
1663
|
"border-w-b": [{
|
|
1664
|
-
"border-b":
|
|
1664
|
+
"border-b": v()
|
|
1665
1665
|
}],
|
|
1666
1666
|
/**
|
|
1667
1667
|
* Border Width Left
|
|
1668
1668
|
* @see https://tailwindcss.com/docs/border-width
|
|
1669
1669
|
*/
|
|
1670
1670
|
"border-w-l": [{
|
|
1671
|
-
"border-l":
|
|
1671
|
+
"border-l": v()
|
|
1672
1672
|
}],
|
|
1673
1673
|
/**
|
|
1674
1674
|
* Divide Width X
|
|
1675
1675
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1676
1676
|
*/
|
|
1677
1677
|
"divide-x": [{
|
|
1678
|
-
"divide-x":
|
|
1678
|
+
"divide-x": v()
|
|
1679
1679
|
}],
|
|
1680
1680
|
/**
|
|
1681
1681
|
* Divide Width X Reverse
|
|
@@ -1687,7 +1687,7 @@ const Qe = (e, r) => {
|
|
|
1687
1687
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1688
1688
|
*/
|
|
1689
1689
|
"divide-y": [{
|
|
1690
|
-
"divide-y":
|
|
1690
|
+
"divide-y": v()
|
|
1691
1691
|
}],
|
|
1692
1692
|
/**
|
|
1693
1693
|
* Divide Width Y Reverse
|
|
@@ -1790,14 +1790,14 @@ const Qe = (e, r) => {
|
|
|
1790
1790
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1791
1791
|
*/
|
|
1792
1792
|
"outline-offset": [{
|
|
1793
|
-
"outline-offset": [
|
|
1793
|
+
"outline-offset": [m, 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: ["", m, U, T]
|
|
1801
1801
|
}],
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Outline Color
|
|
@@ -1835,7 +1835,7 @@ const Qe = (e, r) => {
|
|
|
1835
1835
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1836
1836
|
*/
|
|
1837
1837
|
"inset-shadow": [{
|
|
1838
|
-
"inset-shadow": ["none",
|
|
1838
|
+
"inset-shadow": ["none", x, Z, X]
|
|
1839
1839
|
}],
|
|
1840
1840
|
/**
|
|
1841
1841
|
* Inset Box Shadow Color
|
|
@@ -1849,7 +1849,7 @@ const Qe = (e, r) => {
|
|
|
1849
1849
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1850
1850
|
*/
|
|
1851
1851
|
"ring-w": [{
|
|
1852
|
-
ring:
|
|
1852
|
+
ring: v()
|
|
1853
1853
|
}],
|
|
1854
1854
|
/**
|
|
1855
1855
|
* Ring Width Inset
|
|
@@ -1872,7 +1872,7 @@ const Qe = (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": [m, T]
|
|
1876
1876
|
}],
|
|
1877
1877
|
/**
|
|
1878
1878
|
* Ring Offset Color
|
|
@@ -1888,7 +1888,7 @@ const Qe = (e, r) => {
|
|
|
1888
1888
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1889
1889
|
*/
|
|
1890
1890
|
"inset-ring-w": [{
|
|
1891
|
-
"inset-ring":
|
|
1891
|
+
"inset-ring": v()
|
|
1892
1892
|
}],
|
|
1893
1893
|
/**
|
|
1894
1894
|
* Inset Ring Color
|
|
@@ -1902,7 +1902,7 @@ const Qe = (e, r) => {
|
|
|
1902
1902
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1903
1903
|
*/
|
|
1904
1904
|
"text-shadow": [{
|
|
1905
|
-
"text-shadow": ["none",
|
|
1905
|
+
"text-shadow": ["none", y, Z, X]
|
|
1906
1906
|
}],
|
|
1907
1907
|
/**
|
|
1908
1908
|
* Text Shadow Color
|
|
@@ -1916,7 +1916,7 @@ const Qe = (e, r) => {
|
|
|
1916
1916
|
* @see https://tailwindcss.com/docs/opacity
|
|
1917
1917
|
*/
|
|
1918
1918
|
opacity: [{
|
|
1919
|
-
opacity: [
|
|
1919
|
+
opacity: [m, n, s]
|
|
1920
1920
|
}],
|
|
1921
1921
|
/**
|
|
1922
1922
|
* Mix Blend Mode
|
|
@@ -1951,7 +1951,7 @@ const Qe = (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": [m]
|
|
1955
1955
|
}],
|
|
1956
1956
|
"mask-image-linear-from-pos": [{
|
|
1957
1957
|
"mask-linear-from": h()
|
|
@@ -2065,7 +2065,7 @@ const Qe = (e, r) => {
|
|
|
2065
2065
|
"mask-radial-at": P()
|
|
2066
2066
|
}],
|
|
2067
2067
|
"mask-image-conic-pos": [{
|
|
2068
|
-
"mask-conic": [
|
|
2068
|
+
"mask-conic": [m]
|
|
2069
2069
|
}],
|
|
2070
2070
|
"mask-image-conic-from-pos": [{
|
|
2071
2071
|
"mask-conic-from": h()
|
|
@@ -2156,14 +2156,14 @@ const Qe = (e, r) => {
|
|
|
2156
2156
|
* @see https://tailwindcss.com/docs/brightness
|
|
2157
2157
|
*/
|
|
2158
2158
|
brightness: [{
|
|
2159
|
-
brightness: [
|
|
2159
|
+
brightness: [m, 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: [m, n, s]
|
|
2167
2167
|
}],
|
|
2168
2168
|
/**
|
|
2169
2169
|
* Drop Shadow
|
|
@@ -2174,7 +2174,7 @@ const Qe = (e, r) => {
|
|
|
2174
2174
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2175
2175
|
"",
|
|
2176
2176
|
"none",
|
|
2177
|
-
|
|
2177
|
+
z,
|
|
2178
2178
|
Z,
|
|
2179
2179
|
X
|
|
2180
2180
|
]
|
|
@@ -2191,35 +2191,35 @@ const Qe = (e, r) => {
|
|
|
2191
2191
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2192
2192
|
*/
|
|
2193
2193
|
grayscale: [{
|
|
2194
|
-
grayscale: ["",
|
|
2194
|
+
grayscale: ["", m, 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": [m, 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: ["", m, 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: [m, 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: ["", m, n, s]
|
|
2223
2223
|
}],
|
|
2224
2224
|
/**
|
|
2225
2225
|
* Backdrop Filter
|
|
@@ -2246,56 +2246,56 @@ const Qe = (e, r) => {
|
|
|
2246
2246
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2247
2247
|
*/
|
|
2248
2248
|
"backdrop-brightness": [{
|
|
2249
|
-
"backdrop-brightness": [
|
|
2249
|
+
"backdrop-brightness": [m, 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": [m, 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": ["", m, 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": [m, 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": ["", m, 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": [m, 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": [m, 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": ["", m, n, s]
|
|
2299
2299
|
}],
|
|
2300
2300
|
// --------------
|
|
2301
2301
|
// --- Tables ---
|
|
@@ -2364,7 +2364,7 @@ const Qe = (e, r) => {
|
|
|
2364
2364
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2365
2365
|
*/
|
|
2366
2366
|
duration: [{
|
|
2367
|
-
duration: [
|
|
2367
|
+
duration: [m, "initial", n, s]
|
|
2368
2368
|
}],
|
|
2369
2369
|
/**
|
|
2370
2370
|
* Transition Timing Function
|
|
@@ -2378,14 +2378,14 @@ const Qe = (e, r) => {
|
|
|
2378
2378
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2379
2379
|
*/
|
|
2380
2380
|
delay: [{
|
|
2381
|
-
delay: [
|
|
2381
|
+
delay: [m, n, s]
|
|
2382
2382
|
}],
|
|
2383
2383
|
/**
|
|
2384
2384
|
* Animation
|
|
2385
2385
|
* @see https://tailwindcss.com/docs/animation
|
|
2386
2386
|
*/
|
|
2387
2387
|
animate: [{
|
|
2388
|
-
animate: ["none",
|
|
2388
|
+
animate: ["none", B, n, s]
|
|
2389
2389
|
}],
|
|
2390
2390
|
// ------------------
|
|
2391
2391
|
// --- Transforms ---
|
|
@@ -2402,14 +2402,14 @@ const Qe = (e, r) => {
|
|
|
2402
2402
|
* @see https://tailwindcss.com/docs/perspective
|
|
2403
2403
|
*/
|
|
2404
2404
|
perspective: [{
|
|
2405
|
-
perspective: [
|
|
2405
|
+
perspective: [C, 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": G()
|
|
2413
2413
|
}],
|
|
2414
2414
|
/**
|
|
2415
2415
|
* Rotate
|
|
@@ -2505,7 +2505,7 @@ const Qe = (e, r) => {
|
|
|
2505
2505
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2506
2506
|
*/
|
|
2507
2507
|
"transform-origin": [{
|
|
2508
|
-
origin:
|
|
2508
|
+
origin: G()
|
|
2509
2509
|
}],
|
|
2510
2510
|
/**
|
|
2511
2511
|
* Transform Style
|
|
@@ -2822,7 +2822,7 @@ const Qe = (e, r) => {
|
|
|
2822
2822
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2823
2823
|
*/
|
|
2824
2824
|
"stroke-w": [{
|
|
2825
|
-
stroke: [
|
|
2825
|
+
stroke: [m, U, T, oe]
|
|
2826
2826
|
}],
|
|
2827
2827
|
/**
|
|
2828
2828
|
* Stroke
|
|
@@ -2897,25 +2897,29 @@ const Qe = (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
|
+
}, _t = /* @__PURE__ */ wt(Wt);
|
|
2901
|
+
function Ut(...e) {
|
|
2902
|
+
return _t(Qe(e));
|
|
2903
2903
|
}
|
|
2904
|
-
function
|
|
2904
|
+
function or(e) {
|
|
2905
2905
|
throw new Error(`Unexpected value: ${e}`);
|
|
2906
2906
|
}
|
|
2907
|
-
|
|
2907
|
+
function sr(e, r) {
|
|
2908
|
+
if (!e)
|
|
2909
|
+
throw new Error(r);
|
|
2910
|
+
}
|
|
2911
|
+
const Bt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), $t = (e) => e.replace(
|
|
2908
2912
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
2909
|
-
(r,
|
|
2913
|
+
(r, o, t) => t ? t.toUpperCase() : o.toLowerCase()
|
|
2910
2914
|
), ve = (e) => {
|
|
2911
2915
|
const r = $t(e);
|
|
2912
2916
|
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
2913
|
-
}, Ve = (...e) => e.filter((r,
|
|
2917
|
+
}, Ve = (...e) => e.filter((r, o, t) => !!r && r.trim() !== "" && t.indexOf(r) === o).join(" ").trim(), Dt = (e) => {
|
|
2914
2918
|
for (const r in e)
|
|
2915
2919
|
if (r.startsWith("aria-") || r === "role" || r === "title")
|
|
2916
2920
|
return !0;
|
|
2917
2921
|
};
|
|
2918
|
-
var
|
|
2922
|
+
var Jt = {
|
|
2919
2923
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2920
2924
|
width: 24,
|
|
2921
2925
|
height: 24,
|
|
@@ -2926,28 +2930,28 @@ var Dt = {
|
|
|
2926
2930
|
strokeLinecap: "round",
|
|
2927
2931
|
strokeLinejoin: "round"
|
|
2928
2932
|
};
|
|
2929
|
-
const
|
|
2933
|
+
const qt = Ce(
|
|
2930
2934
|
({
|
|
2931
2935
|
color: e = "currentColor",
|
|
2932
2936
|
size: r = 24,
|
|
2933
|
-
strokeWidth:
|
|
2934
|
-
absoluteStrokeWidth:
|
|
2937
|
+
strokeWidth: o = 2,
|
|
2938
|
+
absoluteStrokeWidth: t,
|
|
2935
2939
|
className: a = "",
|
|
2936
2940
|
children: l,
|
|
2937
2941
|
iconNode: i,
|
|
2938
|
-
...
|
|
2942
|
+
...u
|
|
2939
2943
|
}, c) => se(
|
|
2940
2944
|
"svg",
|
|
2941
2945
|
{
|
|
2942
2946
|
ref: c,
|
|
2943
|
-
...
|
|
2947
|
+
...Jt,
|
|
2944
2948
|
width: r,
|
|
2945
2949
|
height: r,
|
|
2946
2950
|
stroke: e,
|
|
2947
|
-
strokeWidth:
|
|
2951
|
+
strokeWidth: t ? Number(o) * 24 / Number(r) : o,
|
|
2948
2952
|
className: Ve("lucide", a),
|
|
2949
|
-
...!l && !
|
|
2950
|
-
...
|
|
2953
|
+
...!l && !Dt(u) && { "aria-hidden": "true" },
|
|
2954
|
+
...u
|
|
2951
2955
|
},
|
|
2952
2956
|
[
|
|
2953
2957
|
...i.map(([g, f]) => se(g, f)),
|
|
@@ -2955,82 +2959,70 @@ const Jt = Ce(
|
|
|
2955
2959
|
]
|
|
2956
2960
|
)
|
|
2957
2961
|
);
|
|
2958
|
-
const
|
|
2959
|
-
const
|
|
2960
|
-
({ className:
|
|
2962
|
+
const Yt = (e, r) => {
|
|
2963
|
+
const o = Ce(
|
|
2964
|
+
({ className: t, ...a }, l) => se(qt, {
|
|
2961
2965
|
ref: l,
|
|
2962
2966
|
iconNode: r,
|
|
2963
2967
|
className: Ve(
|
|
2964
|
-
`lucide-${
|
|
2968
|
+
`lucide-${Bt(ve(e))}`,
|
|
2965
2969
|
`lucide-${e}`,
|
|
2966
|
-
|
|
2970
|
+
t
|
|
2967
2971
|
),
|
|
2968
2972
|
...a
|
|
2969
2973
|
})
|
|
2970
2974
|
);
|
|
2971
|
-
return
|
|
2975
|
+
return o.displayName = ve(e), o;
|
|
2972
2976
|
};
|
|
2973
|
-
const
|
|
2977
|
+
const Xt = [
|
|
2974
2978
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2975
2979
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
2976
2980
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
2977
|
-
],
|
|
2978
|
-
const r = $e(({ message:
|
|
2979
|
-
|
|
2980
|
-
if (!
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
i(C), a(!1);
|
|
3004
|
-
}
|
|
3005
|
-
})(), () => {
|
|
3006
|
-
f && f.finalize();
|
|
3007
|
-
};
|
|
3008
|
-
}, [m, e]), /* @__PURE__ */ fe(
|
|
2981
|
+
], Zt = Yt("circle-alert", Xt), Ht = ({ code: e }) => {
|
|
2982
|
+
const r = $e(({ message: x }) => x), o = be(null), t = be(null), [a, l] = _e(null), i = r.status?.type === "complete", u = Ke(), c = Ze(), g = Ue(() => {
|
|
2983
|
+
const x = e.trim();
|
|
2984
|
+
if (!x) return null;
|
|
2985
|
+
try {
|
|
2986
|
+
return JSON.parse(x);
|
|
2987
|
+
} catch {
|
|
2988
|
+
return null;
|
|
2989
|
+
}
|
|
2990
|
+
}, [e]), f = i && g !== null;
|
|
2991
|
+
return Be(() => !o.current || !f ? void 0 : (l(null), (async () => {
|
|
2992
|
+
try {
|
|
2993
|
+
t.current && (t.current.finalize(), t.current = null);
|
|
2994
|
+
const y = De(g), z = new Je(y, {
|
|
2995
|
+
container: o.current ?? void 0,
|
|
2996
|
+
renderer: "svg",
|
|
2997
|
+
hover: !0,
|
|
2998
|
+
logLevel: qe
|
|
2999
|
+
});
|
|
3000
|
+
t.current = z, await z.runAsync();
|
|
3001
|
+
} catch (y) {
|
|
3002
|
+
console.error("Failed to render chart:", y), l(y instanceof Error ? y.message : "Failed to render chart");
|
|
3003
|
+
}
|
|
3004
|
+
})(), () => {
|
|
3005
|
+
t.current && (t.current.finalize(), t.current = null);
|
|
3006
|
+
}), [f, g]), /* @__PURE__ */ fe(
|
|
3009
3007
|
"div",
|
|
3010
3008
|
{
|
|
3011
|
-
className:
|
|
3009
|
+
className: Ut(
|
|
3012
3010
|
// the after:hidden is to prevent assistant-ui from showing its default code block loading indicator
|
|
3013
3011
|
"relative flex min-h-[400px] w-fit max-w-full min-w-[400px] items-center justify-center border p-6 after:hidden",
|
|
3014
|
-
|
|
3015
|
-
|
|
3012
|
+
u("lg"),
|
|
3013
|
+
c("p-lg")
|
|
3016
3014
|
),
|
|
3017
3015
|
children: [
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
/* @__PURE__ */ te(
|
|
3021
|
-
|
|
3016
|
+
!f && !a && /* @__PURE__ */ te("div", { className: "shimmer text-muted-foreground bg-background/80 absolute inset-0 z-10 flex items-center justify-center", children: "Rendering chart..." }),
|
|
3017
|
+
a && /* @__PURE__ */ fe("div", { className: "bg-background absolute inset-0 z-10 flex items-center justify-center gap-2 text-rose-500", children: [
|
|
3018
|
+
/* @__PURE__ */ te(Zt, { name: "alert-circle", className: "h-4 w-4" }),
|
|
3019
|
+
a
|
|
3022
3020
|
] }),
|
|
3023
|
-
/* @__PURE__ */ te(
|
|
3024
|
-
"div",
|
|
3025
|
-
{
|
|
3026
|
-
ref: t,
|
|
3027
|
-
className: o ? "hidden" : "block"
|
|
3028
|
-
}
|
|
3029
|
-
)
|
|
3021
|
+
/* @__PURE__ */ te("div", { ref: o, className: f ? "block" : "hidden" })
|
|
3030
3022
|
]
|
|
3031
3023
|
}
|
|
3032
3024
|
);
|
|
3033
|
-
},
|
|
3025
|
+
}, Kt = {
|
|
3034
3026
|
language: "vega",
|
|
3035
3027
|
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
3028
|
|
|
@@ -3048,19 +3040,20 @@ CONTENT GUIDELINES:
|
|
|
3048
3040
|
- Do not mention "Vega" or other technical terms - this is user-facing
|
|
3049
3041
|
|
|
3050
3042
|
The Vega spec will be parsed with JSON.parse() - if it fails, the chart will error. Ensure strict JSON validity.`,
|
|
3051
|
-
Component:
|
|
3043
|
+
Component: Ht,
|
|
3052
3044
|
Header: void 0
|
|
3053
|
-
},
|
|
3045
|
+
}, nr = [Kt];
|
|
3054
3046
|
export {
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3047
|
+
Zt as C,
|
|
3048
|
+
Ye as E,
|
|
3049
|
+
sr as a,
|
|
3050
|
+
Qe as b,
|
|
3051
|
+
Yt as c,
|
|
3052
|
+
Ut as d,
|
|
3053
|
+
Ze as e,
|
|
3054
|
+
Ke as f,
|
|
3055
|
+
or as g,
|
|
3056
|
+
Kt as h,
|
|
3057
|
+
nr as r,
|
|
3065
3058
|
ze as u
|
|
3066
3059
|
};
|