@motech-development/breeze-ui 4.6.0 → 4.6.1

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