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