commerce-toolkit 0.0.24 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/index.d.ts +2 -1
- package/dist/components/accordion/index.d.ts.map +1 -1
- package/dist/components/accordion/primitives/accordion-item-provider.d.ts +14 -0
- package/dist/components/accordion/primitives/accordion-item-provider.d.ts.map +1 -0
- package/dist/components/accordion/primitives/accordion-provider.d.ts +0 -11
- package/dist/components/accordion/primitives/accordion-provider.d.ts.map +1 -1
- package/dist/components/accordion/primitives/accordion-trigger.d.ts +1 -1
- package/dist/components/accordion/primitives/accordion-trigger.d.ts.map +1 -1
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert/index.d.ts.map +1 -1
- package/dist/components/alert/primitives/alert-provider.d.ts +2 -1
- package/dist/components/alert/primitives/alert-provider.d.ts.map +1 -1
- package/dist/components/banner/index.d.ts +1 -1
- package/dist/components/banner/index.d.ts.map +1 -1
- package/dist/components/banner/primitives/banner-provider.d.ts +2 -1
- package/dist/components/banner/primitives/banner-provider.d.ts.map +1 -1
- package/dist/components/blog-post-card/index.d.ts +1 -1
- package/dist/components/blog-post-card/index.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-provider.d.ts +2 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-provider.d.ts.map +1 -1
- package/dist/components/rating/index.d.ts +1 -1
- package/dist/components/rating/index.d.ts.map +1 -1
- package/dist/components/rating/primitives/rating-provider.d.ts +2 -1
- package/dist/components/rating/primitives/rating-provider.d.ts.map +1 -1
- package/dist/components/reveal/index.d.ts +1 -1
- package/dist/components/reveal/index.d.ts.map +1 -1
- package/dist/components/reveal/primitives/reveal-provider.d.ts +2 -1
- package/dist/components/reveal/primitives/reveal-provider.d.ts.map +1 -1
- package/dist/components/scroll-area/index.d.ts +1 -1
- package/dist/components/scroll-area/index.d.ts.map +1 -1
- package/dist/components/scroll-area/primitives/scroll-area-provider.d.ts +2 -1
- package/dist/components/scroll-area/primitives/scroll-area-provider.d.ts.map +1 -1
- package/dist/components/tabs/index.d.ts +8 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/primitives/tabs-content.d.ts +5 -0
- package/dist/components/tabs/primitives/tabs-content.d.ts.map +1 -0
- package/dist/components/tabs/primitives/tabs-item-provider.d.ts +13 -0
- package/dist/components/tabs/primitives/tabs-item-provider.d.ts.map +1 -0
- package/dist/components/tabs/primitives/tabs-list.d.ts +5 -0
- package/dist/components/tabs/primitives/tabs-list.d.ts.map +1 -0
- package/dist/components/tabs/primitives/tabs-provider.d.ts +20 -0
- package/dist/components/tabs/primitives/tabs-provider.d.ts.map +1 -0
- package/dist/components/tabs/primitives/tabs-root.d.ts +5 -0
- package/dist/components/tabs/primitives/tabs-root.d.ts.map +1 -0
- package/dist/components/tabs/primitives/tabs-trigger.d.ts +5 -0
- package/dist/components/tabs/primitives/tabs-trigger.d.ts.map +1 -0
- package/dist/components/tabs/tabs.d.ts +33 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +313 -313
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as l, jsxs as _, Fragment as te } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import L, { useState as pe, useEffect as Ge, createContext as Z, useMemo as K, use as J, forwardRef as kr, createElement as We, useCallback as be, useRef as Sr } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
function xa({ className: e, colorScheme: r = "light", items: t, ...o }) {
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ l(qo, { colorScheme: r, items: t, children: /* @__PURE__ */ l(Go, { className: e, ...o, children: t.map(({ content: n, title: a, value: s }) => /* @__PURE__ */ l(
|
|
7
7
|
Zo,
|
|
8
8
|
{
|
|
9
|
-
content: n
|
|
10
|
-
title:
|
|
11
|
-
value:
|
|
9
|
+
content: n,
|
|
10
|
+
title: a,
|
|
11
|
+
value: s,
|
|
12
12
|
children: /* @__PURE__ */ _(Uo, { children: [
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
13
|
+
/* @__PURE__ */ l(Yo, {}),
|
|
14
|
+
/* @__PURE__ */ l(Xo, {})
|
|
15
15
|
] })
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
s
|
|
18
18
|
)) }) });
|
|
19
19
|
}
|
|
20
20
|
function Ne(e, r = []) {
|
|
21
21
|
let t = [];
|
|
22
|
-
function o(a,
|
|
23
|
-
const i = d.createContext(
|
|
24
|
-
t = [...t,
|
|
22
|
+
function o(a, s) {
|
|
23
|
+
const i = d.createContext(s), c = t.length;
|
|
24
|
+
t = [...t, s];
|
|
25
25
|
const f = (m) => {
|
|
26
26
|
const { scope: p, children: v, ...w } = m, C = p?.[e]?.[c] || i, A = d.useMemo(() => w, Object.values(w));
|
|
27
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ l(C.Provider, { value: A, children: v });
|
|
28
28
|
};
|
|
29
29
|
f.displayName = a + "Provider";
|
|
30
30
|
function u(m, p) {
|
|
31
31
|
const v = p?.[e]?.[c] || i, w = d.useContext(v);
|
|
32
32
|
if (w) return w;
|
|
33
|
-
if (
|
|
33
|
+
if (s !== void 0) return s;
|
|
34
34
|
throw new Error(`\`${m}\` must be used within \`${a}\``);
|
|
35
35
|
}
|
|
36
36
|
return [f, u];
|
|
37
37
|
}
|
|
38
38
|
const n = () => {
|
|
39
|
-
const a = t.map((
|
|
39
|
+
const a = t.map((s) => d.createContext(s));
|
|
40
40
|
return function(i) {
|
|
41
41
|
const c = i?.[e] || a;
|
|
42
42
|
return d.useMemo(
|
|
@@ -56,11 +56,11 @@ function Rt(...e) {
|
|
|
56
56
|
scopeName: n.scopeName
|
|
57
57
|
}));
|
|
58
58
|
return function(a) {
|
|
59
|
-
const
|
|
59
|
+
const s = o.reduce((i, { useScope: c, scopeName: f }) => {
|
|
60
60
|
const m = c(a)[`__scope${f}`];
|
|
61
61
|
return { ...i, ...m };
|
|
62
62
|
}, {});
|
|
63
|
-
return d.useMemo(() => ({ [`__scope${r.scopeName}`]:
|
|
63
|
+
return d.useMemo(() => ({ [`__scope${r.scopeName}`]: s }), [s]);
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
return t.scopeName = r.scopeName, t;
|
|
@@ -92,12 +92,12 @@ function $(...e) {
|
|
|
92
92
|
// @__NO_SIDE_EFFECTS__
|
|
93
93
|
function $e(e) {
|
|
94
94
|
const r = /* @__PURE__ */ Pt(e), t = d.forwardRef((o, n) => {
|
|
95
|
-
const { children: a, ...
|
|
95
|
+
const { children: a, ...s } = o, i = d.Children.toArray(a), c = i.find(_t);
|
|
96
96
|
if (c) {
|
|
97
97
|
const f = c.props.children, u = i.map((m) => m === c ? d.Children.count(f) > 1 ? d.Children.only(null) : d.isValidElement(f) ? f.props.children : null : m);
|
|
98
|
-
return /* @__PURE__ */
|
|
98
|
+
return /* @__PURE__ */ l(r, { ...s, ref: n, children: d.isValidElement(f) ? d.cloneElement(f, void 0, u) : null });
|
|
99
99
|
}
|
|
100
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ l(r, { ...s, ref: n, children: a });
|
|
101
101
|
});
|
|
102
102
|
return t.displayName = `${e}.Slot`, t;
|
|
103
103
|
}
|
|
@@ -106,8 +106,8 @@ function Pt(e) {
|
|
|
106
106
|
const r = d.forwardRef((t, o) => {
|
|
107
107
|
const { children: n, ...a } = t;
|
|
108
108
|
if (d.isValidElement(n)) {
|
|
109
|
-
const
|
|
110
|
-
return n.type !== d.Fragment && (i.ref = o ? Ar(o,
|
|
109
|
+
const s = It(n), i = Et(a, n.props);
|
|
110
|
+
return n.type !== d.Fragment && (i.ref = o ? Ar(o, s) : s), d.cloneElement(n, i);
|
|
111
111
|
}
|
|
112
112
|
return d.Children.count(n) > 1 ? d.Children.only(null) : null;
|
|
113
113
|
});
|
|
@@ -136,22 +136,22 @@ function Lt(e) {
|
|
|
136
136
|
const r = e + "CollectionProvider", [t, o] = Ne(r), [n, a] = t(
|
|
137
137
|
r,
|
|
138
138
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
139
|
-
),
|
|
139
|
+
), s = (C) => {
|
|
140
140
|
const { scope: A, children: R } = C, k = L.useRef(null), N = L.useRef(/* @__PURE__ */ new Map()).current;
|
|
141
|
-
return /* @__PURE__ */
|
|
141
|
+
return /* @__PURE__ */ l(n, { scope: A, itemMap: N, collectionRef: k, children: R });
|
|
142
142
|
};
|
|
143
|
-
|
|
143
|
+
s.displayName = r;
|
|
144
144
|
const i = e + "CollectionSlot", c = /* @__PURE__ */ $e(i), f = L.forwardRef(
|
|
145
145
|
(C, A) => {
|
|
146
146
|
const { scope: R, children: k } = C, N = a(i, R), E = $(A, N.collectionRef);
|
|
147
|
-
return /* @__PURE__ */
|
|
147
|
+
return /* @__PURE__ */ l(c, { ref: E, children: k });
|
|
148
148
|
}
|
|
149
149
|
);
|
|
150
150
|
f.displayName = i;
|
|
151
151
|
const u = e + "CollectionItemSlot", m = "data-radix-collection-item", p = /* @__PURE__ */ $e(u), v = L.forwardRef(
|
|
152
152
|
(C, A) => {
|
|
153
153
|
const { scope: R, children: k, ...N } = C, E = L.useRef(null), M = $(A, E), I = a(u, R);
|
|
154
|
-
return L.useEffect(() => (I.itemMap.set(E, { ref: E, ...N }), () => void I.itemMap.delete(E))), /* @__PURE__ */
|
|
154
|
+
return L.useEffect(() => (I.itemMap.set(E, { ref: E, ...N }), () => void I.itemMap.delete(E))), /* @__PURE__ */ l(p, { [m]: "", ref: M, children: k });
|
|
155
155
|
}
|
|
156
156
|
);
|
|
157
157
|
v.displayName = u;
|
|
@@ -167,7 +167,7 @@ function Lt(e) {
|
|
|
167
167
|
}, [A.collectionRef, A.itemMap]);
|
|
168
168
|
}
|
|
169
169
|
return [
|
|
170
|
-
{ Provider:
|
|
170
|
+
{ Provider: s, Slot: f, ItemSlot: v },
|
|
171
171
|
w,
|
|
172
172
|
o
|
|
173
173
|
];
|
|
@@ -187,7 +187,7 @@ function _e({
|
|
|
187
187
|
},
|
|
188
188
|
caller: o
|
|
189
189
|
}) {
|
|
190
|
-
const [n, a,
|
|
190
|
+
const [n, a, s] = Mt({
|
|
191
191
|
defaultProp: r,
|
|
192
192
|
onChange: t
|
|
193
193
|
}), i = e !== void 0, c = i ? e : n;
|
|
@@ -204,11 +204,11 @@ function _e({
|
|
|
204
204
|
(u) => {
|
|
205
205
|
if (i) {
|
|
206
206
|
const m = zt(u) ? u(e) : u;
|
|
207
|
-
m !== e &&
|
|
207
|
+
m !== e && s.current?.(m);
|
|
208
208
|
} else
|
|
209
209
|
a(u);
|
|
210
210
|
},
|
|
211
|
-
[i, e, a,
|
|
211
|
+
[i, e, a, s]
|
|
212
212
|
);
|
|
213
213
|
return [c, f];
|
|
214
214
|
}
|
|
@@ -246,8 +246,8 @@ var Ot = [
|
|
|
246
246
|
"ul"
|
|
247
247
|
], j = Ot.reduce((e, r) => {
|
|
248
248
|
const t = /* @__PURE__ */ $e(`Primitive.${r}`), o = d.forwardRef((n, a) => {
|
|
249
|
-
const { asChild:
|
|
250
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
249
|
+
const { asChild: s, ...i } = n, c = s ? t : r;
|
|
250
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(c, { ...i, ref: a });
|
|
251
251
|
});
|
|
252
252
|
return o.displayName = `Primitive.${r}`, { ...e, [r]: o };
|
|
253
253
|
}, {});
|
|
@@ -260,7 +260,7 @@ var le = (e) => {
|
|
|
260
260
|
};
|
|
261
261
|
le.displayName = "Presence";
|
|
262
262
|
function Bt(e) {
|
|
263
|
-
const [r, t] = d.useState(), o = d.useRef(null), n = d.useRef(e), a = d.useRef("none"),
|
|
263
|
+
const [r, t] = d.useState(), o = d.useRef(null), n = d.useRef(e), a = d.useRef("none"), s = e ? "mounted" : "unmounted", [i, c] = Dt(s, {
|
|
264
264
|
mounted: {
|
|
265
265
|
UNMOUNT: "unmounted",
|
|
266
266
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -330,15 +330,15 @@ var Ee = "Collapsible", [jt, Pr] = Ne(Ee), [Ht, Xe] = jt(Ee), Nr = d.forwardRef(
|
|
|
330
330
|
open: o,
|
|
331
331
|
defaultOpen: n,
|
|
332
332
|
disabled: a,
|
|
333
|
-
onOpenChange:
|
|
333
|
+
onOpenChange: s,
|
|
334
334
|
...i
|
|
335
335
|
} = e, [c, f] = _e({
|
|
336
336
|
prop: o,
|
|
337
337
|
defaultProp: n ?? !1,
|
|
338
|
-
onChange:
|
|
338
|
+
onChange: s,
|
|
339
339
|
caller: Ee
|
|
340
340
|
});
|
|
341
|
-
return /* @__PURE__ */
|
|
341
|
+
return /* @__PURE__ */ l(
|
|
342
342
|
Ht,
|
|
343
343
|
{
|
|
344
344
|
scope: t,
|
|
@@ -346,7 +346,7 @@ var Ee = "Collapsible", [jt, Pr] = Ne(Ee), [Ht, Xe] = jt(Ee), Nr = d.forwardRef(
|
|
|
346
346
|
contentId: Rr(),
|
|
347
347
|
open: c,
|
|
348
348
|
onOpenToggle: d.useCallback(() => f((u) => !u), [f]),
|
|
349
|
-
children: /* @__PURE__ */
|
|
349
|
+
children: /* @__PURE__ */ l(
|
|
350
350
|
j.div,
|
|
351
351
|
{
|
|
352
352
|
"data-state": qe(c),
|
|
@@ -363,7 +363,7 @@ Nr.displayName = Ee;
|
|
|
363
363
|
var _r = "CollapsibleTrigger", Er = d.forwardRef(
|
|
364
364
|
(e, r) => {
|
|
365
365
|
const { __scopeCollapsible: t, ...o } = e, n = Xe(_r, t);
|
|
366
|
-
return /* @__PURE__ */
|
|
366
|
+
return /* @__PURE__ */ l(
|
|
367
367
|
j.button,
|
|
368
368
|
{
|
|
369
369
|
type: "button",
|
|
@@ -383,12 +383,12 @@ Er.displayName = _r;
|
|
|
383
383
|
var Ye = "CollapsibleContent", Ir = d.forwardRef(
|
|
384
384
|
(e, r) => {
|
|
385
385
|
const { forceMount: t, ...o } = e, n = Xe(Ye, e.__scopeCollapsible);
|
|
386
|
-
return /* @__PURE__ */
|
|
386
|
+
return /* @__PURE__ */ l(le, { present: t || n.open, children: ({ present: a }) => /* @__PURE__ */ l(Ft, { ...o, ref: r, present: a }) });
|
|
387
387
|
}
|
|
388
388
|
);
|
|
389
389
|
Ir.displayName = Ye;
|
|
390
390
|
var Ft = d.forwardRef((e, r) => {
|
|
391
|
-
const { __scopeCollapsible: t, present: o, children: n, ...a } = e,
|
|
391
|
+
const { __scopeCollapsible: t, present: o, children: n, ...a } = e, s = Xe(Ye, t), [i, c] = d.useState(o), f = d.useRef(null), u = $(r, f), m = d.useRef(0), p = m.current, v = d.useRef(0), w = v.current, C = s.open || i, A = d.useRef(C), R = d.useRef(void 0);
|
|
392
392
|
return d.useEffect(() => {
|
|
393
393
|
const k = requestAnimationFrame(() => A.current = !1);
|
|
394
394
|
return () => cancelAnimationFrame(k);
|
|
@@ -402,12 +402,12 @@ var Ft = d.forwardRef((e, r) => {
|
|
|
402
402
|
const N = k.getBoundingClientRect();
|
|
403
403
|
m.current = N.height, v.current = N.width, A.current || (k.style.transitionDuration = R.current.transitionDuration, k.style.animationName = R.current.animationName), c(o);
|
|
404
404
|
}
|
|
405
|
-
}, [
|
|
405
|
+
}, [s.open, o]), /* @__PURE__ */ l(
|
|
406
406
|
j.div,
|
|
407
407
|
{
|
|
408
|
-
"data-state": qe(
|
|
409
|
-
"data-disabled":
|
|
410
|
-
id:
|
|
408
|
+
"data-state": qe(s.open),
|
|
409
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
410
|
+
id: s.contentId,
|
|
411
411
|
hidden: !C,
|
|
412
412
|
...a,
|
|
413
413
|
ref: u,
|
|
@@ -434,7 +434,7 @@ var H = "Accordion", qt = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "
|
|
|
434
434
|
]), Ke = Pr(), Tr = L.forwardRef(
|
|
435
435
|
(e, r) => {
|
|
436
436
|
const { type: t, ...o } = e, n = o, a = o;
|
|
437
|
-
return /* @__PURE__ */
|
|
437
|
+
return /* @__PURE__ */ l(Ze.Provider, { scope: e.__scopeAccordion, children: t === "multiple" ? /* @__PURE__ */ l(ro, { ...a, ref: r }) : /* @__PURE__ */ l(eo, { ...n, ref: r }) });
|
|
438
438
|
}
|
|
439
439
|
);
|
|
440
440
|
Tr.displayName = H;
|
|
@@ -449,21 +449,21 @@ var [Mr, Jt] = Ie(H), [zr, Qt] = Ie(
|
|
|
449
449
|
onValueChange: n = () => {
|
|
450
450
|
},
|
|
451
451
|
collapsible: a = !1,
|
|
452
|
-
...
|
|
452
|
+
...s
|
|
453
453
|
} = e, [i, c] = _e({
|
|
454
454
|
prop: t,
|
|
455
455
|
defaultProp: o ?? "",
|
|
456
456
|
onChange: n,
|
|
457
457
|
caller: H
|
|
458
458
|
});
|
|
459
|
-
return /* @__PURE__ */
|
|
459
|
+
return /* @__PURE__ */ l(
|
|
460
460
|
Mr,
|
|
461
461
|
{
|
|
462
462
|
scope: e.__scopeAccordion,
|
|
463
463
|
value: L.useMemo(() => i ? [i] : [], [i]),
|
|
464
464
|
onItemOpen: c,
|
|
465
465
|
onItemClose: L.useCallback(() => a && c(""), [a, c]),
|
|
466
|
-
children: /* @__PURE__ */
|
|
466
|
+
children: /* @__PURE__ */ l(zr, { scope: e.__scopeAccordion, collapsible: a, children: /* @__PURE__ */ l(Or, { ...s, ref: r }) })
|
|
467
467
|
}
|
|
468
468
|
);
|
|
469
469
|
}
|
|
@@ -474,7 +474,7 @@ var [Mr, Jt] = Ie(H), [zr, Qt] = Ie(
|
|
|
474
474
|
onValueChange: n = () => {
|
|
475
475
|
},
|
|
476
476
|
...a
|
|
477
|
-
} = e, [
|
|
477
|
+
} = e, [s, i] = _e({
|
|
478
478
|
prop: t,
|
|
479
479
|
defaultProp: o ?? [],
|
|
480
480
|
onChange: n,
|
|
@@ -486,19 +486,19 @@ var [Mr, Jt] = Ie(H), [zr, Qt] = Ie(
|
|
|
486
486
|
(u) => i((m = []) => m.filter((p) => p !== u)),
|
|
487
487
|
[i]
|
|
488
488
|
);
|
|
489
|
-
return /* @__PURE__ */
|
|
489
|
+
return /* @__PURE__ */ l(
|
|
490
490
|
Mr,
|
|
491
491
|
{
|
|
492
492
|
scope: e.__scopeAccordion,
|
|
493
|
-
value:
|
|
493
|
+
value: s,
|
|
494
494
|
onItemOpen: c,
|
|
495
495
|
onItemClose: f,
|
|
496
|
-
children: /* @__PURE__ */
|
|
496
|
+
children: /* @__PURE__ */ l(zr, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ l(Or, { ...a, ref: r }) })
|
|
497
497
|
}
|
|
498
498
|
);
|
|
499
499
|
}), [to, Le] = Ie(H), Or = L.forwardRef(
|
|
500
500
|
(e, r) => {
|
|
501
|
-
const { __scopeAccordion: t, disabled: o, dir: n, orientation: a = "vertical", ...
|
|
501
|
+
const { __scopeAccordion: t, disabled: o, dir: n, orientation: a = "vertical", ...s } = e, i = L.useRef(null), c = $(i, r), f = Zt(t), m = Lr(n) === "ltr", p = F(e.onKeyDown, (v) => {
|
|
502
502
|
if (!qt.includes(v.key)) return;
|
|
503
503
|
const w = v.target, C = f().filter((x) => !x.ref.current?.disabled), A = C.findIndex((x) => x.ref.current === w), R = C.length;
|
|
504
504
|
if (A === -1) return;
|
|
@@ -532,17 +532,17 @@ var [Mr, Jt] = Ie(H), [zr, Qt] = Ie(
|
|
|
532
532
|
const D = k % R;
|
|
533
533
|
C[D].ref.current?.focus();
|
|
534
534
|
});
|
|
535
|
-
return /* @__PURE__ */
|
|
535
|
+
return /* @__PURE__ */ l(
|
|
536
536
|
to,
|
|
537
537
|
{
|
|
538
538
|
scope: t,
|
|
539
539
|
disabled: o,
|
|
540
540
|
direction: n,
|
|
541
541
|
orientation: a,
|
|
542
|
-
children: /* @__PURE__ */
|
|
542
|
+
children: /* @__PURE__ */ l(Ze.Slot, { scope: t, children: /* @__PURE__ */ l(
|
|
543
543
|
j.div,
|
|
544
544
|
{
|
|
545
|
-
...
|
|
545
|
+
...s,
|
|
546
546
|
"data-orientation": a,
|
|
547
547
|
ref: c,
|
|
548
548
|
onKeyDown: o ? void 0 : p
|
|
@@ -553,15 +553,15 @@ var [Mr, Jt] = Ie(H), [zr, Qt] = Ie(
|
|
|
553
553
|
}
|
|
554
554
|
), Ae = "AccordionItem", [oo, Je] = Ie(Ae), Dr = L.forwardRef(
|
|
555
555
|
(e, r) => {
|
|
556
|
-
const { __scopeAccordion: t, value: o, ...n } = e, a = Le(Ae, t),
|
|
557
|
-
return /* @__PURE__ */
|
|
556
|
+
const { __scopeAccordion: t, value: o, ...n } = e, a = Le(Ae, t), s = Jt(Ae, t), i = Ke(t), c = Rr(), f = o && s.value.includes(o) || !1, u = a.disabled || e.disabled;
|
|
557
|
+
return /* @__PURE__ */ l(
|
|
558
558
|
oo,
|
|
559
559
|
{
|
|
560
560
|
scope: t,
|
|
561
561
|
open: f,
|
|
562
562
|
disabled: u,
|
|
563
563
|
triggerId: c,
|
|
564
|
-
children: /* @__PURE__ */
|
|
564
|
+
children: /* @__PURE__ */ l(
|
|
565
565
|
Ut,
|
|
566
566
|
{
|
|
567
567
|
"data-orientation": a.orientation,
|
|
@@ -572,7 +572,7 @@ var [Mr, Jt] = Ie(H), [zr, Qt] = Ie(
|
|
|
572
572
|
disabled: u,
|
|
573
573
|
open: f,
|
|
574
574
|
onOpenChange: (m) => {
|
|
575
|
-
m ?
|
|
575
|
+
m ? s.onItemOpen(o) : s.onItemClose(o);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
)
|
|
@@ -584,7 +584,7 @@ Dr.displayName = Ae;
|
|
|
584
584
|
var Br = "AccordionHeader", Vr = L.forwardRef(
|
|
585
585
|
(e, r) => {
|
|
586
586
|
const { __scopeAccordion: t, ...o } = e, n = Le(H, t), a = Je(Br, t);
|
|
587
|
-
return /* @__PURE__ */
|
|
587
|
+
return /* @__PURE__ */ l(
|
|
588
588
|
j.h3,
|
|
589
589
|
{
|
|
590
590
|
"data-orientation": n.orientation,
|
|
@@ -599,11 +599,11 @@ var Br = "AccordionHeader", Vr = L.forwardRef(
|
|
|
599
599
|
Vr.displayName = Br;
|
|
600
600
|
var je = "AccordionTrigger", Wr = L.forwardRef(
|
|
601
601
|
(e, r) => {
|
|
602
|
-
const { __scopeAccordion: t, ...o } = e, n = Le(H, t), a = Je(je, t),
|
|
603
|
-
return /* @__PURE__ */
|
|
602
|
+
const { __scopeAccordion: t, ...o } = e, n = Le(H, t), a = Je(je, t), s = Qt(je, t), i = Ke(t);
|
|
603
|
+
return /* @__PURE__ */ l(Ze.ItemSlot, { scope: t, children: /* @__PURE__ */ l(
|
|
604
604
|
Gt,
|
|
605
605
|
{
|
|
606
|
-
"aria-disabled": a.open && !
|
|
606
|
+
"aria-disabled": a.open && !s.collapsible || void 0,
|
|
607
607
|
"data-orientation": n.orientation,
|
|
608
608
|
id: a.triggerId,
|
|
609
609
|
...i,
|
|
@@ -616,14 +616,14 @@ var je = "AccordionTrigger", Wr = L.forwardRef(
|
|
|
616
616
|
Wr.displayName = je;
|
|
617
617
|
var $r = "AccordionContent", jr = L.forwardRef(
|
|
618
618
|
(e, r) => {
|
|
619
|
-
const { __scopeAccordion: t, ...o } = e, n = Le(H, t), a = Je($r, t),
|
|
620
|
-
return /* @__PURE__ */
|
|
619
|
+
const { __scopeAccordion: t, ...o } = e, n = Le(H, t), a = Je($r, t), s = Ke(t);
|
|
620
|
+
return /* @__PURE__ */ l(
|
|
621
621
|
Xt,
|
|
622
622
|
{
|
|
623
623
|
role: "region",
|
|
624
624
|
"aria-labelledby": a.triggerId,
|
|
625
625
|
"data-orientation": n.orientation,
|
|
626
|
-
...
|
|
626
|
+
...s,
|
|
627
627
|
...o,
|
|
628
628
|
ref: r,
|
|
629
629
|
style: {
|
|
@@ -659,13 +659,13 @@ const Qe = "-", uo = (e) => {
|
|
|
659
659
|
conflictingClassGroupModifiers: o
|
|
660
660
|
} = e;
|
|
661
661
|
return {
|
|
662
|
-
getClassGroupId: (
|
|
663
|
-
const i =
|
|
664
|
-
return i[0] === "" && i.length !== 1 && i.shift(), Ur(i, r) || fo(
|
|
662
|
+
getClassGroupId: (s) => {
|
|
663
|
+
const i = s.split(Qe);
|
|
664
|
+
return i[0] === "" && i.length !== 1 && i.shift(), Ur(i, r) || fo(s);
|
|
665
665
|
},
|
|
666
|
-
getConflictingClassGroupIds: (
|
|
667
|
-
const c = t[
|
|
668
|
-
return i && o[
|
|
666
|
+
getConflictingClassGroupIds: (s, i) => {
|
|
667
|
+
const c = t[s] || [];
|
|
668
|
+
return i && o[s] ? [...c, ...o[s]] : c;
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
671
|
}, Ur = (e, r) => {
|
|
@@ -678,8 +678,8 @@ const Qe = "-", uo = (e) => {
|
|
|
678
678
|
return;
|
|
679
679
|
const a = e.join(Qe);
|
|
680
680
|
return r.validators.find(({
|
|
681
|
-
validator:
|
|
682
|
-
}) =>
|
|
681
|
+
validator: s
|
|
682
|
+
}) => s(a))?.classGroupId;
|
|
683
683
|
}, gr = /^\[(.+)\]$/, fo = (e) => {
|
|
684
684
|
if (gr.test(e)) {
|
|
685
685
|
const r = gr.exec(e)[1], t = r?.substring(0, r.indexOf(":"));
|
|
@@ -715,8 +715,8 @@ const Qe = "-", uo = (e) => {
|
|
|
715
715
|
});
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
Object.entries(n).forEach(([a,
|
|
719
|
-
He(
|
|
718
|
+
Object.entries(n).forEach(([a, s]) => {
|
|
719
|
+
He(s, vr(r, a), t, o);
|
|
720
720
|
});
|
|
721
721
|
});
|
|
722
722
|
}, vr = (e, r) => {
|
|
@@ -736,19 +736,19 @@ const Qe = "-", uo = (e) => {
|
|
|
736
736
|
}
|
|
737
737
|
};
|
|
738
738
|
let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
739
|
-
const n = (a,
|
|
740
|
-
t.set(a,
|
|
739
|
+
const n = (a, s) => {
|
|
740
|
+
t.set(a, s), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
|
|
741
741
|
};
|
|
742
742
|
return {
|
|
743
743
|
get(a) {
|
|
744
|
-
let
|
|
745
|
-
if (
|
|
746
|
-
return
|
|
747
|
-
if ((
|
|
748
|
-
return n(a,
|
|
744
|
+
let s = t.get(a);
|
|
745
|
+
if (s !== void 0)
|
|
746
|
+
return s;
|
|
747
|
+
if ((s = o.get(a)) !== void 0)
|
|
748
|
+
return n(a, s), s;
|
|
749
749
|
},
|
|
750
|
-
set(a,
|
|
751
|
-
t.has(a) ? t.set(a,
|
|
750
|
+
set(a, s) {
|
|
751
|
+
t.has(a) ? t.set(a, s) : n(a, s);
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
754
|
}, Fe = "!", Ue = ":", ho = Ue.length, go = (e) => {
|
|
@@ -758,10 +758,10 @@ const Qe = "-", uo = (e) => {
|
|
|
758
758
|
} = e;
|
|
759
759
|
let o = (n) => {
|
|
760
760
|
const a = [];
|
|
761
|
-
let
|
|
761
|
+
let s = 0, i = 0, c = 0, f;
|
|
762
762
|
for (let w = 0; w < n.length; w++) {
|
|
763
763
|
let C = n[w];
|
|
764
|
-
if (
|
|
764
|
+
if (s === 0 && i === 0) {
|
|
765
765
|
if (C === Ue) {
|
|
766
766
|
a.push(n.slice(c, w)), c = w + ho;
|
|
767
767
|
continue;
|
|
@@ -771,7 +771,7 @@ const Qe = "-", uo = (e) => {
|
|
|
771
771
|
continue;
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
|
-
C === "[" ?
|
|
774
|
+
C === "[" ? s++ : C === "]" ? s-- : C === "(" ? i++ : C === ")" && i--;
|
|
775
775
|
}
|
|
776
776
|
const u = a.length === 0 ? n : n.substring(c), m = vo(u), p = m !== u, v = f && f > c ? f - c : void 0;
|
|
777
777
|
return {
|
|
@@ -783,11 +783,11 @@ const Qe = "-", uo = (e) => {
|
|
|
783
783
|
};
|
|
784
784
|
if (r) {
|
|
785
785
|
const n = r + Ue, a = o;
|
|
786
|
-
o = (
|
|
786
|
+
o = (s) => s.startsWith(n) ? a(s.substring(n.length)) : {
|
|
787
787
|
isExternal: !0,
|
|
788
788
|
modifiers: [],
|
|
789
789
|
hasImportantModifier: !1,
|
|
790
|
-
baseClassName:
|
|
790
|
+
baseClassName: s,
|
|
791
791
|
maybePostfixModifierPosition: void 0
|
|
792
792
|
};
|
|
793
793
|
}
|
|
@@ -806,8 +806,8 @@ const Qe = "-", uo = (e) => {
|
|
|
806
806
|
return o;
|
|
807
807
|
const n = [];
|
|
808
808
|
let a = [];
|
|
809
|
-
return o.forEach((
|
|
810
|
-
|
|
809
|
+
return o.forEach((s) => {
|
|
810
|
+
s[0] === "[" || r[s] ? (n.push(...a.sort(), s), a = []) : a.push(s);
|
|
811
811
|
}), n.push(...a.sort()), n;
|
|
812
812
|
};
|
|
813
813
|
}, wo = (e) => ({
|
|
@@ -821,7 +821,7 @@ const Qe = "-", uo = (e) => {
|
|
|
821
821
|
getClassGroupId: o,
|
|
822
822
|
getConflictingClassGroupIds: n,
|
|
823
823
|
sortModifiers: a
|
|
824
|
-
} = r,
|
|
824
|
+
} = r, s = [], i = e.trim().split(yo);
|
|
825
825
|
let c = "";
|
|
826
826
|
for (let f = i.length - 1; f >= 0; f -= 1) {
|
|
827
827
|
const u = i[f], {
|
|
@@ -848,13 +848,13 @@ const Qe = "-", uo = (e) => {
|
|
|
848
848
|
A = !1;
|
|
849
849
|
}
|
|
850
850
|
const k = a(p).join(":"), N = v ? k + Fe : k, E = N + R;
|
|
851
|
-
if (
|
|
851
|
+
if (s.includes(E))
|
|
852
852
|
continue;
|
|
853
|
-
|
|
853
|
+
s.push(E);
|
|
854
854
|
const M = n(R, A);
|
|
855
855
|
for (let I = 0; I < M.length; ++I) {
|
|
856
856
|
const D = M[I];
|
|
857
|
-
|
|
857
|
+
s.push(N + D);
|
|
858
858
|
}
|
|
859
859
|
c = u + (c.length > 0 ? " " + c : c);
|
|
860
860
|
}
|
|
@@ -875,8 +875,8 @@ const Gr = (e) => {
|
|
|
875
875
|
return t;
|
|
876
876
|
};
|
|
877
877
|
function So(e, ...r) {
|
|
878
|
-
let t, o, n, a =
|
|
879
|
-
function
|
|
878
|
+
let t, o, n, a = s;
|
|
879
|
+
function s(c) {
|
|
880
880
|
const f = r.reduce((u, m) => m(u), e());
|
|
881
881
|
return t = wo(f), o = t.cache.get, n = t.cache.set, a = i, i(c);
|
|
882
882
|
}
|
|
@@ -906,7 +906,7 @@ const T = (e) => {
|
|
|
906
906
|
const o = Yr.exec(e);
|
|
907
907
|
return o ? o[1] ? r(o[1]) : t : !1;
|
|
908
908
|
}, Zr = (e) => e === "position" || e === "percentage", Kr = (e) => e === "image" || e === "url", Jr = (e) => e === "length" || e === "size" || e === "bg-size", Qr = (e) => e === "length", $o = (e) => e === "number", jo = (e) => e === "family-name", et = (e) => e === "shadow", Ho = () => {
|
|
909
|
-
const e = T("color"), r = T("font"), t = T("text"), o = T("font-weight"), n = T("tracking"), a = T("leading"),
|
|
909
|
+
const e = T("color"), r = T("font"), t = T("text"), o = T("font-weight"), n = T("tracking"), a = T("leading"), s = T("breakpoint"), i = T("container"), c = T("spacing"), f = T("radius"), u = T("shadow"), m = T("inset-shadow"), p = T("text-shadow"), v = T("drop-shadow"), w = T("blur"), C = T("perspective"), A = T("aspect"), R = T("ease"), k = T("animate"), N = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], E = () => [
|
|
910
910
|
"center",
|
|
911
911
|
"top",
|
|
912
912
|
"bottom",
|
|
@@ -1606,7 +1606,7 @@ const T = (e) => {
|
|
|
1606
1606
|
"prose",
|
|
1607
1607
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1608
1608
|
{
|
|
1609
|
-
screen: [
|
|
1609
|
+
screen: [s]
|
|
1610
1610
|
},
|
|
1611
1611
|
...Q()
|
|
1612
1612
|
]
|
|
@@ -3381,7 +3381,7 @@ function g(...e) {
|
|
|
3381
3381
|
}
|
|
3382
3382
|
function Uo({ children: e, className: r, ...t }) {
|
|
3383
3383
|
const { colorScheme: o } = er(), { value: n } = rr();
|
|
3384
|
-
return /* @__PURE__ */
|
|
3384
|
+
return /* @__PURE__ */ l(
|
|
3385
3385
|
ao,
|
|
3386
3386
|
{
|
|
3387
3387
|
className: g(
|
|
@@ -3400,13 +3400,13 @@ function Uo({ children: e, className: r, ...t }) {
|
|
|
3400
3400
|
);
|
|
3401
3401
|
}
|
|
3402
3402
|
function Go({ className: e, ...r }) {
|
|
3403
|
-
return /* @__PURE__ */
|
|
3403
|
+
return /* @__PURE__ */ l(no, { className: g(e), ...r, "data-slot": "accordion-root" });
|
|
3404
3404
|
}
|
|
3405
3405
|
function Xo({ className: e, ...r }) {
|
|
3406
3406
|
const { colorScheme: t } = er(), { content: o } = rr(), [n, a] = pe(!1);
|
|
3407
3407
|
return Ge(() => {
|
|
3408
3408
|
a(!0);
|
|
3409
|
-
}, []), /* @__PURE__ */
|
|
3409
|
+
}, []), /* @__PURE__ */ l(
|
|
3410
3410
|
io,
|
|
3411
3411
|
{
|
|
3412
3412
|
className: g(
|
|
@@ -3415,7 +3415,7 @@ function Xo({ className: e, ...r }) {
|
|
|
3415
3415
|
n && "data-[state=closed]:animate-collapse data-[state=open]:animate-expand"
|
|
3416
3416
|
),
|
|
3417
3417
|
...r,
|
|
3418
|
-
children: /* @__PURE__ */
|
|
3418
|
+
children: /* @__PURE__ */ l(
|
|
3419
3419
|
"div",
|
|
3420
3420
|
{
|
|
3421
3421
|
className: g(
|
|
@@ -3435,7 +3435,7 @@ function Xo({ className: e, ...r }) {
|
|
|
3435
3435
|
}
|
|
3436
3436
|
function Yo({ className: e, ...r }) {
|
|
3437
3437
|
const { colorScheme: t } = er(), { title: o } = rr();
|
|
3438
|
-
return /* @__PURE__ */
|
|
3438
|
+
return /* @__PURE__ */ l(so, { children: /* @__PURE__ */ _(
|
|
3439
3439
|
lo,
|
|
3440
3440
|
{
|
|
3441
3441
|
className: g(
|
|
@@ -3445,7 +3445,7 @@ function Yo({ className: e, ...r }) {
|
|
|
3445
3445
|
"data-slot": "accordion-trigger",
|
|
3446
3446
|
...r,
|
|
3447
3447
|
children: [
|
|
3448
|
-
/* @__PURE__ */
|
|
3448
|
+
/* @__PURE__ */ l(
|
|
3449
3449
|
"div",
|
|
3450
3450
|
{
|
|
3451
3451
|
className: g(
|
|
@@ -3472,7 +3472,7 @@ function Yo({ className: e, ...r }) {
|
|
|
3472
3472
|
viewBox: "0 0 10 10",
|
|
3473
3473
|
width: 16,
|
|
3474
3474
|
children: [
|
|
3475
|
-
/* @__PURE__ */
|
|
3475
|
+
/* @__PURE__ */ l(
|
|
3476
3476
|
"line",
|
|
3477
3477
|
{
|
|
3478
3478
|
className: "group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:-rotate-90",
|
|
@@ -3483,7 +3483,7 @@ function Yo({ className: e, ...r }) {
|
|
|
3483
3483
|
y2: 5
|
|
3484
3484
|
}
|
|
3485
3485
|
),
|
|
3486
|
-
/* @__PURE__ */
|
|
3486
|
+
/* @__PURE__ */ l(
|
|
3487
3487
|
"line",
|
|
3488
3488
|
{
|
|
3489
3489
|
className: "group-data-[state=open]:-translate-y-[3px] group-data-[state=open]:rotate-90",
|
|
@@ -3514,7 +3514,7 @@ function qo({
|
|
|
3514
3514
|
}),
|
|
3515
3515
|
[r, t]
|
|
3516
3516
|
);
|
|
3517
|
-
return /* @__PURE__ */
|
|
3517
|
+
return /* @__PURE__ */ l(rt.Provider, { value: o, children: e });
|
|
3518
3518
|
}
|
|
3519
3519
|
function er() {
|
|
3520
3520
|
const e = J(rt);
|
|
@@ -3537,7 +3537,7 @@ function Zo({
|
|
|
3537
3537
|
}),
|
|
3538
3538
|
[r, t, o]
|
|
3539
3539
|
);
|
|
3540
|
-
return /* @__PURE__ */
|
|
3540
|
+
return /* @__PURE__ */ l(tt.Provider, { value: n, children: e });
|
|
3541
3541
|
}
|
|
3542
3542
|
function rr() {
|
|
3543
3543
|
const e = J(tt);
|
|
@@ -3546,7 +3546,7 @@ function rr() {
|
|
|
3546
3546
|
return e;
|
|
3547
3547
|
}
|
|
3548
3548
|
function wa({ className: e, variant: r, message: t, description: o, action: n, dismiss: a }) {
|
|
3549
|
-
return /* @__PURE__ */
|
|
3549
|
+
return /* @__PURE__ */ l(
|
|
3550
3550
|
Jo,
|
|
3551
3551
|
{
|
|
3552
3552
|
action: n,
|
|
@@ -3556,12 +3556,12 @@ function wa({ className: e, variant: r, message: t, description: o, action: n, d
|
|
|
3556
3556
|
variant: r,
|
|
3557
3557
|
children: /* @__PURE__ */ _(Ko, { className: e, children: [
|
|
3558
3558
|
/* @__PURE__ */ _(Qo, { children: [
|
|
3559
|
-
/* @__PURE__ */
|
|
3560
|
-
/* @__PURE__ */
|
|
3559
|
+
/* @__PURE__ */ l(en, {}),
|
|
3560
|
+
/* @__PURE__ */ l(rn, {})
|
|
3561
3561
|
] }),
|
|
3562
3562
|
/* @__PURE__ */ _(tn, { children: [
|
|
3563
|
-
/* @__PURE__ */
|
|
3564
|
-
/* @__PURE__ */
|
|
3563
|
+
/* @__PURE__ */ l(pn, {}),
|
|
3564
|
+
/* @__PURE__ */ l(bn, {})
|
|
3565
3565
|
] })
|
|
3566
3566
|
] })
|
|
3567
3567
|
}
|
|
@@ -3569,7 +3569,7 @@ function wa({ className: e, variant: r, message: t, description: o, action: n, d
|
|
|
3569
3569
|
}
|
|
3570
3570
|
function Ko({ className: e, children: r, ...t }) {
|
|
3571
3571
|
const { variant: o } = he();
|
|
3572
|
-
return /* @__PURE__ */
|
|
3572
|
+
return /* @__PURE__ */ l(
|
|
3573
3573
|
"div",
|
|
3574
3574
|
{
|
|
3575
3575
|
className: g(
|
|
@@ -3598,7 +3598,7 @@ function Jo({
|
|
|
3598
3598
|
dismiss: n,
|
|
3599
3599
|
variant: a
|
|
3600
3600
|
}) {
|
|
3601
|
-
const
|
|
3601
|
+
const s = K(
|
|
3602
3602
|
() => ({
|
|
3603
3603
|
message: r,
|
|
3604
3604
|
description: t,
|
|
@@ -3608,7 +3608,7 @@ function Jo({
|
|
|
3608
3608
|
}),
|
|
3609
3609
|
[r, t, o, n, a]
|
|
3610
3610
|
);
|
|
3611
|
-
return /* @__PURE__ */
|
|
3611
|
+
return /* @__PURE__ */ l(ot.Provider, { value: s, children: e });
|
|
3612
3612
|
}
|
|
3613
3613
|
function he() {
|
|
3614
3614
|
const e = J(ot);
|
|
@@ -3617,7 +3617,7 @@ function he() {
|
|
|
3617
3617
|
return e;
|
|
3618
3618
|
}
|
|
3619
3619
|
function Qo({ children: e, className: r, ...t }) {
|
|
3620
|
-
return /* @__PURE__ */
|
|
3620
|
+
return /* @__PURE__ */ l(
|
|
3621
3621
|
"div",
|
|
3622
3622
|
{
|
|
3623
3623
|
className: g("[font-family:var(--alert-font-family,var(--font-family-body))]", r),
|
|
@@ -3629,7 +3629,7 @@ function Qo({ children: e, className: r, ...t }) {
|
|
|
3629
3629
|
}
|
|
3630
3630
|
function en({ children: e, className: r, ...t }) {
|
|
3631
3631
|
const { message: o } = he();
|
|
3632
|
-
return /* @__PURE__ */
|
|
3632
|
+
return /* @__PURE__ */ l(
|
|
3633
3633
|
"h5",
|
|
3634
3634
|
{
|
|
3635
3635
|
className: g(
|
|
@@ -3644,7 +3644,7 @@ function en({ children: e, className: r, ...t }) {
|
|
|
3644
3644
|
}
|
|
3645
3645
|
function rn({ className: e, ...r }) {
|
|
3646
3646
|
const { description: t } = he();
|
|
3647
|
-
return /* @__PURE__ */
|
|
3647
|
+
return /* @__PURE__ */ l(
|
|
3648
3648
|
"p",
|
|
3649
3649
|
{
|
|
3650
3650
|
className: g(
|
|
@@ -3658,7 +3658,7 @@ function rn({ className: e, ...r }) {
|
|
|
3658
3658
|
);
|
|
3659
3659
|
}
|
|
3660
3660
|
function tn({ children: e, className: r, ...t }) {
|
|
3661
|
-
return /* @__PURE__ */
|
|
3661
|
+
return /* @__PURE__ */ l("div", { className: g("flex items-center gap-1", r), "data-slot": "alert-actions", ...t, children: e });
|
|
3662
3662
|
}
|
|
3663
3663
|
/**
|
|
3664
3664
|
* @license lucide-react v0.545.0 - ISC
|
|
@@ -3708,7 +3708,7 @@ const ln = kr(
|
|
|
3708
3708
|
absoluteStrokeWidth: o,
|
|
3709
3709
|
className: n = "",
|
|
3710
3710
|
children: a,
|
|
3711
|
-
iconNode:
|
|
3711
|
+
iconNode: s,
|
|
3712
3712
|
...i
|
|
3713
3713
|
}, c) => We(
|
|
3714
3714
|
"svg",
|
|
@@ -3724,7 +3724,7 @@ const ln = kr(
|
|
|
3724
3724
|
...i
|
|
3725
3725
|
},
|
|
3726
3726
|
[
|
|
3727
|
-
...
|
|
3727
|
+
...s.map(([f, u]) => We(f, u)),
|
|
3728
3728
|
...Array.isArray(a) ? a : [a]
|
|
3729
3729
|
]
|
|
3730
3730
|
)
|
|
@@ -3785,7 +3785,7 @@ function nr({
|
|
|
3785
3785
|
loading: o = !1,
|
|
3786
3786
|
type: n = "button",
|
|
3787
3787
|
disabled: a = !1,
|
|
3788
|
-
className:
|
|
3788
|
+
className: s,
|
|
3789
3789
|
children: i,
|
|
3790
3790
|
...c
|
|
3791
3791
|
}) {
|
|
@@ -3810,14 +3810,14 @@ function nr({
|
|
|
3810
3810
|
}[t],
|
|
3811
3811
|
!o && !a && "hover:after:translate-x-0",
|
|
3812
3812
|
o && "pointer-events-none",
|
|
3813
|
-
|
|
3813
|
+
s
|
|
3814
3814
|
),
|
|
3815
3815
|
"data-slot": "button",
|
|
3816
3816
|
disabled: a,
|
|
3817
3817
|
type: n,
|
|
3818
3818
|
...c,
|
|
3819
3819
|
children: [
|
|
3820
|
-
/* @__PURE__ */
|
|
3820
|
+
/* @__PURE__ */ l(
|
|
3821
3821
|
"span",
|
|
3822
3822
|
{
|
|
3823
3823
|
className: g(
|
|
@@ -3841,14 +3841,14 @@ function nr({
|
|
|
3841
3841
|
children: i
|
|
3842
3842
|
}
|
|
3843
3843
|
),
|
|
3844
|
-
/* @__PURE__ */
|
|
3844
|
+
/* @__PURE__ */ l(
|
|
3845
3845
|
"span",
|
|
3846
3846
|
{
|
|
3847
3847
|
className: g(
|
|
3848
3848
|
"absolute inset-0 grid place-content-center transition-all duration-300 ease-in-out",
|
|
3849
3849
|
o ? "translate-y-0 opacity-100" : "translate-y-10 opacity-0"
|
|
3850
3850
|
),
|
|
3851
|
-
children: /* @__PURE__ */
|
|
3851
|
+
children: /* @__PURE__ */ l(
|
|
3852
3852
|
fn,
|
|
3853
3853
|
{
|
|
3854
3854
|
className: g(
|
|
@@ -3867,11 +3867,11 @@ function pn({ children: e, ...r }) {
|
|
|
3867
3867
|
const { action: t } = he();
|
|
3868
3868
|
if (!t) return null;
|
|
3869
3869
|
const { label: o, onClick: n } = t;
|
|
3870
|
-
return /* @__PURE__ */
|
|
3870
|
+
return /* @__PURE__ */ l(nr, { "data-slot": "alert-button", onClick: n, size: "x-small", variant: "ghost", ...r, children: o });
|
|
3871
3871
|
}
|
|
3872
3872
|
function bn({ ...e }) {
|
|
3873
3873
|
const { dismiss: r } = he(), { label: t, onClick: o } = r;
|
|
3874
|
-
return /* @__PURE__ */
|
|
3874
|
+
return /* @__PURE__ */ l(
|
|
3875
3875
|
nr,
|
|
3876
3876
|
{
|
|
3877
3877
|
"aria-label": t,
|
|
@@ -3881,12 +3881,12 @@ function bn({ ...e }) {
|
|
|
3881
3881
|
size: "x-small",
|
|
3882
3882
|
variant: "ghost",
|
|
3883
3883
|
...e,
|
|
3884
|
-
children: /* @__PURE__ */
|
|
3884
|
+
children: /* @__PURE__ */ l(or, { size: 20, strokeWidth: 1 })
|
|
3885
3885
|
}
|
|
3886
3886
|
);
|
|
3887
3887
|
}
|
|
3888
3888
|
function hn({ className: e, children: r, ...t }) {
|
|
3889
|
-
return /* @__PURE__ */
|
|
3889
|
+
return /* @__PURE__ */ l(
|
|
3890
3890
|
"span",
|
|
3891
3891
|
{
|
|
3892
3892
|
className: g(
|
|
@@ -3905,7 +3905,7 @@ function ya({
|
|
|
3905
3905
|
variant: o = "primary",
|
|
3906
3906
|
...n
|
|
3907
3907
|
}) {
|
|
3908
|
-
return /* @__PURE__ */
|
|
3908
|
+
return /* @__PURE__ */ l(
|
|
3909
3909
|
"span",
|
|
3910
3910
|
{
|
|
3911
3911
|
className: g(
|
|
@@ -3934,12 +3934,12 @@ const Ca = ({
|
|
|
3934
3934
|
hideDismiss: t = !1,
|
|
3935
3935
|
className: o,
|
|
3936
3936
|
onDismiss: n
|
|
3937
|
-
}) => /* @__PURE__ */
|
|
3938
|
-
/* @__PURE__ */
|
|
3939
|
-
/* @__PURE__ */
|
|
3937
|
+
}) => /* @__PURE__ */ l(gn, { hideDismiss: t, id: e, onDismiss: n, children: /* @__PURE__ */ l(vn, { className: o, children: /* @__PURE__ */ _(xn, { children: [
|
|
3938
|
+
/* @__PURE__ */ l(wn, { children: r }),
|
|
3939
|
+
/* @__PURE__ */ l(yn, {})
|
|
3940
3940
|
] }) }) }), at = Z(void 0);
|
|
3941
3941
|
function gn({ id: e, hideDismiss: r, onDismiss: t, children: o }) {
|
|
3942
|
-
const [n, a] = pe(!1), [
|
|
3942
|
+
const [n, a] = pe(!1), [s, i] = pe(!1);
|
|
3943
3943
|
Ge(() => {
|
|
3944
3944
|
const u = localStorage.getItem(`${e}-hidden-banner`) === "true";
|
|
3945
3945
|
a(u), i(!0);
|
|
@@ -3949,14 +3949,14 @@ function gn({ id: e, hideDismiss: r, onDismiss: t, children: o }) {
|
|
|
3949
3949
|
}, [e, t]), f = K(
|
|
3950
3950
|
() => ({
|
|
3951
3951
|
id: e,
|
|
3952
|
-
isInitialized:
|
|
3952
|
+
isInitialized: s,
|
|
3953
3953
|
isDismissed: n,
|
|
3954
3954
|
hideDismiss: r,
|
|
3955
3955
|
handleDismiss: c
|
|
3956
3956
|
}),
|
|
3957
|
-
[e,
|
|
3957
|
+
[e, s, n, r, c]
|
|
3958
3958
|
);
|
|
3959
|
-
return /* @__PURE__ */
|
|
3959
|
+
return /* @__PURE__ */ l(at.Provider, { value: f, children: s ? o : null });
|
|
3960
3960
|
}
|
|
3961
3961
|
function st() {
|
|
3962
3962
|
const e = J(at);
|
|
@@ -3966,7 +3966,7 @@ function st() {
|
|
|
3966
3966
|
}
|
|
3967
3967
|
function vn({ children: e, className: r, ...t }) {
|
|
3968
3968
|
const { id: o, isDismissed: n } = st();
|
|
3969
|
-
return /* @__PURE__ */
|
|
3969
|
+
return /* @__PURE__ */ l(
|
|
3970
3970
|
"div",
|
|
3971
3971
|
{
|
|
3972
3972
|
className: g(
|
|
@@ -3982,7 +3982,7 @@ function vn({ children: e, className: r, ...t }) {
|
|
|
3982
3982
|
);
|
|
3983
3983
|
}
|
|
3984
3984
|
function xn({ className: e, children: r }) {
|
|
3985
|
-
return /* @__PURE__ */
|
|
3985
|
+
return /* @__PURE__ */ l(
|
|
3986
3986
|
"div",
|
|
3987
3987
|
{
|
|
3988
3988
|
className: g("flex items-center justify-between gap-4 px-8 py-3", e),
|
|
@@ -3992,7 +3992,7 @@ function xn({ className: e, children: r }) {
|
|
|
3992
3992
|
);
|
|
3993
3993
|
}
|
|
3994
3994
|
function wn({ children: e, className: r, ...t }) {
|
|
3995
|
-
return /* @__PURE__ */
|
|
3995
|
+
return /* @__PURE__ */ l(
|
|
3996
3996
|
"div",
|
|
3997
3997
|
{
|
|
3998
3998
|
className: g(
|
|
@@ -4007,7 +4007,7 @@ function wn({ children: e, className: r, ...t }) {
|
|
|
4007
4007
|
}
|
|
4008
4008
|
function yn({ className: e, ...r }) {
|
|
4009
4009
|
const { hideDismiss: t, handleDismiss: o } = st();
|
|
4010
|
-
return t ? null : /* @__PURE__ */
|
|
4010
|
+
return t ? null : /* @__PURE__ */ l(
|
|
4011
4011
|
"button",
|
|
4012
4012
|
{
|
|
4013
4013
|
"aria-label": "Dismiss banner",
|
|
@@ -4020,7 +4020,7 @@ function yn({ className: e, ...r }) {
|
|
|
4020
4020
|
n.preventDefault(), o();
|
|
4021
4021
|
},
|
|
4022
4022
|
...r,
|
|
4023
|
-
children: /* @__PURE__ */
|
|
4023
|
+
children: /* @__PURE__ */ l(or, { absoluteStrokeWidth: !0, size: 20, strokeWidth: 1.5 })
|
|
4024
4024
|
}
|
|
4025
4025
|
);
|
|
4026
4026
|
}
|
|
@@ -4031,9 +4031,9 @@ function ka({
|
|
|
4031
4031
|
link: o,
|
|
4032
4032
|
image: n,
|
|
4033
4033
|
title: a,
|
|
4034
|
-
className:
|
|
4034
|
+
className: s
|
|
4035
4035
|
}) {
|
|
4036
|
-
return /* @__PURE__ */
|
|
4036
|
+
return /* @__PURE__ */ l(
|
|
4037
4037
|
Cn,
|
|
4038
4038
|
{
|
|
4039
4039
|
author: e,
|
|
@@ -4042,15 +4042,15 @@ function ka({
|
|
|
4042
4042
|
image: n,
|
|
4043
4043
|
link: o,
|
|
4044
4044
|
title: a,
|
|
4045
|
-
children: /* @__PURE__ */ _(kn, { className:
|
|
4046
|
-
/* @__PURE__ */
|
|
4047
|
-
/* @__PURE__ */
|
|
4048
|
-
/* @__PURE__ */
|
|
4045
|
+
children: /* @__PURE__ */ _(kn, { className: s, children: [
|
|
4046
|
+
/* @__PURE__ */ l(Sn, {}),
|
|
4047
|
+
/* @__PURE__ */ l(Rn, {}),
|
|
4048
|
+
/* @__PURE__ */ l(Pn, {}),
|
|
4049
4049
|
/* @__PURE__ */ _(Nn, { children: [
|
|
4050
|
-
/* @__PURE__ */
|
|
4051
|
-
/* @__PURE__ */
|
|
4050
|
+
/* @__PURE__ */ l(_n, {}),
|
|
4051
|
+
/* @__PURE__ */ l(En, {})
|
|
4052
4052
|
] }),
|
|
4053
|
-
/* @__PURE__ */
|
|
4053
|
+
/* @__PURE__ */ l(An, {})
|
|
4054
4054
|
] })
|
|
4055
4055
|
}
|
|
4056
4056
|
);
|
|
@@ -4063,7 +4063,7 @@ function Cn({
|
|
|
4063
4063
|
content: o,
|
|
4064
4064
|
date: n,
|
|
4065
4065
|
image: a,
|
|
4066
|
-
link:
|
|
4066
|
+
link: s
|
|
4067
4067
|
}) {
|
|
4068
4068
|
const i = K(
|
|
4069
4069
|
() => ({
|
|
@@ -4072,11 +4072,11 @@ function Cn({
|
|
|
4072
4072
|
content: o,
|
|
4073
4073
|
date: n,
|
|
4074
4074
|
image: a,
|
|
4075
|
-
link:
|
|
4075
|
+
link: s
|
|
4076
4076
|
}),
|
|
4077
|
-
[r, t, o, n, a,
|
|
4077
|
+
[r, t, o, n, a, s]
|
|
4078
4078
|
);
|
|
4079
|
-
return /* @__PURE__ */
|
|
4079
|
+
return /* @__PURE__ */ l(lt.Provider, { value: i, children: e });
|
|
4080
4080
|
}
|
|
4081
4081
|
function de() {
|
|
4082
4082
|
const e = J(lt);
|
|
@@ -4090,7 +4090,7 @@ function kn({
|
|
|
4090
4090
|
children: t,
|
|
4091
4091
|
...o
|
|
4092
4092
|
}) {
|
|
4093
|
-
return /* @__PURE__ */
|
|
4093
|
+
return /* @__PURE__ */ l(
|
|
4094
4094
|
e ?? "article",
|
|
4095
4095
|
{
|
|
4096
4096
|
className: g(
|
|
@@ -4104,7 +4104,7 @@ function kn({
|
|
|
4104
4104
|
);
|
|
4105
4105
|
}
|
|
4106
4106
|
function Sa({ children: e, className: r, ...t }) {
|
|
4107
|
-
return /* @__PURE__ */
|
|
4107
|
+
return /* @__PURE__ */ l(
|
|
4108
4108
|
"div",
|
|
4109
4109
|
{
|
|
4110
4110
|
className: g(
|
|
@@ -4119,7 +4119,7 @@ function Sa({ children: e, className: r, ...t }) {
|
|
|
4119
4119
|
function Sn({ className: e, ...r }) {
|
|
4120
4120
|
const { image: t, title: o } = de(), n = "h-full w-full object-cover transition-transform duration-500 ease-out group-hover:scale-110", a = () => {
|
|
4121
4121
|
if (!t)
|
|
4122
|
-
return /* @__PURE__ */
|
|
4122
|
+
return /* @__PURE__ */ l(
|
|
4123
4123
|
"div",
|
|
4124
4124
|
{
|
|
4125
4125
|
className: g(
|
|
@@ -4130,10 +4130,10 @@ function Sn({ className: e, ...r }) {
|
|
|
4130
4130
|
children: o
|
|
4131
4131
|
}
|
|
4132
4132
|
);
|
|
4133
|
-
const { src:
|
|
4134
|
-
return c ? c({ src:
|
|
4133
|
+
const { src: s, alt: i, render: c } = t;
|
|
4134
|
+
return c ? c({ src: s, alt: i, className: n }) : /* @__PURE__ */ l("img", { alt: i, className: n, src: s });
|
|
4135
4135
|
};
|
|
4136
|
-
return /* @__PURE__ */
|
|
4136
|
+
return /* @__PURE__ */ l(
|
|
4137
4137
|
"div",
|
|
4138
4138
|
{
|
|
4139
4139
|
className: g(
|
|
@@ -4152,11 +4152,11 @@ function An({ className: e, ...r }) {
|
|
|
4152
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",
|
|
4153
4153
|
e
|
|
4154
4154
|
);
|
|
4155
|
-
return n ? n({ href: t, ariaLabel: o, className: a, ...r }) : /* @__PURE__ */
|
|
4155
|
+
return n ? n({ href: t, ariaLabel: o, className: a, ...r }) : /* @__PURE__ */ l("a", { className: a, href: t, ...r, children: /* @__PURE__ */ l("span", { className: "sr-only", children: o }) });
|
|
4156
4156
|
}
|
|
4157
4157
|
function Rn({ className: e, ...r }) {
|
|
4158
4158
|
const { title: t } = de();
|
|
4159
|
-
return /* @__PURE__ */
|
|
4159
|
+
return /* @__PURE__ */ l(
|
|
4160
4160
|
"h5",
|
|
4161
4161
|
{
|
|
4162
4162
|
className: g(
|
|
@@ -4171,7 +4171,7 @@ function Rn({ className: e, ...r }) {
|
|
|
4171
4171
|
}
|
|
4172
4172
|
function Pn({ className: e, ...r }) {
|
|
4173
4173
|
const { content: t } = de();
|
|
4174
|
-
return /* @__PURE__ */
|
|
4174
|
+
return /* @__PURE__ */ l(
|
|
4175
4175
|
"p",
|
|
4176
4176
|
{
|
|
4177
4177
|
className: g(
|
|
@@ -4185,7 +4185,7 @@ function Pn({ className: e, ...r }) {
|
|
|
4185
4185
|
);
|
|
4186
4186
|
}
|
|
4187
4187
|
function Nn({ children: e, className: r, ...t }) {
|
|
4188
|
-
return /* @__PURE__ */
|
|
4188
|
+
return /* @__PURE__ */ l(
|
|
4189
4189
|
"div",
|
|
4190
4190
|
{
|
|
4191
4191
|
className: g(
|
|
@@ -4200,7 +4200,7 @@ function Nn({ children: e, className: r, ...t }) {
|
|
|
4200
4200
|
}
|
|
4201
4201
|
function _n({ className: e, ...r }) {
|
|
4202
4202
|
const { date: t } = de();
|
|
4203
|
-
return /* @__PURE__ */
|
|
4203
|
+
return /* @__PURE__ */ l("time", { dateTime: t, ...r, "data-slot": "blog-post-card-date", children: new Date(t).toLocaleDateString("en-US", {
|
|
4204
4204
|
year: "numeric",
|
|
4205
4205
|
month: "long",
|
|
4206
4206
|
day: "numeric"
|
|
@@ -4210,7 +4210,7 @@ function En({ className: e, ...r }) {
|
|
|
4210
4210
|
const { author: t } = de();
|
|
4211
4211
|
if (t != null)
|
|
4212
4212
|
return /* @__PURE__ */ _(te, { children: [
|
|
4213
|
-
/* @__PURE__ */
|
|
4213
|
+
/* @__PURE__ */ l(
|
|
4214
4214
|
"span",
|
|
4215
4215
|
{
|
|
4216
4216
|
className: g("after:mx-2 after:content-['•']", e),
|
|
@@ -4218,11 +4218,11 @@ function En({ className: e, ...r }) {
|
|
|
4218
4218
|
...r
|
|
4219
4219
|
}
|
|
4220
4220
|
),
|
|
4221
|
-
/* @__PURE__ */
|
|
4221
|
+
/* @__PURE__ */ l("span", { children: t })
|
|
4222
4222
|
] });
|
|
4223
4223
|
}
|
|
4224
4224
|
function it({ className: e, ...r }) {
|
|
4225
|
-
return /* @__PURE__ */
|
|
4225
|
+
return /* @__PURE__ */ l(
|
|
4226
4226
|
"div",
|
|
4227
4227
|
{
|
|
4228
4228
|
className: g(
|
|
@@ -4235,13 +4235,13 @@ function it({ className: e, ...r }) {
|
|
|
4235
4235
|
);
|
|
4236
4236
|
}
|
|
4237
4237
|
function me({ characterCount: e = 10, className: r, ...t }) {
|
|
4238
|
-
return /* @__PURE__ */
|
|
4238
|
+
return /* @__PURE__ */ l(
|
|
4239
4239
|
"div",
|
|
4240
4240
|
{
|
|
4241
4241
|
className: g("flex h-[1lh] items-center", r),
|
|
4242
4242
|
"data-slot": "skeleton-text",
|
|
4243
4243
|
...t,
|
|
4244
|
-
children: /* @__PURE__ */
|
|
4244
|
+
children: /* @__PURE__ */ l(
|
|
4245
4245
|
"div",
|
|
4246
4246
|
{
|
|
4247
4247
|
className: g(
|
|
@@ -4259,7 +4259,7 @@ function Aa({
|
|
|
4259
4259
|
...t
|
|
4260
4260
|
}) {
|
|
4261
4261
|
return /* @__PURE__ */ _("div", { className: g("w-full max-w-md @container", e), ...t, children: [
|
|
4262
|
-
/* @__PURE__ */
|
|
4262
|
+
/* @__PURE__ */ l(
|
|
4263
4263
|
it,
|
|
4264
4264
|
{
|
|
4265
4265
|
className: g(
|
|
@@ -4273,13 +4273,13 @@ function Aa({
|
|
|
4273
4273
|
)
|
|
4274
4274
|
}
|
|
4275
4275
|
),
|
|
4276
|
-
/* @__PURE__ */
|
|
4276
|
+
/* @__PURE__ */ l(me, { characterCount: 25, className: "mt-4 rounded text-lg" }),
|
|
4277
4277
|
/* @__PURE__ */ _("div", { className: "mt-1.5", children: [
|
|
4278
|
-
/* @__PURE__ */
|
|
4279
|
-
/* @__PURE__ */
|
|
4280
|
-
/* @__PURE__ */
|
|
4278
|
+
/* @__PURE__ */ l(me, { characterCount: "full", className: "rounded text-sm" }),
|
|
4279
|
+
/* @__PURE__ */ l(me, { characterCount: "full", className: "rounded text-sm" }),
|
|
4280
|
+
/* @__PURE__ */ l(me, { characterCount: 15, className: "rounded text-sm" })
|
|
4281
4281
|
] }),
|
|
4282
|
-
/* @__PURE__ */
|
|
4282
|
+
/* @__PURE__ */ l(me, { characterCount: 10, className: "mt-3 rounded text-sm" })
|
|
4283
4283
|
] });
|
|
4284
4284
|
}
|
|
4285
4285
|
function Ra({
|
|
@@ -4289,7 +4289,7 @@ function Ra({
|
|
|
4289
4289
|
className: o,
|
|
4290
4290
|
children: n,
|
|
4291
4291
|
render: a,
|
|
4292
|
-
...
|
|
4292
|
+
...s
|
|
4293
4293
|
}) {
|
|
4294
4294
|
const i = g(
|
|
4295
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",
|
|
@@ -4306,7 +4306,7 @@ function Ra({
|
|
|
4306
4306
|
circle: "rounded-full after:rounded-full"
|
|
4307
4307
|
}[t],
|
|
4308
4308
|
o
|
|
4309
|
-
), c = /* @__PURE__ */
|
|
4309
|
+
), c = /* @__PURE__ */ l(
|
|
4310
4310
|
"span",
|
|
4311
4311
|
{
|
|
4312
4312
|
className: g(
|
|
@@ -4331,17 +4331,17 @@ function Ra({
|
|
|
4331
4331
|
);
|
|
4332
4332
|
function f() {
|
|
4333
4333
|
return a ? a({
|
|
4334
|
-
...
|
|
4334
|
+
...s,
|
|
4335
4335
|
className: i,
|
|
4336
4336
|
children: c
|
|
4337
|
-
}) : /* @__PURE__ */
|
|
4337
|
+
}) : /* @__PURE__ */ l("a", { ...s, className: i, children: c });
|
|
4338
4338
|
}
|
|
4339
|
-
return /* @__PURE__ */
|
|
4339
|
+
return /* @__PURE__ */ l(te, { children: f() });
|
|
4340
4340
|
}
|
|
4341
4341
|
function Pa({ as: e, className: r, children: t, link: o, ...n }) {
|
|
4342
4342
|
return /* @__PURE__ */ _(Ln, { as: e, className: r, ...n, children: [
|
|
4343
4343
|
t,
|
|
4344
|
-
/* @__PURE__ */
|
|
4344
|
+
/* @__PURE__ */ l(In, { link: o })
|
|
4345
4345
|
] });
|
|
4346
4346
|
}
|
|
4347
4347
|
function In({ link: e }) {
|
|
@@ -4350,14 +4350,14 @@ function In({ link: e }) {
|
|
|
4350
4350
|
"absolute inset-0 rounded-2xl",
|
|
4351
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)))]"
|
|
4352
4352
|
);
|
|
4353
|
-
return o ? o({ href: r, ariaLabel: t, className: n }) : /* @__PURE__ */
|
|
4353
|
+
return o ? o({ href: r, ariaLabel: t, className: n }) : /* @__PURE__ */ l("a", { className: n, "data-slot": "card-link", href: r, children: /* @__PURE__ */ l("span", { className: "sr-only", children: t }) });
|
|
4354
4354
|
}
|
|
4355
4355
|
function Ln({
|
|
4356
4356
|
as: e,
|
|
4357
4357
|
className: r,
|
|
4358
4358
|
children: t
|
|
4359
4359
|
}) {
|
|
4360
|
-
return /* @__PURE__ */
|
|
4360
|
+
return /* @__PURE__ */ l(
|
|
4361
4361
|
e ?? "div",
|
|
4362
4362
|
{
|
|
4363
4363
|
className: g(
|
|
@@ -4372,16 +4372,16 @@ function Ln({
|
|
|
4372
4372
|
);
|
|
4373
4373
|
}
|
|
4374
4374
|
function Na({ className: e, ...r }) {
|
|
4375
|
-
return /* @__PURE__ */
|
|
4375
|
+
return /* @__PURE__ */ l("div", { className: g("@container", e), ...r, children: /* @__PURE__ */ l(it, {}) });
|
|
4376
4376
|
}
|
|
4377
4377
|
function _a({ className: e, children: r, removeLabel: t = "Remove", ...o }) {
|
|
4378
4378
|
return /* @__PURE__ */ _(Tn, { className: e, children: [
|
|
4379
4379
|
r,
|
|
4380
|
-
/* @__PURE__ */
|
|
4380
|
+
/* @__PURE__ */ l(Mn, { title: t, ...o })
|
|
4381
4381
|
] });
|
|
4382
4382
|
}
|
|
4383
4383
|
function Tn({ children: e, className: r, ...t }) {
|
|
4384
|
-
return /* @__PURE__ */
|
|
4384
|
+
return /* @__PURE__ */ l(
|
|
4385
4385
|
"span",
|
|
4386
4386
|
{
|
|
4387
4387
|
className: g(
|
|
@@ -4394,7 +4394,7 @@ function Tn({ children: e, className: r, ...t }) {
|
|
|
4394
4394
|
);
|
|
4395
4395
|
}
|
|
4396
4396
|
function Mn({ className: e, ...r }) {
|
|
4397
|
-
return /* @__PURE__ */
|
|
4397
|
+
return /* @__PURE__ */ l(
|
|
4398
4398
|
"button",
|
|
4399
4399
|
{
|
|
4400
4400
|
className: g(
|
|
@@ -4402,31 +4402,31 @@ function Mn({ className: e, ...r }) {
|
|
|
4402
4402
|
e
|
|
4403
4403
|
),
|
|
4404
4404
|
...r,
|
|
4405
|
-
children: /* @__PURE__ */
|
|
4405
|
+
children: /* @__PURE__ */ l(or, { size: 12 })
|
|
4406
4406
|
}
|
|
4407
4407
|
);
|
|
4408
4408
|
}
|
|
4409
4409
|
function Ea({ checked: e = !1, setChecked: r }) {
|
|
4410
|
-
return /* @__PURE__ */
|
|
4410
|
+
return /* @__PURE__ */ l(On, { onPressedChange: r, pressed: e, children: /* @__PURE__ */ l(Dn, { filled: e }) });
|
|
4411
4411
|
}
|
|
4412
4412
|
var ct = "Toggle", dt = d.forwardRef((e, r) => {
|
|
4413
|
-
const { pressed: t, defaultPressed: o, onPressedChange: n, ...a } = e, [
|
|
4413
|
+
const { pressed: t, defaultPressed: o, onPressedChange: n, ...a } = e, [s, i] = _e({
|
|
4414
4414
|
prop: t,
|
|
4415
4415
|
onChange: n,
|
|
4416
4416
|
defaultProp: o ?? !1,
|
|
4417
4417
|
caller: ct
|
|
4418
4418
|
});
|
|
4419
|
-
return /* @__PURE__ */
|
|
4419
|
+
return /* @__PURE__ */ l(
|
|
4420
4420
|
j.button,
|
|
4421
4421
|
{
|
|
4422
4422
|
type: "button",
|
|
4423
|
-
"aria-pressed":
|
|
4424
|
-
"data-state":
|
|
4423
|
+
"aria-pressed": s,
|
|
4424
|
+
"data-state": s ? "on" : "off",
|
|
4425
4425
|
"data-disabled": e.disabled ? "" : void 0,
|
|
4426
4426
|
...a,
|
|
4427
4427
|
ref: r,
|
|
4428
4428
|
onClick: F(e.onClick, () => {
|
|
4429
|
-
e.disabled || i(!
|
|
4429
|
+
e.disabled || i(!s);
|
|
4430
4430
|
})
|
|
4431
4431
|
}
|
|
4432
4432
|
);
|
|
@@ -4434,7 +4434,7 @@ var ct = "Toggle", dt = d.forwardRef((e, r) => {
|
|
|
4434
4434
|
dt.displayName = ct;
|
|
4435
4435
|
var zn = dt;
|
|
4436
4436
|
function On({ children: e, className: r, ...t }) {
|
|
4437
|
-
return /* @__PURE__ */
|
|
4437
|
+
return /* @__PURE__ */ l(
|
|
4438
4438
|
zn,
|
|
4439
4439
|
{
|
|
4440
4440
|
className: g(
|
|
@@ -4461,7 +4461,7 @@ function Dn({ filled: e = !1, className: r, ...t }) {
|
|
|
4461
4461
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4462
4462
|
...t,
|
|
4463
4463
|
children: [
|
|
4464
|
-
/* @__PURE__ */
|
|
4464
|
+
/* @__PURE__ */ l(
|
|
4465
4465
|
"path",
|
|
4466
4466
|
{
|
|
4467
4467
|
className: g({
|
|
@@ -4473,7 +4473,7 @@ function Dn({ filled: e = !1, className: r, ...t }) {
|
|
|
4473
4473
|
strokeLinejoin: "round"
|
|
4474
4474
|
}
|
|
4475
4475
|
),
|
|
4476
|
-
/* @__PURE__ */
|
|
4476
|
+
/* @__PURE__ */ l(
|
|
4477
4477
|
"path",
|
|
4478
4478
|
{
|
|
4479
4479
|
className: g(
|
|
@@ -4497,16 +4497,16 @@ function Ia({ className: e, children: r, ...t }) {
|
|
|
4497
4497
|
),
|
|
4498
4498
|
...t,
|
|
4499
4499
|
children: [
|
|
4500
|
-
/* @__PURE__ */
|
|
4500
|
+
/* @__PURE__ */ l(dn, { size: 20, strokeWidth: 1.5 }),
|
|
4501
4501
|
r
|
|
4502
4502
|
]
|
|
4503
4503
|
}
|
|
4504
4504
|
);
|
|
4505
4505
|
}
|
|
4506
4506
|
function La({ showRating: e = !0, rating: r, className: t }) {
|
|
4507
|
-
return /* @__PURE__ */
|
|
4508
|
-
/* @__PURE__ */
|
|
4509
|
-
/* @__PURE__ */
|
|
4507
|
+
return /* @__PURE__ */ l(Bn, { rating: r, showRating: e, children: /* @__PURE__ */ _(Vn, { className: t, children: [
|
|
4508
|
+
/* @__PURE__ */ l($n, {}),
|
|
4509
|
+
/* @__PURE__ */ l(jn, {})
|
|
4510
4510
|
] }) });
|
|
4511
4511
|
}
|
|
4512
4512
|
const ut = Z(void 0);
|
|
@@ -4516,7 +4516,7 @@ function Bn({ children: e, rating: r, showRating: t = !0 }) {
|
|
|
4516
4516
|
return o.current += 1, i;
|
|
4517
4517
|
}, []), a = be(() => {
|
|
4518
4518
|
o.current = 0;
|
|
4519
|
-
}, []),
|
|
4519
|
+
}, []), s = K(() => {
|
|
4520
4520
|
const i = Math.min(r, 5), c = Array.from({ length: 5 }, (f, u) => u < Math.floor(i) ? "full" : u < Math.ceil(i) ? "half" : "empty");
|
|
4521
4521
|
return {
|
|
4522
4522
|
rating: r,
|
|
@@ -4527,7 +4527,7 @@ function Bn({ children: e, rating: r, showRating: t = !0 }) {
|
|
|
4527
4527
|
resetStarIndex: a
|
|
4528
4528
|
};
|
|
4529
4529
|
}, [r, t]);
|
|
4530
|
-
return /* @__PURE__ */
|
|
4530
|
+
return /* @__PURE__ */ l(ut.Provider, { value: s, children: e });
|
|
4531
4531
|
}
|
|
4532
4532
|
function ar() {
|
|
4533
4533
|
const e = J(ut);
|
|
@@ -4536,11 +4536,11 @@ function ar() {
|
|
|
4536
4536
|
return e;
|
|
4537
4537
|
}
|
|
4538
4538
|
function Vn({ children: e, className: r, ...t }) {
|
|
4539
|
-
return /* @__PURE__ */
|
|
4539
|
+
return /* @__PURE__ */ l("div", { className: g("flex items-center", r), ...t, children: e });
|
|
4540
4540
|
}
|
|
4541
4541
|
function Wn({ className: e, ...r }) {
|
|
4542
|
-
const { stars: t, getNextStarIndex: o } = ar(), n = o(), a = t[n] ?? "empty",
|
|
4543
|
-
empty: /* @__PURE__ */
|
|
4542
|
+
const { stars: t, getNextStarIndex: o } = ar(), n = o(), a = t[n] ?? "empty", s = {
|
|
4543
|
+
empty: /* @__PURE__ */ l(
|
|
4544
4544
|
"path",
|
|
4545
4545
|
{
|
|
4546
4546
|
d: "M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",
|
|
@@ -4551,7 +4551,7 @@ function Wn({ className: e, ...r }) {
|
|
|
4551
4551
|
}
|
|
4552
4552
|
),
|
|
4553
4553
|
half: /* @__PURE__ */ _(te, { children: [
|
|
4554
|
-
/* @__PURE__ */
|
|
4554
|
+
/* @__PURE__ */ l(
|
|
4555
4555
|
"path",
|
|
4556
4556
|
{
|
|
4557
4557
|
d: "M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",
|
|
@@ -4560,7 +4560,7 @@ function Wn({ className: e, ...r }) {
|
|
|
4560
4560
|
strokeLinejoin: "round"
|
|
4561
4561
|
}
|
|
4562
4562
|
),
|
|
4563
|
-
/* @__PURE__ */
|
|
4563
|
+
/* @__PURE__ */ l(
|
|
4564
4564
|
"path",
|
|
4565
4565
|
{
|
|
4566
4566
|
d: "M10.0003 1.6665V14.8082L4.85033 17.5165L5.83366 11.7832L1.66699 7.72484L7.42533 6.88317L10.0003 1.6665Z",
|
|
@@ -4568,7 +4568,7 @@ function Wn({ className: e, ...r }) {
|
|
|
4568
4568
|
}
|
|
4569
4569
|
)
|
|
4570
4570
|
] }),
|
|
4571
|
-
full: /* @__PURE__ */
|
|
4571
|
+
full: /* @__PURE__ */ l(
|
|
4572
4572
|
"path",
|
|
4573
4573
|
{
|
|
4574
4574
|
d: "M9.99984 1.66669L12.5748 6.88335L18.3332 7.72502L14.1665 11.7834L15.1498 17.5167L9.99984 14.8084L4.84984 17.5167L5.83317 11.7834L1.6665 7.72502L7.42484 6.88335L9.99984 1.66669Z",
|
|
@@ -4579,7 +4579,7 @@ function Wn({ className: e, ...r }) {
|
|
|
4579
4579
|
}
|
|
4580
4580
|
)
|
|
4581
4581
|
};
|
|
4582
|
-
return /* @__PURE__ */
|
|
4582
|
+
return /* @__PURE__ */ l(
|
|
4583
4583
|
"svg",
|
|
4584
4584
|
{
|
|
4585
4585
|
className: g("inline-block text-[var(--rating-icon,hsl(var(--foreground)))]", e),
|
|
@@ -4588,17 +4588,17 @@ function Wn({ className: e, ...r }) {
|
|
|
4588
4588
|
viewBox: "0 0 20 20",
|
|
4589
4589
|
width: 20,
|
|
4590
4590
|
...r,
|
|
4591
|
-
children:
|
|
4591
|
+
children: s[a]
|
|
4592
4592
|
}
|
|
4593
4593
|
);
|
|
4594
4594
|
}
|
|
4595
4595
|
function $n() {
|
|
4596
4596
|
const { resetStarIndex: e } = ar();
|
|
4597
|
-
return e(), /* @__PURE__ */
|
|
4597
|
+
return e(), /* @__PURE__ */ l(te, { children: [0, 1, 2, 3, 4].map((r) => /* @__PURE__ */ l(Wn, {}, r)) });
|
|
4598
4598
|
}
|
|
4599
4599
|
function jn({ className: e, ...r }) {
|
|
4600
4600
|
const { adjustedRating: t, showRating: o } = ar();
|
|
4601
|
-
return o ? /* @__PURE__ */
|
|
4601
|
+
return o ? /* @__PURE__ */ l(
|
|
4602
4602
|
"span",
|
|
4603
4603
|
{
|
|
4604
4604
|
className: g(
|
|
@@ -4617,9 +4617,9 @@ function Ta({
|
|
|
4617
4617
|
hideLabel: o = "Show less",
|
|
4618
4618
|
defaultOpen: n = !1,
|
|
4619
4619
|
maxHeight: a = "10rem",
|
|
4620
|
-
children:
|
|
4620
|
+
children: s
|
|
4621
4621
|
}) {
|
|
4622
|
-
return /* @__PURE__ */
|
|
4622
|
+
return /* @__PURE__ */ l(
|
|
4623
4623
|
Fn,
|
|
4624
4624
|
{
|
|
4625
4625
|
defaultOpen: n,
|
|
@@ -4628,14 +4628,14 @@ function Ta({
|
|
|
4628
4628
|
showLabel: t,
|
|
4629
4629
|
variant: r,
|
|
4630
4630
|
children: /* @__PURE__ */ _(Hn, { className: e, children: [
|
|
4631
|
-
/* @__PURE__ */
|
|
4632
|
-
/* @__PURE__ */
|
|
4631
|
+
/* @__PURE__ */ l(Un, { children: s }),
|
|
4632
|
+
/* @__PURE__ */ l(Gn, { children: /* @__PURE__ */ l(Xn, {}) })
|
|
4633
4633
|
] })
|
|
4634
4634
|
}
|
|
4635
4635
|
);
|
|
4636
4636
|
}
|
|
4637
4637
|
function Hn({ children: e, className: r, ...t }) {
|
|
4638
|
-
return /* @__PURE__ */
|
|
4638
|
+
return /* @__PURE__ */ l("div", { className: g("relative", r), ...t, children: e });
|
|
4639
4639
|
}
|
|
4640
4640
|
const ft = Z(void 0);
|
|
4641
4641
|
function Fn({
|
|
@@ -4646,7 +4646,7 @@ function Fn({
|
|
|
4646
4646
|
defaultOpen: n = !1,
|
|
4647
4647
|
maxHeight: a = "10rem"
|
|
4648
4648
|
}) {
|
|
4649
|
-
const [
|
|
4649
|
+
const [s, i] = pe(n), [c, f] = pe(!0), u = Sr(null), m = be((w) => {
|
|
4650
4650
|
const C = parseFloat(w);
|
|
4651
4651
|
return w.endsWith("rem") ? C * 16 : (w.endsWith("px"), C);
|
|
4652
4652
|
}, []);
|
|
@@ -4667,7 +4667,7 @@ function Fn({
|
|
|
4667
4667
|
i((w) => !w);
|
|
4668
4668
|
}, []), v = K(
|
|
4669
4669
|
() => ({
|
|
4670
|
-
isOpen:
|
|
4670
|
+
isOpen: s,
|
|
4671
4671
|
hasOverflow: c,
|
|
4672
4672
|
variant: r,
|
|
4673
4673
|
showLabel: t,
|
|
@@ -4676,9 +4676,9 @@ function Fn({
|
|
|
4676
4676
|
contentRef: u,
|
|
4677
4677
|
toggleOpen: p
|
|
4678
4678
|
}),
|
|
4679
|
-
[
|
|
4679
|
+
[s, c, r, t, o, a, p]
|
|
4680
4680
|
);
|
|
4681
|
-
return /* @__PURE__ */
|
|
4681
|
+
return /* @__PURE__ */ l(ft.Provider, { value: v, children: e });
|
|
4682
4682
|
}
|
|
4683
4683
|
function sr() {
|
|
4684
4684
|
const e = J(ft);
|
|
@@ -4687,8 +4687,8 @@ function sr() {
|
|
|
4687
4687
|
return e;
|
|
4688
4688
|
}
|
|
4689
4689
|
function Un({ children: e, className: r, ...t }) {
|
|
4690
|
-
const { hasOverflow: o, isOpen: n, maxHeight: a, contentRef:
|
|
4691
|
-
return /* @__PURE__ */
|
|
4690
|
+
const { hasOverflow: o, isOpen: n, maxHeight: a, contentRef: s } = sr();
|
|
4691
|
+
return /* @__PURE__ */ l(
|
|
4692
4692
|
"div",
|
|
4693
4693
|
{
|
|
4694
4694
|
className: g(
|
|
@@ -4696,7 +4696,7 @@ function Un({ children: e, className: r, ...t }) {
|
|
|
4696
4696
|
"overflow-hidden",
|
|
4697
4697
|
r
|
|
4698
4698
|
),
|
|
4699
|
-
ref:
|
|
4699
|
+
ref: s,
|
|
4700
4700
|
style: { maxHeight: n ? "none" : a },
|
|
4701
4701
|
...t,
|
|
4702
4702
|
children: e
|
|
@@ -4705,22 +4705,22 @@ function Un({ children: e, className: r, ...t }) {
|
|
|
4705
4705
|
}
|
|
4706
4706
|
function Gn({ children: e, className: r, ...t }) {
|
|
4707
4707
|
const { hasOverflow: o } = sr();
|
|
4708
|
-
return o ? /* @__PURE__ */
|
|
4708
|
+
return o ? /* @__PURE__ */ l("div", { className: g("flex w-full items-end pt-4", r), ...t, children: e }) : null;
|
|
4709
4709
|
}
|
|
4710
4710
|
function Xn({ children: e, className: r, ...t }) {
|
|
4711
|
-
const { variant: o, showLabel: n, hideLabel: a, isOpen:
|
|
4711
|
+
const { variant: o, showLabel: n, hideLabel: a, isOpen: s, toggleOpen: i } = sr();
|
|
4712
4712
|
return /* @__PURE__ */ _(te, { children: [
|
|
4713
|
-
o === "underline" && /* @__PURE__ */
|
|
4713
|
+
o === "underline" && /* @__PURE__ */ l(
|
|
4714
4714
|
"button",
|
|
4715
4715
|
{
|
|
4716
4716
|
className: g("group/underline text-sm focus:outline-none", r),
|
|
4717
4717
|
onClick: () => i(),
|
|
4718
4718
|
type: "button",
|
|
4719
4719
|
...t,
|
|
4720
|
-
children: /* @__PURE__ */
|
|
4720
|
+
children: /* @__PURE__ */ l(hn, { children: s ? a : n })
|
|
4721
4721
|
}
|
|
4722
4722
|
),
|
|
4723
|
-
o === "button" && /* @__PURE__ */
|
|
4723
|
+
o === "button" && /* @__PURE__ */ l(
|
|
4724
4724
|
nr,
|
|
4725
4725
|
{
|
|
4726
4726
|
className: r,
|
|
@@ -4729,7 +4729,7 @@ function Xn({ children: e, className: r, ...t }) {
|
|
|
4729
4729
|
type: "button",
|
|
4730
4730
|
variant: "tertiary",
|
|
4731
4731
|
...t,
|
|
4732
|
-
children:
|
|
4732
|
+
children: s ? a : n
|
|
4733
4733
|
}
|
|
4734
4734
|
)
|
|
4735
4735
|
] });
|
|
@@ -4741,16 +4741,16 @@ function Ma({
|
|
|
4741
4741
|
scrollHideDelay: o = 500,
|
|
4742
4742
|
type: n = "hover"
|
|
4743
4743
|
}) {
|
|
4744
|
-
return /* @__PURE__ */
|
|
4744
|
+
return /* @__PURE__ */ l(
|
|
4745
4745
|
da,
|
|
4746
4746
|
{
|
|
4747
4747
|
orientation: t,
|
|
4748
4748
|
scrollHideDelay: o,
|
|
4749
4749
|
type: n,
|
|
4750
4750
|
children: /* @__PURE__ */ _(ca, { className: e, children: [
|
|
4751
|
-
/* @__PURE__ */
|
|
4752
|
-
/* @__PURE__ */
|
|
4753
|
-
/* @__PURE__ */
|
|
4751
|
+
/* @__PURE__ */ l(fa, { children: r }),
|
|
4752
|
+
/* @__PURE__ */ l(ma, { children: /* @__PURE__ */ l(pa, {}) }),
|
|
4753
|
+
/* @__PURE__ */ l(ba, {})
|
|
4754
4754
|
] })
|
|
4755
4755
|
}
|
|
4756
4756
|
);
|
|
@@ -4774,9 +4774,9 @@ var lr = "ScrollArea", [mt] = Ne(lr), [Zn, W] = mt(lr), pt = d.forwardRef(
|
|
|
4774
4774
|
type: o = "hover",
|
|
4775
4775
|
dir: n,
|
|
4776
4776
|
scrollHideDelay: a = 600,
|
|
4777
|
-
...
|
|
4777
|
+
...s
|
|
4778
4778
|
} = e, [i, c] = d.useState(null), [f, u] = d.useState(null), [m, p] = d.useState(null), [v, w] = d.useState(null), [C, A] = d.useState(null), [R, k] = d.useState(0), [N, E] = d.useState(0), [M, I] = d.useState(!1), [D, x] = d.useState(!1), P = $(r, (G) => c(G)), B = Lr(n);
|
|
4779
|
-
return /* @__PURE__ */
|
|
4779
|
+
return /* @__PURE__ */ l(
|
|
4780
4780
|
Zn,
|
|
4781
4781
|
{
|
|
4782
4782
|
scope: t,
|
|
@@ -4798,11 +4798,11 @@ var lr = "ScrollArea", [mt] = Ne(lr), [Zn, W] = mt(lr), pt = d.forwardRef(
|
|
|
4798
4798
|
onScrollbarYEnabledChange: x,
|
|
4799
4799
|
onCornerWidthChange: k,
|
|
4800
4800
|
onCornerHeightChange: E,
|
|
4801
|
-
children: /* @__PURE__ */
|
|
4801
|
+
children: /* @__PURE__ */ l(
|
|
4802
4802
|
j.div,
|
|
4803
4803
|
{
|
|
4804
4804
|
dir: B,
|
|
4805
|
-
...
|
|
4805
|
+
...s,
|
|
4806
4806
|
ref: P,
|
|
4807
4807
|
style: {
|
|
4808
4808
|
position: "relative",
|
|
@@ -4820,9 +4820,9 @@ var lr = "ScrollArea", [mt] = Ne(lr), [Zn, W] = mt(lr), pt = d.forwardRef(
|
|
|
4820
4820
|
pt.displayName = lr;
|
|
4821
4821
|
var bt = "ScrollAreaViewport", ht = d.forwardRef(
|
|
4822
4822
|
(e, r) => {
|
|
4823
|
-
const { __scopeScrollArea: t, children: o, nonce: n, ...a } = e,
|
|
4823
|
+
const { __scopeScrollArea: t, children: o, nonce: n, ...a } = e, s = W(bt, t), i = d.useRef(null), c = $(r, i, s.onViewportChange);
|
|
4824
4824
|
return /* @__PURE__ */ _(te, { children: [
|
|
4825
|
-
/* @__PURE__ */
|
|
4825
|
+
/* @__PURE__ */ l(
|
|
4826
4826
|
"style",
|
|
4827
4827
|
{
|
|
4828
4828
|
dangerouslySetInnerHTML: {
|
|
@@ -4831,7 +4831,7 @@ var bt = "ScrollAreaViewport", ht = d.forwardRef(
|
|
|
4831
4831
|
nonce: n
|
|
4832
4832
|
}
|
|
4833
4833
|
),
|
|
4834
|
-
/* @__PURE__ */
|
|
4834
|
+
/* @__PURE__ */ l(
|
|
4835
4835
|
j.div,
|
|
4836
4836
|
{
|
|
4837
4837
|
"data-radix-scroll-area-viewport": "",
|
|
@@ -4849,11 +4849,11 @@ var bt = "ScrollAreaViewport", ht = d.forwardRef(
|
|
|
4849
4849
|
* the browser from having to work out whether to render native scrollbars or not,
|
|
4850
4850
|
* we tell it to with the intention of hiding them in CSS.
|
|
4851
4851
|
*/
|
|
4852
|
-
overflowX:
|
|
4853
|
-
overflowY:
|
|
4852
|
+
overflowX: s.scrollbarXEnabled ? "scroll" : "hidden",
|
|
4853
|
+
overflowY: s.scrollbarYEnabled ? "scroll" : "hidden",
|
|
4854
4854
|
...e.style
|
|
4855
4855
|
},
|
|
4856
|
-
children: /* @__PURE__ */
|
|
4856
|
+
children: /* @__PURE__ */ l("div", { ref: s.onContentChange, style: { minWidth: "100%", display: "table" }, children: o })
|
|
4857
4857
|
}
|
|
4858
4858
|
)
|
|
4859
4859
|
] });
|
|
@@ -4862,29 +4862,29 @@ var bt = "ScrollAreaViewport", ht = d.forwardRef(
|
|
|
4862
4862
|
ht.displayName = bt;
|
|
4863
4863
|
var U = "ScrollAreaScrollbar", Se = d.forwardRef(
|
|
4864
4864
|
(e, r) => {
|
|
4865
|
-
const { forceMount: t, ...o } = e, n = W(U, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange:
|
|
4866
|
-
return d.useEffect(() => (i ? a(!0) :
|
|
4867
|
-
i ? a(!1) :
|
|
4868
|
-
}), [i, a,
|
|
4865
|
+
const { forceMount: t, ...o } = e, n = W(U, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: s } = n, i = e.orientation === "horizontal";
|
|
4866
|
+
return d.useEffect(() => (i ? a(!0) : s(!0), () => {
|
|
4867
|
+
i ? a(!1) : s(!1);
|
|
4868
|
+
}), [i, a, s]), n.type === "hover" ? /* @__PURE__ */ l(Kn, { ...o, ref: r, forceMount: t }) : n.type === "scroll" ? /* @__PURE__ */ l(Jn, { ...o, ref: r, forceMount: t }) : n.type === "auto" ? /* @__PURE__ */ l(gt, { ...o, ref: r, forceMount: t }) : n.type === "always" ? /* @__PURE__ */ l(ir, { ...o, ref: r }) : null;
|
|
4869
4869
|
}
|
|
4870
4870
|
);
|
|
4871
4871
|
Se.displayName = U;
|
|
4872
4872
|
var Kn = d.forwardRef((e, r) => {
|
|
4873
|
-
const { forceMount: t, ...o } = e, n = W(U, e.__scopeScrollArea), [a,
|
|
4873
|
+
const { forceMount: t, ...o } = e, n = W(U, e.__scopeScrollArea), [a, s] = d.useState(!1);
|
|
4874
4874
|
return d.useEffect(() => {
|
|
4875
4875
|
const i = n.scrollArea;
|
|
4876
4876
|
let c = 0;
|
|
4877
4877
|
if (i) {
|
|
4878
4878
|
const f = () => {
|
|
4879
|
-
window.clearTimeout(c),
|
|
4879
|
+
window.clearTimeout(c), s(!0);
|
|
4880
4880
|
}, u = () => {
|
|
4881
|
-
c = window.setTimeout(() =>
|
|
4881
|
+
c = window.setTimeout(() => s(!1), n.scrollHideDelay);
|
|
4882
4882
|
};
|
|
4883
4883
|
return i.addEventListener("pointerenter", f), i.addEventListener("pointerleave", u), () => {
|
|
4884
4884
|
window.clearTimeout(c), i.removeEventListener("pointerenter", f), i.removeEventListener("pointerleave", u);
|
|
4885
4885
|
};
|
|
4886
4886
|
}
|
|
4887
|
-
}, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */
|
|
4887
|
+
}, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ l(le, { present: t || a, children: /* @__PURE__ */ l(
|
|
4888
4888
|
gt,
|
|
4889
4889
|
{
|
|
4890
4890
|
"data-state": a ? "visible" : "hidden",
|
|
@@ -4893,7 +4893,7 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
4893
4893
|
}
|
|
4894
4894
|
) });
|
|
4895
4895
|
}), Jn = d.forwardRef((e, r) => {
|
|
4896
|
-
const { forceMount: t, ...o } = e, n = W(U, e.__scopeScrollArea), a = e.orientation === "horizontal",
|
|
4896
|
+
const { forceMount: t, ...o } = e, n = W(U, e.__scopeScrollArea), a = e.orientation === "horizontal", s = Me(() => c("SCROLL_END"), 100), [i, c] = qn("hidden", {
|
|
4897
4897
|
hidden: {
|
|
4898
4898
|
SCROLL: "scrolling"
|
|
4899
4899
|
},
|
|
@@ -4922,11 +4922,11 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
4922
4922
|
let m = f[u];
|
|
4923
4923
|
const p = () => {
|
|
4924
4924
|
const v = f[u];
|
|
4925
|
-
m !== v && (c("SCROLL"),
|
|
4925
|
+
m !== v && (c("SCROLL"), s()), m = v;
|
|
4926
4926
|
};
|
|
4927
4927
|
return f.addEventListener("scroll", p), () => f.removeEventListener("scroll", p);
|
|
4928
4928
|
}
|
|
4929
|
-
}, [n.viewport, a, c,
|
|
4929
|
+
}, [n.viewport, a, c, s]), /* @__PURE__ */ l(le, { present: t || i !== "hidden", children: /* @__PURE__ */ l(
|
|
4930
4930
|
ir,
|
|
4931
4931
|
{
|
|
4932
4932
|
"data-state": i === "hidden" ? "hidden" : "visible",
|
|
@@ -4937,13 +4937,13 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
4937
4937
|
}
|
|
4938
4938
|
) });
|
|
4939
4939
|
}), gt = d.forwardRef((e, r) => {
|
|
4940
|
-
const t = W(U, e.__scopeScrollArea), { forceMount: o, ...n } = e, [a,
|
|
4940
|
+
const t = W(U, e.__scopeScrollArea), { forceMount: o, ...n } = e, [a, s] = d.useState(!1), i = e.orientation === "horizontal", c = Me(() => {
|
|
4941
4941
|
if (t.viewport) {
|
|
4942
4942
|
const f = t.viewport.offsetWidth < t.viewport.scrollWidth, u = t.viewport.offsetHeight < t.viewport.scrollHeight;
|
|
4943
|
-
|
|
4943
|
+
s(i ? f : u);
|
|
4944
4944
|
}
|
|
4945
4945
|
}, 10);
|
|
4946
|
-
return se(t.viewport, c), se(t.content, c), /* @__PURE__ */
|
|
4946
|
+
return se(t.viewport, c), se(t.content, c), /* @__PURE__ */ l(le, { present: o || a, children: /* @__PURE__ */ l(
|
|
4947
4947
|
ir,
|
|
4948
4948
|
{
|
|
4949
4949
|
"data-state": a ? "visible" : "hidden",
|
|
@@ -4952,7 +4952,7 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
4952
4952
|
}
|
|
4953
4953
|
) });
|
|
4954
4954
|
}), ir = d.forwardRef((e, r) => {
|
|
4955
|
-
const { orientation: t = "vertical", ...o } = e, n = W(U, e.__scopeScrollArea), a = d.useRef(null),
|
|
4955
|
+
const { orientation: t = "vertical", ...o } = e, n = W(U, e.__scopeScrollArea), a = d.useRef(null), s = d.useRef(0), [i, c] = d.useState({
|
|
4956
4956
|
content: 0,
|
|
4957
4957
|
viewport: 0,
|
|
4958
4958
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
@@ -4962,13 +4962,13 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
4962
4962
|
onSizesChange: c,
|
|
4963
4963
|
hasThumb: f > 0 && f < 1,
|
|
4964
4964
|
onThumbChange: (p) => a.current = p,
|
|
4965
|
-
onThumbPointerUp: () =>
|
|
4966
|
-
onThumbPointerDown: (p) =>
|
|
4965
|
+
onThumbPointerUp: () => s.current = 0,
|
|
4966
|
+
onThumbPointerDown: (p) => s.current = p
|
|
4967
4967
|
};
|
|
4968
4968
|
function m(p, v) {
|
|
4969
|
-
return na(p,
|
|
4969
|
+
return na(p, s.current, i, v);
|
|
4970
4970
|
}
|
|
4971
|
-
return t === "horizontal" ? /* @__PURE__ */
|
|
4971
|
+
return t === "horizontal" ? /* @__PURE__ */ l(
|
|
4972
4972
|
Qn,
|
|
4973
4973
|
{
|
|
4974
4974
|
...u,
|
|
@@ -4986,7 +4986,7 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
4986
4986
|
n.viewport && (n.viewport.scrollLeft = m(p, n.dir));
|
|
4987
4987
|
}
|
|
4988
4988
|
}
|
|
4989
|
-
) : t === "vertical" ? /* @__PURE__ */
|
|
4989
|
+
) : t === "vertical" ? /* @__PURE__ */ l(
|
|
4990
4990
|
ea,
|
|
4991
4991
|
{
|
|
4992
4992
|
...u,
|
|
@@ -5006,10 +5006,10 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
5006
5006
|
}
|
|
5007
5007
|
) : null;
|
|
5008
5008
|
}), Qn = d.forwardRef((e, r) => {
|
|
5009
|
-
const { sizes: t, onSizesChange: o, ...n } = e, a = W(U, e.__scopeScrollArea), [
|
|
5009
|
+
const { sizes: t, onSizesChange: o, ...n } = e, a = W(U, e.__scopeScrollArea), [s, i] = d.useState(), c = d.useRef(null), f = $(r, c, a.onScrollbarXChange);
|
|
5010
5010
|
return d.useEffect(() => {
|
|
5011
5011
|
c.current && i(getComputedStyle(c.current));
|
|
5012
|
-
}, [c]), /* @__PURE__ */
|
|
5012
|
+
}, [c]), /* @__PURE__ */ l(
|
|
5013
5013
|
xt,
|
|
5014
5014
|
{
|
|
5015
5015
|
"data-orientation": "horizontal",
|
|
@@ -5032,23 +5032,23 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
5032
5032
|
}
|
|
5033
5033
|
},
|
|
5034
5034
|
onResize: () => {
|
|
5035
|
-
c.current && a.viewport &&
|
|
5035
|
+
c.current && a.viewport && s && o({
|
|
5036
5036
|
content: a.viewport.scrollWidth,
|
|
5037
5037
|
viewport: a.viewport.offsetWidth,
|
|
5038
5038
|
scrollbar: {
|
|
5039
5039
|
size: c.current.clientWidth,
|
|
5040
|
-
paddingStart: Pe(
|
|
5041
|
-
paddingEnd: Pe(
|
|
5040
|
+
paddingStart: Pe(s.paddingLeft),
|
|
5041
|
+
paddingEnd: Pe(s.paddingRight)
|
|
5042
5042
|
}
|
|
5043
5043
|
});
|
|
5044
5044
|
}
|
|
5045
5045
|
}
|
|
5046
5046
|
);
|
|
5047
5047
|
}), ea = d.forwardRef((e, r) => {
|
|
5048
|
-
const { sizes: t, onSizesChange: o, ...n } = e, a = W(U, e.__scopeScrollArea), [
|
|
5048
|
+
const { sizes: t, onSizesChange: o, ...n } = e, a = W(U, e.__scopeScrollArea), [s, i] = d.useState(), c = d.useRef(null), f = $(r, c, a.onScrollbarYChange);
|
|
5049
5049
|
return d.useEffect(() => {
|
|
5050
5050
|
c.current && i(getComputedStyle(c.current));
|
|
5051
|
-
}, [c]), /* @__PURE__ */
|
|
5051
|
+
}, [c]), /* @__PURE__ */ l(
|
|
5052
5052
|
xt,
|
|
5053
5053
|
{
|
|
5054
5054
|
"data-orientation": "vertical",
|
|
@@ -5072,13 +5072,13 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
5072
5072
|
}
|
|
5073
5073
|
},
|
|
5074
5074
|
onResize: () => {
|
|
5075
|
-
c.current && a.viewport &&
|
|
5075
|
+
c.current && a.viewport && s && o({
|
|
5076
5076
|
content: a.viewport.scrollHeight,
|
|
5077
5077
|
viewport: a.viewport.offsetHeight,
|
|
5078
5078
|
scrollbar: {
|
|
5079
5079
|
size: c.current.clientHeight,
|
|
5080
|
-
paddingStart: Pe(
|
|
5081
|
-
paddingEnd: Pe(
|
|
5080
|
+
paddingStart: Pe(s.paddingTop),
|
|
5081
|
+
paddingEnd: Pe(s.paddingBottom)
|
|
5082
5082
|
}
|
|
5083
5083
|
});
|
|
5084
5084
|
}
|
|
@@ -5090,7 +5090,7 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
5090
5090
|
sizes: o,
|
|
5091
5091
|
hasThumb: n,
|
|
5092
5092
|
onThumbChange: a,
|
|
5093
|
-
onThumbPointerUp:
|
|
5093
|
+
onThumbPointerUp: s,
|
|
5094
5094
|
onThumbPointerDown: i,
|
|
5095
5095
|
onThumbPositionChange: c,
|
|
5096
5096
|
onDragScroll: f,
|
|
@@ -5110,17 +5110,17 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
5110
5110
|
w?.contains(G) && M(B, E);
|
|
5111
5111
|
};
|
|
5112
5112
|
return document.addEventListener("wheel", P, { passive: !1 }), () => document.removeEventListener("wheel", P, { passive: !1 });
|
|
5113
|
-
}, [N, w, E, M]), d.useEffect(I, [o, I]), se(w, D), se(v.content, D), /* @__PURE__ */
|
|
5113
|
+
}, [N, w, E, M]), d.useEffect(I, [o, I]), se(w, D), se(v.content, D), /* @__PURE__ */ l(
|
|
5114
5114
|
ra,
|
|
5115
5115
|
{
|
|
5116
5116
|
scope: t,
|
|
5117
5117
|
scrollbar: w,
|
|
5118
5118
|
hasThumb: n,
|
|
5119
5119
|
onThumbChange: re(a),
|
|
5120
|
-
onThumbPointerUp: re(
|
|
5120
|
+
onThumbPointerUp: re(s),
|
|
5121
5121
|
onThumbPositionChange: I,
|
|
5122
5122
|
onThumbPointerDown: re(i),
|
|
5123
|
-
children: /* @__PURE__ */
|
|
5123
|
+
children: /* @__PURE__ */ l(
|
|
5124
5124
|
j.div,
|
|
5125
5125
|
{
|
|
5126
5126
|
...p,
|
|
@@ -5141,13 +5141,13 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
5141
5141
|
}), Re = "ScrollAreaThumb", wt = d.forwardRef(
|
|
5142
5142
|
(e, r) => {
|
|
5143
5143
|
const { forceMount: t, ...o } = e, n = vt(Re, e.__scopeScrollArea);
|
|
5144
|
-
return /* @__PURE__ */
|
|
5144
|
+
return /* @__PURE__ */ l(le, { present: t || n.hasThumb, children: /* @__PURE__ */ l(ta, { ref: r, ...o }) });
|
|
5145
5145
|
}
|
|
5146
5146
|
), ta = d.forwardRef(
|
|
5147
5147
|
(e, r) => {
|
|
5148
|
-
const { __scopeScrollArea: t, style: o, ...n } = e, a = W(Re, t),
|
|
5148
|
+
const { __scopeScrollArea: t, style: o, ...n } = e, a = W(Re, t), s = vt(Re, t), { onThumbPositionChange: i } = s, c = $(
|
|
5149
5149
|
r,
|
|
5150
|
-
(m) =>
|
|
5150
|
+
(m) => s.onThumbChange(m)
|
|
5151
5151
|
), f = d.useRef(void 0), u = Me(() => {
|
|
5152
5152
|
f.current && (f.current(), f.current = void 0);
|
|
5153
5153
|
}, 100);
|
|
@@ -5162,10 +5162,10 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
5162
5162
|
};
|
|
5163
5163
|
return i(), m.addEventListener("scroll", p), () => m.removeEventListener("scroll", p);
|
|
5164
5164
|
}
|
|
5165
|
-
}, [a.viewport, u, i]), /* @__PURE__ */
|
|
5165
|
+
}, [a.viewport, u, i]), /* @__PURE__ */ l(
|
|
5166
5166
|
j.div,
|
|
5167
5167
|
{
|
|
5168
|
-
"data-state":
|
|
5168
|
+
"data-state": s.hasThumb ? "visible" : "hidden",
|
|
5169
5169
|
...n,
|
|
5170
5170
|
ref: c,
|
|
5171
5171
|
style: {
|
|
@@ -5175,9 +5175,9 @@ var Kn = d.forwardRef((e, r) => {
|
|
|
5175
5175
|
},
|
|
5176
5176
|
onPointerDownCapture: F(e.onPointerDownCapture, (m) => {
|
|
5177
5177
|
const v = m.target.getBoundingClientRect(), w = m.clientX - v.left, C = m.clientY - v.top;
|
|
5178
|
-
|
|
5178
|
+
s.onThumbPointerDown({ x: w, y: C });
|
|
5179
5179
|
}),
|
|
5180
|
-
onPointerUp: F(e.onPointerUp,
|
|
5180
|
+
onPointerUp: F(e.onPointerUp, s.onThumbPointerUp)
|
|
5181
5181
|
}
|
|
5182
5182
|
);
|
|
5183
5183
|
}
|
|
@@ -5186,19 +5186,19 @@ wt.displayName = Re;
|
|
|
5186
5186
|
var cr = "ScrollAreaCorner", yt = d.forwardRef(
|
|
5187
5187
|
(e, r) => {
|
|
5188
5188
|
const t = W(cr, e.__scopeScrollArea), o = !!(t.scrollbarX && t.scrollbarY);
|
|
5189
|
-
return t.type !== "scroll" && o ? /* @__PURE__ */
|
|
5189
|
+
return t.type !== "scroll" && o ? /* @__PURE__ */ l(oa, { ...e, ref: r }) : null;
|
|
5190
5190
|
}
|
|
5191
5191
|
);
|
|
5192
5192
|
yt.displayName = cr;
|
|
5193
5193
|
var oa = d.forwardRef((e, r) => {
|
|
5194
|
-
const { __scopeScrollArea: t, ...o } = e, n = W(cr, t), [a,
|
|
5194
|
+
const { __scopeScrollArea: t, ...o } = e, n = W(cr, t), [a, s] = d.useState(0), [i, c] = d.useState(0), f = !!(a && i);
|
|
5195
5195
|
return se(n.scrollbarX, () => {
|
|
5196
5196
|
const u = n.scrollbarX?.offsetHeight || 0;
|
|
5197
5197
|
n.onCornerHeightChange(u), c(u);
|
|
5198
5198
|
}), se(n.scrollbarY, () => {
|
|
5199
5199
|
const u = n.scrollbarY?.offsetWidth || 0;
|
|
5200
|
-
n.onCornerWidthChange(u),
|
|
5201
|
-
}), f ? /* @__PURE__ */
|
|
5200
|
+
n.onCornerWidthChange(u), s(u);
|
|
5201
|
+
}), f ? /* @__PURE__ */ l(
|
|
5202
5202
|
j.div,
|
|
5203
5203
|
{
|
|
5204
5204
|
...o,
|
|
@@ -5227,12 +5227,12 @@ function Te(e) {
|
|
|
5227
5227
|
return Math.max(o, 18);
|
|
5228
5228
|
}
|
|
5229
5229
|
function na(e, r, t, o = "ltr") {
|
|
5230
|
-
const n = Te(t), a = n / 2,
|
|
5230
|
+
const n = Te(t), a = n / 2, s = r || a, i = n - s, c = t.scrollbar.paddingStart + s, f = t.scrollbar.size - t.scrollbar.paddingEnd - i, u = t.content - t.viewport, m = o === "ltr" ? [0, u] : [u * -1, 0];
|
|
5231
5231
|
return kt([c, f], m)(e);
|
|
5232
5232
|
}
|
|
5233
5233
|
function Cr(e, r, t = "ltr") {
|
|
5234
|
-
const o = Te(r), n = r.scrollbar.paddingStart + r.scrollbar.paddingEnd, a = r.scrollbar.size - n,
|
|
5235
|
-
return kt([0,
|
|
5234
|
+
const o = Te(r), n = r.scrollbar.paddingStart + r.scrollbar.paddingEnd, a = r.scrollbar.size - n, s = r.content - r.viewport, i = a - o, c = t === "ltr" ? [0, s] : [s * -1, 0], f = Yn(e, c);
|
|
5235
|
+
return kt([0, s], [0, i])(f);
|
|
5236
5236
|
}
|
|
5237
5237
|
function kt(e, r) {
|
|
5238
5238
|
return (t) => {
|
|
@@ -5248,8 +5248,8 @@ var aa = (e, r = () => {
|
|
|
5248
5248
|
}) => {
|
|
5249
5249
|
let t = { left: e.scrollLeft, top: e.scrollTop }, o = 0;
|
|
5250
5250
|
return (function n() {
|
|
5251
|
-
const a = { left: e.scrollLeft, top: e.scrollTop },
|
|
5252
|
-
(
|
|
5251
|
+
const a = { left: e.scrollLeft, top: e.scrollTop }, s = t.left !== a.left, i = t.top !== a.top;
|
|
5252
|
+
(s || i) && r(), t = a, o = window.requestAnimationFrame(n);
|
|
5253
5253
|
})(), () => window.cancelAnimationFrame(o);
|
|
5254
5254
|
};
|
|
5255
5255
|
function Me(e, r) {
|
|
@@ -5274,7 +5274,7 @@ function se(e, r) {
|
|
|
5274
5274
|
}
|
|
5275
5275
|
var sa = pt, la = ht, ia = yt;
|
|
5276
5276
|
function ca({ className: e, children: r, ...t }) {
|
|
5277
|
-
return /* @__PURE__ */
|
|
5277
|
+
return /* @__PURE__ */ l(
|
|
5278
5278
|
sa,
|
|
5279
5279
|
{
|
|
5280
5280
|
className: g("relative", e),
|
|
@@ -5299,7 +5299,7 @@ function da({
|
|
|
5299
5299
|
}),
|
|
5300
5300
|
[r, t, o]
|
|
5301
5301
|
);
|
|
5302
|
-
return /* @__PURE__ */
|
|
5302
|
+
return /* @__PURE__ */ l(At.Provider, { value: n, children: e });
|
|
5303
5303
|
}
|
|
5304
5304
|
function ua() {
|
|
5305
5305
|
const e = J(At);
|
|
@@ -5308,7 +5308,7 @@ function ua() {
|
|
|
5308
5308
|
return e;
|
|
5309
5309
|
}
|
|
5310
5310
|
function fa({ className: e, children: r, ...t }) {
|
|
5311
|
-
return /* @__PURE__ */
|
|
5311
|
+
return /* @__PURE__ */ l(
|
|
5312
5312
|
la,
|
|
5313
5313
|
{
|
|
5314
5314
|
className: g(
|
|
@@ -5322,9 +5322,9 @@ function fa({ className: e, children: r, ...t }) {
|
|
|
5322
5322
|
);
|
|
5323
5323
|
}
|
|
5324
5324
|
function ma({ className: e, children: r, ...t }) {
|
|
5325
|
-
const { orientation: o } = ua(), n = "flex touch-none select-none bg-transparent p-1 transition-colors data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out-0 data-[state=visible]:fade-in-0", a = "h-full w-3.5 border-l border-l-transparent",
|
|
5325
|
+
const { orientation: o } = ua(), n = "flex touch-none select-none bg-transparent p-1 transition-colors data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out-0 data-[state=visible]:fade-in-0", a = "h-full w-3.5 border-l border-l-transparent", s = "h-3.5 flex-col border-t border-t-transparent";
|
|
5326
5326
|
return o === "both" ? /* @__PURE__ */ _(te, { children: [
|
|
5327
|
-
/* @__PURE__ */
|
|
5327
|
+
/* @__PURE__ */ l(
|
|
5328
5328
|
Se,
|
|
5329
5329
|
{
|
|
5330
5330
|
className: g(n, a, e),
|
|
@@ -5334,23 +5334,23 @@ function ma({ className: e, children: r, ...t }) {
|
|
|
5334
5334
|
children: r
|
|
5335
5335
|
}
|
|
5336
5336
|
),
|
|
5337
|
-
/* @__PURE__ */
|
|
5337
|
+
/* @__PURE__ */ l(
|
|
5338
5338
|
Se,
|
|
5339
5339
|
{
|
|
5340
|
-
className: g(n,
|
|
5340
|
+
className: g(n, s, e),
|
|
5341
5341
|
"data-slot": "scroll-area-horizontal-scrollbar",
|
|
5342
5342
|
orientation: "horizontal",
|
|
5343
5343
|
...t,
|
|
5344
5344
|
children: r
|
|
5345
5345
|
}
|
|
5346
5346
|
)
|
|
5347
|
-
] }) : /* @__PURE__ */
|
|
5347
|
+
] }) : /* @__PURE__ */ l(
|
|
5348
5348
|
Se,
|
|
5349
5349
|
{
|
|
5350
5350
|
className: g(
|
|
5351
5351
|
n,
|
|
5352
5352
|
o === "vertical" && a,
|
|
5353
|
-
o === "horizontal" &&
|
|
5353
|
+
o === "horizontal" && s,
|
|
5354
5354
|
e
|
|
5355
5355
|
),
|
|
5356
5356
|
"data-slot": `scroll-area-${o}-scrollbar`,
|
|
@@ -5361,7 +5361,7 @@ function ma({ className: e, children: r, ...t }) {
|
|
|
5361
5361
|
);
|
|
5362
5362
|
}
|
|
5363
5363
|
function pa({ className: e, ...r }) {
|
|
5364
|
-
return /* @__PURE__ */
|
|
5364
|
+
return /* @__PURE__ */ l(
|
|
5365
5365
|
wt,
|
|
5366
5366
|
{
|
|
5367
5367
|
className: g("relative flex-1 rounded-full bg-contrast-200", e),
|
|
@@ -5371,7 +5371,7 @@ function pa({ className: e, ...r }) {
|
|
|
5371
5371
|
);
|
|
5372
5372
|
}
|
|
5373
5373
|
function ba({ className: e, ...r }) {
|
|
5374
|
-
return /* @__PURE__ */
|
|
5374
|
+
return /* @__PURE__ */ l(ia, { className: e, "data-slot": "scroll-area-corner", ...r });
|
|
5375
5375
|
}
|
|
5376
5376
|
export {
|
|
5377
5377
|
xa as Accordion,
|