@deepnoid/ui 0.1.43 → 0.1.46

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 (85) hide show
  1. package/.turbo/turbo-build.log +153 -153
  2. package/dist/{chunk-O6YBE7V3.mjs → chunk-25QOEKXS.mjs} +3 -3
  3. package/dist/chunk-7Q64PDCF.mjs +142 -0
  4. package/dist/{chunk-KJMJIFPS.mjs → chunk-BPEMHZH3.mjs} +1 -1
  5. package/dist/{chunk-BB7MFKNQ.mjs → chunk-IBI3OVQI.mjs} +1 -1
  6. package/dist/{chunk-LR3SWRB4.mjs → chunk-IC25OKBJ.mjs} +5 -5
  7. package/dist/{chunk-LTXJKWHO.mjs → chunk-IXHFLCAG.mjs} +4 -4
  8. package/dist/{chunk-NR7MGDUE.mjs → chunk-KYJTZPXY.mjs} +2 -2
  9. package/dist/{chunk-ZSG4NGLK.mjs → chunk-MCNCHQ33.mjs} +4 -4
  10. package/dist/{chunk-D7XSWNZ7.mjs → chunk-NHVIKP4H.mjs} +5 -5
  11. package/dist/{chunk-SBL6IHEW.mjs → chunk-P7YYNA6L.mjs} +1 -1
  12. package/dist/{chunk-L2VA3ACH.mjs → chunk-PXIVYA5G.mjs} +1 -1
  13. package/dist/{chunk-42LXAL5Y.mjs → chunk-RIW4TT6V.mjs} +3 -3
  14. package/dist/components/backdrop/backdrop.mjs +2 -2
  15. package/dist/components/backdrop/index.mjs +2 -2
  16. package/dist/components/breadcrumb/breadcrumb.mjs +6 -6
  17. package/dist/components/breadcrumb/index.mjs +6 -6
  18. package/dist/components/button/button.mjs +2 -2
  19. package/dist/components/button/icon-button.mjs +2 -2
  20. package/dist/components/button/index.mjs +5 -5
  21. package/dist/components/button/text-button.mjs +2 -2
  22. package/dist/components/charts/areaCharts.d.mts +0 -6
  23. package/dist/components/charts/areaCharts.d.ts +0 -6
  24. package/dist/components/charts/areaCharts.js +93 -57
  25. package/dist/components/charts/areaCharts.mjs +2 -2
  26. package/dist/components/charts/circularProgress.js +1 -1
  27. package/dist/components/charts/circularProgress.mjs +2 -2
  28. package/dist/components/charts/index.js +94 -58
  29. package/dist/components/charts/index.mjs +3 -3
  30. package/dist/components/checkbox/checkbox.mjs +2 -2
  31. package/dist/components/checkbox/index.mjs +2 -2
  32. package/dist/components/chip/chip.mjs +2 -2
  33. package/dist/components/chip/index.mjs +2 -2
  34. package/dist/components/dateTimePicker/calendar.mjs +2 -2
  35. package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
  36. package/dist/components/dateTimePicker/index.mjs +7 -7
  37. package/dist/components/dateTimePicker/timePicker.mjs +5 -5
  38. package/dist/components/fileUpload/fileUpload.mjs +7 -7
  39. package/dist/components/fileUpload/index.mjs +7 -7
  40. package/dist/components/input/index.mjs +3 -3
  41. package/dist/components/input/input.mjs +3 -3
  42. package/dist/components/list/index.mjs +4 -4
  43. package/dist/components/list/list.mjs +2 -2
  44. package/dist/components/list/listItem.mjs +3 -3
  45. package/dist/components/modal/index.mjs +7 -7
  46. package/dist/components/modal/modal.mjs +7 -7
  47. package/dist/components/pagination/index.mjs +4 -4
  48. package/dist/components/pagination/pagination.mjs +4 -4
  49. package/dist/components/radio/index.mjs +2 -2
  50. package/dist/components/radio/radio.mjs +2 -2
  51. package/dist/components/select/index.mjs +3 -3
  52. package/dist/components/select/select.mjs +3 -3
  53. package/dist/components/table/index.mjs +11 -11
  54. package/dist/components/table/table-body.mjs +3 -3
  55. package/dist/components/table/table-head.mjs +3 -3
  56. package/dist/components/table/table.mjs +8 -8
  57. package/dist/components/tabs/index.mjs +2 -2
  58. package/dist/components/tabs/tabs.mjs +2 -2
  59. package/dist/components/toast/index.mjs +4 -4
  60. package/dist/components/toast/toast.mjs +3 -3
  61. package/dist/components/toast/use-toast.mjs +4 -4
  62. package/dist/components/tooltip/index.mjs +2 -2
  63. package/dist/components/tooltip/tooltip.mjs +2 -2
  64. package/dist/components/tree/index.mjs +2 -2
  65. package/dist/components/tree/tree.mjs +2 -2
  66. package/dist/index.js +94 -58
  67. package/dist/index.mjs +39 -39
  68. package/package.json +1 -1
  69. package/dist/chunk-IET623ED.mjs +0 -106
  70. package/dist/{chunk-SSMMWMQC.mjs → chunk-2YMAKIZ6.mjs} +3 -3
  71. package/dist/{chunk-6K3E5BVO.mjs → chunk-7TAGGLNY.mjs} +3 -3
  72. package/dist/{chunk-X6D7C7QZ.mjs → chunk-A7RU3FU5.mjs} +3 -3
  73. package/dist/{chunk-YLRYHUTW.mjs → chunk-D6QI3DJG.mjs} +3 -3
  74. package/dist/{chunk-R62HK726.mjs → chunk-GH6CPGFN.mjs} +3 -3
  75. package/dist/{chunk-UFVQPPPW.mjs → chunk-HIVPDIEP.mjs} +3 -3
  76. package/dist/{chunk-P5QCU457.mjs → chunk-LL6F3WDX.mjs} +3 -3
  77. package/dist/{chunk-7W2ZI2DD.mjs → chunk-MEY4IL7D.mjs} +3 -3
  78. package/dist/{chunk-WPIFIRCJ.mjs → chunk-NFQMXW4Z.mjs} +3 -3
  79. package/dist/{chunk-HVKEPI7R.mjs → chunk-NLYGDZK3.mjs} +3 -3
  80. package/dist/{chunk-33LANVZV.mjs → chunk-QIRL6HY6.mjs} +3 -3
  81. package/dist/{chunk-QWIURBUH.mjs → chunk-RT3S3VVJ.mjs} +6 -6
  82. package/dist/{chunk-7J3KVOTS.mjs → chunk-UB4YBFOT.mjs} +3 -3
  83. package/dist/{chunk-2PKM7SLZ.mjs → chunk-WFMFC7R6.mjs} +3 -3
  84. package/dist/{chunk-Y6XQTWB5.mjs → chunk-WLNLVX7Q.mjs} +3 -3
  85. package/dist/{chunk-IL5ENWCR.mjs → chunk-Z2537DF6.mjs} +3 -3
package/dist/index.js CHANGED
@@ -10535,7 +10535,7 @@ var CircularProgress = (0, import_react34.forwardRef)((originalProps, ref) => {
10535
10535
  const OUTER_RADIUS = 88;
10536
10536
  const INNER_RADIUS = OUTER_RADIUS - BAR_SIZE;
10537
10537
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
10538
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: `relative h-[${size}px] w-[${size}px]`, children: [
10538
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "relative", style: { width: size, height: size }, children: [
10539
10539
  /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
10540
10540
  import_recharts.RadialBarChart,
10541
10541
  {
@@ -10618,11 +10618,46 @@ var import_react35 = require("react");
10618
10618
  var import_recharts2 = require("recharts");
10619
10619
  var import_jsx_runtime38 = require("react/jsx-runtime");
10620
10620
  var AreaChartComponent = (0, import_react35.forwardRef)((originalProps, ref) => {
10621
- var _a, _b;
10622
10621
  const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
10623
10622
  const { areaData, color, classNames } = { ...props, ...variantProps };
10624
10623
  const slots = (0, import_react35.useMemo)(() => areaChartStyle({ ...variantProps }), [variantProps]);
10625
- const colorHex = (_b = (_a = areaChartStyle.variants.color) == null ? void 0 : _a[color || "primary"]) == null ? void 0 : _b._colorValue;
10624
+ const COLOR_MAP = {
10625
+ primary: "#3F9CF2",
10626
+ danger: "#FF4684"
10627
+ };
10628
+ const colorHex = (0, import_react35.useMemo)(() => COLOR_MAP[color || "primary"], [color]);
10629
+ const [tickPositions, setTickPositions] = (0, import_react35.useState)([]);
10630
+ const tickRef = (0, import_react35.useRef)([]);
10631
+ const CustomTick = ({ x, y, payload }) => {
10632
+ if (x !== void 0) {
10633
+ tickRef.current.push(x);
10634
+ }
10635
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10636
+ "text",
10637
+ {
10638
+ x,
10639
+ y: y + 14,
10640
+ textAnchor: "middle",
10641
+ fontSize: 12,
10642
+ fontWeight: 700,
10643
+ fill: "currentColor",
10644
+ className: "text-body-foreground",
10645
+ children: payload.value
10646
+ }
10647
+ );
10648
+ };
10649
+ (0, import_react35.useLayoutEffect)(() => {
10650
+ const raf = requestAnimationFrame(() => {
10651
+ const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
10652
+ const mids = [];
10653
+ for (let i = 0; i < unique.length - 1; i++) {
10654
+ mids.push((unique[i] + unique[i + 1]) / 2);
10655
+ }
10656
+ setTickPositions(mids);
10657
+ tickRef.current = [];
10658
+ });
10659
+ return () => cancelAnimationFrame(raf);
10660
+ }, [areaData]);
10626
10661
  const CustomDotWithShadow = (props2) => {
10627
10662
  const { cx, cy, fill, stroke } = props2;
10628
10663
  if (cx === void 0 || cy === void 0) return null;
@@ -10631,57 +10666,60 @@ var AreaChartComponent = (0, import_react35.forwardRef)((originalProps, ref) =>
10631
10666
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
10632
10667
  ] });
10633
10668
  };
10634
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
10635
- import_recharts2.AreaChart,
10636
- {
10637
- data: areaData,
10638
- margin: {
10639
- top: 20,
10640
- right: 30,
10641
- left: 20,
10642
- bottom: 20
10643
- },
10644
- children: [
10645
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("linearGradient", { id: "colorGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
10646
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
10647
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
10648
- ] }) }),
10649
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.CartesianGrid, { vertical: true, horizontal: false, strokeDasharray: "3 3", className: "stroke-neutral-light" }),
10650
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10651
- import_recharts2.XAxis,
10652
- {
10653
- dataKey: "name",
10654
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
10655
- tickLine: false,
10656
- tick: { fontSize: 12, fontWeight: 700, fill: "text-body-foreground" },
10657
- padding: { left: 35.5, right: 35.5 }
10658
- }
10659
- ),
10660
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10661
- import_recharts2.YAxis,
10662
- {
10663
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
10664
- tickLine: false,
10665
- tick: { fontSize: 12, fontWeight: 700, fill: "text-body-foreground" },
10666
- ticks: [0, 20, 40, 60, 80, 100],
10667
- domain: [0, 100]
10668
- }
10669
- ),
10670
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10671
- import_recharts2.Area,
10672
- {
10673
- type: "monotone",
10674
- dataKey: "value",
10675
- stroke: colorHex,
10676
- strokeWidth: 2,
10677
- fill: "url(#colorGradient)",
10678
- dot: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
10679
- activeDot: { r: 7, fill: colorHex }
10680
- }
10681
- )
10682
- ]
10683
- }
10684
- ) }) });
10669
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_recharts2.AreaChart, { data: areaData, children: [
10670
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("linearGradient", { id: "colorGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
10671
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
10672
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
10673
+ ] }) }),
10674
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10675
+ import_recharts2.CartesianGrid,
10676
+ {
10677
+ vertical: true,
10678
+ horizontal: false,
10679
+ strokeDasharray: "3 3",
10680
+ className: "stroke-neutral-light",
10681
+ verticalPoints: tickPositions
10682
+ }
10683
+ ),
10684
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10685
+ import_recharts2.XAxis,
10686
+ {
10687
+ dataKey: "name",
10688
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
10689
+ tickLine: false,
10690
+ tick: CustomTick,
10691
+ padding: { left: 35.5, right: 35.5 }
10692
+ }
10693
+ ),
10694
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10695
+ import_recharts2.YAxis,
10696
+ {
10697
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
10698
+ tickLine: false,
10699
+ tick: {
10700
+ fontSize: 12,
10701
+ fontWeight: 700,
10702
+ fill: "text-body-foreground",
10703
+ textAnchor: "middle",
10704
+ dx: -10
10705
+ },
10706
+ ticks: [0, 20, 40, 60, 80, 100],
10707
+ domain: [-10, 110]
10708
+ }
10709
+ ),
10710
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10711
+ import_recharts2.Area,
10712
+ {
10713
+ type: "monotone",
10714
+ dataKey: "value",
10715
+ stroke: colorHex,
10716
+ strokeWidth: 2,
10717
+ fill: "url(#colorGradient)",
10718
+ dot: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
10719
+ activeDot: { r: 7, fill: colorHex }
10720
+ }
10721
+ )
10722
+ ] }) }) });
10685
10723
  });
10686
10724
  AreaChartComponent.displayName = "AreaChart";
10687
10725
  var areaCharts_default = AreaChartComponent;
@@ -10694,12 +10732,10 @@ var areaChartStyle = tv({
10694
10732
  variants: {
10695
10733
  color: {
10696
10734
  primary: {
10697
- color: ["text-primary-main"],
10698
- _colorValue: "#3F9CF2"
10735
+ color: ["text-primary-main"]
10699
10736
  },
10700
10737
  danger: {
10701
- color: ["text-danger-main"],
10702
- _colorValue: "#FF4684"
10738
+ color: ["text-danger-main"]
10703
10739
  }
10704
10740
  }
10705
10741
  },
package/dist/index.mjs CHANGED
@@ -2,31 +2,32 @@
2
2
  import "./chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
- } from "./chunk-WPIFIRCJ.mjs";
5
+ } from "./chunk-NFQMXW4Z.mjs";
6
6
  import "./chunk-LUWGOKLG.mjs";
7
7
  import {
8
8
  ToastProvider,
9
9
  useToast
10
- } from "./chunk-BB7MFKNQ.mjs";
10
+ } from "./chunk-IBI3OVQI.mjs";
11
11
  import "./chunk-ZOTHPHXA.mjs";
12
12
  import {
13
13
  toast_default
14
- } from "./chunk-7W2ZI2DD.mjs";
14
+ } from "./chunk-MEY4IL7D.mjs";
15
15
  import "./chunk-HIE2YRGA.mjs";
16
16
  import {
17
17
  tooltip_default
18
- } from "./chunk-IL5ENWCR.mjs";
18
+ } from "./chunk-Z2537DF6.mjs";
19
19
  import "./chunk-ZMOAFSYE.mjs";
20
20
  import "./chunk-WSIADHVC.mjs";
21
21
  import "./chunk-DX3KXNP6.mjs";
22
- import {
23
- definition_table_default
24
- } from "./chunk-6TIIBU7J.mjs";
25
22
  import {
26
23
  table_default
27
- } from "./chunk-42LXAL5Y.mjs";
28
- import "./chunk-KJMJIFPS.mjs";
29
- import "./chunk-SBL6IHEW.mjs";
24
+ } from "./chunk-RIW4TT6V.mjs";
25
+ import "./chunk-BPEMHZH3.mjs";
26
+ import "./chunk-P7YYNA6L.mjs";
27
+ import "./chunk-3MY6LO7N.mjs";
28
+ import {
29
+ tabs_default
30
+ } from "./chunk-2YMAKIZ6.mjs";
30
31
  import "./chunk-RRAZM5D3.mjs";
31
32
  import {
32
33
  textarea_default
@@ -34,7 +35,7 @@ import {
34
35
  import "./chunk-QCEKPS7U.mjs";
35
36
  import {
36
37
  select_default
37
- } from "./chunk-HVKEPI7R.mjs";
38
+ } from "./chunk-NLYGDZK3.mjs";
38
39
  import "./chunk-MZ76AA76.mjs";
39
40
  import {
40
41
  skeleton_default
@@ -43,14 +44,13 @@ import "./chunk-LVFI2NOH.mjs";
43
44
  import {
44
45
  switch_default
45
46
  } from "./chunk-AJUQBMSV.mjs";
46
- import "./chunk-3MY6LO7N.mjs";
47
47
  import {
48
- tabs_default
49
- } from "./chunk-SSMMWMQC.mjs";
48
+ definition_table_default
49
+ } from "./chunk-6TIIBU7J.mjs";
50
50
  import "./chunk-TPFN22HR.mjs";
51
51
  import {
52
52
  radio_default
53
- } from "./chunk-33LANVZV.mjs";
53
+ } from "./chunk-QIRL6HY6.mjs";
54
54
  import "./chunk-DQRAFUDA.mjs";
55
55
  import {
56
56
  scrollArea_default
@@ -58,68 +58,72 @@ import {
58
58
  import "./chunk-DJOG6Z35.mjs";
59
59
  import {
60
60
  modal_default
61
- } from "./chunk-LR3SWRB4.mjs";
61
+ } from "./chunk-IC25OKBJ.mjs";
62
62
  import "./chunk-7B7LRG5J.mjs";
63
63
  import {
64
64
  pagination_default
65
- } from "./chunk-ZSG4NGLK.mjs";
65
+ } from "./chunk-MCNCHQ33.mjs";
66
66
  import "./chunk-F3HENRVM.mjs";
67
67
  import "./chunk-RLXOHILK.mjs";
68
68
  import {
69
69
  fileUpload_default
70
- } from "./chunk-O6YBE7V3.mjs";
70
+ } from "./chunk-25QOEKXS.mjs";
71
71
  import "./chunk-2GCSFWHD.mjs";
72
72
  import {
73
73
  input_default
74
- } from "./chunk-R62HK726.mjs";
74
+ } from "./chunk-GH6CPGFN.mjs";
75
75
  import "./chunk-QZ3LVYJW.mjs";
76
76
  import {
77
77
  checkbox_default
78
- } from "./chunk-YLRYHUTW.mjs";
78
+ } from "./chunk-D6QI3DJG.mjs";
79
79
  import "./chunk-MGEWSREV.mjs";
80
80
  import {
81
81
  chip_default
82
- } from "./chunk-Y6XQTWB5.mjs";
82
+ } from "./chunk-WLNLVX7Q.mjs";
83
83
  import "./chunk-75HLCORR.mjs";
84
84
  import {
85
85
  dateTimePicker_default
86
- } from "./chunk-D7XSWNZ7.mjs";
86
+ } from "./chunk-NHVIKP4H.mjs";
87
87
  import "./chunk-FWJ2ZKH6.mjs";
88
- import "./chunk-X6D7C7QZ.mjs";
88
+ import "./chunk-A7RU3FU5.mjs";
89
89
  import "./chunk-P732YGHO.mjs";
90
- import "./chunk-NR7MGDUE.mjs";
90
+ import "./chunk-KYJTZPXY.mjs";
91
91
  import "./chunk-7MVEAQ7Z.mjs";
92
92
  import {
93
93
  list_default
94
- } from "./chunk-UFVQPPPW.mjs";
94
+ } from "./chunk-HIVPDIEP.mjs";
95
95
  import {
96
96
  listItem_default
97
- } from "./chunk-QWIURBUH.mjs";
97
+ } from "./chunk-RT3S3VVJ.mjs";
98
98
  import "./chunk-3YMMVZDL.mjs";
99
99
  import {
100
100
  areaCharts_default
101
- } from "./chunk-IET623ED.mjs";
101
+ } from "./chunk-7Q64PDCF.mjs";
102
102
  import {
103
103
  circularProgress_default
104
- } from "./chunk-LTXJKWHO.mjs";
104
+ } from "./chunk-IXHFLCAG.mjs";
105
+ import "./chunk-7DLOYKVC.mjs";
106
+ import {
107
+ avatar_default
108
+ } from "./chunk-SP3JVQY3.mjs";
105
109
  import "./chunk-SE5TU755.mjs";
106
110
  import {
107
111
  backdrop_default
108
- } from "./chunk-P5QCU457.mjs";
112
+ } from "./chunk-LL6F3WDX.mjs";
109
113
  import "./chunk-KYIODWXL.mjs";
110
114
  import {
111
115
  breadcrumb_default
112
- } from "./chunk-L2VA3ACH.mjs";
116
+ } from "./chunk-PXIVYA5G.mjs";
113
117
  import "./chunk-MY5U63QO.mjs";
114
118
  import {
115
119
  button_group_default
116
120
  } from "./chunk-LPZOH3RP.mjs";
117
121
  import {
118
122
  button_default
119
- } from "./chunk-7J3KVOTS.mjs";
123
+ } from "./chunk-UB4YBFOT.mjs";
120
124
  import {
121
125
  icon_button_default
122
- } from "./chunk-6K3E5BVO.mjs";
126
+ } from "./chunk-7TAGGLNY.mjs";
123
127
  import "./chunk-6WSACUIB.mjs";
124
128
  import "./chunk-LXHUO6VM.mjs";
125
129
  import "./chunk-6PNKRBUT.mjs";
@@ -130,18 +134,14 @@ import {
130
134
  } from "./chunk-2TKEWFGH.mjs";
131
135
  import {
132
136
  text_button_default
133
- } from "./chunk-2PKM7SLZ.mjs";
134
- import "./chunk-27Y6K5NK.mjs";
135
- import "./chunk-E3G5QXSH.mjs";
136
- import "./chunk-7DLOYKVC.mjs";
137
- import {
138
- avatar_default
139
- } from "./chunk-SP3JVQY3.mjs";
137
+ } from "./chunk-WFMFC7R6.mjs";
140
138
  import "./chunk-2SDYFOZL.mjs";
141
139
  import {
142
140
  deepnoidUi,
143
141
  tv
144
142
  } from "./chunk-4ZJFD3L3.mjs";
143
+ import "./chunk-27Y6K5NK.mjs";
144
+ import "./chunk-E3G5QXSH.mjs";
145
145
  import "./chunk-AC6TWLRT.mjs";
146
146
  export {
147
147
  areaCharts_default as AreaChart,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.1.43",
3
+ "version": "0.1.46",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -1,106 +0,0 @@
1
- "use client";
2
- import {
3
- mapPropsVariants
4
- } from "./chunk-E3G5QXSH.mjs";
5
- import {
6
- tv
7
- } from "./chunk-4ZJFD3L3.mjs";
8
-
9
- // src/components/charts/areaCharts.tsx
10
- import { forwardRef, useMemo } from "react";
11
- import { AreaChart, Area, XAxis, YAxis, ResponsiveContainer, CartesianGrid } from "recharts";
12
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
- var AreaChartComponent = forwardRef((originalProps, ref) => {
14
- var _a, _b;
15
- const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
16
- const { areaData, color, classNames } = { ...props, ...variantProps };
17
- const slots = useMemo(() => areaChartStyle({ ...variantProps }), [variantProps]);
18
- const colorHex = (_b = (_a = areaChartStyle.variants.color) == null ? void 0 : _a[color || "primary"]) == null ? void 0 : _b._colorValue;
19
- const CustomDotWithShadow = (props2) => {
20
- const { cx, cy, fill, stroke } = props2;
21
- if (cx === void 0 || cy === void 0) return null;
22
- return /* @__PURE__ */ jsxs(Fragment, { children: [
23
- /* @__PURE__ */ jsx("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
24
- /* @__PURE__ */ jsx("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
25
- ] });
26
- };
27
- return /* @__PURE__ */ jsx("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(
28
- AreaChart,
29
- {
30
- data: areaData,
31
- margin: {
32
- top: 20,
33
- right: 30,
34
- left: 20,
35
- bottom: 20
36
- },
37
- children: [
38
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "colorGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
39
- /* @__PURE__ */ jsx("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
40
- /* @__PURE__ */ jsx("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
41
- ] }) }),
42
- /* @__PURE__ */ jsx(CartesianGrid, { vertical: true, horizontal: false, strokeDasharray: "3 3", className: "stroke-neutral-light" }),
43
- /* @__PURE__ */ jsx(
44
- XAxis,
45
- {
46
- dataKey: "name",
47
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
48
- tickLine: false,
49
- tick: { fontSize: 12, fontWeight: 700, fill: "text-body-foreground" },
50
- padding: { left: 35.5, right: 35.5 }
51
- }
52
- ),
53
- /* @__PURE__ */ jsx(
54
- YAxis,
55
- {
56
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
57
- tickLine: false,
58
- tick: { fontSize: 12, fontWeight: 700, fill: "text-body-foreground" },
59
- ticks: [0, 20, 40, 60, 80, 100],
60
- domain: [0, 100]
61
- }
62
- ),
63
- /* @__PURE__ */ jsx(
64
- Area,
65
- {
66
- type: "monotone",
67
- dataKey: "value",
68
- stroke: colorHex,
69
- strokeWidth: 2,
70
- fill: "url(#colorGradient)",
71
- dot: /* @__PURE__ */ jsx(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
72
- activeDot: { r: 7, fill: colorHex }
73
- }
74
- )
75
- ]
76
- }
77
- ) }) });
78
- });
79
- AreaChartComponent.displayName = "AreaChart";
80
- var areaCharts_default = AreaChartComponent;
81
- var areaChartStyle = tv({
82
- slots: {
83
- base: [],
84
- color: [],
85
- axis: ["text-sm", "font-bold", "text-center", "text-body-foreground"]
86
- },
87
- variants: {
88
- color: {
89
- primary: {
90
- color: ["text-primary-main"],
91
- _colorValue: "#3F9CF2"
92
- },
93
- danger: {
94
- color: ["text-danger-main"],
95
- _colorValue: "#FF4684"
96
- }
97
- }
98
- },
99
- defaultVariants: {
100
- color: "primary"
101
- }
102
- });
103
-
104
- export {
105
- areaCharts_default
106
- };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- mapPropsVariants
4
- } from "./chunk-E3G5QXSH.mjs";
5
2
  import {
6
3
  tv
7
4
  } from "./chunk-4ZJFD3L3.mjs";
5
+ import {
6
+ mapPropsVariants
7
+ } from "./chunk-E3G5QXSH.mjs";
8
8
 
9
9
  // src/components/tabs/tabs.tsx
10
10
  import { forwardRef, useCallback, useMemo, useState } from "react";
@@ -8,12 +8,12 @@ import {
8
8
  import {
9
9
  Icon_default
10
10
  } from "./chunk-2TKEWFGH.mjs";
11
- import {
12
- mapPropsVariants
13
- } from "./chunk-E3G5QXSH.mjs";
14
11
  import {
15
12
  tv
16
13
  } from "./chunk-4ZJFD3L3.mjs";
14
+ import {
15
+ mapPropsVariants
16
+ } from "./chunk-E3G5QXSH.mjs";
17
17
 
18
18
  // src/components/button/icon-button.tsx
19
19
  import { forwardRef, useMemo, useCallback } from "react";
@@ -6,12 +6,12 @@ import {
6
6
  import {
7
7
  Icon_default
8
8
  } from "./chunk-2TKEWFGH.mjs";
9
- import {
10
- mapPropsVariants
11
- } from "./chunk-E3G5QXSH.mjs";
12
9
  import {
13
10
  tv
14
11
  } from "./chunk-4ZJFD3L3.mjs";
12
+ import {
13
+ mapPropsVariants
14
+ } from "./chunk-E3G5QXSH.mjs";
15
15
 
16
16
  // src/components/dateTimePicker/calendar.tsx
17
17
  import React, {
@@ -1,13 +1,13 @@
1
1
  "use client";
2
+ import {
3
+ tv
4
+ } from "./chunk-4ZJFD3L3.mjs";
2
5
  import {
3
6
  clsx
4
7
  } from "./chunk-27Y6K5NK.mjs";
5
8
  import {
6
9
  mapPropsVariants
7
10
  } from "./chunk-E3G5QXSH.mjs";
8
- import {
9
- tv
10
- } from "./chunk-4ZJFD3L3.mjs";
11
11
 
12
12
  // src/components/checkbox/checkbox.tsx
13
13
  import { forwardRef, useMemo } from "react";
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  Icon_default
4
4
  } from "./chunk-2TKEWFGH.mjs";
5
+ import {
6
+ tv
7
+ } from "./chunk-4ZJFD3L3.mjs";
5
8
  import {
6
9
  clsx
7
10
  } from "./chunk-27Y6K5NK.mjs";
8
11
  import {
9
12
  mapPropsVariants
10
13
  } from "./chunk-E3G5QXSH.mjs";
11
- import {
12
- tv
13
- } from "./chunk-4ZJFD3L3.mjs";
14
14
 
15
15
  // src/components/input/input.tsx
16
16
  import {
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- mapPropsVariants
4
- } from "./chunk-E3G5QXSH.mjs";
5
2
  import {
6
3
  tv
7
4
  } from "./chunk-4ZJFD3L3.mjs";
5
+ import {
6
+ mapPropsVariants
7
+ } from "./chunk-E3G5QXSH.mjs";
8
8
 
9
9
  // src/components/list/list.tsx
10
10
  import { Children, cloneElement, forwardRef, isValidElement, useMemo } from "react";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- clsx
4
- } from "./chunk-27Y6K5NK.mjs";
5
2
  import {
6
3
  tv
7
4
  } from "./chunk-4ZJFD3L3.mjs";
5
+ import {
6
+ clsx
7
+ } from "./chunk-27Y6K5NK.mjs";
8
8
 
9
9
  // src/components/backdrop/backdrop.tsx
10
10
  import { useEffect, useState } from "react";
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  Icon_default
4
4
  } from "./chunk-2TKEWFGH.mjs";
5
+ import {
6
+ tv
7
+ } from "./chunk-4ZJFD3L3.mjs";
5
8
  import {
6
9
  clsx
7
10
  } from "./chunk-27Y6K5NK.mjs";
8
11
  import {
9
12
  mapPropsVariants
10
13
  } from "./chunk-E3G5QXSH.mjs";
11
- import {
12
- tv
13
- } from "./chunk-4ZJFD3L3.mjs";
14
14
 
15
15
  // src/components/toast/toast.tsx
16
16
  import { forwardRef, useImperativeHandle, useMemo, useRef } from "react";
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  Icon_default
4
4
  } from "./chunk-2TKEWFGH.mjs";
5
- import {
6
- clsx
7
- } from "./chunk-27Y6K5NK.mjs";
8
5
  import {
9
6
  tv
10
7
  } from "./chunk-4ZJFD3L3.mjs";
8
+ import {
9
+ clsx
10
+ } from "./chunk-27Y6K5NK.mjs";
11
11
 
12
12
  // src/components/tree/tree.tsx
13
13
  import { forwardRef, useMemo, useState, useCallback } from "react";
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  Icon_default
4
4
  } from "./chunk-2TKEWFGH.mjs";
5
+ import {
6
+ tv
7
+ } from "./chunk-4ZJFD3L3.mjs";
5
8
  import {
6
9
  clsx
7
10
  } from "./chunk-27Y6K5NK.mjs";
8
11
  import {
9
12
  mapPropsVariants
10
13
  } from "./chunk-E3G5QXSH.mjs";
11
- import {
12
- tv
13
- } from "./chunk-4ZJFD3L3.mjs";
14
14
 
15
15
  // src/components/select/select.tsx
16
16
  import { forwardRef, useMemo, useState, useRef, useEffect } from "react";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
+ import {
3
+ tv
4
+ } from "./chunk-4ZJFD3L3.mjs";
2
5
  import {
3
6
  clsx
4
7
  } from "./chunk-27Y6K5NK.mjs";
5
8
  import {
6
9
  mapPropsVariants
7
10
  } from "./chunk-E3G5QXSH.mjs";
8
- import {
9
- tv
10
- } from "./chunk-4ZJFD3L3.mjs";
11
11
 
12
12
  // src/components/radio/radio.tsx
13
13
  import { forwardRef, useMemo } from "react";