@deepnoid/ui 0.1.113 → 0.1.114

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 (81) hide show
  1. package/.turbo/turbo-build.log +158 -158
  2. package/dist/{chunk-3ER5WNGC.mjs → chunk-7VTZLHKM.mjs} +1 -1
  3. package/dist/{chunk-H6G6INED.mjs → chunk-7YCUFFKZ.mjs} +1 -1
  4. package/dist/{chunk-LXDKYJ5H.mjs → chunk-AHBBUMPX.mjs} +4 -4
  5. package/dist/{chunk-GAZ472ZU.mjs → chunk-CF7LIQF6.mjs} +54 -44
  6. package/dist/chunk-KIN2UK2C.mjs +132 -0
  7. package/dist/{chunk-JFWWH3LL.mjs → chunk-MTQGHQ7Z.mjs} +3 -3
  8. package/dist/{chunk-77EXMT5I.mjs → chunk-TMHYS2DC.mjs} +5 -5
  9. package/dist/{chunk-TLOKYBIC.mjs → chunk-UNYKQTEP.mjs} +4 -4
  10. package/dist/{chunk-I7QMOYZO.mjs → chunk-VIXHPIIF.mjs} +2 -2
  11. package/dist/components/backdrop/backdrop.mjs +2 -2
  12. package/dist/components/backdrop/index.mjs +2 -2
  13. package/dist/components/breadcrumb/breadcrumb.mjs +4 -4
  14. package/dist/components/breadcrumb/index.mjs +4 -4
  15. package/dist/components/button/button.mjs +1 -1
  16. package/dist/components/button/icon-button.mjs +1 -1
  17. package/dist/components/button/index.mjs +3 -3
  18. package/dist/components/button/text-button.mjs +2 -2
  19. package/dist/components/charts/barChart.js +54 -44
  20. package/dist/components/charts/barChart.mjs +1 -1
  21. package/dist/components/charts/circularProgress.d.mts +18 -33
  22. package/dist/components/charts/circularProgress.d.ts +18 -33
  23. package/dist/components/charts/circularProgress.js +56 -31
  24. package/dist/components/charts/circularProgress.mjs +1 -1
  25. package/dist/components/charts/index.js +110 -75
  26. package/dist/components/charts/index.mjs +2 -2
  27. package/dist/components/checkbox/checkbox.mjs +2 -2
  28. package/dist/components/checkbox/index.mjs +2 -2
  29. package/dist/components/chip/chip.mjs +1 -1
  30. package/dist/components/chip/index.mjs +1 -1
  31. package/dist/components/drawer/drawer.mjs +2 -2
  32. package/dist/components/drawer/index.mjs +2 -2
  33. package/dist/components/fileUpload/fileUpload.mjs +6 -6
  34. package/dist/components/fileUpload/index.mjs +6 -6
  35. package/dist/components/input/index.mjs +3 -3
  36. package/dist/components/input/input.mjs +3 -3
  37. package/dist/components/list/index.mjs +2 -2
  38. package/dist/components/list/listItem.mjs +2 -2
  39. package/dist/components/modal/index.mjs +5 -5
  40. package/dist/components/modal/modal.mjs +5 -5
  41. package/dist/components/pagination/index.mjs +4 -4
  42. package/dist/components/pagination/pagination.mjs +4 -4
  43. package/dist/components/picker/datePicker.mjs +3 -3
  44. package/dist/components/picker/index.mjs +5 -5
  45. package/dist/components/picker/timePicker.mjs +4 -4
  46. package/dist/components/progress/index.mjs +2 -2
  47. package/dist/components/progress/progress.mjs +2 -2
  48. package/dist/components/radio/index.mjs +2 -2
  49. package/dist/components/radio/radio.mjs +2 -2
  50. package/dist/components/select/index.mjs +3 -3
  51. package/dist/components/select/select.mjs +3 -3
  52. package/dist/components/table/definition-table.mjs +2 -2
  53. package/dist/components/table/index.mjs +9 -9
  54. package/dist/components/table/table-body.mjs +6 -6
  55. package/dist/components/table/table-head.mjs +6 -6
  56. package/dist/components/table/table.mjs +6 -6
  57. package/dist/components/textarea/index.mjs +2 -2
  58. package/dist/components/textarea/textarea.mjs +2 -2
  59. package/dist/components/toast/index.mjs +5 -5
  60. package/dist/components/toast/toast.mjs +3 -3
  61. package/dist/components/toast/use-toast.mjs +4 -4
  62. package/dist/components/tree/index.mjs +2 -2
  63. package/dist/components/tree/tree.mjs +2 -2
  64. package/dist/index.js +110 -75
  65. package/dist/index.mjs +41 -41
  66. package/package.json +1 -1
  67. package/dist/chunk-ZWLRSZTC.mjs +0 -107
  68. package/dist/{chunk-AZ5SQYZE.mjs → chunk-2CLPU5LR.mjs} +3 -3
  69. package/dist/{chunk-K4XJAP6G.mjs → chunk-2VQM2ZBF.mjs} +3 -3
  70. package/dist/{chunk-3HXNAVAN.mjs → chunk-3CRSSRCH.mjs} +3 -3
  71. package/dist/{chunk-KY3W7MBV.mjs → chunk-3M6VYLOU.mjs} +3 -3
  72. package/dist/{chunk-KOELCZTB.mjs → chunk-5AEN7QTL.mjs} +3 -3
  73. package/dist/{chunk-NUELPELQ.mjs → chunk-AF4I7ZQS.mjs} +3 -3
  74. package/dist/{chunk-OMVVASRP.mjs → chunk-BFZ6OTVA.mjs} +3 -3
  75. package/dist/{chunk-3KWZHPVV.mjs → chunk-EDAREIAN.mjs} +3 -3
  76. package/dist/{chunk-AS2CSVBQ.mjs → chunk-FF56E2UQ.mjs} +3 -3
  77. package/dist/{chunk-TMI3QBKD.mjs → chunk-H6JGLPPF.mjs} +3 -3
  78. package/dist/{chunk-PYCIG6N3.mjs → chunk-L3WKBOWY.mjs} +3 -3
  79. package/dist/{chunk-XHSTRFLS.mjs → chunk-Q364C3FI.mjs} +3 -3
  80. package/dist/{chunk-S6ZXK2UP.mjs → chunk-QREBEXKF.mjs} +3 -3
  81. package/dist/{chunk-NO6RDCY7.mjs → chunk-S7Y7XUBL.mjs} +3 -3
@@ -16,8 +16,8 @@ var BarChartComponent = forwardRef((originalProps, ref) => {
16
16
  const slots = useMemo(() => barChartStyle({ ...variantProps }), [variantProps]);
17
17
  const COLOR_MAP = {
18
18
  primary: "#C7E5FA",
19
- secondary: "#DEC1FA",
20
- warning: "#F9C967"
19
+ secondary: "#92DCB2",
20
+ warning: "#DEC1FA"
21
21
  };
22
22
  const [tickPositions, setTickPositions] = useState([]);
23
23
  const tickRef = useRef([]);
@@ -68,54 +68,64 @@ var BarChartComponent = forwardRef((originalProps, ref) => {
68
68
  }, [data]);
69
69
  return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
70
70
  label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
71
- /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(BarChart, { data, margin: { left: -30 }, barSize: 20, barGap: 10, children: [
72
- /* @__PURE__ */ jsx(
73
- CartesianGrid,
74
- {
75
- vertical: true,
76
- horizontal: false,
77
- strokeDasharray: "3 3",
78
- className: "stroke-neutral-light",
79
- verticalPoints: tickPositions
80
- }
81
- ),
82
- /* @__PURE__ */ jsx(
83
- XAxis,
84
- {
85
- dataKey: "name",
86
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
87
- tickLine: false,
88
- tick: CustomTick,
89
- padding: { left: 32, right: 32 }
90
- }
91
- ),
92
- /* @__PURE__ */ jsx(
93
- YAxis,
94
- {
95
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
96
- tickLine: false,
97
- tick: {
98
- fontSize: 12,
99
- fontWeight: 700,
100
- fill: "text-body-foreground",
101
- textAnchor: "middle",
102
- dx: -10
103
- },
104
- ticks: [0, 20, 40, 60, 80, 100],
105
- domain: [-6, 110]
106
- }
107
- ),
108
- /* @__PURE__ */ jsx(Bar, { dataKey: "avg", fill: COLOR_MAP.primary, width: 20, shape: CustomBarShape }),
109
- /* @__PURE__ */ jsx(Bar, { dataKey: "high", fill: COLOR_MAP.secondary, width: 20, shape: CustomBarShape }),
110
- /* @__PURE__ */ jsx(Bar, { dataKey: "low", fill: COLOR_MAP.warning, width: 20, shape: CustomBarShape })
111
- ] }) })
71
+ /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(
72
+ BarChart,
73
+ {
74
+ data,
75
+ margin: { left: -30 },
76
+ barSize: 20,
77
+ barGap: 10,
78
+ className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
79
+ children: [
80
+ /* @__PURE__ */ jsx(
81
+ CartesianGrid,
82
+ {
83
+ vertical: true,
84
+ horizontal: false,
85
+ strokeDasharray: "3 3",
86
+ className: "stroke-neutral-light",
87
+ verticalPoints: tickPositions
88
+ }
89
+ ),
90
+ /* @__PURE__ */ jsx(
91
+ XAxis,
92
+ {
93
+ dataKey: "name",
94
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
95
+ tickLine: false,
96
+ tick: CustomTick,
97
+ padding: { left: 32, right: 32 }
98
+ }
99
+ ),
100
+ /* @__PURE__ */ jsx(
101
+ YAxis,
102
+ {
103
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
104
+ tickLine: false,
105
+ tick: {
106
+ fontSize: 12,
107
+ fontWeight: 700,
108
+ fill: "text-body-foreground",
109
+ textAnchor: "middle",
110
+ dx: -10
111
+ },
112
+ ticks: [0, 20, 40, 60, 80, 100],
113
+ domain: [-6, 110]
114
+ }
115
+ ),
116
+ /* @__PURE__ */ jsx(Bar, { dataKey: "avg", fill: COLOR_MAP.primary, width: 20, shape: CustomBarShape }),
117
+ /* @__PURE__ */ jsx(Bar, { dataKey: "high", fill: COLOR_MAP.secondary, width: 20, shape: CustomBarShape }),
118
+ /* @__PURE__ */ jsx(Bar, { dataKey: "low", fill: COLOR_MAP.warning, width: 20, shape: CustomBarShape })
119
+ ]
120
+ }
121
+ ) })
112
122
  ] });
113
123
  });
114
124
  BarChartComponent.displayName = "barChart";
115
125
  var barChart_default = BarChartComponent;
116
126
  var barChartStyle = tv({
117
127
  slots: {
118
- base: ["flex", "flex-col", "gap-[10px]"],
128
+ base: ["flex", "flex-col", "gap-[10px]", "select-none"],
119
129
  label: ["text-md", "font-bold", "text-body-foreground"]
120
130
  },
121
131
  variants: {},
@@ -0,0 +1,132 @@
1
+ "use client";
2
+ import {
3
+ mapPropsVariants
4
+ } from "./chunk-E3G5QXSH.mjs";
5
+ import {
6
+ tv
7
+ } from "./chunk-CDXBML6O.mjs";
8
+
9
+ // src/components/charts/circularProgress.tsx
10
+ import { RadialBarChart, RadialBar, PolarAngleAxis } from "recharts";
11
+ import { forwardRef, useMemo } from "react";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ var CircularProgress = forwardRef((originalProps, ref) => {
14
+ const [props, variantProps] = mapPropsVariants(originalProps, circularProgressStyle.variantKeys);
15
+ const { label, size = 150, percentage, unit, classNames } = { ...props, ...variantProps };
16
+ const slots = useMemo(() => circularProgressStyle({ ...variantProps }), [variantProps]);
17
+ const data = [
18
+ {
19
+ name: label,
20
+ value: percentage
21
+ }
22
+ ];
23
+ const BAR_SIZE = 24;
24
+ const STROKE_WIDTH = 1;
25
+ const BORDER_MARGIN = 5;
26
+ const CONTAINER_PADDING = BORDER_MARGIN + STROKE_WIDTH + 1;
27
+ const OUTER_RADIUS = (size - CONTAINER_PADDING * 2) / 2;
28
+ const INNER_RADIUS = OUTER_RADIUS - BAR_SIZE;
29
+ const BACKGROUND_RADIUS = (INNER_RADIUS + OUTER_RADIUS) / 2;
30
+ const gradientId = `gradient-${Math.random().toString(36).slice(2)}`;
31
+ const gradientColors = {
32
+ blue: {
33
+ start: "#DEC1FA",
34
+ end: "#3F9CF2"
35
+ },
36
+ green: {
37
+ start: "#C2E59C",
38
+ end: "#64B3F4"
39
+ },
40
+ pink: {
41
+ start: "#DDD6F3",
42
+ end: "#FAACA8"
43
+ }
44
+ };
45
+ const colorValue = originalProps.color;
46
+ const colorKey = colorValue || "blue";
47
+ const currentGradient = gradientColors[colorKey];
48
+ return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
49
+ /* @__PURE__ */ jsxs("div", { className: "relative", style: { width: size, height: size }, children: [
50
+ /* @__PURE__ */ jsxs(
51
+ RadialBarChart,
52
+ {
53
+ width: size,
54
+ height: size,
55
+ innerRadius: INNER_RADIUS - 0.1,
56
+ outerRadius: OUTER_RADIUS,
57
+ barSize: BAR_SIZE,
58
+ data,
59
+ startAngle: 90,
60
+ endAngle: -270,
61
+ children: [
62
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: gradientId, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
63
+ /* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: currentGradient.start }),
64
+ /* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: currentGradient.end })
65
+ ] }) }),
66
+ /* @__PURE__ */ jsx(
67
+ "circle",
68
+ {
69
+ cx: size / 2,
70
+ cy: size / 2,
71
+ r: OUTER_RADIUS + BORDER_MARGIN,
72
+ fill: "none",
73
+ stroke: "#DFE2E7",
74
+ strokeWidth: "1"
75
+ }
76
+ ),
77
+ /* @__PURE__ */ jsx(
78
+ "circle",
79
+ {
80
+ cx: size / 2,
81
+ cy: size / 2,
82
+ r: BACKGROUND_RADIUS,
83
+ fill: "none",
84
+ stroke: "rgba(0, 0, 0, 0.05)",
85
+ strokeWidth: BAR_SIZE
86
+ }
87
+ ),
88
+ /* @__PURE__ */ jsx(PolarAngleAxis, { type: "number", domain: [0, 100], angleAxisId: 0, tick: false }),
89
+ /* @__PURE__ */ jsx(RadialBar, { dataKey: "value", cornerRadius: 12, animationDuration: 1e3, fill: `url(#${gradientId})` })
90
+ ]
91
+ }
92
+ ),
93
+ /* @__PURE__ */ jsxs("div", { className: "absolute inset-0 flex items-center justify-center", children: [
94
+ /* @__PURE__ */ jsx("span", { className: slots.percentage({ class: classNames == null ? void 0 : classNames.percentage }), children: percentage }),
95
+ /* @__PURE__ */ jsx("span", { className: slots.unit({ class: classNames == null ? void 0 : classNames.unit }), children: unit })
96
+ ] })
97
+ ] }),
98
+ label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
99
+ ] });
100
+ });
101
+ CircularProgress.displayName = "CircularProgress";
102
+ var circularProgress_default = CircularProgress;
103
+ var circularProgressStyle = tv({
104
+ slots: {
105
+ base: ["flex", "flex-col", "items-center", "gap-[20px]"],
106
+ background: ["fill-body-background", "border-neutral-light"],
107
+ progress: ["transition-all", "duration-1000 ease-out"],
108
+ percentage: ["text-xl", "font-bold", "text-body-foreground"],
109
+ unit: ["text-md", "font-bold", "text-body-foreground"],
110
+ label: ["text-md", "font-bold", "text-left", "text-body-foreground"]
111
+ },
112
+ variants: {
113
+ color: {
114
+ blue: {
115
+ progress: ["fill-blue-main"]
116
+ },
117
+ green: {
118
+ progress: ["fill-green-main"]
119
+ },
120
+ pink: {
121
+ progress: ["fill-pink-main"]
122
+ }
123
+ }
124
+ },
125
+ defaultVariants: {
126
+ color: "blue"
127
+ }
128
+ });
129
+
130
+ export {
131
+ circularProgress_default
132
+ };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- toast_default
4
- } from "./chunk-3KWZHPVV.mjs";
5
2
  import {
6
3
  getToastPosition
7
4
  } from "./chunk-ZOTHPHXA.mjs";
5
+ import {
6
+ toast_default
7
+ } from "./chunk-EDAREIAN.mjs";
8
8
 
9
9
  // src/components/toast/use-toast.tsx
10
10
  import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
@@ -7,16 +7,16 @@ import {
7
7
  } from "./chunk-M37VBNB3.mjs";
8
8
  import {
9
9
  pagination_default
10
- } from "./chunk-TLOKYBIC.mjs";
10
+ } from "./chunk-UNYKQTEP.mjs";
11
11
  import {
12
12
  checkbox_default
13
- } from "./chunk-TMI3QBKD.mjs";
14
- import {
15
- clsx
16
- } from "./chunk-27Y6K5NK.mjs";
13
+ } from "./chunk-H6JGLPPF.mjs";
17
14
  import {
18
15
  mapPropsVariants
19
16
  } from "./chunk-E3G5QXSH.mjs";
17
+ import {
18
+ clsx
19
+ } from "./chunk-27Y6K5NK.mjs";
20
20
 
21
21
  // src/components/table/table.tsx
22
22
  import {
@@ -4,19 +4,19 @@ import {
4
4
  } from "./chunk-F3HENRVM.mjs";
5
5
  import {
6
6
  input_default
7
- } from "./chunk-PYCIG6N3.mjs";
7
+ } from "./chunk-L3WKBOWY.mjs";
8
8
  import {
9
9
  Icon_default
10
10
  } from "./chunk-FU4CDBVG.mjs";
11
- import {
12
- clsx
13
- } from "./chunk-27Y6K5NK.mjs";
14
11
  import {
15
12
  mapPropsVariants
16
13
  } from "./chunk-E3G5QXSH.mjs";
17
14
  import {
18
15
  tv
19
16
  } from "./chunk-CDXBML6O.mjs";
17
+ import {
18
+ clsx
19
+ } from "./chunk-27Y6K5NK.mjs";
20
20
 
21
21
  // src/components/pagination/pagination.tsx
22
22
  import { forwardRef, useMemo, useState } from "react";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  progress_default
4
- } from "./chunk-AZ5SQYZE.mjs";
4
+ } from "./chunk-2CLPU5LR.mjs";
5
5
  import {
6
6
  input_default
7
- } from "./chunk-PYCIG6N3.mjs";
7
+ } from "./chunk-L3WKBOWY.mjs";
8
8
  import {
9
9
  button_default
10
10
  } from "./chunk-4NVZMJGS.mjs";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  backdrop_default
4
- } from "../../chunk-NUELPELQ.mjs";
5
- import "../../chunk-27Y6K5NK.mjs";
4
+ } from "../../chunk-AF4I7ZQS.mjs";
6
5
  import "../../chunk-CDXBML6O.mjs";
6
+ import "../../chunk-27Y6K5NK.mjs";
7
7
  import "../../chunk-AC6TWLRT.mjs";
8
8
  export {
9
9
  backdrop_default as default
@@ -2,9 +2,9 @@
2
2
  import "../../chunk-SE5TU755.mjs";
3
3
  import {
4
4
  backdrop_default
5
- } from "../../chunk-NUELPELQ.mjs";
6
- import "../../chunk-27Y6K5NK.mjs";
5
+ } from "../../chunk-AF4I7ZQS.mjs";
7
6
  import "../../chunk-CDXBML6O.mjs";
7
+ import "../../chunk-27Y6K5NK.mjs";
8
8
  import "../../chunk-AC6TWLRT.mjs";
9
9
  export {
10
10
  backdrop_default as Backdrop
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  breadcrumb_default
4
- } from "../../chunk-H6G6INED.mjs";
4
+ } from "../../chunk-7YCUFFKZ.mjs";
5
5
  import "../../chunk-MY5U63QO.mjs";
6
- import "../../chunk-XHSTRFLS.mjs";
6
+ import "../../chunk-Q364C3FI.mjs";
7
7
  import "../../chunk-ITWKPTSD.mjs";
8
8
  import "../../chunk-4NVZMJGS.mjs";
9
9
  import "../../chunk-2PZRTIRD.mjs";
@@ -12,10 +12,10 @@ import "../../chunk-LXHUO6VM.mjs";
12
12
  import "../../chunk-6PNKRBUT.mjs";
13
13
  import "../../chunk-ZYIIXWVY.mjs";
14
14
  import "../../chunk-FU4CDBVG.mjs";
15
- import "../../chunk-DDJ2EU3P.mjs";
16
- import "../../chunk-27Y6K5NK.mjs";
17
15
  import "../../chunk-E3G5QXSH.mjs";
16
+ import "../../chunk-DDJ2EU3P.mjs";
18
17
  import "../../chunk-CDXBML6O.mjs";
18
+ import "../../chunk-27Y6K5NK.mjs";
19
19
  import "../../chunk-AC6TWLRT.mjs";
20
20
  export {
21
21
  breadcrumb_default as default
@@ -2,9 +2,9 @@
2
2
  import "../../chunk-KYIODWXL.mjs";
3
3
  import {
4
4
  breadcrumb_default
5
- } from "../../chunk-H6G6INED.mjs";
5
+ } from "../../chunk-7YCUFFKZ.mjs";
6
6
  import "../../chunk-MY5U63QO.mjs";
7
- import "../../chunk-XHSTRFLS.mjs";
7
+ import "../../chunk-Q364C3FI.mjs";
8
8
  import "../../chunk-ITWKPTSD.mjs";
9
9
  import "../../chunk-4NVZMJGS.mjs";
10
10
  import "../../chunk-2PZRTIRD.mjs";
@@ -13,10 +13,10 @@ import "../../chunk-LXHUO6VM.mjs";
13
13
  import "../../chunk-6PNKRBUT.mjs";
14
14
  import "../../chunk-ZYIIXWVY.mjs";
15
15
  import "../../chunk-FU4CDBVG.mjs";
16
- import "../../chunk-DDJ2EU3P.mjs";
17
- import "../../chunk-27Y6K5NK.mjs";
18
16
  import "../../chunk-E3G5QXSH.mjs";
17
+ import "../../chunk-DDJ2EU3P.mjs";
19
18
  import "../../chunk-CDXBML6O.mjs";
19
+ import "../../chunk-27Y6K5NK.mjs";
20
20
  import "../../chunk-AC6TWLRT.mjs";
21
21
  export {
22
22
  breadcrumb_default as Breadcrumb
@@ -7,8 +7,8 @@ import "../../chunk-LXHUO6VM.mjs";
7
7
  import "../../chunk-6PNKRBUT.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
9
  import "../../chunk-FU4CDBVG.mjs";
10
- import "../../chunk-DDJ2EU3P.mjs";
11
10
  import "../../chunk-E3G5QXSH.mjs";
11
+ import "../../chunk-DDJ2EU3P.mjs";
12
12
  import "../../chunk-CDXBML6O.mjs";
13
13
  import "../../chunk-AC6TWLRT.mjs";
14
14
  export {
@@ -7,8 +7,8 @@ import "../../chunk-LXHUO6VM.mjs";
7
7
  import "../../chunk-6PNKRBUT.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
9
  import "../../chunk-FU4CDBVG.mjs";
10
- import "../../chunk-DDJ2EU3P.mjs";
11
10
  import "../../chunk-E3G5QXSH.mjs";
11
+ import "../../chunk-DDJ2EU3P.mjs";
12
12
  import "../../chunk-CDXBML6O.mjs";
13
13
  import "../../chunk-AC6TWLRT.mjs";
14
14
  export {
@@ -2,7 +2,7 @@
2
2
  import "../../chunk-MY5U63QO.mjs";
3
3
  import {
4
4
  text_button_default
5
- } from "../../chunk-XHSTRFLS.mjs";
5
+ } from "../../chunk-Q364C3FI.mjs";
6
6
  import {
7
7
  button_group_default
8
8
  } from "../../chunk-ITWKPTSD.mjs";
@@ -17,10 +17,10 @@ import "../../chunk-LXHUO6VM.mjs";
17
17
  import "../../chunk-6PNKRBUT.mjs";
18
18
  import "../../chunk-ZYIIXWVY.mjs";
19
19
  import "../../chunk-FU4CDBVG.mjs";
20
- import "../../chunk-DDJ2EU3P.mjs";
21
- import "../../chunk-27Y6K5NK.mjs";
22
20
  import "../../chunk-E3G5QXSH.mjs";
21
+ import "../../chunk-DDJ2EU3P.mjs";
23
22
  import "../../chunk-CDXBML6O.mjs";
23
+ import "../../chunk-27Y6K5NK.mjs";
24
24
  import "../../chunk-AC6TWLRT.mjs";
25
25
  export {
26
26
  button_default as Button,
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  text_button_default
4
- } from "../../chunk-XHSTRFLS.mjs";
5
- import "../../chunk-27Y6K5NK.mjs";
4
+ } from "../../chunk-Q364C3FI.mjs";
6
5
  import "../../chunk-E3G5QXSH.mjs";
7
6
  import "../../chunk-CDXBML6O.mjs";
7
+ import "../../chunk-27Y6K5NK.mjs";
8
8
  import "../../chunk-AC6TWLRT.mjs";
9
9
  export {
10
10
  text_button_default as default
@@ -378,8 +378,8 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
378
378
  const slots = (0, import_react.useMemo)(() => barChartStyle({ ...variantProps }), [variantProps]);
379
379
  const COLOR_MAP = {
380
380
  primary: "#C7E5FA",
381
- secondary: "#DEC1FA",
382
- warning: "#F9C967"
381
+ secondary: "#92DCB2",
382
+ warning: "#DEC1FA"
383
383
  };
384
384
  const [tickPositions, setTickPositions] = (0, import_react.useState)([]);
385
385
  const tickRef = (0, import_react.useRef)([]);
@@ -430,54 +430,64 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
430
430
  }, [data]);
431
431
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
432
432
  label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
433
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_recharts.BarChart, { data, margin: { left: -30 }, barSize: 20, barGap: 10, children: [
434
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
435
- import_recharts.CartesianGrid,
436
- {
437
- vertical: true,
438
- horizontal: false,
439
- strokeDasharray: "3 3",
440
- className: "stroke-neutral-light",
441
- verticalPoints: tickPositions
442
- }
443
- ),
444
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
445
- import_recharts.XAxis,
446
- {
447
- dataKey: "name",
448
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
449
- tickLine: false,
450
- tick: CustomTick,
451
- padding: { left: 32, right: 32 }
452
- }
453
- ),
454
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
455
- import_recharts.YAxis,
456
- {
457
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
458
- tickLine: false,
459
- tick: {
460
- fontSize: 12,
461
- fontWeight: 700,
462
- fill: "text-body-foreground",
463
- textAnchor: "middle",
464
- dx: -10
465
- },
466
- ticks: [0, 20, 40, 60, 80, 100],
467
- domain: [-6, 110]
468
- }
469
- ),
470
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.Bar, { dataKey: "avg", fill: COLOR_MAP.primary, width: 20, shape: CustomBarShape }),
471
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.Bar, { dataKey: "high", fill: COLOR_MAP.secondary, width: 20, shape: CustomBarShape }),
472
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.Bar, { dataKey: "low", fill: COLOR_MAP.warning, width: 20, shape: CustomBarShape })
473
- ] }) })
433
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
434
+ import_recharts.BarChart,
435
+ {
436
+ data,
437
+ margin: { left: -30 },
438
+ barSize: 20,
439
+ barGap: 10,
440
+ className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
441
+ children: [
442
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
443
+ import_recharts.CartesianGrid,
444
+ {
445
+ vertical: true,
446
+ horizontal: false,
447
+ strokeDasharray: "3 3",
448
+ className: "stroke-neutral-light",
449
+ verticalPoints: tickPositions
450
+ }
451
+ ),
452
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
453
+ import_recharts.XAxis,
454
+ {
455
+ dataKey: "name",
456
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
457
+ tickLine: false,
458
+ tick: CustomTick,
459
+ padding: { left: 32, right: 32 }
460
+ }
461
+ ),
462
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
463
+ import_recharts.YAxis,
464
+ {
465
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
466
+ tickLine: false,
467
+ tick: {
468
+ fontSize: 12,
469
+ fontWeight: 700,
470
+ fill: "text-body-foreground",
471
+ textAnchor: "middle",
472
+ dx: -10
473
+ },
474
+ ticks: [0, 20, 40, 60, 80, 100],
475
+ domain: [-6, 110]
476
+ }
477
+ ),
478
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.Bar, { dataKey: "avg", fill: COLOR_MAP.primary, width: 20, shape: CustomBarShape }),
479
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.Bar, { dataKey: "high", fill: COLOR_MAP.secondary, width: 20, shape: CustomBarShape }),
480
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.Bar, { dataKey: "low", fill: COLOR_MAP.warning, width: 20, shape: CustomBarShape })
481
+ ]
482
+ }
483
+ ) })
474
484
  ] });
475
485
  });
476
486
  BarChartComponent.displayName = "barChart";
477
487
  var barChart_default = BarChartComponent;
478
488
  var barChartStyle = tv({
479
489
  slots: {
480
- base: ["flex", "flex-col", "gap-[10px]"],
490
+ base: ["flex", "flex-col", "gap-[10px]", "select-none"],
481
491
  label: ["text-md", "font-bold", "text-body-foreground"]
482
492
  },
483
493
  variants: {},
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  barChart_default
4
- } from "../../chunk-GAZ472ZU.mjs";
4
+ } from "../../chunk-CF7LIQF6.mjs";
5
5
  import "../../chunk-E3G5QXSH.mjs";
6
6
  import "../../chunk-CDXBML6O.mjs";
7
7
  import "../../chunk-AC6TWLRT.mjs";