@mucsi96/react-ui 0.5.0 → 0.7.0
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/README.md +92 -0
- package/dist/components/dialog/dialog.d.ts +7 -2
- package/dist/components/empty-state/empty-state.d.ts +9 -0
- package/dist/components/forms/controls.d.ts +9 -1
- package/dist/components/forms/number-field.d.ts +11 -0
- package/dist/components/forms/select.d.ts +4 -2
- package/dist/components/skeleton/skeleton.d.ts +11 -0
- package/dist/components/tabs/tabs.d.ts +17 -0
- package/dist/index.d.ts +12 -4
- package/dist/index.js +390 -200
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import { Button as r, Checkbox as i,
|
|
4
|
-
import { createContext as
|
|
5
|
-
import { createPortal as
|
|
3
|
+
import { Button as r, Checkbox as i, CheckboxGroup as a, ComboBox as o, Dialog as s, DialogTrigger as c, FieldError as l, Group as u, Heading as d, Input as f, Label as p, Link as m, ListBox as h, ListBoxItem as g, Menu as _, MenuItem as v, MenuTrigger as y, MenuTrigger as b, Modal as x, ModalOverlay as S, NumberField as C, Popover as w, ProgressBar as T, Radio as E, RadioGroup as D, Select as O, SelectValue as k, Separator as A, SubmenuTrigger as ee, Switch as j, Tab as te, TabList as ne, TabPanel as re, Tabs as ie, Text as M, TextArea as ae, TextField as oe, Tooltip as se, TooltipTrigger as ce } from "react-aria-components";
|
|
4
|
+
import { createContext as le, useCallback as N, useContext as ue, useEffect as de, useId as P, useMemo as fe, useRef as F, useState as I } from "react";
|
|
5
|
+
import { createPortal as pe } from "react-dom";
|
|
6
6
|
//#region src/internal/classes.ts
|
|
7
7
|
function L(...e) {
|
|
8
8
|
return e.filter(Boolean).join(" ");
|
|
@@ -15,7 +15,7 @@ var R = {
|
|
|
15
15
|
};
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/components/app-layout/app-layout.tsx
|
|
18
|
-
function
|
|
18
|
+
function me({ children: e, className: n, ...r }) {
|
|
19
19
|
return /* @__PURE__ */ t("header", {
|
|
20
20
|
...r,
|
|
21
21
|
className: L(R.header, n),
|
|
@@ -25,13 +25,13 @@ function ce({ children: e, className: n, ...r }) {
|
|
|
25
25
|
})
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function he({ className: e, ...n }) {
|
|
29
29
|
return /* @__PURE__ */ t("div", {
|
|
30
30
|
...n,
|
|
31
31
|
className: L(R.actions, e)
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function ge({ className: e, ...n }) {
|
|
35
35
|
return /* @__PURE__ */ t("main", {
|
|
36
36
|
...n,
|
|
37
37
|
className: L(R.main, e)
|
|
@@ -54,8 +54,8 @@ function B({ variant: e = "filled", tone: n = "primary", background: i, classNam
|
|
|
54
54
|
children: s
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return /* @__PURE__ */ t(
|
|
57
|
+
function _e({ variant: e = "filled", tone: n = "primary", background: r, className: i, style: a, children: o, ref: s, ...c }) {
|
|
58
|
+
return /* @__PURE__ */ t(m, {
|
|
59
59
|
...c,
|
|
60
60
|
ref: s,
|
|
61
61
|
className: L(z.button, i),
|
|
@@ -69,65 +69,114 @@ function de({ variant: e = "filled", tone: n = "primary", background: r, classNa
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
var V = {
|
|
72
|
-
field: "
|
|
73
|
-
label: "
|
|
74
|
-
surface: "
|
|
75
|
-
floatingLabel: "
|
|
76
|
-
selectButton: "
|
|
77
|
-
input: "
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
72
|
+
field: "_field_n6ey2_1",
|
|
73
|
+
label: "_label_n6ey2_10",
|
|
74
|
+
surface: "_surface_n6ey2_14",
|
|
75
|
+
floatingLabel: "_floatingLabel_n6ey2_23",
|
|
76
|
+
selectButton: "_selectButton_n6ey2_24",
|
|
77
|
+
input: "_input_n6ey2_25",
|
|
78
|
+
selectSurface: "_selectSurface_n6ey2_60",
|
|
79
|
+
selectValue: "_selectValue_n6ey2_76",
|
|
80
|
+
number: "_number_n6ey2_107",
|
|
81
|
+
stepper: "_stepper_n6ey2_117",
|
|
82
|
+
description: "_description_n6ey2_150",
|
|
83
|
+
error: "_error_n6ey2_157",
|
|
84
|
+
combo: "_combo_n6ey2_180",
|
|
85
|
+
comboButton: "_comboButton_n6ey2_186",
|
|
86
|
+
popover: "_popover_n6ey2_204",
|
|
87
|
+
list: "_list_n6ey2_214",
|
|
88
|
+
option: "_option_n6ey2_221",
|
|
89
|
+
control: "_control_n6ey2_239",
|
|
90
|
+
check: "_check_n6ey2_254",
|
|
91
|
+
radio: "_radio_n6ey2_255",
|
|
92
|
+
track: "_track_n6ey2_291",
|
|
93
|
+
thumb: "_thumb_n6ey2_302"
|
|
90
94
|
};
|
|
91
95
|
//#endregion
|
|
92
96
|
//#region src/components/forms/text-field.tsx
|
|
93
|
-
function
|
|
94
|
-
return /* @__PURE__ */ n(
|
|
97
|
+
function ve({ label: e, description: r, error: i, placeholder: a, multiline: o = !1, rows: s = 3, appearance: c = "filled", className: u, ref: d, ...m }) {
|
|
98
|
+
return /* @__PURE__ */ n(oe, {
|
|
95
99
|
...m,
|
|
96
|
-
ref:
|
|
100
|
+
ref: d,
|
|
97
101
|
isInvalid: !!i || m.isInvalid,
|
|
98
102
|
className: L(V.field, u),
|
|
99
|
-
"data-appearance":
|
|
103
|
+
"data-appearance": c,
|
|
100
104
|
children: [
|
|
101
105
|
/* @__PURE__ */ n("div", {
|
|
102
106
|
className: V.surface,
|
|
103
|
-
children: [/* @__PURE__ */ n(
|
|
107
|
+
children: [/* @__PURE__ */ n(p, {
|
|
104
108
|
className: V.floatingLabel,
|
|
105
109
|
children: [e, m.isRequired && /* @__PURE__ */ t("span", {
|
|
106
110
|
"aria-hidden": "true",
|
|
107
111
|
children: " *"
|
|
108
112
|
})]
|
|
109
|
-
}), o ? /* @__PURE__ */ t(
|
|
113
|
+
}), o ? /* @__PURE__ */ t(ae, {
|
|
110
114
|
className: V.input,
|
|
111
115
|
placeholder: a,
|
|
112
116
|
rows: s
|
|
113
|
-
}) : /* @__PURE__ */ t(
|
|
117
|
+
}) : /* @__PURE__ */ t(f, {
|
|
114
118
|
className: V.input,
|
|
115
119
|
placeholder: a
|
|
116
120
|
})]
|
|
117
121
|
}),
|
|
118
|
-
r && /* @__PURE__ */ t(
|
|
122
|
+
r && /* @__PURE__ */ t(M, {
|
|
119
123
|
slot: "description",
|
|
120
124
|
className: V.description,
|
|
121
125
|
children: r
|
|
122
126
|
}),
|
|
123
|
-
/* @__PURE__ */ t(
|
|
127
|
+
/* @__PURE__ */ t(l, {
|
|
124
128
|
className: V.error,
|
|
125
129
|
children: i
|
|
126
130
|
})
|
|
127
131
|
]
|
|
128
132
|
});
|
|
129
133
|
}
|
|
130
|
-
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/components/forms/number-field.tsx
|
|
136
|
+
function ye({ label: e, description: i, error: a, appearance: o = "filled", className: s, ref: c, ...d }) {
|
|
137
|
+
return /* @__PURE__ */ n(C, {
|
|
138
|
+
...d,
|
|
139
|
+
ref: c,
|
|
140
|
+
isInvalid: !!a || d.isInvalid,
|
|
141
|
+
className: L(V.field, s),
|
|
142
|
+
"data-appearance": o,
|
|
143
|
+
children: [
|
|
144
|
+
/* @__PURE__ */ n(u, {
|
|
145
|
+
className: L(V.surface, V.number),
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ n(p, {
|
|
148
|
+
className: V.floatingLabel,
|
|
149
|
+
children: [e, d.isRequired && /* @__PURE__ */ t("span", {
|
|
150
|
+
"aria-hidden": "true",
|
|
151
|
+
children: " *"
|
|
152
|
+
})]
|
|
153
|
+
}),
|
|
154
|
+
/* @__PURE__ */ t(f, { className: V.input }),
|
|
155
|
+
/* @__PURE__ */ t(r, {
|
|
156
|
+
slot: "decrement",
|
|
157
|
+
className: V.stepper,
|
|
158
|
+
children: "−"
|
|
159
|
+
}),
|
|
160
|
+
/* @__PURE__ */ t(r, {
|
|
161
|
+
slot: "increment",
|
|
162
|
+
className: V.stepper,
|
|
163
|
+
children: "+"
|
|
164
|
+
})
|
|
165
|
+
]
|
|
166
|
+
}),
|
|
167
|
+
i && /* @__PURE__ */ t(M, {
|
|
168
|
+
slot: "description",
|
|
169
|
+
className: V.description,
|
|
170
|
+
children: i
|
|
171
|
+
}),
|
|
172
|
+
/* @__PURE__ */ t(l, {
|
|
173
|
+
className: V.error,
|
|
174
|
+
children: a
|
|
175
|
+
})
|
|
176
|
+
]
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
var be = { icon: "_icon_1xold_1" }, xe = {
|
|
131
180
|
"chevron-down": "m6 9 6 6 6-6",
|
|
132
181
|
"chevron-right": "m9 6 6 6-6 6",
|
|
133
182
|
"arrow-left": "m12 19-7-7 7-7M5 12h14",
|
|
@@ -148,25 +197,25 @@ function H({ name: e, className: n, ...r }) {
|
|
|
148
197
|
strokeWidth: "2",
|
|
149
198
|
strokeLinecap: "round",
|
|
150
199
|
strokeLinejoin: "round",
|
|
151
|
-
className: L(
|
|
200
|
+
className: L(be.icon, n),
|
|
152
201
|
"aria-hidden": "true",
|
|
153
202
|
focusable: "false",
|
|
154
|
-
children: /* @__PURE__ */ t("path", { d:
|
|
203
|
+
children: /* @__PURE__ */ t("path", { d: xe[e] })
|
|
155
204
|
});
|
|
156
205
|
}
|
|
157
206
|
//#endregion
|
|
158
207
|
//#region src/components/forms/select.tsx
|
|
159
|
-
function
|
|
160
|
-
return /* @__PURE__ */ n(
|
|
208
|
+
function Se({ label: e, options: i, description: a, error: o, placeholder: s = "Select an option", appearance: c = "filled", className: u, ...d }) {
|
|
209
|
+
return /* @__PURE__ */ n(O, {
|
|
161
210
|
...d,
|
|
162
211
|
isInvalid: !!o || d.isInvalid,
|
|
163
212
|
className: L(V.field, u),
|
|
164
213
|
placeholder: s,
|
|
165
|
-
"data-appearance":
|
|
214
|
+
"data-appearance": c,
|
|
166
215
|
children: [
|
|
167
216
|
/* @__PURE__ */ n("div", {
|
|
168
|
-
className: V.surface,
|
|
169
|
-
children: [/* @__PURE__ */ n(
|
|
217
|
+
className: L(V.surface, V.selectSurface),
|
|
218
|
+
children: [/* @__PURE__ */ n(p, {
|
|
170
219
|
className: V.floatingLabel,
|
|
171
220
|
children: [e, d.isRequired && /* @__PURE__ */ t("span", {
|
|
172
221
|
"aria-hidden": "true",
|
|
@@ -174,24 +223,24 @@ function he({ label: e, options: i, description: a, error: o, placeholder: s = "
|
|
|
174
223
|
})]
|
|
175
224
|
}), /* @__PURE__ */ n(r, {
|
|
176
225
|
className: V.selectButton,
|
|
177
|
-
children: [/* @__PURE__ */ t(
|
|
226
|
+
children: [/* @__PURE__ */ t(k, { className: V.selectValue }), /* @__PURE__ */ t(H, { name: "chevron-down" })]
|
|
178
227
|
})]
|
|
179
228
|
}),
|
|
180
|
-
a && /* @__PURE__ */ t(
|
|
229
|
+
a && /* @__PURE__ */ t(M, {
|
|
181
230
|
slot: "description",
|
|
182
231
|
className: V.description,
|
|
183
232
|
children: a
|
|
184
233
|
}),
|
|
185
|
-
/* @__PURE__ */ t(
|
|
234
|
+
/* @__PURE__ */ t(l, {
|
|
186
235
|
className: V.error,
|
|
187
236
|
children: o
|
|
188
237
|
}),
|
|
189
|
-
/* @__PURE__ */ t(
|
|
238
|
+
/* @__PURE__ */ t(w, {
|
|
190
239
|
className: V.popover,
|
|
191
|
-
children: /* @__PURE__ */ t(
|
|
240
|
+
children: /* @__PURE__ */ t(h, {
|
|
192
241
|
items: i,
|
|
193
242
|
className: V.list,
|
|
194
|
-
children: (e) => /* @__PURE__ */ t(
|
|
243
|
+
children: (e) => /* @__PURE__ */ t(g, {
|
|
195
244
|
id: e.id,
|
|
196
245
|
textValue: e.label,
|
|
197
246
|
isDisabled: e.isDisabled,
|
|
@@ -203,27 +252,33 @@ function he({ label: e, options: i, description: a, error: o, placeholder: s = "
|
|
|
203
252
|
]
|
|
204
253
|
});
|
|
205
254
|
}
|
|
206
|
-
function
|
|
207
|
-
return /* @__PURE__ */
|
|
255
|
+
function Ce(e) {
|
|
256
|
+
return /* @__PURE__ */ t(Se, {
|
|
257
|
+
...e,
|
|
258
|
+
selectionMode: "multiple"
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
function we({ label: e, options: i, description: a, error: s, placeholder: c = "Search…", appearance: d = "filled", className: m, ..._ }) {
|
|
262
|
+
return /* @__PURE__ */ n(o, {
|
|
208
263
|
..._,
|
|
209
264
|
defaultItems: i,
|
|
210
265
|
isInvalid: !!s || _.isInvalid,
|
|
211
|
-
className: L(V.field,
|
|
212
|
-
"data-appearance":
|
|
266
|
+
className: L(V.field, m),
|
|
267
|
+
"data-appearance": d,
|
|
213
268
|
children: [
|
|
214
269
|
/* @__PURE__ */ n("div", {
|
|
215
270
|
className: V.surface,
|
|
216
|
-
children: [/* @__PURE__ */ n(
|
|
271
|
+
children: [/* @__PURE__ */ n(p, {
|
|
217
272
|
className: V.floatingLabel,
|
|
218
273
|
children: [e, _.isRequired && /* @__PURE__ */ t("span", {
|
|
219
274
|
"aria-hidden": "true",
|
|
220
275
|
children: " *"
|
|
221
276
|
})]
|
|
222
|
-
}), /* @__PURE__ */ n(
|
|
277
|
+
}), /* @__PURE__ */ n(u, {
|
|
223
278
|
className: V.combo,
|
|
224
|
-
children: [/* @__PURE__ */ t(
|
|
279
|
+
children: [/* @__PURE__ */ t(f, {
|
|
225
280
|
className: V.input,
|
|
226
|
-
placeholder:
|
|
281
|
+
placeholder: c
|
|
227
282
|
}), /* @__PURE__ */ t(r, {
|
|
228
283
|
className: V.comboButton,
|
|
229
284
|
"aria-label": `Show ${e.toLowerCase()} options`,
|
|
@@ -231,21 +286,21 @@ function ge({ label: e, options: i, description: o, error: s, placeholder: u = "
|
|
|
231
286
|
})]
|
|
232
287
|
})]
|
|
233
288
|
}),
|
|
234
|
-
|
|
289
|
+
a && /* @__PURE__ */ t(M, {
|
|
235
290
|
slot: "description",
|
|
236
291
|
className: V.description,
|
|
237
|
-
children:
|
|
292
|
+
children: a
|
|
238
293
|
}),
|
|
239
|
-
/* @__PURE__ */ t(
|
|
294
|
+
/* @__PURE__ */ t(l, {
|
|
240
295
|
className: V.error,
|
|
241
296
|
children: s
|
|
242
297
|
}),
|
|
243
|
-
/* @__PURE__ */ t(
|
|
298
|
+
/* @__PURE__ */ t(w, {
|
|
244
299
|
className: V.popover,
|
|
245
|
-
children: /* @__PURE__ */ t(
|
|
300
|
+
children: /* @__PURE__ */ t(h, {
|
|
246
301
|
className: V.list,
|
|
247
302
|
renderEmptyState: () => "No results",
|
|
248
|
-
children: (e) => /* @__PURE__ */ t(
|
|
303
|
+
children: (e) => /* @__PURE__ */ t(g, {
|
|
249
304
|
id: e.id,
|
|
250
305
|
textValue: e.label,
|
|
251
306
|
isDisabled: e.isDisabled,
|
|
@@ -259,7 +314,7 @@ function ge({ label: e, options: i, description: o, error: s, placeholder: u = "
|
|
|
259
314
|
}
|
|
260
315
|
//#endregion
|
|
261
316
|
//#region src/components/forms/controls.tsx
|
|
262
|
-
function
|
|
317
|
+
function Te({ children: r, className: a, ...o }) {
|
|
263
318
|
return /* @__PURE__ */ t(i, {
|
|
264
319
|
...o,
|
|
265
320
|
className: L(V.control, a),
|
|
@@ -277,18 +332,44 @@ function _e({ children: r, className: a, ...o }) {
|
|
|
277
332
|
}), r] })
|
|
278
333
|
});
|
|
279
334
|
}
|
|
280
|
-
function
|
|
281
|
-
return /* @__PURE__ */ n(
|
|
335
|
+
function Ee({ label: e, children: r, description: i, error: o, className: s, ...c }) {
|
|
336
|
+
return /* @__PURE__ */ n(a, {
|
|
337
|
+
...c,
|
|
338
|
+
isInvalid: !!o || c.isInvalid,
|
|
339
|
+
className: L(V.field, s),
|
|
340
|
+
children: [
|
|
341
|
+
/* @__PURE__ */ n(p, {
|
|
342
|
+
className: V.label,
|
|
343
|
+
children: [e, c.isRequired && /* @__PURE__ */ t("span", {
|
|
344
|
+
"aria-hidden": "true",
|
|
345
|
+
children: " *"
|
|
346
|
+
})]
|
|
347
|
+
}),
|
|
348
|
+
r,
|
|
349
|
+
i && /* @__PURE__ */ t(M, {
|
|
350
|
+
slot: "description",
|
|
351
|
+
className: V.description,
|
|
352
|
+
children: i
|
|
353
|
+
}),
|
|
354
|
+
/* @__PURE__ */ t(l, {
|
|
355
|
+
className: V.error,
|
|
356
|
+
children: o
|
|
357
|
+
})
|
|
358
|
+
]
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
function De({ label: e, children: r, className: i, ...a }) {
|
|
362
|
+
return /* @__PURE__ */ n(D, {
|
|
282
363
|
...a,
|
|
283
364
|
className: L(V.field, i),
|
|
284
|
-
children: [/* @__PURE__ */ t(
|
|
365
|
+
children: [/* @__PURE__ */ t(p, {
|
|
285
366
|
className: V.label,
|
|
286
367
|
children: e
|
|
287
368
|
}), r]
|
|
288
369
|
});
|
|
289
370
|
}
|
|
290
|
-
function
|
|
291
|
-
return /* @__PURE__ */ n(
|
|
371
|
+
function Oe({ children: e, className: r, ...i }) {
|
|
372
|
+
return /* @__PURE__ */ n(E, {
|
|
292
373
|
...i,
|
|
293
374
|
className: L(V.control, r),
|
|
294
375
|
children: [/* @__PURE__ */ t("span", {
|
|
@@ -297,8 +378,8 @@ function ye({ children: e, className: r, ...i }) {
|
|
|
297
378
|
}), e]
|
|
298
379
|
});
|
|
299
380
|
}
|
|
300
|
-
function
|
|
301
|
-
return /* @__PURE__ */ t(
|
|
381
|
+
function ke({ children: r, className: i, ...a }) {
|
|
382
|
+
return /* @__PURE__ */ t(j, {
|
|
302
383
|
...a,
|
|
303
384
|
className: L(V.control, i),
|
|
304
385
|
children: ({ isSelected: i }) => /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
|
|
@@ -331,43 +412,43 @@ var U = {
|
|
|
331
412
|
};
|
|
332
413
|
//#endregion
|
|
333
414
|
//#region src/components/donut-slider/donut-slider.tsx
|
|
334
|
-
function
|
|
415
|
+
function Ae(e, t, n, r) {
|
|
335
416
|
let i = Number((Math.round(e / t) * t).toFixed(12));
|
|
336
417
|
return Math.min(r ?? Infinity, Math.max(n ?? -Infinity, i));
|
|
337
418
|
}
|
|
338
|
-
function
|
|
419
|
+
function je(e) {
|
|
339
420
|
let t = e.currentTarget.getBoundingClientRect();
|
|
340
421
|
return (Math.atan2(e.clientX - t.left - t.width / 2, -(e.clientY - t.top - t.height / 2)) * 180 / Math.PI + 360) % 360;
|
|
341
422
|
}
|
|
342
|
-
function
|
|
423
|
+
function Me({ label: e, value: r, defaultValue: i = 0, onChange: a, valuePerTurn: o = 100, step: s = 1, min: c, max: l, unit: u = "", size: d = 220, displayDecimals: f = 0, isDisabled: p = !1, className: m }) {
|
|
343
424
|
let [h, g] = I(i), [_, v] = I(!1), y = F(null), b = F(null);
|
|
344
425
|
if (!Number.isFinite(o) || o <= 0 || !Number.isFinite(s) || s <= 0) throw RangeError("DonutSlider requires positive, finite step and valuePerTurn values.");
|
|
345
426
|
if (c !== void 0 && l !== void 0 && c > l) throw RangeError("DonutSlider min must not exceed max.");
|
|
346
427
|
if (!Number.isFinite(d) || d < 16) throw RangeError("DonutSlider requires a finite size of at least 16 pixels.");
|
|
347
|
-
let x =
|
|
428
|
+
let x = Ae(r ?? h, s, c, l), S = (x / o % 1 + 1) % 1, C = (S * 360 - 90) * Math.PI / 180, w = Math.round(d * .14), T = d / 2, E = T - w / 2 - 4, D = 2 * Math.PI * E, O = x.toFixed(Math.min(20, Math.max(0, Math.trunc(f))));
|
|
348
429
|
function k(e) {
|
|
349
|
-
let t =
|
|
430
|
+
let t = Ae(e, s, c, l);
|
|
350
431
|
t !== x && (r === void 0 && g(t), a?.(t));
|
|
351
432
|
}
|
|
352
433
|
function A(e) {
|
|
353
434
|
if (p || e.button !== 0 || y.current) return;
|
|
354
|
-
let t =
|
|
435
|
+
let t = je(e), n = Math.round(x / o - t / 360);
|
|
355
436
|
y.current = {
|
|
356
437
|
pointerId: e.pointerId,
|
|
357
438
|
lastAngle: t,
|
|
358
439
|
turn: n
|
|
359
440
|
}, e.currentTarget.setPointerCapture(e.pointerId), b.current?.focus(), v(!0), k((n + t / 360) * o), e.preventDefault();
|
|
360
441
|
}
|
|
361
|
-
function
|
|
442
|
+
function ee(e) {
|
|
362
443
|
let t = y.current;
|
|
363
444
|
if (p || !t || e.pointerId !== t.pointerId) return;
|
|
364
|
-
let n =
|
|
445
|
+
let n = je(e);
|
|
365
446
|
t.lastAngle > 270 && n < 90 ? t.turn += 1 : t.lastAngle < 90 && n > 270 && --t.turn, t.lastAngle = n, k((t.turn + n / 360) * o), e.preventDefault();
|
|
366
447
|
}
|
|
367
|
-
function
|
|
448
|
+
function j(e) {
|
|
368
449
|
e.pointerId === y.current?.pointerId && (y.current = null, v(!1), e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
|
|
369
450
|
}
|
|
370
|
-
function
|
|
451
|
+
function te(e) {
|
|
371
452
|
if (p) return;
|
|
372
453
|
let t;
|
|
373
454
|
switch (e.key) {
|
|
@@ -411,16 +492,16 @@ function xe({ label: e, value: r, defaultValue: i = 0, onChange: a, valuePerTurn
|
|
|
411
492
|
"data-dragging": _ || void 0,
|
|
412
493
|
"data-disabled": p || void 0,
|
|
413
494
|
style: { "--dial-size": `${d}px` },
|
|
414
|
-
onKeyDown:
|
|
495
|
+
onKeyDown: te,
|
|
415
496
|
children: [/* @__PURE__ */ n("svg", {
|
|
416
497
|
viewBox: `0 0 ${d} ${d}`,
|
|
417
498
|
className: U.svg,
|
|
418
499
|
"aria-hidden": "true",
|
|
419
500
|
onPointerDown: A,
|
|
420
|
-
onPointerMove:
|
|
421
|
-
onPointerUp:
|
|
422
|
-
onPointerCancel:
|
|
423
|
-
onLostPointerCapture:
|
|
501
|
+
onPointerMove: ee,
|
|
502
|
+
onPointerUp: j,
|
|
503
|
+
onPointerCancel: j,
|
|
504
|
+
onLostPointerCapture: j,
|
|
424
505
|
children: [
|
|
425
506
|
/* @__PURE__ */ t("circle", {
|
|
426
507
|
cx: T,
|
|
@@ -461,100 +542,105 @@ function xe({ label: e, value: r, defaultValue: i = 0, onChange: a, valuePerTurn
|
|
|
461
542
|
})]
|
|
462
543
|
});
|
|
463
544
|
}
|
|
464
|
-
var
|
|
465
|
-
popover: "
|
|
466
|
-
menu: "
|
|
467
|
-
item: "
|
|
468
|
-
submenuIcon: "
|
|
469
|
-
separator: "
|
|
545
|
+
var W = {
|
|
546
|
+
popover: "_popover_1065i_1",
|
|
547
|
+
menu: "_menu_1065i_14",
|
|
548
|
+
item: "_item_1065i_22",
|
|
549
|
+
submenuIcon: "_submenuIcon_1065i_47",
|
|
550
|
+
separator: "_separator_1065i_50"
|
|
470
551
|
};
|
|
471
552
|
//#endregion
|
|
472
553
|
//#region src/components/menu/menu.tsx
|
|
473
|
-
function
|
|
474
|
-
return /* @__PURE__ */ t(
|
|
554
|
+
function Ne({ className: e, ...n }) {
|
|
555
|
+
return /* @__PURE__ */ t(_, {
|
|
475
556
|
...n,
|
|
476
|
-
className: L(
|
|
557
|
+
className: L(W.menu, e)
|
|
477
558
|
});
|
|
478
559
|
}
|
|
479
|
-
function
|
|
480
|
-
return /* @__PURE__ */ t(
|
|
560
|
+
function Pe({ className: r, tone: i = "default", children: a, ...o }) {
|
|
561
|
+
return /* @__PURE__ */ t(v, {
|
|
481
562
|
...o,
|
|
482
563
|
textValue: o.textValue ?? (typeof a == "string" ? a : void 0),
|
|
483
|
-
className: L(
|
|
564
|
+
className: L(W.item, r),
|
|
484
565
|
"data-tone": i,
|
|
485
566
|
children: ({ hasSubmenu: r }) => /* @__PURE__ */ n(e, { children: [a, r && /* @__PURE__ */ t(H, {
|
|
486
567
|
name: "chevron-right",
|
|
487
|
-
className:
|
|
568
|
+
className: W.submenuIcon
|
|
488
569
|
})] })
|
|
489
570
|
});
|
|
490
571
|
}
|
|
491
|
-
function
|
|
492
|
-
return /* @__PURE__ */ t(
|
|
572
|
+
function Fe({ className: e, ...n }) {
|
|
573
|
+
return /* @__PURE__ */ t(w, {
|
|
493
574
|
...n,
|
|
494
|
-
className: L(
|
|
575
|
+
className: L(W.popover, e)
|
|
495
576
|
});
|
|
496
577
|
}
|
|
497
|
-
function
|
|
498
|
-
return /* @__PURE__ */ t(
|
|
578
|
+
function Ie() {
|
|
579
|
+
return /* @__PURE__ */ t(A, { className: W.separator });
|
|
499
580
|
}
|
|
500
|
-
var
|
|
581
|
+
var G = {
|
|
501
582
|
group: "_group_zvomd_1",
|
|
502
583
|
primary: "_primary_zvomd_6",
|
|
503
584
|
trigger: "_trigger_zvomd_10"
|
|
504
585
|
};
|
|
505
586
|
//#endregion
|
|
506
587
|
//#region src/components/split-button/split-button.tsx
|
|
507
|
-
function
|
|
588
|
+
function Le({ label: e, icon: r, menuLabel: i = "More actions", children: a, className: o, ...s }) {
|
|
508
589
|
return /* @__PURE__ */ n("div", {
|
|
509
|
-
className: L(
|
|
590
|
+
className: L(G.group, o),
|
|
510
591
|
children: [/* @__PURE__ */ n(B, {
|
|
511
592
|
...s,
|
|
512
|
-
className:
|
|
593
|
+
className: G.primary,
|
|
513
594
|
children: [r, e]
|
|
514
|
-
}), /* @__PURE__ */ n(
|
|
595
|
+
}), /* @__PURE__ */ n(b, { children: [/* @__PURE__ */ t(B, {
|
|
515
596
|
tone: s.tone,
|
|
516
597
|
background: s.background,
|
|
517
598
|
isDisabled: s.isDisabled,
|
|
518
|
-
className:
|
|
599
|
+
className: G.trigger,
|
|
519
600
|
"aria-label": i,
|
|
520
601
|
children: /* @__PURE__ */ t(H, { name: "chevron-down" })
|
|
521
|
-
}), /* @__PURE__ */ t(
|
|
602
|
+
}), /* @__PURE__ */ t(Fe, {
|
|
522
603
|
placement: "bottom end",
|
|
523
|
-
children: /* @__PURE__ */ t(
|
|
604
|
+
children: /* @__PURE__ */ t(Ne, {
|
|
524
605
|
"aria-label": i,
|
|
525
606
|
children: a
|
|
526
607
|
})
|
|
527
608
|
})] })]
|
|
528
609
|
});
|
|
529
610
|
}
|
|
530
|
-
var
|
|
531
|
-
overlay: "
|
|
532
|
-
modal: "
|
|
533
|
-
dialog: "
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
611
|
+
var K = {
|
|
612
|
+
overlay: "_overlay_1i4r0_1",
|
|
613
|
+
modal: "_modal_1i4r0_14",
|
|
614
|
+
dialog: "_dialog_1i4r0_35",
|
|
615
|
+
body: "_body_1i4r0_44",
|
|
616
|
+
header: "_header_1i4r0_51",
|
|
617
|
+
footer: "_footer_1i4r0_52",
|
|
618
|
+
title: "_title_1i4r0_74",
|
|
619
|
+
description: "_description_1i4r0_79"
|
|
537
620
|
};
|
|
538
621
|
//#endregion
|
|
539
622
|
//#region src/components/dialog/dialog.tsx
|
|
540
|
-
function
|
|
541
|
-
let
|
|
542
|
-
return /* @__PURE__ */ t(
|
|
543
|
-
...
|
|
544
|
-
isDismissable:
|
|
545
|
-
className:
|
|
546
|
-
children: /* @__PURE__ */ t(
|
|
547
|
-
className:
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
623
|
+
function Re({ title: r, description: i, children: a, role: o = "dialog", className: c, size: l = "medium", maxWidth: u, footer: f, isDismissable: p = !0, ...m }) {
|
|
624
|
+
let h = P();
|
|
625
|
+
return /* @__PURE__ */ t(S, {
|
|
626
|
+
...m,
|
|
627
|
+
isDismissable: p,
|
|
628
|
+
className: K.overlay,
|
|
629
|
+
children: /* @__PURE__ */ t(x, {
|
|
630
|
+
className: K.modal,
|
|
631
|
+
"data-size": l,
|
|
632
|
+
style: { maxWidth: u },
|
|
633
|
+
children: /* @__PURE__ */ t(s, {
|
|
634
|
+
role: o,
|
|
635
|
+
"aria-describedby": i ? h : void 0,
|
|
636
|
+
className: L(K.dialog, c),
|
|
637
|
+
"data-layout": f ? "fixed-footer" : void 0,
|
|
552
638
|
children: ({ close: o }) => /* @__PURE__ */ n(e, { children: [
|
|
553
639
|
/* @__PURE__ */ n("header", {
|
|
554
|
-
className:
|
|
555
|
-
children: [/* @__PURE__ */ t(
|
|
640
|
+
className: K.header,
|
|
641
|
+
children: [/* @__PURE__ */ t(d, {
|
|
556
642
|
slot: "title",
|
|
557
|
-
className:
|
|
643
|
+
className: K.title,
|
|
558
644
|
children: r
|
|
559
645
|
}), /* @__PURE__ */ t(B, {
|
|
560
646
|
variant: "icon",
|
|
@@ -563,31 +649,37 @@ function Ee({ title: r, description: i, children: a, role: s = "dialog", classNa
|
|
|
563
649
|
children: /* @__PURE__ */ t(H, { name: "close" })
|
|
564
650
|
})]
|
|
565
651
|
}),
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
652
|
+
/* @__PURE__ */ n("div", {
|
|
653
|
+
className: K.body,
|
|
654
|
+
children: [i && /* @__PURE__ */ t("p", {
|
|
655
|
+
id: h,
|
|
656
|
+
className: K.description,
|
|
657
|
+
children: i
|
|
658
|
+
}), typeof a == "function" ? a({ close: o }) : a]
|
|
570
659
|
}),
|
|
571
|
-
|
|
660
|
+
f && /* @__PURE__ */ t("footer", {
|
|
661
|
+
className: K.footer,
|
|
662
|
+
children: typeof f == "function" ? f({ close: o }) : f
|
|
663
|
+
})
|
|
572
664
|
] })
|
|
573
665
|
})
|
|
574
666
|
})
|
|
575
667
|
});
|
|
576
668
|
}
|
|
577
|
-
var
|
|
669
|
+
var ze = { tooltip: "_tooltip_trnx2_1" };
|
|
578
670
|
//#endregion
|
|
579
671
|
//#region src/components/tooltip/tooltip.tsx
|
|
580
|
-
function
|
|
581
|
-
return /* @__PURE__ */ n(
|
|
672
|
+
function Be({ children: e, content: r, placement: i = "top", delay: a = 500 }) {
|
|
673
|
+
return /* @__PURE__ */ n(ce, {
|
|
582
674
|
delay: a,
|
|
583
|
-
children: [e, /* @__PURE__ */ t(
|
|
584
|
-
className:
|
|
675
|
+
children: [e, /* @__PURE__ */ t(se, {
|
|
676
|
+
className: ze.tooltip,
|
|
585
677
|
placement: i,
|
|
586
678
|
children: r
|
|
587
679
|
})]
|
|
588
680
|
});
|
|
589
681
|
}
|
|
590
|
-
var
|
|
682
|
+
var q = {
|
|
591
683
|
container: "_container_kj4bs_1",
|
|
592
684
|
scroll: "_scroll_kj4bs_12",
|
|
593
685
|
table: "_table_kj4bs_15",
|
|
@@ -600,8 +692,8 @@ var X = {
|
|
|
600
692
|
};
|
|
601
693
|
//#endregion
|
|
602
694
|
//#region src/components/table/data-table.tsx
|
|
603
|
-
function
|
|
604
|
-
let [f, p] = I(null), [m, h] = I(0), g =
|
|
695
|
+
function Ve({ caption: e, rows: r, columns: i, getRowKey: a, pageSize: o = 10, selectedKey: s = null, onSelectionChange: c, getRowLabel: l, emptyMessage: u = "No results found.", className: d }) {
|
|
696
|
+
let [f, p] = I(null), [m, h] = I(0), g = P(), _ = Math.max(1, Math.trunc(o)), v = Math.max(1, Math.ceil(r.length / _)), y = Math.min(m, v - 1), b = i.find((e) => e.id === f?.column)?.compare, x = (b && f ? [...r].sort((e, t) => b(e, t) * (f.direction === "ascending" ? 1 : -1)) : r).slice(y * _, (y + 1) * _);
|
|
605
697
|
function S(e) {
|
|
606
698
|
p((t) => t?.column === e ? t.direction === "ascending" ? {
|
|
607
699
|
column: e,
|
|
@@ -612,25 +704,25 @@ function ke({ caption: e, rows: r, columns: i, getRowKey: a, pageSize: o = 10, s
|
|
|
612
704
|
}), h(0);
|
|
613
705
|
}
|
|
614
706
|
return /* @__PURE__ */ n("div", {
|
|
615
|
-
className: L(
|
|
707
|
+
className: L(q.container, d),
|
|
616
708
|
children: [
|
|
617
709
|
/* @__PURE__ */ t("div", {
|
|
618
|
-
className:
|
|
710
|
+
className: q.scroll,
|
|
619
711
|
children: /* @__PURE__ */ n("table", {
|
|
620
|
-
className:
|
|
712
|
+
className: q.table,
|
|
621
713
|
"aria-describedby": x.length === 0 ? g : void 0,
|
|
622
714
|
children: [
|
|
623
715
|
/* @__PURE__ */ t("caption", {
|
|
624
|
-
className:
|
|
716
|
+
className: q.caption,
|
|
625
717
|
children: /* @__PURE__ */ t("span", {
|
|
626
|
-
className:
|
|
718
|
+
className: q.captionText,
|
|
627
719
|
children: e
|
|
628
720
|
})
|
|
629
721
|
}),
|
|
630
722
|
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ n("tr", { children: [c && /* @__PURE__ */ t("th", {
|
|
631
723
|
scope: "col",
|
|
632
724
|
children: /* @__PURE__ */ t("span", {
|
|
633
|
-
className:
|
|
725
|
+
className: q.srOnly,
|
|
634
726
|
children: "Selection"
|
|
635
727
|
})
|
|
636
728
|
}), i.map((e) => /* @__PURE__ */ t("th", {
|
|
@@ -638,7 +730,7 @@ function ke({ caption: e, rows: r, columns: i, getRowKey: a, pageSize: o = 10, s
|
|
|
638
730
|
"data-align": e.align,
|
|
639
731
|
"aria-sort": e.compare ? f?.column === e.id ? f.direction : "none" : void 0,
|
|
640
732
|
children: e.compare ? /* @__PURE__ */ n("button", {
|
|
641
|
-
className:
|
|
733
|
+
className: q.sort,
|
|
642
734
|
onClick: () => S(e.id),
|
|
643
735
|
children: [e.label, /* @__PURE__ */ t(H, { name: f?.column === e.id ? f.direction === "ascending" ? "arrow-up" : "arrow-down" : "sort" })]
|
|
644
736
|
}) : e.label
|
|
@@ -664,12 +756,12 @@ function ke({ caption: e, rows: r, columns: i, getRowKey: a, pageSize: o = 10, s
|
|
|
664
756
|
}),
|
|
665
757
|
x.length === 0 && /* @__PURE__ */ t("p", {
|
|
666
758
|
id: g,
|
|
667
|
-
className:
|
|
759
|
+
className: q.empty,
|
|
668
760
|
children: u
|
|
669
761
|
}),
|
|
670
762
|
/* @__PURE__ */ n("nav", {
|
|
671
763
|
"aria-label": `${e} pagination`,
|
|
672
|
-
className:
|
|
764
|
+
className: q.pagination,
|
|
673
765
|
children: [
|
|
674
766
|
/* @__PURE__ */ n("span", { children: [
|
|
675
767
|
r.length === 0 ? 0 : y * _ + 1,
|
|
@@ -703,7 +795,7 @@ function ke({ caption: e, rows: r, columns: i, getRowKey: a, pageSize: o = 10, s
|
|
|
703
795
|
]
|
|
704
796
|
});
|
|
705
797
|
}
|
|
706
|
-
var
|
|
798
|
+
var J = {
|
|
707
799
|
alert: "_alert_1b9pw_1",
|
|
708
800
|
title: "_title_1b9pw_30",
|
|
709
801
|
region: "_region_1b9pw_34",
|
|
@@ -711,22 +803,22 @@ var Z = {
|
|
|
711
803
|
};
|
|
712
804
|
//#endregion
|
|
713
805
|
//#region src/components/notifications/notifications.tsx
|
|
714
|
-
function
|
|
806
|
+
function He({ tone: e = "info", title: r, children: i, className: a, role: o, ...s }) {
|
|
715
807
|
return /* @__PURE__ */ t("div", {
|
|
716
808
|
...s,
|
|
717
809
|
role: o ?? (e === "error" ? "alert" : "status"),
|
|
718
|
-
className: L(
|
|
810
|
+
className: L(J.alert, a),
|
|
719
811
|
"data-tone": e,
|
|
720
812
|
children: /* @__PURE__ */ n("div", { children: [r && /* @__PURE__ */ t("strong", {
|
|
721
|
-
className:
|
|
813
|
+
className: J.title,
|
|
722
814
|
children: r
|
|
723
815
|
}), i] })
|
|
724
816
|
});
|
|
725
817
|
}
|
|
726
|
-
var
|
|
727
|
-
function
|
|
818
|
+
var Ue = le(null);
|
|
819
|
+
function We({ notification: e, dismiss: r }) {
|
|
728
820
|
let [i, a] = I(!1), [o, s] = I(!1), c = F(e.duration);
|
|
729
|
-
return
|
|
821
|
+
return de(() => {
|
|
730
822
|
if (i || o || e.duration <= 0) return;
|
|
731
823
|
let t = Date.now(), n = setTimeout(() => r(e.id), Math.max(0, c.current));
|
|
732
824
|
return () => {
|
|
@@ -739,7 +831,7 @@ function Me({ notification: e, dismiss: r }) {
|
|
|
739
831
|
e.id,
|
|
740
832
|
r
|
|
741
833
|
]), /* @__PURE__ */ n("div", {
|
|
742
|
-
className:
|
|
834
|
+
className: J.alert,
|
|
743
835
|
"data-tone": e.tone,
|
|
744
836
|
role: e.tone === "error" ? "alert" : "status",
|
|
745
837
|
onMouseEnter: () => a(!0),
|
|
@@ -749,18 +841,18 @@ function Me({ notification: e, dismiss: r }) {
|
|
|
749
841
|
e.currentTarget.contains(e.relatedTarget) || s(!1);
|
|
750
842
|
},
|
|
751
843
|
children: [/* @__PURE__ */ n("div", { children: [e.title && /* @__PURE__ */ t("strong", {
|
|
752
|
-
className:
|
|
844
|
+
className: J.title,
|
|
753
845
|
children: e.title
|
|
754
846
|
}), e.message] }), /* @__PURE__ */ t("button", {
|
|
755
|
-
className:
|
|
847
|
+
className: J.dismiss,
|
|
756
848
|
onClick: () => r(e.id),
|
|
757
849
|
"aria-label": "Dismiss notification",
|
|
758
850
|
children: /* @__PURE__ */ t(H, { name: "close" })
|
|
759
851
|
})]
|
|
760
852
|
});
|
|
761
853
|
}
|
|
762
|
-
function
|
|
763
|
-
let [i, a] = I([]), o = F(0), s =
|
|
854
|
+
function Ge({ children: e, defaultDuration: r = 4e3 }) {
|
|
855
|
+
let [i, a] = I([]), o = F(0), s = N((e) => a((t) => t.filter((t) => t.id !== e)), []), c = N(() => a([]), []), l = N((e, t, n = {}) => {
|
|
764
856
|
let i = ++o.current;
|
|
765
857
|
return a((a) => [...a, {
|
|
766
858
|
...n,
|
|
@@ -769,7 +861,7 @@ function Ne({ children: e, defaultDuration: r = 4e3 }) {
|
|
|
769
861
|
message: t,
|
|
770
862
|
duration: n.duration ?? r
|
|
771
863
|
}]), i;
|
|
772
|
-
}, [r]), u =
|
|
864
|
+
}, [r]), u = fe(() => ({
|
|
773
865
|
info: (e, t) => l("info", e, t),
|
|
774
866
|
success: (e, t) => l("success", e, t),
|
|
775
867
|
warn: (e, t) => l("warn", e, t),
|
|
@@ -781,25 +873,25 @@ function Ne({ children: e, defaultDuration: r = 4e3 }) {
|
|
|
781
873
|
s,
|
|
782
874
|
c
|
|
783
875
|
]);
|
|
784
|
-
return /* @__PURE__ */ n(
|
|
876
|
+
return /* @__PURE__ */ n(Ue, {
|
|
785
877
|
value: u,
|
|
786
|
-
children: [e, i.length > 0 && typeof document < "u" &&
|
|
787
|
-
className:
|
|
878
|
+
children: [e, i.length > 0 && typeof document < "u" && pe(/* @__PURE__ */ t("section", {
|
|
879
|
+
className: J.region,
|
|
788
880
|
"aria-label": "Notifications",
|
|
789
881
|
"data-react-aria-top-layer": !0,
|
|
790
|
-
children: i.map((e) => /* @__PURE__ */ t(
|
|
882
|
+
children: i.map((e) => /* @__PURE__ */ t(We, {
|
|
791
883
|
notification: e,
|
|
792
884
|
dismiss: s
|
|
793
885
|
}, e.id))
|
|
794
886
|
}), document.body)]
|
|
795
887
|
});
|
|
796
888
|
}
|
|
797
|
-
function
|
|
798
|
-
let e =
|
|
889
|
+
function Ke() {
|
|
890
|
+
let e = ue(Ue);
|
|
799
891
|
if (!e) throw Error("useNotifications must be used within NotificationsProvider.");
|
|
800
892
|
return e;
|
|
801
893
|
}
|
|
802
|
-
var
|
|
894
|
+
var Y = {
|
|
803
895
|
bars: "_bars_10i45_1",
|
|
804
896
|
stretch: "_stretch_10i45_1",
|
|
805
897
|
spinner: "_spinner_10i45_26",
|
|
@@ -811,12 +903,12 @@ var Q = {
|
|
|
811
903
|
};
|
|
812
904
|
//#endregion
|
|
813
905
|
//#region src/components/loader/loader.tsx
|
|
814
|
-
function
|
|
906
|
+
function qe({ label: e = "Loading", color: n, className: r }) {
|
|
815
907
|
return /* @__PURE__ */ t("div", {
|
|
816
908
|
role: "progressbar",
|
|
817
909
|
"aria-label": e,
|
|
818
910
|
"aria-busy": "true",
|
|
819
|
-
className: L(
|
|
911
|
+
className: L(Y.bars, r),
|
|
820
912
|
style: { "--bt-bar-loader-color": n },
|
|
821
913
|
children: [
|
|
822
914
|
0,
|
|
@@ -827,29 +919,29 @@ function Fe({ label: e = "Loading", color: n, className: r }) {
|
|
|
827
919
|
].map((e) => /* @__PURE__ */ t("span", { "aria-hidden": "true" }, e))
|
|
828
920
|
});
|
|
829
921
|
}
|
|
830
|
-
function
|
|
922
|
+
function Je({ label: e = "Loading", className: n }) {
|
|
831
923
|
return /* @__PURE__ */ t("div", {
|
|
832
924
|
role: "progressbar",
|
|
833
925
|
"aria-label": e,
|
|
834
926
|
"aria-busy": "true",
|
|
835
|
-
className: L(
|
|
927
|
+
className: L(Y.spinner, n)
|
|
836
928
|
});
|
|
837
929
|
}
|
|
838
|
-
function
|
|
839
|
-
return /* @__PURE__ */ t(
|
|
930
|
+
function Ye({ label: r, className: i, ...a }) {
|
|
931
|
+
return /* @__PURE__ */ t(T, {
|
|
840
932
|
...a,
|
|
841
|
-
className: L(
|
|
842
|
-
children: ({ percentage: i, isIndeterminate: a }) => /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t(
|
|
843
|
-
className:
|
|
933
|
+
className: L(Y.progress, i),
|
|
934
|
+
children: ({ percentage: i, isIndeterminate: a }) => /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t(p, { children: r }), /* @__PURE__ */ t("div", {
|
|
935
|
+
className: Y.track,
|
|
844
936
|
children: /* @__PURE__ */ t("div", {
|
|
845
|
-
className:
|
|
937
|
+
className: Y.fill,
|
|
846
938
|
"data-indeterminate": a || void 0,
|
|
847
939
|
style: { width: a ? "35%" : `${i}%` }
|
|
848
940
|
})
|
|
849
941
|
})] })
|
|
850
942
|
});
|
|
851
943
|
}
|
|
852
|
-
var
|
|
944
|
+
var X = {
|
|
853
945
|
card: "_card_n4hcj_1",
|
|
854
946
|
badge: "_badge_n4hcj_15",
|
|
855
947
|
heading: "_heading_n4hcj_49",
|
|
@@ -860,41 +952,139 @@ var $ = {
|
|
|
860
952
|
};
|
|
861
953
|
//#endregion
|
|
862
954
|
//#region src/components/surface/surface.tsx
|
|
863
|
-
function
|
|
955
|
+
function Xe({ variant: e = "outlined", className: n, ...r }) {
|
|
864
956
|
return /* @__PURE__ */ t("section", {
|
|
865
957
|
...r,
|
|
866
|
-
className: L(
|
|
958
|
+
className: L(X.card, n),
|
|
867
959
|
"data-variant": e
|
|
868
960
|
});
|
|
869
961
|
}
|
|
870
|
-
function
|
|
962
|
+
function Ze({ tone: e = "neutral", className: n, ...r }) {
|
|
871
963
|
return /* @__PURE__ */ t("span", {
|
|
872
964
|
...r,
|
|
873
|
-
className: L(
|
|
965
|
+
className: L(X.badge, n),
|
|
874
966
|
"data-tone": e
|
|
875
967
|
});
|
|
876
968
|
}
|
|
877
|
-
function
|
|
969
|
+
function Qe({ level: e = 2, className: n, ...r }) {
|
|
878
970
|
let i = `h${e}`;
|
|
879
971
|
return /* @__PURE__ */ t(i, {
|
|
880
972
|
...r,
|
|
881
|
-
className: L(
|
|
973
|
+
className: L(X.heading, n)
|
|
882
974
|
});
|
|
883
975
|
}
|
|
884
|
-
function
|
|
976
|
+
function $e({ muted: e = !1, className: n, ...r }) {
|
|
885
977
|
return /* @__PURE__ */ t("p", {
|
|
886
978
|
...r,
|
|
887
|
-
className: L(
|
|
979
|
+
className: L(X.text, e && X.muted, n)
|
|
888
980
|
});
|
|
889
981
|
}
|
|
890
|
-
function
|
|
982
|
+
function et({ children: e }) {
|
|
891
983
|
return /* @__PURE__ */ t("code", {
|
|
892
|
-
className:
|
|
984
|
+
className: X.code,
|
|
893
985
|
children: e
|
|
894
986
|
});
|
|
895
987
|
}
|
|
896
|
-
function
|
|
897
|
-
return /* @__PURE__ */ t("hr", { className:
|
|
988
|
+
function tt() {
|
|
989
|
+
return /* @__PURE__ */ t("hr", { className: X.divider });
|
|
990
|
+
}
|
|
991
|
+
var Z = {
|
|
992
|
+
tabs: "_tabs_1mv8v_1",
|
|
993
|
+
list: "_list_1mv8v_6",
|
|
994
|
+
tab: "_tab_1mv8v_1",
|
|
995
|
+
panel: "_panel_1mv8v_30"
|
|
996
|
+
};
|
|
997
|
+
//#endregion
|
|
998
|
+
//#region src/components/tabs/tabs.tsx
|
|
999
|
+
function nt({ className: e, ...n }) {
|
|
1000
|
+
return /* @__PURE__ */ t(ie, {
|
|
1001
|
+
...n,
|
|
1002
|
+
className: L(Z.tabs, e)
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
1005
|
+
function rt({ className: e, ...n }) {
|
|
1006
|
+
return /* @__PURE__ */ t(ne, {
|
|
1007
|
+
...n,
|
|
1008
|
+
className: L(Z.list, e)
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
function it({ className: e, ...n }) {
|
|
1012
|
+
return /* @__PURE__ */ t(te, {
|
|
1013
|
+
...n,
|
|
1014
|
+
className: L(Z.tab, e)
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
function at({ className: e, ...n }) {
|
|
1018
|
+
return /* @__PURE__ */ t(re, {
|
|
1019
|
+
...n,
|
|
1020
|
+
className: L(Z.panel, e)
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
1023
|
+
var Q = {
|
|
1024
|
+
group: "_group_1rh6o_1",
|
|
1025
|
+
skeleton: "_skeleton_1rh6o_4",
|
|
1026
|
+
pulse: "_pulse_1rh6o_1",
|
|
1027
|
+
status: "_status_1rh6o_20"
|
|
1028
|
+
};
|
|
1029
|
+
//#endregion
|
|
1030
|
+
//#region src/components/skeleton/skeleton.tsx
|
|
1031
|
+
function ot({ variant: e = "text", width: n, height: r, className: i, style: a, ...o }) {
|
|
1032
|
+
return /* @__PURE__ */ t("div", {
|
|
1033
|
+
...o,
|
|
1034
|
+
"aria-hidden": "true",
|
|
1035
|
+
className: L(Q.skeleton, i),
|
|
1036
|
+
"data-variant": e,
|
|
1037
|
+
style: {
|
|
1038
|
+
width: n,
|
|
1039
|
+
height: r,
|
|
1040
|
+
...a
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
function st({ label: e, children: r, className: i, ...a }) {
|
|
1045
|
+
return /* @__PURE__ */ n("div", {
|
|
1046
|
+
...a,
|
|
1047
|
+
className: L(Q.group, i),
|
|
1048
|
+
children: [/* @__PURE__ */ t("span", {
|
|
1049
|
+
role: "status",
|
|
1050
|
+
className: Q.status,
|
|
1051
|
+
children: e
|
|
1052
|
+
}), /* @__PURE__ */ t("div", {
|
|
1053
|
+
"aria-hidden": "true",
|
|
1054
|
+
children: r
|
|
1055
|
+
})]
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
var $ = {
|
|
1059
|
+
empty: "_empty_14d8y_1",
|
|
1060
|
+
description: "_description_14d8y_11",
|
|
1061
|
+
action: "_action_14d8y_15"
|
|
1062
|
+
};
|
|
1063
|
+
//#endregion
|
|
1064
|
+
//#region src/components/empty-state/empty-state.tsx
|
|
1065
|
+
function ct({ title: e, description: r, action: i, headingLevel: a = 2, children: o, className: s, ...c }) {
|
|
1066
|
+
let l = P();
|
|
1067
|
+
return /* @__PURE__ */ n("section", {
|
|
1068
|
+
...c,
|
|
1069
|
+
"aria-labelledby": l,
|
|
1070
|
+
className: L($.empty, s),
|
|
1071
|
+
children: [
|
|
1072
|
+
/* @__PURE__ */ t(Qe, {
|
|
1073
|
+
id: l,
|
|
1074
|
+
level: a,
|
|
1075
|
+
children: e
|
|
1076
|
+
}),
|
|
1077
|
+
r && /* @__PURE__ */ t("div", {
|
|
1078
|
+
className: $.description,
|
|
1079
|
+
children: r
|
|
1080
|
+
}),
|
|
1081
|
+
o,
|
|
1082
|
+
i && /* @__PURE__ */ t("div", {
|
|
1083
|
+
className: $.action,
|
|
1084
|
+
children: i
|
|
1085
|
+
})
|
|
1086
|
+
]
|
|
1087
|
+
});
|
|
898
1088
|
}
|
|
899
1089
|
//#endregion
|
|
900
|
-
export {
|
|
1090
|
+
export { He as Alert, me as AppHeader, he as AppHeaderActions, ge as AppMain, Ze as Badge, qe as BarLoader, B as Button, Xe as Card, Te as Checkbox, Ee as CheckboxGroup, et as Code, we as ComboBox, Ve as DataTable, Re as Dialog, c as DialogTrigger, tt as Divider, Me as DonutSlider, ct as EmptyState, Qe as Heading, _e as LinkButton, Ne as Menu, Pe as MenuItem, Fe as MenuPopover, Ie as MenuSeparator, y as MenuTrigger, Ce as MultiSelect, Ge as NotificationsProvider, ye as NumberField, Ye as ProgressBar, Oe as Radio, De as RadioGroup, Se as Select, ot as Skeleton, st as SkeletonGroup, Je as Spinner, Le as SplitButton, ee as SubmenuTrigger, ke as Switch, it as Tab, rt as TabList, at as TabPanel, nt as Tabs, $e as Text, ve as TextField, Be as Tooltip, Ke as useNotifications };
|