@deepnoid/ui 0.1.95 → 0.1.97

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.
Files changed (104) hide show
  1. package/.turbo/turbo-build.log +156 -156
  2. package/dist/{chunk-I3ORSDFO.mjs → chunk-23WOW2NZ.mjs} +2 -2
  3. package/dist/{chunk-5IKVOP4M.mjs → chunk-35D6XC62.mjs} +5 -5
  4. package/dist/{chunk-FB6LBMGN.mjs → chunk-45BNDZHL.mjs} +1 -1
  5. package/dist/{chunk-LMHSWLH2.mjs → chunk-45N5ZAIJ.mjs} +2 -2
  6. package/dist/{chunk-RE2WH26E.mjs → chunk-4GDJLALM.mjs} +1 -1
  7. package/dist/{chunk-RRONV7YA.mjs → chunk-6XFKID3T.mjs} +42 -58
  8. package/dist/{chunk-NTNIGQGI.mjs → chunk-ANBGNXIU.mjs} +1 -1
  9. package/dist/{chunk-6SWMJLOD.mjs → chunk-BHSZP2XF.mjs} +1 -1
  10. package/dist/{chunk-SGOE2HGI.mjs → chunk-BQTFCLWG.mjs} +2 -2
  11. package/dist/{chunk-Z4YJ274G.mjs → chunk-IW57F7WZ.mjs} +1 -1
  12. package/dist/{chunk-4BJPJ54Q.mjs → chunk-K7JLUER5.mjs} +1 -1
  13. package/dist/{chunk-TZHEZEJ5.mjs → chunk-PZSIYVDW.mjs} +1 -1
  14. package/dist/{chunk-IY4AY6JJ.mjs → chunk-QDQBFAE2.mjs} +3 -3
  15. package/dist/{chunk-Y5QV7T6D.mjs → chunk-S5AVFWOR.mjs} +6 -6
  16. package/dist/{chunk-JP4TEWP7.mjs → chunk-SCZB4QC7.mjs} +1 -1
  17. package/dist/{chunk-D3HZG3CH.mjs → chunk-TBSG4HY5.mjs} +1 -1
  18. package/dist/{chunk-MVL7HJSH.mjs → chunk-VFFLJN5N.mjs} +1 -1
  19. package/dist/{chunk-BSDEATP6.mjs → chunk-VIEBF2WH.mjs} +1 -1
  20. package/dist/{chunk-MPZKOT6P.mjs → chunk-WG2EL5JF.mjs} +1 -1
  21. package/dist/{chunk-P6CRHHI3.mjs → chunk-WV77476I.mjs} +1 -1
  22. package/dist/components/avatar/avatar.js +42 -58
  23. package/dist/components/avatar/avatar.mjs +2 -2
  24. package/dist/components/avatar/index.js +42 -58
  25. package/dist/components/avatar/index.mjs +2 -2
  26. package/dist/components/breadcrumb/breadcrumb.js +42 -58
  27. package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
  28. package/dist/components/breadcrumb/index.js +42 -58
  29. package/dist/components/breadcrumb/index.mjs +5 -5
  30. package/dist/components/button/button.js +42 -58
  31. package/dist/components/button/button.mjs +3 -3
  32. package/dist/components/button/icon-button.js +42 -58
  33. package/dist/components/button/icon-button.mjs +3 -3
  34. package/dist/components/button/index.js +42 -58
  35. package/dist/components/button/index.mjs +4 -4
  36. package/dist/components/chip/chip.js +42 -58
  37. package/dist/components/chip/chip.mjs +3 -3
  38. package/dist/components/chip/index.js +42 -58
  39. package/dist/components/chip/index.mjs +3 -3
  40. package/dist/components/dateTimePicker/calendar.js +42 -58
  41. package/dist/components/dateTimePicker/calendar.mjs +3 -3
  42. package/dist/components/dateTimePicker/dateTimePicker.js +42 -58
  43. package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
  44. package/dist/components/dateTimePicker/index.js +42 -58
  45. package/dist/components/dateTimePicker/index.mjs +7 -7
  46. package/dist/components/dateTimePicker/timePicker.js +42 -58
  47. package/dist/components/dateTimePicker/timePicker.mjs +5 -5
  48. package/dist/components/fileUpload/fileUpload.js +42 -58
  49. package/dist/components/fileUpload/fileUpload.mjs +6 -6
  50. package/dist/components/fileUpload/index.js +42 -58
  51. package/dist/components/fileUpload/index.mjs +6 -6
  52. package/dist/components/icon/Icon.d.mts +8 -8
  53. package/dist/components/icon/Icon.d.ts +8 -8
  54. package/dist/components/icon/Icon.js +42 -58
  55. package/dist/components/icon/Icon.mjs +2 -2
  56. package/dist/components/icon/index.js +42 -58
  57. package/dist/components/icon/index.mjs +2 -2
  58. package/dist/components/icon/template.d.mts +2 -2
  59. package/dist/components/icon/template.d.ts +2 -2
  60. package/dist/components/icon/template.js +42 -58
  61. package/dist/components/icon/template.mjs +1 -1
  62. package/dist/components/input/index.js +42 -58
  63. package/dist/components/input/index.mjs +3 -3
  64. package/dist/components/input/input.js +42 -58
  65. package/dist/components/input/input.mjs +3 -3
  66. package/dist/components/list/index.js +42 -58
  67. package/dist/components/list/index.mjs +4 -4
  68. package/dist/components/list/listItem.js +42 -58
  69. package/dist/components/list/listItem.mjs +4 -4
  70. package/dist/components/modal/index.js +42 -58
  71. package/dist/components/modal/index.mjs +5 -5
  72. package/dist/components/modal/modal.js +42 -58
  73. package/dist/components/modal/modal.mjs +5 -5
  74. package/dist/components/pagination/index.js +42 -58
  75. package/dist/components/pagination/index.mjs +4 -4
  76. package/dist/components/pagination/pagination.js +42 -58
  77. package/dist/components/pagination/pagination.mjs +4 -4
  78. package/dist/components/select/index.js +42 -58
  79. package/dist/components/select/index.mjs +3 -3
  80. package/dist/components/select/select.js +42 -58
  81. package/dist/components/select/select.mjs +3 -3
  82. package/dist/components/table/index.js +42 -58
  83. package/dist/components/table/index.mjs +5 -5
  84. package/dist/components/table/table-body.js +42 -58
  85. package/dist/components/table/table-body.mjs +5 -5
  86. package/dist/components/table/table-head.js +42 -58
  87. package/dist/components/table/table-head.mjs +5 -5
  88. package/dist/components/table/table.js +42 -58
  89. package/dist/components/table/table.mjs +5 -5
  90. package/dist/components/toast/index.js +42 -58
  91. package/dist/components/toast/index.mjs +4 -4
  92. package/dist/components/toast/toast.js +42 -58
  93. package/dist/components/toast/toast.mjs +3 -3
  94. package/dist/components/toast/use-toast.js +42 -58
  95. package/dist/components/toast/use-toast.mjs +4 -4
  96. package/dist/components/tree/index.js +47 -63
  97. package/dist/components/tree/index.mjs +3 -3
  98. package/dist/components/tree/tree.d.mts +3 -2
  99. package/dist/components/tree/tree.d.ts +3 -2
  100. package/dist/components/tree/tree.js +47 -63
  101. package/dist/components/tree/tree.mjs +3 -3
  102. package/dist/index.js +47 -63
  103. package/dist/index.mjs +24 -24
  104. package/package.json +1 -1
@@ -1546,6 +1546,48 @@ var template = {
1546
1546
  }
1547
1547
  );
1548
1548
  },
1549
+ lock: ({ className }) => {
1550
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1551
+ "svg",
1552
+ {
1553
+ width: "22",
1554
+ height: "22",
1555
+ viewBox: "0 0 22 22",
1556
+ fill: "none",
1557
+ xmlns: "http://www.w3.org/2000/svg",
1558
+ className,
1559
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1560
+ "path",
1561
+ {
1562
+ "fill-rule": "evenodd",
1563
+ "clip-rule": "evenodd",
1564
+ d: "M11 2.8335C9.81858 2.8335 8.68555 3.2637 7.85016 4.02948C7.01477 4.79525 6.54545 5.83386 6.54545 6.91683V9.25016C5.87036 9.25016 5.22291 9.49599 4.74555 9.93358C4.26818 10.3712 4 10.9647 4 11.5835V16.8335C4 17.4523 4.26818 18.0458 4.74555 18.4834C5.22291 18.921 5.87036 19.1668 6.54545 19.1668H15.4545C16.1296 19.1668 16.7771 18.921 17.2545 18.4834C17.7318 18.0458 18 17.4523 18 16.8335V11.5835C18 10.9647 17.7318 10.3712 17.2545 9.93358C16.7771 9.49599 16.1296 9.25016 15.4545 9.25016V6.91683C15.4545 4.66127 13.4606 2.8335 11 2.8335ZM14.1818 9.25016V6.91683C14.1818 6.14328 13.8466 5.40142 13.2499 4.85443C12.6532 4.30745 11.8439 4.00016 11 4.00016C10.1561 4.00016 9.34682 4.30745 8.75011 4.85443C8.15341 5.40142 7.81818 6.14328 7.81818 6.91683V9.25016H14.1818Z",
1565
+ fill: "currentColor"
1566
+ }
1567
+ )
1568
+ }
1569
+ );
1570
+ },
1571
+ unlock: ({ className }) => {
1572
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1573
+ "svg",
1574
+ {
1575
+ width: "22",
1576
+ height: "22",
1577
+ viewBox: "0 0 22 22",
1578
+ fill: "none",
1579
+ xmlns: "http://www.w3.org/2000/svg",
1580
+ className,
1581
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1582
+ "path",
1583
+ {
1584
+ d: "M15.3557 2.8335C17.4609 2.8335 19.1668 4.66127 19.1668 6.91683V9.8335C19.1668 9.98821 19.1095 10.1366 19.0074 10.246C18.9053 10.3554 18.7668 10.4168 18.6224 10.4168C18.478 10.4168 18.3395 10.3554 18.2374 10.246C18.1353 10.1366 18.0779 9.98821 18.0779 9.8335V6.91683C18.0779 6.14328 17.7911 5.40142 17.2806 4.85443C16.7701 4.30745 16.0777 4.00016 15.3557 4.00016C14.6337 4.00016 13.9413 4.30745 13.4308 4.85443C12.9203 5.40142 12.6335 6.14328 12.6335 6.91683V9.25016C13.2111 9.25016 13.765 9.49599 14.1734 9.93358C14.5818 10.3712 14.8113 10.9647 14.8113 11.5835V16.8335C14.8113 17.4523 14.5818 18.0458 14.1734 18.4834C13.765 18.921 13.2111 19.1668 12.6335 19.1668H5.01127C4.43369 19.1668 3.87976 18.921 3.47135 18.4834C3.06294 18.0458 2.8335 17.4523 2.8335 16.8335V11.5835C2.8335 10.9647 3.06294 10.3712 3.47135 9.93358C3.87976 9.49599 4.43369 9.25016 5.01127 9.25016H11.5446V6.91683C11.5446 4.66127 13.2505 2.8335 15.3557 2.8335Z",
1585
+ fill: "currentColor"
1586
+ }
1587
+ )
1588
+ }
1589
+ );
1590
+ },
1549
1591
  // ----------------------------------- old ---------------------------------
1550
1592
  // ** Status **
1551
1593
  check: ({ className, fill }) => {
@@ -3136,64 +3178,6 @@ var template = {
3136
3178
  }
3137
3179
  );
3138
3180
  },
3139
- lock: ({ className, fill }) => {
3140
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3141
- "svg",
3142
- {
3143
- width: "24",
3144
- height: "24",
3145
- viewBox: "0 0 24 24",
3146
- fill: "none",
3147
- xmlns: "http://www.w3.org/2000/svg",
3148
- className,
3149
- children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3150
- "path",
3151
- {
3152
- fillRule: "evenodd",
3153
- clipRule: "evenodd",
3154
- d: "M12 1.5C10.6076 1.5 9.27225 2.05312 8.28769 3.03769C7.30312 4.02226 6.75 5.35761 6.75 6.75V9.75C5.95435 9.75 5.19129 10.0661 4.62868 10.6287C4.06607 11.1913 3.75 11.9544 3.75 12.75V19.5C3.75 20.2956 4.06607 21.0587 4.62868 21.6213C5.19129 22.1839 5.95435 22.5 6.75 22.5H17.25C18.0456 22.5 18.8087 22.1839 19.3713 21.6213C19.9339 21.0587 20.25 20.2956 20.25 19.5V12.75C20.25 11.9544 19.9339 11.1913 19.3713 10.6287C18.8087 10.0661 18.0456 9.75 17.25 9.75V6.75C17.25 3.85 14.9 1.5 12 1.5ZM15.75 9.75V6.75C15.75 5.75544 15.3549 4.80161 14.6517 4.09835C13.9484 3.39509 12.9946 3 12 3C11.0054 3 10.0516 3.39509 9.34835 4.09835C8.64509 4.80161 8.25 5.75544 8.25 6.75V9.75H15.75Z",
3155
- fill: "currentColor"
3156
- }
3157
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3158
- "path",
3159
- {
3160
- d: "M16.5 10.5V6.75C16.5 5.55653 16.0259 4.41193 15.182 3.56802C14.3381 2.72411 13.1935 2.25 12 2.25C10.8065 2.25 9.66193 2.72411 8.81802 3.56802C7.97411 4.41193 7.5 5.55653 7.5 6.75V10.5M6.75 21.75H17.25C17.8467 21.75 18.419 21.5129 18.841 21.091C19.2629 20.669 19.5 20.0967 19.5 19.5V12.75C19.5 12.1533 19.2629 11.581 18.841 11.159C18.419 10.7371 17.8467 10.5 17.25 10.5H6.75C6.15326 10.5 5.58097 10.7371 5.15901 11.159C4.73705 11.581 4.5 12.1533 4.5 12.75V19.5C4.5 20.0967 4.73705 20.669 5.15901 21.091C5.58097 21.5129 6.15326 21.75 6.75 21.75Z",
3161
- stroke: "currentColor",
3162
- strokeLinecap: "round",
3163
- strokeLinejoin: "round"
3164
- }
3165
- )
3166
- }
3167
- );
3168
- },
3169
- unlock: ({ className, fill }) => {
3170
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3171
- "svg",
3172
- {
3173
- width: "24",
3174
- height: "24",
3175
- viewBox: "0 0 24 24",
3176
- fill: "none",
3177
- xmlns: "http://www.w3.org/2000/svg",
3178
- className,
3179
- children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3180
- "path",
3181
- {
3182
- d: "M18 1.5C20.9 1.5 23.25 3.85 23.25 6.75V10.5C23.25 10.6989 23.171 10.8897 23.0303 11.0303C22.8897 11.171 22.6989 11.25 22.5 11.25C22.3011 11.25 22.1103 11.171 21.9697 11.0303C21.829 10.8897 21.75 10.6989 21.75 10.5V6.75C21.75 5.75544 21.3549 4.80161 20.6517 4.09835C19.9484 3.39509 18.9946 3 18 3C17.0054 3 16.0516 3.39509 15.3483 4.09835C14.6451 4.80161 14.25 5.75544 14.25 6.75V9.75C15.0456 9.75 15.8087 10.0661 16.3713 10.6287C16.9339 11.1913 17.25 11.9544 17.25 12.75V19.5C17.25 20.2956 16.9339 21.0587 16.3713 21.6213C15.8087 22.1839 15.0456 22.5 14.25 22.5H3.75C2.95435 22.5 2.19129 22.1839 1.62868 21.6213C1.06607 21.0587 0.75 20.2956 0.75 19.5V12.75C0.75 11.9544 1.06607 11.1913 1.62868 10.6287C2.19129 10.0661 2.95435 9.75 3.75 9.75H12.75V6.75C12.75 3.85 15.1 1.5 18 1.5Z",
3183
- fill: "currentColor"
3184
- }
3185
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3186
- "path",
3187
- {
3188
- d: "M13.5 10.5V6.75C13.5 5.55653 13.9741 4.41193 14.818 3.56802C15.6619 2.72411 16.8065 2.25 18 2.25C19.1935 2.25 20.3381 2.72411 21.182 3.56802C22.0259 4.41193 22.5 5.55653 22.5 6.75V10.5M3.75 21.75H14.25C14.8467 21.75 15.419 21.5129 15.841 21.091C16.2629 20.669 16.5 20.0967 16.5 19.5V12.75C16.5 12.1533 16.2629 11.581 15.841 11.159C15.419 10.7371 14.8467 10.5 14.25 10.5H3.75C3.15326 10.5 2.58097 10.7371 2.15901 11.159C1.73705 11.581 1.5 12.1533 1.5 12.75V19.5C1.5 20.0967 1.73705 20.669 2.15901 21.091C2.58097 21.5129 3.15326 21.75 3.75 21.75Z",
3189
- stroke: "currentColor",
3190
- strokeLinecap: "round",
3191
- strokeLinejoin: "round"
3192
- }
3193
- )
3194
- }
3195
- );
3196
- },
3197
3181
  "pencil-square": ({ className, fill }) => {
3198
3182
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3199
3183
  "svg",
@@ -5028,7 +5012,7 @@ function toVal(mix) {
5028
5012
  // src/components/tree/tree.tsx
5029
5013
  var import_jsx_runtime3 = require("react/jsx-runtime");
5030
5014
  var TreeNodeItem = (0, import_react.forwardRef)(
5031
- ({ node, depth, fileIcon, selectedId, classNames, onExpand }, ref) => {
5015
+ ({ node, depth, fileIcon, selectedName, classNames, onExpand }, ref) => {
5032
5016
  const [isOpen, setIsOpen] = (0, import_react.useState)(false);
5033
5017
  const [children, setChildren] = (0, import_react.useState)(node.children);
5034
5018
  const slots = (0, import_react.useMemo)(() => treeStyle(), []);
@@ -5074,7 +5058,7 @@ var TreeNodeItem = (0, import_react.forwardRef)(
5074
5058
  className: clsx(
5075
5059
  slots.node({ class: classNames == null ? void 0 : classNames.node }),
5076
5060
  slots.clickable({ class: classNames == null ? void 0 : classNames.clickable }),
5077
- selectedId == node.id ? "bg-neutral-soft" : ""
5061
+ selectedName == node.selectedName ? "bg-neutral-soft" : ""
5078
5062
  ),
5079
5063
  onClick: handleClick,
5080
5064
  onContextMenu: handleRightClick,
@@ -5099,7 +5083,7 @@ var TreeNodeItem = (0, import_react.forwardRef)(
5099
5083
  {
5100
5084
  node: child,
5101
5085
  depth: depth + 1,
5102
- selectedId,
5086
+ selectedName,
5103
5087
  classNames,
5104
5088
  fileIcon,
5105
5089
  onExpand
@@ -5112,7 +5096,7 @@ var TreeNodeItem = (0, import_react.forwardRef)(
5112
5096
  }
5113
5097
  );
5114
5098
  TreeNodeItem.displayName = "TreeNodeItem";
5115
- var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames, onExpand }) => {
5099
+ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedName, classNames, onExpand }) => {
5116
5100
  const slots = (0, import_react.useMemo)(() => treeStyle(), []);
5117
5101
  const handleClick = (e) => {
5118
5102
  var _a;
@@ -5149,7 +5133,7 @@ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames,
5149
5133
  depth: 1,
5150
5134
  classNames,
5151
5135
  fileIcon,
5152
- selectedId,
5136
+ selectedName,
5153
5137
  onExpand
5154
5138
  },
5155
5139
  node.id
@@ -2,10 +2,10 @@
2
2
  import "../../chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
- } from "../../chunk-Y5QV7T6D.mjs";
5
+ } from "../../chunk-S5AVFWOR.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
- import "../../chunk-JP4TEWP7.mjs";
8
- import "../../chunk-RRONV7YA.mjs";
7
+ import "../../chunk-SCZB4QC7.mjs";
8
+ import "../../chunk-6XFKID3T.mjs";
9
9
  import "../../chunk-CDXBML6O.mjs";
10
10
  import "../../chunk-27Y6K5NK.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
@@ -9,6 +9,7 @@ type TreeNode = {
9
9
  content: ReactNode | string;
10
10
  isLeaf?: boolean;
11
11
  children?: TreeNode[];
12
+ selectedName?: string;
12
13
  onClick?: (event: MouseEvent<HTMLDivElement>) => void;
13
14
  onRightClick?: (event: MouseEvent<HTMLDivElement>) => void;
14
15
  };
@@ -22,12 +23,12 @@ interface TreeProps {
22
23
  };
23
24
  groupIcon?: ReactNode;
24
25
  fileIcon?: ReactNode;
25
- selectedId?: number | string;
26
+ selectedName?: string;
26
27
  classNames?: SlotsToClasses<TreeSlots>;
27
28
  onExpand?: (node: TreeNode) => Promise<TreeNode[]>;
28
29
  }
29
30
  declare const Tree: {
30
- ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames, onExpand }: TreeProps): react_jsx_runtime.JSX.Element;
31
+ ({ headerContent, group, groupIcon, fileIcon, selectedName, classNames, onExpand }: TreeProps): react_jsx_runtime.JSX.Element;
31
32
  displayName: string;
32
33
  };
33
34
 
@@ -9,6 +9,7 @@ type TreeNode = {
9
9
  content: ReactNode | string;
10
10
  isLeaf?: boolean;
11
11
  children?: TreeNode[];
12
+ selectedName?: string;
12
13
  onClick?: (event: MouseEvent<HTMLDivElement>) => void;
13
14
  onRightClick?: (event: MouseEvent<HTMLDivElement>) => void;
14
15
  };
@@ -22,12 +23,12 @@ interface TreeProps {
22
23
  };
23
24
  groupIcon?: ReactNode;
24
25
  fileIcon?: ReactNode;
25
- selectedId?: number | string;
26
+ selectedName?: string;
26
27
  classNames?: SlotsToClasses<TreeSlots>;
27
28
  onExpand?: (node: TreeNode) => Promise<TreeNode[]>;
28
29
  }
29
30
  declare const Tree: {
30
- ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames, onExpand }: TreeProps): react_jsx_runtime.JSX.Element;
31
+ ({ headerContent, group, groupIcon, fileIcon, selectedName, classNames, onExpand }: TreeProps): react_jsx_runtime.JSX.Element;
31
32
  displayName: string;
32
33
  };
33
34
 
@@ -1545,6 +1545,48 @@ var template = {
1545
1545
  }
1546
1546
  );
1547
1547
  },
1548
+ lock: ({ className }) => {
1549
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1550
+ "svg",
1551
+ {
1552
+ width: "22",
1553
+ height: "22",
1554
+ viewBox: "0 0 22 22",
1555
+ fill: "none",
1556
+ xmlns: "http://www.w3.org/2000/svg",
1557
+ className,
1558
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1559
+ "path",
1560
+ {
1561
+ "fill-rule": "evenodd",
1562
+ "clip-rule": "evenodd",
1563
+ d: "M11 2.8335C9.81858 2.8335 8.68555 3.2637 7.85016 4.02948C7.01477 4.79525 6.54545 5.83386 6.54545 6.91683V9.25016C5.87036 9.25016 5.22291 9.49599 4.74555 9.93358C4.26818 10.3712 4 10.9647 4 11.5835V16.8335C4 17.4523 4.26818 18.0458 4.74555 18.4834C5.22291 18.921 5.87036 19.1668 6.54545 19.1668H15.4545C16.1296 19.1668 16.7771 18.921 17.2545 18.4834C17.7318 18.0458 18 17.4523 18 16.8335V11.5835C18 10.9647 17.7318 10.3712 17.2545 9.93358C16.7771 9.49599 16.1296 9.25016 15.4545 9.25016V6.91683C15.4545 4.66127 13.4606 2.8335 11 2.8335ZM14.1818 9.25016V6.91683C14.1818 6.14328 13.8466 5.40142 13.2499 4.85443C12.6532 4.30745 11.8439 4.00016 11 4.00016C10.1561 4.00016 9.34682 4.30745 8.75011 4.85443C8.15341 5.40142 7.81818 6.14328 7.81818 6.91683V9.25016H14.1818Z",
1564
+ fill: "currentColor"
1565
+ }
1566
+ )
1567
+ }
1568
+ );
1569
+ },
1570
+ unlock: ({ className }) => {
1571
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1572
+ "svg",
1573
+ {
1574
+ width: "22",
1575
+ height: "22",
1576
+ viewBox: "0 0 22 22",
1577
+ fill: "none",
1578
+ xmlns: "http://www.w3.org/2000/svg",
1579
+ className,
1580
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1581
+ "path",
1582
+ {
1583
+ d: "M15.3557 2.8335C17.4609 2.8335 19.1668 4.66127 19.1668 6.91683V9.8335C19.1668 9.98821 19.1095 10.1366 19.0074 10.246C18.9053 10.3554 18.7668 10.4168 18.6224 10.4168C18.478 10.4168 18.3395 10.3554 18.2374 10.246C18.1353 10.1366 18.0779 9.98821 18.0779 9.8335V6.91683C18.0779 6.14328 17.7911 5.40142 17.2806 4.85443C16.7701 4.30745 16.0777 4.00016 15.3557 4.00016C14.6337 4.00016 13.9413 4.30745 13.4308 4.85443C12.9203 5.40142 12.6335 6.14328 12.6335 6.91683V9.25016C13.2111 9.25016 13.765 9.49599 14.1734 9.93358C14.5818 10.3712 14.8113 10.9647 14.8113 11.5835V16.8335C14.8113 17.4523 14.5818 18.0458 14.1734 18.4834C13.765 18.921 13.2111 19.1668 12.6335 19.1668H5.01127C4.43369 19.1668 3.87976 18.921 3.47135 18.4834C3.06294 18.0458 2.8335 17.4523 2.8335 16.8335V11.5835C2.8335 10.9647 3.06294 10.3712 3.47135 9.93358C3.87976 9.49599 4.43369 9.25016 5.01127 9.25016H11.5446V6.91683C11.5446 4.66127 13.2505 2.8335 15.3557 2.8335Z",
1584
+ fill: "currentColor"
1585
+ }
1586
+ )
1587
+ }
1588
+ );
1589
+ },
1548
1590
  // ----------------------------------- old ---------------------------------
1549
1591
  // ** Status **
1550
1592
  check: ({ className, fill }) => {
@@ -3135,64 +3177,6 @@ var template = {
3135
3177
  }
3136
3178
  );
3137
3179
  },
3138
- lock: ({ className, fill }) => {
3139
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3140
- "svg",
3141
- {
3142
- width: "24",
3143
- height: "24",
3144
- viewBox: "0 0 24 24",
3145
- fill: "none",
3146
- xmlns: "http://www.w3.org/2000/svg",
3147
- className,
3148
- children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3149
- "path",
3150
- {
3151
- fillRule: "evenodd",
3152
- clipRule: "evenodd",
3153
- d: "M12 1.5C10.6076 1.5 9.27225 2.05312 8.28769 3.03769C7.30312 4.02226 6.75 5.35761 6.75 6.75V9.75C5.95435 9.75 5.19129 10.0661 4.62868 10.6287C4.06607 11.1913 3.75 11.9544 3.75 12.75V19.5C3.75 20.2956 4.06607 21.0587 4.62868 21.6213C5.19129 22.1839 5.95435 22.5 6.75 22.5H17.25C18.0456 22.5 18.8087 22.1839 19.3713 21.6213C19.9339 21.0587 20.25 20.2956 20.25 19.5V12.75C20.25 11.9544 19.9339 11.1913 19.3713 10.6287C18.8087 10.0661 18.0456 9.75 17.25 9.75V6.75C17.25 3.85 14.9 1.5 12 1.5ZM15.75 9.75V6.75C15.75 5.75544 15.3549 4.80161 14.6517 4.09835C13.9484 3.39509 12.9946 3 12 3C11.0054 3 10.0516 3.39509 9.34835 4.09835C8.64509 4.80161 8.25 5.75544 8.25 6.75V9.75H15.75Z",
3154
- fill: "currentColor"
3155
- }
3156
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3157
- "path",
3158
- {
3159
- d: "M16.5 10.5V6.75C16.5 5.55653 16.0259 4.41193 15.182 3.56802C14.3381 2.72411 13.1935 2.25 12 2.25C10.8065 2.25 9.66193 2.72411 8.81802 3.56802C7.97411 4.41193 7.5 5.55653 7.5 6.75V10.5M6.75 21.75H17.25C17.8467 21.75 18.419 21.5129 18.841 21.091C19.2629 20.669 19.5 20.0967 19.5 19.5V12.75C19.5 12.1533 19.2629 11.581 18.841 11.159C18.419 10.7371 17.8467 10.5 17.25 10.5H6.75C6.15326 10.5 5.58097 10.7371 5.15901 11.159C4.73705 11.581 4.5 12.1533 4.5 12.75V19.5C4.5 20.0967 4.73705 20.669 5.15901 21.091C5.58097 21.5129 6.15326 21.75 6.75 21.75Z",
3160
- stroke: "currentColor",
3161
- strokeLinecap: "round",
3162
- strokeLinejoin: "round"
3163
- }
3164
- )
3165
- }
3166
- );
3167
- },
3168
- unlock: ({ className, fill }) => {
3169
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3170
- "svg",
3171
- {
3172
- width: "24",
3173
- height: "24",
3174
- viewBox: "0 0 24 24",
3175
- fill: "none",
3176
- xmlns: "http://www.w3.org/2000/svg",
3177
- className,
3178
- children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3179
- "path",
3180
- {
3181
- d: "M18 1.5C20.9 1.5 23.25 3.85 23.25 6.75V10.5C23.25 10.6989 23.171 10.8897 23.0303 11.0303C22.8897 11.171 22.6989 11.25 22.5 11.25C22.3011 11.25 22.1103 11.171 21.9697 11.0303C21.829 10.8897 21.75 10.6989 21.75 10.5V6.75C21.75 5.75544 21.3549 4.80161 20.6517 4.09835C19.9484 3.39509 18.9946 3 18 3C17.0054 3 16.0516 3.39509 15.3483 4.09835C14.6451 4.80161 14.25 5.75544 14.25 6.75V9.75C15.0456 9.75 15.8087 10.0661 16.3713 10.6287C16.9339 11.1913 17.25 11.9544 17.25 12.75V19.5C17.25 20.2956 16.9339 21.0587 16.3713 21.6213C15.8087 22.1839 15.0456 22.5 14.25 22.5H3.75C2.95435 22.5 2.19129 22.1839 1.62868 21.6213C1.06607 21.0587 0.75 20.2956 0.75 19.5V12.75C0.75 11.9544 1.06607 11.1913 1.62868 10.6287C2.19129 10.0661 2.95435 9.75 3.75 9.75H12.75V6.75C12.75 3.85 15.1 1.5 18 1.5Z",
3182
- fill: "currentColor"
3183
- }
3184
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3185
- "path",
3186
- {
3187
- d: "M13.5 10.5V6.75C13.5 5.55653 13.9741 4.41193 14.818 3.56802C15.6619 2.72411 16.8065 2.25 18 2.25C19.1935 2.25 20.3381 2.72411 21.182 3.56802C22.0259 4.41193 22.5 5.55653 22.5 6.75V10.5M3.75 21.75H14.25C14.8467 21.75 15.419 21.5129 15.841 21.091C16.2629 20.669 16.5 20.0967 16.5 19.5V12.75C16.5 12.1533 16.2629 11.581 15.841 11.159C15.419 10.7371 14.8467 10.5 14.25 10.5H3.75C3.15326 10.5 2.58097 10.7371 2.15901 11.159C1.73705 11.581 1.5 12.1533 1.5 12.75V19.5C1.5 20.0967 1.73705 20.669 2.15901 21.091C2.58097 21.5129 3.15326 21.75 3.75 21.75Z",
3188
- stroke: "currentColor",
3189
- strokeLinecap: "round",
3190
- strokeLinejoin: "round"
3191
- }
3192
- )
3193
- }
3194
- );
3195
- },
3196
3180
  "pencil-square": ({ className, fill }) => {
3197
3181
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
3198
3182
  "svg",
@@ -5027,7 +5011,7 @@ function toVal(mix) {
5027
5011
  // src/components/tree/tree.tsx
5028
5012
  var import_jsx_runtime3 = require("react/jsx-runtime");
5029
5013
  var TreeNodeItem = (0, import_react.forwardRef)(
5030
- ({ node, depth, fileIcon, selectedId, classNames, onExpand }, ref) => {
5014
+ ({ node, depth, fileIcon, selectedName, classNames, onExpand }, ref) => {
5031
5015
  const [isOpen, setIsOpen] = (0, import_react.useState)(false);
5032
5016
  const [children, setChildren] = (0, import_react.useState)(node.children);
5033
5017
  const slots = (0, import_react.useMemo)(() => treeStyle(), []);
@@ -5073,7 +5057,7 @@ var TreeNodeItem = (0, import_react.forwardRef)(
5073
5057
  className: clsx(
5074
5058
  slots.node({ class: classNames == null ? void 0 : classNames.node }),
5075
5059
  slots.clickable({ class: classNames == null ? void 0 : classNames.clickable }),
5076
- selectedId == node.id ? "bg-neutral-soft" : ""
5060
+ selectedName == node.selectedName ? "bg-neutral-soft" : ""
5077
5061
  ),
5078
5062
  onClick: handleClick,
5079
5063
  onContextMenu: handleRightClick,
@@ -5098,7 +5082,7 @@ var TreeNodeItem = (0, import_react.forwardRef)(
5098
5082
  {
5099
5083
  node: child,
5100
5084
  depth: depth + 1,
5101
- selectedId,
5085
+ selectedName,
5102
5086
  classNames,
5103
5087
  fileIcon,
5104
5088
  onExpand
@@ -5111,7 +5095,7 @@ var TreeNodeItem = (0, import_react.forwardRef)(
5111
5095
  }
5112
5096
  );
5113
5097
  TreeNodeItem.displayName = "TreeNodeItem";
5114
- var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames, onExpand }) => {
5098
+ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedName, classNames, onExpand }) => {
5115
5099
  const slots = (0, import_react.useMemo)(() => treeStyle(), []);
5116
5100
  const handleClick = (e) => {
5117
5101
  var _a;
@@ -5148,7 +5132,7 @@ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames,
5148
5132
  depth: 1,
5149
5133
  classNames,
5150
5134
  fileIcon,
5151
- selectedId,
5135
+ selectedName,
5152
5136
  onExpand
5153
5137
  },
5154
5138
  node.id
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  Tree,
4
4
  tree_default
5
- } from "../../chunk-Y5QV7T6D.mjs";
5
+ } from "../../chunk-S5AVFWOR.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
- import "../../chunk-JP4TEWP7.mjs";
8
- import "../../chunk-RRONV7YA.mjs";
7
+ import "../../chunk-SCZB4QC7.mjs";
8
+ import "../../chunk-6XFKID3T.mjs";
9
9
  import "../../chunk-CDXBML6O.mjs";
10
10
  import "../../chunk-27Y6K5NK.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
package/dist/index.js CHANGED
@@ -2239,6 +2239,48 @@ var template = {
2239
2239
  }
2240
2240
  );
2241
2241
  },
2242
+ lock: ({ className }) => {
2243
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
2244
+ "svg",
2245
+ {
2246
+ width: "22",
2247
+ height: "22",
2248
+ viewBox: "0 0 22 22",
2249
+ fill: "none",
2250
+ xmlns: "http://www.w3.org/2000/svg",
2251
+ className,
2252
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
2253
+ "path",
2254
+ {
2255
+ "fill-rule": "evenodd",
2256
+ "clip-rule": "evenodd",
2257
+ d: "M11 2.8335C9.81858 2.8335 8.68555 3.2637 7.85016 4.02948C7.01477 4.79525 6.54545 5.83386 6.54545 6.91683V9.25016C5.87036 9.25016 5.22291 9.49599 4.74555 9.93358C4.26818 10.3712 4 10.9647 4 11.5835V16.8335C4 17.4523 4.26818 18.0458 4.74555 18.4834C5.22291 18.921 5.87036 19.1668 6.54545 19.1668H15.4545C16.1296 19.1668 16.7771 18.921 17.2545 18.4834C17.7318 18.0458 18 17.4523 18 16.8335V11.5835C18 10.9647 17.7318 10.3712 17.2545 9.93358C16.7771 9.49599 16.1296 9.25016 15.4545 9.25016V6.91683C15.4545 4.66127 13.4606 2.8335 11 2.8335ZM14.1818 9.25016V6.91683C14.1818 6.14328 13.8466 5.40142 13.2499 4.85443C12.6532 4.30745 11.8439 4.00016 11 4.00016C10.1561 4.00016 9.34682 4.30745 8.75011 4.85443C8.15341 5.40142 7.81818 6.14328 7.81818 6.91683V9.25016H14.1818Z",
2258
+ fill: "currentColor"
2259
+ }
2260
+ )
2261
+ }
2262
+ );
2263
+ },
2264
+ unlock: ({ className }) => {
2265
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
2266
+ "svg",
2267
+ {
2268
+ width: "22",
2269
+ height: "22",
2270
+ viewBox: "0 0 22 22",
2271
+ fill: "none",
2272
+ xmlns: "http://www.w3.org/2000/svg",
2273
+ className,
2274
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
2275
+ "path",
2276
+ {
2277
+ d: "M15.3557 2.8335C17.4609 2.8335 19.1668 4.66127 19.1668 6.91683V9.8335C19.1668 9.98821 19.1095 10.1366 19.0074 10.246C18.9053 10.3554 18.7668 10.4168 18.6224 10.4168C18.478 10.4168 18.3395 10.3554 18.2374 10.246C18.1353 10.1366 18.0779 9.98821 18.0779 9.8335V6.91683C18.0779 6.14328 17.7911 5.40142 17.2806 4.85443C16.7701 4.30745 16.0777 4.00016 15.3557 4.00016C14.6337 4.00016 13.9413 4.30745 13.4308 4.85443C12.9203 5.40142 12.6335 6.14328 12.6335 6.91683V9.25016C13.2111 9.25016 13.765 9.49599 14.1734 9.93358C14.5818 10.3712 14.8113 10.9647 14.8113 11.5835V16.8335C14.8113 17.4523 14.5818 18.0458 14.1734 18.4834C13.765 18.921 13.2111 19.1668 12.6335 19.1668H5.01127C4.43369 19.1668 3.87976 18.921 3.47135 18.4834C3.06294 18.0458 2.8335 17.4523 2.8335 16.8335V11.5835C2.8335 10.9647 3.06294 10.3712 3.47135 9.93358C3.87976 9.49599 4.43369 9.25016 5.01127 9.25016H11.5446V6.91683C11.5446 4.66127 13.2505 2.8335 15.3557 2.8335Z",
2278
+ fill: "currentColor"
2279
+ }
2280
+ )
2281
+ }
2282
+ );
2283
+ },
2242
2284
  // ----------------------------------- old ---------------------------------
2243
2285
  // ** Status **
2244
2286
  check: ({ className, fill }) => {
@@ -3829,64 +3871,6 @@ var template = {
3829
3871
  }
3830
3872
  );
3831
3873
  },
3832
- lock: ({ className, fill }) => {
3833
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3834
- "svg",
3835
- {
3836
- width: "24",
3837
- height: "24",
3838
- viewBox: "0 0 24 24",
3839
- fill: "none",
3840
- xmlns: "http://www.w3.org/2000/svg",
3841
- className,
3842
- children: fill ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3843
- "path",
3844
- {
3845
- fillRule: "evenodd",
3846
- clipRule: "evenodd",
3847
- d: "M12 1.5C10.6076 1.5 9.27225 2.05312 8.28769 3.03769C7.30312 4.02226 6.75 5.35761 6.75 6.75V9.75C5.95435 9.75 5.19129 10.0661 4.62868 10.6287C4.06607 11.1913 3.75 11.9544 3.75 12.75V19.5C3.75 20.2956 4.06607 21.0587 4.62868 21.6213C5.19129 22.1839 5.95435 22.5 6.75 22.5H17.25C18.0456 22.5 18.8087 22.1839 19.3713 21.6213C19.9339 21.0587 20.25 20.2956 20.25 19.5V12.75C20.25 11.9544 19.9339 11.1913 19.3713 10.6287C18.8087 10.0661 18.0456 9.75 17.25 9.75V6.75C17.25 3.85 14.9 1.5 12 1.5ZM15.75 9.75V6.75C15.75 5.75544 15.3549 4.80161 14.6517 4.09835C13.9484 3.39509 12.9946 3 12 3C11.0054 3 10.0516 3.39509 9.34835 4.09835C8.64509 4.80161 8.25 5.75544 8.25 6.75V9.75H15.75Z",
3848
- fill: "currentColor"
3849
- }
3850
- ) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3851
- "path",
3852
- {
3853
- d: "M16.5 10.5V6.75C16.5 5.55653 16.0259 4.41193 15.182 3.56802C14.3381 2.72411 13.1935 2.25 12 2.25C10.8065 2.25 9.66193 2.72411 8.81802 3.56802C7.97411 4.41193 7.5 5.55653 7.5 6.75V10.5M6.75 21.75H17.25C17.8467 21.75 18.419 21.5129 18.841 21.091C19.2629 20.669 19.5 20.0967 19.5 19.5V12.75C19.5 12.1533 19.2629 11.581 18.841 11.159C18.419 10.7371 17.8467 10.5 17.25 10.5H6.75C6.15326 10.5 5.58097 10.7371 5.15901 11.159C4.73705 11.581 4.5 12.1533 4.5 12.75V19.5C4.5 20.0967 4.73705 20.669 5.15901 21.091C5.58097 21.5129 6.15326 21.75 6.75 21.75Z",
3854
- stroke: "currentColor",
3855
- strokeLinecap: "round",
3856
- strokeLinejoin: "round"
3857
- }
3858
- )
3859
- }
3860
- );
3861
- },
3862
- unlock: ({ className, fill }) => {
3863
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3864
- "svg",
3865
- {
3866
- width: "24",
3867
- height: "24",
3868
- viewBox: "0 0 24 24",
3869
- fill: "none",
3870
- xmlns: "http://www.w3.org/2000/svg",
3871
- className,
3872
- children: fill ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3873
- "path",
3874
- {
3875
- d: "M18 1.5C20.9 1.5 23.25 3.85 23.25 6.75V10.5C23.25 10.6989 23.171 10.8897 23.0303 11.0303C22.8897 11.171 22.6989 11.25 22.5 11.25C22.3011 11.25 22.1103 11.171 21.9697 11.0303C21.829 10.8897 21.75 10.6989 21.75 10.5V6.75C21.75 5.75544 21.3549 4.80161 20.6517 4.09835C19.9484 3.39509 18.9946 3 18 3C17.0054 3 16.0516 3.39509 15.3483 4.09835C14.6451 4.80161 14.25 5.75544 14.25 6.75V9.75C15.0456 9.75 15.8087 10.0661 16.3713 10.6287C16.9339 11.1913 17.25 11.9544 17.25 12.75V19.5C17.25 20.2956 16.9339 21.0587 16.3713 21.6213C15.8087 22.1839 15.0456 22.5 14.25 22.5H3.75C2.95435 22.5 2.19129 22.1839 1.62868 21.6213C1.06607 21.0587 0.75 20.2956 0.75 19.5V12.75C0.75 11.9544 1.06607 11.1913 1.62868 10.6287C2.19129 10.0661 2.95435 9.75 3.75 9.75H12.75V6.75C12.75 3.85 15.1 1.5 18 1.5Z",
3876
- fill: "currentColor"
3877
- }
3878
- ) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3879
- "path",
3880
- {
3881
- d: "M13.5 10.5V6.75C13.5 5.55653 13.9741 4.41193 14.818 3.56802C15.6619 2.72411 16.8065 2.25 18 2.25C19.1935 2.25 20.3381 2.72411 21.182 3.56802C22.0259 4.41193 22.5 5.55653 22.5 6.75V10.5M3.75 21.75H14.25C14.8467 21.75 15.419 21.5129 15.841 21.091C16.2629 20.669 16.5 20.0967 16.5 19.5V12.75C16.5 12.1533 16.2629 11.581 15.841 11.159C15.419 10.7371 14.8467 10.5 14.25 10.5H3.75C3.15326 10.5 2.58097 10.7371 2.15901 11.159C1.73705 11.581 1.5 12.1533 1.5 12.75V19.5C1.5 20.0967 1.73705 20.669 2.15901 21.091C2.58097 21.5129 3.15326 21.75 3.75 21.75Z",
3882
- stroke: "currentColor",
3883
- strokeLinecap: "round",
3884
- strokeLinejoin: "round"
3885
- }
3886
- )
3887
- }
3888
- );
3889
- },
3890
3874
  "pencil-square": ({ className, fill }) => {
3891
3875
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3892
3876
  "svg",
@@ -11549,7 +11533,7 @@ var dateTimePickerStyle = tv({
11549
11533
  var import_react35 = require("react");
11550
11534
  var import_jsx_runtime38 = require("react/jsx-runtime");
11551
11535
  var TreeNodeItem = (0, import_react35.forwardRef)(
11552
- ({ node, depth, fileIcon, selectedId, classNames, onExpand }, ref) => {
11536
+ ({ node, depth, fileIcon, selectedName, classNames, onExpand }, ref) => {
11553
11537
  const [isOpen, setIsOpen] = (0, import_react35.useState)(false);
11554
11538
  const [children, setChildren] = (0, import_react35.useState)(node.children);
11555
11539
  const slots = (0, import_react35.useMemo)(() => treeStyle(), []);
@@ -11595,7 +11579,7 @@ var TreeNodeItem = (0, import_react35.forwardRef)(
11595
11579
  className: clsx(
11596
11580
  slots.node({ class: classNames == null ? void 0 : classNames.node }),
11597
11581
  slots.clickable({ class: classNames == null ? void 0 : classNames.clickable }),
11598
- selectedId == node.id ? "bg-neutral-soft" : ""
11582
+ selectedName == node.selectedName ? "bg-neutral-soft" : ""
11599
11583
  ),
11600
11584
  onClick: handleClick,
11601
11585
  onContextMenu: handleRightClick,
@@ -11620,7 +11604,7 @@ var TreeNodeItem = (0, import_react35.forwardRef)(
11620
11604
  {
11621
11605
  node: child,
11622
11606
  depth: depth + 1,
11623
- selectedId,
11607
+ selectedName,
11624
11608
  classNames,
11625
11609
  fileIcon,
11626
11610
  onExpand
@@ -11633,7 +11617,7 @@ var TreeNodeItem = (0, import_react35.forwardRef)(
11633
11617
  }
11634
11618
  );
11635
11619
  TreeNodeItem.displayName = "TreeNodeItem";
11636
- var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames, onExpand }) => {
11620
+ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedName, classNames, onExpand }) => {
11637
11621
  const slots = (0, import_react35.useMemo)(() => treeStyle(), []);
11638
11622
  const handleClick = (e) => {
11639
11623
  var _a;
@@ -11670,7 +11654,7 @@ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames,
11670
11654
  depth: 1,
11671
11655
  classNames,
11672
11656
  fileIcon,
11673
- selectedId,
11657
+ selectedName,
11674
11658
  onExpand
11675
11659
  },
11676
11660
  node.id