@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
|
@@ -687,16 +687,56 @@ var TableBody = ({
|
|
|
687
687
|
className
|
|
688
688
|
}) => {
|
|
689
689
|
const getCellStyle = (column) => ({
|
|
690
|
-
width: column.width ? `${column.width}px` :
|
|
690
|
+
width: column.width ? `${column.width}px` : "auto",
|
|
691
691
|
minWidth: column.minWidth ? `${column.minWidth}px` : void 0,
|
|
692
692
|
maxWidth: column.maxWidth ? `${column.maxWidth}px` : void 0,
|
|
693
693
|
height: column.height ? `${column.height}px` : void 0,
|
|
694
|
-
textAlign: column.align || "center"
|
|
694
|
+
textAlign: column.align || "center",
|
|
695
|
+
...column.width && {
|
|
696
|
+
flexShrink: 0,
|
|
697
|
+
flexGrow: 0,
|
|
698
|
+
boxSizing: "border-box",
|
|
699
|
+
overflow: "hidden",
|
|
700
|
+
textOverflow: "ellipsis",
|
|
701
|
+
whiteSpace: "nowrap"
|
|
702
|
+
}
|
|
695
703
|
});
|
|
696
|
-
const renderTdSkeleton = (key
|
|
697
|
-
|
|
704
|
+
const renderTdSkeleton = (key, column) => {
|
|
705
|
+
const isCheckbox = key.includes("checkbox");
|
|
706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
707
|
+
"td",
|
|
708
|
+
{
|
|
709
|
+
className: slots.td({ class: classNames == null ? void 0 : classNames.td }),
|
|
710
|
+
style: isCheckbox ? {
|
|
711
|
+
width: "40px",
|
|
712
|
+
minWidth: "40px",
|
|
713
|
+
maxWidth: "40px",
|
|
714
|
+
flexShrink: 0,
|
|
715
|
+
flexGrow: 0,
|
|
716
|
+
boxSizing: "border-box"
|
|
717
|
+
} : column ? getCellStyle(column) : void 0,
|
|
718
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(skeleton_default, { color, className: "h-full w-full", rounded: "lg", speed: "fast" })
|
|
719
|
+
},
|
|
720
|
+
key
|
|
721
|
+
);
|
|
722
|
+
};
|
|
723
|
+
const renderCheckboxCell = (rowId) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
724
|
+
"td",
|
|
725
|
+
{
|
|
726
|
+
className: clsx(slots.td({ class: classNames == null ? void 0 : classNames.td }), "text-center"),
|
|
727
|
+
style: {
|
|
728
|
+
width: "40px",
|
|
729
|
+
minWidth: "40px",
|
|
730
|
+
maxWidth: "40px",
|
|
731
|
+
flexShrink: 0,
|
|
732
|
+
flexGrow: 0,
|
|
733
|
+
boxSizing: "border-box"
|
|
734
|
+
},
|
|
735
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(checkbox_default, { size, checked: checkedRows.has(rowId), onChange: (e) => onCheckRow(rowId, e.target.checked) })
|
|
736
|
+
}
|
|
737
|
+
);
|
|
698
738
|
const renderSkeletonRow = (rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
|
|
699
|
-
columns.map((
|
|
739
|
+
columns.map((column, colIdx) => renderTdSkeleton(`skeleton-${rowIndex}-${colIdx}`, column)),
|
|
700
740
|
rowCheckbox && renderTdSkeleton(`skeleton-checkbox-${rowIndex}`)
|
|
701
741
|
] }, `skeleton-${rowIndex}`);
|
|
702
742
|
const renderEmptyRow = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { colSpan: columns.length + (rowCheckbox ? 1 : 0), className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) });
|
|
@@ -686,23 +686,30 @@ var TableHead = ({
|
|
|
686
686
|
e.preventDefault();
|
|
687
687
|
onCheckAll(!isCheckedAll);
|
|
688
688
|
};
|
|
689
|
-
const renderTh = (content, key, column) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
689
|
+
const renderTh = (content, key, column, isCheckbox) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
690
690
|
"th",
|
|
691
691
|
{
|
|
692
|
-
className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column),
|
|
692
|
+
className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column == null ? void 0 : column.className),
|
|
693
693
|
style: {
|
|
694
|
-
width: (column == null ? void 0 : column.width) ? `${column.width}px` :
|
|
695
|
-
minWidth: (column == null ? void 0 : column.minWidth) ? `${column.minWidth}px` : void 0,
|
|
696
|
-
maxWidth: (column == null ? void 0 : column.maxWidth) ? `${column.maxWidth}px` : void 0,
|
|
697
|
-
height: (column == null ? void 0 : column.height) ? `${column.height}px` : void 0
|
|
694
|
+
width: isCheckbox ? "40px" : (column == null ? void 0 : column.width) ? `${column.width}px` : "auto",
|
|
695
|
+
minWidth: isCheckbox ? "40px" : (column == null ? void 0 : column.minWidth) ? `${column.minWidth}px` : void 0,
|
|
696
|
+
maxWidth: isCheckbox ? "40px" : (column == null ? void 0 : column.maxWidth) ? `${column.maxWidth}px` : void 0,
|
|
697
|
+
height: (column == null ? void 0 : column.height) ? `${column.height}px` : void 0,
|
|
698
|
+
...isCheckbox || (column == null ? void 0 : column.width) ? {
|
|
699
|
+
flexShrink: 0,
|
|
700
|
+
flexGrow: 0,
|
|
701
|
+
boxSizing: "border-box"
|
|
702
|
+
} : {}
|
|
698
703
|
},
|
|
699
704
|
children: content
|
|
700
705
|
},
|
|
701
706
|
key
|
|
702
707
|
);
|
|
703
708
|
const renderSkeletonRow = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "[&>th]:border-0"), children: [
|
|
704
|
-
columns.map(
|
|
705
|
-
|
|
709
|
+
columns.map(
|
|
710
|
+
(column, idx) => renderTh(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(skeleton_default, { color, rounded: "lg", speed: "fast" }), `skeleton-${idx}`, column)
|
|
711
|
+
),
|
|
712
|
+
rowCheckbox && renderTh(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(skeleton_default, { color, rounded: "lg", speed: "fast" }), "checkbox-skeleton", void 0, true)
|
|
706
713
|
] }) });
|
|
707
714
|
const renderContentRow = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
|
|
708
715
|
columns.map((column, idx) => renderTh(column.headerName, `${column.field}-${idx}`, column)),
|
|
@@ -715,7 +722,9 @@ var TableHead = ({
|
|
|
715
722
|
onChange: (e) => onCheckAll(e.target.checked)
|
|
716
723
|
}
|
|
717
724
|
) }),
|
|
718
|
-
"checkbox"
|
|
725
|
+
"checkbox",
|
|
726
|
+
void 0,
|
|
727
|
+
true
|
|
719
728
|
)
|
|
720
729
|
] }) });
|
|
721
730
|
return isLoading ? renderSkeletonRow() : renderContentRow();
|
|
@@ -688,23 +688,30 @@ var TableHead = ({
|
|
|
688
688
|
e.preventDefault();
|
|
689
689
|
onCheckAll(!isCheckedAll);
|
|
690
690
|
};
|
|
691
|
-
const renderTh = (content, key, column) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
691
|
+
const renderTh = (content, key, column, isCheckbox) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
692
692
|
"th",
|
|
693
693
|
{
|
|
694
|
-
className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column),
|
|
694
|
+
className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column == null ? void 0 : column.className),
|
|
695
695
|
style: {
|
|
696
|
-
width: (column == null ? void 0 : column.width) ? `${column.width}px` :
|
|
697
|
-
minWidth: (column == null ? void 0 : column.minWidth) ? `${column.minWidth}px` : void 0,
|
|
698
|
-
maxWidth: (column == null ? void 0 : column.maxWidth) ? `${column.maxWidth}px` : void 0,
|
|
699
|
-
height: (column == null ? void 0 : column.height) ? `${column.height}px` : void 0
|
|
696
|
+
width: isCheckbox ? "40px" : (column == null ? void 0 : column.width) ? `${column.width}px` : "auto",
|
|
697
|
+
minWidth: isCheckbox ? "40px" : (column == null ? void 0 : column.minWidth) ? `${column.minWidth}px` : void 0,
|
|
698
|
+
maxWidth: isCheckbox ? "40px" : (column == null ? void 0 : column.maxWidth) ? `${column.maxWidth}px` : void 0,
|
|
699
|
+
height: (column == null ? void 0 : column.height) ? `${column.height}px` : void 0,
|
|
700
|
+
...isCheckbox || (column == null ? void 0 : column.width) ? {
|
|
701
|
+
flexShrink: 0,
|
|
702
|
+
flexGrow: 0,
|
|
703
|
+
boxSizing: "border-box"
|
|
704
|
+
} : {}
|
|
700
705
|
},
|
|
701
706
|
children: content
|
|
702
707
|
},
|
|
703
708
|
key
|
|
704
709
|
);
|
|
705
710
|
const renderSkeletonRow = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "[&>th]:border-0"), children: [
|
|
706
|
-
columns.map(
|
|
707
|
-
|
|
711
|
+
columns.map(
|
|
712
|
+
(column, idx) => renderTh(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(skeleton_default, { color, rounded: "lg", speed: "fast" }), `skeleton-${idx}`, column)
|
|
713
|
+
),
|
|
714
|
+
rowCheckbox && renderTh(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(skeleton_default, { color, rounded: "lg", speed: "fast" }), "checkbox-skeleton", void 0, true)
|
|
708
715
|
] }) });
|
|
709
716
|
const renderContentRow = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
|
|
710
717
|
columns.map((column, idx) => renderTh(column.headerName, `${column.field}-${idx}`, column)),
|
|
@@ -717,7 +724,9 @@ var TableHead = ({
|
|
|
717
724
|
onChange: (e) => onCheckAll(e.target.checked)
|
|
718
725
|
}
|
|
719
726
|
) }),
|
|
720
|
-
"checkbox"
|
|
727
|
+
"checkbox",
|
|
728
|
+
void 0,
|
|
729
|
+
true
|
|
721
730
|
)
|
|
722
731
|
] }) });
|
|
723
732
|
return isLoading ? renderSkeletonRow() : renderContentRow();
|
|
@@ -742,16 +751,56 @@ var TableBody = ({
|
|
|
742
751
|
className
|
|
743
752
|
}) => {
|
|
744
753
|
const getCellStyle = (column) => ({
|
|
745
|
-
width: column.width ? `${column.width}px` :
|
|
754
|
+
width: column.width ? `${column.width}px` : "auto",
|
|
746
755
|
minWidth: column.minWidth ? `${column.minWidth}px` : void 0,
|
|
747
756
|
maxWidth: column.maxWidth ? `${column.maxWidth}px` : void 0,
|
|
748
757
|
height: column.height ? `${column.height}px` : void 0,
|
|
749
|
-
textAlign: column.align || "center"
|
|
758
|
+
textAlign: column.align || "center",
|
|
759
|
+
...column.width && {
|
|
760
|
+
flexShrink: 0,
|
|
761
|
+
flexGrow: 0,
|
|
762
|
+
boxSizing: "border-box",
|
|
763
|
+
overflow: "hidden",
|
|
764
|
+
textOverflow: "ellipsis",
|
|
765
|
+
whiteSpace: "nowrap"
|
|
766
|
+
}
|
|
750
767
|
});
|
|
751
|
-
const renderTdSkeleton = (key
|
|
752
|
-
|
|
768
|
+
const renderTdSkeleton = (key, column) => {
|
|
769
|
+
const isCheckbox = key.includes("checkbox");
|
|
770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
771
|
+
"td",
|
|
772
|
+
{
|
|
773
|
+
className: slots.td({ class: classNames == null ? void 0 : classNames.td }),
|
|
774
|
+
style: isCheckbox ? {
|
|
775
|
+
width: "40px",
|
|
776
|
+
minWidth: "40px",
|
|
777
|
+
maxWidth: "40px",
|
|
778
|
+
flexShrink: 0,
|
|
779
|
+
flexGrow: 0,
|
|
780
|
+
boxSizing: "border-box"
|
|
781
|
+
} : column ? getCellStyle(column) : void 0,
|
|
782
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(skeleton_default, { color, className: "h-full w-full", rounded: "lg", speed: "fast" })
|
|
783
|
+
},
|
|
784
|
+
key
|
|
785
|
+
);
|
|
786
|
+
};
|
|
787
|
+
const renderCheckboxCell = (rowId) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
788
|
+
"td",
|
|
789
|
+
{
|
|
790
|
+
className: clsx(slots.td({ class: classNames == null ? void 0 : classNames.td }), "text-center"),
|
|
791
|
+
style: {
|
|
792
|
+
width: "40px",
|
|
793
|
+
minWidth: "40px",
|
|
794
|
+
maxWidth: "40px",
|
|
795
|
+
flexShrink: 0,
|
|
796
|
+
flexGrow: 0,
|
|
797
|
+
boxSizing: "border-box"
|
|
798
|
+
},
|
|
799
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(checkbox_default, { size, checked: checkedRows.has(rowId), onChange: (e) => onCheckRow(rowId, e.target.checked) })
|
|
800
|
+
}
|
|
801
|
+
);
|
|
753
802
|
const renderSkeletonRow = (rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
|
|
754
|
-
columns.map((
|
|
803
|
+
columns.map((column, colIdx) => renderTdSkeleton(`skeleton-${rowIndex}-${colIdx}`, column)),
|
|
755
804
|
rowCheckbox && renderTdSkeleton(`skeleton-checkbox-${rowIndex}`)
|
|
756
805
|
] }, `skeleton-${rowIndex}`);
|
|
757
806
|
const renderEmptyRow = () => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("td", { colSpan: columns.length + (rowCheckbox ? 1 : 0), className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) });
|
|
@@ -6162,43 +6211,53 @@ var Table = (0, import_react5.forwardRef)((originalProps, ref) => {
|
|
|
6162
6211
|
const getCheckedRowData = (checked) => rows.filter((row) => checked.has(row.id));
|
|
6163
6212
|
const slots = (0, import_react5.useMemo)(() => tableStyle(variantProps), [variantProps]);
|
|
6164
6213
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
6165
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
{
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6214
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
6215
|
+
"table",
|
|
6216
|
+
{
|
|
6217
|
+
className: slots.table({ class: classNames == null ? void 0 : classNames.table }),
|
|
6218
|
+
style: {
|
|
6219
|
+
tableLayout: "fixed",
|
|
6220
|
+
width: "100%"
|
|
6221
|
+
},
|
|
6222
|
+
children: [
|
|
6223
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
6224
|
+
table_head_default,
|
|
6225
|
+
{
|
|
6226
|
+
columns,
|
|
6227
|
+
size,
|
|
6228
|
+
color,
|
|
6229
|
+
rowCheckbox,
|
|
6230
|
+
isCheckedAll: checkedRows.size === rows.length && rows.length > 0,
|
|
6231
|
+
onCheckAll: handleAllRowCheck,
|
|
6232
|
+
isLoading,
|
|
6233
|
+
classNames,
|
|
6234
|
+
slots
|
|
6235
|
+
}
|
|
6236
|
+
),
|
|
6237
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
6238
|
+
table_body_default,
|
|
6239
|
+
{
|
|
6240
|
+
slots,
|
|
6241
|
+
rows,
|
|
6242
|
+
columns,
|
|
6243
|
+
size,
|
|
6244
|
+
color,
|
|
6245
|
+
rowCheckbox,
|
|
6246
|
+
checkedRows,
|
|
6247
|
+
onCheckRow: handleRowCheck,
|
|
6248
|
+
emptyContent,
|
|
6249
|
+
isLoading,
|
|
6250
|
+
skeletonRow,
|
|
6251
|
+
className: clsx(
|
|
6252
|
+
"transition-all duration-150 ease-out",
|
|
6253
|
+
isLoading ? "-translate-y-2 opacity-0" : "translate-y-0 opacity-100",
|
|
6254
|
+
classNames
|
|
6255
|
+
)
|
|
6256
|
+
}
|
|
6198
6257
|
)
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6258
|
+
]
|
|
6259
|
+
}
|
|
6260
|
+
) }),
|
|
6202
6261
|
showPagination && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
6203
6262
|
pagination_default,
|
|
6204
6263
|
{
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-AX3D6VFT.mjs";
|
|
5
|
+
import "../../chunk-SIVCIIB6.mjs";
|
|
6
|
+
import "../../chunk-D5N7OBSO.mjs";
|
|
7
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
8
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
7
9
|
import "../../chunk-MZ76AA76.mjs";
|
|
8
10
|
import "../../chunk-6PN3DGOE.mjs";
|
|
9
11
|
import "../../chunk-7B7LRG5J.mjs";
|
|
10
12
|
import "../../chunk-CC2F5HQX.mjs";
|
|
11
13
|
import "../../chunk-F3HENRVM.mjs";
|
|
12
|
-
import "../../chunk-DQRAFUDA.mjs";
|
|
13
|
-
import "../../chunk-M37VBNB3.mjs";
|
|
14
14
|
import "../../chunk-2GCSFWHD.mjs";
|
|
15
15
|
import "../../chunk-5M7UDEMG.mjs";
|
|
16
16
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
@@ -5115,6 +5115,7 @@ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames,
|
|
|
5115
5115
|
"div",
|
|
5116
5116
|
{
|
|
5117
5117
|
className: clsx(
|
|
5118
|
+
slots.groupNode({ class: classNames == null ? void 0 : classNames.groupNode }),
|
|
5118
5119
|
slots.node({ class: classNames == null ? void 0 : classNames.node }),
|
|
5119
5120
|
group.onClick || group.onRightClick ? slots.clickable({ class: classNames == null ? void 0 : classNames.clickable }) : ""
|
|
5120
5121
|
),
|
|
@@ -5148,6 +5149,7 @@ var treeStyle = tv({
|
|
|
5148
5149
|
base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
|
|
5149
5150
|
wrapper: ["flex", "flex-col", "gap-[5px]"],
|
|
5150
5151
|
itemWrapper: ["flex", "flex-col", "gap-[5px]"],
|
|
5152
|
+
groupNode: [],
|
|
5151
5153
|
node: [
|
|
5152
5154
|
"flex",
|
|
5153
5155
|
"items-center",
|
|
@@ -38,6 +38,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
|
38
38
|
base?: tailwind_merge.ClassNameValue;
|
|
39
39
|
wrapper?: tailwind_merge.ClassNameValue;
|
|
40
40
|
itemWrapper?: tailwind_merge.ClassNameValue;
|
|
41
|
+
groupNode?: tailwind_merge.ClassNameValue;
|
|
41
42
|
node?: tailwind_merge.ClassNameValue;
|
|
42
43
|
clickable?: tailwind_merge.ClassNameValue;
|
|
43
44
|
};
|
|
@@ -49,6 +50,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
|
49
50
|
base?: tailwind_merge.ClassNameValue;
|
|
50
51
|
wrapper?: tailwind_merge.ClassNameValue;
|
|
51
52
|
itemWrapper?: tailwind_merge.ClassNameValue;
|
|
53
|
+
groupNode?: tailwind_merge.ClassNameValue;
|
|
52
54
|
node?: tailwind_merge.ClassNameValue;
|
|
53
55
|
clickable?: tailwind_merge.ClassNameValue;
|
|
54
56
|
};
|
|
@@ -57,6 +59,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
|
57
59
|
base: string[];
|
|
58
60
|
wrapper: string[];
|
|
59
61
|
itemWrapper: string[];
|
|
62
|
+
groupNode: never[];
|
|
60
63
|
node: string[];
|
|
61
64
|
clickable: string[];
|
|
62
65
|
gap: string[];
|
|
@@ -67,6 +70,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
|
67
70
|
base?: tailwind_merge.ClassNameValue;
|
|
68
71
|
wrapper?: tailwind_merge.ClassNameValue;
|
|
69
72
|
itemWrapper?: tailwind_merge.ClassNameValue;
|
|
73
|
+
groupNode?: tailwind_merge.ClassNameValue;
|
|
70
74
|
node?: tailwind_merge.ClassNameValue;
|
|
71
75
|
clickable?: tailwind_merge.ClassNameValue;
|
|
72
76
|
};
|
|
@@ -75,6 +79,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
|
75
79
|
base: string[];
|
|
76
80
|
wrapper: string[];
|
|
77
81
|
itemWrapper: string[];
|
|
82
|
+
groupNode: never[];
|
|
78
83
|
node: string[];
|
|
79
84
|
clickable: string[];
|
|
80
85
|
gap: string[];
|
|
@@ -82,6 +87,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
|
82
87
|
base: string[];
|
|
83
88
|
wrapper: string[];
|
|
84
89
|
itemWrapper: string[];
|
|
90
|
+
groupNode: never[];
|
|
85
91
|
node: string[];
|
|
86
92
|
clickable: string[];
|
|
87
93
|
gap: string[];
|
|
@@ -38,6 +38,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
|
38
38
|
base?: tailwind_merge.ClassNameValue;
|
|
39
39
|
wrapper?: tailwind_merge.ClassNameValue;
|
|
40
40
|
itemWrapper?: tailwind_merge.ClassNameValue;
|
|
41
|
+
groupNode?: tailwind_merge.ClassNameValue;
|
|
41
42
|
node?: tailwind_merge.ClassNameValue;
|
|
42
43
|
clickable?: tailwind_merge.ClassNameValue;
|
|
43
44
|
};
|
|
@@ -49,6 +50,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
|
49
50
|
base?: tailwind_merge.ClassNameValue;
|
|
50
51
|
wrapper?: tailwind_merge.ClassNameValue;
|
|
51
52
|
itemWrapper?: tailwind_merge.ClassNameValue;
|
|
53
|
+
groupNode?: tailwind_merge.ClassNameValue;
|
|
52
54
|
node?: tailwind_merge.ClassNameValue;
|
|
53
55
|
clickable?: tailwind_merge.ClassNameValue;
|
|
54
56
|
};
|
|
@@ -57,6 +59,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
|
57
59
|
base: string[];
|
|
58
60
|
wrapper: string[];
|
|
59
61
|
itemWrapper: string[];
|
|
62
|
+
groupNode: never[];
|
|
60
63
|
node: string[];
|
|
61
64
|
clickable: string[];
|
|
62
65
|
gap: string[];
|
|
@@ -67,6 +70,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
|
67
70
|
base?: tailwind_merge.ClassNameValue;
|
|
68
71
|
wrapper?: tailwind_merge.ClassNameValue;
|
|
69
72
|
itemWrapper?: tailwind_merge.ClassNameValue;
|
|
73
|
+
groupNode?: tailwind_merge.ClassNameValue;
|
|
70
74
|
node?: tailwind_merge.ClassNameValue;
|
|
71
75
|
clickable?: tailwind_merge.ClassNameValue;
|
|
72
76
|
};
|
|
@@ -75,6 +79,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
|
75
79
|
base: string[];
|
|
76
80
|
wrapper: string[];
|
|
77
81
|
itemWrapper: string[];
|
|
82
|
+
groupNode: never[];
|
|
78
83
|
node: string[];
|
|
79
84
|
clickable: string[];
|
|
80
85
|
gap: string[];
|
|
@@ -82,6 +87,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
|
82
87
|
base: string[];
|
|
83
88
|
wrapper: string[];
|
|
84
89
|
itemWrapper: string[];
|
|
90
|
+
groupNode: never[];
|
|
85
91
|
node: string[];
|
|
86
92
|
clickable: string[];
|
|
87
93
|
gap: string[];
|
|
@@ -5114,6 +5114,7 @@ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames,
|
|
|
5114
5114
|
"div",
|
|
5115
5115
|
{
|
|
5116
5116
|
className: clsx(
|
|
5117
|
+
slots.groupNode({ class: classNames == null ? void 0 : classNames.groupNode }),
|
|
5117
5118
|
slots.node({ class: classNames == null ? void 0 : classNames.node }),
|
|
5118
5119
|
group.onClick || group.onRightClick ? slots.clickable({ class: classNames == null ? void 0 : classNames.clickable }) : ""
|
|
5119
5120
|
),
|
|
@@ -5147,6 +5148,7 @@ var treeStyle = tv({
|
|
|
5147
5148
|
base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
|
|
5148
5149
|
wrapper: ["flex", "flex-col", "gap-[5px]"],
|
|
5149
5150
|
itemWrapper: ["flex", "flex-col", "gap-[5px]"],
|
|
5151
|
+
groupNode: [],
|
|
5150
5152
|
node: [
|
|
5151
5153
|
"flex",
|
|
5152
5154
|
"items-center",
|