@motech-development/breeze-ui 3.1.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +238 -193
- package/lib/index.js.map +1 -1
- package/lib/patterns/ApplicationShell/ApplicationShell.d.ts +4 -2
- package/lib/patterns/ApplicationShell/ApplicationShell.d.ts.map +1 -1
- package/lib/patterns/ContextSwitcher/ContextSwitcher.d.ts.map +1 -1
- package/lib/primitives/Menu/Menu.d.ts.map +1 -1
- package/lib/primitives/Table/Table.d.ts +8 -4
- package/lib/primitives/Table/Table.d.ts.map +1 -1
- package/lib/primitives/Tooltip/Tooltip.d.ts +1 -1
- package/lib/primitives/Tooltip/Tooltip.d.ts.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +4 -1
package/lib/index.js
CHANGED
|
@@ -510,9 +510,18 @@ function zn({ children: e, className: t, ref: n, targetId: r, ...i }) {
|
|
|
510
510
|
}
|
|
511
511
|
//#endregion
|
|
512
512
|
//#region src/patterns/ApplicationShell/ApplicationShell.tsx
|
|
513
|
-
function Bn({ account: e, brand: t, children: n, className: r, compactBrand: i, compactNavigationOpen: o, context: s,
|
|
514
|
-
let { messages:
|
|
515
|
-
|
|
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 } = F(), x = C(null), S = C(l);
|
|
515
|
+
y(() => {
|
|
516
|
+
let e = S.current;
|
|
517
|
+
if (S.current = l, l === void 0 || l === e) return;
|
|
518
|
+
let t = window.requestAnimationFrame(() => {
|
|
519
|
+
x.current?.focus();
|
|
520
|
+
});
|
|
521
|
+
return () => window.cancelAnimationFrame(t);
|
|
522
|
+
}, [l]);
|
|
523
|
+
let w = /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(U.Trigger, {
|
|
524
|
+
"aria-label": p,
|
|
516
525
|
appearance: "ghost",
|
|
517
526
|
className: "size-11 border-0 p-0 text-[var(--breeze-ink-inverse)] data-[hovered]:bg-[var(--breeze-shell-soft)]",
|
|
518
527
|
variant: "light",
|
|
@@ -528,10 +537,10 @@ function Bn({ account: e, brand: t, children: n, className: r, compactBrand: i,
|
|
|
528
537
|
/* @__PURE__ */ M("div", { children: t }),
|
|
529
538
|
/* @__PURE__ */ M(U.Title, {
|
|
530
539
|
className: "sr-only",
|
|
531
|
-
children:
|
|
540
|
+
children: p
|
|
532
541
|
}),
|
|
533
542
|
/* @__PURE__ */ M(U.Close, {
|
|
534
|
-
"aria-label":
|
|
543
|
+
"aria-label": b.close,
|
|
535
544
|
appearance: "ghost",
|
|
536
545
|
className: "size-11 border-0 p-0 text-[var(--breeze-ink-inverse)] data-[hovered]:bg-[var(--breeze-shell-soft)]",
|
|
537
546
|
variant: "light",
|
|
@@ -541,34 +550,34 @@ function Bn({ account: e, brand: t, children: n, className: r, compactBrand: i,
|
|
|
541
550
|
}),
|
|
542
551
|
/* @__PURE__ */ M(U.Description, {
|
|
543
552
|
className: "sr-only",
|
|
544
|
-
children:
|
|
553
|
+
children: p
|
|
545
554
|
}),
|
|
546
555
|
/* @__PURE__ */ M("div", {
|
|
547
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",
|
|
548
|
-
children:
|
|
557
|
+
children: f
|
|
549
558
|
}),
|
|
550
559
|
/* @__PURE__ */ N("footer", {
|
|
551
560
|
className: "grid gap-2 border-t border-[var(--breeze-shell-soft)] p-3",
|
|
552
561
|
children: [s, e]
|
|
553
562
|
})
|
|
554
563
|
]
|
|
555
|
-
})] }),
|
|
556
|
-
defaultOpen:
|
|
557
|
-
onOpenChange:
|
|
558
|
-
children:
|
|
564
|
+
})] }), T = o === void 0 ? /* @__PURE__ */ M(U.Root, {
|
|
565
|
+
defaultOpen: u,
|
|
566
|
+
onOpenChange: m,
|
|
567
|
+
children: w
|
|
559
568
|
}) : /* @__PURE__ */ M(U.Root, {
|
|
560
|
-
onOpenChange:
|
|
569
|
+
onOpenChange: m,
|
|
561
570
|
open: o,
|
|
562
|
-
children:
|
|
571
|
+
children: w
|
|
563
572
|
});
|
|
564
573
|
return h("div", {
|
|
565
|
-
...
|
|
574
|
+
...v,
|
|
566
575
|
className: `min-h-dvh bg-[var(--breeze-canvas)] text-[var(--breeze-ink)] ${r ?? ""}`,
|
|
567
|
-
ref: P(
|
|
576
|
+
ref: P(g)
|
|
568
577
|
}, /* @__PURE__ */ N(j, { children: [
|
|
569
578
|
/* @__PURE__ */ M(zn, {
|
|
570
|
-
targetId:
|
|
571
|
-
children:
|
|
579
|
+
targetId: d,
|
|
580
|
+
children: _
|
|
572
581
|
}),
|
|
573
582
|
/* @__PURE__ */ N("aside", {
|
|
574
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",
|
|
@@ -579,7 +588,7 @@ function Bn({ account: e, brand: t, children: n, className: r, compactBrand: i,
|
|
|
579
588
|
}),
|
|
580
589
|
/* @__PURE__ */ M("div", {
|
|
581
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",
|
|
582
|
-
children:
|
|
591
|
+
children: f
|
|
583
592
|
}),
|
|
584
593
|
/* @__PURE__ */ N("footer", {
|
|
585
594
|
className: "grid gap-2 border-t border-[var(--breeze-shell-soft)] p-3",
|
|
@@ -590,7 +599,7 @@ function Bn({ account: e, brand: t, children: n, className: r, compactBrand: i,
|
|
|
590
599
|
/* @__PURE__ */ N("header", {
|
|
591
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",
|
|
592
601
|
children: [
|
|
593
|
-
|
|
602
|
+
T,
|
|
594
603
|
/* @__PURE__ */ M("div", {
|
|
595
604
|
className: "min-w-0 justify-self-center font-[family-name:var(--breeze-font-display)] text-xl font-semibold",
|
|
596
605
|
children: i ?? t
|
|
@@ -603,7 +612,8 @@ function Bn({ account: e, brand: t, children: n, className: r, compactBrand: i,
|
|
|
603
612
|
}),
|
|
604
613
|
/* @__PURE__ */ M("main", {
|
|
605
614
|
className: "min-h-dvh px-4 py-6 sm:px-8 sm:py-12 md:ms-64 lg:px-12",
|
|
606
|
-
id:
|
|
615
|
+
id: d,
|
|
616
|
+
ref: x,
|
|
607
617
|
tabIndex: -1,
|
|
608
618
|
children: n
|
|
609
619
|
})
|
|
@@ -820,7 +830,7 @@ function G(e) {
|
|
|
820
830
|
}
|
|
821
831
|
//#endregion
|
|
822
832
|
//#region src/primitives/Menu/Menu.tsx
|
|
823
|
-
var Zn = A({ base: "inline-flex min-h-11 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 = A({ 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 = A({ base: "max-h-80 overflow-y-auto outline-none" }), er = A({ 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)]" });
|
|
833
|
+
var Zn = A({ 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 = A({ 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 = A({ base: "max-h-80 overflow-y-auto outline-none" }), er = A({ 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)]" });
|
|
824
834
|
function tr(e) {
|
|
825
835
|
return e === "all" ? "all" : [...e];
|
|
826
836
|
}
|
|
@@ -836,12 +846,17 @@ function rr({ defaultOpen: e, onOpenChange: t, open: n, readOnly: r, ...i }) {
|
|
|
836
846
|
});
|
|
837
847
|
}
|
|
838
848
|
function ir({ className: e, disabled: t = !1, ref: n, ...r }) {
|
|
839
|
-
let i = v(se);
|
|
849
|
+
let i = v(se), a = C(!1);
|
|
840
850
|
return h(D, {
|
|
841
851
|
...r,
|
|
842
852
|
className: Zn({ class: e }),
|
|
843
853
|
isDisabled: t,
|
|
844
|
-
onPress:
|
|
854
|
+
onPress: () => {
|
|
855
|
+
a.current && i?.close();
|
|
856
|
+
},
|
|
857
|
+
onPressStart: () => {
|
|
858
|
+
a.current = i?.isOpen === !0;
|
|
859
|
+
},
|
|
845
860
|
ref: P(n)
|
|
846
861
|
});
|
|
847
862
|
}
|
|
@@ -917,7 +932,11 @@ function ur({ "aria-label": e, currentId: t, emptyIcon: n, emptyName: r, items:
|
|
|
917
932
|
return /* @__PURE__ */ N(K.Root, { children: [/* @__PURE__ */ N(K.Trigger, {
|
|
918
933
|
"aria-label": e,
|
|
919
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)]",
|
|
920
|
-
children: [
|
|
935
|
+
children: [/* @__PURE__ */ M("span", {
|
|
936
|
+
"aria-hidden": "true",
|
|
937
|
+
className: "empty:hidden",
|
|
938
|
+
children: l?.icon ?? n
|
|
939
|
+
}), /* @__PURE__ */ N("span", {
|
|
921
940
|
className: "grid min-w-0 flex-1 gap-0.5",
|
|
922
941
|
children: [c === void 0 ? null : /* @__PURE__ */ M("small", {
|
|
923
942
|
className: "text-base text-[var(--breeze-ink-inverse-muted)]",
|
|
@@ -948,7 +967,11 @@ function ur({ "aria-label": e, currentId: t, emptyIcon: n, emptyName: r, items:
|
|
|
948
967
|
textValue: e.name,
|
|
949
968
|
children: /* @__PURE__ */ N("span", {
|
|
950
969
|
className: "flex min-w-0 items-center gap-3",
|
|
951
|
-
children: [
|
|
970
|
+
children: [/* @__PURE__ */ M("span", {
|
|
971
|
+
"aria-hidden": "true",
|
|
972
|
+
className: "empty:hidden",
|
|
973
|
+
children: e.icon
|
|
974
|
+
}), /* @__PURE__ */ N("span", {
|
|
952
975
|
className: "grid min-w-0 gap-0.5",
|
|
953
976
|
children: [/* @__PURE__ */ M("strong", { children: e.name }), e.description === void 0 ? null : /* @__PURE__ */ M("small", { children: e.description })]
|
|
954
977
|
})]
|
|
@@ -4864,8 +4887,18 @@ var Du = {
|
|
|
4864
4887
|
Track: wu
|
|
4865
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 = A({
|
|
4866
4889
|
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
|
+
compoundVariants: [{
|
|
4891
|
+
class: "sm:[&>thead>tr]:grid-cols-[repeat(var(--breeze-table-column-count),minmax(0,1fr))] sm:[&>tbody>tr]:grid-cols-[repeat(var(--breeze-table-column-count),minmax(0,1fr))] sm:[&>tfoot>tr]:grid-cols-[repeat(var(--breeze-table-column-count),minmax(0,1fr))]",
|
|
4892
|
+
desktopColumns: "equal",
|
|
4893
|
+
layout: "responsiveGrid"
|
|
4894
|
+
}, {
|
|
4895
|
+
class: "sm:[&>thead>tr]:grid-cols-[2.25rem_minmax(0,1.3fr)_minmax(0,0.8fr)_minmax(0,1.2fr)_1.25rem] sm:[&>tbody>tr]:grid-cols-[2.25rem_minmax(0,1.3fr)_minmax(0,0.8fr)_minmax(0,1.2fr)_1.25rem] sm:[&>tfoot>tr]:grid-cols-[2.25rem_minmax(0,1.3fr)_minmax(0,0.8fr)_minmax(0,1.2fr)_1.25rem]",
|
|
4896
|
+
desktopColumns: "mediaDetailsAction",
|
|
4897
|
+
layout: "responsiveGrid"
|
|
4898
|
+
}],
|
|
4867
4899
|
defaultVariants: {
|
|
4868
4900
|
boundary: "none",
|
|
4901
|
+
desktopColumns: "equal",
|
|
4869
4902
|
layout: "responsive",
|
|
4870
4903
|
virtualized: !1
|
|
4871
4904
|
},
|
|
@@ -4874,8 +4907,12 @@ var Du = {
|
|
|
4874
4907
|
none: "",
|
|
4875
4908
|
strong: "min-w-0 border-b-2 border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)]"
|
|
4876
4909
|
},
|
|
4910
|
+
desktopColumns: {
|
|
4911
|
+
equal: "",
|
|
4912
|
+
mediaDetailsAction: ""
|
|
4913
|
+
},
|
|
4877
4914
|
layout: {
|
|
4878
|
-
grid: "!grid grid-cols-[repeat(var(--breeze-table-column-count),minmax(0,1fr))] [&>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]:grid-cols-subgrid [&>tbody>tr]:col-span-full [&>tbody>tr]:grid [&>tbody>tr]:grid-cols-subgrid [&>tfoot>tr]:col-span-full [&>tfoot>tr]:grid [&>tfoot>tr]:grid-cols-subgrid sm:[&>thead>tr>th]:block [&>tbody>tr>td]:block [&>tfoot>tr>td]:block 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",
|
|
4915
|
+
grid: "!grid grid-cols-[repeat(var(--breeze-table-column-count),minmax(0,1fr))] [&>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",
|
|
4879
4916
|
responsive: Ou,
|
|
4880
4917
|
responsiveGrid: `${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`
|
|
4881
4918
|
},
|
|
@@ -4948,10 +4985,13 @@ var Du = {
|
|
|
4948
4985
|
function Lu(e) {
|
|
4949
4986
|
return e === "all" ? "all" : [...e];
|
|
4950
4987
|
}
|
|
4951
|
-
function Ru(e
|
|
4988
|
+
function Ru(e) {
|
|
4989
|
+
if (e !== void 0) return Number.isInteger(e) ? Math.min(Math.max(e, 1), 1e3) : 1;
|
|
4990
|
+
}
|
|
4991
|
+
function zu(e, t) {
|
|
4952
4992
|
return e ? t ? "multiple" : "single" : "none";
|
|
4953
4993
|
}
|
|
4954
|
-
function
|
|
4994
|
+
function Bu(e) {
|
|
4955
4995
|
if (e === null) return;
|
|
4956
4996
|
let t = new Map([...e.querySelectorAll("[data-breeze-column]")].map((e) => {
|
|
4957
4997
|
let t = e.dataset.breezeCompactLabel === "false" ? void 0 : e.dataset.breezeCompactLabelText;
|
|
@@ -4965,53 +5005,54 @@ function zu(e) {
|
|
|
4965
5005
|
i !== void 0 && i.length > 0 ? n.label = i : delete n.label, n.breezeColumnWidth = r?.width ?? "auto";
|
|
4966
5006
|
});
|
|
4967
5007
|
}
|
|
4968
|
-
function
|
|
5008
|
+
function Vu({ 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 }) {
|
|
4969
5009
|
F();
|
|
4970
|
-
let
|
|
4971
|
-
|
|
4972
|
-
}, [
|
|
5010
|
+
let y = P(f), b = C(null), [S, T] = w(i), E = r !== void 0 || c || l !== void 0 || p !== void 0, D = m ?? S, O = _((e) => {
|
|
5011
|
+
b.current = e, y(e);
|
|
5012
|
+
}, [y]);
|
|
4973
5013
|
x(() => {
|
|
4974
|
-
|
|
5014
|
+
Bu(b.current);
|
|
4975
5015
|
});
|
|
4976
|
-
let
|
|
4977
|
-
...
|
|
4978
|
-
"aria-readonly":
|
|
5016
|
+
let k = h(Bt, {
|
|
5017
|
+
...v,
|
|
5018
|
+
"aria-readonly": d || void 0,
|
|
4979
5019
|
children: t,
|
|
4980
5020
|
className: ku({
|
|
4981
5021
|
boundary: e,
|
|
4982
5022
|
class: n,
|
|
4983
|
-
|
|
4984
|
-
|
|
5023
|
+
desktopColumns: a,
|
|
5024
|
+
layout: s,
|
|
5025
|
+
virtualized: g !== void 0
|
|
4985
5026
|
}),
|
|
4986
5027
|
"data-boundary": e,
|
|
4987
5028
|
"data-breeze-table": "",
|
|
4988
|
-
"data-layout":
|
|
4989
|
-
"data-virtualized":
|
|
5029
|
+
"data-layout": s,
|
|
5030
|
+
"data-virtualized": g === void 0 ? void 0 : "true",
|
|
4990
5031
|
defaultSelectedKeys: r,
|
|
4991
|
-
disabledKeys:
|
|
4992
|
-
onSelectionChange: (e) =>
|
|
4993
|
-
onSortChange:
|
|
5032
|
+
disabledKeys: o,
|
|
5033
|
+
onSelectionChange: (e) => l?.(Lu(e)),
|
|
5034
|
+
onSortChange: d ? void 0 : (e) => {
|
|
4994
5035
|
let t = {
|
|
4995
5036
|
column: e.column,
|
|
4996
5037
|
direction: e.direction
|
|
4997
5038
|
};
|
|
4998
|
-
|
|
5039
|
+
m === void 0 && T(t), u?.(t);
|
|
4999
5040
|
},
|
|
5000
|
-
ref:
|
|
5001
|
-
selectedKeys:
|
|
5002
|
-
selectionMode:
|
|
5003
|
-
sortDescriptor:
|
|
5004
|
-
column:
|
|
5005
|
-
direction:
|
|
5041
|
+
ref: O,
|
|
5042
|
+
selectedKeys: p,
|
|
5043
|
+
selectionMode: zu(E, c),
|
|
5044
|
+
sortDescriptor: D === void 0 ? void 0 : {
|
|
5045
|
+
column: D.column,
|
|
5046
|
+
direction: D.direction
|
|
5006
5047
|
},
|
|
5007
|
-
style: Ha(
|
|
5048
|
+
style: Ha(g)
|
|
5008
5049
|
});
|
|
5009
|
-
return
|
|
5010
|
-
configuration:
|
|
5050
|
+
return g === void 0 ? k : h(Ua, {
|
|
5051
|
+
configuration: g,
|
|
5011
5052
|
kind: "table"
|
|
5012
|
-
},
|
|
5053
|
+
}, k);
|
|
5013
5054
|
}
|
|
5014
|
-
function
|
|
5055
|
+
function Hu({ align: e = "start", children: t, className: n, compactLabel: r = !0, id: i, ref: a, rowHeader: o = !1, sortable: s = !1, textValue: c, width: l = "auto", ...u }) {
|
|
5015
5056
|
let d = typeof t == "string" ? t.trim() : void 0, f = r ? c ?? d : void 0;
|
|
5016
5057
|
return h(Rt, {
|
|
5017
5058
|
...u,
|
|
@@ -5032,14 +5073,14 @@ function Vu({ align: e = "start", children: t, className: n, compactLabel: r = !
|
|
|
5032
5073
|
textValue: c
|
|
5033
5074
|
});
|
|
5034
5075
|
}
|
|
5035
|
-
function Hu(e) {
|
|
5036
|
-
return Vu(e);
|
|
5037
|
-
}
|
|
5038
5076
|
function Uu(e) {
|
|
5039
|
-
return
|
|
5077
|
+
return Hu(e);
|
|
5040
5078
|
}
|
|
5041
|
-
function Wu(
|
|
5042
|
-
|
|
5079
|
+
function Wu(e) {
|
|
5080
|
+
return g(e) && e.type === Uu ? Hu(e.props) : e;
|
|
5081
|
+
}
|
|
5082
|
+
function Gu({ children: e, className: t, id: n, items: r, ref: i, ...a }) {
|
|
5083
|
+
let o = P(i), s = typeof e == "function" ? (t) => Wu(e(t)) : d.map(e, Wu);
|
|
5043
5084
|
return h(Ut, {
|
|
5044
5085
|
...a,
|
|
5045
5086
|
children: s,
|
|
@@ -5050,7 +5091,7 @@ function Wu({ children: e, className: t, id: n, items: r, ref: i, ...a }) {
|
|
|
5050
5091
|
ref: o
|
|
5051
5092
|
});
|
|
5052
5093
|
}
|
|
5053
|
-
function
|
|
5094
|
+
function Ku({ children: e, className: t, emptyContent: n, id: r, items: i, ref: a, ...o }) {
|
|
5054
5095
|
let s = P(a), c = G(n);
|
|
5055
5096
|
return h(Vt, {
|
|
5056
5097
|
...o,
|
|
@@ -5063,7 +5104,7 @@ function Gu({ children: e, className: t, emptyContent: n, id: r, items: i, ref:
|
|
|
5063
5104
|
renderEmptyState: () => c
|
|
5064
5105
|
});
|
|
5065
5106
|
}
|
|
5066
|
-
function
|
|
5107
|
+
function qu({ children: e, className: t, id: n, items: r, ref: i, ...a }) {
|
|
5067
5108
|
let o = P(i);
|
|
5068
5109
|
return h(Ht, {
|
|
5069
5110
|
...a,
|
|
@@ -5075,7 +5116,7 @@ function Ku({ children: e, className: t, id: n, items: r, ref: i, ...a }) {
|
|
|
5075
5116
|
ref: o
|
|
5076
5117
|
});
|
|
5077
5118
|
}
|
|
5078
|
-
function
|
|
5119
|
+
function Ju({ "aria-describedby": e, className: t, disabled: n = !1, id: r, onAction: i, presentation: a = "data", ref: o, textValue: s, tone: c = "default", ...l }) {
|
|
5079
5120
|
let u = P(o), d = _((t) => {
|
|
5080
5121
|
u(t), t && (e ? t.setAttribute("aria-describedby", e) : t.removeAttribute("aria-describedby"));
|
|
5081
5122
|
}, [e, u]);
|
|
@@ -5096,24 +5137,26 @@ function qu({ "aria-describedby": e, className: t, disabled: n = !1, id: r, onAc
|
|
|
5096
5137
|
textValue: s
|
|
5097
5138
|
});
|
|
5098
5139
|
}
|
|
5099
|
-
function
|
|
5100
|
-
let
|
|
5101
|
-
|
|
5102
|
-
}, [
|
|
5140
|
+
function Yu({ align: e = "start", className: t, column: n, colSpan: r, presentation: i = "data", ref: a, textValue: o, ...s }) {
|
|
5141
|
+
let c = P(a), l = Ru(r), u = l === void 0 || l <= 1 ? void 0 : { gridColumn: `span ${l} / span ${l}` }, d = _((e) => {
|
|
5142
|
+
c(e), Bu(e?.closest("[data-breeze-table]") ?? null);
|
|
5143
|
+
}, [c]);
|
|
5103
5144
|
return h(Lt, {
|
|
5104
|
-
...
|
|
5145
|
+
...s,
|
|
5105
5146
|
className: Iu({
|
|
5106
5147
|
align: e,
|
|
5107
5148
|
class: t,
|
|
5108
|
-
presentation:
|
|
5149
|
+
presentation: i
|
|
5109
5150
|
}),
|
|
5151
|
+
colSpan: l,
|
|
5110
5152
|
"data-breeze-cell-column": String(n),
|
|
5111
|
-
ref:
|
|
5112
|
-
|
|
5153
|
+
ref: d,
|
|
5154
|
+
style: u,
|
|
5155
|
+
textValue: o
|
|
5113
5156
|
});
|
|
5114
5157
|
}
|
|
5115
|
-
function
|
|
5116
|
-
return h(
|
|
5158
|
+
function Xu({ position: e = "overlay", ...n }) {
|
|
5159
|
+
return h(Yu, {
|
|
5117
5160
|
...n,
|
|
5118
5161
|
children: /* @__PURE__ */ M(t, {
|
|
5119
5162
|
className: "!block",
|
|
@@ -5122,7 +5165,7 @@ function Yu({ position: e = "overlay", ...n }) {
|
|
|
5122
5165
|
presentation: e === "overlay" ? "disclosure" : "data"
|
|
5123
5166
|
});
|
|
5124
5167
|
}
|
|
5125
|
-
function
|
|
5168
|
+
function Zu({ className: e, loading: t = !1, offset: n = 1, onLoadMore: r, ref: i, ...a }) {
|
|
5126
5169
|
let o = P(i), s = Pa({
|
|
5127
5170
|
loading: t,
|
|
5128
5171
|
onLoadMore: r
|
|
@@ -5140,35 +5183,35 @@ function Xu({ className: e, loading: t = !1, offset: n = 1, onLoadMore: r, ref:
|
|
|
5140
5183
|
scrollOffset: n
|
|
5141
5184
|
});
|
|
5142
5185
|
}
|
|
5143
|
-
var
|
|
5144
|
-
Body:
|
|
5145
|
-
Cell:
|
|
5146
|
-
Column:
|
|
5147
|
-
Disclosure:
|
|
5148
|
-
Footer:
|
|
5149
|
-
Header:
|
|
5150
|
-
LoadMore:
|
|
5151
|
-
Root:
|
|
5152
|
-
Row:
|
|
5153
|
-
},
|
|
5186
|
+
var Qu = {
|
|
5187
|
+
Body: Ku,
|
|
5188
|
+
Cell: Yu,
|
|
5189
|
+
Column: Uu,
|
|
5190
|
+
Disclosure: Xu,
|
|
5191
|
+
Footer: qu,
|
|
5192
|
+
Header: Gu,
|
|
5193
|
+
LoadMore: Zu,
|
|
5194
|
+
Root: Vu,
|
|
5195
|
+
Row: Ju
|
|
5196
|
+
}, $u = A({
|
|
5154
5197
|
base: "flex gap-4",
|
|
5155
5198
|
defaultVariants: { orientation: "horizontal" },
|
|
5156
5199
|
variants: { orientation: {
|
|
5157
5200
|
horizontal: "flex-col",
|
|
5158
5201
|
vertical: "flex-row items-start"
|
|
5159
5202
|
} }
|
|
5160
|
-
}),
|
|
5203
|
+
}), ed = A({
|
|
5161
5204
|
base: "flex gap-1 border-[var(--breeze-border)]",
|
|
5162
5205
|
defaultVariants: { orientation: "horizontal" },
|
|
5163
5206
|
variants: { orientation: {
|
|
5164
5207
|
horizontal: "flex-row border-b",
|
|
5165
5208
|
vertical: "flex-col border-e"
|
|
5166
5209
|
} }
|
|
5167
|
-
}),
|
|
5168
|
-
function
|
|
5210
|
+
}), td = A({ 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)]" }), nd = A({ base: "min-w-0 outline-none data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-[var(--breeze-focus)]" });
|
|
5211
|
+
function rd({ className: e, defaultValue: t, disabled: n = !1, onChange: r, orientation: i = "horizontal", readOnly: a, ref: o, value: s, ...c }) {
|
|
5169
5212
|
return F(), h(Yt, {
|
|
5170
5213
|
...c,
|
|
5171
|
-
className:
|
|
5214
|
+
className: $u({
|
|
5172
5215
|
class: e,
|
|
5173
5216
|
orientation: i
|
|
5174
5217
|
}),
|
|
@@ -5180,53 +5223,53 @@ function nd({ className: e, defaultValue: t, disabled: n = !1, onChange: r, orie
|
|
|
5180
5223
|
selectedKey: s
|
|
5181
5224
|
});
|
|
5182
5225
|
}
|
|
5183
|
-
function
|
|
5226
|
+
function id({ className: e, ref: t, ...n }) {
|
|
5184
5227
|
return h(Kt, {
|
|
5185
5228
|
...n,
|
|
5186
|
-
className: ({ orientation: t }) =>
|
|
5229
|
+
className: ({ orientation: t }) => ed({
|
|
5187
5230
|
class: e,
|
|
5188
5231
|
orientation: t
|
|
5189
5232
|
}),
|
|
5190
5233
|
ref: P(t)
|
|
5191
5234
|
});
|
|
5192
5235
|
}
|
|
5193
|
-
function
|
|
5236
|
+
function ad({ className: e, disabled: t = !1, id: n, ref: r, ...i }) {
|
|
5194
5237
|
return h(Gt, {
|
|
5195
5238
|
...i,
|
|
5196
|
-
className:
|
|
5239
|
+
className: td({ class: e }),
|
|
5197
5240
|
id: n,
|
|
5198
5241
|
isDisabled: t,
|
|
5199
5242
|
ref: P(r)
|
|
5200
5243
|
});
|
|
5201
5244
|
}
|
|
5202
|
-
function
|
|
5245
|
+
function od({ className: e, ref: t, ...n }) {
|
|
5203
5246
|
return h(Jt, {
|
|
5204
5247
|
...n,
|
|
5205
5248
|
className: e,
|
|
5206
5249
|
ref: P(t)
|
|
5207
5250
|
});
|
|
5208
5251
|
}
|
|
5209
|
-
function
|
|
5252
|
+
function sd({ className: e, forceMount: t = !1, id: n, ref: r, ...i }) {
|
|
5210
5253
|
return h(qt, {
|
|
5211
5254
|
...i,
|
|
5212
|
-
className:
|
|
5255
|
+
className: nd({ class: e }),
|
|
5213
5256
|
id: n,
|
|
5214
5257
|
ref: P(r),
|
|
5215
5258
|
shouldForceMount: t
|
|
5216
5259
|
});
|
|
5217
5260
|
}
|
|
5218
|
-
var
|
|
5219
|
-
List:
|
|
5220
|
-
Panel:
|
|
5221
|
-
Panels:
|
|
5222
|
-
Root:
|
|
5223
|
-
Tab:
|
|
5224
|
-
},
|
|
5225
|
-
function
|
|
5261
|
+
var cd = {
|
|
5262
|
+
List: id,
|
|
5263
|
+
Panel: sd,
|
|
5264
|
+
Panels: od,
|
|
5265
|
+
Root: rd,
|
|
5266
|
+
Tab: ad
|
|
5267
|
+
}, ld = A({ 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" });
|
|
5268
|
+
function ud({ className: e, disabled: t = !1, id: n, onAction: r, ref: i, ...a }) {
|
|
5226
5269
|
let o = P(i);
|
|
5227
5270
|
return h(Xt, {
|
|
5228
5271
|
...a,
|
|
5229
|
-
className:
|
|
5272
|
+
className: ld({ class: e }),
|
|
5230
5273
|
id: n,
|
|
5231
5274
|
isDisabled: t,
|
|
5232
5275
|
onAction: r ? () => r(n) : void 0,
|
|
@@ -5236,40 +5279,40 @@ function ld({ className: e, disabled: t = !1, id: n, onAction: r, ref: i, ...a }
|
|
|
5236
5279
|
}
|
|
5237
5280
|
//#endregion
|
|
5238
5281
|
//#region src/primitives/TagGroup/TagGroup.tsx
|
|
5239
|
-
var
|
|
5240
|
-
function
|
|
5282
|
+
var dd = A({ base: "flex min-w-0 flex-col gap-2" }), fd = A({ base: "flex flex-wrap gap-2 outline-none" }), pd = (e) => e === "all" ? "all" : [...e];
|
|
5283
|
+
function md({ children: e, className: t, defaultSelection: n, disabledKeys: r, onRemove: i, onSelectionChange: a, readOnly: o = !1, ref: s, selection: c, ...l }) {
|
|
5241
5284
|
F();
|
|
5242
5285
|
let u = P(s);
|
|
5243
5286
|
return h(Zt, {
|
|
5244
5287
|
...l,
|
|
5245
5288
|
children: e,
|
|
5246
|
-
className:
|
|
5289
|
+
className: dd({ class: t }),
|
|
5247
5290
|
defaultSelectedKeys: n,
|
|
5248
5291
|
disabledKeys: r,
|
|
5249
5292
|
onRemove: o || !i ? void 0 : (e) => i([...e]),
|
|
5250
|
-
onSelectionChange: o ? void 0 : (e) => a?.(
|
|
5293
|
+
onSelectionChange: o ? void 0 : (e) => a?.(pd(e)),
|
|
5251
5294
|
ref: u,
|
|
5252
5295
|
selectedKeys: c,
|
|
5253
5296
|
selectionMode: c !== void 0 || n !== void 0 || a !== void 0 ? "multiple" : "none"
|
|
5254
5297
|
});
|
|
5255
5298
|
}
|
|
5256
|
-
function
|
|
5299
|
+
function hd({ children: e, className: t, emptyContent: n, items: r, ref: i, ...a }) {
|
|
5257
5300
|
let o = P(i), s = G(n);
|
|
5258
5301
|
return h(Qt, {
|
|
5259
5302
|
...a,
|
|
5260
5303
|
children: e,
|
|
5261
|
-
className:
|
|
5304
|
+
className: fd({ class: t }),
|
|
5262
5305
|
items: r,
|
|
5263
5306
|
ref: o,
|
|
5264
5307
|
renderEmptyState: () => s
|
|
5265
5308
|
});
|
|
5266
5309
|
}
|
|
5267
|
-
var
|
|
5310
|
+
var gd = {
|
|
5268
5311
|
Description: X.Description,
|
|
5269
5312
|
Label: X.Label,
|
|
5270
|
-
List:
|
|
5271
|
-
Root:
|
|
5272
|
-
},
|
|
5313
|
+
List: hd,
|
|
5314
|
+
Root: md
|
|
5315
|
+
}, _d = A({
|
|
5273
5316
|
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)]",
|
|
5274
5317
|
defaultVariants: { size: "md" },
|
|
5275
5318
|
variants: { size: {
|
|
@@ -5278,25 +5321,25 @@ var hd = {
|
|
|
5278
5321
|
sm: "min-h-20 px-2.5 py-1.5 text-xs"
|
|
5279
5322
|
} }
|
|
5280
5323
|
});
|
|
5281
|
-
function
|
|
5324
|
+
function vd({ className: e, ref: t, size: n, ...r }) {
|
|
5282
5325
|
let i = P(t);
|
|
5283
5326
|
return h(ge, {
|
|
5284
5327
|
...r,
|
|
5285
|
-
className:
|
|
5328
|
+
className: _d({
|
|
5286
5329
|
class: e,
|
|
5287
5330
|
size: n
|
|
5288
5331
|
}),
|
|
5289
5332
|
ref: i
|
|
5290
5333
|
});
|
|
5291
5334
|
}
|
|
5292
|
-
var
|
|
5293
|
-
Control:
|
|
5335
|
+
var yd = {
|
|
5336
|
+
Control: vd,
|
|
5294
5337
|
Description: X.Description,
|
|
5295
5338
|
Error: X.Error,
|
|
5296
5339
|
Label: X.Label,
|
|
5297
5340
|
Root: X.Root
|
|
5298
|
-
},
|
|
5299
|
-
function
|
|
5341
|
+
}, bd = A({ base: "flex min-w-0 flex-col gap-1.5" });
|
|
5342
|
+
function xd({ 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 }) {
|
|
5300
5343
|
F();
|
|
5301
5344
|
let _ = P(f), v = P(a), y = [
|
|
5302
5345
|
m,
|
|
@@ -5307,7 +5350,7 @@ function bd({ children: e, className: t, defaultValue: n, disabled: r = !1, form
|
|
|
5307
5350
|
return h(ut, {
|
|
5308
5351
|
...g,
|
|
5309
5352
|
children: e,
|
|
5310
|
-
className:
|
|
5353
|
+
className: bd({ class: t }),
|
|
5311
5354
|
defaultValue: Ri(n ?? null) ?? void 0,
|
|
5312
5355
|
form: i,
|
|
5313
5356
|
granularity: y ? "second" : "minute",
|
|
@@ -5324,13 +5367,13 @@ function bd({ children: e, className: t, defaultValue: n, disabled: r = !1, form
|
|
|
5324
5367
|
value: m === void 0 ? void 0 : Ri(m)
|
|
5325
5368
|
});
|
|
5326
5369
|
}
|
|
5327
|
-
var
|
|
5370
|
+
var Sd = {
|
|
5328
5371
|
Description: X.Description,
|
|
5329
5372
|
Error: X.Error,
|
|
5330
5373
|
Input: $,
|
|
5331
5374
|
Label: X.Label,
|
|
5332
|
-
Root:
|
|
5333
|
-
},
|
|
5375
|
+
Root: xd
|
|
5376
|
+
}, Cd = 5e3, wd = A({
|
|
5334
5377
|
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)]",
|
|
5335
5378
|
defaultVariants: { variant: "info" },
|
|
5336
5379
|
variants: { variant: {
|
|
@@ -5343,25 +5386,25 @@ var xd = {
|
|
|
5343
5386
|
success: "border-[var(--breeze-success)] bg-[var(--breeze-success-soft)] text-[var(--breeze-ink)]",
|
|
5344
5387
|
warning: "border-[var(--breeze-warning)] bg-[var(--breeze-warning-soft)] text-[var(--breeze-ink)]"
|
|
5345
5388
|
} }
|
|
5346
|
-
}),
|
|
5347
|
-
function
|
|
5348
|
-
return h(nn, { className:
|
|
5349
|
-
className:
|
|
5389
|
+
}), Td = A({ base: "fixed inset-block-start-4 inset-inline-end-4 z-50 grid max-h-[calc(100dvh-2rem)] gap-3 overflow-auto outline-none" }), Ed = A({ base: "contents" }), Dd = A({ base: "grid min-w-0 gap-1" }), Od = A({ base: "font-semibold" }), kd = A({ base: "text-current/80" }), Ad = A({ 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" }), jd = A({ 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]" }), Md = m(null);
|
|
5390
|
+
function Nd({ action: e, closeLabel: t, description: n, onAction: r, onDismiss: i, title: a }) {
|
|
5391
|
+
return h(nn, { className: Ed() }, h("div", { className: Dd() }, h(en, {
|
|
5392
|
+
className: Od(),
|
|
5350
5393
|
slot: "title"
|
|
5351
5394
|
}, a), n === void 0 ? null : h(en, {
|
|
5352
|
-
className:
|
|
5395
|
+
className: kd(),
|
|
5353
5396
|
slot: "description"
|
|
5354
5397
|
}, n), e === void 0 ? null : h($t, {
|
|
5355
|
-
className:
|
|
5398
|
+
className: Ad(),
|
|
5356
5399
|
onPress: r
|
|
5357
5400
|
}, e.label)), h($t, {
|
|
5358
5401
|
"aria-label": t,
|
|
5359
|
-
className:
|
|
5402
|
+
className: jd(),
|
|
5360
5403
|
onPress: i,
|
|
5361
5404
|
slot: "close"
|
|
5362
5405
|
}, "×"));
|
|
5363
5406
|
}
|
|
5364
|
-
function
|
|
5407
|
+
function Pd({ action: e, className: t, closeLabel: n, description: r, onDismiss: i, ref: a, title: o, variant: s = "info", ...c }) {
|
|
5365
5408
|
let { messages: l } = F(), u = b(), d = b(), f = e === void 0 ? void 0 : () => {
|
|
5366
5409
|
e.onAction(), i();
|
|
5367
5410
|
};
|
|
@@ -5372,7 +5415,7 @@ function Nd({ action: e, className: t, closeLabel: n, description: r, onDismiss:
|
|
|
5372
5415
|
"aria-labelledby": u,
|
|
5373
5416
|
"aria-live": "polite",
|
|
5374
5417
|
"aria-modal": "false",
|
|
5375
|
-
className:
|
|
5418
|
+
className: wd({
|
|
5376
5419
|
class: t,
|
|
5377
5420
|
variant: s
|
|
5378
5421
|
}),
|
|
@@ -5380,30 +5423,30 @@ function Nd({ action: e, className: t, closeLabel: n, description: r, onDismiss:
|
|
|
5380
5423
|
ref: P(a),
|
|
5381
5424
|
role: "alertdialog",
|
|
5382
5425
|
tabIndex: 0
|
|
5383
|
-
}, h("div", { className:
|
|
5384
|
-
className:
|
|
5426
|
+
}, h("div", { className: Ed() }, h("div", { className: Dd() }, h("div", {
|
|
5427
|
+
className: Od(),
|
|
5385
5428
|
id: u
|
|
5386
5429
|
}, o), r === void 0 ? null : h("div", {
|
|
5387
|
-
className:
|
|
5430
|
+
className: kd(),
|
|
5388
5431
|
id: d
|
|
5389
5432
|
}, r), e === void 0 ? null : h($t, {
|
|
5390
|
-
className:
|
|
5433
|
+
className: Ad(),
|
|
5391
5434
|
onPress: f
|
|
5392
5435
|
}, e.label)), h($t, {
|
|
5393
5436
|
"aria-label": n ?? l.close,
|
|
5394
|
-
className:
|
|
5437
|
+
className: jd(),
|
|
5395
5438
|
onPress: i
|
|
5396
5439
|
}, "×")));
|
|
5397
5440
|
}
|
|
5398
|
-
function
|
|
5399
|
-
let i = v(
|
|
5441
|
+
function Fd({ className: e, label: t, ref: n, ...r }) {
|
|
5442
|
+
let i = v(Md), a = P(n);
|
|
5400
5443
|
if (i === null) throw Error("ToastRegion must be rendered within BreezeProvider.");
|
|
5401
5444
|
let o = ({ toast: e }) => {
|
|
5402
5445
|
let { action: t, description: n, title: r, variant: a } = e.content, o = t === void 0 ? void 0 : () => {
|
|
5403
5446
|
t.onAction(), i.controller.dismiss(e.key);
|
|
5404
5447
|
};
|
|
5405
5448
|
return h(tn, {
|
|
5406
|
-
children: h(
|
|
5449
|
+
children: h(Nd, {
|
|
5407
5450
|
action: t,
|
|
5408
5451
|
closeLabel: i.closeLabel,
|
|
5409
5452
|
description: n,
|
|
@@ -5413,7 +5456,7 @@ function Pd({ className: e, label: t, ref: n, ...r }) {
|
|
|
5413
5456
|
},
|
|
5414
5457
|
title: r
|
|
5415
5458
|
}),
|
|
5416
|
-
className:
|
|
5459
|
+
className: wd({ variant: a }),
|
|
5417
5460
|
"data-variant": a,
|
|
5418
5461
|
toast: e
|
|
5419
5462
|
});
|
|
@@ -5422,21 +5465,21 @@ function Pd({ className: e, label: t, ref: n, ...r }) {
|
|
|
5422
5465
|
...r,
|
|
5423
5466
|
"aria-label": t ?? i.regionLabel,
|
|
5424
5467
|
children: o,
|
|
5425
|
-
className:
|
|
5468
|
+
className: Td({ class: e }),
|
|
5426
5469
|
queue: i.queue,
|
|
5427
5470
|
ref: a
|
|
5428
5471
|
});
|
|
5429
5472
|
}
|
|
5430
|
-
function
|
|
5473
|
+
function Id(e) {
|
|
5431
5474
|
if (e !== null && (!Number.isFinite(e) || e < 0)) throw RangeError("Toast lifetime must be null or a finite non-negative number of milliseconds.");
|
|
5432
5475
|
}
|
|
5433
|
-
function
|
|
5476
|
+
function Ld({ children: e, closeLabel: t, limit: n, regionLabel: r }) {
|
|
5434
5477
|
let i = S(() => new rn({ maxVisibleToasts: n }), [n]), a = S(() => ({
|
|
5435
5478
|
dismiss: (e) => {
|
|
5436
5479
|
i.close(e);
|
|
5437
5480
|
},
|
|
5438
|
-
show: ({ action: e, description: t, lifetime: n =
|
|
5439
|
-
|
|
5481
|
+
show: ({ action: e, description: t, lifetime: n = Cd, onDismiss: r, title: a, variant: o = "info" }) => {
|
|
5482
|
+
Id(n);
|
|
5440
5483
|
let s = i.add({
|
|
5441
5484
|
action: e,
|
|
5442
5485
|
description: t,
|
|
@@ -5461,16 +5504,16 @@ function Id({ children: e, closeLabel: t, limit: n, regionLabel: r }) {
|
|
|
5461
5504
|
]);
|
|
5462
5505
|
return y(() => () => {
|
|
5463
5506
|
i.pauseAll(), i.clear();
|
|
5464
|
-
}, [i]), h(
|
|
5507
|
+
}, [i]), h(Md, { value: o }, e, h(Fd));
|
|
5465
5508
|
}
|
|
5466
|
-
function
|
|
5467
|
-
let e = v(
|
|
5509
|
+
function Rd() {
|
|
5510
|
+
let e = v(Md);
|
|
5468
5511
|
if (e === null) throw Error("useToast must be called within BreezeProvider.");
|
|
5469
5512
|
return e.controller;
|
|
5470
5513
|
}
|
|
5471
5514
|
//#endregion
|
|
5472
5515
|
//#region src/primitives/Toolbar/Toolbar.tsx
|
|
5473
|
-
var
|
|
5516
|
+
var zd = A({
|
|
5474
5517
|
base: "flex gap-2",
|
|
5475
5518
|
defaultVariants: { orientation: "horizontal" },
|
|
5476
5519
|
variants: { orientation: {
|
|
@@ -5478,12 +5521,12 @@ var Rd = A({
|
|
|
5478
5521
|
vertical: "flex-col items-stretch"
|
|
5479
5522
|
} }
|
|
5480
5523
|
});
|
|
5481
|
-
function
|
|
5524
|
+
function Bd({ children: e, className: t, orientation: n, ref: r, ...i }) {
|
|
5482
5525
|
F();
|
|
5483
5526
|
let a = P(r);
|
|
5484
5527
|
return h(on, {
|
|
5485
5528
|
...i,
|
|
5486
|
-
className:
|
|
5529
|
+
className: zd({
|
|
5487
5530
|
class: t,
|
|
5488
5531
|
orientation: n
|
|
5489
5532
|
}),
|
|
@@ -5493,7 +5536,7 @@ function zd({ children: e, className: t, orientation: n, ref: r, ...i }) {
|
|
|
5493
5536
|
}
|
|
5494
5537
|
//#endregion
|
|
5495
5538
|
//#region src/primitives/Tooltip/Tooltip.tsx
|
|
5496
|
-
var
|
|
5539
|
+
var Vd = A({
|
|
5497
5540
|
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]",
|
|
5498
5541
|
defaultVariants: { variant: "secondary" },
|
|
5499
5542
|
variants: { variant: {
|
|
@@ -5501,7 +5544,7 @@ var Bd = A({
|
|
|
5501
5544
|
primary: "border-[var(--breeze-primary)] bg-[var(--breeze-primary)] text-[var(--breeze-ink-inverse)]",
|
|
5502
5545
|
secondary: "border-[var(--breeze-border-strong)] bg-[var(--breeze-ink)] text-[var(--breeze-ink-inverse)]"
|
|
5503
5546
|
} }
|
|
5504
|
-
}),
|
|
5547
|
+
}), Hd = A({
|
|
5505
5548
|
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)]",
|
|
5506
5549
|
defaultVariants: { variant: "secondary" },
|
|
5507
5550
|
variants: { variant: {
|
|
@@ -5510,7 +5553,7 @@ var Bd = A({
|
|
|
5510
5553
|
secondary: "text-[var(--breeze-ink-muted)]"
|
|
5511
5554
|
} }
|
|
5512
5555
|
});
|
|
5513
|
-
function
|
|
5556
|
+
function Ud({ closeDelay: e = 0, defaultOpen: t, delay: n = 700, onOpenChange: r, open: i, readOnly: a, ...o }) {
|
|
5514
5557
|
return F(), h(ln, {
|
|
5515
5558
|
...o,
|
|
5516
5559
|
closeDelay: e,
|
|
@@ -5520,25 +5563,27 @@ function Hd({ closeDelay: e = 0, defaultOpen: t, delay: n = 700, onOpenChange: r
|
|
|
5520
5563
|
onOpenChange: r
|
|
5521
5564
|
});
|
|
5522
5565
|
}
|
|
5523
|
-
var
|
|
5524
|
-
function
|
|
5566
|
+
var Wd = L;
|
|
5567
|
+
function Gd({ "aria-label": e, children: t, className: n, ref: r, variant: i = "secondary", ...a }) {
|
|
5568
|
+
let o = P(r), s = b();
|
|
5525
5569
|
return /* @__PURE__ */ M(sn, {
|
|
5526
|
-
ref:
|
|
5570
|
+
ref: o,
|
|
5527
5571
|
children: h("span", {
|
|
5528
|
-
...
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5572
|
+
...a,
|
|
5573
|
+
"aria-labelledby": s,
|
|
5574
|
+
className: Hd({
|
|
5575
|
+
class: n,
|
|
5576
|
+
variant: i
|
|
5532
5577
|
}),
|
|
5533
5578
|
role: "img",
|
|
5534
5579
|
tabIndex: 0
|
|
5535
|
-
}, e)
|
|
5580
|
+
}, h(au, { id: s }, e), t)
|
|
5536
5581
|
});
|
|
5537
5582
|
}
|
|
5538
|
-
function
|
|
5583
|
+
function Kd({ className: e, offset: t = 6, placement: n = "top", ref: r, variant: i = "secondary", ...a }) {
|
|
5539
5584
|
return F(), h(cn, {
|
|
5540
5585
|
...a,
|
|
5541
|
-
className:
|
|
5586
|
+
className: Vd({
|
|
5542
5587
|
class: e,
|
|
5543
5588
|
variant: i
|
|
5544
5589
|
}),
|
|
@@ -5547,12 +5592,12 @@ function Gd({ className: e, offset: t = 6, placement: n = "top", ref: r, variant
|
|
|
5547
5592
|
ref: P(r)
|
|
5548
5593
|
});
|
|
5549
5594
|
}
|
|
5550
|
-
var
|
|
5551
|
-
Content:
|
|
5552
|
-
IconTrigger:
|
|
5553
|
-
Root:
|
|
5554
|
-
Trigger:
|
|
5555
|
-
},
|
|
5595
|
+
var qd = {
|
|
5596
|
+
Content: Kd,
|
|
5597
|
+
IconTrigger: Gd,
|
|
5598
|
+
Root: Ud,
|
|
5599
|
+
Trigger: Wd
|
|
5600
|
+
}, Jd = A({
|
|
5556
5601
|
base: "m-0 min-w-0",
|
|
5557
5602
|
compoundVariants: [{
|
|
5558
5603
|
class: "mb-4",
|
|
@@ -5632,7 +5677,7 @@ var Kd = {
|
|
|
5632
5677
|
semibold: "font-semibold"
|
|
5633
5678
|
}
|
|
5634
5679
|
}
|
|
5635
|
-
}),
|
|
5680
|
+
}), Yd = {
|
|
5636
5681
|
dt: "label",
|
|
5637
5682
|
h1: "h1",
|
|
5638
5683
|
h2: "h2",
|
|
@@ -5641,22 +5686,22 @@ var Kd = {
|
|
|
5641
5686
|
h5: "h5",
|
|
5642
5687
|
h6: "h6",
|
|
5643
5688
|
strong: "label"
|
|
5644
|
-
},
|
|
5689
|
+
}, Xd = /* @__PURE__ */ new Set([
|
|
5645
5690
|
"em",
|
|
5646
5691
|
"small",
|
|
5647
5692
|
"span",
|
|
5648
5693
|
"strong"
|
|
5649
5694
|
]);
|
|
5650
|
-
function
|
|
5695
|
+
function Zd({ 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 }) {
|
|
5651
5696
|
F();
|
|
5652
|
-
let f = a ??
|
|
5697
|
+
let f = a ?? Yd[t] ?? "body", p = P(s);
|
|
5653
5698
|
return h(t, {
|
|
5654
5699
|
...d,
|
|
5655
|
-
className:
|
|
5700
|
+
className: Jd({
|
|
5656
5701
|
align: e,
|
|
5657
5702
|
class: n,
|
|
5658
5703
|
colour: r,
|
|
5659
|
-
gutterBottom: i && !
|
|
5704
|
+
gutterBottom: i && !Xd.has(t),
|
|
5660
5705
|
level: f,
|
|
5661
5706
|
lineClamp: o ?? "none",
|
|
5662
5707
|
tabularNumbers: c,
|
|
@@ -5668,7 +5713,7 @@ function Xd({ align: e, as: t = "p", className: n, colour: r, gutterBottom: i =
|
|
|
5668
5713
|
}
|
|
5669
5714
|
//#endregion
|
|
5670
5715
|
//#region src/provider/messages.ts
|
|
5671
|
-
var
|
|
5716
|
+
var Qd = {
|
|
5672
5717
|
clear: "Clear",
|
|
5673
5718
|
close: "Close",
|
|
5674
5719
|
fileCountRejection: "Only one file may be selected.",
|
|
@@ -5688,15 +5733,15 @@ var Zd = {
|
|
|
5688
5733
|
showPassword: "Show password",
|
|
5689
5734
|
unreadNotifications: "Unread notifications"
|
|
5690
5735
|
};
|
|
5691
|
-
function
|
|
5736
|
+
function $d(e = {}) {
|
|
5692
5737
|
return {
|
|
5693
|
-
...
|
|
5738
|
+
...Qd,
|
|
5694
5739
|
...e
|
|
5695
5740
|
};
|
|
5696
5741
|
}
|
|
5697
5742
|
//#endregion
|
|
5698
5743
|
//#region src/provider/BreezeProvider.tsx
|
|
5699
|
-
var
|
|
5744
|
+
var ef = /* @__PURE__ */ new Set([
|
|
5700
5745
|
"ar",
|
|
5701
5746
|
"ckb",
|
|
5702
5747
|
"dv",
|
|
@@ -5709,11 +5754,11 @@ var $d = /* @__PURE__ */ new Set([
|
|
|
5709
5754
|
"ur",
|
|
5710
5755
|
"yi"
|
|
5711
5756
|
]);
|
|
5712
|
-
function
|
|
5757
|
+
function tf(e) {
|
|
5713
5758
|
let { language: t } = new Intl.Locale(e);
|
|
5714
|
-
return
|
|
5759
|
+
return ef.has(t) ? "rtl" : "ltr";
|
|
5715
5760
|
}
|
|
5716
|
-
function
|
|
5761
|
+
function nf(e, t, n) {
|
|
5717
5762
|
let { dataset: r } = e;
|
|
5718
5763
|
if (n === void 0) {
|
|
5719
5764
|
delete r[t];
|
|
@@ -5721,16 +5766,16 @@ function tf(e, t, n) {
|
|
|
5721
5766
|
}
|
|
5722
5767
|
r[t] = n;
|
|
5723
5768
|
}
|
|
5724
|
-
function
|
|
5769
|
+
function rf(e, t, n) {
|
|
5725
5770
|
if (n === null) {
|
|
5726
5771
|
e.removeAttribute(t);
|
|
5727
5772
|
return;
|
|
5728
5773
|
}
|
|
5729
5774
|
e.setAttribute(t, n);
|
|
5730
5775
|
}
|
|
5731
|
-
function
|
|
5776
|
+
function af({ children: e, direction: t, locale: n, messages: r, portalContainer: i, router: a, timeZone: o, toastLimit: s = 3 }) {
|
|
5732
5777
|
if (!Number.isInteger(s) || s < 1) throw RangeError("BreezeProvider toastLimit must be a positive integer.");
|
|
5733
|
-
let [c, l] = w(null), u = t ??
|
|
5778
|
+
let [c, l] = w(null), u = t ?? tf(n), d = S(() => $d(r), [r]), f = i ?? c, p = C(f);
|
|
5734
5779
|
p.current = f;
|
|
5735
5780
|
let m = _(() => p.current, []), h = i === void 0 && typeof document < "u" ? fn(/* @__PURE__ */ M("div", {
|
|
5736
5781
|
"data-breeze-portal-root": "",
|
|
@@ -5743,7 +5788,7 @@ function rf({ children: e, direction: t, locale: n, messages: r, portalContainer
|
|
|
5743
5788
|
if (i == null) return;
|
|
5744
5789
|
let { dataset: e } = i, t = e.breezePortalRoot, r = e.breezeRoot, a = i.getAttribute("dir"), o = i.getAttribute("lang");
|
|
5745
5790
|
return e.breezePortalRoot = "", e.breezeRoot = "", i.setAttribute("dir", u), i.setAttribute("lang", n), () => {
|
|
5746
|
-
|
|
5791
|
+
nf(i, "breezePortalRoot", t), nf(i, "breezeRoot", r), rf(i, "dir", a), rf(i, "lang", o);
|
|
5747
5792
|
};
|
|
5748
5793
|
}, [
|
|
5749
5794
|
n,
|
|
@@ -5769,7 +5814,7 @@ function rf({ children: e, direction: t, locale: n, messages: r, portalContainer
|
|
|
5769
5814
|
a,
|
|
5770
5815
|
o
|
|
5771
5816
|
]),
|
|
5772
|
-
children: /* @__PURE__ */ N(
|
|
5817
|
+
children: /* @__PURE__ */ N(Ld, {
|
|
5773
5818
|
closeLabel: d.close,
|
|
5774
5819
|
limit: s,
|
|
5775
5820
|
regionLabel: d.notifications,
|
|
@@ -5785,6 +5830,6 @@ function rf({ children: e, direction: t, locale: n, messages: r, portalContainer
|
|
|
5785
5830
|
});
|
|
5786
5831
|
}
|
|
5787
5832
|
//#endregion
|
|
5788
|
-
export { Ti as Accordion, Oi as Alert, W as AlertDialog, Bn as ApplicationShell, hi as Avatar, Ai as Badge, Fi as Breadcrumbs,
|
|
5833
|
+
export { Ti as Accordion, Oi as Alert, W as AlertDialog, Bn as ApplicationShell, hi as Avatar, Ai as Badge, Fi as Breadcrumbs, af as BreezeProvider, L 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, mn as FormattedDateTime, hn as FormattedList, gn 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, _n 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, Qu as Table, cd as Tabs, ud as Tag, gd as TagGroup, yd as TextArea, X as TextField, Sd as TimeField, Pd as Toast, Fd as ToastRegion, ci as ToggleButton, ui as ToggleGroup, Bd as Toolbar, qd as Tooltip, Zd as Typography, gi as UserMenu, au as VisuallyHidden, Rd as useToast };
|
|
5789
5834
|
|
|
5790
5835
|
//# sourceMappingURL=index.js.map
|