@gnome-ui/react 1.25.0 → 1.26.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/README.md +1 -0
- package/dist/components/CountDownTimer/CountDownTimer.d.ts +20 -0
- package/dist/components/CountDownTimer/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 +629 -569
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -523,15 +523,75 @@ function je({ variant: e = "accent", dot: r = !1, children: i, anchor: a, classN
|
|
|
523
523
|
children: [a, c]
|
|
524
524
|
}) : c;
|
|
525
525
|
}
|
|
526
|
+
var Me = {
|
|
527
|
+
countdownTimer: "_countdownTimer_twhbs_3",
|
|
528
|
+
value: "_value_twhbs_25",
|
|
529
|
+
accent: "_accent_twhbs_34",
|
|
530
|
+
success: "_success_twhbs_46",
|
|
531
|
+
warning: "_warning_twhbs_58",
|
|
532
|
+
destructive: "_destructive_twhbs_70",
|
|
533
|
+
finished: "_finished_twhbs_82"
|
|
534
|
+
};
|
|
535
|
+
//#endregion
|
|
536
|
+
//#region src/components/CountDownTimer/CountDownTimer.tsx
|
|
537
|
+
function Ne({ start: e, end: n, format: r = "time", variant: i = "accent", action: a, className: o, ...s }) {
|
|
538
|
+
let [c, u] = p(null), [d, f] = p(!1);
|
|
539
|
+
if (l(() => {
|
|
540
|
+
let e = () => {
|
|
541
|
+
let e = /* @__PURE__ */ new Date(), t = new Date(n).getTime() - e.getTime();
|
|
542
|
+
return t <= 0 ? {
|
|
543
|
+
days: 0,
|
|
544
|
+
hours: 0,
|
|
545
|
+
minutes: 0,
|
|
546
|
+
seconds: 0,
|
|
547
|
+
isFinished: !0
|
|
548
|
+
} : {
|
|
549
|
+
days: Math.floor(t / (1e3 * 60 * 60 * 24)),
|
|
550
|
+
hours: Math.floor(t / (1e3 * 60 * 60) % 24),
|
|
551
|
+
minutes: Math.floor(t / 1e3 / 60 % 60),
|
|
552
|
+
seconds: Math.floor(t / 1e3 % 60),
|
|
553
|
+
isFinished: !1
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
u(e());
|
|
557
|
+
let t = setInterval(() => {
|
|
558
|
+
let t = e();
|
|
559
|
+
u(t), t.isFinished && !d && (a?.(), f(!0));
|
|
560
|
+
}, 1e3);
|
|
561
|
+
return () => clearInterval(t);
|
|
562
|
+
}, [
|
|
563
|
+
n,
|
|
564
|
+
a,
|
|
565
|
+
d
|
|
566
|
+
]), !c) return null;
|
|
567
|
+
let m = () => {
|
|
568
|
+
if (r === "date") return new Date(n).toLocaleDateString();
|
|
569
|
+
let { days: e, hours: t, minutes: i, seconds: a, isFinished: o } = c;
|
|
570
|
+
return o ? "00:00:00" : r === "datetime" ? `${new Date(n).toLocaleDateString()} ${`${String(t).padStart(2, "0")}:${String(i).padStart(2, "0")}:${String(a).padStart(2, "0")}`}` : e > 0 ? `${e}d ${String(t).padStart(2, "0")}h ${String(i).padStart(2, "0")}m` : `${String(t).padStart(2, "0")}:${String(i).padStart(2, "0")}:${String(a).padStart(2, "0")}`;
|
|
571
|
+
}, h = c.isFinished ? "destructive" : i;
|
|
572
|
+
return /* @__PURE__ */ t("div", {
|
|
573
|
+
className: [
|
|
574
|
+
Me.countdownTimer,
|
|
575
|
+
Me[h],
|
|
576
|
+
c.isFinished ? Me.finished : null,
|
|
577
|
+
o
|
|
578
|
+
].filter(Boolean).join(" "),
|
|
579
|
+
...s,
|
|
580
|
+
children: /* @__PURE__ */ t("span", {
|
|
581
|
+
className: Me.value,
|
|
582
|
+
children: m()
|
|
583
|
+
})
|
|
584
|
+
});
|
|
585
|
+
}
|
|
526
586
|
//#endregion
|
|
527
587
|
//#region src/components/Icon/Icon.tsx
|
|
528
|
-
var
|
|
588
|
+
var Pe = {
|
|
529
589
|
sm: 12,
|
|
530
590
|
md: 16,
|
|
531
591
|
lg: 20
|
|
532
592
|
};
|
|
533
593
|
function L({ icon: e, size: n = "md", label: r, width: i, height: a, ...o }) {
|
|
534
|
-
let s =
|
|
594
|
+
let s = Pe[n];
|
|
535
595
|
return /* @__PURE__ */ t("svg", {
|
|
536
596
|
xmlns: "http://www.w3.org/2000/svg",
|
|
537
597
|
viewBox: e.viewBox,
|
|
@@ -552,37 +612,37 @@ function L({ icon: e, size: n = "md", label: r, width: i, height: a, ...o }) {
|
|
|
552
612
|
}
|
|
553
613
|
//#endregion
|
|
554
614
|
//#region ../icons/dist/index.js
|
|
555
|
-
var
|
|
615
|
+
var Fe = {
|
|
556
616
|
viewBox: "0 0 16 16",
|
|
557
617
|
paths: [{
|
|
558
618
|
d: "m2.5 5 5.5 6 5.5-6z",
|
|
559
619
|
fillRule: "evenodd"
|
|
560
620
|
}]
|
|
561
|
-
},
|
|
621
|
+
}, Ie = {
|
|
562
622
|
viewBox: "0 0 16 16",
|
|
563
623
|
paths: [{
|
|
564
624
|
d: "M3.293 3.293a1 1 0 0 1 1.414 0L8 6.586l3.293-3.293a1 1 0 1 1 1.414 1.414L9.414 8l3.293 3.293a1 1 0 0 1-1.414 1.414L8 9.414l-3.293 3.293a1 1 0 0 1-1.414-1.414L6.586 8 3.293 4.707a1 1 0 0 1 0-1.414z",
|
|
565
625
|
fillRule: "evenodd"
|
|
566
626
|
}]
|
|
567
|
-
},
|
|
627
|
+
}, Le = {
|
|
568
628
|
viewBox: "0 0 16 16",
|
|
569
629
|
paths: [{
|
|
570
630
|
d: "M6.5 1a5.5 5.5 0 0 1 4.33 8.92l3.13 3.13-1.41 1.41-3.13-3.13A5.5 5.5 0 1 1 6.5 1zm0 2a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7z",
|
|
571
631
|
fillRule: "evenodd"
|
|
572
632
|
}]
|
|
573
|
-
},
|
|
633
|
+
}, Re = {
|
|
574
634
|
viewBox: "0 0 16 16",
|
|
575
635
|
paths: [{
|
|
576
636
|
d: "M8 3C4.5 3 1.5 5.667 0 8c1.5 2.333 4.5 5 8 5s6.5-2.667 8-5c-1.5-2.333-4.5-5-8-5zm0 8a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-4.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z",
|
|
577
637
|
fillRule: "evenodd"
|
|
578
638
|
}]
|
|
579
|
-
},
|
|
639
|
+
}, ze = {
|
|
580
640
|
viewBox: "0 0 16 16",
|
|
581
641
|
paths: [{
|
|
582
642
|
d: "M1.293 1.293a1 1 0 0 1 1.414 0l12 12a1 1 0 0 1-1.414 1.414l-1.88-1.88A8.8 8.8 0 0 1 8 13C4.5 13 1.5 10.333 0 8c.637-1.023 1.52-2.049 2.6-2.893L1.293 2.707a1 1 0 0 1 0-1.414zM5.03 6.444 7.09 8.505A1.5 1.5 0 0 0 9.494 6.91L7.432 4.848A3 3 0 0 0 5.03 6.444zM8 3c.645 0 1.27.083 1.867.237l-1.59 1.59A3 3 0 0 0 5.173 7.92L3.584 6.333C4.51 4.95 6.152 3 8 3zm5.4 2.107C14.48 5.951 15.363 6.977 16 8c-1.5 2.333-4.5 5-8 5a8.8 8.8 0 0 1-2.072-.249l1.538-1.538a3 3 0 0 0 3.703-3.703L12.81 5.87c.202.076.4.156.59.237z",
|
|
583
643
|
fillRule: "evenodd"
|
|
584
644
|
}]
|
|
585
|
-
},
|
|
645
|
+
}, Be = {
|
|
586
646
|
viewBox: "0 0 16 16",
|
|
587
647
|
paths: [{
|
|
588
648
|
d: "M13.5 3 6 11.5 2.5 8 1 9.5l5 5 9-10z",
|
|
@@ -605,7 +665,7 @@ var Ne = {
|
|
|
605
665
|
};
|
|
606
666
|
//#endregion
|
|
607
667
|
//#region src/components/SearchBar/SearchBar.tsx
|
|
608
|
-
function
|
|
668
|
+
function Ve({ open: r, onClose: i, onClear: a, children: o, value: c, onChange: d, placeholder: h = "Search…", disabled: g, inline: _ = !1, className: v, suggestions: y, onSuggestionSelect: b, loadingSuggestions: x = !1, renderSuggestion: S, suggestionsLabel: C = "Suggestions", ...w }) {
|
|
609
669
|
let T = f(null), E = f(null), D = f(null), O = u(), k = u(), [A, j] = p(-1), [M, N] = p(null), F = (y?.length ?? 0) > 0, I = r && (x || F);
|
|
610
670
|
l(() => {
|
|
611
671
|
j(-1);
|
|
@@ -710,7 +770,7 @@ function ze({ open: r, onClose: i, onClear: a, children: o, value: c, onChange:
|
|
|
710
770
|
className: R.searchIcon,
|
|
711
771
|
"aria-hidden": !0,
|
|
712
772
|
children: /* @__PURE__ */ t(L, {
|
|
713
|
-
icon:
|
|
773
|
+
icon: Le,
|
|
714
774
|
size: "md"
|
|
715
775
|
})
|
|
716
776
|
}),
|
|
@@ -741,7 +801,7 @@ function ze({ open: r, onClose: i, onClear: a, children: o, value: c, onChange:
|
|
|
741
801
|
a?.(), T.current?.focus();
|
|
742
802
|
},
|
|
743
803
|
children: /* @__PURE__ */ t(L, {
|
|
744
|
-
icon:
|
|
804
|
+
icon: Ie,
|
|
745
805
|
size: "md"
|
|
746
806
|
})
|
|
747
807
|
})
|
|
@@ -752,7 +812,7 @@ function ze({ open: r, onClose: i, onClear: a, children: o, value: c, onChange:
|
|
|
752
812
|
})]
|
|
753
813
|
}), typeof document < "u" && re] });
|
|
754
814
|
}
|
|
755
|
-
var
|
|
815
|
+
var He = {
|
|
756
816
|
page: "_page_cb4hq_3",
|
|
757
817
|
iconWrap: "_iconWrap_cb4hq_20",
|
|
758
818
|
title: "_title_cb4hq_33",
|
|
@@ -762,7 +822,7 @@ var Be = {
|
|
|
762
822
|
};
|
|
763
823
|
//#endregion
|
|
764
824
|
//#region src/components/StatusPage/StatusPage.tsx
|
|
765
|
-
function
|
|
825
|
+
function Ue({ icon: e, iconNode: r, title: i, description: a, children: o, compact: s = !1, className: c, ...l }) {
|
|
766
826
|
let u = s ? 64 : 128, d = e ? /* @__PURE__ */ t(L, {
|
|
767
827
|
icon: e,
|
|
768
828
|
width: u,
|
|
@@ -771,27 +831,27 @@ function Ve({ icon: e, iconNode: r, title: i, description: a, children: o, compa
|
|
|
771
831
|
}) : r ?? null;
|
|
772
832
|
return /* @__PURE__ */ n("div", {
|
|
773
833
|
className: [
|
|
774
|
-
|
|
775
|
-
s ?
|
|
834
|
+
He.page,
|
|
835
|
+
s ? He.compact : null,
|
|
776
836
|
c
|
|
777
837
|
].filter(Boolean).join(" "),
|
|
778
838
|
...l,
|
|
779
839
|
children: [
|
|
780
840
|
d && /* @__PURE__ */ t("div", {
|
|
781
|
-
className:
|
|
841
|
+
className: He.iconWrap,
|
|
782
842
|
"aria-hidden": "true",
|
|
783
843
|
children: d
|
|
784
844
|
}),
|
|
785
845
|
/* @__PURE__ */ t("p", {
|
|
786
|
-
className:
|
|
846
|
+
className: He.title,
|
|
787
847
|
children: i
|
|
788
848
|
}),
|
|
789
849
|
a && /* @__PURE__ */ t("p", {
|
|
790
|
-
className:
|
|
850
|
+
className: He.description,
|
|
791
851
|
children: a
|
|
792
852
|
}),
|
|
793
853
|
o && /* @__PURE__ */ t("div", {
|
|
794
|
-
className:
|
|
854
|
+
className: He.actions,
|
|
795
855
|
children: o
|
|
796
856
|
})
|
|
797
857
|
]
|
|
@@ -799,18 +859,18 @@ function Ve({ icon: e, iconNode: r, title: i, description: a, children: o, compa
|
|
|
799
859
|
}
|
|
800
860
|
//#endregion
|
|
801
861
|
//#region src/hooks/useBreakpoint.ts
|
|
802
|
-
var
|
|
862
|
+
var We = {
|
|
803
863
|
narrow: 400,
|
|
804
864
|
medium: 550,
|
|
805
865
|
wide: 860
|
|
806
866
|
};
|
|
807
|
-
function
|
|
867
|
+
function Ge() {
|
|
808
868
|
let e = () => {
|
|
809
869
|
let e = typeof window < "u" ? window.innerWidth : 1280;
|
|
810
870
|
return {
|
|
811
|
-
isNarrow: e <=
|
|
812
|
-
isMedium: e <=
|
|
813
|
-
isWide: e <=
|
|
871
|
+
isNarrow: e <= We.narrow,
|
|
872
|
+
isMedium: e <= We.medium,
|
|
873
|
+
isWide: e <= We.wide,
|
|
814
874
|
width: e
|
|
815
875
|
};
|
|
816
876
|
}, [t, n] = p(e);
|
|
@@ -821,47 +881,47 @@ function Ue() {
|
|
|
821
881
|
}
|
|
822
882
|
//#endregion
|
|
823
883
|
//#region src/components/Sidebar/Sidebar.module.css
|
|
824
|
-
var
|
|
825
|
-
sidebar:
|
|
826
|
-
section:
|
|
827
|
-
sectionTitle:
|
|
828
|
-
list:
|
|
829
|
-
item:
|
|
830
|
-
itemBtn:
|
|
831
|
-
active:
|
|
832
|
-
itemIcon:
|
|
833
|
-
itemLabel:
|
|
834
|
-
itemSuffix:
|
|
835
|
-
contextMenu:
|
|
884
|
+
var Ke = "_sidebar_1xzyz_3", qe = "_section_1xzyz_21", Je = "_sectionTitle_1xzyz_33", Ye = "_list_1xzyz_47", Xe = "_item_1xzyz_58", Ze = "_itemBtn_1xzyz_64", Qe = "_active_1xzyz_111", $e = "_itemIcon_1xzyz_127", et = "_itemLabel_1xzyz_140", tt = "_itemSuffix_1xzyz_150", nt = "_contextMenu_1xzyz_159", rt = "_contextMenuItem_1xzyz_183", it = "_contextMenuDestructive_1xzyz_219", at = "_searchWrap_1xzyz_225", ot = "_variantBlue_1xzyz_236", st = "_variantGreen_1xzyz_245", ct = "_variantRed_1xzyz_254", lt = "_variantYellow_1xzyz_263", ut = "_variantBlack_1xzyz_272", dt = "_variantTransparent_1xzyz_281", ft = "_variantBlurred_1xzyz_286", pt = "_pageMode_1xzyz_302", mt = "_dragOver_1xzyz_309", ht = "_collapsed_1xzyz_317", gt = "_itemCollapsed_1xzyz_328", z = {
|
|
885
|
+
sidebar: Ke,
|
|
886
|
+
section: qe,
|
|
887
|
+
sectionTitle: Je,
|
|
888
|
+
list: Ye,
|
|
889
|
+
item: Xe,
|
|
890
|
+
itemBtn: Ze,
|
|
891
|
+
active: Qe,
|
|
892
|
+
itemIcon: $e,
|
|
893
|
+
itemLabel: et,
|
|
894
|
+
itemSuffix: tt,
|
|
895
|
+
contextMenu: nt,
|
|
836
896
|
"menu-in": "_menu-in_1xzyz_1",
|
|
837
|
-
contextMenuItem:
|
|
838
|
-
contextMenuDestructive:
|
|
839
|
-
searchWrap:
|
|
840
|
-
variantBlue:
|
|
841
|
-
variantGreen:
|
|
842
|
-
variantRed:
|
|
843
|
-
variantYellow:
|
|
844
|
-
variantBlack:
|
|
845
|
-
variantTransparent:
|
|
846
|
-
variantBlurred:
|
|
847
|
-
pageMode:
|
|
848
|
-
dragOver:
|
|
849
|
-
collapsed:
|
|
850
|
-
itemCollapsed:
|
|
851
|
-
},
|
|
852
|
-
function
|
|
853
|
-
return c(
|
|
897
|
+
contextMenuItem: rt,
|
|
898
|
+
contextMenuDestructive: it,
|
|
899
|
+
searchWrap: at,
|
|
900
|
+
variantBlue: ot,
|
|
901
|
+
variantGreen: st,
|
|
902
|
+
variantRed: ct,
|
|
903
|
+
variantYellow: lt,
|
|
904
|
+
variantBlack: ut,
|
|
905
|
+
variantTransparent: dt,
|
|
906
|
+
variantBlurred: ft,
|
|
907
|
+
pageMode: pt,
|
|
908
|
+
dragOver: mt,
|
|
909
|
+
collapsed: ht,
|
|
910
|
+
itemCollapsed: gt
|
|
911
|
+
}, _t = a(!1);
|
|
912
|
+
function vt() {
|
|
913
|
+
return c(_t);
|
|
854
914
|
}
|
|
855
|
-
var
|
|
856
|
-
function
|
|
915
|
+
var yt = a("");
|
|
916
|
+
function bt(e, t) {
|
|
857
917
|
let n = 0;
|
|
858
918
|
return r.forEach(e, (e) => {
|
|
859
919
|
if (!o(e)) return;
|
|
860
920
|
let r = e.props;
|
|
861
|
-
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n +=
|
|
921
|
+
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n += bt(r.children, t));
|
|
862
922
|
}), n;
|
|
863
923
|
}
|
|
864
|
-
var
|
|
924
|
+
var xt = {
|
|
865
925
|
blue: "variantBlue",
|
|
866
926
|
green: "variantGreen",
|
|
867
927
|
red: "variantRed",
|
|
@@ -870,26 +930,26 @@ var yt = {
|
|
|
870
930
|
transparent: "variantTransparent",
|
|
871
931
|
blurred: "variantBlurred"
|
|
872
932
|
};
|
|
873
|
-
function
|
|
874
|
-
let [d, f] = p(""), { isNarrow: m } =
|
|
933
|
+
function St({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilterChange: o, mode: s, variant: c = "classic", className: l, ...u }) {
|
|
934
|
+
let [d, f] = p(""), { isNarrow: m } = Ge(), h = a !== void 0, g = h ? a : d, _ = (e) => {
|
|
875
935
|
h || f(e), o?.(e);
|
|
876
|
-
}, v = g.length > 0, y = s ?? (m ? "page" : "sidebar"), b = !v ||
|
|
877
|
-
return /* @__PURE__ */ t(
|
|
936
|
+
}, v = g.length > 0, y = s ?? (m ? "page" : "sidebar"), b = !v || bt(e, g) > 0;
|
|
937
|
+
return /* @__PURE__ */ t(_t.Provider, {
|
|
878
938
|
value: r,
|
|
879
|
-
children: /* @__PURE__ */ t(
|
|
939
|
+
children: /* @__PURE__ */ t(yt.Provider, {
|
|
880
940
|
value: g,
|
|
881
941
|
children: /* @__PURE__ */ n("nav", {
|
|
882
942
|
className: [
|
|
883
943
|
z.sidebar,
|
|
884
944
|
r ? z.collapsed : null,
|
|
885
945
|
y === "page" ? z.pageMode : null,
|
|
886
|
-
c === "classic" ? null : z[
|
|
946
|
+
c === "classic" ? null : z[xt[c]],
|
|
887
947
|
l
|
|
888
948
|
].filter(Boolean).join(" "),
|
|
889
949
|
...u,
|
|
890
950
|
children: [i && /* @__PURE__ */ t("div", {
|
|
891
951
|
className: z.searchWrap,
|
|
892
|
-
children: /* @__PURE__ */ t(
|
|
952
|
+
children: /* @__PURE__ */ t(Ve, {
|
|
893
953
|
open: !0,
|
|
894
954
|
value: g,
|
|
895
955
|
onChange: (e) => _(e.target.value),
|
|
@@ -897,7 +957,7 @@ function bt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
897
957
|
onClear: () => _(""),
|
|
898
958
|
inline: !0
|
|
899
959
|
})
|
|
900
|
-
}), v && !b ? /* @__PURE__ */ t(
|
|
960
|
+
}), v && !b ? /* @__PURE__ */ t(Ue, {
|
|
901
961
|
title: "No Results",
|
|
902
962
|
description: "No items match your search.",
|
|
903
963
|
compact: !0
|
|
@@ -908,7 +968,7 @@ function bt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
908
968
|
}
|
|
909
969
|
//#endregion
|
|
910
970
|
//#region src/components/Sidebar/SidebarSection.tsx
|
|
911
|
-
function
|
|
971
|
+
function Ct({ title: e, children: r, className: i, ...a }) {
|
|
912
972
|
return /* @__PURE__ */ n("section", {
|
|
913
973
|
className: [z.section, i].filter(Boolean).join(" "),
|
|
914
974
|
...a,
|
|
@@ -922,15 +982,15 @@ function xt({ title: e, children: r, className: i, ...a }) {
|
|
|
922
982
|
})]
|
|
923
983
|
});
|
|
924
984
|
}
|
|
925
|
-
var
|
|
985
|
+
var wt = {
|
|
926
986
|
tooltip: "_tooltip_y4het_3",
|
|
927
987
|
visible: "_visible_y4het_29",
|
|
928
988
|
top: "_top_y4het_55",
|
|
929
989
|
bottom: "_bottom_y4het_62",
|
|
930
990
|
left: "_left_y4het_69",
|
|
931
991
|
right: "_right_y4het_76"
|
|
932
|
-
},
|
|
933
|
-
function
|
|
992
|
+
}, Tt = 6;
|
|
993
|
+
function Et(e, t, n) {
|
|
934
994
|
let r = window.innerWidth, i = window.innerHeight, a = [
|
|
935
995
|
n,
|
|
936
996
|
n === "top" || n === "bottom" ? n === "top" ? "bottom" : "top" : n === "left" ? "right" : "left",
|
|
@@ -941,7 +1001,7 @@ function wt(e, t, n) {
|
|
|
941
1001
|
];
|
|
942
1002
|
for (let n of a) {
|
|
943
1003
|
let a = 0, o = 0;
|
|
944
|
-
n === "top" ? (a = e.top - t.height -
|
|
1004
|
+
n === "top" ? (a = e.top - t.height - Tt, o = e.left + e.width / 2 - t.width / 2) : n === "bottom" ? (a = e.bottom + Tt, 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 - Tt) : (a = e.top + e.height / 2 - t.height / 2, o = e.right + Tt);
|
|
945
1005
|
let s = o >= 8 && o + t.width <= r - 8, c = a >= 8 && a + t.height <= i - 8;
|
|
946
1006
|
if (s && c) return {
|
|
947
1007
|
top: Math.max(8, Math.min(a, i - t.height - 8)),
|
|
@@ -950,17 +1010,17 @@ function wt(e, t, n) {
|
|
|
950
1010
|
};
|
|
951
1011
|
}
|
|
952
1012
|
let o = 0, s = 0;
|
|
953
|
-
return n === "top" && (o = e.top - t.height -
|
|
1013
|
+
return n === "top" && (o = e.top - t.height - Tt, s = e.left + e.width / 2 - t.width / 2), n === "bottom" && (o = e.bottom + Tt, 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 - Tt), n === "right" && (o = e.top + e.height / 2 - t.height / 2, s = e.right + Tt), {
|
|
954
1014
|
top: Math.max(8, Math.min(o, i - t.height - 8)),
|
|
955
1015
|
left: Math.max(8, Math.min(s, window.innerWidth - t.width - 8)),
|
|
956
1016
|
placement: n
|
|
957
1017
|
};
|
|
958
1018
|
}
|
|
959
|
-
function
|
|
1019
|
+
function Dt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
960
1020
|
let d = u(), [h, g] = p(!1), [_, v] = p(null), y = f(null), b = f(null), x = f(null), S = () => {
|
|
961
1021
|
x.current &&= (clearTimeout(x.current), null);
|
|
962
1022
|
}, C = s(() => {
|
|
963
|
-
!y.current || !b.current || v(
|
|
1023
|
+
!y.current || !b.current || v(Et(y.current.getBoundingClientRect(), b.current.getBoundingClientRect(), a));
|
|
964
1024
|
}, [a]);
|
|
965
1025
|
l(() => {
|
|
966
1026
|
if (h) return C(), window.addEventListener("scroll", C, {
|
|
@@ -1004,9 +1064,9 @@ function Tt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
1004
1064
|
id: d,
|
|
1005
1065
|
role: "tooltip",
|
|
1006
1066
|
className: [
|
|
1007
|
-
|
|
1008
|
-
_ ?
|
|
1009
|
-
h && _ ?
|
|
1067
|
+
wt.tooltip,
|
|
1068
|
+
_ ? wt[_.placement] : null,
|
|
1069
|
+
h && _ ? wt.visible : null
|
|
1010
1070
|
].filter(Boolean).join(" "),
|
|
1011
1071
|
style: _ ? {
|
|
1012
1072
|
top: _.top,
|
|
@@ -1022,8 +1082,8 @@ function Tt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
1022
1082
|
}
|
|
1023
1083
|
//#endregion
|
|
1024
1084
|
//#region src/components/Sidebar/SidebarItem.tsx
|
|
1025
|
-
function
|
|
1026
|
-
let y =
|
|
1085
|
+
function Ot({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u, menuItems: d, onDrop: h, acceptTypes: g, className: _, ...v }) {
|
|
1086
|
+
let y = vt(), b = c(yt), x = a ?? o, S = y ? u ?? e : u, C = b.length > 0 && !e.toLowerCase().includes(b.toLowerCase()), [w, T] = p(!1), E = (e) => {
|
|
1027
1087
|
h && (g?.length && !g.some((t) => e.dataTransfer.types.includes(t)) || (e.preventDefault(), T(!0)));
|
|
1028
1088
|
}, D = () => T(!1), O = (e) => {
|
|
1029
1089
|
h && (e.preventDefault(), T(!1), h(e));
|
|
@@ -1090,7 +1150,7 @@ function Et({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
1090
1150
|
return /* @__PURE__ */ n("li", {
|
|
1091
1151
|
className: z.item,
|
|
1092
1152
|
hidden: C || void 0,
|
|
1093
|
-
children: [S ? /* @__PURE__ */ t(
|
|
1153
|
+
children: [S ? /* @__PURE__ */ t(Dt, {
|
|
1094
1154
|
label: S,
|
|
1095
1155
|
placement: "right",
|
|
1096
1156
|
children: I
|
|
@@ -1115,7 +1175,7 @@ function Et({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
1115
1175
|
}), document.body)]
|
|
1116
1176
|
});
|
|
1117
1177
|
}
|
|
1118
|
-
var
|
|
1178
|
+
var kt = {
|
|
1119
1179
|
spin: "_spin_7d4yi_3",
|
|
1120
1180
|
disabled: "_disabled_7d4yi_36",
|
|
1121
1181
|
btn: "_btn_7d4yi_43",
|
|
@@ -1123,15 +1183,15 @@ var Dt = {
|
|
|
1123
1183
|
};
|
|
1124
1184
|
//#endregion
|
|
1125
1185
|
//#region src/components/SpinButton/SpinButton.tsx
|
|
1126
|
-
function
|
|
1186
|
+
function At(e) {
|
|
1127
1187
|
let t = e.toString(), n = t.indexOf(".");
|
|
1128
1188
|
return n === -1 ? 0 : t.length - n - 1;
|
|
1129
1189
|
}
|
|
1130
|
-
function
|
|
1190
|
+
function jt(e, t, n) {
|
|
1131
1191
|
return Math.min(n, Math.max(t, e));
|
|
1132
1192
|
}
|
|
1133
|
-
function
|
|
1134
|
-
let m = c ??
|
|
1193
|
+
function Mt({ 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 }) {
|
|
1194
|
+
let m = c ?? At(o), h = s((e) => r(parseFloat(jt(e, i, a).toFixed(m))), [
|
|
1135
1195
|
r,
|
|
1136
1196
|
i,
|
|
1137
1197
|
a,
|
|
@@ -1175,8 +1235,8 @@ function At({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1175
1235
|
tabIndex: l ? -1 : 0,
|
|
1176
1236
|
onKeyDown: l ? void 0 : g,
|
|
1177
1237
|
className: [
|
|
1178
|
-
|
|
1179
|
-
l ?
|
|
1238
|
+
kt.spin,
|
|
1239
|
+
l ? kt.disabled : null,
|
|
1180
1240
|
u
|
|
1181
1241
|
].filter(Boolean).join(" "),
|
|
1182
1242
|
...p,
|
|
@@ -1186,12 +1246,12 @@ function At({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1186
1246
|
tabIndex: -1,
|
|
1187
1247
|
"aria-hidden": "true",
|
|
1188
1248
|
disabled: l || e <= i,
|
|
1189
|
-
className:
|
|
1249
|
+
className: kt.btn,
|
|
1190
1250
|
onClick: () => h(e - o),
|
|
1191
1251
|
children: "−"
|
|
1192
1252
|
}),
|
|
1193
1253
|
/* @__PURE__ */ t("span", {
|
|
1194
|
-
className:
|
|
1254
|
+
className: kt.value,
|
|
1195
1255
|
"aria-hidden": "true",
|
|
1196
1256
|
children: e.toFixed(m)
|
|
1197
1257
|
}),
|
|
@@ -1200,7 +1260,7 @@ function At({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1200
1260
|
tabIndex: -1,
|
|
1201
1261
|
"aria-hidden": "true",
|
|
1202
1262
|
disabled: l || e >= a,
|
|
1203
|
-
className:
|
|
1263
|
+
className: kt.btn,
|
|
1204
1264
|
onClick: () => h(e + o),
|
|
1205
1265
|
children: "+"
|
|
1206
1266
|
})
|
|
@@ -1220,7 +1280,7 @@ var B = {
|
|
|
1220
1280
|
};
|
|
1221
1281
|
//#endregion
|
|
1222
1282
|
//#region src/components/Tabs/TabBar.tsx
|
|
1223
|
-
function
|
|
1283
|
+
function Nt({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs", ...a }) {
|
|
1224
1284
|
let o = f(null);
|
|
1225
1285
|
function s(e) {
|
|
1226
1286
|
let t = Array.from(o.current?.querySelectorAll("[role=tab]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -1252,7 +1312,7 @@ function jt({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1252
1312
|
}
|
|
1253
1313
|
//#endregion
|
|
1254
1314
|
//#region src/components/Tabs/TabItem.tsx
|
|
1255
|
-
function
|
|
1315
|
+
function Pt({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLabel: s = "Close tab", className: c, disabled: l, ...u }) {
|
|
1256
1316
|
return /* @__PURE__ */ n("button", {
|
|
1257
1317
|
role: "tab",
|
|
1258
1318
|
type: "button",
|
|
@@ -1298,7 +1358,7 @@ function Mt({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1298
1358
|
}
|
|
1299
1359
|
//#endregion
|
|
1300
1360
|
//#region src/components/Tabs/TabPanel.tsx
|
|
1301
|
-
function
|
|
1361
|
+
function Ft({ id: e, active: n = !1, className: r, children: i, ...a }) {
|
|
1302
1362
|
return /* @__PURE__ */ t("div", {
|
|
1303
1363
|
id: e,
|
|
1304
1364
|
role: "tabpanel",
|
|
@@ -1322,7 +1382,7 @@ var V = {
|
|
|
1322
1382
|
};
|
|
1323
1383
|
//#endregion
|
|
1324
1384
|
//#region src/components/ActionRow/ActionRow.tsx
|
|
1325
|
-
function
|
|
1385
|
+
function It({ title: e, subtitle: r, leading: i, trailing: a, interactive: o = !1, variant: s = "default", className: c, ...l }) {
|
|
1326
1386
|
let u = o ? "button" : "div", d = s === "property";
|
|
1327
1387
|
return /* @__PURE__ */ n(u, {
|
|
1328
1388
|
className: [
|
|
@@ -1354,7 +1414,7 @@ function Pt({ title: e, subtitle: r, leading: i, trailing: a, interactive: o = !
|
|
|
1354
1414
|
]
|
|
1355
1415
|
});
|
|
1356
1416
|
}
|
|
1357
|
-
var
|
|
1417
|
+
var Lt = {
|
|
1358
1418
|
list: "_list_1m4lm_3",
|
|
1359
1419
|
item: "_item_1m4lm_16",
|
|
1360
1420
|
separate: "_separate_1m4lm_37",
|
|
@@ -1363,23 +1423,23 @@ var Ft = {
|
|
|
1363
1423
|
};
|
|
1364
1424
|
//#endregion
|
|
1365
1425
|
//#region src/components/BoxedList/BoxedList.tsx
|
|
1366
|
-
function
|
|
1426
|
+
function Rt({ children: e, variant: i = "default", className: a, ...o }) {
|
|
1367
1427
|
let s = r.toArray(e).filter(Boolean), c = i === "separate";
|
|
1368
1428
|
return /* @__PURE__ */ t("ul", {
|
|
1369
1429
|
role: "list",
|
|
1370
1430
|
className: [
|
|
1371
|
-
|
|
1372
|
-
c ?
|
|
1431
|
+
Lt.list,
|
|
1432
|
+
c ? Lt.separate : null,
|
|
1373
1433
|
a
|
|
1374
1434
|
].filter(Boolean).join(" "),
|
|
1375
1435
|
...o,
|
|
1376
1436
|
children: s.map((e, r) => /* @__PURE__ */ n("li", {
|
|
1377
|
-
className: c ?
|
|
1437
|
+
className: c ? Lt.separateItem : Lt.item,
|
|
1378
1438
|
children: [!c && r > 0 && /* @__PURE__ */ t(ie, { "aria-hidden": "true" }), e]
|
|
1379
1439
|
}, r))
|
|
1380
1440
|
});
|
|
1381
1441
|
}
|
|
1382
|
-
var
|
|
1442
|
+
var zt = {
|
|
1383
1443
|
switcher: "_switcher_1uh9r_3",
|
|
1384
1444
|
item: "_item_1uh9r_18",
|
|
1385
1445
|
active: "_active_1uh9r_45",
|
|
@@ -1388,7 +1448,7 @@ var Lt = {
|
|
|
1388
1448
|
};
|
|
1389
1449
|
//#endregion
|
|
1390
1450
|
//#region src/components/ViewSwitcher/ViewSwitcher.tsx
|
|
1391
|
-
function
|
|
1451
|
+
function Bt({ children: e, className: n, "aria-label": r = "View switcher", ...i }) {
|
|
1392
1452
|
let a = f(null);
|
|
1393
1453
|
function o(e) {
|
|
1394
1454
|
let t = Array.from(a.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -1406,14 +1466,14 @@ function Rt({ children: e, className: n, "aria-label": r = "View switcher", ...i
|
|
|
1406
1466
|
role: "radiogroup",
|
|
1407
1467
|
"aria-label": r,
|
|
1408
1468
|
onKeyDown: o,
|
|
1409
|
-
className: [
|
|
1469
|
+
className: [zt.switcher, n].filter(Boolean).join(" "),
|
|
1410
1470
|
...i,
|
|
1411
1471
|
children: e
|
|
1412
1472
|
});
|
|
1413
1473
|
}
|
|
1414
1474
|
//#endregion
|
|
1415
1475
|
//#region src/components/ViewSwitcher/ViewSwitcherItem.tsx
|
|
1416
|
-
function
|
|
1476
|
+
function Vt({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s }) {
|
|
1417
1477
|
return /* @__PURE__ */ n("button", {
|
|
1418
1478
|
type: "button",
|
|
1419
1479
|
role: "radio",
|
|
@@ -1421,40 +1481,40 @@ function zt({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s
|
|
|
1421
1481
|
tabIndex: i ? 0 : -1,
|
|
1422
1482
|
disabled: o,
|
|
1423
1483
|
className: [
|
|
1424
|
-
|
|
1425
|
-
i ?
|
|
1484
|
+
zt.item,
|
|
1485
|
+
i ? zt.active : null,
|
|
1426
1486
|
a
|
|
1427
1487
|
].filter(Boolean).join(" "),
|
|
1428
1488
|
...s,
|
|
1429
1489
|
children: [r && /* @__PURE__ */ t("span", {
|
|
1430
|
-
className:
|
|
1490
|
+
className: zt.itemIcon,
|
|
1431
1491
|
children: /* @__PURE__ */ t(L, {
|
|
1432
1492
|
icon: r,
|
|
1433
1493
|
size: "md",
|
|
1434
1494
|
"aria-hidden": !0
|
|
1435
1495
|
})
|
|
1436
1496
|
}), /* @__PURE__ */ t("span", {
|
|
1437
|
-
className:
|
|
1497
|
+
className: zt.itemLabel,
|
|
1438
1498
|
children: e
|
|
1439
1499
|
})]
|
|
1440
1500
|
});
|
|
1441
1501
|
}
|
|
1442
1502
|
//#endregion
|
|
1443
1503
|
//#region src/components/Toast/Toast.module.css
|
|
1444
|
-
var
|
|
1445
|
-
toaster:
|
|
1446
|
-
toasterBottom:
|
|
1447
|
-
toasterTop:
|
|
1448
|
-
toast:
|
|
1504
|
+
var Ht = "_toaster_1tgvb_3", Ut = "_toasterBottom_1tgvb_18", Wt = "_toasterTop_1tgvb_22", Gt = "_toast_1tgvb_3", Kt = "_title_1tgvb_69", qt = "_actions_1tgvb_76", Jt = "_actionBtn_1tgvb_85", Yt = "_dismissBtn_1tgvb_118", Xt = {
|
|
1505
|
+
toaster: Ht,
|
|
1506
|
+
toasterBottom: Ut,
|
|
1507
|
+
toasterTop: Wt,
|
|
1508
|
+
toast: Gt,
|
|
1449
1509
|
"toast-in": "_toast-in_1tgvb_1",
|
|
1450
|
-
title:
|
|
1451
|
-
actions:
|
|
1452
|
-
actionBtn:
|
|
1453
|
-
dismissBtn:
|
|
1510
|
+
title: Kt,
|
|
1511
|
+
actions: qt,
|
|
1512
|
+
actionBtn: Jt,
|
|
1513
|
+
dismissBtn: Yt
|
|
1454
1514
|
};
|
|
1455
1515
|
//#endregion
|
|
1456
1516
|
//#region src/components/Toast/Toast.tsx
|
|
1457
|
-
function
|
|
1517
|
+
function Zt({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onAction: o, dismissible: s = !1, className: c, ...u }) {
|
|
1458
1518
|
let d = f(null), p = f(r), m = f(0), h = () => {
|
|
1459
1519
|
d.current &&= (clearTimeout(d.current), null);
|
|
1460
1520
|
}, g = (e) => {
|
|
@@ -1475,31 +1535,31 @@ function Yt({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1475
1535
|
role: "status",
|
|
1476
1536
|
"aria-live": "polite",
|
|
1477
1537
|
"aria-atomic": "true",
|
|
1478
|
-
className: [
|
|
1538
|
+
className: [Xt.toast, c].filter(Boolean).join(" "),
|
|
1479
1539
|
onMouseEnter: _,
|
|
1480
1540
|
onMouseLeave: v,
|
|
1481
1541
|
onFocus: _,
|
|
1482
1542
|
onBlur: v,
|
|
1483
1543
|
...u,
|
|
1484
1544
|
children: [/* @__PURE__ */ t("span", {
|
|
1485
|
-
className:
|
|
1545
|
+
className: Xt.title,
|
|
1486
1546
|
children: e
|
|
1487
1547
|
}), (a || s) && /* @__PURE__ */ n("span", {
|
|
1488
|
-
className:
|
|
1548
|
+
className: Xt.actions,
|
|
1489
1549
|
children: [a && /* @__PURE__ */ t("button", {
|
|
1490
1550
|
type: "button",
|
|
1491
|
-
className:
|
|
1551
|
+
className: Xt.actionBtn,
|
|
1492
1552
|
onClick: y,
|
|
1493
1553
|
children: a
|
|
1494
1554
|
}), s && /* @__PURE__ */ t("button", {
|
|
1495
1555
|
type: "button",
|
|
1496
|
-
className:
|
|
1556
|
+
className: Xt.dismissBtn,
|
|
1497
1557
|
"aria-label": "Dismiss",
|
|
1498
1558
|
onClick: () => {
|
|
1499
1559
|
h(), i?.();
|
|
1500
1560
|
},
|
|
1501
1561
|
children: /* @__PURE__ */ t(L, {
|
|
1502
|
-
icon:
|
|
1562
|
+
icon: Ie,
|
|
1503
1563
|
size: "md",
|
|
1504
1564
|
"aria-hidden": !0
|
|
1505
1565
|
})
|
|
@@ -1509,12 +1569,12 @@ function Yt({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1509
1569
|
}
|
|
1510
1570
|
//#endregion
|
|
1511
1571
|
//#region src/components/Toast/Toaster.tsx
|
|
1512
|
-
function
|
|
1572
|
+
function Qt({ position: e = "bottom", children: n, container: r, className: i, ...a }) {
|
|
1513
1573
|
let o = /* @__PURE__ */ t("div", {
|
|
1514
1574
|
"aria-label": "Notifications",
|
|
1515
1575
|
className: [
|
|
1516
|
-
|
|
1517
|
-
e === "top" ?
|
|
1576
|
+
Xt.toaster,
|
|
1577
|
+
e === "top" ? Xt.toasterTop : Xt.toasterBottom,
|
|
1518
1578
|
i
|
|
1519
1579
|
].filter(Boolean).join(" "),
|
|
1520
1580
|
...a,
|
|
@@ -1524,57 +1584,57 @@ function Xt({ position: e = "bottom", children: n, container: r, className: i, .
|
|
|
1524
1584
|
}
|
|
1525
1585
|
//#endregion
|
|
1526
1586
|
//#region src/components/Dialog/Dialog.module.css
|
|
1527
|
-
var
|
|
1528
|
-
backdrop:
|
|
1587
|
+
var $t = "_backdrop_bx9wz_3", en = "_dialog_bx9wz_26", tn = "_title_bx9wz_56", nn = "_body_bx9wz_68", rn = "_footer_bx9wz_89", an = "_btn_bx9wz_96", on = "_dialogAbout_bx9wz_159", sn = "_aboutHeader_bx9wz_166", cn = "_aboutIcon_bx9wz_175", ln = "_aboutAppName_bx9wz_184", un = "_aboutVersion_bx9wz_191", dn = "_aboutTabBar_bx9wz_198", fn = "_aboutTabBtn_bx9wz_205", pn = "_aboutTabBtnActive_bx9wz_224", mn = "_aboutTabContent_bx9wz_237", hn = "_aboutSection_bx9wz_242", gn = "_aboutComments_bx9wz_247", _n = "_aboutInfoList_bx9wz_256", vn = "_aboutInfoLabel_bx9wz_263", yn = "_aboutInfoValue_bx9wz_271", bn = "_aboutLink_bx9wz_279", xn = "_aboutCreditGroup_bx9wz_287", Sn = "_aboutCreditTitle_bx9wz_291", Cn = "_aboutCreditList_bx9wz_301", wn = "_aboutCreditItem_bx9wz_310", Tn = "_aboutCopyright_bx9wz_316", En = "_aboutLicenseType_bx9wz_323", Dn = "_aboutLicenseText_bx9wz_330", H = {
|
|
1588
|
+
backdrop: $t,
|
|
1529
1589
|
"backdrop-in": "_backdrop-in_bx9wz_1",
|
|
1530
|
-
dialog:
|
|
1590
|
+
dialog: en,
|
|
1531
1591
|
"dialog-in": "_dialog-in_bx9wz_1",
|
|
1532
|
-
title:
|
|
1533
|
-
body:
|
|
1534
|
-
footer:
|
|
1535
|
-
btn:
|
|
1592
|
+
title: tn,
|
|
1593
|
+
body: nn,
|
|
1594
|
+
footer: rn,
|
|
1595
|
+
btn: an,
|
|
1536
1596
|
"btn-default": "_btn-default_bx9wz_144",
|
|
1537
1597
|
"btn-suggested": "_btn-suggested_bx9wz_148",
|
|
1538
1598
|
"btn-destructive": "_btn-destructive_bx9wz_153",
|
|
1539
|
-
dialogAbout:
|
|
1540
|
-
aboutHeader:
|
|
1541
|
-
aboutIcon:
|
|
1542
|
-
aboutAppName:
|
|
1543
|
-
aboutVersion:
|
|
1544
|
-
aboutTabBar:
|
|
1545
|
-
aboutTabBtn:
|
|
1546
|
-
aboutTabBtnActive:
|
|
1547
|
-
aboutTabContent:
|
|
1548
|
-
aboutSection:
|
|
1549
|
-
aboutComments:
|
|
1550
|
-
aboutInfoList:
|
|
1551
|
-
aboutInfoLabel:
|
|
1552
|
-
aboutInfoValue:
|
|
1553
|
-
aboutLink:
|
|
1554
|
-
aboutCreditGroup:
|
|
1555
|
-
aboutCreditTitle:
|
|
1556
|
-
aboutCreditList:
|
|
1557
|
-
aboutCreditItem:
|
|
1558
|
-
aboutCopyright:
|
|
1559
|
-
aboutLicenseType:
|
|
1560
|
-
aboutLicenseText:
|
|
1561
|
-
},
|
|
1562
|
-
function
|
|
1599
|
+
dialogAbout: on,
|
|
1600
|
+
aboutHeader: sn,
|
|
1601
|
+
aboutIcon: cn,
|
|
1602
|
+
aboutAppName: ln,
|
|
1603
|
+
aboutVersion: un,
|
|
1604
|
+
aboutTabBar: dn,
|
|
1605
|
+
aboutTabBtn: fn,
|
|
1606
|
+
aboutTabBtnActive: pn,
|
|
1607
|
+
aboutTabContent: mn,
|
|
1608
|
+
aboutSection: hn,
|
|
1609
|
+
aboutComments: gn,
|
|
1610
|
+
aboutInfoList: _n,
|
|
1611
|
+
aboutInfoLabel: vn,
|
|
1612
|
+
aboutInfoValue: yn,
|
|
1613
|
+
aboutLink: bn,
|
|
1614
|
+
aboutCreditGroup: xn,
|
|
1615
|
+
aboutCreditTitle: Sn,
|
|
1616
|
+
aboutCreditList: Cn,
|
|
1617
|
+
aboutCreditItem: wn,
|
|
1618
|
+
aboutCopyright: Tn,
|
|
1619
|
+
aboutLicenseType: En,
|
|
1620
|
+
aboutLicenseText: Dn
|
|
1621
|
+
}, On = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1622
|
+
function kn(e, t) {
|
|
1563
1623
|
if (e.key !== "Tab") return;
|
|
1564
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
1624
|
+
let n = Array.from(t.current?.querySelectorAll(On) ?? []);
|
|
1565
1625
|
if (!n.length) return;
|
|
1566
1626
|
let r = n[0], i = n[n.length - 1];
|
|
1567
1627
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
1568
1628
|
}
|
|
1569
|
-
var
|
|
1629
|
+
var An = {
|
|
1570
1630
|
details: "Details",
|
|
1571
1631
|
credits: "Credits",
|
|
1572
1632
|
legal: "Legal"
|
|
1573
1633
|
};
|
|
1574
|
-
function
|
|
1634
|
+
function jn({ open: r, title: i, children: a, buttons: o = [], onClose: c, closeOnBackdrop: d = !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 }) {
|
|
1575
1635
|
let F = f(null), I = u(), ee = f(null), [te, ne] = p("details"), re = !!g, ie = v === "about";
|
|
1576
1636
|
l(() => {
|
|
1577
|
-
r ? (ee.current = document.activeElement, (F.current?.querySelector(
|
|
1637
|
+
r ? (ee.current = document.activeElement, (F.current?.querySelector(On))?.focus()) : (ee.current?.focus(), ie && ne("details"));
|
|
1578
1638
|
}, [r, ie]);
|
|
1579
1639
|
let ae = s(() => {
|
|
1580
1640
|
let e = g?.find((e) => e.variant !== "destructive" && !e.disabled);
|
|
@@ -1584,7 +1644,7 @@ function kn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1584
1644
|
e.preventDefault(), re ? ae() : c?.();
|
|
1585
1645
|
return;
|
|
1586
1646
|
}
|
|
1587
|
-
|
|
1647
|
+
kn(e, F);
|
|
1588
1648
|
}, [
|
|
1589
1649
|
re,
|
|
1590
1650
|
ae,
|
|
@@ -1649,7 +1709,7 @@ function kn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1649
1709
|
"aria-selected": te === e,
|
|
1650
1710
|
className: [H.aboutTabBtn, te === e ? H.aboutTabBtnActive : null].filter(Boolean).join(" "),
|
|
1651
1711
|
onClick: () => ne(e),
|
|
1652
|
-
children:
|
|
1712
|
+
children: An[e]
|
|
1653
1713
|
}, e))
|
|
1654
1714
|
}),
|
|
1655
1715
|
/* @__PURE__ */ n("div", {
|
|
@@ -1778,31 +1838,31 @@ function kn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1778
1838
|
}
|
|
1779
1839
|
//#endregion
|
|
1780
1840
|
//#region src/components/Dropdown/Dropdown.module.css
|
|
1781
|
-
var
|
|
1782
|
-
wrapper:
|
|
1783
|
-
trigger:
|
|
1784
|
-
triggerOpen:
|
|
1785
|
-
triggerLabel:
|
|
1786
|
-
placeholder:
|
|
1787
|
-
chevron:
|
|
1788
|
-
chevronOpen:
|
|
1789
|
-
list:
|
|
1841
|
+
var Mn = "_wrapper_1hi05_3", Nn = "_trigger_1hi05_11", Pn = "_triggerOpen_1hi05_63", Fn = "_triggerLabel_1hi05_73", In = "_placeholder_1hi05_81", Ln = "_chevron_1hi05_87", Rn = "_chevronOpen_1hi05_94", zn = "_list_1hi05_100", Bn = "_listDown_1hi05_129", Vn = "_listUp_1hi05_133", Hn = "_option_1hi05_145", Un = "_optionActive_1hi05_162", Wn = "_optionSelected_1hi05_166", Gn = "_optionDisabled_1hi05_170", Kn = "_optionText_1hi05_178", qn = "_optionLabel_1hi05_186", Jn = "_optionDesc_1hi05_192", Yn = "_checkIcon_1hi05_202", U = {
|
|
1842
|
+
wrapper: Mn,
|
|
1843
|
+
trigger: Nn,
|
|
1844
|
+
triggerOpen: Pn,
|
|
1845
|
+
triggerLabel: Fn,
|
|
1846
|
+
placeholder: In,
|
|
1847
|
+
chevron: Ln,
|
|
1848
|
+
chevronOpen: Rn,
|
|
1849
|
+
list: zn,
|
|
1790
1850
|
"list-in": "_list-in_1hi05_1",
|
|
1791
|
-
listDown:
|
|
1792
|
-
listUp:
|
|
1851
|
+
listDown: Bn,
|
|
1852
|
+
listUp: Vn,
|
|
1793
1853
|
"list-in-up": "_list-in-up_1hi05_1",
|
|
1794
|
-
option:
|
|
1795
|
-
optionActive:
|
|
1796
|
-
optionSelected:
|
|
1797
|
-
optionDisabled:
|
|
1798
|
-
optionText:
|
|
1799
|
-
optionLabel:
|
|
1800
|
-
optionDesc:
|
|
1801
|
-
checkIcon:
|
|
1854
|
+
option: Hn,
|
|
1855
|
+
optionActive: Un,
|
|
1856
|
+
optionSelected: Wn,
|
|
1857
|
+
optionDisabled: Gn,
|
|
1858
|
+
optionText: Kn,
|
|
1859
|
+
optionLabel: qn,
|
|
1860
|
+
optionDesc: Jn,
|
|
1861
|
+
checkIcon: Yn
|
|
1802
1862
|
};
|
|
1803
1863
|
//#endregion
|
|
1804
1864
|
//#region src/components/Dropdown/Dropdown.tsx
|
|
1805
|
-
function
|
|
1865
|
+
function Xn({ options: e, value: r, onChange: i, placeholder: a = "Select an option", disabled: o, className: c, ...d }) {
|
|
1806
1866
|
let [m, h] = p(!1), [g, _] = p(-1), [v, y] = p(!1), b = u(), x = u(), S = f(null), C = f(null), w = e.find((e) => e.value === r), T = s(() => {
|
|
1807
1867
|
if (!S.current) return;
|
|
1808
1868
|
let t = S.current.getBoundingClientRect(), n = window.innerHeight - t.bottom, r = Math.min(e.length * 48 + 8, 280);
|
|
@@ -1905,7 +1965,7 @@ function Jn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1905
1965
|
className: [U.triggerLabel, w ? null : U.placeholder].filter(Boolean).join(" "),
|
|
1906
1966
|
children: w?.label ?? a
|
|
1907
1967
|
}), /* @__PURE__ */ t(L, {
|
|
1908
|
-
icon:
|
|
1968
|
+
icon: Fe,
|
|
1909
1969
|
size: "md",
|
|
1910
1970
|
"aria-hidden": !0,
|
|
1911
1971
|
className: [U.chevron, m ? U.chevronOpen : null].filter(Boolean).join(" ")
|
|
@@ -1941,7 +2001,7 @@ function Jn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1941
2001
|
children: e.description
|
|
1942
2002
|
})]
|
|
1943
2003
|
}), e.value === r && /* @__PURE__ */ t(L, {
|
|
1944
|
-
icon:
|
|
2004
|
+
icon: Be,
|
|
1945
2005
|
size: "md",
|
|
1946
2006
|
"aria-hidden": !0,
|
|
1947
2007
|
className: U.checkIcon
|
|
@@ -1950,7 +2010,7 @@ function Jn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1950
2010
|
})]
|
|
1951
2011
|
});
|
|
1952
2012
|
}
|
|
1953
|
-
var
|
|
2013
|
+
var Zn = {
|
|
1954
2014
|
wrapper: "_wrapper_11zhs_3",
|
|
1955
2015
|
hasLabels: "_hasLabels_11zhs_11",
|
|
1956
2016
|
track: "_track_11zhs_17",
|
|
@@ -1963,21 +2023,21 @@ var Yn = {
|
|
|
1963
2023
|
};
|
|
1964
2024
|
//#endregion
|
|
1965
2025
|
//#region src/components/Slider/Slider.tsx
|
|
1966
|
-
function
|
|
2026
|
+
function Qn(e, t, n) {
|
|
1967
2027
|
return Math.min(n, Math.max(t, e));
|
|
1968
2028
|
}
|
|
1969
|
-
function
|
|
2029
|
+
function $n(e, t, n, r) {
|
|
1970
2030
|
return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
|
|
1971
2031
|
}
|
|
1972
|
-
function
|
|
2032
|
+
function er(e) {
|
|
1973
2033
|
let t = e.toString(), n = t.indexOf(".");
|
|
1974
2034
|
return n === -1 ? 0 : t.length - n - 1;
|
|
1975
2035
|
}
|
|
1976
|
-
function
|
|
1977
|
-
let g = f(null), _ =
|
|
2036
|
+
function tr({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disabled: c = !1, marks: l, className: u, "aria-label": d, "aria-labelledby": p, "aria-describedby": m, ...h }) {
|
|
2037
|
+
let g = f(null), _ = er(o), v = (Qn(e, i, a) - i) / (a - i) * 100, y = s((e) => {
|
|
1978
2038
|
if (!g.current) return;
|
|
1979
2039
|
let { left: t, width: n } = g.current.getBoundingClientRect();
|
|
1980
|
-
r(
|
|
2040
|
+
r(Qn($n((e - t) / n * (a - i) + i, i, o, _), i, a));
|
|
1981
2041
|
}, [
|
|
1982
2042
|
i,
|
|
1983
2043
|
a,
|
|
@@ -1990,7 +2050,7 @@ function $n({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1990
2050
|
e.currentTarget.hasPointerCapture(e.pointerId) && y(e.clientX);
|
|
1991
2051
|
}, [y]), S = s((t) => {
|
|
1992
2052
|
let n = (e) => {
|
|
1993
|
-
t.preventDefault(), r(
|
|
2053
|
+
t.preventDefault(), r(Qn($n(e, i, o, _), i, a));
|
|
1994
2054
|
};
|
|
1995
2055
|
switch (t.key) {
|
|
1996
2056
|
case "ArrowRight":
|
|
@@ -2024,8 +2084,8 @@ function $n({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
2024
2084
|
]), C = l && l.length > 0, w = C && l.some((e) => e.label);
|
|
2025
2085
|
return /* @__PURE__ */ n("div", {
|
|
2026
2086
|
className: [
|
|
2027
|
-
|
|
2028
|
-
w ?
|
|
2087
|
+
Zn.wrapper,
|
|
2088
|
+
w ? Zn.hasLabels : null,
|
|
2029
2089
|
u
|
|
2030
2090
|
].filter(Boolean).join(" "),
|
|
2031
2091
|
...h,
|
|
@@ -2040,36 +2100,36 @@ function $n({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
2040
2100
|
"aria-labelledby": p,
|
|
2041
2101
|
"aria-describedby": m,
|
|
2042
2102
|
"aria-disabled": c || void 0,
|
|
2043
|
-
className: [
|
|
2103
|
+
className: [Zn.track, c ? Zn.disabled : null].filter(Boolean).join(" "),
|
|
2044
2104
|
onPointerDown: b,
|
|
2045
2105
|
onPointerMove: x,
|
|
2046
2106
|
onKeyDown: c ? void 0 : S,
|
|
2047
2107
|
children: [
|
|
2048
2108
|
/* @__PURE__ */ t("div", {
|
|
2049
|
-
className:
|
|
2109
|
+
className: Zn.fill,
|
|
2050
2110
|
style: { width: `${v}%` }
|
|
2051
2111
|
}),
|
|
2052
2112
|
/* @__PURE__ */ t("div", {
|
|
2053
|
-
className:
|
|
2113
|
+
className: Zn.thumb,
|
|
2054
2114
|
style: { left: `${v}%` },
|
|
2055
2115
|
"aria-hidden": "true"
|
|
2056
2116
|
}),
|
|
2057
2117
|
C && l.map((e) => {
|
|
2058
|
-
let n = (
|
|
2118
|
+
let n = (Qn(e.value, i, a) - i) / (a - i) * 100;
|
|
2059
2119
|
return /* @__PURE__ */ t("div", {
|
|
2060
|
-
className:
|
|
2120
|
+
className: Zn.tick,
|
|
2061
2121
|
style: { left: `${n}%` },
|
|
2062
2122
|
"aria-hidden": "true"
|
|
2063
2123
|
}, e.value);
|
|
2064
2124
|
})
|
|
2065
2125
|
]
|
|
2066
2126
|
}), w && /* @__PURE__ */ t("div", {
|
|
2067
|
-
className:
|
|
2127
|
+
className: Zn.labels,
|
|
2068
2128
|
"aria-hidden": "true",
|
|
2069
2129
|
children: l.map((e) => {
|
|
2070
|
-
let n = (
|
|
2130
|
+
let n = (Qn(e.value, i, a) - i) / (a - i) * 100;
|
|
2071
2131
|
return /* @__PURE__ */ t("span", {
|
|
2072
|
-
className:
|
|
2132
|
+
className: Zn.markLabel,
|
|
2073
2133
|
style: { left: `${n}%` },
|
|
2074
2134
|
children: e.label
|
|
2075
2135
|
}, e.value);
|
|
@@ -2077,7 +2137,7 @@ function $n({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
2077
2137
|
})]
|
|
2078
2138
|
});
|
|
2079
2139
|
}
|
|
2080
|
-
var
|
|
2140
|
+
var nr = {
|
|
2081
2141
|
panel: "_panel_1tk9v_3",
|
|
2082
2142
|
visible: "_visible_1tk9v_36",
|
|
2083
2143
|
arrow: "_arrow_1tk9v_44",
|
|
@@ -2085,8 +2145,8 @@ var er = {
|
|
|
2085
2145
|
top: "_top_1tk9v_67",
|
|
2086
2146
|
left: "_left_1tk9v_75",
|
|
2087
2147
|
right: "_right_1tk9v_83"
|
|
2088
|
-
},
|
|
2089
|
-
function
|
|
2148
|
+
}, rr = 8, W = 10, ir = 6;
|
|
2149
|
+
function ar(e, t, n) {
|
|
2090
2150
|
let r = window.innerWidth, i = window.innerHeight, a = [...new Set([
|
|
2091
2151
|
n,
|
|
2092
2152
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -2097,17 +2157,17 @@ function rr(e, t, n) {
|
|
|
2097
2157
|
])];
|
|
2098
2158
|
function o(n) {
|
|
2099
2159
|
return n === "bottom" ? {
|
|
2100
|
-
top: e.bottom +
|
|
2160
|
+
top: e.bottom + rr,
|
|
2101
2161
|
left: e.left + e.width / 2 - t.width / 2
|
|
2102
2162
|
} : n === "top" ? {
|
|
2103
|
-
top: e.top - t.height -
|
|
2163
|
+
top: e.top - t.height - rr,
|
|
2104
2164
|
left: e.left + e.width / 2 - t.width / 2
|
|
2105
2165
|
} : n === "left" ? {
|
|
2106
2166
|
top: e.top + e.height / 2 - t.height / 2,
|
|
2107
|
-
left: e.left - t.width -
|
|
2167
|
+
left: e.left - t.width - rr
|
|
2108
2168
|
} : {
|
|
2109
2169
|
top: e.top + e.height / 2 - t.height / 2,
|
|
2110
|
-
left: e.right +
|
|
2170
|
+
left: e.right + rr
|
|
2111
2171
|
};
|
|
2112
2172
|
}
|
|
2113
2173
|
for (let n of a) {
|
|
@@ -2127,7 +2187,7 @@ function rr(e, t, n) {
|
|
|
2127
2187
|
top: a,
|
|
2128
2188
|
left: i,
|
|
2129
2189
|
placement: n,
|
|
2130
|
-
arrowOffset: Math.max(
|
|
2190
|
+
arrowOffset: Math.max(ir + 4, Math.min(o, t.width - ir - 4))
|
|
2131
2191
|
};
|
|
2132
2192
|
}
|
|
2133
2193
|
if ((n === "left" || n === "right") && l) {
|
|
@@ -2136,19 +2196,19 @@ function rr(e, t, n) {
|
|
|
2136
2196
|
top: r,
|
|
2137
2197
|
left: s,
|
|
2138
2198
|
placement: n,
|
|
2139
|
-
arrowOffset: Math.max(
|
|
2199
|
+
arrowOffset: Math.max(ir + 4, Math.min(o, t.height - ir - 4))
|
|
2140
2200
|
};
|
|
2141
2201
|
}
|
|
2142
2202
|
}
|
|
2143
|
-
let s = e.bottom +
|
|
2203
|
+
let s = e.bottom + rr, c = e.left + e.width / 2 - t.width / 2, l = Math.max(W, Math.min(s, i - t.height - W)), u = Math.max(W, Math.min(c, r - t.width - W)), d = e.left + e.width / 2 - u;
|
|
2144
2204
|
return {
|
|
2145
2205
|
top: l,
|
|
2146
2206
|
left: u,
|
|
2147
2207
|
placement: "bottom",
|
|
2148
|
-
arrowOffset: Math.max(
|
|
2208
|
+
arrowOffset: Math.max(ir + 4, Math.min(d, t.width - ir - 4))
|
|
2149
2209
|
};
|
|
2150
2210
|
}
|
|
2151
|
-
function
|
|
2211
|
+
function or({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenChange: d, children: h }) {
|
|
2152
2212
|
let g = o !== void 0, [_, v] = p(!1), y = g ? o : _, [b, x] = p(null), S = u(), C = u(), w = f(null), T = f(null), E = f(null), D = s(() => {
|
|
2153
2213
|
g ? c?.() : v(!1), d?.(!1);
|
|
2154
2214
|
}, [
|
|
@@ -2163,7 +2223,7 @@ function ir({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2163
2223
|
g,
|
|
2164
2224
|
d
|
|
2165
2225
|
]), k = s(() => {
|
|
2166
|
-
!w.current || !T.current || x(
|
|
2226
|
+
!w.current || !T.current || x(ar(w.current.getBoundingClientRect(), T.current.getBoundingClientRect(), a));
|
|
2167
2227
|
}, [a]);
|
|
2168
2228
|
l(() => {
|
|
2169
2229
|
if (!y) return;
|
|
@@ -2205,9 +2265,9 @@ function ir({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2205
2265
|
"aria-labelledby": S,
|
|
2206
2266
|
tabIndex: -1,
|
|
2207
2267
|
className: [
|
|
2208
|
-
|
|
2209
|
-
b ?
|
|
2210
|
-
y && b ?
|
|
2268
|
+
nr.panel,
|
|
2269
|
+
b ? nr[b.placement] : null,
|
|
2270
|
+
y && b ? nr.visible : null
|
|
2211
2271
|
].filter(Boolean).join(" "),
|
|
2212
2272
|
style: b ? {
|
|
2213
2273
|
top: b.top,
|
|
@@ -2220,25 +2280,25 @@ function ir({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2220
2280
|
},
|
|
2221
2281
|
onKeyDown: A,
|
|
2222
2282
|
children: [/* @__PURE__ */ t("div", {
|
|
2223
|
-
className:
|
|
2283
|
+
className: nr.arrow,
|
|
2224
2284
|
"aria-hidden": "true",
|
|
2225
2285
|
style: b?.arrowOffset === void 0 ? void 0 : b.placement === "top" || b.placement === "bottom" ? {
|
|
2226
|
-
left: b.arrowOffset -
|
|
2286
|
+
left: b.arrowOffset - ir,
|
|
2227
2287
|
marginLeft: 0
|
|
2228
2288
|
} : {
|
|
2229
|
-
top: b.arrowOffset -
|
|
2289
|
+
top: b.arrowOffset - ir,
|
|
2230
2290
|
marginTop: 0
|
|
2231
2291
|
}
|
|
2232
2292
|
}), r]
|
|
2233
2293
|
});
|
|
2234
2294
|
return /* @__PURE__ */ n(e, { children: [j, y && (typeof document < "u" ? m(M, document.body) : M)] });
|
|
2235
2295
|
}
|
|
2236
|
-
var
|
|
2296
|
+
var sr = { clamp: "_clamp_1j51b_6" };
|
|
2237
2297
|
//#endregion
|
|
2238
2298
|
//#region src/components/Clamp/Clamp.tsx
|
|
2239
|
-
function
|
|
2299
|
+
function cr({ maximumSize: e = 600, children: n, className: r, style: i, ...a }) {
|
|
2240
2300
|
return /* @__PURE__ */ t("div", {
|
|
2241
|
-
className: [
|
|
2301
|
+
className: [sr.clamp, r].filter(Boolean).join(" "),
|
|
2242
2302
|
style: {
|
|
2243
2303
|
maxWidth: e,
|
|
2244
2304
|
...i
|
|
@@ -2259,8 +2319,8 @@ var G = {
|
|
|
2259
2319
|
};
|
|
2260
2320
|
//#endregion
|
|
2261
2321
|
//#region src/components/NavigationSplitView/NavigationSplitView.tsx
|
|
2262
|
-
function
|
|
2263
|
-
let { isNarrow: d } =
|
|
2322
|
+
function lr({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a = 180, maxSidebarWidth: o = 280, sidebarWidthFraction: s = .25, className: c, style: l, ...u }) {
|
|
2323
|
+
let { isNarrow: d } = Ge(), f = `clamp(${a}px, ${s * 100}%, ${o}px)`;
|
|
2264
2324
|
return /* @__PURE__ */ n("div", {
|
|
2265
2325
|
className: [
|
|
2266
2326
|
G.root,
|
|
@@ -2306,8 +2366,8 @@ var K = {
|
|
|
2306
2366
|
};
|
|
2307
2367
|
//#endregion
|
|
2308
2368
|
//#region src/components/OverlaySplitView/OverlaySplitView.tsx
|
|
2309
|
-
function
|
|
2310
|
-
let { isNarrow: g } =
|
|
2369
|
+
function ur({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, collapsed: o = !1, sidebarPosition: s = "start", minSidebarWidth: c = 180, maxSidebarWidth: u = 280, sidebarWidthFraction: d = .25, className: p, style: m, ...h }) {
|
|
2370
|
+
let { isNarrow: g } = Ge(), _ = f(null), v = `clamp(${c}px, ${d * 100}%, ${u}px)`;
|
|
2311
2371
|
l(() => {
|
|
2312
2372
|
if (!g || !i) return;
|
|
2313
2373
|
let e = (e) => {
|
|
@@ -2372,52 +2432,52 @@ function cr({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, collapsed
|
|
|
2372
2432
|
]
|
|
2373
2433
|
});
|
|
2374
2434
|
}
|
|
2375
|
-
var
|
|
2435
|
+
var dr = { bar: "_bar_njcvu_3" };
|
|
2376
2436
|
//#endregion
|
|
2377
2437
|
//#region src/components/ViewSwitcherBar/ViewSwitcherBar.tsx
|
|
2378
|
-
function
|
|
2438
|
+
function fr({ children: e, reveal: n = !0, className: r, ...i }) {
|
|
2379
2439
|
return n ? /* @__PURE__ */ t("div", {
|
|
2380
2440
|
role: "navigation",
|
|
2381
2441
|
"aria-label": "Bottom navigation",
|
|
2382
|
-
className: [
|
|
2442
|
+
className: [dr.bar, r].filter(Boolean).join(" "),
|
|
2383
2443
|
...i,
|
|
2384
2444
|
children: e
|
|
2385
2445
|
}) : null;
|
|
2386
2446
|
}
|
|
2387
|
-
var
|
|
2447
|
+
var pr = {
|
|
2388
2448
|
link: "_link_x1qyh_1",
|
|
2389
2449
|
externalIcon: "_externalIcon_x1qyh_36"
|
|
2390
2450
|
};
|
|
2391
2451
|
//#endregion
|
|
2392
2452
|
//#region src/components/Link/Link.tsx
|
|
2393
|
-
function
|
|
2453
|
+
function mr({ external: e = !1, children: r, className: i, target: a, rel: o, ...s }) {
|
|
2394
2454
|
let c = e || a === "_blank";
|
|
2395
2455
|
return /* @__PURE__ */ n("a", {
|
|
2396
|
-
className: [
|
|
2456
|
+
className: [pr.link, i].filter(Boolean).join(" "),
|
|
2397
2457
|
target: c ? "_blank" : a,
|
|
2398
2458
|
rel: c ? "noopener noreferrer" : o,
|
|
2399
2459
|
...s,
|
|
2400
2460
|
children: [r, c && /* @__PURE__ */ t("span", {
|
|
2401
|
-
className:
|
|
2461
|
+
className: pr.externalIcon,
|
|
2402
2462
|
"aria-label": "(opens in new tab)",
|
|
2403
2463
|
children: "↗"
|
|
2404
2464
|
})]
|
|
2405
2465
|
});
|
|
2406
2466
|
}
|
|
2407
|
-
var
|
|
2467
|
+
var hr = {
|
|
2408
2468
|
group: "_group_1fa3l_3",
|
|
2409
2469
|
item: "_item_1fa3l_18",
|
|
2410
2470
|
iconOnly: "_iconOnly_1fa3l_48",
|
|
2411
2471
|
active: "_active_1fa3l_53",
|
|
2412
2472
|
itemIcon: "_itemIcon_1fa3l_86",
|
|
2413
2473
|
itemLabel: "_itemLabel_1fa3l_92"
|
|
2414
|
-
},
|
|
2415
|
-
function
|
|
2416
|
-
let e = c(
|
|
2474
|
+
}, gr = a(null);
|
|
2475
|
+
function _r() {
|
|
2476
|
+
let e = c(gr);
|
|
2417
2477
|
if (!e) throw Error("ToggleGroupItem must be used inside ToggleGroup");
|
|
2418
2478
|
return e;
|
|
2419
2479
|
}
|
|
2420
|
-
function
|
|
2480
|
+
function vr({ value: e, onValueChange: n, "aria-label": r = "Options", children: i, className: a, ...o }) {
|
|
2421
2481
|
let s = f(null);
|
|
2422
2482
|
function c(e) {
|
|
2423
2483
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2430,7 +2490,7 @@ function gr({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2430
2490
|
else return;
|
|
2431
2491
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2432
2492
|
}
|
|
2433
|
-
return /* @__PURE__ */ t(
|
|
2493
|
+
return /* @__PURE__ */ t(gr.Provider, {
|
|
2434
2494
|
value: {
|
|
2435
2495
|
value: e,
|
|
2436
2496
|
onValueChange: n
|
|
@@ -2440,7 +2500,7 @@ function gr({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2440
2500
|
role: "radiogroup",
|
|
2441
2501
|
"aria-label": r,
|
|
2442
2502
|
onKeyDown: c,
|
|
2443
|
-
className: [
|
|
2503
|
+
className: [hr.group, a].filter(Boolean).join(" "),
|
|
2444
2504
|
...o,
|
|
2445
2505
|
children: i
|
|
2446
2506
|
})
|
|
@@ -2448,8 +2508,8 @@ function gr({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2448
2508
|
}
|
|
2449
2509
|
//#endregion
|
|
2450
2510
|
//#region src/components/ToggleGroup/ToggleGroupItem.tsx
|
|
2451
|
-
function
|
|
2452
|
-
let { value: c, onValueChange: l } =
|
|
2511
|
+
function yr({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
2512
|
+
let { value: c, onValueChange: l } = _r(), u = c === e, d = i && !r;
|
|
2453
2513
|
return /* @__PURE__ */ n("button", {
|
|
2454
2514
|
type: "button",
|
|
2455
2515
|
role: "radio",
|
|
@@ -2458,28 +2518,28 @@ function _r({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
2458
2518
|
disabled: a,
|
|
2459
2519
|
onClick: () => l(e),
|
|
2460
2520
|
className: [
|
|
2461
|
-
|
|
2462
|
-
u ?
|
|
2463
|
-
d ?
|
|
2521
|
+
hr.item,
|
|
2522
|
+
u ? hr.active : null,
|
|
2523
|
+
d ? hr.iconOnly : null,
|
|
2464
2524
|
o
|
|
2465
2525
|
].filter(Boolean).join(" "),
|
|
2466
2526
|
...s,
|
|
2467
2527
|
children: [i && /* @__PURE__ */ t("span", {
|
|
2468
|
-
className:
|
|
2528
|
+
className: hr.itemIcon,
|
|
2469
2529
|
children: /* @__PURE__ */ t(L, {
|
|
2470
2530
|
icon: i,
|
|
2471
2531
|
size: "md",
|
|
2472
2532
|
"aria-hidden": !0
|
|
2473
2533
|
})
|
|
2474
2534
|
}), r && /* @__PURE__ */ t("span", {
|
|
2475
|
-
className:
|
|
2535
|
+
className: hr.itemLabel,
|
|
2476
2536
|
children: r
|
|
2477
2537
|
})]
|
|
2478
2538
|
});
|
|
2479
2539
|
}
|
|
2480
2540
|
//#endregion
|
|
2481
2541
|
//#region src/components/Box/Box.tsx
|
|
2482
|
-
function
|
|
2542
|
+
function br({ orientation: e = "vertical", spacing: n = 6, align: r, justify: i = "start", className: a, style: o, children: s, ...c }) {
|
|
2483
2543
|
let l = e === "horizontal" ? "center" : "stretch";
|
|
2484
2544
|
return /* @__PURE__ */ t("div", {
|
|
2485
2545
|
className: a,
|
|
@@ -2495,13 +2555,13 @@ function vr({ orientation: e = "vertical", spacing: n = 6, align: r, justify: i
|
|
|
2495
2555
|
children: s
|
|
2496
2556
|
});
|
|
2497
2557
|
}
|
|
2498
|
-
var
|
|
2558
|
+
var xr = {
|
|
2499
2559
|
wrapBox: "_wrapBox_1ik0x_1",
|
|
2500
2560
|
reverse: "_reverse_1ik0x_10"
|
|
2501
2561
|
};
|
|
2502
2562
|
//#endregion
|
|
2503
2563
|
//#region src/components/WrapBox/WrapBox.tsx
|
|
2504
|
-
function
|
|
2564
|
+
function Sr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align: i = "center", wrapReverse: a = !1, children: o, className: s, style: c, ...l }) {
|
|
2505
2565
|
let u = typeof e == "number" ? `${e}px` : e, d = n == null ? u : typeof n == "number" ? `${n}px` : n, f = {
|
|
2506
2566
|
"--wrapbox-gap": u,
|
|
2507
2567
|
"--wrapbox-row-gap": d,
|
|
@@ -2511,8 +2571,8 @@ function br({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align:
|
|
|
2511
2571
|
};
|
|
2512
2572
|
return /* @__PURE__ */ t("div", {
|
|
2513
2573
|
className: [
|
|
2514
|
-
|
|
2515
|
-
a ?
|
|
2574
|
+
xr.wrapBox,
|
|
2575
|
+
a ? xr.reverse : null,
|
|
2516
2576
|
s
|
|
2517
2577
|
].filter(Boolean).join(" "),
|
|
2518
2578
|
style: f,
|
|
@@ -2520,7 +2580,7 @@ function br({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align:
|
|
|
2520
2580
|
children: o
|
|
2521
2581
|
});
|
|
2522
2582
|
}
|
|
2523
|
-
var
|
|
2583
|
+
var Cr = {
|
|
2524
2584
|
chip: "_chip_e26qc_3",
|
|
2525
2585
|
selectable: "_selectable_e26qc_31",
|
|
2526
2586
|
selected: "_selected_e26qc_55",
|
|
@@ -2531,16 +2591,16 @@ var xr = {
|
|
|
2531
2591
|
};
|
|
2532
2592
|
//#endregion
|
|
2533
2593
|
//#region src/components/Chip/Chip.tsx
|
|
2534
|
-
function
|
|
2594
|
+
function wr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s = !1, onToggle: c, disabled: l = !1, className: u, ...d }) {
|
|
2535
2595
|
let f = o && !a, p = [
|
|
2536
|
-
|
|
2537
|
-
s ?
|
|
2538
|
-
l ?
|
|
2539
|
-
f ?
|
|
2596
|
+
Cr.chip,
|
|
2597
|
+
s ? Cr.selected : null,
|
|
2598
|
+
l ? Cr.disabled : null,
|
|
2599
|
+
f ? Cr.selectable : null,
|
|
2540
2600
|
u
|
|
2541
2601
|
].filter(Boolean).join(" "), m = /* @__PURE__ */ n(e, { children: [
|
|
2542
2602
|
i && /* @__PURE__ */ t("span", {
|
|
2543
|
-
className:
|
|
2603
|
+
className: Cr.icon,
|
|
2544
2604
|
children: /* @__PURE__ */ t(L, {
|
|
2545
2605
|
icon: i,
|
|
2546
2606
|
size: "sm",
|
|
@@ -2548,12 +2608,12 @@ function Sr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2548
2608
|
})
|
|
2549
2609
|
}),
|
|
2550
2610
|
/* @__PURE__ */ t("span", {
|
|
2551
|
-
className:
|
|
2611
|
+
className: Cr.label,
|
|
2552
2612
|
children: r
|
|
2553
2613
|
}),
|
|
2554
2614
|
a && /* @__PURE__ */ t("button", {
|
|
2555
2615
|
type: "button",
|
|
2556
|
-
className:
|
|
2616
|
+
className: Cr.remove,
|
|
2557
2617
|
"aria-label": `Remove ${r}`,
|
|
2558
2618
|
disabled: l,
|
|
2559
2619
|
onClick: (e) => {
|
|
@@ -2561,7 +2621,7 @@ function Sr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2561
2621
|
},
|
|
2562
2622
|
tabIndex: l ? -1 : 0,
|
|
2563
2623
|
children: /* @__PURE__ */ t(L, {
|
|
2564
|
-
icon:
|
|
2624
|
+
icon: Ie,
|
|
2565
2625
|
size: "sm",
|
|
2566
2626
|
"aria-hidden": !0
|
|
2567
2627
|
})
|
|
@@ -2585,30 +2645,30 @@ function Sr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2585
2645
|
}
|
|
2586
2646
|
//#endregion
|
|
2587
2647
|
//#region src/components/ShortcutsDialog/ShortcutsDialog.module.css
|
|
2588
|
-
var
|
|
2589
|
-
backdrop:
|
|
2648
|
+
var Tr = "_backdrop_zvuhh_3", Er = "_dialog_zvuhh_26", Dr = "_header_zvuhh_59", Or = "_title_zvuhh_67", kr = "_closeBtn_zvuhh_74", Ar = "_searchRow_zvuhh_112", jr = "_searchIcon_zvuhh_124", Mr = "_searchInput_zvuhh_132", Nr = "_searchClear_zvuhh_151", Pr = "_body_zvuhh_174", Fr = "_empty_zvuhh_182", Ir = "_section_zvuhh_193", Lr = "_sectionTitle_zvuhh_199", Rr = "_list_zvuhh_209", zr = "_row_zvuhh_225", Br = "_keys_zvuhh_240", Vr = "_keyCap_zvuhh_247", Hr = "_plus_zvuhh_277", Ur = "_description_zvuhh_284", q = {
|
|
2649
|
+
backdrop: Tr,
|
|
2590
2650
|
"backdrop-in": "_backdrop-in_zvuhh_1",
|
|
2591
|
-
dialog:
|
|
2651
|
+
dialog: Er,
|
|
2592
2652
|
"dialog-in": "_dialog-in_zvuhh_1",
|
|
2593
|
-
header:
|
|
2594
|
-
title:
|
|
2595
|
-
closeBtn:
|
|
2596
|
-
searchRow:
|
|
2597
|
-
searchIcon:
|
|
2598
|
-
searchInput:
|
|
2599
|
-
searchClear:
|
|
2600
|
-
body:
|
|
2601
|
-
empty:
|
|
2602
|
-
section:
|
|
2603
|
-
sectionTitle:
|
|
2604
|
-
list:
|
|
2605
|
-
row:
|
|
2606
|
-
keys:
|
|
2607
|
-
keyCap:
|
|
2608
|
-
plus:
|
|
2609
|
-
description:
|
|
2610
|
-
},
|
|
2611
|
-
function
|
|
2653
|
+
header: Dr,
|
|
2654
|
+
title: Or,
|
|
2655
|
+
closeBtn: kr,
|
|
2656
|
+
searchRow: Ar,
|
|
2657
|
+
searchIcon: jr,
|
|
2658
|
+
searchInput: Mr,
|
|
2659
|
+
searchClear: Nr,
|
|
2660
|
+
body: Pr,
|
|
2661
|
+
empty: Fr,
|
|
2662
|
+
section: Ir,
|
|
2663
|
+
sectionTitle: Lr,
|
|
2664
|
+
list: Rr,
|
|
2665
|
+
row: zr,
|
|
2666
|
+
keys: Br,
|
|
2667
|
+
keyCap: Vr,
|
|
2668
|
+
plus: Hr,
|
|
2669
|
+
description: Ur
|
|
2670
|
+
}, Wr = "button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
2671
|
+
function Gr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a }) {
|
|
2612
2672
|
let [o, c] = p(""), u = f(null), d = f(null), h = f(null), g = f(`shortcuts-title-${Math.random().toString(36).slice(2, 9)}`);
|
|
2613
2673
|
l(() => {
|
|
2614
2674
|
e ? (h.current = document.activeElement, requestAnimationFrame(() => d.current?.focus())) : (c(""), h.current?.focus());
|
|
@@ -2619,7 +2679,7 @@ function Ur({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2619
2679
|
return;
|
|
2620
2680
|
}
|
|
2621
2681
|
if (e.key !== "Tab") return;
|
|
2622
|
-
let t = Array.from(u.current?.querySelectorAll(
|
|
2682
|
+
let t = Array.from(u.current?.querySelectorAll(Wr) ?? []);
|
|
2623
2683
|
if (t.length === 0) return;
|
|
2624
2684
|
let n = t[0], i = t[t.length - 1];
|
|
2625
2685
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), n.focus());
|
|
@@ -2727,7 +2787,7 @@ function Ur({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2727
2787
|
});
|
|
2728
2788
|
return typeof document > "u" ? b : m(b, document.body);
|
|
2729
2789
|
}
|
|
2730
|
-
var
|
|
2790
|
+
var Kr = {
|
|
2731
2791
|
sidebar: "_sidebar_kmj4b_3",
|
|
2732
2792
|
list: "_list_kmj4b_17",
|
|
2733
2793
|
item: "_item_kmj4b_28",
|
|
@@ -2737,13 +2797,13 @@ var Wr = {
|
|
|
2737
2797
|
itemLabel: "_itemLabel_kmj4b_119",
|
|
2738
2798
|
itemSuffix: "_itemSuffix_kmj4b_129",
|
|
2739
2799
|
count: "_count_kmj4b_136"
|
|
2740
|
-
},
|
|
2741
|
-
function
|
|
2742
|
-
let e = c(
|
|
2800
|
+
}, qr = a(null);
|
|
2801
|
+
function Jr() {
|
|
2802
|
+
let e = c(qr);
|
|
2743
2803
|
if (!e) throw Error("ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar");
|
|
2744
2804
|
return e;
|
|
2745
2805
|
}
|
|
2746
|
-
function
|
|
2806
|
+
function Yr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i, className: a, ...o }) {
|
|
2747
2807
|
let s = f(null);
|
|
2748
2808
|
function c(e) {
|
|
2749
2809
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2756,20 +2816,20 @@ function qr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2756
2816
|
else return;
|
|
2757
2817
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2758
2818
|
}
|
|
2759
|
-
return /* @__PURE__ */ t(
|
|
2819
|
+
return /* @__PURE__ */ t(qr.Provider, {
|
|
2760
2820
|
value: {
|
|
2761
2821
|
value: e,
|
|
2762
2822
|
onValueChange: n
|
|
2763
2823
|
},
|
|
2764
2824
|
children: /* @__PURE__ */ t("nav", {
|
|
2765
|
-
className: [
|
|
2825
|
+
className: [Kr.sidebar, a].filter(Boolean).join(" "),
|
|
2766
2826
|
onKeyDown: c,
|
|
2767
2827
|
...o,
|
|
2768
2828
|
children: /* @__PURE__ */ t("ul", {
|
|
2769
2829
|
ref: s,
|
|
2770
2830
|
role: "radiogroup",
|
|
2771
2831
|
"aria-label": r,
|
|
2772
|
-
className:
|
|
2832
|
+
className: Kr.list,
|
|
2773
2833
|
children: i
|
|
2774
2834
|
})
|
|
2775
2835
|
})
|
|
@@ -2777,10 +2837,10 @@ function qr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2777
2837
|
}
|
|
2778
2838
|
//#endregion
|
|
2779
2839
|
//#region src/components/ViewSwitcherSidebar/ViewSwitcherSidebarItem.tsx
|
|
2780
|
-
function
|
|
2781
|
-
let { value: u, onValueChange: d } =
|
|
2840
|
+
function Xr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, className: c, ...l }) {
|
|
2841
|
+
let { value: u, onValueChange: d } = Jr(), f = u === e, p = o ?? a ?? null;
|
|
2782
2842
|
return /* @__PURE__ */ t("li", {
|
|
2783
|
-
className:
|
|
2843
|
+
className: Kr.item,
|
|
2784
2844
|
children: /* @__PURE__ */ n("button", {
|
|
2785
2845
|
type: "button",
|
|
2786
2846
|
role: "radio",
|
|
@@ -2789,14 +2849,14 @@ function Jr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2789
2849
|
disabled: s,
|
|
2790
2850
|
onClick: () => d(e),
|
|
2791
2851
|
className: [
|
|
2792
|
-
|
|
2793
|
-
f ?
|
|
2852
|
+
Kr.itemBtn,
|
|
2853
|
+
f ? Kr.active : null,
|
|
2794
2854
|
c
|
|
2795
2855
|
].filter(Boolean).join(" "),
|
|
2796
2856
|
...l,
|
|
2797
2857
|
children: [
|
|
2798
2858
|
i && /* @__PURE__ */ t("span", {
|
|
2799
|
-
className:
|
|
2859
|
+
className: Kr.itemIcon,
|
|
2800
2860
|
children: /* @__PURE__ */ t(L, {
|
|
2801
2861
|
icon: i,
|
|
2802
2862
|
size: "md",
|
|
@@ -2804,13 +2864,13 @@ function Jr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2804
2864
|
})
|
|
2805
2865
|
}),
|
|
2806
2866
|
/* @__PURE__ */ t("span", {
|
|
2807
|
-
className:
|
|
2867
|
+
className: Kr.itemLabel,
|
|
2808
2868
|
children: r
|
|
2809
2869
|
}),
|
|
2810
2870
|
p != null && /* @__PURE__ */ t("span", {
|
|
2811
|
-
className:
|
|
2871
|
+
className: Kr.itemSuffix,
|
|
2812
2872
|
children: typeof p == "number" ? /* @__PURE__ */ t("span", {
|
|
2813
|
-
className:
|
|
2873
|
+
className: Kr.count,
|
|
2814
2874
|
children: p > 99 ? "99+" : p
|
|
2815
2875
|
}) : p
|
|
2816
2876
|
})
|
|
@@ -2820,7 +2880,7 @@ function Jr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2820
2880
|
}
|
|
2821
2881
|
//#endregion
|
|
2822
2882
|
//#region src/components/BreakpointBin/BreakpointBin.tsx
|
|
2823
|
-
function
|
|
2883
|
+
function Zr({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
2824
2884
|
let o = f(null), [s, c] = p({
|
|
2825
2885
|
activeBreakpoint: null,
|
|
2826
2886
|
width: 0
|
|
@@ -2850,7 +2910,7 @@ function Yr({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
|
2850
2910
|
children: n(s)
|
|
2851
2911
|
});
|
|
2852
2912
|
}
|
|
2853
|
-
var
|
|
2913
|
+
var Qr = {
|
|
2854
2914
|
row: "_row_1ba2f_3",
|
|
2855
2915
|
title: "_title_1ba2f_48",
|
|
2856
2916
|
leading: "_leading_1ba2f_59",
|
|
@@ -2861,31 +2921,31 @@ var Xr = {
|
|
|
2861
2921
|
};
|
|
2862
2922
|
//#endregion
|
|
2863
2923
|
//#region src/components/ButtonRow/ButtonRow.tsx
|
|
2864
|
-
function
|
|
2924
|
+
function $r({ title: e, variant: r = "default", leading: i, trailing: a, className: o, ...s }) {
|
|
2865
2925
|
return /* @__PURE__ */ n("button", {
|
|
2866
2926
|
className: [
|
|
2867
|
-
|
|
2868
|
-
|
|
2927
|
+
Qr.row,
|
|
2928
|
+
Qr[r],
|
|
2869
2929
|
o
|
|
2870
2930
|
].filter(Boolean).join(" "),
|
|
2871
2931
|
...s,
|
|
2872
2932
|
children: [
|
|
2873
2933
|
i && /* @__PURE__ */ t("span", {
|
|
2874
|
-
className:
|
|
2934
|
+
className: Qr.leading,
|
|
2875
2935
|
children: i
|
|
2876
2936
|
}),
|
|
2877
2937
|
/* @__PURE__ */ t("span", {
|
|
2878
|
-
className:
|
|
2938
|
+
className: Qr.title,
|
|
2879
2939
|
children: e
|
|
2880
2940
|
}),
|
|
2881
2941
|
a && /* @__PURE__ */ t("span", {
|
|
2882
|
-
className:
|
|
2942
|
+
className: Qr.trailing,
|
|
2883
2943
|
children: a
|
|
2884
2944
|
})
|
|
2885
2945
|
]
|
|
2886
2946
|
});
|
|
2887
2947
|
}
|
|
2888
|
-
var
|
|
2948
|
+
var ei = {
|
|
2889
2949
|
container: "_container_4kjnf_3",
|
|
2890
2950
|
primary: "_primary_4kjnf_14",
|
|
2891
2951
|
toggle: "_toggle_4kjnf_15",
|
|
@@ -2899,7 +2959,7 @@ var Qr = {
|
|
|
2899
2959
|
};
|
|
2900
2960
|
//#endregion
|
|
2901
2961
|
//#region src/components/SplitButton/SplitButton.tsx
|
|
2902
|
-
function
|
|
2962
|
+
function ti({ label: r, variant: i = "default", dropdownContent: a, dropdownLabel: o = "More options", disabled: c = !1, onClick: u, className: d, ...h }) {
|
|
2903
2963
|
let [g, _] = p(!1), [v, y] = p({}), b = f(null), x = f(null), S = f(null), C = s(() => _(!1), []), w = s(() => {
|
|
2904
2964
|
if (!x.current || !S.current) return;
|
|
2905
2965
|
let e = x.current.getBoundingClientRect(), t = S.current.getBoundingClientRect(), n = window.innerWidth, r = e.right - t.width;
|
|
@@ -2929,15 +2989,15 @@ function $r({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2929
2989
|
let T = (e) => {
|
|
2930
2990
|
e.key === "Escape" && (e.stopPropagation(), C(), x.current?.focus());
|
|
2931
2991
|
}, E = [
|
|
2932
|
-
|
|
2933
|
-
|
|
2992
|
+
ei.container,
|
|
2993
|
+
ei[i],
|
|
2934
2994
|
d
|
|
2935
2995
|
].filter(Boolean).join(" "), D = /* @__PURE__ */ t("div", {
|
|
2936
2996
|
ref: S,
|
|
2937
2997
|
role: "dialog",
|
|
2938
2998
|
"aria-label": o,
|
|
2939
2999
|
tabIndex: -1,
|
|
2940
|
-
className: [
|
|
3000
|
+
className: [ei.dropdown, g ? ei.dropdownVisible : null].filter(Boolean).join(" "),
|
|
2941
3001
|
style: Object.keys(v).length ? {
|
|
2942
3002
|
...v,
|
|
2943
3003
|
position: "fixed"
|
|
@@ -2956,26 +3016,26 @@ function $r({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2956
3016
|
className: E,
|
|
2957
3017
|
children: [
|
|
2958
3018
|
/* @__PURE__ */ t("button", {
|
|
2959
|
-
className:
|
|
3019
|
+
className: ei.primary,
|
|
2960
3020
|
disabled: c,
|
|
2961
3021
|
onClick: u,
|
|
2962
3022
|
...h,
|
|
2963
3023
|
children: r
|
|
2964
3024
|
}),
|
|
2965
3025
|
/* @__PURE__ */ t("span", {
|
|
2966
|
-
className:
|
|
3026
|
+
className: ei.separator,
|
|
2967
3027
|
"aria-hidden": "true"
|
|
2968
3028
|
}),
|
|
2969
3029
|
/* @__PURE__ */ t("button", {
|
|
2970
3030
|
ref: x,
|
|
2971
|
-
className:
|
|
3031
|
+
className: ei.toggle,
|
|
2972
3032
|
disabled: c,
|
|
2973
3033
|
"aria-label": o,
|
|
2974
3034
|
"aria-haspopup": "dialog",
|
|
2975
3035
|
"aria-expanded": g,
|
|
2976
3036
|
onClick: () => _((e) => !e),
|
|
2977
3037
|
children: /* @__PURE__ */ t("svg", {
|
|
2978
|
-
className:
|
|
3038
|
+
className: ei.chevron,
|
|
2979
3039
|
width: "16",
|
|
2980
3040
|
height: "16",
|
|
2981
3041
|
viewBox: "0 0 16 16",
|
|
@@ -2994,51 +3054,51 @@ function $r({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2994
3054
|
]
|
|
2995
3055
|
}), g && (typeof document < "u" ? m(D, document.body) : D)] });
|
|
2996
3056
|
}
|
|
2997
|
-
var
|
|
3057
|
+
var ni = {
|
|
2998
3058
|
toolbar: "_toolbar_1avgl_2",
|
|
2999
3059
|
spacer: "_spacer_1avgl_20"
|
|
3000
3060
|
};
|
|
3001
3061
|
//#endregion
|
|
3002
3062
|
//#region src/components/Toolbar/Toolbar.tsx
|
|
3003
|
-
function
|
|
3063
|
+
function ri({ children: e, className: n, ...r }) {
|
|
3004
3064
|
return /* @__PURE__ */ t("div", {
|
|
3005
|
-
className: [
|
|
3065
|
+
className: [ni.toolbar, n].filter(Boolean).join(" "),
|
|
3006
3066
|
...r,
|
|
3007
3067
|
children: e
|
|
3008
3068
|
});
|
|
3009
3069
|
}
|
|
3010
3070
|
//#endregion
|
|
3011
3071
|
//#region src/components/Toolbar/Spacer.tsx
|
|
3012
|
-
function
|
|
3072
|
+
function ii({ className: e, ...n }) {
|
|
3013
3073
|
return /* @__PURE__ */ t("div", {
|
|
3014
3074
|
"aria-hidden": "true",
|
|
3015
|
-
className: [
|
|
3075
|
+
className: [ni.spacer, e].filter(Boolean).join(" "),
|
|
3016
3076
|
...n
|
|
3017
3077
|
});
|
|
3018
3078
|
}
|
|
3019
|
-
var
|
|
3079
|
+
var ai = {
|
|
3020
3080
|
linked: "_linked_1tser_3",
|
|
3021
3081
|
vertical: "_vertical_1tser_9"
|
|
3022
3082
|
};
|
|
3023
3083
|
//#endregion
|
|
3024
3084
|
//#region src/components/LinkedGroup/LinkedGroup.tsx
|
|
3025
|
-
function
|
|
3085
|
+
function oi({ children: e, vertical: n = !1, className: r, ...i }) {
|
|
3026
3086
|
return /* @__PURE__ */ t("div", {
|
|
3027
3087
|
className: [
|
|
3028
|
-
|
|
3029
|
-
n ?
|
|
3088
|
+
ai.linked,
|
|
3089
|
+
n ? ai.vertical : null,
|
|
3030
3090
|
r
|
|
3031
3091
|
].filter(Boolean).join(" "),
|
|
3032
3092
|
...i,
|
|
3033
3093
|
children: e
|
|
3034
3094
|
});
|
|
3035
3095
|
}
|
|
3036
|
-
var
|
|
3096
|
+
var si = { frame: "_frame_1bq7b_2" };
|
|
3037
3097
|
//#endregion
|
|
3038
3098
|
//#region src/components/Frame/Frame.tsx
|
|
3039
|
-
function
|
|
3099
|
+
function ci({ children: e, className: n, ...r }) {
|
|
3040
3100
|
return /* @__PURE__ */ t("div", {
|
|
3041
|
-
className: [
|
|
3101
|
+
className: [si.frame, n].filter(Boolean).join(" "),
|
|
3042
3102
|
...r,
|
|
3043
3103
|
children: e
|
|
3044
3104
|
});
|
|
@@ -3061,7 +3121,7 @@ var J = {
|
|
|
3061
3121
|
};
|
|
3062
3122
|
//#endregion
|
|
3063
3123
|
//#region src/components/ExpanderRow/ExpanderRow.tsx
|
|
3064
|
-
function
|
|
3124
|
+
function li({ title: e, subtitle: i, leading: a, trailing: o, children: s, expanded: c, defaultExpanded: l = !1, onExpandedChange: d, className: f, ...m }) {
|
|
3065
3125
|
let h = c !== void 0, [g, _] = p(l), v = h ? c : g, y = u(), b = u(), x = () => {
|
|
3066
3126
|
let e = !v;
|
|
3067
3127
|
h || _(e), d?.(e);
|
|
@@ -3133,7 +3193,7 @@ function si({ title: e, subtitle: i, leading: a, trailing: o, children: s, expan
|
|
|
3133
3193
|
})]
|
|
3134
3194
|
});
|
|
3135
3195
|
}
|
|
3136
|
-
var
|
|
3196
|
+
var ui = {
|
|
3137
3197
|
switcher: "_switcher_2tknm_3",
|
|
3138
3198
|
item: "_item_2tknm_10",
|
|
3139
3199
|
iconOnly: "_iconOnly_2tknm_38",
|
|
@@ -3143,13 +3203,13 @@ var ci = {
|
|
|
3143
3203
|
active: "_active_2tknm_68",
|
|
3144
3204
|
flat: "_flat_2tknm_121",
|
|
3145
3205
|
round: "_round_2tknm_169"
|
|
3146
|
-
},
|
|
3147
|
-
function
|
|
3148
|
-
let e = c(
|
|
3206
|
+
}, di = a(null);
|
|
3207
|
+
function fi() {
|
|
3208
|
+
let e = c(di);
|
|
3149
3209
|
if (!e) throw Error("InlineViewSwitcherItem must be used inside InlineViewSwitcher");
|
|
3150
3210
|
return e;
|
|
3151
3211
|
}
|
|
3152
|
-
function
|
|
3212
|
+
function pi({ value: e, onValueChange: n, variant: r = "default", "aria-label": i = "View switcher", children: a, className: o, ...s }) {
|
|
3153
3213
|
let c = f(null);
|
|
3154
3214
|
function l(e) {
|
|
3155
3215
|
let t = Array.from(c.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -3162,7 +3222,7 @@ function di({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3162
3222
|
else return;
|
|
3163
3223
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
3164
3224
|
}
|
|
3165
|
-
return /* @__PURE__ */ t(
|
|
3225
|
+
return /* @__PURE__ */ t(di.Provider, {
|
|
3166
3226
|
value: {
|
|
3167
3227
|
value: e,
|
|
3168
3228
|
onValueChange: n
|
|
@@ -3173,8 +3233,8 @@ function di({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3173
3233
|
"aria-label": i,
|
|
3174
3234
|
onKeyDown: l,
|
|
3175
3235
|
className: [
|
|
3176
|
-
|
|
3177
|
-
|
|
3236
|
+
ui.switcher,
|
|
3237
|
+
ui[r],
|
|
3178
3238
|
o
|
|
3179
3239
|
].filter(Boolean).join(" "),
|
|
3180
3240
|
...s,
|
|
@@ -3184,8 +3244,8 @@ function di({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3184
3244
|
}
|
|
3185
3245
|
//#endregion
|
|
3186
3246
|
//#region src/components/InlineViewSwitcher/InlineViewSwitcherItem.tsx
|
|
3187
|
-
function
|
|
3188
|
-
let { value: c, onValueChange: l } =
|
|
3247
|
+
function mi({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
3248
|
+
let { value: c, onValueChange: l } = fi(), u = c === e, d = i && !r;
|
|
3189
3249
|
return /* @__PURE__ */ n("button", {
|
|
3190
3250
|
type: "button",
|
|
3191
3251
|
role: "radio",
|
|
@@ -3194,26 +3254,26 @@ function fi({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
3194
3254
|
disabled: a,
|
|
3195
3255
|
onClick: () => l(e),
|
|
3196
3256
|
className: [
|
|
3197
|
-
|
|
3198
|
-
u ?
|
|
3199
|
-
d ?
|
|
3257
|
+
ui.item,
|
|
3258
|
+
u ? ui.active : null,
|
|
3259
|
+
d ? ui.iconOnly : null,
|
|
3200
3260
|
o
|
|
3201
3261
|
].filter(Boolean).join(" "),
|
|
3202
3262
|
...s,
|
|
3203
3263
|
children: [i && /* @__PURE__ */ t("span", {
|
|
3204
|
-
className:
|
|
3264
|
+
className: ui.itemIcon,
|
|
3205
3265
|
children: /* @__PURE__ */ t(L, {
|
|
3206
3266
|
icon: i,
|
|
3207
3267
|
size: "md",
|
|
3208
3268
|
"aria-hidden": !0
|
|
3209
3269
|
})
|
|
3210
3270
|
}), r && /* @__PURE__ */ t("span", {
|
|
3211
|
-
className:
|
|
3271
|
+
className: ui.itemLabel,
|
|
3212
3272
|
children: r
|
|
3213
3273
|
})]
|
|
3214
3274
|
});
|
|
3215
3275
|
}
|
|
3216
|
-
var
|
|
3276
|
+
var hi = {
|
|
3217
3277
|
row: "_row_jl3bc_3",
|
|
3218
3278
|
disabled: "_disabled_jl3bc_41",
|
|
3219
3279
|
leading: "_leading_jl3bc_49",
|
|
@@ -3226,7 +3286,7 @@ var pi = {
|
|
|
3226
3286
|
};
|
|
3227
3287
|
//#endregion
|
|
3228
3288
|
//#region src/components/SwitchRow/SwitchRow.tsx
|
|
3229
|
-
function
|
|
3289
|
+
function gi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...f }) {
|
|
3230
3290
|
let m = a !== void 0, [h, g] = p(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3231
3291
|
let t = !_;
|
|
3232
3292
|
m || g(t), s?.(t), d?.(e);
|
|
@@ -3237,32 +3297,32 @@ function mi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3237
3297
|
"aria-labelledby": v,
|
|
3238
3298
|
disabled: c,
|
|
3239
3299
|
className: [
|
|
3240
|
-
|
|
3241
|
-
c ?
|
|
3300
|
+
hi.row,
|
|
3301
|
+
c ? hi.disabled : null,
|
|
3242
3302
|
l
|
|
3243
3303
|
].filter(Boolean).join(" "),
|
|
3244
3304
|
onClick: y,
|
|
3245
3305
|
...f,
|
|
3246
3306
|
children: [
|
|
3247
3307
|
i && /* @__PURE__ */ t("span", {
|
|
3248
|
-
className:
|
|
3308
|
+
className: hi.leading,
|
|
3249
3309
|
children: i
|
|
3250
3310
|
}),
|
|
3251
3311
|
/* @__PURE__ */ n("span", {
|
|
3252
|
-
className:
|
|
3312
|
+
className: hi.content,
|
|
3253
3313
|
id: v,
|
|
3254
3314
|
children: [/* @__PURE__ */ t("span", {
|
|
3255
|
-
className:
|
|
3315
|
+
className: hi.title,
|
|
3256
3316
|
children: e
|
|
3257
3317
|
}), r && /* @__PURE__ */ t("span", {
|
|
3258
|
-
className:
|
|
3318
|
+
className: hi.subtitle,
|
|
3259
3319
|
children: r
|
|
3260
3320
|
})]
|
|
3261
3321
|
}),
|
|
3262
3322
|
/* @__PURE__ */ t("span", {
|
|
3263
|
-
className:
|
|
3323
|
+
className: hi.switchTrack,
|
|
3264
3324
|
"aria-hidden": "true",
|
|
3265
|
-
children: /* @__PURE__ */ t("span", { className: [
|
|
3325
|
+
children: /* @__PURE__ */ t("span", { className: [hi.switchThumb, _ ? hi.switchThumbOn : null].filter(Boolean).join(" ") })
|
|
3266
3326
|
})
|
|
3267
3327
|
]
|
|
3268
3328
|
});
|
|
@@ -3281,7 +3341,7 @@ var Y = {
|
|
|
3281
3341
|
};
|
|
3282
3342
|
//#endregion
|
|
3283
3343
|
//#region src/components/CheckRow/CheckRow.tsx
|
|
3284
|
-
function
|
|
3344
|
+
function _i({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...f }) {
|
|
3285
3345
|
let m = a !== void 0, [h, g] = p(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3286
3346
|
let t = !_;
|
|
3287
3347
|
m || g(t), s?.(t), d?.(e);
|
|
@@ -3341,35 +3401,35 @@ function hi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3341
3401
|
}
|
|
3342
3402
|
//#endregion
|
|
3343
3403
|
//#region src/components/ComboRow/ComboRow.module.css
|
|
3344
|
-
var
|
|
3345
|
-
row:
|
|
3346
|
-
disabled:
|
|
3347
|
-
leading:
|
|
3348
|
-
content:
|
|
3349
|
-
title:
|
|
3350
|
-
subtitle:
|
|
3351
|
-
comboWrap:
|
|
3352
|
-
trigger:
|
|
3353
|
-
triggerOpen:
|
|
3354
|
-
triggerLabel:
|
|
3355
|
-
placeholder:
|
|
3356
|
-
chevron:
|
|
3357
|
-
chevronOpen:
|
|
3358
|
-
list:
|
|
3404
|
+
var vi = "_row_46mn8_3", yi = "_disabled_46mn8_16", bi = "_leading_46mn8_23", xi = "_content_46mn8_32", Si = "_title_46mn8_40", Ci = "_subtitle_46mn8_51", wi = "_comboWrap_46mn8_65", Ti = "_trigger_46mn8_73", Ei = "_triggerOpen_46mn8_126", Di = "_triggerLabel_46mn8_136", Oi = "_placeholder_46mn8_144", ki = "_chevron_46mn8_150", Ai = "_chevronOpen_46mn8_157", ji = "_list_46mn8_163", Mi = "_listDown_46mn8_192", Ni = "_listUp_46mn8_196", Pi = "_option_46mn8_208", Fi = "_optionActive_46mn8_225", Ii = "_optionSelected_46mn8_229", Li = "_optionDisabled_46mn8_233", Ri = "_optionLabel_46mn8_239", zi = "_checkIcon_46mn8_247", X = {
|
|
3405
|
+
row: vi,
|
|
3406
|
+
disabled: yi,
|
|
3407
|
+
leading: bi,
|
|
3408
|
+
content: xi,
|
|
3409
|
+
title: Si,
|
|
3410
|
+
subtitle: Ci,
|
|
3411
|
+
comboWrap: wi,
|
|
3412
|
+
trigger: Ti,
|
|
3413
|
+
triggerOpen: Ei,
|
|
3414
|
+
triggerLabel: Di,
|
|
3415
|
+
placeholder: Oi,
|
|
3416
|
+
chevron: ki,
|
|
3417
|
+
chevronOpen: Ai,
|
|
3418
|
+
list: ji,
|
|
3359
3419
|
"list-in": "_list-in_46mn8_1",
|
|
3360
|
-
listDown:
|
|
3361
|
-
listUp:
|
|
3420
|
+
listDown: Mi,
|
|
3421
|
+
listUp: Ni,
|
|
3362
3422
|
"list-in-up": "_list-in-up_46mn8_1",
|
|
3363
|
-
option:
|
|
3364
|
-
optionActive:
|
|
3365
|
-
optionSelected:
|
|
3366
|
-
optionDisabled:
|
|
3367
|
-
optionLabel:
|
|
3368
|
-
checkIcon:
|
|
3423
|
+
option: Pi,
|
|
3424
|
+
optionActive: Fi,
|
|
3425
|
+
optionSelected: Ii,
|
|
3426
|
+
optionDisabled: Li,
|
|
3427
|
+
optionLabel: Ri,
|
|
3428
|
+
checkIcon: zi
|
|
3369
3429
|
};
|
|
3370
3430
|
//#endregion
|
|
3371
3431
|
//#region src/components/ComboRow/ComboRow.tsx
|
|
3372
|
-
function
|
|
3432
|
+
function Bi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultValue: c, onValueChange: d, disabled: m = !1, className: h, ...g }) {
|
|
3373
3433
|
let _ = o !== void 0, [v, y] = p(c), b = _ ? o : v, [x, S] = p(!1), [C, w] = p(-1), [T, E] = p(!1), D = u(), O = u(), k = f(null), A = f(null), j = a.find((e) => e.value === b), M = s(() => {
|
|
3374
3434
|
if (!k.current) return;
|
|
3375
3435
|
let e = k.current.getBoundingClientRect(), t = window.innerHeight - e.bottom, n = Math.min(a.length * 44 + 8, 260);
|
|
@@ -3558,7 +3618,7 @@ function Ri({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3558
3618
|
]
|
|
3559
3619
|
});
|
|
3560
3620
|
}
|
|
3561
|
-
var
|
|
3621
|
+
var Vi = {
|
|
3562
3622
|
row: "_row_1kogj_3",
|
|
3563
3623
|
focused: "_focused_1kogj_16",
|
|
3564
3624
|
disabled: "_disabled_1kogj_25",
|
|
@@ -3572,31 +3632,31 @@ var zi = {
|
|
|
3572
3632
|
};
|
|
3573
3633
|
//#endregion
|
|
3574
3634
|
//#region src/components/EntryRow/EntryRow.tsx
|
|
3575
|
-
function
|
|
3635
|
+
function Hi({ title: e, value: r, defaultValue: i = "", onValueChange: a, leading: o, trailing: s, disabled: c, className: l, id: d, onChange: m, ...h }) {
|
|
3576
3636
|
let g = u(), _ = d ?? g, v = r !== void 0, [y, b] = p(String(i)), x = v ? String(r) : y, [S, C] = p(!1), w = f(null), T = S || x.length > 0;
|
|
3577
3637
|
return /* @__PURE__ */ n("div", {
|
|
3578
3638
|
className: [
|
|
3579
|
-
|
|
3580
|
-
S ?
|
|
3581
|
-
c ?
|
|
3639
|
+
Vi.row,
|
|
3640
|
+
S ? Vi.focused : null,
|
|
3641
|
+
c ? Vi.disabled : null,
|
|
3582
3642
|
l
|
|
3583
3643
|
].filter(Boolean).join(" "),
|
|
3584
3644
|
onClick: () => w.current?.focus(),
|
|
3585
3645
|
children: [
|
|
3586
3646
|
o && /* @__PURE__ */ t("span", {
|
|
3587
|
-
className:
|
|
3647
|
+
className: Vi.leading,
|
|
3588
3648
|
children: o
|
|
3589
3649
|
}),
|
|
3590
3650
|
/* @__PURE__ */ n("span", {
|
|
3591
|
-
className:
|
|
3651
|
+
className: Vi.fieldWrap,
|
|
3592
3652
|
children: [/* @__PURE__ */ t("label", {
|
|
3593
3653
|
htmlFor: _,
|
|
3594
|
-
className: [
|
|
3654
|
+
className: [Vi.label, T ? Vi.labelFloated : null].filter(Boolean).join(" "),
|
|
3595
3655
|
children: e
|
|
3596
3656
|
}), /* @__PURE__ */ t("input", {
|
|
3597
3657
|
ref: w,
|
|
3598
3658
|
id: _,
|
|
3599
|
-
className: [
|
|
3659
|
+
className: [Vi.input, T ? Vi.inputFloated : null].filter(Boolean).join(" "),
|
|
3600
3660
|
value: x,
|
|
3601
3661
|
disabled: c,
|
|
3602
3662
|
onFocus: () => C(!0),
|
|
@@ -3608,19 +3668,19 @@ function Bi({ title: e, value: r, defaultValue: i = "", onValueChange: a, leadin
|
|
|
3608
3668
|
})]
|
|
3609
3669
|
}),
|
|
3610
3670
|
s && /* @__PURE__ */ t("span", {
|
|
3611
|
-
className:
|
|
3671
|
+
className: Vi.trailing,
|
|
3612
3672
|
children: s
|
|
3613
3673
|
})
|
|
3614
3674
|
]
|
|
3615
3675
|
});
|
|
3616
3676
|
}
|
|
3617
|
-
var
|
|
3677
|
+
var Ui = { revealButton: "_revealButton_1j8z0_3" };
|
|
3618
3678
|
//#endregion
|
|
3619
3679
|
//#region src/components/PasswordEntryRow/PasswordEntryRow.tsx
|
|
3620
|
-
function
|
|
3680
|
+
function Wi({ trailing: r, disabled: i, ...a }) {
|
|
3621
3681
|
let [o, s] = p(!1), c = /* @__PURE__ */ t("button", {
|
|
3622
3682
|
type: "button",
|
|
3623
|
-
className:
|
|
3683
|
+
className: Ui.revealButton,
|
|
3624
3684
|
onClick: (e) => {
|
|
3625
3685
|
e.stopPropagation(), s((e) => !e);
|
|
3626
3686
|
},
|
|
@@ -3628,19 +3688,19 @@ function Hi({ trailing: r, disabled: i, ...a }) {
|
|
|
3628
3688
|
"aria-pressed": o,
|
|
3629
3689
|
disabled: i,
|
|
3630
3690
|
children: /* @__PURE__ */ t(L, {
|
|
3631
|
-
icon: o ?
|
|
3691
|
+
icon: o ? ze : Re,
|
|
3632
3692
|
size: "md",
|
|
3633
3693
|
"aria-hidden": !0
|
|
3634
3694
|
})
|
|
3635
3695
|
});
|
|
3636
|
-
return /* @__PURE__ */ t(
|
|
3696
|
+
return /* @__PURE__ */ t(Hi, {
|
|
3637
3697
|
...a,
|
|
3638
3698
|
type: o ? "text" : "password",
|
|
3639
3699
|
disabled: i,
|
|
3640
3700
|
trailing: /* @__PURE__ */ n(e, { children: [r, c] })
|
|
3641
3701
|
});
|
|
3642
3702
|
}
|
|
3643
|
-
var
|
|
3703
|
+
var Gi = {
|
|
3644
3704
|
row: "_row_ycg6f_3",
|
|
3645
3705
|
disabled: "_disabled_ycg6f_16",
|
|
3646
3706
|
leading: "_leading_ycg6f_23",
|
|
@@ -3653,16 +3713,16 @@ var Ui = {
|
|
|
3653
3713
|
};
|
|
3654
3714
|
//#endregion
|
|
3655
3715
|
//#region src/components/SpinRow/SpinRow.tsx
|
|
3656
|
-
function
|
|
3716
|
+
function Ki(e) {
|
|
3657
3717
|
let t = e.toString(), n = t.indexOf(".");
|
|
3658
3718
|
return n === -1 ? 0 : t.length - n - 1;
|
|
3659
3719
|
}
|
|
3660
|
-
function
|
|
3720
|
+
function qi(e, t, n) {
|
|
3661
3721
|
return Math.min(n, Math.max(t, e));
|
|
3662
3722
|
}
|
|
3663
|
-
function
|
|
3664
|
-
let v = a !== void 0, [y, b] = p(o), x = v ? a : y, S = m ??
|
|
3665
|
-
let t = parseFloat(
|
|
3723
|
+
function Ji({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0, onValueChange: c, min: l = 0, max: d = 100, step: f = 1, decimals: m, disabled: h = !1, className: g, ..._ }) {
|
|
3724
|
+
let v = a !== void 0, [y, b] = p(o), x = v ? a : y, S = m ?? Ki(f), C = u(), w = s((e) => {
|
|
3725
|
+
let t = parseFloat(qi(e, l, d).toFixed(S));
|
|
3666
3726
|
v || b(t), c?.(t);
|
|
3667
3727
|
}, [
|
|
3668
3728
|
v,
|
|
@@ -3700,23 +3760,23 @@ function Ki({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3700
3760
|
]);
|
|
3701
3761
|
return /* @__PURE__ */ n("div", {
|
|
3702
3762
|
className: [
|
|
3703
|
-
|
|
3704
|
-
h ?
|
|
3763
|
+
Gi.row,
|
|
3764
|
+
h ? Gi.disabled : null,
|
|
3705
3765
|
g
|
|
3706
3766
|
].filter(Boolean).join(" "),
|
|
3707
3767
|
..._,
|
|
3708
3768
|
children: [
|
|
3709
3769
|
i && /* @__PURE__ */ t("span", {
|
|
3710
|
-
className:
|
|
3770
|
+
className: Gi.leading,
|
|
3711
3771
|
children: i
|
|
3712
3772
|
}),
|
|
3713
3773
|
/* @__PURE__ */ n("span", {
|
|
3714
|
-
className:
|
|
3774
|
+
className: Gi.content,
|
|
3715
3775
|
children: [/* @__PURE__ */ t("span", {
|
|
3716
|
-
className:
|
|
3776
|
+
className: Gi.title,
|
|
3717
3777
|
children: e
|
|
3718
3778
|
}), r && /* @__PURE__ */ t("span", {
|
|
3719
|
-
className:
|
|
3779
|
+
className: Gi.subtitle,
|
|
3720
3780
|
children: r
|
|
3721
3781
|
})]
|
|
3722
3782
|
}),
|
|
@@ -3729,14 +3789,14 @@ function Ki({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3729
3789
|
"aria-disabled": h || void 0,
|
|
3730
3790
|
tabIndex: h ? -1 : 0,
|
|
3731
3791
|
onKeyDown: h ? void 0 : T,
|
|
3732
|
-
className:
|
|
3792
|
+
className: Gi.spin,
|
|
3733
3793
|
children: [
|
|
3734
3794
|
/* @__PURE__ */ t("button", {
|
|
3735
3795
|
type: "button",
|
|
3736
3796
|
tabIndex: -1,
|
|
3737
3797
|
"aria-hidden": "true",
|
|
3738
3798
|
disabled: h || x <= l,
|
|
3739
|
-
className:
|
|
3799
|
+
className: Gi.spinBtn,
|
|
3740
3800
|
onClick: (e) => {
|
|
3741
3801
|
e.stopPropagation(), w(x - f);
|
|
3742
3802
|
},
|
|
@@ -3744,7 +3804,7 @@ function Ki({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3744
3804
|
}),
|
|
3745
3805
|
/* @__PURE__ */ t("span", {
|
|
3746
3806
|
id: C,
|
|
3747
|
-
className:
|
|
3807
|
+
className: Gi.spinValue,
|
|
3748
3808
|
"aria-hidden": "true",
|
|
3749
3809
|
children: x.toFixed(S)
|
|
3750
3810
|
}),
|
|
@@ -3753,7 +3813,7 @@ function Ki({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3753
3813
|
tabIndex: -1,
|
|
3754
3814
|
"aria-hidden": "true",
|
|
3755
3815
|
disabled: h || x >= d,
|
|
3756
|
-
className:
|
|
3816
|
+
className: Gi.spinBtn,
|
|
3757
3817
|
onClick: (e) => {
|
|
3758
3818
|
e.stopPropagation(), w(x + f);
|
|
3759
3819
|
},
|
|
@@ -3766,50 +3826,50 @@ function Ki({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3766
3826
|
}
|
|
3767
3827
|
//#endregion
|
|
3768
3828
|
//#region src/components/NavigationView/NavigationView.module.css
|
|
3769
|
-
var
|
|
3770
|
-
view:
|
|
3771
|
-
page:
|
|
3772
|
-
pageHeader:
|
|
3773
|
-
pageTitle:
|
|
3774
|
-
pageContent:
|
|
3775
|
-
enterForward:
|
|
3829
|
+
var Yi = "_view_1r1om_3", Xi = "_page_1r1om_12", Zi = "_pageHeader_1r1om_23", Qi = "_pageTitle_1r1om_34", $i = "_pageContent_1r1om_43", ea = "_enterForward_1r1om_52", ta = "_enterBack_1r1om_56", na = {
|
|
3830
|
+
view: Yi,
|
|
3831
|
+
page: Xi,
|
|
3832
|
+
pageHeader: Zi,
|
|
3833
|
+
pageTitle: Qi,
|
|
3834
|
+
pageContent: $i,
|
|
3835
|
+
enterForward: ea,
|
|
3776
3836
|
"slide-in-right": "_slide-in-right_1r1om_1",
|
|
3777
|
-
enterBack:
|
|
3837
|
+
enterBack: ta,
|
|
3778
3838
|
"slide-in-left": "_slide-in-left_1r1om_1"
|
|
3779
|
-
},
|
|
3839
|
+
}, ra = a({
|
|
3780
3840
|
navigate: () => {},
|
|
3781
3841
|
pop: () => {},
|
|
3782
3842
|
canGoBack: !1,
|
|
3783
3843
|
currentTag: "",
|
|
3784
3844
|
direction: "forward"
|
|
3785
3845
|
});
|
|
3786
|
-
function
|
|
3787
|
-
return c(
|
|
3846
|
+
function ia() {
|
|
3847
|
+
return c(ra);
|
|
3788
3848
|
}
|
|
3789
|
-
function
|
|
3790
|
-
let { currentTag: s, direction: l } = c(
|
|
3849
|
+
function aa({ tag: e, title: r, children: i, className: a, ...o }) {
|
|
3850
|
+
let { currentTag: s, direction: l } = c(ra);
|
|
3791
3851
|
return s === e ? /* @__PURE__ */ n("div", {
|
|
3792
3852
|
className: [
|
|
3793
|
-
|
|
3794
|
-
l === "forward" ?
|
|
3853
|
+
na.page,
|
|
3854
|
+
l === "forward" ? na.enterForward : na.enterBack,
|
|
3795
3855
|
a
|
|
3796
3856
|
].filter(Boolean).join(" "),
|
|
3797
3857
|
...o,
|
|
3798
3858
|
children: [/* @__PURE__ */ t("div", {
|
|
3799
|
-
className:
|
|
3859
|
+
className: na.pageHeader,
|
|
3800
3860
|
children: /* @__PURE__ */ t("span", {
|
|
3801
|
-
className:
|
|
3861
|
+
className: na.pageTitle,
|
|
3802
3862
|
children: r
|
|
3803
3863
|
})
|
|
3804
3864
|
}), /* @__PURE__ */ t("div", {
|
|
3805
|
-
className:
|
|
3865
|
+
className: na.pageContent,
|
|
3806
3866
|
children: i
|
|
3807
3867
|
})]
|
|
3808
3868
|
}) : null;
|
|
3809
3869
|
}
|
|
3810
|
-
function
|
|
3870
|
+
function oa({ initialPage: e, children: n, className: r, ...i }) {
|
|
3811
3871
|
let [a, o] = p([e]), s = a[a.length - 1], c = a.length > 1, [l, u] = p("forward");
|
|
3812
|
-
return /* @__PURE__ */ t(
|
|
3872
|
+
return /* @__PURE__ */ t(ra.Provider, {
|
|
3813
3873
|
value: {
|
|
3814
3874
|
navigate: (e) => {
|
|
3815
3875
|
u("forward"), o((t) => [...t, e]);
|
|
@@ -3822,7 +3882,7 @@ function ia({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3822
3882
|
direction: l
|
|
3823
3883
|
},
|
|
3824
3884
|
children: /* @__PURE__ */ t("div", {
|
|
3825
|
-
className: [
|
|
3885
|
+
className: [na.view, r].filter(Boolean).join(" "),
|
|
3826
3886
|
...i,
|
|
3827
3887
|
children: n
|
|
3828
3888
|
})
|
|
@@ -3830,20 +3890,20 @@ function ia({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3830
3890
|
}
|
|
3831
3891
|
//#endregion
|
|
3832
3892
|
//#region src/components/BottomSheet/BottomSheet.module.css
|
|
3833
|
-
var
|
|
3834
|
-
backdrop:
|
|
3893
|
+
var sa = "_backdrop_zzv98_3", ca = "_sheet_zzv98_26", la = "_handle_zzv98_49", ua = "_handleBar_zzv98_56", da = "_title_zzv98_66", fa = "_content_zzv98_79", pa = {
|
|
3894
|
+
backdrop: sa,
|
|
3835
3895
|
"backdrop-in": "_backdrop-in_zzv98_1",
|
|
3836
|
-
sheet:
|
|
3896
|
+
sheet: ca,
|
|
3837
3897
|
"sheet-in": "_sheet-in_zzv98_1",
|
|
3838
|
-
handle:
|
|
3839
|
-
handleBar:
|
|
3840
|
-
title:
|
|
3841
|
-
content:
|
|
3842
|
-
},
|
|
3843
|
-
function
|
|
3898
|
+
handle: la,
|
|
3899
|
+
handleBar: ua,
|
|
3900
|
+
title: da,
|
|
3901
|
+
content: fa
|
|
3902
|
+
}, ma = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
3903
|
+
function ha({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !0, className: c, ...d }) {
|
|
3844
3904
|
let p = f(null), h = u(), g = f(null);
|
|
3845
3905
|
l(() => {
|
|
3846
|
-
e ? (g.current = document.activeElement, (p.current?.querySelector(
|
|
3906
|
+
e ? (g.current = document.activeElement, (p.current?.querySelector(ma))?.focus()) : g.current?.focus();
|
|
3847
3907
|
}, [e]);
|
|
3848
3908
|
let _ = s((e) => {
|
|
3849
3909
|
if (e.key === "Escape") {
|
|
@@ -3851,14 +3911,14 @@ function pa({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3851
3911
|
return;
|
|
3852
3912
|
}
|
|
3853
3913
|
if (e.key !== "Tab") return;
|
|
3854
|
-
let t = Array.from(p.current?.querySelectorAll(
|
|
3914
|
+
let t = Array.from(p.current?.querySelectorAll(ma) ?? []);
|
|
3855
3915
|
if (t.length === 0) return;
|
|
3856
3916
|
let n = t[0], r = t[t.length - 1];
|
|
3857
3917
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(), n.focus());
|
|
3858
3918
|
}, [a]);
|
|
3859
3919
|
if (!e) return null;
|
|
3860
3920
|
let v = /* @__PURE__ */ t("div", {
|
|
3861
|
-
className:
|
|
3921
|
+
className: pa.backdrop,
|
|
3862
3922
|
onClick: o ? a : void 0,
|
|
3863
3923
|
"aria-hidden": "true",
|
|
3864
3924
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -3866,23 +3926,23 @@ function pa({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3866
3926
|
role: "dialog",
|
|
3867
3927
|
"aria-modal": "true",
|
|
3868
3928
|
"aria-labelledby": r ? h : void 0,
|
|
3869
|
-
className: [
|
|
3929
|
+
className: [pa.sheet, c].filter(Boolean).join(" "),
|
|
3870
3930
|
onKeyDown: _,
|
|
3871
3931
|
onClick: (e) => e.stopPropagation(),
|
|
3872
3932
|
...d,
|
|
3873
3933
|
children: [
|
|
3874
3934
|
/* @__PURE__ */ t("div", {
|
|
3875
|
-
className:
|
|
3935
|
+
className: pa.handle,
|
|
3876
3936
|
"aria-hidden": "true",
|
|
3877
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
3937
|
+
children: /* @__PURE__ */ t("div", { className: pa.handleBar })
|
|
3878
3938
|
}),
|
|
3879
3939
|
r && /* @__PURE__ */ t("div", {
|
|
3880
3940
|
id: h,
|
|
3881
|
-
className:
|
|
3941
|
+
className: pa.title,
|
|
3882
3942
|
children: r
|
|
3883
3943
|
}),
|
|
3884
3944
|
i && /* @__PURE__ */ t("div", {
|
|
3885
|
-
className:
|
|
3945
|
+
className: pa.content,
|
|
3886
3946
|
children: i
|
|
3887
3947
|
})
|
|
3888
3948
|
]
|
|
@@ -3890,7 +3950,7 @@ function pa({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3890
3950
|
});
|
|
3891
3951
|
return typeof document > "u" ? v : m(v, document.body);
|
|
3892
3952
|
}
|
|
3893
|
-
var
|
|
3953
|
+
var ga = {
|
|
3894
3954
|
carousel: "_carousel_117hp_3",
|
|
3895
3955
|
horizontal: "_horizontal_117hp_20",
|
|
3896
3956
|
vertical: "_vertical_117hp_27",
|
|
@@ -3904,9 +3964,9 @@ var ma = {
|
|
|
3904
3964
|
};
|
|
3905
3965
|
//#endregion
|
|
3906
3966
|
//#region src/components/Carousel/Carousel.tsx
|
|
3907
|
-
function
|
|
3967
|
+
function _a({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3908
3968
|
return /* @__PURE__ */ t("div", {
|
|
3909
|
-
className: [
|
|
3969
|
+
className: [ga.indicatorDots, i].filter(Boolean).join(" "),
|
|
3910
3970
|
role: "tablist",
|
|
3911
3971
|
"aria-label": "Carousel pages",
|
|
3912
3972
|
...a,
|
|
@@ -3915,14 +3975,14 @@ function ha({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3915
3975
|
role: "tab",
|
|
3916
3976
|
"aria-selected": i === n,
|
|
3917
3977
|
"aria-label": `Page ${i + 1}`,
|
|
3918
|
-
className: [
|
|
3978
|
+
className: [ga.dot, i === n ? ga.dotActive : null].filter(Boolean).join(" "),
|
|
3919
3979
|
onClick: () => r?.(i)
|
|
3920
3980
|
}, i))
|
|
3921
3981
|
});
|
|
3922
3982
|
}
|
|
3923
|
-
function
|
|
3983
|
+
function va({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3924
3984
|
return /* @__PURE__ */ t("div", {
|
|
3925
|
-
className: [
|
|
3985
|
+
className: [ga.indicatorLines, i].filter(Boolean).join(" "),
|
|
3926
3986
|
role: "tablist",
|
|
3927
3987
|
"aria-label": "Carousel pages",
|
|
3928
3988
|
...a,
|
|
@@ -3931,12 +3991,12 @@ function ga({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3931
3991
|
role: "tab",
|
|
3932
3992
|
"aria-selected": i === n,
|
|
3933
3993
|
"aria-label": `Page ${i + 1}`,
|
|
3934
|
-
className: [
|
|
3994
|
+
className: [ga.line, i === n ? ga.lineActive : null].filter(Boolean).join(" "),
|
|
3935
3995
|
onClick: () => r?.(i)
|
|
3936
3996
|
}, i))
|
|
3937
3997
|
});
|
|
3938
3998
|
}
|
|
3939
|
-
function
|
|
3999
|
+
function ya({ children: e, orientation: n = "horizontal", spacing: i = 0, loop: a = !1, onPageChanged: o, page: c, className: u, ...d }) {
|
|
3940
4000
|
let m = f(null), h = r.count(e), [g, _] = p(0), v = c !== void 0, y = v ? c : g;
|
|
3941
4001
|
l(() => {
|
|
3942
4002
|
v && b(c, "smooth");
|
|
@@ -3992,15 +4052,15 @@ function _a({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
3992
4052
|
"aria-roledescription": "carousel",
|
|
3993
4053
|
tabIndex: 0,
|
|
3994
4054
|
className: [
|
|
3995
|
-
|
|
3996
|
-
S ?
|
|
4055
|
+
ga.carousel,
|
|
4056
|
+
S ? ga.horizontal : ga.vertical,
|
|
3997
4057
|
u
|
|
3998
4058
|
].filter(Boolean).join(" "),
|
|
3999
4059
|
style: S ? { columnGap: i || void 0 } : { rowGap: i || void 0 },
|
|
4000
4060
|
onKeyDown: x,
|
|
4001
4061
|
...d,
|
|
4002
4062
|
children: r.map(e, (e, n) => /* @__PURE__ */ t("div", {
|
|
4003
|
-
className:
|
|
4063
|
+
className: ga.slide,
|
|
4004
4064
|
role: "group",
|
|
4005
4065
|
"aria-roledescription": "slide",
|
|
4006
4066
|
"aria-label": `${n + 1} of ${h}`,
|
|
@@ -4010,49 +4070,49 @@ function _a({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
4010
4070
|
}
|
|
4011
4071
|
//#endregion
|
|
4012
4072
|
//#region src/components/Bin/Bin.tsx
|
|
4013
|
-
function
|
|
4073
|
+
function ba({ children: e, ...n }) {
|
|
4014
4074
|
return /* @__PURE__ */ t("div", {
|
|
4015
4075
|
...n,
|
|
4016
4076
|
children: e
|
|
4017
4077
|
});
|
|
4018
4078
|
}
|
|
4019
|
-
var
|
|
4079
|
+
var xa = {
|
|
4020
4080
|
content: "_content_1xkwk_3",
|
|
4021
4081
|
icon: "_icon_1xkwk_9",
|
|
4022
4082
|
label: "_label_1xkwk_15"
|
|
4023
4083
|
};
|
|
4024
4084
|
//#endregion
|
|
4025
4085
|
//#region src/components/ButtonContent/ButtonContent.tsx
|
|
4026
|
-
function
|
|
4086
|
+
function Sa({ icon: e, label: r, iconPosition: i = "start", className: a, ...o }) {
|
|
4027
4087
|
return /* @__PURE__ */ n("span", {
|
|
4028
4088
|
className: [
|
|
4029
|
-
|
|
4030
|
-
i === "end" ?
|
|
4089
|
+
xa.content,
|
|
4090
|
+
i === "end" ? xa.iconEnd : null,
|
|
4031
4091
|
a
|
|
4032
4092
|
].filter(Boolean).join(" "),
|
|
4033
4093
|
...o,
|
|
4034
4094
|
children: [
|
|
4035
4095
|
e && i === "start" && /* @__PURE__ */ t("span", {
|
|
4036
|
-
className:
|
|
4096
|
+
className: xa.icon,
|
|
4037
4097
|
"aria-hidden": "true",
|
|
4038
4098
|
children: e
|
|
4039
4099
|
}),
|
|
4040
4100
|
/* @__PURE__ */ t("span", {
|
|
4041
|
-
className:
|
|
4101
|
+
className: xa.label,
|
|
4042
4102
|
children: r
|
|
4043
4103
|
}),
|
|
4044
4104
|
e && i === "end" && /* @__PURE__ */ t("span", {
|
|
4045
|
-
className:
|
|
4105
|
+
className: xa.icon,
|
|
4046
4106
|
"aria-hidden": "true",
|
|
4047
4107
|
children: e
|
|
4048
4108
|
})
|
|
4049
4109
|
]
|
|
4050
4110
|
});
|
|
4051
4111
|
}
|
|
4052
|
-
var
|
|
4112
|
+
var Ca = {
|
|
4053
4113
|
label: "_label_h3znl_3",
|
|
4054
4114
|
key: "_key_h3znl_9"
|
|
4055
|
-
},
|
|
4115
|
+
}, wa = {
|
|
4056
4116
|
ctrl: "⌃",
|
|
4057
4117
|
control: "⌃",
|
|
4058
4118
|
shift: "⇧",
|
|
@@ -4080,22 +4140,22 @@ var xa = {
|
|
|
4080
4140
|
home: "⇱",
|
|
4081
4141
|
end: "⇲"
|
|
4082
4142
|
};
|
|
4083
|
-
function
|
|
4143
|
+
function Ta({ shortcut: e, symbols: n = !0, className: r, ...i }) {
|
|
4084
4144
|
let a = e.split("+").map((e) => e.trim()).filter(Boolean);
|
|
4085
4145
|
return /* @__PURE__ */ t("span", {
|
|
4086
|
-
className: [
|
|
4146
|
+
className: [Ca.label, r].filter(Boolean).join(" "),
|
|
4087
4147
|
"aria-label": e,
|
|
4088
4148
|
...i,
|
|
4089
4149
|
children: a.map((e, r) => {
|
|
4090
|
-
let i = n ?
|
|
4150
|
+
let i = n ? wa[e.toLowerCase()] ?? e : e;
|
|
4091
4151
|
return /* @__PURE__ */ t("kbd", {
|
|
4092
|
-
className:
|
|
4152
|
+
className: Ca.key,
|
|
4093
4153
|
children: i
|
|
4094
4154
|
}, r);
|
|
4095
4155
|
})
|
|
4096
4156
|
});
|
|
4097
4157
|
}
|
|
4098
|
-
var
|
|
4158
|
+
var Ea = {
|
|
4099
4159
|
toolbarView: "_toolbarView_134hf_3",
|
|
4100
4160
|
top: "_top_134hf_11",
|
|
4101
4161
|
content: "_content_134hf_16",
|
|
@@ -4103,47 +4163,47 @@ var wa = {
|
|
|
4103
4163
|
};
|
|
4104
4164
|
//#endregion
|
|
4105
4165
|
//#region src/components/ToolbarView/ToolbarView.tsx
|
|
4106
|
-
function
|
|
4166
|
+
function Da({ topBar: e, bottomBar: r, children: i, className: a, ...o }) {
|
|
4107
4167
|
return /* @__PURE__ */ n("div", {
|
|
4108
|
-
className: [
|
|
4168
|
+
className: [Ea.toolbarView, a].filter(Boolean).join(" "),
|
|
4109
4169
|
...o,
|
|
4110
4170
|
children: [
|
|
4111
4171
|
e && /* @__PURE__ */ t("div", {
|
|
4112
|
-
className:
|
|
4172
|
+
className: Ea.top,
|
|
4113
4173
|
children: e
|
|
4114
4174
|
}),
|
|
4115
4175
|
/* @__PURE__ */ t("div", {
|
|
4116
|
-
className:
|
|
4176
|
+
className: Ea.content,
|
|
4117
4177
|
children: i
|
|
4118
4178
|
}),
|
|
4119
4179
|
r && /* @__PURE__ */ t("div", {
|
|
4120
|
-
className:
|
|
4180
|
+
className: Ea.bottom,
|
|
4121
4181
|
children: r
|
|
4122
4182
|
})
|
|
4123
4183
|
]
|
|
4124
4184
|
});
|
|
4125
4185
|
}
|
|
4126
|
-
var
|
|
4186
|
+
var Oa = {
|
|
4127
4187
|
windowTitle: "_windowTitle_zm877_3",
|
|
4128
4188
|
title: "_title_zm877_11",
|
|
4129
4189
|
subtitle: "_subtitle_zm877_24"
|
|
4130
4190
|
};
|
|
4131
4191
|
//#endregion
|
|
4132
4192
|
//#region src/components/WindowTitle/WindowTitle.tsx
|
|
4133
|
-
function
|
|
4193
|
+
function ka({ title: e, subtitle: r, className: i, ...a }) {
|
|
4134
4194
|
return /* @__PURE__ */ n("div", {
|
|
4135
|
-
className: [
|
|
4195
|
+
className: [Oa.windowTitle, i].filter(Boolean).join(" "),
|
|
4136
4196
|
...a,
|
|
4137
4197
|
children: [/* @__PURE__ */ t("span", {
|
|
4138
|
-
className:
|
|
4198
|
+
className: Oa.title,
|
|
4139
4199
|
children: e
|
|
4140
4200
|
}), r && /* @__PURE__ */ t("span", {
|
|
4141
|
-
className:
|
|
4201
|
+
className: Oa.subtitle,
|
|
4142
4202
|
children: r
|
|
4143
4203
|
})]
|
|
4144
4204
|
});
|
|
4145
4205
|
}
|
|
4146
|
-
var
|
|
4206
|
+
var Aa = {
|
|
4147
4207
|
group: "_group_17s4f_3",
|
|
4148
4208
|
header: "_header_17s4f_11",
|
|
4149
4209
|
headerText: "_headerText_17s4f_17",
|
|
@@ -4154,85 +4214,85 @@ var Oa = {
|
|
|
4154
4214
|
};
|
|
4155
4215
|
//#endregion
|
|
4156
4216
|
//#region src/components/PreferencesGroup/PreferencesGroup.tsx
|
|
4157
|
-
function
|
|
4217
|
+
function ja({ title: e, description: r, headerSuffix: i, children: a, className: o, ...s }) {
|
|
4158
4218
|
let c = e || r || i;
|
|
4159
4219
|
return /* @__PURE__ */ n("div", {
|
|
4160
|
-
className: [
|
|
4220
|
+
className: [Aa.group, o].filter(Boolean).join(" "),
|
|
4161
4221
|
...s,
|
|
4162
4222
|
children: [c && /* @__PURE__ */ n("div", {
|
|
4163
|
-
className:
|
|
4223
|
+
className: Aa.header,
|
|
4164
4224
|
children: [/* @__PURE__ */ n("div", {
|
|
4165
|
-
className:
|
|
4225
|
+
className: Aa.headerText,
|
|
4166
4226
|
children: [e && /* @__PURE__ */ t("span", {
|
|
4167
|
-
className:
|
|
4227
|
+
className: Aa.title,
|
|
4168
4228
|
children: e
|
|
4169
4229
|
}), r && /* @__PURE__ */ t("span", {
|
|
4170
|
-
className:
|
|
4230
|
+
className: Aa.description,
|
|
4171
4231
|
children: r
|
|
4172
4232
|
})]
|
|
4173
4233
|
}), i && /* @__PURE__ */ t("div", {
|
|
4174
|
-
className:
|
|
4234
|
+
className: Aa.suffix,
|
|
4175
4235
|
children: i
|
|
4176
4236
|
})]
|
|
4177
4237
|
}), /* @__PURE__ */ t("div", {
|
|
4178
|
-
className:
|
|
4238
|
+
className: Aa.content,
|
|
4179
4239
|
children: a
|
|
4180
4240
|
})]
|
|
4181
4241
|
});
|
|
4182
4242
|
}
|
|
4183
|
-
var
|
|
4243
|
+
var Ma = {
|
|
4184
4244
|
page: "_page_gt42j_3",
|
|
4185
4245
|
inner: "_inner_gt42j_10"
|
|
4186
4246
|
};
|
|
4187
4247
|
//#endregion
|
|
4188
4248
|
//#region src/components/PreferencesPage/PreferencesPage.tsx
|
|
4189
|
-
function
|
|
4249
|
+
function Na({ title: e, iconName: n, children: r, className: i, ...a }) {
|
|
4190
4250
|
return /* @__PURE__ */ t("div", {
|
|
4191
|
-
className: [
|
|
4251
|
+
className: [Ma.page, i].filter(Boolean).join(" "),
|
|
4192
4252
|
role: "tabpanel",
|
|
4193
4253
|
...a,
|
|
4194
4254
|
children: /* @__PURE__ */ t("div", {
|
|
4195
|
-
className:
|
|
4255
|
+
className: Ma.inner,
|
|
4196
4256
|
children: r
|
|
4197
4257
|
})
|
|
4198
4258
|
});
|
|
4199
4259
|
}
|
|
4200
4260
|
//#endregion
|
|
4201
4261
|
//#region src/components/PreferencesDialog/PreferencesDialog.module.css
|
|
4202
|
-
var
|
|
4203
|
-
backdrop:
|
|
4262
|
+
var Pa = "_backdrop_1u1bd_3", Fa = "_dialog_1u1bd_26", Ia = "_dialogMulti_1u1bd_46", La = "_header_1u1bd_63", Ra = "_closeBtn_1u1bd_73", za = "_title_1u1bd_102", Ba = "_searchWrap_1u1bd_112", Va = "_searchInput_1u1bd_116", Ha = "_body_1u1bd_143", Ua = "_sidebar_1u1bd_152", Wa = "_navList_1u1bd_160", Ga = "_navItem_1u1bd_169", Ka = "_navItemActive_1u1bd_190", qa = "_navIcon_1u1bd_205", Ja = "_navLabel_1u1bd_211", Ya = "_pageWrap_1u1bd_221", Z = {
|
|
4263
|
+
backdrop: Pa,
|
|
4204
4264
|
"backdrop-in": "_backdrop-in_1u1bd_1",
|
|
4205
|
-
dialog:
|
|
4265
|
+
dialog: Fa,
|
|
4206
4266
|
"dialog-in": "_dialog-in_1u1bd_1",
|
|
4207
|
-
dialogMulti:
|
|
4208
|
-
header:
|
|
4209
|
-
closeBtn:
|
|
4210
|
-
title:
|
|
4211
|
-
searchWrap:
|
|
4212
|
-
searchInput:
|
|
4213
|
-
body:
|
|
4214
|
-
sidebar:
|
|
4215
|
-
navList:
|
|
4216
|
-
navItem:
|
|
4217
|
-
navItemActive:
|
|
4218
|
-
navIcon:
|
|
4219
|
-
navLabel:
|
|
4220
|
-
pageWrap:
|
|
4221
|
-
},
|
|
4222
|
-
function
|
|
4267
|
+
dialogMulti: Ia,
|
|
4268
|
+
header: La,
|
|
4269
|
+
closeBtn: Ra,
|
|
4270
|
+
title: za,
|
|
4271
|
+
searchWrap: Ba,
|
|
4272
|
+
searchInput: Va,
|
|
4273
|
+
body: Ha,
|
|
4274
|
+
sidebar: Ua,
|
|
4275
|
+
navList: Wa,
|
|
4276
|
+
navItem: Ga,
|
|
4277
|
+
navItemActive: Ka,
|
|
4278
|
+
navIcon: qa,
|
|
4279
|
+
navLabel: Ja,
|
|
4280
|
+
pageWrap: Ya
|
|
4281
|
+
}, Xa = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
4282
|
+
function Za(e, t) {
|
|
4223
4283
|
if (e.key !== "Tab") return;
|
|
4224
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
4284
|
+
let n = Array.from(t.current?.querySelectorAll(Xa) ?? []);
|
|
4225
4285
|
if (!n.length) return;
|
|
4226
4286
|
let r = n[0], i = n[n.length - 1];
|
|
4227
4287
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
4228
4288
|
}
|
|
4229
|
-
function
|
|
4289
|
+
function Qa({ open: e, onClose: a, children: c, searchable: d = !0, className: h, ...g }) {
|
|
4230
4290
|
let _ = f(null), v = f(null), y = u(), b = r.toArray(c).filter((e) => o(e)), [x, S] = p(0), [C, w] = p("");
|
|
4231
4291
|
l(() => {
|
|
4232
4292
|
if (e) {
|
|
4233
4293
|
S(0), w("");
|
|
4234
4294
|
let e = requestAnimationFrame(() => {
|
|
4235
|
-
d && v.current ? v.current.focus() : (_.current?.querySelector(
|
|
4295
|
+
d && v.current ? v.current.focus() : (_.current?.querySelector(Xa))?.focus();
|
|
4236
4296
|
});
|
|
4237
4297
|
return () => cancelAnimationFrame(e);
|
|
4238
4298
|
}
|
|
@@ -4242,7 +4302,7 @@ function Xa({ open: e, onClose: a, children: c, searchable: d = !0, className: h
|
|
|
4242
4302
|
e.stopPropagation(), a();
|
|
4243
4303
|
return;
|
|
4244
4304
|
}
|
|
4245
|
-
|
|
4305
|
+
Za(e, _);
|
|
4246
4306
|
}, [a]), E = b.length > 1, D = b[x] ?? b[0], O = C.trim().toLowerCase();
|
|
4247
4307
|
return e ? m(/* @__PURE__ */ t("div", {
|
|
4248
4308
|
className: Z.backdrop,
|
|
@@ -4345,7 +4405,7 @@ var Q = {
|
|
|
4345
4405
|
};
|
|
4346
4406
|
//#endregion
|
|
4347
4407
|
//#region src/components/Timeline/Timeline.tsx
|
|
4348
|
-
function
|
|
4408
|
+
function $a({ items: e, orientation: r = "vertical", variant: i = "default", className: a, ...o }) {
|
|
4349
4409
|
let s = r === "horizontal", c = i !== "none";
|
|
4350
4410
|
return /* @__PURE__ */ t("div", {
|
|
4351
4411
|
role: "list",
|
|
@@ -4409,7 +4469,7 @@ function Za({ items: e, orientation: r = "vertical", variant: i = "default", cla
|
|
|
4409
4469
|
})
|
|
4410
4470
|
});
|
|
4411
4471
|
}
|
|
4412
|
-
var
|
|
4472
|
+
var eo = {
|
|
4413
4473
|
pathBar: "_pathBar_1n4ev_3",
|
|
4414
4474
|
list: "_list_1n4ev_12",
|
|
4415
4475
|
item: "_item_1n4ev_25",
|
|
@@ -4420,20 +4480,20 @@ var Qa = {
|
|
|
4420
4480
|
};
|
|
4421
4481
|
//#endregion
|
|
4422
4482
|
//#region src/components/PathBar/PathBar.tsx
|
|
4423
|
-
function
|
|
4483
|
+
function to({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
4424
4484
|
return /* @__PURE__ */ t("nav", {
|
|
4425
4485
|
"aria-label": "Breadcrumb",
|
|
4426
|
-
className: [
|
|
4486
|
+
className: [eo.pathBar, i].filter(Boolean).join(" "),
|
|
4427
4487
|
...a,
|
|
4428
4488
|
children: /* @__PURE__ */ t("ol", {
|
|
4429
|
-
className:
|
|
4489
|
+
className: eo.list,
|
|
4430
4490
|
"aria-label": "Path segments",
|
|
4431
4491
|
children: e.map((i, a) => {
|
|
4432
4492
|
let o = a === e.length - 1;
|
|
4433
4493
|
return /* @__PURE__ */ n("li", {
|
|
4434
|
-
className:
|
|
4494
|
+
className: eo.item,
|
|
4435
4495
|
children: [a > 0 && /* @__PURE__ */ t("span", {
|
|
4436
|
-
className:
|
|
4496
|
+
className: eo.separator,
|
|
4437
4497
|
"aria-hidden": "true",
|
|
4438
4498
|
children: /* @__PURE__ */ t("svg", {
|
|
4439
4499
|
width: "12",
|
|
@@ -4450,19 +4510,19 @@ function $a({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
|
4450
4510
|
})
|
|
4451
4511
|
})
|
|
4452
4512
|
}), o ? /* @__PURE__ */ n("span", {
|
|
4453
|
-
className:
|
|
4513
|
+
className: eo.current,
|
|
4454
4514
|
"aria-current": "page",
|
|
4455
4515
|
children: [i.icon && /* @__PURE__ */ t("span", {
|
|
4456
|
-
className:
|
|
4516
|
+
className: eo.icon,
|
|
4457
4517
|
"aria-hidden": "true",
|
|
4458
4518
|
children: i.icon
|
|
4459
4519
|
}), i.label]
|
|
4460
4520
|
}) : /* @__PURE__ */ n("button", {
|
|
4461
4521
|
type: "button",
|
|
4462
|
-
className:
|
|
4522
|
+
className: eo.segment,
|
|
4463
4523
|
onClick: () => r?.(i.path, a),
|
|
4464
4524
|
children: [i.icon && /* @__PURE__ */ t("span", {
|
|
4465
|
-
className:
|
|
4525
|
+
className: eo.icon,
|
|
4466
4526
|
"aria-hidden": "true",
|
|
4467
4527
|
children: i.icon
|
|
4468
4528
|
}), i.label]
|
|
@@ -4472,7 +4532,7 @@ function $a({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
|
4472
4532
|
})
|
|
4473
4533
|
});
|
|
4474
4534
|
}
|
|
4475
|
-
var
|
|
4535
|
+
var no = {
|
|
4476
4536
|
wrapper: "_wrapper_1upmq_1",
|
|
4477
4537
|
svg: "_svg_1upmq_10",
|
|
4478
4538
|
label: "_label_1upmq_15",
|
|
@@ -4481,7 +4541,7 @@ var eo = {
|
|
|
4481
4541
|
legend: "_legend_1upmq_74",
|
|
4482
4542
|
legendLabel: "_legendLabel_1upmq_81",
|
|
4483
4543
|
legendCell: "_legendCell_1upmq_89"
|
|
4484
|
-
},
|
|
4544
|
+
}, ro = [
|
|
4485
4545
|
"Jan",
|
|
4486
4546
|
"Feb",
|
|
4487
4547
|
"Mar",
|
|
@@ -4494,7 +4554,7 @@ var eo = {
|
|
|
4494
4554
|
"Oct",
|
|
4495
4555
|
"Nov",
|
|
4496
4556
|
"Dec"
|
|
4497
|
-
],
|
|
4557
|
+
], io = [
|
|
4498
4558
|
"Sun",
|
|
4499
4559
|
"Mon",
|
|
4500
4560
|
"Tue",
|
|
@@ -4502,30 +4562,30 @@ var eo = {
|
|
|
4502
4562
|
"Thu",
|
|
4503
4563
|
"Fri",
|
|
4504
4564
|
"Sat"
|
|
4505
|
-
],
|
|
4565
|
+
], ao = 28, oo = 20, so = [
|
|
4506
4566
|
"var(--gnome-card-shade-color, rgba(0,0,0,0.07))",
|
|
4507
4567
|
"var(--gnome-green-1, #8ff0a4)",
|
|
4508
4568
|
"var(--gnome-green-2, #57e389)",
|
|
4509
4569
|
"var(--gnome-green-4, #2ec27e)",
|
|
4510
4570
|
"var(--gnome-green-5, #26a269)"
|
|
4511
4571
|
];
|
|
4512
|
-
function
|
|
4572
|
+
function co(e) {
|
|
4513
4573
|
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
4514
4574
|
}
|
|
4515
|
-
function
|
|
4575
|
+
function lo(e) {
|
|
4516
4576
|
let [t, n, r] = e.split("-").map(Number);
|
|
4517
4577
|
return new Date(t, n - 1, r);
|
|
4518
4578
|
}
|
|
4519
|
-
function
|
|
4520
|
-
return
|
|
4579
|
+
function uo(e) {
|
|
4580
|
+
return lo(e).toLocaleDateString("en-US", {
|
|
4521
4581
|
weekday: "long",
|
|
4522
4582
|
year: "numeric",
|
|
4523
4583
|
month: "long",
|
|
4524
4584
|
day: "numeric"
|
|
4525
4585
|
});
|
|
4526
4586
|
}
|
|
4527
|
-
function
|
|
4528
|
-
let y = a + o, b = f(null), x = f(null), S = i ??
|
|
4587
|
+
function fo({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap: o = 3, weekStartDay: s = 1, showMonthLabels: c = !0, showDayLabels: l = !0, showLegend: u = !0, weeks: m = 52, ariaLabel: h = "Contribution graph", onDayClick: g, tooltipContent: _, className: v }) {
|
|
4588
|
+
let y = a + o, b = f(null), x = f(null), S = i ?? so, [C, w] = p({
|
|
4529
4589
|
col: 0,
|
|
4530
4590
|
row: 0
|
|
4531
4591
|
}), [T, E] = p(null), D = d(() => {
|
|
@@ -4544,13 +4604,13 @@ function lo({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4544
4604
|
let n = new Date(i);
|
|
4545
4605
|
n.setDate(i.getDate() + t * 7), n.getMonth() !== c && (o.push({
|
|
4546
4606
|
col: t,
|
|
4547
|
-
month:
|
|
4607
|
+
month: ro[n.getMonth()]
|
|
4548
4608
|
}), c = n.getMonth());
|
|
4549
4609
|
let s = [];
|
|
4550
4610
|
for (let n = 0; n < 7; n++) {
|
|
4551
4611
|
let a = new Date(i);
|
|
4552
4612
|
a.setDate(i.getDate() + t * 7 + n);
|
|
4553
|
-
let o = a > e, c =
|
|
4613
|
+
let o = a > e, c = co(a), l = o ? 0 : D.get(c) ?? 0, u = l === 0 ? 0 : Math.min(r, Math.ceil(l / O * r));
|
|
4554
4614
|
s.push({
|
|
4555
4615
|
iso: c,
|
|
4556
4616
|
count: l,
|
|
@@ -4576,8 +4636,8 @@ function lo({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4576
4636
|
5
|
|
4577
4637
|
].map((e) => ({
|
|
4578
4638
|
row: (e - s + 7) % 7,
|
|
4579
|
-
label:
|
|
4580
|
-
})), [s]), M = l ?
|
|
4639
|
+
label: io[e]
|
|
4640
|
+
})), [s]), M = l ? ao : 0, N = c ? oo : 0, P = M + m * y - o, F = N + 7 * y - o, I = Math.min(4, Math.floor(a / 3));
|
|
4581
4641
|
function ee(e, t) {
|
|
4582
4642
|
let n = Math.max(0, Math.min(m - 1, e)), r = Math.max(0, Math.min(6, t));
|
|
4583
4643
|
w({
|
|
@@ -4616,33 +4676,33 @@ function lo({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4616
4676
|
return e.future ? S[0] : S[Math.min(e.level, S.length - 1)] ?? S[S.length - 1];
|
|
4617
4677
|
}
|
|
4618
4678
|
function ie(e) {
|
|
4619
|
-
return e.future ?
|
|
4679
|
+
return e.future ? uo(e.iso) : _?.({
|
|
4620
4680
|
date: e.iso,
|
|
4621
4681
|
count: e.count
|
|
4622
|
-
}) ?? `${e.count} contribution${e.count === 1 ? "" : "s"} on ${
|
|
4682
|
+
}) ?? `${e.count} contribution${e.count === 1 ? "" : "s"} on ${uo(e.iso)}`;
|
|
4623
4683
|
}
|
|
4624
4684
|
return /* @__PURE__ */ n("div", {
|
|
4625
4685
|
ref: x,
|
|
4626
|
-
className: [
|
|
4686
|
+
className: [no.wrapper, v].filter(Boolean).join(" "),
|
|
4627
4687
|
children: [
|
|
4628
4688
|
/* @__PURE__ */ n("svg", {
|
|
4629
4689
|
ref: b,
|
|
4630
4690
|
width: P,
|
|
4631
4691
|
height: F,
|
|
4632
|
-
className:
|
|
4692
|
+
className: no.svg,
|
|
4633
4693
|
"aria-label": h,
|
|
4634
4694
|
role: "img",
|
|
4635
4695
|
children: [
|
|
4636
4696
|
c && A.map(({ col: e, month: n }) => /* @__PURE__ */ t("text", {
|
|
4637
4697
|
x: M + e * y,
|
|
4638
4698
|
y: 12,
|
|
4639
|
-
className:
|
|
4699
|
+
className: no.label,
|
|
4640
4700
|
children: n
|
|
4641
4701
|
}, `m-${e}`)),
|
|
4642
4702
|
l && j.map(({ row: e, label: n }) => /* @__PURE__ */ t("text", {
|
|
4643
4703
|
x: 0,
|
|
4644
4704
|
y: N + e * y + a - 1,
|
|
4645
|
-
className:
|
|
4705
|
+
className: no.label,
|
|
4646
4706
|
children: n
|
|
4647
4707
|
}, `d-${e}`)),
|
|
4648
4708
|
/* @__PURE__ */ t("g", {
|
|
@@ -4662,7 +4722,7 @@ function lo({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4662
4722
|
rx: I,
|
|
4663
4723
|
fill: re(e),
|
|
4664
4724
|
opacity: e.future ? .35 : 1,
|
|
4665
|
-
className:
|
|
4725
|
+
className: no.cell,
|
|
4666
4726
|
role: "gridcell",
|
|
4667
4727
|
"aria-label": i,
|
|
4668
4728
|
"aria-disabled": e.future || void 0,
|
|
@@ -4685,7 +4745,7 @@ function lo({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4685
4745
|
]
|
|
4686
4746
|
}),
|
|
4687
4747
|
T && /* @__PURE__ */ t("div", {
|
|
4688
|
-
className:
|
|
4748
|
+
className: no.tooltip,
|
|
4689
4749
|
style: {
|
|
4690
4750
|
left: T.x,
|
|
4691
4751
|
top: T.y
|
|
@@ -4694,17 +4754,17 @@ function lo({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4694
4754
|
children: T.text
|
|
4695
4755
|
}),
|
|
4696
4756
|
u && /* @__PURE__ */ n("div", {
|
|
4697
|
-
className:
|
|
4757
|
+
className: no.legend,
|
|
4698
4758
|
children: [
|
|
4699
4759
|
/* @__PURE__ */ t("span", {
|
|
4700
|
-
className:
|
|
4760
|
+
className: no.legendLabel,
|
|
4701
4761
|
children: "Less"
|
|
4702
4762
|
}),
|
|
4703
4763
|
Array.from({ length: r + 1 }, (e, n) => /* @__PURE__ */ t("svg", {
|
|
4704
4764
|
width: a,
|
|
4705
4765
|
height: a,
|
|
4706
4766
|
"aria-hidden": "true",
|
|
4707
|
-
className:
|
|
4767
|
+
className: no.legendCell,
|
|
4708
4768
|
children: /* @__PURE__ */ t("rect", {
|
|
4709
4769
|
width: a,
|
|
4710
4770
|
height: a,
|
|
@@ -4713,7 +4773,7 @@ function lo({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4713
4773
|
})
|
|
4714
4774
|
}, n)),
|
|
4715
4775
|
/* @__PURE__ */ t("span", {
|
|
4716
|
-
className:
|
|
4776
|
+
className: no.legendLabel,
|
|
4717
4777
|
children: "More"
|
|
4718
4778
|
})
|
|
4719
4779
|
]
|
|
@@ -4744,12 +4804,12 @@ var $ = {
|
|
|
4744
4804
|
checkbox: "_checkbox_1pg3h_170",
|
|
4745
4805
|
emptyCell: "_emptyCell_1pg3h_186",
|
|
4746
4806
|
emptyLabel: "_emptyLabel_1pg3h_191"
|
|
4747
|
-
},
|
|
4807
|
+
}, po = {
|
|
4748
4808
|
start: $.alignStart,
|
|
4749
4809
|
center: $.alignCenter,
|
|
4750
4810
|
end: $.alignEnd
|
|
4751
4811
|
};
|
|
4752
|
-
function
|
|
4812
|
+
function mo({ direction: r }) {
|
|
4753
4813
|
return /* @__PURE__ */ t("svg", {
|
|
4754
4814
|
width: "10",
|
|
4755
4815
|
height: "10",
|
|
@@ -4773,7 +4833,7 @@ function fo({ direction: r }) {
|
|
|
4773
4833
|
})] })
|
|
4774
4834
|
});
|
|
4775
4835
|
}
|
|
4776
|
-
function
|
|
4836
|
+
function ho({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selectedRows: o = [], onSelectionChange: s, sortState: c, onSort: l, height: u, emptyState: d, className: m, ariaLabel: h }) {
|
|
4777
4837
|
let g = f(null), [_, v] = p(0), y = new Set(o), b = a === "multiple", x = e.length + (b ? 1 : 0);
|
|
4778
4838
|
function S(e) {
|
|
4779
4839
|
l && l(e, c?.columnId === e && c.direction === "asc" ? "desc" : "asc");
|
|
@@ -4828,14 +4888,14 @@ function po({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selecte
|
|
|
4828
4888
|
}), e.map((e) => {
|
|
4829
4889
|
let r = c?.columnId === e.id;
|
|
4830
4890
|
return /* @__PURE__ */ t("th", {
|
|
4831
|
-
className: [$.th, e.align ?
|
|
4891
|
+
className: [$.th, e.align ? po[e.align] : null].filter(Boolean).join(" "),
|
|
4832
4892
|
style: e.width ? { width: e.width } : void 0,
|
|
4833
4893
|
"aria-sort": r ? c.direction === "asc" ? "ascending" : "descending" : e.sortable ? "none" : void 0,
|
|
4834
4894
|
children: e.sortable && l ? /* @__PURE__ */ n("button", {
|
|
4835
4895
|
type: "button",
|
|
4836
4896
|
className: [$.sortBtn, r ? $.sortBtnActive : null].filter(Boolean).join(" "),
|
|
4837
4897
|
onClick: () => S(e.id),
|
|
4838
|
-
children: [/* @__PURE__ */ t("span", { children: e.header }), /* @__PURE__ */ t(
|
|
4898
|
+
children: [/* @__PURE__ */ t("span", { children: e.header }), /* @__PURE__ */ t(mo, { direction: r ? c.direction : null })]
|
|
4839
4899
|
}) : /* @__PURE__ */ t("span", {
|
|
4840
4900
|
className: $.headerLabel,
|
|
4841
4901
|
children: e.header
|
|
@@ -4878,7 +4938,7 @@ function po({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selecte
|
|
|
4878
4938
|
"aria-label": `Select row ${o + 1}`
|
|
4879
4939
|
})
|
|
4880
4940
|
}), e.map((e) => /* @__PURE__ */ t("td", {
|
|
4881
|
-
className: [$.td, e.align ?
|
|
4941
|
+
className: [$.td, e.align ? po[e.align] : null].filter(Boolean).join(" "),
|
|
4882
4942
|
role: "gridcell",
|
|
4883
4943
|
children: e.cell(r, o)
|
|
4884
4944
|
}, e.id))]
|
|
@@ -4890,6 +4950,6 @@ function po({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selecte
|
|
|
4890
4950
|
});
|
|
4891
4951
|
}
|
|
4892
4952
|
//#endregion
|
|
4893
|
-
export {
|
|
4953
|
+
export { It as ActionRow, ne as Avatar, je as Badge, Te as Banner, ba as Bin, g as Blockquote, ha as BottomSheet, br as Box, Rt as BoxedList, Zr as BreakpointBin, v as Button, Sa as ButtonContent, $r as ButtonRow, M as Card, ya as Carousel, _a as CarouselIndicatorDots, va as CarouselIndicatorLines, _i as CheckRow, ce as Checkbox, wr as Chip, cr as Clamp, ho as ColumnView, Bi as ComboRow, fo as ContributionGraph, Ne as CountDownTimer, jn as Dialog, Xn as Dropdown, Hi as EntryRow, li as ExpanderRow, ke as Footer, ci as Frame, We as GNOME_BREAKPOINTS, De as HeaderBar, L as Icon, pi as InlineViewSwitcher, mi as InlineViewSwitcherItem, mr as Link, oi as LinkedGroup, aa as NavigationPage, lr as NavigationSplitView, oa as NavigationView, ur as OverlaySplitView, Wi as PasswordEntryRow, to as PathBar, or as Popover, Qa as PreferencesDialog, ja as PreferencesGroup, Na as PreferencesPage, me as ProgressBar, fe as RadioButton, Ve as SearchBar, ie as Separator, Ta as ShortcutLabel, Gr as ShortcutsDialog, St as Sidebar, _t as SidebarCollapsedContext, Ot as SidebarItem, Ct as SidebarSection, tr as Slider, ii as Spacer, Mt as SpinButton, Ji as SpinRow, P as Spinner, ti as SplitButton, Ue as StatusPage, oe as Switch, gi as SwitchRow, Nt as TabBar, Pt as TabItem, Ft as TabPanel, O as Text, ue as TextField, $a as Timeline, Zt as Toast, Qt as Toaster, vr as ToggleGroup, yr as ToggleGroupItem, ri as Toolbar, Da as ToolbarView, Dt as Tooltip, Bt as ViewSwitcher, fr as ViewSwitcherBar, Vt as ViewSwitcherItem, Yr as ViewSwitcherSidebar, Xr as ViewSwitcherSidebarItem, ka as WindowTitle, Sr as WrapBox, Ge as useBreakpoint, ia as useNavigation, vt as useSidebarCollapsed };
|
|
4894
4954
|
|
|
4895
4955
|
//# sourceMappingURL=index.js.map
|