@sakaniui/react 0.3.26 → 0.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{TopBar-CwxSs2uQ.js → TopBar-Cbskdj4E.js} +700 -634
- package/dist/TopBar-P5mbIdH5.cjs +1 -0
- package/dist/blocks.cjs +1 -1
- package/dist/blocks.mjs +15 -23
- package/dist/components/SidebarItem/SidebarItem.d.ts +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +346 -328
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/TopBar-DMt67HWs.cjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as ee, W as S, X as C, Y as te, Z as ne, _ as re, a as ie, at as w, b as T, c as ae, ct as oe, d as se, dt as ce, et as le, f as ue, ft as de, g as fe, h as pe, i as me, it as he, j as ge, k as _e, l as ve, lt as ye, m as be, n as xe, nt as Se, o as Ce, ot as we, p as Te, pt as E, q as Ee, r as De, rt as Oe, s as ke, st as Ae, t as je, tt as Me, u as Ne, ut as Pe, v as Fe, w as Ie, x as Le, y as Re, z as ze } from "./TopBar-
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as ee, W as S, X as C, Y as te, Z as ne, _ as re, a as ie, at as w, b as T, c as ae, ct as oe, d as se, dt as ce, et as le, f as ue, ft as de, g as fe, h as pe, i as me, it as he, j as ge, k as _e, l as ve, lt as ye, m as be, n as xe, nt as Se, o as Ce, ot as we, p as Te, pt as E, q as Ee, r as De, rt as Oe, s as ke, st as Ae, t as je, tt as Me, u as Ne, ut as Pe, v as Fe, w as Ie, x as Le, y as Re, z as ze } from "./TopBar-Cbskdj4E.js";
|
|
2
2
|
import D, { useEffect as Be, useState as Ve } from "react";
|
|
3
3
|
import { Fragment as He, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
4
|
-
import { ArrowRight as Ue, ChartColumn as We, Check as Ge, ChevronDown as Ke, ChevronLeft as qe, ChevronRight as Je,
|
|
4
|
+
import { ArrowRight as Ue, ChartColumn as We, Check as Ge, ChevronDown as Ke, ChevronLeft as qe, ChevronRight as Je, ChevronsUpDown as Ye, Copy as Xe, File as Ze, Info as Qe, LogOut as $e, Menu as et, Minus as tt, MoreHorizontal as nt, Play as rt, Plus as it, Quote as at, Receipt as ot, Search as st, Sparkles as ct, TrendingDown as lt, TrendingUp as ut, TriangleAlert as dt, UploadCloud as ft, X as pt } from "lucide-react";
|
|
5
5
|
import { Area as mt, AreaChart as ht, Bar as gt, BarChart as _t, CartesianGrid as vt, Cell as yt, Legend as bt, Line as xt, LineChart as St, Pie as Ct, PieChart as wt, PolarAngleAxis as Tt, PolarGrid as Et, PolarRadiusAxis as Dt, Radar as Ot, RadarChart as kt, RadialBar as At, RadialBarChart as jt, Rectangle as Mt, ResponsiveContainer as Nt, Sector as Pt, Tooltip as Ft, XAxis as It, YAxis as Lt } from "recharts";
|
|
6
6
|
var Rt = {
|
|
7
7
|
announcement: "_announcement_1ba3c_1",
|
|
@@ -146,7 +146,7 @@ var Rt = {
|
|
|
146
146
|
className: A.filename,
|
|
147
147
|
children: t
|
|
148
148
|
}), /* @__PURE__ */ O(we, {
|
|
149
|
-
icon: s ? Ge :
|
|
149
|
+
icon: s ? Ge : Xe,
|
|
150
150
|
variant: "ghost",
|
|
151
151
|
size: "sm",
|
|
152
152
|
"aria-label": s ? "Copied" : "Copy code",
|
|
@@ -701,24 +701,42 @@ var $t = [
|
|
|
701
701
|
})]
|
|
702
702
|
});
|
|
703
703
|
}, ln = {
|
|
704
|
-
tags: "
|
|
705
|
-
remove: "
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
"
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}
|
|
704
|
+
tags: "_tags_bsi1x_1",
|
|
705
|
+
remove: "_remove_bsi1x_8",
|
|
706
|
+
tag: "_tag_bsi1x_1",
|
|
707
|
+
"tag--leaving": "_tag--leaving_bsi1x_22"
|
|
708
|
+
}, un = 160, dn = ({ tags: e, onRemove: t, className: n }) => {
|
|
709
|
+
let [r, i] = D.useState(null), a = D.useRef(void 0);
|
|
710
|
+
D.useEffect(() => () => window.clearTimeout(a.current), []);
|
|
711
|
+
let o = (e, n) => {
|
|
712
|
+
if (!(!t || r)) {
|
|
713
|
+
if (window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) {
|
|
714
|
+
t(e, n);
|
|
715
|
+
return;
|
|
716
|
+
}
|
|
717
|
+
i(e), a.current = window.setTimeout(() => {
|
|
718
|
+
t(e, n), i(null);
|
|
719
|
+
}, un);
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
return /* @__PURE__ */ O("div", {
|
|
723
|
+
className: [ln.tags, n ?? ""].filter(Boolean).join(" "),
|
|
724
|
+
children: e.map((e, n) => /* @__PURE__ */ O(C, {
|
|
725
|
+
className: [ln.tag, r === e ? ln["tag--leaving"] : ""].filter(Boolean).join(" "),
|
|
726
|
+
rightIcon: t && /* @__PURE__ */ O("button", {
|
|
727
|
+
type: "button",
|
|
728
|
+
className: ln.remove,
|
|
729
|
+
onClick: () => o(e, n),
|
|
730
|
+
"aria-label": `Remove ${e}`,
|
|
731
|
+
children: /* @__PURE__ */ O(pt, {
|
|
732
|
+
size: 12,
|
|
733
|
+
strokeWidth: E(12)
|
|
734
|
+
})
|
|
735
|
+
}),
|
|
736
|
+
children: e
|
|
737
|
+
}, e))
|
|
738
|
+
});
|
|
739
|
+
}, F = {
|
|
722
740
|
ticker: "_ticker_6xnxy_1",
|
|
723
741
|
track: "_track_6xnxy_9",
|
|
724
742
|
"ticker-scroll": "_ticker-scroll_6xnxy_1",
|
|
@@ -730,7 +748,7 @@ var $t = [
|
|
|
730
748
|
trendDown: "_trendDown_6xnxy_58",
|
|
731
749
|
fadeLeft: "_fadeLeft_6xnxy_60",
|
|
732
750
|
fadeRight: "_fadeRight_6xnxy_61"
|
|
733
|
-
},
|
|
751
|
+
}, fn = (e) => `${e >= 0 ? "+" : ""}${e}%`, pn = ({ items: e, formatChange: t, ariaHidden: n }) => /* @__PURE__ */ O("div", {
|
|
734
752
|
className: F.row,
|
|
735
753
|
"aria-hidden": n,
|
|
736
754
|
children: e.map((e, n) => {
|
|
@@ -754,7 +772,7 @@ var $t = [
|
|
|
754
772
|
]
|
|
755
773
|
}, `${e.symbol}-${n}`);
|
|
756
774
|
})
|
|
757
|
-
}),
|
|
775
|
+
}), mn = ({ items: e, speed: t = 40, formatChange: n = fn, className: r }) => {
|
|
758
776
|
let i = D.useRef(null), [a, o] = D.useState(20);
|
|
759
777
|
return D.useEffect(() => {
|
|
760
778
|
let e = i.current;
|
|
@@ -775,10 +793,10 @@ var $t = [
|
|
|
775
793
|
ref: i,
|
|
776
794
|
className: F.track,
|
|
777
795
|
style: { "--ticker-duration": `${a}s` },
|
|
778
|
-
children: [/* @__PURE__ */ O(
|
|
796
|
+
children: [/* @__PURE__ */ O(pn, {
|
|
779
797
|
items: e,
|
|
780
798
|
formatChange: n
|
|
781
|
-
}), /* @__PURE__ */ O(
|
|
799
|
+
}), /* @__PURE__ */ O(pn, {
|
|
782
800
|
items: e,
|
|
783
801
|
formatChange: n,
|
|
784
802
|
ariaHidden: !0
|
|
@@ -810,10 +828,10 @@ var $t = [
|
|
|
810
828
|
emptyIcon: "_emptyIcon_ovxee_86",
|
|
811
829
|
emptyTitle: "_emptyTitle_ovxee_89",
|
|
812
830
|
emptyDesc: "_emptyDesc_ovxee_96"
|
|
813
|
-
},
|
|
831
|
+
}, hn = (e) => `${e >= 0 ? "+" : "-"}${Math.abs(e).toLocaleString("en-US", {
|
|
814
832
|
style: "currency",
|
|
815
833
|
currency: "USD"
|
|
816
|
-
})}`,
|
|
834
|
+
})}`, gn = ({ transactions: e, formatAmount: t = hn, emptyTitle: n = "No transactions yet", emptyDescription: r = "Your activity will show up here.", className: i }) => e.length === 0 ? /* @__PURE__ */ k("div", {
|
|
817
835
|
className: [I.empty, i ?? ""].filter(Boolean).join(" "),
|
|
818
836
|
children: [
|
|
819
837
|
/* @__PURE__ */ O(ot, {
|
|
@@ -872,7 +890,7 @@ var $t = [
|
|
|
872
890
|
author: "_author_19qxp_77",
|
|
873
891
|
authorText: "_authorText_19qxp_83",
|
|
874
892
|
authorName: "_authorName_19qxp_91"
|
|
875
|
-
},
|
|
893
|
+
}, _n = ({ quote: e, author: t, className: n }) => {
|
|
876
894
|
let r = !!t;
|
|
877
895
|
return /* @__PURE__ */ k("div", {
|
|
878
896
|
className: [
|
|
@@ -930,51 +948,51 @@ var $t = [
|
|
|
930
948
|
]
|
|
931
949
|
})]
|
|
932
950
|
});
|
|
933
|
-
},
|
|
951
|
+
}, vn = {
|
|
934
952
|
root: "_root_btuyr_1",
|
|
935
953
|
rootLeft: "_rootLeft_btuyr_13",
|
|
936
954
|
rootTop: "_rootTop_btuyr_19",
|
|
937
955
|
ruleLeft: "_ruleLeft_btuyr_24",
|
|
938
956
|
ruleTop: "_ruleTop_btuyr_31",
|
|
939
957
|
text: "_text_btuyr_39"
|
|
940
|
-
},
|
|
958
|
+
}, yn = ({ text: e, align: t = "left", className: n }) => /* @__PURE__ */ k("div", {
|
|
941
959
|
className: [
|
|
942
|
-
|
|
943
|
-
t === "top" ?
|
|
960
|
+
vn.root,
|
|
961
|
+
t === "top" ? vn.rootTop : vn.rootLeft,
|
|
944
962
|
n ?? ""
|
|
945
963
|
].filter(Boolean).join(" "),
|
|
946
964
|
children: [/* @__PURE__ */ O("span", {
|
|
947
|
-
className: t === "top" ?
|
|
965
|
+
className: t === "top" ? vn.ruleTop : vn.ruleLeft,
|
|
948
966
|
"aria-hidden": "true"
|
|
949
967
|
}), /* @__PURE__ */ O("p", {
|
|
950
|
-
className:
|
|
968
|
+
className: vn.text,
|
|
951
969
|
children: e
|
|
952
970
|
})]
|
|
953
|
-
}),
|
|
971
|
+
}), bn = {
|
|
954
972
|
root: "_root_awxwk_1",
|
|
955
973
|
imageWrap: "_imageWrap_awxwk_10",
|
|
956
974
|
"root--large": "_root--large_awxwk_27",
|
|
957
975
|
"root--small": "_root--small_awxwk_33",
|
|
958
976
|
image: "_image_awxwk_10",
|
|
959
977
|
caption: "_caption_awxwk_47"
|
|
960
|
-
},
|
|
978
|
+
}, xn = ({ src: e, alt: t = "", size: n = "large", caption: r, className: i }) => /* @__PURE__ */ k("figure", {
|
|
961
979
|
className: [
|
|
962
|
-
|
|
963
|
-
|
|
980
|
+
bn.root,
|
|
981
|
+
bn[`root--${n}`],
|
|
964
982
|
i ?? ""
|
|
965
983
|
].filter(Boolean).join(" "),
|
|
966
984
|
children: [/* @__PURE__ */ O("span", {
|
|
967
|
-
className:
|
|
985
|
+
className: bn.imageWrap,
|
|
968
986
|
children: /* @__PURE__ */ O("img", {
|
|
969
987
|
src: e,
|
|
970
988
|
alt: t,
|
|
971
|
-
className:
|
|
989
|
+
className: bn.image
|
|
972
990
|
})
|
|
973
991
|
}), r && /* @__PURE__ */ O("figcaption", {
|
|
974
|
-
className:
|
|
992
|
+
className: bn.caption,
|
|
975
993
|
children: r
|
|
976
994
|
})]
|
|
977
|
-
}),
|
|
995
|
+
}), Sn = {
|
|
978
996
|
root: "_root_uc5r9_1",
|
|
979
997
|
rootCenter: "_rootCenter_uc5r9_10",
|
|
980
998
|
rootLeft: "_rootLeft_uc5r9_15",
|
|
@@ -983,12 +1001,12 @@ var $t = [
|
|
|
983
1001
|
ctaRow: "_ctaRow_uc5r9_39",
|
|
984
1002
|
avatarBlock: "_avatarBlock_uc5r9_45",
|
|
985
1003
|
avatarsCaption: "_avatarsCaption_uc5r9_57"
|
|
986
|
-
},
|
|
1004
|
+
}, Cn = ({ title: e, description: t, badgeLabel: n, primaryCta: r, secondaryCta: i, avatars: a, avatarsCaption: o, align: s = "center", className: c }) => {
|
|
987
1005
|
let l = !!(r || i), u = !!(a && a.length > 0);
|
|
988
1006
|
return /* @__PURE__ */ k("div", {
|
|
989
1007
|
className: [
|
|
990
|
-
|
|
991
|
-
s === "left" ?
|
|
1008
|
+
Sn.root,
|
|
1009
|
+
s === "left" ? Sn.rootLeft : Sn.rootCenter,
|
|
992
1010
|
c ?? ""
|
|
993
1011
|
].filter(Boolean).join(" "),
|
|
994
1012
|
children: [
|
|
@@ -998,15 +1016,15 @@ var $t = [
|
|
|
998
1016
|
children: n
|
|
999
1017
|
}),
|
|
1000
1018
|
/* @__PURE__ */ O("p", {
|
|
1001
|
-
className:
|
|
1019
|
+
className: Sn.title,
|
|
1002
1020
|
children: e
|
|
1003
1021
|
}),
|
|
1004
1022
|
t && /* @__PURE__ */ O("p", {
|
|
1005
|
-
className:
|
|
1023
|
+
className: Sn.description,
|
|
1006
1024
|
children: t
|
|
1007
1025
|
}),
|
|
1008
1026
|
l && /* @__PURE__ */ k("div", {
|
|
1009
|
-
className:
|
|
1027
|
+
className: Sn.ctaRow,
|
|
1010
1028
|
children: [r && /* @__PURE__ */ O(w, {
|
|
1011
1029
|
variant: "primary",
|
|
1012
1030
|
onClick: r.onClick,
|
|
@@ -1023,29 +1041,29 @@ var $t = [
|
|
|
1023
1041
|
})]
|
|
1024
1042
|
}),
|
|
1025
1043
|
u && /* @__PURE__ */ k("div", {
|
|
1026
|
-
className:
|
|
1044
|
+
className: Sn.avatarBlock,
|
|
1027
1045
|
children: [/* @__PURE__ */ O(m, {
|
|
1028
1046
|
size: "md",
|
|
1029
1047
|
avatars: a
|
|
1030
1048
|
}), o && /* @__PURE__ */ O("p", {
|
|
1031
|
-
className:
|
|
1049
|
+
className: Sn.avatarsCaption,
|
|
1032
1050
|
children: o
|
|
1033
1051
|
})]
|
|
1034
1052
|
})
|
|
1035
1053
|
]
|
|
1036
1054
|
});
|
|
1037
|
-
},
|
|
1055
|
+
}, wn = {
|
|
1038
1056
|
root: "_root_5kajg_1",
|
|
1039
1057
|
item: "_item_5kajg_12",
|
|
1040
1058
|
marker: "_marker_5kajg_18",
|
|
1041
1059
|
dot: "_dot_5kajg_26",
|
|
1042
1060
|
label: "_label_5kajg_34"
|
|
1043
|
-
},
|
|
1044
|
-
className: [
|
|
1061
|
+
}, Tn = ({ items: e, style: t = "check", className: n }) => /* @__PURE__ */ O("ul", {
|
|
1062
|
+
className: [wn.root, n ?? ""].filter(Boolean).join(" "),
|
|
1045
1063
|
children: e.map((e, n) => /* @__PURE__ */ k("li", {
|
|
1046
|
-
className:
|
|
1064
|
+
className: wn.item,
|
|
1047
1065
|
children: [/* @__PURE__ */ k("span", {
|
|
1048
|
-
className:
|
|
1066
|
+
className: wn.marker,
|
|
1049
1067
|
"aria-hidden": "true",
|
|
1050
1068
|
children: [
|
|
1051
1069
|
t === "check" && /* @__PURE__ */ O(Ge, {
|
|
@@ -1056,32 +1074,32 @@ var $t = [
|
|
|
1056
1074
|
size: 16,
|
|
1057
1075
|
strokeWidth: E(16)
|
|
1058
1076
|
}),
|
|
1059
|
-
t === "bullet" && /* @__PURE__ */ O("span", { className:
|
|
1077
|
+
t === "bullet" && /* @__PURE__ */ O("span", { className: wn.dot })
|
|
1060
1078
|
]
|
|
1061
1079
|
}), /* @__PURE__ */ O("span", {
|
|
1062
|
-
className:
|
|
1080
|
+
className: wn.label,
|
|
1063
1081
|
children: e
|
|
1064
1082
|
})]
|
|
1065
1083
|
}, n))
|
|
1066
|
-
}),
|
|
1084
|
+
}), En = {
|
|
1067
1085
|
marquee: "_marquee_1pc4i_1",
|
|
1068
1086
|
track: "_track_1pc4i_13",
|
|
1069
1087
|
row: "_row_1pc4i_19",
|
|
1070
1088
|
item: "_item_1pc4i_25",
|
|
1071
1089
|
fadeLeft: "_fadeLeft_1pc4i_31",
|
|
1072
1090
|
fadeRight: "_fadeRight_1pc4i_32"
|
|
1073
|
-
},
|
|
1074
|
-
className:
|
|
1091
|
+
}, Dn = ({ items: e, gap: t, ariaHidden: n }) => /* @__PURE__ */ O("div", {
|
|
1092
|
+
className: En.row,
|
|
1075
1093
|
style: {
|
|
1076
1094
|
gap: t,
|
|
1077
1095
|
paddingRight: t
|
|
1078
1096
|
},
|
|
1079
1097
|
"aria-hidden": n,
|
|
1080
1098
|
children: e.map((e, t) => /* @__PURE__ */ O("div", {
|
|
1081
|
-
className:
|
|
1099
|
+
className: En.item,
|
|
1082
1100
|
children: e
|
|
1083
1101
|
}, t))
|
|
1084
|
-
}),
|
|
1102
|
+
}), On = ({ items: e, speed: t = 40, gap: n, className: r }) => {
|
|
1085
1103
|
let i = D.useRef(null), a = D.useRef(0), o = D.useRef(0), s = D.useRef(!1);
|
|
1086
1104
|
return D.useEffect(() => {
|
|
1087
1105
|
let e = i.current?.firstElementChild;
|
|
@@ -1103,7 +1121,7 @@ var $t = [
|
|
|
1103
1121
|
};
|
|
1104
1122
|
return n = setTimeout(c, 16), () => clearTimeout(n);
|
|
1105
1123
|
}, [t]), /* @__PURE__ */ k("div", {
|
|
1106
|
-
className: [
|
|
1124
|
+
className: [En.marquee, r ?? ""].filter(Boolean).join(" "),
|
|
1107
1125
|
onMouseEnter: () => {
|
|
1108
1126
|
s.current = !0;
|
|
1109
1127
|
},
|
|
@@ -1113,27 +1131,27 @@ var $t = [
|
|
|
1113
1131
|
children: [
|
|
1114
1132
|
/* @__PURE__ */ k("div", {
|
|
1115
1133
|
ref: i,
|
|
1116
|
-
className:
|
|
1117
|
-
children: [/* @__PURE__ */ O(
|
|
1134
|
+
className: En.track,
|
|
1135
|
+
children: [/* @__PURE__ */ O(Dn, {
|
|
1118
1136
|
items: e,
|
|
1119
1137
|
gap: n
|
|
1120
|
-
}), /* @__PURE__ */ O(
|
|
1138
|
+
}), /* @__PURE__ */ O(Dn, {
|
|
1121
1139
|
items: e,
|
|
1122
1140
|
gap: n,
|
|
1123
1141
|
ariaHidden: !0
|
|
1124
1142
|
})]
|
|
1125
1143
|
}),
|
|
1126
1144
|
/* @__PURE__ */ O("div", {
|
|
1127
|
-
className:
|
|
1145
|
+
className: En.fadeLeft,
|
|
1128
1146
|
"aria-hidden": "true"
|
|
1129
1147
|
}),
|
|
1130
1148
|
/* @__PURE__ */ O("div", {
|
|
1131
|
-
className:
|
|
1149
|
+
className: En.fadeRight,
|
|
1132
1150
|
"aria-hidden": "true"
|
|
1133
1151
|
})
|
|
1134
1152
|
]
|
|
1135
1153
|
});
|
|
1136
|
-
},
|
|
1154
|
+
}, kn = {
|
|
1137
1155
|
root: "_root_17a1b_1",
|
|
1138
1156
|
numRow: "_numRow_17a1b_9",
|
|
1139
1157
|
value: "_value_17a1b_15",
|
|
@@ -1141,17 +1159,17 @@ var $t = [
|
|
|
1141
1159
|
trendUp: "_trendUp_17a1b_35",
|
|
1142
1160
|
trendDown: "_trendDown_17a1b_39",
|
|
1143
1161
|
label: "_label_17a1b_43"
|
|
1144
|
-
},
|
|
1162
|
+
}, An = ({ value: e, label: t, trend: n, className: r }) => {
|
|
1145
1163
|
let i = n !== void 0, a = i && n >= 0, o = a ? ut : lt;
|
|
1146
1164
|
return /* @__PURE__ */ k("div", {
|
|
1147
|
-
className: [
|
|
1165
|
+
className: [kn.root, r ?? ""].filter(Boolean).join(" "),
|
|
1148
1166
|
children: [/* @__PURE__ */ k("div", {
|
|
1149
|
-
className:
|
|
1167
|
+
className: kn.numRow,
|
|
1150
1168
|
children: [/* @__PURE__ */ O("p", {
|
|
1151
|
-
className:
|
|
1169
|
+
className: kn.value,
|
|
1152
1170
|
children: e
|
|
1153
1171
|
}), i && /* @__PURE__ */ k("span", {
|
|
1154
|
-
className: [
|
|
1172
|
+
className: [kn.trend, a ? kn.trendUp : kn.trendDown].join(" "),
|
|
1155
1173
|
children: [
|
|
1156
1174
|
/* @__PURE__ */ O(o, {
|
|
1157
1175
|
size: 24,
|
|
@@ -1162,7 +1180,7 @@ var $t = [
|
|
|
1162
1180
|
]
|
|
1163
1181
|
})]
|
|
1164
1182
|
}), /* @__PURE__ */ O("p", {
|
|
1165
|
-
className:
|
|
1183
|
+
className: kn.label,
|
|
1166
1184
|
children: t
|
|
1167
1185
|
})]
|
|
1168
1186
|
});
|
|
@@ -1177,7 +1195,7 @@ var $t = [
|
|
|
1177
1195
|
collapseInner: "_collapseInner_scbx4_78",
|
|
1178
1196
|
navLinks: "_navLinks_scbx4_91",
|
|
1179
1197
|
navLink: "_navLink_scbx4_91"
|
|
1180
|
-
},
|
|
1198
|
+
}, jn = ({ label: e, links: t, ctaLabel: n = "Get started", onCtaClick: r, open: i, defaultOpen: a = !1, onOpenChange: o, className: s }) => {
|
|
1181
1199
|
let c = i !== void 0, [l, u] = D.useState(a), d = c ? i : l, f = () => {
|
|
1182
1200
|
let e = !d;
|
|
1183
1201
|
c || u(e), o?.(e);
|
|
@@ -1238,18 +1256,18 @@ var $t = [
|
|
|
1238
1256
|
})
|
|
1239
1257
|
})]
|
|
1240
1258
|
});
|
|
1241
|
-
},
|
|
1259
|
+
}, Mn = {
|
|
1242
1260
|
root: "_root_lrpdp_1",
|
|
1243
1261
|
"root--sm": "_root--sm_lrpdp_14",
|
|
1244
1262
|
"root--md": "_root--md_lrpdp_18",
|
|
1245
1263
|
"root--lg": "_root--lg_lrpdp_22",
|
|
1246
1264
|
defaultMark: "_defaultMark_lrpdp_27"
|
|
1247
|
-
},
|
|
1265
|
+
}, Nn = {
|
|
1248
1266
|
sm: 14,
|
|
1249
1267
|
md: 16,
|
|
1250
1268
|
lg: 18
|
|
1251
|
-
},
|
|
1252
|
-
let i =
|
|
1269
|
+
}, Pn = ({ size: e = "md", logo: t, label: n, className: r }) => {
|
|
1270
|
+
let i = Nn[e], a = D.isValidElement(t) ? D.cloneElement(t, {
|
|
1253
1271
|
size: i,
|
|
1254
1272
|
strokeWidth: E(i)
|
|
1255
1273
|
}) : t ?? /* @__PURE__ */ O("img", {
|
|
@@ -1257,12 +1275,12 @@ var $t = [
|
|
|
1257
1275
|
alt: "",
|
|
1258
1276
|
width: i,
|
|
1259
1277
|
height: i,
|
|
1260
|
-
className:
|
|
1278
|
+
className: Mn.defaultMark
|
|
1261
1279
|
});
|
|
1262
1280
|
return /* @__PURE__ */ O("span", {
|
|
1263
1281
|
className: [
|
|
1264
|
-
|
|
1265
|
-
|
|
1282
|
+
Mn.root,
|
|
1283
|
+
Mn[`root--${e}`],
|
|
1266
1284
|
r ?? ""
|
|
1267
1285
|
].filter(Boolean).join(" "),
|
|
1268
1286
|
role: "img",
|
|
@@ -1280,7 +1298,7 @@ var $t = [
|
|
|
1280
1298
|
bio: "_bio_ibchq_53",
|
|
1281
1299
|
social: "_social_ibchq_63",
|
|
1282
1300
|
socialBtn: "_socialBtn_ibchq_71"
|
|
1283
|
-
},
|
|
1301
|
+
}, Fn = ({ name: e, role: t, avatarSrc: n, avatarAlt: r, bio: i, socialLinks: a = [], className: o }) => {
|
|
1284
1302
|
let s = !!i || a.length > 0;
|
|
1285
1303
|
return /* @__PURE__ */ k("div", {
|
|
1286
1304
|
className: [
|
|
@@ -1320,21 +1338,21 @@ var $t = [
|
|
|
1320
1338
|
})
|
|
1321
1339
|
]
|
|
1322
1340
|
});
|
|
1323
|
-
},
|
|
1341
|
+
}, In = {
|
|
1324
1342
|
heading: "_heading_96cdx_1",
|
|
1325
1343
|
h2: "_h2_96cdx_8",
|
|
1326
1344
|
h3: "_h3_96cdx_14"
|
|
1327
|
-
},
|
|
1345
|
+
}, Ln = ({ children: e, level: t = "h2", className: n }) => /* @__PURE__ */ O(t, {
|
|
1328
1346
|
className: [
|
|
1329
|
-
|
|
1330
|
-
|
|
1347
|
+
In.heading,
|
|
1348
|
+
In[t],
|
|
1331
1349
|
n ?? ""
|
|
1332
1350
|
].filter(Boolean).join(" "),
|
|
1333
1351
|
children: e
|
|
1334
|
-
}),
|
|
1335
|
-
className: [
|
|
1352
|
+
}), Rn = { paragraph: "_paragraph_8pqdi_1" }, zn = ({ children: e, className: t }) => /* @__PURE__ */ O("p", {
|
|
1353
|
+
className: [Rn.paragraph, t ?? ""].filter(Boolean).join(" "),
|
|
1336
1354
|
children: e
|
|
1337
|
-
}),
|
|
1355
|
+
}), Bn = {
|
|
1338
1356
|
rootBordered: "_rootBordered_5cgsj_1",
|
|
1339
1357
|
rail: "_rail_5cgsj_12",
|
|
1340
1358
|
contentHorizontal: "_contentHorizontal_5cgsj_18",
|
|
@@ -1343,44 +1361,44 @@ var $t = [
|
|
|
1343
1361
|
textVertical: "_textVertical_5cgsj_41",
|
|
1344
1362
|
title: "_title_5cgsj_49",
|
|
1345
1363
|
description: "_description_5cgsj_57"
|
|
1346
|
-
},
|
|
1364
|
+
}, Vn = ({ icon: e, title: t, description: n, layout: r = "horizontal", leftBorder: i = !1, className: a }) => {
|
|
1347
1365
|
let o = r === "vertical", s = /* @__PURE__ */ k("div", {
|
|
1348
|
-
className: o ?
|
|
1366
|
+
className: o ? Bn.contentVertical : Bn.contentHorizontal,
|
|
1349
1367
|
children: [/* @__PURE__ */ O(g, {
|
|
1350
1368
|
icon: e,
|
|
1351
1369
|
size: "sm",
|
|
1352
1370
|
variant: "light"
|
|
1353
1371
|
}), /* @__PURE__ */ k("div", {
|
|
1354
|
-
className: o ?
|
|
1372
|
+
className: o ? Bn.textVertical : Bn.textHorizontal,
|
|
1355
1373
|
children: [/* @__PURE__ */ O("p", {
|
|
1356
|
-
className:
|
|
1374
|
+
className: Bn.title,
|
|
1357
1375
|
children: t
|
|
1358
1376
|
}), /* @__PURE__ */ O("p", {
|
|
1359
|
-
className:
|
|
1377
|
+
className: Bn.description,
|
|
1360
1378
|
children: n
|
|
1361
1379
|
})]
|
|
1362
1380
|
})]
|
|
1363
1381
|
});
|
|
1364
1382
|
return i ? /* @__PURE__ */ k("div", {
|
|
1365
|
-
className: [
|
|
1383
|
+
className: [Bn.rootBordered, a ?? ""].filter(Boolean).join(" "),
|
|
1366
1384
|
children: [/* @__PURE__ */ O(Me, {
|
|
1367
1385
|
orientation: "vertical",
|
|
1368
|
-
className:
|
|
1386
|
+
className: Bn.rail
|
|
1369
1387
|
}), s]
|
|
1370
1388
|
}) : D.cloneElement(s, { className: [s.props.className, a ?? ""].filter(Boolean).join(" ") });
|
|
1371
|
-
},
|
|
1389
|
+
}, Hn = { chart: "_chart_qqaox_2" }, Un = {
|
|
1372
1390
|
sm: 180,
|
|
1373
1391
|
md: 240,
|
|
1374
1392
|
lg: 320,
|
|
1375
1393
|
xl: 420
|
|
1376
|
-
},
|
|
1394
|
+
}, Wn = ({ data: e, variant: t = "default", seriesLabels: n = ["Value", "Value 2"], size: r = "md", height: i, className: a }) => {
|
|
1377
1395
|
let o = D.useRef(null), s = M(o), c = s("--color-chart-5") ?? "#dca84f", l = s("--color-chart-2") ?? "#5b92dd", u = s("--color-border-subtle") ?? "#e7e5e1", d = s("--color-fg-muted") ?? "#78716a", f = e.some((e) => e.value2 !== void 0), p = t === "step" ? "step" : t === "linear" ? "linear" : "monotone", m = t === "stacked" ? "stack" : void 0;
|
|
1378
1396
|
return /* @__PURE__ */ O("div", {
|
|
1379
1397
|
ref: o,
|
|
1380
|
-
className: [
|
|
1398
|
+
className: [Hn.chart, a ?? ""].filter(Boolean).join(" "),
|
|
1381
1399
|
children: /* @__PURE__ */ O(Nt, {
|
|
1382
1400
|
width: "100%",
|
|
1383
|
-
height: i ??
|
|
1401
|
+
height: i ?? Un[r],
|
|
1384
1402
|
children: /* @__PURE__ */ k(ht, {
|
|
1385
1403
|
data: e,
|
|
1386
1404
|
margin: {
|
|
@@ -1489,7 +1507,7 @@ var $t = [
|
|
|
1489
1507
|
col__body: "_col__body_1v24u_24",
|
|
1490
1508
|
col__drop: "_col__drop_1v24u_25",
|
|
1491
1509
|
col__add: "_col__add_1v24u_31"
|
|
1492
|
-
},
|
|
1510
|
+
}, Gn = ({ state: e = "default", title: t, count: n, dotColor: r = "var(--color-chart-1)", children: i, onAdd: a, onMenu: o, className: s }) => /* @__PURE__ */ k("div", {
|
|
1493
1511
|
className: [B.col, s ?? ""].filter(Boolean).join(" "),
|
|
1494
1512
|
children: [
|
|
1495
1513
|
/* @__PURE__ */ k("div", {
|
|
@@ -1567,7 +1585,7 @@ var $t = [
|
|
|
1567
1585
|
"day--disabled": "_day--disabled_1ljjb_51",
|
|
1568
1586
|
dropdowns: "_dropdowns_1ljjb_54",
|
|
1569
1587
|
dropdown: "_dropdown_1ljjb_54"
|
|
1570
|
-
},
|
|
1588
|
+
}, Kn = [
|
|
1571
1589
|
"Su",
|
|
1572
1590
|
"Mo",
|
|
1573
1591
|
"Tu",
|
|
@@ -1575,7 +1593,7 @@ var $t = [
|
|
|
1575
1593
|
"Th",
|
|
1576
1594
|
"Fr",
|
|
1577
1595
|
"Sa"
|
|
1578
|
-
],
|
|
1596
|
+
], qn = [
|
|
1579
1597
|
"January",
|
|
1580
1598
|
"February",
|
|
1581
1599
|
"March",
|
|
@@ -1588,11 +1606,11 @@ var $t = [
|
|
|
1588
1606
|
"October",
|
|
1589
1607
|
"November",
|
|
1590
1608
|
"December"
|
|
1591
|
-
],
|
|
1609
|
+
], Jn = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Yn = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Xn = ({ mode: e = "single", value: t, onChange: n, range: r, onRangeChange: i, headerType: o = "arrows", defaultMonth: s, minDate: c, maxDate: l, className: u }) => {
|
|
1592
1610
|
let [d, f] = D.useState(() => {
|
|
1593
1611
|
let e = s ?? t ?? r?.from ?? /* @__PURE__ */ new Date();
|
|
1594
1612
|
return new Date(e.getFullYear(), e.getMonth(), 1);
|
|
1595
|
-
}), [p, m] = D.useState({}), h = a(), g = r === void 0 ? p : r, _ = /* @__PURE__ */ new Date(), v = d.getFullYear(), y = d.getMonth(), b = new Date(v, y, 1).getDay(), x = new Date(v, y, 1 - b), ee = Array.from({ length: 42 }, (e, t) => new Date(x.getFullYear(), x.getMonth(), x.getDate() + t)), S = (e) => c && e <
|
|
1613
|
+
}), [p, m] = D.useState({}), h = a(), g = r === void 0 ? p : r, _ = /* @__PURE__ */ new Date(), v = d.getFullYear(), y = d.getMonth(), b = new Date(v, y, 1).getDay(), x = new Date(v, y, 1 - b), ee = Array.from({ length: 42 }, (e, t) => new Date(x.getFullYear(), x.getMonth(), x.getDate() + t)), S = (e) => c && e < Yn(c) || l && e > l, C = (e) => {
|
|
1596
1614
|
r === void 0 && m(e), i?.(e);
|
|
1597
1615
|
}, te = (t) => {
|
|
1598
1616
|
if (e === "single") {
|
|
@@ -1613,13 +1631,13 @@ var $t = [
|
|
|
1613
1631
|
}, ne = (n) => {
|
|
1614
1632
|
if (S(n)) return "disabled";
|
|
1615
1633
|
if (e === "single") {
|
|
1616
|
-
if (
|
|
1634
|
+
if (Jn(n, t)) return "selected";
|
|
1617
1635
|
} else {
|
|
1618
1636
|
let { from: e, to: t } = g;
|
|
1619
|
-
if (
|
|
1637
|
+
if (Jn(n, e) || Jn(n, t)) return "selected";
|
|
1620
1638
|
if (e && t && n > e && n < t) return "in-range";
|
|
1621
1639
|
}
|
|
1622
|
-
return n.getMonth() === y ?
|
|
1640
|
+
return n.getMonth() === y ? Jn(n, _) ? "today" : "default" : "outside";
|
|
1623
1641
|
}, re = c ? c.getFullYear() : v - 10, ie = l ? l.getFullYear() : v + 10, w = Array.from({ length: ie - re + 1 }, (e, t) => re + t);
|
|
1624
1642
|
return /* @__PURE__ */ k("div", {
|
|
1625
1643
|
className: [V.calendar, u ?? ""].filter(Boolean).join(" "),
|
|
@@ -1644,7 +1662,7 @@ var $t = [
|
|
|
1644
1662
|
value: y,
|
|
1645
1663
|
onChange: (e) => f(new Date(v, Number(e.target.value), 1)),
|
|
1646
1664
|
"aria-label": "Month",
|
|
1647
|
-
children:
|
|
1665
|
+
children: qn.map((e, t) => /* @__PURE__ */ O("option", {
|
|
1648
1666
|
value: t,
|
|
1649
1667
|
children: e
|
|
1650
1668
|
}, e))
|
|
@@ -1661,7 +1679,7 @@ var $t = [
|
|
|
1661
1679
|
}) : /* @__PURE__ */ k("span", {
|
|
1662
1680
|
className: V.header__label,
|
|
1663
1681
|
children: [
|
|
1664
|
-
|
|
1682
|
+
qn[y],
|
|
1665
1683
|
" ",
|
|
1666
1684
|
v
|
|
1667
1685
|
]
|
|
@@ -1680,7 +1698,7 @@ var $t = [
|
|
|
1680
1698
|
}),
|
|
1681
1699
|
/* @__PURE__ */ O("div", {
|
|
1682
1700
|
className: V.weekdays,
|
|
1683
|
-
children:
|
|
1701
|
+
children: Kn.map((e) => /* @__PURE__ */ O("span", {
|
|
1684
1702
|
className: V.weekday,
|
|
1685
1703
|
children: e
|
|
1686
1704
|
}, e))
|
|
@@ -1721,7 +1739,7 @@ var $t = [
|
|
|
1721
1739
|
card__actions: "_card__actions_1567t_54",
|
|
1722
1740
|
"card__actions--split": "_card__actions--split_1567t_63",
|
|
1723
1741
|
card__actionsGroup: "_card__actionsGroup_1567t_64"
|
|
1724
|
-
},
|
|
1742
|
+
}, Zn = ({ title: e, description: t, actions: n, leadingAction: r, interactive: i, children: a, className: o }) => /* @__PURE__ */ k("div", {
|
|
1725
1743
|
className: [
|
|
1726
1744
|
H.card,
|
|
1727
1745
|
i ? H["card--interactive"] : "",
|
|
@@ -1794,7 +1812,7 @@ var $t = [
|
|
|
1794
1812
|
panel__loading: "_panel__loading_12ugs_255",
|
|
1795
1813
|
panel__spinner: "_panel__spinner_12ugs_259",
|
|
1796
1814
|
"sakani-cb-spin": "_sakani-cb-spin_12ugs_1"
|
|
1797
|
-
},
|
|
1815
|
+
}, Qn = ({ options: e, mode: t = "single", size: n = "md", label: r, description: i, error: a, placeholder: o = "Select...", disabled: s, loading: c, value: l, onChange: u, className: d }) => {
|
|
1798
1816
|
let f = D.useId(), [p, m] = D.useState(!1), [h, g] = D.useState(!1), [_, v] = D.useState(0), y = D.useRef(null), b = e;
|
|
1799
1817
|
D.useEffect(() => {
|
|
1800
1818
|
p && g(!0);
|
|
@@ -2023,12 +2041,12 @@ var $t = [
|
|
|
2023
2041
|
})
|
|
2024
2042
|
]
|
|
2025
2043
|
});
|
|
2026
|
-
},
|
|
2044
|
+
}, $n = {
|
|
2027
2045
|
chart: "_chart_aiboa_2",
|
|
2028
2046
|
center: "_center_aiboa_26",
|
|
2029
2047
|
center__value: "_center__value_aiboa_35",
|
|
2030
2048
|
center__caption: "_center__caption_aiboa_36"
|
|
2031
|
-
},
|
|
2049
|
+
}, er = {
|
|
2032
2050
|
sm: {
|
|
2033
2051
|
h: 180,
|
|
2034
2052
|
inner: 50,
|
|
@@ -2049,7 +2067,7 @@ var $t = [
|
|
|
2049
2067
|
inner: 98,
|
|
2050
2068
|
outer: 142
|
|
2051
2069
|
}
|
|
2052
|
-
},
|
|
2070
|
+
}, tr = ({ data: e, size: t = "md", centerValue: n, centerCaption: r, height: i, className: a }) => {
|
|
2053
2071
|
let [o, s] = D.useState(null), [c, l] = D.useState(null), u = (e) => {
|
|
2054
2072
|
let t = e.currentTarget.getBoundingClientRect();
|
|
2055
2073
|
l({
|
|
@@ -2063,12 +2081,12 @@ var $t = [
|
|
|
2063
2081
|
4,
|
|
2064
2082
|
5
|
|
2065
2083
|
].map((e) => f(`--color-chart-${e}`) ?? $t[e - 1]), m = {
|
|
2066
|
-
|
|
2067
|
-
h: i ??
|
|
2084
|
+
...er[t],
|
|
2085
|
+
h: i ?? er[t].h
|
|
2068
2086
|
}, h = (m.outer - m.inner) / 2 - 7;
|
|
2069
2087
|
return /* @__PURE__ */ k("div", {
|
|
2070
2088
|
ref: d,
|
|
2071
|
-
className: [
|
|
2089
|
+
className: [$n.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2072
2090
|
style: { height: m.h },
|
|
2073
2091
|
onMouseMove: u,
|
|
2074
2092
|
children: [/* @__PURE__ */ O(Nt, {
|
|
@@ -2098,12 +2116,12 @@ var $t = [
|
|
|
2098
2116
|
position: c ?? void 0
|
|
2099
2117
|
})] })
|
|
2100
2118
|
}), (n || r) && /* @__PURE__ */ k("div", {
|
|
2101
|
-
className:
|
|
2119
|
+
className: $n.center,
|
|
2102
2120
|
children: [n && /* @__PURE__ */ O("span", {
|
|
2103
|
-
className:
|
|
2121
|
+
className: $n.center__value,
|
|
2104
2122
|
children: n
|
|
2105
2123
|
}), r && /* @__PURE__ */ O("span", {
|
|
2106
|
-
className:
|
|
2124
|
+
className: $n.center__caption,
|
|
2107
2125
|
children: r
|
|
2108
2126
|
})]
|
|
2109
2127
|
})]
|
|
@@ -2122,7 +2140,7 @@ var $t = [
|
|
|
2122
2140
|
file__icon: "_file__icon_1b5p5_45",
|
|
2123
2141
|
file__name: "_file__name_1b5p5_46",
|
|
2124
2142
|
file__remove: "_file__remove_1b5p5_47"
|
|
2125
|
-
},
|
|
2143
|
+
}, nr = ({ accept: e, multiple: t, hint: n = "SVG, PNG, JPG or PDF (max. 2MB)", onFilesChange: r, className: i }) => {
|
|
2126
2144
|
let a = D.useRef(null), [o, s] = D.useState(!1), [c, l] = D.useState([]), u = (e) => {
|
|
2127
2145
|
l(e), r?.(e);
|
|
2128
2146
|
}, d = (e) => {
|
|
@@ -2220,22 +2238,22 @@ var $t = [
|
|
|
2220
2238
|
tooltip__dot: "_tooltip__dot_1m9hd_68",
|
|
2221
2239
|
tooltip__label: "_tooltip__label_1m9hd_74",
|
|
2222
2240
|
tooltip__value: "_tooltip__value_1m9hd_75"
|
|
2223
|
-
},
|
|
2241
|
+
}, rr = {
|
|
2224
2242
|
sm: 180,
|
|
2225
2243
|
md: 240,
|
|
2226
2244
|
lg: 320,
|
|
2227
2245
|
xl: 420
|
|
2228
|
-
},
|
|
2229
|
-
let [r, i] = D.useState(null), a = D.useRef(null), o = M(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-bg-canvas") ?? "#fafaf9", l = e[0]?.value || 1, u =
|
|
2230
|
-
g.push(h(e[e.length - 1]?.value ?? 0) *
|
|
2231
|
-
let _ = (t) => e.length <= 1 ? 1 :
|
|
2246
|
+
}, ir = 560, ar = .3, or = .55, sr = ({ data: e, size: t = "md", className: n }) => {
|
|
2247
|
+
let [r, i] = D.useState(null), a = D.useRef(null), o = M(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-bg-canvas") ?? "#fafaf9", l = e[0]?.value || 1, u = rr[t], d = u * .66, f = d / 2 + 8, p = ir / e.length, m = e[0]?.value || 1, h = (e) => e / m * d, g = e.map((e) => h(e.value));
|
|
2248
|
+
g.push(h(e[e.length - 1]?.value ?? 0) * or);
|
|
2249
|
+
let _ = (t) => e.length <= 1 ? 1 : ar + t / (e.length - 1) * (1 - ar), v = r === null ? null : e[r], y = r === null ? 0 : f - g[r] / 2, b = r === null ? 0 : r * p + p / 2;
|
|
2232
2250
|
return /* @__PURE__ */ k("div", {
|
|
2233
2251
|
ref: a,
|
|
2234
2252
|
className: [G.chart, n ?? ""].filter(Boolean).join(" "),
|
|
2235
2253
|
style: { height: u },
|
|
2236
2254
|
children: [
|
|
2237
2255
|
/* @__PURE__ */ O("svg", {
|
|
2238
|
-
viewBox: `0 0 ${
|
|
2256
|
+
viewBox: `0 0 ${ir} ${u}`,
|
|
2239
2257
|
width: "100%",
|
|
2240
2258
|
height: u,
|
|
2241
2259
|
className: G.svg,
|
|
@@ -2277,7 +2295,7 @@ var $t = [
|
|
|
2277
2295
|
v && /* @__PURE__ */ k("div", {
|
|
2278
2296
|
className: G.tooltip,
|
|
2279
2297
|
style: {
|
|
2280
|
-
left: `${b /
|
|
2298
|
+
left: `${b / ir * 100}%`,
|
|
2281
2299
|
top: `${y / u * 100}%`,
|
|
2282
2300
|
background: c
|
|
2283
2301
|
},
|
|
@@ -2320,7 +2338,7 @@ var $t = [
|
|
|
2320
2338
|
tooltip__dot: "_tooltip__dot_1yc8b_84",
|
|
2321
2339
|
tooltip__label: "_tooltip__label_1yc8b_91",
|
|
2322
2340
|
tooltip__value: "_tooltip__value_1yc8b_92"
|
|
2323
|
-
},
|
|
2341
|
+
}, cr = .12, lr = .45, ur = ({ data: e, rowLabels: t, colLabels: n, valueLabel: r = "Value", size: i = "md", className: a }) => {
|
|
2324
2342
|
let o = D.useRef(null), s = M(o), c = D.useRef(null), [l, u] = D.useState(null), d = s("--color-chart-1") ?? "#ff4700", f = Math.max(1, ...e.flat()), p = e[0]?.length ?? 0, m = (e, t, n) => (r) => {
|
|
2325
2343
|
let i = r.currentTarget.getBoundingClientRect(), a = c.current?.getBoundingClientRect();
|
|
2326
2344
|
a && u({
|
|
@@ -2347,12 +2365,12 @@ var $t = [
|
|
|
2347
2365
|
className: K.rowLabel,
|
|
2348
2366
|
children: t?.[n] ?? ""
|
|
2349
2367
|
}), e.map((e, t) => {
|
|
2350
|
-
let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 :
|
|
2368
|
+
let r = l?.row === n && l?.col === t, i = l !== null && !r, a = r ? 1 : cr + e / f * (1 - cr);
|
|
2351
2369
|
return /* @__PURE__ */ O("div", {
|
|
2352
2370
|
className: K.cell,
|
|
2353
2371
|
style: {
|
|
2354
2372
|
background: d,
|
|
2355
|
-
opacity: i ?
|
|
2373
|
+
opacity: i ? lr : a
|
|
2356
2374
|
},
|
|
2357
2375
|
onMouseEnter: m(n, t, e),
|
|
2358
2376
|
onMouseLeave: () => u(null)
|
|
@@ -2389,35 +2407,35 @@ var $t = [
|
|
|
2389
2407
|
]
|
|
2390
2408
|
})
|
|
2391
2409
|
});
|
|
2392
|
-
},
|
|
2393
|
-
className: [
|
|
2410
|
+
}, dr = { kbd: "_kbd_1cz4m_3" }, fr = ({ children: e, className: t }) => /* @__PURE__ */ O("kbd", {
|
|
2411
|
+
className: [dr.kbd, t ?? ""].filter(Boolean).join(" "),
|
|
2394
2412
|
children: e
|
|
2395
|
-
}),
|
|
2413
|
+
}), pr = {
|
|
2396
2414
|
label: "_label_rcdks_3",
|
|
2397
2415
|
label__required: "_label__required_rcdks_17"
|
|
2398
|
-
},
|
|
2416
|
+
}, mr = D.forwardRef(({ required: e, children: t, className: n, ...r }, i) => /* @__PURE__ */ k("label", {
|
|
2399
2417
|
ref: i,
|
|
2400
|
-
className: [
|
|
2418
|
+
className: [pr.label, n ?? ""].filter(Boolean).join(" "),
|
|
2401
2419
|
...r,
|
|
2402
2420
|
children: [t, e && /* @__PURE__ */ O("span", {
|
|
2403
|
-
className:
|
|
2421
|
+
className: pr.label__required,
|
|
2404
2422
|
"aria-hidden": "true",
|
|
2405
2423
|
children: " *"
|
|
2406
2424
|
})]
|
|
2407
2425
|
}));
|
|
2408
|
-
|
|
2409
|
-
var
|
|
2426
|
+
mr.displayName = "Label";
|
|
2427
|
+
var hr = { chart: "_chart_18fgd_2" }, gr = {
|
|
2410
2428
|
sm: 180,
|
|
2411
2429
|
md: 240,
|
|
2412
2430
|
lg: 320,
|
|
2413
2431
|
xl: 420
|
|
2414
|
-
},
|
|
2432
|
+
}, _r = /* @__PURE__ */ new Set([
|
|
2415
2433
|
"dots",
|
|
2416
2434
|
"custom-dots",
|
|
2417
2435
|
"dots-colors",
|
|
2418
2436
|
"label",
|
|
2419
2437
|
"custom-label"
|
|
2420
|
-
]),
|
|
2438
|
+
]), vr = ({ data: e, series: t, xKey: n = "label", variant: r = "default", labelKey: i, size: a = "md", height: o, showLegend: s, className: c }) => {
|
|
2421
2439
|
let l = D.useRef(null), u = M(l), d = [
|
|
2422
2440
|
1,
|
|
2423
2441
|
2,
|
|
@@ -2428,7 +2446,7 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2428
2446
|
d[1],
|
|
2429
2447
|
d[0],
|
|
2430
2448
|
...d.slice(2)
|
|
2431
|
-
], p = u("--color-border-subtle") ?? "#e7e5e1", m = u("--color-fg-muted") ?? "#78716a", h = u("--color-bg-canvas") ?? "#fafaf9", g = u("--color-fg-default") ?? "#141414", _ = r === "linear" ? "linear" : r === "step" ? "step" : "monotone", v =
|
|
2449
|
+
], p = u("--color-border-subtle") ?? "#e7e5e1", m = u("--color-fg-muted") ?? "#78716a", h = u("--color-bg-canvas") ?? "#fafaf9", g = u("--color-fg-default") ?? "#141414", _ = r === "linear" ? "linear" : r === "step" ? "step" : "monotone", v = _r.has(r), y = (e) => (t) => {
|
|
2432
2450
|
let { cx: n, cy: r } = t;
|
|
2433
2451
|
return /* @__PURE__ */ k("g", {
|
|
2434
2452
|
stroke: e,
|
|
@@ -2481,10 +2499,10 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2481
2499
|
};
|
|
2482
2500
|
return /* @__PURE__ */ O("div", {
|
|
2483
2501
|
ref: l,
|
|
2484
|
-
className: [
|
|
2502
|
+
className: [hr.chart, c ?? ""].filter(Boolean).join(" "),
|
|
2485
2503
|
children: /* @__PURE__ */ O(Nt, {
|
|
2486
2504
|
width: "100%",
|
|
2487
|
-
height: o ??
|
|
2505
|
+
height: o ?? gr[a],
|
|
2488
2506
|
children: /* @__PURE__ */ k(St, {
|
|
2489
2507
|
data: e,
|
|
2490
2508
|
margin: {
|
|
@@ -2545,51 +2563,51 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2545
2563
|
})
|
|
2546
2564
|
})
|
|
2547
2565
|
});
|
|
2548
|
-
},
|
|
2549
|
-
item: "
|
|
2550
|
-
"item--disabled": "_item--
|
|
2551
|
-
"item--selected": "_item--
|
|
2552
|
-
item__leading: "
|
|
2553
|
-
item__text: "
|
|
2554
|
-
item__title: "
|
|
2555
|
-
item__description: "
|
|
2556
|
-
item__trailing: "
|
|
2557
|
-
},
|
|
2566
|
+
}, yr = {
|
|
2567
|
+
item: "_item_va3db_2",
|
|
2568
|
+
"item--disabled": "_item--disabled_va3db_18",
|
|
2569
|
+
"item--selected": "_item--selected_va3db_22",
|
|
2570
|
+
item__leading: "_item__leading_va3db_26",
|
|
2571
|
+
item__text: "_item__text_va3db_27",
|
|
2572
|
+
item__title: "_item__title_va3db_28",
|
|
2573
|
+
item__description: "_item__description_va3db_29",
|
|
2574
|
+
item__trailing: "_item__trailing_va3db_30"
|
|
2575
|
+
}, br = ({ title: e, description: t, leading: n, trailing: r, selected: i, disabled: a, onClick: o, className: s }) => /* @__PURE__ */ k("button", {
|
|
2558
2576
|
type: "button",
|
|
2559
2577
|
"data-hover-item": "",
|
|
2560
2578
|
disabled: a,
|
|
2561
2579
|
onClick: o,
|
|
2562
2580
|
"aria-current": i ? "true" : void 0,
|
|
2563
2581
|
className: [
|
|
2564
|
-
|
|
2565
|
-
i ?
|
|
2566
|
-
a ?
|
|
2582
|
+
yr.item,
|
|
2583
|
+
i ? yr["item--selected"] : "",
|
|
2584
|
+
a ? yr["item--disabled"] : "",
|
|
2567
2585
|
s ?? ""
|
|
2568
2586
|
].filter(Boolean).join(" "),
|
|
2569
2587
|
children: [
|
|
2570
2588
|
n && /* @__PURE__ */ O("span", {
|
|
2571
|
-
className:
|
|
2589
|
+
className: yr.item__leading,
|
|
2572
2590
|
children: n
|
|
2573
2591
|
}),
|
|
2574
2592
|
/* @__PURE__ */ k("span", {
|
|
2575
|
-
className:
|
|
2593
|
+
className: yr.item__text,
|
|
2576
2594
|
children: [/* @__PURE__ */ O("span", {
|
|
2577
|
-
className:
|
|
2595
|
+
className: yr.item__title,
|
|
2578
2596
|
children: e
|
|
2579
2597
|
}), t && /* @__PURE__ */ O("span", {
|
|
2580
|
-
className:
|
|
2598
|
+
className: yr.item__description,
|
|
2581
2599
|
children: t
|
|
2582
2600
|
})]
|
|
2583
2601
|
}),
|
|
2584
2602
|
r && /* @__PURE__ */ O("span", {
|
|
2585
|
-
className:
|
|
2603
|
+
className: yr.item__trailing,
|
|
2586
2604
|
children: r
|
|
2587
2605
|
})
|
|
2588
2606
|
]
|
|
2589
|
-
}),
|
|
2590
|
-
menu: "
|
|
2591
|
-
divider: "
|
|
2592
|
-
},
|
|
2607
|
+
}), xr = {
|
|
2608
|
+
menu: "_menu_tcvhi_2",
|
|
2609
|
+
divider: "_divider_tcvhi_13"
|
|
2610
|
+
}, Sr = ({ children: e, minWidth: t = 208, className: n, ...r }) => {
|
|
2593
2611
|
let i = a();
|
|
2594
2612
|
return /* @__PURE__ */ k("div", {
|
|
2595
2613
|
ref: i.ref,
|
|
@@ -2597,22 +2615,22 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2597
2615
|
role: "menu",
|
|
2598
2616
|
"aria-label": r["aria-label"],
|
|
2599
2617
|
style: { minWidth: t },
|
|
2600
|
-
className: [
|
|
2618
|
+
className: [xr.menu, n ?? ""].filter(Boolean).join(" "),
|
|
2601
2619
|
children: [i.highlight, e]
|
|
2602
2620
|
});
|
|
2603
|
-
},
|
|
2604
|
-
className:
|
|
2621
|
+
}, Cr = () => /* @__PURE__ */ O("div", {
|
|
2622
|
+
className: xr.divider,
|
|
2605
2623
|
role: "separator"
|
|
2606
|
-
}),
|
|
2607
|
-
item: "
|
|
2608
|
-
item__icon: "
|
|
2609
|
-
item__label: "
|
|
2610
|
-
item__shortcut: "
|
|
2611
|
-
item__check: "
|
|
2612
|
-
"item--checked": "_item--
|
|
2613
|
-
"item--disabled": "_item--
|
|
2614
|
-
"item--destructive": "_item--
|
|
2615
|
-
},
|
|
2624
|
+
}), wr = {
|
|
2625
|
+
item: "_item_1n6g9_2",
|
|
2626
|
+
item__icon: "_item__icon_1n6g9_23",
|
|
2627
|
+
item__label: "_item__label_1n6g9_24",
|
|
2628
|
+
item__shortcut: "_item__shortcut_1n6g9_25",
|
|
2629
|
+
item__check: "_item__check_1n6g9_32",
|
|
2630
|
+
"item--checked": "_item--checked_1n6g9_34",
|
|
2631
|
+
"item--disabled": "_item--disabled_1n6g9_35",
|
|
2632
|
+
"item--destructive": "_item--destructive_1n6g9_36"
|
|
2633
|
+
}, Tr = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: i, className: a }) => {
|
|
2616
2634
|
let o = e === "disabled";
|
|
2617
2635
|
return /* @__PURE__ */ k("div", {
|
|
2618
2636
|
role: "menuitem",
|
|
@@ -2625,38 +2643,38 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2625
2643
|
o || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i?.());
|
|
2626
2644
|
},
|
|
2627
2645
|
className: [
|
|
2628
|
-
|
|
2629
|
-
|
|
2646
|
+
wr.item,
|
|
2647
|
+
wr[`item--${e}`],
|
|
2630
2648
|
a ?? ""
|
|
2631
2649
|
].filter(Boolean).join(" "),
|
|
2632
2650
|
children: [
|
|
2633
2651
|
t && /* @__PURE__ */ O("span", {
|
|
2634
|
-
className:
|
|
2652
|
+
className: wr.item__icon,
|
|
2635
2653
|
"aria-hidden": "true",
|
|
2636
2654
|
children: t
|
|
2637
2655
|
}),
|
|
2638
2656
|
/* @__PURE__ */ O("span", {
|
|
2639
|
-
className:
|
|
2657
|
+
className: wr.item__label,
|
|
2640
2658
|
children: r
|
|
2641
2659
|
}),
|
|
2642
2660
|
n && /* @__PURE__ */ O("kbd", {
|
|
2643
|
-
className:
|
|
2661
|
+
className: wr.item__shortcut,
|
|
2644
2662
|
children: n
|
|
2645
2663
|
}),
|
|
2646
2664
|
e === "checked" && /* @__PURE__ */ O(Ge, {
|
|
2647
2665
|
size: 16,
|
|
2648
2666
|
strokeWidth: E(16),
|
|
2649
|
-
className:
|
|
2667
|
+
className: wr.item__check,
|
|
2650
2668
|
"aria-hidden": "true"
|
|
2651
2669
|
})
|
|
2652
2670
|
]
|
|
2653
2671
|
});
|
|
2654
|
-
},
|
|
2672
|
+
}, Er = {
|
|
2655
2673
|
chart: "_chart_cc7lx_2",
|
|
2656
2674
|
center: "_center_cc7lx_30",
|
|
2657
2675
|
center__value: "_center__value_cc7lx_39",
|
|
2658
2676
|
center__caption: "_center__caption_cc7lx_40"
|
|
2659
|
-
},
|
|
2677
|
+
}, Dr = {
|
|
2660
2678
|
sm: {
|
|
2661
2679
|
h: 180,
|
|
2662
2680
|
outer: 72
|
|
@@ -2673,19 +2691,19 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2673
2691
|
h: 340,
|
|
2674
2692
|
outer: 142
|
|
2675
2693
|
}
|
|
2676
|
-
},
|
|
2694
|
+
}, Or = /* @__PURE__ */ new Set([
|
|
2677
2695
|
"donut",
|
|
2678
2696
|
"donut-active",
|
|
2679
2697
|
"donut-with-text",
|
|
2680
2698
|
"interactive"
|
|
2681
|
-
]),
|
|
2699
|
+
]), kr = /* @__PURE__ */ new Set(["donut-active"]), Ar = /* @__PURE__ */ new Set(["interactive"]), jr = /* @__PURE__ */ new Set(["donut-with-text"]), Mr = Math.PI / 180, Nr = ({ data: e, variant: t = "donut", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
|
|
2682
2700
|
let o = D.useRef(null), s = M(o), [c, l] = D.useState(void 0), u = [
|
|
2683
2701
|
1,
|
|
2684
2702
|
2,
|
|
2685
2703
|
3,
|
|
2686
2704
|
4,
|
|
2687
2705
|
5
|
|
2688
|
-
].map((e) => s(`--color-chart-${e}`) ?? $t[e - 1]), d = s("--color-bg-surface") ?? "#ffffff", f = s("--color-fg-default") ?? "#141414", p =
|
|
2706
|
+
].map((e) => s(`--color-chart-${e}`) ?? $t[e - 1]), d = s("--color-bg-surface") ?? "#ffffff", f = s("--color-fg-default") ?? "#141414", p = Dr[n], m = Or.has(t), h = kr.has(t), g = Ar.has(t), _ = m ? p.outer * .6 : 0, v = jr.has(t) && (r || i), y = c ?? (h || g ? 0 : void 0), b = (e) => {
|
|
2689
2707
|
let { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, fill: s, index: c } = e, l = c === y, u = l && (h || g) ? 16 : 0;
|
|
2690
2708
|
return l && g ? /* @__PURE__ */ k("g", { children: [/* @__PURE__ */ O(Pt, {
|
|
2691
2709
|
cx: t,
|
|
@@ -2713,7 +2731,7 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2713
2731
|
fill: s
|
|
2714
2732
|
});
|
|
2715
2733
|
}, x = (e) => {
|
|
2716
|
-
let { cx: t, cy: n, midAngle: r, outerRadius: i } = e, a = r ?? 0, o = Math.cos(-a *
|
|
2734
|
+
let { cx: t, cy: n, midAngle: r, outerRadius: i } = e, a = r ?? 0, o = Math.cos(-a * Mr), s = Math.sin(-a * Mr), c = t + i * o, l = n + i * s, u = t + (i + 16) * o, d = n + (i + 16) * s, f = o >= 0, p = u + (f ? 14 : -14);
|
|
2717
2735
|
return {
|
|
2718
2736
|
d: `M ${c} ${l} L ${u} ${d} L ${p} ${d}`,
|
|
2719
2737
|
endX: p,
|
|
@@ -2753,8 +2771,8 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2753
2771
|
}, C = (t) => {
|
|
2754
2772
|
let { cx: n, cy: r, midAngle: i, innerRadius: a, outerRadius: o, index: s } = t, c = (a + o) / 2;
|
|
2755
2773
|
return /* @__PURE__ */ O("text", {
|
|
2756
|
-
x: n + c * Math.cos(-i *
|
|
2757
|
-
y: r + c * Math.sin(-i *
|
|
2774
|
+
x: n + c * Math.cos(-i * Mr),
|
|
2775
|
+
y: r + c * Math.sin(-i * Mr),
|
|
2758
2776
|
textAnchor: "middle",
|
|
2759
2777
|
dominantBaseline: "central",
|
|
2760
2778
|
fill: "#fff",
|
|
@@ -2768,7 +2786,7 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2768
2786
|
let t = (e) => c !== void 0 && c !== e ? .45 : 1;
|
|
2769
2787
|
return /* @__PURE__ */ O("div", {
|
|
2770
2788
|
ref: o,
|
|
2771
|
-
className: [
|
|
2789
|
+
className: [Er.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2772
2790
|
style: { height: p.h },
|
|
2773
2791
|
children: /* @__PURE__ */ O(Nt, {
|
|
2774
2792
|
width: "100%",
|
|
@@ -2816,7 +2834,7 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2816
2834
|
}
|
|
2817
2835
|
return /* @__PURE__ */ k("div", {
|
|
2818
2836
|
ref: o,
|
|
2819
|
-
className: [
|
|
2837
|
+
className: [Er.chart, a ?? ""].filter(Boolean).join(" "),
|
|
2820
2838
|
style: { height: p.h },
|
|
2821
2839
|
children: [/* @__PURE__ */ O(Nt, {
|
|
2822
2840
|
width: "100%",
|
|
@@ -2842,12 +2860,12 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2842
2860
|
wrapperStyle: { zIndex: 50 }
|
|
2843
2861
|
})] })
|
|
2844
2862
|
}), v && /* @__PURE__ */ k("div", {
|
|
2845
|
-
className:
|
|
2863
|
+
className: Er.center,
|
|
2846
2864
|
children: [r && /* @__PURE__ */ O("span", {
|
|
2847
|
-
className:
|
|
2865
|
+
className: Er.center__value,
|
|
2848
2866
|
children: r
|
|
2849
2867
|
}), i && /* @__PURE__ */ O("span", {
|
|
2850
|
-
className:
|
|
2868
|
+
className: Er.center__caption,
|
|
2851
2869
|
children: i
|
|
2852
2870
|
})]
|
|
2853
2871
|
})]
|
|
@@ -2870,7 +2888,7 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2870
2888
|
panel__description: "_panel__description_16f5u_76",
|
|
2871
2889
|
panel__body: "_panel__body_16f5u_77",
|
|
2872
2890
|
panel__actions: "_panel__actions_16f5u_78"
|
|
2873
|
-
},
|
|
2891
|
+
}, Pr = ({ trigger: e, title: t, description: n, actions: r, placement: i = "bottom-start", children: a, className: o }) => {
|
|
2874
2892
|
let [s, c] = D.useState(!1), [l, u] = D.useState(!1), d = D.useRef(null), f = D.useRef(null);
|
|
2875
2893
|
return D.useEffect(() => {
|
|
2876
2894
|
s && u(!0);
|
|
@@ -2929,19 +2947,19 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2929
2947
|
]
|
|
2930
2948
|
})]
|
|
2931
2949
|
});
|
|
2932
|
-
},
|
|
2950
|
+
}, Fr = {
|
|
2933
2951
|
chart: "_chart_q6xhl_2",
|
|
2934
2952
|
circleFillSvg: "_circleFillSvg_q6xhl_17"
|
|
2935
|
-
},
|
|
2953
|
+
}, Ir = {
|
|
2936
2954
|
sm: 200,
|
|
2937
2955
|
md: 260,
|
|
2938
2956
|
lg: 340,
|
|
2939
2957
|
xl: 420
|
|
2940
|
-
},
|
|
2958
|
+
}, Lr = /* @__PURE__ */ new Set([
|
|
2941
2959
|
"circle-grid",
|
|
2942
2960
|
"circle-grid-no-lines",
|
|
2943
2961
|
"circle-grid-filled"
|
|
2944
|
-
]),
|
|
2962
|
+
]), Rr = /* @__PURE__ */ new Set(["default", "grid-custom"]), zr = /* @__PURE__ */ new Set(["dots-grid-none"]), Br = /* @__PURE__ */ new Set(["grid-filled"]), Vr = (e) => e === "circle-grid-filled", Hr = /* @__PURE__ */ new Set([
|
|
2945
2963
|
"default",
|
|
2946
2964
|
"dots",
|
|
2947
2965
|
"dots-grid-none",
|
|
@@ -2952,14 +2970,14 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2952
2970
|
"grid-custom",
|
|
2953
2971
|
"grid-filled",
|
|
2954
2972
|
"circle-grid-filled"
|
|
2955
|
-
]),
|
|
2973
|
+
]), Ur = [
|
|
2956
2974
|
1,
|
|
2957
2975
|
.8,
|
|
2958
2976
|
.6,
|
|
2959
2977
|
.4,
|
|
2960
2978
|
.2
|
|
2961
|
-
],
|
|
2962
|
-
let a = D.useRef(null), o = M(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-chart-2") ?? "#5b92dd", l = o("--color-border-default") ?? "#dbdad7", u = o("--color-fg-subtle") ?? "#a8a29b", d = t === "multiple", f = t === "lines-only", p = d || t === "custom-label" || f, m = !f, h = t === "dots" || t === "dots-grid-none" || t === "circle-grid" || t === "circle-grid-no-lines", g =
|
|
2979
|
+
], Wr = ({ data: e, variant: t = "default", size: n = "md", seriesLabels: r = ["Value", "Value 2"], className: i }) => {
|
|
2980
|
+
let a = D.useRef(null), o = M(a), s = o("--color-chart-1") ?? "#ff4700", c = o("--color-chart-2") ?? "#5b92dd", l = o("--color-border-default") ?? "#dbdad7", u = o("--color-fg-subtle") ?? "#a8a29b", d = t === "multiple", f = t === "lines-only", p = d || t === "custom-label" || f, m = !f, h = t === "dots" || t === "dots-grid-none" || t === "circle-grid" || t === "circle-grid-no-lines", g = Br.has(t), _ = Rr.has(t), v = zr.has(t), y = Vr(t), [b, x] = D.useState(0);
|
|
2963
2981
|
D.useEffect(() => {
|
|
2964
2982
|
if (!y || !a.current) return;
|
|
2965
2983
|
let e = a.current, t = new ResizeObserver(([e]) => x(e.contentRect.width));
|
|
@@ -2970,7 +2988,7 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
2970
2988
|
let t = Math.max(1, ...e.flatMap((e) => [e.value, e.value2 ?? 0]));
|
|
2971
2989
|
return e.map((e) => {
|
|
2972
2990
|
let n = {};
|
|
2973
|
-
return
|
|
2991
|
+
return Ur.forEach((e, r) => {
|
|
2974
2992
|
n[`ring${r}`] = e * t;
|
|
2975
2993
|
}), {
|
|
2976
2994
|
...e,
|
|
@@ -3006,15 +3024,15 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3006
3024
|
fontFamily: "var(--font-sans)",
|
|
3007
3025
|
children: c.label
|
|
3008
3026
|
})] });
|
|
3009
|
-
}, C =
|
|
3027
|
+
}, C = Ir[n], te = (b > 0 ? Math.min(b, C) / 2 - 5 : 0) * .7;
|
|
3010
3028
|
return /* @__PURE__ */ k("div", {
|
|
3011
3029
|
ref: a,
|
|
3012
|
-
className: [
|
|
3030
|
+
className: [Fr.chart, i ?? ""].filter(Boolean).join(" "),
|
|
3013
3031
|
children: [y && b > 0 && /* @__PURE__ */ O("svg", {
|
|
3014
|
-
className:
|
|
3032
|
+
className: Fr.circleFillSvg,
|
|
3015
3033
|
width: b,
|
|
3016
3034
|
height: C,
|
|
3017
|
-
children:
|
|
3035
|
+
children: Ur.map((e) => /* @__PURE__ */ O("circle", {
|
|
3018
3036
|
cx: b / 2,
|
|
3019
3037
|
cy: C / 2,
|
|
3020
3038
|
r: te * e,
|
|
@@ -3029,7 +3047,7 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3029
3047
|
outerRadius: "70%",
|
|
3030
3048
|
children: [
|
|
3031
3049
|
!g && !v && /* @__PURE__ */ O(Et, {
|
|
3032
|
-
gridType:
|
|
3050
|
+
gridType: Lr.has(t) ? "circle" : "polygon",
|
|
3033
3051
|
radialLines: t !== "circle-grid-no-lines" && !_,
|
|
3034
3052
|
stroke: l
|
|
3035
3053
|
}),
|
|
@@ -3055,7 +3073,7 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3055
3073
|
fontSize: 12,
|
|
3056
3074
|
fontFamily: "var(--font-sans)"
|
|
3057
3075
|
} }),
|
|
3058
|
-
g &&
|
|
3076
|
+
g && Ur.map((e, t) => /* @__PURE__ */ O(Ot, {
|
|
3059
3077
|
dataKey: `ring${t}`,
|
|
3060
3078
|
stroke: "none",
|
|
3061
3079
|
fill: c,
|
|
@@ -3066,10 +3084,10 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3066
3084
|
/* @__PURE__ */ O(Ot, {
|
|
3067
3085
|
name: d ? r[0] ?? "Value" : void 0,
|
|
3068
3086
|
dataKey: "value",
|
|
3069
|
-
stroke:
|
|
3087
|
+
stroke: Hr.has(t) ? "none" : c,
|
|
3070
3088
|
fill: m ? c : "none",
|
|
3071
3089
|
fillOpacity: m ? _ ? 1 : p ? .45 : .5 : 0,
|
|
3072
|
-
strokeWidth:
|
|
3090
|
+
strokeWidth: Hr.has(t) ? 0 : 2,
|
|
3073
3091
|
dot: h ? {
|
|
3074
3092
|
r: 4,
|
|
3075
3093
|
fill: c,
|
|
@@ -3102,17 +3120,17 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3102
3120
|
center: "_center_1ogmh_36",
|
|
3103
3121
|
center__value: "_center__value_1ogmh_45",
|
|
3104
3122
|
center__caption: "_center__caption_1ogmh_46"
|
|
3105
|
-
},
|
|
3123
|
+
}, Gr = {
|
|
3106
3124
|
sm: 180,
|
|
3107
3125
|
md: 220,
|
|
3108
3126
|
lg: 280,
|
|
3109
3127
|
xl: 340
|
|
3110
|
-
},
|
|
3128
|
+
}, Kr = Math.PI / 180, qr = (e) => Math.round(e * 1e3) / 1e3, Jr = {
|
|
3111
3129
|
multi: ["30%", "100%"],
|
|
3112
3130
|
grid: ["30%", "100%"],
|
|
3113
3131
|
"stacked-label": ["30%", "100%"],
|
|
3114
3132
|
text: ["76%", "100%"]
|
|
3115
|
-
},
|
|
3133
|
+
}, Yr = ({ value: e, max: t, color: n, track: r, centerValue: i, centerCaption: a, labelColor: o, captionColor: s }) => {
|
|
3116
3134
|
let c = Math.round(Math.min(e, t) / t * 40);
|
|
3117
3135
|
return /* @__PURE__ */ k("svg", {
|
|
3118
3136
|
viewBox: "0 0 200 120",
|
|
@@ -3120,10 +3138,10 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3120
3138
|
children: [Array.from({ length: 40 }).map((e, t) => {
|
|
3121
3139
|
let i = 180 + t / 39 * 180;
|
|
3122
3140
|
return /* @__PURE__ */ O("line", {
|
|
3123
|
-
x1:
|
|
3124
|
-
y1:
|
|
3125
|
-
x2:
|
|
3126
|
-
y2:
|
|
3141
|
+
x1: qr(100 + 78 * Math.cos(i * Kr)),
|
|
3142
|
+
y1: qr(100 + 78 * Math.sin(i * Kr)),
|
|
3143
|
+
x2: qr(100 + 92 * Math.cos(i * Kr)),
|
|
3144
|
+
y2: qr(100 + 92 * Math.sin(i * Kr)),
|
|
3127
3145
|
stroke: t < c ? n : r,
|
|
3128
3146
|
strokeWidth: 2.5,
|
|
3129
3147
|
strokeLinecap: "round"
|
|
@@ -3147,7 +3165,7 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3147
3165
|
})]
|
|
3148
3166
|
})]
|
|
3149
3167
|
});
|
|
3150
|
-
},
|
|
3168
|
+
}, Xr = ({ rings: e, spokes: t, color: n }) => /* @__PURE__ */ k("svg", {
|
|
3151
3169
|
viewBox: "0 0 200 200",
|
|
3152
3170
|
className: J.gridSvg,
|
|
3153
3171
|
children: [Array.from({ length: e }).map((t, r) => /* @__PURE__ */ O("circle", {
|
|
@@ -3162,13 +3180,13 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3162
3180
|
return /* @__PURE__ */ O("line", {
|
|
3163
3181
|
x1: 100,
|
|
3164
3182
|
y1: 100,
|
|
3165
|
-
x2:
|
|
3166
|
-
y2:
|
|
3183
|
+
x2: qr(100 + a * Math.cos(i * Kr)),
|
|
3184
|
+
y2: qr(100 + a * Math.sin(i * Kr)),
|
|
3167
3185
|
stroke: n,
|
|
3168
3186
|
strokeWidth: 1
|
|
3169
3187
|
}, r);
|
|
3170
3188
|
})]
|
|
3171
|
-
}),
|
|
3189
|
+
}), Zr = ({ data: e, palette: t, track: n, centerValue: r, centerCaption: i, labelColor: a, captionColor: o }) => {
|
|
3172
3190
|
let s = e[0]?.max ?? e.reduce((e, t) => e + t.value, 0), c = 210, l = e.map((e, n) => {
|
|
3173
3191
|
let r = s > 0 ? e.value / s * 240 : 0, i = c, a = c - r;
|
|
3174
3192
|
return c = a, {
|
|
@@ -3221,21 +3239,21 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3221
3239
|
})
|
|
3222
3240
|
]
|
|
3223
3241
|
});
|
|
3224
|
-
},
|
|
3242
|
+
}, Qr = ({ data: e, variant: t = "multi", size: n = "md", centerValue: r, centerCaption: i, className: a }) => {
|
|
3225
3243
|
let o = D.useRef(null), s = M(o), c = [
|
|
3226
3244
|
1,
|
|
3227
3245
|
2,
|
|
3228
3246
|
3,
|
|
3229
3247
|
4,
|
|
3230
3248
|
5
|
|
3231
|
-
].map((e) => s(`--color-chart-${e}`) ?? $t[e - 1]), l = s("--color-bg-subtle") ?? "#f5f4f2", u = s("--color-border-subtle") ?? "#e7e5e1", d = s("--color-fg-default") ?? "#141414", f = s("--color-fg-muted") ?? "#78716a", p =
|
|
3249
|
+
].map((e) => s(`--color-chart-${e}`) ?? $t[e - 1]), l = s("--color-bg-subtle") ?? "#f5f4f2", u = s("--color-border-subtle") ?? "#e7e5e1", d = s("--color-fg-default") ?? "#141414", f = s("--color-fg-muted") ?? "#78716a", p = Gr[n];
|
|
3232
3250
|
if (t === "gauge-tick") {
|
|
3233
3251
|
let t = e[0];
|
|
3234
3252
|
return /* @__PURE__ */ O("div", {
|
|
3235
3253
|
ref: o,
|
|
3236
3254
|
className: [J.chart, a ?? ""].filter(Boolean).join(" "),
|
|
3237
3255
|
style: { height: p },
|
|
3238
|
-
children: /* @__PURE__ */ O(
|
|
3256
|
+
children: /* @__PURE__ */ O(Yr, {
|
|
3239
3257
|
value: t?.value ?? 0,
|
|
3240
3258
|
max: t?.max ?? 100,
|
|
3241
3259
|
color: c[0],
|
|
@@ -3251,7 +3269,7 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3251
3269
|
ref: o,
|
|
3252
3270
|
className: [J.chart, a ?? ""].filter(Boolean).join(" "),
|
|
3253
3271
|
style: { height: p },
|
|
3254
|
-
children: /* @__PURE__ */ O(
|
|
3272
|
+
children: /* @__PURE__ */ O(Zr, {
|
|
3255
3273
|
data: e,
|
|
3256
3274
|
palette: c,
|
|
3257
3275
|
track: l,
|
|
@@ -3261,13 +3279,13 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3261
3279
|
captionColor: f
|
|
3262
3280
|
})
|
|
3263
3281
|
});
|
|
3264
|
-
let [m, h] =
|
|
3282
|
+
let [m, h] = Jr[t] ?? ["30%", "100%"], g = (t === "stacked-label" || t === "text") && (r || i);
|
|
3265
3283
|
return /* @__PURE__ */ k("div", {
|
|
3266
3284
|
ref: o,
|
|
3267
3285
|
className: [J.chart, a ?? ""].filter(Boolean).join(" "),
|
|
3268
3286
|
style: { height: p },
|
|
3269
3287
|
children: [
|
|
3270
|
-
t === "grid" && /* @__PURE__ */ O(
|
|
3288
|
+
t === "grid" && /* @__PURE__ */ O(Xr, {
|
|
3271
3289
|
rings: 8,
|
|
3272
3290
|
spokes: 12,
|
|
3273
3291
|
color: u
|
|
@@ -3318,7 +3336,7 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3318
3336
|
text__label: "_text__label_5ueza_80",
|
|
3319
3337
|
text__description: "_text__description_5ueza_81",
|
|
3320
3338
|
"wrapper--withDescription": "_wrapper--withDescription_5ueza_85"
|
|
3321
|
-
},
|
|
3339
|
+
}, $r = D.forwardRef(({ label: e, description: t, disabled: n, id: r, className: i, ...a }, o) => {
|
|
3322
3340
|
let s = D.useId(), c = r ?? s;
|
|
3323
3341
|
return /* @__PURE__ */ k("label", {
|
|
3324
3342
|
htmlFor: c,
|
|
@@ -3355,18 +3373,18 @@ var mr = { chart: "_chart_18fgd_2" }, hr = {
|
|
|
3355
3373
|
]
|
|
3356
3374
|
});
|
|
3357
3375
|
});
|
|
3358
|
-
|
|
3376
|
+
$r.displayName = "Radio";
|
|
3359
3377
|
var X = {
|
|
3360
|
-
footer: "
|
|
3361
|
-
"footer--collapsed": "_footer--
|
|
3362
|
-
footer__text: "
|
|
3363
|
-
footer__title: "
|
|
3364
|
-
footer__subtitle: "
|
|
3365
|
-
footer__menu: "
|
|
3366
|
-
footer__action: "
|
|
3367
|
-
},
|
|
3378
|
+
footer: "_footer_mks3d_4",
|
|
3379
|
+
"footer--collapsed": "_footer--collapsed_mks3d_12",
|
|
3380
|
+
footer__text: "_footer__text_mks3d_14",
|
|
3381
|
+
footer__title: "_footer__title_mks3d_15",
|
|
3382
|
+
footer__subtitle: "_footer__subtitle_mks3d_16",
|
|
3383
|
+
footer__menu: "_footer__menu_mks3d_17",
|
|
3384
|
+
footer__action: "_footer__action_mks3d_29"
|
|
3385
|
+
}, ei = ({ type: e = "user", title: t, subtitle: n, avatarSrc: r, avatarInitials: i, collapsed: a, onMenu: o, onSignOut: s }) => {
|
|
3368
3386
|
let c = /* @__PURE__ */ O(Pe, {
|
|
3369
|
-
size: "sm",
|
|
3387
|
+
size: a ? "sm" : "md",
|
|
3370
3388
|
src: r,
|
|
3371
3389
|
initials: i,
|
|
3372
3390
|
alt: t ?? "User"
|
|
@@ -3406,14 +3424,14 @@ var X = {
|
|
|
3406
3424
|
className: X.footer__menu,
|
|
3407
3425
|
onClick: o,
|
|
3408
3426
|
"aria-label": "Open menu",
|
|
3409
|
-
children: /* @__PURE__ */ O(
|
|
3427
|
+
children: /* @__PURE__ */ O(Ye, {
|
|
3410
3428
|
size: 16,
|
|
3411
3429
|
strokeWidth: E(16)
|
|
3412
3430
|
})
|
|
3413
3431
|
})
|
|
3414
3432
|
]
|
|
3415
3433
|
});
|
|
3416
|
-
},
|
|
3434
|
+
}, ti = {
|
|
3417
3435
|
promo: "_promo_qzdlk_4",
|
|
3418
3436
|
promo__head: "_promo__head_qzdlk_20",
|
|
3419
3437
|
promo__icon: "_promo__icon_qzdlk_21",
|
|
@@ -3421,14 +3439,14 @@ var X = {
|
|
|
3421
3439
|
promo__dismiss: "_promo__dismiss_qzdlk_23",
|
|
3422
3440
|
promo__desc: "_promo__desc_qzdlk_30",
|
|
3423
3441
|
promo__cta: "_promo__cta_qzdlk_33"
|
|
3424
|
-
},
|
|
3425
|
-
className: [
|
|
3442
|
+
}, ni = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: i, onDismiss: a, icon: o = ct }) => /* @__PURE__ */ k("div", {
|
|
3443
|
+
className: [ti.promo, ti[`promo--${e}`]].join(" "),
|
|
3426
3444
|
children: [
|
|
3427
3445
|
/* @__PURE__ */ k("div", {
|
|
3428
|
-
className:
|
|
3446
|
+
className: ti.promo__head,
|
|
3429
3447
|
children: [
|
|
3430
3448
|
/* @__PURE__ */ O("span", {
|
|
3431
|
-
className:
|
|
3449
|
+
className: ti.promo__icon,
|
|
3432
3450
|
"aria-hidden": "true",
|
|
3433
3451
|
children: /* @__PURE__ */ O(o, {
|
|
3434
3452
|
size: 16,
|
|
@@ -3436,12 +3454,12 @@ var X = {
|
|
|
3436
3454
|
})
|
|
3437
3455
|
}),
|
|
3438
3456
|
/* @__PURE__ */ O("span", {
|
|
3439
|
-
className:
|
|
3457
|
+
className: ti.promo__title,
|
|
3440
3458
|
children: t
|
|
3441
3459
|
}),
|
|
3442
3460
|
a && /* @__PURE__ */ O("button", {
|
|
3443
3461
|
type: "button",
|
|
3444
|
-
className:
|
|
3462
|
+
className: ti.promo__dismiss,
|
|
3445
3463
|
onClick: a,
|
|
3446
3464
|
"aria-label": "Dismiss",
|
|
3447
3465
|
children: /* @__PURE__ */ O(pt, {
|
|
@@ -3452,26 +3470,26 @@ var X = {
|
|
|
3452
3470
|
]
|
|
3453
3471
|
}),
|
|
3454
3472
|
n && /* @__PURE__ */ O("p", {
|
|
3455
|
-
className:
|
|
3473
|
+
className: ti.promo__desc,
|
|
3456
3474
|
children: n
|
|
3457
3475
|
}),
|
|
3458
3476
|
r && /* @__PURE__ */ O("button", {
|
|
3459
3477
|
type: "button",
|
|
3460
|
-
className:
|
|
3478
|
+
className: ti.promo__cta,
|
|
3461
3479
|
onClick: i,
|
|
3462
3480
|
children: r
|
|
3463
3481
|
})
|
|
3464
3482
|
]
|
|
3465
|
-
}),
|
|
3483
|
+
}), Z = {
|
|
3466
3484
|
search: "_search_1airw_2",
|
|
3467
3485
|
search__icon: "_search__icon_1airw_25",
|
|
3468
3486
|
search__input: "_search__input_1airw_26",
|
|
3469
3487
|
search__placeholder: "_search__placeholder_1airw_38",
|
|
3470
3488
|
search__kbd: "_search__kbd_1airw_39",
|
|
3471
3489
|
collapsed: "_collapsed_1airw_53"
|
|
3472
|
-
},
|
|
3490
|
+
}, ri = ({ type: e = "field", placeholder: t = "Search…", collapsed: n, value: r, onChange: i, onClick: a }) => n ? /* @__PURE__ */ O("button", {
|
|
3473
3491
|
type: "button",
|
|
3474
|
-
className:
|
|
3492
|
+
className: Z.collapsed,
|
|
3475
3493
|
onClick: a,
|
|
3476
3494
|
"aria-label": "Search",
|
|
3477
3495
|
children: /* @__PURE__ */ O(st, {
|
|
@@ -3480,48 +3498,48 @@ var X = {
|
|
|
3480
3498
|
})
|
|
3481
3499
|
}) : e === "command" ? /* @__PURE__ */ k("button", {
|
|
3482
3500
|
type: "button",
|
|
3483
|
-
className:
|
|
3501
|
+
className: Z.search,
|
|
3484
3502
|
onClick: a,
|
|
3485
3503
|
children: [
|
|
3486
3504
|
/* @__PURE__ */ O(st, {
|
|
3487
3505
|
size: 16,
|
|
3488
3506
|
strokeWidth: E(16),
|
|
3489
|
-
className:
|
|
3507
|
+
className: Z.search__icon
|
|
3490
3508
|
}),
|
|
3491
3509
|
/* @__PURE__ */ O("span", {
|
|
3492
|
-
className:
|
|
3510
|
+
className: Z.search__placeholder,
|
|
3493
3511
|
children: t
|
|
3494
3512
|
}),
|
|
3495
3513
|
/* @__PURE__ */ O("kbd", {
|
|
3496
|
-
className:
|
|
3514
|
+
className: Z.search__kbd,
|
|
3497
3515
|
children: "⌘K"
|
|
3498
3516
|
})
|
|
3499
3517
|
]
|
|
3500
3518
|
}) : /* @__PURE__ */ k("div", {
|
|
3501
|
-
className:
|
|
3519
|
+
className: Z.search,
|
|
3502
3520
|
children: [/* @__PURE__ */ O(st, {
|
|
3503
3521
|
size: 16,
|
|
3504
3522
|
strokeWidth: E(16),
|
|
3505
|
-
className:
|
|
3523
|
+
className: Z.search__icon
|
|
3506
3524
|
}), /* @__PURE__ */ O("input", {
|
|
3507
|
-
className:
|
|
3525
|
+
className: Z.search__input,
|
|
3508
3526
|
placeholder: t,
|
|
3509
3527
|
value: r,
|
|
3510
3528
|
onChange: (e) => i?.(e.target.value)
|
|
3511
3529
|
})]
|
|
3512
|
-
}),
|
|
3530
|
+
}), ii = {
|
|
3513
3531
|
spinner: "_spinner_14r00_3",
|
|
3514
3532
|
"spinner--sm": "_spinner--sm_14r00_12",
|
|
3515
3533
|
"spinner--md": "_spinner--md_14r00_13",
|
|
3516
3534
|
"spinner--lg": "_spinner--lg_14r00_14",
|
|
3517
3535
|
spinner__svg: "_spinner__svg_14r00_17",
|
|
3518
3536
|
"spinner-rotate": "_spinner-rotate_14r00_1"
|
|
3519
|
-
},
|
|
3537
|
+
}, ai = ({ size: e = "md", label: t = "Loading...", className: n }) => /* @__PURE__ */ O("span", {
|
|
3520
3538
|
role: "status",
|
|
3521
3539
|
"aria-label": t,
|
|
3522
3540
|
className: [
|
|
3523
|
-
|
|
3524
|
-
|
|
3541
|
+
ii.spinner,
|
|
3542
|
+
ii[`spinner--${e}`],
|
|
3525
3543
|
n ?? ""
|
|
3526
3544
|
].filter(Boolean).join(" "),
|
|
3527
3545
|
children: /* @__PURE__ */ k("svg", {
|
|
@@ -3531,7 +3549,7 @@ var X = {
|
|
|
3531
3549
|
strokeWidth: 2.5,
|
|
3532
3550
|
strokeLinecap: "round",
|
|
3533
3551
|
"aria-hidden": "true",
|
|
3534
|
-
className:
|
|
3552
|
+
className: ii.spinner__svg,
|
|
3535
3553
|
children: [/* @__PURE__ */ O("circle", {
|
|
3536
3554
|
cx: 12,
|
|
3537
3555
|
cy: 12,
|
|
@@ -3539,7 +3557,7 @@ var X = {
|
|
|
3539
3557
|
opacity: .2
|
|
3540
3558
|
}), /* @__PURE__ */ O("path", {
|
|
3541
3559
|
d: "M12 3a9 9 0 0 1 9 9",
|
|
3542
|
-
className:
|
|
3560
|
+
className: ii.spinner__arc
|
|
3543
3561
|
})]
|
|
3544
3562
|
})
|
|
3545
3563
|
}), Q = {
|
|
@@ -3555,19 +3573,19 @@ var X = {
|
|
|
3555
3573
|
"card--trend-up": "_card--trend-up_u5kvg_68",
|
|
3556
3574
|
"card--trend-down": "_card--trend-down_u5kvg_69",
|
|
3557
3575
|
card__description: "_card__description_u5kvg_72"
|
|
3558
|
-
},
|
|
3576
|
+
}, oi = {
|
|
3559
3577
|
up: ut,
|
|
3560
3578
|
down: lt,
|
|
3561
3579
|
flat: tt
|
|
3562
|
-
},
|
|
3580
|
+
}, si = {
|
|
3563
3581
|
up: "success",
|
|
3564
3582
|
down: "danger",
|
|
3565
3583
|
flat: "neutral"
|
|
3566
|
-
},
|
|
3584
|
+
}, ci = ({ data: e }) => {
|
|
3567
3585
|
if (e.length < 2) return null;
|
|
3568
3586
|
let t = Math.min(...e), n = Math.max(...e) - t || 1;
|
|
3569
3587
|
return /* @__PURE__ */ O("svg", {
|
|
3570
|
-
className:
|
|
3588
|
+
className: li,
|
|
3571
3589
|
viewBox: "0 0 100 32",
|
|
3572
3590
|
preserveAspectRatio: "none",
|
|
3573
3591
|
"aria-hidden": "true",
|
|
@@ -3580,8 +3598,8 @@ var X = {
|
|
|
3580
3598
|
strokeLinecap: "round"
|
|
3581
3599
|
})
|
|
3582
3600
|
});
|
|
3583
|
-
},
|
|
3584
|
-
let f =
|
|
3601
|
+
}, li = Q.card__sparkline, ui = ({ title: e, value: t, description: n, sparkline: r, delta: i, trend: a = "up", badgeVariant: o, variant: s = "minimal", icon: c, showMenu: l, onMenu: u, className: d }) => {
|
|
3602
|
+
let f = oi[a], p = (s === "icon" || s === "featured") && c;
|
|
3585
3603
|
return /* @__PURE__ */ k("div", {
|
|
3586
3604
|
className: [
|
|
3587
3605
|
Q.card,
|
|
@@ -3621,11 +3639,11 @@ var X = {
|
|
|
3621
3639
|
className: Q.card__value,
|
|
3622
3640
|
children: t
|
|
3623
3641
|
}),
|
|
3624
|
-
r && /* @__PURE__ */ O(
|
|
3642
|
+
r && /* @__PURE__ */ O(ci, { data: r }),
|
|
3625
3643
|
(i || n) && /* @__PURE__ */ k("div", {
|
|
3626
3644
|
className: Q.card__meta,
|
|
3627
3645
|
children: [i && /* @__PURE__ */ O(C, {
|
|
3628
|
-
variant: o ??
|
|
3646
|
+
variant: o ?? si[a],
|
|
3629
3647
|
leftIcon: /* @__PURE__ */ O(f, {
|
|
3630
3648
|
size: 12,
|
|
3631
3649
|
strokeWidth: 2
|
|
@@ -3659,7 +3677,7 @@ var X = {
|
|
|
3659
3677
|
"connector--horizontal": "_connector--horizontal_kxw14_47",
|
|
3660
3678
|
"connector--vertical": "_connector--vertical_kxw14_48",
|
|
3661
3679
|
"connector--filled": "_connector--filled_kxw14_49"
|
|
3662
|
-
},
|
|
3680
|
+
}, di = ({ index: e, state: t, label: n, description: r, orientation: i = "horizontal" }) => /* @__PURE__ */ k("div", {
|
|
3663
3681
|
className: [$.step, $[`step--${i}`]].join(" "),
|
|
3664
3682
|
children: [/* @__PURE__ */ O("span", {
|
|
3665
3683
|
className: [$.circle, $[`circle--${t}`]].join(" "),
|
|
@@ -3685,7 +3703,7 @@ var X = {
|
|
|
3685
3703
|
children: r
|
|
3686
3704
|
})]
|
|
3687
3705
|
})]
|
|
3688
|
-
}),
|
|
3706
|
+
}), fi = ({ steps: e, current: t, orientation: n = "horizontal", className: r }) => {
|
|
3689
3707
|
let i = (e) => e < t ? "completed" : e === t ? "current" : "upcoming";
|
|
3690
3708
|
return /* @__PURE__ */ O("div", {
|
|
3691
3709
|
className: [
|
|
@@ -3693,7 +3711,7 @@ var X = {
|
|
|
3693
3711
|
$[`stepper--${n}`],
|
|
3694
3712
|
r ?? ""
|
|
3695
3713
|
].filter(Boolean).join(" "),
|
|
3696
|
-
children: e.map((r, a) => /* @__PURE__ */ k(D.Fragment, { children: [/* @__PURE__ */ O(
|
|
3714
|
+
children: e.map((r, a) => /* @__PURE__ */ k(D.Fragment, { children: [/* @__PURE__ */ O(di, {
|
|
3697
3715
|
index: a,
|
|
3698
3716
|
state: i(a),
|
|
3699
3717
|
label: r.label,
|
|
@@ -3708,20 +3726,20 @@ var X = {
|
|
|
3708
3726
|
"aria-hidden": "true"
|
|
3709
3727
|
})] }, a))
|
|
3710
3728
|
});
|
|
3711
|
-
},
|
|
3712
|
-
wrapper: "
|
|
3713
|
-
"wrapper--disabled": "_wrapper--
|
|
3714
|
-
input: "
|
|
3715
|
-
track: "
|
|
3716
|
-
thumb: "
|
|
3717
|
-
label: "
|
|
3718
|
-
},
|
|
3729
|
+
}, pi = {
|
|
3730
|
+
wrapper: "_wrapper_k5grn_3",
|
|
3731
|
+
"wrapper--disabled": "_wrapper--disabled_k5grn_11",
|
|
3732
|
+
input: "_input_k5grn_13",
|
|
3733
|
+
track: "_track_k5grn_15",
|
|
3734
|
+
thumb: "_thumb_k5grn_28",
|
|
3735
|
+
label: "_label_k5grn_55"
|
|
3736
|
+
}, mi = D.forwardRef(({ label: e, disabled: t, id: n, className: r, ...i }, a) => {
|
|
3719
3737
|
let o = D.useId(), s = n ?? o;
|
|
3720
3738
|
return /* @__PURE__ */ k("label", {
|
|
3721
3739
|
htmlFor: s,
|
|
3722
3740
|
className: [
|
|
3723
|
-
|
|
3724
|
-
t ?
|
|
3741
|
+
pi.wrapper,
|
|
3742
|
+
t ? pi["wrapper--disabled"] : "",
|
|
3725
3743
|
r ?? ""
|
|
3726
3744
|
].filter(Boolean).join(" "),
|
|
3727
3745
|
children: [
|
|
@@ -3731,23 +3749,23 @@ var X = {
|
|
|
3731
3749
|
type: "checkbox",
|
|
3732
3750
|
role: "switch",
|
|
3733
3751
|
disabled: t,
|
|
3734
|
-
className:
|
|
3752
|
+
className: pi.input,
|
|
3735
3753
|
...i
|
|
3736
3754
|
}),
|
|
3737
3755
|
/* @__PURE__ */ O("span", {
|
|
3738
|
-
className:
|
|
3756
|
+
className: pi.track,
|
|
3739
3757
|
"aria-hidden": "true",
|
|
3740
|
-
children: /* @__PURE__ */ O("span", { className:
|
|
3758
|
+
children: /* @__PURE__ */ O("span", { className: pi.thumb })
|
|
3741
3759
|
}),
|
|
3742
3760
|
e && /* @__PURE__ */ O("span", {
|
|
3743
|
-
className:
|
|
3761
|
+
className: pi.label,
|
|
3744
3762
|
children: e
|
|
3745
3763
|
})
|
|
3746
3764
|
]
|
|
3747
3765
|
});
|
|
3748
3766
|
});
|
|
3749
|
-
|
|
3750
|
-
var
|
|
3767
|
+
mi.displayName = "Switch";
|
|
3768
|
+
var hi = {
|
|
3751
3769
|
field: "_field_53t87_6",
|
|
3752
3770
|
field__label: "_field__label_53t87_8",
|
|
3753
3771
|
field__description: "_field__description_53t87_10",
|
|
@@ -3755,14 +3773,14 @@ var mi = {
|
|
|
3755
3773
|
textarea: "_textarea_53t87_13",
|
|
3756
3774
|
"textarea--error": "_textarea--error_53t87_37",
|
|
3757
3775
|
"textarea--disabled": "_textarea--disabled_53t87_52"
|
|
3758
|
-
},
|
|
3776
|
+
}, gi = D.forwardRef(({ label: e, description: t, error: n, disabled: r, id: i, className: a, rows: o = 3, ...s }, c) => {
|
|
3759
3777
|
let l = D.useId(), u = i ?? l, d = !!n, f = t || n ? `${u}-desc` : void 0;
|
|
3760
3778
|
return /* @__PURE__ */ k("div", {
|
|
3761
|
-
className: [
|
|
3779
|
+
className: [hi.field, a ?? ""].filter(Boolean).join(" "),
|
|
3762
3780
|
children: [
|
|
3763
3781
|
e && /* @__PURE__ */ O("label", {
|
|
3764
3782
|
htmlFor: u,
|
|
3765
|
-
className:
|
|
3783
|
+
className: hi.field__label,
|
|
3766
3784
|
children: e
|
|
3767
3785
|
}),
|
|
3768
3786
|
/* @__PURE__ */ O("textarea", {
|
|
@@ -3773,22 +3791,22 @@ var mi = {
|
|
|
3773
3791
|
"aria-invalid": d || void 0,
|
|
3774
3792
|
"aria-describedby": f,
|
|
3775
3793
|
className: [
|
|
3776
|
-
|
|
3777
|
-
d ?
|
|
3778
|
-
r ?
|
|
3794
|
+
hi.textarea,
|
|
3795
|
+
d ? hi["textarea--error"] : "",
|
|
3796
|
+
r ? hi["textarea--disabled"] : ""
|
|
3779
3797
|
].filter(Boolean).join(" "),
|
|
3780
3798
|
...s
|
|
3781
3799
|
}),
|
|
3782
3800
|
(t || n) && /* @__PURE__ */ O("span", {
|
|
3783
3801
|
id: f,
|
|
3784
|
-
className: d ?
|
|
3802
|
+
className: d ? hi.field__error : hi.field__description,
|
|
3785
3803
|
children: n || t
|
|
3786
3804
|
})
|
|
3787
3805
|
]
|
|
3788
3806
|
});
|
|
3789
3807
|
});
|
|
3790
|
-
|
|
3791
|
-
var
|
|
3808
|
+
gi.displayName = "Textarea";
|
|
3809
|
+
var _i = {
|
|
3792
3810
|
toast: "_toast_8yqwj_3",
|
|
3793
3811
|
toast__icon: "_toast__icon_8yqwj_17",
|
|
3794
3812
|
"toast--success": "_toast--success_8yqwj_18",
|
|
@@ -3798,7 +3816,7 @@ var gi = {
|
|
|
3798
3816
|
toast__title: "_toast__title_8yqwj_23",
|
|
3799
3817
|
toast__description: "_toast__description_8yqwj_24",
|
|
3800
3818
|
toast__dismiss: "_toast__dismiss_8yqwj_26"
|
|
3801
|
-
},
|
|
3819
|
+
}, vi = {
|
|
3802
3820
|
success: /* @__PURE__ */ k(He, { children: [/* @__PURE__ */ O("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), /* @__PURE__ */ O("polyline", { points: "22 4 12 14.01 9 11.01" })] }),
|
|
3803
3821
|
error: /* @__PURE__ */ k(He, { children: [
|
|
3804
3822
|
/* @__PURE__ */ O("circle", {
|
|
@@ -3838,17 +3856,17 @@ var gi = {
|
|
|
3838
3856
|
y2: "8"
|
|
3839
3857
|
})
|
|
3840
3858
|
] })
|
|
3841
|
-
},
|
|
3859
|
+
}, yi = ({ status: e = "info", title: t, description: n, onDismiss: r, className: i }) => /* @__PURE__ */ k("div", {
|
|
3842
3860
|
role: e === "error" ? "alert" : "status",
|
|
3843
3861
|
"aria-live": e === "error" ? "assertive" : "polite",
|
|
3844
3862
|
className: [
|
|
3845
|
-
|
|
3846
|
-
|
|
3863
|
+
_i.toast,
|
|
3864
|
+
_i[`toast--${e}`],
|
|
3847
3865
|
i ?? ""
|
|
3848
3866
|
].filter(Boolean).join(" "),
|
|
3849
3867
|
children: [
|
|
3850
3868
|
/* @__PURE__ */ O("span", {
|
|
3851
|
-
className:
|
|
3869
|
+
className: _i.toast__icon,
|
|
3852
3870
|
"aria-hidden": "true",
|
|
3853
3871
|
children: /* @__PURE__ */ O("svg", {
|
|
3854
3872
|
viewBox: "0 0 24 24",
|
|
@@ -3859,22 +3877,22 @@ var gi = {
|
|
|
3859
3877
|
strokeLinejoin: "round",
|
|
3860
3878
|
width: 18,
|
|
3861
3879
|
height: 18,
|
|
3862
|
-
children:
|
|
3880
|
+
children: vi[e]
|
|
3863
3881
|
})
|
|
3864
3882
|
}),
|
|
3865
3883
|
/* @__PURE__ */ k("div", {
|
|
3866
|
-
className:
|
|
3884
|
+
className: _i.toast__content,
|
|
3867
3885
|
children: [t && /* @__PURE__ */ O("div", {
|
|
3868
|
-
className:
|
|
3886
|
+
className: _i.toast__title,
|
|
3869
3887
|
children: t
|
|
3870
3888
|
}), n && /* @__PURE__ */ O("div", {
|
|
3871
|
-
className:
|
|
3889
|
+
className: _i.toast__description,
|
|
3872
3890
|
children: n
|
|
3873
3891
|
})]
|
|
3874
3892
|
}),
|
|
3875
3893
|
r && /* @__PURE__ */ O("button", {
|
|
3876
3894
|
type: "button",
|
|
3877
|
-
className:
|
|
3895
|
+
className: _i.toast__dismiss,
|
|
3878
3896
|
onClick: r,
|
|
3879
3897
|
"aria-label": "Dismiss",
|
|
3880
3898
|
children: /* @__PURE__ */ k("svg", {
|
|
@@ -3900,18 +3918,18 @@ var gi = {
|
|
|
3900
3918
|
})
|
|
3901
3919
|
})
|
|
3902
3920
|
]
|
|
3903
|
-
}),
|
|
3921
|
+
}), bi = {
|
|
3904
3922
|
bar: "_bar_14cqo_2",
|
|
3905
3923
|
bar__icon: "_bar__icon_14cqo_10",
|
|
3906
3924
|
bar__title: "_bar__title_14cqo_17",
|
|
3907
3925
|
"bar__title--center": "_bar__title--center_14cqo_21",
|
|
3908
3926
|
bar__search: "_bar__search_14cqo_22"
|
|
3909
|
-
},
|
|
3910
|
-
className: [
|
|
3927
|
+
}, xi = ({ type: e = "title", title: t, trailing: n, search: r, onMenu: i, onAction: a, onClose: o, className: s }) => /* @__PURE__ */ k("header", {
|
|
3928
|
+
className: [bi.bar, s ?? ""].filter(Boolean).join(" "),
|
|
3911
3929
|
children: [
|
|
3912
3930
|
/* @__PURE__ */ O("button", {
|
|
3913
3931
|
type: "button",
|
|
3914
|
-
className:
|
|
3932
|
+
className: bi.bar__icon,
|
|
3915
3933
|
onClick: i,
|
|
3916
3934
|
"aria-label": "Open menu",
|
|
3917
3935
|
children: /* @__PURE__ */ O(et, {
|
|
@@ -3920,15 +3938,15 @@ var gi = {
|
|
|
3920
3938
|
})
|
|
3921
3939
|
}),
|
|
3922
3940
|
e === "search" ? /* @__PURE__ */ O("div", {
|
|
3923
|
-
className:
|
|
3941
|
+
className: bi.bar__search,
|
|
3924
3942
|
children: r
|
|
3925
3943
|
}) : /* @__PURE__ */ O("span", {
|
|
3926
|
-
className: [
|
|
3944
|
+
className: [bi.bar__title, e === "title-centered" ? bi["bar__title--center"] : ""].join(" "),
|
|
3927
3945
|
children: t
|
|
3928
3946
|
}),
|
|
3929
3947
|
e === "title-action" && /* @__PURE__ */ O("button", {
|
|
3930
3948
|
type: "button",
|
|
3931
|
-
className:
|
|
3949
|
+
className: bi.bar__icon,
|
|
3932
3950
|
onClick: a,
|
|
3933
3951
|
"aria-label": "Add",
|
|
3934
3952
|
children: /* @__PURE__ */ O(it, {
|
|
@@ -3938,7 +3956,7 @@ var gi = {
|
|
|
3938
3956
|
}),
|
|
3939
3957
|
e === "search" && /* @__PURE__ */ O("button", {
|
|
3940
3958
|
type: "button",
|
|
3941
|
-
className:
|
|
3959
|
+
className: bi.bar__icon,
|
|
3942
3960
|
onClick: o,
|
|
3943
3961
|
"aria-label": "Close search",
|
|
3944
3962
|
children: /* @__PURE__ */ O(pt, {
|
|
@@ -3950,4 +3968,4 @@ var gi = {
|
|
|
3950
3968
|
]
|
|
3951
3969
|
});
|
|
3952
3970
|
//#endregion
|
|
3953
|
-
export { ce as Accordion, de as AccordionItem, oe as ActivityFeed, ye as ActivityFeedHighlight, h as Alert, zt as Announcement,
|
|
3971
|
+
export { ce as Accordion, de as AccordionItem, oe as ActivityFeed, ye as ActivityFeedHighlight, h as Alert, zt as Announcement, Wn as AreaChart, Pe as Avatar, m as AvatarGroup, he as AvatarUpload, C as Badge, Oe as Balance, on as BarChart, _n as BlogBlockquote, yn as BlogFeatureText, xn as BlogImage, l as BlogListingCard, o as BlogListingFeaturedCard, i as BoardCard, Gn as BoardColumn, Ie as Breadcrumb, w as Button, Xn as Calendar, Zn as Card, r as CardMetaItem, u as CartItem, y as ChatComposer, Le as Checkbox, d as CheckoutSteps, Ut as CodeSnippet, S as ColorSwatch, Qn as Combobox, T as ConversationItem, Ee as DEFAULT_CHECKOUT_STEPS, Me as Divider, tr as DonutChart, Re as EmptyState, Kt as Expenses, g as FeaturedIcon, nr as FileUpload, Fe as FilterChip, Cn as FirstPageHeading, sr as FunnelChart, ur as HeatmapChart, b as HoverGroup, we as IconButton, Yt as InlineHint, re as Input, ge as JobListing, fr as Kbd, mr as Label, vr as LineChart, Ae as Link, Tn as List, br as ListItem, p as LocationDot, On as Marquee, Sr as Menu, Cr as MenuDivider, Tr as MenuItem, fe as MessageBubble, An as Metric, jn as MobileNavigationMenu, le as Modal, e as NotificationItem, pe as Pagination, Nr as PieChart, Pn as PlaceholderLogo, Pr as Popover, x as PriceDisplay, ee as ProductCard, n as ProductGallery, Fn as ProfileCard, Se as Progress, Xt as ProgressItem, _ as ProgressStat, te as QuantitySelector, Wr as RadarChart, Qr as RadialChart, $r as Radio, Qt as RichSeparator, Ln as RichTextHeading, zn as RichTextParagraph, t as SectionHeading, be as SegmentedControl, Te as Select, ue as Sidebar, se as SidebarDivider, ei as SidebarFooter, Ne as SidebarGroupLabel, ve as SidebarHeader, ae as SidebarItem, ni as SidebarPromo, ri as SidebarSearch, ke as SidebarSubItem, ze as SizeSelector, Ce as Skeleton, ie as Slider, ne as SpendingBalance, ai as Spinner, v as StarRating, ui as StatCard, fi as Stepper, di as StepperStep, cn as StockMarket, f as StockStatus, Vn as SubFeature, mi as Switch, me as Table, De as Tabs, dn as Tags, _e as TeamCard, gi as Textarea, mn as Ticker, yi as Toast, xe as Tooltip, je as TopBar, xi as TopBarMobile, gn as Transactions, c as WishlistButton, s as getContrastColor, E as iconStrokeWidth, a as useHoverHighlight };
|