@indxsearch/systm 2.14.0 → 2.14.1
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/CHANGELOG.md +6 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +280 -274
- package/dist/systm.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -557,15 +557,15 @@ function le({ label: t, error: n, className: r = "", isValid: i = !0, variant: a
|
|
|
557
557
|
]
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
var
|
|
560
|
+
var z = {
|
|
561
561
|
radioWrapper: "_radioWrapper_1faq0_1",
|
|
562
562
|
radioInput: "_radioInput_1faq0_9",
|
|
563
563
|
customRadio: "_customRadio_1faq0_23",
|
|
564
564
|
labelText: "_labelText_1faq0_57",
|
|
565
565
|
disabled: "_disabled_1faq0_63"
|
|
566
|
-
},
|
|
566
|
+
}, ue = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ d("label", {
|
|
567
567
|
htmlFor: e,
|
|
568
|
-
className: `${
|
|
568
|
+
className: `${z.radioWrapper} ${o ? z.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
569
569
|
children: [
|
|
570
570
|
/* @__PURE__ */ u("input", {
|
|
571
571
|
id: e,
|
|
@@ -576,24 +576,24 @@ var ue = {
|
|
|
576
576
|
onChange: a,
|
|
577
577
|
disabled: o,
|
|
578
578
|
"aria-label": s,
|
|
579
|
-
className:
|
|
579
|
+
className: z.radioInput
|
|
580
580
|
}),
|
|
581
|
-
/* @__PURE__ */ u("span", { className:
|
|
581
|
+
/* @__PURE__ */ u("span", { className: z.customRadio }),
|
|
582
582
|
/* @__PURE__ */ u("span", {
|
|
583
|
-
className:
|
|
583
|
+
className: z.labelText,
|
|
584
584
|
children: r
|
|
585
585
|
})
|
|
586
586
|
]
|
|
587
|
-
}),
|
|
587
|
+
}), de = {
|
|
588
588
|
switch: "_switch_1xsea_1",
|
|
589
589
|
slider: "_slider_1xsea_23",
|
|
590
590
|
label: "_label_1xsea_28",
|
|
591
591
|
disabled: "_disabled_1xsea_43"
|
|
592
|
-
},
|
|
592
|
+
}, fe = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o }) => {
|
|
593
593
|
let s = e.useId(), c = t || s;
|
|
594
594
|
return /* @__PURE__ */ d("label", {
|
|
595
595
|
htmlFor: c,
|
|
596
|
-
className: `${
|
|
596
|
+
className: `${de.switch} ${i ? de.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
597
597
|
children: [
|
|
598
598
|
/* @__PURE__ */ u("input", {
|
|
599
599
|
id: c,
|
|
@@ -606,16 +606,16 @@ var ue = {
|
|
|
606
606
|
disabled: i
|
|
607
607
|
}),
|
|
608
608
|
/* @__PURE__ */ u("span", {
|
|
609
|
-
className:
|
|
609
|
+
className: de.slider,
|
|
610
610
|
"aria-hidden": "true"
|
|
611
611
|
}),
|
|
612
612
|
a && /* @__PURE__ */ u("span", {
|
|
613
|
-
className:
|
|
613
|
+
className: de.label,
|
|
614
614
|
children: a
|
|
615
615
|
})
|
|
616
616
|
]
|
|
617
617
|
});
|
|
618
|
-
},
|
|
618
|
+
}, B = {
|
|
619
619
|
label: "_label_12as9_1",
|
|
620
620
|
basetrack: "_basetrack_12as9_8",
|
|
621
621
|
selectedtrack: "_selectedtrack_12as9_36",
|
|
@@ -624,15 +624,15 @@ var ue = {
|
|
|
624
624
|
livetrackDefault: "_livetrackDefault_12as9_52",
|
|
625
625
|
thumbs: "_thumbs_12as9_55",
|
|
626
626
|
disabled: "_disabled_12as9_89"
|
|
627
|
-
},
|
|
627
|
+
}, pe = (t) => {
|
|
628
628
|
let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted: f = !0, onChange: p, onFinalChange: m, label: h, "aria-label": g, id: _ } = t, v = e.useId(), y = _ || v;
|
|
629
629
|
if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ d("div", {
|
|
630
630
|
className: o,
|
|
631
631
|
children: [h && /* @__PURE__ */ u("span", {
|
|
632
|
-
className:
|
|
632
|
+
className: B.label,
|
|
633
633
|
children: h
|
|
634
634
|
}), /* @__PURE__ */ u("div", {
|
|
635
|
-
className: `${
|
|
635
|
+
className: `${B.basetrack} ${B.disabled}`,
|
|
636
636
|
"aria-hidden": "true"
|
|
637
637
|
})]
|
|
638
638
|
});
|
|
@@ -642,7 +642,7 @@ var ue = {
|
|
|
642
642
|
className: o,
|
|
643
643
|
children: [h && /* @__PURE__ */ u("label", {
|
|
644
644
|
htmlFor: y,
|
|
645
|
-
className:
|
|
645
|
+
className: B.label,
|
|
646
646
|
children: h
|
|
647
647
|
}), /* @__PURE__ */ u(E, {
|
|
648
648
|
step: i,
|
|
@@ -656,11 +656,11 @@ var ue = {
|
|
|
656
656
|
let { key: i, ...a } = e, o = r - n, p = (f - n) / o * 100, m = (_ - f) / o * 100, h = 0, g = 0, v = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
|
|
657
657
|
return v && (h = (s - n) / o * 100, g = (c - s) / o * 100), /* @__PURE__ */ d("div", {
|
|
658
658
|
...a,
|
|
659
|
-
className:
|
|
659
|
+
className: B.basetrack,
|
|
660
660
|
style: { ...a.style },
|
|
661
661
|
children: [
|
|
662
662
|
!v && /* @__PURE__ */ u("div", {
|
|
663
|
-
className:
|
|
663
|
+
className: B.selectedtrack,
|
|
664
664
|
style: {
|
|
665
665
|
left: `${p}%`,
|
|
666
666
|
width: `${m}%`,
|
|
@@ -668,7 +668,7 @@ var ue = {
|
|
|
668
668
|
}
|
|
669
669
|
}),
|
|
670
670
|
v && /* @__PURE__ */ u("div", {
|
|
671
|
-
className: `${
|
|
671
|
+
className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
|
|
672
672
|
style: {
|
|
673
673
|
left: `${h}%`,
|
|
674
674
|
width: `${g}%`,
|
|
@@ -684,7 +684,7 @@ var ue = {
|
|
|
684
684
|
return /* @__PURE__ */ u("div", {
|
|
685
685
|
...o,
|
|
686
686
|
id: t === 0 ? y : void 0,
|
|
687
|
-
className: `${
|
|
687
|
+
className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
|
|
688
688
|
style: {
|
|
689
689
|
...o.style,
|
|
690
690
|
zIndex: "3"
|
|
@@ -703,7 +703,7 @@ var ue = {
|
|
|
703
703
|
className: o,
|
|
704
704
|
children: [h && /* @__PURE__ */ u("label", {
|
|
705
705
|
htmlFor: y,
|
|
706
|
-
className:
|
|
706
|
+
className: B.label,
|
|
707
707
|
children: h
|
|
708
708
|
}), /* @__PURE__ */ u(E, {
|
|
709
709
|
step: i,
|
|
@@ -717,11 +717,11 @@ var ue = {
|
|
|
717
717
|
let { key: a, ...o } = t, f = r - n, p = (e - n) / f * 100, m = 0, h = 0, g = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
|
|
718
718
|
return g && (m = (s - n) / f * 100, h = (c - s) / f * 100), /* @__PURE__ */ d("div", {
|
|
719
719
|
...o,
|
|
720
|
-
className:
|
|
720
|
+
className: B.basetrack,
|
|
721
721
|
style: { ...o.style },
|
|
722
722
|
children: [
|
|
723
723
|
!g && /* @__PURE__ */ u("div", {
|
|
724
|
-
className:
|
|
724
|
+
className: B.selectedtrack,
|
|
725
725
|
style: {
|
|
726
726
|
left: "0%",
|
|
727
727
|
width: `${p}%`,
|
|
@@ -729,7 +729,7 @@ var ue = {
|
|
|
729
729
|
}
|
|
730
730
|
}),
|
|
731
731
|
g && /* @__PURE__ */ u("div", {
|
|
732
|
-
className: `${
|
|
732
|
+
className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
|
|
733
733
|
style: {
|
|
734
734
|
left: `${m}%`,
|
|
735
735
|
width: `${h}%`,
|
|
@@ -745,7 +745,7 @@ var ue = {
|
|
|
745
745
|
return /* @__PURE__ */ u("div", {
|
|
746
746
|
...o,
|
|
747
747
|
id: y,
|
|
748
|
-
className: `${
|
|
748
|
+
className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
|
|
749
749
|
style: {
|
|
750
750
|
...o.style,
|
|
751
751
|
zIndex: "3"
|
|
@@ -759,7 +759,7 @@ var ue = {
|
|
|
759
759
|
})]
|
|
760
760
|
});
|
|
761
761
|
}
|
|
762
|
-
},
|
|
762
|
+
}, V = {
|
|
763
763
|
wrapper: "_wrapper_15fsv_1",
|
|
764
764
|
label: "_label_15fsv_7",
|
|
765
765
|
trigger: "_trigger_15fsv_12",
|
|
@@ -771,14 +771,14 @@ var ue = {
|
|
|
771
771
|
viewport: "_viewport_15fsv_76",
|
|
772
772
|
item: "_item_15fsv_82",
|
|
773
773
|
itemIndicator: "_itemIndicator_15fsv_105"
|
|
774
|
-
},
|
|
774
|
+
}, me = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", "aria-label": l, id: f }) => {
|
|
775
775
|
let p = e.useId(), g = f || p, _ = `${g}-label`, v = r.find((e) => e.value === t), y = /* @__PURE__ */ d(D.Root, {
|
|
776
776
|
value: t,
|
|
777
777
|
onValueChange: n,
|
|
778
778
|
disabled: o,
|
|
779
779
|
children: [/* @__PURE__ */ d(D.Trigger, {
|
|
780
780
|
id: g,
|
|
781
|
-
className: `${
|
|
781
|
+
className: `${V.trigger} ${V[c]} ${a} cursor-pointer`,
|
|
782
782
|
...s ? { "aria-labelledby": _ } : l ? { "aria-label": l } : {},
|
|
783
783
|
children: [/* @__PURE__ */ d("span", {
|
|
784
784
|
style: {
|
|
@@ -788,7 +788,7 @@ var ue = {
|
|
|
788
788
|
},
|
|
789
789
|
children: [v?.icon, /* @__PURE__ */ u(D.Value, { placeholder: i })]
|
|
790
790
|
}), /* @__PURE__ */ u(D.Icon, {
|
|
791
|
-
className:
|
|
791
|
+
className: V.icon,
|
|
792
792
|
"aria-hidden": "true",
|
|
793
793
|
children: /* @__PURE__ */ u(h, {
|
|
794
794
|
size: c === "large" ? 21 : 14,
|
|
@@ -796,16 +796,16 @@ var ue = {
|
|
|
796
796
|
})
|
|
797
797
|
})]
|
|
798
798
|
}), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
|
|
799
|
-
className:
|
|
799
|
+
className: V.content,
|
|
800
800
|
position: "popper",
|
|
801
801
|
side: "bottom",
|
|
802
802
|
align: "start",
|
|
803
803
|
sideOffset: 4,
|
|
804
804
|
children: /* @__PURE__ */ u(D.Viewport, {
|
|
805
|
-
className:
|
|
805
|
+
className: V.viewport,
|
|
806
806
|
children: r.map((e) => /* @__PURE__ */ d(D.Item, {
|
|
807
807
|
value: e.value,
|
|
808
|
-
className:
|
|
808
|
+
className: V.item,
|
|
809
809
|
children: [/* @__PURE__ */ d("span", {
|
|
810
810
|
style: {
|
|
811
811
|
display: "inline-flex",
|
|
@@ -814,7 +814,7 @@ var ue = {
|
|
|
814
814
|
},
|
|
815
815
|
children: [e.icon, /* @__PURE__ */ u(D.ItemText, { children: e.label })]
|
|
816
816
|
}), /* @__PURE__ */ u(D.ItemIndicator, {
|
|
817
|
-
className:
|
|
817
|
+
className: V.itemIndicator,
|
|
818
818
|
children: /* @__PURE__ */ u(m, {
|
|
819
819
|
size: 12,
|
|
820
820
|
color: "currentColor"
|
|
@@ -825,22 +825,22 @@ var ue = {
|
|
|
825
825
|
}) })]
|
|
826
826
|
});
|
|
827
827
|
return s ? /* @__PURE__ */ d("div", {
|
|
828
|
-
className:
|
|
828
|
+
className: V.wrapper,
|
|
829
829
|
children: [/* @__PURE__ */ u("label", {
|
|
830
830
|
id: _,
|
|
831
831
|
htmlFor: g,
|
|
832
|
-
className:
|
|
832
|
+
className: V.label,
|
|
833
833
|
children: s
|
|
834
834
|
}), y]
|
|
835
835
|
}) : y;
|
|
836
|
-
},
|
|
836
|
+
}, he = { content: "_content_1qahr_1" }, ge = ({ trigger: e, children: t, open: n, onOpenChange: r, align: i = "end", side: a = "bottom", sideOffset: o = 5, className: s = "", "aria-label": c, "aria-describedby": l }) => /* @__PURE__ */ d(O.Root, {
|
|
837
837
|
open: n,
|
|
838
838
|
onOpenChange: r,
|
|
839
839
|
children: [/* @__PURE__ */ u(O.Trigger, {
|
|
840
840
|
asChild: !0,
|
|
841
841
|
children: e
|
|
842
842
|
}), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ u(O.Content, {
|
|
843
|
-
className: `${
|
|
843
|
+
className: `${he.content} ${s}`,
|
|
844
844
|
align: i,
|
|
845
845
|
side: a,
|
|
846
846
|
sideOffset: o,
|
|
@@ -848,7 +848,7 @@ var ue = {
|
|
|
848
848
|
"aria-describedby": l,
|
|
849
849
|
children: t
|
|
850
850
|
}) })]
|
|
851
|
-
}),
|
|
851
|
+
}), H = {
|
|
852
852
|
table: "_table_j6zqj_1",
|
|
853
853
|
caption: "_caption_j6zqj_8",
|
|
854
854
|
headerRow: "_headerRow_j6zqj_25",
|
|
@@ -864,17 +864,17 @@ var ue = {
|
|
|
864
864
|
};
|
|
865
865
|
//#endregion
|
|
866
866
|
//#region src/components/Table/Table.tsx
|
|
867
|
-
function
|
|
867
|
+
function _e({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
|
|
868
868
|
let o = /* @__PURE__ */ d("table", {
|
|
869
|
-
className: `${
|
|
869
|
+
className: `${H.table} ${r && i ? H.stickyFirst : ""}`,
|
|
870
870
|
"aria-label": n,
|
|
871
871
|
children: [t && /* @__PURE__ */ u("caption", {
|
|
872
|
-
className:
|
|
872
|
+
className: H.caption,
|
|
873
873
|
children: t
|
|
874
874
|
}), e]
|
|
875
875
|
});
|
|
876
876
|
return r ? /* @__PURE__ */ u("div", {
|
|
877
|
-
className: `${
|
|
877
|
+
className: `${H.scroll} ${a === void 0 ? "" : H.bleedEnd}`,
|
|
878
878
|
style: a === void 0 ? void 0 : { "--table-bleed": typeof a == "number" ? `${a}px` : a },
|
|
879
879
|
role: "region",
|
|
880
880
|
"aria-label": n ?? t,
|
|
@@ -884,27 +884,27 @@ function ve({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stic
|
|
|
884
884
|
}
|
|
885
885
|
//#endregion
|
|
886
886
|
//#region src/components/Table/TableHeader.tsx
|
|
887
|
-
function
|
|
887
|
+
function ve({ children: t }) {
|
|
888
888
|
let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ u("th", {
|
|
889
889
|
scope: "col",
|
|
890
890
|
...t.props
|
|
891
891
|
}) : t);
|
|
892
892
|
return /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", {
|
|
893
|
-
className:
|
|
893
|
+
className: H.headerRow,
|
|
894
894
|
children: n
|
|
895
895
|
}) });
|
|
896
896
|
}
|
|
897
897
|
//#endregion
|
|
898
898
|
//#region src/components/Table/TableRow.tsx
|
|
899
|
-
function
|
|
899
|
+
function ye({ children: e }) {
|
|
900
900
|
return /* @__PURE__ */ u("tr", {
|
|
901
|
-
className:
|
|
901
|
+
className: H.dataRow,
|
|
902
902
|
children: e
|
|
903
903
|
});
|
|
904
904
|
}
|
|
905
905
|
//#endregion
|
|
906
906
|
//#region src/components/Table/TableCell.tsx
|
|
907
|
-
function
|
|
907
|
+
function be({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
|
|
908
908
|
let a = n ? "th" : "td", o = {
|
|
909
909
|
...n && r ? { scope: r } : {},
|
|
910
910
|
...i ? { colSpan: i } : {}
|
|
@@ -912,12 +912,12 @@ function xe({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
|
|
|
912
912
|
return e || t ? /* @__PURE__ */ u(a, {
|
|
913
913
|
...o,
|
|
914
914
|
children: /* @__PURE__ */ d("div", {
|
|
915
|
-
className:
|
|
915
|
+
className: H.cellInner,
|
|
916
916
|
children: [e && /* @__PURE__ */ u("span", {
|
|
917
|
-
className:
|
|
917
|
+
className: H.cellLabel,
|
|
918
918
|
children: e
|
|
919
919
|
}), t && /* @__PURE__ */ u("div", {
|
|
920
|
-
className:
|
|
920
|
+
className: H.cellContent,
|
|
921
921
|
children: t
|
|
922
922
|
})]
|
|
923
923
|
})
|
|
@@ -928,18 +928,18 @@ function xe({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
|
|
|
928
928
|
}
|
|
929
929
|
//#endregion
|
|
930
930
|
//#region src/components/Table/TableValue.tsx
|
|
931
|
-
function
|
|
931
|
+
function xe({ children: e }) {
|
|
932
932
|
return /* @__PURE__ */ u("span", {
|
|
933
|
-
className:
|
|
933
|
+
className: H.value,
|
|
934
934
|
children: e
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
937
|
//#endregion
|
|
938
938
|
//#region src/components/Table/TableIcon.tsx
|
|
939
|
-
function
|
|
939
|
+
function Se({ children: t, "aria-label": n }) {
|
|
940
940
|
let r = !n;
|
|
941
941
|
return /* @__PURE__ */ u("span", {
|
|
942
|
-
className:
|
|
942
|
+
className: H.icon,
|
|
943
943
|
"aria-hidden": r ? "true" : void 0,
|
|
944
944
|
"aria-label": n,
|
|
945
945
|
children: e.cloneElement(t, {
|
|
@@ -948,7 +948,7 @@ function Ce({ children: t, "aria-label": n }) {
|
|
|
948
948
|
})
|
|
949
949
|
});
|
|
950
950
|
}
|
|
951
|
-
var
|
|
951
|
+
var U = {
|
|
952
952
|
tabs: "_tabs_5w265_1",
|
|
953
953
|
scrollable: "_scrollable_5w265_16",
|
|
954
954
|
tab: "_tab_5w265_1",
|
|
@@ -963,23 +963,23 @@ var H = {
|
|
|
963
963
|
};
|
|
964
964
|
//#endregion
|
|
965
965
|
//#region src/components/Tabs/Tabs.tsx
|
|
966
|
-
function
|
|
966
|
+
function Ce(e, t) {
|
|
967
967
|
if (!e || !t) return;
|
|
968
968
|
let n = parseFloat(getComputedStyle(e).paddingInlineStart) || 32, r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
969
969
|
i.left < r.left + n ? e.scrollLeft -= r.left + n - i.left : i.right > r.right - n && (e.scrollLeft += i.right - (r.right - n));
|
|
970
970
|
}
|
|
971
|
-
var
|
|
971
|
+
var we = {
|
|
972
972
|
micro: 14,
|
|
973
973
|
default: 14,
|
|
974
974
|
large: 21
|
|
975
975
|
};
|
|
976
|
-
function
|
|
976
|
+
function Te({ items: e, value: r, onValueChange: o, size: c = "default", variant: f = "underline", scrollable: p = !1, bleed: m, getPanelId: h, "aria-label": g, renderLink: _ }) {
|
|
977
977
|
let v = s(null), y = s(/* @__PURE__ */ new Map()), b = a(), x = Math.max(e.findIndex((e) => e.value === r), 0), S = e.some((e) => e.href !== void 0), C = (t) => {
|
|
978
978
|
let n = e[t];
|
|
979
979
|
if (!n) return;
|
|
980
980
|
o(n.value);
|
|
981
981
|
let r = y.current.get(n.value);
|
|
982
|
-
r?.focus({ preventScroll: !0 }), p &&
|
|
982
|
+
r?.focus({ preventScroll: !0 }), p && Ce(v.current, r);
|
|
983
983
|
}, w = (t, n) => {
|
|
984
984
|
for (let r = 1; r <= e.length; r++) {
|
|
985
985
|
let i = (t + n * r + e.length * r) % e.length;
|
|
@@ -1026,27 +1026,27 @@ function Ee({ items: e, value: r, onValueChange: o, size: c = "default", variant
|
|
|
1026
1026
|
m,
|
|
1027
1027
|
e.length
|
|
1028
1028
|
]), i(() => {
|
|
1029
|
-
p &&
|
|
1029
|
+
p && Ce(v.current, y.current.get(r));
|
|
1030
1030
|
}, [p, r]), /* @__PURE__ */ u("div", {
|
|
1031
1031
|
ref: v,
|
|
1032
|
-
className: `${
|
|
1032
|
+
className: `${U.tabs} ${f === "button" ? U.buttonVariant : ""} ${p ? U.scrollable : ""} ${p && m !== void 0 ? U.bleed : ""}`,
|
|
1033
1033
|
style: p && m !== void 0 ? { "--tabs-bleed": typeof m == "number" ? `${m}px` : m } : void 0,
|
|
1034
1034
|
role: S ? "navigation" : "tablist",
|
|
1035
1035
|
"aria-label": g,
|
|
1036
1036
|
children: e.map((e, r) => {
|
|
1037
1037
|
let i = r === x, a = /* @__PURE__ */ d(l, { children: [
|
|
1038
1038
|
e.icon ? /* @__PURE__ */ u("span", {
|
|
1039
|
-
className:
|
|
1039
|
+
className: U.icon,
|
|
1040
1040
|
"aria-hidden": "true",
|
|
1041
|
-
children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size:
|
|
1041
|
+
children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: we[c] }) : e.icon
|
|
1042
1042
|
}) : null,
|
|
1043
1043
|
e.label,
|
|
1044
1044
|
e.badge != null && e.badge !== !1 ? /* @__PURE__ */ u("span", {
|
|
1045
|
-
className:
|
|
1045
|
+
className: U.badge,
|
|
1046
1046
|
title: e.badgeTitle,
|
|
1047
1047
|
children: e.badge
|
|
1048
1048
|
}) : null
|
|
1049
|
-
] }), s = `${
|
|
1049
|
+
] }), s = `${U.tab} ${U[c]} ${i ? U.active : ""}`;
|
|
1050
1050
|
if (e.href !== void 0) {
|
|
1051
1051
|
let t = {
|
|
1052
1052
|
id: `${b}-tab-${e.value}`,
|
|
@@ -1088,7 +1088,7 @@ function Ee({ items: e, value: r, onValueChange: o, size: c = "default", variant
|
|
|
1088
1088
|
})
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
1091
|
-
var
|
|
1091
|
+
var W = {
|
|
1092
1092
|
root: "_root_wrjxq_1",
|
|
1093
1093
|
micro: "_micro_wrjxq_2",
|
|
1094
1094
|
default: "_default_wrjxq_3",
|
|
@@ -1108,106 +1108,106 @@ var U = {
|
|
|
1108
1108
|
};
|
|
1109
1109
|
//#endregion
|
|
1110
1110
|
//#region src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
1111
|
-
function
|
|
1111
|
+
function Ee(t) {
|
|
1112
1112
|
return e.isValidElement(t) ? e.cloneElement(t, {
|
|
1113
1113
|
size: "14px",
|
|
1114
1114
|
color: "currentColor"
|
|
1115
1115
|
}) : t;
|
|
1116
1116
|
}
|
|
1117
|
-
var
|
|
1117
|
+
var De = "\0action", Oe = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ u(_, {
|
|
1118
1118
|
size: 14,
|
|
1119
1119
|
color: "currentColor"
|
|
1120
1120
|
}), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */ u("nav", {
|
|
1121
1121
|
"aria-label": o,
|
|
1122
|
-
className: `${
|
|
1122
|
+
className: `${W.root} ${W[t]} ${n === "truncate" ? W.truncate : ""} ${r}`,
|
|
1123
1123
|
children: /* @__PURE__ */ u("ol", {
|
|
1124
|
-
className:
|
|
1124
|
+
className: W.list,
|
|
1125
1125
|
children: e.map((t, r) => /* @__PURE__ */ d("li", {
|
|
1126
|
-
className:
|
|
1126
|
+
className: W.item,
|
|
1127
1127
|
children: [r > 0 && /* @__PURE__ */ u("span", {
|
|
1128
|
-
className:
|
|
1128
|
+
className: W.separator,
|
|
1129
1129
|
"aria-hidden": "true",
|
|
1130
1130
|
children: i
|
|
1131
1131
|
}), /* @__PURE__ */ d("div", {
|
|
1132
|
-
className: `${
|
|
1132
|
+
className: `${W.step} ${t.switcher ? W.switchable : ""}`,
|
|
1133
1133
|
children: [t.href ? (() => {
|
|
1134
1134
|
let i = {
|
|
1135
|
-
className:
|
|
1135
|
+
className: W.label,
|
|
1136
1136
|
href: t.href,
|
|
1137
1137
|
title: n === "truncate" ? t.label : void 0,
|
|
1138
1138
|
onClick: t.onClick,
|
|
1139
1139
|
"aria-current": r === e.length - 1 ? "page" : void 0,
|
|
1140
1140
|
children: /* @__PURE__ */ d(l, { children: [t.icon && /* @__PURE__ */ u("span", {
|
|
1141
|
-
className:
|
|
1141
|
+
className: W.icon,
|
|
1142
1142
|
"aria-hidden": "true",
|
|
1143
|
-
children:
|
|
1143
|
+
children: Ee(t.icon)
|
|
1144
1144
|
}), /* @__PURE__ */ u("span", {
|
|
1145
|
-
className:
|
|
1145
|
+
className: W.text,
|
|
1146
1146
|
children: t.label
|
|
1147
1147
|
})] })
|
|
1148
1148
|
};
|
|
1149
1149
|
return a ? a(t, i) : /* @__PURE__ */ u("a", { ...i });
|
|
1150
1150
|
})() : /* @__PURE__ */ d("span", {
|
|
1151
|
-
className:
|
|
1151
|
+
className: W.label,
|
|
1152
1152
|
title: n === "truncate" ? t.label : void 0,
|
|
1153
1153
|
"aria-current": r === e.length - 1 ? "page" : void 0,
|
|
1154
1154
|
children: [t.icon && /* @__PURE__ */ u("span", {
|
|
1155
|
-
className:
|
|
1155
|
+
className: W.icon,
|
|
1156
1156
|
"aria-hidden": "true",
|
|
1157
|
-
children:
|
|
1157
|
+
children: Ee(t.icon)
|
|
1158
1158
|
}), /* @__PURE__ */ u("span", {
|
|
1159
|
-
className:
|
|
1159
|
+
className: W.text,
|
|
1160
1160
|
children: t.label
|
|
1161
1161
|
})]
|
|
1162
1162
|
}), t.switcher && /* @__PURE__ */ d(D.Root, {
|
|
1163
1163
|
value: t.switcher.value,
|
|
1164
|
-
onValueChange: (e) => e ===
|
|
1164
|
+
onValueChange: (e) => e === De ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
|
|
1165
1165
|
disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
|
|
1166
1166
|
children: [/* @__PURE__ */ u(D.Trigger, {
|
|
1167
|
-
className:
|
|
1167
|
+
className: W.trigger,
|
|
1168
1168
|
"aria-label": `${t.switcher.label}: ${t.label}`,
|
|
1169
1169
|
children: /* @__PURE__ */ u(D.Icon, {
|
|
1170
1170
|
"aria-hidden": "true",
|
|
1171
|
-
className:
|
|
1171
|
+
className: W.icon,
|
|
1172
1172
|
children: /* @__PURE__ */ u(y, {
|
|
1173
1173
|
size: 14,
|
|
1174
1174
|
color: "currentColor"
|
|
1175
1175
|
})
|
|
1176
1176
|
})
|
|
1177
1177
|
}), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
|
|
1178
|
-
className: `${
|
|
1178
|
+
className: `${V.content} ${W.menu}`,
|
|
1179
1179
|
position: "popper",
|
|
1180
1180
|
align: "end",
|
|
1181
1181
|
sideOffset: 4,
|
|
1182
1182
|
collisionPadding: 8,
|
|
1183
1183
|
children: /* @__PURE__ */ d(D.Viewport, {
|
|
1184
|
-
className:
|
|
1184
|
+
className: V.viewport,
|
|
1185
1185
|
children: [t.switcher.options.map((e) => /* @__PURE__ */ d(D.Item, {
|
|
1186
1186
|
value: e.value,
|
|
1187
|
-
className:
|
|
1187
|
+
className: V.item,
|
|
1188
1188
|
textValue: e.label,
|
|
1189
1189
|
children: [/* @__PURE__ */ d("span", {
|
|
1190
|
-
className:
|
|
1190
|
+
className: W.option,
|
|
1191
1191
|
children: [e.icon && /* @__PURE__ */ u("span", {
|
|
1192
|
-
className:
|
|
1192
|
+
className: W.icon,
|
|
1193
1193
|
"aria-hidden": "true",
|
|
1194
1194
|
children: e.icon
|
|
1195
1195
|
}), /* @__PURE__ */ u(D.ItemText, { children: e.label })]
|
|
1196
1196
|
}), /* @__PURE__ */ u(D.ItemIndicator, {
|
|
1197
|
-
className:
|
|
1197
|
+
className: V.itemIndicator,
|
|
1198
1198
|
children: /* @__PURE__ */ u(m, {
|
|
1199
1199
|
size: 12,
|
|
1200
1200
|
color: "currentColor"
|
|
1201
1201
|
})
|
|
1202
1202
|
})]
|
|
1203
|
-
}, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className:
|
|
1204
|
-
value:
|
|
1205
|
-
className:
|
|
1203
|
+
}, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: W.menuDivider }), /* @__PURE__ */ u(D.Item, {
|
|
1204
|
+
value: De,
|
|
1205
|
+
className: V.item,
|
|
1206
1206
|
textValue: t.switcher.action.label,
|
|
1207
1207
|
children: /* @__PURE__ */ d("span", {
|
|
1208
|
-
className:
|
|
1208
|
+
className: W.option,
|
|
1209
1209
|
children: [/* @__PURE__ */ u("span", {
|
|
1210
|
-
className:
|
|
1210
|
+
className: W.icon,
|
|
1211
1211
|
"aria-hidden": "true",
|
|
1212
1212
|
children: /* @__PURE__ */ u(x, {
|
|
1213
1213
|
size: 14,
|
|
@@ -1222,7 +1222,7 @@ var Oe = "\0action", ke = ({ items: e, size: t = "default", overflow: n = "wrap"
|
|
|
1222
1222
|
})]
|
|
1223
1223
|
}, t.id))
|
|
1224
1224
|
})
|
|
1225
|
-
}),
|
|
1225
|
+
}), ke = {
|
|
1226
1226
|
wrapper: "_wrapper_1a9jo_1",
|
|
1227
1227
|
track: "_track_1a9jo_8",
|
|
1228
1228
|
fill: "_fill_1a9jo_36",
|
|
@@ -1230,42 +1230,42 @@ var Oe = "\0action", ke = ({ items: e, size: t = "default", overflow: n = "wrap"
|
|
|
1230
1230
|
};
|
|
1231
1231
|
//#endregion
|
|
1232
1232
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
1233
|
-
function
|
|
1233
|
+
function Ae({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
|
|
1234
1234
|
let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
|
|
1235
1235
|
return /* @__PURE__ */ d("div", {
|
|
1236
|
-
className: `${
|
|
1236
|
+
className: `${ke.wrapper} ${r}`,
|
|
1237
1237
|
role: "progressbar",
|
|
1238
1238
|
"aria-valuenow": i,
|
|
1239
1239
|
"aria-valuemin": 0,
|
|
1240
1240
|
"aria-valuemax": 100,
|
|
1241
1241
|
children: [/* @__PURE__ */ u("div", {
|
|
1242
|
-
className:
|
|
1242
|
+
className: ke.track,
|
|
1243
1243
|
children: /* @__PURE__ */ u("div", {
|
|
1244
|
-
className:
|
|
1244
|
+
className: ke.fill,
|
|
1245
1245
|
style: {
|
|
1246
1246
|
width: `${i}%`,
|
|
1247
1247
|
backgroundColor: o
|
|
1248
1248
|
}
|
|
1249
1249
|
})
|
|
1250
1250
|
}), t && /* @__PURE__ */ u("span", {
|
|
1251
|
-
className:
|
|
1251
|
+
className: ke.label,
|
|
1252
1252
|
"aria-hidden": "true",
|
|
1253
1253
|
children: a
|
|
1254
1254
|
})]
|
|
1255
1255
|
});
|
|
1256
1256
|
}
|
|
1257
|
-
var
|
|
1257
|
+
var je = {
|
|
1258
1258
|
chip: "_chip_iaxe0_1",
|
|
1259
1259
|
large: "_large_iaxe0_14"
|
|
1260
1260
|
};
|
|
1261
1261
|
//#endregion
|
|
1262
1262
|
//#region src/components/Chip/Chip.tsx
|
|
1263
|
-
function
|
|
1263
|
+
function Me({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
|
|
1264
1264
|
let s = {};
|
|
1265
1265
|
return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ d("span", {
|
|
1266
1266
|
className: [
|
|
1267
|
-
|
|
1268
|
-
o === "large" &&
|
|
1267
|
+
je.chip,
|
|
1268
|
+
o === "large" && je.large,
|
|
1269
1269
|
i
|
|
1270
1270
|
].filter(Boolean).join(" "),
|
|
1271
1271
|
style: s,
|
|
@@ -1275,7 +1275,7 @@ function Ne({ children: t, color: n, textColor: r, className: i, icon: a, size:
|
|
|
1275
1275
|
}), t]
|
|
1276
1276
|
});
|
|
1277
1277
|
}
|
|
1278
|
-
var
|
|
1278
|
+
var G = {
|
|
1279
1279
|
root: "_root_ok48u_3",
|
|
1280
1280
|
icon: "_icon_ok48u_16",
|
|
1281
1281
|
body: "_body_ok48u_17",
|
|
@@ -1286,63 +1286,63 @@ var W = {
|
|
|
1286
1286
|
success: "_success_ok48u_24",
|
|
1287
1287
|
warning: "_warning_ok48u_25",
|
|
1288
1288
|
destructive: "_destructive_ok48u_26"
|
|
1289
|
-
},
|
|
1289
|
+
}, Ne = {
|
|
1290
1290
|
success: /* @__PURE__ */ u(m, {}),
|
|
1291
1291
|
warning: /* @__PURE__ */ u(w, {}),
|
|
1292
1292
|
destructive: /* @__PURE__ */ u(w, {})
|
|
1293
1293
|
};
|
|
1294
|
-
function
|
|
1294
|
+
function Pe(t) {
|
|
1295
1295
|
return e.isValidElement(t) ? e.cloneElement(t, {
|
|
1296
1296
|
size: 16,
|
|
1297
1297
|
color: "currentColor"
|
|
1298
1298
|
}) : t;
|
|
1299
1299
|
}
|
|
1300
|
-
var
|
|
1301
|
-
let a = t === void 0 ?
|
|
1300
|
+
var Fe = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
|
|
1301
|
+
let a = t === void 0 ? Ne[e] : t;
|
|
1302
1302
|
return /* @__PURE__ */ d("div", {
|
|
1303
1303
|
role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
|
|
1304
|
-
className: `${
|
|
1304
|
+
className: `${G.root} ${G[e]} ${n}`,
|
|
1305
1305
|
children: [a && /* @__PURE__ */ u("span", {
|
|
1306
|
-
className:
|
|
1306
|
+
className: G.icon,
|
|
1307
1307
|
"aria-hidden": "true",
|
|
1308
|
-
children:
|
|
1308
|
+
children: Pe(a)
|
|
1309
1309
|
}), /* @__PURE__ */ u("div", {
|
|
1310
|
-
className:
|
|
1310
|
+
className: G.body,
|
|
1311
1311
|
children: r
|
|
1312
1312
|
})]
|
|
1313
1313
|
});
|
|
1314
|
-
},
|
|
1315
|
-
className: `${
|
|
1314
|
+
}, Ie = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
|
|
1315
|
+
className: `${G.title} ${t}`,
|
|
1316
1316
|
children: e
|
|
1317
|
-
}),
|
|
1318
|
-
className: `${
|
|
1317
|
+
}), Le = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
|
|
1318
|
+
className: `${G.description} ${t}`,
|
|
1319
1319
|
children: e
|
|
1320
|
-
}),
|
|
1320
|
+
}), Re = {
|
|
1321
1321
|
root: "_root_1plhu_3",
|
|
1322
1322
|
main: "_main_1plhu_18",
|
|
1323
1323
|
aside: "_aside_1plhu_19",
|
|
1324
1324
|
message: "_message_1plhu_26"
|
|
1325
|
-
},
|
|
1325
|
+
}, ze = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ d("div", {
|
|
1326
1326
|
role: "region",
|
|
1327
1327
|
"aria-label": a,
|
|
1328
|
-
className: `${
|
|
1328
|
+
className: `${Re.root} ${i}`,
|
|
1329
1329
|
children: [/* @__PURE__ */ d("div", {
|
|
1330
|
-
className:
|
|
1330
|
+
className: Re.main,
|
|
1331
1331
|
children: [r, t && /* @__PURE__ */ u("span", {
|
|
1332
|
-
className:
|
|
1332
|
+
className: Re.message,
|
|
1333
1333
|
children: t
|
|
1334
1334
|
})]
|
|
1335
1335
|
}), n && /* @__PURE__ */ u("div", {
|
|
1336
|
-
className:
|
|
1336
|
+
className: Re.aside,
|
|
1337
1337
|
children: n
|
|
1338
1338
|
})]
|
|
1339
|
-
}) : null,
|
|
1339
|
+
}) : null, Be = {
|
|
1340
1340
|
tooltip: "_tooltip_1de7z_1",
|
|
1341
1341
|
arrow: "_arrow_1de7z_13"
|
|
1342
1342
|
};
|
|
1343
1343
|
//#endregion
|
|
1344
1344
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
1345
|
-
function
|
|
1345
|
+
function Ve({ content: e, position: t = "top", children: n, className: r }) {
|
|
1346
1346
|
return /* @__PURE__ */ u(k.Provider, {
|
|
1347
1347
|
delayDuration: 80,
|
|
1348
1348
|
children: /* @__PURE__ */ d(k.Root, { children: [/* @__PURE__ */ u(k.Trigger, {
|
|
@@ -1351,12 +1351,12 @@ function He({ content: e, position: t = "top", children: n, className: r }) {
|
|
|
1351
1351
|
}), /* @__PURE__ */ u(k.Portal, { children: /* @__PURE__ */ d(k.Content, {
|
|
1352
1352
|
side: t,
|
|
1353
1353
|
sideOffset: 7,
|
|
1354
|
-
className: [
|
|
1355
|
-
children: [e, /* @__PURE__ */ u(k.Arrow, { className:
|
|
1354
|
+
className: [Be.tooltip, r].filter(Boolean).join(" "),
|
|
1355
|
+
children: [e, /* @__PURE__ */ u(k.Arrow, { className: Be.arrow })]
|
|
1356
1356
|
}) })] })
|
|
1357
1357
|
});
|
|
1358
1358
|
}
|
|
1359
|
-
var
|
|
1359
|
+
var K = {
|
|
1360
1360
|
wrapper: "_wrapper_1w5vh_1",
|
|
1361
1361
|
chart: "_chart_1w5vh_8",
|
|
1362
1362
|
svg: "_svg_1w5vh_33",
|
|
@@ -1370,11 +1370,11 @@ var G = {
|
|
|
1370
1370
|
legendItem: "_legendItem_1w5vh_90",
|
|
1371
1371
|
legendMark: "_legendMark_1w5vh_96",
|
|
1372
1372
|
legendLabel: "_legendLabel_1w5vh_102"
|
|
1373
|
-
},
|
|
1374
|
-
function
|
|
1373
|
+
}, He = "var(--lv4)", q = 12, Ue = 20, We = 8, Ge = 28, J = 20;
|
|
1374
|
+
function Ke(e) {
|
|
1375
1375
|
return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1377
|
+
function qe({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: l }) {
|
|
1378
1378
|
let f = s(null), [p, m] = c(0), [h, g] = c(null);
|
|
1379
1379
|
i(() => {
|
|
1380
1380
|
let e = f.current;
|
|
@@ -1382,18 +1382,18 @@ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1382
1382
|
let t = new ResizeObserver(([e]) => m(e.contentRect.width));
|
|
1383
1383
|
return t.observe(e), m(e.clientWidth), () => t.disconnect();
|
|
1384
1384
|
}, []);
|
|
1385
|
-
let _ = t?.length ?
|
|
1385
|
+
let _ = t?.length ? Ge : We, v = Math.max(p - J - Ue, 0), y = Math.max(a - q - _, 0), b = e.flatMap((e) => e.data.filter(Number.isFinite)), x = b.length ? Math.max(...b, 0) : 1, S = n === "bar" ? 0 : Math.min(...b, 0), C = x - S || 1, w = Math.max(...e.map((e) => e.data.length), 0), T = (e) => q + (1 - (e - S) / C) * y, E = (e) => w <= 1 ? J + v / 2 : J + e / (w - 1) * v, D = r((e) => {
|
|
1386
1386
|
if (w === 0) return;
|
|
1387
1387
|
let t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, i = e.clientY - t.top;
|
|
1388
1388
|
if (n === "line") {
|
|
1389
|
-
let e = Math.round((r -
|
|
1389
|
+
let e = Math.round((r - J) / v * (w - 1));
|
|
1390
1390
|
g({
|
|
1391
1391
|
index: Math.max(0, Math.min(w - 1, e)),
|
|
1392
1392
|
x: r,
|
|
1393
1393
|
y: i
|
|
1394
1394
|
});
|
|
1395
1395
|
} else {
|
|
1396
|
-
let e = v / w, t = Math.floor((r -
|
|
1396
|
+
let e = v / w, t = Math.floor((r - J) / e);
|
|
1397
1397
|
g({
|
|
1398
1398
|
index: Math.max(0, Math.min(w - 1, t)),
|
|
1399
1399
|
x: r,
|
|
@@ -1405,31 +1405,31 @@ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1405
1405
|
w,
|
|
1406
1406
|
v
|
|
1407
1407
|
]), O = r(() => g(null), []), k = /* @__PURE__ */ u("line", {
|
|
1408
|
-
x1:
|
|
1409
|
-
y1:
|
|
1410
|
-
x2:
|
|
1411
|
-
y2:
|
|
1408
|
+
x1: J,
|
|
1409
|
+
y1: q + y * .5,
|
|
1410
|
+
x2: J + v,
|
|
1411
|
+
y2: q + y * .5,
|
|
1412
1412
|
stroke: "var(--chart-midline)",
|
|
1413
1413
|
strokeWidth: "0.5"
|
|
1414
1414
|
}), A = /* @__PURE__ */ u("line", {
|
|
1415
|
-
x1:
|
|
1416
|
-
y1:
|
|
1417
|
-
x2:
|
|
1418
|
-
y2:
|
|
1415
|
+
x1: J,
|
|
1416
|
+
y1: q + y,
|
|
1417
|
+
x2: J + v,
|
|
1418
|
+
y2: q + y,
|
|
1419
1419
|
stroke: "var(--chart-baseline)",
|
|
1420
1420
|
strokeWidth: "1"
|
|
1421
1421
|
}), j = h && n === "bar" ? (() => {
|
|
1422
1422
|
let e = v / w;
|
|
1423
1423
|
return /* @__PURE__ */ u("rect", {
|
|
1424
|
-
x:
|
|
1425
|
-
y:
|
|
1424
|
+
x: J + h.index * e,
|
|
1425
|
+
y: q,
|
|
1426
1426
|
width: e,
|
|
1427
1427
|
height: y,
|
|
1428
1428
|
fill: "var(--chart-column-hover)"
|
|
1429
1429
|
});
|
|
1430
1430
|
})() : null, M = () => e.map((e, t) => {
|
|
1431
1431
|
if (!e.data.length) return null;
|
|
1432
|
-
let n = e.color ??
|
|
1432
|
+
let n = e.color ?? He;
|
|
1433
1433
|
return /* @__PURE__ */ d("g", { children: [/* @__PURE__ */ u("polyline", {
|
|
1434
1434
|
points: e.data.map((e, t) => `${E(t).toFixed(2)},${T(e).toFixed(2)}`).join(" "),
|
|
1435
1435
|
fill: "none",
|
|
@@ -1449,9 +1449,9 @@ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1449
1449
|
})] }, t);
|
|
1450
1450
|
}), ee = () => {
|
|
1451
1451
|
if (!w) return null;
|
|
1452
|
-
let t = e.length, n = v / w, r = Math.max((n - 2 * (t + 1)) / t, 2), i =
|
|
1452
|
+
let t = e.length, n = v / w, r = Math.max((n - 2 * (t + 1)) / t, 2), i = q + y;
|
|
1453
1453
|
return e.map((e, t) => e.data.map((a, o) => {
|
|
1454
|
-
let s =
|
|
1454
|
+
let s = J + o * n + 2 + t * (r + 2), c = T(a);
|
|
1455
1455
|
return /* @__PURE__ */ u("rect", {
|
|
1456
1456
|
x: s,
|
|
1457
1457
|
y: c,
|
|
@@ -1462,9 +1462,9 @@ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1462
1462
|
}));
|
|
1463
1463
|
}, te = () => {
|
|
1464
1464
|
if (!t?.length) return null;
|
|
1465
|
-
let e =
|
|
1465
|
+
let e = q + y + 18;
|
|
1466
1466
|
return t.map((t, r) => /* @__PURE__ */ u("text", {
|
|
1467
|
-
x: n === "line" ? E(r) :
|
|
1467
|
+
x: n === "line" ? E(r) : J + (r + .5) * (v / w),
|
|
1468
1468
|
y: e,
|
|
1469
1469
|
textAnchor: "middle",
|
|
1470
1470
|
fill: "var(--lv4)",
|
|
@@ -1473,16 +1473,16 @@ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1473
1473
|
}, r));
|
|
1474
1474
|
}, ne = h && n === "line" ? /* @__PURE__ */ u("line", {
|
|
1475
1475
|
x1: E(h.index),
|
|
1476
|
-
y1:
|
|
1476
|
+
y1: q,
|
|
1477
1477
|
x2: E(h.index),
|
|
1478
|
-
y2:
|
|
1478
|
+
y2: q + y,
|
|
1479
1479
|
stroke: "var(--chart-crosshair)",
|
|
1480
1480
|
strokeWidth: "1",
|
|
1481
1481
|
strokeDasharray: "3 3"
|
|
1482
1482
|
}) : null, N = h ? (() => {
|
|
1483
1483
|
let n = t?.[h.index] ?? String(h.index + 1), r = Math.min(Math.max(h.x, 60), p - 60);
|
|
1484
1484
|
return /* @__PURE__ */ d("div", {
|
|
1485
|
-
className:
|
|
1485
|
+
className: K.tooltip,
|
|
1486
1486
|
style: h.y < 80 ? {
|
|
1487
1487
|
left: r,
|
|
1488
1488
|
top: h.y + 12,
|
|
@@ -1493,37 +1493,37 @@ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1493
1493
|
transform: "translate(-50%, -100%)"
|
|
1494
1494
|
},
|
|
1495
1495
|
children: [/* @__PURE__ */ u("div", {
|
|
1496
|
-
className:
|
|
1496
|
+
className: K.tooltipLabel,
|
|
1497
1497
|
children: n
|
|
1498
1498
|
}), e.map((e, t) => /* @__PURE__ */ d("div", {
|
|
1499
|
-
className:
|
|
1499
|
+
className: K.tooltipRow,
|
|
1500
1500
|
children: [
|
|
1501
1501
|
/* @__PURE__ */ u("span", {
|
|
1502
|
-
className:
|
|
1503
|
-
style: { background: e.color ??
|
|
1502
|
+
className: K.tooltipDot,
|
|
1503
|
+
style: { background: e.color ?? He }
|
|
1504
1504
|
}),
|
|
1505
1505
|
/* @__PURE__ */ u("span", {
|
|
1506
|
-
className:
|
|
1506
|
+
className: K.tooltipName,
|
|
1507
1507
|
children: e.label
|
|
1508
1508
|
}),
|
|
1509
1509
|
/* @__PURE__ */ u("span", {
|
|
1510
|
-
className:
|
|
1511
|
-
children:
|
|
1510
|
+
className: K.tooltipValue,
|
|
1511
|
+
children: Ke(e.data[h.index] ?? 0)
|
|
1512
1512
|
})
|
|
1513
1513
|
]
|
|
1514
1514
|
}, t))]
|
|
1515
1515
|
});
|
|
1516
1516
|
})() : null;
|
|
1517
1517
|
return /* @__PURE__ */ d("div", {
|
|
1518
|
-
className: [
|
|
1518
|
+
className: [K.wrapper, l].filter(Boolean).join(" "),
|
|
1519
1519
|
children: [/* @__PURE__ */ d("div", {
|
|
1520
1520
|
ref: f,
|
|
1521
|
-
className:
|
|
1521
|
+
className: K.chart,
|
|
1522
1522
|
style: { height: a },
|
|
1523
1523
|
children: [p > 0 && /* @__PURE__ */ d("svg", {
|
|
1524
1524
|
width: p,
|
|
1525
1525
|
height: a,
|
|
1526
|
-
className:
|
|
1526
|
+
className: K.svg,
|
|
1527
1527
|
onMouseMove: D,
|
|
1528
1528
|
onMouseLeave: O,
|
|
1529
1529
|
children: [
|
|
@@ -1536,21 +1536,21 @@ function Je({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
|
|
|
1536
1536
|
]
|
|
1537
1537
|
}), N]
|
|
1538
1538
|
}), o && e.length > 1 && /* @__PURE__ */ u("div", {
|
|
1539
|
-
className:
|
|
1539
|
+
className: K.legend,
|
|
1540
1540
|
children: e.map((e, t) => /* @__PURE__ */ d("div", {
|
|
1541
|
-
className:
|
|
1541
|
+
className: K.legendItem,
|
|
1542
1542
|
children: [/* @__PURE__ */ u("div", {
|
|
1543
|
-
className:
|
|
1544
|
-
style: { background: e.color ??
|
|
1543
|
+
className: K.legendMark,
|
|
1544
|
+
style: { background: e.color ?? He }
|
|
1545
1545
|
}), /* @__PURE__ */ u("span", {
|
|
1546
|
-
className:
|
|
1546
|
+
className: K.legendLabel,
|
|
1547
1547
|
children: e.label
|
|
1548
1548
|
})]
|
|
1549
1549
|
}, t))
|
|
1550
1550
|
})]
|
|
1551
1551
|
});
|
|
1552
1552
|
}
|
|
1553
|
-
var
|
|
1553
|
+
var Y = {
|
|
1554
1554
|
wrapper: "_wrapper_17ws4_1",
|
|
1555
1555
|
label: "_label_17ws4_7",
|
|
1556
1556
|
textarea: "_textarea_17ws4_12",
|
|
@@ -1559,14 +1559,14 @@ var J = {
|
|
|
1559
1559
|
};
|
|
1560
1560
|
//#endregion
|
|
1561
1561
|
//#region src/components/Textarea/Textarea.tsx
|
|
1562
|
-
function
|
|
1562
|
+
function Je({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
|
|
1563
1563
|
let c = e.useId(), l = a || c, f = `${l}-error`, p = n || !i;
|
|
1564
1564
|
return /* @__PURE__ */ d("div", {
|
|
1565
|
-
className: `${
|
|
1565
|
+
className: `${Y.wrapper} ${r}`,
|
|
1566
1566
|
children: [
|
|
1567
1567
|
t && /* @__PURE__ */ d("label", {
|
|
1568
1568
|
htmlFor: l,
|
|
1569
|
-
className:
|
|
1569
|
+
className: Y.label,
|
|
1570
1570
|
children: [t, s.required && /* @__PURE__ */ u("span", {
|
|
1571
1571
|
"aria-label": "required",
|
|
1572
1572
|
children: " *"
|
|
@@ -1575,46 +1575,46 @@ function Ye({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
|
|
|
1575
1575
|
/* @__PURE__ */ u("textarea", {
|
|
1576
1576
|
id: l,
|
|
1577
1577
|
rows: o,
|
|
1578
|
-
className: `${
|
|
1578
|
+
className: `${Y.textarea} ${p ? Y.error : ""}`,
|
|
1579
1579
|
"aria-invalid": p ? "true" : "false",
|
|
1580
1580
|
"aria-describedby": n ? f : void 0,
|
|
1581
1581
|
...s
|
|
1582
1582
|
}),
|
|
1583
1583
|
n && /* @__PURE__ */ u("span", {
|
|
1584
1584
|
id: f,
|
|
1585
|
-
className:
|
|
1585
|
+
className: Y.errorText,
|
|
1586
1586
|
role: "alert",
|
|
1587
1587
|
children: n
|
|
1588
1588
|
})
|
|
1589
1589
|
]
|
|
1590
1590
|
});
|
|
1591
1591
|
}
|
|
1592
|
-
var
|
|
1592
|
+
var X = {
|
|
1593
1593
|
overlay: "_overlay_xud7c_1",
|
|
1594
1594
|
content: "_content_xud7c_8",
|
|
1595
1595
|
title: "_title_xud7c_26",
|
|
1596
1596
|
description: "_description_xud7c_34",
|
|
1597
1597
|
close: "_close_xud7c_40",
|
|
1598
1598
|
srOnly: "_srOnly_xud7c_62"
|
|
1599
|
-
},
|
|
1599
|
+
}, Ye = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ d(A.Root, {
|
|
1600
1600
|
open: n,
|
|
1601
1601
|
onOpenChange: r,
|
|
1602
1602
|
children: [e && /* @__PURE__ */ u(A.Trigger, {
|
|
1603
1603
|
asChild: !0,
|
|
1604
1604
|
children: e
|
|
1605
|
-
}), /* @__PURE__ */ d(A.Portal, { children: [/* @__PURE__ */ u(A.Overlay, { className:
|
|
1606
|
-
className: `${
|
|
1605
|
+
}), /* @__PURE__ */ d(A.Portal, { children: [/* @__PURE__ */ u(A.Overlay, { className: X.overlay }), /* @__PURE__ */ d(A.Content, {
|
|
1606
|
+
className: `${X.content} ${o}`,
|
|
1607
1607
|
children: [
|
|
1608
1608
|
/* @__PURE__ */ u(A.Title, {
|
|
1609
|
-
className: i ?
|
|
1609
|
+
className: i ? X.title : X.srOnly,
|
|
1610
1610
|
children: i || "Dialog"
|
|
1611
1611
|
}),
|
|
1612
1612
|
a && /* @__PURE__ */ u(A.Description, {
|
|
1613
|
-
className:
|
|
1613
|
+
className: X.description,
|
|
1614
1614
|
children: a
|
|
1615
1615
|
}),
|
|
1616
1616
|
s && /* @__PURE__ */ u(A.Close, {
|
|
1617
|
-
className:
|
|
1617
|
+
className: X.close,
|
|
1618
1618
|
"aria-label": "Close",
|
|
1619
1619
|
children: /* @__PURE__ */ u(T, {
|
|
1620
1620
|
size: 16,
|
|
@@ -1624,7 +1624,7 @@ var Y = {
|
|
|
1624
1624
|
t
|
|
1625
1625
|
]
|
|
1626
1626
|
})] })]
|
|
1627
|
-
}),
|
|
1627
|
+
}), Z = {
|
|
1628
1628
|
wrapper: "_wrapper_aimna_1",
|
|
1629
1629
|
label: "_label_aimna_7",
|
|
1630
1630
|
trigger: "_trigger_aimna_12",
|
|
@@ -1643,7 +1643,7 @@ var Y = {
|
|
|
1643
1643
|
today: "_today_aimna_131",
|
|
1644
1644
|
selected: "_selected_aimna_136",
|
|
1645
1645
|
errorText: "_errorText_aimna_142"
|
|
1646
|
-
},
|
|
1646
|
+
}, Xe = [
|
|
1647
1647
|
"Mo",
|
|
1648
1648
|
"Tu",
|
|
1649
1649
|
"We",
|
|
@@ -1651,7 +1651,7 @@ var Y = {
|
|
|
1651
1651
|
"Fr",
|
|
1652
1652
|
"Sa",
|
|
1653
1653
|
"Su"
|
|
1654
|
-
],
|
|
1654
|
+
], Ze = [
|
|
1655
1655
|
"January",
|
|
1656
1656
|
"February",
|
|
1657
1657
|
"March",
|
|
@@ -1665,7 +1665,7 @@ var Y = {
|
|
|
1665
1665
|
"November",
|
|
1666
1666
|
"December"
|
|
1667
1667
|
];
|
|
1668
|
-
function
|
|
1668
|
+
function Qe(e) {
|
|
1669
1669
|
let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
|
|
1670
1670
|
return `${e.getFullYear()}-${t}-${n}`;
|
|
1671
1671
|
}
|
|
@@ -1677,7 +1677,7 @@ function et(e, t) {
|
|
|
1677
1677
|
for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
|
|
1678
1678
|
return r;
|
|
1679
1679
|
}
|
|
1680
|
-
var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: l = "", formatDate: f =
|
|
1680
|
+
var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: l = "", formatDate: f = Qe }) => {
|
|
1681
1681
|
let p = e.useId(), m = `${p}-error`, v = !!a || !o, [y, b] = c(!1), x = /* @__PURE__ */ new Date(), S = t ?? x, [C, w] = c(S.getFullYear()), [T, E] = c(S.getMonth()), [D, k] = c(S), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), M = (e) => {
|
|
1682
1682
|
if (e) {
|
|
1683
1683
|
let e = t ?? /* @__PURE__ */ new Date();
|
|
@@ -1686,7 +1686,7 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1686
1686
|
b(e);
|
|
1687
1687
|
};
|
|
1688
1688
|
e.useEffect(() => {
|
|
1689
|
-
j.current &&= (A.current.get(
|
|
1689
|
+
j.current &&= (A.current.get(Qe(D))?.focus(), !1);
|
|
1690
1690
|
}, [D]);
|
|
1691
1691
|
let ee = (e, t) => {
|
|
1692
1692
|
let n = new Date(t), r = {
|
|
@@ -1715,11 +1715,11 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1715
1715
|
n?.(e), b(!1);
|
|
1716
1716
|
}, P = et(C, T);
|
|
1717
1717
|
return /* @__PURE__ */ d("div", {
|
|
1718
|
-
className: `${
|
|
1718
|
+
className: `${Z.wrapper} ${l}`,
|
|
1719
1719
|
children: [
|
|
1720
1720
|
r && /* @__PURE__ */ u("span", {
|
|
1721
1721
|
id: `${p}-label`,
|
|
1722
|
-
className:
|
|
1722
|
+
className: Z.label,
|
|
1723
1723
|
children: r
|
|
1724
1724
|
}),
|
|
1725
1725
|
/* @__PURE__ */ d(O.Root, {
|
|
@@ -1729,14 +1729,14 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1729
1729
|
asChild: !0,
|
|
1730
1730
|
children: /* @__PURE__ */ d("button", {
|
|
1731
1731
|
type: "button",
|
|
1732
|
-
className: `${
|
|
1732
|
+
className: `${Z.trigger} ${v ? Z.error : ""}`,
|
|
1733
1733
|
disabled: s,
|
|
1734
1734
|
"aria-labelledby": r ? `${p}-label ${p}-value` : void 0,
|
|
1735
1735
|
"aria-invalid": v ? "true" : "false",
|
|
1736
1736
|
"aria-describedby": a ? m : void 0,
|
|
1737
1737
|
children: [/* @__PURE__ */ u("span", {
|
|
1738
1738
|
id: `${p}-value`,
|
|
1739
|
-
className: t ?
|
|
1739
|
+
className: t ? Z.valueText : Z.placeholder,
|
|
1740
1740
|
children: t ? f(t) : i
|
|
1741
1741
|
}), /* @__PURE__ */ u(h, {
|
|
1742
1742
|
size: 14,
|
|
@@ -1744,20 +1744,20 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1744
1744
|
})]
|
|
1745
1745
|
})
|
|
1746
1746
|
}), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
|
|
1747
|
-
className:
|
|
1747
|
+
className: Z.calendar,
|
|
1748
1748
|
align: "start",
|
|
1749
1749
|
sideOffset: 5,
|
|
1750
1750
|
"aria-label": r ? `${r} calendar` : "Choose a date",
|
|
1751
1751
|
onOpenAutoFocus: (e) => {
|
|
1752
|
-
e.preventDefault(), A.current.get(
|
|
1752
|
+
e.preventDefault(), A.current.get(Qe(D))?.focus();
|
|
1753
1753
|
},
|
|
1754
1754
|
children: [
|
|
1755
1755
|
/* @__PURE__ */ d("div", {
|
|
1756
|
-
className:
|
|
1756
|
+
className: Z.header,
|
|
1757
1757
|
children: [
|
|
1758
1758
|
/* @__PURE__ */ u("button", {
|
|
1759
1759
|
type: "button",
|
|
1760
|
-
className:
|
|
1760
|
+
className: Z.navButton,
|
|
1761
1761
|
onClick: te,
|
|
1762
1762
|
"aria-label": "Previous month",
|
|
1763
1763
|
children: /* @__PURE__ */ u(g, {
|
|
@@ -1766,16 +1766,16 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1766
1766
|
})
|
|
1767
1767
|
}),
|
|
1768
1768
|
/* @__PURE__ */ d("span", {
|
|
1769
|
-
className:
|
|
1769
|
+
className: Z.monthLabel,
|
|
1770
1770
|
children: [
|
|
1771
|
-
|
|
1771
|
+
Ze[T],
|
|
1772
1772
|
" ",
|
|
1773
1773
|
C
|
|
1774
1774
|
]
|
|
1775
1775
|
}),
|
|
1776
1776
|
/* @__PURE__ */ u("button", {
|
|
1777
1777
|
type: "button",
|
|
1778
|
-
className:
|
|
1778
|
+
className: Z.navButton,
|
|
1779
1779
|
onClick: ne,
|
|
1780
1780
|
"aria-label": "Next month",
|
|
1781
1781
|
children: /* @__PURE__ */ u(_, {
|
|
@@ -1786,27 +1786,27 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1786
1786
|
]
|
|
1787
1787
|
}),
|
|
1788
1788
|
/* @__PURE__ */ u("div", {
|
|
1789
|
-
className:
|
|
1790
|
-
children:
|
|
1791
|
-
className:
|
|
1789
|
+
className: Z.weekdays,
|
|
1790
|
+
children: Xe.map((e) => /* @__PURE__ */ u("span", {
|
|
1791
|
+
className: Z.weekday,
|
|
1792
1792
|
children: e
|
|
1793
1793
|
}, e))
|
|
1794
1794
|
}),
|
|
1795
1795
|
/* @__PURE__ */ u("div", {
|
|
1796
|
-
className:
|
|
1796
|
+
className: Z.grid,
|
|
1797
1797
|
children: P.map((e) => {
|
|
1798
1798
|
let n = e.getMonth() !== T, r = $e(e, t), i = $e(e, x);
|
|
1799
1799
|
return /* @__PURE__ */ u("button", {
|
|
1800
1800
|
type: "button",
|
|
1801
1801
|
className: [
|
|
1802
|
-
|
|
1803
|
-
n ?
|
|
1804
|
-
r ?
|
|
1805
|
-
i && !r ?
|
|
1802
|
+
Z.day,
|
|
1803
|
+
n ? Z.outside : "",
|
|
1804
|
+
r ? Z.selected : "",
|
|
1805
|
+
i && !r ? Z.today : ""
|
|
1806
1806
|
].filter(Boolean).join(" "),
|
|
1807
1807
|
onClick: () => N(e),
|
|
1808
1808
|
ref: (t) => {
|
|
1809
|
-
t ? A.current.set(
|
|
1809
|
+
t ? A.current.set(Qe(e), t) : A.current.delete(Qe(e));
|
|
1810
1810
|
},
|
|
1811
1811
|
"aria-label": e.toLocaleDateString(void 0, {
|
|
1812
1812
|
weekday: "long",
|
|
@@ -1827,40 +1827,45 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1827
1827
|
}),
|
|
1828
1828
|
a && /* @__PURE__ */ u("span", {
|
|
1829
1829
|
id: m,
|
|
1830
|
-
className:
|
|
1830
|
+
className: Z.errorText,
|
|
1831
1831
|
role: "alert",
|
|
1832
1832
|
children: a
|
|
1833
1833
|
})
|
|
1834
1834
|
]
|
|
1835
1835
|
});
|
|
1836
1836
|
}, Q = {
|
|
1837
|
-
root: "
|
|
1838
|
-
micro: "
|
|
1839
|
-
default: "
|
|
1840
|
-
large: "
|
|
1841
|
-
list: "
|
|
1842
|
-
alignEnd: "
|
|
1843
|
-
alignList: "
|
|
1844
|
-
control: "
|
|
1845
|
-
link: "
|
|
1846
|
-
icon: "
|
|
1847
|
-
caret: "
|
|
1848
|
-
viewportPosition: "
|
|
1849
|
-
panelTrigger: "
|
|
1850
|
-
viewport: "
|
|
1851
|
-
content: "
|
|
1837
|
+
root: "_root_biiv1_1",
|
|
1838
|
+
micro: "_micro_biiv1_7",
|
|
1839
|
+
default: "_default_biiv1_8",
|
|
1840
|
+
large: "_large_biiv1_9",
|
|
1841
|
+
list: "_list_biiv1_11",
|
|
1842
|
+
alignEnd: "_alignEnd_biiv1_24",
|
|
1843
|
+
alignList: "_alignList_biiv1_24",
|
|
1844
|
+
control: "_control_biiv1_29",
|
|
1845
|
+
link: "_link_biiv1_56",
|
|
1846
|
+
icon: "_icon_biiv1_57",
|
|
1847
|
+
caret: "_caret_biiv1_57",
|
|
1848
|
+
viewportPosition: "_viewportPosition_biiv1_60",
|
|
1849
|
+
panelTrigger: "_panelTrigger_biiv1_77",
|
|
1850
|
+
viewport: "_viewport_biiv1_60",
|
|
1851
|
+
content: "_content_biiv1_110"
|
|
1852
1852
|
}, nt = {
|
|
1853
1853
|
micro: 14,
|
|
1854
1854
|
default: 14,
|
|
1855
1855
|
large: 21
|
|
1856
|
-
}, rt = e.createContext("default"), it = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, f) => {
|
|
1857
|
-
let p = e.useRef(null),
|
|
1858
|
-
|
|
1856
|
+
}, rt = e.createContext("default"), it = typeof window > "u" ? e.useEffect : e.useLayoutEffect, at = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, f) => {
|
|
1857
|
+
let p = e.useRef(null), m = e.useRef(!1);
|
|
1858
|
+
it(() => {
|
|
1859
1859
|
let e = p.current;
|
|
1860
1860
|
if (!e || r !== "trigger") return;
|
|
1861
1861
|
let t = () => {
|
|
1862
1862
|
let t = e.querySelector("[data-state=\"open\"][aria-expanded=\"true\"]");
|
|
1863
|
-
|
|
1863
|
+
if (!t) {
|
|
1864
|
+
m.current = !1;
|
|
1865
|
+
return;
|
|
1866
|
+
}
|
|
1867
|
+
let n = t.getBoundingClientRect().left - e.getBoundingClientRect().left;
|
|
1868
|
+
m.current || e.setAttribute("data-panel-jump", ""), e.style.setProperty("--panel-offset", `${Math.round(n)}px`), m.current ||= (e.offsetWidth, e.removeAttribute("data-panel-jump"), !0);
|
|
1864
1869
|
};
|
|
1865
1870
|
t();
|
|
1866
1871
|
let n = new MutationObserver(t);
|
|
@@ -1869,16 +1874,17 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1869
1874
|
attributes: !0,
|
|
1870
1875
|
attributeFilter: ["data-state"]
|
|
1871
1876
|
});
|
|
1872
|
-
let i = new ResizeObserver(
|
|
1877
|
+
let i = new ResizeObserver(() => {
|
|
1878
|
+
m.current = !1, t();
|
|
1879
|
+
});
|
|
1873
1880
|
return i.observe(e), () => {
|
|
1874
1881
|
n.disconnect(), i.disconnect();
|
|
1875
1882
|
};
|
|
1876
1883
|
}, [r, s]);
|
|
1877
|
-
let
|
|
1884
|
+
let h = {
|
|
1878
1885
|
...o,
|
|
1879
|
-
...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
|
|
1880
|
-
|
|
1881
|
-
}, _ = r === "trigger" ? Q.panelTrigger : r === "end" ? Q.alignEnd : "";
|
|
1886
|
+
...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
|
|
1887
|
+
}, g = r === "trigger" ? Q.panelTrigger : r === "end" ? Q.alignEnd : "";
|
|
1882
1888
|
return /* @__PURE__ */ u(rt.Provider, {
|
|
1883
1889
|
value: t,
|
|
1884
1890
|
children: /* @__PURE__ */ d(j.Root, {
|
|
@@ -1887,8 +1893,8 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1887
1893
|
p.current = e, typeof f == "function" ? f(e) : f && (f.current = e);
|
|
1888
1894
|
},
|
|
1889
1895
|
"aria-label": c,
|
|
1890
|
-
style:
|
|
1891
|
-
className: `${Q.root} ${Q[t]} ${n === "end" ? Q.alignList : ""} ${
|
|
1896
|
+
style: h,
|
|
1897
|
+
className: `${Q.root} ${Q[t]} ${n === "end" ? Q.alignList : ""} ${g} ${a}`,
|
|
1892
1898
|
children: [s, /* @__PURE__ */ u("div", {
|
|
1893
1899
|
className: Q.viewportPosition,
|
|
1894
1900
|
children: /* @__PURE__ */ u(j.Viewport, { className: Q.viewport })
|
|
@@ -1896,15 +1902,15 @@ var tt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
|
|
|
1896
1902
|
})
|
|
1897
1903
|
});
|
|
1898
1904
|
});
|
|
1899
|
-
|
|
1900
|
-
var
|
|
1905
|
+
at.displayName = "NavigationMenu";
|
|
1906
|
+
var ot = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
|
|
1901
1907
|
...t,
|
|
1902
1908
|
ref: n,
|
|
1903
1909
|
className: `${Q.list} ${e}`
|
|
1904
1910
|
}));
|
|
1905
|
-
|
|
1906
|
-
var
|
|
1907
|
-
function
|
|
1911
|
+
ot.displayName = "NavigationMenuList";
|
|
1912
|
+
var st = j.Item;
|
|
1913
|
+
function ct({ icon: t }) {
|
|
1908
1914
|
let n = e.useContext(rt);
|
|
1909
1915
|
return t ? /* @__PURE__ */ u("span", {
|
|
1910
1916
|
className: Q.icon,
|
|
@@ -1915,14 +1921,14 @@ function st({ icon: t }) {
|
|
|
1915
1921
|
})
|
|
1916
1922
|
}) : null;
|
|
1917
1923
|
}
|
|
1918
|
-
var
|
|
1924
|
+
var lt = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
|
|
1919
1925
|
let o = e.useContext(rt);
|
|
1920
1926
|
return /* @__PURE__ */ d(j.Trigger, {
|
|
1921
1927
|
...i,
|
|
1922
1928
|
ref: a,
|
|
1923
1929
|
className: `${Q.control} ${t}`,
|
|
1924
1930
|
children: [
|
|
1925
|
-
/* @__PURE__ */ u(
|
|
1931
|
+
/* @__PURE__ */ u(ct, { icon: n }),
|
|
1926
1932
|
r,
|
|
1927
1933
|
/* @__PURE__ */ u("span", {
|
|
1928
1934
|
className: Q.caret,
|
|
@@ -1935,20 +1941,20 @@ var ct = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) =>
|
|
|
1935
1941
|
]
|
|
1936
1942
|
});
|
|
1937
1943
|
});
|
|
1938
|
-
|
|
1939
|
-
var
|
|
1944
|
+
lt.displayName = "NavigationMenuTrigger";
|
|
1945
|
+
var ut = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
|
|
1940
1946
|
...t,
|
|
1941
1947
|
ref: n,
|
|
1942
1948
|
className: `${Q.content} ${e}`
|
|
1943
1949
|
}));
|
|
1944
|
-
|
|
1945
|
-
var
|
|
1950
|
+
ut.displayName = "NavigationMenuContent";
|
|
1951
|
+
var dt = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ u(j.Link, {
|
|
1946
1952
|
...i,
|
|
1947
1953
|
ref: a,
|
|
1948
1954
|
className: `${e === "navigation" ? Q.control : Q.link} ${n}`,
|
|
1949
|
-
children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(
|
|
1955
|
+
children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(ct, { icon: t }), r] }) : r
|
|
1950
1956
|
}));
|
|
1951
|
-
|
|
1957
|
+
dt.displayName = "NavigationMenuLink";
|
|
1952
1958
|
var $ = {
|
|
1953
1959
|
panel: "_panel_1hiss_6",
|
|
1954
1960
|
header: "_header_1hiss_14",
|
|
@@ -1980,18 +1986,18 @@ var $ = {
|
|
|
1980
1986
|
};
|
|
1981
1987
|
//#endregion
|
|
1982
1988
|
//#region src/components/Chat/ChatPanel.tsx
|
|
1983
|
-
function
|
|
1989
|
+
function ft({ children: e }) {
|
|
1984
1990
|
return /* @__PURE__ */ u("kbd", {
|
|
1985
1991
|
className: $.kbd,
|
|
1986
1992
|
children: e
|
|
1987
1993
|
});
|
|
1988
1994
|
}
|
|
1989
|
-
var
|
|
1990
|
-
/* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(
|
|
1991
|
-
/* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(
|
|
1992
|
-
/* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(
|
|
1995
|
+
var pt = /* @__PURE__ */ d(l, { children: [
|
|
1996
|
+
/* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(ft, { children: "↵" }), " send"] }),
|
|
1997
|
+
/* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(ft, { children: "⇧↵" }), " new line"] }),
|
|
1998
|
+
/* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(ft, { children: "esc" }), " close"] })
|
|
1993
1999
|
] });
|
|
1994
|
-
function
|
|
2000
|
+
function mt({ header: e, children: t, composer: n, hints: r = pt, className: i = "", threadRef: a, "aria-label": o }) {
|
|
1995
2001
|
return /* @__PURE__ */ d("div", {
|
|
1996
2002
|
className: `${$.panel} ${i}`,
|
|
1997
2003
|
"aria-label": o,
|
|
@@ -2020,7 +2026,7 @@ function pt({ header: e, children: t, composer: n, hints: r = ft, className: i =
|
|
|
2020
2026
|
}
|
|
2021
2027
|
//#endregion
|
|
2022
2028
|
//#region src/components/Chat/Message.tsx
|
|
2023
|
-
function
|
|
2029
|
+
function ht({ children: e, className: t = "" }) {
|
|
2024
2030
|
return /* @__PURE__ */ u("div", {
|
|
2025
2031
|
className: $.userRow,
|
|
2026
2032
|
children: /* @__PURE__ */ u("div", {
|
|
@@ -2029,7 +2035,7 @@ function mt({ children: e, className: t = "" }) {
|
|
|
2029
2035
|
})
|
|
2030
2036
|
});
|
|
2031
2037
|
}
|
|
2032
|
-
function
|
|
2038
|
+
function gt({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
|
|
2033
2039
|
return /* @__PURE__ */ d("div", {
|
|
2034
2040
|
className: `${$.assistant} ${r}`,
|
|
2035
2041
|
children: [/* @__PURE__ */ d("div", {
|
|
@@ -2046,13 +2052,13 @@ function ht({ label: e = "Assistant", icon: t, children: n, className: r = "" })
|
|
|
2046
2052
|
}
|
|
2047
2053
|
//#endregion
|
|
2048
2054
|
//#region src/components/Chat/Composer.tsx
|
|
2049
|
-
var
|
|
2055
|
+
var _t = 18, vt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: a, streaming: c = !1, placeholder: l = "Ask a question…", disabled: m = !1, autoFocus: h = !1, icon: g, maxLines: _ = 6, className: v = "", "aria-label": y = "Message" }, b) {
|
|
2050
2056
|
let x = s(null);
|
|
2051
2057
|
o(b, () => ({ focus: () => x.current?.focus() }), []), i(() => {
|
|
2052
2058
|
let e = x.current;
|
|
2053
2059
|
if (!e) return;
|
|
2054
2060
|
e.style.height = "auto";
|
|
2055
|
-
let t =
|
|
2061
|
+
let t = _t * _ + 12;
|
|
2056
2062
|
e.style.height = `${Math.min(e.scrollHeight, t)}px`;
|
|
2057
2063
|
}, [e, _]);
|
|
2058
2064
|
let S = !c && !m && e.trim().length > 0, w = r(() => {
|
|
@@ -2108,7 +2114,7 @@ var gt = 18, _t = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
|
|
|
2108
2114
|
});
|
|
2109
2115
|
//#endregion
|
|
2110
2116
|
//#region src/components/Chat/Citation.tsx
|
|
2111
|
-
function
|
|
2117
|
+
function yt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
|
|
2112
2118
|
let a = `${$.ref} ${i}`;
|
|
2113
2119
|
return t ? /* @__PURE__ */ u("a", {
|
|
2114
2120
|
href: t,
|
|
@@ -2126,7 +2132,7 @@ function vt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
|
|
|
2126
2132
|
children: e
|
|
2127
2133
|
});
|
|
2128
2134
|
}
|
|
2129
|
-
function
|
|
2135
|
+
function bt({ items: e, label: t = "Sources", className: n = "" }) {
|
|
2130
2136
|
return e.length === 0 ? null : /* @__PURE__ */ d("div", {
|
|
2131
2137
|
className: `${$.stack} ${n}`,
|
|
2132
2138
|
children: [/* @__PURE__ */ u("div", {
|
|
@@ -2135,7 +2141,7 @@ function yt({ items: e, label: t = "Sources", className: n = "" }) {
|
|
|
2135
2141
|
}), /* @__PURE__ */ u("div", {
|
|
2136
2142
|
className: $.wrap,
|
|
2137
2143
|
children: e.map((e) => {
|
|
2138
|
-
let t = /* @__PURE__ */ d(
|
|
2144
|
+
let t = /* @__PURE__ */ d(Me, {
|
|
2139
2145
|
icon: e.icon,
|
|
2140
2146
|
children: [
|
|
2141
2147
|
/* @__PURE__ */ u("span", {
|
|
@@ -2163,7 +2169,7 @@ function yt({ items: e, label: t = "Sources", className: n = "" }) {
|
|
|
2163
2169
|
}
|
|
2164
2170
|
//#endregion
|
|
2165
2171
|
//#region src/components/Chat/StreamStatus.tsx
|
|
2166
|
-
function
|
|
2172
|
+
function xt({ children: e, className: t = "" }) {
|
|
2167
2173
|
return /* @__PURE__ */ d("div", {
|
|
2168
2174
|
className: `${$.status} ${t}`,
|
|
2169
2175
|
role: "status",
|
|
@@ -2175,7 +2181,7 @@ function bt({ children: e, className: t = "" }) {
|
|
|
2175
2181
|
}
|
|
2176
2182
|
//#endregion
|
|
2177
2183
|
//#region src/components/Chat/Suggestions.tsx
|
|
2178
|
-
function
|
|
2184
|
+
function St({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
|
|
2179
2185
|
return /* @__PURE__ */ d("div", {
|
|
2180
2186
|
className: `${$.suggestions} ${r}`,
|
|
2181
2187
|
children: [/* @__PURE__ */ u("div", {
|
|
@@ -2194,7 +2200,7 @@ function xt({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
|
|
|
2194
2200
|
}
|
|
2195
2201
|
//#endregion
|
|
2196
2202
|
//#region src/components/Chat/AnswerActions.tsx
|
|
2197
|
-
function
|
|
2203
|
+
function Ct({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
|
|
2198
2204
|
return /* @__PURE__ */ d("div", {
|
|
2199
2205
|
className: `${$.actions} ${i}`,
|
|
2200
2206
|
children: [
|
|
@@ -2216,21 +2222,21 @@ function St({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
|
|
|
2216
2222
|
]
|
|
2217
2223
|
});
|
|
2218
2224
|
}
|
|
2219
|
-
var
|
|
2225
|
+
var wt = {
|
|
2220
2226
|
truncate: "_truncate_za4sm_1",
|
|
2221
2227
|
start: "_start_za4sm_13"
|
|
2222
2228
|
};
|
|
2223
2229
|
//#endregion
|
|
2224
2230
|
//#region src/components/Truncate/Truncate.tsx
|
|
2225
|
-
function
|
|
2231
|
+
function Tt({ children: e, side: t = "end", title: n, className: r = "" }) {
|
|
2226
2232
|
let i = n ?? (typeof e == "string" ? e : void 0);
|
|
2227
2233
|
return /* @__PURE__ */ u("span", {
|
|
2228
|
-
className: `${
|
|
2234
|
+
className: `${wt.truncate} ${t === "start" ? wt.start : ""} ${r}`,
|
|
2229
2235
|
title: i,
|
|
2230
2236
|
children: t === "start" ? /* @__PURE__ */ u("bdi", { children: e }) : e
|
|
2231
2237
|
});
|
|
2232
2238
|
}
|
|
2233
|
-
var
|
|
2239
|
+
var Et = {
|
|
2234
2240
|
disclosure: "_disclosure_94bgy_1",
|
|
2235
2241
|
trigger: "_trigger_94bgy_7",
|
|
2236
2242
|
summary: "_summary_94bgy_31",
|
|
@@ -2239,24 +2245,24 @@ var Tt = {
|
|
|
2239
2245
|
};
|
|
2240
2246
|
//#endregion
|
|
2241
2247
|
//#region src/components/Disclosure/Disclosure.tsx
|
|
2242
|
-
function
|
|
2248
|
+
function Dt({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
|
|
2243
2249
|
let [s, c] = e.useState(i), l = r ?? s, f = e.useId();
|
|
2244
2250
|
return /* @__PURE__ */ d("div", {
|
|
2245
|
-
className: `${
|
|
2251
|
+
className: `${Et.disclosure} ${o}`,
|
|
2246
2252
|
"data-state": l ? "open" : "closed",
|
|
2247
2253
|
children: [/* @__PURE__ */ d("button", {
|
|
2248
2254
|
type: "button",
|
|
2249
|
-
className:
|
|
2255
|
+
className: Et.trigger,
|
|
2250
2256
|
"aria-expanded": l,
|
|
2251
2257
|
"aria-controls": l ? f : void 0,
|
|
2252
2258
|
onClick: () => {
|
|
2253
2259
|
r === void 0 && c(!l), a?.(!l);
|
|
2254
2260
|
},
|
|
2255
2261
|
children: [/* @__PURE__ */ u("span", {
|
|
2256
|
-
className:
|
|
2262
|
+
className: Et.summary,
|
|
2257
2263
|
children: t
|
|
2258
2264
|
}), /* @__PURE__ */ u("span", {
|
|
2259
|
-
className:
|
|
2265
|
+
className: Et.chevron,
|
|
2260
2266
|
"aria-hidden": "true",
|
|
2261
2267
|
children: u(l ? h : _, {
|
|
2262
2268
|
size: 14,
|
|
@@ -2265,10 +2271,10 @@ function Et({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChang
|
|
|
2265
2271
|
})]
|
|
2266
2272
|
}), l && /* @__PURE__ */ u("div", {
|
|
2267
2273
|
id: f,
|
|
2268
|
-
className:
|
|
2274
|
+
className: Et.content,
|
|
2269
2275
|
children: n
|
|
2270
2276
|
})]
|
|
2271
2277
|
});
|
|
2272
2278
|
}
|
|
2273
2279
|
//#endregion
|
|
2274
|
-
export {
|
|
2280
|
+
export { Fe as Alert, Le as AlertDescription, Ie as AlertTitle, Ct as AnswerActions, gt as AssistantMessage, ae as Base, Oe as Breadcrumbs, P as Button, qe as Chart, mt as ChatPanel, re as Checkbox, Me as Chip, bt as CitationList, yt as CitationRef, vt as Composer, tt as DatePicker, Dt as Disclosure, oe as FilterPanelBase, le as InputField, ft as Kbd, Ye as Modal, at as NavigationMenu, ut as NavigationMenuContent, st as NavigationMenuItem, dt as NavigationMenuLink, ot as NavigationMenuList, lt as NavigationMenuTrigger, ge as Popover, Ae as ProgressBar, ue as RadioButton, ze as SaveBar, ce as SearchField, me as Select, pe as Slider, N as Spinner, xt as StreamStatus, St as Suggestions, _e as Table, be as TableCell, ve as TableHeader, Se as TableIcon, ye as TableRow, xe as TableValue, Te as Tabs, Je as Textarea, fe as ToggleSwitch, Ve as Tooltip, Tt as Truncate, ht as UserMessage, pt as defaultChatHints, ne as spinnerNames };
|