@gnome-ui/react 1.13.0 → 1.15.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/dist/components/ColorPicker/ColorPicker.d.ts +70 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/components/Timeline/Timeline.d.ts +55 -0
- package/dist/components/Timeline/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +721 -597
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -538,7 +538,7 @@ var Me = {
|
|
|
538
538
|
d: "M13.5 3 6 11.5 2.5 8 1 9.5l5 5 9-10z",
|
|
539
539
|
fillRule: "evenodd"
|
|
540
540
|
}]
|
|
541
|
-
},
|
|
541
|
+
}, I = {
|
|
542
542
|
wrapper: "_wrapper_1rkb1_3",
|
|
543
543
|
open: "_open_1rkb1_13",
|
|
544
544
|
bar: "_bar_1rkb1_20",
|
|
@@ -551,7 +551,7 @@ var Me = {
|
|
|
551
551
|
};
|
|
552
552
|
//#endregion
|
|
553
553
|
//#region src/components/SearchBar/SearchBar.tsx
|
|
554
|
-
function
|
|
554
|
+
function Re({ open: e, onClose: r, onClear: i, children: a, value: o, onChange: c, placeholder: u = "Search…", disabled: f, inline: p = !1, className: m, ...h }) {
|
|
555
555
|
let g = d(null);
|
|
556
556
|
l(() => {
|
|
557
557
|
if (e) {
|
|
@@ -564,20 +564,20 @@ function ze({ open: e, onClose: r, onClear: i, children: a, value: o, onChange:
|
|
|
564
564
|
}, [r, h]), v = o !== void 0 && o !== "";
|
|
565
565
|
return /* @__PURE__ */ n("div", {
|
|
566
566
|
className: [
|
|
567
|
-
|
|
568
|
-
e ?
|
|
567
|
+
I.wrapper,
|
|
568
|
+
e ? I.open : null,
|
|
569
569
|
m
|
|
570
570
|
].filter(Boolean).join(" "),
|
|
571
571
|
"aria-hidden": !e,
|
|
572
572
|
children: [/* @__PURE__ */ n("div", {
|
|
573
573
|
className: [
|
|
574
|
-
|
|
575
|
-
p ?
|
|
576
|
-
f ?
|
|
574
|
+
I.bar,
|
|
575
|
+
p ? I.inline : null,
|
|
576
|
+
f ? I.disabled : null
|
|
577
577
|
].filter(Boolean).join(" "),
|
|
578
578
|
children: [
|
|
579
579
|
/* @__PURE__ */ t("span", {
|
|
580
|
-
className:
|
|
580
|
+
className: I.searchIcon,
|
|
581
581
|
"aria-hidden": !0,
|
|
582
582
|
children: /* @__PURE__ */ t(F, {
|
|
583
583
|
icon: Pe,
|
|
@@ -593,13 +593,13 @@ function ze({ open: e, onClose: r, onClear: i, children: a, value: o, onChange:
|
|
|
593
593
|
placeholder: u,
|
|
594
594
|
disabled: f,
|
|
595
595
|
tabIndex: e ? void 0 : -1,
|
|
596
|
-
className:
|
|
596
|
+
className: I.input,
|
|
597
597
|
onKeyDown: _,
|
|
598
598
|
...h
|
|
599
599
|
}),
|
|
600
600
|
v && /* @__PURE__ */ t("button", {
|
|
601
601
|
type: "button",
|
|
602
|
-
className:
|
|
602
|
+
className: I.clearButton,
|
|
603
603
|
"aria-label": "Clear search",
|
|
604
604
|
tabIndex: e ? void 0 : -1,
|
|
605
605
|
disabled: f,
|
|
@@ -613,12 +613,12 @@ function ze({ open: e, onClose: r, onClear: i, children: a, value: o, onChange:
|
|
|
613
613
|
})
|
|
614
614
|
]
|
|
615
615
|
}), a && /* @__PURE__ */ t("div", {
|
|
616
|
-
className:
|
|
616
|
+
className: I.filterRow,
|
|
617
617
|
children: a
|
|
618
618
|
})]
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
|
-
var
|
|
621
|
+
var ze = {
|
|
622
622
|
page: "_page_cb4hq_3",
|
|
623
623
|
iconWrap: "_iconWrap_cb4hq_20",
|
|
624
624
|
title: "_title_cb4hq_33",
|
|
@@ -628,7 +628,7 @@ var Be = {
|
|
|
628
628
|
};
|
|
629
629
|
//#endregion
|
|
630
630
|
//#region src/components/StatusPage/StatusPage.tsx
|
|
631
|
-
function
|
|
631
|
+
function Be({ icon: e, iconNode: r, title: i, description: a, children: o, compact: s = !1, className: c, ...l }) {
|
|
632
632
|
let u = s ? 64 : 128, d = e ? /* @__PURE__ */ t(F, {
|
|
633
633
|
icon: e,
|
|
634
634
|
width: u,
|
|
@@ -637,27 +637,27 @@ function Ve({ icon: e, iconNode: r, title: i, description: a, children: o, compa
|
|
|
637
637
|
}) : r ?? null;
|
|
638
638
|
return /* @__PURE__ */ n("div", {
|
|
639
639
|
className: [
|
|
640
|
-
|
|
641
|
-
s ?
|
|
640
|
+
ze.page,
|
|
641
|
+
s ? ze.compact : null,
|
|
642
642
|
c
|
|
643
643
|
].filter(Boolean).join(" "),
|
|
644
644
|
...l,
|
|
645
645
|
children: [
|
|
646
646
|
d && /* @__PURE__ */ t("div", {
|
|
647
|
-
className:
|
|
647
|
+
className: ze.iconWrap,
|
|
648
648
|
"aria-hidden": "true",
|
|
649
649
|
children: d
|
|
650
650
|
}),
|
|
651
651
|
/* @__PURE__ */ t("p", {
|
|
652
|
-
className:
|
|
652
|
+
className: ze.title,
|
|
653
653
|
children: i
|
|
654
654
|
}),
|
|
655
655
|
a && /* @__PURE__ */ t("p", {
|
|
656
|
-
className:
|
|
656
|
+
className: ze.description,
|
|
657
657
|
children: a
|
|
658
658
|
}),
|
|
659
659
|
o && /* @__PURE__ */ t("div", {
|
|
660
|
-
className:
|
|
660
|
+
className: ze.actions,
|
|
661
661
|
children: o
|
|
662
662
|
})
|
|
663
663
|
]
|
|
@@ -665,18 +665,18 @@ function Ve({ icon: e, iconNode: r, title: i, description: a, children: o, compa
|
|
|
665
665
|
}
|
|
666
666
|
//#endregion
|
|
667
667
|
//#region src/hooks/useBreakpoint.ts
|
|
668
|
-
var
|
|
668
|
+
var Ve = {
|
|
669
669
|
narrow: 400,
|
|
670
670
|
medium: 550,
|
|
671
671
|
wide: 860
|
|
672
672
|
};
|
|
673
|
-
function
|
|
673
|
+
function He() {
|
|
674
674
|
let e = () => {
|
|
675
675
|
let e = typeof window < "u" ? window.innerWidth : 1280;
|
|
676
676
|
return {
|
|
677
|
-
isNarrow: e <=
|
|
678
|
-
isMedium: e <=
|
|
679
|
-
isWide: e <=
|
|
677
|
+
isNarrow: e <= Ve.narrow,
|
|
678
|
+
isMedium: e <= Ve.medium,
|
|
679
|
+
isWide: e <= Ve.wide,
|
|
680
680
|
width: e
|
|
681
681
|
};
|
|
682
682
|
}, [t, n] = f(e);
|
|
@@ -687,58 +687,58 @@ function Ue() {
|
|
|
687
687
|
}
|
|
688
688
|
//#endregion
|
|
689
689
|
//#region src/components/Sidebar/Sidebar.module.css
|
|
690
|
-
var
|
|
691
|
-
sidebar:
|
|
692
|
-
section:
|
|
693
|
-
sectionTitle:
|
|
694
|
-
list:
|
|
695
|
-
item:
|
|
696
|
-
itemBtn:
|
|
697
|
-
active:
|
|
698
|
-
itemIcon:
|
|
699
|
-
itemLabel:
|
|
700
|
-
itemSuffix:
|
|
701
|
-
contextMenu:
|
|
690
|
+
var Ue = "_sidebar_b80pp_3", We = "_section_b80pp_21", Ge = "_sectionTitle_b80pp_33", Ke = "_list_b80pp_47", qe = "_item_b80pp_58", Je = "_itemBtn_b80pp_64", Ye = "_active_b80pp_111", Xe = "_itemIcon_b80pp_127", Ze = "_itemLabel_b80pp_140", Qe = "_itemSuffix_b80pp_150", $e = "_contextMenu_b80pp_159", et = "_contextMenuItem_b80pp_183", tt = "_contextMenuDestructive_b80pp_219", nt = "_searchWrap_b80pp_225", rt = "_pageMode_b80pp_236", it = "_dragOver_b80pp_243", at = "_collapsed_b80pp_251", ot = "_itemCollapsed_b80pp_262", L = {
|
|
691
|
+
sidebar: Ue,
|
|
692
|
+
section: We,
|
|
693
|
+
sectionTitle: Ge,
|
|
694
|
+
list: Ke,
|
|
695
|
+
item: qe,
|
|
696
|
+
itemBtn: Je,
|
|
697
|
+
active: Ye,
|
|
698
|
+
itemIcon: Xe,
|
|
699
|
+
itemLabel: Ze,
|
|
700
|
+
itemSuffix: Qe,
|
|
701
|
+
contextMenu: $e,
|
|
702
702
|
"menu-in": "_menu-in_b80pp_1",
|
|
703
|
-
contextMenuItem:
|
|
704
|
-
contextMenuDestructive:
|
|
705
|
-
searchWrap:
|
|
706
|
-
pageMode:
|
|
707
|
-
dragOver:
|
|
708
|
-
collapsed:
|
|
709
|
-
itemCollapsed:
|
|
710
|
-
},
|
|
711
|
-
function
|
|
712
|
-
return c(
|
|
703
|
+
contextMenuItem: et,
|
|
704
|
+
contextMenuDestructive: tt,
|
|
705
|
+
searchWrap: nt,
|
|
706
|
+
pageMode: rt,
|
|
707
|
+
dragOver: it,
|
|
708
|
+
collapsed: at,
|
|
709
|
+
itemCollapsed: ot
|
|
710
|
+
}, st = a(!1);
|
|
711
|
+
function ct() {
|
|
712
|
+
return c(st);
|
|
713
713
|
}
|
|
714
|
-
var
|
|
715
|
-
function
|
|
714
|
+
var lt = a("");
|
|
715
|
+
function ut(e, t) {
|
|
716
716
|
let n = 0;
|
|
717
717
|
return r.forEach(e, (e) => {
|
|
718
718
|
if (!o(e)) return;
|
|
719
719
|
let r = e.props;
|
|
720
|
-
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n +=
|
|
720
|
+
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n += ut(r.children, t));
|
|
721
721
|
}), n;
|
|
722
722
|
}
|
|
723
|
-
function
|
|
724
|
-
let [u, d] = f(""), { isNarrow: p } =
|
|
723
|
+
function dt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilterChange: o, mode: s, className: c, ...l }) {
|
|
724
|
+
let [u, d] = f(""), { isNarrow: p } = He(), m = a !== void 0, h = m ? a : u, g = (e) => {
|
|
725
725
|
m || d(e), o?.(e);
|
|
726
|
-
}, _ = h.length > 0, v = s ?? (p ? "page" : "sidebar"), y = !_ ||
|
|
727
|
-
return /* @__PURE__ */ t(
|
|
726
|
+
}, _ = h.length > 0, v = s ?? (p ? "page" : "sidebar"), y = !_ || ut(e, h) > 0;
|
|
727
|
+
return /* @__PURE__ */ t(st.Provider, {
|
|
728
728
|
value: r,
|
|
729
|
-
children: /* @__PURE__ */ t(
|
|
729
|
+
children: /* @__PURE__ */ t(lt.Provider, {
|
|
730
730
|
value: h,
|
|
731
731
|
children: /* @__PURE__ */ n("nav", {
|
|
732
732
|
className: [
|
|
733
|
-
|
|
734
|
-
r ?
|
|
735
|
-
v === "page" ?
|
|
733
|
+
L.sidebar,
|
|
734
|
+
r ? L.collapsed : null,
|
|
735
|
+
v === "page" ? L.pageMode : null,
|
|
736
736
|
c
|
|
737
737
|
].filter(Boolean).join(" "),
|
|
738
738
|
...l,
|
|
739
739
|
children: [i && /* @__PURE__ */ t("div", {
|
|
740
|
-
className:
|
|
741
|
-
children: /* @__PURE__ */ t(
|
|
740
|
+
className: L.searchWrap,
|
|
741
|
+
children: /* @__PURE__ */ t(Re, {
|
|
742
742
|
open: !0,
|
|
743
743
|
value: h,
|
|
744
744
|
onChange: (e) => g(e.target.value),
|
|
@@ -746,7 +746,7 @@ function ft({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
746
746
|
onClear: () => g(""),
|
|
747
747
|
inline: !0
|
|
748
748
|
})
|
|
749
|
-
}), _ && !y ? /* @__PURE__ */ t(
|
|
749
|
+
}), _ && !y ? /* @__PURE__ */ t(Be, {
|
|
750
750
|
title: "No Results",
|
|
751
751
|
description: "No items match your search.",
|
|
752
752
|
compact: !0
|
|
@@ -757,29 +757,29 @@ function ft({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
757
757
|
}
|
|
758
758
|
//#endregion
|
|
759
759
|
//#region src/components/Sidebar/SidebarSection.tsx
|
|
760
|
-
function
|
|
760
|
+
function ft({ title: e, children: r, className: i, ...a }) {
|
|
761
761
|
return /* @__PURE__ */ n("section", {
|
|
762
|
-
className: [
|
|
762
|
+
className: [L.section, i].filter(Boolean).join(" "),
|
|
763
763
|
...a,
|
|
764
764
|
children: [e && /* @__PURE__ */ t("h3", {
|
|
765
|
-
className:
|
|
765
|
+
className: L.sectionTitle,
|
|
766
766
|
children: e
|
|
767
767
|
}), /* @__PURE__ */ t("ul", {
|
|
768
768
|
role: "list",
|
|
769
|
-
className:
|
|
769
|
+
className: L.list,
|
|
770
770
|
children: r
|
|
771
771
|
})]
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
|
-
var
|
|
774
|
+
var pt = {
|
|
775
775
|
tooltip: "_tooltip_y4het_3",
|
|
776
776
|
visible: "_visible_y4het_29",
|
|
777
777
|
top: "_top_y4het_55",
|
|
778
778
|
bottom: "_bottom_y4het_62",
|
|
779
779
|
left: "_left_y4het_69",
|
|
780
780
|
right: "_right_y4het_76"
|
|
781
|
-
},
|
|
782
|
-
function
|
|
781
|
+
}, mt = 6;
|
|
782
|
+
function ht(e, t, n) {
|
|
783
783
|
let r = window.innerWidth, i = window.innerHeight, a = [
|
|
784
784
|
n,
|
|
785
785
|
n === "top" || n === "bottom" ? n === "top" ? "bottom" : "top" : n === "left" ? "right" : "left",
|
|
@@ -790,7 +790,7 @@ function gt(e, t, n) {
|
|
|
790
790
|
];
|
|
791
791
|
for (let n of a) {
|
|
792
792
|
let a = 0, o = 0;
|
|
793
|
-
n === "top" ? (a = e.top - t.height -
|
|
793
|
+
n === "top" ? (a = e.top - t.height - mt, o = e.left + e.width / 2 - t.width / 2) : n === "bottom" ? (a = e.bottom + mt, o = e.left + e.width / 2 - t.width / 2) : n === "left" ? (a = e.top + e.height / 2 - t.height / 2, o = e.left - t.width - mt) : (a = e.top + e.height / 2 - t.height / 2, o = e.right + mt);
|
|
794
794
|
let s = o >= 8 && o + t.width <= r - 8, c = a >= 8 && a + t.height <= i - 8;
|
|
795
795
|
if (s && c) return {
|
|
796
796
|
top: Math.max(8, Math.min(a, i - t.height - 8)),
|
|
@@ -799,17 +799,17 @@ function gt(e, t, n) {
|
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
801
|
let o = 0, s = 0;
|
|
802
|
-
return n === "top" && (o = e.top - t.height -
|
|
802
|
+
return n === "top" && (o = e.top - t.height - mt, s = e.left + e.width / 2 - t.width / 2), n === "bottom" && (o = e.bottom + mt, s = e.left + e.width / 2 - t.width / 2), n === "left" && (o = e.top + e.height / 2 - t.height / 2, s = e.left - t.width - mt), n === "right" && (o = e.top + e.height / 2 - t.height / 2, s = e.right + mt), {
|
|
803
803
|
top: Math.max(8, Math.min(o, i - t.height - 8)),
|
|
804
804
|
left: Math.max(8, Math.min(s, window.innerWidth - t.width - 8)),
|
|
805
805
|
placement: n
|
|
806
806
|
};
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function gt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
809
809
|
let m = u(), [h, g] = f(!1), [_, v] = f(null), y = d(null), b = d(null), x = d(null), S = () => {
|
|
810
810
|
x.current &&= (clearTimeout(x.current), null);
|
|
811
811
|
}, C = s(() => {
|
|
812
|
-
!y.current || !b.current || v(
|
|
812
|
+
!y.current || !b.current || v(ht(y.current.getBoundingClientRect(), b.current.getBoundingClientRect(), a));
|
|
813
813
|
}, [a]);
|
|
814
814
|
l(() => {
|
|
815
815
|
if (h) return C(), window.addEventListener("scroll", C, {
|
|
@@ -853,9 +853,9 @@ function _t({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
853
853
|
id: m,
|
|
854
854
|
role: "tooltip",
|
|
855
855
|
className: [
|
|
856
|
-
|
|
857
|
-
_ ?
|
|
858
|
-
h && _ ?
|
|
856
|
+
pt.tooltip,
|
|
857
|
+
_ ? pt[_.placement] : null,
|
|
858
|
+
h && _ ? pt.visible : null
|
|
859
859
|
].filter(Boolean).join(" "),
|
|
860
860
|
style: _ ? {
|
|
861
861
|
top: _.top,
|
|
@@ -871,8 +871,8 @@ function _t({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
871
871
|
}
|
|
872
872
|
//#endregion
|
|
873
873
|
//#region src/components/Sidebar/SidebarItem.tsx
|
|
874
|
-
function
|
|
875
|
-
let y =
|
|
874
|
+
function _t({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u, menuItems: m, onDrop: h, acceptTypes: g, className: _, ...v }) {
|
|
875
|
+
let y = ct(), b = c(lt), x = a ?? o, S = y ? u ?? e : u, C = b.length > 0 && !e.toLowerCase().includes(b.toLowerCase()), [w, T] = f(!1), E = (e) => {
|
|
876
876
|
h && (g?.length && !g.some((t) => e.dataTransfer.types.includes(t)) || (e.preventDefault(), T(!0)));
|
|
877
877
|
}, D = () => T(!1), O = (e) => {
|
|
878
878
|
h && (e.preventDefault(), T(!1), h(e));
|
|
@@ -905,10 +905,10 @@ function vt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
905
905
|
"aria-current": i ? "page" : void 0,
|
|
906
906
|
"aria-label": y ? e : void 0,
|
|
907
907
|
className: [
|
|
908
|
-
|
|
909
|
-
i ?
|
|
910
|
-
y ?
|
|
911
|
-
w ?
|
|
908
|
+
L.itemBtn,
|
|
909
|
+
i ? L.active : null,
|
|
910
|
+
y ? L.itemCollapsed : null,
|
|
911
|
+
w ? L.dragOver : null,
|
|
912
912
|
_
|
|
913
913
|
].filter(Boolean).join(" "),
|
|
914
914
|
onContextMenu: P,
|
|
@@ -919,7 +919,7 @@ function vt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
919
919
|
...v,
|
|
920
920
|
children: [
|
|
921
921
|
r && /* @__PURE__ */ t("span", {
|
|
922
|
-
className:
|
|
922
|
+
className: L.itemIcon,
|
|
923
923
|
children: /* @__PURE__ */ t(F, {
|
|
924
924
|
icon: r,
|
|
925
925
|
size: "md",
|
|
@@ -927,25 +927,25 @@ function vt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
927
927
|
})
|
|
928
928
|
}),
|
|
929
929
|
!y && /* @__PURE__ */ t("span", {
|
|
930
|
-
className:
|
|
930
|
+
className: L.itemLabel,
|
|
931
931
|
children: e
|
|
932
932
|
}),
|
|
933
933
|
!y && x && /* @__PURE__ */ t("span", {
|
|
934
|
-
className:
|
|
934
|
+
className: L.itemSuffix,
|
|
935
935
|
children: x
|
|
936
936
|
})
|
|
937
937
|
]
|
|
938
938
|
});
|
|
939
939
|
return /* @__PURE__ */ n("li", {
|
|
940
|
-
className:
|
|
940
|
+
className: L.item,
|
|
941
941
|
hidden: C || void 0,
|
|
942
|
-
children: [S ? /* @__PURE__ */ t(
|
|
942
|
+
children: [S ? /* @__PURE__ */ t(gt, {
|
|
943
943
|
label: S,
|
|
944
944
|
placement: "right",
|
|
945
945
|
children: te
|
|
946
946
|
}) : te, k && m?.length && typeof document < "u" && p(/* @__PURE__ */ t("div", {
|
|
947
947
|
ref: j,
|
|
948
|
-
className:
|
|
948
|
+
className: L.contextMenu,
|
|
949
949
|
style: {
|
|
950
950
|
top: k.y,
|
|
951
951
|
left: k.x
|
|
@@ -955,7 +955,7 @@ function vt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
955
955
|
type: "button",
|
|
956
956
|
role: "menuitem",
|
|
957
957
|
disabled: e.disabled,
|
|
958
|
-
className: [
|
|
958
|
+
className: [L.contextMenuItem, e.destructive ? L.contextMenuDestructive : null].filter(Boolean).join(" "),
|
|
959
959
|
onClick: () => {
|
|
960
960
|
e.onClick(), N();
|
|
961
961
|
},
|
|
@@ -964,7 +964,7 @@ function vt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
964
964
|
}), document.body)]
|
|
965
965
|
});
|
|
966
966
|
}
|
|
967
|
-
var
|
|
967
|
+
var vt = {
|
|
968
968
|
spin: "_spin_7d4yi_3",
|
|
969
969
|
disabled: "_disabled_7d4yi_36",
|
|
970
970
|
btn: "_btn_7d4yi_43",
|
|
@@ -972,15 +972,15 @@ var yt = {
|
|
|
972
972
|
};
|
|
973
973
|
//#endregion
|
|
974
974
|
//#region src/components/SpinButton/SpinButton.tsx
|
|
975
|
-
function
|
|
975
|
+
function yt(e) {
|
|
976
976
|
let t = e.toString(), n = t.indexOf(".");
|
|
977
977
|
return n === -1 ? 0 : t.length - n - 1;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function bt(e, t, n) {
|
|
980
980
|
return Math.min(n, Math.max(t, e));
|
|
981
981
|
}
|
|
982
|
-
function
|
|
983
|
-
let m = c ??
|
|
982
|
+
function xt({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, decimals: c, disabled: l = !1, className: u, "aria-label": d, "aria-labelledby": f, ...p }) {
|
|
983
|
+
let m = c ?? yt(o), h = s((e) => r(parseFloat(bt(e, i, a).toFixed(m))), [
|
|
984
984
|
r,
|
|
985
985
|
i,
|
|
986
986
|
a,
|
|
@@ -1024,8 +1024,8 @@ function St({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1024
1024
|
tabIndex: l ? -1 : 0,
|
|
1025
1025
|
onKeyDown: l ? void 0 : g,
|
|
1026
1026
|
className: [
|
|
1027
|
-
|
|
1028
|
-
l ?
|
|
1027
|
+
vt.spin,
|
|
1028
|
+
l ? vt.disabled : null,
|
|
1029
1029
|
u
|
|
1030
1030
|
].filter(Boolean).join(" "),
|
|
1031
1031
|
...p,
|
|
@@ -1035,12 +1035,12 @@ function St({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1035
1035
|
tabIndex: -1,
|
|
1036
1036
|
"aria-hidden": "true",
|
|
1037
1037
|
disabled: l || e <= i,
|
|
1038
|
-
className:
|
|
1038
|
+
className: vt.btn,
|
|
1039
1039
|
onClick: () => h(e - o),
|
|
1040
1040
|
children: "−"
|
|
1041
1041
|
}),
|
|
1042
1042
|
/* @__PURE__ */ t("span", {
|
|
1043
|
-
className:
|
|
1043
|
+
className: vt.value,
|
|
1044
1044
|
"aria-hidden": "true",
|
|
1045
1045
|
children: e.toFixed(m)
|
|
1046
1046
|
}),
|
|
@@ -1049,14 +1049,14 @@ function St({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1049
1049
|
tabIndex: -1,
|
|
1050
1050
|
"aria-hidden": "true",
|
|
1051
1051
|
disabled: l || e >= a,
|
|
1052
|
-
className:
|
|
1052
|
+
className: vt.btn,
|
|
1053
1053
|
onClick: () => h(e + o),
|
|
1054
1054
|
children: "+"
|
|
1055
1055
|
})
|
|
1056
1056
|
]
|
|
1057
1057
|
});
|
|
1058
1058
|
}
|
|
1059
|
-
var
|
|
1059
|
+
var R = {
|
|
1060
1060
|
bar: "_bar_12ars_3",
|
|
1061
1061
|
list: "_list_12ars_10",
|
|
1062
1062
|
tab: "_tab_12ars_26",
|
|
@@ -1069,7 +1069,7 @@ var L = {
|
|
|
1069
1069
|
};
|
|
1070
1070
|
//#endregion
|
|
1071
1071
|
//#region src/components/Tabs/TabBar.tsx
|
|
1072
|
-
function
|
|
1072
|
+
function St({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs", ...a }) {
|
|
1073
1073
|
let o = d(null);
|
|
1074
1074
|
function s(e) {
|
|
1075
1075
|
let t = Array.from(o.current?.querySelectorAll("[role=tab]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -1084,8 +1084,8 @@ function Ct({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1084
1084
|
}
|
|
1085
1085
|
return /* @__PURE__ */ t("div", {
|
|
1086
1086
|
className: [
|
|
1087
|
-
|
|
1088
|
-
r ?
|
|
1087
|
+
R.bar,
|
|
1088
|
+
r ? R.inline : null,
|
|
1089
1089
|
n
|
|
1090
1090
|
].filter(Boolean).join(" "),
|
|
1091
1091
|
...a,
|
|
@@ -1093,7 +1093,7 @@ function Ct({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1093
1093
|
ref: o,
|
|
1094
1094
|
role: "tablist",
|
|
1095
1095
|
"aria-label": i,
|
|
1096
|
-
className:
|
|
1096
|
+
className: R.list,
|
|
1097
1097
|
onKeyDown: s,
|
|
1098
1098
|
children: e
|
|
1099
1099
|
})
|
|
@@ -1101,7 +1101,7 @@ function Ct({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1101
1101
|
}
|
|
1102
1102
|
//#endregion
|
|
1103
1103
|
//#region src/components/Tabs/TabItem.tsx
|
|
1104
|
-
function
|
|
1104
|
+
function Ct({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLabel: s = "Close tab", className: c, disabled: l, ...u }) {
|
|
1105
1105
|
return /* @__PURE__ */ n("button", {
|
|
1106
1106
|
role: "tab",
|
|
1107
1107
|
type: "button",
|
|
@@ -1110,15 +1110,15 @@ function wt({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1110
1110
|
tabIndex: i ? 0 : -1,
|
|
1111
1111
|
disabled: l,
|
|
1112
1112
|
className: [
|
|
1113
|
-
|
|
1114
|
-
i ?
|
|
1115
|
-
o ?
|
|
1113
|
+
R.tab,
|
|
1114
|
+
i ? R.active : null,
|
|
1115
|
+
o ? R.closeable : null,
|
|
1116
1116
|
c
|
|
1117
1117
|
].filter(Boolean).join(" "),
|
|
1118
1118
|
...u,
|
|
1119
1119
|
children: [
|
|
1120
1120
|
r && /* @__PURE__ */ t("span", {
|
|
1121
|
-
className:
|
|
1121
|
+
className: R.tabIcon,
|
|
1122
1122
|
children: /* @__PURE__ */ t(F, {
|
|
1123
1123
|
icon: r,
|
|
1124
1124
|
size: "sm",
|
|
@@ -1126,14 +1126,14 @@ function wt({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1126
1126
|
})
|
|
1127
1127
|
}),
|
|
1128
1128
|
/* @__PURE__ */ t("span", {
|
|
1129
|
-
className:
|
|
1129
|
+
className: R.tabLabel,
|
|
1130
1130
|
children: e
|
|
1131
1131
|
}),
|
|
1132
1132
|
o && /* @__PURE__ */ t("span", {
|
|
1133
1133
|
role: "button",
|
|
1134
1134
|
tabIndex: 0,
|
|
1135
1135
|
"aria-label": s,
|
|
1136
|
-
className:
|
|
1136
|
+
className: R.closeBtn,
|
|
1137
1137
|
onClick: (e) => {
|
|
1138
1138
|
e.stopPropagation(), o();
|
|
1139
1139
|
},
|
|
@@ -1147,18 +1147,18 @@ function wt({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1147
1147
|
}
|
|
1148
1148
|
//#endregion
|
|
1149
1149
|
//#region src/components/Tabs/TabPanel.tsx
|
|
1150
|
-
function
|
|
1150
|
+
function wt({ id: e, active: n = !1, className: r, children: i, ...a }) {
|
|
1151
1151
|
return /* @__PURE__ */ t("div", {
|
|
1152
1152
|
id: e,
|
|
1153
1153
|
role: "tabpanel",
|
|
1154
1154
|
hidden: !n,
|
|
1155
1155
|
tabIndex: 0,
|
|
1156
|
-
className: [
|
|
1156
|
+
className: [R.panel, r].filter(Boolean).join(" "),
|
|
1157
1157
|
...a,
|
|
1158
1158
|
children: i
|
|
1159
1159
|
});
|
|
1160
1160
|
}
|
|
1161
|
-
var
|
|
1161
|
+
var z = {
|
|
1162
1162
|
row: "_row_17clq_3",
|
|
1163
1163
|
leading: "_leading_17clq_16",
|
|
1164
1164
|
content: "_content_17clq_25",
|
|
@@ -1171,39 +1171,39 @@ var R = {
|
|
|
1171
1171
|
};
|
|
1172
1172
|
//#endregion
|
|
1173
1173
|
//#region src/components/ActionRow/ActionRow.tsx
|
|
1174
|
-
function
|
|
1174
|
+
function Tt({ title: e, subtitle: r, leading: i, trailing: a, interactive: o = !1, variant: s = "default", className: c, ...l }) {
|
|
1175
1175
|
let u = o ? "button" : "div", d = s === "property";
|
|
1176
1176
|
return /* @__PURE__ */ n(u, {
|
|
1177
1177
|
className: [
|
|
1178
|
-
|
|
1179
|
-
o ?
|
|
1180
|
-
d ?
|
|
1178
|
+
z.row,
|
|
1179
|
+
o ? z.interactive : null,
|
|
1180
|
+
d ? z.property : null,
|
|
1181
1181
|
c
|
|
1182
1182
|
].filter(Boolean).join(" "),
|
|
1183
1183
|
...l,
|
|
1184
1184
|
children: [
|
|
1185
1185
|
i && /* @__PURE__ */ t("span", {
|
|
1186
|
-
className:
|
|
1186
|
+
className: z.leading,
|
|
1187
1187
|
children: i
|
|
1188
1188
|
}),
|
|
1189
1189
|
/* @__PURE__ */ n("span", {
|
|
1190
|
-
className:
|
|
1190
|
+
className: z.content,
|
|
1191
1191
|
children: [/* @__PURE__ */ t("span", {
|
|
1192
|
-
className: d ?
|
|
1192
|
+
className: d ? z.propertyLabel : z.title,
|
|
1193
1193
|
children: e
|
|
1194
1194
|
}), r && /* @__PURE__ */ t("span", {
|
|
1195
|
-
className: d ?
|
|
1195
|
+
className: d ? z.propertyValue : z.subtitle,
|
|
1196
1196
|
children: r
|
|
1197
1197
|
})]
|
|
1198
1198
|
}),
|
|
1199
1199
|
a && /* @__PURE__ */ t("span", {
|
|
1200
|
-
className:
|
|
1200
|
+
className: z.trailing,
|
|
1201
1201
|
children: a
|
|
1202
1202
|
})
|
|
1203
1203
|
]
|
|
1204
1204
|
});
|
|
1205
1205
|
}
|
|
1206
|
-
var
|
|
1206
|
+
var Et = {
|
|
1207
1207
|
list: "_list_1mn4t_3",
|
|
1208
1208
|
item: "_item_1mn4t_17",
|
|
1209
1209
|
divider: "_divider_1mn4t_25",
|
|
@@ -1212,26 +1212,26 @@ var Dt = {
|
|
|
1212
1212
|
};
|
|
1213
1213
|
//#endregion
|
|
1214
1214
|
//#region src/components/BoxedList/BoxedList.tsx
|
|
1215
|
-
function
|
|
1215
|
+
function Dt({ children: e, variant: i = "default", className: a, ...o }) {
|
|
1216
1216
|
let s = r.toArray(e).filter(Boolean), c = i === "separate";
|
|
1217
1217
|
return /* @__PURE__ */ t("ul", {
|
|
1218
1218
|
role: "list",
|
|
1219
1219
|
className: [
|
|
1220
|
-
|
|
1221
|
-
c ?
|
|
1220
|
+
Et.list,
|
|
1221
|
+
c ? Et.separate : null,
|
|
1222
1222
|
a
|
|
1223
1223
|
].filter(Boolean).join(" "),
|
|
1224
1224
|
...o,
|
|
1225
1225
|
children: s.map((e, r) => /* @__PURE__ */ n("li", {
|
|
1226
|
-
className: c ?
|
|
1226
|
+
className: c ? Et.separateItem : Et.item,
|
|
1227
1227
|
children: [!c && r > 0 && /* @__PURE__ */ t("div", {
|
|
1228
|
-
className:
|
|
1228
|
+
className: Et.divider,
|
|
1229
1229
|
"aria-hidden": "true"
|
|
1230
1230
|
}), e]
|
|
1231
1231
|
}, r))
|
|
1232
1232
|
});
|
|
1233
1233
|
}
|
|
1234
|
-
var
|
|
1234
|
+
var Ot = {
|
|
1235
1235
|
switcher: "_switcher_1uh9r_3",
|
|
1236
1236
|
item: "_item_1uh9r_18",
|
|
1237
1237
|
active: "_active_1uh9r_45",
|
|
@@ -1240,7 +1240,7 @@ var kt = {
|
|
|
1240
1240
|
};
|
|
1241
1241
|
//#endregion
|
|
1242
1242
|
//#region src/components/ViewSwitcher/ViewSwitcher.tsx
|
|
1243
|
-
function
|
|
1243
|
+
function kt({ children: e, className: n, "aria-label": r = "View switcher", ...i }) {
|
|
1244
1244
|
let a = d(null);
|
|
1245
1245
|
function o(e) {
|
|
1246
1246
|
let t = Array.from(a.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -1258,14 +1258,14 @@ function At({ children: e, className: n, "aria-label": r = "View switcher", ...i
|
|
|
1258
1258
|
role: "radiogroup",
|
|
1259
1259
|
"aria-label": r,
|
|
1260
1260
|
onKeyDown: o,
|
|
1261
|
-
className: [
|
|
1261
|
+
className: [Ot.switcher, n].filter(Boolean).join(" "),
|
|
1262
1262
|
...i,
|
|
1263
1263
|
children: e
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
1266
1266
|
//#endregion
|
|
1267
1267
|
//#region src/components/ViewSwitcher/ViewSwitcherItem.tsx
|
|
1268
|
-
function
|
|
1268
|
+
function At({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s }) {
|
|
1269
1269
|
return /* @__PURE__ */ n("button", {
|
|
1270
1270
|
type: "button",
|
|
1271
1271
|
role: "radio",
|
|
@@ -1273,40 +1273,40 @@ function jt({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s
|
|
|
1273
1273
|
tabIndex: i ? 0 : -1,
|
|
1274
1274
|
disabled: o,
|
|
1275
1275
|
className: [
|
|
1276
|
-
|
|
1277
|
-
i ?
|
|
1276
|
+
Ot.item,
|
|
1277
|
+
i ? Ot.active : null,
|
|
1278
1278
|
a
|
|
1279
1279
|
].filter(Boolean).join(" "),
|
|
1280
1280
|
...s,
|
|
1281
1281
|
children: [r && /* @__PURE__ */ t("span", {
|
|
1282
|
-
className:
|
|
1282
|
+
className: Ot.itemIcon,
|
|
1283
1283
|
children: /* @__PURE__ */ t(F, {
|
|
1284
1284
|
icon: r,
|
|
1285
1285
|
size: "md",
|
|
1286
1286
|
"aria-hidden": !0
|
|
1287
1287
|
})
|
|
1288
1288
|
}), /* @__PURE__ */ t("span", {
|
|
1289
|
-
className:
|
|
1289
|
+
className: Ot.itemLabel,
|
|
1290
1290
|
children: e
|
|
1291
1291
|
})]
|
|
1292
1292
|
});
|
|
1293
1293
|
}
|
|
1294
1294
|
//#endregion
|
|
1295
1295
|
//#region src/components/Toast/Toast.module.css
|
|
1296
|
-
var
|
|
1297
|
-
toaster:
|
|
1298
|
-
toasterBottom:
|
|
1299
|
-
toasterTop:
|
|
1300
|
-
toast:
|
|
1296
|
+
var jt = "_toaster_1tgvb_3", Mt = "_toasterBottom_1tgvb_18", Nt = "_toasterTop_1tgvb_22", Pt = "_toast_1tgvb_3", Ft = "_title_1tgvb_69", It = "_actions_1tgvb_76", Lt = "_actionBtn_1tgvb_85", Rt = "_dismissBtn_1tgvb_118", zt = {
|
|
1297
|
+
toaster: jt,
|
|
1298
|
+
toasterBottom: Mt,
|
|
1299
|
+
toasterTop: Nt,
|
|
1300
|
+
toast: Pt,
|
|
1301
1301
|
"toast-in": "_toast-in_1tgvb_1",
|
|
1302
|
-
title:
|
|
1303
|
-
actions:
|
|
1304
|
-
actionBtn:
|
|
1305
|
-
dismissBtn:
|
|
1302
|
+
title: Ft,
|
|
1303
|
+
actions: It,
|
|
1304
|
+
actionBtn: Lt,
|
|
1305
|
+
dismissBtn: Rt
|
|
1306
1306
|
};
|
|
1307
1307
|
//#endregion
|
|
1308
1308
|
//#region src/components/Toast/Toast.tsx
|
|
1309
|
-
function
|
|
1309
|
+
function Bt({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onAction: o, dismissible: s = !1, className: c, ...u }) {
|
|
1310
1310
|
let f = d(null), p = d(r), m = d(0), h = () => {
|
|
1311
1311
|
f.current &&= (clearTimeout(f.current), null);
|
|
1312
1312
|
}, g = (e) => {
|
|
@@ -1327,25 +1327,25 @@ function Vt({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1327
1327
|
role: "status",
|
|
1328
1328
|
"aria-live": "polite",
|
|
1329
1329
|
"aria-atomic": "true",
|
|
1330
|
-
className: [
|
|
1330
|
+
className: [zt.toast, c].filter(Boolean).join(" "),
|
|
1331
1331
|
onMouseEnter: _,
|
|
1332
1332
|
onMouseLeave: v,
|
|
1333
1333
|
onFocus: _,
|
|
1334
1334
|
onBlur: v,
|
|
1335
1335
|
...u,
|
|
1336
1336
|
children: [/* @__PURE__ */ t("span", {
|
|
1337
|
-
className:
|
|
1337
|
+
className: zt.title,
|
|
1338
1338
|
children: e
|
|
1339
1339
|
}), (a || s) && /* @__PURE__ */ n("span", {
|
|
1340
|
-
className:
|
|
1340
|
+
className: zt.actions,
|
|
1341
1341
|
children: [a && /* @__PURE__ */ t("button", {
|
|
1342
1342
|
type: "button",
|
|
1343
|
-
className:
|
|
1343
|
+
className: zt.actionBtn,
|
|
1344
1344
|
onClick: y,
|
|
1345
1345
|
children: a
|
|
1346
1346
|
}), s && /* @__PURE__ */ t("button", {
|
|
1347
1347
|
type: "button",
|
|
1348
|
-
className:
|
|
1348
|
+
className: zt.dismissBtn,
|
|
1349
1349
|
"aria-label": "Dismiss",
|
|
1350
1350
|
onClick: () => {
|
|
1351
1351
|
h(), i?.();
|
|
@@ -1361,12 +1361,12 @@ function Vt({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1361
1361
|
}
|
|
1362
1362
|
//#endregion
|
|
1363
1363
|
//#region src/components/Toast/Toaster.tsx
|
|
1364
|
-
function
|
|
1364
|
+
function Vt({ position: e = "bottom", children: n, container: r, className: i, ...a }) {
|
|
1365
1365
|
let o = /* @__PURE__ */ t("div", {
|
|
1366
1366
|
"aria-label": "Notifications",
|
|
1367
1367
|
className: [
|
|
1368
|
-
|
|
1369
|
-
e === "top" ?
|
|
1368
|
+
zt.toaster,
|
|
1369
|
+
e === "top" ? zt.toasterTop : zt.toasterBottom,
|
|
1370
1370
|
i
|
|
1371
1371
|
].filter(Boolean).join(" "),
|
|
1372
1372
|
...a,
|
|
@@ -1376,57 +1376,57 @@ function Ht({ position: e = "bottom", children: n, container: r, className: i, .
|
|
|
1376
1376
|
}
|
|
1377
1377
|
//#endregion
|
|
1378
1378
|
//#region src/components/Dialog/Dialog.module.css
|
|
1379
|
-
var
|
|
1380
|
-
backdrop:
|
|
1379
|
+
var Ht = "_backdrop_zx0yn_3", Ut = "_dialog_zx0yn_26", Wt = "_title_zx0yn_56", Gt = "_body_zx0yn_70", Kt = "_footer_zx0yn_85", qt = "_btn_zx0yn_92", Jt = "_dialogAbout_zx0yn_155", Yt = "_aboutHeader_zx0yn_162", Xt = "_aboutIcon_zx0yn_171", Zt = "_aboutAppName_zx0yn_180", Qt = "_aboutVersion_zx0yn_187", $t = "_aboutTabBar_zx0yn_194", en = "_aboutTabBtn_zx0yn_201", tn = "_aboutTabBtnActive_zx0yn_220", nn = "_aboutTabContent_zx0yn_233", rn = "_aboutSection_zx0yn_238", an = "_aboutComments_zx0yn_243", on = "_aboutInfoList_zx0yn_252", sn = "_aboutInfoLabel_zx0yn_259", cn = "_aboutInfoValue_zx0yn_267", ln = "_aboutLink_zx0yn_275", un = "_aboutCreditGroup_zx0yn_283", dn = "_aboutCreditTitle_zx0yn_287", fn = "_aboutCreditList_zx0yn_297", pn = "_aboutCreditItem_zx0yn_306", mn = "_aboutCopyright_zx0yn_312", hn = "_aboutLicenseType_zx0yn_319", gn = "_aboutLicenseText_zx0yn_326", B = {
|
|
1380
|
+
backdrop: Ht,
|
|
1381
1381
|
"backdrop-in": "_backdrop-in_zx0yn_1",
|
|
1382
|
-
dialog:
|
|
1382
|
+
dialog: Ut,
|
|
1383
1383
|
"dialog-in": "_dialog-in_zx0yn_1",
|
|
1384
|
-
title:
|
|
1385
|
-
body:
|
|
1386
|
-
footer:
|
|
1387
|
-
btn:
|
|
1384
|
+
title: Wt,
|
|
1385
|
+
body: Gt,
|
|
1386
|
+
footer: Kt,
|
|
1387
|
+
btn: qt,
|
|
1388
1388
|
"btn-default": "_btn-default_zx0yn_140",
|
|
1389
1389
|
"btn-suggested": "_btn-suggested_zx0yn_144",
|
|
1390
1390
|
"btn-destructive": "_btn-destructive_zx0yn_149",
|
|
1391
|
-
dialogAbout:
|
|
1392
|
-
aboutHeader:
|
|
1393
|
-
aboutIcon:
|
|
1394
|
-
aboutAppName:
|
|
1395
|
-
aboutVersion:
|
|
1396
|
-
aboutTabBar:
|
|
1397
|
-
aboutTabBtn:
|
|
1398
|
-
aboutTabBtnActive:
|
|
1399
|
-
aboutTabContent:
|
|
1400
|
-
aboutSection:
|
|
1401
|
-
aboutComments:
|
|
1402
|
-
aboutInfoList:
|
|
1403
|
-
aboutInfoLabel:
|
|
1404
|
-
aboutInfoValue:
|
|
1405
|
-
aboutLink:
|
|
1406
|
-
aboutCreditGroup:
|
|
1407
|
-
aboutCreditTitle:
|
|
1408
|
-
aboutCreditList:
|
|
1409
|
-
aboutCreditItem:
|
|
1410
|
-
aboutCopyright:
|
|
1411
|
-
aboutLicenseType:
|
|
1412
|
-
aboutLicenseText:
|
|
1413
|
-
},
|
|
1414
|
-
function
|
|
1391
|
+
dialogAbout: Jt,
|
|
1392
|
+
aboutHeader: Yt,
|
|
1393
|
+
aboutIcon: Xt,
|
|
1394
|
+
aboutAppName: Zt,
|
|
1395
|
+
aboutVersion: Qt,
|
|
1396
|
+
aboutTabBar: $t,
|
|
1397
|
+
aboutTabBtn: en,
|
|
1398
|
+
aboutTabBtnActive: tn,
|
|
1399
|
+
aboutTabContent: nn,
|
|
1400
|
+
aboutSection: rn,
|
|
1401
|
+
aboutComments: an,
|
|
1402
|
+
aboutInfoList: on,
|
|
1403
|
+
aboutInfoLabel: sn,
|
|
1404
|
+
aboutInfoValue: cn,
|
|
1405
|
+
aboutLink: ln,
|
|
1406
|
+
aboutCreditGroup: un,
|
|
1407
|
+
aboutCreditTitle: dn,
|
|
1408
|
+
aboutCreditList: fn,
|
|
1409
|
+
aboutCreditItem: pn,
|
|
1410
|
+
aboutCopyright: mn,
|
|
1411
|
+
aboutLicenseType: hn,
|
|
1412
|
+
aboutLicenseText: gn
|
|
1413
|
+
}, _n = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1414
|
+
function vn(e, t) {
|
|
1415
1415
|
if (e.key !== "Tab") return;
|
|
1416
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
1416
|
+
let n = Array.from(t.current?.querySelectorAll(_n) ?? []);
|
|
1417
1417
|
if (!n.length) return;
|
|
1418
1418
|
let r = n[0], i = n[n.length - 1];
|
|
1419
1419
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
1420
1420
|
}
|
|
1421
|
-
var
|
|
1421
|
+
var yn = {
|
|
1422
1422
|
details: "Details",
|
|
1423
1423
|
credits: "Credits",
|
|
1424
1424
|
legal: "Legal"
|
|
1425
1425
|
};
|
|
1426
|
-
function
|
|
1426
|
+
function bn({ open: r, title: i, children: a, buttons: o = [], onClose: c, closeOnBackdrop: m = !0, role: h = "dialog", responses: g, onResponse: _, variant: v, applicationName: y, applicationIcon: b, version: x, comments: S, developerName: C, website: w, websiteLabel: T, developers: E, designers: D, artists: O, copyright: k, licenseType: A, licenseText: j, links: M, className: N, ...P }) {
|
|
1427
1427
|
let ee = d(null), te = u(), ne = d(null), [re, ie] = f("details"), ae = !!g, oe = v === "about";
|
|
1428
1428
|
l(() => {
|
|
1429
|
-
r ? (ne.current = document.activeElement, (ee.current?.querySelector(
|
|
1429
|
+
r ? (ne.current = document.activeElement, (ee.current?.querySelector(_n))?.focus()) : (ne.current?.focus(), oe && ie("details"));
|
|
1430
1430
|
}, [r, oe]);
|
|
1431
1431
|
let se = s(() => {
|
|
1432
1432
|
let e = g?.find((e) => e.variant !== "destructive" && !e.disabled);
|
|
@@ -1436,7 +1436,7 @@ function xn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1436
1436
|
e.preventDefault(), ae ? se() : c?.();
|
|
1437
1437
|
return;
|
|
1438
1438
|
}
|
|
1439
|
-
|
|
1439
|
+
vn(e, ee);
|
|
1440
1440
|
}, [
|
|
1441
1441
|
ae,
|
|
1442
1442
|
se,
|
|
@@ -1448,103 +1448,103 @@ function xn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1448
1448
|
!!(E?.length || D?.length || O?.length) && "credits",
|
|
1449
1449
|
!!(k || A || j) && "legal"
|
|
1450
1450
|
].filter(Boolean), de = () => oe ? /* @__PURE__ */ t("div", {
|
|
1451
|
-
className:
|
|
1451
|
+
className: B.footer,
|
|
1452
1452
|
children: /* @__PURE__ */ t("button", {
|
|
1453
1453
|
type: "button",
|
|
1454
|
-
className: [
|
|
1454
|
+
className: [B.btn, B["btn-default"]].join(" "),
|
|
1455
1455
|
onClick: c,
|
|
1456
1456
|
children: "Close"
|
|
1457
1457
|
})
|
|
1458
1458
|
}) : ae && g ? /* @__PURE__ */ t("div", {
|
|
1459
|
-
className:
|
|
1459
|
+
className: B.footer,
|
|
1460
1460
|
children: g.map((e) => /* @__PURE__ */ t("button", {
|
|
1461
1461
|
type: "button",
|
|
1462
1462
|
disabled: e.disabled,
|
|
1463
|
-
className: [
|
|
1463
|
+
className: [B.btn, B[`btn-${e.variant ?? "default"}`]].filter(Boolean).join(" "),
|
|
1464
1464
|
onClick: () => _?.(e.id),
|
|
1465
1465
|
children: e.label
|
|
1466
1466
|
}, e.id))
|
|
1467
1467
|
}) : o.length > 0 ? /* @__PURE__ */ t("div", {
|
|
1468
|
-
className:
|
|
1468
|
+
className: B.footer,
|
|
1469
1469
|
children: o.map((e) => /* @__PURE__ */ t("button", {
|
|
1470
1470
|
type: "button",
|
|
1471
1471
|
disabled: e.disabled,
|
|
1472
|
-
className: [
|
|
1472
|
+
className: [B.btn, B[`btn-${e.variant ?? "default"}`]].filter(Boolean).join(" "),
|
|
1473
1473
|
onClick: e.onClick,
|
|
1474
1474
|
children: e.label
|
|
1475
1475
|
}, e.label))
|
|
1476
1476
|
}) : null, fe = () => /* @__PURE__ */ n(e, { children: [
|
|
1477
1477
|
/* @__PURE__ */ n("div", {
|
|
1478
|
-
className:
|
|
1478
|
+
className: B.aboutHeader,
|
|
1479
1479
|
children: [
|
|
1480
1480
|
b && /* @__PURE__ */ t("div", {
|
|
1481
|
-
className:
|
|
1481
|
+
className: B.aboutIcon,
|
|
1482
1482
|
children: b
|
|
1483
1483
|
}),
|
|
1484
1484
|
/* @__PURE__ */ t("div", {
|
|
1485
1485
|
id: te,
|
|
1486
|
-
className:
|
|
1486
|
+
className: B.aboutAppName,
|
|
1487
1487
|
children: y
|
|
1488
1488
|
}),
|
|
1489
1489
|
x && /* @__PURE__ */ t("div", {
|
|
1490
|
-
className:
|
|
1490
|
+
className: B.aboutVersion,
|
|
1491
1491
|
children: x
|
|
1492
1492
|
})
|
|
1493
1493
|
]
|
|
1494
1494
|
}),
|
|
1495
1495
|
ue.length > 1 && /* @__PURE__ */ t("div", {
|
|
1496
|
-
className:
|
|
1496
|
+
className: B.aboutTabBar,
|
|
1497
1497
|
role: "tablist",
|
|
1498
1498
|
children: ue.map((e) => /* @__PURE__ */ t("button", {
|
|
1499
1499
|
type: "button",
|
|
1500
1500
|
role: "tab",
|
|
1501
1501
|
"aria-selected": re === e,
|
|
1502
|
-
className: [
|
|
1502
|
+
className: [B.aboutTabBtn, re === e ? B.aboutTabBtnActive : null].filter(Boolean).join(" "),
|
|
1503
1503
|
onClick: () => ie(e),
|
|
1504
|
-
children:
|
|
1504
|
+
children: yn[e]
|
|
1505
1505
|
}, e))
|
|
1506
1506
|
}),
|
|
1507
1507
|
/* @__PURE__ */ n("div", {
|
|
1508
|
-
className:
|
|
1508
|
+
className: B.aboutTabContent,
|
|
1509
1509
|
children: [
|
|
1510
1510
|
re === "details" && /* @__PURE__ */ n("div", {
|
|
1511
|
-
className:
|
|
1511
|
+
className: B.aboutSection,
|
|
1512
1512
|
children: [S && /* @__PURE__ */ t("p", {
|
|
1513
|
-
className:
|
|
1513
|
+
className: B.aboutComments,
|
|
1514
1514
|
children: S
|
|
1515
1515
|
}), (C || w || M?.length) && /* @__PURE__ */ n("dl", {
|
|
1516
|
-
className:
|
|
1516
|
+
className: B.aboutInfoList,
|
|
1517
1517
|
children: [
|
|
1518
1518
|
C && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1519
|
-
className:
|
|
1519
|
+
className: B.aboutInfoLabel,
|
|
1520
1520
|
children: "Developer"
|
|
1521
1521
|
}), /* @__PURE__ */ t("dd", {
|
|
1522
|
-
className:
|
|
1522
|
+
className: B.aboutInfoValue,
|
|
1523
1523
|
children: C
|
|
1524
1524
|
})] }),
|
|
1525
1525
|
w && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1526
|
-
className:
|
|
1526
|
+
className: B.aboutInfoLabel,
|
|
1527
1527
|
children: "Website"
|
|
1528
1528
|
}), /* @__PURE__ */ t("dd", {
|
|
1529
|
-
className:
|
|
1529
|
+
className: B.aboutInfoValue,
|
|
1530
1530
|
children: /* @__PURE__ */ t("a", {
|
|
1531
1531
|
href: w,
|
|
1532
1532
|
target: "_blank",
|
|
1533
1533
|
rel: "noopener noreferrer",
|
|
1534
|
-
className:
|
|
1534
|
+
className: B.aboutLink,
|
|
1535
1535
|
children: T ?? w
|
|
1536
1536
|
})
|
|
1537
1537
|
})] }),
|
|
1538
1538
|
M?.map((r) => /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1539
|
-
className:
|
|
1539
|
+
className: B.aboutInfoLabel,
|
|
1540
1540
|
children: r.label
|
|
1541
1541
|
}, `${r.label}-dt`), /* @__PURE__ */ t("dd", {
|
|
1542
|
-
className:
|
|
1542
|
+
className: B.aboutInfoValue,
|
|
1543
1543
|
children: /* @__PURE__ */ t("a", {
|
|
1544
1544
|
href: r.url,
|
|
1545
1545
|
target: "_blank",
|
|
1546
1546
|
rel: "noopener noreferrer",
|
|
1547
|
-
className:
|
|
1547
|
+
className: B.aboutLink,
|
|
1548
1548
|
children: r.url
|
|
1549
1549
|
})
|
|
1550
1550
|
}, `${r.label}-dd`)] }))
|
|
@@ -1552,7 +1552,7 @@ function xn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1552
1552
|
})]
|
|
1553
1553
|
}),
|
|
1554
1554
|
re === "credits" && /* @__PURE__ */ t("div", {
|
|
1555
|
-
className:
|
|
1555
|
+
className: B.aboutSection,
|
|
1556
1556
|
children: [
|
|
1557
1557
|
{
|
|
1558
1558
|
heading: "Developers",
|
|
@@ -1567,32 +1567,32 @@ function xn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1567
1567
|
list: O
|
|
1568
1568
|
}
|
|
1569
1569
|
].filter((e) => e.list?.length).map(({ heading: e, list: r }) => /* @__PURE__ */ n("div", {
|
|
1570
|
-
className:
|
|
1570
|
+
className: B.aboutCreditGroup,
|
|
1571
1571
|
children: [/* @__PURE__ */ t("h4", {
|
|
1572
|
-
className:
|
|
1572
|
+
className: B.aboutCreditTitle,
|
|
1573
1573
|
children: e
|
|
1574
1574
|
}), /* @__PURE__ */ t("ul", {
|
|
1575
|
-
className:
|
|
1575
|
+
className: B.aboutCreditList,
|
|
1576
1576
|
children: r.map((e) => /* @__PURE__ */ t("li", {
|
|
1577
|
-
className:
|
|
1577
|
+
className: B.aboutCreditItem,
|
|
1578
1578
|
children: e
|
|
1579
1579
|
}, e))
|
|
1580
1580
|
})]
|
|
1581
1581
|
}, e))
|
|
1582
1582
|
}),
|
|
1583
1583
|
re === "legal" && /* @__PURE__ */ n("div", {
|
|
1584
|
-
className:
|
|
1584
|
+
className: B.aboutSection,
|
|
1585
1585
|
children: [
|
|
1586
1586
|
k && /* @__PURE__ */ t("p", {
|
|
1587
|
-
className:
|
|
1587
|
+
className: B.aboutCopyright,
|
|
1588
1588
|
children: k
|
|
1589
1589
|
}),
|
|
1590
1590
|
A && /* @__PURE__ */ t("p", {
|
|
1591
|
-
className:
|
|
1591
|
+
className: B.aboutLicenseType,
|
|
1592
1592
|
children: A
|
|
1593
1593
|
}),
|
|
1594
1594
|
j && /* @__PURE__ */ t("pre", {
|
|
1595
|
-
className:
|
|
1595
|
+
className: B.aboutLicenseText,
|
|
1596
1596
|
children: j
|
|
1597
1597
|
})
|
|
1598
1598
|
]
|
|
@@ -1600,7 +1600,7 @@ function xn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1600
1600
|
]
|
|
1601
1601
|
})
|
|
1602
1602
|
] }), pe = /* @__PURE__ */ t("div", {
|
|
1603
|
-
className:
|
|
1603
|
+
className: B.backdrop,
|
|
1604
1604
|
onClick: ce,
|
|
1605
1605
|
"aria-hidden": "true",
|
|
1606
1606
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -1609,8 +1609,8 @@ function xn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1609
1609
|
"aria-modal": "true",
|
|
1610
1610
|
"aria-labelledby": te,
|
|
1611
1611
|
className: [
|
|
1612
|
-
|
|
1613
|
-
oe ?
|
|
1612
|
+
B.dialog,
|
|
1613
|
+
oe ? B.dialogAbout : null,
|
|
1614
1614
|
N
|
|
1615
1615
|
].filter(Boolean).join(" "),
|
|
1616
1616
|
onKeyDown: le,
|
|
@@ -1618,10 +1618,10 @@ function xn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1618
1618
|
...P,
|
|
1619
1619
|
children: [oe ? fe() : /* @__PURE__ */ n(e, { children: [i && /* @__PURE__ */ t("div", {
|
|
1620
1620
|
id: te,
|
|
1621
|
-
className:
|
|
1621
|
+
className: B.title,
|
|
1622
1622
|
children: i
|
|
1623
1623
|
}), a && /* @__PURE__ */ t("div", {
|
|
1624
|
-
className:
|
|
1624
|
+
className: B.body,
|
|
1625
1625
|
children: a
|
|
1626
1626
|
})] }), de()]
|
|
1627
1627
|
})
|
|
@@ -1630,31 +1630,31 @@ function xn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1630
1630
|
}
|
|
1631
1631
|
//#endregion
|
|
1632
1632
|
//#region src/components/Dropdown/Dropdown.module.css
|
|
1633
|
-
var
|
|
1634
|
-
wrapper:
|
|
1635
|
-
trigger:
|
|
1636
|
-
triggerOpen:
|
|
1637
|
-
triggerLabel:
|
|
1638
|
-
placeholder:
|
|
1639
|
-
chevron:
|
|
1640
|
-
chevronOpen:
|
|
1641
|
-
list:
|
|
1633
|
+
var xn = "_wrapper_1hi05_3", Sn = "_trigger_1hi05_11", Cn = "_triggerOpen_1hi05_63", wn = "_triggerLabel_1hi05_73", Tn = "_placeholder_1hi05_81", En = "_chevron_1hi05_87", Dn = "_chevronOpen_1hi05_94", On = "_list_1hi05_100", kn = "_listDown_1hi05_129", An = "_listUp_1hi05_133", jn = "_option_1hi05_145", Mn = "_optionActive_1hi05_162", Nn = "_optionSelected_1hi05_166", Pn = "_optionDisabled_1hi05_170", Fn = "_optionText_1hi05_178", In = "_optionLabel_1hi05_186", Ln = "_optionDesc_1hi05_192", Rn = "_checkIcon_1hi05_202", V = {
|
|
1634
|
+
wrapper: xn,
|
|
1635
|
+
trigger: Sn,
|
|
1636
|
+
triggerOpen: Cn,
|
|
1637
|
+
triggerLabel: wn,
|
|
1638
|
+
placeholder: Tn,
|
|
1639
|
+
chevron: En,
|
|
1640
|
+
chevronOpen: Dn,
|
|
1641
|
+
list: On,
|
|
1642
1642
|
"list-in": "_list-in_1hi05_1",
|
|
1643
|
-
listDown:
|
|
1644
|
-
listUp:
|
|
1643
|
+
listDown: kn,
|
|
1644
|
+
listUp: An,
|
|
1645
1645
|
"list-in-up": "_list-in-up_1hi05_1",
|
|
1646
|
-
option:
|
|
1647
|
-
optionActive:
|
|
1648
|
-
optionSelected:
|
|
1649
|
-
optionDisabled:
|
|
1650
|
-
optionText:
|
|
1651
|
-
optionLabel:
|
|
1652
|
-
optionDesc:
|
|
1653
|
-
checkIcon:
|
|
1646
|
+
option: jn,
|
|
1647
|
+
optionActive: Mn,
|
|
1648
|
+
optionSelected: Nn,
|
|
1649
|
+
optionDisabled: Pn,
|
|
1650
|
+
optionText: Fn,
|
|
1651
|
+
optionLabel: In,
|
|
1652
|
+
optionDesc: Ln,
|
|
1653
|
+
checkIcon: Rn
|
|
1654
1654
|
};
|
|
1655
1655
|
//#endregion
|
|
1656
1656
|
//#region src/components/Dropdown/Dropdown.tsx
|
|
1657
|
-
function
|
|
1657
|
+
function zn({ options: e, value: r, onChange: i, placeholder: a = "Select an option", disabled: o, className: c, ...p }) {
|
|
1658
1658
|
let [m, h] = f(!1), [g, _] = f(-1), [v, y] = f(!1), b = u(), x = u(), S = d(null), C = d(null), w = e.find((e) => e.value === r), T = s(() => {
|
|
1659
1659
|
if (!S.current) return;
|
|
1660
1660
|
let t = S.current.getBoundingClientRect(), n = window.innerHeight - t.bottom, r = Math.min(e.length * 48 + 8, 280);
|
|
@@ -1738,7 +1738,7 @@ function Bn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1738
1738
|
D
|
|
1739
1739
|
]);
|
|
1740
1740
|
return /* @__PURE__ */ n("div", {
|
|
1741
|
-
className: [
|
|
1741
|
+
className: [V.wrapper, c].filter(Boolean).join(" "),
|
|
1742
1742
|
...p,
|
|
1743
1743
|
children: [/* @__PURE__ */ n("button", {
|
|
1744
1744
|
ref: S,
|
|
@@ -1750,17 +1750,17 @@ function Bn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1750
1750
|
"aria-controls": x,
|
|
1751
1751
|
"aria-activedescendant": m && g >= 0 ? `${x}-opt-${g}` : void 0,
|
|
1752
1752
|
disabled: o,
|
|
1753
|
-
className: [
|
|
1753
|
+
className: [V.trigger, m ? V.triggerOpen : null].filter(Boolean).join(" "),
|
|
1754
1754
|
onClick: () => m ? D() : E(),
|
|
1755
1755
|
onKeyDown: k,
|
|
1756
1756
|
children: [/* @__PURE__ */ t("span", {
|
|
1757
|
-
className: [
|
|
1757
|
+
className: [V.triggerLabel, w ? null : V.placeholder].filter(Boolean).join(" "),
|
|
1758
1758
|
children: w?.label ?? a
|
|
1759
1759
|
}), /* @__PURE__ */ t(F, {
|
|
1760
1760
|
icon: Me,
|
|
1761
1761
|
size: "md",
|
|
1762
1762
|
"aria-hidden": !0,
|
|
1763
|
-
className: [
|
|
1763
|
+
className: [V.chevron, m ? V.chevronOpen : null].filter(Boolean).join(" ")
|
|
1764
1764
|
})]
|
|
1765
1765
|
}), m && /* @__PURE__ */ t("ul", {
|
|
1766
1766
|
ref: C,
|
|
@@ -1768,7 +1768,7 @@ function Bn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1768
1768
|
role: "listbox",
|
|
1769
1769
|
"aria-labelledby": b,
|
|
1770
1770
|
tabIndex: -1,
|
|
1771
|
-
className: [
|
|
1771
|
+
className: [V.list, v ? V.listUp : V.listDown].filter(Boolean).join(" "),
|
|
1772
1772
|
onKeyDown: A,
|
|
1773
1773
|
children: e.map((e, i) => /* @__PURE__ */ n("li", {
|
|
1774
1774
|
id: `${x}-opt-${i}`,
|
|
@@ -1776,33 +1776,33 @@ function Bn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1776
1776
|
"aria-selected": e.value === r,
|
|
1777
1777
|
"aria-disabled": e.disabled,
|
|
1778
1778
|
className: [
|
|
1779
|
-
|
|
1780
|
-
e.value === r ?
|
|
1781
|
-
i === g ?
|
|
1782
|
-
e.disabled ?
|
|
1779
|
+
V.option,
|
|
1780
|
+
e.value === r ? V.optionSelected : null,
|
|
1781
|
+
i === g ? V.optionActive : null,
|
|
1782
|
+
e.disabled ? V.optionDisabled : null
|
|
1783
1783
|
].filter(Boolean).join(" "),
|
|
1784
1784
|
onMouseEnter: () => !e.disabled && _(i),
|
|
1785
1785
|
onClick: () => O(e),
|
|
1786
1786
|
children: [/* @__PURE__ */ n("span", {
|
|
1787
|
-
className:
|
|
1787
|
+
className: V.optionText,
|
|
1788
1788
|
children: [/* @__PURE__ */ t("span", {
|
|
1789
|
-
className:
|
|
1789
|
+
className: V.optionLabel,
|
|
1790
1790
|
children: e.label
|
|
1791
1791
|
}), e.description && /* @__PURE__ */ t("span", {
|
|
1792
|
-
className:
|
|
1792
|
+
className: V.optionDesc,
|
|
1793
1793
|
children: e.description
|
|
1794
1794
|
})]
|
|
1795
1795
|
}), e.value === r && /* @__PURE__ */ t(F, {
|
|
1796
1796
|
icon: Le,
|
|
1797
1797
|
size: "md",
|
|
1798
1798
|
"aria-hidden": !0,
|
|
1799
|
-
className:
|
|
1799
|
+
className: V.checkIcon
|
|
1800
1800
|
})]
|
|
1801
1801
|
}, e.value))
|
|
1802
1802
|
})]
|
|
1803
1803
|
});
|
|
1804
1804
|
}
|
|
1805
|
-
var
|
|
1805
|
+
var Bn = {
|
|
1806
1806
|
wrapper: "_wrapper_11zhs_3",
|
|
1807
1807
|
hasLabels: "_hasLabels_11zhs_11",
|
|
1808
1808
|
track: "_track_11zhs_17",
|
|
@@ -1876,8 +1876,8 @@ function Wn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1876
1876
|
]), C = l && l.length > 0, w = C && l.some((e) => e.label);
|
|
1877
1877
|
return /* @__PURE__ */ n("div", {
|
|
1878
1878
|
className: [
|
|
1879
|
-
|
|
1880
|
-
w ?
|
|
1879
|
+
Bn.wrapper,
|
|
1880
|
+
w ? Bn.hasLabels : null,
|
|
1881
1881
|
u
|
|
1882
1882
|
].filter(Boolean).join(" "),
|
|
1883
1883
|
...h,
|
|
@@ -1892,36 +1892,36 @@ function Wn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1892
1892
|
"aria-labelledby": p,
|
|
1893
1893
|
"aria-describedby": m,
|
|
1894
1894
|
"aria-disabled": c || void 0,
|
|
1895
|
-
className: [
|
|
1895
|
+
className: [Bn.track, c ? Bn.disabled : null].filter(Boolean).join(" "),
|
|
1896
1896
|
onPointerDown: b,
|
|
1897
1897
|
onPointerMove: x,
|
|
1898
1898
|
onKeyDown: c ? void 0 : S,
|
|
1899
1899
|
children: [
|
|
1900
1900
|
/* @__PURE__ */ t("div", {
|
|
1901
|
-
className:
|
|
1901
|
+
className: Bn.fill,
|
|
1902
1902
|
style: { width: `${v}%` }
|
|
1903
1903
|
}),
|
|
1904
1904
|
/* @__PURE__ */ t("div", {
|
|
1905
|
-
className:
|
|
1905
|
+
className: Bn.thumb,
|
|
1906
1906
|
style: { left: `${v}%` },
|
|
1907
1907
|
"aria-hidden": "true"
|
|
1908
1908
|
}),
|
|
1909
1909
|
C && l.map((e) => {
|
|
1910
1910
|
let n = (Vn(e.value, i, a) - i) / (a - i) * 100;
|
|
1911
1911
|
return /* @__PURE__ */ t("div", {
|
|
1912
|
-
className:
|
|
1912
|
+
className: Bn.tick,
|
|
1913
1913
|
style: { left: `${n}%` },
|
|
1914
1914
|
"aria-hidden": "true"
|
|
1915
1915
|
}, e.value);
|
|
1916
1916
|
})
|
|
1917
1917
|
]
|
|
1918
1918
|
}), w && /* @__PURE__ */ t("div", {
|
|
1919
|
-
className:
|
|
1919
|
+
className: Bn.labels,
|
|
1920
1920
|
"aria-hidden": "true",
|
|
1921
1921
|
children: l.map((e) => {
|
|
1922
1922
|
let n = (Vn(e.value, i, a) - i) / (a - i) * 100;
|
|
1923
1923
|
return /* @__PURE__ */ t("span", {
|
|
1924
|
-
className:
|
|
1924
|
+
className: Bn.markLabel,
|
|
1925
1925
|
style: { left: `${n}%` },
|
|
1926
1926
|
children: e.label
|
|
1927
1927
|
}, e.value);
|
|
@@ -1937,7 +1937,7 @@ var Gn = {
|
|
|
1937
1937
|
top: "_top_1tk9v_67",
|
|
1938
1938
|
left: "_left_1tk9v_75",
|
|
1939
1939
|
right: "_right_1tk9v_83"
|
|
1940
|
-
}, Kn = 8, qn =
|
|
1940
|
+
}, Kn = 8, H = 10, qn = 6;
|
|
1941
1941
|
function Jn(e, t, n) {
|
|
1942
1942
|
let r = window.innerWidth, i = window.innerHeight, a = [...new Set([
|
|
1943
1943
|
n,
|
|
@@ -1947,21 +1947,57 @@ function Jn(e, t, n) {
|
|
|
1947
1947
|
"left",
|
|
1948
1948
|
"right"
|
|
1949
1949
|
])];
|
|
1950
|
+
function o(n) {
|
|
1951
|
+
return n === "bottom" ? {
|
|
1952
|
+
top: e.bottom + Kn,
|
|
1953
|
+
left: e.left + e.width / 2 - t.width / 2
|
|
1954
|
+
} : n === "top" ? {
|
|
1955
|
+
top: e.top - t.height - Kn,
|
|
1956
|
+
left: e.left + e.width / 2 - t.width / 2
|
|
1957
|
+
} : n === "left" ? {
|
|
1958
|
+
top: e.top + e.height / 2 - t.height / 2,
|
|
1959
|
+
left: e.left - t.width - Kn
|
|
1960
|
+
} : {
|
|
1961
|
+
top: e.top + e.height / 2 - t.height / 2,
|
|
1962
|
+
left: e.right + Kn
|
|
1963
|
+
};
|
|
1964
|
+
}
|
|
1950
1965
|
for (let n of a) {
|
|
1951
|
-
let a =
|
|
1952
|
-
|
|
1953
|
-
let s = o >= qn && o + t.width <= r - qn, c = a >= qn && a + t.height <= i - qn;
|
|
1954
|
-
if (s && c) return {
|
|
1966
|
+
let { top: a, left: s } = o(n), c = s >= H && s + t.width <= r - H, l = a >= H && a + t.height <= i - H;
|
|
1967
|
+
if (c && l) return {
|
|
1955
1968
|
top: a,
|
|
1956
|
-
left:
|
|
1957
|
-
placement: n
|
|
1969
|
+
left: s,
|
|
1970
|
+
placement: n,
|
|
1971
|
+
arrowOffset: n === "top" || n === "bottom" ? e.left + e.width / 2 - s : e.top + e.height / 2 - a
|
|
1958
1972
|
};
|
|
1959
1973
|
}
|
|
1960
|
-
let
|
|
1974
|
+
for (let n of a) {
|
|
1975
|
+
let { top: a, left: s } = o(n), c = a >= H && a + t.height <= i - H, l = s >= H && s + t.width <= r - H;
|
|
1976
|
+
if ((n === "top" || n === "bottom") && c) {
|
|
1977
|
+
let i = Math.max(H, Math.min(s, r - t.width - H)), o = e.left + e.width / 2 - i;
|
|
1978
|
+
return {
|
|
1979
|
+
top: a,
|
|
1980
|
+
left: i,
|
|
1981
|
+
placement: n,
|
|
1982
|
+
arrowOffset: Math.max(qn + 4, Math.min(o, t.width - qn - 4))
|
|
1983
|
+
};
|
|
1984
|
+
}
|
|
1985
|
+
if ((n === "left" || n === "right") && l) {
|
|
1986
|
+
let r = Math.max(H, Math.min(a, i - t.height - H)), o = e.top + e.height / 2 - r;
|
|
1987
|
+
return {
|
|
1988
|
+
top: r,
|
|
1989
|
+
left: s,
|
|
1990
|
+
placement: n,
|
|
1991
|
+
arrowOffset: Math.max(qn + 4, Math.min(o, t.height - qn - 4))
|
|
1992
|
+
};
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
let s = e.bottom + Kn, c = e.left + e.width / 2 - t.width / 2, l = Math.max(H, Math.min(s, i - t.height - H)), u = Math.max(H, Math.min(c, r - t.width - H)), d = e.left + e.width / 2 - u;
|
|
1961
1996
|
return {
|
|
1962
|
-
top:
|
|
1963
|
-
left:
|
|
1964
|
-
placement: "bottom"
|
|
1997
|
+
top: l,
|
|
1998
|
+
left: u,
|
|
1999
|
+
placement: "bottom",
|
|
2000
|
+
arrowOffset: Math.max(qn + 4, Math.min(d, t.width - qn - 4))
|
|
1965
2001
|
};
|
|
1966
2002
|
}
|
|
1967
2003
|
function Yn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenChange: m, children: h }) {
|
|
@@ -2037,7 +2073,14 @@ function Yn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2037
2073
|
onKeyDown: A,
|
|
2038
2074
|
children: [/* @__PURE__ */ t("div", {
|
|
2039
2075
|
className: Gn.arrow,
|
|
2040
|
-
"aria-hidden": "true"
|
|
2076
|
+
"aria-hidden": "true",
|
|
2077
|
+
style: b?.arrowOffset === void 0 ? void 0 : b.placement === "top" || b.placement === "bottom" ? {
|
|
2078
|
+
left: b.arrowOffset - qn,
|
|
2079
|
+
marginLeft: 0
|
|
2080
|
+
} : {
|
|
2081
|
+
top: b.arrowOffset - qn,
|
|
2082
|
+
marginTop: 0
|
|
2083
|
+
}
|
|
2041
2084
|
}), r]
|
|
2042
2085
|
});
|
|
2043
2086
|
return /* @__PURE__ */ n(e, { children: [j, y && (typeof document < "u" ? p(M, document.body) : M)] });
|
|
@@ -2056,7 +2099,7 @@ function Zn({ maximumSize: e = 600, children: n, className: r, style: i, ...a })
|
|
|
2056
2099
|
children: n
|
|
2057
2100
|
});
|
|
2058
2101
|
}
|
|
2059
|
-
var
|
|
2102
|
+
var U = {
|
|
2060
2103
|
root: "_root_yaj3r_3",
|
|
2061
2104
|
expanded: "_expanded_yaj3r_12",
|
|
2062
2105
|
sidebar: "_sidebar_yaj3r_16",
|
|
@@ -2069,11 +2112,11 @@ var H = {
|
|
|
2069
2112
|
//#endregion
|
|
2070
2113
|
//#region src/components/NavigationSplitView/NavigationSplitView.tsx
|
|
2071
2114
|
function Qn({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a = 180, maxSidebarWidth: o = 280, sidebarWidthFraction: s = .25, className: c, style: l, ...u }) {
|
|
2072
|
-
let { isNarrow: d } =
|
|
2115
|
+
let { isNarrow: d } = He(), f = `clamp(${a}px, ${s * 100}%, ${o}px)`;
|
|
2073
2116
|
return /* @__PURE__ */ n("div", {
|
|
2074
2117
|
className: [
|
|
2075
|
-
|
|
2076
|
-
d ?
|
|
2118
|
+
U.root,
|
|
2119
|
+
d ? U.collapsed : U.expanded,
|
|
2077
2120
|
c
|
|
2078
2121
|
].filter(Boolean).join(" "),
|
|
2079
2122
|
style: {
|
|
@@ -2083,23 +2126,23 @@ function Qn({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a =
|
|
|
2083
2126
|
...u,
|
|
2084
2127
|
children: [
|
|
2085
2128
|
/* @__PURE__ */ t("div", {
|
|
2086
|
-
className: [
|
|
2129
|
+
className: [U.sidebar, d && i ? U.paneHidden : U.paneVisible].filter(Boolean).join(" "),
|
|
2087
2130
|
"aria-hidden": d && i,
|
|
2088
2131
|
children: e
|
|
2089
2132
|
}),
|
|
2090
2133
|
!d && /* @__PURE__ */ t("div", {
|
|
2091
|
-
className:
|
|
2134
|
+
className: U.divider,
|
|
2092
2135
|
"aria-hidden": "true"
|
|
2093
2136
|
}),
|
|
2094
2137
|
/* @__PURE__ */ t("div", {
|
|
2095
|
-
className: [
|
|
2138
|
+
className: [U.contentPane, d && !i ? U.paneHidden : U.paneVisible].filter(Boolean).join(" "),
|
|
2096
2139
|
"aria-hidden": d && !i,
|
|
2097
2140
|
children: r
|
|
2098
2141
|
})
|
|
2099
2142
|
]
|
|
2100
2143
|
});
|
|
2101
2144
|
}
|
|
2102
|
-
var
|
|
2145
|
+
var W = {
|
|
2103
2146
|
root: "_root_1xl2w_3",
|
|
2104
2147
|
wide: "_wide_1xl2w_13",
|
|
2105
2148
|
end: "_end_1xl2w_17",
|
|
@@ -2115,7 +2158,7 @@ var U = {
|
|
|
2115
2158
|
//#endregion
|
|
2116
2159
|
//#region src/components/OverlaySplitView/OverlaySplitView.tsx
|
|
2117
2160
|
function $n({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPosition: o = "start", minSidebarWidth: s = 180, maxSidebarWidth: c = 280, sidebarWidthFraction: u = .25, className: f, style: p, ...m }) {
|
|
2118
|
-
let { isNarrow: h } =
|
|
2161
|
+
let { isNarrow: h } = He(), g = d(null), _ = `clamp(${s}px, ${u * 100}%, ${c}px)`;
|
|
2119
2162
|
l(() => {
|
|
2120
2163
|
if (!h || !i) return;
|
|
2121
2164
|
let e = (e) => {
|
|
@@ -2132,9 +2175,9 @@ function $n({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPo
|
|
|
2132
2175
|
let v = o === "end";
|
|
2133
2176
|
return /* @__PURE__ */ n("div", {
|
|
2134
2177
|
className: [
|
|
2135
|
-
|
|
2136
|
-
h ?
|
|
2137
|
-
v ?
|
|
2178
|
+
W.root,
|
|
2179
|
+
h ? W.narrow : W.wide,
|
|
2180
|
+
v ? W.end : W.start,
|
|
2138
2181
|
f
|
|
2139
2182
|
].filter(Boolean).join(" "),
|
|
2140
2183
|
style: {
|
|
@@ -2144,18 +2187,18 @@ function $n({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPo
|
|
|
2144
2187
|
...m,
|
|
2145
2188
|
children: [
|
|
2146
2189
|
h && /* @__PURE__ */ t("div", {
|
|
2147
|
-
className: [
|
|
2190
|
+
className: [W.backdrop, i ? W.backdropVisible : null].filter(Boolean).join(" "),
|
|
2148
2191
|
"aria-hidden": "true",
|
|
2149
2192
|
onClick: a
|
|
2150
2193
|
}),
|
|
2151
2194
|
/* @__PURE__ */ t("div", {
|
|
2152
2195
|
ref: g,
|
|
2153
|
-
className: [
|
|
2196
|
+
className: [W.sidebar, h ? i ? W.sidebarOpen : W.sidebarClosed : null].filter(Boolean).join(" "),
|
|
2154
2197
|
"aria-hidden": h && !i,
|
|
2155
2198
|
children: e
|
|
2156
2199
|
}),
|
|
2157
2200
|
/* @__PURE__ */ t("div", {
|
|
2158
|
-
className:
|
|
2201
|
+
className: W.content,
|
|
2159
2202
|
children: r
|
|
2160
2203
|
})
|
|
2161
2204
|
]
|
|
@@ -2374,7 +2417,7 @@ function pr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2374
2417
|
}
|
|
2375
2418
|
//#endregion
|
|
2376
2419
|
//#region src/components/ShortcutsDialog/ShortcutsDialog.module.css
|
|
2377
|
-
var mr = "_backdrop_zvuhh_3", hr = "_dialog_zvuhh_26", gr = "_header_zvuhh_59", _r = "_title_zvuhh_67", vr = "_closeBtn_zvuhh_74", yr = "_searchRow_zvuhh_112", br = "_searchIcon_zvuhh_124", xr = "_searchInput_zvuhh_132", Sr = "_searchClear_zvuhh_151", Cr = "_body_zvuhh_174", wr = "_empty_zvuhh_182", Tr = "_section_zvuhh_193", Er = "_sectionTitle_zvuhh_199", Dr = "_list_zvuhh_209", Or = "_row_zvuhh_225", kr = "_keys_zvuhh_240", Ar = "_keyCap_zvuhh_247", jr = "_plus_zvuhh_277", Mr = "_description_zvuhh_284",
|
|
2420
|
+
var mr = "_backdrop_zvuhh_3", hr = "_dialog_zvuhh_26", gr = "_header_zvuhh_59", _r = "_title_zvuhh_67", vr = "_closeBtn_zvuhh_74", yr = "_searchRow_zvuhh_112", br = "_searchIcon_zvuhh_124", xr = "_searchInput_zvuhh_132", Sr = "_searchClear_zvuhh_151", Cr = "_body_zvuhh_174", wr = "_empty_zvuhh_182", Tr = "_section_zvuhh_193", Er = "_sectionTitle_zvuhh_199", Dr = "_list_zvuhh_209", Or = "_row_zvuhh_225", kr = "_keys_zvuhh_240", Ar = "_keyCap_zvuhh_247", jr = "_plus_zvuhh_277", Mr = "_description_zvuhh_284", G = {
|
|
2378
2421
|
backdrop: mr,
|
|
2379
2422
|
"backdrop-in": "_backdrop-in_zvuhh_1",
|
|
2380
2423
|
dialog: hr,
|
|
@@ -2418,7 +2461,7 @@ function Pr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2418
2461
|
...e,
|
|
2419
2462
|
shortcuts: e.shortcuts.filter(({ description: e, keys: t }) => !v || e.toLowerCase().includes(v) || t.some((e) => e.toLowerCase().includes(v)))
|
|
2420
2463
|
})).filter((e) => e.shortcuts.length > 0), b = /* @__PURE__ */ t("div", {
|
|
2421
|
-
className:
|
|
2464
|
+
className: G.backdrop,
|
|
2422
2465
|
onClick: r,
|
|
2423
2466
|
"aria-hidden": "true",
|
|
2424
2467
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -2426,36 +2469,36 @@ function Pr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2426
2469
|
role: "dialog",
|
|
2427
2470
|
"aria-modal": "true",
|
|
2428
2471
|
"aria-labelledby": g.current,
|
|
2429
|
-
className:
|
|
2472
|
+
className: G.dialog,
|
|
2430
2473
|
onKeyDown: _,
|
|
2431
2474
|
onClick: (e) => e.stopPropagation(),
|
|
2432
2475
|
children: [
|
|
2433
2476
|
/* @__PURE__ */ n("div", {
|
|
2434
|
-
className:
|
|
2477
|
+
className: G.header,
|
|
2435
2478
|
children: [/* @__PURE__ */ t("span", {
|
|
2436
2479
|
id: g.current,
|
|
2437
|
-
className:
|
|
2480
|
+
className: G.title,
|
|
2438
2481
|
children: i
|
|
2439
2482
|
}), /* @__PURE__ */ t("button", {
|
|
2440
2483
|
type: "button",
|
|
2441
|
-
className:
|
|
2484
|
+
className: G.closeBtn,
|
|
2442
2485
|
"aria-label": "Close",
|
|
2443
2486
|
onClick: r,
|
|
2444
2487
|
children: "×"
|
|
2445
2488
|
})]
|
|
2446
2489
|
}),
|
|
2447
2490
|
/* @__PURE__ */ n("div", {
|
|
2448
|
-
className:
|
|
2491
|
+
className: G.searchRow,
|
|
2449
2492
|
children: [
|
|
2450
2493
|
/* @__PURE__ */ t("span", {
|
|
2451
|
-
className:
|
|
2494
|
+
className: G.searchIcon,
|
|
2452
2495
|
"aria-hidden": "true",
|
|
2453
2496
|
children: "⌕"
|
|
2454
2497
|
}),
|
|
2455
2498
|
/* @__PURE__ */ t("input", {
|
|
2456
2499
|
ref: m,
|
|
2457
2500
|
type: "search",
|
|
2458
|
-
className:
|
|
2501
|
+
className: G.searchInput,
|
|
2459
2502
|
placeholder: "Search shortcuts…",
|
|
2460
2503
|
value: o,
|
|
2461
2504
|
onChange: (e) => c(e.target.value),
|
|
@@ -2463,7 +2506,7 @@ function Pr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2463
2506
|
}),
|
|
2464
2507
|
o && /* @__PURE__ */ t("button", {
|
|
2465
2508
|
type: "button",
|
|
2466
|
-
className:
|
|
2509
|
+
className: G.searchClear,
|
|
2467
2510
|
"aria-label": "Clear search",
|
|
2468
2511
|
onClick: () => {
|
|
2469
2512
|
c(""), m.current?.focus();
|
|
@@ -2473,38 +2516,38 @@ function Pr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2473
2516
|
]
|
|
2474
2517
|
}),
|
|
2475
2518
|
/* @__PURE__ */ t("div", {
|
|
2476
|
-
className:
|
|
2519
|
+
className: G.body,
|
|
2477
2520
|
role: "list",
|
|
2478
2521
|
children: y.length === 0 ? /* @__PURE__ */ n("p", {
|
|
2479
|
-
className:
|
|
2522
|
+
className: G.empty,
|
|
2480
2523
|
children: [
|
|
2481
2524
|
"No shortcuts match \"",
|
|
2482
2525
|
o,
|
|
2483
2526
|
"\""
|
|
2484
2527
|
]
|
|
2485
2528
|
}) : y.map((e) => /* @__PURE__ */ n("section", {
|
|
2486
|
-
className:
|
|
2529
|
+
className: G.section,
|
|
2487
2530
|
children: [/* @__PURE__ */ t("h3", {
|
|
2488
|
-
className:
|
|
2531
|
+
className: G.sectionTitle,
|
|
2489
2532
|
children: e.title
|
|
2490
2533
|
}), /* @__PURE__ */ t("ul", {
|
|
2491
|
-
className:
|
|
2534
|
+
className: G.list,
|
|
2492
2535
|
children: e.shortcuts.map((e) => /* @__PURE__ */ n("li", {
|
|
2493
|
-
className:
|
|
2536
|
+
className: G.row,
|
|
2494
2537
|
role: "listitem",
|
|
2495
2538
|
children: [/* @__PURE__ */ t("span", {
|
|
2496
|
-
className:
|
|
2539
|
+
className: G.keys,
|
|
2497
2540
|
"aria-label": e.keys.join(" + "),
|
|
2498
2541
|
children: e.keys.map((r, i) => /* @__PURE__ */ n("span", {
|
|
2499
|
-
className:
|
|
2542
|
+
className: G.keyCap,
|
|
2500
2543
|
children: [/* @__PURE__ */ t("kbd", { children: r }), i < e.keys.length - 1 && /* @__PURE__ */ t("span", {
|
|
2501
|
-
className:
|
|
2544
|
+
className: G.plus,
|
|
2502
2545
|
"aria-hidden": "true",
|
|
2503
2546
|
children: "+"
|
|
2504
2547
|
})]
|
|
2505
2548
|
}, i))
|
|
2506
2549
|
}), /* @__PURE__ */ t("span", {
|
|
2507
|
-
className:
|
|
2550
|
+
className: G.description,
|
|
2508
2551
|
children: e.description
|
|
2509
2552
|
})]
|
|
2510
2553
|
}, e.description))
|
|
@@ -2516,7 +2559,7 @@ function Pr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2516
2559
|
});
|
|
2517
2560
|
return typeof document > "u" ? b : p(b, document.body);
|
|
2518
2561
|
}
|
|
2519
|
-
var
|
|
2562
|
+
var Fr = {
|
|
2520
2563
|
sidebar: "_sidebar_kmj4b_3",
|
|
2521
2564
|
list: "_list_kmj4b_17",
|
|
2522
2565
|
item: "_item_kmj4b_28",
|
|
@@ -2526,13 +2569,13 @@ var G = {
|
|
|
2526
2569
|
itemLabel: "_itemLabel_kmj4b_119",
|
|
2527
2570
|
itemSuffix: "_itemSuffix_kmj4b_129",
|
|
2528
2571
|
count: "_count_kmj4b_136"
|
|
2529
|
-
},
|
|
2530
|
-
function
|
|
2531
|
-
let e = c(
|
|
2572
|
+
}, Ir = a(null);
|
|
2573
|
+
function Lr() {
|
|
2574
|
+
let e = c(Ir);
|
|
2532
2575
|
if (!e) throw Error("ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar");
|
|
2533
2576
|
return e;
|
|
2534
2577
|
}
|
|
2535
|
-
function
|
|
2578
|
+
function Rr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i, className: a, ...o }) {
|
|
2536
2579
|
let s = d(null);
|
|
2537
2580
|
function c(e) {
|
|
2538
2581
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2545,20 +2588,20 @@ function Lr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2545
2588
|
else return;
|
|
2546
2589
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2547
2590
|
}
|
|
2548
|
-
return /* @__PURE__ */ t(
|
|
2591
|
+
return /* @__PURE__ */ t(Ir.Provider, {
|
|
2549
2592
|
value: {
|
|
2550
2593
|
value: e,
|
|
2551
2594
|
onValueChange: n
|
|
2552
2595
|
},
|
|
2553
2596
|
children: /* @__PURE__ */ t("nav", {
|
|
2554
|
-
className: [
|
|
2597
|
+
className: [Fr.sidebar, a].filter(Boolean).join(" "),
|
|
2555
2598
|
onKeyDown: c,
|
|
2556
2599
|
...o,
|
|
2557
2600
|
children: /* @__PURE__ */ t("ul", {
|
|
2558
2601
|
ref: s,
|
|
2559
2602
|
role: "radiogroup",
|
|
2560
2603
|
"aria-label": r,
|
|
2561
|
-
className:
|
|
2604
|
+
className: Fr.list,
|
|
2562
2605
|
children: i
|
|
2563
2606
|
})
|
|
2564
2607
|
})
|
|
@@ -2566,10 +2609,10 @@ function Lr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2566
2609
|
}
|
|
2567
2610
|
//#endregion
|
|
2568
2611
|
//#region src/components/ViewSwitcherSidebar/ViewSwitcherSidebarItem.tsx
|
|
2569
|
-
function
|
|
2570
|
-
let { value: u, onValueChange: d } =
|
|
2612
|
+
function zr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, className: c, ...l }) {
|
|
2613
|
+
let { value: u, onValueChange: d } = Lr(), f = u === e, p = o ?? a ?? null;
|
|
2571
2614
|
return /* @__PURE__ */ t("li", {
|
|
2572
|
-
className:
|
|
2615
|
+
className: Fr.item,
|
|
2573
2616
|
children: /* @__PURE__ */ n("button", {
|
|
2574
2617
|
type: "button",
|
|
2575
2618
|
role: "radio",
|
|
@@ -2578,14 +2621,14 @@ function Rr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2578
2621
|
disabled: s,
|
|
2579
2622
|
onClick: () => d(e),
|
|
2580
2623
|
className: [
|
|
2581
|
-
|
|
2582
|
-
f ?
|
|
2624
|
+
Fr.itemBtn,
|
|
2625
|
+
f ? Fr.active : null,
|
|
2583
2626
|
c
|
|
2584
2627
|
].filter(Boolean).join(" "),
|
|
2585
2628
|
...l,
|
|
2586
2629
|
children: [
|
|
2587
2630
|
i && /* @__PURE__ */ t("span", {
|
|
2588
|
-
className:
|
|
2631
|
+
className: Fr.itemIcon,
|
|
2589
2632
|
children: /* @__PURE__ */ t(F, {
|
|
2590
2633
|
icon: i,
|
|
2591
2634
|
size: "md",
|
|
@@ -2593,13 +2636,13 @@ function Rr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2593
2636
|
})
|
|
2594
2637
|
}),
|
|
2595
2638
|
/* @__PURE__ */ t("span", {
|
|
2596
|
-
className:
|
|
2639
|
+
className: Fr.itemLabel,
|
|
2597
2640
|
children: r
|
|
2598
2641
|
}),
|
|
2599
2642
|
p != null && /* @__PURE__ */ t("span", {
|
|
2600
|
-
className:
|
|
2643
|
+
className: Fr.itemSuffix,
|
|
2601
2644
|
children: typeof p == "number" ? /* @__PURE__ */ t("span", {
|
|
2602
|
-
className:
|
|
2645
|
+
className: Fr.count,
|
|
2603
2646
|
children: p > 99 ? "99+" : p
|
|
2604
2647
|
}) : p
|
|
2605
2648
|
})
|
|
@@ -2609,7 +2652,7 @@ function Rr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2609
2652
|
}
|
|
2610
2653
|
//#endregion
|
|
2611
2654
|
//#region src/components/BreakpointBin/BreakpointBin.tsx
|
|
2612
|
-
function
|
|
2655
|
+
function Br({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
2613
2656
|
let o = d(null), [s, c] = f({
|
|
2614
2657
|
activeBreakpoint: null,
|
|
2615
2658
|
width: 0
|
|
@@ -2639,7 +2682,7 @@ function zr({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
|
2639
2682
|
children: n(s)
|
|
2640
2683
|
});
|
|
2641
2684
|
}
|
|
2642
|
-
var
|
|
2685
|
+
var Vr = {
|
|
2643
2686
|
row: "_row_1ba2f_3",
|
|
2644
2687
|
title: "_title_1ba2f_48",
|
|
2645
2688
|
leading: "_leading_1ba2f_59",
|
|
@@ -2650,31 +2693,31 @@ var Br = {
|
|
|
2650
2693
|
};
|
|
2651
2694
|
//#endregion
|
|
2652
2695
|
//#region src/components/ButtonRow/ButtonRow.tsx
|
|
2653
|
-
function
|
|
2696
|
+
function Hr({ title: e, variant: r = "default", leading: i, trailing: a, className: o, ...s }) {
|
|
2654
2697
|
return /* @__PURE__ */ n("button", {
|
|
2655
2698
|
className: [
|
|
2656
|
-
|
|
2657
|
-
|
|
2699
|
+
Vr.row,
|
|
2700
|
+
Vr[r],
|
|
2658
2701
|
o
|
|
2659
2702
|
].filter(Boolean).join(" "),
|
|
2660
2703
|
...s,
|
|
2661
2704
|
children: [
|
|
2662
2705
|
i && /* @__PURE__ */ t("span", {
|
|
2663
|
-
className:
|
|
2706
|
+
className: Vr.leading,
|
|
2664
2707
|
children: i
|
|
2665
2708
|
}),
|
|
2666
2709
|
/* @__PURE__ */ t("span", {
|
|
2667
|
-
className:
|
|
2710
|
+
className: Vr.title,
|
|
2668
2711
|
children: e
|
|
2669
2712
|
}),
|
|
2670
2713
|
a && /* @__PURE__ */ t("span", {
|
|
2671
|
-
className:
|
|
2714
|
+
className: Vr.trailing,
|
|
2672
2715
|
children: a
|
|
2673
2716
|
})
|
|
2674
2717
|
]
|
|
2675
2718
|
});
|
|
2676
2719
|
}
|
|
2677
|
-
var
|
|
2720
|
+
var Ur = {
|
|
2678
2721
|
container: "_container_4kjnf_3",
|
|
2679
2722
|
primary: "_primary_4kjnf_14",
|
|
2680
2723
|
toggle: "_toggle_4kjnf_15",
|
|
@@ -2688,7 +2731,7 @@ var Hr = {
|
|
|
2688
2731
|
};
|
|
2689
2732
|
//#endregion
|
|
2690
2733
|
//#region src/components/SplitButton/SplitButton.tsx
|
|
2691
|
-
function
|
|
2734
|
+
function Wr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabel: o = "More options", disabled: c = !1, onClick: u, className: m, ...h }) {
|
|
2692
2735
|
let [g, _] = f(!1), [v, y] = f({}), b = d(null), x = d(null), S = d(null), C = s(() => _(!1), []), w = s(() => {
|
|
2693
2736
|
if (!x.current || !S.current) return;
|
|
2694
2737
|
let e = x.current.getBoundingClientRect(), t = S.current.getBoundingClientRect(), n = window.innerWidth, r = e.right - t.width;
|
|
@@ -2718,15 +2761,15 @@ function Ur({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2718
2761
|
let T = (e) => {
|
|
2719
2762
|
e.key === "Escape" && (e.stopPropagation(), C(), x.current?.focus());
|
|
2720
2763
|
}, E = [
|
|
2721
|
-
|
|
2722
|
-
|
|
2764
|
+
Ur.container,
|
|
2765
|
+
Ur[i],
|
|
2723
2766
|
m
|
|
2724
2767
|
].filter(Boolean).join(" "), D = /* @__PURE__ */ t("div", {
|
|
2725
2768
|
ref: S,
|
|
2726
2769
|
role: "dialog",
|
|
2727
2770
|
"aria-label": o,
|
|
2728
2771
|
tabIndex: -1,
|
|
2729
|
-
className: [
|
|
2772
|
+
className: [Ur.dropdown, g ? Ur.dropdownVisible : null].filter(Boolean).join(" "),
|
|
2730
2773
|
style: Object.keys(v).length ? {
|
|
2731
2774
|
...v,
|
|
2732
2775
|
position: "fixed"
|
|
@@ -2745,26 +2788,26 @@ function Ur({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2745
2788
|
className: E,
|
|
2746
2789
|
children: [
|
|
2747
2790
|
/* @__PURE__ */ t("button", {
|
|
2748
|
-
className:
|
|
2791
|
+
className: Ur.primary,
|
|
2749
2792
|
disabled: c,
|
|
2750
2793
|
onClick: u,
|
|
2751
2794
|
...h,
|
|
2752
2795
|
children: r
|
|
2753
2796
|
}),
|
|
2754
2797
|
/* @__PURE__ */ t("span", {
|
|
2755
|
-
className:
|
|
2798
|
+
className: Ur.separator,
|
|
2756
2799
|
"aria-hidden": "true"
|
|
2757
2800
|
}),
|
|
2758
2801
|
/* @__PURE__ */ t("button", {
|
|
2759
2802
|
ref: x,
|
|
2760
|
-
className:
|
|
2803
|
+
className: Ur.toggle,
|
|
2761
2804
|
disabled: c,
|
|
2762
2805
|
"aria-label": o,
|
|
2763
2806
|
"aria-haspopup": "dialog",
|
|
2764
2807
|
"aria-expanded": g,
|
|
2765
2808
|
onClick: () => _((e) => !e),
|
|
2766
2809
|
children: /* @__PURE__ */ t("svg", {
|
|
2767
|
-
className:
|
|
2810
|
+
className: Ur.chevron,
|
|
2768
2811
|
width: "16",
|
|
2769
2812
|
height: "16",
|
|
2770
2813
|
viewBox: "0 0 16 16",
|
|
@@ -2783,51 +2826,51 @@ function Ur({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2783
2826
|
]
|
|
2784
2827
|
}), g && (typeof document < "u" ? p(D, document.body) : D)] });
|
|
2785
2828
|
}
|
|
2786
|
-
var
|
|
2829
|
+
var Gr = {
|
|
2787
2830
|
toolbar: "_toolbar_1avgl_2",
|
|
2788
2831
|
spacer: "_spacer_1avgl_20"
|
|
2789
2832
|
};
|
|
2790
2833
|
//#endregion
|
|
2791
2834
|
//#region src/components/Toolbar/Toolbar.tsx
|
|
2792
|
-
function
|
|
2835
|
+
function Kr({ children: e, className: n, ...r }) {
|
|
2793
2836
|
return /* @__PURE__ */ t("div", {
|
|
2794
|
-
className: [
|
|
2837
|
+
className: [Gr.toolbar, n].filter(Boolean).join(" "),
|
|
2795
2838
|
...r,
|
|
2796
2839
|
children: e
|
|
2797
2840
|
});
|
|
2798
2841
|
}
|
|
2799
2842
|
//#endregion
|
|
2800
2843
|
//#region src/components/Toolbar/Spacer.tsx
|
|
2801
|
-
function
|
|
2844
|
+
function qr({ className: e, ...n }) {
|
|
2802
2845
|
return /* @__PURE__ */ t("div", {
|
|
2803
2846
|
"aria-hidden": "true",
|
|
2804
|
-
className: [
|
|
2847
|
+
className: [Gr.spacer, e].filter(Boolean).join(" "),
|
|
2805
2848
|
...n
|
|
2806
2849
|
});
|
|
2807
2850
|
}
|
|
2808
|
-
var
|
|
2851
|
+
var Jr = {
|
|
2809
2852
|
linked: "_linked_1tser_3",
|
|
2810
2853
|
vertical: "_vertical_1tser_9"
|
|
2811
2854
|
};
|
|
2812
2855
|
//#endregion
|
|
2813
2856
|
//#region src/components/LinkedGroup/LinkedGroup.tsx
|
|
2814
|
-
function
|
|
2857
|
+
function Yr({ children: e, vertical: n = !1, className: r, ...i }) {
|
|
2815
2858
|
return /* @__PURE__ */ t("div", {
|
|
2816
2859
|
className: [
|
|
2817
|
-
|
|
2818
|
-
n ?
|
|
2860
|
+
Jr.linked,
|
|
2861
|
+
n ? Jr.vertical : null,
|
|
2819
2862
|
r
|
|
2820
2863
|
].filter(Boolean).join(" "),
|
|
2821
2864
|
...i,
|
|
2822
2865
|
children: e
|
|
2823
2866
|
});
|
|
2824
2867
|
}
|
|
2825
|
-
var
|
|
2868
|
+
var Xr = { frame: "_frame_1bq7b_2" };
|
|
2826
2869
|
//#endregion
|
|
2827
2870
|
//#region src/components/Frame/Frame.tsx
|
|
2828
|
-
function
|
|
2871
|
+
function Zr({ children: e, className: n, ...r }) {
|
|
2829
2872
|
return /* @__PURE__ */ t("div", {
|
|
2830
|
-
className: [
|
|
2873
|
+
className: [Xr.frame, n].filter(Boolean).join(" "),
|
|
2831
2874
|
...r,
|
|
2832
2875
|
children: e
|
|
2833
2876
|
});
|
|
@@ -2851,7 +2894,7 @@ var K = {
|
|
|
2851
2894
|
};
|
|
2852
2895
|
//#endregion
|
|
2853
2896
|
//#region src/components/ExpanderRow/ExpanderRow.tsx
|
|
2854
|
-
function
|
|
2897
|
+
function Qr({ title: e, subtitle: i, leading: a, trailing: o, children: s, expanded: c, defaultExpanded: l = !1, onExpandedChange: d, className: p, ...m }) {
|
|
2855
2898
|
let h = c !== void 0, [g, _] = f(l), v = h ? c : g, y = u(), b = u(), x = () => {
|
|
2856
2899
|
let e = !v;
|
|
2857
2900
|
h || _(e), d?.(e);
|
|
@@ -2926,7 +2969,7 @@ function Zr({ title: e, subtitle: i, leading: a, trailing: o, children: s, expan
|
|
|
2926
2969
|
})]
|
|
2927
2970
|
});
|
|
2928
2971
|
}
|
|
2929
|
-
var
|
|
2972
|
+
var $r = {
|
|
2930
2973
|
switcher: "_switcher_2tknm_3",
|
|
2931
2974
|
item: "_item_2tknm_10",
|
|
2932
2975
|
iconOnly: "_iconOnly_2tknm_38",
|
|
@@ -2936,13 +2979,13 @@ var Qr = {
|
|
|
2936
2979
|
active: "_active_2tknm_68",
|
|
2937
2980
|
flat: "_flat_2tknm_121",
|
|
2938
2981
|
round: "_round_2tknm_169"
|
|
2939
|
-
},
|
|
2940
|
-
function
|
|
2941
|
-
let e = c(
|
|
2982
|
+
}, ei = a(null);
|
|
2983
|
+
function ti() {
|
|
2984
|
+
let e = c(ei);
|
|
2942
2985
|
if (!e) throw Error("InlineViewSwitcherItem must be used inside InlineViewSwitcher");
|
|
2943
2986
|
return e;
|
|
2944
2987
|
}
|
|
2945
|
-
function
|
|
2988
|
+
function ni({ value: e, onValueChange: n, variant: r = "default", "aria-label": i = "View switcher", children: a, className: o, ...s }) {
|
|
2946
2989
|
let c = d(null);
|
|
2947
2990
|
function l(e) {
|
|
2948
2991
|
let t = Array.from(c.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2955,7 +2998,7 @@ function ti({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
2955
2998
|
else return;
|
|
2956
2999
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2957
3000
|
}
|
|
2958
|
-
return /* @__PURE__ */ t(
|
|
3001
|
+
return /* @__PURE__ */ t(ei.Provider, {
|
|
2959
3002
|
value: {
|
|
2960
3003
|
value: e,
|
|
2961
3004
|
onValueChange: n
|
|
@@ -2966,8 +3009,8 @@ function ti({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
2966
3009
|
"aria-label": i,
|
|
2967
3010
|
onKeyDown: l,
|
|
2968
3011
|
className: [
|
|
2969
|
-
|
|
2970
|
-
|
|
3012
|
+
$r.switcher,
|
|
3013
|
+
$r[r],
|
|
2971
3014
|
o
|
|
2972
3015
|
].filter(Boolean).join(" "),
|
|
2973
3016
|
...s,
|
|
@@ -2977,8 +3020,8 @@ function ti({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
2977
3020
|
}
|
|
2978
3021
|
//#endregion
|
|
2979
3022
|
//#region src/components/InlineViewSwitcher/InlineViewSwitcherItem.tsx
|
|
2980
|
-
function
|
|
2981
|
-
let { value: c, onValueChange: l } =
|
|
3023
|
+
function ri({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
3024
|
+
let { value: c, onValueChange: l } = ti(), u = c === e, d = i && !r;
|
|
2982
3025
|
return /* @__PURE__ */ n("button", {
|
|
2983
3026
|
type: "button",
|
|
2984
3027
|
role: "radio",
|
|
@@ -2987,26 +3030,26 @@ function ni({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
2987
3030
|
disabled: a,
|
|
2988
3031
|
onClick: () => l(e),
|
|
2989
3032
|
className: [
|
|
2990
|
-
|
|
2991
|
-
u ?
|
|
2992
|
-
d ?
|
|
3033
|
+
$r.item,
|
|
3034
|
+
u ? $r.active : null,
|
|
3035
|
+
d ? $r.iconOnly : null,
|
|
2993
3036
|
o
|
|
2994
3037
|
].filter(Boolean).join(" "),
|
|
2995
3038
|
...s,
|
|
2996
3039
|
children: [i && /* @__PURE__ */ t("span", {
|
|
2997
|
-
className:
|
|
3040
|
+
className: $r.itemIcon,
|
|
2998
3041
|
children: /* @__PURE__ */ t(F, {
|
|
2999
3042
|
icon: i,
|
|
3000
3043
|
size: "md",
|
|
3001
3044
|
"aria-hidden": !0
|
|
3002
3045
|
})
|
|
3003
3046
|
}), r && /* @__PURE__ */ t("span", {
|
|
3004
|
-
className:
|
|
3047
|
+
className: $r.itemLabel,
|
|
3005
3048
|
children: r
|
|
3006
3049
|
})]
|
|
3007
3050
|
});
|
|
3008
3051
|
}
|
|
3009
|
-
var
|
|
3052
|
+
var ii = {
|
|
3010
3053
|
row: "_row_jl3bc_3",
|
|
3011
3054
|
disabled: "_disabled_jl3bc_41",
|
|
3012
3055
|
leading: "_leading_jl3bc_49",
|
|
@@ -3019,7 +3062,7 @@ var q = {
|
|
|
3019
3062
|
};
|
|
3020
3063
|
//#endregion
|
|
3021
3064
|
//#region src/components/SwitchRow/SwitchRow.tsx
|
|
3022
|
-
function
|
|
3065
|
+
function ai({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...p }) {
|
|
3023
3066
|
let m = a !== void 0, [h, g] = f(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3024
3067
|
let t = !_;
|
|
3025
3068
|
m || g(t), s?.(t), d?.(e);
|
|
@@ -3030,37 +3073,37 @@ function ri({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3030
3073
|
"aria-labelledby": v,
|
|
3031
3074
|
disabled: c,
|
|
3032
3075
|
className: [
|
|
3033
|
-
|
|
3034
|
-
c ?
|
|
3076
|
+
ii.row,
|
|
3077
|
+
c ? ii.disabled : null,
|
|
3035
3078
|
l
|
|
3036
3079
|
].filter(Boolean).join(" "),
|
|
3037
3080
|
onClick: y,
|
|
3038
3081
|
...p,
|
|
3039
3082
|
children: [
|
|
3040
3083
|
i && /* @__PURE__ */ t("span", {
|
|
3041
|
-
className:
|
|
3084
|
+
className: ii.leading,
|
|
3042
3085
|
children: i
|
|
3043
3086
|
}),
|
|
3044
3087
|
/* @__PURE__ */ n("span", {
|
|
3045
|
-
className:
|
|
3088
|
+
className: ii.content,
|
|
3046
3089
|
id: v,
|
|
3047
3090
|
children: [/* @__PURE__ */ t("span", {
|
|
3048
|
-
className:
|
|
3091
|
+
className: ii.title,
|
|
3049
3092
|
children: e
|
|
3050
3093
|
}), r && /* @__PURE__ */ t("span", {
|
|
3051
|
-
className:
|
|
3094
|
+
className: ii.subtitle,
|
|
3052
3095
|
children: r
|
|
3053
3096
|
})]
|
|
3054
3097
|
}),
|
|
3055
3098
|
/* @__PURE__ */ t("span", {
|
|
3056
|
-
className:
|
|
3099
|
+
className: ii.switchTrack,
|
|
3057
3100
|
"aria-hidden": "true",
|
|
3058
|
-
children: /* @__PURE__ */ t("span", { className: [
|
|
3101
|
+
children: /* @__PURE__ */ t("span", { className: [ii.switchThumb, _ ? ii.switchThumbOn : null].filter(Boolean).join(" ") })
|
|
3059
3102
|
})
|
|
3060
3103
|
]
|
|
3061
3104
|
});
|
|
3062
3105
|
}
|
|
3063
|
-
var
|
|
3106
|
+
var q = {
|
|
3064
3107
|
row: "_row_1dije_3",
|
|
3065
3108
|
disabled: "_disabled_1dije_41",
|
|
3066
3109
|
checkboxWrap: "_checkboxWrap_1dije_49",
|
|
@@ -3074,7 +3117,7 @@ var J = {
|
|
|
3074
3117
|
};
|
|
3075
3118
|
//#endregion
|
|
3076
3119
|
//#region src/components/CheckRow/CheckRow.tsx
|
|
3077
|
-
function
|
|
3120
|
+
function oi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...p }) {
|
|
3078
3121
|
let m = a !== void 0, [h, g] = f(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3079
3122
|
let t = !_;
|
|
3080
3123
|
m || g(t), s?.(t), d?.(e);
|
|
@@ -3085,20 +3128,20 @@ function ii({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3085
3128
|
"aria-labelledby": v,
|
|
3086
3129
|
disabled: c,
|
|
3087
3130
|
className: [
|
|
3088
|
-
|
|
3089
|
-
c ?
|
|
3131
|
+
q.row,
|
|
3132
|
+
c ? q.disabled : null,
|
|
3090
3133
|
l
|
|
3091
3134
|
].filter(Boolean).join(" "),
|
|
3092
3135
|
onClick: y,
|
|
3093
3136
|
...p,
|
|
3094
3137
|
children: [
|
|
3095
3138
|
/* @__PURE__ */ t("span", {
|
|
3096
|
-
className:
|
|
3139
|
+
className: q.checkboxWrap,
|
|
3097
3140
|
"aria-hidden": "true",
|
|
3098
3141
|
children: /* @__PURE__ */ t("span", {
|
|
3099
|
-
className: [
|
|
3142
|
+
className: [q.checkbox, _ ? q.checkboxChecked : null].filter(Boolean).join(" "),
|
|
3100
3143
|
children: _ && /* @__PURE__ */ t("svg", {
|
|
3101
|
-
className:
|
|
3144
|
+
className: q.checkmark,
|
|
3102
3145
|
width: "12",
|
|
3103
3146
|
height: "12",
|
|
3104
3147
|
viewBox: "0 0 12 12",
|
|
@@ -3115,17 +3158,17 @@ function ii({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3115
3158
|
})
|
|
3116
3159
|
}),
|
|
3117
3160
|
i && /* @__PURE__ */ t("span", {
|
|
3118
|
-
className:
|
|
3161
|
+
className: q.leading,
|
|
3119
3162
|
children: i
|
|
3120
3163
|
}),
|
|
3121
3164
|
/* @__PURE__ */ n("span", {
|
|
3122
|
-
className:
|
|
3165
|
+
className: q.content,
|
|
3123
3166
|
id: v,
|
|
3124
3167
|
children: [/* @__PURE__ */ t("span", {
|
|
3125
|
-
className:
|
|
3168
|
+
className: q.title,
|
|
3126
3169
|
children: e
|
|
3127
3170
|
}), r && /* @__PURE__ */ t("span", {
|
|
3128
|
-
className:
|
|
3171
|
+
className: q.subtitle,
|
|
3129
3172
|
children: r
|
|
3130
3173
|
})]
|
|
3131
3174
|
})
|
|
@@ -3134,35 +3177,35 @@ function ii({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3134
3177
|
}
|
|
3135
3178
|
//#endregion
|
|
3136
3179
|
//#region src/components/ComboRow/ComboRow.module.css
|
|
3137
|
-
var
|
|
3138
|
-
row:
|
|
3139
|
-
disabled:
|
|
3140
|
-
leading:
|
|
3141
|
-
content:
|
|
3142
|
-
title:
|
|
3143
|
-
subtitle:
|
|
3144
|
-
comboWrap:
|
|
3145
|
-
trigger:
|
|
3146
|
-
triggerOpen:
|
|
3147
|
-
triggerLabel:
|
|
3148
|
-
placeholder:
|
|
3149
|
-
chevron:
|
|
3150
|
-
chevronOpen:
|
|
3151
|
-
list:
|
|
3180
|
+
var si = "_row_46mn8_3", ci = "_disabled_46mn8_16", li = "_leading_46mn8_23", ui = "_content_46mn8_32", di = "_title_46mn8_40", fi = "_subtitle_46mn8_51", pi = "_comboWrap_46mn8_65", mi = "_trigger_46mn8_73", hi = "_triggerOpen_46mn8_126", gi = "_triggerLabel_46mn8_136", _i = "_placeholder_46mn8_144", vi = "_chevron_46mn8_150", yi = "_chevronOpen_46mn8_157", bi = "_list_46mn8_163", xi = "_listDown_46mn8_192", Si = "_listUp_46mn8_196", Ci = "_option_46mn8_208", wi = "_optionActive_46mn8_225", Ti = "_optionSelected_46mn8_229", Ei = "_optionDisabled_46mn8_233", Di = "_optionLabel_46mn8_239", Oi = "_checkIcon_46mn8_247", J = {
|
|
3181
|
+
row: si,
|
|
3182
|
+
disabled: ci,
|
|
3183
|
+
leading: li,
|
|
3184
|
+
content: ui,
|
|
3185
|
+
title: di,
|
|
3186
|
+
subtitle: fi,
|
|
3187
|
+
comboWrap: pi,
|
|
3188
|
+
trigger: mi,
|
|
3189
|
+
triggerOpen: hi,
|
|
3190
|
+
triggerLabel: gi,
|
|
3191
|
+
placeholder: _i,
|
|
3192
|
+
chevron: vi,
|
|
3193
|
+
chevronOpen: yi,
|
|
3194
|
+
list: bi,
|
|
3152
3195
|
"list-in": "_list-in_46mn8_1",
|
|
3153
|
-
listDown:
|
|
3154
|
-
listUp:
|
|
3196
|
+
listDown: xi,
|
|
3197
|
+
listUp: Si,
|
|
3155
3198
|
"list-in-up": "_list-in-up_46mn8_1",
|
|
3156
|
-
option:
|
|
3157
|
-
optionActive:
|
|
3158
|
-
optionSelected:
|
|
3159
|
-
optionDisabled:
|
|
3160
|
-
optionLabel:
|
|
3161
|
-
checkIcon:
|
|
3199
|
+
option: Ci,
|
|
3200
|
+
optionActive: wi,
|
|
3201
|
+
optionSelected: Ti,
|
|
3202
|
+
optionDisabled: Ei,
|
|
3203
|
+
optionLabel: Di,
|
|
3204
|
+
checkIcon: Oi
|
|
3162
3205
|
};
|
|
3163
3206
|
//#endregion
|
|
3164
3207
|
//#region src/components/ComboRow/ComboRow.tsx
|
|
3165
|
-
function
|
|
3208
|
+
function ki({ title: e, subtitle: r, leading: i, options: a, value: o, defaultValue: c, onValueChange: p, disabled: m = !1, className: h, ...g }) {
|
|
3166
3209
|
let _ = o !== void 0, [v, y] = f(c), b = _ ? o : v, [x, S] = f(!1), [C, w] = f(-1), [T, E] = f(!1), D = u(), O = u(), k = d(null), A = d(null), j = a.find((e) => e.value === b), M = s(() => {
|
|
3167
3210
|
if (!k.current) return;
|
|
3168
3211
|
let e = k.current.getBoundingClientRect(), t = window.innerHeight - e.bottom, n = Math.min(a.length * 44 + 8, 260);
|
|
@@ -3251,28 +3294,28 @@ function Di({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3251
3294
|
]);
|
|
3252
3295
|
return /* @__PURE__ */ n("div", {
|
|
3253
3296
|
className: [
|
|
3254
|
-
|
|
3255
|
-
m ?
|
|
3297
|
+
J.row,
|
|
3298
|
+
m ? J.disabled : null,
|
|
3256
3299
|
h
|
|
3257
3300
|
].filter(Boolean).join(" "),
|
|
3258
3301
|
...g,
|
|
3259
3302
|
children: [
|
|
3260
3303
|
i && /* @__PURE__ */ t("span", {
|
|
3261
|
-
className:
|
|
3304
|
+
className: J.leading,
|
|
3262
3305
|
children: i
|
|
3263
3306
|
}),
|
|
3264
3307
|
/* @__PURE__ */ n("span", {
|
|
3265
|
-
className:
|
|
3308
|
+
className: J.content,
|
|
3266
3309
|
children: [/* @__PURE__ */ t("span", {
|
|
3267
|
-
className:
|
|
3310
|
+
className: J.title,
|
|
3268
3311
|
children: e
|
|
3269
3312
|
}), r && /* @__PURE__ */ t("span", {
|
|
3270
|
-
className:
|
|
3313
|
+
className: J.subtitle,
|
|
3271
3314
|
children: r
|
|
3272
3315
|
})]
|
|
3273
3316
|
}),
|
|
3274
3317
|
/* @__PURE__ */ n("div", {
|
|
3275
|
-
className:
|
|
3318
|
+
className: J.comboWrap,
|
|
3276
3319
|
children: [/* @__PURE__ */ n("button", {
|
|
3277
3320
|
ref: k,
|
|
3278
3321
|
id: D,
|
|
@@ -3283,14 +3326,14 @@ function Di({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3283
3326
|
"aria-controls": O,
|
|
3284
3327
|
"aria-activedescendant": x && C >= 0 ? `${O}-opt-${C}` : void 0,
|
|
3285
3328
|
disabled: m,
|
|
3286
|
-
className: [
|
|
3329
|
+
className: [J.trigger, x ? J.triggerOpen : null].filter(Boolean).join(" "),
|
|
3287
3330
|
onClick: () => x ? P() : N(),
|
|
3288
3331
|
onKeyDown: te,
|
|
3289
3332
|
children: [/* @__PURE__ */ t("span", {
|
|
3290
|
-
className: [
|
|
3333
|
+
className: [J.triggerLabel, j ? null : J.placeholder].filter(Boolean).join(" "),
|
|
3291
3334
|
children: j?.label ?? "—"
|
|
3292
3335
|
}), /* @__PURE__ */ t("svg", {
|
|
3293
|
-
className: [
|
|
3336
|
+
className: [J.chevron, x ? J.chevronOpen : null].filter(Boolean).join(" "),
|
|
3294
3337
|
width: "16",
|
|
3295
3338
|
height: "16",
|
|
3296
3339
|
viewBox: "0 0 16 16",
|
|
@@ -3311,7 +3354,7 @@ function Di({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3311
3354
|
role: "listbox",
|
|
3312
3355
|
"aria-labelledby": D,
|
|
3313
3356
|
tabIndex: -1,
|
|
3314
|
-
className: [
|
|
3357
|
+
className: [J.list, T ? J.listUp : J.listDown].filter(Boolean).join(" "),
|
|
3315
3358
|
onKeyDown: ne,
|
|
3316
3359
|
children: a.map((e, r) => /* @__PURE__ */ n("li", {
|
|
3317
3360
|
id: `${O}-opt-${r}`,
|
|
@@ -3319,15 +3362,15 @@ function Di({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3319
3362
|
"aria-selected": e.value === b,
|
|
3320
3363
|
"aria-disabled": e.disabled,
|
|
3321
3364
|
className: [
|
|
3322
|
-
|
|
3323
|
-
e.value === b ?
|
|
3324
|
-
r === C ?
|
|
3325
|
-
e.disabled ?
|
|
3365
|
+
J.option,
|
|
3366
|
+
e.value === b ? J.optionSelected : null,
|
|
3367
|
+
r === C ? J.optionActive : null,
|
|
3368
|
+
e.disabled ? J.optionDisabled : null
|
|
3326
3369
|
].filter(Boolean).join(" "),
|
|
3327
3370
|
onMouseEnter: () => !e.disabled && w(r),
|
|
3328
3371
|
onClick: () => ee(e),
|
|
3329
3372
|
children: [/* @__PURE__ */ t("span", {
|
|
3330
|
-
className:
|
|
3373
|
+
className: J.optionLabel,
|
|
3331
3374
|
children: e.label
|
|
3332
3375
|
}), e.value === b && /* @__PURE__ */ t("svg", {
|
|
3333
3376
|
width: "16",
|
|
@@ -3335,7 +3378,7 @@ function Di({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3335
3378
|
viewBox: "0 0 16 16",
|
|
3336
3379
|
"aria-hidden": "true",
|
|
3337
3380
|
focusable: "false",
|
|
3338
|
-
className:
|
|
3381
|
+
className: J.checkIcon,
|
|
3339
3382
|
children: /* @__PURE__ */ t("path", {
|
|
3340
3383
|
d: "M3 8l4 4 6-6",
|
|
3341
3384
|
fill: "none",
|
|
@@ -3351,7 +3394,7 @@ function Di({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3351
3394
|
]
|
|
3352
3395
|
});
|
|
3353
3396
|
}
|
|
3354
|
-
var
|
|
3397
|
+
var Y = {
|
|
3355
3398
|
row: "_row_1kogj_3",
|
|
3356
3399
|
focused: "_focused_1kogj_16",
|
|
3357
3400
|
disabled: "_disabled_1kogj_25",
|
|
@@ -3365,31 +3408,31 @@ var X = {
|
|
|
3365
3408
|
};
|
|
3366
3409
|
//#endregion
|
|
3367
3410
|
//#region src/components/EntryRow/EntryRow.tsx
|
|
3368
|
-
function
|
|
3411
|
+
function Ai({ title: e, value: r, defaultValue: i = "", onValueChange: a, leading: o, trailing: s, disabled: c, className: l, id: p, onChange: m, ...h }) {
|
|
3369
3412
|
let g = u(), _ = p ?? g, v = r !== void 0, [y, b] = f(String(i)), x = v ? String(r) : y, [S, C] = f(!1), w = d(null), T = S || x.length > 0;
|
|
3370
3413
|
return /* @__PURE__ */ n("div", {
|
|
3371
3414
|
className: [
|
|
3372
|
-
|
|
3373
|
-
S ?
|
|
3374
|
-
c ?
|
|
3415
|
+
Y.row,
|
|
3416
|
+
S ? Y.focused : null,
|
|
3417
|
+
c ? Y.disabled : null,
|
|
3375
3418
|
l
|
|
3376
3419
|
].filter(Boolean).join(" "),
|
|
3377
3420
|
onClick: () => w.current?.focus(),
|
|
3378
3421
|
children: [
|
|
3379
3422
|
o && /* @__PURE__ */ t("span", {
|
|
3380
|
-
className:
|
|
3423
|
+
className: Y.leading,
|
|
3381
3424
|
children: o
|
|
3382
3425
|
}),
|
|
3383
3426
|
/* @__PURE__ */ n("span", {
|
|
3384
|
-
className:
|
|
3427
|
+
className: Y.fieldWrap,
|
|
3385
3428
|
children: [/* @__PURE__ */ t("label", {
|
|
3386
3429
|
htmlFor: _,
|
|
3387
|
-
className: [
|
|
3430
|
+
className: [Y.label, T ? Y.labelFloated : null].filter(Boolean).join(" "),
|
|
3388
3431
|
children: e
|
|
3389
3432
|
}), /* @__PURE__ */ t("input", {
|
|
3390
3433
|
ref: w,
|
|
3391
3434
|
id: _,
|
|
3392
|
-
className: [
|
|
3435
|
+
className: [Y.input, T ? Y.inputFloated : null].filter(Boolean).join(" "),
|
|
3393
3436
|
value: x,
|
|
3394
3437
|
disabled: c,
|
|
3395
3438
|
onFocus: () => C(!0),
|
|
@@ -3401,19 +3444,19 @@ function Oi({ title: e, value: r, defaultValue: i = "", onValueChange: a, leadin
|
|
|
3401
3444
|
})]
|
|
3402
3445
|
}),
|
|
3403
3446
|
s && /* @__PURE__ */ t("span", {
|
|
3404
|
-
className:
|
|
3447
|
+
className: Y.trailing,
|
|
3405
3448
|
children: s
|
|
3406
3449
|
})
|
|
3407
3450
|
]
|
|
3408
3451
|
});
|
|
3409
3452
|
}
|
|
3410
|
-
var
|
|
3453
|
+
var ji = { revealButton: "_revealButton_1j8z0_3" };
|
|
3411
3454
|
//#endregion
|
|
3412
3455
|
//#region src/components/PasswordEntryRow/PasswordEntryRow.tsx
|
|
3413
|
-
function
|
|
3456
|
+
function Mi({ trailing: r, disabled: i, ...a }) {
|
|
3414
3457
|
let [o, s] = f(!1), c = /* @__PURE__ */ t("button", {
|
|
3415
3458
|
type: "button",
|
|
3416
|
-
className:
|
|
3459
|
+
className: ji.revealButton,
|
|
3417
3460
|
onClick: (e) => {
|
|
3418
3461
|
e.stopPropagation(), s((e) => !e);
|
|
3419
3462
|
},
|
|
@@ -3426,14 +3469,14 @@ function Ai({ trailing: r, disabled: i, ...a }) {
|
|
|
3426
3469
|
"aria-hidden": !0
|
|
3427
3470
|
})
|
|
3428
3471
|
});
|
|
3429
|
-
return /* @__PURE__ */ t(
|
|
3472
|
+
return /* @__PURE__ */ t(Ai, {
|
|
3430
3473
|
...a,
|
|
3431
3474
|
type: o ? "text" : "password",
|
|
3432
3475
|
disabled: i,
|
|
3433
3476
|
trailing: /* @__PURE__ */ n(e, { children: [r, c] })
|
|
3434
3477
|
});
|
|
3435
3478
|
}
|
|
3436
|
-
var
|
|
3479
|
+
var X = {
|
|
3437
3480
|
row: "_row_ycg6f_3",
|
|
3438
3481
|
disabled: "_disabled_ycg6f_16",
|
|
3439
3482
|
leading: "_leading_ycg6f_23",
|
|
@@ -3446,16 +3489,16 @@ var Z = {
|
|
|
3446
3489
|
};
|
|
3447
3490
|
//#endregion
|
|
3448
3491
|
//#region src/components/SpinRow/SpinRow.tsx
|
|
3449
|
-
function
|
|
3492
|
+
function Ni(e) {
|
|
3450
3493
|
let t = e.toString(), n = t.indexOf(".");
|
|
3451
3494
|
return n === -1 ? 0 : t.length - n - 1;
|
|
3452
3495
|
}
|
|
3453
|
-
function
|
|
3496
|
+
function Pi(e, t, n) {
|
|
3454
3497
|
return Math.min(n, Math.max(t, e));
|
|
3455
3498
|
}
|
|
3456
|
-
function
|
|
3457
|
-
let v = a !== void 0, [y, b] = f(o), x = v ? a : y, S = m ??
|
|
3458
|
-
let t = parseFloat(
|
|
3499
|
+
function Fi({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0, onValueChange: c, min: l = 0, max: d = 100, step: p = 1, decimals: m, disabled: h = !1, className: g, ..._ }) {
|
|
3500
|
+
let v = a !== void 0, [y, b] = f(o), x = v ? a : y, S = m ?? Ni(p), C = u(), w = s((e) => {
|
|
3501
|
+
let t = parseFloat(Pi(e, l, d).toFixed(S));
|
|
3459
3502
|
v || b(t), c?.(t);
|
|
3460
3503
|
}, [
|
|
3461
3504
|
v,
|
|
@@ -3493,23 +3536,23 @@ function Ni({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3493
3536
|
]);
|
|
3494
3537
|
return /* @__PURE__ */ n("div", {
|
|
3495
3538
|
className: [
|
|
3496
|
-
|
|
3497
|
-
h ?
|
|
3539
|
+
X.row,
|
|
3540
|
+
h ? X.disabled : null,
|
|
3498
3541
|
g
|
|
3499
3542
|
].filter(Boolean).join(" "),
|
|
3500
3543
|
..._,
|
|
3501
3544
|
children: [
|
|
3502
3545
|
i && /* @__PURE__ */ t("span", {
|
|
3503
|
-
className:
|
|
3546
|
+
className: X.leading,
|
|
3504
3547
|
children: i
|
|
3505
3548
|
}),
|
|
3506
3549
|
/* @__PURE__ */ n("span", {
|
|
3507
|
-
className:
|
|
3550
|
+
className: X.content,
|
|
3508
3551
|
children: [/* @__PURE__ */ t("span", {
|
|
3509
|
-
className:
|
|
3552
|
+
className: X.title,
|
|
3510
3553
|
children: e
|
|
3511
3554
|
}), r && /* @__PURE__ */ t("span", {
|
|
3512
|
-
className:
|
|
3555
|
+
className: X.subtitle,
|
|
3513
3556
|
children: r
|
|
3514
3557
|
})]
|
|
3515
3558
|
}),
|
|
@@ -3522,14 +3565,14 @@ function Ni({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3522
3565
|
"aria-disabled": h || void 0,
|
|
3523
3566
|
tabIndex: h ? -1 : 0,
|
|
3524
3567
|
onKeyDown: h ? void 0 : T,
|
|
3525
|
-
className:
|
|
3568
|
+
className: X.spin,
|
|
3526
3569
|
children: [
|
|
3527
3570
|
/* @__PURE__ */ t("button", {
|
|
3528
3571
|
type: "button",
|
|
3529
3572
|
tabIndex: -1,
|
|
3530
3573
|
"aria-hidden": "true",
|
|
3531
3574
|
disabled: h || x <= l,
|
|
3532
|
-
className:
|
|
3575
|
+
className: X.spinBtn,
|
|
3533
3576
|
onClick: (e) => {
|
|
3534
3577
|
e.stopPropagation(), w(x - p);
|
|
3535
3578
|
},
|
|
@@ -3537,7 +3580,7 @@ function Ni({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3537
3580
|
}),
|
|
3538
3581
|
/* @__PURE__ */ t("span", {
|
|
3539
3582
|
id: C,
|
|
3540
|
-
className:
|
|
3583
|
+
className: X.spinValue,
|
|
3541
3584
|
"aria-hidden": "true",
|
|
3542
3585
|
children: x.toFixed(S)
|
|
3543
3586
|
}),
|
|
@@ -3546,7 +3589,7 @@ function Ni({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3546
3589
|
tabIndex: -1,
|
|
3547
3590
|
"aria-hidden": "true",
|
|
3548
3591
|
disabled: h || x >= d,
|
|
3549
|
-
className:
|
|
3592
|
+
className: X.spinBtn,
|
|
3550
3593
|
onClick: (e) => {
|
|
3551
3594
|
e.stopPropagation(), w(x + p);
|
|
3552
3595
|
},
|
|
@@ -3559,50 +3602,50 @@ function Ni({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3559
3602
|
}
|
|
3560
3603
|
//#endregion
|
|
3561
3604
|
//#region src/components/NavigationView/NavigationView.module.css
|
|
3562
|
-
var
|
|
3563
|
-
view:
|
|
3564
|
-
page:
|
|
3565
|
-
pageHeader:
|
|
3566
|
-
pageTitle:
|
|
3567
|
-
pageContent:
|
|
3568
|
-
enterForward:
|
|
3605
|
+
var Ii = "_view_1r1om_3", Li = "_page_1r1om_12", Ri = "_pageHeader_1r1om_23", zi = "_pageTitle_1r1om_34", Bi = "_pageContent_1r1om_43", Vi = "_enterForward_1r1om_52", Hi = "_enterBack_1r1om_56", Ui = {
|
|
3606
|
+
view: Ii,
|
|
3607
|
+
page: Li,
|
|
3608
|
+
pageHeader: Ri,
|
|
3609
|
+
pageTitle: zi,
|
|
3610
|
+
pageContent: Bi,
|
|
3611
|
+
enterForward: Vi,
|
|
3569
3612
|
"slide-in-right": "_slide-in-right_1r1om_1",
|
|
3570
|
-
enterBack:
|
|
3613
|
+
enterBack: Hi,
|
|
3571
3614
|
"slide-in-left": "_slide-in-left_1r1om_1"
|
|
3572
|
-
},
|
|
3615
|
+
}, Wi = a({
|
|
3573
3616
|
navigate: () => {},
|
|
3574
3617
|
pop: () => {},
|
|
3575
3618
|
canGoBack: !1,
|
|
3576
3619
|
currentTag: "",
|
|
3577
3620
|
direction: "forward"
|
|
3578
3621
|
});
|
|
3579
|
-
function
|
|
3580
|
-
return c(
|
|
3622
|
+
function Gi() {
|
|
3623
|
+
return c(Wi);
|
|
3581
3624
|
}
|
|
3582
|
-
function
|
|
3583
|
-
let { currentTag: s, direction: l } = c(
|
|
3625
|
+
function Ki({ tag: e, title: r, children: i, className: a, ...o }) {
|
|
3626
|
+
let { currentTag: s, direction: l } = c(Wi);
|
|
3584
3627
|
return s === e ? /* @__PURE__ */ n("div", {
|
|
3585
3628
|
className: [
|
|
3586
|
-
|
|
3587
|
-
l === "forward" ?
|
|
3629
|
+
Ui.page,
|
|
3630
|
+
l === "forward" ? Ui.enterForward : Ui.enterBack,
|
|
3588
3631
|
a
|
|
3589
3632
|
].filter(Boolean).join(" "),
|
|
3590
3633
|
...o,
|
|
3591
3634
|
children: [/* @__PURE__ */ t("div", {
|
|
3592
|
-
className:
|
|
3635
|
+
className: Ui.pageHeader,
|
|
3593
3636
|
children: /* @__PURE__ */ t("span", {
|
|
3594
|
-
className:
|
|
3637
|
+
className: Ui.pageTitle,
|
|
3595
3638
|
children: r
|
|
3596
3639
|
})
|
|
3597
3640
|
}), /* @__PURE__ */ t("div", {
|
|
3598
|
-
className:
|
|
3641
|
+
className: Ui.pageContent,
|
|
3599
3642
|
children: i
|
|
3600
3643
|
})]
|
|
3601
3644
|
}) : null;
|
|
3602
3645
|
}
|
|
3603
|
-
function
|
|
3646
|
+
function qi({ initialPage: e, children: n, className: r, ...i }) {
|
|
3604
3647
|
let [a, o] = f([e]), s = a[a.length - 1], c = a.length > 1, [l, u] = f("forward");
|
|
3605
|
-
return /* @__PURE__ */ t(
|
|
3648
|
+
return /* @__PURE__ */ t(Wi.Provider, {
|
|
3606
3649
|
value: {
|
|
3607
3650
|
navigate: (e) => {
|
|
3608
3651
|
u("forward"), o((t) => [...t, e]);
|
|
@@ -3615,7 +3658,7 @@ function Gi({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3615
3658
|
direction: l
|
|
3616
3659
|
},
|
|
3617
3660
|
children: /* @__PURE__ */ t("div", {
|
|
3618
|
-
className: [
|
|
3661
|
+
className: [Ui.view, r].filter(Boolean).join(" "),
|
|
3619
3662
|
...i,
|
|
3620
3663
|
children: n
|
|
3621
3664
|
})
|
|
@@ -3623,20 +3666,20 @@ function Gi({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3623
3666
|
}
|
|
3624
3667
|
//#endregion
|
|
3625
3668
|
//#region src/components/BottomSheet/BottomSheet.module.css
|
|
3626
|
-
var
|
|
3627
|
-
backdrop:
|
|
3669
|
+
var Ji = "_backdrop_zzv98_3", Yi = "_sheet_zzv98_26", Xi = "_handle_zzv98_49", Zi = "_handleBar_zzv98_56", Qi = "_title_zzv98_66", $i = "_content_zzv98_79", ea = {
|
|
3670
|
+
backdrop: Ji,
|
|
3628
3671
|
"backdrop-in": "_backdrop-in_zzv98_1",
|
|
3629
|
-
sheet:
|
|
3672
|
+
sheet: Yi,
|
|
3630
3673
|
"sheet-in": "_sheet-in_zzv98_1",
|
|
3631
|
-
handle:
|
|
3632
|
-
handleBar:
|
|
3633
|
-
title:
|
|
3634
|
-
content:
|
|
3635
|
-
},
|
|
3636
|
-
function
|
|
3674
|
+
handle: Xi,
|
|
3675
|
+
handleBar: Zi,
|
|
3676
|
+
title: Qi,
|
|
3677
|
+
content: $i
|
|
3678
|
+
}, ta = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
3679
|
+
function na({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !0, className: c, ...f }) {
|
|
3637
3680
|
let m = d(null), h = u(), g = d(null);
|
|
3638
3681
|
l(() => {
|
|
3639
|
-
e ? (g.current = document.activeElement, (m.current?.querySelector(
|
|
3682
|
+
e ? (g.current = document.activeElement, (m.current?.querySelector(ta))?.focus()) : g.current?.focus();
|
|
3640
3683
|
}, [e]);
|
|
3641
3684
|
let _ = s((e) => {
|
|
3642
3685
|
if (e.key === "Escape") {
|
|
@@ -3644,14 +3687,14 @@ function ea({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3644
3687
|
return;
|
|
3645
3688
|
}
|
|
3646
3689
|
if (e.key !== "Tab") return;
|
|
3647
|
-
let t = Array.from(m.current?.querySelectorAll(
|
|
3690
|
+
let t = Array.from(m.current?.querySelectorAll(ta) ?? []);
|
|
3648
3691
|
if (t.length === 0) return;
|
|
3649
3692
|
let n = t[0], r = t[t.length - 1];
|
|
3650
3693
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(), n.focus());
|
|
3651
3694
|
}, [a]);
|
|
3652
3695
|
if (!e) return null;
|
|
3653
3696
|
let v = /* @__PURE__ */ t("div", {
|
|
3654
|
-
className:
|
|
3697
|
+
className: ea.backdrop,
|
|
3655
3698
|
onClick: o ? a : void 0,
|
|
3656
3699
|
"aria-hidden": "true",
|
|
3657
3700
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -3659,23 +3702,23 @@ function ea({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3659
3702
|
role: "dialog",
|
|
3660
3703
|
"aria-modal": "true",
|
|
3661
3704
|
"aria-labelledby": r ? h : void 0,
|
|
3662
|
-
className: [
|
|
3705
|
+
className: [ea.sheet, c].filter(Boolean).join(" "),
|
|
3663
3706
|
onKeyDown: _,
|
|
3664
3707
|
onClick: (e) => e.stopPropagation(),
|
|
3665
3708
|
...f,
|
|
3666
3709
|
children: [
|
|
3667
3710
|
/* @__PURE__ */ t("div", {
|
|
3668
|
-
className:
|
|
3711
|
+
className: ea.handle,
|
|
3669
3712
|
"aria-hidden": "true",
|
|
3670
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
3713
|
+
children: /* @__PURE__ */ t("div", { className: ea.handleBar })
|
|
3671
3714
|
}),
|
|
3672
3715
|
r && /* @__PURE__ */ t("div", {
|
|
3673
3716
|
id: h,
|
|
3674
|
-
className:
|
|
3717
|
+
className: ea.title,
|
|
3675
3718
|
children: r
|
|
3676
3719
|
}),
|
|
3677
3720
|
i && /* @__PURE__ */ t("div", {
|
|
3678
|
-
className:
|
|
3721
|
+
className: ea.content,
|
|
3679
3722
|
children: i
|
|
3680
3723
|
})
|
|
3681
3724
|
]
|
|
@@ -3683,7 +3726,7 @@ function ea({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3683
3726
|
});
|
|
3684
3727
|
return typeof document > "u" ? v : p(v, document.body);
|
|
3685
3728
|
}
|
|
3686
|
-
var
|
|
3729
|
+
var Z = {
|
|
3687
3730
|
carousel: "_carousel_117hp_3",
|
|
3688
3731
|
horizontal: "_horizontal_117hp_20",
|
|
3689
3732
|
vertical: "_vertical_117hp_27",
|
|
@@ -3697,9 +3740,9 @@ var Q = {
|
|
|
3697
3740
|
};
|
|
3698
3741
|
//#endregion
|
|
3699
3742
|
//#region src/components/Carousel/Carousel.tsx
|
|
3700
|
-
function
|
|
3743
|
+
function ra({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3701
3744
|
return /* @__PURE__ */ t("div", {
|
|
3702
|
-
className: [
|
|
3745
|
+
className: [Z.indicatorDots, i].filter(Boolean).join(" "),
|
|
3703
3746
|
role: "tablist",
|
|
3704
3747
|
"aria-label": "Carousel pages",
|
|
3705
3748
|
...a,
|
|
@@ -3708,14 +3751,14 @@ function ta({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3708
3751
|
role: "tab",
|
|
3709
3752
|
"aria-selected": i === n,
|
|
3710
3753
|
"aria-label": `Page ${i + 1}`,
|
|
3711
|
-
className: [
|
|
3754
|
+
className: [Z.dot, i === n ? Z.dotActive : null].filter(Boolean).join(" "),
|
|
3712
3755
|
onClick: () => r?.(i)
|
|
3713
3756
|
}, i))
|
|
3714
3757
|
});
|
|
3715
3758
|
}
|
|
3716
|
-
function
|
|
3759
|
+
function ia({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3717
3760
|
return /* @__PURE__ */ t("div", {
|
|
3718
|
-
className: [
|
|
3761
|
+
className: [Z.indicatorLines, i].filter(Boolean).join(" "),
|
|
3719
3762
|
role: "tablist",
|
|
3720
3763
|
"aria-label": "Carousel pages",
|
|
3721
3764
|
...a,
|
|
@@ -3724,12 +3767,12 @@ function na({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3724
3767
|
role: "tab",
|
|
3725
3768
|
"aria-selected": i === n,
|
|
3726
3769
|
"aria-label": `Page ${i + 1}`,
|
|
3727
|
-
className: [
|
|
3770
|
+
className: [Z.line, i === n ? Z.lineActive : null].filter(Boolean).join(" "),
|
|
3728
3771
|
onClick: () => r?.(i)
|
|
3729
3772
|
}, i))
|
|
3730
3773
|
});
|
|
3731
3774
|
}
|
|
3732
|
-
function
|
|
3775
|
+
function aa({ children: e, orientation: n = "horizontal", spacing: i = 0, loop: a = !1, onPageChanged: o, page: c, className: u, ...p }) {
|
|
3733
3776
|
let m = d(null), h = r.count(e), [g, _] = f(0), v = c !== void 0, y = v ? c : g;
|
|
3734
3777
|
l(() => {
|
|
3735
3778
|
v && b(c, "smooth");
|
|
@@ -3785,15 +3828,15 @@ function ra({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
3785
3828
|
"aria-roledescription": "carousel",
|
|
3786
3829
|
tabIndex: 0,
|
|
3787
3830
|
className: [
|
|
3788
|
-
|
|
3789
|
-
S ?
|
|
3831
|
+
Z.carousel,
|
|
3832
|
+
S ? Z.horizontal : Z.vertical,
|
|
3790
3833
|
u
|
|
3791
3834
|
].filter(Boolean).join(" "),
|
|
3792
3835
|
style: S ? { columnGap: i || void 0 } : { rowGap: i || void 0 },
|
|
3793
3836
|
onKeyDown: x,
|
|
3794
3837
|
...p,
|
|
3795
3838
|
children: r.map(e, (e, n) => /* @__PURE__ */ t("div", {
|
|
3796
|
-
className:
|
|
3839
|
+
className: Z.slide,
|
|
3797
3840
|
role: "group",
|
|
3798
3841
|
"aria-roledescription": "slide",
|
|
3799
3842
|
"aria-label": `${n + 1} of ${h}`,
|
|
@@ -3803,49 +3846,49 @@ function ra({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
3803
3846
|
}
|
|
3804
3847
|
//#endregion
|
|
3805
3848
|
//#region src/components/Bin/Bin.tsx
|
|
3806
|
-
function
|
|
3849
|
+
function oa({ children: e, ...n }) {
|
|
3807
3850
|
return /* @__PURE__ */ t("div", {
|
|
3808
3851
|
...n,
|
|
3809
3852
|
children: e
|
|
3810
3853
|
});
|
|
3811
3854
|
}
|
|
3812
|
-
var
|
|
3855
|
+
var sa = {
|
|
3813
3856
|
content: "_content_1xkwk_3",
|
|
3814
3857
|
icon: "_icon_1xkwk_9",
|
|
3815
3858
|
label: "_label_1xkwk_15"
|
|
3816
3859
|
};
|
|
3817
3860
|
//#endregion
|
|
3818
3861
|
//#region src/components/ButtonContent/ButtonContent.tsx
|
|
3819
|
-
function
|
|
3862
|
+
function ca({ icon: e, label: r, iconPosition: i = "start", className: a, ...o }) {
|
|
3820
3863
|
return /* @__PURE__ */ n("span", {
|
|
3821
3864
|
className: [
|
|
3822
|
-
|
|
3823
|
-
i === "end" ?
|
|
3865
|
+
sa.content,
|
|
3866
|
+
i === "end" ? sa.iconEnd : null,
|
|
3824
3867
|
a
|
|
3825
3868
|
].filter(Boolean).join(" "),
|
|
3826
3869
|
...o,
|
|
3827
3870
|
children: [
|
|
3828
3871
|
e && i === "start" && /* @__PURE__ */ t("span", {
|
|
3829
|
-
className:
|
|
3872
|
+
className: sa.icon,
|
|
3830
3873
|
"aria-hidden": "true",
|
|
3831
3874
|
children: e
|
|
3832
3875
|
}),
|
|
3833
3876
|
/* @__PURE__ */ t("span", {
|
|
3834
|
-
className:
|
|
3877
|
+
className: sa.label,
|
|
3835
3878
|
children: r
|
|
3836
3879
|
}),
|
|
3837
3880
|
e && i === "end" && /* @__PURE__ */ t("span", {
|
|
3838
|
-
className:
|
|
3881
|
+
className: sa.icon,
|
|
3839
3882
|
"aria-hidden": "true",
|
|
3840
3883
|
children: e
|
|
3841
3884
|
})
|
|
3842
3885
|
]
|
|
3843
3886
|
});
|
|
3844
3887
|
}
|
|
3845
|
-
var
|
|
3888
|
+
var la = {
|
|
3846
3889
|
label: "_label_h3znl_3",
|
|
3847
3890
|
key: "_key_h3znl_9"
|
|
3848
|
-
},
|
|
3891
|
+
}, ua = {
|
|
3849
3892
|
ctrl: "⌃",
|
|
3850
3893
|
control: "⌃",
|
|
3851
3894
|
shift: "⇧",
|
|
@@ -3873,22 +3916,22 @@ var sa = {
|
|
|
3873
3916
|
home: "⇱",
|
|
3874
3917
|
end: "⇲"
|
|
3875
3918
|
};
|
|
3876
|
-
function
|
|
3919
|
+
function da({ shortcut: e, symbols: n = !0, className: r, ...i }) {
|
|
3877
3920
|
let a = e.split("+").map((e) => e.trim()).filter(Boolean);
|
|
3878
3921
|
return /* @__PURE__ */ t("span", {
|
|
3879
|
-
className: [
|
|
3922
|
+
className: [la.label, r].filter(Boolean).join(" "),
|
|
3880
3923
|
"aria-label": e,
|
|
3881
3924
|
...i,
|
|
3882
3925
|
children: a.map((e, r) => {
|
|
3883
|
-
let i = n ?
|
|
3926
|
+
let i = n ? ua[e.toLowerCase()] ?? e : e;
|
|
3884
3927
|
return /* @__PURE__ */ t("kbd", {
|
|
3885
|
-
className:
|
|
3928
|
+
className: la.key,
|
|
3886
3929
|
children: i
|
|
3887
3930
|
}, r);
|
|
3888
3931
|
})
|
|
3889
3932
|
});
|
|
3890
3933
|
}
|
|
3891
|
-
var
|
|
3934
|
+
var fa = {
|
|
3892
3935
|
toolbarView: "_toolbarView_134hf_3",
|
|
3893
3936
|
top: "_top_134hf_11",
|
|
3894
3937
|
content: "_content_134hf_16",
|
|
@@ -3896,47 +3939,47 @@ var ua = {
|
|
|
3896
3939
|
};
|
|
3897
3940
|
//#endregion
|
|
3898
3941
|
//#region src/components/ToolbarView/ToolbarView.tsx
|
|
3899
|
-
function
|
|
3942
|
+
function pa({ topBar: e, bottomBar: r, children: i, className: a, ...o }) {
|
|
3900
3943
|
return /* @__PURE__ */ n("div", {
|
|
3901
|
-
className: [
|
|
3944
|
+
className: [fa.toolbarView, a].filter(Boolean).join(" "),
|
|
3902
3945
|
...o,
|
|
3903
3946
|
children: [
|
|
3904
3947
|
e && /* @__PURE__ */ t("div", {
|
|
3905
|
-
className:
|
|
3948
|
+
className: fa.top,
|
|
3906
3949
|
children: e
|
|
3907
3950
|
}),
|
|
3908
3951
|
/* @__PURE__ */ t("div", {
|
|
3909
|
-
className:
|
|
3952
|
+
className: fa.content,
|
|
3910
3953
|
children: i
|
|
3911
3954
|
}),
|
|
3912
3955
|
r && /* @__PURE__ */ t("div", {
|
|
3913
|
-
className:
|
|
3956
|
+
className: fa.bottom,
|
|
3914
3957
|
children: r
|
|
3915
3958
|
})
|
|
3916
3959
|
]
|
|
3917
3960
|
});
|
|
3918
3961
|
}
|
|
3919
|
-
var
|
|
3962
|
+
var ma = {
|
|
3920
3963
|
windowTitle: "_windowTitle_zm877_3",
|
|
3921
3964
|
title: "_title_zm877_11",
|
|
3922
3965
|
subtitle: "_subtitle_zm877_24"
|
|
3923
3966
|
};
|
|
3924
3967
|
//#endregion
|
|
3925
3968
|
//#region src/components/WindowTitle/WindowTitle.tsx
|
|
3926
|
-
function
|
|
3969
|
+
function ha({ title: e, subtitle: r, className: i, ...a }) {
|
|
3927
3970
|
return /* @__PURE__ */ n("div", {
|
|
3928
|
-
className: [
|
|
3971
|
+
className: [ma.windowTitle, i].filter(Boolean).join(" "),
|
|
3929
3972
|
...a,
|
|
3930
3973
|
children: [/* @__PURE__ */ t("span", {
|
|
3931
|
-
className:
|
|
3974
|
+
className: ma.title,
|
|
3932
3975
|
children: e
|
|
3933
3976
|
}), r && /* @__PURE__ */ t("span", {
|
|
3934
|
-
className:
|
|
3977
|
+
className: ma.subtitle,
|
|
3935
3978
|
children: r
|
|
3936
3979
|
})]
|
|
3937
3980
|
});
|
|
3938
3981
|
}
|
|
3939
|
-
var
|
|
3982
|
+
var ga = {
|
|
3940
3983
|
group: "_group_17s4f_3",
|
|
3941
3984
|
header: "_header_17s4f_11",
|
|
3942
3985
|
headerText: "_headerText_17s4f_17",
|
|
@@ -3947,85 +3990,85 @@ var ma = {
|
|
|
3947
3990
|
};
|
|
3948
3991
|
//#endregion
|
|
3949
3992
|
//#region src/components/PreferencesGroup/PreferencesGroup.tsx
|
|
3950
|
-
function
|
|
3993
|
+
function _a({ title: e, description: r, headerSuffix: i, children: a, className: o, ...s }) {
|
|
3951
3994
|
let c = e || r || i;
|
|
3952
3995
|
return /* @__PURE__ */ n("div", {
|
|
3953
|
-
className: [
|
|
3996
|
+
className: [ga.group, o].filter(Boolean).join(" "),
|
|
3954
3997
|
...s,
|
|
3955
3998
|
children: [c && /* @__PURE__ */ n("div", {
|
|
3956
|
-
className:
|
|
3999
|
+
className: ga.header,
|
|
3957
4000
|
children: [/* @__PURE__ */ n("div", {
|
|
3958
|
-
className:
|
|
4001
|
+
className: ga.headerText,
|
|
3959
4002
|
children: [e && /* @__PURE__ */ t("span", {
|
|
3960
|
-
className:
|
|
4003
|
+
className: ga.title,
|
|
3961
4004
|
children: e
|
|
3962
4005
|
}), r && /* @__PURE__ */ t("span", {
|
|
3963
|
-
className:
|
|
4006
|
+
className: ga.description,
|
|
3964
4007
|
children: r
|
|
3965
4008
|
})]
|
|
3966
4009
|
}), i && /* @__PURE__ */ t("div", {
|
|
3967
|
-
className:
|
|
4010
|
+
className: ga.suffix,
|
|
3968
4011
|
children: i
|
|
3969
4012
|
})]
|
|
3970
4013
|
}), /* @__PURE__ */ t("div", {
|
|
3971
|
-
className:
|
|
4014
|
+
className: ga.content,
|
|
3972
4015
|
children: a
|
|
3973
4016
|
})]
|
|
3974
4017
|
});
|
|
3975
4018
|
}
|
|
3976
|
-
var
|
|
4019
|
+
var va = {
|
|
3977
4020
|
page: "_page_gt42j_3",
|
|
3978
4021
|
inner: "_inner_gt42j_10"
|
|
3979
4022
|
};
|
|
3980
4023
|
//#endregion
|
|
3981
4024
|
//#region src/components/PreferencesPage/PreferencesPage.tsx
|
|
3982
|
-
function
|
|
4025
|
+
function ya({ title: e, iconName: n, children: r, className: i, ...a }) {
|
|
3983
4026
|
return /* @__PURE__ */ t("div", {
|
|
3984
|
-
className: [
|
|
4027
|
+
className: [va.page, i].filter(Boolean).join(" "),
|
|
3985
4028
|
role: "tabpanel",
|
|
3986
4029
|
...a,
|
|
3987
4030
|
children: /* @__PURE__ */ t("div", {
|
|
3988
|
-
className:
|
|
4031
|
+
className: va.inner,
|
|
3989
4032
|
children: r
|
|
3990
4033
|
})
|
|
3991
4034
|
});
|
|
3992
4035
|
}
|
|
3993
4036
|
//#endregion
|
|
3994
4037
|
//#region src/components/PreferencesDialog/PreferencesDialog.module.css
|
|
3995
|
-
var
|
|
3996
|
-
backdrop:
|
|
4038
|
+
var ba = "_backdrop_1u1bd_3", xa = "_dialog_1u1bd_26", Sa = "_dialogMulti_1u1bd_46", Ca = "_header_1u1bd_63", wa = "_closeBtn_1u1bd_73", Ta = "_title_1u1bd_102", Ea = "_searchWrap_1u1bd_112", Da = "_searchInput_1u1bd_116", Oa = "_body_1u1bd_143", ka = "_sidebar_1u1bd_152", Aa = "_navList_1u1bd_160", ja = "_navItem_1u1bd_169", Ma = "_navItemActive_1u1bd_190", Na = "_navIcon_1u1bd_205", Pa = "_navLabel_1u1bd_211", Fa = "_pageWrap_1u1bd_221", Q = {
|
|
4039
|
+
backdrop: ba,
|
|
3997
4040
|
"backdrop-in": "_backdrop-in_1u1bd_1",
|
|
3998
|
-
dialog:
|
|
4041
|
+
dialog: xa,
|
|
3999
4042
|
"dialog-in": "_dialog-in_1u1bd_1",
|
|
4000
|
-
dialogMulti:
|
|
4001
|
-
header:
|
|
4002
|
-
closeBtn:
|
|
4003
|
-
title:
|
|
4004
|
-
searchWrap:
|
|
4005
|
-
searchInput:
|
|
4006
|
-
body:
|
|
4007
|
-
sidebar:
|
|
4008
|
-
navList:
|
|
4009
|
-
navItem:
|
|
4010
|
-
navItemActive:
|
|
4011
|
-
navIcon:
|
|
4012
|
-
navLabel:
|
|
4013
|
-
pageWrap:
|
|
4014
|
-
},
|
|
4015
|
-
function
|
|
4043
|
+
dialogMulti: Sa,
|
|
4044
|
+
header: Ca,
|
|
4045
|
+
closeBtn: wa,
|
|
4046
|
+
title: Ta,
|
|
4047
|
+
searchWrap: Ea,
|
|
4048
|
+
searchInput: Da,
|
|
4049
|
+
body: Oa,
|
|
4050
|
+
sidebar: ka,
|
|
4051
|
+
navList: Aa,
|
|
4052
|
+
navItem: ja,
|
|
4053
|
+
navItemActive: Ma,
|
|
4054
|
+
navIcon: Na,
|
|
4055
|
+
navLabel: Pa,
|
|
4056
|
+
pageWrap: Fa
|
|
4057
|
+
}, Ia = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
4058
|
+
function La(e, t) {
|
|
4016
4059
|
if (e.key !== "Tab") return;
|
|
4017
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
4060
|
+
let n = Array.from(t.current?.querySelectorAll(Ia) ?? []);
|
|
4018
4061
|
if (!n.length) return;
|
|
4019
4062
|
let r = n[0], i = n[n.length - 1];
|
|
4020
4063
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
4021
4064
|
}
|
|
4022
|
-
function
|
|
4065
|
+
function Ra({ open: e, onClose: a, children: c, searchable: m = !0, className: h, ...g }) {
|
|
4023
4066
|
let _ = d(null), v = d(null), y = u(), b = r.toArray(c).filter((e) => o(e)), [x, S] = f(0), [C, w] = f("");
|
|
4024
4067
|
l(() => {
|
|
4025
4068
|
if (e) {
|
|
4026
4069
|
S(0), w("");
|
|
4027
4070
|
let e = requestAnimationFrame(() => {
|
|
4028
|
-
m && v.current ? v.current.focus() : (_.current?.querySelector(
|
|
4071
|
+
m && v.current ? v.current.focus() : (_.current?.querySelector(Ia))?.focus();
|
|
4029
4072
|
});
|
|
4030
4073
|
return () => cancelAnimationFrame(e);
|
|
4031
4074
|
}
|
|
@@ -4035,10 +4078,10 @@ function Ia({ open: e, onClose: a, children: c, searchable: m = !0, className: h
|
|
|
4035
4078
|
e.stopPropagation(), a();
|
|
4036
4079
|
return;
|
|
4037
4080
|
}
|
|
4038
|
-
|
|
4081
|
+
La(e, _);
|
|
4039
4082
|
}, [a]), E = b.length > 1, D = b[x] ?? b[0], O = C.trim().toLowerCase();
|
|
4040
4083
|
return e ? p(/* @__PURE__ */ t("div", {
|
|
4041
|
-
className:
|
|
4084
|
+
className: Q.backdrop,
|
|
4042
4085
|
onClick: (e) => {
|
|
4043
4086
|
e.target === e.currentTarget && a();
|
|
4044
4087
|
},
|
|
@@ -4049,79 +4092,160 @@ function Ia({ open: e, onClose: a, children: c, searchable: m = !0, className: h
|
|
|
4049
4092
|
"aria-modal": "true",
|
|
4050
4093
|
"aria-labelledby": y,
|
|
4051
4094
|
className: [
|
|
4052
|
-
|
|
4053
|
-
E ?
|
|
4095
|
+
Q.dialog,
|
|
4096
|
+
E ? Q.dialogMulti : null,
|
|
4054
4097
|
h
|
|
4055
4098
|
].filter(Boolean).join(" "),
|
|
4056
4099
|
onKeyDown: T,
|
|
4057
4100
|
...g,
|
|
4058
4101
|
children: [/* @__PURE__ */ n("div", {
|
|
4059
|
-
className:
|
|
4102
|
+
className: Q.header,
|
|
4060
4103
|
children: [
|
|
4061
4104
|
/* @__PURE__ */ t("button", {
|
|
4062
4105
|
type: "button",
|
|
4063
|
-
className:
|
|
4106
|
+
className: Q.closeBtn,
|
|
4064
4107
|
onClick: a,
|
|
4065
4108
|
"aria-label": "Close preferences",
|
|
4066
4109
|
children: "✕"
|
|
4067
4110
|
}),
|
|
4068
4111
|
/* @__PURE__ */ t("span", {
|
|
4069
4112
|
id: y,
|
|
4070
|
-
className:
|
|
4113
|
+
className: Q.title,
|
|
4071
4114
|
children: "Preferences"
|
|
4072
4115
|
}),
|
|
4073
4116
|
m && /* @__PURE__ */ t("div", {
|
|
4074
|
-
className:
|
|
4117
|
+
className: Q.searchWrap,
|
|
4075
4118
|
children: /* @__PURE__ */ t("input", {
|
|
4076
4119
|
ref: v,
|
|
4077
4120
|
type: "search",
|
|
4078
4121
|
placeholder: "Search…",
|
|
4079
4122
|
value: C,
|
|
4080
4123
|
onChange: (e) => w(e.target.value),
|
|
4081
|
-
className:
|
|
4124
|
+
className: Q.searchInput,
|
|
4082
4125
|
"aria-label": "Search preferences"
|
|
4083
4126
|
})
|
|
4084
4127
|
})
|
|
4085
4128
|
]
|
|
4086
4129
|
}), /* @__PURE__ */ n("div", {
|
|
4087
|
-
className:
|
|
4130
|
+
className: Q.body,
|
|
4088
4131
|
children: [E && /* @__PURE__ */ t("nav", {
|
|
4089
|
-
className:
|
|
4132
|
+
className: Q.sidebar,
|
|
4090
4133
|
"aria-label": "Preferences pages",
|
|
4091
4134
|
children: /* @__PURE__ */ t("ul", {
|
|
4092
4135
|
role: "tablist",
|
|
4093
|
-
className:
|
|
4136
|
+
className: Q.navList,
|
|
4094
4137
|
children: b.map((e, r) => /* @__PURE__ */ t("li", {
|
|
4095
4138
|
role: "presentation",
|
|
4096
4139
|
children: /* @__PURE__ */ n("button", {
|
|
4097
4140
|
role: "tab",
|
|
4098
4141
|
type: "button",
|
|
4099
4142
|
"aria-selected": r === x,
|
|
4100
|
-
className: [
|
|
4143
|
+
className: [Q.navItem, r === x ? Q.navItemActive : null].filter(Boolean).join(" "),
|
|
4101
4144
|
onClick: () => S(r),
|
|
4102
4145
|
children: [e.props.iconName && /* @__PURE__ */ t("span", {
|
|
4103
4146
|
className: [
|
|
4104
|
-
|
|
4147
|
+
Q.navIcon,
|
|
4105
4148
|
"icon",
|
|
4106
4149
|
e.props.iconName
|
|
4107
4150
|
].join(" "),
|
|
4108
4151
|
"aria-hidden": "true"
|
|
4109
4152
|
}), /* @__PURE__ */ t("span", {
|
|
4110
|
-
className:
|
|
4153
|
+
className: Q.navLabel,
|
|
4111
4154
|
children: e.props.title
|
|
4112
4155
|
})]
|
|
4113
4156
|
})
|
|
4114
4157
|
}, r))
|
|
4115
4158
|
})
|
|
4116
4159
|
}), /* @__PURE__ */ t("div", {
|
|
4117
|
-
className:
|
|
4160
|
+
className: Q.pageWrap,
|
|
4118
4161
|
children: D && i(D, { "data-search-query": O || void 0 })
|
|
4119
4162
|
})]
|
|
4120
4163
|
})]
|
|
4121
4164
|
})
|
|
4122
4165
|
}), document.body) : null;
|
|
4123
4166
|
}
|
|
4167
|
+
var $ = {
|
|
4168
|
+
vertical: "_vertical_12mfk_12",
|
|
4169
|
+
item: "_item_12mfk_18",
|
|
4170
|
+
leading: "_leading_12mfk_25",
|
|
4171
|
+
nodeTrack: "_nodeTrack_12mfk_32",
|
|
4172
|
+
content: "_content_12mfk_41",
|
|
4173
|
+
horizontal: "_horizontal_12mfk_65",
|
|
4174
|
+
node: "_node_12mfk_32",
|
|
4175
|
+
nodeDot: "_nodeDot_12mfk_114",
|
|
4176
|
+
nodeWithIcon: "_nodeWithIcon_12mfk_121",
|
|
4177
|
+
iconWrap: "_iconWrap_12mfk_128",
|
|
4178
|
+
lineInvisible: "_lineInvisible_12mfk_139",
|
|
4179
|
+
line: "_line_12mfk_139",
|
|
4180
|
+
lineDotted: "_lineDotted_12mfk_153"
|
|
4181
|
+
};
|
|
4182
|
+
//#endregion
|
|
4183
|
+
//#region src/components/Timeline/Timeline.tsx
|
|
4184
|
+
function za({ items: e, orientation: r = "vertical", variant: i = "default", className: a, ...o }) {
|
|
4185
|
+
let s = r === "horizontal", c = i !== "none";
|
|
4186
|
+
return /* @__PURE__ */ t("div", {
|
|
4187
|
+
role: "list",
|
|
4188
|
+
className: [
|
|
4189
|
+
$.root,
|
|
4190
|
+
s ? $.horizontal : $.vertical,
|
|
4191
|
+
a
|
|
4192
|
+
].filter(Boolean).join(" "),
|
|
4193
|
+
...o,
|
|
4194
|
+
children: e.map((r, a) => {
|
|
4195
|
+
let o = a === 0, l = a === e.length - 1, u = [$.line, i === "dotted" ? $.lineDotted : null].filter(Boolean).join(" "), d = /* @__PURE__ */ t("div", {
|
|
4196
|
+
className: [$.node, r.icon ? $.nodeWithIcon : $.nodeDot].filter(Boolean).join(" "),
|
|
4197
|
+
children: r.icon && /* @__PURE__ */ t("span", {
|
|
4198
|
+
className: $.iconWrap,
|
|
4199
|
+
"aria-hidden": "true",
|
|
4200
|
+
children: r.icon
|
|
4201
|
+
})
|
|
4202
|
+
});
|
|
4203
|
+
return /* @__PURE__ */ n("div", {
|
|
4204
|
+
role: "listitem",
|
|
4205
|
+
className: $.item,
|
|
4206
|
+
children: [
|
|
4207
|
+
/* @__PURE__ */ t("div", {
|
|
4208
|
+
className: $.leading,
|
|
4209
|
+
children: r.leading
|
|
4210
|
+
}),
|
|
4211
|
+
s ? /* @__PURE__ */ n("div", {
|
|
4212
|
+
className: $.nodeTrack,
|
|
4213
|
+
children: [
|
|
4214
|
+
/* @__PURE__ */ t("div", {
|
|
4215
|
+
className: [
|
|
4216
|
+
$.line,
|
|
4217
|
+
i === "dotted" ? $.lineDotted : null,
|
|
4218
|
+
o || !c ? $.lineInvisible : null
|
|
4219
|
+
].filter(Boolean).join(" "),
|
|
4220
|
+
"aria-hidden": "true"
|
|
4221
|
+
}),
|
|
4222
|
+
d,
|
|
4223
|
+
/* @__PURE__ */ t("div", {
|
|
4224
|
+
className: [
|
|
4225
|
+
$.line,
|
|
4226
|
+
i === "dotted" ? $.lineDotted : null,
|
|
4227
|
+
l || !c ? $.lineInvisible : null
|
|
4228
|
+
].filter(Boolean).join(" "),
|
|
4229
|
+
"aria-hidden": "true"
|
|
4230
|
+
})
|
|
4231
|
+
]
|
|
4232
|
+
}) : /* @__PURE__ */ n("div", {
|
|
4233
|
+
className: $.nodeTrack,
|
|
4234
|
+
children: [d, !l && c && /* @__PURE__ */ t("div", {
|
|
4235
|
+
className: u,
|
|
4236
|
+
"aria-hidden": "true"
|
|
4237
|
+
})]
|
|
4238
|
+
}),
|
|
4239
|
+
/* @__PURE__ */ t("div", {
|
|
4240
|
+
className: $.content,
|
|
4241
|
+
children: r.content
|
|
4242
|
+
})
|
|
4243
|
+
]
|
|
4244
|
+
}, a);
|
|
4245
|
+
})
|
|
4246
|
+
});
|
|
4247
|
+
}
|
|
4124
4248
|
//#endregion
|
|
4125
|
-
export {
|
|
4249
|
+
export { Tt as ActionRow, te as Avatar, Ae as Badge, we as Banner, oa as Bin, na as BottomSheet, lr as Box, Dt as BoxedList, Br as BreakpointBin, h as Button, ca as ButtonContent, Hr as ButtonRow, k as Card, aa as Carousel, ra as CarouselIndicatorDots, ia as CarouselIndicatorLines, oi as CheckRow, se as Checkbox, pr as Chip, Zn as Clamp, ki as ComboRow, bn as Dialog, zn as Dropdown, Ai as EntryRow, Qr as ExpanderRow, Oe as Footer, Zr as Frame, Ve as GNOME_BREAKPOINTS, Ee as HeaderBar, F as Icon, ni as InlineViewSwitcher, ri as InlineViewSwitcherItem, rr as Link, Yr as LinkedGroup, Ki as NavigationPage, Qn as NavigationSplitView, qi as NavigationView, $n as OverlaySplitView, Mi as PasswordEntryRow, Yn as Popover, Ra as PreferencesDialog, _a as PreferencesGroup, ya as PreferencesPage, pe as ProgressBar, de as RadioButton, Re as SearchBar, re as Separator, da as ShortcutLabel, Pr as ShortcutsDialog, dt as Sidebar, st as SidebarCollapsedContext, _t as SidebarItem, ft as SidebarSection, Wn as Slider, qr as Spacer, xt as SpinButton, Fi as SpinRow, j as Spinner, Wr as SplitButton, Be as StatusPage, ae as Switch, ai as SwitchRow, St as TabBar, Ct as TabItem, wt as TabPanel, T as Text, le as TextField, za as Timeline, Bt as Toast, Vt as Toaster, sr as ToggleGroup, cr as ToggleGroupItem, Kr as Toolbar, pa as ToolbarView, gt as Tooltip, kt as ViewSwitcher, tr as ViewSwitcherBar, At as ViewSwitcherItem, Rr as ViewSwitcherSidebar, zr as ViewSwitcherSidebarItem, ha as WindowTitle, dr as WrapBox, He as useBreakpoint, Gi as useNavigation, ct as useSidebarCollapsed };
|
|
4126
4250
|
|
|
4127
4251
|
//# sourceMappingURL=index.js.map
|