@motech-development/breeze-ui 4.4.0 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -5,24 +5,33 @@ 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 { Dialog as T } from "react-aria-components/Dialog";
14
+ import { Modal as E, ModalOverlay as D } from "react-aria-components/Modal";
15
+ import { Popover as ee } from "react-aria-components/Popover";
16
+ import { UNSAFE_PortalProvider as te } from "react-aria/PortalProvider";
17
+ import { I18nProvider as ne, useLocale as re } from "react-aria-components/I18nProvider";
18
+ import { ArrowDownLeft as O, ArrowUpRight as k, Bell as A, Building2 as j, CalendarDays as ie, Camera as ae, Check as oe, ChevronDown as se, ChevronLeft as ce, ChevronRight as M, Clock3 as N, Download as P, Ellipsis as F, FileText as le, House as ue, List as I, LockKeyhole as L, LogOut as de, Plus as fe, Settings as R, Trash2 as z, TriangleAlert as B, Upload as pe, Users as me, X as he } from "lucide-react";
19
+ import { Group as ge } from "react-aria-components/Group";
20
+ import { Input as _e } from "react-aria-components/Input";
21
+ import { NumberField as ve } from "react-aria-components/NumberField";
22
+ import { TextField as ye } from "react-aria-components/TextField";
23
+ import { createPortal as be } from "react-dom";
24
+ import { parseDate as xe } from "@internationalized/date";
16
25
  //#region src/provider/BreezeContext.ts
17
- var H = n(null);
18
- function U() {
19
- let e = a(H);
26
+ var Se = n(null);
27
+ function V() {
28
+ let e = a(Se);
20
29
  if (e === null) throw Error("Breeze components must be rendered within BreezeProvider.");
21
30
  return e;
22
31
  }
23
32
  //#endregion
24
33
  //#region src/patterns/AppearanceControl/AppearanceControl.tsx
25
- var W = {
34
+ var H = {
26
35
  base: {
27
36
  control: "breeze:flex breeze:items-center breeze:gap-breeze-2 breeze:font-breeze-sans",
28
37
  group: "breeze:flex breeze:items-center breeze:gap-breeze-2",
@@ -33,7 +42,7 @@ var W = {
33
42
  size: {},
34
43
  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
44
  variant: {}
36
- }, de = [
45
+ }, Ce = [
37
46
  {
38
47
  message: "appearanceLight",
39
48
  value: "light"
@@ -47,30 +56,30 @@ var W = {
47
56
  value: "dark"
48
57
  }
49
58
  ];
50
- function fe(e) {
51
- return de.some((t) => t.value === e);
59
+ function we(e) {
60
+ return Ce.some((t) => t.value === e);
52
61
  }
53
- function pe() {
54
- let { appearance: n, getMessageLocale: r, messages: i, setAppearance: a } = U();
62
+ function Te() {
63
+ let { appearance: n, getMessageLocale: r, messages: i, setAppearance: a } = V();
55
64
  return /* @__PURE__ */ h("div", {
56
- className: W.base.control,
65
+ className: H.base.control,
57
66
  children: [/* @__PURE__ */ m("span", {
58
- className: W.base.label,
67
+ className: H.base.label,
59
68
  lang: r("appearance"),
60
69
  children: i.appearance
61
70
  }), /* @__PURE__ */ m(t, {
62
71
  "aria-label": i.appearance,
63
- className: W.base.group,
72
+ className: H.base.group,
64
73
  disallowEmptySelection: !0,
65
74
  lang: r("appearance"),
66
75
  onSelectionChange: (e) => {
67
76
  let [t] = e;
68
- fe(t) && a(t);
77
+ we(t) && a(t);
69
78
  },
70
79
  selectedKeys: [n],
71
80
  selectionMode: "single",
72
- children: de.map((t) => /* @__PURE__ */ m(e, {
73
- className: [W.base.option, W.state.selected].join(" "),
81
+ children: Ce.map((t) => /* @__PURE__ */ m(e, {
82
+ className: [H.base.option, H.state.selected].join(" "),
74
83
  id: t.value,
75
84
  lang: r(t.message),
76
85
  children: i[t.message]
@@ -80,7 +89,7 @@ function pe() {
80
89
  }
81
90
  //#endregion
82
91
  //#region src/primitives/Skeleton/Skeleton.tsx
83
- var G = {
92
+ var Ee = {
84
93
  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
94
  compound: {},
86
95
  size: {},
@@ -91,37 +100,37 @@ var G = {
91
100
  text: "breeze:block-size-breeze-3 breeze:inline-size-full breeze:rounded-breeze-xs"
92
101
  }
93
102
  };
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 = {
103
+ function U({ blockSize: e, inlineSize: t, label: n, shape: r = "text" }) {
104
+ let { getMessageLocale: i, messages: a } = V(), o = n?.trim() || void 0, s = e ?? t ?? "0.75rem", c = {
96
105
  blockSize: r === "circle" ? s : e,
97
106
  inlineSize: r === "circle" ? s : t
98
107
  };
99
108
  return /* @__PURE__ */ m("progress", {
100
109
  "aria-hidden": o === void 0 || void 0,
101
110
  "aria-label": o,
102
- className: [G.base.skeleton, G.variant[r]].join(" "),
111
+ className: [Ee.base.skeleton, Ee.variant[r]].join(" "),
103
112
  lang: o === a.loading.trim() ? i("loading") : void 0,
104
113
  style: c
105
114
  });
106
115
  }
107
116
  //#endregion
108
117
  //#region src/primitives/VisuallyHidden/VisuallyHidden.tsx
109
- var he = {
118
+ var De = {
110
119
  base: { hidden: "breeze:sr-only" },
111
120
  compound: {},
112
121
  size: {},
113
122
  state: {},
114
123
  variant: {}
115
124
  };
116
- function ge({ children: e }) {
125
+ function Oe({ children: e }) {
117
126
  return /* @__PURE__ */ m("span", {
118
- className: he.base.hidden,
127
+ className: De.base.hidden,
119
128
  children: e
120
129
  });
121
130
  }
122
131
  //#endregion
123
132
  //#region src/primitives/Badge/Badge.tsx
124
- var K = {
133
+ var W = {
125
134
  base: {
126
135
  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
136
  content: "breeze:[grid-area:1/1]",
@@ -138,29 +147,29 @@ var K = {
138
147
  warning: "breeze:bg-breeze-warn-soft breeze:text-breeze-warn"
139
148
  }
140
149
  };
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;
150
+ function ke({ "aria-label": e, children: t, loading: n = !1, variant: r = "neutral" }) {
151
+ let { messages: i } = V(), a = e?.trim() || void 0, o;
143
152
  return n ? o = /* @__PURE__ */ m("span", {
144
- className: K.base.skeleton,
145
- children: /* @__PURE__ */ m(me, {
153
+ className: W.base.skeleton,
154
+ children: /* @__PURE__ */ m(U, {
146
155
  blockSize: 8,
147
156
  inlineSize: "100%",
148
157
  label: i.loading,
149
158
  shape: "rectangle"
150
159
  })
151
- }) : a !== void 0 && (o = /* @__PURE__ */ m(ge, { children: a })), /* @__PURE__ */ h("span", {
160
+ }) : a !== void 0 && (o = /* @__PURE__ */ m(Oe, { children: a })), /* @__PURE__ */ h("span", {
152
161
  "aria-busy": n || void 0,
153
- className: [K.base.badge, K.variant[r]].join(" "),
162
+ className: [W.base.badge, W.variant[r]].join(" "),
154
163
  children: [/* @__PURE__ */ m("span", {
155
164
  "aria-hidden": n || a !== void 0 ? !0 : void 0,
156
- className: [K.base.content, n && K.state.contentLoading].filter(Boolean).join(" "),
165
+ className: [W.base.content, n && W.state.contentLoading].filter(Boolean).join(" "),
157
166
  children: t
158
167
  }), o]
159
168
  });
160
169
  }
161
170
  //#endregion
162
171
  //#region src/primitives/Button/Button.tsx
163
- var q = {
172
+ var G = {
164
173
  base: {
165
174
  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
175
  label: "breeze:[grid-area:1/1]",
@@ -190,23 +199,23 @@ var q = {
190
199
  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
200
  }
192
201
  };
193
- function ve() {
194
- let e = v(_), { getMessageLocale: t, messages: n } = U();
202
+ function Ae() {
203
+ let e = v(_), { getMessageLocale: t, messages: n } = V();
195
204
  return /* @__PURE__ */ m("progress", {
196
205
  "aria-label": n.loading,
197
- className: q.state.loadingStatus,
206
+ className: G.state.loadingStatus,
198
207
  id: e?.id,
199
208
  lang: t("loading")
200
209
  });
201
210
  }
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();
211
+ function je({ "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" }) {
212
+ V();
204
213
  let C = [
205
- q.base.button,
206
- q.variant[S],
207
- q.size[y],
208
- c && q.state.disabled,
209
- d && q.state.loading
214
+ G.base.button,
215
+ G.variant[S],
216
+ G.size[y],
217
+ c && G.state.disabled,
218
+ d && G.state.loading
210
219
  ].filter(Boolean).join(" ");
211
220
  return /* @__PURE__ */ h(g, {
212
221
  "aria-controls": e,
@@ -232,18 +241,18 @@ function ye({ "aria-controls": e, "aria-describedby": t, "aria-expanded": n, "ar
232
241
  type: b,
233
242
  value: x,
234
243
  children: [/* @__PURE__ */ m("span", {
235
- className: [q.base.label, d && q.state.loadingLabel].filter(Boolean).join(" "),
244
+ className: [G.base.label, d && G.state.loadingLabel].filter(Boolean).join(" "),
236
245
  children: s
237
- }), d && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(ve, {}), /* @__PURE__ */ m("span", {
246
+ }), d && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(Ae, {}), /* @__PURE__ */ m("span", {
238
247
  "aria-hidden": "true",
239
- className: [q.base.skeleton, q.compound.loading[S]].join(" "),
248
+ className: [G.base.skeleton, G.compound.loading[S]].join(" "),
240
249
  "data-breeze-skeleton": ""
241
250
  })] })]
242
251
  });
243
252
  }
244
253
  //#endregion
245
254
  //#region src/primitives/layout.accessibility.ts
246
- function J(e, t) {
255
+ function K(e, t) {
247
256
  let n = e?.trim() || void 0;
248
257
  return {
249
258
  accessibleLabel: n,
@@ -252,7 +261,7 @@ function J(e, t) {
252
261
  }
253
262
  //#endregion
254
263
  //#region src/primitives/Card/Card.tsx
255
- var be = {
264
+ var Me = {
256
265
  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
266
  compound: {},
258
267
  size: {
@@ -272,22 +281,144 @@ var be = {
272
281
  surface: "breeze:bg-breeze-surface"
273
282
  }
274
283
  };
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);
284
+ function Ne({ "aria-label": e, children: t, clipped: n = !0, element: i = "div", padding: a = 4, variant: o = "surface" }) {
285
+ let { accessibleLabel: s, role: c } = K(e, i);
277
286
  return r(i, {
278
287
  "aria-label": s,
279
288
  className: [
280
- be.base.card,
281
- be.variant[o],
282
- be.size[a],
283
- n && be.state.clipped
289
+ Me.base.card,
290
+ Me.variant[o],
291
+ Me.size[a],
292
+ n && Me.state.clipped
284
293
  ].filter(Boolean).join(" "),
285
294
  role: c
286
295
  }, t);
287
296
  }
288
297
  //#endregion
298
+ //#region src/primitives/Field/field.styles.ts
299
+ var q = {
300
+ base: {
301
+ control: "breeze:relative breeze:inline-grid breeze:min-inline-size-0 breeze:inline-size-full",
302
+ description: "breeze:m-0 breeze:text-breeze-xs breeze:font-normal breeze:leading-breeze-snug breeze:text-breeze-ink-3",
303
+ error: "breeze:m-0 breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug breeze:text-breeze-danger",
304
+ 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",
305
+ label: "breeze:m-0 breeze:text-breeze-xs breeze:font-medium breeze:leading-breeze-snug breeze:text-breeze-ink",
306
+ root: "breeze:flex breeze:min-inline-size-0 breeze:flex-col breeze:gap-breeze-2",
307
+ skeleton: "breeze:pointer-events-none breeze:absolute breeze:[inset-block:0] breeze:[inset-inline:0]"
308
+ },
309
+ compound: {},
310
+ size: {},
311
+ state: { loadingInput: "breeze:!opacity-0" },
312
+ variant: {}
313
+ };
314
+ function J(...e) {
315
+ return e.filter(Boolean).join(" ");
316
+ }
317
+ //#endregion
318
+ //#region src/primitives/Field/field.presentation.tsx
319
+ function Pe({ label: e, loading: t }) {
320
+ return /* @__PURE__ */ m(C, {
321
+ className: q.base.label,
322
+ children: t ? /* @__PURE__ */ m(U, {
323
+ blockSize: "1lh",
324
+ inlineSize: "12em",
325
+ shape: "rectangle"
326
+ }) : e
327
+ });
328
+ }
329
+ function Fe({ description: e, error: t, loading: n }) {
330
+ return /* @__PURE__ */ h(p, { children: [e && /* @__PURE__ */ m(w, {
331
+ className: q.base.description,
332
+ slot: "description",
333
+ children: n ? /* @__PURE__ */ m(U, {
334
+ blockSize: "1lh",
335
+ inlineSize: "12em",
336
+ shape: "rectangle"
337
+ }) : e
338
+ }), t && (n ? /* @__PURE__ */ m("span", {
339
+ "aria-hidden": "true",
340
+ className: q.base.error,
341
+ children: /* @__PURE__ */ m(U, {
342
+ blockSize: "1lh",
343
+ inlineSize: "12em",
344
+ shape: "rectangle"
345
+ })
346
+ }) : /* @__PURE__ */ m(S, {
347
+ className: q.base.error,
348
+ children: t
349
+ }))] });
350
+ }
351
+ //#endregion
352
+ //#region src/primitives/Checkbox/Checkbox.tsx
353
+ var Y = {
354
+ base: {
355
+ control: "breeze:relative breeze:inline-grid breeze:min-block-breeze-tap breeze:grid-flow-col breeze:items-center breeze:gap-breeze-2 breeze:cursor-pointer breeze:select-none breeze:font-breeze-sans breeze:text-breeze-sm breeze:font-medium breeze:leading-breeze-snug breeze:text-breeze-ink breeze:data-[disabled]:cursor-not-allowed breeze:data-[disabled]:opacity-60",
356
+ 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",
357
+ label: "breeze:[grid-area:1/2]",
358
+ skeleton: "breeze:pointer-events-none breeze:[grid-area:1/2]",
359
+ skeletonIndicator: "breeze:pointer-events-none breeze:[grid-area:1/1] breeze:block-size-breeze-5 breeze:inline-size-breeze-5"
360
+ },
361
+ compound: {},
362
+ size: {},
363
+ state: {},
364
+ variant: {}
365
+ };
366
+ function Ie({ 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: _ }) {
367
+ let { messages: v } = V(), S = y(d), C = t?.trim() || void 0, w = r?.trim() || void 0, T = n || s;
368
+ return /* @__PURE__ */ h(x, {
369
+ className: q.base.root,
370
+ defaultSelected: e,
371
+ form: i,
372
+ id: a,
373
+ inputRef: S,
374
+ "aria-label": s ? o : void 0,
375
+ isDisabled: T,
376
+ isInvalid: !s && w !== void 0,
377
+ isReadOnly: u,
378
+ isRequired: f,
379
+ isSelected: g,
380
+ name: c,
381
+ onChange: l,
382
+ value: _,
383
+ validationBehavior: "aria",
384
+ children: [/* @__PURE__ */ m(b, {
385
+ className: Y.base.control,
386
+ children: ({ isFocusVisible: e, isSelected: t }) => /* @__PURE__ */ h(p, { children: [s && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
387
+ "aria-hidden": "true",
388
+ className: Y.base.skeletonIndicator,
389
+ children: /* @__PURE__ */ m(U, {
390
+ blockSize: "100%",
391
+ inlineSize: "100%",
392
+ shape: "rectangle"
393
+ })
394
+ }), /* @__PURE__ */ m("span", {
395
+ className: Y.base.skeleton,
396
+ children: /* @__PURE__ */ m(U, {
397
+ blockSize: "1lh",
398
+ inlineSize: "12em",
399
+ label: v.loading,
400
+ shape: "rectangle"
401
+ })
402
+ })] }), !s && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
403
+ "aria-hidden": "true",
404
+ className: Y.base.indicator,
405
+ "data-focus-visible": e || void 0,
406
+ "data-selected": t || void 0,
407
+ children: t ? "✓" : ""
408
+ }), /* @__PURE__ */ m("span", {
409
+ className: Y.base.label,
410
+ children: o
411
+ })] })] })
412
+ }), /* @__PURE__ */ m(Fe, {
413
+ description: C,
414
+ error: w,
415
+ loading: s
416
+ })]
417
+ });
418
+ }
419
+ //#endregion
289
420
  //#region src/primitives/Container/Container.tsx
290
- var Se = {
421
+ var Le = {
291
422
  base: { container: "breeze:mx-auto breeze:inline-size-full breeze:min-inline-size-0" },
292
423
  compound: {},
293
424
  size: {
@@ -298,21 +429,21 @@ var Se = {
298
429
  state: { padded: "breeze:ps-breeze-4 breeze:pe-breeze-4 breeze:breeze-md:ps-breeze-7 breeze:breeze-md:pe-breeze-7" },
299
430
  variant: {}
300
431
  };
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);
432
+ function Re({ "aria-label": e, children: t, element: n = "div", padded: i = !0, width: a = "page" }) {
433
+ let { accessibleLabel: o, role: s } = K(e, n);
303
434
  return r(n, {
304
435
  "aria-label": o,
305
436
  className: [
306
- Se.base.container,
307
- Se.size[a],
308
- i && Se.state.padded
437
+ Le.base.container,
438
+ Le.size[a],
439
+ i && Le.state.padded
309
440
  ].filter(Boolean).join(" "),
310
441
  role: s
311
442
  }, t);
312
443
  }
313
444
  //#endregion
314
445
  //#region src/overlays/OverlayStack.ts
315
- function we() {
446
+ function ze() {
316
447
  let e = [], t = /* @__PURE__ */ new Set(), n = () => t.forEach((e) => e());
317
448
  return {
318
449
  getSnapshot: () => e,
@@ -328,15 +459,15 @@ function we() {
328
459
  })
329
460
  };
330
461
  }
331
- var Te = n(null);
332
- function Ee() {
333
- let e = a(Te);
462
+ var Be = n(null);
463
+ function Ve() {
464
+ let e = a(Be);
334
465
  if (!e) throw Error("Breeze components must be rendered within BreezeProvider.");
335
466
  return 100 + f(e.subscribe, e.getSnapshot, e.getSnapshot).length * 2;
336
467
  }
337
- var De = n(null);
338
- function Oe(e, t, n) {
339
- let r = a(Te), i = a(De), o = s();
468
+ var He = n(null);
469
+ function Ue(e, t, n) {
470
+ let r = a(Be), i = a(He), o = s();
340
471
  if (!r) throw Error("Breeze components must be rendered within BreezeProvider.");
341
472
  let l = f(r.subscribe, r.getSnapshot, r.getSnapshot), u = i?.id;
342
473
  c(() => () => r.remove(o), [o, r]), c(() => {
@@ -375,12 +506,12 @@ function Oe(e, t, n) {
375
506
  }
376
507
  //#endregion
377
508
  //#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);
509
+ var We = n(null), Ge = "BreezeProvider portalContainer must belong to the current document and light DOM.";
510
+ function Ke({ children: e, portalContainer: t, locale: n }) {
511
+ let { direction: r } = re(), [i] = d(ze), [a, o] = d(null);
381
512
  return c(() => {
382
513
  let e = t ?? document.body;
383
- if (e.ownerDocument !== document || e.getRootNode() !== document) throw Error(Ae);
514
+ if (e.ownerDocument !== document || e.getRootNode() !== document) throw Error(Ge);
384
515
  let n = e.ownerDocument.createElement("div");
385
516
  return n.dataset.breezeRoot = "", n.dataset.breezePortal = "", e.append(n), o(n), () => n.remove();
386
517
  }, [t]), c(() => {
@@ -389,23 +520,23 @@ function je({ children: e, portalContainer: t, locale: n }) {
389
520
  r,
390
521
  a,
391
522
  n
392
- ]), /* @__PURE__ */ m(C, {
523
+ ]), /* @__PURE__ */ m(te, {
393
524
  getContainer: () => a,
394
- children: /* @__PURE__ */ m(Te, {
525
+ children: /* @__PURE__ */ m(Be, {
395
526
  value: i,
396
- children: /* @__PURE__ */ m(ke, {
527
+ children: /* @__PURE__ */ m(We, {
397
528
  value: a,
398
529
  children: e
399
530
  })
400
531
  })
401
532
  });
402
533
  }
403
- function Me() {
404
- return a(ke);
534
+ function qe() {
535
+ return a(We);
405
536
  }
406
537
  //#endregion
407
538
  //#region src/overlays/OverlaySurface.tsx
408
- var Y = {
539
+ var X = {
409
540
  base: {
410
541
  content: "breeze-overlay-content",
411
542
  header: "breeze-overlay-header",
@@ -420,24 +551,24 @@ var Y = {
420
551
  fullscreen: "breeze-fullscreen",
421
552
  popover: "breeze-popover"
422
553
  }
423
- }, Ne = "Breeze overlay triggers and portal containers must belong to the current document and light DOM.";
424
- function X(e) {
554
+ }, Je = "Breeze overlay triggers and portal containers must belong to the current document and light DOM.";
555
+ function Ye(e) {
425
556
  return typeof e == "object" && !!e && "nodeType" in e && typeof e.contains == "function";
426
557
  }
427
- function Pe(e) {
558
+ function Xe(e) {
428
559
  return e.dataset?.breezeOverlay !== void 0;
429
560
  }
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);
561
+ function Ze({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, onOpenChange: s, open: f, placement: g = "bottom", title: _, trigger: v }) {
562
+ let { getMessageLocale: y, messages: b } = V(), x = r === "popover" || r === "fullscreen", S = qe(), C = a(He), [w, te] = d(C === null);
432
563
  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);
564
+ let [ne, re] = d(t), O = f ?? ne, k = C?.open ?? !0, A = O && k, j = u(null), ie = u(null), ae = u(null), [oe, se] = d(!1), ce = u(!1), M = u(null), N = u(null), P = u(null), F = u(null), le = u(!1);
434
565
  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) => {
566
+ if (S && j.current && (j.current.ownerDocument !== document || j.current.getRootNode() !== document || S.ownerDocument !== document || S.getRootNode() !== document)) throw Error(Je);
567
+ }, [S]);
568
+ let ue = l(() => r === "fullscreen" ? { current: S } : j, [S, r]), I = Ue(r, A && w && S !== null, A || oe), L = i((e) => {
438
569
  if (!e && !k) {
439
- if (ce.current) return;
440
- O && (ce.current = !0);
570
+ if (le.current) return;
571
+ O && (le.current = !0);
441
572
  }
442
573
  f === void 0 && re(e), s?.(e);
443
574
  }, [
@@ -447,187 +578,187 @@ function Fe({ children: e, defaultOpen: t = !1, dismissible: n = !0, kind: r, on
447
578
  O
448
579
  ]);
449
580
  o(() => {
450
- k ? ce.current = !1 : O && R(!1);
581
+ k ? le.current = !1 : O && L(!1);
451
582
  }, [
452
- R,
583
+ L,
453
584
  k,
454
585
  O
455
586
  ]), o(() => {
456
- if (r !== "popover" || !A || !n || !L.topmost || !E) return;
587
+ if (r !== "popover" || !A || !n || !I.topmost || !S) return;
457
588
  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);
589
+ N.current !== null && (clearTimeout(N.current), N.current = null);
590
+ }, t = (e, t) => !!e && !!t && (e === t || e.contains(t) || t.contains(e)), i = (e) => e.button === 0, a = (e) => Ye(e) && !ie.current?.contains(e) && !j.current?.contains(e), o = (t) => {
591
+ i(t) && (e(), F.current = null, P.current = Ye(t.target) ? t.target : null);
461
592
  }, s = (n) => {
462
593
  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);
594
+ let r = P.current, o = Ye(n.target) ? n.target : null;
595
+ !a(r) || !a(o) || (e(), N.current = setTimeout(() => {
596
+ N.current = null;
597
+ let e = F.current, n = P.current;
598
+ F.current = null, P.current = null, !(t(e, o) && t(e, n)) && L(!1);
468
599
  }, 0));
469
600
  }, c = () => {
470
- e(), I.current = null, F.current = null;
601
+ e(), F.current = null, P.current = null;
471
602
  }, l = (n) => {
472
- let r = X(n.target) ? n.target : null;
603
+ let r = Ye(n.target) ? n.target : null;
473
604
  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);
605
+ let e = F.current, n = P.current;
606
+ if (F.current = null, P.current = null, t(e, r) && t(e, n)) return;
607
+ L(!1);
477
608
  }
478
609
  };
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;
610
+ return S.ownerDocument.addEventListener("pointerdown", o, !0), S.ownerDocument.addEventListener("pointerup", s, !0), S.ownerDocument.addEventListener("pointercancel", c, !0), S.ownerDocument.addEventListener("click", l, !0), () => {
611
+ e(), S.ownerDocument.removeEventListener("pointerdown", o, !0), S.ownerDocument.removeEventListener("pointerup", s, !0), S.ownerDocument.removeEventListener("pointercancel", c, !0), S.ownerDocument.removeEventListener("click", l, !0), F.current = null, P.current = null;
481
612
  };
482
613
  }, [
483
- R,
614
+ L,
484
615
  n,
485
- E,
616
+ S,
486
617
  r,
487
- L.topmost,
618
+ I.topmost,
488
619
  A
489
620
  ]);
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;
621
+ let de = C?.restoreFocus, fe = C?.id, R = i(() => {
622
+ let e = j.current, t = S?.ownerDocument, n = t?.activeElement;
623
+ if (!t || !S) return;
624
+ let r = fe ? t.getElementById(fe) : null;
494
625
  if (!(n === t.body || n === r || n?.closest("[data-exiting]"))) return;
495
626
  if (!e?.isConnected) {
496
- ue?.();
627
+ de?.();
497
628
  return;
498
629
  }
499
- let i = E.querySelector("[data-breeze-topmost=\"true\"]");
630
+ let i = S.querySelector("[data-breeze-topmost=\"true\"]");
500
631
  (!i || i.contains(e)) && !e.closest("[inert], [aria-hidden=\"true\"]") && e.focus({ preventScroll: !0 });
501
632
  }, [
502
- E,
503
- z,
504
- ue
505
- ]), V = i(() => {
506
- N.current !== null && (clearTimeout(N.current), N.current = null);
507
- }, []), H = i((e) => {
633
+ S,
634
+ fe,
635
+ de
636
+ ]), z = i(() => {
637
+ M.current !== null && (clearTimeout(M.current), M.current = null);
638
+ }, []), B = i((e) => {
508
639
  queueMicrotask(() => {
509
- !e.isConnected || e.closest("[inert], [data-exiting]") || (V(), e.focus({ preventScroll: !0 }), N.current = setTimeout(() => {
640
+ !e.isConnected || e.closest("[inert], [data-exiting]") || (z(), e.focus({ preventScroll: !0 }), M.current = setTimeout(() => {
510
641
  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;
642
+ e.isConnected && !e.closest("[inert], [data-exiting]") && (n === e || n === t.body) && (ce.current = !0, e.blur(), e.focus({ preventScroll: !0 }), ce.current = !1), M.current = null;
512
643
  }, 500));
513
644
  });
514
- }, [V]), W = u(A);
645
+ }, [z]), pe = u(A);
515
646
  o(() => {
516
- let e = W.current;
517
- W.current = A, !(!T || !A || e || !M.current) && H(M.current);
647
+ let e = pe.current;
648
+ pe.current = A, !(!x || !A || e || !ae.current) && B(ae.current);
518
649
  }, [
519
- H,
520
- T,
650
+ B,
651
+ x,
521
652
  A
522
653
  ]);
523
- let de = i((e) => {
524
- M.current = e;
654
+ let me = i((e) => {
655
+ ae.current = e;
525
656
  let t = () => {
526
- V(), M.current = null, oe(!1), requestAnimationFrame(B);
657
+ z(), ae.current = null, se(!1), requestAnimationFrame(R);
527
658
  };
528
659
  if (!e) {
529
660
  t();
530
661
  return;
531
662
  }
532
- return oe(!0), T && H(e), t;
663
+ return se(!0), x && B(e), t;
533
664
  }, [
534
- V,
535
- H,
536
- T,
537
- B
538
- ]), fe = l(() => ({
539
- id: L.id,
665
+ z,
666
+ B,
667
+ x,
668
+ R
669
+ ]), he = l(() => ({
670
+ id: I.id,
540
671
  open: A,
541
- restoreFocus: B
672
+ restoreFocus: R
542
673
  }), [
543
- L.id,
674
+ I.id,
544
675
  A,
545
- B
546
- ]), pe = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
547
- className: Y.base.header,
676
+ R
677
+ ]), ge = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
678
+ className: X.base.header,
548
679
  children: [/* @__PURE__ */ m("h2", {
549
- className: Y.base.title,
680
+ className: X.base.title,
550
681
  children: _
551
682
  }), /* @__PURE__ */ m("span", {
552
- lang: C("close"),
553
- children: /* @__PURE__ */ m(ye, {
554
- onAction: () => R(!1),
683
+ lang: y("close"),
684
+ children: /* @__PURE__ */ m(je, {
685
+ onAction: () => L(!1),
555
686
  variant: "quiet",
556
- children: w.close
687
+ children: b.close
557
688
  })
558
689
  })]
559
- }), e] }), G = /* @__PURE__ */ m(De, {
560
- value: fe,
561
- children: T ? /* @__PURE__ */ m("section", {
690
+ }), e] }), _e = /* @__PURE__ */ m(He, {
691
+ value: he,
692
+ children: x ? /* @__PURE__ */ m("section", {
562
693
  "aria-label": _,
563
- className: Y.base.content,
564
- id: L.id,
694
+ className: X.base.content,
695
+ id: I.id,
565
696
  onBlur: (e) => {
566
- if (se.current) {
697
+ if (ce.current) {
567
698
  e.stopPropagation();
568
699
  return;
569
700
  }
570
701
  let { relatedTarget: t } = e;
571
- r === "popover" && n && L.topmost && X(t) && !e.currentTarget.contains(t) && !j.current?.contains(t) && (I.current = t);
702
+ r === "popover" && n && I.topmost && Ye(t) && !e.currentTarget.contains(t) && !j.current?.contains(t) && (F.current = t);
572
703
  },
573
- ref: de,
704
+ ref: me,
574
705
  role: "dialog",
575
706
  tabIndex: -1,
576
- children: pe
577
- }) : /* @__PURE__ */ m(y, {
707
+ children: ge
708
+ }) : /* @__PURE__ */ m(T, {
578
709
  "aria-label": _,
579
- className: Y.base.content,
580
- id: L.id,
581
- ref: de,
582
- children: pe
710
+ className: X.base.content,
711
+ id: I.id,
712
+ ref: me,
713
+ children: ge
583
714
  })
584
715
  });
585
- return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(ye, {
586
- "aria-controls": A ? L.id : void 0,
716
+ return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(je, {
717
+ "aria-controls": A ? I.id : void 0,
587
718
  "aria-expanded": A,
588
719
  "aria-haspopup": "dialog",
589
- onAction: () => R(!T || !A),
720
+ onAction: () => L(!x || !A),
590
721
  ref: j,
591
722
  children: v
592
- }), E && ee && (T ? /* @__PURE__ */ m(S, {
593
- className: Y.variant[r],
723
+ }), S && w && (x ? /* @__PURE__ */ m(ee, {
724
+ className: X.variant[r],
594
725
  "data-breeze-overlay": r,
595
- "data-breeze-topmost": L.topmost,
596
- "data-breeze-interactive": L.interactive,
597
- inert: !L.interactive,
726
+ "data-breeze-topmost": I.topmost,
727
+ "data-breeze-interactive": I.interactive,
728
+ inert: !I.interactive,
598
729
  isNonModal: !0,
599
730
  isOpen: A,
600
- isKeyboardDismissDisabled: !n || !L.topmost,
601
- onOpenChange: R,
731
+ isKeyboardDismissDisabled: !n || !I.topmost,
732
+ onOpenChange: L,
602
733
  placement: g,
603
734
  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, {
735
+ shouldCloseOnInteractOutside: (e) => r === "popover" && n && I.topmost && !j.current?.contains(e),
736
+ style: { zIndex: I.zIndex },
737
+ triggerRef: ue,
738
+ children: _e
739
+ }) : /* @__PURE__ */ m(D, {
609
740
  className: "breeze-overlay-backdrop",
610
741
  "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,
742
+ "data-breeze-scrim": I.scrim,
743
+ "data-breeze-topmost": I.topmost,
744
+ "data-breeze-interactive": I.interactive,
745
+ inert: !I.interactive,
746
+ isDismissable: n && I.topmost,
747
+ isKeyboardDismissDisabled: !n || !I.topmost,
617
748
  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
749
+ onOpenChange: L,
750
+ shouldCloseOnInteractOutside: (e) => I.topmost && Xe(e),
751
+ style: { zIndex: I.zIndex },
752
+ children: /* @__PURE__ */ m(E, {
753
+ className: X.variant[r],
754
+ children: _e
624
755
  })
625
756
  }))] });
626
757
  }
627
758
  //#endregion
628
759
  //#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, {
760
+ function Qe({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o }) {
761
+ return /* @__PURE__ */ m(Ze, {
631
762
  defaultOpen: t,
632
763
  dismissible: n,
633
764
  onOpenChange: r,
@@ -640,8 +771,8 @@ function Ie({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
640
771
  }
641
772
  //#endregion
642
773
  //#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, {
774
+ function $e({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o }) {
775
+ return /* @__PURE__ */ m(Ze, {
645
776
  defaultOpen: t,
646
777
  dismissible: n,
647
778
  onOpenChange: r,
@@ -654,7 +785,7 @@ function Le({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
654
785
  }
655
786
  //#endregion
656
787
  //#region src/primitives/Grid/Grid.tsx
657
- var Re = {
788
+ var et = {
658
789
  base: { grid: "breeze:grid breeze:min-inline-size-0" },
659
790
  compound: { columns: {
660
791
  1: {
@@ -690,48 +821,48 @@ var Re = {
690
821
  state: {},
691
822
  variant: {}
692
823
  };
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);
824
+ function tt({ "aria-label": e, children: t, collapseBelow: n = "md", columns: i = 2, element: a = "div", gap: o = 4 }) {
825
+ let { accessibleLabel: s, role: c } = K(e, a);
695
826
  return r(a, {
696
827
  "aria-label": s,
697
828
  className: [
698
- Re.base.grid,
699
- Re.compound.columns[i][n],
700
- Re.size[o]
829
+ et.base.grid,
830
+ et.compound.columns[i][n],
831
+ et.size[o]
701
832
  ].join(" "),
702
833
  role: c
703
834
  }, t);
704
835
  }
705
836
  //#endregion
706
837
  //#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 = {
838
+ var nt = {
839
+ add: fe,
840
+ back: ce,
841
+ building: j,
842
+ calendar: ie,
843
+ camera: ae,
844
+ check: oe,
845
+ clock: N,
846
+ close: he,
847
+ delete: z,
848
+ document: le,
849
+ download: P,
850
+ expand: se,
851
+ forward: M,
852
+ lock: L,
853
+ money: I,
854
+ moneyIn: O,
855
+ moneyOut: k,
856
+ more: F,
857
+ next: M,
858
+ notifications: A,
859
+ overview: ue,
860
+ people: me,
861
+ settings: R,
862
+ signOut: de,
863
+ upload: pe,
864
+ warning: B
865
+ }, rt = {
735
866
  base: { icon: "breeze:block breeze:shrink-0" },
736
867
  compound: {},
737
868
  size: {
@@ -741,20 +872,20 @@ var Be = {
741
872
  },
742
873
  state: { logicalDirection: "breeze:rtl:rotate-180" },
743
874
  variant: {}
744
- }, He = /* @__PURE__ */ new Set([
875
+ }, it = /* @__PURE__ */ new Set([
745
876
  "back",
746
877
  "forward",
747
878
  "next"
748
879
  ]);
749
- function Ue({ label: e, name: t, size: n = "md" }) {
750
- let r = Be[t], i = e?.trim() || void 0;
880
+ function at({ label: e, name: t, size: n = "md" }) {
881
+ let r = nt[t], i = e?.trim() || void 0;
751
882
  return /* @__PURE__ */ m(r, {
752
883
  "aria-hidden": i === void 0 || void 0,
753
884
  "aria-label": i,
754
885
  className: [
755
- Ve.base.icon,
756
- Ve.size[n],
757
- He.has(t) && Ve.state.logicalDirection
886
+ rt.base.icon,
887
+ rt.size[n],
888
+ it.has(t) && rt.state.logicalDirection
758
889
  ].filter(Boolean).join(" "),
759
890
  focusable: "false",
760
891
  role: i === void 0 ? void 0 : "img",
@@ -763,7 +894,7 @@ function Ue({ label: e, name: t, size: n = "md" }) {
763
894
  }
764
895
  //#endregion
765
896
  //#region src/primitives/IconTile/IconTile.tsx
766
- var We = {
897
+ var ot = {
767
898
  base: { tile: "breeze:inline-flex breeze:shrink-0 breeze:items-center breeze:justify-center" },
768
899
  compound: {},
769
900
  size: {
@@ -785,15 +916,15 @@ var We = {
785
916
  }
786
917
  }
787
918
  };
788
- function Ge({ label: e, name: t, shape: n = "square", size: r = "lg", tone: i = "brand" }) {
919
+ function st({ label: e, name: t, shape: n = "square", size: r = "lg", tone: i = "brand" }) {
789
920
  return /* @__PURE__ */ m("span", {
790
921
  className: [
791
- We.base.tile,
792
- We.variant.tone[i],
793
- We.variant.shape[n],
794
- We.size[r]
922
+ ot.base.tile,
923
+ ot.variant.tone[i],
924
+ ot.variant.shape[n],
925
+ ot.size[r]
795
926
  ].join(" "),
796
- children: /* @__PURE__ */ m(Ue, {
927
+ children: /* @__PURE__ */ m(at, {
797
928
  label: e,
798
929
  name: t,
799
930
  size: r === "lg" ? "md" : "sm"
@@ -802,7 +933,7 @@ function Ge({ label: e, name: t, shape: n = "square", size: r = "lg", tone: i =
802
933
  }
803
934
  //#endregion
804
935
  //#region src/primitives/Inline/Inline.tsx
805
- var Z = {
936
+ var ct = {
806
937
  base: { inline: "breeze:flex breeze:min-inline-size-0" },
807
938
  compound: {},
808
939
  size: {
@@ -832,24 +963,121 @@ var Z = {
832
963
  }
833
964
  }
834
965
  };
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);
966
+ function lt({ "aria-label": e, children: t, element: n = "div", gap: i = 3, justify: a = "start", verticalAlign: o = "center", wrap: s = !1 }) {
967
+ let { accessibleLabel: c, role: l } = K(e, n);
837
968
  return r(n, {
838
969
  "aria-label": c,
839
970
  className: [
840
- Z.base.inline,
841
- Z.variant.align[o],
842
- Z.variant.justify[a],
843
- Z.size[i],
844
- s && Z.state.wrap
971
+ ct.base.inline,
972
+ ct.variant.align[o],
973
+ ct.variant.justify[a],
974
+ ct.size[i],
975
+ s && ct.state.wrap
845
976
  ].filter(Boolean).join(" "),
846
977
  role: l
847
978
  }, t);
848
979
  }
849
980
  //#endregion
981
+ //#region src/primitives/NumberField/NumberField.tsx
982
+ var Z = {
983
+ base: {
984
+ group: "breeze:relative breeze:inline-flex breeze:min-block-breeze-md breeze:min-inline-size-0 breeze:inline-size-full breeze:items-stretch breeze:overflow-hidden breeze:rounded-breeze-ctl breeze:border breeze:border-solid breeze:border-breeze-line-strong breeze:bg-breeze-surface breeze:has-[input[data-focus-visible]]:outline-2 breeze:has-[input[data-focus-visible]]:outline-solid breeze:has-[input[data-focus-visible]]:outline-breeze-brand breeze:has-[input[data-invalid]]:border-breeze-danger breeze:data-[disabled]:cursor-not-allowed breeze:data-[disabled]:bg-breeze-sunken",
985
+ 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",
986
+ skeleton: "breeze:pointer-events-none breeze:absolute breeze:[inset-block:0] breeze:[inset-inline:0]",
987
+ 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]"
988
+ },
989
+ compound: {},
990
+ size: {},
991
+ state: {
992
+ loadingGroup: "breeze:!bg-transparent breeze:!border-transparent breeze:!opacity-100 breeze:!overflow-visible",
993
+ loadingInput: "breeze:!opacity-0",
994
+ loadingStepButton: "breeze:!opacity-0",
995
+ readOnlyGroup: "breeze:!bg-breeze-sunken"
996
+ },
997
+ variant: {}
998
+ };
999
+ function ut({ 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 }) {
1000
+ let { messages: T } = V(), E = i?.trim() || void 0, D = o?.trim() || void 0, ee = a || d;
1001
+ return /* @__PURE__ */ h(ve, {
1002
+ autoFocus: t,
1003
+ "aria-label": d ? u : void 0,
1004
+ className: q.base.root,
1005
+ defaultValue: n,
1006
+ form: s,
1007
+ formatOptions: c,
1008
+ id: l,
1009
+ isDisabled: ee,
1010
+ isInvalid: !d && D !== void 0,
1011
+ isReadOnly: b,
1012
+ isRequired: S,
1013
+ maxValue: f,
1014
+ minValue: p,
1015
+ name: _,
1016
+ onChange: v,
1017
+ step: C,
1018
+ validationBehavior: "aria",
1019
+ value: w,
1020
+ children: [
1021
+ /* @__PURE__ */ m(Pe, {
1022
+ label: u,
1023
+ loading: d
1024
+ }),
1025
+ /* @__PURE__ */ h(ge, {
1026
+ className: J(Z.base.group, b && !d && Z.state.readOnlyGroup, d && Z.state.loadingGroup),
1027
+ children: [
1028
+ /* @__PURE__ */ m(_e, {
1029
+ "aria-busy": d || void 0,
1030
+ className: J(q.base.input, Z.base.input, d && Z.state.loadingInput),
1031
+ autoComplete: e,
1032
+ placeholder: y,
1033
+ form: s,
1034
+ ref: x
1035
+ }),
1036
+ /* @__PURE__ */ m(g, {
1037
+ className: J(Z.base.stepButton, d && Z.state.loadingStepButton),
1038
+ render: (e) => r("button", {
1039
+ ...e,
1040
+ "aria-hidden": d || void 0,
1041
+ type: "button"
1042
+ }),
1043
+ slot: "decrement",
1044
+ type: "button",
1045
+ children: "−"
1046
+ }),
1047
+ /* @__PURE__ */ m(g, {
1048
+ className: J(Z.base.stepButton, d && Z.state.loadingStepButton),
1049
+ render: (e) => r("button", {
1050
+ ...e,
1051
+ "aria-hidden": d || void 0,
1052
+ type: "button"
1053
+ }),
1054
+ slot: "increment",
1055
+ type: "button",
1056
+ children: "+"
1057
+ }),
1058
+ d && /* @__PURE__ */ m("span", {
1059
+ className: Z.base.skeleton,
1060
+ children: /* @__PURE__ */ m(U, {
1061
+ blockSize: "100%",
1062
+ inlineSize: "100%",
1063
+ label: T.loading,
1064
+ shape: "rectangle"
1065
+ })
1066
+ })
1067
+ ]
1068
+ }),
1069
+ /* @__PURE__ */ m(Fe, {
1070
+ description: E,
1071
+ error: D,
1072
+ loading: d
1073
+ })
1074
+ ]
1075
+ });
1076
+ }
1077
+ //#endregion
850
1078
  //#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, {
1079
+ function dt({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open: i, title: a, trigger: o, placement: s }) {
1080
+ return /* @__PURE__ */ m(Ze, {
853
1081
  defaultOpen: t,
854
1082
  dismissible: n,
855
1083
  onOpenChange: r,
@@ -863,7 +1091,7 @@ function qe({ children: e, defaultOpen: t, dismissible: n, onOpenChange: r, open
863
1091
  }
864
1092
  //#endregion
865
1093
  //#region src/primitives/Separator/Separator.tsx
866
- var Je = {
1094
+ var ft = {
867
1095
  base: { separator: "breeze:m-0 breeze:shrink-0 breeze:border-0 breeze:bg-breeze-line breeze:forced-colors:bg-[CanvasText]" },
868
1096
  compound: {},
869
1097
  size: {},
@@ -873,15 +1101,15 @@ var Je = {
873
1101
  vertical: "breeze:block-size-full breeze:inline-size-breeze-px"
874
1102
  }
875
1103
  };
876
- function Ye({ orientation: e = "horizontal" }) {
1104
+ function pt({ orientation: e = "horizontal" }) {
877
1105
  return /* @__PURE__ */ m("hr", {
878
1106
  "aria-orientation": e,
879
- className: [Je.base.separator, Je.variant[e]].join(" ")
1107
+ className: [ft.base.separator, ft.variant[e]].join(" ")
880
1108
  });
881
1109
  }
882
1110
  //#endregion
883
1111
  //#region src/primitives/Stack/Stack.tsx
884
- var Xe = {
1112
+ var mt = {
885
1113
  base: { stack: "breeze:flex breeze:min-inline-size-0 breeze:flex-col" },
886
1114
  compound: {},
887
1115
  size: {
@@ -903,32 +1131,83 @@ var Xe = {
903
1131
  stretch: "breeze:items-stretch"
904
1132
  }
905
1133
  };
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);
1134
+ function ht({ "aria-label": e, children: t, element: n = "div", gap: i = 3, horizontalAlign: a = "stretch" }) {
1135
+ let { accessibleLabel: o, role: s } = K(e, n);
908
1136
  return r(n, {
909
1137
  "aria-label": o,
910
1138
  className: [
911
- Xe.base.stack,
912
- Xe.variant[a],
913
- Xe.size[i]
1139
+ mt.base.stack,
1140
+ mt.variant[a],
1141
+ mt.size[i]
914
1142
  ].join(" "),
915
1143
  role: s
916
1144
  }, t);
917
1145
  }
918
1146
  //#endregion
1147
+ //#region src/primitives/TextField/TextField.tsx
1148
+ function gt({ 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 }) {
1149
+ let { messages: b } = V(), x = r?.trim() || void 0, S = a?.trim() || void 0, C = i || l;
1150
+ return /* @__PURE__ */ h(ye, {
1151
+ className: q.base.root,
1152
+ defaultValue: n,
1153
+ "aria-label": l ? c : void 0,
1154
+ id: s,
1155
+ isDisabled: C,
1156
+ isInvalid: !l && S !== void 0,
1157
+ isReadOnly: p,
1158
+ isRequired: _,
1159
+ name: u,
1160
+ onChange: d,
1161
+ type: v,
1162
+ validationBehavior: "aria",
1163
+ value: y,
1164
+ children: [
1165
+ /* @__PURE__ */ m(Pe, {
1166
+ label: c,
1167
+ loading: l
1168
+ }),
1169
+ /* @__PURE__ */ h("span", {
1170
+ className: q.base.control,
1171
+ children: [/* @__PURE__ */ m(_e, {
1172
+ "aria-busy": l || void 0,
1173
+ className: J(q.base.input, l && q.state.loadingInput),
1174
+ autoComplete: e,
1175
+ autoFocus: t,
1176
+ form: o,
1177
+ placeholder: f,
1178
+ ref: g
1179
+ }), l && /* @__PURE__ */ m("span", {
1180
+ className: q.base.skeleton,
1181
+ children: /* @__PURE__ */ m(U, {
1182
+ blockSize: "100%",
1183
+ inlineSize: "100%",
1184
+ label: b.loading,
1185
+ shape: "rectangle"
1186
+ })
1187
+ })]
1188
+ }),
1189
+ /* @__PURE__ */ m(Fe, {
1190
+ description: x,
1191
+ error: S,
1192
+ loading: l
1193
+ })
1194
+ ]
1195
+ });
1196
+ }
1197
+ //#endregion
919
1198
  //#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) {
1199
+ var _t = 2600, vt = "BreezeProvider toastLimit must be a positive integer.", yt = "Toast components must be rendered within BreezeProvider.";
1200
+ function bt(e) {
922
1201
  return e.isIntersecting && e.intersectionRatio >= 1;
923
1202
  }
924
- function nt(e, t, n, r) {
1203
+ function xt(e, t, n, r) {
925
1204
  let i = Number(e.target.dataset.breezeToastId);
926
- t.has(i) && (tt(e) ? n(i) : r(i));
1205
+ t.has(i) && (bt(e) ? n(i) : r(i));
927
1206
  }
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);
1207
+ var St = n(null), Ct = n(!0), wt = n(null);
1208
+ function Tt({ children: e }) {
1209
+ V();
1210
+ let t = a(Ct), n = a(wt), [r, i] = d(() => n?.message ?? null);
932
1211
  return o(() => {
933
1212
  if (!t || typeof document < "u" && document.hidden || r === e) return;
934
1213
  let a = setTimeout(() => {
@@ -946,15 +1225,15 @@ function ot({ children: e }) {
946
1225
  "aria-live": "polite",
947
1226
  className: "breeze-toast",
948
1227
  role: "status",
949
- children: [/* @__PURE__ */ m(Ue, {
1228
+ children: [/* @__PURE__ */ m(at, {
950
1229
  name: "check",
951
1230
  size: "sm"
952
1231
  }), /* @__PURE__ */ m("span", { children: r })]
953
1232
  });
954
1233
  }
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);
1234
+ function Et({ children: e, limit: t }) {
1235
+ let n = qe(), r = Ve(), 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());
1236
+ if (!Number.isInteger(t) || t < 1) throw RangeError(vt);
958
1237
  let b = i((e, t) => {
959
1238
  let n = y.current.get(e);
960
1239
  n !== void 0 && (n.message = t);
@@ -989,7 +1268,7 @@ function st({ children: e, limit: t }) {
989
1268
  if (!s || typeof document < "u" && document.hidden || t !== void 0 && t.handle !== null) return;
990
1269
  let n = t ?? {
991
1270
  handle: null,
992
- remaining: Qe,
1271
+ remaining: _t,
993
1272
  startedAt: null
994
1273
  };
995
1274
  if (n.remaining <= 0) {
@@ -1023,7 +1302,7 @@ function st({ children: e, limit: t }) {
1023
1302
  }
1024
1303
  let o, c = setTimeout(() => {
1025
1304
  o = new IntersectionObserver((e) => {
1026
- e.forEach((e) => nt(e, r, D, w));
1305
+ e.forEach((e) => xt(e, r, D, w));
1027
1306
  }, { threshold: 1 }), Array.from(i.children).forEach((e) => {
1028
1307
  e instanceof HTMLElement && e.dataset.breezeToastId !== void 0 && !e.hidden && o?.observe(e);
1029
1308
  });
@@ -1041,11 +1320,11 @@ function st({ children: e, limit: t }) {
1041
1320
  D
1042
1321
  ]), o(() => C, [C]);
1043
1322
  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, {
1323
+ return /* @__PURE__ */ m(Ct, {
1045
1324
  value: s,
1046
- children: /* @__PURE__ */ h(rt, {
1325
+ children: /* @__PURE__ */ h(St, {
1047
1326
  value: x,
1048
- children: [e, n && B(/* @__PURE__ */ m("div", {
1327
+ children: [e, n && be(/* @__PURE__ */ m("div", {
1049
1328
  ref: a,
1050
1329
  className: "breeze-toast-region",
1051
1330
  "data-breeze-toast-region": "",
@@ -1058,11 +1337,11 @@ function st({ children: e, limit: t }) {
1058
1337
  "aria-hidden": n ? "true" : void 0,
1059
1338
  "data-breeze-toast-id": e,
1060
1339
  hidden: n,
1061
- children: /* @__PURE__ */ m(at, {
1340
+ children: /* @__PURE__ */ m(wt, {
1062
1341
  value: y.current.get(e) ?? null,
1063
- children: /* @__PURE__ */ m(it, {
1342
+ children: /* @__PURE__ */ m(Ct, {
1064
1343
  value: s && !n,
1065
- children: /* @__PURE__ */ m(ot, { children: t })
1344
+ children: /* @__PURE__ */ m(Tt, { children: t })
1066
1345
  })
1067
1346
  })
1068
1347
  }, e);
@@ -1071,9 +1350,9 @@ function st({ children: e, limit: t }) {
1071
1350
  })
1072
1351
  });
1073
1352
  }
1074
- function ct() {
1075
- let e = a(rt);
1076
- if (e === null) throw Error(et);
1353
+ function Dt() {
1354
+ let e = a(St);
1355
+ if (e === null) throw Error(yt);
1077
1356
  return e;
1078
1357
  }
1079
1358
  //#endregion
@@ -1114,10 +1393,10 @@ var Q = {
1114
1393
  }
1115
1394
  }
1116
1395
  };
1117
- function lt(e) {
1396
+ function Ot(e) {
1118
1397
  return e === "heading" ? "h2" : e === "title" ? "h3" : e === "body" ? "p" : "span";
1119
1398
  }
1120
- function ut(e, t, n, r) {
1399
+ function kt(e, t, n, r) {
1121
1400
  let i;
1122
1401
  try {
1123
1402
  i = new Intl.NumberFormat(n, {
@@ -1131,10 +1410,10 @@ function ut(e, t, n, r) {
1131
1410
  }
1132
1411
  return i.map((e) => e.type === "minusSign" ? "−" : e.value).join("");
1133
1412
  }
1134
- function dt(e, t, n) {
1413
+ function At(e, t, n) {
1135
1414
  let r;
1136
1415
  try {
1137
- r = V(e).toDate("UTC");
1416
+ r = xe(e).toDate("UTC");
1138
1417
  } catch {
1139
1418
  return e;
1140
1419
  }
@@ -1143,15 +1422,15 @@ function dt(e, t, n) {
1143
1422
  timeZone: "UTC"
1144
1423
  }).format(r);
1145
1424
  }
1146
- function ft(e, t, n) {
1147
- return e.loading ? /* @__PURE__ */ m(me, {
1425
+ function jt(e, t, n) {
1426
+ return e.loading ? /* @__PURE__ */ m(U, {
1148
1427
  blockSize: "1lh",
1149
1428
  inlineSize: "8em",
1150
1429
  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;
1430
+ }) : e.format === "currency" ? kt(e.value, e.currency, t, e.sign ?? "auto") : e.format === "date" ? At(e.value, t, e.dateStyle) : e.children;
1152
1431
  }
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 && [
1432
+ function Mt(e) {
1433
+ let { locale: t, messages: n } = V(), { "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 ?? Ot(_), y = i?.trim() || void 0, b = a ?? (_ === "money" || d ? "end" : "start"), x = a !== void 0 || _ === "money" || d, S = jt(e, t, n.loading), C = c !== void 0 || typeof o == "string" || typeof o == "number", w = !u && y !== void 0 && !C && [
1155
1434
  "h1",
1156
1435
  "h2",
1157
1436
  "h3",
@@ -1160,7 +1439,7 @@ function pt(e) {
1160
1439
  return !u && y !== void 0 && C && (S = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
1161
1440
  "aria-hidden": "true",
1162
1441
  children: S
1163
- }), /* @__PURE__ */ m(ge, { children: y })] })), r(v, {
1442
+ }), /* @__PURE__ */ m(Oe, { children: y })] })), r(v, {
1164
1443
  "aria-busy": u || void 0,
1165
1444
  "aria-label": T || w ? y : void 0,
1166
1445
  className: [
@@ -1190,11 +1469,11 @@ var $ = {
1190
1469
  };
1191
1470
  //#endregion
1192
1471
  //#region src/provider/BreezeProvider.tsx
1193
- function mt(e, t) {
1472
+ function Nt(e, t) {
1194
1473
  return e === "automatic" ? t ? "dark" : "light" : e;
1195
1474
  }
1196
- function ht({ children: e }) {
1197
- let { direction: t, locale: n } = T();
1475
+ function Pt({ children: e }) {
1476
+ let { direction: t, locale: n } = re();
1198
1477
  return /* @__PURE__ */ m("div", {
1199
1478
  "data-breeze-root": "",
1200
1479
  dir: t,
@@ -1202,8 +1481,8 @@ function ht({ children: e }) {
1202
1481
  children: e
1203
1482
  });
1204
1483
  }
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);
1484
+ function Ft({ appearance: e, children: t, defaultAppearance: n = "automatic", locale: r, messages: a, onAppearanceChange: s, portalContainer: u, toastLimit: f = 3 }) {
1485
+ let [p] = d(() => typeof window > "u" || !window.matchMedia ? null : window.matchMedia("(prefers-color-scheme: dark)")), [h, g] = d(() => p?.matches ?? !1), [_, v] = d(n), y = e ?? _, b = Nt(y, h);
1207
1486
  o(() => {
1208
1487
  if (!p) return;
1209
1488
  g(p.matches);
@@ -1220,9 +1499,9 @@ function gt({ appearance: e, children: t, defaultAppearance: n = "automatic", lo
1220
1499
  let x = i((t) => {
1221
1500
  e === void 0 && v(t), s?.(t);
1222
1501
  }, [e, s]), S = i((e) => a?.[e] === void 0 ? "en-GB" : r, [r, a]);
1223
- return /* @__PURE__ */ m(w, {
1502
+ return /* @__PURE__ */ m(ne, {
1224
1503
  locale: r,
1225
- children: /* @__PURE__ */ m(H, {
1504
+ children: /* @__PURE__ */ m(Se, {
1226
1505
  value: l(() => ({
1227
1506
  appearance: y,
1228
1507
  getMessageLocale: S,
@@ -1245,18 +1524,18 @@ function gt({ appearance: e, children: t, defaultAppearance: n = "automatic", lo
1245
1524
  b,
1246
1525
  x
1247
1526
  ]),
1248
- children: /* @__PURE__ */ m(je, {
1527
+ children: /* @__PURE__ */ m(Ke, {
1249
1528
  locale: r,
1250
1529
  portalContainer: u,
1251
- children: /* @__PURE__ */ m(st, {
1530
+ children: /* @__PURE__ */ m(Et, {
1252
1531
  limit: f,
1253
- children: /* @__PURE__ */ m(ht, { children: t })
1532
+ children: /* @__PURE__ */ m(Pt, { children: t })
1254
1533
  })
1255
1534
  })
1256
1535
  })
1257
1536
  });
1258
1537
  }
1259
1538
  //#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 };
1539
+ export { Te as AppearanceControl, ke as Badge, Ft as BreezeProvider, je as Button, Ne as Card, Ie as Checkbox, Re as Container, Qe as Dialog, $e as Drawer, tt as Grid, at as Icon, st as IconTile, lt as Inline, ut as NumberField, dt as Popover, pt as Separator, U as Skeleton, ht as Stack, gt as TextField, Tt as Toast, Mt as Typography, Oe as VisuallyHidden, Dt as useToast };
1261
1540
 
1262
1541
  //# sourceMappingURL=index.js.map