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