@deepnoid/ui 0.1.54 → 0.1.56
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 +168 -168
- package/dist/{chunk-ZVGVLD3T.mjs → chunk-3I7QA57V.mjs} +23 -0
- package/dist/{chunk-X3A2QD6L.mjs → chunk-3ONHMYAP.mjs} +1 -1
- package/dist/{chunk-7XFHA2U5.mjs → chunk-4T7R3PEH.mjs} +1 -1
- package/dist/{chunk-PVFDO2WN.mjs → chunk-73RWXO3Y.mjs} +1 -1
- package/dist/{chunk-T43IV3GD.mjs → chunk-BWTDELPC.mjs} +2 -2
- package/dist/{chunk-5SNPCI6I.mjs → chunk-C4AGYO7C.mjs} +1 -1
- package/dist/{chunk-FKKDEWW3.mjs → chunk-D47SHPFE.mjs} +1 -1
- package/dist/{chunk-LF4SL2LJ.mjs → chunk-DLFXCMUU.mjs} +1 -1
- package/dist/{chunk-YUMQWCQ3.mjs → chunk-DLQGQUCD.mjs} +1 -1
- package/dist/{chunk-LTNDSCRA.mjs → chunk-DZ6QJCDZ.mjs} +1 -1
- package/dist/{chunk-RQ6ADHCR.mjs → chunk-GL5J2BKI.mjs} +1 -1
- package/dist/{chunk-EFCGMDDE.mjs → chunk-HHRKPSO6.mjs} +52 -42
- package/dist/{chunk-RBQEUS4K.mjs → chunk-IC3O54EM.mjs} +3 -3
- package/dist/{chunk-GC3GYCKY.mjs → chunk-JDWX2LKJ.mjs} +1 -1
- package/dist/{chunk-Y3FMWQ7R.mjs → chunk-L3RCWZTV.mjs} +1 -1
- package/dist/{chunk-OTEWHVER.mjs → chunk-LQEA2HU5.mjs} +2 -2
- package/dist/{chunk-NWV5ELFP.mjs → chunk-PMZH6GPQ.mjs} +3 -3
- package/dist/{chunk-FDBWNO2X.mjs → chunk-UETBYMGS.mjs} +1 -1
- package/dist/{chunk-MXLJ3B4K.mjs → chunk-YZDZYMBP.mjs} +2 -2
- package/dist/{chunk-YQ2ULGET.mjs → chunk-ZI37UH3A.mjs} +1 -1
- package/dist/components/avatar/avatar.js +23 -0
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +23 -0
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +23 -0
- package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
- package/dist/components/breadcrumb/index.js +23 -0
- package/dist/components/breadcrumb/index.mjs +5 -5
- package/dist/components/button/button.js +23 -0
- package/dist/components/button/button.mjs +3 -3
- package/dist/components/button/icon-button.js +23 -0
- package/dist/components/button/icon-button.mjs +3 -3
- package/dist/components/button/index.js +23 -0
- package/dist/components/button/index.mjs +4 -4
- package/dist/components/chip/chip.js +23 -0
- package/dist/components/chip/chip.mjs +3 -3
- package/dist/components/chip/index.js +23 -0
- package/dist/components/chip/index.mjs +3 -3
- package/dist/components/dateTimePicker/calendar.js +23 -0
- package/dist/components/dateTimePicker/calendar.mjs +3 -3
- package/dist/components/dateTimePicker/dateTimePicker.js +23 -0
- package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
- package/dist/components/dateTimePicker/index.js +23 -0
- package/dist/components/dateTimePicker/index.mjs +7 -7
- package/dist/components/dateTimePicker/timePicker.js +23 -0
- package/dist/components/dateTimePicker/timePicker.mjs +5 -5
- package/dist/components/fileUpload/fileUpload.js +23 -0
- package/dist/components/fileUpload/fileUpload.mjs +6 -6
- package/dist/components/fileUpload/index.js +23 -0
- package/dist/components/fileUpload/index.mjs +6 -6
- package/dist/components/icon/Icon.d.mts +4 -0
- package/dist/components/icon/Icon.d.ts +4 -0
- package/dist/components/icon/Icon.js +23 -0
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +23 -0
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +1 -0
- package/dist/components/icon/template.d.ts +1 -0
- package/dist/components/icon/template.js +23 -0
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +23 -0
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.js +23 -0
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/list/index.js +23 -0
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/listItem.js +23 -0
- package/dist/components/list/listItem.mjs +4 -4
- package/dist/components/modal/index.js +23 -0
- package/dist/components/modal/index.mjs +5 -5
- package/dist/components/modal/modal.js +23 -0
- package/dist/components/modal/modal.mjs +5 -5
- package/dist/components/pagination/index.js +23 -0
- package/dist/components/pagination/index.mjs +4 -4
- package/dist/components/pagination/pagination.js +23 -0
- package/dist/components/pagination/pagination.mjs +4 -4
- package/dist/components/select/index.js +23 -0
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/select.js +23 -0
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/table/index.js +23 -0
- package/dist/components/table/index.mjs +5 -5
- package/dist/components/table/table.js +23 -0
- package/dist/components/table/table.mjs +5 -5
- package/dist/components/toast/index.js +23 -0
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.js +23 -0
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/use-toast.js +23 -0
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tree/index.js +74 -41
- package/dist/components/tree/index.mjs +3 -3
- package/dist/components/tree/tree.js +74 -41
- package/dist/components/tree/tree.mjs +3 -3
- package/dist/index.js +74 -41
- package/dist/index.mjs +30 -30
- package/package.json +1 -1
|
@@ -938,6 +938,29 @@ var template = {
|
|
|
938
938
|
}
|
|
939
939
|
);
|
|
940
940
|
},
|
|
941
|
+
down: ({ className }) => {
|
|
942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
943
|
+
"svg",
|
|
944
|
+
{
|
|
945
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
946
|
+
width: "21",
|
|
947
|
+
height: "21",
|
|
948
|
+
viewBox: "0 0 21 21",
|
|
949
|
+
fill: "none",
|
|
950
|
+
className,
|
|
951
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
952
|
+
"path",
|
|
953
|
+
{
|
|
954
|
+
d: "M15.1667 8.16602L10.5 12.8327L5.83333 8.16602",
|
|
955
|
+
stroke: "currentColor",
|
|
956
|
+
strokeWidth: "1.5",
|
|
957
|
+
strokeLinecap: "round",
|
|
958
|
+
strokeLinejoin: "round"
|
|
959
|
+
}
|
|
960
|
+
)
|
|
961
|
+
}
|
|
962
|
+
);
|
|
963
|
+
},
|
|
941
964
|
// ----------------------------------- old ---------------------------------
|
|
942
965
|
// ** Status **
|
|
943
966
|
check: ({ className, fill }) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
toast_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-73RWXO3Y.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-DZ6QJCDZ.mjs";
|
|
7
|
+
import "../../chunk-3I7QA57V.mjs";
|
|
8
8
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
9
9
|
import "../../chunk-27Y6K5NK.mjs";
|
|
10
10
|
import "../../chunk-E3G5QXSH.mjs";
|
|
@@ -978,6 +978,29 @@ var template = {
|
|
|
978
978
|
}
|
|
979
979
|
);
|
|
980
980
|
},
|
|
981
|
+
down: ({ className }) => {
|
|
982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
983
|
+
"svg",
|
|
984
|
+
{
|
|
985
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
986
|
+
width: "21",
|
|
987
|
+
height: "21",
|
|
988
|
+
viewBox: "0 0 21 21",
|
|
989
|
+
fill: "none",
|
|
990
|
+
className,
|
|
991
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
992
|
+
"path",
|
|
993
|
+
{
|
|
994
|
+
d: "M15.1667 8.16602L10.5 12.8327L5.83333 8.16602",
|
|
995
|
+
stroke: "currentColor",
|
|
996
|
+
strokeWidth: "1.5",
|
|
997
|
+
strokeLinecap: "round",
|
|
998
|
+
strokeLinejoin: "round"
|
|
999
|
+
}
|
|
1000
|
+
)
|
|
1001
|
+
}
|
|
1002
|
+
);
|
|
1003
|
+
},
|
|
981
1004
|
// ----------------------------------- old ---------------------------------
|
|
982
1005
|
// ** Status **
|
|
983
1006
|
check: ({ className, fill }) => {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ToastProvider,
|
|
4
4
|
useToast
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-DLQGQUCD.mjs";
|
|
6
6
|
import "../../chunk-ZOTHPHXA.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-73RWXO3Y.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-DZ6QJCDZ.mjs";
|
|
10
|
+
import "../../chunk-3I7QA57V.mjs";
|
|
11
11
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
12
12
|
import "../../chunk-27Y6K5NK.mjs";
|
|
13
13
|
import "../../chunk-E3G5QXSH.mjs";
|
|
@@ -920,6 +920,29 @@ var template = {
|
|
|
920
920
|
}
|
|
921
921
|
);
|
|
922
922
|
},
|
|
923
|
+
down: ({ className }) => {
|
|
924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
925
|
+
"svg",
|
|
926
|
+
{
|
|
927
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
928
|
+
width: "21",
|
|
929
|
+
height: "21",
|
|
930
|
+
viewBox: "0 0 21 21",
|
|
931
|
+
fill: "none",
|
|
932
|
+
className,
|
|
933
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
934
|
+
"path",
|
|
935
|
+
{
|
|
936
|
+
d: "M15.1667 8.16602L10.5 12.8327L5.83333 8.16602",
|
|
937
|
+
stroke: "currentColor",
|
|
938
|
+
strokeWidth: "1.5",
|
|
939
|
+
strokeLinecap: "round",
|
|
940
|
+
strokeLinejoin: "round"
|
|
941
|
+
}
|
|
942
|
+
)
|
|
943
|
+
}
|
|
944
|
+
);
|
|
945
|
+
},
|
|
923
946
|
// ----------------------------------- old ---------------------------------
|
|
924
947
|
// ** Status **
|
|
925
948
|
check: ({ className, fill }) => {
|
|
@@ -4407,49 +4430,59 @@ var TreeNodeItem = (0, import_react.forwardRef)(
|
|
|
4407
4430
|
e.preventDefault();
|
|
4408
4431
|
(_a = node.onRightClick) == null ? void 0 : _a.call(node, e);
|
|
4409
4432
|
};
|
|
4410
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4433
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4434
|
+
"div",
|
|
4435
|
+
{
|
|
4436
|
+
ref,
|
|
4437
|
+
className: clsx(
|
|
4438
|
+
depth > 1 ? hasMore ? "ml-[30px]" : "ml-[55px]" : hasMore ? "" : "ml-[25px]",
|
|
4439
|
+
slots.gap({ class: classNames == null ? void 0 : classNames.gap })
|
|
4440
|
+
),
|
|
4441
|
+
children: [
|
|
4442
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4443
|
+
"div",
|
|
4444
|
+
{
|
|
4445
|
+
className: clsx(
|
|
4446
|
+
slots.node({ class: classNames == null ? void 0 : classNames.node }),
|
|
4447
|
+
slots.clickable({ class: classNames == null ? void 0 : classNames.clickable }),
|
|
4448
|
+
selectedId == node.id ? "bg-neutral-soft" : ""
|
|
4449
|
+
),
|
|
4450
|
+
onClick: handleClick,
|
|
4451
|
+
onContextMenu: handleRightClick,
|
|
4452
|
+
children: [
|
|
4453
|
+
hasMore && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4454
|
+
Icon_default,
|
|
4455
|
+
{
|
|
4456
|
+
name: "right-chevron",
|
|
4457
|
+
className: clsx(
|
|
4458
|
+
"text-neutral-main cursor-pointer transition-transform duration-150",
|
|
4459
|
+
isOpen ? "rotate-90" : "rotate-0"
|
|
4460
|
+
)
|
|
4461
|
+
}
|
|
4462
|
+
),
|
|
4463
|
+
fileIcon,
|
|
4464
|
+
node.content
|
|
4465
|
+
]
|
|
4466
|
+
}
|
|
4418
4467
|
),
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
Icon_default,
|
|
4468
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.gap({ class: classNames == null ? void 0 : classNames.gap }), children: [
|
|
4469
|
+
isLoadingChildren && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "text-neutral py-1 text-sm", children: "loading..." }),
|
|
4470
|
+
children == null ? void 0 : children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4471
|
+
TreeNodeItem,
|
|
4424
4472
|
{
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
]
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
isLoadingChildren && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "text-neutral py-1 text-sm", children: "loading..." }),
|
|
4439
|
-
children == null ? void 0 : children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4440
|
-
TreeNodeItem,
|
|
4441
|
-
{
|
|
4442
|
-
node: child,
|
|
4443
|
-
depth: depth + 1,
|
|
4444
|
-
selectedId,
|
|
4445
|
-
classNames,
|
|
4446
|
-
fileIcon,
|
|
4447
|
-
onExpand
|
|
4448
|
-
},
|
|
4449
|
-
child.id
|
|
4450
|
-
))
|
|
4451
|
-
] })
|
|
4452
|
-
] });
|
|
4473
|
+
node: child,
|
|
4474
|
+
depth: depth + 1,
|
|
4475
|
+
selectedId,
|
|
4476
|
+
classNames,
|
|
4477
|
+
fileIcon,
|
|
4478
|
+
onExpand
|
|
4479
|
+
},
|
|
4480
|
+
child.id
|
|
4481
|
+
))
|
|
4482
|
+
] })
|
|
4483
|
+
]
|
|
4484
|
+
}
|
|
4485
|
+
);
|
|
4453
4486
|
}
|
|
4454
4487
|
);
|
|
4455
4488
|
TreeNodeItem.displayName = "TreeNodeItem";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import "../../chunk-MBLZYQCN.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tree_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-HHRKPSO6.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-DZ6QJCDZ.mjs";
|
|
8
|
+
import "../../chunk-3I7QA57V.mjs";
|
|
9
9
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -919,6 +919,29 @@ var template = {
|
|
|
919
919
|
}
|
|
920
920
|
);
|
|
921
921
|
},
|
|
922
|
+
down: ({ className }) => {
|
|
923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
924
|
+
"svg",
|
|
925
|
+
{
|
|
926
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
927
|
+
width: "21",
|
|
928
|
+
height: "21",
|
|
929
|
+
viewBox: "0 0 21 21",
|
|
930
|
+
fill: "none",
|
|
931
|
+
className,
|
|
932
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
933
|
+
"path",
|
|
934
|
+
{
|
|
935
|
+
d: "M15.1667 8.16602L10.5 12.8327L5.83333 8.16602",
|
|
936
|
+
stroke: "currentColor",
|
|
937
|
+
strokeWidth: "1.5",
|
|
938
|
+
strokeLinecap: "round",
|
|
939
|
+
strokeLinejoin: "round"
|
|
940
|
+
}
|
|
941
|
+
)
|
|
942
|
+
}
|
|
943
|
+
);
|
|
944
|
+
},
|
|
922
945
|
// ----------------------------------- old ---------------------------------
|
|
923
946
|
// ** Status **
|
|
924
947
|
check: ({ className, fill }) => {
|
|
@@ -4406,49 +4429,59 @@ var TreeNodeItem = (0, import_react.forwardRef)(
|
|
|
4406
4429
|
e.preventDefault();
|
|
4407
4430
|
(_a = node.onRightClick) == null ? void 0 : _a.call(node, e);
|
|
4408
4431
|
};
|
|
4409
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4433
|
+
"div",
|
|
4434
|
+
{
|
|
4435
|
+
ref,
|
|
4436
|
+
className: clsx(
|
|
4437
|
+
depth > 1 ? hasMore ? "ml-[30px]" : "ml-[55px]" : hasMore ? "" : "ml-[25px]",
|
|
4438
|
+
slots.gap({ class: classNames == null ? void 0 : classNames.gap })
|
|
4439
|
+
),
|
|
4440
|
+
children: [
|
|
4441
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4442
|
+
"div",
|
|
4443
|
+
{
|
|
4444
|
+
className: clsx(
|
|
4445
|
+
slots.node({ class: classNames == null ? void 0 : classNames.node }),
|
|
4446
|
+
slots.clickable({ class: classNames == null ? void 0 : classNames.clickable }),
|
|
4447
|
+
selectedId == node.id ? "bg-neutral-soft" : ""
|
|
4448
|
+
),
|
|
4449
|
+
onClick: handleClick,
|
|
4450
|
+
onContextMenu: handleRightClick,
|
|
4451
|
+
children: [
|
|
4452
|
+
hasMore && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4453
|
+
Icon_default,
|
|
4454
|
+
{
|
|
4455
|
+
name: "right-chevron",
|
|
4456
|
+
className: clsx(
|
|
4457
|
+
"text-neutral-main cursor-pointer transition-transform duration-150",
|
|
4458
|
+
isOpen ? "rotate-90" : "rotate-0"
|
|
4459
|
+
)
|
|
4460
|
+
}
|
|
4461
|
+
),
|
|
4462
|
+
fileIcon,
|
|
4463
|
+
node.content
|
|
4464
|
+
]
|
|
4465
|
+
}
|
|
4417
4466
|
),
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
Icon_default,
|
|
4467
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.gap({ class: classNames == null ? void 0 : classNames.gap }), children: [
|
|
4468
|
+
isLoadingChildren && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "text-neutral py-1 text-sm", children: "loading..." }),
|
|
4469
|
+
children == null ? void 0 : children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4470
|
+
TreeNodeItem,
|
|
4423
4471
|
{
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
]
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
isLoadingChildren && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "text-neutral py-1 text-sm", children: "loading..." }),
|
|
4438
|
-
children == null ? void 0 : children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4439
|
-
TreeNodeItem,
|
|
4440
|
-
{
|
|
4441
|
-
node: child,
|
|
4442
|
-
depth: depth + 1,
|
|
4443
|
-
selectedId,
|
|
4444
|
-
classNames,
|
|
4445
|
-
fileIcon,
|
|
4446
|
-
onExpand
|
|
4447
|
-
},
|
|
4448
|
-
child.id
|
|
4449
|
-
))
|
|
4450
|
-
] })
|
|
4451
|
-
] });
|
|
4472
|
+
node: child,
|
|
4473
|
+
depth: depth + 1,
|
|
4474
|
+
selectedId,
|
|
4475
|
+
classNames,
|
|
4476
|
+
fileIcon,
|
|
4477
|
+
onExpand
|
|
4478
|
+
},
|
|
4479
|
+
child.id
|
|
4480
|
+
))
|
|
4481
|
+
] })
|
|
4482
|
+
]
|
|
4483
|
+
}
|
|
4484
|
+
);
|
|
4452
4485
|
}
|
|
4453
4486
|
);
|
|
4454
4487
|
TreeNodeItem.displayName = "TreeNodeItem";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Tree,
|
|
4
4
|
tree_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-HHRKPSO6.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-DZ6QJCDZ.mjs";
|
|
8
|
+
import "../../chunk-3I7QA57V.mjs";
|
|
9
9
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
package/dist/index.js
CHANGED
|
@@ -739,6 +739,29 @@ var template = {
|
|
|
739
739
|
}
|
|
740
740
|
);
|
|
741
741
|
},
|
|
742
|
+
down: ({ className }) => {
|
|
743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
744
|
+
"svg",
|
|
745
|
+
{
|
|
746
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
747
|
+
width: "21",
|
|
748
|
+
height: "21",
|
|
749
|
+
viewBox: "0 0 21 21",
|
|
750
|
+
fill: "none",
|
|
751
|
+
className,
|
|
752
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
753
|
+
"path",
|
|
754
|
+
{
|
|
755
|
+
d: "M15.1667 8.16602L10.5 12.8327L5.83333 8.16602",
|
|
756
|
+
stroke: "currentColor",
|
|
757
|
+
strokeWidth: "1.5",
|
|
758
|
+
strokeLinecap: "round",
|
|
759
|
+
strokeLinejoin: "round"
|
|
760
|
+
}
|
|
761
|
+
)
|
|
762
|
+
}
|
|
763
|
+
);
|
|
764
|
+
},
|
|
742
765
|
// ----------------------------------- old ---------------------------------
|
|
743
766
|
// ** Status **
|
|
744
767
|
check: ({ className, fill }) => {
|
|
@@ -10293,49 +10316,59 @@ var TreeNodeItem = (0, import_react32.forwardRef)(
|
|
|
10293
10316
|
e.preventDefault();
|
|
10294
10317
|
(_a = node.onRightClick) == null ? void 0 : _a.call(node, e);
|
|
10295
10318
|
};
|
|
10296
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
10320
|
+
"div",
|
|
10321
|
+
{
|
|
10322
|
+
ref,
|
|
10323
|
+
className: clsx(
|
|
10324
|
+
depth > 1 ? hasMore ? "ml-[30px]" : "ml-[55px]" : hasMore ? "" : "ml-[25px]",
|
|
10325
|
+
slots.gap({ class: classNames == null ? void 0 : classNames.gap })
|
|
10326
|
+
),
|
|
10327
|
+
children: [
|
|
10328
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
10329
|
+
"div",
|
|
10330
|
+
{
|
|
10331
|
+
className: clsx(
|
|
10332
|
+
slots.node({ class: classNames == null ? void 0 : classNames.node }),
|
|
10333
|
+
slots.clickable({ class: classNames == null ? void 0 : classNames.clickable }),
|
|
10334
|
+
selectedId == node.id ? "bg-neutral-soft" : ""
|
|
10335
|
+
),
|
|
10336
|
+
onClick: handleClick,
|
|
10337
|
+
onContextMenu: handleRightClick,
|
|
10338
|
+
children: [
|
|
10339
|
+
hasMore && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
10340
|
+
Icon_default,
|
|
10341
|
+
{
|
|
10342
|
+
name: "right-chevron",
|
|
10343
|
+
className: clsx(
|
|
10344
|
+
"text-neutral-main cursor-pointer transition-transform duration-150",
|
|
10345
|
+
isOpen ? "rotate-90" : "rotate-0"
|
|
10346
|
+
)
|
|
10347
|
+
}
|
|
10348
|
+
),
|
|
10349
|
+
fileIcon,
|
|
10350
|
+
node.content
|
|
10351
|
+
]
|
|
10352
|
+
}
|
|
10304
10353
|
),
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
Icon_default,
|
|
10354
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: slots.gap({ class: classNames == null ? void 0 : classNames.gap }), children: [
|
|
10355
|
+
isLoadingChildren && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-neutral py-1 text-sm", children: "loading..." }),
|
|
10356
|
+
children == null ? void 0 : children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
10357
|
+
TreeNodeItem,
|
|
10310
10358
|
{
|
|
10311
|
-
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
]
|
|
10321
|
-
|
|
10322
|
-
|
|
10323
|
-
|
|
10324
|
-
isLoadingChildren && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-neutral py-1 text-sm", children: "loading..." }),
|
|
10325
|
-
children == null ? void 0 : children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
10326
|
-
TreeNodeItem,
|
|
10327
|
-
{
|
|
10328
|
-
node: child,
|
|
10329
|
-
depth: depth + 1,
|
|
10330
|
-
selectedId,
|
|
10331
|
-
classNames,
|
|
10332
|
-
fileIcon,
|
|
10333
|
-
onExpand
|
|
10334
|
-
},
|
|
10335
|
-
child.id
|
|
10336
|
-
))
|
|
10337
|
-
] })
|
|
10338
|
-
] });
|
|
10359
|
+
node: child,
|
|
10360
|
+
depth: depth + 1,
|
|
10361
|
+
selectedId,
|
|
10362
|
+
classNames,
|
|
10363
|
+
fileIcon,
|
|
10364
|
+
onExpand
|
|
10365
|
+
},
|
|
10366
|
+
child.id
|
|
10367
|
+
))
|
|
10368
|
+
] })
|
|
10369
|
+
]
|
|
10370
|
+
}
|
|
10371
|
+
);
|
|
10339
10372
|
}
|
|
10340
10373
|
);
|
|
10341
10374
|
TreeNodeItem.displayName = "TreeNodeItem";
|
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./chunk-MBLZYQCN.mjs";
|
|
3
|
-
import {
|
|
4
|
-
tree_default
|
|
5
|
-
} from "./chunk-EFCGMDDE.mjs";
|
|
6
2
|
import "./chunk-LUWGOKLG.mjs";
|
|
7
3
|
import {
|
|
8
4
|
ToastProvider,
|
|
9
5
|
useToast
|
|
10
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DLQGQUCD.mjs";
|
|
11
7
|
import "./chunk-ZOTHPHXA.mjs";
|
|
12
8
|
import {
|
|
13
9
|
toast_default
|
|
14
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-73RWXO3Y.mjs";
|
|
11
|
+
import "./chunk-MBLZYQCN.mjs";
|
|
12
|
+
import {
|
|
13
|
+
tree_default
|
|
14
|
+
} from "./chunk-HHRKPSO6.mjs";
|
|
15
15
|
import "./chunk-HIE2YRGA.mjs";
|
|
16
16
|
import {
|
|
17
17
|
tooltip_default
|
|
@@ -21,21 +21,21 @@ import "./chunk-WSIADHVC.mjs";
|
|
|
21
21
|
import "./chunk-DX3KXNP6.mjs";
|
|
22
22
|
import {
|
|
23
23
|
table_default
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4T7R3PEH.mjs";
|
|
25
25
|
import "./chunk-BPEMHZH3.mjs";
|
|
26
26
|
import "./chunk-P7YYNA6L.mjs";
|
|
27
|
-
import "./chunk-3MY6LO7N.mjs";
|
|
28
|
-
import {
|
|
29
|
-
tabs_default
|
|
30
|
-
} from "./chunk-2YMAKIZ6.mjs";
|
|
31
27
|
import "./chunk-RRAZM5D3.mjs";
|
|
32
28
|
import {
|
|
33
29
|
textarea_default
|
|
34
30
|
} from "./chunk-4EIGHKUO.mjs";
|
|
31
|
+
import "./chunk-3MY6LO7N.mjs";
|
|
32
|
+
import {
|
|
33
|
+
tabs_default
|
|
34
|
+
} from "./chunk-2YMAKIZ6.mjs";
|
|
35
35
|
import "./chunk-QCEKPS7U.mjs";
|
|
36
36
|
import {
|
|
37
37
|
select_default
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-C4AGYO7C.mjs";
|
|
39
39
|
import "./chunk-MZ76AA76.mjs";
|
|
40
40
|
import {
|
|
41
41
|
skeleton_default
|
|
@@ -58,43 +58,43 @@ import {
|
|
|
58
58
|
import "./chunk-DJOG6Z35.mjs";
|
|
59
59
|
import {
|
|
60
60
|
modal_default
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-BWTDELPC.mjs";
|
|
62
62
|
import "./chunk-7B7LRG5J.mjs";
|
|
63
63
|
import {
|
|
64
64
|
pagination_default
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-LQEA2HU5.mjs";
|
|
66
66
|
import "./chunk-F3HENRVM.mjs";
|
|
67
67
|
import "./chunk-RLXOHILK.mjs";
|
|
68
68
|
import {
|
|
69
69
|
fileUpload_default
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-IC3O54EM.mjs";
|
|
71
71
|
import "./chunk-2GCSFWHD.mjs";
|
|
72
72
|
import {
|
|
73
73
|
input_default
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-UETBYMGS.mjs";
|
|
75
75
|
import "./chunk-XOH6GWRD.mjs";
|
|
76
|
-
import "./chunk-MGEWSREV.mjs";
|
|
77
|
-
import {
|
|
78
|
-
chip_default
|
|
79
|
-
} from "./chunk-RQ6ADHCR.mjs";
|
|
80
76
|
import "./chunk-QZ3LVYJW.mjs";
|
|
81
77
|
import {
|
|
82
78
|
checkbox_default
|
|
83
79
|
} from "./chunk-D6QI3DJG.mjs";
|
|
80
|
+
import "./chunk-MGEWSREV.mjs";
|
|
81
|
+
import {
|
|
82
|
+
chip_default
|
|
83
|
+
} from "./chunk-GL5J2BKI.mjs";
|
|
84
84
|
import "./chunk-75HLCORR.mjs";
|
|
85
85
|
import {
|
|
86
86
|
dateTimePicker_default
|
|
87
|
-
} from "./chunk-
|
|
88
|
-
import "./chunk-
|
|
87
|
+
} from "./chunk-PMZH6GPQ.mjs";
|
|
88
|
+
import "./chunk-DLFXCMUU.mjs";
|
|
89
89
|
import "./chunk-7MVEAQ7Z.mjs";
|
|
90
90
|
import {
|
|
91
91
|
list_default
|
|
92
92
|
} from "./chunk-HIVPDIEP.mjs";
|
|
93
93
|
import {
|
|
94
94
|
listItem_default
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-YZDZYMBP.mjs";
|
|
96
96
|
import "./chunk-FWJ2ZKH6.mjs";
|
|
97
|
-
import "./chunk-
|
|
97
|
+
import "./chunk-L3RCWZTV.mjs";
|
|
98
98
|
import "./chunk-P732YGHO.mjs";
|
|
99
99
|
import {
|
|
100
100
|
areaChart_default
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
import "./chunk-7DLOYKVC.mjs";
|
|
109
109
|
import {
|
|
110
110
|
avatar_default
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-JDWX2LKJ.mjs";
|
|
112
112
|
import "./chunk-SE5TU755.mjs";
|
|
113
113
|
import {
|
|
114
114
|
backdrop_default
|
|
@@ -116,17 +116,17 @@ import {
|
|
|
116
116
|
import "./chunk-KYIODWXL.mjs";
|
|
117
117
|
import {
|
|
118
118
|
breadcrumb_default
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-3ONHMYAP.mjs";
|
|
120
120
|
import "./chunk-MY5U63QO.mjs";
|
|
121
121
|
import {
|
|
122
122
|
button_group_default
|
|
123
123
|
} from "./chunk-LPZOH3RP.mjs";
|
|
124
124
|
import {
|
|
125
125
|
button_default
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-ZI37UH3A.mjs";
|
|
127
127
|
import {
|
|
128
128
|
icon_button_default
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-D47SHPFE.mjs";
|
|
130
130
|
import "./chunk-6WSACUIB.mjs";
|
|
131
131
|
import "./chunk-LXHUO6VM.mjs";
|
|
132
132
|
import "./chunk-6PNKRBUT.mjs";
|
|
@@ -134,11 +134,11 @@ import "./chunk-ZYIIXWVY.mjs";
|
|
|
134
134
|
import {
|
|
135
135
|
Icon_default,
|
|
136
136
|
iconTemplate
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-DZ6QJCDZ.mjs";
|
|
138
138
|
import {
|
|
139
139
|
text_button_default
|
|
140
140
|
} from "./chunk-WFMFC7R6.mjs";
|
|
141
|
-
import "./chunk-
|
|
141
|
+
import "./chunk-3I7QA57V.mjs";
|
|
142
142
|
import {
|
|
143
143
|
deepnoidUi,
|
|
144
144
|
tv
|