@deepnoid/ui 0.1.124 → 0.1.127

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 (125) hide show
  1. package/.turbo/turbo-build.log +469 -461
  2. package/dist/{chunk-WUGITHV6.mjs → chunk-4WHX4RXX.mjs} +3 -3
  3. package/dist/{chunk-QXYGQPY3.mjs → chunk-4X67BUPA.mjs} +2 -2
  4. package/dist/{chunk-TSBG5FXL.mjs → chunk-5R3ARH2N.mjs} +1 -1
  5. package/dist/{chunk-3ZF7LQOM.mjs → chunk-ANILRUAS.mjs} +5 -4
  6. package/dist/{chunk-OL22LVBG.mjs → chunk-BBEOPH6B.mjs} +1 -1
  7. package/dist/{chunk-C5IJSWWJ.mjs → chunk-BD4M2FZM.mjs} +3 -3
  8. package/dist/{chunk-Y3CGQN3I.mjs → chunk-DDK4NEDX.mjs} +2 -2
  9. package/dist/{chunk-WNNOVISA.mjs → chunk-FQJD2IY3.mjs} +79 -37
  10. package/dist/{chunk-BG4DIGKH.mjs → chunk-GQFNYXJZ.mjs} +30 -0
  11. package/dist/{chunk-KRGI6HW7.mjs → chunk-IBYQBC6D.mjs} +114 -33
  12. package/dist/{chunk-WOGNHRNX.mjs → chunk-IT6RD6KS.mjs} +1 -1
  13. package/dist/{chunk-2GFE25AI.mjs → chunk-JC6635TJ.mjs} +1 -1
  14. package/dist/{chunk-KJ7L6CO6.mjs → chunk-KP2KOY5Z.mjs} +1 -1
  15. package/dist/{chunk-HO533YTO.mjs → chunk-MPUZ5T7X.mjs} +10 -10
  16. package/dist/{chunk-5XW5QDIW.mjs → chunk-NCK5E2NL.mjs} +1 -1
  17. package/dist/{chunk-6UKNZTOL.mjs → chunk-OLQJXFHU.mjs} +1 -1
  18. package/dist/{chunk-F4ORNNYB.mjs → chunk-ORZW6F6E.mjs} +2 -2
  19. package/dist/{chunk-3HY74IGR.mjs → chunk-TRLIC34S.mjs} +1 -1
  20. package/dist/chunk-WC5PVVT6.mjs +138 -0
  21. package/dist/{chunk-YZ57UYAS.mjs → chunk-XX2PHROM.mjs} +1 -1
  22. package/dist/{chunk-LX7NPKFE.mjs → chunk-YWLC7KRK.mjs} +1 -2
  23. package/dist/{chunk-HKONMHXA.mjs → chunk-ZI3MLO7X.mjs} +1 -1
  24. package/dist/components/avatar/avatar.js +30 -0
  25. package/dist/components/avatar/avatar.mjs +2 -2
  26. package/dist/components/avatar/index.js +30 -0
  27. package/dist/components/avatar/index.mjs +2 -2
  28. package/dist/components/breadcrumb/breadcrumb.js +30 -0
  29. package/dist/components/breadcrumb/breadcrumb.mjs +6 -6
  30. package/dist/components/breadcrumb/index.js +30 -0
  31. package/dist/components/breadcrumb/index.mjs +6 -6
  32. package/dist/components/button/button.js +30 -0
  33. package/dist/components/button/button.mjs +3 -3
  34. package/dist/components/button/icon-button.js +30 -0
  35. package/dist/components/button/icon-button.mjs +3 -3
  36. package/dist/components/button/index.js +30 -0
  37. package/dist/components/button/index.mjs +7 -7
  38. package/dist/components/charts/barChart.d.mts +4 -4
  39. package/dist/components/charts/barChart.d.ts +4 -4
  40. package/dist/components/charts/barChart.js +79 -39
  41. package/dist/components/charts/barChart.mjs +1 -1
  42. package/dist/components/charts/circularProgress.js +1 -1
  43. package/dist/components/charts/circularProgress.mjs +1 -1
  44. package/dist/components/charts/index.js +79 -37
  45. package/dist/components/charts/index.mjs +5 -5
  46. package/dist/components/chip/chip.js +30 -0
  47. package/dist/components/chip/chip.mjs +3 -3
  48. package/dist/components/chip/index.js +30 -0
  49. package/dist/components/chip/index.mjs +3 -3
  50. package/dist/components/fileUpload/fileUpload.js +30 -0
  51. package/dist/components/fileUpload/fileUpload.mjs +7 -7
  52. package/dist/components/fileUpload/index.js +30 -0
  53. package/dist/components/fileUpload/index.mjs +7 -7
  54. package/dist/components/icon/Icon.d.mts +4 -0
  55. package/dist/components/icon/Icon.d.ts +4 -0
  56. package/dist/components/icon/Icon.js +30 -0
  57. package/dist/components/icon/Icon.mjs +2 -2
  58. package/dist/components/icon/index.js +30 -0
  59. package/dist/components/icon/index.mjs +2 -2
  60. package/dist/components/icon/template.d.mts +1 -0
  61. package/dist/components/icon/template.d.ts +1 -0
  62. package/dist/components/icon/template.js +30 -0
  63. package/dist/components/icon/template.mjs +1 -1
  64. package/dist/components/input/index.js +30 -0
  65. package/dist/components/input/index.mjs +3 -3
  66. package/dist/components/input/input.js +30 -0
  67. package/dist/components/input/input.mjs +3 -3
  68. package/dist/components/list/index.js +30 -0
  69. package/dist/components/list/index.mjs +4 -4
  70. package/dist/components/list/listItem.js +30 -0
  71. package/dist/components/list/listItem.mjs +4 -4
  72. package/dist/components/modal/index.js +30 -0
  73. package/dist/components/modal/index.mjs +6 -6
  74. package/dist/components/modal/modal.js +30 -0
  75. package/dist/components/modal/modal.mjs +6 -6
  76. package/dist/components/pagination/index.js +141 -29
  77. package/dist/components/pagination/index.mjs +4 -4
  78. package/dist/components/pagination/pagination.d.mts +1 -1
  79. package/dist/components/pagination/pagination.d.ts +1 -1
  80. package/dist/components/pagination/pagination.js +142 -35
  81. package/dist/components/pagination/pagination.mjs +5 -7
  82. package/dist/components/picker/datePicker.js +30 -0
  83. package/dist/components/picker/datePicker.mjs +8 -8
  84. package/dist/components/picker/index.js +30 -1
  85. package/dist/components/picker/index.mjs +10 -10
  86. package/dist/components/picker/timePicker.js +30 -1
  87. package/dist/components/picker/timePicker.mjs +4 -4
  88. package/dist/components/select/index.js +30 -1
  89. package/dist/components/select/index.mjs +3 -3
  90. package/dist/components/select/select.js +30 -1
  91. package/dist/components/select/select.mjs +3 -3
  92. package/dist/components/table/definition-table.d.mts +2 -0
  93. package/dist/components/table/definition-table.d.ts +2 -0
  94. package/dist/components/table/definition-table.js +67 -14
  95. package/dist/components/table/definition-table.mjs +1 -1
  96. package/dist/components/table/index.js +209 -43
  97. package/dist/components/table/index.mjs +10 -10
  98. package/dist/components/table/table-body.js +142 -29
  99. package/dist/components/table/table-body.mjs +7 -7
  100. package/dist/components/table/table-head.js +142 -29
  101. package/dist/components/table/table-head.mjs +7 -7
  102. package/dist/components/table/table.js +142 -29
  103. package/dist/components/table/table.mjs +7 -7
  104. package/dist/components/timePicker/calendar.d.mts +72 -0
  105. package/dist/components/timePicker/calendar.d.ts +72 -0
  106. package/dist/components/timePicker/calendar.js +5360 -0
  107. package/dist/components/timePicker/calendar.mjs +300 -0
  108. package/dist/components/timePicker/useDateTimePicker.d.mts +38 -0
  109. package/dist/components/timePicker/useDateTimePicker.d.ts +38 -0
  110. package/dist/components/timePicker/useDateTimePicker.js +126 -0
  111. package/dist/components/timePicker/useDateTimePicker.mjs +96 -0
  112. package/dist/components/toast/index.js +30 -0
  113. package/dist/components/toast/index.mjs +4 -4
  114. package/dist/components/toast/toast.js +30 -0
  115. package/dist/components/toast/toast.mjs +3 -3
  116. package/dist/components/toast/use-toast.js +30 -0
  117. package/dist/components/toast/use-toast.mjs +4 -4
  118. package/dist/components/tree/index.js +30 -0
  119. package/dist/components/tree/index.mjs +3 -3
  120. package/dist/components/tree/tree.js +30 -0
  121. package/dist/components/tree/tree.mjs +3 -3
  122. package/dist/index.js +288 -81
  123. package/dist/index.mjs +54 -54
  124. package/package.json +1 -1
  125. package/dist/chunk-SJNXRXV5.mjs +0 -85
package/dist/index.mjs CHANGED
@@ -2,16 +2,16 @@
2
2
  import "./chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
- } from "./chunk-2GFE25AI.mjs";
5
+ } from "./chunk-JC6635TJ.mjs";
6
6
  import "./chunk-LUWGOKLG.mjs";
7
7
  import {
8
8
  ToastProvider,
9
9
  useToast
10
- } from "./chunk-KJ7L6CO6.mjs";
10
+ } from "./chunk-KP2KOY5Z.mjs";
11
11
  import "./chunk-ZOTHPHXA.mjs";
12
12
  import {
13
13
  toast_default
14
- } from "./chunk-TSBG5FXL.mjs";
14
+ } from "./chunk-5R3ARH2N.mjs";
15
15
  import "./chunk-HIE2YRGA.mjs";
16
16
  import {
17
17
  tooltip_default
@@ -19,12 +19,13 @@ import {
19
19
  import "./chunk-ZMOAFSYE.mjs";
20
20
  import "./chunk-WSIADHVC.mjs";
21
21
  import "./chunk-DX3KXNP6.mjs";
22
- import {
23
- definition_table_default
24
- } from "./chunk-SJNXRXV5.mjs";
25
22
  import {
26
23
  table_default
27
- } from "./chunk-3ZF7LQOM.mjs";
24
+ } from "./chunk-ANILRUAS.mjs";
25
+ import "./chunk-3MY6LO7N.mjs";
26
+ import {
27
+ tabs_default
28
+ } from "./chunk-BBRPAQON.mjs";
28
29
  import "./chunk-RRAZM5D3.mjs";
29
30
  import {
30
31
  textarea_default
@@ -37,49 +38,48 @@ import "./chunk-LVFI2NOH.mjs";
37
38
  import {
38
39
  switch_default
39
40
  } from "./chunk-AGE57VDD.mjs";
40
- import "./chunk-3MY6LO7N.mjs";
41
41
  import {
42
- tabs_default
43
- } from "./chunk-BBRPAQON.mjs";
42
+ definition_table_default
43
+ } from "./chunk-WC5PVVT6.mjs";
44
+ import "./chunk-TPFN22HR.mjs";
45
+ import {
46
+ radio_default
47
+ } from "./chunk-J7IIHQNA.mjs";
48
+ import "./chunk-7B7LRG5J.mjs";
49
+ import {
50
+ pagination_default
51
+ } from "./chunk-IBYQBC6D.mjs";
52
+ import "./chunk-F3HENRVM.mjs";
44
53
  import "./chunk-4VWG4726.mjs";
45
54
  import {
46
55
  datePicker_default
47
- } from "./chunk-HO533YTO.mjs";
48
- import "./chunk-FWFEKWWD.mjs";
56
+ } from "./chunk-MPUZ5T7X.mjs";
49
57
  import {
50
58
  day_default
51
59
  } from "./chunk-2TDHQLVV.mjs";
52
60
  import {
53
61
  timePicker_default
54
- } from "./chunk-QXYGQPY3.mjs";
62
+ } from "./chunk-4X67BUPA.mjs";
55
63
  import "./chunk-QCEKPS7U.mjs";
56
64
  import {
57
65
  select_default
58
- } from "./chunk-LX7NPKFE.mjs";
59
- import "./chunk-7B7LRG5J.mjs";
60
- import {
61
- pagination_default
62
- } from "./chunk-KRGI6HW7.mjs";
63
- import "./chunk-F3HENRVM.mjs";
64
- import "./chunk-TPFN22HR.mjs";
65
- import {
66
- radio_default
67
- } from "./chunk-J7IIHQNA.mjs";
66
+ } from "./chunk-YWLC7KRK.mjs";
67
+ import "./chunk-FWFEKWWD.mjs";
68
68
  import "./chunk-7MVEAQ7Z.mjs";
69
69
  import {
70
70
  list_default
71
71
  } from "./chunk-P3PXIJTU.mjs";
72
72
  import {
73
73
  listItem_default
74
- } from "./chunk-F4ORNNYB.mjs";
74
+ } from "./chunk-ORZW6F6E.mjs";
75
75
  import "./chunk-DJOG6Z35.mjs";
76
76
  import {
77
77
  modal_default
78
- } from "./chunk-Y3CGQN3I.mjs";
78
+ } from "./chunk-DDK4NEDX.mjs";
79
79
  import "./chunk-MGEWSREV.mjs";
80
80
  import {
81
81
  chip_default
82
- } from "./chunk-WOGNHRNX.mjs";
82
+ } from "./chunk-IT6RD6KS.mjs";
83
83
  import "./chunk-32GA3YW4.mjs";
84
84
  import {
85
85
  drawer_default
@@ -87,7 +87,7 @@ import {
87
87
  import "./chunk-RLXOHILK.mjs";
88
88
  import {
89
89
  fileUpload_default
90
- } from "./chunk-C5IJSWWJ.mjs";
90
+ } from "./chunk-BD4M2FZM.mjs";
91
91
  import "./chunk-7VOQKIIK.mjs";
92
92
  import {
93
93
  progress_default
@@ -95,7 +95,24 @@ import {
95
95
  import "./chunk-2GCSFWHD.mjs";
96
96
  import {
97
97
  input_default
98
- } from "./chunk-HKONMHXA.mjs";
98
+ } from "./chunk-ZI3MLO7X.mjs";
99
+ import "./chunk-VYNBJBXD.mjs";
100
+ import {
101
+ areaChart_default
102
+ } from "./chunk-IHLCZM5T.mjs";
103
+ import "./chunk-DQRAFUDA.mjs";
104
+ import {
105
+ scrollArea_default
106
+ } from "./chunk-M37VBNB3.mjs";
107
+ import {
108
+ barChart_default
109
+ } from "./chunk-FQJD2IY3.mjs";
110
+ import {
111
+ circularProgress_default
112
+ } from "./chunk-NCK5E2NL.mjs";
113
+ import {
114
+ radarChart_default
115
+ } from "./chunk-OEFILEL3.mjs";
99
116
  import "./chunk-QZ3LVYJW.mjs";
100
117
  import {
101
118
  checkbox_default
@@ -107,17 +124,20 @@ import {
107
124
  import "./chunk-KYIODWXL.mjs";
108
125
  import {
109
126
  breadcrumb_default
110
- } from "./chunk-WUGITHV6.mjs";
127
+ } from "./chunk-4WHX4RXX.mjs";
111
128
  import "./chunk-MY5U63QO.mjs";
129
+ import {
130
+ text_button_default
131
+ } from "./chunk-SDUDU3CU.mjs";
112
132
  import {
113
133
  button_group_default
114
134
  } from "./chunk-GUTGDPXH.mjs";
115
135
  import {
116
136
  button_default
117
- } from "./chunk-3HY74IGR.mjs";
137
+ } from "./chunk-TRLIC34S.mjs";
118
138
  import {
119
139
  icon_button_default
120
- } from "./chunk-6UKNZTOL.mjs";
140
+ } from "./chunk-OLQJXFHU.mjs";
121
141
  import "./chunk-6WSACUIB.mjs";
122
142
  import "./chunk-LXHUO6VM.mjs";
123
143
  import "./chunk-SZL743JC.mjs";
@@ -125,27 +145,7 @@ import "./chunk-ZYIIXWVY.mjs";
125
145
  import {
126
146
  Icon_default,
127
147
  iconTemplate
128
- } from "./chunk-YZ57UYAS.mjs";
129
- import {
130
- text_button_default
131
- } from "./chunk-SDUDU3CU.mjs";
132
- import "./chunk-VYNBJBXD.mjs";
133
- import {
134
- radarChart_default
135
- } from "./chunk-OEFILEL3.mjs";
136
- import {
137
- areaChart_default
138
- } from "./chunk-IHLCZM5T.mjs";
139
- import "./chunk-DQRAFUDA.mjs";
140
- import {
141
- scrollArea_default
142
- } from "./chunk-M37VBNB3.mjs";
143
- import {
144
- barChart_default
145
- } from "./chunk-WNNOVISA.mjs";
146
- import {
147
- circularProgress_default
148
- } from "./chunk-5XW5QDIW.mjs";
148
+ } from "./chunk-XX2PHROM.mjs";
149
149
  import "./chunk-NMSDSEBD.mjs";
150
150
  import {
151
151
  accordion_default
@@ -157,8 +157,8 @@ import "./chunk-E3G5QXSH.mjs";
157
157
  import "./chunk-7DLOYKVC.mjs";
158
158
  import {
159
159
  avatar_default
160
- } from "./chunk-OL22LVBG.mjs";
161
- import "./chunk-BG4DIGKH.mjs";
160
+ } from "./chunk-BBEOPH6B.mjs";
161
+ import "./chunk-GQFNYXJZ.mjs";
162
162
  import {
163
163
  deepnoidUi,
164
164
  tv
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.1.124",
3
+ "version": "0.1.127",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -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
- };