@adamosuiteservices/ui 1.2.5 → 1.4.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/layout/sidebar/sidebar.d.ts +7 -3
- package/dist/components/ui/badge/badge.d.ts +1 -1
- 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/button/button.d.ts +2 -2
- package/dist/components/ui/dialog/dialog.d.ts +2 -1
- package/dist/components/ui/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +1 -1
- package/dist/components/ui/typography/typography.d.ts +1 -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 +2 -2
- package/dist/sidebar.js +89 -78
- 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 +404 -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
package/dist/pagination.js
CHANGED
|
@@ -1,65 +1,54 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as i } from "./jsx-runtime-BzflLqGi.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { c as
|
|
4
|
-
import { b as r } from "./button-
|
|
5
|
-
import { C as
|
|
6
|
-
import { C as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the ISC license.
|
|
12
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
const d = [
|
|
15
|
-
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
16
|
-
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
17
|
-
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
18
|
-
], p = c("ellipsis", d);
|
|
19
|
-
function y({ className: a, ...i }) {
|
|
20
|
-
return /* @__PURE__ */ n.jsx(
|
|
3
|
+
import { c as t } from "./index-CRiPKpXj.js";
|
|
4
|
+
import { b as r } from "./button-2GdKenQI.js";
|
|
5
|
+
import { C as m } from "./chevron-left-Eal-WYLp.js";
|
|
6
|
+
import { C as l } from "./chevron-right-Cnc2tB4-.js";
|
|
7
|
+
import { E as d } from "./ellipsis-CryjZKZn.js";
|
|
8
|
+
function h({ className: a, ...n }) {
|
|
9
|
+
return /* @__PURE__ */ i.jsx(
|
|
21
10
|
"nav",
|
|
22
11
|
{
|
|
23
12
|
role: "navigation",
|
|
24
13
|
"aria-label": "pagination",
|
|
25
14
|
"data-slot": "pagination",
|
|
26
|
-
className:
|
|
27
|
-
...
|
|
15
|
+
className: t("adm:mx-auto adm:flex adm:w-full adm:justify-center", a),
|
|
16
|
+
...n
|
|
28
17
|
}
|
|
29
18
|
);
|
|
30
19
|
}
|
|
31
|
-
function
|
|
20
|
+
function N({
|
|
32
21
|
className: a,
|
|
33
|
-
...
|
|
22
|
+
...n
|
|
34
23
|
}) {
|
|
35
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ i.jsx(
|
|
36
25
|
"ul",
|
|
37
26
|
{
|
|
38
27
|
"data-slot": "pagination-content",
|
|
39
|
-
className:
|
|
40
|
-
...
|
|
28
|
+
className: t("adm:flex adm:flex-row adm:items-center adm:gap-1", a),
|
|
29
|
+
...n
|
|
41
30
|
}
|
|
42
31
|
);
|
|
43
32
|
}
|
|
44
|
-
function
|
|
45
|
-
return /* @__PURE__ */
|
|
33
|
+
function P({ ...a }) {
|
|
34
|
+
return /* @__PURE__ */ i.jsx("li", { "data-slot": "pagination-item", ...a });
|
|
46
35
|
}
|
|
47
|
-
function
|
|
36
|
+
function e({
|
|
48
37
|
className: a,
|
|
49
|
-
isActive:
|
|
50
|
-
size:
|
|
38
|
+
isActive: n,
|
|
39
|
+
size: s = "icon",
|
|
51
40
|
...o
|
|
52
41
|
}) {
|
|
53
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ i.jsx(
|
|
54
43
|
"a",
|
|
55
44
|
{
|
|
56
|
-
"aria-current":
|
|
45
|
+
"aria-current": n ? "page" : void 0,
|
|
57
46
|
"data-slot": "pagination-link",
|
|
58
|
-
"data-active":
|
|
59
|
-
className:
|
|
47
|
+
"data-active": n,
|
|
48
|
+
className: t(
|
|
60
49
|
r({
|
|
61
|
-
variant:
|
|
62
|
-
size:
|
|
50
|
+
variant: n ? "outline" : "ghost",
|
|
51
|
+
size: s
|
|
63
52
|
}),
|
|
64
53
|
a
|
|
65
54
|
),
|
|
@@ -67,68 +56,68 @@ function s({
|
|
|
67
56
|
}
|
|
68
57
|
);
|
|
69
58
|
}
|
|
70
|
-
function
|
|
59
|
+
function v({
|
|
71
60
|
className: a,
|
|
72
|
-
children:
|
|
73
|
-
...
|
|
61
|
+
children: n,
|
|
62
|
+
...s
|
|
74
63
|
}) {
|
|
75
|
-
return /* @__PURE__ */
|
|
76
|
-
|
|
64
|
+
return /* @__PURE__ */ i.jsxs(
|
|
65
|
+
e,
|
|
77
66
|
{
|
|
78
67
|
"aria-label": "Go to previous page",
|
|
79
68
|
size: "default",
|
|
80
|
-
className:
|
|
81
|
-
...
|
|
69
|
+
className: t("adm:gap-1 adm:px-2.5 adm:sm:pl-2.5", a),
|
|
70
|
+
...s,
|
|
82
71
|
children: [
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ i.jsx(m, {}),
|
|
73
|
+
/* @__PURE__ */ i.jsx("span", { className: "adm:hidden adm:sm:block", children: n ?? "Previous" })
|
|
85
74
|
]
|
|
86
75
|
}
|
|
87
76
|
);
|
|
88
77
|
}
|
|
89
|
-
function
|
|
78
|
+
function b({
|
|
90
79
|
className: a,
|
|
91
|
-
children:
|
|
92
|
-
...
|
|
80
|
+
children: n,
|
|
81
|
+
...s
|
|
93
82
|
}) {
|
|
94
|
-
return /* @__PURE__ */
|
|
95
|
-
|
|
83
|
+
return /* @__PURE__ */ i.jsxs(
|
|
84
|
+
e,
|
|
96
85
|
{
|
|
97
86
|
"aria-label": "Go to next page",
|
|
98
87
|
size: "default",
|
|
99
|
-
className:
|
|
100
|
-
...
|
|
88
|
+
className: t("adm:gap-1 adm:px-2.5 adm:sm:pr-2.5", a),
|
|
89
|
+
...s,
|
|
101
90
|
children: [
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ i.jsx("span", { className: "adm:hidden adm:sm:block", children: n ?? "Next" }),
|
|
92
|
+
/* @__PURE__ */ i.jsx(l, {})
|
|
104
93
|
]
|
|
105
94
|
}
|
|
106
95
|
);
|
|
107
96
|
}
|
|
108
|
-
function
|
|
97
|
+
function C({
|
|
109
98
|
className: a,
|
|
110
|
-
...
|
|
99
|
+
...n
|
|
111
100
|
}) {
|
|
112
|
-
return /* @__PURE__ */
|
|
101
|
+
return /* @__PURE__ */ i.jsxs(
|
|
113
102
|
"span",
|
|
114
103
|
{
|
|
115
104
|
"aria-hidden": !0,
|
|
116
105
|
"data-slot": "pagination-ellipsis",
|
|
117
|
-
className:
|
|
118
|
-
...
|
|
106
|
+
className: t("adm:flex adm:size-9 adm:items-center adm:justify-center", a),
|
|
107
|
+
...n,
|
|
119
108
|
children: [
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ i.jsx(d, { className: "adm:size-4" }),
|
|
110
|
+
/* @__PURE__ */ i.jsx("span", { className: "adm:sr-only", children: "More pages" })
|
|
122
111
|
]
|
|
123
112
|
}
|
|
124
113
|
);
|
|
125
114
|
}
|
|
126
115
|
export {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
116
|
+
h as Pagination,
|
|
117
|
+
N as PaginationContent,
|
|
118
|
+
C as PaginationEllipsis,
|
|
119
|
+
P as PaginationItem,
|
|
120
|
+
e as PaginationLink,
|
|
121
|
+
b as PaginationNext,
|
|
122
|
+
v as PaginationPrevious
|
|
134
123
|
};
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { j as c } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { u as $, c as g } from "./index-C0UREtMP.js";
|
|
4
|
+
import { c as V, u as A } from "./index-DLcqcWxM.js";
|
|
5
|
+
import { c as L } from "./index-FxyLF8MY.js";
|
|
6
|
+
import { D as W } from "./index-CZZ3llmi.js";
|
|
7
|
+
import { h as H, R as z, u as G, F as B } from "./index-CBjZooac.js";
|
|
8
|
+
import { u as K } from "./index-Cv867SGx.js";
|
|
9
|
+
import { c as O, R as Z, A as E, C as U, a as q } from "./index-B0M7VOwp.js";
|
|
10
|
+
import { P as J } from "./index-BX9hz-JD.js";
|
|
11
|
+
import { P as _ } from "./index-BpWB3aFK.js";
|
|
12
|
+
import { P as y } from "./index-BMWt1NBG.js";
|
|
13
|
+
import { c as Q } from "./index-CRiPKpXj.js";
|
|
14
|
+
// @__NO_SIDE_EFFECTS__
|
|
15
|
+
function X(e) {
|
|
16
|
+
const r = /* @__PURE__ */ Y(e), t = s.forwardRef((n, o) => {
|
|
17
|
+
const { children: a, ...i } = n, p = s.Children.toArray(a), l = p.find(oe);
|
|
18
|
+
if (l) {
|
|
19
|
+
const d = l.props.children, v = p.map((f) => f === l ? s.Children.count(d) > 1 ? s.Children.only(null) : s.isValidElement(d) ? d.props.children : null : f);
|
|
20
|
+
return /* @__PURE__ */ c.jsx(r, { ...i, ref: o, children: s.isValidElement(d) ? s.cloneElement(d, void 0, v) : null });
|
|
21
|
+
}
|
|
22
|
+
return /* @__PURE__ */ c.jsx(r, { ...i, ref: o, children: a });
|
|
23
|
+
});
|
|
24
|
+
return t.displayName = `${e}.Slot`, t;
|
|
25
|
+
}
|
|
26
|
+
// @__NO_SIDE_EFFECTS__
|
|
27
|
+
function Y(e) {
|
|
28
|
+
const r = s.forwardRef((t, n) => {
|
|
29
|
+
const { children: o, ...a } = t;
|
|
30
|
+
if (s.isValidElement(o)) {
|
|
31
|
+
const i = te(o), p = re(a, o.props);
|
|
32
|
+
return o.type !== s.Fragment && (p.ref = n ? V(n, i) : i), s.cloneElement(o, p);
|
|
33
|
+
}
|
|
34
|
+
return s.Children.count(o) > 1 ? s.Children.only(null) : null;
|
|
35
|
+
});
|
|
36
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
37
|
+
}
|
|
38
|
+
var ee = Symbol("radix.slottable");
|
|
39
|
+
function oe(e) {
|
|
40
|
+
return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ee;
|
|
41
|
+
}
|
|
42
|
+
function re(e, r) {
|
|
43
|
+
const t = { ...r };
|
|
44
|
+
for (const n in r) {
|
|
45
|
+
const o = e[n], a = r[n];
|
|
46
|
+
/^on[A-Z]/.test(n) ? o && a ? t[n] = (...p) => {
|
|
47
|
+
const l = a(...p);
|
|
48
|
+
return o(...p), l;
|
|
49
|
+
} : o && (t[n] = o) : n === "style" ? t[n] = { ...o, ...a } : n === "className" && (t[n] = [o, a].filter(Boolean).join(" "));
|
|
50
|
+
}
|
|
51
|
+
return { ...e, ...t };
|
|
52
|
+
}
|
|
53
|
+
function te(e) {
|
|
54
|
+
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
55
|
+
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
56
|
+
}
|
|
57
|
+
var C = "Popover", [j] = L(C, [
|
|
58
|
+
O
|
|
59
|
+
]), h = O(), [ne, u] = j(C), b = (e) => {
|
|
60
|
+
const {
|
|
61
|
+
__scopePopover: r,
|
|
62
|
+
children: t,
|
|
63
|
+
open: n,
|
|
64
|
+
defaultOpen: o,
|
|
65
|
+
onOpenChange: a,
|
|
66
|
+
modal: i = !1
|
|
67
|
+
} = e, p = h(r), l = s.useRef(null), [d, v] = s.useState(!1), [f, m] = $({
|
|
68
|
+
prop: n,
|
|
69
|
+
defaultProp: o ?? !1,
|
|
70
|
+
onChange: a,
|
|
71
|
+
caller: C
|
|
72
|
+
});
|
|
73
|
+
return /* @__PURE__ */ c.jsx(Z, { ...p, children: /* @__PURE__ */ c.jsx(
|
|
74
|
+
ne,
|
|
75
|
+
{
|
|
76
|
+
scope: r,
|
|
77
|
+
contentId: K(),
|
|
78
|
+
triggerRef: l,
|
|
79
|
+
open: f,
|
|
80
|
+
onOpenChange: m,
|
|
81
|
+
onOpenToggle: s.useCallback(() => m((x) => !x), [m]),
|
|
82
|
+
hasCustomAnchor: d,
|
|
83
|
+
onCustomAnchorAdd: s.useCallback(() => v(!0), []),
|
|
84
|
+
onCustomAnchorRemove: s.useCallback(() => v(!1), []),
|
|
85
|
+
modal: i,
|
|
86
|
+
children: t
|
|
87
|
+
}
|
|
88
|
+
) });
|
|
89
|
+
};
|
|
90
|
+
b.displayName = C;
|
|
91
|
+
var w = "PopoverAnchor", S = s.forwardRef(
|
|
92
|
+
(e, r) => {
|
|
93
|
+
const { __scopePopover: t, ...n } = e, o = u(w, t), a = h(t), { onCustomAnchorAdd: i, onCustomAnchorRemove: p } = o;
|
|
94
|
+
return s.useEffect(() => (i(), () => p()), [i, p]), /* @__PURE__ */ c.jsx(E, { ...a, ...n, ref: r });
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
S.displayName = w;
|
|
98
|
+
var N = "PopoverTrigger", F = s.forwardRef(
|
|
99
|
+
(e, r) => {
|
|
100
|
+
const { __scopePopover: t, ...n } = e, o = u(N, t), a = h(t), i = A(r, o.triggerRef), p = /* @__PURE__ */ c.jsx(
|
|
101
|
+
y.button,
|
|
102
|
+
{
|
|
103
|
+
type: "button",
|
|
104
|
+
"aria-haspopup": "dialog",
|
|
105
|
+
"aria-expanded": o.open,
|
|
106
|
+
"aria-controls": o.contentId,
|
|
107
|
+
"data-state": k(o.open),
|
|
108
|
+
...n,
|
|
109
|
+
ref: i,
|
|
110
|
+
onClick: g(e.onClick, o.onOpenToggle)
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
return o.hasCustomAnchor ? p : /* @__PURE__ */ c.jsx(E, { asChild: !0, ...a, children: p });
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
F.displayName = N;
|
|
117
|
+
var R = "PopoverPortal", [ae, se] = j(R, {
|
|
118
|
+
forceMount: void 0
|
|
119
|
+
}), D = (e) => {
|
|
120
|
+
const { __scopePopover: r, forceMount: t, children: n, container: o } = e, a = u(R, r);
|
|
121
|
+
return /* @__PURE__ */ c.jsx(ae, { scope: r, forceMount: t, children: /* @__PURE__ */ c.jsx(_, { present: t || a.open, children: /* @__PURE__ */ c.jsx(J, { asChild: !0, container: o, children: n }) }) });
|
|
122
|
+
};
|
|
123
|
+
D.displayName = R;
|
|
124
|
+
var P = "PopoverContent", I = s.forwardRef(
|
|
125
|
+
(e, r) => {
|
|
126
|
+
const t = se(P, e.__scopePopover), { forceMount: n = t.forceMount, ...o } = e, a = u(P, e.__scopePopover);
|
|
127
|
+
return /* @__PURE__ */ c.jsx(_, { present: n || a.open, children: a.modal ? /* @__PURE__ */ c.jsx(ce, { ...o, ref: r }) : /* @__PURE__ */ c.jsx(pe, { ...o, ref: r }) });
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
I.displayName = P;
|
|
131
|
+
var ie = /* @__PURE__ */ X("PopoverContent.RemoveScroll"), ce = s.forwardRef(
|
|
132
|
+
(e, r) => {
|
|
133
|
+
const t = u(P, e.__scopePopover), n = s.useRef(null), o = A(r, n), a = s.useRef(!1);
|
|
134
|
+
return s.useEffect(() => {
|
|
135
|
+
const i = n.current;
|
|
136
|
+
if (i) return H(i);
|
|
137
|
+
}, []), /* @__PURE__ */ c.jsx(z, { as: ie, allowPinchZoom: !0, children: /* @__PURE__ */ c.jsx(
|
|
138
|
+
T,
|
|
139
|
+
{
|
|
140
|
+
...e,
|
|
141
|
+
ref: o,
|
|
142
|
+
trapFocus: t.open,
|
|
143
|
+
disableOutsidePointerEvents: !0,
|
|
144
|
+
onCloseAutoFocus: g(e.onCloseAutoFocus, (i) => {
|
|
145
|
+
i.preventDefault(), a.current || t.triggerRef.current?.focus();
|
|
146
|
+
}),
|
|
147
|
+
onPointerDownOutside: g(
|
|
148
|
+
e.onPointerDownOutside,
|
|
149
|
+
(i) => {
|
|
150
|
+
const p = i.detail.originalEvent, l = p.button === 0 && p.ctrlKey === !0, d = p.button === 2 || l;
|
|
151
|
+
a.current = d;
|
|
152
|
+
},
|
|
153
|
+
{ checkForDefaultPrevented: !1 }
|
|
154
|
+
),
|
|
155
|
+
onFocusOutside: g(
|
|
156
|
+
e.onFocusOutside,
|
|
157
|
+
(i) => i.preventDefault(),
|
|
158
|
+
{ checkForDefaultPrevented: !1 }
|
|
159
|
+
)
|
|
160
|
+
}
|
|
161
|
+
) });
|
|
162
|
+
}
|
|
163
|
+
), pe = s.forwardRef(
|
|
164
|
+
(e, r) => {
|
|
165
|
+
const t = u(P, e.__scopePopover), n = s.useRef(!1), o = s.useRef(!1);
|
|
166
|
+
return /* @__PURE__ */ c.jsx(
|
|
167
|
+
T,
|
|
168
|
+
{
|
|
169
|
+
...e,
|
|
170
|
+
ref: r,
|
|
171
|
+
trapFocus: !1,
|
|
172
|
+
disableOutsidePointerEvents: !1,
|
|
173
|
+
onCloseAutoFocus: (a) => {
|
|
174
|
+
e.onCloseAutoFocus?.(a), a.defaultPrevented || (n.current || t.triggerRef.current?.focus(), a.preventDefault()), n.current = !1, o.current = !1;
|
|
175
|
+
},
|
|
176
|
+
onInteractOutside: (a) => {
|
|
177
|
+
e.onInteractOutside?.(a), a.defaultPrevented || (n.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
178
|
+
const i = a.target;
|
|
179
|
+
t.triggerRef.current?.contains(i) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
), T = s.forwardRef(
|
|
185
|
+
(e, r) => {
|
|
186
|
+
const {
|
|
187
|
+
__scopePopover: t,
|
|
188
|
+
trapFocus: n,
|
|
189
|
+
onOpenAutoFocus: o,
|
|
190
|
+
onCloseAutoFocus: a,
|
|
191
|
+
disableOutsidePointerEvents: i,
|
|
192
|
+
onEscapeKeyDown: p,
|
|
193
|
+
onPointerDownOutside: l,
|
|
194
|
+
onFocusOutside: d,
|
|
195
|
+
onInteractOutside: v,
|
|
196
|
+
...f
|
|
197
|
+
} = e, m = u(P, t), x = h(t);
|
|
198
|
+
return G(), /* @__PURE__ */ c.jsx(
|
|
199
|
+
B,
|
|
200
|
+
{
|
|
201
|
+
asChild: !0,
|
|
202
|
+
loop: !0,
|
|
203
|
+
trapped: n,
|
|
204
|
+
onMountAutoFocus: o,
|
|
205
|
+
onUnmountAutoFocus: a,
|
|
206
|
+
children: /* @__PURE__ */ c.jsx(
|
|
207
|
+
W,
|
|
208
|
+
{
|
|
209
|
+
asChild: !0,
|
|
210
|
+
disableOutsidePointerEvents: i,
|
|
211
|
+
onInteractOutside: v,
|
|
212
|
+
onEscapeKeyDown: p,
|
|
213
|
+
onPointerDownOutside: l,
|
|
214
|
+
onFocusOutside: d,
|
|
215
|
+
onDismiss: () => m.onOpenChange(!1),
|
|
216
|
+
children: /* @__PURE__ */ c.jsx(
|
|
217
|
+
U,
|
|
218
|
+
{
|
|
219
|
+
"data-state": k(m.open),
|
|
220
|
+
role: "dialog",
|
|
221
|
+
id: m.contentId,
|
|
222
|
+
...x,
|
|
223
|
+
...f,
|
|
224
|
+
ref: r,
|
|
225
|
+
style: {
|
|
226
|
+
...f.style,
|
|
227
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
228
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
229
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
230
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
231
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
}
|
|
236
|
+
)
|
|
237
|
+
}
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
), M = "PopoverClose", le = s.forwardRef(
|
|
241
|
+
(e, r) => {
|
|
242
|
+
const { __scopePopover: t, ...n } = e, o = u(M, t);
|
|
243
|
+
return /* @__PURE__ */ c.jsx(
|
|
244
|
+
y.button,
|
|
245
|
+
{
|
|
246
|
+
type: "button",
|
|
247
|
+
...n,
|
|
248
|
+
ref: r,
|
|
249
|
+
onClick: g(e.onClick, () => o.onOpenChange(!1))
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
);
|
|
254
|
+
le.displayName = M;
|
|
255
|
+
var de = "PopoverArrow", ue = s.forwardRef(
|
|
256
|
+
(e, r) => {
|
|
257
|
+
const { __scopePopover: t, ...n } = e, o = h(t);
|
|
258
|
+
return /* @__PURE__ */ c.jsx(q, { ...o, ...n, ref: r });
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
ue.displayName = de;
|
|
262
|
+
function k(e) {
|
|
263
|
+
return e ? "open" : "closed";
|
|
264
|
+
}
|
|
265
|
+
var fe = b, me = S, ve = F, Pe = D, ge = I;
|
|
266
|
+
function Se({
|
|
267
|
+
...e
|
|
268
|
+
}) {
|
|
269
|
+
return /* @__PURE__ */ c.jsx(fe, { "data-slot": "popover", ...e });
|
|
270
|
+
}
|
|
271
|
+
function Ne({
|
|
272
|
+
...e
|
|
273
|
+
}) {
|
|
274
|
+
return /* @__PURE__ */ c.jsx(ve, { "data-slot": "popover-trigger", ...e });
|
|
275
|
+
}
|
|
276
|
+
function Fe({
|
|
277
|
+
className: e,
|
|
278
|
+
align: r = "center",
|
|
279
|
+
sideOffset: t = 4,
|
|
280
|
+
...n
|
|
281
|
+
}) {
|
|
282
|
+
return /* @__PURE__ */ c.jsx(Pe, { children: /* @__PURE__ */ c.jsx(
|
|
283
|
+
ge,
|
|
284
|
+
{
|
|
285
|
+
"data-slot": "popover-content",
|
|
286
|
+
align: r,
|
|
287
|
+
sideOffset: t,
|
|
288
|
+
className: Q(
|
|
289
|
+
"adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-72 adm:origin-(--radix-popover-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-xs adm:outline-hidden",
|
|
290
|
+
e
|
|
291
|
+
),
|
|
292
|
+
...n
|
|
293
|
+
}
|
|
294
|
+
) });
|
|
295
|
+
}
|
|
296
|
+
function De({
|
|
297
|
+
...e
|
|
298
|
+
}) {
|
|
299
|
+
return /* @__PURE__ */ c.jsx(me, { "data-slot": "popover-anchor", ...e });
|
|
300
|
+
}
|
|
301
|
+
export {
|
|
302
|
+
Se as P,
|
|
303
|
+
Ne as a,
|
|
304
|
+
Fe as b,
|
|
305
|
+
De as c
|
|
306
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("./jsx-runtime-BB_1_6y_.cjs"),k=require("react"),g=require("./index-BWaO7kQK.cjs"),j=require("./index-_XxjJPRD.cjs"),q=require("./index-cwZN7ZY3.cjs"),H=require("./index-BeWgla7c.cjs"),h=require("./index-DMs8RL3E.cjs"),V=require("./index-WIv2ndLu.cjs"),m=require("./index-BcGMAmWE.cjs"),L=require("./index-Dbj9vHNq.cjs"),A=require("./index-Bd0gQB0k.cjs"),_=require("./index-CocSS1YK.cjs"),W=require("./index-DoxiiusW.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const a=z(k);function G(e){const t=B(e),o=a.forwardRef((n,r)=>{const{children:s,...i}=n,p=a.Children.toArray(s),u=p.find(Z);if(u){const l=u.props.children,v=p.map(f=>f===u?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:f);return c.jsxRuntimeExports.jsx(t,{...i,ref:r,children:a.isValidElement(l)?a.cloneElement(l,void 0,v):null})}return c.jsxRuntimeExports.jsx(t,{...i,ref:r,children:s})});return o.displayName=`${e}.Slot`,o}function B(e){const t=a.forwardRef((o,n)=>{const{children:r,...s}=o;if(a.isValidElement(r)){const i=J(r),p=U(s,r.props);return r.type!==a.Fragment&&(p.ref=n?j.composeRefs(n,i):i),a.cloneElement(r,p)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var K=Symbol("radix.slottable");function Z(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===K}function U(e,t){const o={...t};for(const n in t){const r=e[n],s=t[n];/^on[A-Z]/.test(n)?r&&s?o[n]=(...p)=>{const u=s(...p);return r(...p),u}:r&&(o[n]=r):n==="style"?o[n]={...r,...s}:n==="className"&&(o[n]=[r,s].filter(Boolean).join(" "))}return{...e,...o}}function J(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var C="Popover",[b]=q.createContextScope(C,[m.createPopperScope]),R=m.createPopperScope(),[Q,d]=b(C),y=e=>{const{__scopePopover:t,children:o,open:n,defaultOpen:r,onOpenChange:s,modal:i=!1}=e,p=R(t),u=a.useRef(null),[l,v]=a.useState(!1),[f,x]=g.useControllableState({prop:n,defaultProp:r??!1,onChange:s,caller:C});return c.jsxRuntimeExports.jsx(m.Root2,{...p,children:c.jsxRuntimeExports.jsx(Q,{scope:t,contentId:V.useId(),triggerRef:u,open:f,onOpenChange:x,onOpenToggle:a.useCallback(()=>x(E=>!E),[x]),hasCustomAnchor:l,onCustomAnchorAdd:a.useCallback(()=>v(!0),[]),onCustomAnchorRemove:a.useCallback(()=>v(!1),[]),modal:i,children:o})})};y.displayName=C;var S="PopoverAnchor",w=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=d(S,o),s=R(o),{onCustomAnchorAdd:i,onCustomAnchorRemove:p}=r;return a.useEffect(()=>(i(),()=>p()),[i,p]),c.jsxRuntimeExports.jsx(m.Anchor,{...s,...n,ref:t})});w.displayName=S;var N="PopoverTrigger",F=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=d(N,o),s=R(o),i=j.useComposedRefs(t,r.triggerRef),p=c.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":$(r.open),...n,ref:i,onClick:g.composeEventHandlers(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?p:c.jsxRuntimeExports.jsx(m.Anchor,{asChild:!0,...s,children:p})});F.displayName=N;var O="PopoverPortal",[X,Y]=b(O,{forceMount:void 0}),D=e=>{const{__scopePopover:t,forceMount:o,children:n,container:r}=e,s=d(O,t);return c.jsxRuntimeExports.jsx(X,{scope:t,forceMount:o,children:c.jsxRuntimeExports.jsx(A.Presence,{present:o||s.open,children:c.jsxRuntimeExports.jsx(L.Portal,{asChild:!0,container:r,children:n})})})};D.displayName=O;var P="PopoverContent",T=a.forwardRef((e,t)=>{const o=Y(P,e.__scopePopover),{forceMount:n=o.forceMount,...r}=e,s=d(P,e.__scopePopover);return c.jsxRuntimeExports.jsx(A.Presence,{present:n||s.open,children:s.modal?c.jsxRuntimeExports.jsx(oe,{...r,ref:t}):c.jsxRuntimeExports.jsx(te,{...r,ref:t})})});T.displayName=P;var ee=G("PopoverContent.RemoveScroll"),oe=a.forwardRef((e,t)=>{const o=d(P,e.__scopePopover),n=a.useRef(null),r=j.useComposedRefs(t,n),s=a.useRef(!1);return a.useEffect(()=>{const i=n.current;if(i)return h.hideOthers(i)},[]),c.jsxRuntimeExports.jsx(h.ReactRemoveScroll,{as:ee,allowPinchZoom:!0,children:c.jsxRuntimeExports.jsx(I,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g.composeEventHandlers(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g.composeEventHandlers(e.onPointerDownOutside,i=>{const p=i.detail.originalEvent,u=p.button===0&&p.ctrlKey===!0,l=p.button===2||u;s.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:g.composeEventHandlers(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),te=a.forwardRef((e,t)=>{const o=d(P,e.__scopePopover),n=a.useRef(!1),r=a.useRef(!1);return c.jsxRuntimeExports.jsx(I,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(n.current||o.triggerRef.current?.focus(),s.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;o.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),I=a.forwardRef((e,t)=>{const{__scopePopover:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:v,...f}=e,x=d(P,o),E=R(o);return h.useFocusGuards(),c.jsxRuntimeExports.jsx(h.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:s,children:c.jsxRuntimeExports.jsx(H.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:v,onEscapeKeyDown:p,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>x.onOpenChange(!1),children:c.jsxRuntimeExports.jsx(m.Content,{"data-state":$(x.open),role:"dialog",id:x.contentId,...E,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),M="PopoverClose",re=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=d(M,o);return c.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button",...n,ref:t,onClick:g.composeEventHandlers(e.onClick,()=>r.onOpenChange(!1))})});re.displayName=M;var ne="PopoverArrow",se=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=R(o);return c.jsxRuntimeExports.jsx(m.Arrow,{...r,...n,ref:t})});se.displayName=ne;function $(e){return e?"open":"closed"}var ae=y,ie=w,ce=F,pe=D,ue=T;function le({...e}){return c.jsxRuntimeExports.jsx(ae,{"data-slot":"popover",...e})}function de({...e}){return c.jsxRuntimeExports.jsx(ce,{"data-slot":"popover-trigger",...e})}function fe({className:e,align:t="center",sideOffset:o=4,...n}){return c.jsxRuntimeExports.jsx(pe,{children:c.jsxRuntimeExports.jsx(ue,{"data-slot":"popover-content",align:t,sideOffset:o,className:W.cn("adm:bg-popover adm:text-popover-foreground adm:data-[state=open]:animate-in adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0 adm:data-[state=open]:fade-in-0 adm:data-[state=closed]:zoom-out-95 adm:data-[state=open]:zoom-in-95 adm:data-[side=bottom]:slide-in-from-top-2 adm:data-[side=left]:slide-in-from-right-2 adm:data-[side=right]:slide-in-from-left-2 adm:data-[side=top]:slide-in-from-bottom-2 adm:z-50 adm:w-72 adm:origin-(--radix-popover-content-transform-origin) adm:rounded-md adm:border adm:p-4 adm:shadow-xs adm:outline-hidden",e),...n})})}function xe({...e}){return c.jsxRuntimeExports.jsx(ie,{"data-slot":"popover-anchor",...e})}exports.Popover=le;exports.PopoverAnchor=xe;exports.PopoverContent=fe;exports.PopoverTrigger=de;
|
package/dist/popover.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./popover-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./popover-FCKBtFo-.cjs");exports.Popover=o.Popover;exports.PopoverAnchor=o.PopoverAnchor;exports.PopoverContent=o.PopoverContent;exports.PopoverTrigger=o.PopoverTrigger;
|
package/dist/popover.js
CHANGED
package/dist/progress.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./jsx-runtime-BB_1_6y_.cjs"),y=require("react"),h=require("./index-cwZN7ZY3.cjs"),f=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./jsx-runtime-BB_1_6y_.cjs"),y=require("react"),h=require("./index-cwZN7ZY3.cjs"),f=require("./index-CocSS1YK.cjs"),c=require("./index-DoxiiusW.cjs"),g=require("./index-BTzZJcis.cjs");function w(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const p=w(y);var l="Progress",d=100,[E]=h.createContextScope(l),[I,V]=E(l),x=p.forwardRef((e,r)=>{const{__scopeProgress:t,value:a=null,max:s,getValueLabel:N=_,...R}=e;(s||s===0)&&!m(s)&&console.error(O(`${s}`,"Progress"));const n=m(s)?s:d;a!==null&&!v(a,n)&&console.error(M(`${a}`,"Progress"));const o=v(a,n)?a:null,$=u(o)?N(o,n):void 0;return i.jsxRuntimeExports.jsx(I,{scope:t,value:o,max:n,children:i.jsxRuntimeExports.jsx(f.Primitive.div,{"aria-valuemax":n,"aria-valuemin":0,"aria-valuenow":u(o)?o:void 0,"aria-valuetext":$,role:"progressbar","data-state":j(o,n),"data-value":o??void 0,"data-max":n,...R,ref:r})})});x.displayName=l;var b="ProgressIndicator",P=p.forwardRef((e,r)=>{const{__scopeProgress:t,...a}=e,s=V(b,t);return i.jsxRuntimeExports.jsx(f.Primitive.div,{"data-state":j(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...a,ref:r})});P.displayName=b;function _(e,r){return`${Math.round(e/r*100)}%`}function j(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function u(e){return typeof e=="number"}function m(e){return u(e)&&!isNaN(e)&&e>0}function v(e,r){return u(e)&&!isNaN(e)&&e<=r&&e>=0}function O(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${d}\`.`}function M(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be:
|
|
2
2
|
- a positive number
|
|
3
3
|
- less than the value passed to \`max\` (or ${d} if no \`max\` prop is set)
|
|
4
4
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
package/dist/progress.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as i } from "./jsx-runtime-BzflLqGi.js";
|
|
2
2
|
import * as f from "react";
|
|
3
3
|
import { c as I } from "./index-FxyLF8MY.js";
|
|
4
|
-
import { P as p } from "./index-
|
|
4
|
+
import { P as p } from "./index-BMWt1NBG.js";
|
|
5
5
|
import { c as m } from "./index-CRiPKpXj.js";
|
|
6
6
|
import { c as g } from "./index-BqtVL8d-.js";
|
|
7
7
|
var u = "Progress", d = 100, [V] = I(u), [R, j] = V(u), x = f.forwardRef(
|
package/dist/radio-group.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),F=require("react"),j=require("./index-BWaO7kQK.cjs"),h=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),F=require("react"),j=require("./index-BWaO7kQK.cjs"),h=require("./index-_XxjJPRD.cjs"),P=require("./index-cwZN7ZY3.cjs"),E=require("./index-CocSS1YK.cjs"),g=require("./index-COuvjZLM.cjs"),L=require("./index-CzRiuk60.cjs"),T=require("./index-bSPhqlcX.cjs"),B=require("./index-DYxWvftI.cjs"),z=require("./index-Bd0gQB0k.cjs"),w=require("./index-DoxiiusW.cjs"),K=require("./circle-CX7JIirj.cjs");function U(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const d=U(F);var C="Radio",[V,_]=P.createContextScope(C),[H,W]=V(C),k=d.forwardRef((e,r)=>{const{__scopeRadio:o,name:n,checked:t=!1,required:i,disabled:s,value:p="on",onCheck:m,form:f,...R}=e,[l,x]=d.useState(null),c=h.useComposedRefs(r,b=>x(b)),u=d.useRef(!1),v=l?f||!!l.closest("form"):!0;return a.jsxRuntimeExports.jsxs(H,{scope:o,checked:t,disabled:s,children:[a.jsxRuntimeExports.jsx(E.Primitive.button,{type:"button",role:"radio","aria-checked":t,"data-state":N(t),"data-disabled":s?"":void 0,disabled:s,value:p,...R,ref:c,onClick:j.composeEventHandlers(e.onClick,b=>{t||m?.(),v&&(u.current=b.isPropagationStopped(),u.current||b.stopPropagation())})}),v&&a.jsxRuntimeExports.jsx(G,{control:l,bubbles:!u.current,name:n,value:p,checked:t,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});k.displayName=C;var I="RadioIndicator",S=d.forwardRef((e,r)=>{const{__scopeRadio:o,forceMount:n,...t}=e,i=W(I,o);return a.jsxRuntimeExports.jsx(z.Presence,{present:n||i.checked,children:a.jsxRuntimeExports.jsx(E.Primitive.span,{"data-state":N(i.checked),"data-disabled":i.disabled?"":void 0,...t,ref:r})})});S.displayName=I;var X="RadioBubbleInput",G=d.forwardRef(({__scopeRadio:e,control:r,checked:o,bubbles:n=!0,...t},i)=>{const s=d.useRef(null),p=h.useComposedRefs(s,i),m=B.usePrevious(o),f=T.useSize(r);return d.useEffect(()=>{const R=s.current;if(!R)return;const l=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(l,"checked").set;if(m!==o&&c){const u=new Event("click",{bubbles:n});c.call(R,o),R.dispatchEvent(u)}},[m,o,n]),a.jsxRuntimeExports.jsx(E.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...t,tabIndex:-1,ref:p,style:{...t.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});G.displayName=X;function N(e){return e?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[J]=P.createContextScope(y,[g.createRovingFocusGroupScope,_]),q=g.createRovingFocusGroupScope(),A=_(),[Q,Z]=J(y),O=d.forwardRef((e,r)=>{const{__scopeRadioGroup:o,name:n,defaultValue:t,value:i,required:s=!1,disabled:p=!1,orientation:m,dir:f,loop:R=!0,onValueChange:l,...x}=e,c=q(o),u=L.useDirection(f),[v,b]=j.useControllableState({prop:i,defaultProp:t??null,onChange:l,caller:y});return a.jsxRuntimeExports.jsx(Q,{scope:o,name:n,required:s,disabled:p,value:v,onValueChange:b,children:a.jsxRuntimeExports.jsx(g.Root,{asChild:!0,...c,orientation:m,dir:u,loop:R,children:a.jsxRuntimeExports.jsx(E.Primitive.div,{role:"radiogroup","aria-required":s,"aria-orientation":m,"data-disabled":p?"":void 0,dir:u,...x,ref:r})})})});O.displayName=y;var D="RadioGroupItem",M=d.forwardRef((e,r)=>{const{__scopeRadioGroup:o,disabled:n,...t}=e,i=Z(D,o),s=i.disabled||n,p=q(o),m=A(o),f=d.useRef(null),R=h.useComposedRefs(r,f),l=i.value===t.value,x=d.useRef(!1);return d.useEffect(()=>{const c=v=>{Y.includes(v.key)&&(x.current=!0)},u=()=>x.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",u)}},[]),a.jsxRuntimeExports.jsx(g.Item,{asChild:!0,...p,focusable:!s,active:l,children:a.jsxRuntimeExports.jsx(k,{disabled:s,required:i.required,checked:l,...m,...t,name:i.name,ref:R,onCheck:()=>i.onValueChange(t.value),onKeyDown:j.composeEventHandlers(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:j.composeEventHandlers(t.onFocus,()=>{x.current&&f.current?.click()})})})});M.displayName=D;var ee="RadioGroupIndicator",$=d.forwardRef((e,r)=>{const{__scopeRadioGroup:o,...n}=e,t=A(o);return a.jsxRuntimeExports.jsx(S,{...t,...n,ref:r})});$.displayName=ee;var oe=O,re=M,te=$;function ae({className:e,...r}){return a.jsxRuntimeExports.jsx(oe,{"data-slot":"radio-group",className:w.cn("adm:grid adm:gap-3",e),...r})}function ne({className:e,...r}){return a.jsxRuntimeExports.jsx(re,{"data-slot":"radio-group-item",className:w.cn("adm:border-input adm:text-primary adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:aria-invalid:ring-destructive/20 adm:dark:aria-invalid:ring-destructive/40 adm:aria-invalid:border-destructive adm:dark:bg-input/30 adm:aspect-square adm:size-5 adm:shrink-0 adm:rounded-full adm:border adm:shadow-xs adm:transition-[color,box-shadow] adm:outline-none adm:focus-visible:ring-[3px] adm:disabled:cursor-not-allowed adm:disabled:opacity-50",e),...r,children:a.jsxRuntimeExports.jsx(te,{"data-slot":"radio-group-indicator",className:"adm:relative adm:flex adm:items-center adm:justify-center",children:a.jsxRuntimeExports.jsx(K.Circle,{className:"adm:fill-primary adm:absolute adm:top-1/2 adm:left-1/2 adm:size-3 adm:-translate-x-1/2 adm:-translate-y-1/2"})})})}exports.RadioGroup=ae;exports.RadioGroupItem=ne;
|
package/dist/radio-group.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-BzflLqGi.js";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import { u as q, c as y } from "./index-C0UREtMP.js";
|
|
4
|
-
import { u as C } from "./index-
|
|
4
|
+
import { u as C } from "./index-DLcqcWxM.js";
|
|
5
5
|
import { c as I } from "./index-FxyLF8MY.js";
|
|
6
|
-
import { P as h } from "./index-
|
|
7
|
-
import { c as k, R as B, I as K } from "./index-
|
|
8
|
-
import { u as T } from "./index-
|
|
6
|
+
import { P as h } from "./index-BMWt1NBG.js";
|
|
7
|
+
import { c as k, R as B, I as K } from "./index-Se4vRnIO.js";
|
|
8
|
+
import { u as T } from "./index-CUWMxxKG.js";
|
|
9
9
|
import { u as U } from "./index-BGQepRFJ.js";
|
|
10
10
|
import { u as V } from "./index-BZPx6jYI.js";
|
|
11
|
-
import { P as z } from "./index-
|
|
11
|
+
import { P as z } from "./index-BpWB3aFK.js";
|
|
12
12
|
import { c as E } from "./index-CRiPKpXj.js";
|
|
13
13
|
import { C as H } from "./circle-DYv-7Qb9.js";
|
|
14
14
|
var w = "Radio", [$, P] = I(w), [W, X] = $(w), _ = n.forwardRef(
|