@motech-development/breeze-ui 3.1.0 → 3.2.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 +208 -173
- package/lib/index.js.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
|
@@ -820,7 +820,7 @@ function G(e) {
|
|
|
820
820
|
}
|
|
821
821
|
//#endregion
|
|
822
822
|
//#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)]" });
|
|
823
|
+
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
824
|
function tr(e) {
|
|
825
825
|
return e === "all" ? "all" : [...e];
|
|
826
826
|
}
|
|
@@ -836,12 +836,17 @@ function rr({ defaultOpen: e, onOpenChange: t, open: n, readOnly: r, ...i }) {
|
|
|
836
836
|
});
|
|
837
837
|
}
|
|
838
838
|
function ir({ className: e, disabled: t = !1, ref: n, ...r }) {
|
|
839
|
-
let i = v(se);
|
|
839
|
+
let i = v(se), a = C(!1);
|
|
840
840
|
return h(D, {
|
|
841
841
|
...r,
|
|
842
842
|
className: Zn({ class: e }),
|
|
843
843
|
isDisabled: t,
|
|
844
|
-
onPress:
|
|
844
|
+
onPress: () => {
|
|
845
|
+
a.current && i?.close();
|
|
846
|
+
},
|
|
847
|
+
onPressStart: () => {
|
|
848
|
+
a.current = i?.isOpen === !0;
|
|
849
|
+
},
|
|
845
850
|
ref: P(n)
|
|
846
851
|
});
|
|
847
852
|
}
|
|
@@ -917,7 +922,11 @@ function ur({ "aria-label": e, currentId: t, emptyIcon: n, emptyName: r, items:
|
|
|
917
922
|
return /* @__PURE__ */ N(K.Root, { children: [/* @__PURE__ */ N(K.Trigger, {
|
|
918
923
|
"aria-label": e,
|
|
919
924
|
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: [
|
|
925
|
+
children: [/* @__PURE__ */ M("span", {
|
|
926
|
+
"aria-hidden": "true",
|
|
927
|
+
className: "empty:hidden",
|
|
928
|
+
children: l?.icon ?? n
|
|
929
|
+
}), /* @__PURE__ */ N("span", {
|
|
921
930
|
className: "grid min-w-0 flex-1 gap-0.5",
|
|
922
931
|
children: [c === void 0 ? null : /* @__PURE__ */ M("small", {
|
|
923
932
|
className: "text-base text-[var(--breeze-ink-inverse-muted)]",
|
|
@@ -948,7 +957,11 @@ function ur({ "aria-label": e, currentId: t, emptyIcon: n, emptyName: r, items:
|
|
|
948
957
|
textValue: e.name,
|
|
949
958
|
children: /* @__PURE__ */ N("span", {
|
|
950
959
|
className: "flex min-w-0 items-center gap-3",
|
|
951
|
-
children: [
|
|
960
|
+
children: [/* @__PURE__ */ M("span", {
|
|
961
|
+
"aria-hidden": "true",
|
|
962
|
+
className: "empty:hidden",
|
|
963
|
+
children: e.icon
|
|
964
|
+
}), /* @__PURE__ */ N("span", {
|
|
952
965
|
className: "grid min-w-0 gap-0.5",
|
|
953
966
|
children: [/* @__PURE__ */ M("strong", { children: e.name }), e.description === void 0 ? null : /* @__PURE__ */ M("small", { children: e.description })]
|
|
954
967
|
})]
|
|
@@ -4864,8 +4877,18 @@ var Du = {
|
|
|
4864
4877
|
Track: wu
|
|
4865
4878
|
}, 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
4879
|
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)]",
|
|
4880
|
+
compoundVariants: [{
|
|
4881
|
+
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))]",
|
|
4882
|
+
desktopColumns: "equal",
|
|
4883
|
+
layout: "responsiveGrid"
|
|
4884
|
+
}, {
|
|
4885
|
+
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]",
|
|
4886
|
+
desktopColumns: "mediaDetailsAction",
|
|
4887
|
+
layout: "responsiveGrid"
|
|
4888
|
+
}],
|
|
4867
4889
|
defaultVariants: {
|
|
4868
4890
|
boundary: "none",
|
|
4891
|
+
desktopColumns: "equal",
|
|
4869
4892
|
layout: "responsive",
|
|
4870
4893
|
virtualized: !1
|
|
4871
4894
|
},
|
|
@@ -4874,8 +4897,12 @@ var Du = {
|
|
|
4874
4897
|
none: "",
|
|
4875
4898
|
strong: "min-w-0 border-b-2 border-[var(--breeze-border-strong)] bg-[var(--breeze-surface)]"
|
|
4876
4899
|
},
|
|
4900
|
+
desktopColumns: {
|
|
4901
|
+
equal: "",
|
|
4902
|
+
mediaDetailsAction: ""
|
|
4903
|
+
},
|
|
4877
4904
|
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",
|
|
4905
|
+
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
4906
|
responsive: Ou,
|
|
4880
4907
|
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
4908
|
},
|
|
@@ -4948,10 +4975,13 @@ var Du = {
|
|
|
4948
4975
|
function Lu(e) {
|
|
4949
4976
|
return e === "all" ? "all" : [...e];
|
|
4950
4977
|
}
|
|
4951
|
-
function Ru(e
|
|
4978
|
+
function Ru(e) {
|
|
4979
|
+
if (e !== void 0) return Number.isInteger(e) ? Math.min(Math.max(e, 1), 1e3) : 1;
|
|
4980
|
+
}
|
|
4981
|
+
function zu(e, t) {
|
|
4952
4982
|
return e ? t ? "multiple" : "single" : "none";
|
|
4953
4983
|
}
|
|
4954
|
-
function
|
|
4984
|
+
function Bu(e) {
|
|
4955
4985
|
if (e === null) return;
|
|
4956
4986
|
let t = new Map([...e.querySelectorAll("[data-breeze-column]")].map((e) => {
|
|
4957
4987
|
let t = e.dataset.breezeCompactLabel === "false" ? void 0 : e.dataset.breezeCompactLabelText;
|
|
@@ -4965,53 +4995,54 @@ function zu(e) {
|
|
|
4965
4995
|
i !== void 0 && i.length > 0 ? n.label = i : delete n.label, n.breezeColumnWidth = r?.width ?? "auto";
|
|
4966
4996
|
});
|
|
4967
4997
|
}
|
|
4968
|
-
function
|
|
4998
|
+
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
4999
|
F();
|
|
4970
|
-
let
|
|
4971
|
-
|
|
4972
|
-
}, [
|
|
5000
|
+
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) => {
|
|
5001
|
+
b.current = e, y(e);
|
|
5002
|
+
}, [y]);
|
|
4973
5003
|
x(() => {
|
|
4974
|
-
|
|
5004
|
+
Bu(b.current);
|
|
4975
5005
|
});
|
|
4976
|
-
let
|
|
4977
|
-
...
|
|
4978
|
-
"aria-readonly":
|
|
5006
|
+
let k = h(Bt, {
|
|
5007
|
+
...v,
|
|
5008
|
+
"aria-readonly": d || void 0,
|
|
4979
5009
|
children: t,
|
|
4980
5010
|
className: ku({
|
|
4981
5011
|
boundary: e,
|
|
4982
5012
|
class: n,
|
|
4983
|
-
|
|
4984
|
-
|
|
5013
|
+
desktopColumns: a,
|
|
5014
|
+
layout: s,
|
|
5015
|
+
virtualized: g !== void 0
|
|
4985
5016
|
}),
|
|
4986
5017
|
"data-boundary": e,
|
|
4987
5018
|
"data-breeze-table": "",
|
|
4988
|
-
"data-layout":
|
|
4989
|
-
"data-virtualized":
|
|
5019
|
+
"data-layout": s,
|
|
5020
|
+
"data-virtualized": g === void 0 ? void 0 : "true",
|
|
4990
5021
|
defaultSelectedKeys: r,
|
|
4991
|
-
disabledKeys:
|
|
4992
|
-
onSelectionChange: (e) =>
|
|
4993
|
-
onSortChange:
|
|
5022
|
+
disabledKeys: o,
|
|
5023
|
+
onSelectionChange: (e) => l?.(Lu(e)),
|
|
5024
|
+
onSortChange: d ? void 0 : (e) => {
|
|
4994
5025
|
let t = {
|
|
4995
5026
|
column: e.column,
|
|
4996
5027
|
direction: e.direction
|
|
4997
5028
|
};
|
|
4998
|
-
|
|
5029
|
+
m === void 0 && T(t), u?.(t);
|
|
4999
5030
|
},
|
|
5000
|
-
ref:
|
|
5001
|
-
selectedKeys:
|
|
5002
|
-
selectionMode:
|
|
5003
|
-
sortDescriptor:
|
|
5004
|
-
column:
|
|
5005
|
-
direction:
|
|
5031
|
+
ref: O,
|
|
5032
|
+
selectedKeys: p,
|
|
5033
|
+
selectionMode: zu(E, c),
|
|
5034
|
+
sortDescriptor: D === void 0 ? void 0 : {
|
|
5035
|
+
column: D.column,
|
|
5036
|
+
direction: D.direction
|
|
5006
5037
|
},
|
|
5007
|
-
style: Ha(
|
|
5038
|
+
style: Ha(g)
|
|
5008
5039
|
});
|
|
5009
|
-
return
|
|
5010
|
-
configuration:
|
|
5040
|
+
return g === void 0 ? k : h(Ua, {
|
|
5041
|
+
configuration: g,
|
|
5011
5042
|
kind: "table"
|
|
5012
|
-
},
|
|
5043
|
+
}, k);
|
|
5013
5044
|
}
|
|
5014
|
-
function
|
|
5045
|
+
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
5046
|
let d = typeof t == "string" ? t.trim() : void 0, f = r ? c ?? d : void 0;
|
|
5016
5047
|
return h(Rt, {
|
|
5017
5048
|
...u,
|
|
@@ -5032,14 +5063,14 @@ function Vu({ align: e = "start", children: t, className: n, compactLabel: r = !
|
|
|
5032
5063
|
textValue: c
|
|
5033
5064
|
});
|
|
5034
5065
|
}
|
|
5035
|
-
function Hu(e) {
|
|
5036
|
-
return Vu(e);
|
|
5037
|
-
}
|
|
5038
5066
|
function Uu(e) {
|
|
5039
|
-
return
|
|
5067
|
+
return Hu(e);
|
|
5068
|
+
}
|
|
5069
|
+
function Wu(e) {
|
|
5070
|
+
return g(e) && e.type === Uu ? Hu(e.props) : e;
|
|
5040
5071
|
}
|
|
5041
|
-
function
|
|
5042
|
-
let o = P(i), s = typeof e == "function" ? (t) =>
|
|
5072
|
+
function Gu({ children: e, className: t, id: n, items: r, ref: i, ...a }) {
|
|
5073
|
+
let o = P(i), s = typeof e == "function" ? (t) => Wu(e(t)) : d.map(e, Wu);
|
|
5043
5074
|
return h(Ut, {
|
|
5044
5075
|
...a,
|
|
5045
5076
|
children: s,
|
|
@@ -5050,7 +5081,7 @@ function Wu({ children: e, className: t, id: n, items: r, ref: i, ...a }) {
|
|
|
5050
5081
|
ref: o
|
|
5051
5082
|
});
|
|
5052
5083
|
}
|
|
5053
|
-
function
|
|
5084
|
+
function Ku({ children: e, className: t, emptyContent: n, id: r, items: i, ref: a, ...o }) {
|
|
5054
5085
|
let s = P(a), c = G(n);
|
|
5055
5086
|
return h(Vt, {
|
|
5056
5087
|
...o,
|
|
@@ -5063,7 +5094,7 @@ function Gu({ children: e, className: t, emptyContent: n, id: r, items: i, ref:
|
|
|
5063
5094
|
renderEmptyState: () => c
|
|
5064
5095
|
});
|
|
5065
5096
|
}
|
|
5066
|
-
function
|
|
5097
|
+
function qu({ children: e, className: t, id: n, items: r, ref: i, ...a }) {
|
|
5067
5098
|
let o = P(i);
|
|
5068
5099
|
return h(Ht, {
|
|
5069
5100
|
...a,
|
|
@@ -5075,7 +5106,7 @@ function Ku({ children: e, className: t, id: n, items: r, ref: i, ...a }) {
|
|
|
5075
5106
|
ref: o
|
|
5076
5107
|
});
|
|
5077
5108
|
}
|
|
5078
|
-
function
|
|
5109
|
+
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
5110
|
let u = P(o), d = _((t) => {
|
|
5080
5111
|
u(t), t && (e ? t.setAttribute("aria-describedby", e) : t.removeAttribute("aria-describedby"));
|
|
5081
5112
|
}, [e, u]);
|
|
@@ -5096,24 +5127,26 @@ function qu({ "aria-describedby": e, className: t, disabled: n = !1, id: r, onAc
|
|
|
5096
5127
|
textValue: s
|
|
5097
5128
|
});
|
|
5098
5129
|
}
|
|
5099
|
-
function
|
|
5100
|
-
let
|
|
5101
|
-
|
|
5102
|
-
}, [
|
|
5130
|
+
function Yu({ align: e = "start", className: t, column: n, colSpan: r, presentation: i = "data", ref: a, textValue: o, ...s }) {
|
|
5131
|
+
let c = P(a), l = Ru(r), u = l === void 0 || l <= 1 ? void 0 : { gridColumn: `span ${l} / span ${l}` }, d = _((e) => {
|
|
5132
|
+
c(e), Bu(e?.closest("[data-breeze-table]") ?? null);
|
|
5133
|
+
}, [c]);
|
|
5103
5134
|
return h(Lt, {
|
|
5104
|
-
...
|
|
5135
|
+
...s,
|
|
5105
5136
|
className: Iu({
|
|
5106
5137
|
align: e,
|
|
5107
5138
|
class: t,
|
|
5108
|
-
presentation:
|
|
5139
|
+
presentation: i
|
|
5109
5140
|
}),
|
|
5141
|
+
colSpan: l,
|
|
5110
5142
|
"data-breeze-cell-column": String(n),
|
|
5111
|
-
ref:
|
|
5112
|
-
|
|
5143
|
+
ref: d,
|
|
5144
|
+
style: u,
|
|
5145
|
+
textValue: o
|
|
5113
5146
|
});
|
|
5114
5147
|
}
|
|
5115
|
-
function
|
|
5116
|
-
return h(
|
|
5148
|
+
function Xu({ position: e = "overlay", ...n }) {
|
|
5149
|
+
return h(Yu, {
|
|
5117
5150
|
...n,
|
|
5118
5151
|
children: /* @__PURE__ */ M(t, {
|
|
5119
5152
|
className: "!block",
|
|
@@ -5122,7 +5155,7 @@ function Yu({ position: e = "overlay", ...n }) {
|
|
|
5122
5155
|
presentation: e === "overlay" ? "disclosure" : "data"
|
|
5123
5156
|
});
|
|
5124
5157
|
}
|
|
5125
|
-
function
|
|
5158
|
+
function Zu({ className: e, loading: t = !1, offset: n = 1, onLoadMore: r, ref: i, ...a }) {
|
|
5126
5159
|
let o = P(i), s = Pa({
|
|
5127
5160
|
loading: t,
|
|
5128
5161
|
onLoadMore: r
|
|
@@ -5140,35 +5173,35 @@ function Xu({ className: e, loading: t = !1, offset: n = 1, onLoadMore: r, ref:
|
|
|
5140
5173
|
scrollOffset: n
|
|
5141
5174
|
});
|
|
5142
5175
|
}
|
|
5143
|
-
var
|
|
5144
|
-
Body:
|
|
5145
|
-
Cell:
|
|
5146
|
-
Column:
|
|
5147
|
-
Disclosure:
|
|
5148
|
-
Footer:
|
|
5149
|
-
Header:
|
|
5150
|
-
LoadMore:
|
|
5151
|
-
Root:
|
|
5152
|
-
Row:
|
|
5153
|
-
},
|
|
5176
|
+
var Qu = {
|
|
5177
|
+
Body: Ku,
|
|
5178
|
+
Cell: Yu,
|
|
5179
|
+
Column: Uu,
|
|
5180
|
+
Disclosure: Xu,
|
|
5181
|
+
Footer: qu,
|
|
5182
|
+
Header: Gu,
|
|
5183
|
+
LoadMore: Zu,
|
|
5184
|
+
Root: Vu,
|
|
5185
|
+
Row: Ju
|
|
5186
|
+
}, $u = A({
|
|
5154
5187
|
base: "flex gap-4",
|
|
5155
5188
|
defaultVariants: { orientation: "horizontal" },
|
|
5156
5189
|
variants: { orientation: {
|
|
5157
5190
|
horizontal: "flex-col",
|
|
5158
5191
|
vertical: "flex-row items-start"
|
|
5159
5192
|
} }
|
|
5160
|
-
}),
|
|
5193
|
+
}), ed = A({
|
|
5161
5194
|
base: "flex gap-1 border-[var(--breeze-border)]",
|
|
5162
5195
|
defaultVariants: { orientation: "horizontal" },
|
|
5163
5196
|
variants: { orientation: {
|
|
5164
5197
|
horizontal: "flex-row border-b",
|
|
5165
5198
|
vertical: "flex-col border-e"
|
|
5166
5199
|
} }
|
|
5167
|
-
}),
|
|
5168
|
-
function
|
|
5200
|
+
}), 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)]" });
|
|
5201
|
+
function rd({ className: e, defaultValue: t, disabled: n = !1, onChange: r, orientation: i = "horizontal", readOnly: a, ref: o, value: s, ...c }) {
|
|
5169
5202
|
return F(), h(Yt, {
|
|
5170
5203
|
...c,
|
|
5171
|
-
className:
|
|
5204
|
+
className: $u({
|
|
5172
5205
|
class: e,
|
|
5173
5206
|
orientation: i
|
|
5174
5207
|
}),
|
|
@@ -5180,53 +5213,53 @@ function nd({ className: e, defaultValue: t, disabled: n = !1, onChange: r, orie
|
|
|
5180
5213
|
selectedKey: s
|
|
5181
5214
|
});
|
|
5182
5215
|
}
|
|
5183
|
-
function
|
|
5216
|
+
function id({ className: e, ref: t, ...n }) {
|
|
5184
5217
|
return h(Kt, {
|
|
5185
5218
|
...n,
|
|
5186
|
-
className: ({ orientation: t }) =>
|
|
5219
|
+
className: ({ orientation: t }) => ed({
|
|
5187
5220
|
class: e,
|
|
5188
5221
|
orientation: t
|
|
5189
5222
|
}),
|
|
5190
5223
|
ref: P(t)
|
|
5191
5224
|
});
|
|
5192
5225
|
}
|
|
5193
|
-
function
|
|
5226
|
+
function ad({ className: e, disabled: t = !1, id: n, ref: r, ...i }) {
|
|
5194
5227
|
return h(Gt, {
|
|
5195
5228
|
...i,
|
|
5196
|
-
className:
|
|
5229
|
+
className: td({ class: e }),
|
|
5197
5230
|
id: n,
|
|
5198
5231
|
isDisabled: t,
|
|
5199
5232
|
ref: P(r)
|
|
5200
5233
|
});
|
|
5201
5234
|
}
|
|
5202
|
-
function
|
|
5235
|
+
function od({ className: e, ref: t, ...n }) {
|
|
5203
5236
|
return h(Jt, {
|
|
5204
5237
|
...n,
|
|
5205
5238
|
className: e,
|
|
5206
5239
|
ref: P(t)
|
|
5207
5240
|
});
|
|
5208
5241
|
}
|
|
5209
|
-
function
|
|
5242
|
+
function sd({ className: e, forceMount: t = !1, id: n, ref: r, ...i }) {
|
|
5210
5243
|
return h(qt, {
|
|
5211
5244
|
...i,
|
|
5212
|
-
className:
|
|
5245
|
+
className: nd({ class: e }),
|
|
5213
5246
|
id: n,
|
|
5214
5247
|
ref: P(r),
|
|
5215
5248
|
shouldForceMount: t
|
|
5216
5249
|
});
|
|
5217
5250
|
}
|
|
5218
|
-
var
|
|
5219
|
-
List:
|
|
5220
|
-
Panel:
|
|
5221
|
-
Panels:
|
|
5222
|
-
Root:
|
|
5223
|
-
Tab:
|
|
5224
|
-
},
|
|
5225
|
-
function
|
|
5251
|
+
var cd = {
|
|
5252
|
+
List: id,
|
|
5253
|
+
Panel: sd,
|
|
5254
|
+
Panels: od,
|
|
5255
|
+
Root: rd,
|
|
5256
|
+
Tab: ad
|
|
5257
|
+
}, 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" });
|
|
5258
|
+
function ud({ className: e, disabled: t = !1, id: n, onAction: r, ref: i, ...a }) {
|
|
5226
5259
|
let o = P(i);
|
|
5227
5260
|
return h(Xt, {
|
|
5228
5261
|
...a,
|
|
5229
|
-
className:
|
|
5262
|
+
className: ld({ class: e }),
|
|
5230
5263
|
id: n,
|
|
5231
5264
|
isDisabled: t,
|
|
5232
5265
|
onAction: r ? () => r(n) : void 0,
|
|
@@ -5236,40 +5269,40 @@ function ld({ className: e, disabled: t = !1, id: n, onAction: r, ref: i, ...a }
|
|
|
5236
5269
|
}
|
|
5237
5270
|
//#endregion
|
|
5238
5271
|
//#region src/primitives/TagGroup/TagGroup.tsx
|
|
5239
|
-
var
|
|
5240
|
-
function
|
|
5272
|
+
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];
|
|
5273
|
+
function md({ children: e, className: t, defaultSelection: n, disabledKeys: r, onRemove: i, onSelectionChange: a, readOnly: o = !1, ref: s, selection: c, ...l }) {
|
|
5241
5274
|
F();
|
|
5242
5275
|
let u = P(s);
|
|
5243
5276
|
return h(Zt, {
|
|
5244
5277
|
...l,
|
|
5245
5278
|
children: e,
|
|
5246
|
-
className:
|
|
5279
|
+
className: dd({ class: t }),
|
|
5247
5280
|
defaultSelectedKeys: n,
|
|
5248
5281
|
disabledKeys: r,
|
|
5249
5282
|
onRemove: o || !i ? void 0 : (e) => i([...e]),
|
|
5250
|
-
onSelectionChange: o ? void 0 : (e) => a?.(
|
|
5283
|
+
onSelectionChange: o ? void 0 : (e) => a?.(pd(e)),
|
|
5251
5284
|
ref: u,
|
|
5252
5285
|
selectedKeys: c,
|
|
5253
5286
|
selectionMode: c !== void 0 || n !== void 0 || a !== void 0 ? "multiple" : "none"
|
|
5254
5287
|
});
|
|
5255
5288
|
}
|
|
5256
|
-
function
|
|
5289
|
+
function hd({ children: e, className: t, emptyContent: n, items: r, ref: i, ...a }) {
|
|
5257
5290
|
let o = P(i), s = G(n);
|
|
5258
5291
|
return h(Qt, {
|
|
5259
5292
|
...a,
|
|
5260
5293
|
children: e,
|
|
5261
|
-
className:
|
|
5294
|
+
className: fd({ class: t }),
|
|
5262
5295
|
items: r,
|
|
5263
5296
|
ref: o,
|
|
5264
5297
|
renderEmptyState: () => s
|
|
5265
5298
|
});
|
|
5266
5299
|
}
|
|
5267
|
-
var
|
|
5300
|
+
var gd = {
|
|
5268
5301
|
Description: X.Description,
|
|
5269
5302
|
Label: X.Label,
|
|
5270
|
-
List:
|
|
5271
|
-
Root:
|
|
5272
|
-
},
|
|
5303
|
+
List: hd,
|
|
5304
|
+
Root: md
|
|
5305
|
+
}, _d = A({
|
|
5273
5306
|
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
5307
|
defaultVariants: { size: "md" },
|
|
5275
5308
|
variants: { size: {
|
|
@@ -5278,25 +5311,25 @@ var hd = {
|
|
|
5278
5311
|
sm: "min-h-20 px-2.5 py-1.5 text-xs"
|
|
5279
5312
|
} }
|
|
5280
5313
|
});
|
|
5281
|
-
function
|
|
5314
|
+
function vd({ className: e, ref: t, size: n, ...r }) {
|
|
5282
5315
|
let i = P(t);
|
|
5283
5316
|
return h(ge, {
|
|
5284
5317
|
...r,
|
|
5285
|
-
className:
|
|
5318
|
+
className: _d({
|
|
5286
5319
|
class: e,
|
|
5287
5320
|
size: n
|
|
5288
5321
|
}),
|
|
5289
5322
|
ref: i
|
|
5290
5323
|
});
|
|
5291
5324
|
}
|
|
5292
|
-
var
|
|
5293
|
-
Control:
|
|
5325
|
+
var yd = {
|
|
5326
|
+
Control: vd,
|
|
5294
5327
|
Description: X.Description,
|
|
5295
5328
|
Error: X.Error,
|
|
5296
5329
|
Label: X.Label,
|
|
5297
5330
|
Root: X.Root
|
|
5298
|
-
},
|
|
5299
|
-
function
|
|
5331
|
+
}, bd = A({ base: "flex min-w-0 flex-col gap-1.5" });
|
|
5332
|
+
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
5333
|
F();
|
|
5301
5334
|
let _ = P(f), v = P(a), y = [
|
|
5302
5335
|
m,
|
|
@@ -5307,7 +5340,7 @@ function bd({ children: e, className: t, defaultValue: n, disabled: r = !1, form
|
|
|
5307
5340
|
return h(ut, {
|
|
5308
5341
|
...g,
|
|
5309
5342
|
children: e,
|
|
5310
|
-
className:
|
|
5343
|
+
className: bd({ class: t }),
|
|
5311
5344
|
defaultValue: Ri(n ?? null) ?? void 0,
|
|
5312
5345
|
form: i,
|
|
5313
5346
|
granularity: y ? "second" : "minute",
|
|
@@ -5324,13 +5357,13 @@ function bd({ children: e, className: t, defaultValue: n, disabled: r = !1, form
|
|
|
5324
5357
|
value: m === void 0 ? void 0 : Ri(m)
|
|
5325
5358
|
});
|
|
5326
5359
|
}
|
|
5327
|
-
var
|
|
5360
|
+
var Sd = {
|
|
5328
5361
|
Description: X.Description,
|
|
5329
5362
|
Error: X.Error,
|
|
5330
5363
|
Input: $,
|
|
5331
5364
|
Label: X.Label,
|
|
5332
|
-
Root:
|
|
5333
|
-
},
|
|
5365
|
+
Root: xd
|
|
5366
|
+
}, Cd = 5e3, wd = A({
|
|
5334
5367
|
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
5368
|
defaultVariants: { variant: "info" },
|
|
5336
5369
|
variants: { variant: {
|
|
@@ -5343,25 +5376,25 @@ var xd = {
|
|
|
5343
5376
|
success: "border-[var(--breeze-success)] bg-[var(--breeze-success-soft)] text-[var(--breeze-ink)]",
|
|
5344
5377
|
warning: "border-[var(--breeze-warning)] bg-[var(--breeze-warning-soft)] text-[var(--breeze-ink)]"
|
|
5345
5378
|
} }
|
|
5346
|
-
}),
|
|
5347
|
-
function
|
|
5348
|
-
return h(nn, { className:
|
|
5349
|
-
className:
|
|
5379
|
+
}), 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);
|
|
5380
|
+
function Nd({ action: e, closeLabel: t, description: n, onAction: r, onDismiss: i, title: a }) {
|
|
5381
|
+
return h(nn, { className: Ed() }, h("div", { className: Dd() }, h(en, {
|
|
5382
|
+
className: Od(),
|
|
5350
5383
|
slot: "title"
|
|
5351
5384
|
}, a), n === void 0 ? null : h(en, {
|
|
5352
|
-
className:
|
|
5385
|
+
className: kd(),
|
|
5353
5386
|
slot: "description"
|
|
5354
5387
|
}, n), e === void 0 ? null : h($t, {
|
|
5355
|
-
className:
|
|
5388
|
+
className: Ad(),
|
|
5356
5389
|
onPress: r
|
|
5357
5390
|
}, e.label)), h($t, {
|
|
5358
5391
|
"aria-label": t,
|
|
5359
|
-
className:
|
|
5392
|
+
className: jd(),
|
|
5360
5393
|
onPress: i,
|
|
5361
5394
|
slot: "close"
|
|
5362
5395
|
}, "×"));
|
|
5363
5396
|
}
|
|
5364
|
-
function
|
|
5397
|
+
function Pd({ action: e, className: t, closeLabel: n, description: r, onDismiss: i, ref: a, title: o, variant: s = "info", ...c }) {
|
|
5365
5398
|
let { messages: l } = F(), u = b(), d = b(), f = e === void 0 ? void 0 : () => {
|
|
5366
5399
|
e.onAction(), i();
|
|
5367
5400
|
};
|
|
@@ -5372,7 +5405,7 @@ function Nd({ action: e, className: t, closeLabel: n, description: r, onDismiss:
|
|
|
5372
5405
|
"aria-labelledby": u,
|
|
5373
5406
|
"aria-live": "polite",
|
|
5374
5407
|
"aria-modal": "false",
|
|
5375
|
-
className:
|
|
5408
|
+
className: wd({
|
|
5376
5409
|
class: t,
|
|
5377
5410
|
variant: s
|
|
5378
5411
|
}),
|
|
@@ -5380,30 +5413,30 @@ function Nd({ action: e, className: t, closeLabel: n, description: r, onDismiss:
|
|
|
5380
5413
|
ref: P(a),
|
|
5381
5414
|
role: "alertdialog",
|
|
5382
5415
|
tabIndex: 0
|
|
5383
|
-
}, h("div", { className:
|
|
5384
|
-
className:
|
|
5416
|
+
}, h("div", { className: Ed() }, h("div", { className: Dd() }, h("div", {
|
|
5417
|
+
className: Od(),
|
|
5385
5418
|
id: u
|
|
5386
5419
|
}, o), r === void 0 ? null : h("div", {
|
|
5387
|
-
className:
|
|
5420
|
+
className: kd(),
|
|
5388
5421
|
id: d
|
|
5389
5422
|
}, r), e === void 0 ? null : h($t, {
|
|
5390
|
-
className:
|
|
5423
|
+
className: Ad(),
|
|
5391
5424
|
onPress: f
|
|
5392
5425
|
}, e.label)), h($t, {
|
|
5393
5426
|
"aria-label": n ?? l.close,
|
|
5394
|
-
className:
|
|
5427
|
+
className: jd(),
|
|
5395
5428
|
onPress: i
|
|
5396
5429
|
}, "×")));
|
|
5397
5430
|
}
|
|
5398
|
-
function
|
|
5399
|
-
let i = v(
|
|
5431
|
+
function Fd({ className: e, label: t, ref: n, ...r }) {
|
|
5432
|
+
let i = v(Md), a = P(n);
|
|
5400
5433
|
if (i === null) throw Error("ToastRegion must be rendered within BreezeProvider.");
|
|
5401
5434
|
let o = ({ toast: e }) => {
|
|
5402
5435
|
let { action: t, description: n, title: r, variant: a } = e.content, o = t === void 0 ? void 0 : () => {
|
|
5403
5436
|
t.onAction(), i.controller.dismiss(e.key);
|
|
5404
5437
|
};
|
|
5405
5438
|
return h(tn, {
|
|
5406
|
-
children: h(
|
|
5439
|
+
children: h(Nd, {
|
|
5407
5440
|
action: t,
|
|
5408
5441
|
closeLabel: i.closeLabel,
|
|
5409
5442
|
description: n,
|
|
@@ -5413,7 +5446,7 @@ function Pd({ className: e, label: t, ref: n, ...r }) {
|
|
|
5413
5446
|
},
|
|
5414
5447
|
title: r
|
|
5415
5448
|
}),
|
|
5416
|
-
className:
|
|
5449
|
+
className: wd({ variant: a }),
|
|
5417
5450
|
"data-variant": a,
|
|
5418
5451
|
toast: e
|
|
5419
5452
|
});
|
|
@@ -5422,21 +5455,21 @@ function Pd({ className: e, label: t, ref: n, ...r }) {
|
|
|
5422
5455
|
...r,
|
|
5423
5456
|
"aria-label": t ?? i.regionLabel,
|
|
5424
5457
|
children: o,
|
|
5425
|
-
className:
|
|
5458
|
+
className: Td({ class: e }),
|
|
5426
5459
|
queue: i.queue,
|
|
5427
5460
|
ref: a
|
|
5428
5461
|
});
|
|
5429
5462
|
}
|
|
5430
|
-
function
|
|
5463
|
+
function Id(e) {
|
|
5431
5464
|
if (e !== null && (!Number.isFinite(e) || e < 0)) throw RangeError("Toast lifetime must be null or a finite non-negative number of milliseconds.");
|
|
5432
5465
|
}
|
|
5433
|
-
function
|
|
5466
|
+
function Ld({ children: e, closeLabel: t, limit: n, regionLabel: r }) {
|
|
5434
5467
|
let i = S(() => new rn({ maxVisibleToasts: n }), [n]), a = S(() => ({
|
|
5435
5468
|
dismiss: (e) => {
|
|
5436
5469
|
i.close(e);
|
|
5437
5470
|
},
|
|
5438
|
-
show: ({ action: e, description: t, lifetime: n =
|
|
5439
|
-
|
|
5471
|
+
show: ({ action: e, description: t, lifetime: n = Cd, onDismiss: r, title: a, variant: o = "info" }) => {
|
|
5472
|
+
Id(n);
|
|
5440
5473
|
let s = i.add({
|
|
5441
5474
|
action: e,
|
|
5442
5475
|
description: t,
|
|
@@ -5461,16 +5494,16 @@ function Id({ children: e, closeLabel: t, limit: n, regionLabel: r }) {
|
|
|
5461
5494
|
]);
|
|
5462
5495
|
return y(() => () => {
|
|
5463
5496
|
i.pauseAll(), i.clear();
|
|
5464
|
-
}, [i]), h(
|
|
5497
|
+
}, [i]), h(Md, { value: o }, e, h(Fd));
|
|
5465
5498
|
}
|
|
5466
|
-
function
|
|
5467
|
-
let e = v(
|
|
5499
|
+
function Rd() {
|
|
5500
|
+
let e = v(Md);
|
|
5468
5501
|
if (e === null) throw Error("useToast must be called within BreezeProvider.");
|
|
5469
5502
|
return e.controller;
|
|
5470
5503
|
}
|
|
5471
5504
|
//#endregion
|
|
5472
5505
|
//#region src/primitives/Toolbar/Toolbar.tsx
|
|
5473
|
-
var
|
|
5506
|
+
var zd = A({
|
|
5474
5507
|
base: "flex gap-2",
|
|
5475
5508
|
defaultVariants: { orientation: "horizontal" },
|
|
5476
5509
|
variants: { orientation: {
|
|
@@ -5478,12 +5511,12 @@ var Rd = A({
|
|
|
5478
5511
|
vertical: "flex-col items-stretch"
|
|
5479
5512
|
} }
|
|
5480
5513
|
});
|
|
5481
|
-
function
|
|
5514
|
+
function Bd({ children: e, className: t, orientation: n, ref: r, ...i }) {
|
|
5482
5515
|
F();
|
|
5483
5516
|
let a = P(r);
|
|
5484
5517
|
return h(on, {
|
|
5485
5518
|
...i,
|
|
5486
|
-
className:
|
|
5519
|
+
className: zd({
|
|
5487
5520
|
class: t,
|
|
5488
5521
|
orientation: n
|
|
5489
5522
|
}),
|
|
@@ -5493,7 +5526,7 @@ function zd({ children: e, className: t, orientation: n, ref: r, ...i }) {
|
|
|
5493
5526
|
}
|
|
5494
5527
|
//#endregion
|
|
5495
5528
|
//#region src/primitives/Tooltip/Tooltip.tsx
|
|
5496
|
-
var
|
|
5529
|
+
var Vd = A({
|
|
5497
5530
|
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
5531
|
defaultVariants: { variant: "secondary" },
|
|
5499
5532
|
variants: { variant: {
|
|
@@ -5501,7 +5534,7 @@ var Bd = A({
|
|
|
5501
5534
|
primary: "border-[var(--breeze-primary)] bg-[var(--breeze-primary)] text-[var(--breeze-ink-inverse)]",
|
|
5502
5535
|
secondary: "border-[var(--breeze-border-strong)] bg-[var(--breeze-ink)] text-[var(--breeze-ink-inverse)]"
|
|
5503
5536
|
} }
|
|
5504
|
-
}),
|
|
5537
|
+
}), Hd = A({
|
|
5505
5538
|
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
5539
|
defaultVariants: { variant: "secondary" },
|
|
5507
5540
|
variants: { variant: {
|
|
@@ -5510,7 +5543,7 @@ var Bd = A({
|
|
|
5510
5543
|
secondary: "text-[var(--breeze-ink-muted)]"
|
|
5511
5544
|
} }
|
|
5512
5545
|
});
|
|
5513
|
-
function
|
|
5546
|
+
function Ud({ closeDelay: e = 0, defaultOpen: t, delay: n = 700, onOpenChange: r, open: i, readOnly: a, ...o }) {
|
|
5514
5547
|
return F(), h(ln, {
|
|
5515
5548
|
...o,
|
|
5516
5549
|
closeDelay: e,
|
|
@@ -5520,25 +5553,27 @@ function Hd({ closeDelay: e = 0, defaultOpen: t, delay: n = 700, onOpenChange: r
|
|
|
5520
5553
|
onOpenChange: r
|
|
5521
5554
|
});
|
|
5522
5555
|
}
|
|
5523
|
-
var
|
|
5524
|
-
function
|
|
5556
|
+
var Wd = L;
|
|
5557
|
+
function Gd({ "aria-label": e, children: t, className: n, ref: r, variant: i = "secondary", ...a }) {
|
|
5558
|
+
let o = P(r), s = b();
|
|
5525
5559
|
return /* @__PURE__ */ M(sn, {
|
|
5526
|
-
ref:
|
|
5560
|
+
ref: o,
|
|
5527
5561
|
children: h("span", {
|
|
5528
|
-
...
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5562
|
+
...a,
|
|
5563
|
+
"aria-labelledby": s,
|
|
5564
|
+
className: Hd({
|
|
5565
|
+
class: n,
|
|
5566
|
+
variant: i
|
|
5532
5567
|
}),
|
|
5533
5568
|
role: "img",
|
|
5534
5569
|
tabIndex: 0
|
|
5535
|
-
}, e)
|
|
5570
|
+
}, h(au, { id: s }, e), t)
|
|
5536
5571
|
});
|
|
5537
5572
|
}
|
|
5538
|
-
function
|
|
5573
|
+
function Kd({ className: e, offset: t = 6, placement: n = "top", ref: r, variant: i = "secondary", ...a }) {
|
|
5539
5574
|
return F(), h(cn, {
|
|
5540
5575
|
...a,
|
|
5541
|
-
className:
|
|
5576
|
+
className: Vd({
|
|
5542
5577
|
class: e,
|
|
5543
5578
|
variant: i
|
|
5544
5579
|
}),
|
|
@@ -5547,12 +5582,12 @@ function Gd({ className: e, offset: t = 6, placement: n = "top", ref: r, variant
|
|
|
5547
5582
|
ref: P(r)
|
|
5548
5583
|
});
|
|
5549
5584
|
}
|
|
5550
|
-
var
|
|
5551
|
-
Content:
|
|
5552
|
-
IconTrigger:
|
|
5553
|
-
Root:
|
|
5554
|
-
Trigger:
|
|
5555
|
-
},
|
|
5585
|
+
var qd = {
|
|
5586
|
+
Content: Kd,
|
|
5587
|
+
IconTrigger: Gd,
|
|
5588
|
+
Root: Ud,
|
|
5589
|
+
Trigger: Wd
|
|
5590
|
+
}, Jd = A({
|
|
5556
5591
|
base: "m-0 min-w-0",
|
|
5557
5592
|
compoundVariants: [{
|
|
5558
5593
|
class: "mb-4",
|
|
@@ -5632,7 +5667,7 @@ var Kd = {
|
|
|
5632
5667
|
semibold: "font-semibold"
|
|
5633
5668
|
}
|
|
5634
5669
|
}
|
|
5635
|
-
}),
|
|
5670
|
+
}), Yd = {
|
|
5636
5671
|
dt: "label",
|
|
5637
5672
|
h1: "h1",
|
|
5638
5673
|
h2: "h2",
|
|
@@ -5641,22 +5676,22 @@ var Kd = {
|
|
|
5641
5676
|
h5: "h5",
|
|
5642
5677
|
h6: "h6",
|
|
5643
5678
|
strong: "label"
|
|
5644
|
-
},
|
|
5679
|
+
}, Xd = /* @__PURE__ */ new Set([
|
|
5645
5680
|
"em",
|
|
5646
5681
|
"small",
|
|
5647
5682
|
"span",
|
|
5648
5683
|
"strong"
|
|
5649
5684
|
]);
|
|
5650
|
-
function
|
|
5685
|
+
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
5686
|
F();
|
|
5652
|
-
let f = a ??
|
|
5687
|
+
let f = a ?? Yd[t] ?? "body", p = P(s);
|
|
5653
5688
|
return h(t, {
|
|
5654
5689
|
...d,
|
|
5655
|
-
className:
|
|
5690
|
+
className: Jd({
|
|
5656
5691
|
align: e,
|
|
5657
5692
|
class: n,
|
|
5658
5693
|
colour: r,
|
|
5659
|
-
gutterBottom: i && !
|
|
5694
|
+
gutterBottom: i && !Xd.has(t),
|
|
5660
5695
|
level: f,
|
|
5661
5696
|
lineClamp: o ?? "none",
|
|
5662
5697
|
tabularNumbers: c,
|
|
@@ -5668,7 +5703,7 @@ function Xd({ align: e, as: t = "p", className: n, colour: r, gutterBottom: i =
|
|
|
5668
5703
|
}
|
|
5669
5704
|
//#endregion
|
|
5670
5705
|
//#region src/provider/messages.ts
|
|
5671
|
-
var
|
|
5706
|
+
var Qd = {
|
|
5672
5707
|
clear: "Clear",
|
|
5673
5708
|
close: "Close",
|
|
5674
5709
|
fileCountRejection: "Only one file may be selected.",
|
|
@@ -5688,15 +5723,15 @@ var Zd = {
|
|
|
5688
5723
|
showPassword: "Show password",
|
|
5689
5724
|
unreadNotifications: "Unread notifications"
|
|
5690
5725
|
};
|
|
5691
|
-
function
|
|
5726
|
+
function $d(e = {}) {
|
|
5692
5727
|
return {
|
|
5693
|
-
...
|
|
5728
|
+
...Qd,
|
|
5694
5729
|
...e
|
|
5695
5730
|
};
|
|
5696
5731
|
}
|
|
5697
5732
|
//#endregion
|
|
5698
5733
|
//#region src/provider/BreezeProvider.tsx
|
|
5699
|
-
var
|
|
5734
|
+
var ef = /* @__PURE__ */ new Set([
|
|
5700
5735
|
"ar",
|
|
5701
5736
|
"ckb",
|
|
5702
5737
|
"dv",
|
|
@@ -5709,11 +5744,11 @@ var $d = /* @__PURE__ */ new Set([
|
|
|
5709
5744
|
"ur",
|
|
5710
5745
|
"yi"
|
|
5711
5746
|
]);
|
|
5712
|
-
function
|
|
5747
|
+
function tf(e) {
|
|
5713
5748
|
let { language: t } = new Intl.Locale(e);
|
|
5714
|
-
return
|
|
5749
|
+
return ef.has(t) ? "rtl" : "ltr";
|
|
5715
5750
|
}
|
|
5716
|
-
function
|
|
5751
|
+
function nf(e, t, n) {
|
|
5717
5752
|
let { dataset: r } = e;
|
|
5718
5753
|
if (n === void 0) {
|
|
5719
5754
|
delete r[t];
|
|
@@ -5721,16 +5756,16 @@ function tf(e, t, n) {
|
|
|
5721
5756
|
}
|
|
5722
5757
|
r[t] = n;
|
|
5723
5758
|
}
|
|
5724
|
-
function
|
|
5759
|
+
function rf(e, t, n) {
|
|
5725
5760
|
if (n === null) {
|
|
5726
5761
|
e.removeAttribute(t);
|
|
5727
5762
|
return;
|
|
5728
5763
|
}
|
|
5729
5764
|
e.setAttribute(t, n);
|
|
5730
5765
|
}
|
|
5731
|
-
function
|
|
5766
|
+
function af({ children: e, direction: t, locale: n, messages: r, portalContainer: i, router: a, timeZone: o, toastLimit: s = 3 }) {
|
|
5732
5767
|
if (!Number.isInteger(s) || s < 1) throw RangeError("BreezeProvider toastLimit must be a positive integer.");
|
|
5733
|
-
let [c, l] = w(null), u = t ??
|
|
5768
|
+
let [c, l] = w(null), u = t ?? tf(n), d = S(() => $d(r), [r]), f = i ?? c, p = C(f);
|
|
5734
5769
|
p.current = f;
|
|
5735
5770
|
let m = _(() => p.current, []), h = i === void 0 && typeof document < "u" ? fn(/* @__PURE__ */ M("div", {
|
|
5736
5771
|
"data-breeze-portal-root": "",
|
|
@@ -5743,7 +5778,7 @@ function rf({ children: e, direction: t, locale: n, messages: r, portalContainer
|
|
|
5743
5778
|
if (i == null) return;
|
|
5744
5779
|
let { dataset: e } = i, t = e.breezePortalRoot, r = e.breezeRoot, a = i.getAttribute("dir"), o = i.getAttribute("lang");
|
|
5745
5780
|
return e.breezePortalRoot = "", e.breezeRoot = "", i.setAttribute("dir", u), i.setAttribute("lang", n), () => {
|
|
5746
|
-
|
|
5781
|
+
nf(i, "breezePortalRoot", t), nf(i, "breezeRoot", r), rf(i, "dir", a), rf(i, "lang", o);
|
|
5747
5782
|
};
|
|
5748
5783
|
}, [
|
|
5749
5784
|
n,
|
|
@@ -5769,7 +5804,7 @@ function rf({ children: e, direction: t, locale: n, messages: r, portalContainer
|
|
|
5769
5804
|
a,
|
|
5770
5805
|
o
|
|
5771
5806
|
]),
|
|
5772
|
-
children: /* @__PURE__ */ N(
|
|
5807
|
+
children: /* @__PURE__ */ N(Ld, {
|
|
5773
5808
|
closeLabel: d.close,
|
|
5774
5809
|
limit: s,
|
|
5775
5810
|
regionLabel: d.notifications,
|
|
@@ -5785,6 +5820,6 @@ function rf({ children: e, direction: t, locale: n, messages: r, portalContainer
|
|
|
5785
5820
|
});
|
|
5786
5821
|
}
|
|
5787
5822
|
//#endregion
|
|
5788
|
-
export { Ti as Accordion, Oi as Alert, W as AlertDialog, Bn as ApplicationShell, hi as Avatar, Ai as Badge, Fi as Breadcrumbs,
|
|
5823
|
+
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
5824
|
|
|
5790
5825
|
//# sourceMappingURL=index.js.map
|