@deepnoid/ui 0.1.27 → 0.1.29

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 (131) hide show
  1. package/.turbo/turbo-build.log +174 -164
  2. package/dist/{chunk-UNH3BCGN.mjs → chunk-26MNALVL.mjs} +1 -1
  3. package/dist/{chunk-3IU2RPSM.mjs → chunk-2SDYFOZL.mjs} +46 -35
  4. package/dist/{chunk-HWL7TPUN.mjs → chunk-2TKEWFGH.mjs} +1 -1
  5. package/dist/chunk-3KVZDFMV.mjs +132 -0
  6. package/dist/{chunk-PMMTMYRI.mjs → chunk-6K3E5BVO.mjs} +7 -7
  7. package/dist/{chunk-BQUZRVYW.mjs → chunk-7J3KVOTS.mjs} +7 -7
  8. package/dist/{chunk-OUAKGMDW.mjs → chunk-7W2ZI2DD.mjs} +4 -4
  9. package/dist/{chunk-XRC5OUYQ.mjs → chunk-A5KQHWS3.mjs} +1 -1
  10. package/dist/{chunk-YBDA3WQP.mjs → chunk-BB7MFKNQ.mjs} +1 -1
  11. package/dist/{chunk-SCFTSNCK.mjs → chunk-ECMBAKSJ.mjs} +6 -6
  12. package/dist/{chunk-GRA2LU42.mjs → chunk-EHRFXDSN.mjs} +6 -5
  13. package/dist/{chunk-IRAHS4WS.mjs → chunk-III2QUWF.mjs} +2 -2
  14. package/dist/{chunk-E4UUZOR4.mjs → chunk-KLUC2BV6.mjs} +4 -4
  15. package/dist/{chunk-C7OF5HJF.mjs → chunk-KXA73VTJ.mjs} +5 -5
  16. package/dist/{chunk-B3DFSXGC.mjs → chunk-LR3SWRB4.mjs} +6 -6
  17. package/dist/{chunk-DLQFMOBN.mjs → chunk-QJJKJYNR.mjs} +4 -4
  18. package/dist/{chunk-XA6PVFTW.mjs → chunk-RCJOJPRS.mjs} +6 -6
  19. package/dist/chunk-RLXOHILK.mjs +1 -0
  20. package/dist/{chunk-XQGD4ZIX.mjs → chunk-SP3JVQY3.mjs} +1 -1
  21. package/dist/{chunk-QY7LYAXT.mjs → chunk-W45H2ZMW.mjs} +5 -5
  22. package/dist/{chunk-PX4PFLJ3.mjs → chunk-X4F7JYBA.mjs} +18 -33
  23. package/dist/{chunk-Q72LZAPG.mjs → chunk-X6D7C7QZ.mjs} +4 -4
  24. package/dist/{chunk-6HX3PPL6.mjs → chunk-Y6XQTWB5.mjs} +4 -4
  25. package/dist/components/avatar/avatar.js +46 -35
  26. package/dist/components/avatar/avatar.mjs +2 -2
  27. package/dist/components/avatar/index.js +46 -35
  28. package/dist/components/avatar/index.mjs +2 -2
  29. package/dist/components/backdrop/backdrop.mjs +2 -2
  30. package/dist/components/backdrop/index.mjs +2 -2
  31. package/dist/components/breadcrumb/breadcrumb.js +46 -35
  32. package/dist/components/breadcrumb/breadcrumb.mjs +8 -8
  33. package/dist/components/breadcrumb/index.js +46 -35
  34. package/dist/components/breadcrumb/index.mjs +8 -8
  35. package/dist/components/button/button.js +46 -35
  36. package/dist/components/button/button.mjs +5 -5
  37. package/dist/components/button/icon-button.js +46 -35
  38. package/dist/components/button/icon-button.mjs +5 -5
  39. package/dist/components/button/index.js +46 -35
  40. package/dist/components/button/index.mjs +7 -7
  41. package/dist/components/button/text-button.mjs +2 -2
  42. package/dist/components/checkbox/checkbox.mjs +2 -2
  43. package/dist/components/checkbox/index.mjs +2 -2
  44. package/dist/components/chip/chip.js +46 -35
  45. package/dist/components/chip/chip.mjs +4 -4
  46. package/dist/components/chip/index.js +46 -35
  47. package/dist/components/chip/index.mjs +4 -4
  48. package/dist/components/dateTimePicker/calendar.js +46 -35
  49. package/dist/components/dateTimePicker/calendar.mjs +4 -4
  50. package/dist/components/dateTimePicker/dateTimePicker.js +46 -35
  51. package/dist/components/dateTimePicker/dateTimePicker.mjs +9 -9
  52. package/dist/components/dateTimePicker/index.js +46 -35
  53. package/dist/components/dateTimePicker/index.mjs +9 -9
  54. package/dist/components/dateTimePicker/timePicker.js +46 -35
  55. package/dist/components/dateTimePicker/timePicker.mjs +7 -7
  56. package/dist/components/fileUpload/fileUpload.d.mts +92 -0
  57. package/dist/components/fileUpload/fileUpload.d.ts +92 -0
  58. package/dist/components/fileUpload/fileUpload.js +5648 -0
  59. package/dist/components/fileUpload/fileUpload.mjs +28 -0
  60. package/dist/components/fileUpload/index.d.mts +5 -0
  61. package/dist/components/fileUpload/index.d.ts +5 -0
  62. package/dist/components/fileUpload/index.js +5647 -0
  63. package/dist/components/fileUpload/index.mjs +25 -0
  64. package/dist/components/icon/Icon.d.mts +9 -5
  65. package/dist/components/icon/Icon.d.ts +9 -5
  66. package/dist/components/icon/Icon.js +46 -35
  67. package/dist/components/icon/Icon.mjs +2 -2
  68. package/dist/components/icon/index.js +46 -35
  69. package/dist/components/icon/index.mjs +2 -2
  70. package/dist/components/icon/template.d.mts +3 -2
  71. package/dist/components/icon/template.d.ts +3 -2
  72. package/dist/components/icon/template.js +46 -35
  73. package/dist/components/icon/template.mjs +1 -1
  74. package/dist/components/input/index.js +48 -36
  75. package/dist/components/input/index.mjs +4 -4
  76. package/dist/components/input/input.js +48 -36
  77. package/dist/components/input/input.mjs +4 -4
  78. package/dist/components/list/index.js +46 -35
  79. package/dist/components/list/index.mjs +8 -8
  80. package/dist/components/list/list.mjs +2 -2
  81. package/dist/components/list/listItem.js +46 -35
  82. package/dist/components/list/listItem.mjs +5 -5
  83. package/dist/components/modal/index.js +46 -35
  84. package/dist/components/modal/index.mjs +9 -9
  85. package/dist/components/modal/modal.js +46 -35
  86. package/dist/components/modal/modal.mjs +9 -9
  87. package/dist/components/pagination/index.js +48 -36
  88. package/dist/components/pagination/index.mjs +5 -5
  89. package/dist/components/pagination/pagination.js +48 -36
  90. package/dist/components/pagination/pagination.mjs +5 -5
  91. package/dist/components/radio/index.mjs +2 -2
  92. package/dist/components/radio/radio.mjs +2 -2
  93. package/dist/components/ripple/index.mjs +3 -3
  94. package/dist/components/select/index.js +46 -35
  95. package/dist/components/select/index.mjs +4 -4
  96. package/dist/components/select/select.js +46 -35
  97. package/dist/components/select/select.mjs +4 -4
  98. package/dist/components/table/index.js +48 -36
  99. package/dist/components/table/index.mjs +12 -12
  100. package/dist/components/table/table-body.mjs +3 -3
  101. package/dist/components/table/table-head.mjs +3 -3
  102. package/dist/components/table/table.js +48 -36
  103. package/dist/components/table/table.mjs +9 -9
  104. package/dist/components/tabs/index.mjs +2 -2
  105. package/dist/components/tabs/tabs.mjs +2 -2
  106. package/dist/components/toast/index.js +46 -35
  107. package/dist/components/toast/index.mjs +5 -5
  108. package/dist/components/toast/toast.js +46 -35
  109. package/dist/components/toast/toast.mjs +4 -4
  110. package/dist/components/toast/use-toast.js +46 -35
  111. package/dist/components/toast/use-toast.mjs +5 -5
  112. package/dist/components/tooltip/index.mjs +2 -2
  113. package/dist/components/tooltip/tooltip.mjs +2 -2
  114. package/dist/components/tree/index.js +60 -64
  115. package/dist/components/tree/index.mjs +4 -4
  116. package/dist/components/tree/tree.d.mts +10 -5
  117. package/dist/components/tree/tree.d.ts +10 -5
  118. package/dist/components/tree/tree.js +60 -64
  119. package/dist/components/tree/tree.mjs +4 -4
  120. package/dist/index.d.mts +1 -0
  121. package/dist/index.d.ts +1 -0
  122. package/dist/index.js +180 -65
  123. package/dist/index.mjs +54 -49
  124. package/package.json +1 -1
  125. package/dist/{chunk-WFMFC7R6.mjs → chunk-2PKM7SLZ.mjs} +3 -3
  126. package/dist/{chunk-QIRL6HY6.mjs → chunk-33LANVZV.mjs} +3 -3
  127. package/dist/{chunk-Z2537DF6.mjs → chunk-IL5ENWCR.mjs} +3 -3
  128. package/dist/{chunk-LL6F3WDX.mjs → chunk-P5QCU457.mjs} +3 -3
  129. package/dist/{chunk-2YMAKIZ6.mjs → chunk-SSMMWMQC.mjs} +3 -3
  130. package/dist/{chunk-HIVPDIEP.mjs → chunk-UFVQPPPW.mjs} +3 -3
  131. package/dist/{chunk-D6QI3DJG.mjs → chunk-YLRYHUTW.mjs} +3 -3
@@ -902,22 +902,61 @@ var template = {
902
902
  }
903
903
  );
904
904
  },
905
- // ----------------------------------- old ---------------------------------
906
- // ** Status **
907
- plus: ({ className, fill }) => {
905
+ plus: ({ className }) => {
906
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
907
+ "svg",
908
+ {
909
+ xmlns: "http://www.w3.org/2000/svg",
910
+ width: "18",
911
+ height: "18",
912
+ viewBox: "0 0 18 18",
913
+ fill: "none",
914
+ className,
915
+ children: [
916
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4.5 9H13.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
917
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 13.5V4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
918
+ ]
919
+ }
920
+ );
921
+ },
922
+ minus: ({ className }) => {
908
923
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
909
924
  "svg",
910
925
  {
911
- width: "24",
912
- height: "24",
913
- viewBox: "0 0 24 24",
926
+ xmlns: "http://www.w3.org/2000/svg",
927
+ width: "18",
928
+ height: "18",
929
+ viewBox: "0 0 18 18",
914
930
  fill: "none",
931
+ className,
932
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4.5 9H13.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
933
+ }
934
+ );
935
+ },
936
+ pencil: ({ className }) => {
937
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
938
+ "svg",
939
+ {
915
940
  xmlns: "http://www.w3.org/2000/svg",
941
+ width: "18",
942
+ height: "18",
943
+ viewBox: "0 0 18 18",
944
+ fill: "none",
916
945
  className,
917
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 4.5V19.5M19.5 12H4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
946
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
947
+ "path",
948
+ {
949
+ d: "M12.6465 3.36525L13.9117 2.09925C14.1755 1.83549 14.5332 1.68732 14.9062 1.68732C15.2793 1.68732 15.637 1.83549 15.9008 2.09925C16.1645 2.36301 16.3127 2.72074 16.3127 3.09375C16.3127 3.46676 16.1645 3.82449 15.9008 4.08825L7.9365 12.0525C7.53999 12.4488 7.05102 12.74 6.51375 12.9L4.5 13.5L5.1 11.4863C5.25996 10.949 5.55123 10.46 5.9475 10.0635L12.6465 3.36525ZM12.6465 3.36525L14.625 5.34375M13.5 10.5V14.0625C13.5 14.5101 13.3222 14.9393 13.0057 15.2557C12.6893 15.5722 12.2601 15.75 11.8125 15.75H3.9375C3.48995 15.75 3.06072 15.5722 2.74426 15.2557C2.42779 14.9393 2.25 14.5101 2.25 14.0625V6.1875C2.25 5.73995 2.42779 5.31073 2.74426 4.99426C3.06072 4.67779 3.48995 4.5 3.9375 4.5H7.5",
950
+ stroke: "currentColor",
951
+ strokeLinecap: "round",
952
+ strokeLinejoin: "round"
953
+ }
954
+ )
918
955
  }
919
956
  );
920
957
  },
958
+ // ----------------------------------- old ---------------------------------
959
+ // ** Status **
921
960
  check: ({ className, fill }) => {
922
961
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
923
962
  "svg",
@@ -2564,34 +2603,6 @@ var template = {
2564
2603
  }
2565
2604
  );
2566
2605
  },
2567
- pencil: ({ className, fill }) => {
2568
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2569
- "svg",
2570
- {
2571
- width: "24",
2572
- height: "24",
2573
- viewBox: "0 0 24 24",
2574
- fill: "none",
2575
- xmlns: "http://www.w3.org/2000/svg",
2576
- className,
2577
- children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2578
- "path",
2579
- {
2580
- d: "M21.7313 2.26918C21.239 1.77699 20.5714 1.50049 19.8753 1.50049C19.1791 1.50049 18.5115 1.77699 18.0193 2.26918L16.8623 3.42618L20.5743 7.13818L21.7313 5.98118C22.2234 5.48891 22.4999 4.8213 22.4999 4.12518C22.4999 3.42906 22.2234 2.76145 21.7313 2.26918ZM19.5133 8.19918L15.8013 4.48718L3.65125 16.6372C3.03411 17.254 2.58043 18.015 2.33125 18.8512L1.53125 21.5362C1.49263 21.6657 1.48975 21.8033 1.52292 21.9344C1.55608 22.0655 1.62407 22.1852 1.71967 22.2808C1.81527 22.3764 1.93494 22.4443 2.06601 22.4775C2.19709 22.5107 2.33469 22.5078 2.46425 22.4692L5.14925 21.6692C5.98548 21.42 6.74642 20.9663 7.36325 20.3492L19.5133 8.19918Z",
2581
- fill: "currentColor"
2582
- }
2583
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2584
- "path",
2585
- {
2586
- d: "M16.862 4.487L18.549 2.799C18.9007 2.44733 19.3777 2.24976 19.875 2.24976C20.3723 2.24976 20.8493 2.44733 21.201 2.799C21.5527 3.15068 21.7502 3.62766 21.7502 4.125C21.7502 4.62235 21.5527 5.09933 21.201 5.451L6.832 19.82C6.30332 20.3484 5.65137 20.7367 4.935 20.95L2.25 21.75L3.05 19.065C3.26328 18.3486 3.65163 17.6967 4.18 17.168L16.863 4.487H16.862ZM16.862 4.487L19.5 7.125",
2587
- stroke: "currentColor",
2588
- strokeLinecap: "round",
2589
- strokeLinejoin: "round"
2590
- }
2591
- )
2592
- }
2593
- );
2594
- },
2595
2606
  "pencil-square": ({ className, fill }) => {
2596
2607
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2597
2608
  "svg",
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  ToastProvider,
4
4
  useToast
5
- } from "../../chunk-YBDA3WQP.mjs";
5
+ } from "../../chunk-BB7MFKNQ.mjs";
6
6
  import "../../chunk-ZOTHPHXA.mjs";
7
- import "../../chunk-OUAKGMDW.mjs";
7
+ import "../../chunk-7W2ZI2DD.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
- import "../../chunk-HWL7TPUN.mjs";
10
- import "../../chunk-3IU2RPSM.mjs";
11
- import "../../chunk-4ZJFD3L3.mjs";
9
+ import "../../chunk-2TKEWFGH.mjs";
10
+ import "../../chunk-2SDYFOZL.mjs";
12
11
  import "../../chunk-27Y6K5NK.mjs";
13
12
  import "../../chunk-E3G5QXSH.mjs";
13
+ import "../../chunk-4ZJFD3L3.mjs";
14
14
  import "../../chunk-AC6TWLRT.mjs";
15
15
  export {
16
16
  ToastProvider,
@@ -2,11 +2,11 @@
2
2
  import "../../chunk-HIE2YRGA.mjs";
3
3
  import {
4
4
  tooltip_default
5
- } from "../../chunk-Z2537DF6.mjs";
5
+ } from "../../chunk-IL5ENWCR.mjs";
6
6
  import "../../chunk-ZMOAFSYE.mjs";
7
7
  import "../../chunk-WSIADHVC.mjs";
8
- import "../../chunk-4ZJFD3L3.mjs";
9
8
  import "../../chunk-E3G5QXSH.mjs";
9
+ import "../../chunk-4ZJFD3L3.mjs";
10
10
  import "../../chunk-AC6TWLRT.mjs";
11
11
  export {
12
12
  tooltip_default as Tooltip
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  tooltip_default
4
- } from "../../chunk-Z2537DF6.mjs";
4
+ } from "../../chunk-IL5ENWCR.mjs";
5
5
  import "../../chunk-ZMOAFSYE.mjs";
6
6
  import "../../chunk-WSIADHVC.mjs";
7
- import "../../chunk-4ZJFD3L3.mjs";
8
7
  import "../../chunk-E3G5QXSH.mjs";
8
+ import "../../chunk-4ZJFD3L3.mjs";
9
9
  import "../../chunk-AC6TWLRT.mjs";
10
10
  export {
11
11
  tooltip_default as default
@@ -844,22 +844,61 @@ var template = {
844
844
  }
845
845
  );
846
846
  },
847
- // ----------------------------------- old ---------------------------------
848
- // ** Status **
849
- plus: ({ className, fill }) => {
847
+ plus: ({ className }) => {
848
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
849
+ "svg",
850
+ {
851
+ xmlns: "http://www.w3.org/2000/svg",
852
+ width: "18",
853
+ height: "18",
854
+ viewBox: "0 0 18 18",
855
+ fill: "none",
856
+ className,
857
+ children: [
858
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4.5 9H13.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
859
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 13.5V4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
860
+ ]
861
+ }
862
+ );
863
+ },
864
+ minus: ({ className }) => {
850
865
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
851
866
  "svg",
852
867
  {
853
- width: "24",
854
- height: "24",
855
- viewBox: "0 0 24 24",
868
+ xmlns: "http://www.w3.org/2000/svg",
869
+ width: "18",
870
+ height: "18",
871
+ viewBox: "0 0 18 18",
856
872
  fill: "none",
873
+ className,
874
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4.5 9H13.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
875
+ }
876
+ );
877
+ },
878
+ pencil: ({ className }) => {
879
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
880
+ "svg",
881
+ {
857
882
  xmlns: "http://www.w3.org/2000/svg",
883
+ width: "18",
884
+ height: "18",
885
+ viewBox: "0 0 18 18",
886
+ fill: "none",
858
887
  className,
859
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 4.5V19.5M19.5 12H4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
888
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
889
+ "path",
890
+ {
891
+ d: "M12.6465 3.36525L13.9117 2.09925C14.1755 1.83549 14.5332 1.68732 14.9062 1.68732C15.2793 1.68732 15.637 1.83549 15.9008 2.09925C16.1645 2.36301 16.3127 2.72074 16.3127 3.09375C16.3127 3.46676 16.1645 3.82449 15.9008 4.08825L7.9365 12.0525C7.53999 12.4488 7.05102 12.74 6.51375 12.9L4.5 13.5L5.1 11.4863C5.25996 10.949 5.55123 10.46 5.9475 10.0635L12.6465 3.36525ZM12.6465 3.36525L14.625 5.34375M13.5 10.5V14.0625C13.5 14.5101 13.3222 14.9393 13.0057 15.2557C12.6893 15.5722 12.2601 15.75 11.8125 15.75H3.9375C3.48995 15.75 3.06072 15.5722 2.74426 15.2557C2.42779 14.9393 2.25 14.5101 2.25 14.0625V6.1875C2.25 5.73995 2.42779 5.31073 2.74426 4.99426C3.06072 4.67779 3.48995 4.5 3.9375 4.5H7.5",
892
+ stroke: "currentColor",
893
+ strokeLinecap: "round",
894
+ strokeLinejoin: "round"
895
+ }
896
+ )
860
897
  }
861
898
  );
862
899
  },
900
+ // ----------------------------------- old ---------------------------------
901
+ // ** Status **
863
902
  check: ({ className, fill }) => {
864
903
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
865
904
  "svg",
@@ -2506,34 +2545,6 @@ var template = {
2506
2545
  }
2507
2546
  );
2508
2547
  },
2509
- pencil: ({ className, fill }) => {
2510
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2511
- "svg",
2512
- {
2513
- width: "24",
2514
- height: "24",
2515
- viewBox: "0 0 24 24",
2516
- fill: "none",
2517
- xmlns: "http://www.w3.org/2000/svg",
2518
- className,
2519
- children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2520
- "path",
2521
- {
2522
- d: "M21.7313 2.26918C21.239 1.77699 20.5714 1.50049 19.8753 1.50049C19.1791 1.50049 18.5115 1.77699 18.0193 2.26918L16.8623 3.42618L20.5743 7.13818L21.7313 5.98118C22.2234 5.48891 22.4999 4.8213 22.4999 4.12518C22.4999 3.42906 22.2234 2.76145 21.7313 2.26918ZM19.5133 8.19918L15.8013 4.48718L3.65125 16.6372C3.03411 17.254 2.58043 18.015 2.33125 18.8512L1.53125 21.5362C1.49263 21.6657 1.48975 21.8033 1.52292 21.9344C1.55608 22.0655 1.62407 22.1852 1.71967 22.2808C1.81527 22.3764 1.93494 22.4443 2.06601 22.4775C2.19709 22.5107 2.33469 22.5078 2.46425 22.4692L5.14925 21.6692C5.98548 21.42 6.74642 20.9663 7.36325 20.3492L19.5133 8.19918Z",
2523
- fill: "currentColor"
2524
- }
2525
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2526
- "path",
2527
- {
2528
- d: "M16.862 4.487L18.549 2.799C18.9007 2.44733 19.3777 2.24976 19.875 2.24976C20.3723 2.24976 20.8493 2.44733 21.201 2.799C21.5527 3.15068 21.7502 3.62766 21.7502 4.125C21.7502 4.62235 21.5527 5.09933 21.201 5.451L6.832 19.82C6.30332 20.3484 5.65137 20.7367 4.935 20.95L2.25 21.75L3.05 19.065C3.26328 18.3486 3.65163 17.6967 4.18 17.168L16.863 4.487H16.862ZM16.862 4.487L19.5 7.125",
2529
- stroke: "currentColor",
2530
- strokeLinecap: "round",
2531
- strokeLinejoin: "round"
2532
- }
2533
- )
2534
- }
2535
- );
2536
- },
2537
2548
  "pencil-square": ({ className, fill }) => {
2538
2549
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2539
2550
  "svg",
@@ -4339,7 +4350,7 @@ function toVal(mix) {
4339
4350
  // src/components/tree/tree.tsx
4340
4351
  var import_jsx_runtime3 = require("react/jsx-runtime");
4341
4352
  var TreeNodeItem = (0, import_react.forwardRef)(
4342
- ({ node, depth, fileIcon, isLoading, classNames, onExpand }, ref) => {
4353
+ ({ node, depth, fileIcon, selectedId, isLoading, classNames, onExpand }, ref) => {
4343
4354
  const [isOpen, setIsOpen] = (0, import_react.useState)(false);
4344
4355
  const [children, setChildren] = (0, import_react.useState)(node.children);
4345
4356
  const [isLoadingChildren, setIsLoadingChildren] = (0, import_react.useState)(false);
@@ -4363,10 +4374,10 @@ var TreeNodeItem = (0, import_react.forwardRef)(
4363
4374
  }
4364
4375
  setIsOpen((prev) => !prev);
4365
4376
  }, [isOpen, children, onExpand, node]);
4366
- const handleClick = () => {
4377
+ const handleClick = (e) => {
4367
4378
  var _a;
4368
4379
  toggleOpen();
4369
- (_a = node.onClick) == null ? void 0 : _a.call(node);
4380
+ (_a = node.onClick) == null ? void 0 : _a.call(node, e);
4370
4381
  };
4371
4382
  const handleRightClick = (e) => {
4372
4383
  var _a;
@@ -4387,7 +4398,7 @@ var TreeNodeItem = (0, import_react.forwardRef)(
4387
4398
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
4388
4399
  "div",
4389
4400
  {
4390
- className: slots.group({ class: classNames == null ? void 0 : classNames.group }),
4401
+ className: clsx(slots.node({ class: classNames == null ? void 0 : classNames.node }), selectedId == node.id ? "bg-neutral-soft" : ""),
4391
4402
  onClick: handleClick,
4392
4403
  onContextMenu: handleRightClick,
4393
4404
  children: [
@@ -4413,6 +4424,7 @@ var TreeNodeItem = (0, import_react.forwardRef)(
4413
4424
  {
4414
4425
  node: child,
4415
4426
  depth: depth + 1,
4427
+ selectedId,
4416
4428
  classNames,
4417
4429
  fileIcon,
4418
4430
  onExpand
@@ -4431,44 +4443,27 @@ var Tree = ({
4431
4443
  group,
4432
4444
  groupIcon,
4433
4445
  fileIcon,
4446
+ selectedId,
4434
4447
  isLoading = false,
4435
4448
  classNames,
4436
4449
  onExpand
4437
4450
  }) => {
4438
4451
  const slots = (0, import_react.useMemo)(() => treeStyle(), []);
4439
- const [isOpen, setIsOpen] = (0, import_react.useState)(true);
4440
- const handleToggle = () => {
4441
- var _a;
4442
- setIsOpen((prev) => !prev);
4443
- (_a = group.onClick) == null ? void 0 : _a.call(group);
4444
- };
4445
- const handleRightClick = (e) => {
4446
- var _a;
4447
- e.preventDefault();
4448
- (_a = group.onRightClick) == null ? void 0 : _a.call(group, e);
4449
- };
4450
4452
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
4451
4453
  headerContent && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: headerContent }),
4452
4454
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
4453
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
4454
- "div",
4455
- {
4456
- className: slots.group({ class: classNames == null ? void 0 : classNames.group }),
4457
- onClick: handleToggle,
4458
- onContextMenu: handleRightClick,
4459
- children: [
4460
- groupIcon,
4461
- group.label
4462
- ]
4463
- }
4464
- ),
4465
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: group.data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
4455
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.group({ class: classNames == null ? void 0 : classNames.group }), children: [
4456
+ groupIcon,
4457
+ group.label
4458
+ ] }),
4459
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: group.data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
4466
4460
  TreeNodeItem,
4467
4461
  {
4468
4462
  node,
4469
4463
  depth: 1,
4470
4464
  classNames,
4471
4465
  fileIcon,
4466
+ selectedId,
4472
4467
  isLoading,
4473
4468
  onExpand
4474
4469
  },
@@ -4483,7 +4478,8 @@ var treeStyle = tv({
4483
4478
  slots: {
4484
4479
  base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
4485
4480
  wrapper: ["flex", "flex-col", "gap-[5px]"],
4486
- group: [
4481
+ group: ["flex", "items-center", "gap-[5px]", "text-md", "font-bold", "text-body-foreground", "p-[5px]"],
4482
+ node: [
4487
4483
  "flex",
4488
4484
  "items-center",
4489
4485
  "gap-[5px]",
@@ -2,12 +2,12 @@
2
2
  import "../../chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
- } from "../../chunk-PX4PFLJ3.mjs";
5
+ } from "../../chunk-X4F7JYBA.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
- import "../../chunk-HWL7TPUN.mjs";
8
- import "../../chunk-3IU2RPSM.mjs";
9
- import "../../chunk-4ZJFD3L3.mjs";
7
+ import "../../chunk-2TKEWFGH.mjs";
8
+ import "../../chunk-2SDYFOZL.mjs";
10
9
  import "../../chunk-27Y6K5NK.mjs";
10
+ import "../../chunk-4ZJFD3L3.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
12
12
  export {
13
13
  tree_default as Tree
@@ -9,25 +9,24 @@ type TreeNode = {
9
9
  label: string;
10
10
  isLeaf?: boolean;
11
11
  children?: TreeNode[];
12
- onClick?: () => void;
13
- onRightClick?: (event: MouseEvent<HTMLSpanElement>) => void;
12
+ onClick?: (event: MouseEvent<HTMLDivElement>) => void;
13
+ onRightClick?: (event: MouseEvent<HTMLDivElement>) => void;
14
14
  };
15
15
  interface TreeProps {
16
16
  headerContent?: ReactNode;
17
17
  group: {
18
18
  label: string;
19
19
  data: TreeNode[];
20
- onClick?: () => void;
21
- onRightClick?: (event: MouseEvent<HTMLSpanElement>) => void;
22
20
  };
23
21
  groupIcon?: ReactNode;
24
22
  fileIcon?: ReactNode;
23
+ selectedId?: number | string;
25
24
  isLoading?: boolean;
26
25
  classNames?: SlotsToClasses<TreeSlots>;
27
26
  onExpand?: (node: TreeNode) => Promise<TreeNode[]>;
28
27
  }
29
28
  declare const Tree: {
30
- ({ headerContent, group, groupIcon, fileIcon, isLoading, classNames, onExpand, }: TreeProps): react_jsx_runtime.JSX.Element;
29
+ ({ headerContent, group, groupIcon, fileIcon, selectedId, isLoading, classNames, onExpand, }: TreeProps): react_jsx_runtime.JSX.Element;
31
30
  displayName: string;
32
31
  };
33
32
 
@@ -37,6 +36,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
37
36
  base?: tailwind_merge.ClassNameValue;
38
37
  group?: tailwind_merge.ClassNameValue;
39
38
  wrapper?: tailwind_merge.ClassNameValue;
39
+ node?: tailwind_merge.ClassNameValue;
40
40
  };
41
41
  };
42
42
  } | {
@@ -45,28 +45,33 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
45
45
  base?: tailwind_merge.ClassNameValue;
46
46
  group?: tailwind_merge.ClassNameValue;
47
47
  wrapper?: tailwind_merge.ClassNameValue;
48
+ node?: tailwind_merge.ClassNameValue;
48
49
  };
49
50
  };
50
51
  } | {}, {
51
52
  base: string[];
52
53
  wrapper: string[];
53
54
  group: string[];
55
+ node: string[];
54
56
  }, undefined, {
55
57
  [key: string]: {
56
58
  [key: string]: tailwind_merge.ClassNameValue | {
57
59
  base?: tailwind_merge.ClassNameValue;
58
60
  group?: tailwind_merge.ClassNameValue;
59
61
  wrapper?: tailwind_merge.ClassNameValue;
62
+ node?: tailwind_merge.ClassNameValue;
60
63
  };
61
64
  };
62
65
  } | {}, {
63
66
  base: string[];
64
67
  wrapper: string[];
65
68
  group: string[];
69
+ node: string[];
66
70
  }, tailwind_variants.TVReturnType<unknown, {
67
71
  base: string[];
68
72
  wrapper: string[];
69
73
  group: string[];
74
+ node: string[];
70
75
  }, undefined, unknown, unknown, undefined>>;
71
76
  type TreeSlots = keyof ReturnType<typeof treeStyle>;
72
77
 
@@ -9,25 +9,24 @@ type TreeNode = {
9
9
  label: string;
10
10
  isLeaf?: boolean;
11
11
  children?: TreeNode[];
12
- onClick?: () => void;
13
- onRightClick?: (event: MouseEvent<HTMLSpanElement>) => void;
12
+ onClick?: (event: MouseEvent<HTMLDivElement>) => void;
13
+ onRightClick?: (event: MouseEvent<HTMLDivElement>) => void;
14
14
  };
15
15
  interface TreeProps {
16
16
  headerContent?: ReactNode;
17
17
  group: {
18
18
  label: string;
19
19
  data: TreeNode[];
20
- onClick?: () => void;
21
- onRightClick?: (event: MouseEvent<HTMLSpanElement>) => void;
22
20
  };
23
21
  groupIcon?: ReactNode;
24
22
  fileIcon?: ReactNode;
23
+ selectedId?: number | string;
25
24
  isLoading?: boolean;
26
25
  classNames?: SlotsToClasses<TreeSlots>;
27
26
  onExpand?: (node: TreeNode) => Promise<TreeNode[]>;
28
27
  }
29
28
  declare const Tree: {
30
- ({ headerContent, group, groupIcon, fileIcon, isLoading, classNames, onExpand, }: TreeProps): react_jsx_runtime.JSX.Element;
29
+ ({ headerContent, group, groupIcon, fileIcon, selectedId, isLoading, classNames, onExpand, }: TreeProps): react_jsx_runtime.JSX.Element;
31
30
  displayName: string;
32
31
  };
33
32
 
@@ -37,6 +36,7 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
37
36
  base?: tailwind_merge.ClassNameValue;
38
37
  group?: tailwind_merge.ClassNameValue;
39
38
  wrapper?: tailwind_merge.ClassNameValue;
39
+ node?: tailwind_merge.ClassNameValue;
40
40
  };
41
41
  };
42
42
  } | {
@@ -45,28 +45,33 @@ declare const treeStyle: tailwind_variants.TVReturnType<{
45
45
  base?: tailwind_merge.ClassNameValue;
46
46
  group?: tailwind_merge.ClassNameValue;
47
47
  wrapper?: tailwind_merge.ClassNameValue;
48
+ node?: tailwind_merge.ClassNameValue;
48
49
  };
49
50
  };
50
51
  } | {}, {
51
52
  base: string[];
52
53
  wrapper: string[];
53
54
  group: string[];
55
+ node: string[];
54
56
  }, undefined, {
55
57
  [key: string]: {
56
58
  [key: string]: tailwind_merge.ClassNameValue | {
57
59
  base?: tailwind_merge.ClassNameValue;
58
60
  group?: tailwind_merge.ClassNameValue;
59
61
  wrapper?: tailwind_merge.ClassNameValue;
62
+ node?: tailwind_merge.ClassNameValue;
60
63
  };
61
64
  };
62
65
  } | {}, {
63
66
  base: string[];
64
67
  wrapper: string[];
65
68
  group: string[];
69
+ node: string[];
66
70
  }, tailwind_variants.TVReturnType<unknown, {
67
71
  base: string[];
68
72
  wrapper: string[];
69
73
  group: string[];
74
+ node: string[];
70
75
  }, undefined, unknown, unknown, undefined>>;
71
76
  type TreeSlots = keyof ReturnType<typeof treeStyle>;
72
77