@motech-development/breeze-ui 4.4.0 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/lib/index.d.ts +11 -0
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +1620 -369
  4. package/lib/index.js.map +1 -1
  5. package/lib/primitives/Checkbox/Checkbox.d.ts +54 -0
  6. package/lib/primitives/Checkbox/Checkbox.d.ts.map +1 -0
  7. package/lib/primitives/Collection/CollectionPopover.d.ts +15 -0
  8. package/lib/primitives/Collection/CollectionPopover.d.ts.map +1 -0
  9. package/lib/primitives/Collection/DescriptorContent.d.ts +9 -0
  10. package/lib/primitives/Collection/DescriptorContent.d.ts.map +1 -0
  11. package/lib/primitives/Collection/DescriptorOption.d.ts +7 -0
  12. package/lib/primitives/Collection/DescriptorOption.d.ts.map +1 -0
  13. package/lib/primitives/Collection/collection.styles.d.ts +19 -0
  14. package/lib/primitives/Collection/collection.styles.d.ts.map +1 -0
  15. package/lib/primitives/Collection/item.types.d.ts +18 -0
  16. package/lib/primitives/Collection/item.types.d.ts.map +1 -0
  17. package/lib/primitives/ComboBox/ComboBox.d.ts +62 -0
  18. package/lib/primitives/ComboBox/ComboBox.d.ts.map +1 -0
  19. package/lib/primitives/Field/field.presentation.d.ts +17 -0
  20. package/lib/primitives/Field/field.presentation.d.ts.map +1 -0
  21. package/lib/primitives/Field/field.styles.d.ts +20 -0
  22. package/lib/primitives/Field/field.styles.d.ts.map +1 -0
  23. package/lib/primitives/NumberField/NumberField.d.ts +66 -0
  24. package/lib/primitives/NumberField/NumberField.d.ts.map +1 -0
  25. package/lib/primitives/Select/Select.d.ts +59 -0
  26. package/lib/primitives/Select/Select.d.ts.map +1 -0
  27. package/lib/primitives/TextField/TextField.d.ts +61 -0
  28. package/lib/primitives/TextField/TextField.d.ts.map +1 -0
  29. package/lib/styles.css +1 -1
  30. package/package.json +2 -1
package/lib/index.js CHANGED
@@ -5,24 +5,43 @@ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
5
5
  import { Button as g } from "react-aria-components/Button";
6
6
  import { ProgressBarContext as _ } from "react-aria-components/ProgressBar";
7
7
  import { useSlottedContext as v } from "react-aria-components/slots";
8
- import { Dialog as y } from "react-aria-components/Dialog";
9
- import { Modal as b, ModalOverlay as x } from "react-aria-components/Modal";
10
- import { Popover as S } from "react-aria-components/Popover";
11
- import { UNSAFE_PortalProvider as C } from "react-aria/PortalProvider";
12
- import { I18nProvider as w, useLocale as T } from "react-aria-components/I18nProvider";
13
- import { ArrowDownLeft as E, ArrowUpRight as D, Bell as ee, Building2 as te, CalendarDays as ne, Camera as re, Check as O, ChevronDown as k, ChevronLeft as A, ChevronRight as j, Clock3 as ie, Download as M, Ellipsis as ae, FileText as oe, House as se, List as N, LockKeyhole as P, LogOut as F, Plus as I, Settings as ce, Trash2 as le, TriangleAlert as L, Upload as R, Users as ue, X as z } from "lucide-react";
14
- import { createPortal as B } from "react-dom";
15
- import { parseDate as V } from "@internationalized/date";
8
+ import { useObjectRef as y } from "react-aria/useObjectRef";
9
+ import { CheckboxButton as b, CheckboxField as x } from "react-aria-components/Checkbox";
10
+ import { FieldError as S } from "react-aria-components/FieldError";
11
+ import { Label as C } from "react-aria-components/Label";
12
+ import { Text as w } from "react-aria-components/Text";
13
+ import { ComboBox as T, ComboBoxStateContext as E, useFilter as D } from "react-aria-components/ComboBox";
14
+ import { Group as O } from "react-aria-components/Group";
15
+ import { Input as k } from "react-aria-components/Input";
16
+ import { ListBox as A, ListBoxItem as j } from "react-aria-components/ListBox";
17
+ import { createPortal as M, flushSync as N } from "react-dom";
18
+ 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";
22
+ import { Dialog as ge } from "react-aria-components/Dialog";
23
+ import { Modal as _e, ModalOverlay as ve } from "react-aria-components/Modal";
24
+ 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";
16
35
  //#region src/provider/BreezeContext.ts
17
- var H = n(null);
18
- function U() {
19
- let e = a(H);
36
+ var je = n(null);
37
+ function q() {
38
+ let e = a(je);
20
39
  if (e === null) throw Error("Breeze components must be rendered within BreezeProvider.");
21
40
  return e;
22
41
  }
23
42
  //#endregion
24
43
  //#region src/patterns/AppearanceControl/AppearanceControl.tsx
25
- var W = {
44
+ var Me = {
26
45
  base: {
27
46
  control: "breeze:flex breeze:items-center breeze:gap-breeze-2 breeze:font-breeze-sans",
28
47
  group: "breeze:flex breeze:items-center breeze:gap-breeze-2",
@@ -33,7 +52,7 @@ var W = {
33
52
  size: {},
34
53
  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" },
35
54
  variant: {}
36
- }, de = [
55
+ }, Ne = [
37
56
  {
38
57
  message: "appearanceLight",
39
58
  value: "light"
@@ -47,30 +66,30 @@ var W = {
47
66
  value: "dark"
48
67
  }
49
68
  ];
50
- function fe(e) {
51
- return de.some((t) => t.value === e);
69
+ function Pe(e) {
70
+ return Ne.some((t) => t.value === e);
52
71
  }
53
- function pe() {
54
- let { appearance: n, getMessageLocale: r, messages: i, setAppearance: a } = U();
72
+ function Fe() {
73
+ let { appearance: n, getMessageLocale: r, messages: i, setAppearance: a } = q();
55
74
  return /* @__PURE__ */ h("div", {
56
- className: W.base.control,
75
+ className: Me.base.control,
57
76
  children: [/* @__PURE__ */ m("span", {
58
- className: W.base.label,
77
+ className: Me.base.label,
59
78
  lang: r("appearance"),
60
79
  children: i.appearance
61
80
  }), /* @__PURE__ */ m(t, {
62
81
  "aria-label": i.appearance,
63
- className: W.base.group,
82
+ className: Me.base.group,
64
83
  disallowEmptySelection: !0,
65
84
  lang: r("appearance"),
66
85
  onSelectionChange: (e) => {
67
86
  let [t] = e;
68
- fe(t) && a(t);
87
+ Pe(t) && a(t);
69
88
  },
70
89
  selectedKeys: [n],
71
90
  selectionMode: "single",
72
- children: de.map((t) => /* @__PURE__ */ m(e, {
73
- className: [W.base.option, W.state.selected].join(" "),
91
+ children: Ne.map((t) => /* @__PURE__ */ m(e, {
92
+ className: [Me.base.option, Me.state.selected].join(" "),
74
93
  id: t.value,
75
94
  lang: r(t.message),
76
95
  children: i[t.message]
@@ -80,7 +99,7 @@ function pe() {
80
99
  }
81
100
  //#endregion
82
101
  //#region src/primitives/Skeleton/Skeleton.tsx
83
- var G = {
102
+ var Ie = {
84
103
  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]" },
85
104
  compound: {},
86
105
  size: {},
@@ -91,37 +110,37 @@ var G = {
91
110
  text: "breeze:block-size-breeze-3 breeze:inline-size-full breeze:rounded-breeze-xs"
92
111
  }
93
112
  };
94
- function me({ blockSize: e, inlineSize: t, label: n, shape: r = "text" }) {
95
- let { getMessageLocale: i, messages: a } = U(), o = n?.trim() || void 0, s = e ?? t ?? "0.75rem", c = {
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 = {
96
115
  blockSize: r === "circle" ? s : e,
97
116
  inlineSize: r === "circle" ? s : t
98
117
  };
99
118
  return /* @__PURE__ */ m("progress", {
100
119
  "aria-hidden": o === void 0 || void 0,
101
120
  "aria-label": o,
102
- className: [G.base.skeleton, G.variant[r]].join(" "),
121
+ className: [Ie.base.skeleton, Ie.variant[r]].join(" "),
103
122
  lang: o === a.loading.trim() ? i("loading") : void 0,
104
123
  style: c
105
124
  });
106
125
  }
107
126
  //#endregion
108
127
  //#region src/primitives/VisuallyHidden/VisuallyHidden.tsx
109
- var he = {
128
+ var Le = {
110
129
  base: { hidden: "breeze:sr-only" },
111
130
  compound: {},
112
131
  size: {},
113
132
  state: {},
114
133
  variant: {}
115
134
  };
116
- function ge({ children: e }) {
135
+ function Re({ children: e }) {
117
136
  return /* @__PURE__ */ m("span", {
118
- className: he.base.hidden,
137
+ className: Le.base.hidden,
119
138
  children: e
120
139
  });
121
140
  }
122
141
  //#endregion
123
142
  //#region src/primitives/Badge/Badge.tsx
124
- var K = {
143
+ var ze = {
125
144
  base: {
126
145
  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",
127
146
  content: "breeze:[grid-area:1/1]",
@@ -138,29 +157,29 @@ var K = {
138
157
  warning: "breeze:bg-breeze-warn-soft breeze:text-breeze-warn"
139
158
  }
140
159
  };
141
- function _e({ "aria-label": e, children: t, loading: n = !1, variant: r = "neutral" }) {
142
- let { messages: i } = U(), a = e?.trim() || void 0, o;
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;
143
162
  return n ? o = /* @__PURE__ */ m("span", {
144
- className: K.base.skeleton,
145
- children: /* @__PURE__ */ m(me, {
163
+ className: ze.base.skeleton,
164
+ children: /* @__PURE__ */ m(J, {
146
165
  blockSize: 8,
147
166
  inlineSize: "100%",
148
167
  label: i.loading,
149
168
  shape: "rectangle"
150
169
  })
151
- }) : a !== void 0 && (o = /* @__PURE__ */ m(ge, { children: a })), /* @__PURE__ */ h("span", {
170
+ }) : a !== void 0 && (o = /* @__PURE__ */ m(Re, { children: a })), /* @__PURE__ */ h("span", {
152
171
  "aria-busy": n || void 0,
153
- className: [K.base.badge, K.variant[r]].join(" "),
172
+ className: [ze.base.badge, ze.variant[r]].join(" "),
154
173
  children: [/* @__PURE__ */ m("span", {
155
174
  "aria-hidden": n || a !== void 0 ? !0 : void 0,
156
- className: [K.base.content, n && K.state.contentLoading].filter(Boolean).join(" "),
175
+ className: [ze.base.content, n && ze.state.contentLoading].filter(Boolean).join(" "),
157
176
  children: t
158
177
  }), o]
159
178
  });
160
179
  }
161
180
  //#endregion
162
181
  //#region src/primitives/Button/Button.tsx
163
- var q = {
182
+ var Y = {
164
183
  base: {
165
184
  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",
166
185
  label: "breeze:[grid-area:1/1]",
@@ -190,23 +209,23 @@ var q = {
190
209
  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"
191
210
  }
192
211
  };
193
- function ve() {
194
- let e = v(_), { getMessageLocale: t, messages: n } = U();
212
+ function Ve() {
213
+ let e = v(_), { getMessageLocale: t, messages: n } = q();
195
214
  return /* @__PURE__ */ m("progress", {
196
215
  "aria-label": n.loading,
197
- className: q.state.loadingStatus,
216
+ className: Y.state.loadingStatus,
198
217
  id: e?.id,
199
218
  lang: t("loading")
200
219
  });
201
220
  }
202
- function ye({ "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" }) {
203
- U();
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();
204
223
  let C = [
205
- q.base.button,
206
- q.variant[S],
207
- q.size[y],
208
- c && q.state.disabled,
209
- d && q.state.loading
224
+ Y.base.button,
225
+ Y.variant[S],
226
+ Y.size[y],
227
+ c && Y.state.disabled,
228
+ d && Y.state.loading
210
229
  ].filter(Boolean).join(" ");
211
230
  return /* @__PURE__ */ h(g, {
212
231
  "aria-controls": e,
@@ -232,18 +251,18 @@ function ye({ "aria-controls": e, "aria-describedby": t, "aria-expanded": n, "ar
232
251
  type: b,
233
252
  value: x,
234
253
  children: [/* @__PURE__ */ m("span", {
235
- className: [q.base.label, d && q.state.loadingLabel].filter(Boolean).join(" "),
254
+ className: [Y.base.label, d && Y.state.loadingLabel].filter(Boolean).join(" "),
236
255
  children: s
237
- }), d && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(ve, {}), /* @__PURE__ */ m("span", {
256
+ }), d && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(Ve, {}), /* @__PURE__ */ m("span", {
238
257
  "aria-hidden": "true",
239
- className: [q.base.skeleton, q.compound.loading[S]].join(" "),
258
+ className: [Y.base.skeleton, Y.compound.loading[S]].join(" "),
240
259
  "data-breeze-skeleton": ""
241
260
  })] })]
242
261
  });
243
262
  }
244
263
  //#endregion
245
264
  //#region src/primitives/layout.accessibility.ts
246
- function J(e, t) {
265
+ function Ue(e, t) {
247
266
  let n = e?.trim() || void 0;
248
267
  return {
249
268
  accessibleLabel: n,
@@ -252,7 +271,7 @@ function J(e, t) {
252
271
  }
253
272
  //#endregion
254
273
  //#region src/primitives/Card/Card.tsx
255
- var be = {
274
+ var We = {
256
275
  base: { card: "breeze:min-inline-size-0 breeze:rounded-breeze-panel breeze:border breeze:border-solid breeze:border-breeze-line breeze:shadow-breeze-panel" },
257
276
  compound: {},
258
277
  size: {
@@ -272,47 +291,149 @@ var be = {
272
291
  surface: "breeze:bg-breeze-surface"
273
292
  }
274
293
  };
275
- function xe({ "aria-label": e, children: t, clipped: n = !0, element: i = "div", padding: a = 4, variant: o = "surface" }) {
276
- let { accessibleLabel: s, role: c } = J(e, i);
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);
277
296
  return r(i, {
278
297
  "aria-label": s,
279
298
  className: [
280
- be.base.card,
281
- be.variant[o],
282
- be.size[a],
283
- n && be.state.clipped
299
+ We.base.card,
300
+ We.variant[o],
301
+ We.size[a],
302
+ n && We.state.clipped
284
303
  ].filter(Boolean).join(" "),
285
304
  role: c
286
305
  }, t);
287
306
  }
288
307
  //#endregion
289
- //#region src/primitives/Container/Container.tsx
290
- var Se = {
291
- base: { container: "breeze:mx-auto breeze:inline-size-full breeze:min-inline-size-0" },
308
+ //#region src/primitives/Field/field.styles.ts
309
+ var X = {
310
+ base: {
311
+ control: "breeze:relative breeze:inline-grid breeze:min-inline-size-0 breeze:inline-size-full",
312
+ description: "breeze:m-0 breeze:text-breeze-xs breeze:font-normal breeze:leading-breeze-snug breeze:text-breeze-ink-3",
313
+ error: "breeze:m-0 breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug breeze:text-breeze-danger",
314
+ input: "breeze:min-block-breeze-md breeze:any-pointer-coarse:min-block-breeze-tap breeze:min-inline-size-0 breeze:inline-size-full breeze:rounded-breeze-ctl breeze:border breeze:border-solid breeze:border-breeze-line-strong breeze:bg-breeze-surface breeze:ps-breeze-3 breeze:pe-breeze-3 breeze:py-breeze-2 breeze:font-breeze-sans breeze:text-breeze-sm breeze:leading-breeze-snug breeze:text-breeze-ink breeze:outline-offset-2 breeze:placeholder:text-breeze-ink-3 breeze:data-[hovered]:border-breeze-brand breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:data-[invalid]:border-breeze-danger breeze:disabled:cursor-not-allowed breeze:disabled:bg-breeze-sunken breeze:disabled:opacity-60 breeze:read-only:cursor-default breeze:read-only:bg-breeze-sunken",
315
+ label: "breeze:m-0 breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug breeze:text-breeze-ink",
316
+ root: "breeze:flex breeze:min-inline-size-0 breeze:flex-col breeze:gap-breeze-2",
317
+ skeleton: "breeze:pointer-events-none breeze:absolute breeze:[inset-block:0] breeze:[inset-inline:0]"
318
+ },
292
319
  compound: {},
293
- size: {
294
- page: "breeze:max-inline-breeze-page",
295
- prose: "breeze:max-inline-breeze-prose",
296
- read: "breeze:max-inline-breeze-read"
320
+ size: {},
321
+ state: { loadingInput: "breeze:!opacity-0" },
322
+ variant: {}
323
+ };
324
+ function Z(...e) {
325
+ return e.filter(Boolean).join(" ");
326
+ }
327
+ //#endregion
328
+ //#region src/primitives/Field/field.presentation.tsx
329
+ function Ke({ htmlFor: e, id: t, label: n, loading: r }) {
330
+ return /* @__PURE__ */ m(C, {
331
+ className: X.base.label,
332
+ htmlFor: e,
333
+ id: t,
334
+ children: r ? /* @__PURE__ */ m(J, {
335
+ blockSize: "1lh",
336
+ inlineSize: "12em",
337
+ shape: "rectangle"
338
+ }) : n
339
+ });
340
+ }
341
+ function qe({ description: e, descriptionId: t, error: n, errorId: r, loading: i }) {
342
+ return /* @__PURE__ */ h(p, { children: [e && /* @__PURE__ */ m(w, {
343
+ className: X.base.description,
344
+ id: t,
345
+ slot: "description",
346
+ children: i ? /* @__PURE__ */ m(J, {
347
+ blockSize: "1lh",
348
+ inlineSize: "12em",
349
+ shape: "rectangle"
350
+ }) : e
351
+ }), n && (i ? /* @__PURE__ */ m("span", {
352
+ "aria-hidden": "true",
353
+ className: X.base.error,
354
+ id: r,
355
+ children: /* @__PURE__ */ m(J, {
356
+ blockSize: "1lh",
357
+ inlineSize: "12em",
358
+ shape: "rectangle"
359
+ })
360
+ }) : /* @__PURE__ */ m(S, {
361
+ className: X.base.error,
362
+ id: r,
363
+ children: n
364
+ }))] });
365
+ }
366
+ //#endregion
367
+ //#region src/primitives/Checkbox/Checkbox.tsx
368
+ var Je = {
369
+ base: {
370
+ 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
+ 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",
372
+ label: "breeze:[grid-area:1/2]",
373
+ skeleton: "breeze:pointer-events-none breeze:[grid-area:1/2]",
374
+ skeletonIndicator: "breeze:pointer-events-none breeze:[grid-area:1/1] breeze:block-size-breeze-5 breeze:inline-size-breeze-5"
297
375
  },
298
- state: { padded: "breeze:ps-breeze-4 breeze:pe-breeze-4 breeze:breeze-md:ps-breeze-7 breeze:breeze-md:pe-breeze-7" },
376
+ compound: {},
377
+ size: {},
378
+ state: {},
299
379
  variant: {}
300
380
  };
301
- function Ce({ "aria-label": e, children: t, element: n = "div", padded: i = !0, width: a = "page" }) {
302
- let { accessibleLabel: o, role: s } = J(e, n);
303
- return r(n, {
304
- "aria-label": o,
305
- className: [
306
- Se.base.container,
307
- Se.size[a],
308
- i && Se.state.padded
309
- ].filter(Boolean).join(" "),
310
- role: s
311
- }, t);
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;
383
+ return /* @__PURE__ */ h(x, {
384
+ className: X.base.root,
385
+ defaultSelected: e,
386
+ form: i,
387
+ id: a,
388
+ inputRef: S,
389
+ "aria-label": s ? o : void 0,
390
+ isDisabled: T,
391
+ isInvalid: !s && w !== void 0,
392
+ isReadOnly: u,
393
+ isRequired: f,
394
+ isSelected: g,
395
+ name: c,
396
+ onChange: l,
397
+ value: _,
398
+ validationBehavior: "aria",
399
+ children: [/* @__PURE__ */ m(b, {
400
+ className: Je.base.control,
401
+ children: ({ isFocusVisible: e, isSelected: t }) => /* @__PURE__ */ h(p, { children: [s && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
402
+ "aria-hidden": "true",
403
+ className: Je.base.skeletonIndicator,
404
+ children: /* @__PURE__ */ m(J, {
405
+ blockSize: "100%",
406
+ inlineSize: "100%",
407
+ shape: "rectangle"
408
+ })
409
+ }), /* @__PURE__ */ m("span", {
410
+ className: Je.base.skeleton,
411
+ children: /* @__PURE__ */ m(J, {
412
+ blockSize: "1lh",
413
+ inlineSize: "12em",
414
+ label: v.loading,
415
+ shape: "rectangle"
416
+ })
417
+ })] }), !s && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
418
+ "aria-hidden": "true",
419
+ className: Je.base.indicator,
420
+ "data-focus-visible": e || void 0,
421
+ "data-selected": t || void 0,
422
+ children: t ? "✓" : ""
423
+ }), /* @__PURE__ */ m("span", {
424
+ className: Je.base.label,
425
+ children: o
426
+ })] })] })
427
+ }), /* @__PURE__ */ m(qe, {
428
+ description: C,
429
+ error: w,
430
+ loading: s
431
+ })]
432
+ });
312
433
  }
313
434
  //#endregion
314
435
  //#region src/overlays/OverlayStack.ts
315
- function we() {
436
+ function Xe() {
316
437
  let e = [], t = /* @__PURE__ */ new Set(), n = () => t.forEach((e) => e());
317
438
  return {
318
439
  getSnapshot: () => e,
@@ -328,15 +449,15 @@ function we() {
328
449
  })
329
450
  };
330
451
  }
331
- var Te = n(null);
332
- function Ee() {
333
- let e = a(Te);
452
+ var Ze = n(null);
453
+ function Qe() {
454
+ let e = a(Ze);
334
455
  if (!e) throw Error("Breeze components must be rendered within BreezeProvider.");
335
456
  return 100 + f(e.subscribe, e.getSnapshot, e.getSnapshot).length * 2;
336
457
  }
337
- var De = n(null);
338
- function Oe(e, t, n) {
339
- let r = a(Te), i = a(De), o = s();
458
+ var $e = n(null);
459
+ function et(e, t, n) {
460
+ let r = a(Ze), i = a($e), o = s();
340
461
  if (!r) throw Error("Breeze components must be rendered within BreezeProvider.");
341
462
  let l = f(r.subscribe, r.getSnapshot, r.getSnapshot), u = i?.id;
342
463
  c(() => () => r.remove(o), [o, r]), c(() => {
@@ -375,12 +496,12 @@ function Oe(e, t, n) {
375
496
  }
376
497
  //#endregion
377
498
  //#region src/overlays/OverlayProvider.tsx
378
- var ke = n(null), Ae = "BreezeProvider portalContainer must belong to the current document and light DOM.";
379
- function je({ children: e, portalContainer: t, locale: n }) {
380
- let { direction: r } = T(), [i] = d(we), [a, o] = d(null);
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);
381
502
  return c(() => {
382
503
  let e = t ?? document.body;
383
- if (e.ownerDocument !== document || e.getRootNode() !== document) throw Error(Ae);
504
+ if (e.ownerDocument !== document || e.getRootNode() !== document) throw Error(nt);
384
505
  let n = e.ownerDocument.createElement("div");
385
506
  return n.dataset.breezeRoot = "", n.dataset.breezePortal = "", e.append(n), o(n), () => n.remove();
386
507
  }, [t]), c(() => {
@@ -389,23 +510,725 @@ function je({ children: e, portalContainer: t, locale: n }) {
389
510
  r,
390
511
  a,
391
512
  n
392
- ]), /* @__PURE__ */ m(C, {
513
+ ]), /* @__PURE__ */ m(P, {
393
514
  getContainer: () => a,
394
- children: /* @__PURE__ */ m(Te, {
515
+ children: /* @__PURE__ */ m(Ze, {
395
516
  value: i,
396
- children: /* @__PURE__ */ m(ke, {
517
+ children: /* @__PURE__ */ m(tt, {
397
518
  value: a,
398
519
  children: e
399
520
  })
400
521
  })
401
522
  });
402
523
  }
403
- function Me() {
404
- return a(ke);
524
+ function it() {
525
+ return a(tt);
526
+ }
527
+ //#endregion
528
+ //#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) {
531
+ return typeof e == "object" && !!e && "nodeType" in e && typeof e.contains == "function";
532
+ }
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) => {
535
+ b.current = e, v(e !== null);
536
+ }, []);
537
+ return c(() => {
538
+ if (l && s.current && (s.current.ownerDocument !== document || s.current.getRootNode() !== document || l.ownerDocument !== document || l.getRootNode() !== document)) throw Error(at);
539
+ }), o(() => g(!0), []), c(() => {
540
+ 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 = () => {
542
+ i !== null && (clearTimeout(i), i = null);
543
+ }, o = () => {
544
+ a(), i = setTimeout(() => {
545
+ i = null, S.current = null;
546
+ }, 0);
547
+ }, c = (e) => {
548
+ n(e) && (a(), x.current = ot(e.target) ? e.target : null, S.current = null);
549
+ }, u = (t) => {
550
+ if (!n(t)) return;
551
+ let i = x.current, a = ot(t.target) ? t.target : null;
552
+ if (!e(a)) {
553
+ x.current = null;
554
+ return;
555
+ }
556
+ if (!e(i)) {
557
+ S.current = a, x.current = null, o();
558
+ return;
559
+ }
560
+ S.current = a, r(!1);
561
+ }, d = () => {
562
+ a(), x.current = null, S.current = null;
563
+ }, f = (n) => {
564
+ let i = ot(n.target) ? n.target : null;
565
+ e(i) && !t(S.current, i) && r(!1), a(), x.current = null, S.current = null;
566
+ };
567
+ 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), () => {
568
+ l.ownerDocument.removeEventListener("pointerdown", c, !0), l.ownerDocument.removeEventListener("pointerup", u, !0), l.ownerDocument.removeEventListener("pointercancel", d, !0), l.ownerDocument.removeEventListener("click", f, !0), a(), x.current = null, S.current = null;
569
+ };
570
+ }, [
571
+ l,
572
+ w.topmost,
573
+ r,
574
+ C,
575
+ s
576
+ ]), o(() => {
577
+ p ? y.current = !1 : n && !y.current && (y.current = !0, r(!1));
578
+ }, [
579
+ r,
580
+ p,
581
+ n
582
+ ]), /* @__PURE__ */ m(ee, {
583
+ className: `${t} breeze-popover`,
584
+ "data-breeze-interactive": w.interactive,
585
+ "data-breeze-overlay": "popover",
586
+ "data-breeze-topmost": w.topmost,
587
+ inert: !w.interactive,
588
+ isKeyboardDismissDisabled: !w.topmost,
589
+ isNonModal: !0,
590
+ isOpen: C,
591
+ onOpenChange: r,
592
+ placement: "bottom start",
593
+ shouldCloseOnInteractOutside: (e) => x.current === null && w.topmost && !s.current?.contains(e),
594
+ style: { zIndex: w.zIndex },
595
+ triggerRef: s,
596
+ ref: T,
597
+ children: e
598
+ });
599
+ }
600
+ //#endregion
601
+ //#region src/primitives/Collection/collection.styles.ts
602
+ var Q = {
603
+ base: {
604
+ badge: "breeze:ms-auto",
605
+ content: "breeze:flex breeze:min-inline-size-0 breeze:flex-1 breeze:flex-col breeze:gap-breeze-1",
606
+ description: "breeze:text-breeze-xs breeze:font-normal breeze:leading-breeze-snug breeze:text-breeze-ink-3",
607
+ item: "breeze:flex breeze:any-pointer-coarse:min-block-breeze-tap breeze:min-inline-size-0 breeze:items-start breeze:gap-breeze-2 breeze:rounded-breeze-sm breeze:ps-breeze-3 breeze:pe-breeze-3 breeze:py-breeze-2 breeze:font-breeze-sans breeze:text-breeze-sm breeze:leading-breeze-snug breeze:text-breeze-ink breeze:outline-offset-[-2px] breeze:data-[disabled]:cursor-not-allowed breeze:data-[disabled]:opacity-50 breeze:data-[focused]:bg-breeze-sunken breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:data-[hovered]:bg-breeze-sunken breeze:data-[selected]:bg-breeze-brand-soft breeze:data-[selected]:text-breeze-brand-text",
608
+ label: "breeze:font-medium",
609
+ listBox: "breeze:min-inline-size-0 breeze:outline-none",
610
+ popover: "breeze:min-inline-size-[var(--trigger-width)] breeze:max-inline-size-[calc(100vw-24px)] breeze:overflow-auto breeze:rounded-breeze-panel breeze:border breeze:border-solid breeze:border-breeze-line breeze:bg-breeze-surface breeze:p-breeze-1 breeze:shadow-breeze-overlay",
611
+ selectedIndicator: "breeze:ms-auto breeze:block-size-breeze-4 breeze:inline-size-breeze-4 breeze:shrink-0 breeze:text-breeze-brand-text"
612
+ },
613
+ compound: {},
614
+ size: {},
615
+ state: {},
616
+ variant: {}
617
+ }, ct = {
618
+ add: G,
619
+ back: V,
620
+ building: R,
621
+ calendar: re,
622
+ camera: ie,
623
+ check: z,
624
+ clock: ae,
625
+ close: he,
626
+ delete: de,
627
+ document: se,
628
+ download: U,
629
+ expand: B,
630
+ forward: H,
631
+ lock: le,
632
+ money: W,
633
+ moneyIn: ne,
634
+ moneyOut: I,
635
+ more: oe,
636
+ next: H,
637
+ notifications: L,
638
+ overview: ce,
639
+ people: me,
640
+ settings: K,
641
+ signOut: ue,
642
+ upload: pe,
643
+ warning: fe
644
+ }, lt = {
645
+ base: { icon: "breeze:block breeze:shrink-0" },
646
+ compound: {},
647
+ size: {
648
+ lg: "breeze:block-size-breeze-6 breeze:inline-size-breeze-6",
649
+ md: "breeze:block-size-breeze-5 breeze:inline-size-breeze-5",
650
+ sm: "breeze:block-size-breeze-4 breeze:inline-size-breeze-4"
651
+ },
652
+ state: { logicalDirection: "breeze:rtl:rotate-180" },
653
+ variant: {}
654
+ }, ut = /* @__PURE__ */ new Set([
655
+ "back",
656
+ "forward",
657
+ "next"
658
+ ]);
659
+ function dt({ label: e, name: t, size: n = "md" }) {
660
+ let r = ct[t], i = e?.trim() || void 0;
661
+ return /* @__PURE__ */ m(r, {
662
+ "aria-hidden": i === void 0 || void 0,
663
+ "aria-label": i,
664
+ className: [
665
+ lt.base.icon,
666
+ lt.size[n],
667
+ ut.has(t) && lt.state.logicalDirection
668
+ ].filter(Boolean).join(" "),
669
+ focusable: "false",
670
+ role: i === void 0 ? void 0 : "img",
671
+ strokeWidth: 1.75
672
+ });
673
+ }
674
+ //#endregion
675
+ //#region src/primitives/Collection/DescriptorContent.tsx
676
+ function ft({ descriptor: e, isSelected: t }) {
677
+ return /* @__PURE__ */ h(p, { children: [
678
+ e.icon && /* @__PURE__ */ m(dt, {
679
+ name: e.icon,
680
+ size: "sm"
681
+ }),
682
+ /* @__PURE__ */ h("span", {
683
+ className: Q.base.content,
684
+ children: [/* @__PURE__ */ m("span", {
685
+ className: Q.base.label,
686
+ children: e.label
687
+ }), e.description && /* @__PURE__ */ m("span", {
688
+ className: Q.base.description,
689
+ children: e.description
690
+ })]
691
+ }),
692
+ e.badge && /* @__PURE__ */ m("span", {
693
+ className: Q.base.badge,
694
+ children: /* @__PURE__ */ m(Be, {
695
+ "aria-label": e.badge["aria-label"],
696
+ variant: e.badge.variant,
697
+ children: e.badge.children
698
+ })
699
+ }),
700
+ /* @__PURE__ */ m("span", {
701
+ "aria-hidden": "true",
702
+ className: Q.base.selectedIndicator,
703
+ children: t && /* @__PURE__ */ m(dt, {
704
+ name: "check",
705
+ size: "sm"
706
+ })
707
+ })
708
+ ] });
709
+ }
710
+ //#endregion
711
+ //#region src/primitives/Collection/DescriptorOption.tsx
712
+ function pt({ descriptor: e }) {
713
+ return /* @__PURE__ */ m(j, {
714
+ className: Q.base.item,
715
+ id: e.id,
716
+ isDisabled: e.disabled,
717
+ textValue: e.label,
718
+ children: ({ isSelected: t }) => /* @__PURE__ */ m(ft, {
719
+ descriptor: e,
720
+ isSelected: t
721
+ })
722
+ });
723
+ }
724
+ //#endregion
725
+ //#region src/primitives/ComboBox/ComboBox.tsx
726
+ var mt = {
727
+ base: {
728
+ 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
+ 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",
730
+ 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",
731
+ skeleton: "breeze:pointer-events-none breeze:absolute breeze:[inset-block:0] breeze:[inset-inline:0]",
732
+ trigger: "breeze:inline-grid breeze:shrink-0 breeze:place-items-center breeze:border-0 breeze:bg-transparent breeze:pe-breeze-2 breeze:ps-breeze-2 breeze:text-breeze-ink-2 breeze:outline-none breeze:data-[focus-visible]:outline-2 breeze:data-[focus-visible]:outline-solid breeze:data-[focus-visible]:outline-breeze-brand breeze:disabled:cursor-not-allowed breeze:disabled:opacity-60 breeze:any-pointer-coarse:min-inline-breeze-tap"
733
+ },
734
+ compound: {},
735
+ size: {},
736
+ state: {
737
+ loadingGroup: "breeze:!bg-transparent breeze:!border-transparent breeze:!opacity-100 breeze:!overflow-visible",
738
+ loadingInput: "breeze:!opacity-0",
739
+ loadingTrigger: "breeze:!opacity-0",
740
+ readOnlyGroup: "breeze:bg-breeze-sunken"
741
+ },
742
+ variant: {}
743
+ };
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);
777
+ 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);
781
+ }
782
+ function wt(e, t, n) {
783
+ if (!(e == null || n && typeof e == "string")) return {
784
+ descriptor: t(e),
785
+ item: e
786
+ };
787
+ }
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;
790
+ }
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
+ };
805
+ }
806
+ function Dt({ getItem: e, items: t }) {
807
+ return /* @__PURE__ */ m(A, {
808
+ items: t,
809
+ children: (t) => /* @__PURE__ */ m(pt, { descriptor: e(t) })
810
+ });
811
+ }
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);
814
+ 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;
853
+ }, [
854
+ e,
855
+ 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
+ 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
935
+ });
936
+ }
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;
1013
+ o(() => {
1014
+ ae && (m(""), g(void 0), S.current = null);
1015
+ }, [
1016
+ ae,
1017
+ V?.id,
1018
+ V?.label
1019
+ ]);
1020
+ let G = (e = !1) => {
1021
+ m(""), g(void 0), S.current = null, e || (C.current = void 0), E.current = !1;
1022
+ }, K = (e) => {
1023
+ if (e) {
1024
+ E.current = !1;
1025
+ return;
1026
+ }
1027
+ if (f !== void 0 && !t && E.current && h !== void 0) {
1028
+ E.current = !1;
1029
+ return;
1030
+ }
1031
+ G(!0);
1032
+ }, de = (t) => {
1033
+ if (e.allowsCustomValue !== !0) {
1034
+ t === "" && f !== void 0 && a?.(null);
1035
+ return;
1036
+ }
1037
+ let n = t || null;
1038
+ f !== void 0 && (C.current = n), T.current = n, e.onChange?.(n);
1039
+ }, fe = (e) => {
1040
+ f === void 0 && (P.current = null, te.current = void 0), !(t && T.current !== void 0) && (e && f !== void 0 && !t && G(), e && a?.(null));
1041
+ }, pe = (e) => {
1042
+ if (!O.current) {
1043
+ if (s) {
1044
+ G();
1045
+ return;
1046
+ }
1047
+ if (Rt(e, w.current, f, R)) {
1048
+ w.current = null, G();
1049
+ return;
1050
+ }
1051
+ w.current = null, m(e), Ft(f, R, t) && (g(e), S.current = V), E.current = f !== void 0 && !t && Lt(i, j, e, oe).length === 0, de(e);
1052
+ }
1053
+ }, me = (e, n = !0) => {
1054
+ if (O.current) return;
1055
+ if (e !== null && f !== void 0 && h !== void 0 && e === re) {
1056
+ w.current = R?.descriptor.label ?? "", G();
1057
+ return;
1058
+ }
1059
+ if (e === null) {
1060
+ fe(n);
1061
+ return;
1062
+ }
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;
1108
+ return /* @__PURE__ */ h(T, {
1109
+ allowsCustomValue: t,
1110
+ 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,
1124
+ 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,
1130
+ validationBehavior: "aria",
1131
+ children: [
1132
+ /* @__PURE__ */ m(Ke, {
1133
+ label: p,
1134
+ loading: _
1135
+ }),
1136
+ /* @__PURE__ */ h(O, {
1137
+ className: Z(mt.base.group, _ && mt.state.loadingGroup, b && mt.state.readOnlyGroup),
1138
+ ref: A,
1139
+ 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,
1150
+ autoComplete: n,
1151
+ 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
1162
+ }),
1163
+ /* @__PURE__ */ m(g, {
1164
+ "aria-describedby": ee,
1165
+ className: Z(mt.base.trigger, _ && mt.state.loadingTrigger),
1166
+ children: /* @__PURE__ */ m(dt, {
1167
+ name: "expand",
1168
+ size: "sm"
1169
+ })
1170
+ }),
1171
+ _ && /* @__PURE__ */ m("span", {
1172
+ className: mt.base.skeleton,
1173
+ children: /* @__PURE__ */ m(J, {
1174
+ blockSize: "100%",
1175
+ inlineSize: "100%",
1176
+ label: C.loading,
1177
+ shape: "rectangle"
1178
+ })
1179
+ })
1180
+ ]
1181
+ }),
1182
+ /* @__PURE__ */ m(Ot, {
1183
+ allowsCustomValue: t,
1184
+ getItem: l,
1185
+ hasSuggestions: w.collectionItems.length > 0,
1186
+ isDisabled: k,
1187
+ isReadOnly: b,
1188
+ items: w.collectionItems,
1189
+ triggerRef: A
1190
+ }),
1191
+ /* @__PURE__ */ m(qe, {
1192
+ description: E,
1193
+ descriptionId: M,
1194
+ error: D,
1195
+ errorId: N,
1196
+ loading: _
1197
+ })
1198
+ ]
1199
+ });
1200
+ }
1201
+ function Ht(e) {
1202
+ return /* @__PURE__ */ m(Vt, { props: e });
1203
+ }
1204
+ //#endregion
1205
+ //#region src/primitives/Container/Container.tsx
1206
+ var Ut = {
1207
+ base: { container: "breeze:mx-auto breeze:inline-size-full breeze:min-inline-size-0" },
1208
+ compound: {},
1209
+ size: {
1210
+ page: "breeze:max-inline-breeze-page",
1211
+ prose: "breeze:max-inline-breeze-prose",
1212
+ read: "breeze:max-inline-breeze-read"
1213
+ },
1214
+ state: { padded: "breeze:ps-breeze-4 breeze:pe-breeze-4 breeze:breeze-md:ps-breeze-7 breeze:breeze-md:pe-breeze-7" },
1215
+ variant: {}
1216
+ };
1217
+ function Wt({ "aria-label": e, children: t, element: n = "div", padded: i = !0, width: a = "page" }) {
1218
+ let { accessibleLabel: o, role: s } = Ue(e, n);
1219
+ return r(n, {
1220
+ "aria-label": o,
1221
+ className: [
1222
+ Ut.base.container,
1223
+ Ut.size[a],
1224
+ i && Ut.state.padded
1225
+ ].filter(Boolean).join(" "),
1226
+ role: s
1227
+ }, t);
405
1228
  }
406
1229
  //#endregion
407
1230
  //#region src/overlays/OverlaySurface.tsx
408
- var Y = {
1231
+ var Gt = {
409
1232
  base: {
410
1233
  content: "breeze-overlay-content",
411
1234
  header: "breeze-overlay-header",
@@ -420,26 +1243,26 @@ var Y = {
420
1243
  fullscreen: "breeze-fullscreen",
421
1244
  popover: "breeze-popover"
422
1245
  }
423
- }, Ne = "Breeze overlay triggers and portal containers must belong to the current document and light DOM.";
424
- function X(e) {
1246
+ }, Kt = "Breeze overlay triggers and portal containers must belong to the current document and light DOM.";
1247
+ function qt(e) {
425
1248
  return typeof e == "object" && !!e && "nodeType" in e && typeof e.contains == "function";
426
1249
  }
427
- function Pe(e) {
1250
+ function Jt(e) {
428
1251
  return e.dataset?.breezeOverlay !== void 0;
429
1252
  }
430
- function Fe({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, onOpenChange: s, open: f, placement: g = "bottom", title: _, trigger: v }) {
431
- let { getMessageLocale: C, messages: w } = U(), T = r === "popover" || r === "fullscreen", E = Me(), D = a(De), [ee, te] = d(D === null);
432
- o(() => te(!0), []);
433
- let [ne, re] = d(t), O = f ?? ne, k = D?.open ?? !0, A = O && k, j = u(null), ie = u(null), M = u(null), [ae, oe] = d(!1), se = u(!1), N = u(null), P = u(null), F = u(null), I = u(null), ce = u(!1);
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);
1255
+ 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);
434
1257
  c(() => {
435
- if (E && j.current && (j.current.ownerDocument !== document || j.current.getRootNode() !== document || E.ownerDocument !== document || E.getRootNode() !== document)) throw Error(Ne);
436
- }, [E]);
437
- let le = l(() => r === "fullscreen" ? { current: E } : j, [E, r]), L = Oe(r, A && ee && E !== null, A || ae), R = i((e) => {
1258
+ if (S && j.current && (j.current.ownerDocument !== document || j.current.getRootNode() !== document || S.ownerDocument !== document || S.getRootNode() !== document)) throw Error(Kt);
1259
+ }, [S]);
1260
+ let ie = l(() => r === "fullscreen" ? { current: S } : j, [S, r]), z = et(r, A && w && S !== null, A || P), B = i((e) => {
438
1261
  if (!e && !k) {
439
- if (ce.current) return;
440
- O && (ce.current = !0);
1262
+ if (re.current) return;
1263
+ O && (re.current = !0);
441
1264
  }
442
- f === void 0 && re(e), s?.(e);
1265
+ f === void 0 && D(e), s?.(e);
443
1266
  }, [
444
1267
  f,
445
1268
  s,
@@ -447,187 +1270,187 @@ function Fe({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, on
447
1270
  O
448
1271
  ]);
449
1272
  o(() => {
450
- k ? ce.current = !1 : O && R(!1);
1273
+ k ? re.current = !1 : O && B(!1);
451
1274
  }, [
452
- R,
1275
+ B,
453
1276
  k,
454
1277
  O
455
1278
  ]), o(() => {
456
- if (r !== "popover" || !A || !n || !L.topmost || !E) return;
1279
+ if (r !== "popover" || !A || !n || !z.topmost || !S) return;
457
1280
  let e = () => {
458
- P.current !== null && (clearTimeout(P.current), P.current = null);
459
- }, t = (e, t) => !!e && !!t && (e === t || e.contains(t) || t.contains(e)), i = (e) => e.button === 0, a = (e) => X(e) && !ie.current?.contains(e) && !j.current?.contains(e), o = (t) => {
460
- i(t) && (e(), I.current = null, F.current = X(t.target) ? t.target : null);
1281
+ 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);
461
1284
  }, s = (n) => {
462
1285
  if (!i(n)) return;
463
- let r = F.current, o = X(n.target) ? n.target : null;
464
- !a(r) || !a(o) || (e(), P.current = setTimeout(() => {
465
- P.current = null;
466
- let e = I.current, n = F.current;
467
- I.current = null, F.current = null, !(t(e, o) && t(e, n)) && R(!1);
1286
+ let r = L.current, o = qt(n.target) ? n.target : null;
1287
+ !a(r) || !a(o) || (e(), I.current = setTimeout(() => {
1288
+ I.current = null;
1289
+ let e = R.current, n = L.current;
1290
+ R.current = null, L.current = null, !(t(e, o) && t(e, n)) && B(!1);
468
1291
  }, 0));
469
1292
  }, c = () => {
470
- e(), I.current = null, F.current = null;
1293
+ e(), R.current = null, L.current = null;
471
1294
  }, l = (n) => {
472
- let r = X(n.target) ? n.target : null;
1295
+ let r = qt(n.target) ? n.target : null;
473
1296
  if (e(), a(r)) {
474
- let e = I.current, n = F.current;
475
- if (I.current = null, F.current = null, t(e, r) && t(e, n)) return;
476
- R(!1);
1297
+ let e = R.current, n = L.current;
1298
+ if (R.current = null, L.current = null, t(e, r) && t(e, n)) return;
1299
+ B(!1);
477
1300
  }
478
1301
  };
479
- return E.ownerDocument.addEventListener("pointerdown", o, !0), E.ownerDocument.addEventListener("pointerup", s, !0), E.ownerDocument.addEventListener("pointercancel", c, !0), E.ownerDocument.addEventListener("click", l, !0), () => {
480
- e(), E.ownerDocument.removeEventListener("pointerdown", o, !0), E.ownerDocument.removeEventListener("pointerup", s, !0), E.ownerDocument.removeEventListener("pointercancel", c, !0), E.ownerDocument.removeEventListener("click", l, !0), I.current = null, F.current = null;
1302
+ 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
+ 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;
481
1304
  };
482
1305
  }, [
483
- R,
1306
+ B,
484
1307
  n,
485
- E,
1308
+ S,
486
1309
  r,
487
- L.topmost,
1310
+ z.topmost,
488
1311
  A
489
1312
  ]);
490
- let ue = D?.restoreFocus, z = D?.id, B = i(() => {
491
- let e = j.current, t = E?.ownerDocument, n = t?.activeElement;
492
- if (!t || !E) return;
493
- let r = z ? t.getElementById(z) : null;
1313
+ let V = C?.restoreFocus, H = C?.id, ae = i(() => {
1314
+ let e = j.current, t = S?.ownerDocument, n = t?.activeElement;
1315
+ if (!t || !S) return;
1316
+ let r = H ? t.getElementById(H) : null;
494
1317
  if (!(n === t.body || n === r || n?.closest("[data-exiting]"))) return;
495
1318
  if (!e?.isConnected) {
496
- ue?.();
1319
+ V?.();
497
1320
  return;
498
1321
  }
499
- let i = E.querySelector("[data-breeze-topmost=\"true\"]");
1322
+ let i = S.querySelector("[data-breeze-topmost=\"true\"]");
500
1323
  (!i || i.contains(e)) && !e.closest("[inert], [aria-hidden=\"true\"]") && e.focus({ preventScroll: !0 });
501
1324
  }, [
502
- E,
503
- z,
504
- ue
505
- ]), V = i(() => {
506
- N.current !== null && (clearTimeout(N.current), N.current = null);
507
- }, []), H = i((e) => {
1325
+ S,
1326
+ H,
1327
+ V
1328
+ ]), U = i(() => {
1329
+ ne.current !== null && (clearTimeout(ne.current), ne.current = null);
1330
+ }, []), oe = i((e) => {
508
1331
  queueMicrotask(() => {
509
- !e.isConnected || e.closest("[inert], [data-exiting]") || (V(), e.focus({ preventScroll: !0 }), N.current = setTimeout(() => {
1332
+ !e.isConnected || e.closest("[inert], [data-exiting]") || (U(), e.focus({ preventScroll: !0 }), ne.current = setTimeout(() => {
510
1333
  let { ownerDocument: t } = e, { activeElement: n } = t;
511
- e.isConnected && !e.closest("[inert], [data-exiting]") && (n === e || n === t.body) && (se.current = !0, e.blur(), e.focus({ preventScroll: !0 }), se.current = !1), N.current = null;
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;
512
1335
  }, 500));
513
1336
  });
514
- }, [V]), W = u(A);
1337
+ }, [U]), se = u(A);
515
1338
  o(() => {
516
- let e = W.current;
517
- W.current = A, !(!T || !A || e || !M.current) && H(M.current);
1339
+ let e = se.current;
1340
+ se.current = A, !(!x || !A || e || !N.current) && oe(N.current);
518
1341
  }, [
519
- H,
520
- T,
1342
+ oe,
1343
+ x,
521
1344
  A
522
1345
  ]);
523
- let de = i((e) => {
524
- M.current = e;
1346
+ let ce = i((e) => {
1347
+ N.current = e;
525
1348
  let t = () => {
526
- V(), M.current = null, oe(!1), requestAnimationFrame(B);
1349
+ U(), N.current = null, te(!1), requestAnimationFrame(ae);
527
1350
  };
528
1351
  if (!e) {
529
1352
  t();
530
1353
  return;
531
1354
  }
532
- return oe(!0), T && H(e), t;
1355
+ return te(!0), x && oe(e), t;
533
1356
  }, [
534
- V,
535
- H,
536
- T,
537
- B
538
- ]), fe = l(() => ({
539
- id: L.id,
1357
+ U,
1358
+ oe,
1359
+ x,
1360
+ ae
1361
+ ]), W = l(() => ({
1362
+ id: z.id,
540
1363
  open: A,
541
- restoreFocus: B
1364
+ restoreFocus: ae
542
1365
  }), [
543
- L.id,
1366
+ z.id,
544
1367
  A,
545
- B
546
- ]), pe = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
547
- className: Y.base.header,
1368
+ ae
1369
+ ]), le = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
1370
+ className: Gt.base.header,
548
1371
  children: [/* @__PURE__ */ m("h2", {
549
- className: Y.base.title,
1372
+ className: Gt.base.title,
550
1373
  children: _
551
1374
  }), /* @__PURE__ */ m("span", {
552
- lang: C("close"),
553
- children: /* @__PURE__ */ m(ye, {
554
- onAction: () => R(!1),
1375
+ lang: y("close"),
1376
+ children: /* @__PURE__ */ m(He, {
1377
+ onAction: () => B(!1),
555
1378
  variant: "quiet",
556
- children: w.close
1379
+ children: b.close
557
1380
  })
558
1381
  })]
559
- }), e] }), G = /* @__PURE__ */ m(De, {
560
- value: fe,
561
- children: T ? /* @__PURE__ */ m("section", {
1382
+ }), e] }), ue = /* @__PURE__ */ m($e, {
1383
+ value: W,
1384
+ children: x ? /* @__PURE__ */ m("section", {
562
1385
  "aria-label": _,
563
- className: Y.base.content,
564
- id: L.id,
1386
+ className: Gt.base.content,
1387
+ id: z.id,
565
1388
  onBlur: (e) => {
566
- if (se.current) {
1389
+ if (F.current) {
567
1390
  e.stopPropagation();
568
1391
  return;
569
1392
  }
570
1393
  let { relatedTarget: t } = e;
571
- r === "popover" && n && L.topmost && X(t) && !e.currentTarget.contains(t) && !j.current?.contains(t) && (I.current = t);
1394
+ r === "popover" && n && z.topmost && qt(t) && !e.currentTarget.contains(t) && !j.current?.contains(t) && (R.current = t);
572
1395
  },
573
- ref: de,
1396
+ ref: ce,
574
1397
  role: "dialog",
575
1398
  tabIndex: -1,
576
- children: pe
577
- }) : /* @__PURE__ */ m(y, {
1399
+ children: le
1400
+ }) : /* @__PURE__ */ m(ge, {
578
1401
  "aria-label": _,
579
- className: Y.base.content,
580
- id: L.id,
581
- ref: de,
582
- children: pe
1402
+ className: Gt.base.content,
1403
+ id: z.id,
1404
+ ref: ce,
1405
+ children: le
583
1406
  })
584
1407
  });
585
- return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(ye, {
586
- "aria-controls": A ? L.id : void 0,
1408
+ return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(He, {
1409
+ "aria-controls": A ? z.id : void 0,
587
1410
  "aria-expanded": A,
588
1411
  "aria-haspopup": "dialog",
589
- onAction: () => R(!T || !A),
1412
+ onAction: () => B(!x || !A),
590
1413
  ref: j,
591
1414
  children: v
592
- }), E && ee && (T ? /* @__PURE__ */ m(S, {
593
- className: Y.variant[r],
1415
+ }), S && w && (x ? /* @__PURE__ */ m(ee, {
1416
+ className: Gt.variant[r],
594
1417
  "data-breeze-overlay": r,
595
- "data-breeze-topmost": L.topmost,
596
- "data-breeze-interactive": L.interactive,
597
- inert: !L.interactive,
1418
+ "data-breeze-topmost": z.topmost,
1419
+ "data-breeze-interactive": z.interactive,
1420
+ inert: !z.interactive,
598
1421
  isNonModal: !0,
599
1422
  isOpen: A,
600
- isKeyboardDismissDisabled: !n || !L.topmost,
601
- onOpenChange: R,
1423
+ isKeyboardDismissDisabled: !n || !z.topmost,
1424
+ onOpenChange: B,
602
1425
  placement: g,
603
- ref: ie,
604
- shouldCloseOnInteractOutside: (e) => r === "popover" && n && L.topmost && !j.current?.contains(e),
605
- style: { zIndex: L.zIndex },
606
- triggerRef: le,
607
- children: G
608
- }) : /* @__PURE__ */ m(x, {
1426
+ ref: M,
1427
+ shouldCloseOnInteractOutside: (e) => r === "popover" && n && z.topmost && !j.current?.contains(e),
1428
+ style: { zIndex: z.zIndex },
1429
+ triggerRef: ie,
1430
+ children: ue
1431
+ }) : /* @__PURE__ */ m(ve, {
609
1432
  className: "breeze-overlay-backdrop",
610
1433
  "data-breeze-overlay": r,
611
- "data-breeze-scrim": L.scrim,
612
- "data-breeze-topmost": L.topmost,
613
- "data-breeze-interactive": L.interactive,
614
- inert: !L.interactive,
615
- isDismissable: n && L.topmost,
616
- isKeyboardDismissDisabled: !n || !L.topmost,
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,
617
1440
  isOpen: A,
618
- onOpenChange: R,
619
- shouldCloseOnInteractOutside: (e) => L.topmost && Pe(e),
620
- style: { zIndex: L.zIndex },
621
- children: /* @__PURE__ */ m(b, {
622
- className: Y.variant[r],
623
- children: G
1441
+ onOpenChange: B,
1442
+ shouldCloseOnInteractOutside: (e) => z.topmost && Jt(e),
1443
+ style: { zIndex: z.zIndex },
1444
+ children: /* @__PURE__ */ m(_e, {
1445
+ className: Gt.variant[r],
1446
+ children: ue
624
1447
  })
625
1448
  }))] });
626
1449
  }
627
1450
  //#endregion
628
1451
  //#region src/primitives/Dialog/Dialog.tsx
629
- function Ie({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o }) {
630
- return /* @__PURE__ */ m(Fe, {
1452
+ function Xt({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o }) {
1453
+ return /* @__PURE__ */ m(Yt, {
631
1454
  defaultOpen: t,
632
1455
  dismissible: n,
633
1456
  onOpenChange: r,
@@ -640,8 +1463,8 @@ function Ie({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
640
1463
  }
641
1464
  //#endregion
642
1465
  //#region src/primitives/Drawer/Drawer.tsx
643
- function Le({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o }) {
644
- return /* @__PURE__ */ m(Fe, {
1466
+ function Zt({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o }) {
1467
+ return /* @__PURE__ */ m(Yt, {
645
1468
  defaultOpen: t,
646
1469
  dismissible: n,
647
1470
  onOpenChange: r,
@@ -654,7 +1477,7 @@ function Le({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
654
1477
  }
655
1478
  //#endregion
656
1479
  //#region src/primitives/Grid/Grid.tsx
657
- var Re = {
1480
+ var Qt = {
658
1481
  base: { grid: "breeze:grid breeze:min-inline-size-0" },
659
1482
  compound: { columns: {
660
1483
  1: {
@@ -690,80 +1513,21 @@ var Re = {
690
1513
  state: {},
691
1514
  variant: {}
692
1515
  };
693
- function ze({ "aria-label": e, children: t, collapseBelow: n = "md", columns: i = 2, element: a = "div", gap: o = 4 }) {
694
- let { accessibleLabel: s, role: c } = J(e, a);
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);
695
1518
  return r(a, {
696
1519
  "aria-label": s,
697
1520
  className: [
698
- Re.base.grid,
699
- Re.compound.columns[i][n],
700
- Re.size[o]
1521
+ Qt.base.grid,
1522
+ Qt.compound.columns[i][n],
1523
+ Qt.size[o]
701
1524
  ].join(" "),
702
1525
  role: c
703
1526
  }, t);
704
1527
  }
705
1528
  //#endregion
706
- //#region src/primitives/Icon/Icon.tsx
707
- var Be = {
708
- add: I,
709
- back: A,
710
- building: te,
711
- calendar: ne,
712
- camera: re,
713
- check: O,
714
- clock: ie,
715
- close: z,
716
- delete: le,
717
- document: oe,
718
- download: M,
719
- expand: k,
720
- forward: j,
721
- lock: P,
722
- money: N,
723
- moneyIn: E,
724
- moneyOut: D,
725
- more: ae,
726
- next: j,
727
- notifications: ee,
728
- overview: se,
729
- people: ue,
730
- settings: ce,
731
- signOut: F,
732
- upload: R,
733
- warning: L
734
- }, Ve = {
735
- base: { icon: "breeze:block breeze:shrink-0" },
736
- compound: {},
737
- size: {
738
- lg: "breeze:block-size-breeze-6 breeze:inline-size-breeze-6",
739
- md: "breeze:block-size-breeze-5 breeze:inline-size-breeze-5",
740
- sm: "breeze:block-size-breeze-4 breeze:inline-size-breeze-4"
741
- },
742
- state: { logicalDirection: "breeze:rtl:rotate-180" },
743
- variant: {}
744
- }, He = /* @__PURE__ */ new Set([
745
- "back",
746
- "forward",
747
- "next"
748
- ]);
749
- function Ue({ label: e, name: t, size: n = "md" }) {
750
- let r = Be[t], i = e?.trim() || void 0;
751
- return /* @__PURE__ */ m(r, {
752
- "aria-hidden": i === void 0 || void 0,
753
- "aria-label": i,
754
- className: [
755
- Ve.base.icon,
756
- Ve.size[n],
757
- He.has(t) && Ve.state.logicalDirection
758
- ].filter(Boolean).join(" "),
759
- focusable: "false",
760
- role: i === void 0 ? void 0 : "img",
761
- strokeWidth: 1.75
762
- });
763
- }
764
- //#endregion
765
1529
  //#region src/primitives/IconTile/IconTile.tsx
766
- var We = {
1530
+ var en = {
767
1531
  base: { tile: "breeze:inline-flex breeze:shrink-0 breeze:items-center breeze:justify-center" },
768
1532
  compound: {},
769
1533
  size: {
@@ -785,15 +1549,15 @@ var We = {
785
1549
  }
786
1550
  }
787
1551
  };
788
- function Ge({ label: e, name: t, shape: n = "square", size: r = "lg", tone: i = "brand" }) {
1552
+ function tn({ label: e, name: t, shape: n = "square", size: r = "lg", tone: i = "brand" }) {
789
1553
  return /* @__PURE__ */ m("span", {
790
1554
  className: [
791
- We.base.tile,
792
- We.variant.tone[i],
793
- We.variant.shape[n],
794
- We.size[r]
1555
+ en.base.tile,
1556
+ en.variant.tone[i],
1557
+ en.variant.shape[n],
1558
+ en.size[r]
795
1559
  ].join(" "),
796
- children: /* @__PURE__ */ m(Ue, {
1560
+ children: /* @__PURE__ */ m(dt, {
797
1561
  label: e,
798
1562
  name: t,
799
1563
  size: r === "lg" ? "md" : "sm"
@@ -802,7 +1566,7 @@ function Ge({ label: e, name: t, shape: n = "square", size: r = "lg", tone: i =
802
1566
  }
803
1567
  //#endregion
804
1568
  //#region src/primitives/Inline/Inline.tsx
805
- var Z = {
1569
+ var nn = {
806
1570
  base: { inline: "breeze:flex breeze:min-inline-size-0" },
807
1571
  compound: {},
808
1572
  size: {
@@ -832,24 +1596,121 @@ var Z = {
832
1596
  }
833
1597
  }
834
1598
  };
835
- function Ke({ "aria-label": e, children: t, element: n = "div", gap: i = 3, justify: a = "start", verticalAlign: o = "center", wrap: s = !1 }) {
836
- let { accessibleLabel: c, role: l } = J(e, n);
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);
837
1601
  return r(n, {
838
1602
  "aria-label": c,
839
1603
  className: [
840
- Z.base.inline,
841
- Z.variant.align[o],
842
- Z.variant.justify[a],
843
- Z.size[i],
844
- s && Z.state.wrap
1604
+ nn.base.inline,
1605
+ nn.variant.align[o],
1606
+ nn.variant.justify[a],
1607
+ nn.size[i],
1608
+ s && nn.state.wrap
845
1609
  ].filter(Boolean).join(" "),
846
1610
  role: l
847
1611
  }, t);
848
1612
  }
849
1613
  //#endregion
1614
+ //#region src/primitives/NumberField/NumberField.tsx
1615
+ var $ = {
1616
+ base: {
1617
+ 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
+ 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",
1619
+ skeleton: "breeze:pointer-events-none breeze:absolute breeze:[inset-block:0] breeze:[inset-inline:0]",
1620
+ stepButton: "breeze:min-inline-breeze-md breeze:border-0 breeze:bg-transparent breeze:ps-breeze-2 breeze:pe-breeze-2 breeze:font-breeze-sans breeze:text-breeze-md breeze:font-semibold breeze:leading-none breeze:text-breeze-ink breeze:disabled:cursor-not-allowed breeze:disabled:opacity-50 breeze:any-pointer-coarse:min-block-breeze-tap breeze:any-pointer-coarse:min-inline-breeze-tap breeze:hover:text-breeze-brand breeze:focus-visible:outline-2 breeze:focus-visible:outline-solid breeze:focus-visible:outline-breeze-brand breeze:outline-offset-[-2px]"
1621
+ },
1622
+ compound: {},
1623
+ size: {},
1624
+ state: {
1625
+ loadingGroup: "breeze:!bg-transparent breeze:!border-transparent breeze:!opacity-100 breeze:!overflow-visible",
1626
+ loadingInput: "breeze:!opacity-0",
1627
+ loadingStepButton: "breeze:!opacity-0",
1628
+ readOnlyGroup: "breeze:!bg-breeze-sunken"
1629
+ },
1630
+ variant: {}
1631
+ };
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;
1634
+ return /* @__PURE__ */ h(ye, {
1635
+ autoFocus: t,
1636
+ "aria-label": d ? u : void 0,
1637
+ className: X.base.root,
1638
+ defaultValue: n,
1639
+ form: s,
1640
+ formatOptions: c,
1641
+ id: l,
1642
+ isDisabled: A,
1643
+ isInvalid: !d && D !== void 0,
1644
+ isReadOnly: b,
1645
+ isRequired: S,
1646
+ maxValue: f,
1647
+ minValue: p,
1648
+ name: _,
1649
+ onChange: v,
1650
+ step: C,
1651
+ validationBehavior: "aria",
1652
+ value: w,
1653
+ children: [
1654
+ /* @__PURE__ */ m(Ke, {
1655
+ label: u,
1656
+ loading: d
1657
+ }),
1658
+ /* @__PURE__ */ h(O, {
1659
+ className: Z($.base.group, b && !d && $.state.readOnlyGroup, d && $.state.loadingGroup),
1660
+ children: [
1661
+ /* @__PURE__ */ m(k, {
1662
+ "aria-busy": d || void 0,
1663
+ className: Z(X.base.input, $.base.input, d && $.state.loadingInput),
1664
+ autoComplete: e,
1665
+ placeholder: y,
1666
+ form: s,
1667
+ ref: x
1668
+ }),
1669
+ /* @__PURE__ */ m(g, {
1670
+ className: Z($.base.stepButton, d && $.state.loadingStepButton),
1671
+ render: (e) => r("button", {
1672
+ ...e,
1673
+ "aria-hidden": d || void 0,
1674
+ type: "button"
1675
+ }),
1676
+ slot: "decrement",
1677
+ type: "button",
1678
+ children: "−"
1679
+ }),
1680
+ /* @__PURE__ */ m(g, {
1681
+ className: Z($.base.stepButton, d && $.state.loadingStepButton),
1682
+ render: (e) => r("button", {
1683
+ ...e,
1684
+ "aria-hidden": d || void 0,
1685
+ type: "button"
1686
+ }),
1687
+ slot: "increment",
1688
+ type: "button",
1689
+ children: "+"
1690
+ }),
1691
+ d && /* @__PURE__ */ m("span", {
1692
+ className: $.base.skeleton,
1693
+ children: /* @__PURE__ */ m(J, {
1694
+ blockSize: "100%",
1695
+ inlineSize: "100%",
1696
+ label: T.loading,
1697
+ shape: "rectangle"
1698
+ })
1699
+ })
1700
+ ]
1701
+ }),
1702
+ /* @__PURE__ */ m(qe, {
1703
+ description: E,
1704
+ error: D,
1705
+ loading: d
1706
+ })
1707
+ ]
1708
+ });
1709
+ }
1710
+ //#endregion
850
1711
  //#region src/primitives/Popover/Popover.tsx
851
- function qe({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o, placement: s }) {
852
- return /* @__PURE__ */ m(Fe, {
1712
+ function on({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o, placement: s }) {
1713
+ return /* @__PURE__ */ m(Yt, {
853
1714
  defaultOpen: t,
854
1715
  dismissible: n,
855
1716
  onOpenChange: r,
@@ -862,8 +1723,347 @@ function qe({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
862
1723
  });
863
1724
  }
864
1725
  //#endregion
1726
+ //#region src/primitives/Select/Select.tsx
1727
+ var sn = {
1728
+ 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
+ compound: {},
1730
+ size: {},
1731
+ state: { readOnlyTrigger: "breeze:cursor-default breeze:bg-breeze-sunken" },
1732
+ 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
+ };
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
1870
+ })
1871
+ }) : null;
1872
+ }
1873
+ function yn({ menuProps: e, state: t }) {
1874
+ let n = u(null), { listBoxProps: r } = we(e, t, n), i = Array.from(t.collection.getKeys());
1875
+ return /* @__PURE__ */ m("div", {
1876
+ ...r,
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
+ })
1886
+ });
1887
+ }
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),
1895
+ 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,
1926
+ "aria-label": v ? _ : void 0,
1927
+ "aria-labelledby": N,
1928
+ autoComplete: e,
1929
+ form: o,
1930
+ isDisabled: A,
1931
+ isInvalid: !v && O !== void 0,
1932
+ isRequired: C,
1933
+ name: y,
1934
+ 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,
1971
+ children: [
1972
+ /* @__PURE__ */ m(Ke, {
1973
+ htmlFor: M,
1974
+ id: N,
1975
+ label: _,
1976
+ loading: v
1977
+ }),
1978
+ /* @__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, {
2004
+ name: "expand",
2005
+ size: "sm"
2006
+ })]
2007
+ }), v && /* @__PURE__ */ m("span", {
2008
+ className: X.base.skeleton,
2009
+ children: /* @__PURE__ */ m(J, {
2010
+ blockSize: "100%",
2011
+ inlineSize: "100%",
2012
+ label: T.loading,
2013
+ shape: "rectangle"
2014
+ })
2015
+ })]
2016
+ }),
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
+ })
2038
+ }),
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
+ })
2048
+ }),
2049
+ /* @__PURE__ */ m(qe, {
2050
+ description: D,
2051
+ descriptionId: ee,
2052
+ error: v ? O : void 0,
2053
+ errorId: P,
2054
+ loading: v
2055
+ }),
2056
+ O && !v && /* @__PURE__ */ m("span", {
2057
+ className: X.base.error,
2058
+ id: P,
2059
+ children: O
2060
+ })
2061
+ ]
2062
+ });
2063
+ }
2064
+ //#endregion
865
2065
  //#region src/primitives/Separator/Separator.tsx
866
- var Je = {
2066
+ var xn = {
867
2067
  base: { separator: "breeze:m-0 breeze:shrink-0 breeze:border-0 breeze:bg-breeze-line breeze:forced-colors:bg-[CanvasText]" },
868
2068
  compound: {},
869
2069
  size: {},
@@ -873,15 +2073,15 @@ var Je = {
873
2073
  vertical: "breeze:block-size-full breeze:inline-size-breeze-px"
874
2074
  }
875
2075
  };
876
- function Ye({ orientation: e = "horizontal" }) {
2076
+ function Sn({ orientation: e = "horizontal" }) {
877
2077
  return /* @__PURE__ */ m("hr", {
878
2078
  "aria-orientation": e,
879
- className: [Je.base.separator, Je.variant[e]].join(" ")
2079
+ className: [xn.base.separator, xn.variant[e]].join(" ")
880
2080
  });
881
2081
  }
882
2082
  //#endregion
883
2083
  //#region src/primitives/Stack/Stack.tsx
884
- var Xe = {
2084
+ var Cn = {
885
2085
  base: { stack: "breeze:flex breeze:min-inline-size-0 breeze:flex-col" },
886
2086
  compound: {},
887
2087
  size: {
@@ -903,32 +2103,83 @@ var Xe = {
903
2103
  stretch: "breeze:items-stretch"
904
2104
  }
905
2105
  };
906
- function Ze({ "aria-label": e, children: t, element: n = "div", gap: i = 3, horizontalAlign: a = "stretch" }) {
907
- let { accessibleLabel: o, role: s } = J(e, n);
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);
908
2108
  return r(n, {
909
2109
  "aria-label": o,
910
2110
  className: [
911
- Xe.base.stack,
912
- Xe.variant[a],
913
- Xe.size[i]
2111
+ Cn.base.stack,
2112
+ Cn.variant[a],
2113
+ Cn.size[i]
914
2114
  ].join(" "),
915
2115
  role: s
916
2116
  }, t);
917
2117
  }
918
2118
  //#endregion
2119
+ //#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,
2124
+ defaultValue: n,
2125
+ "aria-label": l ? c : void 0,
2126
+ id: s,
2127
+ isDisabled: C,
2128
+ isInvalid: !l && S !== void 0,
2129
+ isReadOnly: p,
2130
+ isRequired: _,
2131
+ name: u,
2132
+ onChange: d,
2133
+ type: v,
2134
+ validationBehavior: "aria",
2135
+ value: y,
2136
+ children: [
2137
+ /* @__PURE__ */ m(Ke, {
2138
+ label: c,
2139
+ loading: l
2140
+ }),
2141
+ /* @__PURE__ */ h("span", {
2142
+ className: X.base.control,
2143
+ children: [/* @__PURE__ */ m(k, {
2144
+ "aria-busy": l || void 0,
2145
+ className: Z(X.base.input, l && X.state.loadingInput),
2146
+ autoComplete: e,
2147
+ autoFocus: t,
2148
+ form: o,
2149
+ placeholder: f,
2150
+ ref: g
2151
+ }), l && /* @__PURE__ */ m("span", {
2152
+ className: X.base.skeleton,
2153
+ children: /* @__PURE__ */ m(J, {
2154
+ blockSize: "100%",
2155
+ inlineSize: "100%",
2156
+ label: b.loading,
2157
+ shape: "rectangle"
2158
+ })
2159
+ })]
2160
+ }),
2161
+ /* @__PURE__ */ m(qe, {
2162
+ description: x,
2163
+ error: S,
2164
+ loading: l
2165
+ })
2166
+ ]
2167
+ });
2168
+ }
2169
+ //#endregion
919
2170
  //#region src/primitives/Toast/Toast.tsx
920
- var Qe = 2600, $e = "BreezeProvider toastLimit must be a positive integer.", et = "Toast components must be rendered within BreezeProvider.";
921
- function tt(e) {
2171
+ var En = 2600, Dn = "BreezeProvider toastLimit must be a positive integer.", On = "Toast components must be rendered within BreezeProvider.";
2172
+ function kn(e) {
922
2173
  return e.isIntersecting && e.intersectionRatio >= 1;
923
2174
  }
924
- function nt(e, t, n, r) {
2175
+ function An(e, t, n, r) {
925
2176
  let i = Number(e.target.dataset.breezeToastId);
926
- t.has(i) && (tt(e) ? n(i) : r(i));
2177
+ t.has(i) && (kn(e) ? n(i) : r(i));
927
2178
  }
928
- var rt = n(null), it = n(!0), at = n(null);
929
- function ot({ children: e }) {
930
- U();
931
- let t = a(it), n = a(at), [r, i] = d(() => n?.message ?? null);
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);
932
2183
  return o(() => {
933
2184
  if (!t || typeof document < "u" && document.hidden || r === e) return;
934
2185
  let a = setTimeout(() => {
@@ -946,15 +2197,15 @@ function ot({ children: e }) {
946
2197
  "aria-live": "polite",
947
2198
  className: "breeze-toast",
948
2199
  role: "status",
949
- children: [/* @__PURE__ */ m(Ue, {
2200
+ children: [/* @__PURE__ */ m(dt, {
950
2201
  name: "check",
951
2202
  size: "sm"
952
2203
  }), /* @__PURE__ */ m("span", { children: r })]
953
2204
  });
954
2205
  }
955
- function st({ children: e, limit: t }) {
956
- let n = Me(), r = Ee(), 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());
957
- if (!Number.isInteger(t) || t < 1) throw RangeError($e);
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);
958
2209
  let b = i((e, t) => {
959
2210
  let n = y.current.get(e);
960
2211
  n !== void 0 && (n.message = t);
@@ -989,7 +2240,7 @@ function st({ children: e, limit: t }) {
989
2240
  if (!s || typeof document < "u" && document.hidden || t !== void 0 && t.handle !== null) return;
990
2241
  let n = t ?? {
991
2242
  handle: null,
992
- remaining: Qe,
2243
+ remaining: En,
993
2244
  startedAt: null
994
2245
  };
995
2246
  if (n.remaining <= 0) {
@@ -1023,7 +2274,7 @@ function st({ children: e, limit: t }) {
1023
2274
  }
1024
2275
  let o, c = setTimeout(() => {
1025
2276
  o = new IntersectionObserver((e) => {
1026
- e.forEach((e) => nt(e, r, D, w));
2277
+ e.forEach((e) => An(e, r, D, w));
1027
2278
  }, { threshold: 1 }), Array.from(i.children).forEach((e) => {
1028
2279
  e instanceof HTMLElement && e.dataset.breezeToastId !== void 0 && !e.hidden && o?.observe(e);
1029
2280
  });
@@ -1040,29 +2291,29 @@ function st({ children: e, limit: t }) {
1040
2291
  E,
1041
2292
  D
1042
2293
  ]), o(() => C, [C]);
1043
- let ee = f.slice(0, t), te = new Set(ee.map(({ id: e }) => e)), ne = f.filter(({ id: e }) => te.has(e) || v.current.has(e));
1044
- return /* @__PURE__ */ m(it, {
2294
+ 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, {
1045
2296
  value: s,
1046
- children: /* @__PURE__ */ h(rt, {
2297
+ children: /* @__PURE__ */ h(jn, {
1047
2298
  value: x,
1048
- children: [e, n && B(/* @__PURE__ */ m("div", {
2299
+ children: [e, n && M(/* @__PURE__ */ m("div", {
1049
2300
  ref: a,
1050
2301
  className: "breeze-toast-region",
1051
2302
  "data-breeze-toast-region": "",
1052
2303
  "data-live-announcer": "",
1053
2304
  "data-react-aria-top-layer": "",
1054
2305
  style: { zIndex: r },
1055
- children: ne.map(({ id: e, message: t }) => {
1056
- let n = !te.has(e);
2306
+ children: A.map(({ id: e, message: t }) => {
2307
+ let n = !k.has(e);
1057
2308
  return /* @__PURE__ */ m("div", {
1058
2309
  "aria-hidden": n ? "true" : void 0,
1059
2310
  "data-breeze-toast-id": e,
1060
2311
  hidden: n,
1061
- children: /* @__PURE__ */ m(at, {
2312
+ children: /* @__PURE__ */ m(Nn, {
1062
2313
  value: y.current.get(e) ?? null,
1063
- children: /* @__PURE__ */ m(it, {
2314
+ children: /* @__PURE__ */ m(Mn, {
1064
2315
  value: s && !n,
1065
- children: /* @__PURE__ */ m(ot, { children: t })
2316
+ children: /* @__PURE__ */ m(Pn, { children: t })
1066
2317
  })
1067
2318
  })
1068
2319
  }, e);
@@ -1071,14 +2322,14 @@ function st({ children: e, limit: t }) {
1071
2322
  })
1072
2323
  });
1073
2324
  }
1074
- function ct() {
1075
- let e = a(rt);
1076
- if (e === null) throw Error(et);
2325
+ function In() {
2326
+ let e = a(jn);
2327
+ if (e === null) throw Error(On);
1077
2328
  return e;
1078
2329
  }
1079
2330
  //#endregion
1080
2331
  //#region src/primitives/Typography/Typography.tsx
1081
- var Q = {
2332
+ var Ln = {
1082
2333
  base: { text: "breeze:m-0 breeze:font-breeze-sans" },
1083
2334
  compound: {},
1084
2335
  size: {},
@@ -1114,10 +2365,10 @@ var Q = {
1114
2365
  }
1115
2366
  }
1116
2367
  };
1117
- function lt(e) {
2368
+ function Rn(e) {
1118
2369
  return e === "heading" ? "h2" : e === "title" ? "h3" : e === "body" ? "p" : "span";
1119
2370
  }
1120
- function ut(e, t, n, r) {
2371
+ function zn(e, t, n, r) {
1121
2372
  let i;
1122
2373
  try {
1123
2374
  i = new Intl.NumberFormat(n, {
@@ -1131,10 +2382,10 @@ function ut(e, t, n, r) {
1131
2382
  }
1132
2383
  return i.map((e) => e.type === "minusSign" ? "−" : e.value).join("");
1133
2384
  }
1134
- function dt(e, t, n) {
2385
+ function Bn(e, t, n) {
1135
2386
  let r;
1136
2387
  try {
1137
- r = V(e).toDate("UTC");
2388
+ r = Ae(e).toDate("UTC");
1138
2389
  } catch {
1139
2390
  return e;
1140
2391
  }
@@ -1143,15 +2394,15 @@ function dt(e, t, n) {
1143
2394
  timeZone: "UTC"
1144
2395
  }).format(r);
1145
2396
  }
1146
- function ft(e, t, n) {
1147
- return e.loading ? /* @__PURE__ */ m(me, {
2397
+ function Vn(e, t, n) {
2398
+ return e.loading ? /* @__PURE__ */ m(J, {
1148
2399
  blockSize: "1lh",
1149
2400
  inlineSize: "8em",
1150
2401
  label: n
1151
- }) : e.format === "currency" ? ut(e.value, e.currency, t, e.sign ?? "auto") : e.format === "date" ? dt(e.value, t, e.dateStyle) : e.children;
2402
+ }) : e.format === "currency" ? zn(e.value, e.currency, t, e.sign ?? "auto") : e.format === "date" ? Bn(e.value, t, e.dateStyle) : e.children;
1152
2403
  }
1153
- function pt(e) {
1154
- let { locale: t, messages: n } = U(), { "aria-label": i, align: a, children: o, element: s, format: c, id: l, loading: u = !1, numeric: d = !1, tone: f = "default", truncate: g = !1, variant: _ = "body" } = e, v = s ?? lt(_), y = i?.trim() || void 0, b = a ?? (_ === "money" || d ? "end" : "start"), x = a !== void 0 || _ === "money" || d, S = ft(e, t, n.loading), C = c !== void 0 || typeof o == "string" || typeof o == "number", w = !u && y !== void 0 && !C && [
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 && [
1155
2406
  "h1",
1156
2407
  "h2",
1157
2408
  "h3",
@@ -1160,18 +2411,18 @@ function pt(e) {
1160
2411
  return !u && y !== void 0 && C && (S = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
1161
2412
  "aria-hidden": "true",
1162
2413
  children: S
1163
- }), /* @__PURE__ */ m(ge, { children: y })] })), r(v, {
2414
+ }), /* @__PURE__ */ m(Re, { children: y })] })), r(v, {
1164
2415
  "aria-busy": u || void 0,
1165
2416
  "aria-label": T || w ? y : void 0,
1166
2417
  className: [
1167
- Q.base.text,
1168
- Q.variant.role[_],
1169
- Q.variant.tone[f],
1170
- Q.variant.align[b],
1171
- x && Q.state.aligned,
1172
- u && v === "span" && !x && Q.state.inlineLoading,
1173
- d && _ !== "money" && Q.state.numeric,
1174
- g && Q.state.truncate
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
1175
2426
  ].filter(Boolean).join(" "),
1176
2427
  id: l,
1177
2428
  lang: t,
@@ -1180,7 +2431,7 @@ function pt(e) {
1180
2431
  }
1181
2432
  //#endregion
1182
2433
  //#region src/provider/en-GB.ts
1183
- var $ = {
2434
+ var Un = {
1184
2435
  appearance: "Appearance",
1185
2436
  appearanceAutomatic: "Auto",
1186
2437
  appearanceDark: "Dark",
@@ -1190,11 +2441,11 @@ var $ = {
1190
2441
  };
1191
2442
  //#endregion
1192
2443
  //#region src/provider/BreezeProvider.tsx
1193
- function mt(e, t) {
2444
+ function Wn(e, t) {
1194
2445
  return e === "automatic" ? t ? "dark" : "light" : e;
1195
2446
  }
1196
- function ht({ children: e }) {
1197
- let { direction: t, locale: n } = T();
2447
+ function Gn({ children: e }) {
2448
+ let { direction: t, locale: n } = F();
1198
2449
  return /* @__PURE__ */ m("div", {
1199
2450
  "data-breeze-root": "",
1200
2451
  dir: t,
@@ -1202,8 +2453,8 @@ function ht({ children: e }) {
1202
2453
  children: e
1203
2454
  });
1204
2455
  }
1205
- function gt({ appearance: e, children: t, defaultAppearance: n = "automatic", locale: r, messages: a, onAppearanceChange: s, portalContainer: u, toastLimit: f = 3 }) {
1206
- 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 = mt(y, h);
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);
1207
2458
  o(() => {
1208
2459
  if (!p) return;
1209
2460
  g(p.matches);
@@ -1220,20 +2471,20 @@ function gt({ appearance: e, children: t, defaultAppearance: n = "automatic", lo
1220
2471
  let x = i((t) => {
1221
2472
  e === void 0 && v(t), s?.(t);
1222
2473
  }, [e, s]), S = i((e) => a?.[e] === void 0 ? "en-GB" : r, [r, a]);
1223
- return /* @__PURE__ */ m(w, {
2474
+ return /* @__PURE__ */ m(te, {
1224
2475
  locale: r,
1225
- children: /* @__PURE__ */ m(H, {
2476
+ children: /* @__PURE__ */ m(je, {
1226
2477
  value: l(() => ({
1227
2478
  appearance: y,
1228
2479
  getMessageLocale: S,
1229
2480
  locale: r,
1230
2481
  messages: {
1231
- appearance: a?.appearance ?? $.appearance,
1232
- appearanceAutomatic: a?.appearanceAutomatic ?? $.appearanceAutomatic,
1233
- appearanceDark: a?.appearanceDark ?? $.appearanceDark,
1234
- appearanceLight: a?.appearanceLight ?? $.appearanceLight,
1235
- close: a?.close ?? $.close,
1236
- loading: a?.loading ?? $.loading
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
1237
2488
  },
1238
2489
  resolvedAppearance: b,
1239
2490
  setAppearance: x
@@ -1245,18 +2496,18 @@ function gt({ appearance: e, children: t, defaultAppearance: n = "automatic", lo
1245
2496
  b,
1246
2497
  x
1247
2498
  ]),
1248
- children: /* @__PURE__ */ m(je, {
2499
+ children: /* @__PURE__ */ m(rt, {
1249
2500
  locale: r,
1250
2501
  portalContainer: u,
1251
- children: /* @__PURE__ */ m(st, {
2502
+ children: /* @__PURE__ */ m(Fn, {
1252
2503
  limit: f,
1253
- children: /* @__PURE__ */ m(ht, { children: t })
2504
+ children: /* @__PURE__ */ m(Gn, { children: t })
1254
2505
  })
1255
2506
  })
1256
2507
  })
1257
2508
  });
1258
2509
  }
1259
2510
  //#endregion
1260
- export { pe as AppearanceControl, _e as Badge, gt as BreezeProvider, ye as Button, xe as Card, Ce as Container, Ie as Dialog, Le as Drawer, ze as Grid, Ue as Icon, Ge as IconTile, Ke as Inline, qe as Popover, Ye as Separator, me as Skeleton, Ze as Stack, ot as Toast, pt as Typography, ge as VisuallyHidden, ct as useToast };
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 };
1261
2512
 
1262
2513
  //# sourceMappingURL=index.js.map