@wirecore/wirelayer-react 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Checkbox-BMRax6m4.js +49 -0
- package/dist/ContextMenu-BD72S5n6.js +1452 -0
- package/dist/{Highlight-CX30-nP7.js → Highlight-43-H9459.js} +93 -86
- package/dist/Input-C8T3WLd5.js +119 -0
- package/dist/PasswordInput-SjO66gZB.js +422 -0
- package/dist/Select-7rfeNmJb.js +242 -0
- package/dist/Slider-Bfm_jjYE.js +80 -0
- package/dist/{Tree-BiPIkmwT.js → Tree-DVjwp6FG.js} +1 -1
- package/dist/chart.js +1 -1
- package/dist/components/AngleSlider/AngleSlider.d.ts +3 -1
- package/dist/components/AngleSlider/AngleSlider.d.ts.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +3 -1
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.d.ts +3 -1
- package/dist/components/CascadeSelect/CascadeSelect.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +3 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Confirm/ConfirmDialog.d.ts +6 -1
- package/dist/components/Confirm/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/Confirm/confirm.d.ts +7 -0
- package/dist/components/Confirm/confirm.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +3 -1
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePickerBase.d.ts +3 -1
- package/dist/components/DatePicker/DatePickerBase.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +3 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +3 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +3 -1
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/DurationInput/DurationInput.d.ts +3 -1
- package/dist/components/DurationInput/DurationInput.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +3 -1
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/Knob/Knob.d.ts +3 -1
- package/dist/components/Knob/Knob.d.ts.map +1 -1
- package/dist/components/Listbox/Listbox.d.ts +3 -1
- package/dist/components/Listbox/Listbox.d.ts.map +1 -1
- package/dist/components/MonthPicker/MonthPicker.d.ts +3 -1
- package/dist/components/MonthPicker/MonthPicker.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/PinInput/PinInput.d.ts +3 -1
- package/dist/components/PinInput/PinInput.d.ts.map +1 -1
- package/dist/components/QuarterPicker/QuarterPicker.d.ts +3 -1
- package/dist/components/QuarterPicker/QuarterPicker.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/Rating/Rating.d.ts +3 -1
- package/dist/components/Rating/Rating.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/list.d.ts +6 -1
- package/dist/components/Select/list.d.ts.map +1 -1
- package/dist/components/SelectionCard/SelectionCard.d.ts +1 -1
- package/dist/components/SelectionCard/SelectionCard.d.ts.map +1 -1
- package/dist/components/Slider/Slider.d.ts +3 -1
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/TagsInput/TagsInput.d.ts +3 -1
- package/dist/components/TagsInput/TagsInput.d.ts.map +1 -1
- package/dist/components/TimePicker/TimePicker.d.ts +3 -1
- package/dist/components/TimePicker/TimePicker.d.ts.map +1 -1
- package/dist/components/TimeRangePicker/TimeRangePicker.d.ts +3 -1
- package/dist/components/TimeRangePicker/TimeRangePicker.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +3 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelect.d.ts +3 -1
- package/dist/components/TreeSelect/TreeSelect.d.ts.map +1 -1
- package/dist/components/YearPicker/YearPicker.d.ts +3 -1
- package/dist/components/YearPicker/YearPicker.d.ts.map +1 -1
- package/dist/data-table/DataTable.d.ts +10 -2
- package/dist/data-table/DataTable.d.ts.map +1 -1
- package/dist/data-table.js +952 -949
- package/dist/editor.js +1 -1
- package/dist/form/FormField.d.ts +5 -1
- package/dist/form/FormField.d.ts.map +1 -1
- package/dist/form.js +7 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3231 -3150
- package/dist/label-for-DYgV5EwH.js +9 -0
- package/dist/pdf.js +3 -3
- package/dist/sources/ActionBar.css +1 -0
- package/dist/sources/AppShell.css +1 -0
- package/dist/sources/ChatPrompt.css +1 -0
- package/dist/sources/Gallery.css +1 -0
- package/dist/sources/IconButton.css +1 -0
- package/dist/sources/Image.css +1 -0
- package/dist/sources/ImageCropper.css +1 -0
- package/dist/sources/InlineEdit.css +1 -0
- package/dist/sources/Marquee.css +1 -0
- package/dist/sources/MegaMenu.css +1 -0
- package/dist/sources/Menubar.css +1 -0
- package/dist/sources/OrderList.css +1 -0
- package/dist/sources/PickList.css +1 -0
- package/dist/sources/ScrollTop.css +1 -0
- package/dist/utils/label-for.d.ts +3 -0
- package/dist/utils/label-for.d.ts.map +1 -0
- package/dist/virtual/VirtualSelect.d.ts +1 -1
- package/dist/virtual/VirtualSelect.d.ts.map +1 -1
- package/dist/virtual.js +245 -236
- package/fonts.css +2 -0
- package/llms-full.txt +180 -3
- package/llms.txt +4 -1
- package/package.json +7 -3
- package/theme.css +14 -0
- package/dist/Checkbox-CZTyKWId.js +0 -44
- package/dist/ContextMenu-CjDI7Jy5.js +0 -1434
- package/dist/Input-D8U-Auys.js +0 -109
- package/dist/PasswordInput-DivSjtN8.js +0 -420
- package/dist/Select-Cx3KwSzU.js +0 -234
- package/dist/Slider-x-SsBc1d.js +0 -74
|
@@ -1,1434 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { a as e, i as t, n } from "./RecipesProvider-0idafuGm.js";
|
|
3
|
-
import { r, t as i } from "./InputStatus-hVzkU_4q.js";
|
|
4
|
-
import { t as a } from "./Input-D8U-Auys.js";
|
|
5
|
-
import { t as o } from "./Select-Cx3KwSzU.js";
|
|
6
|
-
import { a as s, c, n as l, o as u } from "./Highlight-CX30-nP7.js";
|
|
7
|
-
import { SUBMENU_GUTTER as d, allListOptionsState as f, anchorBox as p, createLongPress as m, datePicker as h, defaultNumberFormat as g, filterMenuEntries as _, fromWallIso as v, highlightFirstMenuItem as ee, indexListOptions as y, insertIntoTextControl as b, isoWeekday as x, linkTarget as S, localeWeekInfo as C, menu as w, menuSearchKey as T, multiSelect as E, numberInput as te, numberInputKey as D, pageForSize as O, pagination as k, parseLocaleNumber as A, parsePastedDate as ne, parsePastedRange as j, pluralText as M, rowWeekNumber as N, setTextControlValue as P, skeleton as re, textarea as F, textareaParts as ie, timeSlots as I, timeZoneLabel as ae, timeZoneLongLabel as oe, toNumberInputValue as se, toOverlayAnchor as L, toWallIso as ce, todayIso as le, toggleAllListOptions as R, zonedToInstant as z } from "@wirecore/wirelayer-recipes";
|
|
8
|
-
import { CalendarDays as ue, Check as de, ChevronDown as fe, ChevronLeft as pe, ChevronRight as B, ChevronUp as V, ChevronsLeft as H, ChevronsRight as U, Circle as W, LoaderCircle as me, Minus as he, Plus as ge, X as _e } from "lucide-react";
|
|
9
|
-
import { Fragment as ve, createContext as G, createElement as ye, useContext as be, useEffect as xe, useId as Se, useImperativeHandle as Ce, useLayoutEffect as we, useMemo as Te, useRef as Ee, useState as K } from "react";
|
|
10
|
-
import { useFilter as De } from "@ark-ui/react/locale";
|
|
11
|
-
import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
|
|
12
|
-
import { Menu as X } from "@ark-ui/react/menu";
|
|
13
|
-
import { Portal as Oe } from "@ark-ui/react/portal";
|
|
14
|
-
import { Field as ke, useFieldContext as Ae } from "@ark-ui/react/field";
|
|
15
|
-
import { Pagination as je } from "@ark-ui/react/pagination";
|
|
16
|
-
import { createListCollection as Me } from "@ark-ui/react/collection";
|
|
17
|
-
import { Select as Z } from "@ark-ui/react/select";
|
|
18
|
-
import { DatePicker as Q, useDatePickerContext as Ne } from "@ark-ui/react/date-picker";
|
|
19
|
-
import { DateInput as $ } from "@ark-ui/react/date-input";
|
|
20
|
-
import { CalendarDateTime as Pe, DateFormatter as Fe, Time as Ie, parseDate as Le, parseDateTime as Re, toCalendarDateTime as ze } from "@internationalized/date";
|
|
21
|
-
import { NumberInput as Be } from "@ark-ui/react/number-input";
|
|
22
|
-
//#region src/overlay.ts
|
|
23
|
-
var Ve = (e) => e && "current" in e ? e.current : e ?? null, He = typeof document > "u" ? xe : we;
|
|
24
|
-
function Ue(e) {
|
|
25
|
-
let [t, n] = K(e.defaultOpen ?? !1), [r, i] = K(null), a = e.open ?? t, o = r ?? Ve(e.anchor), s = Ee(null), c = Ee(!1);
|
|
26
|
-
c.current = !!o;
|
|
27
|
-
let l = Ee(a);
|
|
28
|
-
He(() => {
|
|
29
|
-
if (l.current !== a) {
|
|
30
|
-
if (l.current = a, a) s.current = document.activeElement;
|
|
31
|
-
else if (e.restoreFocus) {
|
|
32
|
-
let e = s.current, t = () => {
|
|
33
|
-
if (l.current) return;
|
|
34
|
-
let t = document.activeElement;
|
|
35
|
-
(!t || t === document.body || !t.isConnected || t.closest("[data-scope=menu]")) && e?.focus();
|
|
36
|
-
};
|
|
37
|
-
requestAnimationFrame(() => {
|
|
38
|
-
t(), setTimeout(t, 50);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}, [a]);
|
|
43
|
-
let u = (t) => {
|
|
44
|
-
n(t), e.onOpenChange?.(t);
|
|
45
|
-
}, d = (e) => {
|
|
46
|
-
e && i(null), u(e);
|
|
47
|
-
}, f = {
|
|
48
|
-
open(e) {
|
|
49
|
-
i(L(e)), u(!0);
|
|
50
|
-
},
|
|
51
|
-
close: () => u(!1),
|
|
52
|
-
toggle(e) {
|
|
53
|
-
a ? f.close() : f.open(e);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
return Ce(e.ref, () => f), {
|
|
57
|
-
isOpen: a,
|
|
58
|
-
anchor: o,
|
|
59
|
-
anchorPoint: o && !("getBoundingClientRect" in o) ? o : void 0,
|
|
60
|
-
onOpenChange: d,
|
|
61
|
-
handle: f,
|
|
62
|
-
positioning: (e) => o ? "getBoundingClientRect" in o ? {
|
|
63
|
-
...e,
|
|
64
|
-
getAnchorElement: () => o
|
|
65
|
-
} : {
|
|
66
|
-
...e,
|
|
67
|
-
getAnchorRect: () => p(o)
|
|
68
|
-
} : e,
|
|
69
|
-
finalFocusEl: () => c.current ? s.current : null
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region src/components/Menu/Menu.tsx
|
|
74
|
-
var We = G(null);
|
|
75
|
-
function Ge(e) {
|
|
76
|
-
let [t, n] = K({
|
|
77
|
-
items: e.items,
|
|
78
|
-
checked: {},
|
|
79
|
-
radio: {}
|
|
80
|
-
}), r = t.items === e.items ? t : {
|
|
81
|
-
items: e.items,
|
|
82
|
-
checked: {},
|
|
83
|
-
radio: {}
|
|
84
|
-
};
|
|
85
|
-
return r !== t && n(r), {
|
|
86
|
-
checked: (e) => r.checked[e.value] ?? e.checked ?? !1,
|
|
87
|
-
setChecked: (t, i) => {
|
|
88
|
-
n({
|
|
89
|
-
...r,
|
|
90
|
-
checked: {
|
|
91
|
-
...r.checked,
|
|
92
|
-
[t.value]: i
|
|
93
|
-
}
|
|
94
|
-
}), e.onCheckedChange?.(t.value, i);
|
|
95
|
-
},
|
|
96
|
-
radio: (e) => r.radio[e.name] ?? e.value,
|
|
97
|
-
setRadio: (t, i) => {
|
|
98
|
-
n({
|
|
99
|
-
...r,
|
|
100
|
-
radio: {
|
|
101
|
-
...r.radio,
|
|
102
|
-
[t.name]: i
|
|
103
|
-
}
|
|
104
|
-
}), e.onValueChange?.(t.name, i);
|
|
105
|
-
},
|
|
106
|
-
linkAs: e.linkAs ?? "a",
|
|
107
|
-
renderItem: e.renderItem
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
function Ke({ children: e, ...t }) {
|
|
111
|
-
return /* @__PURE__ */ J(We.Provider, {
|
|
112
|
-
value: Ge(t),
|
|
113
|
-
children: e
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
function qe({ classes: t, items: r, onSelect: i, onCheckedChange: a, onValueChange: o, linkAs: s, renderItem: c, open: l, defaultOpen: u, onOpenChange: d, anchor: f, searchable: p, searchLabel: m, placement: h = "bottom-start", arrow: g, ref: v, children: y }) {
|
|
117
|
-
let b = n("menu", w, t)(), x = e(), S = Ue({
|
|
118
|
-
open: l,
|
|
119
|
-
defaultOpen: u,
|
|
120
|
-
anchor: f,
|
|
121
|
-
onOpenChange: d,
|
|
122
|
-
ref: v,
|
|
123
|
-
restoreFocus: !0
|
|
124
|
-
}), [C, E] = K(""), [te, D] = K(), O = De({
|
|
125
|
-
sensitivity: "base",
|
|
126
|
-
usage: "sort"
|
|
127
|
-
}), k = p && C ? _(r, (e) => O.contains(e, C)) : r, A = Ee(null), [ne, j] = K(S.isOpen);
|
|
128
|
-
ne !== S.isOpen && (j(S.isOpen), E(""), D(void 0)), xe(() => {
|
|
129
|
-
if (!S.isOpen || !p) return;
|
|
130
|
-
let e = requestAnimationFrame(() => {
|
|
131
|
-
e = requestAnimationFrame(() => A.current?.focus());
|
|
132
|
-
});
|
|
133
|
-
return () => cancelAnimationFrame(e);
|
|
134
|
-
}, [S.isOpen, p]);
|
|
135
|
-
let M = m ?? x.menu.search;
|
|
136
|
-
return /* @__PURE__ */ J(Ke, {
|
|
137
|
-
items: r,
|
|
138
|
-
linkAs: s,
|
|
139
|
-
renderItem: c,
|
|
140
|
-
onCheckedChange: a,
|
|
141
|
-
onValueChange: o,
|
|
142
|
-
children: /* @__PURE__ */ Y(X.Root, {
|
|
143
|
-
open: S.isOpen,
|
|
144
|
-
onOpenChange: (e) => S.onOpenChange(e.open),
|
|
145
|
-
positioning: S.positioning({
|
|
146
|
-
placement: h,
|
|
147
|
-
gutter: g ? 10 : 8
|
|
148
|
-
}),
|
|
149
|
-
anchorPoint: S.anchorPoint,
|
|
150
|
-
lazyMount: !0,
|
|
151
|
-
unmountOnExit: !0,
|
|
152
|
-
onSelect: (e) => i?.(e.value),
|
|
153
|
-
children: [y && /* @__PURE__ */ J(X.Trigger, {
|
|
154
|
-
asChild: !0,
|
|
155
|
-
children: y
|
|
156
|
-
}), /* @__PURE__ */ J(Oe, { children: /* @__PURE__ */ J(X.Positioner, { children: /* @__PURE__ */ Y(X.Content, {
|
|
157
|
-
className: b.content(),
|
|
158
|
-
children: [
|
|
159
|
-
g && /* @__PURE__ */ J(X.Arrow, {
|
|
160
|
-
className: b.arrow(),
|
|
161
|
-
children: /* @__PURE__ */ J(X.ArrowTip, { className: b.arrowTip() })
|
|
162
|
-
}),
|
|
163
|
-
p && /* @__PURE__ */ J(X.Context, { children: (e) => /* @__PURE__ */ J("div", {
|
|
164
|
-
role: "group",
|
|
165
|
-
"aria-label": M,
|
|
166
|
-
className: b.search(),
|
|
167
|
-
children: /* @__PURE__ */ J("input", {
|
|
168
|
-
ref: A,
|
|
169
|
-
type: "text",
|
|
170
|
-
autoComplete: "off",
|
|
171
|
-
className: b.searchInput(),
|
|
172
|
-
placeholder: M,
|
|
173
|
-
"aria-label": M,
|
|
174
|
-
"aria-activedescendant": te,
|
|
175
|
-
onChange: (t) => {
|
|
176
|
-
let n = t.currentTarget;
|
|
177
|
-
E(n.value), requestAnimationFrame(() => D(ee(n, e)));
|
|
178
|
-
},
|
|
179
|
-
onKeyDown: (t) => {
|
|
180
|
-
let n = T(t.nativeEvent, e);
|
|
181
|
-
n && D(n);
|
|
182
|
-
}
|
|
183
|
-
})
|
|
184
|
-
}) }),
|
|
185
|
-
/* @__PURE__ */ J(Ye, {
|
|
186
|
-
entries: k,
|
|
187
|
-
onSelect: i
|
|
188
|
-
}),
|
|
189
|
-
p && !k.length && /* @__PURE__ */ J("div", {
|
|
190
|
-
role: "group",
|
|
191
|
-
className: b.empty(),
|
|
192
|
-
children: /* @__PURE__ */ J("span", {
|
|
193
|
-
role: "status",
|
|
194
|
-
children: x.common.noResults
|
|
195
|
-
})
|
|
196
|
-
})
|
|
197
|
-
]
|
|
198
|
-
}) }) })]
|
|
199
|
-
})
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
function Je({ item: e, shortcut: t }) {
|
|
203
|
-
let r = be(We), i = n("menu", w)();
|
|
204
|
-
if (r?.renderItem) return r.renderItem(e);
|
|
205
|
-
let a = e.icon;
|
|
206
|
-
return /* @__PURE__ */ Y(q, { children: [
|
|
207
|
-
a && /* @__PURE__ */ J(a, {
|
|
208
|
-
className: i.icon(),
|
|
209
|
-
"aria-hidden": "true"
|
|
210
|
-
}),
|
|
211
|
-
/* @__PURE__ */ J("span", {
|
|
212
|
-
className: i.label(),
|
|
213
|
-
children: e.label
|
|
214
|
-
}),
|
|
215
|
-
t && /* @__PURE__ */ J("span", {
|
|
216
|
-
className: i.shortcut(),
|
|
217
|
-
"aria-hidden": "true",
|
|
218
|
-
children: t
|
|
219
|
-
})
|
|
220
|
-
] });
|
|
221
|
-
}
|
|
222
|
-
function Ye({ entries: e, onSelect: t }) {
|
|
223
|
-
let r = n("menu", w), i = r(), a = be(We);
|
|
224
|
-
return e.map((e, n) => {
|
|
225
|
-
if ("type" in e) return e.type === "separator" ? /* @__PURE__ */ J(X.Separator, { className: i.separator() }, `separator-${n}`) : e.type === "checkbox" ? /* @__PURE__ */ Y(X.CheckboxItem, {
|
|
226
|
-
value: e.value,
|
|
227
|
-
checked: a?.checked(e) ?? !!e.checked,
|
|
228
|
-
onCheckedChange: (t) => a?.setChecked(e, t),
|
|
229
|
-
disabled: e.disabled,
|
|
230
|
-
closeOnSelect: e.closeOnSelect ?? !1,
|
|
231
|
-
className: i.item(),
|
|
232
|
-
children: [/* @__PURE__ */ J("span", {
|
|
233
|
-
className: i.indicator(),
|
|
234
|
-
children: /* @__PURE__ */ J(X.ItemIndicator, { children: /* @__PURE__ */ J(de, {
|
|
235
|
-
className: i.indicatorIcon(),
|
|
236
|
-
"aria-hidden": "true"
|
|
237
|
-
}) })
|
|
238
|
-
}), /* @__PURE__ */ J(Je, { item: e })]
|
|
239
|
-
}, e.value) : e.type === "radio" ? /* @__PURE__ */ Y(X.RadioItemGroup, {
|
|
240
|
-
value: a?.radio(e),
|
|
241
|
-
onValueChange: (t) => a?.setRadio(e, t.value),
|
|
242
|
-
children: [e.label && /* @__PURE__ */ J(X.ItemGroupLabel, {
|
|
243
|
-
className: i.groupLabel(),
|
|
244
|
-
children: e.label
|
|
245
|
-
}), e.items.map((e) => /* @__PURE__ */ Y(X.RadioItem, {
|
|
246
|
-
value: e.value,
|
|
247
|
-
disabled: e.disabled,
|
|
248
|
-
closeOnSelect: e.closeOnSelect ?? !1,
|
|
249
|
-
className: i.item(),
|
|
250
|
-
children: [/* @__PURE__ */ J("span", {
|
|
251
|
-
className: i.indicator(),
|
|
252
|
-
children: /* @__PURE__ */ J(X.ItemIndicator, { children: /* @__PURE__ */ J(W, {
|
|
253
|
-
className: i.indicatorDot(),
|
|
254
|
-
"aria-hidden": "true"
|
|
255
|
-
}) })
|
|
256
|
-
}), /* @__PURE__ */ J(Je, { item: e })]
|
|
257
|
-
}, e.value))]
|
|
258
|
-
}, `radio-${e.name}`) : /* @__PURE__ */ Y(X.ItemGroup, { children: [/* @__PURE__ */ J(X.ItemGroupLabel, {
|
|
259
|
-
className: i.groupLabel(),
|
|
260
|
-
children: e.label
|
|
261
|
-
}), /* @__PURE__ */ J(Ye, {
|
|
262
|
-
entries: e.items,
|
|
263
|
-
onSelect: t
|
|
264
|
-
})] }, `group-${n}`);
|
|
265
|
-
let o = e.icon;
|
|
266
|
-
if (e.children) return /* @__PURE__ */ Y(X.Root, {
|
|
267
|
-
positioning: {
|
|
268
|
-
placement: "right-start",
|
|
269
|
-
offset: { mainAxis: d }
|
|
270
|
-
},
|
|
271
|
-
onSelect: (e) => t?.(e.value),
|
|
272
|
-
children: [/* @__PURE__ */ Y(X.TriggerItem, {
|
|
273
|
-
className: i.item(),
|
|
274
|
-
children: [
|
|
275
|
-
o && /* @__PURE__ */ J(o, {
|
|
276
|
-
className: i.icon(),
|
|
277
|
-
"aria-hidden": "true"
|
|
278
|
-
}),
|
|
279
|
-
/* @__PURE__ */ J("span", {
|
|
280
|
-
className: i.label(),
|
|
281
|
-
children: e.label
|
|
282
|
-
}),
|
|
283
|
-
/* @__PURE__ */ J(B, {
|
|
284
|
-
className: i.submenuIcon(),
|
|
285
|
-
"aria-hidden": "true"
|
|
286
|
-
})
|
|
287
|
-
]
|
|
288
|
-
}), /* @__PURE__ */ J(Oe, { children: /* @__PURE__ */ J(X.Positioner, { children: /* @__PURE__ */ J(X.Content, {
|
|
289
|
-
className: i.content(),
|
|
290
|
-
children: /* @__PURE__ */ J(Ye, {
|
|
291
|
-
entries: e.children,
|
|
292
|
-
onSelect: t
|
|
293
|
-
})
|
|
294
|
-
}) }) })]
|
|
295
|
-
}, e.value);
|
|
296
|
-
if (e.href || e.to) {
|
|
297
|
-
let t = a?.linkAs ?? "a";
|
|
298
|
-
return /* @__PURE__ */ J(X.Item, {
|
|
299
|
-
value: e.value,
|
|
300
|
-
disabled: e.disabled,
|
|
301
|
-
closeOnSelect: e.closeOnSelect,
|
|
302
|
-
asChild: !0,
|
|
303
|
-
children: /* @__PURE__ */ J(t, {
|
|
304
|
-
...S(e.href, e.to),
|
|
305
|
-
className: r({ danger: e.danger }).item(),
|
|
306
|
-
children: /* @__PURE__ */ J(Je, {
|
|
307
|
-
item: e,
|
|
308
|
-
shortcut: e.shortcut
|
|
309
|
-
})
|
|
310
|
-
})
|
|
311
|
-
}, e.value);
|
|
312
|
-
}
|
|
313
|
-
return /* @__PURE__ */ J(ve, { children: /* @__PURE__ */ J(X.Item, {
|
|
314
|
-
value: e.value,
|
|
315
|
-
disabled: e.disabled,
|
|
316
|
-
closeOnSelect: e.closeOnSelect,
|
|
317
|
-
className: r({ danger: e.danger }).item(),
|
|
318
|
-
children: /* @__PURE__ */ J(Je, {
|
|
319
|
-
item: e,
|
|
320
|
-
shortcut: e.shortcut
|
|
321
|
-
})
|
|
322
|
-
}) }, e.value);
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
//#endregion
|
|
326
|
-
//#region src/components/Textarea/Textarea.tsx
|
|
327
|
-
function Xe({ classes: t, size: a, invalid: o = !1, success: s = !1, disabled: c = !1, autoResize: l = !1, minRows: u, maxRows: d, showCount: f = !1, loading: p = !1, clearable: m = !1, clearLabel: h, className: g, style: _, onInput: v, onChange: ee, ...y }) {
|
|
328
|
-
let b = n("textarea", F, t), x = n("textareaParts", ie, t), S = e(), C = Ae(), w = r(), T = o || !!C?.invalid, E = !T && (s || w.success), te = c || !!C?.disabled, D = !!y.readOnly || !!C?.readOnly, O = Ee(null), k = y.maxLength && y.maxLength > 0 ? y.maxLength : void 0, A = f && k !== void 0, ne = p || m || E, j = A || p || m, [M, N] = K(() => String(y.defaultValue ?? "").length), re = y.value === void 0 ? M : String(y.value ?? "").length, I = () => {
|
|
329
|
-
let e = O.current;
|
|
330
|
-
if (!l || !e) return;
|
|
331
|
-
e.style.height = "auto";
|
|
332
|
-
let t = e.offsetHeight - e.clientHeight, n = e.scrollHeight + t;
|
|
333
|
-
if (u || d) {
|
|
334
|
-
let r = getComputedStyle(e), i = parseFloat(r.lineHeight) || parseFloat(r.fontSize) * 1.5, a = parseFloat(r.paddingTop) + parseFloat(r.paddingBottom) + t, o = d ? d * i + a : Infinity;
|
|
335
|
-
e.style.overflowY = n > o ? "auto" : "", n = Math.min(Math.max(n, u ? u * i + a : 0), o);
|
|
336
|
-
}
|
|
337
|
-
e.style.height = `${n}px`;
|
|
338
|
-
};
|
|
339
|
-
we(I);
|
|
340
|
-
let ae = Se(), [oe, se] = K(""), L = Ee(void 0);
|
|
341
|
-
xe(() => () => clearTimeout(L.current), []);
|
|
342
|
-
let ce = (e) => {
|
|
343
|
-
A && (clearTimeout(L.current), L.current = setTimeout(() => se(S.textarea.remaining(k - e, k)), 1e3));
|
|
344
|
-
}, le = () => {
|
|
345
|
-
let e = O.current;
|
|
346
|
-
e && (P(e), e.focus());
|
|
347
|
-
}, R = /* @__PURE__ */ J(ke.Textarea, {
|
|
348
|
-
...y,
|
|
349
|
-
ref: O,
|
|
350
|
-
rows: y.rows ?? u,
|
|
351
|
-
className: b({
|
|
352
|
-
size: a,
|
|
353
|
-
invalid: T,
|
|
354
|
-
success: E,
|
|
355
|
-
disabled: te,
|
|
356
|
-
autoResize: l,
|
|
357
|
-
hasTrailing: j ? ne : void 0,
|
|
358
|
-
class: j ? void 0 : g
|
|
359
|
-
}),
|
|
360
|
-
style: j ? void 0 : _,
|
|
361
|
-
disabled: te || void 0,
|
|
362
|
-
"aria-invalid": T || void 0,
|
|
363
|
-
...j ? {
|
|
364
|
-
"aria-describedby": [
|
|
365
|
-
C?.ariaDescribedby,
|
|
366
|
-
A && ae,
|
|
367
|
-
y["aria-describedby"]
|
|
368
|
-
].filter(Boolean).join(" ") || void 0,
|
|
369
|
-
"aria-busy": p || void 0
|
|
370
|
-
} : {},
|
|
371
|
-
onInput: (e) => {
|
|
372
|
-
I(), v?.(e);
|
|
373
|
-
},
|
|
374
|
-
onChange: (e) => {
|
|
375
|
-
N(e.currentTarget.value.length), ce(e.currentTarget.value.length), ee?.(e);
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
if (!j) return R;
|
|
379
|
-
let z = x();
|
|
380
|
-
return /* @__PURE__ */ Y("div", {
|
|
381
|
-
className: z.base({ class: g }),
|
|
382
|
-
style: _,
|
|
383
|
-
children: [
|
|
384
|
-
R,
|
|
385
|
-
ne && /* @__PURE__ */ J("div", {
|
|
386
|
-
className: z.trailing(),
|
|
387
|
-
children: /* @__PURE__ */ J(i, {
|
|
388
|
-
loading: p,
|
|
389
|
-
clear: m && re > 0 && !te && !D,
|
|
390
|
-
clearLabel: h ?? S.field.clear,
|
|
391
|
-
onClear: le,
|
|
392
|
-
success: E,
|
|
393
|
-
classes: {
|
|
394
|
-
spinner: z.spinner(),
|
|
395
|
-
clear: z.clear(),
|
|
396
|
-
clearIcon: z.clearIcon(),
|
|
397
|
-
statusIcon: z.statusIcon()
|
|
398
|
-
}
|
|
399
|
-
})
|
|
400
|
-
}),
|
|
401
|
-
A && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("span", {
|
|
402
|
-
id: ae,
|
|
403
|
-
className: z.counter(),
|
|
404
|
-
"aria-hidden": "true",
|
|
405
|
-
children: S.textarea.counter(re, k)
|
|
406
|
-
}), /* @__PURE__ */ J("span", {
|
|
407
|
-
className: z.status(),
|
|
408
|
-
role: "status",
|
|
409
|
-
children: oe
|
|
410
|
-
})] })
|
|
411
|
-
]
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
//#endregion
|
|
415
|
-
//#region src/components/Pagination/Pagination.tsx
|
|
416
|
-
function Ze({ classes: t, count: r, pageSize: i = 10, onPageSizeChange: s, page: c, defaultPage: l, onPageChange: u, siblingCount: d = 1, boundaryCount: f, showSummary: p = !0, summary: m, pageSizes: h, jumper: g, variant: _ = "full", withEdges: v, hideSinglePage: ee, getPageHref: y, translations: b, className: x, ...S }) {
|
|
417
|
-
let C = n("pagination", k, t)({ responsive: _ === "auto" }), w = e(), [T, E] = K(i), [te, D] = K(i);
|
|
418
|
-
te !== i && (D(i), E(i));
|
|
419
|
-
let A = (e) => ({
|
|
420
|
-
start: Math.min((e - 1) * T + 1, r),
|
|
421
|
-
end: Math.min(e * T, r),
|
|
422
|
-
count: r
|
|
423
|
-
});
|
|
424
|
-
if (ee && r <= T) return null;
|
|
425
|
-
let ne = y ? "a" : "button", j = (e, t, n = !1) => ye(ne, {
|
|
426
|
-
className: e,
|
|
427
|
-
...y && n ? {
|
|
428
|
-
role: "link",
|
|
429
|
-
"aria-disabled": "true"
|
|
430
|
-
} : {}
|
|
431
|
-
}, t), M = (e, t) => {
|
|
432
|
-
if (!t || t === T) return;
|
|
433
|
-
let n = O(e.page, T, t);
|
|
434
|
-
E(t), s?.(t), requestAnimationFrame(() => e.setPage(n));
|
|
435
|
-
}, N = (e, t) => {
|
|
436
|
-
if (e.key !== "Enter") return;
|
|
437
|
-
let n = e.currentTarget, r = Number.parseInt(n.value, 10);
|
|
438
|
-
Number.isNaN(r) || (e.preventDefault(), t.setPage(Math.min(Math.max(r, 1), t.totalPages)), n.value = "");
|
|
439
|
-
};
|
|
440
|
-
return /* @__PURE__ */ J(je.Root, {
|
|
441
|
-
...S,
|
|
442
|
-
className: C.base({ class: x }),
|
|
443
|
-
count: r,
|
|
444
|
-
pageSize: T,
|
|
445
|
-
page: c,
|
|
446
|
-
defaultPage: l,
|
|
447
|
-
onPageChange: (e) => u?.(e.page),
|
|
448
|
-
siblingCount: d,
|
|
449
|
-
boundaryCount: f,
|
|
450
|
-
type: y ? "link" : "button",
|
|
451
|
-
getPageUrl: y ? (e) => y(e.page) : void 0,
|
|
452
|
-
translations: {
|
|
453
|
-
...w.pagination,
|
|
454
|
-
...b
|
|
455
|
-
},
|
|
456
|
-
children: /* @__PURE__ */ J(je.Context, { children: (e) => /* @__PURE__ */ Y(q, { children: [
|
|
457
|
-
p && /* @__PURE__ */ J("span", {
|
|
458
|
-
className: C.summary(),
|
|
459
|
-
"aria-live": "polite",
|
|
460
|
-
children: (m ?? w.pagination.summary)(A(e.page))
|
|
461
|
-
}),
|
|
462
|
-
!!h?.length && /* @__PURE__ */ Y("div", {
|
|
463
|
-
className: C.pageSize(),
|
|
464
|
-
children: [/* @__PURE__ */ J("span", {
|
|
465
|
-
"aria-hidden": "true",
|
|
466
|
-
children: w.pagination.pageSize
|
|
467
|
-
}), /* @__PURE__ */ J(o, {
|
|
468
|
-
className: C.pageSizeSelect(),
|
|
469
|
-
size: "sm",
|
|
470
|
-
items: h.map((e) => ({
|
|
471
|
-
value: e,
|
|
472
|
-
label: String(e)
|
|
473
|
-
})),
|
|
474
|
-
value: T,
|
|
475
|
-
"aria-label": w.pagination.pageSize,
|
|
476
|
-
onValueChange: (t) => M(e, t)
|
|
477
|
-
})]
|
|
478
|
-
}),
|
|
479
|
-
/* @__PURE__ */ Y("div", {
|
|
480
|
-
className: C.list(),
|
|
481
|
-
children: [
|
|
482
|
-
v && /* @__PURE__ */ J(je.FirstTrigger, {
|
|
483
|
-
asChild: !0,
|
|
484
|
-
children: j(C.trigger(), /* @__PURE__ */ J(H, {
|
|
485
|
-
className: C.triggerIcon(),
|
|
486
|
-
"aria-hidden": "true"
|
|
487
|
-
}), e.page === 1)
|
|
488
|
-
}),
|
|
489
|
-
/* @__PURE__ */ J(je.PrevTrigger, {
|
|
490
|
-
asChild: !0,
|
|
491
|
-
children: j(C.trigger(), /* @__PURE__ */ J(pe, {
|
|
492
|
-
className: C.triggerIcon(),
|
|
493
|
-
"aria-hidden": "true"
|
|
494
|
-
}), e.page === 1)
|
|
495
|
-
}),
|
|
496
|
-
_ !== "full" && /* @__PURE__ */ J("span", {
|
|
497
|
-
className: C.compact(),
|
|
498
|
-
children: w.pagination.compact(e.page, e.totalPages)
|
|
499
|
-
}),
|
|
500
|
-
_ !== "compact" && e.pages.map((e, t) => e.type === "page" ? /* @__PURE__ */ J(je.Item, {
|
|
501
|
-
...e,
|
|
502
|
-
asChild: !0,
|
|
503
|
-
children: j(C.item(), e.value)
|
|
504
|
-
}, t) : /* @__PURE__ */ J(je.Ellipsis, {
|
|
505
|
-
index: t,
|
|
506
|
-
className: C.ellipsis(),
|
|
507
|
-
"aria-hidden": "true",
|
|
508
|
-
children: "…"
|
|
509
|
-
}, t)),
|
|
510
|
-
/* @__PURE__ */ J(je.NextTrigger, {
|
|
511
|
-
asChild: !0,
|
|
512
|
-
children: j(C.trigger(), /* @__PURE__ */ J(B, {
|
|
513
|
-
className: C.triggerIcon(),
|
|
514
|
-
"aria-hidden": "true"
|
|
515
|
-
}), e.page === e.totalPages)
|
|
516
|
-
}),
|
|
517
|
-
v && /* @__PURE__ */ J(je.LastTrigger, {
|
|
518
|
-
asChild: !0,
|
|
519
|
-
children: j(C.trigger(), /* @__PURE__ */ J(U, {
|
|
520
|
-
className: C.triggerIcon(),
|
|
521
|
-
"aria-hidden": "true"
|
|
522
|
-
}), e.page === e.totalPages)
|
|
523
|
-
})
|
|
524
|
-
]
|
|
525
|
-
}),
|
|
526
|
-
g && /* @__PURE__ */ Y("div", {
|
|
527
|
-
className: C.jumper(),
|
|
528
|
-
children: [/* @__PURE__ */ J("span", {
|
|
529
|
-
"aria-hidden": "true",
|
|
530
|
-
children: w.pagination.jumper
|
|
531
|
-
}), /* @__PURE__ */ J(a, {
|
|
532
|
-
className: C.jumperInput(),
|
|
533
|
-
size: "sm",
|
|
534
|
-
inputMode: "numeric",
|
|
535
|
-
autoComplete: "off",
|
|
536
|
-
"aria-label": w.pagination.jumper,
|
|
537
|
-
onKeyDown: (t) => N(t, e)
|
|
538
|
-
})]
|
|
539
|
-
})
|
|
540
|
-
] }) })
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
//#endregion
|
|
544
|
-
//#region src/components/Skeleton/Skeleton.tsx
|
|
545
|
-
function Qe({ classes: e, shape: t, width: r, height: i, className: a, style: o, ...s }) {
|
|
546
|
-
let c = n("skeleton", re, e);
|
|
547
|
-
return /* @__PURE__ */ J("span", {
|
|
548
|
-
"aria-hidden": "true",
|
|
549
|
-
...s,
|
|
550
|
-
className: c({
|
|
551
|
-
shape: t,
|
|
552
|
-
class: a
|
|
553
|
-
}),
|
|
554
|
-
style: {
|
|
555
|
-
width: r,
|
|
556
|
-
height: i,
|
|
557
|
-
...o
|
|
558
|
-
}
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
//#endregion
|
|
562
|
-
//#region src/components/DatePicker/dates.ts
|
|
563
|
-
var $e = (e, t) => e ? e.toString().slice(0, t ? 16 : 10) : null;
|
|
564
|
-
function et(e, t, n) {
|
|
565
|
-
return t ? e.includes("T") ? Re(e.slice(0, 16)) : Re(`${e}T${n === "max" ? "23:59" : "00:00"}`) : Le(e.slice(0, 10));
|
|
566
|
-
}
|
|
567
|
-
function tt(e, t, n, r) {
|
|
568
|
-
let i = typeof e == "string" && !e.includes("T"), a = ce(e, t && !i, n);
|
|
569
|
-
return a ? et(a, t, r) : void 0;
|
|
570
|
-
}
|
|
571
|
-
var nt = (e, t, n, r) => v($e(e, t), {
|
|
572
|
-
valueType: n,
|
|
573
|
-
timeZone: r,
|
|
574
|
-
withTime: t
|
|
575
|
-
}), rt = (e, t, n) => ce(e, t, n);
|
|
576
|
-
function it(e, t) {
|
|
577
|
-
if (!e && !t?.length) return;
|
|
578
|
-
let n = new Set(t?.map((e) => ce(e, !1)));
|
|
579
|
-
return (t) => {
|
|
580
|
-
let r = $e(t, !1);
|
|
581
|
-
return n.has(r) || !!e?.(r);
|
|
582
|
-
};
|
|
583
|
-
}
|
|
584
|
-
function at(e, t) {
|
|
585
|
-
if ("hour" in e) return e;
|
|
586
|
-
let n = t && "hour" in t ? new Ie(t.hour, t.minute) : new Ie();
|
|
587
|
-
return ze(e, n);
|
|
588
|
-
}
|
|
589
|
-
var ot = {
|
|
590
|
-
year: 2e3,
|
|
591
|
-
month: 1,
|
|
592
|
-
day: 1
|
|
593
|
-
};
|
|
594
|
-
function st(e) {
|
|
595
|
-
let [t = 0, n = 0, r = 0] = e.split(":").map(Number);
|
|
596
|
-
return new Pe(ot.year, ot.month, ot.day, t, n, r);
|
|
597
|
-
}
|
|
598
|
-
var ct = (e) => String(e).padStart(2, "0"), lt = (e, t = !1) => e && "hour" in e ? `${ct(e.hour)}:${ct(e.minute)}${t ? `:${ct(e.second)}` : ""}` : null, ut = (e, t, n, r = !1) => I(e, t, n, r);
|
|
599
|
-
//#endregion
|
|
600
|
-
//#region src/components/DatePicker/DatePickerBase.tsx
|
|
601
|
-
function dt({ mode: t, dates: r, onChange: i, withTime: a, min: o, max: s, isDateUnavailable: c, locale: l, disabled: u, readOnly: d, invalid: f, required: p, name: m, label: g, placeholder: _, className: v, style: ee, period: y, classes: b, presets: x, size: S, hideClear: w, firstDayOfWeek: T, timeZone: E, showTimeZone: te, responsive: D, ...O }) {
|
|
602
|
-
let k = n("datePicker", h, b)({ size: S }), A = e(), N = Se(), P = Ae(), re = {
|
|
603
|
-
disabled: u ?? P?.disabled,
|
|
604
|
-
readOnly: d ?? P?.readOnly,
|
|
605
|
-
invalid: f ?? P?.invalid,
|
|
606
|
-
required: p ?? P?.required
|
|
607
|
-
}, F = t === "range", ie = t === "multiple", I = F ? [0, 1] : [0], se = [A.dateRange.start, A.dateRange.end], L = P ? { label: (e) => F ? `${P.ids.label} ${N}r${e}` : P.ids.label } : void 0, ce = (e) => P ? void 0 : F ? [g, se[e]].filter(Boolean).join(", ") : g, le = F ? {
|
|
608
|
-
...A.datePicker,
|
|
609
|
-
clearTrigger: A.dateRange.clearTrigger
|
|
610
|
-
} : A.datePicker, R = y ? new Fe(l, y === "month" ? {
|
|
611
|
-
month: "2-digit",
|
|
612
|
-
year: "numeric"
|
|
613
|
-
} : { year: "numeric" }) : void 0, de = T ?? C(l).firstDay, fe;
|
|
614
|
-
if (te && E) {
|
|
615
|
-
let e = r[0], t = e ? z(e.toString().slice(0, 16), E) : /* @__PURE__ */ new Date();
|
|
616
|
-
fe = {
|
|
617
|
-
short: ae(E, l, t),
|
|
618
|
-
long: A.calendar.timeZone(oe(E, l, t))
|
|
619
|
-
};
|
|
620
|
-
}
|
|
621
|
-
let pe = [P?.ariaDescribedby, fe ? `${N}tz` : void 0].filter(Boolean).join(" ") || void 0, B = (e) => I.every((t) => e.getSegments({ index: t }).every((e) => e.type === "literal" || e.isPlaceholder)), V = (e) => !!_ && B(e) && !e.focused, H = (e) => _ && B(e) ? [pe, `${N}ph`].filter(Boolean).join(" ") : pe, U = (e) => i(a ? e.map((e, t) => at(e, r[t])) : e), W = (e, t) => {
|
|
622
|
-
if (y) return !1;
|
|
623
|
-
if (F) {
|
|
624
|
-
let t = j(e, l, a);
|
|
625
|
-
if (t) return i([et(t.start, a), et(t.end, a)]), !0;
|
|
626
|
-
}
|
|
627
|
-
let n = ne(e, l, a);
|
|
628
|
-
if (!n) return !1;
|
|
629
|
-
let o = [...r];
|
|
630
|
-
return o[t] = et(n, a), i(o.filter(Boolean)), !0;
|
|
631
|
-
}, me = r.length ? r.length > 3 ? M(A.calendar.datesSelected, r.length, l) : r.map((e) => new Fe(l, {
|
|
632
|
-
day: "2-digit",
|
|
633
|
-
month: "2-digit",
|
|
634
|
-
year: "numeric",
|
|
635
|
-
timeZone: "UTC"
|
|
636
|
-
}).format(e.toDate("UTC"))).join(", ") : _ ?? A.calendar.noDates;
|
|
637
|
-
return /* @__PURE__ */ Y(Q.Root, {
|
|
638
|
-
className: k.base({ class: v }),
|
|
639
|
-
style: ee,
|
|
640
|
-
value: r,
|
|
641
|
-
onValueChange: (e) => U(e.value),
|
|
642
|
-
selectionMode: t,
|
|
643
|
-
min: o,
|
|
644
|
-
max: s,
|
|
645
|
-
isDateUnavailable: c,
|
|
646
|
-
locale: l,
|
|
647
|
-
startOfWeek: de,
|
|
648
|
-
minView: y,
|
|
649
|
-
defaultView: y,
|
|
650
|
-
numOfMonths: O.numberOfMonths,
|
|
651
|
-
timeZone: E,
|
|
652
|
-
...re,
|
|
653
|
-
positioning: {
|
|
654
|
-
placement: "bottom-start",
|
|
655
|
-
gutter: 4
|
|
656
|
-
},
|
|
657
|
-
translations: le,
|
|
658
|
-
lazyMount: !0,
|
|
659
|
-
unmountOnExit: !0,
|
|
660
|
-
children: [/* @__PURE__ */ Y(Q.Control, {
|
|
661
|
-
className: k.control(),
|
|
662
|
-
children: [
|
|
663
|
-
ie ? /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("span", {
|
|
664
|
-
id: `${N}v`,
|
|
665
|
-
className: k.multiValue(),
|
|
666
|
-
"data-placeholder": r.length ? void 0 : "",
|
|
667
|
-
children: me
|
|
668
|
-
}), m && r.map((e, t) => /* @__PURE__ */ J("input", {
|
|
669
|
-
type: "hidden",
|
|
670
|
-
name: `${m}[${t}]`,
|
|
671
|
-
value: e.toString()
|
|
672
|
-
}, e.toString()))] }) : /* @__PURE__ */ Y($.Root, {
|
|
673
|
-
className: k.dateInput(),
|
|
674
|
-
ids: L,
|
|
675
|
-
value: r,
|
|
676
|
-
onValueChange: (e) => i(e.value),
|
|
677
|
-
selectionMode: F ? "range" : "single",
|
|
678
|
-
granularity: a ? "minute" : "day",
|
|
679
|
-
formatter: R,
|
|
680
|
-
min: o,
|
|
681
|
-
max: s,
|
|
682
|
-
isDateUnavailable: c,
|
|
683
|
-
locale: l,
|
|
684
|
-
shouldForceLeadingZeros: !0,
|
|
685
|
-
name: m,
|
|
686
|
-
...re,
|
|
687
|
-
translations: A.dateInput,
|
|
688
|
-
children: [/* @__PURE__ */ J($.Context, { children: (e) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J($.Control, {
|
|
689
|
-
className: k.dateControl(),
|
|
690
|
-
"data-placeholder-shown": V(e) || void 0,
|
|
691
|
-
children: I.map((t) => /* @__PURE__ */ Y(ve, { children: [
|
|
692
|
-
t === 1 && /* @__PURE__ */ J("span", {
|
|
693
|
-
className: k.rangeSeparator(),
|
|
694
|
-
"aria-hidden": "true",
|
|
695
|
-
children: "–"
|
|
696
|
-
}),
|
|
697
|
-
F && P && /* @__PURE__ */ J("span", {
|
|
698
|
-
id: `${N}r${t}`,
|
|
699
|
-
className: k.rangeLabel(),
|
|
700
|
-
children: se[t]
|
|
701
|
-
}),
|
|
702
|
-
/* @__PURE__ */ J(ft, {
|
|
703
|
-
index: t,
|
|
704
|
-
label: ce(t),
|
|
705
|
-
describedby: H(e),
|
|
706
|
-
paste: y ? void 0 : W,
|
|
707
|
-
size: S
|
|
708
|
-
})
|
|
709
|
-
] }, t))
|
|
710
|
-
}), _ && B(e) && /* @__PURE__ */ J("span", {
|
|
711
|
-
id: `${N}ph`,
|
|
712
|
-
className: k.placeholder(),
|
|
713
|
-
"data-hidden": V(e) ? void 0 : "",
|
|
714
|
-
onClick: () => e.focus(),
|
|
715
|
-
children: _
|
|
716
|
-
})] }) }), I.map((e) => /* @__PURE__ */ J($.HiddenInput, { index: e }, e))]
|
|
717
|
-
}),
|
|
718
|
-
fe && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("span", {
|
|
719
|
-
className: k.timeZone(),
|
|
720
|
-
"aria-hidden": "true",
|
|
721
|
-
children: fe.short
|
|
722
|
-
}), /* @__PURE__ */ J("span", {
|
|
723
|
-
id: `${N}tz`,
|
|
724
|
-
hidden: !0,
|
|
725
|
-
children: fe.long
|
|
726
|
-
})] }),
|
|
727
|
-
!w && /* @__PURE__ */ J(Q.ClearTrigger, {
|
|
728
|
-
className: k.clear(),
|
|
729
|
-
children: /* @__PURE__ */ J(_e, {
|
|
730
|
-
className: k.clearIcon(),
|
|
731
|
-
"aria-hidden": "true"
|
|
732
|
-
})
|
|
733
|
-
}),
|
|
734
|
-
/* @__PURE__ */ J(Q.Trigger, {
|
|
735
|
-
className: k.trigger(),
|
|
736
|
-
...ie ? { "aria-describedby": `${N}v` } : {},
|
|
737
|
-
children: /* @__PURE__ */ J(ue, {
|
|
738
|
-
className: k.triggerIcon(),
|
|
739
|
-
"aria-hidden": "true"
|
|
740
|
-
})
|
|
741
|
-
})
|
|
742
|
-
]
|
|
743
|
-
}), /* @__PURE__ */ J(mt, {
|
|
744
|
-
presets: x,
|
|
745
|
-
responsive: D,
|
|
746
|
-
timeZone: E,
|
|
747
|
-
...O
|
|
748
|
-
})]
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
function ft({ index: t, label: r, describedby: i, paste: a, size: o }) {
|
|
752
|
-
let s = n("datePicker", h)({ size: o }), c = e();
|
|
753
|
-
return /* @__PURE__ */ J($.SegmentGroup, {
|
|
754
|
-
index: t,
|
|
755
|
-
className: s.segments(),
|
|
756
|
-
"aria-label": r,
|
|
757
|
-
"aria-describedby": i,
|
|
758
|
-
...a ? { onPasteCapture: (e) => {
|
|
759
|
-
a?.(e.clipboardData.getData("text/plain"), t) && (e.preventDefault(), e.stopPropagation());
|
|
760
|
-
} } : {},
|
|
761
|
-
children: /* @__PURE__ */ J($.Context, { children: (e) => e.getSegments({ index: t }).map((e, t) => /* @__PURE__ */ J($.Segment, {
|
|
762
|
-
segment: e,
|
|
763
|
-
className: s.segment(),
|
|
764
|
-
"aria-label": c.dateSegments[e.type]
|
|
765
|
-
}, t)) })
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
function pt(e) {
|
|
769
|
-
let [t, n] = K(!1);
|
|
770
|
-
return xe(() => {
|
|
771
|
-
if (!e || typeof window.matchMedia != "function") return;
|
|
772
|
-
let t = window.matchMedia("(max-width: 639.98px)"), r = () => n(t.matches);
|
|
773
|
-
return r(), t.addEventListener("change", r), () => t.removeEventListener("change", r);
|
|
774
|
-
}, [e]), t;
|
|
775
|
-
}
|
|
776
|
-
function mt({ presets: e, responsive: t, ...r }) {
|
|
777
|
-
let i = n("datePicker", h), a = i(), o = pt(t), s = (r.numberOfMonths ?? 1) > 1;
|
|
778
|
-
return o ? /* @__PURE__ */ Y(Oe, { children: [/* @__PURE__ */ J(Q.Context, { children: (e) => e.open ? /* @__PURE__ */ J("div", {
|
|
779
|
-
className: a.backdrop(),
|
|
780
|
-
"aria-hidden": "true"
|
|
781
|
-
}) : null }), /* @__PURE__ */ J("div", {
|
|
782
|
-
className: a.sheet(),
|
|
783
|
-
children: /* @__PURE__ */ J(Q.Content, {
|
|
784
|
-
className: i({
|
|
785
|
-
multiMonth: s,
|
|
786
|
-
bottomSheet: !0
|
|
787
|
-
}).content(),
|
|
788
|
-
children: /* @__PURE__ */ J(gt, {
|
|
789
|
-
presets: e,
|
|
790
|
-
...r
|
|
791
|
-
})
|
|
792
|
-
})
|
|
793
|
-
})] }) : /* @__PURE__ */ J(Oe, { children: /* @__PURE__ */ J(Q.Positioner, { children: /* @__PURE__ */ J(Q.Content, {
|
|
794
|
-
className: s ? i({ multiMonth: s }).content() : a.content(),
|
|
795
|
-
children: /* @__PURE__ */ J(gt, {
|
|
796
|
-
presets: e,
|
|
797
|
-
...r
|
|
798
|
-
})
|
|
799
|
-
}) }) });
|
|
800
|
-
}
|
|
801
|
-
var ht = (e, t) => typeof e == "string" ? t.rangePresets[e] ?? e : e.label;
|
|
802
|
-
function gt({ presets: t, showWeekNumbers: r, numberOfMonths: i, showButtonBar: a, plainToday: o, hideOutsideDays: s, weekendDays: c, allowDeselect: l, timeZone: u, renderDay: d }) {
|
|
803
|
-
let f = n("datePicker", h)(), p = e(), m = Math.max(1, Math.floor(i ?? 1)), g = {
|
|
804
|
-
showWeekNumbers: r,
|
|
805
|
-
plainToday: o,
|
|
806
|
-
hideOutsideDays: s || m > 1,
|
|
807
|
-
weekendDays: c,
|
|
808
|
-
allowDeselect: l,
|
|
809
|
-
renderDay: d
|
|
810
|
-
}, _ = (e) => Array.from({ length: m }, (t, n) => {
|
|
811
|
-
let r = e.getOffset({ months: n }), i = e.visibleRange.start.add({ months: n });
|
|
812
|
-
return {
|
|
813
|
-
title: r.visibleRangeText.start,
|
|
814
|
-
weeks: r.weeks,
|
|
815
|
-
visibleRange: {
|
|
816
|
-
start: i,
|
|
817
|
-
end: i.add({ months: 1 }).subtract({ days: 1 })
|
|
818
|
-
}
|
|
819
|
-
};
|
|
820
|
-
}), v = (e) => {
|
|
821
|
-
if (e.selectionMode === "single") return e.selectToday();
|
|
822
|
-
let [t = 0, n = 1, r = 1] = le(u).split("-").map(Number);
|
|
823
|
-
e.setFocusedValue(e.focusedValue.set({
|
|
824
|
-
year: t,
|
|
825
|
-
month: n,
|
|
826
|
-
day: r
|
|
827
|
-
}));
|
|
828
|
-
};
|
|
829
|
-
return /* @__PURE__ */ Y(q, { children: [
|
|
830
|
-
/* @__PURE__ */ J(Q.View, {
|
|
831
|
-
view: "day",
|
|
832
|
-
children: /* @__PURE__ */ J(Q.Context, { children: (e) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(xt, {}), m > 1 ? /* @__PURE__ */ J("div", {
|
|
833
|
-
className: f.months(),
|
|
834
|
-
children: _(e).map((e) => /* @__PURE__ */ Y("div", {
|
|
835
|
-
className: f.month(),
|
|
836
|
-
children: [/* @__PURE__ */ J("div", {
|
|
837
|
-
className: f.monthTitle(),
|
|
838
|
-
children: e.title
|
|
839
|
-
}), /* @__PURE__ */ J(vt, {
|
|
840
|
-
weeks: e.weeks,
|
|
841
|
-
visibleRange: e.visibleRange,
|
|
842
|
-
...g
|
|
843
|
-
})]
|
|
844
|
-
}, e.title))
|
|
845
|
-
}) : /* @__PURE__ */ J(vt, {
|
|
846
|
-
weeks: e.weeks,
|
|
847
|
-
...g
|
|
848
|
-
})] }) })
|
|
849
|
-
}),
|
|
850
|
-
/* @__PURE__ */ J(Q.View, {
|
|
851
|
-
view: "month",
|
|
852
|
-
children: /* @__PURE__ */ J(Q.Context, { children: (e) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(xt, {}), /* @__PURE__ */ J(Q.Table, {
|
|
853
|
-
className: f.table(),
|
|
854
|
-
children: /* @__PURE__ */ J(Q.TableBody, { children: e.getMonthsGrid({
|
|
855
|
-
columns: 4,
|
|
856
|
-
format: "short"
|
|
857
|
-
}).map((e) => /* @__PURE__ */ J(Q.TableRow, { children: e.map((e) => /* @__PURE__ */ J(Q.TableCell, {
|
|
858
|
-
value: e.value,
|
|
859
|
-
className: f.cell(),
|
|
860
|
-
children: /* @__PURE__ */ J(Q.TableCellTrigger, {
|
|
861
|
-
className: f.period(),
|
|
862
|
-
children: e.label
|
|
863
|
-
})
|
|
864
|
-
}, e.value)) }, e[0]?.value)) })
|
|
865
|
-
})] }) })
|
|
866
|
-
}),
|
|
867
|
-
/* @__PURE__ */ J(Q.View, {
|
|
868
|
-
view: "year",
|
|
869
|
-
children: /* @__PURE__ */ J(Q.Context, { children: (e) => /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(xt, {}), /* @__PURE__ */ J(Q.Table, {
|
|
870
|
-
className: f.table(),
|
|
871
|
-
children: /* @__PURE__ */ J(Q.TableBody, { children: e.getYearsGrid({ columns: 4 }).map((e) => /* @__PURE__ */ J(Q.TableRow, { children: e.map((e) => /* @__PURE__ */ J(Q.TableCell, {
|
|
872
|
-
value: e.value,
|
|
873
|
-
className: f.cell(),
|
|
874
|
-
children: /* @__PURE__ */ J(Q.TableCellTrigger, {
|
|
875
|
-
className: f.period(),
|
|
876
|
-
children: e.label
|
|
877
|
-
})
|
|
878
|
-
}, e.value)) }, e[0]?.value)) })
|
|
879
|
-
})] }) })
|
|
880
|
-
}),
|
|
881
|
-
t?.length ? /* @__PURE__ */ J("div", {
|
|
882
|
-
className: f.presets(),
|
|
883
|
-
children: t.map((e) => /* @__PURE__ */ J(Q.PresetTrigger, {
|
|
884
|
-
value: typeof e == "string" ? e : e.value,
|
|
885
|
-
className: f.preset(),
|
|
886
|
-
"aria-label": ht(e, p),
|
|
887
|
-
children: ht(e, p)
|
|
888
|
-
}, ht(e, p)))
|
|
889
|
-
}) : null,
|
|
890
|
-
a && /* @__PURE__ */ J(Q.Context, { children: (e) => /* @__PURE__ */ Y("div", {
|
|
891
|
-
className: f.buttonBar(),
|
|
892
|
-
children: [/* @__PURE__ */ J("button", {
|
|
893
|
-
type: "button",
|
|
894
|
-
className: f.buttonBarButton(),
|
|
895
|
-
onClick: () => v(e),
|
|
896
|
-
children: p.calendar.today
|
|
897
|
-
}), /* @__PURE__ */ J("button", {
|
|
898
|
-
type: "button",
|
|
899
|
-
className: f.buttonBarButton(),
|
|
900
|
-
disabled: !e.value.length,
|
|
901
|
-
onClick: () => e.clearValue({ focus: !1 }),
|
|
902
|
-
children: p.calendar.clear
|
|
903
|
-
})]
|
|
904
|
-
}) })
|
|
905
|
-
] });
|
|
906
|
-
}
|
|
907
|
-
var _t = (e) => e.toString().slice(0, 10);
|
|
908
|
-
function vt({ weeks: t, visibleRange: r, showWeekNumbers: i, plainToday: a, hideOutsideDays: o, weekendDays: s, allowDeselect: c, renderDay: l }) {
|
|
909
|
-
let u = n("datePicker", h)({
|
|
910
|
-
plainToday: a,
|
|
911
|
-
hideOutsideDays: o
|
|
912
|
-
}), d = e(), f = Ne(), p = (e) => N(e.map(_t)), m = (e) => !!r && (e.month !== r.start.month || e.year !== r.start.year), g = (e) => {
|
|
913
|
-
let t = f.getDayTableCellState({
|
|
914
|
-
value: e,
|
|
915
|
-
visibleRange: r
|
|
916
|
-
});
|
|
917
|
-
return {
|
|
918
|
-
day: e.day,
|
|
919
|
-
today: t.today,
|
|
920
|
-
selected: t.selected,
|
|
921
|
-
outside: t.outsideRange,
|
|
922
|
-
unavailable: t.unavailable || !!t.disabled,
|
|
923
|
-
weekend: s ? s.includes(x(_t(e))) : t.weekend
|
|
924
|
-
};
|
|
925
|
-
}, _ = (e, t) => {
|
|
926
|
-
"key" in e && e.key !== "Enter" && e.key !== " " || f.selectionMode === "single" && f.getDayTableCellState({
|
|
927
|
-
value: t,
|
|
928
|
-
visibleRange: r
|
|
929
|
-
}).selected && (e.preventDefault(), f.clearValue({ focus: !1 }));
|
|
930
|
-
}, v = (e) => ({
|
|
931
|
-
...s?.includes(x(_t(e))) ? { "data-weekend": "" } : {},
|
|
932
|
-
...c ? {
|
|
933
|
-
onClickCapture: (t) => _(t, e),
|
|
934
|
-
onKeyDownCapture: (t) => _(t, e)
|
|
935
|
-
} : {}
|
|
936
|
-
});
|
|
937
|
-
return /* @__PURE__ */ Y(Q.Table, {
|
|
938
|
-
className: u.table(),
|
|
939
|
-
children: [/* @__PURE__ */ J(Q.TableHead, { children: /* @__PURE__ */ Y(Q.TableRow, { children: [i && /* @__PURE__ */ J("th", {
|
|
940
|
-
scope: "col",
|
|
941
|
-
className: u.weekNumberHeader(),
|
|
942
|
-
children: /* @__PURE__ */ J("abbr", {
|
|
943
|
-
title: d.datePicker.weekColumnHeader,
|
|
944
|
-
children: d.datePicker.weekColumnShort
|
|
945
|
-
})
|
|
946
|
-
}), f.weekDays.map((e) => /* @__PURE__ */ J(Q.TableHeader, {
|
|
947
|
-
className: u.columnHeader(),
|
|
948
|
-
children: /* @__PURE__ */ J("abbr", {
|
|
949
|
-
title: e.long,
|
|
950
|
-
children: e.short
|
|
951
|
-
})
|
|
952
|
-
}, e.long))] }) }), /* @__PURE__ */ J(Q.TableBody, { children: t.map((e) => /* @__PURE__ */ Y(Q.TableRow, { children: [i && /* @__PURE__ */ J("th", {
|
|
953
|
-
scope: "row",
|
|
954
|
-
className: u.weekNumber(),
|
|
955
|
-
"aria-label": d.datePicker.weekNumberCell(p(e)),
|
|
956
|
-
children: p(e)
|
|
957
|
-
}), e.map((e) => m(e) ? /* @__PURE__ */ J("td", { className: u.cell() }, e.toString()) : /* @__PURE__ */ J(Q.TableCell, {
|
|
958
|
-
value: e,
|
|
959
|
-
visibleRange: r,
|
|
960
|
-
className: u.cell(),
|
|
961
|
-
...v(e),
|
|
962
|
-
children: /* @__PURE__ */ J(Q.TableCellTrigger, {
|
|
963
|
-
className: u.day(),
|
|
964
|
-
children: l ? /* @__PURE__ */ J("span", {
|
|
965
|
-
className: u.dayContent(),
|
|
966
|
-
children: l(_t(e), g(e))
|
|
967
|
-
}) : e.day
|
|
968
|
-
})
|
|
969
|
-
}, e.toString()))] }, e[0]?.toString())) })]
|
|
970
|
-
});
|
|
971
|
-
}
|
|
972
|
-
var yt = {
|
|
973
|
-
day: "month",
|
|
974
|
-
month: "year",
|
|
975
|
-
year: void 0
|
|
976
|
-
}, bt = (e, t, n) => `${e}, ${n.datePicker.viewTrigger(t, yt[t])}`;
|
|
977
|
-
function xt() {
|
|
978
|
-
let t = n("datePicker", h)(), r = e();
|
|
979
|
-
return /* @__PURE__ */ Y(Q.ViewControl, {
|
|
980
|
-
className: t.header(),
|
|
981
|
-
children: [
|
|
982
|
-
/* @__PURE__ */ J(Q.PrevTrigger, {
|
|
983
|
-
className: t.nav(),
|
|
984
|
-
children: /* @__PURE__ */ J(pe, {
|
|
985
|
-
className: t.navIcon(),
|
|
986
|
-
"aria-hidden": "true"
|
|
987
|
-
})
|
|
988
|
-
}),
|
|
989
|
-
/* @__PURE__ */ J(Q.Context, { children: (e) => /* @__PURE__ */ J(Q.ViewTrigger, {
|
|
990
|
-
className: t.viewTrigger(),
|
|
991
|
-
"aria-label": bt(e.numOfMonths > 1 && e.view === "day" ? e.visibleRangeText.formatted : e.visibleRangeText.start, e.view, r),
|
|
992
|
-
children: /* @__PURE__ */ J(Q.RangeText, {})
|
|
993
|
-
}) }),
|
|
994
|
-
/* @__PURE__ */ J(Q.NextTrigger, {
|
|
995
|
-
className: t.nav(),
|
|
996
|
-
children: /* @__PURE__ */ J(B, {
|
|
997
|
-
className: t.navIcon(),
|
|
998
|
-
"aria-hidden": "true"
|
|
999
|
-
})
|
|
1000
|
-
})
|
|
1001
|
-
]
|
|
1002
|
-
});
|
|
1003
|
-
}
|
|
1004
|
-
//#endregion
|
|
1005
|
-
//#region src/components/DatePicker/DatePicker.tsx
|
|
1006
|
-
function St({ value: e, defaultValue: n, onValueChange: r, selectionMode: i = "single", valueType: a = "string", withTime: o = !1, min: s, max: c, isDateUnavailable: l, excludeDates: u, locale: d, "aria-label": f, clearable: p = !0, highlightToday: m = !0, ...h }) {
|
|
1007
|
-
let g = t(), _ = d ?? g.locale, [v, ee] = K(n ?? null), y = e === void 0 ? v : e, b = Array.isArray(y) ? y : y ? [y] : [], x = h.timeZone, S = (e) => e.map((e) => rt(e, o, x)).join(), C = (e) => {
|
|
1008
|
-
let t = e.map((e) => nt(e, o, a, x));
|
|
1009
|
-
if (S(t) === S(b)) return;
|
|
1010
|
-
let n = i === "multiple" ? t : t[0] ?? null;
|
|
1011
|
-
ee(n), r?.(n);
|
|
1012
|
-
};
|
|
1013
|
-
return /* @__PURE__ */ J(dt, {
|
|
1014
|
-
...h,
|
|
1015
|
-
mode: i,
|
|
1016
|
-
dates: b.map((e) => tt(e, o, x)).filter((e) => !!e),
|
|
1017
|
-
onChange: C,
|
|
1018
|
-
withTime: o,
|
|
1019
|
-
min: tt(s, o, x, "min"),
|
|
1020
|
-
max: tt(c, o, x, "max"),
|
|
1021
|
-
isDateUnavailable: it(l, u),
|
|
1022
|
-
locale: _,
|
|
1023
|
-
label: f,
|
|
1024
|
-
hideClear: !p,
|
|
1025
|
-
plainToday: !m
|
|
1026
|
-
});
|
|
1027
|
-
}
|
|
1028
|
-
//#endregion
|
|
1029
|
-
//#region src/components/MultiSelect/MultiSelect.tsx
|
|
1030
|
-
function Ct({ classes: t, items: r, value: i, defaultValue: a, onValueChange: o, placeholder: d, summary: p, maxShown: m = 2, disabled: h, invalid: g, required: _, name: v, itemValue: ee, itemLabel: b, itemDisabled: x, itemGroup: S, itemKeywords: C, valueKey: w, display: T = "text", checkboxes: te = !0, selectAll: D, max: O, clearable: k, loading: A, loadingText: ne, size: j, filter: M, manualFilter: N, onFilterChange: P, emptyText: re, hasMore: F, onLoadMore: ie, dataSource: I, minSearchLength: ae, pageSize: oe, renderItem: se, renderValue: L, className: ce, style: le, onKeyDown: z, ...ue }) {
|
|
1031
|
-
let pe = n("multiSelect", E, t), B = T === "chips", V = pe({
|
|
1032
|
-
size: j,
|
|
1033
|
-
clearable: k && !B
|
|
1034
|
-
}), H = e(), U = H.select, W = {
|
|
1035
|
-
itemValue: ee,
|
|
1036
|
-
itemLabel: b,
|
|
1037
|
-
itemDisabled: x,
|
|
1038
|
-
itemGroup: S,
|
|
1039
|
-
itemKeywords: C,
|
|
1040
|
-
valueKey: w
|
|
1041
|
-
}, [ge, ve] = K(""), G = c({
|
|
1042
|
-
items: r,
|
|
1043
|
-
source: I,
|
|
1044
|
-
accessors: W,
|
|
1045
|
-
pageSize: oe,
|
|
1046
|
-
minSearchLength: ae
|
|
1047
|
-
}), { options: ye, visible: be, groups: Ce, ordered: we, firstFor: Ee } = s(G.items, W, M && !N && !I ? ge : ""), De = Te(() => [...ye, ...G.resolvedOptions], [ye, G.resolvedOptions]), { selected: X, keys: ke, commit: Ae } = u({
|
|
1048
|
-
multiple: !0,
|
|
1049
|
-
value: i,
|
|
1050
|
-
defaultValue: a,
|
|
1051
|
-
accessors: W,
|
|
1052
|
-
items: De,
|
|
1053
|
-
onChange: o
|
|
1054
|
-
}), je = ke.join("\0");
|
|
1055
|
-
xe(() => {
|
|
1056
|
-
G.resolve(ke, De);
|
|
1057
|
-
}, [je, I]);
|
|
1058
|
-
let Q = A || G.loading, Ne = O !== void 0 && X.length >= O, $ = ke.join("\n"), Pe = Te(() => {
|
|
1059
|
-
let e = new Set($.split("\n"));
|
|
1060
|
-
return Me({
|
|
1061
|
-
items: we,
|
|
1062
|
-
itemToString: (e) => e.label,
|
|
1063
|
-
itemToValue: (e) => e.key,
|
|
1064
|
-
isItemDisabled: (t) => t.disabled || Ne && !e.has(t.key)
|
|
1065
|
-
});
|
|
1066
|
-
}, [
|
|
1067
|
-
we,
|
|
1068
|
-
Ne,
|
|
1069
|
-
$
|
|
1070
|
-
]), Fe = M || D, Ie = Se(), Le = be.filter((e) => !e.disabled), Re = f(X, Le), [ze, Be] = K("");
|
|
1071
|
-
function Ve(e) {
|
|
1072
|
-
let t = O !== void 0 && e.length >= O && X.length < O;
|
|
1073
|
-
Ae(e), t && Be(U.maxReached(O));
|
|
1074
|
-
}
|
|
1075
|
-
function He(e) {
|
|
1076
|
-
Ae(X.filter((t) => t.key !== e.key)), Be(U.removed(e.label));
|
|
1077
|
-
}
|
|
1078
|
-
function Ue(e) {
|
|
1079
|
-
z?.(e);
|
|
1080
|
-
let t = X.at(-1);
|
|
1081
|
-
t && (B && e.key === "Backspace" ? (e.preventDefault(), He(t)) : k && (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), Ae([])));
|
|
1082
|
-
}
|
|
1083
|
-
function We(e, t) {
|
|
1084
|
-
ve(t), P?.(t), I && G.search(t);
|
|
1085
|
-
let n = N || I ? void 0 : Ee(t);
|
|
1086
|
-
n && requestAnimationFrame(() => e.setHighlightValue(n.key));
|
|
1087
|
-
}
|
|
1088
|
-
let Ge = {
|
|
1089
|
-
item: V.item(),
|
|
1090
|
-
itemText: V.itemText(),
|
|
1091
|
-
icon: V.icon(),
|
|
1092
|
-
itemIndicator: V.itemIndicator(),
|
|
1093
|
-
itemBody: V.itemBody(),
|
|
1094
|
-
itemDescription: V.itemDescription(),
|
|
1095
|
-
group: V.group(),
|
|
1096
|
-
groupLabel: V.groupLabel(),
|
|
1097
|
-
loading: V.loading(),
|
|
1098
|
-
loadingIcon: V.loadingIcon(),
|
|
1099
|
-
sentinel: V.sentinel(),
|
|
1100
|
-
empty: V.empty(),
|
|
1101
|
-
check: V.check(),
|
|
1102
|
-
checkIcon: V.checkIcon()
|
|
1103
|
-
}, Ke = /* @__PURE__ */ J(l, {
|
|
1104
|
-
parts: Z,
|
|
1105
|
-
groups: Ce,
|
|
1106
|
-
classes: Ge,
|
|
1107
|
-
checkbox: te,
|
|
1108
|
-
loading: Q,
|
|
1109
|
-
loadingText: ne ?? H.common.loading,
|
|
1110
|
-
hasMore: F || G.hasMore,
|
|
1111
|
-
onLoadMore: () => I ? G.loadMore() : ie?.(),
|
|
1112
|
-
emptyText: re ?? G.emptyText ?? (ge ? H.common.noResults : H.common.empty),
|
|
1113
|
-
renderItem: se
|
|
1114
|
-
}), qe = X.length ? X.length > m ? (p ?? H.common.selectedCount)(X.length) : X.map((e) => e.label).join(", ") : d ?? H.common.placeholder;
|
|
1115
|
-
return /* @__PURE__ */ Y(Z.Root, {
|
|
1116
|
-
className: V.base({ class: ce }),
|
|
1117
|
-
style: le,
|
|
1118
|
-
collection: Pe,
|
|
1119
|
-
multiple: !0,
|
|
1120
|
-
closeOnSelect: !1,
|
|
1121
|
-
value: ke,
|
|
1122
|
-
onValueChange: (e) => {
|
|
1123
|
-
let t = y(De, e.items, X);
|
|
1124
|
-
Ve(e.value.map((e) => t.get(e)).filter((e) => e !== void 0));
|
|
1125
|
-
},
|
|
1126
|
-
onOpenChange: (e) => {
|
|
1127
|
-
e.open && G.open(), !e.open && ge && (ve(""), P?.(""), I && G.search(""));
|
|
1128
|
-
},
|
|
1129
|
-
disabled: h,
|
|
1130
|
-
invalid: g,
|
|
1131
|
-
required: _,
|
|
1132
|
-
name: v,
|
|
1133
|
-
positioning: {
|
|
1134
|
-
sameWidth: !0,
|
|
1135
|
-
gutter: 4
|
|
1136
|
-
},
|
|
1137
|
-
composite: !Fe,
|
|
1138
|
-
lazyMount: !0,
|
|
1139
|
-
unmountOnExit: !0,
|
|
1140
|
-
children: [
|
|
1141
|
-
/* @__PURE__ */ J(Z.Context, { children: (e) => /* @__PURE__ */ Y(Z.Control, {
|
|
1142
|
-
...B || k ? { className: B ? V.chipsControl() : V.control() } : {},
|
|
1143
|
-
children: [
|
|
1144
|
-
B && X.map((t) => /* @__PURE__ */ Y("span", {
|
|
1145
|
-
className: V.chip(),
|
|
1146
|
-
children: [/* @__PURE__ */ J("span", {
|
|
1147
|
-
className: V.chipText(),
|
|
1148
|
-
children: t.label
|
|
1149
|
-
}), !e.disabled && /* @__PURE__ */ J("button", {
|
|
1150
|
-
type: "button",
|
|
1151
|
-
tabIndex: -1,
|
|
1152
|
-
className: V.chipRemove(),
|
|
1153
|
-
"aria-label": U.removeItem(t.label),
|
|
1154
|
-
onClick: () => He(t),
|
|
1155
|
-
children: /* @__PURE__ */ J(_e, {
|
|
1156
|
-
className: V.chipRemoveIcon(),
|
|
1157
|
-
"aria-hidden": "true"
|
|
1158
|
-
})
|
|
1159
|
-
})]
|
|
1160
|
-
}, t.key)),
|
|
1161
|
-
/* @__PURE__ */ Y(Z.Trigger, {
|
|
1162
|
-
...ue,
|
|
1163
|
-
className: B ? V.chipsTrigger() : V.trigger(),
|
|
1164
|
-
"aria-busy": A || void 0,
|
|
1165
|
-
onKeyDown: Ue,
|
|
1166
|
-
children: [/* @__PURE__ */ J("span", {
|
|
1167
|
-
className: V.value(),
|
|
1168
|
-
"data-placeholder-shown": !X.length || void 0,
|
|
1169
|
-
children: B ? X.length ? /* @__PURE__ */ J("span", {
|
|
1170
|
-
className: V.hiddenValue(),
|
|
1171
|
-
children: X.map((e) => e.label).join(", ")
|
|
1172
|
-
}) : d ?? H.common.placeholder : L && X.length ? L(X.map((e) => e.item)) : qe
|
|
1173
|
-
}), /* @__PURE__ */ J(Z.Indicator, {
|
|
1174
|
-
className: V.indicator(),
|
|
1175
|
-
children: A ? /* @__PURE__ */ J(me, {
|
|
1176
|
-
className: V.spinner(),
|
|
1177
|
-
"aria-hidden": "true"
|
|
1178
|
-
}) : /* @__PURE__ */ J(fe, {
|
|
1179
|
-
className: V.indicatorIcon(),
|
|
1180
|
-
"aria-hidden": "true"
|
|
1181
|
-
})
|
|
1182
|
-
})]
|
|
1183
|
-
}),
|
|
1184
|
-
k && X.length > 0 && !e.disabled && /* @__PURE__ */ J("button", {
|
|
1185
|
-
type: "button",
|
|
1186
|
-
tabIndex: -1,
|
|
1187
|
-
className: B ? V.chipsClear() : V.clear(),
|
|
1188
|
-
"aria-label": U.clear,
|
|
1189
|
-
onClick: () => {
|
|
1190
|
-
Ae([]), e.focus();
|
|
1191
|
-
},
|
|
1192
|
-
children: /* @__PURE__ */ J(_e, {
|
|
1193
|
-
className: V.clearIcon(),
|
|
1194
|
-
"aria-hidden": "true"
|
|
1195
|
-
})
|
|
1196
|
-
})
|
|
1197
|
-
]
|
|
1198
|
-
}) }),
|
|
1199
|
-
(B || O !== void 0 || I) && /* @__PURE__ */ J("span", {
|
|
1200
|
-
role: "status",
|
|
1201
|
-
className: V.status(),
|
|
1202
|
-
children: ze || G.announcement
|
|
1203
|
-
}),
|
|
1204
|
-
/* @__PURE__ */ J(Oe, { children: /* @__PURE__ */ J(Z.Positioner, { children: /* @__PURE__ */ J(Z.Content, {
|
|
1205
|
-
className: V.content(),
|
|
1206
|
-
"aria-busy": Q || void 0,
|
|
1207
|
-
"aria-label": Fe ? ue["aria-label"] : void 0,
|
|
1208
|
-
children: Fe ? /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ Y("div", {
|
|
1209
|
-
className: V.header(),
|
|
1210
|
-
children: [M && /* @__PURE__ */ J(Z.Context, { children: (e) => /* @__PURE__ */ J("input", {
|
|
1211
|
-
type: "text",
|
|
1212
|
-
role: "combobox",
|
|
1213
|
-
autoComplete: "off",
|
|
1214
|
-
"aria-autocomplete": "list",
|
|
1215
|
-
"aria-expanded": "true",
|
|
1216
|
-
"data-autofocus": "",
|
|
1217
|
-
"aria-controls": Ie,
|
|
1218
|
-
"aria-activedescendant": e.highlightedItem ? e.getItemProps({ item: e.highlightedItem }).id : void 0,
|
|
1219
|
-
"aria-label": U.filter,
|
|
1220
|
-
placeholder: H.combobox.search,
|
|
1221
|
-
value: ge,
|
|
1222
|
-
className: V.search(),
|
|
1223
|
-
onChange: (t) => We(e, t.target.value),
|
|
1224
|
-
onKeyDown: (e) => {
|
|
1225
|
-
[
|
|
1226
|
-
" ",
|
|
1227
|
-
"Home",
|
|
1228
|
-
"End"
|
|
1229
|
-
].includes(e.key) && e.stopPropagation();
|
|
1230
|
-
}
|
|
1231
|
-
}) }), D && Le.length > 0 && /* @__PURE__ */ Y("button", {
|
|
1232
|
-
type: "button",
|
|
1233
|
-
role: "checkbox",
|
|
1234
|
-
"aria-checked": Re,
|
|
1235
|
-
className: V.selectAll(),
|
|
1236
|
-
onClick: () => Ve(R(X, be, O)),
|
|
1237
|
-
onKeyDown: (e) => {
|
|
1238
|
-
(e.key === " " || e.key === "Enter") && e.stopPropagation();
|
|
1239
|
-
},
|
|
1240
|
-
children: [/* @__PURE__ */ J("span", {
|
|
1241
|
-
className: V.check(),
|
|
1242
|
-
"data-state": Re === "mixed" ? "indeterminate" : Re ? "checked" : "unchecked",
|
|
1243
|
-
"aria-hidden": "true",
|
|
1244
|
-
children: Re === "mixed" ? /* @__PURE__ */ J(he, { className: V.checkIcon() }) : Re && /* @__PURE__ */ J(de, { className: V.checkIcon() })
|
|
1245
|
-
}), U.selectAll]
|
|
1246
|
-
})]
|
|
1247
|
-
}), /* @__PURE__ */ J(Z.List, {
|
|
1248
|
-
id: Ie,
|
|
1249
|
-
className: V.list(),
|
|
1250
|
-
"data-autofocus": M ? void 0 : "",
|
|
1251
|
-
children: Ke
|
|
1252
|
-
})] }) : Ke
|
|
1253
|
-
}) }) }),
|
|
1254
|
-
/* @__PURE__ */ J(Z.HiddenSelect, {})
|
|
1255
|
-
]
|
|
1256
|
-
});
|
|
1257
|
-
}
|
|
1258
|
-
//#endregion
|
|
1259
|
-
//#region src/components/NumberInput/NumberInput.tsx
|
|
1260
|
-
function wt({ classes: a, value: o, defaultValue: s, onValueChange: c, min: l, max: u, step: d, formatOptions: f = g, locale: p, size: m, invalid: h, success: _, disabled: v, readOnly: ee, required: y, name: x, stepper: S = !0, stepperLayout: C = "inline", prefix: w, suffix: T, allowNegative: E = !0, allowDecimal: O = !0, decimals: k, clampBehavior: ne = "blur", selectOnFocus: j = !1, loading: M = !1, clearable: N = !1, clearLabel: re, className: F, style: ie, onKeyDown: I, onPaste: ae, onFocus: oe, ...L }) {
|
|
1261
|
-
let ce = n("numberInput", te, a), le = t(), R = p ?? le.locale, z = e(), ue = Ae(), de = r(), pe = !(h || ue?.invalid) && (!!_ || de.success), B = ce({
|
|
1262
|
-
size: m,
|
|
1263
|
-
stacked: C === "stacked",
|
|
1264
|
-
success: pe
|
|
1265
|
-
}), H = k === void 0 ? O ? f : {
|
|
1266
|
-
...f,
|
|
1267
|
-
maximumFractionDigits: 0
|
|
1268
|
-
} : {
|
|
1269
|
-
...f,
|
|
1270
|
-
minimumFractionDigits: k,
|
|
1271
|
-
maximumFractionDigits: k
|
|
1272
|
-
}, U = E ? l : Math.max(l ?? 0, 0), [W, me] = K(null), _e = o === void 0 ? void 0 : W && W.number === o ? W.text : se(o, R, H), ve = _e ?? W?.text ?? se(s, R, H) ?? "", G = Se(), ye = Se(), be = w || T ? [
|
|
1273
|
-
ue?.ariaDescribedby,
|
|
1274
|
-
w && G,
|
|
1275
|
-
T && ye,
|
|
1276
|
-
L["aria-describedby"]
|
|
1277
|
-
].filter(Boolean).join(" ") : void 0, xe = Ee(null), Ce = () => {
|
|
1278
|
-
let e = xe.current?.querySelector("input");
|
|
1279
|
-
e && (P(e), e.focus());
|
|
1280
|
-
}, we = !!v || !!ee || !!ue?.disabled || !!ue?.readOnly;
|
|
1281
|
-
return /* @__PURE__ */ J(Be.Root, {
|
|
1282
|
-
className: B.base({ class: F }),
|
|
1283
|
-
style: ie,
|
|
1284
|
-
value: _e,
|
|
1285
|
-
defaultValue: se(s, R, H),
|
|
1286
|
-
onValueChange: (e) => {
|
|
1287
|
-
let t = Number.isNaN(e.valueAsNumber) ? null : e.valueAsNumber;
|
|
1288
|
-
me({
|
|
1289
|
-
text: e.value,
|
|
1290
|
-
number: t
|
|
1291
|
-
}), c?.(t);
|
|
1292
|
-
},
|
|
1293
|
-
min: U,
|
|
1294
|
-
max: u,
|
|
1295
|
-
step: d,
|
|
1296
|
-
formatOptions: H,
|
|
1297
|
-
locale: R,
|
|
1298
|
-
invalid: h,
|
|
1299
|
-
disabled: v,
|
|
1300
|
-
readOnly: ee,
|
|
1301
|
-
required: y,
|
|
1302
|
-
name: x,
|
|
1303
|
-
clampValueOnBlur: ne !== "none",
|
|
1304
|
-
allowOverflow: ne !== "strict",
|
|
1305
|
-
translations: z.numberInput,
|
|
1306
|
-
children: /* @__PURE__ */ Y(Be.Control, {
|
|
1307
|
-
ref: xe,
|
|
1308
|
-
className: B.control(),
|
|
1309
|
-
children: [
|
|
1310
|
-
w && /* @__PURE__ */ J("span", {
|
|
1311
|
-
id: G,
|
|
1312
|
-
className: B.prefix(),
|
|
1313
|
-
children: w
|
|
1314
|
-
}),
|
|
1315
|
-
/* @__PURE__ */ J(Be.Input, {
|
|
1316
|
-
...L,
|
|
1317
|
-
...be ? { "aria-describedby": be } : {},
|
|
1318
|
-
className: B.input(),
|
|
1319
|
-
"aria-busy": M || void 0,
|
|
1320
|
-
onKeyDown: (e) => {
|
|
1321
|
-
if (I?.(e), e.defaultPrevented || e.ctrlKey || e.metaKey || e.altKey) return;
|
|
1322
|
-
let t = e.currentTarget, n = t.selectionStart ?? t.value.length, r = t.value.slice(0, n) + t.value.slice(t.selectionEnd ?? n), i = D(e.key, r, R, {
|
|
1323
|
-
allowDecimal: O && k !== 0,
|
|
1324
|
-
allowNegative: E
|
|
1325
|
-
});
|
|
1326
|
-
i && (e.preventDefault(), i !== "block" && b(t, i.insert));
|
|
1327
|
-
},
|
|
1328
|
-
onPaste: (e) => {
|
|
1329
|
-
ae?.(e);
|
|
1330
|
-
let t = e.currentTarget, n = (t.selectionStart ?? 0) === 0 && (t.selectionEnd ?? 0) === t.value.length, r = A(e.clipboardData.getData("text"), R);
|
|
1331
|
-
!e.defaultPrevented && n && r !== null && (e.preventDefault(), P(t, se(r, R, H)));
|
|
1332
|
-
},
|
|
1333
|
-
onFocus: (e) => {
|
|
1334
|
-
oe?.(e);
|
|
1335
|
-
let t = e.currentTarget;
|
|
1336
|
-
j && requestAnimationFrame(() => t.select());
|
|
1337
|
-
}
|
|
1338
|
-
}),
|
|
1339
|
-
(M || N || pe) && /* @__PURE__ */ J(i, {
|
|
1340
|
-
loading: M,
|
|
1341
|
-
clear: N && !!ve && !we,
|
|
1342
|
-
clearLabel: re ?? z.field.clear,
|
|
1343
|
-
onClear: Ce,
|
|
1344
|
-
success: pe,
|
|
1345
|
-
classes: {
|
|
1346
|
-
spinner: B.spinner(),
|
|
1347
|
-
clear: B.clear(),
|
|
1348
|
-
clearIcon: B.clearIcon(),
|
|
1349
|
-
statusIcon: B.statusIcon()
|
|
1350
|
-
}
|
|
1351
|
-
}),
|
|
1352
|
-
T && /* @__PURE__ */ J("span", {
|
|
1353
|
-
id: ye,
|
|
1354
|
-
className: B.suffix(),
|
|
1355
|
-
children: T
|
|
1356
|
-
}),
|
|
1357
|
-
S && C === "stacked" ? /* @__PURE__ */ Y("div", {
|
|
1358
|
-
className: B.stepper(),
|
|
1359
|
-
children: [/* @__PURE__ */ J(Be.IncrementTrigger, {
|
|
1360
|
-
className: B.button(),
|
|
1361
|
-
children: /* @__PURE__ */ J(V, {
|
|
1362
|
-
className: B.buttonIcon(),
|
|
1363
|
-
"aria-hidden": "true"
|
|
1364
|
-
})
|
|
1365
|
-
}), /* @__PURE__ */ J(Be.DecrementTrigger, {
|
|
1366
|
-
className: B.button(),
|
|
1367
|
-
children: /* @__PURE__ */ J(fe, {
|
|
1368
|
-
className: B.buttonIcon(),
|
|
1369
|
-
"aria-hidden": "true"
|
|
1370
|
-
})
|
|
1371
|
-
})]
|
|
1372
|
-
}) : S && /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(Be.DecrementTrigger, {
|
|
1373
|
-
className: B.button(),
|
|
1374
|
-
children: /* @__PURE__ */ J(he, {
|
|
1375
|
-
className: B.buttonIcon(),
|
|
1376
|
-
"aria-hidden": "true"
|
|
1377
|
-
})
|
|
1378
|
-
}), /* @__PURE__ */ J(Be.IncrementTrigger, {
|
|
1379
|
-
className: B.button(),
|
|
1380
|
-
children: /* @__PURE__ */ J(ge, {
|
|
1381
|
-
className: B.buttonIcon(),
|
|
1382
|
-
"aria-hidden": "true"
|
|
1383
|
-
})
|
|
1384
|
-
})] })
|
|
1385
|
-
]
|
|
1386
|
-
})
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
//#endregion
|
|
1390
|
-
//#region src/components/ContextMenu/ContextMenu.tsx
|
|
1391
|
-
function Tt({ classes: e, items: t, label: r, onSelect: i, onCheckedChange: a, onValueChange: o, linkAs: s, renderItem: c, ref: l, children: u }) {
|
|
1392
|
-
let d = n("menu", w, e)(), f = Ue({
|
|
1393
|
-
open: void 0,
|
|
1394
|
-
anchor: void 0,
|
|
1395
|
-
ref: l,
|
|
1396
|
-
restoreFocus: !0
|
|
1397
|
-
}), [p] = K(() => m((e) => f.handle.open(e)));
|
|
1398
|
-
return xe(() => p.cancel, [p]), /* @__PURE__ */ J(Ke, {
|
|
1399
|
-
items: t,
|
|
1400
|
-
linkAs: s,
|
|
1401
|
-
renderItem: c,
|
|
1402
|
-
onCheckedChange: a,
|
|
1403
|
-
onValueChange: o,
|
|
1404
|
-
children: /* @__PURE__ */ Y(X.Root, {
|
|
1405
|
-
open: f.isOpen,
|
|
1406
|
-
onOpenChange: (e) => f.onOpenChange(e.open),
|
|
1407
|
-
positioning: f.positioning({}),
|
|
1408
|
-
anchorPoint: f.anchorPoint,
|
|
1409
|
-
lazyMount: !0,
|
|
1410
|
-
unmountOnExit: !0,
|
|
1411
|
-
onSelect: (e) => i?.(e.value),
|
|
1412
|
-
children: [/* @__PURE__ */ J(X.ContextTrigger, {
|
|
1413
|
-
asChild: !0,
|
|
1414
|
-
onPointerDown: (e) => p.down(e),
|
|
1415
|
-
onPointerMove: (e) => p.move(e),
|
|
1416
|
-
onPointerUp: () => p.cancel(),
|
|
1417
|
-
onPointerCancel: () => p.cancel(),
|
|
1418
|
-
children: u
|
|
1419
|
-
}), /* @__PURE__ */ J(Oe, { children: /* @__PURE__ */ J(X.Positioner, { children: /* @__PURE__ */ J(X.Content, {
|
|
1420
|
-
className: d.content(),
|
|
1421
|
-
...r ? {
|
|
1422
|
-
"aria-label": r,
|
|
1423
|
-
"aria-labelledby": void 0
|
|
1424
|
-
} : {},
|
|
1425
|
-
children: /* @__PURE__ */ J(Ye, {
|
|
1426
|
-
entries: t,
|
|
1427
|
-
onSelect: i
|
|
1428
|
-
})
|
|
1429
|
-
}) }) })]
|
|
1430
|
-
})
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
//#endregion
|
|
1434
|
-
export { Ue as S, Ze as _, gt as a, Ye as b, tt as c, ut as d, nt as f, Qe as g, rt as h, St as i, et as l, it as m, wt as n, dt as o, lt as p, Ct as r, ft as s, Tt as t, st as u, Xe as v, Ke as x, qe as y };
|