@deepnoid/ui 0.1.48 → 0.1.50

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 (97) hide show
  1. package/.turbo/turbo-build.log +203 -198
  2. package/dist/{chunk-O6YBE7V3.mjs → chunk-25QOEKXS.mjs} +3 -3
  3. package/dist/chunk-76B5LZBM.mjs +129 -0
  4. package/dist/{chunk-KJMJIFPS.mjs → chunk-BPEMHZH3.mjs} +1 -1
  5. package/dist/{chunk-RJ5AGYX2.mjs → chunk-C7AFIF2M.mjs} +7 -7
  6. package/dist/{chunk-RTJZEFLZ.mjs → chunk-IBI3OVQI.mjs} +3 -3
  7. package/dist/{chunk-LR3SWRB4.mjs → chunk-IC25OKBJ.mjs} +5 -5
  8. package/dist/{chunk-QK2OK7WS.mjs → chunk-KYJTZPXY.mjs} +2 -2
  9. package/dist/{chunk-ZSG4NGLK.mjs → chunk-MCNCHQ33.mjs} +4 -4
  10. package/dist/{chunk-SBL6IHEW.mjs → chunk-P7YYNA6L.mjs} +1 -1
  11. package/dist/{chunk-L2VA3ACH.mjs → chunk-PXIVYA5G.mjs} +1 -1
  12. package/dist/{chunk-JLRQLPXR.mjs → chunk-RIW4TT6V.mjs} +6 -6
  13. package/dist/{chunk-FEAPUDMZ.mjs → chunk-U2NPH2O3.mjs} +7 -7
  14. package/dist/chunk-ZOENHWSZ.mjs +147 -0
  15. package/dist/components/backdrop/backdrop.mjs +2 -2
  16. package/dist/components/backdrop/index.mjs +2 -2
  17. package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
  18. package/dist/components/breadcrumb/index.mjs +5 -5
  19. package/dist/components/button/button.mjs +2 -2
  20. package/dist/components/button/icon-button.mjs +2 -2
  21. package/dist/components/button/index.mjs +4 -4
  22. package/dist/components/button/text-button.mjs +2 -2
  23. package/dist/components/charts/{areaCharts.d.mts → areaChart.d.mts} +8 -4
  24. package/dist/components/charts/{areaCharts.d.ts → areaChart.d.ts} +8 -4
  25. package/dist/components/charts/{areaCharts.js → areaChart.js} +70 -66
  26. package/dist/components/charts/{areaCharts.mjs → areaChart.mjs} +4 -4
  27. package/dist/components/charts/barChart.d.mts +33 -0
  28. package/dist/components/charts/barChart.d.ts +33 -0
  29. package/dist/components/charts/barChart.js +464 -0
  30. package/dist/components/charts/barChart.mjs +10 -0
  31. package/dist/components/charts/circularProgress.d.mts +4 -4
  32. package/dist/components/charts/circularProgress.d.ts +4 -4
  33. package/dist/components/charts/circularProgress.js +4 -4
  34. package/dist/components/charts/circularProgress.mjs +2 -2
  35. package/dist/components/charts/index.d.mts +2 -1
  36. package/dist/components/charts/index.d.ts +2 -1
  37. package/dist/components/charts/index.js +189 -65
  38. package/dist/components/charts/index.mjs +10 -6
  39. package/dist/components/checkbox/checkbox.mjs +2 -2
  40. package/dist/components/checkbox/index.mjs +2 -2
  41. package/dist/components/chip/chip.mjs +2 -2
  42. package/dist/components/chip/index.mjs +2 -2
  43. package/dist/components/dateTimePicker/calendar.mjs +2 -2
  44. package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
  45. package/dist/components/dateTimePicker/index.mjs +7 -7
  46. package/dist/components/dateTimePicker/timePicker.mjs +4 -4
  47. package/dist/components/fileUpload/fileUpload.mjs +6 -6
  48. package/dist/components/fileUpload/index.mjs +6 -6
  49. package/dist/components/input/index.mjs +2 -2
  50. package/dist/components/input/input.mjs +2 -2
  51. package/dist/components/list/index.mjs +3 -3
  52. package/dist/components/list/list.mjs +2 -2
  53. package/dist/components/list/listItem.mjs +2 -2
  54. package/dist/components/modal/index.mjs +6 -6
  55. package/dist/components/modal/modal.mjs +6 -6
  56. package/dist/components/pagination/index.mjs +3 -3
  57. package/dist/components/pagination/pagination.mjs +3 -3
  58. package/dist/components/radio/index.mjs +2 -2
  59. package/dist/components/radio/radio.mjs +2 -2
  60. package/dist/components/select/index.mjs +2 -2
  61. package/dist/components/select/select.mjs +2 -2
  62. package/dist/components/table/index.mjs +9 -9
  63. package/dist/components/table/table-body.mjs +3 -3
  64. package/dist/components/table/table-head.mjs +3 -3
  65. package/dist/components/table/table.mjs +9 -9
  66. package/dist/components/tabs/index.mjs +2 -2
  67. package/dist/components/tabs/tabs.mjs +2 -2
  68. package/dist/components/toast/index.mjs +4 -4
  69. package/dist/components/toast/toast.mjs +2 -2
  70. package/dist/components/toast/use-toast.mjs +3 -3
  71. package/dist/components/tooltip/index.mjs +2 -2
  72. package/dist/components/tooltip/tooltip.mjs +2 -2
  73. package/dist/components/tree/index.mjs +2 -2
  74. package/dist/components/tree/tree.mjs +2 -2
  75. package/dist/index.d.mts +2 -1
  76. package/dist/index.d.ts +2 -1
  77. package/dist/index.js +189 -65
  78. package/dist/index.mjs +63 -59
  79. package/package.json +1 -1
  80. package/dist/chunk-VYLYF6G5.mjs +0 -143
  81. package/dist/{chunk-SSMMWMQC.mjs → chunk-2YMAKIZ6.mjs} +3 -3
  82. package/dist/{chunk-6K3E5BVO.mjs → chunk-7TAGGLNY.mjs} +3 -3
  83. package/dist/{chunk-X6D7C7QZ.mjs → chunk-A7RU3FU5.mjs} +3 -3
  84. package/dist/{chunk-YLRYHUTW.mjs → chunk-D6QI3DJG.mjs} +3 -3
  85. package/dist/{chunk-R62HK726.mjs → chunk-GH6CPGFN.mjs} +3 -3
  86. package/dist/{chunk-UFVQPPPW.mjs → chunk-HIVPDIEP.mjs} +3 -3
  87. package/dist/{chunk-P5QCU457.mjs → chunk-LL6F3WDX.mjs} +3 -3
  88. package/dist/{chunk-7W2ZI2DD.mjs → chunk-MEY4IL7D.mjs} +3 -3
  89. package/dist/{chunk-WPIFIRCJ.mjs → chunk-NFQMXW4Z.mjs} +3 -3
  90. package/dist/{chunk-33LANVZV.mjs → chunk-QIRL6HY6.mjs} +3 -3
  91. package/dist/{chunk-W45H2ZMW.mjs → chunk-RT3S3VVJ.mjs} +3 -3
  92. package/dist/{chunk-7J3KVOTS.mjs → chunk-UB4YBFOT.mjs} +3 -3
  93. package/dist/{chunk-2PKM7SLZ.mjs → chunk-WFMFC7R6.mjs} +3 -3
  94. package/dist/{chunk-Y6XQTWB5.mjs → chunk-WLNLVX7Q.mjs} +3 -3
  95. package/dist/{chunk-3YMMVZDL.mjs → chunk-XOH6GWRD.mjs} +0 -0
  96. package/dist/{chunk-IL5ENWCR.mjs → chunk-Z2537DF6.mjs} +3 -3
  97. package/dist/{chunk-XWBAGKP6.mjs → chunk-ZYWQWFVT.mjs} +3 -3
@@ -8,7 +8,8 @@ type AreaData = {
8
8
  value: number;
9
9
  };
10
10
  type Props = {
11
- areaData?: AreaData[];
11
+ data?: AreaData[];
12
+ label?: string;
12
13
  classNames?: SlotsToClasses<AreaChartSlots>;
13
14
  };
14
15
  type AreaChartProps = Props & AreaChartVariantProps;
@@ -24,9 +25,10 @@ declare const areaChartStyle: tailwind_variants.TVReturnType<{
24
25
  };
25
26
  };
26
27
  }, {
27
- base: never[];
28
+ base: string[];
28
29
  color: never[];
29
30
  axis: string[];
31
+ label: string[];
30
32
  }, undefined, {
31
33
  color: {
32
34
  primary: {
@@ -37,9 +39,10 @@ declare const areaChartStyle: tailwind_variants.TVReturnType<{
37
39
  };
38
40
  };
39
41
  }, {
40
- base: never[];
42
+ base: string[];
41
43
  color: never[];
42
44
  axis: string[];
45
+ label: string[];
43
46
  }, tailwind_variants.TVReturnType<{
44
47
  color: {
45
48
  primary: {
@@ -50,9 +53,10 @@ declare const areaChartStyle: tailwind_variants.TVReturnType<{
50
53
  };
51
54
  };
52
55
  }, {
53
- base: never[];
56
+ base: string[];
54
57
  color: never[];
55
58
  axis: string[];
59
+ label: string[];
56
60
  }, undefined, unknown, unknown, undefined>>;
57
61
  type AreaChartVariantProps = VariantProps<typeof areaChartStyle>;
58
62
  type AreaChartSlots = keyof ReturnType<typeof areaChartStyle>;
@@ -8,7 +8,8 @@ type AreaData = {
8
8
  value: number;
9
9
  };
10
10
  type Props = {
11
- areaData?: AreaData[];
11
+ data?: AreaData[];
12
+ label?: string;
12
13
  classNames?: SlotsToClasses<AreaChartSlots>;
13
14
  };
14
15
  type AreaChartProps = Props & AreaChartVariantProps;
@@ -24,9 +25,10 @@ declare const areaChartStyle: tailwind_variants.TVReturnType<{
24
25
  };
25
26
  };
26
27
  }, {
27
- base: never[];
28
+ base: string[];
28
29
  color: never[];
29
30
  axis: string[];
31
+ label: string[];
30
32
  }, undefined, {
31
33
  color: {
32
34
  primary: {
@@ -37,9 +39,10 @@ declare const areaChartStyle: tailwind_variants.TVReturnType<{
37
39
  };
38
40
  };
39
41
  }, {
40
- base: never[];
42
+ base: string[];
41
43
  color: never[];
42
44
  axis: string[];
45
+ label: string[];
43
46
  }, tailwind_variants.TVReturnType<{
44
47
  color: {
45
48
  primary: {
@@ -50,9 +53,10 @@ declare const areaChartStyle: tailwind_variants.TVReturnType<{
50
53
  };
51
54
  };
52
55
  }, {
53
- base: never[];
56
+ base: string[];
54
57
  color: never[];
55
58
  axis: string[];
59
+ label: string[];
56
60
  }, undefined, unknown, unknown, undefined>>;
57
61
  type AreaChartVariantProps = VariantProps<typeof areaChartStyle>;
58
62
  type AreaChartSlots = keyof ReturnType<typeof areaChartStyle>;
@@ -99,12 +99,12 @@ var require_plugin = __commonJS({
99
99
  }
100
100
  });
101
101
 
102
- // src/components/charts/areaCharts.tsx
103
- var areaCharts_exports = {};
104
- __export(areaCharts_exports, {
105
- default: () => areaCharts_default
102
+ // src/components/charts/areaChart.tsx
103
+ var areaChart_exports = {};
104
+ __export(areaChart_exports, {
105
+ default: () => areaChart_default
106
106
  });
107
- module.exports = __toCommonJS(areaCharts_exports);
107
+ module.exports = __toCommonJS(areaChart_exports);
108
108
  var import_react = require("react");
109
109
 
110
110
  // src/utils/tailwind-variants.ts
@@ -324,7 +324,7 @@ var tv = (0, import_tailwind_variants.createTV)({
324
324
  }
325
325
  });
326
326
 
327
- // src/components/charts/areaCharts.tsx
327
+ // src/components/charts/areaChart.tsx
328
328
  var import_recharts = require("recharts");
329
329
 
330
330
  // src/utils/props.ts
@@ -347,12 +347,12 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
347
347
  }
348
348
  };
349
349
 
350
- // src/components/charts/areaCharts.tsx
350
+ // src/components/charts/areaChart.tsx
351
351
  var import_jsx_runtime = require("react/jsx-runtime");
352
352
  var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
353
353
  const uniqueId = (0, import_react.useId)();
354
354
  const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
355
- const { areaData, color = "primary", classNames } = { ...props, ...variantProps };
355
+ const { data, label, color = "primary", classNames } = { ...props, ...variantProps };
356
356
  const slots = (0, import_react.useMemo)(() => areaChartStyle({ ...variantProps }), [variantProps]);
357
357
  const COLOR_MAP = {
358
358
  primary: "#3F9CF2",
@@ -390,7 +390,7 @@ var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
390
390
  tickRef.current = [];
391
391
  });
392
392
  return () => cancelAnimationFrame(raf);
393
- }, [areaData]);
393
+ }, [data]);
394
394
  const CustomDotWithShadow = (props2) => {
395
395
  const { cx, cy, fill, stroke } = props2;
396
396
  if (cx === void 0 || cy === void 0) return null;
@@ -399,68 +399,72 @@ var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
399
399
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
400
400
  ] });
401
401
  };
402
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_recharts.AreaChart, { data: areaData, children: [
403
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
404
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
405
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
406
- ] }) }),
407
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
408
- import_recharts.CartesianGrid,
409
- {
410
- vertical: true,
411
- horizontal: false,
412
- strokeDasharray: "3 3",
413
- className: "stroke-neutral-light",
414
- verticalPoints: tickPositions
415
- }
416
- ),
417
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
418
- import_recharts.XAxis,
419
- {
420
- dataKey: "name",
421
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
422
- tickLine: false,
423
- tick: CustomTick,
424
- padding: { left: 35.5, right: 35.5 }
425
- }
426
- ),
427
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
428
- import_recharts.YAxis,
429
- {
430
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
431
- tickLine: false,
432
- tick: {
433
- fontSize: 12,
434
- fontWeight: 700,
435
- fill: "text-body-foreground",
436
- textAnchor: "middle",
437
- dx: -10
438
- },
439
- ticks: [0, 20, 40, 60, 80, 100],
440
- domain: [-10, 110]
441
- }
442
- ),
443
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
444
- import_recharts.Area,
445
- {
446
- type: "monotone",
447
- dataKey: "value",
448
- stroke: colorHex,
449
- strokeWidth: 2,
450
- fill: `url(#colorGradient-${uniqueId})`,
451
- dot: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
452
- activeDot: { r: 7, fill: colorHex }
453
- }
454
- )
455
- ] }) }) });
402
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
403
+ label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
404
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_recharts.AreaChart, { data, margin: { left: -30 }, children: [
405
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
406
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
407
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
408
+ ] }) }),
409
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
410
+ import_recharts.CartesianGrid,
411
+ {
412
+ vertical: true,
413
+ horizontal: false,
414
+ strokeDasharray: "3 3",
415
+ className: "stroke-neutral-light",
416
+ verticalPoints: tickPositions
417
+ }
418
+ ),
419
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
420
+ import_recharts.XAxis,
421
+ {
422
+ dataKey: "name",
423
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
424
+ tickLine: false,
425
+ tick: CustomTick,
426
+ padding: { left: 35.5, right: 35.5 }
427
+ }
428
+ ),
429
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
430
+ import_recharts.YAxis,
431
+ {
432
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
433
+ tickLine: false,
434
+ tick: {
435
+ fontSize: 12,
436
+ fontWeight: 700,
437
+ fill: "text-body-foreground",
438
+ textAnchor: "middle",
439
+ dx: -10
440
+ },
441
+ ticks: [0, 20, 40, 60, 80, 100],
442
+ domain: [-6, 110]
443
+ }
444
+ ),
445
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
446
+ import_recharts.Area,
447
+ {
448
+ type: "monotone",
449
+ dataKey: "value",
450
+ stroke: colorHex,
451
+ strokeWidth: 2,
452
+ fill: `url(#colorGradient-${uniqueId})`,
453
+ dot: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
454
+ activeDot: { r: 7, fill: colorHex }
455
+ }
456
+ )
457
+ ] }) })
458
+ ] });
456
459
  });
457
460
  AreaChartComponent.displayName = "AreaChart";
458
- var areaCharts_default = AreaChartComponent;
461
+ var areaChart_default = AreaChartComponent;
459
462
  var areaChartStyle = tv({
460
463
  slots: {
461
- base: [],
464
+ base: ["flex", "flex-col", "gap-[10px]"],
462
465
  color: [],
463
- axis: ["text-sm", "font-bold", "text-center", "text-body-foreground"]
466
+ axis: ["text-sm", "font-bold", "text-center", "text-body-foreground"],
467
+ label: ["text-md", "font-bold", "text-body-foreground"]
464
468
  },
465
469
  variants: {
466
470
  color: {
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
- areaCharts_default
4
- } from "../../chunk-VYLYF6G5.mjs";
5
- import "../../chunk-E3G5QXSH.mjs";
3
+ areaChart_default
4
+ } from "../../chunk-ZOENHWSZ.mjs";
6
5
  import "../../chunk-4ZJFD3L3.mjs";
6
+ import "../../chunk-E3G5QXSH.mjs";
7
7
  import "../../chunk-AC6TWLRT.mjs";
8
8
  export {
9
- areaCharts_default as default
9
+ areaChart_default as default
10
10
  };
@@ -0,0 +1,33 @@
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 BarData = {
7
+ name: string;
8
+ avg: number;
9
+ high: number;
10
+ low: number;
11
+ };
12
+ type Props = {
13
+ data?: BarData[];
14
+ label?: string;
15
+ classNames?: SlotsToClasses<barChartSlots>;
16
+ };
17
+ type barChartProps = Props & barChartVariantProps;
18
+ declare const BarChartComponent: react.ForwardRefExoticComponent<Props & barChartVariantProps & react.RefAttributes<HTMLDivElement>>;
19
+
20
+ declare const barChartStyle: tailwind_variants.TVReturnType<{}, {
21
+ base: string[];
22
+ label: string[];
23
+ }, undefined, {}, {
24
+ base: string[];
25
+ label: string[];
26
+ }, tailwind_variants.TVReturnType<{}, {
27
+ base: string[];
28
+ label: string[];
29
+ }, undefined, unknown, unknown, undefined>>;
30
+ type barChartVariantProps = VariantProps<typeof barChartStyle>;
31
+ type barChartSlots = keyof ReturnType<typeof barChartStyle>;
32
+
33
+ export { type barChartProps, BarChartComponent as default };
@@ -0,0 +1,33 @@
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 BarData = {
7
+ name: string;
8
+ avg: number;
9
+ high: number;
10
+ low: number;
11
+ };
12
+ type Props = {
13
+ data?: BarData[];
14
+ label?: string;
15
+ classNames?: SlotsToClasses<barChartSlots>;
16
+ };
17
+ type barChartProps = Props & barChartVariantProps;
18
+ declare const BarChartComponent: react.ForwardRefExoticComponent<Props & barChartVariantProps & react.RefAttributes<HTMLDivElement>>;
19
+
20
+ declare const barChartStyle: tailwind_variants.TVReturnType<{}, {
21
+ base: string[];
22
+ label: string[];
23
+ }, undefined, {}, {
24
+ base: string[];
25
+ label: string[];
26
+ }, tailwind_variants.TVReturnType<{}, {
27
+ base: string[];
28
+ label: string[];
29
+ }, undefined, unknown, unknown, undefined>>;
30
+ type barChartVariantProps = VariantProps<typeof barChartStyle>;
31
+ type barChartSlots = keyof ReturnType<typeof barChartStyle>;
32
+
33
+ export { type barChartProps, BarChartComponent as default };