@indxsearch/systm 2.7.0 → 2.8.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/CHANGELOG.md +12 -0
- package/README.md +40 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +34 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +25 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +423 -225
- package/dist/systm.css +1 -1
- package/package.json +2 -1
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import e, { useCallback as t, useEffect as n, useId as r, useRef as i, useState as a } from "react";
|
|
2
2
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
3
|
-
import { Check as l, Chevron_down as u, Chevron_left as d, Chevron_right as f,
|
|
4
|
-
import { Range as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
|
|
3
|
+
import { Check as l, Chevron_down as u, Chevron_left as d, Chevron_right as f, Dropdown as p, Minus as m, Plus as h, Search as g, X_or_error as _ } from "@indxsearch/pixl";
|
|
4
|
+
import { Range as v } from "react-range";
|
|
5
|
+
import * as y from "@radix-ui/react-select";
|
|
6
|
+
import * as b from "@radix-ui/react-popover";
|
|
7
|
+
import * as x from "@radix-ui/react-tooltip";
|
|
8
|
+
import * as S from "@radix-ui/react-dialog";
|
|
9
|
+
import * as C from "@radix-ui/react-navigation-menu";
|
|
10
|
+
var w = {
|
|
10
11
|
button: "_button_1sns4_1",
|
|
11
12
|
micro: "_micro_1sns4_22",
|
|
12
13
|
default: "_default_1sns4_30",
|
|
@@ -17,11 +18,11 @@ var S = {
|
|
|
17
18
|
};
|
|
18
19
|
//#endregion
|
|
19
20
|
//#region src/components/Button/Button.tsx
|
|
20
|
-
function
|
|
21
|
+
function T(t) {
|
|
21
22
|
let { size: n = "default", variant: r = "primary", iconLeft: i, iconRight: a, className: l, children: u, disabled: d = !1, ...f } = t, { href: p } = f, m = n === "micro" ? "14px" : n === "large" ? "21px" : "14px", h = [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
w.button,
|
|
24
|
+
w[n],
|
|
25
|
+
w[r],
|
|
25
26
|
d ? "cursor-not-allowed" : "cursor-pointer",
|
|
26
27
|
l
|
|
27
28
|
].filter(Boolean).join(" "), g = /* @__PURE__ */ c(o, { children: [
|
|
@@ -64,57 +65,57 @@ function C(t) {
|
|
|
64
65
|
children: g
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
var
|
|
68
|
+
var E = {
|
|
68
69
|
checkboxWrapper: "_checkboxWrapper_1vygn_1",
|
|
69
70
|
checkbox: "_checkbox_1vygn_1",
|
|
70
71
|
label: "_label_1vygn_44",
|
|
71
72
|
score: "_score_1vygn_48",
|
|
72
73
|
disabled: "_disabled_1vygn_55"
|
|
73
|
-
},
|
|
74
|
+
}, D = ({ label: t, score: n, className: r = "", id: i, "aria-label": a, ...o }) => {
|
|
74
75
|
let l = e.useId(), u = i || l, d = n ? `${u}-score` : void 0, f = o.disabled;
|
|
75
76
|
return t || n ? /* @__PURE__ */ c("label", {
|
|
76
77
|
htmlFor: u,
|
|
77
|
-
className: `${
|
|
78
|
+
className: `${E.checkboxWrapper} ${r} ${f ? E.disabled : ""} ${f ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
78
79
|
children: [
|
|
79
80
|
/* @__PURE__ */ s("input", {
|
|
80
81
|
id: u,
|
|
81
82
|
type: "checkbox",
|
|
82
|
-
className:
|
|
83
|
+
className: E.checkbox,
|
|
83
84
|
"aria-describedby": d,
|
|
84
85
|
"aria-label": a,
|
|
85
86
|
...o
|
|
86
87
|
}),
|
|
87
88
|
t && /* @__PURE__ */ s("span", {
|
|
88
|
-
className:
|
|
89
|
+
className: E.label,
|
|
89
90
|
children: t
|
|
90
91
|
}),
|
|
91
92
|
n && /* @__PURE__ */ s("span", {
|
|
92
93
|
id: d,
|
|
93
|
-
className:
|
|
94
|
+
className: E.score,
|
|
94
95
|
children: n
|
|
95
96
|
})
|
|
96
97
|
]
|
|
97
98
|
}) : /* @__PURE__ */ s("input", {
|
|
98
99
|
id: u,
|
|
99
100
|
type: "checkbox",
|
|
100
|
-
className: `${
|
|
101
|
+
className: `${E.checkbox} ${r}`,
|
|
101
102
|
"aria-label": a,
|
|
102
103
|
disabled: f,
|
|
103
104
|
...o
|
|
104
105
|
});
|
|
105
|
-
},
|
|
106
|
+
}, O = {
|
|
106
107
|
container: "_container_dlzj1_1",
|
|
107
108
|
default: "_default_dlzj1_5"
|
|
108
109
|
};
|
|
109
110
|
//#endregion
|
|
110
111
|
//#region src/components/Base/Base.tsx
|
|
111
|
-
function
|
|
112
|
+
function k({ children: e, className: t }) {
|
|
112
113
|
return /* @__PURE__ */ s("div", {
|
|
113
|
-
className: `${
|
|
114
|
+
className: `${O.container} ${O.default} ${t || ""}`,
|
|
114
115
|
children: e
|
|
115
116
|
});
|
|
116
117
|
}
|
|
117
|
-
var
|
|
118
|
+
var A = {
|
|
118
119
|
container: "_container_10bfq_1",
|
|
119
120
|
header: "_header_10bfq_11",
|
|
120
121
|
title: "_title_10bfq_31",
|
|
@@ -123,15 +124,15 @@ var O = {
|
|
|
123
124
|
};
|
|
124
125
|
//#endregion
|
|
125
126
|
//#region src/components/FilterPanelBase/FilterPanelBase.tsx
|
|
126
|
-
function
|
|
127
|
+
function j({ title: t, children: r, className: i = "", collapsible: o = !0, collapsed: l = !1 }) {
|
|
127
128
|
let [u, d] = a(() => !l), f = e.useId();
|
|
128
129
|
return n(() => {
|
|
129
130
|
o && d(!l);
|
|
130
131
|
}, [l, o]), /* @__PURE__ */ c("div", {
|
|
131
|
-
className: `${
|
|
132
|
+
className: `${A.container} ${i}`,
|
|
132
133
|
children: [t && (o ? /* @__PURE__ */ c("button", {
|
|
133
134
|
type: "button",
|
|
134
|
-
className:
|
|
135
|
+
className: A.header,
|
|
135
136
|
onClick: () => {
|
|
136
137
|
o && d((e) => !e);
|
|
137
138
|
},
|
|
@@ -139,31 +140,31 @@ function k({ title: t, children: r, className: i = "", collapsible: o = !0, coll
|
|
|
139
140
|
"aria-expanded": u,
|
|
140
141
|
"aria-controls": f,
|
|
141
142
|
children: [/* @__PURE__ */ s("div", {
|
|
142
|
-
className:
|
|
143
|
+
className: A.title,
|
|
143
144
|
children: t
|
|
144
145
|
}), /* @__PURE__ */ s("span", {
|
|
145
146
|
"aria-hidden": "true",
|
|
146
|
-
children: s(u ?
|
|
147
|
+
children: s(u ? m : h, {
|
|
147
148
|
color: "var(--lv5)",
|
|
148
149
|
size: 14
|
|
149
150
|
})
|
|
150
151
|
})]
|
|
151
152
|
}) : /* @__PURE__ */ s("div", {
|
|
152
|
-
className:
|
|
153
|
+
className: A.header,
|
|
153
154
|
children: /* @__PURE__ */ s("div", {
|
|
154
|
-
className:
|
|
155
|
+
className: A.title,
|
|
155
156
|
children: t
|
|
156
157
|
})
|
|
157
158
|
})), (!o || u) && /* @__PURE__ */ s("div", {
|
|
158
159
|
id: f,
|
|
159
|
-
className:
|
|
160
|
+
className: A.body,
|
|
160
161
|
role: "region",
|
|
161
162
|
"aria-label": t || "Filter panel content",
|
|
162
163
|
children: r
|
|
163
164
|
})]
|
|
164
165
|
});
|
|
165
166
|
}
|
|
166
|
-
var
|
|
167
|
+
var M = {
|
|
167
168
|
wrapper: "_wrapper_tf1yl_1",
|
|
168
169
|
label: "_label_tf1yl_7",
|
|
169
170
|
inputContainer: "_inputContainer_tf1yl_12",
|
|
@@ -175,27 +176,27 @@ var A = {
|
|
|
175
176
|
sizeDefault: "_sizeDefault_tf1yl_87",
|
|
176
177
|
error: "_error_tf1yl_110",
|
|
177
178
|
errorText: "_errorText_tf1yl_114"
|
|
178
|
-
},
|
|
179
|
+
}, ee = {
|
|
179
180
|
micro: 14,
|
|
180
181
|
default: 21
|
|
181
182
|
};
|
|
182
|
-
function
|
|
183
|
-
let _ = i(null), v = e.useId(), y = p || v, b = `${y}-error`, x =
|
|
183
|
+
function N({ label: t, error: n, className: r = "", showSearchIcon: a = !0, searchIcon: o, searchIconColor: l, inputSize: u = "default", showFocusBorder: d = !1, children: f, id: p, type: m = "search", ...h }) {
|
|
184
|
+
let _ = i(null), v = e.useId(), y = p || v, b = `${y}-error`, x = ee[u], S = {};
|
|
184
185
|
l && (S["--search-icon-color"] = l);
|
|
185
|
-
let C = o ?? /* @__PURE__ */ s(
|
|
186
|
+
let C = o ?? /* @__PURE__ */ s(g, {}), w = u === "micro" ? M.sizeMicro : M.sizeDefault;
|
|
186
187
|
return /* @__PURE__ */ c("div", {
|
|
187
|
-
className: `${
|
|
188
|
+
className: `${M.wrapper} ${r}`,
|
|
188
189
|
children: [
|
|
189
190
|
t && /* @__PURE__ */ s("label", {
|
|
190
191
|
htmlFor: y,
|
|
191
|
-
className:
|
|
192
|
+
className: M.label,
|
|
192
193
|
children: t
|
|
193
194
|
}),
|
|
194
195
|
/* @__PURE__ */ c("div", {
|
|
195
|
-
className: `${
|
|
196
|
+
className: `${M.inputContainer} ${w}`,
|
|
196
197
|
children: [
|
|
197
198
|
a && /* @__PURE__ */ s("span", {
|
|
198
|
-
className:
|
|
199
|
+
className: M.searchIcon,
|
|
199
200
|
"aria-hidden": "true",
|
|
200
201
|
children: e.cloneElement(C, {
|
|
201
202
|
size: x,
|
|
@@ -206,28 +207,28 @@ function M({ label: t, error: n, className: r = "", showSearchIcon: a = !0, sear
|
|
|
206
207
|
ref: _,
|
|
207
208
|
id: y,
|
|
208
209
|
type: m,
|
|
209
|
-
className: `${
|
|
210
|
+
className: `${M.input} ${d ? M.focus : ""} ${n ? M.error : ""}`,
|
|
210
211
|
style: S,
|
|
211
212
|
"aria-invalid": n ? "true" : "false",
|
|
212
213
|
"aria-describedby": n ? b : void 0,
|
|
213
|
-
...
|
|
214
|
+
...h
|
|
214
215
|
}),
|
|
215
216
|
f && /* @__PURE__ */ s("div", {
|
|
216
|
-
className:
|
|
217
|
+
className: M.rightContent,
|
|
217
218
|
children: f
|
|
218
219
|
})
|
|
219
220
|
]
|
|
220
221
|
}),
|
|
221
222
|
n && /* @__PURE__ */ s("span", {
|
|
222
223
|
id: b,
|
|
223
|
-
className:
|
|
224
|
+
className: M.errorText,
|
|
224
225
|
role: "alert",
|
|
225
226
|
children: n
|
|
226
227
|
})
|
|
227
228
|
]
|
|
228
229
|
});
|
|
229
230
|
}
|
|
230
|
-
var
|
|
231
|
+
var P = {
|
|
231
232
|
wrapper: "_wrapper_su5p5_1",
|
|
232
233
|
label: "_label_su5p5_7",
|
|
233
234
|
input: "_input_su5p5_12",
|
|
@@ -237,14 +238,14 @@ var N = {
|
|
|
237
238
|
};
|
|
238
239
|
//#endregion
|
|
239
240
|
//#region src/components/InputField/InputField.tsx
|
|
240
|
-
function
|
|
241
|
+
function F({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...l }) {
|
|
241
242
|
let u = e.useId(), d = o || u, f = `${d}-error`, p = n || !i;
|
|
242
243
|
return /* @__PURE__ */ c("div", {
|
|
243
|
-
className: `${
|
|
244
|
+
className: `${P.wrapper} ${r}`,
|
|
244
245
|
children: [
|
|
245
246
|
t && /* @__PURE__ */ c("label", {
|
|
246
247
|
htmlFor: d,
|
|
247
|
-
className:
|
|
248
|
+
className: P.label,
|
|
248
249
|
children: [t, l.required && /* @__PURE__ */ s("span", {
|
|
249
250
|
"aria-label": "required",
|
|
250
251
|
children: " *"
|
|
@@ -252,29 +253,29 @@ function P({ label: t, error: n, className: r = "", isValid: i = !0, variant: a
|
|
|
252
253
|
}),
|
|
253
254
|
/* @__PURE__ */ s("input", {
|
|
254
255
|
id: d,
|
|
255
|
-
className: `${
|
|
256
|
+
className: `${P.input} ${a === "borderBottom" ? P.borderBottom : ""} ${p ? P.error : ""}`,
|
|
256
257
|
"aria-invalid": p ? "true" : "false",
|
|
257
258
|
"aria-describedby": n ? f : void 0,
|
|
258
259
|
...l
|
|
259
260
|
}),
|
|
260
261
|
n && /* @__PURE__ */ s("span", {
|
|
261
262
|
id: f,
|
|
262
|
-
className:
|
|
263
|
+
className: P.errorText,
|
|
263
264
|
role: "alert",
|
|
264
265
|
children: n
|
|
265
266
|
})
|
|
266
267
|
]
|
|
267
268
|
});
|
|
268
269
|
}
|
|
269
|
-
var
|
|
270
|
+
var I = {
|
|
270
271
|
radioWrapper: "_radioWrapper_1faq0_1",
|
|
271
272
|
radioInput: "_radioInput_1faq0_9",
|
|
272
273
|
customRadio: "_customRadio_1faq0_23",
|
|
273
274
|
labelText: "_labelText_1faq0_57",
|
|
274
275
|
disabled: "_disabled_1faq0_63"
|
|
275
|
-
},
|
|
276
|
+
}, te = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": l }) => /* @__PURE__ */ c("label", {
|
|
276
277
|
htmlFor: e,
|
|
277
|
-
className: `${
|
|
278
|
+
className: `${I.radioWrapper} ${o ? I.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
278
279
|
children: [
|
|
279
280
|
/* @__PURE__ */ s("input", {
|
|
280
281
|
id: e,
|
|
@@ -285,11 +286,11 @@ var F = {
|
|
|
285
286
|
onChange: a,
|
|
286
287
|
disabled: o,
|
|
287
288
|
"aria-label": l,
|
|
288
|
-
className:
|
|
289
|
+
className: I.radioInput
|
|
289
290
|
}),
|
|
290
|
-
/* @__PURE__ */ s("span", { className:
|
|
291
|
+
/* @__PURE__ */ s("span", { className: I.customRadio }),
|
|
291
292
|
/* @__PURE__ */ s("span", {
|
|
292
|
-
className:
|
|
293
|
+
className: I.labelText,
|
|
293
294
|
children: r
|
|
294
295
|
})
|
|
295
296
|
]
|
|
@@ -298,7 +299,7 @@ var F = {
|
|
|
298
299
|
slider: "_slider_1xsea_23",
|
|
299
300
|
label: "_label_1xsea_28",
|
|
300
301
|
disabled: "_disabled_1xsea_43"
|
|
301
|
-
},
|
|
302
|
+
}, ne = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o }) => {
|
|
302
303
|
let l = e.useId(), u = t || l;
|
|
303
304
|
return /* @__PURE__ */ c("label", {
|
|
304
305
|
htmlFor: u,
|
|
@@ -333,8 +334,8 @@ var F = {
|
|
|
333
334
|
livetrackDefault: "_livetrackDefault_12as9_52",
|
|
334
335
|
thumbs: "_thumbs_12as9_55",
|
|
335
336
|
disabled: "_disabled_12as9_89"
|
|
336
|
-
},
|
|
337
|
-
let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: l, activeMax: u, isFaceted: d = !1, highlightFaceted: f = !0, onChange: p, onFinalChange: m, label: h, "aria-label": g, id:
|
|
337
|
+
}, re = (t) => {
|
|
338
|
+
let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: l, activeMax: u, isFaceted: d = !1, highlightFaceted: f = !0, onChange: p, onFinalChange: m, label: h, "aria-label": g, id: _ } = t, y = e.useId(), b = _ || y;
|
|
338
339
|
if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ c("div", {
|
|
339
340
|
className: o,
|
|
340
341
|
children: [h && /* @__PURE__ */ s("span", {
|
|
@@ -346,14 +347,14 @@ var F = {
|
|
|
346
347
|
})]
|
|
347
348
|
});
|
|
348
349
|
if ("isRange" in t && t.isRange) {
|
|
349
|
-
let e = t.value, [f,
|
|
350
|
+
let e = t.value, [f, _] = e;
|
|
350
351
|
return /* @__PURE__ */ c("div", {
|
|
351
352
|
className: o,
|
|
352
353
|
children: [h && /* @__PURE__ */ s("label", {
|
|
353
354
|
htmlFor: b,
|
|
354
355
|
className: R.label,
|
|
355
356
|
children: h
|
|
356
|
-
}), /* @__PURE__ */ s(
|
|
357
|
+
}), /* @__PURE__ */ s(v, {
|
|
357
358
|
step: i,
|
|
358
359
|
min: n,
|
|
359
360
|
max: r,
|
|
@@ -362,13 +363,13 @@ var F = {
|
|
|
362
363
|
onFinalChange: (e) => m?.(e),
|
|
363
364
|
disabled: a,
|
|
364
365
|
renderTrack: ({ props: e, children: t }) => {
|
|
365
|
-
let { key: i, ...a } = e, o = r - n, p = (f - n) / o * 100, m = (
|
|
366
|
-
return
|
|
366
|
+
let { key: i, ...a } = e, o = r - n, p = (f - n) / o * 100, m = (_ - f) / o * 100, h = 0, g = 0, v = typeof l == "number" && typeof u == "number" && u > l && (l > n || u < r);
|
|
367
|
+
return v && (h = (l - n) / o * 100, g = (u - l) / o * 100), /* @__PURE__ */ c("div", {
|
|
367
368
|
...a,
|
|
368
369
|
className: R.basetrack,
|
|
369
370
|
style: { ...a.style },
|
|
370
371
|
children: [
|
|
371
|
-
!
|
|
372
|
+
!v && /* @__PURE__ */ s("div", {
|
|
372
373
|
className: R.selectedtrack,
|
|
373
374
|
style: {
|
|
374
375
|
left: `${p}%`,
|
|
@@ -376,7 +377,7 @@ var F = {
|
|
|
376
377
|
zIndex: "1"
|
|
377
378
|
}
|
|
378
379
|
}),
|
|
379
|
-
|
|
380
|
+
v && /* @__PURE__ */ s("div", {
|
|
380
381
|
className: `${R.livetrack} ${d ? R.livetrackFaceted : R.livetrackDefault}`,
|
|
381
382
|
style: {
|
|
382
383
|
left: `${h}%`,
|
|
@@ -389,7 +390,7 @@ var F = {
|
|
|
389
390
|
}, i);
|
|
390
391
|
},
|
|
391
392
|
renderThumb: ({ props: e, index: t }) => {
|
|
392
|
-
let { key: i, ...o } = e, c = t === 0 ? f :
|
|
393
|
+
let { key: i, ...o } = e, c = t === 0 ? f : _;
|
|
393
394
|
return /* @__PURE__ */ s("div", {
|
|
394
395
|
...o,
|
|
395
396
|
id: t === 0 ? b : void 0,
|
|
@@ -414,7 +415,7 @@ var F = {
|
|
|
414
415
|
htmlFor: b,
|
|
415
416
|
className: R.label,
|
|
416
417
|
children: h
|
|
417
|
-
}), /* @__PURE__ */ s(
|
|
418
|
+
}), /* @__PURE__ */ s(v, {
|
|
418
419
|
step: i,
|
|
419
420
|
min: n,
|
|
420
421
|
max: r,
|
|
@@ -480,12 +481,12 @@ var F = {
|
|
|
480
481
|
viewport: "_viewport_15fsv_76",
|
|
481
482
|
item: "_item_15fsv_82",
|
|
482
483
|
itemIndicator: "_itemIndicator_15fsv_105"
|
|
483
|
-
},
|
|
484
|
-
let h = e.useId(), g = m || h, _ = `${g}-label`,
|
|
484
|
+
}, ie = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: d, size: f = "default", "aria-label": p, id: m }) => {
|
|
485
|
+
let h = e.useId(), g = m || h, _ = `${g}-label`, v = r.find((e) => e.value === t), b = /* @__PURE__ */ c(y.Root, {
|
|
485
486
|
value: t,
|
|
486
487
|
onValueChange: n,
|
|
487
488
|
disabled: o,
|
|
488
|
-
children: [/* @__PURE__ */ c(
|
|
489
|
+
children: [/* @__PURE__ */ c(y.Trigger, {
|
|
489
490
|
id: g,
|
|
490
491
|
className: `${z.trigger} ${z[f]} ${a} cursor-pointer`,
|
|
491
492
|
...d ? { "aria-labelledby": _ } : p ? { "aria-label": p } : {},
|
|
@@ -495,8 +496,8 @@ var F = {
|
|
|
495
496
|
alignItems: "center",
|
|
496
497
|
gap: 6
|
|
497
498
|
},
|
|
498
|
-
children: [
|
|
499
|
-
}), /* @__PURE__ */ s(
|
|
499
|
+
children: [v?.icon, /* @__PURE__ */ s(y.Value, { placeholder: i })]
|
|
500
|
+
}), /* @__PURE__ */ s(y.Icon, {
|
|
500
501
|
className: z.icon,
|
|
501
502
|
"aria-hidden": "true",
|
|
502
503
|
children: /* @__PURE__ */ s(u, {
|
|
@@ -504,15 +505,15 @@ var F = {
|
|
|
504
505
|
color: "currentColor"
|
|
505
506
|
})
|
|
506
507
|
})]
|
|
507
|
-
}), /* @__PURE__ */ s(
|
|
508
|
+
}), /* @__PURE__ */ s(y.Portal, { children: /* @__PURE__ */ s(y.Content, {
|
|
508
509
|
className: z.content,
|
|
509
510
|
position: "popper",
|
|
510
511
|
side: "bottom",
|
|
511
512
|
align: "start",
|
|
512
513
|
sideOffset: 4,
|
|
513
|
-
children: /* @__PURE__ */ s(
|
|
514
|
+
children: /* @__PURE__ */ s(y.Viewport, {
|
|
514
515
|
className: z.viewport,
|
|
515
|
-
children: r.map((e) => /* @__PURE__ */ c(
|
|
516
|
+
children: r.map((e) => /* @__PURE__ */ c(y.Item, {
|
|
516
517
|
value: e.value,
|
|
517
518
|
className: z.item,
|
|
518
519
|
children: [/* @__PURE__ */ c("span", {
|
|
@@ -521,8 +522,8 @@ var F = {
|
|
|
521
522
|
alignItems: "center",
|
|
522
523
|
gap: 6
|
|
523
524
|
},
|
|
524
|
-
children: [e.icon, /* @__PURE__ */ s(
|
|
525
|
-
}), /* @__PURE__ */ s(
|
|
525
|
+
children: [e.icon, /* @__PURE__ */ s(y.ItemText, { children: e.label })]
|
|
526
|
+
}), /* @__PURE__ */ s(y.ItemIndicator, {
|
|
526
527
|
className: z.itemIndicator,
|
|
527
528
|
children: /* @__PURE__ */ s(l, {
|
|
528
529
|
size: 12,
|
|
@@ -542,14 +543,14 @@ var F = {
|
|
|
542
543
|
children: d
|
|
543
544
|
}), b]
|
|
544
545
|
}) : b;
|
|
545
|
-
},
|
|
546
|
+
}, ae = { content: "_content_1qahr_1" }, oe = ({ trigger: e, children: t, open: n, onOpenChange: r, align: i = "end", side: a = "bottom", sideOffset: o = 5, className: l = "", "aria-label": u, "aria-describedby": d }) => /* @__PURE__ */ c(b.Root, {
|
|
546
547
|
open: n,
|
|
547
548
|
onOpenChange: r,
|
|
548
|
-
children: [/* @__PURE__ */ s(
|
|
549
|
+
children: [/* @__PURE__ */ s(b.Trigger, {
|
|
549
550
|
asChild: !0,
|
|
550
551
|
children: e
|
|
551
|
-
}), /* @__PURE__ */ s(
|
|
552
|
-
className: `${
|
|
552
|
+
}), /* @__PURE__ */ s(b.Portal, { children: /* @__PURE__ */ s(b.Content, {
|
|
553
|
+
className: `${ae.content} ${l}`,
|
|
553
554
|
align: i,
|
|
554
555
|
side: a,
|
|
555
556
|
sideOffset: o,
|
|
@@ -570,7 +571,7 @@ var F = {
|
|
|
570
571
|
};
|
|
571
572
|
//#endregion
|
|
572
573
|
//#region src/components/Table/Table.tsx
|
|
573
|
-
function
|
|
574
|
+
function se({ children: e, caption: t, "aria-label": n }) {
|
|
574
575
|
return /* @__PURE__ */ c("table", {
|
|
575
576
|
className: B.table,
|
|
576
577
|
"aria-label": n,
|
|
@@ -582,7 +583,7 @@ function ae({ children: e, caption: t, "aria-label": n }) {
|
|
|
582
583
|
}
|
|
583
584
|
//#endregion
|
|
584
585
|
//#region src/components/Table/TableHeader.tsx
|
|
585
|
-
function
|
|
586
|
+
function ce({ children: t }) {
|
|
586
587
|
let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ s("th", {
|
|
587
588
|
scope: "col",
|
|
588
589
|
...t.props
|
|
@@ -594,7 +595,7 @@ function oe({ children: t }) {
|
|
|
594
595
|
}
|
|
595
596
|
//#endregion
|
|
596
597
|
//#region src/components/Table/TableRow.tsx
|
|
597
|
-
function
|
|
598
|
+
function le({ children: e }) {
|
|
598
599
|
return /* @__PURE__ */ s("tr", {
|
|
599
600
|
className: B.dataRow,
|
|
600
601
|
children: e
|
|
@@ -602,7 +603,7 @@ function se({ children: e }) {
|
|
|
602
603
|
}
|
|
603
604
|
//#endregion
|
|
604
605
|
//#region src/components/Table/TableCell.tsx
|
|
605
|
-
function
|
|
606
|
+
function ue({ label: e, children: t, isHeader: n = !1, scope: r }) {
|
|
606
607
|
let i = n ? "th" : "td", a = n && r ? { scope: r } : {};
|
|
607
608
|
return e || t ? /* @__PURE__ */ s(i, {
|
|
608
609
|
...a,
|
|
@@ -623,7 +624,7 @@ function ce({ label: e, children: t, isHeader: n = !1, scope: r }) {
|
|
|
623
624
|
}
|
|
624
625
|
//#endregion
|
|
625
626
|
//#region src/components/Table/TableValue.tsx
|
|
626
|
-
function
|
|
627
|
+
function de({ children: e }) {
|
|
627
628
|
return /* @__PURE__ */ s("span", {
|
|
628
629
|
className: B.value,
|
|
629
630
|
children: e
|
|
@@ -631,7 +632,7 @@ function le({ children: e }) {
|
|
|
631
632
|
}
|
|
632
633
|
//#endregion
|
|
633
634
|
//#region src/components/Table/TableIcon.tsx
|
|
634
|
-
function
|
|
635
|
+
function fe({ children: t, "aria-label": n }) {
|
|
635
636
|
let r = !n;
|
|
636
637
|
return /* @__PURE__ */ s("span", {
|
|
637
638
|
className: B.icon,
|
|
@@ -654,7 +655,7 @@ var V = {
|
|
|
654
655
|
};
|
|
655
656
|
//#endregion
|
|
656
657
|
//#region src/components/Tabs/Tabs.tsx
|
|
657
|
-
function
|
|
658
|
+
function pe({ items: e, value: t, onValueChange: o, size: c = "default", scrollable: l = !1, getPanelId: u }) {
|
|
658
659
|
let d = i(null), f = i(/* @__PURE__ */ new Map()), p = r(), [m, h] = a({
|
|
659
660
|
start: !1,
|
|
660
661
|
end: !1
|
|
@@ -729,6 +730,137 @@ function de({ items: e, value: t, onValueChange: o, size: c = "default", scrolla
|
|
|
729
730
|
});
|
|
730
731
|
}
|
|
731
732
|
var H = {
|
|
733
|
+
root: "_root_1vvif_1",
|
|
734
|
+
micro: "_micro_1vvif_2",
|
|
735
|
+
default: "_default_1vvif_3",
|
|
736
|
+
list: "_list_1vvif_4",
|
|
737
|
+
item: "_item_1vvif_5",
|
|
738
|
+
separator: "_separator_1vvif_6",
|
|
739
|
+
step: "_step_1vvif_7",
|
|
740
|
+
switchable: "_switchable_1vvif_8",
|
|
741
|
+
label: "_label_1vvif_8",
|
|
742
|
+
text: "_text_1vvif_11",
|
|
743
|
+
trigger: "_trigger_1vvif_12",
|
|
744
|
+
icon: "_icon_1vvif_16",
|
|
745
|
+
option: "_option_1vvif_17",
|
|
746
|
+
menu: "_menu_1vvif_18",
|
|
747
|
+
menuDivider: "_menuDivider_1vvif_19"
|
|
748
|
+
};
|
|
749
|
+
//#endregion
|
|
750
|
+
//#region src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
751
|
+
function me(t) {
|
|
752
|
+
return e.isValidElement(t) ? e.cloneElement(t, {
|
|
753
|
+
size: "14px",
|
|
754
|
+
color: "currentColor"
|
|
755
|
+
}) : t;
|
|
756
|
+
}
|
|
757
|
+
var he = "\0action", ge = ({ items: e, size: t = "default", className: n = "", separator: r = /* @__PURE__ */ s(f, {
|
|
758
|
+
size: 14,
|
|
759
|
+
color: "currentColor"
|
|
760
|
+
}), renderLink: i, "aria-label": a = "Breadcrumb" }) => /* @__PURE__ */ s("nav", {
|
|
761
|
+
"aria-label": a,
|
|
762
|
+
className: `${H.root} ${H[t]} ${n}`,
|
|
763
|
+
children: /* @__PURE__ */ s("ol", {
|
|
764
|
+
className: H.list,
|
|
765
|
+
children: e.map((t, n) => /* @__PURE__ */ c("li", {
|
|
766
|
+
className: H.item,
|
|
767
|
+
children: [n > 0 && /* @__PURE__ */ s("span", {
|
|
768
|
+
className: H.separator,
|
|
769
|
+
"aria-hidden": "true",
|
|
770
|
+
children: r
|
|
771
|
+
}), /* @__PURE__ */ c("div", {
|
|
772
|
+
className: `${H.step} ${t.switcher ? H.switchable : ""}`,
|
|
773
|
+
children: [t.href ? (() => {
|
|
774
|
+
let r = {
|
|
775
|
+
className: H.label,
|
|
776
|
+
href: t.href,
|
|
777
|
+
onClick: t.onClick,
|
|
778
|
+
"aria-current": n === e.length - 1 ? "page" : void 0,
|
|
779
|
+
children: /* @__PURE__ */ c(o, { children: [t.icon && /* @__PURE__ */ s("span", {
|
|
780
|
+
className: H.icon,
|
|
781
|
+
"aria-hidden": "true",
|
|
782
|
+
children: me(t.icon)
|
|
783
|
+
}), /* @__PURE__ */ s("span", {
|
|
784
|
+
className: H.text,
|
|
785
|
+
children: t.label
|
|
786
|
+
})] })
|
|
787
|
+
};
|
|
788
|
+
return i ? i(t, r) : /* @__PURE__ */ s("a", { ...r });
|
|
789
|
+
})() : /* @__PURE__ */ c("span", {
|
|
790
|
+
className: H.label,
|
|
791
|
+
"aria-current": n === e.length - 1 ? "page" : void 0,
|
|
792
|
+
children: [t.icon && /* @__PURE__ */ s("span", {
|
|
793
|
+
className: H.icon,
|
|
794
|
+
"aria-hidden": "true",
|
|
795
|
+
children: me(t.icon)
|
|
796
|
+
}), /* @__PURE__ */ s("span", {
|
|
797
|
+
className: H.text,
|
|
798
|
+
children: t.label
|
|
799
|
+
})]
|
|
800
|
+
}), t.switcher && /* @__PURE__ */ c(y.Root, {
|
|
801
|
+
value: t.switcher.value,
|
|
802
|
+
onValueChange: (e) => e === he ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
|
|
803
|
+
disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
|
|
804
|
+
children: [/* @__PURE__ */ s(y.Trigger, {
|
|
805
|
+
className: H.trigger,
|
|
806
|
+
"aria-label": `${t.switcher.label}: ${t.label}`,
|
|
807
|
+
children: /* @__PURE__ */ s(y.Icon, {
|
|
808
|
+
"aria-hidden": "true",
|
|
809
|
+
className: H.icon,
|
|
810
|
+
children: /* @__PURE__ */ s(p, {
|
|
811
|
+
size: 14,
|
|
812
|
+
color: "currentColor"
|
|
813
|
+
})
|
|
814
|
+
})
|
|
815
|
+
}), /* @__PURE__ */ s(y.Portal, { children: /* @__PURE__ */ s(y.Content, {
|
|
816
|
+
className: `${z.content} ${H.menu}`,
|
|
817
|
+
position: "popper",
|
|
818
|
+
align: "end",
|
|
819
|
+
sideOffset: 4,
|
|
820
|
+
collisionPadding: 8,
|
|
821
|
+
children: /* @__PURE__ */ c(y.Viewport, {
|
|
822
|
+
className: z.viewport,
|
|
823
|
+
children: [t.switcher.options.map((e) => /* @__PURE__ */ c(y.Item, {
|
|
824
|
+
value: e.value,
|
|
825
|
+
className: z.item,
|
|
826
|
+
textValue: e.label,
|
|
827
|
+
children: [/* @__PURE__ */ c("span", {
|
|
828
|
+
className: H.option,
|
|
829
|
+
children: [e.icon && /* @__PURE__ */ s("span", {
|
|
830
|
+
className: H.icon,
|
|
831
|
+
"aria-hidden": "true",
|
|
832
|
+
children: e.icon
|
|
833
|
+
}), /* @__PURE__ */ s(y.ItemText, { children: e.label })]
|
|
834
|
+
}), /* @__PURE__ */ s(y.ItemIndicator, {
|
|
835
|
+
className: z.itemIndicator,
|
|
836
|
+
children: /* @__PURE__ */ s(l, {
|
|
837
|
+
size: 12,
|
|
838
|
+
color: "currentColor"
|
|
839
|
+
})
|
|
840
|
+
})]
|
|
841
|
+
}, e.value)), t.switcher.action && /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(y.Separator, { className: H.menuDivider }), /* @__PURE__ */ s(y.Item, {
|
|
842
|
+
value: he,
|
|
843
|
+
className: z.item,
|
|
844
|
+
textValue: t.switcher.action.label,
|
|
845
|
+
children: /* @__PURE__ */ c("span", {
|
|
846
|
+
className: H.option,
|
|
847
|
+
children: [/* @__PURE__ */ s("span", {
|
|
848
|
+
className: H.icon,
|
|
849
|
+
"aria-hidden": "true",
|
|
850
|
+
children: /* @__PURE__ */ s(h, {
|
|
851
|
+
size: 14,
|
|
852
|
+
color: "currentColor"
|
|
853
|
+
})
|
|
854
|
+
}), /* @__PURE__ */ s(y.ItemText, { children: t.switcher.action.label })]
|
|
855
|
+
})
|
|
856
|
+
})] })]
|
|
857
|
+
})
|
|
858
|
+
}) })]
|
|
859
|
+
})]
|
|
860
|
+
})]
|
|
861
|
+
}, t.id))
|
|
862
|
+
})
|
|
863
|
+
}), U = {
|
|
732
864
|
wrapper: "_wrapper_1a9jo_1",
|
|
733
865
|
track: "_track_1a9jo_8",
|
|
734
866
|
fill: "_fill_1a9jo_36",
|
|
@@ -736,42 +868,42 @@ var H = {
|
|
|
736
868
|
};
|
|
737
869
|
//#endregion
|
|
738
870
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
739
|
-
function
|
|
871
|
+
function _e({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
|
|
740
872
|
let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
|
|
741
873
|
return /* @__PURE__ */ c("div", {
|
|
742
|
-
className: `${
|
|
874
|
+
className: `${U.wrapper} ${r}`,
|
|
743
875
|
role: "progressbar",
|
|
744
876
|
"aria-valuenow": i,
|
|
745
877
|
"aria-valuemin": 0,
|
|
746
878
|
"aria-valuemax": 100,
|
|
747
879
|
children: [/* @__PURE__ */ s("div", {
|
|
748
|
-
className:
|
|
880
|
+
className: U.track,
|
|
749
881
|
children: /* @__PURE__ */ s("div", {
|
|
750
|
-
className:
|
|
882
|
+
className: U.fill,
|
|
751
883
|
style: {
|
|
752
884
|
width: `${i}%`,
|
|
753
885
|
backgroundColor: o
|
|
754
886
|
}
|
|
755
887
|
})
|
|
756
888
|
}), t && /* @__PURE__ */ s("span", {
|
|
757
|
-
className:
|
|
889
|
+
className: U.label,
|
|
758
890
|
"aria-hidden": "true",
|
|
759
891
|
children: a
|
|
760
892
|
})]
|
|
761
893
|
});
|
|
762
894
|
}
|
|
763
|
-
var
|
|
895
|
+
var ve = {
|
|
764
896
|
chip: "_chip_iaxe0_1",
|
|
765
897
|
large: "_large_iaxe0_14"
|
|
766
898
|
};
|
|
767
899
|
//#endregion
|
|
768
900
|
//#region src/components/Chip/Chip.tsx
|
|
769
|
-
function
|
|
901
|
+
function ye({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
|
|
770
902
|
let s = {};
|
|
771
903
|
return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ c("span", {
|
|
772
904
|
className: [
|
|
773
|
-
|
|
774
|
-
o === "large" &&
|
|
905
|
+
ve.chip,
|
|
906
|
+
o === "large" && ve.large,
|
|
775
907
|
i
|
|
776
908
|
].filter(Boolean).join(" "),
|
|
777
909
|
style: s,
|
|
@@ -781,27 +913,27 @@ function pe({ children: t, color: n, textColor: r, className: i, icon: a, size:
|
|
|
781
913
|
}), t]
|
|
782
914
|
});
|
|
783
915
|
}
|
|
784
|
-
var
|
|
916
|
+
var be = {
|
|
785
917
|
tooltip: "_tooltip_1de7z_1",
|
|
786
918
|
arrow: "_arrow_1de7z_13"
|
|
787
919
|
};
|
|
788
920
|
//#endregion
|
|
789
921
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
790
|
-
function
|
|
791
|
-
return /* @__PURE__ */ s(
|
|
922
|
+
function xe({ content: e, position: t = "top", children: n, className: r }) {
|
|
923
|
+
return /* @__PURE__ */ s(x.Provider, {
|
|
792
924
|
delayDuration: 80,
|
|
793
|
-
children: /* @__PURE__ */ c(
|
|
925
|
+
children: /* @__PURE__ */ c(x.Root, { children: [/* @__PURE__ */ s(x.Trigger, {
|
|
794
926
|
asChild: !0,
|
|
795
927
|
children: n
|
|
796
|
-
}), /* @__PURE__ */ s(
|
|
928
|
+
}), /* @__PURE__ */ s(x.Portal, { children: /* @__PURE__ */ c(x.Content, {
|
|
797
929
|
side: t,
|
|
798
930
|
sideOffset: 7,
|
|
799
|
-
className: [
|
|
800
|
-
children: [e, /* @__PURE__ */ s(
|
|
931
|
+
className: [be.tooltip, r].filter(Boolean).join(" "),
|
|
932
|
+
children: [e, /* @__PURE__ */ s(x.Arrow, { className: be.arrow })]
|
|
801
933
|
}) })] })
|
|
802
934
|
});
|
|
803
935
|
}
|
|
804
|
-
var
|
|
936
|
+
var W = {
|
|
805
937
|
wrapper: "_wrapper_1w5vh_1",
|
|
806
938
|
chart: "_chart_1w5vh_8",
|
|
807
939
|
svg: "_svg_1w5vh_33",
|
|
@@ -815,11 +947,11 @@ var G = {
|
|
|
815
947
|
legendItem: "_legendItem_1w5vh_90",
|
|
816
948
|
legendMark: "_legendMark_1w5vh_96",
|
|
817
949
|
legendLabel: "_legendLabel_1w5vh_102"
|
|
818
|
-
},
|
|
819
|
-
function
|
|
950
|
+
}, G = "var(--lv4)", K = 12, Se = 20, Ce = 8, we = 28, q = 20;
|
|
951
|
+
function Te(e) {
|
|
820
952
|
return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
|
|
821
953
|
}
|
|
822
|
-
function
|
|
954
|
+
function Ee({ series: e, labels: r, type: o = "line", height: l = 200, showLegend: u = !0, className: d }) {
|
|
823
955
|
let f = i(null), [p, m] = a(0), [h, g] = a(null);
|
|
824
956
|
n(() => {
|
|
825
957
|
let e = f.current;
|
|
@@ -827,18 +959,18 @@ function ye({ series: e, labels: r, type: o = "line", height: l = 200, showLegen
|
|
|
827
959
|
let t = new ResizeObserver(([e]) => m(e.contentRect.width));
|
|
828
960
|
return t.observe(e), m(e.clientWidth), () => t.disconnect();
|
|
829
961
|
}, []);
|
|
830
|
-
let _ = r?.length ?
|
|
962
|
+
let _ = r?.length ? we : Ce, v = Math.max(p - q - Se, 0), y = Math.max(l - K - _, 0), b = e.flatMap((e) => e.data.filter(Number.isFinite)), x = b.length ? Math.max(...b, 0) : 1, S = o === "bar" ? 0 : Math.min(...b, 0), C = x - S || 1, w = Math.max(...e.map((e) => e.data.length), 0), T = (e) => K + (1 - (e - S) / C) * y, E = (e) => w <= 1 ? q + v / 2 : q + e / (w - 1) * v, D = t((e) => {
|
|
831
963
|
if (w === 0) return;
|
|
832
964
|
let t = e.currentTarget.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
|
|
833
965
|
if (o === "line") {
|
|
834
|
-
let e = Math.round((n -
|
|
966
|
+
let e = Math.round((n - q) / v * (w - 1));
|
|
835
967
|
g({
|
|
836
968
|
index: Math.max(0, Math.min(w - 1, e)),
|
|
837
969
|
x: n,
|
|
838
970
|
y: r
|
|
839
971
|
});
|
|
840
972
|
} else {
|
|
841
|
-
let e = v / w, t = Math.floor((n -
|
|
973
|
+
let e = v / w, t = Math.floor((n - q) / e);
|
|
842
974
|
g({
|
|
843
975
|
index: Math.max(0, Math.min(w - 1, t)),
|
|
844
976
|
x: n,
|
|
@@ -850,31 +982,31 @@ function ye({ series: e, labels: r, type: o = "line", height: l = 200, showLegen
|
|
|
850
982
|
w,
|
|
851
983
|
v
|
|
852
984
|
]), O = t(() => g(null), []), k = /* @__PURE__ */ s("line", {
|
|
853
|
-
x1:
|
|
854
|
-
y1:
|
|
855
|
-
x2:
|
|
856
|
-
y2:
|
|
985
|
+
x1: q,
|
|
986
|
+
y1: K + y * .5,
|
|
987
|
+
x2: q + v,
|
|
988
|
+
y2: K + y * .5,
|
|
857
989
|
stroke: "var(--chart-midline)",
|
|
858
990
|
strokeWidth: "0.5"
|
|
859
991
|
}), A = /* @__PURE__ */ s("line", {
|
|
860
|
-
x1:
|
|
861
|
-
y1:
|
|
862
|
-
x2:
|
|
863
|
-
y2:
|
|
992
|
+
x1: q,
|
|
993
|
+
y1: K + y,
|
|
994
|
+
x2: q + v,
|
|
995
|
+
y2: K + y,
|
|
864
996
|
stroke: "var(--chart-baseline)",
|
|
865
997
|
strokeWidth: "1"
|
|
866
998
|
}), j = h && o === "bar" ? (() => {
|
|
867
999
|
let e = v / w;
|
|
868
1000
|
return /* @__PURE__ */ s("rect", {
|
|
869
|
-
x:
|
|
870
|
-
y:
|
|
1001
|
+
x: q + h.index * e,
|
|
1002
|
+
y: K,
|
|
871
1003
|
width: e,
|
|
872
1004
|
height: y,
|
|
873
1005
|
fill: "var(--chart-column-hover)"
|
|
874
1006
|
});
|
|
875
1007
|
})() : null, M = () => e.map((e, t) => {
|
|
876
1008
|
if (!e.data.length) return null;
|
|
877
|
-
let n = e.color ??
|
|
1009
|
+
let n = e.color ?? G;
|
|
878
1010
|
return /* @__PURE__ */ c("g", { children: [/* @__PURE__ */ s("polyline", {
|
|
879
1011
|
points: e.data.map((e, t) => `${E(t).toFixed(2)},${T(e).toFixed(2)}`).join(" "),
|
|
880
1012
|
fill: "none",
|
|
@@ -892,11 +1024,11 @@ function ye({ series: e, labels: r, type: o = "line", height: l = 200, showLegen
|
|
|
892
1024
|
fill: n
|
|
893
1025
|
}, t);
|
|
894
1026
|
})] }, t);
|
|
895
|
-
}),
|
|
1027
|
+
}), ee = () => {
|
|
896
1028
|
if (!w) return null;
|
|
897
|
-
let t = e.length, n = v / w, r = Math.max((n - 2 * (t + 1)) / t, 2), i =
|
|
1029
|
+
let t = e.length, n = v / w, r = Math.max((n - 2 * (t + 1)) / t, 2), i = K + y;
|
|
898
1030
|
return e.map((e, t) => e.data.map((a, o) => {
|
|
899
|
-
let c =
|
|
1031
|
+
let c = q + o * n + 2 + t * (r + 2), l = T(a);
|
|
900
1032
|
return /* @__PURE__ */ s("rect", {
|
|
901
1033
|
x: c,
|
|
902
1034
|
y: l,
|
|
@@ -905,29 +1037,29 @@ function ye({ series: e, labels: r, type: o = "line", height: l = 200, showLegen
|
|
|
905
1037
|
fill: e.color ?? "var(--chart-bar)"
|
|
906
1038
|
}, `${t}-${o}`);
|
|
907
1039
|
}));
|
|
908
|
-
},
|
|
1040
|
+
}, N = () => {
|
|
909
1041
|
if (!r?.length) return null;
|
|
910
|
-
let e =
|
|
1042
|
+
let e = K + y + 18;
|
|
911
1043
|
return r.map((t, n) => /* @__PURE__ */ s("text", {
|
|
912
|
-
x: o === "line" ? E(n) :
|
|
1044
|
+
x: o === "line" ? E(n) : q + (n + .5) * (v / w),
|
|
913
1045
|
y: e,
|
|
914
1046
|
textAnchor: "middle",
|
|
915
1047
|
fill: "var(--lv4)",
|
|
916
1048
|
style: { font: "var(--text-2xs)" },
|
|
917
1049
|
children: t
|
|
918
1050
|
}, n));
|
|
919
|
-
},
|
|
1051
|
+
}, P = h && o === "line" ? /* @__PURE__ */ s("line", {
|
|
920
1052
|
x1: E(h.index),
|
|
921
|
-
y1:
|
|
1053
|
+
y1: K,
|
|
922
1054
|
x2: E(h.index),
|
|
923
|
-
y2:
|
|
1055
|
+
y2: K + y,
|
|
924
1056
|
stroke: "var(--chart-crosshair)",
|
|
925
1057
|
strokeWidth: "1",
|
|
926
1058
|
strokeDasharray: "3 3"
|
|
927
|
-
}) : null,
|
|
1059
|
+
}) : null, F = h ? (() => {
|
|
928
1060
|
let t = r?.[h.index] ?? String(h.index + 1), n = Math.min(Math.max(h.x, 60), p - 60);
|
|
929
1061
|
return /* @__PURE__ */ c("div", {
|
|
930
|
-
className:
|
|
1062
|
+
className: W.tooltip,
|
|
931
1063
|
style: h.y < 80 ? {
|
|
932
1064
|
left: n,
|
|
933
1065
|
top: h.y + 12,
|
|
@@ -938,64 +1070,64 @@ function ye({ series: e, labels: r, type: o = "line", height: l = 200, showLegen
|
|
|
938
1070
|
transform: "translate(-50%, -100%)"
|
|
939
1071
|
},
|
|
940
1072
|
children: [/* @__PURE__ */ s("div", {
|
|
941
|
-
className:
|
|
1073
|
+
className: W.tooltipLabel,
|
|
942
1074
|
children: t
|
|
943
1075
|
}), e.map((e, t) => /* @__PURE__ */ c("div", {
|
|
944
|
-
className:
|
|
1076
|
+
className: W.tooltipRow,
|
|
945
1077
|
children: [
|
|
946
1078
|
/* @__PURE__ */ s("span", {
|
|
947
|
-
className:
|
|
948
|
-
style: { background: e.color ??
|
|
1079
|
+
className: W.tooltipDot,
|
|
1080
|
+
style: { background: e.color ?? G }
|
|
949
1081
|
}),
|
|
950
1082
|
/* @__PURE__ */ s("span", {
|
|
951
|
-
className:
|
|
1083
|
+
className: W.tooltipName,
|
|
952
1084
|
children: e.label
|
|
953
1085
|
}),
|
|
954
1086
|
/* @__PURE__ */ s("span", {
|
|
955
|
-
className:
|
|
956
|
-
children:
|
|
1087
|
+
className: W.tooltipValue,
|
|
1088
|
+
children: Te(e.data[h.index] ?? 0)
|
|
957
1089
|
})
|
|
958
1090
|
]
|
|
959
1091
|
}, t))]
|
|
960
1092
|
});
|
|
961
1093
|
})() : null;
|
|
962
1094
|
return /* @__PURE__ */ c("div", {
|
|
963
|
-
className: [
|
|
1095
|
+
className: [W.wrapper, d].filter(Boolean).join(" "),
|
|
964
1096
|
children: [/* @__PURE__ */ c("div", {
|
|
965
1097
|
ref: f,
|
|
966
|
-
className:
|
|
1098
|
+
className: W.chart,
|
|
967
1099
|
style: { height: l },
|
|
968
1100
|
children: [p > 0 && /* @__PURE__ */ c("svg", {
|
|
969
1101
|
width: p,
|
|
970
1102
|
height: l,
|
|
971
|
-
className:
|
|
1103
|
+
className: W.svg,
|
|
972
1104
|
onMouseMove: D,
|
|
973
1105
|
onMouseLeave: O,
|
|
974
1106
|
children: [
|
|
975
1107
|
k,
|
|
976
1108
|
A,
|
|
977
1109
|
j,
|
|
978
|
-
|
|
979
|
-
o === "line" ? M() :
|
|
980
|
-
|
|
1110
|
+
P,
|
|
1111
|
+
o === "line" ? M() : ee(),
|
|
1112
|
+
N()
|
|
981
1113
|
]
|
|
982
|
-
}),
|
|
1114
|
+
}), F]
|
|
983
1115
|
}), u && e.length > 1 && /* @__PURE__ */ s("div", {
|
|
984
|
-
className:
|
|
1116
|
+
className: W.legend,
|
|
985
1117
|
children: e.map((e, t) => /* @__PURE__ */ c("div", {
|
|
986
|
-
className:
|
|
1118
|
+
className: W.legendItem,
|
|
987
1119
|
children: [/* @__PURE__ */ s("div", {
|
|
988
|
-
className:
|
|
989
|
-
style: { background: e.color ??
|
|
1120
|
+
className: W.legendMark,
|
|
1121
|
+
style: { background: e.color ?? G }
|
|
990
1122
|
}), /* @__PURE__ */ s("span", {
|
|
991
|
-
className:
|
|
1123
|
+
className: W.legendLabel,
|
|
992
1124
|
children: e.label
|
|
993
1125
|
})]
|
|
994
1126
|
}, t))
|
|
995
1127
|
})]
|
|
996
1128
|
});
|
|
997
1129
|
}
|
|
998
|
-
var
|
|
1130
|
+
var J = {
|
|
999
1131
|
wrapper: "_wrapper_17ws4_1",
|
|
1000
1132
|
label: "_label_17ws4_7",
|
|
1001
1133
|
textarea: "_textarea_17ws4_12",
|
|
@@ -1004,14 +1136,14 @@ var Y = {
|
|
|
1004
1136
|
};
|
|
1005
1137
|
//#endregion
|
|
1006
1138
|
//#region src/components/Textarea/Textarea.tsx
|
|
1007
|
-
function
|
|
1139
|
+
function De({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...l }) {
|
|
1008
1140
|
let u = e.useId(), d = a || u, f = `${d}-error`, p = n || !i;
|
|
1009
1141
|
return /* @__PURE__ */ c("div", {
|
|
1010
|
-
className: `${
|
|
1142
|
+
className: `${J.wrapper} ${r}`,
|
|
1011
1143
|
children: [
|
|
1012
1144
|
t && /* @__PURE__ */ c("label", {
|
|
1013
1145
|
htmlFor: d,
|
|
1014
|
-
className:
|
|
1146
|
+
className: J.label,
|
|
1015
1147
|
children: [t, l.required && /* @__PURE__ */ s("span", {
|
|
1016
1148
|
"aria-label": "required",
|
|
1017
1149
|
children: " *"
|
|
@@ -1020,48 +1152,48 @@ function be({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
|
|
|
1020
1152
|
/* @__PURE__ */ s("textarea", {
|
|
1021
1153
|
id: d,
|
|
1022
1154
|
rows: o,
|
|
1023
|
-
className: `${
|
|
1155
|
+
className: `${J.textarea} ${p ? J.error : ""}`,
|
|
1024
1156
|
"aria-invalid": p ? "true" : "false",
|
|
1025
1157
|
"aria-describedby": n ? f : void 0,
|
|
1026
1158
|
...l
|
|
1027
1159
|
}),
|
|
1028
1160
|
n && /* @__PURE__ */ s("span", {
|
|
1029
1161
|
id: f,
|
|
1030
|
-
className:
|
|
1162
|
+
className: J.errorText,
|
|
1031
1163
|
role: "alert",
|
|
1032
1164
|
children: n
|
|
1033
1165
|
})
|
|
1034
1166
|
]
|
|
1035
1167
|
});
|
|
1036
1168
|
}
|
|
1037
|
-
var
|
|
1169
|
+
var Y = {
|
|
1038
1170
|
overlay: "_overlay_xud7c_1",
|
|
1039
1171
|
content: "_content_xud7c_8",
|
|
1040
1172
|
title: "_title_xud7c_26",
|
|
1041
1173
|
description: "_description_xud7c_34",
|
|
1042
1174
|
close: "_close_xud7c_40",
|
|
1043
1175
|
srOnly: "_srOnly_xud7c_62"
|
|
1044
|
-
},
|
|
1176
|
+
}, Oe = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: l = !0 }) => /* @__PURE__ */ c(S.Root, {
|
|
1045
1177
|
open: n,
|
|
1046
1178
|
onOpenChange: r,
|
|
1047
|
-
children: [e && /* @__PURE__ */ s(
|
|
1179
|
+
children: [e && /* @__PURE__ */ s(S.Trigger, {
|
|
1048
1180
|
asChild: !0,
|
|
1049
1181
|
children: e
|
|
1050
|
-
}), /* @__PURE__ */ c(
|
|
1051
|
-
className: `${
|
|
1182
|
+
}), /* @__PURE__ */ c(S.Portal, { children: [/* @__PURE__ */ s(S.Overlay, { className: Y.overlay }), /* @__PURE__ */ c(S.Content, {
|
|
1183
|
+
className: `${Y.content} ${o}`,
|
|
1052
1184
|
children: [
|
|
1053
|
-
/* @__PURE__ */ s(
|
|
1054
|
-
className: i ?
|
|
1185
|
+
/* @__PURE__ */ s(S.Title, {
|
|
1186
|
+
className: i ? Y.title : Y.srOnly,
|
|
1055
1187
|
children: i || "Dialog"
|
|
1056
1188
|
}),
|
|
1057
|
-
a && /* @__PURE__ */ s(
|
|
1058
|
-
className:
|
|
1189
|
+
a && /* @__PURE__ */ s(S.Description, {
|
|
1190
|
+
className: Y.description,
|
|
1059
1191
|
children: a
|
|
1060
1192
|
}),
|
|
1061
|
-
l && /* @__PURE__ */ s(
|
|
1062
|
-
className:
|
|
1193
|
+
l && /* @__PURE__ */ s(S.Close, {
|
|
1194
|
+
className: Y.close,
|
|
1063
1195
|
"aria-label": "Close",
|
|
1064
|
-
children: /* @__PURE__ */ s(
|
|
1196
|
+
children: /* @__PURE__ */ s(_, {
|
|
1065
1197
|
size: 16,
|
|
1066
1198
|
color: "currentColor"
|
|
1067
1199
|
})
|
|
@@ -1069,7 +1201,7 @@ var X = {
|
|
|
1069
1201
|
t
|
|
1070
1202
|
]
|
|
1071
1203
|
})] })]
|
|
1072
|
-
}),
|
|
1204
|
+
}), X = {
|
|
1073
1205
|
wrapper: "_wrapper_aimna_1",
|
|
1074
1206
|
label: "_label_aimna_7",
|
|
1075
1207
|
trigger: "_trigger_aimna_12",
|
|
@@ -1088,7 +1220,7 @@ var X = {
|
|
|
1088
1220
|
today: "_today_aimna_131",
|
|
1089
1221
|
selected: "_selected_aimna_136",
|
|
1090
1222
|
errorText: "_errorText_aimna_142"
|
|
1091
|
-
},
|
|
1223
|
+
}, ke = [
|
|
1092
1224
|
"Mo",
|
|
1093
1225
|
"Tu",
|
|
1094
1226
|
"We",
|
|
@@ -1096,7 +1228,7 @@ var X = {
|
|
|
1096
1228
|
"Fr",
|
|
1097
1229
|
"Sa",
|
|
1098
1230
|
"Su"
|
|
1099
|
-
],
|
|
1231
|
+
], Ae = [
|
|
1100
1232
|
"January",
|
|
1101
1233
|
"February",
|
|
1102
1234
|
"March",
|
|
@@ -1110,20 +1242,20 @@ var X = {
|
|
|
1110
1242
|
"November",
|
|
1111
1243
|
"December"
|
|
1112
1244
|
];
|
|
1113
|
-
function
|
|
1245
|
+
function Z(e) {
|
|
1114
1246
|
let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
|
|
1115
1247
|
return `${e.getFullYear()}-${t}-${n}`;
|
|
1116
1248
|
}
|
|
1117
|
-
function
|
|
1249
|
+
function Q(e, t) {
|
|
1118
1250
|
return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
1119
1251
|
}
|
|
1120
|
-
function
|
|
1252
|
+
function je(e, t) {
|
|
1121
1253
|
let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
|
|
1122
1254
|
for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
|
|
1123
1255
|
return r;
|
|
1124
1256
|
}
|
|
1125
|
-
var
|
|
1126
|
-
let g = e.useId(), _ = `${g}-error`, v = !!o || !l, [
|
|
1257
|
+
var Me = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: o, isValid: l = !0, disabled: p = !1, className: m = "", formatDate: h = Z }) => {
|
|
1258
|
+
let g = e.useId(), _ = `${g}-error`, v = !!o || !l, [y, x] = a(!1), S = /* @__PURE__ */ new Date(), C = t ?? S, [w, T] = a(C.getFullYear()), [E, D] = a(C.getMonth()), [O, k] = a(C), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), M = (e) => {
|
|
1127
1259
|
if (e) {
|
|
1128
1260
|
let e = t ?? /* @__PURE__ */ new Date();
|
|
1129
1261
|
k(e), T(e.getFullYear()), D(e.getMonth());
|
|
@@ -1131,9 +1263,9 @@ var Te = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1131
1263
|
x(e);
|
|
1132
1264
|
};
|
|
1133
1265
|
e.useEffect(() => {
|
|
1134
|
-
j.current &&= (A.current.get(
|
|
1266
|
+
j.current &&= (A.current.get(Z(O))?.focus(), !1);
|
|
1135
1267
|
}, [O]);
|
|
1136
|
-
let
|
|
1268
|
+
let ee = (e, t) => {
|
|
1137
1269
|
let n = new Date(t), r = {
|
|
1138
1270
|
ArrowLeft: -1,
|
|
1139
1271
|
ArrowRight: 1,
|
|
@@ -1150,60 +1282,60 @@ var Te = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1150
1282
|
e.preventDefault(), j.current = !0, k(n), T(n.getFullYear()), D(n.getMonth());
|
|
1151
1283
|
};
|
|
1152
1284
|
e.useEffect(() => {
|
|
1153
|
-
|
|
1154
|
-
}, [
|
|
1155
|
-
let
|
|
1285
|
+
y && t && (T(t.getFullYear()), D(t.getMonth()));
|
|
1286
|
+
}, [y]);
|
|
1287
|
+
let N = () => {
|
|
1156
1288
|
E === 0 ? (D(11), T(w - 1)) : D(E - 1);
|
|
1157
|
-
},
|
|
1289
|
+
}, P = () => {
|
|
1158
1290
|
E === 11 ? (D(0), T(w + 1)) : D(E + 1);
|
|
1159
|
-
},
|
|
1291
|
+
}, F = (e) => {
|
|
1160
1292
|
n?.(e), x(!1);
|
|
1161
|
-
},
|
|
1293
|
+
}, I = je(w, E);
|
|
1162
1294
|
return /* @__PURE__ */ c("div", {
|
|
1163
|
-
className: `${
|
|
1295
|
+
className: `${X.wrapper} ${m}`,
|
|
1164
1296
|
children: [
|
|
1165
1297
|
r && /* @__PURE__ */ s("span", {
|
|
1166
1298
|
id: `${g}-label`,
|
|
1167
|
-
className:
|
|
1299
|
+
className: X.label,
|
|
1168
1300
|
children: r
|
|
1169
1301
|
}),
|
|
1170
|
-
/* @__PURE__ */ c(
|
|
1171
|
-
open:
|
|
1302
|
+
/* @__PURE__ */ c(b.Root, {
|
|
1303
|
+
open: y,
|
|
1172
1304
|
onOpenChange: M,
|
|
1173
|
-
children: [/* @__PURE__ */ s(
|
|
1305
|
+
children: [/* @__PURE__ */ s(b.Trigger, {
|
|
1174
1306
|
asChild: !0,
|
|
1175
1307
|
children: /* @__PURE__ */ c("button", {
|
|
1176
1308
|
type: "button",
|
|
1177
|
-
className: `${
|
|
1309
|
+
className: `${X.trigger} ${v ? X.error : ""}`,
|
|
1178
1310
|
disabled: p,
|
|
1179
1311
|
"aria-labelledby": r ? `${g}-label ${g}-value` : void 0,
|
|
1180
1312
|
"aria-invalid": v ? "true" : "false",
|
|
1181
1313
|
"aria-describedby": o ? _ : void 0,
|
|
1182
1314
|
children: [/* @__PURE__ */ s("span", {
|
|
1183
1315
|
id: `${g}-value`,
|
|
1184
|
-
className: t ?
|
|
1316
|
+
className: t ? X.valueText : X.placeholder,
|
|
1185
1317
|
children: t ? h(t) : i
|
|
1186
1318
|
}), /* @__PURE__ */ s(u, {
|
|
1187
1319
|
size: 14,
|
|
1188
1320
|
color: "currentColor"
|
|
1189
1321
|
})]
|
|
1190
1322
|
})
|
|
1191
|
-
}), /* @__PURE__ */ s(
|
|
1192
|
-
className:
|
|
1323
|
+
}), /* @__PURE__ */ s(b.Portal, { children: /* @__PURE__ */ c(b.Content, {
|
|
1324
|
+
className: X.calendar,
|
|
1193
1325
|
align: "start",
|
|
1194
1326
|
sideOffset: 5,
|
|
1195
1327
|
"aria-label": r ? `${r} calendar` : "Choose a date",
|
|
1196
1328
|
onOpenAutoFocus: (e) => {
|
|
1197
|
-
e.preventDefault(), A.current.get(
|
|
1329
|
+
e.preventDefault(), A.current.get(Z(O))?.focus();
|
|
1198
1330
|
},
|
|
1199
1331
|
children: [
|
|
1200
1332
|
/* @__PURE__ */ c("div", {
|
|
1201
|
-
className:
|
|
1333
|
+
className: X.header,
|
|
1202
1334
|
children: [
|
|
1203
1335
|
/* @__PURE__ */ s("button", {
|
|
1204
1336
|
type: "button",
|
|
1205
|
-
className:
|
|
1206
|
-
onClick:
|
|
1337
|
+
className: X.navButton,
|
|
1338
|
+
onClick: N,
|
|
1207
1339
|
"aria-label": "Previous month",
|
|
1208
1340
|
children: /* @__PURE__ */ s(d, {
|
|
1209
1341
|
size: 14,
|
|
@@ -1211,17 +1343,17 @@ var Te = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1211
1343
|
})
|
|
1212
1344
|
}),
|
|
1213
1345
|
/* @__PURE__ */ c("span", {
|
|
1214
|
-
className:
|
|
1346
|
+
className: X.monthLabel,
|
|
1215
1347
|
children: [
|
|
1216
|
-
|
|
1348
|
+
Ae[E],
|
|
1217
1349
|
" ",
|
|
1218
1350
|
w
|
|
1219
1351
|
]
|
|
1220
1352
|
}),
|
|
1221
1353
|
/* @__PURE__ */ s("button", {
|
|
1222
1354
|
type: "button",
|
|
1223
|
-
className:
|
|
1224
|
-
onClick:
|
|
1355
|
+
className: X.navButton,
|
|
1356
|
+
onClick: P,
|
|
1225
1357
|
"aria-label": "Next month",
|
|
1226
1358
|
children: /* @__PURE__ */ s(f, {
|
|
1227
1359
|
size: 14,
|
|
@@ -1231,27 +1363,27 @@ var Te = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1231
1363
|
]
|
|
1232
1364
|
}),
|
|
1233
1365
|
/* @__PURE__ */ s("div", {
|
|
1234
|
-
className:
|
|
1235
|
-
children:
|
|
1236
|
-
className:
|
|
1366
|
+
className: X.weekdays,
|
|
1367
|
+
children: ke.map((e) => /* @__PURE__ */ s("span", {
|
|
1368
|
+
className: X.weekday,
|
|
1237
1369
|
children: e
|
|
1238
1370
|
}, e))
|
|
1239
1371
|
}),
|
|
1240
1372
|
/* @__PURE__ */ s("div", {
|
|
1241
|
-
className:
|
|
1242
|
-
children:
|
|
1243
|
-
let n = e.getMonth() !== E, r =
|
|
1373
|
+
className: X.grid,
|
|
1374
|
+
children: I.map((e) => {
|
|
1375
|
+
let n = e.getMonth() !== E, r = Q(e, t), i = Q(e, S);
|
|
1244
1376
|
return /* @__PURE__ */ s("button", {
|
|
1245
1377
|
type: "button",
|
|
1246
1378
|
className: [
|
|
1247
|
-
|
|
1248
|
-
n ?
|
|
1249
|
-
r ?
|
|
1250
|
-
i && !r ?
|
|
1379
|
+
X.day,
|
|
1380
|
+
n ? X.outside : "",
|
|
1381
|
+
r ? X.selected : "",
|
|
1382
|
+
i && !r ? X.today : ""
|
|
1251
1383
|
].filter(Boolean).join(" "),
|
|
1252
|
-
onClick: () =>
|
|
1384
|
+
onClick: () => F(e),
|
|
1253
1385
|
ref: (t) => {
|
|
1254
|
-
t ? A.current.set(
|
|
1386
|
+
t ? A.current.set(Z(e), t) : A.current.delete(Z(e));
|
|
1255
1387
|
},
|
|
1256
1388
|
"aria-label": e.toLocaleDateString(void 0, {
|
|
1257
1389
|
weekday: "long",
|
|
@@ -1261,8 +1393,8 @@ var Te = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1261
1393
|
}),
|
|
1262
1394
|
"aria-pressed": r,
|
|
1263
1395
|
"aria-current": i ? "date" : void 0,
|
|
1264
|
-
tabIndex:
|
|
1265
|
-
onKeyDown: (t) =>
|
|
1396
|
+
tabIndex: Q(e, O) || O.getMonth() !== E && e.getDate() === 1 && !n ? 0 : -1,
|
|
1397
|
+
onKeyDown: (t) => ee(t, e),
|
|
1266
1398
|
children: e.getDate()
|
|
1267
1399
|
}, e.toISOString());
|
|
1268
1400
|
})
|
|
@@ -1272,16 +1404,16 @@ var Te = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1272
1404
|
}),
|
|
1273
1405
|
o && /* @__PURE__ */ s("span", {
|
|
1274
1406
|
id: _,
|
|
1275
|
-
className:
|
|
1407
|
+
className: X.errorText,
|
|
1276
1408
|
role: "alert",
|
|
1277
1409
|
children: o
|
|
1278
1410
|
})
|
|
1279
1411
|
]
|
|
1280
1412
|
});
|
|
1281
|
-
},
|
|
1413
|
+
}, Ne = {
|
|
1282
1414
|
spinner: "_spinner_wspyi_1",
|
|
1283
1415
|
frame: "_frame_wspyi_8"
|
|
1284
|
-
},
|
|
1416
|
+
}, Pe = {
|
|
1285
1417
|
accelerate: {
|
|
1286
1418
|
viewBox: "0 0 7 5",
|
|
1287
1419
|
delay: 50,
|
|
@@ -1542,13 +1674,13 @@ var Te = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1542
1674
|
"M3 4H4V5H3V4Z M5 3H6V4H5V3Z M6 1H7V2H6V1Z M1 3H2V4H1V3Z M0 1H1V2H0V1Z M2 2H5V3H2V2Z M1 0H6V1H1V0Z"
|
|
1543
1675
|
]
|
|
1544
1676
|
}
|
|
1545
|
-
},
|
|
1677
|
+
}, Fe = Object.keys(Pe);
|
|
1546
1678
|
//#endregion
|
|
1547
1679
|
//#region src/components/Spinner/Spinner.tsx
|
|
1548
|
-
function
|
|
1549
|
-
let o =
|
|
1680
|
+
function Ie({ name: e = Fe[0], size: t = 21, color: n = "currentColor", delay: r, className: i = "", "aria-label": a = "Loading" }) {
|
|
1681
|
+
let o = Pe[e], [, , c, l] = o.viewBox.split(" ").map(Number), u = l / c, d = typeof t == "number" ? t * u : `calc(${t} * ${u})`, f = r ?? o.delay, p = o.frames.length, m = p * f;
|
|
1550
1682
|
return /* @__PURE__ */ s("svg", {
|
|
1551
|
-
className: `${
|
|
1683
|
+
className: `${Ne.spinner} ${i}`,
|
|
1552
1684
|
width: t,
|
|
1553
1685
|
height: d,
|
|
1554
1686
|
viewBox: o.viewBox,
|
|
@@ -1557,7 +1689,7 @@ function ke({ name: e = Oe[0], size: t = 21, color: n = "currentColor", delay: r
|
|
|
1557
1689
|
"aria-label": a,
|
|
1558
1690
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1559
1691
|
children: o.frames.map((e, t) => e ? /* @__PURE__ */ s("path", {
|
|
1560
|
-
className:
|
|
1692
|
+
className: Ne.frame,
|
|
1561
1693
|
d: e,
|
|
1562
1694
|
fill: n,
|
|
1563
1695
|
style: {
|
|
@@ -1567,5 +1699,71 @@ function ke({ name: e = Oe[0], size: t = 21, color: n = "currentColor", delay: r
|
|
|
1567
1699
|
}, t) : null)
|
|
1568
1700
|
});
|
|
1569
1701
|
}
|
|
1702
|
+
var $ = {
|
|
1703
|
+
root: "_root_bfuyc_1",
|
|
1704
|
+
micro: "_micro_bfuyc_7",
|
|
1705
|
+
default: "_default_bfuyc_8",
|
|
1706
|
+
list: "_list_bfuyc_10",
|
|
1707
|
+
control: "_control_bfuyc_22",
|
|
1708
|
+
link: "_link_bfuyc_45",
|
|
1709
|
+
icon: "_icon_bfuyc_46",
|
|
1710
|
+
caret: "_caret_bfuyc_46",
|
|
1711
|
+
viewportPosition: "_viewportPosition_bfuyc_49",
|
|
1712
|
+
viewport: "_viewport_bfuyc_49",
|
|
1713
|
+
content: "_content_bfuyc_73"
|
|
1714
|
+
}, Le = e.forwardRef(({ size: e = "default", className: t = "", children: n, "aria-label": r = "Main navigation", ...i }, a) => /* @__PURE__ */ c(C.Root, {
|
|
1715
|
+
...i,
|
|
1716
|
+
ref: a,
|
|
1717
|
+
"aria-label": r,
|
|
1718
|
+
className: `${$.root} ${$[e]} ${t}`,
|
|
1719
|
+
children: [n, /* @__PURE__ */ s("div", {
|
|
1720
|
+
className: $.viewportPosition,
|
|
1721
|
+
children: /* @__PURE__ */ s(C.Viewport, { className: $.viewport })
|
|
1722
|
+
})]
|
|
1723
|
+
}));
|
|
1724
|
+
Le.displayName = "NavigationMenu";
|
|
1725
|
+
var Re = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ s(C.List, {
|
|
1726
|
+
...t,
|
|
1727
|
+
ref: n,
|
|
1728
|
+
className: `${$.list} ${e}`
|
|
1729
|
+
}));
|
|
1730
|
+
Re.displayName = "NavigationMenuList";
|
|
1731
|
+
var ze = C.Item, Be = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => /* @__PURE__ */ c(C.Trigger, {
|
|
1732
|
+
...i,
|
|
1733
|
+
ref: a,
|
|
1734
|
+
className: `${$.control} ${t}`,
|
|
1735
|
+
children: [
|
|
1736
|
+
n && /* @__PURE__ */ s("span", {
|
|
1737
|
+
className: $.icon,
|
|
1738
|
+
"aria-hidden": "true",
|
|
1739
|
+
children: e.cloneElement(n, {
|
|
1740
|
+
size: 14,
|
|
1741
|
+
color: "currentColor"
|
|
1742
|
+
})
|
|
1743
|
+
}),
|
|
1744
|
+
r,
|
|
1745
|
+
/* @__PURE__ */ s("span", {
|
|
1746
|
+
className: $.caret,
|
|
1747
|
+
"aria-hidden": "true",
|
|
1748
|
+
children: /* @__PURE__ */ s(u, {
|
|
1749
|
+
size: 14,
|
|
1750
|
+
color: "currentColor"
|
|
1751
|
+
})
|
|
1752
|
+
})
|
|
1753
|
+
]
|
|
1754
|
+
}));
|
|
1755
|
+
Be.displayName = "NavigationMenuTrigger";
|
|
1756
|
+
var Ve = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ s(C.Content, {
|
|
1757
|
+
...t,
|
|
1758
|
+
ref: n,
|
|
1759
|
+
className: `${$.content} ${e}`
|
|
1760
|
+
}));
|
|
1761
|
+
Ve.displayName = "NavigationMenuContent";
|
|
1762
|
+
var He = e.forwardRef(({ variant: e = "panel", className: t = "", ...n }, r) => /* @__PURE__ */ s(C.Link, {
|
|
1763
|
+
...n,
|
|
1764
|
+
ref: r,
|
|
1765
|
+
className: `${e === "navigation" ? $.control : $.link} ${t}`
|
|
1766
|
+
}));
|
|
1767
|
+
He.displayName = "NavigationMenuLink";
|
|
1570
1768
|
//#endregion
|
|
1571
|
-
export {
|
|
1769
|
+
export { k as Base, ge as Breadcrumbs, T as Button, Ee as Chart, D as Checkbox, ye as Chip, Me as DatePicker, j as FilterPanelBase, F as InputField, Oe as Modal, Le as NavigationMenu, Ve as NavigationMenuContent, ze as NavigationMenuItem, He as NavigationMenuLink, Re as NavigationMenuList, Be as NavigationMenuTrigger, oe as Popover, _e as ProgressBar, te as RadioButton, N as SearchField, ie as Select, re as Slider, Ie as Spinner, se as Table, ue as TableCell, ce as TableHeader, fe as TableIcon, le as TableRow, de as TableValue, pe as Tabs, De as Textarea, ne as ToggleSwitch, xe as Tooltip, Fe as spinnerNames };
|