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