@motech-development/breeze-ui 4.6.0 → 4.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/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1120 -1289
- package/lib/index.js.map +1 -1
- package/lib/primitives/Calendar/Calendar.d.ts +47 -0
- package/lib/primitives/Calendar/Calendar.d.ts.map +1 -0
- package/lib/primitives/Collection/CollectionPopover.d.ts +3 -1
- package/lib/primitives/Collection/CollectionPopover.d.ts.map +1 -1
- package/lib/primitives/ComboBox/ComboBox.d.ts.map +1 -1
- package/lib/primitives/DatePicker/DatePicker.d.ts +51 -0
- package/lib/primitives/DatePicker/DatePicker.d.ts.map +1 -0
- package/lib/primitives/Field/field.presentation.d.ts +3 -1
- package/lib/primitives/Field/field.presentation.d.ts.map +1 -1
- package/lib/primitives/Select/Select.d.ts +1 -1
- package/lib/primitives/Select/Select.d.ts.map +1 -1
- package/lib/provider/BreezeProvider.d.ts.map +1 -1
- package/lib/provider/en-GB.d.ts +2 -0
- package/lib/provider/en-GB.d.ts.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +1 -2
package/lib/index.js
CHANGED
|
@@ -5,43 +5,37 @@ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
|
5
5
|
import { Button as g } from "react-aria-components/Button";
|
|
6
6
|
import { ProgressBarContext as _ } from "react-aria-components/ProgressBar";
|
|
7
7
|
import { useSlottedContext as v } from "react-aria-components/slots";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { useListBox as we, useOption as Te } from "react-aria/useListBox";
|
|
30
|
-
import { useSelect as Ee } from "react-aria/useSelect";
|
|
31
|
-
import { useVisuallyHidden as De } from "react-aria/VisuallyHidden";
|
|
32
|
-
import { useSelectState as Oe } from "react-stately/useSelectState";
|
|
33
|
-
import { TextField as ke } from "react-aria-components/TextField";
|
|
34
|
-
import { parseDate as Ae } from "@internationalized/date";
|
|
8
|
+
import { parseDate as y } from "@internationalized/date";
|
|
9
|
+
import { Calendar as b, CalendarCell as x, CalendarGrid as S, CalendarGridBody as C, CalendarGridHeader as w, CalendarHeaderCell as T, CalendarHeading as E } from "react-aria-components/Calendar";
|
|
10
|
+
import { ArrowDownLeft as D, ArrowUpRight as O, Bell as k, Building2 as A, CalendarDays as j, Camera as M, Check as N, ChevronDown as ee, ChevronLeft as te, ChevronRight as P, Clock3 as F, Download as I, Ellipsis as L, FileText as R, House as ne, List as re, LockKeyhole as z, LogOut as B, Plus as ie, Settings as ae, Trash2 as V, TriangleAlert as oe, Upload as H, Users as U, X as se } from "lucide-react";
|
|
11
|
+
import { useObjectRef as ce } from "react-aria/useObjectRef";
|
|
12
|
+
import { CheckboxButton as W, CheckboxField as le } from "react-aria-components/Checkbox";
|
|
13
|
+
import { FieldError as ue } from "react-aria-components/FieldError";
|
|
14
|
+
import { Label as de } from "react-aria-components/Label";
|
|
15
|
+
import { Text as fe } from "react-aria-components/Text";
|
|
16
|
+
import { ComboBox as pe, ComboBoxStateContext as me, useFilter as he } from "react-aria-components/ComboBox";
|
|
17
|
+
import { Group as ge } from "react-aria-components/Group";
|
|
18
|
+
import { Input as _e } from "react-aria-components/Input";
|
|
19
|
+
import { ListBox as ve, ListBoxItem as ye } from "react-aria-components/ListBox";
|
|
20
|
+
import { Popover as be } from "react-aria-components/Popover";
|
|
21
|
+
import { UNSAFE_PortalProvider as xe } from "react-aria/PortalProvider";
|
|
22
|
+
import { I18nProvider as Se, useLocale as Ce } from "react-aria-components/I18nProvider";
|
|
23
|
+
import { Dialog as we } from "react-aria-components/Dialog";
|
|
24
|
+
import { Modal as Te, ModalOverlay as Ee } from "react-aria-components/Modal";
|
|
25
|
+
import { NumberField as De } from "react-aria-components/NumberField";
|
|
26
|
+
import { Select as Oe, SelectStateContext as ke, SelectValue as Ae } from "react-aria-components/Select";
|
|
27
|
+
import { TextField as je } from "react-aria-components/TextField";
|
|
28
|
+
import { createPortal as Me } from "react-dom";
|
|
35
29
|
//#region src/provider/BreezeContext.ts
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
let e = a(
|
|
30
|
+
var Ne = n(null);
|
|
31
|
+
function G() {
|
|
32
|
+
let e = a(Ne);
|
|
39
33
|
if (e === null) throw Error("Breeze components must be rendered within BreezeProvider.");
|
|
40
34
|
return e;
|
|
41
35
|
}
|
|
42
36
|
//#endregion
|
|
43
37
|
//#region src/patterns/AppearanceControl/AppearanceControl.tsx
|
|
44
|
-
var
|
|
38
|
+
var Pe = {
|
|
45
39
|
base: {
|
|
46
40
|
control: "breeze:flex breeze:items-center breeze:gap-breeze-2 breeze:font-breeze-sans",
|
|
47
41
|
group: "breeze:flex breeze:items-center breeze:gap-breeze-2",
|
|
@@ -52,7 +46,7 @@ var Me = {
|
|
|
52
46
|
size: {},
|
|
53
47
|
state: { selected: "breeze:data-[selected]:border-breeze-brand breeze:data-[selected]:bg-breeze-brand-soft breeze:data-[selected]:text-breeze-brand-text breeze:forced-colors:data-[selected]:outline-2 breeze:forced-colors:data-[selected]:outline-offset-2" },
|
|
54
48
|
variant: {}
|
|
55
|
-
},
|
|
49
|
+
}, Fe = [
|
|
56
50
|
{
|
|
57
51
|
message: "appearanceLight",
|
|
58
52
|
value: "light"
|
|
@@ -66,30 +60,30 @@ var Me = {
|
|
|
66
60
|
value: "dark"
|
|
67
61
|
}
|
|
68
62
|
];
|
|
69
|
-
function
|
|
70
|
-
return
|
|
63
|
+
function Ie(e) {
|
|
64
|
+
return Fe.some((t) => t.value === e);
|
|
71
65
|
}
|
|
72
|
-
function
|
|
73
|
-
let { appearance: n, getMessageLocale: r, messages: i, setAppearance: a } =
|
|
66
|
+
function Le() {
|
|
67
|
+
let { appearance: n, getMessageLocale: r, messages: i, setAppearance: a } = G();
|
|
74
68
|
return /* @__PURE__ */ h("div", {
|
|
75
|
-
className:
|
|
69
|
+
className: Pe.base.control,
|
|
76
70
|
children: [/* @__PURE__ */ m("span", {
|
|
77
|
-
className:
|
|
71
|
+
className: Pe.base.label,
|
|
78
72
|
lang: r("appearance"),
|
|
79
73
|
children: i.appearance
|
|
80
74
|
}), /* @__PURE__ */ m(t, {
|
|
81
75
|
"aria-label": i.appearance,
|
|
82
|
-
className:
|
|
76
|
+
className: Pe.base.group,
|
|
83
77
|
disallowEmptySelection: !0,
|
|
84
78
|
lang: r("appearance"),
|
|
85
79
|
onSelectionChange: (e) => {
|
|
86
80
|
let [t] = e;
|
|
87
|
-
|
|
81
|
+
Ie(t) && a(t);
|
|
88
82
|
},
|
|
89
83
|
selectedKeys: [n],
|
|
90
84
|
selectionMode: "single",
|
|
91
|
-
children:
|
|
92
|
-
className: [
|
|
85
|
+
children: Fe.map((t) => /* @__PURE__ */ m(e, {
|
|
86
|
+
className: [Pe.base.option, Pe.state.selected].join(" "),
|
|
93
87
|
id: t.value,
|
|
94
88
|
lang: r(t.message),
|
|
95
89
|
children: i[t.message]
|
|
@@ -99,7 +93,7 @@ function Fe() {
|
|
|
99
93
|
}
|
|
100
94
|
//#endregion
|
|
101
95
|
//#region src/primitives/Skeleton/Skeleton.tsx
|
|
102
|
-
var
|
|
96
|
+
var Re = {
|
|
103
97
|
base: { skeleton: "breeze:block breeze:animate-pulse breeze:appearance-none breeze:bg-breeze-ink-3 breeze:pointer-events-none breeze:forced-colors:outline breeze:forced-colors:outline-1 breeze:forced-colors:outline-[CanvasText]" },
|
|
104
98
|
compound: {},
|
|
105
99
|
size: {},
|
|
@@ -110,37 +104,37 @@ var Ie = {
|
|
|
110
104
|
text: "breeze:block-size-breeze-3 breeze:inline-size-full breeze:rounded-breeze-xs"
|
|
111
105
|
}
|
|
112
106
|
};
|
|
113
|
-
function
|
|
114
|
-
let { getMessageLocale: i, messages: a } =
|
|
107
|
+
function K({ blockSize: e, inlineSize: t, label: n, shape: r = "text" }) {
|
|
108
|
+
let { getMessageLocale: i, messages: a } = G(), o = n?.trim() || void 0, s = e ?? t ?? "0.75rem", c = {
|
|
115
109
|
blockSize: r === "circle" ? s : e,
|
|
116
110
|
inlineSize: r === "circle" ? s : t
|
|
117
111
|
};
|
|
118
112
|
return /* @__PURE__ */ m("progress", {
|
|
119
113
|
"aria-hidden": o === void 0 || void 0,
|
|
120
114
|
"aria-label": o,
|
|
121
|
-
className: [
|
|
115
|
+
className: [Re.base.skeleton, Re.variant[r]].join(" "),
|
|
122
116
|
lang: o === a.loading.trim() ? i("loading") : void 0,
|
|
123
117
|
style: c
|
|
124
118
|
});
|
|
125
119
|
}
|
|
126
120
|
//#endregion
|
|
127
121
|
//#region src/primitives/VisuallyHidden/VisuallyHidden.tsx
|
|
128
|
-
var
|
|
122
|
+
var ze = {
|
|
129
123
|
base: { hidden: "breeze:sr-only" },
|
|
130
124
|
compound: {},
|
|
131
125
|
size: {},
|
|
132
126
|
state: {},
|
|
133
127
|
variant: {}
|
|
134
128
|
};
|
|
135
|
-
function
|
|
129
|
+
function Be({ children: e }) {
|
|
136
130
|
return /* @__PURE__ */ m("span", {
|
|
137
|
-
className:
|
|
131
|
+
className: ze.base.hidden,
|
|
138
132
|
children: e
|
|
139
133
|
});
|
|
140
134
|
}
|
|
141
135
|
//#endregion
|
|
142
136
|
//#region src/primitives/Badge/Badge.tsx
|
|
143
|
-
var
|
|
137
|
+
var Ve = {
|
|
144
138
|
base: {
|
|
145
139
|
badge: "breeze:inline-grid breeze:shrink-0 breeze:items-center breeze:whitespace-nowrap breeze:rounded-breeze-chip breeze:ps-breeze-2 breeze:pe-breeze-2 breeze:py-breeze-px breeze:text-breeze-2xs breeze:font-bold breeze:leading-breeze-snug breeze:tracking-breeze-wide",
|
|
146
140
|
content: "breeze:[grid-area:1/1]",
|
|
@@ -157,29 +151,29 @@ var ze = {
|
|
|
157
151
|
warning: "breeze:bg-breeze-warn-soft breeze:text-breeze-warn"
|
|
158
152
|
}
|
|
159
153
|
};
|
|
160
|
-
function
|
|
161
|
-
let { messages: i } =
|
|
154
|
+
function He({ "aria-label": e, children: t, loading: n = !1, variant: r = "neutral" }) {
|
|
155
|
+
let { messages: i } = G(), a = e?.trim() || void 0, o;
|
|
162
156
|
return n ? o = /* @__PURE__ */ m("span", {
|
|
163
|
-
className:
|
|
164
|
-
children: /* @__PURE__ */ m(
|
|
157
|
+
className: Ve.base.skeleton,
|
|
158
|
+
children: /* @__PURE__ */ m(K, {
|
|
165
159
|
blockSize: 8,
|
|
166
160
|
inlineSize: "100%",
|
|
167
161
|
label: i.loading,
|
|
168
162
|
shape: "rectangle"
|
|
169
163
|
})
|
|
170
|
-
}) : a !== void 0 && (o = /* @__PURE__ */ m(
|
|
164
|
+
}) : a !== void 0 && (o = /* @__PURE__ */ m(Be, { children: a })), /* @__PURE__ */ h("span", {
|
|
171
165
|
"aria-busy": n || void 0,
|
|
172
|
-
className: [
|
|
166
|
+
className: [Ve.base.badge, Ve.variant[r]].join(" "),
|
|
173
167
|
children: [/* @__PURE__ */ m("span", {
|
|
174
168
|
"aria-hidden": n || a !== void 0 ? !0 : void 0,
|
|
175
|
-
className: [
|
|
169
|
+
className: [Ve.base.content, n && Ve.state.contentLoading].filter(Boolean).join(" "),
|
|
176
170
|
children: t
|
|
177
171
|
}), o]
|
|
178
172
|
});
|
|
179
173
|
}
|
|
180
174
|
//#endregion
|
|
181
175
|
//#region src/primitives/Button/Button.tsx
|
|
182
|
-
var
|
|
176
|
+
var q = {
|
|
183
177
|
base: {
|
|
184
178
|
button: "breeze:relative breeze:inline-grid breeze:items-center breeze:justify-center breeze:gap-breeze-2 breeze:border breeze:border-solid breeze:rounded-breeze-ctl breeze:font-breeze-sans breeze:text-breeze-sm breeze:leading-breeze-snug breeze:cursor-pointer breeze:select-none breeze:[text-align:center] breeze:outline-offset-2 breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:any-pointer-coarse:min-block-breeze-tap breeze:any-pointer-coarse:min-inline-breeze-tap",
|
|
185
179
|
label: "breeze:[grid-area:1/1]",
|
|
@@ -209,23 +203,23 @@ var Y = {
|
|
|
209
203
|
secondary: "breeze:border-breeze-line-strong breeze:bg-breeze-surface breeze:text-breeze-ink breeze:data-[hovered]:bg-breeze-sunken breeze:data-[pressed]:bg-breeze-sunken"
|
|
210
204
|
}
|
|
211
205
|
};
|
|
212
|
-
function
|
|
213
|
-
let e = v(_), { getMessageLocale: t, messages: n } =
|
|
206
|
+
function Ue() {
|
|
207
|
+
let e = v(_), { getMessageLocale: t, messages: n } = G();
|
|
214
208
|
return /* @__PURE__ */ m("progress", {
|
|
215
209
|
"aria-label": n.loading,
|
|
216
|
-
className:
|
|
210
|
+
className: q.state.loadingStatus,
|
|
217
211
|
id: e?.id,
|
|
218
212
|
lang: t("loading")
|
|
219
213
|
});
|
|
220
214
|
}
|
|
221
|
-
function
|
|
222
|
-
|
|
215
|
+
function We({ "aria-controls": e, "aria-describedby": t, "aria-expanded": n, "aria-haspopup": i, "aria-label": a, "aria-labelledby": o, children: s, disabled: c = !1, form: l, id: u, loading: d = !1, name: f, onAction: _, ref: v, size: y = "md", type: b = "button", value: x, variant: S = "primary" }) {
|
|
216
|
+
G();
|
|
223
217
|
let C = [
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
c &&
|
|
228
|
-
d &&
|
|
218
|
+
q.base.button,
|
|
219
|
+
q.variant[S],
|
|
220
|
+
q.size[y],
|
|
221
|
+
c && q.state.disabled,
|
|
222
|
+
d && q.state.loading
|
|
229
223
|
].filter(Boolean).join(" ");
|
|
230
224
|
return /* @__PURE__ */ h(g, {
|
|
231
225
|
"aria-controls": e,
|
|
@@ -251,18 +245,208 @@ function He({ "aria-controls": e, "aria-describedby": t, "aria-expanded": n, "ar
|
|
|
251
245
|
type: b,
|
|
252
246
|
value: x,
|
|
253
247
|
children: [/* @__PURE__ */ m("span", {
|
|
254
|
-
className: [
|
|
248
|
+
className: [q.base.label, d && q.state.loadingLabel].filter(Boolean).join(" "),
|
|
255
249
|
children: s
|
|
256
|
-
}), d && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(
|
|
250
|
+
}), d && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(Ue, {}), /* @__PURE__ */ m("span", {
|
|
257
251
|
"aria-hidden": "true",
|
|
258
|
-
className: [
|
|
252
|
+
className: [q.base.skeleton, q.compound.loading[S]].join(" "),
|
|
259
253
|
"data-breeze-skeleton": ""
|
|
260
254
|
})] })]
|
|
261
255
|
});
|
|
262
256
|
}
|
|
263
257
|
//#endregion
|
|
258
|
+
//#region src/primitives/Field/field.styles.ts
|
|
259
|
+
var J = {
|
|
260
|
+
base: {
|
|
261
|
+
control: "breeze:relative breeze:inline-grid breeze:min-inline-size-0 breeze:inline-size-full",
|
|
262
|
+
description: "breeze:m-0 breeze:text-breeze-xs breeze:font-normal breeze:leading-breeze-snug breeze:text-breeze-ink-3",
|
|
263
|
+
error: "breeze:m-0 breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug breeze:text-breeze-danger",
|
|
264
|
+
input: "breeze:min-block-breeze-md breeze:any-pointer-coarse:min-block-breeze-tap breeze:min-inline-size-0 breeze:inline-size-full breeze:rounded-breeze-ctl breeze:border breeze:border-solid breeze:border-breeze-line-strong breeze:bg-breeze-surface breeze:ps-breeze-3 breeze:pe-breeze-3 breeze:py-breeze-2 breeze:font-breeze-sans breeze:text-breeze-sm breeze:leading-breeze-snug breeze:text-breeze-ink breeze:outline-offset-2 breeze:placeholder:text-breeze-ink-3 breeze:data-[hovered]:border-breeze-brand breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:data-[invalid]:border-breeze-danger breeze:disabled:cursor-not-allowed breeze:disabled:bg-breeze-sunken breeze:disabled:opacity-60 breeze:read-only:cursor-default breeze:read-only:bg-breeze-sunken",
|
|
265
|
+
label: "breeze:m-0 breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug breeze:text-breeze-ink",
|
|
266
|
+
root: "breeze:flex breeze:min-inline-size-0 breeze:flex-col breeze:gap-breeze-2",
|
|
267
|
+
skeleton: "breeze:pointer-events-none breeze:absolute breeze:[inset-block:0] breeze:[inset-inline:0]"
|
|
268
|
+
},
|
|
269
|
+
compound: {},
|
|
270
|
+
size: {},
|
|
271
|
+
state: { loadingInput: "breeze:!opacity-0" },
|
|
272
|
+
variant: {}
|
|
273
|
+
};
|
|
274
|
+
function Y(...e) {
|
|
275
|
+
return e.filter(Boolean).join(" ");
|
|
276
|
+
}
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region src/primitives/Icon/Icon.tsx
|
|
279
|
+
var Ge = {
|
|
280
|
+
add: ie,
|
|
281
|
+
back: te,
|
|
282
|
+
building: A,
|
|
283
|
+
calendar: j,
|
|
284
|
+
camera: M,
|
|
285
|
+
check: N,
|
|
286
|
+
clock: F,
|
|
287
|
+
close: se,
|
|
288
|
+
delete: V,
|
|
289
|
+
document: R,
|
|
290
|
+
download: I,
|
|
291
|
+
expand: ee,
|
|
292
|
+
forward: P,
|
|
293
|
+
lock: z,
|
|
294
|
+
money: re,
|
|
295
|
+
moneyIn: D,
|
|
296
|
+
moneyOut: O,
|
|
297
|
+
more: L,
|
|
298
|
+
next: P,
|
|
299
|
+
notifications: k,
|
|
300
|
+
overview: ne,
|
|
301
|
+
people: U,
|
|
302
|
+
settings: ae,
|
|
303
|
+
signOut: B,
|
|
304
|
+
upload: H,
|
|
305
|
+
warning: oe
|
|
306
|
+
}, Ke = {
|
|
307
|
+
base: { icon: "breeze:block breeze:shrink-0" },
|
|
308
|
+
compound: {},
|
|
309
|
+
size: {
|
|
310
|
+
lg: "breeze:block-size-breeze-6 breeze:inline-size-breeze-6",
|
|
311
|
+
md: "breeze:block-size-breeze-5 breeze:inline-size-breeze-5",
|
|
312
|
+
sm: "breeze:block-size-breeze-4 breeze:inline-size-breeze-4"
|
|
313
|
+
},
|
|
314
|
+
state: { logicalDirection: "breeze:rtl:rotate-180" },
|
|
315
|
+
variant: {}
|
|
316
|
+
}, qe = /* @__PURE__ */ new Set([
|
|
317
|
+
"back",
|
|
318
|
+
"forward",
|
|
319
|
+
"next"
|
|
320
|
+
]);
|
|
321
|
+
function X({ label: e, name: t, size: n = "md" }) {
|
|
322
|
+
let r = Ge[t], i = e?.trim() || void 0;
|
|
323
|
+
return /* @__PURE__ */ m(r, {
|
|
324
|
+
"aria-hidden": i === void 0 || void 0,
|
|
325
|
+
"aria-label": i,
|
|
326
|
+
className: [
|
|
327
|
+
Ke.base.icon,
|
|
328
|
+
Ke.size[n],
|
|
329
|
+
qe.has(t) && Ke.state.logicalDirection
|
|
330
|
+
].filter(Boolean).join(" "),
|
|
331
|
+
focusable: "false",
|
|
332
|
+
role: i === void 0 ? void 0 : "img",
|
|
333
|
+
strokeWidth: 1.75
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region src/primitives/Calendar/Calendar.tsx
|
|
338
|
+
var Z = {
|
|
339
|
+
base: {
|
|
340
|
+
cell: "breeze:grid breeze:min-block-breeze-8 breeze:min-inline-breeze-8 breeze:any-pointer-coarse:min-block-breeze-tap breeze:any-pointer-coarse:min-inline-breeze-tap breeze:place-items-center breeze:rounded-breeze-full breeze:font-breeze-sans breeze:text-breeze-sm breeze:text-breeze-ink breeze:outline-offset-2 breeze:data-[focused]:bg-breeze-sunken breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:data-[hovered]:bg-breeze-sunken breeze:data-[disabled]:cursor-not-allowed breeze:data-[disabled]:opacity-50 breeze:data-[outside-month]:text-breeze-ink-3",
|
|
341
|
+
disabledRoot: "breeze:pointer-events-none breeze:[&>div:last-child]:hidden",
|
|
342
|
+
grid: "breeze:w-full breeze:table-fixed breeze:border-separate breeze:border-spacing-1 breeze:any-pointer-coarse:border-spacing-0",
|
|
343
|
+
header: "breeze:mb-breeze-2 breeze:flex breeze:min-block-breeze-tap breeze:items-center breeze:justify-between",
|
|
344
|
+
heading: "breeze:m-0 breeze:font-breeze-sans breeze:text-breeze-sm breeze:font-semibold breeze:text-breeze-ink",
|
|
345
|
+
navButton: "breeze:grid breeze:block-size-breeze-8 breeze:inline-size-breeze-8 breeze:place-items-center breeze:rounded-breeze-full breeze:border-0 breeze:bg-transparent breeze:text-breeze-ink-2 breeze:outline-offset-2 breeze:hover:bg-breeze-sunken breeze:focus-visible:outline-2 breeze:focus-visible:outline-solid breeze:focus-visible:outline-breeze-brand breeze:data-[disabled]:cursor-not-allowed breeze:data-[disabled]:opacity-50 breeze:any-pointer-coarse:min-block-breeze-tap breeze:any-pointer-coarse:min-inline-breeze-tap",
|
|
346
|
+
root: "breeze:flex breeze:flex-col breeze:gap-breeze-2 breeze:outline-none",
|
|
347
|
+
selectedCell: "breeze:bg-breeze-brand breeze:text-breeze-on-brand breeze:data-[focused]:data-[selected]:bg-breeze-brand breeze:data-[selected]:data-[hovered]:bg-breeze-brand breeze:data-[outside-month]:data-[selected]:text-breeze-on-brand breeze:forced-colors:data-[selected]:outline-2 breeze:forced-colors:data-[selected]:outline-solid breeze:forced-colors:data-[selected]:outline-offset-2",
|
|
348
|
+
todayCell: "breeze:outline-2 breeze:outline-solid breeze:outline-breeze-brand",
|
|
349
|
+
weekday: "breeze:pb-breeze-1 breeze:text-center breeze:font-breeze-sans breeze:text-breeze-xs breeze:font-medium breeze:text-breeze-ink-3"
|
|
350
|
+
},
|
|
351
|
+
compound: {},
|
|
352
|
+
size: {},
|
|
353
|
+
state: {},
|
|
354
|
+
variant: {}
|
|
355
|
+
};
|
|
356
|
+
function Je(e) {
|
|
357
|
+
try {
|
|
358
|
+
return y(e);
|
|
359
|
+
} catch {
|
|
360
|
+
return null;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
function Ye({ disabled: e }) {
|
|
364
|
+
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
|
|
365
|
+
className: Z.base.header,
|
|
366
|
+
children: [
|
|
367
|
+
/* @__PURE__ */ m(g, {
|
|
368
|
+
className: Z.base.navButton,
|
|
369
|
+
isDisabled: e,
|
|
370
|
+
slot: "previous",
|
|
371
|
+
children: /* @__PURE__ */ m(X, {
|
|
372
|
+
name: "back",
|
|
373
|
+
size: "sm"
|
|
374
|
+
})
|
|
375
|
+
}),
|
|
376
|
+
/* @__PURE__ */ m(E, { className: Z.base.heading }),
|
|
377
|
+
/* @__PURE__ */ m(g, {
|
|
378
|
+
className: Z.base.navButton,
|
|
379
|
+
isDisabled: e,
|
|
380
|
+
slot: "next",
|
|
381
|
+
children: /* @__PURE__ */ m(X, {
|
|
382
|
+
name: "next",
|
|
383
|
+
size: "sm"
|
|
384
|
+
})
|
|
385
|
+
})
|
|
386
|
+
]
|
|
387
|
+
}), /* @__PURE__ */ h(S, {
|
|
388
|
+
className: Z.base.grid,
|
|
389
|
+
weekdayStyle: "short",
|
|
390
|
+
children: [/* @__PURE__ */ m(w, { children: (e) => /* @__PURE__ */ m(T, {
|
|
391
|
+
className: Z.base.weekday,
|
|
392
|
+
children: e
|
|
393
|
+
}) }), /* @__PURE__ */ m(C, { children: (t) => /* @__PURE__ */ m(x, {
|
|
394
|
+
className: ({ isSelected: e, isToday: t }) => Y(Z.base.cell, e && Z.base.selectedCell, t && !e && Z.base.todayCell),
|
|
395
|
+
date: t,
|
|
396
|
+
render: (t) => r("div", {
|
|
397
|
+
...t,
|
|
398
|
+
"aria-disabled": e || t["aria-disabled"],
|
|
399
|
+
...e ? { "data-disabled": !0 } : {},
|
|
400
|
+
tabIndex: e ? -1 : t.tabIndex
|
|
401
|
+
})
|
|
402
|
+
}) })]
|
|
403
|
+
})] });
|
|
404
|
+
}
|
|
405
|
+
function Xe({ autoFocus: e, defaultValue: t, disabled: n, label: i, onChange: a, value: s }) {
|
|
406
|
+
let c = s?.toString(), l = u(c), [f, p] = d(s ?? void 0);
|
|
407
|
+
o(() => {
|
|
408
|
+
c !== l.current && (l.current = c, s != null && p(s));
|
|
409
|
+
}, [c, s]);
|
|
410
|
+
let h = s != null && c !== l.current ? s : f, g = s == null ? {} : {
|
|
411
|
+
focusedValue: h,
|
|
412
|
+
onFocusChange: p
|
|
413
|
+
}, _ = s === void 0 ? {} : { value: s }, v = t === void 0 ? {} : { defaultValue: t }, y = a === void 0 ? {} : { onChange: a };
|
|
414
|
+
return r(b, {
|
|
415
|
+
"aria-label": i,
|
|
416
|
+
autoFocus: e && !n,
|
|
417
|
+
className: Y(Z.base.root, n && Z.base.disabledRoot),
|
|
418
|
+
firstDayOfWeek: "mon",
|
|
419
|
+
isReadOnly: n,
|
|
420
|
+
render: n ? (e) => r("div", {
|
|
421
|
+
...e,
|
|
422
|
+
"aria-disabled": !0,
|
|
423
|
+
onKeyDownCapture: (e) => {
|
|
424
|
+
e.key === "Tab" || e.key === "Escape" || (e.preventDefault(), e.stopPropagation());
|
|
425
|
+
}
|
|
426
|
+
}) : void 0,
|
|
427
|
+
weeksInMonth: 6,
|
|
428
|
+
...g,
|
|
429
|
+
...v,
|
|
430
|
+
...y,
|
|
431
|
+
..._
|
|
432
|
+
}, /* @__PURE__ */ m(Ye, { disabled: n }));
|
|
433
|
+
}
|
|
434
|
+
function Ze({ autoFocus: e = !1, defaultValue: t, disabled: n = !1, label: r, onChange: i, value: a }) {
|
|
435
|
+
let o = a === void 0 ? void 0 : Je(a);
|
|
436
|
+
return /* @__PURE__ */ m(Xe, {
|
|
437
|
+
autoFocus: e,
|
|
438
|
+
defaultValue: t === void 0 ? void 0 : Je(t),
|
|
439
|
+
disabled: n,
|
|
440
|
+
label: r,
|
|
441
|
+
onChange: (e) => {
|
|
442
|
+
e && i?.(e.toString());
|
|
443
|
+
},
|
|
444
|
+
value: o
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
//#endregion
|
|
264
448
|
//#region src/primitives/layout.accessibility.ts
|
|
265
|
-
function
|
|
449
|
+
function Qe(e, t) {
|
|
266
450
|
let n = e?.trim() || void 0;
|
|
267
451
|
return {
|
|
268
452
|
accessibleLabel: n,
|
|
@@ -271,7 +455,7 @@ function Ue(e, t) {
|
|
|
271
455
|
}
|
|
272
456
|
//#endregion
|
|
273
457
|
//#region src/primitives/Card/Card.tsx
|
|
274
|
-
var
|
|
458
|
+
var $e = {
|
|
275
459
|
base: { card: "breeze:min-inline-size-0 breeze:rounded-breeze-panel breeze:border breeze:border-solid breeze:border-breeze-line breeze:shadow-breeze-panel" },
|
|
276
460
|
compound: {},
|
|
277
461
|
size: {
|
|
@@ -291,81 +475,62 @@ var We = {
|
|
|
291
475
|
surface: "breeze:bg-breeze-surface"
|
|
292
476
|
}
|
|
293
477
|
};
|
|
294
|
-
function
|
|
295
|
-
let { accessibleLabel: s, role: c } =
|
|
478
|
+
function et({ "aria-label": e, children: t, clipped: n = !0, element: i = "div", padding: a = 4, variant: o = "surface" }) {
|
|
479
|
+
let { accessibleLabel: s, role: c } = Qe(e, i);
|
|
296
480
|
return r(i, {
|
|
297
481
|
"aria-label": s,
|
|
298
482
|
className: [
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
n &&
|
|
483
|
+
$e.base.card,
|
|
484
|
+
$e.variant[o],
|
|
485
|
+
$e.size[a],
|
|
486
|
+
n && $e.state.clipped
|
|
303
487
|
].filter(Boolean).join(" "),
|
|
304
488
|
role: c
|
|
305
489
|
}, t);
|
|
306
490
|
}
|
|
307
491
|
//#endregion
|
|
308
|
-
//#region src/primitives/Field/field.styles.ts
|
|
309
|
-
var X = {
|
|
310
|
-
base: {
|
|
311
|
-
control: "breeze:relative breeze:inline-grid breeze:min-inline-size-0 breeze:inline-size-full",
|
|
312
|
-
description: "breeze:m-0 breeze:text-breeze-xs breeze:font-normal breeze:leading-breeze-snug breeze:text-breeze-ink-3",
|
|
313
|
-
error: "breeze:m-0 breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug breeze:text-breeze-danger",
|
|
314
|
-
input: "breeze:min-block-breeze-md breeze:any-pointer-coarse:min-block-breeze-tap breeze:min-inline-size-0 breeze:inline-size-full breeze:rounded-breeze-ctl breeze:border breeze:border-solid breeze:border-breeze-line-strong breeze:bg-breeze-surface breeze:ps-breeze-3 breeze:pe-breeze-3 breeze:py-breeze-2 breeze:font-breeze-sans breeze:text-breeze-sm breeze:leading-breeze-snug breeze:text-breeze-ink breeze:outline-offset-2 breeze:placeholder:text-breeze-ink-3 breeze:data-[hovered]:border-breeze-brand breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:data-[invalid]:border-breeze-danger breeze:disabled:cursor-not-allowed breeze:disabled:bg-breeze-sunken breeze:disabled:opacity-60 breeze:read-only:cursor-default breeze:read-only:bg-breeze-sunken",
|
|
315
|
-
label: "breeze:m-0 breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug breeze:text-breeze-ink",
|
|
316
|
-
root: "breeze:flex breeze:min-inline-size-0 breeze:flex-col breeze:gap-breeze-2",
|
|
317
|
-
skeleton: "breeze:pointer-events-none breeze:absolute breeze:[inset-block:0] breeze:[inset-inline:0]"
|
|
318
|
-
},
|
|
319
|
-
compound: {},
|
|
320
|
-
size: {},
|
|
321
|
-
state: { loadingInput: "breeze:!opacity-0" },
|
|
322
|
-
variant: {}
|
|
323
|
-
};
|
|
324
|
-
function Z(...e) {
|
|
325
|
-
return e.filter(Boolean).join(" ");
|
|
326
|
-
}
|
|
327
|
-
//#endregion
|
|
328
492
|
//#region src/primitives/Field/field.presentation.tsx
|
|
329
|
-
function
|
|
330
|
-
return /* @__PURE__ */ m(
|
|
331
|
-
className:
|
|
493
|
+
function tt({ htmlFor: e, id: t, label: n, loading: r, onClick: i }) {
|
|
494
|
+
return /* @__PURE__ */ m(de, {
|
|
495
|
+
className: J.base.label,
|
|
332
496
|
htmlFor: e,
|
|
333
497
|
id: t,
|
|
334
|
-
|
|
498
|
+
onClick: i,
|
|
499
|
+
children: r ? /* @__PURE__ */ m(K, {
|
|
335
500
|
blockSize: "1lh",
|
|
336
501
|
inlineSize: "12em",
|
|
337
502
|
shape: "rectangle"
|
|
338
503
|
}) : n
|
|
339
504
|
});
|
|
340
505
|
}
|
|
341
|
-
function
|
|
342
|
-
return /* @__PURE__ */ h(p, { children: [e && /* @__PURE__ */ m(
|
|
343
|
-
className:
|
|
506
|
+
function nt({ description: e, descriptionId: t, error: n, errorId: r, loading: i }) {
|
|
507
|
+
return /* @__PURE__ */ h(p, { children: [e && /* @__PURE__ */ m(fe, {
|
|
508
|
+
className: J.base.description,
|
|
344
509
|
id: t,
|
|
345
510
|
slot: "description",
|
|
346
|
-
children: i ? /* @__PURE__ */ m(
|
|
511
|
+
children: i ? /* @__PURE__ */ m(K, {
|
|
347
512
|
blockSize: "1lh",
|
|
348
513
|
inlineSize: "12em",
|
|
349
514
|
shape: "rectangle"
|
|
350
515
|
}) : e
|
|
351
516
|
}), n && (i ? /* @__PURE__ */ m("span", {
|
|
352
517
|
"aria-hidden": "true",
|
|
353
|
-
className:
|
|
518
|
+
className: J.base.error,
|
|
354
519
|
id: r,
|
|
355
|
-
children: /* @__PURE__ */ m(
|
|
520
|
+
children: /* @__PURE__ */ m(K, {
|
|
356
521
|
blockSize: "1lh",
|
|
357
522
|
inlineSize: "12em",
|
|
358
523
|
shape: "rectangle"
|
|
359
524
|
})
|
|
360
|
-
}) : /* @__PURE__ */ m(
|
|
361
|
-
className:
|
|
525
|
+
}) : /* @__PURE__ */ m(ue, {
|
|
526
|
+
className: J.base.error,
|
|
362
527
|
id: r,
|
|
363
528
|
children: n
|
|
364
529
|
}))] });
|
|
365
530
|
}
|
|
366
531
|
//#endregion
|
|
367
532
|
//#region src/primitives/Checkbox/Checkbox.tsx
|
|
368
|
-
var
|
|
533
|
+
var rt = {
|
|
369
534
|
base: {
|
|
370
535
|
control: "breeze:relative breeze:inline-grid breeze:min-block-breeze-tap breeze:grid-flow-col breeze:items-center breeze:gap-breeze-2 breeze:cursor-pointer breeze:select-none breeze:font-breeze-sans breeze:text-breeze-sm breeze:font-medium breeze:leading-breeze-snug breeze:text-breeze-ink breeze:data-[disabled]:cursor-not-allowed breeze:data-[disabled]:opacity-60",
|
|
371
536
|
indicator: "breeze:inline-grid breeze:block-size-breeze-5 breeze:inline-size-breeze-5 breeze:shrink-0 breeze:place-items-center breeze:rounded-breeze-chip breeze:border breeze:border-solid breeze:border-breeze-ink-3 breeze:bg-breeze-surface breeze:text-breeze-on-brand breeze:transition-colors breeze:data-[selected]:border-breeze-brand breeze:data-[selected]:bg-breeze-brand breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand",
|
|
@@ -378,17 +543,17 @@ var Je = {
|
|
|
378
543
|
state: {},
|
|
379
544
|
variant: {}
|
|
380
545
|
};
|
|
381
|
-
function
|
|
382
|
-
let { messages: v } =
|
|
383
|
-
return /* @__PURE__ */ h(
|
|
384
|
-
className:
|
|
546
|
+
function it({ defaultSelected: e, description: t, disabled: n = !1, error: r, form: i, id: a, label: o, loading: s = !1, name: c, onChange: l, readOnly: u = !1, ref: d, required: f = !1, selected: g, value: _ }) {
|
|
547
|
+
let { messages: v } = G(), y = ce(d), b = t?.trim() || void 0, x = r?.trim() || void 0, S = n || s;
|
|
548
|
+
return /* @__PURE__ */ h(le, {
|
|
549
|
+
className: J.base.root,
|
|
385
550
|
defaultSelected: e,
|
|
386
551
|
form: i,
|
|
387
552
|
id: a,
|
|
388
|
-
inputRef:
|
|
553
|
+
inputRef: y,
|
|
389
554
|
"aria-label": s ? o : void 0,
|
|
390
|
-
isDisabled:
|
|
391
|
-
isInvalid: !s &&
|
|
555
|
+
isDisabled: S,
|
|
556
|
+
isInvalid: !s && x !== void 0,
|
|
392
557
|
isReadOnly: u,
|
|
393
558
|
isRequired: f,
|
|
394
559
|
isSelected: g,
|
|
@@ -396,19 +561,19 @@ function Ye({ defaultSelected: e, description: t, disabled: n = !1, error: r, fo
|
|
|
396
561
|
onChange: l,
|
|
397
562
|
value: _,
|
|
398
563
|
validationBehavior: "aria",
|
|
399
|
-
children: [/* @__PURE__ */ m(
|
|
400
|
-
className:
|
|
564
|
+
children: [/* @__PURE__ */ m(W, {
|
|
565
|
+
className: rt.base.control,
|
|
401
566
|
children: ({ isFocusVisible: e, isSelected: t }) => /* @__PURE__ */ h(p, { children: [s && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
|
|
402
567
|
"aria-hidden": "true",
|
|
403
|
-
className:
|
|
404
|
-
children: /* @__PURE__ */ m(
|
|
568
|
+
className: rt.base.skeletonIndicator,
|
|
569
|
+
children: /* @__PURE__ */ m(K, {
|
|
405
570
|
blockSize: "100%",
|
|
406
571
|
inlineSize: "100%",
|
|
407
572
|
shape: "rectangle"
|
|
408
573
|
})
|
|
409
574
|
}), /* @__PURE__ */ m("span", {
|
|
410
|
-
className:
|
|
411
|
-
children: /* @__PURE__ */ m(
|
|
575
|
+
className: rt.base.skeleton,
|
|
576
|
+
children: /* @__PURE__ */ m(K, {
|
|
412
577
|
blockSize: "1lh",
|
|
413
578
|
inlineSize: "12em",
|
|
414
579
|
label: v.loading,
|
|
@@ -416,24 +581,42 @@ function Ye({ defaultSelected: e, description: t, disabled: n = !1, error: r, fo
|
|
|
416
581
|
})
|
|
417
582
|
})] }), !s && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
|
|
418
583
|
"aria-hidden": "true",
|
|
419
|
-
className:
|
|
584
|
+
className: rt.base.indicator,
|
|
420
585
|
"data-focus-visible": e || void 0,
|
|
421
586
|
"data-selected": t || void 0,
|
|
422
587
|
children: t ? "✓" : ""
|
|
423
588
|
}), /* @__PURE__ */ m("span", {
|
|
424
|
-
className:
|
|
589
|
+
className: rt.base.label,
|
|
425
590
|
children: o
|
|
426
591
|
})] })] })
|
|
427
|
-
}), /* @__PURE__ */ m(
|
|
428
|
-
description:
|
|
429
|
-
error:
|
|
592
|
+
}), /* @__PURE__ */ m(nt, {
|
|
593
|
+
description: b,
|
|
594
|
+
error: x,
|
|
430
595
|
loading: s
|
|
431
596
|
})]
|
|
432
597
|
});
|
|
433
598
|
}
|
|
434
599
|
//#endregion
|
|
600
|
+
//#region src/primitives/Collection/collection.styles.ts
|
|
601
|
+
var Q = {
|
|
602
|
+
base: {
|
|
603
|
+
badge: "breeze:ms-auto",
|
|
604
|
+
content: "breeze:flex breeze:min-inline-size-0 breeze:flex-1 breeze:flex-col breeze:gap-breeze-1",
|
|
605
|
+
description: "breeze:text-breeze-xs breeze:font-normal breeze:leading-breeze-snug breeze:text-breeze-ink-3",
|
|
606
|
+
item: "breeze:flex breeze:any-pointer-coarse:min-block-breeze-tap breeze:min-inline-size-0 breeze:items-start breeze:gap-breeze-2 breeze:rounded-breeze-sm breeze:ps-breeze-3 breeze:pe-breeze-3 breeze:py-breeze-2 breeze:font-breeze-sans breeze:text-breeze-sm breeze:leading-breeze-snug breeze:text-breeze-ink breeze:outline-offset-[-2px] breeze:data-[disabled]:cursor-not-allowed breeze:data-[disabled]:opacity-50 breeze:data-[focused]:bg-breeze-sunken breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:data-[hovered]:bg-breeze-sunken breeze:data-[selected]:bg-breeze-brand-soft breeze:data-[selected]:text-breeze-brand-text",
|
|
607
|
+
label: "breeze:font-medium",
|
|
608
|
+
listBox: "breeze:min-inline-size-0 breeze:outline-none",
|
|
609
|
+
popover: "breeze:min-inline-size-[var(--trigger-width)] breeze:max-inline-size-[calc(100vw-24px)] breeze:overflow-auto breeze:rounded-breeze-panel breeze:border breeze:border-solid breeze:border-breeze-line breeze:bg-breeze-surface breeze:p-breeze-1 breeze:shadow-breeze-overlay",
|
|
610
|
+
selectedIndicator: "breeze:ms-auto breeze:block-size-breeze-4 breeze:inline-size-breeze-4 breeze:shrink-0 breeze:text-breeze-brand-text"
|
|
611
|
+
},
|
|
612
|
+
compound: {},
|
|
613
|
+
size: {},
|
|
614
|
+
state: {},
|
|
615
|
+
variant: {}
|
|
616
|
+
};
|
|
617
|
+
//#endregion
|
|
435
618
|
//#region src/overlays/OverlayStack.ts
|
|
436
|
-
function
|
|
619
|
+
function at() {
|
|
437
620
|
let e = [], t = /* @__PURE__ */ new Set(), n = () => t.forEach((e) => e());
|
|
438
621
|
return {
|
|
439
622
|
getSnapshot: () => e,
|
|
@@ -449,15 +632,15 @@ function Xe() {
|
|
|
449
632
|
})
|
|
450
633
|
};
|
|
451
634
|
}
|
|
452
|
-
var
|
|
453
|
-
function
|
|
454
|
-
let e = a(
|
|
635
|
+
var ot = n(null);
|
|
636
|
+
function st() {
|
|
637
|
+
let e = a(ot);
|
|
455
638
|
if (!e) throw Error("Breeze components must be rendered within BreezeProvider.");
|
|
456
639
|
return 100 + f(e.subscribe, e.getSnapshot, e.getSnapshot).length * 2;
|
|
457
640
|
}
|
|
458
|
-
var
|
|
459
|
-
function
|
|
460
|
-
let r = a(
|
|
641
|
+
var ct = n(null);
|
|
642
|
+
function lt(e, t, n) {
|
|
643
|
+
let r = a(ot), i = a(ct), o = s();
|
|
461
644
|
if (!r) throw Error("Breeze components must be rendered within BreezeProvider.");
|
|
462
645
|
let l = f(r.subscribe, r.getSnapshot, r.getSnapshot), u = i?.id;
|
|
463
646
|
c(() => () => r.remove(o), [o, r]), c(() => {
|
|
@@ -496,12 +679,12 @@ function et(e, t, n) {
|
|
|
496
679
|
}
|
|
497
680
|
//#endregion
|
|
498
681
|
//#region src/overlays/OverlayProvider.tsx
|
|
499
|
-
var
|
|
500
|
-
function
|
|
501
|
-
let { direction: r } =
|
|
682
|
+
var ut = n(null), dt = "BreezeProvider portalContainer must belong to the current document and light DOM.";
|
|
683
|
+
function ft({ children: e, portalContainer: t, locale: n }) {
|
|
684
|
+
let { direction: r } = Ce(), [i] = d(at), [a, o] = d(null);
|
|
502
685
|
return c(() => {
|
|
503
686
|
let e = t ?? document.body;
|
|
504
|
-
if (e.ownerDocument !== document || e.getRootNode() !== document) throw Error(
|
|
687
|
+
if (e.ownerDocument !== document || e.getRootNode() !== document) throw Error(dt);
|
|
505
688
|
let n = e.ownerDocument.createElement("div");
|
|
506
689
|
return n.dataset.breezeRoot = "", n.dataset.breezePortal = "", e.append(n), o(n), () => n.remove();
|
|
507
690
|
}, [t]), c(() => {
|
|
@@ -510,172 +693,99 @@ function rt({ children: e, portalContainer: t, locale: n }) {
|
|
|
510
693
|
r,
|
|
511
694
|
a,
|
|
512
695
|
n
|
|
513
|
-
]), /* @__PURE__ */ m(
|
|
696
|
+
]), /* @__PURE__ */ m(xe, {
|
|
514
697
|
getContainer: () => a,
|
|
515
|
-
children: /* @__PURE__ */ m(
|
|
698
|
+
children: /* @__PURE__ */ m(ot, {
|
|
516
699
|
value: i,
|
|
517
|
-
children: /* @__PURE__ */ m(
|
|
700
|
+
children: /* @__PURE__ */ m(ut, {
|
|
518
701
|
value: a,
|
|
519
702
|
children: e
|
|
520
703
|
})
|
|
521
704
|
})
|
|
522
705
|
});
|
|
523
706
|
}
|
|
524
|
-
function
|
|
525
|
-
return a(
|
|
707
|
+
function pt() {
|
|
708
|
+
return a(ut);
|
|
526
709
|
}
|
|
527
710
|
//#endregion
|
|
528
711
|
//#region src/primitives/Collection/CollectionPopover.tsx
|
|
529
|
-
var
|
|
530
|
-
function
|
|
712
|
+
var mt = "Breeze overlay triggers and portal containers must belong to the current document and light DOM.";
|
|
713
|
+
function ht(e) {
|
|
531
714
|
return typeof e == "object" && !!e && "nodeType" in e && typeof e.contains == "function";
|
|
532
715
|
}
|
|
533
|
-
function
|
|
534
|
-
let
|
|
535
|
-
|
|
716
|
+
function gt({ children: e, className: t, containerPadding: n, isOpen: r, onOpenChange: s, triggerRef: l }) {
|
|
717
|
+
let f = pt(), p = a(ct), h = p?.open ?? !0, [g, _] = d(p === null), [v, y] = d(!1), b = u(!1), x = u(null), S = u(null), C = u(null), w = r && h, T = lt("popover", w && g && f !== null, w || v), E = i((e) => {
|
|
718
|
+
x.current = e, y(e !== null);
|
|
536
719
|
}, []);
|
|
537
720
|
return c(() => {
|
|
538
|
-
if (
|
|
539
|
-
}), o(() =>
|
|
540
|
-
if (!
|
|
541
|
-
let e = (e) =>
|
|
542
|
-
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
|
|
721
|
+
if (f && l.current && (l.current.ownerDocument !== document || l.current.getRootNode() !== document || f.ownerDocument !== document || f.getRootNode() !== document)) throw Error(mt);
|
|
722
|
+
}), o(() => _(!0), []), c(() => {
|
|
723
|
+
if (!w || !T.topmost || !f) return;
|
|
724
|
+
let e = (e) => ht(e) && !x.current?.contains(e) && !l.current?.contains(e), t = (e, t) => !!e && !!t && (e === t || e.contains(t) || t.contains(e)), n = (e) => e.button === 0, r = null, i = () => {
|
|
725
|
+
r !== null && (clearTimeout(r), r = null);
|
|
726
|
+
}, a = () => {
|
|
727
|
+
i(), r = setTimeout(() => {
|
|
728
|
+
r = null, C.current = null;
|
|
546
729
|
}, 0);
|
|
547
|
-
},
|
|
548
|
-
n(e) && (
|
|
549
|
-
},
|
|
730
|
+
}, o = (e) => {
|
|
731
|
+
n(e) && (i(), S.current = ht(e.target) ? e.target : null, C.current = null);
|
|
732
|
+
}, c = (t) => {
|
|
550
733
|
if (!n(t)) return;
|
|
551
|
-
let
|
|
552
|
-
if (!e(
|
|
553
|
-
|
|
734
|
+
let r = S.current, i = ht(t.target) ? t.target : null;
|
|
735
|
+
if (!e(i)) {
|
|
736
|
+
S.current = null;
|
|
554
737
|
return;
|
|
555
738
|
}
|
|
556
|
-
if (!e(
|
|
557
|
-
|
|
739
|
+
if (!e(r)) {
|
|
740
|
+
C.current = i, S.current = null, a();
|
|
558
741
|
return;
|
|
559
742
|
}
|
|
560
|
-
|
|
561
|
-
},
|
|
562
|
-
|
|
563
|
-
},
|
|
564
|
-
let
|
|
565
|
-
e(
|
|
743
|
+
C.current = i, s(!1);
|
|
744
|
+
}, u = () => {
|
|
745
|
+
i(), S.current = null, C.current = null;
|
|
746
|
+
}, d = (n) => {
|
|
747
|
+
let r = ht(n.target) ? n.target : null;
|
|
748
|
+
e(r) && !t(C.current, r) && s(!1), i(), S.current = null, C.current = null;
|
|
566
749
|
};
|
|
567
|
-
return
|
|
568
|
-
|
|
750
|
+
return f.ownerDocument.addEventListener("pointerdown", o, !0), f.ownerDocument.addEventListener("pointerup", c, !0), f.ownerDocument.addEventListener("pointercancel", u, !0), f.ownerDocument.addEventListener("click", d, !0), () => {
|
|
751
|
+
f.ownerDocument.removeEventListener("pointerdown", o, !0), f.ownerDocument.removeEventListener("pointerup", c, !0), f.ownerDocument.removeEventListener("pointercancel", u, !0), f.ownerDocument.removeEventListener("click", d, !0), i(), S.current = null, C.current = null;
|
|
569
752
|
};
|
|
570
753
|
}, [
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
754
|
+
f,
|
|
755
|
+
T.topmost,
|
|
756
|
+
s,
|
|
757
|
+
w,
|
|
758
|
+
l
|
|
576
759
|
]), o(() => {
|
|
577
|
-
|
|
760
|
+
h ? b.current = !1 : r && !b.current && (b.current = !0, s(!1));
|
|
578
761
|
}, [
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
]), /* @__PURE__ */ m(
|
|
762
|
+
s,
|
|
763
|
+
h,
|
|
764
|
+
r
|
|
765
|
+
]), /* @__PURE__ */ m(be, {
|
|
583
766
|
className: `${t} breeze-popover`,
|
|
584
|
-
|
|
767
|
+
containerPadding: n,
|
|
768
|
+
"data-breeze-interactive": T.interactive,
|
|
585
769
|
"data-breeze-overlay": "popover",
|
|
586
|
-
"data-breeze-topmost":
|
|
587
|
-
inert: !
|
|
588
|
-
isKeyboardDismissDisabled: !
|
|
770
|
+
"data-breeze-topmost": T.topmost,
|
|
771
|
+
inert: !T.interactive,
|
|
772
|
+
isKeyboardDismissDisabled: !T.topmost,
|
|
589
773
|
isNonModal: !0,
|
|
590
|
-
isOpen:
|
|
591
|
-
onOpenChange:
|
|
774
|
+
isOpen: w,
|
|
775
|
+
onOpenChange: s,
|
|
592
776
|
placement: "bottom start",
|
|
593
|
-
shouldCloseOnInteractOutside: (e) =>
|
|
594
|
-
style: { zIndex:
|
|
595
|
-
triggerRef:
|
|
596
|
-
ref:
|
|
777
|
+
shouldCloseOnInteractOutside: (e) => S.current === null && T.topmost && !l.current?.contains(e),
|
|
778
|
+
style: { zIndex: T.zIndex },
|
|
779
|
+
triggerRef: l,
|
|
780
|
+
ref: E,
|
|
597
781
|
children: e
|
|
598
782
|
});
|
|
599
783
|
}
|
|
600
784
|
//#endregion
|
|
601
|
-
//#region src/primitives/Collection/collection.styles.ts
|
|
602
|
-
var Q = {
|
|
603
|
-
base: {
|
|
604
|
-
badge: "breeze:ms-auto",
|
|
605
|
-
content: "breeze:flex breeze:min-inline-size-0 breeze:flex-1 breeze:flex-col breeze:gap-breeze-1",
|
|
606
|
-
description: "breeze:text-breeze-xs breeze:font-normal breeze:leading-breeze-snug breeze:text-breeze-ink-3",
|
|
607
|
-
item: "breeze:flex breeze:any-pointer-coarse:min-block-breeze-tap breeze:min-inline-size-0 breeze:items-start breeze:gap-breeze-2 breeze:rounded-breeze-sm breeze:ps-breeze-3 breeze:pe-breeze-3 breeze:py-breeze-2 breeze:font-breeze-sans breeze:text-breeze-sm breeze:leading-breeze-snug breeze:text-breeze-ink breeze:outline-offset-[-2px] breeze:data-[disabled]:cursor-not-allowed breeze:data-[disabled]:opacity-50 breeze:data-[focused]:bg-breeze-sunken breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:data-[hovered]:bg-breeze-sunken breeze:data-[selected]:bg-breeze-brand-soft breeze:data-[selected]:text-breeze-brand-text",
|
|
608
|
-
label: "breeze:font-medium",
|
|
609
|
-
listBox: "breeze:min-inline-size-0 breeze:outline-none",
|
|
610
|
-
popover: "breeze:min-inline-size-[var(--trigger-width)] breeze:max-inline-size-[calc(100vw-24px)] breeze:overflow-auto breeze:rounded-breeze-panel breeze:border breeze:border-solid breeze:border-breeze-line breeze:bg-breeze-surface breeze:p-breeze-1 breeze:shadow-breeze-overlay",
|
|
611
|
-
selectedIndicator: "breeze:ms-auto breeze:block-size-breeze-4 breeze:inline-size-breeze-4 breeze:shrink-0 breeze:text-breeze-brand-text"
|
|
612
|
-
},
|
|
613
|
-
compound: {},
|
|
614
|
-
size: {},
|
|
615
|
-
state: {},
|
|
616
|
-
variant: {}
|
|
617
|
-
}, ct = {
|
|
618
|
-
add: G,
|
|
619
|
-
back: V,
|
|
620
|
-
building: R,
|
|
621
|
-
calendar: re,
|
|
622
|
-
camera: ie,
|
|
623
|
-
check: z,
|
|
624
|
-
clock: ae,
|
|
625
|
-
close: he,
|
|
626
|
-
delete: de,
|
|
627
|
-
document: se,
|
|
628
|
-
download: U,
|
|
629
|
-
expand: B,
|
|
630
|
-
forward: H,
|
|
631
|
-
lock: le,
|
|
632
|
-
money: W,
|
|
633
|
-
moneyIn: ne,
|
|
634
|
-
moneyOut: I,
|
|
635
|
-
more: oe,
|
|
636
|
-
next: H,
|
|
637
|
-
notifications: L,
|
|
638
|
-
overview: ce,
|
|
639
|
-
people: me,
|
|
640
|
-
settings: K,
|
|
641
|
-
signOut: ue,
|
|
642
|
-
upload: pe,
|
|
643
|
-
warning: fe
|
|
644
|
-
}, lt = {
|
|
645
|
-
base: { icon: "breeze:block breeze:shrink-0" },
|
|
646
|
-
compound: {},
|
|
647
|
-
size: {
|
|
648
|
-
lg: "breeze:block-size-breeze-6 breeze:inline-size-breeze-6",
|
|
649
|
-
md: "breeze:block-size-breeze-5 breeze:inline-size-breeze-5",
|
|
650
|
-
sm: "breeze:block-size-breeze-4 breeze:inline-size-breeze-4"
|
|
651
|
-
},
|
|
652
|
-
state: { logicalDirection: "breeze:rtl:rotate-180" },
|
|
653
|
-
variant: {}
|
|
654
|
-
}, ut = /* @__PURE__ */ new Set([
|
|
655
|
-
"back",
|
|
656
|
-
"forward",
|
|
657
|
-
"next"
|
|
658
|
-
]);
|
|
659
|
-
function dt({ label: e, name: t, size: n = "md" }) {
|
|
660
|
-
let r = ct[t], i = e?.trim() || void 0;
|
|
661
|
-
return /* @__PURE__ */ m(r, {
|
|
662
|
-
"aria-hidden": i === void 0 || void 0,
|
|
663
|
-
"aria-label": i,
|
|
664
|
-
className: [
|
|
665
|
-
lt.base.icon,
|
|
666
|
-
lt.size[n],
|
|
667
|
-
ut.has(t) && lt.state.logicalDirection
|
|
668
|
-
].filter(Boolean).join(" "),
|
|
669
|
-
focusable: "false",
|
|
670
|
-
role: i === void 0 ? void 0 : "img",
|
|
671
|
-
strokeWidth: 1.75
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
//#endregion
|
|
675
785
|
//#region src/primitives/Collection/DescriptorContent.tsx
|
|
676
|
-
function
|
|
786
|
+
function _t({ descriptor: e, isSelected: t }) {
|
|
677
787
|
return /* @__PURE__ */ h(p, { children: [
|
|
678
|
-
e.icon && /* @__PURE__ */ m(
|
|
788
|
+
e.icon && /* @__PURE__ */ m(X, {
|
|
679
789
|
name: e.icon,
|
|
680
790
|
size: "sm"
|
|
681
791
|
}),
|
|
@@ -691,7 +801,7 @@ function ft({ descriptor: e, isSelected: t }) {
|
|
|
691
801
|
}),
|
|
692
802
|
e.badge && /* @__PURE__ */ m("span", {
|
|
693
803
|
className: Q.base.badge,
|
|
694
|
-
children: /* @__PURE__ */ m(
|
|
804
|
+
children: /* @__PURE__ */ m(He, {
|
|
695
805
|
"aria-label": e.badge["aria-label"],
|
|
696
806
|
variant: e.badge.variant,
|
|
697
807
|
children: e.badge.children
|
|
@@ -700,7 +810,7 @@ function ft({ descriptor: e, isSelected: t }) {
|
|
|
700
810
|
/* @__PURE__ */ m("span", {
|
|
701
811
|
"aria-hidden": "true",
|
|
702
812
|
className: Q.base.selectedIndicator,
|
|
703
|
-
children: t && /* @__PURE__ */ m(
|
|
813
|
+
children: t && /* @__PURE__ */ m(X, {
|
|
704
814
|
name: "check",
|
|
705
815
|
size: "sm"
|
|
706
816
|
})
|
|
@@ -709,13 +819,13 @@ function ft({ descriptor: e, isSelected: t }) {
|
|
|
709
819
|
}
|
|
710
820
|
//#endregion
|
|
711
821
|
//#region src/primitives/Collection/DescriptorOption.tsx
|
|
712
|
-
function
|
|
713
|
-
return /* @__PURE__ */ m(
|
|
822
|
+
function vt({ descriptor: e }) {
|
|
823
|
+
return /* @__PURE__ */ m(ye, {
|
|
714
824
|
className: Q.base.item,
|
|
715
825
|
id: e.id,
|
|
716
826
|
isDisabled: e.disabled,
|
|
717
827
|
textValue: e.label,
|
|
718
|
-
children: ({ isSelected: t }) => /* @__PURE__ */ m(
|
|
828
|
+
children: ({ isSelected: t }) => /* @__PURE__ */ m(_t, {
|
|
719
829
|
descriptor: e,
|
|
720
830
|
isSelected: t
|
|
721
831
|
})
|
|
@@ -723,7 +833,7 @@ function pt({ descriptor: e }) {
|
|
|
723
833
|
}
|
|
724
834
|
//#endregion
|
|
725
835
|
//#region src/primitives/ComboBox/ComboBox.tsx
|
|
726
|
-
var
|
|
836
|
+
var yt = {
|
|
727
837
|
base: {
|
|
728
838
|
group: "breeze:relative breeze:inline-flex breeze:min-block-breeze-md breeze:any-pointer-coarse:min-block-breeze-tap breeze:min-inline-size-0 breeze:inline-size-full breeze:items-stretch breeze:overflow-hidden breeze:rounded-breeze-ctl breeze:border breeze:border-solid breeze:border-breeze-line-strong breeze:bg-breeze-surface breeze:has-[input[data-focus-visible]]:outline-2 breeze:has-[input[data-focus-visible]]:outline-solid breeze:has-[input[data-focus-visible]]:outline-breeze-brand breeze:data-[disabled]:cursor-not-allowed breeze:data-[disabled]:bg-breeze-sunken breeze:data-[invalid]:border-breeze-danger",
|
|
729
839
|
input: "breeze:min-block-breeze-md breeze:min-inline-size-0 breeze:flex-1 breeze:border-0 breeze:bg-transparent breeze:ps-breeze-3 breeze:pe-breeze-2 breeze:py-breeze-2 breeze:font-breeze-sans breeze:text-breeze-sm breeze:leading-breeze-snug breeze:text-breeze-ink breeze:outline-none breeze:placeholder:text-breeze-ink-3 breeze:data-[hovered]:border-transparent breeze:data-[focus-visible]:!outline-none breeze:data-[invalid]:border-transparent breeze:disabled:cursor-not-allowed breeze:read-only:cursor-default",
|
|
@@ -741,494 +851,520 @@ var mt = {
|
|
|
741
851
|
},
|
|
742
852
|
variant: {}
|
|
743
853
|
};
|
|
744
|
-
function
|
|
745
|
-
|
|
746
|
-
}
|
|
747
|
-
function gt(e) {
|
|
748
|
-
return ht(e) ? e[0] ?? null : e ?? null;
|
|
749
|
-
}
|
|
750
|
-
function _t(e, t) {
|
|
751
|
-
return e === t || e !== null && t !== null && String(e) === String(t);
|
|
752
|
-
}
|
|
753
|
-
function vt(e) {
|
|
754
|
-
return e.descriptor.id;
|
|
755
|
-
}
|
|
756
|
-
function yt(e, t, n, r) {
|
|
757
|
-
let i = String(e), a = t.find((e) => vt(e) === i);
|
|
758
|
-
if (a) return a;
|
|
759
|
-
if (n?.descriptor.id === i) return n;
|
|
760
|
-
if (r?.descriptor.id === i) return r;
|
|
761
|
-
}
|
|
762
|
-
function bt(e, t, n, r, i, a, o) {
|
|
763
|
-
if (e === null) return null;
|
|
764
|
-
if (t !== void 0 && _t(e, n) && !(typeof t == "string" && o)) return t;
|
|
765
|
-
let s = yt(e, r, i, a);
|
|
766
|
-
return s ? s.item : null;
|
|
767
|
-
}
|
|
768
|
-
function xt(e, t, n, r) {
|
|
769
|
-
return t ? vt(t) : e == null || typeof e == "string" && r ? null : n(e).id;
|
|
770
|
-
}
|
|
771
|
-
function St(e, t, n, r) {
|
|
772
|
-
return e === null ? "" : t ? t.descriptor.label : typeof e == "string" && r ? e : n(e).label;
|
|
773
|
-
}
|
|
774
|
-
function Ct(e, t, n, r = !1) {
|
|
775
|
-
if (t === null) return;
|
|
776
|
-
let i = e.find(({ item: e }) => e === t);
|
|
854
|
+
function bt(e, t, n, r) {
|
|
855
|
+
let i = t.find(({ item: t }) => t === e);
|
|
777
856
|
if (i) return i;
|
|
778
|
-
if (typeof
|
|
779
|
-
let a = n(
|
|
780
|
-
return
|
|
857
|
+
if (r && typeof e == "string") return;
|
|
858
|
+
let { id: a } = n(e);
|
|
859
|
+
return t.find((e) => e.descriptor.id === a);
|
|
781
860
|
}
|
|
782
|
-
function
|
|
783
|
-
if (
|
|
784
|
-
descriptor: t(e),
|
|
785
|
-
item: e
|
|
786
|
-
};
|
|
861
|
+
function xt(e, t, n, r) {
|
|
862
|
+
if (e !== void 0) return e === null || r && typeof e == "string" && !t ? null : t?.id ?? n(e).id;
|
|
787
863
|
}
|
|
788
|
-
function
|
|
789
|
-
|
|
864
|
+
function St(e, t, n) {
|
|
865
|
+
if (!(e === void 0 || !n)) return t ? t.descriptor.label : typeof e == "string" ? e : "";
|
|
790
866
|
}
|
|
791
|
-
function
|
|
792
|
-
if (e
|
|
793
|
-
key: null,
|
|
794
|
-
text: ""
|
|
795
|
-
};
|
|
796
|
-
if (r && typeof e == "string") return {
|
|
797
|
-
key: null,
|
|
798
|
-
text: e
|
|
799
|
-
};
|
|
800
|
-
let i = Ct(t, e, n, r)?.descriptor ?? n(e);
|
|
801
|
-
return {
|
|
802
|
-
key: i.id,
|
|
803
|
-
text: i.label
|
|
804
|
-
};
|
|
867
|
+
function Ct(e, t, n) {
|
|
868
|
+
if (!(!n || typeof e != "string" || t)) return e;
|
|
805
869
|
}
|
|
806
|
-
function
|
|
807
|
-
return /* @__PURE__ */ m(
|
|
808
|
-
|
|
809
|
-
|
|
870
|
+
function wt({ items: e }) {
|
|
871
|
+
return /* @__PURE__ */ m(ve, {
|
|
872
|
+
className: Q.base.listBox,
|
|
873
|
+
items: e,
|
|
874
|
+
children: (e) => /* @__PURE__ */ m(vt, { descriptor: e.descriptor })
|
|
810
875
|
});
|
|
811
876
|
}
|
|
812
|
-
function
|
|
813
|
-
let
|
|
877
|
+
function Tt({ allowsCustomValue: e, hasSuggestions: t, isDisabled: n, isReadOnly: r, items: i, triggerRef: s }) {
|
|
878
|
+
let c = a(me), l = n || r, u = !l && (t || e) && (c?.isOpen ?? !1);
|
|
814
879
|
return o(() => {
|
|
815
|
-
(
|
|
816
|
-
}, [
|
|
817
|
-
e,
|
|
818
|
-
n,
|
|
819
|
-
u,
|
|
820
|
-
l
|
|
821
|
-
]), /* @__PURE__ */ m(st, {
|
|
822
|
-
className: mt.base.popover,
|
|
823
|
-
isOpen: d,
|
|
824
|
-
onOpenChange: (e) => l?.setOpen(e),
|
|
825
|
-
triggerRef: c,
|
|
826
|
-
children: /* @__PURE__ */ m(Dt, {
|
|
827
|
-
getItem: t,
|
|
828
|
-
items: s
|
|
829
|
-
})
|
|
830
|
-
});
|
|
831
|
-
}
|
|
832
|
-
function kt({ allowsCustomValue: e, currentTextValue: t, isControlled: n, isReadOnly: r, resetTextValue: i }) {
|
|
833
|
-
let o = a(E), s = u(r), l = u(i), d = u(o?.isFocused ?? !1), f = u(o?.isOpen ?? !1);
|
|
834
|
-
return c(() => {
|
|
835
|
-
let i = o !== null && d.current && !o.isFocused;
|
|
836
|
-
if (!e && o && !n && o.value !== null && o.inputValue === "" && o.inputValue !== t && o.setInputValue(t), e && o && !r && o.value === null) {
|
|
837
|
-
let e = f.current && !o.isOpen;
|
|
838
|
-
(i || e) && (l.current = o.inputValue);
|
|
839
|
-
}
|
|
840
|
-
!e && o && !o.isFocused && o.value !== null && (i || o.inputValue === "") && o.inputValue !== t && o.setInputValue(t), d.current = o?.isFocused ?? !1, f.current = o?.isOpen ?? !1;
|
|
841
|
-
}, [
|
|
842
|
-
e,
|
|
843
|
-
t,
|
|
844
|
-
n,
|
|
845
|
-
r,
|
|
846
|
-
o
|
|
847
|
-
]), c(() => {
|
|
848
|
-
if (r && !s.current) if (e && o?.value === null) {
|
|
849
|
-
let e = l.current;
|
|
850
|
-
n ? e = t : o.isFocused && !o.isOpen && (e = o.inputValue), o.setInputValue(e);
|
|
851
|
-
} else o?.revert();
|
|
852
|
-
s.current = r;
|
|
880
|
+
(l || !t && !e) && c?.isOpen && c.setOpen(!1);
|
|
853
881
|
}, [
|
|
854
882
|
e,
|
|
855
883
|
t,
|
|
856
|
-
n,
|
|
857
|
-
r,
|
|
858
|
-
i,
|
|
859
|
-
o
|
|
860
|
-
]), null;
|
|
861
|
-
}
|
|
862
|
-
function At({ allowsCustomValue: e, autoComplete: t, autoFocus: n, "aria-describedby": r, className: i, disabled: o, form: s, beginFormReset: l, getItem: d, handleFormReset: f, items: p, loading: h, placeholder: g, readOnly: _ }) {
|
|
863
|
-
let v = a(E), y = u(null), b = u(l), x = u(f), S = u(v), C = u(null);
|
|
864
|
-
c(() => {
|
|
865
|
-
b.current = l, x.current = f, S.current = v;
|
|
866
|
-
}, [
|
|
867
884
|
l,
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
}, n = (e) => {
|
|
885
|
-
let n = t(e);
|
|
886
|
-
n && (N(() => void 0), x.current(e, n));
|
|
887
|
-
}, r = (e) => {
|
|
888
|
-
t(e) && b.current();
|
|
889
|
-
};
|
|
890
|
-
return document.addEventListener("reset", r, !0), document.addEventListener("reset", n), () => {
|
|
891
|
-
e = !1, document.removeEventListener("reset", r, !0), document.removeEventListener("reset", n);
|
|
885
|
+
c
|
|
886
|
+
]), /* @__PURE__ */ m(gt, {
|
|
887
|
+
className: yt.base.popover,
|
|
888
|
+
isOpen: u,
|
|
889
|
+
onOpenChange: (e) => c?.setOpen(e),
|
|
890
|
+
triggerRef: s,
|
|
891
|
+
children: /* @__PURE__ */ m(wt, { items: i })
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
function Et({ props: e }) {
|
|
895
|
+
let { allowsCustomValue: t = !1, autoComplete: n, autoFocus: r, defaultValue: i, description: a, disabled: c = !1, error: d, form: f, getItem: p, id: _, items: v, label: y, loading: b = !1, name: x, onChange: S, placeholder: C, readOnly: w = !1, required: T = !1, value: E } = e, { messages: D } = G(), { contains: O } = he({ sensitivity: "base" }), k = a?.trim() || void 0, A = d?.trim() || void 0, j = c || b, M = s(), N = `${M}-description`, ee = `${M}-error`, te = [k && N, A && ee].filter(Boolean).join(" ") || void 0, P = u(null), F = l(() => v.map((e) => {
|
|
896
|
+
let t = p(e);
|
|
897
|
+
return {
|
|
898
|
+
descriptor: t,
|
|
899
|
+
id: t.id,
|
|
900
|
+
item: e
|
|
892
901
|
};
|
|
893
|
-
}, [
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
902
|
+
}), [p, v]), I = E == null ? void 0 : bt(E, F, p, t), L = xt(E, I, p, t), R = i == null ? void 0 : bt(i, F, p, t), ne = xt(i, R, p, t), re = St(E, I, t), z = Ct(i, R, t), B = u(L == null ? null : String(L)), ie = u(re ?? z ?? ""), ae = u(!1), V = S;
|
|
903
|
+
o(() => {
|
|
904
|
+
B.current = L == null ? null : String(L);
|
|
905
|
+
}, [L]);
|
|
906
|
+
let oe = (e) => {
|
|
907
|
+
if (e === null) {
|
|
908
|
+
if (B.current = null, t) {
|
|
909
|
+
let e = ae.current;
|
|
910
|
+
if (ae.current = !1, ie.current || e) return;
|
|
899
911
|
}
|
|
900
|
-
|
|
901
|
-
}
|
|
902
|
-
}, T = (t) => {
|
|
903
|
-
if (e || o || _ || !v) return;
|
|
904
|
-
let { nativeEvent: n } = t;
|
|
905
|
-
if (C.current === n) return;
|
|
906
|
-
let { inputType: r } = n;
|
|
907
|
-
if (r && r !== "insertReplacementText") return;
|
|
908
|
-
C.current = n;
|
|
909
|
-
let i = t.currentTarget, a = p.map((e) => ({
|
|
910
|
-
descriptor: d(e),
|
|
911
|
-
item: e
|
|
912
|
-
})).filter(({ descriptor: e }) => (e.id === i.value || e.label === i.value) && !e.disabled);
|
|
913
|
-
if (a.length !== 1) return;
|
|
914
|
-
let [s] = a;
|
|
915
|
-
if (v.value === s.descriptor.id) {
|
|
916
|
-
i.value = s.descriptor.label, v.setInputValue(s.descriptor.label);
|
|
912
|
+
V?.(null);
|
|
917
913
|
return;
|
|
918
914
|
}
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
915
|
+
ae.current = !1, B.current = String(e);
|
|
916
|
+
let n = F.find((t) => t.descriptor.id === String(e));
|
|
917
|
+
ie.current = n?.descriptor.label ?? "", V?.(n?.item ?? null);
|
|
918
|
+
}, H = (e) => {
|
|
919
|
+
ie.current = e, ae.current = !0, t && F.find((e) => e.descriptor.id === B.current)?.descriptor.label !== e && V?.(e || null);
|
|
920
|
+
}, U = !b && A !== void 0, se = j ? void 0 : x;
|
|
921
|
+
return /* @__PURE__ */ h(pe, {
|
|
922
|
+
allowsCustomValue: t,
|
|
923
|
+
allowsEmptyCollection: t,
|
|
924
|
+
"aria-label": b ? y : void 0,
|
|
925
|
+
className: J.base.root,
|
|
926
|
+
defaultFilter: O,
|
|
927
|
+
defaultInputValue: z,
|
|
928
|
+
defaultItems: F,
|
|
929
|
+
defaultValue: ne,
|
|
930
|
+
form: f,
|
|
931
|
+
id: _,
|
|
932
|
+
inputValue: re,
|
|
933
|
+
isDisabled: j,
|
|
934
|
+
isInvalid: U,
|
|
935
|
+
isReadOnly: w,
|
|
936
|
+
isRequired: T,
|
|
937
|
+
menuTrigger: "input",
|
|
938
|
+
name: se,
|
|
939
|
+
onInputChange: H,
|
|
940
|
+
onChange: oe,
|
|
941
|
+
value: L,
|
|
942
|
+
validationBehavior: "aria",
|
|
943
|
+
children: [
|
|
944
|
+
/* @__PURE__ */ m(tt, {
|
|
945
|
+
label: y,
|
|
946
|
+
loading: b
|
|
947
|
+
}),
|
|
948
|
+
/* @__PURE__ */ h(ge, {
|
|
949
|
+
className: Y(yt.base.group, b && yt.state.loadingGroup, w && yt.state.readOnlyGroup),
|
|
950
|
+
isDisabled: j,
|
|
951
|
+
isInvalid: U,
|
|
952
|
+
isReadOnly: w,
|
|
953
|
+
ref: P,
|
|
954
|
+
children: [
|
|
955
|
+
/* @__PURE__ */ m(_e, {
|
|
956
|
+
"aria-busy": b || void 0,
|
|
957
|
+
"aria-describedby": te,
|
|
958
|
+
autoComplete: n,
|
|
959
|
+
autoFocus: r,
|
|
960
|
+
className: Y(yt.base.input, b && yt.state.loadingInput),
|
|
961
|
+
form: f,
|
|
962
|
+
placeholder: C,
|
|
963
|
+
readOnly: w || void 0
|
|
964
|
+
}),
|
|
965
|
+
/* @__PURE__ */ m(g, {
|
|
966
|
+
"aria-describedby": te,
|
|
967
|
+
className: Y(yt.base.trigger, b && yt.state.loadingTrigger),
|
|
968
|
+
children: /* @__PURE__ */ m(X, {
|
|
969
|
+
name: "expand",
|
|
970
|
+
size: "sm"
|
|
971
|
+
})
|
|
972
|
+
}),
|
|
973
|
+
b && /* @__PURE__ */ m("span", {
|
|
974
|
+
className: yt.base.skeleton,
|
|
975
|
+
children: /* @__PURE__ */ m(K, {
|
|
976
|
+
blockSize: "100%",
|
|
977
|
+
inlineSize: "100%",
|
|
978
|
+
label: D.loading,
|
|
979
|
+
shape: "rectangle"
|
|
980
|
+
})
|
|
981
|
+
})
|
|
982
|
+
]
|
|
983
|
+
}),
|
|
984
|
+
/* @__PURE__ */ m(Tt, {
|
|
985
|
+
allowsCustomValue: t,
|
|
986
|
+
hasSuggestions: F.length > 0,
|
|
987
|
+
isDisabled: j,
|
|
988
|
+
isReadOnly: w,
|
|
989
|
+
items: F,
|
|
990
|
+
triggerRef: P
|
|
991
|
+
}),
|
|
992
|
+
/* @__PURE__ */ m(nt, {
|
|
993
|
+
description: k,
|
|
994
|
+
descriptionId: N,
|
|
995
|
+
error: A,
|
|
996
|
+
errorId: ee,
|
|
997
|
+
loading: b
|
|
998
|
+
})
|
|
999
|
+
]
|
|
935
1000
|
});
|
|
936
1001
|
}
|
|
937
|
-
function
|
|
938
|
-
|
|
1002
|
+
function Dt(e) {
|
|
1003
|
+
return /* @__PURE__ */ m(Et, { props: e });
|
|
939
1004
|
}
|
|
940
|
-
|
|
941
|
-
|
|
1005
|
+
//#endregion
|
|
1006
|
+
//#region src/primitives/Container/Container.tsx
|
|
1007
|
+
var Ot = {
|
|
1008
|
+
base: { container: "breeze:mx-auto breeze:inline-size-full breeze:min-inline-size-0" },
|
|
1009
|
+
compound: {},
|
|
1010
|
+
size: {
|
|
1011
|
+
page: "breeze:max-inline-breeze-page",
|
|
1012
|
+
prose: "breeze:max-inline-breeze-prose",
|
|
1013
|
+
read: "breeze:max-inline-breeze-read"
|
|
1014
|
+
},
|
|
1015
|
+
state: { padded: "breeze:ps-breeze-4 breeze:pe-breeze-4 breeze:breeze-md:ps-breeze-7 breeze:breeze-md:pe-breeze-7" },
|
|
1016
|
+
variant: {}
|
|
1017
|
+
};
|
|
1018
|
+
function kt({ "aria-label": e, children: t, element: n = "div", padded: i = !0, width: a = "page" }) {
|
|
1019
|
+
let { accessibleLabel: o, role: s } = Qe(e, n);
|
|
1020
|
+
return r(n, {
|
|
1021
|
+
"aria-label": o,
|
|
1022
|
+
className: [
|
|
1023
|
+
Ot.base.container,
|
|
1024
|
+
Ot.size[a],
|
|
1025
|
+
i && Ot.state.padded
|
|
1026
|
+
].filter(Boolean).join(" "),
|
|
1027
|
+
role: s
|
|
1028
|
+
}, t);
|
|
942
1029
|
}
|
|
943
|
-
|
|
944
|
-
|
|
1030
|
+
//#endregion
|
|
1031
|
+
//#region src/primitives/Typography/Typography.tsx
|
|
1032
|
+
var At = {
|
|
1033
|
+
base: { text: "breeze:m-0 breeze:font-breeze-sans" },
|
|
1034
|
+
compound: {},
|
|
1035
|
+
size: {},
|
|
1036
|
+
state: {
|
|
1037
|
+
aligned: "breeze:block breeze:inline-size-full",
|
|
1038
|
+
inlineLoading: "breeze:inline-block",
|
|
1039
|
+
numeric: "breeze:tabular-nums breeze:tracking-breeze-tighter",
|
|
1040
|
+
truncate: "breeze:block breeze:min-inline-size-0 breeze:inline-size-full breeze:overflow-hidden breeze:text-ellipsis breeze:whitespace-nowrap"
|
|
1041
|
+
},
|
|
1042
|
+
variant: {
|
|
1043
|
+
align: {
|
|
1044
|
+
center: "breeze:text-center",
|
|
1045
|
+
end: "breeze:text-end",
|
|
1046
|
+
start: "breeze:text-start"
|
|
1047
|
+
},
|
|
1048
|
+
role: {
|
|
1049
|
+
body: "breeze:text-breeze-sm breeze:font-normal breeze:leading-breeze-snug",
|
|
1050
|
+
caption: "breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug",
|
|
1051
|
+
heading: "breeze:text-breeze-2xl breeze:font-semibold breeze:leading-breeze-tight",
|
|
1052
|
+
label: "breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug",
|
|
1053
|
+
micro: "breeze:text-breeze-2xs breeze:font-bold breeze:uppercase breeze:leading-breeze-snug breeze:tracking-breeze-caps",
|
|
1054
|
+
money: "breeze:text-breeze-4xl breeze:font-semibold breeze:leading-breeze-tight breeze:tracking-breeze-tightest breeze:tabular-nums",
|
|
1055
|
+
title: "breeze:text-breeze-md breeze:font-semibold breeze:leading-breeze-snug"
|
|
1056
|
+
},
|
|
1057
|
+
tone: {
|
|
1058
|
+
brand: "breeze:text-breeze-brand-text",
|
|
1059
|
+
danger: "breeze:text-breeze-danger",
|
|
1060
|
+
default: "breeze:text-breeze-ink",
|
|
1061
|
+
muted: "breeze:text-breeze-ink-3",
|
|
1062
|
+
positive: "breeze:text-breeze-pos",
|
|
1063
|
+
secondary: "breeze:text-breeze-ink-2",
|
|
1064
|
+
warning: "breeze:text-breeze-warn"
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
1068
|
+
function jt(e) {
|
|
1069
|
+
return e === "heading" ? "h2" : e === "title" ? "h3" : e === "body" ? "p" : "span";
|
|
945
1070
|
}
|
|
946
|
-
function
|
|
947
|
-
|
|
1071
|
+
function Mt(e, t, n, r) {
|
|
1072
|
+
let i;
|
|
1073
|
+
try {
|
|
1074
|
+
i = new Intl.NumberFormat(n, {
|
|
1075
|
+
currency: t,
|
|
1076
|
+
signDisplay: r ?? "auto",
|
|
1077
|
+
style: "currency"
|
|
1078
|
+
}).formatToParts(e);
|
|
1079
|
+
} catch (t) {
|
|
1080
|
+
if (!(t instanceof RangeError)) throw t;
|
|
1081
|
+
i = new Intl.NumberFormat(n, { signDisplay: r ?? "auto" }).formatToParts(e);
|
|
1082
|
+
}
|
|
1083
|
+
return i.map((e) => e.type === "minusSign" ? "−" : e.value).join("");
|
|
948
1084
|
}
|
|
949
|
-
function
|
|
950
|
-
|
|
1085
|
+
function Nt(e, t, n) {
|
|
1086
|
+
let r;
|
|
1087
|
+
try {
|
|
1088
|
+
r = y(e).toDate("UTC");
|
|
1089
|
+
} catch {
|
|
1090
|
+
return e;
|
|
1091
|
+
}
|
|
1092
|
+
return new Intl.DateTimeFormat(t, {
|
|
1093
|
+
dateStyle: n ?? "long",
|
|
1094
|
+
timeZone: "UTC"
|
|
1095
|
+
}).format(r);
|
|
951
1096
|
}
|
|
952
|
-
function
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
label:
|
|
957
|
-
};
|
|
958
|
-
return {
|
|
959
|
-
resetLabel: r !== null && (r.id !== s.id || r.label !== s.label) ? s.label : void 0,
|
|
960
|
-
selection: s
|
|
961
|
-
};
|
|
1097
|
+
function Pt(e, t, n) {
|
|
1098
|
+
return e.loading ? /* @__PURE__ */ m(K, {
|
|
1099
|
+
blockSize: "1lh",
|
|
1100
|
+
inlineSize: "8em",
|
|
1101
|
+
label: n
|
|
1102
|
+
}) : e.format === "currency" ? Mt(e.value, e.currency, t, e.sign ?? "auto") : e.format === "date" ? Nt(e.value, t, e.dateStyle) : e.children;
|
|
962
1103
|
}
|
|
963
|
-
function
|
|
964
|
-
let i =
|
|
965
|
-
|
|
1104
|
+
function Ft(e) {
|
|
1105
|
+
let { locale: t, messages: n } = G(), { "aria-label": i, align: a, children: o, element: s, format: c, id: l, loading: u = !1, numeric: d = !1, tone: f = "default", truncate: g = !1, variant: _ = "body" } = e, v = s ?? jt(_), y = i?.trim() || void 0, b = a ?? (_ === "money" || d ? "end" : "start"), x = a !== void 0 || _ === "money" || d, S = Pt(e, t, n.loading), C = c !== void 0 || typeof o == "string" || typeof o == "number", w = !u && y !== void 0 && !C && [
|
|
1106
|
+
"h1",
|
|
1107
|
+
"h2",
|
|
1108
|
+
"h3",
|
|
1109
|
+
"h4"
|
|
1110
|
+
].includes(v), T = !u && y !== void 0 && !C && !w;
|
|
1111
|
+
return !u && y !== void 0 && C && (S = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
|
|
1112
|
+
"aria-hidden": "true",
|
|
1113
|
+
children: S
|
|
1114
|
+
}), /* @__PURE__ */ m(Be, { children: y })] })), r(v, {
|
|
1115
|
+
"aria-busy": u || void 0,
|
|
1116
|
+
"aria-label": T || w ? y : void 0,
|
|
1117
|
+
className: [
|
|
1118
|
+
At.base.text,
|
|
1119
|
+
At.variant.role[_],
|
|
1120
|
+
At.variant.tone[f],
|
|
1121
|
+
At.variant.align[b],
|
|
1122
|
+
x && At.state.aligned,
|
|
1123
|
+
u && v === "span" && !x && At.state.inlineLoading,
|
|
1124
|
+
d && _ !== "money" && At.state.numeric,
|
|
1125
|
+
g && At.state.truncate
|
|
1126
|
+
].filter(Boolean).join(" "),
|
|
1127
|
+
id: l,
|
|
1128
|
+
lang: t,
|
|
1129
|
+
role: T ? "group" : void 0
|
|
1130
|
+
}, S);
|
|
966
1131
|
}
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
}
|
|
1132
|
+
//#endregion
|
|
1133
|
+
//#region src/primitives/DatePicker/DatePicker.tsx
|
|
1134
|
+
var It = {
|
|
1135
|
+
base: {
|
|
1136
|
+
popover: "breeze:!inline-size-[360px] breeze:max-inline-size-[calc(100vw_-_24px)] breeze:p-breeze-3 breeze:any-pointer-coarse:!p-0 breeze-date-picker-popover",
|
|
1137
|
+
trigger: "breeze:flex breeze:min-block-breeze-md breeze:any-pointer-coarse:min-block-breeze-tap breeze:min-inline-size-0 breeze:inline-size-full breeze:items-center breeze:justify-between breeze:gap-breeze-3 breeze:rounded-breeze-ctl breeze:border breeze:border-solid breeze:border-breeze-line-strong breeze:bg-breeze-surface breeze:ps-breeze-3 breeze:pe-breeze-3 breeze:py-breeze-2 breeze:font-breeze-sans breeze:text-breeze-sm breeze:text-breeze-ink breeze:outline-offset-2 breeze:data-[hovered]:border-breeze-brand breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:data-[invalid]:border-breeze-danger breeze:disabled:cursor-not-allowed breeze:disabled:bg-breeze-sunken breeze:disabled:opacity-60",
|
|
1138
|
+
value: "breeze:min-inline-size-0 breeze:flex-1 breeze:text-start"
|
|
1139
|
+
},
|
|
1140
|
+
compound: {},
|
|
1141
|
+
size: {},
|
|
1142
|
+
state: {},
|
|
1143
|
+
variant: {}
|
|
1144
|
+
};
|
|
1145
|
+
function Lt({ placeholder: e, placeholderLocale: t, value: n, valueId: r }) {
|
|
1146
|
+
return /* @__PURE__ */ m("span", {
|
|
1147
|
+
className: It.base.value,
|
|
1148
|
+
id: r,
|
|
1149
|
+
children: n ? /* @__PURE__ */ m(Ft, {
|
|
1150
|
+
element: "span",
|
|
1151
|
+
format: "date",
|
|
1152
|
+
value: n
|
|
1153
|
+
}) : /* @__PURE__ */ m("span", {
|
|
1154
|
+
lang: t,
|
|
1155
|
+
children: e
|
|
1156
|
+
})
|
|
1157
|
+
});
|
|
977
1158
|
}
|
|
978
|
-
function
|
|
979
|
-
let
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
let
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
} : void 0), ee = xt(b, M, r, t) ?? void 0, P = u(ee ?? null), te = u(M), F = j.find(({ descriptor: e }) => e.id === P.current), ne = f === void 0 && P.current !== null ? F ?? te.current : void 0, I = M;
|
|
994
|
-
c(() => {
|
|
995
|
-
f === void 0 && F && (te.current = F);
|
|
996
|
-
}, [F, f]);
|
|
997
|
-
let { baseControlledTextValue: L, selectedItem: R, selectedKey: re } = zt(f, f !== void 0 && t && typeof f == "string" && Mt(f, C.current), ne, P.current, j, r, t), ie = jt(b, I, r, t), z = L ?? R?.descriptor.label ?? ie ?? "", B = It(f, R, r, x.current, t, C.current), V = B.selection, H = B.resetLabel !== void 0 && t && Mt(f, C.current);
|
|
998
|
-
c(() => {
|
|
999
|
-
x.current = V;
|
|
1000
|
-
}, [V]), c(() => {
|
|
1001
|
-
B.resetLabel !== void 0 && (H || (w.current = B.resetLabel, C.current = void 0));
|
|
1002
|
-
}, [
|
|
1003
|
-
V?.id,
|
|
1004
|
-
V?.label,
|
|
1005
|
-
B.resetLabel,
|
|
1006
|
-
H
|
|
1007
|
-
]);
|
|
1008
|
-
let ae = B.resetLabel !== void 0 && !H, U = f !== void 0 && h !== void 0 && Pt(S.current, V);
|
|
1009
|
-
c(() => {
|
|
1010
|
-
h !== void 0 && !U && (S.current = null);
|
|
1011
|
-
}, [h, U]);
|
|
1012
|
-
let { contains: oe } = D({ sensitivity: "base" }), se = ae ? "" : p, ce = i, W = j, le = Tt(y, v, _, W, b), ue = U ? h : L;
|
|
1013
|
-
o(() => {
|
|
1014
|
-
ae && (m(""), g(void 0), S.current = null);
|
|
1015
|
-
}, [
|
|
1016
|
-
ae,
|
|
1017
|
-
V?.id,
|
|
1018
|
-
V?.label
|
|
1019
|
-
]);
|
|
1020
|
-
let G = (e = !1) => {
|
|
1021
|
-
m(""), g(void 0), S.current = null, e || (C.current = void 0), E.current = !1;
|
|
1022
|
-
}, K = (e) => {
|
|
1023
|
-
if (e) {
|
|
1024
|
-
E.current = !1;
|
|
1025
|
-
return;
|
|
1026
|
-
}
|
|
1027
|
-
if (f !== void 0 && !t && E.current && h !== void 0) {
|
|
1028
|
-
E.current = !1;
|
|
1029
|
-
return;
|
|
1030
|
-
}
|
|
1031
|
-
G(!0);
|
|
1032
|
-
}, de = (t) => {
|
|
1033
|
-
if (e.allowsCustomValue !== !0) {
|
|
1034
|
-
t === "" && f !== void 0 && a?.(null);
|
|
1035
|
-
return;
|
|
1036
|
-
}
|
|
1037
|
-
let n = t || null;
|
|
1038
|
-
f !== void 0 && (C.current = n), T.current = n, e.onChange?.(n);
|
|
1039
|
-
}, fe = (e) => {
|
|
1040
|
-
f === void 0 && (P.current = null, te.current = void 0), !(t && T.current !== void 0) && (e && f !== void 0 && !t && G(), e && a?.(null));
|
|
1041
|
-
}, pe = (e) => {
|
|
1042
|
-
if (!O.current) {
|
|
1043
|
-
if (s) {
|
|
1044
|
-
G();
|
|
1045
|
-
return;
|
|
1046
|
-
}
|
|
1047
|
-
if (Rt(e, w.current, f, R)) {
|
|
1048
|
-
w.current = null, G();
|
|
1049
|
-
return;
|
|
1050
|
-
}
|
|
1051
|
-
w.current = null, m(e), Ft(f, R, t) && (g(e), S.current = V), E.current = f !== void 0 && !t && Lt(i, j, e, oe).length === 0, de(e);
|
|
1052
|
-
}
|
|
1053
|
-
}, me = (e, n = !0) => {
|
|
1054
|
-
if (O.current) return;
|
|
1055
|
-
if (e !== null && f !== void 0 && h !== void 0 && e === re) {
|
|
1056
|
-
w.current = R?.descriptor.label ?? "", G();
|
|
1057
|
-
return;
|
|
1058
|
-
}
|
|
1059
|
-
if (e === null) {
|
|
1060
|
-
fe(n);
|
|
1061
|
-
return;
|
|
1159
|
+
function Rt(e, t, n, r) {
|
|
1160
|
+
let i = e.getBoundingClientRect().top, { top: a } = t.getBoundingClientRect(), o = a + t.clientTop, s = Math.max(o, 0), c = Math.min(o + t.clientHeight, r);
|
|
1161
|
+
if (c <= s) return;
|
|
1162
|
+
let l = Math.max(s + 8, c - n), u = 0;
|
|
1163
|
+
i < s + 8 ? u = i - (s + 8) : i > l && (u = i - l);
|
|
1164
|
+
let d = t.scrollHeight - t.clientHeight, f = Math.round(Math.max(0, Math.min(d, t.scrollTop + u)));
|
|
1165
|
+
return f === t.scrollTop ? void 0 : f;
|
|
1166
|
+
}
|
|
1167
|
+
function zt(e) {
|
|
1168
|
+
let t = e.ownerDocument.documentElement.clientHeight, n = !1;
|
|
1169
|
+
for (let r = e.parentElement; r !== null; r = r.parentElement) {
|
|
1170
|
+
let { overflowY: i } = getComputedStyle(r);
|
|
1171
|
+
if (["auto", "scroll"].includes(i) && r.scrollHeight > r.clientHeight) {
|
|
1172
|
+
let i = Rt(e, r, 400, t);
|
|
1173
|
+
i !== void 0 && (r.scrollTop = i, n = !0);
|
|
1062
1174
|
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
matchesFilter: (e) => oe(e, se.trim()),
|
|
1103
|
-
selectedKey: re
|
|
1104
|
-
};
|
|
1175
|
+
}
|
|
1176
|
+
return n;
|
|
1177
|
+
}
|
|
1178
|
+
function Bt({ calendarKey: e, dialogId: t, disabled: n, isOpen: r, label: i, onChange: a, onOpenChange: s, triggerRef: c, value: l }) {
|
|
1179
|
+
let d = u(null);
|
|
1180
|
+
return o(() => {
|
|
1181
|
+
if (!r) return;
|
|
1182
|
+
let e = d.current, t = e?.closest("[data-breeze-overlay=\"popover\"]");
|
|
1183
|
+
if (!e || !t) return;
|
|
1184
|
+
let n = () => {
|
|
1185
|
+
if (t.hasAttribute("inert") || t.dataset.breezeInteractive !== "true") return !1;
|
|
1186
|
+
let n = e.ownerDocument, { activeElement: r } = n;
|
|
1187
|
+
return (r === c.current || r === n.body || r === n.documentElement) && e.querySelector("[role=\"button\"][tabindex=\"0\"]")?.focus(), !0;
|
|
1188
|
+
}, i = new MutationObserver(() => {
|
|
1189
|
+
n() && i.disconnect();
|
|
1190
|
+
});
|
|
1191
|
+
return i.observe(t, {
|
|
1192
|
+
attributeFilter: ["data-breeze-interactive", "inert"],
|
|
1193
|
+
attributes: !0
|
|
1194
|
+
}), n() && i.disconnect(), () => i.disconnect();
|
|
1195
|
+
}, [r, c]), /* @__PURE__ */ m(gt, {
|
|
1196
|
+
className: It.base.popover,
|
|
1197
|
+
containerPadding: 4,
|
|
1198
|
+
isOpen: r,
|
|
1199
|
+
onOpenChange: s,
|
|
1200
|
+
triggerRef: c,
|
|
1201
|
+
children: /* @__PURE__ */ m(we, {
|
|
1202
|
+
"aria-label": i,
|
|
1203
|
+
id: t,
|
|
1204
|
+
ref: d,
|
|
1205
|
+
children: /* @__PURE__ */ m(Xe, {
|
|
1206
|
+
autoFocus: r,
|
|
1207
|
+
disabled: n,
|
|
1208
|
+
label: i,
|
|
1209
|
+
onChange: a,
|
|
1210
|
+
value: l == null ? null : Je(l)
|
|
1211
|
+
}, e)
|
|
1212
|
+
})
|
|
1213
|
+
});
|
|
1105
1214
|
}
|
|
1106
|
-
function Vt({
|
|
1107
|
-
let {
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1215
|
+
function Vt({ autoFocus: e = !1, defaultValue: t, description: n, disabled: i = !1, error: a, form: l, id: f, label: p, loading: _ = !1, name: v, onChange: y, placeholder: b, required: x = !0, value: S }) {
|
|
1216
|
+
let { getMessageLocale: C, messages: w } = G(), T = b ?? w.selectDate, E = b === void 0 ? C("selectDate") : void 0, D = n?.trim() || void 0, O = a?.trim() || void 0, k = i || _, A = !_ && O !== void 0, j = s(), M = `${j}-label`, N = `${j}-value`, ee = `${j}-dialog`, te = D ? `${j}-description` : void 0, P = O ? `${j}-error` : void 0, F = x ? `${j}-required` : void 0, I = f ?? `${j}-trigger`, L = u(null), R = u(!1), [ne, re] = d(t), [z, B] = d(!1), [ie, ae] = d(0), [V, oe] = d(!1), H = S === void 0 ? ne : S, U = k || V, se = [
|
|
1217
|
+
te,
|
|
1218
|
+
_ ? void 0 : P,
|
|
1219
|
+
F
|
|
1220
|
+
].filter(Boolean).join(" ") || void 0;
|
|
1221
|
+
c(() => {
|
|
1222
|
+
let e = L.current;
|
|
1223
|
+
if (!e) return;
|
|
1224
|
+
let t = () => {
|
|
1225
|
+
oe(!k && e.matches(":disabled"));
|
|
1226
|
+
};
|
|
1227
|
+
t();
|
|
1228
|
+
let n = new MutationObserver(t);
|
|
1229
|
+
for (let t = e.parentElement; t !== null; t = t.parentElement) t.tagName === "FIELDSET" && n.observe(t, {
|
|
1230
|
+
attributeFilter: ["disabled"],
|
|
1231
|
+
attributes: !0
|
|
1232
|
+
});
|
|
1233
|
+
return () => n.disconnect();
|
|
1234
|
+
}, [k]), o(() => {
|
|
1235
|
+
if (S !== void 0) return;
|
|
1236
|
+
let e = (e) => {
|
|
1237
|
+
let n = L.current?.form;
|
|
1238
|
+
!n || e.target !== n || queueMicrotask(() => {
|
|
1239
|
+
e.defaultPrevented || re(t);
|
|
1240
|
+
});
|
|
1241
|
+
};
|
|
1242
|
+
return document.addEventListener("reset", e, !0), () => document.removeEventListener("reset", e, !0);
|
|
1243
|
+
}, [t, S]), o(() => {
|
|
1244
|
+
U && z && B(!1);
|
|
1245
|
+
}, [U, z]), o(() => {
|
|
1246
|
+
if (!e || U || R.current) return;
|
|
1247
|
+
let t = L.current;
|
|
1248
|
+
!t || t.matches(":disabled") || (t.focus(), R.current = t.ownerDocument.activeElement === t);
|
|
1249
|
+
}, [e, U]);
|
|
1250
|
+
let ce = z && !U, W = (e) => {
|
|
1251
|
+
e && (U || L.current?.matches(":disabled")) || (e && !z && ae((e) => e + 1), B(e));
|
|
1252
|
+
};
|
|
1253
|
+
return /* @__PURE__ */ h("div", {
|
|
1254
|
+
className: J.base.root,
|
|
1255
|
+
"data-required": x || void 0,
|
|
1131
1256
|
children: [
|
|
1132
|
-
/* @__PURE__ */ m(
|
|
1257
|
+
/* @__PURE__ */ m(tt, {
|
|
1258
|
+
htmlFor: I,
|
|
1259
|
+
id: M,
|
|
1133
1260
|
label: p,
|
|
1134
|
-
loading: _
|
|
1261
|
+
loading: _,
|
|
1262
|
+
onClick: () => L.current?.focus()
|
|
1135
1263
|
}),
|
|
1136
|
-
/* @__PURE__ */ h(
|
|
1137
|
-
className:
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
"aria-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1264
|
+
/* @__PURE__ */ h("span", {
|
|
1265
|
+
className: J.base.control,
|
|
1266
|
+
children: [/* @__PURE__ */ h(g, {
|
|
1267
|
+
className: Y(It.base.trigger, A && "breeze:border-breeze-danger", _ && "breeze:!opacity-0"),
|
|
1268
|
+
isDisabled: k,
|
|
1269
|
+
onPress: () => {
|
|
1270
|
+
if (ce) {
|
|
1271
|
+
W(!1);
|
|
1272
|
+
return;
|
|
1273
|
+
}
|
|
1274
|
+
let e = L.current;
|
|
1275
|
+
if (!(!e || U || e.matches(":disabled"))) {
|
|
1276
|
+
if (zt(e)) {
|
|
1277
|
+
typeof requestAnimationFrame > "u" ? setTimeout(() => W(!0), 0) : requestAnimationFrame(() => W(!0));
|
|
1278
|
+
return;
|
|
1279
|
+
}
|
|
1280
|
+
W(!0);
|
|
1281
|
+
}
|
|
1282
|
+
},
|
|
1283
|
+
ref: L,
|
|
1284
|
+
render: (e) => r("button", {
|
|
1285
|
+
...e,
|
|
1286
|
+
"aria-busy": _ || void 0,
|
|
1287
|
+
"aria-controls": ce ? ee : void 0,
|
|
1288
|
+
"aria-describedby": se,
|
|
1289
|
+
"aria-errormessage": _ ? void 0 : P,
|
|
1290
|
+
"aria-expanded": ce,
|
|
1291
|
+
"aria-haspopup": "dialog",
|
|
1292
|
+
"aria-invalid": A || void 0,
|
|
1293
|
+
"aria-label": _ ? p : void 0,
|
|
1294
|
+
"aria-labelledby": _ ? void 0 : `${M} ${N}`,
|
|
1295
|
+
"data-invalid": A || void 0,
|
|
1296
|
+
form: l,
|
|
1297
|
+
id: I,
|
|
1298
|
+
type: "button"
|
|
1170
1299
|
}),
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1300
|
+
children: [/* @__PURE__ */ m(Lt, {
|
|
1301
|
+
placeholder: T,
|
|
1302
|
+
placeholderLocale: E,
|
|
1303
|
+
value: H,
|
|
1304
|
+
valueId: N
|
|
1305
|
+
}), /* @__PURE__ */ m(X, {
|
|
1306
|
+
name: "calendar",
|
|
1307
|
+
size: "sm"
|
|
1308
|
+
})]
|
|
1309
|
+
}), _ && /* @__PURE__ */ m("span", {
|
|
1310
|
+
className: J.base.skeleton,
|
|
1311
|
+
children: /* @__PURE__ */ m(K, {
|
|
1312
|
+
blockSize: "100%",
|
|
1313
|
+
inlineSize: "100%",
|
|
1314
|
+
label: w.loading,
|
|
1315
|
+
shape: "rectangle"
|
|
1179
1316
|
})
|
|
1180
|
-
]
|
|
1317
|
+
})]
|
|
1181
1318
|
}),
|
|
1182
|
-
/* @__PURE__ */ m(
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
items: w.collectionItems,
|
|
1189
|
-
triggerRef: A
|
|
1319
|
+
v && /* @__PURE__ */ m("input", {
|
|
1320
|
+
disabled: k,
|
|
1321
|
+
form: l,
|
|
1322
|
+
name: v,
|
|
1323
|
+
type: "hidden",
|
|
1324
|
+
value: H ?? ""
|
|
1190
1325
|
}),
|
|
1191
|
-
/* @__PURE__ */ m(
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1326
|
+
x && /* @__PURE__ */ m("span", {
|
|
1327
|
+
className: "breeze:sr-only",
|
|
1328
|
+
id: F,
|
|
1329
|
+
lang: C("required"),
|
|
1330
|
+
children: w.required
|
|
1331
|
+
}),
|
|
1332
|
+
/* @__PURE__ */ m(Bt, {
|
|
1333
|
+
calendarKey: ie,
|
|
1334
|
+
dialogId: ee,
|
|
1335
|
+
disabled: U,
|
|
1336
|
+
isOpen: ce,
|
|
1337
|
+
label: p,
|
|
1338
|
+
onChange: (e) => {
|
|
1339
|
+
if (!e || U || L.current?.matches(":disabled")) return;
|
|
1340
|
+
let t = e.toString();
|
|
1341
|
+
S === void 0 && re(t), y?.(t), W(!1);
|
|
1342
|
+
},
|
|
1343
|
+
onOpenChange: W,
|
|
1344
|
+
triggerRef: L,
|
|
1345
|
+
value: H
|
|
1346
|
+
}),
|
|
1347
|
+
/* @__PURE__ */ m(nt, {
|
|
1348
|
+
description: D,
|
|
1349
|
+
descriptionId: te,
|
|
1196
1350
|
loading: _
|
|
1351
|
+
}),
|
|
1352
|
+
O && /* @__PURE__ */ m("p", {
|
|
1353
|
+
"aria-hidden": _ || void 0,
|
|
1354
|
+
className: J.base.error,
|
|
1355
|
+
id: P,
|
|
1356
|
+
children: _ ? /* @__PURE__ */ m(K, {
|
|
1357
|
+
blockSize: "1lh",
|
|
1358
|
+
inlineSize: "12em",
|
|
1359
|
+
shape: "rectangle"
|
|
1360
|
+
}) : O
|
|
1197
1361
|
})
|
|
1198
1362
|
]
|
|
1199
1363
|
});
|
|
1200
1364
|
}
|
|
1201
|
-
function Ht(e) {
|
|
1202
|
-
return /* @__PURE__ */ m(Vt, { props: e });
|
|
1203
|
-
}
|
|
1204
|
-
//#endregion
|
|
1205
|
-
//#region src/primitives/Container/Container.tsx
|
|
1206
|
-
var Ut = {
|
|
1207
|
-
base: { container: "breeze:mx-auto breeze:inline-size-full breeze:min-inline-size-0" },
|
|
1208
|
-
compound: {},
|
|
1209
|
-
size: {
|
|
1210
|
-
page: "breeze:max-inline-breeze-page",
|
|
1211
|
-
prose: "breeze:max-inline-breeze-prose",
|
|
1212
|
-
read: "breeze:max-inline-breeze-read"
|
|
1213
|
-
},
|
|
1214
|
-
state: { padded: "breeze:ps-breeze-4 breeze:pe-breeze-4 breeze:breeze-md:ps-breeze-7 breeze:breeze-md:pe-breeze-7" },
|
|
1215
|
-
variant: {}
|
|
1216
|
-
};
|
|
1217
|
-
function Wt({ "aria-label": e, children: t, element: n = "div", padded: i = !0, width: a = "page" }) {
|
|
1218
|
-
let { accessibleLabel: o, role: s } = Ue(e, n);
|
|
1219
|
-
return r(n, {
|
|
1220
|
-
"aria-label": o,
|
|
1221
|
-
className: [
|
|
1222
|
-
Ut.base.container,
|
|
1223
|
-
Ut.size[a],
|
|
1224
|
-
i && Ut.state.padded
|
|
1225
|
-
].filter(Boolean).join(" "),
|
|
1226
|
-
role: s
|
|
1227
|
-
}, t);
|
|
1228
|
-
}
|
|
1229
1365
|
//#endregion
|
|
1230
1366
|
//#region src/overlays/OverlaySurface.tsx
|
|
1231
|
-
var
|
|
1367
|
+
var Ht = {
|
|
1232
1368
|
base: {
|
|
1233
1369
|
content: "breeze-overlay-content",
|
|
1234
1370
|
header: "breeze-overlay-header",
|
|
@@ -1243,24 +1379,24 @@ var Gt = {
|
|
|
1243
1379
|
fullscreen: "breeze-fullscreen",
|
|
1244
1380
|
popover: "breeze-popover"
|
|
1245
1381
|
}
|
|
1246
|
-
},
|
|
1247
|
-
function
|
|
1382
|
+
}, Ut = "Breeze overlay triggers and portal containers must belong to the current document and light DOM.";
|
|
1383
|
+
function Wt(e) {
|
|
1248
1384
|
return typeof e == "object" && !!e && "nodeType" in e && typeof e.contains == "function";
|
|
1249
1385
|
}
|
|
1250
|
-
function
|
|
1386
|
+
function Gt(e) {
|
|
1251
1387
|
return e.dataset?.breezeOverlay !== void 0;
|
|
1252
1388
|
}
|
|
1253
|
-
function
|
|
1254
|
-
let { getMessageLocale: y, messages: b } =
|
|
1389
|
+
function Kt({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, onOpenChange: s, open: f, placement: g = "bottom", title: _, trigger: v }) {
|
|
1390
|
+
let { getMessageLocale: y, messages: b } = G(), x = r === "popover" || r === "fullscreen", S = pt(), C = a(ct), [w, T] = d(C === null);
|
|
1255
1391
|
o(() => T(!0), []);
|
|
1256
|
-
let [E, D] = d(t), O = f ?? E, k = C?.open ?? !0, A = O && k, j = u(null), M = u(null), N = u(null), [
|
|
1392
|
+
let [E, D] = d(t), O = f ?? E, k = C?.open ?? !0, A = O && k, j = u(null), M = u(null), N = u(null), [ee, te] = d(!1), P = u(!1), F = u(null), I = u(null), L = u(null), R = u(null), ne = u(!1);
|
|
1257
1393
|
c(() => {
|
|
1258
|
-
if (S && j.current && (j.current.ownerDocument !== document || j.current.getRootNode() !== document || S.ownerDocument !== document || S.getRootNode() !== document)) throw Error(
|
|
1394
|
+
if (S && j.current && (j.current.ownerDocument !== document || j.current.getRootNode() !== document || S.ownerDocument !== document || S.getRootNode() !== document)) throw Error(Ut);
|
|
1259
1395
|
}, [S]);
|
|
1260
|
-
let
|
|
1396
|
+
let re = l(() => r === "fullscreen" ? { current: S } : j, [S, r]), z = lt(r, A && w && S !== null, A || ee), B = i((e) => {
|
|
1261
1397
|
if (!e && !k) {
|
|
1262
|
-
if (
|
|
1263
|
-
O && (
|
|
1398
|
+
if (ne.current) return;
|
|
1399
|
+
O && (ne.current = !0);
|
|
1264
1400
|
}
|
|
1265
1401
|
f === void 0 && D(e), s?.(e);
|
|
1266
1402
|
}, [
|
|
@@ -1270,7 +1406,7 @@ function Yt({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, on
|
|
|
1270
1406
|
O
|
|
1271
1407
|
]);
|
|
1272
1408
|
o(() => {
|
|
1273
|
-
k ?
|
|
1409
|
+
k ? ne.current = !1 : O && B(!1);
|
|
1274
1410
|
}, [
|
|
1275
1411
|
B,
|
|
1276
1412
|
k,
|
|
@@ -1279,11 +1415,11 @@ function Yt({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, on
|
|
|
1279
1415
|
if (r !== "popover" || !A || !n || !z.topmost || !S) return;
|
|
1280
1416
|
let e = () => {
|
|
1281
1417
|
I.current !== null && (clearTimeout(I.current), I.current = null);
|
|
1282
|
-
}, t = (e, t) => !!e && !!t && (e === t || e.contains(t) || t.contains(e)), i = (e) => e.button === 0, a = (e) =>
|
|
1283
|
-
i(t) && (e(), R.current = null, L.current =
|
|
1418
|
+
}, t = (e, t) => !!e && !!t && (e === t || e.contains(t) || t.contains(e)), i = (e) => e.button === 0, a = (e) => Wt(e) && !M.current?.contains(e) && !j.current?.contains(e), o = (t) => {
|
|
1419
|
+
i(t) && (e(), R.current = null, L.current = Wt(t.target) ? t.target : null);
|
|
1284
1420
|
}, s = (n) => {
|
|
1285
1421
|
if (!i(n)) return;
|
|
1286
|
-
let r = L.current, o =
|
|
1422
|
+
let r = L.current, o = Wt(n.target) ? n.target : null;
|
|
1287
1423
|
!a(r) || !a(o) || (e(), I.current = setTimeout(() => {
|
|
1288
1424
|
I.current = null;
|
|
1289
1425
|
let e = R.current, n = L.current;
|
|
@@ -1292,7 +1428,7 @@ function Yt({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, on
|
|
|
1292
1428
|
}, c = () => {
|
|
1293
1429
|
e(), R.current = null, L.current = null;
|
|
1294
1430
|
}, l = (n) => {
|
|
1295
|
-
let r =
|
|
1431
|
+
let r = Wt(n.target) ? n.target : null;
|
|
1296
1432
|
if (e(), a(r)) {
|
|
1297
1433
|
let e = R.current, n = L.current;
|
|
1298
1434
|
if (R.current = null, L.current = null, t(e, r) && t(e, n)) return;
|
|
@@ -1310,110 +1446,110 @@ function Yt({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, on
|
|
|
1310
1446
|
z.topmost,
|
|
1311
1447
|
A
|
|
1312
1448
|
]);
|
|
1313
|
-
let
|
|
1449
|
+
let ie = C?.restoreFocus, ae = C?.id, V = i(() => {
|
|
1314
1450
|
let e = j.current, t = S?.ownerDocument, n = t?.activeElement;
|
|
1315
1451
|
if (!t || !S) return;
|
|
1316
|
-
let r =
|
|
1452
|
+
let r = ae ? t.getElementById(ae) : null;
|
|
1317
1453
|
if (!(n === t.body || n === r || n?.closest("[data-exiting]"))) return;
|
|
1318
1454
|
if (!e?.isConnected) {
|
|
1319
|
-
|
|
1455
|
+
ie?.();
|
|
1320
1456
|
return;
|
|
1321
1457
|
}
|
|
1322
1458
|
let i = S.querySelector("[data-breeze-topmost=\"true\"]");
|
|
1323
1459
|
(!i || i.contains(e)) && !e.closest("[inert], [aria-hidden=\"true\"]") && e.focus({ preventScroll: !0 });
|
|
1324
1460
|
}, [
|
|
1325
1461
|
S,
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
]),
|
|
1329
|
-
|
|
1330
|
-
}, []),
|
|
1462
|
+
ae,
|
|
1463
|
+
ie
|
|
1464
|
+
]), oe = i(() => {
|
|
1465
|
+
F.current !== null && (clearTimeout(F.current), F.current = null);
|
|
1466
|
+
}, []), H = i((e) => {
|
|
1331
1467
|
queueMicrotask(() => {
|
|
1332
|
-
!e.isConnected || e.closest("[inert], [data-exiting]") || (
|
|
1468
|
+
!e.isConnected || e.closest("[inert], [data-exiting]") || (oe(), e.focus({ preventScroll: !0 }), F.current = setTimeout(() => {
|
|
1333
1469
|
let { ownerDocument: t } = e, { activeElement: n } = t;
|
|
1334
|
-
e.isConnected && !e.closest("[inert], [data-exiting]") && (n === e || n === t.body) && (
|
|
1470
|
+
e.isConnected && !e.closest("[inert], [data-exiting]") && (n === e || n === t.body) && (P.current = !0, e.blur(), e.focus({ preventScroll: !0 }), P.current = !1), F.current = null;
|
|
1335
1471
|
}, 500));
|
|
1336
1472
|
});
|
|
1337
|
-
}, [
|
|
1473
|
+
}, [oe]), U = u(A);
|
|
1338
1474
|
o(() => {
|
|
1339
|
-
let e =
|
|
1340
|
-
|
|
1475
|
+
let e = U.current;
|
|
1476
|
+
U.current = A, !(!x || !A || e || !N.current) && H(N.current);
|
|
1341
1477
|
}, [
|
|
1342
|
-
|
|
1478
|
+
H,
|
|
1343
1479
|
x,
|
|
1344
1480
|
A
|
|
1345
1481
|
]);
|
|
1346
|
-
let
|
|
1482
|
+
let se = i((e) => {
|
|
1347
1483
|
N.current = e;
|
|
1348
1484
|
let t = () => {
|
|
1349
|
-
|
|
1485
|
+
oe(), N.current = null, te(!1), requestAnimationFrame(V);
|
|
1350
1486
|
};
|
|
1351
1487
|
if (!e) {
|
|
1352
1488
|
t();
|
|
1353
1489
|
return;
|
|
1354
1490
|
}
|
|
1355
|
-
return te(!0), x &&
|
|
1491
|
+
return te(!0), x && H(e), t;
|
|
1356
1492
|
}, [
|
|
1357
|
-
U,
|
|
1358
1493
|
oe,
|
|
1494
|
+
H,
|
|
1359
1495
|
x,
|
|
1360
|
-
|
|
1361
|
-
]),
|
|
1496
|
+
V
|
|
1497
|
+
]), ce = l(() => ({
|
|
1362
1498
|
id: z.id,
|
|
1363
1499
|
open: A,
|
|
1364
|
-
restoreFocus:
|
|
1500
|
+
restoreFocus: V
|
|
1365
1501
|
}), [
|
|
1366
1502
|
z.id,
|
|
1367
1503
|
A,
|
|
1368
|
-
|
|
1369
|
-
]),
|
|
1370
|
-
className:
|
|
1504
|
+
V
|
|
1505
|
+
]), W = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
|
|
1506
|
+
className: Ht.base.header,
|
|
1371
1507
|
children: [/* @__PURE__ */ m("h2", {
|
|
1372
|
-
className:
|
|
1508
|
+
className: Ht.base.title,
|
|
1373
1509
|
children: _
|
|
1374
1510
|
}), /* @__PURE__ */ m("span", {
|
|
1375
1511
|
lang: y("close"),
|
|
1376
|
-
children: /* @__PURE__ */ m(
|
|
1512
|
+
children: /* @__PURE__ */ m(We, {
|
|
1377
1513
|
onAction: () => B(!1),
|
|
1378
1514
|
variant: "quiet",
|
|
1379
1515
|
children: b.close
|
|
1380
1516
|
})
|
|
1381
1517
|
})]
|
|
1382
|
-
}), e] }),
|
|
1383
|
-
value:
|
|
1518
|
+
}), e] }), le = /* @__PURE__ */ m(ct, {
|
|
1519
|
+
value: ce,
|
|
1384
1520
|
children: x ? /* @__PURE__ */ m("section", {
|
|
1385
1521
|
"aria-label": _,
|
|
1386
|
-
className:
|
|
1522
|
+
className: Ht.base.content,
|
|
1387
1523
|
id: z.id,
|
|
1388
1524
|
onBlur: (e) => {
|
|
1389
|
-
if (
|
|
1525
|
+
if (P.current) {
|
|
1390
1526
|
e.stopPropagation();
|
|
1391
1527
|
return;
|
|
1392
1528
|
}
|
|
1393
1529
|
let { relatedTarget: t } = e;
|
|
1394
|
-
r === "popover" && n && z.topmost &&
|
|
1530
|
+
r === "popover" && n && z.topmost && Wt(t) && !e.currentTarget.contains(t) && !j.current?.contains(t) && (R.current = t);
|
|
1395
1531
|
},
|
|
1396
|
-
ref:
|
|
1532
|
+
ref: se,
|
|
1397
1533
|
role: "dialog",
|
|
1398
1534
|
tabIndex: -1,
|
|
1399
|
-
children:
|
|
1400
|
-
}) : /* @__PURE__ */ m(
|
|
1535
|
+
children: W
|
|
1536
|
+
}) : /* @__PURE__ */ m(we, {
|
|
1401
1537
|
"aria-label": _,
|
|
1402
|
-
className:
|
|
1538
|
+
className: Ht.base.content,
|
|
1403
1539
|
id: z.id,
|
|
1404
|
-
ref:
|
|
1405
|
-
children:
|
|
1540
|
+
ref: se,
|
|
1541
|
+
children: W
|
|
1406
1542
|
})
|
|
1407
1543
|
});
|
|
1408
|
-
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(
|
|
1544
|
+
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(We, {
|
|
1409
1545
|
"aria-controls": A ? z.id : void 0,
|
|
1410
1546
|
"aria-expanded": A,
|
|
1411
1547
|
"aria-haspopup": "dialog",
|
|
1412
1548
|
onAction: () => B(!x || !A),
|
|
1413
1549
|
ref: j,
|
|
1414
1550
|
children: v
|
|
1415
|
-
}), S && w && (x ? /* @__PURE__ */ m(
|
|
1416
|
-
className:
|
|
1551
|
+
}), S && w && (x ? /* @__PURE__ */ m(be, {
|
|
1552
|
+
className: Ht.variant[r],
|
|
1417
1553
|
"data-breeze-overlay": r,
|
|
1418
1554
|
"data-breeze-topmost": z.topmost,
|
|
1419
1555
|
"data-breeze-interactive": z.interactive,
|
|
@@ -1426,9 +1562,9 @@ function Yt({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, on
|
|
|
1426
1562
|
ref: M,
|
|
1427
1563
|
shouldCloseOnInteractOutside: (e) => r === "popover" && n && z.topmost && !j.current?.contains(e),
|
|
1428
1564
|
style: { zIndex: z.zIndex },
|
|
1429
|
-
triggerRef:
|
|
1430
|
-
children:
|
|
1431
|
-
}) : /* @__PURE__ */ m(
|
|
1565
|
+
triggerRef: re,
|
|
1566
|
+
children: le
|
|
1567
|
+
}) : /* @__PURE__ */ m(Ee, {
|
|
1432
1568
|
className: "breeze-overlay-backdrop",
|
|
1433
1569
|
"data-breeze-overlay": r,
|
|
1434
1570
|
"data-breeze-scrim": z.scrim,
|
|
@@ -1439,18 +1575,18 @@ function Yt({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, on
|
|
|
1439
1575
|
isKeyboardDismissDisabled: !n || !z.topmost,
|
|
1440
1576
|
isOpen: A,
|
|
1441
1577
|
onOpenChange: B,
|
|
1442
|
-
shouldCloseOnInteractOutside: (e) => z.topmost &&
|
|
1578
|
+
shouldCloseOnInteractOutside: (e) => z.topmost && Gt(e),
|
|
1443
1579
|
style: { zIndex: z.zIndex },
|
|
1444
|
-
children: /* @__PURE__ */ m(
|
|
1445
|
-
className:
|
|
1446
|
-
children:
|
|
1580
|
+
children: /* @__PURE__ */ m(Te, {
|
|
1581
|
+
className: Ht.variant[r],
|
|
1582
|
+
children: le
|
|
1447
1583
|
})
|
|
1448
1584
|
}))] });
|
|
1449
1585
|
}
|
|
1450
1586
|
//#endregion
|
|
1451
1587
|
//#region src/primitives/Dialog/Dialog.tsx
|
|
1452
|
-
function
|
|
1453
|
-
return /* @__PURE__ */ m(
|
|
1588
|
+
function qt({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o }) {
|
|
1589
|
+
return /* @__PURE__ */ m(Kt, {
|
|
1454
1590
|
defaultOpen: t,
|
|
1455
1591
|
dismissible: n,
|
|
1456
1592
|
onOpenChange: r,
|
|
@@ -1463,8 +1599,8 @@ function Xt({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
|
|
|
1463
1599
|
}
|
|
1464
1600
|
//#endregion
|
|
1465
1601
|
//#region src/primitives/Drawer/Drawer.tsx
|
|
1466
|
-
function
|
|
1467
|
-
return /* @__PURE__ */ m(
|
|
1602
|
+
function Jt({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o }) {
|
|
1603
|
+
return /* @__PURE__ */ m(Kt, {
|
|
1468
1604
|
defaultOpen: t,
|
|
1469
1605
|
dismissible: n,
|
|
1470
1606
|
onOpenChange: r,
|
|
@@ -1477,7 +1613,7 @@ function Zt({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
|
|
|
1477
1613
|
}
|
|
1478
1614
|
//#endregion
|
|
1479
1615
|
//#region src/primitives/Grid/Grid.tsx
|
|
1480
|
-
var
|
|
1616
|
+
var Yt = {
|
|
1481
1617
|
base: { grid: "breeze:grid breeze:min-inline-size-0" },
|
|
1482
1618
|
compound: { columns: {
|
|
1483
1619
|
1: {
|
|
@@ -1513,21 +1649,21 @@ var Qt = {
|
|
|
1513
1649
|
state: {},
|
|
1514
1650
|
variant: {}
|
|
1515
1651
|
};
|
|
1516
|
-
function
|
|
1517
|
-
let { accessibleLabel: s, role: c } =
|
|
1652
|
+
function Xt({ "aria-label": e, children: t, collapseBelow: n = "md", columns: i = 2, element: a = "div", gap: o = 4 }) {
|
|
1653
|
+
let { accessibleLabel: s, role: c } = Qe(e, a);
|
|
1518
1654
|
return r(a, {
|
|
1519
1655
|
"aria-label": s,
|
|
1520
1656
|
className: [
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1657
|
+
Yt.base.grid,
|
|
1658
|
+
Yt.compound.columns[i][n],
|
|
1659
|
+
Yt.size[o]
|
|
1524
1660
|
].join(" "),
|
|
1525
1661
|
role: c
|
|
1526
1662
|
}, t);
|
|
1527
1663
|
}
|
|
1528
1664
|
//#endregion
|
|
1529
1665
|
//#region src/primitives/IconTile/IconTile.tsx
|
|
1530
|
-
var
|
|
1666
|
+
var Zt = {
|
|
1531
1667
|
base: { tile: "breeze:inline-flex breeze:shrink-0 breeze:items-center breeze:justify-center" },
|
|
1532
1668
|
compound: {},
|
|
1533
1669
|
size: {
|
|
@@ -1549,15 +1685,15 @@ var en = {
|
|
|
1549
1685
|
}
|
|
1550
1686
|
}
|
|
1551
1687
|
};
|
|
1552
|
-
function
|
|
1688
|
+
function Qt({ label: e, name: t, shape: n = "square", size: r = "lg", tone: i = "brand" }) {
|
|
1553
1689
|
return /* @__PURE__ */ m("span", {
|
|
1554
1690
|
className: [
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1691
|
+
Zt.base.tile,
|
|
1692
|
+
Zt.variant.tone[i],
|
|
1693
|
+
Zt.variant.shape[n],
|
|
1694
|
+
Zt.size[r]
|
|
1559
1695
|
].join(" "),
|
|
1560
|
-
children: /* @__PURE__ */ m(
|
|
1696
|
+
children: /* @__PURE__ */ m(X, {
|
|
1561
1697
|
label: e,
|
|
1562
1698
|
name: t,
|
|
1563
1699
|
size: r === "lg" ? "md" : "sm"
|
|
@@ -1566,7 +1702,7 @@ function tn({ label: e, name: t, shape: n = "square", size: r = "lg", tone: i =
|
|
|
1566
1702
|
}
|
|
1567
1703
|
//#endregion
|
|
1568
1704
|
//#region src/primitives/Inline/Inline.tsx
|
|
1569
|
-
var
|
|
1705
|
+
var $t = {
|
|
1570
1706
|
base: { inline: "breeze:flex breeze:min-inline-size-0" },
|
|
1571
1707
|
compound: {},
|
|
1572
1708
|
size: {
|
|
@@ -1596,16 +1732,16 @@ var nn = {
|
|
|
1596
1732
|
}
|
|
1597
1733
|
}
|
|
1598
1734
|
};
|
|
1599
|
-
function
|
|
1600
|
-
let { accessibleLabel: c, role: l } =
|
|
1735
|
+
function en({ "aria-label": e, children: t, element: n = "div", gap: i = 3, justify: a = "start", verticalAlign: o = "center", wrap: s = !1 }) {
|
|
1736
|
+
let { accessibleLabel: c, role: l } = Qe(e, n);
|
|
1601
1737
|
return r(n, {
|
|
1602
1738
|
"aria-label": c,
|
|
1603
1739
|
className: [
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
s &&
|
|
1740
|
+
$t.base.inline,
|
|
1741
|
+
$t.variant.align[o],
|
|
1742
|
+
$t.variant.justify[a],
|
|
1743
|
+
$t.size[i],
|
|
1744
|
+
s && $t.state.wrap
|
|
1609
1745
|
].filter(Boolean).join(" "),
|
|
1610
1746
|
role: l
|
|
1611
1747
|
}, t);
|
|
@@ -1629,17 +1765,17 @@ var $ = {
|
|
|
1629
1765
|
},
|
|
1630
1766
|
variant: {}
|
|
1631
1767
|
};
|
|
1632
|
-
function
|
|
1633
|
-
let { messages: T } =
|
|
1634
|
-
return /* @__PURE__ */ h(
|
|
1768
|
+
function tn({ autoComplete: e, autoFocus: t, defaultValue: n, description: i, disabled: a = !1, error: o, form: s, formatOptions: c, id: l, label: u, loading: d = !1, maxValue: f, minValue: p, name: _, onChange: v, placeholder: y, readOnly: b = !1, ref: x, required: S = !1, step: C, value: w }) {
|
|
1769
|
+
let { messages: T } = G(), E = i?.trim() || void 0, D = o?.trim() || void 0, O = a || d;
|
|
1770
|
+
return /* @__PURE__ */ h(De, {
|
|
1635
1771
|
autoFocus: t,
|
|
1636
1772
|
"aria-label": d ? u : void 0,
|
|
1637
|
-
className:
|
|
1773
|
+
className: J.base.root,
|
|
1638
1774
|
defaultValue: n,
|
|
1639
1775
|
form: s,
|
|
1640
1776
|
formatOptions: c,
|
|
1641
1777
|
id: l,
|
|
1642
|
-
isDisabled:
|
|
1778
|
+
isDisabled: O,
|
|
1643
1779
|
isInvalid: !d && D !== void 0,
|
|
1644
1780
|
isReadOnly: b,
|
|
1645
1781
|
isRequired: S,
|
|
@@ -1651,23 +1787,23 @@ function an({ autoComplete: e, autoFocus: t, defaultValue: n, description: i, di
|
|
|
1651
1787
|
validationBehavior: "aria",
|
|
1652
1788
|
value: w,
|
|
1653
1789
|
children: [
|
|
1654
|
-
/* @__PURE__ */ m(
|
|
1790
|
+
/* @__PURE__ */ m(tt, {
|
|
1655
1791
|
label: u,
|
|
1656
1792
|
loading: d
|
|
1657
1793
|
}),
|
|
1658
|
-
/* @__PURE__ */ h(
|
|
1659
|
-
className:
|
|
1794
|
+
/* @__PURE__ */ h(ge, {
|
|
1795
|
+
className: Y($.base.group, b && !d && $.state.readOnlyGroup, d && $.state.loadingGroup),
|
|
1660
1796
|
children: [
|
|
1661
|
-
/* @__PURE__ */ m(
|
|
1797
|
+
/* @__PURE__ */ m(_e, {
|
|
1662
1798
|
"aria-busy": d || void 0,
|
|
1663
|
-
className:
|
|
1799
|
+
className: Y(J.base.input, $.base.input, d && $.state.loadingInput),
|
|
1664
1800
|
autoComplete: e,
|
|
1665
1801
|
placeholder: y,
|
|
1666
1802
|
form: s,
|
|
1667
1803
|
ref: x
|
|
1668
1804
|
}),
|
|
1669
1805
|
/* @__PURE__ */ m(g, {
|
|
1670
|
-
className:
|
|
1806
|
+
className: Y($.base.stepButton, d && $.state.loadingStepButton),
|
|
1671
1807
|
render: (e) => r("button", {
|
|
1672
1808
|
...e,
|
|
1673
1809
|
"aria-hidden": d || void 0,
|
|
@@ -1678,7 +1814,7 @@ function an({ autoComplete: e, autoFocus: t, defaultValue: n, description: i, di
|
|
|
1678
1814
|
children: "−"
|
|
1679
1815
|
}),
|
|
1680
1816
|
/* @__PURE__ */ m(g, {
|
|
1681
|
-
className:
|
|
1817
|
+
className: Y($.base.stepButton, d && $.state.loadingStepButton),
|
|
1682
1818
|
render: (e) => r("button", {
|
|
1683
1819
|
...e,
|
|
1684
1820
|
"aria-hidden": d || void 0,
|
|
@@ -1690,7 +1826,7 @@ function an({ autoComplete: e, autoFocus: t, defaultValue: n, description: i, di
|
|
|
1690
1826
|
}),
|
|
1691
1827
|
d && /* @__PURE__ */ m("span", {
|
|
1692
1828
|
className: $.base.skeleton,
|
|
1693
|
-
children: /* @__PURE__ */ m(
|
|
1829
|
+
children: /* @__PURE__ */ m(K, {
|
|
1694
1830
|
blockSize: "100%",
|
|
1695
1831
|
inlineSize: "100%",
|
|
1696
1832
|
label: T.loading,
|
|
@@ -1699,7 +1835,7 @@ function an({ autoComplete: e, autoFocus: t, defaultValue: n, description: i, di
|
|
|
1699
1835
|
})
|
|
1700
1836
|
]
|
|
1701
1837
|
}),
|
|
1702
|
-
/* @__PURE__ */ m(
|
|
1838
|
+
/* @__PURE__ */ m(nt, {
|
|
1703
1839
|
description: E,
|
|
1704
1840
|
error: D,
|
|
1705
1841
|
loading: d
|
|
@@ -1709,8 +1845,8 @@ function an({ autoComplete: e, autoFocus: t, defaultValue: n, description: i, di
|
|
|
1709
1845
|
}
|
|
1710
1846
|
//#endregion
|
|
1711
1847
|
//#region src/primitives/Popover/Popover.tsx
|
|
1712
|
-
function
|
|
1713
|
-
return /* @__PURE__ */ m(
|
|
1848
|
+
function nn({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o, placement: s }) {
|
|
1849
|
+
return /* @__PURE__ */ m(Kt, {
|
|
1714
1850
|
defaultOpen: t,
|
|
1715
1851
|
dismissible: n,
|
|
1716
1852
|
onOpenChange: r,
|
|
@@ -1724,289 +1860,109 @@ function on({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
|
|
|
1724
1860
|
}
|
|
1725
1861
|
//#endregion
|
|
1726
1862
|
//#region src/primitives/Select/Select.tsx
|
|
1727
|
-
var
|
|
1863
|
+
var rn = {
|
|
1728
1864
|
base: { trigger: "breeze:flex breeze:min-block-breeze-md breeze:any-pointer-coarse:min-block-breeze-tap breeze:min-inline-size-0 breeze:inline-size-full breeze:items-center breeze:justify-between breeze:rounded-breeze-ctl breeze:border breeze:border-solid breeze:border-breeze-line-strong breeze:bg-breeze-surface breeze:ps-breeze-3 breeze:pe-breeze-3 breeze:py-breeze-2 breeze:font-breeze-sans breeze:text-breeze-sm breeze:text-breeze-ink breeze:outline-offset-2 breeze:data-[hovered]:border-breeze-brand breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:data-[invalid]:border-breeze-danger breeze:disabled:cursor-not-allowed breeze:disabled:bg-breeze-sunken breeze:disabled:opacity-60" },
|
|
1729
1865
|
compound: {},
|
|
1730
1866
|
size: {},
|
|
1731
1867
|
state: { readOnlyTrigger: "breeze:cursor-default breeze:bg-breeze-sunken" },
|
|
1732
1868
|
variant: {}
|
|
1733
|
-
}, cn = (() => null);
|
|
1734
|
-
cn.getCollectionNode = function* ({ id: e, item: t, ...n }) {
|
|
1735
|
-
yield {
|
|
1736
|
-
key: e,
|
|
1737
|
-
props: {
|
|
1738
|
-
...n,
|
|
1739
|
-
id: e,
|
|
1740
|
-
item: t
|
|
1741
|
-
},
|
|
1742
|
-
rendered: n.children,
|
|
1743
|
-
textValue: n.textValue,
|
|
1744
|
-
type: "item",
|
|
1745
|
-
value: t
|
|
1746
|
-
};
|
|
1747
1869
|
};
|
|
1748
|
-
function
|
|
1749
|
-
|
|
1750
|
-
let r = n(t).id;
|
|
1751
|
-
return e.find(({ descriptor: e, item: n }) => n === t || e.id === r);
|
|
1752
|
-
}
|
|
1753
|
-
function un(e, t) {
|
|
1754
|
-
let n = e.filter(({ descriptor: e }) => !e.disabled && (e.id === t || e.label === t));
|
|
1755
|
-
return n.length === 1 ? n[0] : void 0;
|
|
1756
|
-
}
|
|
1757
|
-
function dn(e, t, n) {
|
|
1758
|
-
return e == null ? e : t.find(({ descriptor: t }) => t.id === e.descriptor.id) ?? (n ? e : null);
|
|
1759
|
-
}
|
|
1760
|
-
function fn(e, t) {
|
|
1761
|
-
if (e !== void 0) return e === null ? null : {
|
|
1762
|
-
descriptor: t(e),
|
|
1763
|
-
item: e
|
|
1764
|
-
};
|
|
1765
|
-
}
|
|
1766
|
-
function pn(e, t) {
|
|
1767
|
-
if (e !== void 0) return e === null ? null : t(e).id;
|
|
1768
|
-
}
|
|
1769
|
-
function mn(e, t, n) {
|
|
1770
|
-
if (!e) return Array.from(new Set([t, n].filter((e) => !!e).flatMap((e) => e.split(" ")))).join(" ") || void 0;
|
|
1771
|
-
}
|
|
1772
|
-
function hn(e, t, n, r, i, a) {
|
|
1773
|
-
let o = a;
|
|
1774
|
-
if (t) {
|
|
1775
|
-
o.current && (o.current.value = String(r ?? ""));
|
|
1776
|
-
return;
|
|
1777
|
-
}
|
|
1778
|
-
let s = un(n, e);
|
|
1779
|
-
if (!s) {
|
|
1780
|
-
o.current && (o.current.value = String(r ?? ""));
|
|
1781
|
-
return;
|
|
1782
|
-
}
|
|
1783
|
-
let c = s.descriptor.id;
|
|
1784
|
-
r !== c && i(c);
|
|
1785
|
-
}
|
|
1786
|
-
function gn({ decoratedItems: e, initialDefaultValueRef: t, isControlled: n, loading: r, pendingDefaultValueRef: i, state: a, suppressOnChangeRef: o }) {
|
|
1787
|
-
let s = i, l = t, u = o;
|
|
1788
|
-
c(() => {
|
|
1789
|
-
let t = s.current, i = e.some(({ descriptor: e }) => e.id === t);
|
|
1790
|
-
if (!r && t !== null && !i) {
|
|
1791
|
-
s.current = null, l.current === t && (l.current = null);
|
|
1792
|
-
return;
|
|
1793
|
-
}
|
|
1794
|
-
if (!(n || a.value !== null || t === null || !i)) {
|
|
1795
|
-
s.current = null, u.current = !0;
|
|
1796
|
-
try {
|
|
1797
|
-
a.setValue(t);
|
|
1798
|
-
} finally {
|
|
1799
|
-
u.current = !1;
|
|
1800
|
-
}
|
|
1801
|
-
}
|
|
1802
|
-
}, [
|
|
1803
|
-
e,
|
|
1804
|
-
l,
|
|
1805
|
-
n,
|
|
1806
|
-
r,
|
|
1807
|
-
s,
|
|
1808
|
-
a,
|
|
1809
|
-
u
|
|
1810
|
-
]), c(() => {
|
|
1811
|
-
!n && !r && a.value !== null && !e.some(({ descriptor: e }) => e.id === a.value) && a.setValue(null);
|
|
1812
|
-
}, [
|
|
1813
|
-
e,
|
|
1814
|
-
n,
|
|
1815
|
-
r,
|
|
1816
|
-
a
|
|
1817
|
-
]);
|
|
1818
|
-
}
|
|
1819
|
-
function _n({ controlledResetItemRef: e, controlledResetValueKeyRef: t, form: n, isControlled: r, onChangeRef: i, resetValueRef: a, setStateValueRef: o, suppressOnChangeRef: s, triggerRef: l }) {
|
|
1820
|
-
let u = s;
|
|
1821
|
-
c(() => {
|
|
1822
|
-
let s = !0, c = (c) => {
|
|
1823
|
-
let d = n ? document.getElementById(n) : l.current?.form;
|
|
1824
|
-
!(d instanceof HTMLFormElement) || c.target !== d || (N(() => void 0), !(!s || c.defaultPrevented) && N(() => {
|
|
1825
|
-
if (r) {
|
|
1826
|
-
let n = e.current, r = t.current, a;
|
|
1827
|
-
a = n === void 0 ? void 0 : n === null ? null : n.descriptor.id, r !== a && i.current?.(n?.item ?? null);
|
|
1828
|
-
return;
|
|
1829
|
-
}
|
|
1830
|
-
u.current = !0;
|
|
1831
|
-
try {
|
|
1832
|
-
o.current(a.current);
|
|
1833
|
-
} finally {
|
|
1834
|
-
u.current = !1;
|
|
1835
|
-
}
|
|
1836
|
-
}));
|
|
1837
|
-
};
|
|
1838
|
-
return document.addEventListener("reset", c), () => {
|
|
1839
|
-
s = !1, document.removeEventListener("reset", c);
|
|
1840
|
-
};
|
|
1841
|
-
}, [
|
|
1842
|
-
e,
|
|
1843
|
-
t,
|
|
1844
|
-
n,
|
|
1845
|
-
r,
|
|
1846
|
-
i,
|
|
1847
|
-
a,
|
|
1848
|
-
o,
|
|
1849
|
-
u,
|
|
1850
|
-
l
|
|
1851
|
-
]);
|
|
1852
|
-
}
|
|
1853
|
-
function vn({ node: e, state: t }) {
|
|
1854
|
-
let n = u(null), { value: r } = e, { optionProps: i, isDisabled: a, isFocused: o, isFocusVisible: s, isSelected: c } = Te({
|
|
1855
|
-
isDisabled: r?.descriptor.disabled,
|
|
1856
|
-
key: e.key
|
|
1857
|
-
}, t, n), { hoverProps: l, isHovered: d } = Ce({ isDisabled: a });
|
|
1858
|
-
return r ? /* @__PURE__ */ m("div", {
|
|
1859
|
-
...be(i, l),
|
|
1860
|
-
ref: n,
|
|
1861
|
-
className: Q.base.item,
|
|
1862
|
-
"data-disabled": a || void 0,
|
|
1863
|
-
"data-focused": o || void 0,
|
|
1864
|
-
"data-focus-visible": s || void 0,
|
|
1865
|
-
"data-hovered": d || void 0,
|
|
1866
|
-
"data-selected": c || void 0,
|
|
1867
|
-
children: /* @__PURE__ */ m(ft, {
|
|
1868
|
-
descriptor: r.descriptor,
|
|
1869
|
-
isSelected: c
|
|
1870
|
-
})
|
|
1871
|
-
}) : null;
|
|
1872
|
-
}
|
|
1873
|
-
function yn({ menuProps: e, state: t }) {
|
|
1874
|
-
let n = u(null), { listBoxProps: r } = we(e, t, n), i = Array.from(t.collection.getKeys());
|
|
1875
|
-
return /* @__PURE__ */ m("div", {
|
|
1876
|
-
...r,
|
|
1870
|
+
function an({ items: e }) {
|
|
1871
|
+
return /* @__PURE__ */ m(ve, {
|
|
1877
1872
|
className: Q.base.listBox,
|
|
1878
|
-
|
|
1879
|
-
children:
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1873
|
+
items: e,
|
|
1874
|
+
children: (e) => /* @__PURE__ */ m(ye, {
|
|
1875
|
+
className: Q.base.item,
|
|
1876
|
+
id: e.descriptor.id,
|
|
1877
|
+
isDisabled: e.descriptor.disabled,
|
|
1878
|
+
textValue: e.descriptor.label,
|
|
1879
|
+
value: e,
|
|
1880
|
+
children: ({ isSelected: t }) => /* @__PURE__ */ m(_t, {
|
|
1881
|
+
descriptor: e.descriptor,
|
|
1882
|
+
isSelected: t
|
|
1883
|
+
})
|
|
1885
1884
|
})
|
|
1886
1885
|
});
|
|
1887
1886
|
}
|
|
1888
|
-
function
|
|
1889
|
-
let
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1887
|
+
function on({ form: e, interactionDisabled: t, name: n, readOnly: r }) {
|
|
1888
|
+
let i = a(ke);
|
|
1889
|
+
return !r || t || !n || i === null ? null : /* @__PURE__ */ m("input", {
|
|
1890
|
+
form: e,
|
|
1891
|
+
name: n,
|
|
1892
|
+
type: "hidden",
|
|
1893
|
+
value: i.value === null ? "" : String(i.value)
|
|
1894
|
+
});
|
|
1895
|
+
}
|
|
1896
|
+
function sn({ disabled: e, items: t, readOnly: n, triggerRef: r }) {
|
|
1897
|
+
let i = a(ke), s = e || n || t.length === 0, c = !s && (i?.isOpen ?? !1);
|
|
1898
|
+
return o(() => {
|
|
1899
|
+
s && i?.isOpen && i.setOpen(!1);
|
|
1900
|
+
}, [s, i]), /* @__PURE__ */ m(gt, {
|
|
1901
|
+
className: Q.base.popover,
|
|
1902
|
+
isOpen: c,
|
|
1903
|
+
onOpenChange: (e) => i?.setOpen(e),
|
|
1904
|
+
triggerRef: r,
|
|
1905
|
+
children: /* @__PURE__ */ m(an, { items: t })
|
|
1906
|
+
});
|
|
1907
|
+
}
|
|
1908
|
+
function cn({ autoComplete: e, autoFocus: t, defaultValue: n, description: i, disabled: a = !1, error: o, form: c, getItem: d, id: f, items: p, label: _, loading: v = !1, name: y, onChange: b, placeholder: x, readOnly: S = !1, required: C = !1, value: w }) {
|
|
1909
|
+
let { messages: T } = G(), E = i?.trim() || void 0, D = o?.trim() || void 0, O = a || v, k = !v && D !== void 0, A = s(), j = f ?? `${A}-control`, M = u(null), N = l(() => p.map((e) => ({
|
|
1910
|
+
descriptor: d(e),
|
|
1895
1911
|
item: e
|
|
1896
|
-
})), [
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
descriptor: e,
|
|
1901
|
-
item: t
|
|
1902
|
-
},
|
|
1903
|
-
isDisabled: e.disabled,
|
|
1904
|
-
textValue: e.label,
|
|
1905
|
-
children: e.label
|
|
1906
|
-
}, e.id)), [I]),
|
|
1907
|
-
defaultValue: V,
|
|
1908
|
-
isDisabled: A,
|
|
1909
|
-
isInvalid: !v && O !== void 0,
|
|
1910
|
-
isRequired: C,
|
|
1911
|
-
items: I,
|
|
1912
|
-
onChange: (e) => {
|
|
1913
|
-
if (G.current) return;
|
|
1914
|
-
if (z.current = null, e === null) {
|
|
1915
|
-
b?.(null);
|
|
1916
|
-
return;
|
|
1917
|
-
}
|
|
1918
|
-
let t = I.find((t) => t.descriptor.id === e);
|
|
1919
|
-
b?.(t?.item ?? null);
|
|
1920
|
-
},
|
|
1921
|
-
shouldCloseOnSelect: !0,
|
|
1922
|
-
validationBehavior: "aria",
|
|
1923
|
-
value: B
|
|
1924
|
-
}), de = u((e) => K.setValue(e)), { menuProps: fe, triggerProps: pe, valueProps: me } = Ee({
|
|
1925
|
-
"aria-describedby": te,
|
|
1912
|
+
})), [d, p]), ee;
|
|
1913
|
+
ee = w === void 0 ? void 0 : w === null ? null : d(w).id;
|
|
1914
|
+
let te = n == null ? null : d(n).id;
|
|
1915
|
+
return /* @__PURE__ */ h(Oe, {
|
|
1926
1916
|
"aria-label": v ? _ : void 0,
|
|
1927
|
-
"aria-labelledby": N,
|
|
1928
1917
|
autoComplete: e,
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1918
|
+
autoFocus: t,
|
|
1919
|
+
className: J.base.root,
|
|
1920
|
+
defaultValue: te,
|
|
1921
|
+
form: c,
|
|
1922
|
+
id: j,
|
|
1923
|
+
isDisabled: O || S,
|
|
1924
|
+
isInvalid: k,
|
|
1932
1925
|
isRequired: C,
|
|
1933
1926
|
name: y,
|
|
1927
|
+
onChange: (e) => {
|
|
1928
|
+
if (S) return;
|
|
1929
|
+
let t = e === null ? void 0 : N.find(({ descriptor: t }) => t.id === String(e));
|
|
1930
|
+
b?.(t?.item ?? null);
|
|
1931
|
+
},
|
|
1932
|
+
placeholder: x,
|
|
1934
1933
|
validationBehavior: "aria",
|
|
1935
|
-
value:
|
|
1936
|
-
}, K, F), { buttonProps: he } = xe(pe, F), { focusProps: ge, isFocusVisible: _e } = Se(), { hoverProps: ve, isHovered: ye } = Ce({ isDisabled: k }), we = !v && O !== void 0, Te = (e) => hn(e, S, I, K.value, (e) => K.setValue(e), ne), ke = mn(v, he["aria-labelledby"], me.id);
|
|
1937
|
-
return c(() => {
|
|
1938
|
-
oe.current = U, de.current = (e) => K.setValue(e), W.current = se, le.current = ce, ue.current = b;
|
|
1939
|
-
}, [
|
|
1940
|
-
ce,
|
|
1941
|
-
se,
|
|
1942
|
-
b,
|
|
1943
|
-
U,
|
|
1944
|
-
K
|
|
1945
|
-
]), c(() => {
|
|
1946
|
-
(I.length === 0 || A) && K.isOpen && K.setOpen(!1);
|
|
1947
|
-
}, [
|
|
1948
|
-
I.length,
|
|
1949
|
-
K,
|
|
1950
|
-
A
|
|
1951
|
-
]), gn({
|
|
1952
|
-
decoratedItems: I,
|
|
1953
|
-
initialDefaultValueRef: H,
|
|
1954
|
-
isControlled: L,
|
|
1955
|
-
loading: v,
|
|
1956
|
-
pendingDefaultValueRef: z,
|
|
1957
|
-
state: K,
|
|
1958
|
-
suppressOnChangeRef: G
|
|
1959
|
-
}), _n({
|
|
1960
|
-
controlledResetItemRef: le,
|
|
1961
|
-
controlledResetValueKeyRef: W,
|
|
1962
|
-
form: o,
|
|
1963
|
-
isControlled: L,
|
|
1964
|
-
onChangeRef: ue,
|
|
1965
|
-
resetValueRef: oe,
|
|
1966
|
-
setStateValueRef: de,
|
|
1967
|
-
suppressOnChangeRef: G,
|
|
1968
|
-
triggerRef: F
|
|
1969
|
-
}), /* @__PURE__ */ h("div", {
|
|
1970
|
-
className: X.base.root,
|
|
1934
|
+
value: ee,
|
|
1971
1935
|
children: [
|
|
1972
|
-
/* @__PURE__ */ m(
|
|
1973
|
-
htmlFor:
|
|
1974
|
-
id: N,
|
|
1936
|
+
/* @__PURE__ */ m(tt, {
|
|
1937
|
+
htmlFor: j,
|
|
1975
1938
|
label: _,
|
|
1976
|
-
loading: v
|
|
1939
|
+
loading: v,
|
|
1940
|
+
onClick: () => M.current?.focus()
|
|
1977
1941
|
}),
|
|
1978
1942
|
/* @__PURE__ */ h("div", {
|
|
1979
|
-
className:
|
|
1980
|
-
children: [/* @__PURE__ */ h(
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
id: M,
|
|
1997
|
-
role: "combobox",
|
|
1998
|
-
ref: F,
|
|
1999
|
-
children: [/* @__PURE__ */ m("span", {
|
|
2000
|
-
...me,
|
|
2001
|
-
className: Z(Q.base.content, "breeze:text-start"),
|
|
2002
|
-
children: K.selectedItems[0]?.textValue ?? x
|
|
2003
|
-
}), /* @__PURE__ */ m(dt, {
|
|
1943
|
+
className: J.base.control,
|
|
1944
|
+
children: [/* @__PURE__ */ h(g, {
|
|
1945
|
+
className: Y(rn.base.trigger, S && rn.state.readOnlyTrigger, v && "breeze:!opacity-0"),
|
|
1946
|
+
isDisabled: O,
|
|
1947
|
+
ref: M,
|
|
1948
|
+
render: (e) => r("button", {
|
|
1949
|
+
...e,
|
|
1950
|
+
"aria-busy": v || void 0,
|
|
1951
|
+
"aria-disabled": S || void 0,
|
|
1952
|
+
"aria-invalid": k || void 0,
|
|
1953
|
+
"data-invalid": k || void 0,
|
|
1954
|
+
type: "button"
|
|
1955
|
+
}),
|
|
1956
|
+
children: [/* @__PURE__ */ m(Ae, {
|
|
1957
|
+
className: Y(Q.base.content, "breeze:text-start"),
|
|
1958
|
+
children: ({ isPlaceholder: e, selectedText: t }) => e ? x ?? "" : t
|
|
1959
|
+
}), /* @__PURE__ */ m(X, {
|
|
2004
1960
|
name: "expand",
|
|
2005
1961
|
size: "sm"
|
|
2006
1962
|
})]
|
|
2007
1963
|
}), v && /* @__PURE__ */ m("span", {
|
|
2008
|
-
className:
|
|
2009
|
-
children: /* @__PURE__ */ m(
|
|
1964
|
+
className: J.base.skeleton,
|
|
1965
|
+
children: /* @__PURE__ */ m(K, {
|
|
2010
1966
|
blockSize: "100%",
|
|
2011
1967
|
inlineSize: "100%",
|
|
2012
1968
|
label: T.loading,
|
|
@@ -2014,56 +1970,29 @@ function bn({ autoComplete: e, autoFocus: t, defaultValue: n, description: r, di
|
|
|
2014
1970
|
})
|
|
2015
1971
|
})]
|
|
2016
1972
|
}),
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
children: /* @__PURE__ */ h("label", {
|
|
2023
|
-
htmlFor: `${M}-autofill`,
|
|
2024
|
-
children: [_, /* @__PURE__ */ m("input", {
|
|
2025
|
-
autoComplete: e,
|
|
2026
|
-
form: o,
|
|
2027
|
-
id: `${M}-autofill`,
|
|
2028
|
-
name: y,
|
|
2029
|
-
onChange: (e) => Te(e.currentTarget.value),
|
|
2030
|
-
onInput: (e) => Te(e.currentTarget.value),
|
|
2031
|
-
readOnly: S || void 0,
|
|
2032
|
-
ref: ne,
|
|
2033
|
-
tabIndex: -1,
|
|
2034
|
-
type: "text",
|
|
2035
|
-
value: K.value ?? ""
|
|
2036
|
-
})]
|
|
2037
|
-
})
|
|
1973
|
+
/* @__PURE__ */ m(sn, {
|
|
1974
|
+
disabled: O,
|
|
1975
|
+
items: N,
|
|
1976
|
+
readOnly: S,
|
|
1977
|
+
triggerRef: M
|
|
2038
1978
|
}),
|
|
2039
|
-
/* @__PURE__ */ m(
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
children: /* @__PURE__ */ m(yn, {
|
|
2045
|
-
menuProps: fe,
|
|
2046
|
-
state: K
|
|
2047
|
-
})
|
|
1979
|
+
/* @__PURE__ */ m(on, {
|
|
1980
|
+
form: c,
|
|
1981
|
+
interactionDisabled: O,
|
|
1982
|
+
name: y,
|
|
1983
|
+
readOnly: S
|
|
2048
1984
|
}),
|
|
2049
|
-
/* @__PURE__ */ m(
|
|
2050
|
-
description:
|
|
2051
|
-
|
|
2052
|
-
error: v ? O : void 0,
|
|
2053
|
-
errorId: P,
|
|
1985
|
+
/* @__PURE__ */ m(nt, {
|
|
1986
|
+
description: E,
|
|
1987
|
+
error: D,
|
|
2054
1988
|
loading: v
|
|
2055
|
-
}),
|
|
2056
|
-
O && !v && /* @__PURE__ */ m("span", {
|
|
2057
|
-
className: X.base.error,
|
|
2058
|
-
id: P,
|
|
2059
|
-
children: O
|
|
2060
1989
|
})
|
|
2061
1990
|
]
|
|
2062
1991
|
});
|
|
2063
1992
|
}
|
|
2064
1993
|
//#endregion
|
|
2065
1994
|
//#region src/primitives/Separator/Separator.tsx
|
|
2066
|
-
var
|
|
1995
|
+
var ln = {
|
|
2067
1996
|
base: { separator: "breeze:m-0 breeze:shrink-0 breeze:border-0 breeze:bg-breeze-line breeze:forced-colors:bg-[CanvasText]" },
|
|
2068
1997
|
compound: {},
|
|
2069
1998
|
size: {},
|
|
@@ -2073,15 +2002,15 @@ var xn = {
|
|
|
2073
2002
|
vertical: "breeze:block-size-full breeze:inline-size-breeze-px"
|
|
2074
2003
|
}
|
|
2075
2004
|
};
|
|
2076
|
-
function
|
|
2005
|
+
function un({ orientation: e = "horizontal" }) {
|
|
2077
2006
|
return /* @__PURE__ */ m("hr", {
|
|
2078
2007
|
"aria-orientation": e,
|
|
2079
|
-
className: [
|
|
2008
|
+
className: [ln.base.separator, ln.variant[e]].join(" ")
|
|
2080
2009
|
});
|
|
2081
2010
|
}
|
|
2082
2011
|
//#endregion
|
|
2083
2012
|
//#region src/primitives/Stack/Stack.tsx
|
|
2084
|
-
var
|
|
2013
|
+
var dn = {
|
|
2085
2014
|
base: { stack: "breeze:flex breeze:min-inline-size-0 breeze:flex-col" },
|
|
2086
2015
|
compound: {},
|
|
2087
2016
|
size: {
|
|
@@ -2103,24 +2032,24 @@ var Cn = {
|
|
|
2103
2032
|
stretch: "breeze:items-stretch"
|
|
2104
2033
|
}
|
|
2105
2034
|
};
|
|
2106
|
-
function
|
|
2107
|
-
let { accessibleLabel: o, role: s } =
|
|
2035
|
+
function fn({ "aria-label": e, children: t, element: n = "div", gap: i = 3, horizontalAlign: a = "stretch" }) {
|
|
2036
|
+
let { accessibleLabel: o, role: s } = Qe(e, n);
|
|
2108
2037
|
return r(n, {
|
|
2109
2038
|
"aria-label": o,
|
|
2110
2039
|
className: [
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2040
|
+
dn.base.stack,
|
|
2041
|
+
dn.variant[a],
|
|
2042
|
+
dn.size[i]
|
|
2114
2043
|
].join(" "),
|
|
2115
2044
|
role: s
|
|
2116
2045
|
}, t);
|
|
2117
2046
|
}
|
|
2118
2047
|
//#endregion
|
|
2119
2048
|
//#region src/primitives/TextField/TextField.tsx
|
|
2120
|
-
function
|
|
2121
|
-
let { messages: b } =
|
|
2122
|
-
return /* @__PURE__ */ h(
|
|
2123
|
-
className:
|
|
2049
|
+
function pn({ autoComplete: e, autoFocus: t, defaultValue: n, description: r, disabled: i = !1, error: a, form: o, id: s, label: c, loading: l = !1, name: u, onChange: d, placeholder: f, readOnly: p = !1, ref: g, required: _ = !1, type: v = "text", value: y }) {
|
|
2050
|
+
let { messages: b } = G(), x = r?.trim() || void 0, S = a?.trim() || void 0, C = i || l;
|
|
2051
|
+
return /* @__PURE__ */ h(je, {
|
|
2052
|
+
className: J.base.root,
|
|
2124
2053
|
defaultValue: n,
|
|
2125
2054
|
"aria-label": l ? c : void 0,
|
|
2126
2055
|
id: s,
|
|
@@ -2134,23 +2063,23 @@ function Tn({ autoComplete: e, autoFocus: t, defaultValue: n, description: r, di
|
|
|
2134
2063
|
validationBehavior: "aria",
|
|
2135
2064
|
value: y,
|
|
2136
2065
|
children: [
|
|
2137
|
-
/* @__PURE__ */ m(
|
|
2066
|
+
/* @__PURE__ */ m(tt, {
|
|
2138
2067
|
label: c,
|
|
2139
2068
|
loading: l
|
|
2140
2069
|
}),
|
|
2141
2070
|
/* @__PURE__ */ h("span", {
|
|
2142
|
-
className:
|
|
2143
|
-
children: [/* @__PURE__ */ m(
|
|
2071
|
+
className: J.base.control,
|
|
2072
|
+
children: [/* @__PURE__ */ m(_e, {
|
|
2144
2073
|
"aria-busy": l || void 0,
|
|
2145
|
-
className:
|
|
2074
|
+
className: Y(J.base.input, l && J.state.loadingInput),
|
|
2146
2075
|
autoComplete: e,
|
|
2147
2076
|
autoFocus: t,
|
|
2148
2077
|
form: o,
|
|
2149
2078
|
placeholder: f,
|
|
2150
2079
|
ref: g
|
|
2151
2080
|
}), l && /* @__PURE__ */ m("span", {
|
|
2152
|
-
className:
|
|
2153
|
-
children: /* @__PURE__ */ m(
|
|
2081
|
+
className: J.base.skeleton,
|
|
2082
|
+
children: /* @__PURE__ */ m(K, {
|
|
2154
2083
|
blockSize: "100%",
|
|
2155
2084
|
inlineSize: "100%",
|
|
2156
2085
|
label: b.loading,
|
|
@@ -2158,7 +2087,7 @@ function Tn({ autoComplete: e, autoFocus: t, defaultValue: n, description: r, di
|
|
|
2158
2087
|
})
|
|
2159
2088
|
})]
|
|
2160
2089
|
}),
|
|
2161
|
-
/* @__PURE__ */ m(
|
|
2090
|
+
/* @__PURE__ */ m(nt, {
|
|
2162
2091
|
description: x,
|
|
2163
2092
|
error: S,
|
|
2164
2093
|
loading: l
|
|
@@ -2168,18 +2097,18 @@ function Tn({ autoComplete: e, autoFocus: t, defaultValue: n, description: r, di
|
|
|
2168
2097
|
}
|
|
2169
2098
|
//#endregion
|
|
2170
2099
|
//#region src/primitives/Toast/Toast.tsx
|
|
2171
|
-
var
|
|
2172
|
-
function
|
|
2100
|
+
var mn = 2600, hn = "BreezeProvider toastLimit must be a positive integer.", gn = "Toast components must be rendered within BreezeProvider.";
|
|
2101
|
+
function _n(e) {
|
|
2173
2102
|
return e.isIntersecting && e.intersectionRatio >= 1;
|
|
2174
2103
|
}
|
|
2175
|
-
function
|
|
2104
|
+
function vn(e, t, n, r) {
|
|
2176
2105
|
let i = Number(e.target.dataset.breezeToastId);
|
|
2177
|
-
t.has(i) && (
|
|
2106
|
+
t.has(i) && (_n(e) ? n(i) : r(i));
|
|
2178
2107
|
}
|
|
2179
|
-
var
|
|
2180
|
-
function
|
|
2181
|
-
|
|
2182
|
-
let t = a(
|
|
2108
|
+
var yn = n(null), bn = n(!0), xn = n(null);
|
|
2109
|
+
function Sn({ children: e }) {
|
|
2110
|
+
G();
|
|
2111
|
+
let t = a(bn), n = a(xn), [r, i] = d(() => n?.message ?? null);
|
|
2183
2112
|
return o(() => {
|
|
2184
2113
|
if (!t || typeof document < "u" && document.hidden || r === e) return;
|
|
2185
2114
|
let a = setTimeout(() => {
|
|
@@ -2197,15 +2126,15 @@ function Pn({ children: e }) {
|
|
|
2197
2126
|
"aria-live": "polite",
|
|
2198
2127
|
className: "breeze-toast",
|
|
2199
2128
|
role: "status",
|
|
2200
|
-
children: [/* @__PURE__ */ m(
|
|
2129
|
+
children: [/* @__PURE__ */ m(X, {
|
|
2201
2130
|
name: "check",
|
|
2202
2131
|
size: "sm"
|
|
2203
2132
|
}), /* @__PURE__ */ m("span", { children: r })]
|
|
2204
2133
|
});
|
|
2205
2134
|
}
|
|
2206
|
-
function
|
|
2207
|
-
let n =
|
|
2208
|
-
if (!Number.isInteger(t) || t < 1) throw RangeError(
|
|
2135
|
+
function Cn({ children: e, limit: t }) {
|
|
2136
|
+
let n = pt(), r = st(), a = u(null), [s, l] = d(() => typeof document > "u" || !document.hidden), [f, p] = d([]), g = u(0), _ = u(/* @__PURE__ */ new Map()), v = u(/* @__PURE__ */ new Set()), y = u(/* @__PURE__ */ new Map());
|
|
2137
|
+
if (!Number.isInteger(t) || t < 1) throw RangeError(hn);
|
|
2209
2138
|
let b = i((e, t) => {
|
|
2210
2139
|
let n = y.current.get(e);
|
|
2211
2140
|
n !== void 0 && (n.message = t);
|
|
@@ -2240,7 +2169,7 @@ function Fn({ children: e, limit: t }) {
|
|
|
2240
2169
|
if (!s || typeof document < "u" && document.hidden || t !== void 0 && t.handle !== null) return;
|
|
2241
2170
|
let n = t ?? {
|
|
2242
2171
|
handle: null,
|
|
2243
|
-
remaining:
|
|
2172
|
+
remaining: mn,
|
|
2244
2173
|
startedAt: null
|
|
2245
2174
|
};
|
|
2246
2175
|
if (n.remaining <= 0) {
|
|
@@ -2274,7 +2203,7 @@ function Fn({ children: e, limit: t }) {
|
|
|
2274
2203
|
}
|
|
2275
2204
|
let o, c = setTimeout(() => {
|
|
2276
2205
|
o = new IntersectionObserver((e) => {
|
|
2277
|
-
e.forEach((e) =>
|
|
2206
|
+
e.forEach((e) => vn(e, r, D, w));
|
|
2278
2207
|
}, { threshold: 1 }), Array.from(i.children).forEach((e) => {
|
|
2279
2208
|
e instanceof HTMLElement && e.dataset.breezeToastId !== void 0 && !e.hidden && o?.observe(e);
|
|
2280
2209
|
});
|
|
@@ -2292,11 +2221,11 @@ function Fn({ children: e, limit: t }) {
|
|
|
2292
2221
|
D
|
|
2293
2222
|
]), o(() => C, [C]);
|
|
2294
2223
|
let O = f.slice(0, t), k = new Set(O.map(({ id: e }) => e)), A = f.filter(({ id: e }) => k.has(e) || v.current.has(e));
|
|
2295
|
-
return /* @__PURE__ */ m(
|
|
2224
|
+
return /* @__PURE__ */ m(bn, {
|
|
2296
2225
|
value: s,
|
|
2297
|
-
children: /* @__PURE__ */ h(
|
|
2226
|
+
children: /* @__PURE__ */ h(yn, {
|
|
2298
2227
|
value: x,
|
|
2299
|
-
children: [e, n &&
|
|
2228
|
+
children: [e, n && Me(/* @__PURE__ */ m("div", {
|
|
2300
2229
|
ref: a,
|
|
2301
2230
|
className: "breeze-toast-region",
|
|
2302
2231
|
"data-breeze-toast-region": "",
|
|
@@ -2309,11 +2238,11 @@ function Fn({ children: e, limit: t }) {
|
|
|
2309
2238
|
"aria-hidden": n ? "true" : void 0,
|
|
2310
2239
|
"data-breeze-toast-id": e,
|
|
2311
2240
|
hidden: n,
|
|
2312
|
-
children: /* @__PURE__ */ m(
|
|
2241
|
+
children: /* @__PURE__ */ m(xn, {
|
|
2313
2242
|
value: y.current.get(e) ?? null,
|
|
2314
|
-
children: /* @__PURE__ */ m(
|
|
2243
|
+
children: /* @__PURE__ */ m(bn, {
|
|
2315
2244
|
value: s && !n,
|
|
2316
|
-
children: /* @__PURE__ */ m(
|
|
2245
|
+
children: /* @__PURE__ */ m(Sn, { children: t })
|
|
2317
2246
|
})
|
|
2318
2247
|
})
|
|
2319
2248
|
}, e);
|
|
@@ -2322,130 +2251,30 @@ function Fn({ children: e, limit: t }) {
|
|
|
2322
2251
|
})
|
|
2323
2252
|
});
|
|
2324
2253
|
}
|
|
2325
|
-
function
|
|
2326
|
-
let e = a(
|
|
2327
|
-
if (e === null) throw Error(
|
|
2254
|
+
function wn() {
|
|
2255
|
+
let e = a(yn);
|
|
2256
|
+
if (e === null) throw Error(gn);
|
|
2328
2257
|
return e;
|
|
2329
2258
|
}
|
|
2330
2259
|
//#endregion
|
|
2331
|
-
//#region src/primitives/Typography/Typography.tsx
|
|
2332
|
-
var Ln = {
|
|
2333
|
-
base: { text: "breeze:m-0 breeze:font-breeze-sans" },
|
|
2334
|
-
compound: {},
|
|
2335
|
-
size: {},
|
|
2336
|
-
state: {
|
|
2337
|
-
aligned: "breeze:block breeze:inline-size-full",
|
|
2338
|
-
inlineLoading: "breeze:inline-block",
|
|
2339
|
-
numeric: "breeze:tabular-nums breeze:tracking-breeze-tighter",
|
|
2340
|
-
truncate: "breeze:block breeze:min-inline-size-0 breeze:inline-size-full breeze:overflow-hidden breeze:text-ellipsis breeze:whitespace-nowrap"
|
|
2341
|
-
},
|
|
2342
|
-
variant: {
|
|
2343
|
-
align: {
|
|
2344
|
-
center: "breeze:text-center",
|
|
2345
|
-
end: "breeze:text-end",
|
|
2346
|
-
start: "breeze:text-start"
|
|
2347
|
-
},
|
|
2348
|
-
role: {
|
|
2349
|
-
body: "breeze:text-breeze-sm breeze:font-normal breeze:leading-breeze-snug",
|
|
2350
|
-
caption: "breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug",
|
|
2351
|
-
heading: "breeze:text-breeze-2xl breeze:font-semibold breeze:leading-breeze-tight",
|
|
2352
|
-
label: "breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug",
|
|
2353
|
-
micro: "breeze:text-breeze-2xs breeze:font-bold breeze:uppercase breeze:leading-breeze-snug breeze:tracking-breeze-caps",
|
|
2354
|
-
money: "breeze:text-breeze-4xl breeze:font-semibold breeze:leading-breeze-tight breeze:tracking-breeze-tightest breeze:tabular-nums",
|
|
2355
|
-
title: "breeze:text-breeze-md breeze:font-semibold breeze:leading-breeze-snug"
|
|
2356
|
-
},
|
|
2357
|
-
tone: {
|
|
2358
|
-
brand: "breeze:text-breeze-brand-text",
|
|
2359
|
-
danger: "breeze:text-breeze-danger",
|
|
2360
|
-
default: "breeze:text-breeze-ink",
|
|
2361
|
-
muted: "breeze:text-breeze-ink-3",
|
|
2362
|
-
positive: "breeze:text-breeze-pos",
|
|
2363
|
-
secondary: "breeze:text-breeze-ink-2",
|
|
2364
|
-
warning: "breeze:text-breeze-warn"
|
|
2365
|
-
}
|
|
2366
|
-
}
|
|
2367
|
-
};
|
|
2368
|
-
function Rn(e) {
|
|
2369
|
-
return e === "heading" ? "h2" : e === "title" ? "h3" : e === "body" ? "p" : "span";
|
|
2370
|
-
}
|
|
2371
|
-
function zn(e, t, n, r) {
|
|
2372
|
-
let i;
|
|
2373
|
-
try {
|
|
2374
|
-
i = new Intl.NumberFormat(n, {
|
|
2375
|
-
currency: t,
|
|
2376
|
-
signDisplay: r ?? "auto",
|
|
2377
|
-
style: "currency"
|
|
2378
|
-
}).formatToParts(e);
|
|
2379
|
-
} catch (t) {
|
|
2380
|
-
if (!(t instanceof RangeError)) throw t;
|
|
2381
|
-
i = new Intl.NumberFormat(n, { signDisplay: r ?? "auto" }).formatToParts(e);
|
|
2382
|
-
}
|
|
2383
|
-
return i.map((e) => e.type === "minusSign" ? "−" : e.value).join("");
|
|
2384
|
-
}
|
|
2385
|
-
function Bn(e, t, n) {
|
|
2386
|
-
let r;
|
|
2387
|
-
try {
|
|
2388
|
-
r = Ae(e).toDate("UTC");
|
|
2389
|
-
} catch {
|
|
2390
|
-
return e;
|
|
2391
|
-
}
|
|
2392
|
-
return new Intl.DateTimeFormat(t, {
|
|
2393
|
-
dateStyle: n ?? "long",
|
|
2394
|
-
timeZone: "UTC"
|
|
2395
|
-
}).format(r);
|
|
2396
|
-
}
|
|
2397
|
-
function Vn(e, t, n) {
|
|
2398
|
-
return e.loading ? /* @__PURE__ */ m(J, {
|
|
2399
|
-
blockSize: "1lh",
|
|
2400
|
-
inlineSize: "8em",
|
|
2401
|
-
label: n
|
|
2402
|
-
}) : e.format === "currency" ? zn(e.value, e.currency, t, e.sign ?? "auto") : e.format === "date" ? Bn(e.value, t, e.dateStyle) : e.children;
|
|
2403
|
-
}
|
|
2404
|
-
function Hn(e) {
|
|
2405
|
-
let { locale: t, messages: n } = q(), { "aria-label": i, align: a, children: o, element: s, format: c, id: l, loading: u = !1, numeric: d = !1, tone: f = "default", truncate: g = !1, variant: _ = "body" } = e, v = s ?? Rn(_), y = i?.trim() || void 0, b = a ?? (_ === "money" || d ? "end" : "start"), x = a !== void 0 || _ === "money" || d, S = Vn(e, t, n.loading), C = c !== void 0 || typeof o == "string" || typeof o == "number", w = !u && y !== void 0 && !C && [
|
|
2406
|
-
"h1",
|
|
2407
|
-
"h2",
|
|
2408
|
-
"h3",
|
|
2409
|
-
"h4"
|
|
2410
|
-
].includes(v), T = !u && y !== void 0 && !C && !w;
|
|
2411
|
-
return !u && y !== void 0 && C && (S = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
|
|
2412
|
-
"aria-hidden": "true",
|
|
2413
|
-
children: S
|
|
2414
|
-
}), /* @__PURE__ */ m(Re, { children: y })] })), r(v, {
|
|
2415
|
-
"aria-busy": u || void 0,
|
|
2416
|
-
"aria-label": T || w ? y : void 0,
|
|
2417
|
-
className: [
|
|
2418
|
-
Ln.base.text,
|
|
2419
|
-
Ln.variant.role[_],
|
|
2420
|
-
Ln.variant.tone[f],
|
|
2421
|
-
Ln.variant.align[b],
|
|
2422
|
-
x && Ln.state.aligned,
|
|
2423
|
-
u && v === "span" && !x && Ln.state.inlineLoading,
|
|
2424
|
-
d && _ !== "money" && Ln.state.numeric,
|
|
2425
|
-
g && Ln.state.truncate
|
|
2426
|
-
].filter(Boolean).join(" "),
|
|
2427
|
-
id: l,
|
|
2428
|
-
lang: t,
|
|
2429
|
-
role: T ? "group" : void 0
|
|
2430
|
-
}, S);
|
|
2431
|
-
}
|
|
2432
|
-
//#endregion
|
|
2433
2260
|
//#region src/provider/en-GB.ts
|
|
2434
|
-
var
|
|
2261
|
+
var Tn = {
|
|
2435
2262
|
appearance: "Appearance",
|
|
2436
2263
|
appearanceAutomatic: "Auto",
|
|
2437
2264
|
appearanceDark: "Dark",
|
|
2438
2265
|
appearanceLight: "Light",
|
|
2439
2266
|
close: "Close",
|
|
2440
|
-
loading: "Loading"
|
|
2267
|
+
loading: "Loading",
|
|
2268
|
+
required: "Required",
|
|
2269
|
+
selectDate: "Select a date"
|
|
2441
2270
|
};
|
|
2442
2271
|
//#endregion
|
|
2443
2272
|
//#region src/provider/BreezeProvider.tsx
|
|
2444
|
-
function
|
|
2273
|
+
function En(e, t) {
|
|
2445
2274
|
return e === "automatic" ? t ? "dark" : "light" : e;
|
|
2446
2275
|
}
|
|
2447
|
-
function
|
|
2448
|
-
let { direction: t, locale: n } =
|
|
2276
|
+
function Dn({ children: e }) {
|
|
2277
|
+
let { direction: t, locale: n } = Ce();
|
|
2449
2278
|
return /* @__PURE__ */ m("div", {
|
|
2450
2279
|
"data-breeze-root": "",
|
|
2451
2280
|
dir: t,
|
|
@@ -2453,8 +2282,8 @@ function Gn({ children: e }) {
|
|
|
2453
2282
|
children: e
|
|
2454
2283
|
});
|
|
2455
2284
|
}
|
|
2456
|
-
function
|
|
2457
|
-
let [p] = d(() => typeof window > "u" || !window.matchMedia ? null : window.matchMedia("(prefers-color-scheme: dark)")), [h, g] = d(() => p?.matches ?? !1), [_, v] = d(n), y = e ?? _, b =
|
|
2285
|
+
function On({ appearance: e, children: t, defaultAppearance: n = "automatic", locale: r, messages: a, onAppearanceChange: s, portalContainer: u, toastLimit: f = 3 }) {
|
|
2286
|
+
let [p] = d(() => typeof window > "u" || !window.matchMedia ? null : window.matchMedia("(prefers-color-scheme: dark)")), [h, g] = d(() => p?.matches ?? !1), [_, v] = d(n), y = e ?? _, b = En(y, h);
|
|
2458
2287
|
o(() => {
|
|
2459
2288
|
if (!p) return;
|
|
2460
2289
|
g(p.matches);
|
|
@@ -2471,20 +2300,22 @@ function Kn({ appearance: e, children: t, defaultAppearance: n = "automatic", lo
|
|
|
2471
2300
|
let x = i((t) => {
|
|
2472
2301
|
e === void 0 && v(t), s?.(t);
|
|
2473
2302
|
}, [e, s]), S = i((e) => a?.[e] === void 0 ? "en-GB" : r, [r, a]);
|
|
2474
|
-
return /* @__PURE__ */ m(
|
|
2303
|
+
return /* @__PURE__ */ m(Se, {
|
|
2475
2304
|
locale: r,
|
|
2476
|
-
children: /* @__PURE__ */ m(
|
|
2305
|
+
children: /* @__PURE__ */ m(Ne, {
|
|
2477
2306
|
value: l(() => ({
|
|
2478
2307
|
appearance: y,
|
|
2479
2308
|
getMessageLocale: S,
|
|
2480
2309
|
locale: r,
|
|
2481
2310
|
messages: {
|
|
2482
|
-
appearance: a?.appearance ??
|
|
2483
|
-
appearanceAutomatic: a?.appearanceAutomatic ??
|
|
2484
|
-
appearanceDark: a?.appearanceDark ??
|
|
2485
|
-
appearanceLight: a?.appearanceLight ??
|
|
2486
|
-
close: a?.close ??
|
|
2487
|
-
loading: a?.loading ??
|
|
2311
|
+
appearance: a?.appearance ?? Tn.appearance,
|
|
2312
|
+
appearanceAutomatic: a?.appearanceAutomatic ?? Tn.appearanceAutomatic,
|
|
2313
|
+
appearanceDark: a?.appearanceDark ?? Tn.appearanceDark,
|
|
2314
|
+
appearanceLight: a?.appearanceLight ?? Tn.appearanceLight,
|
|
2315
|
+
close: a?.close ?? Tn.close,
|
|
2316
|
+
loading: a?.loading ?? Tn.loading,
|
|
2317
|
+
required: a?.required ?? Tn.required,
|
|
2318
|
+
selectDate: a?.selectDate ?? Tn.selectDate
|
|
2488
2319
|
},
|
|
2489
2320
|
resolvedAppearance: b,
|
|
2490
2321
|
setAppearance: x
|
|
@@ -2496,18 +2327,18 @@ function Kn({ appearance: e, children: t, defaultAppearance: n = "automatic", lo
|
|
|
2496
2327
|
b,
|
|
2497
2328
|
x
|
|
2498
2329
|
]),
|
|
2499
|
-
children: /* @__PURE__ */ m(
|
|
2330
|
+
children: /* @__PURE__ */ m(ft, {
|
|
2500
2331
|
locale: r,
|
|
2501
2332
|
portalContainer: u,
|
|
2502
|
-
children: /* @__PURE__ */ m(
|
|
2333
|
+
children: /* @__PURE__ */ m(Cn, {
|
|
2503
2334
|
limit: f,
|
|
2504
|
-
children: /* @__PURE__ */ m(
|
|
2335
|
+
children: /* @__PURE__ */ m(Dn, { children: t })
|
|
2505
2336
|
})
|
|
2506
2337
|
})
|
|
2507
2338
|
})
|
|
2508
2339
|
});
|
|
2509
2340
|
}
|
|
2510
2341
|
//#endregion
|
|
2511
|
-
export {
|
|
2342
|
+
export { Le as AppearanceControl, He as Badge, On as BreezeProvider, We as Button, Ze as Calendar, et as Card, it as Checkbox, Dt as ComboBox, kt as Container, Vt as DatePicker, qt as Dialog, Jt as Drawer, Xt as Grid, X as Icon, Qt as IconTile, en as Inline, tn as NumberField, nn as Popover, cn as Select, un as Separator, K as Skeleton, fn as Stack, pn as TextField, Sn as Toast, Ft as Typography, Be as VisuallyHidden, wn as useToast };
|
|
2512
2343
|
|
|
2513
2344
|
//# sourceMappingURL=index.js.map
|