commerce-toolkit 0.0.12 → 0.0.13
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/accordion/accordion.d.ts +19 -10
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.d.ts.map +1 -1
- package/dist/components/accordion/primitives/accordion-content.d.ts +1 -1
- package/dist/components/accordion/primitives/accordion-content.d.ts.map +1 -1
- package/dist/components/accordion/primitives/accordion-item.d.ts +2 -2
- package/dist/components/accordion/primitives/accordion-item.d.ts.map +1 -1
- package/dist/components/accordion/primitives/accordion-provider.d.ts +20 -4
- package/dist/components/accordion/primitives/accordion-provider.d.ts.map +1 -1
- package/dist/components/accordion/primitives/accordion-root.d.ts +1 -1
- package/dist/components/accordion/primitives/accordion-root.d.ts.map +1 -1
- package/dist/components/accordion/primitives/accordion-trigger.d.ts +2 -2
- package/dist/components/accordion/primitives/accordion-trigger.d.ts.map +1 -1
- package/dist/components/alert/alert.d.ts +8 -8
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/alert/index.d.ts.map +1 -1
- package/dist/components/alert/primitives/alert-button.d.ts +1 -1
- package/dist/components/alert/primitives/alert-button.d.ts.map +1 -1
- package/dist/components/alert/primitives/alert-close-button.d.ts.map +1 -1
- package/dist/components/alert/primitives/alert-description.d.ts +1 -1
- package/dist/components/alert/primitives/alert-description.d.ts.map +1 -1
- package/dist/components/alert/primitives/alert-provider.d.ts +21 -0
- package/dist/components/alert/primitives/alert-provider.d.ts.map +1 -0
- package/dist/components/alert/primitives/alert-root.d.ts +2 -4
- package/dist/components/alert/primitives/alert-root.d.ts.map +1 -1
- package/dist/components/alert/primitives/alert-title.d.ts.map +1 -1
- package/dist/components/banner/banner.d.ts +8 -2
- package/dist/components/banner/banner.d.ts.map +1 -1
- package/dist/components/banner/index.d.ts +1 -1
- package/dist/components/banner/index.d.ts.map +1 -1
- package/dist/components/banner/primitives/banner-provider.d.ts +8 -11
- package/dist/components/banner/primitives/banner-provider.d.ts.map +1 -1
- package/dist/components/banner/primitives/banner-root.d.ts.map +1 -1
- package/dist/components/blog-post-card/blog-post-card.d.ts +26 -2
- package/dist/components/blog-post-card/blog-post-card.d.ts.map +1 -1
- package/dist/components/blog-post-card/index.d.ts +2 -1
- package/dist/components/blog-post-card/index.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-author.d.ts +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-author.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-fallback.d.ts +4 -0
- package/dist/components/blog-post-card/primitives/blog-post-card-fallback.d.ts.map +1 -0
- package/dist/components/blog-post-card/primitives/blog-post-card-link.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-provider.d.ts +2 -25
- package/dist/components/blog-post-card/primitives/blog-post-card-provider.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-title.d.ts.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +579 -477
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as c, jsxs as W } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import
|
|
3
|
+
import N, { useState as Ot, useEffect as Lt, createContext as Ce, useMemo as Ae, use as Re, forwardRef as Je, createElement as he } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
function Sr({ className: e, colorScheme: t = "light", items: o, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ c(sr, { colorScheme: t, items: o, children: /* @__PURE__ */ c(nr, { className: e, ...r, children: o.map((n) => /* @__PURE__ */ c(
|
|
7
|
+
ir,
|
|
8
|
+
{
|
|
9
|
+
content: n.content,
|
|
10
|
+
title: n.title,
|
|
11
|
+
value: n.value,
|
|
12
|
+
children: /* @__PURE__ */ W(rr, { children: [
|
|
13
|
+
/* @__PURE__ */ c(lr, {}),
|
|
14
|
+
/* @__PURE__ */ c(ar, {})
|
|
15
|
+
] })
|
|
16
|
+
},
|
|
17
|
+
n.value
|
|
18
|
+
)) }) });
|
|
10
19
|
}
|
|
11
|
-
function
|
|
20
|
+
function Ie(e, t = []) {
|
|
12
21
|
let o = [];
|
|
13
22
|
function r(a, s) {
|
|
14
23
|
const i = m.createContext(s), l = o.length;
|
|
15
24
|
o = [...o, s];
|
|
16
25
|
const f = (h) => {
|
|
17
26
|
const { scope: A, children: w, ...C } = h, y = A?.[e]?.[l] || i, k = m.useMemo(() => C, Object.values(C));
|
|
18
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ c(y.Provider, { value: k, children: w });
|
|
19
28
|
};
|
|
20
29
|
f.displayName = a + "Provider";
|
|
21
30
|
function p(h, A) {
|
|
@@ -36,9 +45,9 @@ function ke(e, t = []) {
|
|
|
36
45
|
);
|
|
37
46
|
};
|
|
38
47
|
};
|
|
39
|
-
return n.scopeName = e, [r,
|
|
48
|
+
return n.scopeName = e, [r, $t(n, ...t)];
|
|
40
49
|
}
|
|
41
|
-
function
|
|
50
|
+
function $t(...e) {
|
|
42
51
|
const t = e[0];
|
|
43
52
|
if (e.length === 1) return t;
|
|
44
53
|
const o = () => {
|
|
@@ -56,59 +65,59 @@ function Et(...e) {
|
|
|
56
65
|
};
|
|
57
66
|
return o.scopeName = t.scopeName, o;
|
|
58
67
|
}
|
|
59
|
-
function
|
|
68
|
+
function Be(e, t) {
|
|
60
69
|
if (typeof e == "function")
|
|
61
70
|
return e(t);
|
|
62
71
|
e != null && (e.current = t);
|
|
63
72
|
}
|
|
64
|
-
function
|
|
73
|
+
function Ye(...e) {
|
|
65
74
|
return (t) => {
|
|
66
75
|
let o = !1;
|
|
67
76
|
const r = e.map((n) => {
|
|
68
|
-
const a =
|
|
77
|
+
const a = Be(n, t);
|
|
69
78
|
return !o && typeof a == "function" && (o = !0), a;
|
|
70
79
|
});
|
|
71
80
|
if (o)
|
|
72
81
|
return () => {
|
|
73
82
|
for (let n = 0; n < r.length; n++) {
|
|
74
83
|
const a = r[n];
|
|
75
|
-
typeof a == "function" ? a() :
|
|
84
|
+
typeof a == "function" ? a() : Be(e[n], null);
|
|
76
85
|
}
|
|
77
86
|
};
|
|
78
87
|
};
|
|
79
88
|
}
|
|
80
89
|
function X(...e) {
|
|
81
|
-
return m.useCallback(
|
|
90
|
+
return m.useCallback(Ye(...e), e);
|
|
82
91
|
}
|
|
83
92
|
// @__NO_SIDE_EFFECTS__
|
|
84
|
-
function
|
|
85
|
-
const t = /* @__PURE__ */
|
|
86
|
-
const { children: a, ...s } = r, i = m.Children.toArray(a), l = i.find(
|
|
93
|
+
function ve(e) {
|
|
94
|
+
const t = /* @__PURE__ */ Gt(e), o = m.forwardRef((r, n) => {
|
|
95
|
+
const { children: a, ...s } = r, i = m.Children.toArray(a), l = i.find(Dt);
|
|
87
96
|
if (l) {
|
|
88
97
|
const f = l.props.children, p = i.map((h) => h === l ? m.Children.count(f) > 1 ? m.Children.only(null) : m.isValidElement(f) ? f.props.children : null : h);
|
|
89
|
-
return /* @__PURE__ */
|
|
98
|
+
return /* @__PURE__ */ c(t, { ...s, ref: n, children: m.isValidElement(f) ? m.cloneElement(f, void 0, p) : null });
|
|
90
99
|
}
|
|
91
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ c(t, { ...s, ref: n, children: a });
|
|
92
101
|
});
|
|
93
102
|
return o.displayName = `${e}.Slot`, o;
|
|
94
103
|
}
|
|
95
104
|
// @__NO_SIDE_EFFECTS__
|
|
96
|
-
function
|
|
105
|
+
function Gt(e) {
|
|
97
106
|
const t = m.forwardRef((o, r) => {
|
|
98
107
|
const { children: n, ...a } = o;
|
|
99
108
|
if (m.isValidElement(n)) {
|
|
100
|
-
const s =
|
|
101
|
-
return n.type !== m.Fragment && (i.ref = r ?
|
|
109
|
+
const s = Ut(n), i = jt(a, n.props);
|
|
110
|
+
return n.type !== m.Fragment && (i.ref = r ? Ye(r, s) : s), m.cloneElement(n, i);
|
|
102
111
|
}
|
|
103
112
|
return m.Children.count(n) > 1 ? m.Children.only(null) : null;
|
|
104
113
|
});
|
|
105
114
|
return t.displayName = `${e}.SlotClone`, t;
|
|
106
115
|
}
|
|
107
|
-
var
|
|
108
|
-
function
|
|
109
|
-
return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
116
|
+
var Vt = Symbol("radix.slottable");
|
|
117
|
+
function Dt(e) {
|
|
118
|
+
return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Vt;
|
|
110
119
|
}
|
|
111
|
-
function
|
|
120
|
+
function jt(e, t) {
|
|
112
121
|
const o = { ...t };
|
|
113
122
|
for (const r in t) {
|
|
114
123
|
const n = e[r], a = t[r];
|
|
@@ -119,41 +128,41 @@ function Lt(e, t) {
|
|
|
119
128
|
}
|
|
120
129
|
return { ...e, ...o };
|
|
121
130
|
}
|
|
122
|
-
function
|
|
131
|
+
function Ut(e) {
|
|
123
132
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
124
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);
|
|
125
134
|
}
|
|
126
|
-
function
|
|
127
|
-
const t = e + "CollectionProvider", [o, r] =
|
|
135
|
+
function Ft(e) {
|
|
136
|
+
const t = e + "CollectionProvider", [o, r] = Ie(t), [n, a] = o(
|
|
128
137
|
t,
|
|
129
138
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
130
139
|
), s = (y) => {
|
|
131
|
-
const { scope: k, children: R } = y, x =
|
|
132
|
-
return /* @__PURE__ */
|
|
140
|
+
const { scope: k, children: R } = y, x = N.useRef(null), I = N.useRef(/* @__PURE__ */ new Map()).current;
|
|
141
|
+
return /* @__PURE__ */ c(n, { scope: k, itemMap: I, collectionRef: x, children: R });
|
|
133
142
|
};
|
|
134
143
|
s.displayName = t;
|
|
135
|
-
const i = e + "CollectionSlot", l = /* @__PURE__ */
|
|
144
|
+
const i = e + "CollectionSlot", l = /* @__PURE__ */ ve(i), f = N.forwardRef(
|
|
136
145
|
(y, k) => {
|
|
137
|
-
const { scope: R, children: x } = y,
|
|
138
|
-
return /* @__PURE__ */
|
|
146
|
+
const { scope: R, children: x } = y, I = a(i, R), S = X(k, I.collectionRef);
|
|
147
|
+
return /* @__PURE__ */ c(l, { ref: S, children: x });
|
|
139
148
|
}
|
|
140
149
|
);
|
|
141
150
|
f.displayName = i;
|
|
142
|
-
const p = e + "CollectionItemSlot", h = "data-radix-collection-item", A = /* @__PURE__ */
|
|
151
|
+
const p = e + "CollectionItemSlot", h = "data-radix-collection-item", A = /* @__PURE__ */ ve(p), w = N.forwardRef(
|
|
143
152
|
(y, k) => {
|
|
144
|
-
const { scope: R, children: x, ...
|
|
145
|
-
return
|
|
153
|
+
const { scope: R, children: x, ...I } = y, S = N.useRef(null), T = X(k, S), E = a(p, R);
|
|
154
|
+
return N.useEffect(() => (E.itemMap.set(S, { ref: S, ...I }), () => void E.itemMap.delete(S))), /* @__PURE__ */ c(A, { [h]: "", ref: T, children: x });
|
|
146
155
|
}
|
|
147
156
|
);
|
|
148
157
|
w.displayName = p;
|
|
149
158
|
function C(y) {
|
|
150
159
|
const k = a(e + "CollectionConsumer", y);
|
|
151
|
-
return
|
|
160
|
+
return N.useCallback(() => {
|
|
152
161
|
const x = k.collectionRef.current;
|
|
153
162
|
if (!x) return [];
|
|
154
|
-
const
|
|
163
|
+
const I = Array.from(x.querySelectorAll(`[${h}]`));
|
|
155
164
|
return Array.from(k.itemMap.values()).sort(
|
|
156
|
-
(E, $) =>
|
|
165
|
+
(E, $) => I.indexOf(E.ref.current) - I.indexOf($.ref.current)
|
|
157
166
|
);
|
|
158
167
|
}, [k.collectionRef, k.itemMap]);
|
|
159
168
|
}
|
|
@@ -163,22 +172,22 @@ function Gt(e) {
|
|
|
163
172
|
r
|
|
164
173
|
];
|
|
165
174
|
}
|
|
166
|
-
function
|
|
175
|
+
function Qe(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
|
|
167
176
|
return function(n) {
|
|
168
177
|
if (e?.(n), o === !1 || !n.defaultPrevented)
|
|
169
178
|
return t?.(n);
|
|
170
179
|
};
|
|
171
180
|
}
|
|
172
181
|
var J = globalThis?.document ? m.useLayoutEffect : () => {
|
|
173
|
-
},
|
|
174
|
-
function
|
|
182
|
+
}, Wt = m[" useInsertionEffect ".trim().toString()] || J;
|
|
183
|
+
function Ne({
|
|
175
184
|
prop: e,
|
|
176
185
|
defaultProp: t,
|
|
177
186
|
onChange: o = () => {
|
|
178
187
|
},
|
|
179
188
|
caller: r
|
|
180
189
|
}) {
|
|
181
|
-
const [n, a, s] =
|
|
190
|
+
const [n, a, s] = Bt({
|
|
182
191
|
defaultProp: t,
|
|
183
192
|
onChange: o
|
|
184
193
|
}), i = e !== void 0, l = i ? e : n;
|
|
@@ -194,7 +203,7 @@ function Ce({
|
|
|
194
203
|
const f = m.useCallback(
|
|
195
204
|
(p) => {
|
|
196
205
|
if (i) {
|
|
197
|
-
const h =
|
|
206
|
+
const h = Ht(p) ? p(e) : p;
|
|
198
207
|
h !== e && s.current?.(h);
|
|
199
208
|
} else
|
|
200
209
|
a(p);
|
|
@@ -203,21 +212,21 @@ function Ce({
|
|
|
203
212
|
);
|
|
204
213
|
return [l, f];
|
|
205
214
|
}
|
|
206
|
-
function
|
|
215
|
+
function Bt({
|
|
207
216
|
defaultProp: e,
|
|
208
217
|
onChange: t
|
|
209
218
|
}) {
|
|
210
219
|
const [o, r] = m.useState(e), n = m.useRef(o), a = m.useRef(t);
|
|
211
|
-
return
|
|
220
|
+
return Wt(() => {
|
|
212
221
|
a.current = t;
|
|
213
222
|
}, [t]), m.useEffect(() => {
|
|
214
223
|
n.current !== o && (a.current?.(o), n.current = o);
|
|
215
224
|
}, [o, n]), [o, r, a];
|
|
216
225
|
}
|
|
217
|
-
function
|
|
226
|
+
function Ht(e) {
|
|
218
227
|
return typeof e == "function";
|
|
219
228
|
}
|
|
220
|
-
var
|
|
229
|
+
var qt = [
|
|
221
230
|
"a",
|
|
222
231
|
"button",
|
|
223
232
|
"div",
|
|
@@ -235,23 +244,23 @@ var Ut = [
|
|
|
235
244
|
"span",
|
|
236
245
|
"svg",
|
|
237
246
|
"ul"
|
|
238
|
-
], Y =
|
|
239
|
-
const o = /* @__PURE__ */
|
|
247
|
+
], Y = qt.reduce((e, t) => {
|
|
248
|
+
const o = /* @__PURE__ */ ve(`Primitive.${t}`), r = m.forwardRef((n, a) => {
|
|
240
249
|
const { asChild: s, ...i } = n, l = s ? o : t;
|
|
241
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
250
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(l, { ...i, ref: a });
|
|
242
251
|
});
|
|
243
252
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
244
253
|
}, {});
|
|
245
|
-
function
|
|
254
|
+
function Kt(e, t) {
|
|
246
255
|
return m.useReducer((o, r) => t[o][r] ?? o, e);
|
|
247
256
|
}
|
|
248
|
-
var
|
|
249
|
-
const { present: t, children: o } = e, r =
|
|
257
|
+
var et = (e) => {
|
|
258
|
+
const { present: t, children: o } = e, r = Zt(t), n = typeof o == "function" ? o({ present: r.isPresent }) : m.Children.only(o), a = X(r.ref, Xt(n));
|
|
250
259
|
return typeof o == "function" || r.isPresent ? m.cloneElement(n, { ref: a }) : null;
|
|
251
260
|
};
|
|
252
|
-
|
|
253
|
-
function
|
|
254
|
-
const [t, o] = m.useState(), r = m.useRef(null), n = m.useRef(e), a = m.useRef("none"), s = e ? "mounted" : "unmounted", [i, l] =
|
|
261
|
+
et.displayName = "Presence";
|
|
262
|
+
function Zt(e) {
|
|
263
|
+
const [t, o] = m.useState(), r = m.useRef(null), n = m.useRef(e), a = m.useRef("none"), s = e ? "mounted" : "unmounted", [i, l] = Kt(s, {
|
|
255
264
|
mounted: {
|
|
256
265
|
UNMOUNT: "unmounted",
|
|
257
266
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -265,19 +274,19 @@ function Wt(e) {
|
|
|
265
274
|
}
|
|
266
275
|
});
|
|
267
276
|
return m.useEffect(() => {
|
|
268
|
-
const f =
|
|
277
|
+
const f = ae(r.current);
|
|
269
278
|
a.current = i === "mounted" ? f : "none";
|
|
270
279
|
}, [i]), J(() => {
|
|
271
280
|
const f = r.current, p = n.current;
|
|
272
281
|
if (p !== e) {
|
|
273
|
-
const A = a.current, w =
|
|
282
|
+
const A = a.current, w = ae(f);
|
|
274
283
|
e ? l("MOUNT") : w === "none" || f?.display === "none" ? l("UNMOUNT") : l(p && A !== w ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
|
|
275
284
|
}
|
|
276
285
|
}, [e, l]), J(() => {
|
|
277
286
|
if (t) {
|
|
278
287
|
let f;
|
|
279
288
|
const p = t.ownerDocument.defaultView ?? window, h = (w) => {
|
|
280
|
-
const y =
|
|
289
|
+
const y = ae(r.current).includes(CSS.escape(w.animationName));
|
|
281
290
|
if (w.target === t && y && (l("ANIMATION_END"), !n.current)) {
|
|
282
291
|
const k = t.style.animationFillMode;
|
|
283
292
|
t.style.animationFillMode = "forwards", f = p.setTimeout(() => {
|
|
@@ -285,7 +294,7 @@ function Wt(e) {
|
|
|
285
294
|
});
|
|
286
295
|
}
|
|
287
296
|
}, A = (w) => {
|
|
288
|
-
w.target === t && (a.current =
|
|
297
|
+
w.target === t && (a.current = ae(r.current));
|
|
289
298
|
};
|
|
290
299
|
return t.addEventListener("animationstart", A), t.addEventListener("animationcancel", h), t.addEventListener("animationend", h), () => {
|
|
291
300
|
p.clearTimeout(f), t.removeEventListener("animationstart", A), t.removeEventListener("animationcancel", h), t.removeEventListener("animationend", h);
|
|
@@ -299,22 +308,22 @@ function Wt(e) {
|
|
|
299
308
|
}, [])
|
|
300
309
|
};
|
|
301
310
|
}
|
|
302
|
-
function
|
|
311
|
+
function ae(e) {
|
|
303
312
|
return e?.animationName || "none";
|
|
304
313
|
}
|
|
305
|
-
function
|
|
314
|
+
function Xt(e) {
|
|
306
315
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
307
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);
|
|
308
317
|
}
|
|
309
|
-
var
|
|
310
|
-
}),
|
|
311
|
-
function
|
|
312
|
-
const [t, o] = m.useState(
|
|
318
|
+
var Jt = m[" useId ".trim().toString()] || (() => {
|
|
319
|
+
}), Yt = 0;
|
|
320
|
+
function tt(e) {
|
|
321
|
+
const [t, o] = m.useState(Jt());
|
|
313
322
|
return J(() => {
|
|
314
|
-
o((r) => r ?? String(
|
|
323
|
+
o((r) => r ?? String(Yt++));
|
|
315
324
|
}, [e]), t ? `radix-${t}` : "";
|
|
316
325
|
}
|
|
317
|
-
var
|
|
326
|
+
var ce = "Collapsible", [Qt, ot] = Ie(ce), [eo, _e] = Qt(ce), rt = m.forwardRef(
|
|
318
327
|
(e, t) => {
|
|
319
328
|
const {
|
|
320
329
|
__scopeCollapsible: o,
|
|
@@ -323,24 +332,24 @@ var le = "Collapsible", [Kt, Je] = ke(le), [Zt, Ae] = Kt(le), Ye = m.forwardRef(
|
|
|
323
332
|
disabled: a,
|
|
324
333
|
onOpenChange: s,
|
|
325
334
|
...i
|
|
326
|
-
} = e, [l, f] =
|
|
335
|
+
} = e, [l, f] = Ne({
|
|
327
336
|
prop: r,
|
|
328
337
|
defaultProp: n ?? !1,
|
|
329
338
|
onChange: s,
|
|
330
|
-
caller:
|
|
339
|
+
caller: ce
|
|
331
340
|
});
|
|
332
|
-
return /* @__PURE__ */
|
|
333
|
-
|
|
341
|
+
return /* @__PURE__ */ c(
|
|
342
|
+
eo,
|
|
334
343
|
{
|
|
335
344
|
scope: o,
|
|
336
345
|
disabled: a,
|
|
337
|
-
contentId:
|
|
346
|
+
contentId: tt(),
|
|
338
347
|
open: l,
|
|
339
348
|
onOpenToggle: m.useCallback(() => f((p) => !p), [f]),
|
|
340
|
-
children: /* @__PURE__ */
|
|
349
|
+
children: /* @__PURE__ */ c(
|
|
341
350
|
Y.div,
|
|
342
351
|
{
|
|
343
|
-
"data-state":
|
|
352
|
+
"data-state": Pe(l),
|
|
344
353
|
"data-disabled": a ? "" : void 0,
|
|
345
354
|
...i,
|
|
346
355
|
ref: t
|
|
@@ -350,36 +359,36 @@ var le = "Collapsible", [Kt, Je] = ke(le), [Zt, Ae] = Kt(le), Ye = m.forwardRef(
|
|
|
350
359
|
);
|
|
351
360
|
}
|
|
352
361
|
);
|
|
353
|
-
|
|
354
|
-
var
|
|
362
|
+
rt.displayName = ce;
|
|
363
|
+
var nt = "CollapsibleTrigger", at = m.forwardRef(
|
|
355
364
|
(e, t) => {
|
|
356
|
-
const { __scopeCollapsible: o, ...r } = e, n =
|
|
357
|
-
return /* @__PURE__ */
|
|
365
|
+
const { __scopeCollapsible: o, ...r } = e, n = _e(nt, o);
|
|
366
|
+
return /* @__PURE__ */ c(
|
|
358
367
|
Y.button,
|
|
359
368
|
{
|
|
360
369
|
type: "button",
|
|
361
370
|
"aria-controls": n.contentId,
|
|
362
371
|
"aria-expanded": n.open || !1,
|
|
363
|
-
"data-state":
|
|
372
|
+
"data-state": Pe(n.open),
|
|
364
373
|
"data-disabled": n.disabled ? "" : void 0,
|
|
365
374
|
disabled: n.disabled,
|
|
366
375
|
...r,
|
|
367
376
|
ref: t,
|
|
368
|
-
onClick:
|
|
377
|
+
onClick: Qe(e.onClick, n.onOpenToggle)
|
|
369
378
|
}
|
|
370
379
|
);
|
|
371
380
|
}
|
|
372
381
|
);
|
|
373
|
-
|
|
374
|
-
var
|
|
382
|
+
at.displayName = nt;
|
|
383
|
+
var Se = "CollapsibleContent", st = m.forwardRef(
|
|
375
384
|
(e, t) => {
|
|
376
|
-
const { forceMount: o, ...r } = e, n =
|
|
377
|
-
return /* @__PURE__ */
|
|
385
|
+
const { forceMount: o, ...r } = e, n = _e(Se, e.__scopeCollapsible);
|
|
386
|
+
return /* @__PURE__ */ c(et, { present: o || n.open, children: ({ present: a }) => /* @__PURE__ */ c(to, { ...r, ref: t, present: a }) });
|
|
378
387
|
}
|
|
379
388
|
);
|
|
380
|
-
|
|
381
|
-
var
|
|
382
|
-
const { __scopeCollapsible: o, present: r, children: n, ...a } = e, s =
|
|
389
|
+
st.displayName = Se;
|
|
390
|
+
var to = m.forwardRef((e, t) => {
|
|
391
|
+
const { __scopeCollapsible: o, present: r, children: n, ...a } = e, s = _e(Se, o), [i, l] = m.useState(r), f = m.useRef(null), p = X(t, f), h = m.useRef(0), A = h.current, w = m.useRef(0), C = w.current, y = s.open || i, k = m.useRef(y), R = m.useRef(void 0);
|
|
383
392
|
return m.useEffect(() => {
|
|
384
393
|
const x = requestAnimationFrame(() => k.current = !1);
|
|
385
394
|
return () => cancelAnimationFrame(x);
|
|
@@ -390,13 +399,13 @@ var Xt = m.forwardRef((e, t) => {
|
|
|
390
399
|
transitionDuration: x.style.transitionDuration,
|
|
391
400
|
animationName: x.style.animationName
|
|
392
401
|
}, x.style.transitionDuration = "0s", x.style.animationName = "none";
|
|
393
|
-
const
|
|
394
|
-
h.current =
|
|
402
|
+
const I = x.getBoundingClientRect();
|
|
403
|
+
h.current = I.height, w.current = I.width, k.current || (x.style.transitionDuration = R.current.transitionDuration, x.style.animationName = R.current.animationName), l(r);
|
|
395
404
|
}
|
|
396
|
-
}, [s.open, r]), /* @__PURE__ */
|
|
405
|
+
}, [s.open, r]), /* @__PURE__ */ c(
|
|
397
406
|
Y.div,
|
|
398
407
|
{
|
|
399
|
-
"data-state":
|
|
408
|
+
"data-state": Pe(s.open),
|
|
400
409
|
"data-disabled": s.disabled ? "" : void 0,
|
|
401
410
|
id: s.contentId,
|
|
402
411
|
hidden: !y,
|
|
@@ -411,28 +420,28 @@ var Xt = m.forwardRef((e, t) => {
|
|
|
411
420
|
}
|
|
412
421
|
);
|
|
413
422
|
});
|
|
414
|
-
function
|
|
423
|
+
function Pe(e) {
|
|
415
424
|
return e ? "open" : "closed";
|
|
416
425
|
}
|
|
417
|
-
var
|
|
418
|
-
function
|
|
419
|
-
const t = m.useContext(
|
|
426
|
+
var oo = rt, ro = at, no = st, ao = m.createContext(void 0);
|
|
427
|
+
function so(e) {
|
|
428
|
+
const t = m.useContext(ao);
|
|
420
429
|
return e || t || "ltr";
|
|
421
430
|
}
|
|
422
|
-
var L = "Accordion",
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
]),
|
|
431
|
+
var L = "Accordion", io = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Me, lo, co] = Ft(L), [de] = Ie(L, [
|
|
432
|
+
co,
|
|
433
|
+
ot
|
|
434
|
+
]), Ee = ot(), it = N.forwardRef(
|
|
426
435
|
(e, t) => {
|
|
427
436
|
const { type: o, ...r } = e, n = r, a = r;
|
|
428
|
-
return /* @__PURE__ */
|
|
437
|
+
return /* @__PURE__ */ c(Me.Provider, { scope: e.__scopeAccordion, children: o === "multiple" ? /* @__PURE__ */ c(po, { ...a, ref: t }) : /* @__PURE__ */ c(mo, { ...n, ref: t }) });
|
|
429
438
|
}
|
|
430
439
|
);
|
|
431
|
-
|
|
432
|
-
var [
|
|
440
|
+
it.displayName = L;
|
|
441
|
+
var [lt, uo] = de(L), [ct, fo] = de(
|
|
433
442
|
L,
|
|
434
443
|
{ collapsible: !1 }
|
|
435
|
-
),
|
|
444
|
+
), mo = N.forwardRef(
|
|
436
445
|
(e, t) => {
|
|
437
446
|
const {
|
|
438
447
|
value: o,
|
|
@@ -441,71 +450,71 @@ var [rt, ao] = ce(L), [nt, so] = ce(
|
|
|
441
450
|
},
|
|
442
451
|
collapsible: a = !1,
|
|
443
452
|
...s
|
|
444
|
-
} = e, [i, l] =
|
|
453
|
+
} = e, [i, l] = Ne({
|
|
445
454
|
prop: o,
|
|
446
455
|
defaultProp: r ?? "",
|
|
447
456
|
onChange: n,
|
|
448
457
|
caller: L
|
|
449
458
|
});
|
|
450
|
-
return /* @__PURE__ */
|
|
451
|
-
|
|
459
|
+
return /* @__PURE__ */ c(
|
|
460
|
+
lt,
|
|
452
461
|
{
|
|
453
462
|
scope: e.__scopeAccordion,
|
|
454
|
-
value:
|
|
463
|
+
value: N.useMemo(() => i ? [i] : [], [i]),
|
|
455
464
|
onItemOpen: l,
|
|
456
|
-
onItemClose:
|
|
457
|
-
children: /* @__PURE__ */
|
|
465
|
+
onItemClose: N.useCallback(() => a && l(""), [a, l]),
|
|
466
|
+
children: /* @__PURE__ */ c(ct, { scope: e.__scopeAccordion, collapsible: a, children: /* @__PURE__ */ c(dt, { ...s, ref: t }) })
|
|
458
467
|
}
|
|
459
468
|
);
|
|
460
469
|
}
|
|
461
|
-
),
|
|
470
|
+
), po = N.forwardRef((e, t) => {
|
|
462
471
|
const {
|
|
463
472
|
value: o,
|
|
464
473
|
defaultValue: r,
|
|
465
474
|
onValueChange: n = () => {
|
|
466
475
|
},
|
|
467
476
|
...a
|
|
468
|
-
} = e, [s, i] =
|
|
477
|
+
} = e, [s, i] = Ne({
|
|
469
478
|
prop: o,
|
|
470
479
|
defaultProp: r ?? [],
|
|
471
480
|
onChange: n,
|
|
472
481
|
caller: L
|
|
473
|
-
}), l =
|
|
482
|
+
}), l = N.useCallback(
|
|
474
483
|
(p) => i((h = []) => [...h, p]),
|
|
475
484
|
[i]
|
|
476
|
-
), f =
|
|
485
|
+
), f = N.useCallback(
|
|
477
486
|
(p) => i((h = []) => h.filter((A) => A !== p)),
|
|
478
487
|
[i]
|
|
479
488
|
);
|
|
480
|
-
return /* @__PURE__ */
|
|
481
|
-
|
|
489
|
+
return /* @__PURE__ */ c(
|
|
490
|
+
lt,
|
|
482
491
|
{
|
|
483
492
|
scope: e.__scopeAccordion,
|
|
484
493
|
value: s,
|
|
485
494
|
onItemOpen: l,
|
|
486
495
|
onItemClose: f,
|
|
487
|
-
children: /* @__PURE__ */
|
|
496
|
+
children: /* @__PURE__ */ c(ct, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ c(dt, { ...a, ref: t }) })
|
|
488
497
|
}
|
|
489
498
|
);
|
|
490
|
-
}), [
|
|
499
|
+
}), [go, ue] = de(L), dt = N.forwardRef(
|
|
491
500
|
(e, t) => {
|
|
492
|
-
const { __scopeAccordion: o, disabled: r, dir: n, orientation: a = "vertical", ...s } = e, i =
|
|
493
|
-
if (!
|
|
501
|
+
const { __scopeAccordion: o, disabled: r, dir: n, orientation: a = "vertical", ...s } = e, i = N.useRef(null), l = X(i, t), f = lo(o), h = so(n) === "ltr", A = Qe(e.onKeyDown, (w) => {
|
|
502
|
+
if (!io.includes(w.key)) return;
|
|
494
503
|
const C = w.target, y = f().filter((b) => !b.ref.current?.disabled), k = y.findIndex((b) => b.ref.current === C), R = y.length;
|
|
495
504
|
if (k === -1) return;
|
|
496
505
|
w.preventDefault();
|
|
497
506
|
let x = k;
|
|
498
|
-
const
|
|
499
|
-
x = k + 1, x >
|
|
507
|
+
const I = 0, S = R - 1, T = () => {
|
|
508
|
+
x = k + 1, x > S && (x = I);
|
|
500
509
|
}, E = () => {
|
|
501
|
-
x = k - 1, x <
|
|
510
|
+
x = k - 1, x < I && (x = S);
|
|
502
511
|
};
|
|
503
512
|
switch (w.key) {
|
|
504
513
|
case "Home":
|
|
505
|
-
x =
|
|
514
|
+
x = I;
|
|
506
515
|
break;
|
|
507
516
|
case "End":
|
|
508
|
-
x =
|
|
517
|
+
x = S;
|
|
509
518
|
break;
|
|
510
519
|
case "ArrowRight":
|
|
511
520
|
a === "horizontal" && (h ? T() : E());
|
|
@@ -523,14 +532,14 @@ var [rt, ao] = ce(L), [nt, so] = ce(
|
|
|
523
532
|
const $ = x % R;
|
|
524
533
|
y[$].ref.current?.focus();
|
|
525
534
|
});
|
|
526
|
-
return /* @__PURE__ */
|
|
527
|
-
|
|
535
|
+
return /* @__PURE__ */ c(
|
|
536
|
+
go,
|
|
528
537
|
{
|
|
529
538
|
scope: o,
|
|
530
539
|
disabled: r,
|
|
531
540
|
direction: n,
|
|
532
541
|
orientation: a,
|
|
533
|
-
children: /* @__PURE__ */
|
|
542
|
+
children: /* @__PURE__ */ c(Me.Slot, { scope: o, children: /* @__PURE__ */ c(
|
|
534
543
|
Y.div,
|
|
535
544
|
{
|
|
536
545
|
...s,
|
|
@@ -542,21 +551,21 @@ var [rt, ao] = ce(L), [nt, so] = ce(
|
|
|
542
551
|
}
|
|
543
552
|
);
|
|
544
553
|
}
|
|
545
|
-
),
|
|
554
|
+
), le = "AccordionItem", [bo, ze] = de(le), ut = N.forwardRef(
|
|
546
555
|
(e, t) => {
|
|
547
|
-
const { __scopeAccordion: o, value: r, ...n } = e, a =
|
|
548
|
-
return /* @__PURE__ */
|
|
549
|
-
|
|
556
|
+
const { __scopeAccordion: o, value: r, ...n } = e, a = ue(le, o), s = uo(le, o), i = Ee(o), l = tt(), f = r && s.value.includes(r) || !1, p = a.disabled || e.disabled;
|
|
557
|
+
return /* @__PURE__ */ c(
|
|
558
|
+
bo,
|
|
550
559
|
{
|
|
551
560
|
scope: o,
|
|
552
561
|
open: f,
|
|
553
562
|
disabled: p,
|
|
554
563
|
triggerId: l,
|
|
555
|
-
children: /* @__PURE__ */
|
|
556
|
-
|
|
564
|
+
children: /* @__PURE__ */ c(
|
|
565
|
+
oo,
|
|
557
566
|
{
|
|
558
567
|
"data-orientation": a.orientation,
|
|
559
|
-
"data-state":
|
|
568
|
+
"data-state": ht(f),
|
|
560
569
|
...i,
|
|
561
570
|
...n,
|
|
562
571
|
ref: t,
|
|
@@ -571,15 +580,15 @@ var [rt, ao] = ce(L), [nt, so] = ce(
|
|
|
571
580
|
);
|
|
572
581
|
}
|
|
573
582
|
);
|
|
574
|
-
|
|
575
|
-
var
|
|
583
|
+
ut.displayName = le;
|
|
584
|
+
var ft = "AccordionHeader", mt = N.forwardRef(
|
|
576
585
|
(e, t) => {
|
|
577
|
-
const { __scopeAccordion: o, ...r } = e, n =
|
|
578
|
-
return /* @__PURE__ */
|
|
586
|
+
const { __scopeAccordion: o, ...r } = e, n = ue(L, o), a = ze(ft, o);
|
|
587
|
+
return /* @__PURE__ */ c(
|
|
579
588
|
Y.h3,
|
|
580
589
|
{
|
|
581
590
|
"data-orientation": n.orientation,
|
|
582
|
-
"data-state":
|
|
591
|
+
"data-state": ht(a.open),
|
|
583
592
|
"data-disabled": a.disabled ? "" : void 0,
|
|
584
593
|
...r,
|
|
585
594
|
ref: t
|
|
@@ -587,12 +596,12 @@ var it = "AccordionHeader", lt = I.forwardRef(
|
|
|
587
596
|
);
|
|
588
597
|
}
|
|
589
598
|
);
|
|
590
|
-
|
|
591
|
-
var
|
|
599
|
+
mt.displayName = ft;
|
|
600
|
+
var xe = "AccordionTrigger", pt = N.forwardRef(
|
|
592
601
|
(e, t) => {
|
|
593
|
-
const { __scopeAccordion: o, ...r } = e, n =
|
|
594
|
-
return /* @__PURE__ */
|
|
595
|
-
|
|
602
|
+
const { __scopeAccordion: o, ...r } = e, n = ue(L, o), a = ze(xe, o), s = fo(xe, o), i = Ee(o);
|
|
603
|
+
return /* @__PURE__ */ c(Me.ItemSlot, { scope: o, children: /* @__PURE__ */ c(
|
|
604
|
+
ro,
|
|
596
605
|
{
|
|
597
606
|
"aria-disabled": a.open && !s.collapsible || void 0,
|
|
598
607
|
"data-orientation": n.orientation,
|
|
@@ -604,12 +613,12 @@ var ve = "AccordionTrigger", ct = I.forwardRef(
|
|
|
604
613
|
) });
|
|
605
614
|
}
|
|
606
615
|
);
|
|
607
|
-
|
|
608
|
-
var
|
|
616
|
+
pt.displayName = xe;
|
|
617
|
+
var gt = "AccordionContent", bt = N.forwardRef(
|
|
609
618
|
(e, t) => {
|
|
610
|
-
const { __scopeAccordion: o, ...r } = e, n =
|
|
611
|
-
return /* @__PURE__ */
|
|
612
|
-
|
|
619
|
+
const { __scopeAccordion: o, ...r } = e, n = ue(L, o), a = ze(gt, o), s = Ee(o);
|
|
620
|
+
return /* @__PURE__ */ c(
|
|
621
|
+
no,
|
|
613
622
|
{
|
|
614
623
|
role: "region",
|
|
615
624
|
"aria-labelledby": a.triggerId,
|
|
@@ -626,58 +635,58 @@ var dt = "AccordionContent", ut = I.forwardRef(
|
|
|
626
635
|
);
|
|
627
636
|
}
|
|
628
637
|
);
|
|
629
|
-
|
|
630
|
-
function
|
|
638
|
+
bt.displayName = gt;
|
|
639
|
+
function ht(e) {
|
|
631
640
|
return e ? "open" : "closed";
|
|
632
641
|
}
|
|
633
|
-
var
|
|
634
|
-
function
|
|
642
|
+
var ho = it, vo = ut, xo = mt, yo = pt, wo = bt;
|
|
643
|
+
function vt(e) {
|
|
635
644
|
var t, o, r = "";
|
|
636
645
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
637
646
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
638
647
|
var n = e.length;
|
|
639
|
-
for (t = 0; t < n; t++) e[t] && (o =
|
|
648
|
+
for (t = 0; t < n; t++) e[t] && (o = vt(e[t])) && (r && (r += " "), r += o);
|
|
640
649
|
} else for (o in e) e[o] && (r && (r += " "), r += o);
|
|
641
650
|
return r;
|
|
642
651
|
}
|
|
643
|
-
function
|
|
644
|
-
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t =
|
|
652
|
+
function ko() {
|
|
653
|
+
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = vt(e)) && (r && (r += " "), r += t);
|
|
645
654
|
return r;
|
|
646
655
|
}
|
|
647
|
-
const
|
|
648
|
-
const t =
|
|
656
|
+
const Te = "-", Co = (e) => {
|
|
657
|
+
const t = Ro(e), {
|
|
649
658
|
conflictingClassGroups: o,
|
|
650
659
|
conflictingClassGroupModifiers: r
|
|
651
660
|
} = e;
|
|
652
661
|
return {
|
|
653
662
|
getClassGroupId: (s) => {
|
|
654
|
-
const i = s.split(
|
|
655
|
-
return i[0] === "" && i.length !== 1 && i.shift(),
|
|
663
|
+
const i = s.split(Te);
|
|
664
|
+
return i[0] === "" && i.length !== 1 && i.shift(), xt(i, t) || Ao(s);
|
|
656
665
|
},
|
|
657
666
|
getConflictingClassGroupIds: (s, i) => {
|
|
658
667
|
const l = o[s] || [];
|
|
659
668
|
return i && r[s] ? [...l, ...r[s]] : l;
|
|
660
669
|
}
|
|
661
670
|
};
|
|
662
|
-
},
|
|
671
|
+
}, xt = (e, t) => {
|
|
663
672
|
if (e.length === 0)
|
|
664
673
|
return t.classGroupId;
|
|
665
|
-
const o = e[0], r = t.nextPart.get(o), n = r ?
|
|
674
|
+
const o = e[0], r = t.nextPart.get(o), n = r ? xt(e.slice(1), r) : void 0;
|
|
666
675
|
if (n)
|
|
667
676
|
return n;
|
|
668
677
|
if (t.validators.length === 0)
|
|
669
678
|
return;
|
|
670
|
-
const a = e.join(
|
|
679
|
+
const a = e.join(Te);
|
|
671
680
|
return t.validators.find(({
|
|
672
681
|
validator: s
|
|
673
682
|
}) => s(a))?.classGroupId;
|
|
674
|
-
},
|
|
675
|
-
if (
|
|
676
|
-
const t =
|
|
683
|
+
}, He = /^\[(.+)\]$/, Ao = (e) => {
|
|
684
|
+
if (He.test(e)) {
|
|
685
|
+
const t = He.exec(e)[1], o = t?.substring(0, t.indexOf(":"));
|
|
677
686
|
if (o)
|
|
678
687
|
return "arbitrary.." + o;
|
|
679
688
|
}
|
|
680
|
-
},
|
|
689
|
+
}, Ro = (e) => {
|
|
681
690
|
const {
|
|
682
691
|
theme: t,
|
|
683
692
|
classGroups: o
|
|
@@ -686,18 +695,18 @@ const Pe = "-", vo = (e) => {
|
|
|
686
695
|
validators: []
|
|
687
696
|
};
|
|
688
697
|
for (const n in o)
|
|
689
|
-
|
|
698
|
+
ye(o[n], r, n, t);
|
|
690
699
|
return r;
|
|
691
|
-
},
|
|
700
|
+
}, ye = (e, t, o, r) => {
|
|
692
701
|
e.forEach((n) => {
|
|
693
702
|
if (typeof n == "string") {
|
|
694
|
-
const a = n === "" ? t :
|
|
703
|
+
const a = n === "" ? t : qe(t, n);
|
|
695
704
|
a.classGroupId = o;
|
|
696
705
|
return;
|
|
697
706
|
}
|
|
698
707
|
if (typeof n == "function") {
|
|
699
|
-
if (
|
|
700
|
-
|
|
708
|
+
if (Io(n)) {
|
|
709
|
+
ye(n(r), t, o, r);
|
|
701
710
|
return;
|
|
702
711
|
}
|
|
703
712
|
t.validators.push({
|
|
@@ -707,18 +716,18 @@ const Pe = "-", vo = (e) => {
|
|
|
707
716
|
return;
|
|
708
717
|
}
|
|
709
718
|
Object.entries(n).forEach(([a, s]) => {
|
|
710
|
-
|
|
719
|
+
ye(s, qe(t, a), o, r);
|
|
711
720
|
});
|
|
712
721
|
});
|
|
713
|
-
},
|
|
722
|
+
}, qe = (e, t) => {
|
|
714
723
|
let o = e;
|
|
715
|
-
return t.split(
|
|
724
|
+
return t.split(Te).forEach((r) => {
|
|
716
725
|
o.nextPart.has(r) || o.nextPart.set(r, {
|
|
717
726
|
nextPart: /* @__PURE__ */ new Map(),
|
|
718
727
|
validators: []
|
|
719
728
|
}), o = o.nextPart.get(r);
|
|
720
729
|
}), o;
|
|
721
|
-
},
|
|
730
|
+
}, Io = (e) => e.isThemeGetter, No = (e) => {
|
|
722
731
|
if (e < 1)
|
|
723
732
|
return {
|
|
724
733
|
get: () => {
|
|
@@ -742,7 +751,7 @@ const Pe = "-", vo = (e) => {
|
|
|
742
751
|
o.has(a) ? o.set(a, s) : n(a, s);
|
|
743
752
|
}
|
|
744
753
|
};
|
|
745
|
-
},
|
|
754
|
+
}, we = "!", ke = ":", _o = ke.length, So = (e) => {
|
|
746
755
|
const {
|
|
747
756
|
prefix: t,
|
|
748
757
|
experimentalParseClassName: o
|
|
@@ -753,8 +762,8 @@ const Pe = "-", vo = (e) => {
|
|
|
753
762
|
for (let C = 0; C < n.length; C++) {
|
|
754
763
|
let y = n[C];
|
|
755
764
|
if (s === 0 && i === 0) {
|
|
756
|
-
if (y ===
|
|
757
|
-
a.push(n.slice(l, C)), l = C +
|
|
765
|
+
if (y === ke) {
|
|
766
|
+
a.push(n.slice(l, C)), l = C + _o;
|
|
758
767
|
continue;
|
|
759
768
|
}
|
|
760
769
|
if (y === "/") {
|
|
@@ -764,7 +773,7 @@ const Pe = "-", vo = (e) => {
|
|
|
764
773
|
}
|
|
765
774
|
y === "[" ? s++ : y === "]" ? s-- : y === "(" ? i++ : y === ")" && i--;
|
|
766
775
|
}
|
|
767
|
-
const p = a.length === 0 ? n : n.substring(l), h =
|
|
776
|
+
const p = a.length === 0 ? n : n.substring(l), h = Po(p), A = h !== p, w = f && f > l ? f - l : void 0;
|
|
768
777
|
return {
|
|
769
778
|
modifiers: a,
|
|
770
779
|
hasImportantModifier: A,
|
|
@@ -773,7 +782,7 @@ const Pe = "-", vo = (e) => {
|
|
|
773
782
|
};
|
|
774
783
|
};
|
|
775
784
|
if (t) {
|
|
776
|
-
const n = t +
|
|
785
|
+
const n = t + ke, a = r;
|
|
777
786
|
r = (s) => s.startsWith(n) ? a(s.substring(n.length)) : {
|
|
778
787
|
isExternal: !0,
|
|
779
788
|
modifiers: [],
|
|
@@ -790,7 +799,7 @@ const Pe = "-", vo = (e) => {
|
|
|
790
799
|
});
|
|
791
800
|
}
|
|
792
801
|
return r;
|
|
793
|
-
},
|
|
802
|
+
}, Po = (e) => e.endsWith(we) ? e.substring(0, e.length - 1) : e.startsWith(we) ? e.substring(1) : e, Mo = (e) => {
|
|
794
803
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0]));
|
|
795
804
|
return (r) => {
|
|
796
805
|
if (r.length <= 1)
|
|
@@ -801,18 +810,18 @@ const Pe = "-", vo = (e) => {
|
|
|
801
810
|
s[0] === "[" || t[s] ? (n.push(...a.sort(), s), a = []) : a.push(s);
|
|
802
811
|
}), n.push(...a.sort()), n;
|
|
803
812
|
};
|
|
804
|
-
},
|
|
805
|
-
cache:
|
|
806
|
-
parseClassName:
|
|
807
|
-
sortModifiers:
|
|
808
|
-
...
|
|
809
|
-
}),
|
|
813
|
+
}, Eo = (e) => ({
|
|
814
|
+
cache: No(e.cacheSize),
|
|
815
|
+
parseClassName: So(e),
|
|
816
|
+
sortModifiers: Mo(e),
|
|
817
|
+
...Co(e)
|
|
818
|
+
}), zo = /\s+/, To = (e, t) => {
|
|
810
819
|
const {
|
|
811
820
|
parseClassName: o,
|
|
812
821
|
getClassGroupId: r,
|
|
813
822
|
getConflictingClassGroupIds: n,
|
|
814
823
|
sortModifiers: a
|
|
815
|
-
} = t, s = [], i = e.trim().split(
|
|
824
|
+
} = t, s = [], i = e.trim().split(zo);
|
|
816
825
|
let l = "";
|
|
817
826
|
for (let f = i.length - 1; f >= 0; f -= 1) {
|
|
818
827
|
const p = i[f], {
|
|
@@ -838,66 +847,66 @@ const Pe = "-", vo = (e) => {
|
|
|
838
847
|
}
|
|
839
848
|
k = !1;
|
|
840
849
|
}
|
|
841
|
-
const x = a(A).join(":"),
|
|
842
|
-
if (s.includes(
|
|
850
|
+
const x = a(A).join(":"), I = w ? x + we : x, S = I + R;
|
|
851
|
+
if (s.includes(S))
|
|
843
852
|
continue;
|
|
844
|
-
s.push(
|
|
853
|
+
s.push(S);
|
|
845
854
|
const T = n(R, k);
|
|
846
855
|
for (let E = 0; E < T.length; ++E) {
|
|
847
856
|
const $ = T[E];
|
|
848
|
-
s.push(
|
|
857
|
+
s.push(I + $);
|
|
849
858
|
}
|
|
850
859
|
l = p + (l.length > 0 ? " " + l : l);
|
|
851
860
|
}
|
|
852
861
|
return l;
|
|
853
862
|
};
|
|
854
|
-
function
|
|
863
|
+
function Oo() {
|
|
855
864
|
let e = 0, t, o, r = "";
|
|
856
865
|
for (; e < arguments.length; )
|
|
857
|
-
(t = arguments[e++]) && (o =
|
|
866
|
+
(t = arguments[e++]) && (o = yt(t)) && (r && (r += " "), r += o);
|
|
858
867
|
return r;
|
|
859
868
|
}
|
|
860
|
-
const
|
|
869
|
+
const yt = (e) => {
|
|
861
870
|
if (typeof e == "string")
|
|
862
871
|
return e;
|
|
863
872
|
let t, o = "";
|
|
864
873
|
for (let r = 0; r < e.length; r++)
|
|
865
|
-
e[r] && (t =
|
|
874
|
+
e[r] && (t = yt(e[r])) && (o && (o += " "), o += t);
|
|
866
875
|
return o;
|
|
867
876
|
};
|
|
868
|
-
function
|
|
877
|
+
function Lo(e, ...t) {
|
|
869
878
|
let o, r, n, a = s;
|
|
870
879
|
function s(l) {
|
|
871
880
|
const f = t.reduce((p, h) => h(p), e());
|
|
872
|
-
return o =
|
|
881
|
+
return o = Eo(f), r = o.cache.get, n = o.cache.set, a = i, i(l);
|
|
873
882
|
}
|
|
874
883
|
function i(l) {
|
|
875
884
|
const f = r(l);
|
|
876
885
|
if (f)
|
|
877
886
|
return f;
|
|
878
|
-
const p =
|
|
887
|
+
const p = To(l, o);
|
|
879
888
|
return n(l, p), p;
|
|
880
889
|
}
|
|
881
890
|
return function() {
|
|
882
|
-
return a(
|
|
891
|
+
return a(Oo.apply(null, arguments));
|
|
883
892
|
};
|
|
884
893
|
}
|
|
885
|
-
const
|
|
894
|
+
const _ = (e) => {
|
|
886
895
|
const t = (o) => o[e] || [];
|
|
887
896
|
return t.isThemeGetter = !0, t;
|
|
888
|
-
},
|
|
897
|
+
}, wt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, kt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, $o = /^\d+\/\d+$/, Go = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vo = /\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$/, Do = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, jo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Uo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => $o.test(e), v = (e) => !!e && !Number.isNaN(Number(e)), j = (e) => !!e && Number.isInteger(Number(e)), ge = (e) => e.endsWith("%") && v(e.slice(0, -1)), D = (e) => Go.test(e), Fo = () => !0, Wo = (e) => (
|
|
889
898
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
890
899
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
891
900
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
892
|
-
|
|
893
|
-
),
|
|
894
|
-
const r =
|
|
901
|
+
Vo.test(e) && !Do.test(e)
|
|
902
|
+
), Ct = () => !1, Bo = (e) => jo.test(e), Ho = (e) => Uo.test(e), qo = (e) => !d(e) && !u(e), Ko = (e) => q(e, It, Ct), d = (e) => wt.test(e), F = (e) => q(e, Nt, Wo), be = (e) => q(e, Qo, v), Ke = (e) => q(e, At, Ct), Zo = (e) => q(e, Rt, Ho), se = (e) => q(e, _t, Bo), u = (e) => kt.test(e), Z = (e) => K(e, Nt), Xo = (e) => K(e, er), Ze = (e) => K(e, At), Jo = (e) => K(e, It), Yo = (e) => K(e, Rt), ie = (e) => K(e, _t, !0), q = (e, t, o) => {
|
|
903
|
+
const r = wt.exec(e);
|
|
895
904
|
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
896
905
|
}, K = (e, t, o = !1) => {
|
|
897
|
-
const r =
|
|
906
|
+
const r = kt.exec(e);
|
|
898
907
|
return r ? r[1] ? t(r[1]) : o : !1;
|
|
899
|
-
},
|
|
900
|
-
const e =
|
|
908
|
+
}, At = (e) => e === "position" || e === "percentage", Rt = (e) => e === "image" || e === "url", It = (e) => e === "length" || e === "size" || e === "bg-size", Nt = (e) => e === "length", Qo = (e) => e === "number", er = (e) => e === "family-name", _t = (e) => e === "shadow", tr = () => {
|
|
909
|
+
const e = _("color"), t = _("font"), o = _("text"), r = _("font-weight"), n = _("tracking"), a = _("leading"), s = _("breakpoint"), i = _("container"), l = _("spacing"), f = _("radius"), p = _("shadow"), h = _("inset-shadow"), A = _("text-shadow"), w = _("drop-shadow"), C = _("blur"), y = _("perspective"), k = _("aspect"), R = _("ease"), x = _("animate"), I = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
|
|
901
910
|
"center",
|
|
902
911
|
"top",
|
|
903
912
|
"bottom",
|
|
@@ -915,51 +924,51 @@ const S = (e) => {
|
|
|
915
924
|
"bottom-left",
|
|
916
925
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
917
926
|
"left-bottom"
|
|
918
|
-
], T = () => [...
|
|
919
|
-
span: ["full", j,
|
|
920
|
-
}, j,
|
|
921
|
-
position: [
|
|
922
|
-
}],
|
|
927
|
+
], T = () => [...S(), u, d], E = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", "contain", "none"], b = () => [u, d, l], G = () => [H, "full", "auto", ...b()], $e = () => [j, "none", "subgrid", u, d], Ge = () => ["auto", {
|
|
928
|
+
span: ["full", j, u, d]
|
|
929
|
+
}, j, u, d], ee = () => [j, "auto", u, d], Ve = () => ["auto", "min", "max", "fr", u, d], fe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], B = () => ["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], De = () => [...S(), Ze, Ke, {
|
|
930
|
+
position: [u, d]
|
|
931
|
+
}], je = () => ["no-repeat", {
|
|
923
932
|
repeat: ["", "x", "y", "space", "round"]
|
|
924
|
-
}],
|
|
925
|
-
size: [
|
|
926
|
-
}],
|
|
933
|
+
}], Ue = () => ["auto", "cover", "contain", Jo, Ko, {
|
|
934
|
+
size: [u, d]
|
|
935
|
+
}], me = () => [ge, Z, F], z = () => [
|
|
927
936
|
// Deprecated since Tailwind CSS v4.0.0
|
|
928
937
|
"",
|
|
929
938
|
"none",
|
|
930
939
|
"full",
|
|
931
940
|
f,
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
], O = () => ["", v, Z, F],
|
|
941
|
+
u,
|
|
942
|
+
d
|
|
943
|
+
], O = () => ["", v, Z, F], te = () => ["solid", "dashed", "dotted", "double"], Fe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => [v, ge, Ze, Ke], We = () => [
|
|
935
944
|
// Deprecated since Tailwind CSS v4.0.0
|
|
936
945
|
"",
|
|
937
946
|
"none",
|
|
938
947
|
C,
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
],
|
|
948
|
+
u,
|
|
949
|
+
d
|
|
950
|
+
], oe = () => ["none", v, u, d], re = () => ["none", v, u, d], pe = () => [v, u, d], ne = () => [H, "full", ...b()];
|
|
942
951
|
return {
|
|
943
952
|
cacheSize: 500,
|
|
944
953
|
theme: {
|
|
945
954
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
946
955
|
aspect: ["video"],
|
|
947
|
-
blur: [
|
|
948
|
-
breakpoint: [
|
|
949
|
-
color: [
|
|
950
|
-
container: [
|
|
951
|
-
"drop-shadow": [
|
|
956
|
+
blur: [D],
|
|
957
|
+
breakpoint: [D],
|
|
958
|
+
color: [Fo],
|
|
959
|
+
container: [D],
|
|
960
|
+
"drop-shadow": [D],
|
|
952
961
|
ease: ["in", "out", "in-out"],
|
|
953
|
-
font: [
|
|
962
|
+
font: [qo],
|
|
954
963
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
955
|
-
"inset-shadow": [
|
|
964
|
+
"inset-shadow": [D],
|
|
956
965
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
957
966
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
958
|
-
radius: [
|
|
959
|
-
shadow: [
|
|
967
|
+
radius: [D],
|
|
968
|
+
shadow: [D],
|
|
960
969
|
spacing: ["px", v],
|
|
961
|
-
text: [
|
|
962
|
-
"text-shadow": [
|
|
970
|
+
text: [D],
|
|
971
|
+
"text-shadow": [D],
|
|
963
972
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
964
973
|
},
|
|
965
974
|
classGroups: {
|
|
@@ -971,7 +980,7 @@ const S = (e) => {
|
|
|
971
980
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
972
981
|
*/
|
|
973
982
|
aspect: [{
|
|
974
|
-
aspect: ["auto", "square", H,
|
|
983
|
+
aspect: ["auto", "square", H, d, u, k]
|
|
975
984
|
}],
|
|
976
985
|
/**
|
|
977
986
|
* Container
|
|
@@ -984,21 +993,21 @@ const S = (e) => {
|
|
|
984
993
|
* @see https://tailwindcss.com/docs/columns
|
|
985
994
|
*/
|
|
986
995
|
columns: [{
|
|
987
|
-
columns: [v,
|
|
996
|
+
columns: [v, d, u, i]
|
|
988
997
|
}],
|
|
989
998
|
/**
|
|
990
999
|
* Break After
|
|
991
1000
|
* @see https://tailwindcss.com/docs/break-after
|
|
992
1001
|
*/
|
|
993
1002
|
"break-after": [{
|
|
994
|
-
"break-after":
|
|
1003
|
+
"break-after": I()
|
|
995
1004
|
}],
|
|
996
1005
|
/**
|
|
997
1006
|
* Break Before
|
|
998
1007
|
* @see https://tailwindcss.com/docs/break-before
|
|
999
1008
|
*/
|
|
1000
1009
|
"break-before": [{
|
|
1001
|
-
"break-before":
|
|
1010
|
+
"break-before": I()
|
|
1002
1011
|
}],
|
|
1003
1012
|
/**
|
|
1004
1013
|
* Break Inside
|
|
@@ -1184,7 +1193,7 @@ const S = (e) => {
|
|
|
1184
1193
|
* @see https://tailwindcss.com/docs/z-index
|
|
1185
1194
|
*/
|
|
1186
1195
|
z: [{
|
|
1187
|
-
z: [j, "auto",
|
|
1196
|
+
z: [j, "auto", u, d]
|
|
1188
1197
|
}],
|
|
1189
1198
|
// ------------------------
|
|
1190
1199
|
// --- Flexbox and Grid ---
|
|
@@ -1215,84 +1224,84 @@ const S = (e) => {
|
|
|
1215
1224
|
* @see https://tailwindcss.com/docs/flex
|
|
1216
1225
|
*/
|
|
1217
1226
|
flex: [{
|
|
1218
|
-
flex: [v, H, "auto", "initial", "none",
|
|
1227
|
+
flex: [v, H, "auto", "initial", "none", d]
|
|
1219
1228
|
}],
|
|
1220
1229
|
/**
|
|
1221
1230
|
* Flex Grow
|
|
1222
1231
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1223
1232
|
*/
|
|
1224
1233
|
grow: [{
|
|
1225
|
-
grow: ["", v,
|
|
1234
|
+
grow: ["", v, u, d]
|
|
1226
1235
|
}],
|
|
1227
1236
|
/**
|
|
1228
1237
|
* Flex Shrink
|
|
1229
1238
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1230
1239
|
*/
|
|
1231
1240
|
shrink: [{
|
|
1232
|
-
shrink: ["", v,
|
|
1241
|
+
shrink: ["", v, u, d]
|
|
1233
1242
|
}],
|
|
1234
1243
|
/**
|
|
1235
1244
|
* Order
|
|
1236
1245
|
* @see https://tailwindcss.com/docs/order
|
|
1237
1246
|
*/
|
|
1238
1247
|
order: [{
|
|
1239
|
-
order: [j, "first", "last", "none",
|
|
1248
|
+
order: [j, "first", "last", "none", u, d]
|
|
1240
1249
|
}],
|
|
1241
1250
|
/**
|
|
1242
1251
|
* Grid Template Columns
|
|
1243
1252
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1244
1253
|
*/
|
|
1245
1254
|
"grid-cols": [{
|
|
1246
|
-
"grid-cols":
|
|
1255
|
+
"grid-cols": $e()
|
|
1247
1256
|
}],
|
|
1248
1257
|
/**
|
|
1249
1258
|
* Grid Column Start / End
|
|
1250
1259
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1251
1260
|
*/
|
|
1252
1261
|
"col-start-end": [{
|
|
1253
|
-
col:
|
|
1262
|
+
col: Ge()
|
|
1254
1263
|
}],
|
|
1255
1264
|
/**
|
|
1256
1265
|
* Grid Column Start
|
|
1257
1266
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1258
1267
|
*/
|
|
1259
1268
|
"col-start": [{
|
|
1260
|
-
"col-start":
|
|
1269
|
+
"col-start": ee()
|
|
1261
1270
|
}],
|
|
1262
1271
|
/**
|
|
1263
1272
|
* Grid Column End
|
|
1264
1273
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1265
1274
|
*/
|
|
1266
1275
|
"col-end": [{
|
|
1267
|
-
"col-end":
|
|
1276
|
+
"col-end": ee()
|
|
1268
1277
|
}],
|
|
1269
1278
|
/**
|
|
1270
1279
|
* Grid Template Rows
|
|
1271
1280
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1272
1281
|
*/
|
|
1273
1282
|
"grid-rows": [{
|
|
1274
|
-
"grid-rows":
|
|
1283
|
+
"grid-rows": $e()
|
|
1275
1284
|
}],
|
|
1276
1285
|
/**
|
|
1277
1286
|
* Grid Row Start / End
|
|
1278
1287
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1279
1288
|
*/
|
|
1280
1289
|
"row-start-end": [{
|
|
1281
|
-
row:
|
|
1290
|
+
row: Ge()
|
|
1282
1291
|
}],
|
|
1283
1292
|
/**
|
|
1284
1293
|
* Grid Row Start
|
|
1285
1294
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1286
1295
|
*/
|
|
1287
1296
|
"row-start": [{
|
|
1288
|
-
"row-start":
|
|
1297
|
+
"row-start": ee()
|
|
1289
1298
|
}],
|
|
1290
1299
|
/**
|
|
1291
1300
|
* Grid Row End
|
|
1292
1301
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1293
1302
|
*/
|
|
1294
1303
|
"row-end": [{
|
|
1295
|
-
"row-end":
|
|
1304
|
+
"row-end": ee()
|
|
1296
1305
|
}],
|
|
1297
1306
|
/**
|
|
1298
1307
|
* Grid Auto Flow
|
|
@@ -1306,14 +1315,14 @@ const S = (e) => {
|
|
|
1306
1315
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1307
1316
|
*/
|
|
1308
1317
|
"auto-cols": [{
|
|
1309
|
-
"auto-cols":
|
|
1318
|
+
"auto-cols": Ve()
|
|
1310
1319
|
}],
|
|
1311
1320
|
/**
|
|
1312
1321
|
* Grid Auto Rows
|
|
1313
1322
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1314
1323
|
*/
|
|
1315
1324
|
"auto-rows": [{
|
|
1316
|
-
"auto-rows":
|
|
1325
|
+
"auto-rows": Ve()
|
|
1317
1326
|
}],
|
|
1318
1327
|
/**
|
|
1319
1328
|
* Gap
|
|
@@ -1341,7 +1350,7 @@ const S = (e) => {
|
|
|
1341
1350
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1342
1351
|
*/
|
|
1343
1352
|
"justify-content": [{
|
|
1344
|
-
justify: [...
|
|
1353
|
+
justify: [...fe(), "normal"]
|
|
1345
1354
|
}],
|
|
1346
1355
|
/**
|
|
1347
1356
|
* Justify Items
|
|
@@ -1362,7 +1371,7 @@ const S = (e) => {
|
|
|
1362
1371
|
* @see https://tailwindcss.com/docs/align-content
|
|
1363
1372
|
*/
|
|
1364
1373
|
"align-content": [{
|
|
1365
|
-
content: ["normal", ...
|
|
1374
|
+
content: ["normal", ...fe()]
|
|
1366
1375
|
}],
|
|
1367
1376
|
/**
|
|
1368
1377
|
* Align Items
|
|
@@ -1387,7 +1396,7 @@ const S = (e) => {
|
|
|
1387
1396
|
* @see https://tailwindcss.com/docs/place-content
|
|
1388
1397
|
*/
|
|
1389
1398
|
"place-content": [{
|
|
1390
|
-
"place-content":
|
|
1399
|
+
"place-content": fe()
|
|
1391
1400
|
}],
|
|
1392
1401
|
/**
|
|
1393
1402
|
* Place Items
|
|
@@ -1472,63 +1481,63 @@ const S = (e) => {
|
|
|
1472
1481
|
* @see https://tailwindcss.com/docs/margin
|
|
1473
1482
|
*/
|
|
1474
1483
|
m: [{
|
|
1475
|
-
m:
|
|
1484
|
+
m: V()
|
|
1476
1485
|
}],
|
|
1477
1486
|
/**
|
|
1478
1487
|
* Margin X
|
|
1479
1488
|
* @see https://tailwindcss.com/docs/margin
|
|
1480
1489
|
*/
|
|
1481
1490
|
mx: [{
|
|
1482
|
-
mx:
|
|
1491
|
+
mx: V()
|
|
1483
1492
|
}],
|
|
1484
1493
|
/**
|
|
1485
1494
|
* Margin Y
|
|
1486
1495
|
* @see https://tailwindcss.com/docs/margin
|
|
1487
1496
|
*/
|
|
1488
1497
|
my: [{
|
|
1489
|
-
my:
|
|
1498
|
+
my: V()
|
|
1490
1499
|
}],
|
|
1491
1500
|
/**
|
|
1492
1501
|
* Margin Start
|
|
1493
1502
|
* @see https://tailwindcss.com/docs/margin
|
|
1494
1503
|
*/
|
|
1495
1504
|
ms: [{
|
|
1496
|
-
ms:
|
|
1505
|
+
ms: V()
|
|
1497
1506
|
}],
|
|
1498
1507
|
/**
|
|
1499
1508
|
* Margin End
|
|
1500
1509
|
* @see https://tailwindcss.com/docs/margin
|
|
1501
1510
|
*/
|
|
1502
1511
|
me: [{
|
|
1503
|
-
me:
|
|
1512
|
+
me: V()
|
|
1504
1513
|
}],
|
|
1505
1514
|
/**
|
|
1506
1515
|
* Margin Top
|
|
1507
1516
|
* @see https://tailwindcss.com/docs/margin
|
|
1508
1517
|
*/
|
|
1509
1518
|
mt: [{
|
|
1510
|
-
mt:
|
|
1519
|
+
mt: V()
|
|
1511
1520
|
}],
|
|
1512
1521
|
/**
|
|
1513
1522
|
* Margin Right
|
|
1514
1523
|
* @see https://tailwindcss.com/docs/margin
|
|
1515
1524
|
*/
|
|
1516
1525
|
mr: [{
|
|
1517
|
-
mr:
|
|
1526
|
+
mr: V()
|
|
1518
1527
|
}],
|
|
1519
1528
|
/**
|
|
1520
1529
|
* Margin Bottom
|
|
1521
1530
|
* @see https://tailwindcss.com/docs/margin
|
|
1522
1531
|
*/
|
|
1523
1532
|
mb: [{
|
|
1524
|
-
mb:
|
|
1533
|
+
mb: V()
|
|
1525
1534
|
}],
|
|
1526
1535
|
/**
|
|
1527
1536
|
* Margin Left
|
|
1528
1537
|
* @see https://tailwindcss.com/docs/margin
|
|
1529
1538
|
*/
|
|
1530
1539
|
ml: [{
|
|
1531
|
-
ml:
|
|
1540
|
+
ml: V()
|
|
1532
1541
|
}],
|
|
1533
1542
|
/**
|
|
1534
1543
|
* Space Between X
|
|
@@ -1648,21 +1657,21 @@ const S = (e) => {
|
|
|
1648
1657
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1649
1658
|
*/
|
|
1650
1659
|
"font-weight": [{
|
|
1651
|
-
font: [r,
|
|
1660
|
+
font: [r, u, be]
|
|
1652
1661
|
}],
|
|
1653
1662
|
/**
|
|
1654
1663
|
* Font Stretch
|
|
1655
1664
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1656
1665
|
*/
|
|
1657
1666
|
"font-stretch": [{
|
|
1658
|
-
"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", ge, d]
|
|
1659
1668
|
}],
|
|
1660
1669
|
/**
|
|
1661
1670
|
* Font Family
|
|
1662
1671
|
* @see https://tailwindcss.com/docs/font-family
|
|
1663
1672
|
*/
|
|
1664
1673
|
"font-family": [{
|
|
1665
|
-
font: [
|
|
1674
|
+
font: [Xo, d, t]
|
|
1666
1675
|
}],
|
|
1667
1676
|
/**
|
|
1668
1677
|
* Font Variant Numeric
|
|
@@ -1699,14 +1708,14 @@ const S = (e) => {
|
|
|
1699
1708
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1700
1709
|
*/
|
|
1701
1710
|
tracking: [{
|
|
1702
|
-
tracking: [n,
|
|
1711
|
+
tracking: [n, u, d]
|
|
1703
1712
|
}],
|
|
1704
1713
|
/**
|
|
1705
1714
|
* Line Clamp
|
|
1706
1715
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1707
1716
|
*/
|
|
1708
1717
|
"line-clamp": [{
|
|
1709
|
-
"line-clamp": [v, "none",
|
|
1718
|
+
"line-clamp": [v, "none", u, be]
|
|
1710
1719
|
}],
|
|
1711
1720
|
/**
|
|
1712
1721
|
* Line Height
|
|
@@ -1724,7 +1733,7 @@ const S = (e) => {
|
|
|
1724
1733
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1725
1734
|
*/
|
|
1726
1735
|
"list-image": [{
|
|
1727
|
-
"list-image": ["none",
|
|
1736
|
+
"list-image": ["none", u, d]
|
|
1728
1737
|
}],
|
|
1729
1738
|
/**
|
|
1730
1739
|
* List Style Position
|
|
@@ -1738,7 +1747,7 @@ const S = (e) => {
|
|
|
1738
1747
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1739
1748
|
*/
|
|
1740
1749
|
"list-style-type": [{
|
|
1741
|
-
list: ["disc", "decimal", "none",
|
|
1750
|
+
list: ["disc", "decimal", "none", u, d]
|
|
1742
1751
|
}],
|
|
1743
1752
|
/**
|
|
1744
1753
|
* Text Alignment
|
|
@@ -1772,14 +1781,14 @@ const S = (e) => {
|
|
|
1772
1781
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1773
1782
|
*/
|
|
1774
1783
|
"text-decoration-style": [{
|
|
1775
|
-
decoration: [...
|
|
1784
|
+
decoration: [...te(), "wavy"]
|
|
1776
1785
|
}],
|
|
1777
1786
|
/**
|
|
1778
1787
|
* Text Decoration Thickness
|
|
1779
1788
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1780
1789
|
*/
|
|
1781
1790
|
"text-decoration-thickness": [{
|
|
1782
|
-
decoration: [v, "from-font", "auto",
|
|
1791
|
+
decoration: [v, "from-font", "auto", u, F]
|
|
1783
1792
|
}],
|
|
1784
1793
|
/**
|
|
1785
1794
|
* Text Decoration Color
|
|
@@ -1793,7 +1802,7 @@ const S = (e) => {
|
|
|
1793
1802
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1794
1803
|
*/
|
|
1795
1804
|
"underline-offset": [{
|
|
1796
|
-
"underline-offset": [v, "auto",
|
|
1805
|
+
"underline-offset": [v, "auto", u, d]
|
|
1797
1806
|
}],
|
|
1798
1807
|
/**
|
|
1799
1808
|
* Text Transform
|
|
@@ -1824,7 +1833,7 @@ const S = (e) => {
|
|
|
1824
1833
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1825
1834
|
*/
|
|
1826
1835
|
"vertical-align": [{
|
|
1827
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1836
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", u, d]
|
|
1828
1837
|
}],
|
|
1829
1838
|
/**
|
|
1830
1839
|
* Whitespace
|
|
@@ -1859,7 +1868,7 @@ const S = (e) => {
|
|
|
1859
1868
|
* @see https://tailwindcss.com/docs/content
|
|
1860
1869
|
*/
|
|
1861
1870
|
content: [{
|
|
1862
|
-
content: ["none",
|
|
1871
|
+
content: ["none", u, d]
|
|
1863
1872
|
}],
|
|
1864
1873
|
// -------------------
|
|
1865
1874
|
// --- Backgrounds ---
|
|
@@ -1890,21 +1899,21 @@ const S = (e) => {
|
|
|
1890
1899
|
* @see https://tailwindcss.com/docs/background-position
|
|
1891
1900
|
*/
|
|
1892
1901
|
"bg-position": [{
|
|
1893
|
-
bg:
|
|
1902
|
+
bg: De()
|
|
1894
1903
|
}],
|
|
1895
1904
|
/**
|
|
1896
1905
|
* Background Repeat
|
|
1897
1906
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1898
1907
|
*/
|
|
1899
1908
|
"bg-repeat": [{
|
|
1900
|
-
bg:
|
|
1909
|
+
bg: je()
|
|
1901
1910
|
}],
|
|
1902
1911
|
/**
|
|
1903
1912
|
* Background Size
|
|
1904
1913
|
* @see https://tailwindcss.com/docs/background-size
|
|
1905
1914
|
*/
|
|
1906
1915
|
"bg-size": [{
|
|
1907
|
-
bg:
|
|
1916
|
+
bg: Ue()
|
|
1908
1917
|
}],
|
|
1909
1918
|
/**
|
|
1910
1919
|
* Background Image
|
|
@@ -1914,10 +1923,10 @@ const S = (e) => {
|
|
|
1914
1923
|
bg: ["none", {
|
|
1915
1924
|
linear: [{
|
|
1916
1925
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1917
|
-
}, j,
|
|
1918
|
-
radial: ["",
|
|
1919
|
-
conic: [j,
|
|
1920
|
-
},
|
|
1926
|
+
}, j, u, d],
|
|
1927
|
+
radial: ["", u, d],
|
|
1928
|
+
conic: [j, u, d]
|
|
1929
|
+
}, Yo, Zo]
|
|
1921
1930
|
}],
|
|
1922
1931
|
/**
|
|
1923
1932
|
* Background Color
|
|
@@ -1931,21 +1940,21 @@ const S = (e) => {
|
|
|
1931
1940
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1932
1941
|
*/
|
|
1933
1942
|
"gradient-from-pos": [{
|
|
1934
|
-
from:
|
|
1943
|
+
from: me()
|
|
1935
1944
|
}],
|
|
1936
1945
|
/**
|
|
1937
1946
|
* Gradient Color Stops Via Position
|
|
1938
1947
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1939
1948
|
*/
|
|
1940
1949
|
"gradient-via-pos": [{
|
|
1941
|
-
via:
|
|
1950
|
+
via: me()
|
|
1942
1951
|
}],
|
|
1943
1952
|
/**
|
|
1944
1953
|
* Gradient Color Stops To Position
|
|
1945
1954
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1946
1955
|
*/
|
|
1947
1956
|
"gradient-to-pos": [{
|
|
1948
|
-
to:
|
|
1957
|
+
to: me()
|
|
1949
1958
|
}],
|
|
1950
1959
|
/**
|
|
1951
1960
|
* Gradient Color Stops From
|
|
@@ -2168,14 +2177,14 @@ const S = (e) => {
|
|
|
2168
2177
|
* @see https://tailwindcss.com/docs/border-style
|
|
2169
2178
|
*/
|
|
2170
2179
|
"border-style": [{
|
|
2171
|
-
border: [...
|
|
2180
|
+
border: [...te(), "hidden", "none"]
|
|
2172
2181
|
}],
|
|
2173
2182
|
/**
|
|
2174
2183
|
* Divide Style
|
|
2175
2184
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
2176
2185
|
*/
|
|
2177
2186
|
"divide-style": [{
|
|
2178
|
-
divide: [...
|
|
2187
|
+
divide: [...te(), "hidden", "none"]
|
|
2179
2188
|
}],
|
|
2180
2189
|
/**
|
|
2181
2190
|
* Border Color
|
|
@@ -2252,14 +2261,14 @@ const S = (e) => {
|
|
|
2252
2261
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2253
2262
|
*/
|
|
2254
2263
|
"outline-style": [{
|
|
2255
|
-
outline: [...
|
|
2264
|
+
outline: [...te(), "none", "hidden"]
|
|
2256
2265
|
}],
|
|
2257
2266
|
/**
|
|
2258
2267
|
* Outline Offset
|
|
2259
2268
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2260
2269
|
*/
|
|
2261
2270
|
"outline-offset": [{
|
|
2262
|
-
"outline-offset": [v,
|
|
2271
|
+
"outline-offset": [v, u, d]
|
|
2263
2272
|
}],
|
|
2264
2273
|
/**
|
|
2265
2274
|
* Outline Width
|
|
@@ -2288,8 +2297,8 @@ const S = (e) => {
|
|
|
2288
2297
|
"",
|
|
2289
2298
|
"none",
|
|
2290
2299
|
p,
|
|
2291
|
-
|
|
2292
|
-
|
|
2300
|
+
ie,
|
|
2301
|
+
se
|
|
2293
2302
|
]
|
|
2294
2303
|
}],
|
|
2295
2304
|
/**
|
|
@@ -2304,7 +2313,7 @@ const S = (e) => {
|
|
|
2304
2313
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2305
2314
|
*/
|
|
2306
2315
|
"inset-shadow": [{
|
|
2307
|
-
"inset-shadow": ["none", h,
|
|
2316
|
+
"inset-shadow": ["none", h, ie, se]
|
|
2308
2317
|
}],
|
|
2309
2318
|
/**
|
|
2310
2319
|
* Inset Box Shadow Color
|
|
@@ -2371,7 +2380,7 @@ const S = (e) => {
|
|
|
2371
2380
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2372
2381
|
*/
|
|
2373
2382
|
"text-shadow": [{
|
|
2374
|
-
"text-shadow": ["none", A,
|
|
2383
|
+
"text-shadow": ["none", A, ie, se]
|
|
2375
2384
|
}],
|
|
2376
2385
|
/**
|
|
2377
2386
|
* Text Shadow Color
|
|
@@ -2385,21 +2394,21 @@ const S = (e) => {
|
|
|
2385
2394
|
* @see https://tailwindcss.com/docs/opacity
|
|
2386
2395
|
*/
|
|
2387
2396
|
opacity: [{
|
|
2388
|
-
opacity: [v,
|
|
2397
|
+
opacity: [v, u, d]
|
|
2389
2398
|
}],
|
|
2390
2399
|
/**
|
|
2391
2400
|
* Mix Blend Mode
|
|
2392
2401
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2393
2402
|
*/
|
|
2394
2403
|
"mix-blend": [{
|
|
2395
|
-
"mix-blend": [...
|
|
2404
|
+
"mix-blend": [...Fe(), "plus-darker", "plus-lighter"]
|
|
2396
2405
|
}],
|
|
2397
2406
|
/**
|
|
2398
2407
|
* Background Blend Mode
|
|
2399
2408
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2400
2409
|
*/
|
|
2401
2410
|
"bg-blend": [{
|
|
2402
|
-
"bg-blend":
|
|
2411
|
+
"bg-blend": Fe()
|
|
2403
2412
|
}],
|
|
2404
2413
|
/**
|
|
2405
2414
|
* Mask Clip
|
|
@@ -2507,7 +2516,7 @@ const S = (e) => {
|
|
|
2507
2516
|
"mask-y-to": g()
|
|
2508
2517
|
}],
|
|
2509
2518
|
"mask-image-radial": [{
|
|
2510
|
-
"mask-radial": [
|
|
2519
|
+
"mask-radial": [u, d]
|
|
2511
2520
|
}],
|
|
2512
2521
|
"mask-image-radial-from-pos": [{
|
|
2513
2522
|
"mask-radial-from": P()
|
|
@@ -2531,7 +2540,7 @@ const S = (e) => {
|
|
|
2531
2540
|
}]
|
|
2532
2541
|
}],
|
|
2533
2542
|
"mask-image-radial-pos": [{
|
|
2534
|
-
"mask-radial-at":
|
|
2543
|
+
"mask-radial-at": S()
|
|
2535
2544
|
}],
|
|
2536
2545
|
"mask-image-conic-pos": [{
|
|
2537
2546
|
"mask-conic": [v]
|
|
@@ -2567,21 +2576,21 @@ const S = (e) => {
|
|
|
2567
2576
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2568
2577
|
*/
|
|
2569
2578
|
"mask-position": [{
|
|
2570
|
-
mask:
|
|
2579
|
+
mask: De()
|
|
2571
2580
|
}],
|
|
2572
2581
|
/**
|
|
2573
2582
|
* Mask Repeat
|
|
2574
2583
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2575
2584
|
*/
|
|
2576
2585
|
"mask-repeat": [{
|
|
2577
|
-
mask:
|
|
2586
|
+
mask: je()
|
|
2578
2587
|
}],
|
|
2579
2588
|
/**
|
|
2580
2589
|
* Mask Size
|
|
2581
2590
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2582
2591
|
*/
|
|
2583
2592
|
"mask-size": [{
|
|
2584
|
-
mask:
|
|
2593
|
+
mask: Ue()
|
|
2585
2594
|
}],
|
|
2586
2595
|
/**
|
|
2587
2596
|
* Mask Type
|
|
@@ -2595,7 +2604,7 @@ const S = (e) => {
|
|
|
2595
2604
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2596
2605
|
*/
|
|
2597
2606
|
"mask-image": [{
|
|
2598
|
-
mask: ["none",
|
|
2607
|
+
mask: ["none", u, d]
|
|
2599
2608
|
}],
|
|
2600
2609
|
// ---------------
|
|
2601
2610
|
// --- Filters ---
|
|
@@ -2609,8 +2618,8 @@ const S = (e) => {
|
|
|
2609
2618
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2610
2619
|
"",
|
|
2611
2620
|
"none",
|
|
2612
|
-
|
|
2613
|
-
|
|
2621
|
+
u,
|
|
2622
|
+
d
|
|
2614
2623
|
]
|
|
2615
2624
|
}],
|
|
2616
2625
|
/**
|
|
@@ -2618,21 +2627,21 @@ const S = (e) => {
|
|
|
2618
2627
|
* @see https://tailwindcss.com/docs/blur
|
|
2619
2628
|
*/
|
|
2620
2629
|
blur: [{
|
|
2621
|
-
blur:
|
|
2630
|
+
blur: We()
|
|
2622
2631
|
}],
|
|
2623
2632
|
/**
|
|
2624
2633
|
* Brightness
|
|
2625
2634
|
* @see https://tailwindcss.com/docs/brightness
|
|
2626
2635
|
*/
|
|
2627
2636
|
brightness: [{
|
|
2628
|
-
brightness: [v,
|
|
2637
|
+
brightness: [v, u, d]
|
|
2629
2638
|
}],
|
|
2630
2639
|
/**
|
|
2631
2640
|
* Contrast
|
|
2632
2641
|
* @see https://tailwindcss.com/docs/contrast
|
|
2633
2642
|
*/
|
|
2634
2643
|
contrast: [{
|
|
2635
|
-
contrast: [v,
|
|
2644
|
+
contrast: [v, u, d]
|
|
2636
2645
|
}],
|
|
2637
2646
|
/**
|
|
2638
2647
|
* Drop Shadow
|
|
@@ -2644,8 +2653,8 @@ const S = (e) => {
|
|
|
2644
2653
|
"",
|
|
2645
2654
|
"none",
|
|
2646
2655
|
w,
|
|
2647
|
-
|
|
2648
|
-
|
|
2656
|
+
ie,
|
|
2657
|
+
se
|
|
2649
2658
|
]
|
|
2650
2659
|
}],
|
|
2651
2660
|
/**
|
|
@@ -2660,35 +2669,35 @@ const S = (e) => {
|
|
|
2660
2669
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2661
2670
|
*/
|
|
2662
2671
|
grayscale: [{
|
|
2663
|
-
grayscale: ["", v,
|
|
2672
|
+
grayscale: ["", v, u, d]
|
|
2664
2673
|
}],
|
|
2665
2674
|
/**
|
|
2666
2675
|
* Hue Rotate
|
|
2667
2676
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2668
2677
|
*/
|
|
2669
2678
|
"hue-rotate": [{
|
|
2670
|
-
"hue-rotate": [v,
|
|
2679
|
+
"hue-rotate": [v, u, d]
|
|
2671
2680
|
}],
|
|
2672
2681
|
/**
|
|
2673
2682
|
* Invert
|
|
2674
2683
|
* @see https://tailwindcss.com/docs/invert
|
|
2675
2684
|
*/
|
|
2676
2685
|
invert: [{
|
|
2677
|
-
invert: ["", v,
|
|
2686
|
+
invert: ["", v, u, d]
|
|
2678
2687
|
}],
|
|
2679
2688
|
/**
|
|
2680
2689
|
* Saturate
|
|
2681
2690
|
* @see https://tailwindcss.com/docs/saturate
|
|
2682
2691
|
*/
|
|
2683
2692
|
saturate: [{
|
|
2684
|
-
saturate: [v,
|
|
2693
|
+
saturate: [v, u, d]
|
|
2685
2694
|
}],
|
|
2686
2695
|
/**
|
|
2687
2696
|
* Sepia
|
|
2688
2697
|
* @see https://tailwindcss.com/docs/sepia
|
|
2689
2698
|
*/
|
|
2690
2699
|
sepia: [{
|
|
2691
|
-
sepia: ["", v,
|
|
2700
|
+
sepia: ["", v, u, d]
|
|
2692
2701
|
}],
|
|
2693
2702
|
/**
|
|
2694
2703
|
* Backdrop Filter
|
|
@@ -2699,8 +2708,8 @@ const S = (e) => {
|
|
|
2699
2708
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2700
2709
|
"",
|
|
2701
2710
|
"none",
|
|
2702
|
-
|
|
2703
|
-
|
|
2711
|
+
u,
|
|
2712
|
+
d
|
|
2704
2713
|
]
|
|
2705
2714
|
}],
|
|
2706
2715
|
/**
|
|
@@ -2708,63 +2717,63 @@ const S = (e) => {
|
|
|
2708
2717
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2709
2718
|
*/
|
|
2710
2719
|
"backdrop-blur": [{
|
|
2711
|
-
"backdrop-blur":
|
|
2720
|
+
"backdrop-blur": We()
|
|
2712
2721
|
}],
|
|
2713
2722
|
/**
|
|
2714
2723
|
* Backdrop Brightness
|
|
2715
2724
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2716
2725
|
*/
|
|
2717
2726
|
"backdrop-brightness": [{
|
|
2718
|
-
"backdrop-brightness": [v,
|
|
2727
|
+
"backdrop-brightness": [v, u, d]
|
|
2719
2728
|
}],
|
|
2720
2729
|
/**
|
|
2721
2730
|
* Backdrop Contrast
|
|
2722
2731
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2723
2732
|
*/
|
|
2724
2733
|
"backdrop-contrast": [{
|
|
2725
|
-
"backdrop-contrast": [v,
|
|
2734
|
+
"backdrop-contrast": [v, u, d]
|
|
2726
2735
|
}],
|
|
2727
2736
|
/**
|
|
2728
2737
|
* Backdrop Grayscale
|
|
2729
2738
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2730
2739
|
*/
|
|
2731
2740
|
"backdrop-grayscale": [{
|
|
2732
|
-
"backdrop-grayscale": ["", v,
|
|
2741
|
+
"backdrop-grayscale": ["", v, u, d]
|
|
2733
2742
|
}],
|
|
2734
2743
|
/**
|
|
2735
2744
|
* Backdrop Hue Rotate
|
|
2736
2745
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2737
2746
|
*/
|
|
2738
2747
|
"backdrop-hue-rotate": [{
|
|
2739
|
-
"backdrop-hue-rotate": [v,
|
|
2748
|
+
"backdrop-hue-rotate": [v, u, d]
|
|
2740
2749
|
}],
|
|
2741
2750
|
/**
|
|
2742
2751
|
* Backdrop Invert
|
|
2743
2752
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2744
2753
|
*/
|
|
2745
2754
|
"backdrop-invert": [{
|
|
2746
|
-
"backdrop-invert": ["", v,
|
|
2755
|
+
"backdrop-invert": ["", v, u, d]
|
|
2747
2756
|
}],
|
|
2748
2757
|
/**
|
|
2749
2758
|
* Backdrop Opacity
|
|
2750
2759
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2751
2760
|
*/
|
|
2752
2761
|
"backdrop-opacity": [{
|
|
2753
|
-
"backdrop-opacity": [v,
|
|
2762
|
+
"backdrop-opacity": [v, u, d]
|
|
2754
2763
|
}],
|
|
2755
2764
|
/**
|
|
2756
2765
|
* Backdrop Saturate
|
|
2757
2766
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2758
2767
|
*/
|
|
2759
2768
|
"backdrop-saturate": [{
|
|
2760
|
-
"backdrop-saturate": [v,
|
|
2769
|
+
"backdrop-saturate": [v, u, d]
|
|
2761
2770
|
}],
|
|
2762
2771
|
/**
|
|
2763
2772
|
* Backdrop Sepia
|
|
2764
2773
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2765
2774
|
*/
|
|
2766
2775
|
"backdrop-sepia": [{
|
|
2767
|
-
"backdrop-sepia": ["", v,
|
|
2776
|
+
"backdrop-sepia": ["", v, u, d]
|
|
2768
2777
|
}],
|
|
2769
2778
|
// --------------
|
|
2770
2779
|
// --- Tables ---
|
|
@@ -2819,7 +2828,7 @@ const S = (e) => {
|
|
|
2819
2828
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2820
2829
|
*/
|
|
2821
2830
|
transition: [{
|
|
2822
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2831
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", u, d]
|
|
2823
2832
|
}],
|
|
2824
2833
|
/**
|
|
2825
2834
|
* Transition Behavior
|
|
@@ -2833,28 +2842,28 @@ const S = (e) => {
|
|
|
2833
2842
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2834
2843
|
*/
|
|
2835
2844
|
duration: [{
|
|
2836
|
-
duration: [v, "initial",
|
|
2845
|
+
duration: [v, "initial", u, d]
|
|
2837
2846
|
}],
|
|
2838
2847
|
/**
|
|
2839
2848
|
* Transition Timing Function
|
|
2840
2849
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2841
2850
|
*/
|
|
2842
2851
|
ease: [{
|
|
2843
|
-
ease: ["linear", "initial", R,
|
|
2852
|
+
ease: ["linear", "initial", R, u, d]
|
|
2844
2853
|
}],
|
|
2845
2854
|
/**
|
|
2846
2855
|
* Transition Delay
|
|
2847
2856
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2848
2857
|
*/
|
|
2849
2858
|
delay: [{
|
|
2850
|
-
delay: [v,
|
|
2859
|
+
delay: [v, u, d]
|
|
2851
2860
|
}],
|
|
2852
2861
|
/**
|
|
2853
2862
|
* Animation
|
|
2854
2863
|
* @see https://tailwindcss.com/docs/animation
|
|
2855
2864
|
*/
|
|
2856
2865
|
animate: [{
|
|
2857
|
-
animate: ["none", x,
|
|
2866
|
+
animate: ["none", x, u, d]
|
|
2858
2867
|
}],
|
|
2859
2868
|
// ------------------
|
|
2860
2869
|
// --- Transforms ---
|
|
@@ -2871,7 +2880,7 @@ const S = (e) => {
|
|
|
2871
2880
|
* @see https://tailwindcss.com/docs/perspective
|
|
2872
2881
|
*/
|
|
2873
2882
|
perspective: [{
|
|
2874
|
-
perspective: [y,
|
|
2883
|
+
perspective: [y, u, d]
|
|
2875
2884
|
}],
|
|
2876
2885
|
/**
|
|
2877
2886
|
* Perspective Origin
|
|
@@ -2885,56 +2894,56 @@ const S = (e) => {
|
|
|
2885
2894
|
* @see https://tailwindcss.com/docs/rotate
|
|
2886
2895
|
*/
|
|
2887
2896
|
rotate: [{
|
|
2888
|
-
rotate:
|
|
2897
|
+
rotate: oe()
|
|
2889
2898
|
}],
|
|
2890
2899
|
/**
|
|
2891
2900
|
* Rotate X
|
|
2892
2901
|
* @see https://tailwindcss.com/docs/rotate
|
|
2893
2902
|
*/
|
|
2894
2903
|
"rotate-x": [{
|
|
2895
|
-
"rotate-x":
|
|
2904
|
+
"rotate-x": oe()
|
|
2896
2905
|
}],
|
|
2897
2906
|
/**
|
|
2898
2907
|
* Rotate Y
|
|
2899
2908
|
* @see https://tailwindcss.com/docs/rotate
|
|
2900
2909
|
*/
|
|
2901
2910
|
"rotate-y": [{
|
|
2902
|
-
"rotate-y":
|
|
2911
|
+
"rotate-y": oe()
|
|
2903
2912
|
}],
|
|
2904
2913
|
/**
|
|
2905
2914
|
* Rotate Z
|
|
2906
2915
|
* @see https://tailwindcss.com/docs/rotate
|
|
2907
2916
|
*/
|
|
2908
2917
|
"rotate-z": [{
|
|
2909
|
-
"rotate-z":
|
|
2918
|
+
"rotate-z": oe()
|
|
2910
2919
|
}],
|
|
2911
2920
|
/**
|
|
2912
2921
|
* Scale
|
|
2913
2922
|
* @see https://tailwindcss.com/docs/scale
|
|
2914
2923
|
*/
|
|
2915
2924
|
scale: [{
|
|
2916
|
-
scale:
|
|
2925
|
+
scale: re()
|
|
2917
2926
|
}],
|
|
2918
2927
|
/**
|
|
2919
2928
|
* Scale X
|
|
2920
2929
|
* @see https://tailwindcss.com/docs/scale
|
|
2921
2930
|
*/
|
|
2922
2931
|
"scale-x": [{
|
|
2923
|
-
"scale-x":
|
|
2932
|
+
"scale-x": re()
|
|
2924
2933
|
}],
|
|
2925
2934
|
/**
|
|
2926
2935
|
* Scale Y
|
|
2927
2936
|
* @see https://tailwindcss.com/docs/scale
|
|
2928
2937
|
*/
|
|
2929
2938
|
"scale-y": [{
|
|
2930
|
-
"scale-y":
|
|
2939
|
+
"scale-y": re()
|
|
2931
2940
|
}],
|
|
2932
2941
|
/**
|
|
2933
2942
|
* Scale Z
|
|
2934
2943
|
* @see https://tailwindcss.com/docs/scale
|
|
2935
2944
|
*/
|
|
2936
2945
|
"scale-z": [{
|
|
2937
|
-
"scale-z":
|
|
2946
|
+
"scale-z": re()
|
|
2938
2947
|
}],
|
|
2939
2948
|
/**
|
|
2940
2949
|
* Scale 3D
|
|
@@ -2946,28 +2955,28 @@ const S = (e) => {
|
|
|
2946
2955
|
* @see https://tailwindcss.com/docs/skew
|
|
2947
2956
|
*/
|
|
2948
2957
|
skew: [{
|
|
2949
|
-
skew:
|
|
2958
|
+
skew: pe()
|
|
2950
2959
|
}],
|
|
2951
2960
|
/**
|
|
2952
2961
|
* Skew X
|
|
2953
2962
|
* @see https://tailwindcss.com/docs/skew
|
|
2954
2963
|
*/
|
|
2955
2964
|
"skew-x": [{
|
|
2956
|
-
"skew-x":
|
|
2965
|
+
"skew-x": pe()
|
|
2957
2966
|
}],
|
|
2958
2967
|
/**
|
|
2959
2968
|
* Skew Y
|
|
2960
2969
|
* @see https://tailwindcss.com/docs/skew
|
|
2961
2970
|
*/
|
|
2962
2971
|
"skew-y": [{
|
|
2963
|
-
"skew-y":
|
|
2972
|
+
"skew-y": pe()
|
|
2964
2973
|
}],
|
|
2965
2974
|
/**
|
|
2966
2975
|
* Transform
|
|
2967
2976
|
* @see https://tailwindcss.com/docs/transform
|
|
2968
2977
|
*/
|
|
2969
2978
|
transform: [{
|
|
2970
|
-
transform: [
|
|
2979
|
+
transform: [u, d, "", "none", "gpu", "cpu"]
|
|
2971
2980
|
}],
|
|
2972
2981
|
/**
|
|
2973
2982
|
* Transform Origin
|
|
@@ -2988,28 +2997,28 @@ const S = (e) => {
|
|
|
2988
2997
|
* @see https://tailwindcss.com/docs/translate
|
|
2989
2998
|
*/
|
|
2990
2999
|
translate: [{
|
|
2991
|
-
translate:
|
|
3000
|
+
translate: ne()
|
|
2992
3001
|
}],
|
|
2993
3002
|
/**
|
|
2994
3003
|
* Translate X
|
|
2995
3004
|
* @see https://tailwindcss.com/docs/translate
|
|
2996
3005
|
*/
|
|
2997
3006
|
"translate-x": [{
|
|
2998
|
-
"translate-x":
|
|
3007
|
+
"translate-x": ne()
|
|
2999
3008
|
}],
|
|
3000
3009
|
/**
|
|
3001
3010
|
* Translate Y
|
|
3002
3011
|
* @see https://tailwindcss.com/docs/translate
|
|
3003
3012
|
*/
|
|
3004
3013
|
"translate-y": [{
|
|
3005
|
-
"translate-y":
|
|
3014
|
+
"translate-y": ne()
|
|
3006
3015
|
}],
|
|
3007
3016
|
/**
|
|
3008
3017
|
* Translate Z
|
|
3009
3018
|
* @see https://tailwindcss.com/docs/translate
|
|
3010
3019
|
*/
|
|
3011
3020
|
"translate-z": [{
|
|
3012
|
-
"translate-z":
|
|
3021
|
+
"translate-z": ne()
|
|
3013
3022
|
}],
|
|
3014
3023
|
/**
|
|
3015
3024
|
* Translate None
|
|
@@ -3052,7 +3061,7 @@ const S = (e) => {
|
|
|
3052
3061
|
* @see https://tailwindcss.com/docs/cursor
|
|
3053
3062
|
*/
|
|
3054
3063
|
cursor: [{
|
|
3055
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
3064
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", u, d]
|
|
3056
3065
|
}],
|
|
3057
3066
|
/**
|
|
3058
3067
|
* Field Sizing
|
|
@@ -3274,7 +3283,7 @@ const S = (e) => {
|
|
|
3274
3283
|
* @see https://tailwindcss.com/docs/will-change
|
|
3275
3284
|
*/
|
|
3276
3285
|
"will-change": [{
|
|
3277
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3286
|
+
"will-change": ["auto", "scroll", "contents", "transform", u, d]
|
|
3278
3287
|
}],
|
|
3279
3288
|
// -----------
|
|
3280
3289
|
// --- SVG ---
|
|
@@ -3291,7 +3300,7 @@ const S = (e) => {
|
|
|
3291
3300
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3292
3301
|
*/
|
|
3293
3302
|
"stroke-w": [{
|
|
3294
|
-
stroke: [v, Z, F,
|
|
3303
|
+
stroke: [v, Z, F, be]
|
|
3295
3304
|
}],
|
|
3296
3305
|
/**
|
|
3297
3306
|
* Stroke
|
|
@@ -3366,14 +3375,14 @@ const S = (e) => {
|
|
|
3366
3375
|
},
|
|
3367
3376
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3368
3377
|
};
|
|
3369
|
-
},
|
|
3378
|
+
}, or = /* @__PURE__ */ Lo(tr);
|
|
3370
3379
|
function M(...e) {
|
|
3371
|
-
return
|
|
3380
|
+
return or(ko(e));
|
|
3372
3381
|
}
|
|
3373
|
-
function
|
|
3374
|
-
const { colorScheme: r } =
|
|
3375
|
-
return /* @__PURE__ */
|
|
3376
|
-
|
|
3382
|
+
function rr({ children: e, className: t, ...o }) {
|
|
3383
|
+
const { colorScheme: r } = Oe(), { value: n } = Le();
|
|
3384
|
+
return /* @__PURE__ */ c(
|
|
3385
|
+
vo,
|
|
3377
3386
|
{
|
|
3378
3387
|
className: M(
|
|
3379
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",
|
|
@@ -3384,28 +3393,29 @@ function Yo({ children: e, className: t, ...o }) {
|
|
|
3384
3393
|
t
|
|
3385
3394
|
),
|
|
3386
3395
|
"data-slot": "accordion-item",
|
|
3396
|
+
value: n,
|
|
3387
3397
|
...o,
|
|
3388
3398
|
children: e
|
|
3389
3399
|
}
|
|
3390
3400
|
);
|
|
3391
3401
|
}
|
|
3392
|
-
function
|
|
3393
|
-
return /* @__PURE__ */
|
|
3402
|
+
function nr({ className: e, ...t }) {
|
|
3403
|
+
return /* @__PURE__ */ c(ho, { className: M(e), ...t, "data-slot": "accordion-root" });
|
|
3394
3404
|
}
|
|
3395
|
-
function
|
|
3396
|
-
const { colorScheme: r } =
|
|
3397
|
-
return
|
|
3405
|
+
function ar({ className: e, ...t }) {
|
|
3406
|
+
const { colorScheme: o } = Oe(), { content: r } = Le(), [n, a] = Ot(!1);
|
|
3407
|
+
return Lt(() => {
|
|
3398
3408
|
a(!0);
|
|
3399
|
-
}, []), /* @__PURE__ */
|
|
3400
|
-
|
|
3409
|
+
}, []), /* @__PURE__ */ c(
|
|
3410
|
+
wo,
|
|
3401
3411
|
{
|
|
3402
3412
|
className: M(
|
|
3403
3413
|
"overflow-hidden",
|
|
3404
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.
|
|
3405
3415
|
n && "data-[state=closed]:animate-collapse data-[state=open]:animate-expand"
|
|
3406
3416
|
),
|
|
3407
|
-
...
|
|
3408
|
-
children: /* @__PURE__ */
|
|
3417
|
+
...t,
|
|
3418
|
+
children: /* @__PURE__ */ c(
|
|
3409
3419
|
"div",
|
|
3410
3420
|
{
|
|
3411
3421
|
className: M(
|
|
@@ -3413,29 +3423,73 @@ function er({ children: e, className: t, ...o }) {
|
|
|
3413
3423
|
{
|
|
3414
3424
|
light: "text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",
|
|
3415
3425
|
dark: "text-[var(--accordion-dark-content-text,hsl(var(--background)))]"
|
|
3416
|
-
}[
|
|
3417
|
-
|
|
3426
|
+
}[o],
|
|
3427
|
+
e
|
|
3418
3428
|
),
|
|
3419
3429
|
"data-slot": "accordion-content",
|
|
3420
|
-
children:
|
|
3430
|
+
children: r
|
|
3421
3431
|
}
|
|
3422
3432
|
)
|
|
3423
3433
|
}
|
|
3424
3434
|
);
|
|
3425
3435
|
}
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3436
|
+
const St = Ce(void 0);
|
|
3437
|
+
function sr({
|
|
3438
|
+
children: e,
|
|
3439
|
+
colorScheme: t = "light",
|
|
3440
|
+
items: o
|
|
3441
|
+
}) {
|
|
3442
|
+
const r = Ae(
|
|
3443
|
+
() => ({
|
|
3444
|
+
colorScheme: t,
|
|
3445
|
+
items: o
|
|
3446
|
+
}),
|
|
3447
|
+
[t, o]
|
|
3448
|
+
);
|
|
3449
|
+
return /* @__PURE__ */ c(St.Provider, { value: r, children: e });
|
|
3450
|
+
}
|
|
3451
|
+
function Oe() {
|
|
3452
|
+
const e = Re(St);
|
|
3453
|
+
if (e === void 0)
|
|
3454
|
+
throw new Error("useAccordion must be used within an AccordionProvider");
|
|
3455
|
+
return e;
|
|
3456
|
+
}
|
|
3457
|
+
const Pt = Ce(void 0);
|
|
3458
|
+
function ir({
|
|
3459
|
+
children: e,
|
|
3460
|
+
title: t,
|
|
3461
|
+
content: o,
|
|
3462
|
+
value: r
|
|
3463
|
+
}) {
|
|
3464
|
+
const n = Ae(
|
|
3465
|
+
() => ({
|
|
3466
|
+
title: t,
|
|
3467
|
+
content: o,
|
|
3468
|
+
value: r
|
|
3469
|
+
}),
|
|
3470
|
+
[t, o, r]
|
|
3471
|
+
);
|
|
3472
|
+
return /* @__PURE__ */ c(Pt.Provider, { value: n, children: e });
|
|
3473
|
+
}
|
|
3474
|
+
function Le() {
|
|
3475
|
+
const e = Re(Pt);
|
|
3476
|
+
if (e === void 0)
|
|
3477
|
+
throw new Error("useAccordionItem must be used within an AccordionItemProvider");
|
|
3478
|
+
return e;
|
|
3479
|
+
}
|
|
3480
|
+
function lr({ className: e, ...t }) {
|
|
3481
|
+
const { colorScheme: o } = Oe(), { title: r } = Le();
|
|
3482
|
+
return /* @__PURE__ */ c(xo, { children: /* @__PURE__ */ W(
|
|
3483
|
+
yo,
|
|
3430
3484
|
{
|
|
3431
3485
|
className: M(
|
|
3432
3486
|
"group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4",
|
|
3433
|
-
|
|
3487
|
+
e
|
|
3434
3488
|
),
|
|
3435
3489
|
"data-slot": "accordion-trigger",
|
|
3436
|
-
...
|
|
3490
|
+
...t,
|
|
3437
3491
|
children: [
|
|
3438
|
-
/* @__PURE__ */
|
|
3492
|
+
/* @__PURE__ */ c(
|
|
3439
3493
|
"div",
|
|
3440
3494
|
{
|
|
3441
3495
|
className: M(
|
|
@@ -3443,9 +3497,9 @@ function tr({ children: e, className: t, ...o }) {
|
|
|
3443
3497
|
{
|
|
3444
3498
|
light: "text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",
|
|
3445
3499
|
dark: "text-[var(--accordion-dark-title-text,hsl(var(--contrast-200)))] group-hover:text-[var(--accordion-dark-title-text-hover,hsl(var(--background)))]"
|
|
3446
|
-
}[
|
|
3500
|
+
}[o]
|
|
3447
3501
|
),
|
|
3448
|
-
children:
|
|
3502
|
+
children: r
|
|
3449
3503
|
}
|
|
3450
3504
|
),
|
|
3451
3505
|
/* @__PURE__ */ W(
|
|
@@ -3456,13 +3510,13 @@ function tr({ children: e, className: t, ...o }) {
|
|
|
3456
3510
|
{
|
|
3457
3511
|
light: "stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",
|
|
3458
3512
|
dark: "stroke-[var(--accordion-dark-title-icon,hsl(var(--contrast-200)))] group-hover:stroke-[var(--accordion-dark-title-icon-hover,hsl(var(--background)))]"
|
|
3459
|
-
}[
|
|
3513
|
+
}[o]
|
|
3460
3514
|
),
|
|
3461
3515
|
"data-slot": "accordion-chevron",
|
|
3462
3516
|
viewBox: "0 0 10 10",
|
|
3463
3517
|
width: 16,
|
|
3464
3518
|
children: [
|
|
3465
|
-
/* @__PURE__ */
|
|
3519
|
+
/* @__PURE__ */ c(
|
|
3466
3520
|
"line",
|
|
3467
3521
|
{
|
|
3468
3522
|
className: "group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",
|
|
@@ -3473,7 +3527,7 @@ function tr({ children: e, className: t, ...o }) {
|
|
|
3473
3527
|
y2: 5
|
|
3474
3528
|
}
|
|
3475
3529
|
),
|
|
3476
|
-
/* @__PURE__ */
|
|
3530
|
+
/* @__PURE__ */ c(
|
|
3477
3531
|
"line",
|
|
3478
3532
|
{
|
|
3479
3533
|
className: "group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",
|
|
@@ -3491,30 +3545,31 @@ function tr({ children: e, className: t, ...o }) {
|
|
|
3491
3545
|
}
|
|
3492
3546
|
) });
|
|
3493
3547
|
}
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3548
|
+
function Pr({ className: e, variant: t, message: o, description: r, action: n, dismiss: a }) {
|
|
3549
|
+
return /* @__PURE__ */ c(
|
|
3550
|
+
dr,
|
|
3551
|
+
{
|
|
3552
|
+
action: n,
|
|
3553
|
+
description: r,
|
|
3554
|
+
dismiss: a,
|
|
3555
|
+
message: o,
|
|
3556
|
+
variant: t,
|
|
3557
|
+
children: /* @__PURE__ */ W(cr, { className: e, children: [
|
|
3558
|
+
/* @__PURE__ */ W(ur, { children: [
|
|
3559
|
+
/* @__PURE__ */ c(fr, {}),
|
|
3560
|
+
/* @__PURE__ */ c(mr, {})
|
|
3561
|
+
] }),
|
|
3562
|
+
/* @__PURE__ */ W(pr, { children: [
|
|
3563
|
+
/* @__PURE__ */ c(Ar, {}),
|
|
3564
|
+
/* @__PURE__ */ c(Rr, {})
|
|
3565
|
+
] })
|
|
3566
|
+
] })
|
|
3567
|
+
}
|
|
3568
|
+
);
|
|
3515
3569
|
}
|
|
3516
|
-
function
|
|
3517
|
-
|
|
3570
|
+
function cr({ className: e, children: t, ...o }) {
|
|
3571
|
+
const { variant: r } = Q();
|
|
3572
|
+
return /* @__PURE__ */ c(
|
|
3518
3573
|
"div",
|
|
3519
3574
|
{
|
|
3520
3575
|
className: M(
|
|
@@ -3524,18 +3579,45 @@ function rr({ variant: e, className: t, children: o, ...r }) {
|
|
|
3524
3579
|
warning: "bg-[var(--alert-warning-background,color-mix(in_oklab,hsl(var(--warning)),white_75%))]",
|
|
3525
3580
|
error: "bg-[var(--alert-error-background,color-mix(in_oklab,hsl(var(--error)),white_75%))]",
|
|
3526
3581
|
info: "bg-[var(--alert-info-background,hsl(var(--background)))]"
|
|
3527
|
-
}[
|
|
3528
|
-
|
|
3582
|
+
}[r],
|
|
3583
|
+
e
|
|
3529
3584
|
),
|
|
3530
3585
|
"data-slot": "alert-root",
|
|
3531
3586
|
role: "alert",
|
|
3532
|
-
...
|
|
3533
|
-
children:
|
|
3587
|
+
...o,
|
|
3588
|
+
children: t
|
|
3534
3589
|
}
|
|
3535
3590
|
);
|
|
3536
3591
|
}
|
|
3537
|
-
|
|
3538
|
-
|
|
3592
|
+
const Mt = Ce(void 0);
|
|
3593
|
+
function dr({
|
|
3594
|
+
children: e,
|
|
3595
|
+
message: t,
|
|
3596
|
+
description: o,
|
|
3597
|
+
action: r,
|
|
3598
|
+
dismiss: n,
|
|
3599
|
+
variant: a
|
|
3600
|
+
}) {
|
|
3601
|
+
const s = Ae(
|
|
3602
|
+
() => ({
|
|
3603
|
+
message: t,
|
|
3604
|
+
description: o,
|
|
3605
|
+
action: r,
|
|
3606
|
+
dismiss: n,
|
|
3607
|
+
variant: a
|
|
3608
|
+
}),
|
|
3609
|
+
[t, o, r, n, a]
|
|
3610
|
+
);
|
|
3611
|
+
return /* @__PURE__ */ c(Mt.Provider, { value: s, children: e });
|
|
3612
|
+
}
|
|
3613
|
+
function Q() {
|
|
3614
|
+
const e = Re(Mt);
|
|
3615
|
+
if (e === void 0)
|
|
3616
|
+
throw new Error("useAlert must be used within a AlertProvider");
|
|
3617
|
+
return e;
|
|
3618
|
+
}
|
|
3619
|
+
function ur({ children: e, className: t, ...o }) {
|
|
3620
|
+
return /* @__PURE__ */ c(
|
|
3539
3621
|
"div",
|
|
3540
3622
|
{
|
|
3541
3623
|
className: M("[font-family:var(--alert-font-family,var(--font-family-body))]", t),
|
|
@@ -3545,8 +3627,9 @@ function nr({ children: e, className: t, ...o }) {
|
|
|
3545
3627
|
}
|
|
3546
3628
|
);
|
|
3547
3629
|
}
|
|
3548
|
-
function
|
|
3549
|
-
|
|
3630
|
+
function fr({ children: e, className: t, ...o }) {
|
|
3631
|
+
const { message: r } = Q();
|
|
3632
|
+
return /* @__PURE__ */ c(
|
|
3550
3633
|
"h5",
|
|
3551
3634
|
{
|
|
3552
3635
|
className: M(
|
|
@@ -3555,26 +3638,27 @@ function ar({ children: e, className: t, ...o }) {
|
|
|
3555
3638
|
),
|
|
3556
3639
|
"data-slot": "alert-title",
|
|
3557
3640
|
...o,
|
|
3558
|
-
children:
|
|
3641
|
+
children: r
|
|
3559
3642
|
}
|
|
3560
3643
|
);
|
|
3561
3644
|
}
|
|
3562
|
-
function
|
|
3563
|
-
|
|
3645
|
+
function mr({ className: e, ...t }) {
|
|
3646
|
+
const { description: o } = Q();
|
|
3647
|
+
return /* @__PURE__ */ c(
|
|
3564
3648
|
"p",
|
|
3565
3649
|
{
|
|
3566
3650
|
className: M(
|
|
3567
3651
|
"text-xs font-medium text-[color:var(--alert-description-text,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))]",
|
|
3568
|
-
|
|
3652
|
+
e
|
|
3569
3653
|
),
|
|
3570
3654
|
"data-slot": "alert-description",
|
|
3571
|
-
...
|
|
3572
|
-
children:
|
|
3655
|
+
...t,
|
|
3656
|
+
children: o
|
|
3573
3657
|
}
|
|
3574
3658
|
);
|
|
3575
3659
|
}
|
|
3576
|
-
function
|
|
3577
|
-
return /* @__PURE__ */
|
|
3660
|
+
function pr({ children: e, className: t, ...o }) {
|
|
3661
|
+
return /* @__PURE__ */ c("div", { className: M("flex items-center gap-1", t), "data-slot": "alert-actions", ...o, children: e });
|
|
3578
3662
|
}
|
|
3579
3663
|
/**
|
|
3580
3664
|
* @license lucide-react v0.545.0 - ISC
|
|
@@ -3582,13 +3666,13 @@ function ir({ children: e, className: t, ...o }) {
|
|
|
3582
3666
|
* This source code is licensed under the ISC license.
|
|
3583
3667
|
* See the LICENSE file in the root directory of this source tree.
|
|
3584
3668
|
*/
|
|
3585
|
-
const
|
|
3669
|
+
const gr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), br = (e) => e.replace(
|
|
3586
3670
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3587
3671
|
(t, o, r) => r ? r.toUpperCase() : o.toLowerCase()
|
|
3588
|
-
),
|
|
3589
|
-
const t =
|
|
3672
|
+
), Xe = (e) => {
|
|
3673
|
+
const t = br(e);
|
|
3590
3674
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3591
|
-
},
|
|
3675
|
+
}, Et = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t) === o).join(" ").trim(), hr = (e) => {
|
|
3592
3676
|
for (const t in e)
|
|
3593
3677
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3594
3678
|
return !0;
|
|
@@ -3599,7 +3683,7 @@ const lr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), cr = (
|
|
|
3599
3683
|
* This source code is licensed under the ISC license.
|
|
3600
3684
|
* See the LICENSE file in the root directory of this source tree.
|
|
3601
3685
|
*/
|
|
3602
|
-
var
|
|
3686
|
+
var vr = {
|
|
3603
3687
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3604
3688
|
width: 24,
|
|
3605
3689
|
height: 24,
|
|
@@ -3616,7 +3700,7 @@ var ur = {
|
|
|
3616
3700
|
* This source code is licensed under the ISC license.
|
|
3617
3701
|
* See the LICENSE file in the root directory of this source tree.
|
|
3618
3702
|
*/
|
|
3619
|
-
const
|
|
3703
|
+
const xr = Je(
|
|
3620
3704
|
({
|
|
3621
3705
|
color: e = "currentColor",
|
|
3622
3706
|
size: t = 24,
|
|
@@ -3626,21 +3710,21 @@ const fr = He(
|
|
|
3626
3710
|
children: a,
|
|
3627
3711
|
iconNode: s,
|
|
3628
3712
|
...i
|
|
3629
|
-
}, l) =>
|
|
3713
|
+
}, l) => he(
|
|
3630
3714
|
"svg",
|
|
3631
3715
|
{
|
|
3632
3716
|
ref: l,
|
|
3633
|
-
...
|
|
3717
|
+
...vr,
|
|
3634
3718
|
width: t,
|
|
3635
3719
|
height: t,
|
|
3636
3720
|
stroke: e,
|
|
3637
3721
|
strokeWidth: r ? Number(o) * 24 / Number(t) : o,
|
|
3638
|
-
className:
|
|
3639
|
-
...!a && !
|
|
3722
|
+
className: Et("lucide", n),
|
|
3723
|
+
...!a && !hr(i) && { "aria-hidden": "true" },
|
|
3640
3724
|
...i
|
|
3641
3725
|
},
|
|
3642
3726
|
[
|
|
3643
|
-
...s.map(([f, p]) =>
|
|
3727
|
+
...s.map(([f, p]) => he(f, p)),
|
|
3644
3728
|
...Array.isArray(a) ? a : [a]
|
|
3645
3729
|
]
|
|
3646
3730
|
)
|
|
@@ -3651,20 +3735,20 @@ const fr = He(
|
|
|
3651
3735
|
* This source code is licensed under the ISC license.
|
|
3652
3736
|
* See the LICENSE file in the root directory of this source tree.
|
|
3653
3737
|
*/
|
|
3654
|
-
const
|
|
3655
|
-
const o =
|
|
3656
|
-
({ className: r, ...n }, a) =>
|
|
3738
|
+
const zt = (e, t) => {
|
|
3739
|
+
const o = Je(
|
|
3740
|
+
({ className: r, ...n }, a) => he(xr, {
|
|
3657
3741
|
ref: a,
|
|
3658
3742
|
iconNode: t,
|
|
3659
|
-
className:
|
|
3660
|
-
`lucide-${
|
|
3743
|
+
className: Et(
|
|
3744
|
+
`lucide-${gr(Xe(e))}`,
|
|
3661
3745
|
`lucide-${e}`,
|
|
3662
3746
|
r
|
|
3663
3747
|
),
|
|
3664
3748
|
...n
|
|
3665
3749
|
})
|
|
3666
3750
|
);
|
|
3667
|
-
return o.displayName =
|
|
3751
|
+
return o.displayName = Xe(e), o;
|
|
3668
3752
|
};
|
|
3669
3753
|
/**
|
|
3670
3754
|
* @license lucide-react v0.545.0 - ISC
|
|
@@ -3672,18 +3756,18 @@ const Nt = (e, t) => {
|
|
|
3672
3756
|
* This source code is licensed under the ISC license.
|
|
3673
3757
|
* See the LICENSE file in the root directory of this source tree.
|
|
3674
3758
|
*/
|
|
3675
|
-
const
|
|
3759
|
+
const yr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], wr = zt("loader-circle", yr);
|
|
3676
3760
|
/**
|
|
3677
3761
|
* @license lucide-react v0.545.0 - ISC
|
|
3678
3762
|
*
|
|
3679
3763
|
* This source code is licensed under the ISC license.
|
|
3680
3764
|
* See the LICENSE file in the root directory of this source tree.
|
|
3681
3765
|
*/
|
|
3682
|
-
const
|
|
3766
|
+
const kr = [
|
|
3683
3767
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3684
3768
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3685
|
-
],
|
|
3686
|
-
function
|
|
3769
|
+
], Cr = zt("x", kr);
|
|
3770
|
+
function Tt({
|
|
3687
3771
|
variant: e = "primary",
|
|
3688
3772
|
size: t = "large",
|
|
3689
3773
|
shape: o = "pill",
|
|
@@ -3722,7 +3806,7 @@ function It({
|
|
|
3722
3806
|
type: n,
|
|
3723
3807
|
...l,
|
|
3724
3808
|
children: [
|
|
3725
|
-
/* @__PURE__ */
|
|
3809
|
+
/* @__PURE__ */ c(
|
|
3726
3810
|
"span",
|
|
3727
3811
|
{
|
|
3728
3812
|
className: M(
|
|
@@ -3746,15 +3830,15 @@ function It({
|
|
|
3746
3830
|
children: i
|
|
3747
3831
|
}
|
|
3748
3832
|
),
|
|
3749
|
-
/* @__PURE__ */
|
|
3833
|
+
/* @__PURE__ */ c(
|
|
3750
3834
|
"span",
|
|
3751
3835
|
{
|
|
3752
3836
|
className: M(
|
|
3753
3837
|
"absolute inset-0 grid place-content-center transition-all duration-300 ease-in-out",
|
|
3754
3838
|
r ? "translate-y-0 opacity-100" : "translate-y-10 opacity-0"
|
|
3755
3839
|
),
|
|
3756
|
-
children: /* @__PURE__ */
|
|
3757
|
-
|
|
3840
|
+
children: /* @__PURE__ */ c(
|
|
3841
|
+
wr,
|
|
3758
3842
|
{
|
|
3759
3843
|
className: M(
|
|
3760
3844
|
"animate-spin",
|
|
@@ -3768,14 +3852,30 @@ function It({
|
|
|
3768
3852
|
}
|
|
3769
3853
|
);
|
|
3770
3854
|
}
|
|
3771
|
-
function
|
|
3772
|
-
|
|
3855
|
+
function Ar({ children: e, ...t }) {
|
|
3856
|
+
const { action: o } = Q();
|
|
3857
|
+
if (!o) return null;
|
|
3858
|
+
const { label: r, onClick: n } = o;
|
|
3859
|
+
return /* @__PURE__ */ c(Tt, { "data-slot": "alert-button", onClick: n, size: "x-small", variant: "ghost", ...t, children: r });
|
|
3773
3860
|
}
|
|
3774
|
-
function
|
|
3775
|
-
|
|
3861
|
+
function Rr({ ...e }) {
|
|
3862
|
+
const { dismiss: t } = Q(), { label: o, onClick: r } = t;
|
|
3863
|
+
return /* @__PURE__ */ c(
|
|
3864
|
+
Tt,
|
|
3865
|
+
{
|
|
3866
|
+
"aria-label": o,
|
|
3867
|
+
"data-slot": "alert-close-button",
|
|
3868
|
+
onClick: r,
|
|
3869
|
+
shape: "circle",
|
|
3870
|
+
size: "x-small",
|
|
3871
|
+
variant: "ghost",
|
|
3872
|
+
...e,
|
|
3873
|
+
children: /* @__PURE__ */ c(Cr, { size: 20, strokeWidth: 1 })
|
|
3874
|
+
}
|
|
3875
|
+
);
|
|
3776
3876
|
}
|
|
3777
|
-
function
|
|
3778
|
-
return /* @__PURE__ */
|
|
3877
|
+
function Mr({ className: e, children: t, ...o }) {
|
|
3878
|
+
return /* @__PURE__ */ c(
|
|
3779
3879
|
"span",
|
|
3780
3880
|
{
|
|
3781
3881
|
className: M(
|
|
@@ -3787,14 +3887,14 @@ function Ar({ className: e, children: t, ...o }) {
|
|
|
3787
3887
|
}
|
|
3788
3888
|
);
|
|
3789
3889
|
}
|
|
3790
|
-
function
|
|
3890
|
+
function Er({
|
|
3791
3891
|
children: e,
|
|
3792
3892
|
shape: t = "rounded",
|
|
3793
3893
|
className: o,
|
|
3794
3894
|
variant: r = "primary",
|
|
3795
3895
|
...n
|
|
3796
3896
|
}) {
|
|
3797
|
-
return /* @__PURE__ */
|
|
3897
|
+
return /* @__PURE__ */ c(
|
|
3798
3898
|
"span",
|
|
3799
3899
|
{
|
|
3800
3900
|
className: M(
|
|
@@ -3818,23 +3918,25 @@ function Rr({
|
|
|
3818
3918
|
);
|
|
3819
3919
|
}
|
|
3820
3920
|
export {
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3921
|
+
Sr as Accordion,
|
|
3922
|
+
ar as AccordionContent,
|
|
3923
|
+
rr as AccordionItem,
|
|
3924
|
+
ir as AccordionItemProvider,
|
|
3925
|
+
sr as AccordionProvider,
|
|
3926
|
+
nr as AccordionRoot,
|
|
3927
|
+
lr as AccordionTrigger,
|
|
3928
|
+
Pr as Alert,
|
|
3929
|
+
pr as AlertActions,
|
|
3930
|
+
Ar as AlertButton,
|
|
3931
|
+
Rr as AlertCloseButton,
|
|
3932
|
+
mr as AlertDescription,
|
|
3933
|
+
ur as AlertHeader,
|
|
3934
|
+
cr as AlertRoot,
|
|
3935
|
+
fr as AlertTitle,
|
|
3936
|
+
Mr as AnimatedUnderline,
|
|
3937
|
+
Er as Badge,
|
|
3938
|
+
Tt as Button,
|
|
3939
|
+
Oe as useAccordion,
|
|
3940
|
+
Le as useAccordionItem
|
|
3839
3941
|
};
|
|
3840
3942
|
//# sourceMappingURL=index.js.map
|