@konstructio/ui 0.1.2-alpha.73 → 0.1.2-alpha.75
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/{Modal-CXRo8f-h.js → Modal-BTOXCb0Y.js} +1 -1
- package/dist/assets/icons/components/Home2.d.ts +3 -0
- package/dist/assets/icons/components/Home2.js +28 -0
- package/dist/assets/icons/components/Upload.d.ts +3 -0
- package/dist/assets/icons/components/Upload.js +28 -0
- package/dist/assets/icons/components/index.d.ts +2 -0
- package/dist/assets/icons/components/index.js +70 -66
- package/dist/assets/icons/index.js +70 -66
- package/dist/components/Alert/Alert.js +12 -12
- package/dist/components/Alert/Alert.types.d.ts +21 -6
- package/dist/components/Button/Button.variants.js +4 -5
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- package/dist/components/Filter/Filter.js +24 -22
- package/dist/components/Filter/Filter.types.d.ts +8 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +3 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +57 -41
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +75 -49
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.types.d.ts +2 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +38 -37
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +31 -30
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +64 -47
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.types.d.ts +2 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +35 -34
- package/dist/components/Filter/contexts/filter.context.d.ts +4 -0
- package/dist/components/Filter/contexts/filter.context.js +7 -0
- package/dist/components/Filter/contexts/filter.hook.d.ts +2 -0
- package/dist/components/Filter/contexts/filter.hook.js +11 -0
- package/dist/components/Filter/contexts/filter.provider.d.ts +5 -0
- package/dist/components/Filter/contexts/filter.provider.js +6 -0
- package/dist/components/Filter/contexts/index.d.ts +3 -0
- package/dist/components/Filter/contexts/index.js +8 -0
- package/dist/components/LineChart/LineChart.js +55 -52
- package/dist/components/LineChart/LineChart.types.d.ts +2 -0
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +394 -353
- package/dist/components/Select/Select.types.d.ts +1 -0
- package/dist/components/Select/Select.variants.js +1 -1
- package/dist/components/Select/components/List/List.js +64 -61
- package/dist/components/Select/components/List/List.types.d.ts +1 -0
- package/dist/components/Select/components/Wrapper.js +46 -44
- package/dist/components/Select/constants/index.d.ts +1 -0
- package/dist/components/Select/constants/index.js +3 -1
- package/dist/components/Select/constants/list.d.ts +1 -0
- package/dist/components/Select/constants/list.js +4 -0
- package/dist/components/Toast/Toast.js +192 -184
- package/dist/components/Toast/Toast.variants.js +6 -12
- package/dist/components/VirtualizedTable/VirtualizedTable.js +57 -55
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +2 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +55 -54
- package/dist/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -0
- package/dist/components/index.js +1 -1
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +70 -66
- package/dist/index.js +1 -1
- package/dist/package.json +10 -10
- package/dist/proxy-BvdTb_6B.js +4974 -0
- package/dist/styles.css +1 -1
- package/package.json +10 -10
- package/dist/proxy-0sbyKj-k.js +0 -4946
|
@@ -1,50 +1,54 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { Badge as
|
|
2
|
+
import { Badge as y } from "../../../Badge/Badge.js";
|
|
3
3
|
import { Button as o } from "../../../Button/Button.js";
|
|
4
|
-
import { Checkbox as
|
|
5
|
-
import { filterButtonIconVariants as
|
|
4
|
+
import { Checkbox as p } from "../../../Checkbox/Checkbox.js";
|
|
5
|
+
import { filterButtonIconVariants as S, filterButtonVariants as O } from "../../Filter.variants.js";
|
|
6
6
|
import { cn as r } from "../../../../utils/index.js";
|
|
7
|
-
import { useBadgeMultiSelect as
|
|
8
|
-
import { C as
|
|
9
|
-
const
|
|
10
|
-
options:
|
|
11
|
-
label:
|
|
12
|
-
position:
|
|
13
|
-
onApply:
|
|
7
|
+
import { useBadgeMultiSelect as A } from "../BadgeDropdown/BadgeMultiSelect.hook.js";
|
|
8
|
+
import { C as B } from "../../../../chevron-down-BBFYYzZq.js";
|
|
9
|
+
const T = ({
|
|
10
|
+
options: l,
|
|
11
|
+
label: h,
|
|
12
|
+
position: c = "left",
|
|
13
|
+
onApply: f,
|
|
14
|
+
showSelectAll: x = !0,
|
|
15
|
+
selectAllLabel: u = "All"
|
|
14
16
|
}) => {
|
|
15
17
|
const {
|
|
16
|
-
wrapperRef:
|
|
17
|
-
isOpen:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
wrapperRef: g,
|
|
19
|
+
isOpen: d,
|
|
20
|
+
isAllSelected: i,
|
|
21
|
+
selectedOptions: b,
|
|
22
|
+
selectedCount: s,
|
|
23
|
+
handleOpen: k,
|
|
24
|
+
handleResetOptions: C,
|
|
25
|
+
handleApplyOptions: N,
|
|
26
|
+
handleSelectAll: v,
|
|
27
|
+
handleSelectOption: w
|
|
28
|
+
} = A({ onApply: f, options: l });
|
|
29
|
+
return l.length === 0 ? null : /* @__PURE__ */ a("div", { ref: g, className: "relative", children: [
|
|
26
30
|
/* @__PURE__ */ a(
|
|
27
31
|
"button",
|
|
28
32
|
{
|
|
29
|
-
className: r(
|
|
30
|
-
"text-slate-700 dark:text-metal-50":
|
|
33
|
+
className: r(O(), {
|
|
34
|
+
"text-slate-700 dark:text-metal-50": d
|
|
31
35
|
}),
|
|
32
|
-
onClick:
|
|
36
|
+
onClick: k,
|
|
33
37
|
children: [
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
h,
|
|
39
|
+
s.length > 0 && /* @__PURE__ */ e(y, { label: s.length.toString() }),
|
|
36
40
|
/* @__PURE__ */ e(
|
|
37
|
-
|
|
41
|
+
B,
|
|
38
42
|
{
|
|
39
|
-
className: r(
|
|
40
|
-
"rotate-180 text-blue-600 dark:text-aurora-500":
|
|
43
|
+
className: r(S(), {
|
|
44
|
+
"rotate-180 text-blue-600 dark:text-aurora-500": d
|
|
41
45
|
})
|
|
42
46
|
}
|
|
43
47
|
)
|
|
44
48
|
]
|
|
45
49
|
}
|
|
46
50
|
),
|
|
47
|
-
|
|
51
|
+
d && /* @__PURE__ */ a(
|
|
48
52
|
"div",
|
|
49
53
|
{
|
|
50
54
|
className: r(
|
|
@@ -62,28 +66,41 @@ const $ = ({
|
|
|
62
66
|
"dark:bg-metal-800",
|
|
63
67
|
"dark:border-metal-700",
|
|
64
68
|
{
|
|
65
|
-
"left-0":
|
|
66
|
-
"right-0":
|
|
69
|
+
"left-0": c === "left",
|
|
70
|
+
"right-0": c === "right"
|
|
67
71
|
}
|
|
68
72
|
),
|
|
69
73
|
children: [
|
|
70
|
-
/* @__PURE__ */ e("div", { className: "px-6 py-4", children: /* @__PURE__ */
|
|
71
|
-
|
|
72
|
-
(d) => d.id === t.id
|
|
73
|
-
);
|
|
74
|
-
return /* @__PURE__ */ a("div", { className: "flex gap-4", children: [
|
|
74
|
+
/* @__PURE__ */ e("div", { className: "px-6 py-4", children: /* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: [
|
|
75
|
+
x && /* @__PURE__ */ a("div", { className: "flex gap-4", children: [
|
|
75
76
|
/* @__PURE__ */ e(
|
|
76
|
-
|
|
77
|
+
p,
|
|
77
78
|
{
|
|
78
|
-
defaultChecked:
|
|
79
|
-
|
|
80
|
-
onChange: (d) => b(t, d)
|
|
79
|
+
defaultChecked: i,
|
|
80
|
+
onChange: (t) => v(l, t)
|
|
81
81
|
},
|
|
82
|
-
|
|
82
|
+
`select-all-${i}`
|
|
83
83
|
),
|
|
84
|
-
/* @__PURE__ */ e("span", { className: "text-sm text-slate-700 dark:text-metal-200 whitespace-nowrap", children:
|
|
85
|
-
] },
|
|
86
|
-
|
|
84
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-slate-700 dark:text-metal-200 whitespace-nowrap", children: u })
|
|
85
|
+
] }),
|
|
86
|
+
l.map((t) => {
|
|
87
|
+
const m = !!b.find(
|
|
88
|
+
(n) => n.id === t.id
|
|
89
|
+
);
|
|
90
|
+
return /* @__PURE__ */ a("div", { className: "flex gap-4", children: [
|
|
91
|
+
/* @__PURE__ */ e(
|
|
92
|
+
p,
|
|
93
|
+
{
|
|
94
|
+
defaultChecked: m,
|
|
95
|
+
"data-label": t.id,
|
|
96
|
+
onChange: (n) => w(t, n)
|
|
97
|
+
},
|
|
98
|
+
`${t.id}-${m}`
|
|
99
|
+
),
|
|
100
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-slate-700 dark:text-metal-200 whitespace-nowrap", children: t.label })
|
|
101
|
+
] }, t.id);
|
|
102
|
+
})
|
|
103
|
+
] }) }),
|
|
87
104
|
/* @__PURE__ */ a(
|
|
88
105
|
"div",
|
|
89
106
|
{
|
|
@@ -104,11 +121,11 @@ const $ = ({
|
|
|
104
121
|
{
|
|
105
122
|
variant: "secondary",
|
|
106
123
|
appearance: "compact",
|
|
107
|
-
onClick:
|
|
124
|
+
onClick: C,
|
|
108
125
|
children: "Reset"
|
|
109
126
|
}
|
|
110
127
|
),
|
|
111
|
-
/* @__PURE__ */ e(o, { appearance: "compact", onClick:
|
|
128
|
+
/* @__PURE__ */ e(o, { appearance: "compact", onClick: N, children: "Apply" })
|
|
112
129
|
]
|
|
113
130
|
}
|
|
114
131
|
)
|
|
@@ -118,5 +135,5 @@ const $ = ({
|
|
|
118
135
|
] });
|
|
119
136
|
};
|
|
120
137
|
export {
|
|
121
|
-
|
|
138
|
+
T as TextMultiSelect
|
|
122
139
|
};
|
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { useRef as
|
|
1
|
+
import { useRef as k, useId as x, useState as i, useCallback as n, useEffect as g } from "react";
|
|
2
2
|
import { getFormattedTime as I } from "../../../TimePicker/utils/index.js";
|
|
3
|
-
import { sendOpenFilterEvent as
|
|
4
|
-
|
|
3
|
+
import { sendOpenFilterEvent as A, FilterEvent as h } from "../../events/index.js";
|
|
4
|
+
import { useFilterContext as D } from "../../contexts/filter.hook.js";
|
|
5
|
+
const B = ({
|
|
5
6
|
onApply: t,
|
|
6
|
-
format:
|
|
7
|
+
format: L = "24"
|
|
7
8
|
}) => {
|
|
8
|
-
const
|
|
9
|
-
() =>
|
|
9
|
+
const { closeOnApply: l } = D(), c = k(null), s = x(), [C, o] = i(!1), [d, r] = i(), [b, m] = i(), [u, a] = i(), [O, f] = i(), T = O ?? (b ? I(b, L) : void 0), P = n(
|
|
10
|
+
() => o((e) => (e || A(s), !e)),
|
|
10
11
|
[s]
|
|
11
|
-
),
|
|
12
|
-
|
|
13
|
-
}, []),
|
|
14
|
-
|
|
15
|
-
}, []),
|
|
16
|
-
|
|
17
|
-
}, [t,
|
|
18
|
-
|
|
19
|
-
}, [t]);
|
|
12
|
+
), S = n((e) => {
|
|
13
|
+
r(e.value), a(e.label);
|
|
14
|
+
}, []), w = n((e) => {
|
|
15
|
+
r(e), a(void 0);
|
|
16
|
+
}, []), F = n(() => {
|
|
17
|
+
m(d), f(u), t?.(d), l && o(!1);
|
|
18
|
+
}, [l, t, d, u]), v = n(() => o(!1), []), R = n(() => {
|
|
19
|
+
r(void 0), m(void 0), a(void 0), f(void 0), t?.(), l && o(!1);
|
|
20
|
+
}, [l, t]);
|
|
20
21
|
return g(() => {
|
|
21
22
|
const e = new AbortController();
|
|
22
23
|
return document.addEventListener(
|
|
23
|
-
|
|
24
|
-
(
|
|
25
|
-
|
|
24
|
+
h.OPEN,
|
|
25
|
+
(p) => {
|
|
26
|
+
p.detail !== s && o(!1);
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
signal: e.signal
|
|
29
30
|
}
|
|
30
31
|
), document.addEventListener(
|
|
31
|
-
|
|
32
|
+
h.RESET,
|
|
32
33
|
() => {
|
|
33
|
-
|
|
34
|
+
r(void 0), m(void 0), a(void 0), f(void 0), t?.();
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
37
|
signal: e.signal
|
|
@@ -39,10 +40,10 @@ const q = ({
|
|
|
39
40
|
e.abort();
|
|
40
41
|
};
|
|
41
42
|
}, [s, t]), g(() => {
|
|
42
|
-
const e = new AbortController(),
|
|
43
|
-
|
|
43
|
+
const e = new AbortController(), p = (E) => {
|
|
44
|
+
c.current?.contains(E.target) || v();
|
|
44
45
|
};
|
|
45
|
-
return document.addEventListener("mousedown",
|
|
46
|
+
return document.addEventListener("mousedown", p, {
|
|
46
47
|
signal: e.signal
|
|
47
48
|
}), document.addEventListener(
|
|
48
49
|
"visibilitychange",
|
|
@@ -55,20 +56,20 @@ const q = ({
|
|
|
55
56
|
), () => {
|
|
56
57
|
e.abort();
|
|
57
58
|
};
|
|
58
|
-
}, [v,
|
|
59
|
+
}, [v, c]), {
|
|
59
60
|
id: s,
|
|
60
|
-
appliedLabel:
|
|
61
|
-
isOpen:
|
|
62
|
-
selectedTime:
|
|
61
|
+
appliedLabel: T,
|
|
62
|
+
isOpen: C,
|
|
63
|
+
selectedTime: d,
|
|
63
64
|
selectedPresetLabel: u,
|
|
64
|
-
wrapperRef:
|
|
65
|
-
handleApply:
|
|
66
|
-
handleOpen:
|
|
67
|
-
handleSelectPreset:
|
|
68
|
-
handleSelectCustom:
|
|
69
|
-
handleReset:
|
|
65
|
+
wrapperRef: c,
|
|
66
|
+
handleApply: F,
|
|
67
|
+
handleOpen: P,
|
|
68
|
+
handleSelectPreset: S,
|
|
69
|
+
handleSelectCustom: w,
|
|
70
|
+
handleReset: R
|
|
70
71
|
};
|
|
71
72
|
};
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
B as useTimeFilterDropdown
|
|
74
75
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useContext as e } from "react";
|
|
2
|
+
import { FilterContext as r } from "./filter.context.js";
|
|
3
|
+
const n = () => {
|
|
4
|
+
const t = e(r);
|
|
5
|
+
if (!t)
|
|
6
|
+
throw new Error("useFilterContext must be used within a FilterProvider");
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
n as useFilterContext
|
|
11
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { C as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { Typography as
|
|
5
|
-
import { resolveColor as
|
|
6
|
-
|
|
7
|
-
_,
|
|
1
|
+
import { jsxs as P, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { C as _, a as z, i as j, p as D, L as E, b as F, P as H, c as N, d as O } from "../../index-qDQP8rW4.js";
|
|
3
|
+
import { useMemo as h } from "react";
|
|
4
|
+
import { Typography as M } from "../Typography/Typography.js";
|
|
5
|
+
import { resolveColor as r, cn as V } from "../../utils/index.js";
|
|
6
|
+
_.register(
|
|
8
7
|
z,
|
|
9
8
|
j,
|
|
10
|
-
x,
|
|
11
9
|
D,
|
|
12
10
|
E,
|
|
13
|
-
F
|
|
11
|
+
F,
|
|
12
|
+
H,
|
|
13
|
+
N
|
|
14
14
|
);
|
|
15
|
-
const
|
|
15
|
+
const a = [
|
|
16
16
|
"--color-aurora-500",
|
|
17
17
|
"--color-rose-500",
|
|
18
18
|
"--color-violet-500",
|
|
@@ -23,46 +23,47 @@ const l = [
|
|
|
23
23
|
"--color-fuchsia-500",
|
|
24
24
|
"--color-indigo-500",
|
|
25
25
|
"--color-cyan-500"
|
|
26
|
-
],
|
|
27
|
-
title:
|
|
28
|
-
titleProps:
|
|
29
|
-
labels:
|
|
30
|
-
datasets:
|
|
31
|
-
yAxisFormatter:
|
|
26
|
+
], J = ({
|
|
27
|
+
title: n,
|
|
28
|
+
titleProps: C,
|
|
29
|
+
labels: b,
|
|
30
|
+
datasets: t,
|
|
31
|
+
yAxisFormatter: i,
|
|
32
32
|
showLegend: u,
|
|
33
|
-
height:
|
|
34
|
-
smooth:
|
|
35
|
-
axisColor:
|
|
33
|
+
height: k = 300,
|
|
34
|
+
smooth: m = !0,
|
|
35
|
+
axisColor: c = "#9F9FA9",
|
|
36
36
|
gridColor: e = "#45556C",
|
|
37
37
|
showGrid: g = !0,
|
|
38
|
-
lineWidth:
|
|
39
|
-
showAxisBorder:
|
|
40
|
-
|
|
38
|
+
lineWidth: f = 2,
|
|
39
|
+
showAxisBorder: s = !1,
|
|
40
|
+
tooltipTextColor: d = r("--color-metal-100"),
|
|
41
|
+
className: L
|
|
41
42
|
}) => {
|
|
42
|
-
const
|
|
43
|
+
const y = u !== void 0 ? u : t.length > 1, S = h(
|
|
43
44
|
() => ({
|
|
44
|
-
labels:
|
|
45
|
-
datasets:
|
|
45
|
+
labels: b,
|
|
46
|
+
datasets: t.map((o, l) => ({
|
|
46
47
|
label: o.label,
|
|
47
48
|
data: o.data,
|
|
48
|
-
borderColor: o.color ??
|
|
49
|
-
backgroundColor: o.color ??
|
|
49
|
+
borderColor: o.color ?? r(a[l % a.length]),
|
|
50
|
+
backgroundColor: o.color ?? r(a[l % a.length]),
|
|
50
51
|
borderDash: o.borderDash,
|
|
51
|
-
borderWidth:
|
|
52
|
+
borderWidth: f,
|
|
52
53
|
pointRadius: 0,
|
|
53
54
|
pointHoverRadius: 4,
|
|
54
|
-
tension:
|
|
55
|
+
tension: m ? 0.3 : 0,
|
|
55
56
|
fill: !1
|
|
56
57
|
}))
|
|
57
58
|
}),
|
|
58
|
-
[
|
|
59
|
-
),
|
|
59
|
+
[b, t, m, f]
|
|
60
|
+
), R = h(
|
|
60
61
|
() => ({
|
|
61
62
|
responsive: !0,
|
|
62
63
|
maintainAspectRatio: !1,
|
|
63
|
-
onHover: (o,
|
|
64
|
+
onHover: (o, l) => {
|
|
64
65
|
const v = o.native?.target;
|
|
65
|
-
v && (v.style.cursor =
|
|
66
|
+
v && (v.style.cursor = l.length > 0 ? "pointer" : "default");
|
|
66
67
|
},
|
|
67
68
|
interaction: {
|
|
68
69
|
mode: "index",
|
|
@@ -70,7 +71,7 @@ const l = [
|
|
|
70
71
|
},
|
|
71
72
|
plugins: {
|
|
72
73
|
legend: {
|
|
73
|
-
display:
|
|
74
|
+
display: y,
|
|
74
75
|
position: "top",
|
|
75
76
|
align: "end",
|
|
76
77
|
labels: {
|
|
@@ -87,10 +88,12 @@ const l = [
|
|
|
87
88
|
},
|
|
88
89
|
tooltip: {
|
|
89
90
|
enabled: !0,
|
|
90
|
-
backgroundColor:
|
|
91
|
+
backgroundColor: r("--color-metal-700"),
|
|
92
|
+
titleColor: d,
|
|
93
|
+
bodyColor: d,
|
|
91
94
|
boxPadding: 6,
|
|
92
95
|
callbacks: {
|
|
93
|
-
labelTextColor: (
|
|
96
|
+
labelTextColor: () => d
|
|
94
97
|
}
|
|
95
98
|
}
|
|
96
99
|
},
|
|
@@ -100,13 +103,13 @@ const l = [
|
|
|
100
103
|
color: "transparent"
|
|
101
104
|
},
|
|
102
105
|
ticks: {
|
|
103
|
-
color:
|
|
106
|
+
color: c,
|
|
104
107
|
font: {
|
|
105
108
|
size: 12
|
|
106
109
|
}
|
|
107
110
|
},
|
|
108
111
|
border: {
|
|
109
|
-
display:
|
|
112
|
+
display: s,
|
|
110
113
|
color: e
|
|
111
114
|
}
|
|
112
115
|
},
|
|
@@ -115,40 +118,40 @@ const l = [
|
|
|
115
118
|
color: g ? e : "transparent"
|
|
116
119
|
},
|
|
117
120
|
ticks: {
|
|
118
|
-
color:
|
|
121
|
+
color: c,
|
|
119
122
|
font: {
|
|
120
123
|
size: 12
|
|
121
124
|
},
|
|
122
|
-
callback:
|
|
125
|
+
callback: i ? (o) => i(o) : void 0
|
|
123
126
|
},
|
|
124
127
|
border: {
|
|
125
|
-
display:
|
|
128
|
+
display: s,
|
|
126
129
|
color: e
|
|
127
130
|
}
|
|
128
131
|
}
|
|
129
132
|
}
|
|
130
133
|
}),
|
|
131
134
|
[
|
|
132
|
-
|
|
133
|
-
t,
|
|
135
|
+
y,
|
|
134
136
|
i,
|
|
137
|
+
c,
|
|
135
138
|
e,
|
|
136
139
|
g,
|
|
137
|
-
|
|
140
|
+
s
|
|
138
141
|
]
|
|
139
142
|
);
|
|
140
|
-
return /* @__PURE__ */
|
|
141
|
-
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
|
|
143
|
+
return /* @__PURE__ */ P("div", { className: V("w-full", L), children: [
|
|
144
|
+
n && /* @__PURE__ */ p(M, { variant: "subtitle2", className: "mb-6", ...C, children: n }),
|
|
145
|
+
/* @__PURE__ */ p("div", { style: { height: k }, children: /* @__PURE__ */ p(
|
|
146
|
+
O,
|
|
144
147
|
{
|
|
145
|
-
"aria-label":
|
|
146
|
-
data:
|
|
147
|
-
options:
|
|
148
|
+
"aria-label": n ?? "Line chart",
|
|
149
|
+
data: S,
|
|
150
|
+
options: R
|
|
148
151
|
}
|
|
149
152
|
) })
|
|
150
153
|
] });
|
|
151
154
|
};
|
|
152
155
|
export {
|
|
153
|
-
|
|
156
|
+
J as LineChart
|
|
154
157
|
};
|
|
@@ -49,6 +49,8 @@ export interface LineChartProps {
|
|
|
49
49
|
lineWidth?: number;
|
|
50
50
|
/** Show axis border lines (default: false) */
|
|
51
51
|
showAxisBorder?: boolean;
|
|
52
|
+
/** Tooltip text color (default: metal-100) */
|
|
53
|
+
tooltipTextColor?: string;
|
|
52
54
|
/** Additional className for wrapper */
|
|
53
55
|
className?: string;
|
|
54
56
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
import { M as d } from "../../Modal-
|
|
4
|
+
import { M as d } from "../../Modal-BTOXCb0Y.js";
|
|
5
5
|
import "./components/Header/Header.js";
|
|
6
6
|
import "./components/Body/Body.js";
|
|
7
7
|
import "./components/Footer/Footer.js";
|
|
@@ -2,10 +2,10 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../../../../index-BKjcReYh.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../../../Combination-BtmnusWq.js";
|
|
5
|
-
import { W as s } from "../../../../Modal-
|
|
5
|
+
import { W as s } from "../../../../Modal-BTOXCb0Y.js";
|
|
6
6
|
import "../../../../utils/index.js";
|
|
7
7
|
import "./Wrapper.variants.js";
|
|
8
|
-
import "../../../../proxy-
|
|
8
|
+
import "../../../../proxy-BvdTb_6B.js";
|
|
9
9
|
import "../../../../x-Eoa9FJjA.js";
|
|
10
10
|
export {
|
|
11
11
|
s as Wrapper
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Body as e } from "./Body/Body.js";
|
|
2
2
|
import { Footer as t } from "./Footer/Footer.js";
|
|
3
3
|
import { Header as m } from "./Header/Header.js";
|
|
4
|
-
import { W as a } from "../../../Modal-
|
|
4
|
+
import { W as a } from "../../../Modal-BTOXCb0Y.js";
|
|
5
5
|
export {
|
|
6
6
|
e as Body,
|
|
7
7
|
t as Footer,
|