@motech-development/breeze-ui 3.3.0 → 3.4.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 +928 -893
- package/lib/index.js.map +1 -1
- package/lib/patterns/ApplicationShell/ApplicationShell.d.ts +1 -1
- package/lib/patterns/ApplicationShell/ApplicationShell.d.ts.map +1 -1
- package/lib/primitives/Table/Table.d.ts +4 -4
- package/lib/primitives/Table/Table.d.ts.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -4,72 +4,72 @@ import { Dialog as T, DialogTrigger as E } from "react-aria-components/Dialog";
|
|
|
4
4
|
import { Button as D } from "react-aria-components/Button";
|
|
5
5
|
import { Heading as O } from "react-aria-components/Heading";
|
|
6
6
|
import { Modal as k, ModalOverlay as ee } from "react-aria-components/Modal";
|
|
7
|
-
import { Text as
|
|
8
|
-
import { tv as
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { Link as
|
|
11
|
-
import { Menu as
|
|
12
|
-
import { DropZone as
|
|
13
|
-
import { PressResponder as
|
|
14
|
-
import { Group as
|
|
15
|
-
import { FieldError as
|
|
16
|
-
import { Input as
|
|
17
|
-
import { Label as
|
|
18
|
-
import { TextArea as
|
|
19
|
-
import { ToggleButton as
|
|
20
|
-
import { ToggleButtonGroup as
|
|
21
|
-
import { Disclosure as
|
|
22
|
-
import { Disclosure as
|
|
23
|
-
import { Breadcrumb as
|
|
24
|
-
import { Button as
|
|
25
|
-
import { parseAbsolute as
|
|
26
|
-
import { CheckboxButton as
|
|
27
|
-
import { CheckboxGroup as
|
|
28
|
-
import { Button as
|
|
29
|
-
import { ListBox as
|
|
30
|
-
import { GridLayout as
|
|
31
|
-
import { DateField as
|
|
32
|
-
import { Button as
|
|
33
|
-
import { DateRangePicker as
|
|
34
|
-
import { TimeField as
|
|
35
|
-
import { GridList as
|
|
36
|
-
import { useMeter as
|
|
37
|
-
import { NumberField as
|
|
38
|
-
import { Popover as
|
|
39
|
-
import { ProgressBar as
|
|
40
|
-
import { RadioButton as
|
|
41
|
-
import { RangeCalendar as
|
|
42
|
-
import { SearchField as
|
|
43
|
-
import { Button as
|
|
44
|
-
import { Slider as
|
|
45
|
-
import { SwitchButton as
|
|
46
|
-
import { Cell as
|
|
47
|
-
import { Tab as
|
|
48
|
-
import { Tag as
|
|
49
|
-
import { Button as
|
|
50
|
-
import { Toolbar as
|
|
51
|
-
import { Focusable as
|
|
52
|
-
import { UNSAFE_PortalProvider as
|
|
53
|
-
import { I18nProvider as
|
|
54
|
-
import { createPortal as
|
|
7
|
+
import { Text as A } from "react-aria-components/Text";
|
|
8
|
+
import { tv as j } from "tailwind-variants";
|
|
9
|
+
import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
10
|
+
import { Link as te } from "react-aria-components/Link";
|
|
11
|
+
import { Menu as ne, MenuItem as re, MenuTrigger as ie, Popover as ae, RootMenuTriggerStateContext as oe, SubmenuTrigger as se } from "react-aria-components/Menu";
|
|
12
|
+
import { DropZone as ce, Text as le } from "react-aria-components/DropZone";
|
|
13
|
+
import { PressResponder as ue } from "react-aria/private/interactions/PressResponder";
|
|
14
|
+
import { Group as de } from "react-aria-components/Group";
|
|
15
|
+
import { FieldError as fe } from "react-aria-components/FieldError";
|
|
16
|
+
import { Input as pe } from "react-aria-components/Input";
|
|
17
|
+
import { Label as me } from "react-aria-components/Label";
|
|
18
|
+
import { TextArea as he, TextField as ge } from "react-aria-components/TextField";
|
|
19
|
+
import { ToggleButton as _e } from "react-aria-components/ToggleButton";
|
|
20
|
+
import { ToggleButtonGroup as ve } from "react-aria-components/ToggleButtonGroup";
|
|
21
|
+
import { Disclosure as ye, DisclosureGroup as be } from "react-aria-components/DisclosureGroup";
|
|
22
|
+
import { Disclosure as xe, DisclosurePanel as Se } from "react-aria-components/Disclosure";
|
|
23
|
+
import { Breadcrumb as Ce, Breadcrumbs as we } from "react-aria-components/Breadcrumbs";
|
|
24
|
+
import { Button as Te, Calendar as Ee, CalendarCell as De, CalendarGrid as Oe, CalendarGridBody as ke, CalendarGridHeader as Ae, CalendarHeaderCell as je, CalendarHeading as Me } from "react-aria-components/Calendar";
|
|
25
|
+
import { parseAbsolute as Ne, parseDate as Pe, parseTime as Fe } from "@internationalized/date";
|
|
26
|
+
import { CheckboxButton as Ie, CheckboxField as Le } from "react-aria-components/Checkbox";
|
|
27
|
+
import { CheckboxGroup as Re } from "react-aria-components/CheckboxGroup";
|
|
28
|
+
import { Button as ze, ComboBox as Be, Input as Ve, ListBox as He, Popover as Ue } from "react-aria-components/ComboBox";
|
|
29
|
+
import { ListBox as We, ListBoxItem as Ge, ListBoxLoadMoreItem as Ke } from "react-aria-components/ListBox";
|
|
30
|
+
import { GridLayout as qe, ListLayout as Je, Size as Ye, TableLayout as Xe, Virtualizer as Ze } from "react-aria-components/Virtualizer";
|
|
31
|
+
import { DateField as Qe, DateInput as $e, DateSegment as et } from "react-aria-components/DateField";
|
|
32
|
+
import { Button as tt, Calendar as nt, DatePicker as rt, DatePickerStateContext as it, Group as at, Popover as ot } from "react-aria-components/DatePicker";
|
|
33
|
+
import { DateRangePicker as st, RangeCalendar as ct } from "react-aria-components/DateRangePicker";
|
|
34
|
+
import { TimeField as lt } from "react-aria-components/TimeField";
|
|
35
|
+
import { GridList as ut, GridListHeader as dt, GridListItem as ft, GridListLoadMoreItem as pt, GridListSection as mt } from "react-aria-components/GridList";
|
|
36
|
+
import { useMeter as ht } from "react-aria/useMeter";
|
|
37
|
+
import { NumberField as gt } from "react-aria-components/NumberField";
|
|
38
|
+
import { Popover as _t } from "react-aria-components/Popover";
|
|
39
|
+
import { ProgressBar as vt } from "react-aria-components/ProgressBar";
|
|
40
|
+
import { RadioButton as yt, RadioField as bt, RadioGroup as xt } from "react-aria-components/RadioGroup";
|
|
41
|
+
import { RangeCalendar as St } from "react-aria-components/RangeCalendar";
|
|
42
|
+
import { SearchField as Ct } from "react-aria-components/SearchField";
|
|
43
|
+
import { Button as wt, ListBox as Tt, Popover as Et, Select as Dt, SelectValue as Ot } from "react-aria-components/Select";
|
|
44
|
+
import { Slider as kt, SliderFill as At, SliderOutput as jt, SliderThumb as Mt, SliderTrack as Nt } from "react-aria-components/Slider";
|
|
45
|
+
import { SwitchButton as Pt, SwitchField as Ft } from "react-aria-components/Switch";
|
|
46
|
+
import { Cell as It, Column as Lt, Row as Rt, Table as zt, TableBody as Bt, TableFooter as Vt, TableHeader as Ht, TableLoadMoreItem as Ut } from "react-aria-components/Table";
|
|
47
|
+
import { Tab as Wt, TabList as Gt, TabPanel as Kt, TabPanels as qt, Tabs as Jt } from "react-aria-components/Tabs";
|
|
48
|
+
import { Tag as Yt, TagGroup as Xt, TagList as Zt } from "react-aria-components/TagGroup";
|
|
49
|
+
import { Button as Qt, Text as $t, UNSTABLE_Toast as en, UNSTABLE_ToastContent as tn, UNSTABLE_ToastQueue as nn, UNSTABLE_ToastRegion as rn } from "react-aria-components/Toast";
|
|
50
|
+
import { Toolbar as an } from "react-aria-components/Toolbar";
|
|
51
|
+
import { Focusable as on, Tooltip as sn, TooltipTrigger as cn } from "react-aria-components/Tooltip";
|
|
52
|
+
import { UNSAFE_PortalProvider as ln } from "react-aria/PortalProvider";
|
|
53
|
+
import { I18nProvider as un } from "react-aria-components/I18nProvider";
|
|
54
|
+
import { createPortal as dn } from "react-dom";
|
|
55
55
|
//#region src/internal/hooks/useForwardedRef.ts
|
|
56
|
-
function
|
|
56
|
+
function F(e) {
|
|
57
57
|
return _((t) => {
|
|
58
58
|
typeof e == "function" ? e(t) : e != null && Object.assign(e, { current: t });
|
|
59
59
|
}, [e]);
|
|
60
60
|
}
|
|
61
61
|
//#endregion
|
|
62
62
|
//#region src/provider/BreezeContext.ts
|
|
63
|
-
var
|
|
64
|
-
function
|
|
65
|
-
let e = v(
|
|
63
|
+
var fn = m(null);
|
|
64
|
+
function I() {
|
|
65
|
+
let e = v(fn);
|
|
66
66
|
if (e === null) throw Error("Breeze components must be rendered within BreezeProvider.");
|
|
67
67
|
return e;
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/formatting/FormattedDateTime/FormattedDateTime.tsx
|
|
71
|
-
function
|
|
72
|
-
let { locale: i, timeZone: a } =
|
|
71
|
+
function pn({ options: e, ref: t, value: n, ...r }) {
|
|
72
|
+
let { locale: i, timeZone: a } = I(), o = F(t), s = a === void 0 ? e : {
|
|
73
73
|
...e,
|
|
74
74
|
timeZone: a
|
|
75
75
|
};
|
|
@@ -81,8 +81,8 @@ function mn({ options: e, ref: t, value: n, ...r }) {
|
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/formatting/FormattedList/FormattedList.tsx
|
|
84
|
-
function
|
|
85
|
-
let { locale: i } =
|
|
84
|
+
function mn({ options: e, ref: t, values: n, ...r }) {
|
|
85
|
+
let { locale: i } = I(), a = F(t);
|
|
86
86
|
return h("span", {
|
|
87
87
|
...r,
|
|
88
88
|
ref: a
|
|
@@ -90,8 +90,8 @@ function hn({ options: e, ref: t, values: n, ...r }) {
|
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region src/formatting/FormattedNumber/FormattedNumber.tsx
|
|
93
|
-
function
|
|
94
|
-
let { locale: i } =
|
|
93
|
+
function hn({ options: e, ref: t, value: n, ...r }) {
|
|
94
|
+
let { locale: i } = I(), a = F(t);
|
|
95
95
|
return h("span", {
|
|
96
96
|
...r,
|
|
97
97
|
ref: a
|
|
@@ -99,8 +99,8 @@ function gn({ options: e, ref: t, value: n, ...r }) {
|
|
|
99
99
|
}
|
|
100
100
|
//#endregion
|
|
101
101
|
//#region src/formatting/RelativeTime/RelativeTime.tsx
|
|
102
|
-
function
|
|
103
|
-
let { locale: a } =
|
|
102
|
+
function gn({ options: e, ref: t, unit: n, value: r, ...i }) {
|
|
103
|
+
let { locale: a } = I(), o = F(t);
|
|
104
104
|
return h("span", {
|
|
105
105
|
...i,
|
|
106
106
|
ref: o
|
|
@@ -108,7 +108,7 @@ function _n({ options: e, ref: t, unit: n, value: r, ...i }) {
|
|
|
108
108
|
}
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region src/internal/react-aria/renderNativeButton.ts
|
|
111
|
-
function
|
|
111
|
+
function _n(e, t) {
|
|
112
112
|
return t === "submit" ? h("button", {
|
|
113
113
|
...e,
|
|
114
114
|
type: "submit"
|
|
@@ -119,7 +119,7 @@ function vn(e, t) {
|
|
|
119
119
|
}
|
|
120
120
|
//#endregion
|
|
121
121
|
//#region src/internal/styling/actions.ts
|
|
122
|
-
var
|
|
122
|
+
var L = j({
|
|
123
123
|
base: "breeze-action inline-flex shrink-0 items-center justify-center gap-2 border font-[family-name:var(--breeze-font-display)] font-bold no-underline transition-colors duration-[var(--breeze-duration-fast)] disabled:cursor-not-allowed disabled:opacity-55 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-55 data-[pressed]:translate-y-px",
|
|
124
124
|
compoundVariants: [
|
|
125
125
|
{
|
|
@@ -243,13 +243,13 @@ var I = A({
|
|
|
243
243
|
});
|
|
244
244
|
//#endregion
|
|
245
245
|
//#region src/primitives/Button/Button.tsx
|
|
246
|
-
function
|
|
247
|
-
|
|
248
|
-
let d =
|
|
246
|
+
function vn({ appearance: e, children: t, className: n, disabled: r = !1, loading: i = !1, onAction: a, ref: o, size: s, type: c = "button", variant: l, ...u }) {
|
|
247
|
+
I();
|
|
248
|
+
let d = F(o);
|
|
249
249
|
return h(D, {
|
|
250
250
|
...u,
|
|
251
251
|
"aria-busy": i || void 0,
|
|
252
|
-
className:
|
|
252
|
+
className: L({
|
|
253
253
|
appearance: e,
|
|
254
254
|
class: n,
|
|
255
255
|
size: s,
|
|
@@ -259,22 +259,22 @@ function L({ appearance: e, children: t, className: n, disabled: r = !1, loading
|
|
|
259
259
|
isPending: i,
|
|
260
260
|
onPress: a,
|
|
261
261
|
ref: d,
|
|
262
|
-
render: (e) =>
|
|
262
|
+
render: (e) => _n({
|
|
263
263
|
...u,
|
|
264
264
|
"aria-busy": i || void 0,
|
|
265
265
|
...e
|
|
266
266
|
}, c),
|
|
267
267
|
type: c
|
|
268
|
-
}, i ? /* @__PURE__ */
|
|
268
|
+
}, i ? /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N("span", {
|
|
269
269
|
"aria-hidden": "true",
|
|
270
270
|
className: "size-4 animate-spin rounded-full border-2 border-current border-r-transparent"
|
|
271
|
-
}), /* @__PURE__ */
|
|
271
|
+
}), /* @__PURE__ */ N("span", { children: t })] }) : t);
|
|
272
272
|
}
|
|
273
273
|
//#endregion
|
|
274
274
|
//#region src/internal/react-aria/OverlayParts.tsx
|
|
275
|
-
var yn =
|
|
275
|
+
var yn = j({ base: "breeze-modal-overlay fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-[var(--breeze-overlay)] p-4 forced-colors:bg-[Canvas]" }), bn = j({ base: "max-h-full max-w-full outline-none" }), xn = j({ base: "max-h-[calc(100dvh-2rem)] w-[min(36rem,calc(100vw-2rem))] overflow-y-auto border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] p-6 text-[var(--breeze-ink)] shadow-xl outline-none data-[focus-visible]:outline-2 data-[focus-visible]:outline-[var(--breeze-focus)]" }), Sn = j({ base: "m-0 mb-2 font-[family-name:var(--breeze-font-display)] text-xl font-bold leading-tight" }), Cn = j({ base: "mb-5 block text-[var(--breeze-ink-muted)]" }), wn = m(void 0);
|
|
276
276
|
function R({ appearance: e, ...t }) {
|
|
277
|
-
return h(
|
|
277
|
+
return h(vn, {
|
|
278
278
|
...t,
|
|
279
279
|
appearance: e
|
|
280
280
|
});
|
|
@@ -282,7 +282,7 @@ function R({ appearance: e, ...t }) {
|
|
|
282
282
|
function z({ appearance: e, children: t, className: n, disabled: r = !1, onAction: i, ref: a, size: o, variant: s, ...c }) {
|
|
283
283
|
return h(D, {
|
|
284
284
|
...c,
|
|
285
|
-
className:
|
|
285
|
+
className: L({
|
|
286
286
|
appearance: e,
|
|
287
287
|
class: n,
|
|
288
288
|
size: o,
|
|
@@ -290,7 +290,7 @@ function z({ appearance: e, children: t, className: n, disabled: r = !1, onActio
|
|
|
290
290
|
}),
|
|
291
291
|
isDisabled: r,
|
|
292
292
|
onPress: i,
|
|
293
|
-
ref:
|
|
293
|
+
ref: F(a),
|
|
294
294
|
slot: "close"
|
|
295
295
|
}, t);
|
|
296
296
|
}
|
|
@@ -299,23 +299,23 @@ function B({ className: e, level: t = 2, ref: n, ...r }) {
|
|
|
299
299
|
...r,
|
|
300
300
|
className: Sn({ class: e }),
|
|
301
301
|
level: t,
|
|
302
|
-
ref:
|
|
302
|
+
ref: F(n),
|
|
303
303
|
slot: "title"
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
function V({ className: e, ref: t, ...n }) {
|
|
307
307
|
let r = v(wn);
|
|
308
|
-
return h(
|
|
308
|
+
return h(A, {
|
|
309
309
|
...n,
|
|
310
310
|
className: Cn({ class: e }),
|
|
311
311
|
elementType: "p",
|
|
312
312
|
id: n.id ?? r,
|
|
313
|
-
ref:
|
|
313
|
+
ref: F(t),
|
|
314
314
|
slot: "description"
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
317
|
function Tn({ children: e, className: t, dismissible: n = !0, keyboardDismissDisabled: r = !1, modalClassName: i, modalState: a, overlayClassName: o, overlayStyle: s, ref: c, role: l = "dialog", surfaceClassName: u, ...d }) {
|
|
318
|
-
|
|
318
|
+
I();
|
|
319
319
|
let f = b();
|
|
320
320
|
return h(ee, {
|
|
321
321
|
className: yn({ class: o }),
|
|
@@ -328,7 +328,7 @@ function Tn({ children: e, className: t, dismissible: n = !0, keyboardDismissDis
|
|
|
328
328
|
...d,
|
|
329
329
|
"aria-describedby": f,
|
|
330
330
|
className: xn({ class: [u, t] }),
|
|
331
|
-
ref:
|
|
331
|
+
ref: F(c),
|
|
332
332
|
role: l
|
|
333
333
|
}, h(wn, { value: f }, e))));
|
|
334
334
|
}
|
|
@@ -399,7 +399,7 @@ var On = {
|
|
|
399
399
|
}
|
|
400
400
|
};
|
|
401
401
|
function Nn(e) {
|
|
402
|
-
|
|
402
|
+
I();
|
|
403
403
|
let { children: t, triggerless: n } = e;
|
|
404
404
|
if (n) {
|
|
405
405
|
let { onOpenChange: n, open: r } = e;
|
|
@@ -409,7 +409,7 @@ function Nn(e) {
|
|
|
409
409
|
} }, t);
|
|
410
410
|
}
|
|
411
411
|
let { defaultOpen: r, onOpenChange: i, open: a } = e;
|
|
412
|
-
return h(jn.Provider, { value: void 0 }, /* @__PURE__ */
|
|
412
|
+
return h(jn.Provider, { value: void 0 }, /* @__PURE__ */ N(E, {
|
|
413
413
|
defaultOpen: r,
|
|
414
414
|
isOpen: a,
|
|
415
415
|
onOpenChange: i,
|
|
@@ -417,27 +417,27 @@ function Nn(e) {
|
|
|
417
417
|
}));
|
|
418
418
|
}
|
|
419
419
|
function Pn({ adjacent: e, children: t, chrome: n = "default", placement: r = "end", scrollResetKey: i, size: o = "default", ...s }) {
|
|
420
|
-
let { messages: c } =
|
|
420
|
+
let { messages: c } = I(), l = v(jn), u = C(null), f = d.toArray(t), m = f.find((e) => g(e) && e.type === B), _ = f.find((e) => g(e) && e.type === V), b = f.filter((e) => e !== m && e !== _), x = n === "soft" ? "bg-[var(--breeze-shell-soft)]" : "bg-[var(--breeze-shell)]", S = {
|
|
421
421
|
"--breeze-drawer-width": e === void 0 ? kn[o] : An,
|
|
422
422
|
...e === void 0 ? {} : { "--breeze-drawer-adjacent-inline-end": `${e.inlineEndOffset}px` }
|
|
423
423
|
};
|
|
424
424
|
y(() => {
|
|
425
425
|
u.current !== null && (u.current.scrollTop = 0);
|
|
426
426
|
}, [i]);
|
|
427
|
-
let w = /* @__PURE__ */
|
|
427
|
+
let w = /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P("header", {
|
|
428
428
|
className: `flex shrink-0 items-center justify-between gap-5 px-4 py-4 text-[var(--breeze-ink-inverse)] sm:px-6 sm:py-5 ${x}`,
|
|
429
|
-
children: [/* @__PURE__ */
|
|
429
|
+
children: [/* @__PURE__ */ P("div", {
|
|
430
430
|
className: "min-w-0",
|
|
431
431
|
children: [_ === void 0 ? null : p(_, { className: `mb-0 text-[var(--breeze-ink-inverse-muted)] ${_.props.className ?? ""}` }), m === void 0 ? null : p(m, { className: `mt-1 mb-0 text-2xl leading-[1.2] text-[var(--breeze-ink-inverse)] ${m.props.className ?? ""}` })]
|
|
432
|
-
}), /* @__PURE__ */
|
|
432
|
+
}), /* @__PURE__ */ N(z, {
|
|
433
433
|
"aria-label": c.close,
|
|
434
434
|
autoFocus: !0,
|
|
435
435
|
appearance: "ghost",
|
|
436
436
|
className: "size-11 min-h-0 shrink-0 border-0 p-0 text-[var(--breeze-ink-inverse)] data-[hovered]:bg-white/10",
|
|
437
437
|
variant: "light",
|
|
438
|
-
children: /* @__PURE__ */
|
|
438
|
+
children: /* @__PURE__ */ N(a, { size: "1rem" })
|
|
439
439
|
})]
|
|
440
|
-
}), /* @__PURE__ */
|
|
440
|
+
}), /* @__PURE__ */ N("div", {
|
|
441
441
|
className: "min-h-0 flex-1 overflow-y-auto px-4 py-5 sm:p-6",
|
|
442
442
|
ref: u,
|
|
443
443
|
children: b
|
|
@@ -458,7 +458,7 @@ var U = {
|
|
|
458
458
|
Root: Nn,
|
|
459
459
|
Title: B,
|
|
460
460
|
Trigger: R
|
|
461
|
-
}, Fn =
|
|
461
|
+
}, Fn = j({
|
|
462
462
|
base: "font-medium underline decoration-1 underline-offset-2 transition-colors duration-[var(--breeze-duration-fast)] data-[disabled]:cursor-not-allowed data-[disabled]:opacity-55",
|
|
463
463
|
defaultVariants: { variant: "primary" },
|
|
464
464
|
variants: { variant: {
|
|
@@ -472,10 +472,10 @@ function In(e, t, n) {
|
|
|
472
472
|
return e.startsWith("/") && !e.startsWith("//") && n !== !0 && typeof n != "string" && (t === void 0 || t === "_self");
|
|
473
473
|
}
|
|
474
474
|
function Ln({ children: e, className: t, disabled: n = !1, download: r, href: i, onAction: a, ref: o, target: s, variant: c, ...l }) {
|
|
475
|
-
let { router: u } =
|
|
475
|
+
let { router: u } = I(), d = F(o), f = u !== void 0 && In(i, s, r), p = { onClick: (e) => {
|
|
476
476
|
f && e.button === 0 && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey && (e.preventDefault(), u.navigate(i));
|
|
477
477
|
} };
|
|
478
|
-
return h(
|
|
478
|
+
return h(te, {
|
|
479
479
|
...l,
|
|
480
480
|
...p,
|
|
481
481
|
className: Fn({
|
|
@@ -499,7 +499,7 @@ function Ln({ children: e, className: t, disabled: n = !1, download: r, href: i,
|
|
|
499
499
|
}
|
|
500
500
|
//#endregion
|
|
501
501
|
//#region src/primitives/SkipLink/SkipLink.tsx
|
|
502
|
-
var Rn =
|
|
502
|
+
var Rn = j({ base: "fixed start-4 top-4 z-50 -translate-y-24 bg-[var(--breeze-primary)] px-4 py-3 font-semibold text-white outline-none transition-transform focus:translate-y-0 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--breeze-focus)] motion-reduce:transition-none" });
|
|
503
503
|
function zn({ children: e, className: t, ref: n, targetId: r, ...i }) {
|
|
504
504
|
return h(Ln, {
|
|
505
505
|
...i,
|
|
@@ -511,7 +511,7 @@ function zn({ children: e, className: t, ref: n, targetId: r, ...i }) {
|
|
|
511
511
|
//#endregion
|
|
512
512
|
//#region src/patterns/ApplicationShell/ApplicationShell.tsx
|
|
513
513
|
function Bn({ account: e, brand: t, children: n, className: r, compactBrand: i, compactNavigationOpen: o, context: s, contentFocusKey: l, defaultCompactNavigationOpen: u, mainId: d = "main-content", navigation: f, navigationLabel: p, onCompactNavigationOpenChange: m, ref: g, skipLinkLabel: _, ...v }) {
|
|
514
|
-
let { messages: b } =
|
|
514
|
+
let { messages: b } = I(), x = C(null), S = C(l);
|
|
515
515
|
y(() => {
|
|
516
516
|
let e = S.current;
|
|
517
517
|
if (S.current = l, l === void 0 || l === e) return;
|
|
@@ -520,52 +520,52 @@ function Bn({ account: e, brand: t, children: n, className: r, compactBrand: i,
|
|
|
520
520
|
});
|
|
521
521
|
return () => window.cancelAnimationFrame(t);
|
|
522
522
|
}, [l]);
|
|
523
|
-
let w = /* @__PURE__ */
|
|
523
|
+
let w = /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(U.Trigger, {
|
|
524
524
|
"aria-label": p,
|
|
525
525
|
appearance: "ghost",
|
|
526
526
|
className: "size-11 border-0 p-0 text-[var(--breeze-ink-inverse)] data-[hovered]:bg-[var(--breeze-shell-soft)]",
|
|
527
527
|
variant: "light",
|
|
528
|
-
children: /* @__PURE__ */
|
|
529
|
-
}), /* @__PURE__ */
|
|
528
|
+
children: /* @__PURE__ */ N(c, { size: "1.5rem" })
|
|
529
|
+
}), /* @__PURE__ */ P(U.Content, {
|
|
530
530
|
className: "max-h-none w-64 border-0 bg-[var(--breeze-shell)] p-0 text-[var(--breeze-ink-inverse)]",
|
|
531
531
|
chrome: "none",
|
|
532
532
|
placement: "start",
|
|
533
533
|
children: [
|
|
534
|
-
/* @__PURE__ */
|
|
534
|
+
/* @__PURE__ */ P("div", {
|
|
535
535
|
className: "flex min-h-16 items-center justify-between border-b border-[var(--breeze-shell-soft)] px-4",
|
|
536
536
|
children: [
|
|
537
|
-
/* @__PURE__ */
|
|
538
|
-
/* @__PURE__ */
|
|
537
|
+
/* @__PURE__ */ N("div", { children: t }),
|
|
538
|
+
/* @__PURE__ */ N(U.Title, {
|
|
539
539
|
className: "sr-only",
|
|
540
540
|
children: p
|
|
541
541
|
}),
|
|
542
|
-
/* @__PURE__ */
|
|
542
|
+
/* @__PURE__ */ N(U.Close, {
|
|
543
543
|
"aria-label": b.close,
|
|
544
544
|
appearance: "ghost",
|
|
545
545
|
className: "size-11 border-0 p-0 text-[var(--breeze-ink-inverse)] data-[hovered]:bg-[var(--breeze-shell-soft)]",
|
|
546
546
|
variant: "light",
|
|
547
|
-
children: /* @__PURE__ */
|
|
547
|
+
children: /* @__PURE__ */ N(a, { size: "1.5rem" })
|
|
548
548
|
})
|
|
549
549
|
]
|
|
550
550
|
}),
|
|
551
|
-
/* @__PURE__ */
|
|
551
|
+
/* @__PURE__ */ N(U.Description, {
|
|
552
552
|
className: "sr-only",
|
|
553
553
|
children: p
|
|
554
554
|
}),
|
|
555
|
-
/* @__PURE__ */
|
|
555
|
+
/* @__PURE__ */ N("div", {
|
|
556
556
|
className: "min-h-0 flex-1 overflow-y-auto px-3 py-6 [&_a]:flex [&_a]:min-h-11 [&_a]:items-center [&_a]:gap-3 [&_a]:text-[var(--breeze-ink-inverse-muted)] [&_a]:no-underline [&_a[data-current]]:bg-[var(--breeze-primary-selected)] [&_a[data-current]]:text-white [&_a[data-current][data-hovered]]:bg-[var(--breeze-primary-selected)] [&_a[data-hovered]]:bg-[var(--breeze-shell-soft)] [&_a[data-hovered]]:text-white",
|
|
557
557
|
children: f
|
|
558
558
|
}),
|
|
559
559
|
/* @__PURE__ */ N("footer", {
|
|
560
560
|
className: "grid gap-2 border-t border-[var(--breeze-shell-soft)] p-3",
|
|
561
|
-
children:
|
|
561
|
+
children: s
|
|
562
562
|
})
|
|
563
563
|
]
|
|
564
|
-
})] }), T = o === void 0 ? /* @__PURE__ */
|
|
564
|
+
})] }), T = o === void 0 ? /* @__PURE__ */ N(U.Root, {
|
|
565
565
|
defaultOpen: u,
|
|
566
566
|
onOpenChange: m,
|
|
567
567
|
children: w
|
|
568
|
-
}) : /* @__PURE__ */
|
|
568
|
+
}) : /* @__PURE__ */ N(U.Root, {
|
|
569
569
|
onOpenChange: m,
|
|
570
570
|
open: o,
|
|
571
571
|
children: w
|
|
@@ -573,44 +573,44 @@ function Bn({ account: e, brand: t, children: n, className: r, compactBrand: i,
|
|
|
573
573
|
return h("div", {
|
|
574
574
|
...v,
|
|
575
575
|
className: `min-h-dvh bg-[var(--breeze-canvas)] text-[var(--breeze-ink)] ${r ?? ""}`,
|
|
576
|
-
ref:
|
|
577
|
-
}, /* @__PURE__ */
|
|
578
|
-
/* @__PURE__ */
|
|
576
|
+
ref: F(g)
|
|
577
|
+
}, /* @__PURE__ */ P(M, { children: [
|
|
578
|
+
/* @__PURE__ */ N(zn, {
|
|
579
579
|
targetId: d,
|
|
580
580
|
children: _
|
|
581
581
|
}),
|
|
582
|
-
/* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ P("aside", {
|
|
583
583
|
className: "fixed inset-y-0 start-0 z-20 hidden w-64 flex-col bg-[var(--breeze-shell)] text-[var(--breeze-ink-inverse)] md:flex",
|
|
584
584
|
children: [
|
|
585
|
-
/* @__PURE__ */
|
|
585
|
+
/* @__PURE__ */ N("div", {
|
|
586
586
|
className: "flex min-h-20 items-center border-b border-[var(--breeze-shell-soft)] px-5",
|
|
587
587
|
children: t
|
|
588
588
|
}),
|
|
589
|
-
/* @__PURE__ */
|
|
589
|
+
/* @__PURE__ */ N("div", {
|
|
590
590
|
className: "min-h-0 flex-1 overflow-y-auto px-3 py-7 [&_a]:flex [&_a]:min-h-11 [&_a]:items-center [&_a]:gap-3 [&_a]:text-[var(--breeze-ink-inverse-muted)] [&_a]:no-underline [&_a[data-current]]:bg-[var(--breeze-primary-selected)] [&_a[data-current]]:text-white [&_a[data-current][data-hovered]]:bg-[var(--breeze-primary-selected)] [&_a[data-hovered]]:bg-[var(--breeze-shell-soft)] [&_a[data-hovered]]:text-white",
|
|
591
591
|
children: f
|
|
592
592
|
}),
|
|
593
|
-
/* @__PURE__ */
|
|
593
|
+
/* @__PURE__ */ P("footer", {
|
|
594
594
|
className: "grid gap-2 border-t border-[var(--breeze-shell-soft)] p-3",
|
|
595
595
|
children: [s, e]
|
|
596
596
|
})
|
|
597
597
|
]
|
|
598
598
|
}),
|
|
599
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ P("header", {
|
|
600
600
|
className: "grid min-h-16 grid-cols-[2.75rem_minmax(0,1fr)_2.75rem] items-center gap-3 bg-[var(--breeze-shell)] px-3 text-[var(--breeze-ink-inverse)] md:hidden",
|
|
601
601
|
children: [
|
|
602
602
|
T,
|
|
603
|
-
/* @__PURE__ */
|
|
603
|
+
/* @__PURE__ */ N("div", {
|
|
604
604
|
className: "min-w-0 justify-self-center font-[family-name:var(--breeze-font-display)] text-xl font-semibold",
|
|
605
605
|
children: i ?? t
|
|
606
606
|
}),
|
|
607
|
-
/* @__PURE__ */
|
|
607
|
+
/* @__PURE__ */ N("div", {
|
|
608
608
|
className: "size-11 justify-self-end overflow-visible [&_[data-breeze-user-menu-trigger]]:min-h-11 [&_[data-breeze-user-menu-trigger]]:p-1 [&_[data-breeze-user-name]]:hidden",
|
|
609
609
|
children: e
|
|
610
610
|
})
|
|
611
611
|
]
|
|
612
612
|
}),
|
|
613
|
-
/* @__PURE__ */
|
|
613
|
+
/* @__PURE__ */ N("main", {
|
|
614
614
|
className: "min-h-dvh px-4 py-6 sm:px-8 sm:py-12 md:ms-64 lg:px-12",
|
|
615
615
|
id: d,
|
|
616
616
|
ref: x,
|
|
@@ -642,7 +642,7 @@ var Vn = {
|
|
|
642
642
|
vertical: "sm:flex-col sm:items-stretch",
|
|
643
643
|
verticalReverse: "sm:flex-col-reverse sm:items-stretch"
|
|
644
644
|
}
|
|
645
|
-
}, Hn =
|
|
645
|
+
}, Hn = j({
|
|
646
646
|
base: "flex flex-wrap gap-3",
|
|
647
647
|
defaultVariants: { align: "start" },
|
|
648
648
|
variants: { align: {
|
|
@@ -653,21 +653,21 @@ var Vn = {
|
|
|
653
653
|
} }
|
|
654
654
|
});
|
|
655
655
|
function Un({ align: e, className: t, orientation: n = "horizontal", ref: r, ...i }) {
|
|
656
|
-
return
|
|
656
|
+
return I(), h("div", {
|
|
657
657
|
...i,
|
|
658
658
|
className: Hn({
|
|
659
659
|
align: e,
|
|
660
660
|
class: [H(n, Vn), t]
|
|
661
661
|
}),
|
|
662
|
-
ref:
|
|
662
|
+
ref: F(r),
|
|
663
663
|
role: i.role ?? "group"
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
666
|
//#endregion
|
|
667
667
|
//#region src/primitives/AlertDialog/AlertDialog.tsx
|
|
668
|
-
var Wn =
|
|
668
|
+
var Wn = j({ base: "flex flex-col-reverse items-stretch gap-2.5 sm:flex-row sm:items-center sm:justify-end [&>*]:w-full sm:[&>*]:w-auto" });
|
|
669
669
|
function Gn({ defaultOpen: e, onOpenChange: t, open: n, readOnly: r, ...i }) {
|
|
670
|
-
return
|
|
670
|
+
return I(), h(E, {
|
|
671
671
|
...i,
|
|
672
672
|
defaultOpen: e,
|
|
673
673
|
isOpen: n,
|
|
@@ -682,10 +682,10 @@ function Kn(e) {
|
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
684
|
function qn({ className: e, ref: t, ...n }) {
|
|
685
|
-
return
|
|
685
|
+
return I(), h("div", {
|
|
686
686
|
...n,
|
|
687
687
|
className: Wn({ class: e }),
|
|
688
|
-
ref:
|
|
688
|
+
ref: F(t),
|
|
689
689
|
role: n.role ?? "group"
|
|
690
690
|
});
|
|
691
691
|
}
|
|
@@ -697,7 +697,7 @@ var W = {
|
|
|
697
697
|
Root: Gn,
|
|
698
698
|
Title: B,
|
|
699
699
|
Trigger: R
|
|
700
|
-
}, Jn =
|
|
700
|
+
}, Jn = j({
|
|
701
701
|
base: "inline-flex shrink-0 items-center justify-center font-[family-name:var(--breeze-font-display)] font-bold forced-colors:border forced-colors:border-[CanvasText]",
|
|
702
702
|
defaultVariants: {
|
|
703
703
|
bordered: !0,
|
|
@@ -733,8 +733,8 @@ var W = {
|
|
|
733
733
|
}
|
|
734
734
|
});
|
|
735
735
|
function Yn({ bordered: e = !0, children: t, className: n, decorative: r = !0, ref: i, shape: a = "square", size: o = "md", variant: s = "primary", ...c }) {
|
|
736
|
-
|
|
737
|
-
let l =
|
|
736
|
+
I();
|
|
737
|
+
let l = F(i);
|
|
738
738
|
return h("span", {
|
|
739
739
|
...c,
|
|
740
740
|
"aria-hidden": r ? !0 : void 0,
|
|
@@ -754,49 +754,49 @@ function Yn({ bordered: e = !0, children: t, className: n, decorative: r = !0, r
|
|
|
754
754
|
//#endregion
|
|
755
755
|
//#region src/patterns/ConfirmationDialog/ConfirmationDialog.tsx
|
|
756
756
|
function Xn({ cancelLabel: e, closeLabel: t, confirmLabel: n, defaultOpen: r, description: i, disabled: o = !1, onConfirm: s, onOpenChange: c, open: l, readOnly: d, title: f, trigger: p, triggerAppearance: m, variant: h = "danger" }) {
|
|
757
|
-
let g = /* @__PURE__ */
|
|
757
|
+
let g = /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(W.Trigger, {
|
|
758
758
|
appearance: m,
|
|
759
759
|
variant: h,
|
|
760
760
|
children: p
|
|
761
|
-
}), /* @__PURE__ */
|
|
761
|
+
}), /* @__PURE__ */ P(W.Content, {
|
|
762
762
|
className: "breeze-confirmation-dialog max-h-[calc(100dvh-2rem)] w-full max-w-md border-0 border-b-2 border-b-[var(--breeze-border-strong)] p-0 shadow-[0_8px_0_rgb(6_12_24_/_22%)]",
|
|
763
763
|
overlayClassName: "p-5",
|
|
764
764
|
children: [
|
|
765
|
-
/* @__PURE__ */
|
|
765
|
+
/* @__PURE__ */ P("div", {
|
|
766
766
|
className: "flex items-center justify-between gap-4 border-b border-[var(--breeze-border)] p-4 sm:px-5",
|
|
767
|
-
children: [/* @__PURE__ */
|
|
767
|
+
children: [/* @__PURE__ */ P("div", {
|
|
768
768
|
className: "flex min-w-0 items-center gap-3",
|
|
769
|
-
children: [/* @__PURE__ */
|
|
769
|
+
children: [/* @__PURE__ */ N(Yn, {
|
|
770
770
|
bordered: !1,
|
|
771
771
|
"data-confirmation-icon": !0,
|
|
772
772
|
size: "sm",
|
|
773
773
|
variant: h,
|
|
774
|
-
children: /* @__PURE__ */
|
|
775
|
-
}), /* @__PURE__ */
|
|
774
|
+
children: /* @__PURE__ */ N(u, { size: 20 })
|
|
775
|
+
}), /* @__PURE__ */ N(W.Title, {
|
|
776
776
|
className: "mb-0 text-2xl leading-[1.2]",
|
|
777
777
|
children: f
|
|
778
778
|
})]
|
|
779
|
-
}), /* @__PURE__ */
|
|
779
|
+
}), /* @__PURE__ */ N(W.Close, {
|
|
780
780
|
"aria-label": t,
|
|
781
781
|
appearance: "ghost",
|
|
782
782
|
className: "size-11 min-h-11 border-0 p-0 text-[var(--breeze-ink)]",
|
|
783
783
|
variant: "secondary",
|
|
784
|
-
children: /* @__PURE__ */
|
|
784
|
+
children: /* @__PURE__ */ N(a, { size: 20 })
|
|
785
785
|
})]
|
|
786
786
|
}),
|
|
787
|
-
/* @__PURE__ */
|
|
787
|
+
/* @__PURE__ */ N(W.Description, {
|
|
788
788
|
className: "mb-0 p-4 text-base leading-relaxed sm:p-5",
|
|
789
789
|
children: i
|
|
790
790
|
}),
|
|
791
|
-
/* @__PURE__ */
|
|
791
|
+
/* @__PURE__ */ P(W.Actions, {
|
|
792
792
|
className: "px-4 pb-4 sm:px-5 sm:pb-5",
|
|
793
|
-
children: [/* @__PURE__ */
|
|
793
|
+
children: [/* @__PURE__ */ N(W.Close, {
|
|
794
794
|
appearance: "outline",
|
|
795
795
|
autoFocus: !0,
|
|
796
796
|
className: "text-[var(--breeze-ink)]",
|
|
797
797
|
variant: "secondary",
|
|
798
798
|
children: e
|
|
799
|
-
}), /* @__PURE__ */
|
|
799
|
+
}), /* @__PURE__ */ N(W.Close, {
|
|
800
800
|
disabled: o,
|
|
801
801
|
onAction: s,
|
|
802
802
|
variant: h,
|
|
@@ -805,18 +805,18 @@ function Xn({ cancelLabel: e, closeLabel: t, confirmLabel: n, defaultOpen: r, de
|
|
|
805
805
|
})
|
|
806
806
|
]
|
|
807
807
|
})] });
|
|
808
|
-
if (l === void 0) return /* @__PURE__ */
|
|
808
|
+
if (l === void 0) return /* @__PURE__ */ N(W.Root, {
|
|
809
809
|
defaultOpen: r,
|
|
810
810
|
onOpenChange: c,
|
|
811
811
|
children: g
|
|
812
812
|
});
|
|
813
|
-
if (d === !0) return /* @__PURE__ */
|
|
813
|
+
if (d === !0) return /* @__PURE__ */ N(W.Root, {
|
|
814
814
|
open: l,
|
|
815
815
|
readOnly: !0,
|
|
816
816
|
children: g
|
|
817
817
|
});
|
|
818
818
|
if (c === void 0) throw Error("Controlled ConfirmationDialog requires onOpenChange.");
|
|
819
|
-
return /* @__PURE__ */
|
|
819
|
+
return /* @__PURE__ */ N(W.Root, {
|
|
820
820
|
onOpenChange: c,
|
|
821
821
|
open: l,
|
|
822
822
|
children: g
|
|
@@ -825,12 +825,12 @@ function Xn({ cancelLabel: e, closeLabel: t, confirmLabel: n, defaultOpen: r, de
|
|
|
825
825
|
//#endregion
|
|
826
826
|
//#region src/internal/collections/useCollectionEmptyContent.ts
|
|
827
827
|
function G(e) {
|
|
828
|
-
let { messages: t } =
|
|
828
|
+
let { messages: t } = I();
|
|
829
829
|
return e === void 0 ? t.noResults : e;
|
|
830
830
|
}
|
|
831
831
|
//#endregion
|
|
832
832
|
//#region src/primitives/Menu/Menu.tsx
|
|
833
|
-
var Zn =
|
|
833
|
+
var Zn = j({ base: "inline-flex min-h-11 min-w-0 items-center justify-center border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] px-3 font-semibold text-[var(--breeze-ink)] outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-45 data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)]" }), Qn = j({ base: "min-w-48 border border-b-2 border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] shadow-[0_8px_0_rgb(6_12_24_/_18%)]" }), $n = j({ base: "max-h-80 overflow-y-auto outline-none" }), er = j({ base: "flex min-h-11 cursor-default items-center border-b border-[var(--breeze-border)] px-4 py-2 text-base text-[var(--breeze-ink)] no-underline outline-none last:border-b-0 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-45 data-[focus-visible]:bg-[var(--breeze-primary-soft)] data-[hovered]:bg-[var(--breeze-primary-soft)] data-[selected]:bg-[var(--breeze-primary-soft)]" });
|
|
834
834
|
function tr(e) {
|
|
835
835
|
return e === "all" ? "all" : [...e];
|
|
836
836
|
}
|
|
@@ -838,7 +838,7 @@ function nr(e) {
|
|
|
838
838
|
return e !== void 0 && e.startsWith("/") && !e.startsWith("//");
|
|
839
839
|
}
|
|
840
840
|
function rr({ defaultOpen: e, onOpenChange: t, open: n, readOnly: r, ...i }) {
|
|
841
|
-
return
|
|
841
|
+
return I(), h(ie, {
|
|
842
842
|
...i,
|
|
843
843
|
defaultOpen: e,
|
|
844
844
|
isOpen: n,
|
|
@@ -846,7 +846,7 @@ function rr({ defaultOpen: e, onOpenChange: t, open: n, readOnly: r, ...i }) {
|
|
|
846
846
|
});
|
|
847
847
|
}
|
|
848
848
|
function ir({ className: e, disabled: t = !1, ref: n, ...r }) {
|
|
849
|
-
let i = v(
|
|
849
|
+
let i = v(oe), a = C(!1);
|
|
850
850
|
return h(D, {
|
|
851
851
|
...r,
|
|
852
852
|
className: Zn({ class: e }),
|
|
@@ -857,31 +857,31 @@ function ir({ className: e, disabled: t = !1, ref: n, ...r }) {
|
|
|
857
857
|
onPressStart: () => {
|
|
858
858
|
a.current = i?.isOpen === !0;
|
|
859
859
|
},
|
|
860
|
-
ref:
|
|
860
|
+
ref: F(n)
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
863
|
function ar({ className: e, nonModal: t = !1, placement: n = "bottom start", ref: r, ...i }) {
|
|
864
|
-
return
|
|
864
|
+
return I(), h(ae, {
|
|
865
865
|
...i,
|
|
866
866
|
className: Qn({ class: e }),
|
|
867
867
|
isNonModal: t,
|
|
868
868
|
placement: n,
|
|
869
|
-
ref:
|
|
869
|
+
ref: F(r)
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
872
|
function or({ className: e, placement: t = "bottom start", ref: n, triggerRef: r, ...i }) {
|
|
873
|
-
return
|
|
873
|
+
return I(), h(ae, {
|
|
874
874
|
...i,
|
|
875
875
|
className: Qn({ class: e }),
|
|
876
876
|
isNonModal: !0,
|
|
877
877
|
placement: t,
|
|
878
|
-
ref:
|
|
878
|
+
ref: F(n),
|
|
879
879
|
shouldCloseOnInteractOutside: (e) => r.current?.contains(e) !== !0
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
882
|
function sr({ children: e, className: t, defaultSelection: n, disabledKeys: r, emptyContent: i, items: a, multiple: o = !1, onSelectionChange: s, ref: c, selection: l, ...u }) {
|
|
883
883
|
let d = G(i), f = l !== void 0 || n !== void 0, p = "none";
|
|
884
|
-
return f && (p = o ? "multiple" : "single"), h(
|
|
884
|
+
return f && (p = o ? "multiple" : "single"), h(ne, {
|
|
885
885
|
...u,
|
|
886
886
|
children: e,
|
|
887
887
|
className: $n({ class: t }),
|
|
@@ -889,15 +889,15 @@ function sr({ children: e, className: t, defaultSelection: n, disabledKeys: r, e
|
|
|
889
889
|
disabledKeys: r,
|
|
890
890
|
items: a,
|
|
891
891
|
onSelectionChange: (e) => s?.(tr(e)),
|
|
892
|
-
ref:
|
|
892
|
+
ref: F(c),
|
|
893
893
|
renderEmptyState: () => d,
|
|
894
894
|
selectedKeys: l,
|
|
895
895
|
selectionMode: p
|
|
896
896
|
});
|
|
897
897
|
}
|
|
898
898
|
function cr({ className: e, disabled: t = !1, href: n, id: r, onAction: i, ref: a, textValue: o, ...s }) {
|
|
899
|
-
let { router: c } =
|
|
900
|
-
return h(
|
|
899
|
+
let { router: c } = I(), l = c !== void 0 && nr(n), u = n === void 0 || l ? {} : { href: n };
|
|
900
|
+
return h(re, {
|
|
901
901
|
...s,
|
|
902
902
|
...u,
|
|
903
903
|
className: er({ class: e }),
|
|
@@ -906,14 +906,14 @@ function cr({ className: e, disabled: t = !1, href: n, id: r, onAction: i, ref:
|
|
|
906
906
|
onAction: () => {
|
|
907
907
|
l && c.navigate(n), i?.(r);
|
|
908
908
|
},
|
|
909
|
-
ref:
|
|
909
|
+
ref: F(a),
|
|
910
910
|
textValue: o
|
|
911
911
|
});
|
|
912
912
|
}
|
|
913
913
|
function lr({ ref: e, ...t }) {
|
|
914
|
-
return h(
|
|
914
|
+
return h(se, {
|
|
915
915
|
...t,
|
|
916
|
-
ref:
|
|
916
|
+
ref: F(e)
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
var K = {
|
|
@@ -929,31 +929,31 @@ var K = {
|
|
|
929
929
|
function ur({ "aria-label": e, currentId: t, emptyIcon: n, emptyName: r, items: i, manageLabel: a, onChange: o, onManage: s, triggerLabel: c }) {
|
|
930
930
|
let l = i.find((e) => e.id === t), u = new Set(i.map((e) => e.id)), d = "__breeze-manage-contexts";
|
|
931
931
|
for (; u.has(d);) d = `_${d}`;
|
|
932
|
-
return /* @__PURE__ */
|
|
932
|
+
return /* @__PURE__ */ P(K.Root, { children: [/* @__PURE__ */ P(K.Trigger, {
|
|
933
933
|
"aria-label": e,
|
|
934
934
|
className: "min-h-14 w-full justify-start gap-3 border-0 bg-transparent p-2 text-start text-inherit data-[hovered]:bg-[var(--breeze-shell-soft)]",
|
|
935
|
-
children: [/* @__PURE__ */
|
|
935
|
+
children: [/* @__PURE__ */ N("span", {
|
|
936
936
|
"aria-hidden": "true",
|
|
937
937
|
className: "empty:hidden",
|
|
938
938
|
children: l?.icon ?? n
|
|
939
|
-
}), /* @__PURE__ */
|
|
939
|
+
}), /* @__PURE__ */ P("span", {
|
|
940
940
|
className: "grid min-w-0 flex-1 gap-0.5",
|
|
941
|
-
children: [c === void 0 ? null : /* @__PURE__ */
|
|
941
|
+
children: [c === void 0 ? null : /* @__PURE__ */ N("small", {
|
|
942
942
|
className: "text-base text-[var(--breeze-ink-inverse-muted)]",
|
|
943
943
|
children: c
|
|
944
|
-
}), /* @__PURE__ */
|
|
944
|
+
}), /* @__PURE__ */ N("strong", {
|
|
945
945
|
className: "truncate text-base",
|
|
946
946
|
children: l?.name ?? r ?? e
|
|
947
947
|
})]
|
|
948
948
|
})]
|
|
949
|
-
}), /* @__PURE__ */
|
|
949
|
+
}), /* @__PURE__ */ P(K.Popover, {
|
|
950
950
|
className: "w-80",
|
|
951
951
|
nonModal: !0,
|
|
952
952
|
placement: "top start",
|
|
953
|
-
children: [/* @__PURE__ */
|
|
953
|
+
children: [/* @__PURE__ */ N("div", {
|
|
954
954
|
className: "border-b border-[var(--breeze-border)] px-4 py-3 font-[family-name:var(--breeze-font-display)] text-xl font-bold",
|
|
955
955
|
children: e
|
|
956
|
-
}), /* @__PURE__ */
|
|
956
|
+
}), /* @__PURE__ */ P(K.List, {
|
|
957
957
|
"aria-label": e,
|
|
958
958
|
onSelectionChange: (e) => {
|
|
959
959
|
if (e === "all") return;
|
|
@@ -961,22 +961,22 @@ function ur({ "aria-label": e, currentId: t, emptyIcon: n, emptyName: r, items:
|
|
|
961
961
|
t !== void 0 && t !== d && o(String(t));
|
|
962
962
|
},
|
|
963
963
|
selection: t === null ? [] : [t],
|
|
964
|
-
children: [i.map((e) => /* @__PURE__ */
|
|
964
|
+
children: [i.map((e) => /* @__PURE__ */ N(K.Item, {
|
|
965
965
|
disabled: e.disabled,
|
|
966
966
|
id: e.id,
|
|
967
967
|
textValue: e.name,
|
|
968
|
-
children: /* @__PURE__ */
|
|
968
|
+
children: /* @__PURE__ */ P("span", {
|
|
969
969
|
className: "flex min-w-0 items-center gap-3",
|
|
970
|
-
children: [/* @__PURE__ */
|
|
970
|
+
children: [/* @__PURE__ */ N("span", {
|
|
971
971
|
"aria-hidden": "true",
|
|
972
972
|
className: "empty:hidden",
|
|
973
973
|
children: e.icon
|
|
974
|
-
}), /* @__PURE__ */
|
|
974
|
+
}), /* @__PURE__ */ P("span", {
|
|
975
975
|
className: "grid min-w-0 gap-0.5",
|
|
976
|
-
children: [/* @__PURE__ */
|
|
976
|
+
children: [/* @__PURE__ */ N("strong", { children: e.name }), e.description === void 0 ? null : /* @__PURE__ */ N("small", { children: e.description })]
|
|
977
977
|
})]
|
|
978
978
|
})
|
|
979
|
-
}, e.id)), a === void 0 || s === void 0 ? null : /* @__PURE__ */
|
|
979
|
+
}, e.id)), a === void 0 || s === void 0 ? null : /* @__PURE__ */ N(K.Item, {
|
|
980
980
|
className: "font-bold text-[var(--breeze-primary)]",
|
|
981
981
|
id: d,
|
|
982
982
|
onAction: s,
|
|
@@ -989,18 +989,18 @@ function ur({ "aria-label": e, currentId: t, emptyIcon: n, emptyName: r, items:
|
|
|
989
989
|
//#endregion
|
|
990
990
|
//#region src/patterns/FileAttachment/FileAttachment.tsx
|
|
991
991
|
function dr({ actions: e, className: t, name: n, ref: r, ...i }) {
|
|
992
|
-
return
|
|
992
|
+
return I(), h("div", {
|
|
993
993
|
...i,
|
|
994
994
|
className: `flex min-h-16 flex-col items-stretch justify-between gap-4 py-2.5 sm:flex-row sm:items-center ${t ?? ""}`,
|
|
995
995
|
"data-breeze-file-attachment": "",
|
|
996
|
-
ref:
|
|
997
|
-
}, /* @__PURE__ */
|
|
996
|
+
ref: F(r)
|
|
997
|
+
}, /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P("span", {
|
|
998
998
|
className: "flex min-w-0 items-center gap-2.5",
|
|
999
|
-
children: [/* @__PURE__ */
|
|
999
|
+
children: [/* @__PURE__ */ N(l, { size: 16 }), /* @__PURE__ */ N("strong", {
|
|
1000
1000
|
className: "min-w-0 truncate font-bold",
|
|
1001
1001
|
children: n
|
|
1002
1002
|
})]
|
|
1003
|
-
}), /* @__PURE__ */
|
|
1003
|
+
}), /* @__PURE__ */ N("div", {
|
|
1004
1004
|
className: "flex flex-wrap gap-2.5 [&>*]:w-full sm:[&>*]:w-auto",
|
|
1005
1005
|
"data-breeze-file-attachment-actions": "",
|
|
1006
1006
|
children: e
|
|
@@ -1031,7 +1031,7 @@ function pr(e, { acceptedFileTypes: t, allowsMultiple: n, maxFileSize: r }) {
|
|
|
1031
1031
|
//#endregion
|
|
1032
1032
|
//#region src/primitives/file/FileFeedback.tsx
|
|
1033
1033
|
function mr({ className: e, ref: t, rejections: n, ...r }) {
|
|
1034
|
-
let i =
|
|
1034
|
+
let i = F(t), { messages: a } = I(), o = {
|
|
1035
1035
|
"file-count": a.fileCountRejection,
|
|
1036
1036
|
"file-size": a.fileSizeRejection,
|
|
1037
1037
|
"file-type": a.fileTypeRejection
|
|
@@ -1045,10 +1045,10 @@ function mr({ className: e, ref: t, rejections: n, ...r }) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
//#endregion
|
|
1047
1047
|
//#region src/primitives/DropZone/DropZone.tsx
|
|
1048
|
-
var hr =
|
|
1048
|
+
var hr = j({ base: "flex min-h-36 flex-col items-center justify-center gap-2 border-2 border-dashed border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] p-6 text-center text-[var(--breeze-ink)] transition-colors data-[drop-target]:border-[var(--breeze-primary)] data-[drop-target]:bg-[var(--breeze-primary-soft)]" }), q = m(null);
|
|
1049
1049
|
function gr({ acceptedFileTypes: e, allowsMultiple: t = !1, children: n, className: r, disabled: i = !1, invalid: a = !1, maxFileSize: o, onFiles: s, onFileReadError: c, onReject: l, ref: u, required: d = !1, ...f }) {
|
|
1050
|
-
|
|
1051
|
-
let p =
|
|
1050
|
+
I();
|
|
1051
|
+
let p = F(u), [m, g] = w([]), v = b(), y = b(), x = [
|
|
1052
1052
|
f["aria-describedby"],
|
|
1053
1053
|
v,
|
|
1054
1054
|
a ? y : void 0
|
|
@@ -1067,7 +1067,7 @@ function gr({ acceptedFileTypes: e, allowsMultiple: t = !1, children: n, classNa
|
|
|
1067
1067
|
errorId: y,
|
|
1068
1068
|
invalid: a,
|
|
1069
1069
|
rejections: m
|
|
1070
|
-
} }, h(
|
|
1070
|
+
} }, h(ce, {
|
|
1071
1071
|
...f,
|
|
1072
1072
|
"aria-describedby": x,
|
|
1073
1073
|
"aria-invalid": a || void 0,
|
|
@@ -1111,7 +1111,7 @@ function gr({ acceptedFileTypes: e, allowsMultiple: t = !1, children: n, classNa
|
|
|
1111
1111
|
}, n));
|
|
1112
1112
|
}
|
|
1113
1113
|
function _r({ ref: e, ...t }) {
|
|
1114
|
-
let n = v(q), r =
|
|
1114
|
+
let n = v(q), r = F(e);
|
|
1115
1115
|
if (!n) throw new globalThis.Error("DropZone.Description must be inside DropZone.Root.");
|
|
1116
1116
|
return h("p", {
|
|
1117
1117
|
...t,
|
|
@@ -1120,7 +1120,7 @@ function _r({ ref: e, ...t }) {
|
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
1122
1122
|
function vr({ ref: e, ...t }) {
|
|
1123
|
-
let n = v(q), r =
|
|
1123
|
+
let n = v(q), r = F(e);
|
|
1124
1124
|
if (!n) throw new globalThis.Error("DropZone.Error must be inside DropZone.Root.");
|
|
1125
1125
|
return n.invalid ? h("p", {
|
|
1126
1126
|
...t,
|
|
@@ -1138,10 +1138,10 @@ function yr(e) {
|
|
|
1138
1138
|
});
|
|
1139
1139
|
}
|
|
1140
1140
|
function br({ className: e, ref: t, ...n }) {
|
|
1141
|
-
return h(
|
|
1141
|
+
return h(le, {
|
|
1142
1142
|
...n,
|
|
1143
1143
|
className: e,
|
|
1144
|
-
ref:
|
|
1144
|
+
ref: F(t),
|
|
1145
1145
|
slot: "label"
|
|
1146
1146
|
});
|
|
1147
1147
|
}
|
|
@@ -1153,7 +1153,7 @@ var J = {
|
|
|
1153
1153
|
Root: gr
|
|
1154
1154
|
}, xr = m(null);
|
|
1155
1155
|
function Sr({ acceptDirectory: e = !1, acceptedFileTypes: t, allowsMultiple: n = !1, children: r, disabled: i = !1, defaultCamera: a, form: o, invalid: s = !1, maxFileSize: c, name: l, onFiles: u, onReject: d, ref: f, required: p = !1, ...m }) {
|
|
1156
|
-
let { messages: g } =
|
|
1156
|
+
let { messages: g } = I(), v = F(f), y = C(null), b = C(null), [x, S] = w(!1), [T, E] = w([]), D = _((e) => {
|
|
1157
1157
|
y.current = e, v(e);
|
|
1158
1158
|
}, [v]), O = (e) => {
|
|
1159
1159
|
if (i) return;
|
|
@@ -1174,7 +1174,7 @@ function Sr({ acceptDirectory: e = !1, acceptedFileTypes: t, allowsMultiple: n =
|
|
|
1174
1174
|
invalid: s || x,
|
|
1175
1175
|
rejections: T,
|
|
1176
1176
|
triggerRef: b
|
|
1177
|
-
} }, h(
|
|
1177
|
+
} }, h(ue, {
|
|
1178
1178
|
isDisabled: i,
|
|
1179
1179
|
onPress: () => {
|
|
1180
1180
|
y.current?.value && (y.current.value = ""), y.current?.click();
|
|
@@ -1222,13 +1222,13 @@ function Cr(e) {
|
|
|
1222
1222
|
function wr({ children: e, className: t, ref: n, ...r }) {
|
|
1223
1223
|
let i = v(xr);
|
|
1224
1224
|
if (!i) throw Error("FileTrigger.Trigger must be inside FileTrigger.Root.");
|
|
1225
|
-
let a =
|
|
1225
|
+
let a = F(n), o = _((e) => {
|
|
1226
1226
|
i.triggerRef.current = e, a(e);
|
|
1227
1227
|
}, [i.triggerRef, a]);
|
|
1228
1228
|
return h(D, {
|
|
1229
1229
|
...r,
|
|
1230
1230
|
"aria-invalid": i.invalid || void 0,
|
|
1231
|
-
className:
|
|
1231
|
+
className: L({ class: t }),
|
|
1232
1232
|
isDisabled: i.disabled,
|
|
1233
1233
|
ref: o
|
|
1234
1234
|
}, e);
|
|
@@ -1241,7 +1241,7 @@ var Tr = {
|
|
|
1241
1241
|
//#endregion
|
|
1242
1242
|
//#region src/patterns/FileUpload/FileUpload.tsx
|
|
1243
1243
|
function Er({ acceptedFileTypes: e, allowsMultiple: t = !1, browseLabel: n, disabled: r = !1, guidance: i, invalid: a = !1, label: o, maxFileSize: s, onFiles: c, onReject: u, selectedFiles: d = [] }) {
|
|
1244
|
-
return /* @__PURE__ */
|
|
1244
|
+
return /* @__PURE__ */ P(J.Root, {
|
|
1245
1245
|
acceptedFileTypes: e,
|
|
1246
1246
|
allowsMultiple: t,
|
|
1247
1247
|
disabled: r,
|
|
@@ -1252,24 +1252,24 @@ function Er({ acceptedFileTypes: e, allowsMultiple: t = !1, browseLabel: n, disa
|
|
|
1252
1252
|
className: "grid min-h-16 w-full grid-cols-[1.5rem_minmax(0,1fr)_auto] items-center gap-x-4 border border-solid border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] p-0 text-left transition-colors outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-55 data-[drop-target]:border-[var(--breeze-primary)] data-[drop-target]:bg-[var(--breeze-surface)] data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)] data-[focus-visible]:outline-solid data-[hovered]:border-[var(--breeze-primary)]",
|
|
1253
1253
|
"data-breeze-file-upload": "",
|
|
1254
1254
|
children: [
|
|
1255
|
-
/* @__PURE__ */
|
|
1255
|
+
/* @__PURE__ */ N("span", {
|
|
1256
1256
|
className: "ml-4 flex size-6 items-center text-[var(--breeze-primary)]",
|
|
1257
|
-
children: /* @__PURE__ */
|
|
1257
|
+
children: /* @__PURE__ */ N(l, {
|
|
1258
1258
|
"aria-hidden": "true",
|
|
1259
1259
|
size: 20
|
|
1260
1260
|
})
|
|
1261
1261
|
}),
|
|
1262
|
-
/* @__PURE__ */
|
|
1262
|
+
/* @__PURE__ */ P("span", {
|
|
1263
1263
|
className: "flex min-w-0 flex-col",
|
|
1264
|
-
children: [/* @__PURE__ */
|
|
1264
|
+
children: [/* @__PURE__ */ N(J.Label, {
|
|
1265
1265
|
className: "overflow-hidden font-[family-name:var(--breeze-font-display)] text-base leading-[1.4] font-bold text-ellipsis whitespace-nowrap",
|
|
1266
|
-
children: d.length === 0 ? o : /* @__PURE__ */
|
|
1267
|
-
}), i === void 0 ? null : /* @__PURE__ */
|
|
1266
|
+
children: d.length === 0 ? o : /* @__PURE__ */ N(mn, { values: d.map((e) => e.name) })
|
|
1267
|
+
}), i === void 0 ? null : /* @__PURE__ */ N(J.Description, {
|
|
1268
1268
|
className: "m-0 mt-1 text-base leading-[1.4] text-[var(--breeze-ink-soft)]",
|
|
1269
1269
|
children: i
|
|
1270
1270
|
})]
|
|
1271
1271
|
}),
|
|
1272
|
-
/* @__PURE__ */
|
|
1272
|
+
/* @__PURE__ */ P(Tr.Root, {
|
|
1273
1273
|
acceptedFileTypes: e,
|
|
1274
1274
|
allowsMultiple: t,
|
|
1275
1275
|
disabled: r,
|
|
@@ -1277,18 +1277,18 @@ function Er({ acceptedFileTypes: e, allowsMultiple: t = !1, browseLabel: n, disa
|
|
|
1277
1277
|
maxFileSize: s,
|
|
1278
1278
|
onFiles: c,
|
|
1279
1279
|
onReject: u,
|
|
1280
|
-
children: [/* @__PURE__ */
|
|
1280
|
+
children: [/* @__PURE__ */ N(Tr.Trigger, {
|
|
1281
1281
|
className: "h-full min-h-0 self-stretch border-0 border-l border-[var(--breeze-border-strong)] bg-[var(--breeze-surface-subtle)] px-4 py-0 text-base text-[var(--breeze-primary)] data-[focus-visible]:outline-solid data-[hovered]:bg-[var(--breeze-primary-soft)]",
|
|
1282
1282
|
children: n
|
|
1283
|
-
}), /* @__PURE__ */
|
|
1283
|
+
}), /* @__PURE__ */ N(Tr.Feedback, { className: "col-span-3 px-4 pb-3" })]
|
|
1284
1284
|
}),
|
|
1285
|
-
/* @__PURE__ */
|
|
1285
|
+
/* @__PURE__ */ N(J.Feedback, { className: "col-span-3 px-4 pb-3" })
|
|
1286
1286
|
]
|
|
1287
1287
|
});
|
|
1288
1288
|
}
|
|
1289
1289
|
//#endregion
|
|
1290
1290
|
//#region src/patterns/FormActions/FormActions.tsx
|
|
1291
|
-
var Dr =
|
|
1291
|
+
var Dr = j({
|
|
1292
1292
|
base: "mt-auto flex flex-col gap-3 pt-0.5 sm:flex-row sm:items-center sm:gap-2.5 [&>*]:w-full sm:[&>*]:w-auto [&>*>*]:w-full sm:[&>*>*]:w-auto",
|
|
1293
1293
|
defaultVariants: { divided: !1 },
|
|
1294
1294
|
variants: { divided: {
|
|
@@ -1297,7 +1297,7 @@ var Dr = A({
|
|
|
1297
1297
|
} }
|
|
1298
1298
|
}), Or = "[&_button]:border-[var(--breeze-border-strong)] [&_button]:bg-[var(--breeze-surface)] [&_button]:text-[var(--breeze-ink)]";
|
|
1299
1299
|
function kr({ back: e, cancel: t, className: n, danger: r, divided: i = !1, primary: a, ref: o, secondary: s, ...c }) {
|
|
1300
|
-
|
|
1300
|
+
I();
|
|
1301
1301
|
let l = c["aria-label"] !== void 0 || c["aria-labelledby"] !== void 0, u = "primary";
|
|
1302
1302
|
return t == null ? s != null && (u = "secondary") : u = "cancel", h("div", {
|
|
1303
1303
|
...c,
|
|
@@ -1305,30 +1305,30 @@ function kr({ back: e, cancel: t, className: n, danger: r, divided: i = !1, prim
|
|
|
1305
1305
|
class: n,
|
|
1306
1306
|
divided: i
|
|
1307
1307
|
}),
|
|
1308
|
-
ref:
|
|
1308
|
+
ref: F(o),
|
|
1309
1309
|
role: l ? "group" : void 0
|
|
1310
|
-
}, /* @__PURE__ */
|
|
1311
|
-
r == null ? null : /* @__PURE__ */
|
|
1310
|
+
}, /* @__PURE__ */ P(M, { children: [
|
|
1311
|
+
r == null ? null : /* @__PURE__ */ N("div", {
|
|
1312
1312
|
className: "order-5 sm:order-none",
|
|
1313
1313
|
"data-action-position": "leading",
|
|
1314
1314
|
children: r
|
|
1315
1315
|
}),
|
|
1316
|
-
e == null ? null : /* @__PURE__ */
|
|
1316
|
+
e == null ? null : /* @__PURE__ */ N("div", {
|
|
1317
1317
|
className: `order-2 sm:order-none ${Or}`,
|
|
1318
1318
|
"data-action-position": "leading",
|
|
1319
1319
|
children: e
|
|
1320
1320
|
}),
|
|
1321
|
-
t == null ? null : /* @__PURE__ */
|
|
1321
|
+
t == null ? null : /* @__PURE__ */ N("div", {
|
|
1322
1322
|
className: `order-3 sm:order-none ${Or} ${u === "cancel" ? "sm:ms-auto" : ""}`,
|
|
1323
1323
|
"data-action-position": "trailing",
|
|
1324
1324
|
children: t
|
|
1325
1325
|
}),
|
|
1326
|
-
s == null ? null : /* @__PURE__ */
|
|
1326
|
+
s == null ? null : /* @__PURE__ */ N("div", {
|
|
1327
1327
|
className: `order-4 sm:order-none ${Or} ${u === "secondary" ? "sm:ms-auto" : ""}`,
|
|
1328
1328
|
"data-action-position": "trailing",
|
|
1329
1329
|
children: s
|
|
1330
1330
|
}),
|
|
1331
|
-
/* @__PURE__ */
|
|
1331
|
+
/* @__PURE__ */ N("div", {
|
|
1332
1332
|
className: `order-1 sm:order-none ${u === "primary" ? "sm:ms-auto" : ""}`,
|
|
1333
1333
|
"data-action-position": "trailing",
|
|
1334
1334
|
children: a
|
|
@@ -1337,7 +1337,7 @@ function kr({ back: e, cancel: t, className: n, danger: r, divided: i = !1, prim
|
|
|
1337
1337
|
}
|
|
1338
1338
|
//#endregion
|
|
1339
1339
|
//#region src/patterns/FormSection/FormSection.tsx
|
|
1340
|
-
var Ar =
|
|
1340
|
+
var Ar = j({
|
|
1341
1341
|
base: "grid min-w-0",
|
|
1342
1342
|
compoundVariants: [{
|
|
1343
1343
|
class: "border-t border-[var(--breeze-border)] pt-6 first:border-t-0 first:pt-0",
|
|
@@ -1362,7 +1362,7 @@ var Ar = A({
|
|
|
1362
1362
|
stacked: "gap-6"
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
|
-
}), jr =
|
|
1365
|
+
}), jr = j({
|
|
1366
1366
|
base: "grid content-start",
|
|
1367
1367
|
defaultVariants: { layout: "split" },
|
|
1368
1368
|
variants: { layout: {
|
|
@@ -1371,7 +1371,7 @@ var Ar = A({
|
|
|
1371
1371
|
} }
|
|
1372
1372
|
});
|
|
1373
1373
|
function Mr({ action: e, children: t, className: n, description: r, divided: i = !1, headingLevel: a = 2, layout: o = "split", ref: s, title: c, ...l }) {
|
|
1374
|
-
|
|
1374
|
+
I();
|
|
1375
1375
|
let u = b();
|
|
1376
1376
|
return h("section", {
|
|
1377
1377
|
...l,
|
|
@@ -1381,23 +1381,23 @@ function Mr({ action: e, children: t, className: n, description: r, divided: i =
|
|
|
1381
1381
|
divided: i,
|
|
1382
1382
|
layout: o
|
|
1383
1383
|
}),
|
|
1384
|
-
ref:
|
|
1385
|
-
}, /* @__PURE__ */
|
|
1384
|
+
ref: F(s)
|
|
1385
|
+
}, /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P("header", {
|
|
1386
1386
|
className: jr({ layout: o }),
|
|
1387
1387
|
children: [h(`h${a}`, {
|
|
1388
1388
|
className: "m-0 font-[family-name:var(--breeze-font-display)] text-xl leading-[1.2] font-bold",
|
|
1389
1389
|
id: u
|
|
1390
|
-
}, c), r == null ? null : /* @__PURE__ */
|
|
1390
|
+
}, c), r == null ? null : /* @__PURE__ */ N("p", {
|
|
1391
1391
|
className: "m-0 max-w-[65ch] text-base leading-[1.4] text-[var(--breeze-ink-soft)]",
|
|
1392
1392
|
children: r
|
|
1393
1393
|
})]
|
|
1394
|
-
}), /* @__PURE__ */
|
|
1394
|
+
}), /* @__PURE__ */ P("div", {
|
|
1395
1395
|
className: e === void 0 ? "grid min-w-0 content-start gap-5" : "flex min-w-0 flex-col-reverse gap-3 md:flex-col md:gap-5",
|
|
1396
|
-
children: [e === void 0 ? null : /* @__PURE__ */
|
|
1396
|
+
children: [e === void 0 ? null : /* @__PURE__ */ N("div", {
|
|
1397
1397
|
className: "flex min-h-11 items-center justify-start md:justify-end",
|
|
1398
1398
|
"data-breeze-form-section-action": "",
|
|
1399
1399
|
children: e
|
|
1400
|
-
}), /* @__PURE__ */
|
|
1400
|
+
}), /* @__PURE__ */ N("div", {
|
|
1401
1401
|
className: "grid min-w-0 content-start gap-5",
|
|
1402
1402
|
"data-breeze-form-section-fields": "",
|
|
1403
1403
|
children: t
|
|
@@ -1406,7 +1406,7 @@ function Mr({ action: e, children: t, className: n, description: r, divided: i =
|
|
|
1406
1406
|
}
|
|
1407
1407
|
//#endregion
|
|
1408
1408
|
//#region src/patterns/MetricCard/MetricCard.tsx
|
|
1409
|
-
var Nr =
|
|
1409
|
+
var Nr = j({
|
|
1410
1410
|
defaultVariants: {
|
|
1411
1411
|
density: "regular",
|
|
1412
1412
|
tone: "default"
|
|
@@ -1442,7 +1442,7 @@ var Nr = A({
|
|
|
1442
1442
|
}
|
|
1443
1443
|
});
|
|
1444
1444
|
function Pr({ className: e, density: t = "regular", description: n, label: r, ref: i, tone: a = "default", value: o, ...s }) {
|
|
1445
|
-
|
|
1445
|
+
I();
|
|
1446
1446
|
let c = b(), l = Nr({
|
|
1447
1447
|
density: t,
|
|
1448
1448
|
tone: a
|
|
@@ -1451,18 +1451,18 @@ function Pr({ className: e, density: t = "regular", description: n, label: r, re
|
|
|
1451
1451
|
...s,
|
|
1452
1452
|
"aria-labelledby": c,
|
|
1453
1453
|
className: l.root({ class: e }),
|
|
1454
|
-
ref:
|
|
1455
|
-
}, /* @__PURE__ */
|
|
1456
|
-
/* @__PURE__ */
|
|
1454
|
+
ref: F(i)
|
|
1455
|
+
}, /* @__PURE__ */ P(M, { children: [
|
|
1456
|
+
/* @__PURE__ */ N("div", {
|
|
1457
1457
|
className: l.label(),
|
|
1458
1458
|
id: c,
|
|
1459
1459
|
children: r
|
|
1460
1460
|
}),
|
|
1461
|
-
/* @__PURE__ */
|
|
1461
|
+
/* @__PURE__ */ N("div", {
|
|
1462
1462
|
className: l.value(),
|
|
1463
1463
|
children: o
|
|
1464
1464
|
}),
|
|
1465
|
-
n == null ? null : /* @__PURE__ */
|
|
1465
|
+
n == null ? null : /* @__PURE__ */ N("div", {
|
|
1466
1466
|
className: l.description(),
|
|
1467
1467
|
children: n
|
|
1468
1468
|
})
|
|
@@ -1471,14 +1471,14 @@ function Pr({ className: e, density: t = "regular", description: n, label: r, re
|
|
|
1471
1471
|
//#endregion
|
|
1472
1472
|
//#region src/patterns/NavigationSection/NavigationSection.tsx
|
|
1473
1473
|
function Fr({ children: e, className: t, ref: n, title: r, ...i }) {
|
|
1474
|
-
|
|
1474
|
+
I();
|
|
1475
1475
|
let a = b();
|
|
1476
1476
|
return h("nav", {
|
|
1477
1477
|
...i,
|
|
1478
1478
|
"aria-labelledby": a,
|
|
1479
1479
|
className: `grid gap-2 ${t ?? ""}`,
|
|
1480
|
-
ref:
|
|
1481
|
-
}, /* @__PURE__ */
|
|
1480
|
+
ref: F(n)
|
|
1481
|
+
}, /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N("h2", {
|
|
1482
1482
|
className: "m-0 px-3 font-[family-name:var(--breeze-font-display)] text-base font-bold",
|
|
1483
1483
|
id: a,
|
|
1484
1484
|
children: r
|
|
@@ -1487,31 +1487,31 @@ function Fr({ children: e, className: t, ref: n, title: r, ...i }) {
|
|
|
1487
1487
|
//#endregion
|
|
1488
1488
|
//#region src/patterns/PageHeader/PageHeader.tsx
|
|
1489
1489
|
function Ir({ actions: e, back: t, className: n, description: r, ref: i, title: a, ...o }) {
|
|
1490
|
-
|
|
1490
|
+
I();
|
|
1491
1491
|
let s = b();
|
|
1492
1492
|
return h("header", {
|
|
1493
1493
|
...o,
|
|
1494
1494
|
"aria-labelledby": s,
|
|
1495
1495
|
className: `grid gap-5 pb-6 sm:gap-8 sm:pb-8 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-end ${n ?? ""}`,
|
|
1496
|
-
ref:
|
|
1497
|
-
}, /* @__PURE__ */
|
|
1496
|
+
ref: F(i)
|
|
1497
|
+
}, /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P("div", {
|
|
1498
1498
|
className: "grid min-w-0 gap-6",
|
|
1499
|
-
children: [t == null ? null : /* @__PURE__ */
|
|
1499
|
+
children: [t == null ? null : /* @__PURE__ */ N("div", {
|
|
1500
1500
|
className: "justify-self-start",
|
|
1501
1501
|
"data-page-header-back": !0,
|
|
1502
1502
|
children: t
|
|
1503
|
-
}), /* @__PURE__ */
|
|
1503
|
+
}), /* @__PURE__ */ P("div", {
|
|
1504
1504
|
className: "grid gap-2",
|
|
1505
|
-
children: [/* @__PURE__ */
|
|
1505
|
+
children: [/* @__PURE__ */ N("h1", {
|
|
1506
1506
|
className: "m-0 font-[family-name:var(--breeze-font-display)] text-[2rem] leading-[1.12] font-bold tracking-[-0.025em] sm:text-[2.5rem]",
|
|
1507
1507
|
id: s,
|
|
1508
1508
|
children: a
|
|
1509
|
-
}), r == null ? null : /* @__PURE__ */
|
|
1509
|
+
}), r == null ? null : /* @__PURE__ */ N("div", {
|
|
1510
1510
|
className: "m-0 max-w-[65ch] text-base leading-[1.4] text-[var(--breeze-ink-soft)]",
|
|
1511
1511
|
children: r
|
|
1512
1512
|
})]
|
|
1513
1513
|
})]
|
|
1514
|
-
}), e == null ? null : /* @__PURE__ */
|
|
1514
|
+
}), e == null ? null : /* @__PURE__ */ N("div", {
|
|
1515
1515
|
className: "flex flex-col items-stretch sm:items-start lg:items-end",
|
|
1516
1516
|
children: e
|
|
1517
1517
|
})] }));
|
|
@@ -1524,12 +1524,12 @@ var Lr = {
|
|
|
1524
1524
|
sm: "size-8 p-0"
|
|
1525
1525
|
};
|
|
1526
1526
|
function Rr({ appearance: e = "ghost", children: t, className: n, disabled: r = !1, loading: i = !1, onAction: a, ref: o, size: s = "md", type: c = "button", variant: l = "secondary", ...u }) {
|
|
1527
|
-
|
|
1528
|
-
let d =
|
|
1527
|
+
I();
|
|
1528
|
+
let d = F(o);
|
|
1529
1529
|
return h(D, {
|
|
1530
1530
|
...u,
|
|
1531
1531
|
"aria-busy": i || void 0,
|
|
1532
|
-
className:
|
|
1532
|
+
className: L({
|
|
1533
1533
|
appearance: e,
|
|
1534
1534
|
class: [Lr[s], n],
|
|
1535
1535
|
size: s,
|
|
@@ -1539,16 +1539,16 @@ function Rr({ appearance: e = "ghost", children: t, className: n, disabled: r =
|
|
|
1539
1539
|
isPending: i,
|
|
1540
1540
|
onPress: a,
|
|
1541
1541
|
ref: d,
|
|
1542
|
-
render: (e) =>
|
|
1542
|
+
render: (e) => _n({
|
|
1543
1543
|
...u,
|
|
1544
1544
|
"aria-busy": i || void 0,
|
|
1545
1545
|
...e
|
|
1546
1546
|
}, c),
|
|
1547
1547
|
type: c
|
|
1548
|
-
}, i ? /* @__PURE__ */
|
|
1548
|
+
}, i ? /* @__PURE__ */ N("span", {
|
|
1549
1549
|
"aria-hidden": "true",
|
|
1550
1550
|
className: "size-4 animate-spin rounded-full border-2 border-current border-r-transparent"
|
|
1551
|
-
}) : /* @__PURE__ */
|
|
1551
|
+
}) : /* @__PURE__ */ N("span", {
|
|
1552
1552
|
"aria-hidden": "true",
|
|
1553
1553
|
children: t
|
|
1554
1554
|
}));
|
|
@@ -1570,24 +1570,24 @@ function zr(e, t) {
|
|
|
1570
1570
|
});
|
|
1571
1571
|
}
|
|
1572
1572
|
function Br({ currentPage: n, disabled: r = !1, onChange: i, pageCount: a, ref: o, ...s }) {
|
|
1573
|
-
let { direction: c, messages: l } =
|
|
1573
|
+
let { direction: c, messages: l } = I();
|
|
1574
1574
|
if (!Number.isInteger(a) || a < 1) throw RangeError("pageCount must be a positive integer.");
|
|
1575
1575
|
if (!Number.isInteger(n) || n < 1 || n > a) throw RangeError("currentPage must be within the page range.");
|
|
1576
1576
|
let u = zr(n, a), d = c === "rtl" ? t : e, f = c === "rtl" ? e : t, p = (e, t) => {
|
|
1577
1577
|
if (e === "ellipsis") {
|
|
1578
1578
|
let e = u[t + 1];
|
|
1579
|
-
return /* @__PURE__ */
|
|
1579
|
+
return /* @__PURE__ */ N("span", {
|
|
1580
1580
|
"aria-hidden": "true",
|
|
1581
1581
|
className: "px-1",
|
|
1582
1582
|
children: "…"
|
|
1583
1583
|
}, `ellipsis-before-${e}`);
|
|
1584
1584
|
}
|
|
1585
|
-
return e === n ? /* @__PURE__ */
|
|
1585
|
+
return e === n ? /* @__PURE__ */ N("span", {
|
|
1586
1586
|
"aria-current": "page",
|
|
1587
1587
|
"aria-label": `${l.page} ${e}`,
|
|
1588
1588
|
className: "grid min-h-10 min-w-10 place-items-center bg-[var(--breeze-primary)] px-3 font-[family-name:var(--breeze-font-display)] font-bold text-white",
|
|
1589
1589
|
children: e
|
|
1590
|
-
}, e) : /* @__PURE__ */
|
|
1590
|
+
}, e) : /* @__PURE__ */ N(vn, {
|
|
1591
1591
|
"aria-label": `${l.page} ${e}`,
|
|
1592
1592
|
appearance: "ghost",
|
|
1593
1593
|
disabled: r,
|
|
@@ -1599,26 +1599,26 @@ function Br({ currentPage: n, disabled: r = !1, onChange: i, pageCount: a, ref:
|
|
|
1599
1599
|
return h("nav", {
|
|
1600
1600
|
...s,
|
|
1601
1601
|
className: `flex flex-wrap items-center gap-2 ${s.className ?? ""}`,
|
|
1602
|
-
ref:
|
|
1603
|
-
}, /* @__PURE__ */
|
|
1604
|
-
/* @__PURE__ */
|
|
1602
|
+
ref: F(o)
|
|
1603
|
+
}, /* @__PURE__ */ P(M, { children: [
|
|
1604
|
+
/* @__PURE__ */ N(Rr, {
|
|
1605
1605
|
"aria-label": l.previousPage,
|
|
1606
1606
|
disabled: r || n <= 1,
|
|
1607
1607
|
onAction: () => i(n - 1),
|
|
1608
|
-
children: /* @__PURE__ */
|
|
1608
|
+
children: /* @__PURE__ */ N(d, {})
|
|
1609
1609
|
}),
|
|
1610
1610
|
u.map((e, t) => p(e, t)),
|
|
1611
|
-
/* @__PURE__ */
|
|
1611
|
+
/* @__PURE__ */ N(Rr, {
|
|
1612
1612
|
"aria-label": l.nextPage,
|
|
1613
1613
|
disabled: r || n >= a,
|
|
1614
1614
|
onAction: () => i(n + 1),
|
|
1615
|
-
children: /* @__PURE__ */
|
|
1615
|
+
children: /* @__PURE__ */ N(f, {})
|
|
1616
1616
|
})
|
|
1617
1617
|
] }));
|
|
1618
1618
|
}
|
|
1619
1619
|
//#endregion
|
|
1620
1620
|
//#region src/primitives/InputGroup/InputGroup.tsx
|
|
1621
|
-
var Vr =
|
|
1621
|
+
var Vr = j({ base: "breeze-input-group relative flex min-w-0 items-stretch bg-[var(--breeze-surface)] outline-none after:pointer-events-none after:absolute after:inset-0 after:z-10 after:border after:border-[var(--breeze-border-strong)] after:transition-colors after:duration-[var(--breeze-duration-fast)] after:content-[''] data-[disabled]:bg-[var(--breeze-surface-subtle)] data-[focus-within]:after:border-[var(--breeze-primary)] data-[hovered]:after:border-[var(--breeze-primary)] data-[invalid]:after:!border-[var(--breeze-danger)] [&>*]:!border-0 [&>*:not([data-breeze-input-group-addon])+*:not([data-breeze-input-group-addon])]:!border-s [&>*:not([data-breeze-input-group-addon])+*:not([data-breeze-input-group-addon])]:!border-s-[var(--breeze-border-strong)] [&>[data-breeze-input-group-addon]:not(:first-child)]:ps-0 [&>[data-breeze-input-group-addon]:not(:last-child)]:pe-0 [&>[data-focus-visible]]:!outline-none" }), Hr = j({
|
|
1622
1622
|
base: "inline-flex shrink-0 items-center justify-center bg-transparent font-[family-name:var(--breeze-font-display)] font-bold text-[var(--breeze-ink-soft)]",
|
|
1623
1623
|
defaultVariants: { size: "md" },
|
|
1624
1624
|
variants: { size: {
|
|
@@ -1628,9 +1628,9 @@ var Vr = A({ base: "breeze-input-group relative flex min-w-0 items-stretch bg-[v
|
|
|
1628
1628
|
} }
|
|
1629
1629
|
});
|
|
1630
1630
|
function Ur({ className: e, ref: t, role: n = "presentation", ...r }) {
|
|
1631
|
-
|
|
1632
|
-
let i =
|
|
1633
|
-
return h(
|
|
1631
|
+
I();
|
|
1632
|
+
let i = F(t);
|
|
1633
|
+
return h(de, {
|
|
1634
1634
|
...r,
|
|
1635
1635
|
className: Vr({ class: e }),
|
|
1636
1636
|
"data-breeze-input-group": "",
|
|
@@ -1639,7 +1639,7 @@ function Ur({ className: e, ref: t, role: n = "presentation", ...r }) {
|
|
|
1639
1639
|
});
|
|
1640
1640
|
}
|
|
1641
1641
|
function Wr({ className: e, ref: t, size: n, ...r }) {
|
|
1642
|
-
let i =
|
|
1642
|
+
let i = F(t);
|
|
1643
1643
|
return h("span", {
|
|
1644
1644
|
...r,
|
|
1645
1645
|
className: Hr({
|
|
@@ -1653,7 +1653,7 @@ function Wr({ className: e, ref: t, size: n, ...r }) {
|
|
|
1653
1653
|
var Gr = {
|
|
1654
1654
|
Addon: Wr,
|
|
1655
1655
|
Root: Ur
|
|
1656
|
-
}, Kr = "font-[family-name:var(--breeze-font-body)] font-normal", Y =
|
|
1656
|
+
}, Kr = "font-[family-name:var(--breeze-font-body)] font-normal", Y = j({
|
|
1657
1657
|
base: Kr,
|
|
1658
1658
|
defaultVariants: { size: "md" },
|
|
1659
1659
|
variants: { size: {
|
|
@@ -1661,11 +1661,11 @@ var Gr = {
|
|
|
1661
1661
|
md: "min-h-11 px-3 py-2.5 text-base leading-[1.4]",
|
|
1662
1662
|
sm: "min-h-8 px-2.5 py-1.5 text-xs leading-[1.4]"
|
|
1663
1663
|
} }
|
|
1664
|
-
}), qr =
|
|
1664
|
+
}), qr = j({ base: "flex min-w-0 flex-col gap-1.5" }), Jr = j({ base: "w-full border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] text-[var(--breeze-ink)] outline-none transition-colors duration-[var(--breeze-duration-fast)] placeholder:text-[var(--breeze-ink-muted)] data-[hovered]:border-[var(--breeze-primary)] data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-[-2px] data-[focus-visible]:outline-[var(--breeze-focus)] disabled:cursor-not-allowed disabled:bg-[var(--breeze-surface-subtle)] disabled:opacity-70 read-only:cursor-default read-only:bg-[var(--breeze-surface-subtle)] aria-invalid:border-[var(--breeze-danger)]" }), Yr = j({ base: "font-[family-name:var(--breeze-font-display)] text-base font-bold text-[var(--breeze-ink)]" }), Xr = j({ base: "text-sm text-[var(--breeze-ink-soft)]" }), Zr = j({ base: "text-sm font-medium text-[var(--breeze-danger)]" });
|
|
1665
1665
|
function Qr({ children: e, className: t, defaultValue: n, disabled: r = !1, invalid: i = !1, onChange: a, readOnly: o = !1, ref: s, required: c = !1, value: l, ...u }) {
|
|
1666
|
-
|
|
1667
|
-
let d =
|
|
1668
|
-
return h(
|
|
1666
|
+
I();
|
|
1667
|
+
let d = F(s);
|
|
1668
|
+
return h(ge, {
|
|
1669
1669
|
...u,
|
|
1670
1670
|
className: qr({ class: t }),
|
|
1671
1671
|
defaultValue: n,
|
|
@@ -1679,16 +1679,16 @@ function Qr({ children: e, className: t, defaultValue: n, disabled: r = !1, inva
|
|
|
1679
1679
|
}, e);
|
|
1680
1680
|
}
|
|
1681
1681
|
function $r({ className: e, ref: t, ...n }) {
|
|
1682
|
-
let r =
|
|
1683
|
-
return h(
|
|
1682
|
+
let r = F(t);
|
|
1683
|
+
return h(me, {
|
|
1684
1684
|
...n,
|
|
1685
1685
|
className: Yr({ class: e }),
|
|
1686
1686
|
ref: r
|
|
1687
1687
|
});
|
|
1688
1688
|
}
|
|
1689
1689
|
function ei({ className: e, ref: t, size: n, type: r = "text", ...i }) {
|
|
1690
|
-
let a =
|
|
1691
|
-
return h(
|
|
1690
|
+
let a = F(t);
|
|
1691
|
+
return h(pe, {
|
|
1692
1692
|
...i,
|
|
1693
1693
|
className: Y({
|
|
1694
1694
|
class: Jr({ class: e }),
|
|
@@ -1699,8 +1699,8 @@ function ei({ className: e, ref: t, size: n, type: r = "text", ...i }) {
|
|
|
1699
1699
|
});
|
|
1700
1700
|
}
|
|
1701
1701
|
function ti({ className: e, ref: t, ...n }) {
|
|
1702
|
-
let r =
|
|
1703
|
-
return h(
|
|
1702
|
+
let r = F(t);
|
|
1703
|
+
return h(A, {
|
|
1704
1704
|
...n,
|
|
1705
1705
|
className: Xr({ class: e }),
|
|
1706
1706
|
ref: r,
|
|
@@ -1708,8 +1708,8 @@ function ti({ className: e, ref: t, ...n }) {
|
|
|
1708
1708
|
});
|
|
1709
1709
|
}
|
|
1710
1710
|
function ni({ className: e, ref: t, ...n }) {
|
|
1711
|
-
let r =
|
|
1712
|
-
return h(
|
|
1711
|
+
let r = F(t);
|
|
1712
|
+
return h(fe, {
|
|
1713
1713
|
...n,
|
|
1714
1714
|
className: Zr({ class: e }),
|
|
1715
1715
|
ref: r
|
|
@@ -1721,32 +1721,32 @@ var X = {
|
|
|
1721
1721
|
Input: ei,
|
|
1722
1722
|
Label: $r,
|
|
1723
1723
|
Root: Qr
|
|
1724
|
-
}, ri =
|
|
1724
|
+
}, ri = j({ base: "[&>*:not([data-breeze-input-group-addon])+*:not([data-breeze-input-group-addon])]:!border-s-0 [&>.breeze-action:focus-visible]:!outline-0 [&>.breeze-action[data-focus-visible]]:!outline-0 data-[disabled]:opacity-70 data-[focus-within]:outline-2 data-[focus-within]:outline-offset-[-2px] data-[focus-within]:outline-solid data-[focus-within]:outline-[var(--breeze-focus)] has-[input:read-only]:bg-[var(--breeze-surface-subtle)] has-[input:read-only]:opacity-70" }), ii = j({ base: "min-w-0 w-auto flex-1 bg-transparent disabled:!bg-transparent disabled:!opacity-100 read-only:!bg-transparent read-only:!opacity-100" }), ai = j({ base: "!border-0 !bg-transparent !outline-none text-[var(--breeze-ink-soft)] disabled:!opacity-100 data-[disabled]:!opacity-100 data-[hovered]:!bg-transparent data-[hovered]:text-[var(--breeze-primary)] data-[pressed]:!translate-y-0" });
|
|
1725
1725
|
function oi({ autoComplete: e, defaultValue: t, description: n, disabled: r = !1, error: i, invalid: a = !1, label: c, name: l, onChange: u, placeholder: d, readOnly: f = !1, required: p = !1, size: m = "md", value: h }) {
|
|
1726
|
-
let { messages: g } =
|
|
1727
|
-
/* @__PURE__ */
|
|
1728
|
-
/* @__PURE__ */
|
|
1726
|
+
let { messages: g } = I(), [_, v] = w(!1), y = /* @__PURE__ */ P(M, { children: [
|
|
1727
|
+
/* @__PURE__ */ N(X.Label, { children: c }),
|
|
1728
|
+
/* @__PURE__ */ P(Gr.Root, {
|
|
1729
1729
|
className: ri(),
|
|
1730
|
-
children: [/* @__PURE__ */
|
|
1730
|
+
children: [/* @__PURE__ */ N(X.Input, {
|
|
1731
1731
|
autoComplete: e,
|
|
1732
1732
|
className: ii(),
|
|
1733
1733
|
name: l,
|
|
1734
1734
|
placeholder: d,
|
|
1735
1735
|
size: m,
|
|
1736
1736
|
type: _ ? "text" : "password"
|
|
1737
|
-
}), /* @__PURE__ */
|
|
1737
|
+
}), /* @__PURE__ */ N(Rr, {
|
|
1738
1738
|
"aria-label": _ ? g.hidePassword : g.showPassword,
|
|
1739
1739
|
className: ai(),
|
|
1740
1740
|
disabled: r,
|
|
1741
1741
|
onAction: () => v((e) => !e),
|
|
1742
1742
|
size: m,
|
|
1743
|
-
children:
|
|
1743
|
+
children: N(_ ? s : o, {})
|
|
1744
1744
|
})]
|
|
1745
1745
|
}),
|
|
1746
|
-
n === void 0 ? null : /* @__PURE__ */
|
|
1747
|
-
i === void 0 ? null : /* @__PURE__ */
|
|
1746
|
+
n === void 0 ? null : /* @__PURE__ */ N(X.Description, { children: n }),
|
|
1747
|
+
i === void 0 ? null : /* @__PURE__ */ N(X.Error, { children: i })
|
|
1748
1748
|
] });
|
|
1749
|
-
if (h === void 0) return /* @__PURE__ */
|
|
1749
|
+
if (h === void 0) return /* @__PURE__ */ N(X.Root, {
|
|
1750
1750
|
defaultValue: t,
|
|
1751
1751
|
disabled: r,
|
|
1752
1752
|
invalid: a,
|
|
@@ -1754,7 +1754,7 @@ function oi({ autoComplete: e, defaultValue: t, description: n, disabled: r = !1
|
|
|
1754
1754
|
required: p,
|
|
1755
1755
|
children: y
|
|
1756
1756
|
});
|
|
1757
|
-
if (f) return /* @__PURE__ */
|
|
1757
|
+
if (f) return /* @__PURE__ */ N(X.Root, {
|
|
1758
1758
|
disabled: r,
|
|
1759
1759
|
invalid: a,
|
|
1760
1760
|
readOnly: !0,
|
|
@@ -1763,7 +1763,7 @@ function oi({ autoComplete: e, defaultValue: t, description: n, disabled: r = !1
|
|
|
1763
1763
|
children: y
|
|
1764
1764
|
});
|
|
1765
1765
|
if (u === void 0) throw Error("Controlled PasswordField requires onChange.");
|
|
1766
|
-
return /* @__PURE__ */
|
|
1766
|
+
return /* @__PURE__ */ N(X.Root, {
|
|
1767
1767
|
disabled: r,
|
|
1768
1768
|
invalid: a,
|
|
1769
1769
|
onChange: u,
|
|
@@ -1775,21 +1775,21 @@ function oi({ autoComplete: e, defaultValue: t, description: n, disabled: r = !1
|
|
|
1775
1775
|
//#endregion
|
|
1776
1776
|
//#region src/patterns/SectionHeader/SectionHeader.tsx
|
|
1777
1777
|
function si({ action: e, className: t, description: n, id: r, ref: i, title: a, ...o }) {
|
|
1778
|
-
return
|
|
1778
|
+
return I(), h("header", {
|
|
1779
1779
|
...o,
|
|
1780
1780
|
className: `flex items-start justify-between gap-3 border-b border-[var(--breeze-border)] px-5 py-4 ${t ?? ""}`,
|
|
1781
|
-
ref:
|
|
1782
|
-
}, /* @__PURE__ */
|
|
1781
|
+
ref: F(i)
|
|
1782
|
+
}, /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P("div", {
|
|
1783
1783
|
className: "grid min-w-0 gap-1",
|
|
1784
|
-
children: [/* @__PURE__ */
|
|
1784
|
+
children: [/* @__PURE__ */ N("h2", {
|
|
1785
1785
|
className: "m-0 font-[family-name:var(--breeze-font-display)] text-xl font-bold",
|
|
1786
1786
|
id: r,
|
|
1787
1787
|
children: a
|
|
1788
|
-
}), n == null ? null : /* @__PURE__ */
|
|
1788
|
+
}), n == null ? null : /* @__PURE__ */ N("p", {
|
|
1789
1789
|
className: "m-0 max-w-[65ch] text-base text-[var(--breeze-ink-soft)]",
|
|
1790
1790
|
children: n
|
|
1791
1791
|
})]
|
|
1792
|
-
}), e == null ? null : /* @__PURE__ */
|
|
1792
|
+
}), e == null ? null : /* @__PURE__ */ N("div", {
|
|
1793
1793
|
className: "shrink-0",
|
|
1794
1794
|
children: e
|
|
1795
1795
|
})] }));
|
|
@@ -1797,11 +1797,11 @@ function si({ action: e, className: t, description: n, id: r, ref: i, title: a,
|
|
|
1797
1797
|
//#endregion
|
|
1798
1798
|
//#region src/primitives/ToggleButton/ToggleButton.tsx
|
|
1799
1799
|
function ci({ appearance: e = "outline", children: t, className: n, defaultSelected: r, disabled: i = !1, id: a, onChange: o, readOnly: s = !1, ref: c, selected: l, size: u, value: d, variant: f, ...p }) {
|
|
1800
|
-
|
|
1801
|
-
let m =
|
|
1802
|
-
return h(
|
|
1800
|
+
I();
|
|
1801
|
+
let m = F(c);
|
|
1802
|
+
return h(_e, {
|
|
1803
1803
|
...p,
|
|
1804
|
-
className: ({ isSelected: t }) =>
|
|
1804
|
+
className: ({ isSelected: t }) => L({
|
|
1805
1805
|
appearance: t ? "solid" : e,
|
|
1806
1806
|
class: n,
|
|
1807
1807
|
size: u,
|
|
@@ -1817,7 +1817,7 @@ function ci({ appearance: e = "outline", children: t, className: n, defaultSelec
|
|
|
1817
1817
|
}
|
|
1818
1818
|
//#endregion
|
|
1819
1819
|
//#region src/primitives/ToggleGroup/ToggleGroup.tsx
|
|
1820
|
-
var li =
|
|
1820
|
+
var li = j({
|
|
1821
1821
|
base: "inline-flex gap-1",
|
|
1822
1822
|
defaultVariants: { orientation: "horizontal" },
|
|
1823
1823
|
variants: { orientation: {
|
|
@@ -1826,9 +1826,9 @@ var li = A({
|
|
|
1826
1826
|
} }
|
|
1827
1827
|
});
|
|
1828
1828
|
function ui({ children: e, className: t, defaultSelection: n, disabled: r = !1, multiple: i = !1, onSelectionChange: a, orientation: o, readOnly: s, ref: c, selection: l, ...u }) {
|
|
1829
|
-
|
|
1830
|
-
let d =
|
|
1831
|
-
return h(
|
|
1829
|
+
I();
|
|
1830
|
+
let d = F(c);
|
|
1831
|
+
return h(ve, {
|
|
1832
1832
|
...u,
|
|
1833
1833
|
className: li({
|
|
1834
1834
|
class: t,
|
|
@@ -1849,12 +1849,12 @@ function di({ "aria-label": e, className: t, defaultValue: n, disabled: r = !1,
|
|
|
1849
1849
|
let l = c === void 0 ? void 0 : [c], u = n === void 0 ? void 0 : [n], d = (e) => {
|
|
1850
1850
|
let [t] = e;
|
|
1851
1851
|
t !== void 0 && i?.(t);
|
|
1852
|
-
}, f = /* @__PURE__ */ M
|
|
1852
|
+
}, f = /* @__PURE__ */ N(M, { children: a.map((e) => /* @__PURE__ */ N(ci, {
|
|
1853
1853
|
disabled: e.disabled,
|
|
1854
1854
|
value: e.value,
|
|
1855
1855
|
children: e.label
|
|
1856
1856
|
}, e.value)) }), p = `gap-0 ${o === "vertical" ? "[&>button+button]:border-t-0" : "[&>button+button]:border-s-0"} ${t ?? ""}`;
|
|
1857
|
-
if (l === void 0) return /* @__PURE__ */
|
|
1857
|
+
if (l === void 0) return /* @__PURE__ */ N(ui, {
|
|
1858
1858
|
"aria-label": e,
|
|
1859
1859
|
className: p,
|
|
1860
1860
|
defaultSelection: u,
|
|
@@ -1863,7 +1863,7 @@ function di({ "aria-label": e, className: t, defaultValue: n, disabled: r = !1,
|
|
|
1863
1863
|
orientation: o,
|
|
1864
1864
|
children: f
|
|
1865
1865
|
});
|
|
1866
|
-
if (s) return /* @__PURE__ */
|
|
1866
|
+
if (s) return /* @__PURE__ */ N(ui, {
|
|
1867
1867
|
"aria-label": e,
|
|
1868
1868
|
className: p,
|
|
1869
1869
|
disabled: r,
|
|
@@ -1873,7 +1873,7 @@ function di({ "aria-label": e, className: t, defaultValue: n, disabled: r = !1,
|
|
|
1873
1873
|
children: f
|
|
1874
1874
|
});
|
|
1875
1875
|
if (i === void 0) throw Error("Controlled SegmentedControl requires onChange.");
|
|
1876
|
-
return /* @__PURE__ */
|
|
1876
|
+
return /* @__PURE__ */ N(ui, {
|
|
1877
1877
|
"aria-label": e,
|
|
1878
1878
|
className: p,
|
|
1879
1879
|
disabled: r,
|
|
@@ -1886,30 +1886,30 @@ function di({ "aria-label": e, className: t, defaultValue: n, disabled: r = !1,
|
|
|
1886
1886
|
//#endregion
|
|
1887
1887
|
//#region src/patterns/StatePanel/StatePanel.tsx
|
|
1888
1888
|
function fi({ action: e, className: t, description: n, icon: r, ref: i, title: a, variant: o = "info", ...s }) {
|
|
1889
|
-
|
|
1889
|
+
I();
|
|
1890
1890
|
let c = b();
|
|
1891
1891
|
return h("section", {
|
|
1892
1892
|
...s,
|
|
1893
1893
|
"aria-labelledby": c,
|
|
1894
1894
|
className: `grid grid-cols-[auto_minmax(0,1fr)] gap-x-4 gap-y-4 border-b-2 border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] p-5 sm:gap-x-5 sm:p-8 ${t ?? ""}`,
|
|
1895
|
-
ref:
|
|
1896
|
-
}, /* @__PURE__ */
|
|
1895
|
+
ref: F(i)
|
|
1896
|
+
}, /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(Yn, {
|
|
1897
1897
|
size: "lg",
|
|
1898
1898
|
variant: o,
|
|
1899
1899
|
children: r
|
|
1900
|
-
}), /* @__PURE__ */
|
|
1900
|
+
}), /* @__PURE__ */ P("div", {
|
|
1901
1901
|
className: "grid min-w-0 content-center gap-2",
|
|
1902
1902
|
children: [
|
|
1903
|
-
/* @__PURE__ */
|
|
1903
|
+
/* @__PURE__ */ N("h2", {
|
|
1904
1904
|
className: "m-0 font-[family-name:var(--breeze-font-display)] text-2xl font-bold",
|
|
1905
1905
|
id: c,
|
|
1906
1906
|
children: a
|
|
1907
1907
|
}),
|
|
1908
|
-
/* @__PURE__ */
|
|
1908
|
+
/* @__PURE__ */ N("div", {
|
|
1909
1909
|
className: "col-span-2 m-0 max-w-[65ch] text-base text-[var(--breeze-ink-soft)] sm:col-span-1",
|
|
1910
1910
|
children: n
|
|
1911
1911
|
}),
|
|
1912
|
-
e == null ? null : /* @__PURE__ */
|
|
1912
|
+
e == null ? null : /* @__PURE__ */ N("div", {
|
|
1913
1913
|
className: "col-span-2 mt-3 flex flex-col items-stretch sm:col-span-1 sm:items-start",
|
|
1914
1914
|
children: e
|
|
1915
1915
|
})
|
|
@@ -1918,7 +1918,7 @@ function fi({ action: e, className: t, description: n, icon: r, ref: i, title: a
|
|
|
1918
1918
|
}
|
|
1919
1919
|
//#endregion
|
|
1920
1920
|
//#region src/primitives/Avatar/Avatar.tsx
|
|
1921
|
-
var pi =
|
|
1921
|
+
var pi = j({
|
|
1922
1922
|
base: "inline-flex shrink-0 items-center justify-center overflow-hidden font-[family-name:var(--breeze-font-display)] font-bold",
|
|
1923
1923
|
defaultVariants: {
|
|
1924
1924
|
shape: "circle",
|
|
@@ -1945,8 +1945,8 @@ function mi(e) {
|
|
|
1945
1945
|
return e.trim().split(/\s+/u).filter(Boolean).slice(0, 2).map((e) => Array.from(e).at(0)?.toUpperCase()).join("");
|
|
1946
1946
|
}
|
|
1947
1947
|
function hi({ className: e, initials: t, name: n, ref: r, shape: i, size: a, src: o, tone: s = "primary", ...c }) {
|
|
1948
|
-
|
|
1949
|
-
let [l, u] = w(), d =
|
|
1948
|
+
I();
|
|
1949
|
+
let [l, u] = w(), d = F(r), f = o !== void 0 && l !== o;
|
|
1950
1950
|
return h("span", {
|
|
1951
1951
|
...c,
|
|
1952
1952
|
"aria-label": n,
|
|
@@ -1959,7 +1959,7 @@ function hi({ className: e, initials: t, name: n, ref: r, shape: i, size: a, src
|
|
|
1959
1959
|
"data-tone": s,
|
|
1960
1960
|
ref: d,
|
|
1961
1961
|
role: "img"
|
|
1962
|
-
}, f ? /* @__PURE__ */
|
|
1962
|
+
}, f ? /* @__PURE__ */ N("img", {
|
|
1963
1963
|
alt: "",
|
|
1964
1964
|
className: "size-full object-cover",
|
|
1965
1965
|
onError: () => u(o),
|
|
@@ -1969,66 +1969,66 @@ function hi({ className: e, initials: t, name: n, ref: r, shape: i, size: a, src
|
|
|
1969
1969
|
//#endregion
|
|
1970
1970
|
//#region src/patterns/UserMenu/UserMenu.tsx
|
|
1971
1971
|
function gi({ "aria-label": e, actions: t, defaultOpen: n, hasUnread: r = !1, notificationHeading: i, notificationState: a, notifications: o, onOpenChange: s, open: c, src: l, unreadLabel: u, userName: d }) {
|
|
1972
|
-
let { messages: f } =
|
|
1972
|
+
let { messages: f } = I(), p = C(null), m = /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P(K.Trigger, {
|
|
1973
1973
|
"aria-label": r ? u ?? `${e}, ${f.unreadNotifications}` : e,
|
|
1974
1974
|
className: "relative min-h-14 w-full justify-start gap-3 border-0 bg-transparent p-2 text-start text-inherit data-[hovered]:bg-[var(--breeze-shell-soft)]",
|
|
1975
1975
|
"data-breeze-user-menu-trigger": "",
|
|
1976
1976
|
ref: p,
|
|
1977
|
-
children: [/* @__PURE__ */
|
|
1977
|
+
children: [/* @__PURE__ */ P("span", {
|
|
1978
1978
|
className: "relative",
|
|
1979
|
-
children: [/* @__PURE__ */
|
|
1979
|
+
children: [/* @__PURE__ */ N(hi, {
|
|
1980
1980
|
name: d,
|
|
1981
1981
|
size: "md",
|
|
1982
1982
|
src: l
|
|
1983
|
-
}), r ? /* @__PURE__ */
|
|
1983
|
+
}), r ? /* @__PURE__ */ N("span", {
|
|
1984
1984
|
"aria-hidden": "true",
|
|
1985
1985
|
className: "absolute -end-0.5 -top-0.5 size-3 rounded-full border-2 border-[var(--breeze-shell)] bg-[var(--breeze-danger)]"
|
|
1986
1986
|
}) : null]
|
|
1987
|
-
}), /* @__PURE__ */
|
|
1987
|
+
}), /* @__PURE__ */ N("strong", {
|
|
1988
1988
|
className: "min-w-0 truncate text-base",
|
|
1989
1989
|
"data-breeze-user-name": "",
|
|
1990
1990
|
children: d
|
|
1991
1991
|
})]
|
|
1992
|
-
}), /* @__PURE__ */
|
|
1992
|
+
}), /* @__PURE__ */ P(or, {
|
|
1993
1993
|
className: "w-80",
|
|
1994
1994
|
placement: "top start",
|
|
1995
1995
|
triggerRef: p,
|
|
1996
|
-
children: [o === void 0 ? null : /* @__PURE__ */
|
|
1996
|
+
children: [o === void 0 ? null : /* @__PURE__ */ P("div", {
|
|
1997
1997
|
className: "border-b border-[var(--breeze-border)]",
|
|
1998
|
-
children: [i === void 0 ? null : /* @__PURE__ */
|
|
1998
|
+
children: [i === void 0 ? null : /* @__PURE__ */ P("div", {
|
|
1999
1999
|
className: "flex items-center justify-between gap-3 border-b border-[var(--breeze-border)] px-4 py-3",
|
|
2000
|
-
children: [/* @__PURE__ */
|
|
2000
|
+
children: [/* @__PURE__ */ N("strong", {
|
|
2001
2001
|
className: "font-[family-name:var(--breeze-font-display)] text-xl",
|
|
2002
2002
|
children: i
|
|
2003
|
-
}), a === void 0 ? null : /* @__PURE__ */
|
|
2003
|
+
}), a === void 0 ? null : /* @__PURE__ */ N("span", {
|
|
2004
2004
|
className: "bg-[var(--breeze-danger-soft)] px-2 py-1 font-bold text-[var(--breeze-danger)]",
|
|
2005
2005
|
children: a
|
|
2006
2006
|
})]
|
|
2007
|
-
}), /* @__PURE__ */
|
|
2007
|
+
}), /* @__PURE__ */ N("div", {
|
|
2008
2008
|
className: "bg-[var(--breeze-primary-soft)] p-4",
|
|
2009
2009
|
children: o
|
|
2010
2010
|
})]
|
|
2011
|
-
}), /* @__PURE__ */
|
|
2011
|
+
}), /* @__PURE__ */ N(K.List, {
|
|
2012
2012
|
"aria-label": e,
|
|
2013
|
-
children: t.map((e) => /* @__PURE__ */
|
|
2013
|
+
children: t.map((e) => /* @__PURE__ */ N(K.Item, {
|
|
2014
2014
|
className: e.variant === "danger" ? "justify-center border-b-0 bg-[var(--breeze-danger)] font-bold text-white data-[focus-visible]:bg-[var(--breeze-danger-hover)] data-[hovered]:bg-[var(--breeze-danger-hover)] data-[selected]:bg-[var(--breeze-danger-hover)]" : void 0,
|
|
2015
2015
|
disabled: e.disabled,
|
|
2016
2016
|
href: e.href,
|
|
2017
2017
|
id: e.id,
|
|
2018
2018
|
onAction: () => e.onAction?.(e.id),
|
|
2019
2019
|
textValue: e.label,
|
|
2020
|
-
children: /* @__PURE__ */
|
|
2020
|
+
children: /* @__PURE__ */ P("span", {
|
|
2021
2021
|
className: "flex items-center gap-2.5",
|
|
2022
2022
|
children: [e.icon, e.label]
|
|
2023
2023
|
})
|
|
2024
2024
|
}, e.id))
|
|
2025
2025
|
})]
|
|
2026
2026
|
})] });
|
|
2027
|
-
return c === void 0 ? /* @__PURE__ */
|
|
2027
|
+
return c === void 0 ? /* @__PURE__ */ N(K.Root, {
|
|
2028
2028
|
defaultOpen: n,
|
|
2029
2029
|
onOpenChange: s,
|
|
2030
2030
|
children: m
|
|
2031
|
-
}) : /* @__PURE__ */
|
|
2031
|
+
}) : /* @__PURE__ */ N(K.Root, {
|
|
2032
2032
|
onOpenChange: s,
|
|
2033
2033
|
open: c,
|
|
2034
2034
|
children: m
|
|
@@ -2036,30 +2036,30 @@ function gi({ "aria-label": e, actions: t, defaultOpen: n, hasUnread: r = !1, no
|
|
|
2036
2036
|
}
|
|
2037
2037
|
//#endregion
|
|
2038
2038
|
//#region src/internal/react-aria/DisclosureParts.tsx
|
|
2039
|
-
var _i =
|
|
2039
|
+
var _i = j({ base: "flex min-h-11 w-full items-center justify-between gap-3 px-3 py-2 text-start font-semibold text-[var(--breeze-ink)] outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-45 data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)]" }), vi = j({ base: "px-3 pb-4 text-[var(--breeze-ink)]" });
|
|
2040
2040
|
function yi({ children: e, className: t, headingLevel: n = 3, ref: r, ...i }) {
|
|
2041
|
-
return /* @__PURE__ */
|
|
2041
|
+
return /* @__PURE__ */ N(O, {
|
|
2042
2042
|
level: n,
|
|
2043
2043
|
children: h(D, {
|
|
2044
2044
|
...i,
|
|
2045
2045
|
className: _i({ class: t }),
|
|
2046
|
-
ref:
|
|
2046
|
+
ref: F(r),
|
|
2047
2047
|
slot: "trigger"
|
|
2048
2048
|
}, e)
|
|
2049
2049
|
});
|
|
2050
2050
|
}
|
|
2051
2051
|
function bi({ className: e, ref: t, ...n }) {
|
|
2052
|
-
return h(
|
|
2052
|
+
return h(Se, {
|
|
2053
2053
|
...n,
|
|
2054
2054
|
className: vi({ class: e }),
|
|
2055
|
-
ref:
|
|
2055
|
+
ref: F(t)
|
|
2056
2056
|
});
|
|
2057
2057
|
}
|
|
2058
2058
|
//#endregion
|
|
2059
2059
|
//#region src/primitives/Accordion/Accordion.tsx
|
|
2060
|
-
var xi =
|
|
2060
|
+
var xi = j({ base: "divide-y divide-[var(--breeze-border)] border border-[var(--breeze-border)] bg-[var(--breeze-surface)]" }), Si = j({ base: "group" });
|
|
2061
2061
|
function Ci({ className: e, defaultValue: t, disabled: n = !1, multiple: r = !1, onChange: i, readOnly: a, ref: o, value: s, ...c }) {
|
|
2062
|
-
return
|
|
2062
|
+
return I(), h(be, {
|
|
2063
2063
|
...c,
|
|
2064
2064
|
allowsMultipleExpanded: r,
|
|
2065
2065
|
className: xi({ class: e }),
|
|
@@ -2067,16 +2067,16 @@ function Ci({ className: e, defaultValue: t, disabled: n = !1, multiple: r = !1,
|
|
|
2067
2067
|
expandedKeys: s,
|
|
2068
2068
|
isDisabled: n,
|
|
2069
2069
|
onExpandedChange: (e) => i?.([...e]),
|
|
2070
|
-
ref:
|
|
2070
|
+
ref: F(o)
|
|
2071
2071
|
});
|
|
2072
2072
|
}
|
|
2073
2073
|
function wi({ className: e, disabled: t = !1, id: n, ref: r, ...i }) {
|
|
2074
|
-
return h(
|
|
2074
|
+
return h(ye, {
|
|
2075
2075
|
...i,
|
|
2076
2076
|
className: Si({ class: e }),
|
|
2077
2077
|
id: n,
|
|
2078
2078
|
isDisabled: t,
|
|
2079
|
-
ref:
|
|
2079
|
+
ref: F(r)
|
|
2080
2080
|
});
|
|
2081
2081
|
}
|
|
2082
2082
|
var Ti = {
|
|
@@ -2084,7 +2084,7 @@ var Ti = {
|
|
|
2084
2084
|
Panel: bi,
|
|
2085
2085
|
Root: Ci,
|
|
2086
2086
|
Trigger: yi
|
|
2087
|
-
}, Ei =
|
|
2087
|
+
}, Ei = j({
|
|
2088
2088
|
base: "flex min-w-0 items-center gap-3 border px-4 py-3 font-[family-name:var(--breeze-font-body)] text-base leading-[1.4] forced-colors:border-[CanvasText]",
|
|
2089
2089
|
defaultVariants: { variant: "info" },
|
|
2090
2090
|
variants: { variant: {
|
|
@@ -2103,7 +2103,7 @@ function Di(e) {
|
|
|
2103
2103
|
if (e === "polite") return "status";
|
|
2104
2104
|
}
|
|
2105
2105
|
function Oi({ announcement: e = "assertive", className: t, ref: n, variant: r = "info", ...i }) {
|
|
2106
|
-
return
|
|
2106
|
+
return I(), h("div", {
|
|
2107
2107
|
...i,
|
|
2108
2108
|
"aria-atomic": e === "off" ? void 0 : "true",
|
|
2109
2109
|
"aria-live": e,
|
|
@@ -2112,13 +2112,13 @@ function Oi({ announcement: e = "assertive", className: t, ref: n, variant: r =
|
|
|
2112
2112
|
variant: r
|
|
2113
2113
|
}),
|
|
2114
2114
|
"data-variant": r,
|
|
2115
|
-
ref:
|
|
2115
|
+
ref: F(n),
|
|
2116
2116
|
role: Di(e)
|
|
2117
2117
|
});
|
|
2118
2118
|
}
|
|
2119
2119
|
//#endregion
|
|
2120
2120
|
//#region src/primitives/Badge/Badge.tsx
|
|
2121
|
-
var ki =
|
|
2121
|
+
var ki = j({
|
|
2122
2122
|
base: "inline-flex min-h-6 items-center gap-1 rounded-full border px-2 py-0.5 font-[family-name:var(--breeze-font-display)] text-xs font-bold leading-none",
|
|
2123
2123
|
compoundVariants: [
|
|
2124
2124
|
{
|
|
@@ -2231,8 +2231,8 @@ var ki = A({
|
|
|
2231
2231
|
}
|
|
2232
2232
|
});
|
|
2233
2233
|
function Ai({ appearance: e, className: t, ref: n, variant: r, ...i }) {
|
|
2234
|
-
|
|
2235
|
-
let a =
|
|
2234
|
+
I();
|
|
2235
|
+
let a = F(n);
|
|
2236
2236
|
return h("span", {
|
|
2237
2237
|
...i,
|
|
2238
2238
|
className: ki({
|
|
@@ -2245,11 +2245,11 @@ function Ai({ appearance: e, className: t, ref: n, variant: r, ...i }) {
|
|
|
2245
2245
|
}
|
|
2246
2246
|
//#endregion
|
|
2247
2247
|
//#region src/primitives/Breadcrumbs/Breadcrumbs.tsx
|
|
2248
|
-
var ji =
|
|
2248
|
+
var ji = j({ base: "flex min-w-0 flex-wrap items-center gap-2" }), Mi = j({ base: "flex min-w-0 items-center gap-2 text-sm text-[var(--breeze-ink-muted)] after:content-[\"/\"] last:text-[var(--breeze-ink)] last:after:hidden" });
|
|
2249
2249
|
function Ni({ className: e, disabled: t = !1, ref: n, ...r }) {
|
|
2250
|
-
|
|
2251
|
-
let i =
|
|
2252
|
-
return h(
|
|
2250
|
+
I();
|
|
2251
|
+
let i = F(n);
|
|
2252
|
+
return h(we, {
|
|
2253
2253
|
...r,
|
|
2254
2254
|
className: ji({ class: e }),
|
|
2255
2255
|
isDisabled: t,
|
|
@@ -2257,16 +2257,16 @@ function Ni({ className: e, disabled: t = !1, ref: n, ...r }) {
|
|
|
2257
2257
|
});
|
|
2258
2258
|
}
|
|
2259
2259
|
function Pi({ children: e, className: t, disabled: n = !1, href: r, id: i, ref: a, ...o }) {
|
|
2260
|
-
let s =
|
|
2261
|
-
return h(
|
|
2260
|
+
let s = F(a);
|
|
2261
|
+
return h(Ce, {
|
|
2262
2262
|
...o,
|
|
2263
2263
|
className: Mi({ class: t }),
|
|
2264
2264
|
id: i,
|
|
2265
2265
|
ref: s
|
|
2266
|
-
}, r === void 0 ? /* @__PURE__ */
|
|
2266
|
+
}, r === void 0 ? /* @__PURE__ */ N("span", {
|
|
2267
2267
|
"aria-current": "page",
|
|
2268
2268
|
children: e
|
|
2269
|
-
}) : /* @__PURE__ */
|
|
2269
|
+
}) : /* @__PURE__ */ N(Ln, {
|
|
2270
2270
|
disabled: n,
|
|
2271
2271
|
href: r,
|
|
2272
2272
|
variant: "muted",
|
|
@@ -2278,13 +2278,13 @@ var Fi = {
|
|
|
2278
2278
|
Root: Ni
|
|
2279
2279
|
}, Ii = /(?:Z|[+-]\d{2}:\d{2})$/, Z = (e) => String(e).padStart(2, "0");
|
|
2280
2280
|
function Q(e) {
|
|
2281
|
-
return e === null ? null :
|
|
2281
|
+
return e === null ? null : Pe(e);
|
|
2282
2282
|
}
|
|
2283
2283
|
function Li(e) {
|
|
2284
2284
|
return e?.toString() ?? null;
|
|
2285
2285
|
}
|
|
2286
2286
|
function Ri(e) {
|
|
2287
|
-
return e === null ? null :
|
|
2287
|
+
return e === null ? null : Fe(e);
|
|
2288
2288
|
}
|
|
2289
2289
|
function zi(e) {
|
|
2290
2290
|
if (e === null) return null;
|
|
@@ -2293,8 +2293,8 @@ function zi(e) {
|
|
|
2293
2293
|
}
|
|
2294
2294
|
function Bi(e) {
|
|
2295
2295
|
return e === null ? null : {
|
|
2296
|
-
end:
|
|
2297
|
-
start:
|
|
2296
|
+
end: Pe(e.end),
|
|
2297
|
+
start: Pe(e.start)
|
|
2298
2298
|
};
|
|
2299
2299
|
}
|
|
2300
2300
|
function Vi(e) {
|
|
@@ -2306,7 +2306,7 @@ function Vi(e) {
|
|
|
2306
2306
|
function Hi(e, t) {
|
|
2307
2307
|
if (e === null) return null;
|
|
2308
2308
|
if (!Ii.test(e)) throw Error("DateTimePicker values require an explicit ISO 8601 offset.");
|
|
2309
|
-
return
|
|
2309
|
+
return Ne(e, t);
|
|
2310
2310
|
}
|
|
2311
2311
|
function Ui(e) {
|
|
2312
2312
|
if (e === null) return null;
|
|
@@ -2315,20 +2315,20 @@ function Ui(e) {
|
|
|
2315
2315
|
}
|
|
2316
2316
|
//#endregion
|
|
2317
2317
|
//#region src/primitives/date/CalendarParts.tsx
|
|
2318
|
-
var Wi =
|
|
2318
|
+
var Wi = j({ base: "grid h-11 w-full grid-cols-[2.75rem_minmax(0,1fr)_2.75rem] items-center bg-[var(--breeze-shell-soft)] text-white" }), Gi = j({ base: "grid size-11 place-items-center justify-self-center border-0 bg-transparent p-0 text-white outline-none data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-[-2px] data-[focus-visible]:outline-[var(--breeze-focus)] data-[hovered]:bg-white/10" }), Ki = j({ base: "text-center font-[family-name:var(--breeze-font-display)] text-base font-bold" }), qi = j({ base: "w-full table-fixed border-separate border-spacing-0 [&_tbody]:before:table-row [&_tbody]:before:h-1 [&_tbody]:before:content-[''] [&_th]:h-9 [&_th]:text-center [&_th]:font-[family-name:var(--breeze-font-display)] [&_th]:text-base [&_th]:font-bold [&_th]:text-[var(--breeze-ink-muted)]" }), Ji = j({ base: "grid h-11 w-full place-items-center text-center font-[family-name:var(--breeze-font-body)] text-base font-normal outline-none data-[focused]:outline-2 data-[focused]:outline-offset-[-2px] data-[focused]:outline-[var(--breeze-focus)] data-[hovered]:bg-[var(--breeze-primary-soft)] data-[selected]:bg-[var(--breeze-primary)] data-[selected]:font-bold data-[selected]:text-white data-[disabled]:opacity-40 data-[outside-month]:invisible data-[unavailable]:line-through" });
|
|
2319
2319
|
function Yi({ className: e, ref: t, ...n }) {
|
|
2320
2320
|
return h("div", {
|
|
2321
2321
|
...n,
|
|
2322
2322
|
className: Wi({ class: e }),
|
|
2323
|
-
ref:
|
|
2323
|
+
ref: F(t)
|
|
2324
2324
|
});
|
|
2325
2325
|
}
|
|
2326
2326
|
function Xi({ "aria-label": t, children: n, className: r, ref: i, ...a }) {
|
|
2327
|
-
return h(
|
|
2327
|
+
return h(Te, {
|
|
2328
2328
|
...a,
|
|
2329
2329
|
"aria-label": t,
|
|
2330
2330
|
className: Gi({ class: r }),
|
|
2331
|
-
ref:
|
|
2331
|
+
ref: F(i),
|
|
2332
2332
|
slot: "previous"
|
|
2333
2333
|
}, n === void 0 ? h(e, {
|
|
2334
2334
|
className: "rtl:rotate-180",
|
|
@@ -2336,11 +2336,11 @@ function Xi({ "aria-label": t, children: n, className: r, ref: i, ...a }) {
|
|
|
2336
2336
|
}) : n);
|
|
2337
2337
|
}
|
|
2338
2338
|
function Zi({ "aria-label": e, children: n, className: r, ref: i, ...a }) {
|
|
2339
|
-
return h(
|
|
2339
|
+
return h(Te, {
|
|
2340
2340
|
...a,
|
|
2341
2341
|
"aria-label": e,
|
|
2342
2342
|
className: Gi({ class: r }),
|
|
2343
|
-
ref:
|
|
2343
|
+
ref: F(i),
|
|
2344
2344
|
slot: "next"
|
|
2345
2345
|
}, n === void 0 ? h(t, {
|
|
2346
2346
|
className: "rtl:rotate-180",
|
|
@@ -2348,34 +2348,34 @@ function Zi({ "aria-label": e, children: n, className: r, ref: i, ...a }) {
|
|
|
2348
2348
|
}) : n);
|
|
2349
2349
|
}
|
|
2350
2350
|
function Qi(e) {
|
|
2351
|
-
return h(
|
|
2351
|
+
return h(je, null, e);
|
|
2352
2352
|
}
|
|
2353
2353
|
function $i(e) {
|
|
2354
|
-
return h(
|
|
2354
|
+
return h(De, {
|
|
2355
2355
|
className: Ji(),
|
|
2356
2356
|
date: e
|
|
2357
2357
|
});
|
|
2358
2358
|
}
|
|
2359
2359
|
function ea({ className: e, ref: t, ...n }) {
|
|
2360
|
-
return h(
|
|
2360
|
+
return h(Me, {
|
|
2361
2361
|
...n,
|
|
2362
2362
|
className: Ki({ class: e }),
|
|
2363
|
-
ref:
|
|
2363
|
+
ref: F(t)
|
|
2364
2364
|
});
|
|
2365
2365
|
}
|
|
2366
2366
|
function ta({ className: e, ref: t, weekdayStyle: n = "short", ...r }) {
|
|
2367
|
-
return h(
|
|
2367
|
+
return h(Oe, {
|
|
2368
2368
|
...r,
|
|
2369
2369
|
className: qi({ class: e }),
|
|
2370
|
-
ref:
|
|
2370
|
+
ref: F(t),
|
|
2371
2371
|
weekdayStyle: n
|
|
2372
|
-
}, h(
|
|
2372
|
+
}, h(Ae, null, Qi), h(ke, null, $i));
|
|
2373
2373
|
}
|
|
2374
2374
|
//#endregion
|
|
2375
2375
|
//#region src/primitives/Calendar/Calendar.tsx
|
|
2376
|
-
var na =
|
|
2376
|
+
var na = j({ base: "inline-flex w-full flex-col gap-3" });
|
|
2377
2377
|
function ra({ children: e, className: t, defaultValue: n, disabled: r = !1, invalid: i = !1, isDateUnavailable: a, maxValue: o, minValue: s, onChange: c, readOnly: l = !1, ref: u, value: d, visibleMonths: f = 1, ...p }) {
|
|
2378
|
-
return
|
|
2378
|
+
return I(), h(Ee, {
|
|
2379
2379
|
...p,
|
|
2380
2380
|
children: e,
|
|
2381
2381
|
className: na({ class: t }),
|
|
@@ -2387,7 +2387,7 @@ function ra({ children: e, className: t, defaultValue: n, disabled: r = !1, inva
|
|
|
2387
2387
|
maxValue: Q(o ?? null) ?? void 0,
|
|
2388
2388
|
minValue: Q(s ?? null) ?? void 0,
|
|
2389
2389
|
onChange: l ? void 0 : (e) => c?.(Li(e)),
|
|
2390
|
-
ref:
|
|
2390
|
+
ref: F(u),
|
|
2391
2391
|
value: d === void 0 ? void 0 : Q(d),
|
|
2392
2392
|
visibleDuration: { months: f }
|
|
2393
2393
|
});
|
|
@@ -2399,10 +2399,10 @@ var ia = {
|
|
|
2399
2399
|
NextButton: Zi,
|
|
2400
2400
|
PreviousButton: Xi,
|
|
2401
2401
|
Root: ra
|
|
2402
|
-
}, aa =
|
|
2402
|
+
}, aa = j({ base: "min-w-0 border border-b-2 border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] text-[var(--breeze-ink)]" }), oa = j({ base: "grid gap-1 border-b border-[var(--breeze-border)] px-5 py-4" }), sa = j({ base: "m-0 font-[family-name:var(--breeze-font-display)] text-xl font-bold leading-tight" }), ca = j({ base: "m-0 text-sm text-[var(--breeze-ink-muted)]" }), la = j({ base: "min-w-0 px-5 py-4" }), ua = j({ base: "flex min-h-11 flex-wrap items-center gap-3 border-t border-[var(--breeze-border)] px-5 py-3" });
|
|
2403
2403
|
function da({ className: e, ref: t, ...n }) {
|
|
2404
|
-
|
|
2405
|
-
let r =
|
|
2404
|
+
I();
|
|
2405
|
+
let r = F(t);
|
|
2406
2406
|
return h("article", {
|
|
2407
2407
|
...n,
|
|
2408
2408
|
className: aa({ class: e }),
|
|
@@ -2410,7 +2410,7 @@ function da({ className: e, ref: t, ...n }) {
|
|
|
2410
2410
|
});
|
|
2411
2411
|
}
|
|
2412
2412
|
function fa({ className: e, ref: t, ...n }) {
|
|
2413
|
-
let r =
|
|
2413
|
+
let r = F(t);
|
|
2414
2414
|
return h("header", {
|
|
2415
2415
|
...n,
|
|
2416
2416
|
className: oa({ class: e }),
|
|
@@ -2418,7 +2418,7 @@ function fa({ className: e, ref: t, ...n }) {
|
|
|
2418
2418
|
});
|
|
2419
2419
|
}
|
|
2420
2420
|
function pa({ className: e, ref: t, ...n }) {
|
|
2421
|
-
let r =
|
|
2421
|
+
let r = F(t);
|
|
2422
2422
|
return h("h3", {
|
|
2423
2423
|
...n,
|
|
2424
2424
|
className: sa({ class: e }),
|
|
@@ -2426,7 +2426,7 @@ function pa({ className: e, ref: t, ...n }) {
|
|
|
2426
2426
|
});
|
|
2427
2427
|
}
|
|
2428
2428
|
function ma({ className: e, ref: t, ...n }) {
|
|
2429
|
-
let r =
|
|
2429
|
+
let r = F(t);
|
|
2430
2430
|
return h("p", {
|
|
2431
2431
|
...n,
|
|
2432
2432
|
className: ca({ class: e }),
|
|
@@ -2434,7 +2434,7 @@ function ma({ className: e, ref: t, ...n }) {
|
|
|
2434
2434
|
});
|
|
2435
2435
|
}
|
|
2436
2436
|
function ha({ className: e, ref: t, ...n }) {
|
|
2437
|
-
let r =
|
|
2437
|
+
let r = F(t);
|
|
2438
2438
|
return h("div", {
|
|
2439
2439
|
...n,
|
|
2440
2440
|
className: la({ class: e }),
|
|
@@ -2442,7 +2442,7 @@ function ha({ className: e, ref: t, ...n }) {
|
|
|
2442
2442
|
});
|
|
2443
2443
|
}
|
|
2444
2444
|
function ga({ className: e, ref: t, ...n }) {
|
|
2445
|
-
let r =
|
|
2445
|
+
let r = F(t);
|
|
2446
2446
|
return h("footer", {
|
|
2447
2447
|
...n,
|
|
2448
2448
|
className: ua({ class: e }),
|
|
@@ -2456,7 +2456,7 @@ var _a = {
|
|
|
2456
2456
|
Header: fa,
|
|
2457
2457
|
Root: da,
|
|
2458
2458
|
Title: pa
|
|
2459
|
-
}, va =
|
|
2459
|
+
}, va = j({
|
|
2460
2460
|
base: "grid place-items-center",
|
|
2461
2461
|
defaultVariants: { minHeight: "none" },
|
|
2462
2462
|
variants: { minHeight: {
|
|
@@ -2465,7 +2465,7 @@ var _a = {
|
|
|
2465
2465
|
} }
|
|
2466
2466
|
});
|
|
2467
2467
|
function ya({ className: e, minHeight: t, ...n }) {
|
|
2468
|
-
return
|
|
2468
|
+
return I(), h("div", {
|
|
2469
2469
|
...n,
|
|
2470
2470
|
className: va({
|
|
2471
2471
|
class: e,
|
|
@@ -2475,7 +2475,7 @@ function ya({ className: e, minHeight: t, ...n }) {
|
|
|
2475
2475
|
}
|
|
2476
2476
|
//#endregion
|
|
2477
2477
|
//#region src/primitives/Checkbox/Checkbox.tsx
|
|
2478
|
-
var ba =
|
|
2478
|
+
var ba = j({ base: "flex min-w-0 flex-col gap-1" }), xa = j({ base: "group inline-flex min-h-11 w-fit cursor-pointer items-center gap-2 font-[family-name:var(--breeze-font-display)] text-sm font-bold text-[var(--breeze-ink)] data-[disabled]:cursor-not-allowed data-[disabled]:opacity-55" }), Sa = j({
|
|
2479
2479
|
base: "inline-flex shrink-0 items-center justify-center border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] text-white transition-colors duration-[var(--breeze-duration-fast)] group-data-[indeterminate]:border-[var(--breeze-primary)] group-data-[indeterminate]:bg-[var(--breeze-primary)] group-data-[selected]:border-[var(--breeze-primary)] group-data-[selected]:bg-[var(--breeze-primary)] [&>svg]:opacity-0 group-data-[indeterminate]:[&>svg]:opacity-100 group-data-[selected]:[&>svg]:opacity-100",
|
|
2480
2480
|
defaultVariants: { size: "md" },
|
|
2481
2481
|
variants: { size: {
|
|
@@ -2485,9 +2485,9 @@ var ba = A({ base: "flex min-w-0 flex-col gap-1" }), xa = A({ base: "group inlin
|
|
|
2485
2485
|
} }
|
|
2486
2486
|
});
|
|
2487
2487
|
function Ca({ children: e, className: t, defaultSelected: n, disabled: r = !1, form: i, indeterminate: a = !1, inputRef: o, invalid: s = !1, name: c, onChange: l, readOnly: u = !1, ref: d, required: f = !1, selected: p, value: m, ...g }) {
|
|
2488
|
-
|
|
2489
|
-
let _ =
|
|
2490
|
-
return h(
|
|
2488
|
+
I();
|
|
2489
|
+
let _ = F(d), v = C(null);
|
|
2490
|
+
return h(Le, {
|
|
2491
2491
|
...g,
|
|
2492
2492
|
className: ba({ class: t }),
|
|
2493
2493
|
defaultSelected: n,
|
|
@@ -2506,15 +2506,15 @@ function Ca({ children: e, className: t, defaultSelected: n, disabled: r = !1, f
|
|
|
2506
2506
|
}, e);
|
|
2507
2507
|
}
|
|
2508
2508
|
function wa({ className: e, ref: t, ...n }) {
|
|
2509
|
-
let r =
|
|
2510
|
-
return h(
|
|
2509
|
+
let r = F(t);
|
|
2510
|
+
return h(Ie, {
|
|
2511
2511
|
...n,
|
|
2512
2512
|
className: xa({ class: e }),
|
|
2513
2513
|
ref: r
|
|
2514
2514
|
});
|
|
2515
2515
|
}
|
|
2516
2516
|
function Ta({ className: e, ref: t, size: n, ...i }) {
|
|
2517
|
-
let a =
|
|
2517
|
+
let a = F(t);
|
|
2518
2518
|
return h("span", {
|
|
2519
2519
|
...i,
|
|
2520
2520
|
"aria-hidden": !0,
|
|
@@ -2523,10 +2523,10 @@ function Ta({ className: e, ref: t, size: n, ...i }) {
|
|
|
2523
2523
|
size: n
|
|
2524
2524
|
}),
|
|
2525
2525
|
ref: a
|
|
2526
|
-
}, /* @__PURE__ */
|
|
2526
|
+
}, /* @__PURE__ */ N(r, {}));
|
|
2527
2527
|
}
|
|
2528
2528
|
function Ea({ ref: e, ...t }) {
|
|
2529
|
-
let n =
|
|
2529
|
+
let n = F(e);
|
|
2530
2530
|
return h("span", {
|
|
2531
2531
|
...t,
|
|
2532
2532
|
ref: n
|
|
@@ -2539,7 +2539,7 @@ var Da = {
|
|
|
2539
2539
|
Indicator: Ta,
|
|
2540
2540
|
Label: Ea,
|
|
2541
2541
|
Root: Ca
|
|
2542
|
-
}, Oa =
|
|
2542
|
+
}, Oa = j({
|
|
2543
2543
|
base: "flex min-w-0 gap-2",
|
|
2544
2544
|
defaultVariants: { orientation: "vertical" },
|
|
2545
2545
|
variants: { orientation: {
|
|
@@ -2548,9 +2548,9 @@ var Da = {
|
|
|
2548
2548
|
} }
|
|
2549
2549
|
});
|
|
2550
2550
|
function ka({ children: e, className: t, defaultSelection: n, disabled: r = !1, invalid: i = !1, name: a, onSelectionChange: o, orientation: s, readOnly: c = !1, ref: l, required: u = !1, selection: d, ...f }) {
|
|
2551
|
-
|
|
2552
|
-
let p =
|
|
2553
|
-
return h(
|
|
2551
|
+
I();
|
|
2552
|
+
let p = F(l);
|
|
2553
|
+
return h(Re, {
|
|
2554
2554
|
...f,
|
|
2555
2555
|
className: Oa({
|
|
2556
2556
|
class: t,
|
|
@@ -2620,7 +2620,7 @@ function La(e, t) {
|
|
|
2620
2620
|
let n = e.copy();
|
|
2621
2621
|
return n.x = Math.max(0, n.x - t), n.y = Math.max(0, n.y - t), n.width += t * 2, n.height += t * 2, n;
|
|
2622
2622
|
}
|
|
2623
|
-
var Ra = class extends
|
|
2623
|
+
var Ra = class extends Je {
|
|
2624
2624
|
#e;
|
|
2625
2625
|
constructor(e, t) {
|
|
2626
2626
|
super(e), this.#e = t;
|
|
@@ -2628,7 +2628,7 @@ var Ra = class extends Ye {
|
|
|
2628
2628
|
getVisibleLayoutInfos(e) {
|
|
2629
2629
|
return super.getVisibleLayoutInfos(La(e, this.#e));
|
|
2630
2630
|
}
|
|
2631
|
-
}, za = class extends
|
|
2631
|
+
}, za = class extends Xe {
|
|
2632
2632
|
#e;
|
|
2633
2633
|
#t = /* @__PURE__ */ new Map();
|
|
2634
2634
|
constructor(e, t) {
|
|
@@ -2644,9 +2644,9 @@ var Ra = class extends Ye {
|
|
|
2644
2644
|
let r = this.layoutNodes.get(n.layoutInfo.parentKey)?.children ?? [];
|
|
2645
2645
|
if (r.length === 0) return super.updateItemSize(e, t);
|
|
2646
2646
|
let i = Math.ceil(r.reduce((e, n) => e + (this.#t.get(n.layoutInfo.key) ?? t.height), 36 + Ia * (r.length - 1)));
|
|
2647
|
-
return r.reduce((e, t) => super.updateItemSize(t.layoutInfo.key, new
|
|
2647
|
+
return r.reduce((e, t) => super.updateItemSize(t.layoutInfo.key, new Ye(t.layoutInfo.rect.width, i)) || e, !1);
|
|
2648
2648
|
}
|
|
2649
|
-
}, Ba = class extends
|
|
2649
|
+
}, Ba = class extends qe {
|
|
2650
2650
|
#e;
|
|
2651
2651
|
constructor(e) {
|
|
2652
2652
|
super(), this.#e = e;
|
|
@@ -2672,8 +2672,8 @@ function Ua({ children: e, configuration: t, direction: n = "ltr", kind: r, maxi
|
|
|
2672
2672
|
direction: n,
|
|
2673
2673
|
loaderHeight: l,
|
|
2674
2674
|
maxColumns: i,
|
|
2675
|
-
minItemSize: new
|
|
2676
|
-
minSpace: new
|
|
2675
|
+
minItemSize: new Ye(a, f ?? d ?? 48),
|
|
2676
|
+
minSpace: new Ye(c, c),
|
|
2677
2677
|
preserveAspectRatio: t.mode === "fixed"
|
|
2678
2678
|
} : void 0, [
|
|
2679
2679
|
t.mode,
|
|
@@ -2686,7 +2686,7 @@ function Ua({ children: e, configuration: t, direction: n = "ltr", kind: r, maxi
|
|
|
2686
2686
|
a,
|
|
2687
2687
|
f
|
|
2688
2688
|
]);
|
|
2689
|
-
return h(
|
|
2689
|
+
return h(Ze, {
|
|
2690
2690
|
children: e,
|
|
2691
2691
|
layout: S(() => r === "table" ? new za({
|
|
2692
2692
|
estimatedHeadingHeight: s,
|
|
@@ -2716,7 +2716,7 @@ function Ua({ children: e, configuration: t, direction: n = "ltr", kind: r, maxi
|
|
|
2716
2716
|
}
|
|
2717
2717
|
//#endregion
|
|
2718
2718
|
//#region src/primitives/ListBox/ListBox.tsx
|
|
2719
|
-
var Wa =
|
|
2719
|
+
var Wa = j({
|
|
2720
2720
|
base: "flex min-w-48 flex-col gap-1 border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] p-1 outline-none data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)] aria-invalid:border-[var(--breeze-danger)]",
|
|
2721
2721
|
defaultVariants: {
|
|
2722
2722
|
orientation: "vertical",
|
|
@@ -2732,20 +2732,20 @@ var Wa = A({
|
|
|
2732
2732
|
true: "max-h-none overflow-auto"
|
|
2733
2733
|
}
|
|
2734
2734
|
}
|
|
2735
|
-
}), Ga =
|
|
2735
|
+
}), Ga = j({ base: "flex min-h-10 cursor-default items-center px-3 py-2 text-sm text-[var(--breeze-ink)] outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-45 data-[focused]:bg-[var(--breeze-primary-soft)] data-[selected]:bg-[var(--breeze-primary)] data-[selected]:text-white" }), Ka = j({ base: "flex min-h-11 items-center justify-center px-3 py-2 text-sm text-[var(--breeze-ink-muted)]" });
|
|
2736
2736
|
function qa(e) {
|
|
2737
2737
|
return e === "all" ? "all" : [...e];
|
|
2738
2738
|
}
|
|
2739
2739
|
function Ja({ children: e, className: t, defaultSelection: n, disabledKeys: r, emptyContent: i, invalid: a = !1, items: o, multiple: s = !1, onSelectionChange: c, orientation: l = "vertical", readOnly: u = !1, ref: d, required: f = !1, selection: p, virtualization: m, ...g }) {
|
|
2740
|
-
|
|
2741
|
-
let v =
|
|
2740
|
+
I();
|
|
2741
|
+
let v = F(d), y = G(i), b = C(null), S = _((e) => {
|
|
2742
2742
|
b.current = e, v(e);
|
|
2743
2743
|
}, [v]);
|
|
2744
2744
|
x(() => {
|
|
2745
2745
|
let e = b.current;
|
|
2746
2746
|
e !== null && (a ? e.setAttribute("aria-invalid", "true") : e.removeAttribute("aria-invalid"), f ? e.setAttribute("aria-required", "true") : e.removeAttribute("aria-required"));
|
|
2747
2747
|
}, [a, f]);
|
|
2748
|
-
let w = h(
|
|
2748
|
+
let w = h(We, {
|
|
2749
2749
|
...g,
|
|
2750
2750
|
"aria-readonly": u || void 0,
|
|
2751
2751
|
children: e,
|
|
@@ -2773,8 +2773,8 @@ function Ja({ children: e, className: t, defaultSelection: n, disabledKeys: r, e
|
|
|
2773
2773
|
}, w);
|
|
2774
2774
|
}
|
|
2775
2775
|
function Ya({ className: e, disabled: t = !1, id: n, onAction: r, ref: i, textValue: a, ...o }) {
|
|
2776
|
-
let s =
|
|
2777
|
-
return h(
|
|
2776
|
+
let s = F(i);
|
|
2777
|
+
return h(Ge, {
|
|
2778
2778
|
...o,
|
|
2779
2779
|
className: Ga({ class: e }),
|
|
2780
2780
|
id: n,
|
|
@@ -2785,11 +2785,11 @@ function Ya({ className: e, disabled: t = !1, id: n, onAction: r, ref: i, textVa
|
|
|
2785
2785
|
});
|
|
2786
2786
|
}
|
|
2787
2787
|
function Xa({ className: e, loading: t = !1, offset: n = 1, onLoadMore: r, ref: i, ...a }) {
|
|
2788
|
-
let o =
|
|
2788
|
+
let o = F(i), s = Pa({
|
|
2789
2789
|
loading: t,
|
|
2790
2790
|
onLoadMore: r
|
|
2791
2791
|
});
|
|
2792
|
-
return h(
|
|
2792
|
+
return h(Ke, {
|
|
2793
2793
|
...a,
|
|
2794
2794
|
className: Ka({ class: e }),
|
|
2795
2795
|
isLoading: t,
|
|
@@ -2802,7 +2802,7 @@ var Za = {
|
|
|
2802
2802
|
Item: Ya,
|
|
2803
2803
|
LoadMore: Xa,
|
|
2804
2804
|
Root: Ja
|
|
2805
|
-
}, Qa =
|
|
2805
|
+
}, Qa = j({ base: "flex min-w-0 flex-col gap-1.5" }), $a = j({ base: "w-full border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] text-[var(--breeze-ink)] outline-none transition-colors duration-[var(--breeze-duration-fast)] placeholder:text-[var(--breeze-ink-muted)] data-[hovered]:border-[var(--breeze-primary)] data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-[-2px] data-[focus-visible]:outline-[var(--breeze-focus)] disabled:cursor-not-allowed disabled:bg-[var(--breeze-surface-subtle)] disabled:opacity-70 read-only:cursor-default read-only:bg-[var(--breeze-surface-subtle)] aria-invalid:border-[var(--breeze-danger)]" }), eo = j({
|
|
2806
2806
|
base: "relative inline-flex w-full min-w-0 items-stretch bg-[var(--breeze-surface)] outline-none after:pointer-events-none after:absolute after:inset-0 after:z-10 after:border after:border-[var(--breeze-border-strong)] after:transition-colors after:duration-[var(--breeze-duration-fast)] after:content-[''] data-[disabled]:cursor-not-allowed data-[disabled]:bg-[var(--breeze-surface-subtle)] data-[disabled]:opacity-70 data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-[-2px] data-[focus-visible]:outline-solid data-[focus-visible]:outline-[var(--breeze-focus)] data-[focus-within]:after:border-[var(--breeze-primary)] data-[hovered]:after:border-[var(--breeze-primary)] data-[invalid]:after:!border-[var(--breeze-danger)] data-[readonly]:bg-[var(--breeze-surface-subtle)] data-[readonly]:opacity-70",
|
|
2807
2807
|
defaultVariants: { size: "md" },
|
|
2808
2808
|
variants: { size: {
|
|
@@ -2810,7 +2810,7 @@ var Za = {
|
|
|
2810
2810
|
md: "min-h-11",
|
|
2811
2811
|
sm: "min-h-8"
|
|
2812
2812
|
} }
|
|
2813
|
-
}), to =
|
|
2813
|
+
}), to = j({ base: "min-w-0 w-auto flex-1 border-0 bg-transparent disabled:!bg-transparent disabled:!opacity-100 read-only:!bg-transparent read-only:!opacity-100 data-[focus-visible]:!outline-none aria-invalid:!border-0" }), no = j({
|
|
2814
2814
|
base: "inline-flex shrink-0 items-center justify-center border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] text-[var(--breeze-ink-soft)] outline-none transition-colors duration-[var(--breeze-duration-fast)] data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-[-2px] data-[focus-visible]:outline-[var(--breeze-focus)] data-[hovered]:border-[var(--breeze-primary)] data-[hovered]:text-[var(--breeze-primary)] disabled:cursor-not-allowed disabled:bg-[var(--breeze-surface-subtle)] disabled:opacity-70",
|
|
2815
2815
|
defaultVariants: { size: "md" },
|
|
2816
2816
|
variants: { size: {
|
|
@@ -2818,7 +2818,7 @@ var Za = {
|
|
|
2818
2818
|
md: "min-h-11 min-w-11 px-3",
|
|
2819
2819
|
sm: "min-h-8 min-w-8 px-2"
|
|
2820
2820
|
} }
|
|
2821
|
-
}), ro =
|
|
2821
|
+
}), ro = j({ base: "border-0 bg-transparent data-[focus-visible]:!outline-none data-[hovered]:border-0 data-[hovered]:bg-transparent disabled:!bg-transparent disabled:!opacity-100" }), io = j({ base: "min-w-[var(--trigger-width)] border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] shadow-lg" }), ao = j({ base: "max-h-72 overflow-y-auto p-1 outline-none" }), oo = j({ base: "px-3 py-2 text-sm text-[var(--breeze-ink-muted)]" }), so = j({ base: "px-3 py-2 text-sm text-[var(--breeze-danger)]" }), co = m(null), lo = m(void 0), uo = m(void 0), fo = () => !0;
|
|
2822
2822
|
function po(e, { isDisabled: t, isInvalid: n, isReadOnly: r }) {
|
|
2823
2823
|
return h(uo.Provider, { value: {
|
|
2824
2824
|
isDisabled: t,
|
|
@@ -2827,9 +2827,9 @@ function po(e, { isDisabled: t, isInvalid: n, isReadOnly: r }) {
|
|
|
2827
2827
|
} }, e);
|
|
2828
2828
|
}
|
|
2829
2829
|
function mo({ allowsCustomValue: e = !1, children: t, className: n, defaultInputValue: r, defaultSelection: i, disabled: a = !1, form: o, inputValue: s, invalid: c = !1, name: l, onCommit: u, onInputChange: d, onSelectionChange: f, placeholder: p, readOnly: m = !1, ref: g, required: _ = !1, selection: v, ...y }) {
|
|
2830
|
-
|
|
2831
|
-
let b =
|
|
2832
|
-
return h(co.Provider, { value: { onCommit: x } }, h(
|
|
2830
|
+
I();
|
|
2831
|
+
let b = F(g), x = e && !a && !m ? u : void 0;
|
|
2832
|
+
return h(co.Provider, { value: { onCommit: x } }, h(Be, {
|
|
2833
2833
|
...y,
|
|
2834
2834
|
allowsCustomValue: e,
|
|
2835
2835
|
allowsEmptyCollection: !0,
|
|
@@ -2853,8 +2853,8 @@ function mo({ allowsCustomValue: e = !1, children: t, className: n, defaultInput
|
|
|
2853
2853
|
}));
|
|
2854
2854
|
}
|
|
2855
2855
|
function ho({ className: e, ref: t, role: n = "presentation", size: r = "md", ...i }) {
|
|
2856
|
-
let a =
|
|
2857
|
-
return h(lo.Provider, { value: { size: r } }, h(
|
|
2856
|
+
let a = F(t), o = v(uo);
|
|
2857
|
+
return h(lo.Provider, { value: { size: r } }, h(de, {
|
|
2858
2858
|
...i,
|
|
2859
2859
|
className: eo({
|
|
2860
2860
|
class: e,
|
|
@@ -2870,12 +2870,12 @@ function ho({ className: e, ref: t, role: n = "presentation", size: r = "md", ..
|
|
|
2870
2870
|
}));
|
|
2871
2871
|
}
|
|
2872
2872
|
function go({ className: e, onKeyDownCapture: t, ref: n, size: r, ...i }) {
|
|
2873
|
-
let a = v(co), o = v(lo), s =
|
|
2873
|
+
let a = v(co), o = v(lo), s = F(n), c = (e) => {
|
|
2874
2874
|
t?.(e);
|
|
2875
2875
|
let n = e.currentTarget.getAttribute("aria-activedescendant");
|
|
2876
2876
|
!e.defaultPrevented && e.key === "Enter" && n === null && a?.onCommit?.(e.currentTarget.value);
|
|
2877
2877
|
};
|
|
2878
|
-
return h(
|
|
2878
|
+
return h(Ve, {
|
|
2879
2879
|
...i,
|
|
2880
2880
|
className: Y({
|
|
2881
2881
|
class: $a({ class: o ? to({ class: e }) : e }),
|
|
@@ -2886,30 +2886,30 @@ function go({ className: e, onKeyDownCapture: t, ref: n, size: r, ...i }) {
|
|
|
2886
2886
|
});
|
|
2887
2887
|
}
|
|
2888
2888
|
function _o({ children: e, className: t, ref: n, size: r, ...a }) {
|
|
2889
|
-
let o = v(lo), s =
|
|
2890
|
-
return h(
|
|
2889
|
+
let o = v(lo), s = F(n);
|
|
2890
|
+
return h(ze, {
|
|
2891
2891
|
...a,
|
|
2892
2892
|
className: no({
|
|
2893
2893
|
class: o ? ro({ class: t }) : t,
|
|
2894
2894
|
size: o?.size ?? r
|
|
2895
2895
|
}),
|
|
2896
2896
|
ref: s
|
|
2897
|
-
}, e ?? /* @__PURE__ */
|
|
2897
|
+
}, e ?? /* @__PURE__ */ N(i, {
|
|
2898
2898
|
className: "size-4",
|
|
2899
2899
|
"data-breeze-combobox-indicator": ""
|
|
2900
2900
|
}));
|
|
2901
2901
|
}
|
|
2902
2902
|
function vo({ className: e, ref: t, ...n }) {
|
|
2903
|
-
let r =
|
|
2904
|
-
return h(
|
|
2903
|
+
let r = F(t);
|
|
2904
|
+
return h(Ue, {
|
|
2905
2905
|
...n,
|
|
2906
2906
|
className: io({ class: e }),
|
|
2907
2907
|
ref: r
|
|
2908
2908
|
});
|
|
2909
2909
|
}
|
|
2910
2910
|
function yo({ children: e, className: t, emptyContent: n, items: r, ref: i, ...a }) {
|
|
2911
|
-
let o =
|
|
2912
|
-
return h(
|
|
2911
|
+
let o = F(i), s = G(n);
|
|
2912
|
+
return h(He, {
|
|
2913
2913
|
...a,
|
|
2914
2914
|
children: e,
|
|
2915
2915
|
className: ao({ class: t }),
|
|
@@ -2922,7 +2922,7 @@ function yo({ children: e, className: t, emptyContent: n, items: r, ref: i, ...a
|
|
|
2922
2922
|
});
|
|
2923
2923
|
}
|
|
2924
2924
|
function bo({ className: e, ref: t, ...n }) {
|
|
2925
|
-
let r =
|
|
2925
|
+
let r = F(t);
|
|
2926
2926
|
return h("div", {
|
|
2927
2927
|
...n,
|
|
2928
2928
|
"aria-live": "polite",
|
|
@@ -2932,7 +2932,7 @@ function bo({ className: e, ref: t, ...n }) {
|
|
|
2932
2932
|
});
|
|
2933
2933
|
}
|
|
2934
2934
|
function xo({ className: e, ref: t, ...n }) {
|
|
2935
|
-
let r =
|
|
2935
|
+
let r = F(t);
|
|
2936
2936
|
return h("div", {
|
|
2937
2937
|
...n,
|
|
2938
2938
|
"aria-live": "assertive",
|
|
@@ -3052,34 +3052,34 @@ var So = {
|
|
|
3052
3052
|
xs: "sm:gap-1",
|
|
3053
3053
|
xxl: "sm:gap-8"
|
|
3054
3054
|
}
|
|
3055
|
-
}, To =
|
|
3055
|
+
}, To = j({ base: "mx-auto w-full max-w-screen-2xl" }), Eo = {
|
|
3056
3056
|
base: "md",
|
|
3057
3057
|
lg: "page",
|
|
3058
3058
|
md: "xxl",
|
|
3059
3059
|
sm: "xl"
|
|
3060
3060
|
};
|
|
3061
3061
|
function Do({ className: e, padding: t = Eo, ...n }) {
|
|
3062
|
-
return
|
|
3062
|
+
return I(), h("div", {
|
|
3063
3063
|
...n,
|
|
3064
3064
|
className: To({ class: [H(t, Co), e] })
|
|
3065
3065
|
});
|
|
3066
3066
|
}
|
|
3067
3067
|
//#endregion
|
|
3068
3068
|
//#region src/primitives/date/DateInput.tsx
|
|
3069
|
-
var Oo =
|
|
3069
|
+
var Oo = j({ base: "flex min-h-10 items-center gap-0.5 border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] px-3 text-sm data-[focus-within]:outline-2 data-[focus-within]:outline-[var(--breeze-focus)] data-[invalid]:border-[var(--breeze-danger)]" }), ko = j({ base: "rounded-sm px-0.5 outline-none data-[focused]:bg-[var(--breeze-primary)] data-[focused]:text-white data-[placeholder]:text-[var(--breeze-ink-muted)]" }), Ao = j({ base: "cursor-default select-none px-0.5 text-[var(--breeze-ink)]" });
|
|
3070
3070
|
function jo(e) {
|
|
3071
3071
|
return e.type === "timeZoneName" ? h("span", {
|
|
3072
3072
|
className: Ao(),
|
|
3073
3073
|
"data-breeze-time-zone": "",
|
|
3074
3074
|
"data-type": e.type
|
|
3075
|
-
}, e.text) : h(
|
|
3075
|
+
}, e.text) : h(et, {
|
|
3076
3076
|
className: ko(),
|
|
3077
3077
|
segment: e
|
|
3078
3078
|
});
|
|
3079
3079
|
}
|
|
3080
3080
|
function $({ className: e, ref: t, ...n }) {
|
|
3081
|
-
let r =
|
|
3082
|
-
return h(
|
|
3081
|
+
let r = F(t);
|
|
3082
|
+
return h($e, {
|
|
3083
3083
|
...n,
|
|
3084
3084
|
className: Oo({ class: e }),
|
|
3085
3085
|
ref: r
|
|
@@ -3087,11 +3087,11 @@ function $({ className: e, ref: t, ...n }) {
|
|
|
3087
3087
|
}
|
|
3088
3088
|
//#endregion
|
|
3089
3089
|
//#region src/primitives/DateField/DateField.tsx
|
|
3090
|
-
var Mo =
|
|
3090
|
+
var Mo = j({ base: "flex min-w-0 flex-col gap-1.5" });
|
|
3091
3091
|
function No({ children: e, className: t, defaultValue: n, disabled: r = !1, form: i, inputRef: a, invalid: o = !1, isDateUnavailable: s, maxValue: c, minValue: l, name: u, onChange: d, readOnly: f = !1, ref: p, required: m = !1, value: g, ..._ }) {
|
|
3092
|
-
|
|
3093
|
-
let v =
|
|
3094
|
-
return h(
|
|
3092
|
+
I();
|
|
3093
|
+
let v = F(p), y = F(a);
|
|
3094
|
+
return h(Qe, {
|
|
3095
3095
|
..._,
|
|
3096
3096
|
children: e,
|
|
3097
3097
|
className: Mo({ class: t }),
|
|
@@ -3118,26 +3118,26 @@ var Po = {
|
|
|
3118
3118
|
Input: $,
|
|
3119
3119
|
Label: X.Label,
|
|
3120
3120
|
Root: No
|
|
3121
|
-
}, Fo =
|
|
3121
|
+
}, Fo = j({ base: "flex items-stretch" }), Io = j({ base: "inline-flex min-h-11 items-center border border-l-0 border-[var(--breeze-border-strong)] px-3" }), Lo = j({ base: "z-50 w-88 max-w-[calc(100vw-2rem)] border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] p-3 [box-shadow:0_8px_0_rgb(6_12_24_/_18%)]" }), Ro = j({ base: "inline-flex w-full flex-col gap-2.5" });
|
|
3122
3122
|
function zo({ children: e, className: t, ref: n, ...r }) {
|
|
3123
|
-
return h(
|
|
3123
|
+
return h(at, {
|
|
3124
3124
|
...r,
|
|
3125
3125
|
className: Fo({ class: t }),
|
|
3126
|
-
ref:
|
|
3126
|
+
ref: F(n)
|
|
3127
3127
|
}, e);
|
|
3128
3128
|
}
|
|
3129
3129
|
function Bo({ children: e, className: t, ref: r, ...i }) {
|
|
3130
|
-
return h(
|
|
3130
|
+
return h(tt, {
|
|
3131
3131
|
...i,
|
|
3132
3132
|
className: Io({ class: t }),
|
|
3133
|
-
ref:
|
|
3133
|
+
ref: F(r)
|
|
3134
3134
|
}, e === void 0 ? h(n) : e);
|
|
3135
3135
|
}
|
|
3136
3136
|
function Vo({ children: e, className: t, dir: n, placement: r, ref: i, ...a }) {
|
|
3137
|
-
let { direction: o } =
|
|
3137
|
+
let { direction: o } = I(), s = F(i), c = n ?? o, l = _((e) => {
|
|
3138
3138
|
e?.setAttribute("dir", c), s(e);
|
|
3139
3139
|
}, [s, c]);
|
|
3140
|
-
return h(
|
|
3140
|
+
return h(ot, {
|
|
3141
3141
|
...a,
|
|
3142
3142
|
className: Lo({ class: t }),
|
|
3143
3143
|
placement: r,
|
|
@@ -3149,22 +3149,22 @@ var Ho = () => [h(Yi, {
|
|
|
3149
3149
|
key: "header"
|
|
3150
3150
|
}, h(Xi, { key: "previous" }), h(ea, { key: "heading" }), h(Zi, { key: "next" })), h(ta, { key: "grid" })];
|
|
3151
3151
|
function Uo({ className: e, ref: t, ...n }) {
|
|
3152
|
-
return h(
|
|
3152
|
+
return h(nt, {
|
|
3153
3153
|
...n,
|
|
3154
3154
|
className: Ro({ class: e }),
|
|
3155
|
-
ref:
|
|
3155
|
+
ref: F(t)
|
|
3156
3156
|
}, Ho());
|
|
3157
3157
|
}
|
|
3158
3158
|
function Wo({ className: e, ref: t, ...n }) {
|
|
3159
|
-
return h(
|
|
3159
|
+
return h(ct, {
|
|
3160
3160
|
...n,
|
|
3161
3161
|
className: Ro({ class: e }),
|
|
3162
|
-
ref:
|
|
3162
|
+
ref: F(t)
|
|
3163
3163
|
}, Ho());
|
|
3164
3164
|
}
|
|
3165
3165
|
//#endregion
|
|
3166
3166
|
//#region src/primitives/DatePicker/DatePicker.tsx
|
|
3167
|
-
var Go =
|
|
3167
|
+
var Go = j({ base: "flex w-full min-w-0 flex-col gap-1.5" }), Ko = j({ base: "w-full" }), qo = j({ base: "hidden" }), Jo = j({ base: "w-full justify-between border-l bg-[var(--breeze-surface)] text-start text-[var(--breeze-ink)] outline-none transition-colors duration-[var(--breeze-duration-fast)] data-[disabled]:cursor-not-allowed data-[disabled]:bg-[var(--breeze-surface-subtle)] data-[disabled]:opacity-70 data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-[-2px] data-[focus-visible]:outline-[var(--breeze-focus)] data-[hovered]:!border-[var(--breeze-primary)]" });
|
|
3168
3168
|
function Yo({ className: e, ...t }) {
|
|
3169
3169
|
return h(zo, {
|
|
3170
3170
|
...t,
|
|
@@ -3181,7 +3181,7 @@ function Xo({ className: e, ...t }) {
|
|
|
3181
3181
|
});
|
|
3182
3182
|
}
|
|
3183
3183
|
function Zo({ children: e, className: t, ...r }) {
|
|
3184
|
-
let i = v(
|
|
3184
|
+
let i = v(it), { locale: a, messages: o, timeZone: s } = I(), c = s ?? "UTC", l = i?.value ?? null, u = [h("span", { key: "value" }, (l === null ? null : new Intl.DateTimeFormat(a, {
|
|
3185
3185
|
day: "numeric",
|
|
3186
3186
|
month: "long",
|
|
3187
3187
|
timeZone: c,
|
|
@@ -3203,7 +3203,7 @@ function Qo({ placement: e = "bottom end", ...t }) {
|
|
|
3203
3203
|
});
|
|
3204
3204
|
}
|
|
3205
3205
|
function $o({ children: e, className: t, defaultValue: n, disabled: r = !1, form: i, invalid: a = !1, isDateUnavailable: o, maxValue: s, minValue: c, name: l, onChange: u, readOnly: d = !1, ref: f, required: p = !1, value: m, ...g }) {
|
|
3206
|
-
return
|
|
3206
|
+
return I(), h(rt, {
|
|
3207
3207
|
...g,
|
|
3208
3208
|
children: e,
|
|
3209
3209
|
className: Go({ class: t }),
|
|
@@ -3219,7 +3219,7 @@ function $o({ children: e, className: t, defaultValue: n, disabled: r = !1, form
|
|
|
3219
3219
|
minValue: Q(c ?? null) ?? void 0,
|
|
3220
3220
|
name: l,
|
|
3221
3221
|
onChange: d ? void 0 : (e) => u?.(Li(e)),
|
|
3222
|
-
ref:
|
|
3222
|
+
ref: F(f),
|
|
3223
3223
|
value: m === void 0 ? void 0 : Q(m)
|
|
3224
3224
|
});
|
|
3225
3225
|
}
|
|
@@ -3233,7 +3233,7 @@ var es = {
|
|
|
3233
3233
|
Popover: Qo,
|
|
3234
3234
|
Root: $o,
|
|
3235
3235
|
Trigger: Zo
|
|
3236
|
-
}, ts =
|
|
3236
|
+
}, ts = j({ base: "group/picker-field flex w-full min-w-0 flex-col gap-1.5" }), ns = j({ base: "flex min-h-11 w-full min-w-0 items-stretch border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] text-[var(--breeze-ink)] outline-none transition-colors duration-[var(--breeze-duration-fast)] data-[disabled]:cursor-not-allowed data-[disabled]:bg-[var(--breeze-surface-subtle)] data-[disabled]:opacity-70 data-[focus-within]:outline-2 data-[focus-within]:outline-offset-[-2px] data-[focus-within]:outline-[var(--breeze-focus)] data-[hovered]:border-[var(--breeze-primary)] data-[invalid]:!border-[var(--breeze-danger)] group-data-[readonly]/picker-field:bg-[var(--breeze-surface-subtle)] group-data-[readonly]/picker-field:opacity-70" }), rs = j({ base: "min-h-11 min-w-0 flex-1 border-0 bg-transparent px-2 font-[family-name:var(--breeze-font-body)] text-base font-normal leading-[1.4] data-[focus-within]:outline-none data-[invalid]:border-0 [&_[data-type]]:px-0 sm:px-3" }), is = j({ base: "min-h-11 shrink-0 border-0 bg-transparent px-2 text-[var(--breeze-primary)] outline-none data-[disabled]:cursor-not-allowed data-[focus-visible]:outline-none sm:px-3" });
|
|
3237
3237
|
function as({ className: e, ...t }) {
|
|
3238
3238
|
return h(zo, {
|
|
3239
3239
|
...t,
|
|
@@ -3254,7 +3254,7 @@ function ss({ children: e, className: t, ...r }) {
|
|
|
3254
3254
|
}
|
|
3255
3255
|
//#endregion
|
|
3256
3256
|
//#region src/primitives/DateRangePicker/DateRangePicker.tsx
|
|
3257
|
-
var cs =
|
|
3257
|
+
var cs = j({ base: "inline-flex min-h-11 shrink-0 items-center justify-center px-0.5 text-[var(--breeze-ink-muted)] sm:px-1" });
|
|
3258
3258
|
function ls({ ...e }) {
|
|
3259
3259
|
return h(as, e);
|
|
3260
3260
|
}
|
|
@@ -3277,7 +3277,7 @@ function fs({ className: e, ref: n, ...r }) {
|
|
|
3277
3277
|
...r,
|
|
3278
3278
|
"aria-hidden": !0,
|
|
3279
3279
|
className: cs({ class: e }),
|
|
3280
|
-
ref:
|
|
3280
|
+
ref: F(n)
|
|
3281
3281
|
}, h(t, {
|
|
3282
3282
|
className: "rtl:rotate-180",
|
|
3283
3283
|
size: "1rem"
|
|
@@ -3287,10 +3287,10 @@ function ps({ ...e }) {
|
|
|
3287
3287
|
return h(ss, e);
|
|
3288
3288
|
}
|
|
3289
3289
|
function ms({ allowsNonContiguousRanges: e = !1, children: t, className: n, defaultValue: r, disabled: i = !1, endName: a, form: o, invalid: s = !1, isDateUnavailable: c, maxValue: l, minValue: u, onChange: d, readOnly: p = !1, ref: m, required: g = !1, startName: v, value: b, ...x }) {
|
|
3290
|
-
|
|
3291
|
-
let S = b !== void 0, T = r?.end ?? null, E = r?.start ?? null, [D, O] = w(r ?? null), k = S ? b : D, ee = C(null),
|
|
3292
|
-
ee.current = e,
|
|
3293
|
-
}, [
|
|
3290
|
+
I();
|
|
3291
|
+
let S = b !== void 0, T = r?.end ?? null, E = r?.start ?? null, [D, O] = w(r ?? null), k = S ? b : D, ee = C(null), A = F(m), j = _((e) => {
|
|
3292
|
+
ee.current = e, A(e);
|
|
3293
|
+
}, [A]);
|
|
3294
3294
|
y(() => {
|
|
3295
3295
|
if (S) return;
|
|
3296
3296
|
let e = ee.current, t = o ? e?.ownerDocument.getElementById(o) : e?.closest("form"), n = e?.ownerDocument.defaultView?.HTMLFormElement;
|
|
@@ -3306,10 +3306,10 @@ function ms({ allowsNonContiguousRanges: e = !1, children: t, className: n, defa
|
|
|
3306
3306
|
E,
|
|
3307
3307
|
o
|
|
3308
3308
|
]);
|
|
3309
|
-
let
|
|
3309
|
+
let M = (e) => {
|
|
3310
3310
|
let t = Vi(e);
|
|
3311
3311
|
S || O(t), d?.(t);
|
|
3312
|
-
},
|
|
3312
|
+
}, N = v === void 0 ? null : [h("input", {
|
|
3313
3313
|
"aria-hidden": !0,
|
|
3314
3314
|
"data-breeze-range-input": "start",
|
|
3315
3315
|
disabled: i,
|
|
@@ -3330,10 +3330,10 @@ function ms({ allowsNonContiguousRanges: e = !1, children: t, className: n, defa
|
|
|
3330
3330
|
type: "hidden",
|
|
3331
3331
|
value: k?.end ?? ""
|
|
3332
3332
|
})];
|
|
3333
|
-
return h(
|
|
3333
|
+
return h(st, {
|
|
3334
3334
|
...x,
|
|
3335
3335
|
allowsNonContiguousRanges: e,
|
|
3336
|
-
children: h(f, null, t,
|
|
3336
|
+
children: h(f, null, t, N),
|
|
3337
3337
|
className: ts({ class: n }),
|
|
3338
3338
|
form: o,
|
|
3339
3339
|
isDateUnavailable: c ? (e, t) => c(e.toString(), t?.toString() ?? null) : void 0,
|
|
@@ -3343,8 +3343,8 @@ function ms({ allowsNonContiguousRanges: e = !1, children: t, className: n, defa
|
|
|
3343
3343
|
isRequired: g,
|
|
3344
3344
|
maxValue: Q(l ?? null) ?? void 0,
|
|
3345
3345
|
minValue: Q(u ?? null) ?? void 0,
|
|
3346
|
-
onChange: p ? void 0 :
|
|
3347
|
-
ref:
|
|
3346
|
+
onChange: p ? void 0 : M,
|
|
3347
|
+
ref: j,
|
|
3348
3348
|
value: Bi(k)
|
|
3349
3349
|
});
|
|
3350
3350
|
}
|
|
@@ -3360,14 +3360,14 @@ var hs = {
|
|
|
3360
3360
|
Separator: fs,
|
|
3361
3361
|
StartInput: us,
|
|
3362
3362
|
Trigger: ps
|
|
3363
|
-
}, gs =
|
|
3363
|
+
}, gs = j({ base: "flex w-full flex-col gap-3" }), _s = j({ base: "flex min-w-0 flex-col gap-1.5 border-t border-[var(--breeze-border)] pt-3" }), vs = j({ base: "min-h-11 w-full text-base font-normal leading-[1.4]" }), ys = m(null);
|
|
3364
3364
|
function bs() {
|
|
3365
3365
|
let e = v(ys);
|
|
3366
3366
|
if (e === null) throw Error("DateTimePicker parts must be rendered within DateTimePicker.Root.");
|
|
3367
3367
|
return e;
|
|
3368
3368
|
}
|
|
3369
3369
|
function xs({ className: e, ref: t, ...n }) {
|
|
3370
|
-
let r = v(
|
|
3370
|
+
let r = v(it), { disabled: i, readOnly: a } = bs(), { messages: o } = I(), s = F(t);
|
|
3371
3371
|
if (r === null) throw Error("DateTimePicker.Calendar must be rendered within DateTimePicker.Root.");
|
|
3372
3372
|
let c = (e) => {
|
|
3373
3373
|
e !== null && r.setTimeValue(e);
|
|
@@ -3377,7 +3377,7 @@ function xs({ className: e, ref: t, ...n }) {
|
|
|
3377
3377
|
className: gs({ class: e }),
|
|
3378
3378
|
"data-breeze-date-time-calendar": "",
|
|
3379
3379
|
ref: s
|
|
3380
|
-
}, h(Uo), h(
|
|
3380
|
+
}, h(Uo), h(lt, {
|
|
3381
3381
|
className: _s(),
|
|
3382
3382
|
granularity: "minute",
|
|
3383
3383
|
isDisabled: i,
|
|
@@ -3388,7 +3388,7 @@ function xs({ className: e, ref: t, ...n }) {
|
|
|
3388
3388
|
}, h(X.Label, null, o.selectTime), h($, { className: vs() })));
|
|
3389
3389
|
}
|
|
3390
3390
|
function Ss({ "aria-label": e, placement: t = "bottom end", ...n }) {
|
|
3391
|
-
let { messages: r } =
|
|
3391
|
+
let { messages: r } = I();
|
|
3392
3392
|
return h(Vo, {
|
|
3393
3393
|
...n,
|
|
3394
3394
|
"aria-label": e ?? r.selectDateTime,
|
|
@@ -3396,11 +3396,11 @@ function Ss({ "aria-label": e, placement: t = "bottom end", ...n }) {
|
|
|
3396
3396
|
});
|
|
3397
3397
|
}
|
|
3398
3398
|
function Cs({ children: e, className: t, defaultValue: n, disabled: r = !1, form: i, invalid: a = !1, maxValue: o, minValue: s, name: c, onChange: l, readOnly: u = !1, ref: d, required: f = !1, value: p, ...m }) {
|
|
3399
|
-
let { timeZone: g = "UTC" } =
|
|
3399
|
+
let { timeZone: g = "UTC" } = I(), _ = {
|
|
3400
3400
|
disabled: r,
|
|
3401
3401
|
readOnly: u
|
|
3402
3402
|
};
|
|
3403
|
-
return h(
|
|
3403
|
+
return h(rt, {
|
|
3404
3404
|
...m,
|
|
3405
3405
|
children: h(ys, { value: _ }, e),
|
|
3406
3406
|
className: ts({ class: t }),
|
|
@@ -3415,7 +3415,7 @@ function Cs({ children: e, className: t, defaultValue: n, disabled: r = !1, form
|
|
|
3415
3415
|
minValue: Hi(s ?? null, g) ?? void 0,
|
|
3416
3416
|
name: c,
|
|
3417
3417
|
onChange: u ? void 0 : (e) => l?.(Ui(e)),
|
|
3418
|
-
ref:
|
|
3418
|
+
ref: F(d),
|
|
3419
3419
|
value: p === void 0 ? void 0 : Hi(p, g)
|
|
3420
3420
|
});
|
|
3421
3421
|
}
|
|
@@ -3429,10 +3429,10 @@ var ws = {
|
|
|
3429
3429
|
Popover: Ss,
|
|
3430
3430
|
Root: Cs,
|
|
3431
3431
|
Trigger: ss
|
|
3432
|
-
}, Ts =
|
|
3432
|
+
}, Ts = j({ base: "m-0 grid gap-0 border-y border-[var(--breeze-border)]" }), Es = j({ base: "grid min-w-0 gap-1 border-b border-[var(--breeze-border)] py-3 last:border-b-0 sm:grid-cols-[minmax(8rem,1fr)_minmax(0,2fr)] sm:gap-6" }), Ds = j({ base: "m-0 font-[family-name:var(--breeze-font-display)] font-bold text-[var(--breeze-ink)]" }), Os = j({ base: "m-0 min-w-0 text-[var(--breeze-ink)]" });
|
|
3433
3433
|
function ks({ className: e, ref: t, ...n }) {
|
|
3434
|
-
|
|
3435
|
-
let r =
|
|
3434
|
+
I();
|
|
3435
|
+
let r = F(t);
|
|
3436
3436
|
return h("dl", {
|
|
3437
3437
|
...n,
|
|
3438
3438
|
className: Ts({ class: e }),
|
|
@@ -3440,7 +3440,7 @@ function ks({ className: e, ref: t, ...n }) {
|
|
|
3440
3440
|
});
|
|
3441
3441
|
}
|
|
3442
3442
|
function As({ className: e, ref: t, ...n }) {
|
|
3443
|
-
let r =
|
|
3443
|
+
let r = F(t);
|
|
3444
3444
|
return h("div", {
|
|
3445
3445
|
...n,
|
|
3446
3446
|
className: Es({ class: e }),
|
|
@@ -3448,7 +3448,7 @@ function As({ className: e, ref: t, ...n }) {
|
|
|
3448
3448
|
});
|
|
3449
3449
|
}
|
|
3450
3450
|
function js({ className: e, ref: t, ...n }) {
|
|
3451
|
-
let r =
|
|
3451
|
+
let r = F(t);
|
|
3452
3452
|
return h("dt", {
|
|
3453
3453
|
...n,
|
|
3454
3454
|
className: Ds({ class: e }),
|
|
@@ -3456,7 +3456,7 @@ function js({ className: e, ref: t, ...n }) {
|
|
|
3456
3456
|
});
|
|
3457
3457
|
}
|
|
3458
3458
|
function Ms({ className: e, ref: t, ...n }) {
|
|
3459
|
-
let r =
|
|
3459
|
+
let r = F(t);
|
|
3460
3460
|
return h("dd", {
|
|
3461
3461
|
...n,
|
|
3462
3462
|
className: Os({ class: e }),
|
|
@@ -3472,7 +3472,7 @@ var Ns = {
|
|
|
3472
3472
|
//#endregion
|
|
3473
3473
|
//#region src/primitives/Dialog/Dialog.tsx
|
|
3474
3474
|
function Ps({ defaultOpen: e, onOpenChange: t, open: n, readOnly: r, ...i }) {
|
|
3475
|
-
return
|
|
3475
|
+
return I(), h(E, {
|
|
3476
3476
|
...i,
|
|
3477
3477
|
defaultOpen: e,
|
|
3478
3478
|
isOpen: n,
|
|
@@ -3486,31 +3486,31 @@ var Fs = {
|
|
|
3486
3486
|
Root: Ps,
|
|
3487
3487
|
Title: B,
|
|
3488
3488
|
Trigger: R
|
|
3489
|
-
}, Is =
|
|
3489
|
+
}, Is = j({ base: "border border-[var(--breeze-border)] bg-[var(--breeze-surface)]" });
|
|
3490
3490
|
function Ls({ className: e, defaultOpen: t, disabled: n = !1, onOpenChange: r, open: i, readOnly: a, ref: o, ...s }) {
|
|
3491
|
-
return
|
|
3491
|
+
return I(), h(xe, {
|
|
3492
3492
|
...s,
|
|
3493
3493
|
className: Is({ class: e }),
|
|
3494
3494
|
defaultExpanded: t,
|
|
3495
3495
|
isDisabled: n,
|
|
3496
3496
|
isExpanded: i,
|
|
3497
3497
|
onExpandedChange: r,
|
|
3498
|
-
ref:
|
|
3498
|
+
ref: F(o)
|
|
3499
3499
|
});
|
|
3500
3500
|
}
|
|
3501
3501
|
var Rs = {
|
|
3502
3502
|
Panel: bi,
|
|
3503
3503
|
Root: Ls,
|
|
3504
3504
|
Trigger: yi
|
|
3505
|
-
}, zs =
|
|
3505
|
+
}, zs = j({ base: "m-0 flex min-w-0 flex-col gap-3 border-0 p-0 disabled:opacity-70" }), Bs = j({ base: "mb-1 p-0 font-[family-name:var(--breeze-font-display)] text-base font-bold text-[var(--breeze-ink)]" }), Vs = j({ base: "text-sm text-[var(--breeze-ink-soft)]" }), Hs = j({ base: "text-sm font-medium text-[var(--breeze-danger)]" }), Us = m(null);
|
|
3506
3506
|
function Ws() {
|
|
3507
3507
|
let e = v(Us);
|
|
3508
3508
|
if (e === null) throw new globalThis.Error("Fieldset parts must be rendered within Fieldset.Root.");
|
|
3509
3509
|
return e;
|
|
3510
3510
|
}
|
|
3511
3511
|
function Gs({ "aria-describedby": e, children: t, className: n, invalid: r = !1, ref: i, ...a }) {
|
|
3512
|
-
|
|
3513
|
-
let o = b(), s = `${o}-description`, c = `${o}-error`, l =
|
|
3512
|
+
I();
|
|
3513
|
+
let o = b(), s = `${o}-description`, c = `${o}-error`, l = F(i), u = S(() => ({
|
|
3514
3514
|
descriptionId: s,
|
|
3515
3515
|
errorId: c
|
|
3516
3516
|
}), [s, c]), d = [
|
|
@@ -3527,7 +3527,7 @@ function Gs({ "aria-describedby": e, children: t, className: n, invalid: r = !1,
|
|
|
3527
3527
|
}, t));
|
|
3528
3528
|
}
|
|
3529
3529
|
function Ks({ className: e, ref: t, ...n }) {
|
|
3530
|
-
let r =
|
|
3530
|
+
let r = F(t);
|
|
3531
3531
|
return h("legend", {
|
|
3532
3532
|
...n,
|
|
3533
3533
|
className: Bs({ class: e }),
|
|
@@ -3535,7 +3535,7 @@ function Ks({ className: e, ref: t, ...n }) {
|
|
|
3535
3535
|
});
|
|
3536
3536
|
}
|
|
3537
3537
|
function qs({ className: e, ref: t, ...n }) {
|
|
3538
|
-
let { descriptionId: r } = Ws(), i =
|
|
3538
|
+
let { descriptionId: r } = Ws(), i = F(t);
|
|
3539
3539
|
return h("p", {
|
|
3540
3540
|
...n,
|
|
3541
3541
|
className: Vs({ class: e }),
|
|
@@ -3544,7 +3544,7 @@ function qs({ className: e, ref: t, ...n }) {
|
|
|
3544
3544
|
});
|
|
3545
3545
|
}
|
|
3546
3546
|
function Js({ className: e, ref: t, ...n }) {
|
|
3547
|
-
let { errorId: r } = Ws(), i =
|
|
3547
|
+
let { errorId: r } = Ws(), i = F(t);
|
|
3548
3548
|
return h("p", {
|
|
3549
3549
|
...n,
|
|
3550
3550
|
className: Hs({ class: e }),
|
|
@@ -3590,7 +3590,7 @@ var Ys = {
|
|
|
3590
3590
|
4: "sm:grid-cols-4",
|
|
3591
3591
|
6: "sm:grid-cols-6"
|
|
3592
3592
|
}
|
|
3593
|
-
}, Zs =
|
|
3593
|
+
}, Zs = j({
|
|
3594
3594
|
base: "grid",
|
|
3595
3595
|
defaultVariants: {
|
|
3596
3596
|
align: "stretch",
|
|
@@ -3610,7 +3610,7 @@ var Ys = {
|
|
|
3610
3610
|
}
|
|
3611
3611
|
});
|
|
3612
3612
|
function Qs({ align: e, className: t, columns: n = 1, gap: r = "lg", template: i, ...a }) {
|
|
3613
|
-
return
|
|
3613
|
+
return I(), h("div", {
|
|
3614
3614
|
...a,
|
|
3615
3615
|
className: Zs({
|
|
3616
3616
|
align: e,
|
|
@@ -3625,7 +3625,7 @@ function Qs({ align: e, className: t, columns: n = 1, gap: r = "lg", template: i
|
|
|
3625
3625
|
}
|
|
3626
3626
|
//#endregion
|
|
3627
3627
|
//#region src/primitives/GridList/GridList.tsx
|
|
3628
|
-
var $s =
|
|
3628
|
+
var $s = j({
|
|
3629
3629
|
base: "grid min-w-0 gap-2 outline-none data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)]",
|
|
3630
3630
|
defaultVariants: {
|
|
3631
3631
|
layout: "stack",
|
|
@@ -3641,12 +3641,12 @@ var $s = A({
|
|
|
3641
3641
|
true: "overflow-auto"
|
|
3642
3642
|
}
|
|
3643
3643
|
}
|
|
3644
|
-
}), ec =
|
|
3644
|
+
}), ec = j({ base: "flex min-h-11 min-w-0 items-center border border-b-2 border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] px-4 py-3 text-[var(--breeze-ink)] outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-45 data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)] data-[selected]:border-[var(--breeze-primary)] data-[selected]:bg-[var(--breeze-primary-soft)] forced-colors:data-[selected]:border-[Highlight]" }), tc = j({ base: "grid gap-2" }), nc = j({ base: "font-[family-name:var(--breeze-font-display)] text-base font-bold text-[var(--breeze-ink)]" }), rc = j({ base: "flex min-h-11 items-center justify-center px-4 py-3 text-sm text-[var(--breeze-ink-muted)]" });
|
|
3645
3645
|
function ic(e) {
|
|
3646
3646
|
return e === "all" ? "all" : [...e];
|
|
3647
3647
|
}
|
|
3648
3648
|
function ac({ children: e, className: t, defaultSelection: n, disabledKeys: r, emptyContent: i, items: a, layout: o = "stack", multiple: s = !1, onSelectionChange: c, orientation: l = "vertical", readOnly: u = !1, ref: d, selection: f, virtualization: p, ...m }) {
|
|
3649
|
-
let { direction: g } =
|
|
3649
|
+
let { direction: g } = I(), _ = F(d), v = G(i), y = h(ut, {
|
|
3650
3650
|
...m,
|
|
3651
3651
|
"aria-readonly": u || void 0,
|
|
3652
3652
|
children: e,
|
|
@@ -3678,8 +3678,8 @@ function ac({ children: e, className: t, defaultSelection: n, disabledKeys: r, e
|
|
|
3678
3678
|
}, y);
|
|
3679
3679
|
}
|
|
3680
3680
|
function oc({ className: e, disabled: t = !1, id: n, onAction: r, ref: i, textValue: a, ...o }) {
|
|
3681
|
-
let s =
|
|
3682
|
-
return h(
|
|
3681
|
+
let s = F(i);
|
|
3682
|
+
return h(ft, {
|
|
3683
3683
|
...o,
|
|
3684
3684
|
className: ec({ class: e }),
|
|
3685
3685
|
id: n,
|
|
@@ -3690,27 +3690,27 @@ function oc({ className: e, disabled: t = !1, id: n, onAction: r, ref: i, textVa
|
|
|
3690
3690
|
});
|
|
3691
3691
|
}
|
|
3692
3692
|
function sc({ className: e, ref: t, ...n }) {
|
|
3693
|
-
let r =
|
|
3694
|
-
return h(
|
|
3693
|
+
let r = F(t);
|
|
3694
|
+
return h(mt, {
|
|
3695
3695
|
...n,
|
|
3696
3696
|
className: tc({ class: e }),
|
|
3697
3697
|
ref: r
|
|
3698
3698
|
});
|
|
3699
3699
|
}
|
|
3700
3700
|
function cc({ className: e, ref: t, ...n }) {
|
|
3701
|
-
let r =
|
|
3702
|
-
return h(
|
|
3701
|
+
let r = F(t);
|
|
3702
|
+
return h(dt, {
|
|
3703
3703
|
...n,
|
|
3704
3704
|
className: nc({ class: e }),
|
|
3705
3705
|
ref: r
|
|
3706
3706
|
});
|
|
3707
3707
|
}
|
|
3708
3708
|
function lc({ className: e, loading: t = !1, offset: n = 1, onLoadMore: r, ref: i, ...a }) {
|
|
3709
|
-
let o =
|
|
3709
|
+
let o = F(i), s = Pa({
|
|
3710
3710
|
loading: t,
|
|
3711
3711
|
onLoadMore: r
|
|
3712
3712
|
});
|
|
3713
|
-
return h(
|
|
3713
|
+
return h(pt, {
|
|
3714
3714
|
...a,
|
|
3715
3715
|
className: rc({ class: e }),
|
|
3716
3716
|
isLoading: t,
|
|
@@ -3725,7 +3725,7 @@ var uc = {
|
|
|
3725
3725
|
LoadMore: lc,
|
|
3726
3726
|
Root: ac,
|
|
3727
3727
|
Section: sc
|
|
3728
|
-
}, dc =
|
|
3728
|
+
}, dc = j({
|
|
3729
3729
|
base: "flex flex-row",
|
|
3730
3730
|
defaultVariants: {
|
|
3731
3731
|
align: "center",
|
|
@@ -3755,7 +3755,7 @@ var uc = {
|
|
|
3755
3755
|
}
|
|
3756
3756
|
});
|
|
3757
3757
|
function fc({ align: e, className: t, gap: n = "md", justify: r, wrap: i, ...a }) {
|
|
3758
|
-
return
|
|
3758
|
+
return I(), h("div", {
|
|
3759
3759
|
...a,
|
|
3760
3760
|
className: dc({
|
|
3761
3761
|
align: e,
|
|
@@ -3771,13 +3771,13 @@ function pc(e, t, n) {
|
|
|
3771
3771
|
return e.startsWith("/") && !e.startsWith("//") && n !== !0 && typeof n != "string" && (t === void 0 || t === "_self");
|
|
3772
3772
|
}
|
|
3773
3773
|
function mc({ appearance: e, children: t, className: n, disabled: r = !1, download: i, href: a, ref: o, size: s, target: c, variant: l, ...u }) {
|
|
3774
|
-
let { router: d } =
|
|
3774
|
+
let { router: d } = I(), f = F(o), p = d !== void 0 && pc(a, c, i), m = { onClick: (e) => {
|
|
3775
3775
|
p && e.button === 0 && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey && (e.preventDefault(), d.navigate(a));
|
|
3776
3776
|
} };
|
|
3777
|
-
return h(
|
|
3777
|
+
return h(te, {
|
|
3778
3778
|
...u,
|
|
3779
3779
|
...m,
|
|
3780
|
-
className:
|
|
3780
|
+
className: L({
|
|
3781
3781
|
appearance: e,
|
|
3782
3782
|
class: n,
|
|
3783
3783
|
size: s,
|
|
@@ -3799,17 +3799,17 @@ function mc({ appearance: e, children: t, className: n, disabled: r = !1, downlo
|
|
|
3799
3799
|
}
|
|
3800
3800
|
//#endregion
|
|
3801
3801
|
//#region src/primitives/List/List.tsx
|
|
3802
|
-
var hc =
|
|
3802
|
+
var hc = j({
|
|
3803
3803
|
base: "m-0 grid gap-2 ps-6 text-[var(--breeze-ink)] marker:text-[var(--breeze-ink-muted)]",
|
|
3804
3804
|
defaultVariants: { ordered: !1 },
|
|
3805
3805
|
variants: { ordered: {
|
|
3806
3806
|
false: "list-disc",
|
|
3807
3807
|
true: "list-decimal"
|
|
3808
3808
|
} }
|
|
3809
|
-
}), gc =
|
|
3809
|
+
}), gc = j({ base: "min-w-0 ps-1" });
|
|
3810
3810
|
function _c({ className: e, ordered: t = !1, ref: n, ...r }) {
|
|
3811
|
-
|
|
3812
|
-
let i =
|
|
3811
|
+
I();
|
|
3812
|
+
let i = F(n);
|
|
3813
3813
|
return h(t ? "ol" : "ul", {
|
|
3814
3814
|
...r,
|
|
3815
3815
|
className: hc({
|
|
@@ -3820,7 +3820,7 @@ function _c({ className: e, ordered: t = !1, ref: n, ...r }) {
|
|
|
3820
3820
|
});
|
|
3821
3821
|
}
|
|
3822
3822
|
function vc({ className: e, ref: t, ...n }) {
|
|
3823
|
-
let r =
|
|
3823
|
+
let r = F(t);
|
|
3824
3824
|
return h("li", {
|
|
3825
3825
|
...n,
|
|
3826
3826
|
className: gc({ class: e }),
|
|
@@ -3830,7 +3830,7 @@ function vc({ className: e, ref: t, ...n }) {
|
|
|
3830
3830
|
var yc = {
|
|
3831
3831
|
Item: vc,
|
|
3832
3832
|
Root: _c
|
|
3833
|
-
}, bc =
|
|
3833
|
+
}, bc = j({
|
|
3834
3834
|
base: "inline-flex items-center",
|
|
3835
3835
|
defaultVariants: { size: "md" },
|
|
3836
3836
|
variants: { size: {
|
|
@@ -3840,8 +3840,8 @@ var yc = {
|
|
|
3840
3840
|
} }
|
|
3841
3841
|
});
|
|
3842
3842
|
function xc({ className: e, ref: t, size: n, ...r }) {
|
|
3843
|
-
|
|
3844
|
-
let i =
|
|
3843
|
+
I();
|
|
3844
|
+
let i = F(t);
|
|
3845
3845
|
return h("span", {
|
|
3846
3846
|
...r,
|
|
3847
3847
|
"aria-label": "Motech Development",
|
|
@@ -3851,14 +3851,14 @@ function xc({ className: e, ref: t, size: n, ...r }) {
|
|
|
3851
3851
|
}),
|
|
3852
3852
|
ref: i,
|
|
3853
3853
|
role: "img"
|
|
3854
|
-
}, /* @__PURE__ */
|
|
3854
|
+
}, /* @__PURE__ */ P("svg", {
|
|
3855
3855
|
"aria-hidden": "true",
|
|
3856
3856
|
className: "h-[1.2em] w-[1.04em]",
|
|
3857
3857
|
viewBox: "0 0 345.21 398.61",
|
|
3858
|
-
children: [/* @__PURE__ */
|
|
3858
|
+
children: [/* @__PURE__ */ N("polygon", {
|
|
3859
3859
|
fill: "var(--breeze-brand-mark)",
|
|
3860
3860
|
points: "172.6 199.31 57.53 132.87 57.53 332.18 0 298.96 0 99.65 172.6 0 345.21 99.65 345.21 298.96 287.67 332.18 287.67 132.87 172.6 199.31"
|
|
3861
|
-
}), /* @__PURE__ */
|
|
3861
|
+
}), /* @__PURE__ */ N("polygon", {
|
|
3862
3862
|
fill: "var(--breeze-brand-mark)",
|
|
3863
3863
|
points: "115.07 365.39 115.07 232.53 172.6 265.74 230.14 232.53 230.14 365.39 172.6 398.61 115.07 365.39"
|
|
3864
3864
|
})]
|
|
@@ -3866,7 +3866,7 @@ function xc({ className: e, ref: t, size: n, ...r }) {
|
|
|
3866
3866
|
}
|
|
3867
3867
|
//#endregion
|
|
3868
3868
|
//#region src/primitives/Meter/Meter.tsx
|
|
3869
|
-
var Sc =
|
|
3869
|
+
var Sc = j({ base: "grid min-w-0 gap-2 text-sm" }), Cc = j({ base: "flex min-w-0 items-baseline justify-between gap-4" }), wc = j({ base: "h-3 w-full overflow-hidden border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface-subtle)] forced-colors:border-[CanvasText]" }), Tc = j({
|
|
3870
3870
|
base: "h-full forced-colors:bg-[Highlight]",
|
|
3871
3871
|
defaultVariants: { variant: "primary" },
|
|
3872
3872
|
variants: { variant: {
|
|
@@ -3881,8 +3881,8 @@ var Sc = A({ base: "grid min-w-0 gap-2 text-sm" }), Cc = A({ base: "flex min-w-0
|
|
|
3881
3881
|
} }
|
|
3882
3882
|
});
|
|
3883
3883
|
function Ec({ className: e, label: t, maximum: n = 100, minimum: r = 0, ref: i, value: a, valueText: o, variant: s = "primary", ...c }) {
|
|
3884
|
-
if (
|
|
3885
|
-
let l = Number.isFinite(a) ? Math.min(n, Math.max(r, a)) : a, { labelProps: u, meterProps: d } =
|
|
3884
|
+
if (I(), !Number.isFinite(r) || !Number.isFinite(n) || n < r) throw RangeError("Meter bounds must be finite and maximum must be greater than or equal to minimum.");
|
|
3885
|
+
let l = Number.isFinite(a) ? Math.min(n, Math.max(r, a)) : a, { labelProps: u, meterProps: d } = ht({
|
|
3886
3886
|
label: t,
|
|
3887
3887
|
maxValue: n,
|
|
3888
3888
|
minValue: r,
|
|
@@ -3894,7 +3894,7 @@ function Ec({ className: e, label: t, maximum: n = 100, minimum: r = 0, ref: i,
|
|
|
3894
3894
|
...d,
|
|
3895
3895
|
className: Sc({ class: e }),
|
|
3896
3896
|
"data-variant": s,
|
|
3897
|
-
ref:
|
|
3897
|
+
ref: F(i),
|
|
3898
3898
|
role: "meter"
|
|
3899
3899
|
}, h("div", { className: Cc() }, h("span", u, t), h("span", { "aria-hidden": "true" }, o ?? l)), h("div", {
|
|
3900
3900
|
"aria-hidden": "true",
|
|
@@ -3906,21 +3906,21 @@ function Ec({ className: e, label: t, maximum: n = 100, minimum: r = 0, ref: i,
|
|
|
3906
3906
|
}
|
|
3907
3907
|
//#endregion
|
|
3908
3908
|
//#region src/primitives/NavigationList/NavigationList.tsx
|
|
3909
|
-
var Dc =
|
|
3909
|
+
var Dc = j({
|
|
3910
3910
|
base: "flex gap-1",
|
|
3911
3911
|
defaultVariants: { orientation: "vertical" },
|
|
3912
3912
|
variants: { orientation: {
|
|
3913
3913
|
horizontal: "flex-row flex-wrap items-center",
|
|
3914
3914
|
vertical: "flex-col items-stretch"
|
|
3915
3915
|
} }
|
|
3916
|
-
}), Oc =
|
|
3916
|
+
}), Oc = j({ base: "block min-h-10 px-3 py-2 no-underline data-[current]:bg-[var(--breeze-primary-soft)] data-[current]:font-semibold" });
|
|
3917
3917
|
function kc({ children: e, className: t, orientation: n = "vertical", ref: r, ...i }) {
|
|
3918
|
-
|
|
3919
|
-
let a =
|
|
3918
|
+
I();
|
|
3919
|
+
let a = F(r);
|
|
3920
3920
|
return h("nav", {
|
|
3921
3921
|
...i,
|
|
3922
3922
|
ref: a
|
|
3923
|
-
}, /* @__PURE__ */
|
|
3923
|
+
}, /* @__PURE__ */ N("ul", {
|
|
3924
3924
|
className: Dc({
|
|
3925
3925
|
class: t,
|
|
3926
3926
|
orientation: n
|
|
@@ -3929,11 +3929,11 @@ function kc({ children: e, className: t, orientation: n = "vertical", ref: r, ..
|
|
|
3929
3929
|
}));
|
|
3930
3930
|
}
|
|
3931
3931
|
function Ac({ children: e, className: t, current: n = !1, disabled: r = !1, href: i, id: a, onAction: o, ref: s, ...c }) {
|
|
3932
|
-
let l =
|
|
3932
|
+
let l = F(s);
|
|
3933
3933
|
return h("li", {
|
|
3934
3934
|
...c,
|
|
3935
3935
|
ref: l
|
|
3936
|
-
}, /* @__PURE__ */
|
|
3936
|
+
}, /* @__PURE__ */ N(Ln, {
|
|
3937
3937
|
"aria-current": n ? "page" : void 0,
|
|
3938
3938
|
className: Oc({ class: t }),
|
|
3939
3939
|
"data-current": n || void 0,
|
|
@@ -3946,7 +3946,7 @@ function Ac({ children: e, className: t, current: n = !1, disabled: r = !1, href
|
|
|
3946
3946
|
var jc = {
|
|
3947
3947
|
Item: Ac,
|
|
3948
3948
|
Root: kc
|
|
3949
|
-
}, Mc =
|
|
3949
|
+
}, Mc = j({ base: "flex min-w-0 flex-col gap-1.5" }), Nc = j({ base: "breeze-number-field-group group/number-field-control relative inline-flex min-w-0 items-stretch bg-[var(--breeze-surface)] outline-none after:pointer-events-none after:absolute after:inset-0 after:z-10 after:border after:border-[var(--breeze-border-strong)] after:transition-colors after:duration-[var(--breeze-duration-fast)] after:content-[''] data-[disabled]:cursor-not-allowed data-[disabled]:bg-[var(--breeze-surface-subtle)] data-[disabled]:opacity-70 data-[hovered]:after:border-[var(--breeze-primary)] data-[invalid]:after:!border-[var(--breeze-danger)]" }), Pc = j({ base: "min-w-0 flex-1 border-0 bg-transparent text-left text-[var(--breeze-ink)] outline-none group-has-[button]/number-field-control:text-center disabled:cursor-not-allowed read-only:cursor-default" }), Fc = j({
|
|
3950
3950
|
base: "inline-flex shrink-0 items-center justify-center border-0 bg-transparent font-bold text-[var(--breeze-ink)] outline-none transition-colors duration-[var(--breeze-duration-fast)] data-[hovered]:text-[var(--breeze-primary)] disabled:cursor-not-allowed disabled:opacity-55 group-data-[disabled]/number-field-control:opacity-100",
|
|
3951
3951
|
defaultVariants: { size: "md" },
|
|
3952
3952
|
variants: { size: {
|
|
@@ -3956,9 +3956,9 @@ var jc = {
|
|
|
3956
3956
|
} }
|
|
3957
3957
|
});
|
|
3958
3958
|
function Ic({ children: e, className: t, defaultValue: n, disabled: r = !1, formatOptions: i, invalid: a = !1, max: o, min: s, onChange: c, readOnly: l = !1, ref: u, required: d = !1, step: f, value: p, ...m }) {
|
|
3959
|
-
|
|
3960
|
-
let g =
|
|
3961
|
-
return h(
|
|
3959
|
+
I();
|
|
3960
|
+
let g = F(u), _ = (e) => c?.(Number.isNaN(e) ? null : e);
|
|
3961
|
+
return h(gt, {
|
|
3962
3962
|
...m,
|
|
3963
3963
|
className: Mc({ class: t }),
|
|
3964
3964
|
defaultValue: n === null ? NaN : n,
|
|
@@ -3976,8 +3976,8 @@ function Ic({ children: e, className: t, defaultValue: n, disabled: r = !1, form
|
|
|
3976
3976
|
}, e);
|
|
3977
3977
|
}
|
|
3978
3978
|
function Lc({ className: e, ref: t, ...n }) {
|
|
3979
|
-
let r =
|
|
3980
|
-
return h(
|
|
3979
|
+
let r = F(t);
|
|
3980
|
+
return h(de, {
|
|
3981
3981
|
...n,
|
|
3982
3982
|
className: Nc({ class: e }),
|
|
3983
3983
|
"data-breeze-number-field-group": "",
|
|
@@ -3985,8 +3985,8 @@ function Lc({ className: e, ref: t, ...n }) {
|
|
|
3985
3985
|
});
|
|
3986
3986
|
}
|
|
3987
3987
|
function Rc({ className: e, ref: t, size: n, ...r }) {
|
|
3988
|
-
let i =
|
|
3989
|
-
return h(
|
|
3988
|
+
let i = F(t);
|
|
3989
|
+
return h(pe, {
|
|
3990
3990
|
...r,
|
|
3991
3991
|
className: Y({
|
|
3992
3992
|
class: Pc({ class: e }),
|
|
@@ -3996,7 +3996,7 @@ function Rc({ className: e, ref: t, size: n, ...r }) {
|
|
|
3996
3996
|
});
|
|
3997
3997
|
}
|
|
3998
3998
|
function zc({ className: e, ref: t, size: n, slot: r, ...i }) {
|
|
3999
|
-
let a =
|
|
3999
|
+
let a = F(t);
|
|
4000
4000
|
return h(D, {
|
|
4001
4001
|
...i,
|
|
4002
4002
|
className: Fc({
|
|
@@ -4035,9 +4035,9 @@ var Hc = {
|
|
|
4035
4035
|
Input: Rc,
|
|
4036
4036
|
Label: X.Label,
|
|
4037
4037
|
Root: Ic
|
|
4038
|
-
}, Uc =
|
|
4038
|
+
}, Uc = j({ base: "z-50 max-h-[min(24rem,var(--available-height))] w-[min(22rem,calc(100vw-2rem))] overflow-y-auto border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] p-4 text-[var(--breeze-ink)] shadow-xl outline-none data-[entering]:animate-in data-[exiting]:animate-out motion-reduce:transition-none forced-colors:border-[CanvasText]" });
|
|
4039
4039
|
function Wc({ defaultOpen: e, onOpenChange: t, open: n, readOnly: r, ...i }) {
|
|
4040
|
-
return
|
|
4040
|
+
return I(), h(E, {
|
|
4041
4041
|
...i,
|
|
4042
4042
|
defaultOpen: e,
|
|
4043
4043
|
isOpen: n,
|
|
@@ -4045,9 +4045,9 @@ function Wc({ defaultOpen: e, onOpenChange: t, open: n, readOnly: r, ...i }) {
|
|
|
4045
4045
|
});
|
|
4046
4046
|
}
|
|
4047
4047
|
function Gc({ children: e, className: t, dismissible: n = !0, keyboardDismissDisabled: r = !1, modal: i = !1, offset: a = 8, placement: o = "bottom start", ref: s, ...c }) {
|
|
4048
|
-
|
|
4048
|
+
I();
|
|
4049
4049
|
let l = b();
|
|
4050
|
-
return h(
|
|
4050
|
+
return h(_t, {
|
|
4051
4051
|
className: Uc({ class: t }),
|
|
4052
4052
|
isDismissable: n,
|
|
4053
4053
|
isKeyboardDismissDisabled: r,
|
|
@@ -4057,7 +4057,7 @@ function Gc({ children: e, className: t, dismissible: n = !0, keyboardDismissDis
|
|
|
4057
4057
|
}, h(T, {
|
|
4058
4058
|
...c,
|
|
4059
4059
|
"aria-describedby": l,
|
|
4060
|
-
ref:
|
|
4060
|
+
ref: F(s)
|
|
4061
4061
|
}, h(wn, { value: l }, e)));
|
|
4062
4062
|
}
|
|
4063
4063
|
var Kc = {
|
|
@@ -4067,7 +4067,7 @@ var Kc = {
|
|
|
4067
4067
|
Root: Wc,
|
|
4068
4068
|
Title: B,
|
|
4069
4069
|
Trigger: R
|
|
4070
|
-
}, qc =
|
|
4070
|
+
}, qc = j({ base: "grid min-w-0 gap-2 text-sm" }), Jc = j({ base: "flex min-w-0 items-baseline justify-between gap-4" }), Yc = j({ base: "h-3 w-full overflow-hidden border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface-subtle)] forced-colors:border-[CanvasText]" }), Xc = j({
|
|
4071
4071
|
base: "h-full forced-colors:bg-[Highlight]",
|
|
4072
4072
|
defaultVariants: { variant: "primary" },
|
|
4073
4073
|
variants: { variant: {
|
|
@@ -4082,7 +4082,7 @@ var Kc = {
|
|
|
4082
4082
|
} }
|
|
4083
4083
|
});
|
|
4084
4084
|
function Zc({ className: e, indeterminate: t = !1, label: n, maximum: r = 100, minimum: i = 0, ref: a, value: o, valueText: s, variant: c = "primary", ...l }) {
|
|
4085
|
-
|
|
4085
|
+
I();
|
|
4086
4086
|
let u = b(), d = ({ percentage: e, valueText: r }) => h("div", { className: "contents" }, h("div", { className: Jc() }, h("span", { id: u }, n), t ? null : h("span", { "aria-hidden": "true" }, r)), h("div", {
|
|
4087
4087
|
"aria-hidden": "true",
|
|
4088
4088
|
className: Yc()
|
|
@@ -4093,7 +4093,7 @@ function Zc({ className: e, indeterminate: t = !1, label: n, maximum: r = 100, m
|
|
|
4093
4093
|
}),
|
|
4094
4094
|
style: t ? void 0 : { width: `${e ?? 0}%` }
|
|
4095
4095
|
})));
|
|
4096
|
-
return h(
|
|
4096
|
+
return h(vt, {
|
|
4097
4097
|
...l,
|
|
4098
4098
|
"aria-labelledby": u,
|
|
4099
4099
|
children: d,
|
|
@@ -4102,21 +4102,21 @@ function Zc({ className: e, indeterminate: t = !1, label: n, maximum: r = 100, m
|
|
|
4102
4102
|
isIndeterminate: t,
|
|
4103
4103
|
maxValue: r,
|
|
4104
4104
|
minValue: i,
|
|
4105
|
-
ref:
|
|
4105
|
+
ref: F(a),
|
|
4106
4106
|
value: o,
|
|
4107
4107
|
valueLabel: s
|
|
4108
4108
|
});
|
|
4109
4109
|
}
|
|
4110
4110
|
//#endregion
|
|
4111
4111
|
//#region src/primitives/RadioGroup/RadioGroup.tsx
|
|
4112
|
-
var Qc =
|
|
4112
|
+
var Qc = j({
|
|
4113
4113
|
base: "flex min-w-0 gap-2",
|
|
4114
4114
|
defaultVariants: { orientation: "vertical" },
|
|
4115
4115
|
variants: { orientation: {
|
|
4116
4116
|
horizontal: "flex-row flex-wrap items-start gap-x-5 [&>[data-breeze-radio-group-description]]:basis-full [&>[data-breeze-radio-group-error]]:basis-full [&>[data-breeze-radio-group-label]]:basis-full",
|
|
4117
4117
|
vertical: "flex-col items-start"
|
|
4118
4118
|
} }
|
|
4119
|
-
}), $c =
|
|
4119
|
+
}), $c = j({ base: "flex min-w-0 flex-col gap-1" }), el = j({ base: `${Kr} group inline-flex w-fit cursor-pointer items-center gap-2 rounded-sm text-base leading-[1.4] text-[var(--breeze-ink)] data-[disabled]:cursor-not-allowed data-[disabled]:opacity-55 data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)]` }), tl = j({
|
|
4120
4120
|
base: "inline-flex shrink-0 items-center justify-center rounded-full border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] transition-colors duration-[var(--breeze-duration-fast)] after:rounded-full after:bg-[var(--breeze-primary)] after:opacity-0 group-data-[selected]:border-[var(--breeze-primary)] group-data-[selected]:after:opacity-100",
|
|
4121
4121
|
defaultVariants: { size: "md" },
|
|
4122
4122
|
variants: { size: {
|
|
@@ -4126,9 +4126,9 @@ var Qc = A({
|
|
|
4126
4126
|
} }
|
|
4127
4127
|
});
|
|
4128
4128
|
function nl({ children: e, className: t, defaultSelection: n, disabled: r = !1, invalid: i = !1, name: a, onSelectionChange: o, orientation: s = "vertical", readOnly: c = !1, ref: l, required: u = !1, selection: d, ...f }) {
|
|
4129
|
-
|
|
4130
|
-
let p =
|
|
4131
|
-
return h(
|
|
4129
|
+
I();
|
|
4130
|
+
let p = F(l);
|
|
4131
|
+
return h(xt, {
|
|
4132
4132
|
...f,
|
|
4133
4133
|
className: Qc({
|
|
4134
4134
|
class: t,
|
|
@@ -4147,8 +4147,8 @@ function nl({ children: e, className: t, defaultSelection: n, disabled: r = !1,
|
|
|
4147
4147
|
}, e);
|
|
4148
4148
|
}
|
|
4149
4149
|
function rl({ children: e, className: t, disabled: n = !1, inputRef: r, ref: i, value: a, ...o }) {
|
|
4150
|
-
let s =
|
|
4151
|
-
return h(
|
|
4150
|
+
let s = F(i), c = C(null);
|
|
4151
|
+
return h(bt, {
|
|
4152
4152
|
...o,
|
|
4153
4153
|
className: $c({ class: t }),
|
|
4154
4154
|
inputRef: r ?? c,
|
|
@@ -4158,7 +4158,7 @@ function rl({ children: e, className: t, disabled: n = !1, inputRef: r, ref: i,
|
|
|
4158
4158
|
}, e);
|
|
4159
4159
|
}
|
|
4160
4160
|
function il({ className: e, ref: t, ...n }) {
|
|
4161
|
-
let r =
|
|
4161
|
+
let r = F(t);
|
|
4162
4162
|
return h(X.Label, {
|
|
4163
4163
|
...n,
|
|
4164
4164
|
className: `leading-[1.4] ${e ?? ""}`,
|
|
@@ -4179,15 +4179,15 @@ function ol(e) {
|
|
|
4179
4179
|
});
|
|
4180
4180
|
}
|
|
4181
4181
|
function sl({ className: e, ref: t, ...n }) {
|
|
4182
|
-
let r =
|
|
4183
|
-
return h(
|
|
4182
|
+
let r = F(t);
|
|
4183
|
+
return h(yt, {
|
|
4184
4184
|
...n,
|
|
4185
4185
|
className: el({ class: e }),
|
|
4186
4186
|
ref: r
|
|
4187
4187
|
});
|
|
4188
4188
|
}
|
|
4189
4189
|
function cl({ className: e, ref: t, size: n, ...r }) {
|
|
4190
|
-
let i =
|
|
4190
|
+
let i = F(t);
|
|
4191
4191
|
return h("span", {
|
|
4192
4192
|
...r,
|
|
4193
4193
|
"aria-hidden": !0,
|
|
@@ -4199,7 +4199,7 @@ function cl({ className: e, ref: t, size: n, ...r }) {
|
|
|
4199
4199
|
});
|
|
4200
4200
|
}
|
|
4201
4201
|
function ll({ ref: e, ...t }) {
|
|
4202
|
-
let n =
|
|
4202
|
+
let n = F(e);
|
|
4203
4203
|
return h("span", {
|
|
4204
4204
|
...t,
|
|
4205
4205
|
ref: n
|
|
@@ -4215,9 +4215,9 @@ var ul = {
|
|
|
4215
4215
|
ItemLabel: ll,
|
|
4216
4216
|
Label: il,
|
|
4217
4217
|
Root: nl
|
|
4218
|
-
}, dl =
|
|
4218
|
+
}, dl = j({ base: "inline-flex w-full flex-col gap-3" });
|
|
4219
4219
|
function fl({ allowsNonContiguousRanges: e = !1, children: t, className: n, defaultValue: r, disabled: i = !1, invalid: a = !1, isDateUnavailable: o, maxValue: s, minValue: c, onChange: l, readOnly: u = !1, ref: d, value: f, visibleMonths: p = 1, ...m }) {
|
|
4220
|
-
return
|
|
4220
|
+
return I(), h(St, {
|
|
4221
4221
|
...m,
|
|
4222
4222
|
allowsNonContiguousRanges: e,
|
|
4223
4223
|
children: t,
|
|
@@ -4230,7 +4230,7 @@ function fl({ allowsNonContiguousRanges: e = !1, children: t, className: n, defa
|
|
|
4230
4230
|
maxValue: Q(s ?? null) ?? void 0,
|
|
4231
4231
|
minValue: Q(c ?? null) ?? void 0,
|
|
4232
4232
|
onChange: u ? void 0 : (e) => l?.(Vi(e)),
|
|
4233
|
-
ref:
|
|
4233
|
+
ref: F(d),
|
|
4234
4234
|
value: f === void 0 ? void 0 : Bi(f),
|
|
4235
4235
|
visibleDuration: { months: p }
|
|
4236
4236
|
});
|
|
@@ -4242,7 +4242,7 @@ var pl = {
|
|
|
4242
4242
|
NextButton: Zi,
|
|
4243
4243
|
PreviousButton: Xi,
|
|
4244
4244
|
Root: fl
|
|
4245
|
-
}, ml =
|
|
4245
|
+
}, ml = j({ base: "flex min-w-0 flex-col gap-1.5" }), hl = j({
|
|
4246
4246
|
base: "relative inline-flex w-full min-w-0 items-stretch bg-[var(--breeze-surface)] outline-none after:pointer-events-none after:absolute after:inset-0 after:z-10 after:border after:border-[var(--breeze-border-strong)] after:transition-colors after:duration-[var(--breeze-duration-fast)] after:content-[''] data-[disabled]:cursor-not-allowed data-[disabled]:bg-[var(--breeze-surface-subtle)] data-[disabled]:opacity-70 data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-[-2px] data-[focus-visible]:outline-solid data-[focus-visible]:outline-[var(--breeze-focus)] data-[focus-within]:after:border-[var(--breeze-primary)] data-[hovered]:after:border-[var(--breeze-primary)] data-[invalid]:after:!border-[var(--breeze-danger)] data-[readonly]:bg-[var(--breeze-surface-subtle)] data-[readonly]:opacity-70",
|
|
4247
4247
|
defaultVariants: { size: "md" },
|
|
4248
4248
|
variants: { size: {
|
|
@@ -4250,7 +4250,7 @@ var pl = {
|
|
|
4250
4250
|
md: "min-h-11",
|
|
4251
4251
|
sm: "min-h-8"
|
|
4252
4252
|
} }
|
|
4253
|
-
}), gl =
|
|
4253
|
+
}), gl = j({ base: "[&::-webkit-search-cancel-button]:hidden" }), _l = j({ base: "min-w-0 w-auto flex-1 border-0 bg-transparent disabled:!bg-transparent disabled:!opacity-100 read-only:!bg-transparent read-only:!opacity-100 data-[focus-visible]:!outline-none" }), vl = j({
|
|
4254
4254
|
base: "inline-flex shrink-0 items-center justify-center border-0 bg-transparent text-[var(--breeze-ink-soft)] outline-none transition-colors duration-[var(--breeze-duration-fast)] data-[focus-visible]:outline-none data-[hovered]:text-[var(--breeze-primary)] disabled:cursor-not-allowed disabled:opacity-55",
|
|
4255
4255
|
defaultVariants: { size: "md" },
|
|
4256
4256
|
variants: { size: {
|
|
@@ -4267,9 +4267,9 @@ function xl(e, { isDisabled: t, isEmpty: n, isReadOnly: r }) {
|
|
|
4267
4267
|
} }, e);
|
|
4268
4268
|
}
|
|
4269
4269
|
function Sl({ children: e, className: t, defaultValue: n, disabled: r = !1, invalid: i = !1, onChange: a, onClear: o, onSubmit: s, readOnly: c = !1, ref: l, required: u = !1, value: d, ...f }) {
|
|
4270
|
-
|
|
4271
|
-
let p =
|
|
4272
|
-
return h(
|
|
4270
|
+
I();
|
|
4271
|
+
let p = F(l);
|
|
4272
|
+
return h(Ct, {
|
|
4273
4273
|
...f,
|
|
4274
4274
|
children: xl.bind(null, e),
|
|
4275
4275
|
className: ml({ class: t }),
|
|
@@ -4286,8 +4286,8 @@ function Sl({ children: e, className: t, defaultValue: n, disabled: r = !1, inva
|
|
|
4286
4286
|
});
|
|
4287
4287
|
}
|
|
4288
4288
|
function Cl({ className: e, ref: t, role: n = "presentation", size: r = "md", ...i }) {
|
|
4289
|
-
let a =
|
|
4290
|
-
return h(yl.Provider, { value: { size: r } }, h(
|
|
4289
|
+
let a = F(t), o = v(bl);
|
|
4290
|
+
return h(yl.Provider, { value: { size: r } }, h(de, {
|
|
4291
4291
|
...i,
|
|
4292
4292
|
className: hl({
|
|
4293
4293
|
class: e,
|
|
@@ -4310,7 +4310,7 @@ function wl({ className: e, size: t, ...n }) {
|
|
|
4310
4310
|
});
|
|
4311
4311
|
}
|
|
4312
4312
|
function Tl({ "aria-label": e, children: t, className: n, ref: r, size: i, ...o }) {
|
|
4313
|
-
let { messages: s } =
|
|
4313
|
+
let { messages: s } = I(), c = F(r), l = v(yl), u = v(bl);
|
|
4314
4314
|
return u?.isDisabled || u?.isEmpty || u?.isReadOnly ? null : h(D, {
|
|
4315
4315
|
...o,
|
|
4316
4316
|
"aria-label": e ?? s.clear,
|
|
@@ -4321,9 +4321,9 @@ function Tl({ "aria-label": e, children: t, className: n, ref: r, size: i, ...o
|
|
|
4321
4321
|
"data-breeze-search-field-clear": "",
|
|
4322
4322
|
ref: c,
|
|
4323
4323
|
type: "button"
|
|
4324
|
-
}, /* @__PURE__ */
|
|
4324
|
+
}, /* @__PURE__ */ N("span", {
|
|
4325
4325
|
"aria-hidden": "true",
|
|
4326
|
-
children: t ?? /* @__PURE__ */
|
|
4326
|
+
children: t ?? /* @__PURE__ */ N(a, {})
|
|
4327
4327
|
}));
|
|
4328
4328
|
}
|
|
4329
4329
|
var El = {
|
|
@@ -4334,11 +4334,11 @@ var El = {
|
|
|
4334
4334
|
Input: wl,
|
|
4335
4335
|
Label: X.Label,
|
|
4336
4336
|
Root: Sl
|
|
4337
|
-
}, Dl =
|
|
4337
|
+
}, Dl = j({ base: "group/select flex min-w-0 flex-col gap-1.5" }), Ol = j({ base: "inline-flex w-full items-center border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] text-left text-[var(--breeze-ink)] outline-none transition-colors duration-[var(--breeze-duration-fast)] data-[hovered]:border-[var(--breeze-primary)] data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-[-2px] data-[focus-visible]:outline-[var(--breeze-focus)] data-[disabled]:cursor-not-allowed data-[disabled]:bg-[var(--breeze-surface-subtle)] data-[disabled]:opacity-70 group-data-[invalid]/select:border-[var(--breeze-danger)]" }), kl = j({ base: "min-w-[var(--trigger-width)] border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] shadow-lg" }), Al = j({ base: "max-h-72 overflow-y-auto p-1 outline-none" });
|
|
4338
4338
|
function jl({ children: e, className: t, defaultValue: n, disabled: r = !1, form: i, invalid: a = !1, name: o, onChange: s, placeholder: c, readOnly: l = !1, ref: u, required: d = !1, value: f, ...p }) {
|
|
4339
|
-
|
|
4340
|
-
let m =
|
|
4341
|
-
return h(
|
|
4339
|
+
I();
|
|
4340
|
+
let m = F(u);
|
|
4341
|
+
return h(Dt, {
|
|
4342
4342
|
...p,
|
|
4343
4343
|
allowsEmptyCollection: !0,
|
|
4344
4344
|
children: e,
|
|
@@ -4356,41 +4356,41 @@ function jl({ children: e, className: t, defaultValue: n, disabled: r = !1, form
|
|
|
4356
4356
|
});
|
|
4357
4357
|
}
|
|
4358
4358
|
function Ml({ children: e, className: t, ref: n, size: r, ...a }) {
|
|
4359
|
-
let o =
|
|
4360
|
-
return h(
|
|
4359
|
+
let o = F(n);
|
|
4360
|
+
return h(wt, {
|
|
4361
4361
|
...a,
|
|
4362
4362
|
className: Y({
|
|
4363
4363
|
class: Ol({ class: t }),
|
|
4364
4364
|
size: r
|
|
4365
4365
|
}),
|
|
4366
4366
|
ref: o
|
|
4367
|
-
}, /* @__PURE__ */
|
|
4367
|
+
}, /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N("span", {
|
|
4368
4368
|
className: "min-w-0 flex-1 truncate",
|
|
4369
4369
|
children: e
|
|
4370
|
-
}), /* @__PURE__ */
|
|
4370
|
+
}), /* @__PURE__ */ N(i, {
|
|
4371
4371
|
className: "ms-3 size-4 text-[var(--breeze-ink-muted)]",
|
|
4372
4372
|
"data-breeze-select-indicator": !0
|
|
4373
4373
|
})] }));
|
|
4374
4374
|
}
|
|
4375
4375
|
function Nl({ className: e, ref: t, ...n }) {
|
|
4376
|
-
let r =
|
|
4377
|
-
return h(
|
|
4376
|
+
let r = F(t);
|
|
4377
|
+
return h(Ot, {
|
|
4378
4378
|
...n,
|
|
4379
4379
|
className: e,
|
|
4380
4380
|
ref: r
|
|
4381
4381
|
});
|
|
4382
4382
|
}
|
|
4383
4383
|
function Pl({ className: e, ref: t, ...n }) {
|
|
4384
|
-
let r =
|
|
4385
|
-
return h(
|
|
4384
|
+
let r = F(t);
|
|
4385
|
+
return h(Et, {
|
|
4386
4386
|
...n,
|
|
4387
4387
|
className: kl({ class: e }),
|
|
4388
4388
|
ref: r
|
|
4389
4389
|
});
|
|
4390
4390
|
}
|
|
4391
4391
|
function Fl({ children: e, className: t, emptyContent: n, items: r, ref: i, ...a }) {
|
|
4392
|
-
let o =
|
|
4393
|
-
return h(
|
|
4392
|
+
let o = F(i), s = G(n);
|
|
4393
|
+
return h(Tt, {
|
|
4394
4394
|
...a,
|
|
4395
4395
|
children: e,
|
|
4396
4396
|
className: Al({ class: t }),
|
|
@@ -4409,7 +4409,7 @@ var Il = {
|
|
|
4409
4409
|
Root: jl,
|
|
4410
4410
|
Trigger: Ml,
|
|
4411
4411
|
Value: Nl
|
|
4412
|
-
}, Ll =
|
|
4412
|
+
}, Ll = j({
|
|
4413
4413
|
base: "m-0 shrink-0 border-0 bg-current",
|
|
4414
4414
|
defaultVariants: {
|
|
4415
4415
|
orientation: "horizontal",
|
|
@@ -4427,8 +4427,8 @@ var Il = {
|
|
|
4427
4427
|
}
|
|
4428
4428
|
});
|
|
4429
4429
|
function Rl({ className: e, decorative: t = !1, orientation: n = "horizontal", ref: r, tone: i, ...a }) {
|
|
4430
|
-
|
|
4431
|
-
let o = n === "horizontal" ? "hr" : "div", s =
|
|
4430
|
+
I();
|
|
4431
|
+
let o = n === "horizontal" ? "hr" : "div", s = F(r);
|
|
4432
4432
|
return h(o, {
|
|
4433
4433
|
...a,
|
|
4434
4434
|
"aria-hidden": t || void 0,
|
|
@@ -4444,7 +4444,7 @@ function Rl({ className: e, decorative: t = !1, orientation: n = "horizontal", r
|
|
|
4444
4444
|
}
|
|
4445
4445
|
//#endregion
|
|
4446
4446
|
//#region src/primitives/Skeleton/Skeleton.tsx
|
|
4447
|
-
var zl =
|
|
4447
|
+
var zl = j({
|
|
4448
4448
|
base: "animate-pulse motion-reduce:animate-none forced-colors:border forced-colors:border-[CanvasText]",
|
|
4449
4449
|
defaultVariants: {
|
|
4450
4450
|
shape: "text",
|
|
@@ -4464,7 +4464,7 @@ var zl = A({
|
|
|
4464
4464
|
}
|
|
4465
4465
|
});
|
|
4466
4466
|
function Bl({ as: e, className: t, ref: n, shape: r = "text", tone: i = "default", ...a }) {
|
|
4467
|
-
|
|
4467
|
+
I();
|
|
4468
4468
|
let o = {
|
|
4469
4469
|
...a,
|
|
4470
4470
|
"aria-hidden": "true",
|
|
@@ -4475,20 +4475,20 @@ function Bl({ as: e, className: t, ref: n, shape: r = "text", tone: i = "default
|
|
|
4475
4475
|
}),
|
|
4476
4476
|
"data-shape": r,
|
|
4477
4477
|
"data-tone": i,
|
|
4478
|
-
ref:
|
|
4478
|
+
ref: F(n)
|
|
4479
4479
|
};
|
|
4480
4480
|
return h(e ?? "div", o);
|
|
4481
4481
|
}
|
|
4482
4482
|
//#endregion
|
|
4483
4483
|
//#region src/primitives/Slider/Slider.tsx
|
|
4484
|
-
var Vl =
|
|
4484
|
+
var Vl = j({
|
|
4485
4485
|
base: "flex min-w-0 gap-2 data-[disabled]:opacity-65",
|
|
4486
4486
|
defaultVariants: { orientation: "horizontal" },
|
|
4487
4487
|
variants: { orientation: {
|
|
4488
4488
|
horizontal: "w-full flex-col",
|
|
4489
4489
|
vertical: "grid w-fit grid-cols-[minmax(0,1fr)_auto] items-start [&>[data-breeze-slider-description]]:col-span-2 [&>[data-breeze-slider-error]]:col-span-2 [&>[data-breeze-slider-label]]:col-start-1 [&>[data-breeze-slider-output]]:col-start-2 [&>[data-breeze-slider-track]]:col-span-2 [&>[data-breeze-slider-track]]:justify-self-center"
|
|
4490
4490
|
} }
|
|
4491
|
-
}), Hl =
|
|
4491
|
+
}), Hl = j({ base: "font-[family-name:var(--breeze-font-display)] text-sm font-bold tabular-nums text-[var(--breeze-ink)]" }), Ul = j({ base: "relative rounded-full bg-[var(--breeze-border)] data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full data-[orientation=vertical]:my-3 data-[orientation=vertical]:h-64 data-[orientation=vertical]:w-2" }), Wl = j({ base: "absolute rounded-full bg-[var(--breeze-primary)] data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full" }), Gl = j({
|
|
4492
4492
|
base: "left-1/2 top-1/2 rounded-full border-2 border-[var(--breeze-primary)] bg-[var(--breeze-surface)] shadow-sm transition-transform duration-[var(--breeze-duration-fast)] data-[dragging]:scale-110 data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)] data-[orientation=horizontal]:top-1/2 data-[orientation=horizontal]:-translate-y-1/2 data-[orientation=vertical]:-translate-x-1/2",
|
|
4493
4493
|
defaultVariants: { size: "md" },
|
|
4494
4494
|
variants: { size: {
|
|
@@ -4496,15 +4496,15 @@ var Vl = A({
|
|
|
4496
4496
|
md: "size-6",
|
|
4497
4497
|
sm: "size-5"
|
|
4498
4498
|
} }
|
|
4499
|
-
}), Kl =
|
|
4499
|
+
}), Kl = j({ base: "text-sm text-[var(--breeze-ink-soft)]" }), ql = j({ base: "text-sm font-medium text-[var(--breeze-danger)]" }), Jl = m(null);
|
|
4500
4500
|
function Yl() {
|
|
4501
4501
|
let e = v(Jl);
|
|
4502
4502
|
if (e === null) throw new globalThis.Error("Slider parts must be rendered within Slider.Root.");
|
|
4503
4503
|
return e;
|
|
4504
4504
|
}
|
|
4505
4505
|
function Xl({ children: e, className: t, defaultValue: n, disabled: r = !1, formatOptions: i, invalid: a = !1, max: o, min: s, onChange: c, onChangeEnd: l, orientation: u = "horizontal", readOnly: d = !1, ref: f, required: p = !1, step: m, value: g, ..._ }) {
|
|
4506
|
-
|
|
4507
|
-
let v = b(), y = `${v}-description`, x = `${v}-error`, C =
|
|
4506
|
+
I();
|
|
4507
|
+
let v = b(), y = `${v}-description`, x = `${v}-error`, C = F(f), w = S(() => ({
|
|
4508
4508
|
descriptionId: y,
|
|
4509
4509
|
errorId: x,
|
|
4510
4510
|
invalid: a,
|
|
@@ -4517,7 +4517,7 @@ function Xl({ children: e, className: t, defaultValue: n, disabled: r = !1, form
|
|
|
4517
4517
|
d,
|
|
4518
4518
|
p
|
|
4519
4519
|
]);
|
|
4520
|
-
return h(Jl.Provider, { value: w }, h(
|
|
4520
|
+
return h(Jl.Provider, { value: w }, h(kt, {
|
|
4521
4521
|
..._,
|
|
4522
4522
|
className: Vl({
|
|
4523
4523
|
class: t,
|
|
@@ -4537,8 +4537,8 @@ function Xl({ children: e, className: t, defaultValue: n, disabled: r = !1, form
|
|
|
4537
4537
|
}, e));
|
|
4538
4538
|
}
|
|
4539
4539
|
function Zl({ className: e, ref: t, ...n }) {
|
|
4540
|
-
let r =
|
|
4541
|
-
return h(
|
|
4540
|
+
let r = F(t);
|
|
4541
|
+
return h(jt, {
|
|
4542
4542
|
...n,
|
|
4543
4543
|
className: Hl({ class: e }),
|
|
4544
4544
|
"data-breeze-slider-output": !0,
|
|
@@ -4546,8 +4546,8 @@ function Zl({ className: e, ref: t, ...n }) {
|
|
|
4546
4546
|
});
|
|
4547
4547
|
}
|
|
4548
4548
|
function Ql({ className: e, ref: t, ...n }) {
|
|
4549
|
-
let r =
|
|
4550
|
-
return h(
|
|
4549
|
+
let r = F(t);
|
|
4550
|
+
return h(Nt, {
|
|
4551
4551
|
...n,
|
|
4552
4552
|
className: Ul({ class: e }),
|
|
4553
4553
|
"data-breeze-slider-track": !0,
|
|
@@ -4561,20 +4561,20 @@ function $l(e) {
|
|
|
4561
4561
|
});
|
|
4562
4562
|
}
|
|
4563
4563
|
function eu({ className: e, ref: t, ...n }) {
|
|
4564
|
-
let r =
|
|
4565
|
-
return h(
|
|
4564
|
+
let r = F(t);
|
|
4565
|
+
return h(At, {
|
|
4566
4566
|
...n,
|
|
4567
4567
|
className: Wl({ class: e }),
|
|
4568
4568
|
ref: r
|
|
4569
4569
|
});
|
|
4570
4570
|
}
|
|
4571
4571
|
function tu({ "aria-describedby": e, className: t, inputRef: n, ref: r, size: i, ...a }) {
|
|
4572
|
-
let { descriptionId: o, errorId: s, invalid: c, readOnly: l, required: u } = Yl(), d =
|
|
4572
|
+
let { descriptionId: o, errorId: s, invalid: c, readOnly: l, required: u } = Yl(), d = F(r), f = C(null), p = [
|
|
4573
4573
|
e,
|
|
4574
4574
|
o,
|
|
4575
4575
|
c ? s : void 0
|
|
4576
4576
|
].filter(Boolean).join(" ");
|
|
4577
|
-
return h(
|
|
4577
|
+
return h(Mt, {
|
|
4578
4578
|
...a,
|
|
4579
4579
|
"aria-describedby": p,
|
|
4580
4580
|
className: Gl({
|
|
@@ -4589,7 +4589,7 @@ function tu({ "aria-describedby": e, className: t, inputRef: n, ref: r, size: i,
|
|
|
4589
4589
|
});
|
|
4590
4590
|
}
|
|
4591
4591
|
function nu({ className: e, id: t, ref: n, ...r }) {
|
|
4592
|
-
let { descriptionId: i } = Yl(), a =
|
|
4592
|
+
let { descriptionId: i } = Yl(), a = F(n);
|
|
4593
4593
|
return h("p", {
|
|
4594
4594
|
...r,
|
|
4595
4595
|
className: Kl({ class: e }),
|
|
@@ -4599,7 +4599,7 @@ function nu({ className: e, id: t, ref: n, ...r }) {
|
|
|
4599
4599
|
});
|
|
4600
4600
|
}
|
|
4601
4601
|
function ru({ className: e, id: t, ref: n, ...r }) {
|
|
4602
|
-
let { errorId: i } = Yl(), a =
|
|
4602
|
+
let { errorId: i } = Yl(), a = F(n);
|
|
4603
4603
|
return h("p", {
|
|
4604
4604
|
...r,
|
|
4605
4605
|
className: ql({ class: e }),
|
|
@@ -4621,8 +4621,8 @@ var iu = {
|
|
|
4621
4621
|
//#endregion
|
|
4622
4622
|
//#region src/primitives/VisuallyHidden/VisuallyHidden.tsx
|
|
4623
4623
|
function au({ className: e, ref: t, ...n }) {
|
|
4624
|
-
|
|
4625
|
-
let r =
|
|
4624
|
+
I();
|
|
4625
|
+
let r = F(t);
|
|
4626
4626
|
return h("span", {
|
|
4627
4627
|
...n,
|
|
4628
4628
|
className: ["absolute size-px overflow-hidden whitespace-nowrap border-0 p-0 [clip:rect(0,0,0,0)]", e].filter(Boolean).join(" "),
|
|
@@ -4631,7 +4631,7 @@ function au({ className: e, ref: t, ...n }) {
|
|
|
4631
4631
|
}
|
|
4632
4632
|
//#endregion
|
|
4633
4633
|
//#region src/primitives/Spinner/Spinner.tsx
|
|
4634
|
-
var ou =
|
|
4634
|
+
var ou = j({
|
|
4635
4635
|
base: "inline-block shrink-0 animate-spin rounded-full border-2 border-current border-e-transparent motion-reduce:animate-none forced-colors:border-[CanvasText] forced-colors:border-e-transparent",
|
|
4636
4636
|
defaultVariants: {
|
|
4637
4637
|
size: "md",
|
|
@@ -4656,7 +4656,7 @@ var ou = A({
|
|
|
4656
4656
|
}
|
|
4657
4657
|
});
|
|
4658
4658
|
function su({ className: e, label: t, ref: n, size: r = "md", variant: i = "primary", ...a }) {
|
|
4659
|
-
|
|
4659
|
+
I();
|
|
4660
4660
|
let o = b();
|
|
4661
4661
|
return h("span", {
|
|
4662
4662
|
...a,
|
|
@@ -4668,13 +4668,13 @@ function su({ className: e, label: t, ref: n, size: r = "md", variant: i = "prim
|
|
|
4668
4668
|
variant: i
|
|
4669
4669
|
}),
|
|
4670
4670
|
"data-variant": i,
|
|
4671
|
-
ref:
|
|
4671
|
+
ref: F(n),
|
|
4672
4672
|
role: t === void 0 ? void 0 : "status"
|
|
4673
4673
|
}, t === void 0 ? null : h(au, { id: o }, t));
|
|
4674
4674
|
}
|
|
4675
4675
|
//#endregion
|
|
4676
4676
|
//#region src/primitives/Stack/Stack.tsx
|
|
4677
|
-
var cu =
|
|
4677
|
+
var cu = j({
|
|
4678
4678
|
base: "flex flex-col",
|
|
4679
4679
|
defaultVariants: {
|
|
4680
4680
|
align: "stretch",
|
|
@@ -4696,7 +4696,7 @@ var cu = A({
|
|
|
4696
4696
|
}
|
|
4697
4697
|
});
|
|
4698
4698
|
function lu({ align: e, className: t, gap: n = "md", justify: r, ...i }) {
|
|
4699
|
-
return
|
|
4699
|
+
return I(), h("div", {
|
|
4700
4700
|
...i,
|
|
4701
4701
|
className: cu({
|
|
4702
4702
|
align: e,
|
|
@@ -4707,21 +4707,21 @@ function lu({ align: e, className: t, gap: n = "md", justify: r, ...i }) {
|
|
|
4707
4707
|
}
|
|
4708
4708
|
//#endregion
|
|
4709
4709
|
//#region src/primitives/Stepper/Stepper.tsx
|
|
4710
|
-
var uu =
|
|
4710
|
+
var uu = j({
|
|
4711
4711
|
base: "m-0 flex list-none gap-4 p-0",
|
|
4712
4712
|
defaultVariants: { orientation: "horizontal" },
|
|
4713
4713
|
variants: { orientation: {
|
|
4714
4714
|
horizontal: "flex-row flex-wrap",
|
|
4715
4715
|
vertical: "flex-col"
|
|
4716
4716
|
} }
|
|
4717
|
-
}), du =
|
|
4717
|
+
}), du = j({
|
|
4718
4718
|
base: "group flex min-w-0 flex-1 items-start gap-3 text-[var(--breeze-ink-soft)]",
|
|
4719
4719
|
variants: { status: {
|
|
4720
4720
|
complete: "text-[var(--breeze-success)]",
|
|
4721
4721
|
current: "text-[var(--breeze-primary)]",
|
|
4722
4722
|
upcoming: ""
|
|
4723
4723
|
} }
|
|
4724
|
-
}), fu =
|
|
4724
|
+
}), fu = j({
|
|
4725
4725
|
base: "grid size-8 shrink-0 place-items-center rounded-full border-2 border-current font-[family-name:var(--breeze-font-display)] text-sm font-bold",
|
|
4726
4726
|
variants: { status: {
|
|
4727
4727
|
complete: "bg-[var(--breeze-success)] text-white",
|
|
@@ -4730,13 +4730,13 @@ var uu = A({
|
|
|
4730
4730
|
} }
|
|
4731
4731
|
});
|
|
4732
4732
|
function pu({ className: e, orientation: t = "horizontal", ref: n, ...r }) {
|
|
4733
|
-
return
|
|
4733
|
+
return I(), h("ol", {
|
|
4734
4734
|
...r,
|
|
4735
4735
|
className: uu({
|
|
4736
4736
|
class: e,
|
|
4737
4737
|
orientation: t
|
|
4738
4738
|
}),
|
|
4739
|
-
ref:
|
|
4739
|
+
ref: F(n),
|
|
4740
4740
|
role: "list"
|
|
4741
4741
|
});
|
|
4742
4742
|
}
|
|
@@ -4748,17 +4748,17 @@ function mu({ className: e, description: t, indicator: n, ref: r, status: i, tit
|
|
|
4748
4748
|
class: e,
|
|
4749
4749
|
status: i
|
|
4750
4750
|
}),
|
|
4751
|
-
ref:
|
|
4752
|
-
}, /* @__PURE__ */
|
|
4751
|
+
ref: F(r)
|
|
4752
|
+
}, /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N("span", {
|
|
4753
4753
|
"aria-hidden": "true",
|
|
4754
4754
|
className: fu({ status: i }),
|
|
4755
4755
|
children: n
|
|
4756
|
-
}), /* @__PURE__ */
|
|
4756
|
+
}), /* @__PURE__ */ P("span", {
|
|
4757
4757
|
className: "grid min-w-0 gap-1 pt-1",
|
|
4758
|
-
children: [/* @__PURE__ */
|
|
4758
|
+
children: [/* @__PURE__ */ N("strong", {
|
|
4759
4759
|
className: "font-[family-name:var(--breeze-font-display)] text-base text-current",
|
|
4760
4760
|
children: a
|
|
4761
|
-
}), t === void 0 ? null : /* @__PURE__ */
|
|
4761
|
+
}), t === void 0 ? null : /* @__PURE__ */ N("span", {
|
|
4762
4762
|
className: "text-base text-[var(--breeze-ink-soft)]",
|
|
4763
4763
|
children: t
|
|
4764
4764
|
})]
|
|
@@ -4767,7 +4767,7 @@ function mu({ className: e, description: t, indicator: n, ref: r, status: i, tit
|
|
|
4767
4767
|
var hu = {
|
|
4768
4768
|
Item: mu,
|
|
4769
4769
|
Root: pu
|
|
4770
|
-
}, gu =
|
|
4770
|
+
}, gu = j({
|
|
4771
4771
|
defaultVariants: {
|
|
4772
4772
|
border: "default",
|
|
4773
4773
|
tone: "default"
|
|
@@ -4787,8 +4787,8 @@ var hu = {
|
|
|
4787
4787
|
}
|
|
4788
4788
|
});
|
|
4789
4789
|
function _u({ as: e = "div", border: t, className: n, padding: r = "lg", ref: i, tone: a, ...o }) {
|
|
4790
|
-
|
|
4791
|
-
let s = e, c =
|
|
4790
|
+
I();
|
|
4791
|
+
let s = e, c = F(i);
|
|
4792
4792
|
return h(s, {
|
|
4793
4793
|
...o,
|
|
4794
4794
|
className: gu({
|
|
@@ -4801,7 +4801,7 @@ function _u({ as: e = "div", border: t, className: n, padding: r = "lg", ref: i,
|
|
|
4801
4801
|
}
|
|
4802
4802
|
//#endregion
|
|
4803
4803
|
//#region src/primitives/Switch/Switch.tsx
|
|
4804
|
-
var vu =
|
|
4804
|
+
var vu = j({ base: "flex min-w-0 flex-col gap-1" }), yu = j({ base: "group inline-flex min-h-11 w-fit cursor-pointer items-center gap-2 font-[family-name:var(--breeze-font-display)] text-sm font-bold text-[var(--breeze-ink)] data-[disabled]:cursor-not-allowed data-[disabled]:opacity-55" }), bu = j({
|
|
4805
4805
|
base: "inline-flex shrink-0 items-center border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface-subtle)] p-0.5 transition-colors duration-[var(--breeze-duration-fast)] group-data-[selected]:border-[var(--breeze-primary)] group-data-[selected]:bg-[var(--breeze-primary)]",
|
|
4806
4806
|
defaultVariants: { size: "md" },
|
|
4807
4807
|
variants: { size: {
|
|
@@ -4809,7 +4809,7 @@ var vu = A({ base: "flex min-w-0 flex-col gap-1" }), yu = A({ base: "group inlin
|
|
|
4809
4809
|
md: "h-6 w-10",
|
|
4810
4810
|
sm: "h-5 w-8"
|
|
4811
4811
|
} }
|
|
4812
|
-
}), xu =
|
|
4812
|
+
}), xu = j({
|
|
4813
4813
|
base: "block translate-x-0 bg-[var(--breeze-ink-muted)] transition-[transform,background-color] duration-[var(--breeze-duration-fast)] group-data-[selected]:bg-white",
|
|
4814
4814
|
defaultVariants: { size: "md" },
|
|
4815
4815
|
variants: { size: {
|
|
@@ -4819,9 +4819,9 @@ var vu = A({ base: "flex min-w-0 flex-col gap-1" }), yu = A({ base: "group inlin
|
|
|
4819
4819
|
} }
|
|
4820
4820
|
});
|
|
4821
4821
|
function Su({ children: e, className: t, defaultSelected: n, disabled: r = !1, form: i, inputRef: a, invalid: o = !1, name: s, onChange: c, readOnly: l = !1, ref: u, required: d = !1, selected: f, value: p, ...m }) {
|
|
4822
|
-
|
|
4823
|
-
let g =
|
|
4824
|
-
return h(
|
|
4822
|
+
I();
|
|
4823
|
+
let g = F(u), _ = C(null);
|
|
4824
|
+
return h(Ft, {
|
|
4825
4825
|
...m,
|
|
4826
4826
|
className: vu({ class: t }),
|
|
4827
4827
|
defaultSelected: n,
|
|
@@ -4839,15 +4839,15 @@ function Su({ children: e, className: t, defaultSelected: n, disabled: r = !1, f
|
|
|
4839
4839
|
}, e);
|
|
4840
4840
|
}
|
|
4841
4841
|
function Cu({ className: e, ref: t, ...n }) {
|
|
4842
|
-
let r =
|
|
4843
|
-
return h(
|
|
4842
|
+
let r = F(t);
|
|
4843
|
+
return h(Pt, {
|
|
4844
4844
|
...n,
|
|
4845
4845
|
className: yu({ class: e }),
|
|
4846
4846
|
ref: r
|
|
4847
4847
|
});
|
|
4848
4848
|
}
|
|
4849
4849
|
function wu({ className: e, ref: t, size: n, ...r }) {
|
|
4850
|
-
let i =
|
|
4850
|
+
let i = F(t);
|
|
4851
4851
|
return h("span", {
|
|
4852
4852
|
...r,
|
|
4853
4853
|
"aria-hidden": !0,
|
|
@@ -4859,7 +4859,7 @@ function wu({ className: e, ref: t, size: n, ...r }) {
|
|
|
4859
4859
|
});
|
|
4860
4860
|
}
|
|
4861
4861
|
function Tu({ className: e, ref: t, size: n, ...r }) {
|
|
4862
|
-
let i =
|
|
4862
|
+
let i = F(t);
|
|
4863
4863
|
return h("span", {
|
|
4864
4864
|
...r,
|
|
4865
4865
|
"aria-hidden": !0,
|
|
@@ -4871,7 +4871,7 @@ function Tu({ className: e, ref: t, size: n, ...r }) {
|
|
|
4871
4871
|
});
|
|
4872
4872
|
}
|
|
4873
4873
|
function Eu({ ref: e, ...t }) {
|
|
4874
|
-
let n =
|
|
4874
|
+
let n = F(e);
|
|
4875
4875
|
return h("span", {
|
|
4876
4876
|
...t,
|
|
4877
4877
|
ref: n
|
|
@@ -4885,14 +4885,23 @@ var Du = {
|
|
|
4885
4885
|
Root: Su,
|
|
4886
4886
|
Thumb: Tu,
|
|
4887
4887
|
Track: wu
|
|
4888
|
-
}, Ou = "[&>tbody>tr]:relative [&>tbody>tr]:flex [&>tbody>tr]:flex-col [&>tbody>tr]:items-start [&>tbody>tr]:gap-2 [&>tbody>tr]:px-4 [&>tbody>tr]:py-4 [&>tfoot>tr]:relative [&>tfoot>tr]:flex [&>tfoot>tr]:flex-col [&>tfoot>tr]:items-start [&>tfoot>tr]:gap-2 [&>tfoot>tr]:px-4 [&>tfoot>tr]:py-4 [&>tbody>tr>td]:block [&>tbody>tr>td]:max-w-full [&>tbody>tr>td]:border-0 [&>tbody>tr>td]:p-0 [&>tfoot>tr>td]:block [&>tfoot>tr>td]:max-w-full [&>tfoot>tr>td]:border-0 [&>tfoot>tr>td]:p-0 sm:[&>thead>tr>th]:px-6 sm:[&>thead>tr>th]:py-3 sm:[&>thead>tr>th]:align-middle sm:[&>tbody>tr]:table-row sm:[&>tbody>tr]:border-0 sm:[&>tbody>tr]:p-0 sm:[&>tfoot>tr]:table-row sm:[&>tfoot>tr]:border-0 sm:[&>tfoot>tr]:p-0 sm:[&>tbody>tr>td]:table-cell sm:[&>tbody>tr>td]:border-b sm:[&>tbody>tr>td]:border-[var(--breeze-border)] sm:[&>tbody>tr>td]:px-6 sm:[&>tbody>tr>td]:py-3 sm:[&>tbody>tr>td]:align-middle sm:[&>tfoot>tr>td]:table-cell sm:[&>tfoot>tr>td]:border-b sm:[&>tfoot>tr>td]:border-[var(--breeze-border)] sm:[&>tfoot>tr>td]:px-6 sm:[&>tfoot>tr>td]:py-3 sm:[&>tfoot>tr>td]:align-middle", ku =
|
|
4888
|
+
}, Ou = "[&>tbody>tr]:relative [&>tbody>tr]:flex [&>tbody>tr]:flex-col [&>tbody>tr]:items-start [&>tbody>tr]:gap-2 [&>tbody>tr]:px-4 [&>tbody>tr]:py-4 [&>tfoot>tr]:relative [&>tfoot>tr]:flex [&>tfoot>tr]:flex-col [&>tfoot>tr]:items-start [&>tfoot>tr]:gap-2 [&>tfoot>tr]:px-4 [&>tfoot>tr]:py-4 [&>tbody>tr>td]:block [&>tbody>tr>td]:max-w-full [&>tbody>tr>td]:border-0 [&>tbody>tr>td]:p-0 [&>tfoot>tr>td]:block [&>tfoot>tr>td]:max-w-full [&>tfoot>tr>td]:border-0 [&>tfoot>tr>td]:p-0 sm:[&>thead>tr>th]:px-6 sm:[&>thead>tr>th]:py-3 sm:[&>thead>tr>th]:align-middle sm:[&>tbody>tr]:table-row sm:[&>tbody>tr]:border-0 sm:[&>tbody>tr]:p-0 sm:[&>tfoot>tr]:table-row sm:[&>tfoot>tr]:border-0 sm:[&>tfoot>tr]:p-0 sm:[&>tbody>tr>td]:table-cell sm:[&>tbody>tr>td]:border-b sm:[&>tbody>tr>td]:border-[var(--breeze-border)] sm:[&>tbody>tr>td]:px-6 sm:[&>tbody>tr>td]:py-3 sm:[&>tbody>tr>td]:align-middle sm:[&>tfoot>tr>td]:table-cell sm:[&>tfoot>tr>td]:border-b sm:[&>tfoot>tr>td]:border-[var(--breeze-border)] sm:[&>tfoot>tr>td]:px-6 sm:[&>tfoot>tr>td]:py-3 sm:[&>tfoot>tr>td]:align-middle", ku = `${Ou} sm:!block sm:[&>thead]:!block sm:[&>tbody]:!block sm:[&>tfoot]:!block sm:[&>thead>tr]:!grid sm:[&>thead>tr]:w-full sm:[&>thead>tr]:items-center sm:[&>thead>tr]:gap-x-4 sm:[&>thead>tr]:px-6 sm:[&>thead>tr]:py-3 sm:[&>tbody>tr]:!grid sm:[&>tbody>tr]:w-full sm:[&>tbody>tr]:items-center sm:[&>tbody>tr]:gap-x-4 sm:[&>tbody>tr]:border-b sm:[&>tbody>tr]:border-[var(--breeze-border)] sm:[&>tbody>tr]:px-6 sm:[&>tbody>tr]:py-3 sm:[&>tfoot>tr]:!grid sm:[&>tfoot>tr]:w-full sm:[&>tfoot>tr]:items-center sm:[&>tfoot>tr]:gap-x-4 sm:[&>tfoot>tr]:px-6 sm:[&>tfoot>tr]:py-3 sm:[&>thead>tr>th]:!flex sm:[&>thead>tr>th]:!h-auto sm:[&>thead>tr>th]:items-center sm:[&>thead>tr>th]:!border-0 sm:[&>thead>tr>th]:!p-0 sm:[&>tbody>tr>td]:!flex sm:[&>tbody>tr>td]:!h-auto sm:[&>tbody>tr>td]:items-center sm:[&>tbody>tr>td]:!border-0 sm:[&>tbody>tr>td]:!p-0 sm:[&>tbody>tr>td:last-child]:justify-end sm:[&>tfoot>tr>td]:!flex sm:[&>tfoot>tr>td]:!h-auto sm:[&>tfoot>tr>td]:items-center sm:[&>tfoot>tr>td]:!border-0 sm:[&>tfoot>tr>td]:!p-0`, Au = "sm:[&>thead>tr]:grid-cols-[var(--breeze-table-columns)] sm:[&>tbody>tr]:grid-cols-[var(--breeze-table-columns)] sm:[&>tfoot>tr]:grid-cols-[var(--breeze-table-columns)]", ju = {
|
|
4889
|
+
equal: [],
|
|
4890
|
+
mediaDetailsAction: [
|
|
4891
|
+
"2.25rem",
|
|
4892
|
+
"minmax(0, 1.3fr)",
|
|
4893
|
+
"minmax(0, 0.8fr)",
|
|
4894
|
+
"minmax(0, 1.2fr)",
|
|
4895
|
+
"1.25rem"
|
|
4896
|
+
]
|
|
4897
|
+
}, Mu = j({
|
|
4889
4898
|
base: "group/table block w-full border-separate border-spacing-0 text-start text-[var(--breeze-ink)] outline-none sm:table [&>tbody:last-of-type>tr:last-child]:border-b-0 sm:[&>tbody:last-of-type>tr:last-child>td]:border-b-0 data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)]",
|
|
4890
4899
|
compoundVariants: [{
|
|
4891
|
-
class:
|
|
4900
|
+
class: Au,
|
|
4892
4901
|
desktopColumns: "equal",
|
|
4893
4902
|
layout: "responsiveGrid"
|
|
4894
4903
|
}, {
|
|
4895
|
-
class:
|
|
4904
|
+
class: Au,
|
|
4896
4905
|
desktopColumns: "mediaDetailsAction",
|
|
4897
4906
|
layout: "responsiveGrid"
|
|
4898
4907
|
}],
|
|
@@ -4912,31 +4921,24 @@ var Du = {
|
|
|
4912
4921
|
mediaDetailsAction: ""
|
|
4913
4922
|
},
|
|
4914
4923
|
layout: {
|
|
4915
|
-
grid: "!grid grid-cols-[
|
|
4924
|
+
grid: "!grid grid-cols-[var(--breeze-table-columns)] [&>thead]:col-span-full [&>thead]:grid-cols-subgrid sm:[&>thead]:grid [&>tbody]:col-span-full [&>tbody]:grid [&>tbody]:grid-cols-subgrid [&>tfoot]:col-span-full [&>tfoot]:grid [&>tfoot]:grid-cols-subgrid sm:[&>thead>tr]:col-span-full sm:[&>thead>tr]:grid sm:[&>thead>tr]:min-h-11 sm:[&>thead>tr]:grid-cols-subgrid sm:[&>thead>tr]:items-center sm:[&>thead>tr]:px-6 [&>tbody>tr]:col-span-full [&>tbody>tr]:grid [&>tbody>tr]:min-h-11 [&>tbody>tr]:grid-cols-subgrid [&>tbody>tr]:items-center [&>tbody>tr]:px-4 sm:[&>tbody>tr]:px-6 [&>tfoot>tr]:col-span-full [&>tfoot>tr]:grid [&>tfoot>tr]:min-h-11 [&>tfoot>tr]:grid-cols-subgrid [&>tfoot>tr]:items-center [&>tfoot>tr]:px-4 sm:[&>tfoot>tr]:px-6 sm:[&>thead>tr>th]:block sm:[&>thead>tr>th]:!p-0 [&>tbody>tr>td]:block [&>tbody>tr>td]:!p-0 [&>tfoot>tr>td]:block [&>tfoot>tr>td]:!p-0 sm:[&>thead>tr]:border-b sm:[&>thead>tr]:border-[var(--breeze-border)] sm:[&>thead>tr>th]:border-0 [&>tbody>tr]:border-b [&>tbody>tr]:border-[var(--breeze-border)] [&>tbody>tr>td]:border-0 [&>tfoot>tr>td]:border-0 sm:[&>tbody>tr>td]:!border-0 sm:[&>tfoot>tr>td]:!border-0",
|
|
4916
4925
|
responsive: Ou,
|
|
4917
|
-
responsiveGrid:
|
|
4926
|
+
responsiveGrid: ku
|
|
4918
4927
|
},
|
|
4919
4928
|
virtualized: {
|
|
4920
4929
|
false: "",
|
|
4921
4930
|
true: "overflow-auto sm:block"
|
|
4922
4931
|
}
|
|
4923
4932
|
}
|
|
4924
|
-
}),
|
|
4933
|
+
}), Nu = j({ base: "hidden bg-[var(--breeze-surface-subtle)] text-[var(--breeze-ink-muted)] sm:table-header-group" }), Pu = j({
|
|
4925
4934
|
base: "border-b border-[var(--breeze-border)] px-4 py-3 text-start font-[family-name:var(--breeze-font-display)] text-base font-bold outline-none data-[focus-visible]:outline-2 data-[focus-visible]:-outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)] data-[allows-sorting]:cursor-pointer forced-colors:border-[CanvasText]",
|
|
4926
4935
|
defaultVariants: { align: "start" },
|
|
4927
|
-
variants: {
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
width: {
|
|
4934
|
-
auto: "",
|
|
4935
|
-
control: "w-44",
|
|
4936
|
-
icon: "w-5 px-0"
|
|
4937
|
-
}
|
|
4938
|
-
}
|
|
4939
|
-
}), Mu = A({ base: "block sm:table-row-group" }), Nu = A({ base: "block bg-[var(--breeze-surface-subtle)] sm:table-footer-group" }), Pu = A({ base: "flex min-h-11 items-center justify-center px-4 py-3 text-sm text-[var(--breeze-ink-muted)]" }), Fu = A({
|
|
4936
|
+
variants: { align: {
|
|
4937
|
+
center: "text-center sm:justify-center",
|
|
4938
|
+
end: "text-end sm:justify-end",
|
|
4939
|
+
start: "text-start sm:justify-start"
|
|
4940
|
+
} }
|
|
4941
|
+
}), Fu = j({ base: "block sm:table-row-group" }), Iu = j({ base: "block bg-[var(--breeze-surface-subtle)] sm:table-footer-group" }), Lu = j({ base: "flex min-h-11 items-center justify-center px-4 py-3 text-sm text-[var(--breeze-ink-muted)]" }), Ru = j({
|
|
4940
4942
|
base: "grid min-w-0 border-b border-[var(--breeze-border)] bg-[var(--breeze-surface)] py-2 outline-none sm:table-row sm:border-0 sm:py-0 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-45 data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)] data-[selected]:bg-[var(--breeze-primary-soft)] forced-colors:data-[selected]:border-[Highlight]",
|
|
4941
4943
|
compoundVariants: [{
|
|
4942
4944
|
actionable: !0,
|
|
@@ -4967,14 +4969,14 @@ var Du = {
|
|
|
4967
4969
|
muted: "bg-[var(--breeze-table-row-muted)] text-[var(--breeze-neutral)]"
|
|
4968
4970
|
}
|
|
4969
4971
|
}
|
|
4970
|
-
}),
|
|
4971
|
-
base: "grid min-w-0 grid-cols-[minmax(5rem,auto)_minmax(0,1fr)] gap-4 border-b border-[var(--breeze-border)] px-4 py-2 text-start [overflow-wrap:anywhere] last:border-b-0 before:me-1 before:hidden before:font-[family-name:var(--breeze-font-display)] before:text-base before:leading-[1.4] before:font-bold before:text-[var(--breeze-ink-muted)] data-[label]:before:inline-block data-[label]:before:content-[attr(data-label)] sm:table-cell sm:border-b sm:border-[var(--breeze-border)] sm:px-4 sm:py-3 sm:last:border-b sm:data-[label]:before:hidden
|
|
4972
|
+
}), zu = j({
|
|
4973
|
+
base: "grid min-w-0 grid-cols-[minmax(5rem,auto)_minmax(0,1fr)] gap-4 border-b border-[var(--breeze-border)] px-4 py-2 text-start [overflow-wrap:anywhere] last:border-b-0 before:me-1 before:hidden before:font-[family-name:var(--breeze-font-display)] before:text-base before:leading-[1.4] before:font-bold before:text-[var(--breeze-ink-muted)] data-[label]:before:inline-block data-[label]:before:content-[attr(data-label)] sm:table-cell sm:border-b sm:border-[var(--breeze-border)] sm:px-4 sm:py-3 sm:last:border-b sm:data-[label]:before:hidden [&>*]:min-w-0",
|
|
4972
4974
|
defaultVariants: { align: "start" },
|
|
4973
4975
|
variants: {
|
|
4974
4976
|
align: {
|
|
4975
|
-
center: "sm:text-center",
|
|
4976
|
-
end: "sm:text-end",
|
|
4977
|
-
start: "sm:text-start"
|
|
4977
|
+
center: "sm:text-center sm:justify-center",
|
|
4978
|
+
end: "sm:text-end sm:justify-end",
|
|
4979
|
+
start: "sm:text-start sm:justify-start"
|
|
4978
4980
|
},
|
|
4979
4981
|
presentation: {
|
|
4980
4982
|
data: "",
|
|
@@ -4982,42 +4984,75 @@ var Du = {
|
|
|
4982
4984
|
}
|
|
4983
4985
|
}
|
|
4984
4986
|
});
|
|
4985
|
-
function
|
|
4987
|
+
function Bu(e) {
|
|
4986
4988
|
return e === "all" ? "all" : [...e];
|
|
4987
4989
|
}
|
|
4988
|
-
function
|
|
4990
|
+
function Vu(e) {
|
|
4989
4991
|
if (e !== void 0) return Number.isInteger(e) ? Math.min(Math.max(e, 1), 1e3) : 1;
|
|
4990
4992
|
}
|
|
4991
|
-
function
|
|
4993
|
+
function Hu(e) {
|
|
4994
|
+
return typeof e == "number" ? `${e}px` : e;
|
|
4995
|
+
}
|
|
4996
|
+
function Uu(e, t) {
|
|
4992
4997
|
return e ? t ? "multiple" : "single" : "none";
|
|
4993
4998
|
}
|
|
4994
|
-
function
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
4999
|
+
function Wu(e, t = "equal") {
|
|
5000
|
+
return e === null ? /* @__PURE__ */ new Map() : new Map([...e.querySelectorAll("[data-breeze-column]")].flatMap((e, n) => {
|
|
5001
|
+
let r = e.dataset.breezeColumn;
|
|
5002
|
+
if (r === void 0) return [];
|
|
5003
|
+
let i = e.dataset.breezeCompactLabel === "false" ? void 0 : e.dataset.breezeCompactLabelText;
|
|
5004
|
+
return [[r, {
|
|
5005
|
+
label: i === void 0 || i.length === 0 ? void 0 : `${i}:`,
|
|
5006
|
+
track: e.dataset.breezeColumnWidth ?? ju[t][n] ?? "minmax(0, 1fr)"
|
|
5007
|
+
}]];
|
|
5002
5008
|
}));
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5009
|
+
}
|
|
5010
|
+
function Gu(e, t = Wu(e)) {
|
|
5011
|
+
e !== null && e.querySelectorAll("[data-breeze-cell-column]").forEach((e) => {
|
|
5012
|
+
let { dataset: n } = e, r = t.get(n.breezeCellColumn ?? "")?.label;
|
|
5013
|
+
r !== void 0 && r.length > 0 ? n.label = r : delete n.label;
|
|
5006
5014
|
});
|
|
5007
5015
|
}
|
|
5008
|
-
function
|
|
5009
|
-
|
|
5010
|
-
|
|
5016
|
+
function Ku(e) {
|
|
5017
|
+
if (e.size !== 0) return [...e.values()].map(({ track: e }) => e).join(" ");
|
|
5018
|
+
}
|
|
5019
|
+
function qu(e, t) {
|
|
5020
|
+
let n = Wu(e, t);
|
|
5021
|
+
return Gu(e, n), Ku(n);
|
|
5022
|
+
}
|
|
5023
|
+
function Ju({ boundary: e = "none", children: t, className: n, defaultSelection: r, defaultSort: i, desktopColumns: a = "equal", disabledKeys: o, layout: s = "responsive", multiple: c = !1, onSelectionChange: l, onSortChange: u, readOnly: d = !1, ref: f, selection: p, sort: m, virtualization: g, ...v }) {
|
|
5024
|
+
I();
|
|
5025
|
+
let y = F(f), b = C(null), [S, T] = w(i), [E, D] = w(), O = r !== void 0 || c || l !== void 0 || p !== void 0, k = m ?? S, ee = _((e) => {
|
|
5011
5026
|
b.current = e, y(e);
|
|
5012
5027
|
}, [y]);
|
|
5013
5028
|
x(() => {
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5029
|
+
let e = b.current;
|
|
5030
|
+
if (e === null) return () => void 0;
|
|
5031
|
+
let t = () => {
|
|
5032
|
+
let t = qu(e, a);
|
|
5033
|
+
D((e) => e === t ? e : t);
|
|
5034
|
+
};
|
|
5035
|
+
t();
|
|
5036
|
+
let n = new MutationObserver(t);
|
|
5037
|
+
return n.observe(e, {
|
|
5038
|
+
attributeFilter: [
|
|
5039
|
+
"data-breeze-column-width",
|
|
5040
|
+
"data-breeze-compact-label",
|
|
5041
|
+
"data-breeze-compact-label-text"
|
|
5042
|
+
],
|
|
5043
|
+
attributes: !0,
|
|
5044
|
+
childList: !0,
|
|
5045
|
+
subtree: !0
|
|
5046
|
+
}), () => n.disconnect();
|
|
5047
|
+
}, [t, a]);
|
|
5048
|
+
let A = Ha(g), j = E === void 0 && A === void 0 ? void 0 : {
|
|
5049
|
+
...A,
|
|
5050
|
+
"--breeze-table-columns": E
|
|
5051
|
+
}, M = h(zt, {
|
|
5017
5052
|
...v,
|
|
5018
5053
|
"aria-readonly": d || void 0,
|
|
5019
5054
|
children: t,
|
|
5020
|
-
className:
|
|
5055
|
+
className: Mu({
|
|
5021
5056
|
boundary: e,
|
|
5022
5057
|
class: n,
|
|
5023
5058
|
desktopColumns: a,
|
|
@@ -5030,7 +5065,7 @@ function Vu({ boundary: e = "none", children: t, className: n, defaultSelection:
|
|
|
5030
5065
|
"data-virtualized": g === void 0 ? void 0 : "true",
|
|
5031
5066
|
defaultSelectedKeys: r,
|
|
5032
5067
|
disabledKeys: o,
|
|
5033
|
-
onSelectionChange: (e) => l?.(
|
|
5068
|
+
onSelectionChange: (e) => l?.(Bu(e)),
|
|
5034
5069
|
onSortChange: d ? void 0 : (e) => {
|
|
5035
5070
|
let t = {
|
|
5036
5071
|
column: e.column,
|
|
@@ -5038,65 +5073,65 @@ function Vu({ boundary: e = "none", children: t, className: n, defaultSelection:
|
|
|
5038
5073
|
};
|
|
5039
5074
|
m === void 0 && T(t), u?.(t);
|
|
5040
5075
|
},
|
|
5041
|
-
ref:
|
|
5076
|
+
ref: ee,
|
|
5042
5077
|
selectedKeys: p,
|
|
5043
|
-
selectionMode:
|
|
5044
|
-
sortDescriptor:
|
|
5045
|
-
column:
|
|
5046
|
-
direction:
|
|
5078
|
+
selectionMode: Uu(O, c),
|
|
5079
|
+
sortDescriptor: k === void 0 ? void 0 : {
|
|
5080
|
+
column: k.column,
|
|
5081
|
+
direction: k.direction
|
|
5047
5082
|
},
|
|
5048
|
-
style:
|
|
5083
|
+
style: j
|
|
5049
5084
|
});
|
|
5050
|
-
return g === void 0 ?
|
|
5085
|
+
return g === void 0 ? M : h(Ua, {
|
|
5051
5086
|
configuration: g,
|
|
5052
5087
|
kind: "table"
|
|
5053
|
-
},
|
|
5088
|
+
}, M);
|
|
5054
5089
|
}
|
|
5055
|
-
function
|
|
5056
|
-
let d = typeof t == "string" ? t.trim() : void 0,
|
|
5057
|
-
return h(
|
|
5090
|
+
function Yu({ align: e = "start", children: t, className: n, compactLabel: r = !0, id: i, ref: a, rowHeader: o = !1, sortable: s = !1, textValue: c, width: l, ...u }) {
|
|
5091
|
+
let d = Hu(l), f = typeof t == "string" ? t.trim() : void 0, p = r ? c ?? f : void 0;
|
|
5092
|
+
return h(Lt, {
|
|
5058
5093
|
...u,
|
|
5059
5094
|
allowsSorting: s,
|
|
5060
5095
|
children: t,
|
|
5061
|
-
className:
|
|
5096
|
+
className: Pu({
|
|
5062
5097
|
align: e,
|
|
5063
|
-
class: n
|
|
5064
|
-
width: l
|
|
5098
|
+
class: n
|
|
5065
5099
|
}),
|
|
5066
5100
|
"data-breeze-column": String(i),
|
|
5067
|
-
"data-breeze-column-width":
|
|
5101
|
+
"data-breeze-column-width": d,
|
|
5068
5102
|
"data-breeze-compact-label": String(r),
|
|
5069
|
-
"data-breeze-compact-label-text":
|
|
5103
|
+
"data-breeze-compact-label-text": p,
|
|
5070
5104
|
id: i,
|
|
5071
5105
|
isRowHeader: o,
|
|
5072
5106
|
ref: a,
|
|
5107
|
+
style: d === void 0 ? void 0 : { width: l },
|
|
5073
5108
|
textValue: c
|
|
5074
5109
|
});
|
|
5075
5110
|
}
|
|
5076
|
-
function
|
|
5077
|
-
return
|
|
5111
|
+
function Xu(e) {
|
|
5112
|
+
return Yu(e);
|
|
5078
5113
|
}
|
|
5079
|
-
function
|
|
5080
|
-
return g(e) && e.type ===
|
|
5114
|
+
function Zu(e) {
|
|
5115
|
+
return g(e) && e.type === Xu ? Yu(e.props) : e;
|
|
5081
5116
|
}
|
|
5082
|
-
function
|
|
5083
|
-
let o =
|
|
5084
|
-
return h(
|
|
5117
|
+
function Qu({ children: e, className: t, id: n, items: r, ref: i, ...a }) {
|
|
5118
|
+
let o = F(i), s = typeof e == "function" ? (t) => Zu(e(t)) : d.map(e, Zu);
|
|
5119
|
+
return h(Ht, {
|
|
5085
5120
|
...a,
|
|
5086
5121
|
children: s,
|
|
5087
|
-
className:
|
|
5122
|
+
className: Nu({ class: t }),
|
|
5088
5123
|
columns: r,
|
|
5089
5124
|
"data-section-key": n,
|
|
5090
5125
|
dependencies: [e],
|
|
5091
5126
|
ref: o
|
|
5092
5127
|
});
|
|
5093
5128
|
}
|
|
5094
|
-
function
|
|
5095
|
-
let s =
|
|
5096
|
-
return h(
|
|
5129
|
+
function $u({ children: e, className: t, emptyContent: n, id: r, items: i, ref: a, ...o }) {
|
|
5130
|
+
let s = F(a), c = G(n);
|
|
5131
|
+
return h(Bt, {
|
|
5097
5132
|
...o,
|
|
5098
5133
|
children: e,
|
|
5099
|
-
className:
|
|
5134
|
+
className: Fu({ class: t }),
|
|
5100
5135
|
"data-section-key": r,
|
|
5101
5136
|
dependencies: [e],
|
|
5102
5137
|
items: i,
|
|
@@ -5104,25 +5139,25 @@ function Ku({ children: e, className: t, emptyContent: n, id: r, items: i, ref:
|
|
|
5104
5139
|
renderEmptyState: () => c
|
|
5105
5140
|
});
|
|
5106
5141
|
}
|
|
5107
|
-
function
|
|
5108
|
-
let o =
|
|
5109
|
-
return h(
|
|
5142
|
+
function ed({ children: e, className: t, id: n, items: r, ref: i, ...a }) {
|
|
5143
|
+
let o = F(i);
|
|
5144
|
+
return h(Vt, {
|
|
5110
5145
|
...a,
|
|
5111
5146
|
children: e,
|
|
5112
|
-
className:
|
|
5147
|
+
className: Iu({ class: t }),
|
|
5113
5148
|
"data-section-key": n,
|
|
5114
5149
|
dependencies: [e],
|
|
5115
5150
|
items: r,
|
|
5116
5151
|
ref: o
|
|
5117
5152
|
});
|
|
5118
5153
|
}
|
|
5119
|
-
function
|
|
5120
|
-
let u =
|
|
5154
|
+
function td({ "aria-describedby": e, className: t, disabled: n = !1, id: r, onAction: i, presentation: a = "data", ref: o, textValue: s, tone: c = "default", ...l }) {
|
|
5155
|
+
let u = F(o), d = _((t) => {
|
|
5121
5156
|
u(t), t && (e ? t.setAttribute("aria-describedby", e) : t.removeAttribute("aria-describedby"));
|
|
5122
5157
|
}, [e, u]);
|
|
5123
|
-
return h(
|
|
5158
|
+
return h(Rt, {
|
|
5124
5159
|
...l,
|
|
5125
|
-
className:
|
|
5160
|
+
className: Ru({
|
|
5126
5161
|
actionable: i !== void 0,
|
|
5127
5162
|
class: t,
|
|
5128
5163
|
presentation: a,
|
|
@@ -5137,13 +5172,13 @@ function Ju({ "aria-describedby": e, className: t, disabled: n = !1, id: r, onAc
|
|
|
5137
5172
|
textValue: s
|
|
5138
5173
|
});
|
|
5139
5174
|
}
|
|
5140
|
-
function
|
|
5141
|
-
let c =
|
|
5142
|
-
c(e),
|
|
5175
|
+
function nd({ align: e = "start", className: t, column: n, colSpan: r, presentation: i = "data", ref: a, textValue: o, ...s }) {
|
|
5176
|
+
let c = F(a), l = Vu(r), u = l === void 0 || l <= 1 ? void 0 : { gridColumn: `span ${l} / span ${l}` }, d = _((e) => {
|
|
5177
|
+
c(e), Gu(e?.closest("[data-breeze-table]") ?? null);
|
|
5143
5178
|
}, [c]);
|
|
5144
|
-
return h(
|
|
5179
|
+
return h(It, {
|
|
5145
5180
|
...s,
|
|
5146
|
-
className:
|
|
5181
|
+
className: zu({
|
|
5147
5182
|
align: e,
|
|
5148
5183
|
class: t,
|
|
5149
5184
|
presentation: i
|
|
@@ -5155,18 +5190,18 @@ function Yu({ align: e = "start", className: t, column: n, colSpan: r, presentat
|
|
|
5155
5190
|
textValue: o
|
|
5156
5191
|
});
|
|
5157
5192
|
}
|
|
5158
|
-
function
|
|
5159
|
-
return h(
|
|
5193
|
+
function rd({ position: e = "overlay", ...n }) {
|
|
5194
|
+
return h(nd, {
|
|
5160
5195
|
...n,
|
|
5161
|
-
children: /* @__PURE__ */
|
|
5196
|
+
children: /* @__PURE__ */ N(t, {
|
|
5162
5197
|
className: "!block",
|
|
5163
5198
|
size: 16
|
|
5164
5199
|
}),
|
|
5165
5200
|
presentation: e === "overlay" ? "disclosure" : "data"
|
|
5166
5201
|
});
|
|
5167
5202
|
}
|
|
5168
|
-
function
|
|
5169
|
-
let o =
|
|
5203
|
+
function id({ className: e, loading: t = !1, offset: n = 1, onLoadMore: r, ref: i, ...a }) {
|
|
5204
|
+
let o = F(i), s = Pa({
|
|
5170
5205
|
loading: t,
|
|
5171
5206
|
onLoadMore: r
|
|
5172
5207
|
}), c = C(null), l = _((e) => {
|
|
@@ -5174,44 +5209,44 @@ function Zu({ className: e, loading: t = !1, offset: n = 1, onLoadMore: r, ref:
|
|
|
5174
5209
|
}, [o]);
|
|
5175
5210
|
return x(() => {
|
|
5176
5211
|
c.current?.removeAttribute("aria-level");
|
|
5177
|
-
}), h(
|
|
5212
|
+
}), h(Ut, {
|
|
5178
5213
|
...a,
|
|
5179
|
-
className:
|
|
5214
|
+
className: Lu({ class: e }),
|
|
5180
5215
|
isLoading: t,
|
|
5181
5216
|
onLoadMore: s,
|
|
5182
5217
|
ref: l,
|
|
5183
5218
|
scrollOffset: n
|
|
5184
5219
|
});
|
|
5185
5220
|
}
|
|
5186
|
-
var
|
|
5187
|
-
Body:
|
|
5188
|
-
Cell:
|
|
5189
|
-
Column:
|
|
5190
|
-
Disclosure:
|
|
5191
|
-
Footer:
|
|
5192
|
-
Header:
|
|
5193
|
-
LoadMore:
|
|
5194
|
-
Root:
|
|
5195
|
-
Row:
|
|
5196
|
-
},
|
|
5221
|
+
var ad = {
|
|
5222
|
+
Body: $u,
|
|
5223
|
+
Cell: nd,
|
|
5224
|
+
Column: Xu,
|
|
5225
|
+
Disclosure: rd,
|
|
5226
|
+
Footer: ed,
|
|
5227
|
+
Header: Qu,
|
|
5228
|
+
LoadMore: id,
|
|
5229
|
+
Root: Ju,
|
|
5230
|
+
Row: td
|
|
5231
|
+
}, od = j({
|
|
5197
5232
|
base: "flex gap-4",
|
|
5198
5233
|
defaultVariants: { orientation: "horizontal" },
|
|
5199
5234
|
variants: { orientation: {
|
|
5200
5235
|
horizontal: "flex-col",
|
|
5201
5236
|
vertical: "flex-row items-start"
|
|
5202
5237
|
} }
|
|
5203
|
-
}),
|
|
5238
|
+
}), sd = j({
|
|
5204
5239
|
base: "flex gap-1 border-[var(--breeze-border)]",
|
|
5205
5240
|
defaultVariants: { orientation: "horizontal" },
|
|
5206
5241
|
variants: { orientation: {
|
|
5207
5242
|
horizontal: "flex-row border-b",
|
|
5208
5243
|
vertical: "flex-col border-e"
|
|
5209
5244
|
} }
|
|
5210
|
-
}),
|
|
5211
|
-
function
|
|
5212
|
-
return
|
|
5245
|
+
}), cd = j({ base: "min-h-10 cursor-default px-3 py-2 font-semibold text-[var(--breeze-ink-muted)] outline-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-45 data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)] data-[selected]:text-[var(--breeze-primary)]" }), ld = j({ base: "min-w-0 outline-none data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)]" });
|
|
5246
|
+
function ud({ className: e, defaultValue: t, disabled: n = !1, onChange: r, orientation: i = "horizontal", readOnly: a, ref: o, value: s, ...c }) {
|
|
5247
|
+
return I(), h(Jt, {
|
|
5213
5248
|
...c,
|
|
5214
|
-
className:
|
|
5249
|
+
className: od({
|
|
5215
5250
|
class: e,
|
|
5216
5251
|
orientation: i
|
|
5217
5252
|
}),
|
|
@@ -5219,57 +5254,57 @@ function rd({ className: e, defaultValue: t, disabled: n = !1, onChange: r, orie
|
|
|
5219
5254
|
isDisabled: n,
|
|
5220
5255
|
onSelectionChange: r,
|
|
5221
5256
|
orientation: i,
|
|
5222
|
-
ref:
|
|
5257
|
+
ref: F(o),
|
|
5223
5258
|
selectedKey: s
|
|
5224
5259
|
});
|
|
5225
5260
|
}
|
|
5226
|
-
function
|
|
5227
|
-
return h(
|
|
5261
|
+
function dd({ className: e, ref: t, ...n }) {
|
|
5262
|
+
return h(Gt, {
|
|
5228
5263
|
...n,
|
|
5229
|
-
className: ({ orientation: t }) =>
|
|
5264
|
+
className: ({ orientation: t }) => sd({
|
|
5230
5265
|
class: e,
|
|
5231
5266
|
orientation: t
|
|
5232
5267
|
}),
|
|
5233
|
-
ref:
|
|
5268
|
+
ref: F(t)
|
|
5234
5269
|
});
|
|
5235
5270
|
}
|
|
5236
|
-
function
|
|
5237
|
-
return h(
|
|
5271
|
+
function fd({ className: e, disabled: t = !1, id: n, ref: r, ...i }) {
|
|
5272
|
+
return h(Wt, {
|
|
5238
5273
|
...i,
|
|
5239
|
-
className:
|
|
5274
|
+
className: cd({ class: e }),
|
|
5240
5275
|
id: n,
|
|
5241
5276
|
isDisabled: t,
|
|
5242
|
-
ref:
|
|
5277
|
+
ref: F(r)
|
|
5243
5278
|
});
|
|
5244
5279
|
}
|
|
5245
|
-
function
|
|
5246
|
-
return h(
|
|
5280
|
+
function pd({ className: e, ref: t, ...n }) {
|
|
5281
|
+
return h(qt, {
|
|
5247
5282
|
...n,
|
|
5248
5283
|
className: e,
|
|
5249
|
-
ref:
|
|
5284
|
+
ref: F(t)
|
|
5250
5285
|
});
|
|
5251
5286
|
}
|
|
5252
|
-
function
|
|
5253
|
-
return h(
|
|
5287
|
+
function md({ className: e, forceMount: t = !1, id: n, ref: r, ...i }) {
|
|
5288
|
+
return h(Kt, {
|
|
5254
5289
|
...i,
|
|
5255
|
-
className:
|
|
5290
|
+
className: ld({ class: e }),
|
|
5256
5291
|
id: n,
|
|
5257
|
-
ref:
|
|
5292
|
+
ref: F(r),
|
|
5258
5293
|
shouldForceMount: t
|
|
5259
5294
|
});
|
|
5260
5295
|
}
|
|
5261
|
-
var
|
|
5262
|
-
List:
|
|
5263
|
-
Panel:
|
|
5264
|
-
Panels:
|
|
5265
|
-
Root:
|
|
5266
|
-
Tab:
|
|
5267
|
-
},
|
|
5268
|
-
function
|
|
5269
|
-
let o =
|
|
5270
|
-
return h(
|
|
5296
|
+
var hd = {
|
|
5297
|
+
List: dd,
|
|
5298
|
+
Panel: md,
|
|
5299
|
+
Panels: pd,
|
|
5300
|
+
Root: ud,
|
|
5301
|
+
Tab: fd
|
|
5302
|
+
}, gd = j({ base: "inline-flex min-h-8 items-center border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface-subtle)] px-3 text-sm outline-none data-[focused]:outline-2 data-[selected]:border-[var(--breeze-primary)] data-[selected]:bg-[var(--breeze-primary-soft)] data-[disabled]:opacity-45" });
|
|
5303
|
+
function _d({ className: e, disabled: t = !1, id: n, onAction: r, ref: i, ...a }) {
|
|
5304
|
+
let o = F(i);
|
|
5305
|
+
return h(Yt, {
|
|
5271
5306
|
...a,
|
|
5272
|
-
className:
|
|
5307
|
+
className: gd({ class: e }),
|
|
5273
5308
|
id: n,
|
|
5274
5309
|
isDisabled: t,
|
|
5275
5310
|
onAction: r ? () => r(n) : void 0,
|
|
@@ -5279,40 +5314,40 @@ function ud({ className: e, disabled: t = !1, id: n, onAction: r, ref: i, ...a }
|
|
|
5279
5314
|
}
|
|
5280
5315
|
//#endregion
|
|
5281
5316
|
//#region src/primitives/TagGroup/TagGroup.tsx
|
|
5282
|
-
var
|
|
5283
|
-
function
|
|
5284
|
-
|
|
5285
|
-
let u =
|
|
5286
|
-
return h(
|
|
5317
|
+
var vd = j({ base: "flex min-w-0 flex-col gap-2" }), yd = j({ base: "flex flex-wrap gap-2 outline-none" }), bd = (e) => e === "all" ? "all" : [...e];
|
|
5318
|
+
function xd({ children: e, className: t, defaultSelection: n, disabledKeys: r, onRemove: i, onSelectionChange: a, readOnly: o = !1, ref: s, selection: c, ...l }) {
|
|
5319
|
+
I();
|
|
5320
|
+
let u = F(s);
|
|
5321
|
+
return h(Xt, {
|
|
5287
5322
|
...l,
|
|
5288
5323
|
children: e,
|
|
5289
|
-
className:
|
|
5324
|
+
className: vd({ class: t }),
|
|
5290
5325
|
defaultSelectedKeys: n,
|
|
5291
5326
|
disabledKeys: r,
|
|
5292
5327
|
onRemove: o || !i ? void 0 : (e) => i([...e]),
|
|
5293
|
-
onSelectionChange: o ? void 0 : (e) => a?.(
|
|
5328
|
+
onSelectionChange: o ? void 0 : (e) => a?.(bd(e)),
|
|
5294
5329
|
ref: u,
|
|
5295
5330
|
selectedKeys: c,
|
|
5296
5331
|
selectionMode: c !== void 0 || n !== void 0 || a !== void 0 ? "multiple" : "none"
|
|
5297
5332
|
});
|
|
5298
5333
|
}
|
|
5299
|
-
function
|
|
5300
|
-
let o =
|
|
5301
|
-
return h(
|
|
5334
|
+
function Sd({ children: e, className: t, emptyContent: n, items: r, ref: i, ...a }) {
|
|
5335
|
+
let o = F(i), s = G(n);
|
|
5336
|
+
return h(Zt, {
|
|
5302
5337
|
...a,
|
|
5303
5338
|
children: e,
|
|
5304
|
-
className:
|
|
5339
|
+
className: yd({ class: t }),
|
|
5305
5340
|
items: r,
|
|
5306
5341
|
ref: o,
|
|
5307
5342
|
renderEmptyState: () => s
|
|
5308
5343
|
});
|
|
5309
5344
|
}
|
|
5310
|
-
var
|
|
5345
|
+
var Cd = {
|
|
5311
5346
|
Description: X.Description,
|
|
5312
5347
|
Label: X.Label,
|
|
5313
|
-
List:
|
|
5314
|
-
Root:
|
|
5315
|
-
},
|
|
5348
|
+
List: Sd,
|
|
5349
|
+
Root: xd
|
|
5350
|
+
}, wd = j({
|
|
5316
5351
|
base: "block w-full resize-y border border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)] text-[var(--breeze-ink)] transition-colors duration-[var(--breeze-duration-fast)] placeholder:text-[var(--breeze-ink-muted)] disabled:cursor-not-allowed disabled:bg-[var(--breeze-surface-subtle)] disabled:opacity-70 aria-invalid:border-[var(--breeze-danger)]",
|
|
5317
5352
|
defaultVariants: { size: "md" },
|
|
5318
5353
|
variants: { size: {
|
|
@@ -5321,36 +5356,36 @@ var gd = {
|
|
|
5321
5356
|
sm: "min-h-20 px-2.5 py-1.5 text-xs"
|
|
5322
5357
|
} }
|
|
5323
5358
|
});
|
|
5324
|
-
function
|
|
5325
|
-
let i =
|
|
5326
|
-
return h(
|
|
5359
|
+
function Td({ className: e, ref: t, size: n, ...r }) {
|
|
5360
|
+
let i = F(t);
|
|
5361
|
+
return h(he, {
|
|
5327
5362
|
...r,
|
|
5328
|
-
className:
|
|
5363
|
+
className: wd({
|
|
5329
5364
|
class: e,
|
|
5330
5365
|
size: n
|
|
5331
5366
|
}),
|
|
5332
5367
|
ref: i
|
|
5333
5368
|
});
|
|
5334
5369
|
}
|
|
5335
|
-
var
|
|
5336
|
-
Control:
|
|
5370
|
+
var Ed = {
|
|
5371
|
+
Control: Td,
|
|
5337
5372
|
Description: X.Description,
|
|
5338
5373
|
Error: X.Error,
|
|
5339
5374
|
Label: X.Label,
|
|
5340
5375
|
Root: X.Root
|
|
5341
|
-
},
|
|
5342
|
-
function
|
|
5343
|
-
|
|
5344
|
-
let _ =
|
|
5376
|
+
}, Dd = j({ base: "flex min-w-0 flex-col gap-1.5" });
|
|
5377
|
+
function Od({ children: e, className: t, defaultValue: n, disabled: r = !1, form: i, inputRef: a, invalid: o = !1, maxValue: s, minValue: c, name: l, onChange: u, readOnly: d = !1, ref: f, required: p = !1, value: m, ...g }) {
|
|
5378
|
+
I();
|
|
5379
|
+
let _ = F(f), v = F(a), y = [
|
|
5345
5380
|
m,
|
|
5346
5381
|
n,
|
|
5347
5382
|
c,
|
|
5348
5383
|
s
|
|
5349
5384
|
].some((e) => e?.split(":").length === 3);
|
|
5350
|
-
return h(
|
|
5385
|
+
return h(lt, {
|
|
5351
5386
|
...g,
|
|
5352
5387
|
children: e,
|
|
5353
|
-
className:
|
|
5388
|
+
className: Dd({ class: t }),
|
|
5354
5389
|
defaultValue: Ri(n ?? null) ?? void 0,
|
|
5355
5390
|
form: i,
|
|
5356
5391
|
granularity: y ? "second" : "minute",
|
|
@@ -5367,13 +5402,13 @@ function xd({ children: e, className: t, defaultValue: n, disabled: r = !1, form
|
|
|
5367
5402
|
value: m === void 0 ? void 0 : Ri(m)
|
|
5368
5403
|
});
|
|
5369
5404
|
}
|
|
5370
|
-
var
|
|
5405
|
+
var kd = {
|
|
5371
5406
|
Description: X.Description,
|
|
5372
5407
|
Error: X.Error,
|
|
5373
5408
|
Input: $,
|
|
5374
5409
|
Label: X.Label,
|
|
5375
|
-
Root:
|
|
5376
|
-
},
|
|
5410
|
+
Root: Od
|
|
5411
|
+
}, Ad = 5e3, jd = j({
|
|
5377
5412
|
base: "grid min-w-72 max-w-md grid-cols-[minmax(0,1fr)_auto] gap-x-3 gap-y-2 border border-s-4 px-4 py-3 text-sm shadow-lg outline-none forced-colors:border-[CanvasText] data-[focus-visible]:ring-2 data-[focus-visible]:ring-[var(--breeze-focus)]",
|
|
5378
5413
|
defaultVariants: { variant: "info" },
|
|
5379
5414
|
variants: { variant: {
|
|
@@ -5386,26 +5421,26 @@ var Sd = {
|
|
|
5386
5421
|
success: "border-[var(--breeze-success)] bg-[var(--breeze-success-soft)] text-[var(--breeze-ink)]",
|
|
5387
5422
|
warning: "border-[var(--breeze-warning)] bg-[var(--breeze-warning-soft)] text-[var(--breeze-ink)]"
|
|
5388
5423
|
} }
|
|
5389
|
-
}),
|
|
5390
|
-
function
|
|
5391
|
-
return h(
|
|
5392
|
-
className:
|
|
5424
|
+
}), Md = j({ base: "fixed inset-block-start-4 inset-inline-end-4 z-50 grid max-h-[calc(100dvh-2rem)] gap-3 overflow-auto outline-none" }), Nd = j({ base: "contents" }), Pd = j({ base: "grid min-w-0 gap-1" }), Fd = j({ base: "font-semibold" }), Id = j({ base: "text-current/80" }), Ld = j({ base: "inline-flex min-h-11 items-center justify-self-start font-semibold underline underline-offset-2 outline-none hover:no-underline focus-visible:ring-2 focus-visible:ring-current" }), Rd = j({ base: "col-start-2 row-start-1 grid size-11 place-items-center self-start rounded-sm text-xl leading-none outline-none hover:bg-black/10 focus-visible:ring-2 focus-visible:ring-current forced-colors:border forced-colors:border-[ButtonText]" }), zd = m(null);
|
|
5425
|
+
function Bd({ action: e, closeLabel: t, description: n, onAction: r, onDismiss: i, title: a }) {
|
|
5426
|
+
return h(tn, { className: Nd() }, h("div", { className: Pd() }, h($t, {
|
|
5427
|
+
className: Fd(),
|
|
5393
5428
|
slot: "title"
|
|
5394
|
-
}, a), n === void 0 ? null : h(
|
|
5395
|
-
className:
|
|
5429
|
+
}, a), n === void 0 ? null : h($t, {
|
|
5430
|
+
className: Id(),
|
|
5396
5431
|
slot: "description"
|
|
5397
|
-
}, n), e === void 0 ? null : h(
|
|
5398
|
-
className:
|
|
5432
|
+
}, n), e === void 0 ? null : h(Qt, {
|
|
5433
|
+
className: Ld(),
|
|
5399
5434
|
onPress: r
|
|
5400
|
-
}, e.label)), h(
|
|
5435
|
+
}, e.label)), h(Qt, {
|
|
5401
5436
|
"aria-label": t,
|
|
5402
|
-
className:
|
|
5437
|
+
className: Rd(),
|
|
5403
5438
|
onPress: i,
|
|
5404
5439
|
slot: "close"
|
|
5405
5440
|
}, "×"));
|
|
5406
5441
|
}
|
|
5407
|
-
function
|
|
5408
|
-
let { messages: l } =
|
|
5442
|
+
function Vd({ action: e, className: t, closeLabel: n, description: r, onDismiss: i, ref: a, title: o, variant: s = "info", ...c }) {
|
|
5443
|
+
let { messages: l } = I(), u = b(), d = b(), f = e === void 0 ? void 0 : () => {
|
|
5409
5444
|
e.onAction(), i();
|
|
5410
5445
|
};
|
|
5411
5446
|
return h("div", {
|
|
@@ -5415,38 +5450,38 @@ function Pd({ action: e, className: t, closeLabel: n, description: r, onDismiss:
|
|
|
5415
5450
|
"aria-labelledby": u,
|
|
5416
5451
|
"aria-live": "polite",
|
|
5417
5452
|
"aria-modal": "false",
|
|
5418
|
-
className:
|
|
5453
|
+
className: jd({
|
|
5419
5454
|
class: t,
|
|
5420
5455
|
variant: s
|
|
5421
5456
|
}),
|
|
5422
5457
|
"data-variant": s,
|
|
5423
|
-
ref:
|
|
5458
|
+
ref: F(a),
|
|
5424
5459
|
role: "alertdialog",
|
|
5425
5460
|
tabIndex: 0
|
|
5426
|
-
}, h("div", { className:
|
|
5427
|
-
className:
|
|
5461
|
+
}, h("div", { className: Nd() }, h("div", { className: Pd() }, h("div", {
|
|
5462
|
+
className: Fd(),
|
|
5428
5463
|
id: u
|
|
5429
5464
|
}, o), r === void 0 ? null : h("div", {
|
|
5430
|
-
className:
|
|
5465
|
+
className: Id(),
|
|
5431
5466
|
id: d
|
|
5432
|
-
}, r), e === void 0 ? null : h(
|
|
5433
|
-
className:
|
|
5467
|
+
}, r), e === void 0 ? null : h(Qt, {
|
|
5468
|
+
className: Ld(),
|
|
5434
5469
|
onPress: f
|
|
5435
|
-
}, e.label)), h(
|
|
5470
|
+
}, e.label)), h(Qt, {
|
|
5436
5471
|
"aria-label": n ?? l.close,
|
|
5437
|
-
className:
|
|
5472
|
+
className: Rd(),
|
|
5438
5473
|
onPress: i
|
|
5439
5474
|
}, "×")));
|
|
5440
5475
|
}
|
|
5441
|
-
function
|
|
5442
|
-
let i = v(
|
|
5476
|
+
function Hd({ className: e, label: t, ref: n, ...r }) {
|
|
5477
|
+
let i = v(zd), a = F(n);
|
|
5443
5478
|
if (i === null) throw Error("ToastRegion must be rendered within BreezeProvider.");
|
|
5444
5479
|
let o = ({ toast: e }) => {
|
|
5445
5480
|
let { action: t, description: n, title: r, variant: a } = e.content, o = t === void 0 ? void 0 : () => {
|
|
5446
5481
|
t.onAction(), i.controller.dismiss(e.key);
|
|
5447
5482
|
};
|
|
5448
|
-
return h(
|
|
5449
|
-
children: h(
|
|
5483
|
+
return h(en, {
|
|
5484
|
+
children: h(Bd, {
|
|
5450
5485
|
action: t,
|
|
5451
5486
|
closeLabel: i.closeLabel,
|
|
5452
5487
|
description: n,
|
|
@@ -5456,30 +5491,30 @@ function Fd({ className: e, label: t, ref: n, ...r }) {
|
|
|
5456
5491
|
},
|
|
5457
5492
|
title: r
|
|
5458
5493
|
}),
|
|
5459
|
-
className:
|
|
5494
|
+
className: jd({ variant: a }),
|
|
5460
5495
|
"data-variant": a,
|
|
5461
5496
|
toast: e
|
|
5462
5497
|
});
|
|
5463
5498
|
};
|
|
5464
|
-
return h(
|
|
5499
|
+
return h(rn, {
|
|
5465
5500
|
...r,
|
|
5466
5501
|
"aria-label": t ?? i.regionLabel,
|
|
5467
5502
|
children: o,
|
|
5468
|
-
className:
|
|
5503
|
+
className: Md({ class: e }),
|
|
5469
5504
|
queue: i.queue,
|
|
5470
5505
|
ref: a
|
|
5471
5506
|
});
|
|
5472
5507
|
}
|
|
5473
|
-
function
|
|
5508
|
+
function Ud(e) {
|
|
5474
5509
|
if (e !== null && (!Number.isFinite(e) || e < 0)) throw RangeError("Toast lifetime must be null or a finite non-negative number of milliseconds.");
|
|
5475
5510
|
}
|
|
5476
|
-
function
|
|
5477
|
-
let i = S(() => new
|
|
5511
|
+
function Wd({ children: e, closeLabel: t, limit: n, regionLabel: r }) {
|
|
5512
|
+
let i = S(() => new nn({ maxVisibleToasts: n }), [n]), a = S(() => ({
|
|
5478
5513
|
dismiss: (e) => {
|
|
5479
5514
|
i.close(e);
|
|
5480
5515
|
},
|
|
5481
|
-
show: ({ action: e, description: t, lifetime: n =
|
|
5482
|
-
|
|
5516
|
+
show: ({ action: e, description: t, lifetime: n = Ad, onDismiss: r, title: a, variant: o = "info" }) => {
|
|
5517
|
+
Ud(n);
|
|
5483
5518
|
let s = i.add({
|
|
5484
5519
|
action: e,
|
|
5485
5520
|
description: t,
|
|
@@ -5504,16 +5539,16 @@ function Ld({ children: e, closeLabel: t, limit: n, regionLabel: r }) {
|
|
|
5504
5539
|
]);
|
|
5505
5540
|
return y(() => () => {
|
|
5506
5541
|
i.pauseAll(), i.clear();
|
|
5507
|
-
}, [i]), h(
|
|
5542
|
+
}, [i]), h(zd, { value: o }, e, h(Hd));
|
|
5508
5543
|
}
|
|
5509
|
-
function
|
|
5510
|
-
let e = v(
|
|
5544
|
+
function Gd() {
|
|
5545
|
+
let e = v(zd);
|
|
5511
5546
|
if (e === null) throw Error("useToast must be called within BreezeProvider.");
|
|
5512
5547
|
return e.controller;
|
|
5513
5548
|
}
|
|
5514
5549
|
//#endregion
|
|
5515
5550
|
//#region src/primitives/Toolbar/Toolbar.tsx
|
|
5516
|
-
var
|
|
5551
|
+
var Kd = j({
|
|
5517
5552
|
base: "flex gap-2",
|
|
5518
5553
|
defaultVariants: { orientation: "horizontal" },
|
|
5519
5554
|
variants: { orientation: {
|
|
@@ -5521,12 +5556,12 @@ var zd = A({
|
|
|
5521
5556
|
vertical: "flex-col items-stretch"
|
|
5522
5557
|
} }
|
|
5523
5558
|
});
|
|
5524
|
-
function
|
|
5525
|
-
|
|
5526
|
-
let a =
|
|
5527
|
-
return h(
|
|
5559
|
+
function qd({ children: e, className: t, orientation: n, ref: r, ...i }) {
|
|
5560
|
+
I();
|
|
5561
|
+
let a = F(r);
|
|
5562
|
+
return h(an, {
|
|
5528
5563
|
...i,
|
|
5529
|
-
className:
|
|
5564
|
+
className: Kd({
|
|
5530
5565
|
class: t,
|
|
5531
5566
|
orientation: n
|
|
5532
5567
|
}),
|
|
@@ -5536,7 +5571,7 @@ function Bd({ children: e, className: t, orientation: n, ref: r, ...i }) {
|
|
|
5536
5571
|
}
|
|
5537
5572
|
//#endregion
|
|
5538
5573
|
//#region src/primitives/Tooltip/Tooltip.tsx
|
|
5539
|
-
var
|
|
5574
|
+
var Jd = j({
|
|
5540
5575
|
base: "z-50 max-w-64 border border-[var(--breeze-border-strong)] bg-[var(--breeze-ink)] px-2.5 py-1.5 text-sm text-[var(--breeze-ink-inverse)] shadow-lg data-[entering]:animate-in data-[exiting]:animate-out motion-reduce:transition-none forced-colors:border-[CanvasText] forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]",
|
|
5541
5576
|
defaultVariants: { variant: "secondary" },
|
|
5542
5577
|
variants: { variant: {
|
|
@@ -5544,7 +5579,7 @@ var Vd = A({
|
|
|
5544
5579
|
primary: "border-[var(--breeze-primary)] bg-[var(--breeze-primary)] text-[var(--breeze-ink-inverse)]",
|
|
5545
5580
|
secondary: "border-[var(--breeze-border-strong)] bg-[var(--breeze-ink)] text-[var(--breeze-ink-inverse)]"
|
|
5546
5581
|
} }
|
|
5547
|
-
}),
|
|
5582
|
+
}), Yd = j({
|
|
5548
5583
|
base: "inline-flex size-5 shrink-0 cursor-help items-center justify-center outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--breeze-focus)]",
|
|
5549
5584
|
defaultVariants: { variant: "secondary" },
|
|
5550
5585
|
variants: { variant: {
|
|
@@ -5553,8 +5588,8 @@ var Vd = A({
|
|
|
5553
5588
|
secondary: "text-[var(--breeze-ink-muted)]"
|
|
5554
5589
|
} }
|
|
5555
5590
|
});
|
|
5556
|
-
function
|
|
5557
|
-
return
|
|
5591
|
+
function Xd({ closeDelay: e = 0, defaultOpen: t, delay: n = 700, onOpenChange: r, open: i, readOnly: a, ...o }) {
|
|
5592
|
+
return I(), h(cn, {
|
|
5558
5593
|
...o,
|
|
5559
5594
|
closeDelay: e,
|
|
5560
5595
|
defaultOpen: t,
|
|
@@ -5563,15 +5598,15 @@ function Ud({ closeDelay: e = 0, defaultOpen: t, delay: n = 700, onOpenChange: r
|
|
|
5563
5598
|
onOpenChange: r
|
|
5564
5599
|
});
|
|
5565
5600
|
}
|
|
5566
|
-
var
|
|
5567
|
-
function
|
|
5568
|
-
let o =
|
|
5569
|
-
return /* @__PURE__ */
|
|
5601
|
+
var Zd = vn;
|
|
5602
|
+
function Qd({ "aria-label": e, children: t, className: n, ref: r, variant: i = "secondary", ...a }) {
|
|
5603
|
+
let o = F(r), s = b();
|
|
5604
|
+
return /* @__PURE__ */ N(on, {
|
|
5570
5605
|
ref: o,
|
|
5571
5606
|
children: h("span", {
|
|
5572
5607
|
...a,
|
|
5573
5608
|
"aria-labelledby": s,
|
|
5574
|
-
className:
|
|
5609
|
+
className: Yd({
|
|
5575
5610
|
class: n,
|
|
5576
5611
|
variant: i
|
|
5577
5612
|
}),
|
|
@@ -5580,24 +5615,24 @@ function Gd({ "aria-label": e, children: t, className: n, ref: r, variant: i = "
|
|
|
5580
5615
|
}, h(au, { id: s }, e), t)
|
|
5581
5616
|
});
|
|
5582
5617
|
}
|
|
5583
|
-
function
|
|
5584
|
-
return
|
|
5618
|
+
function $d({ className: e, offset: t = 6, placement: n = "top", ref: r, variant: i = "secondary", ...a }) {
|
|
5619
|
+
return I(), h(sn, {
|
|
5585
5620
|
...a,
|
|
5586
|
-
className:
|
|
5621
|
+
className: Jd({
|
|
5587
5622
|
class: e,
|
|
5588
5623
|
variant: i
|
|
5589
5624
|
}),
|
|
5590
5625
|
offset: t,
|
|
5591
5626
|
placement: n,
|
|
5592
|
-
ref:
|
|
5627
|
+
ref: F(r)
|
|
5593
5628
|
});
|
|
5594
5629
|
}
|
|
5595
|
-
var
|
|
5596
|
-
Content:
|
|
5597
|
-
IconTrigger:
|
|
5598
|
-
Root:
|
|
5599
|
-
Trigger:
|
|
5600
|
-
},
|
|
5630
|
+
var ef = {
|
|
5631
|
+
Content: $d,
|
|
5632
|
+
IconTrigger: Qd,
|
|
5633
|
+
Root: Xd,
|
|
5634
|
+
Trigger: Zd
|
|
5635
|
+
}, tf = j({
|
|
5601
5636
|
base: "m-0 min-w-0",
|
|
5602
5637
|
compoundVariants: [{
|
|
5603
5638
|
class: "mb-4",
|
|
@@ -5677,7 +5712,7 @@ var qd = {
|
|
|
5677
5712
|
semibold: "font-semibold"
|
|
5678
5713
|
}
|
|
5679
5714
|
}
|
|
5680
|
-
}),
|
|
5715
|
+
}), nf = {
|
|
5681
5716
|
dt: "label",
|
|
5682
5717
|
h1: "h1",
|
|
5683
5718
|
h2: "h2",
|
|
@@ -5686,22 +5721,22 @@ var qd = {
|
|
|
5686
5721
|
h5: "h5",
|
|
5687
5722
|
h6: "h6",
|
|
5688
5723
|
strong: "label"
|
|
5689
|
-
},
|
|
5724
|
+
}, rf = /* @__PURE__ */ new Set([
|
|
5690
5725
|
"em",
|
|
5691
5726
|
"small",
|
|
5692
5727
|
"span",
|
|
5693
5728
|
"strong"
|
|
5694
5729
|
]);
|
|
5695
|
-
function
|
|
5696
|
-
|
|
5697
|
-
let f = a ??
|
|
5730
|
+
function af({ align: e, as: t = "p", className: n, colour: r, gutterBottom: i = !1, level: a, lineClamp: o, ref: s, tabularNumbers: c = !1, truncate: l = !1, weight: u, ...d }) {
|
|
5731
|
+
I();
|
|
5732
|
+
let f = a ?? nf[t] ?? "body", p = F(s);
|
|
5698
5733
|
return h(t, {
|
|
5699
5734
|
...d,
|
|
5700
|
-
className:
|
|
5735
|
+
className: tf({
|
|
5701
5736
|
align: e,
|
|
5702
5737
|
class: n,
|
|
5703
5738
|
colour: r,
|
|
5704
|
-
gutterBottom: i && !
|
|
5739
|
+
gutterBottom: i && !rf.has(t),
|
|
5705
5740
|
level: f,
|
|
5706
5741
|
lineClamp: o ?? "none",
|
|
5707
5742
|
tabularNumbers: c,
|
|
@@ -5713,7 +5748,7 @@ function Zd({ align: e, as: t = "p", className: n, colour: r, gutterBottom: i =
|
|
|
5713
5748
|
}
|
|
5714
5749
|
//#endregion
|
|
5715
5750
|
//#region src/provider/messages.ts
|
|
5716
|
-
var
|
|
5751
|
+
var of = {
|
|
5717
5752
|
clear: "Clear",
|
|
5718
5753
|
close: "Close",
|
|
5719
5754
|
fileCountRejection: "Only one file may be selected.",
|
|
@@ -5733,15 +5768,15 @@ var Qd = {
|
|
|
5733
5768
|
showPassword: "Show password",
|
|
5734
5769
|
unreadNotifications: "Unread notifications"
|
|
5735
5770
|
};
|
|
5736
|
-
function
|
|
5771
|
+
function sf(e = {}) {
|
|
5737
5772
|
return {
|
|
5738
|
-
...
|
|
5773
|
+
...of,
|
|
5739
5774
|
...e
|
|
5740
5775
|
};
|
|
5741
5776
|
}
|
|
5742
5777
|
//#endregion
|
|
5743
5778
|
//#region src/provider/BreezeProvider.tsx
|
|
5744
|
-
var
|
|
5779
|
+
var cf = /* @__PURE__ */ new Set([
|
|
5745
5780
|
"ar",
|
|
5746
5781
|
"ckb",
|
|
5747
5782
|
"dv",
|
|
@@ -5754,11 +5789,11 @@ var ef = /* @__PURE__ */ new Set([
|
|
|
5754
5789
|
"ur",
|
|
5755
5790
|
"yi"
|
|
5756
5791
|
]);
|
|
5757
|
-
function
|
|
5792
|
+
function lf(e) {
|
|
5758
5793
|
let { language: t } = new Intl.Locale(e);
|
|
5759
|
-
return
|
|
5794
|
+
return cf.has(t) ? "rtl" : "ltr";
|
|
5760
5795
|
}
|
|
5761
|
-
function
|
|
5796
|
+
function uf(e, t, n) {
|
|
5762
5797
|
let { dataset: r } = e;
|
|
5763
5798
|
if (n === void 0) {
|
|
5764
5799
|
delete r[t];
|
|
@@ -5766,18 +5801,18 @@ function nf(e, t, n) {
|
|
|
5766
5801
|
}
|
|
5767
5802
|
r[t] = n;
|
|
5768
5803
|
}
|
|
5769
|
-
function
|
|
5804
|
+
function df(e, t, n) {
|
|
5770
5805
|
if (n === null) {
|
|
5771
5806
|
e.removeAttribute(t);
|
|
5772
5807
|
return;
|
|
5773
5808
|
}
|
|
5774
5809
|
e.setAttribute(t, n);
|
|
5775
5810
|
}
|
|
5776
|
-
function
|
|
5811
|
+
function ff({ children: e, direction: t, locale: n, messages: r, portalContainer: i, router: a, timeZone: o, toastLimit: s = 3 }) {
|
|
5777
5812
|
if (!Number.isInteger(s) || s < 1) throw RangeError("BreezeProvider toastLimit must be a positive integer.");
|
|
5778
|
-
let [c, l] = w(null), u = t ??
|
|
5813
|
+
let [c, l] = w(null), u = t ?? lf(n), d = S(() => sf(r), [r]), f = i ?? c, p = C(f);
|
|
5779
5814
|
p.current = f;
|
|
5780
|
-
let m = _(() => p.current, []), h = i === void 0 && typeof document < "u" ?
|
|
5815
|
+
let m = _(() => p.current, []), h = i === void 0 && typeof document < "u" ? dn(/* @__PURE__ */ N("div", {
|
|
5781
5816
|
"data-breeze-portal-root": "",
|
|
5782
5817
|
"data-breeze-root": "",
|
|
5783
5818
|
dir: u,
|
|
@@ -5788,17 +5823,17 @@ function af({ children: e, direction: t, locale: n, messages: r, portalContainer
|
|
|
5788
5823
|
if (i == null) return;
|
|
5789
5824
|
let { dataset: e } = i, t = e.breezePortalRoot, r = e.breezeRoot, a = i.getAttribute("dir"), o = i.getAttribute("lang");
|
|
5790
5825
|
return e.breezePortalRoot = "", e.breezeRoot = "", i.setAttribute("dir", u), i.setAttribute("lang", n), () => {
|
|
5791
|
-
|
|
5826
|
+
uf(i, "breezePortalRoot", t), uf(i, "breezeRoot", r), df(i, "dir", a), df(i, "lang", o);
|
|
5792
5827
|
};
|
|
5793
5828
|
}, [
|
|
5794
5829
|
n,
|
|
5795
5830
|
u,
|
|
5796
5831
|
i
|
|
5797
|
-
]), /* @__PURE__ */
|
|
5832
|
+
]), /* @__PURE__ */ N(un, {
|
|
5798
5833
|
locale: n,
|
|
5799
|
-
children: /* @__PURE__ */
|
|
5834
|
+
children: /* @__PURE__ */ N(ln, {
|
|
5800
5835
|
getContainer: m,
|
|
5801
|
-
children: /* @__PURE__ */
|
|
5836
|
+
children: /* @__PURE__ */ N(fn, {
|
|
5802
5837
|
value: S(() => ({
|
|
5803
5838
|
direction: u,
|
|
5804
5839
|
locale: n,
|
|
@@ -5814,11 +5849,11 @@ function af({ children: e, direction: t, locale: n, messages: r, portalContainer
|
|
|
5814
5849
|
a,
|
|
5815
5850
|
o
|
|
5816
5851
|
]),
|
|
5817
|
-
children: /* @__PURE__ */
|
|
5852
|
+
children: /* @__PURE__ */ P(Wd, {
|
|
5818
5853
|
closeLabel: d.close,
|
|
5819
5854
|
limit: s,
|
|
5820
5855
|
regionLabel: d.notifications,
|
|
5821
|
-
children: [/* @__PURE__ */
|
|
5856
|
+
children: [/* @__PURE__ */ N("div", {
|
|
5822
5857
|
"data-breeze-root": "",
|
|
5823
5858
|
dir: u,
|
|
5824
5859
|
lang: n,
|
|
@@ -5830,6 +5865,6 @@ function af({ children: e, direction: t, locale: n, messages: r, portalContainer
|
|
|
5830
5865
|
});
|
|
5831
5866
|
}
|
|
5832
5867
|
//#endregion
|
|
5833
|
-
export { Ti as Accordion, Oi as Alert, W as AlertDialog, Bn as ApplicationShell, hi as Avatar, Ai as Badge, Fi as Breadcrumbs,
|
|
5868
|
+
export { Ti as Accordion, Oi as Alert, W as AlertDialog, Bn as ApplicationShell, hi as Avatar, Ai as Badge, Fi as Breadcrumbs, ff as BreezeProvider, vn as Button, Un as ButtonGroup, ia as Calendar, _a as Card, ya as Center, Da as Checkbox, Na as CheckboxGroup, So as ComboBox, Xn as ConfirmationDialog, Do as Container, ur as ContextSwitcher, Po as DateField, es as DatePicker, hs as DateRangePicker, ws as DateTimePicker, Ns as DescriptionList, Fs as Dialog, Rs as Disclosure, U as Drawer, J as DropZone, Ys as Fieldset, dr as FileAttachment, Tr as FileTrigger, Er as FileUpload, kr as FormActions, Mr as FormSection, pn as FormattedDateTime, mn as FormattedList, hn as FormattedNumber, Qs as Grid, uc as GridList, Rr as IconButton, Yn as IconTile, fc as Inline, Gr as InputGroup, Ln as Link, mc as LinkButton, yc as List, Za as ListBox, xc as Logo, K as Menu, Ec as Meter, Pr as MetricCard, jc as NavigationList, Fr as NavigationSection, Hc as NumberField, Ir as PageHeader, Br as Pagination, oi as PasswordField, Kc as Popover, Zc as ProgressBar, ul as RadioGroup, pl as RangeCalendar, gn as RelativeTime, El as SearchField, si as SectionHeader, di as SegmentedControl, Il as Select, Rl as Separator, Bl as Skeleton, zn as SkipLink, iu as Slider, su as Spinner, lu as Stack, fi as StatePanel, hu as Stepper, _u as Surface, Du as Switch, ad as Table, hd as Tabs, _d as Tag, Cd as TagGroup, Ed as TextArea, X as TextField, kd as TimeField, Vd as Toast, Hd as ToastRegion, ci as ToggleButton, ui as ToggleGroup, qd as Toolbar, ef as Tooltip, af as Typography, gi as UserMenu, au as VisuallyHidden, Gd as useToast };
|
|
5834
5869
|
|
|
5835
5870
|
//# sourceMappingURL=index.js.map
|