@deepnoid/ui 0.1.126 → 0.1.128

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 (87) hide show
  1. package/.turbo/turbo-build.log +189 -189
  2. package/dist/{chunk-4WHX4RXX.mjs → chunk-2OTW3LHJ.mjs} +1 -1
  3. package/dist/{chunk-KP2KOY5Z.mjs → chunk-DRQQKLIE.mjs} +1 -1
  4. package/dist/chunk-FBIG4AGH.mjs +138 -0
  5. package/dist/{chunk-MPUZ5T7X.mjs → chunk-G75QD37P.mjs} +2 -2
  6. package/dist/{chunk-WNNOVISA.mjs → chunk-HUJ5SMJH.mjs} +80 -38
  7. package/dist/{chunk-ANILRUAS.mjs → chunk-JCPTLQ2B.mjs} +5 -5
  8. package/dist/{chunk-BD4M2FZM.mjs → chunk-JN5LH5YY.mjs} +2 -2
  9. package/dist/{chunk-5XW5QDIW.mjs → chunk-NCK5E2NL.mjs} +1 -1
  10. package/dist/{chunk-IBYQBC6D.mjs → chunk-OWHJOXXX.mjs} +4 -4
  11. package/dist/{chunk-4X67BUPA.mjs → chunk-UPVTVM5V.mjs} +4 -4
  12. package/dist/{chunk-DDK4NEDX.mjs → chunk-ZI2HHPRM.mjs} +1 -1
  13. package/dist/components/backdrop/backdrop.mjs +2 -2
  14. package/dist/components/backdrop/index.mjs +2 -2
  15. package/dist/components/breadcrumb/breadcrumb.mjs +4 -4
  16. package/dist/components/breadcrumb/index.mjs +4 -4
  17. package/dist/components/button/button.mjs +1 -1
  18. package/dist/components/button/icon-button.mjs +1 -1
  19. package/dist/components/button/index.mjs +3 -3
  20. package/dist/components/button/text-button.mjs +2 -2
  21. package/dist/components/charts/areaChart.mjs +1 -1
  22. package/dist/components/charts/barChart.d.mts +4 -4
  23. package/dist/components/charts/barChart.d.ts +4 -4
  24. package/dist/components/charts/barChart.js +80 -40
  25. package/dist/components/charts/barChart.mjs +1 -1
  26. package/dist/components/charts/circularProgress.js +1 -1
  27. package/dist/components/charts/circularProgress.mjs +1 -1
  28. package/dist/components/charts/index.js +80 -38
  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 +1 -1
  33. package/dist/components/chip/index.mjs +1 -1
  34. package/dist/components/drawer/drawer.mjs +2 -2
  35. package/dist/components/drawer/index.mjs +2 -2
  36. package/dist/components/fileUpload/fileUpload.mjs +7 -7
  37. package/dist/components/fileUpload/index.mjs +7 -7
  38. package/dist/components/input/index.mjs +3 -3
  39. package/dist/components/input/input.mjs +3 -3
  40. package/dist/components/list/index.mjs +2 -2
  41. package/dist/components/list/listItem.mjs +2 -2
  42. package/dist/components/modal/index.mjs +5 -5
  43. package/dist/components/modal/modal.mjs +5 -5
  44. package/dist/components/pagination/index.mjs +4 -4
  45. package/dist/components/pagination/pagination.mjs +4 -4
  46. package/dist/components/picker/datePicker.mjs +5 -5
  47. package/dist/components/picker/index.mjs +7 -7
  48. package/dist/components/picker/timePicker.mjs +4 -4
  49. package/dist/components/progress/index.mjs +2 -2
  50. package/dist/components/progress/progress.mjs +2 -2
  51. package/dist/components/radio/index.mjs +2 -2
  52. package/dist/components/radio/radio.mjs +2 -2
  53. package/dist/components/select/index.mjs +3 -3
  54. package/dist/components/select/select.mjs +3 -3
  55. package/dist/components/table/definition-table.d.mts +2 -0
  56. package/dist/components/table/definition-table.d.ts +2 -0
  57. package/dist/components/table/definition-table.js +67 -14
  58. package/dist/components/table/definition-table.mjs +2 -2
  59. package/dist/components/table/index.js +67 -14
  60. package/dist/components/table/index.mjs +9 -9
  61. package/dist/components/table/table-body.mjs +6 -6
  62. package/dist/components/table/table-head.mjs +6 -6
  63. package/dist/components/table/table.mjs +6 -6
  64. package/dist/components/textarea/index.mjs +2 -2
  65. package/dist/components/textarea/textarea.mjs +2 -2
  66. package/dist/components/timePicker/calendar.mjs +1 -1
  67. package/dist/components/toast/index.mjs +4 -4
  68. package/dist/components/toast/toast.mjs +3 -3
  69. package/dist/components/toast/use-toast.mjs +4 -4
  70. package/dist/components/tree/index.mjs +2 -2
  71. package/dist/components/tree/tree.mjs +2 -2
  72. package/dist/index.js +147 -52
  73. package/dist/index.mjs +46 -46
  74. package/package.json +1 -1
  75. package/dist/chunk-SJNXRXV5.mjs +0 -85
  76. package/dist/{chunk-3CRSSRCH.mjs → chunk-3HXNAVAN.mjs} +3 -3
  77. package/dist/{chunk-SDUDU3CU.mjs → chunk-3Q54M5ED.mjs} +3 -3
  78. package/dist/{chunk-JC6635TJ.mjs → chunk-C3R4TUY5.mjs} +3 -3
  79. package/dist/{chunk-J7IIHQNA.mjs → chunk-C4H4V23T.mjs} +3 -3
  80. package/dist/{chunk-ORZW6F6E.mjs → chunk-EMLYTP64.mjs} +3 -3
  81. package/dist/{chunk-3U5NJTRH.mjs → chunk-GNJJUQV2.mjs} +3 -3
  82. package/dist/{chunk-YWLC7KRK.mjs → chunk-M3ZHMKBV.mjs} +3 -3
  83. package/dist/{chunk-ZI3MLO7X.mjs → chunk-M6ODX3GX.mjs} +3 -3
  84. package/dist/{chunk-MCBAEW2Q.mjs → chunk-TEP5V4XL.mjs} +3 -3
  85. package/dist/{chunk-IW2MDZBW.mjs → chunk-UMPLXLIP.mjs} +3 -3
  86. package/dist/{chunk-5XV45JBV.mjs → chunk-UQN223LY.mjs} +3 -3
  87. package/dist/{chunk-5R3ARH2N.mjs → chunk-XBQEL2CR.mjs} +3 -3
@@ -1,85 +0,0 @@
1
- "use client";
2
- import {
3
- tv
4
- } from "./chunk-76QIZILI.mjs";
5
- import {
6
- clsx
7
- } from "./chunk-27Y6K5NK.mjs";
8
-
9
- // src/components/table/definition-table.tsx
10
- import { forwardRef, useMemo } from "react";
11
- import { jsx, jsxs } from "react/jsx-runtime";
12
- var DEFAULT_CELL_CLASSES = "px-[10px] py-[8px] text-md border-r border-neutral-light h-[50px]";
13
- var FIRST_CELL_WIDTH_CLASS = "w-[120px] font-bold text-md text-body-foreground";
14
- var renderColGroup = (rows) => {
15
- let maxCols = 0;
16
- const colWidths = [];
17
- rows.forEach((row) => {
18
- let currentColCount = 0;
19
- row.cells.forEach((cell) => {
20
- currentColCount += cell.colSpan || 1;
21
- });
22
- maxCols = Math.max(maxCols, currentColCount);
23
- });
24
- colWidths[0] = "120px";
25
- rows.forEach((row) => {
26
- let colIndex = 0;
27
- row.cells.forEach((cell) => {
28
- const span = cell.colSpan || 1;
29
- if (colIndex > 0 && cell.width && cell.width !== "auto" && colIndex < maxCols) {
30
- colWidths[colIndex] = cell.width;
31
- }
32
- colIndex += span;
33
- });
34
- });
35
- const cols = [];
36
- for (let i = 0; i < maxCols; i++) {
37
- cols.push(/* @__PURE__ */ jsx("col", { style: colWidths[i] ? { width: colWidths[i] } : { width: "auto" } }, `col-${i}`));
38
- }
39
- return /* @__PURE__ */ jsx("colgroup", { children: cols });
40
- };
41
- var DefinitionTableRow = ({ cells, className }) => /* @__PURE__ */ jsx("tr", { className: `border-neutral-light border-b ${className || ""}`, children: cells.map((cell, colIndex) => {
42
- const isFirstCell = colIndex === 0;
43
- const combinedClassName = [isFirstCell ? FIRST_CELL_WIDTH_CLASS : "", clsx(DEFAULT_CELL_CLASSES, cell.className)].filter(Boolean).join(" ");
44
- let cellStyle;
45
- if (isFirstCell) {
46
- cellStyle = { width: "120px", minWidth: "120px", maxWidth: "120px" };
47
- } else if (cell.width && cell.width !== "auto") {
48
- cellStyle = { width: cell.width, minWidth: cell.width, maxWidth: cell.width };
49
- } else {
50
- cellStyle = { width: "100%" };
51
- }
52
- return /* @__PURE__ */ jsx(
53
- "td",
54
- {
55
- className: combinedClassName,
56
- colSpan: cell.colSpan,
57
- rowSpan: cell.rowSpan,
58
- style: { ...cellStyle, height: "50px" },
59
- children: cell.content
60
- },
61
- colIndex
62
- );
63
- }) });
64
- var DefinitionTable = forwardRef(({ rows = [], footer, classNames }, ref) => {
65
- const slots = useMemo(() => DefinitionTableStyle(), []);
66
- return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
67
- /* @__PURE__ */ jsxs("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
68
- renderColGroup(rows),
69
- /* @__PURE__ */ jsx("tbody", { children: rows.map((row, i) => /* @__PURE__ */ jsx(DefinitionTableRow, { ...row, className: `${row.className || ""} ${i === 0 ? "first-row" : ""}` }, i)) })
70
- ] }),
71
- footer && /* @__PURE__ */ jsx("div", { children: footer })
72
- ] });
73
- });
74
- DefinitionTable.displayName = "DefinitionTable";
75
- var definition_table_default = DefinitionTable;
76
- var DefinitionTableStyle = tv({
77
- slots: {
78
- base: ["flex", "flex-col", "gap-[30px]"],
79
- table: ["w-full", "table-auto", "border", "border-neutral-light"]
80
- }
81
- });
82
-
83
- export {
84
- definition_table_default
85
- };
@@ -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 {
@@ -1,13 +1,13 @@
1
1
  "use client";
2
+ import {
3
+ clsx
4
+ } from "./chunk-27Y6K5NK.mjs";
2
5
  import {
3
6
  mapPropsVariants
4
7
  } from "./chunk-E3G5QXSH.mjs";
5
8
  import {
6
9
  tv
7
10
  } from "./chunk-76QIZILI.mjs";
8
- import {
9
- clsx
10
- } from "./chunk-27Y6K5NK.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-XX2PHROM.mjs";
5
- import {
6
- tv
7
- } from "./chunk-76QIZILI.mjs";
8
5
  import {
9
6
  clsx
10
7
  } from "./chunk-27Y6K5NK.mjs";
8
+ import {
9
+ tv
10
+ } from "./chunk-76QIZILI.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
+ import {
3
+ clsx
4
+ } from "./chunk-27Y6K5NK.mjs";
2
5
  import {
3
6
  mapPropsVariants
4
7
  } from "./chunk-E3G5QXSH.mjs";
5
8
  import {
6
9
  tv
7
10
  } from "./chunk-76QIZILI.mjs";
8
- import {
9
- clsx
10
- } from "./chunk-27Y6K5NK.mjs";
11
11
 
12
12
  // src/components/radio/radio.tsx
13
13
  import { forwardRef, useMemo } from "react";
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  Icon_default
4
4
  } from "./chunk-XX2PHROM.mjs";
5
- import {
6
- mapPropsVariants
7
- } from "./chunk-E3G5QXSH.mjs";
8
5
  import {
9
6
  avatar_default
10
7
  } from "./chunk-BBEOPH6B.mjs";
8
+ import {
9
+ mapPropsVariants
10
+ } from "./chunk-E3G5QXSH.mjs";
11
11
  import {
12
12
  tv
13
13
  } from "./chunk-76QIZILI.mjs";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
+ import {
3
+ clsx
4
+ } from "./chunk-27Y6K5NK.mjs";
2
5
  import {
3
6
  mapPropsVariants
4
7
  } from "./chunk-E3G5QXSH.mjs";
5
8
  import {
6
9
  tv
7
10
  } from "./chunk-76QIZILI.mjs";
8
- import {
9
- clsx
10
- } from "./chunk-27Y6K5NK.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-XX2PHROM.mjs";
5
+ import {
6
+ clsx
7
+ } from "./chunk-27Y6K5NK.mjs";
5
8
  import {
6
9
  mapPropsVariants
7
10
  } from "./chunk-E3G5QXSH.mjs";
8
11
  import {
9
12
  tv
10
13
  } from "./chunk-76QIZILI.mjs";
11
- import {
12
- clsx
13
- } from "./chunk-27Y6K5NK.mjs";
14
14
 
15
15
  // src/components/select/select.tsx
16
16
  import { forwardRef, useMemo, useState, useRef, useEffect } from "react";
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  Icon_default
4
4
  } from "./chunk-XX2PHROM.mjs";
5
+ import {
6
+ clsx
7
+ } from "./chunk-27Y6K5NK.mjs";
5
8
  import {
6
9
  mapPropsVariants
7
10
  } from "./chunk-E3G5QXSH.mjs";
8
11
  import {
9
12
  tv
10
13
  } from "./chunk-76QIZILI.mjs";
11
- import {
12
- clsx
13
- } from "./chunk-27Y6K5NK.mjs";
14
14
 
15
15
  // src/components/input/input.tsx
16
16
  import {
@@ -1,13 +1,13 @@
1
1
  "use client";
2
+ import {
3
+ useIsMounted
4
+ } from "./chunk-3V4HT2K5.mjs";
2
5
  import {
3
6
  mapPropsVariants
4
7
  } from "./chunk-E3G5QXSH.mjs";
5
8
  import {
6
9
  tv
7
10
  } from "./chunk-76QIZILI.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";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- tv
4
- } from "./chunk-76QIZILI.mjs";
5
2
  import {
6
3
  clsx
7
4
  } from "./chunk-27Y6K5NK.mjs";
5
+ import {
6
+ tv
7
+ } from "./chunk-76QIZILI.mjs";
8
8
 
9
9
  // src/components/backdrop/backdrop.tsx
10
10
  import { useEffect, useState } from "react";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
+ import {
3
+ clsx
4
+ } from "./chunk-27Y6K5NK.mjs";
2
5
  import {
3
6
  mapPropsVariants
4
7
  } from "./chunk-E3G5QXSH.mjs";
5
8
  import {
6
9
  tv
7
10
  } from "./chunk-76QIZILI.mjs";
8
- import {
9
- clsx
10
- } from "./chunk-27Y6K5NK.mjs";
11
11
 
12
12
  // src/components/drawer/drawer.tsx
13
13
  import { forwardRef, useMemo, useEffect, useState } from "react";
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  Icon_default
4
4
  } from "./chunk-XX2PHROM.mjs";
5
+ import {
6
+ clsx
7
+ } from "./chunk-27Y6K5NK.mjs";
5
8
  import {
6
9
  mapPropsVariants
7
10
  } from "./chunk-E3G5QXSH.mjs";
8
11
  import {
9
12
  tv
10
13
  } from "./chunk-76QIZILI.mjs";
11
- import {
12
- clsx
13
- } from "./chunk-27Y6K5NK.mjs";
14
14
 
15
15
  // src/components/toast/toast.tsx
16
16
  import { forwardRef, useImperativeHandle, useMemo, useRef } from "react";