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