@deepnoid/ui 0.1.41 → 0.1.43

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 (65) hide show
  1. package/.turbo/turbo-build.log +176 -161
  2. package/dist/chunk-3YMMVZDL.mjs +1 -0
  3. package/dist/{chunk-4LOREVB7.mjs → chunk-42LXAL5Y.mjs} +3 -4
  4. package/dist/{chunk-ECMBAKSJ.mjs → chunk-D7XSWNZ7.mjs} +4 -4
  5. package/dist/chunk-IET623ED.mjs +106 -0
  6. package/dist/{chunk-MFRYYZPY.mjs → chunk-KJMJIFPS.mjs} +22 -19
  7. package/dist/chunk-LTXJKWHO.mjs +107 -0
  8. package/dist/{chunk-QJJKJYNR.mjs → chunk-NR7MGDUE.mjs} +3 -3
  9. package/dist/components/breadcrumb/breadcrumb.mjs +3 -3
  10. package/dist/components/breadcrumb/index.mjs +3 -3
  11. package/dist/components/button/button.mjs +1 -1
  12. package/dist/components/button/icon-button.mjs +1 -1
  13. package/dist/components/button/index.mjs +3 -3
  14. package/dist/components/charts/areaCharts.d.mts +66 -0
  15. package/dist/components/charts/areaCharts.d.ts +66 -0
  16. package/dist/components/charts/areaCharts.js +441 -0
  17. package/dist/components/charts/areaCharts.mjs +10 -0
  18. package/dist/components/charts/circularProgress.d.mts +92 -0
  19. package/dist/components/charts/circularProgress.d.ts +92 -0
  20. package/dist/components/charts/circularProgress.js +441 -0
  21. package/dist/components/charts/circularProgress.mjs +11 -0
  22. package/dist/components/charts/index.d.mts +5 -0
  23. package/dist/components/charts/index.d.ts +5 -0
  24. package/dist/components/charts/index.js +543 -0
  25. package/dist/components/charts/index.mjs +15 -0
  26. package/dist/components/chip/chip.mjs +1 -1
  27. package/dist/components/chip/index.mjs +1 -1
  28. package/dist/components/dateTimePicker/calendar.mjs +1 -1
  29. package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
  30. package/dist/components/dateTimePicker/index.mjs +7 -7
  31. package/dist/components/dateTimePicker/timePicker.mjs +4 -4
  32. package/dist/components/fileUpload/fileUpload.mjs +2 -2
  33. package/dist/components/fileUpload/index.mjs +2 -2
  34. package/dist/components/input/index.mjs +1 -1
  35. package/dist/components/input/input.mjs +1 -1
  36. package/dist/components/list/index.mjs +5 -5
  37. package/dist/components/list/listItem.mjs +3 -3
  38. package/dist/components/modal/index.mjs +2 -2
  39. package/dist/components/modal/modal.mjs +2 -2
  40. package/dist/components/pagination/index.mjs +1 -1
  41. package/dist/components/pagination/pagination.mjs +1 -1
  42. package/dist/components/select/index.mjs +1 -1
  43. package/dist/components/select/select.mjs +1 -1
  44. package/dist/components/table/index.js +24 -22
  45. package/dist/components/table/index.mjs +6 -6
  46. package/dist/components/table/table-body.d.mts +1 -2
  47. package/dist/components/table/table-body.d.ts +1 -2
  48. package/dist/components/table/table-body.js +22 -19
  49. package/dist/components/table/table-body.mjs +1 -1
  50. package/dist/components/table/table.d.mts +0 -1
  51. package/dist/components/table/table.d.ts +0 -1
  52. package/dist/components/table/table.js +24 -22
  53. package/dist/components/table/table.mjs +3 -3
  54. package/dist/components/toast/index.mjs +1 -1
  55. package/dist/components/toast/toast.mjs +1 -1
  56. package/dist/components/toast/use-toast.mjs +1 -1
  57. package/dist/components/tree/index.mjs +1 -1
  58. package/dist/components/tree/tree.mjs +1 -1
  59. package/dist/index.d.mts +2 -0
  60. package/dist/index.d.ts +2 -0
  61. package/dist/index.js +219 -22
  62. package/dist/index.mjs +62 -53
  63. package/package.json +4 -3
  64. package/dist/{chunk-III2QUWF.mjs → chunk-L2VA3ACH.mjs} +3 -3
  65. package/dist/{chunk-W45H2ZMW.mjs → chunk-QWIURBUH.mjs} +3 -3
@@ -1,13 +1,13 @@
1
1
  "use client";
2
+ import {
3
+ useDatePicker
4
+ } from "./chunk-FWJ2ZKH6.mjs";
2
5
  import {
3
6
  calendar_default
4
7
  } from "./chunk-X6D7C7QZ.mjs";
5
8
  import {
6
9
  timePicker_default
7
- } from "./chunk-QJJKJYNR.mjs";
8
- import {
9
- useDatePicker
10
- } from "./chunk-FWJ2ZKH6.mjs";
10
+ } from "./chunk-NR7MGDUE.mjs";
11
11
  import {
12
12
  Icon_default
13
13
  } from "./chunk-2TKEWFGH.mjs";
@@ -0,0 +1,106 @@
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
+ };
@@ -20,7 +20,7 @@ var TableBody = ({
20
20
  rowCheckbox = false,
21
21
  checkedRows,
22
22
  onCheckRow,
23
- onRowClick,
23
+ // onRowClick,
24
24
  isLoading = false,
25
25
  emptyContent,
26
26
  skeletonRow,
@@ -48,24 +48,27 @@ var TableBody = ({
48
48
  rowCheckbox && renderTdSkeleton(`skeleton-checkbox-${rowIndex}`)
49
49
  ] }, `skeleton-${rowIndex}`);
50
50
  const renderEmptyRow = () => /* @__PURE__ */ jsx("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: /* @__PURE__ */ jsx("td", { colSpan: columns.length + (rowCheckbox ? 1 : 0), className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) });
51
- const renderDataRow = (row, rowIndex) => /* @__PURE__ */ jsxs("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), onClick: () => onRowClick == null ? void 0 : onRowClick(row), children: [
52
- columns.map((column, colIdx) => {
53
- var _a;
54
- const value = row[column.field];
55
- const formattedValue = ((_a = column.valueFormatter) == null ? void 0 : _a.call(column, { value, field: column.field })) || value;
56
- const content = column.renderCell ? column.renderCell({ id: row.id, field: column.field, value, formattedValue, row }) : formattedValue;
57
- return /* @__PURE__ */ jsx(
58
- "td",
59
- {
60
- className: clsx(slots.td({ class: classNames == null ? void 0 : classNames.td }), column.className),
61
- style: getCellStyle(column),
62
- children: content
63
- },
64
- `${rowIndex}-${colIdx}`
65
- );
66
- }),
67
- rowCheckbox && renderCheckboxCell(rowIndex)
68
- ] }, rowIndex);
51
+ const renderDataRow = (row, rowIndex) => (
52
+ // <tr key={rowIndex} className={slots.tr({ class: classNames?.tr })} onClick={() => onRowClick?.(row)}>
53
+ /* @__PURE__ */ jsxs("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
54
+ columns.map((column, colIdx) => {
55
+ var _a;
56
+ const value = row[column.field];
57
+ const formattedValue = ((_a = column.valueFormatter) == null ? void 0 : _a.call(column, { value, field: column.field })) || value;
58
+ const content = column.renderCell ? column.renderCell({ id: row.id, field: column.field, value, formattedValue, row }) : formattedValue;
59
+ return /* @__PURE__ */ jsx(
60
+ "td",
61
+ {
62
+ className: clsx(slots.td({ class: classNames == null ? void 0 : classNames.td }), column.className),
63
+ style: getCellStyle(column),
64
+ children: content
65
+ },
66
+ `${rowIndex}-${colIdx}`
67
+ );
68
+ }),
69
+ rowCheckbox && renderCheckboxCell(rowIndex)
70
+ ] }, rowIndex)
71
+ );
69
72
  const renderRows = () => {
70
73
  if (isLoading) return skeletonRow ? Array.from({ length: skeletonRow }, (_, idx) => renderSkeletonRow(idx)) : /* @__PURE__ */ jsx(Fragment, {});
71
74
  if (!rows.length && emptyContent) return renderEmptyRow();
@@ -0,0 +1,107 @@
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/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 { title, size = 150, color, percentage, unit, classNames } = { ...props, ...variantProps };
16
+ const slots = useMemo(() => circularProgressStyle({ ...variantProps }), [variantProps]);
17
+ const data = [
18
+ {
19
+ name: title,
20
+ value: percentage
21
+ }
22
+ ];
23
+ const BAR_SIZE = 24;
24
+ const OUTER_RADIUS = 88;
25
+ const INNER_RADIUS = OUTER_RADIUS - BAR_SIZE;
26
+ return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
27
+ /* @__PURE__ */ jsxs("div", { className: `relative h-[${size}px] w-[${size}px]`, children: [
28
+ /* @__PURE__ */ jsxs(
29
+ RadialBarChart,
30
+ {
31
+ width: size,
32
+ height: size,
33
+ innerRadius: INNER_RADIUS,
34
+ outerRadius: OUTER_RADIUS,
35
+ barSize: BAR_SIZE,
36
+ data,
37
+ startAngle: 90,
38
+ endAngle: -270,
39
+ children: [
40
+ /* @__PURE__ */ jsx(
41
+ "circle",
42
+ {
43
+ cx: size / 2,
44
+ cy: size / 2,
45
+ r: INNER_RADIUS + BAR_SIZE / 2,
46
+ className: slots.background({ class: classNames == null ? void 0 : classNames.background }),
47
+ fill: "currentColor"
48
+ }
49
+ ),
50
+ /* @__PURE__ */ jsx(PolarAngleAxis, { type: "number", domain: [0, 100], angleAxisId: 0, tick: false }),
51
+ /* @__PURE__ */ jsx(
52
+ RadialBar,
53
+ {
54
+ dataKey: "value",
55
+ cornerRadius: 12,
56
+ animationDuration: 1e3,
57
+ className: slots.progress({ class: classNames == null ? void 0 : classNames.progress })
58
+ }
59
+ )
60
+ ]
61
+ }
62
+ ),
63
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxs("span", { className: slots.text({ class: classNames == null ? void 0 : classNames.text }), children: [
64
+ percentage,
65
+ unit
66
+ ] }) })
67
+ ] }),
68
+ title && /* @__PURE__ */ jsx("p", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title })
69
+ ] });
70
+ });
71
+ CircularProgress.displayName = "CircularProgress";
72
+ var circularProgress_default = CircularProgress;
73
+ var circularProgressStyle = tv({
74
+ slots: {
75
+ base: ["flex", "flex-col", "items-center", "gap-[20px]"],
76
+ background: [],
77
+ progress: ["transition-all", "duration-1000 ease-out"],
78
+ text: ["text-xl", "font-bold"],
79
+ title: ["text-md", "font-bold", "text-center", "text-body-foreground"]
80
+ },
81
+ variants: {
82
+ color: {
83
+ primary: {
84
+ background: ["fill-primary-soft"],
85
+ progress: ["fill-primary-main"],
86
+ text: ["text-primary-dark"]
87
+ },
88
+ secondary: {
89
+ background: ["fill-secondary-soft"],
90
+ progress: ["fill-secondary-main"],
91
+ text: ["text-secondary-dark"]
92
+ },
93
+ warning: {
94
+ background: ["fill-warning-soft"],
95
+ progress: ["fill-warning-main"],
96
+ text: ["text-warning-dark"]
97
+ }
98
+ }
99
+ },
100
+ defaultVariants: {
101
+ color: "primary"
102
+ }
103
+ });
104
+
105
+ export {
106
+ circularProgress_default
107
+ };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- listItem_default
4
- } from "./chunk-W45H2ZMW.mjs";
5
2
  import {
6
3
  list_default
7
4
  } from "./chunk-UFVQPPPW.mjs";
5
+ import {
6
+ listItem_default
7
+ } from "./chunk-QWIURBUH.mjs";
8
8
 
9
9
  // src/components/dateTimePicker/timePicker.tsx
10
10
  import { useState, useRef, useEffect } from "react";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  breadcrumb_default
4
- } from "../../chunk-III2QUWF.mjs";
4
+ } from "../../chunk-L2VA3ACH.mjs";
5
5
  import "../../chunk-MY5U63QO.mjs";
6
6
  import "../../chunk-LPZOH3RP.mjs";
7
7
  import "../../chunk-7J3KVOTS.mjs";
@@ -9,12 +9,12 @@ import "../../chunk-6K3E5BVO.mjs";
9
9
  import "../../chunk-6WSACUIB.mjs";
10
10
  import "../../chunk-LXHUO6VM.mjs";
11
11
  import "../../chunk-6PNKRBUT.mjs";
12
- import "../../chunk-2PKM7SLZ.mjs";
13
12
  import "../../chunk-ZYIIXWVY.mjs";
14
13
  import "../../chunk-2TKEWFGH.mjs";
15
- import "../../chunk-2SDYFOZL.mjs";
14
+ import "../../chunk-2PKM7SLZ.mjs";
16
15
  import "../../chunk-27Y6K5NK.mjs";
17
16
  import "../../chunk-E3G5QXSH.mjs";
17
+ import "../../chunk-2SDYFOZL.mjs";
18
18
  import "../../chunk-4ZJFD3L3.mjs";
19
19
  import "../../chunk-AC6TWLRT.mjs";
20
20
  export {
@@ -2,7 +2,7 @@
2
2
  import "../../chunk-KYIODWXL.mjs";
3
3
  import {
4
4
  breadcrumb_default
5
- } from "../../chunk-III2QUWF.mjs";
5
+ } from "../../chunk-L2VA3ACH.mjs";
6
6
  import "../../chunk-MY5U63QO.mjs";
7
7
  import "../../chunk-LPZOH3RP.mjs";
8
8
  import "../../chunk-7J3KVOTS.mjs";
@@ -10,12 +10,12 @@ import "../../chunk-6K3E5BVO.mjs";
10
10
  import "../../chunk-6WSACUIB.mjs";
11
11
  import "../../chunk-LXHUO6VM.mjs";
12
12
  import "../../chunk-6PNKRBUT.mjs";
13
- import "../../chunk-2PKM7SLZ.mjs";
14
13
  import "../../chunk-ZYIIXWVY.mjs";
15
14
  import "../../chunk-2TKEWFGH.mjs";
16
- import "../../chunk-2SDYFOZL.mjs";
15
+ import "../../chunk-2PKM7SLZ.mjs";
17
16
  import "../../chunk-27Y6K5NK.mjs";
18
17
  import "../../chunk-E3G5QXSH.mjs";
18
+ import "../../chunk-2SDYFOZL.mjs";
19
19
  import "../../chunk-4ZJFD3L3.mjs";
20
20
  import "../../chunk-AC6TWLRT.mjs";
21
21
  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-2TKEWFGH.mjs";
10
- import "../../chunk-2SDYFOZL.mjs";
11
10
  import "../../chunk-E3G5QXSH.mjs";
11
+ import "../../chunk-2SDYFOZL.mjs";
12
12
  import "../../chunk-4ZJFD3L3.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-2TKEWFGH.mjs";
10
- import "../../chunk-2SDYFOZL.mjs";
11
10
  import "../../chunk-E3G5QXSH.mjs";
11
+ import "../../chunk-2SDYFOZL.mjs";
12
12
  import "../../chunk-4ZJFD3L3.mjs";
13
13
  import "../../chunk-AC6TWLRT.mjs";
14
14
  export {
@@ -12,14 +12,14 @@ import {
12
12
  import "../../chunk-6WSACUIB.mjs";
13
13
  import "../../chunk-LXHUO6VM.mjs";
14
14
  import "../../chunk-6PNKRBUT.mjs";
15
+ import "../../chunk-ZYIIXWVY.mjs";
16
+ import "../../chunk-2TKEWFGH.mjs";
15
17
  import {
16
18
  text_button_default
17
19
  } from "../../chunk-2PKM7SLZ.mjs";
18
- import "../../chunk-ZYIIXWVY.mjs";
19
- import "../../chunk-2TKEWFGH.mjs";
20
- import "../../chunk-2SDYFOZL.mjs";
21
20
  import "../../chunk-27Y6K5NK.mjs";
22
21
  import "../../chunk-E3G5QXSH.mjs";
22
+ import "../../chunk-2SDYFOZL.mjs";
23
23
  import "../../chunk-4ZJFD3L3.mjs";
24
24
  import "../../chunk-AC6TWLRT.mjs";
25
25
  export {
@@ -0,0 +1,66 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as react from 'react';
4
+ import { SlotsToClasses } from '../../utils/types.mjs';
5
+
6
+ type AreaData = {
7
+ name: string;
8
+ value: number;
9
+ };
10
+ type Props = {
11
+ areaData?: AreaData[];
12
+ classNames?: SlotsToClasses<AreaChartSlots>;
13
+ };
14
+ type AreaChartProps = Props & AreaChartVariantProps;
15
+ declare const AreaChartComponent: react.ForwardRefExoticComponent<Props & AreaChartVariantProps & react.RefAttributes<HTMLDivElement>>;
16
+
17
+ declare const areaChartStyle: tailwind_variants.TVReturnType<{
18
+ color: {
19
+ primary: {
20
+ color: string[];
21
+ _colorValue: string;
22
+ };
23
+ danger: {
24
+ color: string[];
25
+ _colorValue: string;
26
+ };
27
+ };
28
+ }, {
29
+ base: never[];
30
+ color: never[];
31
+ axis: string[];
32
+ }, undefined, {
33
+ color: {
34
+ primary: {
35
+ color: string[];
36
+ _colorValue: string;
37
+ };
38
+ danger: {
39
+ color: string[];
40
+ _colorValue: string;
41
+ };
42
+ };
43
+ }, {
44
+ base: never[];
45
+ color: never[];
46
+ axis: string[];
47
+ }, tailwind_variants.TVReturnType<{
48
+ color: {
49
+ primary: {
50
+ color: string[];
51
+ _colorValue: string;
52
+ };
53
+ danger: {
54
+ color: string[];
55
+ _colorValue: string;
56
+ };
57
+ };
58
+ }, {
59
+ base: never[];
60
+ color: never[];
61
+ axis: string[];
62
+ }, undefined, unknown, unknown, undefined>>;
63
+ type AreaChartVariantProps = VariantProps<typeof areaChartStyle>;
64
+ type AreaChartSlots = keyof ReturnType<typeof areaChartStyle>;
65
+
66
+ export { type AreaChartProps, AreaChartComponent as default };
@@ -0,0 +1,66 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as react from 'react';
4
+ import { SlotsToClasses } from '../../utils/types.js';
5
+
6
+ type AreaData = {
7
+ name: string;
8
+ value: number;
9
+ };
10
+ type Props = {
11
+ areaData?: AreaData[];
12
+ classNames?: SlotsToClasses<AreaChartSlots>;
13
+ };
14
+ type AreaChartProps = Props & AreaChartVariantProps;
15
+ declare const AreaChartComponent: react.ForwardRefExoticComponent<Props & AreaChartVariantProps & react.RefAttributes<HTMLDivElement>>;
16
+
17
+ declare const areaChartStyle: tailwind_variants.TVReturnType<{
18
+ color: {
19
+ primary: {
20
+ color: string[];
21
+ _colorValue: string;
22
+ };
23
+ danger: {
24
+ color: string[];
25
+ _colorValue: string;
26
+ };
27
+ };
28
+ }, {
29
+ base: never[];
30
+ color: never[];
31
+ axis: string[];
32
+ }, undefined, {
33
+ color: {
34
+ primary: {
35
+ color: string[];
36
+ _colorValue: string;
37
+ };
38
+ danger: {
39
+ color: string[];
40
+ _colorValue: string;
41
+ };
42
+ };
43
+ }, {
44
+ base: never[];
45
+ color: never[];
46
+ axis: string[];
47
+ }, tailwind_variants.TVReturnType<{
48
+ color: {
49
+ primary: {
50
+ color: string[];
51
+ _colorValue: string;
52
+ };
53
+ danger: {
54
+ color: string[];
55
+ _colorValue: string;
56
+ };
57
+ };
58
+ }, {
59
+ base: never[];
60
+ color: never[];
61
+ axis: string[];
62
+ }, undefined, unknown, unknown, undefined>>;
63
+ type AreaChartVariantProps = VariantProps<typeof areaChartStyle>;
64
+ type AreaChartSlots = keyof ReturnType<typeof areaChartStyle>;
65
+
66
+ export { type AreaChartProps, AreaChartComponent as default };