@deepnoid/ui 0.1.23 → 0.1.25
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 +148 -162
- package/dist/{chunk-ZUSUVPYV.mjs → chunk-B3DFSXGC.mjs} +4 -4
- package/dist/{chunk-OWG4RL2T.mjs → chunk-DLQFMOBN.mjs} +3 -3
- package/dist/chunk-K4QY2F5J.mjs +99 -0
- package/dist/{chunk-EYVRTVRM.mjs → chunk-SCFTSNCK.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 +5 -5
- package/dist/components/dateTimePicker/dateTimePicker.mjs +4 -4
- package/dist/components/dateTimePicker/index.mjs +4 -4
- package/dist/components/dateTimePicker/timePicker.mjs +3 -3
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/listItem.mjs +2 -2
- package/dist/components/modal/index.mjs +7 -7
- package/dist/components/modal/modal.mjs +7 -7
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/table/index.mjs +4 -4
- package/dist/components/table/table.mjs +4 -4
- package/dist/components/tree/index.js +92 -36
- package/dist/components/tree/index.mjs +2 -3
- package/dist/components/tree/tree.d.mts +3 -0
- package/dist/components/tree/tree.d.ts +3 -0
- package/dist/components/tree/tree.js +92 -36
- package/dist/components/tree/tree.mjs +2 -3
- package/dist/index.js +53 -39
- package/dist/index.mjs +52 -54
- package/package.json +1 -1
- package/dist/assets/images/cogwheel.d.mts +0 -2
- package/dist/assets/images/cogwheel.d.ts +0 -2
- package/dist/assets/images/cogwheel.js +0 -4
- package/dist/assets/images/cogwheel.mjs +0 -8
- package/dist/assets/images/folder.d.mts +0 -2
- package/dist/assets/images/folder.d.ts +0 -2
- package/dist/assets/images/folder.js +0 -4
- package/dist/assets/images/folder.mjs +0 -8
- package/dist/chunk-7USF56CT.mjs +0 -8
- package/dist/chunk-BZGUSIX5.mjs +0 -80
- package/dist/chunk-IZM66FHP.mjs +0 -8
- package/dist/cogwheel-U2B3CWEL.png +0 -0
- package/dist/folder-RO3QTLGS.svg +0 -9
- package/dist/{chunk-6OMHIMIA.mjs → chunk-6EU5GUL5.mjs} +3 -3
- package/dist/{chunk-PNRS23HE.mjs → chunk-BQUZRVYW.mjs} +3 -3
- package/dist/{chunk-VQROXH43.mjs → chunk-PMMTMYRI.mjs} +3 -3
- package/dist/{chunk-PZIVMTKX.mjs → chunk-QY7LYAXT.mjs} +3 -3
- package/dist/{chunk-6KXBXGYR.mjs → chunk-Y27H2AMV.mjs} +3 -3
|
@@ -4294,53 +4294,109 @@ var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) =
|
|
|
4294
4294
|
};
|
|
4295
4295
|
var Icon_default = Icon;
|
|
4296
4296
|
|
|
4297
|
-
// src/
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4297
|
+
// src/utils/clsx.ts
|
|
4298
|
+
function clsx(...args) {
|
|
4299
|
+
var i = 0, tmp, x, str = "";
|
|
4300
|
+
while (i < args.length) {
|
|
4301
|
+
if (tmp = args[i++]) {
|
|
4302
|
+
if (x = toVal(tmp)) {
|
|
4303
|
+
str && (str += " ");
|
|
4304
|
+
str += x;
|
|
4305
|
+
}
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4308
|
+
return str;
|
|
4309
|
+
}
|
|
4310
|
+
function toVal(mix) {
|
|
4311
|
+
var k, y, str = "";
|
|
4312
|
+
if (typeof mix === "string" || typeof mix === "number") {
|
|
4313
|
+
str += mix;
|
|
4314
|
+
} else if (typeof mix === "object") {
|
|
4315
|
+
if (Array.isArray(mix)) {
|
|
4316
|
+
var len = mix.length;
|
|
4317
|
+
for (k = 0; k < len; k++) {
|
|
4318
|
+
if (mix[k]) {
|
|
4319
|
+
if (y = toVal(mix[k])) {
|
|
4320
|
+
str && (str += " ");
|
|
4321
|
+
str += y;
|
|
4322
|
+
}
|
|
4323
|
+
}
|
|
4324
|
+
}
|
|
4325
|
+
} else {
|
|
4326
|
+
for (y in mix) {
|
|
4327
|
+
if (mix[y]) {
|
|
4328
|
+
str && (str += " ");
|
|
4329
|
+
str += y;
|
|
4330
|
+
}
|
|
4331
|
+
}
|
|
4332
|
+
}
|
|
4333
|
+
}
|
|
4334
|
+
return str;
|
|
4335
|
+
}
|
|
4302
4336
|
|
|
4303
4337
|
// src/components/tree/tree.tsx
|
|
4304
4338
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
4305
|
-
var TreeNodeItem = (0, import_react.forwardRef)(({ node, depth, classNames }) => {
|
|
4339
|
+
var TreeNodeItem = (0, import_react.forwardRef)(({ node, depth, fileIcon, isLoading, classNames }) => {
|
|
4306
4340
|
var _a;
|
|
4307
4341
|
const [isOpen, setIsOpen] = (0, import_react.useState)(false);
|
|
4308
4342
|
const slots = (0, import_react.useMemo)(() => treeStyle(), []);
|
|
4309
4343
|
const toggleOpen = (0, import_react.useCallback)(() => {
|
|
4310
4344
|
setIsOpen((prev) => !prev);
|
|
4311
4345
|
}, []);
|
|
4312
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
}
|
|
4346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4347
|
+
"div",
|
|
4348
|
+
{
|
|
4349
|
+
className: clsx(
|
|
4350
|
+
depth > 1 ? "ml-[30px]" : "",
|
|
4351
|
+
"transition-all duration-150 ease-out",
|
|
4352
|
+
isLoading ? "-translate-y-2 opacity-0" : "translate-y-0 opacity-100"
|
|
4320
4353
|
),
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node, depth: 1, classNames }, node.id))
|
|
4341
|
-
] })
|
|
4342
|
-
] });
|
|
4354
|
+
children: [
|
|
4355
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), onClick: toggleOpen, children: [
|
|
4356
|
+
node.children && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4357
|
+
Icon_default,
|
|
4358
|
+
{
|
|
4359
|
+
name: "right-chevron",
|
|
4360
|
+
className: `text-neutral-main cursor-pointer transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
|
|
4361
|
+
}
|
|
4362
|
+
),
|
|
4363
|
+
fileIcon,
|
|
4364
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick: () => {
|
|
4365
|
+
var _a2;
|
|
4366
|
+
return (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
|
|
4367
|
+
}, children: node.label })
|
|
4368
|
+
] }),
|
|
4369
|
+
isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node: child, depth: depth + 1, classNames, fileIcon }, child.id)))
|
|
4370
|
+
]
|
|
4371
|
+
}
|
|
4372
|
+
);
|
|
4343
4373
|
});
|
|
4374
|
+
var Tree = (0, import_react.forwardRef)(
|
|
4375
|
+
({ headerContent, group, groupIcon, fileIcon, isLoading, classNames }) => {
|
|
4376
|
+
const { label, data, onClick } = group;
|
|
4377
|
+
const slots = (0, import_react.useMemo)(() => treeStyle(), []);
|
|
4378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
4379
|
+
headerContent && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: headerContent }),
|
|
4380
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
4381
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
|
|
4382
|
+
groupIcon,
|
|
4383
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick, children: label })
|
|
4384
|
+
] }),
|
|
4385
|
+
data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4386
|
+
TreeNodeItem,
|
|
4387
|
+
{
|
|
4388
|
+
node,
|
|
4389
|
+
depth: 1,
|
|
4390
|
+
classNames,
|
|
4391
|
+
fileIcon,
|
|
4392
|
+
isLoading
|
|
4393
|
+
},
|
|
4394
|
+
node.id
|
|
4395
|
+
))
|
|
4396
|
+
] })
|
|
4397
|
+
] });
|
|
4398
|
+
}
|
|
4399
|
+
);
|
|
4344
4400
|
TreeNodeItem.displayName = "TreeNodeItem";
|
|
4345
4401
|
Tree.displayName = "Tree";
|
|
4346
4402
|
var tree_default = Tree;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tree_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-K4QY2F5J.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
6
|
import "../../chunk-HWL7TPUN.mjs";
|
|
7
7
|
import "../../chunk-3IU2RPSM.mjs";
|
|
8
|
-
import "../../chunk-7USF56CT.mjs";
|
|
9
|
-
import "../../chunk-IZM66FHP.mjs";
|
|
10
8
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
9
|
+
import "../../chunk-27Y6K5NK.mjs";
|
|
11
10
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
11
|
export {
|
|
13
12
|
tree_default as default
|
package/dist/index.js
CHANGED
|
@@ -10000,54 +10000,68 @@ var dateTimePickerStyle = tv({
|
|
|
10000
10000
|
|
|
10001
10001
|
// src/components/tree/tree.tsx
|
|
10002
10002
|
var import_react34 = require("react");
|
|
10003
|
-
|
|
10004
|
-
// src/assets/images/cogwheel.png
|
|
10005
|
-
var cogwheel_default = "./cogwheel-U2B3CWEL.png";
|
|
10006
|
-
|
|
10007
|
-
// src/assets/images/folder.svg
|
|
10008
|
-
var folder_default = "./folder-RO3QTLGS.svg";
|
|
10009
|
-
|
|
10010
|
-
// src/components/tree/tree.tsx
|
|
10011
10003
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
10012
|
-
var TreeNodeItem = (0, import_react34.forwardRef)(({ node, depth, classNames }) => {
|
|
10004
|
+
var TreeNodeItem = (0, import_react34.forwardRef)(({ node, depth, fileIcon, isLoading, classNames }) => {
|
|
10013
10005
|
var _a;
|
|
10014
10006
|
const [isOpen, setIsOpen] = (0, import_react34.useState)(false);
|
|
10015
10007
|
const slots = (0, import_react34.useMemo)(() => treeStyle(), []);
|
|
10016
10008
|
const toggleOpen = (0, import_react34.useCallback)(() => {
|
|
10017
10009
|
setIsOpen((prev) => !prev);
|
|
10018
10010
|
}, []);
|
|
10019
|
-
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
}
|
|
10011
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
10012
|
+
"div",
|
|
10013
|
+
{
|
|
10014
|
+
className: clsx(
|
|
10015
|
+
depth > 1 ? "ml-[30px]" : "",
|
|
10016
|
+
"transition-all duration-150 ease-out",
|
|
10017
|
+
isLoading ? "-translate-y-2 opacity-0" : "translate-y-0 opacity-100"
|
|
10027
10018
|
),
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TreeNodeItem, { node, depth: 1, classNames }, node.id))
|
|
10048
|
-
] })
|
|
10049
|
-
] });
|
|
10019
|
+
children: [
|
|
10020
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), onClick: toggleOpen, children: [
|
|
10021
|
+
node.children && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
10022
|
+
Icon_default,
|
|
10023
|
+
{
|
|
10024
|
+
name: "right-chevron",
|
|
10025
|
+
className: `text-neutral-main cursor-pointer transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
|
|
10026
|
+
}
|
|
10027
|
+
),
|
|
10028
|
+
fileIcon,
|
|
10029
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick: () => {
|
|
10030
|
+
var _a2;
|
|
10031
|
+
return (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
|
|
10032
|
+
}, children: node.label })
|
|
10033
|
+
] }),
|
|
10034
|
+
isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TreeNodeItem, { node: child, depth: depth + 1, classNames, fileIcon }, child.id)))
|
|
10035
|
+
]
|
|
10036
|
+
}
|
|
10037
|
+
);
|
|
10050
10038
|
});
|
|
10039
|
+
var Tree = (0, import_react34.forwardRef)(
|
|
10040
|
+
({ headerContent, group, groupIcon, fileIcon, isLoading, classNames }) => {
|
|
10041
|
+
const { label, data, onClick } = group;
|
|
10042
|
+
const slots = (0, import_react34.useMemo)(() => treeStyle(), []);
|
|
10043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
10044
|
+
headerContent && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children: headerContent }),
|
|
10045
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
|
|
10046
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
|
|
10047
|
+
groupIcon,
|
|
10048
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick, children: label })
|
|
10049
|
+
] }),
|
|
10050
|
+
data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
10051
|
+
TreeNodeItem,
|
|
10052
|
+
{
|
|
10053
|
+
node,
|
|
10054
|
+
depth: 1,
|
|
10055
|
+
classNames,
|
|
10056
|
+
fileIcon,
|
|
10057
|
+
isLoading
|
|
10058
|
+
},
|
|
10059
|
+
node.id
|
|
10060
|
+
))
|
|
10061
|
+
] })
|
|
10062
|
+
] });
|
|
10063
|
+
}
|
|
10064
|
+
);
|
|
10051
10065
|
TreeNodeItem.displayName = "TreeNodeItem";
|
|
10052
10066
|
Tree.displayName = "Tree";
|
|
10053
10067
|
var tree_default = Tree;
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import "./chunk-QCEKPS7U.mjs";
|
|
3
|
+
import {
|
|
4
|
+
select_default
|
|
5
|
+
} from "./chunk-MSAULFDB.mjs";
|
|
6
|
+
import "./chunk-HIE2YRGA.mjs";
|
|
7
|
+
import {
|
|
8
|
+
tooltip_default
|
|
9
|
+
} from "./chunk-Z2537DF6.mjs";
|
|
10
|
+
import "./chunk-ZMOAFSYE.mjs";
|
|
11
|
+
import "./chunk-WSIADHVC.mjs";
|
|
2
12
|
import "./chunk-MBLZYQCN.mjs";
|
|
3
13
|
import {
|
|
4
14
|
tree_default
|
|
5
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-K4QY2F5J.mjs";
|
|
16
|
+
import "./chunk-3MY6LO7N.mjs";
|
|
17
|
+
import {
|
|
18
|
+
tabs_default
|
|
19
|
+
} from "./chunk-2YMAKIZ6.mjs";
|
|
6
20
|
import "./chunk-RRAZM5D3.mjs";
|
|
7
21
|
import {
|
|
8
22
|
textarea_default
|
|
9
23
|
} from "./chunk-BKE6QF6W.mjs";
|
|
10
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-LVFI2NOH.mjs";
|
|
11
25
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-ZMOAFSYE.mjs";
|
|
15
|
-
import "./chunk-WSIADHVC.mjs";
|
|
26
|
+
switch_default
|
|
27
|
+
} from "./chunk-Z74QNVPG.mjs";
|
|
16
28
|
import "./chunk-LUWGOKLG.mjs";
|
|
17
29
|
import {
|
|
18
30
|
ToastProvider,
|
|
@@ -28,29 +40,13 @@ import {
|
|
|
28
40
|
} from "./chunk-ICZTNO4V.mjs";
|
|
29
41
|
import {
|
|
30
42
|
table_default
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-XRC5OUYQ.mjs";
|
|
33
|
-
import "./chunk-EAK5DVWA.mjs";
|
|
34
|
-
import "./chunk-3MY6LO7N.mjs";
|
|
35
|
-
import {
|
|
36
|
-
tabs_default
|
|
37
|
-
} from "./chunk-2YMAKIZ6.mjs";
|
|
38
|
-
import "./chunk-QCEKPS7U.mjs";
|
|
39
|
-
import {
|
|
40
|
-
select_default
|
|
41
|
-
} from "./chunk-MSAULFDB.mjs";
|
|
43
|
+
} from "./chunk-6EU5GUL5.mjs";
|
|
42
44
|
import "./chunk-DQRAFUDA.mjs";
|
|
43
45
|
import {
|
|
44
46
|
scrollArea_default
|
|
45
47
|
} from "./chunk-M37VBNB3.mjs";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import
|
|
48
|
-
switch_default
|
|
49
|
-
} from "./chunk-Z74QNVPG.mjs";
|
|
50
|
-
import "./chunk-DJOG6Z35.mjs";
|
|
51
|
-
import {
|
|
52
|
-
modal_default
|
|
53
|
-
} from "./chunk-ZUSUVPYV.mjs";
|
|
48
|
+
import "./chunk-XRC5OUYQ.mjs";
|
|
49
|
+
import "./chunk-EAK5DVWA.mjs";
|
|
54
50
|
import "./chunk-7B7LRG5J.mjs";
|
|
55
51
|
import {
|
|
56
52
|
pagination_default
|
|
@@ -64,65 +60,67 @@ import "./chunk-2GCSFWHD.mjs";
|
|
|
64
60
|
import {
|
|
65
61
|
input_default
|
|
66
62
|
} from "./chunk-P5PJTJLY.mjs";
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-MGEWSREV.mjs";
|
|
63
|
+
import "./chunk-DJOG6Z35.mjs";
|
|
69
64
|
import {
|
|
70
|
-
|
|
71
|
-
} from "./chunk-
|
|
65
|
+
modal_default
|
|
66
|
+
} from "./chunk-B3DFSXGC.mjs";
|
|
67
|
+
import "./chunk-MGEWSREV.mjs";
|
|
72
68
|
import "./chunk-75HLCORR.mjs";
|
|
73
69
|
import {
|
|
74
70
|
dateTimePicker_default
|
|
75
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-SCFTSNCK.mjs";
|
|
76
72
|
import "./chunk-Q72LZAPG.mjs";
|
|
77
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-DLQFMOBN.mjs";
|
|
78
74
|
import "./chunk-7MVEAQ7Z.mjs";
|
|
79
|
-
import {
|
|
80
|
-
listItem_default
|
|
81
|
-
} from "./chunk-PZIVMTKX.mjs";
|
|
82
75
|
import {
|
|
83
76
|
list_default
|
|
84
77
|
} from "./chunk-HIVPDIEP.mjs";
|
|
78
|
+
import {
|
|
79
|
+
listItem_default
|
|
80
|
+
} from "./chunk-QY7LYAXT.mjs";
|
|
85
81
|
import "./chunk-FWJ2ZKH6.mjs";
|
|
86
82
|
import "./chunk-P732YGHO.mjs";
|
|
83
|
+
import "./chunk-QZ3LVYJW.mjs";
|
|
84
|
+
import {
|
|
85
|
+
checkbox_default
|
|
86
|
+
} from "./chunk-D6QI3DJG.mjs";
|
|
87
|
+
import {
|
|
88
|
+
chip_default
|
|
89
|
+
} from "./chunk-6HX3PPL6.mjs";
|
|
90
|
+
import "./chunk-7DLOYKVC.mjs";
|
|
91
|
+
import {
|
|
92
|
+
avatar_default
|
|
93
|
+
} from "./chunk-XQGD4ZIX.mjs";
|
|
94
|
+
import "./chunk-SE5TU755.mjs";
|
|
95
|
+
import {
|
|
96
|
+
backdrop_default
|
|
97
|
+
} from "./chunk-LL6F3WDX.mjs";
|
|
87
98
|
import "./chunk-KYIODWXL.mjs";
|
|
88
99
|
import {
|
|
89
100
|
breadcrumb_default
|
|
90
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-Y27H2AMV.mjs";
|
|
91
102
|
import "./chunk-MY5U63QO.mjs";
|
|
92
103
|
import {
|
|
93
104
|
button_group_default
|
|
94
105
|
} from "./chunk-LPZOH3RP.mjs";
|
|
95
106
|
import {
|
|
96
107
|
button_default
|
|
97
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-BQUZRVYW.mjs";
|
|
98
109
|
import {
|
|
99
110
|
icon_button_default
|
|
100
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-PMMTMYRI.mjs";
|
|
101
112
|
import "./chunk-6WSACUIB.mjs";
|
|
102
|
-
import "./chunk-LXHUO6VM.mjs";
|
|
103
113
|
import "./chunk-6PNKRBUT.mjs";
|
|
114
|
+
import "./chunk-LXHUO6VM.mjs";
|
|
115
|
+
import {
|
|
116
|
+
text_button_default
|
|
117
|
+
} from "./chunk-WFMFC7R6.mjs";
|
|
104
118
|
import "./chunk-ZYIIXWVY.mjs";
|
|
105
119
|
import {
|
|
106
120
|
Icon_default,
|
|
107
121
|
iconTemplate
|
|
108
122
|
} from "./chunk-HWL7TPUN.mjs";
|
|
109
|
-
import {
|
|
110
|
-
text_button_default
|
|
111
|
-
} from "./chunk-WFMFC7R6.mjs";
|
|
112
|
-
import {
|
|
113
|
-
checkbox_default
|
|
114
|
-
} from "./chunk-D6QI3DJG.mjs";
|
|
115
|
-
import "./chunk-7DLOYKVC.mjs";
|
|
116
|
-
import {
|
|
117
|
-
avatar_default
|
|
118
|
-
} from "./chunk-XQGD4ZIX.mjs";
|
|
119
123
|
import "./chunk-3IU2RPSM.mjs";
|
|
120
|
-
import "./chunk-7USF56CT.mjs";
|
|
121
|
-
import "./chunk-IZM66FHP.mjs";
|
|
122
|
-
import "./chunk-SE5TU755.mjs";
|
|
123
|
-
import {
|
|
124
|
-
backdrop_default
|
|
125
|
-
} from "./chunk-LL6F3WDX.mjs";
|
|
126
124
|
import {
|
|
127
125
|
deepnoidUi,
|
|
128
126
|
tv
|
package/package.json
CHANGED
package/dist/chunk-7USF56CT.mjs
DELETED
package/dist/chunk-BZGUSIX5.mjs
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
Icon_default
|
|
4
|
-
} from "./chunk-HWL7TPUN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
cogwheel_default
|
|
7
|
-
} from "./chunk-7USF56CT.mjs";
|
|
8
|
-
import {
|
|
9
|
-
folder_default
|
|
10
|
-
} from "./chunk-IZM66FHP.mjs";
|
|
11
|
-
import {
|
|
12
|
-
tv
|
|
13
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
14
|
-
|
|
15
|
-
// src/components/tree/tree.tsx
|
|
16
|
-
import { forwardRef, useMemo, useState, useCallback } from "react";
|
|
17
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
-
var TreeNodeItem = forwardRef(({ node, depth, classNames }) => {
|
|
19
|
-
var _a;
|
|
20
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
21
|
-
const slots = useMemo(() => treeStyle(), []);
|
|
22
|
-
const toggleOpen = useCallback(() => {
|
|
23
|
-
setIsOpen((prev) => !prev);
|
|
24
|
-
}, []);
|
|
25
|
-
return /* @__PURE__ */ jsxs("div", { className: depth > 1 ? "ml-[30px]" : "", children: [
|
|
26
|
-
/* @__PURE__ */ jsxs("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), onClick: toggleOpen, children: [
|
|
27
|
-
node.children && /* @__PURE__ */ jsx(
|
|
28
|
-
Icon_default,
|
|
29
|
-
{
|
|
30
|
-
name: "right-chevron",
|
|
31
|
-
className: `text-neutral-main cursor-pointer transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
/* @__PURE__ */ jsx("img", { src: folder_default, alt: "folder", width: 25, height: 25 }),
|
|
35
|
-
/* @__PURE__ */ jsx("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick: () => {
|
|
36
|
-
var _a2;
|
|
37
|
-
return (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
|
|
38
|
-
}, children: node.label })
|
|
39
|
-
] }),
|
|
40
|
-
isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ jsx(TreeNodeItem, { node: child, depth: depth + 1, classNames }, child.id)))
|
|
41
|
-
] });
|
|
42
|
-
});
|
|
43
|
-
var Tree = forwardRef(({ headerContent, group, classNames }) => {
|
|
44
|
-
const { label, data, onClick } = group;
|
|
45
|
-
const slots = useMemo(() => treeStyle(), []);
|
|
46
|
-
return /* @__PURE__ */ jsxs("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
47
|
-
headerContent && /* @__PURE__ */ jsx("div", { children: headerContent }),
|
|
48
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
49
|
-
/* @__PURE__ */ jsxs("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
|
|
50
|
-
/* @__PURE__ */ jsx("img", { src: cogwheel_default, alt: "cogwheel", width: 25, height: 25 }),
|
|
51
|
-
/* @__PURE__ */ jsx("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick, children: label })
|
|
52
|
-
] }),
|
|
53
|
-
data.map((node) => /* @__PURE__ */ jsx(TreeNodeItem, { node, depth: 1, classNames }, node.id))
|
|
54
|
-
] })
|
|
55
|
-
] });
|
|
56
|
-
});
|
|
57
|
-
TreeNodeItem.displayName = "TreeNodeItem";
|
|
58
|
-
Tree.displayName = "Tree";
|
|
59
|
-
var tree_default = Tree;
|
|
60
|
-
var treeStyle = tv({
|
|
61
|
-
slots: {
|
|
62
|
-
base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
|
|
63
|
-
wrapper: [
|
|
64
|
-
"flex",
|
|
65
|
-
"items-center",
|
|
66
|
-
"gap-[5px]",
|
|
67
|
-
"text-md",
|
|
68
|
-
"font-bold",
|
|
69
|
-
"text-body-foreground",
|
|
70
|
-
"hover:bg-neutral-soft",
|
|
71
|
-
"p-[5px]",
|
|
72
|
-
"rounded-[5px]"
|
|
73
|
-
],
|
|
74
|
-
label: ["cursor-pointer"]
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
export {
|
|
79
|
-
tree_default
|
|
80
|
-
};
|
package/dist/chunk-IZM66FHP.mjs
DELETED
|
Binary file
|