@adamosuiteservices/ui 1.2.5 → 1.3.5
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/accordion-rounded.cjs +1 -1
- package/dist/accordion-rounded.js +1 -1
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.js +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/breadcrumb.cjs +1 -0
- package/dist/breadcrumb.js +105 -0
- package/dist/{button-C1n6snOY.js → button-2GdKenQI.js} +1 -1
- package/dist/{button-BV-_FVKZ.cjs → button-DEQVHMrX.cjs} +1 -1
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.js +2 -2
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.js +1 -1
- package/dist/{checkbox-BrmXPKTn.js → checkbox-Dr487kAg.js} +3 -3
- package/dist/{checkbox-Lq-HvSgc.cjs → checkbox-YWAnswaW.cjs} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.js +6 -6
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts +11 -0
- package/dist/components/ui/breadcrumb/breadcrumb.stories.d.ts +26 -0
- package/dist/components/ui/breadcrumb/index.d.ts +1 -0
- package/dist/components/ui/dialog/dialog.d.ts +2 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.js +2 -2
- package/dist/custom-layered-styles.css +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +33 -19
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.js +3 -3
- package/dist/ellipsis-CryjZKZn.js +15 -0
- package/dist/ellipsis-Ct9VTDOG.cjs +6 -0
- package/dist/field.cjs +1 -1
- package/dist/field.js +2 -2
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.js +6 -6
- package/dist/{index-CAOY367Y.js → index-B0M7VOwp.js} +2 -2
- package/dist/{index-B-ZRqW0J.js → index-BBoIAjAs.js} +3 -3
- package/dist/{index-gO_QEiaK.cjs → index-BDs8lUfq.cjs} +1 -1
- package/dist/index-BFyr34mw.cjs +5 -0
- package/dist/index-BMWt1NBG.js +79 -0
- package/dist/{index-yR-v1A4G.js → index-BX9hz-JD.js} +1 -1
- package/dist/{index-BGiGvaq8.cjs → index-BcGMAmWE.cjs} +1 -1
- package/dist/{index-IKJMQref.cjs → index-Bd0gQB0k.cjs} +1 -1
- package/dist/{index-VIUqZjyP.cjs → index-BeWgla7c.cjs} +1 -1
- package/dist/{index-EUea2gfp.js → index-BpWB3aFK.js} +1 -1
- package/dist/index-BvLQnI56.js +59 -0
- package/dist/{index-CwUFT-GQ.js → index-C0YiLSjW.js} +4 -4
- package/dist/{index-o0sNTcKe.js → index-CBjZooac.js} +2 -2
- package/dist/{index-DnS_sBBe.cjs → index-COuvjZLM.cjs} +1 -1
- package/dist/index-CTjlbbt9.cjs +1 -0
- package/dist/index-CUWMxxKG.js +97 -0
- package/dist/{index-C329e3yQ.js → index-CZZ3llmi.js} +2 -2
- package/dist/index-CjyiloO7.cjs +1 -0
- package/dist/{index-D3wSWKST.cjs → index-Cmx9M9cZ.cjs} +1 -1
- package/dist/index-CocSS1YK.cjs +1 -0
- package/dist/index-CzRiuk60.cjs +1 -0
- package/dist/index-DFPDUUq7.js +658 -0
- package/dist/{index-D3S7dBDI.cjs → index-DIwmXz1u.cjs} +1 -1
- package/dist/index-DLcqcWxM.js +29 -0
- package/dist/index-DMLQL2aG.js +286 -0
- package/dist/{index-DXQ-7kNJ.cjs → index-DMs8RL3E.cjs} +1 -1
- package/dist/{index-Ce3QBKyj.cjs → index-Dbj9vHNq.cjs} +1 -1
- package/dist/{index-BRLtxFFr.cjs → index-DmGzwG2z.cjs} +1 -1
- package/dist/{index-P1sVIHE3.js → index-PYkEXTqJ.js} +1 -1
- package/dist/{index-DulPG3F9.js → index-Se4vRnIO.js} +3 -3
- package/dist/index-_XxjJPRD.cjs +1 -0
- package/dist/{index-B-cHTKrs.js → index-yWvyIlmA.js} +4 -4
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.js +1 -1
- package/dist/{label-Cne2J57f.cjs → label-BjXORCBM.cjs} +1 -1
- package/dist/{label-Ky8qBEC3.js → label-CmwGvhy1.js} +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.js +1 -1
- package/dist/pagination.cjs +1 -6
- package/dist/pagination.js +58 -69
- package/dist/popover-3rIoNCXs.js +306 -0
- package/dist/popover-FCKBtFo-.cjs +1 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.js +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +5 -5
- package/dist/select.cjs +2 -2
- package/dist/select.js +585 -542
- package/dist/{separator-CGnu_jIu.cjs → separator-BaZqZZ9R.cjs} +1 -1
- package/dist/{separator-BH73A90k.js → separator-DR7lQjv9.js} +1 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +1 -1
- package/dist/{sheet-CcxnJ6LH.cjs → sheet-CU-sFSaJ.cjs} +1 -1
- package/dist/{sheet-_DVpQIVF.js → sheet-UZWAbdXr.js} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.js +4 -4
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +3 -3
- package/dist/styles.css +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +2 -2
- package/dist/tabs-underline.cjs +1 -1
- package/dist/tabs-underline.js +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.js +1 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +114 -108
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/docs/AI-GUIDE.md +321 -0
- package/docs/components/layout/sidebar.md +330 -0
- package/docs/components/layout/toaster.md +436 -0
- package/docs/components/ui/accordion-rounded.md +583 -0
- package/docs/components/ui/accordion.md +267 -0
- package/docs/components/ui/alert.md +671 -0
- package/docs/components/ui/avatar.md +588 -0
- package/docs/components/ui/badge.md +1024 -0
- package/docs/components/ui/breadcrumb.md +614 -0
- package/docs/components/ui/button-group.md +1002 -0
- package/docs/components/ui/button.md +1078 -0
- package/docs/components/ui/calendar.md +1159 -0
- package/docs/components/ui/card.md +1265 -0
- package/docs/components/ui/checkbox.md +292 -0
- package/docs/components/ui/collapsible.md +320 -0
- package/docs/components/ui/combobox.md +328 -0
- package/docs/components/ui/command.md +454 -0
- package/docs/components/ui/context-menu.md +540 -0
- package/docs/components/ui/dialog.md +628 -0
- package/docs/components/ui/dropdown-menu.md +731 -0
- package/docs/components/ui/field.md +706 -0
- package/docs/components/ui/hover-card.md +446 -0
- package/docs/components/ui/input-group.md +509 -0
- package/docs/components/ui/input.md +362 -0
- package/docs/components/ui/kbd.md +434 -0
- package/docs/components/ui/label.md +359 -0
- package/docs/components/ui/pagination.md +650 -0
- package/docs/components/ui/popover.md +536 -0
- package/docs/components/ui/progress.md +182 -0
- package/docs/components/ui/radio-group.md +311 -0
- package/docs/components/ui/select.md +352 -0
- package/docs/components/ui/separator.md +214 -0
- package/docs/components/ui/sheet.md +142 -0
- package/docs/components/ui/skeleton.md +140 -0
- package/docs/components/ui/slider.md +341 -0
- package/docs/components/ui/spinner.md +170 -0
- package/docs/components/ui/switch.md +402 -0
- package/docs/components/ui/table.md +183 -0
- package/docs/components/ui/tabs-underline.md +106 -0
- package/docs/components/ui/tabs.md +122 -0
- package/docs/components/ui/textarea.md +243 -0
- package/docs/components/ui/toggle.md +243 -0
- package/docs/components/ui/tooltip.md +320 -0
- package/docs/components/ui/typography.md +191 -0
- package/package.json +11 -5
- package/dist/index-6oTEokEx.js +0 -82
- package/dist/index-B-NyefE0.js +0 -243
- package/dist/index-BKbK2GzY.cjs +0 -1
- package/dist/index-BMitW9UR.cjs +0 -1
- package/dist/index-BpvjJ_T6.cjs +0 -5
- package/dist/index-C5wjudc-.js +0 -36
- package/dist/index-CezwiPd_.js +0 -615
- package/dist/index-D02K8KOB.js +0 -54
- package/dist/index-D7hQvndv.cjs +0 -1
- package/dist/index-DQvx1rG_.cjs +0 -1
- package/dist/popover-BjdTqaB8.cjs +0 -1
- package/dist/popover-EnVfE0YA.js +0 -263
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
function s(n, o) {
|
|
3
|
+
if (typeof n == "function")
|
|
4
|
+
return n(o);
|
|
5
|
+
n != null && (n.current = o);
|
|
6
|
+
}
|
|
7
|
+
function f(...n) {
|
|
8
|
+
return (o) => {
|
|
9
|
+
let u = !1;
|
|
10
|
+
const c = n.map((t) => {
|
|
11
|
+
const e = s(t, o);
|
|
12
|
+
return !u && typeof e == "function" && (u = !0), e;
|
|
13
|
+
});
|
|
14
|
+
if (u)
|
|
15
|
+
return () => {
|
|
16
|
+
for (let t = 0; t < c.length; t++) {
|
|
17
|
+
const e = c[t];
|
|
18
|
+
typeof e == "function" ? e() : s(n[t], null);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function i(...n) {
|
|
24
|
+
return l.useCallback(f(...n), n);
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
f as c,
|
|
28
|
+
i as u
|
|
29
|
+
};
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { u as $, c as m } from "./index-C0UREtMP.js";
|
|
3
|
+
import { c as B, u as y } from "./index-DLcqcWxM.js";
|
|
4
|
+
import { c as H, a as Z } from "./index-FxyLF8MY.js";
|
|
5
|
+
import { u as x } from "./index-Cv867SGx.js";
|
|
6
|
+
import { D as q } from "./index-CZZ3llmi.js";
|
|
7
|
+
import { h as K, R as U, u as Y, F as z } from "./index-CBjZooac.js";
|
|
8
|
+
import { P as J } from "./index-BX9hz-JD.js";
|
|
9
|
+
import { P as h } from "./index-BpWB3aFK.js";
|
|
10
|
+
import { P as D } from "./index-BMWt1NBG.js";
|
|
11
|
+
import { j as i } from "./jsx-runtime-BzflLqGi.js";
|
|
12
|
+
// @__NO_SIDE_EFFECTS__
|
|
13
|
+
function Q(e) {
|
|
14
|
+
const t = /* @__PURE__ */ X(e), r = a.forwardRef((n, o) => {
|
|
15
|
+
const { children: s, ...c } = n, l = a.Children.toArray(s), u = l.find(te);
|
|
16
|
+
if (u) {
|
|
17
|
+
const d = u.props.children, g = l.map((v) => v === u ? a.Children.count(d) > 1 ? a.Children.only(null) : a.isValidElement(d) ? d.props.children : null : v);
|
|
18
|
+
return /* @__PURE__ */ i.jsx(t, { ...c, ref: o, children: a.isValidElement(d) ? a.cloneElement(d, void 0, g) : null });
|
|
19
|
+
}
|
|
20
|
+
return /* @__PURE__ */ i.jsx(t, { ...c, ref: o, children: s });
|
|
21
|
+
});
|
|
22
|
+
return r.displayName = `${e}.Slot`, r;
|
|
23
|
+
}
|
|
24
|
+
// @__NO_SIDE_EFFECTS__
|
|
25
|
+
function X(e) {
|
|
26
|
+
const t = a.forwardRef((r, n) => {
|
|
27
|
+
const { children: o, ...s } = r;
|
|
28
|
+
if (a.isValidElement(o)) {
|
|
29
|
+
const c = re(o), l = oe(s, o.props);
|
|
30
|
+
return o.type !== a.Fragment && (l.ref = n ? B(n, c) : c), a.cloneElement(o, l);
|
|
31
|
+
}
|
|
32
|
+
return a.Children.count(o) > 1 ? a.Children.only(null) : null;
|
|
33
|
+
});
|
|
34
|
+
return t.displayName = `${e}.SlotClone`, t;
|
|
35
|
+
}
|
|
36
|
+
var ee = Symbol("radix.slottable");
|
|
37
|
+
function te(e) {
|
|
38
|
+
return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ee;
|
|
39
|
+
}
|
|
40
|
+
function oe(e, t) {
|
|
41
|
+
const r = { ...t };
|
|
42
|
+
for (const n in t) {
|
|
43
|
+
const o = e[n], s = t[n];
|
|
44
|
+
/^on[A-Z]/.test(n) ? o && s ? r[n] = (...l) => {
|
|
45
|
+
const u = s(...l);
|
|
46
|
+
return o(...l), u;
|
|
47
|
+
} : o && (r[n] = o) : n === "style" ? r[n] = { ...o, ...s } : n === "className" && (r[n] = [o, s].filter(Boolean).join(" "));
|
|
48
|
+
}
|
|
49
|
+
return { ...e, ...r };
|
|
50
|
+
}
|
|
51
|
+
function re(e) {
|
|
52
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
53
|
+
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);
|
|
54
|
+
}
|
|
55
|
+
var R = "Dialog", [O] = H(R), [ne, f] = O(R), N = (e) => {
|
|
56
|
+
const {
|
|
57
|
+
__scopeDialog: t,
|
|
58
|
+
children: r,
|
|
59
|
+
open: n,
|
|
60
|
+
defaultOpen: o,
|
|
61
|
+
onOpenChange: s,
|
|
62
|
+
modal: c = !0
|
|
63
|
+
} = e, l = a.useRef(null), u = a.useRef(null), [d, g] = $({
|
|
64
|
+
prop: n,
|
|
65
|
+
defaultProp: o ?? !1,
|
|
66
|
+
onChange: s,
|
|
67
|
+
caller: R
|
|
68
|
+
});
|
|
69
|
+
return /* @__PURE__ */ i.jsx(
|
|
70
|
+
ne,
|
|
71
|
+
{
|
|
72
|
+
scope: t,
|
|
73
|
+
triggerRef: l,
|
|
74
|
+
contentRef: u,
|
|
75
|
+
contentId: x(),
|
|
76
|
+
titleId: x(),
|
|
77
|
+
descriptionId: x(),
|
|
78
|
+
open: d,
|
|
79
|
+
onOpenChange: g,
|
|
80
|
+
onOpenToggle: a.useCallback(() => g((v) => !v), [g]),
|
|
81
|
+
modal: c,
|
|
82
|
+
children: r
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
N.displayName = R;
|
|
87
|
+
var I = "DialogTrigger", b = a.forwardRef(
|
|
88
|
+
(e, t) => {
|
|
89
|
+
const { __scopeDialog: r, ...n } = e, o = f(I, r), s = y(t, o.triggerRef);
|
|
90
|
+
return /* @__PURE__ */ i.jsx(
|
|
91
|
+
D.button,
|
|
92
|
+
{
|
|
93
|
+
type: "button",
|
|
94
|
+
"aria-haspopup": "dialog",
|
|
95
|
+
"aria-expanded": o.open,
|
|
96
|
+
"aria-controls": o.contentId,
|
|
97
|
+
"data-state": P(o.open),
|
|
98
|
+
...n,
|
|
99
|
+
ref: s,
|
|
100
|
+
onClick: m(e.onClick, o.onOpenToggle)
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
b.displayName = I;
|
|
106
|
+
var E = "DialogPortal", [se, j] = O(E, {
|
|
107
|
+
forceMount: void 0
|
|
108
|
+
}), A = (e) => {
|
|
109
|
+
const { __scopeDialog: t, forceMount: r, children: n, container: o } = e, s = f(E, t);
|
|
110
|
+
return /* @__PURE__ */ i.jsx(se, { scope: t, forceMount: r, children: a.Children.map(n, (c) => /* @__PURE__ */ i.jsx(h, { present: r || s.open, children: /* @__PURE__ */ i.jsx(J, { asChild: !0, container: o, children: c }) })) });
|
|
111
|
+
};
|
|
112
|
+
A.displayName = E;
|
|
113
|
+
var C = "DialogOverlay", T = a.forwardRef(
|
|
114
|
+
(e, t) => {
|
|
115
|
+
const r = j(C, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, s = f(C, e.__scopeDialog);
|
|
116
|
+
return s.modal ? /* @__PURE__ */ i.jsx(h, { present: n || s.open, children: /* @__PURE__ */ i.jsx(ie, { ...o, ref: t }) }) : null;
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
T.displayName = C;
|
|
120
|
+
var ae = /* @__PURE__ */ Q("DialogOverlay.RemoveScroll"), ie = a.forwardRef(
|
|
121
|
+
(e, t) => {
|
|
122
|
+
const { __scopeDialog: r, ...n } = e, o = f(C, r);
|
|
123
|
+
return (
|
|
124
|
+
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
125
|
+
// ie. when `Overlay` and `Content` are siblings
|
|
126
|
+
/* @__PURE__ */ i.jsx(U, { as: ae, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i.jsx(
|
|
127
|
+
D.div,
|
|
128
|
+
{
|
|
129
|
+
"data-state": P(o.open),
|
|
130
|
+
...n,
|
|
131
|
+
ref: t,
|
|
132
|
+
style: { pointerEvents: "auto", ...n.style }
|
|
133
|
+
}
|
|
134
|
+
) })
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
), p = "DialogContent", S = a.forwardRef(
|
|
138
|
+
(e, t) => {
|
|
139
|
+
const r = j(p, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, s = f(p, e.__scopeDialog);
|
|
140
|
+
return /* @__PURE__ */ i.jsx(h, { present: n || s.open, children: s.modal ? /* @__PURE__ */ i.jsx(le, { ...o, ref: t }) : /* @__PURE__ */ i.jsx(ce, { ...o, ref: t }) });
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
S.displayName = p;
|
|
144
|
+
var le = a.forwardRef(
|
|
145
|
+
(e, t) => {
|
|
146
|
+
const r = f(p, e.__scopeDialog), n = a.useRef(null), o = y(t, r.contentRef, n);
|
|
147
|
+
return a.useEffect(() => {
|
|
148
|
+
const s = n.current;
|
|
149
|
+
if (s) return K(s);
|
|
150
|
+
}, []), /* @__PURE__ */ i.jsx(
|
|
151
|
+
M,
|
|
152
|
+
{
|
|
153
|
+
...e,
|
|
154
|
+
ref: o,
|
|
155
|
+
trapFocus: r.open,
|
|
156
|
+
disableOutsidePointerEvents: !0,
|
|
157
|
+
onCloseAutoFocus: m(e.onCloseAutoFocus, (s) => {
|
|
158
|
+
s.preventDefault(), r.triggerRef.current?.focus();
|
|
159
|
+
}),
|
|
160
|
+
onPointerDownOutside: m(e.onPointerDownOutside, (s) => {
|
|
161
|
+
const c = s.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;
|
|
162
|
+
(c.button === 2 || l) && s.preventDefault();
|
|
163
|
+
}),
|
|
164
|
+
onFocusOutside: m(
|
|
165
|
+
e.onFocusOutside,
|
|
166
|
+
(s) => s.preventDefault()
|
|
167
|
+
)
|
|
168
|
+
}
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
), ce = a.forwardRef(
|
|
172
|
+
(e, t) => {
|
|
173
|
+
const r = f(p, e.__scopeDialog), n = a.useRef(!1), o = a.useRef(!1);
|
|
174
|
+
return /* @__PURE__ */ i.jsx(
|
|
175
|
+
M,
|
|
176
|
+
{
|
|
177
|
+
...e,
|
|
178
|
+
ref: t,
|
|
179
|
+
trapFocus: !1,
|
|
180
|
+
disableOutsidePointerEvents: !1,
|
|
181
|
+
onCloseAutoFocus: (s) => {
|
|
182
|
+
e.onCloseAutoFocus?.(s), s.defaultPrevented || (n.current || r.triggerRef.current?.focus(), s.preventDefault()), n.current = !1, o.current = !1;
|
|
183
|
+
},
|
|
184
|
+
onInteractOutside: (s) => {
|
|
185
|
+
e.onInteractOutside?.(s), s.defaultPrevented || (n.current = !0, s.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
186
|
+
const c = s.target;
|
|
187
|
+
r.triggerRef.current?.contains(c) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && o.current && s.preventDefault();
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
), M = a.forwardRef(
|
|
193
|
+
(e, t) => {
|
|
194
|
+
const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: o, onCloseAutoFocus: s, ...c } = e, l = f(p, r), u = a.useRef(null), d = y(t, u);
|
|
195
|
+
return Y(), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
196
|
+
/* @__PURE__ */ i.jsx(
|
|
197
|
+
z,
|
|
198
|
+
{
|
|
199
|
+
asChild: !0,
|
|
200
|
+
loop: !0,
|
|
201
|
+
trapped: n,
|
|
202
|
+
onMountAutoFocus: o,
|
|
203
|
+
onUnmountAutoFocus: s,
|
|
204
|
+
children: /* @__PURE__ */ i.jsx(
|
|
205
|
+
q,
|
|
206
|
+
{
|
|
207
|
+
role: "dialog",
|
|
208
|
+
id: l.contentId,
|
|
209
|
+
"aria-describedby": l.descriptionId,
|
|
210
|
+
"aria-labelledby": l.titleId,
|
|
211
|
+
"data-state": P(l.open),
|
|
212
|
+
...c,
|
|
213
|
+
ref: d,
|
|
214
|
+
onDismiss: () => l.onOpenChange(!1)
|
|
215
|
+
}
|
|
216
|
+
)
|
|
217
|
+
}
|
|
218
|
+
),
|
|
219
|
+
/* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
220
|
+
/* @__PURE__ */ i.jsx(ue, { titleId: l.titleId }),
|
|
221
|
+
/* @__PURE__ */ i.jsx(de, { contentRef: u, descriptionId: l.descriptionId })
|
|
222
|
+
] })
|
|
223
|
+
] });
|
|
224
|
+
}
|
|
225
|
+
), _ = "DialogTitle", w = a.forwardRef(
|
|
226
|
+
(e, t) => {
|
|
227
|
+
const { __scopeDialog: r, ...n } = e, o = f(_, r);
|
|
228
|
+
return /* @__PURE__ */ i.jsx(D.h2, { id: o.titleId, ...n, ref: t });
|
|
229
|
+
}
|
|
230
|
+
);
|
|
231
|
+
w.displayName = _;
|
|
232
|
+
var F = "DialogDescription", W = a.forwardRef(
|
|
233
|
+
(e, t) => {
|
|
234
|
+
const { __scopeDialog: r, ...n } = e, o = f(F, r);
|
|
235
|
+
return /* @__PURE__ */ i.jsx(D.p, { id: o.descriptionId, ...n, ref: t });
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
W.displayName = F;
|
|
239
|
+
var L = "DialogClose", k = a.forwardRef(
|
|
240
|
+
(e, t) => {
|
|
241
|
+
const { __scopeDialog: r, ...n } = e, o = f(L, r);
|
|
242
|
+
return /* @__PURE__ */ i.jsx(
|
|
243
|
+
D.button,
|
|
244
|
+
{
|
|
245
|
+
type: "button",
|
|
246
|
+
...n,
|
|
247
|
+
ref: t,
|
|
248
|
+
onClick: m(e.onClick, () => o.onOpenChange(!1))
|
|
249
|
+
}
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
);
|
|
253
|
+
k.displayName = L;
|
|
254
|
+
function P(e) {
|
|
255
|
+
return e ? "open" : "closed";
|
|
256
|
+
}
|
|
257
|
+
var G = "DialogTitleWarning", [Ee, V] = Z(G, {
|
|
258
|
+
contentName: p,
|
|
259
|
+
titleName: _,
|
|
260
|
+
docsSlug: "dialog"
|
|
261
|
+
}), ue = ({ titleId: e }) => {
|
|
262
|
+
const t = V(G), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
263
|
+
|
|
264
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
265
|
+
|
|
266
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
267
|
+
return a.useEffect(() => {
|
|
268
|
+
e && (document.getElementById(e) || console.error(r));
|
|
269
|
+
}, [r, e]), null;
|
|
270
|
+
}, fe = "DialogDescriptionWarning", de = ({ contentRef: e, descriptionId: t }) => {
|
|
271
|
+
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${V(fe).contentName}}.`;
|
|
272
|
+
return a.useEffect(() => {
|
|
273
|
+
const o = e.current?.getAttribute("aria-describedby");
|
|
274
|
+
t && o && (document.getElementById(t) || console.warn(n));
|
|
275
|
+
}, [n, e, t]), null;
|
|
276
|
+
}, _e = N, Pe = b, Oe = A, Ne = T, Ie = S, be = w, je = W, Ae = k;
|
|
277
|
+
export {
|
|
278
|
+
Ae as C,
|
|
279
|
+
je as D,
|
|
280
|
+
Ne as O,
|
|
281
|
+
Oe as P,
|
|
282
|
+
_e as R,
|
|
283
|
+
be as T,
|
|
284
|
+
Ie as a,
|
|
285
|
+
Pe as b
|
|
286
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const oe=require("react"),ge=require("./index-
|
|
1
|
+
"use strict";const oe=require("react"),ge=require("./index-_XxjJPRD.cjs"),ye=require("./index-CocSS1YK.cjs"),G=require("./index-CzY-WZXL.cjs"),be=require("./jsx-runtime-BB_1_6y_.cjs");function Ee(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=Ee(oe);var j="focusScope.autoFocusOnMount",_="focusScope.autoFocusOnUnmount",z={bubbles:!1,cancelable:!0},Se="FocusScope",ce=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...s}=e,[a,S]=u.useState(null),b=G.useCallbackRef(c),g=G.useCallbackRef(i),f=u.useRef(null),v=ge.useComposedRefs(t,o=>S(o)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let o=function(p){if(h.paused||!a)return;const y=p.target;a.contains(y)?f.current=y:k(f.current,{select:!0})},l=function(p){if(h.paused||!a)return;const y=p.relatedTarget;y!==null&&(a.contains(y)||k(f.current,{select:!0}))},d=function(p){if(document.activeElement===document.body)for(const E of p)E.removedNodes.length>0&&k(a)};document.addEventListener("focusin",o),document.addEventListener("focusout",l);const m=new MutationObserver(d);return a&&m.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",l),m.disconnect()}}},[r,a,h.paused]),u.useEffect(()=>{if(a){Q.add(h);const o=document.activeElement;if(!a.contains(o)){const d=new CustomEvent(j,z);a.addEventListener(j,b),a.dispatchEvent(d),d.defaultPrevented||(we(Te(ue(a)),{select:!0}),document.activeElement===o&&k(a))}return()=>{a.removeEventListener(j,b),setTimeout(()=>{const d=new CustomEvent(_,z);a.addEventListener(_,g),a.dispatchEvent(d),d.defaultPrevented||k(o??document.body,{select:!0}),a.removeEventListener(_,g),Q.remove(h)},0)}}},[a,b,g,h]);const w=u.useCallback(o=>{if(!n&&!r||h.paused)return;const l=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,d=document.activeElement;if(l&&d){const m=o.currentTarget,[p,y]=Ce(m);p&&y?!o.shiftKey&&d===y?(o.preventDefault(),n&&k(p,{select:!0})):o.shiftKey&&d===p&&(o.preventDefault(),n&&k(y,{select:!0})):d===m&&o.preventDefault()}},[n,r,h.paused]);return be.jsxRuntimeExports.jsx(ye.Primitive.div,{tabIndex:-1,...s,ref:v,onKeyDown:w})});ce.displayName=Se;function we(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(k(r,{select:t}),document.activeElement!==n)return}function Ce(e){const t=ue(e),n=Z(t,e),r=Z(t.reverse(),e);return[n,r]}function ue(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const c=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||c?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Z(e,t){for(const n of e)if(!Re(n,{upTo:t}))return n}function Re(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ke(e){return e instanceof HTMLInputElement&&"select"in e}function k(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ke(e)&&t&&e.select()}}var Q=Ae();function Ae(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=$(e,t),e.unshift(t)},remove(t){e=$(e,t),e[0]?.resume()}}}function $(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Te(e){return e.filter(t=>t.tagName!=="A")}var U=0;function Oe(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J()),document.body.insertAdjacentElement("beforeend",e[1]??J()),U++,()=>{U===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),U--}},[])}function J(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var C=function(){return C=Object.assign||function(t){for(var n,r=1,c=arguments.length;r<c;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},C.apply(this,arguments)};function ie(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(e);c<r.length;c++)t.indexOf(r[c])<0&&Object.prototype.propertyIsEnumerable.call(e,r[c])&&(n[r[c]]=e[r[c]]);return n}function Ne(e,t,n){if(n||arguments.length===2)for(var r=0,c=t.length,i;r<c;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var W="right-scroll-bar-position",D="width-before-scroll-bar",Me="with-scroll-bars-hidden",Fe="--removed-body-scroll-bar-size";function K(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Pe(e,t){var n=oe.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var c=n.value;c!==r&&(n.value=r,n.callback(r,c))}}}})[0];return n.callback=t,n.facade}var Le=typeof window<"u"?u.useLayoutEffect:u.useEffect,ee=new WeakMap;function xe(e,t){var n=Pe(null,function(r){return e.forEach(function(c){return K(c,r)})});return Le(function(){var r=ee.get(n);if(r){var c=new Set(r),i=new Set(e),s=n.current;c.forEach(function(a){i.has(a)||K(a,null)}),i.forEach(function(a){c.has(a)||K(a,s)})}ee.set(n,e)},[e]),n}function Ie(e){return e}function We(e,t){t===void 0&&(t=Ie);var n=[],r=!1,c={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var S=function(){var g=s;s=[],g.forEach(i)},b=function(){return Promise.resolve().then(S)};b(),n={push:function(g){s.push(g),b()},filter:function(g){return s=s.filter(g),n}}}};return c}function De(e){e===void 0&&(e={});var t=We(null);return t.options=C({async:!0,ssr:!1},e),t}var le=function(e){var t=e.sideCar,n=ie(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,C({},n))};le.isSideCarExport=!0;function Be(e,t){return e.useMedium(t),le}var se=De(),H=function(){},B=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:H,onWheelCapture:H,onTouchMoveCapture:H}),c=r[0],i=r[1],s=e.forwardProps,a=e.children,S=e.className,b=e.removeScrollBar,g=e.enabled,f=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,o=e.inert,l=e.allowPinchZoom,d=e.as,m=d===void 0?"div":d,p=e.gapMode,y=ie(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,A=xe([n,t]),R=C(C({},y),c);return u.createElement(u.Fragment,null,g&&u.createElement(E,{sideCar:se,removeScrollBar:b,shards:f,noRelative:h,noIsolation:w,inert:o,setCallbacks:i,allowPinchZoom:!!l,lockRef:n,gapMode:p}),s?u.cloneElement(u.Children.only(a),C(C({},R),{ref:A})):u.createElement(m,C({},R,{className:S,ref:A}),a))});B.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};B.classNames={fullWidth:D,zeroRight:W};var je=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=je();return t&&e.setAttribute("nonce",t),e}function Ue(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ke(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var He=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_e())&&(Ue(t,n),Ke(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ve=function(){var e=He();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fe=function(){var e=Ve(),t=function(n){var r=n.styles,c=n.dynamic;return e(r,c),null};return t},Xe={left:0,top:0,right:0,gap:0},V=function(e){return parseInt(e||"",10)||0},Ye=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[V(n),V(r),V(c)]},qe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xe;var t=Ye(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ge=fe(),M="data-scroll-locked",ze=function(e,t,n,r){var c=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
2
2
|
.`.concat(Me,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("react"),l=require("react-dom"),f=require("./index-
|
|
1
|
+
"use strict";const u=require("react"),l=require("react-dom"),f=require("./index-CocSS1YK.cjs"),d=require("./index-MQ0c3ZX_.cjs"),p=require("./jsx-runtime-BB_1_6y_.cjs");function m(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=m(u);var P="Portal",c=a.forwardRef((e,r)=>{const{container:t,...n}=e,[s,i]=a.useState(!1);d.useLayoutEffect2(()=>i(!0),[]);const o=t||s&&globalThis?.document?.body;return o?l.createPortal(p.jsxRuntimeExports.jsx(f.Primitive.div,{...n,ref:r}),o):null});c.displayName=P;exports.Portal=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const A=require("react"),x=require("./index-BWaO7kQK.cjs"),M=require("./index-cwZN7ZY3.cjs"),f=require("./index-
|
|
1
|
+
"use strict";const A=require("react"),x=require("./index-BWaO7kQK.cjs"),M=require("./index-cwZN7ZY3.cjs"),f=require("./index-COuvjZLM.cjs"),N=require("./index-Bd0gQB0k.cjs"),m=require("./index-CocSS1YK.cjs"),q=require("./index-CzRiuk60.cjs"),F=require("./index-WIv2ndLu.cjs"),d=require("./jsx-runtime-BB_1_6y_.cjs");function $(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const v=$(A);var g="Tabs",[w]=M.createContextScope(g,[f.createRovingFocusGroupScope]),R=f.createRovingFocusGroupScope(),[D,T]=w(g),j=v.forwardRef((e,n)=>{const{__scopeTabs:o,value:t,onValueChange:i,defaultValue:c,orientation:r="horizontal",dir:u,activationMode:p="automatic",...b}=e,s=q.useDirection(u),[a,l]=x.useControllableState({prop:t,onChange:i,defaultProp:c??"",caller:g});return d.jsxRuntimeExports.jsx(D,{scope:o,baseId:F.useId(),value:a,onValueChange:l,orientation:r,dir:s,activationMode:p,children:d.jsxRuntimeExports.jsx(m.Primitive.div,{dir:s,"data-orientation":r,...b,ref:n})})});j.displayName=g;var E="TabsList",C=v.forwardRef((e,n)=>{const{__scopeTabs:o,loop:t=!0,...i}=e,c=T(E,o),r=R(o);return d.jsxRuntimeExports.jsx(f.Root,{asChild:!0,...r,orientation:c.orientation,dir:c.dir,loop:t,children:d.jsxRuntimeExports.jsx(m.Primitive.div,{role:"tablist","aria-orientation":c.orientation,...i,ref:n})})});C.displayName=E;var h="TabsTrigger",I=v.forwardRef((e,n)=>{const{__scopeTabs:o,value:t,disabled:i=!1,...c}=e,r=T(h,o),u=R(o),p=P(r.baseId,t),b=S(r.baseId,t),s=t===r.value;return d.jsxRuntimeExports.jsx(f.Item,{asChild:!0,...u,focusable:!i,active:s,children:d.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button",role:"tab","aria-selected":s,"aria-controls":b,"data-state":s?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:p,...c,ref:n,onMouseDown:x.composeEventHandlers(e.onMouseDown,a=>{!i&&a.button===0&&a.ctrlKey===!1?r.onValueChange(t):a.preventDefault()}),onKeyDown:x.composeEventHandlers(e.onKeyDown,a=>{[" ","Enter"].includes(a.key)&&r.onValueChange(t)}),onFocus:x.composeEventHandlers(e.onFocus,()=>{const a=r.activationMode!=="manual";!s&&!i&&a&&r.onValueChange(t)})})})});I.displayName=h;var _="TabsContent",y=v.forwardRef((e,n)=>{const{__scopeTabs:o,value:t,forceMount:i,children:c,...r}=e,u=T(_,o),p=P(u.baseId,t),b=S(u.baseId,t),s=t===u.value,a=v.useRef(s);return v.useEffect(()=>{const l=requestAnimationFrame(()=>a.current=!1);return()=>cancelAnimationFrame(l)},[]),d.jsxRuntimeExports.jsx(N.Presence,{present:i||s,children:({present:l})=>d.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":s?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":p,hidden:!l,id:b,tabIndex:0,...r,ref:n,style:{...e.style,animationDuration:a.current?"0s":void 0},children:l&&c})})});y.displayName=_;function P(e,n){return`${e}-trigger-${n}`}function S(e,n){return`${e}-content-${n}`}var G=j,V=C,O=I,L=y;exports.Content=L;exports.List=V;exports.Root2=G;exports.Trigger=O;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import { P as o } from "./index-
|
|
2
|
+
import { P as o } from "./index-BMWt1NBG.js";
|
|
3
3
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
4
4
|
var s = Object.freeze({
|
|
5
5
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
2
|
import { c as p, u as H } from "./index-C0UREtMP.js";
|
|
3
|
-
import { c as V, u as z } from "./index-
|
|
4
|
-
import { u as q } from "./index-
|
|
3
|
+
import { c as V, u as z } from "./index-CUWMxxKG.js";
|
|
4
|
+
import { u as q } from "./index-DLcqcWxM.js";
|
|
5
5
|
import { c as J } from "./index-FxyLF8MY.js";
|
|
6
6
|
import { u as Q } from "./index-Cv867SGx.js";
|
|
7
|
-
import { P as G } from "./index-
|
|
7
|
+
import { P as G } from "./index-BMWt1NBG.js";
|
|
8
8
|
import { u as W } from "./index-0ioNhtNM.js";
|
|
9
9
|
import { j as d } from "./jsx-runtime-BzflLqGi.js";
|
|
10
10
|
var _ = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, I = "RovingFocusGroup", [y, N, Z] = V(I), [$, Ie] = J(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const f=require("react");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=l(f);function s(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function r(...e){return t=>{let n=!1;const c=e.map(o=>{const u=s(o,t);return!n&&typeof u=="function"&&(n=!0),u});if(n)return()=>{for(let o=0;o<c.length;o++){const u=c[o];typeof u=="function"?u():s(e[o],null)}}}}function a(...e){return i.useCallback(r(...e),e)}exports.composeRefs=r;exports.useComposedRefs=a;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as v from "react";
|
|
2
2
|
import { u as M, c as g } from "./index-C0UREtMP.js";
|
|
3
3
|
import { c as N } from "./index-FxyLF8MY.js";
|
|
4
|
-
import { c as x, R as S, I as F } from "./index-
|
|
5
|
-
import { P as w } from "./index-
|
|
6
|
-
import { P as b } from "./index-
|
|
7
|
-
import { u as D } from "./index-
|
|
4
|
+
import { c as x, R as S, I as F } from "./index-Se4vRnIO.js";
|
|
5
|
+
import { P as w } from "./index-BpWB3aFK.js";
|
|
6
|
+
import { P as b } from "./index-BMWt1NBG.js";
|
|
7
|
+
import { u as D } from "./index-CUWMxxKG.js";
|
|
8
8
|
import { u as V } from "./index-Cv867SGx.js";
|
|
9
9
|
import { j as d } from "./jsx-runtime-BzflLqGi.js";
|
|
10
10
|
var p = "Tabs", [G] = N(p, [
|
package/dist/input-group.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const s=require("./index-BTzZJcis.cjs"),n=require("./index-DoxiiusW.cjs"),u=require("./button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const s=require("./index-BTzZJcis.cjs"),n=require("./index-DoxiiusW.cjs"),u=require("./button-DEQVHMrX.cjs"),m=require("./input-BF73maXg.cjs"),i=require("./textarea-3ZdbFRDN.cjs");function p({className:t,...a}){return d.jsxRuntimeExports.jsx("div",{"data-slot":"input-group",role:"group",className:n.cn("adm:group/input-group adm:border-input adm:dark:bg-input/30 adm:relative adm:flex adm:w-full adm:items-center adm:rounded-md adm:border adm:shadow-xs adm:transition-[color,box-shadow] adm:outline-none","adm:h-9 adm:min-w-0 adm:has-[>textarea]:h-auto","adm:has-[>[data-align=inline-start]]:[&>input]:pl-2","adm:has-[>[data-align=inline-end]]:[&>input]:pr-2","adm:has-[>[data-align=block-start]]:h-auto adm:has-[>[data-align=block-start]]:flex-col adm:has-[>[data-align=block-start]]:[&>input]:pb-3","adm:has-[>[data-align=block-end]]:h-auto adm:has-[>[data-align=block-end]]:flex-col adm:has-[>[data-align=block-end]]:[&>input]:pt-3","adm:has-[[data-slot=input-group-control]:focus-visible]:border-ring adm:has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 adm:has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]","adm:has-[[data-slot][aria-invalid=true]]:ring-destructive/20 adm:has-[[data-slot][aria-invalid=true]]:border-destructive adm:dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",t),...a})}const l=s.cva("adm:text-muted-foreground adm:flex adm:h-auto adm:cursor-text adm:items-center adm:justify-center adm:gap-2 adm:py-1.5 adm:text-sm adm:font-medium adm:select-none adm:[&>svg:not([class*=size-])]:size-4 adm:[&>kbd]:rounded-[calc(var(--radius)-5px)] adm:group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"adm:order-first adm:pl-3 adm:has-[>button]:ml-[-0.45rem] adm:has-[>kbd]:ml-[-0.35rem]","inline-end":"adm:order-last adm:pr-3 adm:has-[>button]:mr-[-0.45rem] adm:has-[>kbd]:mr-[-0.35rem]","block-start":"adm:order-first adm:w-full adm:justify-start adm:px-3 adm:pt-3 adm:[.border-b]:pb-3 adm:group-has-[>input]/input-group:pt-2.5","block-end":"adm:order-last adm:w-full adm:justify-start adm:px-3 adm:pb-3 adm:[.border-t]:pt-3 adm:group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function c({className:t,align:a="inline-start",...e}){return d.jsxRuntimeExports.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":a,className:n.cn(l({align:a}),t),onClick:r=>{r.target.closest("button")||r.currentTarget.parentElement?.querySelector("input")?.focus()},...e})}const g=s.cva("adm:text-sm adm:shadow-none adm:flex adm:gap-2 adm:items-center",{variants:{size:{xs:"adm:h-6 adm:gap-1 adm:px-2 adm:rounded-[calc(var(--radius)-5px)] adm:[&>svg:not([class*=size-])]:size-3.5 adm:has-[>svg]:px-2",sm:"adm:h-8 adm:px-2.5 adm:gap-1.5 adm:rounded-md adm:has-[>svg]:px-2.5","icon-xs":"adm:size-6 adm:rounded-[calc(var(--radius)-5px)] adm:p-0 adm:has-[>svg]:p-0","icon-sm":"adm:size-8 adm:p-0 adm:has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function x({className:t,type:a="button",variant:e="ghost",size:r="xs",...o}){return d.jsxRuntimeExports.jsx(u.Button,{type:a,"data-size":r,variant:e,className:n.cn(g({size:r}),t),...o})}function b({className:t,...a}){return d.jsxRuntimeExports.jsx("span",{className:n.cn("adm:text-muted-foreground adm:flex adm:items-center adm:gap-2 adm:text-sm adm:[&_svg]:pointer-events-none adm:[&_svg:not([class*=size-])]:size-4",t),...a})}function h({className:t,...a}){return d.jsxRuntimeExports.jsx(m.Input,{"data-slot":"input-group-control",className:n.cn("adm:flex-1 adm:rounded-none adm:border-0 adm:bg-transparent adm:shadow-none adm:focus-visible:ring-0 adm:dark:bg-transparent",t),...a})}function f({className:t,...a}){return d.jsxRuntimeExports.jsx(i.Textarea,{"data-slot":"input-group-control",className:n.cn("adm:flex-1 adm:resize-none adm:rounded-none adm:border-0 adm:bg-transparent adm:py-3 adm:shadow-none adm:focus-visible:ring-0 adm:dark:bg-transparent",t),...a})}exports.InputGroup=p;exports.InputGroupAddon=c;exports.InputGroupButton=x;exports.InputGroupInput=h;exports.InputGroupText=b;exports.InputGroupTextarea=f;
|
package/dist/input-group.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j as d } from "./jsx-runtime-BzflLqGi.js";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { c as m } from "./index-BqtVL8d-.js";
|
|
4
4
|
import { c as r } from "./index-CRiPKpXj.js";
|
|
5
|
-
import { B as e } from "./button-
|
|
5
|
+
import { B as e } from "./button-2GdKenQI.js";
|
|
6
6
|
import { I as i } from "./input-C04hsVXE.js";
|
|
7
7
|
import { T as u } from "./textarea-BZbcAAAu.js";
|
|
8
8
|
function k({ className: t, ...a }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("react"),i=require("./index-
|
|
1
|
+
"use strict";const n=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("react"),i=require("./index-CocSS1YK.cjs"),d=require("./index-DoxiiusW.cjs");function l(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const u=l(s);var c="Label",o=u.forwardRef((e,a)=>n.jsxRuntimeExports.jsx(i.Primitive.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName=c;var m=o;function f({className:e,...a}){return n.jsxRuntimeExports.jsx(m,{"data-slot":"label",className:d.cn("adm:flex adm:items-center adm:gap-2 adm:text-sm adm:leading-none adm:font-medium adm:select-none adm:group-data-[disabled=true]:pointer-events-none adm:group-data-[disabled=true]:opacity-50 adm:peer-disabled:cursor-not-allowed adm:peer-disabled:opacity-50",e),...a})}exports.Label=f;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-BzflLqGi.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { P as m } from "./index-
|
|
3
|
+
import { P as m } from "./index-BMWt1NBG.js";
|
|
4
4
|
import { c as s } from "./index-CRiPKpXj.js";
|
|
5
5
|
var i = "Label", o = d.forwardRef((e, t) => /* @__PURE__ */ r.jsx(
|
|
6
6
|
m.label,
|
package/dist/label.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./label-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./label-BjXORCBM.cjs");exports.Label=e.Label;
|
package/dist/label.js
CHANGED
package/dist/pagination.cjs
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const
|
|
2
|
-
* @license lucide-react v0.546.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const u=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],x=m.createLucideIcon("ellipsis",u);function d({className:a,...n}){return t.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:e.cn("adm:mx-auto adm:flex adm:w-full adm:justify-center",a),...n})}function p({className:a,...n}){return t.jsxRuntimeExports.jsx("ul",{"data-slot":"pagination-content",className:e.cn("adm:flex adm:flex-row adm:items-center adm:gap-1",a),...n})}function g({...a}){return t.jsxRuntimeExports.jsx("li",{"data-slot":"pagination-item",...a})}function s({className:a,isActive:n,size:i="icon",...o}){return t.jsxRuntimeExports.jsx("a",{"aria-current":n?"page":void 0,"data-slot":"pagination-link","data-active":n,className:e.cn(r.buttonVariants({variant:n?"outline":"ghost",size:i}),a),...o})}function j({className:a,children:n,...i}){return t.jsxRuntimeExports.jsxs(s,{"aria-label":"Go to previous page",size:"default",className:e.cn("adm:gap-1 adm:px-2.5 adm:sm:pl-2.5",a),...i,children:[t.jsxRuntimeExports.jsx(c.ChevronLeft,{}),t.jsxRuntimeExports.jsx("span",{className:"adm:hidden adm:sm:block",children:n??"Previous"})]})}function f({className:a,children:n,...i}){return t.jsxRuntimeExports.jsxs(s,{"aria-label":"Go to next page",size:"default",className:e.cn("adm:gap-1 adm:px-2.5 adm:sm:pr-2.5",a),...i,children:[t.jsxRuntimeExports.jsx("span",{className:"adm:hidden adm:sm:block",children:n??"Next"}),t.jsxRuntimeExports.jsx(l.ChevronRight,{})]})}function P({className:a,...n}){return t.jsxRuntimeExports.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:e.cn("adm:flex adm:size-9 adm:items-center adm:justify-center",a),...n,children:[t.jsxRuntimeExports.jsx(x,{className:"adm:size-4"}),t.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"More pages"})]})}exports.Pagination=d;exports.PaginationContent=p;exports.PaginationEllipsis=P;exports.PaginationItem=g;exports.PaginationLink=s;exports.PaginationNext=f;exports.PaginationPrevious=j;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const i=require("./index-DoxiiusW.cjs"),r=require("./button-DEQVHMrX.cjs"),m=require("./chevron-left-B8QsBNvc.cjs"),l=require("./chevron-right-BpzggHsr.cjs"),u=require("./ellipsis-Ct9VTDOG.cjs");function x({className:a,...n}){return t.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:i.cn("adm:mx-auto adm:flex adm:w-full adm:justify-center",a),...n})}function c({className:a,...n}){return t.jsxRuntimeExports.jsx("ul",{"data-slot":"pagination-content",className:i.cn("adm:flex adm:flex-row adm:items-center adm:gap-1",a),...n})}function d({...a}){return t.jsxRuntimeExports.jsx("li",{"data-slot":"pagination-item",...a})}function s({className:a,isActive:n,size:e="icon",...o}){return t.jsxRuntimeExports.jsx("a",{"aria-current":n?"page":void 0,"data-slot":"pagination-link","data-active":n,className:i.cn(r.buttonVariants({variant:n?"outline":"ghost",size:e}),a),...o})}function p({className:a,children:n,...e}){return t.jsxRuntimeExports.jsxs(s,{"aria-label":"Go to previous page",size:"default",className:i.cn("adm:gap-1 adm:px-2.5 adm:sm:pl-2.5",a),...e,children:[t.jsxRuntimeExports.jsx(m.ChevronLeft,{}),t.jsxRuntimeExports.jsx("span",{className:"adm:hidden adm:sm:block",children:n??"Previous"})]})}function g({className:a,children:n,...e}){return t.jsxRuntimeExports.jsxs(s,{"aria-label":"Go to next page",size:"default",className:i.cn("adm:gap-1 adm:px-2.5 adm:sm:pr-2.5",a),...e,children:[t.jsxRuntimeExports.jsx("span",{className:"adm:hidden adm:sm:block",children:n??"Next"}),t.jsxRuntimeExports.jsx(l.ChevronRight,{})]})}function j({className:a,...n}){return t.jsxRuntimeExports.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:i.cn("adm:flex adm:size-9 adm:items-center adm:justify-center",a),...n,children:[t.jsxRuntimeExports.jsx(u.Ellipsis,{className:"adm:size-4"}),t.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"More pages"})]})}exports.Pagination=x;exports.PaginationContent=c;exports.PaginationEllipsis=j;exports.PaginationItem=d;exports.PaginationLink=s;exports.PaginationNext=g;exports.PaginationPrevious=p;
|