commerce-toolkit 0.0.19 → 0.0.21
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/favorite/favorite.d.ts +20 -0
- package/dist/components/favorite/favorite.d.ts.map +1 -0
- package/dist/components/favorite/index.d.ts +4 -0
- package/dist/components/favorite/index.d.ts.map +1 -0
- package/dist/components/favorite/primitives/favorite-heart.d.ts +6 -0
- package/dist/components/favorite/primitives/favorite-heart.d.ts.map +1 -0
- package/dist/components/favorite/primitives/favorite-root.d.ts +5 -0
- package/dist/components/favorite/primitives/favorite-root.d.ts.map +1 -0
- package/dist/components/field-error/field-error.d.ts +14 -0
- package/dist/components/field-error/field-error.d.ts.map +1 -0
- package/dist/components/field-error/index.d.ts +2 -0
- package/dist/components/field-error/index.d.ts.map +1 -0
- package/dist/index.cjs +12 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +711 -599
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as E, Fragment as ot } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import R, { useState as
|
|
3
|
+
import R, { useState as Ce, useEffect as nt, createContext as te, useMemo as re, use as oe, forwardRef as at, createElement as Ae, useCallback as qt } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */ s(
|
|
7
|
-
|
|
5
|
+
function cn({ className: e, colorScheme: t = "light", items: r, ...o }) {
|
|
6
|
+
return /* @__PURE__ */ s(ho, { colorScheme: t, items: r, children: /* @__PURE__ */ s(go, { className: e, ...o, children: r.map((n) => /* @__PURE__ */ s(
|
|
7
|
+
vo,
|
|
8
8
|
{
|
|
9
9
|
content: n.content,
|
|
10
10
|
title: n.title,
|
|
11
11
|
value: n.value,
|
|
12
|
-
children: /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */ s(
|
|
14
|
-
/* @__PURE__ */ s(
|
|
12
|
+
children: /* @__PURE__ */ E(po, { children: [
|
|
13
|
+
/* @__PURE__ */ s(xo, {}),
|
|
14
|
+
/* @__PURE__ */ s(bo, {})
|
|
15
15
|
] })
|
|
16
16
|
},
|
|
17
17
|
n.value
|
|
18
18
|
)) }) });
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Se(e, t = []) {
|
|
21
21
|
let r = [];
|
|
22
22
|
function o(a, i) {
|
|
23
23
|
const l = m.createContext(i), c = r.length;
|
|
24
24
|
r = [...r, i];
|
|
25
|
-
const f = (
|
|
26
|
-
const { scope: N, children: w, ...A } =
|
|
25
|
+
const f = (v) => {
|
|
26
|
+
const { scope: N, children: w, ...A } = v, k = N?.[e]?.[c] || l, C = m.useMemo(() => A, Object.values(A));
|
|
27
27
|
return /* @__PURE__ */ s(k.Provider, { value: C, children: w });
|
|
28
28
|
};
|
|
29
29
|
f.displayName = a + "Provider";
|
|
30
|
-
function p(
|
|
30
|
+
function p(v, N) {
|
|
31
31
|
const w = N?.[e]?.[c] || l, A = m.useContext(w);
|
|
32
32
|
if (A) return A;
|
|
33
33
|
if (i !== void 0) return i;
|
|
34
|
-
throw new Error(`\`${
|
|
34
|
+
throw new Error(`\`${v}\` must be used within \`${a}\``);
|
|
35
35
|
}
|
|
36
36
|
return [f, p];
|
|
37
37
|
}
|
|
@@ -45,9 +45,9 @@ function Ie(e, t = []) {
|
|
|
45
45
|
);
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
return n.scopeName = e, [o,
|
|
48
|
+
return n.scopeName = e, [o, Kt(n, ...t)];
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Kt(...e) {
|
|
51
51
|
const t = e[0];
|
|
52
52
|
if (e.length === 1) return t;
|
|
53
53
|
const r = () => {
|
|
@@ -57,44 +57,44 @@ function Ht(...e) {
|
|
|
57
57
|
}));
|
|
58
58
|
return function(a) {
|
|
59
59
|
const i = o.reduce((l, { useScope: c, scopeName: f }) => {
|
|
60
|
-
const
|
|
61
|
-
return { ...l, ...
|
|
60
|
+
const v = c(a)[`__scope${f}`];
|
|
61
|
+
return { ...l, ...v };
|
|
62
62
|
}, {});
|
|
63
63
|
return m.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
return r.scopeName = t.scopeName, r;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function Je(e, t) {
|
|
69
69
|
if (typeof e == "function")
|
|
70
70
|
return e(t);
|
|
71
71
|
e != null && (e.current = t);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function st(...e) {
|
|
74
74
|
return (t) => {
|
|
75
75
|
let r = !1;
|
|
76
76
|
const o = e.map((n) => {
|
|
77
|
-
const a =
|
|
77
|
+
const a = Je(n, t);
|
|
78
78
|
return !r && typeof a == "function" && (r = !0), a;
|
|
79
79
|
});
|
|
80
80
|
if (r)
|
|
81
81
|
return () => {
|
|
82
82
|
for (let n = 0; n < o.length; n++) {
|
|
83
83
|
const a = o[n];
|
|
84
|
-
typeof a == "function" ? a() :
|
|
84
|
+
typeof a == "function" ? a() : Je(e[n], null);
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return m.useCallback(
|
|
89
|
+
function Q(...e) {
|
|
90
|
+
return m.useCallback(st(...e), e);
|
|
91
91
|
}
|
|
92
92
|
// @__NO_SIDE_EFFECTS__
|
|
93
|
-
function
|
|
94
|
-
const t = /* @__PURE__ */
|
|
95
|
-
const { children: a, ...i } = o, l = m.Children.toArray(a), c = l.find(
|
|
93
|
+
function Ne(e) {
|
|
94
|
+
const t = /* @__PURE__ */ Zt(e), r = m.forwardRef((o, n) => {
|
|
95
|
+
const { children: a, ...i } = o, l = m.Children.toArray(a), c = l.find(Jt);
|
|
96
96
|
if (c) {
|
|
97
|
-
const f = c.props.children, p = l.map((
|
|
97
|
+
const f = c.props.children, p = l.map((v) => v === c ? m.Children.count(f) > 1 ? m.Children.only(null) : m.isValidElement(f) ? f.props.children : null : v);
|
|
98
98
|
return /* @__PURE__ */ s(t, { ...i, ref: n, children: m.isValidElement(f) ? m.cloneElement(f, void 0, p) : null });
|
|
99
99
|
}
|
|
100
100
|
return /* @__PURE__ */ s(t, { ...i, ref: n, children: a });
|
|
@@ -102,22 +102,22 @@ function Ae(e) {
|
|
|
102
102
|
return r.displayName = `${e}.Slot`, r;
|
|
103
103
|
}
|
|
104
104
|
// @__NO_SIDE_EFFECTS__
|
|
105
|
-
function
|
|
105
|
+
function Zt(e) {
|
|
106
106
|
const t = m.forwardRef((r, o) => {
|
|
107
107
|
const { children: n, ...a } = r;
|
|
108
108
|
if (m.isValidElement(n)) {
|
|
109
|
-
const i =
|
|
110
|
-
return n.type !== m.Fragment && (l.ref = o ?
|
|
109
|
+
const i = Qt(n), l = Yt(a, n.props);
|
|
110
|
+
return n.type !== m.Fragment && (l.ref = o ? st(o, i) : i), m.cloneElement(n, l);
|
|
111
111
|
}
|
|
112
112
|
return m.Children.count(n) > 1 ? m.Children.only(null) : null;
|
|
113
113
|
});
|
|
114
114
|
return t.displayName = `${e}.SlotClone`, t;
|
|
115
115
|
}
|
|
116
|
-
var
|
|
117
|
-
function
|
|
118
|
-
return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
116
|
+
var Xt = Symbol("radix.slottable");
|
|
117
|
+
function Jt(e) {
|
|
118
|
+
return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Xt;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Yt(e, t) {
|
|
121
121
|
const r = { ...t };
|
|
122
122
|
for (const o in t) {
|
|
123
123
|
const n = e[o], a = t[o];
|
|
@@ -128,12 +128,12 @@ function Xt(e, t) {
|
|
|
128
128
|
}
|
|
129
129
|
return { ...e, ...r };
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Qt(e) {
|
|
132
132
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
133
133
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
const t = e + "CollectionProvider", [r, o] =
|
|
135
|
+
function er(e) {
|
|
136
|
+
const t = e + "CollectionProvider", [r, o] = Se(t), [n, a] = r(
|
|
137
137
|
t,
|
|
138
138
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
139
139
|
), i = (k) => {
|
|
@@ -141,17 +141,17 @@ function Yt(e) {
|
|
|
141
141
|
return /* @__PURE__ */ s(n, { scope: C, itemMap: _, collectionRef: y, children: P });
|
|
142
142
|
};
|
|
143
143
|
i.displayName = t;
|
|
144
|
-
const l = e + "CollectionSlot", c = /* @__PURE__ */
|
|
144
|
+
const l = e + "CollectionSlot", c = /* @__PURE__ */ Ne(l), f = R.forwardRef(
|
|
145
145
|
(k, C) => {
|
|
146
|
-
const { scope: P, children: y } = k, _ = a(l, P), S =
|
|
146
|
+
const { scope: P, children: y } = k, _ = a(l, P), S = Q(C, _.collectionRef);
|
|
147
147
|
return /* @__PURE__ */ s(c, { ref: S, children: y });
|
|
148
148
|
}
|
|
149
149
|
);
|
|
150
150
|
f.displayName = l;
|
|
151
|
-
const p = e + "CollectionItemSlot",
|
|
151
|
+
const p = e + "CollectionItemSlot", v = "data-radix-collection-item", N = /* @__PURE__ */ Ne(p), w = R.forwardRef(
|
|
152
152
|
(k, C) => {
|
|
153
|
-
const { scope: P, children: y, ..._ } = k, S = R.useRef(null),
|
|
154
|
-
return R.useEffect(() => (
|
|
153
|
+
const { scope: P, children: y, ..._ } = k, S = R.useRef(null), L = Q(C, S), z = a(p, P);
|
|
154
|
+
return R.useEffect(() => (z.itemMap.set(S, { ref: S, ..._ }), () => void z.itemMap.delete(S))), /* @__PURE__ */ s(N, { [v]: "", ref: L, children: y });
|
|
155
155
|
}
|
|
156
156
|
);
|
|
157
157
|
w.displayName = p;
|
|
@@ -160,9 +160,9 @@ function Yt(e) {
|
|
|
160
160
|
return R.useCallback(() => {
|
|
161
161
|
const y = C.collectionRef.current;
|
|
162
162
|
if (!y) return [];
|
|
163
|
-
const _ = Array.from(y.querySelectorAll(`[${
|
|
163
|
+
const _ = Array.from(y.querySelectorAll(`[${v}]`));
|
|
164
164
|
return Array.from(C.itemMap.values()).sort(
|
|
165
|
-
(
|
|
165
|
+
(z, D) => _.indexOf(z.ref.current) - _.indexOf(D.ref.current)
|
|
166
166
|
);
|
|
167
167
|
}, [C.collectionRef, C.itemMap]);
|
|
168
168
|
}
|
|
@@ -172,39 +172,39 @@ function Yt(e) {
|
|
|
172
172
|
o
|
|
173
173
|
];
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function Me(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
176
176
|
return function(n) {
|
|
177
177
|
if (e?.(n), r === !1 || !n.defaultPrevented)
|
|
178
178
|
return t?.(n);
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
var
|
|
182
|
-
},
|
|
183
|
-
function
|
|
181
|
+
var ee = globalThis?.document ? m.useLayoutEffect : () => {
|
|
182
|
+
}, tr = m[" useInsertionEffect ".trim().toString()] || ee;
|
|
183
|
+
function pe({
|
|
184
184
|
prop: e,
|
|
185
185
|
defaultProp: t,
|
|
186
186
|
onChange: r = () => {
|
|
187
187
|
},
|
|
188
188
|
caller: o
|
|
189
189
|
}) {
|
|
190
|
-
const [n, a, i] =
|
|
190
|
+
const [n, a, i] = rr({
|
|
191
191
|
defaultProp: t,
|
|
192
192
|
onChange: r
|
|
193
193
|
}), l = e !== void 0, c = l ? e : n;
|
|
194
194
|
{
|
|
195
195
|
const p = m.useRef(e !== void 0);
|
|
196
196
|
m.useEffect(() => {
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
`${o} is changing from ${
|
|
197
|
+
const v = p.current;
|
|
198
|
+
v !== l && console.warn(
|
|
199
|
+
`${o} is changing from ${v ? "controlled" : "uncontrolled"} to ${l ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
200
200
|
), p.current = l;
|
|
201
201
|
}, [l, o]);
|
|
202
202
|
}
|
|
203
203
|
const f = m.useCallback(
|
|
204
204
|
(p) => {
|
|
205
205
|
if (l) {
|
|
206
|
-
const
|
|
207
|
-
|
|
206
|
+
const v = or(p) ? p(e) : p;
|
|
207
|
+
v !== e && i.current?.(v);
|
|
208
208
|
} else
|
|
209
209
|
a(p);
|
|
210
210
|
},
|
|
@@ -212,21 +212,21 @@ function Se({
|
|
|
212
212
|
);
|
|
213
213
|
return [c, f];
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function rr({
|
|
216
216
|
defaultProp: e,
|
|
217
217
|
onChange: t
|
|
218
218
|
}) {
|
|
219
219
|
const [r, o] = m.useState(e), n = m.useRef(r), a = m.useRef(t);
|
|
220
|
-
return
|
|
220
|
+
return tr(() => {
|
|
221
221
|
a.current = t;
|
|
222
222
|
}, [t]), m.useEffect(() => {
|
|
223
223
|
n.current !== r && (a.current?.(r), n.current = r);
|
|
224
224
|
}, [r, n]), [r, o, a];
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function or(e) {
|
|
227
227
|
return typeof e == "function";
|
|
228
228
|
}
|
|
229
|
-
var
|
|
229
|
+
var nr = [
|
|
230
230
|
"a",
|
|
231
231
|
"button",
|
|
232
232
|
"div",
|
|
@@ -244,23 +244,23 @@ var rr = [
|
|
|
244
244
|
"span",
|
|
245
245
|
"svg",
|
|
246
246
|
"ul"
|
|
247
|
-
],
|
|
248
|
-
const r = /* @__PURE__ */
|
|
247
|
+
], q = nr.reduce((e, t) => {
|
|
248
|
+
const r = /* @__PURE__ */ Ne(`Primitive.${t}`), o = m.forwardRef((n, a) => {
|
|
249
249
|
const { asChild: i, ...l } = n, c = i ? r : t;
|
|
250
250
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s(c, { ...l, ref: a });
|
|
251
251
|
});
|
|
252
252
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
253
253
|
}, {});
|
|
254
|
-
function
|
|
254
|
+
function ar(e, t) {
|
|
255
255
|
return m.useReducer((r, o) => t[r][o] ?? r, e);
|
|
256
256
|
}
|
|
257
|
-
var
|
|
258
|
-
const { present: t, children: r } = e, o =
|
|
257
|
+
var it = (e) => {
|
|
258
|
+
const { present: t, children: r } = e, o = sr(t), n = typeof r == "function" ? r({ present: o.isPresent }) : m.Children.only(r), a = Q(o.ref, ir(n));
|
|
259
259
|
return typeof r == "function" || o.isPresent ? m.cloneElement(n, { ref: a }) : null;
|
|
260
260
|
};
|
|
261
|
-
|
|
262
|
-
function
|
|
263
|
-
const [t, r] = m.useState(), o = m.useRef(null), n = m.useRef(e), a = m.useRef("none"), i = e ? "mounted" : "unmounted", [l, c] =
|
|
261
|
+
it.displayName = "Presence";
|
|
262
|
+
function sr(e) {
|
|
263
|
+
const [t, r] = m.useState(), o = m.useRef(null), n = m.useRef(e), a = m.useRef("none"), i = e ? "mounted" : "unmounted", [l, c] = ar(i, {
|
|
264
264
|
mounted: {
|
|
265
265
|
UNMOUNT: "unmounted",
|
|
266
266
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -276,16 +276,16 @@ function nr(e) {
|
|
|
276
276
|
return m.useEffect(() => {
|
|
277
277
|
const f = de(o.current);
|
|
278
278
|
a.current = l === "mounted" ? f : "none";
|
|
279
|
-
}, [l]),
|
|
279
|
+
}, [l]), ee(() => {
|
|
280
280
|
const f = o.current, p = n.current;
|
|
281
281
|
if (p !== e) {
|
|
282
282
|
const N = a.current, w = de(f);
|
|
283
283
|
e ? c("MOUNT") : w === "none" || f?.display === "none" ? c("UNMOUNT") : c(p && N !== w ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
|
|
284
284
|
}
|
|
285
|
-
}, [e, c]),
|
|
285
|
+
}, [e, c]), ee(() => {
|
|
286
286
|
if (t) {
|
|
287
287
|
let f;
|
|
288
|
-
const p = t.ownerDocument.defaultView ?? window,
|
|
288
|
+
const p = t.ownerDocument.defaultView ?? window, v = (w) => {
|
|
289
289
|
const k = de(o.current).includes(CSS.escape(w.animationName));
|
|
290
290
|
if (w.target === t && k && (c("ANIMATION_END"), !n.current)) {
|
|
291
291
|
const C = t.style.animationFillMode;
|
|
@@ -296,8 +296,8 @@ function nr(e) {
|
|
|
296
296
|
}, N = (w) => {
|
|
297
297
|
w.target === t && (a.current = de(o.current));
|
|
298
298
|
};
|
|
299
|
-
return t.addEventListener("animationstart", N), t.addEventListener("animationcancel",
|
|
300
|
-
p.clearTimeout(f), t.removeEventListener("animationstart", N), t.removeEventListener("animationcancel",
|
|
299
|
+
return t.addEventListener("animationstart", N), t.addEventListener("animationcancel", v), t.addEventListener("animationend", v), () => {
|
|
300
|
+
p.clearTimeout(f), t.removeEventListener("animationstart", N), t.removeEventListener("animationcancel", v), t.removeEventListener("animationend", v);
|
|
301
301
|
};
|
|
302
302
|
} else
|
|
303
303
|
c("ANIMATION_END");
|
|
@@ -311,19 +311,19 @@ function nr(e) {
|
|
|
311
311
|
function de(e) {
|
|
312
312
|
return e?.animationName || "none";
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function ir(e) {
|
|
315
315
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
316
316
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
317
317
|
}
|
|
318
|
-
var
|
|
319
|
-
}),
|
|
320
|
-
function
|
|
321
|
-
const [t, r] = m.useState(
|
|
322
|
-
return
|
|
323
|
-
r((o) => o ?? String(
|
|
318
|
+
var lr = m[" useId ".trim().toString()] || (() => {
|
|
319
|
+
}), cr = 0;
|
|
320
|
+
function lt(e) {
|
|
321
|
+
const [t, r] = m.useState(lr());
|
|
322
|
+
return ee(() => {
|
|
323
|
+
r((o) => o ?? String(cr++));
|
|
324
324
|
}, [e]), t ? `radix-${t}` : "";
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var ge = "Collapsible", [dr, ct] = Se(ge), [ur, Ee] = dr(ge), dt = m.forwardRef(
|
|
327
327
|
(e, t) => {
|
|
328
328
|
const {
|
|
329
329
|
__scopeCollapsible: r,
|
|
@@ -332,24 +332,24 @@ var pe = "Collapsible", [lr, lt] = Ie(pe), [cr, Me] = lr(pe), ct = m.forwardRef(
|
|
|
332
332
|
disabled: a,
|
|
333
333
|
onOpenChange: i,
|
|
334
334
|
...l
|
|
335
|
-
} = e, [c, f] =
|
|
335
|
+
} = e, [c, f] = pe({
|
|
336
336
|
prop: o,
|
|
337
337
|
defaultProp: n ?? !1,
|
|
338
338
|
onChange: i,
|
|
339
|
-
caller:
|
|
339
|
+
caller: ge
|
|
340
340
|
});
|
|
341
341
|
return /* @__PURE__ */ s(
|
|
342
|
-
|
|
342
|
+
ur,
|
|
343
343
|
{
|
|
344
344
|
scope: r,
|
|
345
345
|
disabled: a,
|
|
346
|
-
contentId:
|
|
346
|
+
contentId: lt(),
|
|
347
347
|
open: c,
|
|
348
348
|
onOpenToggle: m.useCallback(() => f((p) => !p), [f]),
|
|
349
349
|
children: /* @__PURE__ */ s(
|
|
350
|
-
|
|
350
|
+
q.div,
|
|
351
351
|
{
|
|
352
|
-
"data-state":
|
|
352
|
+
"data-state": Te(c),
|
|
353
353
|
"data-disabled": a ? "" : void 0,
|
|
354
354
|
...l,
|
|
355
355
|
ref: t
|
|
@@ -359,40 +359,40 @@ var pe = "Collapsible", [lr, lt] = Ie(pe), [cr, Me] = lr(pe), ct = m.forwardRef(
|
|
|
359
359
|
);
|
|
360
360
|
}
|
|
361
361
|
);
|
|
362
|
-
|
|
363
|
-
var
|
|
362
|
+
dt.displayName = ge;
|
|
363
|
+
var ut = "CollapsibleTrigger", ft = m.forwardRef(
|
|
364
364
|
(e, t) => {
|
|
365
|
-
const { __scopeCollapsible: r, ...o } = e, n =
|
|
365
|
+
const { __scopeCollapsible: r, ...o } = e, n = Ee(ut, r);
|
|
366
366
|
return /* @__PURE__ */ s(
|
|
367
|
-
|
|
367
|
+
q.button,
|
|
368
368
|
{
|
|
369
369
|
type: "button",
|
|
370
370
|
"aria-controls": n.contentId,
|
|
371
371
|
"aria-expanded": n.open || !1,
|
|
372
|
-
"data-state":
|
|
372
|
+
"data-state": Te(n.open),
|
|
373
373
|
"data-disabled": n.disabled ? "" : void 0,
|
|
374
374
|
disabled: n.disabled,
|
|
375
375
|
...o,
|
|
376
376
|
ref: t,
|
|
377
|
-
onClick:
|
|
377
|
+
onClick: Me(e.onClick, n.onOpenToggle)
|
|
378
378
|
}
|
|
379
379
|
);
|
|
380
380
|
}
|
|
381
381
|
);
|
|
382
|
-
|
|
383
|
-
var
|
|
382
|
+
ft.displayName = ut;
|
|
383
|
+
var ze = "CollapsibleContent", mt = m.forwardRef(
|
|
384
384
|
(e, t) => {
|
|
385
|
-
const { forceMount: r, ...o } = e, n =
|
|
386
|
-
return /* @__PURE__ */ s(
|
|
385
|
+
const { forceMount: r, ...o } = e, n = Ee(ze, e.__scopeCollapsible);
|
|
386
|
+
return /* @__PURE__ */ s(it, { present: r || n.open, children: ({ present: a }) => /* @__PURE__ */ s(fr, { ...o, ref: t, present: a }) });
|
|
387
387
|
}
|
|
388
388
|
);
|
|
389
|
-
|
|
390
|
-
var
|
|
391
|
-
const { __scopeCollapsible: r, present: o, children: n, ...a } = e, i =
|
|
389
|
+
mt.displayName = ze;
|
|
390
|
+
var fr = m.forwardRef((e, t) => {
|
|
391
|
+
const { __scopeCollapsible: r, present: o, children: n, ...a } = e, i = Ee(ze, r), [l, c] = m.useState(o), f = m.useRef(null), p = Q(t, f), v = m.useRef(0), N = v.current, w = m.useRef(0), A = w.current, k = i.open || l, C = m.useRef(k), P = m.useRef(void 0);
|
|
392
392
|
return m.useEffect(() => {
|
|
393
393
|
const y = requestAnimationFrame(() => C.current = !1);
|
|
394
394
|
return () => cancelAnimationFrame(y);
|
|
395
|
-
}, []),
|
|
395
|
+
}, []), ee(() => {
|
|
396
396
|
const y = f.current;
|
|
397
397
|
if (y) {
|
|
398
398
|
P.current = P.current || {
|
|
@@ -400,12 +400,12 @@ var dr = m.forwardRef((e, t) => {
|
|
|
400
400
|
animationName: y.style.animationName
|
|
401
401
|
}, y.style.transitionDuration = "0s", y.style.animationName = "none";
|
|
402
402
|
const _ = y.getBoundingClientRect();
|
|
403
|
-
|
|
403
|
+
v.current = _.height, w.current = _.width, C.current || (y.style.transitionDuration = P.current.transitionDuration, y.style.animationName = P.current.animationName), c(o);
|
|
404
404
|
}
|
|
405
405
|
}, [i.open, o]), /* @__PURE__ */ s(
|
|
406
|
-
|
|
406
|
+
q.div,
|
|
407
407
|
{
|
|
408
|
-
"data-state":
|
|
408
|
+
"data-state": Te(i.open),
|
|
409
409
|
"data-disabled": i.disabled ? "" : void 0,
|
|
410
410
|
id: i.contentId,
|
|
411
411
|
hidden: !k,
|
|
@@ -420,28 +420,28 @@ var dr = m.forwardRef((e, t) => {
|
|
|
420
420
|
}
|
|
421
421
|
);
|
|
422
422
|
});
|
|
423
|
-
function
|
|
423
|
+
function Te(e) {
|
|
424
424
|
return e ? "open" : "closed";
|
|
425
425
|
}
|
|
426
|
-
var
|
|
427
|
-
function
|
|
428
|
-
const t = m.useContext(
|
|
426
|
+
var mr = dt, pr = ft, gr = mt, br = m.createContext(void 0);
|
|
427
|
+
function hr(e) {
|
|
428
|
+
const t = m.useContext(br);
|
|
429
429
|
return e || t || "ltr";
|
|
430
430
|
}
|
|
431
|
-
var
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
]), Oe =
|
|
431
|
+
var B = "Accordion", vr = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Le, xr, yr] = er(B), [be] = Se(B, [
|
|
432
|
+
yr,
|
|
433
|
+
ct
|
|
434
|
+
]), Oe = ct(), pt = R.forwardRef(
|
|
435
435
|
(e, t) => {
|
|
436
436
|
const { type: r, ...o } = e, n = o, a = o;
|
|
437
|
-
return /* @__PURE__ */ s(
|
|
437
|
+
return /* @__PURE__ */ s(Le.Provider, { scope: e.__scopeAccordion, children: r === "multiple" ? /* @__PURE__ */ s(Ar, { ...a, ref: t }) : /* @__PURE__ */ s(Cr, { ...n, ref: t }) });
|
|
438
438
|
}
|
|
439
439
|
);
|
|
440
|
-
|
|
441
|
-
var [
|
|
442
|
-
|
|
440
|
+
pt.displayName = B;
|
|
441
|
+
var [gt, kr] = be(B), [bt, wr] = be(
|
|
442
|
+
B,
|
|
443
443
|
{ collapsible: !1 }
|
|
444
|
-
),
|
|
444
|
+
), Cr = R.forwardRef(
|
|
445
445
|
(e, t) => {
|
|
446
446
|
const {
|
|
447
447
|
value: r,
|
|
@@ -450,63 +450,63 @@ var [pt, xr] = be(L), [bt, yr] = be(
|
|
|
450
450
|
},
|
|
451
451
|
collapsible: a = !1,
|
|
452
452
|
...i
|
|
453
|
-
} = e, [l, c] =
|
|
453
|
+
} = e, [l, c] = pe({
|
|
454
454
|
prop: r,
|
|
455
455
|
defaultProp: o ?? "",
|
|
456
456
|
onChange: n,
|
|
457
|
-
caller:
|
|
457
|
+
caller: B
|
|
458
458
|
});
|
|
459
459
|
return /* @__PURE__ */ s(
|
|
460
|
-
|
|
460
|
+
gt,
|
|
461
461
|
{
|
|
462
462
|
scope: e.__scopeAccordion,
|
|
463
463
|
value: R.useMemo(() => l ? [l] : [], [l]),
|
|
464
464
|
onItemOpen: c,
|
|
465
465
|
onItemClose: R.useCallback(() => a && c(""), [a, c]),
|
|
466
|
-
children: /* @__PURE__ */ s(bt, { scope: e.__scopeAccordion, collapsible: a, children: /* @__PURE__ */ s(
|
|
466
|
+
children: /* @__PURE__ */ s(bt, { scope: e.__scopeAccordion, collapsible: a, children: /* @__PURE__ */ s(ht, { ...i, ref: t }) })
|
|
467
467
|
}
|
|
468
468
|
);
|
|
469
469
|
}
|
|
470
|
-
),
|
|
470
|
+
), Ar = R.forwardRef((e, t) => {
|
|
471
471
|
const {
|
|
472
472
|
value: r,
|
|
473
473
|
defaultValue: o,
|
|
474
474
|
onValueChange: n = () => {
|
|
475
475
|
},
|
|
476
476
|
...a
|
|
477
|
-
} = e, [i, l] =
|
|
477
|
+
} = e, [i, l] = pe({
|
|
478
478
|
prop: r,
|
|
479
479
|
defaultProp: o ?? [],
|
|
480
480
|
onChange: n,
|
|
481
|
-
caller:
|
|
481
|
+
caller: B
|
|
482
482
|
}), c = R.useCallback(
|
|
483
|
-
(p) => l((
|
|
483
|
+
(p) => l((v = []) => [...v, p]),
|
|
484
484
|
[l]
|
|
485
485
|
), f = R.useCallback(
|
|
486
|
-
(p) => l((
|
|
486
|
+
(p) => l((v = []) => v.filter((N) => N !== p)),
|
|
487
487
|
[l]
|
|
488
488
|
);
|
|
489
489
|
return /* @__PURE__ */ s(
|
|
490
|
-
|
|
490
|
+
gt,
|
|
491
491
|
{
|
|
492
492
|
scope: e.__scopeAccordion,
|
|
493
493
|
value: i,
|
|
494
494
|
onItemOpen: c,
|
|
495
495
|
onItemClose: f,
|
|
496
|
-
children: /* @__PURE__ */ s(bt, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ s(
|
|
496
|
+
children: /* @__PURE__ */ s(bt, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ s(ht, { ...a, ref: t }) })
|
|
497
497
|
}
|
|
498
498
|
);
|
|
499
|
-
}), [
|
|
499
|
+
}), [Nr, he] = be(B), ht = R.forwardRef(
|
|
500
500
|
(e, t) => {
|
|
501
|
-
const { __scopeAccordion: r, disabled: o, dir: n, orientation: a = "vertical", ...i } = e, l = R.useRef(null), c =
|
|
502
|
-
if (!
|
|
503
|
-
const A = w.target, k = f().filter((
|
|
501
|
+
const { __scopeAccordion: r, disabled: o, dir: n, orientation: a = "vertical", ...i } = e, l = R.useRef(null), c = Q(l, t), f = xr(r), v = hr(n) === "ltr", N = Me(e.onKeyDown, (w) => {
|
|
502
|
+
if (!vr.includes(w.key)) return;
|
|
503
|
+
const A = w.target, k = f().filter((h) => !h.ref.current?.disabled), C = k.findIndex((h) => h.ref.current === A), P = k.length;
|
|
504
504
|
if (C === -1) return;
|
|
505
505
|
w.preventDefault();
|
|
506
506
|
let y = C;
|
|
507
|
-
const _ = 0, S = P - 1,
|
|
507
|
+
const _ = 0, S = P - 1, L = () => {
|
|
508
508
|
y = C + 1, y > S && (y = _);
|
|
509
|
-
},
|
|
509
|
+
}, z = () => {
|
|
510
510
|
y = C - 1, y < _ && (y = S);
|
|
511
511
|
};
|
|
512
512
|
switch (w.key) {
|
|
@@ -517,30 +517,30 @@ var [pt, xr] = be(L), [bt, yr] = be(
|
|
|
517
517
|
y = S;
|
|
518
518
|
break;
|
|
519
519
|
case "ArrowRight":
|
|
520
|
-
a === "horizontal" && (
|
|
520
|
+
a === "horizontal" && (v ? L() : z());
|
|
521
521
|
break;
|
|
522
522
|
case "ArrowDown":
|
|
523
|
-
a === "vertical" &&
|
|
523
|
+
a === "vertical" && L();
|
|
524
524
|
break;
|
|
525
525
|
case "ArrowLeft":
|
|
526
|
-
a === "horizontal" && (
|
|
526
|
+
a === "horizontal" && (v ? z() : L());
|
|
527
527
|
break;
|
|
528
528
|
case "ArrowUp":
|
|
529
|
-
a === "vertical" &&
|
|
529
|
+
a === "vertical" && z();
|
|
530
530
|
break;
|
|
531
531
|
}
|
|
532
532
|
const D = y % P;
|
|
533
533
|
k[D].ref.current?.focus();
|
|
534
534
|
});
|
|
535
535
|
return /* @__PURE__ */ s(
|
|
536
|
-
|
|
536
|
+
Nr,
|
|
537
537
|
{
|
|
538
538
|
scope: r,
|
|
539
539
|
disabled: o,
|
|
540
540
|
direction: n,
|
|
541
541
|
orientation: a,
|
|
542
|
-
children: /* @__PURE__ */ s(
|
|
543
|
-
|
|
542
|
+
children: /* @__PURE__ */ s(Le.Slot, { scope: r, children: /* @__PURE__ */ s(
|
|
543
|
+
q.div,
|
|
544
544
|
{
|
|
545
545
|
...i,
|
|
546
546
|
"data-orientation": a,
|
|
@@ -551,28 +551,28 @@ var [pt, xr] = be(L), [bt, yr] = be(
|
|
|
551
551
|
}
|
|
552
552
|
);
|
|
553
553
|
}
|
|
554
|
-
), me = "AccordionItem", [
|
|
554
|
+
), me = "AccordionItem", [Pr, Be] = be(me), vt = R.forwardRef(
|
|
555
555
|
(e, t) => {
|
|
556
|
-
const { __scopeAccordion: r, value: o, ...n } = e, a =
|
|
556
|
+
const { __scopeAccordion: r, value: o, ...n } = e, a = he(me, r), i = kr(me, r), l = Oe(r), c = lt(), f = o && i.value.includes(o) || !1, p = a.disabled || e.disabled;
|
|
557
557
|
return /* @__PURE__ */ s(
|
|
558
|
-
|
|
558
|
+
Pr,
|
|
559
559
|
{
|
|
560
560
|
scope: r,
|
|
561
561
|
open: f,
|
|
562
562
|
disabled: p,
|
|
563
563
|
triggerId: c,
|
|
564
564
|
children: /* @__PURE__ */ s(
|
|
565
|
-
|
|
565
|
+
mr,
|
|
566
566
|
{
|
|
567
567
|
"data-orientation": a.orientation,
|
|
568
|
-
"data-state":
|
|
568
|
+
"data-state": At(f),
|
|
569
569
|
...l,
|
|
570
570
|
...n,
|
|
571
571
|
ref: t,
|
|
572
572
|
disabled: p,
|
|
573
573
|
open: f,
|
|
574
|
-
onOpenChange: (
|
|
575
|
-
|
|
574
|
+
onOpenChange: (v) => {
|
|
575
|
+
v ? i.onItemOpen(o) : i.onItemClose(o);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
)
|
|
@@ -580,15 +580,15 @@ var [pt, xr] = be(L), [bt, yr] = be(
|
|
|
580
580
|
);
|
|
581
581
|
}
|
|
582
582
|
);
|
|
583
|
-
|
|
584
|
-
var
|
|
583
|
+
vt.displayName = me;
|
|
584
|
+
var xt = "AccordionHeader", yt = R.forwardRef(
|
|
585
585
|
(e, t) => {
|
|
586
|
-
const { __scopeAccordion: r, ...o } = e, n =
|
|
586
|
+
const { __scopeAccordion: r, ...o } = e, n = he(B, r), a = Be(xt, r);
|
|
587
587
|
return /* @__PURE__ */ s(
|
|
588
|
-
|
|
588
|
+
q.h3,
|
|
589
589
|
{
|
|
590
590
|
"data-orientation": n.orientation,
|
|
591
|
-
"data-state":
|
|
591
|
+
"data-state": At(a.open),
|
|
592
592
|
"data-disabled": a.disabled ? "" : void 0,
|
|
593
593
|
...o,
|
|
594
594
|
ref: t
|
|
@@ -596,12 +596,12 @@ var vt = "AccordionHeader", xt = R.forwardRef(
|
|
|
596
596
|
);
|
|
597
597
|
}
|
|
598
598
|
);
|
|
599
|
-
|
|
600
|
-
var
|
|
599
|
+
yt.displayName = xt;
|
|
600
|
+
var Pe = "AccordionTrigger", kt = R.forwardRef(
|
|
601
601
|
(e, t) => {
|
|
602
|
-
const { __scopeAccordion: r, ...o } = e, n =
|
|
603
|
-
return /* @__PURE__ */ s(
|
|
604
|
-
|
|
602
|
+
const { __scopeAccordion: r, ...o } = e, n = he(B, r), a = Be(Pe, r), i = wr(Pe, r), l = Oe(r);
|
|
603
|
+
return /* @__PURE__ */ s(Le.ItemSlot, { scope: r, children: /* @__PURE__ */ s(
|
|
604
|
+
pr,
|
|
605
605
|
{
|
|
606
606
|
"aria-disabled": a.open && !i.collapsible || void 0,
|
|
607
607
|
"data-orientation": n.orientation,
|
|
@@ -613,12 +613,12 @@ var Ne = "AccordionTrigger", yt = R.forwardRef(
|
|
|
613
613
|
) });
|
|
614
614
|
}
|
|
615
615
|
);
|
|
616
|
-
|
|
617
|
-
var
|
|
616
|
+
kt.displayName = Pe;
|
|
617
|
+
var wt = "AccordionContent", Ct = R.forwardRef(
|
|
618
618
|
(e, t) => {
|
|
619
|
-
const { __scopeAccordion: r, ...o } = e, n =
|
|
619
|
+
const { __scopeAccordion: r, ...o } = e, n = he(B, r), a = Be(wt, r), i = Oe(r);
|
|
620
620
|
return /* @__PURE__ */ s(
|
|
621
|
-
|
|
621
|
+
gr,
|
|
622
622
|
{
|
|
623
623
|
role: "region",
|
|
624
624
|
"aria-labelledby": a.triggerId,
|
|
@@ -635,58 +635,58 @@ var kt = "AccordionContent", wt = R.forwardRef(
|
|
|
635
635
|
);
|
|
636
636
|
}
|
|
637
637
|
);
|
|
638
|
-
|
|
639
|
-
function
|
|
638
|
+
Ct.displayName = wt;
|
|
639
|
+
function At(e) {
|
|
640
640
|
return e ? "open" : "closed";
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
function
|
|
642
|
+
var _r = pt, Rr = vt, Ir = yt, Sr = kt, Mr = Ct;
|
|
643
|
+
function Nt(e) {
|
|
644
644
|
var t, r, o = "";
|
|
645
645
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
646
646
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
647
647
|
var n = e.length;
|
|
648
|
-
for (t = 0; t < n; t++) e[t] && (r =
|
|
648
|
+
for (t = 0; t < n; t++) e[t] && (r = Nt(e[t])) && (o && (o += " "), o += r);
|
|
649
649
|
} else for (r in e) e[r] && (o && (o += " "), o += r);
|
|
650
650
|
return o;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
for (var e, t, r = 0, o = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t =
|
|
652
|
+
function Er() {
|
|
653
|
+
for (var e, t, r = 0, o = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t = Nt(e)) && (o && (o += " "), o += t);
|
|
654
654
|
return o;
|
|
655
655
|
}
|
|
656
|
-
const
|
|
657
|
-
const t =
|
|
656
|
+
const De = "-", zr = (e) => {
|
|
657
|
+
const t = Lr(e), {
|
|
658
658
|
conflictingClassGroups: r,
|
|
659
659
|
conflictingClassGroupModifiers: o
|
|
660
660
|
} = e;
|
|
661
661
|
return {
|
|
662
662
|
getClassGroupId: (i) => {
|
|
663
|
-
const l = i.split(
|
|
664
|
-
return l[0] === "" && l.length !== 1 && l.shift(),
|
|
663
|
+
const l = i.split(De);
|
|
664
|
+
return l[0] === "" && l.length !== 1 && l.shift(), Pt(l, t) || Tr(i);
|
|
665
665
|
},
|
|
666
666
|
getConflictingClassGroupIds: (i, l) => {
|
|
667
667
|
const c = r[i] || [];
|
|
668
668
|
return l && o[i] ? [...c, ...o[i]] : c;
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
|
-
},
|
|
671
|
+
}, Pt = (e, t) => {
|
|
672
672
|
if (e.length === 0)
|
|
673
673
|
return t.classGroupId;
|
|
674
|
-
const r = e[0], o = t.nextPart.get(r), n = o ?
|
|
674
|
+
const r = e[0], o = t.nextPart.get(r), n = o ? Pt(e.slice(1), o) : void 0;
|
|
675
675
|
if (n)
|
|
676
676
|
return n;
|
|
677
677
|
if (t.validators.length === 0)
|
|
678
678
|
return;
|
|
679
|
-
const a = e.join(
|
|
679
|
+
const a = e.join(De);
|
|
680
680
|
return t.validators.find(({
|
|
681
681
|
validator: i
|
|
682
682
|
}) => i(a))?.classGroupId;
|
|
683
|
-
},
|
|
684
|
-
if (
|
|
685
|
-
const t =
|
|
683
|
+
}, Ye = /^\[(.+)\]$/, Tr = (e) => {
|
|
684
|
+
if (Ye.test(e)) {
|
|
685
|
+
const t = Ye.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
|
|
686
686
|
if (r)
|
|
687
687
|
return "arbitrary.." + r;
|
|
688
688
|
}
|
|
689
|
-
},
|
|
689
|
+
}, Lr = (e) => {
|
|
690
690
|
const {
|
|
691
691
|
theme: t,
|
|
692
692
|
classGroups: r
|
|
@@ -695,18 +695,18 @@ const Le = "-", Mr = (e) => {
|
|
|
695
695
|
validators: []
|
|
696
696
|
};
|
|
697
697
|
for (const n in r)
|
|
698
|
-
|
|
698
|
+
_e(r[n], o, n, t);
|
|
699
699
|
return o;
|
|
700
|
-
},
|
|
700
|
+
}, _e = (e, t, r, o) => {
|
|
701
701
|
e.forEach((n) => {
|
|
702
702
|
if (typeof n == "string") {
|
|
703
|
-
const a = n === "" ? t :
|
|
703
|
+
const a = n === "" ? t : Qe(t, n);
|
|
704
704
|
a.classGroupId = r;
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
707
707
|
if (typeof n == "function") {
|
|
708
|
-
if (
|
|
709
|
-
|
|
708
|
+
if (Or(n)) {
|
|
709
|
+
_e(n(o), t, r, o);
|
|
710
710
|
return;
|
|
711
711
|
}
|
|
712
712
|
t.validators.push({
|
|
@@ -716,18 +716,18 @@ const Le = "-", Mr = (e) => {
|
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
718
|
Object.entries(n).forEach(([a, i]) => {
|
|
719
|
-
|
|
719
|
+
_e(i, Qe(t, a), r, o);
|
|
720
720
|
});
|
|
721
721
|
});
|
|
722
|
-
},
|
|
722
|
+
}, Qe = (e, t) => {
|
|
723
723
|
let r = e;
|
|
724
|
-
return t.split(
|
|
724
|
+
return t.split(De).forEach((o) => {
|
|
725
725
|
r.nextPart.has(o) || r.nextPart.set(o, {
|
|
726
726
|
nextPart: /* @__PURE__ */ new Map(),
|
|
727
727
|
validators: []
|
|
728
728
|
}), r = r.nextPart.get(o);
|
|
729
729
|
}), r;
|
|
730
|
-
},
|
|
730
|
+
}, Or = (e) => e.isThemeGetter, Br = (e) => {
|
|
731
731
|
if (e < 1)
|
|
732
732
|
return {
|
|
733
733
|
get: () => {
|
|
@@ -751,7 +751,7 @@ const Le = "-", Mr = (e) => {
|
|
|
751
751
|
r.has(a) ? r.set(a, i) : n(a, i);
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
|
-
},
|
|
754
|
+
}, Re = "!", Ie = ":", Dr = Ie.length, $r = (e) => {
|
|
755
755
|
const {
|
|
756
756
|
prefix: t,
|
|
757
757
|
experimentalParseClassName: r
|
|
@@ -762,8 +762,8 @@ const Le = "-", Mr = (e) => {
|
|
|
762
762
|
for (let A = 0; A < n.length; A++) {
|
|
763
763
|
let k = n[A];
|
|
764
764
|
if (i === 0 && l === 0) {
|
|
765
|
-
if (k ===
|
|
766
|
-
a.push(n.slice(c, A)), c = A +
|
|
765
|
+
if (k === Ie) {
|
|
766
|
+
a.push(n.slice(c, A)), c = A + Dr;
|
|
767
767
|
continue;
|
|
768
768
|
}
|
|
769
769
|
if (k === "/") {
|
|
@@ -773,16 +773,16 @@ const Le = "-", Mr = (e) => {
|
|
|
773
773
|
}
|
|
774
774
|
k === "[" ? i++ : k === "]" ? i-- : k === "(" ? l++ : k === ")" && l--;
|
|
775
775
|
}
|
|
776
|
-
const p = a.length === 0 ? n : n.substring(c),
|
|
776
|
+
const p = a.length === 0 ? n : n.substring(c), v = Vr(p), N = v !== p, w = f && f > c ? f - c : void 0;
|
|
777
777
|
return {
|
|
778
778
|
modifiers: a,
|
|
779
779
|
hasImportantModifier: N,
|
|
780
|
-
baseClassName:
|
|
780
|
+
baseClassName: v,
|
|
781
781
|
maybePostfixModifierPosition: w
|
|
782
782
|
};
|
|
783
783
|
};
|
|
784
784
|
if (t) {
|
|
785
|
-
const n = t +
|
|
785
|
+
const n = t + Ie, a = o;
|
|
786
786
|
o = (i) => i.startsWith(n) ? a(i.substring(n.length)) : {
|
|
787
787
|
isExternal: !0,
|
|
788
788
|
modifiers: [],
|
|
@@ -799,7 +799,7 @@ const Le = "-", Mr = (e) => {
|
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
801
|
return o;
|
|
802
|
-
},
|
|
802
|
+
}, Vr = (e) => e.endsWith(Re) ? e.substring(0, e.length - 1) : e.startsWith(Re) ? e.substring(1) : e, jr = (e) => {
|
|
803
803
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((o) => [o, !0]));
|
|
804
804
|
return (o) => {
|
|
805
805
|
if (o.length <= 1)
|
|
@@ -810,28 +810,28 @@ const Le = "-", Mr = (e) => {
|
|
|
810
810
|
i[0] === "[" || t[i] ? (n.push(...a.sort(), i), a = []) : a.push(i);
|
|
811
811
|
}), n.push(...a.sort()), n;
|
|
812
812
|
};
|
|
813
|
-
},
|
|
814
|
-
cache:
|
|
815
|
-
parseClassName:
|
|
816
|
-
sortModifiers:
|
|
817
|
-
...
|
|
818
|
-
}),
|
|
813
|
+
}, Gr = (e) => ({
|
|
814
|
+
cache: Br(e.cacheSize),
|
|
815
|
+
parseClassName: $r(e),
|
|
816
|
+
sortModifiers: jr(e),
|
|
817
|
+
...zr(e)
|
|
818
|
+
}), Fr = /\s+/, Ur = (e, t) => {
|
|
819
819
|
const {
|
|
820
820
|
parseClassName: r,
|
|
821
821
|
getClassGroupId: o,
|
|
822
822
|
getConflictingClassGroupIds: n,
|
|
823
823
|
sortModifiers: a
|
|
824
|
-
} = t, i = [], l = e.trim().split(
|
|
824
|
+
} = t, i = [], l = e.trim().split(Fr);
|
|
825
825
|
let c = "";
|
|
826
826
|
for (let f = l.length - 1; f >= 0; f -= 1) {
|
|
827
827
|
const p = l[f], {
|
|
828
|
-
isExternal:
|
|
828
|
+
isExternal: v,
|
|
829
829
|
modifiers: N,
|
|
830
830
|
hasImportantModifier: w,
|
|
831
831
|
baseClassName: A,
|
|
832
832
|
maybePostfixModifierPosition: k
|
|
833
833
|
} = r(p);
|
|
834
|
-
if (
|
|
834
|
+
if (v) {
|
|
835
835
|
c = p + (c.length > 0 ? " " + c : c);
|
|
836
836
|
continue;
|
|
837
837
|
}
|
|
@@ -847,66 +847,66 @@ const Le = "-", Mr = (e) => {
|
|
|
847
847
|
}
|
|
848
848
|
C = !1;
|
|
849
849
|
}
|
|
850
|
-
const y = a(N).join(":"), _ = w ? y +
|
|
850
|
+
const y = a(N).join(":"), _ = w ? y + Re : y, S = _ + P;
|
|
851
851
|
if (i.includes(S))
|
|
852
852
|
continue;
|
|
853
853
|
i.push(S);
|
|
854
|
-
const
|
|
855
|
-
for (let
|
|
856
|
-
const D =
|
|
854
|
+
const L = n(P, C);
|
|
855
|
+
for (let z = 0; z < L.length; ++z) {
|
|
856
|
+
const D = L[z];
|
|
857
857
|
i.push(_ + D);
|
|
858
858
|
}
|
|
859
859
|
c = p + (c.length > 0 ? " " + c : c);
|
|
860
860
|
}
|
|
861
861
|
return c;
|
|
862
862
|
};
|
|
863
|
-
function
|
|
863
|
+
function Wr() {
|
|
864
864
|
let e = 0, t, r, o = "";
|
|
865
865
|
for (; e < arguments.length; )
|
|
866
|
-
(t = arguments[e++]) && (r =
|
|
866
|
+
(t = arguments[e++]) && (r = _t(t)) && (o && (o += " "), o += r);
|
|
867
867
|
return o;
|
|
868
868
|
}
|
|
869
|
-
const
|
|
869
|
+
const _t = (e) => {
|
|
870
870
|
if (typeof e == "string")
|
|
871
871
|
return e;
|
|
872
872
|
let t, r = "";
|
|
873
873
|
for (let o = 0; o < e.length; o++)
|
|
874
|
-
e[o] && (t =
|
|
874
|
+
e[o] && (t = _t(e[o])) && (r && (r += " "), r += t);
|
|
875
875
|
return r;
|
|
876
876
|
};
|
|
877
|
-
function
|
|
877
|
+
function Hr(e, ...t) {
|
|
878
878
|
let r, o, n, a = i;
|
|
879
879
|
function i(c) {
|
|
880
|
-
const f = t.reduce((p,
|
|
881
|
-
return r =
|
|
880
|
+
const f = t.reduce((p, v) => v(p), e());
|
|
881
|
+
return r = Gr(f), o = r.cache.get, n = r.cache.set, a = l, l(c);
|
|
882
882
|
}
|
|
883
883
|
function l(c) {
|
|
884
884
|
const f = o(c);
|
|
885
885
|
if (f)
|
|
886
886
|
return f;
|
|
887
|
-
const p =
|
|
887
|
+
const p = Ur(c, r);
|
|
888
888
|
return n(c, p), p;
|
|
889
889
|
}
|
|
890
890
|
return function() {
|
|
891
|
-
return a(
|
|
891
|
+
return a(Wr.apply(null, arguments));
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
const I = (e) => {
|
|
895
895
|
const t = (r) => r[e] || [];
|
|
896
896
|
return t.isThemeGetter = !0, t;
|
|
897
|
-
},
|
|
897
|
+
}, Rt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, It = /^\((?:(\w[\w-]*):)?(.+)\)$/i, qr = /^\d+\/\d+$/, Kr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zr = /\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$/, Xr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Jr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Yr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => qr.test(e), x = (e) => !!e && !Number.isNaN(Number(e)), G = (e) => !!e && Number.isInteger(Number(e)), ke = (e) => e.endsWith("%") && x(e.slice(0, -1)), j = (e) => Kr.test(e), Qr = () => !0, eo = (e) => (
|
|
898
898
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
899
899
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
900
900
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
901
|
-
|
|
902
|
-
),
|
|
903
|
-
const o = _t.exec(e);
|
|
904
|
-
return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
|
|
905
|
-
}, K = (e, t, r = !1) => {
|
|
901
|
+
Zr.test(e) && !Xr.test(e)
|
|
902
|
+
), St = () => !1, to = (e) => Jr.test(e), ro = (e) => Yr.test(e), oo = (e) => !d(e) && !u(e), no = (e) => K(e, zt, St), d = (e) => Rt.test(e), U = (e) => K(e, Tt, eo), we = (e) => K(e, co, x), et = (e) => K(e, Mt, St), ao = (e) => K(e, Et, ro), ue = (e) => K(e, Lt, to), u = (e) => It.test(e), J = (e) => Z(e, Tt), so = (e) => Z(e, uo), tt = (e) => Z(e, Mt), io = (e) => Z(e, zt), lo = (e) => Z(e, Et), fe = (e) => Z(e, Lt, !0), K = (e, t, r) => {
|
|
906
903
|
const o = Rt.exec(e);
|
|
904
|
+
return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
|
|
905
|
+
}, Z = (e, t, r = !1) => {
|
|
906
|
+
const o = It.exec(e);
|
|
907
907
|
return o ? o[1] ? t(o[1]) : r : !1;
|
|
908
|
-
},
|
|
909
|
-
const e = I("color"), t = I("font"), r = I("text"), o = I("font-weight"), n = I("tracking"), a = I("leading"), i = I("breakpoint"), l = I("container"), c = I("spacing"), f = I("radius"), p = I("shadow"),
|
|
908
|
+
}, Mt = (e) => e === "position" || e === "percentage", Et = (e) => e === "image" || e === "url", zt = (e) => e === "length" || e === "size" || e === "bg-size", Tt = (e) => e === "length", co = (e) => e === "number", uo = (e) => e === "family-name", Lt = (e) => e === "shadow", fo = () => {
|
|
909
|
+
const e = I("color"), t = I("font"), r = I("text"), o = I("font-weight"), n = I("tracking"), a = I("leading"), i = I("breakpoint"), l = I("container"), c = I("spacing"), f = I("radius"), p = I("shadow"), v = I("inset-shadow"), N = I("text-shadow"), w = I("drop-shadow"), A = I("blur"), k = I("perspective"), C = I("aspect"), P = I("ease"), y = I("animate"), _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
|
|
910
910
|
"center",
|
|
911
911
|
"top",
|
|
912
912
|
"bottom",
|
|
@@ -924,15 +924,15 @@ const I = (e) => {
|
|
|
924
924
|
"bottom-left",
|
|
925
925
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
926
926
|
"left-bottom"
|
|
927
|
-
],
|
|
928
|
-
span: ["full",
|
|
929
|
-
},
|
|
927
|
+
], L = () => [...S(), u, d], z = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], h = () => [u, d, c], $ = () => [H, "full", "auto", ...h()], Fe = () => [G, "none", "subgrid", u, d], Ue = () => ["auto", {
|
|
928
|
+
span: ["full", G, u, d]
|
|
929
|
+
}, G, u, d], ae = () => [G, "auto", u, d], We = () => ["auto", "min", "max", "fr", u, d], ve = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], W = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], V = () => ["auto", ...h()], F = () => [H, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...h()], b = () => [e, u, d], He = () => [...S(), tt, et, {
|
|
930
930
|
position: [u, d]
|
|
931
|
-
}],
|
|
931
|
+
}], qe = () => ["no-repeat", {
|
|
932
932
|
repeat: ["", "x", "y", "space", "round"]
|
|
933
|
-
}],
|
|
933
|
+
}], Ke = () => ["auto", "cover", "contain", io, no, {
|
|
934
934
|
size: [u, d]
|
|
935
|
-
}],
|
|
935
|
+
}], xe = () => [ke, J, U], T = () => [
|
|
936
936
|
// Deprecated since Tailwind CSS v4.0.0
|
|
937
937
|
"",
|
|
938
938
|
"none",
|
|
@@ -940,35 +940,35 @@ const I = (e) => {
|
|
|
940
940
|
f,
|
|
941
941
|
u,
|
|
942
942
|
d
|
|
943
|
-
],
|
|
943
|
+
], O = () => ["", x, J, U], se = () => ["solid", "dashed", "dotted", "double"], Ze = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => [x, ke, tt, et], Xe = () => [
|
|
944
944
|
// Deprecated since Tailwind CSS v4.0.0
|
|
945
945
|
"",
|
|
946
946
|
"none",
|
|
947
947
|
A,
|
|
948
948
|
u,
|
|
949
949
|
d
|
|
950
|
-
], ie = () => ["none", x, u, d], le = () => ["none", x, u, d],
|
|
950
|
+
], ie = () => ["none", x, u, d], le = () => ["none", x, u, d], ye = () => [x, u, d], ce = () => [H, "full", ...h()];
|
|
951
951
|
return {
|
|
952
952
|
cacheSize: 500,
|
|
953
953
|
theme: {
|
|
954
954
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
955
955
|
aspect: ["video"],
|
|
956
|
-
blur: [
|
|
957
|
-
breakpoint: [
|
|
958
|
-
color: [
|
|
959
|
-
container: [
|
|
960
|
-
"drop-shadow": [
|
|
956
|
+
blur: [j],
|
|
957
|
+
breakpoint: [j],
|
|
958
|
+
color: [Qr],
|
|
959
|
+
container: [j],
|
|
960
|
+
"drop-shadow": [j],
|
|
961
961
|
ease: ["in", "out", "in-out"],
|
|
962
|
-
font: [
|
|
962
|
+
font: [oo],
|
|
963
963
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
964
|
-
"inset-shadow": [
|
|
964
|
+
"inset-shadow": [j],
|
|
965
965
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
966
966
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
967
|
-
radius: [
|
|
968
|
-
shadow: [
|
|
967
|
+
radius: [j],
|
|
968
|
+
shadow: [j],
|
|
969
969
|
spacing: ["px", x],
|
|
970
|
-
text: [
|
|
971
|
-
"text-shadow": [
|
|
970
|
+
text: [j],
|
|
971
|
+
"text-shadow": [j],
|
|
972
972
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
973
973
|
},
|
|
974
974
|
classGroups: {
|
|
@@ -1071,28 +1071,28 @@ const I = (e) => {
|
|
|
1071
1071
|
* @see https://tailwindcss.com/docs/object-position
|
|
1072
1072
|
*/
|
|
1073
1073
|
"object-position": [{
|
|
1074
|
-
object:
|
|
1074
|
+
object: L()
|
|
1075
1075
|
}],
|
|
1076
1076
|
/**
|
|
1077
1077
|
* Overflow
|
|
1078
1078
|
* @see https://tailwindcss.com/docs/overflow
|
|
1079
1079
|
*/
|
|
1080
1080
|
overflow: [{
|
|
1081
|
-
overflow:
|
|
1081
|
+
overflow: z()
|
|
1082
1082
|
}],
|
|
1083
1083
|
/**
|
|
1084
1084
|
* Overflow X
|
|
1085
1085
|
* @see https://tailwindcss.com/docs/overflow
|
|
1086
1086
|
*/
|
|
1087
1087
|
"overflow-x": [{
|
|
1088
|
-
"overflow-x":
|
|
1088
|
+
"overflow-x": z()
|
|
1089
1089
|
}],
|
|
1090
1090
|
/**
|
|
1091
1091
|
* Overflow Y
|
|
1092
1092
|
* @see https://tailwindcss.com/docs/overflow
|
|
1093
1093
|
*/
|
|
1094
1094
|
"overflow-y": [{
|
|
1095
|
-
"overflow-y":
|
|
1095
|
+
"overflow-y": z()
|
|
1096
1096
|
}],
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Overscroll Behavior
|
|
@@ -1193,7 +1193,7 @@ const I = (e) => {
|
|
|
1193
1193
|
* @see https://tailwindcss.com/docs/z-index
|
|
1194
1194
|
*/
|
|
1195
1195
|
z: [{
|
|
1196
|
-
z: [
|
|
1196
|
+
z: [G, "auto", u, d]
|
|
1197
1197
|
}],
|
|
1198
1198
|
// ------------------------
|
|
1199
1199
|
// --- Flexbox and Grid ---
|
|
@@ -1203,7 +1203,7 @@ const I = (e) => {
|
|
|
1203
1203
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1204
1204
|
*/
|
|
1205
1205
|
basis: [{
|
|
1206
|
-
basis: [H, "full", "auto", l, ...
|
|
1206
|
+
basis: [H, "full", "auto", l, ...h()]
|
|
1207
1207
|
}],
|
|
1208
1208
|
/**
|
|
1209
1209
|
* Flex Direction
|
|
@@ -1245,21 +1245,21 @@ const I = (e) => {
|
|
|
1245
1245
|
* @see https://tailwindcss.com/docs/order
|
|
1246
1246
|
*/
|
|
1247
1247
|
order: [{
|
|
1248
|
-
order: [
|
|
1248
|
+
order: [G, "first", "last", "none", u, d]
|
|
1249
1249
|
}],
|
|
1250
1250
|
/**
|
|
1251
1251
|
* Grid Template Columns
|
|
1252
1252
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1253
1253
|
*/
|
|
1254
1254
|
"grid-cols": [{
|
|
1255
|
-
"grid-cols":
|
|
1255
|
+
"grid-cols": Fe()
|
|
1256
1256
|
}],
|
|
1257
1257
|
/**
|
|
1258
1258
|
* Grid Column Start / End
|
|
1259
1259
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1260
1260
|
*/
|
|
1261
1261
|
"col-start-end": [{
|
|
1262
|
-
col:
|
|
1262
|
+
col: Ue()
|
|
1263
1263
|
}],
|
|
1264
1264
|
/**
|
|
1265
1265
|
* Grid Column Start
|
|
@@ -1280,14 +1280,14 @@ const I = (e) => {
|
|
|
1280
1280
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1281
1281
|
*/
|
|
1282
1282
|
"grid-rows": [{
|
|
1283
|
-
"grid-rows":
|
|
1283
|
+
"grid-rows": Fe()
|
|
1284
1284
|
}],
|
|
1285
1285
|
/**
|
|
1286
1286
|
* Grid Row Start / End
|
|
1287
1287
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1288
1288
|
*/
|
|
1289
1289
|
"row-start-end": [{
|
|
1290
|
-
row:
|
|
1290
|
+
row: Ue()
|
|
1291
1291
|
}],
|
|
1292
1292
|
/**
|
|
1293
1293
|
* Grid Row Start
|
|
@@ -1315,42 +1315,42 @@ const I = (e) => {
|
|
|
1315
1315
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1316
1316
|
*/
|
|
1317
1317
|
"auto-cols": [{
|
|
1318
|
-
"auto-cols":
|
|
1318
|
+
"auto-cols": We()
|
|
1319
1319
|
}],
|
|
1320
1320
|
/**
|
|
1321
1321
|
* Grid Auto Rows
|
|
1322
1322
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1323
1323
|
*/
|
|
1324
1324
|
"auto-rows": [{
|
|
1325
|
-
"auto-rows":
|
|
1325
|
+
"auto-rows": We()
|
|
1326
1326
|
}],
|
|
1327
1327
|
/**
|
|
1328
1328
|
* Gap
|
|
1329
1329
|
* @see https://tailwindcss.com/docs/gap
|
|
1330
1330
|
*/
|
|
1331
1331
|
gap: [{
|
|
1332
|
-
gap:
|
|
1332
|
+
gap: h()
|
|
1333
1333
|
}],
|
|
1334
1334
|
/**
|
|
1335
1335
|
* Gap X
|
|
1336
1336
|
* @see https://tailwindcss.com/docs/gap
|
|
1337
1337
|
*/
|
|
1338
1338
|
"gap-x": [{
|
|
1339
|
-
"gap-x":
|
|
1339
|
+
"gap-x": h()
|
|
1340
1340
|
}],
|
|
1341
1341
|
/**
|
|
1342
1342
|
* Gap Y
|
|
1343
1343
|
* @see https://tailwindcss.com/docs/gap
|
|
1344
1344
|
*/
|
|
1345
1345
|
"gap-y": [{
|
|
1346
|
-
"gap-y":
|
|
1346
|
+
"gap-y": h()
|
|
1347
1347
|
}],
|
|
1348
1348
|
/**
|
|
1349
1349
|
* Justify Content
|
|
1350
1350
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1351
1351
|
*/
|
|
1352
1352
|
"justify-content": [{
|
|
1353
|
-
justify: [...
|
|
1353
|
+
justify: [...ve(), "normal"]
|
|
1354
1354
|
}],
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Justify Items
|
|
@@ -1371,7 +1371,7 @@ const I = (e) => {
|
|
|
1371
1371
|
* @see https://tailwindcss.com/docs/align-content
|
|
1372
1372
|
*/
|
|
1373
1373
|
"align-content": [{
|
|
1374
|
-
content: ["normal", ...
|
|
1374
|
+
content: ["normal", ...ve()]
|
|
1375
1375
|
}],
|
|
1376
1376
|
/**
|
|
1377
1377
|
* Align Items
|
|
@@ -1396,7 +1396,7 @@ const I = (e) => {
|
|
|
1396
1396
|
* @see https://tailwindcss.com/docs/place-content
|
|
1397
1397
|
*/
|
|
1398
1398
|
"place-content": [{
|
|
1399
|
-
"place-content":
|
|
1399
|
+
"place-content": ve()
|
|
1400
1400
|
}],
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Place Items
|
|
@@ -1418,63 +1418,63 @@ const I = (e) => {
|
|
|
1418
1418
|
* @see https://tailwindcss.com/docs/padding
|
|
1419
1419
|
*/
|
|
1420
1420
|
p: [{
|
|
1421
|
-
p:
|
|
1421
|
+
p: h()
|
|
1422
1422
|
}],
|
|
1423
1423
|
/**
|
|
1424
1424
|
* Padding X
|
|
1425
1425
|
* @see https://tailwindcss.com/docs/padding
|
|
1426
1426
|
*/
|
|
1427
1427
|
px: [{
|
|
1428
|
-
px:
|
|
1428
|
+
px: h()
|
|
1429
1429
|
}],
|
|
1430
1430
|
/**
|
|
1431
1431
|
* Padding Y
|
|
1432
1432
|
* @see https://tailwindcss.com/docs/padding
|
|
1433
1433
|
*/
|
|
1434
1434
|
py: [{
|
|
1435
|
-
py:
|
|
1435
|
+
py: h()
|
|
1436
1436
|
}],
|
|
1437
1437
|
/**
|
|
1438
1438
|
* Padding Start
|
|
1439
1439
|
* @see https://tailwindcss.com/docs/padding
|
|
1440
1440
|
*/
|
|
1441
1441
|
ps: [{
|
|
1442
|
-
ps:
|
|
1442
|
+
ps: h()
|
|
1443
1443
|
}],
|
|
1444
1444
|
/**
|
|
1445
1445
|
* Padding End
|
|
1446
1446
|
* @see https://tailwindcss.com/docs/padding
|
|
1447
1447
|
*/
|
|
1448
1448
|
pe: [{
|
|
1449
|
-
pe:
|
|
1449
|
+
pe: h()
|
|
1450
1450
|
}],
|
|
1451
1451
|
/**
|
|
1452
1452
|
* Padding Top
|
|
1453
1453
|
* @see https://tailwindcss.com/docs/padding
|
|
1454
1454
|
*/
|
|
1455
1455
|
pt: [{
|
|
1456
|
-
pt:
|
|
1456
|
+
pt: h()
|
|
1457
1457
|
}],
|
|
1458
1458
|
/**
|
|
1459
1459
|
* Padding Right
|
|
1460
1460
|
* @see https://tailwindcss.com/docs/padding
|
|
1461
1461
|
*/
|
|
1462
1462
|
pr: [{
|
|
1463
|
-
pr:
|
|
1463
|
+
pr: h()
|
|
1464
1464
|
}],
|
|
1465
1465
|
/**
|
|
1466
1466
|
* Padding Bottom
|
|
1467
1467
|
* @see https://tailwindcss.com/docs/padding
|
|
1468
1468
|
*/
|
|
1469
1469
|
pb: [{
|
|
1470
|
-
pb:
|
|
1470
|
+
pb: h()
|
|
1471
1471
|
}],
|
|
1472
1472
|
/**
|
|
1473
1473
|
* Padding Left
|
|
1474
1474
|
* @see https://tailwindcss.com/docs/padding
|
|
1475
1475
|
*/
|
|
1476
1476
|
pl: [{
|
|
1477
|
-
pl:
|
|
1477
|
+
pl: h()
|
|
1478
1478
|
}],
|
|
1479
1479
|
/**
|
|
1480
1480
|
* Margin
|
|
@@ -1544,7 +1544,7 @@ const I = (e) => {
|
|
|
1544
1544
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1545
1545
|
*/
|
|
1546
1546
|
"space-x": [{
|
|
1547
|
-
"space-x":
|
|
1547
|
+
"space-x": h()
|
|
1548
1548
|
}],
|
|
1549
1549
|
/**
|
|
1550
1550
|
* Space Between X Reverse
|
|
@@ -1556,7 +1556,7 @@ const I = (e) => {
|
|
|
1556
1556
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1557
1557
|
*/
|
|
1558
1558
|
"space-y": [{
|
|
1559
|
-
"space-y":
|
|
1559
|
+
"space-y": h()
|
|
1560
1560
|
}],
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Space Between Y Reverse
|
|
@@ -1571,14 +1571,14 @@ const I = (e) => {
|
|
|
1571
1571
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1572
1572
|
*/
|
|
1573
1573
|
size: [{
|
|
1574
|
-
size:
|
|
1574
|
+
size: F()
|
|
1575
1575
|
}],
|
|
1576
1576
|
/**
|
|
1577
1577
|
* Width
|
|
1578
1578
|
* @see https://tailwindcss.com/docs/width
|
|
1579
1579
|
*/
|
|
1580
1580
|
w: [{
|
|
1581
|
-
w: [l, "screen", ...
|
|
1581
|
+
w: [l, "screen", ...F()]
|
|
1582
1582
|
}],
|
|
1583
1583
|
/**
|
|
1584
1584
|
* Min-Width
|
|
@@ -1590,7 +1590,7 @@ const I = (e) => {
|
|
|
1590
1590
|
"screen",
|
|
1591
1591
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1592
1592
|
"none",
|
|
1593
|
-
...
|
|
1593
|
+
...F()
|
|
1594
1594
|
]
|
|
1595
1595
|
}],
|
|
1596
1596
|
/**
|
|
@@ -1608,7 +1608,7 @@ const I = (e) => {
|
|
|
1608
1608
|
{
|
|
1609
1609
|
screen: [i]
|
|
1610
1610
|
},
|
|
1611
|
-
...
|
|
1611
|
+
...F()
|
|
1612
1612
|
]
|
|
1613
1613
|
}],
|
|
1614
1614
|
/**
|
|
@@ -1616,21 +1616,21 @@ const I = (e) => {
|
|
|
1616
1616
|
* @see https://tailwindcss.com/docs/height
|
|
1617
1617
|
*/
|
|
1618
1618
|
h: [{
|
|
1619
|
-
h: ["screen", "lh", ...
|
|
1619
|
+
h: ["screen", "lh", ...F()]
|
|
1620
1620
|
}],
|
|
1621
1621
|
/**
|
|
1622
1622
|
* Min-Height
|
|
1623
1623
|
* @see https://tailwindcss.com/docs/min-height
|
|
1624
1624
|
*/
|
|
1625
1625
|
"min-h": [{
|
|
1626
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1626
|
+
"min-h": ["screen", "lh", "none", ...F()]
|
|
1627
1627
|
}],
|
|
1628
1628
|
/**
|
|
1629
1629
|
* Max-Height
|
|
1630
1630
|
* @see https://tailwindcss.com/docs/max-height
|
|
1631
1631
|
*/
|
|
1632
1632
|
"max-h": [{
|
|
1633
|
-
"max-h": ["screen", "lh", ...
|
|
1633
|
+
"max-h": ["screen", "lh", ...F()]
|
|
1634
1634
|
}],
|
|
1635
1635
|
// ------------------
|
|
1636
1636
|
// --- Typography ---
|
|
@@ -1640,7 +1640,7 @@ const I = (e) => {
|
|
|
1640
1640
|
* @see https://tailwindcss.com/docs/font-size
|
|
1641
1641
|
*/
|
|
1642
1642
|
"font-size": [{
|
|
1643
|
-
text: ["base", r,
|
|
1643
|
+
text: ["base", r, J, U]
|
|
1644
1644
|
}],
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Font Smoothing
|
|
@@ -1657,21 +1657,21 @@ const I = (e) => {
|
|
|
1657
1657
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1658
1658
|
*/
|
|
1659
1659
|
"font-weight": [{
|
|
1660
|
-
font: [o, u,
|
|
1660
|
+
font: [o, u, we]
|
|
1661
1661
|
}],
|
|
1662
1662
|
/**
|
|
1663
1663
|
* Font Stretch
|
|
1664
1664
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1665
1665
|
*/
|
|
1666
1666
|
"font-stretch": [{
|
|
1667
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1667
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ke, d]
|
|
1668
1668
|
}],
|
|
1669
1669
|
/**
|
|
1670
1670
|
* Font Family
|
|
1671
1671
|
* @see https://tailwindcss.com/docs/font-family
|
|
1672
1672
|
*/
|
|
1673
1673
|
"font-family": [{
|
|
1674
|
-
font: [
|
|
1674
|
+
font: [so, d, t]
|
|
1675
1675
|
}],
|
|
1676
1676
|
/**
|
|
1677
1677
|
* Font Variant Numeric
|
|
@@ -1715,7 +1715,7 @@ const I = (e) => {
|
|
|
1715
1715
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1716
1716
|
*/
|
|
1717
1717
|
"line-clamp": [{
|
|
1718
|
-
"line-clamp": [x, "none", u,
|
|
1718
|
+
"line-clamp": [x, "none", u, we]
|
|
1719
1719
|
}],
|
|
1720
1720
|
/**
|
|
1721
1721
|
* Line Height
|
|
@@ -1725,7 +1725,7 @@ const I = (e) => {
|
|
|
1725
1725
|
leading: [
|
|
1726
1726
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1727
1727
|
a,
|
|
1728
|
-
...
|
|
1728
|
+
...h()
|
|
1729
1729
|
]
|
|
1730
1730
|
}],
|
|
1731
1731
|
/**
|
|
@@ -1788,7 +1788,7 @@ const I = (e) => {
|
|
|
1788
1788
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1789
1789
|
*/
|
|
1790
1790
|
"text-decoration-thickness": [{
|
|
1791
|
-
decoration: [x, "from-font", "auto", u,
|
|
1791
|
+
decoration: [x, "from-font", "auto", u, U]
|
|
1792
1792
|
}],
|
|
1793
1793
|
/**
|
|
1794
1794
|
* Text Decoration Color
|
|
@@ -1826,7 +1826,7 @@ const I = (e) => {
|
|
|
1826
1826
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1827
1827
|
*/
|
|
1828
1828
|
indent: [{
|
|
1829
|
-
indent:
|
|
1829
|
+
indent: h()
|
|
1830
1830
|
}],
|
|
1831
1831
|
/**
|
|
1832
1832
|
* Vertical Alignment
|
|
@@ -1899,21 +1899,21 @@ const I = (e) => {
|
|
|
1899
1899
|
* @see https://tailwindcss.com/docs/background-position
|
|
1900
1900
|
*/
|
|
1901
1901
|
"bg-position": [{
|
|
1902
|
-
bg:
|
|
1902
|
+
bg: He()
|
|
1903
1903
|
}],
|
|
1904
1904
|
/**
|
|
1905
1905
|
* Background Repeat
|
|
1906
1906
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1907
1907
|
*/
|
|
1908
1908
|
"bg-repeat": [{
|
|
1909
|
-
bg:
|
|
1909
|
+
bg: qe()
|
|
1910
1910
|
}],
|
|
1911
1911
|
/**
|
|
1912
1912
|
* Background Size
|
|
1913
1913
|
* @see https://tailwindcss.com/docs/background-size
|
|
1914
1914
|
*/
|
|
1915
1915
|
"bg-size": [{
|
|
1916
|
-
bg:
|
|
1916
|
+
bg: Ke()
|
|
1917
1917
|
}],
|
|
1918
1918
|
/**
|
|
1919
1919
|
* Background Image
|
|
@@ -1923,10 +1923,10 @@ const I = (e) => {
|
|
|
1923
1923
|
bg: ["none", {
|
|
1924
1924
|
linear: [{
|
|
1925
1925
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1926
|
-
},
|
|
1926
|
+
}, G, u, d],
|
|
1927
1927
|
radial: ["", u, d],
|
|
1928
|
-
conic: [
|
|
1929
|
-
},
|
|
1928
|
+
conic: [G, u, d]
|
|
1929
|
+
}, lo, ao]
|
|
1930
1930
|
}],
|
|
1931
1931
|
/**
|
|
1932
1932
|
* Background Color
|
|
@@ -1940,21 +1940,21 @@ const I = (e) => {
|
|
|
1940
1940
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1941
1941
|
*/
|
|
1942
1942
|
"gradient-from-pos": [{
|
|
1943
|
-
from:
|
|
1943
|
+
from: xe()
|
|
1944
1944
|
}],
|
|
1945
1945
|
/**
|
|
1946
1946
|
* Gradient Color Stops Via Position
|
|
1947
1947
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1948
1948
|
*/
|
|
1949
1949
|
"gradient-via-pos": [{
|
|
1950
|
-
via:
|
|
1950
|
+
via: xe()
|
|
1951
1951
|
}],
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Gradient Color Stops To Position
|
|
1954
1954
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1955
1955
|
*/
|
|
1956
1956
|
"gradient-to-pos": [{
|
|
1957
|
-
to:
|
|
1957
|
+
to: xe()
|
|
1958
1958
|
}],
|
|
1959
1959
|
/**
|
|
1960
1960
|
* Gradient Color Stops From
|
|
@@ -1985,175 +1985,175 @@ const I = (e) => {
|
|
|
1985
1985
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1986
1986
|
*/
|
|
1987
1987
|
rounded: [{
|
|
1988
|
-
rounded:
|
|
1988
|
+
rounded: T()
|
|
1989
1989
|
}],
|
|
1990
1990
|
/**
|
|
1991
1991
|
* Border Radius Start
|
|
1992
1992
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1993
1993
|
*/
|
|
1994
1994
|
"rounded-s": [{
|
|
1995
|
-
"rounded-s":
|
|
1995
|
+
"rounded-s": T()
|
|
1996
1996
|
}],
|
|
1997
1997
|
/**
|
|
1998
1998
|
* Border Radius End
|
|
1999
1999
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2000
2000
|
*/
|
|
2001
2001
|
"rounded-e": [{
|
|
2002
|
-
"rounded-e":
|
|
2002
|
+
"rounded-e": T()
|
|
2003
2003
|
}],
|
|
2004
2004
|
/**
|
|
2005
2005
|
* Border Radius Top
|
|
2006
2006
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2007
2007
|
*/
|
|
2008
2008
|
"rounded-t": [{
|
|
2009
|
-
"rounded-t":
|
|
2009
|
+
"rounded-t": T()
|
|
2010
2010
|
}],
|
|
2011
2011
|
/**
|
|
2012
2012
|
* Border Radius Right
|
|
2013
2013
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2014
2014
|
*/
|
|
2015
2015
|
"rounded-r": [{
|
|
2016
|
-
"rounded-r":
|
|
2016
|
+
"rounded-r": T()
|
|
2017
2017
|
}],
|
|
2018
2018
|
/**
|
|
2019
2019
|
* Border Radius Bottom
|
|
2020
2020
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2021
2021
|
*/
|
|
2022
2022
|
"rounded-b": [{
|
|
2023
|
-
"rounded-b":
|
|
2023
|
+
"rounded-b": T()
|
|
2024
2024
|
}],
|
|
2025
2025
|
/**
|
|
2026
2026
|
* Border Radius Left
|
|
2027
2027
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2028
2028
|
*/
|
|
2029
2029
|
"rounded-l": [{
|
|
2030
|
-
"rounded-l":
|
|
2030
|
+
"rounded-l": T()
|
|
2031
2031
|
}],
|
|
2032
2032
|
/**
|
|
2033
2033
|
* Border Radius Start Start
|
|
2034
2034
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2035
2035
|
*/
|
|
2036
2036
|
"rounded-ss": [{
|
|
2037
|
-
"rounded-ss":
|
|
2037
|
+
"rounded-ss": T()
|
|
2038
2038
|
}],
|
|
2039
2039
|
/**
|
|
2040
2040
|
* Border Radius Start End
|
|
2041
2041
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2042
2042
|
*/
|
|
2043
2043
|
"rounded-se": [{
|
|
2044
|
-
"rounded-se":
|
|
2044
|
+
"rounded-se": T()
|
|
2045
2045
|
}],
|
|
2046
2046
|
/**
|
|
2047
2047
|
* Border Radius End End
|
|
2048
2048
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2049
2049
|
*/
|
|
2050
2050
|
"rounded-ee": [{
|
|
2051
|
-
"rounded-ee":
|
|
2051
|
+
"rounded-ee": T()
|
|
2052
2052
|
}],
|
|
2053
2053
|
/**
|
|
2054
2054
|
* Border Radius End Start
|
|
2055
2055
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2056
2056
|
*/
|
|
2057
2057
|
"rounded-es": [{
|
|
2058
|
-
"rounded-es":
|
|
2058
|
+
"rounded-es": T()
|
|
2059
2059
|
}],
|
|
2060
2060
|
/**
|
|
2061
2061
|
* Border Radius Top Left
|
|
2062
2062
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2063
2063
|
*/
|
|
2064
2064
|
"rounded-tl": [{
|
|
2065
|
-
"rounded-tl":
|
|
2065
|
+
"rounded-tl": T()
|
|
2066
2066
|
}],
|
|
2067
2067
|
/**
|
|
2068
2068
|
* Border Radius Top Right
|
|
2069
2069
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2070
2070
|
*/
|
|
2071
2071
|
"rounded-tr": [{
|
|
2072
|
-
"rounded-tr":
|
|
2072
|
+
"rounded-tr": T()
|
|
2073
2073
|
}],
|
|
2074
2074
|
/**
|
|
2075
2075
|
* Border Radius Bottom Right
|
|
2076
2076
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2077
2077
|
*/
|
|
2078
2078
|
"rounded-br": [{
|
|
2079
|
-
"rounded-br":
|
|
2079
|
+
"rounded-br": T()
|
|
2080
2080
|
}],
|
|
2081
2081
|
/**
|
|
2082
2082
|
* Border Radius Bottom Left
|
|
2083
2083
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2084
2084
|
*/
|
|
2085
2085
|
"rounded-bl": [{
|
|
2086
|
-
"rounded-bl":
|
|
2086
|
+
"rounded-bl": T()
|
|
2087
2087
|
}],
|
|
2088
2088
|
/**
|
|
2089
2089
|
* Border Width
|
|
2090
2090
|
* @see https://tailwindcss.com/docs/border-width
|
|
2091
2091
|
*/
|
|
2092
2092
|
"border-w": [{
|
|
2093
|
-
border:
|
|
2093
|
+
border: O()
|
|
2094
2094
|
}],
|
|
2095
2095
|
/**
|
|
2096
2096
|
* Border Width X
|
|
2097
2097
|
* @see https://tailwindcss.com/docs/border-width
|
|
2098
2098
|
*/
|
|
2099
2099
|
"border-w-x": [{
|
|
2100
|
-
"border-x":
|
|
2100
|
+
"border-x": O()
|
|
2101
2101
|
}],
|
|
2102
2102
|
/**
|
|
2103
2103
|
* Border Width Y
|
|
2104
2104
|
* @see https://tailwindcss.com/docs/border-width
|
|
2105
2105
|
*/
|
|
2106
2106
|
"border-w-y": [{
|
|
2107
|
-
"border-y":
|
|
2107
|
+
"border-y": O()
|
|
2108
2108
|
}],
|
|
2109
2109
|
/**
|
|
2110
2110
|
* Border Width Start
|
|
2111
2111
|
* @see https://tailwindcss.com/docs/border-width
|
|
2112
2112
|
*/
|
|
2113
2113
|
"border-w-s": [{
|
|
2114
|
-
"border-s":
|
|
2114
|
+
"border-s": O()
|
|
2115
2115
|
}],
|
|
2116
2116
|
/**
|
|
2117
2117
|
* Border Width End
|
|
2118
2118
|
* @see https://tailwindcss.com/docs/border-width
|
|
2119
2119
|
*/
|
|
2120
2120
|
"border-w-e": [{
|
|
2121
|
-
"border-e":
|
|
2121
|
+
"border-e": O()
|
|
2122
2122
|
}],
|
|
2123
2123
|
/**
|
|
2124
2124
|
* Border Width Top
|
|
2125
2125
|
* @see https://tailwindcss.com/docs/border-width
|
|
2126
2126
|
*/
|
|
2127
2127
|
"border-w-t": [{
|
|
2128
|
-
"border-t":
|
|
2128
|
+
"border-t": O()
|
|
2129
2129
|
}],
|
|
2130
2130
|
/**
|
|
2131
2131
|
* Border Width Right
|
|
2132
2132
|
* @see https://tailwindcss.com/docs/border-width
|
|
2133
2133
|
*/
|
|
2134
2134
|
"border-w-r": [{
|
|
2135
|
-
"border-r":
|
|
2135
|
+
"border-r": O()
|
|
2136
2136
|
}],
|
|
2137
2137
|
/**
|
|
2138
2138
|
* Border Width Bottom
|
|
2139
2139
|
* @see https://tailwindcss.com/docs/border-width
|
|
2140
2140
|
*/
|
|
2141
2141
|
"border-w-b": [{
|
|
2142
|
-
"border-b":
|
|
2142
|
+
"border-b": O()
|
|
2143
2143
|
}],
|
|
2144
2144
|
/**
|
|
2145
2145
|
* Border Width Left
|
|
2146
2146
|
* @see https://tailwindcss.com/docs/border-width
|
|
2147
2147
|
*/
|
|
2148
2148
|
"border-w-l": [{
|
|
2149
|
-
"border-l":
|
|
2149
|
+
"border-l": O()
|
|
2150
2150
|
}],
|
|
2151
2151
|
/**
|
|
2152
2152
|
* Divide Width X
|
|
2153
2153
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2154
2154
|
*/
|
|
2155
2155
|
"divide-x": [{
|
|
2156
|
-
"divide-x":
|
|
2156
|
+
"divide-x": O()
|
|
2157
2157
|
}],
|
|
2158
2158
|
/**
|
|
2159
2159
|
* Divide Width X Reverse
|
|
@@ -2165,7 +2165,7 @@ const I = (e) => {
|
|
|
2165
2165
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2166
2166
|
*/
|
|
2167
2167
|
"divide-y": [{
|
|
2168
|
-
"divide-y":
|
|
2168
|
+
"divide-y": O()
|
|
2169
2169
|
}],
|
|
2170
2170
|
/**
|
|
2171
2171
|
* Divide Width Y Reverse
|
|
@@ -2275,7 +2275,7 @@ const I = (e) => {
|
|
|
2275
2275
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2276
2276
|
*/
|
|
2277
2277
|
"outline-w": [{
|
|
2278
|
-
outline: ["", x,
|
|
2278
|
+
outline: ["", x, J, U]
|
|
2279
2279
|
}],
|
|
2280
2280
|
/**
|
|
2281
2281
|
* Outline Color
|
|
@@ -2313,7 +2313,7 @@ const I = (e) => {
|
|
|
2313
2313
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2314
2314
|
*/
|
|
2315
2315
|
"inset-shadow": [{
|
|
2316
|
-
"inset-shadow": ["none",
|
|
2316
|
+
"inset-shadow": ["none", v, fe, ue]
|
|
2317
2317
|
}],
|
|
2318
2318
|
/**
|
|
2319
2319
|
* Inset Box Shadow Color
|
|
@@ -2327,7 +2327,7 @@ const I = (e) => {
|
|
|
2327
2327
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2328
2328
|
*/
|
|
2329
2329
|
"ring-w": [{
|
|
2330
|
-
ring:
|
|
2330
|
+
ring: O()
|
|
2331
2331
|
}],
|
|
2332
2332
|
/**
|
|
2333
2333
|
* Ring Width Inset
|
|
@@ -2350,7 +2350,7 @@ const I = (e) => {
|
|
|
2350
2350
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2351
2351
|
*/
|
|
2352
2352
|
"ring-offset-w": [{
|
|
2353
|
-
"ring-offset": [x,
|
|
2353
|
+
"ring-offset": [x, U]
|
|
2354
2354
|
}],
|
|
2355
2355
|
/**
|
|
2356
2356
|
* Ring Offset Color
|
|
@@ -2366,7 +2366,7 @@ const I = (e) => {
|
|
|
2366
2366
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2367
2367
|
*/
|
|
2368
2368
|
"inset-ring-w": [{
|
|
2369
|
-
"inset-ring":
|
|
2369
|
+
"inset-ring": O()
|
|
2370
2370
|
}],
|
|
2371
2371
|
/**
|
|
2372
2372
|
* Inset Ring Color
|
|
@@ -2401,14 +2401,14 @@ const I = (e) => {
|
|
|
2401
2401
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2402
2402
|
*/
|
|
2403
2403
|
"mix-blend": [{
|
|
2404
|
-
"mix-blend": [...
|
|
2404
|
+
"mix-blend": [...Ze(), "plus-darker", "plus-lighter"]
|
|
2405
2405
|
}],
|
|
2406
2406
|
/**
|
|
2407
2407
|
* Background Blend Mode
|
|
2408
2408
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2409
2409
|
*/
|
|
2410
2410
|
"bg-blend": [{
|
|
2411
|
-
"bg-blend":
|
|
2411
|
+
"bg-blend": Ze()
|
|
2412
2412
|
}],
|
|
2413
2413
|
/**
|
|
2414
2414
|
* Mask Clip
|
|
@@ -2576,21 +2576,21 @@ const I = (e) => {
|
|
|
2576
2576
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2577
2577
|
*/
|
|
2578
2578
|
"mask-position": [{
|
|
2579
|
-
mask:
|
|
2579
|
+
mask: He()
|
|
2580
2580
|
}],
|
|
2581
2581
|
/**
|
|
2582
2582
|
* Mask Repeat
|
|
2583
2583
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2584
2584
|
*/
|
|
2585
2585
|
"mask-repeat": [{
|
|
2586
|
-
mask:
|
|
2586
|
+
mask: qe()
|
|
2587
2587
|
}],
|
|
2588
2588
|
/**
|
|
2589
2589
|
* Mask Size
|
|
2590
2590
|
* @see https://tailwindcss.com/docs/mask-size
|
|
2591
2591
|
*/
|
|
2592
2592
|
"mask-size": [{
|
|
2593
|
-
mask:
|
|
2593
|
+
mask: Ke()
|
|
2594
2594
|
}],
|
|
2595
2595
|
/**
|
|
2596
2596
|
* Mask Type
|
|
@@ -2627,7 +2627,7 @@ const I = (e) => {
|
|
|
2627
2627
|
* @see https://tailwindcss.com/docs/blur
|
|
2628
2628
|
*/
|
|
2629
2629
|
blur: [{
|
|
2630
|
-
blur:
|
|
2630
|
+
blur: Xe()
|
|
2631
2631
|
}],
|
|
2632
2632
|
/**
|
|
2633
2633
|
* Brightness
|
|
@@ -2717,7 +2717,7 @@ const I = (e) => {
|
|
|
2717
2717
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2718
2718
|
*/
|
|
2719
2719
|
"backdrop-blur": [{
|
|
2720
|
-
"backdrop-blur":
|
|
2720
|
+
"backdrop-blur": Xe()
|
|
2721
2721
|
}],
|
|
2722
2722
|
/**
|
|
2723
2723
|
* Backdrop Brightness
|
|
@@ -2790,21 +2790,21 @@ const I = (e) => {
|
|
|
2790
2790
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2791
2791
|
*/
|
|
2792
2792
|
"border-spacing": [{
|
|
2793
|
-
"border-spacing":
|
|
2793
|
+
"border-spacing": h()
|
|
2794
2794
|
}],
|
|
2795
2795
|
/**
|
|
2796
2796
|
* Border Spacing X
|
|
2797
2797
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2798
2798
|
*/
|
|
2799
2799
|
"border-spacing-x": [{
|
|
2800
|
-
"border-spacing-x":
|
|
2800
|
+
"border-spacing-x": h()
|
|
2801
2801
|
}],
|
|
2802
2802
|
/**
|
|
2803
2803
|
* Border Spacing Y
|
|
2804
2804
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2805
2805
|
*/
|
|
2806
2806
|
"border-spacing-y": [{
|
|
2807
|
-
"border-spacing-y":
|
|
2807
|
+
"border-spacing-y": h()
|
|
2808
2808
|
}],
|
|
2809
2809
|
/**
|
|
2810
2810
|
* Table Layout
|
|
@@ -2887,7 +2887,7 @@ const I = (e) => {
|
|
|
2887
2887
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2888
2888
|
*/
|
|
2889
2889
|
"perspective-origin": [{
|
|
2890
|
-
"perspective-origin":
|
|
2890
|
+
"perspective-origin": L()
|
|
2891
2891
|
}],
|
|
2892
2892
|
/**
|
|
2893
2893
|
* Rotate
|
|
@@ -2955,21 +2955,21 @@ const I = (e) => {
|
|
|
2955
2955
|
* @see https://tailwindcss.com/docs/skew
|
|
2956
2956
|
*/
|
|
2957
2957
|
skew: [{
|
|
2958
|
-
skew:
|
|
2958
|
+
skew: ye()
|
|
2959
2959
|
}],
|
|
2960
2960
|
/**
|
|
2961
2961
|
* Skew X
|
|
2962
2962
|
* @see https://tailwindcss.com/docs/skew
|
|
2963
2963
|
*/
|
|
2964
2964
|
"skew-x": [{
|
|
2965
|
-
"skew-x":
|
|
2965
|
+
"skew-x": ye()
|
|
2966
2966
|
}],
|
|
2967
2967
|
/**
|
|
2968
2968
|
* Skew Y
|
|
2969
2969
|
* @see https://tailwindcss.com/docs/skew
|
|
2970
2970
|
*/
|
|
2971
2971
|
"skew-y": [{
|
|
2972
|
-
"skew-y":
|
|
2972
|
+
"skew-y": ye()
|
|
2973
2973
|
}],
|
|
2974
2974
|
/**
|
|
2975
2975
|
* Transform
|
|
@@ -2983,7 +2983,7 @@ const I = (e) => {
|
|
|
2983
2983
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2984
2984
|
*/
|
|
2985
2985
|
"transform-origin": [{
|
|
2986
|
-
origin:
|
|
2986
|
+
origin: L()
|
|
2987
2987
|
}],
|
|
2988
2988
|
/**
|
|
2989
2989
|
* Transform Style
|
|
@@ -3096,126 +3096,126 @@ const I = (e) => {
|
|
|
3096
3096
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3097
3097
|
*/
|
|
3098
3098
|
"scroll-m": [{
|
|
3099
|
-
"scroll-m":
|
|
3099
|
+
"scroll-m": h()
|
|
3100
3100
|
}],
|
|
3101
3101
|
/**
|
|
3102
3102
|
* Scroll Margin X
|
|
3103
3103
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3104
3104
|
*/
|
|
3105
3105
|
"scroll-mx": [{
|
|
3106
|
-
"scroll-mx":
|
|
3106
|
+
"scroll-mx": h()
|
|
3107
3107
|
}],
|
|
3108
3108
|
/**
|
|
3109
3109
|
* Scroll Margin Y
|
|
3110
3110
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3111
3111
|
*/
|
|
3112
3112
|
"scroll-my": [{
|
|
3113
|
-
"scroll-my":
|
|
3113
|
+
"scroll-my": h()
|
|
3114
3114
|
}],
|
|
3115
3115
|
/**
|
|
3116
3116
|
* Scroll Margin Start
|
|
3117
3117
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3118
3118
|
*/
|
|
3119
3119
|
"scroll-ms": [{
|
|
3120
|
-
"scroll-ms":
|
|
3120
|
+
"scroll-ms": h()
|
|
3121
3121
|
}],
|
|
3122
3122
|
/**
|
|
3123
3123
|
* Scroll Margin End
|
|
3124
3124
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3125
3125
|
*/
|
|
3126
3126
|
"scroll-me": [{
|
|
3127
|
-
"scroll-me":
|
|
3127
|
+
"scroll-me": h()
|
|
3128
3128
|
}],
|
|
3129
3129
|
/**
|
|
3130
3130
|
* Scroll Margin Top
|
|
3131
3131
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3132
3132
|
*/
|
|
3133
3133
|
"scroll-mt": [{
|
|
3134
|
-
"scroll-mt":
|
|
3134
|
+
"scroll-mt": h()
|
|
3135
3135
|
}],
|
|
3136
3136
|
/**
|
|
3137
3137
|
* Scroll Margin Right
|
|
3138
3138
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3139
3139
|
*/
|
|
3140
3140
|
"scroll-mr": [{
|
|
3141
|
-
"scroll-mr":
|
|
3141
|
+
"scroll-mr": h()
|
|
3142
3142
|
}],
|
|
3143
3143
|
/**
|
|
3144
3144
|
* Scroll Margin Bottom
|
|
3145
3145
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3146
3146
|
*/
|
|
3147
3147
|
"scroll-mb": [{
|
|
3148
|
-
"scroll-mb":
|
|
3148
|
+
"scroll-mb": h()
|
|
3149
3149
|
}],
|
|
3150
3150
|
/**
|
|
3151
3151
|
* Scroll Margin Left
|
|
3152
3152
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3153
3153
|
*/
|
|
3154
3154
|
"scroll-ml": [{
|
|
3155
|
-
"scroll-ml":
|
|
3155
|
+
"scroll-ml": h()
|
|
3156
3156
|
}],
|
|
3157
3157
|
/**
|
|
3158
3158
|
* Scroll Padding
|
|
3159
3159
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3160
3160
|
*/
|
|
3161
3161
|
"scroll-p": [{
|
|
3162
|
-
"scroll-p":
|
|
3162
|
+
"scroll-p": h()
|
|
3163
3163
|
}],
|
|
3164
3164
|
/**
|
|
3165
3165
|
* Scroll Padding X
|
|
3166
3166
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3167
3167
|
*/
|
|
3168
3168
|
"scroll-px": [{
|
|
3169
|
-
"scroll-px":
|
|
3169
|
+
"scroll-px": h()
|
|
3170
3170
|
}],
|
|
3171
3171
|
/**
|
|
3172
3172
|
* Scroll Padding Y
|
|
3173
3173
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3174
3174
|
*/
|
|
3175
3175
|
"scroll-py": [{
|
|
3176
|
-
"scroll-py":
|
|
3176
|
+
"scroll-py": h()
|
|
3177
3177
|
}],
|
|
3178
3178
|
/**
|
|
3179
3179
|
* Scroll Padding Start
|
|
3180
3180
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3181
3181
|
*/
|
|
3182
3182
|
"scroll-ps": [{
|
|
3183
|
-
"scroll-ps":
|
|
3183
|
+
"scroll-ps": h()
|
|
3184
3184
|
}],
|
|
3185
3185
|
/**
|
|
3186
3186
|
* Scroll Padding End
|
|
3187
3187
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3188
3188
|
*/
|
|
3189
3189
|
"scroll-pe": [{
|
|
3190
|
-
"scroll-pe":
|
|
3190
|
+
"scroll-pe": h()
|
|
3191
3191
|
}],
|
|
3192
3192
|
/**
|
|
3193
3193
|
* Scroll Padding Top
|
|
3194
3194
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3195
3195
|
*/
|
|
3196
3196
|
"scroll-pt": [{
|
|
3197
|
-
"scroll-pt":
|
|
3197
|
+
"scroll-pt": h()
|
|
3198
3198
|
}],
|
|
3199
3199
|
/**
|
|
3200
3200
|
* Scroll Padding Right
|
|
3201
3201
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3202
3202
|
*/
|
|
3203
3203
|
"scroll-pr": [{
|
|
3204
|
-
"scroll-pr":
|
|
3204
|
+
"scroll-pr": h()
|
|
3205
3205
|
}],
|
|
3206
3206
|
/**
|
|
3207
3207
|
* Scroll Padding Bottom
|
|
3208
3208
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3209
3209
|
*/
|
|
3210
3210
|
"scroll-pb": [{
|
|
3211
|
-
"scroll-pb":
|
|
3211
|
+
"scroll-pb": h()
|
|
3212
3212
|
}],
|
|
3213
3213
|
/**
|
|
3214
3214
|
* Scroll Padding Left
|
|
3215
3215
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3216
3216
|
*/
|
|
3217
3217
|
"scroll-pl": [{
|
|
3218
|
-
"scroll-pl":
|
|
3218
|
+
"scroll-pl": h()
|
|
3219
3219
|
}],
|
|
3220
3220
|
/**
|
|
3221
3221
|
* Scroll Snap Align
|
|
@@ -3300,7 +3300,7 @@ const I = (e) => {
|
|
|
3300
3300
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3301
3301
|
*/
|
|
3302
3302
|
"stroke-w": [{
|
|
3303
|
-
stroke: [x,
|
|
3303
|
+
stroke: [x, J, U, we]
|
|
3304
3304
|
}],
|
|
3305
3305
|
/**
|
|
3306
3306
|
* Stroke
|
|
@@ -3375,16 +3375,16 @@ const I = (e) => {
|
|
|
3375
3375
|
},
|
|
3376
3376
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3377
3377
|
};
|
|
3378
|
-
},
|
|
3379
|
-
function
|
|
3380
|
-
return
|
|
3378
|
+
}, mo = /* @__PURE__ */ Hr(fo);
|
|
3379
|
+
function g(...e) {
|
|
3380
|
+
return mo(Er(e));
|
|
3381
3381
|
}
|
|
3382
|
-
function
|
|
3383
|
-
const { colorScheme: o } =
|
|
3382
|
+
function po({ children: e, className: t, ...r }) {
|
|
3383
|
+
const { colorScheme: o } = $e(), { value: n } = Ve();
|
|
3384
3384
|
return /* @__PURE__ */ s(
|
|
3385
|
-
|
|
3385
|
+
Rr,
|
|
3386
3386
|
{
|
|
3387
|
-
className:
|
|
3387
|
+
className: g(
|
|
3388
3388
|
"focus:outline-2 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-[var(--accordion-focus,hsl(var(--primary)))] has-[:focus-visible]:ring-offset-4",
|
|
3389
3389
|
{
|
|
3390
3390
|
light: "ring-offset-[var(--acordion-light-offset,hsl(var(--background)))]",
|
|
@@ -3399,17 +3399,17 @@ function fo({ children: e, className: t, ...r }) {
|
|
|
3399
3399
|
}
|
|
3400
3400
|
);
|
|
3401
3401
|
}
|
|
3402
|
-
function
|
|
3403
|
-
return /* @__PURE__ */ s(
|
|
3402
|
+
function go({ className: e, ...t }) {
|
|
3403
|
+
return /* @__PURE__ */ s(_r, { className: g(e), ...t, "data-slot": "accordion-root" });
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3406
|
-
const { colorScheme: r } =
|
|
3407
|
-
return
|
|
3405
|
+
function bo({ className: e, ...t }) {
|
|
3406
|
+
const { colorScheme: r } = $e(), { content: o } = Ve(), [n, a] = Ce(!1);
|
|
3407
|
+
return nt(() => {
|
|
3408
3408
|
a(!0);
|
|
3409
3409
|
}, []), /* @__PURE__ */ s(
|
|
3410
|
-
|
|
3410
|
+
Mr,
|
|
3411
3411
|
{
|
|
3412
|
-
className:
|
|
3412
|
+
className: g(
|
|
3413
3413
|
"overflow-hidden",
|
|
3414
3414
|
// We need to delay the animation until the component is mounted to avoid the animation from being triggered when the component is first rendered.
|
|
3415
3415
|
n && "data-[state=closed]:animate-collapse data-[state=open]:animate-expand"
|
|
@@ -3418,7 +3418,7 @@ function po({ className: e, ...t }) {
|
|
|
3418
3418
|
children: /* @__PURE__ */ s(
|
|
3419
3419
|
"div",
|
|
3420
3420
|
{
|
|
3421
|
-
className:
|
|
3421
|
+
className: g(
|
|
3422
3422
|
"py-3 text-base font-light leading-normal [font-family:var(--accordion-content-font-family,var(--font-family-body))]",
|
|
3423
3423
|
{
|
|
3424
3424
|
light: "text-[var(--accordion-light-content-text,hsl(var(--foreground)))]",
|
|
@@ -3433,13 +3433,13 @@ function po({ className: e, ...t }) {
|
|
|
3433
3433
|
}
|
|
3434
3434
|
);
|
|
3435
3435
|
}
|
|
3436
|
-
const Ot =
|
|
3437
|
-
function
|
|
3436
|
+
const Ot = te(void 0);
|
|
3437
|
+
function ho({
|
|
3438
3438
|
children: e,
|
|
3439
3439
|
colorScheme: t = "light",
|
|
3440
3440
|
items: r
|
|
3441
3441
|
}) {
|
|
3442
|
-
const o =
|
|
3442
|
+
const o = re(
|
|
3443
3443
|
() => ({
|
|
3444
3444
|
colorScheme: t,
|
|
3445
3445
|
items: r
|
|
@@ -3448,20 +3448,20 @@ function bo({
|
|
|
3448
3448
|
);
|
|
3449
3449
|
return /* @__PURE__ */ s(Ot.Provider, { value: o, children: e });
|
|
3450
3450
|
}
|
|
3451
|
-
function
|
|
3452
|
-
const e =
|
|
3451
|
+
function $e() {
|
|
3452
|
+
const e = oe(Ot);
|
|
3453
3453
|
if (e === void 0)
|
|
3454
3454
|
throw new Error("useAccordion must be used within an AccordionProvider");
|
|
3455
3455
|
return e;
|
|
3456
3456
|
}
|
|
3457
|
-
const Bt =
|
|
3458
|
-
function
|
|
3457
|
+
const Bt = te(void 0);
|
|
3458
|
+
function vo({
|
|
3459
3459
|
children: e,
|
|
3460
3460
|
title: t,
|
|
3461
3461
|
content: r,
|
|
3462
3462
|
value: o
|
|
3463
3463
|
}) {
|
|
3464
|
-
const n =
|
|
3464
|
+
const n = re(
|
|
3465
3465
|
() => ({
|
|
3466
3466
|
title: t,
|
|
3467
3467
|
content: r,
|
|
@@ -3471,18 +3471,18 @@ function go({
|
|
|
3471
3471
|
);
|
|
3472
3472
|
return /* @__PURE__ */ s(Bt.Provider, { value: n, children: e });
|
|
3473
3473
|
}
|
|
3474
|
-
function
|
|
3475
|
-
const e =
|
|
3474
|
+
function Ve() {
|
|
3475
|
+
const e = oe(Bt);
|
|
3476
3476
|
if (e === void 0)
|
|
3477
3477
|
throw new Error("useAccordionItem must be used within an AccordionItemProvider");
|
|
3478
3478
|
return e;
|
|
3479
3479
|
}
|
|
3480
|
-
function
|
|
3481
|
-
const { colorScheme: r } =
|
|
3482
|
-
return /* @__PURE__ */ s(
|
|
3483
|
-
|
|
3480
|
+
function xo({ className: e, ...t }) {
|
|
3481
|
+
const { colorScheme: r } = $e(), { title: o } = Ve();
|
|
3482
|
+
return /* @__PURE__ */ s(Ir, { children: /* @__PURE__ */ E(
|
|
3483
|
+
Sr,
|
|
3484
3484
|
{
|
|
3485
|
-
className:
|
|
3485
|
+
className: g(
|
|
3486
3486
|
"group flex w-full cursor-pointer items-start gap-8 border-none py-3 text-start focus:outline-none @md:py-4",
|
|
3487
3487
|
e
|
|
3488
3488
|
),
|
|
@@ -3492,7 +3492,7 @@ function ho({ className: e, ...t }) {
|
|
|
3492
3492
|
/* @__PURE__ */ s(
|
|
3493
3493
|
"div",
|
|
3494
3494
|
{
|
|
3495
|
-
className:
|
|
3495
|
+
className: g(
|
|
3496
3496
|
"flex-1 select-none text-sm font-normal uppercase transition-colors duration-300 ease-out [font-family:var(--accordion-title-font-family,var(--font-family-mono))]",
|
|
3497
3497
|
{
|
|
3498
3498
|
light: "text-[var(--accordion-light-title-text,hsl(var(--contrast-400)))] group-hover:text-[var(--accordion-light-title-text-hover,hsl(var(--foreground)))]",
|
|
@@ -3502,10 +3502,10 @@ function ho({ className: e, ...t }) {
|
|
|
3502
3502
|
children: o
|
|
3503
3503
|
}
|
|
3504
3504
|
),
|
|
3505
|
-
/* @__PURE__ */
|
|
3505
|
+
/* @__PURE__ */ E(
|
|
3506
3506
|
"svg",
|
|
3507
3507
|
{
|
|
3508
|
-
className:
|
|
3508
|
+
className: g(
|
|
3509
3509
|
"mt-1 shrink-0 [&>line]:origin-center [&>line]:transition [&>line]:duration-300 [&>line]:ease-out",
|
|
3510
3510
|
{
|
|
3511
3511
|
light: "stroke-[var(--accordion-light-title-icon,hsl(var(--contrast-500)))] group-hover:stroke-[var(--accordion-light-title-icon-hover,hsl(var(--foreground)))]",
|
|
@@ -3545,34 +3545,34 @@ function ho({ className: e, ...t }) {
|
|
|
3545
3545
|
}
|
|
3546
3546
|
) });
|
|
3547
3547
|
}
|
|
3548
|
-
function
|
|
3548
|
+
function dn({ className: e, variant: t, message: r, description: o, action: n, dismiss: a }) {
|
|
3549
3549
|
return /* @__PURE__ */ s(
|
|
3550
|
-
|
|
3550
|
+
ko,
|
|
3551
3551
|
{
|
|
3552
3552
|
action: n,
|
|
3553
3553
|
description: o,
|
|
3554
3554
|
dismiss: a,
|
|
3555
3555
|
message: r,
|
|
3556
3556
|
variant: t,
|
|
3557
|
-
children: /* @__PURE__ */
|
|
3558
|
-
/* @__PURE__ */
|
|
3559
|
-
/* @__PURE__ */ s(
|
|
3560
|
-
/* @__PURE__ */ s(
|
|
3557
|
+
children: /* @__PURE__ */ E(yo, { className: e, children: [
|
|
3558
|
+
/* @__PURE__ */ E(wo, { children: [
|
|
3559
|
+
/* @__PURE__ */ s(Co, {}),
|
|
3560
|
+
/* @__PURE__ */ s(Ao, {})
|
|
3561
3561
|
] }),
|
|
3562
|
-
/* @__PURE__ */
|
|
3563
|
-
/* @__PURE__ */ s(
|
|
3564
|
-
/* @__PURE__ */ s(
|
|
3562
|
+
/* @__PURE__ */ E(No, { children: [
|
|
3563
|
+
/* @__PURE__ */ s(Oo, {}),
|
|
3564
|
+
/* @__PURE__ */ s(Bo, {})
|
|
3565
3565
|
] })
|
|
3566
3566
|
] })
|
|
3567
3567
|
}
|
|
3568
3568
|
);
|
|
3569
3569
|
}
|
|
3570
|
-
function
|
|
3570
|
+
function yo({ className: e, children: t, ...r }) {
|
|
3571
3571
|
const { variant: o } = ne();
|
|
3572
3572
|
return /* @__PURE__ */ s(
|
|
3573
3573
|
"div",
|
|
3574
3574
|
{
|
|
3575
|
-
className:
|
|
3575
|
+
className: g(
|
|
3576
3576
|
"flex max-w-[356px] items-center justify-between gap-2 rounded-xl border border-[var(--alert-border,color-mix(in_oklab,hsl(var(--foreground))_10%,transparent))] py-3 pe-3 ps-4 shadow",
|
|
3577
3577
|
{
|
|
3578
3578
|
success: "bg-[var(--alert-success-background,color-mix(in_oklab,hsl(var(--success)),white_75%))]",
|
|
@@ -3589,8 +3589,8 @@ function vo({ className: e, children: t, ...r }) {
|
|
|
3589
3589
|
}
|
|
3590
3590
|
);
|
|
3591
3591
|
}
|
|
3592
|
-
const
|
|
3593
|
-
function
|
|
3592
|
+
const Dt = te(void 0);
|
|
3593
|
+
function ko({
|
|
3594
3594
|
children: e,
|
|
3595
3595
|
message: t,
|
|
3596
3596
|
description: r,
|
|
@@ -3598,7 +3598,7 @@ function xo({
|
|
|
3598
3598
|
dismiss: n,
|
|
3599
3599
|
variant: a
|
|
3600
3600
|
}) {
|
|
3601
|
-
const i =
|
|
3601
|
+
const i = re(
|
|
3602
3602
|
() => ({
|
|
3603
3603
|
message: t,
|
|
3604
3604
|
description: r,
|
|
@@ -3608,31 +3608,31 @@ function xo({
|
|
|
3608
3608
|
}),
|
|
3609
3609
|
[t, r, o, n, a]
|
|
3610
3610
|
);
|
|
3611
|
-
return /* @__PURE__ */ s(
|
|
3611
|
+
return /* @__PURE__ */ s(Dt.Provider, { value: i, children: e });
|
|
3612
3612
|
}
|
|
3613
3613
|
function ne() {
|
|
3614
|
-
const e =
|
|
3614
|
+
const e = oe(Dt);
|
|
3615
3615
|
if (e === void 0)
|
|
3616
3616
|
throw new Error("useAlert must be used within a AlertProvider");
|
|
3617
3617
|
return e;
|
|
3618
3618
|
}
|
|
3619
|
-
function
|
|
3619
|
+
function wo({ children: e, className: t, ...r }) {
|
|
3620
3620
|
return /* @__PURE__ */ s(
|
|
3621
3621
|
"div",
|
|
3622
3622
|
{
|
|
3623
|
-
className:
|
|
3623
|
+
className: g("[font-family:var(--alert-font-family,var(--font-family-body))]", t),
|
|
3624
3624
|
"data-slot": "alert-header",
|
|
3625
3625
|
...r,
|
|
3626
3626
|
children: e
|
|
3627
3627
|
}
|
|
3628
3628
|
);
|
|
3629
3629
|
}
|
|
3630
|
-
function
|
|
3630
|
+
function Co({ children: e, className: t, ...r }) {
|
|
3631
3631
|
const { message: o } = ne();
|
|
3632
3632
|
return /* @__PURE__ */ s(
|
|
3633
3633
|
"h5",
|
|
3634
3634
|
{
|
|
3635
|
-
className:
|
|
3635
|
+
className: g(
|
|
3636
3636
|
"text-sm font-normal text-[var(--alert-message-text,hsl(var(--foreground)))]",
|
|
3637
3637
|
t
|
|
3638
3638
|
),
|
|
@@ -3642,12 +3642,12 @@ function ko({ children: e, className: t, ...r }) {
|
|
|
3642
3642
|
}
|
|
3643
3643
|
);
|
|
3644
3644
|
}
|
|
3645
|
-
function
|
|
3645
|
+
function Ao({ className: e, ...t }) {
|
|
3646
3646
|
const { description: r } = ne();
|
|
3647
3647
|
return /* @__PURE__ */ s(
|
|
3648
3648
|
"p",
|
|
3649
3649
|
{
|
|
3650
|
-
className:
|
|
3650
|
+
className: g(
|
|
3651
3651
|
"text-xs font-medium text-[color:var(--alert-description-text,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))]",
|
|
3652
3652
|
e
|
|
3653
3653
|
),
|
|
@@ -3657,8 +3657,8 @@ function wo({ className: e, ...t }) {
|
|
|
3657
3657
|
}
|
|
3658
3658
|
);
|
|
3659
3659
|
}
|
|
3660
|
-
function
|
|
3661
|
-
return /* @__PURE__ */ s("div", { className:
|
|
3660
|
+
function No({ children: e, className: t, ...r }) {
|
|
3661
|
+
return /* @__PURE__ */ s("div", { className: g("flex items-center gap-1", t), "data-slot": "alert-actions", ...r, children: e });
|
|
3662
3662
|
}
|
|
3663
3663
|
/**
|
|
3664
3664
|
* @license lucide-react v0.545.0 - ISC
|
|
@@ -3666,13 +3666,13 @@ function Co({ children: e, className: t, ...r }) {
|
|
|
3666
3666
|
* This source code is licensed under the ISC license.
|
|
3667
3667
|
* See the LICENSE file in the root directory of this source tree.
|
|
3668
3668
|
*/
|
|
3669
|
-
const
|
|
3669
|
+
const Po = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), _o = (e) => e.replace(
|
|
3670
3670
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3671
3671
|
(t, r, o) => o ? o.toUpperCase() : r.toLowerCase()
|
|
3672
|
-
),
|
|
3673
|
-
const t =
|
|
3672
|
+
), rt = (e) => {
|
|
3673
|
+
const t = _o(e);
|
|
3674
3674
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3675
|
-
},
|
|
3675
|
+
}, $t = (...e) => e.filter((t, r, o) => !!t && t.trim() !== "" && o.indexOf(t) === r).join(" ").trim(), Ro = (e) => {
|
|
3676
3676
|
for (const t in e)
|
|
3677
3677
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3678
3678
|
return !0;
|
|
@@ -3683,7 +3683,7 @@ const Ao = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), No = (
|
|
|
3683
3683
|
* This source code is licensed under the ISC license.
|
|
3684
3684
|
* See the LICENSE file in the root directory of this source tree.
|
|
3685
3685
|
*/
|
|
3686
|
-
var
|
|
3686
|
+
var Io = {
|
|
3687
3687
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3688
3688
|
width: 24,
|
|
3689
3689
|
height: 24,
|
|
@@ -3700,7 +3700,7 @@ var _o = {
|
|
|
3700
3700
|
* This source code is licensed under the ISC license.
|
|
3701
3701
|
* See the LICENSE file in the root directory of this source tree.
|
|
3702
3702
|
*/
|
|
3703
|
-
const
|
|
3703
|
+
const So = at(
|
|
3704
3704
|
({
|
|
3705
3705
|
color: e = "currentColor",
|
|
3706
3706
|
size: t = 24,
|
|
@@ -3710,21 +3710,21 @@ const Ro = ot(
|
|
|
3710
3710
|
children: a,
|
|
3711
3711
|
iconNode: i,
|
|
3712
3712
|
...l
|
|
3713
|
-
}, c) =>
|
|
3713
|
+
}, c) => Ae(
|
|
3714
3714
|
"svg",
|
|
3715
3715
|
{
|
|
3716
3716
|
ref: c,
|
|
3717
|
-
...
|
|
3717
|
+
...Io,
|
|
3718
3718
|
width: t,
|
|
3719
3719
|
height: t,
|
|
3720
3720
|
stroke: e,
|
|
3721
3721
|
strokeWidth: o ? Number(r) * 24 / Number(t) : r,
|
|
3722
|
-
className:
|
|
3723
|
-
...!a && !
|
|
3722
|
+
className: $t("lucide", n),
|
|
3723
|
+
...!a && !Ro(l) && { "aria-hidden": "true" },
|
|
3724
3724
|
...l
|
|
3725
3725
|
},
|
|
3726
3726
|
[
|
|
3727
|
-
...i.map(([f, p]) =>
|
|
3727
|
+
...i.map(([f, p]) => Ae(f, p)),
|
|
3728
3728
|
...Array.isArray(a) ? a : [a]
|
|
3729
3729
|
]
|
|
3730
3730
|
)
|
|
@@ -3735,20 +3735,20 @@ const Ro = ot(
|
|
|
3735
3735
|
* This source code is licensed under the ISC license.
|
|
3736
3736
|
* See the LICENSE file in the root directory of this source tree.
|
|
3737
3737
|
*/
|
|
3738
|
-
const
|
|
3739
|
-
const r =
|
|
3740
|
-
({ className: o, ...n }, a) =>
|
|
3738
|
+
const je = (e, t) => {
|
|
3739
|
+
const r = at(
|
|
3740
|
+
({ className: o, ...n }, a) => Ae(So, {
|
|
3741
3741
|
ref: a,
|
|
3742
3742
|
iconNode: t,
|
|
3743
|
-
className:
|
|
3744
|
-
`lucide-${
|
|
3743
|
+
className: $t(
|
|
3744
|
+
`lucide-${Po(rt(e))}`,
|
|
3745
3745
|
`lucide-${e}`,
|
|
3746
3746
|
o
|
|
3747
3747
|
),
|
|
3748
3748
|
...n
|
|
3749
3749
|
})
|
|
3750
3750
|
);
|
|
3751
|
-
return r.displayName =
|
|
3751
|
+
return r.displayName = rt(e), r;
|
|
3752
3752
|
};
|
|
3753
3753
|
/**
|
|
3754
3754
|
* @license lucide-react v0.545.0 - ISC
|
|
@@ -3756,17 +3756,28 @@ const $t = (e, t) => {
|
|
|
3756
3756
|
* This source code is licensed under the ISC license.
|
|
3757
3757
|
* See the LICENSE file in the root directory of this source tree.
|
|
3758
3758
|
*/
|
|
3759
|
-
const
|
|
3759
|
+
const Mo = [
|
|
3760
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
3761
|
+
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
3762
|
+
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
3763
|
+
], Eo = je("circle-alert", Mo);
|
|
3760
3764
|
/**
|
|
3761
3765
|
* @license lucide-react v0.545.0 - ISC
|
|
3762
3766
|
*
|
|
3763
3767
|
* This source code is licensed under the ISC license.
|
|
3764
3768
|
* See the LICENSE file in the root directory of this source tree.
|
|
3765
3769
|
*/
|
|
3766
|
-
const
|
|
3770
|
+
const zo = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], To = je("loader-circle", zo);
|
|
3771
|
+
/**
|
|
3772
|
+
* @license lucide-react v0.545.0 - ISC
|
|
3773
|
+
*
|
|
3774
|
+
* This source code is licensed under the ISC license.
|
|
3775
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3776
|
+
*/
|
|
3777
|
+
const Lo = [
|
|
3767
3778
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3768
3779
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3769
|
-
],
|
|
3780
|
+
], Ge = je("x", Lo);
|
|
3770
3781
|
function Vt({
|
|
3771
3782
|
variant: e = "primary",
|
|
3772
3783
|
size: t = "large",
|
|
@@ -3778,11 +3789,11 @@ function Vt({
|
|
|
3778
3789
|
children: l,
|
|
3779
3790
|
...c
|
|
3780
3791
|
}) {
|
|
3781
|
-
return /* @__PURE__ */
|
|
3792
|
+
return /* @__PURE__ */ E(
|
|
3782
3793
|
"button",
|
|
3783
3794
|
{
|
|
3784
3795
|
"aria-busy": o,
|
|
3785
|
-
className:
|
|
3796
|
+
className: g(
|
|
3786
3797
|
"after:ease-[cubic-bezier(0,0.25,0,1)] relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition-[opacity,transform] after:duration-300 focus-visible:outline-2 focus-visible:outline-[var(--button-focus,hsl(var(--primary)))] disabled:pointer-events-none disabled:opacity-30",
|
|
3787
3798
|
{
|
|
3788
3799
|
primary: "border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))] focus-visible:outline-offset-2",
|
|
@@ -3809,7 +3820,7 @@ function Vt({
|
|
|
3809
3820
|
/* @__PURE__ */ s(
|
|
3810
3821
|
"span",
|
|
3811
3822
|
{
|
|
3812
|
-
className:
|
|
3823
|
+
className: g(
|
|
3813
3824
|
"inline-flex items-center justify-center transition-all duration-300 ease-in-out",
|
|
3814
3825
|
o ? "-translate-y-10 opacity-0" : "translate-y-0 opacity-100",
|
|
3815
3826
|
r === "circle" && "aspect-square",
|
|
@@ -3833,14 +3844,14 @@ function Vt({
|
|
|
3833
3844
|
/* @__PURE__ */ s(
|
|
3834
3845
|
"span",
|
|
3835
3846
|
{
|
|
3836
|
-
className:
|
|
3847
|
+
className: g(
|
|
3837
3848
|
"absolute inset-0 grid place-content-center transition-all duration-300 ease-in-out",
|
|
3838
3849
|
o ? "translate-y-0 opacity-100" : "translate-y-10 opacity-0"
|
|
3839
3850
|
),
|
|
3840
3851
|
children: /* @__PURE__ */ s(
|
|
3841
|
-
|
|
3852
|
+
To,
|
|
3842
3853
|
{
|
|
3843
|
-
className:
|
|
3854
|
+
className: g(
|
|
3844
3855
|
"animate-spin",
|
|
3845
3856
|
e === "tertiary" && "text-[var(--button-loader-icon,hsl(var(--foreground)))]"
|
|
3846
3857
|
)
|
|
@@ -3852,13 +3863,13 @@ function Vt({
|
|
|
3852
3863
|
}
|
|
3853
3864
|
);
|
|
3854
3865
|
}
|
|
3855
|
-
function
|
|
3866
|
+
function Oo({ children: e, ...t }) {
|
|
3856
3867
|
const { action: r } = ne();
|
|
3857
3868
|
if (!r) return null;
|
|
3858
3869
|
const { label: o, onClick: n } = r;
|
|
3859
3870
|
return /* @__PURE__ */ s(Vt, { "data-slot": "alert-button", onClick: n, size: "x-small", variant: "ghost", ...t, children: o });
|
|
3860
3871
|
}
|
|
3861
|
-
function
|
|
3872
|
+
function Bo({ ...e }) {
|
|
3862
3873
|
const { dismiss: t } = ne(), { label: r, onClick: o } = t;
|
|
3863
3874
|
return /* @__PURE__ */ s(
|
|
3864
3875
|
Vt,
|
|
@@ -3870,15 +3881,15 @@ function zo({ ...e }) {
|
|
|
3870
3881
|
size: "x-small",
|
|
3871
3882
|
variant: "ghost",
|
|
3872
3883
|
...e,
|
|
3873
|
-
children: /* @__PURE__ */ s(
|
|
3884
|
+
children: /* @__PURE__ */ s(Ge, { size: 20, strokeWidth: 1 })
|
|
3874
3885
|
}
|
|
3875
3886
|
);
|
|
3876
3887
|
}
|
|
3877
|
-
function
|
|
3888
|
+
function un({ className: e, children: t, ...r }) {
|
|
3878
3889
|
return /* @__PURE__ */ s(
|
|
3879
3890
|
"span",
|
|
3880
3891
|
{
|
|
3881
|
-
className:
|
|
3892
|
+
className: g(
|
|
3882
3893
|
"origin-left font-semibold leading-normal text-[var(--animated-underline-text,hsl(var(--foreground)))] transition-[background-size] duration-300 [background:linear-gradient(0deg,var(--animated-underline-hover,hsl(var(--primary))),var(--animated-underline-hover,hsl(var(--primary))))_no-repeat_left_bottom_/_0_2px] [font-family:var(--animated-underline-font-family,var(--font-family-body))] hover:bg-[size:100%_2px] group-focus/underline:bg-[size:100%_2px]",
|
|
3883
3894
|
e
|
|
3884
3895
|
),
|
|
@@ -3887,7 +3898,7 @@ function on({ className: e, children: t, ...r }) {
|
|
|
3887
3898
|
}
|
|
3888
3899
|
);
|
|
3889
3900
|
}
|
|
3890
|
-
function
|
|
3901
|
+
function fn({
|
|
3891
3902
|
children: e,
|
|
3892
3903
|
shape: t = "rounded",
|
|
3893
3904
|
className: r,
|
|
@@ -3897,7 +3908,7 @@ function nn({
|
|
|
3897
3908
|
return /* @__PURE__ */ s(
|
|
3898
3909
|
"span",
|
|
3899
3910
|
{
|
|
3900
|
-
className:
|
|
3911
|
+
className: g(
|
|
3901
3912
|
"px-2 py-0.5 text-xs uppercase tracking-tighter text-[var(--badge-text,hsl(var(--foreground)))] [font-family:var(--badge-font-family,var(--font-family-mono))]",
|
|
3902
3913
|
{
|
|
3903
3914
|
pill: "rounded-full",
|
|
@@ -3917,25 +3928,25 @@ function nn({
|
|
|
3917
3928
|
}
|
|
3918
3929
|
);
|
|
3919
3930
|
}
|
|
3920
|
-
const
|
|
3931
|
+
const mn = ({
|
|
3921
3932
|
id: e,
|
|
3922
3933
|
children: t,
|
|
3923
3934
|
hideDismiss: r = !1,
|
|
3924
3935
|
className: o,
|
|
3925
3936
|
onDismiss: n
|
|
3926
|
-
}) => /* @__PURE__ */ s(
|
|
3927
|
-
/* @__PURE__ */ s(
|
|
3928
|
-
/* @__PURE__ */ s(
|
|
3929
|
-
] }) }) }),
|
|
3930
|
-
function
|
|
3931
|
-
const [n, a] =
|
|
3932
|
-
|
|
3937
|
+
}) => /* @__PURE__ */ s(Do, { hideDismiss: r, id: e, onDismiss: n, children: /* @__PURE__ */ s($o, { className: o, children: /* @__PURE__ */ E(Vo, { children: [
|
|
3938
|
+
/* @__PURE__ */ s(jo, { children: t }),
|
|
3939
|
+
/* @__PURE__ */ s(Go, {})
|
|
3940
|
+
] }) }) }), jt = te(void 0);
|
|
3941
|
+
function Do({ id: e, hideDismiss: t, onDismiss: r, children: o }) {
|
|
3942
|
+
const [n, a] = Ce(!1), [i, l] = Ce(!1);
|
|
3943
|
+
nt(() => {
|
|
3933
3944
|
const p = localStorage.getItem(`${e}-hidden-banner`) === "true";
|
|
3934
3945
|
a(p), l(!0);
|
|
3935
3946
|
}, [e]);
|
|
3936
|
-
const c =
|
|
3947
|
+
const c = qt(() => {
|
|
3937
3948
|
a(!0), localStorage.setItem(`${e}-hidden-banner`, "true"), r?.();
|
|
3938
|
-
}, [e, r]), f =
|
|
3949
|
+
}, [e, r]), f = re(
|
|
3939
3950
|
() => ({
|
|
3940
3951
|
id: e,
|
|
3941
3952
|
isInitialized: i,
|
|
@@ -3945,20 +3956,20 @@ function To({ id: e, hideDismiss: t, onDismiss: r, children: o }) {
|
|
|
3945
3956
|
}),
|
|
3946
3957
|
[e, i, n, t, c]
|
|
3947
3958
|
);
|
|
3948
|
-
return /* @__PURE__ */ s(
|
|
3959
|
+
return /* @__PURE__ */ s(jt.Provider, { value: f, children: i ? o : null });
|
|
3949
3960
|
}
|
|
3950
|
-
function
|
|
3951
|
-
const e =
|
|
3961
|
+
function Gt() {
|
|
3962
|
+
const e = oe(jt);
|
|
3952
3963
|
if (e === void 0)
|
|
3953
3964
|
throw new Error("useBanner must be used within a BannerProvider");
|
|
3954
3965
|
return e;
|
|
3955
3966
|
}
|
|
3956
|
-
function
|
|
3957
|
-
const { id: o, isDismissed: n } =
|
|
3967
|
+
function $o({ children: e, className: t, ...r }) {
|
|
3968
|
+
const { id: o, isDismissed: n } = Gt();
|
|
3958
3969
|
return /* @__PURE__ */ s(
|
|
3959
3970
|
"div",
|
|
3960
3971
|
{
|
|
3961
|
-
className:
|
|
3972
|
+
className: g(
|
|
3962
3973
|
"overflow-hidden bg-[var(--banner-background,hsl(var(--primary)))] transition-all duration-300 ease-in @container",
|
|
3963
3974
|
n ? "pointer-events-none max-h-0" : "max-h-32",
|
|
3964
3975
|
t
|
|
@@ -3970,21 +3981,21 @@ function Oo({ children: e, className: t, ...r }) {
|
|
|
3970
3981
|
}
|
|
3971
3982
|
);
|
|
3972
3983
|
}
|
|
3973
|
-
function
|
|
3984
|
+
function Vo({ className: e, children: t }) {
|
|
3974
3985
|
return /* @__PURE__ */ s(
|
|
3975
3986
|
"div",
|
|
3976
3987
|
{
|
|
3977
|
-
className:
|
|
3988
|
+
className: g("flex items-center justify-between gap-4 px-8 py-3", e),
|
|
3978
3989
|
"data-slot": "banner-content",
|
|
3979
3990
|
children: t
|
|
3980
3991
|
}
|
|
3981
3992
|
);
|
|
3982
3993
|
}
|
|
3983
|
-
function
|
|
3994
|
+
function jo({ children: e, className: t, ...r }) {
|
|
3984
3995
|
return /* @__PURE__ */ s(
|
|
3985
3996
|
"div",
|
|
3986
3997
|
{
|
|
3987
|
-
className:
|
|
3998
|
+
className: g(
|
|
3988
3999
|
"flex-1 text-sm text-[var(--banner-text,hsl(var(--foreground)))] [font-family:var(--banner-font-family,var(--font-family-body))] @xl:text-center @xl:text-base",
|
|
3989
4000
|
t
|
|
3990
4001
|
),
|
|
@@ -3994,13 +4005,13 @@ function Lo({ children: e, className: t, ...r }) {
|
|
|
3994
4005
|
}
|
|
3995
4006
|
);
|
|
3996
4007
|
}
|
|
3997
|
-
function
|
|
3998
|
-
const { hideDismiss: r, handleDismiss: o } =
|
|
4008
|
+
function Go({ className: e, ...t }) {
|
|
4009
|
+
const { hideDismiss: r, handleDismiss: o } = Gt();
|
|
3999
4010
|
return r ? null : /* @__PURE__ */ s(
|
|
4000
4011
|
"button",
|
|
4001
4012
|
{
|
|
4002
4013
|
"aria-label": "Dismiss banner",
|
|
4003
|
-
className:
|
|
4014
|
+
className: g(
|
|
4004
4015
|
"flex h-8 w-8 items-center justify-center rounded-full bg-[var(--banner-close-background,transparent)] text-[var(--banner-close-icon,color-mix(in_oklab,hsl(var(--foreground))_50%,transparent))] transition-colors duration-300 hover:bg-[var(--banner-close-background-hover,color-mix(in_oklab,hsl(var(--background))_40%,transparent))] hover:text-[var(--banner-close-icon-hover,hsl(var(--foreground)))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--banner-focus,hsl(var(--foreground)))]",
|
|
4005
4016
|
e
|
|
4006
4017
|
),
|
|
@@ -4009,11 +4020,11 @@ function Do({ className: e, ...t }) {
|
|
|
4009
4020
|
n.preventDefault(), o();
|
|
4010
4021
|
},
|
|
4011
4022
|
...t,
|
|
4012
|
-
children: /* @__PURE__ */ s(
|
|
4023
|
+
children: /* @__PURE__ */ s(Ge, { absoluteStrokeWidth: !0, size: 20, strokeWidth: 1.5 })
|
|
4013
4024
|
}
|
|
4014
4025
|
);
|
|
4015
4026
|
}
|
|
4016
|
-
function
|
|
4027
|
+
function pn({
|
|
4017
4028
|
author: e,
|
|
4018
4029
|
content: t,
|
|
4019
4030
|
date: r,
|
|
@@ -4023,7 +4034,7 @@ function sn({
|
|
|
4023
4034
|
className: i
|
|
4024
4035
|
}) {
|
|
4025
4036
|
return /* @__PURE__ */ s(
|
|
4026
|
-
|
|
4037
|
+
Fo,
|
|
4027
4038
|
{
|
|
4028
4039
|
author: e,
|
|
4029
4040
|
content: t,
|
|
@@ -4031,21 +4042,21 @@ function sn({
|
|
|
4031
4042
|
image: n,
|
|
4032
4043
|
link: o,
|
|
4033
4044
|
title: a,
|
|
4034
|
-
children: /* @__PURE__ */
|
|
4035
|
-
/* @__PURE__ */ s(
|
|
4036
|
-
/* @__PURE__ */ s(
|
|
4037
|
-
/* @__PURE__ */ s(
|
|
4038
|
-
/* @__PURE__ */
|
|
4039
|
-
/* @__PURE__ */ s(
|
|
4040
|
-
/* @__PURE__ */ s(
|
|
4045
|
+
children: /* @__PURE__ */ E(Uo, { className: i, children: [
|
|
4046
|
+
/* @__PURE__ */ s(Wo, {}),
|
|
4047
|
+
/* @__PURE__ */ s(qo, {}),
|
|
4048
|
+
/* @__PURE__ */ s(Ko, {}),
|
|
4049
|
+
/* @__PURE__ */ E(Zo, { children: [
|
|
4050
|
+
/* @__PURE__ */ s(Xo, {}),
|
|
4051
|
+
/* @__PURE__ */ s(Jo, {})
|
|
4041
4052
|
] }),
|
|
4042
|
-
/* @__PURE__ */ s(
|
|
4053
|
+
/* @__PURE__ */ s(Ho, {})
|
|
4043
4054
|
] })
|
|
4044
4055
|
}
|
|
4045
4056
|
);
|
|
4046
4057
|
}
|
|
4047
|
-
const
|
|
4048
|
-
function
|
|
4058
|
+
const Ft = te(void 0);
|
|
4059
|
+
function Fo({
|
|
4049
4060
|
children: e,
|
|
4050
4061
|
title: t,
|
|
4051
4062
|
author: r,
|
|
@@ -4054,7 +4065,7 @@ function $o({
|
|
|
4054
4065
|
image: a,
|
|
4055
4066
|
link: i
|
|
4056
4067
|
}) {
|
|
4057
|
-
const l =
|
|
4068
|
+
const l = re(
|
|
4058
4069
|
() => ({
|
|
4059
4070
|
title: t,
|
|
4060
4071
|
author: r,
|
|
@@ -4065,15 +4076,15 @@ function $o({
|
|
|
4065
4076
|
}),
|
|
4066
4077
|
[t, r, o, n, a, i]
|
|
4067
4078
|
);
|
|
4068
|
-
return /* @__PURE__ */ s(
|
|
4079
|
+
return /* @__PURE__ */ s(Ft.Provider, { value: l, children: e });
|
|
4069
4080
|
}
|
|
4070
|
-
function
|
|
4071
|
-
const e =
|
|
4081
|
+
function X() {
|
|
4082
|
+
const e = oe(Ft);
|
|
4072
4083
|
if (e === void 0)
|
|
4073
4084
|
throw new Error("useBlogPostCard must be used within a BlogPostCardProvider");
|
|
4074
4085
|
return e;
|
|
4075
4086
|
}
|
|
4076
|
-
function
|
|
4087
|
+
function Uo({
|
|
4077
4088
|
as: e,
|
|
4078
4089
|
className: t,
|
|
4079
4090
|
children: r,
|
|
@@ -4082,7 +4093,7 @@ function Vo({
|
|
|
4082
4093
|
return /* @__PURE__ */ s(
|
|
4083
4094
|
e ?? "article",
|
|
4084
4095
|
{
|
|
4085
|
-
className:
|
|
4096
|
+
className: g(
|
|
4086
4097
|
"group relative w-full max-w-md @container [font-family:var(--blog-post-card-font-family,var(--font-family-body))]",
|
|
4087
4098
|
t
|
|
4088
4099
|
),
|
|
@@ -4092,11 +4103,11 @@ function Vo({
|
|
|
4092
4103
|
}
|
|
4093
4104
|
);
|
|
4094
4105
|
}
|
|
4095
|
-
function
|
|
4106
|
+
function gn({ children: e, className: t, ...r }) {
|
|
4096
4107
|
return /* @__PURE__ */ s(
|
|
4097
4108
|
"div",
|
|
4098
4109
|
{
|
|
4099
|
-
className:
|
|
4110
|
+
className: g(
|
|
4100
4111
|
"p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",
|
|
4101
4112
|
t
|
|
4102
4113
|
),
|
|
@@ -4105,13 +4116,13 @@ function ln({ children: e, className: t, ...r }) {
|
|
|
4105
4116
|
}
|
|
4106
4117
|
);
|
|
4107
4118
|
}
|
|
4108
|
-
function
|
|
4109
|
-
const { image: r, title: o } =
|
|
4119
|
+
function Wo({ className: e, ...t }) {
|
|
4120
|
+
const { image: r, title: o } = X(), n = "h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110", a = () => {
|
|
4110
4121
|
if (!r)
|
|
4111
4122
|
return /* @__PURE__ */ s(
|
|
4112
4123
|
"div",
|
|
4113
4124
|
{
|
|
4114
|
-
className:
|
|
4125
|
+
className: g(
|
|
4115
4126
|
"p-4 text-5xl font-bold leading-none tracking-tighter [color:var(--blog-post-card-empty-text,color-mix(in_oklab,hsl(var(--foreground))_15%,transparent))]",
|
|
4116
4127
|
e
|
|
4117
4128
|
),
|
|
@@ -4125,7 +4136,7 @@ function Go({ className: e, ...t }) {
|
|
|
4125
4136
|
return /* @__PURE__ */ s(
|
|
4126
4137
|
"div",
|
|
4127
4138
|
{
|
|
4128
|
-
className:
|
|
4139
|
+
className: g(
|
|
4129
4140
|
"relative aspect-[4/3] w-full overflow-hidden rounded-2xl bg-[var(--blog-post-card-image-background,hsl(var(--contrast-100)))]",
|
|
4130
4141
|
e
|
|
4131
4142
|
),
|
|
@@ -4134,21 +4145,21 @@ function Go({ className: e, ...t }) {
|
|
|
4134
4145
|
}
|
|
4135
4146
|
);
|
|
4136
4147
|
}
|
|
4137
|
-
function
|
|
4148
|
+
function Ho({ className: e, ...t }) {
|
|
4138
4149
|
const {
|
|
4139
4150
|
link: { href: r, ariaLabel: o, render: n }
|
|
4140
|
-
} =
|
|
4151
|
+
} = X(), a = g(
|
|
4141
4152
|
"absolute inset-0 rounded-b-lg rounded-t-2xl focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--blog-post-card-focus,hsl(var(--primary)))] focus-visible:ring-offset-4",
|
|
4142
4153
|
e
|
|
4143
4154
|
);
|
|
4144
4155
|
return n ? n({ href: r, ariaLabel: o, className: a, ...t }) : /* @__PURE__ */ s("a", { className: a, href: r, ...t, children: /* @__PURE__ */ s("span", { className: "sr-only", children: o }) });
|
|
4145
4156
|
}
|
|
4146
|
-
function
|
|
4147
|
-
const { title: r } =
|
|
4157
|
+
function qo({ className: e, ...t }) {
|
|
4158
|
+
const { title: r } = X();
|
|
4148
4159
|
return /* @__PURE__ */ s(
|
|
4149
4160
|
"h5",
|
|
4150
4161
|
{
|
|
4151
|
-
className:
|
|
4162
|
+
className: g(
|
|
4152
4163
|
"mt-4 text-lg font-medium leading-snug text-[var(--blog-post-card-title-text,hsl(var(--foreground)))]",
|
|
4153
4164
|
e
|
|
4154
4165
|
),
|
|
@@ -4158,12 +4169,12 @@ function Uo({ className: e, ...t }) {
|
|
|
4158
4169
|
}
|
|
4159
4170
|
);
|
|
4160
4171
|
}
|
|
4161
|
-
function
|
|
4162
|
-
const { content: r } =
|
|
4172
|
+
function Ko({ className: e, ...t }) {
|
|
4173
|
+
const { content: r } = X();
|
|
4163
4174
|
return /* @__PURE__ */ s(
|
|
4164
4175
|
"p",
|
|
4165
4176
|
{
|
|
4166
|
-
className:
|
|
4177
|
+
className: g(
|
|
4167
4178
|
"mt-1.5 line-clamp-3 text-sm font-normal text-[var(--blog-post-card-content-text,hsl(var(--contrast-400)))]",
|
|
4168
4179
|
e
|
|
4169
4180
|
),
|
|
@@ -4173,11 +4184,11 @@ function Fo({ className: e, ...t }) {
|
|
|
4173
4184
|
}
|
|
4174
4185
|
);
|
|
4175
4186
|
}
|
|
4176
|
-
function
|
|
4187
|
+
function Zo({ children: e, className: t, ...r }) {
|
|
4177
4188
|
return /* @__PURE__ */ s(
|
|
4178
4189
|
"div",
|
|
4179
4190
|
{
|
|
4180
|
-
className:
|
|
4191
|
+
className: g(
|
|
4181
4192
|
"mt-3 text-sm text-[var(--blog-post-card-author-date-text,hsl(var(--foreground)))]",
|
|
4182
4193
|
t
|
|
4183
4194
|
),
|
|
@@ -4187,22 +4198,22 @@ function Wo({ children: e, className: t, ...r }) {
|
|
|
4187
4198
|
}
|
|
4188
4199
|
);
|
|
4189
4200
|
}
|
|
4190
|
-
function
|
|
4191
|
-
const { date: r } =
|
|
4201
|
+
function Xo({ className: e, ...t }) {
|
|
4202
|
+
const { date: r } = X();
|
|
4192
4203
|
return /* @__PURE__ */ s("time", { dateTime: r, ...t, "data-slot": "blog-post-card-date", children: new Date(r).toLocaleDateString("en-US", {
|
|
4193
4204
|
year: "numeric",
|
|
4194
4205
|
month: "long",
|
|
4195
4206
|
day: "numeric"
|
|
4196
4207
|
}) });
|
|
4197
4208
|
}
|
|
4198
|
-
function
|
|
4199
|
-
const { author: r } =
|
|
4209
|
+
function Jo({ className: e, ...t }) {
|
|
4210
|
+
const { author: r } = X();
|
|
4200
4211
|
if (r != null)
|
|
4201
|
-
return /* @__PURE__ */
|
|
4212
|
+
return /* @__PURE__ */ E(ot, { children: [
|
|
4202
4213
|
/* @__PURE__ */ s(
|
|
4203
4214
|
"span",
|
|
4204
4215
|
{
|
|
4205
|
-
className:
|
|
4216
|
+
className: g("after:mx-2 after:content-['•']", e),
|
|
4206
4217
|
"data-slot": "blog-post-card-author",
|
|
4207
4218
|
...t
|
|
4208
4219
|
}
|
|
@@ -4210,11 +4221,11 @@ function qo({ className: e, ...t }) {
|
|
|
4210
4221
|
/* @__PURE__ */ s("span", { children: r })
|
|
4211
4222
|
] });
|
|
4212
4223
|
}
|
|
4213
|
-
function
|
|
4224
|
+
function Ut({ className: e, ...t }) {
|
|
4214
4225
|
return /* @__PURE__ */ s(
|
|
4215
4226
|
"div",
|
|
4216
4227
|
{
|
|
4217
|
-
className:
|
|
4228
|
+
className: g(
|
|
4218
4229
|
"bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]",
|
|
4219
4230
|
e
|
|
4220
4231
|
),
|
|
@@ -4223,17 +4234,17 @@ function Ft({ className: e, ...t }) {
|
|
|
4223
4234
|
}
|
|
4224
4235
|
);
|
|
4225
4236
|
}
|
|
4226
|
-
function
|
|
4237
|
+
function Y({ characterCount: e = 10, className: t, ...r }) {
|
|
4227
4238
|
return /* @__PURE__ */ s(
|
|
4228
4239
|
"div",
|
|
4229
4240
|
{
|
|
4230
|
-
className:
|
|
4241
|
+
className: g("flex h-[1lh] items-center", t),
|
|
4231
4242
|
"data-slot": "skeleton-text",
|
|
4232
4243
|
...r,
|
|
4233
4244
|
children: /* @__PURE__ */ s(
|
|
4234
4245
|
"div",
|
|
4235
4246
|
{
|
|
4236
|
-
className:
|
|
4247
|
+
className: g(
|
|
4237
4248
|
"h-[1ex] max-w-full rounded-[inherit] bg-[var(--skeleton,color-mix(in_oklab,hsl(var(--contrast-300))_15%,transparent))]"
|
|
4238
4249
|
),
|
|
4239
4250
|
style: { width: e === "full" ? "100%" : `${e}ch` }
|
|
@@ -4242,16 +4253,16 @@ function J({ characterCount: e = 10, className: t, ...r }) {
|
|
|
4242
4253
|
}
|
|
4243
4254
|
);
|
|
4244
4255
|
}
|
|
4245
|
-
function
|
|
4256
|
+
function bn({
|
|
4246
4257
|
className: e,
|
|
4247
4258
|
aspectRatio: t = "4:3",
|
|
4248
4259
|
...r
|
|
4249
4260
|
}) {
|
|
4250
|
-
return /* @__PURE__ */
|
|
4261
|
+
return /* @__PURE__ */ E("div", { className: g("w-full max-w-md @container", e), ...r, children: [
|
|
4251
4262
|
/* @__PURE__ */ s(
|
|
4252
|
-
|
|
4263
|
+
Ut,
|
|
4253
4264
|
{
|
|
4254
|
-
className:
|
|
4265
|
+
className: g(
|
|
4255
4266
|
"mb-4 w-full rounded-2xl",
|
|
4256
4267
|
{
|
|
4257
4268
|
"5:6": "aspect-[5/6]",
|
|
@@ -4262,16 +4273,16 @@ function cn({
|
|
|
4262
4273
|
)
|
|
4263
4274
|
}
|
|
4264
4275
|
),
|
|
4265
|
-
/* @__PURE__ */ s(
|
|
4266
|
-
/* @__PURE__ */
|
|
4267
|
-
/* @__PURE__ */ s(
|
|
4268
|
-
/* @__PURE__ */ s(
|
|
4269
|
-
/* @__PURE__ */ s(
|
|
4276
|
+
/* @__PURE__ */ s(Y, { characterCount: 25, className: "mt-4 rounded text-lg" }),
|
|
4277
|
+
/* @__PURE__ */ E("div", { className: "mt-1.5", children: [
|
|
4278
|
+
/* @__PURE__ */ s(Y, { characterCount: "full", className: "rounded text-sm" }),
|
|
4279
|
+
/* @__PURE__ */ s(Y, { characterCount: "full", className: "rounded text-sm" }),
|
|
4280
|
+
/* @__PURE__ */ s(Y, { characterCount: 15, className: "rounded text-sm" })
|
|
4270
4281
|
] }),
|
|
4271
|
-
/* @__PURE__ */ s(
|
|
4282
|
+
/* @__PURE__ */ s(Y, { characterCount: 10, className: "mt-3 rounded text-sm" })
|
|
4272
4283
|
] });
|
|
4273
4284
|
}
|
|
4274
|
-
function
|
|
4285
|
+
function hn({
|
|
4275
4286
|
variant: e = "primary",
|
|
4276
4287
|
size: t = "large",
|
|
4277
4288
|
shape: r = "pill",
|
|
@@ -4280,7 +4291,7 @@ function dn({
|
|
|
4280
4291
|
render: a,
|
|
4281
4292
|
...i
|
|
4282
4293
|
}) {
|
|
4283
|
-
const l =
|
|
4294
|
+
const l = g(
|
|
4284
4295
|
"relative z-0 inline-flex h-fit select-none items-center justify-center overflow-hidden border text-center font-semibold leading-normal [font-family:var(--button-font-family,var(--font-family-body))] after:absolute after:inset-0 after:-z-10 after:-translate-x-[105%] after:transition after:duration-300 after:[animation-timing-function:cubic-bezier(0,0.25,0,1)] hover:after:translate-x-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--button-focus,hsl(var(--primary)))] focus-visible:ring-offset-2",
|
|
4285
4296
|
{
|
|
4286
4297
|
primary: "border-[var(--button-primary-border,hsl(var(--primary)))] bg-[var(--button-primary-background,hsl(var(--primary)))] text-[var(--button-primary-text,hsl(var(--foreground)))] after:bg-[var(--button-primary-background-hover,color-mix(in_oklab,hsl(var(--primary)),white_75%))]",
|
|
@@ -4298,7 +4309,7 @@ function dn({
|
|
|
4298
4309
|
), c = /* @__PURE__ */ s(
|
|
4299
4310
|
"span",
|
|
4300
4311
|
{
|
|
4301
|
-
className:
|
|
4312
|
+
className: g(
|
|
4302
4313
|
"inline-flex items-center justify-center",
|
|
4303
4314
|
r === "circle" && "aspect-square",
|
|
4304
4315
|
{
|
|
@@ -4325,23 +4336,23 @@ function dn({
|
|
|
4325
4336
|
children: c
|
|
4326
4337
|
}) : /* @__PURE__ */ s("a", { ...i, className: l, children: c });
|
|
4327
4338
|
}
|
|
4328
|
-
return /* @__PURE__ */ s(
|
|
4339
|
+
return /* @__PURE__ */ s(ot, { children: f() });
|
|
4329
4340
|
}
|
|
4330
|
-
function
|
|
4331
|
-
return /* @__PURE__ */
|
|
4341
|
+
function vn({ as: e, className: t, children: r, link: o, ...n }) {
|
|
4342
|
+
return /* @__PURE__ */ E(Qo, { as: e, className: t, ...n, children: [
|
|
4332
4343
|
r,
|
|
4333
|
-
/* @__PURE__ */ s(
|
|
4344
|
+
/* @__PURE__ */ s(Yo, { link: o })
|
|
4334
4345
|
] });
|
|
4335
4346
|
}
|
|
4336
|
-
function
|
|
4347
|
+
function Yo({ link: e }) {
|
|
4337
4348
|
if (!e) return null;
|
|
4338
|
-
const { href: t, ariaLabel: r, render: o } = e, n =
|
|
4349
|
+
const { href: t, ariaLabel: r, render: o } = e, n = g(
|
|
4339
4350
|
"absolute inset-0 rounded-2xl",
|
|
4340
4351
|
"focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--card-focus,hsl(var(--primary)))]"
|
|
4341
4352
|
);
|
|
4342
4353
|
return o ? o({ href: t, ariaLabel: r, className: n }) : /* @__PURE__ */ s("a", { className: n, "data-slot": "card-link", href: t, children: /* @__PURE__ */ s("span", { className: "sr-only", children: r }) });
|
|
4343
4354
|
}
|
|
4344
|
-
function
|
|
4355
|
+
function Qo({
|
|
4345
4356
|
as: e,
|
|
4346
4357
|
className: t,
|
|
4347
4358
|
children: r
|
|
@@ -4349,7 +4360,7 @@ function Zo({
|
|
|
4349
4360
|
return /* @__PURE__ */ s(
|
|
4350
4361
|
e ?? "div",
|
|
4351
4362
|
{
|
|
4352
|
-
className:
|
|
4363
|
+
className: g(
|
|
4353
4364
|
"group/card relative w-full rounded-2xl border p-6 @container",
|
|
4354
4365
|
"border-[var(--card-border-color,hsl(var(--contrast-200)))] bg-[var(--card-background,hsl(var(--background)))] has-[a]:hover:bg-[var(--card-hover-background,color-mix(in_oklab,hsl(var(--contrast-100))_50%,transparent))]",
|
|
4355
4366
|
"transition-colors duration-300 ease-linear",
|
|
@@ -4360,20 +4371,20 @@ function Zo({
|
|
|
4360
4371
|
}
|
|
4361
4372
|
);
|
|
4362
4373
|
}
|
|
4363
|
-
function
|
|
4364
|
-
return /* @__PURE__ */ s("div", { className:
|
|
4374
|
+
function xn({ className: e, ...t }) {
|
|
4375
|
+
return /* @__PURE__ */ s("div", { className: g("@container", e), ...t, children: /* @__PURE__ */ s(Ut, {}) });
|
|
4365
4376
|
}
|
|
4366
|
-
function
|
|
4367
|
-
return /* @__PURE__ */
|
|
4377
|
+
function yn({ className: e, children: t, removeLabel: r = "Remove", ...o }) {
|
|
4378
|
+
return /* @__PURE__ */ E(en, { className: e, children: [
|
|
4368
4379
|
t,
|
|
4369
|
-
/* @__PURE__ */ s(
|
|
4380
|
+
/* @__PURE__ */ s(tn, { title: r, ...o })
|
|
4370
4381
|
] });
|
|
4371
4382
|
}
|
|
4372
|
-
function
|
|
4383
|
+
function en({ children: e, className: t, ...r }) {
|
|
4373
4384
|
return /* @__PURE__ */ s(
|
|
4374
4385
|
"span",
|
|
4375
4386
|
{
|
|
4376
|
-
className:
|
|
4387
|
+
className: g(
|
|
4377
4388
|
"flex h-9 items-center gap-1.5 rounded-lg bg-[var(--chip-background,hsl(var(--contrast-100)))] py-2 pe-2 ps-3 text-sm font-semibold leading-5 text-[var(--chip-text,hsl(var(--foreground)))] [font-family:var(--chip-font-family,var(--font-family-body))]",
|
|
4378
4389
|
t
|
|
4379
4390
|
),
|
|
@@ -4382,67 +4393,168 @@ function Xo({ children: e, className: t, ...r }) {
|
|
|
4382
4393
|
}
|
|
4383
4394
|
);
|
|
4384
4395
|
}
|
|
4385
|
-
function
|
|
4396
|
+
function tn({ className: e, ...t }) {
|
|
4386
4397
|
return /* @__PURE__ */ s(
|
|
4387
4398
|
"button",
|
|
4388
4399
|
{
|
|
4389
|
-
className:
|
|
4400
|
+
className: g(
|
|
4390
4401
|
"flex h-5 w-5 items-center justify-center rounded-full hover:bg-[var(--chip-background-hover,hsl(var(--contrast-200)))] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--button-focus,hsl(var(--foreground)))]",
|
|
4391
4402
|
e
|
|
4392
4403
|
),
|
|
4393
4404
|
...t,
|
|
4394
|
-
children: /* @__PURE__ */ s(
|
|
4405
|
+
children: /* @__PURE__ */ s(Ge, { size: 12 })
|
|
4406
|
+
}
|
|
4407
|
+
);
|
|
4408
|
+
}
|
|
4409
|
+
function kn({ checked: e = !1, setChecked: t }) {
|
|
4410
|
+
return /* @__PURE__ */ s(on, { onPressedChange: t, pressed: e, children: /* @__PURE__ */ s(nn, { filled: e }) });
|
|
4411
|
+
}
|
|
4412
|
+
var Wt = "Toggle", Ht = m.forwardRef((e, t) => {
|
|
4413
|
+
const { pressed: r, defaultPressed: o, onPressedChange: n, ...a } = e, [i, l] = pe({
|
|
4414
|
+
prop: r,
|
|
4415
|
+
onChange: n,
|
|
4416
|
+
defaultProp: o ?? !1,
|
|
4417
|
+
caller: Wt
|
|
4418
|
+
});
|
|
4419
|
+
return /* @__PURE__ */ s(
|
|
4420
|
+
q.button,
|
|
4421
|
+
{
|
|
4422
|
+
type: "button",
|
|
4423
|
+
"aria-pressed": i,
|
|
4424
|
+
"data-state": i ? "on" : "off",
|
|
4425
|
+
"data-disabled": e.disabled ? "" : void 0,
|
|
4426
|
+
...a,
|
|
4427
|
+
ref: t,
|
|
4428
|
+
onClick: Me(e.onClick, () => {
|
|
4429
|
+
e.disabled || l(!i);
|
|
4430
|
+
})
|
|
4431
|
+
}
|
|
4432
|
+
);
|
|
4433
|
+
});
|
|
4434
|
+
Ht.displayName = Wt;
|
|
4435
|
+
var rn = Ht;
|
|
4436
|
+
function on({ children: e, className: t, ...r }) {
|
|
4437
|
+
return /* @__PURE__ */ s(
|
|
4438
|
+
rn,
|
|
4439
|
+
{
|
|
4440
|
+
className: g(
|
|
4441
|
+
"group relative flex h-[50px] w-[50px] shrink-0 cursor-pointer items-center justify-center rounded-full border border-[var(--favorite-border,hsl(var(--contrast-100)))] text-[var(--favorite-icon,hsl(var(--foreground)))] ring-[var(--favorite-focus,hsl(var(--primary)))] transition duration-300 focus-within:outline-none focus-within:ring-2 data-[state=on]:bg-[var(--favorite-on-background,hsl(var(--contrast-100)))] data-[state=off]:hover:border-[var(--favorite-off-border,hsl(var(--contrast-200)))]",
|
|
4442
|
+
t
|
|
4443
|
+
),
|
|
4444
|
+
...r,
|
|
4445
|
+
children: e
|
|
4446
|
+
}
|
|
4447
|
+
);
|
|
4448
|
+
}
|
|
4449
|
+
function nn({ filled: e = !1, className: t, ...r }) {
|
|
4450
|
+
return /* @__PURE__ */ E(
|
|
4451
|
+
"svg",
|
|
4452
|
+
{
|
|
4453
|
+
className: g(
|
|
4454
|
+
"transform-gpu transition-transform duration-300 ease-out group-active:scale-75 group-active:animate-heart-pulse sm:group-hover:scale-110",
|
|
4455
|
+
t
|
|
4456
|
+
),
|
|
4457
|
+
fill: "none",
|
|
4458
|
+
height: "21",
|
|
4459
|
+
viewBox: "0 0 20 21",
|
|
4460
|
+
width: "20",
|
|
4461
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4462
|
+
...r,
|
|
4463
|
+
children: [
|
|
4464
|
+
/* @__PURE__ */ s(
|
|
4465
|
+
"path",
|
|
4466
|
+
{
|
|
4467
|
+
className: g({
|
|
4468
|
+
"-translate-x-px -translate-y-px scale-110 opacity-0 transition delay-100": e
|
|
4469
|
+
}),
|
|
4470
|
+
d: "M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z",
|
|
4471
|
+
stroke: "currentColor",
|
|
4472
|
+
strokeLinecap: "round",
|
|
4473
|
+
strokeLinejoin: "round"
|
|
4474
|
+
}
|
|
4475
|
+
),
|
|
4476
|
+
/* @__PURE__ */ s(
|
|
4477
|
+
"path",
|
|
4478
|
+
{
|
|
4479
|
+
className: g(
|
|
4480
|
+
"origin-center transition-transform duration-300 ease-out",
|
|
4481
|
+
e ? "scale-100 fill-current" : "scale-0"
|
|
4482
|
+
),
|
|
4483
|
+
d: "M17.3666 4.34166C16.941 3.91583 16.4356 3.57803 15.8794 3.34757C15.3232 3.1171 14.727 2.99847 14.1249 2.99847C13.5229 2.99847 12.9267 3.1171 12.3705 3.34757C11.8143 3.57803 11.3089 3.91583 10.8833 4.34166L9.99994 5.225L9.1166 4.34166C8.25686 3.48192 7.0908 2.99892 5.87494 2.99892C4.65908 2.99892 3.49301 3.48192 2.63327 4.34166C1.77353 5.20141 1.29053 6.36747 1.29053 7.58333C1.29053 8.79919 1.77353 9.96525 2.63327 10.825L3.5166 11.7083L9.99994 18.1917L16.4833 11.7083L17.3666 10.825C17.7924 10.3994 18.1302 9.89401 18.3607 9.33779C18.5912 8.78158 18.7098 8.1854 18.7098 7.58333C18.7098 6.98126 18.5912 6.38508 18.3607 5.82887C18.1302 5.27265 17.7924 4.76729 17.3666 4.34166Z"
|
|
4484
|
+
}
|
|
4485
|
+
)
|
|
4486
|
+
]
|
|
4487
|
+
}
|
|
4488
|
+
);
|
|
4489
|
+
}
|
|
4490
|
+
function wn({ className: e, children: t, ...r }) {
|
|
4491
|
+
return /* @__PURE__ */ E(
|
|
4492
|
+
"div",
|
|
4493
|
+
{
|
|
4494
|
+
className: g(
|
|
4495
|
+
"flex items-center gap-1 text-xs text-[var(--field-error,hsl(var(--error)))]",
|
|
4496
|
+
e
|
|
4497
|
+
),
|
|
4498
|
+
...r,
|
|
4499
|
+
children: [
|
|
4500
|
+
/* @__PURE__ */ s(Eo, { size: 20, strokeWidth: 1.5 }),
|
|
4501
|
+
t
|
|
4502
|
+
]
|
|
4395
4503
|
}
|
|
4396
4504
|
);
|
|
4397
4505
|
}
|
|
4398
4506
|
export {
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4507
|
+
cn as Accordion,
|
|
4508
|
+
bo as AccordionContent,
|
|
4509
|
+
po as AccordionItem,
|
|
4510
|
+
vo as AccordionItemProvider,
|
|
4511
|
+
ho as AccordionProvider,
|
|
4512
|
+
go as AccordionRoot,
|
|
4513
|
+
xo as AccordionTrigger,
|
|
4514
|
+
dn as Alert,
|
|
4515
|
+
No as AlertActions,
|
|
4516
|
+
Oo as AlertButton,
|
|
4517
|
+
Bo as AlertCloseButton,
|
|
4518
|
+
Ao as AlertDescription,
|
|
4519
|
+
wo as AlertHeader,
|
|
4520
|
+
yo as AlertRoot,
|
|
4521
|
+
Co as AlertTitle,
|
|
4522
|
+
un as AnimatedUnderline,
|
|
4523
|
+
fn as Badge,
|
|
4524
|
+
mn as Banner,
|
|
4525
|
+
Vo as BannerContent,
|
|
4526
|
+
Go as BannerDismiss,
|
|
4527
|
+
Do as BannerProvider,
|
|
4528
|
+
$o as BannerRoot,
|
|
4529
|
+
jo as BannerText,
|
|
4530
|
+
pn as BlogPostCard,
|
|
4531
|
+
Jo as BlogPostCardAuthor,
|
|
4532
|
+
Ko as BlogPostCardContent,
|
|
4533
|
+
Xo as BlogPostCardDate,
|
|
4534
|
+
Zo as BlogPostCardDetails,
|
|
4535
|
+
gn as BlogPostCardFallback,
|
|
4536
|
+
Wo as BlogPostCardImage,
|
|
4537
|
+
Ho as BlogPostCardLink,
|
|
4538
|
+
Fo as BlogPostCardProvider,
|
|
4539
|
+
Uo as BlogPostCardRoot,
|
|
4540
|
+
bn as BlogPostCardSkeleton,
|
|
4541
|
+
qo as BlogPostCardTitle,
|
|
4434
4542
|
Vt as Button,
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4543
|
+
hn as ButtonLink,
|
|
4544
|
+
vn as Card,
|
|
4545
|
+
Yo as CardLink,
|
|
4546
|
+
Qo as CardRoot,
|
|
4547
|
+
xn as CardSkeleton,
|
|
4548
|
+
yn as Chip,
|
|
4549
|
+
tn as ChipButton,
|
|
4550
|
+
en as ChipRoot,
|
|
4551
|
+
kn as Favorite,
|
|
4552
|
+
nn as FavoriteHeart,
|
|
4553
|
+
on as FavoriteRoot,
|
|
4554
|
+
wn as FieldError,
|
|
4555
|
+
$e as useAccordion,
|
|
4556
|
+
Ve as useAccordionItem,
|
|
4557
|
+
Gt as useBanner,
|
|
4558
|
+
X as useBlogPostCard
|
|
4447
4559
|
};
|
|
4448
4560
|
//# sourceMappingURL=index.js.map
|