@deepnoid/ui 0.1.47 → 0.1.49

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 (102) hide show
  1. package/.turbo/turbo-build.log +203 -198
  2. package/dist/chunk-4F6RULPS.mjs +147 -0
  3. package/dist/chunk-A7GHXG3K.mjs +129 -0
  4. package/dist/{chunk-UHT6GDT2.mjs → chunk-BPEMHZH3.mjs} +1 -1
  5. package/dist/{chunk-Y7NTREVJ.mjs → chunk-G67WUZO3.mjs} +3 -3
  6. package/dist/{chunk-QJXYG2OC.mjs → chunk-IBI3OVQI.mjs} +1 -1
  7. package/dist/{chunk-LR3SWRB4.mjs → chunk-IC25OKBJ.mjs} +5 -5
  8. package/dist/{chunk-NR7MGDUE.mjs → chunk-KYJTZPXY.mjs} +2 -2
  9. package/dist/{chunk-YOSWY5QO.mjs → chunk-MCNCHQ33.mjs} +5 -5
  10. package/dist/{chunk-UCU5ON5M.mjs → chunk-P7YYNA6L.mjs} +1 -1
  11. package/dist/{chunk-K2J5B7WI.mjs → chunk-RIW4TT6V.mjs} +6 -6
  12. package/dist/{chunk-Z4RNZ4HQ.mjs → chunk-TRR232FS.mjs} +5 -5
  13. package/dist/{chunk-FEAPUDMZ.mjs → chunk-U2NPH2O3.mjs} +7 -7
  14. package/dist/{chunk-D7XSWNZ7.mjs → chunk-WOEZHDJR.mjs} +8 -8
  15. package/dist/{chunk-TWLYGLXN.mjs → chunk-ZYWQWFVT.mjs} +7 -7
  16. package/dist/components/backdrop/backdrop.mjs +2 -2
  17. package/dist/components/backdrop/index.mjs +2 -2
  18. package/dist/components/breadcrumb/breadcrumb.mjs +6 -6
  19. package/dist/components/breadcrumb/index.mjs +6 -6
  20. package/dist/components/button/button.mjs +2 -2
  21. package/dist/components/button/icon-button.mjs +2 -2
  22. package/dist/components/button/index.mjs +9 -9
  23. package/dist/components/button/text-button.mjs +3 -3
  24. package/dist/components/charts/{areaCharts.d.mts → areaChart.d.mts} +8 -4
  25. package/dist/components/charts/{areaCharts.d.ts → areaChart.d.ts} +8 -4
  26. package/dist/components/charts/{areaCharts.js → areaChart.js} +70 -66
  27. package/dist/components/charts/{areaCharts.mjs → areaChart.mjs} +4 -4
  28. package/dist/components/charts/barChart.d.mts +33 -0
  29. package/dist/components/charts/barChart.d.ts +33 -0
  30. package/dist/components/charts/barChart.js +464 -0
  31. package/dist/components/charts/barChart.mjs +10 -0
  32. package/dist/components/charts/circularProgress.d.mts +4 -4
  33. package/dist/components/charts/circularProgress.d.ts +4 -4
  34. package/dist/components/charts/circularProgress.js +4 -4
  35. package/dist/components/charts/circularProgress.mjs +2 -2
  36. package/dist/components/charts/index.d.mts +2 -1
  37. package/dist/components/charts/index.d.ts +2 -1
  38. package/dist/components/charts/index.js +189 -65
  39. package/dist/components/charts/index.mjs +10 -6
  40. package/dist/components/checkbox/checkbox.mjs +3 -3
  41. package/dist/components/checkbox/index.mjs +3 -3
  42. package/dist/components/chip/chip.mjs +2 -2
  43. package/dist/components/chip/index.mjs +2 -2
  44. package/dist/components/dateTimePicker/calendar.mjs +2 -2
  45. package/dist/components/dateTimePicker/dateTimePicker.mjs +8 -8
  46. package/dist/components/dateTimePicker/index.mjs +8 -8
  47. package/dist/components/dateTimePicker/timePicker.mjs +5 -5
  48. package/dist/components/fileUpload/fileUpload.mjs +7 -7
  49. package/dist/components/fileUpload/index.mjs +7 -7
  50. package/dist/components/input/index.mjs +3 -3
  51. package/dist/components/input/input.mjs +3 -3
  52. package/dist/components/list/index.mjs +4 -4
  53. package/dist/components/list/list.mjs +2 -2
  54. package/dist/components/list/listItem.mjs +3 -3
  55. package/dist/components/modal/index.mjs +8 -8
  56. package/dist/components/modal/modal.mjs +8 -8
  57. package/dist/components/pagination/index.mjs +4 -4
  58. package/dist/components/pagination/pagination.mjs +4 -4
  59. package/dist/components/radio/index.mjs +3 -3
  60. package/dist/components/radio/radio.mjs +3 -3
  61. package/dist/components/select/index.js +3 -3
  62. package/dist/components/select/index.mjs +3 -3
  63. package/dist/components/select/select.js +3 -3
  64. package/dist/components/select/select.mjs +3 -3
  65. package/dist/components/table/index.mjs +8 -8
  66. package/dist/components/table/table-body.mjs +4 -4
  67. package/dist/components/table/table-head.mjs +4 -4
  68. package/dist/components/table/table.mjs +8 -8
  69. package/dist/components/tabs/index.mjs +2 -2
  70. package/dist/components/tabs/tabs.mjs +2 -2
  71. package/dist/components/textarea/index.mjs +2 -2
  72. package/dist/components/textarea/textarea.mjs +2 -2
  73. package/dist/components/toast/index.mjs +4 -4
  74. package/dist/components/toast/toast.mjs +3 -3
  75. package/dist/components/toast/use-toast.mjs +4 -4
  76. package/dist/components/tooltip/index.mjs +2 -2
  77. package/dist/components/tooltip/tooltip.mjs +2 -2
  78. package/dist/components/tree/index.mjs +2 -2
  79. package/dist/components/tree/tree.mjs +2 -2
  80. package/dist/index.d.mts +2 -1
  81. package/dist/index.d.ts +2 -1
  82. package/dist/index.js +192 -68
  83. package/dist/index.mjs +67 -63
  84. package/package.json +1 -1
  85. package/dist/chunk-VYLYF6G5.mjs +0 -143
  86. package/dist/{chunk-SSMMWMQC.mjs → chunk-2YMAKIZ6.mjs} +3 -3
  87. package/dist/{chunk-6Q2BXHJL.mjs → chunk-4EIGHKUO.mjs} +3 -3
  88. package/dist/{chunk-6K3E5BVO.mjs → chunk-7TAGGLNY.mjs} +3 -3
  89. package/dist/{chunk-X6D7C7QZ.mjs → chunk-A7RU3FU5.mjs} +3 -3
  90. package/dist/{chunk-7H5XPHY6.mjs → chunk-D6QI3DJG.mjs} +4 -4
  91. package/dist/{chunk-33C4DOPJ.mjs → chunk-GH6CPGFN.mjs} +4 -4
  92. package/dist/{chunk-UFVQPPPW.mjs → chunk-HIVPDIEP.mjs} +3 -3
  93. package/dist/{chunk-P5QCU457.mjs → chunk-LL6F3WDX.mjs} +3 -3
  94. package/dist/{chunk-UCIH2BJI.mjs → chunk-MEY4IL7D.mjs} +4 -4
  95. package/dist/{chunk-WPIFIRCJ.mjs → chunk-NFQMXW4Z.mjs} +3 -3
  96. package/dist/{chunk-YIIFWADW.mjs → chunk-QIRL6HY6.mjs} +4 -4
  97. package/dist/{chunk-QWIURBUH.mjs → chunk-RT3S3VVJ.mjs} +6 -6
  98. package/dist/{chunk-7J3KVOTS.mjs → chunk-UB4YBFOT.mjs} +3 -3
  99. package/dist/{chunk-KCOHU7X7.mjs → chunk-WFMFC7R6.mjs} +4 -4
  100. package/dist/{chunk-Y6XQTWB5.mjs → chunk-WLNLVX7Q.mjs} +3 -3
  101. package/dist/{chunk-3YMMVZDL.mjs → chunk-XOH6GWRD.mjs} +0 -0
  102. package/dist/{chunk-IL5ENWCR.mjs → chunk-Z2537DF6.mjs} +3 -3
@@ -1,143 +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, useState, useRef, useEffect, useId } 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
- const uniqueId = useId();
15
- const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
16
- const { areaData, color = "primary", classNames } = { ...props, ...variantProps };
17
- const slots = useMemo(() => areaChartStyle({ ...variantProps }), [variantProps]);
18
- const COLOR_MAP = {
19
- primary: "#3F9CF2",
20
- danger: "#FF4684"
21
- };
22
- const colorHex = useMemo(() => COLOR_MAP[color], [color]);
23
- const [tickPositions, setTickPositions] = useState([]);
24
- const tickRef = useRef([]);
25
- const CustomTick = ({ x, y, payload }) => {
26
- if (x !== void 0) {
27
- tickRef.current.push(x);
28
- }
29
- return /* @__PURE__ */ jsx(
30
- "text",
31
- {
32
- x,
33
- y: y + 14,
34
- textAnchor: "middle",
35
- fontSize: 12,
36
- fontWeight: 700,
37
- fill: "currentColor",
38
- className: "text-body-foreground",
39
- children: payload.value
40
- }
41
- );
42
- };
43
- useEffect(() => {
44
- const raf = requestAnimationFrame(() => {
45
- const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
46
- const mids = [];
47
- for (let i = 0; i < unique.length - 1; i++) {
48
- mids.push((unique[i] + unique[i + 1]) / 2);
49
- }
50
- setTickPositions(mids);
51
- tickRef.current = [];
52
- });
53
- return () => cancelAnimationFrame(raf);
54
- }, [areaData]);
55
- const CustomDotWithShadow = (props2) => {
56
- const { cx, cy, fill, stroke } = props2;
57
- if (cx === void 0 || cy === void 0) return null;
58
- return /* @__PURE__ */ jsxs(Fragment, { children: [
59
- /* @__PURE__ */ jsx("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
60
- /* @__PURE__ */ jsx("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
61
- ] });
62
- };
63
- 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(AreaChart, { data: areaData, children: [
64
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
65
- /* @__PURE__ */ jsx("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
66
- /* @__PURE__ */ jsx("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
67
- ] }) }),
68
- /* @__PURE__ */ jsx(
69
- CartesianGrid,
70
- {
71
- vertical: true,
72
- horizontal: false,
73
- strokeDasharray: "3 3",
74
- className: "stroke-neutral-light",
75
- verticalPoints: tickPositions
76
- }
77
- ),
78
- /* @__PURE__ */ jsx(
79
- XAxis,
80
- {
81
- dataKey: "name",
82
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
83
- tickLine: false,
84
- tick: CustomTick,
85
- padding: { left: 35.5, right: 35.5 }
86
- }
87
- ),
88
- /* @__PURE__ */ jsx(
89
- YAxis,
90
- {
91
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
92
- tickLine: false,
93
- tick: {
94
- fontSize: 12,
95
- fontWeight: 700,
96
- fill: "text-body-foreground",
97
- textAnchor: "middle",
98
- dx: -10
99
- },
100
- ticks: [0, 20, 40, 60, 80, 100],
101
- domain: [-10, 110]
102
- }
103
- ),
104
- /* @__PURE__ */ jsx(
105
- Area,
106
- {
107
- type: "monotone",
108
- dataKey: "value",
109
- stroke: colorHex,
110
- strokeWidth: 2,
111
- fill: `url(#colorGradient-${uniqueId})`,
112
- dot: /* @__PURE__ */ jsx(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
113
- activeDot: { r: 7, fill: colorHex }
114
- }
115
- )
116
- ] }) }) });
117
- });
118
- AreaChartComponent.displayName = "AreaChart";
119
- var areaCharts_default = AreaChartComponent;
120
- var areaChartStyle = tv({
121
- slots: {
122
- base: [],
123
- color: [],
124
- axis: ["text-sm", "font-bold", "text-center", "text-body-foreground"]
125
- },
126
- variants: {
127
- color: {
128
- primary: {
129
- color: ["text-primary-main"]
130
- },
131
- danger: {
132
- color: ["text-danger-main"]
133
- }
134
- }
135
- },
136
- defaultVariants: {
137
- color: "primary"
138
- }
139
- });
140
-
141
- export {
142
- areaCharts_default
143
- };
@@ -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";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- mapPropsVariants
4
- } from "./chunk-E3G5QXSH.mjs";
5
2
  import {
6
3
  clsx
7
4
  } from "./chunk-27Y6K5NK.mjs";
5
+ import {
6
+ mapPropsVariants
7
+ } from "./chunk-E3G5QXSH.mjs";
8
8
 
9
9
  // src/components/textarea/textarea.tsx
10
10
  import {
@@ -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
2
  import {
3
- mapPropsVariants
4
- } from "./chunk-E3G5QXSH.mjs";
3
+ tv
4
+ } from "./chunk-4ZJFD3L3.mjs";
5
5
  import {
6
6
  clsx
7
7
  } from "./chunk-27Y6K5NK.mjs";
8
8
  import {
9
- tv
10
- } from "./chunk-4ZJFD3L3.mjs";
9
+ mapPropsVariants
10
+ } from "./chunk-E3G5QXSH.mjs";
11
11
 
12
12
  // src/components/checkbox/checkbox.tsx
13
13
  import { forwardRef, useMemo } from "react";
@@ -3,14 +3,14 @@ import {
3
3
  Icon_default
4
4
  } from "./chunk-2TKEWFGH.mjs";
5
5
  import {
6
- mapPropsVariants
7
- } from "./chunk-E3G5QXSH.mjs";
6
+ tv
7
+ } from "./chunk-4ZJFD3L3.mjs";
8
8
  import {
9
9
  clsx
10
10
  } from "./chunk-27Y6K5NK.mjs";
11
11
  import {
12
- tv
13
- } from "./chunk-4ZJFD3L3.mjs";
12
+ mapPropsVariants
13
+ } from "./chunk-E3G5QXSH.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";
@@ -3,14 +3,14 @@ import {
3
3
  Icon_default
4
4
  } from "./chunk-2TKEWFGH.mjs";
5
5
  import {
6
- mapPropsVariants
7
- } from "./chunk-E3G5QXSH.mjs";
6
+ tv
7
+ } from "./chunk-4ZJFD3L3.mjs";
8
8
  import {
9
9
  clsx
10
10
  } from "./chunk-27Y6K5NK.mjs";
11
11
  import {
12
- tv
13
- } from "./chunk-4ZJFD3L3.mjs";
12
+ mapPropsVariants
13
+ } from "./chunk-E3G5QXSH.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";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
- mapPropsVariants
4
- } from "./chunk-E3G5QXSH.mjs";
3
+ tv
4
+ } from "./chunk-4ZJFD3L3.mjs";
5
5
  import {
6
6
  clsx
7
7
  } from "./chunk-27Y6K5NK.mjs";
8
8
  import {
9
- tv
10
- } from "./chunk-4ZJFD3L3.mjs";
9
+ mapPropsVariants
10
+ } from "./chunk-E3G5QXSH.mjs";
11
11
 
12
12
  // src/components/radio/radio.tsx
13
13
  import { forwardRef, useMemo } from "react";
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import {
3
- Icon_default
4
- } from "./chunk-2TKEWFGH.mjs";
5
- import {
6
- mapPropsVariants
7
- } from "./chunk-E3G5QXSH.mjs";
8
2
  import {
9
3
  avatar_default
10
4
  } from "./chunk-SP3JVQY3.mjs";
5
+ import {
6
+ Icon_default
7
+ } from "./chunk-2TKEWFGH.mjs";
11
8
  import {
12
9
  tv
13
10
  } from "./chunk-4ZJFD3L3.mjs";
11
+ import {
12
+ mapPropsVariants
13
+ } from "./chunk-E3G5QXSH.mjs";
14
14
 
15
15
  // src/components/list/listItem.tsx
16
16
  import { forwardRef, useMemo } 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/button.tsx
19
19
  import React, { forwardRef, useMemo, useCallback } from "react";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
- mapPropsVariants
4
- } from "./chunk-E3G5QXSH.mjs";
3
+ tv
4
+ } from "./chunk-4ZJFD3L3.mjs";
5
5
  import {
6
6
  clsx
7
7
  } from "./chunk-27Y6K5NK.mjs";
8
8
  import {
9
- tv
10
- } from "./chunk-4ZJFD3L3.mjs";
9
+ mapPropsVariants
10
+ } from "./chunk-E3G5QXSH.mjs";
11
11
 
12
12
  // src/components/button/text-button.tsx
13
13
  import {
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  Icon_default
4
4
  } from "./chunk-2TKEWFGH.mjs";
5
- import {
6
- mapPropsVariants
7
- } from "./chunk-E3G5QXSH.mjs";
8
5
  import {
9
6
  tv
10
7
  } from "./chunk-4ZJFD3L3.mjs";
8
+ import {
9
+ mapPropsVariants
10
+ } from "./chunk-E3G5QXSH.mjs";
11
11
 
12
12
  // src/components/chip/chip.tsx
13
13
  import { forwardRef, useMemo } from "react";
File without changes
@@ -6,12 +6,12 @@ import {
6
6
  getTailClassName,
7
7
  getTailStyles
8
8
  } from "./chunk-WSIADHVC.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/tooltip/tooltip.tsx
17
17
  import { forwardRef, useCallback, useMemo, useRef, useState, useEffect } from "react";