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