@deepnoid/ui 0.1.51 → 0.1.53

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/dist/index.js CHANGED
@@ -8985,6 +8985,7 @@ var modal = tv({
8985
8985
  base: [
8986
8986
  "group/modal",
8987
8987
  "absolute",
8988
+ "fixed",
8988
8989
  "top-1/2",
8989
8990
  "-translate-y-1/2",
8990
8991
  "left-1/2",
@@ -10258,7 +10259,7 @@ var dateTimePickerStyle = tv({
10258
10259
  var import_react32 = require("react");
10259
10260
  var import_jsx_runtime35 = require("react/jsx-runtime");
10260
10261
  var TreeNodeItem = (0, import_react32.forwardRef)(
10261
- ({ node, depth, fileIcon, selectedId, isLoading, classNames, onExpand }, ref) => {
10262
+ ({ node, depth, fileIcon, selectedId, classNames, onExpand }, ref) => {
10262
10263
  const [isOpen, setIsOpen] = (0, import_react32.useState)(false);
10263
10264
  const [children, setChildren] = (0, import_react32.useState)(node.children);
10264
10265
  const [isLoadingChildren, setIsLoadingChildren] = (0, import_react32.useState)(false);
@@ -10292,74 +10293,53 @@ var TreeNodeItem = (0, import_react32.forwardRef)(
10292
10293
  e.preventDefault();
10293
10294
  (_a = node.onRightClick) == null ? void 0 : _a.call(node, e);
10294
10295
  };
10295
- const marginClass = depth > 1 ? hasMore ? "ml-[30px]" : "ml-[55px]" : hasMore ? "" : "ml-[25px]";
10296
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
10297
- "div",
10298
- {
10299
- ref,
10300
- className: clsx(
10301
- marginClass,
10302
- "transition-all duration-150 ease-out",
10303
- isLoading ? "-translate-y-2 opacity-0" : "translate-y-0 opacity-100"
10304
- ),
10305
- children: [
10306
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
10307
- "div",
10308
- {
10309
- className: clsx(
10310
- slots.node({ class: classNames == null ? void 0 : classNames.node }),
10311
- slots.clickable({ class: classNames == null ? void 0 : classNames.clickable }),
10312
- selectedId == node.id ? "bg-neutral-soft" : ""
10313
- ),
10314
- onClick: handleClick,
10315
- onContextMenu: handleRightClick,
10316
- children: [
10317
- hasMore && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
10318
- Icon_default,
10319
- {
10320
- name: "right-chevron",
10321
- className: clsx(
10322
- "text-neutral-main cursor-pointer transition-transform duration-150",
10323
- isOpen ? "rotate-90" : "rotate-0"
10324
- )
10325
- }
10326
- ),
10327
- fileIcon,
10328
- node.content
10329
- ]
10330
- }
10296
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { ref, className: depth > 1 ? hasMore ? "ml-[30px]" : "ml-[55px]" : hasMore ? "" : "ml-[25px]", children: [
10297
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
10298
+ "div",
10299
+ {
10300
+ className: clsx(
10301
+ slots.node({ class: classNames == null ? void 0 : classNames.node }),
10302
+ slots.clickable({ class: classNames == null ? void 0 : classNames.clickable }),
10303
+ selectedId == node.id ? "bg-neutral-soft" : ""
10331
10304
  ),
10332
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
10333
- isLoadingChildren && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-neutral py-1 text-sm", children: "loading..." }),
10334
- children == null ? void 0 : children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
10335
- TreeNodeItem,
10305
+ onClick: handleClick,
10306
+ onContextMenu: handleRightClick,
10307
+ children: [
10308
+ hasMore && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
10309
+ Icon_default,
10336
10310
  {
10337
- node: child,
10338
- depth: depth + 1,
10339
- selectedId,
10340
- classNames,
10341
- fileIcon,
10342
- onExpand
10343
- },
10344
- child.id
10345
- ))
10346
- ] })
10347
- ]
10348
- }
10349
- );
10311
+ name: "right-chevron",
10312
+ className: clsx(
10313
+ "text-neutral-main cursor-pointer transition-transform duration-150",
10314
+ isOpen ? "rotate-90" : "rotate-0"
10315
+ )
10316
+ }
10317
+ ),
10318
+ fileIcon,
10319
+ node.content
10320
+ ]
10321
+ }
10322
+ ),
10323
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
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
+ ] });
10350
10339
  }
10351
10340
  );
10352
10341
  TreeNodeItem.displayName = "TreeNodeItem";
10353
- var Tree = ({
10354
- headerContent,
10355
- group,
10356
- groupIcon,
10357
- fileIcon,
10358
- selectedId,
10359
- isLoading = false,
10360
- classNames,
10361
- onExpand
10362
- }) => {
10342
+ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames, onExpand }) => {
10363
10343
  const slots = (0, import_react32.useMemo)(() => treeStyle(), []);
10364
10344
  const handleClick = (e) => {
10365
10345
  var _a;
@@ -10396,7 +10376,6 @@ var Tree = ({
10396
10376
  classNames,
10397
10377
  fileIcon,
10398
10378
  selectedId,
10399
- isLoading,
10400
10379
  onExpand
10401
10380
  },
10402
10381
  node.id
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import "./chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
- } from "./chunk-4FO4MABJ.mjs";
5
+ } from "./chunk-XUP7M6LX.mjs";
6
6
  import "./chunk-LUWGOKLG.mjs";
7
7
  import {
8
8
  ToastProvider,
@@ -21,7 +21,7 @@ import "./chunk-WSIADHVC.mjs";
21
21
  import "./chunk-DX3KXNP6.mjs";
22
22
  import {
23
23
  table_default
24
- } from "./chunk-LIUQU45I.mjs";
24
+ } from "./chunk-7XFHA2U5.mjs";
25
25
  import "./chunk-BPEMHZH3.mjs";
26
26
  import "./chunk-P7YYNA6L.mjs";
27
27
  import "./chunk-3MY6LO7N.mjs";
@@ -32,11 +32,10 @@ import "./chunk-RRAZM5D3.mjs";
32
32
  import {
33
33
  textarea_default
34
34
  } from "./chunk-4EIGHKUO.mjs";
35
- import "./chunk-7B7LRG5J.mjs";
35
+ import "./chunk-QCEKPS7U.mjs";
36
36
  import {
37
- pagination_default
38
- } from "./chunk-OTEWHVER.mjs";
39
- import "./chunk-F3HENRVM.mjs";
37
+ select_default
38
+ } from "./chunk-5SNPCI6I.mjs";
40
39
  import "./chunk-MZ76AA76.mjs";
41
40
  import {
42
41
  skeleton_default
@@ -48,22 +47,23 @@ import {
48
47
  import {
49
48
  definition_table_default
50
49
  } from "./chunk-6TIIBU7J.mjs";
50
+ import "./chunk-TPFN22HR.mjs";
51
+ import {
52
+ radio_default
53
+ } from "./chunk-QIRL6HY6.mjs";
51
54
  import "./chunk-DQRAFUDA.mjs";
52
55
  import {
53
56
  scrollArea_default
54
57
  } from "./chunk-M37VBNB3.mjs";
55
- import "./chunk-QCEKPS7U.mjs";
56
- import {
57
- select_default
58
- } from "./chunk-5SNPCI6I.mjs";
59
58
  import "./chunk-DJOG6Z35.mjs";
60
59
  import {
61
60
  modal_default
62
- } from "./chunk-2RK3IMLR.mjs";
63
- import "./chunk-TPFN22HR.mjs";
61
+ } from "./chunk-T43IV3GD.mjs";
62
+ import "./chunk-7B7LRG5J.mjs";
64
63
  import {
65
- radio_default
66
- } from "./chunk-QIRL6HY6.mjs";
64
+ pagination_default
65
+ } from "./chunk-OTEWHVER.mjs";
66
+ import "./chunk-F3HENRVM.mjs";
67
67
  import "./chunk-RLXOHILK.mjs";
68
68
  import {
69
69
  fileUpload_default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.1.51",
3
+ "version": "0.1.53",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -5,12 +5,12 @@ import {
5
5
  import {
6
6
  table_head_default
7
7
  } from "./chunk-P7YYNA6L.mjs";
8
- import {
9
- pagination_default
10
- } from "./chunk-OTEWHVER.mjs";
11
8
  import {
12
9
  scrollArea_default
13
10
  } from "./chunk-M37VBNB3.mjs";
11
+ import {
12
+ pagination_default
13
+ } from "./chunk-OTEWHVER.mjs";
14
14
  import {
15
15
  clsx
16
16
  } from "./chunk-27Y6K5NK.mjs";