@deepnoid/ui 0.1.113 → 0.1.115

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 (95) hide show
  1. package/.turbo/turbo-build.log +146 -146
  2. package/dist/{chunk-H6G6INED.mjs → chunk-7YCUFFKZ.mjs} +1 -1
  3. package/dist/{chunk-LXDKYJ5H.mjs → chunk-AHBBUMPX.mjs} +4 -4
  4. package/dist/{chunk-4NVZMJGS.mjs → chunk-AX3FVJMY.mjs} +1 -1
  5. package/dist/{chunk-3ER5WNGC.mjs → chunk-CEMBGO4V.mjs} +2 -2
  6. package/dist/{chunk-GAZ472ZU.mjs → chunk-CF7LIQF6.mjs} +54 -44
  7. package/dist/chunk-KIN2UK2C.mjs +132 -0
  8. package/dist/{chunk-JFWWH3LL.mjs → chunk-MTQGHQ7Z.mjs} +3 -3
  9. package/dist/{chunk-I7QMOYZO.mjs → chunk-NEBMBSKV.mjs} +4 -4
  10. package/dist/{chunk-6PNKRBUT.mjs → chunk-SZL743JC.mjs} +1 -1
  11. package/dist/{chunk-77EXMT5I.mjs → chunk-TMHYS2DC.mjs} +5 -5
  12. package/dist/{chunk-TLOKYBIC.mjs → chunk-UNYKQTEP.mjs} +4 -4
  13. package/dist/{chunk-2PZRTIRD.mjs → chunk-WKMBRUGX.mjs} +1 -1
  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 +7 -7
  17. package/dist/components/breadcrumb/index.mjs +7 -7
  18. package/dist/components/button/button.js +1 -1
  19. package/dist/components/button/button.mjs +3 -3
  20. package/dist/components/button/icon-button.js +1 -1
  21. package/dist/components/button/icon-button.mjs +3 -3
  22. package/dist/components/button/index.js +1 -1
  23. package/dist/components/button/index.mjs +6 -6
  24. package/dist/components/button/text-button.mjs +2 -2
  25. package/dist/components/charts/barChart.js +54 -44
  26. package/dist/components/charts/barChart.mjs +1 -1
  27. package/dist/components/charts/circularProgress.d.mts +18 -33
  28. package/dist/components/charts/circularProgress.d.ts +18 -33
  29. package/dist/components/charts/circularProgress.js +56 -31
  30. package/dist/components/charts/circularProgress.mjs +1 -1
  31. package/dist/components/charts/index.js +110 -75
  32. package/dist/components/charts/index.mjs +2 -2
  33. package/dist/components/checkbox/checkbox.mjs +2 -2
  34. package/dist/components/checkbox/index.mjs +2 -2
  35. package/dist/components/chip/chip.mjs +1 -1
  36. package/dist/components/chip/index.mjs +1 -1
  37. package/dist/components/drawer/drawer.mjs +2 -2
  38. package/dist/components/drawer/index.mjs +2 -2
  39. package/dist/components/fileUpload/fileUpload.js +1 -1
  40. package/dist/components/fileUpload/fileUpload.mjs +9 -9
  41. package/dist/components/fileUpload/index.js +1 -1
  42. package/dist/components/fileUpload/index.mjs +9 -9
  43. package/dist/components/input/index.mjs +3 -3
  44. package/dist/components/input/input.mjs +3 -3
  45. package/dist/components/list/index.mjs +2 -2
  46. package/dist/components/list/listItem.mjs +2 -2
  47. package/dist/components/modal/index.js +1 -1
  48. package/dist/components/modal/index.mjs +8 -8
  49. package/dist/components/modal/modal.js +1 -1
  50. package/dist/components/modal/modal.mjs +8 -8
  51. package/dist/components/pagination/index.mjs +4 -4
  52. package/dist/components/pagination/pagination.mjs +4 -4
  53. package/dist/components/picker/datePicker.mjs +3 -3
  54. package/dist/components/picker/index.mjs +5 -5
  55. package/dist/components/picker/timePicker.mjs +4 -4
  56. package/dist/components/progress/index.mjs +2 -2
  57. package/dist/components/progress/progress.mjs +2 -2
  58. package/dist/components/radio/index.mjs +2 -2
  59. package/dist/components/radio/radio.mjs +2 -2
  60. package/dist/components/ripple/index.js +1 -1
  61. package/dist/components/ripple/index.mjs +1 -1
  62. package/dist/components/ripple/useRipple.js +1 -1
  63. package/dist/components/ripple/useRipple.mjs +1 -1
  64. package/dist/components/select/index.mjs +3 -3
  65. package/dist/components/select/select.mjs +3 -3
  66. package/dist/components/table/definition-table.mjs +2 -2
  67. package/dist/components/table/index.mjs +7 -7
  68. package/dist/components/table/table-body.mjs +6 -6
  69. package/dist/components/table/table-head.mjs +6 -6
  70. package/dist/components/table/table.mjs +6 -6
  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 +5 -5
  74. package/dist/components/toast/toast.mjs +3 -3
  75. package/dist/components/toast/use-toast.mjs +4 -4
  76. package/dist/components/tree/index.mjs +2 -2
  77. package/dist/components/tree/tree.mjs +2 -2
  78. package/dist/index.js +111 -76
  79. package/dist/index.mjs +37 -37
  80. package/package.json +1 -1
  81. package/dist/chunk-ZWLRSZTC.mjs +0 -107
  82. package/dist/{chunk-AZ5SQYZE.mjs → chunk-2CLPU5LR.mjs} +3 -3
  83. package/dist/{chunk-K4XJAP6G.mjs → chunk-2VQM2ZBF.mjs} +3 -3
  84. package/dist/{chunk-3HXNAVAN.mjs → chunk-3CRSSRCH.mjs} +3 -3
  85. package/dist/{chunk-KY3W7MBV.mjs → chunk-3M6VYLOU.mjs} +3 -3
  86. package/dist/{chunk-KOELCZTB.mjs → chunk-5AEN7QTL.mjs} +3 -3
  87. package/dist/{chunk-NUELPELQ.mjs → chunk-AF4I7ZQS.mjs} +3 -3
  88. package/dist/{chunk-OMVVASRP.mjs → chunk-BFZ6OTVA.mjs} +3 -3
  89. package/dist/{chunk-3KWZHPVV.mjs → chunk-EDAREIAN.mjs} +3 -3
  90. package/dist/{chunk-AS2CSVBQ.mjs → chunk-FF56E2UQ.mjs} +3 -3
  91. package/dist/{chunk-TMI3QBKD.mjs → chunk-H6JGLPPF.mjs} +3 -3
  92. package/dist/{chunk-PYCIG6N3.mjs → chunk-L3WKBOWY.mjs} +3 -3
  93. package/dist/{chunk-XHSTRFLS.mjs → chunk-Q364C3FI.mjs} +3 -3
  94. package/dist/{chunk-S6ZXK2UP.mjs → chunk-QREBEXKF.mjs} +3 -3
  95. package/dist/{chunk-NO6RDCY7.mjs → chunk-S7Y7XUBL.mjs} +3 -3
package/dist/index.js CHANGED
@@ -5854,7 +5854,7 @@ function useRipple(props = {}) {
5854
5854
  const [ripples, setRipples] = (0, import_react5.useState)([]);
5855
5855
  const getUniqueID = (key) => `${key}-${Math.random().toString(36).substr(2, 9)}`;
5856
5856
  const onPress = (0, import_react5.useCallback)((event) => {
5857
- const trigger = event.target;
5857
+ const trigger = event.currentTarget;
5858
5858
  const rect = trigger.getBoundingClientRect();
5859
5859
  const size = Math.max(trigger.clientWidth, trigger.clientHeight);
5860
5860
  setRipples((prevRipples) => [
@@ -12041,8 +12041,30 @@ var CircularProgress = (0, import_react37.forwardRef)((originalProps, ref) => {
12041
12041
  }
12042
12042
  ];
12043
12043
  const BAR_SIZE = 24;
12044
- const OUTER_RADIUS = 75;
12044
+ const STROKE_WIDTH = 1;
12045
+ const BORDER_MARGIN = 5;
12046
+ const CONTAINER_PADDING = BORDER_MARGIN + STROKE_WIDTH + 1;
12047
+ const OUTER_RADIUS = (size - CONTAINER_PADDING * 2) / 2;
12045
12048
  const INNER_RADIUS = OUTER_RADIUS - BAR_SIZE;
12049
+ const BACKGROUND_RADIUS = (INNER_RADIUS + OUTER_RADIUS) / 2;
12050
+ const gradientId = `gradient-${Math.random().toString(36).slice(2)}`;
12051
+ const gradientColors = {
12052
+ blue: {
12053
+ start: "#DEC1FA",
12054
+ end: "#3F9CF2"
12055
+ },
12056
+ green: {
12057
+ start: "#C2E59C",
12058
+ end: "#64B3F4"
12059
+ },
12060
+ pink: {
12061
+ start: "#DDD6F3",
12062
+ end: "#FAACA8"
12063
+ }
12064
+ };
12065
+ const colorValue = originalProps.color;
12066
+ const colorKey = colorValue || "blue";
12067
+ const currentGradient = gradientColors[colorKey];
12046
12068
  return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
12047
12069
  /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative", style: { width: size, height: size }, children: [
12048
12070
  /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
@@ -12050,40 +12072,48 @@ var CircularProgress = (0, import_react37.forwardRef)((originalProps, ref) => {
12050
12072
  {
12051
12073
  width: size,
12052
12074
  height: size,
12053
- innerRadius: INNER_RADIUS,
12075
+ innerRadius: INNER_RADIUS - 0.1,
12054
12076
  outerRadius: OUTER_RADIUS,
12055
12077
  barSize: BAR_SIZE,
12056
12078
  data,
12057
12079
  startAngle: 90,
12058
12080
  endAngle: -270,
12059
12081
  children: [
12082
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("linearGradient", { id: gradientId, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
12083
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("stop", { offset: "0%", stopColor: currentGradient.start }),
12084
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("stop", { offset: "100%", stopColor: currentGradient.end })
12085
+ ] }) }),
12060
12086
  /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
12061
12087
  "circle",
12062
12088
  {
12063
12089
  cx: size / 2,
12064
12090
  cy: size / 2,
12065
- r: OUTER_RADIUS,
12066
- className: slots.background({ class: classNames == null ? void 0 : classNames.background }),
12067
- fill: "currentColor"
12091
+ r: OUTER_RADIUS + BORDER_MARGIN,
12092
+ fill: "none",
12093
+ stroke: "#DFE2E7",
12094
+ strokeWidth: "1"
12068
12095
  }
12069
12096
  ),
12070
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_recharts.PolarAngleAxis, { type: "number", domain: [0, 100], angleAxisId: 0, tick: false }),
12071
12097
  /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
12072
- import_recharts.RadialBar,
12098
+ "circle",
12073
12099
  {
12074
- dataKey: "value",
12075
- cornerRadius: 12,
12076
- animationDuration: 1e3,
12077
- className: slots.progress({ class: classNames == null ? void 0 : classNames.progress })
12100
+ cx: size / 2,
12101
+ cy: size / 2,
12102
+ r: BACKGROUND_RADIUS,
12103
+ fill: "none",
12104
+ stroke: "rgba(0, 0, 0, 0.05)",
12105
+ strokeWidth: BAR_SIZE
12078
12106
  }
12079
- )
12107
+ ),
12108
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_recharts.PolarAngleAxis, { type: "number", domain: [0, 100], angleAxisId: 0, tick: false }),
12109
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_recharts.RadialBar, { dataKey: "value", cornerRadius: 12, animationDuration: 1e3, fill: `url(#${gradientId})` })
12080
12110
  ]
12081
12111
  }
12082
12112
  ),
12083
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: slots.text({ class: classNames == null ? void 0 : classNames.text }), children: [
12084
- percentage,
12085
- unit
12086
- ] }) })
12113
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "absolute inset-0 flex items-center justify-center", children: [
12114
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: slots.percentage({ class: classNames == null ? void 0 : classNames.percentage }), children: percentage }),
12115
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: slots.unit({ class: classNames == null ? void 0 : classNames.unit }), children: unit })
12116
+ ] })
12087
12117
  ] }),
12088
12118
  label && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
12089
12119
  ] });
@@ -12093,32 +12123,27 @@ var circularProgress_default = CircularProgress;
12093
12123
  var circularProgressStyle = tv({
12094
12124
  slots: {
12095
12125
  base: ["flex", "flex-col", "items-center", "gap-[20px]"],
12096
- background: [],
12126
+ background: ["fill-body-background", "border-neutral-light"],
12097
12127
  progress: ["transition-all", "duration-1000 ease-out"],
12098
- text: ["text-xl", "font-bold"],
12128
+ percentage: ["text-xl", "font-bold", "text-body-foreground"],
12129
+ unit: ["text-md", "font-bold", "text-body-foreground"],
12099
12130
  label: ["text-md", "font-bold", "text-left", "text-body-foreground"]
12100
12131
  },
12101
12132
  variants: {
12102
12133
  color: {
12103
- primary: {
12104
- background: ["fill-primary-soft"],
12105
- progress: ["fill-primary-main"],
12106
- text: ["text-primary-dark"]
12134
+ blue: {
12135
+ progress: ["fill-blue-main"]
12107
12136
  },
12108
- secondary: {
12109
- background: ["fill-secondary-soft"],
12110
- progress: ["fill-secondary-main"],
12111
- text: ["text-secondary-dark"]
12137
+ green: {
12138
+ progress: ["fill-green-main"]
12112
12139
  },
12113
- warning: {
12114
- background: ["fill-warning-soft"],
12115
- progress: ["fill-warning-main"],
12116
- text: ["text-warning-dark"]
12140
+ pink: {
12141
+ progress: ["fill-pink-main"]
12117
12142
  }
12118
12143
  }
12119
12144
  },
12120
12145
  defaultVariants: {
12121
- color: "primary"
12146
+ color: "blue"
12122
12147
  }
12123
12148
  });
12124
12149
 
@@ -12268,8 +12293,8 @@ var BarChartComponent = (0, import_react39.forwardRef)((originalProps, ref) => {
12268
12293
  const slots = (0, import_react39.useMemo)(() => barChartStyle({ ...variantProps }), [variantProps]);
12269
12294
  const COLOR_MAP = {
12270
12295
  primary: "#C7E5FA",
12271
- secondary: "#DEC1FA",
12272
- warning: "#F9C967"
12296
+ secondary: "#92DCB2",
12297
+ warning: "#DEC1FA"
12273
12298
  };
12274
12299
  const [tickPositions, setTickPositions] = (0, import_react39.useState)([]);
12275
12300
  const tickRef = (0, import_react39.useRef)([]);
@@ -12320,54 +12345,64 @@ var BarChartComponent = (0, import_react39.forwardRef)((originalProps, ref) => {
12320
12345
  }, [data]);
12321
12346
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
12322
12347
  label && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
12323
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_recharts3.BarChart, { data, margin: { left: -30 }, barSize: 20, barGap: 10, children: [
12324
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12325
- import_recharts3.CartesianGrid,
12326
- {
12327
- vertical: true,
12328
- horizontal: false,
12329
- strokeDasharray: "3 3",
12330
- className: "stroke-neutral-light",
12331
- verticalPoints: tickPositions
12332
- }
12333
- ),
12334
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12335
- import_recharts3.XAxis,
12336
- {
12337
- dataKey: "name",
12338
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
12339
- tickLine: false,
12340
- tick: CustomTick,
12341
- padding: { left: 32, right: 32 }
12342
- }
12343
- ),
12344
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12345
- import_recharts3.YAxis,
12346
- {
12347
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
12348
- tickLine: false,
12349
- tick: {
12350
- fontSize: 12,
12351
- fontWeight: 700,
12352
- fill: "text-body-foreground",
12353
- textAnchor: "middle",
12354
- dx: -10
12355
- },
12356
- ticks: [0, 20, 40, 60, 80, 100],
12357
- domain: [-6, 110]
12358
- }
12359
- ),
12360
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_recharts3.Bar, { dataKey: "avg", fill: COLOR_MAP.primary, width: 20, shape: CustomBarShape }),
12361
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_recharts3.Bar, { dataKey: "high", fill: COLOR_MAP.secondary, width: 20, shape: CustomBarShape }),
12362
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_recharts3.Bar, { dataKey: "low", fill: COLOR_MAP.warning, width: 20, shape: CustomBarShape })
12363
- ] }) })
12348
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
12349
+ import_recharts3.BarChart,
12350
+ {
12351
+ data,
12352
+ margin: { left: -30 },
12353
+ barSize: 20,
12354
+ barGap: 10,
12355
+ className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
12356
+ children: [
12357
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12358
+ import_recharts3.CartesianGrid,
12359
+ {
12360
+ vertical: true,
12361
+ horizontal: false,
12362
+ strokeDasharray: "3 3",
12363
+ className: "stroke-neutral-light",
12364
+ verticalPoints: tickPositions
12365
+ }
12366
+ ),
12367
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12368
+ import_recharts3.XAxis,
12369
+ {
12370
+ dataKey: "name",
12371
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
12372
+ tickLine: false,
12373
+ tick: CustomTick,
12374
+ padding: { left: 32, right: 32 }
12375
+ }
12376
+ ),
12377
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
12378
+ import_recharts3.YAxis,
12379
+ {
12380
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
12381
+ tickLine: false,
12382
+ tick: {
12383
+ fontSize: 12,
12384
+ fontWeight: 700,
12385
+ fill: "text-body-foreground",
12386
+ textAnchor: "middle",
12387
+ dx: -10
12388
+ },
12389
+ ticks: [0, 20, 40, 60, 80, 100],
12390
+ domain: [-6, 110]
12391
+ }
12392
+ ),
12393
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_recharts3.Bar, { dataKey: "avg", fill: COLOR_MAP.primary, width: 20, shape: CustomBarShape }),
12394
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_recharts3.Bar, { dataKey: "high", fill: COLOR_MAP.secondary, width: 20, shape: CustomBarShape }),
12395
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_recharts3.Bar, { dataKey: "low", fill: COLOR_MAP.warning, width: 20, shape: CustomBarShape })
12396
+ ]
12397
+ }
12398
+ ) })
12364
12399
  ] });
12365
12400
  });
12366
12401
  BarChartComponent.displayName = "barChart";
12367
12402
  var barChart_default = BarChartComponent;
12368
12403
  var barChartStyle = tv({
12369
12404
  slots: {
12370
- base: ["flex", "flex-col", "gap-[10px]"],
12405
+ base: ["flex", "flex-col", "gap-[10px]", "select-none"],
12371
12406
  label: ["text-md", "font-bold", "text-body-foreground"]
12372
12407
  },
12373
12408
  variants: {},
package/dist/index.mjs CHANGED
@@ -2,11 +2,16 @@
2
2
  import "./chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
- } from "./chunk-KOELCZTB.mjs";
6
- import "./chunk-RRAZM5D3.mjs";
5
+ } from "./chunk-5AEN7QTL.mjs";
6
+ import "./chunk-LUWGOKLG.mjs";
7
7
  import {
8
- textarea_default
9
- } from "./chunk-3HXNAVAN.mjs";
8
+ ToastProvider,
9
+ useToast
10
+ } from "./chunk-MTQGHQ7Z.mjs";
11
+ import "./chunk-ZOTHPHXA.mjs";
12
+ import {
13
+ toast_default
14
+ } from "./chunk-EDAREIAN.mjs";
10
15
  import "./chunk-HIE2YRGA.mjs";
11
16
  import {
12
17
  tooltip_default
@@ -16,20 +21,15 @@ import "./chunk-WSIADHVC.mjs";
16
21
  import "./chunk-DX3KXNP6.mjs";
17
22
  import {
18
23
  table_default
19
- } from "./chunk-77EXMT5I.mjs";
24
+ } from "./chunk-TMHYS2DC.mjs";
20
25
  import "./chunk-3MY6LO7N.mjs";
21
26
  import {
22
27
  tabs_default
23
28
  } from "./chunk-NBJHZ4X2.mjs";
24
- import "./chunk-LUWGOKLG.mjs";
25
- import {
26
- ToastProvider,
27
- useToast
28
- } from "./chunk-JFWWH3LL.mjs";
29
+ import "./chunk-RRAZM5D3.mjs";
29
30
  import {
30
- toast_default
31
- } from "./chunk-3KWZHPVV.mjs";
32
- import "./chunk-ZOTHPHXA.mjs";
31
+ textarea_default
32
+ } from "./chunk-3CRSSRCH.mjs";
33
33
  import "./chunk-MZ76AA76.mjs";
34
34
  import {
35
35
  skeleton_default
@@ -40,11 +40,11 @@ import {
40
40
  } from "./chunk-AGE57VDD.mjs";
41
41
  import {
42
42
  definition_table_default
43
- } from "./chunk-KY3W7MBV.mjs";
43
+ } from "./chunk-3M6VYLOU.mjs";
44
44
  import "./chunk-TPFN22HR.mjs";
45
45
  import {
46
46
  radio_default
47
- } from "./chunk-AS2CSVBQ.mjs";
47
+ } from "./chunk-FF56E2UQ.mjs";
48
48
  import "./chunk-DQRAFUDA.mjs";
49
49
  import {
50
50
  scrollArea_default
@@ -52,19 +52,19 @@ import {
52
52
  import "./chunk-7B7LRG5J.mjs";
53
53
  import {
54
54
  pagination_default
55
- } from "./chunk-TLOKYBIC.mjs";
55
+ } from "./chunk-UNYKQTEP.mjs";
56
56
  import "./chunk-F3HENRVM.mjs";
57
57
  import "./chunk-ZG4WRZOU.mjs";
58
58
  import {
59
59
  datePicker_default
60
- } from "./chunk-K4XJAP6G.mjs";
60
+ } from "./chunk-2VQM2ZBF.mjs";
61
61
  import {
62
62
  timePicker_default
63
- } from "./chunk-LXDKYJ5H.mjs";
63
+ } from "./chunk-AHBBUMPX.mjs";
64
64
  import "./chunk-QCEKPS7U.mjs";
65
65
  import {
66
66
  select_default
67
- } from "./chunk-S6ZXK2UP.mjs";
67
+ } from "./chunk-QREBEXKF.mjs";
68
68
  import "./chunk-FWFEKWWD.mjs";
69
69
  import "./chunk-7MVEAQ7Z.mjs";
70
70
  import {
@@ -72,11 +72,11 @@ import {
72
72
  } from "./chunk-3IILPVRA.mjs";
73
73
  import {
74
74
  listItem_default
75
- } from "./chunk-OMVVASRP.mjs";
75
+ } from "./chunk-BFZ6OTVA.mjs";
76
76
  import "./chunk-DJOG6Z35.mjs";
77
77
  import {
78
78
  modal_default
79
- } from "./chunk-3ER5WNGC.mjs";
79
+ } from "./chunk-CEMBGO4V.mjs";
80
80
  import "./chunk-MGEWSREV.mjs";
81
81
  import {
82
82
  chip_default
@@ -84,60 +84,60 @@ import {
84
84
  import "./chunk-32GA3YW4.mjs";
85
85
  import {
86
86
  drawer_default
87
- } from "./chunk-NO6RDCY7.mjs";
87
+ } from "./chunk-S7Y7XUBL.mjs";
88
88
  import "./chunk-RLXOHILK.mjs";
89
89
  import {
90
90
  fileUpload_default
91
- } from "./chunk-I7QMOYZO.mjs";
91
+ } from "./chunk-NEBMBSKV.mjs";
92
92
  import "./chunk-7VOQKIIK.mjs";
93
93
  import {
94
94
  progress_default
95
- } from "./chunk-AZ5SQYZE.mjs";
95
+ } from "./chunk-2CLPU5LR.mjs";
96
96
  import "./chunk-2GCSFWHD.mjs";
97
97
  import {
98
98
  input_default
99
- } from "./chunk-PYCIG6N3.mjs";
99
+ } from "./chunk-L3WKBOWY.mjs";
100
100
  import "./chunk-VYNBJBXD.mjs";
101
101
  import {
102
102
  areaChart_default
103
103
  } from "./chunk-WIZDHK4O.mjs";
104
104
  import {
105
105
  barChart_default
106
- } from "./chunk-GAZ472ZU.mjs";
106
+ } from "./chunk-CF7LIQF6.mjs";
107
107
  import {
108
108
  circularProgress_default
109
- } from "./chunk-ZWLRSZTC.mjs";
109
+ } from "./chunk-KIN2UK2C.mjs";
110
110
  import {
111
111
  radarChart_default
112
112
  } from "./chunk-63KZGR73.mjs";
113
113
  import "./chunk-QZ3LVYJW.mjs";
114
114
  import {
115
115
  checkbox_default
116
- } from "./chunk-TMI3QBKD.mjs";
116
+ } from "./chunk-H6JGLPPF.mjs";
117
117
  import "./chunk-SE5TU755.mjs";
118
118
  import {
119
119
  backdrop_default
120
- } from "./chunk-NUELPELQ.mjs";
120
+ } from "./chunk-AF4I7ZQS.mjs";
121
121
  import "./chunk-KYIODWXL.mjs";
122
122
  import {
123
123
  breadcrumb_default
124
- } from "./chunk-H6G6INED.mjs";
124
+ } from "./chunk-7YCUFFKZ.mjs";
125
125
  import "./chunk-MY5U63QO.mjs";
126
126
  import {
127
127
  text_button_default
128
- } from "./chunk-XHSTRFLS.mjs";
128
+ } from "./chunk-Q364C3FI.mjs";
129
129
  import {
130
130
  button_group_default
131
131
  } from "./chunk-ITWKPTSD.mjs";
132
132
  import {
133
133
  button_default
134
- } from "./chunk-4NVZMJGS.mjs";
134
+ } from "./chunk-AX3FVJMY.mjs";
135
135
  import {
136
136
  icon_button_default
137
- } from "./chunk-2PZRTIRD.mjs";
137
+ } from "./chunk-WKMBRUGX.mjs";
138
138
  import "./chunk-6WSACUIB.mjs";
139
139
  import "./chunk-LXHUO6VM.mjs";
140
- import "./chunk-6PNKRBUT.mjs";
140
+ import "./chunk-SZL743JC.mjs";
141
141
  import "./chunk-ZYIIXWVY.mjs";
142
142
  import {
143
143
  Icon_default,
@@ -150,18 +150,18 @@ import {
150
150
  import {
151
151
  accordionItem_default
152
152
  } from "./chunk-I3ADJOUT.mjs";
153
+ import "./chunk-E3G5QXSH.mjs";
153
154
  import "./chunk-7DLOYKVC.mjs";
154
155
  import {
155
156
  avatar_default
156
157
  } from "./chunk-MLD6EZAE.mjs";
157
158
  import "./chunk-DDJ2EU3P.mjs";
158
- import "./chunk-3V4HT2K5.mjs";
159
- import "./chunk-27Y6K5NK.mjs";
160
- import "./chunk-E3G5QXSH.mjs";
161
159
  import {
162
160
  deepnoidUi,
163
161
  tv
164
162
  } from "./chunk-CDXBML6O.mjs";
163
+ import "./chunk-3V4HT2K5.mjs";
164
+ import "./chunk-27Y6K5NK.mjs";
165
165
  import "./chunk-AC6TWLRT.mjs";
166
166
  export {
167
167
  accordion_default as Accordion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.1.113",
3
+ "version": "0.1.115",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -1,107 +0,0 @@
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 OUTER_RADIUS = 75;
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", style: { width: size, height: size }, 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: OUTER_RADIUS,
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
- label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
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
- label: ["text-md", "font-bold", "text-left", "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,13 +1,13 @@
1
1
  "use client";
2
- import {
3
- useIsMounted
4
- } from "./chunk-3V4HT2K5.mjs";
5
2
  import {
6
3
  mapPropsVariants
7
4
  } from "./chunk-E3G5QXSH.mjs";
8
5
  import {
9
6
  tv
10
7
  } from "./chunk-CDXBML6O.mjs";
8
+ import {
9
+ useIsMounted
10
+ } from "./chunk-3V4HT2K5.mjs";
11
11
 
12
12
  // src/components/progress/progress.tsx
13
13
  import { useMemo } from "react";
@@ -6,15 +6,15 @@ import {
6
6
  import {
7
7
  Icon_default
8
8
  } from "./chunk-FU4CDBVG.mjs";
9
- import {
10
- clsx
11
- } from "./chunk-27Y6K5NK.mjs";
12
9
  import {
13
10
  mapPropsVariants
14
11
  } from "./chunk-E3G5QXSH.mjs";
15
12
  import {
16
13
  tv
17
14
  } from "./chunk-CDXBML6O.mjs";
15
+ import {
16
+ clsx
17
+ } from "./chunk-27Y6K5NK.mjs";
18
18
 
19
19
  // src/components/picker/datePicker.tsx
20
20
  import React, { forwardRef, useCallback, useMemo, useState, useRef, useEffect } from "react";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- clsx
4
- } from "./chunk-27Y6K5NK.mjs";
5
2
  import {
6
3
  mapPropsVariants
7
4
  } from "./chunk-E3G5QXSH.mjs";
5
+ import {
6
+ clsx
7
+ } from "./chunk-27Y6K5NK.mjs";
8
8
 
9
9
  // src/components/textarea/textarea.tsx
10
10
  import {
@@ -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-CDXBML6O.mjs";
5
+ import {
6
+ clsx
7
+ } from "./chunk-27Y6K5NK.mjs";
8
8
 
9
9
  // src/components/table/definition-table.tsx
10
10
  import { forwardRef, useMemo } from "react";
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  Icon_default
4
4
  } from "./chunk-FU4CDBVG.mjs";
5
- import {
6
- clsx
7
- } from "./chunk-27Y6K5NK.mjs";
8
5
  import {
9
6
  tv
10
7
  } from "./chunk-CDXBML6O.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,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-CDXBML6O.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";