@deepnoid/ui 0.1.77 → 0.1.79
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.
- package/.turbo/turbo-build.log +127 -127
- package/dist/{chunk-C5BUKC7Z.mjs → chunk-AX3D6VFT.mjs} +51 -41
- package/dist/{chunk-TKB2JL2E.mjs → chunk-D5N7OBSO.mjs} +18 -9
- package/dist/{chunk-T76NFNWV.mjs → chunk-R7VCFJGU.mjs} +2 -0
- package/dist/{chunk-V7YWEFVD.mjs → chunk-RSGTFDZ5.mjs} +4 -4
- package/dist/{chunk-5GBAUDP4.mjs → chunk-SIVCIIB6.mjs} +45 -5
- package/dist/{chunk-OKO3XRJS.mjs → chunk-SPIJ6ECD.mjs} +1 -1
- package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
- package/dist/components/breadcrumb/index.mjs +5 -5
- package/dist/components/button/button.mjs +2 -2
- package/dist/components/button/icon-button.mjs +2 -2
- package/dist/components/button/index.mjs +8 -8
- package/dist/components/fileUpload/fileUpload.mjs +5 -5
- package/dist/components/fileUpload/index.mjs +5 -5
- package/dist/components/modal/index.mjs +6 -6
- package/dist/components/modal/modal.mjs +6 -6
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/table/index.js +109 -50
- package/dist/components/table/index.mjs +5 -5
- package/dist/components/table/table-body.js +45 -5
- package/dist/components/table/table-body.mjs +1 -1
- package/dist/components/table/table-head.js +18 -9
- package/dist/components/table/table-head.mjs +1 -1
- package/dist/components/table/table.js +109 -50
- package/dist/components/table/table.mjs +5 -5
- package/dist/components/tree/index.js +2 -0
- package/dist/components/tree/index.mjs +1 -1
- package/dist/components/tree/tree.d.mts +6 -0
- package/dist/components/tree/tree.d.ts +6 -0
- package/dist/components/tree/tree.js +2 -0
- package/dist/components/tree/tree.mjs +1 -1
- package/dist/index.js +111 -50
- package/dist/index.mjs +25 -25
- package/package.json +1 -1
- package/dist/{chunk-6VL4OVGM.mjs → chunk-7JVTWM4U.mjs} +3 -3
- package/dist/{chunk-PDY7UYKZ.mjs → chunk-PQRAYOTJ.mjs} +3 -3
- package/dist/{chunk-RN76ARTS.mjs → chunk-Q7J5FAMH.mjs} +3 -3
package/dist/index.js
CHANGED
|
@@ -7714,23 +7714,30 @@ var TableHead = ({
|
|
|
7714
7714
|
e.preventDefault();
|
|
7715
7715
|
onCheckAll(!isCheckedAll);
|
|
7716
7716
|
};
|
|
7717
|
-
const renderTh = (content, key, column) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
7717
|
+
const renderTh = (content, key, column, isCheckbox) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
7718
7718
|
"th",
|
|
7719
7719
|
{
|
|
7720
|
-
className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column),
|
|
7720
|
+
className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column == null ? void 0 : column.className),
|
|
7721
7721
|
style: {
|
|
7722
|
-
width: (column == null ? void 0 : column.width) ? `${column.width}px` :
|
|
7723
|
-
minWidth: (column == null ? void 0 : column.minWidth) ? `${column.minWidth}px` : void 0,
|
|
7724
|
-
maxWidth: (column == null ? void 0 : column.maxWidth) ? `${column.maxWidth}px` : void 0,
|
|
7725
|
-
height: (column == null ? void 0 : column.height) ? `${column.height}px` : void 0
|
|
7722
|
+
width: isCheckbox ? "40px" : (column == null ? void 0 : column.width) ? `${column.width}px` : "auto",
|
|
7723
|
+
minWidth: isCheckbox ? "40px" : (column == null ? void 0 : column.minWidth) ? `${column.minWidth}px` : void 0,
|
|
7724
|
+
maxWidth: isCheckbox ? "40px" : (column == null ? void 0 : column.maxWidth) ? `${column.maxWidth}px` : void 0,
|
|
7725
|
+
height: (column == null ? void 0 : column.height) ? `${column.height}px` : void 0,
|
|
7726
|
+
...isCheckbox || (column == null ? void 0 : column.width) ? {
|
|
7727
|
+
flexShrink: 0,
|
|
7728
|
+
flexGrow: 0,
|
|
7729
|
+
boxSizing: "border-box"
|
|
7730
|
+
} : {}
|
|
7726
7731
|
},
|
|
7727
7732
|
children: content
|
|
7728
7733
|
},
|
|
7729
7734
|
key
|
|
7730
7735
|
);
|
|
7731
7736
|
const renderSkeletonRow = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "[&>th]:border-0"), children: [
|
|
7732
|
-
columns.map(
|
|
7733
|
-
|
|
7737
|
+
columns.map(
|
|
7738
|
+
(column, idx) => renderTh(/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(skeleton_default, { color, rounded: "lg", speed: "fast" }), `skeleton-${idx}`, column)
|
|
7739
|
+
),
|
|
7740
|
+
rowCheckbox && renderTh(/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(skeleton_default, { color, rounded: "lg", speed: "fast" }), "checkbox-skeleton", void 0, true)
|
|
7734
7741
|
] }) });
|
|
7735
7742
|
const renderContentRow = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
|
|
7736
7743
|
columns.map((column, idx) => renderTh(column.headerName, `${column.field}-${idx}`, column)),
|
|
@@ -7743,7 +7750,9 @@ var TableHead = ({
|
|
|
7743
7750
|
onChange: (e) => onCheckAll(e.target.checked)
|
|
7744
7751
|
}
|
|
7745
7752
|
) }),
|
|
7746
|
-
"checkbox"
|
|
7753
|
+
"checkbox",
|
|
7754
|
+
void 0,
|
|
7755
|
+
true
|
|
7747
7756
|
)
|
|
7748
7757
|
] }) });
|
|
7749
7758
|
return isLoading ? renderSkeletonRow() : renderContentRow();
|
|
@@ -7768,16 +7777,56 @@ var TableBody = ({
|
|
|
7768
7777
|
className
|
|
7769
7778
|
}) => {
|
|
7770
7779
|
const getCellStyle = (column) => ({
|
|
7771
|
-
width: column.width ? `${column.width}px` :
|
|
7780
|
+
width: column.width ? `${column.width}px` : "auto",
|
|
7772
7781
|
minWidth: column.minWidth ? `${column.minWidth}px` : void 0,
|
|
7773
7782
|
maxWidth: column.maxWidth ? `${column.maxWidth}px` : void 0,
|
|
7774
7783
|
height: column.height ? `${column.height}px` : void 0,
|
|
7775
|
-
textAlign: column.align || "center"
|
|
7784
|
+
textAlign: column.align || "center",
|
|
7785
|
+
...column.width && {
|
|
7786
|
+
flexShrink: 0,
|
|
7787
|
+
flexGrow: 0,
|
|
7788
|
+
boxSizing: "border-box",
|
|
7789
|
+
overflow: "hidden",
|
|
7790
|
+
textOverflow: "ellipsis",
|
|
7791
|
+
whiteSpace: "nowrap"
|
|
7792
|
+
}
|
|
7776
7793
|
});
|
|
7777
|
-
const renderTdSkeleton = (key
|
|
7778
|
-
|
|
7794
|
+
const renderTdSkeleton = (key, column) => {
|
|
7795
|
+
const isCheckbox = key.includes("checkbox");
|
|
7796
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
7797
|
+
"td",
|
|
7798
|
+
{
|
|
7799
|
+
className: slots.td({ class: classNames == null ? void 0 : classNames.td }),
|
|
7800
|
+
style: isCheckbox ? {
|
|
7801
|
+
width: "40px",
|
|
7802
|
+
minWidth: "40px",
|
|
7803
|
+
maxWidth: "40px",
|
|
7804
|
+
flexShrink: 0,
|
|
7805
|
+
flexGrow: 0,
|
|
7806
|
+
boxSizing: "border-box"
|
|
7807
|
+
} : column ? getCellStyle(column) : void 0,
|
|
7808
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(skeleton_default, { color, className: "h-full w-full", rounded: "lg", speed: "fast" })
|
|
7809
|
+
},
|
|
7810
|
+
key
|
|
7811
|
+
);
|
|
7812
|
+
};
|
|
7813
|
+
const renderCheckboxCell = (rowId) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
7814
|
+
"td",
|
|
7815
|
+
{
|
|
7816
|
+
className: clsx(slots.td({ class: classNames == null ? void 0 : classNames.td }), "text-center"),
|
|
7817
|
+
style: {
|
|
7818
|
+
width: "40px",
|
|
7819
|
+
minWidth: "40px",
|
|
7820
|
+
maxWidth: "40px",
|
|
7821
|
+
flexShrink: 0,
|
|
7822
|
+
flexGrow: 0,
|
|
7823
|
+
boxSizing: "border-box"
|
|
7824
|
+
},
|
|
7825
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(checkbox_default, { size, checked: checkedRows.has(rowId), onChange: (e) => onCheckRow(rowId, e.target.checked) })
|
|
7826
|
+
}
|
|
7827
|
+
);
|
|
7779
7828
|
const renderSkeletonRow = (rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
|
|
7780
|
-
columns.map((
|
|
7829
|
+
columns.map((column, colIdx) => renderTdSkeleton(`skeleton-${rowIndex}-${colIdx}`, column)),
|
|
7781
7830
|
rowCheckbox && renderTdSkeleton(`skeleton-checkbox-${rowIndex}`)
|
|
7782
7831
|
] }, `skeleton-${rowIndex}`);
|
|
7783
7832
|
const renderEmptyRow = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { colSpan: columns.length + (rowCheckbox ? 1 : 0), className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) });
|
|
@@ -8185,43 +8234,53 @@ var Table = (0, import_react15.forwardRef)((originalProps, ref) => {
|
|
|
8185
8234
|
const getCheckedRowData = (checked) => rows.filter((row) => checked.has(row.id));
|
|
8186
8235
|
const slots = (0, import_react15.useMemo)(() => tableStyle(variantProps), [variantProps]);
|
|
8187
8236
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
8188
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
{
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8237
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
8238
|
+
"table",
|
|
8239
|
+
{
|
|
8240
|
+
className: slots.table({ class: classNames == null ? void 0 : classNames.table }),
|
|
8241
|
+
style: {
|
|
8242
|
+
tableLayout: "fixed",
|
|
8243
|
+
width: "100%"
|
|
8244
|
+
},
|
|
8245
|
+
children: [
|
|
8246
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
8247
|
+
table_head_default,
|
|
8248
|
+
{
|
|
8249
|
+
columns,
|
|
8250
|
+
size,
|
|
8251
|
+
color,
|
|
8252
|
+
rowCheckbox,
|
|
8253
|
+
isCheckedAll: checkedRows.size === rows.length && rows.length > 0,
|
|
8254
|
+
onCheckAll: handleAllRowCheck,
|
|
8255
|
+
isLoading,
|
|
8256
|
+
classNames,
|
|
8257
|
+
slots
|
|
8258
|
+
}
|
|
8259
|
+
),
|
|
8260
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
8261
|
+
table_body_default,
|
|
8262
|
+
{
|
|
8263
|
+
slots,
|
|
8264
|
+
rows,
|
|
8265
|
+
columns,
|
|
8266
|
+
size,
|
|
8267
|
+
color,
|
|
8268
|
+
rowCheckbox,
|
|
8269
|
+
checkedRows,
|
|
8270
|
+
onCheckRow: handleRowCheck,
|
|
8271
|
+
emptyContent,
|
|
8272
|
+
isLoading,
|
|
8273
|
+
skeletonRow,
|
|
8274
|
+
className: clsx(
|
|
8275
|
+
"transition-all duration-150 ease-out",
|
|
8276
|
+
isLoading ? "-translate-y-2 opacity-0" : "translate-y-0 opacity-100",
|
|
8277
|
+
classNames
|
|
8278
|
+
)
|
|
8279
|
+
}
|
|
8221
8280
|
)
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8281
|
+
]
|
|
8282
|
+
}
|
|
8283
|
+
) }),
|
|
8225
8284
|
showPagination && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
8226
8285
|
pagination_default,
|
|
8227
8286
|
{
|
|
@@ -11249,6 +11308,7 @@ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames,
|
|
|
11249
11308
|
"div",
|
|
11250
11309
|
{
|
|
11251
11310
|
className: clsx(
|
|
11311
|
+
slots.groupNode({ class: classNames == null ? void 0 : classNames.groupNode }),
|
|
11252
11312
|
slots.node({ class: classNames == null ? void 0 : classNames.node }),
|
|
11253
11313
|
group.onClick || group.onRightClick ? slots.clickable({ class: classNames == null ? void 0 : classNames.clickable }) : ""
|
|
11254
11314
|
),
|
|
@@ -11282,6 +11342,7 @@ var treeStyle = tv({
|
|
|
11282
11342
|
base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
|
|
11283
11343
|
wrapper: ["flex", "flex-col", "gap-[5px]"],
|
|
11284
11344
|
itemWrapper: ["flex", "flex-col", "gap-[5px]"],
|
|
11345
|
+
groupNode: [],
|
|
11285
11346
|
node: [
|
|
11286
11347
|
"flex",
|
|
11287
11348
|
"items-center",
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./chunk-MBLZYQCN.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tree_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R7VCFJGU.mjs";
|
|
6
6
|
import "./chunk-RRAZM5D3.mjs";
|
|
7
7
|
import {
|
|
8
8
|
textarea_default
|
|
@@ -28,17 +28,17 @@ import {
|
|
|
28
28
|
} from "./chunk-KCAGZUYM.mjs";
|
|
29
29
|
import {
|
|
30
30
|
table_default
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-AX3D6VFT.mjs";
|
|
32
|
+
import "./chunk-SIVCIIB6.mjs";
|
|
33
|
+
import "./chunk-D5N7OBSO.mjs";
|
|
34
34
|
import "./chunk-3MY6LO7N.mjs";
|
|
35
35
|
import {
|
|
36
36
|
tabs_default
|
|
37
37
|
} from "./chunk-FRKIXGG5.mjs";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-DQRAFUDA.mjs";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
} from "./chunk-
|
|
40
|
+
scrollArea_default
|
|
41
|
+
} from "./chunk-M37VBNB3.mjs";
|
|
42
42
|
import "./chunk-QCEKPS7U.mjs";
|
|
43
43
|
import {
|
|
44
44
|
select_default
|
|
@@ -56,14 +56,14 @@ import {
|
|
|
56
56
|
pagination_default
|
|
57
57
|
} from "./chunk-CC2F5HQX.mjs";
|
|
58
58
|
import "./chunk-F3HENRVM.mjs";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-TPFN22HR.mjs";
|
|
60
60
|
import {
|
|
61
|
-
|
|
62
|
-
} from "./chunk-
|
|
61
|
+
radio_default
|
|
62
|
+
} from "./chunk-5IESFXPF.mjs";
|
|
63
63
|
import "./chunk-DJOG6Z35.mjs";
|
|
64
64
|
import {
|
|
65
65
|
modal_default
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-SPIJ6ECD.mjs";
|
|
67
67
|
import "./chunk-32GA3YW4.mjs";
|
|
68
68
|
import {
|
|
69
69
|
drawer_default
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
import "./chunk-RLXOHILK.mjs";
|
|
72
72
|
import {
|
|
73
73
|
fileUpload_default
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-RSGTFDZ5.mjs";
|
|
75
75
|
import "./chunk-2GCSFWHD.mjs";
|
|
76
76
|
import {
|
|
77
77
|
input_default
|
|
@@ -100,17 +100,6 @@ import {
|
|
|
100
100
|
import "./chunk-FWJ2ZKH6.mjs";
|
|
101
101
|
import "./chunk-TUXYVNTY.mjs";
|
|
102
102
|
import "./chunk-P732YGHO.mjs";
|
|
103
|
-
import "./chunk-KYIODWXL.mjs";
|
|
104
|
-
import {
|
|
105
|
-
breadcrumb_default
|
|
106
|
-
} from "./chunk-6VL4OVGM.mjs";
|
|
107
|
-
import "./chunk-MY5U63QO.mjs";
|
|
108
|
-
import {
|
|
109
|
-
icon_button_default
|
|
110
|
-
} from "./chunk-PDY7UYKZ.mjs";
|
|
111
|
-
import {
|
|
112
|
-
text_button_default
|
|
113
|
-
} from "./chunk-TVTIX7MO.mjs";
|
|
114
103
|
import {
|
|
115
104
|
areaChart_default
|
|
116
105
|
} from "./chunk-STAE4IPE.mjs";
|
|
@@ -128,20 +117,31 @@ import "./chunk-SE5TU755.mjs";
|
|
|
128
117
|
import {
|
|
129
118
|
backdrop_default
|
|
130
119
|
} from "./chunk-FZJ5PLRU.mjs";
|
|
120
|
+
import "./chunk-KYIODWXL.mjs";
|
|
121
|
+
import {
|
|
122
|
+
breadcrumb_default
|
|
123
|
+
} from "./chunk-7JVTWM4U.mjs";
|
|
124
|
+
import "./chunk-MY5U63QO.mjs";
|
|
131
125
|
import {
|
|
132
126
|
button_group_default
|
|
133
127
|
} from "./chunk-EKWUOA5B.mjs";
|
|
134
128
|
import {
|
|
135
129
|
button_default
|
|
136
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-Q7J5FAMH.mjs";
|
|
131
|
+
import {
|
|
132
|
+
icon_button_default
|
|
133
|
+
} from "./chunk-PQRAYOTJ.mjs";
|
|
137
134
|
import "./chunk-6WSACUIB.mjs";
|
|
138
|
-
import "./chunk-LXHUO6VM.mjs";
|
|
139
135
|
import "./chunk-6PNKRBUT.mjs";
|
|
136
|
+
import "./chunk-LXHUO6VM.mjs";
|
|
140
137
|
import "./chunk-ZYIIXWVY.mjs";
|
|
141
138
|
import {
|
|
142
139
|
Icon_default,
|
|
143
140
|
iconTemplate
|
|
144
141
|
} from "./chunk-JP4TEWP7.mjs";
|
|
142
|
+
import {
|
|
143
|
+
text_button_default
|
|
144
|
+
} from "./chunk-TVTIX7MO.mjs";
|
|
145
145
|
import "./chunk-RRONV7YA.mjs";
|
|
146
146
|
import {
|
|
147
147
|
deepnoidUi,
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
text_button_default
|
|
4
|
-
} from "./chunk-TVTIX7MO.mjs";
|
|
5
2
|
import {
|
|
6
3
|
Icon_default
|
|
7
4
|
} from "./chunk-JP4TEWP7.mjs";
|
|
5
|
+
import {
|
|
6
|
+
text_button_default
|
|
7
|
+
} from "./chunk-TVTIX7MO.mjs";
|
|
8
8
|
import {
|
|
9
9
|
tv
|
|
10
10
|
} from "./chunk-XOPCRI7Z.mjs";
|