@deepnoid/ui 0.1.26 → 0.1.28

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 (118) hide show
  1. package/.turbo/turbo-build.log +170 -166
  2. package/dist/{chunk-MSAULFDB.mjs → chunk-272FMLIL.mjs} +17 -17
  3. package/dist/{chunk-3IU2RPSM.mjs → chunk-2SDYFOZL.mjs} +46 -35
  4. package/dist/{chunk-HWL7TPUN.mjs → chunk-2TKEWFGH.mjs} +1 -1
  5. package/dist/chunk-4OSN2OE2.mjs +178 -0
  6. package/dist/chunk-6TIIBU7J.mjs +35 -0
  7. package/dist/{chunk-Q72LZAPG.mjs → chunk-A7RU3FU5.mjs} +1 -1
  8. package/dist/{chunk-P5PJTJLY.mjs → chunk-BEQ3KZGS.mjs} +19 -19
  9. package/dist/{chunk-IRAHS4WS.mjs → chunk-G67WUZO3.mjs} +1 -1
  10. package/dist/{chunk-YBDA3WQP.mjs → chunk-IBI3OVQI.mjs} +1 -1
  11. package/dist/{chunk-BQUZRVYW.mjs → chunk-JTZUXVOU.mjs} +1 -1
  12. package/dist/{chunk-6OMHIMIA.mjs → chunk-JV7VLO2L.mjs} +2 -2
  13. package/dist/{chunk-B3DFSXGC.mjs → chunk-K7VUN5BS.mjs} +2 -2
  14. package/dist/{chunk-DLQFMOBN.mjs → chunk-KYJTZPXY.mjs} +1 -1
  15. package/dist/{chunk-OUAKGMDW.mjs → chunk-MEY4IL7D.mjs} +1 -1
  16. package/dist/{chunk-SCFTSNCK.mjs → chunk-NHVIKP4H.mjs} +6 -6
  17. package/dist/{chunk-PMMTMYRI.mjs → chunk-QIEKOGY7.mjs} +1 -1
  18. package/dist/{chunk-QY7LYAXT.mjs → chunk-RT3S3VVJ.mjs} +2 -2
  19. package/dist/{chunk-IVK24VIL.mjs → chunk-SO7BGWM7.mjs} +2 -2
  20. package/dist/{chunk-XQGD4ZIX.mjs → chunk-SP3JVQY3.mjs} +1 -1
  21. package/dist/{chunk-EAK5DVWA.mjs → chunk-UNH3BCGN.mjs} +8 -1
  22. package/dist/{chunk-6HX3PPL6.mjs → chunk-WLNLVX7Q.mjs} +1 -1
  23. package/dist/components/avatar/avatar.js +46 -35
  24. package/dist/components/avatar/avatar.mjs +2 -2
  25. package/dist/components/avatar/index.js +46 -35
  26. package/dist/components/avatar/index.mjs +2 -2
  27. package/dist/components/breadcrumb/breadcrumb.js +46 -35
  28. package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
  29. package/dist/components/breadcrumb/index.js +46 -35
  30. package/dist/components/breadcrumb/index.mjs +5 -5
  31. package/dist/components/button/button.js +46 -35
  32. package/dist/components/button/button.mjs +3 -3
  33. package/dist/components/button/icon-button.js +46 -35
  34. package/dist/components/button/icon-button.mjs +3 -3
  35. package/dist/components/button/index.js +46 -35
  36. package/dist/components/button/index.mjs +4 -4
  37. package/dist/components/chip/chip.js +46 -35
  38. package/dist/components/chip/chip.mjs +3 -3
  39. package/dist/components/chip/index.js +46 -35
  40. package/dist/components/chip/index.mjs +3 -3
  41. package/dist/components/dateTimePicker/calendar.js +46 -35
  42. package/dist/components/dateTimePicker/calendar.mjs +3 -3
  43. package/dist/components/dateTimePicker/dateTimePicker.js +46 -35
  44. package/dist/components/dateTimePicker/dateTimePicker.mjs +9 -9
  45. package/dist/components/dateTimePicker/index.js +46 -35
  46. package/dist/components/dateTimePicker/index.mjs +9 -9
  47. package/dist/components/dateTimePicker/timePicker.js +46 -35
  48. package/dist/components/dateTimePicker/timePicker.mjs +5 -5
  49. package/dist/components/icon/Icon.d.mts +9 -5
  50. package/dist/components/icon/Icon.d.ts +9 -5
  51. package/dist/components/icon/Icon.js +46 -35
  52. package/dist/components/icon/Icon.mjs +2 -2
  53. package/dist/components/icon/index.js +46 -35
  54. package/dist/components/icon/index.mjs +2 -2
  55. package/dist/components/icon/template.d.mts +3 -2
  56. package/dist/components/icon/template.d.ts +3 -2
  57. package/dist/components/icon/template.js +46 -35
  58. package/dist/components/icon/template.mjs +1 -1
  59. package/dist/components/input/index.js +64 -53
  60. package/dist/components/input/index.mjs +3 -3
  61. package/dist/components/input/input.d.mts +44 -44
  62. package/dist/components/input/input.d.ts +44 -44
  63. package/dist/components/input/input.js +64 -53
  64. package/dist/components/input/input.mjs +3 -3
  65. package/dist/components/list/index.js +46 -35
  66. package/dist/components/list/index.mjs +4 -4
  67. package/dist/components/list/listItem.js +46 -35
  68. package/dist/components/list/listItem.mjs +4 -4
  69. package/dist/components/modal/index.js +46 -35
  70. package/dist/components/modal/index.mjs +5 -5
  71. package/dist/components/modal/modal.js +46 -35
  72. package/dist/components/modal/modal.mjs +5 -5
  73. package/dist/components/pagination/index.js +64 -53
  74. package/dist/components/pagination/index.mjs +4 -4
  75. package/dist/components/pagination/pagination.js +64 -53
  76. package/dist/components/pagination/pagination.mjs +4 -4
  77. package/dist/components/select/index.js +62 -51
  78. package/dist/components/select/index.mjs +3 -3
  79. package/dist/components/select/select.d.mts +38 -38
  80. package/dist/components/select/select.d.ts +38 -38
  81. package/dist/components/select/select.js +62 -51
  82. package/dist/components/select/select.mjs +3 -3
  83. package/dist/components/table/definition-table.d.mts +51 -0
  84. package/dist/components/table/definition-table.d.ts +51 -0
  85. package/dist/components/table/definition-table.js +351 -0
  86. package/dist/components/table/definition-table.mjs +9 -0
  87. package/dist/components/table/form-table.d.mts +1 -1
  88. package/dist/components/table/form-table.d.ts +1 -1
  89. package/dist/components/table/form-table.mjs +43 -3
  90. package/dist/components/table/index.d.mts +1 -1
  91. package/dist/components/table/index.d.ts +1 -1
  92. package/dist/components/table/index.js +86 -82
  93. package/dist/components/table/index.mjs +9 -9
  94. package/dist/components/table/table-head.js +8 -1
  95. package/dist/components/table/table-head.mjs +1 -1
  96. package/dist/components/table/table.js +72 -54
  97. package/dist/components/table/table.mjs +6 -6
  98. package/dist/components/toast/index.js +46 -35
  99. package/dist/components/toast/index.mjs +4 -4
  100. package/dist/components/toast/toast.js +46 -35
  101. package/dist/components/toast/toast.mjs +3 -3
  102. package/dist/components/toast/use-toast.js +46 -35
  103. package/dist/components/toast/use-toast.mjs +4 -4
  104. package/dist/components/tree/index.d.mts +1 -0
  105. package/dist/components/tree/index.d.ts +1 -0
  106. package/dist/components/tree/index.js +170 -84
  107. package/dist/components/tree/index.mjs +3 -3
  108. package/dist/components/tree/tree.d.mts +17 -10
  109. package/dist/components/tree/tree.d.ts +17 -10
  110. package/dist/components/tree/tree.js +175 -84
  111. package/dist/components/tree/tree.mjs +5 -3
  112. package/dist/index.d.mts +1 -1
  113. package/dist/index.d.ts +1 -1
  114. package/dist/index.js +226 -147
  115. package/dist/index.mjs +31 -31
  116. package/package.json +1 -1
  117. package/dist/chunk-ICZTNO4V.mjs +0 -49
  118. package/dist/chunk-TEQ723QO.mjs +0 -102
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-TEQ723QO.mjs";
5
+ } from "./chunk-4OSN2OE2.mjs";
6
6
  import "./chunk-LUWGOKLG.mjs";
7
7
  import {
8
8
  ToastProvider,
9
9
  useToast
10
- } from "./chunk-YBDA3WQP.mjs";
10
+ } from "./chunk-IBI3OVQI.mjs";
11
11
  import "./chunk-ZOTHPHXA.mjs";
12
12
  import {
13
13
  toast_default
14
- } from "./chunk-OUAKGMDW.mjs";
14
+ } from "./chunk-MEY4IL7D.mjs";
15
15
  import "./chunk-HIE2YRGA.mjs";
16
16
  import {
17
17
  tooltip_default
@@ -21,9 +21,9 @@ import "./chunk-WSIADHVC.mjs";
21
21
  import "./chunk-DX3KXNP6.mjs";
22
22
  import {
23
23
  table_default
24
- } from "./chunk-6OMHIMIA.mjs";
24
+ } from "./chunk-JV7VLO2L.mjs";
25
25
  import "./chunk-XRC5OUYQ.mjs";
26
- import "./chunk-EAK5DVWA.mjs";
26
+ import "./chunk-UNH3BCGN.mjs";
27
27
  import "./chunk-3MY6LO7N.mjs";
28
28
  import {
29
29
  tabs_default
@@ -39,58 +39,58 @@ import {
39
39
  import "./chunk-QCEKPS7U.mjs";
40
40
  import {
41
41
  select_default
42
- } from "./chunk-MSAULFDB.mjs";
42
+ } from "./chunk-272FMLIL.mjs";
43
43
  import "./chunk-LVFI2NOH.mjs";
44
44
  import {
45
45
  switch_default
46
46
  } from "./chunk-Z74QNVPG.mjs";
47
47
  import {
48
- form_table_default
49
- } from "./chunk-ICZTNO4V.mjs";
50
- import "./chunk-7B7LRG5J.mjs";
48
+ definition_table_default
49
+ } from "./chunk-6TIIBU7J.mjs";
50
+ import "./chunk-DJOG6Z35.mjs";
51
51
  import {
52
- pagination_default
53
- } from "./chunk-IVK24VIL.mjs";
54
- import "./chunk-F3HENRVM.mjs";
52
+ modal_default
53
+ } from "./chunk-K7VUN5BS.mjs";
55
54
  import "./chunk-TPFN22HR.mjs";
56
55
  import {
57
56
  radio_default
58
57
  } from "./chunk-QIRL6HY6.mjs";
58
+ import "./chunk-7B7LRG5J.mjs";
59
+ import {
60
+ pagination_default
61
+ } from "./chunk-SO7BGWM7.mjs";
62
+ import "./chunk-F3HENRVM.mjs";
59
63
  import "./chunk-2GCSFWHD.mjs";
60
64
  import {
61
65
  input_default
62
- } from "./chunk-P5PJTJLY.mjs";
63
- import "./chunk-DJOG6Z35.mjs";
64
- import {
65
- modal_default
66
- } from "./chunk-B3DFSXGC.mjs";
66
+ } from "./chunk-BEQ3KZGS.mjs";
67
67
  import "./chunk-MGEWSREV.mjs";
68
68
  import "./chunk-75HLCORR.mjs";
69
69
  import {
70
70
  dateTimePicker_default
71
- } from "./chunk-SCFTSNCK.mjs";
72
- import "./chunk-Q72LZAPG.mjs";
73
- import "./chunk-DLQFMOBN.mjs";
71
+ } from "./chunk-NHVIKP4H.mjs";
72
+ import "./chunk-FWJ2ZKH6.mjs";
73
+ import "./chunk-A7RU3FU5.mjs";
74
+ import "./chunk-P732YGHO.mjs";
75
+ import "./chunk-KYJTZPXY.mjs";
74
76
  import "./chunk-7MVEAQ7Z.mjs";
75
77
  import {
76
78
  list_default
77
79
  } from "./chunk-HIVPDIEP.mjs";
78
80
  import {
79
81
  listItem_default
80
- } from "./chunk-QY7LYAXT.mjs";
81
- import "./chunk-FWJ2ZKH6.mjs";
82
- import "./chunk-P732YGHO.mjs";
82
+ } from "./chunk-RT3S3VVJ.mjs";
83
83
  import "./chunk-QZ3LVYJW.mjs";
84
84
  import {
85
85
  checkbox_default
86
86
  } from "./chunk-D6QI3DJG.mjs";
87
87
  import {
88
88
  chip_default
89
- } from "./chunk-6HX3PPL6.mjs";
89
+ } from "./chunk-WLNLVX7Q.mjs";
90
90
  import "./chunk-7DLOYKVC.mjs";
91
91
  import {
92
92
  avatar_default
93
- } from "./chunk-XQGD4ZIX.mjs";
93
+ } from "./chunk-SP3JVQY3.mjs";
94
94
  import "./chunk-SE5TU755.mjs";
95
95
  import {
96
96
  backdrop_default
@@ -98,17 +98,17 @@ import {
98
98
  import "./chunk-KYIODWXL.mjs";
99
99
  import {
100
100
  breadcrumb_default
101
- } from "./chunk-IRAHS4WS.mjs";
101
+ } from "./chunk-G67WUZO3.mjs";
102
102
  import "./chunk-MY5U63QO.mjs";
103
103
  import {
104
104
  button_group_default
105
105
  } from "./chunk-LPZOH3RP.mjs";
106
106
  import {
107
107
  button_default
108
- } from "./chunk-BQUZRVYW.mjs";
108
+ } from "./chunk-JTZUXVOU.mjs";
109
109
  import {
110
110
  icon_button_default
111
- } from "./chunk-PMMTMYRI.mjs";
111
+ } from "./chunk-QIEKOGY7.mjs";
112
112
  import "./chunk-6WSACUIB.mjs";
113
113
  import "./chunk-6PNKRBUT.mjs";
114
114
  import "./chunk-LXHUO6VM.mjs";
@@ -119,8 +119,8 @@ import "./chunk-ZYIIXWVY.mjs";
119
119
  import {
120
120
  Icon_default,
121
121
  iconTemplate
122
- } from "./chunk-HWL7TPUN.mjs";
123
- import "./chunk-3IU2RPSM.mjs";
122
+ } from "./chunk-2TKEWFGH.mjs";
123
+ import "./chunk-2SDYFOZL.mjs";
124
124
  import {
125
125
  deepnoidUi,
126
126
  tv
@@ -137,7 +137,7 @@ export {
137
137
  checkbox_default as CheckBox,
138
138
  chip_default as Chip,
139
139
  dateTimePicker_default as DateTimePicker,
140
- form_table_default as FormTable,
140
+ definition_table_default as DefinitionTable,
141
141
  Icon_default as Icon,
142
142
  icon_button_default as IconButton,
143
143
  input_default as Input,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -1,49 +0,0 @@
1
- "use client";
2
- import {
3
- tv
4
- } from "./chunk-4ZJFD3L3.mjs";
5
-
6
- // src/components/table/form-table.tsx
7
- import { forwardRef, useMemo } from "react";
8
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
- var DEFAULT_COLUMN_CLASSES = [
10
- "w-[120px] px-[10px] py-[9.5px] font-bold text-md text-body-foreground border-r border-neutral-light",
11
- "px-[10px] py-[9.5px]"
12
- ];
13
- var FormTableRow = ({ columns, columnClasses = [] }) => /* @__PURE__ */ jsx("tr", { className: "border-neutral-light min-h-[50px] border-b", children: columns.map((col, index) => {
14
- var _a;
15
- return /* @__PURE__ */ jsx("td", { className: (_a = columnClasses[index]) != null ? _a : DEFAULT_COLUMN_CLASSES[index], children: col }, index);
16
- }) });
17
- var FormTable = forwardRef(
18
- ({ rows, onSubmit, footer, classNames }, ref) => {
19
- const slots = useMemo(() => formTableStyle(), []);
20
- const content = /* @__PURE__ */ jsxs(Fragment, { children: [
21
- /* @__PURE__ */ jsx("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: /* @__PURE__ */ jsx("tbody", { children: rows.map((row, i) => /* @__PURE__ */ jsx(FormTableRow, { ...row }, i)) }) }),
22
- footer && /* @__PURE__ */ jsx("div", { children: footer })
23
- ] });
24
- if (onSubmit) {
25
- return /* @__PURE__ */ jsx(
26
- "form",
27
- {
28
- ref,
29
- onSubmit,
30
- className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
31
- children: content
32
- }
33
- );
34
- }
35
- return /* @__PURE__ */ jsx("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: content });
36
- }
37
- );
38
- FormTable.displayName = "FormTable";
39
- var form_table_default = FormTable;
40
- var formTableStyle = tv({
41
- slots: {
42
- base: ["flex", "flex-col", "gap-[30px]"],
43
- table: ["w-full", "table-fixed", "border", "border-neutral-light"]
44
- }
45
- });
46
-
47
- export {
48
- form_table_default
49
- };
@@ -1,102 +0,0 @@
1
- "use client";
2
- import {
3
- Icon_default
4
- } from "./chunk-HWL7TPUN.mjs";
5
- import {
6
- tv
7
- } from "./chunk-4ZJFD3L3.mjs";
8
- import {
9
- clsx
10
- } from "./chunk-27Y6K5NK.mjs";
11
-
12
- // src/components/tree/tree.tsx
13
- import { forwardRef, useMemo, useState, useCallback } from "react";
14
- import { jsx, jsxs } from "react/jsx-runtime";
15
- var TreeNodeItem = forwardRef(
16
- ({ node, depth, fileIcon, isLoading, classNames }, ref) => {
17
- var _a;
18
- const [isOpen, setIsOpen] = useState(false);
19
- const slots = useMemo(() => treeStyle(), []);
20
- const toggleOpen = useCallback(() => {
21
- setIsOpen((prev) => !prev);
22
- }, []);
23
- return /* @__PURE__ */ jsxs(
24
- "div",
25
- {
26
- ref,
27
- className: clsx(
28
- depth > 1 ? "ml-[30px]" : "",
29
- "transition-all duration-150 ease-out",
30
- isLoading ? "-translate-y-2 opacity-0" : "translate-y-0 opacity-100"
31
- ),
32
- children: [
33
- /* @__PURE__ */ jsxs("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), onClick: toggleOpen, children: [
34
- node.children && /* @__PURE__ */ jsx(
35
- Icon_default,
36
- {
37
- name: "right-chevron",
38
- className: `text-neutral-main cursor-pointer transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
39
- }
40
- ),
41
- fileIcon,
42
- /* @__PURE__ */ jsx("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick: () => {
43
- var _a2;
44
- return (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
45
- }, children: node.label })
46
- ] }),
47
- isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ jsx(TreeNodeItem, { node: child, depth: depth + 1, classNames, fileIcon }, child.id)))
48
- ]
49
- }
50
- );
51
- }
52
- );
53
- var Tree = forwardRef(
54
- ({ headerContent, group, groupIcon, fileIcon, isLoading, classNames }, ref) => {
55
- const { label, data, onClick } = group;
56
- const slots = useMemo(() => treeStyle(), []);
57
- return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
58
- headerContent && /* @__PURE__ */ jsx("div", { children: headerContent }),
59
- /* @__PURE__ */ jsxs("div", { children: [
60
- /* @__PURE__ */ jsxs("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
61
- groupIcon,
62
- /* @__PURE__ */ jsx("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick, children: label })
63
- ] }),
64
- data.map((node) => /* @__PURE__ */ jsx(
65
- TreeNodeItem,
66
- {
67
- node,
68
- depth: 1,
69
- classNames,
70
- fileIcon,
71
- isLoading
72
- },
73
- node.id
74
- ))
75
- ] })
76
- ] });
77
- }
78
- );
79
- TreeNodeItem.displayName = "TreeNodeItem";
80
- Tree.displayName = "Tree";
81
- var tree_default = Tree;
82
- var treeStyle = tv({
83
- slots: {
84
- base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
85
- wrapper: [
86
- "flex",
87
- "items-center",
88
- "gap-[5px]",
89
- "text-md",
90
- "font-bold",
91
- "text-body-foreground",
92
- "hover:bg-neutral-soft",
93
- "p-[5px]",
94
- "rounded-[5px]"
95
- ],
96
- label: ["cursor-pointer"]
97
- }
98
- });
99
-
100
- export {
101
- tree_default
102
- };