@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.
Files changed (64) hide show
  1. package/dist/{Modal-CXRo8f-h.js → Modal-BTOXCb0Y.js} +1 -1
  2. package/dist/assets/icons/components/Home2.d.ts +3 -0
  3. package/dist/assets/icons/components/Home2.js +28 -0
  4. package/dist/assets/icons/components/Upload.d.ts +3 -0
  5. package/dist/assets/icons/components/Upload.js +28 -0
  6. package/dist/assets/icons/components/index.d.ts +2 -0
  7. package/dist/assets/icons/components/index.js +70 -66
  8. package/dist/assets/icons/index.js +70 -66
  9. package/dist/components/Alert/Alert.js +12 -12
  10. package/dist/components/Alert/Alert.types.d.ts +21 -6
  11. package/dist/components/Button/Button.variants.js +4 -5
  12. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  13. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
  14. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
  15. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
  16. package/dist/components/Filter/Filter.js +24 -22
  17. package/dist/components/Filter/Filter.types.d.ts +8 -0
  18. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +3 -1
  19. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +57 -41
  20. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +75 -49
  21. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.types.d.ts +2 -0
  22. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +38 -37
  23. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +31 -30
  24. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +64 -47
  25. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.types.d.ts +2 -0
  26. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +35 -34
  27. package/dist/components/Filter/contexts/filter.context.d.ts +4 -0
  28. package/dist/components/Filter/contexts/filter.context.js +7 -0
  29. package/dist/components/Filter/contexts/filter.hook.d.ts +2 -0
  30. package/dist/components/Filter/contexts/filter.hook.js +11 -0
  31. package/dist/components/Filter/contexts/filter.provider.d.ts +5 -0
  32. package/dist/components/Filter/contexts/filter.provider.js +6 -0
  33. package/dist/components/Filter/contexts/index.d.ts +3 -0
  34. package/dist/components/Filter/contexts/index.js +8 -0
  35. package/dist/components/LineChart/LineChart.js +55 -52
  36. package/dist/components/LineChart/LineChart.types.d.ts +2 -0
  37. package/dist/components/Modal/Modal.js +1 -1
  38. package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
  39. package/dist/components/Modal/components/index.js +1 -1
  40. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +394 -353
  41. package/dist/components/Select/Select.types.d.ts +1 -0
  42. package/dist/components/Select/Select.variants.js +1 -1
  43. package/dist/components/Select/components/List/List.js +64 -61
  44. package/dist/components/Select/components/List/List.types.d.ts +1 -0
  45. package/dist/components/Select/components/Wrapper.js +46 -44
  46. package/dist/components/Select/constants/index.d.ts +1 -0
  47. package/dist/components/Select/constants/index.js +3 -1
  48. package/dist/components/Select/constants/list.d.ts +1 -0
  49. package/dist/components/Select/constants/list.js +4 -0
  50. package/dist/components/Toast/Toast.js +192 -184
  51. package/dist/components/Toast/Toast.variants.js +6 -12
  52. package/dist/components/VirtualizedTable/VirtualizedTable.js +57 -55
  53. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +2 -0
  54. package/dist/components/VirtualizedTable/components/Filter/Filter.js +55 -54
  55. package/dist/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -0
  56. package/dist/components/index.js +1 -1
  57. package/dist/icons.d.ts +1 -1
  58. package/dist/icons.js +70 -66
  59. package/dist/index.js +1 -1
  60. package/dist/package.json +10 -10
  61. package/dist/proxy-BvdTb_6B.js +4974 -0
  62. package/dist/styles.css +1 -1
  63. package/package.json +10 -10
  64. 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 k } from "../../../Badge/Badge.js";
2
+ import { Badge as y } from "../../../Badge/Badge.js";
3
3
  import { Button as o } from "../../../Button/Button.js";
4
- import { Checkbox as v } from "../../../Checkbox/Checkbox.js";
5
- import { filterButtonIconVariants as C, filterButtonVariants as N } from "../../Filter.variants.js";
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 y } from "../BadgeDropdown/BadgeMultiSelect.hook.js";
8
- import { C as w } from "../../../../chevron-down-BBFYYzZq.js";
9
- const $ = ({
10
- options: n,
11
- label: m,
12
- position: i = "left",
13
- onApply: p
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: h,
17
- isOpen: l,
18
- selectedOptions: f,
19
- selectedCount: c,
20
- handleOpen: u,
21
- handleResetOptions: x,
22
- handleApplyOptions: g,
23
- handleSelectOption: b
24
- } = y({ onApply: p });
25
- return n.length === 0 ? null : /* @__PURE__ */ a("div", { ref: h, className: "relative", children: [
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(N(), {
30
- "text-slate-700 dark:text-metal-50": l
33
+ className: r(O(), {
34
+ "text-slate-700 dark:text-metal-50": d
31
35
  }),
32
- onClick: u,
36
+ onClick: k,
33
37
  children: [
34
- m,
35
- c.length > 0 && /* @__PURE__ */ e(k, { label: c.length.toString() }),
38
+ h,
39
+ s.length > 0 && /* @__PURE__ */ e(y, { label: s.length.toString() }),
36
40
  /* @__PURE__ */ e(
37
- w,
41
+ B,
38
42
  {
39
- className: r(C(), {
40
- "rotate-180 text-blue-600 dark:text-aurora-500": l
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
- l && /* @__PURE__ */ a(
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": i === "left",
66
- "right-0": i === "right"
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__ */ e("div", { className: "flex flex-col gap-2", children: n.map((t) => {
71
- const s = !!f.find(
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
- v,
77
+ p,
77
78
  {
78
- defaultChecked: s,
79
- "data-label": t.id,
80
- onChange: (d) => b(t, d)
79
+ defaultChecked: i,
80
+ onChange: (t) => v(l, t)
81
81
  },
82
- `${t.id}-${s}`
82
+ `select-all-${i}`
83
83
  ),
84
- /* @__PURE__ */ e("span", { className: "text-sm text-slate-700 dark:text-metal-200 whitespace-nowrap", children: t.label })
85
- ] }, t.id);
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: x,
124
+ onClick: C,
108
125
  children: "Reset"
109
126
  }
110
127
  ),
111
- /* @__PURE__ */ e(o, { appearance: "compact", onClick: g, children: "Apply" })
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
- $ as TextMultiSelect
138
+ T as TextMultiSelect
122
139
  };
@@ -4,4 +4,6 @@ export type TextMultiSelectProps = {
4
4
  options: Option[];
5
5
  position?: 'left' | 'right';
6
6
  onApply?: (selectedOptions: Option[]) => void;
7
+ showSelectAll?: boolean;
8
+ selectAllLabel?: string;
7
9
  };
@@ -1,36 +1,37 @@
1
- import { useRef as R, useId as k, useState as o, useCallback as n, useEffect as g } from "react";
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 x, FilterEvent as p } from "../../events/index.js";
4
- const q = ({
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: h = "24"
7
+ format: L = "24"
7
8
  }) => {
8
- const r = R(null), s = k(), [L, a] = o(!1), [i, l] = o(), [b, c] = o(), [u, d] = o(), [T, m] = o(), C = T ?? (b ? I(b, h) : void 0), O = n(
9
- () => a((e) => (e || x(s), !e)),
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
- ), P = n((e) => {
12
- l(e.value), d(e.label);
13
- }, []), S = n((e) => {
14
- l(e), d(void 0);
15
- }, []), w = n(() => {
16
- c(i), m(u), t?.(i);
17
- }, [t, i, u]), v = n(() => a(!1), []), F = n(() => {
18
- l(void 0), c(void 0), d(void 0), m(void 0), t?.();
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
- p.OPEN,
24
- (f) => {
25
- f.detail !== s && a(!1);
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
- p.RESET,
32
+ h.RESET,
32
33
  () => {
33
- l(void 0), c(void 0), d(void 0), m(void 0), t?.();
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(), f = (E) => {
43
- r.current?.contains(E.target) || v();
43
+ const e = new AbortController(), p = (E) => {
44
+ c.current?.contains(E.target) || v();
44
45
  };
45
- return document.addEventListener("mousedown", f, {
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, r]), {
59
+ }, [v, c]), {
59
60
  id: s,
60
- appliedLabel: C,
61
- isOpen: L,
62
- selectedTime: i,
61
+ appliedLabel: T,
62
+ isOpen: C,
63
+ selectedTime: d,
63
64
  selectedPresetLabel: u,
64
- wrapperRef: r,
65
- handleApply: w,
66
- handleOpen: O,
67
- handleSelectPreset: P,
68
- handleSelectCustom: S,
69
- handleReset: F
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
- q as useTimeFilterDropdown
74
+ B as useTimeFilterDropdown
74
75
  };
@@ -0,0 +1,4 @@
1
+ export type FilterContextType = {
2
+ closeOnApply: boolean;
3
+ };
4
+ export declare const FilterContext: import('react').Context<FilterContextType>;
@@ -0,0 +1,7 @@
1
+ import { createContext as t } from "react";
2
+ const o = t({
3
+ closeOnApply: !0
4
+ });
5
+ export {
6
+ o as FilterContext
7
+ };
@@ -0,0 +1,2 @@
1
+ import { FilterContextType } from './filter.context';
2
+ export declare const useFilterContext: () => FilterContextType;
@@ -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
+ };
@@ -0,0 +1,5 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { FilterContextType } from './filter.context';
3
+ type Props = PropsWithChildren<FilterContextType>;
4
+ export declare const FilterProvider: FC<Props>;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { FilterContext as e } from "./filter.context.js";
3
+ const l = ({ children: r, closeOnApply: o }) => /* @__PURE__ */ t(e.Provider, { value: { closeOnApply: o }, children: r });
4
+ export {
5
+ l as FilterProvider
6
+ };
@@ -0,0 +1,3 @@
1
+ export * from './filter.context';
2
+ export * from './filter.hook';
3
+ export * from './filter.provider';
@@ -0,0 +1,8 @@
1
+ import { FilterContext as t } from "./filter.context.js";
2
+ import { useFilterContext as x } from "./filter.hook.js";
3
+ import { FilterProvider as f } from "./filter.provider.js";
4
+ export {
5
+ t as FilterContext,
6
+ f as FilterProvider,
7
+ x as useFilterContext
8
+ };
@@ -1,18 +1,18 @@
1
- import { jsxs as R, jsx as s } from "react/jsx-runtime";
2
- import { C as P, a as _, i as z, p as j, L as x, b as D, P as E, c as F, d as H } from "../../index-qDQP8rW4.js";
3
- import { useMemo as y } from "react";
4
- import { Typography as N } from "../Typography/Typography.js";
5
- import { resolveColor as d, cn as O } from "../../utils/index.js";
6
- P.register(
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 l = [
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
- ], A = ({
27
- title: a,
28
- titleProps: h,
29
- labels: p,
30
- datasets: n,
31
- yAxisFormatter: t,
26
+ ], J = ({
27
+ title: n,
28
+ titleProps: C,
29
+ labels: b,
30
+ datasets: t,
31
+ yAxisFormatter: i,
32
32
  showLegend: u,
33
- height: C = 300,
34
- smooth: b = !0,
35
- axisColor: i = "#9F9FA9",
33
+ height: k = 300,
34
+ smooth: m = !0,
35
+ axisColor: c = "#9F9FA9",
36
36
  gridColor: e = "#45556C",
37
37
  showGrid: g = !0,
38
- lineWidth: m = 2,
39
- showAxisBorder: c = !1,
40
- className: k
38
+ lineWidth: f = 2,
39
+ showAxisBorder: s = !1,
40
+ tooltipTextColor: d = r("--color-metal-100"),
41
+ className: L
41
42
  }) => {
42
- const f = u !== void 0 ? u : n.length > 1, L = y(
43
+ const y = u !== void 0 ? u : t.length > 1, S = h(
43
44
  () => ({
44
- labels: p,
45
- datasets: n.map((o, r) => ({
45
+ labels: b,
46
+ datasets: t.map((o, l) => ({
46
47
  label: o.label,
47
48
  data: o.data,
48
- borderColor: o.color ?? d(l[r % l.length]),
49
- backgroundColor: o.color ?? d(l[r % l.length]),
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: m,
52
+ borderWidth: f,
52
53
  pointRadius: 0,
53
54
  pointHoverRadius: 4,
54
- tension: b ? 0.3 : 0,
55
+ tension: m ? 0.3 : 0,
55
56
  fill: !1
56
57
  }))
57
58
  }),
58
- [p, n, b, m]
59
- ), S = y(
59
+ [b, t, m, f]
60
+ ), R = h(
60
61
  () => ({
61
62
  responsive: !0,
62
63
  maintainAspectRatio: !1,
63
- onHover: (o, r) => {
64
+ onHover: (o, l) => {
64
65
  const v = o.native?.target;
65
- v && (v.style.cursor = r.length > 0 ? "pointer" : "default");
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: f,
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: d("--color-metal-700"),
91
+ backgroundColor: r("--color-metal-700"),
92
+ titleColor: d,
93
+ bodyColor: d,
91
94
  boxPadding: 6,
92
95
  callbacks: {
93
- labelTextColor: (o) => o.dataset.borderColor
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: i,
106
+ color: c,
104
107
  font: {
105
108
  size: 12
106
109
  }
107
110
  },
108
111
  border: {
109
- display: c,
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: i,
121
+ color: c,
119
122
  font: {
120
123
  size: 12
121
124
  },
122
- callback: t ? (o) => t(o) : void 0
125
+ callback: i ? (o) => i(o) : void 0
123
126
  },
124
127
  border: {
125
- display: c,
128
+ display: s,
126
129
  color: e
127
130
  }
128
131
  }
129
132
  }
130
133
  }),
131
134
  [
132
- f,
133
- t,
135
+ y,
134
136
  i,
137
+ c,
135
138
  e,
136
139
  g,
137
- c
140
+ s
138
141
  ]
139
142
  );
140
- return /* @__PURE__ */ R("div", { className: O("w-full", k), children: [
141
- a && /* @__PURE__ */ s(N, { variant: "subtitle2", className: "mb-6", ...h, children: a }),
142
- /* @__PURE__ */ s("div", { style: { height: C }, children: /* @__PURE__ */ s(
143
- H,
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": a ?? "Line chart",
146
- data: L,
147
- options: S
148
+ "aria-label": n ?? "Line chart",
149
+ data: S,
150
+ options: R
148
151
  }
149
152
  ) })
150
153
  ] });
151
154
  };
152
155
  export {
153
- A as LineChart
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-CXRo8f-h.js";
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-CXRo8f-h.js";
5
+ import { W as s } from "../../../../Modal-BTOXCb0Y.js";
6
6
  import "../../../../utils/index.js";
7
7
  import "./Wrapper.variants.js";
8
- import "../../../../proxy-0sbyKj-k.js";
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-CXRo8f-h.js";
4
+ import { W as a } from "../../../Modal-BTOXCb0Y.js";
5
5
  export {
6
6
  e as Body,
7
7
  t as Footer,