@versaur/react 1.0.1 → 1.0.4
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/blocks.d.ts +26 -26
- package/dist/blocks.js +564 -481
- package/dist/checkbox.module-D4Do_b6S.js +9 -0
- package/dist/forms.d.ts +2 -2
- package/dist/forms.js +336 -292
- package/dist/overlay-parts-YglazEA-.js +29 -0
- package/dist/primitive.d.ts +36 -35
- package/dist/primitive.js +123 -107
- package/dist/tooltip-CmKPCktA.js +212 -0
- package/dist/utils.js +1 -1
- package/dist/versaur-react.css +1 -1
- package/package.json +2 -3
- package/dist/overlay-parts-BhSNUdE2.js +0 -20
- package/dist/tooltip-QgerMOQE.js +0 -204
package/dist/blocks.js
CHANGED
|
@@ -1,17 +1,100 @@
|
|
|
1
1
|
import { jsx as s, jsxs as y, Fragment as K } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import pt, { forwardRef as l, useEffect as G, createContext as L, useRef as z, useState as k, useLayoutEffect as Nt, useContext as I, useCallback as yt } from "react";
|
|
2
|
+
import le, { forwardRef as l, useEffect as P, createContext as w, useRef as q, useState as $, useLayoutEffect as ne, useContext as S, useCallback as de } from "react";
|
|
4
3
|
import { c as d } from "./cx-B9vmfsc1.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { c as Q, I as
|
|
7
|
-
import {
|
|
8
|
-
import { ChevronUpIcon as
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
import { u as _ } from "./use-data-attrs-iPFyfiKN.js";
|
|
5
|
+
import { c as Q, I as D, B as C, T as z, H as ce } from "./tooltip-CmKPCktA.js";
|
|
6
|
+
import { c as F } from "./checkbox.module-D4Do_b6S.js";
|
|
7
|
+
import { ChevronUpIcon as me, ChevronDownIcon as E, MenuIcon as ue, XIcon as G } from "@versaur/icons";
|
|
8
|
+
import { o as N, c as V, a as Y, O as W, b as be } from "./overlay-parts-YglazEA-.js";
|
|
9
|
+
const pe = {
|
|
10
|
+
"button-group": "_button-group_4891p_2"
|
|
11
|
+
}, _e = {
|
|
12
|
+
"avatar-group": "_avatar-group_18m4c_2"
|
|
13
|
+
}, ye = {
|
|
14
|
+
"badge-group": "_badge-group_g5tbn_2"
|
|
15
|
+
}, he = "_card_1kvwt_1", ve = "_header_1kvwt_112", Ne = "_body_1kvwt_166", fe = "_footer_1kvwt_210", j = {
|
|
16
|
+
card: he,
|
|
17
|
+
header: ve,
|
|
18
|
+
body: Ne,
|
|
19
|
+
footer: fe
|
|
20
|
+
}, ge = "_table_1kl8p_2", A = {
|
|
21
|
+
table: ge,
|
|
22
|
+
"table-header": "_table-header_1kl8p_45",
|
|
23
|
+
"table-head": "_table-head_1kl8p_45",
|
|
24
|
+
"table-body": "_table-body_1kl8p_84",
|
|
25
|
+
"table-footer": "_table-footer_1kl8p_127",
|
|
26
|
+
"table-cell": "_table-cell_1kl8p_146"
|
|
27
|
+
}, Be = {
|
|
28
|
+
"attribute-list": "_attribute-list_1xjik_2"
|
|
29
|
+
}, Te = "_tabs_k1lh4_6", we = "_tablist_k1lh4_27", Se = "_tabitem_k1lh4_41", Ae = "_trigger_k1lh4_51", M = {
|
|
30
|
+
tabs: Te,
|
|
31
|
+
tablist: we,
|
|
32
|
+
tabitem: Se,
|
|
33
|
+
trigger: Ae,
|
|
34
|
+
"tabs-thumb": "_tabs-thumb_k1lh4_142"
|
|
35
|
+
}, Le = "_nav_114f4_2", H = {
|
|
36
|
+
nav: Le,
|
|
37
|
+
"nav-item": "_nav-item_114f4_19",
|
|
38
|
+
"nav-item-icon": "_nav-item-icon_114f4_99"
|
|
39
|
+
}, R = {
|
|
40
|
+
"menu-list": "_menu-list_1rwzn_4",
|
|
41
|
+
"menu-item": "_menu-item_1rwzn_34",
|
|
42
|
+
"menu-item-label": "_menu-item-label_1rwzn_55",
|
|
43
|
+
"menu-item-icon": "_menu-item-icon_1rwzn_60"
|
|
44
|
+
}, xe = "_sidebar_1u8ap_2", v = {
|
|
45
|
+
sidebar: xe,
|
|
46
|
+
"sidebar-header": "_sidebar-header_1u8ap_31",
|
|
47
|
+
"sidebar-body": "_sidebar-body_1u8ap_42",
|
|
48
|
+
"sidebar-footer": "_sidebar-footer_1u8ap_54",
|
|
49
|
+
"sidebar-group": "_sidebar-group_1u8ap_66",
|
|
50
|
+
"sidebar-group-header": "_sidebar-group-header_1u8ap_78",
|
|
51
|
+
"sidebar-group-label": "_sidebar-group-label_1u8ap_109",
|
|
52
|
+
"sidebar-group-chevron": "_sidebar-group-chevron_1u8ap_117",
|
|
53
|
+
"sidebar-group-content": "_sidebar-group-content_1u8ap_132",
|
|
54
|
+
"sidebar-item-list": "_sidebar-item-list_1u8ap_150",
|
|
55
|
+
"sidebar-item": "_sidebar-item_1u8ap_150",
|
|
56
|
+
"sidebar-item-icon": "_sidebar-item-icon_1u8ap_202",
|
|
57
|
+
"sidebar-item-text": "_sidebar-item-text_1u8ap_212",
|
|
58
|
+
"sidebar-item-action": "_sidebar-item-action_1u8ap_220",
|
|
59
|
+
"sidebar-divider": "_sidebar-divider_1u8ap_238"
|
|
60
|
+
}, T = {
|
|
61
|
+
"top-bar": "_top-bar_qibl6_2",
|
|
62
|
+
"top-bar-leading": "_top-bar-leading_qibl6_24",
|
|
63
|
+
"top-bar-centred": "_top-bar-centred_qibl6_32",
|
|
64
|
+
"top-bar-trailing": "_top-bar-trailing_qibl6_41",
|
|
65
|
+
"top-bar-list-item": "_top-bar-list-item_qibl6_49",
|
|
66
|
+
"top-bar-item": "_top-bar-item_qibl6_56",
|
|
67
|
+
"top-bar-item-icon": "_top-bar-item-icon_qibl6_100"
|
|
68
|
+
}, k = {
|
|
69
|
+
"bottom-bar": "_bottom-bar_r49lm_2",
|
|
70
|
+
"bottom-bar-item": "_bottom-bar-item_r49lm_38",
|
|
71
|
+
"bottom-bar-item-icon": "_bottom-bar-item-icon_r49lm_84",
|
|
72
|
+
"bottom-bar-item-text": "_bottom-bar-item-text_r49lm_94"
|
|
73
|
+
}, L = {
|
|
74
|
+
"app-layout": "_app-layout_nvm54_2",
|
|
75
|
+
"app-layout-header": "_app-layout-header_nvm54_25",
|
|
76
|
+
"app-layout-body": "_app-layout-body_nvm54_34",
|
|
77
|
+
"app-layout-main": "_app-layout-main_nvm54_87",
|
|
78
|
+
"app-layout-side-left": "_app-layout-side-left_nvm54_141",
|
|
79
|
+
"app-layout-side-right": "_app-layout-side-right_nvm54_151",
|
|
80
|
+
"app-layout-bottom": "_app-layout-bottom_nvm54_161"
|
|
81
|
+
}, x = {
|
|
82
|
+
"no-results": "_no-results_qh56o_1",
|
|
83
|
+
"no-results-header": "_no-results-header_qh56o_20",
|
|
84
|
+
"no-results-icon": "_no-results-icon_qh56o_30",
|
|
85
|
+
"no-results-title": "_no-results-title_qh56o_41",
|
|
86
|
+
"no-results-subtitle": "_no-results-subtitle_qh56o_49",
|
|
87
|
+
"no-results-action": "_no-results-action_qh56o_58"
|
|
88
|
+
}, Ie = "_drawer_1pkzl_1", Re = {
|
|
89
|
+
drawer: Ie
|
|
90
|
+
}, Me = "_modal_lpscz_1", He = {
|
|
91
|
+
modal: Me
|
|
92
|
+
}, ke = "_bottomSheet_14nkl_1", De = {
|
|
93
|
+
bottomSheet: ke
|
|
94
|
+
}, Ce = l(
|
|
12
95
|
({
|
|
13
|
-
direction:
|
|
14
|
-
size:
|
|
96
|
+
direction: t = "horizontal",
|
|
97
|
+
size: e = "md",
|
|
15
98
|
align: a = "center",
|
|
16
99
|
wrap: o = "nowrap",
|
|
17
100
|
"aria-label": r = "Avatar group",
|
|
@@ -19,12 +102,12 @@ const Bt = l(
|
|
|
19
102
|
className: c,
|
|
20
103
|
...m
|
|
21
104
|
}, u) => {
|
|
22
|
-
const n =
|
|
105
|
+
const n = _({ align: a, direction: t, size: e, wrap: o });
|
|
23
106
|
return /* @__PURE__ */ s(
|
|
24
107
|
"div",
|
|
25
108
|
{
|
|
26
109
|
ref: u,
|
|
27
|
-
className: d(
|
|
110
|
+
className: d(_e["avatar-group"], c),
|
|
28
111
|
role: "group",
|
|
29
112
|
"aria-label": r,
|
|
30
113
|
...n,
|
|
@@ -34,48 +117,48 @@ const Bt = l(
|
|
|
34
117
|
);
|
|
35
118
|
}
|
|
36
119
|
);
|
|
37
|
-
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
if (!
|
|
120
|
+
Ce.displayName = "AvatarGroup";
|
|
121
|
+
function ze(t, e) {
|
|
122
|
+
P(() => {
|
|
123
|
+
if (!t.current)
|
|
41
124
|
return;
|
|
42
|
-
const a = new ResizeObserver(
|
|
43
|
-
return a.observe(
|
|
125
|
+
const a = new ResizeObserver(e);
|
|
126
|
+
return a.observe(t.current), () => {
|
|
44
127
|
a.disconnect();
|
|
45
128
|
};
|
|
46
|
-
}, [
|
|
129
|
+
}, [t, e]);
|
|
47
130
|
}
|
|
48
|
-
const Z =
|
|
49
|
-
function
|
|
50
|
-
const
|
|
51
|
-
if (!
|
|
131
|
+
const Z = w(void 0);
|
|
132
|
+
function je() {
|
|
133
|
+
const t = S(Z);
|
|
134
|
+
if (!t)
|
|
52
135
|
throw new Error("Tabs.Item must be used within a Tabs component");
|
|
53
|
-
return
|
|
136
|
+
return t;
|
|
54
137
|
}
|
|
55
|
-
const O = l(({ value:
|
|
56
|
-
const i =
|
|
57
|
-
const
|
|
58
|
-
if (!
|
|
138
|
+
const O = l(({ value: t, onChange: e, children: a, className: o }, r) => {
|
|
139
|
+
const i = q(null), c = q(/* @__PURE__ */ new Map()), [m, u] = $(0), [n, b] = $(0), h = () => {
|
|
140
|
+
const B = c.current.get(t);
|
|
141
|
+
if (!B || !i.current)
|
|
59
142
|
return;
|
|
60
|
-
const
|
|
61
|
-
u(
|
|
143
|
+
const g = i.current.getBoundingClientRect(), I = B.getBoundingClientRect(), re = I.left - g.left + i.current.scrollLeft, { width: ie } = I;
|
|
144
|
+
u(re), b(ie), B.scrollIntoView({
|
|
62
145
|
behavior: "smooth",
|
|
63
146
|
block: "nearest",
|
|
64
147
|
inline: "center"
|
|
65
148
|
});
|
|
66
|
-
}, p = (
|
|
67
|
-
|
|
149
|
+
}, p = (B, g) => {
|
|
150
|
+
g && c.current.set(B, g);
|
|
68
151
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}, [
|
|
72
|
-
const
|
|
73
|
-
return /* @__PURE__ */ s(Z.Provider, { value: { activeValue:
|
|
74
|
-
/* @__PURE__ */ s("ul", { className:
|
|
152
|
+
ne(() => {
|
|
153
|
+
h();
|
|
154
|
+
}, [t]), ze(i, h);
|
|
155
|
+
const f = _({});
|
|
156
|
+
return /* @__PURE__ */ s(Z.Provider, { value: { activeValue: t, onChange: e, registerTrigger: p }, children: /* @__PURE__ */ y("nav", { ref: Q(r, i), className: d(M.tabs, o), ...f, children: [
|
|
157
|
+
/* @__PURE__ */ s("ul", { className: M.tablist, role: "tablist", children: a }),
|
|
75
158
|
/* @__PURE__ */ s(
|
|
76
159
|
"div",
|
|
77
160
|
{
|
|
78
|
-
className:
|
|
161
|
+
className: M["tabs-thumb"],
|
|
79
162
|
style: {
|
|
80
163
|
left: `${m}px`,
|
|
81
164
|
width: `${n}px`
|
|
@@ -85,87 +168,87 @@ const O = l(({ value: e, onChange: t, children: a, className: o }, r) => {
|
|
|
85
168
|
] }) });
|
|
86
169
|
});
|
|
87
170
|
O.displayName = "Tabs";
|
|
88
|
-
const
|
|
89
|
-
({ value:
|
|
90
|
-
const { activeValue: i, onChange: c, registerTrigger: m } =
|
|
171
|
+
const tt = l(
|
|
172
|
+
({ value: t, disabled: e = !1, children: a, className: o }, r) => {
|
|
173
|
+
const { activeValue: i, onChange: c, registerTrigger: m } = je(), u = i === t;
|
|
91
174
|
let n;
|
|
92
|
-
|
|
175
|
+
e ? n = "disabled" : u ? n = "active" : n = "default";
|
|
93
176
|
const b = () => {
|
|
94
|
-
|
|
177
|
+
e || c(t);
|
|
95
178
|
};
|
|
96
|
-
return /* @__PURE__ */ s("li", { className:
|
|
179
|
+
return /* @__PURE__ */ s("li", { className: M.tabitem, children: /* @__PURE__ */ s(
|
|
97
180
|
"button",
|
|
98
181
|
{
|
|
99
|
-
ref: Q(r, (
|
|
100
|
-
className: d(
|
|
182
|
+
ref: Q(r, (h) => m(t, h)),
|
|
183
|
+
className: d(M.trigger, o),
|
|
101
184
|
role: "tab",
|
|
102
|
-
id: `tabs-trigger-${
|
|
185
|
+
id: `tabs-trigger-${t}`,
|
|
103
186
|
"aria-selected": u,
|
|
104
|
-
"aria-controls": `tabs-panel-${
|
|
187
|
+
"aria-controls": `tabs-panel-${t}`,
|
|
105
188
|
"data-state": n,
|
|
106
|
-
disabled:
|
|
189
|
+
disabled: e,
|
|
107
190
|
onClick: b,
|
|
108
191
|
children: a
|
|
109
192
|
}
|
|
110
193
|
) });
|
|
111
194
|
}
|
|
112
195
|
);
|
|
113
|
-
|
|
114
|
-
function
|
|
196
|
+
tt.displayName = "Tabs.Item";
|
|
197
|
+
function Fe(t) {
|
|
115
198
|
return {
|
|
116
|
-
"aria-labelledby": `tabs-trigger-${
|
|
117
|
-
id: `tabs-panel-${
|
|
199
|
+
"aria-labelledby": `tabs-trigger-${t}`,
|
|
200
|
+
id: `tabs-panel-${t}`,
|
|
118
201
|
role: "tabpanel"
|
|
119
202
|
};
|
|
120
203
|
}
|
|
121
|
-
const
|
|
122
|
-
Item:
|
|
123
|
-
getPanelAttribute:
|
|
124
|
-
}),
|
|
125
|
-
({ icon:
|
|
204
|
+
const ra = Object.assign(O, {
|
|
205
|
+
Item: tt,
|
|
206
|
+
getPanelAttribute: Fe
|
|
207
|
+
}), Pe = l(
|
|
208
|
+
({ icon: t, title: e, subtitle: a, action: o, className: r, ...i }, c) => /* @__PURE__ */ y("section", { ref: c, className: d(x["no-results"], r), role: "status", "aria-label": e, ...i, children: [
|
|
126
209
|
/* @__PURE__ */ y("header", { className: x["no-results-header"], children: [
|
|
127
|
-
/* @__PURE__ */ s("div", { className: x["no-results-icon"], children: /* @__PURE__ */ s(
|
|
128
|
-
/* @__PURE__ */ s("h5", { className: x["no-results-title"], children:
|
|
210
|
+
/* @__PURE__ */ s("div", { className: x["no-results-icon"], children: /* @__PURE__ */ s(D, { as: t, color: "inherit", "aria-hidden": "true" }) }),
|
|
211
|
+
/* @__PURE__ */ s("h5", { className: x["no-results-title"], children: e })
|
|
129
212
|
] }),
|
|
130
213
|
a && /* @__PURE__ */ s("p", { className: x["no-results-subtitle"], children: a }),
|
|
131
214
|
o && /* @__PURE__ */ s("div", { className: x["no-results-action"], role: "group", "aria-label": "Available actions", children: o })
|
|
132
215
|
] })
|
|
133
216
|
);
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
const
|
|
137
|
-
if (!
|
|
217
|
+
Pe.displayName = "NoResults";
|
|
218
|
+
const et = w(void 0), qe = () => {
|
|
219
|
+
const t = S(et);
|
|
220
|
+
if (!t)
|
|
138
221
|
throw new Error("AttributeList.Item must be used within an AttributeList component");
|
|
139
|
-
return
|
|
140
|
-
},
|
|
141
|
-
({ columns:
|
|
142
|
-
const i =
|
|
143
|
-
columns:
|
|
222
|
+
return t;
|
|
223
|
+
}, at = l(
|
|
224
|
+
({ columns: t = "3", children: e, className: a, ...o }, r) => {
|
|
225
|
+
const i = _({
|
|
226
|
+
columns: t
|
|
144
227
|
});
|
|
145
|
-
return /* @__PURE__ */ s(
|
|
228
|
+
return /* @__PURE__ */ s(et.Provider, { value: { columns: t }, children: /* @__PURE__ */ s("dl", { ref: r, className: d(Be["attribute-list"], a), ...i, ...o, children: e }) });
|
|
146
229
|
}
|
|
147
230
|
);
|
|
148
|
-
|
|
149
|
-
const
|
|
150
|
-
({ title:
|
|
151
|
-
|
|
152
|
-
const c =
|
|
153
|
-
"column-span":
|
|
231
|
+
at.displayName = "AttributeList";
|
|
232
|
+
const st = l(
|
|
233
|
+
({ title: t, columnSpan: e = "1", contentLineClamp: a = "2", children: o, className: r }, i) => {
|
|
234
|
+
qe();
|
|
235
|
+
const c = _({
|
|
236
|
+
"column-span": e,
|
|
154
237
|
"content-line-clamp": a
|
|
155
238
|
});
|
|
156
239
|
return /* @__PURE__ */ y("div", { ref: i, className: d(r), ...c, children: [
|
|
157
|
-
/* @__PURE__ */ s("dt", { children:
|
|
240
|
+
/* @__PURE__ */ s("dt", { children: t }),
|
|
158
241
|
/* @__PURE__ */ s("dd", { children: o })
|
|
159
242
|
] });
|
|
160
243
|
}
|
|
161
244
|
);
|
|
162
|
-
|
|
163
|
-
const
|
|
164
|
-
Item:
|
|
165
|
-
}),
|
|
245
|
+
st.displayName = "AttributeList.Item";
|
|
246
|
+
const ia = Object.assign(at, {
|
|
247
|
+
Item: st
|
|
248
|
+
}), $e = l(
|
|
166
249
|
({
|
|
167
|
-
gap:
|
|
168
|
-
direction:
|
|
250
|
+
gap: t = "md",
|
|
251
|
+
direction: e = "horizontal",
|
|
169
252
|
align: a = "center",
|
|
170
253
|
wrap: o = "nowrap",
|
|
171
254
|
"aria-label": r = "Badge group",
|
|
@@ -173,17 +256,17 @@ const Jt = Object.assign(ae, {
|
|
|
173
256
|
className: c,
|
|
174
257
|
...m
|
|
175
258
|
}, u) => {
|
|
176
|
-
const n =
|
|
259
|
+
const n = _({
|
|
177
260
|
align: a,
|
|
178
|
-
direction:
|
|
179
|
-
gap:
|
|
261
|
+
direction: e,
|
|
262
|
+
gap: t,
|
|
180
263
|
wrap: o
|
|
181
264
|
});
|
|
182
265
|
return /* @__PURE__ */ s(
|
|
183
266
|
"div",
|
|
184
267
|
{
|
|
185
268
|
ref: u,
|
|
186
|
-
className: d(
|
|
269
|
+
className: d(ye["badge-group"], c),
|
|
187
270
|
role: "group",
|
|
188
271
|
"aria-label": r,
|
|
189
272
|
...n,
|
|
@@ -193,62 +276,62 @@ const Jt = Object.assign(ae, {
|
|
|
193
276
|
);
|
|
194
277
|
}
|
|
195
278
|
);
|
|
196
|
-
|
|
197
|
-
function
|
|
198
|
-
const m =
|
|
279
|
+
$e.displayName = "BadgeGroup";
|
|
280
|
+
function Ee({ as: t = "div", size: e = "md", border: a, children: o, className: r, ...i }, c) {
|
|
281
|
+
const m = _({
|
|
199
282
|
border: a,
|
|
200
|
-
interactive:
|
|
201
|
-
size:
|
|
283
|
+
interactive: t === "button" ? "true" : "false",
|
|
284
|
+
size: e
|
|
202
285
|
});
|
|
203
|
-
return /* @__PURE__ */ s(
|
|
286
|
+
return /* @__PURE__ */ s(t === "button" ? "button" : "div", { ref: c, className: d(j.card, r), ...m, ...i, children: o });
|
|
204
287
|
}
|
|
205
|
-
const
|
|
206
|
-
|
|
288
|
+
const ot = l(
|
|
289
|
+
Ee
|
|
207
290
|
);
|
|
208
|
-
|
|
209
|
-
const
|
|
210
|
-
const c =
|
|
291
|
+
ot.displayName = "Card";
|
|
292
|
+
const rt = l(({ justify: t, gap: e, children: a, className: o, ...r }, i) => {
|
|
293
|
+
const c = _({ gap: e, justify: t });
|
|
211
294
|
return /* @__PURE__ */ s("div", { ref: i, className: d(j.header, o), ...c, ...r, children: a });
|
|
212
295
|
});
|
|
213
|
-
|
|
214
|
-
const
|
|
215
|
-
const c =
|
|
296
|
+
rt.displayName = "Card.Header";
|
|
297
|
+
const it = l(({ align: t, gap: e, children: a, className: o, ...r }, i) => {
|
|
298
|
+
const c = _({ align: t, gap: e });
|
|
216
299
|
return /* @__PURE__ */ s("div", { ref: i, className: d(j.body, o), ...c, ...r, children: a });
|
|
217
300
|
});
|
|
218
|
-
|
|
219
|
-
const
|
|
220
|
-
const c =
|
|
301
|
+
it.displayName = "Card.Body";
|
|
302
|
+
const lt = l(({ justify: t, gap: e, children: a, className: o, ...r }, i) => {
|
|
303
|
+
const c = _({ gap: e, justify: t });
|
|
221
304
|
return /* @__PURE__ */ s("div", { ref: i, className: d(j.footer, o), ...c, ...r, children: a });
|
|
222
305
|
});
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
-
Body:
|
|
226
|
-
Footer:
|
|
227
|
-
Header:
|
|
228
|
-
}),
|
|
229
|
-
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
const
|
|
237
|
-
({ sortable:
|
|
306
|
+
lt.displayName = "Card.Footer";
|
|
307
|
+
const la = Object.assign(ot, {
|
|
308
|
+
Body: it,
|
|
309
|
+
Footer: lt,
|
|
310
|
+
Header: rt
|
|
311
|
+
}), nt = l(({ className: t, ...e }, a) => /* @__PURE__ */ s("thead", { ref: a, className: d(A["table-header"], t), ...e }));
|
|
312
|
+
nt.displayName = "Table.Header";
|
|
313
|
+
const dt = l(({ className: t, ...e }, a) => /* @__PURE__ */ s("tbody", { ref: a, className: d(A["table-body"], t), ...e }));
|
|
314
|
+
dt.displayName = "Table.Body";
|
|
315
|
+
const ct = l(({ className: t, ...e }, a) => /* @__PURE__ */ s("tfoot", { ref: a, className: d(A["table-footer"], t), ...e }));
|
|
316
|
+
ct.displayName = "Table.Footer";
|
|
317
|
+
const mt = l(({ onClick: t, className: e, ...a }, o) => /* @__PURE__ */ s("tr", { ref: o, className: d(e), "data-clickable": t ? "true" : void 0, onClick: t, ...a }));
|
|
318
|
+
mt.displayName = "Table.Row";
|
|
319
|
+
const ut = l(
|
|
320
|
+
({ sortable: t, sortDirection: e, onSort: a, children: o, className: r, ...i }, c) => {
|
|
238
321
|
const m = () => {
|
|
239
|
-
if (!
|
|
322
|
+
if (!t || !a)
|
|
240
323
|
return;
|
|
241
324
|
let n = "asc";
|
|
242
|
-
|
|
243
|
-
}, u =
|
|
244
|
-
sortable:
|
|
325
|
+
e === "asc" ? n = "desc" : e === "desc" && (n = null), a(n);
|
|
326
|
+
}, u = _({
|
|
327
|
+
sortable: t ? "true" : void 0
|
|
245
328
|
});
|
|
246
329
|
return /* @__PURE__ */ s(
|
|
247
330
|
"th",
|
|
248
331
|
{
|
|
249
332
|
ref: c,
|
|
250
|
-
className: d(
|
|
251
|
-
onClick:
|
|
333
|
+
className: d(A["table-head"], r),
|
|
334
|
+
onClick: t ? m : void 0,
|
|
252
335
|
...u,
|
|
253
336
|
...i,
|
|
254
337
|
children: /* @__PURE__ */ y(
|
|
@@ -262,11 +345,11 @@ const ue = l(
|
|
|
262
345
|
},
|
|
263
346
|
children: [
|
|
264
347
|
o,
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
!
|
|
269
|
-
|
|
348
|
+
t && /* @__PURE__ */ y(K, { children: [
|
|
349
|
+
e === "asc" && /* @__PURE__ */ s(me, { style: { flexShrink: 0, height: "1em", width: "1em" } }),
|
|
350
|
+
e === "desc" && /* @__PURE__ */ s(E, { style: { flexShrink: 0, height: "1em", width: "1em" } }),
|
|
351
|
+
!e && /* @__PURE__ */ s(
|
|
352
|
+
E,
|
|
270
353
|
{
|
|
271
354
|
style: {
|
|
272
355
|
flexShrink: 0,
|
|
@@ -284,11 +367,11 @@ const ue = l(
|
|
|
284
367
|
);
|
|
285
368
|
}
|
|
286
369
|
);
|
|
287
|
-
|
|
288
|
-
const
|
|
289
|
-
|
|
290
|
-
const
|
|
291
|
-
({ rowId:
|
|
370
|
+
ut.displayName = "Table.HeaderCell";
|
|
371
|
+
const bt = l(({ variant: t, className: e, ...a }, o) => /* @__PURE__ */ s("td", { ref: o, className: d(A["table-cell"], e), "data-table-cell-variant": t, ...a }));
|
|
372
|
+
bt.displayName = "Table.BodyCell";
|
|
373
|
+
const pt = l(
|
|
374
|
+
({ rowId: t, checked: e, indeterminate: a, onChange: o }, r) => /* @__PURE__ */ y("label", { className: F.checkbox, children: [
|
|
292
375
|
/* @__PURE__ */ s(
|
|
293
376
|
"input",
|
|
294
377
|
{
|
|
@@ -296,17 +379,17 @@ const pe = l(
|
|
|
296
379
|
i && (i.indeterminate = a || !1, typeof r == "function" ? r(i) : r && (r.current = i));
|
|
297
380
|
},
|
|
298
381
|
type: "checkbox",
|
|
299
|
-
className:
|
|
300
|
-
checked:
|
|
382
|
+
className: F.input,
|
|
383
|
+
checked: e || !1,
|
|
301
384
|
onChange: (i) => o(i.target.checked),
|
|
302
|
-
"aria-label": `Select row ${
|
|
385
|
+
"aria-label": `Select row ${t}`
|
|
303
386
|
}
|
|
304
387
|
),
|
|
305
|
-
/* @__PURE__ */ s("span", { className:
|
|
388
|
+
/* @__PURE__ */ s("span", { className: F.indicator })
|
|
306
389
|
] })
|
|
307
390
|
);
|
|
308
|
-
|
|
309
|
-
const
|
|
391
|
+
pt.displayName = "Table.Checkbox";
|
|
392
|
+
const _t = l(({ title: t, subtitle: e, size: a = "md", className: o }, r) => {
|
|
310
393
|
const i = {
|
|
311
394
|
title: {
|
|
312
395
|
sm: "0.875rem",
|
|
@@ -319,7 +402,7 @@ const Ne = l(({ title: e, subtitle: t, size: a = "md", className: o }, r) => {
|
|
|
319
402
|
lg: "0.875rem"
|
|
320
403
|
}
|
|
321
404
|
};
|
|
322
|
-
return /* @__PURE__ */ y("div", { ref: r, className: d(
|
|
405
|
+
return /* @__PURE__ */ y("div", { ref: r, className: d(A["table-cell"], o), "data-table-cell-variant": "double-line", children: [
|
|
323
406
|
/* @__PURE__ */ s(
|
|
324
407
|
"div",
|
|
325
408
|
{
|
|
@@ -327,7 +410,7 @@ const Ne = l(({ title: e, subtitle: t, size: a = "md", className: o }, r) => {
|
|
|
327
410
|
fontWeight: 600,
|
|
328
411
|
fontSize: i.title[a]
|
|
329
412
|
},
|
|
330
|
-
children:
|
|
413
|
+
children: t
|
|
331
414
|
}
|
|
332
415
|
),
|
|
333
416
|
/* @__PURE__ */ s(
|
|
@@ -337,54 +420,54 @@ const Ne = l(({ title: e, subtitle: t, size: a = "md", className: o }, r) => {
|
|
|
337
420
|
fontSize: i.subtitle[a],
|
|
338
421
|
color: "#6b7280"
|
|
339
422
|
},
|
|
340
|
-
children:
|
|
423
|
+
children: e
|
|
341
424
|
}
|
|
342
425
|
)
|
|
343
426
|
] });
|
|
344
427
|
});
|
|
345
|
-
|
|
346
|
-
const
|
|
347
|
-
|
|
428
|
+
_t.displayName = "Table.DoubleLine";
|
|
429
|
+
const yt = l(({ onClick: t, disabled: e }, a) => /* @__PURE__ */ s(
|
|
430
|
+
C,
|
|
348
431
|
{
|
|
349
432
|
ref: a,
|
|
350
|
-
as:
|
|
433
|
+
as: ue,
|
|
351
434
|
onClick: (r) => {
|
|
352
|
-
r.stopPropagation(),
|
|
435
|
+
r.stopPropagation(), t == null || t();
|
|
353
436
|
},
|
|
354
|
-
disabled:
|
|
437
|
+
disabled: e,
|
|
355
438
|
variant: "ghost",
|
|
356
439
|
size: "medium",
|
|
357
440
|
"aria-label": "Action button"
|
|
358
441
|
}
|
|
359
442
|
));
|
|
360
|
-
|
|
361
|
-
const
|
|
443
|
+
yt.displayName = "Table.Action";
|
|
444
|
+
const ht = l(({ columns: t, children: e, className: a, ...o }, r) => /* @__PURE__ */ s(
|
|
362
445
|
"div",
|
|
363
446
|
{
|
|
364
447
|
ref: r,
|
|
365
|
-
className: d(
|
|
448
|
+
className: d(A.table, a),
|
|
366
449
|
style: {
|
|
367
|
-
"--table-grid-columns":
|
|
450
|
+
"--table-grid-columns": t
|
|
368
451
|
},
|
|
369
452
|
...o,
|
|
370
|
-
children: /* @__PURE__ */ s("table", { children:
|
|
453
|
+
children: /* @__PURE__ */ s("table", { children: e })
|
|
371
454
|
}
|
|
372
455
|
));
|
|
373
|
-
|
|
374
|
-
const
|
|
375
|
-
Action:
|
|
376
|
-
Body:
|
|
377
|
-
BodyCell:
|
|
378
|
-
Checkbox:
|
|
379
|
-
DoubleLine:
|
|
380
|
-
Footer:
|
|
381
|
-
Header:
|
|
382
|
-
HeaderCell:
|
|
383
|
-
Row:
|
|
384
|
-
}),
|
|
456
|
+
ht.displayName = "Table";
|
|
457
|
+
const na = Object.assign(ht, {
|
|
458
|
+
Action: yt,
|
|
459
|
+
Body: dt,
|
|
460
|
+
BodyCell: bt,
|
|
461
|
+
Checkbox: pt,
|
|
462
|
+
DoubleLine: _t,
|
|
463
|
+
Footer: ct,
|
|
464
|
+
Header: nt,
|
|
465
|
+
HeaderCell: ut,
|
|
466
|
+
Row: mt
|
|
467
|
+
}), Ge = l(
|
|
385
468
|
({
|
|
386
|
-
gap:
|
|
387
|
-
direction:
|
|
469
|
+
gap: t = "md",
|
|
470
|
+
direction: e = "horizontal",
|
|
388
471
|
align: a = "center",
|
|
389
472
|
wrap: o = "nowrap",
|
|
390
473
|
fluid: r = !1,
|
|
@@ -393,18 +476,18 @@ const Qt = Object.assign(ve, {
|
|
|
393
476
|
className: m,
|
|
394
477
|
...u
|
|
395
478
|
}, n) => {
|
|
396
|
-
const b =
|
|
479
|
+
const b = _({
|
|
397
480
|
align: a,
|
|
398
|
-
direction:
|
|
481
|
+
direction: e,
|
|
399
482
|
fluid: r,
|
|
400
|
-
gap:
|
|
483
|
+
gap: t,
|
|
401
484
|
wrap: o
|
|
402
485
|
});
|
|
403
486
|
return /* @__PURE__ */ s(
|
|
404
487
|
"div",
|
|
405
488
|
{
|
|
406
489
|
ref: n,
|
|
407
|
-
className: d(
|
|
490
|
+
className: d(pe["button-group"], m),
|
|
408
491
|
role: "group",
|
|
409
492
|
"aria-label": i,
|
|
410
493
|
...b,
|
|
@@ -414,11 +497,11 @@ const Qt = Object.assign(ve, {
|
|
|
414
497
|
);
|
|
415
498
|
}
|
|
416
499
|
);
|
|
417
|
-
|
|
418
|
-
const
|
|
500
|
+
Ge.displayName = "ButtonGroup";
|
|
501
|
+
const vt = w(void 0), Nt = l(
|
|
419
502
|
({
|
|
420
|
-
id:
|
|
421
|
-
placement:
|
|
503
|
+
id: t,
|
|
504
|
+
placement: e = "bottom",
|
|
422
505
|
maxHeight: a = 400,
|
|
423
506
|
minWidth: o = 160,
|
|
424
507
|
maxWidth: r = 320,
|
|
@@ -428,17 +511,17 @@ const he = L(void 0), fe = l(
|
|
|
428
511
|
closeOnClick: u = !1,
|
|
429
512
|
children: n,
|
|
430
513
|
...b
|
|
431
|
-
},
|
|
514
|
+
}, h) => {
|
|
432
515
|
const p = {
|
|
433
|
-
id:
|
|
516
|
+
id: t,
|
|
434
517
|
closeOnClick: u,
|
|
435
518
|
onChange: m,
|
|
436
519
|
value: c
|
|
437
520
|
};
|
|
438
|
-
return /* @__PURE__ */ s("div", { ref:
|
|
521
|
+
return /* @__PURE__ */ s("div", { ref: h, ...b, children: /* @__PURE__ */ s(vt.Provider, { value: p, children: /* @__PURE__ */ s(z, { id: t, placement: e, gap: i, triggerType: "focus", children: /* @__PURE__ */ s(
|
|
439
522
|
"div",
|
|
440
523
|
{
|
|
441
|
-
className:
|
|
524
|
+
className: R["menu-list"],
|
|
442
525
|
style: {
|
|
443
526
|
"--_max-height": `${a}px`,
|
|
444
527
|
"--_max-width": `${r}px`,
|
|
@@ -449,88 +532,88 @@ const he = L(void 0), fe = l(
|
|
|
449
532
|
) }) }) });
|
|
450
533
|
}
|
|
451
534
|
);
|
|
452
|
-
|
|
453
|
-
function
|
|
454
|
-
return
|
|
455
|
-
id:
|
|
535
|
+
Nt.displayName = "Menu";
|
|
536
|
+
function Ve(t) {
|
|
537
|
+
return z.getTooltipTriggerProps({
|
|
538
|
+
id: t.id,
|
|
456
539
|
triggerType: "focus"
|
|
457
540
|
});
|
|
458
541
|
}
|
|
459
|
-
function
|
|
460
|
-
|
|
542
|
+
function We(t) {
|
|
543
|
+
z.close(t);
|
|
461
544
|
}
|
|
462
|
-
const
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
const
|
|
466
|
-
({ value:
|
|
467
|
-
const n =
|
|
545
|
+
const U = Nt;
|
|
546
|
+
U.getTriggerProps = Ve;
|
|
547
|
+
U.close = We;
|
|
548
|
+
const ft = l(
|
|
549
|
+
({ value: t, disabled: e = !1, leftIcon: a, rightIcon: o, children: r, onClick: i, className: c, ...m }, u) => {
|
|
550
|
+
const n = S(vt), b = n != null && n.onChange && t !== void 0 ? n.value === t : !1, h = _({
|
|
468
551
|
active: b,
|
|
469
|
-
disabled:
|
|
470
|
-
}), p = (
|
|
471
|
-
if (
|
|
472
|
-
|
|
552
|
+
disabled: e
|
|
553
|
+
}), p = (f) => {
|
|
554
|
+
if (e) {
|
|
555
|
+
f.preventDefault();
|
|
473
556
|
return;
|
|
474
557
|
}
|
|
475
|
-
n != null && n.onChange &&
|
|
558
|
+
n != null && n.onChange && t !== void 0 && n.onChange(t), i == null || i(f), n != null && n.closeOnClick && (n != null && n.id) && z.close({ id: n.id });
|
|
476
559
|
};
|
|
477
560
|
return /* @__PURE__ */ y(
|
|
478
561
|
"button",
|
|
479
562
|
{
|
|
480
563
|
ref: u,
|
|
481
|
-
className: d(
|
|
482
|
-
disabled:
|
|
483
|
-
...
|
|
564
|
+
className: d(R["menu-item"], c),
|
|
565
|
+
disabled: e,
|
|
566
|
+
...h,
|
|
484
567
|
...m,
|
|
485
568
|
onClick: p,
|
|
486
569
|
children: [
|
|
487
|
-
a ? /* @__PURE__ */ s("span", { className:
|
|
488
|
-
/* @__PURE__ */ s("span", { className:
|
|
489
|
-
o ? /* @__PURE__ */ s("span", { className:
|
|
570
|
+
a ? /* @__PURE__ */ s("span", { className: R["menu-item-icon"], children: a }) : null,
|
|
571
|
+
/* @__PURE__ */ s("span", { className: R["menu-item-label"], children: r }),
|
|
572
|
+
o ? /* @__PURE__ */ s("span", { className: R["menu-item-icon"], children: o }) : null
|
|
490
573
|
]
|
|
491
574
|
}
|
|
492
575
|
);
|
|
493
576
|
}
|
|
494
577
|
);
|
|
495
|
-
|
|
496
|
-
const
|
|
497
|
-
|
|
498
|
-
const
|
|
499
|
-
|
|
500
|
-
const
|
|
501
|
-
|
|
502
|
-
const
|
|
503
|
-
|
|
504
|
-
const
|
|
505
|
-
|
|
506
|
-
const
|
|
507
|
-
({ as:
|
|
508
|
-
|
|
578
|
+
ft.displayName = "Menu.Item";
|
|
579
|
+
const Ue = U;
|
|
580
|
+
Ue.Item = ft;
|
|
581
|
+
const gt = l(({ children: t, className: e, ...a }, o) => /* @__PURE__ */ s("div", { ref: o, className: d(T["top-bar"], e), ...a, children: t }));
|
|
582
|
+
gt.displayName = "TopBar";
|
|
583
|
+
const Bt = l(({ children: t, className: e, ...a }, o) => /* @__PURE__ */ s("div", { ref: o, className: d(T["top-bar-leading"], e), ...a, children: t }));
|
|
584
|
+
Bt.displayName = "TopBar.Leading";
|
|
585
|
+
const Tt = l(({ children: t, className: e, ...a }, o) => /* @__PURE__ */ s("div", { ref: o, className: d(T["top-bar-centred"], e), ...a, children: t }));
|
|
586
|
+
Tt.displayName = "TopBar.Centred";
|
|
587
|
+
const wt = l(({ children: t, className: e, ...a }, o) => /* @__PURE__ */ s("div", { ref: o, className: d(T["top-bar-trailing"], e), ...a, children: t }));
|
|
588
|
+
wt.displayName = "TopBar.Trailing";
|
|
589
|
+
const St = l(
|
|
590
|
+
({ as: t = "button", active: e, disabled: a, icon: o, className: r, children: i, ...c }, m) => /* @__PURE__ */ y(
|
|
591
|
+
t,
|
|
509
592
|
{
|
|
510
593
|
ref: m,
|
|
511
|
-
className: d(
|
|
512
|
-
"data-active":
|
|
594
|
+
className: d(T["top-bar-item"], r),
|
|
595
|
+
"data-active": e ? "" : void 0,
|
|
513
596
|
"data-disabled": a ? "" : void 0,
|
|
514
597
|
...c,
|
|
515
598
|
children: [
|
|
516
|
-
o && /* @__PURE__ */ s("span", { className:
|
|
599
|
+
o && /* @__PURE__ */ s("span", { className: T["top-bar-item-icon"], children: o }),
|
|
517
600
|
i
|
|
518
601
|
]
|
|
519
602
|
}
|
|
520
603
|
)
|
|
521
604
|
);
|
|
522
|
-
|
|
523
|
-
const
|
|
524
|
-
|
|
525
|
-
const
|
|
526
|
-
Centred:
|
|
527
|
-
Item:
|
|
528
|
-
Leading:
|
|
529
|
-
ListItem:
|
|
530
|
-
Trailing:
|
|
531
|
-
}),
|
|
532
|
-
({ direction:
|
|
533
|
-
const u =
|
|
605
|
+
St.displayName = "TopBar.Item";
|
|
606
|
+
const At = l(({ children: t, className: e, ...a }, o) => /* @__PURE__ */ s("div", { ref: o, className: d(T["top-bar-list-item"], e), ...a, children: t }));
|
|
607
|
+
At.displayName = "TopBar.ListItem";
|
|
608
|
+
const da = Object.assign(gt, {
|
|
609
|
+
Centred: Tt,
|
|
610
|
+
Item: St,
|
|
611
|
+
Leading: Bt,
|
|
612
|
+
ListItem: At,
|
|
613
|
+
Trailing: wt
|
|
614
|
+
}), Lt = w(void 0), X = l(
|
|
615
|
+
({ direction: t = "horizontal", gap: e, value: a, onChange: o, children: r, className: i, ...c }, m) => {
|
|
616
|
+
const u = _({ direction: t }), n = {
|
|
534
617
|
lg: "var(--spacing-4)",
|
|
535
618
|
md: "var(--spacing-3)",
|
|
536
619
|
sm: "var(--spacing-2)",
|
|
@@ -539,14 +622,14 @@ const Yt = Object.assign(Be, {
|
|
|
539
622
|
onChange: o,
|
|
540
623
|
value: a
|
|
541
624
|
};
|
|
542
|
-
return /* @__PURE__ */ s(
|
|
625
|
+
return /* @__PURE__ */ s(Lt.Provider, { value: b, children: /* @__PURE__ */ s(
|
|
543
626
|
"nav",
|
|
544
627
|
{
|
|
545
628
|
ref: m,
|
|
546
|
-
className: d(
|
|
629
|
+
className: d(H.nav, i),
|
|
547
630
|
style: {
|
|
548
|
-
...
|
|
549
|
-
"--vers-comp-nav-gap": n[
|
|
631
|
+
...e && {
|
|
632
|
+
"--vers-comp-nav-gap": n[e]
|
|
550
633
|
}
|
|
551
634
|
},
|
|
552
635
|
...u,
|
|
@@ -556,12 +639,12 @@ const Yt = Object.assign(Be, {
|
|
|
556
639
|
) });
|
|
557
640
|
}
|
|
558
641
|
);
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
const
|
|
642
|
+
X.displayName = "Nav";
|
|
643
|
+
X.displayName = "Nav";
|
|
644
|
+
const xt = l(
|
|
562
645
|
({
|
|
563
|
-
as:
|
|
564
|
-
active:
|
|
646
|
+
as: t = "button",
|
|
647
|
+
active: e = !1,
|
|
565
648
|
value: a,
|
|
566
649
|
disabled: o = !1,
|
|
567
650
|
loading: r = !1,
|
|
@@ -571,60 +654,60 @@ const xe = l(
|
|
|
571
654
|
onClick: u,
|
|
572
655
|
className: n,
|
|
573
656
|
...b
|
|
574
|
-
},
|
|
575
|
-
const p =
|
|
576
|
-
active:
|
|
657
|
+
}, h) => {
|
|
658
|
+
const p = S(Lt), f = p != null && p.onChange && a !== void 0 ? p.value === a : e, B = _({
|
|
659
|
+
active: f,
|
|
577
660
|
disabled: o || r,
|
|
578
661
|
loading: r
|
|
579
|
-
}),
|
|
662
|
+
}), g = (I) => {
|
|
580
663
|
if (o || r) {
|
|
581
|
-
|
|
664
|
+
I.preventDefault();
|
|
582
665
|
return;
|
|
583
666
|
}
|
|
584
|
-
p != null && p.onChange && a !== void 0 && p.onChange(a), u == null || u(
|
|
667
|
+
p != null && p.onChange && a !== void 0 && p.onChange(a), u == null || u(I);
|
|
585
668
|
};
|
|
586
669
|
return /* @__PURE__ */ y(
|
|
587
|
-
|
|
670
|
+
t,
|
|
588
671
|
{
|
|
589
|
-
ref:
|
|
590
|
-
className: d(
|
|
591
|
-
"aria-current":
|
|
672
|
+
ref: h,
|
|
673
|
+
className: d(H["nav-item"], n),
|
|
674
|
+
"aria-current": f && t !== "button" ? "page" : void 0,
|
|
592
675
|
"aria-disabled": o || r ? "true" : void 0,
|
|
593
676
|
"aria-busy": r ? "true" : void 0,
|
|
594
|
-
...
|
|
677
|
+
...B,
|
|
595
678
|
...b,
|
|
596
|
-
onClick:
|
|
679
|
+
onClick: g,
|
|
597
680
|
children: [
|
|
598
|
-
i && /* @__PURE__ */ s("span", { className:
|
|
681
|
+
i && /* @__PURE__ */ s("span", { className: H["nav-item-icon"], children: /* @__PURE__ */ s(D, { as: i }) }),
|
|
599
682
|
m,
|
|
600
|
-
c && /* @__PURE__ */ s("span", { className:
|
|
683
|
+
c && /* @__PURE__ */ s("span", { className: H["nav-item-icon"], children: /* @__PURE__ */ s(D, { as: c }) })
|
|
601
684
|
]
|
|
602
685
|
}
|
|
603
686
|
);
|
|
604
687
|
}
|
|
605
688
|
);
|
|
606
|
-
|
|
607
|
-
const
|
|
608
|
-
Item:
|
|
609
|
-
}),
|
|
610
|
-
|
|
611
|
-
const
|
|
612
|
-
|
|
613
|
-
const
|
|
614
|
-
|
|
615
|
-
const
|
|
616
|
-
|
|
617
|
-
const
|
|
689
|
+
xt.displayName = "NavItem";
|
|
690
|
+
const ca = Object.assign(X, {
|
|
691
|
+
Item: xt
|
|
692
|
+
}), It = l(({ children: t, className: e }, a) => /* @__PURE__ */ s("aside", { ref: a, className: d(v.sidebar, e), children: t }));
|
|
693
|
+
It.displayName = "Sidebar";
|
|
694
|
+
const Rt = l(({ children: t, className: e }, a) => /* @__PURE__ */ s("div", { ref: a, className: d(v["sidebar-header"], e), children: t }));
|
|
695
|
+
Rt.displayName = "Sidebar.Header";
|
|
696
|
+
const Mt = l(({ children: t, className: e }, a) => /* @__PURE__ */ s("div", { ref: a, className: d(v["sidebar-body"], e), children: t }));
|
|
697
|
+
Mt.displayName = "Sidebar.Body";
|
|
698
|
+
const Ht = l(({ children: t, className: e }, a) => /* @__PURE__ */ s("div", { ref: a, className: d(v["sidebar-footer"], e), children: t }));
|
|
699
|
+
Ht.displayName = "Sidebar.Footer";
|
|
700
|
+
const kt = l(
|
|
618
701
|
({
|
|
619
|
-
label:
|
|
620
|
-
icon:
|
|
702
|
+
label: t,
|
|
703
|
+
icon: e,
|
|
621
704
|
defaultExpanded: a = !0,
|
|
622
705
|
isExpanded: o,
|
|
623
706
|
onExpandedChange: r,
|
|
624
707
|
children: i,
|
|
625
708
|
className: c
|
|
626
709
|
}, m) => {
|
|
627
|
-
const [u, n] =
|
|
710
|
+
const [u, n] = $(a), b = o !== void 0 ? o : u, h = () => {
|
|
628
711
|
const p = !b;
|
|
629
712
|
n(p), r == null || r(p);
|
|
630
713
|
};
|
|
@@ -632,152 +715,152 @@ const Ce = l(
|
|
|
632
715
|
"div",
|
|
633
716
|
{
|
|
634
717
|
ref: m,
|
|
635
|
-
className: d(
|
|
718
|
+
className: d(v["sidebar-group"], c),
|
|
636
719
|
"data-expanded": b ? "" : void 0,
|
|
637
720
|
children: [
|
|
638
721
|
/* @__PURE__ */ y(
|
|
639
722
|
"button",
|
|
640
723
|
{
|
|
641
|
-
className:
|
|
642
|
-
onClick:
|
|
724
|
+
className: v["sidebar-group-header"],
|
|
725
|
+
onClick: h,
|
|
643
726
|
"aria-expanded": b,
|
|
644
727
|
children: [
|
|
645
|
-
|
|
646
|
-
/* @__PURE__ */ s("span", { className:
|
|
728
|
+
e && /* @__PURE__ */ s("span", { children: e }),
|
|
729
|
+
/* @__PURE__ */ s("span", { className: v["sidebar-group-label"], children: t }),
|
|
647
730
|
/* @__PURE__ */ s(
|
|
648
|
-
|
|
731
|
+
D,
|
|
649
732
|
{
|
|
650
|
-
as:
|
|
651
|
-
className:
|
|
733
|
+
as: E,
|
|
734
|
+
className: v["sidebar-group-chevron"],
|
|
652
735
|
size: "sm"
|
|
653
736
|
}
|
|
654
737
|
)
|
|
655
738
|
]
|
|
656
739
|
}
|
|
657
740
|
),
|
|
658
|
-
/* @__PURE__ */ s("div", { className:
|
|
741
|
+
/* @__PURE__ */ s("div", { className: v["sidebar-group-content"], children: /* @__PURE__ */ s("div", { children: i }) })
|
|
659
742
|
]
|
|
660
743
|
}
|
|
661
744
|
);
|
|
662
745
|
}
|
|
663
746
|
);
|
|
664
|
-
|
|
665
|
-
const
|
|
666
|
-
({ as:
|
|
667
|
-
|
|
747
|
+
kt.displayName = "Sidebar.Group";
|
|
748
|
+
const Dt = l(
|
|
749
|
+
({ as: t = "button", active: e, disabled: a, icon: o, action: r, className: i, children: c, ...m }, u) => /* @__PURE__ */ y(
|
|
750
|
+
t,
|
|
668
751
|
{
|
|
669
752
|
ref: u,
|
|
670
|
-
className: d(
|
|
671
|
-
"data-active":
|
|
753
|
+
className: d(v["sidebar-item"], i),
|
|
754
|
+
"data-active": e ? "" : void 0,
|
|
672
755
|
"data-disabled": a ? "" : void 0,
|
|
673
756
|
"data-action": r ? "" : void 0,
|
|
674
757
|
...m,
|
|
675
758
|
children: [
|
|
676
|
-
o && /* @__PURE__ */ s("span", { className:
|
|
677
|
-
/* @__PURE__ */ s("span", { className:
|
|
678
|
-
r && /* @__PURE__ */ s("span", { className:
|
|
759
|
+
o && /* @__PURE__ */ s("span", { className: v["sidebar-item-icon"], children: o }),
|
|
760
|
+
/* @__PURE__ */ s("span", { className: v["sidebar-item-text"], children: c }),
|
|
761
|
+
r && /* @__PURE__ */ s("span", { className: v["sidebar-item-action"], children: r })
|
|
679
762
|
]
|
|
680
763
|
}
|
|
681
764
|
)
|
|
682
765
|
);
|
|
683
|
-
|
|
684
|
-
const
|
|
685
|
-
|
|
686
|
-
const
|
|
687
|
-
|
|
688
|
-
const
|
|
689
|
-
Body:
|
|
690
|
-
Divider:
|
|
691
|
-
Footer:
|
|
692
|
-
Group:
|
|
693
|
-
Header:
|
|
694
|
-
Item:
|
|
695
|
-
ItemList:
|
|
766
|
+
Dt.displayName = "Sidebar.Item";
|
|
767
|
+
const Ct = l(({ children: t, className: e }, a) => /* @__PURE__ */ s("div", { ref: a, className: d(v["sidebar-item-list"], e), children: t }));
|
|
768
|
+
Ct.displayName = "Sidebar.ItemList";
|
|
769
|
+
const zt = l(({ className: t }, e) => /* @__PURE__ */ s("div", { ref: e, className: d(v["sidebar-divider"], t), children: /* @__PURE__ */ s(ce, {}) }));
|
|
770
|
+
zt.displayName = "Sidebar.Divider";
|
|
771
|
+
const ma = Object.assign(It, {
|
|
772
|
+
Body: Mt,
|
|
773
|
+
Divider: zt,
|
|
774
|
+
Footer: Ht,
|
|
775
|
+
Group: kt,
|
|
776
|
+
Header: Rt,
|
|
777
|
+
Item: Dt,
|
|
778
|
+
ItemList: Ct
|
|
696
779
|
});
|
|
697
|
-
function
|
|
698
|
-
return
|
|
780
|
+
function Xe(t, e) {
|
|
781
|
+
return t === e;
|
|
699
782
|
}
|
|
700
|
-
const
|
|
701
|
-
|
|
702
|
-
const
|
|
703
|
-
({ as:
|
|
704
|
-
const b =
|
|
783
|
+
const jt = l(({ children: t, className: e, ...a }, o) => /* @__PURE__ */ s("nav", { ref: o, className: d(k["bottom-bar"], e), ...a, children: t }));
|
|
784
|
+
jt.displayName = "BottomBar";
|
|
785
|
+
const Ft = l(
|
|
786
|
+
({ as: t = "button", href: e, active: a = !1, disabled: o = !1, icon: r, children: i, onClick: c, className: m, ...u }, n) => {
|
|
787
|
+
const b = Xe(t, "a"), h = _({
|
|
705
788
|
active: a,
|
|
706
789
|
disabled: o
|
|
707
|
-
}), p = (
|
|
790
|
+
}), p = (g) => {
|
|
708
791
|
if (o) {
|
|
709
|
-
|
|
792
|
+
g.preventDefault();
|
|
710
793
|
return;
|
|
711
794
|
}
|
|
712
|
-
c == null || c(
|
|
713
|
-
},
|
|
714
|
-
className: d(
|
|
795
|
+
c == null || c(g);
|
|
796
|
+
}, f = {
|
|
797
|
+
className: d(k["bottom-bar-item"], m),
|
|
715
798
|
onClick: p,
|
|
716
799
|
ref: n,
|
|
717
|
-
...
|
|
800
|
+
...h,
|
|
718
801
|
...u
|
|
719
802
|
};
|
|
720
|
-
return b && (
|
|
721
|
-
r && /* @__PURE__ */ s("span", { className:
|
|
722
|
-
i && /* @__PURE__ */ s("span", { className:
|
|
803
|
+
return b && (f.href = e), /* @__PURE__ */ y(t || "button", { ...f, children: [
|
|
804
|
+
r && /* @__PURE__ */ s("span", { className: k["bottom-bar-item-icon"], children: r }),
|
|
805
|
+
i && /* @__PURE__ */ s("span", { className: k["bottom-bar-item-text"], children: i })
|
|
723
806
|
] });
|
|
724
807
|
}
|
|
725
808
|
);
|
|
726
|
-
|
|
727
|
-
const
|
|
728
|
-
Item:
|
|
729
|
-
}),
|
|
809
|
+
Ft.displayName = "BottomBar.Item";
|
|
810
|
+
const ua = Object.assign(jt, {
|
|
811
|
+
Item: Ft
|
|
812
|
+
}), Pt = l(
|
|
730
813
|
({
|
|
731
|
-
variant:
|
|
732
|
-
hideHeader:
|
|
814
|
+
variant: t = "classic",
|
|
815
|
+
hideHeader: e,
|
|
733
816
|
hideBottom: a,
|
|
734
817
|
className: o,
|
|
735
818
|
children: r
|
|
736
819
|
}, i) => {
|
|
737
|
-
const c =
|
|
738
|
-
"hide-header":
|
|
820
|
+
const c = _({
|
|
821
|
+
"hide-header": e,
|
|
739
822
|
"hide-bottom": a,
|
|
740
|
-
variant:
|
|
823
|
+
variant: t
|
|
741
824
|
});
|
|
742
|
-
return /* @__PURE__ */ s("div", { ref: i, className: d(
|
|
825
|
+
return /* @__PURE__ */ s("div", { ref: i, className: d(L["app-layout"], o), ...c, children: r });
|
|
743
826
|
}
|
|
744
827
|
);
|
|
745
|
-
|
|
746
|
-
const
|
|
747
|
-
({ className:
|
|
828
|
+
Pt.displayName = "AppLayout";
|
|
829
|
+
const qt = l(
|
|
830
|
+
({ className: t, children: e }, a) => /* @__PURE__ */ s("div", { ref: a, className: d(L["app-layout-body"], t), children: e })
|
|
748
831
|
);
|
|
749
|
-
|
|
750
|
-
const
|
|
751
|
-
|
|
752
|
-
const
|
|
753
|
-
({ className:
|
|
754
|
-
const r =
|
|
755
|
-
placement:
|
|
832
|
+
qt.displayName = "AppLayout.Body";
|
|
833
|
+
const $t = l(({ className: t, children: e }, a) => /* @__PURE__ */ s("header", { ref: a, className: d(L["app-layout-header"], t), children: e }));
|
|
834
|
+
$t.displayName = "AppLayout.Header";
|
|
835
|
+
const Et = l(
|
|
836
|
+
({ className: t, placement: e = "full-width", children: a }, o) => {
|
|
837
|
+
const r = _({
|
|
838
|
+
placement: e
|
|
756
839
|
});
|
|
757
|
-
return /* @__PURE__ */ s("main", { ref: o, className: d(
|
|
840
|
+
return /* @__PURE__ */ s("main", { ref: o, className: d(L["app-layout-main"], t), ...r, children: a });
|
|
758
841
|
}
|
|
759
842
|
);
|
|
760
|
-
|
|
761
|
-
const
|
|
762
|
-
|
|
763
|
-
const
|
|
764
|
-
|
|
765
|
-
const
|
|
766
|
-
|
|
767
|
-
const
|
|
768
|
-
Body:
|
|
769
|
-
Bottom:
|
|
770
|
-
Header:
|
|
771
|
-
Main:
|
|
772
|
-
SideLeft:
|
|
773
|
-
SideRight:
|
|
774
|
-
}),
|
|
775
|
-
({ isOpen:
|
|
776
|
-
const c =
|
|
777
|
-
|
|
843
|
+
Et.displayName = "AppLayout.Main";
|
|
844
|
+
const Gt = l(({ className: t, children: e }, a) => /* @__PURE__ */ s("aside", { ref: a, className: d(L["app-layout-side-left"], t), children: e }));
|
|
845
|
+
Gt.displayName = "AppLayout.SideLeft";
|
|
846
|
+
const Vt = l(({ className: t, children: e }, a) => /* @__PURE__ */ s("aside", { ref: a, className: d(L["app-layout-side-right"], t), children: e }));
|
|
847
|
+
Vt.displayName = "AppLayout.SideRight";
|
|
848
|
+
const Wt = l(({ className: t, children: e }, a) => /* @__PURE__ */ s("footer", { ref: a, className: d(L["app-layout-bottom"], t), children: e }));
|
|
849
|
+
Wt.displayName = "AppLayout.Bottom";
|
|
850
|
+
const ba = Object.assign(Pt, {
|
|
851
|
+
Body: qt,
|
|
852
|
+
Bottom: Wt,
|
|
853
|
+
Header: $t,
|
|
854
|
+
Main: Et,
|
|
855
|
+
SideLeft: Gt,
|
|
856
|
+
SideRight: Vt
|
|
857
|
+
}), Ut = le.forwardRef(
|
|
858
|
+
({ isOpen: t, onOpenChange: e, children: a, onClick: o, ...r }, i) => {
|
|
859
|
+
const c = q(null), m = i || c;
|
|
860
|
+
P(() => {
|
|
778
861
|
const n = m.current;
|
|
779
862
|
if (n) {
|
|
780
|
-
if (
|
|
863
|
+
if (t)
|
|
781
864
|
try {
|
|
782
865
|
n.showModal(), document.documentElement.style.overflow = "hidden";
|
|
783
866
|
} catch {
|
|
@@ -788,217 +871,217 @@ const ta = Object.assign(Ge, {
|
|
|
788
871
|
document.documentElement.style.overflow = "";
|
|
789
872
|
};
|
|
790
873
|
}
|
|
791
|
-
}, [
|
|
874
|
+
}, [t, m]), P(() => {
|
|
792
875
|
const n = m.current;
|
|
793
876
|
if (!n)
|
|
794
877
|
return;
|
|
795
|
-
const b = () =>
|
|
796
|
-
p.preventDefault(),
|
|
878
|
+
const b = () => e == null ? void 0 : e(!1), h = (p) => {
|
|
879
|
+
p.preventDefault(), e == null || e(!1);
|
|
797
880
|
};
|
|
798
|
-
return n.addEventListener("close", b), n.addEventListener("cancel",
|
|
799
|
-
n.removeEventListener("close", b), n.removeEventListener("cancel",
|
|
881
|
+
return n.addEventListener("close", b), n.addEventListener("cancel", h), () => {
|
|
882
|
+
n.removeEventListener("close", b), n.removeEventListener("cancel", h);
|
|
800
883
|
};
|
|
801
|
-
}, [
|
|
802
|
-
const u =
|
|
884
|
+
}, [e, m]);
|
|
885
|
+
const u = de(
|
|
803
886
|
(n) => {
|
|
804
|
-
n.target === n.currentTarget && (
|
|
887
|
+
n.target === n.currentTarget && (e == null || e(!1)), o == null || o(n);
|
|
805
888
|
},
|
|
806
|
-
[
|
|
889
|
+
[e, o]
|
|
807
890
|
);
|
|
808
891
|
return /* @__PURE__ */ s("dialog", { ...r, ref: m, onClick: u, children: a });
|
|
809
892
|
}
|
|
810
893
|
);
|
|
811
|
-
|
|
812
|
-
const J =
|
|
813
|
-
const
|
|
814
|
-
if (!
|
|
894
|
+
Ut.displayName = "Dialog";
|
|
895
|
+
const J = Ut, Xt = w(void 0), Je = () => {
|
|
896
|
+
const t = S(Xt);
|
|
897
|
+
if (!t)
|
|
815
898
|
throw new Error("Drawer subcomponents must be used within Drawer");
|
|
816
|
-
return
|
|
817
|
-
},
|
|
818
|
-
({ open:
|
|
819
|
-
const m =
|
|
899
|
+
return t;
|
|
900
|
+
}, Jt = l(
|
|
901
|
+
({ open: t, onOpenChange: e, placement: a = "right", children: o, className: r, ...i }, c) => {
|
|
902
|
+
const m = _({
|
|
820
903
|
placement: a
|
|
821
904
|
});
|
|
822
|
-
return /* @__PURE__ */ s(
|
|
905
|
+
return /* @__PURE__ */ s(Xt.Provider, { value: { onClose: () => e == null ? void 0 : e(!1) }, children: /* @__PURE__ */ s(
|
|
823
906
|
J,
|
|
824
907
|
{
|
|
825
908
|
ref: c,
|
|
826
|
-
isOpen:
|
|
827
|
-
onOpenChange:
|
|
828
|
-
className: d(
|
|
909
|
+
isOpen: t,
|
|
910
|
+
onOpenChange: e,
|
|
911
|
+
className: d(t && Re.drawer, r),
|
|
829
912
|
...m,
|
|
830
913
|
...i,
|
|
831
|
-
children: /* @__PURE__ */ s("div", { className:
|
|
914
|
+
children: /* @__PURE__ */ s("div", { className: N.content, children: o })
|
|
832
915
|
}
|
|
833
916
|
) });
|
|
834
917
|
}
|
|
835
918
|
);
|
|
836
|
-
|
|
837
|
-
const
|
|
838
|
-
const { onClose: o } =
|
|
919
|
+
Jt.displayName = "Drawer";
|
|
920
|
+
const Kt = l(({ onClick: t, ...e }, a) => {
|
|
921
|
+
const { onClose: o } = Je();
|
|
839
922
|
return /* @__PURE__ */ s(
|
|
840
|
-
|
|
923
|
+
C,
|
|
841
924
|
{
|
|
842
925
|
ref: a,
|
|
843
926
|
variant: "ghost",
|
|
844
|
-
as:
|
|
927
|
+
as: G,
|
|
845
928
|
"aria-label": "Close",
|
|
846
929
|
onClick: (i) => {
|
|
847
|
-
o(),
|
|
930
|
+
o(), t == null || t(i);
|
|
848
931
|
},
|
|
849
|
-
className:
|
|
850
|
-
...
|
|
932
|
+
className: N.closeButton,
|
|
933
|
+
...e
|
|
851
934
|
}
|
|
852
935
|
);
|
|
853
936
|
});
|
|
854
|
-
|
|
855
|
-
const
|
|
856
|
-
({ action:
|
|
937
|
+
Kt.displayName = "Drawer.CloseButton";
|
|
938
|
+
const Qt = l(
|
|
939
|
+
({ action: t, children: e, tabs: a, className: o, ...r }, i) => /* @__PURE__ */ y(
|
|
857
940
|
"div",
|
|
858
941
|
{
|
|
859
942
|
ref: i,
|
|
860
|
-
className: d(
|
|
943
|
+
className: d(N.header, o),
|
|
861
944
|
...r,
|
|
862
|
-
...
|
|
945
|
+
...t && { "data-action": "" },
|
|
863
946
|
...a && { "data-tabs": "" },
|
|
864
947
|
children: [
|
|
865
|
-
|
|
866
|
-
/* @__PURE__ */ s("div", { className:
|
|
867
|
-
|
|
868
|
-
] }) : /* @__PURE__ */ s("div", { className:
|
|
948
|
+
t ? /* @__PURE__ */ y(K, { children: [
|
|
949
|
+
/* @__PURE__ */ s("div", { className: N.headerTop, children: t }),
|
|
950
|
+
e && /* @__PURE__ */ s("div", { className: N.headerContent, children: e })
|
|
951
|
+
] }) : /* @__PURE__ */ s("div", { className: N.headerTop, children: e }),
|
|
869
952
|
a
|
|
870
953
|
]
|
|
871
954
|
}
|
|
872
955
|
)
|
|
873
956
|
);
|
|
874
|
-
|
|
875
|
-
const
|
|
876
|
-
Body:
|
|
877
|
-
CloseButton:
|
|
957
|
+
Qt.displayName = "Drawer.Header";
|
|
958
|
+
const pa = Object.assign(Jt, {
|
|
959
|
+
Body: W,
|
|
960
|
+
CloseButton: Kt,
|
|
878
961
|
Footer: Y,
|
|
879
|
-
Header:
|
|
880
|
-
Title:
|
|
881
|
-
}),
|
|
882
|
-
const
|
|
883
|
-
if (!
|
|
962
|
+
Header: Qt,
|
|
963
|
+
Title: V
|
|
964
|
+
}), Yt = w(void 0), Ke = () => {
|
|
965
|
+
const t = S(Yt);
|
|
966
|
+
if (!t)
|
|
884
967
|
throw new Error("Modal subcomponents must be used within Modal");
|
|
885
|
-
return
|
|
886
|
-
},
|
|
887
|
-
({ open:
|
|
888
|
-
const u =
|
|
889
|
-
return /* @__PURE__ */ s(
|
|
968
|
+
return t;
|
|
969
|
+
}, Zt = l(
|
|
970
|
+
({ open: t, onOpenChange: e, size: a, position: o, children: r, className: i, ...c }, m) => {
|
|
971
|
+
const u = _({ size: a, position: o });
|
|
972
|
+
return /* @__PURE__ */ s(Yt.Provider, { value: { onClose: () => e == null ? void 0 : e(!1) }, children: /* @__PURE__ */ s(
|
|
890
973
|
J,
|
|
891
974
|
{
|
|
892
975
|
ref: m,
|
|
893
|
-
isOpen:
|
|
894
|
-
onOpenChange:
|
|
895
|
-
className: d(
|
|
976
|
+
isOpen: t,
|
|
977
|
+
onOpenChange: e,
|
|
978
|
+
className: d(t && He.modal, i),
|
|
896
979
|
"data-modal": "",
|
|
897
980
|
...u,
|
|
898
981
|
...c,
|
|
899
|
-
children: /* @__PURE__ */ s("div", { className:
|
|
982
|
+
children: /* @__PURE__ */ s("div", { className: N.content, children: r })
|
|
900
983
|
}
|
|
901
984
|
) });
|
|
902
985
|
}
|
|
903
986
|
);
|
|
904
|
-
|
|
905
|
-
const
|
|
906
|
-
const { onClose: o } =
|
|
987
|
+
Zt.displayName = "Modal";
|
|
988
|
+
const Ot = l(({ onClick: t, ...e }, a) => {
|
|
989
|
+
const { onClose: o } = Ke();
|
|
907
990
|
return /* @__PURE__ */ s(
|
|
908
|
-
|
|
991
|
+
C,
|
|
909
992
|
{
|
|
910
993
|
ref: a,
|
|
911
994
|
variant: "ghost",
|
|
912
|
-
as:
|
|
995
|
+
as: G,
|
|
913
996
|
"aria-label": "Close",
|
|
914
997
|
onClick: (i) => {
|
|
915
|
-
o(),
|
|
998
|
+
o(), t == null || t(i);
|
|
916
999
|
},
|
|
917
|
-
className:
|
|
918
|
-
...
|
|
1000
|
+
className: N.closeButton,
|
|
1001
|
+
...e
|
|
919
1002
|
}
|
|
920
1003
|
);
|
|
921
1004
|
});
|
|
922
|
-
|
|
923
|
-
const
|
|
924
|
-
/* @__PURE__ */ s("div", { children:
|
|
925
|
-
|
|
1005
|
+
Ot.displayName = "Modal.CloseButton";
|
|
1006
|
+
const te = l(({ action: t, children: e, className: a, ...o }, r) => /* @__PURE__ */ y("div", { ref: r, className: d(N.header, "modal-header", a), "data-modal-header": "", ...o, children: [
|
|
1007
|
+
/* @__PURE__ */ s("div", { children: e }),
|
|
1008
|
+
t && /* @__PURE__ */ s("div", { className: "modal-header-action", children: t })
|
|
926
1009
|
] }));
|
|
927
|
-
|
|
928
|
-
const
|
|
929
|
-
({ align:
|
|
1010
|
+
te.displayName = "Modal.Header";
|
|
1011
|
+
const ee = l(
|
|
1012
|
+
({ align: t = "end", children: e, className: a, ...o }, r) => /* @__PURE__ */ s(
|
|
930
1013
|
"div",
|
|
931
1014
|
{
|
|
932
1015
|
ref: r,
|
|
933
|
-
className: d(
|
|
1016
|
+
className: d(N.footer, "modal-footer", a),
|
|
934
1017
|
"data-modal-footer": "",
|
|
935
|
-
"data-align":
|
|
1018
|
+
"data-align": t,
|
|
936
1019
|
...o,
|
|
937
|
-
children:
|
|
1020
|
+
children: e
|
|
938
1021
|
}
|
|
939
1022
|
)
|
|
940
1023
|
);
|
|
941
|
-
|
|
942
|
-
const
|
|
943
|
-
Body:
|
|
944
|
-
CloseButton:
|
|
945
|
-
Footer:
|
|
946
|
-
Header:
|
|
947
|
-
Title:
|
|
948
|
-
}),
|
|
949
|
-
const
|
|
950
|
-
if (!
|
|
1024
|
+
ee.displayName = "Modal.Footer";
|
|
1025
|
+
const _a = Object.assign(Zt, {
|
|
1026
|
+
Body: W,
|
|
1027
|
+
CloseButton: Ot,
|
|
1028
|
+
Footer: ee,
|
|
1029
|
+
Header: te,
|
|
1030
|
+
Title: V
|
|
1031
|
+
}), ae = w(void 0), Qe = () => {
|
|
1032
|
+
const t = S(ae);
|
|
1033
|
+
if (!t)
|
|
951
1034
|
throw new Error("BottomSheet subcomponents must be used within BottomSheet");
|
|
952
|
-
return
|
|
953
|
-
},
|
|
954
|
-
({ open:
|
|
1035
|
+
return t;
|
|
1036
|
+
}, se = l(
|
|
1037
|
+
({ open: t, onOpenChange: e, children: a, className: o, ...r }, i) => /* @__PURE__ */ s(ae.Provider, { value: { onClose: () => e == null ? void 0 : e(!1) }, children: /* @__PURE__ */ s(J, { ref: i, isOpen: t, onOpenChange: e, className: d(De.bottomSheet, o), ...r, children: /* @__PURE__ */ s("div", { className: N.content, children: a }) }) })
|
|
955
1038
|
);
|
|
956
|
-
|
|
957
|
-
const
|
|
958
|
-
({ onClick:
|
|
959
|
-
const { onClose: o } =
|
|
1039
|
+
se.displayName = "BottomSheet";
|
|
1040
|
+
const oe = l(
|
|
1041
|
+
({ onClick: t, ...e }, a) => {
|
|
1042
|
+
const { onClose: o } = Qe();
|
|
960
1043
|
return /* @__PURE__ */ s(
|
|
961
|
-
|
|
1044
|
+
C,
|
|
962
1045
|
{
|
|
963
|
-
as:
|
|
1046
|
+
as: G,
|
|
964
1047
|
ref: a,
|
|
965
1048
|
variant: "ghost",
|
|
966
1049
|
"aria-label": "Close",
|
|
967
1050
|
onClick: (i) => {
|
|
968
|
-
o(),
|
|
1051
|
+
o(), t == null || t(i);
|
|
969
1052
|
},
|
|
970
|
-
className:
|
|
971
|
-
...
|
|
1053
|
+
className: N.closeButton,
|
|
1054
|
+
...e
|
|
972
1055
|
}
|
|
973
1056
|
);
|
|
974
1057
|
}
|
|
975
1058
|
);
|
|
976
|
-
|
|
977
|
-
const
|
|
978
|
-
Body:
|
|
979
|
-
CloseButton:
|
|
1059
|
+
oe.displayName = "BottomSheet.CloseButton";
|
|
1060
|
+
const ya = Object.assign(se, {
|
|
1061
|
+
Body: W,
|
|
1062
|
+
CloseButton: oe,
|
|
980
1063
|
Footer: Y,
|
|
981
|
-
Header:
|
|
982
|
-
Title:
|
|
1064
|
+
Header: be,
|
|
1065
|
+
Title: V
|
|
983
1066
|
});
|
|
984
1067
|
export {
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1068
|
+
ba as AppLayout,
|
|
1069
|
+
ia as AttributeList,
|
|
1070
|
+
Ce as AvatarGroup,
|
|
1071
|
+
$e as BadgeGroup,
|
|
1072
|
+
ua as BottomBar,
|
|
1073
|
+
ya as BottomSheet,
|
|
1074
|
+
Ge as ButtonGroup,
|
|
1075
|
+
la as Card,
|
|
993
1076
|
J as Dialog,
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1077
|
+
pa as Drawer,
|
|
1078
|
+
Ue as Menu,
|
|
1079
|
+
_a as Modal,
|
|
1080
|
+
ca as Nav,
|
|
1081
|
+
xt as NavItem,
|
|
1082
|
+
Pe as NoResults,
|
|
1083
|
+
ma as Sidebar,
|
|
1084
|
+
na as Table,
|
|
1085
|
+
ra as Tabs,
|
|
1086
|
+
da as TopBar
|
|
1004
1087
|
};
|