@konstructio/ui 0.1.2-alpha.20 → 0.1.2-alpha.22
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/{Modal-B8jrP02v.js → Modal-Dpk-1N9W.js} +2 -2
- package/dist/chevron-down-DgT-uSF9.js +5 -0
- package/dist/chevron-right-DYvXLeql.js +7 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +2 -8
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +6 -7
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +2 -2
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +1 -1
- package/dist/components/Dropdown/components/List/List.js +1 -1
- package/dist/components/Dropdown/components/Wrapper.js +52 -64
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Loading/Loading.js +1 -7
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/PieChart/PieChart.js +0 -18
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +10 -11
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Toast/Toast.js +233 -210
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +64 -67
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +2 -2
- package/dist/components/VirtualizedTable/components/Body/Body.js +36 -22
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +40 -38
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +23 -16
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +52 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +263 -236
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
- package/dist/components/VirtualizedTable/components/index.js +8 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +43 -42
- package/dist/components/index.js +1 -1
- package/dist/contexts/theme.provider.js +0 -1
- package/dist/{createLucideIcon-DGhJ8Z4k.js → createLucideIcon-D4r5Phnh.js} +0 -24
- package/dist/{ellipsis-vertical-DpnVYRxI.js → ellipsis-vertical-BVPtjl5f.js} +1 -7
- package/dist/{index-N2OStZoU.js → index--V_ZsiQe.js} +0 -21
- package/dist/{index-bwWKd82e.js → index-BbQkJE5L.js} +1 -1
- package/dist/index-BtQfgaSF.js +60 -0
- package/dist/index-CIAmiWcw.js +200 -0
- package/dist/index-CSFe9uC5.js +14 -0
- package/dist/{index-Dx2grAuN.js → index-CSWGJT-v.js} +0 -20
- package/dist/index-CigKKiZS.js +91 -0
- package/dist/index-DDByhzds.js +137 -0
- package/dist/{index-DQJhMz8c.js → index-DH2Fnov1.js} +11 -12
- package/dist/index-DLcqcWxM.js +29 -0
- package/dist/{index-CffpTFMi.js → index-Dbt2vBmS.js} +5 -6
- package/dist/{index-l3NwplN0.js → index-DpW9ExsS.js} +10 -11
- package/dist/index-DrWQH0QF.js +55 -0
- package/dist/{index-0XtjXVpJ.js → index-X4k_cU8k.js} +4 -4
- package/dist/index-kyuBfLcN.js +479 -0
- package/dist/{index-C1g_chDT.js → index-mPY_8Y5v.js} +2 -2
- package/dist/{index-BAEWsOG1.js → index-ohdbKsws.js} +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/package.json +17 -17
- package/dist/styles.css +1 -1
- package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
- package/dist/{x-4F_5p77m.js → x-DPU9OdYH.js} +1 -1
- package/package.json +17 -17
- package/dist/chevron-down-J5nS1Tu0.js +0 -11
- package/dist/chevron-right-DeMVrnIg.js +0 -19
- package/dist/components/Skeleton/Skeleton.js +0 -42
- package/dist/index-BVRIAMfe.js +0 -36
- package/dist/index-BfXxHr_2.js +0 -125
- package/dist/index-Bn4c-gww.js +0 -131
- package/dist/index-Cvx4lqTq.js +0 -47
- package/dist/index-DQH6odE9.js +0 -82
- package/dist/index-DdXGVVBv.js +0 -15
- package/dist/index-amYX3uxF.js +0 -436
- package/dist/index-sp5ZfG6g.js +0 -31
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import R from "react";
|
|
3
|
+
import { c as T } from "./index-CIAmiWcw.js";
|
|
4
|
+
import { c as P, u as A } from "./index-DLcqcWxM.js";
|
|
5
|
+
import { jsx as E } from "react/jsx-runtime";
|
|
6
|
+
// @__NO_SIDE_EFFECTS__
|
|
7
|
+
function M(e) {
|
|
8
|
+
const t = /* @__PURE__ */ v(e), n = l.forwardRef((r, o) => {
|
|
9
|
+
const { children: c, ...a } = r, s = l.Children.toArray(c), d = s.find(w);
|
|
10
|
+
if (d) {
|
|
11
|
+
const f = d.props.children, y = s.map((I) => I === d ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : I);
|
|
12
|
+
return /* @__PURE__ */ E(t, { ...a, ref: o, children: l.isValidElement(f) ? l.cloneElement(f, void 0, y) : null });
|
|
13
|
+
}
|
|
14
|
+
return /* @__PURE__ */ E(t, { ...a, ref: o, children: c });
|
|
15
|
+
});
|
|
16
|
+
return n.displayName = `${e}.Slot`, n;
|
|
17
|
+
}
|
|
18
|
+
// @__NO_SIDE_EFFECTS__
|
|
19
|
+
function v(e) {
|
|
20
|
+
const t = l.forwardRef((n, r) => {
|
|
21
|
+
const { children: o, ...c } = n;
|
|
22
|
+
if (l.isValidElement(o)) {
|
|
23
|
+
const a = D(o), s = V(c, o.props);
|
|
24
|
+
return o.type !== l.Fragment && (s.ref = r ? P(r, a) : a), l.cloneElement(o, s);
|
|
25
|
+
}
|
|
26
|
+
return l.Children.count(o) > 1 ? l.Children.only(null) : null;
|
|
27
|
+
});
|
|
28
|
+
return t.displayName = `${e}.SlotClone`, t;
|
|
29
|
+
}
|
|
30
|
+
var b = Symbol("radix.slottable");
|
|
31
|
+
function w(e) {
|
|
32
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === b;
|
|
33
|
+
}
|
|
34
|
+
function V(e, t) {
|
|
35
|
+
const n = { ...t };
|
|
36
|
+
for (const r in t) {
|
|
37
|
+
const o = e[r], c = t[r];
|
|
38
|
+
/^on[A-Z]/.test(r) ? o && c ? n[r] = (...s) => {
|
|
39
|
+
const d = c(...s);
|
|
40
|
+
return o(...s), d;
|
|
41
|
+
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...c } : r === "className" && (n[r] = [o, c].filter(Boolean).join(" "));
|
|
42
|
+
}
|
|
43
|
+
return { ...e, ...n };
|
|
44
|
+
}
|
|
45
|
+
function D(e) {
|
|
46
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
47
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
48
|
+
}
|
|
49
|
+
function B(e) {
|
|
50
|
+
const t = e + "CollectionProvider", [n, r] = T(t), [o, c] = n(
|
|
51
|
+
t,
|
|
52
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
53
|
+
), a = (m) => {
|
|
54
|
+
const { scope: i, children: S } = m, u = R.useRef(null), p = R.useRef(/* @__PURE__ */ new Map()).current;
|
|
55
|
+
return /* @__PURE__ */ E(o, { scope: i, itemMap: p, collectionRef: u, children: S });
|
|
56
|
+
};
|
|
57
|
+
a.displayName = t;
|
|
58
|
+
const s = e + "CollectionSlot", d = /* @__PURE__ */ M(s), f = R.forwardRef(
|
|
59
|
+
(m, i) => {
|
|
60
|
+
const { scope: S, children: u } = m, p = c(s, S), C = A(i, p.collectionRef);
|
|
61
|
+
return /* @__PURE__ */ E(d, { ref: C, children: u });
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
f.displayName = s;
|
|
65
|
+
const y = e + "CollectionItemSlot", I = "data-radix-collection-item", N = /* @__PURE__ */ M(y), _ = R.forwardRef(
|
|
66
|
+
(m, i) => {
|
|
67
|
+
const { scope: S, children: u, ...p } = m, C = R.useRef(null), g = A(i, C), x = c(y, S);
|
|
68
|
+
return R.useEffect(() => (x.itemMap.set(C, { ref: C, ...p }), () => void x.itemMap.delete(C))), /* @__PURE__ */ E(N, { [I]: "", ref: g, children: u });
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
_.displayName = y;
|
|
72
|
+
function O(m) {
|
|
73
|
+
const i = c(e + "CollectionConsumer", m);
|
|
74
|
+
return R.useCallback(() => {
|
|
75
|
+
const u = i.collectionRef.current;
|
|
76
|
+
if (!u) return [];
|
|
77
|
+
const p = Array.from(u.querySelectorAll(`[${I}]`));
|
|
78
|
+
return Array.from(i.itemMap.values()).sort(
|
|
79
|
+
(x, h) => p.indexOf(x.ref.current) - p.indexOf(h.ref.current)
|
|
80
|
+
);
|
|
81
|
+
}, [i.collectionRef, i.itemMap]);
|
|
82
|
+
}
|
|
83
|
+
return [
|
|
84
|
+
{ Provider: a, Slot: f, ItemSlot: _ },
|
|
85
|
+
O,
|
|
86
|
+
r
|
|
87
|
+
];
|
|
88
|
+
}
|
|
89
|
+
export {
|
|
90
|
+
B as c
|
|
91
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { jsx as a, Fragment as O, jsxs as w } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { c as I, b as x } from "./index-CIAmiWcw.js";
|
|
4
|
+
import { u } from "./index-DLcqcWxM.js";
|
|
5
|
+
import { c as A, R as M, P as L, O as $, W as F, C as B, T as G, d as W, b as v, e as j } from "./index-kyuBfLcN.js";
|
|
6
|
+
import { Button as Y } from "./components/Button/Button.js";
|
|
7
|
+
import { cn as k } from "./utils/index.js";
|
|
8
|
+
var q = Symbol("radix.slottable");
|
|
9
|
+
// @__NO_SIDE_EFFECTS__
|
|
10
|
+
function H(r) {
|
|
11
|
+
const e = ({ children: o }) => /* @__PURE__ */ a(O, { children: o });
|
|
12
|
+
return e.displayName = `${r}.Slottable`, e.__radixId = q, e;
|
|
13
|
+
}
|
|
14
|
+
var D = "AlertDialog", [V, ne] = I(D, [
|
|
15
|
+
A
|
|
16
|
+
]), s = A(), f = (r) => {
|
|
17
|
+
const { __scopeAlertDialog: e, ...o } = r, t = s(e);
|
|
18
|
+
return /* @__PURE__ */ a(M, { ...t, ...o, modal: !0 });
|
|
19
|
+
};
|
|
20
|
+
f.displayName = D;
|
|
21
|
+
var z = "AlertDialogTrigger", m = l.forwardRef(
|
|
22
|
+
(r, e) => {
|
|
23
|
+
const { __scopeAlertDialog: o, ...t } = r, i = s(o);
|
|
24
|
+
return /* @__PURE__ */ a(j, { ...i, ...t, ref: e });
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
m.displayName = z;
|
|
28
|
+
var J = "AlertDialogPortal", _ = (r) => {
|
|
29
|
+
const { __scopeAlertDialog: e, ...o } = r, t = s(e);
|
|
30
|
+
return /* @__PURE__ */ a(L, { ...t, ...o });
|
|
31
|
+
};
|
|
32
|
+
_.displayName = J;
|
|
33
|
+
var K = "AlertDialogOverlay", y = l.forwardRef(
|
|
34
|
+
(r, e) => {
|
|
35
|
+
const { __scopeAlertDialog: o, ...t } = r, i = s(o);
|
|
36
|
+
return /* @__PURE__ */ a($, { ...i, ...t, ref: e });
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
y.displayName = K;
|
|
40
|
+
var n = "AlertDialogContent", [Q, U] = V(n), X = /* @__PURE__ */ H("AlertDialogContent"), N = l.forwardRef(
|
|
41
|
+
(r, e) => {
|
|
42
|
+
const { __scopeAlertDialog: o, children: t, ...i } = r, d = s(o), p = l.useRef(null), P = u(e, p), g = l.useRef(null);
|
|
43
|
+
return /* @__PURE__ */ a(
|
|
44
|
+
F,
|
|
45
|
+
{
|
|
46
|
+
contentName: n,
|
|
47
|
+
titleName: h,
|
|
48
|
+
docsSlug: "alert-dialog",
|
|
49
|
+
children: /* @__PURE__ */ a(Q, { scope: o, cancelRef: g, children: /* @__PURE__ */ w(
|
|
50
|
+
B,
|
|
51
|
+
{
|
|
52
|
+
role: "alertdialog",
|
|
53
|
+
...d,
|
|
54
|
+
...i,
|
|
55
|
+
ref: P,
|
|
56
|
+
onOpenAutoFocus: x(i.onOpenAutoFocus, (c) => {
|
|
57
|
+
c.preventDefault(), g.current?.focus({ preventScroll: !0 });
|
|
58
|
+
}),
|
|
59
|
+
onPointerDownOutside: (c) => c.preventDefault(),
|
|
60
|
+
onInteractOutside: (c) => c.preventDefault(),
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ a(X, { children: t }),
|
|
63
|
+
/* @__PURE__ */ a(ee, { contentRef: p })
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
) })
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
N.displayName = n;
|
|
72
|
+
var h = "AlertDialogTitle", R = l.forwardRef(
|
|
73
|
+
(r, e) => {
|
|
74
|
+
const { __scopeAlertDialog: o, ...t } = r, i = s(o);
|
|
75
|
+
return /* @__PURE__ */ a(G, { ...i, ...t, ref: e });
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
R.displayName = h;
|
|
79
|
+
var C = "AlertDialogDescription", S = l.forwardRef((r, e) => {
|
|
80
|
+
const { __scopeAlertDialog: o, ...t } = r, i = s(o);
|
|
81
|
+
return /* @__PURE__ */ a(W, { ...i, ...t, ref: e });
|
|
82
|
+
});
|
|
83
|
+
S.displayName = C;
|
|
84
|
+
var Z = "AlertDialogAction", E = l.forwardRef(
|
|
85
|
+
(r, e) => {
|
|
86
|
+
const { __scopeAlertDialog: o, ...t } = r, i = s(o);
|
|
87
|
+
return /* @__PURE__ */ a(v, { ...i, ...t, ref: e });
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
E.displayName = Z;
|
|
91
|
+
var T = "AlertDialogCancel", b = l.forwardRef(
|
|
92
|
+
(r, e) => {
|
|
93
|
+
const { __scopeAlertDialog: o, ...t } = r, { cancelRef: i } = U(T, o), d = s(o), p = u(e, i);
|
|
94
|
+
return /* @__PURE__ */ a(v, { ...d, ...t, ref: p });
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
b.displayName = T;
|
|
98
|
+
var ee = ({ contentRef: r }) => {
|
|
99
|
+
const e = `\`${n}\` requires a description for the component to be accessible for screen reader users.
|
|
100
|
+
|
|
101
|
+
You can add a description to the \`${n}\` by passing a \`${C}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
102
|
+
|
|
103
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${n}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
104
|
+
|
|
105
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
106
|
+
return l.useEffect(() => {
|
|
107
|
+
document.getElementById(
|
|
108
|
+
r.current?.getAttribute("aria-describedby")
|
|
109
|
+
) || console.warn(e);
|
|
110
|
+
}, [e, r]), null;
|
|
111
|
+
}, ce = f, re = m, pe = _, de = y, ge = N, ue = E, Ae = b, ve = R, De = S;
|
|
112
|
+
const fe = ({
|
|
113
|
+
"data-theme": r,
|
|
114
|
+
className: e,
|
|
115
|
+
text: o,
|
|
116
|
+
onOpen: t
|
|
117
|
+
}) => /* @__PURE__ */ a(re, { asChild: !0, children: /* @__PURE__ */ a(
|
|
118
|
+
Y,
|
|
119
|
+
{
|
|
120
|
+
type: "button",
|
|
121
|
+
"data-theme": r,
|
|
122
|
+
className: k(e),
|
|
123
|
+
onClick: t,
|
|
124
|
+
children: o
|
|
125
|
+
}
|
|
126
|
+
) });
|
|
127
|
+
export {
|
|
128
|
+
fe as A,
|
|
129
|
+
ge as C,
|
|
130
|
+
De as D,
|
|
131
|
+
de as O,
|
|
132
|
+
pe as P,
|
|
133
|
+
ce as R,
|
|
134
|
+
ve as T,
|
|
135
|
+
Ae as a,
|
|
136
|
+
ue as b
|
|
137
|
+
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { c as K, b as I, a as L } from "./index-
|
|
3
|
-
import { c as ce } from "./index-
|
|
4
|
-
import { u as ie } from "./index-
|
|
5
|
-
import { u as O } from "./index-
|
|
6
|
-
import { P as C } from "./index-BVRIAMfe.js";
|
|
2
|
+
import { c as K, P as C, b as I, a as L } from "./index-CIAmiWcw.js";
|
|
3
|
+
import { c as ce } from "./index-CigKKiZS.js";
|
|
4
|
+
import { u as ie } from "./index-DLcqcWxM.js";
|
|
5
|
+
import { u as O } from "./index-BbQkJE5L.js";
|
|
7
6
|
import { u as ue } from "./index-0ioNhtNM.js";
|
|
8
7
|
import { u as k } from "./index-BdMNhZnh.js";
|
|
9
8
|
import { jsx as l } from "react/jsx-runtime";
|
|
10
|
-
import { P as le } from "./index-
|
|
9
|
+
import { P as le } from "./index-mPY_8Y5v.js";
|
|
11
10
|
var N = "rovingFocusGroup.onEntryFocus", de = { bubbles: !1, cancelable: !0 }, h = "RovingFocusGroup", [D, V, fe] = ce(h), [ve, U] = K(
|
|
12
11
|
h,
|
|
13
12
|
[fe]
|
|
@@ -172,7 +171,7 @@ function z(e, o = !1) {
|
|
|
172
171
|
function Fe(e, o) {
|
|
173
172
|
return e.map((n, t) => e[(o + t) % e.length]);
|
|
174
173
|
}
|
|
175
|
-
var Re = B, Ce = Y, _ = "Tabs", [he,
|
|
174
|
+
var Re = B, Ce = Y, _ = "Tabs", [he, Me] = K(_, [
|
|
176
175
|
U
|
|
177
176
|
]), H = U(), [Ee, x] = he(_), j = s.forwardRef(
|
|
178
177
|
(e, o) => {
|
|
@@ -314,10 +313,10 @@ function ee(e, o) {
|
|
|
314
313
|
function te(e, o) {
|
|
315
314
|
return `${e}-content-${o}`;
|
|
316
315
|
}
|
|
317
|
-
var
|
|
316
|
+
var Ge = j, Ke = J, Le = W, Oe = Z;
|
|
318
317
|
export {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
318
|
+
Oe as C,
|
|
319
|
+
Ke as L,
|
|
320
|
+
Ge as R,
|
|
321
|
+
Le as T
|
|
323
322
|
};
|
|
@@ -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
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import { b as h } from "./index-
|
|
3
|
-
import {
|
|
4
|
-
import { u as g } from "./index-DQH6odE9.js";
|
|
2
|
+
import { P as R, b as h, d as z } from "./index-CIAmiWcw.js";
|
|
3
|
+
import { u as g } from "./index-DLcqcWxM.js";
|
|
5
4
|
import { u as m } from "./index-0ioNhtNM.js";
|
|
6
5
|
import { jsx as B } from "react/jsx-runtime";
|
|
7
6
|
function H(n, e = globalThis?.document) {
|
|
@@ -129,9 +128,9 @@ function I(n, e, t, { discrete: o }) {
|
|
|
129
128
|
const s = t.originalEvent.target, c = new CustomEvent(n, { bubbles: !1, cancelable: !0, detail: t });
|
|
130
129
|
e && s.addEventListener(n, e, { once: !0 }), o ? z(s, c) : s.dispatchEvent(c);
|
|
131
130
|
}
|
|
132
|
-
var
|
|
131
|
+
var Z = x, $ = F;
|
|
133
132
|
export {
|
|
134
|
-
|
|
133
|
+
$ as B,
|
|
135
134
|
x as D,
|
|
136
|
-
|
|
135
|
+
Z as R
|
|
137
136
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import { a as ce, c as le, b as _ } from "./index-
|
|
3
|
-
import { u as M } from "./index-
|
|
2
|
+
import { a as ce, c as le, b as _, P as T } from "./index-CIAmiWcw.js";
|
|
3
|
+
import { u as M } from "./index-DLcqcWxM.js";
|
|
4
4
|
import { u as de } from "./index-BdMNhZnh.js";
|
|
5
5
|
import { u as ue } from "./index-BZPx6jYI.js";
|
|
6
|
-
import { u as fe } from "./index-
|
|
7
|
-
import {
|
|
8
|
-
import { c as me } from "./index-Cvx4lqTq.js";
|
|
6
|
+
import { u as fe } from "./index-ohdbKsws.js";
|
|
7
|
+
import { c as me } from "./index-CigKKiZS.js";
|
|
9
8
|
import { jsx as g, jsxs as Se } from "react/jsx-runtime";
|
|
10
9
|
function $(e, [t, n]) {
|
|
11
10
|
return Math.min(n, Math.max(t, e));
|
|
@@ -15,7 +14,7 @@ var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arrow
|
|
|
15
14
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
16
15
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
17
16
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
18
|
-
}, C = "Slider", [N, pe, he] = me(C), [W,
|
|
17
|
+
}, C = "Slider", [N, pe, he] = me(C), [W, ze] = le(C, [
|
|
19
18
|
he
|
|
20
19
|
]), [ge, V] = W(C), q = l.forwardRef(
|
|
21
20
|
(e, t) => {
|
|
@@ -423,10 +422,10 @@ function Ce(e, t) {
|
|
|
423
422
|
const n = Math.pow(10, t);
|
|
424
423
|
return Math.round(e * n) / n;
|
|
425
424
|
}
|
|
426
|
-
var
|
|
425
|
+
var He = q, Ne = te, Le = ne, Oe = oe;
|
|
427
426
|
export {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
427
|
+
He as R,
|
|
428
|
+
Ne as T,
|
|
429
|
+
Le as a,
|
|
430
|
+
Oe as b
|
|
432
431
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { c as f } from "./index-BtQfgaSF.js";
|
|
3
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
4
|
+
var v = [
|
|
5
|
+
"a",
|
|
6
|
+
"button",
|
|
7
|
+
"div",
|
|
8
|
+
"form",
|
|
9
|
+
"h2",
|
|
10
|
+
"h3",
|
|
11
|
+
"img",
|
|
12
|
+
"input",
|
|
13
|
+
"label",
|
|
14
|
+
"li",
|
|
15
|
+
"nav",
|
|
16
|
+
"ol",
|
|
17
|
+
"p",
|
|
18
|
+
"select",
|
|
19
|
+
"span",
|
|
20
|
+
"svg",
|
|
21
|
+
"ul"
|
|
22
|
+
], c = v.reduce((i, r) => {
|
|
23
|
+
const l = f(`Primitive.${r}`), e = t.forwardRef((s, d) => {
|
|
24
|
+
const { asChild: n, ...m } = s, p = n ? l : r;
|
|
25
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ a(p, { ...m, ref: d });
|
|
26
|
+
});
|
|
27
|
+
return e.displayName = `Primitive.${r}`, { ...i, [r]: e };
|
|
28
|
+
}, {}), u = Object.freeze({
|
|
29
|
+
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
30
|
+
position: "absolute",
|
|
31
|
+
border: 0,
|
|
32
|
+
width: 1,
|
|
33
|
+
height: 1,
|
|
34
|
+
padding: 0,
|
|
35
|
+
margin: -1,
|
|
36
|
+
overflow: "hidden",
|
|
37
|
+
clip: "rect(0, 0, 0, 0)",
|
|
38
|
+
whiteSpace: "nowrap",
|
|
39
|
+
wordWrap: "normal"
|
|
40
|
+
}), w = "VisuallyHidden", o = t.forwardRef(
|
|
41
|
+
(i, r) => /* @__PURE__ */ a(
|
|
42
|
+
c.span,
|
|
43
|
+
{
|
|
44
|
+
...i,
|
|
45
|
+
ref: r,
|
|
46
|
+
style: { ...u, ...i.style }
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
);
|
|
50
|
+
o.displayName = w;
|
|
51
|
+
var S = o;
|
|
52
|
+
export {
|
|
53
|
+
S as R,
|
|
54
|
+
o as V
|
|
55
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as Ee, P as ke, O as Se, C as Ie } from "./index-
|
|
1
|
+
import { R as Ee, P as ke, O as Se, C as Ie } from "./index-kyuBfLcN.js";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { P as C } from "./index-
|
|
4
|
-
import { u as P } from "./index-
|
|
5
|
-
import {
|
|
3
|
+
import { P as C } from "./index-CIAmiWcw.js";
|
|
4
|
+
import { u as P } from "./index-BbQkJE5L.js";
|
|
5
|
+
import { c as j } from "./index-DLcqcWxM.js";
|
|
6
6
|
var de = 1, xe = 0.9, Re = 0.8, Ce = 0.17, Q = 0.1, Z = 0.999, Ae = 0.9999, Me = 0.99, $e = /[\\\/_+.#"@\[\(\{&]/, De = /[\\\/_+.#"@\[\(\{&]/g, Fe = /[\s-]/, me = /[\s-]/g;
|
|
7
7
|
function ee(t, l, r, f, u, c, d) {
|
|
8
8
|
if (c === l.length) return u === t.length ? de : Me;
|