@deepnoid/ui 0.1.21 → 0.1.23
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 +149 -149
- package/dist/{chunk-HQLSHEK6.mjs → chunk-6KXBXGYR.mjs} +1 -1
- package/dist/{chunk-7CFOD7G4.mjs → chunk-6OMHIMIA.mjs} +6 -6
- package/dist/{chunk-XGYQ6D3S.mjs → chunk-BZGUSIX5.mjs} +21 -23
- package/dist/{chunk-MV7RSV4D.mjs → chunk-EAK5DVWA.mjs} +1 -1
- package/dist/{chunk-JHDYQCEE.mjs → chunk-EYVRTVRM.mjs} +5 -5
- package/dist/{chunk-3BKCODIL.mjs → chunk-ICZTNO4V.mjs} +3 -3
- package/dist/{chunk-UTC2D6GV.mjs → chunk-IVK24VIL.mjs} +5 -5
- package/dist/{chunk-Q6BZ76DI.mjs → chunk-OWG4RL2T.mjs} +2 -2
- package/dist/{chunk-7KUFDVGL.mjs → chunk-UAHTRCKG.mjs} +3 -3
- package/dist/{chunk-QHWFHOW2.mjs → chunk-XRC5OUYQ.mjs} +1 -1
- package/dist/{chunk-OV7CZNXU.mjs → chunk-ZUSUVPYV.mjs} +5 -5
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.mjs +6 -6
- package/dist/components/breadcrumb/index.mjs +6 -6
- 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/button/text-button.mjs +3 -3
- package/dist/components/checkbox/checkbox.mjs +3 -3
- package/dist/components/checkbox/index.mjs +3 -3
- package/dist/components/chip/chip.mjs +2 -2
- package/dist/components/chip/index.mjs +2 -2
- package/dist/components/dateTimePicker/calendar.mjs +2 -2
- package/dist/components/dateTimePicker/dateTimePicker.mjs +6 -6
- package/dist/components/dateTimePicker/index.mjs +6 -6
- package/dist/components/dateTimePicker/timePicker.mjs +4 -4
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/list/index.mjs +3 -3
- package/dist/components/list/list.mjs +2 -2
- 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/pagination/index.mjs +4 -4
- package/dist/components/pagination/pagination.mjs +4 -4
- package/dist/components/radio/index.mjs +3 -3
- package/dist/components/radio/radio.mjs +3 -3
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/table/form-table.js +3 -3
- package/dist/components/table/form-table.mjs +1 -1
- package/dist/components/table/index.js +3 -3
- package/dist/components/table/index.mjs +9 -9
- package/dist/components/table/table-body.mjs +4 -4
- package/dist/components/table/table-head.mjs +4 -4
- package/dist/components/table/table.mjs +8 -8
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/toast/index.mjs +5 -5
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.d.mts +4 -1
- package/dist/components/tree/index.d.ts +4 -1
- package/dist/components/tree/index.js +18 -20
- package/dist/components/tree/index.mjs +2 -2
- package/dist/components/tree/tree.d.mts +44 -1
- package/dist/components/tree/tree.d.ts +44 -1
- package/dist/components/tree/tree.js +18 -20
- package/dist/components/tree/tree.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -23
- package/dist/index.mjs +41 -41
- package/package.json +1 -1
- package/dist/{chunk-SSMMWMQC.mjs → chunk-2YMAKIZ6.mjs} +3 -3
- package/dist/{chunk-FBAR75U4.mjs → chunk-6HX3PPL6.mjs} +3 -3
- package/dist/{chunk-7H5XPHY6.mjs → chunk-D6QI3DJG.mjs} +4 -4
- package/dist/{chunk-UFVQPPPW.mjs → chunk-HIVPDIEP.mjs} +3 -3
- package/dist/{chunk-P5QCU457.mjs → chunk-LL6F3WDX.mjs} +3 -3
- package/dist/{chunk-MW7CSRIE.mjs → chunk-MSAULFDB.mjs} +4 -4
- package/dist/{chunk-2DLKV6TT.mjs → chunk-OUAKGMDW.mjs} +4 -4
- package/dist/{chunk-2Y7IBUAZ.mjs → chunk-P5PJTJLY.mjs} +4 -4
- package/dist/{chunk-MQI5SZWO.mjs → chunk-PNRS23HE.mjs} +3 -3
- package/dist/{chunk-SDHQUYFI.mjs → chunk-PZIVMTKX.mjs} +3 -3
- package/dist/{chunk-DUPQBPI2.mjs → chunk-Q72LZAPG.mjs} +3 -3
- package/dist/{chunk-YIIFWADW.mjs → chunk-QIRL6HY6.mjs} +4 -4
- package/dist/{chunk-EWZAHXN7.mjs → chunk-VQROXH43.mjs} +3 -3
- package/dist/{chunk-KCOHU7X7.mjs → chunk-WFMFC7R6.mjs} +4 -4
- package/dist/{chunk-IL5ENWCR.mjs → chunk-Z2537DF6.mjs} +3 -3
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import * as tailwind_merge from 'tailwind-merge';
|
|
1
3
|
import * as react from 'react';
|
|
2
4
|
import { ReactNode } from 'react';
|
|
5
|
+
import { SlotsToClasses } from '../../utils/types.js';
|
|
3
6
|
|
|
4
7
|
type TreeNode = {
|
|
5
8
|
id: number;
|
|
@@ -14,7 +17,47 @@ interface TreeProps {
|
|
|
14
17
|
data: TreeNode[];
|
|
15
18
|
onClick?: () => void;
|
|
16
19
|
};
|
|
20
|
+
classNames?: SlotsToClasses<TreeSlots>;
|
|
17
21
|
}
|
|
18
22
|
declare const Tree: react.ForwardRefExoticComponent<TreeProps & react.RefAttributes<HTMLDivElement>>;
|
|
19
23
|
|
|
20
|
-
|
|
24
|
+
declare const treeStyle: tailwind_variants.TVReturnType<{
|
|
25
|
+
[key: string]: {
|
|
26
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
27
|
+
base?: tailwind_merge.ClassNameValue;
|
|
28
|
+
label?: tailwind_merge.ClassNameValue;
|
|
29
|
+
wrapper?: tailwind_merge.ClassNameValue;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
} | {
|
|
33
|
+
[x: string]: {
|
|
34
|
+
[x: string]: tailwind_merge.ClassNameValue | {
|
|
35
|
+
base?: tailwind_merge.ClassNameValue;
|
|
36
|
+
label?: tailwind_merge.ClassNameValue;
|
|
37
|
+
wrapper?: tailwind_merge.ClassNameValue;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
} | {}, {
|
|
41
|
+
base: string[];
|
|
42
|
+
wrapper: string[];
|
|
43
|
+
label: string[];
|
|
44
|
+
}, undefined, {
|
|
45
|
+
[key: string]: {
|
|
46
|
+
[key: string]: tailwind_merge.ClassNameValue | {
|
|
47
|
+
base?: tailwind_merge.ClassNameValue;
|
|
48
|
+
label?: tailwind_merge.ClassNameValue;
|
|
49
|
+
wrapper?: tailwind_merge.ClassNameValue;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
} | {}, {
|
|
53
|
+
base: string[];
|
|
54
|
+
wrapper: string[];
|
|
55
|
+
label: string[];
|
|
56
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
57
|
+
base: string[];
|
|
58
|
+
wrapper: string[];
|
|
59
|
+
label: string[];
|
|
60
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
61
|
+
type TreeSlots = keyof ReturnType<typeof treeStyle>;
|
|
62
|
+
|
|
63
|
+
export { type TreeNode, Tree as default };
|
|
@@ -4302,44 +4302,42 @@ var folder_default = "../../folder-RO3QTLGS.svg";
|
|
|
4302
4302
|
|
|
4303
4303
|
// src/components/tree/tree.tsx
|
|
4304
4304
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
4305
|
-
var TreeNodeItem = (0, import_react.forwardRef)(({ node, depth }
|
|
4305
|
+
var TreeNodeItem = (0, import_react.forwardRef)(({ node, depth, classNames }) => {
|
|
4306
4306
|
var _a;
|
|
4307
4307
|
const [isOpen, setIsOpen] = (0, import_react.useState)(false);
|
|
4308
4308
|
const slots = (0, import_react.useMemo)(() => treeStyle(), []);
|
|
4309
4309
|
const toggleOpen = (0, import_react.useCallback)(() => {
|
|
4310
4310
|
setIsOpen((prev) => !prev);
|
|
4311
4311
|
}, []);
|
|
4312
|
-
const handleClick = () => {
|
|
4313
|
-
var _a2;
|
|
4314
|
-
toggleOpen();
|
|
4315
|
-
(_a2 = node.onClick) == null ? void 0 : _a2.call(node);
|
|
4316
|
-
};
|
|
4317
4312
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: depth > 1 ? "ml-[30px]" : "", children: [
|
|
4318
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.
|
|
4313
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), onClick: toggleOpen, children: [
|
|
4319
4314
|
node.children && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4320
4315
|
Icon_default,
|
|
4321
4316
|
{
|
|
4322
4317
|
name: "right-chevron",
|
|
4323
|
-
className: `text-neutral-main transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
|
|
4318
|
+
className: `text-neutral-main cursor-pointer transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
|
|
4324
4319
|
}
|
|
4325
4320
|
),
|
|
4326
4321
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("img", { src: folder_default, alt: "folder", width: 25, height: 25 }),
|
|
4327
|
-
|
|
4322
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick: () => {
|
|
4323
|
+
var _a2;
|
|
4324
|
+
return (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
|
|
4325
|
+
}, children: node.label })
|
|
4328
4326
|
] }),
|
|
4329
|
-
isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node: child, depth: depth + 1 }, child.id)))
|
|
4327
|
+
isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node: child, depth: depth + 1, classNames }, child.id)))
|
|
4330
4328
|
] });
|
|
4331
4329
|
});
|
|
4332
|
-
var Tree = (0, import_react.forwardRef)(({ headerContent, group }
|
|
4330
|
+
var Tree = (0, import_react.forwardRef)(({ headerContent, group, classNames }) => {
|
|
4333
4331
|
const { label, data, onClick } = group;
|
|
4334
4332
|
const slots = (0, import_react.useMemo)(() => treeStyle(), []);
|
|
4335
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.base(),
|
|
4333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
4336
4334
|
headerContent && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: headerContent }),
|
|
4337
4335
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
4338
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.
|
|
4336
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
|
|
4339
4337
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("img", { src: cogwheel_default, alt: "cogwheel", width: 25, height: 25 }),
|
|
4340
|
-
label
|
|
4338
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick, children: label })
|
|
4341
4339
|
] }),
|
|
4342
|
-
data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node, depth: 1 }, node.id))
|
|
4340
|
+
data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node, depth: 1, classNames }, node.id))
|
|
4343
4341
|
] })
|
|
4344
4342
|
] });
|
|
4345
4343
|
});
|
|
@@ -4348,8 +4346,8 @@ Tree.displayName = "Tree";
|
|
|
4348
4346
|
var tree_default = Tree;
|
|
4349
4347
|
var treeStyle = tv({
|
|
4350
4348
|
slots: {
|
|
4351
|
-
base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]"],
|
|
4352
|
-
|
|
4349
|
+
base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
|
|
4350
|
+
wrapper: [
|
|
4353
4351
|
"flex",
|
|
4354
4352
|
"items-center",
|
|
4355
4353
|
"gap-[5px]",
|
|
@@ -4358,8 +4356,8 @@ var treeStyle = tv({
|
|
|
4358
4356
|
"text-body-foreground",
|
|
4359
4357
|
"hover:bg-neutral-soft",
|
|
4360
4358
|
"p-[5px]",
|
|
4361
|
-
"rounded-[5px]"
|
|
4362
|
-
|
|
4363
|
-
]
|
|
4359
|
+
"rounded-[5px]"
|
|
4360
|
+
],
|
|
4361
|
+
label: ["cursor-pointer"]
|
|
4364
4362
|
}
|
|
4365
4363
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tree_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-BZGUSIX5.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
6
|
import "../../chunk-HWL7TPUN.mjs";
|
|
7
7
|
import "../../chunk-3IU2RPSM.mjs";
|
|
8
|
-
import "../../chunk-4ZJFD3L3.mjs";
|
|
9
8
|
import "../../chunk-7USF56CT.mjs";
|
|
10
9
|
import "../../chunk-IZM66FHP.mjs";
|
|
10
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
12
|
export {
|
|
13
13
|
tree_default as default
|
package/dist/index.d.mts
CHANGED
|
@@ -25,7 +25,7 @@ export { default as Toast } from './components/toast/toast.mjs';
|
|
|
25
25
|
export { ToastProvider, useToast } from './components/toast/use-toast.mjs';
|
|
26
26
|
export { default as DateTimePicker } from './components/dateTimePicker/dateTimePicker.mjs';
|
|
27
27
|
export { default as ScrollArea } from './components/scroll/scrollArea.mjs';
|
|
28
|
-
export { default as Tree } from './components/tree/tree.mjs';
|
|
28
|
+
export { default as Tree, TreeNode } from './components/tree/tree.mjs';
|
|
29
29
|
export { tv } from './utils/tailwind-variants.mjs';
|
|
30
30
|
export { deepnoidUi } from '@deepnoid/tailwind-config';
|
|
31
31
|
export { VariantProps } from 'tailwind-variants';
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export { default as Toast } from './components/toast/toast.js';
|
|
|
25
25
|
export { ToastProvider, useToast } from './components/toast/use-toast.js';
|
|
26
26
|
export { default as DateTimePicker } from './components/dateTimePicker/dateTimePicker.js';
|
|
27
27
|
export { default as ScrollArea } from './components/scroll/scrollArea.js';
|
|
28
|
-
export { default as Tree } from './components/tree/tree.js';
|
|
28
|
+
export { default as Tree, TreeNode } from './components/tree/tree.js';
|
|
29
29
|
export { tv } from './utils/tailwind-variants.js';
|
|
30
30
|
export { deepnoidUi } from '@deepnoid/tailwind-config';
|
|
31
31
|
export { VariantProps } from 'tailwind-variants';
|
package/dist/index.js
CHANGED
|
@@ -7554,10 +7554,10 @@ var tableStyle = (0, import_tailwind_variants15.tv)({
|
|
|
7554
7554
|
var import_react18 = require("react");
|
|
7555
7555
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
7556
7556
|
var DEFAULT_COLUMN_CLASSES = [
|
|
7557
|
-
"w-[120px]
|
|
7558
|
-
"px-[10px]"
|
|
7557
|
+
"w-[120px] px-[10px] py-[9.5px] font-bold text-md text-body-foreground border-r border-neutral-light",
|
|
7558
|
+
"px-[10px] py-[9.5px]"
|
|
7559
7559
|
];
|
|
7560
|
-
var FormTableRow = ({ columns, columnClasses = [] }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tr", { className: "border-neutral-light border-b", children: columns.map((col, index) => {
|
|
7560
|
+
var FormTableRow = ({ columns, columnClasses = [] }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tr", { className: "border-neutral-light min-h-[50px] border-b", children: columns.map((col, index) => {
|
|
7561
7561
|
var _a;
|
|
7562
7562
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: (_a = columnClasses[index]) != null ? _a : DEFAULT_COLUMN_CLASSES[index], children: col }, index);
|
|
7563
7563
|
}) });
|
|
@@ -10009,44 +10009,42 @@ var folder_default = "./folder-RO3QTLGS.svg";
|
|
|
10009
10009
|
|
|
10010
10010
|
// src/components/tree/tree.tsx
|
|
10011
10011
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
10012
|
-
var TreeNodeItem = (0, import_react34.forwardRef)(({ node, depth }
|
|
10012
|
+
var TreeNodeItem = (0, import_react34.forwardRef)(({ node, depth, classNames }) => {
|
|
10013
10013
|
var _a;
|
|
10014
10014
|
const [isOpen, setIsOpen] = (0, import_react34.useState)(false);
|
|
10015
10015
|
const slots = (0, import_react34.useMemo)(() => treeStyle(), []);
|
|
10016
10016
|
const toggleOpen = (0, import_react34.useCallback)(() => {
|
|
10017
10017
|
setIsOpen((prev) => !prev);
|
|
10018
10018
|
}, []);
|
|
10019
|
-
const handleClick = () => {
|
|
10020
|
-
var _a2;
|
|
10021
|
-
toggleOpen();
|
|
10022
|
-
(_a2 = node.onClick) == null ? void 0 : _a2.call(node);
|
|
10023
|
-
};
|
|
10024
10019
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: depth > 1 ? "ml-[30px]" : "", children: [
|
|
10025
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.
|
|
10020
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), onClick: toggleOpen, children: [
|
|
10026
10021
|
node.children && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
10027
10022
|
Icon_default,
|
|
10028
10023
|
{
|
|
10029
10024
|
name: "right-chevron",
|
|
10030
|
-
className: `text-neutral-main transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
|
|
10025
|
+
className: `text-neutral-main cursor-pointer transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
|
|
10031
10026
|
}
|
|
10032
10027
|
),
|
|
10033
10028
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("img", { src: folder_default, alt: "folder", width: 25, height: 25 }),
|
|
10034
|
-
|
|
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 })
|
|
10035
10033
|
] }),
|
|
10036
|
-
isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TreeNodeItem, { node: child, depth: depth + 1 }, child.id)))
|
|
10034
|
+
isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TreeNodeItem, { node: child, depth: depth + 1, classNames }, child.id)))
|
|
10037
10035
|
] });
|
|
10038
10036
|
});
|
|
10039
|
-
var Tree = (0, import_react34.forwardRef)(({ headerContent, group }
|
|
10037
|
+
var Tree = (0, import_react34.forwardRef)(({ headerContent, group, classNames }) => {
|
|
10040
10038
|
const { label, data, onClick } = group;
|
|
10041
10039
|
const slots = (0, import_react34.useMemo)(() => treeStyle(), []);
|
|
10042
|
-
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.base(),
|
|
10040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
10043
10041
|
headerContent && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children: headerContent }),
|
|
10044
10042
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
|
|
10045
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.
|
|
10043
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
|
|
10046
10044
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("img", { src: cogwheel_default, alt: "cogwheel", width: 25, height: 25 }),
|
|
10047
|
-
label
|
|
10045
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick, children: label })
|
|
10048
10046
|
] }),
|
|
10049
|
-
data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TreeNodeItem, { node, depth: 1 }, node.id))
|
|
10047
|
+
data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TreeNodeItem, { node, depth: 1, classNames }, node.id))
|
|
10050
10048
|
] })
|
|
10051
10049
|
] });
|
|
10052
10050
|
});
|
|
@@ -10055,8 +10053,8 @@ Tree.displayName = "Tree";
|
|
|
10055
10053
|
var tree_default = Tree;
|
|
10056
10054
|
var treeStyle = tv({
|
|
10057
10055
|
slots: {
|
|
10058
|
-
base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]"],
|
|
10059
|
-
|
|
10056
|
+
base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
|
|
10057
|
+
wrapper: [
|
|
10060
10058
|
"flex",
|
|
10061
10059
|
"items-center",
|
|
10062
10060
|
"gap-[5px]",
|
|
@@ -10065,9 +10063,9 @@ var treeStyle = tv({
|
|
|
10065
10063
|
"text-body-foreground",
|
|
10066
10064
|
"hover:bg-neutral-soft",
|
|
10067
10065
|
"p-[5px]",
|
|
10068
|
-
"rounded-[5px]"
|
|
10069
|
-
|
|
10070
|
-
]
|
|
10066
|
+
"rounded-[5px]"
|
|
10067
|
+
],
|
|
10068
|
+
label: ["cursor-pointer"]
|
|
10071
10069
|
}
|
|
10072
10070
|
});
|
|
10073
10071
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import {
|
|
4
|
-
ToastProvider,
|
|
5
|
-
useToast
|
|
6
|
-
} from "./chunk-7KUFDVGL.mjs";
|
|
7
|
-
import "./chunk-ZOTHPHXA.mjs";
|
|
2
|
+
import "./chunk-MBLZYQCN.mjs";
|
|
8
3
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
4
|
+
tree_default
|
|
5
|
+
} from "./chunk-BZGUSIX5.mjs";
|
|
11
6
|
import "./chunk-RRAZM5D3.mjs";
|
|
12
7
|
import {
|
|
13
8
|
textarea_default
|
|
@@ -15,34 +10,39 @@ import {
|
|
|
15
10
|
import "./chunk-HIE2YRGA.mjs";
|
|
16
11
|
import {
|
|
17
12
|
tooltip_default
|
|
18
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Z2537DF6.mjs";
|
|
19
14
|
import "./chunk-ZMOAFSYE.mjs";
|
|
20
15
|
import "./chunk-WSIADHVC.mjs";
|
|
21
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-LUWGOKLG.mjs";
|
|
22
17
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
ToastProvider,
|
|
19
|
+
useToast
|
|
20
|
+
} from "./chunk-UAHTRCKG.mjs";
|
|
21
|
+
import {
|
|
22
|
+
toast_default
|
|
23
|
+
} from "./chunk-OUAKGMDW.mjs";
|
|
24
|
+
import "./chunk-ZOTHPHXA.mjs";
|
|
25
25
|
import "./chunk-DX3KXNP6.mjs";
|
|
26
26
|
import {
|
|
27
27
|
form_table_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ICZTNO4V.mjs";
|
|
29
29
|
import {
|
|
30
30
|
table_default
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-6OMHIMIA.mjs";
|
|
32
|
+
import "./chunk-XRC5OUYQ.mjs";
|
|
33
|
+
import "./chunk-EAK5DVWA.mjs";
|
|
34
34
|
import "./chunk-3MY6LO7N.mjs";
|
|
35
35
|
import {
|
|
36
36
|
tabs_default
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-2YMAKIZ6.mjs";
|
|
38
|
+
import "./chunk-QCEKPS7U.mjs";
|
|
39
|
+
import {
|
|
40
|
+
select_default
|
|
41
|
+
} from "./chunk-MSAULFDB.mjs";
|
|
38
42
|
import "./chunk-DQRAFUDA.mjs";
|
|
39
43
|
import {
|
|
40
44
|
scrollArea_default
|
|
41
45
|
} from "./chunk-M37VBNB3.mjs";
|
|
42
|
-
import "./chunk-QCEKPS7U.mjs";
|
|
43
|
-
import {
|
|
44
|
-
select_default
|
|
45
|
-
} from "./chunk-MW7CSRIE.mjs";
|
|
46
46
|
import "./chunk-LVFI2NOH.mjs";
|
|
47
47
|
import {
|
|
48
48
|
switch_default
|
|
@@ -50,54 +50,54 @@ import {
|
|
|
50
50
|
import "./chunk-DJOG6Z35.mjs";
|
|
51
51
|
import {
|
|
52
52
|
modal_default
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-ZUSUVPYV.mjs";
|
|
54
54
|
import "./chunk-7B7LRG5J.mjs";
|
|
55
55
|
import {
|
|
56
56
|
pagination_default
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-IVK24VIL.mjs";
|
|
58
58
|
import "./chunk-F3HENRVM.mjs";
|
|
59
59
|
import "./chunk-TPFN22HR.mjs";
|
|
60
60
|
import {
|
|
61
61
|
radio_default
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-QIRL6HY6.mjs";
|
|
63
63
|
import "./chunk-2GCSFWHD.mjs";
|
|
64
64
|
import {
|
|
65
65
|
input_default
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-P5PJTJLY.mjs";
|
|
67
67
|
import "./chunk-QZ3LVYJW.mjs";
|
|
68
68
|
import "./chunk-MGEWSREV.mjs";
|
|
69
69
|
import {
|
|
70
70
|
chip_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-6HX3PPL6.mjs";
|
|
72
72
|
import "./chunk-75HLCORR.mjs";
|
|
73
73
|
import {
|
|
74
74
|
dateTimePicker_default
|
|
75
|
-
} from "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
75
|
+
} from "./chunk-EYVRTVRM.mjs";
|
|
76
|
+
import "./chunk-Q72LZAPG.mjs";
|
|
77
|
+
import "./chunk-OWG4RL2T.mjs";
|
|
78
78
|
import "./chunk-7MVEAQ7Z.mjs";
|
|
79
79
|
import {
|
|
80
80
|
listItem_default
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-PZIVMTKX.mjs";
|
|
82
82
|
import {
|
|
83
83
|
list_default
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-HIVPDIEP.mjs";
|
|
85
85
|
import "./chunk-FWJ2ZKH6.mjs";
|
|
86
86
|
import "./chunk-P732YGHO.mjs";
|
|
87
87
|
import "./chunk-KYIODWXL.mjs";
|
|
88
88
|
import {
|
|
89
89
|
breadcrumb_default
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-6KXBXGYR.mjs";
|
|
91
91
|
import "./chunk-MY5U63QO.mjs";
|
|
92
92
|
import {
|
|
93
93
|
button_group_default
|
|
94
94
|
} from "./chunk-LPZOH3RP.mjs";
|
|
95
95
|
import {
|
|
96
96
|
button_default
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-PNRS23HE.mjs";
|
|
98
98
|
import {
|
|
99
99
|
icon_button_default
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-VQROXH43.mjs";
|
|
101
101
|
import "./chunk-6WSACUIB.mjs";
|
|
102
102
|
import "./chunk-LXHUO6VM.mjs";
|
|
103
103
|
import "./chunk-6PNKRBUT.mjs";
|
|
@@ -108,27 +108,27 @@ import {
|
|
|
108
108
|
} from "./chunk-HWL7TPUN.mjs";
|
|
109
109
|
import {
|
|
110
110
|
text_button_default
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-WFMFC7R6.mjs";
|
|
112
112
|
import {
|
|
113
113
|
checkbox_default
|
|
114
|
-
} from "./chunk-
|
|
115
|
-
import "./chunk-E3G5QXSH.mjs";
|
|
114
|
+
} from "./chunk-D6QI3DJG.mjs";
|
|
116
115
|
import "./chunk-7DLOYKVC.mjs";
|
|
117
116
|
import {
|
|
118
117
|
avatar_default
|
|
119
118
|
} from "./chunk-XQGD4ZIX.mjs";
|
|
120
119
|
import "./chunk-3IU2RPSM.mjs";
|
|
120
|
+
import "./chunk-7USF56CT.mjs";
|
|
121
|
+
import "./chunk-IZM66FHP.mjs";
|
|
121
122
|
import "./chunk-SE5TU755.mjs";
|
|
122
123
|
import {
|
|
123
124
|
backdrop_default
|
|
124
|
-
} from "./chunk-
|
|
125
|
-
import "./chunk-27Y6K5NK.mjs";
|
|
125
|
+
} from "./chunk-LL6F3WDX.mjs";
|
|
126
126
|
import {
|
|
127
127
|
deepnoidUi,
|
|
128
128
|
tv
|
|
129
129
|
} from "./chunk-4ZJFD3L3.mjs";
|
|
130
|
-
import "./chunk-
|
|
131
|
-
import "./chunk-
|
|
130
|
+
import "./chunk-27Y6K5NK.mjs";
|
|
131
|
+
import "./chunk-E3G5QXSH.mjs";
|
|
132
132
|
import "./chunk-AC6TWLRT.mjs";
|
|
133
133
|
export {
|
|
134
134
|
avatar_default as Avatar,
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
mapPropsVariants
|
|
4
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
5
2
|
import {
|
|
6
3
|
tv
|
|
7
4
|
} from "./chunk-4ZJFD3L3.mjs";
|
|
5
|
+
import {
|
|
6
|
+
mapPropsVariants
|
|
7
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/tabs/tabs.tsx
|
|
10
10
|
import { forwardRef, useCallback, useMemo, useState } from "react";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
4
|
} from "./chunk-HWL7TPUN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
mapPropsVariants
|
|
7
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
8
5
|
import {
|
|
9
6
|
tv
|
|
10
7
|
} from "./chunk-4ZJFD3L3.mjs";
|
|
8
|
+
import {
|
|
9
|
+
mapPropsVariants
|
|
10
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/chip/chip.tsx
|
|
13
13
|
import { forwardRef, useMemo } from "react";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-4ZJFD3L3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
clsx
|
|
7
7
|
} from "./chunk-27Y6K5NK.mjs";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
mapPropsVariants
|
|
10
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/checkbox/checkbox.tsx
|
|
13
13
|
import { forwardRef, useMemo } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
mapPropsVariants
|
|
4
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
5
2
|
import {
|
|
6
3
|
tv
|
|
7
4
|
} from "./chunk-4ZJFD3L3.mjs";
|
|
5
|
+
import {
|
|
6
|
+
mapPropsVariants
|
|
7
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/list/list.tsx
|
|
10
10
|
import { Children, cloneElement, forwardRef, isValidElement, useMemo } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
clsx
|
|
4
|
-
} from "./chunk-27Y6K5NK.mjs";
|
|
5
2
|
import {
|
|
6
3
|
tv
|
|
7
4
|
} from "./chunk-4ZJFD3L3.mjs";
|
|
5
|
+
import {
|
|
6
|
+
clsx
|
|
7
|
+
} from "./chunk-27Y6K5NK.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/backdrop/backdrop.tsx
|
|
10
10
|
import { useEffect, useState } from "react";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
Icon_default
|
|
4
4
|
} from "./chunk-HWL7TPUN.mjs";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
tv
|
|
7
|
+
} from "./chunk-4ZJFD3L3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
clsx
|
|
10
10
|
} from "./chunk-27Y6K5NK.mjs";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
mapPropsVariants
|
|
13
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/select/select.tsx
|
|
16
16
|
import { forwardRef, useMemo, useState, useRef, useEffect } from "react";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
Icon_default
|
|
4
4
|
} from "./chunk-HWL7TPUN.mjs";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
tv
|
|
7
|
+
} from "./chunk-4ZJFD3L3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
clsx
|
|
10
10
|
} from "./chunk-27Y6K5NK.mjs";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
mapPropsVariants
|
|
13
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/toast/toast.tsx
|
|
16
16
|
import { forwardRef, useImperativeHandle, useMemo, useRef } from "react";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
Icon_default
|
|
4
4
|
} from "./chunk-HWL7TPUN.mjs";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
tv
|
|
7
|
+
} from "./chunk-4ZJFD3L3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
clsx
|
|
10
10
|
} from "./chunk-27Y6K5NK.mjs";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
mapPropsVariants
|
|
13
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/input/input.tsx
|
|
16
16
|
import React, { forwardRef, useRef, useCallback, useMemo } from "react";
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
10
|
} from "./chunk-HWL7TPUN.mjs";
|
|
11
|
-
import {
|
|
12
|
-
mapPropsVariants
|
|
13
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
14
11
|
import {
|
|
15
12
|
tv
|
|
16
13
|
} from "./chunk-4ZJFD3L3.mjs";
|
|
14
|
+
import {
|
|
15
|
+
mapPropsVariants
|
|
16
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
17
17
|
|
|
18
18
|
// src/components/button/button.tsx
|
|
19
19
|
import React, { forwardRef, useMemo, useCallback } from "react";
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
4
|
} from "./chunk-HWL7TPUN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
mapPropsVariants
|
|
7
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
8
5
|
import {
|
|
9
6
|
avatar_default
|
|
10
7
|
} from "./chunk-XQGD4ZIX.mjs";
|
|
11
8
|
import {
|
|
12
9
|
tv
|
|
13
10
|
} from "./chunk-4ZJFD3L3.mjs";
|
|
11
|
+
import {
|
|
12
|
+
mapPropsVariants
|
|
13
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/list/listItem.tsx
|
|
16
16
|
import { forwardRef, useMemo } from "react";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
Icon_default
|
|
8
8
|
} from "./chunk-HWL7TPUN.mjs";
|
|
9
|
-
import {
|
|
10
|
-
mapPropsVariants
|
|
11
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
12
9
|
import {
|
|
13
10
|
tv
|
|
14
11
|
} from "./chunk-4ZJFD3L3.mjs";
|
|
12
|
+
import {
|
|
13
|
+
mapPropsVariants
|
|
14
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
15
15
|
|
|
16
16
|
// src/components/dateTimePicker/calendar.tsx
|
|
17
17
|
import React, {
|