@imdanibytes/nexus-ui 0.7.0 → 0.8.0
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/index.css +1 -0
- package/dist/index.d.ts +175 -0
- package/dist/index.js +1916 -616
- package/package.json +15 -4
package/dist/index.js
CHANGED
|
@@ -1,174 +1,181 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { HeroUIProvider as
|
|
5
|
-
import { Toaster as
|
|
6
|
-
import { Toaster as
|
|
7
|
-
|
|
1
|
+
import { jsx as a, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import * as L from "react";
|
|
3
|
+
import { useState as A, useEffect as ce, memo as rt, useCallback as R, useRef as Q, useContext as ot, createContext as kt, forwardRef as yt, useMemo as vt } from "react";
|
|
4
|
+
import { HeroUIProvider as wt, Input as Nt, Button as Se, Tooltip as ze } from "@heroui/react";
|
|
5
|
+
import { Toaster as Ct } from "sonner";
|
|
6
|
+
import { Toaster as jo, toast as Bo } from "sonner";
|
|
7
|
+
import { Streamdown as _t } from "streamdown";
|
|
8
|
+
import { createMathPlugin as St } from "@streamdown/math";
|
|
9
|
+
import { createCodePlugin as zt } from "@streamdown/code";
|
|
10
|
+
import It from "remark-gfm";
|
|
11
|
+
import { visit as Z } from "unist-util-visit";
|
|
12
|
+
import { ChevronDownIcon as Rt, CheckIcon as Tt, CopyIcon as $t, ArrowUpIcon as Mt, SquareIcon as At, XIcon as Et } from "lucide-react";
|
|
13
|
+
import { AnimatePresence as Ie, motion as we, LazyMotion as Be, domAnimation as Fe, m as de } from "framer-motion";
|
|
14
|
+
const nt = L.createContext({
|
|
8
15
|
apiUrl: "http://localhost:9600"
|
|
9
16
|
});
|
|
10
|
-
function
|
|
11
|
-
return
|
|
17
|
+
function wo() {
|
|
18
|
+
return L.useContext(nt);
|
|
12
19
|
}
|
|
13
|
-
function
|
|
20
|
+
function be(e) {
|
|
14
21
|
e && e !== "default" ? document.documentElement.setAttribute("data-theme", e) : document.documentElement.removeAttribute("data-theme");
|
|
15
22
|
}
|
|
16
|
-
function
|
|
23
|
+
function Ot() {
|
|
17
24
|
try {
|
|
18
25
|
return new URLSearchParams(window.location.search).get("nexus_theme") ?? void 0;
|
|
19
26
|
} catch {
|
|
20
27
|
return;
|
|
21
28
|
}
|
|
22
29
|
}
|
|
23
|
-
function
|
|
30
|
+
function No({
|
|
24
31
|
children: e,
|
|
25
|
-
apiUrl:
|
|
26
|
-
toaster:
|
|
32
|
+
apiUrl: t = "http://localhost:9600",
|
|
33
|
+
toaster: r = !0
|
|
27
34
|
}) {
|
|
28
|
-
const [o] =
|
|
29
|
-
const n =
|
|
30
|
-
return n &&
|
|
35
|
+
const [o] = L.useState(() => {
|
|
36
|
+
const n = Ot();
|
|
37
|
+
return n && be(n), document.documentElement.classList.contains("light") || document.documentElement.classList.add("dark"), !!n;
|
|
31
38
|
});
|
|
32
|
-
return
|
|
33
|
-
o || fetch(`${
|
|
34
|
-
|
|
39
|
+
return L.useEffect(() => {
|
|
40
|
+
o || fetch(`${t}/api/v1/theme`).then((n) => n.json()).then((n) => {
|
|
41
|
+
be(n.theme);
|
|
35
42
|
}).catch(() => {
|
|
36
43
|
});
|
|
37
|
-
}, [
|
|
44
|
+
}, [t, o]), L.useEffect(() => {
|
|
38
45
|
function n(l) {
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
41
|
-
const
|
|
42
|
-
|
|
46
|
+
const s = l.data;
|
|
47
|
+
if (s?.type === "nexus:system" && s.event === "theme_changed") {
|
|
48
|
+
const i = s.data?.theme;
|
|
49
|
+
be(i);
|
|
43
50
|
}
|
|
44
51
|
}
|
|
45
52
|
return window.addEventListener("message", n), () => window.removeEventListener("message", n);
|
|
46
|
-
}, []), /* @__PURE__ */
|
|
53
|
+
}, []), /* @__PURE__ */ a(wt, { style: { display: "contents" }, children: /* @__PURE__ */ h(nt.Provider, { value: { apiUrl: t }, children: [
|
|
47
54
|
e,
|
|
48
|
-
|
|
55
|
+
r && /* @__PURE__ */ a(Ct, {})
|
|
49
56
|
] }) });
|
|
50
57
|
}
|
|
51
|
-
function
|
|
52
|
-
var
|
|
58
|
+
function st(e) {
|
|
59
|
+
var t, r, o = "";
|
|
53
60
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
54
61
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
55
62
|
var n = e.length;
|
|
56
|
-
for (
|
|
57
|
-
} else for (
|
|
63
|
+
for (t = 0; t < n; t++) e[t] && (r = st(e[t])) && (o && (o += " "), o += r);
|
|
64
|
+
} else for (r in e) e[r] && (o && (o += " "), o += r);
|
|
58
65
|
return o;
|
|
59
66
|
}
|
|
60
|
-
function
|
|
61
|
-
for (var e,
|
|
67
|
+
function Pt() {
|
|
68
|
+
for (var e, t, r = 0, o = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t = st(e)) && (o && (o += " "), o += t);
|
|
62
69
|
return o;
|
|
63
70
|
}
|
|
64
|
-
const
|
|
65
|
-
const
|
|
71
|
+
const Lt = (e, t) => {
|
|
72
|
+
const r = new Array(e.length + t.length);
|
|
66
73
|
for (let o = 0; o < e.length; o++)
|
|
67
|
-
|
|
68
|
-
for (let o = 0; o <
|
|
69
|
-
|
|
70
|
-
return
|
|
71
|
-
},
|
|
74
|
+
r[o] = e[o];
|
|
75
|
+
for (let o = 0; o < t.length; o++)
|
|
76
|
+
r[e.length + o] = t[o];
|
|
77
|
+
return r;
|
|
78
|
+
}, jt = (e, t) => ({
|
|
72
79
|
classGroupId: e,
|
|
73
|
-
validator:
|
|
74
|
-
}),
|
|
80
|
+
validator: t
|
|
81
|
+
}), at = (e = /* @__PURE__ */ new Map(), t = null, r) => ({
|
|
75
82
|
nextPart: e,
|
|
76
|
-
validators:
|
|
77
|
-
classGroupId:
|
|
78
|
-
}),
|
|
79
|
-
const
|
|
80
|
-
conflictingClassGroups:
|
|
83
|
+
validators: t,
|
|
84
|
+
classGroupId: r
|
|
85
|
+
}), ue = "-", We = [], Bt = "arbitrary..", Ft = (e) => {
|
|
86
|
+
const t = Gt(e), {
|
|
87
|
+
conflictingClassGroups: r,
|
|
81
88
|
conflictingClassGroupModifiers: o
|
|
82
89
|
} = e;
|
|
83
90
|
return {
|
|
84
|
-
getClassGroupId: (
|
|
85
|
-
if (
|
|
86
|
-
return
|
|
87
|
-
const
|
|
88
|
-
return
|
|
91
|
+
getClassGroupId: (s) => {
|
|
92
|
+
if (s.startsWith("[") && s.endsWith("]"))
|
|
93
|
+
return Wt(s);
|
|
94
|
+
const i = s.split(ue), c = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
95
|
+
return lt(i, c, t);
|
|
89
96
|
},
|
|
90
|
-
getConflictingClassGroupIds: (
|
|
91
|
-
if (
|
|
92
|
-
const c = o[
|
|
93
|
-
return c ?
|
|
97
|
+
getConflictingClassGroupIds: (s, i) => {
|
|
98
|
+
if (i) {
|
|
99
|
+
const c = o[s], d = r[s];
|
|
100
|
+
return c ? d ? Lt(d, c) : c : d || We;
|
|
94
101
|
}
|
|
95
|
-
return
|
|
102
|
+
return r[s] || We;
|
|
96
103
|
}
|
|
97
104
|
};
|
|
98
|
-
},
|
|
99
|
-
if (e.length -
|
|
100
|
-
return
|
|
101
|
-
const n = e[
|
|
105
|
+
}, lt = (e, t, r) => {
|
|
106
|
+
if (e.length - t === 0)
|
|
107
|
+
return r.classGroupId;
|
|
108
|
+
const n = e[t], l = r.nextPart.get(n);
|
|
102
109
|
if (l) {
|
|
103
|
-
const
|
|
104
|
-
if (
|
|
110
|
+
const d = lt(e, t + 1, l);
|
|
111
|
+
if (d) return d;
|
|
105
112
|
}
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
113
|
+
const s = r.validators;
|
|
114
|
+
if (s === null)
|
|
108
115
|
return;
|
|
109
|
-
const
|
|
110
|
-
for (let
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
113
|
-
return
|
|
116
|
+
const i = t === 0 ? e.join(ue) : e.slice(t).join(ue), c = s.length;
|
|
117
|
+
for (let d = 0; d < c; d++) {
|
|
118
|
+
const b = s[d];
|
|
119
|
+
if (b.validator(i))
|
|
120
|
+
return b.classGroupId;
|
|
114
121
|
}
|
|
115
|
-
},
|
|
116
|
-
const
|
|
117
|
-
return o ?
|
|
118
|
-
})(),
|
|
122
|
+
}, Wt = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
123
|
+
const t = e.slice(1, -1), r = t.indexOf(":"), o = t.slice(0, r);
|
|
124
|
+
return o ? Bt + o : void 0;
|
|
125
|
+
})(), Gt = (e) => {
|
|
119
126
|
const {
|
|
120
|
-
theme:
|
|
121
|
-
classGroups:
|
|
127
|
+
theme: t,
|
|
128
|
+
classGroups: r
|
|
122
129
|
} = e;
|
|
123
|
-
return
|
|
124
|
-
},
|
|
125
|
-
const
|
|
130
|
+
return Dt(r, t);
|
|
131
|
+
}, Dt = (e, t) => {
|
|
132
|
+
const r = at();
|
|
126
133
|
for (const o in e) {
|
|
127
134
|
const n = e[o];
|
|
128
|
-
|
|
135
|
+
Re(n, r, o, t);
|
|
129
136
|
}
|
|
130
|
-
return
|
|
131
|
-
},
|
|
137
|
+
return r;
|
|
138
|
+
}, Re = (e, t, r, o) => {
|
|
132
139
|
const n = e.length;
|
|
133
140
|
for (let l = 0; l < n; l++) {
|
|
134
|
-
const
|
|
135
|
-
|
|
141
|
+
const s = e[l];
|
|
142
|
+
Vt(s, t, r, o);
|
|
136
143
|
}
|
|
137
|
-
},
|
|
144
|
+
}, Vt = (e, t, r, o) => {
|
|
138
145
|
if (typeof e == "string") {
|
|
139
|
-
|
|
146
|
+
Ut(e, t, r);
|
|
140
147
|
return;
|
|
141
148
|
}
|
|
142
149
|
if (typeof e == "function") {
|
|
143
|
-
|
|
150
|
+
qt(e, t, r, o);
|
|
144
151
|
return;
|
|
145
152
|
}
|
|
146
|
-
|
|
147
|
-
},
|
|
148
|
-
const o = e === "" ?
|
|
149
|
-
o.classGroupId =
|
|
150
|
-
},
|
|
151
|
-
if (
|
|
152
|
-
|
|
153
|
+
Ht(e, t, r, o);
|
|
154
|
+
}, Ut = (e, t, r) => {
|
|
155
|
+
const o = e === "" ? t : it(t, e);
|
|
156
|
+
o.classGroupId = r;
|
|
157
|
+
}, qt = (e, t, r, o) => {
|
|
158
|
+
if (Jt(e)) {
|
|
159
|
+
Re(e(o), t, r, o);
|
|
153
160
|
return;
|
|
154
161
|
}
|
|
155
|
-
|
|
156
|
-
},
|
|
162
|
+
t.validators === null && (t.validators = []), t.validators.push(jt(r, e));
|
|
163
|
+
}, Ht = (e, t, r, o) => {
|
|
157
164
|
const n = Object.entries(e), l = n.length;
|
|
158
|
-
for (let
|
|
159
|
-
const [
|
|
160
|
-
|
|
165
|
+
for (let s = 0; s < l; s++) {
|
|
166
|
+
const [i, c] = n[s];
|
|
167
|
+
Re(c, it(t, i), r, o);
|
|
161
168
|
}
|
|
162
|
-
},
|
|
163
|
-
let
|
|
164
|
-
const o =
|
|
169
|
+
}, it = (e, t) => {
|
|
170
|
+
let r = e;
|
|
171
|
+
const o = t.split(ue), n = o.length;
|
|
165
172
|
for (let l = 0; l < n; l++) {
|
|
166
|
-
const
|
|
167
|
-
let
|
|
168
|
-
|
|
173
|
+
const s = o[l];
|
|
174
|
+
let i = r.nextPart.get(s);
|
|
175
|
+
i || (i = at(), r.nextPart.set(s, i)), r = i;
|
|
169
176
|
}
|
|
170
|
-
return
|
|
171
|
-
},
|
|
177
|
+
return r;
|
|
178
|
+
}, Jt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Kt = (e) => {
|
|
172
179
|
if (e < 1)
|
|
173
180
|
return {
|
|
174
181
|
get: () => {
|
|
@@ -176,178 +183,178 @@ const qe = (e, r) => {
|
|
|
176
183
|
set: () => {
|
|
177
184
|
}
|
|
178
185
|
};
|
|
179
|
-
let
|
|
180
|
-
const n = (l,
|
|
181
|
-
|
|
186
|
+
let t = 0, r = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
187
|
+
const n = (l, s) => {
|
|
188
|
+
r[l] = s, t++, t > e && (t = 0, o = r, r = /* @__PURE__ */ Object.create(null));
|
|
182
189
|
};
|
|
183
190
|
return {
|
|
184
191
|
get(l) {
|
|
185
|
-
let
|
|
186
|
-
if (
|
|
187
|
-
return
|
|
188
|
-
if ((
|
|
189
|
-
return n(l,
|
|
192
|
+
let s = r[l];
|
|
193
|
+
if (s !== void 0)
|
|
194
|
+
return s;
|
|
195
|
+
if ((s = o[l]) !== void 0)
|
|
196
|
+
return n(l, s), s;
|
|
190
197
|
},
|
|
191
|
-
set(l,
|
|
192
|
-
l in
|
|
198
|
+
set(l, s) {
|
|
199
|
+
l in r ? r[l] = s : n(l, s);
|
|
193
200
|
}
|
|
194
201
|
};
|
|
195
|
-
},
|
|
202
|
+
}, Ne = "!", Ge = ":", Yt = [], De = (e, t, r, o, n) => ({
|
|
196
203
|
modifiers: e,
|
|
197
|
-
hasImportantModifier:
|
|
198
|
-
baseClassName:
|
|
204
|
+
hasImportantModifier: t,
|
|
205
|
+
baseClassName: r,
|
|
199
206
|
maybePostfixModifierPosition: o,
|
|
200
207
|
isExternal: n
|
|
201
|
-
}),
|
|
208
|
+
}), Xt = (e) => {
|
|
202
209
|
const {
|
|
203
|
-
prefix:
|
|
204
|
-
experimentalParseClassName:
|
|
210
|
+
prefix: t,
|
|
211
|
+
experimentalParseClassName: r
|
|
205
212
|
} = e;
|
|
206
213
|
let o = (n) => {
|
|
207
214
|
const l = [];
|
|
208
|
-
let
|
|
209
|
-
const
|
|
210
|
-
for (let
|
|
211
|
-
const
|
|
212
|
-
if (
|
|
213
|
-
if (
|
|
214
|
-
l.push(n.slice(c,
|
|
215
|
+
let s = 0, i = 0, c = 0, d;
|
|
216
|
+
const b = n.length;
|
|
217
|
+
for (let _ = 0; _ < b; _++) {
|
|
218
|
+
const z = n[_];
|
|
219
|
+
if (s === 0 && i === 0) {
|
|
220
|
+
if (z === Ge) {
|
|
221
|
+
l.push(n.slice(c, _)), c = _ + 1;
|
|
215
222
|
continue;
|
|
216
223
|
}
|
|
217
|
-
if (
|
|
218
|
-
|
|
224
|
+
if (z === "/") {
|
|
225
|
+
d = _;
|
|
219
226
|
continue;
|
|
220
227
|
}
|
|
221
228
|
}
|
|
222
|
-
|
|
229
|
+
z === "[" ? s++ : z === "]" ? s-- : z === "(" ? i++ : z === ")" && i--;
|
|
223
230
|
}
|
|
224
|
-
const
|
|
225
|
-
let
|
|
226
|
-
|
|
231
|
+
const y = l.length === 0 ? n : n.slice(c);
|
|
232
|
+
let x = y, v = !1;
|
|
233
|
+
y.endsWith(Ne) ? (x = y.slice(0, -1), v = !0) : (
|
|
227
234
|
/**
|
|
228
235
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
229
236
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
230
237
|
*/
|
|
231
|
-
|
|
238
|
+
y.startsWith(Ne) && (x = y.slice(1), v = !0)
|
|
232
239
|
);
|
|
233
|
-
const
|
|
234
|
-
return
|
|
240
|
+
const w = d && d > c ? d - c : void 0;
|
|
241
|
+
return De(l, v, x, w);
|
|
235
242
|
};
|
|
236
|
-
if (r) {
|
|
237
|
-
const n = r + ke, l = o;
|
|
238
|
-
o = (i) => i.startsWith(n) ? l(i.slice(n.length)) : ve(at, !1, i, void 0, !0);
|
|
239
|
-
}
|
|
240
243
|
if (t) {
|
|
244
|
+
const n = t + Ge, l = o;
|
|
245
|
+
o = (s) => s.startsWith(n) ? l(s.slice(n.length)) : De(Yt, !1, s, void 0, !0);
|
|
246
|
+
}
|
|
247
|
+
if (r) {
|
|
241
248
|
const n = o;
|
|
242
|
-
o = (l) =>
|
|
249
|
+
o = (l) => r({
|
|
243
250
|
className: l,
|
|
244
251
|
parseClassName: n
|
|
245
252
|
});
|
|
246
253
|
}
|
|
247
254
|
return o;
|
|
248
|
-
},
|
|
249
|
-
const
|
|
250
|
-
return e.orderSensitiveModifiers.forEach((
|
|
251
|
-
|
|
252
|
-
}), (
|
|
255
|
+
}, Zt = (e) => {
|
|
256
|
+
const t = /* @__PURE__ */ new Map();
|
|
257
|
+
return e.orderSensitiveModifiers.forEach((r, o) => {
|
|
258
|
+
t.set(r, 1e6 + o);
|
|
259
|
+
}), (r) => {
|
|
253
260
|
const o = [];
|
|
254
261
|
let n = [];
|
|
255
|
-
for (let l = 0; l <
|
|
256
|
-
const
|
|
257
|
-
|
|
262
|
+
for (let l = 0; l < r.length; l++) {
|
|
263
|
+
const s = r[l], i = s[0] === "[", c = t.has(s);
|
|
264
|
+
i || c ? (n.length > 0 && (n.sort(), o.push(...n), n = []), o.push(s)) : n.push(s);
|
|
258
265
|
}
|
|
259
266
|
return n.length > 0 && (n.sort(), o.push(...n)), o;
|
|
260
267
|
};
|
|
261
|
-
},
|
|
262
|
-
cache:
|
|
263
|
-
parseClassName:
|
|
264
|
-
sortModifiers:
|
|
265
|
-
...
|
|
266
|
-
}),
|
|
268
|
+
}, Qt = (e) => ({
|
|
269
|
+
cache: Kt(e.cacheSize),
|
|
270
|
+
parseClassName: Xt(e),
|
|
271
|
+
sortModifiers: Zt(e),
|
|
272
|
+
...Ft(e)
|
|
273
|
+
}), er = /\s+/, tr = (e, t) => {
|
|
267
274
|
const {
|
|
268
|
-
parseClassName:
|
|
275
|
+
parseClassName: r,
|
|
269
276
|
getClassGroupId: o,
|
|
270
277
|
getConflictingClassGroupIds: n,
|
|
271
278
|
sortModifiers: l
|
|
272
|
-
} =
|
|
279
|
+
} = t, s = [], i = e.trim().split(er);
|
|
273
280
|
let c = "";
|
|
274
|
-
for (let
|
|
275
|
-
const
|
|
276
|
-
isExternal:
|
|
277
|
-
modifiers:
|
|
278
|
-
hasImportantModifier:
|
|
279
|
-
baseClassName:
|
|
280
|
-
maybePostfixModifierPosition:
|
|
281
|
-
} =
|
|
282
|
-
if (
|
|
283
|
-
c =
|
|
281
|
+
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
282
|
+
const b = i[d], {
|
|
283
|
+
isExternal: y,
|
|
284
|
+
modifiers: x,
|
|
285
|
+
hasImportantModifier: v,
|
|
286
|
+
baseClassName: w,
|
|
287
|
+
maybePostfixModifierPosition: _
|
|
288
|
+
} = r(b);
|
|
289
|
+
if (y) {
|
|
290
|
+
c = b + (c.length > 0 ? " " + c : c);
|
|
284
291
|
continue;
|
|
285
292
|
}
|
|
286
|
-
let
|
|
287
|
-
if (!
|
|
288
|
-
if (!
|
|
289
|
-
c =
|
|
293
|
+
let z = !!_, j = o(z ? w.substring(0, _) : w);
|
|
294
|
+
if (!j) {
|
|
295
|
+
if (!z) {
|
|
296
|
+
c = b + (c.length > 0 ? " " + c : c);
|
|
290
297
|
continue;
|
|
291
298
|
}
|
|
292
|
-
if (
|
|
293
|
-
c =
|
|
299
|
+
if (j = o(w), !j) {
|
|
300
|
+
c = b + (c.length > 0 ? " " + c : c);
|
|
294
301
|
continue;
|
|
295
302
|
}
|
|
296
|
-
|
|
303
|
+
z = !1;
|
|
297
304
|
}
|
|
298
|
-
const
|
|
299
|
-
if (
|
|
305
|
+
const ee = x.length === 0 ? "" : x.length === 1 ? x[0] : l(x).join(":"), K = v ? ee + Ne : ee, G = K + j;
|
|
306
|
+
if (s.indexOf(G) > -1)
|
|
300
307
|
continue;
|
|
301
|
-
|
|
302
|
-
const
|
|
303
|
-
for (let
|
|
304
|
-
const
|
|
305
|
-
|
|
308
|
+
s.push(G);
|
|
309
|
+
const D = n(j, z);
|
|
310
|
+
for (let B = 0; B < D.length; ++B) {
|
|
311
|
+
const Y = D[B];
|
|
312
|
+
s.push(K + Y);
|
|
306
313
|
}
|
|
307
|
-
c =
|
|
314
|
+
c = b + (c.length > 0 ? " " + c : c);
|
|
308
315
|
}
|
|
309
316
|
return c;
|
|
310
|
-
},
|
|
311
|
-
let
|
|
312
|
-
for (;
|
|
313
|
-
(
|
|
317
|
+
}, rr = (...e) => {
|
|
318
|
+
let t = 0, r, o, n = "";
|
|
319
|
+
for (; t < e.length; )
|
|
320
|
+
(r = e[t++]) && (o = ct(r)) && (n && (n += " "), n += o);
|
|
314
321
|
return n;
|
|
315
|
-
},
|
|
322
|
+
}, ct = (e) => {
|
|
316
323
|
if (typeof e == "string")
|
|
317
324
|
return e;
|
|
318
|
-
let
|
|
325
|
+
let t, r = "";
|
|
319
326
|
for (let o = 0; o < e.length; o++)
|
|
320
|
-
e[o] && (
|
|
321
|
-
return
|
|
322
|
-
},
|
|
323
|
-
let
|
|
324
|
-
const
|
|
325
|
-
const
|
|
326
|
-
return
|
|
327
|
-
},
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
330
|
-
return
|
|
331
|
-
const
|
|
332
|
-
return n(c,
|
|
327
|
+
e[o] && (t = ct(e[o])) && (r && (r += " "), r += t);
|
|
328
|
+
return r;
|
|
329
|
+
}, or = (e, ...t) => {
|
|
330
|
+
let r, o, n, l;
|
|
331
|
+
const s = (c) => {
|
|
332
|
+
const d = t.reduce((b, y) => y(b), e());
|
|
333
|
+
return r = Qt(d), o = r.cache.get, n = r.cache.set, l = i, i(c);
|
|
334
|
+
}, i = (c) => {
|
|
335
|
+
const d = o(c);
|
|
336
|
+
if (d)
|
|
337
|
+
return d;
|
|
338
|
+
const b = tr(c, r);
|
|
339
|
+
return n(c, b), b;
|
|
333
340
|
};
|
|
334
|
-
return l =
|
|
335
|
-
},
|
|
336
|
-
const
|
|
337
|
-
return
|
|
338
|
-
},
|
|
341
|
+
return l = s, (...c) => l(rr(...c));
|
|
342
|
+
}, nr = [], N = (e) => {
|
|
343
|
+
const t = (r) => r[e] || nr;
|
|
344
|
+
return t.isThemeGetter = !0, t;
|
|
345
|
+
}, dt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ut = /^\((?:(\w[\w-]*):)?(.+)\)$/i, sr = /^\d+\/\d+$/, ar = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, lr = /\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$/, ir = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, cr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, dr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, U = (e) => sr.test(e), k = (e) => !!e && !Number.isNaN(Number(e)), E = (e) => !!e && Number.isInteger(Number(e)), ge = (e) => e.endsWith("%") && k(e.slice(0, -1)), M = (e) => ar.test(e), ur = () => !0, mr = (e) => (
|
|
339
346
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
340
347
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
341
348
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
342
|
-
|
|
343
|
-
),
|
|
344
|
-
const o =
|
|
345
|
-
return o ? o[1] ?
|
|
346
|
-
},
|
|
347
|
-
const o =
|
|
348
|
-
return o ? o[1] ?
|
|
349
|
-
},
|
|
350
|
-
const e =
|
|
349
|
+
lr.test(e) && !ir.test(e)
|
|
350
|
+
), mt = () => !1, pr = (e) => cr.test(e), fr = (e) => dr.test(e), hr = (e) => !u(e) && !m(e), br = (e) => H(e, ht, mt), u = (e) => dt.test(e), W = (e) => H(e, bt, mr), xe = (e) => H(e, vr, k), Ve = (e) => H(e, pt, mt), gr = (e) => H(e, ft, fr), ae = (e) => H(e, gt, pr), m = (e) => ut.test(e), X = (e) => J(e, bt), xr = (e) => J(e, wr), Ue = (e) => J(e, pt), kr = (e) => J(e, ht), yr = (e) => J(e, ft), le = (e) => J(e, gt, !0), H = (e, t, r) => {
|
|
351
|
+
const o = dt.exec(e);
|
|
352
|
+
return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
|
|
353
|
+
}, J = (e, t, r = !1) => {
|
|
354
|
+
const o = ut.exec(e);
|
|
355
|
+
return o ? o[1] ? t(o[1]) : r : !1;
|
|
356
|
+
}, pt = (e) => e === "position" || e === "percentage", ft = (e) => e === "image" || e === "url", ht = (e) => e === "length" || e === "size" || e === "bg-size", bt = (e) => e === "length", vr = (e) => e === "number", wr = (e) => e === "family-name", gt = (e) => e === "shadow", Nr = () => {
|
|
357
|
+
const e = N("color"), t = N("font"), r = N("text"), o = N("font-weight"), n = N("tracking"), l = N("leading"), s = N("breakpoint"), i = N("container"), c = N("spacing"), d = N("radius"), b = N("shadow"), y = N("inset-shadow"), x = N("text-shadow"), v = N("drop-shadow"), w = N("blur"), _ = N("perspective"), z = N("aspect"), j = N("ease"), ee = N("animate"), K = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [
|
|
351
358
|
"center",
|
|
352
359
|
"top",
|
|
353
360
|
"bottom",
|
|
@@ -365,51 +372,51 @@ const qe = (e, r) => {
|
|
|
365
372
|
"bottom-left",
|
|
366
373
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
367
374
|
"left-bottom"
|
|
368
|
-
],
|
|
369
|
-
span: ["full",
|
|
370
|
-
},
|
|
371
|
-
position: [
|
|
372
|
-
}],
|
|
375
|
+
], D = () => [...G(), m, u], B = () => ["auto", "hidden", "clip", "visible", "scroll"], Y = () => ["auto", "contain", "none"], g = () => [m, u, c], T = () => [U, "full", "auto", ...g()], $e = () => [E, "none", "subgrid", m, u], Me = () => ["auto", {
|
|
376
|
+
span: ["full", E, m, u]
|
|
377
|
+
}, E, m, u], te = () => [E, "auto", m, u], Ae = () => ["auto", "min", "max", "fr", m, u], pe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], V = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...g()], F = () => [U, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...g()], f = () => [e, m, u], Ee = () => [...G(), Ue, Ve, {
|
|
378
|
+
position: [m, u]
|
|
379
|
+
}], Oe = () => ["no-repeat", {
|
|
373
380
|
repeat: ["", "x", "y", "space", "round"]
|
|
374
|
-
}],
|
|
375
|
-
size: [
|
|
376
|
-
}],
|
|
381
|
+
}], Pe = () => ["auto", "cover", "contain", kr, br, {
|
|
382
|
+
size: [m, u]
|
|
383
|
+
}], fe = () => [ge, X, W], S = () => [
|
|
377
384
|
// Deprecated since Tailwind CSS v4.0.0
|
|
378
385
|
"",
|
|
379
386
|
"none",
|
|
380
387
|
"full",
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
],
|
|
388
|
+
d,
|
|
389
|
+
m,
|
|
390
|
+
u
|
|
391
|
+
], I = () => ["", k, X, W], re = () => ["solid", "dashed", "dotted", "double"], Le = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], C = () => [k, ge, Ue, Ve], je = () => [
|
|
385
392
|
// Deprecated since Tailwind CSS v4.0.0
|
|
386
393
|
"",
|
|
387
394
|
"none",
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
],
|
|
395
|
+
w,
|
|
396
|
+
m,
|
|
397
|
+
u
|
|
398
|
+
], oe = () => ["none", k, m, u], ne = () => ["none", k, m, u], he = () => [k, m, u], se = () => [U, "full", ...g()];
|
|
392
399
|
return {
|
|
393
400
|
cacheSize: 500,
|
|
394
401
|
theme: {
|
|
395
402
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
396
403
|
aspect: ["video"],
|
|
397
|
-
blur: [
|
|
398
|
-
breakpoint: [
|
|
399
|
-
color: [
|
|
400
|
-
container: [
|
|
401
|
-
"drop-shadow": [
|
|
404
|
+
blur: [M],
|
|
405
|
+
breakpoint: [M],
|
|
406
|
+
color: [ur],
|
|
407
|
+
container: [M],
|
|
408
|
+
"drop-shadow": [M],
|
|
402
409
|
ease: ["in", "out", "in-out"],
|
|
403
|
-
font: [
|
|
410
|
+
font: [hr],
|
|
404
411
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
405
|
-
"inset-shadow": [
|
|
412
|
+
"inset-shadow": [M],
|
|
406
413
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
407
414
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
408
|
-
radius: [
|
|
409
|
-
shadow: [
|
|
410
|
-
spacing: ["px",
|
|
411
|
-
text: [
|
|
412
|
-
"text-shadow": [
|
|
415
|
+
radius: [M],
|
|
416
|
+
shadow: [M],
|
|
417
|
+
spacing: ["px", k],
|
|
418
|
+
text: [M],
|
|
419
|
+
"text-shadow": [M],
|
|
413
420
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
414
421
|
},
|
|
415
422
|
classGroups: {
|
|
@@ -421,7 +428,7 @@ const qe = (e, r) => {
|
|
|
421
428
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
422
429
|
*/
|
|
423
430
|
aspect: [{
|
|
424
|
-
aspect: ["auto", "square",
|
|
431
|
+
aspect: ["auto", "square", U, u, m, z]
|
|
425
432
|
}],
|
|
426
433
|
/**
|
|
427
434
|
* Container
|
|
@@ -434,21 +441,21 @@ const qe = (e, r) => {
|
|
|
434
441
|
* @see https://tailwindcss.com/docs/columns
|
|
435
442
|
*/
|
|
436
443
|
columns: [{
|
|
437
|
-
columns: [
|
|
444
|
+
columns: [k, u, m, i]
|
|
438
445
|
}],
|
|
439
446
|
/**
|
|
440
447
|
* Break After
|
|
441
448
|
* @see https://tailwindcss.com/docs/break-after
|
|
442
449
|
*/
|
|
443
450
|
"break-after": [{
|
|
444
|
-
"break-after":
|
|
451
|
+
"break-after": K()
|
|
445
452
|
}],
|
|
446
453
|
/**
|
|
447
454
|
* Break Before
|
|
448
455
|
* @see https://tailwindcss.com/docs/break-before
|
|
449
456
|
*/
|
|
450
457
|
"break-before": [{
|
|
451
|
-
"break-before":
|
|
458
|
+
"break-before": K()
|
|
452
459
|
}],
|
|
453
460
|
/**
|
|
454
461
|
* Break Inside
|
|
@@ -512,49 +519,49 @@ const qe = (e, r) => {
|
|
|
512
519
|
* @see https://tailwindcss.com/docs/object-position
|
|
513
520
|
*/
|
|
514
521
|
"object-position": [{
|
|
515
|
-
object:
|
|
522
|
+
object: D()
|
|
516
523
|
}],
|
|
517
524
|
/**
|
|
518
525
|
* Overflow
|
|
519
526
|
* @see https://tailwindcss.com/docs/overflow
|
|
520
527
|
*/
|
|
521
528
|
overflow: [{
|
|
522
|
-
overflow:
|
|
529
|
+
overflow: B()
|
|
523
530
|
}],
|
|
524
531
|
/**
|
|
525
532
|
* Overflow X
|
|
526
533
|
* @see https://tailwindcss.com/docs/overflow
|
|
527
534
|
*/
|
|
528
535
|
"overflow-x": [{
|
|
529
|
-
"overflow-x":
|
|
536
|
+
"overflow-x": B()
|
|
530
537
|
}],
|
|
531
538
|
/**
|
|
532
539
|
* Overflow Y
|
|
533
540
|
* @see https://tailwindcss.com/docs/overflow
|
|
534
541
|
*/
|
|
535
542
|
"overflow-y": [{
|
|
536
|
-
"overflow-y":
|
|
543
|
+
"overflow-y": B()
|
|
537
544
|
}],
|
|
538
545
|
/**
|
|
539
546
|
* Overscroll Behavior
|
|
540
547
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
541
548
|
*/
|
|
542
549
|
overscroll: [{
|
|
543
|
-
overscroll:
|
|
550
|
+
overscroll: Y()
|
|
544
551
|
}],
|
|
545
552
|
/**
|
|
546
553
|
* Overscroll Behavior X
|
|
547
554
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
548
555
|
*/
|
|
549
556
|
"overscroll-x": [{
|
|
550
|
-
"overscroll-x":
|
|
557
|
+
"overscroll-x": Y()
|
|
551
558
|
}],
|
|
552
559
|
/**
|
|
553
560
|
* Overscroll Behavior Y
|
|
554
561
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
555
562
|
*/
|
|
556
563
|
"overscroll-y": [{
|
|
557
|
-
"overscroll-y":
|
|
564
|
+
"overscroll-y": Y()
|
|
558
565
|
}],
|
|
559
566
|
/**
|
|
560
567
|
* Position
|
|
@@ -566,63 +573,63 @@ const qe = (e, r) => {
|
|
|
566
573
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
567
574
|
*/
|
|
568
575
|
inset: [{
|
|
569
|
-
inset:
|
|
576
|
+
inset: T()
|
|
570
577
|
}],
|
|
571
578
|
/**
|
|
572
579
|
* Right / Left
|
|
573
580
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
574
581
|
*/
|
|
575
582
|
"inset-x": [{
|
|
576
|
-
"inset-x":
|
|
583
|
+
"inset-x": T()
|
|
577
584
|
}],
|
|
578
585
|
/**
|
|
579
586
|
* Top / Bottom
|
|
580
587
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
581
588
|
*/
|
|
582
589
|
"inset-y": [{
|
|
583
|
-
"inset-y":
|
|
590
|
+
"inset-y": T()
|
|
584
591
|
}],
|
|
585
592
|
/**
|
|
586
593
|
* Start
|
|
587
594
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
588
595
|
*/
|
|
589
596
|
start: [{
|
|
590
|
-
start:
|
|
597
|
+
start: T()
|
|
591
598
|
}],
|
|
592
599
|
/**
|
|
593
600
|
* End
|
|
594
601
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
595
602
|
*/
|
|
596
603
|
end: [{
|
|
597
|
-
end:
|
|
604
|
+
end: T()
|
|
598
605
|
}],
|
|
599
606
|
/**
|
|
600
607
|
* Top
|
|
601
608
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
602
609
|
*/
|
|
603
610
|
top: [{
|
|
604
|
-
top:
|
|
611
|
+
top: T()
|
|
605
612
|
}],
|
|
606
613
|
/**
|
|
607
614
|
* Right
|
|
608
615
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
609
616
|
*/
|
|
610
617
|
right: [{
|
|
611
|
-
right:
|
|
618
|
+
right: T()
|
|
612
619
|
}],
|
|
613
620
|
/**
|
|
614
621
|
* Bottom
|
|
615
622
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
616
623
|
*/
|
|
617
624
|
bottom: [{
|
|
618
|
-
bottom:
|
|
625
|
+
bottom: T()
|
|
619
626
|
}],
|
|
620
627
|
/**
|
|
621
628
|
* Left
|
|
622
629
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
623
630
|
*/
|
|
624
631
|
left: [{
|
|
625
|
-
left:
|
|
632
|
+
left: T()
|
|
626
633
|
}],
|
|
627
634
|
/**
|
|
628
635
|
* Visibility
|
|
@@ -634,7 +641,7 @@ const qe = (e, r) => {
|
|
|
634
641
|
* @see https://tailwindcss.com/docs/z-index
|
|
635
642
|
*/
|
|
636
643
|
z: [{
|
|
637
|
-
z: [
|
|
644
|
+
z: [E, "auto", m, u]
|
|
638
645
|
}],
|
|
639
646
|
// ------------------------
|
|
640
647
|
// --- Flexbox and Grid ---
|
|
@@ -644,7 +651,7 @@ const qe = (e, r) => {
|
|
|
644
651
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
645
652
|
*/
|
|
646
653
|
basis: [{
|
|
647
|
-
basis: [
|
|
654
|
+
basis: [U, "full", "auto", i, ...g()]
|
|
648
655
|
}],
|
|
649
656
|
/**
|
|
650
657
|
* Flex Direction
|
|
@@ -665,84 +672,84 @@ const qe = (e, r) => {
|
|
|
665
672
|
* @see https://tailwindcss.com/docs/flex
|
|
666
673
|
*/
|
|
667
674
|
flex: [{
|
|
668
|
-
flex: [
|
|
675
|
+
flex: [k, U, "auto", "initial", "none", u]
|
|
669
676
|
}],
|
|
670
677
|
/**
|
|
671
678
|
* Flex Grow
|
|
672
679
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
673
680
|
*/
|
|
674
681
|
grow: [{
|
|
675
|
-
grow: ["",
|
|
682
|
+
grow: ["", k, m, u]
|
|
676
683
|
}],
|
|
677
684
|
/**
|
|
678
685
|
* Flex Shrink
|
|
679
686
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
680
687
|
*/
|
|
681
688
|
shrink: [{
|
|
682
|
-
shrink: ["",
|
|
689
|
+
shrink: ["", k, m, u]
|
|
683
690
|
}],
|
|
684
691
|
/**
|
|
685
692
|
* Order
|
|
686
693
|
* @see https://tailwindcss.com/docs/order
|
|
687
694
|
*/
|
|
688
695
|
order: [{
|
|
689
|
-
order: [
|
|
696
|
+
order: [E, "first", "last", "none", m, u]
|
|
690
697
|
}],
|
|
691
698
|
/**
|
|
692
699
|
* Grid Template Columns
|
|
693
700
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
694
701
|
*/
|
|
695
702
|
"grid-cols": [{
|
|
696
|
-
"grid-cols":
|
|
703
|
+
"grid-cols": $e()
|
|
697
704
|
}],
|
|
698
705
|
/**
|
|
699
706
|
* Grid Column Start / End
|
|
700
707
|
* @see https://tailwindcss.com/docs/grid-column
|
|
701
708
|
*/
|
|
702
709
|
"col-start-end": [{
|
|
703
|
-
col:
|
|
710
|
+
col: Me()
|
|
704
711
|
}],
|
|
705
712
|
/**
|
|
706
713
|
* Grid Column Start
|
|
707
714
|
* @see https://tailwindcss.com/docs/grid-column
|
|
708
715
|
*/
|
|
709
716
|
"col-start": [{
|
|
710
|
-
"col-start":
|
|
717
|
+
"col-start": te()
|
|
711
718
|
}],
|
|
712
719
|
/**
|
|
713
720
|
* Grid Column End
|
|
714
721
|
* @see https://tailwindcss.com/docs/grid-column
|
|
715
722
|
*/
|
|
716
723
|
"col-end": [{
|
|
717
|
-
"col-end":
|
|
724
|
+
"col-end": te()
|
|
718
725
|
}],
|
|
719
726
|
/**
|
|
720
727
|
* Grid Template Rows
|
|
721
728
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
722
729
|
*/
|
|
723
730
|
"grid-rows": [{
|
|
724
|
-
"grid-rows":
|
|
731
|
+
"grid-rows": $e()
|
|
725
732
|
}],
|
|
726
733
|
/**
|
|
727
734
|
* Grid Row Start / End
|
|
728
735
|
* @see https://tailwindcss.com/docs/grid-row
|
|
729
736
|
*/
|
|
730
737
|
"row-start-end": [{
|
|
731
|
-
row:
|
|
738
|
+
row: Me()
|
|
732
739
|
}],
|
|
733
740
|
/**
|
|
734
741
|
* Grid Row Start
|
|
735
742
|
* @see https://tailwindcss.com/docs/grid-row
|
|
736
743
|
*/
|
|
737
744
|
"row-start": [{
|
|
738
|
-
"row-start":
|
|
745
|
+
"row-start": te()
|
|
739
746
|
}],
|
|
740
747
|
/**
|
|
741
748
|
* Grid Row End
|
|
742
749
|
* @see https://tailwindcss.com/docs/grid-row
|
|
743
750
|
*/
|
|
744
751
|
"row-end": [{
|
|
745
|
-
"row-end":
|
|
752
|
+
"row-end": te()
|
|
746
753
|
}],
|
|
747
754
|
/**
|
|
748
755
|
* Grid Auto Flow
|
|
@@ -756,70 +763,70 @@ const qe = (e, r) => {
|
|
|
756
763
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
757
764
|
*/
|
|
758
765
|
"auto-cols": [{
|
|
759
|
-
"auto-cols":
|
|
766
|
+
"auto-cols": Ae()
|
|
760
767
|
}],
|
|
761
768
|
/**
|
|
762
769
|
* Grid Auto Rows
|
|
763
770
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
764
771
|
*/
|
|
765
772
|
"auto-rows": [{
|
|
766
|
-
"auto-rows":
|
|
773
|
+
"auto-rows": Ae()
|
|
767
774
|
}],
|
|
768
775
|
/**
|
|
769
776
|
* Gap
|
|
770
777
|
* @see https://tailwindcss.com/docs/gap
|
|
771
778
|
*/
|
|
772
779
|
gap: [{
|
|
773
|
-
gap:
|
|
780
|
+
gap: g()
|
|
774
781
|
}],
|
|
775
782
|
/**
|
|
776
783
|
* Gap X
|
|
777
784
|
* @see https://tailwindcss.com/docs/gap
|
|
778
785
|
*/
|
|
779
786
|
"gap-x": [{
|
|
780
|
-
"gap-x":
|
|
787
|
+
"gap-x": g()
|
|
781
788
|
}],
|
|
782
789
|
/**
|
|
783
790
|
* Gap Y
|
|
784
791
|
* @see https://tailwindcss.com/docs/gap
|
|
785
792
|
*/
|
|
786
793
|
"gap-y": [{
|
|
787
|
-
"gap-y":
|
|
794
|
+
"gap-y": g()
|
|
788
795
|
}],
|
|
789
796
|
/**
|
|
790
797
|
* Justify Content
|
|
791
798
|
* @see https://tailwindcss.com/docs/justify-content
|
|
792
799
|
*/
|
|
793
800
|
"justify-content": [{
|
|
794
|
-
justify: [...
|
|
801
|
+
justify: [...pe(), "normal"]
|
|
795
802
|
}],
|
|
796
803
|
/**
|
|
797
804
|
* Justify Items
|
|
798
805
|
* @see https://tailwindcss.com/docs/justify-items
|
|
799
806
|
*/
|
|
800
807
|
"justify-items": [{
|
|
801
|
-
"justify-items": [...
|
|
808
|
+
"justify-items": [...V(), "normal"]
|
|
802
809
|
}],
|
|
803
810
|
/**
|
|
804
811
|
* Justify Self
|
|
805
812
|
* @see https://tailwindcss.com/docs/justify-self
|
|
806
813
|
*/
|
|
807
814
|
"justify-self": [{
|
|
808
|
-
"justify-self": ["auto", ...
|
|
815
|
+
"justify-self": ["auto", ...V()]
|
|
809
816
|
}],
|
|
810
817
|
/**
|
|
811
818
|
* Align Content
|
|
812
819
|
* @see https://tailwindcss.com/docs/align-content
|
|
813
820
|
*/
|
|
814
821
|
"align-content": [{
|
|
815
|
-
content: ["normal", ...
|
|
822
|
+
content: ["normal", ...pe()]
|
|
816
823
|
}],
|
|
817
824
|
/**
|
|
818
825
|
* Align Items
|
|
819
826
|
* @see https://tailwindcss.com/docs/align-items
|
|
820
827
|
*/
|
|
821
828
|
"align-items": [{
|
|
822
|
-
items: [...
|
|
829
|
+
items: [...V(), {
|
|
823
830
|
baseline: ["", "last"]
|
|
824
831
|
}]
|
|
825
832
|
}],
|
|
@@ -828,7 +835,7 @@ const qe = (e, r) => {
|
|
|
828
835
|
* @see https://tailwindcss.com/docs/align-self
|
|
829
836
|
*/
|
|
830
837
|
"align-self": [{
|
|
831
|
-
self: ["auto", ...
|
|
838
|
+
self: ["auto", ...V(), {
|
|
832
839
|
baseline: ["", "last"]
|
|
833
840
|
}]
|
|
834
841
|
}],
|
|
@@ -837,21 +844,21 @@ const qe = (e, r) => {
|
|
|
837
844
|
* @see https://tailwindcss.com/docs/place-content
|
|
838
845
|
*/
|
|
839
846
|
"place-content": [{
|
|
840
|
-
"place-content":
|
|
847
|
+
"place-content": pe()
|
|
841
848
|
}],
|
|
842
849
|
/**
|
|
843
850
|
* Place Items
|
|
844
851
|
* @see https://tailwindcss.com/docs/place-items
|
|
845
852
|
*/
|
|
846
853
|
"place-items": [{
|
|
847
|
-
"place-items": [...
|
|
854
|
+
"place-items": [...V(), "baseline"]
|
|
848
855
|
}],
|
|
849
856
|
/**
|
|
850
857
|
* Place Self
|
|
851
858
|
* @see https://tailwindcss.com/docs/place-self
|
|
852
859
|
*/
|
|
853
860
|
"place-self": [{
|
|
854
|
-
"place-self": ["auto", ...
|
|
861
|
+
"place-self": ["auto", ...V()]
|
|
855
862
|
}],
|
|
856
863
|
// Spacing
|
|
857
864
|
/**
|
|
@@ -859,133 +866,133 @@ const qe = (e, r) => {
|
|
|
859
866
|
* @see https://tailwindcss.com/docs/padding
|
|
860
867
|
*/
|
|
861
868
|
p: [{
|
|
862
|
-
p:
|
|
869
|
+
p: g()
|
|
863
870
|
}],
|
|
864
871
|
/**
|
|
865
872
|
* Padding X
|
|
866
873
|
* @see https://tailwindcss.com/docs/padding
|
|
867
874
|
*/
|
|
868
875
|
px: [{
|
|
869
|
-
px:
|
|
876
|
+
px: g()
|
|
870
877
|
}],
|
|
871
878
|
/**
|
|
872
879
|
* Padding Y
|
|
873
880
|
* @see https://tailwindcss.com/docs/padding
|
|
874
881
|
*/
|
|
875
882
|
py: [{
|
|
876
|
-
py:
|
|
883
|
+
py: g()
|
|
877
884
|
}],
|
|
878
885
|
/**
|
|
879
886
|
* Padding Start
|
|
880
887
|
* @see https://tailwindcss.com/docs/padding
|
|
881
888
|
*/
|
|
882
889
|
ps: [{
|
|
883
|
-
ps:
|
|
890
|
+
ps: g()
|
|
884
891
|
}],
|
|
885
892
|
/**
|
|
886
893
|
* Padding End
|
|
887
894
|
* @see https://tailwindcss.com/docs/padding
|
|
888
895
|
*/
|
|
889
896
|
pe: [{
|
|
890
|
-
pe:
|
|
897
|
+
pe: g()
|
|
891
898
|
}],
|
|
892
899
|
/**
|
|
893
900
|
* Padding Top
|
|
894
901
|
* @see https://tailwindcss.com/docs/padding
|
|
895
902
|
*/
|
|
896
903
|
pt: [{
|
|
897
|
-
pt:
|
|
904
|
+
pt: g()
|
|
898
905
|
}],
|
|
899
906
|
/**
|
|
900
907
|
* Padding Right
|
|
901
908
|
* @see https://tailwindcss.com/docs/padding
|
|
902
909
|
*/
|
|
903
910
|
pr: [{
|
|
904
|
-
pr:
|
|
911
|
+
pr: g()
|
|
905
912
|
}],
|
|
906
913
|
/**
|
|
907
914
|
* Padding Bottom
|
|
908
915
|
* @see https://tailwindcss.com/docs/padding
|
|
909
916
|
*/
|
|
910
917
|
pb: [{
|
|
911
|
-
pb:
|
|
918
|
+
pb: g()
|
|
912
919
|
}],
|
|
913
920
|
/**
|
|
914
921
|
* Padding Left
|
|
915
922
|
* @see https://tailwindcss.com/docs/padding
|
|
916
923
|
*/
|
|
917
924
|
pl: [{
|
|
918
|
-
pl:
|
|
925
|
+
pl: g()
|
|
919
926
|
}],
|
|
920
927
|
/**
|
|
921
928
|
* Margin
|
|
922
929
|
* @see https://tailwindcss.com/docs/margin
|
|
923
930
|
*/
|
|
924
931
|
m: [{
|
|
925
|
-
m:
|
|
932
|
+
m: $()
|
|
926
933
|
}],
|
|
927
934
|
/**
|
|
928
935
|
* Margin X
|
|
929
936
|
* @see https://tailwindcss.com/docs/margin
|
|
930
937
|
*/
|
|
931
938
|
mx: [{
|
|
932
|
-
mx:
|
|
939
|
+
mx: $()
|
|
933
940
|
}],
|
|
934
941
|
/**
|
|
935
942
|
* Margin Y
|
|
936
943
|
* @see https://tailwindcss.com/docs/margin
|
|
937
944
|
*/
|
|
938
945
|
my: [{
|
|
939
|
-
my:
|
|
946
|
+
my: $()
|
|
940
947
|
}],
|
|
941
948
|
/**
|
|
942
949
|
* Margin Start
|
|
943
950
|
* @see https://tailwindcss.com/docs/margin
|
|
944
951
|
*/
|
|
945
952
|
ms: [{
|
|
946
|
-
ms:
|
|
953
|
+
ms: $()
|
|
947
954
|
}],
|
|
948
955
|
/**
|
|
949
956
|
* Margin End
|
|
950
957
|
* @see https://tailwindcss.com/docs/margin
|
|
951
958
|
*/
|
|
952
959
|
me: [{
|
|
953
|
-
me:
|
|
960
|
+
me: $()
|
|
954
961
|
}],
|
|
955
962
|
/**
|
|
956
963
|
* Margin Top
|
|
957
964
|
* @see https://tailwindcss.com/docs/margin
|
|
958
965
|
*/
|
|
959
966
|
mt: [{
|
|
960
|
-
mt:
|
|
967
|
+
mt: $()
|
|
961
968
|
}],
|
|
962
969
|
/**
|
|
963
970
|
* Margin Right
|
|
964
971
|
* @see https://tailwindcss.com/docs/margin
|
|
965
972
|
*/
|
|
966
973
|
mr: [{
|
|
967
|
-
mr:
|
|
974
|
+
mr: $()
|
|
968
975
|
}],
|
|
969
976
|
/**
|
|
970
977
|
* Margin Bottom
|
|
971
978
|
* @see https://tailwindcss.com/docs/margin
|
|
972
979
|
*/
|
|
973
980
|
mb: [{
|
|
974
|
-
mb:
|
|
981
|
+
mb: $()
|
|
975
982
|
}],
|
|
976
983
|
/**
|
|
977
984
|
* Margin Left
|
|
978
985
|
* @see https://tailwindcss.com/docs/margin
|
|
979
986
|
*/
|
|
980
987
|
ml: [{
|
|
981
|
-
ml:
|
|
988
|
+
ml: $()
|
|
982
989
|
}],
|
|
983
990
|
/**
|
|
984
991
|
* Space Between X
|
|
985
992
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
986
993
|
*/
|
|
987
994
|
"space-x": [{
|
|
988
|
-
"space-x":
|
|
995
|
+
"space-x": g()
|
|
989
996
|
}],
|
|
990
997
|
/**
|
|
991
998
|
* Space Between X Reverse
|
|
@@ -997,7 +1004,7 @@ const qe = (e, r) => {
|
|
|
997
1004
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
998
1005
|
*/
|
|
999
1006
|
"space-y": [{
|
|
1000
|
-
"space-y":
|
|
1007
|
+
"space-y": g()
|
|
1001
1008
|
}],
|
|
1002
1009
|
/**
|
|
1003
1010
|
* Space Between Y Reverse
|
|
@@ -1012,14 +1019,14 @@ const qe = (e, r) => {
|
|
|
1012
1019
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1013
1020
|
*/
|
|
1014
1021
|
size: [{
|
|
1015
|
-
size:
|
|
1022
|
+
size: F()
|
|
1016
1023
|
}],
|
|
1017
1024
|
/**
|
|
1018
1025
|
* Width
|
|
1019
1026
|
* @see https://tailwindcss.com/docs/width
|
|
1020
1027
|
*/
|
|
1021
1028
|
w: [{
|
|
1022
|
-
w: [
|
|
1029
|
+
w: [i, "screen", ...F()]
|
|
1023
1030
|
}],
|
|
1024
1031
|
/**
|
|
1025
1032
|
* Min-Width
|
|
@@ -1027,11 +1034,11 @@ const qe = (e, r) => {
|
|
|
1027
1034
|
*/
|
|
1028
1035
|
"min-w": [{
|
|
1029
1036
|
"min-w": [
|
|
1030
|
-
|
|
1037
|
+
i,
|
|
1031
1038
|
"screen",
|
|
1032
1039
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1033
1040
|
"none",
|
|
1034
|
-
...
|
|
1041
|
+
...F()
|
|
1035
1042
|
]
|
|
1036
1043
|
}],
|
|
1037
1044
|
/**
|
|
@@ -1040,16 +1047,16 @@ const qe = (e, r) => {
|
|
|
1040
1047
|
*/
|
|
1041
1048
|
"max-w": [{
|
|
1042
1049
|
"max-w": [
|
|
1043
|
-
|
|
1050
|
+
i,
|
|
1044
1051
|
"screen",
|
|
1045
1052
|
"none",
|
|
1046
1053
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1047
1054
|
"prose",
|
|
1048
1055
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1049
1056
|
{
|
|
1050
|
-
screen: [
|
|
1057
|
+
screen: [s]
|
|
1051
1058
|
},
|
|
1052
|
-
...
|
|
1059
|
+
...F()
|
|
1053
1060
|
]
|
|
1054
1061
|
}],
|
|
1055
1062
|
/**
|
|
@@ -1057,21 +1064,21 @@ const qe = (e, r) => {
|
|
|
1057
1064
|
* @see https://tailwindcss.com/docs/height
|
|
1058
1065
|
*/
|
|
1059
1066
|
h: [{
|
|
1060
|
-
h: ["screen", "lh", ...
|
|
1067
|
+
h: ["screen", "lh", ...F()]
|
|
1061
1068
|
}],
|
|
1062
1069
|
/**
|
|
1063
1070
|
* Min-Height
|
|
1064
1071
|
* @see https://tailwindcss.com/docs/min-height
|
|
1065
1072
|
*/
|
|
1066
1073
|
"min-h": [{
|
|
1067
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1074
|
+
"min-h": ["screen", "lh", "none", ...F()]
|
|
1068
1075
|
}],
|
|
1069
1076
|
/**
|
|
1070
1077
|
* Max-Height
|
|
1071
1078
|
* @see https://tailwindcss.com/docs/max-height
|
|
1072
1079
|
*/
|
|
1073
1080
|
"max-h": [{
|
|
1074
|
-
"max-h": ["screen", "lh", ...
|
|
1081
|
+
"max-h": ["screen", "lh", ...F()]
|
|
1075
1082
|
}],
|
|
1076
1083
|
// ------------------
|
|
1077
1084
|
// --- Typography ---
|
|
@@ -1081,7 +1088,7 @@ const qe = (e, r) => {
|
|
|
1081
1088
|
* @see https://tailwindcss.com/docs/font-size
|
|
1082
1089
|
*/
|
|
1083
1090
|
"font-size": [{
|
|
1084
|
-
text: ["base",
|
|
1091
|
+
text: ["base", r, X, W]
|
|
1085
1092
|
}],
|
|
1086
1093
|
/**
|
|
1087
1094
|
* Font Smoothing
|
|
@@ -1098,21 +1105,21 @@ const qe = (e, r) => {
|
|
|
1098
1105
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1099
1106
|
*/
|
|
1100
1107
|
"font-weight": [{
|
|
1101
|
-
font: [o,
|
|
1108
|
+
font: [o, m, xe]
|
|
1102
1109
|
}],
|
|
1103
1110
|
/**
|
|
1104
1111
|
* Font Stretch
|
|
1105
1112
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1106
1113
|
*/
|
|
1107
1114
|
"font-stretch": [{
|
|
1108
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1115
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ge, u]
|
|
1109
1116
|
}],
|
|
1110
1117
|
/**
|
|
1111
1118
|
* Font Family
|
|
1112
1119
|
* @see https://tailwindcss.com/docs/font-family
|
|
1113
1120
|
*/
|
|
1114
1121
|
"font-family": [{
|
|
1115
|
-
font: [
|
|
1122
|
+
font: [xr, u, t]
|
|
1116
1123
|
}],
|
|
1117
1124
|
/**
|
|
1118
1125
|
* Font Variant Numeric
|
|
@@ -1149,14 +1156,14 @@ const qe = (e, r) => {
|
|
|
1149
1156
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1150
1157
|
*/
|
|
1151
1158
|
tracking: [{
|
|
1152
|
-
tracking: [n,
|
|
1159
|
+
tracking: [n, m, u]
|
|
1153
1160
|
}],
|
|
1154
1161
|
/**
|
|
1155
1162
|
* Line Clamp
|
|
1156
1163
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1157
1164
|
*/
|
|
1158
1165
|
"line-clamp": [{
|
|
1159
|
-
"line-clamp": [
|
|
1166
|
+
"line-clamp": [k, "none", m, xe]
|
|
1160
1167
|
}],
|
|
1161
1168
|
/**
|
|
1162
1169
|
* Line Height
|
|
@@ -1166,7 +1173,7 @@ const qe = (e, r) => {
|
|
|
1166
1173
|
leading: [
|
|
1167
1174
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1168
1175
|
l,
|
|
1169
|
-
...
|
|
1176
|
+
...g()
|
|
1170
1177
|
]
|
|
1171
1178
|
}],
|
|
1172
1179
|
/**
|
|
@@ -1174,7 +1181,7 @@ const qe = (e, r) => {
|
|
|
1174
1181
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1175
1182
|
*/
|
|
1176
1183
|
"list-image": [{
|
|
1177
|
-
"list-image": ["none",
|
|
1184
|
+
"list-image": ["none", m, u]
|
|
1178
1185
|
}],
|
|
1179
1186
|
/**
|
|
1180
1187
|
* List Style Position
|
|
@@ -1188,7 +1195,7 @@ const qe = (e, r) => {
|
|
|
1188
1195
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1189
1196
|
*/
|
|
1190
1197
|
"list-style-type": [{
|
|
1191
|
-
list: ["disc", "decimal", "none",
|
|
1198
|
+
list: ["disc", "decimal", "none", m, u]
|
|
1192
1199
|
}],
|
|
1193
1200
|
/**
|
|
1194
1201
|
* Text Alignment
|
|
@@ -1203,14 +1210,14 @@ const qe = (e, r) => {
|
|
|
1203
1210
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1204
1211
|
*/
|
|
1205
1212
|
"placeholder-color": [{
|
|
1206
|
-
placeholder:
|
|
1213
|
+
placeholder: f()
|
|
1207
1214
|
}],
|
|
1208
1215
|
/**
|
|
1209
1216
|
* Text Color
|
|
1210
1217
|
* @see https://tailwindcss.com/docs/text-color
|
|
1211
1218
|
*/
|
|
1212
1219
|
"text-color": [{
|
|
1213
|
-
text:
|
|
1220
|
+
text: f()
|
|
1214
1221
|
}],
|
|
1215
1222
|
/**
|
|
1216
1223
|
* Text Decoration
|
|
@@ -1222,28 +1229,28 @@ const qe = (e, r) => {
|
|
|
1222
1229
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1223
1230
|
*/
|
|
1224
1231
|
"text-decoration-style": [{
|
|
1225
|
-
decoration: [...
|
|
1232
|
+
decoration: [...re(), "wavy"]
|
|
1226
1233
|
}],
|
|
1227
1234
|
/**
|
|
1228
1235
|
* Text Decoration Thickness
|
|
1229
1236
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1230
1237
|
*/
|
|
1231
1238
|
"text-decoration-thickness": [{
|
|
1232
|
-
decoration: [
|
|
1239
|
+
decoration: [k, "from-font", "auto", m, W]
|
|
1233
1240
|
}],
|
|
1234
1241
|
/**
|
|
1235
1242
|
* Text Decoration Color
|
|
1236
1243
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1237
1244
|
*/
|
|
1238
1245
|
"text-decoration-color": [{
|
|
1239
|
-
decoration:
|
|
1246
|
+
decoration: f()
|
|
1240
1247
|
}],
|
|
1241
1248
|
/**
|
|
1242
1249
|
* Text Underline Offset
|
|
1243
1250
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1244
1251
|
*/
|
|
1245
1252
|
"underline-offset": [{
|
|
1246
|
-
"underline-offset": [
|
|
1253
|
+
"underline-offset": [k, "auto", m, u]
|
|
1247
1254
|
}],
|
|
1248
1255
|
/**
|
|
1249
1256
|
* Text Transform
|
|
@@ -1267,14 +1274,14 @@ const qe = (e, r) => {
|
|
|
1267
1274
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1268
1275
|
*/
|
|
1269
1276
|
indent: [{
|
|
1270
|
-
indent:
|
|
1277
|
+
indent: g()
|
|
1271
1278
|
}],
|
|
1272
1279
|
/**
|
|
1273
1280
|
* Vertical Alignment
|
|
1274
1281
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1275
1282
|
*/
|
|
1276
1283
|
"vertical-align": [{
|
|
1277
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1284
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", m, u]
|
|
1278
1285
|
}],
|
|
1279
1286
|
/**
|
|
1280
1287
|
* Whitespace
|
|
@@ -1309,7 +1316,7 @@ const qe = (e, r) => {
|
|
|
1309
1316
|
* @see https://tailwindcss.com/docs/content
|
|
1310
1317
|
*/
|
|
1311
1318
|
content: [{
|
|
1312
|
-
content: ["none",
|
|
1319
|
+
content: ["none", m, u]
|
|
1313
1320
|
}],
|
|
1314
1321
|
// -------------------
|
|
1315
1322
|
// --- Backgrounds ---
|
|
@@ -1340,21 +1347,21 @@ const qe = (e, r) => {
|
|
|
1340
1347
|
* @see https://tailwindcss.com/docs/background-position
|
|
1341
1348
|
*/
|
|
1342
1349
|
"bg-position": [{
|
|
1343
|
-
bg:
|
|
1350
|
+
bg: Ee()
|
|
1344
1351
|
}],
|
|
1345
1352
|
/**
|
|
1346
1353
|
* Background Repeat
|
|
1347
1354
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1348
1355
|
*/
|
|
1349
1356
|
"bg-repeat": [{
|
|
1350
|
-
bg:
|
|
1357
|
+
bg: Oe()
|
|
1351
1358
|
}],
|
|
1352
1359
|
/**
|
|
1353
1360
|
* Background Size
|
|
1354
1361
|
* @see https://tailwindcss.com/docs/background-size
|
|
1355
1362
|
*/
|
|
1356
1363
|
"bg-size": [{
|
|
1357
|
-
bg:
|
|
1364
|
+
bg: Pe()
|
|
1358
1365
|
}],
|
|
1359
1366
|
/**
|
|
1360
1367
|
* Background Image
|
|
@@ -1364,59 +1371,59 @@ const qe = (e, r) => {
|
|
|
1364
1371
|
bg: ["none", {
|
|
1365
1372
|
linear: [{
|
|
1366
1373
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1367
|
-
},
|
|
1368
|
-
radial: ["",
|
|
1369
|
-
conic: [
|
|
1370
|
-
},
|
|
1374
|
+
}, E, m, u],
|
|
1375
|
+
radial: ["", m, u],
|
|
1376
|
+
conic: [E, m, u]
|
|
1377
|
+
}, yr, gr]
|
|
1371
1378
|
}],
|
|
1372
1379
|
/**
|
|
1373
1380
|
* Background Color
|
|
1374
1381
|
* @see https://tailwindcss.com/docs/background-color
|
|
1375
1382
|
*/
|
|
1376
1383
|
"bg-color": [{
|
|
1377
|
-
bg:
|
|
1384
|
+
bg: f()
|
|
1378
1385
|
}],
|
|
1379
1386
|
/**
|
|
1380
1387
|
* Gradient Color Stops From Position
|
|
1381
1388
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1382
1389
|
*/
|
|
1383
1390
|
"gradient-from-pos": [{
|
|
1384
|
-
from:
|
|
1391
|
+
from: fe()
|
|
1385
1392
|
}],
|
|
1386
1393
|
/**
|
|
1387
1394
|
* Gradient Color Stops Via Position
|
|
1388
1395
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1389
1396
|
*/
|
|
1390
1397
|
"gradient-via-pos": [{
|
|
1391
|
-
via:
|
|
1398
|
+
via: fe()
|
|
1392
1399
|
}],
|
|
1393
1400
|
/**
|
|
1394
1401
|
* Gradient Color Stops To Position
|
|
1395
1402
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1396
1403
|
*/
|
|
1397
1404
|
"gradient-to-pos": [{
|
|
1398
|
-
to:
|
|
1405
|
+
to: fe()
|
|
1399
1406
|
}],
|
|
1400
1407
|
/**
|
|
1401
1408
|
* Gradient Color Stops From
|
|
1402
1409
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1403
1410
|
*/
|
|
1404
1411
|
"gradient-from": [{
|
|
1405
|
-
from:
|
|
1412
|
+
from: f()
|
|
1406
1413
|
}],
|
|
1407
1414
|
/**
|
|
1408
1415
|
* Gradient Color Stops Via
|
|
1409
1416
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1410
1417
|
*/
|
|
1411
1418
|
"gradient-via": [{
|
|
1412
|
-
via:
|
|
1419
|
+
via: f()
|
|
1413
1420
|
}],
|
|
1414
1421
|
/**
|
|
1415
1422
|
* Gradient Color Stops To
|
|
1416
1423
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1417
1424
|
*/
|
|
1418
1425
|
"gradient-to": [{
|
|
1419
|
-
to:
|
|
1426
|
+
to: f()
|
|
1420
1427
|
}],
|
|
1421
1428
|
// ---------------
|
|
1422
1429
|
// --- Borders ---
|
|
@@ -1426,175 +1433,175 @@ const qe = (e, r) => {
|
|
|
1426
1433
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1427
1434
|
*/
|
|
1428
1435
|
rounded: [{
|
|
1429
|
-
rounded:
|
|
1436
|
+
rounded: S()
|
|
1430
1437
|
}],
|
|
1431
1438
|
/**
|
|
1432
1439
|
* Border Radius Start
|
|
1433
1440
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1434
1441
|
*/
|
|
1435
1442
|
"rounded-s": [{
|
|
1436
|
-
"rounded-s":
|
|
1443
|
+
"rounded-s": S()
|
|
1437
1444
|
}],
|
|
1438
1445
|
/**
|
|
1439
1446
|
* Border Radius End
|
|
1440
1447
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1441
1448
|
*/
|
|
1442
1449
|
"rounded-e": [{
|
|
1443
|
-
"rounded-e":
|
|
1450
|
+
"rounded-e": S()
|
|
1444
1451
|
}],
|
|
1445
1452
|
/**
|
|
1446
1453
|
* Border Radius Top
|
|
1447
1454
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1448
1455
|
*/
|
|
1449
1456
|
"rounded-t": [{
|
|
1450
|
-
"rounded-t":
|
|
1457
|
+
"rounded-t": S()
|
|
1451
1458
|
}],
|
|
1452
1459
|
/**
|
|
1453
1460
|
* Border Radius Right
|
|
1454
1461
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1455
1462
|
*/
|
|
1456
1463
|
"rounded-r": [{
|
|
1457
|
-
"rounded-r":
|
|
1464
|
+
"rounded-r": S()
|
|
1458
1465
|
}],
|
|
1459
1466
|
/**
|
|
1460
1467
|
* Border Radius Bottom
|
|
1461
1468
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1462
1469
|
*/
|
|
1463
1470
|
"rounded-b": [{
|
|
1464
|
-
"rounded-b":
|
|
1471
|
+
"rounded-b": S()
|
|
1465
1472
|
}],
|
|
1466
1473
|
/**
|
|
1467
1474
|
* Border Radius Left
|
|
1468
1475
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1469
1476
|
*/
|
|
1470
1477
|
"rounded-l": [{
|
|
1471
|
-
"rounded-l":
|
|
1478
|
+
"rounded-l": S()
|
|
1472
1479
|
}],
|
|
1473
1480
|
/**
|
|
1474
1481
|
* Border Radius Start Start
|
|
1475
1482
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1476
1483
|
*/
|
|
1477
1484
|
"rounded-ss": [{
|
|
1478
|
-
"rounded-ss":
|
|
1485
|
+
"rounded-ss": S()
|
|
1479
1486
|
}],
|
|
1480
1487
|
/**
|
|
1481
1488
|
* Border Radius Start End
|
|
1482
1489
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1483
1490
|
*/
|
|
1484
1491
|
"rounded-se": [{
|
|
1485
|
-
"rounded-se":
|
|
1492
|
+
"rounded-se": S()
|
|
1486
1493
|
}],
|
|
1487
1494
|
/**
|
|
1488
1495
|
* Border Radius End End
|
|
1489
1496
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1490
1497
|
*/
|
|
1491
1498
|
"rounded-ee": [{
|
|
1492
|
-
"rounded-ee":
|
|
1499
|
+
"rounded-ee": S()
|
|
1493
1500
|
}],
|
|
1494
1501
|
/**
|
|
1495
1502
|
* Border Radius End Start
|
|
1496
1503
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1497
1504
|
*/
|
|
1498
1505
|
"rounded-es": [{
|
|
1499
|
-
"rounded-es":
|
|
1506
|
+
"rounded-es": S()
|
|
1500
1507
|
}],
|
|
1501
1508
|
/**
|
|
1502
1509
|
* Border Radius Top Left
|
|
1503
1510
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1504
1511
|
*/
|
|
1505
1512
|
"rounded-tl": [{
|
|
1506
|
-
"rounded-tl":
|
|
1513
|
+
"rounded-tl": S()
|
|
1507
1514
|
}],
|
|
1508
1515
|
/**
|
|
1509
1516
|
* Border Radius Top Right
|
|
1510
1517
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1511
1518
|
*/
|
|
1512
1519
|
"rounded-tr": [{
|
|
1513
|
-
"rounded-tr":
|
|
1520
|
+
"rounded-tr": S()
|
|
1514
1521
|
}],
|
|
1515
1522
|
/**
|
|
1516
1523
|
* Border Radius Bottom Right
|
|
1517
1524
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1518
1525
|
*/
|
|
1519
1526
|
"rounded-br": [{
|
|
1520
|
-
"rounded-br":
|
|
1527
|
+
"rounded-br": S()
|
|
1521
1528
|
}],
|
|
1522
1529
|
/**
|
|
1523
1530
|
* Border Radius Bottom Left
|
|
1524
1531
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1525
1532
|
*/
|
|
1526
1533
|
"rounded-bl": [{
|
|
1527
|
-
"rounded-bl":
|
|
1534
|
+
"rounded-bl": S()
|
|
1528
1535
|
}],
|
|
1529
1536
|
/**
|
|
1530
1537
|
* Border Width
|
|
1531
1538
|
* @see https://tailwindcss.com/docs/border-width
|
|
1532
1539
|
*/
|
|
1533
1540
|
"border-w": [{
|
|
1534
|
-
border:
|
|
1541
|
+
border: I()
|
|
1535
1542
|
}],
|
|
1536
1543
|
/**
|
|
1537
1544
|
* Border Width X
|
|
1538
1545
|
* @see https://tailwindcss.com/docs/border-width
|
|
1539
1546
|
*/
|
|
1540
1547
|
"border-w-x": [{
|
|
1541
|
-
"border-x":
|
|
1548
|
+
"border-x": I()
|
|
1542
1549
|
}],
|
|
1543
1550
|
/**
|
|
1544
1551
|
* Border Width Y
|
|
1545
1552
|
* @see https://tailwindcss.com/docs/border-width
|
|
1546
1553
|
*/
|
|
1547
1554
|
"border-w-y": [{
|
|
1548
|
-
"border-y":
|
|
1555
|
+
"border-y": I()
|
|
1549
1556
|
}],
|
|
1550
1557
|
/**
|
|
1551
1558
|
* Border Width Start
|
|
1552
1559
|
* @see https://tailwindcss.com/docs/border-width
|
|
1553
1560
|
*/
|
|
1554
1561
|
"border-w-s": [{
|
|
1555
|
-
"border-s":
|
|
1562
|
+
"border-s": I()
|
|
1556
1563
|
}],
|
|
1557
1564
|
/**
|
|
1558
1565
|
* Border Width End
|
|
1559
1566
|
* @see https://tailwindcss.com/docs/border-width
|
|
1560
1567
|
*/
|
|
1561
1568
|
"border-w-e": [{
|
|
1562
|
-
"border-e":
|
|
1569
|
+
"border-e": I()
|
|
1563
1570
|
}],
|
|
1564
1571
|
/**
|
|
1565
1572
|
* Border Width Top
|
|
1566
1573
|
* @see https://tailwindcss.com/docs/border-width
|
|
1567
1574
|
*/
|
|
1568
1575
|
"border-w-t": [{
|
|
1569
|
-
"border-t":
|
|
1576
|
+
"border-t": I()
|
|
1570
1577
|
}],
|
|
1571
1578
|
/**
|
|
1572
1579
|
* Border Width Right
|
|
1573
1580
|
* @see https://tailwindcss.com/docs/border-width
|
|
1574
1581
|
*/
|
|
1575
1582
|
"border-w-r": [{
|
|
1576
|
-
"border-r":
|
|
1583
|
+
"border-r": I()
|
|
1577
1584
|
}],
|
|
1578
1585
|
/**
|
|
1579
1586
|
* Border Width Bottom
|
|
1580
1587
|
* @see https://tailwindcss.com/docs/border-width
|
|
1581
1588
|
*/
|
|
1582
1589
|
"border-w-b": [{
|
|
1583
|
-
"border-b":
|
|
1590
|
+
"border-b": I()
|
|
1584
1591
|
}],
|
|
1585
1592
|
/**
|
|
1586
1593
|
* Border Width Left
|
|
1587
1594
|
* @see https://tailwindcss.com/docs/border-width
|
|
1588
1595
|
*/
|
|
1589
1596
|
"border-w-l": [{
|
|
1590
|
-
"border-l":
|
|
1597
|
+
"border-l": I()
|
|
1591
1598
|
}],
|
|
1592
1599
|
/**
|
|
1593
1600
|
* Divide Width X
|
|
1594
1601
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1595
1602
|
*/
|
|
1596
1603
|
"divide-x": [{
|
|
1597
|
-
"divide-x":
|
|
1604
|
+
"divide-x": I()
|
|
1598
1605
|
}],
|
|
1599
1606
|
/**
|
|
1600
1607
|
* Divide Width X Reverse
|
|
@@ -1606,7 +1613,7 @@ const qe = (e, r) => {
|
|
|
1606
1613
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1607
1614
|
*/
|
|
1608
1615
|
"divide-y": [{
|
|
1609
|
-
"divide-y":
|
|
1616
|
+
"divide-y": I()
|
|
1610
1617
|
}],
|
|
1611
1618
|
/**
|
|
1612
1619
|
* Divide Width Y Reverse
|
|
@@ -1618,112 +1625,112 @@ const qe = (e, r) => {
|
|
|
1618
1625
|
* @see https://tailwindcss.com/docs/border-style
|
|
1619
1626
|
*/
|
|
1620
1627
|
"border-style": [{
|
|
1621
|
-
border: [...
|
|
1628
|
+
border: [...re(), "hidden", "none"]
|
|
1622
1629
|
}],
|
|
1623
1630
|
/**
|
|
1624
1631
|
* Divide Style
|
|
1625
1632
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1626
1633
|
*/
|
|
1627
1634
|
"divide-style": [{
|
|
1628
|
-
divide: [...
|
|
1635
|
+
divide: [...re(), "hidden", "none"]
|
|
1629
1636
|
}],
|
|
1630
1637
|
/**
|
|
1631
1638
|
* Border Color
|
|
1632
1639
|
* @see https://tailwindcss.com/docs/border-color
|
|
1633
1640
|
*/
|
|
1634
1641
|
"border-color": [{
|
|
1635
|
-
border:
|
|
1642
|
+
border: f()
|
|
1636
1643
|
}],
|
|
1637
1644
|
/**
|
|
1638
1645
|
* Border Color X
|
|
1639
1646
|
* @see https://tailwindcss.com/docs/border-color
|
|
1640
1647
|
*/
|
|
1641
1648
|
"border-color-x": [{
|
|
1642
|
-
"border-x":
|
|
1649
|
+
"border-x": f()
|
|
1643
1650
|
}],
|
|
1644
1651
|
/**
|
|
1645
1652
|
* Border Color Y
|
|
1646
1653
|
* @see https://tailwindcss.com/docs/border-color
|
|
1647
1654
|
*/
|
|
1648
1655
|
"border-color-y": [{
|
|
1649
|
-
"border-y":
|
|
1656
|
+
"border-y": f()
|
|
1650
1657
|
}],
|
|
1651
1658
|
/**
|
|
1652
1659
|
* Border Color S
|
|
1653
1660
|
* @see https://tailwindcss.com/docs/border-color
|
|
1654
1661
|
*/
|
|
1655
1662
|
"border-color-s": [{
|
|
1656
|
-
"border-s":
|
|
1663
|
+
"border-s": f()
|
|
1657
1664
|
}],
|
|
1658
1665
|
/**
|
|
1659
1666
|
* Border Color E
|
|
1660
1667
|
* @see https://tailwindcss.com/docs/border-color
|
|
1661
1668
|
*/
|
|
1662
1669
|
"border-color-e": [{
|
|
1663
|
-
"border-e":
|
|
1670
|
+
"border-e": f()
|
|
1664
1671
|
}],
|
|
1665
1672
|
/**
|
|
1666
1673
|
* Border Color Top
|
|
1667
1674
|
* @see https://tailwindcss.com/docs/border-color
|
|
1668
1675
|
*/
|
|
1669
1676
|
"border-color-t": [{
|
|
1670
|
-
"border-t":
|
|
1677
|
+
"border-t": f()
|
|
1671
1678
|
}],
|
|
1672
1679
|
/**
|
|
1673
1680
|
* Border Color Right
|
|
1674
1681
|
* @see https://tailwindcss.com/docs/border-color
|
|
1675
1682
|
*/
|
|
1676
1683
|
"border-color-r": [{
|
|
1677
|
-
"border-r":
|
|
1684
|
+
"border-r": f()
|
|
1678
1685
|
}],
|
|
1679
1686
|
/**
|
|
1680
1687
|
* Border Color Bottom
|
|
1681
1688
|
* @see https://tailwindcss.com/docs/border-color
|
|
1682
1689
|
*/
|
|
1683
1690
|
"border-color-b": [{
|
|
1684
|
-
"border-b":
|
|
1691
|
+
"border-b": f()
|
|
1685
1692
|
}],
|
|
1686
1693
|
/**
|
|
1687
1694
|
* Border Color Left
|
|
1688
1695
|
* @see https://tailwindcss.com/docs/border-color
|
|
1689
1696
|
*/
|
|
1690
1697
|
"border-color-l": [{
|
|
1691
|
-
"border-l":
|
|
1698
|
+
"border-l": f()
|
|
1692
1699
|
}],
|
|
1693
1700
|
/**
|
|
1694
1701
|
* Divide Color
|
|
1695
1702
|
* @see https://tailwindcss.com/docs/divide-color
|
|
1696
1703
|
*/
|
|
1697
1704
|
"divide-color": [{
|
|
1698
|
-
divide:
|
|
1705
|
+
divide: f()
|
|
1699
1706
|
}],
|
|
1700
1707
|
/**
|
|
1701
1708
|
* Outline Style
|
|
1702
1709
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1703
1710
|
*/
|
|
1704
1711
|
"outline-style": [{
|
|
1705
|
-
outline: [...
|
|
1712
|
+
outline: [...re(), "none", "hidden"]
|
|
1706
1713
|
}],
|
|
1707
1714
|
/**
|
|
1708
1715
|
* Outline Offset
|
|
1709
1716
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1710
1717
|
*/
|
|
1711
1718
|
"outline-offset": [{
|
|
1712
|
-
"outline-offset": [
|
|
1719
|
+
"outline-offset": [k, m, u]
|
|
1713
1720
|
}],
|
|
1714
1721
|
/**
|
|
1715
1722
|
* Outline Width
|
|
1716
1723
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1717
1724
|
*/
|
|
1718
1725
|
"outline-w": [{
|
|
1719
|
-
outline: ["",
|
|
1726
|
+
outline: ["", k, X, W]
|
|
1720
1727
|
}],
|
|
1721
1728
|
/**
|
|
1722
1729
|
* Outline Color
|
|
1723
1730
|
* @see https://tailwindcss.com/docs/outline-color
|
|
1724
1731
|
*/
|
|
1725
1732
|
"outline-color": [{
|
|
1726
|
-
outline:
|
|
1733
|
+
outline: f()
|
|
1727
1734
|
}],
|
|
1728
1735
|
// ---------------
|
|
1729
1736
|
// --- Effects ---
|
|
@@ -1737,9 +1744,9 @@ const qe = (e, r) => {
|
|
|
1737
1744
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1738
1745
|
"",
|
|
1739
1746
|
"none",
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1747
|
+
b,
|
|
1748
|
+
le,
|
|
1749
|
+
ae
|
|
1743
1750
|
]
|
|
1744
1751
|
}],
|
|
1745
1752
|
/**
|
|
@@ -1747,28 +1754,28 @@ const qe = (e, r) => {
|
|
|
1747
1754
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
1748
1755
|
*/
|
|
1749
1756
|
"shadow-color": [{
|
|
1750
|
-
shadow:
|
|
1757
|
+
shadow: f()
|
|
1751
1758
|
}],
|
|
1752
1759
|
/**
|
|
1753
1760
|
* Inset Box Shadow
|
|
1754
1761
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1755
1762
|
*/
|
|
1756
1763
|
"inset-shadow": [{
|
|
1757
|
-
"inset-shadow": ["none",
|
|
1764
|
+
"inset-shadow": ["none", y, le, ae]
|
|
1758
1765
|
}],
|
|
1759
1766
|
/**
|
|
1760
1767
|
* Inset Box Shadow Color
|
|
1761
1768
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
1762
1769
|
*/
|
|
1763
1770
|
"inset-shadow-color": [{
|
|
1764
|
-
"inset-shadow":
|
|
1771
|
+
"inset-shadow": f()
|
|
1765
1772
|
}],
|
|
1766
1773
|
/**
|
|
1767
1774
|
* Ring Width
|
|
1768
1775
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1769
1776
|
*/
|
|
1770
1777
|
"ring-w": [{
|
|
1771
|
-
ring:
|
|
1778
|
+
ring: I()
|
|
1772
1779
|
}],
|
|
1773
1780
|
/**
|
|
1774
1781
|
* Ring Width Inset
|
|
@@ -1782,7 +1789,7 @@ const qe = (e, r) => {
|
|
|
1782
1789
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
1783
1790
|
*/
|
|
1784
1791
|
"ring-color": [{
|
|
1785
|
-
ring:
|
|
1792
|
+
ring: f()
|
|
1786
1793
|
}],
|
|
1787
1794
|
/**
|
|
1788
1795
|
* Ring Offset Width
|
|
@@ -1791,7 +1798,7 @@ const qe = (e, r) => {
|
|
|
1791
1798
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1792
1799
|
*/
|
|
1793
1800
|
"ring-offset-w": [{
|
|
1794
|
-
"ring-offset": [
|
|
1801
|
+
"ring-offset": [k, W]
|
|
1795
1802
|
}],
|
|
1796
1803
|
/**
|
|
1797
1804
|
* Ring Offset Color
|
|
@@ -1800,56 +1807,56 @@ const qe = (e, r) => {
|
|
|
1800
1807
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1801
1808
|
*/
|
|
1802
1809
|
"ring-offset-color": [{
|
|
1803
|
-
"ring-offset":
|
|
1810
|
+
"ring-offset": f()
|
|
1804
1811
|
}],
|
|
1805
1812
|
/**
|
|
1806
1813
|
* Inset Ring Width
|
|
1807
1814
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1808
1815
|
*/
|
|
1809
1816
|
"inset-ring-w": [{
|
|
1810
|
-
"inset-ring":
|
|
1817
|
+
"inset-ring": I()
|
|
1811
1818
|
}],
|
|
1812
1819
|
/**
|
|
1813
1820
|
* Inset Ring Color
|
|
1814
1821
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
1815
1822
|
*/
|
|
1816
1823
|
"inset-ring-color": [{
|
|
1817
|
-
"inset-ring":
|
|
1824
|
+
"inset-ring": f()
|
|
1818
1825
|
}],
|
|
1819
1826
|
/**
|
|
1820
1827
|
* Text Shadow
|
|
1821
1828
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1822
1829
|
*/
|
|
1823
1830
|
"text-shadow": [{
|
|
1824
|
-
"text-shadow": ["none",
|
|
1831
|
+
"text-shadow": ["none", x, le, ae]
|
|
1825
1832
|
}],
|
|
1826
1833
|
/**
|
|
1827
1834
|
* Text Shadow Color
|
|
1828
1835
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
1829
1836
|
*/
|
|
1830
1837
|
"text-shadow-color": [{
|
|
1831
|
-
"text-shadow":
|
|
1838
|
+
"text-shadow": f()
|
|
1832
1839
|
}],
|
|
1833
1840
|
/**
|
|
1834
1841
|
* Opacity
|
|
1835
1842
|
* @see https://tailwindcss.com/docs/opacity
|
|
1836
1843
|
*/
|
|
1837
1844
|
opacity: [{
|
|
1838
|
-
opacity: [
|
|
1845
|
+
opacity: [k, m, u]
|
|
1839
1846
|
}],
|
|
1840
1847
|
/**
|
|
1841
1848
|
* Mix Blend Mode
|
|
1842
1849
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1843
1850
|
*/
|
|
1844
1851
|
"mix-blend": [{
|
|
1845
|
-
"mix-blend": [...
|
|
1852
|
+
"mix-blend": [...Le(), "plus-darker", "plus-lighter"]
|
|
1846
1853
|
}],
|
|
1847
1854
|
/**
|
|
1848
1855
|
* Background Blend Mode
|
|
1849
1856
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1850
1857
|
*/
|
|
1851
1858
|
"bg-blend": [{
|
|
1852
|
-
"bg-blend":
|
|
1859
|
+
"bg-blend": Le()
|
|
1853
1860
|
}],
|
|
1854
1861
|
/**
|
|
1855
1862
|
* Mask Clip
|
|
@@ -1870,106 +1877,106 @@ const qe = (e, r) => {
|
|
|
1870
1877
|
* @see https://tailwindcss.com/docs/mask-image
|
|
1871
1878
|
*/
|
|
1872
1879
|
"mask-image-linear-pos": [{
|
|
1873
|
-
"mask-linear": [
|
|
1880
|
+
"mask-linear": [k]
|
|
1874
1881
|
}],
|
|
1875
1882
|
"mask-image-linear-from-pos": [{
|
|
1876
|
-
"mask-linear-from":
|
|
1883
|
+
"mask-linear-from": C()
|
|
1877
1884
|
}],
|
|
1878
1885
|
"mask-image-linear-to-pos": [{
|
|
1879
|
-
"mask-linear-to":
|
|
1886
|
+
"mask-linear-to": C()
|
|
1880
1887
|
}],
|
|
1881
1888
|
"mask-image-linear-from-color": [{
|
|
1882
|
-
"mask-linear-from":
|
|
1889
|
+
"mask-linear-from": f()
|
|
1883
1890
|
}],
|
|
1884
1891
|
"mask-image-linear-to-color": [{
|
|
1885
|
-
"mask-linear-to":
|
|
1892
|
+
"mask-linear-to": f()
|
|
1886
1893
|
}],
|
|
1887
1894
|
"mask-image-t-from-pos": [{
|
|
1888
|
-
"mask-t-from":
|
|
1895
|
+
"mask-t-from": C()
|
|
1889
1896
|
}],
|
|
1890
1897
|
"mask-image-t-to-pos": [{
|
|
1891
|
-
"mask-t-to":
|
|
1898
|
+
"mask-t-to": C()
|
|
1892
1899
|
}],
|
|
1893
1900
|
"mask-image-t-from-color": [{
|
|
1894
|
-
"mask-t-from":
|
|
1901
|
+
"mask-t-from": f()
|
|
1895
1902
|
}],
|
|
1896
1903
|
"mask-image-t-to-color": [{
|
|
1897
|
-
"mask-t-to":
|
|
1904
|
+
"mask-t-to": f()
|
|
1898
1905
|
}],
|
|
1899
1906
|
"mask-image-r-from-pos": [{
|
|
1900
|
-
"mask-r-from":
|
|
1907
|
+
"mask-r-from": C()
|
|
1901
1908
|
}],
|
|
1902
1909
|
"mask-image-r-to-pos": [{
|
|
1903
|
-
"mask-r-to":
|
|
1910
|
+
"mask-r-to": C()
|
|
1904
1911
|
}],
|
|
1905
1912
|
"mask-image-r-from-color": [{
|
|
1906
|
-
"mask-r-from":
|
|
1913
|
+
"mask-r-from": f()
|
|
1907
1914
|
}],
|
|
1908
1915
|
"mask-image-r-to-color": [{
|
|
1909
|
-
"mask-r-to":
|
|
1916
|
+
"mask-r-to": f()
|
|
1910
1917
|
}],
|
|
1911
1918
|
"mask-image-b-from-pos": [{
|
|
1912
|
-
"mask-b-from":
|
|
1919
|
+
"mask-b-from": C()
|
|
1913
1920
|
}],
|
|
1914
1921
|
"mask-image-b-to-pos": [{
|
|
1915
|
-
"mask-b-to":
|
|
1922
|
+
"mask-b-to": C()
|
|
1916
1923
|
}],
|
|
1917
1924
|
"mask-image-b-from-color": [{
|
|
1918
|
-
"mask-b-from":
|
|
1925
|
+
"mask-b-from": f()
|
|
1919
1926
|
}],
|
|
1920
1927
|
"mask-image-b-to-color": [{
|
|
1921
|
-
"mask-b-to":
|
|
1928
|
+
"mask-b-to": f()
|
|
1922
1929
|
}],
|
|
1923
1930
|
"mask-image-l-from-pos": [{
|
|
1924
|
-
"mask-l-from":
|
|
1931
|
+
"mask-l-from": C()
|
|
1925
1932
|
}],
|
|
1926
1933
|
"mask-image-l-to-pos": [{
|
|
1927
|
-
"mask-l-to":
|
|
1934
|
+
"mask-l-to": C()
|
|
1928
1935
|
}],
|
|
1929
1936
|
"mask-image-l-from-color": [{
|
|
1930
|
-
"mask-l-from":
|
|
1937
|
+
"mask-l-from": f()
|
|
1931
1938
|
}],
|
|
1932
1939
|
"mask-image-l-to-color": [{
|
|
1933
|
-
"mask-l-to":
|
|
1940
|
+
"mask-l-to": f()
|
|
1934
1941
|
}],
|
|
1935
1942
|
"mask-image-x-from-pos": [{
|
|
1936
|
-
"mask-x-from":
|
|
1943
|
+
"mask-x-from": C()
|
|
1937
1944
|
}],
|
|
1938
1945
|
"mask-image-x-to-pos": [{
|
|
1939
|
-
"mask-x-to":
|
|
1946
|
+
"mask-x-to": C()
|
|
1940
1947
|
}],
|
|
1941
1948
|
"mask-image-x-from-color": [{
|
|
1942
|
-
"mask-x-from":
|
|
1949
|
+
"mask-x-from": f()
|
|
1943
1950
|
}],
|
|
1944
1951
|
"mask-image-x-to-color": [{
|
|
1945
|
-
"mask-x-to":
|
|
1952
|
+
"mask-x-to": f()
|
|
1946
1953
|
}],
|
|
1947
1954
|
"mask-image-y-from-pos": [{
|
|
1948
|
-
"mask-y-from":
|
|
1955
|
+
"mask-y-from": C()
|
|
1949
1956
|
}],
|
|
1950
1957
|
"mask-image-y-to-pos": [{
|
|
1951
|
-
"mask-y-to":
|
|
1958
|
+
"mask-y-to": C()
|
|
1952
1959
|
}],
|
|
1953
1960
|
"mask-image-y-from-color": [{
|
|
1954
|
-
"mask-y-from":
|
|
1961
|
+
"mask-y-from": f()
|
|
1955
1962
|
}],
|
|
1956
1963
|
"mask-image-y-to-color": [{
|
|
1957
|
-
"mask-y-to":
|
|
1964
|
+
"mask-y-to": f()
|
|
1958
1965
|
}],
|
|
1959
1966
|
"mask-image-radial": [{
|
|
1960
|
-
"mask-radial": [
|
|
1967
|
+
"mask-radial": [m, u]
|
|
1961
1968
|
}],
|
|
1962
1969
|
"mask-image-radial-from-pos": [{
|
|
1963
|
-
"mask-radial-from":
|
|
1970
|
+
"mask-radial-from": C()
|
|
1964
1971
|
}],
|
|
1965
1972
|
"mask-image-radial-to-pos": [{
|
|
1966
|
-
"mask-radial-to":
|
|
1973
|
+
"mask-radial-to": C()
|
|
1967
1974
|
}],
|
|
1968
1975
|
"mask-image-radial-from-color": [{
|
|
1969
|
-
"mask-radial-from":
|
|
1976
|
+
"mask-radial-from": f()
|
|
1970
1977
|
}],
|
|
1971
1978
|
"mask-image-radial-to-color": [{
|
|
1972
|
-
"mask-radial-to":
|
|
1979
|
+
"mask-radial-to": f()
|
|
1973
1980
|
}],
|
|
1974
1981
|
"mask-image-radial-shape": [{
|
|
1975
1982
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -1981,22 +1988,22 @@ const qe = (e, r) => {
|
|
|
1981
1988
|
}]
|
|
1982
1989
|
}],
|
|
1983
1990
|
"mask-image-radial-pos": [{
|
|
1984
|
-
"mask-radial-at":
|
|
1991
|
+
"mask-radial-at": G()
|
|
1985
1992
|
}],
|
|
1986
1993
|
"mask-image-conic-pos": [{
|
|
1987
|
-
"mask-conic": [
|
|
1994
|
+
"mask-conic": [k]
|
|
1988
1995
|
}],
|
|
1989
1996
|
"mask-image-conic-from-pos": [{
|
|
1990
|
-
"mask-conic-from":
|
|
1997
|
+
"mask-conic-from": C()
|
|
1991
1998
|
}],
|
|
1992
1999
|
"mask-image-conic-to-pos": [{
|
|
1993
|
-
"mask-conic-to":
|
|
2000
|
+
"mask-conic-to": C()
|
|
1994
2001
|
}],
|
|
1995
2002
|
"mask-image-conic-from-color": [{
|
|
1996
|
-
"mask-conic-from":
|
|
2003
|
+
"mask-conic-from": f()
|
|
1997
2004
|
}],
|
|
1998
2005
|
"mask-image-conic-to-color": [{
|
|
1999
|
-
"mask-conic-to":
|
|
2006
|
+
"mask-conic-to": f()
|
|
2000
2007
|
}],
|
|
2001
2008
|
/**
|
|
2002
2009
|
* Mask Mode
|
|
@@ -2017,21 +2024,21 @@ const qe = (e, r) => {
|
|
|
2017
2024
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2018
2025
|
*/
|
|
2019
2026
|
"mask-position": [{
|
|
2020
|
-
mask:
|
|
2027
|
+
mask: Ee()
|
|
2021
2028
|
}],
|
|
2022
2029
|
/**
|
|
2023
2030
|
* Mask Repeat
|
|
2024
2031
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2025
2032
|
*/
|
|
2026
2033
|
"mask-repeat": [{
|
|
2027
|
-
mask:
|
|
2034
|
+
mask: Oe()
|
|
2028
2035
|
}],
|
|
2029
2036
|
/**
|
|
2030
2037
|
* Mask Size
|
|
2031
2038
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2032
2039
|
*/
|
|
2033
2040
|
"mask-size": [{
|
|
2034
|
-
mask:
|
|
2041
|
+
mask: Pe()
|
|
2035
2042
|
}],
|
|
2036
2043
|
/**
|
|
2037
2044
|
* Mask Type
|
|
@@ -2045,7 +2052,7 @@ const qe = (e, r) => {
|
|
|
2045
2052
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2046
2053
|
*/
|
|
2047
2054
|
"mask-image": [{
|
|
2048
|
-
mask: ["none",
|
|
2055
|
+
mask: ["none", m, u]
|
|
2049
2056
|
}],
|
|
2050
2057
|
// ---------------
|
|
2051
2058
|
// --- Filters ---
|
|
@@ -2059,8 +2066,8 @@ const qe = (e, r) => {
|
|
|
2059
2066
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2060
2067
|
"",
|
|
2061
2068
|
"none",
|
|
2062
|
-
|
|
2063
|
-
|
|
2069
|
+
m,
|
|
2070
|
+
u
|
|
2064
2071
|
]
|
|
2065
2072
|
}],
|
|
2066
2073
|
/**
|
|
@@ -2068,21 +2075,21 @@ const qe = (e, r) => {
|
|
|
2068
2075
|
* @see https://tailwindcss.com/docs/blur
|
|
2069
2076
|
*/
|
|
2070
2077
|
blur: [{
|
|
2071
|
-
blur:
|
|
2078
|
+
blur: je()
|
|
2072
2079
|
}],
|
|
2073
2080
|
/**
|
|
2074
2081
|
* Brightness
|
|
2075
2082
|
* @see https://tailwindcss.com/docs/brightness
|
|
2076
2083
|
*/
|
|
2077
2084
|
brightness: [{
|
|
2078
|
-
brightness: [
|
|
2085
|
+
brightness: [k, m, u]
|
|
2079
2086
|
}],
|
|
2080
2087
|
/**
|
|
2081
2088
|
* Contrast
|
|
2082
2089
|
* @see https://tailwindcss.com/docs/contrast
|
|
2083
2090
|
*/
|
|
2084
2091
|
contrast: [{
|
|
2085
|
-
contrast: [
|
|
2092
|
+
contrast: [k, m, u]
|
|
2086
2093
|
}],
|
|
2087
2094
|
/**
|
|
2088
2095
|
* Drop Shadow
|
|
@@ -2093,9 +2100,9 @@ const qe = (e, r) => {
|
|
|
2093
2100
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2094
2101
|
"",
|
|
2095
2102
|
"none",
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2103
|
+
v,
|
|
2104
|
+
le,
|
|
2105
|
+
ae
|
|
2099
2106
|
]
|
|
2100
2107
|
}],
|
|
2101
2108
|
/**
|
|
@@ -2103,42 +2110,42 @@ const qe = (e, r) => {
|
|
|
2103
2110
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2104
2111
|
*/
|
|
2105
2112
|
"drop-shadow-color": [{
|
|
2106
|
-
"drop-shadow":
|
|
2113
|
+
"drop-shadow": f()
|
|
2107
2114
|
}],
|
|
2108
2115
|
/**
|
|
2109
2116
|
* Grayscale
|
|
2110
2117
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2111
2118
|
*/
|
|
2112
2119
|
grayscale: [{
|
|
2113
|
-
grayscale: ["",
|
|
2120
|
+
grayscale: ["", k, m, u]
|
|
2114
2121
|
}],
|
|
2115
2122
|
/**
|
|
2116
2123
|
* Hue Rotate
|
|
2117
2124
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2118
2125
|
*/
|
|
2119
2126
|
"hue-rotate": [{
|
|
2120
|
-
"hue-rotate": [
|
|
2127
|
+
"hue-rotate": [k, m, u]
|
|
2121
2128
|
}],
|
|
2122
2129
|
/**
|
|
2123
2130
|
* Invert
|
|
2124
2131
|
* @see https://tailwindcss.com/docs/invert
|
|
2125
2132
|
*/
|
|
2126
2133
|
invert: [{
|
|
2127
|
-
invert: ["",
|
|
2134
|
+
invert: ["", k, m, u]
|
|
2128
2135
|
}],
|
|
2129
2136
|
/**
|
|
2130
2137
|
* Saturate
|
|
2131
2138
|
* @see https://tailwindcss.com/docs/saturate
|
|
2132
2139
|
*/
|
|
2133
2140
|
saturate: [{
|
|
2134
|
-
saturate: [
|
|
2141
|
+
saturate: [k, m, u]
|
|
2135
2142
|
}],
|
|
2136
2143
|
/**
|
|
2137
2144
|
* Sepia
|
|
2138
2145
|
* @see https://tailwindcss.com/docs/sepia
|
|
2139
2146
|
*/
|
|
2140
2147
|
sepia: [{
|
|
2141
|
-
sepia: ["",
|
|
2148
|
+
sepia: ["", k, m, u]
|
|
2142
2149
|
}],
|
|
2143
2150
|
/**
|
|
2144
2151
|
* Backdrop Filter
|
|
@@ -2149,8 +2156,8 @@ const qe = (e, r) => {
|
|
|
2149
2156
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2150
2157
|
"",
|
|
2151
2158
|
"none",
|
|
2152
|
-
|
|
2153
|
-
|
|
2159
|
+
m,
|
|
2160
|
+
u
|
|
2154
2161
|
]
|
|
2155
2162
|
}],
|
|
2156
2163
|
/**
|
|
@@ -2158,63 +2165,63 @@ const qe = (e, r) => {
|
|
|
2158
2165
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2159
2166
|
*/
|
|
2160
2167
|
"backdrop-blur": [{
|
|
2161
|
-
"backdrop-blur":
|
|
2168
|
+
"backdrop-blur": je()
|
|
2162
2169
|
}],
|
|
2163
2170
|
/**
|
|
2164
2171
|
* Backdrop Brightness
|
|
2165
2172
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2166
2173
|
*/
|
|
2167
2174
|
"backdrop-brightness": [{
|
|
2168
|
-
"backdrop-brightness": [
|
|
2175
|
+
"backdrop-brightness": [k, m, u]
|
|
2169
2176
|
}],
|
|
2170
2177
|
/**
|
|
2171
2178
|
* Backdrop Contrast
|
|
2172
2179
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2173
2180
|
*/
|
|
2174
2181
|
"backdrop-contrast": [{
|
|
2175
|
-
"backdrop-contrast": [
|
|
2182
|
+
"backdrop-contrast": [k, m, u]
|
|
2176
2183
|
}],
|
|
2177
2184
|
/**
|
|
2178
2185
|
* Backdrop Grayscale
|
|
2179
2186
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2180
2187
|
*/
|
|
2181
2188
|
"backdrop-grayscale": [{
|
|
2182
|
-
"backdrop-grayscale": ["",
|
|
2189
|
+
"backdrop-grayscale": ["", k, m, u]
|
|
2183
2190
|
}],
|
|
2184
2191
|
/**
|
|
2185
2192
|
* Backdrop Hue Rotate
|
|
2186
2193
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2187
2194
|
*/
|
|
2188
2195
|
"backdrop-hue-rotate": [{
|
|
2189
|
-
"backdrop-hue-rotate": [
|
|
2196
|
+
"backdrop-hue-rotate": [k, m, u]
|
|
2190
2197
|
}],
|
|
2191
2198
|
/**
|
|
2192
2199
|
* Backdrop Invert
|
|
2193
2200
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2194
2201
|
*/
|
|
2195
2202
|
"backdrop-invert": [{
|
|
2196
|
-
"backdrop-invert": ["",
|
|
2203
|
+
"backdrop-invert": ["", k, m, u]
|
|
2197
2204
|
}],
|
|
2198
2205
|
/**
|
|
2199
2206
|
* Backdrop Opacity
|
|
2200
2207
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2201
2208
|
*/
|
|
2202
2209
|
"backdrop-opacity": [{
|
|
2203
|
-
"backdrop-opacity": [
|
|
2210
|
+
"backdrop-opacity": [k, m, u]
|
|
2204
2211
|
}],
|
|
2205
2212
|
/**
|
|
2206
2213
|
* Backdrop Saturate
|
|
2207
2214
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2208
2215
|
*/
|
|
2209
2216
|
"backdrop-saturate": [{
|
|
2210
|
-
"backdrop-saturate": [
|
|
2217
|
+
"backdrop-saturate": [k, m, u]
|
|
2211
2218
|
}],
|
|
2212
2219
|
/**
|
|
2213
2220
|
* Backdrop Sepia
|
|
2214
2221
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2215
2222
|
*/
|
|
2216
2223
|
"backdrop-sepia": [{
|
|
2217
|
-
"backdrop-sepia": ["",
|
|
2224
|
+
"backdrop-sepia": ["", k, m, u]
|
|
2218
2225
|
}],
|
|
2219
2226
|
// --------------
|
|
2220
2227
|
// --- Tables ---
|
|
@@ -2231,21 +2238,21 @@ const qe = (e, r) => {
|
|
|
2231
2238
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2232
2239
|
*/
|
|
2233
2240
|
"border-spacing": [{
|
|
2234
|
-
"border-spacing":
|
|
2241
|
+
"border-spacing": g()
|
|
2235
2242
|
}],
|
|
2236
2243
|
/**
|
|
2237
2244
|
* Border Spacing X
|
|
2238
2245
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2239
2246
|
*/
|
|
2240
2247
|
"border-spacing-x": [{
|
|
2241
|
-
"border-spacing-x":
|
|
2248
|
+
"border-spacing-x": g()
|
|
2242
2249
|
}],
|
|
2243
2250
|
/**
|
|
2244
2251
|
* Border Spacing Y
|
|
2245
2252
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2246
2253
|
*/
|
|
2247
2254
|
"border-spacing-y": [{
|
|
2248
|
-
"border-spacing-y":
|
|
2255
|
+
"border-spacing-y": g()
|
|
2249
2256
|
}],
|
|
2250
2257
|
/**
|
|
2251
2258
|
* Table Layout
|
|
@@ -2269,7 +2276,7 @@ const qe = (e, r) => {
|
|
|
2269
2276
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2270
2277
|
*/
|
|
2271
2278
|
transition: [{
|
|
2272
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2279
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", m, u]
|
|
2273
2280
|
}],
|
|
2274
2281
|
/**
|
|
2275
2282
|
* Transition Behavior
|
|
@@ -2283,28 +2290,28 @@ const qe = (e, r) => {
|
|
|
2283
2290
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2284
2291
|
*/
|
|
2285
2292
|
duration: [{
|
|
2286
|
-
duration: [
|
|
2293
|
+
duration: [k, "initial", m, u]
|
|
2287
2294
|
}],
|
|
2288
2295
|
/**
|
|
2289
2296
|
* Transition Timing Function
|
|
2290
2297
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2291
2298
|
*/
|
|
2292
2299
|
ease: [{
|
|
2293
|
-
ease: ["linear", "initial",
|
|
2300
|
+
ease: ["linear", "initial", j, m, u]
|
|
2294
2301
|
}],
|
|
2295
2302
|
/**
|
|
2296
2303
|
* Transition Delay
|
|
2297
2304
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2298
2305
|
*/
|
|
2299
2306
|
delay: [{
|
|
2300
|
-
delay: [
|
|
2307
|
+
delay: [k, m, u]
|
|
2301
2308
|
}],
|
|
2302
2309
|
/**
|
|
2303
2310
|
* Animation
|
|
2304
2311
|
* @see https://tailwindcss.com/docs/animation
|
|
2305
2312
|
*/
|
|
2306
2313
|
animate: [{
|
|
2307
|
-
animate: ["none",
|
|
2314
|
+
animate: ["none", ee, m, u]
|
|
2308
2315
|
}],
|
|
2309
2316
|
// ------------------
|
|
2310
2317
|
// --- Transforms ---
|
|
@@ -2321,70 +2328,70 @@ const qe = (e, r) => {
|
|
|
2321
2328
|
* @see https://tailwindcss.com/docs/perspective
|
|
2322
2329
|
*/
|
|
2323
2330
|
perspective: [{
|
|
2324
|
-
perspective: [
|
|
2331
|
+
perspective: [_, m, u]
|
|
2325
2332
|
}],
|
|
2326
2333
|
/**
|
|
2327
2334
|
* Perspective Origin
|
|
2328
2335
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2329
2336
|
*/
|
|
2330
2337
|
"perspective-origin": [{
|
|
2331
|
-
"perspective-origin":
|
|
2338
|
+
"perspective-origin": D()
|
|
2332
2339
|
}],
|
|
2333
2340
|
/**
|
|
2334
2341
|
* Rotate
|
|
2335
2342
|
* @see https://tailwindcss.com/docs/rotate
|
|
2336
2343
|
*/
|
|
2337
2344
|
rotate: [{
|
|
2338
|
-
rotate:
|
|
2345
|
+
rotate: oe()
|
|
2339
2346
|
}],
|
|
2340
2347
|
/**
|
|
2341
2348
|
* Rotate X
|
|
2342
2349
|
* @see https://tailwindcss.com/docs/rotate
|
|
2343
2350
|
*/
|
|
2344
2351
|
"rotate-x": [{
|
|
2345
|
-
"rotate-x":
|
|
2352
|
+
"rotate-x": oe()
|
|
2346
2353
|
}],
|
|
2347
2354
|
/**
|
|
2348
2355
|
* Rotate Y
|
|
2349
2356
|
* @see https://tailwindcss.com/docs/rotate
|
|
2350
2357
|
*/
|
|
2351
2358
|
"rotate-y": [{
|
|
2352
|
-
"rotate-y":
|
|
2359
|
+
"rotate-y": oe()
|
|
2353
2360
|
}],
|
|
2354
2361
|
/**
|
|
2355
2362
|
* Rotate Z
|
|
2356
2363
|
* @see https://tailwindcss.com/docs/rotate
|
|
2357
2364
|
*/
|
|
2358
2365
|
"rotate-z": [{
|
|
2359
|
-
"rotate-z":
|
|
2366
|
+
"rotate-z": oe()
|
|
2360
2367
|
}],
|
|
2361
2368
|
/**
|
|
2362
2369
|
* Scale
|
|
2363
2370
|
* @see https://tailwindcss.com/docs/scale
|
|
2364
2371
|
*/
|
|
2365
2372
|
scale: [{
|
|
2366
|
-
scale:
|
|
2373
|
+
scale: ne()
|
|
2367
2374
|
}],
|
|
2368
2375
|
/**
|
|
2369
2376
|
* Scale X
|
|
2370
2377
|
* @see https://tailwindcss.com/docs/scale
|
|
2371
2378
|
*/
|
|
2372
2379
|
"scale-x": [{
|
|
2373
|
-
"scale-x":
|
|
2380
|
+
"scale-x": ne()
|
|
2374
2381
|
}],
|
|
2375
2382
|
/**
|
|
2376
2383
|
* Scale Y
|
|
2377
2384
|
* @see https://tailwindcss.com/docs/scale
|
|
2378
2385
|
*/
|
|
2379
2386
|
"scale-y": [{
|
|
2380
|
-
"scale-y":
|
|
2387
|
+
"scale-y": ne()
|
|
2381
2388
|
}],
|
|
2382
2389
|
/**
|
|
2383
2390
|
* Scale Z
|
|
2384
2391
|
* @see https://tailwindcss.com/docs/scale
|
|
2385
2392
|
*/
|
|
2386
2393
|
"scale-z": [{
|
|
2387
|
-
"scale-z":
|
|
2394
|
+
"scale-z": ne()
|
|
2388
2395
|
}],
|
|
2389
2396
|
/**
|
|
2390
2397
|
* Scale 3D
|
|
@@ -2396,35 +2403,35 @@ const qe = (e, r) => {
|
|
|
2396
2403
|
* @see https://tailwindcss.com/docs/skew
|
|
2397
2404
|
*/
|
|
2398
2405
|
skew: [{
|
|
2399
|
-
skew:
|
|
2406
|
+
skew: he()
|
|
2400
2407
|
}],
|
|
2401
2408
|
/**
|
|
2402
2409
|
* Skew X
|
|
2403
2410
|
* @see https://tailwindcss.com/docs/skew
|
|
2404
2411
|
*/
|
|
2405
2412
|
"skew-x": [{
|
|
2406
|
-
"skew-x":
|
|
2413
|
+
"skew-x": he()
|
|
2407
2414
|
}],
|
|
2408
2415
|
/**
|
|
2409
2416
|
* Skew Y
|
|
2410
2417
|
* @see https://tailwindcss.com/docs/skew
|
|
2411
2418
|
*/
|
|
2412
2419
|
"skew-y": [{
|
|
2413
|
-
"skew-y":
|
|
2420
|
+
"skew-y": he()
|
|
2414
2421
|
}],
|
|
2415
2422
|
/**
|
|
2416
2423
|
* Transform
|
|
2417
2424
|
* @see https://tailwindcss.com/docs/transform
|
|
2418
2425
|
*/
|
|
2419
2426
|
transform: [{
|
|
2420
|
-
transform: [
|
|
2427
|
+
transform: [m, u, "", "none", "gpu", "cpu"]
|
|
2421
2428
|
}],
|
|
2422
2429
|
/**
|
|
2423
2430
|
* Transform Origin
|
|
2424
2431
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2425
2432
|
*/
|
|
2426
2433
|
"transform-origin": [{
|
|
2427
|
-
origin:
|
|
2434
|
+
origin: D()
|
|
2428
2435
|
}],
|
|
2429
2436
|
/**
|
|
2430
2437
|
* Transform Style
|
|
@@ -2438,28 +2445,28 @@ const qe = (e, r) => {
|
|
|
2438
2445
|
* @see https://tailwindcss.com/docs/translate
|
|
2439
2446
|
*/
|
|
2440
2447
|
translate: [{
|
|
2441
|
-
translate:
|
|
2448
|
+
translate: se()
|
|
2442
2449
|
}],
|
|
2443
2450
|
/**
|
|
2444
2451
|
* Translate X
|
|
2445
2452
|
* @see https://tailwindcss.com/docs/translate
|
|
2446
2453
|
*/
|
|
2447
2454
|
"translate-x": [{
|
|
2448
|
-
"translate-x":
|
|
2455
|
+
"translate-x": se()
|
|
2449
2456
|
}],
|
|
2450
2457
|
/**
|
|
2451
2458
|
* Translate Y
|
|
2452
2459
|
* @see https://tailwindcss.com/docs/translate
|
|
2453
2460
|
*/
|
|
2454
2461
|
"translate-y": [{
|
|
2455
|
-
"translate-y":
|
|
2462
|
+
"translate-y": se()
|
|
2456
2463
|
}],
|
|
2457
2464
|
/**
|
|
2458
2465
|
* Translate Z
|
|
2459
2466
|
* @see https://tailwindcss.com/docs/translate
|
|
2460
2467
|
*/
|
|
2461
2468
|
"translate-z": [{
|
|
2462
|
-
"translate-z":
|
|
2469
|
+
"translate-z": se()
|
|
2463
2470
|
}],
|
|
2464
2471
|
/**
|
|
2465
2472
|
* Translate None
|
|
@@ -2474,7 +2481,7 @@ const qe = (e, r) => {
|
|
|
2474
2481
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2475
2482
|
*/
|
|
2476
2483
|
accent: [{
|
|
2477
|
-
accent:
|
|
2484
|
+
accent: f()
|
|
2478
2485
|
}],
|
|
2479
2486
|
/**
|
|
2480
2487
|
* Appearance
|
|
@@ -2488,7 +2495,7 @@ const qe = (e, r) => {
|
|
|
2488
2495
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2489
2496
|
*/
|
|
2490
2497
|
"caret-color": [{
|
|
2491
|
-
caret:
|
|
2498
|
+
caret: f()
|
|
2492
2499
|
}],
|
|
2493
2500
|
/**
|
|
2494
2501
|
* Color Scheme
|
|
@@ -2502,7 +2509,7 @@ const qe = (e, r) => {
|
|
|
2502
2509
|
* @see https://tailwindcss.com/docs/cursor
|
|
2503
2510
|
*/
|
|
2504
2511
|
cursor: [{
|
|
2505
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2512
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", m, u]
|
|
2506
2513
|
}],
|
|
2507
2514
|
/**
|
|
2508
2515
|
* Field Sizing
|
|
@@ -2537,126 +2544,126 @@ const qe = (e, r) => {
|
|
|
2537
2544
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2538
2545
|
*/
|
|
2539
2546
|
"scroll-m": [{
|
|
2540
|
-
"scroll-m":
|
|
2547
|
+
"scroll-m": g()
|
|
2541
2548
|
}],
|
|
2542
2549
|
/**
|
|
2543
2550
|
* Scroll Margin X
|
|
2544
2551
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2545
2552
|
*/
|
|
2546
2553
|
"scroll-mx": [{
|
|
2547
|
-
"scroll-mx":
|
|
2554
|
+
"scroll-mx": g()
|
|
2548
2555
|
}],
|
|
2549
2556
|
/**
|
|
2550
2557
|
* Scroll Margin Y
|
|
2551
2558
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2552
2559
|
*/
|
|
2553
2560
|
"scroll-my": [{
|
|
2554
|
-
"scroll-my":
|
|
2561
|
+
"scroll-my": g()
|
|
2555
2562
|
}],
|
|
2556
2563
|
/**
|
|
2557
2564
|
* Scroll Margin Start
|
|
2558
2565
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2559
2566
|
*/
|
|
2560
2567
|
"scroll-ms": [{
|
|
2561
|
-
"scroll-ms":
|
|
2568
|
+
"scroll-ms": g()
|
|
2562
2569
|
}],
|
|
2563
2570
|
/**
|
|
2564
2571
|
* Scroll Margin End
|
|
2565
2572
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2566
2573
|
*/
|
|
2567
2574
|
"scroll-me": [{
|
|
2568
|
-
"scroll-me":
|
|
2575
|
+
"scroll-me": g()
|
|
2569
2576
|
}],
|
|
2570
2577
|
/**
|
|
2571
2578
|
* Scroll Margin Top
|
|
2572
2579
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2573
2580
|
*/
|
|
2574
2581
|
"scroll-mt": [{
|
|
2575
|
-
"scroll-mt":
|
|
2582
|
+
"scroll-mt": g()
|
|
2576
2583
|
}],
|
|
2577
2584
|
/**
|
|
2578
2585
|
* Scroll Margin Right
|
|
2579
2586
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2580
2587
|
*/
|
|
2581
2588
|
"scroll-mr": [{
|
|
2582
|
-
"scroll-mr":
|
|
2589
|
+
"scroll-mr": g()
|
|
2583
2590
|
}],
|
|
2584
2591
|
/**
|
|
2585
2592
|
* Scroll Margin Bottom
|
|
2586
2593
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2587
2594
|
*/
|
|
2588
2595
|
"scroll-mb": [{
|
|
2589
|
-
"scroll-mb":
|
|
2596
|
+
"scroll-mb": g()
|
|
2590
2597
|
}],
|
|
2591
2598
|
/**
|
|
2592
2599
|
* Scroll Margin Left
|
|
2593
2600
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2594
2601
|
*/
|
|
2595
2602
|
"scroll-ml": [{
|
|
2596
|
-
"scroll-ml":
|
|
2603
|
+
"scroll-ml": g()
|
|
2597
2604
|
}],
|
|
2598
2605
|
/**
|
|
2599
2606
|
* Scroll Padding
|
|
2600
2607
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2601
2608
|
*/
|
|
2602
2609
|
"scroll-p": [{
|
|
2603
|
-
"scroll-p":
|
|
2610
|
+
"scroll-p": g()
|
|
2604
2611
|
}],
|
|
2605
2612
|
/**
|
|
2606
2613
|
* Scroll Padding X
|
|
2607
2614
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2608
2615
|
*/
|
|
2609
2616
|
"scroll-px": [{
|
|
2610
|
-
"scroll-px":
|
|
2617
|
+
"scroll-px": g()
|
|
2611
2618
|
}],
|
|
2612
2619
|
/**
|
|
2613
2620
|
* Scroll Padding Y
|
|
2614
2621
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2615
2622
|
*/
|
|
2616
2623
|
"scroll-py": [{
|
|
2617
|
-
"scroll-py":
|
|
2624
|
+
"scroll-py": g()
|
|
2618
2625
|
}],
|
|
2619
2626
|
/**
|
|
2620
2627
|
* Scroll Padding Start
|
|
2621
2628
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2622
2629
|
*/
|
|
2623
2630
|
"scroll-ps": [{
|
|
2624
|
-
"scroll-ps":
|
|
2631
|
+
"scroll-ps": g()
|
|
2625
2632
|
}],
|
|
2626
2633
|
/**
|
|
2627
2634
|
* Scroll Padding End
|
|
2628
2635
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2629
2636
|
*/
|
|
2630
2637
|
"scroll-pe": [{
|
|
2631
|
-
"scroll-pe":
|
|
2638
|
+
"scroll-pe": g()
|
|
2632
2639
|
}],
|
|
2633
2640
|
/**
|
|
2634
2641
|
* Scroll Padding Top
|
|
2635
2642
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2636
2643
|
*/
|
|
2637
2644
|
"scroll-pt": [{
|
|
2638
|
-
"scroll-pt":
|
|
2645
|
+
"scroll-pt": g()
|
|
2639
2646
|
}],
|
|
2640
2647
|
/**
|
|
2641
2648
|
* Scroll Padding Right
|
|
2642
2649
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2643
2650
|
*/
|
|
2644
2651
|
"scroll-pr": [{
|
|
2645
|
-
"scroll-pr":
|
|
2652
|
+
"scroll-pr": g()
|
|
2646
2653
|
}],
|
|
2647
2654
|
/**
|
|
2648
2655
|
* Scroll Padding Bottom
|
|
2649
2656
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2650
2657
|
*/
|
|
2651
2658
|
"scroll-pb": [{
|
|
2652
|
-
"scroll-pb":
|
|
2659
|
+
"scroll-pb": g()
|
|
2653
2660
|
}],
|
|
2654
2661
|
/**
|
|
2655
2662
|
* Scroll Padding Left
|
|
2656
2663
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2657
2664
|
*/
|
|
2658
2665
|
"scroll-pl": [{
|
|
2659
|
-
"scroll-pl":
|
|
2666
|
+
"scroll-pl": g()
|
|
2660
2667
|
}],
|
|
2661
2668
|
/**
|
|
2662
2669
|
* Scroll Snap Align
|
|
@@ -2724,7 +2731,7 @@ const qe = (e, r) => {
|
|
|
2724
2731
|
* @see https://tailwindcss.com/docs/will-change
|
|
2725
2732
|
*/
|
|
2726
2733
|
"will-change": [{
|
|
2727
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2734
|
+
"will-change": ["auto", "scroll", "contents", "transform", m, u]
|
|
2728
2735
|
}],
|
|
2729
2736
|
// -----------
|
|
2730
2737
|
// --- SVG ---
|
|
@@ -2734,21 +2741,21 @@ const qe = (e, r) => {
|
|
|
2734
2741
|
* @see https://tailwindcss.com/docs/fill
|
|
2735
2742
|
*/
|
|
2736
2743
|
fill: [{
|
|
2737
|
-
fill: ["none", ...
|
|
2744
|
+
fill: ["none", ...f()]
|
|
2738
2745
|
}],
|
|
2739
2746
|
/**
|
|
2740
2747
|
* Stroke Width
|
|
2741
2748
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2742
2749
|
*/
|
|
2743
2750
|
"stroke-w": [{
|
|
2744
|
-
stroke: [
|
|
2751
|
+
stroke: [k, X, W, xe]
|
|
2745
2752
|
}],
|
|
2746
2753
|
/**
|
|
2747
2754
|
* Stroke
|
|
2748
2755
|
* @see https://tailwindcss.com/docs/stroke
|
|
2749
2756
|
*/
|
|
2750
2757
|
stroke: [{
|
|
2751
|
-
stroke: ["none", ...
|
|
2758
|
+
stroke: ["none", ...f()]
|
|
2752
2759
|
}],
|
|
2753
2760
|
// ---------------------
|
|
2754
2761
|
// --- Accessibility ---
|
|
@@ -2816,164 +2823,1457 @@ const qe = (e, r) => {
|
|
|
2816
2823
|
},
|
|
2817
2824
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2818
2825
|
};
|
|
2819
|
-
},
|
|
2820
|
-
function
|
|
2821
|
-
return
|
|
2826
|
+
}, Cr = /* @__PURE__ */ or(Nr);
|
|
2827
|
+
function p(...e) {
|
|
2828
|
+
return Cr(Pt(e));
|
|
2822
2829
|
}
|
|
2823
|
-
const
|
|
2830
|
+
const _r = [
|
|
2824
2831
|
{ size: 700, x: "10%", y: "5%", color: "primary", opacity: 0.08, drift: "drift-1", duration: "25s" },
|
|
2825
2832
|
{ size: 600, x: "70%", y: "15%", color: "secondary", opacity: 0.06, drift: "drift-2", duration: "30s" },
|
|
2826
2833
|
{ size: 550, x: "30%", y: "65%", color: "primary", opacity: 0.05, drift: "drift-4", duration: "22s" }
|
|
2827
2834
|
];
|
|
2828
|
-
function
|
|
2829
|
-
return /* @__PURE__ */
|
|
2835
|
+
function Co({ blobs: e = _r, className: t }) {
|
|
2836
|
+
return /* @__PURE__ */ a("div", { className: p("fixed inset-0 -z-10 overflow-hidden bg-background", t), children: e.map((r, o) => /* @__PURE__ */ a(
|
|
2830
2837
|
"div",
|
|
2831
2838
|
{
|
|
2832
2839
|
style: {
|
|
2833
2840
|
position: "absolute",
|
|
2834
|
-
left:
|
|
2835
|
-
top:
|
|
2836
|
-
width:
|
|
2837
|
-
height:
|
|
2841
|
+
left: r.x,
|
|
2842
|
+
top: r.y,
|
|
2843
|
+
width: r.size,
|
|
2844
|
+
height: r.size,
|
|
2838
2845
|
borderRadius: "50%",
|
|
2839
|
-
background: `radial-gradient(circle, hsl(var(--heroui-${
|
|
2846
|
+
background: `radial-gradient(circle, hsl(var(--heroui-${r.color}) / ${r.opacity}) 0%, transparent 70%)`,
|
|
2840
2847
|
willChange: "transform",
|
|
2841
|
-
animation: `${
|
|
2848
|
+
animation: `${r.drift} ${r.duration} ease-in-out infinite alternate`,
|
|
2842
2849
|
transform: "translate3d(0,0,0)"
|
|
2843
2850
|
}
|
|
2844
2851
|
},
|
|
2845
2852
|
o
|
|
2846
2853
|
)) });
|
|
2847
2854
|
}
|
|
2848
|
-
const
|
|
2849
|
-
({ variant: e = "default", className:
|
|
2855
|
+
const Sr = L.forwardRef(
|
|
2856
|
+
({ variant: e = "default", className: t, children: r, ...o }, n) => /* @__PURE__ */ a(
|
|
2850
2857
|
"div",
|
|
2851
2858
|
{
|
|
2852
2859
|
ref: n,
|
|
2853
|
-
className:
|
|
2860
|
+
className: p(
|
|
2854
2861
|
e === "default" ? "nx-glass" : "nx-glass-strong",
|
|
2855
|
-
|
|
2862
|
+
t
|
|
2856
2863
|
),
|
|
2857
2864
|
...o,
|
|
2858
|
-
children:
|
|
2865
|
+
children: r
|
|
2859
2866
|
}
|
|
2860
2867
|
)
|
|
2861
2868
|
);
|
|
2862
|
-
|
|
2863
|
-
function
|
|
2869
|
+
Sr.displayName = "Surface";
|
|
2870
|
+
function _o({
|
|
2864
2871
|
value: e,
|
|
2865
|
-
onChange:
|
|
2866
|
-
placeholder:
|
|
2872
|
+
onChange: t,
|
|
2873
|
+
placeholder: r = "Search...",
|
|
2867
2874
|
delay: o = 300,
|
|
2868
2875
|
icon: n,
|
|
2869
2876
|
className: l
|
|
2870
2877
|
}) {
|
|
2871
|
-
const [
|
|
2872
|
-
return
|
|
2873
|
-
e !== void 0 &&
|
|
2874
|
-
}, [e]),
|
|
2875
|
-
const c = setTimeout(() =>
|
|
2878
|
+
const [s, i] = A(e ?? "");
|
|
2879
|
+
return ce(() => {
|
|
2880
|
+
e !== void 0 && i(e);
|
|
2881
|
+
}, [e]), ce(() => {
|
|
2882
|
+
const c = setTimeout(() => t(s), o);
|
|
2876
2883
|
return () => clearTimeout(c);
|
|
2877
|
-
}, [
|
|
2878
|
-
|
|
2884
|
+
}, [s, o, t]), /* @__PURE__ */ a(
|
|
2885
|
+
Nt,
|
|
2879
2886
|
{
|
|
2880
2887
|
type: "text",
|
|
2881
|
-
value:
|
|
2882
|
-
onValueChange:
|
|
2883
|
-
placeholder:
|
|
2888
|
+
value: s,
|
|
2889
|
+
onValueChange: i,
|
|
2890
|
+
placeholder: r,
|
|
2884
2891
|
isClearable: !0,
|
|
2885
|
-
onClear: () =>
|
|
2892
|
+
onClear: () => i(""),
|
|
2886
2893
|
startContent: n,
|
|
2887
|
-
className:
|
|
2894
|
+
className: p(l)
|
|
2888
2895
|
}
|
|
2889
2896
|
);
|
|
2890
2897
|
}
|
|
2891
|
-
const
|
|
2898
|
+
const qe = {
|
|
2892
2899
|
running: "bg-success",
|
|
2893
2900
|
stopped: "bg-default-400",
|
|
2894
2901
|
error: "bg-danger",
|
|
2895
2902
|
busy: "bg-warning",
|
|
2896
2903
|
installing: "bg-warning"
|
|
2897
2904
|
};
|
|
2898
|
-
function
|
|
2899
|
-
const o =
|
|
2900
|
-
return /* @__PURE__ */
|
|
2901
|
-
o && /* @__PURE__ */
|
|
2905
|
+
function So({ status: e, ping: t, className: r }) {
|
|
2906
|
+
const o = t ?? e === "running";
|
|
2907
|
+
return /* @__PURE__ */ a("span", { className: p("flex items-center justify-center w-4 shrink-0", r), children: /* @__PURE__ */ h("span", { className: "relative flex h-2 w-2", children: [
|
|
2908
|
+
o && /* @__PURE__ */ a(
|
|
2902
2909
|
"span",
|
|
2903
2910
|
{
|
|
2904
|
-
className:
|
|
2911
|
+
className: p(
|
|
2905
2912
|
"absolute inline-flex h-full w-full rounded-full opacity-75 animate-ping",
|
|
2906
|
-
|
|
2913
|
+
qe[e]
|
|
2907
2914
|
)
|
|
2908
2915
|
}
|
|
2909
2916
|
),
|
|
2910
|
-
/* @__PURE__ */
|
|
2917
|
+
/* @__PURE__ */ a(
|
|
2911
2918
|
"span",
|
|
2912
2919
|
{
|
|
2913
|
-
className:
|
|
2920
|
+
className: p(
|
|
2914
2921
|
"relative inline-flex rounded-full h-2 w-2",
|
|
2915
|
-
|
|
2922
|
+
qe[e]
|
|
2916
2923
|
)
|
|
2917
2924
|
}
|
|
2918
2925
|
)
|
|
2919
2926
|
] }) });
|
|
2920
2927
|
}
|
|
2921
|
-
function
|
|
2922
|
-
const [
|
|
2928
|
+
function zr({ text: e, label: t }) {
|
|
2929
|
+
const [r, o] = A(!1);
|
|
2923
2930
|
async function n() {
|
|
2924
2931
|
await navigator.clipboard.writeText(e), o(!0), setTimeout(() => o(!1), 2e3);
|
|
2925
2932
|
}
|
|
2926
|
-
return /* @__PURE__ */
|
|
2927
|
-
|
|
2933
|
+
return /* @__PURE__ */ a(
|
|
2934
|
+
Se,
|
|
2928
2935
|
{
|
|
2929
2936
|
isIconOnly: !0,
|
|
2930
2937
|
size: "sm",
|
|
2931
2938
|
variant: "light",
|
|
2932
2939
|
onPress: n,
|
|
2933
2940
|
className: "absolute top-2 right-2",
|
|
2934
|
-
title:
|
|
2935
|
-
children:
|
|
2936
|
-
/* @__PURE__ */
|
|
2937
|
-
/* @__PURE__ */
|
|
2941
|
+
title: t ?? "Copy to clipboard",
|
|
2942
|
+
children: r ? /* @__PURE__ */ a("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", className: "text-success", children: /* @__PURE__ */ a("polyline", { points: "20 6 9 17 4 12" }) }) : /* @__PURE__ */ h("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", className: "text-default-400", children: [
|
|
2943
|
+
/* @__PURE__ */ a("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
|
2944
|
+
/* @__PURE__ */ a("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
|
2938
2945
|
] })
|
|
2939
2946
|
}
|
|
2940
2947
|
);
|
|
2941
2948
|
}
|
|
2942
|
-
function
|
|
2943
|
-
return /* @__PURE__ */
|
|
2944
|
-
/* @__PURE__ */
|
|
2945
|
-
/* @__PURE__ */
|
|
2949
|
+
function zo({ text: e, copyLabel: t, className: r }) {
|
|
2950
|
+
return /* @__PURE__ */ h("div", { className: p("relative", r), children: [
|
|
2951
|
+
/* @__PURE__ */ a("pre", { className: "bg-background border border-default-100 rounded-[8px] p-3 text-[11px] text-default-500 font-mono overflow-x-auto leading-relaxed whitespace-pre-wrap break-all", children: e }),
|
|
2952
|
+
/* @__PURE__ */ a(zr, { text: e, label: t })
|
|
2953
|
+
] });
|
|
2954
|
+
}
|
|
2955
|
+
function Io({ icon: e, title: t, description: r, action: o, className: n }) {
|
|
2956
|
+
return /* @__PURE__ */ h("div", { className: p("text-center py-12 rounded-xl border border-dashed border-default-200/50", n), children: [
|
|
2957
|
+
/* @__PURE__ */ a(e, { size: 28, className: "mx-auto mb-3 text-default-400" }),
|
|
2958
|
+
/* @__PURE__ */ a("p", { className: "text-sm text-default-500", children: t }),
|
|
2959
|
+
r && /* @__PURE__ */ a("p", { className: "text-[11px] text-default-400 mt-1", children: r }),
|
|
2960
|
+
o && /* @__PURE__ */ a("div", { className: "mt-3", children: o })
|
|
2961
|
+
] });
|
|
2962
|
+
}
|
|
2963
|
+
const He = /==([^\n]+?)==/g;
|
|
2964
|
+
function Ir() {
|
|
2965
|
+
return (e) => {
|
|
2966
|
+
Z(e, "text", (t, r, o) => {
|
|
2967
|
+
if (r === void 0 || !o) return;
|
|
2968
|
+
He.lastIndex = 0;
|
|
2969
|
+
const n = [];
|
|
2970
|
+
let l = 0, s;
|
|
2971
|
+
for (; (s = He.exec(t.value)) !== null; )
|
|
2972
|
+
s.index > l && n.push({ type: "text", value: t.value.slice(l, s.index) }), n.push({ type: "html", value: `<mark>${s[1]}</mark>` }), l = s.index + s[0].length;
|
|
2973
|
+
if (n.length !== 0)
|
|
2974
|
+
return l < t.value.length && n.push({ type: "text", value: t.value.slice(l) }), o.children.splice(r, 1, ...n), r + n.length;
|
|
2975
|
+
});
|
|
2976
|
+
};
|
|
2977
|
+
}
|
|
2978
|
+
const Je = /~([^~\s][^~]*)~|\^([^^\s][^^]*)\^/g;
|
|
2979
|
+
function Rr() {
|
|
2980
|
+
return (e) => {
|
|
2981
|
+
Z(e, "text", (t, r, o) => {
|
|
2982
|
+
if (r === void 0 || !o) return;
|
|
2983
|
+
Je.lastIndex = 0;
|
|
2984
|
+
const n = [];
|
|
2985
|
+
let l = 0, s;
|
|
2986
|
+
for (; (s = Je.exec(t.value)) !== null; )
|
|
2987
|
+
s.index > l && n.push({ type: "text", value: t.value.slice(l, s.index) }), s[1] !== void 0 ? n.push({ type: "html", value: `<sub>${s[1]}</sub>` }) : s[2] !== void 0 && n.push({ type: "html", value: `<sup>${s[2]}</sup>` }), l = s.index + s[0].length;
|
|
2988
|
+
if (n.length !== 0)
|
|
2989
|
+
return l < t.value.length && n.push({ type: "text", value: t.value.slice(l) }), o.children.splice(r, 1, ...n), r + n.length;
|
|
2990
|
+
});
|
|
2991
|
+
};
|
|
2992
|
+
}
|
|
2993
|
+
const ke = /^\*\[([^\]]+)\]:\s*(.+)$/gm;
|
|
2994
|
+
function Tr() {
|
|
2995
|
+
return (e) => {
|
|
2996
|
+
const t = /* @__PURE__ */ new Map();
|
|
2997
|
+
if (Z(e, "text", (n) => {
|
|
2998
|
+
ke.lastIndex = 0;
|
|
2999
|
+
let l;
|
|
3000
|
+
for (; (l = ke.exec(n.value)) !== null; )
|
|
3001
|
+
t.set(l[1], l[2]);
|
|
3002
|
+
}), t.size === 0) return;
|
|
3003
|
+
Z(e, "paragraph", (n, l, s) => {
|
|
3004
|
+
if (l === void 0 || !s) return;
|
|
3005
|
+
if (n.children.filter((d) => d.type === "text").map((d) => d.value).join("").replace(ke, "").trim() === "")
|
|
3006
|
+
return s.children.splice(l, 1), l;
|
|
3007
|
+
});
|
|
3008
|
+
const r = [...t.keys()].sort((n, l) => l.length - n.length), o = new RegExp(`\\b(${r.map($r).join("|")})\\b`, "g");
|
|
3009
|
+
Z(e, "text", (n, l, s) => {
|
|
3010
|
+
if (l === void 0 || !s) return;
|
|
3011
|
+
o.lastIndex = 0;
|
|
3012
|
+
const i = [];
|
|
3013
|
+
let c = 0, d;
|
|
3014
|
+
for (; (d = o.exec(n.value)) !== null; ) {
|
|
3015
|
+
d.index > c && i.push({ type: "text", value: n.value.slice(c, d.index) });
|
|
3016
|
+
const b = t.get(d[1]);
|
|
3017
|
+
i.push({
|
|
3018
|
+
type: "html",
|
|
3019
|
+
value: `<abbr title="${Mr(b)}">${d[1]}</abbr>`
|
|
3020
|
+
}), c = d.index + d[0].length;
|
|
3021
|
+
}
|
|
3022
|
+
if (i.length !== 0)
|
|
3023
|
+
return c < n.value.length && i.push({ type: "text", value: n.value.slice(c) }), s.children.splice(l, 1, ...i), l + i.length;
|
|
3024
|
+
});
|
|
3025
|
+
};
|
|
3026
|
+
}
|
|
3027
|
+
function $r(e) {
|
|
3028
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3029
|
+
}
|
|
3030
|
+
function Mr(e) {
|
|
3031
|
+
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
3032
|
+
}
|
|
3033
|
+
const Ar = {
|
|
3034
|
+
math: St({ singleDollarTextMath: !0 }),
|
|
3035
|
+
code: zt({ themes: ["github-light", "github-dark"] })
|
|
3036
|
+
}, Er = [
|
|
3037
|
+
[It, { singleTilde: !1 }],
|
|
3038
|
+
Ir,
|
|
3039
|
+
Rr,
|
|
3040
|
+
Tr
|
|
3041
|
+
], Or = ({ text: e, isStreaming: t }) => /* @__PURE__ */ a(
|
|
3042
|
+
_t,
|
|
3043
|
+
{
|
|
3044
|
+
mode: t ? "streaming" : "static",
|
|
3045
|
+
isAnimating: t,
|
|
3046
|
+
components: Lr,
|
|
3047
|
+
plugins: Ar,
|
|
3048
|
+
remarkPlugins: Er,
|
|
3049
|
+
allowedTags: {
|
|
3050
|
+
mark: ["className", "style"],
|
|
3051
|
+
sub: [],
|
|
3052
|
+
sup: [],
|
|
3053
|
+
abbr: ["title"],
|
|
3054
|
+
section: ["dataFootnotes"]
|
|
3055
|
+
},
|
|
3056
|
+
className: "aui-md",
|
|
3057
|
+
children: e
|
|
3058
|
+
}
|
|
3059
|
+
), Pr = rt(Or), Lr = {
|
|
3060
|
+
h1: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3061
|
+
"h1",
|
|
3062
|
+
{
|
|
3063
|
+
className: p(
|
|
3064
|
+
"aui-md-h1 mb-2 scroll-m-20 font-semibold text-base first:mt-0 last:mb-0",
|
|
3065
|
+
e
|
|
3066
|
+
),
|
|
3067
|
+
...r
|
|
3068
|
+
}
|
|
3069
|
+
),
|
|
3070
|
+
h2: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3071
|
+
"h2",
|
|
3072
|
+
{
|
|
3073
|
+
className: p(
|
|
3074
|
+
"aui-md-h2 mt-3 mb-1.5 scroll-m-20 font-semibold text-sm first:mt-0 last:mb-0",
|
|
3075
|
+
e
|
|
3076
|
+
),
|
|
3077
|
+
...r
|
|
3078
|
+
}
|
|
3079
|
+
),
|
|
3080
|
+
h3: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3081
|
+
"h3",
|
|
3082
|
+
{
|
|
3083
|
+
className: p(
|
|
3084
|
+
"aui-md-h3 mt-2.5 mb-1 scroll-m-20 font-semibold text-sm first:mt-0 last:mb-0",
|
|
3085
|
+
e
|
|
3086
|
+
),
|
|
3087
|
+
...r
|
|
3088
|
+
}
|
|
3089
|
+
),
|
|
3090
|
+
h4: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3091
|
+
"h4",
|
|
3092
|
+
{
|
|
3093
|
+
className: p(
|
|
3094
|
+
"aui-md-h4 mt-2 mb-1 scroll-m-20 font-medium text-sm first:mt-0 last:mb-0",
|
|
3095
|
+
e
|
|
3096
|
+
),
|
|
3097
|
+
...r
|
|
3098
|
+
}
|
|
3099
|
+
),
|
|
3100
|
+
h5: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3101
|
+
"h5",
|
|
3102
|
+
{
|
|
3103
|
+
className: p(
|
|
3104
|
+
"aui-md-h5 mt-2 mb-1 font-medium text-sm first:mt-0 last:mb-0",
|
|
3105
|
+
e
|
|
3106
|
+
),
|
|
3107
|
+
...r
|
|
3108
|
+
}
|
|
3109
|
+
),
|
|
3110
|
+
h6: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3111
|
+
"h6",
|
|
3112
|
+
{
|
|
3113
|
+
className: p(
|
|
3114
|
+
"aui-md-h6 mt-2 mb-1 font-medium text-sm first:mt-0 last:mb-0",
|
|
3115
|
+
e
|
|
3116
|
+
),
|
|
3117
|
+
...r
|
|
3118
|
+
}
|
|
3119
|
+
),
|
|
3120
|
+
p: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3121
|
+
"p",
|
|
3122
|
+
{
|
|
3123
|
+
className: p(
|
|
3124
|
+
"aui-md-p my-2.5 leading-normal first:mt-0 last:mb-0",
|
|
3125
|
+
e
|
|
3126
|
+
),
|
|
3127
|
+
...r
|
|
3128
|
+
}
|
|
3129
|
+
),
|
|
3130
|
+
a: ({ className: e, node: t, href: r, ...o }) => {
|
|
3131
|
+
const n = r?.startsWith("#"), l = R(
|
|
3132
|
+
(s) => {
|
|
3133
|
+
if (!n || !r) return;
|
|
3134
|
+
s.preventDefault();
|
|
3135
|
+
const i = r.slice(1), c = document.getElementById(i) || document.getElementById(`user-content-${i}`);
|
|
3136
|
+
c && (c.scrollIntoView({ behavior: "smooth", block: "center" }), c.classList.add("aui-md-flash"), setTimeout(() => c.classList.remove("aui-md-flash"), 1500));
|
|
3137
|
+
},
|
|
3138
|
+
[n, r]
|
|
3139
|
+
);
|
|
3140
|
+
return /* @__PURE__ */ a(
|
|
3141
|
+
"a",
|
|
3142
|
+
{
|
|
3143
|
+
className: p(
|
|
3144
|
+
"aui-md-a text-primary underline underline-offset-2 hover:text-primary/80 cursor-pointer",
|
|
3145
|
+
n && "no-underline",
|
|
3146
|
+
e
|
|
3147
|
+
),
|
|
3148
|
+
href: r,
|
|
3149
|
+
onClick: n ? l : void 0,
|
|
3150
|
+
...!n && { target: "_blank", rel: "noopener noreferrer" },
|
|
3151
|
+
...o
|
|
3152
|
+
}
|
|
3153
|
+
);
|
|
3154
|
+
},
|
|
3155
|
+
blockquote: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3156
|
+
"blockquote",
|
|
3157
|
+
{
|
|
3158
|
+
className: p(
|
|
3159
|
+
"aui-md-blockquote my-2.5 border-default-400/30 border-l-2 pl-3 text-default-500 italic",
|
|
3160
|
+
e
|
|
3161
|
+
),
|
|
3162
|
+
...r
|
|
3163
|
+
}
|
|
3164
|
+
),
|
|
3165
|
+
ul: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3166
|
+
"ul",
|
|
3167
|
+
{
|
|
3168
|
+
className: p(
|
|
3169
|
+
"aui-md-ul my-2 ml-4 list-disc marker:text-default-500 [&>li]:mt-1",
|
|
3170
|
+
e
|
|
3171
|
+
),
|
|
3172
|
+
...r
|
|
3173
|
+
}
|
|
3174
|
+
),
|
|
3175
|
+
ol: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3176
|
+
"ol",
|
|
3177
|
+
{
|
|
3178
|
+
className: p(
|
|
3179
|
+
"aui-md-ol my-2 ml-4 list-decimal marker:text-default-500 [&>li]:mt-1",
|
|
3180
|
+
e
|
|
3181
|
+
),
|
|
3182
|
+
...r
|
|
3183
|
+
}
|
|
3184
|
+
),
|
|
3185
|
+
li: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a("li", { className: p("aui-md-li leading-normal", e), ...r }),
|
|
3186
|
+
hr: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3187
|
+
"hr",
|
|
3188
|
+
{
|
|
3189
|
+
className: p("aui-md-hr my-2 border-default-400/20", e),
|
|
3190
|
+
...r
|
|
3191
|
+
}
|
|
3192
|
+
),
|
|
3193
|
+
table: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3194
|
+
"table",
|
|
3195
|
+
{
|
|
3196
|
+
className: p(
|
|
3197
|
+
"aui-md-table my-2 w-full border-separate border-spacing-0 overflow-y-auto",
|
|
3198
|
+
e
|
|
3199
|
+
),
|
|
3200
|
+
...r
|
|
3201
|
+
}
|
|
3202
|
+
),
|
|
3203
|
+
th: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3204
|
+
"th",
|
|
3205
|
+
{
|
|
3206
|
+
className: p(
|
|
3207
|
+
"aui-md-th bg-default-100/40 px-2 py-1 text-left font-medium first:rounded-tl-lg last:rounded-tr-lg",
|
|
3208
|
+
e
|
|
3209
|
+
),
|
|
3210
|
+
...r
|
|
3211
|
+
}
|
|
3212
|
+
),
|
|
3213
|
+
td: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3214
|
+
"td",
|
|
3215
|
+
{
|
|
3216
|
+
className: p(
|
|
3217
|
+
"aui-md-td border-default-400/20 border-b border-l px-2 py-1 text-left last:border-r [[align=center]]:text-center [[align=right]]:text-right",
|
|
3218
|
+
e
|
|
3219
|
+
),
|
|
3220
|
+
...r
|
|
3221
|
+
}
|
|
3222
|
+
),
|
|
3223
|
+
tr: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3224
|
+
"tr",
|
|
3225
|
+
{
|
|
3226
|
+
className: p(
|
|
3227
|
+
"aui-md-tr m-0 border-b p-0 first:border-t [&:last-child>td:first-child]:rounded-bl-lg [&:last-child>td:last-child]:rounded-br-lg",
|
|
3228
|
+
e
|
|
3229
|
+
),
|
|
3230
|
+
...r
|
|
3231
|
+
}
|
|
3232
|
+
),
|
|
3233
|
+
mark: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3234
|
+
"mark",
|
|
3235
|
+
{
|
|
3236
|
+
className: p("aui-md-mark rounded-sm px-0.5 text-inherit", e),
|
|
3237
|
+
style: { backgroundColor: "hsl(var(--heroui-primary) / 0.2)" },
|
|
3238
|
+
...r
|
|
3239
|
+
}
|
|
3240
|
+
),
|
|
3241
|
+
abbr: ({ className: e, node: t, title: r, children: o, ...n }) => /* @__PURE__ */ a(ze, { content: r, placement: "top", className: "max-w-xs text-xs", children: /* @__PURE__ */ a(
|
|
3242
|
+
"abbr",
|
|
3243
|
+
{
|
|
3244
|
+
className: p(
|
|
3245
|
+
"aui-md-abbr cursor-help border-b border-dotted border-default-400/50 no-underline",
|
|
3246
|
+
e
|
|
3247
|
+
),
|
|
3248
|
+
title: void 0,
|
|
3249
|
+
...n,
|
|
3250
|
+
children: o
|
|
3251
|
+
}
|
|
3252
|
+
) }),
|
|
3253
|
+
section: ({ className: e, node: t, ...r }) => {
|
|
3254
|
+
const o = r["data-footnotes"] !== void 0;
|
|
3255
|
+
return /* @__PURE__ */ a(
|
|
3256
|
+
"section",
|
|
3257
|
+
{
|
|
3258
|
+
className: p(
|
|
3259
|
+
o && "aui-md-footnotes mt-4 border-t border-default-400/20 pt-3 text-xs text-default-500 [&_ol]:ml-4 [&_ol]:list-decimal [&_li]:mt-1",
|
|
3260
|
+
e
|
|
3261
|
+
),
|
|
3262
|
+
...r
|
|
3263
|
+
}
|
|
3264
|
+
);
|
|
3265
|
+
},
|
|
3266
|
+
sub: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3267
|
+
"sub",
|
|
3268
|
+
{
|
|
3269
|
+
className: p("aui-md-sub", e),
|
|
3270
|
+
...r
|
|
3271
|
+
}
|
|
3272
|
+
),
|
|
3273
|
+
sup: ({ className: e, node: t, ...r }) => /* @__PURE__ */ a(
|
|
3274
|
+
"sup",
|
|
3275
|
+
{
|
|
3276
|
+
className: p(
|
|
3277
|
+
"aui-md-sup [&>a]:text-xs [&>a]:no-underline",
|
|
3278
|
+
e
|
|
3279
|
+
),
|
|
3280
|
+
...r
|
|
3281
|
+
}
|
|
3282
|
+
)
|
|
3283
|
+
};
|
|
3284
|
+
function jr(e, t) {
|
|
3285
|
+
return R(() => {
|
|
3286
|
+
const r = e.current;
|
|
3287
|
+
if (!r) return;
|
|
3288
|
+
let o = r.parentElement;
|
|
3289
|
+
for (; o; ) {
|
|
3290
|
+
const { overflow: d, overflowY: b } = getComputedStyle(o);
|
|
3291
|
+
if (d === "auto" || d === "scroll" || b === "auto" || b === "scroll")
|
|
3292
|
+
break;
|
|
3293
|
+
o = o.parentElement;
|
|
3294
|
+
}
|
|
3295
|
+
if (!o) return;
|
|
3296
|
+
const n = o.scrollTop, l = o;
|
|
3297
|
+
let s;
|
|
3298
|
+
const i = performance.now();
|
|
3299
|
+
function c() {
|
|
3300
|
+
l.scrollTop = n, performance.now() - i < t && (s = requestAnimationFrame(c));
|
|
3301
|
+
}
|
|
3302
|
+
s = requestAnimationFrame(c), setTimeout(() => cancelAnimationFrame(s), t + 50);
|
|
3303
|
+
}, [e, t]);
|
|
3304
|
+
}
|
|
3305
|
+
function O(e) {
|
|
3306
|
+
const t = e.split("/");
|
|
3307
|
+
return t[t.length - 1] || e;
|
|
3308
|
+
}
|
|
3309
|
+
function ie(e, t = 40) {
|
|
3310
|
+
if (e.length <= t) return e;
|
|
3311
|
+
const r = e.split("/").filter(Boolean);
|
|
3312
|
+
return r.length <= 2 ? e : `.../${r.slice(-2).join("/")}`;
|
|
3313
|
+
}
|
|
3314
|
+
function Br(e) {
|
|
3315
|
+
if (!e) return null;
|
|
3316
|
+
try {
|
|
3317
|
+
return JSON.parse(e);
|
|
3318
|
+
} catch {
|
|
3319
|
+
return null;
|
|
3320
|
+
}
|
|
3321
|
+
}
|
|
3322
|
+
const Ke = {
|
|
3323
|
+
// File operations
|
|
3324
|
+
read_file: (e) => {
|
|
3325
|
+
const t = e.path;
|
|
3326
|
+
return t ? `Read ${O(t)}` : null;
|
|
3327
|
+
},
|
|
3328
|
+
write_file: (e) => {
|
|
3329
|
+
const t = e.path;
|
|
3330
|
+
return t ? `Write ${O(t)}` : null;
|
|
3331
|
+
},
|
|
3332
|
+
edit_file: (e) => {
|
|
3333
|
+
const t = e.path;
|
|
3334
|
+
return t ? `Edit ${O(t)}` : null;
|
|
3335
|
+
},
|
|
3336
|
+
create_file: (e) => {
|
|
3337
|
+
const t = e.path;
|
|
3338
|
+
return t ? `Create ${O(t)}` : null;
|
|
3339
|
+
},
|
|
3340
|
+
delete_file: (e) => {
|
|
3341
|
+
const t = e.path;
|
|
3342
|
+
return t ? `Delete ${O(t)}` : null;
|
|
3343
|
+
},
|
|
3344
|
+
// Search
|
|
3345
|
+
search_files: (e) => {
|
|
3346
|
+
const t = e.pattern, r = e.path;
|
|
3347
|
+
return t && r ? `Search for ${t} in ${ie(r)}` : t ? `Search for ${t}` : null;
|
|
3348
|
+
},
|
|
3349
|
+
search_content: (e) => {
|
|
3350
|
+
const t = e.pattern, r = e.path;
|
|
3351
|
+
return t && r ? `Search "${t}" in ${ie(r)}` : t ? `Search "${t}"` : null;
|
|
3352
|
+
},
|
|
3353
|
+
list_directory: (e) => {
|
|
3354
|
+
const t = e.path;
|
|
3355
|
+
return t ? `List ${ie(t)}` : null;
|
|
3356
|
+
},
|
|
3357
|
+
// Shell / command execution
|
|
3358
|
+
execute_shell: (e) => {
|
|
3359
|
+
const t = e.command;
|
|
3360
|
+
return t ? `Run ${t}` : null;
|
|
3361
|
+
},
|
|
3362
|
+
execute_command: (e) => {
|
|
3363
|
+
const t = e.command, r = e.args;
|
|
3364
|
+
return t && r?.length ? `Run ${t} ${r.join(" ")}` : t ? `Run ${t}` : null;
|
|
3365
|
+
},
|
|
3366
|
+
run_terminal_command: (e) => {
|
|
3367
|
+
const t = e.command;
|
|
3368
|
+
return t ? `Run ${t}` : null;
|
|
3369
|
+
},
|
|
3370
|
+
// Web
|
|
3371
|
+
web_search: (e) => {
|
|
3372
|
+
const t = e.query;
|
|
3373
|
+
return t ? `Search web: "${t}"` : null;
|
|
3374
|
+
},
|
|
3375
|
+
fetch_url: (e) => {
|
|
3376
|
+
const t = e.url;
|
|
3377
|
+
return t ? `Fetch ${t}` : null;
|
|
3378
|
+
},
|
|
3379
|
+
// Git
|
|
3380
|
+
git_diff: () => "View git diff",
|
|
3381
|
+
git_status: () => "Check git status",
|
|
3382
|
+
git_log: () => "View git log",
|
|
3383
|
+
git_commit: (e) => {
|
|
3384
|
+
const t = e.message;
|
|
3385
|
+
return t ? `Commit: "${t}"` : "Create git commit";
|
|
3386
|
+
},
|
|
3387
|
+
// Nexus-specific
|
|
3388
|
+
nexus_read_file: (e) => {
|
|
3389
|
+
const t = e.path;
|
|
3390
|
+
return t ? `Read ${O(t)}` : null;
|
|
3391
|
+
},
|
|
3392
|
+
nexus_write_file: (e) => {
|
|
3393
|
+
const t = e.path;
|
|
3394
|
+
return t ? `Write ${O(t)}` : null;
|
|
3395
|
+
},
|
|
3396
|
+
nexus_edit_file: (e) => {
|
|
3397
|
+
const t = e.path;
|
|
3398
|
+
return t ? `Edit ${O(t)}` : null;
|
|
3399
|
+
},
|
|
3400
|
+
nexus_search_files: (e) => {
|
|
3401
|
+
const t = e.pattern;
|
|
3402
|
+
return t ? `Search for ${t}` : null;
|
|
3403
|
+
},
|
|
3404
|
+
nexus_search_content: (e) => {
|
|
3405
|
+
const t = e.pattern;
|
|
3406
|
+
return t ? `Search "${t}"` : null;
|
|
3407
|
+
},
|
|
3408
|
+
nexus_list_directory: (e) => {
|
|
3409
|
+
const t = e.path;
|
|
3410
|
+
return t ? `List ${ie(t)}` : null;
|
|
3411
|
+
},
|
|
3412
|
+
nexus_execute_command: (e) => {
|
|
3413
|
+
const t = e.command, r = e.args;
|
|
3414
|
+
return t && r?.length ? `Run ${t} ${r.join(" ")}` : t ? `Run ${t}` : null;
|
|
3415
|
+
}
|
|
3416
|
+
};
|
|
3417
|
+
function Fr(e, t) {
|
|
3418
|
+
const r = Br(t), o = Ke[e];
|
|
3419
|
+
if (o && r) {
|
|
3420
|
+
const s = o(r);
|
|
3421
|
+
if (s) return s;
|
|
3422
|
+
}
|
|
3423
|
+
const n = e.replace(/^(?:mcp_|_nexus_|nexus_)/, ""), l = Ke[n];
|
|
3424
|
+
if (l && r) {
|
|
3425
|
+
const s = l(r);
|
|
3426
|
+
if (s) return s;
|
|
3427
|
+
}
|
|
3428
|
+
return Wr(e);
|
|
3429
|
+
}
|
|
3430
|
+
function Wr(e) {
|
|
3431
|
+
return e.replace(/^mcp__[^_]+__/, "").replace(/^nexus_/, "").replace(/^_nexus_/, "").split("_").map((r) => r.charAt(0).toUpperCase() + r.slice(1)).join(" ");
|
|
3432
|
+
}
|
|
3433
|
+
const Ye = 200;
|
|
3434
|
+
function Gr({
|
|
3435
|
+
className: e,
|
|
3436
|
+
open: t,
|
|
3437
|
+
onOpenChange: r,
|
|
3438
|
+
defaultOpen: o = !1,
|
|
3439
|
+
children: n,
|
|
3440
|
+
...l
|
|
3441
|
+
}) {
|
|
3442
|
+
const s = Q(null), [i, c] = A(o), d = jr(s, Ye), b = t !== void 0, y = b ? t : i, x = R(() => {
|
|
3443
|
+
const v = !y;
|
|
3444
|
+
v || d(), b || c(v), r?.(v);
|
|
3445
|
+
}, [y, d, b, r]);
|
|
3446
|
+
return /* @__PURE__ */ a(Te.Provider, { value: { isOpen: y, toggle: x }, children: /* @__PURE__ */ a(
|
|
3447
|
+
"div",
|
|
3448
|
+
{
|
|
3449
|
+
ref: s,
|
|
3450
|
+
"data-slot": "tool-fallback-root",
|
|
3451
|
+
"data-state": y ? "open" : "closed",
|
|
3452
|
+
className: p(
|
|
3453
|
+
"aui-tool-fallback-root group/tool-fallback-root w-full cursor-pointer select-none nx-glass py-3",
|
|
3454
|
+
e
|
|
3455
|
+
),
|
|
3456
|
+
onClick: x,
|
|
3457
|
+
style: {
|
|
3458
|
+
"--animation-duration": `${Ye}ms`
|
|
3459
|
+
},
|
|
3460
|
+
...l,
|
|
3461
|
+
children: n
|
|
3462
|
+
}
|
|
3463
|
+
) });
|
|
3464
|
+
}
|
|
3465
|
+
const Te = kt({
|
|
3466
|
+
isOpen: !1,
|
|
3467
|
+
toggle: () => {
|
|
3468
|
+
}
|
|
3469
|
+
}), Dr = () => /* @__PURE__ */ h("span", { className: "aui-tool-throbber relative flex size-4 shrink-0 items-center justify-center", children: [
|
|
3470
|
+
/* @__PURE__ */ a("span", { className: "absolute size-2 rounded-full bg-primary/80 animate-ping" }),
|
|
3471
|
+
/* @__PURE__ */ a("span", { className: "relative size-2 rounded-full bg-primary" })
|
|
3472
|
+
] }), Xe = ({ color: e }) => /* @__PURE__ */ a("span", { className: p("size-2 rounded-full shrink-0", e) }), Vr = {
|
|
3473
|
+
running: Dr,
|
|
3474
|
+
complete: () => /* @__PURE__ */ a(Xe, { color: "bg-success" }),
|
|
3475
|
+
incomplete: () => /* @__PURE__ */ a(Xe, { color: "bg-danger" })
|
|
3476
|
+
};
|
|
3477
|
+
function Ur({
|
|
3478
|
+
toolName: e,
|
|
3479
|
+
argsText: t,
|
|
3480
|
+
status: r,
|
|
3481
|
+
className: o,
|
|
3482
|
+
...n
|
|
3483
|
+
}) {
|
|
3484
|
+
const { isOpen: l } = ot(Te), s = r?.type ?? "complete", i = s === "running", c = r?.type === "incomplete" && r.reason === "cancelled", d = Vr[s], b = Fr(e, t);
|
|
3485
|
+
return /* @__PURE__ */ h(
|
|
3486
|
+
"button",
|
|
3487
|
+
{
|
|
3488
|
+
type: "button",
|
|
3489
|
+
"data-slot": "tool-fallback-trigger",
|
|
3490
|
+
"data-state": l ? "open" : "closed",
|
|
3491
|
+
className: p(
|
|
3492
|
+
"aui-tool-fallback-trigger group/trigger flex w-full cursor-pointer items-center gap-2 px-4 text-sm transition-colors",
|
|
3493
|
+
o
|
|
3494
|
+
),
|
|
3495
|
+
...n,
|
|
3496
|
+
children: [
|
|
3497
|
+
/* @__PURE__ */ a(
|
|
3498
|
+
d,
|
|
3499
|
+
{
|
|
3500
|
+
"data-slot": "tool-fallback-trigger-icon",
|
|
3501
|
+
className: p(
|
|
3502
|
+
"aui-tool-fallback-trigger-icon size-4 shrink-0",
|
|
3503
|
+
c && "text-default-400"
|
|
3504
|
+
)
|
|
3505
|
+
}
|
|
3506
|
+
),
|
|
3507
|
+
/* @__PURE__ */ a(
|
|
3508
|
+
"span",
|
|
3509
|
+
{
|
|
3510
|
+
"data-slot": "tool-fallback-trigger-label",
|
|
3511
|
+
className: p(
|
|
3512
|
+
"aui-tool-fallback-trigger-label grow text-left leading-none",
|
|
3513
|
+
c && "text-default-400 line-through",
|
|
3514
|
+
i && "tool-pulse motion-reduce:animate-none"
|
|
3515
|
+
),
|
|
3516
|
+
children: b
|
|
3517
|
+
}
|
|
3518
|
+
),
|
|
3519
|
+
/* @__PURE__ */ a(
|
|
3520
|
+
Rt,
|
|
3521
|
+
{
|
|
3522
|
+
"data-slot": "tool-fallback-trigger-chevron",
|
|
3523
|
+
className: p(
|
|
3524
|
+
"aui-tool-fallback-trigger-chevron size-4 shrink-0 text-default-400",
|
|
3525
|
+
"transition-transform duration-200 ease-out",
|
|
3526
|
+
l ? "rotate-0" : "-rotate-90"
|
|
3527
|
+
)
|
|
3528
|
+
}
|
|
3529
|
+
)
|
|
3530
|
+
]
|
|
3531
|
+
}
|
|
3532
|
+
);
|
|
3533
|
+
}
|
|
3534
|
+
function qr({
|
|
3535
|
+
className: e,
|
|
3536
|
+
children: t
|
|
3537
|
+
}) {
|
|
3538
|
+
const { isOpen: r } = ot(Te);
|
|
3539
|
+
return /* @__PURE__ */ a(Ie, { initial: !1, children: r && /* @__PURE__ */ a(
|
|
3540
|
+
we.div,
|
|
3541
|
+
{
|
|
3542
|
+
"data-slot": "tool-fallback-content",
|
|
3543
|
+
"data-state": "open",
|
|
3544
|
+
initial: { height: 0, opacity: 0 },
|
|
3545
|
+
animate: { height: "auto", opacity: 1 },
|
|
3546
|
+
exit: { height: 0, opacity: 0 },
|
|
3547
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
3548
|
+
className: p(
|
|
3549
|
+
"aui-tool-fallback-content overflow-hidden text-sm outline-none",
|
|
3550
|
+
e
|
|
3551
|
+
),
|
|
3552
|
+
children: /* @__PURE__ */ a("div", { className: "mt-3 flex flex-col gap-2 border-t border-default-200/50 pt-2", children: t })
|
|
3553
|
+
}
|
|
3554
|
+
) });
|
|
3555
|
+
}
|
|
3556
|
+
function Hr(e) {
|
|
3557
|
+
try {
|
|
3558
|
+
const t = JSON.parse(e);
|
|
3559
|
+
if (t && typeof t == "object" && !Array.isArray(t)) return t;
|
|
3560
|
+
} catch {
|
|
3561
|
+
}
|
|
3562
|
+
return null;
|
|
3563
|
+
}
|
|
3564
|
+
function Jr(e) {
|
|
3565
|
+
return typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : JSON.stringify(e, null, 2);
|
|
3566
|
+
}
|
|
3567
|
+
function Ce({ text: e }) {
|
|
3568
|
+
const [t, r] = A(!1);
|
|
3569
|
+
return /* @__PURE__ */ a(
|
|
3570
|
+
"button",
|
|
3571
|
+
{
|
|
3572
|
+
type: "button",
|
|
3573
|
+
onClick: (o) => {
|
|
3574
|
+
o.stopPropagation(), navigator.clipboard.writeText(e).then(() => {
|
|
3575
|
+
r(!0), setTimeout(() => r(!1), 2e3);
|
|
3576
|
+
});
|
|
3577
|
+
},
|
|
3578
|
+
className: "shrink-0 rounded-md p-1 text-default-400 transition-colors hover:bg-default-200/40 hover:text-default-600",
|
|
3579
|
+
"aria-label": "Copy",
|
|
3580
|
+
children: t ? /* @__PURE__ */ a(Tt, { className: "size-3 text-success" }) : /* @__PURE__ */ a($t, { className: "size-3" })
|
|
3581
|
+
}
|
|
3582
|
+
);
|
|
3583
|
+
}
|
|
3584
|
+
function Kr({
|
|
3585
|
+
argsText: e,
|
|
3586
|
+
className: t,
|
|
3587
|
+
...r
|
|
3588
|
+
}) {
|
|
3589
|
+
if (!e) return null;
|
|
3590
|
+
const o = Hr(e);
|
|
3591
|
+
if (o) {
|
|
3592
|
+
const n = Object.entries(o);
|
|
3593
|
+
return /* @__PURE__ */ h(
|
|
3594
|
+
"div",
|
|
3595
|
+
{
|
|
3596
|
+
"data-slot": "tool-fallback-args",
|
|
3597
|
+
className: p("aui-tool-fallback-args px-4", t),
|
|
3598
|
+
...r,
|
|
3599
|
+
children: [
|
|
3600
|
+
/* @__PURE__ */ h("div", { className: "mb-1 flex items-center justify-between", children: [
|
|
3601
|
+
/* @__PURE__ */ a("p", { className: "text-xs font-medium text-default-400", children: "Request" }),
|
|
3602
|
+
/* @__PURE__ */ a(Ce, { text: e })
|
|
3603
|
+
] }),
|
|
3604
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col gap-1", children: n.map(([l, s]) => /* @__PURE__ */ h("div", { className: "flex gap-2 text-xs", children: [
|
|
3605
|
+
/* @__PURE__ */ a("span", { className: "shrink-0 text-default-400 font-mono", children: l }),
|
|
3606
|
+
/* @__PURE__ */ a("pre", { className: "whitespace-pre-wrap break-all text-default-600 font-mono", children: Jr(s) })
|
|
3607
|
+
] }, l)) })
|
|
3608
|
+
]
|
|
3609
|
+
}
|
|
3610
|
+
);
|
|
3611
|
+
}
|
|
3612
|
+
return /* @__PURE__ */ h(
|
|
3613
|
+
"div",
|
|
3614
|
+
{
|
|
3615
|
+
"data-slot": "tool-fallback-args",
|
|
3616
|
+
className: p("aui-tool-fallback-args px-4", t),
|
|
3617
|
+
...r,
|
|
3618
|
+
children: [
|
|
3619
|
+
/* @__PURE__ */ h("div", { className: "mb-1 flex items-center justify-between", children: [
|
|
3620
|
+
/* @__PURE__ */ a("p", { className: "text-xs font-medium text-default-400", children: "Request" }),
|
|
3621
|
+
/* @__PURE__ */ a(Ce, { text: e })
|
|
3622
|
+
] }),
|
|
3623
|
+
/* @__PURE__ */ a("pre", { className: "aui-tool-fallback-args-value whitespace-pre-wrap text-xs text-default-500 font-mono", children: e })
|
|
3624
|
+
]
|
|
3625
|
+
}
|
|
3626
|
+
);
|
|
3627
|
+
}
|
|
3628
|
+
const Yr = /(?:^#{1,6}\s|^\s*[-*]\s|\*\*|__|\[.+\]\(.+\)|^```)/m;
|
|
3629
|
+
function Xr(e) {
|
|
3630
|
+
const t = e.trim();
|
|
3631
|
+
if (t.startsWith("{") && t.endsWith("}") || t.startsWith("[") && t.endsWith("]"))
|
|
3632
|
+
try {
|
|
3633
|
+
return JSON.parse(t), "json";
|
|
3634
|
+
} catch {
|
|
3635
|
+
}
|
|
3636
|
+
return Yr.test(t) ? "markdown" : "plain";
|
|
3637
|
+
}
|
|
3638
|
+
const Ze = 20;
|
|
3639
|
+
function Zr(e, t) {
|
|
3640
|
+
const r = e.split(`
|
|
3641
|
+
`);
|
|
3642
|
+
return r.length <= t ? { truncated: e, isTruncated: !1 } : { truncated: r.slice(0, t).join(`
|
|
3643
|
+
`), isTruncated: !0 };
|
|
3644
|
+
}
|
|
3645
|
+
function Qr({ text: e }) {
|
|
3646
|
+
const [t, r] = A(!1), [o, n] = A(null), l = Q(null), s = Xr(e), i = s === "json" ? JSON.stringify(JSON.parse(e.trim()), null, 2) : e, { isTruncated: c } = Zr(i, Ze), d = R((v) => {
|
|
3647
|
+
if (l.current = v, v && o === null) {
|
|
3648
|
+
const w = v.style, _ = {
|
|
3649
|
+
display: w.display,
|
|
3650
|
+
webkitLineClamp: w.webkitLineClamp,
|
|
3651
|
+
webkitBoxOrient: w.webkitBoxOrient,
|
|
3652
|
+
overflow: w.overflow
|
|
3653
|
+
};
|
|
3654
|
+
w.display = "-webkit-box", w.webkitLineClamp = String(Ze), w.webkitBoxOrient = "vertical", w.overflow = "hidden", n(v.offsetHeight), w.display = _.display, w.webkitLineClamp = _.webkitLineClamp, w.webkitBoxOrient = _.webkitBoxOrient, w.overflow = _.overflow;
|
|
3655
|
+
}
|
|
3656
|
+
}, []), b = c && !t ? { maskImage: "linear-gradient(to bottom, black 70%, transparent 100%)", WebkitMaskImage: "linear-gradient(to bottom, black 70%, transparent 100%)" } : void 0, y = s === "markdown" ? /* @__PURE__ */ a("div", { className: "text-xs [&_.aui-md-p]:my-1 [&_.aui-md-p]:text-xs", children: /* @__PURE__ */ a(Pr, { text: i }) }) : /* @__PURE__ */ a("pre", { className: "whitespace-pre-wrap text-xs text-default-600 font-mono", children: i }), x = c ? t ? "auto" : o ?? "auto" : "auto";
|
|
3657
|
+
return /* @__PURE__ */ h("div", { children: [
|
|
3658
|
+
/* @__PURE__ */ a(
|
|
3659
|
+
we.div,
|
|
3660
|
+
{
|
|
3661
|
+
initial: !1,
|
|
3662
|
+
animate: { height: x },
|
|
3663
|
+
transition: { duration: 0.3, ease: [0.25, 0.1, 0.25, 1] },
|
|
3664
|
+
className: "overflow-hidden",
|
|
3665
|
+
style: b,
|
|
3666
|
+
children: /* @__PURE__ */ a("div", { ref: d, children: y })
|
|
3667
|
+
}
|
|
3668
|
+
),
|
|
3669
|
+
c && /* @__PURE__ */ a(
|
|
3670
|
+
we.button,
|
|
3671
|
+
{
|
|
3672
|
+
type: "button",
|
|
3673
|
+
onClick: (v) => {
|
|
3674
|
+
v.stopPropagation(), r(!t);
|
|
3675
|
+
},
|
|
3676
|
+
className: "mt-1.5 text-xs text-primary hover:text-primary/80 font-medium",
|
|
3677
|
+
whileTap: { scale: 0.97 },
|
|
3678
|
+
children: t ? "Show less" : "Show more"
|
|
3679
|
+
}
|
|
3680
|
+
)
|
|
3681
|
+
] });
|
|
3682
|
+
}
|
|
3683
|
+
function eo({
|
|
3684
|
+
result: e,
|
|
3685
|
+
className: t,
|
|
3686
|
+
...r
|
|
3687
|
+
}) {
|
|
3688
|
+
if (e === void 0) return null;
|
|
3689
|
+
const o = typeof e == "string" ? e : JSON.stringify(e, null, 2);
|
|
3690
|
+
return /* @__PURE__ */ h(
|
|
3691
|
+
"div",
|
|
3692
|
+
{
|
|
3693
|
+
"data-slot": "tool-fallback-result",
|
|
3694
|
+
className: p(
|
|
3695
|
+
"aui-tool-fallback-result border-t border-dashed border-default-200/50 px-4 pt-2",
|
|
3696
|
+
t
|
|
3697
|
+
),
|
|
3698
|
+
...r,
|
|
3699
|
+
children: [
|
|
3700
|
+
/* @__PURE__ */ h("div", { className: "mb-1 flex items-center justify-between", children: [
|
|
3701
|
+
/* @__PURE__ */ a("p", { className: "aui-tool-fallback-result-header text-xs font-medium text-default-400", children: "Result" }),
|
|
3702
|
+
/* @__PURE__ */ a(Ce, { text: o })
|
|
3703
|
+
] }),
|
|
3704
|
+
/* @__PURE__ */ a(Qr, { text: o })
|
|
3705
|
+
]
|
|
3706
|
+
}
|
|
3707
|
+
);
|
|
3708
|
+
}
|
|
3709
|
+
function to({
|
|
3710
|
+
status: e,
|
|
3711
|
+
className: t,
|
|
3712
|
+
...r
|
|
3713
|
+
}) {
|
|
3714
|
+
if (e?.type !== "incomplete") return null;
|
|
3715
|
+
const o = e.error, n = o ? typeof o == "string" ? o : JSON.stringify(o) : null;
|
|
3716
|
+
if (!n) return null;
|
|
3717
|
+
const s = e.reason === "cancelled" ? "Cancelled reason:" : "Error:";
|
|
3718
|
+
return /* @__PURE__ */ h(
|
|
3719
|
+
"div",
|
|
3720
|
+
{
|
|
3721
|
+
"data-slot": "tool-fallback-error",
|
|
3722
|
+
className: p("aui-tool-fallback-error px-4", t),
|
|
3723
|
+
...r,
|
|
3724
|
+
children: [
|
|
3725
|
+
/* @__PURE__ */ a("p", { className: "aui-tool-fallback-error-header font-semibold text-default-500", children: s }),
|
|
3726
|
+
/* @__PURE__ */ a("p", { className: "aui-tool-fallback-error-reason text-default-500", children: n })
|
|
3727
|
+
]
|
|
3728
|
+
}
|
|
3729
|
+
);
|
|
3730
|
+
}
|
|
3731
|
+
const ro = ({
|
|
3732
|
+
toolName: e,
|
|
3733
|
+
argsText: t,
|
|
3734
|
+
result: r,
|
|
3735
|
+
status: o
|
|
3736
|
+
}) => {
|
|
3737
|
+
const n = o?.type === "incomplete" && o.reason === "cancelled";
|
|
3738
|
+
return /* @__PURE__ */ h(
|
|
3739
|
+
Gr,
|
|
3740
|
+
{
|
|
3741
|
+
className: p(n && "border-default-200/20 bg-default-50/20"),
|
|
3742
|
+
children: [
|
|
3743
|
+
/* @__PURE__ */ a(Ur, { toolName: e, argsText: t, status: o }),
|
|
3744
|
+
/* @__PURE__ */ h(qr, { children: [
|
|
3745
|
+
/* @__PURE__ */ a(to, { status: o }),
|
|
3746
|
+
/* @__PURE__ */ a(
|
|
3747
|
+
Kr,
|
|
3748
|
+
{
|
|
3749
|
+
argsText: t,
|
|
3750
|
+
className: p(n && "opacity-60")
|
|
3751
|
+
}
|
|
3752
|
+
),
|
|
3753
|
+
!n && /* @__PURE__ */ a(eo, { result: r })
|
|
3754
|
+
] })
|
|
3755
|
+
]
|
|
3756
|
+
}
|
|
3757
|
+
);
|
|
3758
|
+
}, Ro = rt(ro), xt = yt(({ children: e, tooltip: t, side: r = "bottom", className: o, variant: n, ...l }, s) => /* @__PURE__ */ a(ze, { content: t, placement: r ?? "bottom", children: /* @__PURE__ */ h(
|
|
3759
|
+
Se,
|
|
3760
|
+
{
|
|
3761
|
+
variant: n === "default" ? "solid" : n === "outline" ? "bordered" : n === "destructive" ? "solid" : "light",
|
|
3762
|
+
color: n === "default" ? "primary" : n === "destructive" ? "danger" : "default",
|
|
3763
|
+
isIconOnly: !0,
|
|
3764
|
+
size: "sm",
|
|
3765
|
+
...l,
|
|
3766
|
+
className: p("aui-button-icon size-6 min-w-6 p-1", o),
|
|
3767
|
+
ref: s,
|
|
3768
|
+
children: [
|
|
3769
|
+
e,
|
|
3770
|
+
/* @__PURE__ */ a("span", { className: "aui-sr-only sr-only", children: t })
|
|
3771
|
+
]
|
|
3772
|
+
}
|
|
3773
|
+
) }));
|
|
3774
|
+
xt.displayName = "TooltipIconButton";
|
|
3775
|
+
const To = ({
|
|
3776
|
+
onSend: e,
|
|
3777
|
+
onCancel: t,
|
|
3778
|
+
isStreaming: r,
|
|
3779
|
+
disabled: o,
|
|
3780
|
+
placeholder: n = "Send a message...",
|
|
3781
|
+
leftSlot: l
|
|
3782
|
+
}) => {
|
|
3783
|
+
const [s, i] = A(""), c = Q(null), d = R(() => {
|
|
3784
|
+
const x = s.trim();
|
|
3785
|
+
!x || r || (e(x), i(""), c.current && (c.current.style.height = "auto"));
|
|
3786
|
+
}, [s, r, e]), b = R(
|
|
3787
|
+
(x) => {
|
|
3788
|
+
x.key === "Enter" && !x.shiftKey && (x.preventDefault(), d());
|
|
3789
|
+
},
|
|
3790
|
+
[d]
|
|
3791
|
+
), y = R(() => {
|
|
3792
|
+
const x = c.current;
|
|
3793
|
+
x && (x.style.height = "auto", x.style.height = `${x.scrollHeight}px`);
|
|
3794
|
+
}, []);
|
|
3795
|
+
return /* @__PURE__ */ h("div", { className: "aui-composer-root relative flex w-full flex-col rounded-xl border border-default-200 dark:border-default-200/50 bg-default-100 dark:bg-default-100/80 backdrop-blur-2xl px-1 pt-2 outline-none transition-shadow has-[textarea:focus-visible]:border-primary/40 has-[textarea:focus-visible]:ring-2 has-[textarea:focus-visible]:ring-primary/20", children: [
|
|
3796
|
+
/* @__PURE__ */ a(
|
|
3797
|
+
"textarea",
|
|
3798
|
+
{
|
|
3799
|
+
ref: c,
|
|
3800
|
+
value: s,
|
|
3801
|
+
onChange: (x) => i(x.target.value),
|
|
3802
|
+
onKeyDown: b,
|
|
3803
|
+
onInput: y,
|
|
3804
|
+
placeholder: n,
|
|
3805
|
+
disabled: o,
|
|
3806
|
+
className: "aui-composer-input mb-1 max-h-32 min-h-14 w-full resize-none bg-transparent px-4 pt-2 pb-3 text-sm text-foreground outline-none placeholder:text-default-400 focus-visible:ring-0",
|
|
3807
|
+
rows: 1,
|
|
3808
|
+
autoFocus: !0,
|
|
3809
|
+
"aria-label": "Message input"
|
|
3810
|
+
}
|
|
3811
|
+
),
|
|
3812
|
+
/* @__PURE__ */ h("div", { className: "aui-composer-action-wrapper relative mx-2 mb-2 flex items-center justify-between", children: [
|
|
3813
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: l }),
|
|
3814
|
+
r ? /* @__PURE__ */ a(
|
|
3815
|
+
Se,
|
|
3816
|
+
{
|
|
3817
|
+
color: "primary",
|
|
3818
|
+
variant: "solid",
|
|
3819
|
+
isIconOnly: !0,
|
|
3820
|
+
size: "sm",
|
|
3821
|
+
className: "aui-composer-cancel size-8 min-w-8 rounded-full",
|
|
3822
|
+
"aria-label": "Stop generating",
|
|
3823
|
+
onPress: t,
|
|
3824
|
+
children: /* @__PURE__ */ a(At, { className: "aui-composer-cancel-icon size-3 fill-current" })
|
|
3825
|
+
}
|
|
3826
|
+
) : /* @__PURE__ */ a(
|
|
3827
|
+
xt,
|
|
3828
|
+
{
|
|
3829
|
+
tooltip: "Send message",
|
|
3830
|
+
side: "bottom",
|
|
3831
|
+
variant: "default",
|
|
3832
|
+
className: "aui-composer-send size-8 min-w-8 rounded-full",
|
|
3833
|
+
"aria-label": "Send message",
|
|
3834
|
+
onPress: d,
|
|
3835
|
+
isDisabled: !s.trim() || o,
|
|
3836
|
+
children: /* @__PURE__ */ a(Mt, { className: "aui-composer-send-icon size-4" })
|
|
3837
|
+
}
|
|
3838
|
+
)
|
|
3839
|
+
] })
|
|
2946
3840
|
] });
|
|
3841
|
+
};
|
|
3842
|
+
function oo(e) {
|
|
3843
|
+
const t = /* @__PURE__ */ new Map(), r = [];
|
|
3844
|
+
for (const n of e)
|
|
3845
|
+
t.set(n.id, { span: n, children: [], depth: 0 });
|
|
3846
|
+
for (const n of e) {
|
|
3847
|
+
const l = t.get(n.id);
|
|
3848
|
+
if (n.parentId && t.has(n.parentId)) {
|
|
3849
|
+
const s = t.get(n.parentId);
|
|
3850
|
+
l.depth = s.depth + 1, s.children.push(l);
|
|
3851
|
+
} else
|
|
3852
|
+
r.push(l);
|
|
3853
|
+
}
|
|
3854
|
+
function o(n) {
|
|
3855
|
+
n.children.sort((l, s) => l.span.startMs - s.span.startMs), n.children.forEach(o);
|
|
3856
|
+
}
|
|
3857
|
+
return r.sort((n, l) => n.span.startMs - l.span.startMs), r.forEach(o), r;
|
|
3858
|
+
}
|
|
3859
|
+
function no(e) {
|
|
3860
|
+
const t = [];
|
|
3861
|
+
function r(o) {
|
|
3862
|
+
t.push(o), o.children.forEach(r);
|
|
3863
|
+
}
|
|
3864
|
+
return e.forEach(r), t;
|
|
3865
|
+
}
|
|
3866
|
+
function Qe(e) {
|
|
3867
|
+
return e === "turn" || e.startsWith("round:") ? "bg-transparent" : e === "setup" ? "bg-slate-400/60 dark:bg-slate-500/50" : e === "fetch_settings" ? "bg-slate-400 dark:bg-slate-500" : e === "build_tool_executor" ? "bg-slate-400/80 dark:bg-slate-500/70" : e === "fetch_mcp_tools" ? "bg-amber-400 dark:bg-amber-500" : e === "system_message" ? "bg-violet-400/60 dark:bg-violet-500/50" : e.startsWith("provider:") ? "bg-violet-400 dark:bg-violet-500" : e === "llm_call" ? "bg-blue-400 dark:bg-blue-500" : e === "tool_execution" ? "bg-transparent" : e.startsWith("tool:") ? "bg-emerald-400 dark:bg-emerald-500" : "bg-default-400/40";
|
|
3868
|
+
}
|
|
3869
|
+
function so(e) {
|
|
3870
|
+
return e === "turn" ? "border border-default-200/50 rounded-sm" : e.startsWith("round:") ? "border border-default-200/20 rounded-sm" : e === "tool_execution" ? "border border-dashed border-emerald-400/40 dark:border-emerald-500/30 rounded-sm" : "";
|
|
3871
|
+
}
|
|
3872
|
+
function q(e) {
|
|
3873
|
+
return e < 1 ? `${(e * 1e3).toFixed(0)}us` : e < 1e3 ? `${e.toFixed(1)}ms` : `${(e / 1e3).toFixed(2)}s`;
|
|
2947
3874
|
}
|
|
2948
|
-
function
|
|
2949
|
-
return
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
3875
|
+
function ye(e) {
|
|
3876
|
+
return e.startsWith("provider:") ? e.slice(9) : e.startsWith("tool:") ? e.slice(5) : e.startsWith("round:") ? `Round ${e.slice(6)}` : e.replace(/_/g, " ");
|
|
3877
|
+
}
|
|
3878
|
+
function ao(e) {
|
|
3879
|
+
if (e <= 0) return [];
|
|
3880
|
+
const t = [10, 25, 50, 100, 250, 500, 1e3, 2500, 5e3, 1e4], o = e / 6, n = t.find((s) => s >= o) ?? t[t.length - 1], l = [];
|
|
3881
|
+
for (let s = n; s < e; s += n)
|
|
3882
|
+
l.push(s);
|
|
3883
|
+
return l;
|
|
3884
|
+
}
|
|
3885
|
+
function $o({ spans: e }) {
|
|
3886
|
+
const [t, r] = A(null), { rows: o, totalMs: n, gridlines: l } = vt(() => {
|
|
3887
|
+
const s = oo(e), i = no(s), c = i.find((y) => y.span.name === "turn"), d = c ? c.span.endMs : Math.max(...e.map((y) => y.endMs), 1);
|
|
3888
|
+
return {
|
|
3889
|
+
rows: i.filter((y) => y.span.name !== "turn"),
|
|
3890
|
+
totalMs: d,
|
|
3891
|
+
gridlines: ao(d)
|
|
3892
|
+
};
|
|
3893
|
+
}, [e]);
|
|
3894
|
+
return o.length === 0 ? null : /* @__PURE__ */ h("div", { className: "flex flex-col text-xs font-mono", children: [
|
|
3895
|
+
/* @__PURE__ */ h("div", { className: "flex items-center border-b border-default-200/50 pb-1 mb-1 text-default-500", children: [
|
|
3896
|
+
/* @__PURE__ */ a("div", { className: "w-40 shrink-0 px-1 font-semibold", children: "Span" }),
|
|
3897
|
+
/* @__PURE__ */ h("div", { className: "flex-1 relative h-4", children: [
|
|
3898
|
+
/* @__PURE__ */ a("span", { className: "absolute left-0", children: "0ms" }),
|
|
3899
|
+
l.map((s) => /* @__PURE__ */ a(
|
|
3900
|
+
"span",
|
|
3901
|
+
{
|
|
3902
|
+
className: "absolute -translate-x-1/2",
|
|
3903
|
+
style: { left: `${s / n * 100}%` },
|
|
3904
|
+
children: q(s)
|
|
3905
|
+
},
|
|
3906
|
+
s
|
|
3907
|
+
)),
|
|
3908
|
+
/* @__PURE__ */ a("span", { className: "absolute right-0", children: q(n) })
|
|
3909
|
+
] }),
|
|
3910
|
+
/* @__PURE__ */ a("div", { className: "w-20 shrink-0 px-1 text-right font-semibold", children: "Duration" })
|
|
3911
|
+
] }),
|
|
3912
|
+
/* @__PURE__ */ a("div", { className: "relative", children: o.map((s) => {
|
|
3913
|
+
const { span: i } = s, c = i.startMs / n * 100, d = Math.max(i.durationMs / n * 100, 0.3), b = i.name === "turn" || i.name.startsWith("round:") || i.name === "tool_execution" || i.name === "setup", y = t === i.id;
|
|
3914
|
+
return /* @__PURE__ */ h(
|
|
3915
|
+
"div",
|
|
3916
|
+
{
|
|
3917
|
+
className: p(
|
|
3918
|
+
"flex items-center h-6 group cursor-pointer",
|
|
3919
|
+
y ? "bg-primary/10" : "hover:bg-default-100/20"
|
|
3920
|
+
),
|
|
3921
|
+
onClick: () => r(y ? null : i.id),
|
|
3922
|
+
children: [
|
|
3923
|
+
/* @__PURE__ */ h(
|
|
3924
|
+
"div",
|
|
3925
|
+
{
|
|
3926
|
+
className: "w-40 shrink-0 px-1 truncate",
|
|
3927
|
+
style: { paddingLeft: `${s.depth * 12 + 4}px` },
|
|
3928
|
+
title: i.name,
|
|
3929
|
+
children: [
|
|
3930
|
+
/* @__PURE__ */ a(
|
|
3931
|
+
"span",
|
|
3932
|
+
{
|
|
3933
|
+
className: p(
|
|
3934
|
+
"inline-block w-2 h-2 rounded-full mr-1.5 shrink-0",
|
|
3935
|
+
Qe(i.name).replace("bg-transparent", "bg-default-200/50")
|
|
3936
|
+
)
|
|
3937
|
+
}
|
|
3938
|
+
),
|
|
3939
|
+
/* @__PURE__ */ a("span", { className: p(b && "text-default-500"), children: ye(i.name) })
|
|
3940
|
+
]
|
|
3941
|
+
}
|
|
3942
|
+
),
|
|
3943
|
+
/* @__PURE__ */ h("div", { className: "flex-1 relative h-4", children: [
|
|
3944
|
+
l.map((x) => /* @__PURE__ */ a(
|
|
3945
|
+
"div",
|
|
3946
|
+
{
|
|
3947
|
+
className: "absolute top-0 bottom-0 w-px bg-default-200/20",
|
|
3948
|
+
style: { left: `${x / n * 100}%` }
|
|
3949
|
+
},
|
|
3950
|
+
x
|
|
3951
|
+
)),
|
|
3952
|
+
/* @__PURE__ */ a(
|
|
3953
|
+
"div",
|
|
3954
|
+
{
|
|
3955
|
+
className: p(
|
|
3956
|
+
"absolute top-0.5 bottom-0.5 rounded-[2px] min-w-[2px]",
|
|
3957
|
+
Qe(i.name),
|
|
3958
|
+
so(i.name)
|
|
3959
|
+
),
|
|
3960
|
+
style: {
|
|
3961
|
+
left: `${c}%`,
|
|
3962
|
+
width: `${d}%`
|
|
3963
|
+
}
|
|
3964
|
+
}
|
|
3965
|
+
),
|
|
3966
|
+
i.markers?.map((x, v) => {
|
|
3967
|
+
const w = x.timeMs / n * 100;
|
|
3968
|
+
return /* @__PURE__ */ h(
|
|
3969
|
+
"div",
|
|
3970
|
+
{
|
|
3971
|
+
className: "absolute top-0 bottom-0 flex items-center group/marker z-10",
|
|
3972
|
+
style: { left: `${w}%` },
|
|
3973
|
+
children: [
|
|
3974
|
+
/* @__PURE__ */ a("div", { className: "w-2 h-2 rotate-45 bg-rose-500 dark:bg-rose-400 border border-rose-700 dark:border-rose-300 -translate-x-1 cursor-pointer" }),
|
|
3975
|
+
/* @__PURE__ */ a("div", { className: "absolute bottom-full left-1/2 -translate-x-1/2 mb-1 hidden group-hover/marker:block pointer-events-none", children: /* @__PURE__ */ h("div", { className: "whitespace-nowrap rounded bg-default-50/80 backdrop-blur-xl border border-default-200/50 px-1.5 py-0.5 text-[10px] text-foreground shadow-md", children: [
|
|
3976
|
+
x.label,
|
|
3977
|
+
" ",
|
|
3978
|
+
/* @__PURE__ */ a("span", { className: "text-default-500", children: q(x.timeMs) })
|
|
3979
|
+
] }) })
|
|
3980
|
+
]
|
|
3981
|
+
},
|
|
3982
|
+
`${i.id}-m-${v}`
|
|
3983
|
+
);
|
|
3984
|
+
})
|
|
3985
|
+
] }),
|
|
3986
|
+
/* @__PURE__ */ a("div", { className: "w-20 shrink-0 px-1 text-right tabular-nums text-default-500", children: q(i.durationMs) })
|
|
3987
|
+
]
|
|
3988
|
+
},
|
|
3989
|
+
i.id
|
|
3990
|
+
);
|
|
3991
|
+
}) }),
|
|
3992
|
+
/* @__PURE__ */ h("div", { className: "flex gap-3 mt-3 pt-2 border-t border-default-200/50 text-default-500 flex-wrap", children: [
|
|
3993
|
+
[
|
|
3994
|
+
{ label: "Setup", color: "bg-slate-400 dark:bg-slate-500" },
|
|
3995
|
+
{ label: "Network", color: "bg-amber-400 dark:bg-amber-500" },
|
|
3996
|
+
{ label: "System msg", color: "bg-violet-400 dark:bg-violet-500" },
|
|
3997
|
+
{ label: "LLM", color: "bg-blue-400 dark:bg-blue-500" },
|
|
3998
|
+
{ label: "Tool", color: "bg-emerald-400 dark:bg-emerald-500" }
|
|
3999
|
+
].map(({ label: s, color: i }) => /* @__PURE__ */ h("div", { className: "flex items-center gap-1", children: [
|
|
4000
|
+
/* @__PURE__ */ a("div", { className: p("w-2.5 h-2.5 rounded-[2px]", i) }),
|
|
4001
|
+
/* @__PURE__ */ a("span", { children: s })
|
|
4002
|
+
] }, s)),
|
|
4003
|
+
/* @__PURE__ */ h("div", { className: "flex items-center gap-1", children: [
|
|
4004
|
+
/* @__PURE__ */ a("div", { className: "w-2 h-2 rotate-45 bg-rose-500 dark:bg-rose-400" }),
|
|
4005
|
+
/* @__PURE__ */ a("span", { children: "Marker" })
|
|
4006
|
+
] })
|
|
4007
|
+
] }),
|
|
4008
|
+
t && (() => {
|
|
4009
|
+
const s = e.find((d) => d.id === t);
|
|
4010
|
+
if (!s) return null;
|
|
4011
|
+
const i = s.metadata && Object.keys(s.metadata).length > 0, c = s.markers && s.markers.length > 0;
|
|
4012
|
+
return !i && !c ? /* @__PURE__ */ h("div", { className: "mt-2 border-t border-default-200/50 pt-2 text-default-400 text-center", children: [
|
|
4013
|
+
"No metadata for ",
|
|
4014
|
+
ye(s.name)
|
|
4015
|
+
] }) : /* @__PURE__ */ h("div", { className: "mt-2 border-t border-default-200/50 pt-2 text-default-500 space-y-1", children: [
|
|
4016
|
+
/* @__PURE__ */ h("div", { className: "flex items-center justify-between mb-1", children: [
|
|
4017
|
+
/* @__PURE__ */ a("span", { className: "font-semibold text-foreground", children: ye(s.name) }),
|
|
4018
|
+
/* @__PURE__ */ a("span", { className: "tabular-nums", children: q(s.durationMs) })
|
|
4019
|
+
] }),
|
|
4020
|
+
i && /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-x-3 gap-y-0.5", children: Object.entries(s.metadata).map(([d, b]) => /* @__PURE__ */ h("span", { children: [
|
|
4021
|
+
/* @__PURE__ */ h("span", { className: "text-default-400", children: [
|
|
4022
|
+
d,
|
|
4023
|
+
":"
|
|
4024
|
+
] }),
|
|
4025
|
+
" ",
|
|
4026
|
+
/* @__PURE__ */ a("span", { className: "text-foreground", children: String(b) })
|
|
4027
|
+
] }, d)) }),
|
|
4028
|
+
c && /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-x-3 gap-y-0.5 pt-1", children: s.markers.map((d, b) => /* @__PURE__ */ h("span", { className: "inline-flex items-center gap-1", children: [
|
|
4029
|
+
/* @__PURE__ */ a("span", { className: "w-1.5 h-1.5 rotate-45 bg-rose-500 dark:bg-rose-400 inline-block" }),
|
|
4030
|
+
/* @__PURE__ */ a("span", { className: "text-foreground", children: d.label }),
|
|
4031
|
+
/* @__PURE__ */ a("span", { className: "tabular-nums", children: q(d.timeMs) })
|
|
4032
|
+
] }, b)) })
|
|
4033
|
+
] });
|
|
4034
|
+
})()
|
|
2954
4035
|
] });
|
|
2955
4036
|
}
|
|
2956
|
-
const
|
|
2957
|
-
function
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
4037
|
+
const me = 9, _e = 2, P = (me + _e) * 2, et = 2 * Math.PI * me;
|
|
4038
|
+
function tt(e) {
|
|
4039
|
+
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).toFixed(0)}k` : String(e);
|
|
4040
|
+
}
|
|
4041
|
+
function lo(e) {
|
|
4042
|
+
return e >= 1 ? `$${e.toFixed(2)}` : e >= 0.01 ? `$${e.toFixed(2)}` : e > 0 ? `$${e.toFixed(3)}` : "$0.00";
|
|
4043
|
+
}
|
|
4044
|
+
const Mo = ({
|
|
4045
|
+
contextTokens: e,
|
|
4046
|
+
contextWindow: t,
|
|
4047
|
+
totalCost: r
|
|
4048
|
+
}) => {
|
|
4049
|
+
if (t === 0) return null;
|
|
4050
|
+
const o = Math.min(
|
|
4051
|
+
100,
|
|
4052
|
+
e / t * 100
|
|
4053
|
+
), n = et * (1 - o / 100), l = o > 90 ? "stroke-danger" : o > 70 ? "stroke-amber-500" : "stroke-primary", s = `Context: ${Math.round(o)}% (${tt(e)} / ${tt(t)} tokens)`;
|
|
4054
|
+
return /* @__PURE__ */ a(ze, { content: s, placement: "top", className: "text-xs", children: /* @__PURE__ */ h("div", { className: "flex items-center gap-1.5 px-1", children: [
|
|
4055
|
+
/* @__PURE__ */ h(
|
|
4056
|
+
"svg",
|
|
4057
|
+
{
|
|
4058
|
+
width: P,
|
|
4059
|
+
height: P,
|
|
4060
|
+
viewBox: `0 0 ${P} ${P}`,
|
|
4061
|
+
className: "shrink-0 -rotate-90",
|
|
4062
|
+
children: [
|
|
4063
|
+
/* @__PURE__ */ a(
|
|
4064
|
+
"circle",
|
|
4065
|
+
{
|
|
4066
|
+
cx: P / 2,
|
|
4067
|
+
cy: P / 2,
|
|
4068
|
+
r: me,
|
|
4069
|
+
fill: "none",
|
|
4070
|
+
strokeWidth: _e,
|
|
4071
|
+
className: "stroke-default-300/20"
|
|
4072
|
+
}
|
|
4073
|
+
),
|
|
4074
|
+
/* @__PURE__ */ a(
|
|
4075
|
+
"circle",
|
|
4076
|
+
{
|
|
4077
|
+
cx: P / 2,
|
|
4078
|
+
cy: P / 2,
|
|
4079
|
+
r: me,
|
|
4080
|
+
fill: "none",
|
|
4081
|
+
strokeWidth: _e,
|
|
4082
|
+
strokeLinecap: "round",
|
|
4083
|
+
strokeDasharray: et,
|
|
4084
|
+
strokeDashoffset: n,
|
|
4085
|
+
className: p("transition-all duration-300", l)
|
|
4086
|
+
}
|
|
4087
|
+
)
|
|
4088
|
+
]
|
|
4089
|
+
}
|
|
4090
|
+
),
|
|
4091
|
+
/* @__PURE__ */ a("span", { className: "text-[10px] tabular-nums text-default-500", children: lo(r) })
|
|
4092
|
+
] }) });
|
|
4093
|
+
}, io = ({ tabs: e, activeTab: t, onTabChange: r, onClose: o, navHeader: n, navFooter: l, tabBadge: s, variant: i }) => /* @__PURE__ */ h("nav", { className: "w-[200px] shrink-0 nx-glass p-4 flex flex-col gap-1", children: [
|
|
4094
|
+
n,
|
|
4095
|
+
i === "modal" && o && !n && /* @__PURE__ */ h("div", { className: "flex items-center justify-between mb-3", children: [
|
|
4096
|
+
/* @__PURE__ */ a("h2", { className: "text-sm font-semibold text-foreground", children: "Settings" }),
|
|
4097
|
+
/* @__PURE__ */ a(
|
|
4098
|
+
"button",
|
|
4099
|
+
{
|
|
4100
|
+
onClick: o,
|
|
4101
|
+
className: "p-1 rounded hover:bg-default-200/40 transition-colors text-default-400 hover:text-default-900",
|
|
4102
|
+
children: /* @__PURE__ */ a(Et, { className: "size-4" })
|
|
4103
|
+
}
|
|
4104
|
+
)
|
|
4105
|
+
] }),
|
|
4106
|
+
e.map((c) => {
|
|
4107
|
+
const d = c.icon, b = t === c.id;
|
|
4108
|
+
return /* @__PURE__ */ h(
|
|
4109
|
+
"button",
|
|
4110
|
+
{
|
|
4111
|
+
onClick: () => r(c.id),
|
|
4112
|
+
className: p(
|
|
4113
|
+
"relative w-full flex items-center gap-3 px-3 py-2 rounded-xl text-sm text-left transition-colors duration-200",
|
|
4114
|
+
b ? "text-foreground font-medium" : "text-default-500 hover:text-foreground hover:bg-default-200/40"
|
|
4115
|
+
),
|
|
4116
|
+
children: [
|
|
4117
|
+
b && /* @__PURE__ */ a(
|
|
4118
|
+
de.div,
|
|
4119
|
+
{
|
|
4120
|
+
layoutId: "settings-nav",
|
|
4121
|
+
className: "absolute inset-0 rounded-xl bg-default-100",
|
|
4122
|
+
transition: { type: "spring", bounce: 0.15, duration: 0.4 }
|
|
4123
|
+
}
|
|
4124
|
+
),
|
|
4125
|
+
/* @__PURE__ */ h("span", { className: "relative flex items-center gap-3 w-full", children: [
|
|
4126
|
+
/* @__PURE__ */ a(d, { size: 15, strokeWidth: 1.5 }),
|
|
4127
|
+
/* @__PURE__ */ a("span", { className: "flex-1", children: c.label }),
|
|
4128
|
+
s?.(c.id)
|
|
4129
|
+
] })
|
|
4130
|
+
]
|
|
4131
|
+
},
|
|
4132
|
+
c.id
|
|
4133
|
+
);
|
|
4134
|
+
}),
|
|
4135
|
+
l && /* @__PURE__ */ a("div", { className: "mt-auto pt-2", children: l })
|
|
4136
|
+
] }), co = ({
|
|
4137
|
+
activeTab: e,
|
|
4138
|
+
children: t
|
|
4139
|
+
}) => /* @__PURE__ */ a("div", { className: "flex-1 min-h-0 nx-glass overflow-y-auto p-8", children: /* @__PURE__ */ a(Ie, { mode: "wait", children: /* @__PURE__ */ a(
|
|
4140
|
+
de.div,
|
|
4141
|
+
{
|
|
4142
|
+
initial: { opacity: 0, y: 8 },
|
|
4143
|
+
animate: { opacity: 1, y: 0 },
|
|
4144
|
+
exit: { opacity: 0, y: -8 },
|
|
4145
|
+
transition: { duration: 0.2, ease: "easeOut" },
|
|
4146
|
+
children: t
|
|
4147
|
+
},
|
|
4148
|
+
e
|
|
4149
|
+
) }) }), Ao = ({
|
|
4150
|
+
tabs: e,
|
|
4151
|
+
activeTab: t,
|
|
4152
|
+
onTabChange: r,
|
|
4153
|
+
children: o,
|
|
4154
|
+
variant: n = "panel",
|
|
4155
|
+
onClose: l,
|
|
4156
|
+
navHeader: s,
|
|
4157
|
+
navFooter: i,
|
|
4158
|
+
tabBadge: c,
|
|
4159
|
+
className: d
|
|
4160
|
+
}) => {
|
|
4161
|
+
const b = R(
|
|
4162
|
+
(v) => {
|
|
4163
|
+
n === "modal" && v.key === "Escape" && l?.();
|
|
4164
|
+
},
|
|
4165
|
+
[n, l]
|
|
4166
|
+
);
|
|
4167
|
+
ce(() => {
|
|
4168
|
+
if (n === "modal")
|
|
4169
|
+
return document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
|
|
4170
|
+
}, [n, b]);
|
|
4171
|
+
const y = /* @__PURE__ */ a(
|
|
4172
|
+
io,
|
|
4173
|
+
{
|
|
4174
|
+
tabs: e,
|
|
4175
|
+
activeTab: t,
|
|
4176
|
+
onTabChange: r,
|
|
4177
|
+
onClose: n === "modal" ? l : void 0,
|
|
4178
|
+
navHeader: s,
|
|
4179
|
+
navFooter: i,
|
|
4180
|
+
tabBadge: c,
|
|
4181
|
+
variant: n
|
|
4182
|
+
}
|
|
4183
|
+
), x = /* @__PURE__ */ a(co, { activeTab: t, children: o });
|
|
4184
|
+
return n === "panel" ? /* @__PURE__ */ a(Be, { features: Fe, children: /* @__PURE__ */ h("div", { className: p("flex h-full gap-3 p-3", d), children: [
|
|
4185
|
+
y,
|
|
4186
|
+
x
|
|
4187
|
+
] }) }) : /* @__PURE__ */ a(Be, { features: Fe, children: /* @__PURE__ */ a(Ie, { children: /* @__PURE__ */ h(
|
|
4188
|
+
de.div,
|
|
4189
|
+
{
|
|
4190
|
+
className: p("absolute inset-0 z-50 flex items-center justify-center", d),
|
|
4191
|
+
initial: { opacity: 0 },
|
|
4192
|
+
animate: { opacity: 1 },
|
|
4193
|
+
exit: { opacity: 0 },
|
|
4194
|
+
transition: { duration: 0.2 },
|
|
4195
|
+
children: [
|
|
4196
|
+
/* @__PURE__ */ a(
|
|
4197
|
+
"div",
|
|
4198
|
+
{
|
|
4199
|
+
className: "absolute inset-0 bg-black/30 dark:bg-black/40 backdrop-blur-sm",
|
|
4200
|
+
onClick: l
|
|
4201
|
+
}
|
|
4202
|
+
),
|
|
4203
|
+
/* @__PURE__ */ h(
|
|
4204
|
+
de.div,
|
|
4205
|
+
{
|
|
4206
|
+
className: "relative z-10 flex h-[85vh] w-[min(90vw,56rem)] gap-2 p-2",
|
|
4207
|
+
initial: { opacity: 0, scale: 0.96, y: 12 },
|
|
4208
|
+
animate: { opacity: 1, scale: 1, y: 0 },
|
|
4209
|
+
exit: { opacity: 0, scale: 0.96, y: 12 },
|
|
4210
|
+
transition: { duration: 0.25, ease: "easeOut" },
|
|
4211
|
+
children: [
|
|
4212
|
+
y,
|
|
4213
|
+
x
|
|
4214
|
+
]
|
|
4215
|
+
}
|
|
4216
|
+
)
|
|
4217
|
+
]
|
|
4218
|
+
}
|
|
4219
|
+
) }) });
|
|
4220
|
+
};
|
|
4221
|
+
function Eo() {
|
|
4222
|
+
const e = Q(null), t = Q(null), [r, o] = A(!0);
|
|
4223
|
+
ce(() => {
|
|
4224
|
+
const s = t.current;
|
|
4225
|
+
if (!s) return;
|
|
4226
|
+
const i = new IntersectionObserver(
|
|
4227
|
+
([c]) => o(c.isIntersecting),
|
|
4228
|
+
{ root: e.current, threshold: 0 }
|
|
4229
|
+
);
|
|
4230
|
+
return i.observe(s), () => i.disconnect();
|
|
4231
|
+
}, []);
|
|
4232
|
+
const n = R(() => {
|
|
4233
|
+
const s = e.current;
|
|
4234
|
+
s && s.scrollTo({ top: s.scrollHeight, behavior: "smooth" });
|
|
4235
|
+
}, []), l = R(() => {
|
|
4236
|
+
if (r) {
|
|
4237
|
+
const s = e.current;
|
|
4238
|
+
s && (s.scrollTop = s.scrollHeight);
|
|
4239
|
+
}
|
|
4240
|
+
}, [r]);
|
|
4241
|
+
return { containerRef: e, sentinelRef: t, isAtBottom: r, scrollToBottom: n, scrollToBottomIfNeeded: l };
|
|
4242
|
+
}
|
|
4243
|
+
const ve = 768;
|
|
4244
|
+
function Oo() {
|
|
4245
|
+
const [e, t] = L.useState(void 0);
|
|
4246
|
+
return L.useEffect(() => {
|
|
4247
|
+
const r = window.matchMedia(`(max-width: ${ve - 1}px)`), o = () => {
|
|
4248
|
+
t(window.innerWidth < ve);
|
|
2962
4249
|
};
|
|
2963
|
-
return
|
|
4250
|
+
return r.addEventListener("change", o), t(window.innerWidth < ve), () => r.removeEventListener("change", o);
|
|
2964
4251
|
}, []), !!e;
|
|
2965
4252
|
}
|
|
2966
4253
|
export {
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
4254
|
+
zo as CodeBlock,
|
|
4255
|
+
To as Composer,
|
|
4256
|
+
Mo as ContextRing,
|
|
4257
|
+
Io as EmptyState,
|
|
4258
|
+
Co as GradientBackground,
|
|
4259
|
+
Pr as MarkdownText,
|
|
4260
|
+
No as NexusProvider,
|
|
4261
|
+
_o as SearchBar,
|
|
4262
|
+
Ao as SettingsShell,
|
|
4263
|
+
So as StatusDot,
|
|
4264
|
+
Sr as Surface,
|
|
4265
|
+
$o as TimingWaterfall,
|
|
4266
|
+
jo as Toaster,
|
|
4267
|
+
Ro as ToolFallback,
|
|
4268
|
+
xt as TooltipIconButton,
|
|
4269
|
+
p as cn,
|
|
4270
|
+
Fr as formatToolDescription,
|
|
4271
|
+
Tr as remarkAbbreviations,
|
|
4272
|
+
Ir as remarkHighlight,
|
|
4273
|
+
Rr as remarkSubSuperscript,
|
|
4274
|
+
Bo as toast,
|
|
4275
|
+
Eo as useAutoScroll,
|
|
4276
|
+
Oo as useIsMobile,
|
|
4277
|
+
wo as useNexus,
|
|
4278
|
+
jr as useScrollLock
|
|
2979
4279
|
};
|