@motech-development/breeze-ui 4.10.0 → 4.12.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 +12 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1401 -1072
- package/lib/index.js.map +1 -1
- package/lib/patterns/ApplicationShell/ApplicationShell.d.ts +50 -0
- package/lib/patterns/ApplicationShell/ApplicationShell.d.ts.map +1 -0
- package/lib/patterns/FormActions/FormActions.d.ts +27 -0
- package/lib/patterns/FormActions/FormActions.d.ts.map +1 -0
- package/lib/patterns/FormSection/FormSection.d.ts +13 -0
- package/lib/patterns/FormSection/FormSection.d.ts.map +1 -0
- package/lib/patterns/PageHeader/PageHeader.d.ts +17 -0
- package/lib/patterns/PageHeader/PageHeader.d.ts.map +1 -0
- package/lib/patterns/StatePanel/StatePanel.d.ts +25 -0
- package/lib/patterns/StatePanel/StatePanel.d.ts.map +1 -0
- package/lib/primitives/Link/Link.d.ts.map +1 -1
- package/lib/primitives/Link/link-routing.d.ts +6 -0
- package/lib/primitives/Link/link-routing.d.ts.map +1 -0
- package/lib/primitives/SkipLink/SkipLink.d.ts +12 -0
- package/lib/primitives/SkipLink/SkipLink.d.ts.map +1 -0
- 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 -1
package/lib/index.js
CHANGED
|
@@ -2,34 +2,34 @@ import { createContext as e, createElement as t, useCallback as n, useContext as
|
|
|
2
2
|
import { ToggleButton as d } from "react-aria-components/ToggleButton";
|
|
3
3
|
import { ToggleButtonGroup as f } from "react-aria-components/ToggleButtonGroup";
|
|
4
4
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { useObjectRef as
|
|
12
|
-
import { CheckboxButton as
|
|
13
|
-
import { FieldError as
|
|
14
|
-
import { Label as
|
|
15
|
-
import { Text as
|
|
16
|
-
import { ComboBox as
|
|
17
|
-
import { Group as
|
|
18
|
-
import { Input as
|
|
19
|
-
import { ListBox as
|
|
20
|
-
import { Popover as
|
|
21
|
-
import { UNSAFE_PortalProvider as
|
|
22
|
-
import { I18nProvider as
|
|
23
|
-
import { Dialog as
|
|
24
|
-
import { Modal as
|
|
25
|
-
import { Menu as
|
|
26
|
-
import { NumberField as
|
|
27
|
-
import { GridList as
|
|
28
|
-
import { Select as
|
|
29
|
-
import { TextField as
|
|
30
|
-
import { createPortal as
|
|
5
|
+
import { ArrowDownLeft as g, ArrowUpRight as _, Bell as v, Building2 as y, CalendarDays as b, Camera as x, Check as S, ChevronDown as C, ChevronLeft as w, ChevronRight as T, Clock3 as E, Download as D, Ellipsis as O, FileText as k, House as A, List as j, LockKeyhole as ee, LogOut as M, Plus as te, Settings as ne, Trash2 as N, TriangleAlert as re, Upload as P, Users as F, X as I } from "lucide-react";
|
|
6
|
+
import { parseDate as ie } from "@internationalized/date";
|
|
7
|
+
import { Button as ae } from "react-aria-components/Button";
|
|
8
|
+
import { ProgressBarContext as L } from "react-aria-components/ProgressBar";
|
|
9
|
+
import { useSlottedContext as R } from "react-aria-components/slots";
|
|
10
|
+
import { Calendar as oe, CalendarCell as se, CalendarGrid as ce, CalendarGridBody as le, CalendarGridHeader as ue, CalendarHeaderCell as z, CalendarHeading as de } from "react-aria-components/Calendar";
|
|
11
|
+
import { useObjectRef as fe } from "react-aria/useObjectRef";
|
|
12
|
+
import { CheckboxButton as pe, CheckboxField as me } from "react-aria-components/Checkbox";
|
|
13
|
+
import { FieldError as he } from "react-aria-components/FieldError";
|
|
14
|
+
import { Label as ge } from "react-aria-components/Label";
|
|
15
|
+
import { Text as _e } from "react-aria-components/Text";
|
|
16
|
+
import { ComboBox as ve, ComboBoxStateContext as ye, useFilter as be } from "react-aria-components/ComboBox";
|
|
17
|
+
import { Group as xe } from "react-aria-components/Group";
|
|
18
|
+
import { Input as Se } from "react-aria-components/Input";
|
|
19
|
+
import { ListBox as Ce, ListBoxItem as we } from "react-aria-components/ListBox";
|
|
20
|
+
import { Popover as Te } from "react-aria-components/Popover";
|
|
21
|
+
import { UNSAFE_PortalProvider as Ee } from "react-aria/PortalProvider";
|
|
22
|
+
import { I18nProvider as De, useLocale as Oe } from "react-aria-components/I18nProvider";
|
|
23
|
+
import { Dialog as ke } from "react-aria-components/Dialog";
|
|
24
|
+
import { Modal as Ae, ModalOverlay as je } from "react-aria-components/Modal";
|
|
25
|
+
import { Menu as Me, MenuItem as Ne, MenuTrigger as Pe } from "react-aria-components/Menu";
|
|
26
|
+
import { NumberField as Fe } from "react-aria-components/NumberField";
|
|
27
|
+
import { GridList as Ie, GridListHeader as Le, GridListItem as Re, GridListSection as ze } from "react-aria-components/GridList";
|
|
28
|
+
import { Select as Be, SelectStateContext as Ve, SelectValue as He } from "react-aria-components/Select";
|
|
29
|
+
import { TextField as Ue } from "react-aria-components/TextField";
|
|
30
|
+
import { createPortal as We } from "react-dom";
|
|
31
31
|
//#region src/overlays/OverlayStack.ts
|
|
32
|
-
function
|
|
32
|
+
function Ge() {
|
|
33
33
|
let e = [], t = /* @__PURE__ */ new Set(), n = () => t.forEach((e) => e());
|
|
34
34
|
return {
|
|
35
35
|
getSnapshot: () => e,
|
|
@@ -45,15 +45,15 @@ function He() {
|
|
|
45
45
|
})
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
var
|
|
49
|
-
function
|
|
50
|
-
let e = r(
|
|
48
|
+
var Ke = e(null);
|
|
49
|
+
function qe() {
|
|
50
|
+
let e = r(Ke);
|
|
51
51
|
if (!e) throw Error("Breeze components must be rendered within BreezeProvider.");
|
|
52
52
|
return 100 + u(e.subscribe, e.getSnapshot, e.getSnapshot).length * 2;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
56
|
-
let i = r(
|
|
54
|
+
var Je = e(null);
|
|
55
|
+
function Ye(e, t, n) {
|
|
56
|
+
let i = r(Ke), s = r(Je), c = a();
|
|
57
57
|
if (!i) throw Error("Breeze components must be rendered within BreezeProvider.");
|
|
58
58
|
let l = u(i.subscribe, i.getSnapshot, i.getSnapshot), d = s?.id;
|
|
59
59
|
o(() => () => i.remove(c), [c, i]), o(() => {
|
|
@@ -92,21 +92,21 @@ function Ke(e, t, n) {
|
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region src/provider/BreezeContext.ts
|
|
95
|
-
var
|
|
96
|
-
function
|
|
97
|
-
let e = r(
|
|
95
|
+
var Xe = e(null);
|
|
96
|
+
function B() {
|
|
97
|
+
let e = r(Xe);
|
|
98
98
|
if (e === null) throw Error("Breeze components must be rendered within BreezeProvider.");
|
|
99
99
|
return e;
|
|
100
100
|
}
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region src/motion/view-transitions.ts
|
|
103
|
-
var
|
|
103
|
+
var Ze = /* @__PURE__ */ new Set([
|
|
104
104
|
"nav",
|
|
105
105
|
"mode",
|
|
106
106
|
"list",
|
|
107
107
|
"item",
|
|
108
108
|
"expand"
|
|
109
|
-
]),
|
|
109
|
+
]), Qe = /^[a-zA-Z_][a-zA-Z0-9_-]*$/, $e = /* @__PURE__ */ new Set([
|
|
110
110
|
"auto",
|
|
111
111
|
"default",
|
|
112
112
|
"inherit",
|
|
@@ -121,7 +121,7 @@ var Je = /* @__PURE__ */ new Set([
|
|
|
121
121
|
"breeze-topbar",
|
|
122
122
|
"breeze-topnav",
|
|
123
123
|
"match-element"
|
|
124
|
-
]),
|
|
124
|
+
]), et = {
|
|
125
125
|
botnav: {
|
|
126
126
|
name: "breeze-botnav",
|
|
127
127
|
types: ["nav", "mode"]
|
|
@@ -139,26 +139,26 @@ var Je = /* @__PURE__ */ new Set([
|
|
|
139
139
|
types: ["nav", "mode"]
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
|
-
function
|
|
142
|
+
function tt(e) {
|
|
143
143
|
let t = [...new Set(e)];
|
|
144
|
-
if (t.some((e) => !
|
|
144
|
+
if (t.some((e) => !Ze.has(e))) throw TypeError("Breeze view transition types must be nav, mode, list, item or expand.");
|
|
145
145
|
return t;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function nt(e, t) {
|
|
148
148
|
let n = e.defaultView, r = n?.ViewTransition, i = n?.CSS?.supports;
|
|
149
149
|
return t.length > 0 && typeof e.startViewTransition == "function" && typeof r == "function" && "types" in r.prototype && typeof i == "function" && t.every((e) => i.call(n?.CSS, `selector(:active-view-transition-type(${e}))`));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function rt(e) {
|
|
152
152
|
return e.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function it(e, t) {
|
|
155
155
|
if (!e.isConnected || e.matches("[data-breeze-overlay]") || e.closest("[hidden]") !== null || e.getClientRects().length === 0) return !1;
|
|
156
156
|
let n = t.defaultView?.getComputedStyle(e);
|
|
157
157
|
return n !== void 0 && n.display !== "none" && n.visibility !== "hidden" && n.visibility !== "collapse";
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function at(e, t, n) {
|
|
160
160
|
if (process.env.NODE_ENV === "production") return;
|
|
161
|
-
let r = Array.from(e.querySelectorAll("[data-breeze-transition-enabled=\"true\"][data-breeze-transition-name]")).filter((t) =>
|
|
161
|
+
let r = Array.from(e.querySelectorAll("[data-breeze-transition-enabled=\"true\"][data-breeze-transition-name]")).filter((t) => it(t, e)), i = /* @__PURE__ */ new Map();
|
|
162
162
|
r.forEach((e) => {
|
|
163
163
|
if ((e.dataset.breezeTransitionTypes?.split(/\s+/))?.some((e) => t.includes(e))) {
|
|
164
164
|
let t = e.dataset.breezeTransitionName;
|
|
@@ -168,28 +168,28 @@ function nt(e, t, n) {
|
|
|
168
168
|
e > 1 && console.error(`Breeze view transition types "${t.join(", ")}" have duplicate participant name "${r}" in the ${n} snapshot. Eligible names must be unique in both snapshots.`);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
var
|
|
172
|
-
function
|
|
173
|
-
let n =
|
|
174
|
-
if (r === void 0 || n.length === 0 ||
|
|
171
|
+
var ot = /* @__PURE__ */ new WeakMap();
|
|
172
|
+
function st(e, t) {
|
|
173
|
+
let n = tt(t), { document: r } = globalThis;
|
|
174
|
+
if (r === void 0 || n.length === 0 || !nt(r, n) || rt(r)) try {
|
|
175
175
|
return Promise.resolve(e());
|
|
176
176
|
} catch (e) {
|
|
177
177
|
return Promise.reject(e instanceof Error ? e : Error(String(e)));
|
|
178
178
|
}
|
|
179
|
-
|
|
179
|
+
at(r, n, "old"), ot.get(r)?.skipTransition();
|
|
180
180
|
let i = r.startViewTransition({
|
|
181
181
|
types: n,
|
|
182
182
|
update: async () => {
|
|
183
|
-
await e(),
|
|
183
|
+
await e(), at(r, n, "new");
|
|
184
184
|
}
|
|
185
185
|
});
|
|
186
|
-
|
|
186
|
+
ot.set(r, i), i.ready.catch(() => void 0);
|
|
187
187
|
let a = () => {
|
|
188
|
-
|
|
188
|
+
ot.get(r) === i && ot.delete(r);
|
|
189
189
|
};
|
|
190
190
|
return i.finished.then(a, a), i.updateCallbackDone;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function ct(e) {
|
|
193
193
|
let t = [], n = (r) => {
|
|
194
194
|
if (t.includes(r)) return;
|
|
195
195
|
let i = e.find((e) => e.id === r.parent);
|
|
@@ -202,12 +202,12 @@ function at(e) {
|
|
|
202
202
|
};
|
|
203
203
|
return t.filter(r);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
|
|
207
|
-
let t = r(
|
|
205
|
+
function lt(e) {
|
|
206
|
+
B();
|
|
207
|
+
let t = r(Ke), i = r(Je);
|
|
208
208
|
if (t === null) throw Error("Breeze components must be rendered within BreezeProvider.");
|
|
209
|
-
let a =
|
|
210
|
-
if (!
|
|
209
|
+
let a = ct(u(t.subscribe, t.getSnapshot, t.getSnapshot)), o = i ? a.at(-1)?.id === i.id : a.length === 0, s = "role" in e ? et[e.role] : void 0, c = s?.name ?? e.name, l = tt(s?.types ?? e.types);
|
|
210
|
+
if (!Qe.test(c) || s === void 0 && $e.has(c.toLowerCase())) throw TypeError("Breeze transition participant names must be CSS custom identifiers and cannot use a name reserved by the browser or Breeze.");
|
|
211
211
|
if (l.length === 0) throw RangeError("Breeze transition participants require at least one transition type.");
|
|
212
212
|
let d = l.join(" ");
|
|
213
213
|
return n((e) => {
|
|
@@ -224,7 +224,7 @@ function ot(e) {
|
|
|
224
224
|
}
|
|
225
225
|
//#endregion
|
|
226
226
|
//#region src/patterns/AppearanceControl/AppearanceControl.tsx
|
|
227
|
-
var
|
|
227
|
+
var ut = {
|
|
228
228
|
base: {
|
|
229
229
|
control: "breeze:flex breeze:items-center breeze:gap-breeze-2 breeze:font-breeze-sans",
|
|
230
230
|
group: "breeze:flex breeze:items-center breeze:gap-breeze-2",
|
|
@@ -235,7 +235,7 @@ var st = {
|
|
|
235
235
|
size: {},
|
|
236
236
|
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" },
|
|
237
237
|
variant: {}
|
|
238
|
-
},
|
|
238
|
+
}, dt = [
|
|
239
239
|
{
|
|
240
240
|
message: "appearanceLight",
|
|
241
241
|
value: "light"
|
|
@@ -249,30 +249,30 @@ var st = {
|
|
|
249
249
|
value: "dark"
|
|
250
250
|
}
|
|
251
251
|
];
|
|
252
|
-
function
|
|
253
|
-
return
|
|
252
|
+
function ft(e) {
|
|
253
|
+
return dt.some((t) => t.value === e);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
let { appearance: e, getMessageLocale: t, messages: n, setAppearance: r } =
|
|
255
|
+
function pt() {
|
|
256
|
+
let { appearance: e, getMessageLocale: t, messages: n, setAppearance: r } = B();
|
|
257
257
|
return /* @__PURE__ */ h("div", {
|
|
258
|
-
className:
|
|
258
|
+
className: ut.base.control,
|
|
259
259
|
children: [/* @__PURE__ */ m("span", {
|
|
260
|
-
className:
|
|
260
|
+
className: ut.base.label,
|
|
261
261
|
lang: t("appearance"),
|
|
262
262
|
children: n.appearance
|
|
263
263
|
}), /* @__PURE__ */ m(f, {
|
|
264
264
|
"aria-label": n.appearance,
|
|
265
|
-
className:
|
|
265
|
+
className: ut.base.group,
|
|
266
266
|
disallowEmptySelection: !0,
|
|
267
267
|
lang: t("appearance"),
|
|
268
268
|
onSelectionChange: (e) => {
|
|
269
269
|
let [t] = e;
|
|
270
|
-
|
|
270
|
+
ft(t) && r(t);
|
|
271
271
|
},
|
|
272
272
|
selectedKeys: [e],
|
|
273
273
|
selectionMode: "single",
|
|
274
|
-
children:
|
|
275
|
-
className: [
|
|
274
|
+
children: dt.map((e) => /* @__PURE__ */ m(d, {
|
|
275
|
+
className: [ut.base.option, ut.state.selected].join(" "),
|
|
276
276
|
id: e.value,
|
|
277
277
|
lang: t(e.message),
|
|
278
278
|
children: n[e.message]
|
|
@@ -281,8 +281,267 @@ function ut() {
|
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
283
|
//#endregion
|
|
284
|
+
//#region src/primitives/Icon/Icon.tsx
|
|
285
|
+
var mt = {
|
|
286
|
+
add: te,
|
|
287
|
+
back: w,
|
|
288
|
+
building: y,
|
|
289
|
+
calendar: b,
|
|
290
|
+
camera: x,
|
|
291
|
+
check: S,
|
|
292
|
+
clock: E,
|
|
293
|
+
close: I,
|
|
294
|
+
delete: N,
|
|
295
|
+
document: k,
|
|
296
|
+
download: D,
|
|
297
|
+
expand: C,
|
|
298
|
+
forward: T,
|
|
299
|
+
lock: ee,
|
|
300
|
+
money: j,
|
|
301
|
+
moneyIn: g,
|
|
302
|
+
moneyOut: _,
|
|
303
|
+
more: O,
|
|
304
|
+
next: T,
|
|
305
|
+
notifications: v,
|
|
306
|
+
overview: A,
|
|
307
|
+
people: F,
|
|
308
|
+
settings: ne,
|
|
309
|
+
signOut: M,
|
|
310
|
+
upload: P,
|
|
311
|
+
warning: re
|
|
312
|
+
}, ht = {
|
|
313
|
+
base: { icon: "breeze:block breeze:shrink-0" },
|
|
314
|
+
compound: {},
|
|
315
|
+
size: {
|
|
316
|
+
lg: "breeze:block-size-breeze-6 breeze:inline-size-breeze-6",
|
|
317
|
+
md: "breeze:block-size-breeze-5 breeze:inline-size-breeze-5",
|
|
318
|
+
sm: "breeze:block-size-breeze-4 breeze:inline-size-breeze-4"
|
|
319
|
+
},
|
|
320
|
+
state: { logicalDirection: "breeze:rtl:rotate-180" },
|
|
321
|
+
variant: {}
|
|
322
|
+
}, gt = /* @__PURE__ */ new Set([
|
|
323
|
+
"back",
|
|
324
|
+
"forward",
|
|
325
|
+
"next"
|
|
326
|
+
]);
|
|
327
|
+
function V({ label: e, name: t, size: n = "md" }) {
|
|
328
|
+
let r = mt[t], i = e?.trim() || void 0;
|
|
329
|
+
return /* @__PURE__ */ m(r, {
|
|
330
|
+
"aria-hidden": i === void 0 || void 0,
|
|
331
|
+
"aria-label": i,
|
|
332
|
+
className: [
|
|
333
|
+
ht.base.icon,
|
|
334
|
+
ht.size[n],
|
|
335
|
+
gt.has(t) && ht.state.logicalDirection
|
|
336
|
+
].filter(Boolean).join(" "),
|
|
337
|
+
focusable: "false",
|
|
338
|
+
role: i === void 0 ? void 0 : "img",
|
|
339
|
+
strokeWidth: 1.75
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
//#endregion
|
|
343
|
+
//#region src/primitives/Link/link-routing.ts
|
|
344
|
+
function _t(e, t) {
|
|
345
|
+
if (e.defaultPrevented || e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || t !== void 0 && t !== !1) return !1;
|
|
346
|
+
let n = e.currentTarget, r = n.getAttribute("target"), i = document.querySelector("base[target]")?.getAttribute("target"), a = r || i || "";
|
|
347
|
+
if (a.toLowerCase() !== "" && a.toLowerCase() !== "_self") return !1;
|
|
348
|
+
let o = new URL(n.href, document.baseURI);
|
|
349
|
+
return !(o.protocol !== "http:" && o.protocol !== "https:" || o.origin !== window.location.origin || o.hash !== "" || n.getAttribute("href")?.includes("#"));
|
|
350
|
+
}
|
|
351
|
+
function vt(e, t, n, r, i) {
|
|
352
|
+
n === void 0 || !_t(e, i) || (e.preventDefault(), n.navigate(t, { transitionTypes: r }));
|
|
353
|
+
}
|
|
354
|
+
//#endregion
|
|
355
|
+
//#region src/primitives/SkipLink/SkipLink.tsx
|
|
356
|
+
var yt = {
|
|
357
|
+
base: { link: "breeze:sr-only breeze:focus-visible:not-sr-only breeze:focus-visible:fixed breeze:focus-visible:z-50 breeze:focus-visible:inset-bs-breeze-2 breeze:focus-visible:inset-s-breeze-2 breeze:focus-visible:rounded-breeze-ctl breeze:focus-visible:bg-breeze-brand breeze:focus-visible:px-breeze-4 breeze:focus-visible:py-breeze-2 breeze:focus-visible:font-breeze-sans breeze:focus-visible:text-breeze-sm breeze:focus-visible:font-semibold breeze:focus-visible:text-breeze-on-brand breeze:focus-visible:shadow-breeze-overlay breeze:focus-visible:outline-2 breeze:focus-visible:outline-solid breeze:focus-visible:outline-breeze-brand" },
|
|
358
|
+
compound: {},
|
|
359
|
+
size: {},
|
|
360
|
+
state: {},
|
|
361
|
+
variant: {}
|
|
362
|
+
};
|
|
363
|
+
function bt({ targetId: e }) {
|
|
364
|
+
let { getMessageLocale: t, messages: n } = B();
|
|
365
|
+
return /* @__PURE__ */ m("a", {
|
|
366
|
+
className: yt.base.link,
|
|
367
|
+
href: `#${e}`,
|
|
368
|
+
lang: t("skipToMain"),
|
|
369
|
+
onClick: (t) => {
|
|
370
|
+
let n = document.getElementById(e);
|
|
371
|
+
n && (t.preventDefault(), n.focus());
|
|
372
|
+
},
|
|
373
|
+
children: n.skipToMain
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region src/patterns/ApplicationShell/ApplicationShell.tsx
|
|
378
|
+
var H = {
|
|
379
|
+
base: {
|
|
380
|
+
actionButton: "breeze:relative breeze:inline-grid breeze:block-size-breeze-lg breeze:inline-size-breeze-lg breeze:shrink-0 breeze:place-items-center breeze:rounded-breeze-full breeze:border breeze:border-solid breeze:border-transparent breeze:bg-breeze-brand breeze:text-breeze-on-brand breeze:cursor-pointer breeze:select-none breeze:transition-colors breeze:outline-offset-2 breeze:hover:bg-breeze-brand-hover breeze:focus-visible:outline-2 breeze:focus-visible:outline-solid breeze:focus-visible:outline-breeze-brand breeze:any-pointer-coarse:min-block-breeze-tap breeze:any-pointer-coarse:min-inline-breeze-tap",
|
|
381
|
+
actionFallback: "breeze:block breeze:[max-inline-size:100%] breeze:overflow-hidden breeze:px-breeze-1 breeze:text-center breeze:text-breeze-2xs breeze:font-semibold breeze:leading-breeze-snug breeze:break-words",
|
|
382
|
+
bottomNav: "breeze:fixed breeze:[inset-block-end:0] breeze:[inset-inline:0] breeze:z-30 breeze:border-bs breeze:border-solid breeze:border-breeze-line breeze:bg-breeze-surface breeze:pbs-breeze-2 breeze:pbe-[calc(8px_+_env(safe-area-inset-bottom))] breeze:ps-breeze-4 breeze:pe-breeze-4 breeze:breeze-lg:hidden",
|
|
383
|
+
bottomNavInner: "breeze:mx-auto breeze:inline-size-full breeze:max-inline-breeze-page breeze:grid breeze:grid-cols-[minmax(0,1fr)_64px_minmax(0,1fr)] breeze:items-center",
|
|
384
|
+
bottomNavLink: "breeze:relative breeze:flex breeze:min-block-breeze-lg breeze:min-inline-size-0 breeze:flex-1 breeze:flex-col breeze:items-center breeze:justify-center breeze:gap-breeze-1 breeze:rounded-breeze-sm breeze:px-breeze-1 breeze:font-breeze-sans breeze:text-breeze-2xs breeze:font-medium breeze:leading-breeze-snug breeze:text-breeze-ink-2 breeze:no-underline breeze:transition-colors breeze:hover:text-breeze-ink breeze:focus-visible:outline-2 breeze:focus-visible:outline-solid breeze:focus-visible:outline-breeze-brand",
|
|
385
|
+
bottomNavLinkCurrent: "breeze:text-breeze-brand-text",
|
|
386
|
+
bottomNavMark: "breeze:[inset-block-start:0]",
|
|
387
|
+
bottomNavSide: "breeze:flex breeze:min-inline-size-0",
|
|
388
|
+
brand: "breeze:flex breeze:min-inline-size-0 breeze:shrink-0 breeze:items-center",
|
|
389
|
+
context: "breeze:min-inline-size-0 breeze:truncate breeze:border-s breeze:border-solid breeze:border-breeze-line breeze:ps-breeze-4",
|
|
390
|
+
main: "breeze:mx-auto breeze:inline-size-full breeze:min-inline-size-0 breeze:max-inline-breeze-page breeze:ps-breeze-4 breeze:pe-breeze-4 breeze:pbe-[calc(69px_+_env(safe-area-inset-bottom))] breeze:breeze-lg:ps-breeze-7 breeze:breeze-lg:pe-breeze-7 breeze:breeze-lg:pbe-breeze-8",
|
|
391
|
+
navLabel: "breeze:min-inline-size-0 breeze:truncate",
|
|
392
|
+
navMark: "breeze:absolute breeze:[inset-inline:0] breeze:[block-size:2px] breeze:bg-breeze-brand",
|
|
393
|
+
topNav: "breeze:hidden breeze:border-b breeze:border-solid breeze:border-breeze-line breeze:bg-breeze-surface breeze:breeze-lg:block",
|
|
394
|
+
topNavInner: "breeze:mx-auto breeze:flex breeze:min-block-breeze-lg breeze:inline-size-full breeze:max-inline-breeze-page breeze:items-stretch breeze:gap-breeze-6 breeze:ps-breeze-4 breeze:pe-breeze-4 breeze:breeze-lg:ps-breeze-7 breeze:breeze-lg:pe-breeze-7",
|
|
395
|
+
topNavLink: "breeze:relative breeze:inline-flex breeze:min-block-breeze-lg breeze:min-inline-size-0 breeze:shrink-0 breeze:items-center breeze:gap-breeze-2 breeze:rounded-breeze-sm breeze:font-breeze-sans breeze:text-breeze-sm breeze:font-medium breeze:text-breeze-ink-2 breeze:no-underline breeze:transition-colors breeze:hover:text-breeze-ink breeze:focus-visible:outline-2 breeze:focus-visible:outline-solid breeze:focus-visible:outline-breeze-brand",
|
|
396
|
+
topNavLinkCurrent: "breeze:text-breeze-brand-text",
|
|
397
|
+
topNavMark: "breeze:[inset-block-end:0]",
|
|
398
|
+
topbar: "breeze:sticky breeze:[inset-block-start:0] breeze:z-30 breeze:border-be breeze:border-solid breeze:border-breeze-line breeze:bg-breeze-surface",
|
|
399
|
+
topbarInner: "breeze:mx-auto breeze:flex breeze:min-block-breeze-lg breeze:inline-size-full breeze:max-inline-breeze-page breeze:min-inline-size-0 breeze:items-center breeze:gap-breeze-4 breeze:ps-breeze-4 breeze:pe-breeze-4 breeze:breeze-lg:ps-breeze-7 breeze:breeze-lg:pe-breeze-7",
|
|
400
|
+
topbarSlots: "breeze:ms-auto breeze:flex breeze:min-inline-size-0 breeze:shrink-0 breeze:items-center breeze:gap-breeze-3"
|
|
401
|
+
},
|
|
402
|
+
compound: {},
|
|
403
|
+
size: {},
|
|
404
|
+
state: {},
|
|
405
|
+
variant: {}
|
|
406
|
+
};
|
|
407
|
+
function xt({ current: e, item: t, placement: n, router: r }) {
|
|
408
|
+
let i = lt({ role: "navmark" }), a = [n === "top" ? H.base.topNavLink : H.base.bottomNavLink, e && (n === "top" ? H.base.topNavLinkCurrent : H.base.bottomNavLinkCurrent)].filter(Boolean).join(" ");
|
|
409
|
+
return /* @__PURE__ */ h("a", {
|
|
410
|
+
"aria-current": e ? "page" : void 0,
|
|
411
|
+
className: a,
|
|
412
|
+
href: t.href,
|
|
413
|
+
onClick: (e) => vt(e, t.href, r, ["nav"]),
|
|
414
|
+
children: [
|
|
415
|
+
t.icon ? /* @__PURE__ */ m(V, {
|
|
416
|
+
name: t.icon,
|
|
417
|
+
size: "sm"
|
|
418
|
+
}) : null,
|
|
419
|
+
/* @__PURE__ */ m("span", {
|
|
420
|
+
className: H.base.navLabel,
|
|
421
|
+
children: t.label
|
|
422
|
+
}),
|
|
423
|
+
e ? /* @__PURE__ */ m("span", {
|
|
424
|
+
"aria-hidden": "true",
|
|
425
|
+
className: [H.base.navMark, n === "top" ? H.base.topNavMark : H.base.bottomNavMark].join(" "),
|
|
426
|
+
ref: i
|
|
427
|
+
}) : null
|
|
428
|
+
]
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
function St({ account: e, action: t, brand: n, children: r, context: i, currentItem: o, getItem: s, items: c, notifications: l }) {
|
|
432
|
+
let { getMessageLocale: u, messages: d, router: f } = B(), p = `breeze-main-${a()}`, g = c.map(s), _ = Math.ceil(g.length / 2), v = g.slice(0, _), y = g.slice(_), b = lt({ role: "topbar" }), x = lt({ role: "topnav" }), S = lt({ role: "botnav" });
|
|
433
|
+
return /* @__PURE__ */ h("div", {
|
|
434
|
+
className: "breeze:[min-block-size:100dvh] breeze:bg-breeze-canvas breeze:text-breeze-ink",
|
|
435
|
+
children: [
|
|
436
|
+
/* @__PURE__ */ m(bt, { targetId: p }),
|
|
437
|
+
/* @__PURE__ */ m("header", {
|
|
438
|
+
className: H.base.topbar,
|
|
439
|
+
ref: b,
|
|
440
|
+
children: /* @__PURE__ */ h("div", {
|
|
441
|
+
className: H.base.topbarInner,
|
|
442
|
+
children: [
|
|
443
|
+
/* @__PURE__ */ m("div", {
|
|
444
|
+
className: H.base.brand,
|
|
445
|
+
children: n
|
|
446
|
+
}),
|
|
447
|
+
/* @__PURE__ */ m("div", {
|
|
448
|
+
className: H.base.context,
|
|
449
|
+
children: i
|
|
450
|
+
}),
|
|
451
|
+
/* @__PURE__ */ h("div", {
|
|
452
|
+
className: H.base.topbarSlots,
|
|
453
|
+
children: [l, e]
|
|
454
|
+
})
|
|
455
|
+
]
|
|
456
|
+
})
|
|
457
|
+
}),
|
|
458
|
+
/* @__PURE__ */ m("nav", {
|
|
459
|
+
"aria-label": d.primaryNavigation,
|
|
460
|
+
className: H.base.topNav,
|
|
461
|
+
lang: u("primaryNavigation"),
|
|
462
|
+
ref: x,
|
|
463
|
+
children: /* @__PURE__ */ m("div", {
|
|
464
|
+
className: H.base.topNavInner,
|
|
465
|
+
children: g.map((e) => /* @__PURE__ */ m(xt, {
|
|
466
|
+
current: e.id === o,
|
|
467
|
+
item: e,
|
|
468
|
+
placement: "top",
|
|
469
|
+
router: f
|
|
470
|
+
}, e.id))
|
|
471
|
+
})
|
|
472
|
+
}),
|
|
473
|
+
/* @__PURE__ */ m("main", {
|
|
474
|
+
className: H.base.main,
|
|
475
|
+
id: p,
|
|
476
|
+
tabIndex: -1,
|
|
477
|
+
children: r
|
|
478
|
+
}),
|
|
479
|
+
/* @__PURE__ */ m("nav", {
|
|
480
|
+
"aria-label": d.primaryNavigation,
|
|
481
|
+
className: H.base.bottomNav,
|
|
482
|
+
lang: u("primaryNavigation"),
|
|
483
|
+
ref: S,
|
|
484
|
+
children: /* @__PURE__ */ h("div", {
|
|
485
|
+
className: H.base.bottomNavInner,
|
|
486
|
+
children: [
|
|
487
|
+
/* @__PURE__ */ m("div", {
|
|
488
|
+
className: H.base.bottomNavSide,
|
|
489
|
+
children: v.map((e) => /* @__PURE__ */ m(xt, {
|
|
490
|
+
current: e.id === o,
|
|
491
|
+
item: e,
|
|
492
|
+
placement: "bottom",
|
|
493
|
+
router: f
|
|
494
|
+
}, e.id))
|
|
495
|
+
}),
|
|
496
|
+
/* @__PURE__ */ m("button", {
|
|
497
|
+
"aria-label": t.label,
|
|
498
|
+
className: `${H.base.actionButton} breeze:justify-self-center`,
|
|
499
|
+
onClick: () => t.onAction(),
|
|
500
|
+
type: "button",
|
|
501
|
+
children: t.icon === void 0 ? /* @__PURE__ */ m("span", {
|
|
502
|
+
className: H.base.actionFallback,
|
|
503
|
+
children: t.label
|
|
504
|
+
}) : /* @__PURE__ */ m(V, {
|
|
505
|
+
name: t.icon,
|
|
506
|
+
size: "lg"
|
|
507
|
+
})
|
|
508
|
+
}),
|
|
509
|
+
/* @__PURE__ */ m("div", {
|
|
510
|
+
className: H.base.bottomNavSide,
|
|
511
|
+
children: y.map((e) => /* @__PURE__ */ m(xt, {
|
|
512
|
+
current: e.id === o,
|
|
513
|
+
item: e,
|
|
514
|
+
placement: "bottom",
|
|
515
|
+
router: f
|
|
516
|
+
}, e.id))
|
|
517
|
+
})
|
|
518
|
+
]
|
|
519
|
+
})
|
|
520
|
+
})
|
|
521
|
+
]
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
//#endregion
|
|
525
|
+
//#region src/patterns/FormActions/FormActions.tsx
|
|
526
|
+
var Ct = {
|
|
527
|
+
base: { actions: "breeze:flex breeze:min-inline-size-0 breeze:flex-wrap breeze:items-center breeze:gap-breeze-3" },
|
|
528
|
+
compound: {},
|
|
529
|
+
size: {},
|
|
530
|
+
state: {},
|
|
531
|
+
variant: { align: {
|
|
532
|
+
end: "breeze:justify-end",
|
|
533
|
+
start: "breeze:justify-start"
|
|
534
|
+
} }
|
|
535
|
+
};
|
|
536
|
+
function wt({ align: e = "end", children: t }) {
|
|
537
|
+
return B(), /* @__PURE__ */ m("div", {
|
|
538
|
+
className: [Ct.base.actions, Ct.variant.align[e]].join(" "),
|
|
539
|
+
children: t
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
//#endregion
|
|
284
543
|
//#region src/primitives/Skeleton/Skeleton.tsx
|
|
285
|
-
var
|
|
544
|
+
var Tt = {
|
|
286
545
|
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]" },
|
|
287
546
|
compound: {},
|
|
288
547
|
size: {},
|
|
@@ -293,71 +552,253 @@ var dt = {
|
|
|
293
552
|
text: "breeze:block-size-breeze-3 breeze:inline-size-full breeze:rounded-breeze-xs"
|
|
294
553
|
}
|
|
295
554
|
};
|
|
296
|
-
function
|
|
297
|
-
let { getMessageLocale: i, messages: a } =
|
|
555
|
+
function U({ blockSize: e, inlineSize: t, label: n, shape: r = "text" }) {
|
|
556
|
+
let { getMessageLocale: i, messages: a } = B(), o = n?.trim() || void 0, s = e ?? t ?? "0.75rem", c = {
|
|
298
557
|
blockSize: r === "circle" ? s : e,
|
|
299
558
|
inlineSize: r === "circle" ? s : t
|
|
300
559
|
};
|
|
301
560
|
return /* @__PURE__ */ m("progress", {
|
|
302
561
|
"aria-hidden": o === void 0 || void 0,
|
|
303
562
|
"aria-label": o,
|
|
304
|
-
className: [
|
|
563
|
+
className: [Tt.base.skeleton, Tt.variant[r]].join(" "),
|
|
305
564
|
lang: o === a.loading.trim() ? i("loading") : void 0,
|
|
306
565
|
style: c
|
|
307
566
|
});
|
|
308
567
|
}
|
|
309
568
|
//#endregion
|
|
310
569
|
//#region src/primitives/VisuallyHidden/VisuallyHidden.tsx
|
|
311
|
-
var
|
|
570
|
+
var Et = {
|
|
312
571
|
base: { hidden: "breeze:sr-only" },
|
|
313
572
|
compound: {},
|
|
314
573
|
size: {},
|
|
315
574
|
state: {},
|
|
316
575
|
variant: {}
|
|
317
576
|
};
|
|
318
|
-
function
|
|
577
|
+
function Dt({ children: e }) {
|
|
319
578
|
return /* @__PURE__ */ m("span", {
|
|
320
|
-
className:
|
|
579
|
+
className: Et.base.hidden,
|
|
321
580
|
children: e
|
|
322
581
|
});
|
|
323
582
|
}
|
|
324
583
|
//#endregion
|
|
325
|
-
//#region src/primitives/
|
|
326
|
-
var
|
|
584
|
+
//#region src/primitives/Typography/Typography.tsx
|
|
585
|
+
var Ot = {
|
|
586
|
+
base: { text: "breeze:m-0 breeze:font-breeze-sans" },
|
|
587
|
+
compound: {},
|
|
588
|
+
size: {},
|
|
589
|
+
state: {
|
|
590
|
+
aligned: "breeze:block breeze:inline-size-full",
|
|
591
|
+
inlineLoading: "breeze:inline-block",
|
|
592
|
+
numeric: "breeze:tabular-nums breeze:tracking-breeze-tighter",
|
|
593
|
+
truncate: "breeze:block breeze:min-inline-size-0 breeze:inline-size-full breeze:overflow-hidden breeze:text-ellipsis breeze:whitespace-nowrap"
|
|
594
|
+
},
|
|
595
|
+
variant: {
|
|
596
|
+
align: {
|
|
597
|
+
center: "breeze:text-center",
|
|
598
|
+
end: "breeze:text-end",
|
|
599
|
+
start: "breeze:text-start"
|
|
600
|
+
},
|
|
601
|
+
role: {
|
|
602
|
+
body: "breeze:text-breeze-sm breeze:font-normal breeze:leading-breeze-snug",
|
|
603
|
+
caption: "breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug",
|
|
604
|
+
heading: "breeze:text-breeze-2xl breeze:font-semibold breeze:leading-breeze-tight",
|
|
605
|
+
label: "breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug",
|
|
606
|
+
micro: "breeze:text-breeze-2xs breeze:font-bold breeze:uppercase breeze:leading-breeze-snug breeze:tracking-breeze-caps",
|
|
607
|
+
money: "breeze:text-breeze-4xl breeze:font-semibold breeze:leading-breeze-tight breeze:tracking-breeze-tightest breeze:tabular-nums",
|
|
608
|
+
title: "breeze:text-breeze-md breeze:font-semibold breeze:leading-breeze-snug"
|
|
609
|
+
},
|
|
610
|
+
tone: {
|
|
611
|
+
brand: "breeze:text-breeze-brand-text",
|
|
612
|
+
danger: "breeze:text-breeze-danger",
|
|
613
|
+
default: "breeze:text-breeze-ink",
|
|
614
|
+
muted: "breeze:text-breeze-ink-3",
|
|
615
|
+
positive: "breeze:text-breeze-pos",
|
|
616
|
+
secondary: "breeze:text-breeze-ink-2",
|
|
617
|
+
warning: "breeze:text-breeze-warn"
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
function kt(e) {
|
|
622
|
+
return e === "heading" ? "h2" : e === "title" ? "h3" : e === "body" ? "p" : "span";
|
|
623
|
+
}
|
|
624
|
+
function At(e, t, n, r) {
|
|
625
|
+
let i;
|
|
626
|
+
try {
|
|
627
|
+
i = new Intl.NumberFormat(n, {
|
|
628
|
+
currency: t,
|
|
629
|
+
signDisplay: r ?? "auto",
|
|
630
|
+
style: "currency"
|
|
631
|
+
}).formatToParts(e);
|
|
632
|
+
} catch (t) {
|
|
633
|
+
if (!(t instanceof RangeError)) throw t;
|
|
634
|
+
i = new Intl.NumberFormat(n, { signDisplay: r ?? "auto" }).formatToParts(e);
|
|
635
|
+
}
|
|
636
|
+
return i.map((e) => e.type === "minusSign" ? "−" : e.value).join("");
|
|
637
|
+
}
|
|
638
|
+
function jt(e, t, n) {
|
|
639
|
+
let r;
|
|
640
|
+
try {
|
|
641
|
+
r = ie(e).toDate("UTC");
|
|
642
|
+
} catch {
|
|
643
|
+
return e;
|
|
644
|
+
}
|
|
645
|
+
return new Intl.DateTimeFormat(t, {
|
|
646
|
+
dateStyle: n ?? "long",
|
|
647
|
+
timeZone: "UTC"
|
|
648
|
+
}).format(r);
|
|
649
|
+
}
|
|
650
|
+
function Mt(e, t, n) {
|
|
651
|
+
return e.loading ? /* @__PURE__ */ m(U, {
|
|
652
|
+
blockSize: "1lh",
|
|
653
|
+
inlineSize: "8em",
|
|
654
|
+
label: n
|
|
655
|
+
}) : e.format === "currency" ? At(e.value, e.currency, t, e.sign ?? "auto") : e.format === "date" ? jt(e.value, t, e.dateStyle) : e.children;
|
|
656
|
+
}
|
|
657
|
+
function W(e) {
|
|
658
|
+
let { locale: n, messages: r } = B(), { "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 ?? kt(_), y = i?.trim() || void 0, b = a ?? (_ === "money" || d ? "end" : "start"), x = a !== void 0 || _ === "money" || d, S = Mt(e, n, r.loading), C = c !== void 0 || typeof o == "string" || typeof o == "number", w = !u && y !== void 0 && !C && [
|
|
659
|
+
"h1",
|
|
660
|
+
"h2",
|
|
661
|
+
"h3",
|
|
662
|
+
"h4"
|
|
663
|
+
].includes(v), T = !u && y !== void 0 && !C && !w;
|
|
664
|
+
return !u && y !== void 0 && C && (S = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
|
|
665
|
+
"aria-hidden": "true",
|
|
666
|
+
children: S
|
|
667
|
+
}), /* @__PURE__ */ m(Dt, { children: y })] })), t(v, {
|
|
668
|
+
"aria-busy": u || void 0,
|
|
669
|
+
"aria-label": T || w ? y : void 0,
|
|
670
|
+
className: [
|
|
671
|
+
Ot.base.text,
|
|
672
|
+
Ot.variant.role[_],
|
|
673
|
+
Ot.variant.tone[f],
|
|
674
|
+
Ot.variant.align[b],
|
|
675
|
+
x && Ot.state.aligned,
|
|
676
|
+
u && v === "span" && !x && Ot.state.inlineLoading,
|
|
677
|
+
d && _ !== "money" && Ot.state.numeric,
|
|
678
|
+
g && Ot.state.truncate
|
|
679
|
+
].filter(Boolean).join(" "),
|
|
680
|
+
id: l,
|
|
681
|
+
lang: n,
|
|
682
|
+
role: T ? "group" : void 0
|
|
683
|
+
}, S);
|
|
684
|
+
}
|
|
685
|
+
//#endregion
|
|
686
|
+
//#region src/patterns/FormSection/FormSection.tsx
|
|
687
|
+
var Nt = {
|
|
327
688
|
base: {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
skeleton: "breeze:[grid-area:1/1] breeze:grid breeze:inline-size-full breeze:items-center"
|
|
689
|
+
fieldset: "breeze:m-0 breeze:flex breeze:min-inline-size-0 breeze:flex-col breeze:gap-breeze-4 breeze:border-0 breeze:p-0",
|
|
690
|
+
legend: "breeze:p-0 breeze:pbe-breeze-1"
|
|
331
691
|
},
|
|
332
692
|
compound: {},
|
|
333
693
|
size: {},
|
|
334
|
-
state: {
|
|
694
|
+
state: {},
|
|
695
|
+
variant: {}
|
|
696
|
+
};
|
|
697
|
+
function Pt({ children: e, description: t, title: n }) {
|
|
698
|
+
B();
|
|
699
|
+
let r = a();
|
|
700
|
+
return /* @__PURE__ */ h("fieldset", {
|
|
701
|
+
"aria-describedby": t ? r : void 0,
|
|
702
|
+
className: Nt.base.fieldset,
|
|
703
|
+
children: [
|
|
704
|
+
/* @__PURE__ */ m("legend", {
|
|
705
|
+
className: Nt.base.legend,
|
|
706
|
+
children: /* @__PURE__ */ m(W, {
|
|
707
|
+
element: "span",
|
|
708
|
+
variant: "title",
|
|
709
|
+
children: n
|
|
710
|
+
})
|
|
711
|
+
}),
|
|
712
|
+
t ? /* @__PURE__ */ m(W, {
|
|
713
|
+
element: "p",
|
|
714
|
+
id: r,
|
|
715
|
+
tone: "secondary",
|
|
716
|
+
variant: "body",
|
|
717
|
+
children: t
|
|
718
|
+
}) : null,
|
|
719
|
+
e
|
|
720
|
+
]
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
//#endregion
|
|
724
|
+
//#region src/primitives/layout.accessibility.ts
|
|
725
|
+
function Ft(e, t) {
|
|
726
|
+
let n = e?.trim() || void 0;
|
|
727
|
+
return {
|
|
728
|
+
accessibleLabel: n,
|
|
729
|
+
role: n !== void 0 && t === "div" ? "group" : void 0
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
//#endregion
|
|
733
|
+
//#region src/primitives/Stack/Stack.tsx
|
|
734
|
+
var It = {
|
|
735
|
+
base: { stack: "breeze:flex breeze:min-inline-size-0 breeze:flex-col" },
|
|
736
|
+
compound: {},
|
|
737
|
+
size: {
|
|
738
|
+
0: "breeze:gap-0",
|
|
739
|
+
1: "breeze:gap-breeze-1",
|
|
740
|
+
2: "breeze:gap-breeze-2",
|
|
741
|
+
3: "breeze:gap-breeze-3",
|
|
742
|
+
4: "breeze:gap-breeze-4",
|
|
743
|
+
5: "breeze:gap-breeze-5",
|
|
744
|
+
6: "breeze:gap-breeze-6",
|
|
745
|
+
7: "breeze:gap-breeze-7",
|
|
746
|
+
8: "breeze:gap-breeze-8"
|
|
747
|
+
},
|
|
748
|
+
state: {},
|
|
335
749
|
variant: {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
warning: "breeze:bg-breeze-warn-soft breeze:text-breeze-warn"
|
|
750
|
+
center: "breeze:items-center",
|
|
751
|
+
end: "breeze:items-end",
|
|
752
|
+
start: "breeze:items-start",
|
|
753
|
+
stretch: "breeze:items-stretch"
|
|
341
754
|
}
|
|
342
755
|
};
|
|
343
|
-
function
|
|
344
|
-
let {
|
|
345
|
-
return
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
756
|
+
function Lt({ "aria-label": e, children: n, element: r = "div", gap: i = 3, horizontalAlign: a = "stretch" }) {
|
|
757
|
+
let { accessibleLabel: o, role: s } = Ft(e, r);
|
|
758
|
+
return t(r, {
|
|
759
|
+
"aria-label": o,
|
|
760
|
+
className: [
|
|
761
|
+
It.base.stack,
|
|
762
|
+
It.variant[a],
|
|
763
|
+
It.size[i]
|
|
764
|
+
].join(" "),
|
|
765
|
+
role: s
|
|
766
|
+
}, n);
|
|
767
|
+
}
|
|
768
|
+
//#endregion
|
|
769
|
+
//#region src/patterns/PageHeader/PageHeader.tsx
|
|
770
|
+
var Rt = {
|
|
771
|
+
base: {
|
|
772
|
+
actions: "breeze:flex breeze:min-inline-size-0 breeze:flex-wrap breeze:items-center breeze:gap-breeze-3 breeze:breeze-lg:shrink-0",
|
|
773
|
+
content: "breeze:min-inline-size-0",
|
|
774
|
+
header: "breeze:flex breeze:min-inline-size-0 breeze:flex-col breeze:gap-breeze-4 breeze:pbe-breeze-5 breeze:breeze-lg:flex-row breeze:breeze-lg:items-end breeze:breeze-lg:justify-between"
|
|
775
|
+
},
|
|
776
|
+
compound: {},
|
|
777
|
+
size: {},
|
|
778
|
+
state: {},
|
|
779
|
+
variant: {}
|
|
780
|
+
};
|
|
781
|
+
function zt({ actions: e, description: t, title: n }) {
|
|
782
|
+
return /* @__PURE__ */ h("header", {
|
|
783
|
+
className: Rt.base.header,
|
|
784
|
+
children: [/* @__PURE__ */ m("div", {
|
|
785
|
+
className: Rt.base.content,
|
|
786
|
+
children: /* @__PURE__ */ h(Lt, {
|
|
787
|
+
gap: 1,
|
|
788
|
+
children: [/* @__PURE__ */ m(W, {
|
|
789
|
+
element: "h1",
|
|
790
|
+
variant: "heading",
|
|
791
|
+
children: n
|
|
792
|
+
}), t ? /* @__PURE__ */ m(W, {
|
|
793
|
+
tone: "secondary",
|
|
794
|
+
variant: "body",
|
|
795
|
+
children: t
|
|
796
|
+
}) : null]
|
|
797
|
+
})
|
|
798
|
+
}), e ? /* @__PURE__ */ m("div", {
|
|
799
|
+
className: Rt.base.actions,
|
|
800
|
+
children: e
|
|
801
|
+
}) : null]
|
|
361
802
|
});
|
|
362
803
|
}
|
|
363
804
|
//#endregion
|
|
@@ -392,8 +833,8 @@ var G = {
|
|
|
392
833
|
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"
|
|
393
834
|
}
|
|
394
835
|
};
|
|
395
|
-
function
|
|
396
|
-
let e =
|
|
836
|
+
function Bt() {
|
|
837
|
+
let e = R(L), { getMessageLocale: t, messages: n } = B();
|
|
397
838
|
return /* @__PURE__ */ m("progress", {
|
|
398
839
|
"aria-label": n.loading,
|
|
399
840
|
className: G.state.loadingStatus,
|
|
@@ -401,49 +842,187 @@ function gt() {
|
|
|
401
842
|
lang: t("loading")
|
|
402
843
|
});
|
|
403
844
|
}
|
|
404
|
-
function
|
|
405
|
-
|
|
406
|
-
let
|
|
845
|
+
function Vt({ "aria-controls": e, "aria-describedby": n, "aria-expanded": r, "aria-haspopup": i, "aria-label": a, "aria-labelledby": o, children: s, disabled: c = !1, form: l, id: u, loading: d = !1, name: f, onAction: g, ref: _, size: v = "md", type: y = "button", value: b, variant: x = "primary" }) {
|
|
846
|
+
B();
|
|
847
|
+
let S = [
|
|
407
848
|
G.base.button,
|
|
408
|
-
G.variant[
|
|
409
|
-
G.size[
|
|
849
|
+
G.variant[x],
|
|
850
|
+
G.size[v],
|
|
410
851
|
c && G.state.disabled,
|
|
411
852
|
d && G.state.loading
|
|
412
853
|
].filter(Boolean).join(" ");
|
|
413
|
-
return /* @__PURE__ */ h(
|
|
854
|
+
return /* @__PURE__ */ h(ae, {
|
|
414
855
|
"aria-controls": e,
|
|
415
856
|
"aria-describedby": n,
|
|
416
857
|
"aria-expanded": r,
|
|
417
858
|
"aria-haspopup": i,
|
|
418
859
|
"aria-label": a ?? s,
|
|
419
860
|
"aria-labelledby": o,
|
|
420
|
-
className:
|
|
861
|
+
className: S,
|
|
421
862
|
form: l,
|
|
422
863
|
id: u,
|
|
423
864
|
isDisabled: c,
|
|
424
865
|
isPending: d,
|
|
425
866
|
name: f,
|
|
426
|
-
onPress: () =>
|
|
427
|
-
ref:
|
|
867
|
+
onPress: () => g?.(),
|
|
868
|
+
ref: _,
|
|
428
869
|
render: (e) => t("button", {
|
|
429
870
|
...e,
|
|
430
871
|
"aria-busy": d || void 0,
|
|
431
872
|
onClick: d ? (e) => e.preventDefault() : e.onClick,
|
|
432
|
-
type:
|
|
873
|
+
type: y === "submit" ? "submit" : "button"
|
|
433
874
|
}),
|
|
434
|
-
type:
|
|
435
|
-
value:
|
|
875
|
+
type: y,
|
|
876
|
+
value: b,
|
|
436
877
|
children: [/* @__PURE__ */ m("span", {
|
|
437
878
|
className: [G.base.label, d && G.state.loadingLabel].filter(Boolean).join(" "),
|
|
438
879
|
children: s
|
|
439
|
-
}), d && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(
|
|
880
|
+
}), d && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(Bt, {}), /* @__PURE__ */ m("span", {
|
|
440
881
|
"aria-hidden": "true",
|
|
441
|
-
className: [G.base.skeleton, G.compound.loading[
|
|
882
|
+
className: [G.base.skeleton, G.compound.loading[x]].join(" "),
|
|
442
883
|
"data-breeze-skeleton": ""
|
|
443
884
|
})] })]
|
|
444
885
|
});
|
|
445
886
|
}
|
|
446
887
|
//#endregion
|
|
888
|
+
//#region src/primitives/IconTile/IconTile.tsx
|
|
889
|
+
var Ht = {
|
|
890
|
+
base: { tile: "breeze:inline-flex breeze:shrink-0 breeze:items-center breeze:justify-center" },
|
|
891
|
+
compound: {},
|
|
892
|
+
size: {
|
|
893
|
+
lg: "breeze:block-size-breeze-tap breeze:inline-size-breeze-tap",
|
|
894
|
+
sm: "breeze:block-size-breeze-7 breeze:inline-size-breeze-7"
|
|
895
|
+
},
|
|
896
|
+
state: {},
|
|
897
|
+
variant: {
|
|
898
|
+
shape: {
|
|
899
|
+
circle: "breeze:rounded-breeze-full",
|
|
900
|
+
square: "breeze:rounded-breeze-sm"
|
|
901
|
+
},
|
|
902
|
+
tone: {
|
|
903
|
+
brand: "breeze:bg-breeze-brand-soft breeze:text-breeze-brand-text",
|
|
904
|
+
danger: "breeze:bg-breeze-danger/10 breeze:text-breeze-danger",
|
|
905
|
+
neutral: "breeze:bg-breeze-sunken breeze:text-breeze-ink-2",
|
|
906
|
+
positive: "breeze:bg-breeze-pos-soft breeze:text-breeze-pos",
|
|
907
|
+
warning: "breeze:bg-breeze-warn-soft breeze:text-breeze-warn"
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
};
|
|
911
|
+
function Ut({ label: e, name: t, shape: n = "square", size: r = "lg", tone: i = "brand" }) {
|
|
912
|
+
return /* @__PURE__ */ m("span", {
|
|
913
|
+
className: [
|
|
914
|
+
Ht.base.tile,
|
|
915
|
+
Ht.variant.tone[i],
|
|
916
|
+
Ht.variant.shape[n],
|
|
917
|
+
Ht.size[r]
|
|
918
|
+
].join(" "),
|
|
919
|
+
children: /* @__PURE__ */ m(V, {
|
|
920
|
+
label: e,
|
|
921
|
+
name: t,
|
|
922
|
+
size: r === "lg" ? "md" : "sm"
|
|
923
|
+
})
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
//#endregion
|
|
927
|
+
//#region src/patterns/StatePanel/StatePanel.tsx
|
|
928
|
+
var Wt = {
|
|
929
|
+
base: {
|
|
930
|
+
action: "breeze:mbs-breeze-3",
|
|
931
|
+
content: "breeze:min-inline-size-0",
|
|
932
|
+
panel: "breeze:flex breeze:items-start breeze:gap-breeze-4 breeze:px-breeze-5 breeze:py-breeze-6"
|
|
933
|
+
},
|
|
934
|
+
compound: {},
|
|
935
|
+
size: {},
|
|
936
|
+
state: {},
|
|
937
|
+
variant: {
|
|
938
|
+
icon: {
|
|
939
|
+
empty: "document",
|
|
940
|
+
error: "warning"
|
|
941
|
+
},
|
|
942
|
+
tone: {
|
|
943
|
+
empty: "brand",
|
|
944
|
+
error: "danger"
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
function Gt({ action: e, description: t, icon: n, title: r, variant: i }) {
|
|
949
|
+
B();
|
|
950
|
+
let o = a(), s = `${o}-title`, c = `${o}-description`;
|
|
951
|
+
if (e && (typeof e.label != "string" || e.label.trim() === "" || typeof e.onAction != "function")) throw Error("StatePanel actions require a non-empty label and an onAction callback.");
|
|
952
|
+
return /* @__PURE__ */ h("section", {
|
|
953
|
+
"aria-describedby": c,
|
|
954
|
+
"aria-labelledby": s,
|
|
955
|
+
className: Wt.base.panel,
|
|
956
|
+
children: [/* @__PURE__ */ m(Ut, {
|
|
957
|
+
name: n ?? Wt.variant.icon[i],
|
|
958
|
+
size: "lg",
|
|
959
|
+
tone: Wt.variant.tone[i]
|
|
960
|
+
}), /* @__PURE__ */ h("div", {
|
|
961
|
+
className: Wt.base.content,
|
|
962
|
+
children: [/* @__PURE__ */ h(Lt, {
|
|
963
|
+
gap: 1,
|
|
964
|
+
children: [/* @__PURE__ */ m(W, {
|
|
965
|
+
element: "h2",
|
|
966
|
+
id: s,
|
|
967
|
+
variant: "title",
|
|
968
|
+
children: r
|
|
969
|
+
}), /* @__PURE__ */ m(W, {
|
|
970
|
+
element: "p",
|
|
971
|
+
id: c,
|
|
972
|
+
tone: "muted",
|
|
973
|
+
variant: "body",
|
|
974
|
+
children: t
|
|
975
|
+
})]
|
|
976
|
+
}), e ? /* @__PURE__ */ m("div", {
|
|
977
|
+
className: Wt.base.action,
|
|
978
|
+
children: /* @__PURE__ */ m(Vt, {
|
|
979
|
+
onAction: e.onAction,
|
|
980
|
+
children: e.label
|
|
981
|
+
})
|
|
982
|
+
}) : null]
|
|
983
|
+
})]
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
//#endregion
|
|
987
|
+
//#region src/primitives/Badge/Badge.tsx
|
|
988
|
+
var Kt = {
|
|
989
|
+
base: {
|
|
990
|
+
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",
|
|
991
|
+
content: "breeze:[grid-area:1/1]",
|
|
992
|
+
skeleton: "breeze:[grid-area:1/1] breeze:grid breeze:inline-size-full breeze:items-center"
|
|
993
|
+
},
|
|
994
|
+
compound: {},
|
|
995
|
+
size: {},
|
|
996
|
+
state: { contentLoading: "breeze:opacity-0" },
|
|
997
|
+
variant: {
|
|
998
|
+
brand: "breeze:bg-breeze-brand-soft breeze:text-breeze-brand-text",
|
|
999
|
+
danger: "breeze:bg-breeze-danger/10 breeze:text-breeze-danger",
|
|
1000
|
+
neutral: "breeze:bg-breeze-sunken breeze:text-breeze-ink-2",
|
|
1001
|
+
positive: "breeze:bg-breeze-pos-soft breeze:text-breeze-pos",
|
|
1002
|
+
warning: "breeze:bg-breeze-warn-soft breeze:text-breeze-warn"
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
1005
|
+
function qt({ "aria-label": e, children: t, loading: n = !1, variant: r = "neutral" }) {
|
|
1006
|
+
let { messages: i } = B(), a = e?.trim() || void 0, o;
|
|
1007
|
+
return n ? o = /* @__PURE__ */ m("span", {
|
|
1008
|
+
className: Kt.base.skeleton,
|
|
1009
|
+
children: /* @__PURE__ */ m(U, {
|
|
1010
|
+
blockSize: 8,
|
|
1011
|
+
inlineSize: "100%",
|
|
1012
|
+
label: i.loading,
|
|
1013
|
+
shape: "rectangle"
|
|
1014
|
+
})
|
|
1015
|
+
}) : a !== void 0 && (o = /* @__PURE__ */ m(Dt, { children: a })), /* @__PURE__ */ h("span", {
|
|
1016
|
+
"aria-busy": n || void 0,
|
|
1017
|
+
className: [Kt.base.badge, Kt.variant[r]].join(" "),
|
|
1018
|
+
children: [/* @__PURE__ */ m("span", {
|
|
1019
|
+
"aria-hidden": n || a !== void 0 ? !0 : void 0,
|
|
1020
|
+
className: [Kt.base.content, n && Kt.state.contentLoading].filter(Boolean).join(" "),
|
|
1021
|
+
children: t
|
|
1022
|
+
}), o]
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
//#endregion
|
|
447
1026
|
//#region src/primitives/Field/field.styles.ts
|
|
448
1027
|
var K = {
|
|
449
1028
|
base: {
|
|
@@ -464,67 +1043,8 @@ function q(...e) {
|
|
|
464
1043
|
return e.filter(Boolean).join(" ");
|
|
465
1044
|
}
|
|
466
1045
|
//#endregion
|
|
467
|
-
//#region src/primitives/Icon/Icon.tsx
|
|
468
|
-
var vt = {
|
|
469
|
-
add: ie,
|
|
470
|
-
back: te,
|
|
471
|
-
building: A,
|
|
472
|
-
calendar: j,
|
|
473
|
-
camera: M,
|
|
474
|
-
check: N,
|
|
475
|
-
clock: F,
|
|
476
|
-
close: ce,
|
|
477
|
-
delete: oe,
|
|
478
|
-
document: R,
|
|
479
|
-
download: I,
|
|
480
|
-
expand: ee,
|
|
481
|
-
forward: P,
|
|
482
|
-
lock: z,
|
|
483
|
-
money: re,
|
|
484
|
-
moneyIn: D,
|
|
485
|
-
moneyOut: O,
|
|
486
|
-
more: L,
|
|
487
|
-
next: P,
|
|
488
|
-
notifications: k,
|
|
489
|
-
overview: ne,
|
|
490
|
-
people: H,
|
|
491
|
-
settings: ae,
|
|
492
|
-
signOut: B,
|
|
493
|
-
upload: V,
|
|
494
|
-
warning: se
|
|
495
|
-
}, yt = {
|
|
496
|
-
base: { icon: "breeze:block breeze:shrink-0" },
|
|
497
|
-
compound: {},
|
|
498
|
-
size: {
|
|
499
|
-
lg: "breeze:block-size-breeze-6 breeze:inline-size-breeze-6",
|
|
500
|
-
md: "breeze:block-size-breeze-5 breeze:inline-size-breeze-5",
|
|
501
|
-
sm: "breeze:block-size-breeze-4 breeze:inline-size-breeze-4"
|
|
502
|
-
},
|
|
503
|
-
state: { logicalDirection: "breeze:rtl:rotate-180" },
|
|
504
|
-
variant: {}
|
|
505
|
-
}, bt = /* @__PURE__ */ new Set([
|
|
506
|
-
"back",
|
|
507
|
-
"forward",
|
|
508
|
-
"next"
|
|
509
|
-
]);
|
|
510
|
-
function J({ label: e, name: t, size: n = "md" }) {
|
|
511
|
-
let r = vt[t], i = e?.trim() || void 0;
|
|
512
|
-
return /* @__PURE__ */ m(r, {
|
|
513
|
-
"aria-hidden": i === void 0 || void 0,
|
|
514
|
-
"aria-label": i,
|
|
515
|
-
className: [
|
|
516
|
-
yt.base.icon,
|
|
517
|
-
yt.size[n],
|
|
518
|
-
bt.has(t) && yt.state.logicalDirection
|
|
519
|
-
].filter(Boolean).join(" "),
|
|
520
|
-
focusable: "false",
|
|
521
|
-
role: i === void 0 ? void 0 : "img",
|
|
522
|
-
strokeWidth: 1.75
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
//#endregion
|
|
526
1046
|
//#region src/primitives/Calendar/Calendar.tsx
|
|
527
|
-
var
|
|
1047
|
+
var J = {
|
|
528
1048
|
base: {
|
|
529
1049
|
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",
|
|
530
1050
|
disabledRoot: "breeze:pointer-events-none breeze:[&>div:last-child]:hidden",
|
|
@@ -542,45 +1062,45 @@ var Y = {
|
|
|
542
1062
|
state: {},
|
|
543
1063
|
variant: {}
|
|
544
1064
|
};
|
|
545
|
-
function
|
|
1065
|
+
function Jt(e) {
|
|
546
1066
|
try {
|
|
547
|
-
return
|
|
1067
|
+
return ie(e);
|
|
548
1068
|
} catch {
|
|
549
1069
|
return null;
|
|
550
1070
|
}
|
|
551
1071
|
}
|
|
552
|
-
function
|
|
1072
|
+
function Yt({ disabled: e }) {
|
|
553
1073
|
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
|
|
554
|
-
className:
|
|
1074
|
+
className: J.base.header,
|
|
555
1075
|
children: [
|
|
556
|
-
/* @__PURE__ */ m(
|
|
557
|
-
className:
|
|
1076
|
+
/* @__PURE__ */ m(ae, {
|
|
1077
|
+
className: J.base.navButton,
|
|
558
1078
|
isDisabled: e,
|
|
559
1079
|
slot: "previous",
|
|
560
|
-
children: /* @__PURE__ */ m(
|
|
1080
|
+
children: /* @__PURE__ */ m(V, {
|
|
561
1081
|
name: "back",
|
|
562
1082
|
size: "sm"
|
|
563
1083
|
})
|
|
564
1084
|
}),
|
|
565
|
-
/* @__PURE__ */ m(
|
|
566
|
-
/* @__PURE__ */ m(
|
|
567
|
-
className:
|
|
1085
|
+
/* @__PURE__ */ m(de, { className: J.base.heading }),
|
|
1086
|
+
/* @__PURE__ */ m(ae, {
|
|
1087
|
+
className: J.base.navButton,
|
|
568
1088
|
isDisabled: e,
|
|
569
1089
|
slot: "next",
|
|
570
|
-
children: /* @__PURE__ */ m(
|
|
1090
|
+
children: /* @__PURE__ */ m(V, {
|
|
571
1091
|
name: "next",
|
|
572
1092
|
size: "sm"
|
|
573
1093
|
})
|
|
574
1094
|
})
|
|
575
1095
|
]
|
|
576
|
-
}), /* @__PURE__ */ h(
|
|
577
|
-
className:
|
|
1096
|
+
}), /* @__PURE__ */ h(ce, {
|
|
1097
|
+
className: J.base.grid,
|
|
578
1098
|
weekdayStyle: "short",
|
|
579
|
-
children: [/* @__PURE__ */ m(
|
|
580
|
-
className:
|
|
1099
|
+
children: [/* @__PURE__ */ m(ue, { children: (e) => /* @__PURE__ */ m(z, {
|
|
1100
|
+
className: J.base.weekday,
|
|
581
1101
|
children: e
|
|
582
|
-
}) }), /* @__PURE__ */ m(
|
|
583
|
-
className: ({ isSelected: e, isToday: t }) => q(
|
|
1102
|
+
}) }), /* @__PURE__ */ m(le, { children: (n) => /* @__PURE__ */ m(se, {
|
|
1103
|
+
className: ({ isSelected: e, isToday: t }) => q(J.base.cell, e && J.base.selectedCell, t && !e && J.base.todayCell),
|
|
584
1104
|
date: n,
|
|
585
1105
|
render: (n) => t("div", {
|
|
586
1106
|
...n,
|
|
@@ -591,7 +1111,7 @@ function St({ disabled: e }) {
|
|
|
591
1111
|
}) })]
|
|
592
1112
|
})] });
|
|
593
1113
|
}
|
|
594
|
-
function
|
|
1114
|
+
function Xt({ autoFocus: e, defaultValue: n, disabled: r, label: a, onChange: o, value: s }) {
|
|
595
1115
|
let u = s?.toString(), d = c(u), [f, p] = l(s ?? void 0);
|
|
596
1116
|
i(() => {
|
|
597
1117
|
u !== d.current && (d.current = u, s != null && p(s));
|
|
@@ -600,10 +1120,10 @@ function Ct({ autoFocus: e, defaultValue: n, disabled: r, label: a, onChange: o,
|
|
|
600
1120
|
focusedValue: h,
|
|
601
1121
|
onFocusChange: p
|
|
602
1122
|
}, _ = s === void 0 ? {} : { value: s }, v = n === void 0 ? {} : { defaultValue: n }, y = o === void 0 ? {} : { onChange: o };
|
|
603
|
-
return t(
|
|
1123
|
+
return t(oe, {
|
|
604
1124
|
"aria-label": a,
|
|
605
1125
|
autoFocus: e && !r,
|
|
606
|
-
className: q(
|
|
1126
|
+
className: q(J.base.root, r && J.base.disabledRoot),
|
|
607
1127
|
firstDayOfWeek: "mon",
|
|
608
1128
|
isReadOnly: r,
|
|
609
1129
|
render: r ? (e) => t("div", {
|
|
@@ -618,13 +1138,13 @@ function Ct({ autoFocus: e, defaultValue: n, disabled: r, label: a, onChange: o,
|
|
|
618
1138
|
...v,
|
|
619
1139
|
...y,
|
|
620
1140
|
..._
|
|
621
|
-
}, /* @__PURE__ */ m(
|
|
1141
|
+
}, /* @__PURE__ */ m(Yt, { disabled: r }));
|
|
622
1142
|
}
|
|
623
|
-
function
|
|
624
|
-
let o = a === void 0 ? void 0 :
|
|
625
|
-
return /* @__PURE__ */ m(
|
|
1143
|
+
function Zt({ autoFocus: e = !1, defaultValue: t, disabled: n = !1, label: r, onChange: i, value: a }) {
|
|
1144
|
+
let o = a === void 0 ? void 0 : Jt(a);
|
|
1145
|
+
return /* @__PURE__ */ m(Xt, {
|
|
626
1146
|
autoFocus: e,
|
|
627
|
-
defaultValue: t === void 0 ? void 0 :
|
|
1147
|
+
defaultValue: t === void 0 ? void 0 : Jt(t),
|
|
628
1148
|
disabled: n,
|
|
629
1149
|
label: r,
|
|
630
1150
|
onChange: (e) => {
|
|
@@ -634,17 +1154,8 @@ function wt({ autoFocus: e = !1, defaultValue: t, disabled: n = !1, label: r, on
|
|
|
634
1154
|
});
|
|
635
1155
|
}
|
|
636
1156
|
//#endregion
|
|
637
|
-
//#region src/primitives/layout.accessibility.ts
|
|
638
|
-
function Tt(e, t) {
|
|
639
|
-
let n = e?.trim() || void 0;
|
|
640
|
-
return {
|
|
641
|
-
accessibleLabel: n,
|
|
642
|
-
role: n !== void 0 && t === "div" ? "group" : void 0
|
|
643
|
-
};
|
|
644
|
-
}
|
|
645
|
-
//#endregion
|
|
646
1157
|
//#region src/primitives/Card/Card.tsx
|
|
647
|
-
var
|
|
1158
|
+
var Qt = {
|
|
648
1159
|
base: { card: "breeze:min-inline-size-0 breeze:rounded-breeze-panel breeze:border breeze:border-solid breeze:border-breeze-line breeze:shadow-breeze-panel" },
|
|
649
1160
|
compound: {},
|
|
650
1161
|
size: {
|
|
@@ -664,40 +1175,40 @@ var Et = {
|
|
|
664
1175
|
surface: "breeze:bg-breeze-surface"
|
|
665
1176
|
}
|
|
666
1177
|
};
|
|
667
|
-
function
|
|
668
|
-
let { accessibleLabel: s, role: c } =
|
|
1178
|
+
function $t({ "aria-label": e, children: n, clipped: r = !0, element: i = "div", padding: a = 4, variant: o = "surface" }) {
|
|
1179
|
+
let { accessibleLabel: s, role: c } = Ft(e, i);
|
|
669
1180
|
return t(i, {
|
|
670
1181
|
"aria-label": s,
|
|
671
1182
|
className: [
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
r &&
|
|
1183
|
+
Qt.base.card,
|
|
1184
|
+
Qt.variant[o],
|
|
1185
|
+
Qt.size[a],
|
|
1186
|
+
r && Qt.state.clipped
|
|
676
1187
|
].filter(Boolean).join(" "),
|
|
677
1188
|
role: c
|
|
678
1189
|
}, n);
|
|
679
1190
|
}
|
|
680
1191
|
//#endregion
|
|
681
1192
|
//#region src/primitives/Field/field.presentation.tsx
|
|
682
|
-
function
|
|
683
|
-
return /* @__PURE__ */ m(
|
|
1193
|
+
function en({ htmlFor: e, id: t, label: n, loading: r, onClick: i }) {
|
|
1194
|
+
return /* @__PURE__ */ m(ge, {
|
|
684
1195
|
className: K.base.label,
|
|
685
1196
|
htmlFor: e,
|
|
686
1197
|
id: t,
|
|
687
1198
|
onClick: i,
|
|
688
|
-
children: r ? /* @__PURE__ */ m(
|
|
1199
|
+
children: r ? /* @__PURE__ */ m(U, {
|
|
689
1200
|
blockSize: "1lh",
|
|
690
1201
|
inlineSize: "12em",
|
|
691
1202
|
shape: "rectangle"
|
|
692
1203
|
}) : n
|
|
693
1204
|
});
|
|
694
1205
|
}
|
|
695
|
-
function
|
|
696
|
-
return /* @__PURE__ */ h(p, { children: [e && /* @__PURE__ */ m(
|
|
1206
|
+
function tn({ description: e, descriptionId: t, error: n, errorId: r, loading: i }) {
|
|
1207
|
+
return /* @__PURE__ */ h(p, { children: [e && /* @__PURE__ */ m(_e, {
|
|
697
1208
|
className: K.base.description,
|
|
698
1209
|
id: t,
|
|
699
1210
|
slot: "description",
|
|
700
|
-
children: i ? /* @__PURE__ */ m(
|
|
1211
|
+
children: i ? /* @__PURE__ */ m(U, {
|
|
701
1212
|
blockSize: "1lh",
|
|
702
1213
|
inlineSize: "12em",
|
|
703
1214
|
shape: "rectangle"
|
|
@@ -706,12 +1217,12 @@ function kt({ description: e, descriptionId: t, error: n, errorId: r, loading: i
|
|
|
706
1217
|
"aria-hidden": "true",
|
|
707
1218
|
className: K.base.error,
|
|
708
1219
|
id: r,
|
|
709
|
-
children: /* @__PURE__ */ m(
|
|
1220
|
+
children: /* @__PURE__ */ m(U, {
|
|
710
1221
|
blockSize: "1lh",
|
|
711
1222
|
inlineSize: "12em",
|
|
712
1223
|
shape: "rectangle"
|
|
713
1224
|
})
|
|
714
|
-
}) : /* @__PURE__ */ m(
|
|
1225
|
+
}) : /* @__PURE__ */ m(he, {
|
|
715
1226
|
className: K.base.error,
|
|
716
1227
|
id: r,
|
|
717
1228
|
children: n
|
|
@@ -719,7 +1230,7 @@ function kt({ description: e, descriptionId: t, error: n, errorId: r, loading: i
|
|
|
719
1230
|
}
|
|
720
1231
|
//#endregion
|
|
721
1232
|
//#region src/primitives/Checkbox/Checkbox.tsx
|
|
722
|
-
var
|
|
1233
|
+
var nn = {
|
|
723
1234
|
base: {
|
|
724
1235
|
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",
|
|
725
1236
|
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",
|
|
@@ -732,9 +1243,9 @@ var At = {
|
|
|
732
1243
|
state: {},
|
|
733
1244
|
variant: {}
|
|
734
1245
|
};
|
|
735
|
-
function
|
|
736
|
-
let { messages: v } =
|
|
737
|
-
return /* @__PURE__ */ h(
|
|
1246
|
+
function rn({ 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: _ }) {
|
|
1247
|
+
let { messages: v } = B(), y = fe(d), b = t?.trim() || void 0, x = r?.trim() || void 0, S = n || s;
|
|
1248
|
+
return /* @__PURE__ */ h(me, {
|
|
738
1249
|
className: K.base.root,
|
|
739
1250
|
defaultSelected: e,
|
|
740
1251
|
form: i,
|
|
@@ -750,19 +1261,19 @@ function jt({ defaultSelected: e, description: t, disabled: n = !1, error: r, fo
|
|
|
750
1261
|
onChange: l,
|
|
751
1262
|
value: _,
|
|
752
1263
|
validationBehavior: "aria",
|
|
753
|
-
children: [/* @__PURE__ */ m(
|
|
754
|
-
className:
|
|
1264
|
+
children: [/* @__PURE__ */ m(pe, {
|
|
1265
|
+
className: nn.base.control,
|
|
755
1266
|
children: ({ isFocusVisible: e, isSelected: t }) => /* @__PURE__ */ h(p, { children: [s && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
|
|
756
1267
|
"aria-hidden": "true",
|
|
757
|
-
className:
|
|
758
|
-
children: /* @__PURE__ */ m(
|
|
1268
|
+
className: nn.base.skeletonIndicator,
|
|
1269
|
+
children: /* @__PURE__ */ m(U, {
|
|
759
1270
|
blockSize: "100%",
|
|
760
1271
|
inlineSize: "100%",
|
|
761
1272
|
shape: "rectangle"
|
|
762
1273
|
})
|
|
763
1274
|
}), /* @__PURE__ */ m("span", {
|
|
764
|
-
className:
|
|
765
|
-
children: /* @__PURE__ */ m(
|
|
1275
|
+
className: nn.base.skeleton,
|
|
1276
|
+
children: /* @__PURE__ */ m(U, {
|
|
766
1277
|
blockSize: "1lh",
|
|
767
1278
|
inlineSize: "12em",
|
|
768
1279
|
label: v.loading,
|
|
@@ -770,15 +1281,15 @@ function jt({ defaultSelected: e, description: t, disabled: n = !1, error: r, fo
|
|
|
770
1281
|
})
|
|
771
1282
|
})] }), !s && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
|
|
772
1283
|
"aria-hidden": "true",
|
|
773
|
-
className:
|
|
1284
|
+
className: nn.base.indicator,
|
|
774
1285
|
"data-focus-visible": e || void 0,
|
|
775
1286
|
"data-selected": t || void 0,
|
|
776
1287
|
children: t ? "✓" : ""
|
|
777
1288
|
}), /* @__PURE__ */ m("span", {
|
|
778
|
-
className:
|
|
1289
|
+
className: nn.base.label,
|
|
779
1290
|
children: o
|
|
780
1291
|
})] })] })
|
|
781
|
-
}), /* @__PURE__ */ m(
|
|
1292
|
+
}), /* @__PURE__ */ m(tn, {
|
|
782
1293
|
description: b,
|
|
783
1294
|
error: x,
|
|
784
1295
|
loading: s
|
|
@@ -787,7 +1298,7 @@ function jt({ defaultSelected: e, description: t, disabled: n = !1, error: r, fo
|
|
|
787
1298
|
}
|
|
788
1299
|
//#endregion
|
|
789
1300
|
//#region src/primitives/SelectionControl/SelectionControl.tsx
|
|
790
|
-
var
|
|
1301
|
+
var an = {
|
|
791
1302
|
base: {
|
|
792
1303
|
label: "breeze:[grid-area:1/1]",
|
|
793
1304
|
skeleton: "breeze:[grid-area:1/1] breeze:inline-size-full breeze:block-size-breeze-3",
|
|
@@ -798,14 +1309,14 @@ var Mt = {
|
|
|
798
1309
|
loadingLabel: "breeze:opacity-0"
|
|
799
1310
|
}
|
|
800
1311
|
};
|
|
801
|
-
function
|
|
802
|
-
let { getMessageLocale: y, messages: b } =
|
|
1312
|
+
function on({ "aria-describedby": e, "aria-label": n, "aria-labelledby": r, children: i, className: a, defaultPressed: o, disabled: s, id: c, announceLoading: u = !0, loading: f, onChange: g, pressed: _, ref: v }) {
|
|
1313
|
+
let { getMessageLocale: y, messages: b } = B(), [x, S] = l(o ?? !1), C = _ !== void 0, w = C ? _ : x;
|
|
803
1314
|
return /* @__PURE__ */ h(p, { children: [
|
|
804
1315
|
/* @__PURE__ */ h(d, {
|
|
805
1316
|
"aria-describedby": e,
|
|
806
1317
|
"aria-label": n,
|
|
807
1318
|
"aria-labelledby": r,
|
|
808
|
-
className: [a, f &&
|
|
1319
|
+
className: [a, f && an.state.loading].filter(Boolean).join(" "),
|
|
809
1320
|
id: c,
|
|
810
1321
|
isDisabled: s,
|
|
811
1322
|
isSelected: w,
|
|
@@ -820,22 +1331,22 @@ function Nt({ "aria-describedby": e, "aria-label": n, "aria-labelledby": r, chil
|
|
|
820
1331
|
type: "button"
|
|
821
1332
|
}),
|
|
822
1333
|
children: [/* @__PURE__ */ m("span", {
|
|
823
|
-
className: [
|
|
1334
|
+
className: [an.base.label, f && an.state.loadingLabel].filter(Boolean).join(" "),
|
|
824
1335
|
children: i
|
|
825
1336
|
}), f && /* @__PURE__ */ m("span", {
|
|
826
1337
|
"aria-hidden": "true",
|
|
827
|
-
className:
|
|
1338
|
+
className: an.base.skeleton,
|
|
828
1339
|
"data-breeze-skeleton": "",
|
|
829
|
-
children: /* @__PURE__ */ m(
|
|
1340
|
+
children: /* @__PURE__ */ m(U, { inlineSize: "100%" })
|
|
830
1341
|
})]
|
|
831
1342
|
}),
|
|
832
1343
|
f && u && /* @__PURE__ */ m("span", {
|
|
833
|
-
className:
|
|
834
|
-
children: /* @__PURE__ */ m(
|
|
1344
|
+
className: an.base.status,
|
|
1345
|
+
children: /* @__PURE__ */ m(U, { label: b.loading })
|
|
835
1346
|
}),
|
|
836
1347
|
u && /* @__PURE__ */ m("output", {
|
|
837
1348
|
"aria-live": "polite",
|
|
838
|
-
className:
|
|
1349
|
+
className: an.base.status,
|
|
839
1350
|
lang: y("loading"),
|
|
840
1351
|
children: f ? b.loading : ""
|
|
841
1352
|
})
|
|
@@ -843,19 +1354,19 @@ function Nt({ "aria-describedby": e, "aria-label": n, "aria-labelledby": r, chil
|
|
|
843
1354
|
}
|
|
844
1355
|
//#endregion
|
|
845
1356
|
//#region src/primitives/Chip/Chip.tsx
|
|
846
|
-
var
|
|
1357
|
+
var sn = {
|
|
847
1358
|
base: { chip: "breeze:inline-grid breeze:items-center breeze:justify-center breeze:whitespace-nowrap breeze:rounded-breeze-full breeze:border breeze:border-solid breeze:border-breeze-line-strong breeze:bg-breeze-surface breeze:ps-breeze-3 breeze:pe-breeze-3 breeze:font-breeze-sans breeze:text-breeze-xs breeze:font-semibold breeze:text-breeze-ink breeze:cursor-pointer breeze:select-none breeze:outline-offset-2 breeze:data-[hovered]:bg-breeze-sunken breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:data-[disabled]:cursor-not-allowed breeze:data-[disabled]:opacity-60 breeze:any-pointer-coarse:min-block-breeze-tap breeze:any-pointer-coarse:min-inline-breeze-tap breeze:min-block-breeze-sm" },
|
|
848
1359
|
compound: {},
|
|
849
1360
|
size: {},
|
|
850
1361
|
state: { pressed: "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" },
|
|
851
1362
|
variant: {}
|
|
852
1363
|
};
|
|
853
|
-
function
|
|
854
|
-
return /* @__PURE__ */ m(
|
|
1364
|
+
function cn({ "aria-describedby": e, "aria-label": t, "aria-labelledby": n, children: r, defaultPressed: i, disabled: a = !1, id: o, loading: s = !1, onChange: c, pressed: l, ref: u }) {
|
|
1365
|
+
return /* @__PURE__ */ m(on, {
|
|
855
1366
|
"aria-describedby": e,
|
|
856
1367
|
"aria-label": t,
|
|
857
1368
|
"aria-labelledby": n,
|
|
858
|
-
className: [
|
|
1369
|
+
className: [sn.base.chip, sn.state.pressed].join(" "),
|
|
859
1370
|
defaultPressed: i,
|
|
860
1371
|
disabled: a,
|
|
861
1372
|
id: o,
|
|
@@ -868,7 +1379,7 @@ function Ft({ "aria-describedby": e, "aria-label": t, "aria-labelledby": n, chil
|
|
|
868
1379
|
}
|
|
869
1380
|
//#endregion
|
|
870
1381
|
//#region src/primitives/Collection/collection.styles.ts
|
|
871
|
-
var
|
|
1382
|
+
var Y = {
|
|
872
1383
|
base: {
|
|
873
1384
|
badge: "breeze:ms-auto",
|
|
874
1385
|
content: "breeze:flex breeze:min-inline-size-0 breeze:flex-1 breeze:flex-col breeze:gap-breeze-1",
|
|
@@ -883,12 +1394,12 @@ var X = {
|
|
|
883
1394
|
size: {},
|
|
884
1395
|
state: {},
|
|
885
1396
|
variant: {}
|
|
886
|
-
},
|
|
887
|
-
function
|
|
888
|
-
let { direction: r } =
|
|
1397
|
+
}, ln = e(null), un = "BreezeProvider portalContainer must belong to the current document and light DOM.";
|
|
1398
|
+
function dn({ children: e, portalContainer: t, locale: n }) {
|
|
1399
|
+
let { direction: r } = Oe(), [i] = l(Ge), [a, s] = l(null);
|
|
889
1400
|
return o(() => {
|
|
890
1401
|
let e = t ?? document.body;
|
|
891
|
-
if (e.ownerDocument !== document || e.getRootNode() !== document) throw Error(
|
|
1402
|
+
if (e.ownerDocument !== document || e.getRootNode() !== document) throw Error(un);
|
|
892
1403
|
let n = e.ownerDocument.createElement("div");
|
|
893
1404
|
return n.dataset.breezeRoot = "", n.dataset.breezePortal = "", e.append(n), s(n), () => n.remove();
|
|
894
1405
|
}, [t]), o(() => {
|
|
@@ -897,45 +1408,45 @@ function Rt({ children: e, portalContainer: t, locale: n }) {
|
|
|
897
1408
|
r,
|
|
898
1409
|
a,
|
|
899
1410
|
n
|
|
900
|
-
]), /* @__PURE__ */ m(
|
|
1411
|
+
]), /* @__PURE__ */ m(Ee, {
|
|
901
1412
|
getContainer: () => a,
|
|
902
|
-
children: /* @__PURE__ */ m(
|
|
1413
|
+
children: /* @__PURE__ */ m(Ke, {
|
|
903
1414
|
value: i,
|
|
904
|
-
children: /* @__PURE__ */ m(
|
|
1415
|
+
children: /* @__PURE__ */ m(ln, {
|
|
905
1416
|
value: a,
|
|
906
1417
|
children: e
|
|
907
1418
|
})
|
|
908
1419
|
})
|
|
909
1420
|
});
|
|
910
1421
|
}
|
|
911
|
-
function
|
|
912
|
-
return r(
|
|
1422
|
+
function fn() {
|
|
1423
|
+
return r(ln);
|
|
913
1424
|
}
|
|
914
1425
|
//#endregion
|
|
915
1426
|
//#region src/primitives/Collection/CollectionPopover.tsx
|
|
916
|
-
var
|
|
917
|
-
function
|
|
1427
|
+
var pn = "Breeze overlay triggers and portal containers must belong to the current document and light DOM.";
|
|
1428
|
+
function mn(e) {
|
|
918
1429
|
return typeof e == "object" && !!e && "nodeType" in e && typeof e.contains == "function";
|
|
919
1430
|
}
|
|
920
|
-
function
|
|
921
|
-
let f =
|
|
1431
|
+
function hn({ children: e, className: t, containerPadding: a, isOpen: s, onOpenChange: u, triggerRef: d }) {
|
|
1432
|
+
let f = fn(), p = r(Je), h = p?.open ?? !0, [g, _] = l(p === null), [v, y] = l(!1), b = c(!1), x = c(null), S = c(null), C = c(null), w = s && h, T = Ye("popover", w && g && f !== null, w || v), E = n((e) => {
|
|
922
1433
|
x.current = e, y(e !== null);
|
|
923
1434
|
}, []);
|
|
924
1435
|
return o(() => {
|
|
925
|
-
if (f && d.current && (d.current.ownerDocument !== document || d.current.getRootNode() !== document || f.ownerDocument !== document || f.getRootNode() !== document)) throw Error(
|
|
1436
|
+
if (f && d.current && (d.current.ownerDocument !== document || d.current.getRootNode() !== document || f.ownerDocument !== document || f.getRootNode() !== document)) throw Error(pn);
|
|
926
1437
|
}), i(() => _(!0), []), o(() => {
|
|
927
1438
|
if (!w || !T.topmost || !f) return;
|
|
928
|
-
let e = (e) =>
|
|
1439
|
+
let e = (e) => mn(e) && !x.current?.contains(e) && !d.current?.contains(e), t = (e, t) => !!e && !!t && (e === t || e.contains(t) || t.contains(e)), n = (e) => e.button === 0, r = null, i = () => {
|
|
929
1440
|
r !== null && (clearTimeout(r), r = null);
|
|
930
1441
|
}, a = () => {
|
|
931
1442
|
i(), r = setTimeout(() => {
|
|
932
1443
|
r = null, C.current = null;
|
|
933
1444
|
}, 0);
|
|
934
1445
|
}, o = (e) => {
|
|
935
|
-
n(e) && (i(), S.current =
|
|
1446
|
+
n(e) && (i(), S.current = mn(e.target) ? e.target : null, C.current = null);
|
|
936
1447
|
}, s = (t) => {
|
|
937
1448
|
if (!n(t)) return;
|
|
938
|
-
let r = S.current, i =
|
|
1449
|
+
let r = S.current, i = mn(t.target) ? t.target : null;
|
|
939
1450
|
if (!e(i)) {
|
|
940
1451
|
S.current = null;
|
|
941
1452
|
return;
|
|
@@ -948,7 +1459,7 @@ function Ht({ children: e, className: t, containerPadding: a, isOpen: s, onOpenC
|
|
|
948
1459
|
}, c = () => {
|
|
949
1460
|
i(), S.current = null, C.current = null;
|
|
950
1461
|
}, l = (n) => {
|
|
951
|
-
let r =
|
|
1462
|
+
let r = mn(n.target) ? n.target : null;
|
|
952
1463
|
e(r) && !t(C.current, r) && u(!1), i(), S.current = null, C.current = null;
|
|
953
1464
|
};
|
|
954
1465
|
return f.ownerDocument.addEventListener("pointerdown", o, !0), f.ownerDocument.addEventListener("pointerup", s, !0), f.ownerDocument.addEventListener("pointercancel", c, !0), f.ownerDocument.addEventListener("click", l, !0), () => {
|
|
@@ -966,7 +1477,7 @@ function Ht({ children: e, className: t, containerPadding: a, isOpen: s, onOpenC
|
|
|
966
1477
|
u,
|
|
967
1478
|
h,
|
|
968
1479
|
s
|
|
969
|
-
]), /* @__PURE__ */ m(
|
|
1480
|
+
]), /* @__PURE__ */ m(Te, {
|
|
970
1481
|
className: `${t} breeze-popover`,
|
|
971
1482
|
containerPadding: a,
|
|
972
1483
|
"data-breeze-interactive": T.interactive,
|
|
@@ -987,25 +1498,25 @@ function Ht({ children: e, className: t, containerPadding: a, isOpen: s, onOpenC
|
|
|
987
1498
|
}
|
|
988
1499
|
//#endregion
|
|
989
1500
|
//#region src/primitives/Collection/DescriptorContent.tsx
|
|
990
|
-
function
|
|
1501
|
+
function gn({ descriptor: e, isSelected: t }) {
|
|
991
1502
|
return /* @__PURE__ */ h(p, { children: [
|
|
992
|
-
e.icon && /* @__PURE__ */ m(
|
|
1503
|
+
e.icon && /* @__PURE__ */ m(V, {
|
|
993
1504
|
name: e.icon,
|
|
994
1505
|
size: "sm"
|
|
995
1506
|
}),
|
|
996
1507
|
/* @__PURE__ */ h("span", {
|
|
997
|
-
className:
|
|
1508
|
+
className: Y.base.content,
|
|
998
1509
|
children: [/* @__PURE__ */ m("span", {
|
|
999
|
-
className:
|
|
1510
|
+
className: Y.base.label,
|
|
1000
1511
|
children: e.label
|
|
1001
1512
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
1002
|
-
className:
|
|
1513
|
+
className: Y.base.description,
|
|
1003
1514
|
children: e.description
|
|
1004
1515
|
})]
|
|
1005
1516
|
}),
|
|
1006
1517
|
e.badge && /* @__PURE__ */ m("span", {
|
|
1007
|
-
className:
|
|
1008
|
-
children: /* @__PURE__ */ m(
|
|
1518
|
+
className: Y.base.badge,
|
|
1519
|
+
children: /* @__PURE__ */ m(qt, {
|
|
1009
1520
|
"aria-label": e.badge["aria-label"],
|
|
1010
1521
|
variant: e.badge.variant,
|
|
1011
1522
|
children: e.badge.children
|
|
@@ -1013,8 +1524,8 @@ function Ut({ descriptor: e, isSelected: t }) {
|
|
|
1013
1524
|
}),
|
|
1014
1525
|
/* @__PURE__ */ m("span", {
|
|
1015
1526
|
"aria-hidden": "true",
|
|
1016
|
-
className:
|
|
1017
|
-
children: t && /* @__PURE__ */ m(
|
|
1527
|
+
className: Y.base.selectedIndicator,
|
|
1528
|
+
children: t && /* @__PURE__ */ m(V, {
|
|
1018
1529
|
name: "check",
|
|
1019
1530
|
size: "sm"
|
|
1020
1531
|
})
|
|
@@ -1023,13 +1534,13 @@ function Ut({ descriptor: e, isSelected: t }) {
|
|
|
1023
1534
|
}
|
|
1024
1535
|
//#endregion
|
|
1025
1536
|
//#region src/primitives/Collection/DescriptorOption.tsx
|
|
1026
|
-
function
|
|
1027
|
-
return /* @__PURE__ */ m(
|
|
1028
|
-
className:
|
|
1537
|
+
function _n({ descriptor: e }) {
|
|
1538
|
+
return /* @__PURE__ */ m(we, {
|
|
1539
|
+
className: Y.base.item,
|
|
1029
1540
|
id: e.id,
|
|
1030
1541
|
isDisabled: e.disabled,
|
|
1031
1542
|
textValue: e.label,
|
|
1032
|
-
children: ({ isSelected: t }) => /* @__PURE__ */ m(
|
|
1543
|
+
children: ({ isSelected: t }) => /* @__PURE__ */ m(gn, {
|
|
1033
1544
|
descriptor: e,
|
|
1034
1545
|
isSelected: t
|
|
1035
1546
|
})
|
|
@@ -1037,7 +1548,7 @@ function Wt({ descriptor: e }) {
|
|
|
1037
1548
|
}
|
|
1038
1549
|
//#endregion
|
|
1039
1550
|
//#region src/primitives/ComboBox/ComboBox.tsx
|
|
1040
|
-
var
|
|
1551
|
+
var vn = {
|
|
1041
1552
|
base: {
|
|
1042
1553
|
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",
|
|
1043
1554
|
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",
|
|
@@ -1055,31 +1566,31 @@ var Gt = {
|
|
|
1055
1566
|
},
|
|
1056
1567
|
variant: {}
|
|
1057
1568
|
};
|
|
1058
|
-
function
|
|
1569
|
+
function yn(e, t, n, r) {
|
|
1059
1570
|
let i = t.find(({ item: t }) => t === e);
|
|
1060
1571
|
if (i) return i;
|
|
1061
1572
|
if (r && typeof e == "string") return;
|
|
1062
1573
|
let { id: a } = n(e);
|
|
1063
1574
|
return t.find((e) => e.descriptor.id === a);
|
|
1064
1575
|
}
|
|
1065
|
-
function
|
|
1576
|
+
function bn(e, t, n, r) {
|
|
1066
1577
|
if (e !== void 0) return e === null || r && typeof e == "string" && !t ? null : t?.id ?? n(e).id;
|
|
1067
1578
|
}
|
|
1068
|
-
function
|
|
1579
|
+
function xn(e, t, n) {
|
|
1069
1580
|
if (!(e === void 0 || !n)) return t ? t.descriptor.label : typeof e == "string" ? e : "";
|
|
1070
1581
|
}
|
|
1071
|
-
function
|
|
1582
|
+
function Sn(e, t, n) {
|
|
1072
1583
|
if (!(!n || typeof e != "string" || t)) return e;
|
|
1073
1584
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return /* @__PURE__ */ m(
|
|
1076
|
-
className:
|
|
1585
|
+
function Cn({ items: e }) {
|
|
1586
|
+
return /* @__PURE__ */ m(Ce, {
|
|
1587
|
+
className: Y.base.listBox,
|
|
1077
1588
|
items: e,
|
|
1078
|
-
children: (e) => /* @__PURE__ */ m(
|
|
1589
|
+
children: (e) => /* @__PURE__ */ m(_n, { descriptor: e.descriptor })
|
|
1079
1590
|
});
|
|
1080
1591
|
}
|
|
1081
|
-
function
|
|
1082
|
-
let c = r(
|
|
1592
|
+
function wn({ allowsCustomValue: e, hasSuggestions: t, isDisabled: n, isReadOnly: a, items: o, triggerRef: s }) {
|
|
1593
|
+
let c = r(ye), l = n || a, u = !l && (t || e) && (c?.isOpen ?? !1);
|
|
1083
1594
|
return i(() => {
|
|
1084
1595
|
(l || !t && !e) && c?.isOpen && c.setOpen(!1);
|
|
1085
1596
|
}, [
|
|
@@ -1087,128 +1598,128 @@ function Zt({ allowsCustomValue: e, hasSuggestions: t, isDisabled: n, isReadOnly
|
|
|
1087
1598
|
t,
|
|
1088
1599
|
l,
|
|
1089
1600
|
c
|
|
1090
|
-
]), /* @__PURE__ */ m(
|
|
1091
|
-
className:
|
|
1601
|
+
]), /* @__PURE__ */ m(hn, {
|
|
1602
|
+
className: vn.base.popover,
|
|
1092
1603
|
isOpen: u,
|
|
1093
1604
|
onOpenChange: (e) => c?.setOpen(e),
|
|
1094
1605
|
triggerRef: s,
|
|
1095
|
-
children: /* @__PURE__ */ m(
|
|
1606
|
+
children: /* @__PURE__ */ m(Cn, { items: o })
|
|
1096
1607
|
});
|
|
1097
1608
|
}
|
|
1098
|
-
function
|
|
1099
|
-
let { allowsCustomValue: t = !1, autoComplete: n, autoFocus: r, defaultValue: o, description: l, disabled: u = !1, error: d, form: f, getItem: p, id:
|
|
1609
|
+
function Tn({ props: e }) {
|
|
1610
|
+
let { allowsCustomValue: t = !1, autoComplete: n, autoFocus: r, defaultValue: o, description: l, disabled: u = !1, error: d, form: f, getItem: p, id: g, items: _, label: v, loading: y = !1, name: b, onChange: x, placeholder: S, readOnly: C = !1, required: w = !1, value: T } = e, { messages: E } = B(), { contains: D } = be({ sensitivity: "base" }), O = l?.trim() || void 0, k = d?.trim() || void 0, A = u || y, j = a(), ee = `${j}-description`, M = `${j}-error`, te = [O && ee, k && M].filter(Boolean).join(" ") || void 0, ne = c(null), N = s(() => _.map((e) => {
|
|
1100
1611
|
let t = p(e);
|
|
1101
1612
|
return {
|
|
1102
1613
|
descriptor: t,
|
|
1103
1614
|
id: t.id,
|
|
1104
1615
|
item: e
|
|
1105
1616
|
};
|
|
1106
|
-
}), [p,
|
|
1617
|
+
}), [p, _]), re = T == null ? void 0 : yn(T, N, p, t), P = bn(T, re, p, t), F = o == null ? void 0 : yn(o, N, p, t), I = bn(o, F, p, t), ie = xn(T, re, t), L = Sn(o, F, t), R = c(P == null ? null : String(P)), oe = c(ie ?? L ?? ""), se = c(!1), ce = x;
|
|
1107
1618
|
i(() => {
|
|
1108
|
-
|
|
1109
|
-
}, [
|
|
1110
|
-
let
|
|
1619
|
+
R.current = P == null ? null : String(P);
|
|
1620
|
+
}, [P]);
|
|
1621
|
+
let le = (e) => {
|
|
1111
1622
|
if (e === null) {
|
|
1112
|
-
if (
|
|
1113
|
-
let e =
|
|
1114
|
-
if (
|
|
1623
|
+
if (R.current = null, t) {
|
|
1624
|
+
let e = se.current;
|
|
1625
|
+
if (se.current = !1, oe.current || e) return;
|
|
1115
1626
|
}
|
|
1116
|
-
|
|
1627
|
+
ce?.(null);
|
|
1117
1628
|
return;
|
|
1118
1629
|
}
|
|
1119
|
-
|
|
1120
|
-
let n =
|
|
1121
|
-
|
|
1122
|
-
},
|
|
1123
|
-
|
|
1124
|
-
},
|
|
1125
|
-
return /* @__PURE__ */ h(
|
|
1630
|
+
se.current = !1, R.current = String(e);
|
|
1631
|
+
let n = N.find((t) => t.descriptor.id === String(e));
|
|
1632
|
+
oe.current = n?.descriptor.label ?? "", ce?.(n?.item ?? null);
|
|
1633
|
+
}, ue = (e) => {
|
|
1634
|
+
oe.current = e, se.current = !0, t && N.find((e) => e.descriptor.id === R.current)?.descriptor.label !== e && ce?.(e || null);
|
|
1635
|
+
}, z = !y && k !== void 0, de = A ? void 0 : b;
|
|
1636
|
+
return /* @__PURE__ */ h(ve, {
|
|
1126
1637
|
allowsCustomValue: t,
|
|
1127
1638
|
allowsEmptyCollection: t,
|
|
1128
|
-
"aria-label":
|
|
1639
|
+
"aria-label": y ? v : void 0,
|
|
1129
1640
|
className: K.base.root,
|
|
1130
|
-
defaultFilter:
|
|
1131
|
-
defaultInputValue:
|
|
1132
|
-
defaultItems:
|
|
1133
|
-
defaultValue:
|
|
1641
|
+
defaultFilter: D,
|
|
1642
|
+
defaultInputValue: L,
|
|
1643
|
+
defaultItems: N,
|
|
1644
|
+
defaultValue: I,
|
|
1134
1645
|
form: f,
|
|
1135
|
-
id:
|
|
1136
|
-
inputValue:
|
|
1137
|
-
isDisabled:
|
|
1138
|
-
isInvalid:
|
|
1139
|
-
isReadOnly:
|
|
1140
|
-
isRequired:
|
|
1646
|
+
id: g,
|
|
1647
|
+
inputValue: ie,
|
|
1648
|
+
isDisabled: A,
|
|
1649
|
+
isInvalid: z,
|
|
1650
|
+
isReadOnly: C,
|
|
1651
|
+
isRequired: w,
|
|
1141
1652
|
menuTrigger: "input",
|
|
1142
|
-
name:
|
|
1143
|
-
onInputChange:
|
|
1144
|
-
onChange:
|
|
1145
|
-
value:
|
|
1653
|
+
name: de,
|
|
1654
|
+
onInputChange: ue,
|
|
1655
|
+
onChange: le,
|
|
1656
|
+
value: P,
|
|
1146
1657
|
validationBehavior: "aria",
|
|
1147
1658
|
children: [
|
|
1148
|
-
/* @__PURE__ */ m(
|
|
1149
|
-
label:
|
|
1150
|
-
loading:
|
|
1659
|
+
/* @__PURE__ */ m(en, {
|
|
1660
|
+
label: v,
|
|
1661
|
+
loading: y
|
|
1151
1662
|
}),
|
|
1152
|
-
/* @__PURE__ */ h(
|
|
1153
|
-
className: q(
|
|
1154
|
-
isDisabled:
|
|
1155
|
-
isInvalid:
|
|
1156
|
-
isReadOnly:
|
|
1157
|
-
ref:
|
|
1663
|
+
/* @__PURE__ */ h(xe, {
|
|
1664
|
+
className: q(vn.base.group, y && vn.state.loadingGroup, C && vn.state.readOnlyGroup),
|
|
1665
|
+
isDisabled: A,
|
|
1666
|
+
isInvalid: z,
|
|
1667
|
+
isReadOnly: C,
|
|
1668
|
+
ref: ne,
|
|
1158
1669
|
children: [
|
|
1159
|
-
/* @__PURE__ */ m(
|
|
1160
|
-
"aria-busy":
|
|
1670
|
+
/* @__PURE__ */ m(Se, {
|
|
1671
|
+
"aria-busy": y || void 0,
|
|
1161
1672
|
"aria-describedby": te,
|
|
1162
1673
|
autoComplete: n,
|
|
1163
1674
|
autoFocus: r,
|
|
1164
|
-
className: q(
|
|
1675
|
+
className: q(vn.base.input, y && vn.state.loadingInput),
|
|
1165
1676
|
form: f,
|
|
1166
|
-
placeholder:
|
|
1167
|
-
readOnly:
|
|
1677
|
+
placeholder: S,
|
|
1678
|
+
readOnly: C || void 0
|
|
1168
1679
|
}),
|
|
1169
|
-
/* @__PURE__ */ m(
|
|
1680
|
+
/* @__PURE__ */ m(ae, {
|
|
1170
1681
|
"aria-describedby": te,
|
|
1171
|
-
className: q(
|
|
1172
|
-
children: /* @__PURE__ */ m(
|
|
1682
|
+
className: q(vn.base.trigger, y && vn.state.loadingTrigger),
|
|
1683
|
+
children: /* @__PURE__ */ m(V, {
|
|
1173
1684
|
name: "expand",
|
|
1174
1685
|
size: "sm"
|
|
1175
1686
|
})
|
|
1176
1687
|
}),
|
|
1177
|
-
|
|
1178
|
-
className:
|
|
1179
|
-
children: /* @__PURE__ */ m(
|
|
1688
|
+
y && /* @__PURE__ */ m("span", {
|
|
1689
|
+
className: vn.base.skeleton,
|
|
1690
|
+
children: /* @__PURE__ */ m(U, {
|
|
1180
1691
|
blockSize: "100%",
|
|
1181
1692
|
inlineSize: "100%",
|
|
1182
|
-
label:
|
|
1693
|
+
label: E.loading,
|
|
1183
1694
|
shape: "rectangle"
|
|
1184
1695
|
})
|
|
1185
1696
|
})
|
|
1186
1697
|
]
|
|
1187
1698
|
}),
|
|
1188
|
-
/* @__PURE__ */ m(
|
|
1699
|
+
/* @__PURE__ */ m(wn, {
|
|
1189
1700
|
allowsCustomValue: t,
|
|
1190
|
-
hasSuggestions:
|
|
1191
|
-
isDisabled:
|
|
1192
|
-
isReadOnly:
|
|
1193
|
-
items:
|
|
1194
|
-
triggerRef:
|
|
1701
|
+
hasSuggestions: N.length > 0,
|
|
1702
|
+
isDisabled: A,
|
|
1703
|
+
isReadOnly: C,
|
|
1704
|
+
items: N,
|
|
1705
|
+
triggerRef: ne
|
|
1195
1706
|
}),
|
|
1196
|
-
/* @__PURE__ */ m(
|
|
1197
|
-
description:
|
|
1198
|
-
descriptionId:
|
|
1199
|
-
error:
|
|
1200
|
-
errorId:
|
|
1201
|
-
loading:
|
|
1707
|
+
/* @__PURE__ */ m(tn, {
|
|
1708
|
+
description: O,
|
|
1709
|
+
descriptionId: ee,
|
|
1710
|
+
error: k,
|
|
1711
|
+
errorId: M,
|
|
1712
|
+
loading: y
|
|
1202
1713
|
})
|
|
1203
1714
|
]
|
|
1204
1715
|
});
|
|
1205
1716
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return /* @__PURE__ */ m(
|
|
1717
|
+
function En(e) {
|
|
1718
|
+
return /* @__PURE__ */ m(Tn, { props: e });
|
|
1208
1719
|
}
|
|
1209
1720
|
//#endregion
|
|
1210
1721
|
//#region src/primitives/Container/Container.tsx
|
|
1211
|
-
var
|
|
1722
|
+
var Dn = {
|
|
1212
1723
|
base: { container: "breeze:mx-auto breeze:inline-size-full breeze:min-inline-size-0" },
|
|
1213
1724
|
compound: {},
|
|
1214
1725
|
size: {
|
|
@@ -1219,123 +1730,21 @@ var en = {
|
|
|
1219
1730
|
state: { padded: "breeze:ps-breeze-4 breeze:pe-breeze-4 breeze:breeze-md:ps-breeze-7 breeze:breeze-md:pe-breeze-7" },
|
|
1220
1731
|
variant: {}
|
|
1221
1732
|
};
|
|
1222
|
-
function
|
|
1223
|
-
let { accessibleLabel: o, role: s } =
|
|
1733
|
+
function On({ "aria-label": e, children: n, element: r = "div", padded: i = !0, width: a = "page" }) {
|
|
1734
|
+
let { accessibleLabel: o, role: s } = Ft(e, r);
|
|
1224
1735
|
return t(r, {
|
|
1225
1736
|
"aria-label": o,
|
|
1226
1737
|
className: [
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
i &&
|
|
1738
|
+
Dn.base.container,
|
|
1739
|
+
Dn.size[a],
|
|
1740
|
+
i && Dn.state.padded
|
|
1230
1741
|
].filter(Boolean).join(" "),
|
|
1231
1742
|
role: s
|
|
1232
1743
|
}, n);
|
|
1233
1744
|
}
|
|
1234
1745
|
//#endregion
|
|
1235
|
-
//#region src/primitives/Typography/Typography.tsx
|
|
1236
|
-
var nn = {
|
|
1237
|
-
base: { text: "breeze:m-0 breeze:font-breeze-sans" },
|
|
1238
|
-
compound: {},
|
|
1239
|
-
size: {},
|
|
1240
|
-
state: {
|
|
1241
|
-
aligned: "breeze:block breeze:inline-size-full",
|
|
1242
|
-
inlineLoading: "breeze:inline-block",
|
|
1243
|
-
numeric: "breeze:tabular-nums breeze:tracking-breeze-tighter",
|
|
1244
|
-
truncate: "breeze:block breeze:min-inline-size-0 breeze:inline-size-full breeze:overflow-hidden breeze:text-ellipsis breeze:whitespace-nowrap"
|
|
1245
|
-
},
|
|
1246
|
-
variant: {
|
|
1247
|
-
align: {
|
|
1248
|
-
center: "breeze:text-center",
|
|
1249
|
-
end: "breeze:text-end",
|
|
1250
|
-
start: "breeze:text-start"
|
|
1251
|
-
},
|
|
1252
|
-
role: {
|
|
1253
|
-
body: "breeze:text-breeze-sm breeze:font-normal breeze:leading-breeze-snug",
|
|
1254
|
-
caption: "breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug",
|
|
1255
|
-
heading: "breeze:text-breeze-2xl breeze:font-semibold breeze:leading-breeze-tight",
|
|
1256
|
-
label: "breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug",
|
|
1257
|
-
micro: "breeze:text-breeze-2xs breeze:font-bold breeze:uppercase breeze:leading-breeze-snug breeze:tracking-breeze-caps",
|
|
1258
|
-
money: "breeze:text-breeze-4xl breeze:font-semibold breeze:leading-breeze-tight breeze:tracking-breeze-tightest breeze:tabular-nums",
|
|
1259
|
-
title: "breeze:text-breeze-md breeze:font-semibold breeze:leading-breeze-snug"
|
|
1260
|
-
},
|
|
1261
|
-
tone: {
|
|
1262
|
-
brand: "breeze:text-breeze-brand-text",
|
|
1263
|
-
danger: "breeze:text-breeze-danger",
|
|
1264
|
-
default: "breeze:text-breeze-ink",
|
|
1265
|
-
muted: "breeze:text-breeze-ink-3",
|
|
1266
|
-
positive: "breeze:text-breeze-pos",
|
|
1267
|
-
secondary: "breeze:text-breeze-ink-2",
|
|
1268
|
-
warning: "breeze:text-breeze-warn"
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
};
|
|
1272
|
-
function rn(e) {
|
|
1273
|
-
return e === "heading" ? "h2" : e === "title" ? "h3" : e === "body" ? "p" : "span";
|
|
1274
|
-
}
|
|
1275
|
-
function an(e, t, n, r) {
|
|
1276
|
-
let i;
|
|
1277
|
-
try {
|
|
1278
|
-
i = new Intl.NumberFormat(n, {
|
|
1279
|
-
currency: t,
|
|
1280
|
-
signDisplay: r ?? "auto",
|
|
1281
|
-
style: "currency"
|
|
1282
|
-
}).formatToParts(e);
|
|
1283
|
-
} catch (t) {
|
|
1284
|
-
if (!(t instanceof RangeError)) throw t;
|
|
1285
|
-
i = new Intl.NumberFormat(n, { signDisplay: r ?? "auto" }).formatToParts(e);
|
|
1286
|
-
}
|
|
1287
|
-
return i.map((e) => e.type === "minusSign" ? "−" : e.value).join("");
|
|
1288
|
-
}
|
|
1289
|
-
function on(e, t, n) {
|
|
1290
|
-
let r;
|
|
1291
|
-
try {
|
|
1292
|
-
r = y(e).toDate("UTC");
|
|
1293
|
-
} catch {
|
|
1294
|
-
return e;
|
|
1295
|
-
}
|
|
1296
|
-
return new Intl.DateTimeFormat(t, {
|
|
1297
|
-
dateStyle: n ?? "long",
|
|
1298
|
-
timeZone: "UTC"
|
|
1299
|
-
}).format(r);
|
|
1300
|
-
}
|
|
1301
|
-
function sn(e, t, n) {
|
|
1302
|
-
return e.loading ? /* @__PURE__ */ m(W, {
|
|
1303
|
-
blockSize: "1lh",
|
|
1304
|
-
inlineSize: "8em",
|
|
1305
|
-
label: n
|
|
1306
|
-
}) : e.format === "currency" ? an(e.value, e.currency, t, e.sign ?? "auto") : e.format === "date" ? on(e.value, t, e.dateStyle) : e.children;
|
|
1307
|
-
}
|
|
1308
|
-
function cn(e) {
|
|
1309
|
-
let { locale: n, messages: r } = U(), { "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 = sn(e, n, r.loading), C = c !== void 0 || typeof o == "string" || typeof o == "number", w = !u && y !== void 0 && !C && [
|
|
1310
|
-
"h1",
|
|
1311
|
-
"h2",
|
|
1312
|
-
"h3",
|
|
1313
|
-
"h4"
|
|
1314
|
-
].includes(v), T = !u && y !== void 0 && !C && !w;
|
|
1315
|
-
return !u && y !== void 0 && C && (S = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
|
|
1316
|
-
"aria-hidden": "true",
|
|
1317
|
-
children: S
|
|
1318
|
-
}), /* @__PURE__ */ m(pt, { children: y })] })), t(v, {
|
|
1319
|
-
"aria-busy": u || void 0,
|
|
1320
|
-
"aria-label": T || w ? y : void 0,
|
|
1321
|
-
className: [
|
|
1322
|
-
nn.base.text,
|
|
1323
|
-
nn.variant.role[_],
|
|
1324
|
-
nn.variant.tone[f],
|
|
1325
|
-
nn.variant.align[b],
|
|
1326
|
-
x && nn.state.aligned,
|
|
1327
|
-
u && v === "span" && !x && nn.state.inlineLoading,
|
|
1328
|
-
d && _ !== "money" && nn.state.numeric,
|
|
1329
|
-
g && nn.state.truncate
|
|
1330
|
-
].filter(Boolean).join(" "),
|
|
1331
|
-
id: l,
|
|
1332
|
-
lang: n,
|
|
1333
|
-
role: T ? "group" : void 0
|
|
1334
|
-
}, S);
|
|
1335
|
-
}
|
|
1336
|
-
//#endregion
|
|
1337
1746
|
//#region src/primitives/DatePicker/DatePicker.tsx
|
|
1338
|
-
var
|
|
1747
|
+
var kn = {
|
|
1339
1748
|
base: {
|
|
1340
1749
|
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",
|
|
1341
1750
|
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",
|
|
@@ -1346,11 +1755,11 @@ var ln = {
|
|
|
1346
1755
|
state: {},
|
|
1347
1756
|
variant: {}
|
|
1348
1757
|
};
|
|
1349
|
-
function
|
|
1758
|
+
function An({ placeholder: e, placeholderLocale: t, value: n, valueId: r }) {
|
|
1350
1759
|
return /* @__PURE__ */ m("span", {
|
|
1351
|
-
className:
|
|
1760
|
+
className: kn.base.value,
|
|
1352
1761
|
id: r,
|
|
1353
|
-
children: n ? /* @__PURE__ */ m(
|
|
1762
|
+
children: n ? /* @__PURE__ */ m(W, {
|
|
1354
1763
|
element: "span",
|
|
1355
1764
|
format: "date",
|
|
1356
1765
|
value: n
|
|
@@ -1360,7 +1769,7 @@ function un({ placeholder: e, placeholderLocale: t, value: n, valueId: r }) {
|
|
|
1360
1769
|
})
|
|
1361
1770
|
});
|
|
1362
1771
|
}
|
|
1363
|
-
function
|
|
1772
|
+
function jn(e, t, n, r) {
|
|
1364
1773
|
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);
|
|
1365
1774
|
if (c <= s) return;
|
|
1366
1775
|
let l = Math.max(s + 8, c - n), u = 0;
|
|
@@ -1368,18 +1777,18 @@ function dn(e, t, n, r) {
|
|
|
1368
1777
|
let d = t.scrollHeight - t.clientHeight, f = Math.round(Math.max(0, Math.min(d, t.scrollTop + u)));
|
|
1369
1778
|
return f === t.scrollTop ? void 0 : f;
|
|
1370
1779
|
}
|
|
1371
|
-
function
|
|
1780
|
+
function Mn(e) {
|
|
1372
1781
|
let t = e.ownerDocument.documentElement.clientHeight, n = !1;
|
|
1373
1782
|
for (let r = e.parentElement; r !== null; r = r.parentElement) {
|
|
1374
1783
|
let { overflowY: i } = getComputedStyle(r);
|
|
1375
1784
|
if (["auto", "scroll"].includes(i) && r.scrollHeight > r.clientHeight) {
|
|
1376
|
-
let i =
|
|
1785
|
+
let i = jn(e, r, 400, t);
|
|
1377
1786
|
i !== void 0 && (r.scrollTop = i, n = !0);
|
|
1378
1787
|
}
|
|
1379
1788
|
}
|
|
1380
1789
|
return n;
|
|
1381
1790
|
}
|
|
1382
|
-
function
|
|
1791
|
+
function Nn({ calendarKey: e, dialogId: t, disabled: n, isOpen: r, label: a, onChange: o, onOpenChange: s, triggerRef: l, value: u }) {
|
|
1383
1792
|
let d = c(null);
|
|
1384
1793
|
return i(() => {
|
|
1385
1794
|
if (!r) return;
|
|
@@ -1396,37 +1805,37 @@ function pn({ calendarKey: e, dialogId: t, disabled: n, isOpen: r, label: a, onC
|
|
|
1396
1805
|
attributeFilter: ["data-breeze-interactive", "inert"],
|
|
1397
1806
|
attributes: !0
|
|
1398
1807
|
}), n() && i.disconnect(), () => i.disconnect();
|
|
1399
|
-
}, [r, l]), /* @__PURE__ */ m(
|
|
1400
|
-
className:
|
|
1808
|
+
}, [r, l]), /* @__PURE__ */ m(hn, {
|
|
1809
|
+
className: kn.base.popover,
|
|
1401
1810
|
containerPadding: 4,
|
|
1402
1811
|
isOpen: r,
|
|
1403
1812
|
onOpenChange: s,
|
|
1404
1813
|
triggerRef: l,
|
|
1405
|
-
children: /* @__PURE__ */ m(
|
|
1814
|
+
children: /* @__PURE__ */ m(ke, {
|
|
1406
1815
|
"aria-label": a,
|
|
1407
1816
|
id: t,
|
|
1408
1817
|
ref: d,
|
|
1409
|
-
children: /* @__PURE__ */ m(
|
|
1818
|
+
children: /* @__PURE__ */ m(Xt, {
|
|
1410
1819
|
autoFocus: r,
|
|
1411
1820
|
disabled: n,
|
|
1412
1821
|
label: a,
|
|
1413
1822
|
onChange: o,
|
|
1414
|
-
value: u == null ? null :
|
|
1823
|
+
value: u == null ? null : Jt(u)
|
|
1415
1824
|
}, e)
|
|
1416
1825
|
})
|
|
1417
1826
|
});
|
|
1418
1827
|
}
|
|
1419
|
-
function
|
|
1420
|
-
let { getMessageLocale:
|
|
1828
|
+
function Pn({ autoFocus: e = !1, defaultValue: n, description: r, disabled: s = !1, error: u, form: d, id: f, label: p, loading: g = !1, name: _, onChange: v, placeholder: y, required: b = !0, value: x }) {
|
|
1829
|
+
let { getMessageLocale: S, messages: C } = B(), w = y ?? C.selectDate, T = y === void 0 ? S("selectDate") : void 0, E = r?.trim() || void 0, D = u?.trim() || void 0, O = s || g, k = !g && D !== void 0, A = a(), j = `${A}-label`, ee = `${A}-value`, M = `${A}-dialog`, te = E ? `${A}-description` : void 0, ne = D ? `${A}-error` : void 0, N = b ? `${A}-required` : void 0, re = f ?? `${A}-trigger`, P = c(null), F = c(!1), [I, ie] = l(n), [L, R] = l(!1), [oe, se] = l(0), [ce, le] = l(!1), ue = x === void 0 ? I : x, z = O || ce, de = [
|
|
1421
1830
|
te,
|
|
1422
|
-
|
|
1423
|
-
|
|
1831
|
+
g ? void 0 : ne,
|
|
1832
|
+
N
|
|
1424
1833
|
].filter(Boolean).join(" ") || void 0;
|
|
1425
1834
|
o(() => {
|
|
1426
|
-
let e =
|
|
1835
|
+
let e = P.current;
|
|
1427
1836
|
if (!e) return;
|
|
1428
1837
|
let t = () => {
|
|
1429
|
-
|
|
1838
|
+
le(!O && e.matches(":disabled"));
|
|
1430
1839
|
};
|
|
1431
1840
|
t();
|
|
1432
1841
|
let n = new MutationObserver(t);
|
|
@@ -1435,140 +1844,140 @@ function mn({ autoFocus: e = !1, defaultValue: n, description: r, disabled: s =
|
|
|
1435
1844
|
attributes: !0
|
|
1436
1845
|
});
|
|
1437
1846
|
return () => n.disconnect();
|
|
1438
|
-
}, [
|
|
1439
|
-
if (
|
|
1847
|
+
}, [O]), i(() => {
|
|
1848
|
+
if (x !== void 0) return;
|
|
1440
1849
|
let e = (e) => {
|
|
1441
|
-
let t =
|
|
1850
|
+
let t = P.current?.form;
|
|
1442
1851
|
!t || e.target !== t || queueMicrotask(() => {
|
|
1443
|
-
e.defaultPrevented ||
|
|
1852
|
+
e.defaultPrevented || ie(n);
|
|
1444
1853
|
});
|
|
1445
1854
|
};
|
|
1446
1855
|
return document.addEventListener("reset", e, !0), () => document.removeEventListener("reset", e, !0);
|
|
1447
|
-
}, [n,
|
|
1448
|
-
|
|
1449
|
-
}, [
|
|
1450
|
-
if (!e ||
|
|
1451
|
-
let t =
|
|
1452
|
-
!t || t.matches(":disabled") || (t.focus(),
|
|
1453
|
-
}, [e,
|
|
1454
|
-
let
|
|
1455
|
-
e && (
|
|
1856
|
+
}, [n, x]), i(() => {
|
|
1857
|
+
z && L && R(!1);
|
|
1858
|
+
}, [z, L]), i(() => {
|
|
1859
|
+
if (!e || z || F.current) return;
|
|
1860
|
+
let t = P.current;
|
|
1861
|
+
!t || t.matches(":disabled") || (t.focus(), F.current = t.ownerDocument.activeElement === t);
|
|
1862
|
+
}, [e, z]);
|
|
1863
|
+
let fe = L && !z, pe = (e) => {
|
|
1864
|
+
e && (z || P.current?.matches(":disabled")) || (e && !L && se((e) => e + 1), R(e));
|
|
1456
1865
|
};
|
|
1457
1866
|
return /* @__PURE__ */ h("div", {
|
|
1458
1867
|
className: K.base.root,
|
|
1459
|
-
"data-required":
|
|
1868
|
+
"data-required": b || void 0,
|
|
1460
1869
|
children: [
|
|
1461
|
-
/* @__PURE__ */ m(
|
|
1462
|
-
htmlFor:
|
|
1463
|
-
id:
|
|
1870
|
+
/* @__PURE__ */ m(en, {
|
|
1871
|
+
htmlFor: re,
|
|
1872
|
+
id: j,
|
|
1464
1873
|
label: p,
|
|
1465
|
-
loading:
|
|
1466
|
-
onClick: () =>
|
|
1874
|
+
loading: g,
|
|
1875
|
+
onClick: () => P.current?.focus()
|
|
1467
1876
|
}),
|
|
1468
1877
|
/* @__PURE__ */ h("span", {
|
|
1469
1878
|
className: K.base.control,
|
|
1470
|
-
children: [/* @__PURE__ */ h(
|
|
1471
|
-
className: q(
|
|
1472
|
-
isDisabled:
|
|
1879
|
+
children: [/* @__PURE__ */ h(ae, {
|
|
1880
|
+
className: q(kn.base.trigger, k && "breeze:border-breeze-danger", g && "breeze:!opacity-0"),
|
|
1881
|
+
isDisabled: O,
|
|
1473
1882
|
onPress: () => {
|
|
1474
|
-
if (
|
|
1475
|
-
|
|
1883
|
+
if (fe) {
|
|
1884
|
+
pe(!1);
|
|
1476
1885
|
return;
|
|
1477
1886
|
}
|
|
1478
|
-
let e =
|
|
1479
|
-
if (!(!e ||
|
|
1480
|
-
if (
|
|
1481
|
-
typeof requestAnimationFrame > "u" ? setTimeout(() =>
|
|
1887
|
+
let e = P.current;
|
|
1888
|
+
if (!(!e || z || e.matches(":disabled"))) {
|
|
1889
|
+
if (Mn(e)) {
|
|
1890
|
+
typeof requestAnimationFrame > "u" ? setTimeout(() => pe(!0), 0) : requestAnimationFrame(() => pe(!0));
|
|
1482
1891
|
return;
|
|
1483
1892
|
}
|
|
1484
|
-
|
|
1893
|
+
pe(!0);
|
|
1485
1894
|
}
|
|
1486
1895
|
},
|
|
1487
|
-
ref:
|
|
1896
|
+
ref: P,
|
|
1488
1897
|
render: (e) => t("button", {
|
|
1489
1898
|
...e,
|
|
1490
|
-
"aria-busy":
|
|
1491
|
-
"aria-controls":
|
|
1492
|
-
"aria-describedby":
|
|
1493
|
-
"aria-errormessage":
|
|
1494
|
-
"aria-expanded":
|
|
1899
|
+
"aria-busy": g || void 0,
|
|
1900
|
+
"aria-controls": fe ? M : void 0,
|
|
1901
|
+
"aria-describedby": de,
|
|
1902
|
+
"aria-errormessage": g ? void 0 : ne,
|
|
1903
|
+
"aria-expanded": fe,
|
|
1495
1904
|
"aria-haspopup": "dialog",
|
|
1496
|
-
"aria-invalid":
|
|
1497
|
-
"aria-label":
|
|
1498
|
-
"aria-labelledby":
|
|
1499
|
-
"data-invalid":
|
|
1905
|
+
"aria-invalid": k || void 0,
|
|
1906
|
+
"aria-label": g ? p : void 0,
|
|
1907
|
+
"aria-labelledby": g ? void 0 : `${j} ${ee}`,
|
|
1908
|
+
"data-invalid": k || void 0,
|
|
1500
1909
|
form: d,
|
|
1501
|
-
id:
|
|
1910
|
+
id: re,
|
|
1502
1911
|
type: "button"
|
|
1503
1912
|
}),
|
|
1504
|
-
children: [/* @__PURE__ */ m(
|
|
1505
|
-
placeholder:
|
|
1506
|
-
placeholderLocale:
|
|
1507
|
-
value:
|
|
1508
|
-
valueId:
|
|
1509
|
-
}), /* @__PURE__ */ m(
|
|
1913
|
+
children: [/* @__PURE__ */ m(An, {
|
|
1914
|
+
placeholder: w,
|
|
1915
|
+
placeholderLocale: T,
|
|
1916
|
+
value: ue,
|
|
1917
|
+
valueId: ee
|
|
1918
|
+
}), /* @__PURE__ */ m(V, {
|
|
1510
1919
|
name: "calendar",
|
|
1511
1920
|
size: "sm"
|
|
1512
1921
|
})]
|
|
1513
|
-
}),
|
|
1922
|
+
}), g && /* @__PURE__ */ m("span", {
|
|
1514
1923
|
className: K.base.skeleton,
|
|
1515
|
-
children: /* @__PURE__ */ m(
|
|
1924
|
+
children: /* @__PURE__ */ m(U, {
|
|
1516
1925
|
blockSize: "100%",
|
|
1517
1926
|
inlineSize: "100%",
|
|
1518
|
-
label:
|
|
1927
|
+
label: C.loading,
|
|
1519
1928
|
shape: "rectangle"
|
|
1520
1929
|
})
|
|
1521
1930
|
})]
|
|
1522
1931
|
}),
|
|
1523
|
-
|
|
1524
|
-
disabled:
|
|
1932
|
+
_ && /* @__PURE__ */ m("input", {
|
|
1933
|
+
disabled: O,
|
|
1525
1934
|
form: d,
|
|
1526
|
-
name:
|
|
1935
|
+
name: _,
|
|
1527
1936
|
type: "hidden",
|
|
1528
|
-
value:
|
|
1937
|
+
value: ue ?? ""
|
|
1529
1938
|
}),
|
|
1530
|
-
|
|
1939
|
+
b && /* @__PURE__ */ m("span", {
|
|
1531
1940
|
className: "breeze:sr-only",
|
|
1532
|
-
id:
|
|
1533
|
-
lang:
|
|
1534
|
-
children:
|
|
1941
|
+
id: N,
|
|
1942
|
+
lang: S("required"),
|
|
1943
|
+
children: C.required
|
|
1535
1944
|
}),
|
|
1536
|
-
/* @__PURE__ */ m(
|
|
1537
|
-
calendarKey:
|
|
1538
|
-
dialogId:
|
|
1539
|
-
disabled:
|
|
1540
|
-
isOpen:
|
|
1945
|
+
/* @__PURE__ */ m(Nn, {
|
|
1946
|
+
calendarKey: oe,
|
|
1947
|
+
dialogId: M,
|
|
1948
|
+
disabled: z,
|
|
1949
|
+
isOpen: fe,
|
|
1541
1950
|
label: p,
|
|
1542
1951
|
onChange: (e) => {
|
|
1543
|
-
if (!e ||
|
|
1952
|
+
if (!e || z || P.current?.matches(":disabled")) return;
|
|
1544
1953
|
let t = e.toString();
|
|
1545
|
-
|
|
1954
|
+
x === void 0 && ie(t), v?.(t), pe(!1);
|
|
1546
1955
|
},
|
|
1547
|
-
onOpenChange:
|
|
1548
|
-
triggerRef:
|
|
1549
|
-
value:
|
|
1956
|
+
onOpenChange: pe,
|
|
1957
|
+
triggerRef: P,
|
|
1958
|
+
value: ue
|
|
1550
1959
|
}),
|
|
1551
|
-
/* @__PURE__ */ m(
|
|
1552
|
-
description:
|
|
1960
|
+
/* @__PURE__ */ m(tn, {
|
|
1961
|
+
description: E,
|
|
1553
1962
|
descriptionId: te,
|
|
1554
|
-
loading:
|
|
1963
|
+
loading: g
|
|
1555
1964
|
}),
|
|
1556
|
-
|
|
1557
|
-
"aria-hidden":
|
|
1965
|
+
D && /* @__PURE__ */ m("p", {
|
|
1966
|
+
"aria-hidden": g || void 0,
|
|
1558
1967
|
className: K.base.error,
|
|
1559
|
-
id:
|
|
1560
|
-
children:
|
|
1968
|
+
id: ne,
|
|
1969
|
+
children: g ? /* @__PURE__ */ m(U, {
|
|
1561
1970
|
blockSize: "1lh",
|
|
1562
1971
|
inlineSize: "12em",
|
|
1563
1972
|
shape: "rectangle"
|
|
1564
|
-
}) :
|
|
1973
|
+
}) : D
|
|
1565
1974
|
})
|
|
1566
1975
|
]
|
|
1567
1976
|
});
|
|
1568
1977
|
}
|
|
1569
1978
|
//#endregion
|
|
1570
1979
|
//#region src/overlays/OverlaySurface.tsx
|
|
1571
|
-
var
|
|
1980
|
+
var Fn = {
|
|
1572
1981
|
base: {
|
|
1573
1982
|
content: "breeze-overlay-content",
|
|
1574
1983
|
header: "breeze-overlay-header",
|
|
@@ -1583,24 +1992,24 @@ var hn = {
|
|
|
1583
1992
|
fullscreen: "breeze-fullscreen",
|
|
1584
1993
|
popover: "breeze-popover"
|
|
1585
1994
|
}
|
|
1586
|
-
},
|
|
1587
|
-
function
|
|
1995
|
+
}, In = "Breeze overlay triggers and portal containers must belong to the current document and light DOM.";
|
|
1996
|
+
function Ln(e) {
|
|
1588
1997
|
return typeof e == "object" && !!e && "nodeType" in e && typeof e.contains == "function";
|
|
1589
1998
|
}
|
|
1590
|
-
function
|
|
1999
|
+
function Rn(e) {
|
|
1591
2000
|
return e.dataset?.breezeOverlay !== void 0;
|
|
1592
2001
|
}
|
|
1593
|
-
function
|
|
1594
|
-
let { getMessageLocale: y, messages: b } =
|
|
2002
|
+
function zn({ children: e, defaultOpen: t = !1, dismissible: a = !0, kind: u, onOpenChange: d, open: f, placement: g = "bottom", title: _, trigger: v }) {
|
|
2003
|
+
let { getMessageLocale: y, messages: b } = B(), x = u === "popover" || u === "fullscreen", S = fn(), C = r(Je), [w, T] = l(C === null);
|
|
1595
2004
|
i(() => T(!0), []);
|
|
1596
|
-
let [E, D] = l(t), O = f ?? E, k = C?.open ?? !0, A = O && k, j = c(null),
|
|
2005
|
+
let [E, D] = l(t), O = f ?? E, k = C?.open ?? !0, A = O && k, j = c(null), ee = c(null), M = c(null), [te, ne] = l(!1), N = c(!1), re = c(null), P = c(null), F = c(null), I = c(null), ie = c(!1);
|
|
1597
2006
|
o(() => {
|
|
1598
|
-
if (S && j.current && (j.current.ownerDocument !== document || j.current.getRootNode() !== document || S.ownerDocument !== document || S.getRootNode() !== document)) throw Error(
|
|
2007
|
+
if (S && j.current && (j.current.ownerDocument !== document || j.current.getRootNode() !== document || S.ownerDocument !== document || S.getRootNode() !== document)) throw Error(In);
|
|
1599
2008
|
}, [S]);
|
|
1600
|
-
let
|
|
2009
|
+
let ae = s(() => u === "fullscreen" ? { current: S } : j, [S, u]), L = Ye(u, A && w && S !== null, A || te), R = n((e) => {
|
|
1601
2010
|
if (!e && !k) {
|
|
1602
|
-
if (
|
|
1603
|
-
O && (
|
|
2011
|
+
if (ie.current) return;
|
|
2012
|
+
O && (ie.current = !0);
|
|
1604
2013
|
}
|
|
1605
2014
|
f === void 0 && D(e), d?.(e);
|
|
1606
2015
|
}, [
|
|
@@ -1610,187 +2019,187 @@ function yn({ children: e, defaultOpen: t = !1, dismissible: a = !0, kind: u, on
|
|
|
1610
2019
|
O
|
|
1611
2020
|
]);
|
|
1612
2021
|
i(() => {
|
|
1613
|
-
k ?
|
|
2022
|
+
k ? ie.current = !1 : O && R(!1);
|
|
1614
2023
|
}, [
|
|
1615
|
-
|
|
2024
|
+
R,
|
|
1616
2025
|
k,
|
|
1617
2026
|
O
|
|
1618
2027
|
]), i(() => {
|
|
1619
|
-
if (u !== "popover" || !A || !a || !
|
|
2028
|
+
if (u !== "popover" || !A || !a || !L.topmost || !S) return;
|
|
1620
2029
|
let e = () => {
|
|
1621
|
-
|
|
1622
|
-
}, t = (e, t) => !!e && !!t && (e === t || e.contains(t) || t.contains(e)), n = (e) => e.button === 0, r = (e) =>
|
|
1623
|
-
n(t) && (e(),
|
|
2030
|
+
P.current !== null && (clearTimeout(P.current), P.current = null);
|
|
2031
|
+
}, t = (e, t) => !!e && !!t && (e === t || e.contains(t) || t.contains(e)), n = (e) => e.button === 0, r = (e) => Ln(e) && !ee.current?.contains(e) && !j.current?.contains(e), i = (t) => {
|
|
2032
|
+
n(t) && (e(), I.current = null, F.current = Ln(t.target) ? t.target : null);
|
|
1624
2033
|
}, o = (i) => {
|
|
1625
2034
|
if (!n(i)) return;
|
|
1626
|
-
let a =
|
|
1627
|
-
!r(a) || !r(o) || (e(),
|
|
1628
|
-
|
|
1629
|
-
let e =
|
|
1630
|
-
|
|
2035
|
+
let a = F.current, o = Ln(i.target) ? i.target : null;
|
|
2036
|
+
!r(a) || !r(o) || (e(), P.current = setTimeout(() => {
|
|
2037
|
+
P.current = null;
|
|
2038
|
+
let e = I.current, n = F.current;
|
|
2039
|
+
I.current = null, F.current = null, !(t(e, o) && t(e, n)) && R(!1);
|
|
1631
2040
|
}, 0));
|
|
1632
2041
|
}, s = () => {
|
|
1633
|
-
e(),
|
|
2042
|
+
e(), I.current = null, F.current = null;
|
|
1634
2043
|
}, c = (n) => {
|
|
1635
|
-
let i =
|
|
2044
|
+
let i = Ln(n.target) ? n.target : null;
|
|
1636
2045
|
if (e(), r(i)) {
|
|
1637
|
-
let e =
|
|
1638
|
-
if (
|
|
1639
|
-
|
|
2046
|
+
let e = I.current, n = F.current;
|
|
2047
|
+
if (I.current = null, F.current = null, t(e, i) && t(e, n)) return;
|
|
2048
|
+
R(!1);
|
|
1640
2049
|
}
|
|
1641
2050
|
};
|
|
1642
2051
|
return S.ownerDocument.addEventListener("pointerdown", i, !0), S.ownerDocument.addEventListener("pointerup", o, !0), S.ownerDocument.addEventListener("pointercancel", s, !0), S.ownerDocument.addEventListener("click", c, !0), () => {
|
|
1643
|
-
e(), S.ownerDocument.removeEventListener("pointerdown", i, !0), S.ownerDocument.removeEventListener("pointerup", o, !0), S.ownerDocument.removeEventListener("pointercancel", s, !0), S.ownerDocument.removeEventListener("click", c, !0),
|
|
2052
|
+
e(), S.ownerDocument.removeEventListener("pointerdown", i, !0), S.ownerDocument.removeEventListener("pointerup", o, !0), S.ownerDocument.removeEventListener("pointercancel", s, !0), S.ownerDocument.removeEventListener("click", c, !0), I.current = null, F.current = null;
|
|
1644
2053
|
};
|
|
1645
2054
|
}, [
|
|
1646
|
-
|
|
2055
|
+
R,
|
|
1647
2056
|
a,
|
|
1648
2057
|
S,
|
|
1649
2058
|
u,
|
|
1650
|
-
|
|
2059
|
+
L.topmost,
|
|
1651
2060
|
A
|
|
1652
2061
|
]);
|
|
1653
|
-
let
|
|
2062
|
+
let oe = C?.restoreFocus, se = C?.id, ce = n(() => {
|
|
1654
2063
|
let e = j.current, t = S?.ownerDocument, n = t?.activeElement;
|
|
1655
2064
|
if (!t || !S) return;
|
|
1656
|
-
let r =
|
|
2065
|
+
let r = se ? t.getElementById(se) : null;
|
|
1657
2066
|
if (!(n === t.body || n === r || n?.closest("[data-exiting]"))) return;
|
|
1658
2067
|
if (!e?.isConnected) {
|
|
1659
|
-
|
|
2068
|
+
oe?.();
|
|
1660
2069
|
return;
|
|
1661
2070
|
}
|
|
1662
2071
|
let i = S.querySelector("[data-breeze-topmost=\"true\"]");
|
|
1663
2072
|
(!i || i.contains(e)) && !e.closest("[inert], [aria-hidden=\"true\"]") && e.focus({ preventScroll: !0 });
|
|
1664
2073
|
}, [
|
|
1665
2074
|
S,
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
]),
|
|
1669
|
-
|
|
1670
|
-
}, []),
|
|
2075
|
+
se,
|
|
2076
|
+
oe
|
|
2077
|
+
]), le = n(() => {
|
|
2078
|
+
re.current !== null && (clearTimeout(re.current), re.current = null);
|
|
2079
|
+
}, []), ue = n((e) => {
|
|
1671
2080
|
queueMicrotask(() => {
|
|
1672
|
-
!e.isConnected || e.closest("[inert], [data-exiting]") || (
|
|
2081
|
+
!e.isConnected || e.closest("[inert], [data-exiting]") || (le(), e.focus({ preventScroll: !0 }), re.current = setTimeout(() => {
|
|
1673
2082
|
let { ownerDocument: t } = e, { activeElement: n } = t;
|
|
1674
|
-
e.isConnected && !e.closest("[inert], [data-exiting]") && (n === e || n === t.body) && (
|
|
2083
|
+
e.isConnected && !e.closest("[inert], [data-exiting]") && (n === e || n === t.body) && (N.current = !0, e.blur(), e.focus({ preventScroll: !0 }), N.current = !1), re.current = null;
|
|
1675
2084
|
}, 500));
|
|
1676
2085
|
});
|
|
1677
|
-
}, [
|
|
2086
|
+
}, [le]), z = c(A);
|
|
1678
2087
|
i(() => {
|
|
1679
|
-
let e =
|
|
1680
|
-
|
|
2088
|
+
let e = z.current;
|
|
2089
|
+
z.current = A, !(!x || !A || e || !M.current) && ue(M.current);
|
|
1681
2090
|
}, [
|
|
1682
|
-
|
|
2091
|
+
ue,
|
|
1683
2092
|
x,
|
|
1684
2093
|
A
|
|
1685
2094
|
]);
|
|
1686
|
-
let
|
|
1687
|
-
|
|
2095
|
+
let de = n((e) => {
|
|
2096
|
+
M.current = e;
|
|
1688
2097
|
let t = () => {
|
|
1689
|
-
|
|
2098
|
+
le(), M.current = null, ne(!1), requestAnimationFrame(ce);
|
|
1690
2099
|
};
|
|
1691
2100
|
if (!e) {
|
|
1692
2101
|
t();
|
|
1693
2102
|
return;
|
|
1694
2103
|
}
|
|
1695
|
-
return
|
|
2104
|
+
return ne(!0), x && ue(e), t;
|
|
1696
2105
|
}, [
|
|
1697
|
-
|
|
1698
|
-
|
|
2106
|
+
le,
|
|
2107
|
+
ue,
|
|
1699
2108
|
x,
|
|
1700
|
-
|
|
1701
|
-
]),
|
|
1702
|
-
id:
|
|
2109
|
+
ce
|
|
2110
|
+
]), fe = s(() => ({
|
|
2111
|
+
id: L.id,
|
|
1703
2112
|
open: A,
|
|
1704
|
-
restoreFocus:
|
|
2113
|
+
restoreFocus: ce
|
|
1705
2114
|
}), [
|
|
1706
|
-
|
|
2115
|
+
L.id,
|
|
1707
2116
|
A,
|
|
1708
|
-
|
|
1709
|
-
]),
|
|
1710
|
-
className:
|
|
2117
|
+
ce
|
|
2118
|
+
]), pe = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
|
|
2119
|
+
className: Fn.base.header,
|
|
1711
2120
|
children: [/* @__PURE__ */ m("h2", {
|
|
1712
|
-
className:
|
|
2121
|
+
className: Fn.base.title,
|
|
1713
2122
|
children: _
|
|
1714
2123
|
}), /* @__PURE__ */ m("span", {
|
|
1715
2124
|
lang: y("close"),
|
|
1716
|
-
children: /* @__PURE__ */ m(
|
|
1717
|
-
onAction: () =>
|
|
2125
|
+
children: /* @__PURE__ */ m(Vt, {
|
|
2126
|
+
onAction: () => R(!1),
|
|
1718
2127
|
variant: "quiet",
|
|
1719
2128
|
children: b.close
|
|
1720
2129
|
})
|
|
1721
2130
|
})]
|
|
1722
|
-
}), e] }),
|
|
1723
|
-
value:
|
|
2131
|
+
}), e] }), me = /* @__PURE__ */ m(Je, {
|
|
2132
|
+
value: fe,
|
|
1724
2133
|
children: x ? /* @__PURE__ */ m("section", {
|
|
1725
2134
|
"aria-label": _,
|
|
1726
|
-
className:
|
|
1727
|
-
id:
|
|
2135
|
+
className: Fn.base.content,
|
|
2136
|
+
id: L.id,
|
|
1728
2137
|
onBlur: (e) => {
|
|
1729
|
-
if (
|
|
2138
|
+
if (N.current) {
|
|
1730
2139
|
e.stopPropagation();
|
|
1731
2140
|
return;
|
|
1732
2141
|
}
|
|
1733
2142
|
let { relatedTarget: t } = e;
|
|
1734
|
-
u === "popover" && a &&
|
|
2143
|
+
u === "popover" && a && L.topmost && Ln(t) && !e.currentTarget.contains(t) && !j.current?.contains(t) && (I.current = t);
|
|
1735
2144
|
},
|
|
1736
|
-
ref:
|
|
2145
|
+
ref: de,
|
|
1737
2146
|
role: "dialog",
|
|
1738
2147
|
tabIndex: -1,
|
|
1739
|
-
children:
|
|
1740
|
-
}) : /* @__PURE__ */ m(
|
|
2148
|
+
children: pe
|
|
2149
|
+
}) : /* @__PURE__ */ m(ke, {
|
|
1741
2150
|
"aria-label": _,
|
|
1742
|
-
className:
|
|
1743
|
-
id:
|
|
1744
|
-
ref:
|
|
1745
|
-
children:
|
|
2151
|
+
className: Fn.base.content,
|
|
2152
|
+
id: L.id,
|
|
2153
|
+
ref: de,
|
|
2154
|
+
children: pe
|
|
1746
2155
|
})
|
|
1747
2156
|
});
|
|
1748
|
-
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(
|
|
1749
|
-
"aria-controls": A ?
|
|
2157
|
+
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(Vt, {
|
|
2158
|
+
"aria-controls": A ? L.id : void 0,
|
|
1750
2159
|
"aria-expanded": A,
|
|
1751
2160
|
"aria-haspopup": "dialog",
|
|
1752
|
-
onAction: () =>
|
|
2161
|
+
onAction: () => R(!x || !A),
|
|
1753
2162
|
ref: j,
|
|
1754
2163
|
children: v
|
|
1755
|
-
}), S && w && (x ? /* @__PURE__ */ m(
|
|
1756
|
-
className:
|
|
2164
|
+
}), S && w && (x ? /* @__PURE__ */ m(Te, {
|
|
2165
|
+
className: Fn.variant[u],
|
|
1757
2166
|
"data-breeze-overlay": u,
|
|
1758
|
-
"data-breeze-topmost":
|
|
1759
|
-
"data-breeze-interactive":
|
|
1760
|
-
inert: !
|
|
2167
|
+
"data-breeze-topmost": L.topmost,
|
|
2168
|
+
"data-breeze-interactive": L.interactive,
|
|
2169
|
+
inert: !L.interactive,
|
|
1761
2170
|
isNonModal: !0,
|
|
1762
2171
|
isOpen: A,
|
|
1763
|
-
isKeyboardDismissDisabled: !a || !
|
|
1764
|
-
onOpenChange:
|
|
2172
|
+
isKeyboardDismissDisabled: !a || !L.topmost,
|
|
2173
|
+
onOpenChange: R,
|
|
1765
2174
|
placement: g,
|
|
1766
|
-
ref:
|
|
1767
|
-
shouldCloseOnInteractOutside: (e) => u === "popover" && a &&
|
|
1768
|
-
style: { zIndex:
|
|
1769
|
-
triggerRef:
|
|
1770
|
-
children:
|
|
1771
|
-
}) : /* @__PURE__ */ m(
|
|
2175
|
+
ref: ee,
|
|
2176
|
+
shouldCloseOnInteractOutside: (e) => u === "popover" && a && L.topmost && !j.current?.contains(e),
|
|
2177
|
+
style: { zIndex: L.zIndex },
|
|
2178
|
+
triggerRef: ae,
|
|
2179
|
+
children: me
|
|
2180
|
+
}) : /* @__PURE__ */ m(je, {
|
|
1772
2181
|
className: "breeze-overlay-backdrop",
|
|
1773
2182
|
"data-breeze-overlay": u,
|
|
1774
|
-
"data-breeze-scrim":
|
|
1775
|
-
"data-breeze-topmost":
|
|
1776
|
-
"data-breeze-interactive":
|
|
1777
|
-
inert: !
|
|
1778
|
-
isDismissable: a &&
|
|
1779
|
-
isKeyboardDismissDisabled: !a || !
|
|
2183
|
+
"data-breeze-scrim": L.scrim,
|
|
2184
|
+
"data-breeze-topmost": L.topmost,
|
|
2185
|
+
"data-breeze-interactive": L.interactive,
|
|
2186
|
+
inert: !L.interactive,
|
|
2187
|
+
isDismissable: a && L.topmost,
|
|
2188
|
+
isKeyboardDismissDisabled: !a || !L.topmost,
|
|
1780
2189
|
isOpen: A,
|
|
1781
|
-
onOpenChange:
|
|
1782
|
-
shouldCloseOnInteractOutside: (e) =>
|
|
1783
|
-
style: { zIndex:
|
|
1784
|
-
children: /* @__PURE__ */ m(
|
|
1785
|
-
className:
|
|
1786
|
-
children:
|
|
2190
|
+
onOpenChange: R,
|
|
2191
|
+
shouldCloseOnInteractOutside: (e) => L.topmost && Rn(e),
|
|
2192
|
+
style: { zIndex: L.zIndex },
|
|
2193
|
+
children: /* @__PURE__ */ m(Ae, {
|
|
2194
|
+
className: Fn.variant[u],
|
|
2195
|
+
children: me
|
|
1787
2196
|
})
|
|
1788
2197
|
}))] });
|
|
1789
2198
|
}
|
|
1790
2199
|
//#endregion
|
|
1791
2200
|
//#region src/primitives/Dialog/Dialog.tsx
|
|
1792
|
-
function
|
|
1793
|
-
return /* @__PURE__ */ m(
|
|
2201
|
+
function Bn({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o }) {
|
|
2202
|
+
return /* @__PURE__ */ m(zn, {
|
|
1794
2203
|
defaultOpen: t,
|
|
1795
2204
|
dismissible: n,
|
|
1796
2205
|
onOpenChange: r,
|
|
@@ -1803,8 +2212,8 @@ function bn({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
|
|
|
1803
2212
|
}
|
|
1804
2213
|
//#endregion
|
|
1805
2214
|
//#region src/primitives/Drawer/Drawer.tsx
|
|
1806
|
-
function
|
|
1807
|
-
return /* @__PURE__ */ m(
|
|
2215
|
+
function Vn({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o }) {
|
|
2216
|
+
return /* @__PURE__ */ m(zn, {
|
|
1808
2217
|
defaultOpen: t,
|
|
1809
2218
|
dismissible: n,
|
|
1810
2219
|
onOpenChange: r,
|
|
@@ -1817,7 +2226,7 @@ function xn({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
|
|
|
1817
2226
|
}
|
|
1818
2227
|
//#endregion
|
|
1819
2228
|
//#region src/primitives/Grid/Grid.tsx
|
|
1820
|
-
var
|
|
2229
|
+
var Hn = {
|
|
1821
2230
|
base: { grid: "breeze:grid breeze:min-inline-size-0" },
|
|
1822
2231
|
compound: { columns: {
|
|
1823
2232
|
1: {
|
|
@@ -1853,60 +2262,21 @@ var Sn = {
|
|
|
1853
2262
|
state: {},
|
|
1854
2263
|
variant: {}
|
|
1855
2264
|
};
|
|
1856
|
-
function
|
|
1857
|
-
let { accessibleLabel: s, role: c } =
|
|
2265
|
+
function Un({ "aria-label": e, children: n, collapseBelow: r = "md", columns: i = 2, element: a = "div", gap: o = 4 }) {
|
|
2266
|
+
let { accessibleLabel: s, role: c } = Ft(e, a);
|
|
1858
2267
|
return t(a, {
|
|
1859
2268
|
"aria-label": s,
|
|
1860
2269
|
className: [
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
2270
|
+
Hn.base.grid,
|
|
2271
|
+
Hn.compound.columns[i][r],
|
|
2272
|
+
Hn.size[o]
|
|
1864
2273
|
].join(" "),
|
|
1865
2274
|
role: c
|
|
1866
2275
|
}, n);
|
|
1867
2276
|
}
|
|
1868
2277
|
//#endregion
|
|
1869
|
-
//#region src/primitives/IconTile/IconTile.tsx
|
|
1870
|
-
var wn = {
|
|
1871
|
-
base: { tile: "breeze:inline-flex breeze:shrink-0 breeze:items-center breeze:justify-center" },
|
|
1872
|
-
compound: {},
|
|
1873
|
-
size: {
|
|
1874
|
-
lg: "breeze:block-size-breeze-tap breeze:inline-size-breeze-tap",
|
|
1875
|
-
sm: "breeze:block-size-breeze-7 breeze:inline-size-breeze-7"
|
|
1876
|
-
},
|
|
1877
|
-
state: {},
|
|
1878
|
-
variant: {
|
|
1879
|
-
shape: {
|
|
1880
|
-
circle: "breeze:rounded-breeze-full",
|
|
1881
|
-
square: "breeze:rounded-breeze-sm"
|
|
1882
|
-
},
|
|
1883
|
-
tone: {
|
|
1884
|
-
brand: "breeze:bg-breeze-brand-soft breeze:text-breeze-brand-text",
|
|
1885
|
-
danger: "breeze:bg-breeze-danger/10 breeze:text-breeze-danger",
|
|
1886
|
-
neutral: "breeze:bg-breeze-sunken breeze:text-breeze-ink-2",
|
|
1887
|
-
positive: "breeze:bg-breeze-pos-soft breeze:text-breeze-pos",
|
|
1888
|
-
warning: "breeze:bg-breeze-warn-soft breeze:text-breeze-warn"
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
};
|
|
1892
|
-
function Tn({ label: e, name: t, shape: n = "square", size: r = "lg", tone: i = "brand" }) {
|
|
1893
|
-
return /* @__PURE__ */ m("span", {
|
|
1894
|
-
className: [
|
|
1895
|
-
wn.base.tile,
|
|
1896
|
-
wn.variant.tone[i],
|
|
1897
|
-
wn.variant.shape[n],
|
|
1898
|
-
wn.size[r]
|
|
1899
|
-
].join(" "),
|
|
1900
|
-
children: /* @__PURE__ */ m(J, {
|
|
1901
|
-
label: e,
|
|
1902
|
-
name: t,
|
|
1903
|
-
size: r === "lg" ? "md" : "sm"
|
|
1904
|
-
})
|
|
1905
|
-
});
|
|
1906
|
-
}
|
|
1907
|
-
//#endregion
|
|
1908
2278
|
//#region src/primitives/Inline/Inline.tsx
|
|
1909
|
-
var
|
|
2279
|
+
var Wn = {
|
|
1910
2280
|
base: { inline: "breeze:flex breeze:min-inline-size-0" },
|
|
1911
2281
|
compound: {},
|
|
1912
2282
|
size: {
|
|
@@ -1936,23 +2306,23 @@ var En = {
|
|
|
1936
2306
|
}
|
|
1937
2307
|
}
|
|
1938
2308
|
};
|
|
1939
|
-
function
|
|
1940
|
-
let { accessibleLabel: c, role: l } =
|
|
2309
|
+
function Gn({ "aria-label": e, children: n, element: r = "div", gap: i = 3, justify: a = "start", verticalAlign: o = "center", wrap: s = !1 }) {
|
|
2310
|
+
let { accessibleLabel: c, role: l } = Ft(e, r);
|
|
1941
2311
|
return t(r, {
|
|
1942
2312
|
"aria-label": c,
|
|
1943
2313
|
className: [
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
s &&
|
|
2314
|
+
Wn.base.inline,
|
|
2315
|
+
Wn.variant.align[o],
|
|
2316
|
+
Wn.variant.justify[a],
|
|
2317
|
+
Wn.size[i],
|
|
2318
|
+
s && Wn.state.wrap
|
|
1949
2319
|
].filter(Boolean).join(" "),
|
|
1950
2320
|
role: l
|
|
1951
2321
|
}, n);
|
|
1952
2322
|
}
|
|
1953
2323
|
//#endregion
|
|
1954
2324
|
//#region src/primitives/Link/Link.tsx
|
|
1955
|
-
var
|
|
2325
|
+
var Kn = {
|
|
1956
2326
|
base: { link: "breeze:font-medium breeze:underline breeze:underline-offset-2 breeze:outline-offset-2 breeze:focus-visible:outline-2 breeze:focus-visible:outline-solid breeze:focus-visible:outline-breeze-brand" },
|
|
1957
2327
|
compound: {},
|
|
1958
2328
|
size: {},
|
|
@@ -1962,29 +2332,20 @@ var On = {
|
|
|
1962
2332
|
subtle: "breeze:text-breeze-ink-2 breeze:decoration-breeze-line-strong breeze:hover:text-breeze-ink"
|
|
1963
2333
|
}
|
|
1964
2334
|
};
|
|
1965
|
-
function
|
|
1966
|
-
|
|
1967
|
-
let n = e.currentTarget, r = n.getAttribute("target"), i = document.querySelector("base[target]")?.getAttribute("target"), a = r || i || "";
|
|
1968
|
-
if (a.toLowerCase() !== "" && a.toLowerCase() !== "_self") return !1;
|
|
1969
|
-
let o = new URL(n.href, document.baseURI);
|
|
1970
|
-
return !(o.protocol !== "http:" && o.protocol !== "https:" || o.origin !== window.location.origin || o.hash !== "" || n.getAttribute("href")?.includes("#"));
|
|
1971
|
-
}
|
|
1972
|
-
function An({ "aria-current": e, "aria-describedby": t, "aria-label": n, "aria-labelledby": r, children: i, download: a, href: o, hrefLang: s, id: c, lang: l, ref: u, rel: d, target: f, title: p, type: h, transitionTypes: g = [], variant: _ = "default" }) {
|
|
1973
|
-
let { router: v } = U();
|
|
2335
|
+
function qn({ "aria-current": e, "aria-describedby": t, "aria-label": n, "aria-labelledby": r, children: i, download: a, href: o, hrefLang: s, id: c, lang: l, ref: u, rel: d, target: f, title: p, type: h, transitionTypes: g = [], variant: _ = "default" }) {
|
|
2336
|
+
let { router: v } = B();
|
|
1974
2337
|
return /* @__PURE__ */ m("a", {
|
|
1975
2338
|
"aria-current": e,
|
|
1976
2339
|
"aria-describedby": t,
|
|
1977
2340
|
"aria-label": n,
|
|
1978
2341
|
"aria-labelledby": r,
|
|
1979
|
-
className: [
|
|
2342
|
+
className: [Kn.base.link, Kn.variant[_]].join(" "),
|
|
1980
2343
|
download: a,
|
|
1981
2344
|
href: o,
|
|
1982
2345
|
hrefLang: s,
|
|
1983
2346
|
id: c,
|
|
1984
2347
|
lang: l,
|
|
1985
|
-
onClick: (e) =>
|
|
1986
|
-
v === void 0 || !kn(e, a) || (e.preventDefault(), v.navigate(o, { transitionTypes: g }));
|
|
1987
|
-
},
|
|
2348
|
+
onClick: (e) => vt(e, o, v, g, a),
|
|
1988
2349
|
ref: u,
|
|
1989
2350
|
rel: d,
|
|
1990
2351
|
target: f,
|
|
@@ -1995,7 +2356,7 @@ function An({ "aria-current": e, "aria-describedby": t, "aria-label": n, "aria-l
|
|
|
1995
2356
|
}
|
|
1996
2357
|
//#endregion
|
|
1997
2358
|
//#region src/primitives/Menu/Menu.tsx
|
|
1998
|
-
var
|
|
2359
|
+
var X = {
|
|
1999
2360
|
base: {
|
|
2000
2361
|
badge: "breeze:ms-auto",
|
|
2001
2362
|
content: "breeze:flex breeze:min-inline-size-0 breeze:flex-1 breeze:flex-col breeze:gap-breeze-1",
|
|
@@ -2016,30 +2377,30 @@ var Z = {
|
|
|
2016
2377
|
state: {},
|
|
2017
2378
|
variant: {}
|
|
2018
2379
|
};
|
|
2019
|
-
function
|
|
2380
|
+
function Jn({ descriptionId: e, descriptor: t }) {
|
|
2020
2381
|
return /* @__PURE__ */ h(p, { children: [
|
|
2021
2382
|
/* @__PURE__ */ m("span", {
|
|
2022
2383
|
"aria-hidden": "true",
|
|
2023
|
-
className:
|
|
2024
|
-
children: t.icon && /* @__PURE__ */ m(
|
|
2384
|
+
className: X.base.icon,
|
|
2385
|
+
children: t.icon && /* @__PURE__ */ m(V, {
|
|
2025
2386
|
name: t.icon,
|
|
2026
2387
|
size: "sm"
|
|
2027
2388
|
})
|
|
2028
2389
|
}),
|
|
2029
2390
|
/* @__PURE__ */ h("span", {
|
|
2030
|
-
className:
|
|
2391
|
+
className: X.base.content,
|
|
2031
2392
|
children: [/* @__PURE__ */ m("span", {
|
|
2032
|
-
className:
|
|
2393
|
+
className: X.base.label,
|
|
2033
2394
|
children: t.label
|
|
2034
2395
|
}), t.description && /* @__PURE__ */ m("span", {
|
|
2035
|
-
className:
|
|
2396
|
+
className: X.base.description,
|
|
2036
2397
|
id: e,
|
|
2037
2398
|
children: t.description
|
|
2038
2399
|
})]
|
|
2039
2400
|
}),
|
|
2040
2401
|
t.badge && /* @__PURE__ */ m("span", {
|
|
2041
|
-
className:
|
|
2042
|
-
children: /* @__PURE__ */ m(
|
|
2402
|
+
className: X.base.badge,
|
|
2403
|
+
children: /* @__PURE__ */ m(qt, {
|
|
2043
2404
|
"aria-label": t.badge["aria-label"],
|
|
2044
2405
|
variant: t.badge.variant,
|
|
2045
2406
|
children: t.badge.children
|
|
@@ -2047,98 +2408,98 @@ function jn({ descriptionId: e, descriptor: t }) {
|
|
|
2047
2408
|
})
|
|
2048
2409
|
] });
|
|
2049
2410
|
}
|
|
2050
|
-
function
|
|
2411
|
+
function Yn(e) {
|
|
2051
2412
|
if (!e.badge) return e.label;
|
|
2052
2413
|
let t = e.badge["aria-label"]?.trim() || e.badge.children;
|
|
2053
2414
|
return `${e.label}, ${t}`;
|
|
2054
2415
|
}
|
|
2055
|
-
function
|
|
2056
|
-
let { getMessageLocale: t, messages: n } =
|
|
2416
|
+
function Xn({ loading: e }) {
|
|
2417
|
+
let { getMessageLocale: t, messages: n } = B();
|
|
2057
2418
|
return /* @__PURE__ */ h(p, { children: [e && /* @__PURE__ */ m("span", {
|
|
2058
|
-
className:
|
|
2059
|
-
children: /* @__PURE__ */ m(
|
|
2419
|
+
className: X.base.triggerLoadingStatus,
|
|
2420
|
+
children: /* @__PURE__ */ m(U, { label: n.loading })
|
|
2060
2421
|
}), /* @__PURE__ */ m("output", {
|
|
2061
2422
|
"aria-live": "polite",
|
|
2062
|
-
className:
|
|
2423
|
+
className: X.base.triggerLoadingStatus,
|
|
2063
2424
|
lang: t("loading"),
|
|
2064
2425
|
children: e ? n.loading : ""
|
|
2065
2426
|
})] });
|
|
2066
2427
|
}
|
|
2067
|
-
function
|
|
2068
|
-
|
|
2069
|
-
let [
|
|
2070
|
-
u && e || (
|
|
2428
|
+
function Zn({ defaultOpen: e, getItem: r, items: i, loading: u = !1, onAction: d, onOpenChange: f, open: g, trigger: _, triggerIcon: v }) {
|
|
2429
|
+
B();
|
|
2430
|
+
let [y, b] = l(e ?? !1), x = g ?? y, S = c(null), C = c(!1), w = a(), T = s(() => i.map(r), [r, i]), E = n((e) => {
|
|
2431
|
+
u && e || (g === void 0 && b(e), f?.(e));
|
|
2071
2432
|
}, [
|
|
2072
|
-
|
|
2433
|
+
g,
|
|
2073
2434
|
u,
|
|
2074
2435
|
f
|
|
2075
2436
|
]);
|
|
2076
2437
|
return o(() => {
|
|
2077
|
-
!
|
|
2078
|
-
let e =
|
|
2438
|
+
!x && C.current && (C.current = !1, requestAnimationFrame(() => {
|
|
2439
|
+
let e = S.current;
|
|
2079
2440
|
e && e.ownerDocument.activeElement === e.ownerDocument.body && e.focus();
|
|
2080
2441
|
}));
|
|
2081
|
-
}, [
|
|
2082
|
-
isOpen:
|
|
2083
|
-
onOpenChange:
|
|
2084
|
-
children: [/* @__PURE__ */ h(
|
|
2442
|
+
}, [x]), /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h(Pe, {
|
|
2443
|
+
isOpen: x,
|
|
2444
|
+
onOpenChange: E,
|
|
2445
|
+
children: [/* @__PURE__ */ h(ae, {
|
|
2085
2446
|
"aria-haspopup": "menu",
|
|
2086
|
-
className:
|
|
2447
|
+
className: X.base.trigger,
|
|
2087
2448
|
isPending: u,
|
|
2088
|
-
ref:
|
|
2449
|
+
ref: S,
|
|
2089
2450
|
render: (e) => t("button", {
|
|
2090
2451
|
...e,
|
|
2091
2452
|
"aria-busy": u || void 0,
|
|
2092
2453
|
type: "button"
|
|
2093
2454
|
}),
|
|
2094
2455
|
children: [
|
|
2095
|
-
|
|
2096
|
-
name:
|
|
2456
|
+
v && /* @__PURE__ */ m(V, {
|
|
2457
|
+
name: v,
|
|
2097
2458
|
size: "sm"
|
|
2098
2459
|
}),
|
|
2099
2460
|
/* @__PURE__ */ h("span", {
|
|
2100
|
-
className:
|
|
2461
|
+
className: X.base.triggerLabel,
|
|
2101
2462
|
children: [/* @__PURE__ */ m("span", {
|
|
2102
|
-
className: [
|
|
2103
|
-
children:
|
|
2463
|
+
className: [X.base.triggerLabelContent, u && "breeze:opacity-0"].filter(Boolean).join(" "),
|
|
2464
|
+
children: _
|
|
2104
2465
|
}), u && /* @__PURE__ */ m("span", {
|
|
2105
2466
|
"aria-hidden": "true",
|
|
2106
|
-
className:
|
|
2467
|
+
className: X.base.triggerLabelSkeleton,
|
|
2107
2468
|
"data-breeze-skeleton": "",
|
|
2108
|
-
children: /* @__PURE__ */ m(
|
|
2469
|
+
children: /* @__PURE__ */ m(U, {})
|
|
2109
2470
|
})]
|
|
2110
2471
|
}),
|
|
2111
|
-
/* @__PURE__ */ m(
|
|
2472
|
+
/* @__PURE__ */ m(V, {
|
|
2112
2473
|
name: "expand",
|
|
2113
2474
|
size: "sm"
|
|
2114
2475
|
})
|
|
2115
2476
|
]
|
|
2116
|
-
}), /* @__PURE__ */ m(
|
|
2117
|
-
className:
|
|
2118
|
-
isOpen:
|
|
2119
|
-
onOpenChange:
|
|
2120
|
-
triggerRef:
|
|
2477
|
+
}), /* @__PURE__ */ m(hn, {
|
|
2478
|
+
className: X.base.popover,
|
|
2479
|
+
isOpen: x,
|
|
2480
|
+
onOpenChange: E,
|
|
2481
|
+
triggerRef: S,
|
|
2121
2482
|
children: /* @__PURE__ */ m("div", {
|
|
2122
2483
|
onKeyDownCapture: (e) => {
|
|
2123
|
-
e.key === "Escape" && (
|
|
2484
|
+
e.key === "Escape" && (C.current = !0);
|
|
2124
2485
|
},
|
|
2125
|
-
children: /* @__PURE__ */ m(
|
|
2126
|
-
className:
|
|
2127
|
-
id:
|
|
2486
|
+
children: /* @__PURE__ */ m(Me, {
|
|
2487
|
+
className: X.base.menu,
|
|
2488
|
+
id: w,
|
|
2128
2489
|
onAction: (e) => {
|
|
2129
|
-
let t =
|
|
2130
|
-
t && (
|
|
2490
|
+
let t = T.find((t) => t.id === e);
|
|
2491
|
+
t && (C.current = !0, d?.(t));
|
|
2131
2492
|
},
|
|
2132
|
-
children:
|
|
2133
|
-
let n = `${
|
|
2134
|
-
return /* @__PURE__ */ m(
|
|
2493
|
+
children: T.map((e, t) => {
|
|
2494
|
+
let n = `${w}-description-${t}`;
|
|
2495
|
+
return /* @__PURE__ */ m(Ne, {
|
|
2135
2496
|
"aria-describedby": e.description ? n : void 0,
|
|
2136
|
-
"aria-label":
|
|
2137
|
-
className:
|
|
2497
|
+
"aria-label": Yn(e),
|
|
2498
|
+
className: X.base.item,
|
|
2138
2499
|
id: e.id,
|
|
2139
2500
|
isDisabled: e.disabled,
|
|
2140
2501
|
textValue: e.label,
|
|
2141
|
-
children: /* @__PURE__ */ m(
|
|
2502
|
+
children: /* @__PURE__ */ m(Jn, {
|
|
2142
2503
|
descriptionId: n,
|
|
2143
2504
|
descriptor: e
|
|
2144
2505
|
})
|
|
@@ -2147,11 +2508,11 @@ function Pn({ defaultOpen: e, getItem: r, items: i, loading: u = !1, onAction: d
|
|
|
2147
2508
|
})
|
|
2148
2509
|
})
|
|
2149
2510
|
})]
|
|
2150
|
-
}), /* @__PURE__ */ m(
|
|
2511
|
+
}), /* @__PURE__ */ m(Xn, { loading: u })] });
|
|
2151
2512
|
}
|
|
2152
2513
|
//#endregion
|
|
2153
2514
|
//#region src/primitives/NumberField/NumberField.tsx
|
|
2154
|
-
var
|
|
2515
|
+
var Z = {
|
|
2155
2516
|
base: {
|
|
2156
2517
|
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",
|
|
2157
2518
|
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",
|
|
@@ -2168,9 +2529,9 @@ var Q = {
|
|
|
2168
2529
|
},
|
|
2169
2530
|
variant: {}
|
|
2170
2531
|
};
|
|
2171
|
-
function
|
|
2172
|
-
let { messages:
|
|
2173
|
-
return /* @__PURE__ */ h(
|
|
2532
|
+
function Qn({ autoComplete: e, autoFocus: n, defaultValue: r, description: i, disabled: a = !1, error: o, form: s, formatOptions: c, id: l, label: u, loading: d = !1, maxValue: f, minValue: p, name: g, onChange: _, placeholder: v, readOnly: y = !1, ref: b, required: x = !1, step: S, value: C }) {
|
|
2533
|
+
let { messages: w } = B(), T = i?.trim() || void 0, E = o?.trim() || void 0, D = a || d;
|
|
2534
|
+
return /* @__PURE__ */ h(Fe, {
|
|
2174
2535
|
autoFocus: n,
|
|
2175
2536
|
"aria-label": d ? u : void 0,
|
|
2176
2537
|
className: K.base.root,
|
|
@@ -2178,35 +2539,35 @@ function Fn({ autoComplete: e, autoFocus: n, defaultValue: r, description: i, di
|
|
|
2178
2539
|
form: s,
|
|
2179
2540
|
formatOptions: c,
|
|
2180
2541
|
id: l,
|
|
2181
|
-
isDisabled:
|
|
2182
|
-
isInvalid: !d &&
|
|
2183
|
-
isReadOnly:
|
|
2184
|
-
isRequired:
|
|
2542
|
+
isDisabled: D,
|
|
2543
|
+
isInvalid: !d && E !== void 0,
|
|
2544
|
+
isReadOnly: y,
|
|
2545
|
+
isRequired: x,
|
|
2185
2546
|
maxValue: f,
|
|
2186
2547
|
minValue: p,
|
|
2187
|
-
name:
|
|
2188
|
-
onChange:
|
|
2189
|
-
step:
|
|
2548
|
+
name: g,
|
|
2549
|
+
onChange: _,
|
|
2550
|
+
step: S,
|
|
2190
2551
|
validationBehavior: "aria",
|
|
2191
|
-
value:
|
|
2552
|
+
value: C,
|
|
2192
2553
|
children: [
|
|
2193
|
-
/* @__PURE__ */ m(
|
|
2554
|
+
/* @__PURE__ */ m(en, {
|
|
2194
2555
|
label: u,
|
|
2195
2556
|
loading: d
|
|
2196
2557
|
}),
|
|
2197
|
-
/* @__PURE__ */ h(
|
|
2198
|
-
className: q(
|
|
2558
|
+
/* @__PURE__ */ h(xe, {
|
|
2559
|
+
className: q(Z.base.group, y && !d && Z.state.readOnlyGroup, d && Z.state.loadingGroup),
|
|
2199
2560
|
children: [
|
|
2200
|
-
/* @__PURE__ */ m(
|
|
2561
|
+
/* @__PURE__ */ m(Se, {
|
|
2201
2562
|
"aria-busy": d || void 0,
|
|
2202
|
-
className: q(K.base.input,
|
|
2563
|
+
className: q(K.base.input, Z.base.input, d && Z.state.loadingInput),
|
|
2203
2564
|
autoComplete: e,
|
|
2204
|
-
placeholder:
|
|
2565
|
+
placeholder: v,
|
|
2205
2566
|
form: s,
|
|
2206
|
-
ref:
|
|
2567
|
+
ref: b
|
|
2207
2568
|
}),
|
|
2208
|
-
/* @__PURE__ */ m(
|
|
2209
|
-
className: q(
|
|
2569
|
+
/* @__PURE__ */ m(ae, {
|
|
2570
|
+
className: q(Z.base.stepButton, d && Z.state.loadingStepButton),
|
|
2210
2571
|
render: (e) => t("button", {
|
|
2211
2572
|
...e,
|
|
2212
2573
|
"aria-hidden": d || void 0,
|
|
@@ -2216,8 +2577,8 @@ function Fn({ autoComplete: e, autoFocus: n, defaultValue: r, description: i, di
|
|
|
2216
2577
|
type: "button",
|
|
2217
2578
|
children: "−"
|
|
2218
2579
|
}),
|
|
2219
|
-
/* @__PURE__ */ m(
|
|
2220
|
-
className: q(
|
|
2580
|
+
/* @__PURE__ */ m(ae, {
|
|
2581
|
+
className: q(Z.base.stepButton, d && Z.state.loadingStepButton),
|
|
2221
2582
|
render: (e) => t("button", {
|
|
2222
2583
|
...e,
|
|
2223
2584
|
"aria-hidden": d || void 0,
|
|
@@ -2228,19 +2589,19 @@ function Fn({ autoComplete: e, autoFocus: n, defaultValue: r, description: i, di
|
|
|
2228
2589
|
children: "+"
|
|
2229
2590
|
}),
|
|
2230
2591
|
d && /* @__PURE__ */ m("span", {
|
|
2231
|
-
className:
|
|
2232
|
-
children: /* @__PURE__ */ m(
|
|
2592
|
+
className: Z.base.skeleton,
|
|
2593
|
+
children: /* @__PURE__ */ m(U, {
|
|
2233
2594
|
blockSize: "100%",
|
|
2234
2595
|
inlineSize: "100%",
|
|
2235
|
-
label:
|
|
2596
|
+
label: w.loading,
|
|
2236
2597
|
shape: "rectangle"
|
|
2237
2598
|
})
|
|
2238
2599
|
})
|
|
2239
2600
|
]
|
|
2240
2601
|
}),
|
|
2241
|
-
/* @__PURE__ */ m(
|
|
2242
|
-
description:
|
|
2243
|
-
error:
|
|
2602
|
+
/* @__PURE__ */ m(tn, {
|
|
2603
|
+
description: T,
|
|
2604
|
+
error: E,
|
|
2244
2605
|
loading: d
|
|
2245
2606
|
})
|
|
2246
2607
|
]
|
|
@@ -2248,8 +2609,8 @@ function Fn({ autoComplete: e, autoFocus: n, defaultValue: r, description: i, di
|
|
|
2248
2609
|
}
|
|
2249
2610
|
//#endregion
|
|
2250
2611
|
//#region src/primitives/Popover/Popover.tsx
|
|
2251
|
-
function
|
|
2252
|
-
return /* @__PURE__ */ m(
|
|
2612
|
+
function $n({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o, placement: s }) {
|
|
2613
|
+
return /* @__PURE__ */ m(zn, {
|
|
2253
2614
|
defaultOpen: t,
|
|
2254
2615
|
dismissible: n,
|
|
2255
2616
|
onOpenChange: r,
|
|
@@ -2263,7 +2624,7 @@ function In({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
|
|
|
2263
2624
|
}
|
|
2264
2625
|
//#endregion
|
|
2265
2626
|
//#region src/primitives/RowList/RowList.tsx
|
|
2266
|
-
var
|
|
2627
|
+
var Q = {
|
|
2267
2628
|
base: {
|
|
2268
2629
|
badge: "breeze:block breeze:inline-size-full breeze:max-inline-size-full breeze:min-inline-size-0 breeze:overflow-hidden breeze:whitespace-nowrap breeze:[&>span]:max-inline-size-full breeze:[&>span]:min-inline-size-0 breeze:[&>span]:overflow-hidden breeze:[&>span>span:first-child]:min-inline-size-0 breeze:[&>span>span:first-child]:overflow-hidden breeze:[&>span>span:first-child]:text-ellipsis",
|
|
2269
2630
|
container: "breeze:min-inline-size-0 breeze:inline-size-full",
|
|
@@ -2294,7 +2655,7 @@ var $ = {
|
|
|
2294
2655
|
state: {},
|
|
2295
2656
|
variant: {}
|
|
2296
2657
|
};
|
|
2297
|
-
function
|
|
2658
|
+
function er(e) {
|
|
2298
2659
|
let t = [], n = /* @__PURE__ */ new Map();
|
|
2299
2660
|
return e.forEach((e) => {
|
|
2300
2661
|
if (!e.section) {
|
|
@@ -2319,48 +2680,48 @@ function Ln(e) {
|
|
|
2319
2680
|
}
|
|
2320
2681
|
}), t;
|
|
2321
2682
|
}
|
|
2322
|
-
function
|
|
2323
|
-
return /* @__PURE__ */ m(
|
|
2683
|
+
function tr() {
|
|
2684
|
+
return /* @__PURE__ */ m(U, {
|
|
2324
2685
|
blockSize: "1lh",
|
|
2325
2686
|
inlineSize: "min(100%, 8em)"
|
|
2326
2687
|
});
|
|
2327
2688
|
}
|
|
2328
|
-
var
|
|
2689
|
+
var nr = [
|
|
2329
2690
|
"first",
|
|
2330
2691
|
"second",
|
|
2331
2692
|
"third"
|
|
2332
2693
|
];
|
|
2333
|
-
function
|
|
2694
|
+
function rr() {
|
|
2334
2695
|
return /* @__PURE__ */ m("div", {
|
|
2335
|
-
className:
|
|
2336
|
-
children:
|
|
2337
|
-
className:
|
|
2696
|
+
className: Q.base.skeletonRows,
|
|
2697
|
+
children: nr.map((e) => /* @__PURE__ */ h("div", {
|
|
2698
|
+
className: Q.base.loadingRow,
|
|
2338
2699
|
children: [
|
|
2339
2700
|
/* @__PURE__ */ h("div", {
|
|
2340
|
-
className:
|
|
2341
|
-
children: [/* @__PURE__ */ m(
|
|
2701
|
+
className: Q.base.loadingLeading,
|
|
2702
|
+
children: [/* @__PURE__ */ m(U, {
|
|
2342
2703
|
blockSize: "1lh",
|
|
2343
2704
|
inlineSize: "min(100%, 9em)"
|
|
2344
|
-
}), /* @__PURE__ */ m(
|
|
2705
|
+
}), /* @__PURE__ */ m(U, {
|
|
2345
2706
|
blockSize: "1lh",
|
|
2346
2707
|
inlineSize: "min(100%, 14em)"
|
|
2347
2708
|
})]
|
|
2348
2709
|
}),
|
|
2349
2710
|
/* @__PURE__ */ m("div", {
|
|
2350
|
-
className:
|
|
2711
|
+
className: Q.base.metadata,
|
|
2351
2712
|
children: /* @__PURE__ */ m("div", {
|
|
2352
|
-
className:
|
|
2353
|
-
children: /* @__PURE__ */ m(
|
|
2713
|
+
className: Q.base.loadingPlaceholder,
|
|
2714
|
+
children: /* @__PURE__ */ m(U, {
|
|
2354
2715
|
blockSize: "1lh",
|
|
2355
2716
|
inlineSize: "min(100%, 7em)"
|
|
2356
2717
|
})
|
|
2357
2718
|
})
|
|
2358
2719
|
}),
|
|
2359
2720
|
/* @__PURE__ */ m("div", {
|
|
2360
|
-
className:
|
|
2721
|
+
className: Q.base.value,
|
|
2361
2722
|
children: /* @__PURE__ */ m("div", {
|
|
2362
|
-
className:
|
|
2363
|
-
children: /* @__PURE__ */ m(
|
|
2723
|
+
className: Q.base.loadingPlaceholder,
|
|
2724
|
+
children: /* @__PURE__ */ m(U, {
|
|
2364
2725
|
blockSize: "1lh",
|
|
2365
2726
|
inlineSize: "min(100%, 5em)"
|
|
2366
2727
|
})
|
|
@@ -2370,73 +2731,73 @@ function Bn() {
|
|
|
2370
2731
|
}, e))
|
|
2371
2732
|
});
|
|
2372
2733
|
}
|
|
2373
|
-
function
|
|
2734
|
+
function ir({ descriptor: e }) {
|
|
2374
2735
|
let { metadata: t } = e;
|
|
2375
2736
|
return t ? e.loading ? /* @__PURE__ */ m("div", {
|
|
2376
|
-
className:
|
|
2377
|
-
children: /* @__PURE__ */ m(
|
|
2378
|
-
}) : t.format === "date" ? /* @__PURE__ */ m(
|
|
2737
|
+
className: Q.base.loadingPlaceholder,
|
|
2738
|
+
children: /* @__PURE__ */ m(tr, {})
|
|
2739
|
+
}) : t.format === "date" ? /* @__PURE__ */ m(W, {
|
|
2379
2740
|
element: "span",
|
|
2380
2741
|
format: "date",
|
|
2381
2742
|
dateStyle: "medium",
|
|
2382
2743
|
tone: "secondary",
|
|
2383
2744
|
value: t.value,
|
|
2384
2745
|
variant: "caption"
|
|
2385
|
-
}) : /* @__PURE__ */ m(
|
|
2746
|
+
}) : /* @__PURE__ */ m(W, {
|
|
2386
2747
|
element: "span",
|
|
2387
2748
|
tone: "secondary",
|
|
2388
2749
|
variant: "caption",
|
|
2389
2750
|
children: t.value
|
|
2390
2751
|
}) : null;
|
|
2391
2752
|
}
|
|
2392
|
-
function
|
|
2753
|
+
function ar({ descriptor: e }) {
|
|
2393
2754
|
let { value: t } = e;
|
|
2394
2755
|
return t ? e.loading ? /* @__PURE__ */ m("div", {
|
|
2395
|
-
className: t.format === "currency" ?
|
|
2396
|
-
children: t.format === "currency" ? /* @__PURE__ */ m(
|
|
2756
|
+
className: t.format === "currency" ? Q.base.loadingMoneyPlaceholder : Q.base.loadingPlaceholder,
|
|
2757
|
+
children: t.format === "currency" ? /* @__PURE__ */ m(U, {
|
|
2397
2758
|
blockSize: "1lh",
|
|
2398
2759
|
inlineSize: "min(100%, 4em)"
|
|
2399
|
-
}) : /* @__PURE__ */ m(
|
|
2400
|
-
}) : t.format === "currency" ? /* @__PURE__ */ m(
|
|
2760
|
+
}) : /* @__PURE__ */ m(tr, {})
|
|
2761
|
+
}) : t.format === "currency" ? /* @__PURE__ */ m(W, {
|
|
2401
2762
|
element: "span",
|
|
2402
2763
|
format: "currency",
|
|
2403
2764
|
currency: t.currency,
|
|
2404
2765
|
tone: "secondary",
|
|
2405
2766
|
value: t.value,
|
|
2406
2767
|
variant: "money"
|
|
2407
|
-
}) : /* @__PURE__ */ m(
|
|
2768
|
+
}) : /* @__PURE__ */ m(W, {
|
|
2408
2769
|
element: "span",
|
|
2409
2770
|
tone: "secondary",
|
|
2410
2771
|
variant: "body",
|
|
2411
2772
|
children: t.value
|
|
2412
2773
|
}) : null;
|
|
2413
2774
|
}
|
|
2414
|
-
function
|
|
2775
|
+
function or({ descriptor: e }) {
|
|
2415
2776
|
return /* @__PURE__ */ h(p, { children: [
|
|
2416
2777
|
/* @__PURE__ */ h("div", {
|
|
2417
|
-
className:
|
|
2778
|
+
className: Q.base.leading,
|
|
2418
2779
|
children: [/* @__PURE__ */ h("div", {
|
|
2419
|
-
className:
|
|
2780
|
+
className: Q.base.primary,
|
|
2420
2781
|
children: [e.icon && /* @__PURE__ */ m("span", {
|
|
2421
2782
|
"aria-hidden": "true",
|
|
2422
|
-
className:
|
|
2423
|
-
children: /* @__PURE__ */ m(
|
|
2783
|
+
className: Q.base.icon,
|
|
2784
|
+
children: /* @__PURE__ */ m(V, {
|
|
2424
2785
|
name: e.icon,
|
|
2425
2786
|
size: "sm"
|
|
2426
2787
|
})
|
|
2427
2788
|
}), /* @__PURE__ */ h("span", {
|
|
2428
|
-
className:
|
|
2789
|
+
className: Q.base.content,
|
|
2429
2790
|
children: [/* @__PURE__ */ m("span", {
|
|
2430
|
-
className:
|
|
2791
|
+
className: Q.base.label,
|
|
2431
2792
|
children: e.label
|
|
2432
2793
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
2433
|
-
className:
|
|
2794
|
+
className: Q.base.description,
|
|
2434
2795
|
children: e.description
|
|
2435
2796
|
})]
|
|
2436
2797
|
})]
|
|
2437
2798
|
}), e.badge && /* @__PURE__ */ m("span", {
|
|
2438
|
-
className:
|
|
2439
|
-
children: /* @__PURE__ */ m(
|
|
2799
|
+
className: Q.base.badge,
|
|
2800
|
+
children: /* @__PURE__ */ m(qt, {
|
|
2440
2801
|
"aria-label": e.badge["aria-label"],
|
|
2441
2802
|
variant: e.badge.variant,
|
|
2442
2803
|
children: e.badge.children
|
|
@@ -2444,61 +2805,61 @@ function Un({ descriptor: e }) {
|
|
|
2444
2805
|
})]
|
|
2445
2806
|
}),
|
|
2446
2807
|
e.metadata && /* @__PURE__ */ m("div", {
|
|
2447
|
-
className:
|
|
2448
|
-
children: /* @__PURE__ */ m(
|
|
2808
|
+
className: Q.base.metadata,
|
|
2809
|
+
children: /* @__PURE__ */ m(ir, { descriptor: e })
|
|
2449
2810
|
}),
|
|
2450
2811
|
e.value && /* @__PURE__ */ m("div", {
|
|
2451
|
-
className:
|
|
2452
|
-
children: /* @__PURE__ */ m(
|
|
2812
|
+
className: Q.base.value,
|
|
2813
|
+
children: /* @__PURE__ */ m(ar, { descriptor: e })
|
|
2453
2814
|
})
|
|
2454
2815
|
] });
|
|
2455
2816
|
}
|
|
2456
|
-
function
|
|
2457
|
-
return /* @__PURE__ */ m(
|
|
2458
|
-
className:
|
|
2817
|
+
function sr(e, t) {
|
|
2818
|
+
return /* @__PURE__ */ m(Re, {
|
|
2819
|
+
className: Q.base.item,
|
|
2459
2820
|
id: `row:${e.id}`,
|
|
2460
2821
|
isDisabled: e.disabled,
|
|
2461
2822
|
onAction: () => t(e),
|
|
2462
2823
|
textValue: e.label,
|
|
2463
|
-
children: /* @__PURE__ */ m(
|
|
2824
|
+
children: /* @__PURE__ */ m(or, { descriptor: e })
|
|
2464
2825
|
}, `row:${e.id}`);
|
|
2465
2826
|
}
|
|
2466
|
-
function
|
|
2467
|
-
let { getMessageLocale: o, messages: s } =
|
|
2827
|
+
function cr({ "aria-label": e, getItem: t, items: n, loading: r = !1, loadMore: i, onAction: a }) {
|
|
2828
|
+
let { getMessageLocale: o, messages: s } = B(), c = er(n.map(t)), l = i?.loading ?? !1, u = r || l, d = "";
|
|
2468
2829
|
return u ? d = s.loading : n.length === 0 && (d = s.noItemsToDisplay), /* @__PURE__ */ h("div", {
|
|
2469
|
-
className:
|
|
2830
|
+
className: Q.base.container,
|
|
2470
2831
|
children: [
|
|
2471
|
-
/* @__PURE__ */ m(
|
|
2832
|
+
/* @__PURE__ */ m(Ie, {
|
|
2472
2833
|
"aria-busy": r || void 0,
|
|
2473
2834
|
"aria-label": e,
|
|
2474
|
-
className:
|
|
2475
|
-
renderEmptyState: () => u ? /* @__PURE__ */ m(
|
|
2476
|
-
className:
|
|
2835
|
+
className: Q.base.grid,
|
|
2836
|
+
renderEmptyState: () => u ? /* @__PURE__ */ m(rr, {}) : /* @__PURE__ */ m("div", {
|
|
2837
|
+
className: Q.base.emptyMessage,
|
|
2477
2838
|
lang: o("noItemsToDisplay"),
|
|
2478
2839
|
children: s.noItemsToDisplay
|
|
2479
2840
|
}),
|
|
2480
2841
|
selectionMode: "none",
|
|
2481
|
-
children: c.map((e) => e.kind === "row" ?
|
|
2482
|
-
className:
|
|
2842
|
+
children: c.map((e) => e.kind === "row" ? sr(e.descriptor, a) : /* @__PURE__ */ h(ze, {
|
|
2843
|
+
className: Q.base.section,
|
|
2483
2844
|
id: `section:${e.group.id}`,
|
|
2484
|
-
children: [/* @__PURE__ */ m(
|
|
2485
|
-
className:
|
|
2845
|
+
children: [/* @__PURE__ */ m(Le, {
|
|
2846
|
+
className: Q.base.header,
|
|
2486
2847
|
children: /* @__PURE__ */ m("span", {
|
|
2487
|
-
className:
|
|
2848
|
+
className: Q.base.headerLabel,
|
|
2488
2849
|
children: e.group.label
|
|
2489
2850
|
})
|
|
2490
|
-
}), e.group.items.map((e) =>
|
|
2851
|
+
}), e.group.items.map((e) => sr(e, a))]
|
|
2491
2852
|
}, `section:${e.group.id}`))
|
|
2492
2853
|
}),
|
|
2493
2854
|
/* @__PURE__ */ m("output", {
|
|
2494
2855
|
"aria-live": "polite",
|
|
2495
|
-
className:
|
|
2856
|
+
className: Q.base.loadingStatus,
|
|
2496
2857
|
lang: o(u ? "loading" : "noItemsToDisplay"),
|
|
2497
2858
|
children: d
|
|
2498
2859
|
}),
|
|
2499
2860
|
i && /* @__PURE__ */ m("div", {
|
|
2500
|
-
className:
|
|
2501
|
-
children: /* @__PURE__ */ m(
|
|
2861
|
+
className: Q.base.loadMore,
|
|
2862
|
+
children: /* @__PURE__ */ m(Vt, {
|
|
2502
2863
|
loading: l,
|
|
2503
2864
|
onAction: i.onAction,
|
|
2504
2865
|
variant: "quiet",
|
|
@@ -2510,32 +2871,32 @@ function Gn({ "aria-label": e, getItem: t, items: n, loading: r = !1, loadMore:
|
|
|
2510
2871
|
}
|
|
2511
2872
|
//#endregion
|
|
2512
2873
|
//#region src/primitives/Select/Select.tsx
|
|
2513
|
-
var
|
|
2874
|
+
var lr = {
|
|
2514
2875
|
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" },
|
|
2515
2876
|
compound: {},
|
|
2516
2877
|
size: {},
|
|
2517
2878
|
state: { readOnlyTrigger: "breeze:cursor-default breeze:bg-breeze-sunken" },
|
|
2518
2879
|
variant: {}
|
|
2519
2880
|
};
|
|
2520
|
-
function
|
|
2521
|
-
return /* @__PURE__ */ m(
|
|
2522
|
-
className:
|
|
2881
|
+
function ur({ items: e }) {
|
|
2882
|
+
return /* @__PURE__ */ m(Ce, {
|
|
2883
|
+
className: Y.base.listBox,
|
|
2523
2884
|
items: e,
|
|
2524
|
-
children: (e) => /* @__PURE__ */ m(
|
|
2525
|
-
className:
|
|
2885
|
+
children: (e) => /* @__PURE__ */ m(we, {
|
|
2886
|
+
className: Y.base.item,
|
|
2526
2887
|
id: e.descriptor.id,
|
|
2527
2888
|
isDisabled: e.descriptor.disabled,
|
|
2528
2889
|
textValue: e.descriptor.label,
|
|
2529
2890
|
value: e,
|
|
2530
|
-
children: ({ isSelected: t }) => /* @__PURE__ */ m(
|
|
2891
|
+
children: ({ isSelected: t }) => /* @__PURE__ */ m(gn, {
|
|
2531
2892
|
descriptor: e.descriptor,
|
|
2532
2893
|
isSelected: t
|
|
2533
2894
|
})
|
|
2534
2895
|
})
|
|
2535
2896
|
});
|
|
2536
2897
|
}
|
|
2537
|
-
function
|
|
2538
|
-
let a = r(
|
|
2898
|
+
function dr({ form: e, interactionDisabled: t, name: n, readOnly: i }) {
|
|
2899
|
+
let a = r(Ve);
|
|
2539
2900
|
return !i || t || !n || a === null ? null : /* @__PURE__ */ m("input", {
|
|
2540
2901
|
form: e,
|
|
2541
2902
|
name: n,
|
|
@@ -2543,106 +2904,106 @@ function Jn({ form: e, interactionDisabled: t, name: n, readOnly: i }) {
|
|
|
2543
2904
|
value: a.value === null ? "" : String(a.value)
|
|
2544
2905
|
});
|
|
2545
2906
|
}
|
|
2546
|
-
function
|
|
2547
|
-
let o = r(
|
|
2907
|
+
function fr({ disabled: e, items: t, readOnly: n, triggerRef: a }) {
|
|
2908
|
+
let o = r(Ve), s = e || n || t.length === 0, c = !s && (o?.isOpen ?? !1);
|
|
2548
2909
|
return i(() => {
|
|
2549
2910
|
s && o?.isOpen && o.setOpen(!1);
|
|
2550
|
-
}, [s, o]), /* @__PURE__ */ m(
|
|
2551
|
-
className:
|
|
2911
|
+
}, [s, o]), /* @__PURE__ */ m(hn, {
|
|
2912
|
+
className: Y.base.popover,
|
|
2552
2913
|
isOpen: c,
|
|
2553
2914
|
onOpenChange: (e) => o?.setOpen(e),
|
|
2554
2915
|
triggerRef: a,
|
|
2555
|
-
children: /* @__PURE__ */ m(
|
|
2916
|
+
children: /* @__PURE__ */ m(ur, { items: t })
|
|
2556
2917
|
});
|
|
2557
2918
|
}
|
|
2558
|
-
function
|
|
2559
|
-
let { messages:
|
|
2919
|
+
function pr({ autoComplete: e, autoFocus: n, defaultValue: r, description: i, disabled: o = !1, error: l, form: u, getItem: d, id: f, items: p, label: g, loading: _ = !1, name: v, onChange: y, placeholder: b, readOnly: x = !1, required: S = !1, value: C }) {
|
|
2920
|
+
let { messages: w } = B(), T = i?.trim() || void 0, E = l?.trim() || void 0, D = o || _, O = !_ && E !== void 0, k = a(), A = f ?? `${k}-control`, j = c(null), ee = s(() => p.map((e) => ({
|
|
2560
2921
|
descriptor: d(e),
|
|
2561
2922
|
item: e
|
|
2562
|
-
})), [d, p]),
|
|
2563
|
-
|
|
2923
|
+
})), [d, p]), M;
|
|
2924
|
+
M = C === void 0 ? void 0 : C === null ? null : d(C).id;
|
|
2564
2925
|
let te = r == null ? null : d(r).id;
|
|
2565
|
-
return /* @__PURE__ */ h(
|
|
2566
|
-
"aria-label":
|
|
2926
|
+
return /* @__PURE__ */ h(Be, {
|
|
2927
|
+
"aria-label": _ ? g : void 0,
|
|
2567
2928
|
autoComplete: e,
|
|
2568
2929
|
autoFocus: n,
|
|
2569
2930
|
className: K.base.root,
|
|
2570
2931
|
defaultValue: te,
|
|
2571
2932
|
form: u,
|
|
2572
|
-
id:
|
|
2573
|
-
isDisabled:
|
|
2574
|
-
isInvalid:
|
|
2575
|
-
isRequired:
|
|
2576
|
-
name:
|
|
2933
|
+
id: A,
|
|
2934
|
+
isDisabled: D || x,
|
|
2935
|
+
isInvalid: O,
|
|
2936
|
+
isRequired: S,
|
|
2937
|
+
name: v,
|
|
2577
2938
|
onChange: (e) => {
|
|
2578
|
-
if (
|
|
2579
|
-
let t = e === null ? void 0 :
|
|
2580
|
-
|
|
2939
|
+
if (x) return;
|
|
2940
|
+
let t = e === null ? void 0 : ee.find(({ descriptor: t }) => t.id === String(e));
|
|
2941
|
+
y?.(t?.item ?? null);
|
|
2581
2942
|
},
|
|
2582
|
-
placeholder:
|
|
2943
|
+
placeholder: b,
|
|
2583
2944
|
validationBehavior: "aria",
|
|
2584
|
-
value:
|
|
2945
|
+
value: M,
|
|
2585
2946
|
children: [
|
|
2586
|
-
/* @__PURE__ */ m(
|
|
2587
|
-
htmlFor:
|
|
2588
|
-
label:
|
|
2589
|
-
loading:
|
|
2590
|
-
onClick: () =>
|
|
2947
|
+
/* @__PURE__ */ m(en, {
|
|
2948
|
+
htmlFor: A,
|
|
2949
|
+
label: g,
|
|
2950
|
+
loading: _,
|
|
2951
|
+
onClick: () => j.current?.focus()
|
|
2591
2952
|
}),
|
|
2592
2953
|
/* @__PURE__ */ h("div", {
|
|
2593
2954
|
className: K.base.control,
|
|
2594
|
-
children: [/* @__PURE__ */ h(
|
|
2595
|
-
className: q(
|
|
2596
|
-
isDisabled:
|
|
2597
|
-
ref:
|
|
2955
|
+
children: [/* @__PURE__ */ h(ae, {
|
|
2956
|
+
className: q(lr.base.trigger, x && lr.state.readOnlyTrigger, _ && "breeze:!opacity-0"),
|
|
2957
|
+
isDisabled: D,
|
|
2958
|
+
ref: j,
|
|
2598
2959
|
render: (e) => t("button", {
|
|
2599
2960
|
...e,
|
|
2600
|
-
"aria-busy":
|
|
2601
|
-
"aria-disabled":
|
|
2602
|
-
"aria-invalid":
|
|
2603
|
-
"data-invalid":
|
|
2961
|
+
"aria-busy": _ || void 0,
|
|
2962
|
+
"aria-disabled": x || void 0,
|
|
2963
|
+
"aria-invalid": O || void 0,
|
|
2964
|
+
"data-invalid": O || void 0,
|
|
2604
2965
|
type: "button"
|
|
2605
2966
|
}),
|
|
2606
|
-
children: [/* @__PURE__ */ m(
|
|
2607
|
-
className: q(
|
|
2608
|
-
children: ({ isPlaceholder: e, selectedText: t }) => e ?
|
|
2609
|
-
}), /* @__PURE__ */ m(
|
|
2967
|
+
children: [/* @__PURE__ */ m(He, {
|
|
2968
|
+
className: q(Y.base.content, "breeze:text-start"),
|
|
2969
|
+
children: ({ isPlaceholder: e, selectedText: t }) => e ? b ?? "" : t
|
|
2970
|
+
}), /* @__PURE__ */ m(V, {
|
|
2610
2971
|
name: "expand",
|
|
2611
2972
|
size: "sm"
|
|
2612
2973
|
})]
|
|
2613
|
-
}),
|
|
2974
|
+
}), _ && /* @__PURE__ */ m("span", {
|
|
2614
2975
|
className: K.base.skeleton,
|
|
2615
|
-
children: /* @__PURE__ */ m(
|
|
2976
|
+
children: /* @__PURE__ */ m(U, {
|
|
2616
2977
|
blockSize: "100%",
|
|
2617
2978
|
inlineSize: "100%",
|
|
2618
|
-
label:
|
|
2979
|
+
label: w.loading,
|
|
2619
2980
|
shape: "rectangle"
|
|
2620
2981
|
})
|
|
2621
2982
|
})]
|
|
2622
2983
|
}),
|
|
2623
|
-
/* @__PURE__ */ m(
|
|
2624
|
-
disabled:
|
|
2625
|
-
items:
|
|
2626
|
-
readOnly:
|
|
2627
|
-
triggerRef:
|
|
2984
|
+
/* @__PURE__ */ m(fr, {
|
|
2985
|
+
disabled: D,
|
|
2986
|
+
items: ee,
|
|
2987
|
+
readOnly: x,
|
|
2988
|
+
triggerRef: j
|
|
2628
2989
|
}),
|
|
2629
|
-
/* @__PURE__ */ m(
|
|
2990
|
+
/* @__PURE__ */ m(dr, {
|
|
2630
2991
|
form: u,
|
|
2631
|
-
interactionDisabled:
|
|
2632
|
-
name:
|
|
2633
|
-
readOnly:
|
|
2992
|
+
interactionDisabled: D,
|
|
2993
|
+
name: v,
|
|
2994
|
+
readOnly: x
|
|
2634
2995
|
}),
|
|
2635
|
-
/* @__PURE__ */ m(
|
|
2636
|
-
description:
|
|
2637
|
-
error:
|
|
2638
|
-
loading:
|
|
2996
|
+
/* @__PURE__ */ m(tn, {
|
|
2997
|
+
description: T,
|
|
2998
|
+
error: E,
|
|
2999
|
+
loading: _
|
|
2639
3000
|
})
|
|
2640
3001
|
]
|
|
2641
3002
|
});
|
|
2642
3003
|
}
|
|
2643
3004
|
//#endregion
|
|
2644
3005
|
//#region src/primitives/Separator/Separator.tsx
|
|
2645
|
-
var
|
|
3006
|
+
var mr = {
|
|
2646
3007
|
base: { separator: "breeze:m-0 breeze:shrink-0 breeze:border-0 breeze:bg-breeze-line breeze:forced-colors:bg-[CanvasText]" },
|
|
2647
3008
|
compound: {},
|
|
2648
3009
|
size: {},
|
|
@@ -2652,53 +3013,17 @@ var Zn = {
|
|
|
2652
3013
|
vertical: "breeze:block-size-full breeze:inline-size-breeze-px"
|
|
2653
3014
|
}
|
|
2654
3015
|
};
|
|
2655
|
-
function
|
|
3016
|
+
function hr({ orientation: e = "horizontal" }) {
|
|
2656
3017
|
return /* @__PURE__ */ m("hr", {
|
|
2657
3018
|
"aria-orientation": e,
|
|
2658
|
-
className: [
|
|
3019
|
+
className: [mr.base.separator, mr.variant[e]].join(" ")
|
|
2659
3020
|
});
|
|
2660
3021
|
}
|
|
2661
3022
|
//#endregion
|
|
2662
|
-
//#region src/primitives/Stack/Stack.tsx
|
|
2663
|
-
var $n = {
|
|
2664
|
-
base: { stack: "breeze:flex breeze:min-inline-size-0 breeze:flex-col" },
|
|
2665
|
-
compound: {},
|
|
2666
|
-
size: {
|
|
2667
|
-
0: "breeze:gap-0",
|
|
2668
|
-
1: "breeze:gap-breeze-1",
|
|
2669
|
-
2: "breeze:gap-breeze-2",
|
|
2670
|
-
3: "breeze:gap-breeze-3",
|
|
2671
|
-
4: "breeze:gap-breeze-4",
|
|
2672
|
-
5: "breeze:gap-breeze-5",
|
|
2673
|
-
6: "breeze:gap-breeze-6",
|
|
2674
|
-
7: "breeze:gap-breeze-7",
|
|
2675
|
-
8: "breeze:gap-breeze-8"
|
|
2676
|
-
},
|
|
2677
|
-
state: {},
|
|
2678
|
-
variant: {
|
|
2679
|
-
center: "breeze:items-center",
|
|
2680
|
-
end: "breeze:items-end",
|
|
2681
|
-
start: "breeze:items-start",
|
|
2682
|
-
stretch: "breeze:items-stretch"
|
|
2683
|
-
}
|
|
2684
|
-
};
|
|
2685
|
-
function er({ "aria-label": e, children: n, element: r = "div", gap: i = 3, horizontalAlign: a = "stretch" }) {
|
|
2686
|
-
let { accessibleLabel: o, role: s } = Tt(e, r);
|
|
2687
|
-
return t(r, {
|
|
2688
|
-
"aria-label": o,
|
|
2689
|
-
className: [
|
|
2690
|
-
$n.base.stack,
|
|
2691
|
-
$n.variant[a],
|
|
2692
|
-
$n.size[i]
|
|
2693
|
-
].join(" "),
|
|
2694
|
-
role: s
|
|
2695
|
-
}, n);
|
|
2696
|
-
}
|
|
2697
|
-
//#endregion
|
|
2698
3023
|
//#region src/primitives/TextField/TextField.tsx
|
|
2699
|
-
function
|
|
2700
|
-
let { messages: b } =
|
|
2701
|
-
return /* @__PURE__ */ h(
|
|
3024
|
+
function gr({ 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 }) {
|
|
3025
|
+
let { messages: b } = B(), x = r?.trim() || void 0, S = a?.trim() || void 0, C = i || l;
|
|
3026
|
+
return /* @__PURE__ */ h(Ue, {
|
|
2702
3027
|
className: K.base.root,
|
|
2703
3028
|
defaultValue: n,
|
|
2704
3029
|
"aria-label": l ? c : void 0,
|
|
@@ -2713,13 +3038,13 @@ function tr({ autoComplete: e, autoFocus: t, defaultValue: n, description: r, di
|
|
|
2713
3038
|
validationBehavior: "aria",
|
|
2714
3039
|
value: y,
|
|
2715
3040
|
children: [
|
|
2716
|
-
/* @__PURE__ */ m(
|
|
3041
|
+
/* @__PURE__ */ m(en, {
|
|
2717
3042
|
label: c,
|
|
2718
3043
|
loading: l
|
|
2719
3044
|
}),
|
|
2720
3045
|
/* @__PURE__ */ h("span", {
|
|
2721
3046
|
className: K.base.control,
|
|
2722
|
-
children: [/* @__PURE__ */ m(
|
|
3047
|
+
children: [/* @__PURE__ */ m(Se, {
|
|
2723
3048
|
"aria-busy": l || void 0,
|
|
2724
3049
|
className: q(K.base.input, l && K.state.loadingInput),
|
|
2725
3050
|
autoComplete: e,
|
|
@@ -2729,7 +3054,7 @@ function tr({ autoComplete: e, autoFocus: t, defaultValue: n, description: r, di
|
|
|
2729
3054
|
ref: g
|
|
2730
3055
|
}), l && /* @__PURE__ */ m("span", {
|
|
2731
3056
|
className: K.base.skeleton,
|
|
2732
|
-
children: /* @__PURE__ */ m(
|
|
3057
|
+
children: /* @__PURE__ */ m(U, {
|
|
2733
3058
|
blockSize: "100%",
|
|
2734
3059
|
inlineSize: "100%",
|
|
2735
3060
|
label: b.loading,
|
|
@@ -2737,7 +3062,7 @@ function tr({ autoComplete: e, autoFocus: t, defaultValue: n, description: r, di
|
|
|
2737
3062
|
})
|
|
2738
3063
|
})]
|
|
2739
3064
|
}),
|
|
2740
|
-
/* @__PURE__ */ m(
|
|
3065
|
+
/* @__PURE__ */ m(tn, {
|
|
2741
3066
|
description: x,
|
|
2742
3067
|
error: S,
|
|
2743
3068
|
loading: l
|
|
@@ -2747,18 +3072,18 @@ function tr({ autoComplete: e, autoFocus: t, defaultValue: n, description: r, di
|
|
|
2747
3072
|
}
|
|
2748
3073
|
//#endregion
|
|
2749
3074
|
//#region src/primitives/Toast/Toast.tsx
|
|
2750
|
-
var
|
|
2751
|
-
function
|
|
3075
|
+
var _r = 2600, vr = "BreezeProvider toastLimit must be a positive integer.", yr = "Toast components must be rendered within BreezeProvider.";
|
|
3076
|
+
function br(e) {
|
|
2752
3077
|
return e.isIntersecting && e.intersectionRatio >= 1;
|
|
2753
3078
|
}
|
|
2754
|
-
function
|
|
3079
|
+
function xr(e, t, n, r) {
|
|
2755
3080
|
let i = Number(e.target.dataset.breezeToastId);
|
|
2756
|
-
t.has(i) && (
|
|
3081
|
+
t.has(i) && (br(e) ? n(i) : r(i));
|
|
2757
3082
|
}
|
|
2758
|
-
var
|
|
2759
|
-
function
|
|
2760
|
-
|
|
2761
|
-
let t = r(
|
|
3083
|
+
var Sr = e(null), Cr = e(!0), wr = e(null);
|
|
3084
|
+
function Tr({ children: e }) {
|
|
3085
|
+
B();
|
|
3086
|
+
let t = r(Cr), n = r(wr), [a, o] = l(() => n?.message ?? null);
|
|
2762
3087
|
return i(() => {
|
|
2763
3088
|
if (!t || typeof document < "u" && document.hidden || a === e) return;
|
|
2764
3089
|
let r = setTimeout(() => {
|
|
@@ -2776,15 +3101,15 @@ function ur({ children: e }) {
|
|
|
2776
3101
|
"aria-live": "polite",
|
|
2777
3102
|
className: "breeze-toast",
|
|
2778
3103
|
role: "status",
|
|
2779
|
-
children: [/* @__PURE__ */ m(
|
|
3104
|
+
children: [/* @__PURE__ */ m(V, {
|
|
2780
3105
|
name: "check",
|
|
2781
3106
|
size: "sm"
|
|
2782
3107
|
}), /* @__PURE__ */ m("span", { children: a })]
|
|
2783
3108
|
});
|
|
2784
3109
|
}
|
|
2785
|
-
function
|
|
2786
|
-
let r =
|
|
2787
|
-
if (!Number.isInteger(t) || t < 1) throw RangeError(
|
|
3110
|
+
function Er({ children: e, limit: t }) {
|
|
3111
|
+
let r = fn(), a = qe(), s = c(null), [u, d] = l(() => typeof document > "u" || !document.hidden), [f, p] = l([]), g = c(0), _ = c(/* @__PURE__ */ new Map()), v = c(/* @__PURE__ */ new Set()), y = c(/* @__PURE__ */ new Map());
|
|
3112
|
+
if (!Number.isInteger(t) || t < 1) throw RangeError(vr);
|
|
2788
3113
|
let b = n((e, t) => {
|
|
2789
3114
|
let n = y.current.get(e);
|
|
2790
3115
|
n !== void 0 && (n.message = t);
|
|
@@ -2819,7 +3144,7 @@ function dr({ children: e, limit: t }) {
|
|
|
2819
3144
|
if (!u || typeof document < "u" && document.hidden || t !== void 0 && t.handle !== null) return;
|
|
2820
3145
|
let n = t ?? {
|
|
2821
3146
|
handle: null,
|
|
2822
|
-
remaining:
|
|
3147
|
+
remaining: _r,
|
|
2823
3148
|
startedAt: null
|
|
2824
3149
|
};
|
|
2825
3150
|
if (n.remaining <= 0) {
|
|
@@ -2853,7 +3178,7 @@ function dr({ children: e, limit: t }) {
|
|
|
2853
3178
|
}
|
|
2854
3179
|
let a, o = setTimeout(() => {
|
|
2855
3180
|
a = new IntersectionObserver((e) => {
|
|
2856
|
-
e.forEach((e) =>
|
|
3181
|
+
e.forEach((e) => xr(e, n, D, w));
|
|
2857
3182
|
}, { threshold: 1 }), Array.from(i.children).forEach((e) => {
|
|
2858
3183
|
e instanceof HTMLElement && e.dataset.breezeToastId !== void 0 && !e.hidden && a?.observe(e);
|
|
2859
3184
|
});
|
|
@@ -2871,11 +3196,11 @@ function dr({ children: e, limit: t }) {
|
|
|
2871
3196
|
D
|
|
2872
3197
|
]), i(() => C, [C]);
|
|
2873
3198
|
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));
|
|
2874
|
-
return /* @__PURE__ */ m(
|
|
3199
|
+
return /* @__PURE__ */ m(Cr, {
|
|
2875
3200
|
value: u,
|
|
2876
|
-
children: /* @__PURE__ */ h(
|
|
3201
|
+
children: /* @__PURE__ */ h(Sr, {
|
|
2877
3202
|
value: x,
|
|
2878
|
-
children: [e, r &&
|
|
3203
|
+
children: [e, r && We(/* @__PURE__ */ m("div", {
|
|
2879
3204
|
ref: s,
|
|
2880
3205
|
className: "breeze-toast-region",
|
|
2881
3206
|
"data-breeze-toast-region": "",
|
|
@@ -2888,11 +3213,11 @@ function dr({ children: e, limit: t }) {
|
|
|
2888
3213
|
"aria-hidden": n ? "true" : void 0,
|
|
2889
3214
|
"data-breeze-toast-id": e,
|
|
2890
3215
|
hidden: n,
|
|
2891
|
-
children: /* @__PURE__ */ m(
|
|
3216
|
+
children: /* @__PURE__ */ m(wr, {
|
|
2892
3217
|
value: y.current.get(e) ?? null,
|
|
2893
|
-
children: /* @__PURE__ */ m(
|
|
3218
|
+
children: /* @__PURE__ */ m(Cr, {
|
|
2894
3219
|
value: u && !n,
|
|
2895
|
-
children: /* @__PURE__ */ m(
|
|
3220
|
+
children: /* @__PURE__ */ m(Tr, { children: t })
|
|
2896
3221
|
})
|
|
2897
3222
|
})
|
|
2898
3223
|
}, e);
|
|
@@ -2901,14 +3226,14 @@ function dr({ children: e, limit: t }) {
|
|
|
2901
3226
|
})
|
|
2902
3227
|
});
|
|
2903
3228
|
}
|
|
2904
|
-
function
|
|
2905
|
-
let e = r(
|
|
2906
|
-
if (e === null) throw Error(
|
|
3229
|
+
function Dr() {
|
|
3230
|
+
let e = r(Sr);
|
|
3231
|
+
if (e === null) throw Error(yr);
|
|
2907
3232
|
return e;
|
|
2908
3233
|
}
|
|
2909
3234
|
//#endregion
|
|
2910
3235
|
//#region src/primitives/Toggle/Toggle.tsx
|
|
2911
|
-
var
|
|
3236
|
+
var Or = {
|
|
2912
3237
|
base: { toggle: "breeze:inline-grid breeze:items-center breeze:justify-center breeze:rounded-breeze-ctl breeze:border breeze:border-solid breeze:border-breeze-line-strong breeze:bg-breeze-surface breeze:font-breeze-sans breeze:font-semibold breeze:text-breeze-ink breeze:cursor-pointer breeze:select-none breeze:outline-offset-2 breeze:data-[hovered]:bg-breeze-sunken breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:data-[disabled]:cursor-not-allowed breeze:data-[disabled]:opacity-60 breeze:any-pointer-coarse:min-block-breeze-tap breeze:any-pointer-coarse:min-inline-breeze-tap" },
|
|
2913
3238
|
compound: {},
|
|
2914
3239
|
size: {
|
|
@@ -2919,15 +3244,15 @@ var pr = {
|
|
|
2919
3244
|
state: { pressed: "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" },
|
|
2920
3245
|
variant: {}
|
|
2921
3246
|
};
|
|
2922
|
-
function
|
|
2923
|
-
return /* @__PURE__ */ m(
|
|
3247
|
+
function kr({ "aria-describedby": e, "aria-label": t, "aria-labelledby": n, children: r, defaultPressed: i, disabled: a = !1, id: o, loading: s = !1, onChange: c, pressed: l, ref: u, size: d = "md" }) {
|
|
3248
|
+
return /* @__PURE__ */ m(on, {
|
|
2924
3249
|
"aria-describedby": e,
|
|
2925
3250
|
"aria-label": t,
|
|
2926
3251
|
"aria-labelledby": n,
|
|
2927
3252
|
className: [
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
3253
|
+
Or.base.toggle,
|
|
3254
|
+
Or.size[d],
|
|
3255
|
+
Or.state.pressed
|
|
2931
3256
|
].join(" "),
|
|
2932
3257
|
defaultPressed: i,
|
|
2933
3258
|
disabled: a,
|
|
@@ -2941,7 +3266,7 @@ function mr({ "aria-describedby": e, "aria-label": t, "aria-labelledby": n, chil
|
|
|
2941
3266
|
}
|
|
2942
3267
|
//#endregion
|
|
2943
3268
|
//#region src/primitives/ToggleGroup/ToggleGroup.tsx
|
|
2944
|
-
var
|
|
3269
|
+
var Ar = {
|
|
2945
3270
|
base: {
|
|
2946
3271
|
description: "breeze:text-breeze-2xs breeze:font-normal breeze:leading-breeze-snug breeze:text-breeze-ink-3",
|
|
2947
3272
|
group: "breeze:inline-flex breeze:items-center breeze:gap-breeze-1 breeze:rounded-breeze-ctl breeze:bg-breeze-sunken breeze:p-breeze-1 breeze:font-breeze-sans",
|
|
@@ -2959,8 +3284,8 @@ var hr = {
|
|
|
2959
3284
|
state: { selected: "breeze:data-[selected]:border-breeze-line-strong breeze:data-[selected]:bg-breeze-surface breeze:data-[selected]:text-breeze-ink breeze:forced-colors:data-[selected]:outline-2 breeze:forced-colors:data-[selected]:outline-offset-2" },
|
|
2960
3285
|
variant: {}
|
|
2961
3286
|
};
|
|
2962
|
-
function
|
|
2963
|
-
let { getMessageLocale: f, messages: g } =
|
|
3287
|
+
function jr({ "aria-describedby": e, "aria-label": t, defaultSelected: n, disabled: r = !1, getItem: i, id: a, items: o, loading: s = !1, onChange: c, selected: u, size: d = "md" }) {
|
|
3288
|
+
let { getMessageLocale: f, messages: g } = B(), [_, v] = l(() => n == null ? null : i(n).id), y = o.map((e) => ({
|
|
2964
3289
|
descriptor: i(e),
|
|
2965
3290
|
item: e
|
|
2966
3291
|
})), b = _;
|
|
@@ -2968,18 +3293,18 @@ function gr({ "aria-describedby": e, "aria-label": t, defaultSelected: n, disabl
|
|
|
2968
3293
|
/* @__PURE__ */ h("fieldset", {
|
|
2969
3294
|
"aria-describedby": e,
|
|
2970
3295
|
"aria-busy": s || void 0,
|
|
2971
|
-
className: `${
|
|
3296
|
+
className: `${Ar.base.group} breeze:border-0 breeze:m-0 breeze:min-inline-size-0`,
|
|
2972
3297
|
disabled: r,
|
|
2973
3298
|
id: a,
|
|
2974
3299
|
children: [/* @__PURE__ */ m("legend", {
|
|
2975
3300
|
className: "breeze:sr-only",
|
|
2976
3301
|
children: t
|
|
2977
|
-
}), y.map(({ descriptor: e, item: t }) => /* @__PURE__ */ m(
|
|
3302
|
+
}), y.map(({ descriptor: e, item: t }) => /* @__PURE__ */ m(on, {
|
|
2978
3303
|
announceLoading: !1,
|
|
2979
3304
|
className: [
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
3305
|
+
Ar.base.item,
|
|
3306
|
+
Ar.size[d],
|
|
3307
|
+
Ar.state.selected
|
|
2983
3308
|
].join(" "),
|
|
2984
3309
|
disabled: r || e.disabled === !0,
|
|
2985
3310
|
loading: s,
|
|
@@ -2988,23 +3313,23 @@ function gr({ "aria-describedby": e, "aria-label": t, defaultSelected: n, disabl
|
|
|
2988
3313
|
},
|
|
2989
3314
|
pressed: b === e.id,
|
|
2990
3315
|
children: /* @__PURE__ */ h("span", {
|
|
2991
|
-
className:
|
|
3316
|
+
className: Ar.base.optionDetails,
|
|
2992
3317
|
children: [
|
|
2993
|
-
e.icon && /* @__PURE__ */ m(
|
|
3318
|
+
e.icon && /* @__PURE__ */ m(V, {
|
|
2994
3319
|
name: e.icon,
|
|
2995
3320
|
size: "sm"
|
|
2996
3321
|
}),
|
|
2997
3322
|
/* @__PURE__ */ h("span", {
|
|
2998
|
-
className:
|
|
3323
|
+
className: Ar.base.optionContent,
|
|
2999
3324
|
children: [/* @__PURE__ */ m("span", {
|
|
3000
|
-
className:
|
|
3325
|
+
className: Ar.base.label,
|
|
3001
3326
|
children: e.label
|
|
3002
3327
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
3003
|
-
className:
|
|
3328
|
+
className: Ar.base.description,
|
|
3004
3329
|
children: e.description
|
|
3005
3330
|
})]
|
|
3006
3331
|
}),
|
|
3007
|
-
e.badge && /* @__PURE__ */ m(
|
|
3332
|
+
e.badge && /* @__PURE__ */ m(qt, {
|
|
3008
3333
|
"aria-label": e.badge["aria-label"],
|
|
3009
3334
|
variant: e.badge.variant,
|
|
3010
3335
|
children: e.badge.children
|
|
@@ -3015,7 +3340,7 @@ function gr({ "aria-describedby": e, "aria-label": t, defaultSelected: n, disabl
|
|
|
3015
3340
|
}),
|
|
3016
3341
|
s && /* @__PURE__ */ m("span", {
|
|
3017
3342
|
className: "breeze:sr-only",
|
|
3018
|
-
children: /* @__PURE__ */ m(
|
|
3343
|
+
children: /* @__PURE__ */ m(U, { label: g.loading })
|
|
3019
3344
|
}),
|
|
3020
3345
|
/* @__PURE__ */ m("output", {
|
|
3021
3346
|
"aria-live": "polite",
|
|
@@ -3027,7 +3352,7 @@ function gr({ "aria-describedby": e, "aria-label": t, defaultSelected: n, disabl
|
|
|
3027
3352
|
}
|
|
3028
3353
|
//#endregion
|
|
3029
3354
|
//#region src/provider/en-GB.ts
|
|
3030
|
-
var
|
|
3355
|
+
var $ = {
|
|
3031
3356
|
appearance: "Appearance",
|
|
3032
3357
|
appearanceAutomatic: "Auto",
|
|
3033
3358
|
appearanceDark: "Dark",
|
|
@@ -3035,16 +3360,18 @@ var _r = {
|
|
|
3035
3360
|
close: "Close",
|
|
3036
3361
|
loading: "Loading",
|
|
3037
3362
|
noItemsToDisplay: "No items to display.",
|
|
3363
|
+
primaryNavigation: "Primary navigation",
|
|
3038
3364
|
required: "Required",
|
|
3039
|
-
selectDate: "Select a date"
|
|
3365
|
+
selectDate: "Select a date",
|
|
3366
|
+
skipToMain: "Skip to main content"
|
|
3040
3367
|
};
|
|
3041
3368
|
//#endregion
|
|
3042
3369
|
//#region src/provider/BreezeProvider.tsx
|
|
3043
|
-
function
|
|
3370
|
+
function Mr(e, t) {
|
|
3044
3371
|
return e === "automatic" ? t ? "dark" : "light" : e;
|
|
3045
3372
|
}
|
|
3046
|
-
function
|
|
3047
|
-
let { direction: t, locale: n } =
|
|
3373
|
+
function Nr({ children: e }) {
|
|
3374
|
+
let { direction: t, locale: n } = Oe();
|
|
3048
3375
|
return /* @__PURE__ */ m("div", {
|
|
3049
3376
|
"data-breeze-root": "",
|
|
3050
3377
|
dir: t,
|
|
@@ -3052,8 +3379,8 @@ function yr({ children: e }) {
|
|
|
3052
3379
|
children: e
|
|
3053
3380
|
});
|
|
3054
3381
|
}
|
|
3055
|
-
function
|
|
3056
|
-
let [h] = l(() => typeof window > "u" || !window.matchMedia ? null : window.matchMedia("(prefers-color-scheme: dark)")), [g, _] = l(() => h?.matches ?? !1), [v, y] = l(r), b = e ?? v, x =
|
|
3382
|
+
function Pr({ appearance: e, children: t, defaultAppearance: r = "automatic", locale: a, messages: c, onAppearanceChange: u, portalContainer: d, router: f, toastLimit: p = 3 }) {
|
|
3383
|
+
let [h] = l(() => typeof window > "u" || !window.matchMedia ? null : window.matchMedia("(prefers-color-scheme: dark)")), [g, _] = l(() => h?.matches ?? !1), [v, y] = l(r), b = e ?? v, x = Mr(b, g);
|
|
3057
3384
|
i(() => {
|
|
3058
3385
|
if (!h) return;
|
|
3059
3386
|
_(h.matches);
|
|
@@ -3070,23 +3397,25 @@ function br({ appearance: e, children: t, defaultAppearance: r = "automatic", lo
|
|
|
3070
3397
|
let S = n((t) => {
|
|
3071
3398
|
e === void 0 && y(t), u?.(t);
|
|
3072
3399
|
}, [e, u]), C = n((e) => c?.[e] === void 0 ? "en-GB" : a, [a, c]);
|
|
3073
|
-
return /* @__PURE__ */ m(
|
|
3400
|
+
return /* @__PURE__ */ m(De, {
|
|
3074
3401
|
locale: a,
|
|
3075
|
-
children: /* @__PURE__ */ m(
|
|
3402
|
+
children: /* @__PURE__ */ m(Xe, {
|
|
3076
3403
|
value: s(() => ({
|
|
3077
3404
|
appearance: b,
|
|
3078
3405
|
getMessageLocale: C,
|
|
3079
3406
|
locale: a,
|
|
3080
3407
|
messages: {
|
|
3081
|
-
appearance: c?.appearance ??
|
|
3082
|
-
appearanceAutomatic: c?.appearanceAutomatic ??
|
|
3083
|
-
appearanceDark: c?.appearanceDark ??
|
|
3084
|
-
appearanceLight: c?.appearanceLight ??
|
|
3085
|
-
close: c?.close ??
|
|
3086
|
-
loading: c?.loading ??
|
|
3087
|
-
noItemsToDisplay: c?.noItemsToDisplay ??
|
|
3088
|
-
|
|
3089
|
-
|
|
3408
|
+
appearance: c?.appearance ?? $.appearance,
|
|
3409
|
+
appearanceAutomatic: c?.appearanceAutomatic ?? $.appearanceAutomatic,
|
|
3410
|
+
appearanceDark: c?.appearanceDark ?? $.appearanceDark,
|
|
3411
|
+
appearanceLight: c?.appearanceLight ?? $.appearanceLight,
|
|
3412
|
+
close: c?.close ?? $.close,
|
|
3413
|
+
loading: c?.loading ?? $.loading,
|
|
3414
|
+
noItemsToDisplay: c?.noItemsToDisplay ?? $.noItemsToDisplay,
|
|
3415
|
+
primaryNavigation: c?.primaryNavigation ?? $.primaryNavigation,
|
|
3416
|
+
required: c?.required ?? $.required,
|
|
3417
|
+
selectDate: c?.selectDate ?? $.selectDate,
|
|
3418
|
+
skipToMain: c?.skipToMain ?? $.skipToMain
|
|
3090
3419
|
},
|
|
3091
3420
|
resolvedAppearance: x,
|
|
3092
3421
|
router: f,
|
|
@@ -3100,18 +3429,18 @@ function br({ appearance: e, children: t, defaultAppearance: r = "automatic", lo
|
|
|
3100
3429
|
f,
|
|
3101
3430
|
S
|
|
3102
3431
|
]),
|
|
3103
|
-
children: /* @__PURE__ */ m(
|
|
3432
|
+
children: /* @__PURE__ */ m(dn, {
|
|
3104
3433
|
locale: a,
|
|
3105
3434
|
portalContainer: d,
|
|
3106
|
-
children: /* @__PURE__ */ m(
|
|
3435
|
+
children: /* @__PURE__ */ m(Er, {
|
|
3107
3436
|
limit: p,
|
|
3108
|
-
children: /* @__PURE__ */ m(
|
|
3437
|
+
children: /* @__PURE__ */ m(Nr, { children: t })
|
|
3109
3438
|
})
|
|
3110
3439
|
})
|
|
3111
3440
|
})
|
|
3112
3441
|
});
|
|
3113
3442
|
}
|
|
3114
3443
|
//#endregion
|
|
3115
|
-
export {
|
|
3444
|
+
export { pt as AppearanceControl, St as ApplicationShell, qt as Badge, Pr as BreezeProvider, Vt as Button, Zt as Calendar, $t as Card, rn as Checkbox, cn as Chip, En as ComboBox, On as Container, Pn as DatePicker, Bn as Dialog, Vn as Drawer, wt as FormActions, Pt as FormSection, Un as Grid, V as Icon, Ut as IconTile, Gn as Inline, qn as Link, Zn as Menu, Qn as NumberField, zt as PageHeader, $n as Popover, cr as RowList, pr as Select, hr as Separator, U as Skeleton, bt as SkipLink, Lt as Stack, Gt as StatePanel, gr as TextField, Tr as Toast, kr as Toggle, jr as ToggleGroup, W as Typography, Dt as VisuallyHidden, st as startViewTransition, Dr as useToast, lt as useViewTransitionParticipant };
|
|
3116
3445
|
|
|
3117
3446
|
//# sourceMappingURL=index.js.map
|