@deepnoid/ui 0.1.28 → 0.1.30

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 (79) hide show
  1. package/.turbo/turbo-build.log +181 -161
  2. package/dist/chunk-6PN3DGOE.mjs +77 -0
  3. package/dist/chunk-CEZQCD6Z.mjs +79 -0
  4. package/dist/{chunk-JV7VLO2L.mjs → chunk-GLMM253Q.mjs} +37 -27
  5. package/dist/{chunk-K7VUN5BS.mjs → chunk-IC25OKBJ.mjs} +1 -1
  6. package/dist/{chunk-NHVIKP4H.mjs → chunk-K7V4VE7R.mjs} +4 -4
  7. package/dist/chunk-MZ76AA76.mjs +1 -0
  8. package/dist/{chunk-4OSN2OE2.mjs → chunk-NFQMXW4Z.mjs} +25 -18
  9. package/dist/chunk-NKH3OF6I.mjs +132 -0
  10. package/dist/chunk-P7YYNA6L.mjs +67 -0
  11. package/dist/{chunk-SO7BGWM7.mjs → chunk-QM4ZSQYX.mjs} +1 -1
  12. package/dist/chunk-RLXOHILK.mjs +1 -0
  13. package/dist/{chunk-BEQ3KZGS.mjs → chunk-VCVQMPC7.mjs} +2 -1
  14. package/dist/components/breadcrumb/breadcrumb.mjs +3 -3
  15. package/dist/components/breadcrumb/index.mjs +3 -3
  16. package/dist/components/button/button.mjs +2 -2
  17. package/dist/components/button/icon-button.mjs +2 -2
  18. package/dist/components/button/index.mjs +3 -3
  19. package/dist/components/dateTimePicker/dateTimePicker.mjs +5 -5
  20. package/dist/components/dateTimePicker/index.mjs +5 -5
  21. package/dist/components/dateTimePicker/timePicker.mjs +2 -2
  22. package/dist/components/fileUpload/fileUpload.d.mts +92 -0
  23. package/dist/components/fileUpload/fileUpload.d.ts +92 -0
  24. package/dist/components/fileUpload/fileUpload.js +5648 -0
  25. package/dist/components/fileUpload/fileUpload.mjs +28 -0
  26. package/dist/components/fileUpload/index.d.mts +5 -0
  27. package/dist/components/fileUpload/index.d.ts +5 -0
  28. package/dist/components/fileUpload/index.js +5647 -0
  29. package/dist/components/fileUpload/index.mjs +25 -0
  30. package/dist/components/input/index.js +2 -1
  31. package/dist/components/input/index.mjs +1 -1
  32. package/dist/components/input/input.js +2 -1
  33. package/dist/components/input/input.mjs +1 -1
  34. package/dist/components/list/index.mjs +3 -3
  35. package/dist/components/modal/index.mjs +4 -4
  36. package/dist/components/modal/modal.mjs +4 -4
  37. package/dist/components/pagination/index.js +2 -1
  38. package/dist/components/pagination/index.mjs +2 -2
  39. package/dist/components/pagination/pagination.js +2 -1
  40. package/dist/components/pagination/pagination.mjs +2 -2
  41. package/dist/components/ripple/index.mjs +3 -3
  42. package/dist/components/skeleton/index.d.mts +2 -0
  43. package/dist/components/skeleton/index.d.ts +2 -0
  44. package/dist/components/skeleton/index.js +141 -0
  45. package/dist/components/skeleton/index.mjs +10 -0
  46. package/dist/components/skeleton/skeleton.d.mts +14 -0
  47. package/dist/components/skeleton/skeleton.d.ts +14 -0
  48. package/dist/components/skeleton/skeleton.js +135 -0
  49. package/dist/components/skeleton/skeleton.mjs +9 -0
  50. package/dist/components/table/index.js +694 -615
  51. package/dist/components/table/index.mjs +9 -7
  52. package/dist/components/table/table-body.d.mts +6 -4
  53. package/dist/components/table/table-body.d.ts +6 -4
  54. package/dist/components/table/table-body.js +115 -64
  55. package/dist/components/table/table-body.mjs +3 -1
  56. package/dist/components/table/table-head.d.mts +3 -1
  57. package/dist/components/table/table-head.d.ts +3 -1
  58. package/dist/components/table/table-head.js +107 -21
  59. package/dist/components/table/table-head.mjs +3 -1
  60. package/dist/components/table/table.d.mts +1 -0
  61. package/dist/components/table/table.d.ts +1 -0
  62. package/dist/components/table/table.js +685 -606
  63. package/dist/components/table/table.mjs +7 -5
  64. package/dist/components/tree/index.js +25 -18
  65. package/dist/components/tree/index.mjs +1 -1
  66. package/dist/components/tree/tree.d.mts +20 -13
  67. package/dist/components/tree/tree.d.ts +20 -13
  68. package/dist/components/tree/tree.js +25 -18
  69. package/dist/components/tree/tree.mjs +1 -1
  70. package/dist/index.d.mts +2 -0
  71. package/dist/index.d.ts +2 -0
  72. package/dist/index.js +607 -401
  73. package/dist/index.mjs +50 -40
  74. package/package.json +1 -1
  75. package/dist/chunk-UNH3BCGN.mjs +0 -47
  76. package/dist/chunk-XRC5OUYQ.mjs +0 -94
  77. package/dist/{chunk-QIEKOGY7.mjs → chunk-7TAGGLNY.mjs} +3 -3
  78. package/dist/{chunk-KYJTZPXY.mjs → chunk-BFOK4HVC.mjs} +3 -3
  79. package/dist/{chunk-JTZUXVOU.mjs → chunk-UB4YBFOT.mjs} +3 -3
package/dist/index.mjs CHANGED
@@ -1,8 +1,22 @@
1
1
  "use client";
2
+ import "./chunk-HIE2YRGA.mjs";
3
+ import {
4
+ tooltip_default
5
+ } from "./chunk-Z2537DF6.mjs";
6
+ import "./chunk-ZMOAFSYE.mjs";
7
+ import "./chunk-WSIADHVC.mjs";
2
8
  import "./chunk-MBLZYQCN.mjs";
3
9
  import {
4
10
  tree_default
5
- } from "./chunk-4OSN2OE2.mjs";
11
+ } from "./chunk-NFQMXW4Z.mjs";
12
+ import "./chunk-3MY6LO7N.mjs";
13
+ import {
14
+ tabs_default
15
+ } from "./chunk-2YMAKIZ6.mjs";
16
+ import "./chunk-RRAZM5D3.mjs";
17
+ import {
18
+ textarea_default
19
+ } from "./chunk-BKE6QF6W.mjs";
6
20
  import "./chunk-LUWGOKLG.mjs";
7
21
  import {
8
22
  ToastProvider,
@@ -12,26 +26,19 @@ import "./chunk-ZOTHPHXA.mjs";
12
26
  import {
13
27
  toast_default
14
28
  } from "./chunk-MEY4IL7D.mjs";
15
- import "./chunk-HIE2YRGA.mjs";
29
+ import "./chunk-LVFI2NOH.mjs";
16
30
  import {
17
- tooltip_default
18
- } from "./chunk-Z2537DF6.mjs";
19
- import "./chunk-ZMOAFSYE.mjs";
20
- import "./chunk-WSIADHVC.mjs";
31
+ switch_default
32
+ } from "./chunk-Z74QNVPG.mjs";
21
33
  import "./chunk-DX3KXNP6.mjs";
22
34
  import {
23
35
  table_default
24
- } from "./chunk-JV7VLO2L.mjs";
25
- import "./chunk-XRC5OUYQ.mjs";
26
- import "./chunk-UNH3BCGN.mjs";
27
- import "./chunk-3MY6LO7N.mjs";
36
+ } from "./chunk-GLMM253Q.mjs";
28
37
  import {
29
- tabs_default
30
- } from "./chunk-2YMAKIZ6.mjs";
31
- import "./chunk-RRAZM5D3.mjs";
32
- import {
33
- textarea_default
34
- } from "./chunk-BKE6QF6W.mjs";
38
+ definition_table_default
39
+ } from "./chunk-6TIIBU7J.mjs";
40
+ import "./chunk-CEZQCD6Z.mjs";
41
+ import "./chunk-P7YYNA6L.mjs";
35
42
  import "./chunk-DQRAFUDA.mjs";
36
43
  import {
37
44
  scrollArea_default
@@ -40,46 +47,47 @@ import "./chunk-QCEKPS7U.mjs";
40
47
  import {
41
48
  select_default
42
49
  } from "./chunk-272FMLIL.mjs";
43
- import "./chunk-LVFI2NOH.mjs";
44
- import {
45
- switch_default
46
- } from "./chunk-Z74QNVPG.mjs";
50
+ import "./chunk-MZ76AA76.mjs";
47
51
  import {
48
- definition_table_default
49
- } from "./chunk-6TIIBU7J.mjs";
52
+ skeleton_default
53
+ } from "./chunk-6PN3DGOE.mjs";
50
54
  import "./chunk-DJOG6Z35.mjs";
51
55
  import {
52
56
  modal_default
53
- } from "./chunk-K7VUN5BS.mjs";
54
- import "./chunk-TPFN22HR.mjs";
55
- import {
56
- radio_default
57
- } from "./chunk-QIRL6HY6.mjs";
57
+ } from "./chunk-IC25OKBJ.mjs";
58
58
  import "./chunk-7B7LRG5J.mjs";
59
59
  import {
60
60
  pagination_default
61
- } from "./chunk-SO7BGWM7.mjs";
61
+ } from "./chunk-QM4ZSQYX.mjs";
62
62
  import "./chunk-F3HENRVM.mjs";
63
- import "./chunk-2GCSFWHD.mjs";
63
+ import "./chunk-TPFN22HR.mjs";
64
64
  import {
65
- input_default
66
- } from "./chunk-BEQ3KZGS.mjs";
65
+ radio_default
66
+ } from "./chunk-QIRL6HY6.mjs";
67
+ import "./chunk-RLXOHILK.mjs";
67
68
  import "./chunk-MGEWSREV.mjs";
68
69
  import "./chunk-75HLCORR.mjs";
69
70
  import {
70
71
  dateTimePicker_default
71
- } from "./chunk-NHVIKP4H.mjs";
72
- import "./chunk-FWJ2ZKH6.mjs";
72
+ } from "./chunk-K7V4VE7R.mjs";
73
73
  import "./chunk-A7RU3FU5.mjs";
74
- import "./chunk-P732YGHO.mjs";
75
- import "./chunk-KYJTZPXY.mjs";
74
+ import "./chunk-BFOK4HVC.mjs";
76
75
  import "./chunk-7MVEAQ7Z.mjs";
76
+ import {
77
+ listItem_default
78
+ } from "./chunk-RT3S3VVJ.mjs";
77
79
  import {
78
80
  list_default
79
81
  } from "./chunk-HIVPDIEP.mjs";
82
+ import "./chunk-FWJ2ZKH6.mjs";
83
+ import "./chunk-P732YGHO.mjs";
80
84
  import {
81
- listItem_default
82
- } from "./chunk-RT3S3VVJ.mjs";
85
+ fileUpload_default
86
+ } from "./chunk-NKH3OF6I.mjs";
87
+ import "./chunk-2GCSFWHD.mjs";
88
+ import {
89
+ input_default
90
+ } from "./chunk-VCVQMPC7.mjs";
83
91
  import "./chunk-QZ3LVYJW.mjs";
84
92
  import {
85
93
  checkbox_default
@@ -105,13 +113,13 @@ import {
105
113
  } from "./chunk-LPZOH3RP.mjs";
106
114
  import {
107
115
  button_default
108
- } from "./chunk-JTZUXVOU.mjs";
116
+ } from "./chunk-UB4YBFOT.mjs";
109
117
  import {
110
118
  icon_button_default
111
- } from "./chunk-QIEKOGY7.mjs";
119
+ } from "./chunk-7TAGGLNY.mjs";
112
120
  import "./chunk-6WSACUIB.mjs";
113
- import "./chunk-6PNKRBUT.mjs";
114
121
  import "./chunk-LXHUO6VM.mjs";
122
+ import "./chunk-6PNKRBUT.mjs";
115
123
  import {
116
124
  text_button_default
117
125
  } from "./chunk-WFMFC7R6.mjs";
@@ -138,6 +146,7 @@ export {
138
146
  chip_default as Chip,
139
147
  dateTimePicker_default as DateTimePicker,
140
148
  definition_table_default as DefinitionTable,
149
+ fileUpload_default as FileUpload,
141
150
  Icon_default as Icon,
142
151
  icon_button_default as IconButton,
143
152
  input_default as Input,
@@ -148,6 +157,7 @@ export {
148
157
  radio_default as Radio,
149
158
  scrollArea_default as ScrollArea,
150
159
  select_default as Select,
160
+ skeleton_default as Skeleton,
151
161
  switch_default as Switch,
152
162
  table_default as Table,
153
163
  tabs_default as Tabs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -1,47 +0,0 @@
1
- "use client";
2
- import {
3
- checkbox_default
4
- } from "./chunk-D6QI3DJG.mjs";
5
- import {
6
- clsx
7
- } from "./chunk-27Y6K5NK.mjs";
8
-
9
- // src/components/table/table-head.tsx
10
- import { jsx, jsxs } from "react/jsx-runtime";
11
- var TableHead = ({ columns, slots, size, rowCheckbox, isCheckedAll, classNames, onCheckAll }) => {
12
- const handleClickCheckAll = (e) => {
13
- e.preventDefault();
14
- onCheckAll(!isCheckedAll);
15
- };
16
- const renderColumnHeaders = () => columns.map((column, index) => /* @__PURE__ */ jsx(
17
- "th",
18
- {
19
- className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column),
20
- style: {
21
- width: column.width ? `${column.width}px` : void 0,
22
- minWidth: column.minWidth ? `${column.minWidth}px` : void 0,
23
- maxWidth: column.maxWidth ? `${column.maxWidth}px` : void 0,
24
- height: column.height ? `${column.height}px` : void 0
25
- },
26
- children: column.headerName
27
- },
28
- `${column.field}${index}thead`
29
- ));
30
- const renderSelectAllCheckbox = () => rowCheckbox && /* @__PURE__ */ jsx("th", { className: slots.th({ class: classNames == null ? void 0 : classNames.th }), onClick: handleClickCheckAll, children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
31
- checkbox_default,
32
- {
33
- size,
34
- checked: isCheckedAll,
35
- onChange: (e) => onCheckAll(e.target.checked)
36
- }
37
- ) }) });
38
- return /* @__PURE__ */ jsx("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ jsxs("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
39
- renderColumnHeaders(),
40
- renderSelectAllCheckbox()
41
- ] }) });
42
- };
43
- var table_head_default = TableHead;
44
-
45
- export {
46
- table_head_default
47
- };
@@ -1,94 +0,0 @@
1
- "use client";
2
- import {
3
- checkbox_default
4
- } from "./chunk-D6QI3DJG.mjs";
5
- import {
6
- clsx
7
- } from "./chunk-27Y6K5NK.mjs";
8
-
9
- // src/components/table/table-body.tsx
10
- import { useCallback } from "react";
11
- import { jsx, jsxs } from "react/jsx-runtime";
12
- import { createElement } from "react";
13
- var TableBody = ({
14
- slots,
15
- columns,
16
- rows,
17
- size,
18
- rowCheckbox,
19
- checkedRows,
20
- onCheckRow,
21
- onRowClick,
22
- emptyContent,
23
- isLoading,
24
- classNames,
25
- className
26
- }) => {
27
- const generateColumnStyles = useCallback((column) => {
28
- const alignClass = column.align ? `text-${column.align}` : "text-left";
29
- return clsx(alignClass, column.className);
30
- }, []);
31
- const getCellProps = useCallback(
32
- (column, row) => {
33
- if (!column || !row) {
34
- return {
35
- className: slots.td({ class: classNames == null ? void 0 : classNames.td })
36
- };
37
- }
38
- const value = row[column.field];
39
- const formattedValue = column.valueFormatter ? column.valueFormatter({ id: column.field, field: column.field, value }) : value;
40
- const children = column.renderCell ? column.renderCell({
41
- id: column.field,
42
- field: column.field,
43
- value,
44
- formattedValue,
45
- row
46
- }) : formattedValue;
47
- const columnStyles = generateColumnStyles(column);
48
- return {
49
- children,
50
- className: clsx(slots.td({ class: classNames == null ? void 0 : classNames.td }), columnStyles),
51
- style: {
52
- width: column.width ? `${column.width}px` : void 0,
53
- minWidth: column.minWidth ? `${column.minWidth}px` : void 0,
54
- maxWidth: column.maxWidth ? `${column.maxWidth}px` : void 0,
55
- height: column.height ? `${column.height}px` : void 0
56
- }
57
- };
58
- },
59
- [classNames == null ? void 0 : classNames.td, generateColumnStyles, slots]
60
- );
61
- const hasRows = rows.length > 0;
62
- const colSpan = (columns.length || 1) + (rowCheckbox ? 1 : 0);
63
- return /* @__PURE__ */ jsxs("tbody", { className: clsx(slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), className), children: [
64
- !isLoading && hasRows && rows.map((row, rowIndex) => {
65
- const isRowChecked = checkedRows.has(rowIndex);
66
- return /* @__PURE__ */ jsxs(
67
- "tr",
68
- {
69
- className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }),
70
- "aria-checked": isRowChecked,
71
- onClick: () => onRowClick ? onRowClick(row) : void 0,
72
- children: [
73
- columns.map((column) => /* @__PURE__ */ createElement("td", { ...getCellProps(column, row), key: column.field })),
74
- rowCheckbox && /* @__PURE__ */ jsx("td", { className: slots.td({ class: classNames == null ? void 0 : classNames.td }), children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
75
- checkbox_default,
76
- {
77
- size,
78
- checked: isRowChecked,
79
- onChange: (e) => onCheckRow(rowIndex, e.target.checked)
80
- }
81
- ) }) })
82
- ]
83
- },
84
- rowIndex
85
- );
86
- }),
87
- !isLoading && !hasRows && emptyContent && /* @__PURE__ */ jsx("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "border-none"), children: /* @__PURE__ */ jsx("td", { colSpan, className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) })
88
- ] });
89
- };
90
- var table_body_default = TableBody;
91
-
92
- export {
93
- table_body_default
94
- };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- useRipple
4
- } from "./chunk-6PNKRBUT.mjs";
5
2
  import {
6
3
  ripple_default
7
4
  } from "./chunk-LXHUO6VM.mjs";
5
+ import {
6
+ useRipple
7
+ } from "./chunk-6PNKRBUT.mjs";
8
8
  import {
9
9
  Icon_default
10
10
  } from "./chunk-2TKEWFGH.mjs";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- list_default
4
- } from "./chunk-HIVPDIEP.mjs";
5
2
  import {
6
3
  listItem_default
7
4
  } from "./chunk-RT3S3VVJ.mjs";
5
+ import {
6
+ list_default
7
+ } from "./chunk-HIVPDIEP.mjs";
8
8
 
9
9
  // src/components/dateTimePicker/timePicker.tsx
10
10
  import { useState, useRef, useEffect } from "react";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- useRipple
4
- } from "./chunk-6PNKRBUT.mjs";
5
2
  import {
6
3
  ripple_default
7
4
  } from "./chunk-LXHUO6VM.mjs";
5
+ import {
6
+ useRipple
7
+ } from "./chunk-6PNKRBUT.mjs";
8
8
  import {
9
9
  Icon_default
10
10
  } from "./chunk-2TKEWFGH.mjs";