commerce-toolkit 0.0.13 → 0.0.15
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/components/banner/banner.d.ts +1 -1
- package/dist/components/banner/banner.d.ts.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1017 -643
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as i, jsxs as B, Fragment as Ut } from "react/jsx-runtime";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import _, { useState as ke, useEffect as et, createContext as ee, useMemo as te, use as oe, forwardRef as tt, createElement as Ce, useCallback as Ft } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
5
|
+
function Jr({ className: e, colorScheme: t = "light", items: o, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ i(pr, { colorScheme: t, items: o, children: /* @__PURE__ */ i(mr, { className: e, ...r, children: o.map((n) => /* @__PURE__ */ i(
|
|
7
|
+
gr,
|
|
8
8
|
{
|
|
9
9
|
content: n.content,
|
|
10
10
|
title: n.title,
|
|
11
11
|
value: n.value,
|
|
12
|
-
children: /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
12
|
+
children: /* @__PURE__ */ B(ur, { children: [
|
|
13
|
+
/* @__PURE__ */ i(br, {}),
|
|
14
|
+
/* @__PURE__ */ i(fr, {})
|
|
15
15
|
] })
|
|
16
16
|
},
|
|
17
17
|
n.value
|
|
18
18
|
)) }) });
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Re(e, t = []) {
|
|
21
21
|
let o = [];
|
|
22
22
|
function r(a, s) {
|
|
23
|
-
const
|
|
23
|
+
const l = f.createContext(s), c = o.length;
|
|
24
24
|
o = [...o, s];
|
|
25
|
-
const
|
|
26
|
-
const { scope:
|
|
27
|
-
return /* @__PURE__ */
|
|
25
|
+
const m = (h) => {
|
|
26
|
+
const { scope: N, children: k, ...A } = h, w = N?.[e]?.[c] || l, C = f.useMemo(() => A, Object.values(A));
|
|
27
|
+
return /* @__PURE__ */ i(w.Provider, { value: C, children: k });
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
function p(h,
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
29
|
+
m.displayName = a + "Provider";
|
|
30
|
+
function p(h, N) {
|
|
31
|
+
const k = N?.[e]?.[c] || l, A = f.useContext(k);
|
|
32
|
+
if (A) return A;
|
|
33
33
|
if (s !== void 0) return s;
|
|
34
34
|
throw new Error(`\`${h}\` must be used within \`${a}\``);
|
|
35
35
|
}
|
|
36
|
-
return [
|
|
36
|
+
return [m, p];
|
|
37
37
|
}
|
|
38
38
|
const n = () => {
|
|
39
|
-
const a = o.map((s) =>
|
|
40
|
-
return function(
|
|
41
|
-
const
|
|
42
|
-
return
|
|
43
|
-
() => ({ [`__scope${e}`]: { ...
|
|
44
|
-
[
|
|
39
|
+
const a = o.map((s) => f.createContext(s));
|
|
40
|
+
return function(l) {
|
|
41
|
+
const c = l?.[e] || a;
|
|
42
|
+
return f.useMemo(
|
|
43
|
+
() => ({ [`__scope${e}`]: { ...l, [e]: c } }),
|
|
44
|
+
[l, c]
|
|
45
45
|
);
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
return n.scopeName = e, [r,
|
|
48
|
+
return n.scopeName = e, [r, Wt(n, ...t)];
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Wt(...e) {
|
|
51
51
|
const t = e[0];
|
|
52
52
|
if (e.length === 1) return t;
|
|
53
53
|
const o = () => {
|
|
@@ -56,177 +56,177 @@ function $t(...e) {
|
|
|
56
56
|
scopeName: n.scopeName
|
|
57
57
|
}));
|
|
58
58
|
return function(a) {
|
|
59
|
-
const s = r.reduce((
|
|
60
|
-
const h =
|
|
61
|
-
return { ...
|
|
59
|
+
const s = r.reduce((l, { useScope: c, scopeName: m }) => {
|
|
60
|
+
const h = c(a)[`__scope${m}`];
|
|
61
|
+
return { ...l, ...h };
|
|
62
62
|
}, {});
|
|
63
|
-
return
|
|
63
|
+
return f.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
return o.scopeName = t.scopeName, o;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Ke(e, t) {
|
|
69
69
|
if (typeof e == "function")
|
|
70
70
|
return e(t);
|
|
71
71
|
e != null && (e.current = t);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function ot(...e) {
|
|
74
74
|
return (t) => {
|
|
75
75
|
let o = !1;
|
|
76
76
|
const r = e.map((n) => {
|
|
77
|
-
const a =
|
|
77
|
+
const a = Ke(n, t);
|
|
78
78
|
return !o && typeof a == "function" && (o = !0), a;
|
|
79
79
|
});
|
|
80
80
|
if (o)
|
|
81
81
|
return () => {
|
|
82
82
|
for (let n = 0; n < r.length; n++) {
|
|
83
83
|
const a = r[n];
|
|
84
|
-
typeof a == "function" ? a() :
|
|
84
|
+
typeof a == "function" ? a() : Ke(e[n], null);
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
89
|
+
function Y(...e) {
|
|
90
|
+
return f.useCallback(ot(...e), e);
|
|
91
91
|
}
|
|
92
92
|
// @__NO_SIDE_EFFECTS__
|
|
93
|
-
function
|
|
94
|
-
const t = /* @__PURE__ */
|
|
95
|
-
const { children: a, ...s } = r,
|
|
96
|
-
if (
|
|
97
|
-
const
|
|
98
|
-
return /* @__PURE__ */
|
|
93
|
+
function Ae(e) {
|
|
94
|
+
const t = /* @__PURE__ */ Ht(e), o = f.forwardRef((r, n) => {
|
|
95
|
+
const { children: a, ...s } = r, l = f.Children.toArray(a), c = l.find(Kt);
|
|
96
|
+
if (c) {
|
|
97
|
+
const m = c.props.children, p = l.map((h) => h === c ? f.Children.count(m) > 1 ? f.Children.only(null) : f.isValidElement(m) ? m.props.children : null : h);
|
|
98
|
+
return /* @__PURE__ */ i(t, { ...s, ref: n, children: f.isValidElement(m) ? f.cloneElement(m, void 0, p) : null });
|
|
99
99
|
}
|
|
100
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ i(t, { ...s, ref: n, children: a });
|
|
101
101
|
});
|
|
102
102
|
return o.displayName = `${e}.Slot`, o;
|
|
103
103
|
}
|
|
104
104
|
// @__NO_SIDE_EFFECTS__
|
|
105
|
-
function
|
|
106
|
-
const t =
|
|
105
|
+
function Ht(e) {
|
|
106
|
+
const t = f.forwardRef((o, r) => {
|
|
107
107
|
const { children: n, ...a } = o;
|
|
108
|
-
if (
|
|
109
|
-
const s =
|
|
110
|
-
return n.type !==
|
|
108
|
+
if (f.isValidElement(n)) {
|
|
109
|
+
const s = Xt(n), l = Zt(a, n.props);
|
|
110
|
+
return n.type !== f.Fragment && (l.ref = r ? ot(r, s) : s), f.cloneElement(n, l);
|
|
111
111
|
}
|
|
112
|
-
return
|
|
112
|
+
return f.Children.count(n) > 1 ? f.Children.only(null) : null;
|
|
113
113
|
});
|
|
114
114
|
return t.displayName = `${e}.SlotClone`, t;
|
|
115
115
|
}
|
|
116
|
-
var
|
|
117
|
-
function
|
|
118
|
-
return
|
|
116
|
+
var qt = Symbol("radix.slottable");
|
|
117
|
+
function Kt(e) {
|
|
118
|
+
return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === qt;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Zt(e, t) {
|
|
121
121
|
const o = { ...t };
|
|
122
122
|
for (const r in t) {
|
|
123
123
|
const n = e[r], a = t[r];
|
|
124
|
-
/^on[A-Z]/.test(r) ? n && a ? o[r] = (...
|
|
125
|
-
const
|
|
126
|
-
return n(...
|
|
124
|
+
/^on[A-Z]/.test(r) ? n && a ? o[r] = (...l) => {
|
|
125
|
+
const c = a(...l);
|
|
126
|
+
return n(...l), c;
|
|
127
127
|
} : n && (o[r] = n) : r === "style" ? o[r] = { ...n, ...a } : r === "className" && (o[r] = [n, a].filter(Boolean).join(" "));
|
|
128
128
|
}
|
|
129
129
|
return { ...e, ...o };
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Xt(e) {
|
|
132
132
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
133
133
|
return o ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
const t = e + "CollectionProvider", [o, r] =
|
|
135
|
+
function Jt(e) {
|
|
136
|
+
const t = e + "CollectionProvider", [o, r] = Re(t), [n, a] = o(
|
|
137
137
|
t,
|
|
138
138
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
139
|
-
), s = (
|
|
140
|
-
const { scope:
|
|
141
|
-
return /* @__PURE__ */
|
|
139
|
+
), s = (w) => {
|
|
140
|
+
const { scope: C, children: P } = w, y = _.useRef(null), I = _.useRef(/* @__PURE__ */ new Map()).current;
|
|
141
|
+
return /* @__PURE__ */ i(n, { scope: C, itemMap: I, collectionRef: y, children: P });
|
|
142
142
|
};
|
|
143
143
|
s.displayName = t;
|
|
144
|
-
const
|
|
145
|
-
(
|
|
146
|
-
const { scope:
|
|
147
|
-
return /* @__PURE__ */ c
|
|
144
|
+
const l = e + "CollectionSlot", c = /* @__PURE__ */ Ae(l), m = _.forwardRef(
|
|
145
|
+
(w, C) => {
|
|
146
|
+
const { scope: P, children: y } = w, I = a(l, P), S = Y(C, I.collectionRef);
|
|
147
|
+
return /* @__PURE__ */ i(c, { ref: S, children: y });
|
|
148
148
|
}
|
|
149
149
|
);
|
|
150
|
-
|
|
151
|
-
const p = e + "CollectionItemSlot", h = "data-radix-collection-item",
|
|
152
|
-
(
|
|
153
|
-
const { scope:
|
|
154
|
-
return
|
|
150
|
+
m.displayName = l;
|
|
151
|
+
const p = e + "CollectionItemSlot", h = "data-radix-collection-item", N = /* @__PURE__ */ Ae(p), k = _.forwardRef(
|
|
152
|
+
(w, C) => {
|
|
153
|
+
const { scope: P, children: y, ...I } = w, S = _.useRef(null), T = Y(C, S), E = a(p, P);
|
|
154
|
+
return _.useEffect(() => (E.itemMap.set(S, { ref: S, ...I }), () => void E.itemMap.delete(S))), /* @__PURE__ */ i(N, { [h]: "", ref: T, children: y });
|
|
155
155
|
}
|
|
156
156
|
);
|
|
157
|
-
|
|
158
|
-
function
|
|
159
|
-
const
|
|
160
|
-
return
|
|
161
|
-
const
|
|
162
|
-
if (!
|
|
163
|
-
const I = Array.from(
|
|
164
|
-
return Array.from(
|
|
165
|
-
(E,
|
|
157
|
+
k.displayName = p;
|
|
158
|
+
function A(w) {
|
|
159
|
+
const C = a(e + "CollectionConsumer", w);
|
|
160
|
+
return _.useCallback(() => {
|
|
161
|
+
const y = C.collectionRef.current;
|
|
162
|
+
if (!y) return [];
|
|
163
|
+
const I = Array.from(y.querySelectorAll(`[${h}]`));
|
|
164
|
+
return Array.from(C.itemMap.values()).sort(
|
|
165
|
+
(E, D) => I.indexOf(E.ref.current) - I.indexOf(D.ref.current)
|
|
166
166
|
);
|
|
167
|
-
}, [
|
|
167
|
+
}, [C.collectionRef, C.itemMap]);
|
|
168
168
|
}
|
|
169
169
|
return [
|
|
170
|
-
{ Provider: s, Slot:
|
|
171
|
-
|
|
170
|
+
{ Provider: s, Slot: m, ItemSlot: k },
|
|
171
|
+
A,
|
|
172
172
|
r
|
|
173
173
|
];
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function rt(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
|
|
176
176
|
return function(n) {
|
|
177
177
|
if (e?.(n), o === !1 || !n.defaultPrevented)
|
|
178
178
|
return t?.(n);
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
var
|
|
182
|
-
},
|
|
183
|
-
function
|
|
181
|
+
var Q = globalThis?.document ? f.useLayoutEffect : () => {
|
|
182
|
+
}, Yt = f[" useInsertionEffect ".trim().toString()] || Q;
|
|
183
|
+
function Se({
|
|
184
184
|
prop: e,
|
|
185
185
|
defaultProp: t,
|
|
186
186
|
onChange: o = () => {
|
|
187
187
|
},
|
|
188
188
|
caller: r
|
|
189
189
|
}) {
|
|
190
|
-
const [n, a, s] =
|
|
190
|
+
const [n, a, s] = Qt({
|
|
191
191
|
defaultProp: t,
|
|
192
192
|
onChange: o
|
|
193
|
-
}),
|
|
193
|
+
}), l = e !== void 0, c = l ? e : n;
|
|
194
194
|
{
|
|
195
|
-
const p =
|
|
196
|
-
|
|
195
|
+
const p = f.useRef(e !== void 0);
|
|
196
|
+
f.useEffect(() => {
|
|
197
197
|
const h = p.current;
|
|
198
|
-
h !==
|
|
199
|
-
`${r} is changing from ${h ? "controlled" : "uncontrolled"} to ${
|
|
200
|
-
), p.current =
|
|
201
|
-
}, [
|
|
198
|
+
h !== l && console.warn(
|
|
199
|
+
`${r} is changing from ${h ? "controlled" : "uncontrolled"} to ${l ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
200
|
+
), p.current = l;
|
|
201
|
+
}, [l, r]);
|
|
202
202
|
}
|
|
203
|
-
const
|
|
203
|
+
const m = f.useCallback(
|
|
204
204
|
(p) => {
|
|
205
|
-
if (
|
|
206
|
-
const h =
|
|
205
|
+
if (l) {
|
|
206
|
+
const h = eo(p) ? p(e) : p;
|
|
207
207
|
h !== e && s.current?.(h);
|
|
208
208
|
} else
|
|
209
209
|
a(p);
|
|
210
210
|
},
|
|
211
|
-
[
|
|
211
|
+
[l, e, a, s]
|
|
212
212
|
);
|
|
213
|
-
return [
|
|
213
|
+
return [c, m];
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Qt({
|
|
216
216
|
defaultProp: e,
|
|
217
217
|
onChange: t
|
|
218
218
|
}) {
|
|
219
|
-
const [o, r] =
|
|
220
|
-
return
|
|
219
|
+
const [o, r] = f.useState(e), n = f.useRef(o), a = f.useRef(t);
|
|
220
|
+
return Yt(() => {
|
|
221
221
|
a.current = t;
|
|
222
|
-
}, [t]),
|
|
222
|
+
}, [t]), f.useEffect(() => {
|
|
223
223
|
n.current !== o && (a.current?.(o), n.current = o);
|
|
224
224
|
}, [o, n]), [o, r, a];
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function eo(e) {
|
|
227
227
|
return typeof e == "function";
|
|
228
228
|
}
|
|
229
|
-
var
|
|
229
|
+
var to = [
|
|
230
230
|
"a",
|
|
231
231
|
"button",
|
|
232
232
|
"div",
|
|
@@ -244,23 +244,23 @@ var qt = [
|
|
|
244
244
|
"span",
|
|
245
245
|
"svg",
|
|
246
246
|
"ul"
|
|
247
|
-
],
|
|
248
|
-
const o = /* @__PURE__ */
|
|
249
|
-
const { asChild: s, ...
|
|
250
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c
|
|
247
|
+
], re = to.reduce((e, t) => {
|
|
248
|
+
const o = /* @__PURE__ */ Ae(`Primitive.${t}`), r = f.forwardRef((n, a) => {
|
|
249
|
+
const { asChild: s, ...l } = n, c = s ? o : t;
|
|
250
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ i(c, { ...l, ref: a });
|
|
251
251
|
});
|
|
252
252
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
253
253
|
}, {});
|
|
254
|
-
function
|
|
255
|
-
return
|
|
254
|
+
function oo(e, t) {
|
|
255
|
+
return f.useReducer((o, r) => t[o][r] ?? o, e);
|
|
256
256
|
}
|
|
257
|
-
var
|
|
258
|
-
const { present: t, children: o } = e, r =
|
|
259
|
-
return typeof o == "function" || r.isPresent ?
|
|
257
|
+
var nt = (e) => {
|
|
258
|
+
const { present: t, children: o } = e, r = ro(t), n = typeof o == "function" ? o({ present: r.isPresent }) : f.Children.only(o), a = Y(r.ref, no(n));
|
|
259
|
+
return typeof o == "function" || r.isPresent ? f.cloneElement(n, { ref: a }) : null;
|
|
260
260
|
};
|
|
261
|
-
|
|
262
|
-
function
|
|
263
|
-
const [t, o] =
|
|
261
|
+
nt.displayName = "Presence";
|
|
262
|
+
function ro(e) {
|
|
263
|
+
const [t, o] = f.useState(), r = f.useRef(null), n = f.useRef(e), a = f.useRef("none"), s = e ? "mounted" : "unmounted", [l, c] = oo(s, {
|
|
264
264
|
mounted: {
|
|
265
265
|
UNMOUNT: "unmounted",
|
|
266
266
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -273,57 +273,57 @@ function Zt(e) {
|
|
|
273
273
|
MOUNT: "mounted"
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
-
return
|
|
277
|
-
const
|
|
278
|
-
a.current =
|
|
279
|
-
}, [
|
|
280
|
-
const
|
|
276
|
+
return f.useEffect(() => {
|
|
277
|
+
const m = de(r.current);
|
|
278
|
+
a.current = l === "mounted" ? m : "none";
|
|
279
|
+
}, [l]), Q(() => {
|
|
280
|
+
const m = r.current, p = n.current;
|
|
281
281
|
if (p !== e) {
|
|
282
|
-
const
|
|
283
|
-
e ?
|
|
282
|
+
const N = a.current, k = de(m);
|
|
283
|
+
e ? c("MOUNT") : k === "none" || m?.display === "none" ? c("UNMOUNT") : c(p && N !== k ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
|
|
284
284
|
}
|
|
285
|
-
}, [e,
|
|
285
|
+
}, [e, c]), Q(() => {
|
|
286
286
|
if (t) {
|
|
287
|
-
let
|
|
288
|
-
const p = t.ownerDocument.defaultView ?? window, h = (
|
|
289
|
-
const
|
|
290
|
-
if (
|
|
291
|
-
const
|
|
292
|
-
t.style.animationFillMode = "forwards",
|
|
293
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode =
|
|
287
|
+
let m;
|
|
288
|
+
const p = t.ownerDocument.defaultView ?? window, h = (k) => {
|
|
289
|
+
const w = de(r.current).includes(CSS.escape(k.animationName));
|
|
290
|
+
if (k.target === t && w && (c("ANIMATION_END"), !n.current)) {
|
|
291
|
+
const C = t.style.animationFillMode;
|
|
292
|
+
t.style.animationFillMode = "forwards", m = p.setTimeout(() => {
|
|
293
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = C);
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
-
},
|
|
297
|
-
|
|
296
|
+
}, N = (k) => {
|
|
297
|
+
k.target === t && (a.current = de(r.current));
|
|
298
298
|
};
|
|
299
|
-
return t.addEventListener("animationstart",
|
|
300
|
-
p.clearTimeout(
|
|
299
|
+
return t.addEventListener("animationstart", N), t.addEventListener("animationcancel", h), t.addEventListener("animationend", h), () => {
|
|
300
|
+
p.clearTimeout(m), t.removeEventListener("animationstart", N), t.removeEventListener("animationcancel", h), t.removeEventListener("animationend", h);
|
|
301
301
|
};
|
|
302
302
|
} else
|
|
303
|
-
|
|
304
|
-
}, [t,
|
|
305
|
-
isPresent: ["mounted", "unmountSuspended"].includes(
|
|
306
|
-
ref:
|
|
307
|
-
r.current =
|
|
303
|
+
c("ANIMATION_END");
|
|
304
|
+
}, [t, c]), {
|
|
305
|
+
isPresent: ["mounted", "unmountSuspended"].includes(l),
|
|
306
|
+
ref: f.useCallback((m) => {
|
|
307
|
+
r.current = m ? getComputedStyle(m) : null, o(m);
|
|
308
308
|
}, [])
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function de(e) {
|
|
312
312
|
return e?.animationName || "none";
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function no(e) {
|
|
315
315
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
316
316
|
return o ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
317
317
|
}
|
|
318
|
-
var
|
|
319
|
-
}),
|
|
320
|
-
function
|
|
321
|
-
const [t, o] =
|
|
322
|
-
return
|
|
323
|
-
o((r) => r ?? String(
|
|
318
|
+
var ao = f[" useId ".trim().toString()] || (() => {
|
|
319
|
+
}), so = 0;
|
|
320
|
+
function at(e) {
|
|
321
|
+
const [t, o] = f.useState(ao());
|
|
322
|
+
return Q(() => {
|
|
323
|
+
o((r) => r ?? String(so++));
|
|
324
324
|
}, [e]), t ? `radix-${t}` : "";
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var pe = "Collapsible", [io, st] = Re(pe), [lo, Me] = io(pe), it = f.forwardRef(
|
|
327
327
|
(e, t) => {
|
|
328
328
|
const {
|
|
329
329
|
__scopeCollapsible: o,
|
|
@@ -331,27 +331,27 @@ var ce = "Collapsible", [Qt, ot] = Ie(ce), [eo, _e] = Qt(ce), rt = m.forwardRef(
|
|
|
331
331
|
defaultOpen: n,
|
|
332
332
|
disabled: a,
|
|
333
333
|
onOpenChange: s,
|
|
334
|
-
...
|
|
335
|
-
} = e, [
|
|
334
|
+
...l
|
|
335
|
+
} = e, [c, m] = Se({
|
|
336
336
|
prop: r,
|
|
337
337
|
defaultProp: n ?? !1,
|
|
338
338
|
onChange: s,
|
|
339
|
-
caller:
|
|
339
|
+
caller: pe
|
|
340
340
|
});
|
|
341
|
-
return /* @__PURE__ */
|
|
342
|
-
|
|
341
|
+
return /* @__PURE__ */ i(
|
|
342
|
+
lo,
|
|
343
343
|
{
|
|
344
344
|
scope: o,
|
|
345
345
|
disabled: a,
|
|
346
|
-
contentId:
|
|
347
|
-
open:
|
|
348
|
-
onOpenToggle:
|
|
349
|
-
children: /* @__PURE__ */
|
|
350
|
-
|
|
346
|
+
contentId: at(),
|
|
347
|
+
open: c,
|
|
348
|
+
onOpenToggle: f.useCallback(() => m((p) => !p), [m]),
|
|
349
|
+
children: /* @__PURE__ */ i(
|
|
350
|
+
re.div,
|
|
351
351
|
{
|
|
352
|
-
"data-state":
|
|
352
|
+
"data-state": ze(c),
|
|
353
353
|
"data-disabled": a ? "" : void 0,
|
|
354
|
-
...
|
|
354
|
+
...l,
|
|
355
355
|
ref: t
|
|
356
356
|
}
|
|
357
357
|
)
|
|
@@ -359,89 +359,89 @@ var ce = "Collapsible", [Qt, ot] = Ie(ce), [eo, _e] = Qt(ce), rt = m.forwardRef(
|
|
|
359
359
|
);
|
|
360
360
|
}
|
|
361
361
|
);
|
|
362
|
-
|
|
363
|
-
var
|
|
362
|
+
it.displayName = pe;
|
|
363
|
+
var lt = "CollapsibleTrigger", ct = f.forwardRef(
|
|
364
364
|
(e, t) => {
|
|
365
|
-
const { __scopeCollapsible: o, ...r } = e, n =
|
|
366
|
-
return /* @__PURE__ */
|
|
367
|
-
|
|
365
|
+
const { __scopeCollapsible: o, ...r } = e, n = Me(lt, o);
|
|
366
|
+
return /* @__PURE__ */ i(
|
|
367
|
+
re.button,
|
|
368
368
|
{
|
|
369
369
|
type: "button",
|
|
370
370
|
"aria-controls": n.contentId,
|
|
371
371
|
"aria-expanded": n.open || !1,
|
|
372
|
-
"data-state":
|
|
372
|
+
"data-state": ze(n.open),
|
|
373
373
|
"data-disabled": n.disabled ? "" : void 0,
|
|
374
374
|
disabled: n.disabled,
|
|
375
375
|
...r,
|
|
376
376
|
ref: t,
|
|
377
|
-
onClick:
|
|
377
|
+
onClick: rt(e.onClick, n.onOpenToggle)
|
|
378
378
|
}
|
|
379
379
|
);
|
|
380
380
|
}
|
|
381
381
|
);
|
|
382
|
-
|
|
383
|
-
var
|
|
382
|
+
ct.displayName = lt;
|
|
383
|
+
var Ee = "CollapsibleContent", dt = f.forwardRef(
|
|
384
384
|
(e, t) => {
|
|
385
|
-
const { forceMount: o, ...r } = e, n =
|
|
386
|
-
return /* @__PURE__ */
|
|
385
|
+
const { forceMount: o, ...r } = e, n = Me(Ee, e.__scopeCollapsible);
|
|
386
|
+
return /* @__PURE__ */ i(nt, { present: o || n.open, children: ({ present: a }) => /* @__PURE__ */ i(co, { ...r, ref: t, present: a }) });
|
|
387
387
|
}
|
|
388
388
|
);
|
|
389
|
-
|
|
390
|
-
var
|
|
391
|
-
const { __scopeCollapsible: o, present: r, children: n, ...a } = e, s =
|
|
392
|
-
return
|
|
393
|
-
const
|
|
394
|
-
return () => cancelAnimationFrame(
|
|
395
|
-
}, []),
|
|
396
|
-
const
|
|
397
|
-
if (
|
|
398
|
-
|
|
399
|
-
transitionDuration:
|
|
400
|
-
animationName:
|
|
401
|
-
},
|
|
402
|
-
const I =
|
|
403
|
-
h.current = I.height,
|
|
389
|
+
dt.displayName = Ee;
|
|
390
|
+
var co = f.forwardRef((e, t) => {
|
|
391
|
+
const { __scopeCollapsible: o, present: r, children: n, ...a } = e, s = Me(Ee, o), [l, c] = f.useState(r), m = f.useRef(null), p = Y(t, m), h = f.useRef(0), N = h.current, k = f.useRef(0), A = k.current, w = s.open || l, C = f.useRef(w), P = f.useRef(void 0);
|
|
392
|
+
return f.useEffect(() => {
|
|
393
|
+
const y = requestAnimationFrame(() => C.current = !1);
|
|
394
|
+
return () => cancelAnimationFrame(y);
|
|
395
|
+
}, []), Q(() => {
|
|
396
|
+
const y = m.current;
|
|
397
|
+
if (y) {
|
|
398
|
+
P.current = P.current || {
|
|
399
|
+
transitionDuration: y.style.transitionDuration,
|
|
400
|
+
animationName: y.style.animationName
|
|
401
|
+
}, y.style.transitionDuration = "0s", y.style.animationName = "none";
|
|
402
|
+
const I = y.getBoundingClientRect();
|
|
403
|
+
h.current = I.height, k.current = I.width, C.current || (y.style.transitionDuration = P.current.transitionDuration, y.style.animationName = P.current.animationName), c(r);
|
|
404
404
|
}
|
|
405
|
-
}, [s.open, r]), /* @__PURE__ */
|
|
406
|
-
|
|
405
|
+
}, [s.open, r]), /* @__PURE__ */ i(
|
|
406
|
+
re.div,
|
|
407
407
|
{
|
|
408
|
-
"data-state":
|
|
408
|
+
"data-state": ze(s.open),
|
|
409
409
|
"data-disabled": s.disabled ? "" : void 0,
|
|
410
410
|
id: s.contentId,
|
|
411
|
-
hidden: !
|
|
411
|
+
hidden: !w,
|
|
412
412
|
...a,
|
|
413
413
|
ref: p,
|
|
414
414
|
style: {
|
|
415
|
-
"--radix-collapsible-content-height":
|
|
416
|
-
"--radix-collapsible-content-width":
|
|
415
|
+
"--radix-collapsible-content-height": N ? `${N}px` : void 0,
|
|
416
|
+
"--radix-collapsible-content-width": A ? `${A}px` : void 0,
|
|
417
417
|
...e.style
|
|
418
418
|
},
|
|
419
|
-
children:
|
|
419
|
+
children: w && n
|
|
420
420
|
}
|
|
421
421
|
);
|
|
422
422
|
});
|
|
423
|
-
function
|
|
423
|
+
function ze(e) {
|
|
424
424
|
return e ? "open" : "closed";
|
|
425
425
|
}
|
|
426
|
-
var
|
|
427
|
-
function
|
|
428
|
-
const t =
|
|
426
|
+
var uo = it, mo = ct, fo = dt, po = f.createContext(void 0);
|
|
427
|
+
function go(e) {
|
|
428
|
+
const t = f.useContext(po);
|
|
429
429
|
return e || t || "ltr";
|
|
430
430
|
}
|
|
431
|
-
var L = "Accordion",
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
]),
|
|
431
|
+
var L = "Accordion", bo = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Te, ho, vo] = Jt(L), [ge] = Re(L, [
|
|
432
|
+
vo,
|
|
433
|
+
st
|
|
434
|
+
]), Oe = st(), ut = _.forwardRef(
|
|
435
435
|
(e, t) => {
|
|
436
436
|
const { type: o, ...r } = e, n = r, a = r;
|
|
437
|
-
return /* @__PURE__ */
|
|
437
|
+
return /* @__PURE__ */ i(Te.Provider, { scope: e.__scopeAccordion, children: o === "multiple" ? /* @__PURE__ */ i(ko, { ...a, ref: t }) : /* @__PURE__ */ i(wo, { ...n, ref: t }) });
|
|
438
438
|
}
|
|
439
439
|
);
|
|
440
|
-
|
|
441
|
-
var [
|
|
440
|
+
ut.displayName = L;
|
|
441
|
+
var [mt, xo] = ge(L), [ft, yo] = ge(
|
|
442
442
|
L,
|
|
443
443
|
{ collapsible: !1 }
|
|
444
|
-
),
|
|
444
|
+
), wo = _.forwardRef(
|
|
445
445
|
(e, t) => {
|
|
446
446
|
const {
|
|
447
447
|
value: o,
|
|
@@ -450,71 +450,71 @@ var [lt, uo] = de(L), [ct, fo] = de(
|
|
|
450
450
|
},
|
|
451
451
|
collapsible: a = !1,
|
|
452
452
|
...s
|
|
453
|
-
} = e, [
|
|
453
|
+
} = e, [l, c] = Se({
|
|
454
454
|
prop: o,
|
|
455
455
|
defaultProp: r ?? "",
|
|
456
456
|
onChange: n,
|
|
457
457
|
caller: L
|
|
458
458
|
});
|
|
459
|
-
return /* @__PURE__ */
|
|
460
|
-
|
|
459
|
+
return /* @__PURE__ */ i(
|
|
460
|
+
mt,
|
|
461
461
|
{
|
|
462
462
|
scope: e.__scopeAccordion,
|
|
463
|
-
value:
|
|
464
|
-
onItemOpen:
|
|
465
|
-
onItemClose:
|
|
466
|
-
children: /* @__PURE__ */
|
|
463
|
+
value: _.useMemo(() => l ? [l] : [], [l]),
|
|
464
|
+
onItemOpen: c,
|
|
465
|
+
onItemClose: _.useCallback(() => a && c(""), [a, c]),
|
|
466
|
+
children: /* @__PURE__ */ i(ft, { scope: e.__scopeAccordion, collapsible: a, children: /* @__PURE__ */ i(pt, { ...s, ref: t }) })
|
|
467
467
|
}
|
|
468
468
|
);
|
|
469
469
|
}
|
|
470
|
-
),
|
|
470
|
+
), ko = _.forwardRef((e, t) => {
|
|
471
471
|
const {
|
|
472
472
|
value: o,
|
|
473
473
|
defaultValue: r,
|
|
474
474
|
onValueChange: n = () => {
|
|
475
475
|
},
|
|
476
476
|
...a
|
|
477
|
-
} = e, [s,
|
|
477
|
+
} = e, [s, l] = Se({
|
|
478
478
|
prop: o,
|
|
479
479
|
defaultProp: r ?? [],
|
|
480
480
|
onChange: n,
|
|
481
481
|
caller: L
|
|
482
|
-
}),
|
|
483
|
-
(p) =>
|
|
484
|
-
[
|
|
485
|
-
),
|
|
486
|
-
(p) =>
|
|
487
|
-
[
|
|
482
|
+
}), c = _.useCallback(
|
|
483
|
+
(p) => l((h = []) => [...h, p]),
|
|
484
|
+
[l]
|
|
485
|
+
), m = _.useCallback(
|
|
486
|
+
(p) => l((h = []) => h.filter((N) => N !== p)),
|
|
487
|
+
[l]
|
|
488
488
|
);
|
|
489
|
-
return /* @__PURE__ */
|
|
490
|
-
|
|
489
|
+
return /* @__PURE__ */ i(
|
|
490
|
+
mt,
|
|
491
491
|
{
|
|
492
492
|
scope: e.__scopeAccordion,
|
|
493
493
|
value: s,
|
|
494
|
-
onItemOpen:
|
|
495
|
-
onItemClose:
|
|
496
|
-
children: /* @__PURE__ */
|
|
494
|
+
onItemOpen: c,
|
|
495
|
+
onItemClose: m,
|
|
496
|
+
children: /* @__PURE__ */ i(ft, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ i(pt, { ...a, ref: t }) })
|
|
497
497
|
}
|
|
498
498
|
);
|
|
499
|
-
}), [
|
|
499
|
+
}), [Co, be] = ge(L), pt = _.forwardRef(
|
|
500
500
|
(e, t) => {
|
|
501
|
-
const { __scopeAccordion: o, disabled: r, dir: n, orientation: a = "vertical", ...s } = e,
|
|
502
|
-
if (!
|
|
503
|
-
const
|
|
504
|
-
if (
|
|
505
|
-
|
|
506
|
-
let
|
|
507
|
-
const I = 0, S =
|
|
508
|
-
|
|
501
|
+
const { __scopeAccordion: o, disabled: r, dir: n, orientation: a = "vertical", ...s } = e, l = _.useRef(null), c = Y(l, t), m = ho(o), h = go(n) === "ltr", N = rt(e.onKeyDown, (k) => {
|
|
502
|
+
if (!bo.includes(k.key)) return;
|
|
503
|
+
const A = k.target, w = m().filter((b) => !b.ref.current?.disabled), C = w.findIndex((b) => b.ref.current === A), P = w.length;
|
|
504
|
+
if (C === -1) return;
|
|
505
|
+
k.preventDefault();
|
|
506
|
+
let y = C;
|
|
507
|
+
const I = 0, S = P - 1, T = () => {
|
|
508
|
+
y = C + 1, y > S && (y = I);
|
|
509
509
|
}, E = () => {
|
|
510
|
-
|
|
510
|
+
y = C - 1, y < I && (y = S);
|
|
511
511
|
};
|
|
512
|
-
switch (
|
|
512
|
+
switch (k.key) {
|
|
513
513
|
case "Home":
|
|
514
|
-
|
|
514
|
+
y = I;
|
|
515
515
|
break;
|
|
516
516
|
case "End":
|
|
517
|
-
|
|
517
|
+
y = S;
|
|
518
518
|
break;
|
|
519
519
|
case "ArrowRight":
|
|
520
520
|
a === "horizontal" && (h ? T() : E());
|
|
@@ -529,48 +529,48 @@ var [lt, uo] = de(L), [ct, fo] = de(
|
|
|
529
529
|
a === "vertical" && E();
|
|
530
530
|
break;
|
|
531
531
|
}
|
|
532
|
-
const
|
|
533
|
-
|
|
532
|
+
const D = y % P;
|
|
533
|
+
w[D].ref.current?.focus();
|
|
534
534
|
});
|
|
535
|
-
return /* @__PURE__ */
|
|
536
|
-
|
|
535
|
+
return /* @__PURE__ */ i(
|
|
536
|
+
Co,
|
|
537
537
|
{
|
|
538
538
|
scope: o,
|
|
539
539
|
disabled: r,
|
|
540
540
|
direction: n,
|
|
541
541
|
orientation: a,
|
|
542
|
-
children: /* @__PURE__ */
|
|
543
|
-
|
|
542
|
+
children: /* @__PURE__ */ i(Te.Slot, { scope: o, children: /* @__PURE__ */ i(
|
|
543
|
+
re.div,
|
|
544
544
|
{
|
|
545
545
|
...s,
|
|
546
546
|
"data-orientation": a,
|
|
547
|
-
ref:
|
|
548
|
-
onKeyDown: r ? void 0 :
|
|
547
|
+
ref: c,
|
|
548
|
+
onKeyDown: r ? void 0 : N
|
|
549
549
|
}
|
|
550
550
|
) })
|
|
551
551
|
}
|
|
552
552
|
);
|
|
553
553
|
}
|
|
554
|
-
),
|
|
554
|
+
), fe = "AccordionItem", [Ao, Be] = ge(fe), gt = _.forwardRef(
|
|
555
555
|
(e, t) => {
|
|
556
|
-
const { __scopeAccordion: o, value: r, ...n } = e, a =
|
|
557
|
-
return /* @__PURE__ */
|
|
558
|
-
|
|
556
|
+
const { __scopeAccordion: o, value: r, ...n } = e, a = be(fe, o), s = xo(fe, o), l = Oe(o), c = at(), m = r && s.value.includes(r) || !1, p = a.disabled || e.disabled;
|
|
557
|
+
return /* @__PURE__ */ i(
|
|
558
|
+
Ao,
|
|
559
559
|
{
|
|
560
560
|
scope: o,
|
|
561
|
-
open:
|
|
561
|
+
open: m,
|
|
562
562
|
disabled: p,
|
|
563
|
-
triggerId:
|
|
564
|
-
children: /* @__PURE__ */
|
|
565
|
-
|
|
563
|
+
triggerId: c,
|
|
564
|
+
children: /* @__PURE__ */ i(
|
|
565
|
+
uo,
|
|
566
566
|
{
|
|
567
567
|
"data-orientation": a.orientation,
|
|
568
|
-
"data-state":
|
|
569
|
-
...
|
|
568
|
+
"data-state": wt(m),
|
|
569
|
+
...l,
|
|
570
570
|
...n,
|
|
571
571
|
ref: t,
|
|
572
572
|
disabled: p,
|
|
573
|
-
open:
|
|
573
|
+
open: m,
|
|
574
574
|
onOpenChange: (h) => {
|
|
575
575
|
h ? s.onItemOpen(r) : s.onItemClose(r);
|
|
576
576
|
}
|
|
@@ -580,15 +580,15 @@ var [lt, uo] = de(L), [ct, fo] = de(
|
|
|
580
580
|
);
|
|
581
581
|
}
|
|
582
582
|
);
|
|
583
|
-
|
|
584
|
-
var
|
|
583
|
+
gt.displayName = fe;
|
|
584
|
+
var bt = "AccordionHeader", ht = _.forwardRef(
|
|
585
585
|
(e, t) => {
|
|
586
|
-
const { __scopeAccordion: o, ...r } = e, n =
|
|
587
|
-
return /* @__PURE__ */
|
|
588
|
-
|
|
586
|
+
const { __scopeAccordion: o, ...r } = e, n = be(L, o), a = Be(bt, o);
|
|
587
|
+
return /* @__PURE__ */ i(
|
|
588
|
+
re.h3,
|
|
589
589
|
{
|
|
590
590
|
"data-orientation": n.orientation,
|
|
591
|
-
"data-state":
|
|
591
|
+
"data-state": wt(a.open),
|
|
592
592
|
"data-disabled": a.disabled ? "" : void 0,
|
|
593
593
|
...r,
|
|
594
594
|
ref: t
|
|
@@ -596,29 +596,29 @@ var ft = "AccordionHeader", mt = N.forwardRef(
|
|
|
596
596
|
);
|
|
597
597
|
}
|
|
598
598
|
);
|
|
599
|
-
|
|
600
|
-
var
|
|
599
|
+
ht.displayName = bt;
|
|
600
|
+
var Ne = "AccordionTrigger", vt = _.forwardRef(
|
|
601
601
|
(e, t) => {
|
|
602
|
-
const { __scopeAccordion: o, ...r } = e, n =
|
|
603
|
-
return /* @__PURE__ */
|
|
604
|
-
|
|
602
|
+
const { __scopeAccordion: o, ...r } = e, n = be(L, o), a = Be(Ne, o), s = yo(Ne, o), l = Oe(o);
|
|
603
|
+
return /* @__PURE__ */ i(Te.ItemSlot, { scope: o, children: /* @__PURE__ */ i(
|
|
604
|
+
mo,
|
|
605
605
|
{
|
|
606
606
|
"aria-disabled": a.open && !s.collapsible || void 0,
|
|
607
607
|
"data-orientation": n.orientation,
|
|
608
608
|
id: a.triggerId,
|
|
609
|
-
...
|
|
609
|
+
...l,
|
|
610
610
|
...r,
|
|
611
611
|
ref: t
|
|
612
612
|
}
|
|
613
613
|
) });
|
|
614
614
|
}
|
|
615
615
|
);
|
|
616
|
-
|
|
617
|
-
var
|
|
616
|
+
vt.displayName = Ne;
|
|
617
|
+
var xt = "AccordionContent", yt = _.forwardRef(
|
|
618
618
|
(e, t) => {
|
|
619
|
-
const { __scopeAccordion: o, ...r } = e, n =
|
|
620
|
-
return /* @__PURE__ */
|
|
621
|
-
|
|
619
|
+
const { __scopeAccordion: o, ...r } = e, n = be(L, o), a = Be(xt, o), s = Oe(o);
|
|
620
|
+
return /* @__PURE__ */ i(
|
|
621
|
+
fo,
|
|
622
622
|
{
|
|
623
623
|
role: "region",
|
|
624
624
|
"aria-labelledby": a.triggerId,
|
|
@@ -635,58 +635,58 @@ var gt = "AccordionContent", bt = N.forwardRef(
|
|
|
635
635
|
);
|
|
636
636
|
}
|
|
637
637
|
);
|
|
638
|
-
|
|
639
|
-
function
|
|
638
|
+
yt.displayName = xt;
|
|
639
|
+
function wt(e) {
|
|
640
640
|
return e ? "open" : "closed";
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
function
|
|
642
|
+
var No = ut, Po = gt, Io = ht, _o = vt, Ro = yt;
|
|
643
|
+
function kt(e) {
|
|
644
644
|
var t, o, r = "";
|
|
645
645
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
646
646
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
647
647
|
var n = e.length;
|
|
648
|
-
for (t = 0; t < n; t++) e[t] && (o =
|
|
648
|
+
for (t = 0; t < n; t++) e[t] && (o = kt(e[t])) && (r && (r += " "), r += o);
|
|
649
649
|
} else for (o in e) e[o] && (r && (r += " "), r += o);
|
|
650
650
|
return r;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t =
|
|
652
|
+
function So() {
|
|
653
|
+
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = kt(e)) && (r && (r += " "), r += t);
|
|
654
654
|
return r;
|
|
655
655
|
}
|
|
656
|
-
const
|
|
657
|
-
const t =
|
|
656
|
+
const Le = "-", Mo = (e) => {
|
|
657
|
+
const t = zo(e), {
|
|
658
658
|
conflictingClassGroups: o,
|
|
659
659
|
conflictingClassGroupModifiers: r
|
|
660
660
|
} = e;
|
|
661
661
|
return {
|
|
662
662
|
getClassGroupId: (s) => {
|
|
663
|
-
const
|
|
664
|
-
return
|
|
663
|
+
const l = s.split(Le);
|
|
664
|
+
return l[0] === "" && l.length !== 1 && l.shift(), Ct(l, t) || Eo(s);
|
|
665
665
|
},
|
|
666
|
-
getConflictingClassGroupIds: (s,
|
|
667
|
-
const
|
|
668
|
-
return
|
|
666
|
+
getConflictingClassGroupIds: (s, l) => {
|
|
667
|
+
const c = o[s] || [];
|
|
668
|
+
return l && r[s] ? [...c, ...r[s]] : c;
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
|
-
},
|
|
671
|
+
}, Ct = (e, t) => {
|
|
672
672
|
if (e.length === 0)
|
|
673
673
|
return t.classGroupId;
|
|
674
|
-
const o = e[0], r = t.nextPart.get(o), n = r ?
|
|
674
|
+
const o = e[0], r = t.nextPart.get(o), n = r ? Ct(e.slice(1), r) : void 0;
|
|
675
675
|
if (n)
|
|
676
676
|
return n;
|
|
677
677
|
if (t.validators.length === 0)
|
|
678
678
|
return;
|
|
679
|
-
const a = e.join(
|
|
679
|
+
const a = e.join(Le);
|
|
680
680
|
return t.validators.find(({
|
|
681
681
|
validator: s
|
|
682
682
|
}) => s(a))?.classGroupId;
|
|
683
|
-
},
|
|
684
|
-
if (
|
|
685
|
-
const t =
|
|
683
|
+
}, Ze = /^\[(.+)\]$/, Eo = (e) => {
|
|
684
|
+
if (Ze.test(e)) {
|
|
685
|
+
const t = Ze.exec(e)[1], o = t?.substring(0, t.indexOf(":"));
|
|
686
686
|
if (o)
|
|
687
687
|
return "arbitrary.." + o;
|
|
688
688
|
}
|
|
689
|
-
},
|
|
689
|
+
}, zo = (e) => {
|
|
690
690
|
const {
|
|
691
691
|
theme: t,
|
|
692
692
|
classGroups: o
|
|
@@ -695,18 +695,18 @@ const Te = "-", Co = (e) => {
|
|
|
695
695
|
validators: []
|
|
696
696
|
};
|
|
697
697
|
for (const n in o)
|
|
698
|
-
|
|
698
|
+
Pe(o[n], r, n, t);
|
|
699
699
|
return r;
|
|
700
|
-
},
|
|
700
|
+
}, Pe = (e, t, o, r) => {
|
|
701
701
|
e.forEach((n) => {
|
|
702
702
|
if (typeof n == "string") {
|
|
703
|
-
const a = n === "" ? t :
|
|
703
|
+
const a = n === "" ? t : Xe(t, n);
|
|
704
704
|
a.classGroupId = o;
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
707
707
|
if (typeof n == "function") {
|
|
708
|
-
if (
|
|
709
|
-
|
|
708
|
+
if (To(n)) {
|
|
709
|
+
Pe(n(r), t, o, r);
|
|
710
710
|
return;
|
|
711
711
|
}
|
|
712
712
|
t.validators.push({
|
|
@@ -716,18 +716,18 @@ const Te = "-", Co = (e) => {
|
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
718
|
Object.entries(n).forEach(([a, s]) => {
|
|
719
|
-
|
|
719
|
+
Pe(s, Xe(t, a), o, r);
|
|
720
720
|
});
|
|
721
721
|
});
|
|
722
|
-
},
|
|
722
|
+
}, Xe = (e, t) => {
|
|
723
723
|
let o = e;
|
|
724
|
-
return t.split(
|
|
724
|
+
return t.split(Le).forEach((r) => {
|
|
725
725
|
o.nextPart.has(r) || o.nextPart.set(r, {
|
|
726
726
|
nextPart: /* @__PURE__ */ new Map(),
|
|
727
727
|
validators: []
|
|
728
728
|
}), o = o.nextPart.get(r);
|
|
729
729
|
}), o;
|
|
730
|
-
},
|
|
730
|
+
}, To = (e) => e.isThemeGetter, Oo = (e) => {
|
|
731
731
|
if (e < 1)
|
|
732
732
|
return {
|
|
733
733
|
get: () => {
|
|
@@ -751,38 +751,38 @@ const Te = "-", Co = (e) => {
|
|
|
751
751
|
o.has(a) ? o.set(a, s) : n(a, s);
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
|
-
},
|
|
754
|
+
}, Ie = "!", _e = ":", Bo = _e.length, Lo = (e) => {
|
|
755
755
|
const {
|
|
756
756
|
prefix: t,
|
|
757
757
|
experimentalParseClassName: o
|
|
758
758
|
} = e;
|
|
759
759
|
let r = (n) => {
|
|
760
760
|
const a = [];
|
|
761
|
-
let s = 0,
|
|
762
|
-
for (let
|
|
763
|
-
let
|
|
764
|
-
if (s === 0 &&
|
|
765
|
-
if (
|
|
766
|
-
a.push(n.slice(
|
|
761
|
+
let s = 0, l = 0, c = 0, m;
|
|
762
|
+
for (let A = 0; A < n.length; A++) {
|
|
763
|
+
let w = n[A];
|
|
764
|
+
if (s === 0 && l === 0) {
|
|
765
|
+
if (w === _e) {
|
|
766
|
+
a.push(n.slice(c, A)), c = A + Bo;
|
|
767
767
|
continue;
|
|
768
768
|
}
|
|
769
|
-
if (
|
|
770
|
-
|
|
769
|
+
if (w === "/") {
|
|
770
|
+
m = A;
|
|
771
771
|
continue;
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
|
-
|
|
774
|
+
w === "[" ? s++ : w === "]" ? s-- : w === "(" ? l++ : w === ")" && l--;
|
|
775
775
|
}
|
|
776
|
-
const p = a.length === 0 ? n : n.substring(
|
|
776
|
+
const p = a.length === 0 ? n : n.substring(c), h = Do(p), N = h !== p, k = m && m > c ? m - c : void 0;
|
|
777
777
|
return {
|
|
778
778
|
modifiers: a,
|
|
779
|
-
hasImportantModifier:
|
|
779
|
+
hasImportantModifier: N,
|
|
780
780
|
baseClassName: h,
|
|
781
|
-
maybePostfixModifierPosition:
|
|
781
|
+
maybePostfixModifierPosition: k
|
|
782
782
|
};
|
|
783
783
|
};
|
|
784
784
|
if (t) {
|
|
785
|
-
const n = t +
|
|
785
|
+
const n = t + _e, a = r;
|
|
786
786
|
r = (s) => s.startsWith(n) ? a(s.substring(n.length)) : {
|
|
787
787
|
isExternal: !0,
|
|
788
788
|
modifiers: [],
|
|
@@ -799,7 +799,7 @@ const Te = "-", Co = (e) => {
|
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
801
|
return r;
|
|
802
|
-
},
|
|
802
|
+
}, Do = (e) => e.endsWith(Ie) ? e.substring(0, e.length - 1) : e.startsWith(Ie) ? e.substring(1) : e, $o = (e) => {
|
|
803
803
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0]));
|
|
804
804
|
return (r) => {
|
|
805
805
|
if (r.length <= 1)
|
|
@@ -810,103 +810,103 @@ const Te = "-", Co = (e) => {
|
|
|
810
810
|
s[0] === "[" || t[s] ? (n.push(...a.sort(), s), a = []) : a.push(s);
|
|
811
811
|
}), n.push(...a.sort()), n;
|
|
812
812
|
};
|
|
813
|
-
},
|
|
814
|
-
cache:
|
|
815
|
-
parseClassName:
|
|
816
|
-
sortModifiers:
|
|
817
|
-
...
|
|
818
|
-
}),
|
|
813
|
+
}, Vo = (e) => ({
|
|
814
|
+
cache: Oo(e.cacheSize),
|
|
815
|
+
parseClassName: Lo(e),
|
|
816
|
+
sortModifiers: $o(e),
|
|
817
|
+
...Mo(e)
|
|
818
|
+
}), Go = /\s+/, jo = (e, t) => {
|
|
819
819
|
const {
|
|
820
820
|
parseClassName: o,
|
|
821
821
|
getClassGroupId: r,
|
|
822
822
|
getConflictingClassGroupIds: n,
|
|
823
823
|
sortModifiers: a
|
|
824
|
-
} = t, s = [],
|
|
825
|
-
let
|
|
826
|
-
for (let
|
|
827
|
-
const p =
|
|
824
|
+
} = t, s = [], l = e.trim().split(Go);
|
|
825
|
+
let c = "";
|
|
826
|
+
for (let m = l.length - 1; m >= 0; m -= 1) {
|
|
827
|
+
const p = l[m], {
|
|
828
828
|
isExternal: h,
|
|
829
|
-
modifiers:
|
|
830
|
-
hasImportantModifier:
|
|
831
|
-
baseClassName:
|
|
832
|
-
maybePostfixModifierPosition:
|
|
829
|
+
modifiers: N,
|
|
830
|
+
hasImportantModifier: k,
|
|
831
|
+
baseClassName: A,
|
|
832
|
+
maybePostfixModifierPosition: w
|
|
833
833
|
} = o(p);
|
|
834
834
|
if (h) {
|
|
835
|
-
|
|
835
|
+
c = p + (c.length > 0 ? " " + c : c);
|
|
836
836
|
continue;
|
|
837
837
|
}
|
|
838
|
-
let
|
|
839
|
-
if (!
|
|
840
|
-
if (!
|
|
841
|
-
|
|
838
|
+
let C = !!w, P = r(C ? A.substring(0, w) : A);
|
|
839
|
+
if (!P) {
|
|
840
|
+
if (!C) {
|
|
841
|
+
c = p + (c.length > 0 ? " " + c : c);
|
|
842
842
|
continue;
|
|
843
843
|
}
|
|
844
|
-
if (
|
|
845
|
-
|
|
844
|
+
if (P = r(A), !P) {
|
|
845
|
+
c = p + (c.length > 0 ? " " + c : c);
|
|
846
846
|
continue;
|
|
847
847
|
}
|
|
848
|
-
|
|
848
|
+
C = !1;
|
|
849
849
|
}
|
|
850
|
-
const
|
|
850
|
+
const y = a(N).join(":"), I = k ? y + Ie : y, S = I + P;
|
|
851
851
|
if (s.includes(S))
|
|
852
852
|
continue;
|
|
853
853
|
s.push(S);
|
|
854
|
-
const T = n(
|
|
854
|
+
const T = n(P, C);
|
|
855
855
|
for (let E = 0; E < T.length; ++E) {
|
|
856
|
-
const
|
|
857
|
-
s.push(I +
|
|
856
|
+
const D = T[E];
|
|
857
|
+
s.push(I + D);
|
|
858
858
|
}
|
|
859
|
-
|
|
859
|
+
c = p + (c.length > 0 ? " " + c : c);
|
|
860
860
|
}
|
|
861
|
-
return
|
|
861
|
+
return c;
|
|
862
862
|
};
|
|
863
|
-
function
|
|
863
|
+
function Uo() {
|
|
864
864
|
let e = 0, t, o, r = "";
|
|
865
865
|
for (; e < arguments.length; )
|
|
866
|
-
(t = arguments[e++]) && (o =
|
|
866
|
+
(t = arguments[e++]) && (o = At(t)) && (r && (r += " "), r += o);
|
|
867
867
|
return r;
|
|
868
868
|
}
|
|
869
|
-
const
|
|
869
|
+
const At = (e) => {
|
|
870
870
|
if (typeof e == "string")
|
|
871
871
|
return e;
|
|
872
872
|
let t, o = "";
|
|
873
873
|
for (let r = 0; r < e.length; r++)
|
|
874
|
-
e[r] && (t =
|
|
874
|
+
e[r] && (t = At(e[r])) && (o && (o += " "), o += t);
|
|
875
875
|
return o;
|
|
876
876
|
};
|
|
877
|
-
function
|
|
877
|
+
function Fo(e, ...t) {
|
|
878
878
|
let o, r, n, a = s;
|
|
879
|
-
function s(
|
|
880
|
-
const
|
|
881
|
-
return o =
|
|
879
|
+
function s(c) {
|
|
880
|
+
const m = t.reduce((p, h) => h(p), e());
|
|
881
|
+
return o = Vo(m), r = o.cache.get, n = o.cache.set, a = l, l(c);
|
|
882
882
|
}
|
|
883
|
-
function
|
|
884
|
-
const
|
|
885
|
-
if (
|
|
886
|
-
return
|
|
887
|
-
const p =
|
|
888
|
-
return n(
|
|
883
|
+
function l(c) {
|
|
884
|
+
const m = r(c);
|
|
885
|
+
if (m)
|
|
886
|
+
return m;
|
|
887
|
+
const p = jo(c, o);
|
|
888
|
+
return n(c, p), p;
|
|
889
889
|
}
|
|
890
890
|
return function() {
|
|
891
|
-
return a(
|
|
891
|
+
return a(Uo.apply(null, arguments));
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
|
-
const
|
|
894
|
+
const R = (e) => {
|
|
895
895
|
const t = (o) => o[e] || [];
|
|
896
896
|
return t.isThemeGetter = !0, t;
|
|
897
|
-
},
|
|
897
|
+
}, Nt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Pt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Wo = /^\d+\/\d+$/, Ho = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qo = /\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$/, Ko = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Zo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Xo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => Wo.test(e), v = (e) => !!e && !Number.isNaN(Number(e)), j = (e) => !!e && Number.isInteger(Number(e)), ye = (e) => e.endsWith("%") && v(e.slice(0, -1)), G = (e) => Ho.test(e), Jo = () => !0, Yo = (e) => (
|
|
898
898
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
899
899
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
900
900
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
901
|
-
|
|
902
|
-
),
|
|
903
|
-
const r =
|
|
901
|
+
qo.test(e) && !Ko.test(e)
|
|
902
|
+
), It = () => !1, Qo = (e) => Zo.test(e), er = (e) => Xo.test(e), tr = (e) => !d(e) && !u(e), or = (e) => q(e, St, It), d = (e) => Nt.test(e), F = (e) => q(e, Mt, Yo), we = (e) => q(e, ir, v), Je = (e) => q(e, _t, It), rr = (e) => q(e, Rt, er), ue = (e) => q(e, Et, Qo), u = (e) => Pt.test(e), X = (e) => K(e, Mt), nr = (e) => K(e, lr), Ye = (e) => K(e, _t), ar = (e) => K(e, St), sr = (e) => K(e, Rt), me = (e) => K(e, Et, !0), q = (e, t, o) => {
|
|
903
|
+
const r = Nt.exec(e);
|
|
904
904
|
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
905
905
|
}, K = (e, t, o = !1) => {
|
|
906
|
-
const r =
|
|
906
|
+
const r = Pt.exec(e);
|
|
907
907
|
return r ? r[1] ? t(r[1]) : o : !1;
|
|
908
|
-
},
|
|
909
|
-
const e =
|
|
908
|
+
}, _t = (e) => e === "position" || e === "percentage", Rt = (e) => e === "image" || e === "url", St = (e) => e === "length" || e === "size" || e === "bg-size", Mt = (e) => e === "length", ir = (e) => e === "number", lr = (e) => e === "family-name", Et = (e) => e === "shadow", cr = () => {
|
|
909
|
+
const e = R("color"), t = R("font"), o = R("text"), r = R("font-weight"), n = R("tracking"), a = R("leading"), s = R("breakpoint"), l = R("container"), c = R("spacing"), m = R("radius"), p = R("shadow"), h = R("inset-shadow"), N = R("text-shadow"), k = R("drop-shadow"), A = R("blur"), w = R("perspective"), C = R("aspect"), P = R("ease"), y = R("animate"), I = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
|
|
910
910
|
"center",
|
|
911
911
|
"top",
|
|
912
912
|
"bottom",
|
|
@@ -924,51 +924,51 @@ const _ = (e) => {
|
|
|
924
924
|
"bottom-left",
|
|
925
925
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
926
926
|
"left-bottom"
|
|
927
|
-
], T = () => [...S(), u, d], E = () => ["auto", "hidden", "clip", "visible", "scroll"],
|
|
927
|
+
], T = () => [...S(), u, d], E = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], b = () => [u, d, c], $ = () => [H, "full", "auto", ...b()], Ve = () => [j, "none", "subgrid", u, d], Ge = () => ["auto", {
|
|
928
928
|
span: ["full", j, u, d]
|
|
929
|
-
}, j, u, d],
|
|
929
|
+
}, j, u, d], ae = () => [j, "auto", u, d], je = () => ["auto", "min", "max", "fr", u, d], he = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], W = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], V = () => ["auto", ...b()], U = () => [H, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...b()], g = () => [e, u, d], Ue = () => [...S(), Ye, Je, {
|
|
930
930
|
position: [u, d]
|
|
931
|
-
}],
|
|
931
|
+
}], Fe = () => ["no-repeat", {
|
|
932
932
|
repeat: ["", "x", "y", "space", "round"]
|
|
933
|
-
}],
|
|
933
|
+
}], We = () => ["auto", "cover", "contain", ar, or, {
|
|
934
934
|
size: [u, d]
|
|
935
|
-
}],
|
|
935
|
+
}], ve = () => [ye, X, F], z = () => [
|
|
936
936
|
// Deprecated since Tailwind CSS v4.0.0
|
|
937
937
|
"",
|
|
938
938
|
"none",
|
|
939
939
|
"full",
|
|
940
|
-
|
|
940
|
+
m,
|
|
941
941
|
u,
|
|
942
942
|
d
|
|
943
|
-
], O = () => ["", v,
|
|
943
|
+
], O = () => ["", v, X, F], se = () => ["solid", "dashed", "dotted", "double"], He = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => [v, ye, Ye, Je], qe = () => [
|
|
944
944
|
// Deprecated since Tailwind CSS v4.0.0
|
|
945
945
|
"",
|
|
946
946
|
"none",
|
|
947
|
-
|
|
947
|
+
A,
|
|
948
948
|
u,
|
|
949
949
|
d
|
|
950
|
-
],
|
|
950
|
+
], ie = () => ["none", v, u, d], le = () => ["none", v, u, d], xe = () => [v, u, d], ce = () => [H, "full", ...b()];
|
|
951
951
|
return {
|
|
952
952
|
cacheSize: 500,
|
|
953
953
|
theme: {
|
|
954
954
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
955
955
|
aspect: ["video"],
|
|
956
|
-
blur: [
|
|
957
|
-
breakpoint: [
|
|
958
|
-
color: [
|
|
959
|
-
container: [
|
|
960
|
-
"drop-shadow": [
|
|
956
|
+
blur: [G],
|
|
957
|
+
breakpoint: [G],
|
|
958
|
+
color: [Jo],
|
|
959
|
+
container: [G],
|
|
960
|
+
"drop-shadow": [G],
|
|
961
961
|
ease: ["in", "out", "in-out"],
|
|
962
|
-
font: [
|
|
962
|
+
font: [tr],
|
|
963
963
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
964
|
-
"inset-shadow": [
|
|
964
|
+
"inset-shadow": [G],
|
|
965
965
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
966
966
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
967
|
-
radius: [
|
|
968
|
-
shadow: [
|
|
967
|
+
radius: [G],
|
|
968
|
+
shadow: [G],
|
|
969
969
|
spacing: ["px", v],
|
|
970
|
-
text: [
|
|
971
|
-
"text-shadow": [
|
|
970
|
+
text: [G],
|
|
971
|
+
"text-shadow": [G],
|
|
972
972
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
973
973
|
},
|
|
974
974
|
classGroups: {
|
|
@@ -980,7 +980,7 @@ const _ = (e) => {
|
|
|
980
980
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
981
981
|
*/
|
|
982
982
|
aspect: [{
|
|
983
|
-
aspect: ["auto", "square", H, d, u,
|
|
983
|
+
aspect: ["auto", "square", H, d, u, C]
|
|
984
984
|
}],
|
|
985
985
|
/**
|
|
986
986
|
* Container
|
|
@@ -993,7 +993,7 @@ const _ = (e) => {
|
|
|
993
993
|
* @see https://tailwindcss.com/docs/columns
|
|
994
994
|
*/
|
|
995
995
|
columns: [{
|
|
996
|
-
columns: [v, d, u,
|
|
996
|
+
columns: [v, d, u, l]
|
|
997
997
|
}],
|
|
998
998
|
/**
|
|
999
999
|
* Break After
|
|
@@ -1099,21 +1099,21 @@ const _ = (e) => {
|
|
|
1099
1099
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1100
1100
|
*/
|
|
1101
1101
|
overscroll: [{
|
|
1102
|
-
overscroll:
|
|
1102
|
+
overscroll: D()
|
|
1103
1103
|
}],
|
|
1104
1104
|
/**
|
|
1105
1105
|
* Overscroll Behavior X
|
|
1106
1106
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1107
1107
|
*/
|
|
1108
1108
|
"overscroll-x": [{
|
|
1109
|
-
"overscroll-x":
|
|
1109
|
+
"overscroll-x": D()
|
|
1110
1110
|
}],
|
|
1111
1111
|
/**
|
|
1112
1112
|
* Overscroll Behavior Y
|
|
1113
1113
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1114
1114
|
*/
|
|
1115
1115
|
"overscroll-y": [{
|
|
1116
|
-
"overscroll-y":
|
|
1116
|
+
"overscroll-y": D()
|
|
1117
1117
|
}],
|
|
1118
1118
|
/**
|
|
1119
1119
|
* Position
|
|
@@ -1125,63 +1125,63 @@ const _ = (e) => {
|
|
|
1125
1125
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1126
1126
|
*/
|
|
1127
1127
|
inset: [{
|
|
1128
|
-
inset:
|
|
1128
|
+
inset: $()
|
|
1129
1129
|
}],
|
|
1130
1130
|
/**
|
|
1131
1131
|
* Right / Left
|
|
1132
1132
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1133
1133
|
*/
|
|
1134
1134
|
"inset-x": [{
|
|
1135
|
-
"inset-x":
|
|
1135
|
+
"inset-x": $()
|
|
1136
1136
|
}],
|
|
1137
1137
|
/**
|
|
1138
1138
|
* Top / Bottom
|
|
1139
1139
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1140
1140
|
*/
|
|
1141
1141
|
"inset-y": [{
|
|
1142
|
-
"inset-y":
|
|
1142
|
+
"inset-y": $()
|
|
1143
1143
|
}],
|
|
1144
1144
|
/**
|
|
1145
1145
|
* Start
|
|
1146
1146
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1147
1147
|
*/
|
|
1148
1148
|
start: [{
|
|
1149
|
-
start:
|
|
1149
|
+
start: $()
|
|
1150
1150
|
}],
|
|
1151
1151
|
/**
|
|
1152
1152
|
* End
|
|
1153
1153
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1154
1154
|
*/
|
|
1155
1155
|
end: [{
|
|
1156
|
-
end:
|
|
1156
|
+
end: $()
|
|
1157
1157
|
}],
|
|
1158
1158
|
/**
|
|
1159
1159
|
* Top
|
|
1160
1160
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1161
1161
|
*/
|
|
1162
1162
|
top: [{
|
|
1163
|
-
top:
|
|
1163
|
+
top: $()
|
|
1164
1164
|
}],
|
|
1165
1165
|
/**
|
|
1166
1166
|
* Right
|
|
1167
1167
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1168
1168
|
*/
|
|
1169
1169
|
right: [{
|
|
1170
|
-
right:
|
|
1170
|
+
right: $()
|
|
1171
1171
|
}],
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Bottom
|
|
1174
1174
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1175
1175
|
*/
|
|
1176
1176
|
bottom: [{
|
|
1177
|
-
bottom:
|
|
1177
|
+
bottom: $()
|
|
1178
1178
|
}],
|
|
1179
1179
|
/**
|
|
1180
1180
|
* Left
|
|
1181
1181
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1182
1182
|
*/
|
|
1183
1183
|
left: [{
|
|
1184
|
-
left:
|
|
1184
|
+
left: $()
|
|
1185
1185
|
}],
|
|
1186
1186
|
/**
|
|
1187
1187
|
* Visibility
|
|
@@ -1203,7 +1203,7 @@ const _ = (e) => {
|
|
|
1203
1203
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1204
1204
|
*/
|
|
1205
1205
|
basis: [{
|
|
1206
|
-
basis: [H, "full", "auto",
|
|
1206
|
+
basis: [H, "full", "auto", l, ...b()]
|
|
1207
1207
|
}],
|
|
1208
1208
|
/**
|
|
1209
1209
|
* Flex Direction
|
|
@@ -1252,7 +1252,7 @@ const _ = (e) => {
|
|
|
1252
1252
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1253
1253
|
*/
|
|
1254
1254
|
"grid-cols": [{
|
|
1255
|
-
"grid-cols":
|
|
1255
|
+
"grid-cols": Ve()
|
|
1256
1256
|
}],
|
|
1257
1257
|
/**
|
|
1258
1258
|
* Grid Column Start / End
|
|
@@ -1266,21 +1266,21 @@ const _ = (e) => {
|
|
|
1266
1266
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1267
1267
|
*/
|
|
1268
1268
|
"col-start": [{
|
|
1269
|
-
"col-start":
|
|
1269
|
+
"col-start": ae()
|
|
1270
1270
|
}],
|
|
1271
1271
|
/**
|
|
1272
1272
|
* Grid Column End
|
|
1273
1273
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1274
1274
|
*/
|
|
1275
1275
|
"col-end": [{
|
|
1276
|
-
"col-end":
|
|
1276
|
+
"col-end": ae()
|
|
1277
1277
|
}],
|
|
1278
1278
|
/**
|
|
1279
1279
|
* Grid Template Rows
|
|
1280
1280
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1281
1281
|
*/
|
|
1282
1282
|
"grid-rows": [{
|
|
1283
|
-
"grid-rows":
|
|
1283
|
+
"grid-rows": Ve()
|
|
1284
1284
|
}],
|
|
1285
1285
|
/**
|
|
1286
1286
|
* Grid Row Start / End
|
|
@@ -1294,14 +1294,14 @@ const _ = (e) => {
|
|
|
1294
1294
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1295
1295
|
*/
|
|
1296
1296
|
"row-start": [{
|
|
1297
|
-
"row-start":
|
|
1297
|
+
"row-start": ae()
|
|
1298
1298
|
}],
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Grid Row End
|
|
1301
1301
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1302
1302
|
*/
|
|
1303
1303
|
"row-end": [{
|
|
1304
|
-
"row-end":
|
|
1304
|
+
"row-end": ae()
|
|
1305
1305
|
}],
|
|
1306
1306
|
/**
|
|
1307
1307
|
* Grid Auto Flow
|
|
@@ -1315,14 +1315,14 @@ const _ = (e) => {
|
|
|
1315
1315
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1316
1316
|
*/
|
|
1317
1317
|
"auto-cols": [{
|
|
1318
|
-
"auto-cols":
|
|
1318
|
+
"auto-cols": je()
|
|
1319
1319
|
}],
|
|
1320
1320
|
/**
|
|
1321
1321
|
* Grid Auto Rows
|
|
1322
1322
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1323
1323
|
*/
|
|
1324
1324
|
"auto-rows": [{
|
|
1325
|
-
"auto-rows":
|
|
1325
|
+
"auto-rows": je()
|
|
1326
1326
|
}],
|
|
1327
1327
|
/**
|
|
1328
1328
|
* Gap
|
|
@@ -1350,35 +1350,35 @@ const _ = (e) => {
|
|
|
1350
1350
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1351
1351
|
*/
|
|
1352
1352
|
"justify-content": [{
|
|
1353
|
-
justify: [...
|
|
1353
|
+
justify: [...he(), "normal"]
|
|
1354
1354
|
}],
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Justify Items
|
|
1357
1357
|
* @see https://tailwindcss.com/docs/justify-items
|
|
1358
1358
|
*/
|
|
1359
1359
|
"justify-items": [{
|
|
1360
|
-
"justify-items": [...
|
|
1360
|
+
"justify-items": [...W(), "normal"]
|
|
1361
1361
|
}],
|
|
1362
1362
|
/**
|
|
1363
1363
|
* Justify Self
|
|
1364
1364
|
* @see https://tailwindcss.com/docs/justify-self
|
|
1365
1365
|
*/
|
|
1366
1366
|
"justify-self": [{
|
|
1367
|
-
"justify-self": ["auto", ...
|
|
1367
|
+
"justify-self": ["auto", ...W()]
|
|
1368
1368
|
}],
|
|
1369
1369
|
/**
|
|
1370
1370
|
* Align Content
|
|
1371
1371
|
* @see https://tailwindcss.com/docs/align-content
|
|
1372
1372
|
*/
|
|
1373
1373
|
"align-content": [{
|
|
1374
|
-
content: ["normal", ...
|
|
1374
|
+
content: ["normal", ...he()]
|
|
1375
1375
|
}],
|
|
1376
1376
|
/**
|
|
1377
1377
|
* Align Items
|
|
1378
1378
|
* @see https://tailwindcss.com/docs/align-items
|
|
1379
1379
|
*/
|
|
1380
1380
|
"align-items": [{
|
|
1381
|
-
items: [...
|
|
1381
|
+
items: [...W(), {
|
|
1382
1382
|
baseline: ["", "last"]
|
|
1383
1383
|
}]
|
|
1384
1384
|
}],
|
|
@@ -1387,7 +1387,7 @@ const _ = (e) => {
|
|
|
1387
1387
|
* @see https://tailwindcss.com/docs/align-self
|
|
1388
1388
|
*/
|
|
1389
1389
|
"align-self": [{
|
|
1390
|
-
self: ["auto", ...
|
|
1390
|
+
self: ["auto", ...W(), {
|
|
1391
1391
|
baseline: ["", "last"]
|
|
1392
1392
|
}]
|
|
1393
1393
|
}],
|
|
@@ -1396,21 +1396,21 @@ const _ = (e) => {
|
|
|
1396
1396
|
* @see https://tailwindcss.com/docs/place-content
|
|
1397
1397
|
*/
|
|
1398
1398
|
"place-content": [{
|
|
1399
|
-
"place-content":
|
|
1399
|
+
"place-content": he()
|
|
1400
1400
|
}],
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Place Items
|
|
1403
1403
|
* @see https://tailwindcss.com/docs/place-items
|
|
1404
1404
|
*/
|
|
1405
1405
|
"place-items": [{
|
|
1406
|
-
"place-items": [...
|
|
1406
|
+
"place-items": [...W(), "baseline"]
|
|
1407
1407
|
}],
|
|
1408
1408
|
/**
|
|
1409
1409
|
* Place Self
|
|
1410
1410
|
* @see https://tailwindcss.com/docs/place-self
|
|
1411
1411
|
*/
|
|
1412
1412
|
"place-self": [{
|
|
1413
|
-
"place-self": ["auto", ...
|
|
1413
|
+
"place-self": ["auto", ...W()]
|
|
1414
1414
|
}],
|
|
1415
1415
|
// Spacing
|
|
1416
1416
|
/**
|
|
@@ -1578,7 +1578,7 @@ const _ = (e) => {
|
|
|
1578
1578
|
* @see https://tailwindcss.com/docs/width
|
|
1579
1579
|
*/
|
|
1580
1580
|
w: [{
|
|
1581
|
-
w: [
|
|
1581
|
+
w: [l, "screen", ...U()]
|
|
1582
1582
|
}],
|
|
1583
1583
|
/**
|
|
1584
1584
|
* Min-Width
|
|
@@ -1586,7 +1586,7 @@ const _ = (e) => {
|
|
|
1586
1586
|
*/
|
|
1587
1587
|
"min-w": [{
|
|
1588
1588
|
"min-w": [
|
|
1589
|
-
|
|
1589
|
+
l,
|
|
1590
1590
|
"screen",
|
|
1591
1591
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1592
1592
|
"none",
|
|
@@ -1599,7 +1599,7 @@ const _ = (e) => {
|
|
|
1599
1599
|
*/
|
|
1600
1600
|
"max-w": [{
|
|
1601
1601
|
"max-w": [
|
|
1602
|
-
|
|
1602
|
+
l,
|
|
1603
1603
|
"screen",
|
|
1604
1604
|
"none",
|
|
1605
1605
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
@@ -1640,7 +1640,7 @@ const _ = (e) => {
|
|
|
1640
1640
|
* @see https://tailwindcss.com/docs/font-size
|
|
1641
1641
|
*/
|
|
1642
1642
|
"font-size": [{
|
|
1643
|
-
text: ["base", o,
|
|
1643
|
+
text: ["base", o, X, F]
|
|
1644
1644
|
}],
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Font Smoothing
|
|
@@ -1657,21 +1657,21 @@ const _ = (e) => {
|
|
|
1657
1657
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1658
1658
|
*/
|
|
1659
1659
|
"font-weight": [{
|
|
1660
|
-
font: [r, u,
|
|
1660
|
+
font: [r, u, we]
|
|
1661
1661
|
}],
|
|
1662
1662
|
/**
|
|
1663
1663
|
* Font Stretch
|
|
1664
1664
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1665
1665
|
*/
|
|
1666
1666
|
"font-stretch": [{
|
|
1667
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1667
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ye, d]
|
|
1668
1668
|
}],
|
|
1669
1669
|
/**
|
|
1670
1670
|
* Font Family
|
|
1671
1671
|
* @see https://tailwindcss.com/docs/font-family
|
|
1672
1672
|
*/
|
|
1673
1673
|
"font-family": [{
|
|
1674
|
-
font: [
|
|
1674
|
+
font: [nr, d, t]
|
|
1675
1675
|
}],
|
|
1676
1676
|
/**
|
|
1677
1677
|
* Font Variant Numeric
|
|
@@ -1715,7 +1715,7 @@ const _ = (e) => {
|
|
|
1715
1715
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1716
1716
|
*/
|
|
1717
1717
|
"line-clamp": [{
|
|
1718
|
-
"line-clamp": [v, "none", u,
|
|
1718
|
+
"line-clamp": [v, "none", u, we]
|
|
1719
1719
|
}],
|
|
1720
1720
|
/**
|
|
1721
1721
|
* Line Height
|
|
@@ -1781,7 +1781,7 @@ const _ = (e) => {
|
|
|
1781
1781
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1782
1782
|
*/
|
|
1783
1783
|
"text-decoration-style": [{
|
|
1784
|
-
decoration: [...
|
|
1784
|
+
decoration: [...se(), "wavy"]
|
|
1785
1785
|
}],
|
|
1786
1786
|
/**
|
|
1787
1787
|
* Text Decoration Thickness
|
|
@@ -1899,21 +1899,21 @@ const _ = (e) => {
|
|
|
1899
1899
|
* @see https://tailwindcss.com/docs/background-position
|
|
1900
1900
|
*/
|
|
1901
1901
|
"bg-position": [{
|
|
1902
|
-
bg:
|
|
1902
|
+
bg: Ue()
|
|
1903
1903
|
}],
|
|
1904
1904
|
/**
|
|
1905
1905
|
* Background Repeat
|
|
1906
1906
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1907
1907
|
*/
|
|
1908
1908
|
"bg-repeat": [{
|
|
1909
|
-
bg:
|
|
1909
|
+
bg: Fe()
|
|
1910
1910
|
}],
|
|
1911
1911
|
/**
|
|
1912
1912
|
* Background Size
|
|
1913
1913
|
* @see https://tailwindcss.com/docs/background-size
|
|
1914
1914
|
*/
|
|
1915
1915
|
"bg-size": [{
|
|
1916
|
-
bg:
|
|
1916
|
+
bg: We()
|
|
1917
1917
|
}],
|
|
1918
1918
|
/**
|
|
1919
1919
|
* Background Image
|
|
@@ -1926,7 +1926,7 @@ const _ = (e) => {
|
|
|
1926
1926
|
}, j, u, d],
|
|
1927
1927
|
radial: ["", u, d],
|
|
1928
1928
|
conic: [j, u, d]
|
|
1929
|
-
},
|
|
1929
|
+
}, sr, rr]
|
|
1930
1930
|
}],
|
|
1931
1931
|
/**
|
|
1932
1932
|
* Background Color
|
|
@@ -1940,21 +1940,21 @@ const _ = (e) => {
|
|
|
1940
1940
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1941
1941
|
*/
|
|
1942
1942
|
"gradient-from-pos": [{
|
|
1943
|
-
from:
|
|
1943
|
+
from: ve()
|
|
1944
1944
|
}],
|
|
1945
1945
|
/**
|
|
1946
1946
|
* Gradient Color Stops Via Position
|
|
1947
1947
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1948
1948
|
*/
|
|
1949
1949
|
"gradient-via-pos": [{
|
|
1950
|
-
via:
|
|
1950
|
+
via: ve()
|
|
1951
1951
|
}],
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Gradient Color Stops To Position
|
|
1954
1954
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1955
1955
|
*/
|
|
1956
1956
|
"gradient-to-pos": [{
|
|
1957
|
-
to:
|
|
1957
|
+
to: ve()
|
|
1958
1958
|
}],
|
|
1959
1959
|
/**
|
|
1960
1960
|
* Gradient Color Stops From
|
|
@@ -2177,14 +2177,14 @@ const _ = (e) => {
|
|
|
2177
2177
|
* @see https://tailwindcss.com/docs/border-style
|
|
2178
2178
|
*/
|
|
2179
2179
|
"border-style": [{
|
|
2180
|
-
border: [...
|
|
2180
|
+
border: [...se(), "hidden", "none"]
|
|
2181
2181
|
}],
|
|
2182
2182
|
/**
|
|
2183
2183
|
* Divide Style
|
|
2184
2184
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2185
2185
|
*/
|
|
2186
2186
|
"divide-style": [{
|
|
2187
|
-
divide: [...
|
|
2187
|
+
divide: [...se(), "hidden", "none"]
|
|
2188
2188
|
}],
|
|
2189
2189
|
/**
|
|
2190
2190
|
* Border Color
|
|
@@ -2261,7 +2261,7 @@ const _ = (e) => {
|
|
|
2261
2261
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2262
2262
|
*/
|
|
2263
2263
|
"outline-style": [{
|
|
2264
|
-
outline: [...
|
|
2264
|
+
outline: [...se(), "none", "hidden"]
|
|
2265
2265
|
}],
|
|
2266
2266
|
/**
|
|
2267
2267
|
* Outline Offset
|
|
@@ -2275,7 +2275,7 @@ const _ = (e) => {
|
|
|
2275
2275
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2276
2276
|
*/
|
|
2277
2277
|
"outline-w": [{
|
|
2278
|
-
outline: ["", v,
|
|
2278
|
+
outline: ["", v, X, F]
|
|
2279
2279
|
}],
|
|
2280
2280
|
/**
|
|
2281
2281
|
* Outline Color
|
|
@@ -2297,8 +2297,8 @@ const _ = (e) => {
|
|
|
2297
2297
|
"",
|
|
2298
2298
|
"none",
|
|
2299
2299
|
p,
|
|
2300
|
-
|
|
2301
|
-
|
|
2300
|
+
me,
|
|
2301
|
+
ue
|
|
2302
2302
|
]
|
|
2303
2303
|
}],
|
|
2304
2304
|
/**
|
|
@@ -2313,7 +2313,7 @@ const _ = (e) => {
|
|
|
2313
2313
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2314
2314
|
*/
|
|
2315
2315
|
"inset-shadow": [{
|
|
2316
|
-
"inset-shadow": ["none", h,
|
|
2316
|
+
"inset-shadow": ["none", h, me, ue]
|
|
2317
2317
|
}],
|
|
2318
2318
|
/**
|
|
2319
2319
|
* Inset Box Shadow Color
|
|
@@ -2380,7 +2380,7 @@ const _ = (e) => {
|
|
|
2380
2380
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2381
2381
|
*/
|
|
2382
2382
|
"text-shadow": [{
|
|
2383
|
-
"text-shadow": ["none",
|
|
2383
|
+
"text-shadow": ["none", N, me, ue]
|
|
2384
2384
|
}],
|
|
2385
2385
|
/**
|
|
2386
2386
|
* Text Shadow Color
|
|
@@ -2401,14 +2401,14 @@ const _ = (e) => {
|
|
|
2401
2401
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2402
2402
|
*/
|
|
2403
2403
|
"mix-blend": [{
|
|
2404
|
-
"mix-blend": [...
|
|
2404
|
+
"mix-blend": [...He(), "plus-darker", "plus-lighter"]
|
|
2405
2405
|
}],
|
|
2406
2406
|
/**
|
|
2407
2407
|
* Background Blend Mode
|
|
2408
2408
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2409
2409
|
*/
|
|
2410
2410
|
"bg-blend": [{
|
|
2411
|
-
"bg-blend":
|
|
2411
|
+
"bg-blend": He()
|
|
2412
2412
|
}],
|
|
2413
2413
|
/**
|
|
2414
2414
|
* Mask Clip
|
|
@@ -2432,10 +2432,10 @@ const _ = (e) => {
|
|
|
2432
2432
|
"mask-linear": [v]
|
|
2433
2433
|
}],
|
|
2434
2434
|
"mask-image-linear-from-pos": [{
|
|
2435
|
-
"mask-linear-from":
|
|
2435
|
+
"mask-linear-from": M()
|
|
2436
2436
|
}],
|
|
2437
2437
|
"mask-image-linear-to-pos": [{
|
|
2438
|
-
"mask-linear-to":
|
|
2438
|
+
"mask-linear-to": M()
|
|
2439
2439
|
}],
|
|
2440
2440
|
"mask-image-linear-from-color": [{
|
|
2441
2441
|
"mask-linear-from": g()
|
|
@@ -2444,10 +2444,10 @@ const _ = (e) => {
|
|
|
2444
2444
|
"mask-linear-to": g()
|
|
2445
2445
|
}],
|
|
2446
2446
|
"mask-image-t-from-pos": [{
|
|
2447
|
-
"mask-t-from":
|
|
2447
|
+
"mask-t-from": M()
|
|
2448
2448
|
}],
|
|
2449
2449
|
"mask-image-t-to-pos": [{
|
|
2450
|
-
"mask-t-to":
|
|
2450
|
+
"mask-t-to": M()
|
|
2451
2451
|
}],
|
|
2452
2452
|
"mask-image-t-from-color": [{
|
|
2453
2453
|
"mask-t-from": g()
|
|
@@ -2456,10 +2456,10 @@ const _ = (e) => {
|
|
|
2456
2456
|
"mask-t-to": g()
|
|
2457
2457
|
}],
|
|
2458
2458
|
"mask-image-r-from-pos": [{
|
|
2459
|
-
"mask-r-from":
|
|
2459
|
+
"mask-r-from": M()
|
|
2460
2460
|
}],
|
|
2461
2461
|
"mask-image-r-to-pos": [{
|
|
2462
|
-
"mask-r-to":
|
|
2462
|
+
"mask-r-to": M()
|
|
2463
2463
|
}],
|
|
2464
2464
|
"mask-image-r-from-color": [{
|
|
2465
2465
|
"mask-r-from": g()
|
|
@@ -2468,10 +2468,10 @@ const _ = (e) => {
|
|
|
2468
2468
|
"mask-r-to": g()
|
|
2469
2469
|
}],
|
|
2470
2470
|
"mask-image-b-from-pos": [{
|
|
2471
|
-
"mask-b-from":
|
|
2471
|
+
"mask-b-from": M()
|
|
2472
2472
|
}],
|
|
2473
2473
|
"mask-image-b-to-pos": [{
|
|
2474
|
-
"mask-b-to":
|
|
2474
|
+
"mask-b-to": M()
|
|
2475
2475
|
}],
|
|
2476
2476
|
"mask-image-b-from-color": [{
|
|
2477
2477
|
"mask-b-from": g()
|
|
@@ -2480,10 +2480,10 @@ const _ = (e) => {
|
|
|
2480
2480
|
"mask-b-to": g()
|
|
2481
2481
|
}],
|
|
2482
2482
|
"mask-image-l-from-pos": [{
|
|
2483
|
-
"mask-l-from":
|
|
2483
|
+
"mask-l-from": M()
|
|
2484
2484
|
}],
|
|
2485
2485
|
"mask-image-l-to-pos": [{
|
|
2486
|
-
"mask-l-to":
|
|
2486
|
+
"mask-l-to": M()
|
|
2487
2487
|
}],
|
|
2488
2488
|
"mask-image-l-from-color": [{
|
|
2489
2489
|
"mask-l-from": g()
|
|
@@ -2492,10 +2492,10 @@ const _ = (e) => {
|
|
|
2492
2492
|
"mask-l-to": g()
|
|
2493
2493
|
}],
|
|
2494
2494
|
"mask-image-x-from-pos": [{
|
|
2495
|
-
"mask-x-from":
|
|
2495
|
+
"mask-x-from": M()
|
|
2496
2496
|
}],
|
|
2497
2497
|
"mask-image-x-to-pos": [{
|
|
2498
|
-
"mask-x-to":
|
|
2498
|
+
"mask-x-to": M()
|
|
2499
2499
|
}],
|
|
2500
2500
|
"mask-image-x-from-color": [{
|
|
2501
2501
|
"mask-x-from": g()
|
|
@@ -2504,10 +2504,10 @@ const _ = (e) => {
|
|
|
2504
2504
|
"mask-x-to": g()
|
|
2505
2505
|
}],
|
|
2506
2506
|
"mask-image-y-from-pos": [{
|
|
2507
|
-
"mask-y-from":
|
|
2507
|
+
"mask-y-from": M()
|
|
2508
2508
|
}],
|
|
2509
2509
|
"mask-image-y-to-pos": [{
|
|
2510
|
-
"mask-y-to":
|
|
2510
|
+
"mask-y-to": M()
|
|
2511
2511
|
}],
|
|
2512
2512
|
"mask-image-y-from-color": [{
|
|
2513
2513
|
"mask-y-from": g()
|
|
@@ -2519,10 +2519,10 @@ const _ = (e) => {
|
|
|
2519
2519
|
"mask-radial": [u, d]
|
|
2520
2520
|
}],
|
|
2521
2521
|
"mask-image-radial-from-pos": [{
|
|
2522
|
-
"mask-radial-from":
|
|
2522
|
+
"mask-radial-from": M()
|
|
2523
2523
|
}],
|
|
2524
2524
|
"mask-image-radial-to-pos": [{
|
|
2525
|
-
"mask-radial-to":
|
|
2525
|
+
"mask-radial-to": M()
|
|
2526
2526
|
}],
|
|
2527
2527
|
"mask-image-radial-from-color": [{
|
|
2528
2528
|
"mask-radial-from": g()
|
|
@@ -2546,10 +2546,10 @@ const _ = (e) => {
|
|
|
2546
2546
|
"mask-conic": [v]
|
|
2547
2547
|
}],
|
|
2548
2548
|
"mask-image-conic-from-pos": [{
|
|
2549
|
-
"mask-conic-from":
|
|
2549
|
+
"mask-conic-from": M()
|
|
2550
2550
|
}],
|
|
2551
2551
|
"mask-image-conic-to-pos": [{
|
|
2552
|
-
"mask-conic-to":
|
|
2552
|
+
"mask-conic-to": M()
|
|
2553
2553
|
}],
|
|
2554
2554
|
"mask-image-conic-from-color": [{
|
|
2555
2555
|
"mask-conic-from": g()
|
|
@@ -2576,21 +2576,21 @@ const _ = (e) => {
|
|
|
2576
2576
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2577
2577
|
*/
|
|
2578
2578
|
"mask-position": [{
|
|
2579
|
-
mask:
|
|
2579
|
+
mask: Ue()
|
|
2580
2580
|
}],
|
|
2581
2581
|
/**
|
|
2582
2582
|
* Mask Repeat
|
|
2583
2583
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2584
2584
|
*/
|
|
2585
2585
|
"mask-repeat": [{
|
|
2586
|
-
mask:
|
|
2586
|
+
mask: Fe()
|
|
2587
2587
|
}],
|
|
2588
2588
|
/**
|
|
2589
2589
|
* Mask Size
|
|
2590
2590
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2591
2591
|
*/
|
|
2592
2592
|
"mask-size": [{
|
|
2593
|
-
mask:
|
|
2593
|
+
mask: We()
|
|
2594
2594
|
}],
|
|
2595
2595
|
/**
|
|
2596
2596
|
* Mask Type
|
|
@@ -2627,7 +2627,7 @@ const _ = (e) => {
|
|
|
2627
2627
|
* @see https://tailwindcss.com/docs/blur
|
|
2628
2628
|
*/
|
|
2629
2629
|
blur: [{
|
|
2630
|
-
blur:
|
|
2630
|
+
blur: qe()
|
|
2631
2631
|
}],
|
|
2632
2632
|
/**
|
|
2633
2633
|
* Brightness
|
|
@@ -2652,9 +2652,9 @@ const _ = (e) => {
|
|
|
2652
2652
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2653
2653
|
"",
|
|
2654
2654
|
"none",
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2655
|
+
k,
|
|
2656
|
+
me,
|
|
2657
|
+
ue
|
|
2658
2658
|
]
|
|
2659
2659
|
}],
|
|
2660
2660
|
/**
|
|
@@ -2717,7 +2717,7 @@ const _ = (e) => {
|
|
|
2717
2717
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2718
2718
|
*/
|
|
2719
2719
|
"backdrop-blur": [{
|
|
2720
|
-
"backdrop-blur":
|
|
2720
|
+
"backdrop-blur": qe()
|
|
2721
2721
|
}],
|
|
2722
2722
|
/**
|
|
2723
2723
|
* Backdrop Brightness
|
|
@@ -2849,7 +2849,7 @@ const _ = (e) => {
|
|
|
2849
2849
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2850
2850
|
*/
|
|
2851
2851
|
ease: [{
|
|
2852
|
-
ease: ["linear", "initial",
|
|
2852
|
+
ease: ["linear", "initial", P, u, d]
|
|
2853
2853
|
}],
|
|
2854
2854
|
/**
|
|
2855
2855
|
* Transition Delay
|
|
@@ -2863,7 +2863,7 @@ const _ = (e) => {
|
|
|
2863
2863
|
* @see https://tailwindcss.com/docs/animation
|
|
2864
2864
|
*/
|
|
2865
2865
|
animate: [{
|
|
2866
|
-
animate: ["none",
|
|
2866
|
+
animate: ["none", y, u, d]
|
|
2867
2867
|
}],
|
|
2868
2868
|
// ------------------
|
|
2869
2869
|
// --- Transforms ---
|
|
@@ -2880,7 +2880,7 @@ const _ = (e) => {
|
|
|
2880
2880
|
* @see https://tailwindcss.com/docs/perspective
|
|
2881
2881
|
*/
|
|
2882
2882
|
perspective: [{
|
|
2883
|
-
perspective: [
|
|
2883
|
+
perspective: [w, u, d]
|
|
2884
2884
|
}],
|
|
2885
2885
|
/**
|
|
2886
2886
|
* Perspective Origin
|
|
@@ -2894,56 +2894,56 @@ const _ = (e) => {
|
|
|
2894
2894
|
* @see https://tailwindcss.com/docs/rotate
|
|
2895
2895
|
*/
|
|
2896
2896
|
rotate: [{
|
|
2897
|
-
rotate:
|
|
2897
|
+
rotate: ie()
|
|
2898
2898
|
}],
|
|
2899
2899
|
/**
|
|
2900
2900
|
* Rotate X
|
|
2901
2901
|
* @see https://tailwindcss.com/docs/rotate
|
|
2902
2902
|
*/
|
|
2903
2903
|
"rotate-x": [{
|
|
2904
|
-
"rotate-x":
|
|
2904
|
+
"rotate-x": ie()
|
|
2905
2905
|
}],
|
|
2906
2906
|
/**
|
|
2907
2907
|
* Rotate Y
|
|
2908
2908
|
* @see https://tailwindcss.com/docs/rotate
|
|
2909
2909
|
*/
|
|
2910
2910
|
"rotate-y": [{
|
|
2911
|
-
"rotate-y":
|
|
2911
|
+
"rotate-y": ie()
|
|
2912
2912
|
}],
|
|
2913
2913
|
/**
|
|
2914
2914
|
* Rotate Z
|
|
2915
2915
|
* @see https://tailwindcss.com/docs/rotate
|
|
2916
2916
|
*/
|
|
2917
2917
|
"rotate-z": [{
|
|
2918
|
-
"rotate-z":
|
|
2918
|
+
"rotate-z": ie()
|
|
2919
2919
|
}],
|
|
2920
2920
|
/**
|
|
2921
2921
|
* Scale
|
|
2922
2922
|
* @see https://tailwindcss.com/docs/scale
|
|
2923
2923
|
*/
|
|
2924
2924
|
scale: [{
|
|
2925
|
-
scale:
|
|
2925
|
+
scale: le()
|
|
2926
2926
|
}],
|
|
2927
2927
|
/**
|
|
2928
2928
|
* Scale X
|
|
2929
2929
|
* @see https://tailwindcss.com/docs/scale
|
|
2930
2930
|
*/
|
|
2931
2931
|
"scale-x": [{
|
|
2932
|
-
"scale-x":
|
|
2932
|
+
"scale-x": le()
|
|
2933
2933
|
}],
|
|
2934
2934
|
/**
|
|
2935
2935
|
* Scale Y
|
|
2936
2936
|
* @see https://tailwindcss.com/docs/scale
|
|
2937
2937
|
*/
|
|
2938
2938
|
"scale-y": [{
|
|
2939
|
-
"scale-y":
|
|
2939
|
+
"scale-y": le()
|
|
2940
2940
|
}],
|
|
2941
2941
|
/**
|
|
2942
2942
|
* Scale Z
|
|
2943
2943
|
* @see https://tailwindcss.com/docs/scale
|
|
2944
2944
|
*/
|
|
2945
2945
|
"scale-z": [{
|
|
2946
|
-
"scale-z":
|
|
2946
|
+
"scale-z": le()
|
|
2947
2947
|
}],
|
|
2948
2948
|
/**
|
|
2949
2949
|
* Scale 3D
|
|
@@ -2955,21 +2955,21 @@ const _ = (e) => {
|
|
|
2955
2955
|
* @see https://tailwindcss.com/docs/skew
|
|
2956
2956
|
*/
|
|
2957
2957
|
skew: [{
|
|
2958
|
-
skew:
|
|
2958
|
+
skew: xe()
|
|
2959
2959
|
}],
|
|
2960
2960
|
/**
|
|
2961
2961
|
* Skew X
|
|
2962
2962
|
* @see https://tailwindcss.com/docs/skew
|
|
2963
2963
|
*/
|
|
2964
2964
|
"skew-x": [{
|
|
2965
|
-
"skew-x":
|
|
2965
|
+
"skew-x": xe()
|
|
2966
2966
|
}],
|
|
2967
2967
|
/**
|
|
2968
2968
|
* Skew Y
|
|
2969
2969
|
* @see https://tailwindcss.com/docs/skew
|
|
2970
2970
|
*/
|
|
2971
2971
|
"skew-y": [{
|
|
2972
|
-
"skew-y":
|
|
2972
|
+
"skew-y": xe()
|
|
2973
2973
|
}],
|
|
2974
2974
|
/**
|
|
2975
2975
|
* Transform
|
|
@@ -2997,28 +2997,28 @@ const _ = (e) => {
|
|
|
2997
2997
|
* @see https://tailwindcss.com/docs/translate
|
|
2998
2998
|
*/
|
|
2999
2999
|
translate: [{
|
|
3000
|
-
translate:
|
|
3000
|
+
translate: ce()
|
|
3001
3001
|
}],
|
|
3002
3002
|
/**
|
|
3003
3003
|
* Translate X
|
|
3004
3004
|
* @see https://tailwindcss.com/docs/translate
|
|
3005
3005
|
*/
|
|
3006
3006
|
"translate-x": [{
|
|
3007
|
-
"translate-x":
|
|
3007
|
+
"translate-x": ce()
|
|
3008
3008
|
}],
|
|
3009
3009
|
/**
|
|
3010
3010
|
* Translate Y
|
|
3011
3011
|
* @see https://tailwindcss.com/docs/translate
|
|
3012
3012
|
*/
|
|
3013
3013
|
"translate-y": [{
|
|
3014
|
-
"translate-y":
|
|
3014
|
+
"translate-y": ce()
|
|
3015
3015
|
}],
|
|
3016
3016
|
/**
|
|
3017
3017
|
* Translate Z
|
|
3018
3018
|
* @see https://tailwindcss.com/docs/translate
|
|
3019
3019
|
*/
|
|
3020
3020
|
"translate-z": [{
|
|
3021
|
-
"translate-z":
|
|
3021
|
+
"translate-z": ce()
|
|
3022
3022
|
}],
|
|
3023
3023
|
/**
|
|
3024
3024
|
* Translate None
|
|
@@ -3300,7 +3300,7 @@ const _ = (e) => {
|
|
|
3300
3300
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3301
3301
|
*/
|
|
3302
3302
|
"stroke-w": [{
|
|
3303
|
-
stroke: [v,
|
|
3303
|
+
stroke: [v, X, F, we]
|
|
3304
3304
|
}],
|
|
3305
3305
|
/**
|
|
3306
3306
|
* Stroke
|
|
@@ -3375,16 +3375,16 @@ const _ = (e) => {
|
|
|
3375
3375
|
},
|
|
3376
3376
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3377
3377
|
};
|
|
3378
|
-
},
|
|
3379
|
-
function
|
|
3380
|
-
return
|
|
3381
|
-
}
|
|
3382
|
-
function
|
|
3383
|
-
const { colorScheme: r } =
|
|
3384
|
-
return /* @__PURE__ */
|
|
3385
|
-
|
|
3378
|
+
}, dr = /* @__PURE__ */ Fo(cr);
|
|
3379
|
+
function x(...e) {
|
|
3380
|
+
return dr(So(e));
|
|
3381
|
+
}
|
|
3382
|
+
function ur({ children: e, className: t, ...o }) {
|
|
3383
|
+
const { colorScheme: r } = De(), { value: n } = $e();
|
|
3384
|
+
return /* @__PURE__ */ i(
|
|
3385
|
+
Po,
|
|
3386
3386
|
{
|
|
3387
|
-
className:
|
|
3387
|
+
className: x(
|
|
3388
3388
|
"focus:outline-2 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-[var(--accordion-focus,hsl(var(--primary)))] has-[:focus-visible]:ring-offset-4",
|
|
3389
3389
|
{
|
|
3390
3390
|
light: "ring-offset-[var(--acordion-light-offset,hsl(var(--background)))]",
|
|
@@ -3399,26 +3399,26 @@ function rr({ children: e, className: t, ...o }) {
|
|
|
3399
3399
|
}
|
|
3400
3400
|
);
|
|
3401
3401
|
}
|
|
3402
|
-
function
|
|
3403
|
-
return /* @__PURE__ */
|
|
3402
|
+
function mr({ className: e, ...t }) {
|
|
3403
|
+
return /* @__PURE__ */ i(No, { className: x(e), ...t, "data-slot": "accordion-root" });
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3406
|
-
const { colorScheme: o } =
|
|
3407
|
-
return
|
|
3405
|
+
function fr({ className: e, ...t }) {
|
|
3406
|
+
const { colorScheme: o } = De(), { content: r } = $e(), [n, a] = ke(!1);
|
|
3407
|
+
return et(() => {
|
|
3408
3408
|
a(!0);
|
|
3409
|
-
}, []), /* @__PURE__ */
|
|
3410
|
-
|
|
3409
|
+
}, []), /* @__PURE__ */ i(
|
|
3410
|
+
Ro,
|
|
3411
3411
|
{
|
|
3412
|
-
className:
|
|
3412
|
+
className: x(
|
|
3413
3413
|
"overflow-hidden",
|
|
3414
3414
|
// We need to delay the animation until the component is mounted to avoid the animation from being triggered when the component is first rendered.
|
|
3415
3415
|
n && "data-[state=closed]:animate-collapse data-[state=open]:animate-expand"
|
|
3416
3416
|
),
|
|
3417
3417
|
...t,
|
|
3418
|
-
children: /* @__PURE__ */
|
|
3418
|
+
children: /* @__PURE__ */ i(
|
|
3419
3419
|
"div",
|
|
3420
3420
|
{
|
|
3421
|
-
className:
|
|
3421
|
+
className: x(
|
|
3422
3422
|
"py-3 text-base font-light leading-normal [font-family:var(--accordion-content-font-family,var(--font-family-body))]",
|
|
3423
3423
|
{
|
|
3424
3424
|
light: "text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",
|
|
@@ -3433,35 +3433,35 @@ function ar({ className: e, ...t }) {
|
|
|
3433
3433
|
}
|
|
3434
3434
|
);
|
|
3435
3435
|
}
|
|
3436
|
-
const
|
|
3437
|
-
function
|
|
3436
|
+
const zt = ee(void 0);
|
|
3437
|
+
function pr({
|
|
3438
3438
|
children: e,
|
|
3439
3439
|
colorScheme: t = "light",
|
|
3440
3440
|
items: o
|
|
3441
3441
|
}) {
|
|
3442
|
-
const r =
|
|
3442
|
+
const r = te(
|
|
3443
3443
|
() => ({
|
|
3444
3444
|
colorScheme: t,
|
|
3445
3445
|
items: o
|
|
3446
3446
|
}),
|
|
3447
3447
|
[t, o]
|
|
3448
3448
|
);
|
|
3449
|
-
return /* @__PURE__ */
|
|
3449
|
+
return /* @__PURE__ */ i(zt.Provider, { value: r, children: e });
|
|
3450
3450
|
}
|
|
3451
|
-
function
|
|
3452
|
-
const e =
|
|
3451
|
+
function De() {
|
|
3452
|
+
const e = oe(zt);
|
|
3453
3453
|
if (e === void 0)
|
|
3454
3454
|
throw new Error("useAccordion must be used within an AccordionProvider");
|
|
3455
3455
|
return e;
|
|
3456
3456
|
}
|
|
3457
|
-
const
|
|
3458
|
-
function
|
|
3457
|
+
const Tt = ee(void 0);
|
|
3458
|
+
function gr({
|
|
3459
3459
|
children: e,
|
|
3460
3460
|
title: t,
|
|
3461
3461
|
content: o,
|
|
3462
3462
|
value: r
|
|
3463
3463
|
}) {
|
|
3464
|
-
const n =
|
|
3464
|
+
const n = te(
|
|
3465
3465
|
() => ({
|
|
3466
3466
|
title: t,
|
|
3467
3467
|
content: o,
|
|
@@ -3469,30 +3469,30 @@ function ir({
|
|
|
3469
3469
|
}),
|
|
3470
3470
|
[t, o, r]
|
|
3471
3471
|
);
|
|
3472
|
-
return /* @__PURE__ */
|
|
3472
|
+
return /* @__PURE__ */ i(Tt.Provider, { value: n, children: e });
|
|
3473
3473
|
}
|
|
3474
|
-
function
|
|
3475
|
-
const e =
|
|
3474
|
+
function $e() {
|
|
3475
|
+
const e = oe(Tt);
|
|
3476
3476
|
if (e === void 0)
|
|
3477
3477
|
throw new Error("useAccordionItem must be used within an AccordionItemProvider");
|
|
3478
3478
|
return e;
|
|
3479
3479
|
}
|
|
3480
|
-
function
|
|
3481
|
-
const { colorScheme: o } =
|
|
3482
|
-
return /* @__PURE__ */
|
|
3483
|
-
|
|
3480
|
+
function br({ className: e, ...t }) {
|
|
3481
|
+
const { colorScheme: o } = De(), { title: r } = $e();
|
|
3482
|
+
return /* @__PURE__ */ i(Io, { children: /* @__PURE__ */ B(
|
|
3483
|
+
_o,
|
|
3484
3484
|
{
|
|
3485
|
-
className:
|
|
3485
|
+
className: x(
|
|
3486
3486
|
"group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4",
|
|
3487
3487
|
e
|
|
3488
3488
|
),
|
|
3489
3489
|
"data-slot": "accordion-trigger",
|
|
3490
3490
|
...t,
|
|
3491
3491
|
children: [
|
|
3492
|
-
/* @__PURE__ */
|
|
3492
|
+
/* @__PURE__ */ i(
|
|
3493
3493
|
"div",
|
|
3494
3494
|
{
|
|
3495
|
-
className:
|
|
3495
|
+
className: x(
|
|
3496
3496
|
"flex-1 select-none text-sm font-normal uppercase transition-colors duration-300 ease-out [font-family:var(--accordion-title-font-family,var(--font-family-mono))]",
|
|
3497
3497
|
{
|
|
3498
3498
|
light: "text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",
|
|
@@ -3502,10 +3502,10 @@ function lr({ className: e, ...t }) {
|
|
|
3502
3502
|
children: r
|
|
3503
3503
|
}
|
|
3504
3504
|
),
|
|
3505
|
-
/* @__PURE__ */
|
|
3505
|
+
/* @__PURE__ */ B(
|
|
3506
3506
|
"svg",
|
|
3507
3507
|
{
|
|
3508
|
-
className:
|
|
3508
|
+
className: x(
|
|
3509
3509
|
"mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",
|
|
3510
3510
|
{
|
|
3511
3511
|
light: "stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",
|
|
@@ -3516,7 +3516,7 @@ function lr({ className: e, ...t }) {
|
|
|
3516
3516
|
viewBox: "0 0 10 10",
|
|
3517
3517
|
width: 16,
|
|
3518
3518
|
children: [
|
|
3519
|
-
/* @__PURE__ */
|
|
3519
|
+
/* @__PURE__ */ i(
|
|
3520
3520
|
"line",
|
|
3521
3521
|
{
|
|
3522
3522
|
className: "group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",
|
|
@@ -3527,7 +3527,7 @@ function lr({ className: e, ...t }) {
|
|
|
3527
3527
|
y2: 5
|
|
3528
3528
|
}
|
|
3529
3529
|
),
|
|
3530
|
-
/* @__PURE__ */
|
|
3530
|
+
/* @__PURE__ */ i(
|
|
3531
3531
|
"line",
|
|
3532
3532
|
{
|
|
3533
3533
|
className: "group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",
|
|
@@ -3545,34 +3545,34 @@ function lr({ className: e, ...t }) {
|
|
|
3545
3545
|
}
|
|
3546
3546
|
) });
|
|
3547
3547
|
}
|
|
3548
|
-
function
|
|
3549
|
-
return /* @__PURE__ */
|
|
3550
|
-
|
|
3548
|
+
function Yr({ className: e, variant: t, message: o, description: r, action: n, dismiss: a }) {
|
|
3549
|
+
return /* @__PURE__ */ i(
|
|
3550
|
+
vr,
|
|
3551
3551
|
{
|
|
3552
3552
|
action: n,
|
|
3553
3553
|
description: r,
|
|
3554
3554
|
dismiss: a,
|
|
3555
3555
|
message: o,
|
|
3556
3556
|
variant: t,
|
|
3557
|
-
children: /* @__PURE__ */
|
|
3558
|
-
/* @__PURE__ */
|
|
3559
|
-
/* @__PURE__ */
|
|
3560
|
-
/* @__PURE__ */
|
|
3557
|
+
children: /* @__PURE__ */ B(hr, { className: e, children: [
|
|
3558
|
+
/* @__PURE__ */ B(xr, { children: [
|
|
3559
|
+
/* @__PURE__ */ i(yr, {}),
|
|
3560
|
+
/* @__PURE__ */ i(wr, {})
|
|
3561
3561
|
] }),
|
|
3562
|
-
/* @__PURE__ */
|
|
3563
|
-
/* @__PURE__ */
|
|
3564
|
-
/* @__PURE__ */
|
|
3562
|
+
/* @__PURE__ */ B(kr, { children: [
|
|
3563
|
+
/* @__PURE__ */ i(Mr, {}),
|
|
3564
|
+
/* @__PURE__ */ i(Er, {})
|
|
3565
3565
|
] })
|
|
3566
3566
|
] })
|
|
3567
3567
|
}
|
|
3568
3568
|
);
|
|
3569
3569
|
}
|
|
3570
|
-
function
|
|
3571
|
-
const { variant: r } =
|
|
3572
|
-
return /* @__PURE__ */
|
|
3570
|
+
function hr({ className: e, children: t, ...o }) {
|
|
3571
|
+
const { variant: r } = ne();
|
|
3572
|
+
return /* @__PURE__ */ i(
|
|
3573
3573
|
"div",
|
|
3574
3574
|
{
|
|
3575
|
-
className:
|
|
3575
|
+
className: x(
|
|
3576
3576
|
"flex max-w-[356px] items-center justify-between gap-2 rounded-xl border border-[var(--alert-border,color-mix(in_oklab,hsl(var(--foreground))_10%,transparent))] py-3 pe-3 ps-4 shadow",
|
|
3577
3577
|
{
|
|
3578
3578
|
success: "bg-[var(--alert-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",
|
|
@@ -3589,8 +3589,8 @@ function cr({ className: e, children: t, ...o }) {
|
|
|
3589
3589
|
}
|
|
3590
3590
|
);
|
|
3591
3591
|
}
|
|
3592
|
-
const
|
|
3593
|
-
function
|
|
3592
|
+
const Ot = ee(void 0);
|
|
3593
|
+
function vr({
|
|
3594
3594
|
children: e,
|
|
3595
3595
|
message: t,
|
|
3596
3596
|
description: o,
|
|
@@ -3598,7 +3598,7 @@ function dr({
|
|
|
3598
3598
|
dismiss: n,
|
|
3599
3599
|
variant: a
|
|
3600
3600
|
}) {
|
|
3601
|
-
const s =
|
|
3601
|
+
const s = te(
|
|
3602
3602
|
() => ({
|
|
3603
3603
|
message: t,
|
|
3604
3604
|
description: o,
|
|
@@ -3608,31 +3608,31 @@ function dr({
|
|
|
3608
3608
|
}),
|
|
3609
3609
|
[t, o, r, n, a]
|
|
3610
3610
|
);
|
|
3611
|
-
return /* @__PURE__ */
|
|
3611
|
+
return /* @__PURE__ */ i(Ot.Provider, { value: s, children: e });
|
|
3612
3612
|
}
|
|
3613
|
-
function
|
|
3614
|
-
const e =
|
|
3613
|
+
function ne() {
|
|
3614
|
+
const e = oe(Ot);
|
|
3615
3615
|
if (e === void 0)
|
|
3616
3616
|
throw new Error("useAlert must be used within a AlertProvider");
|
|
3617
3617
|
return e;
|
|
3618
3618
|
}
|
|
3619
|
-
function
|
|
3620
|
-
return /* @__PURE__ */
|
|
3619
|
+
function xr({ children: e, className: t, ...o }) {
|
|
3620
|
+
return /* @__PURE__ */ i(
|
|
3621
3621
|
"div",
|
|
3622
3622
|
{
|
|
3623
|
-
className:
|
|
3623
|
+
className: x("[font-family:var(--alert-font-family,var(--font-family-body))]", t),
|
|
3624
3624
|
"data-slot": "alert-header",
|
|
3625
3625
|
...o,
|
|
3626
3626
|
children: e
|
|
3627
3627
|
}
|
|
3628
3628
|
);
|
|
3629
3629
|
}
|
|
3630
|
-
function
|
|
3631
|
-
const { message: r } =
|
|
3632
|
-
return /* @__PURE__ */
|
|
3630
|
+
function yr({ children: e, className: t, ...o }) {
|
|
3631
|
+
const { message: r } = ne();
|
|
3632
|
+
return /* @__PURE__ */ i(
|
|
3633
3633
|
"h5",
|
|
3634
3634
|
{
|
|
3635
|
-
className:
|
|
3635
|
+
className: x(
|
|
3636
3636
|
"text-sm font-normal text-[var(--alert-message-text,hsl(var(--foreground)))]",
|
|
3637
3637
|
t
|
|
3638
3638
|
),
|
|
@@ -3642,12 +3642,12 @@ function fr({ children: e, className: t, ...o }) {
|
|
|
3642
3642
|
}
|
|
3643
3643
|
);
|
|
3644
3644
|
}
|
|
3645
|
-
function
|
|
3646
|
-
const { description: o } =
|
|
3647
|
-
return /* @__PURE__ */
|
|
3645
|
+
function wr({ className: e, ...t }) {
|
|
3646
|
+
const { description: o } = ne();
|
|
3647
|
+
return /* @__PURE__ */ i(
|
|
3648
3648
|
"p",
|
|
3649
3649
|
{
|
|
3650
|
-
className:
|
|
3650
|
+
className: x(
|
|
3651
3651
|
"text-xs font-medium text-[color:var(--alert-description-text,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))]",
|
|
3652
3652
|
e
|
|
3653
3653
|
),
|
|
@@ -3657,8 +3657,8 @@ function mr({ className: e, ...t }) {
|
|
|
3657
3657
|
}
|
|
3658
3658
|
);
|
|
3659
3659
|
}
|
|
3660
|
-
function
|
|
3661
|
-
return /* @__PURE__ */
|
|
3660
|
+
function kr({ children: e, className: t, ...o }) {
|
|
3661
|
+
return /* @__PURE__ */ i("div", { className: x("flex items-center gap-1", t), "data-slot": "alert-actions", ...o, children: e });
|
|
3662
3662
|
}
|
|
3663
3663
|
/**
|
|
3664
3664
|
* @license lucide-react v0.545.0 - ISC
|
|
@@ -3666,13 +3666,13 @@ function pr({ children: e, className: t, ...o }) {
|
|
|
3666
3666
|
* This source code is licensed under the ISC license.
|
|
3667
3667
|
* See the LICENSE file in the root directory of this source tree.
|
|
3668
3668
|
*/
|
|
3669
|
-
const
|
|
3669
|
+
const Cr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ar = (e) => e.replace(
|
|
3670
3670
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3671
3671
|
(t, o, r) => r ? r.toUpperCase() : o.toLowerCase()
|
|
3672
|
-
),
|
|
3673
|
-
const t =
|
|
3672
|
+
), Qe = (e) => {
|
|
3673
|
+
const t = Ar(e);
|
|
3674
3674
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3675
|
-
},
|
|
3675
|
+
}, Bt = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t) === o).join(" ").trim(), Nr = (e) => {
|
|
3676
3676
|
for (const t in e)
|
|
3677
3677
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3678
3678
|
return !0;
|
|
@@ -3683,7 +3683,7 @@ const gr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), br = (
|
|
|
3683
3683
|
* This source code is licensed under the ISC license.
|
|
3684
3684
|
* See the LICENSE file in the root directory of this source tree.
|
|
3685
3685
|
*/
|
|
3686
|
-
var
|
|
3686
|
+
var Pr = {
|
|
3687
3687
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3688
3688
|
width: 24,
|
|
3689
3689
|
height: 24,
|
|
@@ -3700,7 +3700,7 @@ var vr = {
|
|
|
3700
3700
|
* This source code is licensed under the ISC license.
|
|
3701
3701
|
* See the LICENSE file in the root directory of this source tree.
|
|
3702
3702
|
*/
|
|
3703
|
-
const
|
|
3703
|
+
const Ir = tt(
|
|
3704
3704
|
({
|
|
3705
3705
|
color: e = "currentColor",
|
|
3706
3706
|
size: t = 24,
|
|
@@ -3709,22 +3709,22 @@ const xr = Je(
|
|
|
3709
3709
|
className: n = "",
|
|
3710
3710
|
children: a,
|
|
3711
3711
|
iconNode: s,
|
|
3712
|
-
...
|
|
3713
|
-
},
|
|
3712
|
+
...l
|
|
3713
|
+
}, c) => Ce(
|
|
3714
3714
|
"svg",
|
|
3715
3715
|
{
|
|
3716
|
-
ref:
|
|
3717
|
-
...
|
|
3716
|
+
ref: c,
|
|
3717
|
+
...Pr,
|
|
3718
3718
|
width: t,
|
|
3719
3719
|
height: t,
|
|
3720
3720
|
stroke: e,
|
|
3721
3721
|
strokeWidth: r ? Number(o) * 24 / Number(t) : o,
|
|
3722
|
-
className:
|
|
3723
|
-
...!a && !
|
|
3724
|
-
...
|
|
3722
|
+
className: Bt("lucide", n),
|
|
3723
|
+
...!a && !Nr(l) && { "aria-hidden": "true" },
|
|
3724
|
+
...l
|
|
3725
3725
|
},
|
|
3726
3726
|
[
|
|
3727
|
-
...s.map(([
|
|
3727
|
+
...s.map(([m, p]) => Ce(m, p)),
|
|
3728
3728
|
...Array.isArray(a) ? a : [a]
|
|
3729
3729
|
]
|
|
3730
3730
|
)
|
|
@@ -3735,20 +3735,20 @@ const xr = Je(
|
|
|
3735
3735
|
* This source code is licensed under the ISC license.
|
|
3736
3736
|
* See the LICENSE file in the root directory of this source tree.
|
|
3737
3737
|
*/
|
|
3738
|
-
const
|
|
3739
|
-
const o =
|
|
3740
|
-
({ className: r, ...n }, a) =>
|
|
3738
|
+
const Lt = (e, t) => {
|
|
3739
|
+
const o = tt(
|
|
3740
|
+
({ className: r, ...n }, a) => Ce(Ir, {
|
|
3741
3741
|
ref: a,
|
|
3742
3742
|
iconNode: t,
|
|
3743
|
-
className:
|
|
3744
|
-
`lucide-${
|
|
3743
|
+
className: Bt(
|
|
3744
|
+
`lucide-${Cr(Qe(e))}`,
|
|
3745
3745
|
`lucide-${e}`,
|
|
3746
3746
|
r
|
|
3747
3747
|
),
|
|
3748
3748
|
...n
|
|
3749
3749
|
})
|
|
3750
3750
|
);
|
|
3751
|
-
return o.displayName =
|
|
3751
|
+
return o.displayName = Qe(e), o;
|
|
3752
3752
|
};
|
|
3753
3753
|
/**
|
|
3754
3754
|
* @license lucide-react v0.545.0 - ISC
|
|
@@ -3756,18 +3756,18 @@ const zt = (e, t) => {
|
|
|
3756
3756
|
* This source code is licensed under the ISC license.
|
|
3757
3757
|
* See the LICENSE file in the root directory of this source tree.
|
|
3758
3758
|
*/
|
|
3759
|
-
const
|
|
3759
|
+
const _r = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Rr = Lt("loader-circle", _r);
|
|
3760
3760
|
/**
|
|
3761
3761
|
* @license lucide-react v0.545.0 - ISC
|
|
3762
3762
|
*
|
|
3763
3763
|
* This source code is licensed under the ISC license.
|
|
3764
3764
|
* See the LICENSE file in the root directory of this source tree.
|
|
3765
3765
|
*/
|
|
3766
|
-
const
|
|
3766
|
+
const Sr = [
|
|
3767
3767
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3768
3768
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3769
|
-
],
|
|
3770
|
-
function
|
|
3769
|
+
], Dt = Lt("x", Sr);
|
|
3770
|
+
function $t({
|
|
3771
3771
|
variant: e = "primary",
|
|
3772
3772
|
size: t = "large",
|
|
3773
3773
|
shape: o = "pill",
|
|
@@ -3775,14 +3775,14 @@ function Tt({
|
|
|
3775
3775
|
type: n = "button",
|
|
3776
3776
|
disabled: a = !1,
|
|
3777
3777
|
className: s,
|
|
3778
|
-
children:
|
|
3779
|
-
...
|
|
3778
|
+
children: l,
|
|
3779
|
+
...c
|
|
3780
3780
|
}) {
|
|
3781
|
-
return /* @__PURE__ */
|
|
3781
|
+
return /* @__PURE__ */ B(
|
|
3782
3782
|
"button",
|
|
3783
3783
|
{
|
|
3784
3784
|
"aria-busy": r,
|
|
3785
|
-
className:
|
|
3785
|
+
className: x(
|
|
3786
3786
|
"after:ease-[cubic-bezier(0,0.25,0,1)] relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-body font-semibold leading-normal after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition-[opacity,transform] after:duration-300 focus-visible:outline-2 focus-visible:outline-[var(--button-focus,hsl(var(--primary)))] disabled:pointer-events-none disabled:opacity-30",
|
|
3787
3787
|
{
|
|
3788
3788
|
primary: "border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))] focus-visible:outline-offset-2",
|
|
@@ -3804,12 +3804,12 @@ function Tt({
|
|
|
3804
3804
|
"data-slot": "button",
|
|
3805
3805
|
disabled: a,
|
|
3806
3806
|
type: n,
|
|
3807
|
-
...
|
|
3807
|
+
...c,
|
|
3808
3808
|
children: [
|
|
3809
|
-
/* @__PURE__ */
|
|
3809
|
+
/* @__PURE__ */ i(
|
|
3810
3810
|
"span",
|
|
3811
3811
|
{
|
|
3812
|
-
className:
|
|
3812
|
+
className: x(
|
|
3813
3813
|
"inline-flex items-center justify-center transition-all duration-300 ease-in-out",
|
|
3814
3814
|
r ? "-translate-y-10 opacity-0" : "translate-y-0 opacity-100",
|
|
3815
3815
|
o === "circle" && "aspect-square",
|
|
@@ -3827,20 +3827,20 @@ function Tt({
|
|
|
3827
3827
|
}[t],
|
|
3828
3828
|
e === "secondary" && "mix-blend-difference"
|
|
3829
3829
|
),
|
|
3830
|
-
children:
|
|
3830
|
+
children: l
|
|
3831
3831
|
}
|
|
3832
3832
|
),
|
|
3833
|
-
/* @__PURE__ */
|
|
3833
|
+
/* @__PURE__ */ i(
|
|
3834
3834
|
"span",
|
|
3835
3835
|
{
|
|
3836
|
-
className:
|
|
3836
|
+
className: x(
|
|
3837
3837
|
"absolute inset-0 grid place-content-center transition-all duration-300 ease-in-out",
|
|
3838
3838
|
r ? "translate-y-0 opacity-100" : "translate-y-10 opacity-0"
|
|
3839
3839
|
),
|
|
3840
|
-
children: /* @__PURE__ */
|
|
3841
|
-
|
|
3840
|
+
children: /* @__PURE__ */ i(
|
|
3841
|
+
Rr,
|
|
3842
3842
|
{
|
|
3843
|
-
className:
|
|
3843
|
+
className: x(
|
|
3844
3844
|
"animate-spin",
|
|
3845
3845
|
e === "tertiary" && "text-[var(--button-loader-icon,hsl(var(--foreground)))]"
|
|
3846
3846
|
)
|
|
@@ -3852,16 +3852,16 @@ function Tt({
|
|
|
3852
3852
|
}
|
|
3853
3853
|
);
|
|
3854
3854
|
}
|
|
3855
|
-
function
|
|
3856
|
-
const { action: o } =
|
|
3855
|
+
function Mr({ children: e, ...t }) {
|
|
3856
|
+
const { action: o } = ne();
|
|
3857
3857
|
if (!o) return null;
|
|
3858
3858
|
const { label: r, onClick: n } = o;
|
|
3859
|
-
return /* @__PURE__ */
|
|
3859
|
+
return /* @__PURE__ */ i($t, { "data-slot": "alert-button", onClick: n, size: "x-small", variant: "ghost", ...t, children: r });
|
|
3860
3860
|
}
|
|
3861
|
-
function
|
|
3862
|
-
const { dismiss: t } =
|
|
3863
|
-
return /* @__PURE__ */
|
|
3864
|
-
|
|
3861
|
+
function Er({ ...e }) {
|
|
3862
|
+
const { dismiss: t } = ne(), { label: o, onClick: r } = t;
|
|
3863
|
+
return /* @__PURE__ */ i(
|
|
3864
|
+
$t,
|
|
3865
3865
|
{
|
|
3866
3866
|
"aria-label": o,
|
|
3867
3867
|
"data-slot": "alert-close-button",
|
|
@@ -3870,15 +3870,15 @@ function Rr({ ...e }) {
|
|
|
3870
3870
|
size: "x-small",
|
|
3871
3871
|
variant: "ghost",
|
|
3872
3872
|
...e,
|
|
3873
|
-
children: /* @__PURE__ */
|
|
3873
|
+
children: /* @__PURE__ */ i(Dt, { size: 20, strokeWidth: 1 })
|
|
3874
3874
|
}
|
|
3875
3875
|
);
|
|
3876
3876
|
}
|
|
3877
|
-
function
|
|
3878
|
-
return /* @__PURE__ */
|
|
3877
|
+
function Qr({ className: e, children: t, ...o }) {
|
|
3878
|
+
return /* @__PURE__ */ i(
|
|
3879
3879
|
"span",
|
|
3880
3880
|
{
|
|
3881
|
-
className:
|
|
3881
|
+
className: x(
|
|
3882
3882
|
"origin-left font-semibold leading-normal text-[var(--animated-underline-text,hsl(var(--foreground)))] transition-[background-size] duration-300 [background:linear-gradient(0deg,var(--animated-underline-hover,hsl(var(--primary))),var(--animated-underline-hover,hsl(var(--primary))))_no-repeat_left_bottom_/_0_2px] [font-family:var(--animated-underline-font-family,var(--font-family-body))] hover:bg-[size:100%_2px] group-focus/underline:bg-[size:100%_2px]",
|
|
3883
3883
|
e
|
|
3884
3884
|
),
|
|
@@ -3887,17 +3887,17 @@ function Mr({ className: e, children: t, ...o }) {
|
|
|
3887
3887
|
}
|
|
3888
3888
|
);
|
|
3889
3889
|
}
|
|
3890
|
-
function
|
|
3890
|
+
function en({
|
|
3891
3891
|
children: e,
|
|
3892
3892
|
shape: t = "rounded",
|
|
3893
3893
|
className: o,
|
|
3894
3894
|
variant: r = "primary",
|
|
3895
3895
|
...n
|
|
3896
3896
|
}) {
|
|
3897
|
-
return /* @__PURE__ */
|
|
3897
|
+
return /* @__PURE__ */ i(
|
|
3898
3898
|
"span",
|
|
3899
3899
|
{
|
|
3900
|
-
className:
|
|
3900
|
+
className: x(
|
|
3901
3901
|
"px-2 py-0.5 text-xs uppercase tracking-tighter text-[var(--badge-text,hsl(var(--foreground)))] [font-family:var(--badge-font-family,var(--font-family-mono))]",
|
|
3902
3902
|
{
|
|
3903
3903
|
pill: "rounded-full",
|
|
@@ -3917,26 +3917,400 @@ function Er({
|
|
|
3917
3917
|
}
|
|
3918
3918
|
);
|
|
3919
3919
|
}
|
|
3920
|
+
const tn = ({
|
|
3921
|
+
id: e,
|
|
3922
|
+
children: t,
|
|
3923
|
+
hideDismiss: o = !1,
|
|
3924
|
+
className: r,
|
|
3925
|
+
onDismiss: n
|
|
3926
|
+
}) => /* @__PURE__ */ i(zr, { hideDismiss: o, id: e, onDismiss: n, children: /* @__PURE__ */ i(Tr, { className: r, children: /* @__PURE__ */ B(Or, { children: [
|
|
3927
|
+
/* @__PURE__ */ i(Br, { children: t }),
|
|
3928
|
+
/* @__PURE__ */ i(Lr, {})
|
|
3929
|
+
] }) }) }), Vt = ee(void 0);
|
|
3930
|
+
function zr({ id: e, hideDismiss: t, onDismiss: o, children: r }) {
|
|
3931
|
+
const [n, a] = ke(!1), [s, l] = ke(!1);
|
|
3932
|
+
et(() => {
|
|
3933
|
+
const p = localStorage.getItem(`${e}-hidden-banner`) === "true";
|
|
3934
|
+
a(p), l(!0);
|
|
3935
|
+
}, [e]);
|
|
3936
|
+
const c = Ft(() => {
|
|
3937
|
+
a(!0), localStorage.setItem(`${e}-hidden-banner`, "true"), o?.();
|
|
3938
|
+
}, [e, o]), m = te(
|
|
3939
|
+
() => ({
|
|
3940
|
+
id: e,
|
|
3941
|
+
isInitialized: s,
|
|
3942
|
+
isDismissed: n,
|
|
3943
|
+
hideDismiss: t,
|
|
3944
|
+
handleDismiss: c
|
|
3945
|
+
}),
|
|
3946
|
+
[e, s, n, t, c]
|
|
3947
|
+
);
|
|
3948
|
+
return /* @__PURE__ */ i(Vt.Provider, { value: m, children: s ? r : null });
|
|
3949
|
+
}
|
|
3950
|
+
function Gt() {
|
|
3951
|
+
const e = oe(Vt);
|
|
3952
|
+
if (e === void 0)
|
|
3953
|
+
throw new Error("useBanner must be used within a BannerProvider");
|
|
3954
|
+
return e;
|
|
3955
|
+
}
|
|
3956
|
+
function Tr({ children: e, className: t, ...o }) {
|
|
3957
|
+
const { id: r, isDismissed: n } = Gt();
|
|
3958
|
+
return /* @__PURE__ */ i(
|
|
3959
|
+
"div",
|
|
3960
|
+
{
|
|
3961
|
+
className: x(
|
|
3962
|
+
"overflow-hidden bg-[var(--banner-background,hsl(var(--primary)))] transition-all duration-300 ease-in @container",
|
|
3963
|
+
n ? "pointer-events-none max-h-0" : "max-h-32",
|
|
3964
|
+
t
|
|
3965
|
+
),
|
|
3966
|
+
"data-slot": "banner-root",
|
|
3967
|
+
id: r,
|
|
3968
|
+
...o,
|
|
3969
|
+
children: e
|
|
3970
|
+
}
|
|
3971
|
+
);
|
|
3972
|
+
}
|
|
3973
|
+
function Or({ className: e, children: t }) {
|
|
3974
|
+
return /* @__PURE__ */ i(
|
|
3975
|
+
"div",
|
|
3976
|
+
{
|
|
3977
|
+
className: x("flex items-center justify-between gap-4 px-8 py-3", e),
|
|
3978
|
+
"data-slot": "banner-content",
|
|
3979
|
+
children: t
|
|
3980
|
+
}
|
|
3981
|
+
);
|
|
3982
|
+
}
|
|
3983
|
+
function Br({ children: e, className: t, ...o }) {
|
|
3984
|
+
return /* @__PURE__ */ i(
|
|
3985
|
+
"div",
|
|
3986
|
+
{
|
|
3987
|
+
className: x(
|
|
3988
|
+
"flex-1 text-sm text-[var(--banner-text,hsl(var(--foreground)))] [font-family:var(--banner-font-family,var(--font-family-body))] @xl:text-center @xl:text-base",
|
|
3989
|
+
t
|
|
3990
|
+
),
|
|
3991
|
+
"data-slot": "banner-text",
|
|
3992
|
+
...o,
|
|
3993
|
+
children: e
|
|
3994
|
+
}
|
|
3995
|
+
);
|
|
3996
|
+
}
|
|
3997
|
+
function Lr({ className: e, ...t }) {
|
|
3998
|
+
const { hideDismiss: o, handleDismiss: r } = Gt();
|
|
3999
|
+
return o ? null : /* @__PURE__ */ i(
|
|
4000
|
+
"button",
|
|
4001
|
+
{
|
|
4002
|
+
"aria-label": "Dismiss banner",
|
|
4003
|
+
className: x(
|
|
4004
|
+
"flex h-8 w-8 items-center justify-center rounded-full bg-[var(--banner-close-background,transparent)] text-[var(--banner-close-icon,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] transition-colors duration-300 hover:bg-[var(--banner-close-background-hover,color-mix(in_oklab,hsl(var(--background))_40%,transparent))] hover:text-[var(--banner-close-icon-hover,hsl(var(--foreground)))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--banner-focus,hsl(var(--foreground)))]",
|
|
4005
|
+
e
|
|
4006
|
+
),
|
|
4007
|
+
"data-slot": "banner-dismiss",
|
|
4008
|
+
onClick: (n) => {
|
|
4009
|
+
n.preventDefault(), r();
|
|
4010
|
+
},
|
|
4011
|
+
...t,
|
|
4012
|
+
children: /* @__PURE__ */ i(Dt, { absoluteStrokeWidth: !0, size: 20, strokeWidth: 1.5 })
|
|
4013
|
+
}
|
|
4014
|
+
);
|
|
4015
|
+
}
|
|
4016
|
+
function on({
|
|
4017
|
+
author: e,
|
|
4018
|
+
content: t,
|
|
4019
|
+
date: o,
|
|
4020
|
+
link: r,
|
|
4021
|
+
image: n,
|
|
4022
|
+
title: a,
|
|
4023
|
+
className: s
|
|
4024
|
+
}) {
|
|
4025
|
+
return /* @__PURE__ */ i(
|
|
4026
|
+
Dr,
|
|
4027
|
+
{
|
|
4028
|
+
author: e,
|
|
4029
|
+
content: t,
|
|
4030
|
+
date: o,
|
|
4031
|
+
image: n,
|
|
4032
|
+
link: r,
|
|
4033
|
+
title: a,
|
|
4034
|
+
children: /* @__PURE__ */ B($r, { className: s, children: [
|
|
4035
|
+
/* @__PURE__ */ i(Vr, {}),
|
|
4036
|
+
/* @__PURE__ */ i(jr, {}),
|
|
4037
|
+
/* @__PURE__ */ i(Ur, {}),
|
|
4038
|
+
/* @__PURE__ */ B(Fr, { children: [
|
|
4039
|
+
/* @__PURE__ */ i(Wr, {}),
|
|
4040
|
+
/* @__PURE__ */ i(Hr, {})
|
|
4041
|
+
] }),
|
|
4042
|
+
/* @__PURE__ */ i(Gr, {})
|
|
4043
|
+
] })
|
|
4044
|
+
}
|
|
4045
|
+
);
|
|
4046
|
+
}
|
|
4047
|
+
const jt = ee(void 0);
|
|
4048
|
+
function Dr({
|
|
4049
|
+
children: e,
|
|
4050
|
+
title: t,
|
|
4051
|
+
author: o,
|
|
4052
|
+
content: r,
|
|
4053
|
+
date: n,
|
|
4054
|
+
image: a,
|
|
4055
|
+
link: s
|
|
4056
|
+
}) {
|
|
4057
|
+
const l = te(
|
|
4058
|
+
() => ({
|
|
4059
|
+
title: t,
|
|
4060
|
+
author: o,
|
|
4061
|
+
content: r,
|
|
4062
|
+
date: n,
|
|
4063
|
+
image: a,
|
|
4064
|
+
link: s
|
|
4065
|
+
}),
|
|
4066
|
+
[t, o, r, n, a, s]
|
|
4067
|
+
);
|
|
4068
|
+
return /* @__PURE__ */ i(jt.Provider, { value: l, children: e });
|
|
4069
|
+
}
|
|
4070
|
+
function Z() {
|
|
4071
|
+
const e = oe(jt);
|
|
4072
|
+
if (e === void 0)
|
|
4073
|
+
throw new Error("useBlogPostCard must be used within a BlogPostCardProvider");
|
|
4074
|
+
return e;
|
|
4075
|
+
}
|
|
4076
|
+
function $r({
|
|
4077
|
+
as: e,
|
|
4078
|
+
className: t,
|
|
4079
|
+
children: o,
|
|
4080
|
+
...r
|
|
4081
|
+
}) {
|
|
4082
|
+
return /* @__PURE__ */ i(
|
|
4083
|
+
e ?? "article",
|
|
4084
|
+
{
|
|
4085
|
+
className: x(
|
|
4086
|
+
"group relative w-full max-w-md @container [font-family:var(--blog-post-card-font-family,var(--font-family-body))]",
|
|
4087
|
+
t
|
|
4088
|
+
),
|
|
4089
|
+
"data-slot": "blog-post-card-root",
|
|
4090
|
+
...r,
|
|
4091
|
+
children: o
|
|
4092
|
+
}
|
|
4093
|
+
);
|
|
4094
|
+
}
|
|
4095
|
+
function rn({ children: e, className: t, ...o }) {
|
|
4096
|
+
return /* @__PURE__ */ i(
|
|
4097
|
+
"div",
|
|
4098
|
+
{
|
|
4099
|
+
className: x(
|
|
4100
|
+
"p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",
|
|
4101
|
+
t
|
|
4102
|
+
),
|
|
4103
|
+
...o,
|
|
4104
|
+
children: e
|
|
4105
|
+
}
|
|
4106
|
+
);
|
|
4107
|
+
}
|
|
4108
|
+
function Vr({ className: e, ...t }) {
|
|
4109
|
+
const { image: o, title: r } = Z(), n = "h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110", a = () => {
|
|
4110
|
+
if (!o)
|
|
4111
|
+
return /* @__PURE__ */ i(
|
|
4112
|
+
"div",
|
|
4113
|
+
{
|
|
4114
|
+
className: x(
|
|
4115
|
+
"p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",
|
|
4116
|
+
e
|
|
4117
|
+
),
|
|
4118
|
+
...t,
|
|
4119
|
+
children: r
|
|
4120
|
+
}
|
|
4121
|
+
);
|
|
4122
|
+
const { src: s, alt: l, render: c } = o;
|
|
4123
|
+
return c ? c({ src: s, alt: l, className: n }) : /* @__PURE__ */ i("img", { alt: l, className: n, src: s });
|
|
4124
|
+
};
|
|
4125
|
+
return /* @__PURE__ */ i(
|
|
4126
|
+
"div",
|
|
4127
|
+
{
|
|
4128
|
+
className: x(
|
|
4129
|
+
"relative aspect-[4/3] w-full overflow-hidden rounded-2xl bg-[var(--blog-post-card-image-background,hsl(var(--contrast-100)))]",
|
|
4130
|
+
e
|
|
4131
|
+
),
|
|
4132
|
+
...t,
|
|
4133
|
+
children: a()
|
|
4134
|
+
}
|
|
4135
|
+
);
|
|
4136
|
+
}
|
|
4137
|
+
function Gr({ className: e, ...t }) {
|
|
4138
|
+
const {
|
|
4139
|
+
link: { href: o, ariaLabel: r, render: n }
|
|
4140
|
+
} = Z(), a = x(
|
|
4141
|
+
"absolute inset-0 rounded-b-lg rounded-t-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--blog-post-card-focus,hsl(var(--primary)))] focus-visible:ring-offset-4",
|
|
4142
|
+
e
|
|
4143
|
+
);
|
|
4144
|
+
return n ? n({ href: o, ariaLabel: r, className: a, ...t }) : /* @__PURE__ */ i("a", { className: a, href: o, ...t, children: /* @__PURE__ */ i("span", { className: "sr-only", children: r }) });
|
|
4145
|
+
}
|
|
4146
|
+
function jr({ className: e, ...t }) {
|
|
4147
|
+
const { title: o } = Z();
|
|
4148
|
+
return /* @__PURE__ */ i(
|
|
4149
|
+
"h5",
|
|
4150
|
+
{
|
|
4151
|
+
className: x(
|
|
4152
|
+
"mt-4 text-lg font-medium leading-snug text-[var(--blog-post-card-title-text,hsl(var(--foreground)))]",
|
|
4153
|
+
e
|
|
4154
|
+
),
|
|
4155
|
+
"data-slot": "blog-post-card-title",
|
|
4156
|
+
...t,
|
|
4157
|
+
children: o
|
|
4158
|
+
}
|
|
4159
|
+
);
|
|
4160
|
+
}
|
|
4161
|
+
function Ur({ className: e, ...t }) {
|
|
4162
|
+
const { content: o } = Z();
|
|
4163
|
+
return /* @__PURE__ */ i(
|
|
4164
|
+
"p",
|
|
4165
|
+
{
|
|
4166
|
+
className: x(
|
|
4167
|
+
"mt-1.5 line-clamp-3 text-sm font-normal text-[var(--blog-post-card-content-text,hsl(var(--contrast-400)))]",
|
|
4168
|
+
e
|
|
4169
|
+
),
|
|
4170
|
+
"data-slot": "blog-post-card-content",
|
|
4171
|
+
...t,
|
|
4172
|
+
children: o
|
|
4173
|
+
}
|
|
4174
|
+
);
|
|
4175
|
+
}
|
|
4176
|
+
function Fr({ children: e, className: t, ...o }) {
|
|
4177
|
+
return /* @__PURE__ */ i(
|
|
4178
|
+
"div",
|
|
4179
|
+
{
|
|
4180
|
+
className: x(
|
|
4181
|
+
"mt-3 text-sm text-[var(--blog-post-card-author-date-text,hsl(var(--foreground)))]",
|
|
4182
|
+
t
|
|
4183
|
+
),
|
|
4184
|
+
"data-slot": "blog-post-card-details",
|
|
4185
|
+
...o,
|
|
4186
|
+
children: e
|
|
4187
|
+
}
|
|
4188
|
+
);
|
|
4189
|
+
}
|
|
4190
|
+
function Wr({ className: e, ...t }) {
|
|
4191
|
+
const { date: o } = Z();
|
|
4192
|
+
return /* @__PURE__ */ i("time", { dateTime: o, ...t, "data-slot": "blog-post-card-date", children: new Date(o).toLocaleDateString("en-US", {
|
|
4193
|
+
year: "numeric",
|
|
4194
|
+
month: "long",
|
|
4195
|
+
day: "numeric"
|
|
4196
|
+
}) });
|
|
4197
|
+
}
|
|
4198
|
+
function Hr({ className: e, ...t }) {
|
|
4199
|
+
const { author: o } = Z();
|
|
4200
|
+
if (o != null)
|
|
4201
|
+
return /* @__PURE__ */ B(Ut, { children: [
|
|
4202
|
+
/* @__PURE__ */ i(
|
|
4203
|
+
"span",
|
|
4204
|
+
{
|
|
4205
|
+
className: x("after:mx-2 after:content-['•']", e),
|
|
4206
|
+
"data-slot": "blog-post-card-author",
|
|
4207
|
+
...t
|
|
4208
|
+
}
|
|
4209
|
+
),
|
|
4210
|
+
/* @__PURE__ */ i("span", { children: o })
|
|
4211
|
+
] });
|
|
4212
|
+
}
|
|
4213
|
+
function qr({ className: e, ...t }) {
|
|
4214
|
+
return /* @__PURE__ */ i(
|
|
4215
|
+
"div",
|
|
4216
|
+
{
|
|
4217
|
+
className: x(
|
|
4218
|
+
"bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]",
|
|
4219
|
+
e
|
|
4220
|
+
),
|
|
4221
|
+
"data-slot": "skeleton-box",
|
|
4222
|
+
...t
|
|
4223
|
+
}
|
|
4224
|
+
);
|
|
4225
|
+
}
|
|
4226
|
+
function J({ characterCount: e = 10, className: t, ...o }) {
|
|
4227
|
+
return /* @__PURE__ */ i(
|
|
4228
|
+
"div",
|
|
4229
|
+
{
|
|
4230
|
+
className: x("flex h-[1lh] items-center", t),
|
|
4231
|
+
"data-slot": "skeleton-text",
|
|
4232
|
+
...o,
|
|
4233
|
+
children: /* @__PURE__ */ i(
|
|
4234
|
+
"div",
|
|
4235
|
+
{
|
|
4236
|
+
className: x(
|
|
4237
|
+
"h-[1ex] max-w-full rounded-[inherit] bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]"
|
|
4238
|
+
),
|
|
4239
|
+
style: { width: e === "full" ? "100%" : `${e}ch` }
|
|
4240
|
+
}
|
|
4241
|
+
)
|
|
4242
|
+
}
|
|
4243
|
+
);
|
|
4244
|
+
}
|
|
4245
|
+
function nn({
|
|
4246
|
+
className: e,
|
|
4247
|
+
aspectRatio: t = "4:3",
|
|
4248
|
+
...o
|
|
4249
|
+
}) {
|
|
4250
|
+
return /* @__PURE__ */ B("div", { className: x("w-full max-w-md", e), ...o, children: [
|
|
4251
|
+
/* @__PURE__ */ i(
|
|
4252
|
+
qr,
|
|
4253
|
+
{
|
|
4254
|
+
className: x(
|
|
4255
|
+
"mb-4 w-full rounded-2xl",
|
|
4256
|
+
{
|
|
4257
|
+
"5:6": "aspect-[5/6]",
|
|
4258
|
+
"3:4": "aspect-[3/4]",
|
|
4259
|
+
"4:3": "aspect-[4/3]",
|
|
4260
|
+
"1:1": "aspect-square"
|
|
4261
|
+
}[t]
|
|
4262
|
+
)
|
|
4263
|
+
}
|
|
4264
|
+
),
|
|
4265
|
+
/* @__PURE__ */ i(J, { characterCount: 25, className: "mt-4 rounded text-lg" }),
|
|
4266
|
+
/* @__PURE__ */ B("div", { className: "mt-1.5", children: [
|
|
4267
|
+
/* @__PURE__ */ i(J, { characterCount: "full", className: "rounded text-sm" }),
|
|
4268
|
+
/* @__PURE__ */ i(J, { characterCount: "full", className: "rounded text-sm" }),
|
|
4269
|
+
/* @__PURE__ */ i(J, { characterCount: 15, className: "rounded text-sm" })
|
|
4270
|
+
] }),
|
|
4271
|
+
/* @__PURE__ */ i(J, { characterCount: 10, className: "mt-3 rounded text-sm" })
|
|
4272
|
+
] });
|
|
4273
|
+
}
|
|
3920
4274
|
export {
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
4275
|
+
Jr as Accordion,
|
|
4276
|
+
fr as AccordionContent,
|
|
4277
|
+
ur as AccordionItem,
|
|
4278
|
+
gr as AccordionItemProvider,
|
|
4279
|
+
pr as AccordionProvider,
|
|
4280
|
+
mr as AccordionRoot,
|
|
4281
|
+
br as AccordionTrigger,
|
|
4282
|
+
Yr as Alert,
|
|
4283
|
+
kr as AlertActions,
|
|
4284
|
+
Mr as AlertButton,
|
|
4285
|
+
Er as AlertCloseButton,
|
|
4286
|
+
wr as AlertDescription,
|
|
4287
|
+
xr as AlertHeader,
|
|
4288
|
+
hr as AlertRoot,
|
|
4289
|
+
yr as AlertTitle,
|
|
4290
|
+
Qr as AnimatedUnderline,
|
|
4291
|
+
en as Badge,
|
|
4292
|
+
tn as Banner,
|
|
4293
|
+
Or as BannerContent,
|
|
4294
|
+
Lr as BannerDismiss,
|
|
4295
|
+
zr as BannerProvider,
|
|
4296
|
+
Tr as BannerRoot,
|
|
4297
|
+
Br as BannerText,
|
|
4298
|
+
on as BlogPostCard,
|
|
4299
|
+
Hr as BlogPostCardAuthor,
|
|
4300
|
+
Ur as BlogPostCardContent,
|
|
4301
|
+
Wr as BlogPostCardDate,
|
|
4302
|
+
Fr as BlogPostCardDetails,
|
|
4303
|
+
rn as BlogPostCardFallback,
|
|
4304
|
+
Vr as BlogPostCardImage,
|
|
4305
|
+
Gr as BlogPostCardLink,
|
|
4306
|
+
Dr as BlogPostCardProvider,
|
|
4307
|
+
$r as BlogPostCardRoot,
|
|
4308
|
+
nn as BlogPostCardSkeleton,
|
|
4309
|
+
jr as BlogPostCardTitle,
|
|
4310
|
+
$t as Button,
|
|
4311
|
+
De as useAccordion,
|
|
4312
|
+
$e as useAccordionItem,
|
|
4313
|
+
Gt as useBanner,
|
|
4314
|
+
Z as useBlogPostCard
|
|
3941
4315
|
};
|
|
3942
4316
|
//# sourceMappingURL=index.js.map
|