@motech-development/breeze-ui 4.5.0 → 4.6.1
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 +5 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +867 -414
- package/lib/index.js.map +1 -1
- package/lib/primitives/Collection/CollectionPopover.d.ts +15 -0
- package/lib/primitives/Collection/CollectionPopover.d.ts.map +1 -0
- package/lib/primitives/Collection/DescriptorContent.d.ts +9 -0
- package/lib/primitives/Collection/DescriptorContent.d.ts.map +1 -0
- package/lib/primitives/Collection/DescriptorOption.d.ts +7 -0
- package/lib/primitives/Collection/DescriptorOption.d.ts.map +1 -0
- package/lib/primitives/Collection/collection.styles.d.ts +19 -0
- package/lib/primitives/Collection/collection.styles.d.ts.map +1 -0
- package/lib/primitives/Collection/item.types.d.ts +18 -0
- package/lib/primitives/Collection/item.types.d.ts.map +1 -0
- package/lib/primitives/ComboBox/ComboBox.d.ts +62 -0
- package/lib/primitives/ComboBox/ComboBox.d.ts.map +1 -0
- package/lib/primitives/Field/field.presentation.d.ts +8 -2
- package/lib/primitives/Field/field.presentation.d.ts.map +1 -1
- package/lib/primitives/Select/Select.d.ts +59 -0
- package/lib/primitives/Select/Select.d.ts.map +1 -0
- package/lib/styles.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -10,28 +10,31 @@ import { CheckboxButton as b, CheckboxField as x } from "react-aria-components/C
|
|
|
10
10
|
import { FieldError as S } from "react-aria-components/FieldError";
|
|
11
11
|
import { Label as C } from "react-aria-components/Label";
|
|
12
12
|
import { Text as w } from "react-aria-components/Text";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { ComboBox as T, ComboBoxStateContext as E, useFilter as D } from "react-aria-components/ComboBox";
|
|
14
|
+
import { Group as O } from "react-aria-components/Group";
|
|
15
|
+
import { Input as k } from "react-aria-components/Input";
|
|
16
|
+
import { ListBox as A, ListBoxItem as j } from "react-aria-components/ListBox";
|
|
15
17
|
import { Popover as ee } from "react-aria-components/Popover";
|
|
16
|
-
import { UNSAFE_PortalProvider as
|
|
17
|
-
import { I18nProvider as
|
|
18
|
-
import { ArrowDownLeft as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { NumberField as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
18
|
+
import { UNSAFE_PortalProvider as M } from "react-aria/PortalProvider";
|
|
19
|
+
import { I18nProvider as N, useLocale as P } from "react-aria-components/I18nProvider";
|
|
20
|
+
import { ArrowDownLeft as te, ArrowUpRight as ne, Bell as F, Building2 as I, CalendarDays as L, Camera as R, Check as re, ChevronDown as z, ChevronLeft as B, ChevronRight as V, Clock3 as ie, Download as ae, Ellipsis as H, FileText as U, House as W, List as oe, LockKeyhole as se, LogOut as ce, Plus as le, Settings as ue, Trash2 as de, TriangleAlert as fe, Upload as pe, Users as me, X as he } from "lucide-react";
|
|
21
|
+
import { Dialog as ge } from "react-aria-components/Dialog";
|
|
22
|
+
import { Modal as _e, ModalOverlay as ve } from "react-aria-components/Modal";
|
|
23
|
+
import { NumberField as ye } from "react-aria-components/NumberField";
|
|
24
|
+
import { Select as be, SelectStateContext as xe, SelectValue as Se } from "react-aria-components/Select";
|
|
25
|
+
import { TextField as Ce } from "react-aria-components/TextField";
|
|
26
|
+
import { createPortal as we } from "react-dom";
|
|
27
|
+
import { parseDate as Te } from "@internationalized/date";
|
|
25
28
|
//#region src/provider/BreezeContext.ts
|
|
26
|
-
var
|
|
27
|
-
function
|
|
28
|
-
let e = a(
|
|
29
|
+
var Ee = n(null);
|
|
30
|
+
function G() {
|
|
31
|
+
let e = a(Ee);
|
|
29
32
|
if (e === null) throw Error("Breeze components must be rendered within BreezeProvider.");
|
|
30
33
|
return e;
|
|
31
34
|
}
|
|
32
35
|
//#endregion
|
|
33
36
|
//#region src/patterns/AppearanceControl/AppearanceControl.tsx
|
|
34
|
-
var
|
|
37
|
+
var De = {
|
|
35
38
|
base: {
|
|
36
39
|
control: "breeze:flex breeze:items-center breeze:gap-breeze-2 breeze:font-breeze-sans",
|
|
37
40
|
group: "breeze:flex breeze:items-center breeze:gap-breeze-2",
|
|
@@ -42,7 +45,7 @@ var H = {
|
|
|
42
45
|
size: {},
|
|
43
46
|
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" },
|
|
44
47
|
variant: {}
|
|
45
|
-
},
|
|
48
|
+
}, Oe = [
|
|
46
49
|
{
|
|
47
50
|
message: "appearanceLight",
|
|
48
51
|
value: "light"
|
|
@@ -56,30 +59,30 @@ var H = {
|
|
|
56
59
|
value: "dark"
|
|
57
60
|
}
|
|
58
61
|
];
|
|
59
|
-
function
|
|
60
|
-
return
|
|
62
|
+
function ke(e) {
|
|
63
|
+
return Oe.some((t) => t.value === e);
|
|
61
64
|
}
|
|
62
|
-
function
|
|
63
|
-
let { appearance: n, getMessageLocale: r, messages: i, setAppearance: a } =
|
|
65
|
+
function Ae() {
|
|
66
|
+
let { appearance: n, getMessageLocale: r, messages: i, setAppearance: a } = G();
|
|
64
67
|
return /* @__PURE__ */ h("div", {
|
|
65
|
-
className:
|
|
68
|
+
className: De.base.control,
|
|
66
69
|
children: [/* @__PURE__ */ m("span", {
|
|
67
|
-
className:
|
|
70
|
+
className: De.base.label,
|
|
68
71
|
lang: r("appearance"),
|
|
69
72
|
children: i.appearance
|
|
70
73
|
}), /* @__PURE__ */ m(t, {
|
|
71
74
|
"aria-label": i.appearance,
|
|
72
|
-
className:
|
|
75
|
+
className: De.base.group,
|
|
73
76
|
disallowEmptySelection: !0,
|
|
74
77
|
lang: r("appearance"),
|
|
75
78
|
onSelectionChange: (e) => {
|
|
76
79
|
let [t] = e;
|
|
77
|
-
|
|
80
|
+
ke(t) && a(t);
|
|
78
81
|
},
|
|
79
82
|
selectedKeys: [n],
|
|
80
83
|
selectionMode: "single",
|
|
81
|
-
children:
|
|
82
|
-
className: [
|
|
84
|
+
children: Oe.map((t) => /* @__PURE__ */ m(e, {
|
|
85
|
+
className: [De.base.option, De.state.selected].join(" "),
|
|
83
86
|
id: t.value,
|
|
84
87
|
lang: r(t.message),
|
|
85
88
|
children: i[t.message]
|
|
@@ -89,7 +92,7 @@ function Te() {
|
|
|
89
92
|
}
|
|
90
93
|
//#endregion
|
|
91
94
|
//#region src/primitives/Skeleton/Skeleton.tsx
|
|
92
|
-
var
|
|
95
|
+
var je = {
|
|
93
96
|
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]" },
|
|
94
97
|
compound: {},
|
|
95
98
|
size: {},
|
|
@@ -100,37 +103,37 @@ var Ee = {
|
|
|
100
103
|
text: "breeze:block-size-breeze-3 breeze:inline-size-full breeze:rounded-breeze-xs"
|
|
101
104
|
}
|
|
102
105
|
};
|
|
103
|
-
function
|
|
104
|
-
let { getMessageLocale: i, messages: a } =
|
|
106
|
+
function K({ blockSize: e, inlineSize: t, label: n, shape: r = "text" }) {
|
|
107
|
+
let { getMessageLocale: i, messages: a } = G(), o = n?.trim() || void 0, s = e ?? t ?? "0.75rem", c = {
|
|
105
108
|
blockSize: r === "circle" ? s : e,
|
|
106
109
|
inlineSize: r === "circle" ? s : t
|
|
107
110
|
};
|
|
108
111
|
return /* @__PURE__ */ m("progress", {
|
|
109
112
|
"aria-hidden": o === void 0 || void 0,
|
|
110
113
|
"aria-label": o,
|
|
111
|
-
className: [
|
|
114
|
+
className: [je.base.skeleton, je.variant[r]].join(" "),
|
|
112
115
|
lang: o === a.loading.trim() ? i("loading") : void 0,
|
|
113
116
|
style: c
|
|
114
117
|
});
|
|
115
118
|
}
|
|
116
119
|
//#endregion
|
|
117
120
|
//#region src/primitives/VisuallyHidden/VisuallyHidden.tsx
|
|
118
|
-
var
|
|
121
|
+
var Me = {
|
|
119
122
|
base: { hidden: "breeze:sr-only" },
|
|
120
123
|
compound: {},
|
|
121
124
|
size: {},
|
|
122
125
|
state: {},
|
|
123
126
|
variant: {}
|
|
124
127
|
};
|
|
125
|
-
function
|
|
128
|
+
function Ne({ children: e }) {
|
|
126
129
|
return /* @__PURE__ */ m("span", {
|
|
127
|
-
className:
|
|
130
|
+
className: Me.base.hidden,
|
|
128
131
|
children: e
|
|
129
132
|
});
|
|
130
133
|
}
|
|
131
134
|
//#endregion
|
|
132
135
|
//#region src/primitives/Badge/Badge.tsx
|
|
133
|
-
var
|
|
136
|
+
var Pe = {
|
|
134
137
|
base: {
|
|
135
138
|
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",
|
|
136
139
|
content: "breeze:[grid-area:1/1]",
|
|
@@ -147,29 +150,29 @@ var W = {
|
|
|
147
150
|
warning: "breeze:bg-breeze-warn-soft breeze:text-breeze-warn"
|
|
148
151
|
}
|
|
149
152
|
};
|
|
150
|
-
function
|
|
151
|
-
let { messages: i } =
|
|
153
|
+
function Fe({ "aria-label": e, children: t, loading: n = !1, variant: r = "neutral" }) {
|
|
154
|
+
let { messages: i } = G(), a = e?.trim() || void 0, o;
|
|
152
155
|
return n ? o = /* @__PURE__ */ m("span", {
|
|
153
|
-
className:
|
|
154
|
-
children: /* @__PURE__ */ m(
|
|
156
|
+
className: Pe.base.skeleton,
|
|
157
|
+
children: /* @__PURE__ */ m(K, {
|
|
155
158
|
blockSize: 8,
|
|
156
159
|
inlineSize: "100%",
|
|
157
160
|
label: i.loading,
|
|
158
161
|
shape: "rectangle"
|
|
159
162
|
})
|
|
160
|
-
}) : a !== void 0 && (o = /* @__PURE__ */ m(
|
|
163
|
+
}) : a !== void 0 && (o = /* @__PURE__ */ m(Ne, { children: a })), /* @__PURE__ */ h("span", {
|
|
161
164
|
"aria-busy": n || void 0,
|
|
162
|
-
className: [
|
|
165
|
+
className: [Pe.base.badge, Pe.variant[r]].join(" "),
|
|
163
166
|
children: [/* @__PURE__ */ m("span", {
|
|
164
167
|
"aria-hidden": n || a !== void 0 ? !0 : void 0,
|
|
165
|
-
className: [
|
|
168
|
+
className: [Pe.base.content, n && Pe.state.contentLoading].filter(Boolean).join(" "),
|
|
166
169
|
children: t
|
|
167
170
|
}), o]
|
|
168
171
|
});
|
|
169
172
|
}
|
|
170
173
|
//#endregion
|
|
171
174
|
//#region src/primitives/Button/Button.tsx
|
|
172
|
-
var
|
|
175
|
+
var q = {
|
|
173
176
|
base: {
|
|
174
177
|
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",
|
|
175
178
|
label: "breeze:[grid-area:1/1]",
|
|
@@ -199,23 +202,23 @@ var G = {
|
|
|
199
202
|
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"
|
|
200
203
|
}
|
|
201
204
|
};
|
|
202
|
-
function
|
|
203
|
-
let e = v(_), { getMessageLocale: t, messages: n } =
|
|
205
|
+
function Ie() {
|
|
206
|
+
let e = v(_), { getMessageLocale: t, messages: n } = G();
|
|
204
207
|
return /* @__PURE__ */ m("progress", {
|
|
205
208
|
"aria-label": n.loading,
|
|
206
|
-
className:
|
|
209
|
+
className: q.state.loadingStatus,
|
|
207
210
|
id: e?.id,
|
|
208
211
|
lang: t("loading")
|
|
209
212
|
});
|
|
210
213
|
}
|
|
211
|
-
function
|
|
212
|
-
|
|
214
|
+
function Le({ "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" }) {
|
|
215
|
+
G();
|
|
213
216
|
let C = [
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
c &&
|
|
218
|
-
d &&
|
|
217
|
+
q.base.button,
|
|
218
|
+
q.variant[S],
|
|
219
|
+
q.size[y],
|
|
220
|
+
c && q.state.disabled,
|
|
221
|
+
d && q.state.loading
|
|
219
222
|
].filter(Boolean).join(" ");
|
|
220
223
|
return /* @__PURE__ */ h(g, {
|
|
221
224
|
"aria-controls": e,
|
|
@@ -241,18 +244,18 @@ function je({ "aria-controls": e, "aria-describedby": t, "aria-expanded": n, "ar
|
|
|
241
244
|
type: b,
|
|
242
245
|
value: x,
|
|
243
246
|
children: [/* @__PURE__ */ m("span", {
|
|
244
|
-
className: [
|
|
247
|
+
className: [q.base.label, d && q.state.loadingLabel].filter(Boolean).join(" "),
|
|
245
248
|
children: s
|
|
246
|
-
}), d && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(
|
|
249
|
+
}), d && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(Ie, {}), /* @__PURE__ */ m("span", {
|
|
247
250
|
"aria-hidden": "true",
|
|
248
|
-
className: [
|
|
251
|
+
className: [q.base.skeleton, q.compound.loading[S]].join(" "),
|
|
249
252
|
"data-breeze-skeleton": ""
|
|
250
253
|
})] })]
|
|
251
254
|
});
|
|
252
255
|
}
|
|
253
256
|
//#endregion
|
|
254
257
|
//#region src/primitives/layout.accessibility.ts
|
|
255
|
-
function
|
|
258
|
+
function Re(e, t) {
|
|
256
259
|
let n = e?.trim() || void 0;
|
|
257
260
|
return {
|
|
258
261
|
accessibleLabel: n,
|
|
@@ -261,7 +264,7 @@ function K(e, t) {
|
|
|
261
264
|
}
|
|
262
265
|
//#endregion
|
|
263
266
|
//#region src/primitives/Card/Card.tsx
|
|
264
|
-
var
|
|
267
|
+
var ze = {
|
|
265
268
|
base: { card: "breeze:min-inline-size-0 breeze:rounded-breeze-panel breeze:border breeze:border-solid breeze:border-breeze-line breeze:shadow-breeze-panel" },
|
|
266
269
|
compound: {},
|
|
267
270
|
size: {
|
|
@@ -281,22 +284,22 @@ var Me = {
|
|
|
281
284
|
surface: "breeze:bg-breeze-surface"
|
|
282
285
|
}
|
|
283
286
|
};
|
|
284
|
-
function
|
|
285
|
-
let { accessibleLabel: s, role: c } =
|
|
287
|
+
function Be({ "aria-label": e, children: t, clipped: n = !0, element: i = "div", padding: a = 4, variant: o = "surface" }) {
|
|
288
|
+
let { accessibleLabel: s, role: c } = Re(e, i);
|
|
286
289
|
return r(i, {
|
|
287
290
|
"aria-label": s,
|
|
288
291
|
className: [
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
n &&
|
|
292
|
+
ze.base.card,
|
|
293
|
+
ze.variant[o],
|
|
294
|
+
ze.size[a],
|
|
295
|
+
n && ze.state.clipped
|
|
293
296
|
].filter(Boolean).join(" "),
|
|
294
297
|
role: c
|
|
295
298
|
}, t);
|
|
296
299
|
}
|
|
297
300
|
//#endregion
|
|
298
301
|
//#region src/primitives/Field/field.styles.ts
|
|
299
|
-
var
|
|
302
|
+
var J = {
|
|
300
303
|
base: {
|
|
301
304
|
control: "breeze:relative breeze:inline-grid breeze:min-inline-size-0 breeze:inline-size-full",
|
|
302
305
|
description: "breeze:m-0 breeze:text-breeze-xs breeze:font-normal breeze:leading-breeze-snug breeze:text-breeze-ink-3",
|
|
@@ -311,46 +314,52 @@ var q = {
|
|
|
311
314
|
state: { loadingInput: "breeze:!opacity-0" },
|
|
312
315
|
variant: {}
|
|
313
316
|
};
|
|
314
|
-
function
|
|
317
|
+
function Y(...e) {
|
|
315
318
|
return e.filter(Boolean).join(" ");
|
|
316
319
|
}
|
|
317
320
|
//#endregion
|
|
318
321
|
//#region src/primitives/Field/field.presentation.tsx
|
|
319
|
-
function
|
|
322
|
+
function Ve({ htmlFor: e, id: t, label: n, loading: r, onClick: i }) {
|
|
320
323
|
return /* @__PURE__ */ m(C, {
|
|
321
|
-
className:
|
|
322
|
-
|
|
324
|
+
className: J.base.label,
|
|
325
|
+
htmlFor: e,
|
|
326
|
+
id: t,
|
|
327
|
+
onClick: i,
|
|
328
|
+
children: r ? /* @__PURE__ */ m(K, {
|
|
323
329
|
blockSize: "1lh",
|
|
324
330
|
inlineSize: "12em",
|
|
325
331
|
shape: "rectangle"
|
|
326
|
-
}) :
|
|
332
|
+
}) : n
|
|
327
333
|
});
|
|
328
334
|
}
|
|
329
|
-
function
|
|
335
|
+
function He({ description: e, descriptionId: t, error: n, errorId: r, loading: i }) {
|
|
330
336
|
return /* @__PURE__ */ h(p, { children: [e && /* @__PURE__ */ m(w, {
|
|
331
|
-
className:
|
|
337
|
+
className: J.base.description,
|
|
338
|
+
id: t,
|
|
332
339
|
slot: "description",
|
|
333
|
-
children:
|
|
340
|
+
children: i ? /* @__PURE__ */ m(K, {
|
|
334
341
|
blockSize: "1lh",
|
|
335
342
|
inlineSize: "12em",
|
|
336
343
|
shape: "rectangle"
|
|
337
344
|
}) : e
|
|
338
|
-
}),
|
|
345
|
+
}), n && (i ? /* @__PURE__ */ m("span", {
|
|
339
346
|
"aria-hidden": "true",
|
|
340
|
-
className:
|
|
341
|
-
|
|
347
|
+
className: J.base.error,
|
|
348
|
+
id: r,
|
|
349
|
+
children: /* @__PURE__ */ m(K, {
|
|
342
350
|
blockSize: "1lh",
|
|
343
351
|
inlineSize: "12em",
|
|
344
352
|
shape: "rectangle"
|
|
345
353
|
})
|
|
346
354
|
}) : /* @__PURE__ */ m(S, {
|
|
347
|
-
className:
|
|
348
|
-
|
|
355
|
+
className: J.base.error,
|
|
356
|
+
id: r,
|
|
357
|
+
children: n
|
|
349
358
|
}))] });
|
|
350
359
|
}
|
|
351
360
|
//#endregion
|
|
352
361
|
//#region src/primitives/Checkbox/Checkbox.tsx
|
|
353
|
-
var
|
|
362
|
+
var Ue = {
|
|
354
363
|
base: {
|
|
355
364
|
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",
|
|
356
365
|
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",
|
|
@@ -363,10 +372,10 @@ var Y = {
|
|
|
363
372
|
state: {},
|
|
364
373
|
variant: {}
|
|
365
374
|
};
|
|
366
|
-
function
|
|
367
|
-
let { messages: v } =
|
|
375
|
+
function We({ 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: _ }) {
|
|
376
|
+
let { messages: v } = G(), S = y(d), C = t?.trim() || void 0, w = r?.trim() || void 0, T = n || s;
|
|
368
377
|
return /* @__PURE__ */ h(x, {
|
|
369
|
-
className:
|
|
378
|
+
className: J.base.root,
|
|
370
379
|
defaultSelected: e,
|
|
371
380
|
form: i,
|
|
372
381
|
id: a,
|
|
@@ -382,18 +391,18 @@ function Ie({ defaultSelected: e, description: t, disabled: n = !1, error: r, fo
|
|
|
382
391
|
value: _,
|
|
383
392
|
validationBehavior: "aria",
|
|
384
393
|
children: [/* @__PURE__ */ m(b, {
|
|
385
|
-
className:
|
|
394
|
+
className: Ue.base.control,
|
|
386
395
|
children: ({ isFocusVisible: e, isSelected: t }) => /* @__PURE__ */ h(p, { children: [s && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
|
|
387
396
|
"aria-hidden": "true",
|
|
388
|
-
className:
|
|
389
|
-
children: /* @__PURE__ */ m(
|
|
397
|
+
className: Ue.base.skeletonIndicator,
|
|
398
|
+
children: /* @__PURE__ */ m(K, {
|
|
390
399
|
blockSize: "100%",
|
|
391
400
|
inlineSize: "100%",
|
|
392
401
|
shape: "rectangle"
|
|
393
402
|
})
|
|
394
403
|
}), /* @__PURE__ */ m("span", {
|
|
395
|
-
className:
|
|
396
|
-
children: /* @__PURE__ */ m(
|
|
404
|
+
className: Ue.base.skeleton,
|
|
405
|
+
children: /* @__PURE__ */ m(K, {
|
|
397
406
|
blockSize: "1lh",
|
|
398
407
|
inlineSize: "12em",
|
|
399
408
|
label: v.loading,
|
|
@@ -401,15 +410,15 @@ function Ie({ defaultSelected: e, description: t, disabled: n = !1, error: r, fo
|
|
|
401
410
|
})
|
|
402
411
|
})] }), !s && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
|
|
403
412
|
"aria-hidden": "true",
|
|
404
|
-
className:
|
|
413
|
+
className: Ue.base.indicator,
|
|
405
414
|
"data-focus-visible": e || void 0,
|
|
406
415
|
"data-selected": t || void 0,
|
|
407
416
|
children: t ? "✓" : ""
|
|
408
417
|
}), /* @__PURE__ */ m("span", {
|
|
409
|
-
className:
|
|
418
|
+
className: Ue.base.label,
|
|
410
419
|
children: o
|
|
411
420
|
})] })] })
|
|
412
|
-
}), /* @__PURE__ */ m(
|
|
421
|
+
}), /* @__PURE__ */ m(He, {
|
|
413
422
|
description: C,
|
|
414
423
|
error: w,
|
|
415
424
|
loading: s
|
|
@@ -417,33 +426,26 @@ function Ie({ defaultSelected: e, description: t, disabled: n = !1, error: r, fo
|
|
|
417
426
|
});
|
|
418
427
|
}
|
|
419
428
|
//#endregion
|
|
420
|
-
//#region src/primitives/
|
|
421
|
-
var
|
|
422
|
-
base: {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
429
|
+
//#region src/primitives/Collection/collection.styles.ts
|
|
430
|
+
var X = {
|
|
431
|
+
base: {
|
|
432
|
+
badge: "breeze:ms-auto",
|
|
433
|
+
content: "breeze:flex breeze:min-inline-size-0 breeze:flex-1 breeze:flex-col breeze:gap-breeze-1",
|
|
434
|
+
description: "breeze:text-breeze-xs breeze:font-normal breeze:leading-breeze-snug breeze:text-breeze-ink-3",
|
|
435
|
+
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",
|
|
436
|
+
label: "breeze:font-medium",
|
|
437
|
+
listBox: "breeze:min-inline-size-0 breeze:outline-none",
|
|
438
|
+
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",
|
|
439
|
+
selectedIndicator: "breeze:ms-auto breeze:block-size-breeze-4 breeze:inline-size-breeze-4 breeze:shrink-0 breeze:text-breeze-brand-text"
|
|
428
440
|
},
|
|
429
|
-
|
|
441
|
+
compound: {},
|
|
442
|
+
size: {},
|
|
443
|
+
state: {},
|
|
430
444
|
variant: {}
|
|
431
445
|
};
|
|
432
|
-
function Re({ "aria-label": e, children: t, element: n = "div", padded: i = !0, width: a = "page" }) {
|
|
433
|
-
let { accessibleLabel: o, role: s } = K(e, n);
|
|
434
|
-
return r(n, {
|
|
435
|
-
"aria-label": o,
|
|
436
|
-
className: [
|
|
437
|
-
Le.base.container,
|
|
438
|
-
Le.size[a],
|
|
439
|
-
i && Le.state.padded
|
|
440
|
-
].filter(Boolean).join(" "),
|
|
441
|
-
role: s
|
|
442
|
-
}, t);
|
|
443
|
-
}
|
|
444
446
|
//#endregion
|
|
445
447
|
//#region src/overlays/OverlayStack.ts
|
|
446
|
-
function
|
|
448
|
+
function Ge() {
|
|
447
449
|
let e = [], t = /* @__PURE__ */ new Set(), n = () => t.forEach((e) => e());
|
|
448
450
|
return {
|
|
449
451
|
getSnapshot: () => e,
|
|
@@ -459,15 +461,15 @@ function ze() {
|
|
|
459
461
|
})
|
|
460
462
|
};
|
|
461
463
|
}
|
|
462
|
-
var
|
|
463
|
-
function
|
|
464
|
-
let e = a(
|
|
464
|
+
var Ke = n(null);
|
|
465
|
+
function qe() {
|
|
466
|
+
let e = a(Ke);
|
|
465
467
|
if (!e) throw Error("Breeze components must be rendered within BreezeProvider.");
|
|
466
468
|
return 100 + f(e.subscribe, e.getSnapshot, e.getSnapshot).length * 2;
|
|
467
469
|
}
|
|
468
|
-
var
|
|
469
|
-
function
|
|
470
|
-
let r = a(
|
|
470
|
+
var Je = n(null);
|
|
471
|
+
function Ye(e, t, n) {
|
|
472
|
+
let r = a(Ke), i = a(Je), o = s();
|
|
471
473
|
if (!r) throw Error("Breeze components must be rendered within BreezeProvider.");
|
|
472
474
|
let l = f(r.subscribe, r.getSnapshot, r.getSnapshot), u = i?.id;
|
|
473
475
|
c(() => () => r.remove(o), [o, r]), c(() => {
|
|
@@ -506,12 +508,12 @@ function Ue(e, t, n) {
|
|
|
506
508
|
}
|
|
507
509
|
//#endregion
|
|
508
510
|
//#region src/overlays/OverlayProvider.tsx
|
|
509
|
-
var
|
|
510
|
-
function
|
|
511
|
-
let { direction: r } =
|
|
511
|
+
var Xe = n(null), Ze = "BreezeProvider portalContainer must belong to the current document and light DOM.";
|
|
512
|
+
function Qe({ children: e, portalContainer: t, locale: n }) {
|
|
513
|
+
let { direction: r } = P(), [i] = d(Ge), [a, o] = d(null);
|
|
512
514
|
return c(() => {
|
|
513
515
|
let e = t ?? document.body;
|
|
514
|
-
if (e.ownerDocument !== document || e.getRootNode() !== document) throw Error(
|
|
516
|
+
if (e.ownerDocument !== document || e.getRootNode() !== document) throw Error(Ze);
|
|
515
517
|
let n = e.ownerDocument.createElement("div");
|
|
516
518
|
return n.dataset.breezeRoot = "", n.dataset.breezePortal = "", e.append(n), o(n), () => n.remove();
|
|
517
519
|
}, [t]), c(() => {
|
|
@@ -520,23 +522,401 @@ function Ke({ children: e, portalContainer: t, locale: n }) {
|
|
|
520
522
|
r,
|
|
521
523
|
a,
|
|
522
524
|
n
|
|
523
|
-
]), /* @__PURE__ */ m(
|
|
525
|
+
]), /* @__PURE__ */ m(M, {
|
|
524
526
|
getContainer: () => a,
|
|
525
|
-
children: /* @__PURE__ */ m(
|
|
527
|
+
children: /* @__PURE__ */ m(Ke, {
|
|
526
528
|
value: i,
|
|
527
|
-
children: /* @__PURE__ */ m(
|
|
529
|
+
children: /* @__PURE__ */ m(Xe, {
|
|
528
530
|
value: a,
|
|
529
531
|
children: e
|
|
530
532
|
})
|
|
531
533
|
})
|
|
532
534
|
});
|
|
533
535
|
}
|
|
534
|
-
function
|
|
535
|
-
return a(
|
|
536
|
+
function $e() {
|
|
537
|
+
return a(Xe);
|
|
538
|
+
}
|
|
539
|
+
//#endregion
|
|
540
|
+
//#region src/primitives/Collection/CollectionPopover.tsx
|
|
541
|
+
var et = "Breeze overlay triggers and portal containers must belong to the current document and light DOM.";
|
|
542
|
+
function tt(e) {
|
|
543
|
+
return typeof e == "object" && !!e && "nodeType" in e && typeof e.contains == "function";
|
|
544
|
+
}
|
|
545
|
+
function nt({ children: e, className: t, isOpen: n, onOpenChange: r, triggerRef: s }) {
|
|
546
|
+
let l = $e(), f = a(Je), p = f?.open ?? !0, [h, g] = d(f === null), [_, v] = d(!1), y = u(!1), b = u(null), x = u(null), S = u(null), C = n && p, w = Ye("popover", C && h && l !== null, C || _), T = i((e) => {
|
|
547
|
+
b.current = e, v(e !== null);
|
|
548
|
+
}, []);
|
|
549
|
+
return c(() => {
|
|
550
|
+
if (l && s.current && (s.current.ownerDocument !== document || s.current.getRootNode() !== document || l.ownerDocument !== document || l.getRootNode() !== document)) throw Error(et);
|
|
551
|
+
}), o(() => g(!0), []), c(() => {
|
|
552
|
+
if (!C || !w.topmost || !l) return;
|
|
553
|
+
let e = (e) => tt(e) && !b.current?.contains(e) && !s.current?.contains(e), t = (e, t) => !!e && !!t && (e === t || e.contains(t) || t.contains(e)), n = (e) => e.button === 0, i = null, a = () => {
|
|
554
|
+
i !== null && (clearTimeout(i), i = null);
|
|
555
|
+
}, o = () => {
|
|
556
|
+
a(), i = setTimeout(() => {
|
|
557
|
+
i = null, S.current = null;
|
|
558
|
+
}, 0);
|
|
559
|
+
}, c = (e) => {
|
|
560
|
+
n(e) && (a(), x.current = tt(e.target) ? e.target : null, S.current = null);
|
|
561
|
+
}, u = (t) => {
|
|
562
|
+
if (!n(t)) return;
|
|
563
|
+
let i = x.current, a = tt(t.target) ? t.target : null;
|
|
564
|
+
if (!e(a)) {
|
|
565
|
+
x.current = null;
|
|
566
|
+
return;
|
|
567
|
+
}
|
|
568
|
+
if (!e(i)) {
|
|
569
|
+
S.current = a, x.current = null, o();
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
S.current = a, r(!1);
|
|
573
|
+
}, d = () => {
|
|
574
|
+
a(), x.current = null, S.current = null;
|
|
575
|
+
}, f = (n) => {
|
|
576
|
+
let i = tt(n.target) ? n.target : null;
|
|
577
|
+
e(i) && !t(S.current, i) && r(!1), a(), x.current = null, S.current = null;
|
|
578
|
+
};
|
|
579
|
+
return l.ownerDocument.addEventListener("pointerdown", c, !0), l.ownerDocument.addEventListener("pointerup", u, !0), l.ownerDocument.addEventListener("pointercancel", d, !0), l.ownerDocument.addEventListener("click", f, !0), () => {
|
|
580
|
+
l.ownerDocument.removeEventListener("pointerdown", c, !0), l.ownerDocument.removeEventListener("pointerup", u, !0), l.ownerDocument.removeEventListener("pointercancel", d, !0), l.ownerDocument.removeEventListener("click", f, !0), a(), x.current = null, S.current = null;
|
|
581
|
+
};
|
|
582
|
+
}, [
|
|
583
|
+
l,
|
|
584
|
+
w.topmost,
|
|
585
|
+
r,
|
|
586
|
+
C,
|
|
587
|
+
s
|
|
588
|
+
]), o(() => {
|
|
589
|
+
p ? y.current = !1 : n && !y.current && (y.current = !0, r(!1));
|
|
590
|
+
}, [
|
|
591
|
+
r,
|
|
592
|
+
p,
|
|
593
|
+
n
|
|
594
|
+
]), /* @__PURE__ */ m(ee, {
|
|
595
|
+
className: `${t} breeze-popover`,
|
|
596
|
+
"data-breeze-interactive": w.interactive,
|
|
597
|
+
"data-breeze-overlay": "popover",
|
|
598
|
+
"data-breeze-topmost": w.topmost,
|
|
599
|
+
inert: !w.interactive,
|
|
600
|
+
isKeyboardDismissDisabled: !w.topmost,
|
|
601
|
+
isNonModal: !0,
|
|
602
|
+
isOpen: C,
|
|
603
|
+
onOpenChange: r,
|
|
604
|
+
placement: "bottom start",
|
|
605
|
+
shouldCloseOnInteractOutside: (e) => x.current === null && w.topmost && !s.current?.contains(e),
|
|
606
|
+
style: { zIndex: w.zIndex },
|
|
607
|
+
triggerRef: s,
|
|
608
|
+
ref: T,
|
|
609
|
+
children: e
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
//#endregion
|
|
613
|
+
//#region src/primitives/Icon/Icon.tsx
|
|
614
|
+
var rt = {
|
|
615
|
+
add: le,
|
|
616
|
+
back: B,
|
|
617
|
+
building: I,
|
|
618
|
+
calendar: L,
|
|
619
|
+
camera: R,
|
|
620
|
+
check: re,
|
|
621
|
+
clock: ie,
|
|
622
|
+
close: he,
|
|
623
|
+
delete: de,
|
|
624
|
+
document: U,
|
|
625
|
+
download: ae,
|
|
626
|
+
expand: z,
|
|
627
|
+
forward: V,
|
|
628
|
+
lock: se,
|
|
629
|
+
money: oe,
|
|
630
|
+
moneyIn: te,
|
|
631
|
+
moneyOut: ne,
|
|
632
|
+
more: H,
|
|
633
|
+
next: V,
|
|
634
|
+
notifications: F,
|
|
635
|
+
overview: W,
|
|
636
|
+
people: me,
|
|
637
|
+
settings: ue,
|
|
638
|
+
signOut: ce,
|
|
639
|
+
upload: pe,
|
|
640
|
+
warning: fe
|
|
641
|
+
}, it = {
|
|
642
|
+
base: { icon: "breeze:block breeze:shrink-0" },
|
|
643
|
+
compound: {},
|
|
644
|
+
size: {
|
|
645
|
+
lg: "breeze:block-size-breeze-6 breeze:inline-size-breeze-6",
|
|
646
|
+
md: "breeze:block-size-breeze-5 breeze:inline-size-breeze-5",
|
|
647
|
+
sm: "breeze:block-size-breeze-4 breeze:inline-size-breeze-4"
|
|
648
|
+
},
|
|
649
|
+
state: { logicalDirection: "breeze:rtl:rotate-180" },
|
|
650
|
+
variant: {}
|
|
651
|
+
}, at = /* @__PURE__ */ new Set([
|
|
652
|
+
"back",
|
|
653
|
+
"forward",
|
|
654
|
+
"next"
|
|
655
|
+
]);
|
|
656
|
+
function ot({ label: e, name: t, size: n = "md" }) {
|
|
657
|
+
let r = rt[t], i = e?.trim() || void 0;
|
|
658
|
+
return /* @__PURE__ */ m(r, {
|
|
659
|
+
"aria-hidden": i === void 0 || void 0,
|
|
660
|
+
"aria-label": i,
|
|
661
|
+
className: [
|
|
662
|
+
it.base.icon,
|
|
663
|
+
it.size[n],
|
|
664
|
+
at.has(t) && it.state.logicalDirection
|
|
665
|
+
].filter(Boolean).join(" "),
|
|
666
|
+
focusable: "false",
|
|
667
|
+
role: i === void 0 ? void 0 : "img",
|
|
668
|
+
strokeWidth: 1.75
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
//#endregion
|
|
672
|
+
//#region src/primitives/Collection/DescriptorContent.tsx
|
|
673
|
+
function st({ descriptor: e, isSelected: t }) {
|
|
674
|
+
return /* @__PURE__ */ h(p, { children: [
|
|
675
|
+
e.icon && /* @__PURE__ */ m(ot, {
|
|
676
|
+
name: e.icon,
|
|
677
|
+
size: "sm"
|
|
678
|
+
}),
|
|
679
|
+
/* @__PURE__ */ h("span", {
|
|
680
|
+
className: X.base.content,
|
|
681
|
+
children: [/* @__PURE__ */ m("span", {
|
|
682
|
+
className: X.base.label,
|
|
683
|
+
children: e.label
|
|
684
|
+
}), e.description && /* @__PURE__ */ m("span", {
|
|
685
|
+
className: X.base.description,
|
|
686
|
+
children: e.description
|
|
687
|
+
})]
|
|
688
|
+
}),
|
|
689
|
+
e.badge && /* @__PURE__ */ m("span", {
|
|
690
|
+
className: X.base.badge,
|
|
691
|
+
children: /* @__PURE__ */ m(Fe, {
|
|
692
|
+
"aria-label": e.badge["aria-label"],
|
|
693
|
+
variant: e.badge.variant,
|
|
694
|
+
children: e.badge.children
|
|
695
|
+
})
|
|
696
|
+
}),
|
|
697
|
+
/* @__PURE__ */ m("span", {
|
|
698
|
+
"aria-hidden": "true",
|
|
699
|
+
className: X.base.selectedIndicator,
|
|
700
|
+
children: t && /* @__PURE__ */ m(ot, {
|
|
701
|
+
name: "check",
|
|
702
|
+
size: "sm"
|
|
703
|
+
})
|
|
704
|
+
})
|
|
705
|
+
] });
|
|
706
|
+
}
|
|
707
|
+
//#endregion
|
|
708
|
+
//#region src/primitives/Collection/DescriptorOption.tsx
|
|
709
|
+
function ct({ descriptor: e }) {
|
|
710
|
+
return /* @__PURE__ */ m(j, {
|
|
711
|
+
className: X.base.item,
|
|
712
|
+
id: e.id,
|
|
713
|
+
isDisabled: e.disabled,
|
|
714
|
+
textValue: e.label,
|
|
715
|
+
children: ({ isSelected: t }) => /* @__PURE__ */ m(st, {
|
|
716
|
+
descriptor: e,
|
|
717
|
+
isSelected: t
|
|
718
|
+
})
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
//#endregion
|
|
722
|
+
//#region src/primitives/ComboBox/ComboBox.tsx
|
|
723
|
+
var Z = {
|
|
724
|
+
base: {
|
|
725
|
+
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",
|
|
726
|
+
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",
|
|
727
|
+
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",
|
|
728
|
+
skeleton: "breeze:pointer-events-none breeze:absolute breeze:[inset-block:0] breeze:[inset-inline:0]",
|
|
729
|
+
trigger: "breeze:inline-grid breeze:shrink-0 breeze:place-items-center breeze:border-0 breeze:bg-transparent breeze:pe-breeze-2 breeze:ps-breeze-2 breeze:text-breeze-ink-2 breeze:outline-none breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:disabled:cursor-not-allowed breeze:disabled:opacity-60 breeze:any-pointer-coarse:min-inline-breeze-tap"
|
|
730
|
+
},
|
|
731
|
+
compound: {},
|
|
732
|
+
size: {},
|
|
733
|
+
state: {
|
|
734
|
+
loadingGroup: "breeze:!bg-transparent breeze:!border-transparent breeze:!opacity-100 breeze:!overflow-visible",
|
|
735
|
+
loadingInput: "breeze:!opacity-0",
|
|
736
|
+
loadingTrigger: "breeze:!opacity-0",
|
|
737
|
+
readOnlyGroup: "breeze:bg-breeze-sunken"
|
|
738
|
+
},
|
|
739
|
+
variant: {}
|
|
740
|
+
};
|
|
741
|
+
function lt(e, t, n, r) {
|
|
742
|
+
let i = t.find(({ item: t }) => t === e);
|
|
743
|
+
if (i) return i;
|
|
744
|
+
if (r && typeof e == "string") return;
|
|
745
|
+
let { id: a } = n(e);
|
|
746
|
+
return t.find((e) => e.descriptor.id === a);
|
|
747
|
+
}
|
|
748
|
+
function ut(e, t, n, r) {
|
|
749
|
+
if (e !== void 0) return e === null || r && typeof e == "string" && !t ? null : t?.id ?? n(e).id;
|
|
750
|
+
}
|
|
751
|
+
function dt(e, t, n) {
|
|
752
|
+
if (!(e === void 0 || !n)) return t ? t.descriptor.label : typeof e == "string" ? e : "";
|
|
753
|
+
}
|
|
754
|
+
function ft(e, t, n) {
|
|
755
|
+
if (!(!n || typeof e != "string" || t)) return e;
|
|
756
|
+
}
|
|
757
|
+
function pt({ items: e }) {
|
|
758
|
+
return /* @__PURE__ */ m(A, {
|
|
759
|
+
className: X.base.listBox,
|
|
760
|
+
items: e,
|
|
761
|
+
children: (e) => /* @__PURE__ */ m(ct, { descriptor: e.descriptor })
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
function mt({ allowsCustomValue: e, hasSuggestions: t, isDisabled: n, isReadOnly: r, items: i, triggerRef: s }) {
|
|
765
|
+
let c = a(E), l = n || r, u = !l && (t || e) && (c?.isOpen ?? !1);
|
|
766
|
+
return o(() => {
|
|
767
|
+
(l || !t && !e) && c?.isOpen && c.setOpen(!1);
|
|
768
|
+
}, [
|
|
769
|
+
e,
|
|
770
|
+
t,
|
|
771
|
+
l,
|
|
772
|
+
c
|
|
773
|
+
]), /* @__PURE__ */ m(nt, {
|
|
774
|
+
className: Z.base.popover,
|
|
775
|
+
isOpen: u,
|
|
776
|
+
onOpenChange: (e) => c?.setOpen(e),
|
|
777
|
+
triggerRef: s,
|
|
778
|
+
children: /* @__PURE__ */ m(pt, { items: i })
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
function ht({ props: e }) {
|
|
782
|
+
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: E = !1, value: A } = e, { messages: j } = G(), { contains: ee } = D({ sensitivity: "base" }), M = a?.trim() || void 0, N = d?.trim() || void 0, P = c || b, te = s(), ne = `${te}-description`, F = `${te}-error`, I = [M && ne, N && F].filter(Boolean).join(" ") || void 0, L = u(null), R = l(() => v.map((e) => {
|
|
783
|
+
let t = p(e);
|
|
784
|
+
return {
|
|
785
|
+
descriptor: t,
|
|
786
|
+
id: t.id,
|
|
787
|
+
item: e
|
|
788
|
+
};
|
|
789
|
+
}), [p, v]), re = A == null ? void 0 : lt(A, R, p, t), z = ut(A, re, p, t), B = i == null ? void 0 : lt(i, R, p, t), V = ut(i, B, p, t), ie = dt(A, re, t), ae = ft(i, B, t), H = u(z == null ? null : String(z)), U = u(ie ?? ae ?? ""), W = u(!1), oe = S;
|
|
790
|
+
o(() => {
|
|
791
|
+
H.current = z == null ? null : String(z);
|
|
792
|
+
}, [z]);
|
|
793
|
+
let se = (e) => {
|
|
794
|
+
if (e === null) {
|
|
795
|
+
if (H.current = null, t) {
|
|
796
|
+
let e = W.current;
|
|
797
|
+
if (W.current = !1, U.current || e) return;
|
|
798
|
+
}
|
|
799
|
+
oe?.(null);
|
|
800
|
+
return;
|
|
801
|
+
}
|
|
802
|
+
W.current = !1, H.current = String(e);
|
|
803
|
+
let n = R.find((t) => t.descriptor.id === String(e));
|
|
804
|
+
U.current = n?.descriptor.label ?? "", oe?.(n?.item ?? null);
|
|
805
|
+
}, ce = (e) => {
|
|
806
|
+
U.current = e, W.current = !0, t && R.find((e) => e.descriptor.id === H.current)?.descriptor.label !== e && oe?.(e || null);
|
|
807
|
+
}, le = !b && N !== void 0, ue = P ? void 0 : x;
|
|
808
|
+
return /* @__PURE__ */ h(T, {
|
|
809
|
+
allowsCustomValue: t,
|
|
810
|
+
allowsEmptyCollection: t,
|
|
811
|
+
"aria-label": b ? y : void 0,
|
|
812
|
+
className: J.base.root,
|
|
813
|
+
defaultFilter: ee,
|
|
814
|
+
defaultInputValue: ae,
|
|
815
|
+
defaultItems: R,
|
|
816
|
+
defaultValue: V,
|
|
817
|
+
form: f,
|
|
818
|
+
id: _,
|
|
819
|
+
inputValue: ie,
|
|
820
|
+
isDisabled: P,
|
|
821
|
+
isInvalid: le,
|
|
822
|
+
isReadOnly: w,
|
|
823
|
+
isRequired: E,
|
|
824
|
+
menuTrigger: "input",
|
|
825
|
+
name: ue,
|
|
826
|
+
onInputChange: ce,
|
|
827
|
+
onChange: se,
|
|
828
|
+
value: z,
|
|
829
|
+
validationBehavior: "aria",
|
|
830
|
+
children: [
|
|
831
|
+
/* @__PURE__ */ m(Ve, {
|
|
832
|
+
label: y,
|
|
833
|
+
loading: b
|
|
834
|
+
}),
|
|
835
|
+
/* @__PURE__ */ h(O, {
|
|
836
|
+
className: Y(Z.base.group, b && Z.state.loadingGroup, w && Z.state.readOnlyGroup),
|
|
837
|
+
isDisabled: P,
|
|
838
|
+
isInvalid: le,
|
|
839
|
+
isReadOnly: w,
|
|
840
|
+
ref: L,
|
|
841
|
+
children: [
|
|
842
|
+
/* @__PURE__ */ m(k, {
|
|
843
|
+
"aria-busy": b || void 0,
|
|
844
|
+
"aria-describedby": I,
|
|
845
|
+
autoComplete: n,
|
|
846
|
+
autoFocus: r,
|
|
847
|
+
className: Y(Z.base.input, b && Z.state.loadingInput),
|
|
848
|
+
form: f,
|
|
849
|
+
placeholder: C,
|
|
850
|
+
readOnly: w || void 0
|
|
851
|
+
}),
|
|
852
|
+
/* @__PURE__ */ m(g, {
|
|
853
|
+
"aria-describedby": I,
|
|
854
|
+
className: Y(Z.base.trigger, b && Z.state.loadingTrigger),
|
|
855
|
+
children: /* @__PURE__ */ m(ot, {
|
|
856
|
+
name: "expand",
|
|
857
|
+
size: "sm"
|
|
858
|
+
})
|
|
859
|
+
}),
|
|
860
|
+
b && /* @__PURE__ */ m("span", {
|
|
861
|
+
className: Z.base.skeleton,
|
|
862
|
+
children: /* @__PURE__ */ m(K, {
|
|
863
|
+
blockSize: "100%",
|
|
864
|
+
inlineSize: "100%",
|
|
865
|
+
label: j.loading,
|
|
866
|
+
shape: "rectangle"
|
|
867
|
+
})
|
|
868
|
+
})
|
|
869
|
+
]
|
|
870
|
+
}),
|
|
871
|
+
/* @__PURE__ */ m(mt, {
|
|
872
|
+
allowsCustomValue: t,
|
|
873
|
+
hasSuggestions: R.length > 0,
|
|
874
|
+
isDisabled: P,
|
|
875
|
+
isReadOnly: w,
|
|
876
|
+
items: R,
|
|
877
|
+
triggerRef: L
|
|
878
|
+
}),
|
|
879
|
+
/* @__PURE__ */ m(He, {
|
|
880
|
+
description: M,
|
|
881
|
+
descriptionId: ne,
|
|
882
|
+
error: N,
|
|
883
|
+
errorId: F,
|
|
884
|
+
loading: b
|
|
885
|
+
})
|
|
886
|
+
]
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
function gt(e) {
|
|
890
|
+
return /* @__PURE__ */ m(ht, { props: e });
|
|
891
|
+
}
|
|
892
|
+
//#endregion
|
|
893
|
+
//#region src/primitives/Container/Container.tsx
|
|
894
|
+
var _t = {
|
|
895
|
+
base: { container: "breeze:mx-auto breeze:inline-size-full breeze:min-inline-size-0" },
|
|
896
|
+
compound: {},
|
|
897
|
+
size: {
|
|
898
|
+
page: "breeze:max-inline-breeze-page",
|
|
899
|
+
prose: "breeze:max-inline-breeze-prose",
|
|
900
|
+
read: "breeze:max-inline-breeze-read"
|
|
901
|
+
},
|
|
902
|
+
state: { padded: "breeze:ps-breeze-4 breeze:pe-breeze-4 breeze:breeze-md:ps-breeze-7 breeze:breeze-md:pe-breeze-7" },
|
|
903
|
+
variant: {}
|
|
904
|
+
};
|
|
905
|
+
function vt({ "aria-label": e, children: t, element: n = "div", padded: i = !0, width: a = "page" }) {
|
|
906
|
+
let { accessibleLabel: o, role: s } = Re(e, n);
|
|
907
|
+
return r(n, {
|
|
908
|
+
"aria-label": o,
|
|
909
|
+
className: [
|
|
910
|
+
_t.base.container,
|
|
911
|
+
_t.size[a],
|
|
912
|
+
i && _t.state.padded
|
|
913
|
+
].filter(Boolean).join(" "),
|
|
914
|
+
role: s
|
|
915
|
+
}, t);
|
|
536
916
|
}
|
|
537
917
|
//#endregion
|
|
538
918
|
//#region src/overlays/OverlaySurface.tsx
|
|
539
|
-
var
|
|
919
|
+
var yt = {
|
|
540
920
|
base: {
|
|
541
921
|
content: "breeze-overlay-content",
|
|
542
922
|
header: "breeze-overlay-header",
|
|
@@ -551,26 +931,26 @@ var X = {
|
|
|
551
931
|
fullscreen: "breeze-fullscreen",
|
|
552
932
|
popover: "breeze-popover"
|
|
553
933
|
}
|
|
554
|
-
},
|
|
555
|
-
function
|
|
934
|
+
}, bt = "Breeze overlay triggers and portal containers must belong to the current document and light DOM.";
|
|
935
|
+
function xt(e) {
|
|
556
936
|
return typeof e == "object" && !!e && "nodeType" in e && typeof e.contains == "function";
|
|
557
937
|
}
|
|
558
|
-
function
|
|
938
|
+
function St(e) {
|
|
559
939
|
return e.dataset?.breezeOverlay !== void 0;
|
|
560
940
|
}
|
|
561
|
-
function
|
|
562
|
-
let { getMessageLocale: y, messages: b } =
|
|
563
|
-
o(() =>
|
|
564
|
-
let [
|
|
941
|
+
function Ct({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, onOpenChange: s, open: f, placement: g = "bottom", title: _, trigger: v }) {
|
|
942
|
+
let { getMessageLocale: y, messages: b } = G(), x = r === "popover" || r === "fullscreen", S = $e(), C = a(Je), [w, T] = d(C === null);
|
|
943
|
+
o(() => T(!0), []);
|
|
944
|
+
let [E, D] = d(t), O = f ?? E, k = C?.open ?? !0, A = O && k, j = u(null), M = u(null), N = u(null), [P, te] = d(!1), ne = u(!1), F = u(null), I = u(null), L = u(null), R = u(null), re = u(!1);
|
|
565
945
|
c(() => {
|
|
566
|
-
if (S && j.current && (j.current.ownerDocument !== document || j.current.getRootNode() !== document || S.ownerDocument !== document || S.getRootNode() !== document)) throw Error(
|
|
946
|
+
if (S && j.current && (j.current.ownerDocument !== document || j.current.getRootNode() !== document || S.ownerDocument !== document || S.getRootNode() !== document)) throw Error(bt);
|
|
567
947
|
}, [S]);
|
|
568
|
-
let
|
|
948
|
+
let z = l(() => r === "fullscreen" ? { current: S } : j, [S, r]), B = Ye(r, A && w && S !== null, A || P), V = i((e) => {
|
|
569
949
|
if (!e && !k) {
|
|
570
|
-
if (
|
|
571
|
-
O && (
|
|
950
|
+
if (re.current) return;
|
|
951
|
+
O && (re.current = !0);
|
|
572
952
|
}
|
|
573
|
-
f === void 0 &&
|
|
953
|
+
f === void 0 && D(e), s?.(e);
|
|
574
954
|
}, [
|
|
575
955
|
f,
|
|
576
956
|
s,
|
|
@@ -578,187 +958,187 @@ function Ze({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, on
|
|
|
578
958
|
O
|
|
579
959
|
]);
|
|
580
960
|
o(() => {
|
|
581
|
-
k ?
|
|
961
|
+
k ? re.current = !1 : O && V(!1);
|
|
582
962
|
}, [
|
|
583
|
-
|
|
963
|
+
V,
|
|
584
964
|
k,
|
|
585
965
|
O
|
|
586
966
|
]), o(() => {
|
|
587
|
-
if (r !== "popover" || !A || !n || !
|
|
967
|
+
if (r !== "popover" || !A || !n || !B.topmost || !S) return;
|
|
588
968
|
let e = () => {
|
|
589
|
-
|
|
590
|
-
}, t = (e, t) => !!e && !!t && (e === t || e.contains(t) || t.contains(e)), i = (e) => e.button === 0, a = (e) =>
|
|
591
|
-
i(t) && (e(),
|
|
969
|
+
I.current !== null && (clearTimeout(I.current), I.current = null);
|
|
970
|
+
}, t = (e, t) => !!e && !!t && (e === t || e.contains(t) || t.contains(e)), i = (e) => e.button === 0, a = (e) => xt(e) && !M.current?.contains(e) && !j.current?.contains(e), o = (t) => {
|
|
971
|
+
i(t) && (e(), R.current = null, L.current = xt(t.target) ? t.target : null);
|
|
592
972
|
}, s = (n) => {
|
|
593
973
|
if (!i(n)) return;
|
|
594
|
-
let r =
|
|
595
|
-
!a(r) || !a(o) || (e(),
|
|
596
|
-
|
|
597
|
-
let e =
|
|
598
|
-
|
|
974
|
+
let r = L.current, o = xt(n.target) ? n.target : null;
|
|
975
|
+
!a(r) || !a(o) || (e(), I.current = setTimeout(() => {
|
|
976
|
+
I.current = null;
|
|
977
|
+
let e = R.current, n = L.current;
|
|
978
|
+
R.current = null, L.current = null, !(t(e, o) && t(e, n)) && V(!1);
|
|
599
979
|
}, 0));
|
|
600
980
|
}, c = () => {
|
|
601
|
-
e(),
|
|
981
|
+
e(), R.current = null, L.current = null;
|
|
602
982
|
}, l = (n) => {
|
|
603
|
-
let r =
|
|
983
|
+
let r = xt(n.target) ? n.target : null;
|
|
604
984
|
if (e(), a(r)) {
|
|
605
|
-
let e =
|
|
606
|
-
if (
|
|
607
|
-
|
|
985
|
+
let e = R.current, n = L.current;
|
|
986
|
+
if (R.current = null, L.current = null, t(e, r) && t(e, n)) return;
|
|
987
|
+
V(!1);
|
|
608
988
|
}
|
|
609
989
|
};
|
|
610
990
|
return S.ownerDocument.addEventListener("pointerdown", o, !0), S.ownerDocument.addEventListener("pointerup", s, !0), S.ownerDocument.addEventListener("pointercancel", c, !0), S.ownerDocument.addEventListener("click", l, !0), () => {
|
|
611
|
-
e(), S.ownerDocument.removeEventListener("pointerdown", o, !0), S.ownerDocument.removeEventListener("pointerup", s, !0), S.ownerDocument.removeEventListener("pointercancel", c, !0), S.ownerDocument.removeEventListener("click", l, !0),
|
|
991
|
+
e(), S.ownerDocument.removeEventListener("pointerdown", o, !0), S.ownerDocument.removeEventListener("pointerup", s, !0), S.ownerDocument.removeEventListener("pointercancel", c, !0), S.ownerDocument.removeEventListener("click", l, !0), R.current = null, L.current = null;
|
|
612
992
|
};
|
|
613
993
|
}, [
|
|
614
|
-
|
|
994
|
+
V,
|
|
615
995
|
n,
|
|
616
996
|
S,
|
|
617
997
|
r,
|
|
618
|
-
|
|
998
|
+
B.topmost,
|
|
619
999
|
A
|
|
620
1000
|
]);
|
|
621
|
-
let
|
|
1001
|
+
let ie = C?.restoreFocus, ae = C?.id, H = i(() => {
|
|
622
1002
|
let e = j.current, t = S?.ownerDocument, n = t?.activeElement;
|
|
623
1003
|
if (!t || !S) return;
|
|
624
|
-
let r =
|
|
1004
|
+
let r = ae ? t.getElementById(ae) : null;
|
|
625
1005
|
if (!(n === t.body || n === r || n?.closest("[data-exiting]"))) return;
|
|
626
1006
|
if (!e?.isConnected) {
|
|
627
|
-
|
|
1007
|
+
ie?.();
|
|
628
1008
|
return;
|
|
629
1009
|
}
|
|
630
1010
|
let i = S.querySelector("[data-breeze-topmost=\"true\"]");
|
|
631
1011
|
(!i || i.contains(e)) && !e.closest("[inert], [aria-hidden=\"true\"]") && e.focus({ preventScroll: !0 });
|
|
632
1012
|
}, [
|
|
633
1013
|
S,
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
]),
|
|
637
|
-
|
|
638
|
-
}, []),
|
|
1014
|
+
ae,
|
|
1015
|
+
ie
|
|
1016
|
+
]), U = i(() => {
|
|
1017
|
+
F.current !== null && (clearTimeout(F.current), F.current = null);
|
|
1018
|
+
}, []), W = i((e) => {
|
|
639
1019
|
queueMicrotask(() => {
|
|
640
|
-
!e.isConnected || e.closest("[inert], [data-exiting]") || (
|
|
1020
|
+
!e.isConnected || e.closest("[inert], [data-exiting]") || (U(), e.focus({ preventScroll: !0 }), F.current = setTimeout(() => {
|
|
641
1021
|
let { ownerDocument: t } = e, { activeElement: n } = t;
|
|
642
|
-
e.isConnected && !e.closest("[inert], [data-exiting]") && (n === e || n === t.body) && (
|
|
1022
|
+
e.isConnected && !e.closest("[inert], [data-exiting]") && (n === e || n === t.body) && (ne.current = !0, e.blur(), e.focus({ preventScroll: !0 }), ne.current = !1), F.current = null;
|
|
643
1023
|
}, 500));
|
|
644
1024
|
});
|
|
645
|
-
}, [
|
|
1025
|
+
}, [U]), oe = u(A);
|
|
646
1026
|
o(() => {
|
|
647
|
-
let e =
|
|
648
|
-
|
|
1027
|
+
let e = oe.current;
|
|
1028
|
+
oe.current = A, !(!x || !A || e || !N.current) && W(N.current);
|
|
649
1029
|
}, [
|
|
650
|
-
|
|
1030
|
+
W,
|
|
651
1031
|
x,
|
|
652
1032
|
A
|
|
653
1033
|
]);
|
|
654
|
-
let
|
|
655
|
-
|
|
1034
|
+
let se = i((e) => {
|
|
1035
|
+
N.current = e;
|
|
656
1036
|
let t = () => {
|
|
657
|
-
|
|
1037
|
+
U(), N.current = null, te(!1), requestAnimationFrame(H);
|
|
658
1038
|
};
|
|
659
1039
|
if (!e) {
|
|
660
1040
|
t();
|
|
661
1041
|
return;
|
|
662
1042
|
}
|
|
663
|
-
return
|
|
1043
|
+
return te(!0), x && W(e), t;
|
|
664
1044
|
}, [
|
|
665
|
-
|
|
666
|
-
|
|
1045
|
+
U,
|
|
1046
|
+
W,
|
|
667
1047
|
x,
|
|
668
|
-
|
|
669
|
-
]),
|
|
670
|
-
id:
|
|
1048
|
+
H
|
|
1049
|
+
]), ce = l(() => ({
|
|
1050
|
+
id: B.id,
|
|
671
1051
|
open: A,
|
|
672
|
-
restoreFocus:
|
|
1052
|
+
restoreFocus: H
|
|
673
1053
|
}), [
|
|
674
|
-
|
|
1054
|
+
B.id,
|
|
675
1055
|
A,
|
|
676
|
-
|
|
677
|
-
]),
|
|
678
|
-
className:
|
|
1056
|
+
H
|
|
1057
|
+
]), le = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
|
|
1058
|
+
className: yt.base.header,
|
|
679
1059
|
children: [/* @__PURE__ */ m("h2", {
|
|
680
|
-
className:
|
|
1060
|
+
className: yt.base.title,
|
|
681
1061
|
children: _
|
|
682
1062
|
}), /* @__PURE__ */ m("span", {
|
|
683
1063
|
lang: y("close"),
|
|
684
|
-
children: /* @__PURE__ */ m(
|
|
685
|
-
onAction: () =>
|
|
1064
|
+
children: /* @__PURE__ */ m(Le, {
|
|
1065
|
+
onAction: () => V(!1),
|
|
686
1066
|
variant: "quiet",
|
|
687
1067
|
children: b.close
|
|
688
1068
|
})
|
|
689
1069
|
})]
|
|
690
|
-
}), e] }),
|
|
691
|
-
value:
|
|
1070
|
+
}), e] }), ue = /* @__PURE__ */ m(Je, {
|
|
1071
|
+
value: ce,
|
|
692
1072
|
children: x ? /* @__PURE__ */ m("section", {
|
|
693
1073
|
"aria-label": _,
|
|
694
|
-
className:
|
|
695
|
-
id:
|
|
1074
|
+
className: yt.base.content,
|
|
1075
|
+
id: B.id,
|
|
696
1076
|
onBlur: (e) => {
|
|
697
|
-
if (
|
|
1077
|
+
if (ne.current) {
|
|
698
1078
|
e.stopPropagation();
|
|
699
1079
|
return;
|
|
700
1080
|
}
|
|
701
1081
|
let { relatedTarget: t } = e;
|
|
702
|
-
r === "popover" && n &&
|
|
1082
|
+
r === "popover" && n && B.topmost && xt(t) && !e.currentTarget.contains(t) && !j.current?.contains(t) && (R.current = t);
|
|
703
1083
|
},
|
|
704
|
-
ref:
|
|
1084
|
+
ref: se,
|
|
705
1085
|
role: "dialog",
|
|
706
1086
|
tabIndex: -1,
|
|
707
|
-
children:
|
|
708
|
-
}) : /* @__PURE__ */ m(
|
|
1087
|
+
children: le
|
|
1088
|
+
}) : /* @__PURE__ */ m(ge, {
|
|
709
1089
|
"aria-label": _,
|
|
710
|
-
className:
|
|
711
|
-
id:
|
|
712
|
-
ref:
|
|
713
|
-
children:
|
|
1090
|
+
className: yt.base.content,
|
|
1091
|
+
id: B.id,
|
|
1092
|
+
ref: se,
|
|
1093
|
+
children: le
|
|
714
1094
|
})
|
|
715
1095
|
});
|
|
716
|
-
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(
|
|
717
|
-
"aria-controls": A ?
|
|
1096
|
+
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(Le, {
|
|
1097
|
+
"aria-controls": A ? B.id : void 0,
|
|
718
1098
|
"aria-expanded": A,
|
|
719
1099
|
"aria-haspopup": "dialog",
|
|
720
|
-
onAction: () =>
|
|
1100
|
+
onAction: () => V(!x || !A),
|
|
721
1101
|
ref: j,
|
|
722
1102
|
children: v
|
|
723
1103
|
}), S && w && (x ? /* @__PURE__ */ m(ee, {
|
|
724
|
-
className:
|
|
1104
|
+
className: yt.variant[r],
|
|
725
1105
|
"data-breeze-overlay": r,
|
|
726
|
-
"data-breeze-topmost":
|
|
727
|
-
"data-breeze-interactive":
|
|
728
|
-
inert: !
|
|
1106
|
+
"data-breeze-topmost": B.topmost,
|
|
1107
|
+
"data-breeze-interactive": B.interactive,
|
|
1108
|
+
inert: !B.interactive,
|
|
729
1109
|
isNonModal: !0,
|
|
730
1110
|
isOpen: A,
|
|
731
|
-
isKeyboardDismissDisabled: !n || !
|
|
732
|
-
onOpenChange:
|
|
1111
|
+
isKeyboardDismissDisabled: !n || !B.topmost,
|
|
1112
|
+
onOpenChange: V,
|
|
733
1113
|
placement: g,
|
|
734
|
-
ref:
|
|
735
|
-
shouldCloseOnInteractOutside: (e) => r === "popover" && n &&
|
|
736
|
-
style: { zIndex:
|
|
737
|
-
triggerRef:
|
|
738
|
-
children:
|
|
739
|
-
}) : /* @__PURE__ */ m(
|
|
1114
|
+
ref: M,
|
|
1115
|
+
shouldCloseOnInteractOutside: (e) => r === "popover" && n && B.topmost && !j.current?.contains(e),
|
|
1116
|
+
style: { zIndex: B.zIndex },
|
|
1117
|
+
triggerRef: z,
|
|
1118
|
+
children: ue
|
|
1119
|
+
}) : /* @__PURE__ */ m(ve, {
|
|
740
1120
|
className: "breeze-overlay-backdrop",
|
|
741
1121
|
"data-breeze-overlay": r,
|
|
742
|
-
"data-breeze-scrim":
|
|
743
|
-
"data-breeze-topmost":
|
|
744
|
-
"data-breeze-interactive":
|
|
745
|
-
inert: !
|
|
746
|
-
isDismissable: n &&
|
|
747
|
-
isKeyboardDismissDisabled: !n || !
|
|
1122
|
+
"data-breeze-scrim": B.scrim,
|
|
1123
|
+
"data-breeze-topmost": B.topmost,
|
|
1124
|
+
"data-breeze-interactive": B.interactive,
|
|
1125
|
+
inert: !B.interactive,
|
|
1126
|
+
isDismissable: n && B.topmost,
|
|
1127
|
+
isKeyboardDismissDisabled: !n || !B.topmost,
|
|
748
1128
|
isOpen: A,
|
|
749
|
-
onOpenChange:
|
|
750
|
-
shouldCloseOnInteractOutside: (e) =>
|
|
751
|
-
style: { zIndex:
|
|
752
|
-
children: /* @__PURE__ */ m(
|
|
753
|
-
className:
|
|
754
|
-
children:
|
|
1129
|
+
onOpenChange: V,
|
|
1130
|
+
shouldCloseOnInteractOutside: (e) => B.topmost && St(e),
|
|
1131
|
+
style: { zIndex: B.zIndex },
|
|
1132
|
+
children: /* @__PURE__ */ m(_e, {
|
|
1133
|
+
className: yt.variant[r],
|
|
1134
|
+
children: ue
|
|
755
1135
|
})
|
|
756
1136
|
}))] });
|
|
757
1137
|
}
|
|
758
1138
|
//#endregion
|
|
759
1139
|
//#region src/primitives/Dialog/Dialog.tsx
|
|
760
|
-
function
|
|
761
|
-
return /* @__PURE__ */ m(
|
|
1140
|
+
function wt({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o }) {
|
|
1141
|
+
return /* @__PURE__ */ m(Ct, {
|
|
762
1142
|
defaultOpen: t,
|
|
763
1143
|
dismissible: n,
|
|
764
1144
|
onOpenChange: r,
|
|
@@ -771,8 +1151,8 @@ function Qe({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
|
|
|
771
1151
|
}
|
|
772
1152
|
//#endregion
|
|
773
1153
|
//#region src/primitives/Drawer/Drawer.tsx
|
|
774
|
-
function
|
|
775
|
-
return /* @__PURE__ */ m(
|
|
1154
|
+
function Tt({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o }) {
|
|
1155
|
+
return /* @__PURE__ */ m(Ct, {
|
|
776
1156
|
defaultOpen: t,
|
|
777
1157
|
dismissible: n,
|
|
778
1158
|
onOpenChange: r,
|
|
@@ -785,7 +1165,7 @@ function $e({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
|
|
|
785
1165
|
}
|
|
786
1166
|
//#endregion
|
|
787
1167
|
//#region src/primitives/Grid/Grid.tsx
|
|
788
|
-
var
|
|
1168
|
+
var Et = {
|
|
789
1169
|
base: { grid: "breeze:grid breeze:min-inline-size-0" },
|
|
790
1170
|
compound: { columns: {
|
|
791
1171
|
1: {
|
|
@@ -821,80 +1201,21 @@ var et = {
|
|
|
821
1201
|
state: {},
|
|
822
1202
|
variant: {}
|
|
823
1203
|
};
|
|
824
|
-
function
|
|
825
|
-
let { accessibleLabel: s, role: c } =
|
|
1204
|
+
function Dt({ "aria-label": e, children: t, collapseBelow: n = "md", columns: i = 2, element: a = "div", gap: o = 4 }) {
|
|
1205
|
+
let { accessibleLabel: s, role: c } = Re(e, a);
|
|
826
1206
|
return r(a, {
|
|
827
1207
|
"aria-label": s,
|
|
828
1208
|
className: [
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
1209
|
+
Et.base.grid,
|
|
1210
|
+
Et.compound.columns[i][n],
|
|
1211
|
+
Et.size[o]
|
|
832
1212
|
].join(" "),
|
|
833
1213
|
role: c
|
|
834
1214
|
}, t);
|
|
835
1215
|
}
|
|
836
1216
|
//#endregion
|
|
837
|
-
//#region src/primitives/Icon/Icon.tsx
|
|
838
|
-
var nt = {
|
|
839
|
-
add: fe,
|
|
840
|
-
back: ce,
|
|
841
|
-
building: j,
|
|
842
|
-
calendar: ie,
|
|
843
|
-
camera: ae,
|
|
844
|
-
check: oe,
|
|
845
|
-
clock: N,
|
|
846
|
-
close: he,
|
|
847
|
-
delete: z,
|
|
848
|
-
document: le,
|
|
849
|
-
download: P,
|
|
850
|
-
expand: se,
|
|
851
|
-
forward: M,
|
|
852
|
-
lock: L,
|
|
853
|
-
money: I,
|
|
854
|
-
moneyIn: O,
|
|
855
|
-
moneyOut: k,
|
|
856
|
-
more: F,
|
|
857
|
-
next: M,
|
|
858
|
-
notifications: A,
|
|
859
|
-
overview: ue,
|
|
860
|
-
people: me,
|
|
861
|
-
settings: R,
|
|
862
|
-
signOut: de,
|
|
863
|
-
upload: pe,
|
|
864
|
-
warning: B
|
|
865
|
-
}, rt = {
|
|
866
|
-
base: { icon: "breeze:block breeze:shrink-0" },
|
|
867
|
-
compound: {},
|
|
868
|
-
size: {
|
|
869
|
-
lg: "breeze:block-size-breeze-6 breeze:inline-size-breeze-6",
|
|
870
|
-
md: "breeze:block-size-breeze-5 breeze:inline-size-breeze-5",
|
|
871
|
-
sm: "breeze:block-size-breeze-4 breeze:inline-size-breeze-4"
|
|
872
|
-
},
|
|
873
|
-
state: { logicalDirection: "breeze:rtl:rotate-180" },
|
|
874
|
-
variant: {}
|
|
875
|
-
}, it = /* @__PURE__ */ new Set([
|
|
876
|
-
"back",
|
|
877
|
-
"forward",
|
|
878
|
-
"next"
|
|
879
|
-
]);
|
|
880
|
-
function at({ label: e, name: t, size: n = "md" }) {
|
|
881
|
-
let r = nt[t], i = e?.trim() || void 0;
|
|
882
|
-
return /* @__PURE__ */ m(r, {
|
|
883
|
-
"aria-hidden": i === void 0 || void 0,
|
|
884
|
-
"aria-label": i,
|
|
885
|
-
className: [
|
|
886
|
-
rt.base.icon,
|
|
887
|
-
rt.size[n],
|
|
888
|
-
it.has(t) && rt.state.logicalDirection
|
|
889
|
-
].filter(Boolean).join(" "),
|
|
890
|
-
focusable: "false",
|
|
891
|
-
role: i === void 0 ? void 0 : "img",
|
|
892
|
-
strokeWidth: 1.75
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
//#endregion
|
|
896
1217
|
//#region src/primitives/IconTile/IconTile.tsx
|
|
897
|
-
var
|
|
1218
|
+
var Ot = {
|
|
898
1219
|
base: { tile: "breeze:inline-flex breeze:shrink-0 breeze:items-center breeze:justify-center" },
|
|
899
1220
|
compound: {},
|
|
900
1221
|
size: {
|
|
@@ -916,15 +1237,15 @@ var ot = {
|
|
|
916
1237
|
}
|
|
917
1238
|
}
|
|
918
1239
|
};
|
|
919
|
-
function
|
|
1240
|
+
function kt({ label: e, name: t, shape: n = "square", size: r = "lg", tone: i = "brand" }) {
|
|
920
1241
|
return /* @__PURE__ */ m("span", {
|
|
921
1242
|
className: [
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
1243
|
+
Ot.base.tile,
|
|
1244
|
+
Ot.variant.tone[i],
|
|
1245
|
+
Ot.variant.shape[n],
|
|
1246
|
+
Ot.size[r]
|
|
926
1247
|
].join(" "),
|
|
927
|
-
children: /* @__PURE__ */ m(
|
|
1248
|
+
children: /* @__PURE__ */ m(ot, {
|
|
928
1249
|
label: e,
|
|
929
1250
|
name: t,
|
|
930
1251
|
size: r === "lg" ? "md" : "sm"
|
|
@@ -933,7 +1254,7 @@ function st({ label: e, name: t, shape: n = "square", size: r = "lg", tone: i =
|
|
|
933
1254
|
}
|
|
934
1255
|
//#endregion
|
|
935
1256
|
//#region src/primitives/Inline/Inline.tsx
|
|
936
|
-
var
|
|
1257
|
+
var At = {
|
|
937
1258
|
base: { inline: "breeze:flex breeze:min-inline-size-0" },
|
|
938
1259
|
compound: {},
|
|
939
1260
|
size: {
|
|
@@ -963,23 +1284,23 @@ var ct = {
|
|
|
963
1284
|
}
|
|
964
1285
|
}
|
|
965
1286
|
};
|
|
966
|
-
function
|
|
967
|
-
let { accessibleLabel: c, role: l } =
|
|
1287
|
+
function jt({ "aria-label": e, children: t, element: n = "div", gap: i = 3, justify: a = "start", verticalAlign: o = "center", wrap: s = !1 }) {
|
|
1288
|
+
let { accessibleLabel: c, role: l } = Re(e, n);
|
|
968
1289
|
return r(n, {
|
|
969
1290
|
"aria-label": c,
|
|
970
1291
|
className: [
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
s &&
|
|
1292
|
+
At.base.inline,
|
|
1293
|
+
At.variant.align[o],
|
|
1294
|
+
At.variant.justify[a],
|
|
1295
|
+
At.size[i],
|
|
1296
|
+
s && At.state.wrap
|
|
976
1297
|
].filter(Boolean).join(" "),
|
|
977
1298
|
role: l
|
|
978
1299
|
}, t);
|
|
979
1300
|
}
|
|
980
1301
|
//#endregion
|
|
981
1302
|
//#region src/primitives/NumberField/NumberField.tsx
|
|
982
|
-
var
|
|
1303
|
+
var Q = {
|
|
983
1304
|
base: {
|
|
984
1305
|
group: "breeze:relative breeze:inline-flex breeze:min-block-breeze-md 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:has-[input[data-invalid]]:border-breeze-danger breeze:data-[disabled]:cursor-not-allowed breeze:data-[disabled]:bg-breeze-sunken",
|
|
985
1306
|
input: "breeze:min-block-breeze-md breeze:min-inline-size-0 breeze:flex-1 breeze:border-0 breeze:rounded-none breeze:bg-transparent breeze:tabular-nums 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",
|
|
@@ -996,17 +1317,17 @@ var Z = {
|
|
|
996
1317
|
},
|
|
997
1318
|
variant: {}
|
|
998
1319
|
};
|
|
999
|
-
function
|
|
1000
|
-
let { messages: T } =
|
|
1001
|
-
return /* @__PURE__ */ h(
|
|
1320
|
+
function Mt({ 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 }) {
|
|
1321
|
+
let { messages: T } = G(), E = i?.trim() || void 0, D = o?.trim() || void 0, A = a || d;
|
|
1322
|
+
return /* @__PURE__ */ h(ye, {
|
|
1002
1323
|
autoFocus: t,
|
|
1003
1324
|
"aria-label": d ? u : void 0,
|
|
1004
|
-
className:
|
|
1325
|
+
className: J.base.root,
|
|
1005
1326
|
defaultValue: n,
|
|
1006
1327
|
form: s,
|
|
1007
1328
|
formatOptions: c,
|
|
1008
1329
|
id: l,
|
|
1009
|
-
isDisabled:
|
|
1330
|
+
isDisabled: A,
|
|
1010
1331
|
isInvalid: !d && D !== void 0,
|
|
1011
1332
|
isReadOnly: b,
|
|
1012
1333
|
isRequired: S,
|
|
@@ -1018,23 +1339,23 @@ function ut({ autoComplete: e, autoFocus: t, defaultValue: n, description: i, di
|
|
|
1018
1339
|
validationBehavior: "aria",
|
|
1019
1340
|
value: w,
|
|
1020
1341
|
children: [
|
|
1021
|
-
/* @__PURE__ */ m(
|
|
1342
|
+
/* @__PURE__ */ m(Ve, {
|
|
1022
1343
|
label: u,
|
|
1023
1344
|
loading: d
|
|
1024
1345
|
}),
|
|
1025
|
-
/* @__PURE__ */ h(
|
|
1026
|
-
className:
|
|
1346
|
+
/* @__PURE__ */ h(O, {
|
|
1347
|
+
className: Y(Q.base.group, b && !d && Q.state.readOnlyGroup, d && Q.state.loadingGroup),
|
|
1027
1348
|
children: [
|
|
1028
|
-
/* @__PURE__ */ m(
|
|
1349
|
+
/* @__PURE__ */ m(k, {
|
|
1029
1350
|
"aria-busy": d || void 0,
|
|
1030
|
-
className: J
|
|
1351
|
+
className: Y(J.base.input, Q.base.input, d && Q.state.loadingInput),
|
|
1031
1352
|
autoComplete: e,
|
|
1032
1353
|
placeholder: y,
|
|
1033
1354
|
form: s,
|
|
1034
1355
|
ref: x
|
|
1035
1356
|
}),
|
|
1036
1357
|
/* @__PURE__ */ m(g, {
|
|
1037
|
-
className:
|
|
1358
|
+
className: Y(Q.base.stepButton, d && Q.state.loadingStepButton),
|
|
1038
1359
|
render: (e) => r("button", {
|
|
1039
1360
|
...e,
|
|
1040
1361
|
"aria-hidden": d || void 0,
|
|
@@ -1045,7 +1366,7 @@ function ut({ autoComplete: e, autoFocus: t, defaultValue: n, description: i, di
|
|
|
1045
1366
|
children: "−"
|
|
1046
1367
|
}),
|
|
1047
1368
|
/* @__PURE__ */ m(g, {
|
|
1048
|
-
className:
|
|
1369
|
+
className: Y(Q.base.stepButton, d && Q.state.loadingStepButton),
|
|
1049
1370
|
render: (e) => r("button", {
|
|
1050
1371
|
...e,
|
|
1051
1372
|
"aria-hidden": d || void 0,
|
|
@@ -1056,8 +1377,8 @@ function ut({ autoComplete: e, autoFocus: t, defaultValue: n, description: i, di
|
|
|
1056
1377
|
children: "+"
|
|
1057
1378
|
}),
|
|
1058
1379
|
d && /* @__PURE__ */ m("span", {
|
|
1059
|
-
className:
|
|
1060
|
-
children: /* @__PURE__ */ m(
|
|
1380
|
+
className: Q.base.skeleton,
|
|
1381
|
+
children: /* @__PURE__ */ m(K, {
|
|
1061
1382
|
blockSize: "100%",
|
|
1062
1383
|
inlineSize: "100%",
|
|
1063
1384
|
label: T.loading,
|
|
@@ -1066,7 +1387,7 @@ function ut({ autoComplete: e, autoFocus: t, defaultValue: n, description: i, di
|
|
|
1066
1387
|
})
|
|
1067
1388
|
]
|
|
1068
1389
|
}),
|
|
1069
|
-
/* @__PURE__ */ m(
|
|
1390
|
+
/* @__PURE__ */ m(He, {
|
|
1070
1391
|
description: E,
|
|
1071
1392
|
error: D,
|
|
1072
1393
|
loading: d
|
|
@@ -1076,8 +1397,8 @@ function ut({ autoComplete: e, autoFocus: t, defaultValue: n, description: i, di
|
|
|
1076
1397
|
}
|
|
1077
1398
|
//#endregion
|
|
1078
1399
|
//#region src/primitives/Popover/Popover.tsx
|
|
1079
|
-
function
|
|
1080
|
-
return /* @__PURE__ */ m(
|
|
1400
|
+
function Nt({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o, placement: s }) {
|
|
1401
|
+
return /* @__PURE__ */ m(Ct, {
|
|
1081
1402
|
defaultOpen: t,
|
|
1082
1403
|
dismissible: n,
|
|
1083
1404
|
onOpenChange: r,
|
|
@@ -1090,8 +1411,140 @@ function dt({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
|
|
|
1090
1411
|
});
|
|
1091
1412
|
}
|
|
1092
1413
|
//#endregion
|
|
1414
|
+
//#region src/primitives/Select/Select.tsx
|
|
1415
|
+
var Pt = {
|
|
1416
|
+
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" },
|
|
1417
|
+
compound: {},
|
|
1418
|
+
size: {},
|
|
1419
|
+
state: { readOnlyTrigger: "breeze:cursor-default breeze:bg-breeze-sunken" },
|
|
1420
|
+
variant: {}
|
|
1421
|
+
};
|
|
1422
|
+
function Ft({ items: e }) {
|
|
1423
|
+
return /* @__PURE__ */ m(A, {
|
|
1424
|
+
className: X.base.listBox,
|
|
1425
|
+
items: e,
|
|
1426
|
+
children: (e) => /* @__PURE__ */ m(j, {
|
|
1427
|
+
className: X.base.item,
|
|
1428
|
+
id: e.descriptor.id,
|
|
1429
|
+
isDisabled: e.descriptor.disabled,
|
|
1430
|
+
textValue: e.descriptor.label,
|
|
1431
|
+
value: e,
|
|
1432
|
+
children: ({ isSelected: t }) => /* @__PURE__ */ m(st, {
|
|
1433
|
+
descriptor: e.descriptor,
|
|
1434
|
+
isSelected: t
|
|
1435
|
+
})
|
|
1436
|
+
})
|
|
1437
|
+
});
|
|
1438
|
+
}
|
|
1439
|
+
function It({ form: e, interactionDisabled: t, name: n, readOnly: r }) {
|
|
1440
|
+
let i = a(xe);
|
|
1441
|
+
return !r || t || !n || i === null ? null : /* @__PURE__ */ m("input", {
|
|
1442
|
+
form: e,
|
|
1443
|
+
name: n,
|
|
1444
|
+
type: "hidden",
|
|
1445
|
+
value: i.value === null ? "" : String(i.value)
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1448
|
+
function Lt({ disabled: e, items: t, readOnly: n, triggerRef: r }) {
|
|
1449
|
+
let i = a(xe), s = e || n || t.length === 0, c = !s && (i?.isOpen ?? !1);
|
|
1450
|
+
return o(() => {
|
|
1451
|
+
s && i?.isOpen && i.setOpen(!1);
|
|
1452
|
+
}, [s, i]), /* @__PURE__ */ m(nt, {
|
|
1453
|
+
className: X.base.popover,
|
|
1454
|
+
isOpen: c,
|
|
1455
|
+
onOpenChange: (e) => i?.setOpen(e),
|
|
1456
|
+
triggerRef: r,
|
|
1457
|
+
children: /* @__PURE__ */ m(Ft, { items: t })
|
|
1458
|
+
});
|
|
1459
|
+
}
|
|
1460
|
+
function Rt({ 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 }) {
|
|
1461
|
+
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`, ee = u(null), M = l(() => p.map((e) => ({
|
|
1462
|
+
descriptor: d(e),
|
|
1463
|
+
item: e
|
|
1464
|
+
})), [d, p]), N;
|
|
1465
|
+
N = w === void 0 ? void 0 : w === null ? null : d(w).id;
|
|
1466
|
+
let P = n == null ? null : d(n).id;
|
|
1467
|
+
return /* @__PURE__ */ h(be, {
|
|
1468
|
+
"aria-label": v ? _ : void 0,
|
|
1469
|
+
autoComplete: e,
|
|
1470
|
+
autoFocus: t,
|
|
1471
|
+
className: J.base.root,
|
|
1472
|
+
defaultValue: P,
|
|
1473
|
+
form: c,
|
|
1474
|
+
id: j,
|
|
1475
|
+
isDisabled: O || S,
|
|
1476
|
+
isInvalid: k,
|
|
1477
|
+
isRequired: C,
|
|
1478
|
+
name: y,
|
|
1479
|
+
onChange: (e) => {
|
|
1480
|
+
if (S) return;
|
|
1481
|
+
let t = e === null ? void 0 : M.find(({ descriptor: t }) => t.id === String(e));
|
|
1482
|
+
b?.(t?.item ?? null);
|
|
1483
|
+
},
|
|
1484
|
+
placeholder: x,
|
|
1485
|
+
validationBehavior: "aria",
|
|
1486
|
+
value: N,
|
|
1487
|
+
children: [
|
|
1488
|
+
/* @__PURE__ */ m(Ve, {
|
|
1489
|
+
htmlFor: j,
|
|
1490
|
+
label: _,
|
|
1491
|
+
loading: v,
|
|
1492
|
+
onClick: () => ee.current?.focus()
|
|
1493
|
+
}),
|
|
1494
|
+
/* @__PURE__ */ h("div", {
|
|
1495
|
+
className: J.base.control,
|
|
1496
|
+
children: [/* @__PURE__ */ h(g, {
|
|
1497
|
+
className: Y(Pt.base.trigger, S && Pt.state.readOnlyTrigger, v && "breeze:!opacity-0"),
|
|
1498
|
+
isDisabled: O,
|
|
1499
|
+
ref: ee,
|
|
1500
|
+
render: (e) => r("button", {
|
|
1501
|
+
...e,
|
|
1502
|
+
"aria-busy": v || void 0,
|
|
1503
|
+
"aria-disabled": S || void 0,
|
|
1504
|
+
"aria-invalid": k || void 0,
|
|
1505
|
+
"data-invalid": k || void 0,
|
|
1506
|
+
type: "button"
|
|
1507
|
+
}),
|
|
1508
|
+
children: [/* @__PURE__ */ m(Se, {
|
|
1509
|
+
className: Y(X.base.content, "breeze:text-start"),
|
|
1510
|
+
children: ({ isPlaceholder: e, selectedText: t }) => e ? x ?? "" : t
|
|
1511
|
+
}), /* @__PURE__ */ m(ot, {
|
|
1512
|
+
name: "expand",
|
|
1513
|
+
size: "sm"
|
|
1514
|
+
})]
|
|
1515
|
+
}), v && /* @__PURE__ */ m("span", {
|
|
1516
|
+
className: J.base.skeleton,
|
|
1517
|
+
children: /* @__PURE__ */ m(K, {
|
|
1518
|
+
blockSize: "100%",
|
|
1519
|
+
inlineSize: "100%",
|
|
1520
|
+
label: T.loading,
|
|
1521
|
+
shape: "rectangle"
|
|
1522
|
+
})
|
|
1523
|
+
})]
|
|
1524
|
+
}),
|
|
1525
|
+
/* @__PURE__ */ m(Lt, {
|
|
1526
|
+
disabled: O,
|
|
1527
|
+
items: M,
|
|
1528
|
+
readOnly: S,
|
|
1529
|
+
triggerRef: ee
|
|
1530
|
+
}),
|
|
1531
|
+
/* @__PURE__ */ m(It, {
|
|
1532
|
+
form: c,
|
|
1533
|
+
interactionDisabled: O,
|
|
1534
|
+
name: y,
|
|
1535
|
+
readOnly: S
|
|
1536
|
+
}),
|
|
1537
|
+
/* @__PURE__ */ m(He, {
|
|
1538
|
+
description: E,
|
|
1539
|
+
error: D,
|
|
1540
|
+
loading: v
|
|
1541
|
+
})
|
|
1542
|
+
]
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
//#endregion
|
|
1093
1546
|
//#region src/primitives/Separator/Separator.tsx
|
|
1094
|
-
var
|
|
1547
|
+
var zt = {
|
|
1095
1548
|
base: { separator: "breeze:m-0 breeze:shrink-0 breeze:border-0 breeze:bg-breeze-line breeze:forced-colors:bg-[CanvasText]" },
|
|
1096
1549
|
compound: {},
|
|
1097
1550
|
size: {},
|
|
@@ -1101,15 +1554,15 @@ var ft = {
|
|
|
1101
1554
|
vertical: "breeze:block-size-full breeze:inline-size-breeze-px"
|
|
1102
1555
|
}
|
|
1103
1556
|
};
|
|
1104
|
-
function
|
|
1557
|
+
function Bt({ orientation: e = "horizontal" }) {
|
|
1105
1558
|
return /* @__PURE__ */ m("hr", {
|
|
1106
1559
|
"aria-orientation": e,
|
|
1107
|
-
className: [
|
|
1560
|
+
className: [zt.base.separator, zt.variant[e]].join(" ")
|
|
1108
1561
|
});
|
|
1109
1562
|
}
|
|
1110
1563
|
//#endregion
|
|
1111
1564
|
//#region src/primitives/Stack/Stack.tsx
|
|
1112
|
-
var
|
|
1565
|
+
var Vt = {
|
|
1113
1566
|
base: { stack: "breeze:flex breeze:min-inline-size-0 breeze:flex-col" },
|
|
1114
1567
|
compound: {},
|
|
1115
1568
|
size: {
|
|
@@ -1131,24 +1584,24 @@ var mt = {
|
|
|
1131
1584
|
stretch: "breeze:items-stretch"
|
|
1132
1585
|
}
|
|
1133
1586
|
};
|
|
1134
|
-
function
|
|
1135
|
-
let { accessibleLabel: o, role: s } =
|
|
1587
|
+
function Ht({ "aria-label": e, children: t, element: n = "div", gap: i = 3, horizontalAlign: a = "stretch" }) {
|
|
1588
|
+
let { accessibleLabel: o, role: s } = Re(e, n);
|
|
1136
1589
|
return r(n, {
|
|
1137
1590
|
"aria-label": o,
|
|
1138
1591
|
className: [
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1592
|
+
Vt.base.stack,
|
|
1593
|
+
Vt.variant[a],
|
|
1594
|
+
Vt.size[i]
|
|
1142
1595
|
].join(" "),
|
|
1143
1596
|
role: s
|
|
1144
1597
|
}, t);
|
|
1145
1598
|
}
|
|
1146
1599
|
//#endregion
|
|
1147
1600
|
//#region src/primitives/TextField/TextField.tsx
|
|
1148
|
-
function
|
|
1149
|
-
let { messages: b } =
|
|
1150
|
-
return /* @__PURE__ */ h(
|
|
1151
|
-
className:
|
|
1601
|
+
function Ut({ 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 }) {
|
|
1602
|
+
let { messages: b } = G(), x = r?.trim() || void 0, S = a?.trim() || void 0, C = i || l;
|
|
1603
|
+
return /* @__PURE__ */ h(Ce, {
|
|
1604
|
+
className: J.base.root,
|
|
1152
1605
|
defaultValue: n,
|
|
1153
1606
|
"aria-label": l ? c : void 0,
|
|
1154
1607
|
id: s,
|
|
@@ -1162,23 +1615,23 @@ function gt({ autoComplete: e, autoFocus: t, defaultValue: n, description: r, di
|
|
|
1162
1615
|
validationBehavior: "aria",
|
|
1163
1616
|
value: y,
|
|
1164
1617
|
children: [
|
|
1165
|
-
/* @__PURE__ */ m(
|
|
1618
|
+
/* @__PURE__ */ m(Ve, {
|
|
1166
1619
|
label: c,
|
|
1167
1620
|
loading: l
|
|
1168
1621
|
}),
|
|
1169
1622
|
/* @__PURE__ */ h("span", {
|
|
1170
|
-
className:
|
|
1171
|
-
children: [/* @__PURE__ */ m(
|
|
1623
|
+
className: J.base.control,
|
|
1624
|
+
children: [/* @__PURE__ */ m(k, {
|
|
1172
1625
|
"aria-busy": l || void 0,
|
|
1173
|
-
className: J
|
|
1626
|
+
className: Y(J.base.input, l && J.state.loadingInput),
|
|
1174
1627
|
autoComplete: e,
|
|
1175
1628
|
autoFocus: t,
|
|
1176
1629
|
form: o,
|
|
1177
1630
|
placeholder: f,
|
|
1178
1631
|
ref: g
|
|
1179
1632
|
}), l && /* @__PURE__ */ m("span", {
|
|
1180
|
-
className:
|
|
1181
|
-
children: /* @__PURE__ */ m(
|
|
1633
|
+
className: J.base.skeleton,
|
|
1634
|
+
children: /* @__PURE__ */ m(K, {
|
|
1182
1635
|
blockSize: "100%",
|
|
1183
1636
|
inlineSize: "100%",
|
|
1184
1637
|
label: b.loading,
|
|
@@ -1186,7 +1639,7 @@ function gt({ autoComplete: e, autoFocus: t, defaultValue: n, description: r, di
|
|
|
1186
1639
|
})
|
|
1187
1640
|
})]
|
|
1188
1641
|
}),
|
|
1189
|
-
/* @__PURE__ */ m(
|
|
1642
|
+
/* @__PURE__ */ m(He, {
|
|
1190
1643
|
description: x,
|
|
1191
1644
|
error: S,
|
|
1192
1645
|
loading: l
|
|
@@ -1196,18 +1649,18 @@ function gt({ autoComplete: e, autoFocus: t, defaultValue: n, description: r, di
|
|
|
1196
1649
|
}
|
|
1197
1650
|
//#endregion
|
|
1198
1651
|
//#region src/primitives/Toast/Toast.tsx
|
|
1199
|
-
var
|
|
1200
|
-
function
|
|
1652
|
+
var Wt = 2600, Gt = "BreezeProvider toastLimit must be a positive integer.", Kt = "Toast components must be rendered within BreezeProvider.";
|
|
1653
|
+
function qt(e) {
|
|
1201
1654
|
return e.isIntersecting && e.intersectionRatio >= 1;
|
|
1202
1655
|
}
|
|
1203
|
-
function
|
|
1656
|
+
function Jt(e, t, n, r) {
|
|
1204
1657
|
let i = Number(e.target.dataset.breezeToastId);
|
|
1205
|
-
t.has(i) && (
|
|
1658
|
+
t.has(i) && (qt(e) ? n(i) : r(i));
|
|
1206
1659
|
}
|
|
1207
|
-
var
|
|
1208
|
-
function
|
|
1209
|
-
|
|
1210
|
-
let t = a(
|
|
1660
|
+
var Yt = n(null), Xt = n(!0), Zt = n(null);
|
|
1661
|
+
function Qt({ children: e }) {
|
|
1662
|
+
G();
|
|
1663
|
+
let t = a(Xt), n = a(Zt), [r, i] = d(() => n?.message ?? null);
|
|
1211
1664
|
return o(() => {
|
|
1212
1665
|
if (!t || typeof document < "u" && document.hidden || r === e) return;
|
|
1213
1666
|
let a = setTimeout(() => {
|
|
@@ -1225,15 +1678,15 @@ function Tt({ children: e }) {
|
|
|
1225
1678
|
"aria-live": "polite",
|
|
1226
1679
|
className: "breeze-toast",
|
|
1227
1680
|
role: "status",
|
|
1228
|
-
children: [/* @__PURE__ */ m(
|
|
1681
|
+
children: [/* @__PURE__ */ m(ot, {
|
|
1229
1682
|
name: "check",
|
|
1230
1683
|
size: "sm"
|
|
1231
1684
|
}), /* @__PURE__ */ m("span", { children: r })]
|
|
1232
1685
|
});
|
|
1233
1686
|
}
|
|
1234
|
-
function
|
|
1235
|
-
let n =
|
|
1236
|
-
if (!Number.isInteger(t) || t < 1) throw RangeError(
|
|
1687
|
+
function $t({ children: e, limit: t }) {
|
|
1688
|
+
let n = $e(), r = qe(), 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());
|
|
1689
|
+
if (!Number.isInteger(t) || t < 1) throw RangeError(Gt);
|
|
1237
1690
|
let b = i((e, t) => {
|
|
1238
1691
|
let n = y.current.get(e);
|
|
1239
1692
|
n !== void 0 && (n.message = t);
|
|
@@ -1268,7 +1721,7 @@ function Et({ children: e, limit: t }) {
|
|
|
1268
1721
|
if (!s || typeof document < "u" && document.hidden || t !== void 0 && t.handle !== null) return;
|
|
1269
1722
|
let n = t ?? {
|
|
1270
1723
|
handle: null,
|
|
1271
|
-
remaining:
|
|
1724
|
+
remaining: Wt,
|
|
1272
1725
|
startedAt: null
|
|
1273
1726
|
};
|
|
1274
1727
|
if (n.remaining <= 0) {
|
|
@@ -1302,7 +1755,7 @@ function Et({ children: e, limit: t }) {
|
|
|
1302
1755
|
}
|
|
1303
1756
|
let o, c = setTimeout(() => {
|
|
1304
1757
|
o = new IntersectionObserver((e) => {
|
|
1305
|
-
e.forEach((e) =>
|
|
1758
|
+
e.forEach((e) => Jt(e, r, D, w));
|
|
1306
1759
|
}, { threshold: 1 }), Array.from(i.children).forEach((e) => {
|
|
1307
1760
|
e instanceof HTMLElement && e.dataset.breezeToastId !== void 0 && !e.hidden && o?.observe(e);
|
|
1308
1761
|
});
|
|
@@ -1319,29 +1772,29 @@ function Et({ children: e, limit: t }) {
|
|
|
1319
1772
|
E,
|
|
1320
1773
|
D
|
|
1321
1774
|
]), o(() => C, [C]);
|
|
1322
|
-
let
|
|
1323
|
-
return /* @__PURE__ */ m(
|
|
1775
|
+
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));
|
|
1776
|
+
return /* @__PURE__ */ m(Xt, {
|
|
1324
1777
|
value: s,
|
|
1325
|
-
children: /* @__PURE__ */ h(
|
|
1778
|
+
children: /* @__PURE__ */ h(Yt, {
|
|
1326
1779
|
value: x,
|
|
1327
|
-
children: [e, n &&
|
|
1780
|
+
children: [e, n && we(/* @__PURE__ */ m("div", {
|
|
1328
1781
|
ref: a,
|
|
1329
1782
|
className: "breeze-toast-region",
|
|
1330
1783
|
"data-breeze-toast-region": "",
|
|
1331
1784
|
"data-live-announcer": "",
|
|
1332
1785
|
"data-react-aria-top-layer": "",
|
|
1333
1786
|
style: { zIndex: r },
|
|
1334
|
-
children:
|
|
1335
|
-
let n = !
|
|
1787
|
+
children: A.map(({ id: e, message: t }) => {
|
|
1788
|
+
let n = !k.has(e);
|
|
1336
1789
|
return /* @__PURE__ */ m("div", {
|
|
1337
1790
|
"aria-hidden": n ? "true" : void 0,
|
|
1338
1791
|
"data-breeze-toast-id": e,
|
|
1339
1792
|
hidden: n,
|
|
1340
|
-
children: /* @__PURE__ */ m(
|
|
1793
|
+
children: /* @__PURE__ */ m(Zt, {
|
|
1341
1794
|
value: y.current.get(e) ?? null,
|
|
1342
|
-
children: /* @__PURE__ */ m(
|
|
1795
|
+
children: /* @__PURE__ */ m(Xt, {
|
|
1343
1796
|
value: s && !n,
|
|
1344
|
-
children: /* @__PURE__ */ m(
|
|
1797
|
+
children: /* @__PURE__ */ m(Qt, { children: t })
|
|
1345
1798
|
})
|
|
1346
1799
|
})
|
|
1347
1800
|
}, e);
|
|
@@ -1350,14 +1803,14 @@ function Et({ children: e, limit: t }) {
|
|
|
1350
1803
|
})
|
|
1351
1804
|
});
|
|
1352
1805
|
}
|
|
1353
|
-
function
|
|
1354
|
-
let e = a(
|
|
1355
|
-
if (e === null) throw Error(
|
|
1806
|
+
function en() {
|
|
1807
|
+
let e = a(Yt);
|
|
1808
|
+
if (e === null) throw Error(Kt);
|
|
1356
1809
|
return e;
|
|
1357
1810
|
}
|
|
1358
1811
|
//#endregion
|
|
1359
1812
|
//#region src/primitives/Typography/Typography.tsx
|
|
1360
|
-
var
|
|
1813
|
+
var $ = {
|
|
1361
1814
|
base: { text: "breeze:m-0 breeze:font-breeze-sans" },
|
|
1362
1815
|
compound: {},
|
|
1363
1816
|
size: {},
|
|
@@ -1393,10 +1846,10 @@ var Q = {
|
|
|
1393
1846
|
}
|
|
1394
1847
|
}
|
|
1395
1848
|
};
|
|
1396
|
-
function
|
|
1849
|
+
function tn(e) {
|
|
1397
1850
|
return e === "heading" ? "h2" : e === "title" ? "h3" : e === "body" ? "p" : "span";
|
|
1398
1851
|
}
|
|
1399
|
-
function
|
|
1852
|
+
function nn(e, t, n, r) {
|
|
1400
1853
|
let i;
|
|
1401
1854
|
try {
|
|
1402
1855
|
i = new Intl.NumberFormat(n, {
|
|
@@ -1410,10 +1863,10 @@ function kt(e, t, n, r) {
|
|
|
1410
1863
|
}
|
|
1411
1864
|
return i.map((e) => e.type === "minusSign" ? "−" : e.value).join("");
|
|
1412
1865
|
}
|
|
1413
|
-
function
|
|
1866
|
+
function rn(e, t, n) {
|
|
1414
1867
|
let r;
|
|
1415
1868
|
try {
|
|
1416
|
-
r =
|
|
1869
|
+
r = Te(e).toDate("UTC");
|
|
1417
1870
|
} catch {
|
|
1418
1871
|
return e;
|
|
1419
1872
|
}
|
|
@@ -1422,15 +1875,15 @@ function At(e, t, n) {
|
|
|
1422
1875
|
timeZone: "UTC"
|
|
1423
1876
|
}).format(r);
|
|
1424
1877
|
}
|
|
1425
|
-
function
|
|
1426
|
-
return e.loading ? /* @__PURE__ */ m(
|
|
1878
|
+
function an(e, t, n) {
|
|
1879
|
+
return e.loading ? /* @__PURE__ */ m(K, {
|
|
1427
1880
|
blockSize: "1lh",
|
|
1428
1881
|
inlineSize: "8em",
|
|
1429
1882
|
label: n
|
|
1430
|
-
}) : e.format === "currency" ?
|
|
1883
|
+
}) : e.format === "currency" ? nn(e.value, e.currency, t, e.sign ?? "auto") : e.format === "date" ? rn(e.value, t, e.dateStyle) : e.children;
|
|
1431
1884
|
}
|
|
1432
|
-
function
|
|
1433
|
-
let { locale: t, messages: n } =
|
|
1885
|
+
function on(e) {
|
|
1886
|
+
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 ?? tn(_), y = i?.trim() || void 0, b = a ?? (_ === "money" || d ? "end" : "start"), x = a !== void 0 || _ === "money" || d, S = an(e, t, n.loading), C = c !== void 0 || typeof o == "string" || typeof o == "number", w = !u && y !== void 0 && !C && [
|
|
1434
1887
|
"h1",
|
|
1435
1888
|
"h2",
|
|
1436
1889
|
"h3",
|
|
@@ -1439,18 +1892,18 @@ function Mt(e) {
|
|
|
1439
1892
|
return !u && y !== void 0 && C && (S = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
|
|
1440
1893
|
"aria-hidden": "true",
|
|
1441
1894
|
children: S
|
|
1442
|
-
}), /* @__PURE__ */ m(
|
|
1895
|
+
}), /* @__PURE__ */ m(Ne, { children: y })] })), r(v, {
|
|
1443
1896
|
"aria-busy": u || void 0,
|
|
1444
1897
|
"aria-label": T || w ? y : void 0,
|
|
1445
1898
|
className: [
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
x &&
|
|
1451
|
-
u && v === "span" && !x &&
|
|
1452
|
-
d && _ !== "money" &&
|
|
1453
|
-
g &&
|
|
1899
|
+
$.base.text,
|
|
1900
|
+
$.variant.role[_],
|
|
1901
|
+
$.variant.tone[f],
|
|
1902
|
+
$.variant.align[b],
|
|
1903
|
+
x && $.state.aligned,
|
|
1904
|
+
u && v === "span" && !x && $.state.inlineLoading,
|
|
1905
|
+
d && _ !== "money" && $.state.numeric,
|
|
1906
|
+
g && $.state.truncate
|
|
1454
1907
|
].filter(Boolean).join(" "),
|
|
1455
1908
|
id: l,
|
|
1456
1909
|
lang: t,
|
|
@@ -1459,7 +1912,7 @@ function Mt(e) {
|
|
|
1459
1912
|
}
|
|
1460
1913
|
//#endregion
|
|
1461
1914
|
//#region src/provider/en-GB.ts
|
|
1462
|
-
var
|
|
1915
|
+
var sn = {
|
|
1463
1916
|
appearance: "Appearance",
|
|
1464
1917
|
appearanceAutomatic: "Auto",
|
|
1465
1918
|
appearanceDark: "Dark",
|
|
@@ -1469,11 +1922,11 @@ var $ = {
|
|
|
1469
1922
|
};
|
|
1470
1923
|
//#endregion
|
|
1471
1924
|
//#region src/provider/BreezeProvider.tsx
|
|
1472
|
-
function
|
|
1925
|
+
function cn(e, t) {
|
|
1473
1926
|
return e === "automatic" ? t ? "dark" : "light" : e;
|
|
1474
1927
|
}
|
|
1475
|
-
function
|
|
1476
|
-
let { direction: t, locale: n } =
|
|
1928
|
+
function ln({ children: e }) {
|
|
1929
|
+
let { direction: t, locale: n } = P();
|
|
1477
1930
|
return /* @__PURE__ */ m("div", {
|
|
1478
1931
|
"data-breeze-root": "",
|
|
1479
1932
|
dir: t,
|
|
@@ -1481,8 +1934,8 @@ function Pt({ children: e }) {
|
|
|
1481
1934
|
children: e
|
|
1482
1935
|
});
|
|
1483
1936
|
}
|
|
1484
|
-
function
|
|
1485
|
-
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 =
|
|
1937
|
+
function un({ appearance: e, children: t, defaultAppearance: n = "automatic", locale: r, messages: a, onAppearanceChange: s, portalContainer: u, toastLimit: f = 3 }) {
|
|
1938
|
+
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 = cn(y, h);
|
|
1486
1939
|
o(() => {
|
|
1487
1940
|
if (!p) return;
|
|
1488
1941
|
g(p.matches);
|
|
@@ -1499,20 +1952,20 @@ function Ft({ appearance: e, children: t, defaultAppearance: n = "automatic", lo
|
|
|
1499
1952
|
let x = i((t) => {
|
|
1500
1953
|
e === void 0 && v(t), s?.(t);
|
|
1501
1954
|
}, [e, s]), S = i((e) => a?.[e] === void 0 ? "en-GB" : r, [r, a]);
|
|
1502
|
-
return /* @__PURE__ */ m(
|
|
1955
|
+
return /* @__PURE__ */ m(N, {
|
|
1503
1956
|
locale: r,
|
|
1504
|
-
children: /* @__PURE__ */ m(
|
|
1957
|
+
children: /* @__PURE__ */ m(Ee, {
|
|
1505
1958
|
value: l(() => ({
|
|
1506
1959
|
appearance: y,
|
|
1507
1960
|
getMessageLocale: S,
|
|
1508
1961
|
locale: r,
|
|
1509
1962
|
messages: {
|
|
1510
|
-
appearance: a?.appearance ??
|
|
1511
|
-
appearanceAutomatic: a?.appearanceAutomatic ??
|
|
1512
|
-
appearanceDark: a?.appearanceDark ??
|
|
1513
|
-
appearanceLight: a?.appearanceLight ??
|
|
1514
|
-
close: a?.close ??
|
|
1515
|
-
loading: a?.loading ??
|
|
1963
|
+
appearance: a?.appearance ?? sn.appearance,
|
|
1964
|
+
appearanceAutomatic: a?.appearanceAutomatic ?? sn.appearanceAutomatic,
|
|
1965
|
+
appearanceDark: a?.appearanceDark ?? sn.appearanceDark,
|
|
1966
|
+
appearanceLight: a?.appearanceLight ?? sn.appearanceLight,
|
|
1967
|
+
close: a?.close ?? sn.close,
|
|
1968
|
+
loading: a?.loading ?? sn.loading
|
|
1516
1969
|
},
|
|
1517
1970
|
resolvedAppearance: b,
|
|
1518
1971
|
setAppearance: x
|
|
@@ -1524,18 +1977,18 @@ function Ft({ appearance: e, children: t, defaultAppearance: n = "automatic", lo
|
|
|
1524
1977
|
b,
|
|
1525
1978
|
x
|
|
1526
1979
|
]),
|
|
1527
|
-
children: /* @__PURE__ */ m(
|
|
1980
|
+
children: /* @__PURE__ */ m(Qe, {
|
|
1528
1981
|
locale: r,
|
|
1529
1982
|
portalContainer: u,
|
|
1530
|
-
children: /* @__PURE__ */ m(
|
|
1983
|
+
children: /* @__PURE__ */ m($t, {
|
|
1531
1984
|
limit: f,
|
|
1532
|
-
children: /* @__PURE__ */ m(
|
|
1985
|
+
children: /* @__PURE__ */ m(ln, { children: t })
|
|
1533
1986
|
})
|
|
1534
1987
|
})
|
|
1535
1988
|
})
|
|
1536
1989
|
});
|
|
1537
1990
|
}
|
|
1538
1991
|
//#endregion
|
|
1539
|
-
export {
|
|
1992
|
+
export { Ae as AppearanceControl, Fe as Badge, un as BreezeProvider, Le as Button, Be as Card, We as Checkbox, gt as ComboBox, vt as Container, wt as Dialog, Tt as Drawer, Dt as Grid, ot as Icon, kt as IconTile, jt as Inline, Mt as NumberField, Nt as Popover, Rt as Select, Bt as Separator, K as Skeleton, Ht as Stack, Ut as TextField, Qt as Toast, on as Typography, Ne as VisuallyHidden, en as useToast };
|
|
1540
1993
|
|
|
1541
1994
|
//# sourceMappingURL=index.js.map
|