@deepnoid/ui 0.1.19 → 0.1.20

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 (136) hide show
  1. package/.turbo/turbo-build.log +199 -170
  2. package/dist/assets/images/cogwheel.d.mts +2 -0
  3. package/dist/assets/images/cogwheel.d.ts +2 -0
  4. package/dist/assets/images/cogwheel.js +4 -0
  5. package/dist/assets/images/cogwheel.mjs +8 -0
  6. package/dist/assets/images/folder.d.mts +2 -0
  7. package/dist/assets/images/folder.d.ts +2 -0
  8. package/dist/assets/images/folder.js +4 -0
  9. package/dist/assets/images/folder.mjs +8 -0
  10. package/dist/chunk-3BKCODIL.mjs +49 -0
  11. package/dist/{chunk-A7OXEUCC.mjs → chunk-3IU2RPSM.mjs} +75 -9
  12. package/dist/{chunk-BFM3LPBK.mjs → chunk-6HX3PPL6.mjs} +1 -1
  13. package/dist/{chunk-RPDPB4JP.mjs → chunk-6KXBXGYR.mjs} +3 -3
  14. package/dist/chunk-7USF56CT.mjs +8 -0
  15. package/dist/chunk-BPVRXFIC.mjs +82 -0
  16. package/dist/{chunk-MJT6ZW4C.mjs → chunk-BXXAMH3R.mjs} +4 -4
  17. package/dist/{chunk-UHFJ7ZFM.mjs → chunk-EGHTZLZJ.mjs} +2 -2
  18. package/dist/{chunk-QIDZXCYP.mjs → chunk-EYVRTVRM.mjs} +3 -3
  19. package/dist/{chunk-DADMVOYI.mjs → chunk-HWL7TPUN.mjs} +1 -1
  20. package/dist/chunk-IZM66FHP.mjs +8 -0
  21. package/dist/{chunk-7TXQPX4O.mjs → chunk-JOCMCOEK.mjs} +2 -2
  22. package/dist/{chunk-3TJAGKKY.mjs → chunk-LNYMVBV5.mjs} +1 -1
  23. package/dist/chunk-MBLZYQCN.mjs +1 -0
  24. package/dist/{chunk-P6NVCCBZ.mjs → chunk-OF3X4BXG.mjs} +1 -1
  25. package/dist/chunk-OUAKGMDW.mjs +168 -0
  26. package/dist/{chunk-AG7AWQKH.mjs → chunk-OWG4RL2T.mjs} +3 -3
  27. package/dist/{chunk-7A5M7DRD.mjs → chunk-PNRS23HE.mjs} +4 -4
  28. package/dist/{chunk-FONJYZKH.mjs → chunk-PZIVMTKX.mjs} +4 -4
  29. package/dist/{chunk-5ANQDLRS.mjs → chunk-Q72LZAPG.mjs} +1 -1
  30. package/dist/{chunk-K7Z6PVXE.mjs → chunk-VQROXH43.mjs} +4 -4
  31. package/dist/{chunk-UYPVP36M.mjs → chunk-XQGD4ZIX.mjs} +1 -1
  32. package/dist/chunk-YBDA3WQP.mjs +71 -0
  33. package/dist/chunk-ZUSUVPYV.mjs +135 -0
  34. package/dist/cogwheel-U2B3CWEL.png +0 -0
  35. package/dist/components/avatar/avatar.js +75 -9
  36. package/dist/components/avatar/avatar.mjs +2 -2
  37. package/dist/components/avatar/index.js +75 -9
  38. package/dist/components/avatar/index.mjs +2 -2
  39. package/dist/components/breadcrumb/breadcrumb.js +75 -9
  40. package/dist/components/breadcrumb/breadcrumb.mjs +7 -7
  41. package/dist/components/breadcrumb/index.js +75 -9
  42. package/dist/components/breadcrumb/index.mjs +7 -7
  43. package/dist/components/button/button.js +75 -9
  44. package/dist/components/button/button.mjs +4 -4
  45. package/dist/components/button/icon-button.js +75 -9
  46. package/dist/components/button/icon-button.mjs +4 -4
  47. package/dist/components/button/index.js +75 -9
  48. package/dist/components/button/index.mjs +6 -6
  49. package/dist/components/chip/chip.js +75 -9
  50. package/dist/components/chip/chip.mjs +3 -3
  51. package/dist/components/chip/index.js +75 -9
  52. package/dist/components/chip/index.mjs +3 -3
  53. package/dist/components/dateTimePicker/calendar.js +75 -9
  54. package/dist/components/dateTimePicker/calendar.mjs +3 -3
  55. package/dist/components/dateTimePicker/dateTimePicker.js +75 -9
  56. package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
  57. package/dist/components/dateTimePicker/index.js +75 -9
  58. package/dist/components/dateTimePicker/index.mjs +7 -7
  59. package/dist/components/dateTimePicker/timePicker.js +75 -9
  60. package/dist/components/dateTimePicker/timePicker.mjs +5 -5
  61. package/dist/components/icon/Icon.d.mts +6 -2
  62. package/dist/components/icon/Icon.d.ts +6 -2
  63. package/dist/components/icon/Icon.js +75 -9
  64. package/dist/components/icon/Icon.mjs +2 -2
  65. package/dist/components/icon/index.js +75 -9
  66. package/dist/components/icon/index.mjs +2 -2
  67. package/dist/components/icon/template.d.mts +2 -1
  68. package/dist/components/icon/template.d.ts +2 -1
  69. package/dist/components/icon/template.js +75 -9
  70. package/dist/components/icon/template.mjs +1 -1
  71. package/dist/components/input/index.js +76 -10
  72. package/dist/components/input/index.mjs +3 -3
  73. package/dist/components/input/input.js +76 -10
  74. package/dist/components/input/input.mjs +3 -3
  75. package/dist/components/list/index.js +75 -9
  76. package/dist/components/list/index.mjs +6 -6
  77. package/dist/components/list/listItem.js +75 -9
  78. package/dist/components/list/listItem.mjs +4 -4
  79. package/dist/components/modal/index.d.mts +0 -3
  80. package/dist/components/modal/index.d.ts +0 -3
  81. package/dist/components/modal/index.js +205 -158
  82. package/dist/components/modal/index.mjs +9 -7
  83. package/dist/components/modal/modal.d.mts +43 -105
  84. package/dist/components/modal/modal.d.ts +43 -105
  85. package/dist/components/modal/modal.js +206 -164
  86. package/dist/components/modal/modal.mjs +10 -10
  87. package/dist/components/pagination/index.js +76 -10
  88. package/dist/components/pagination/index.mjs +4 -4
  89. package/dist/components/pagination/pagination.js +76 -10
  90. package/dist/components/pagination/pagination.mjs +4 -4
  91. package/dist/components/ripple/index.mjs +3 -3
  92. package/dist/components/select/index.js +75 -9
  93. package/dist/components/select/index.mjs +4 -4
  94. package/dist/components/select/option.js +75 -9
  95. package/dist/components/select/option.mjs +3 -3
  96. package/dist/components/select/select.js +75 -9
  97. package/dist/components/select/select.mjs +4 -4
  98. package/dist/components/table/form-table.d.mts +52 -0
  99. package/dist/components/table/form-table.d.ts +52 -0
  100. package/dist/components/table/form-table.js +365 -0
  101. package/dist/components/table/form-table.mjs +9 -0
  102. package/dist/components/table/index.d.mts +2 -0
  103. package/dist/components/table/index.d.ts +2 -0
  104. package/dist/components/table/index.js +119 -10
  105. package/dist/components/table/index.mjs +11 -7
  106. package/dist/components/table/table.js +76 -10
  107. package/dist/components/table/table.mjs +6 -6
  108. package/dist/components/toast/index.js +239 -97
  109. package/dist/components/toast/index.mjs +5 -4
  110. package/dist/components/toast/toast.d.mts +40 -81
  111. package/dist/components/toast/toast.d.ts +40 -81
  112. package/dist/components/toast/toast.js +210 -56
  113. package/dist/components/toast/toast.mjs +4 -3
  114. package/dist/components/toast/use-toast.d.mts +6 -10
  115. package/dist/components/toast/use-toast.d.ts +6 -10
  116. package/dist/components/toast/use-toast.js +239 -97
  117. package/dist/components/toast/use-toast.mjs +5 -4
  118. package/dist/components/tree/index.d.mts +2 -0
  119. package/dist/components/tree/index.d.ts +2 -0
  120. package/dist/components/tree/index.js +4371 -0
  121. package/dist/components/tree/index.mjs +15 -0
  122. package/dist/components/tree/tree.d.mts +20 -0
  123. package/dist/components/tree/tree.d.ts +20 -0
  124. package/dist/components/tree/tree.js +4365 -0
  125. package/dist/components/tree/tree.mjs +14 -0
  126. package/dist/folder-RO3QTLGS.svg +9 -0
  127. package/dist/index.d.mts +3 -0
  128. package/dist/index.d.ts +3 -0
  129. package/dist/index.js +574 -434
  130. package/dist/index.mjs +63 -52
  131. package/package.json +1 -1
  132. package/types/images.d.ts +14 -0
  133. package/dist/chunk-5OBP42D6.mjs +0 -117
  134. package/dist/chunk-HDNQOLUJ.mjs +0 -83
  135. package/dist/chunk-RXIFDECK.mjs +0 -213
  136. /package/dist/{chunk-2UUH2MBF.mjs → chunk-DX3KXNP6.mjs} +0 -0
package/dist/index.js CHANGED
@@ -110,6 +110,7 @@ __export(index_exports, {
110
110
  CheckBox: () => checkbox_default,
111
111
  Chip: () => chip_default,
112
112
  DateTimePicker: () => dateTimePicker_default,
113
+ FormTable: () => form_table_default,
113
114
  Icon: () => Icon_default,
114
115
  IconButton: () => icon_button_default,
115
116
  Input: () => input_default,
@@ -128,6 +129,7 @@ __export(index_exports, {
128
129
  Toast: () => toast_default,
129
130
  ToastProvider: () => ToastProvider,
130
131
  Tooltip: () => tooltip_default,
132
+ Tree: () => tree_default,
131
133
  deepnoidUi: () => deepnoidUi,
132
134
  iconTemplate: () => iconTemplate,
133
135
  tv: () => tv,
@@ -576,23 +578,89 @@ var template = {
576
578
  }
577
579
  );
578
580
  },
579
- // ----------------------------------- old ---------------------------------
580
- // ** Status **
581
- plus: ({ className, fill }) => {
581
+ exclamation: ({ className, fill }) => {
582
582
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
583
583
  "svg",
584
584
  {
585
- width: "24",
586
- height: "24",
587
- viewBox: "0 0 24 24",
585
+ xmlns: "http://www.w3.org/2000/svg",
586
+ width: "18",
587
+ height: "18",
588
+ viewBox: "0 0 18 18",
588
589
  fill: "none",
590
+ className,
591
+ children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
592
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
593
+ "path",
594
+ {
595
+ d: "M11.264 2.37077C11.2832 2.37715 11.3024 2.38353 11.3223 2.3901C12.3182 2.72483 13.1824 3.30575 13.9306 4.03468C13.9575 4.06039 13.9843 4.08609 14.0119 4.11257C14.1806 4.27693 14.33 4.45208 14.4754 4.63713C14.4981 4.66509 14.5208 4.69305 14.5442 4.72185C15.0188 5.31801 15.3774 6.01161 15.6224 6.73137C15.6303 6.75453 15.6382 6.77768 15.6464 6.80155C16.1308 8.2413 16.1125 9.82918 15.6224 11.2641C15.6105 11.2995 15.6105 11.2995 15.5983 11.3356C15.3948 11.9315 15.1066 12.5059 14.7335 13.0141C14.7221 13.0297 14.7107 13.0453 14.6989 13.0614C14.313 13.5865 13.8736 14.0779 13.3571 14.4772C13.3155 14.5109 13.3155 14.5109 13.273 14.5454C12.6801 15.0224 11.982 15.3801 11.264 15.6247C11.2408 15.6326 11.2177 15.6406 11.1938 15.6487C9.43757 16.2402 7.50979 16.0678 5.85241 15.2592C4.96204 14.8102 4.13267 14.1489 3.52213 13.3583C3.49962 13.3305 3.47711 13.3028 3.45392 13.2742C2.32855 11.8738 1.85507 9.99621 2.03839 8.22438C2.17342 7.0638 2.58402 5.9339 3.26407 4.98139C3.27714 4.96288 3.29022 4.94436 3.30369 4.92529C3.51689 4.62523 3.75292 4.35545 4.00958 4.09206C4.03773 4.06274 4.06588 4.03342 4.09403 4.00409C4.26597 3.8279 4.44681 3.67012 4.6404 3.5183C4.6683 3.49563 4.69621 3.47296 4.72496 3.4496C6.54339 2.00006 9.08031 1.63201 11.264 2.37077Z",
596
+ fill: "currentColor"
597
+ }
598
+ ),
599
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
600
+ "path",
601
+ {
602
+ d: "M9.36648 5.85289C9.53634 5.9647 9.6533 6.12598 9.71812 6.32867C9.73452 6.40467 9.74201 6.47516 9.74238 6.55312C9.74254 6.57462 9.74269 6.59612 9.74284 6.61826C9.7429 6.64157 9.74296 6.66489 9.74302 6.68891C9.74315 6.71368 9.74329 6.73845 9.74344 6.76397C9.74385 6.84591 9.7441 6.92785 9.74431 7.00979C9.7444 7.03785 9.74448 7.06592 9.74457 7.09484C9.74497 7.22817 9.74528 7.3615 9.74545 7.49483C9.74568 7.66315 9.74639 7.83146 9.74732 7.99978C9.74787 8.11787 9.74805 8.23596 9.74812 8.35405C9.74823 8.41042 9.74847 8.46679 9.74886 8.52316C9.75351 9.23268 9.75351 9.23268 9.54833 9.48966C9.39246 9.65505 9.20768 9.73677 8.98973 9.75C8.78199 9.74035 8.59485 9.64627 8.44906 9.48814C8.28258 9.27909 8.24899 9.03597 8.25049 8.7678C8.25038 8.7429 8.25027 8.718 8.25015 8.69234C8.24987 8.61081 8.25006 8.5293 8.25027 8.44777C8.25023 8.39068 8.25017 8.33358 8.25009 8.27649C8.24999 8.15716 8.25013 8.03783 8.25043 7.9185C8.25079 7.76594 8.25058 7.6134 8.2502 7.46085C8.24997 7.34306 8.25004 7.22527 8.25021 7.10748C8.25025 7.05125 8.2502 6.99501 8.25005 6.93877C8.24989 6.86005 8.25014 6.78135 8.25049 6.70263C8.25036 6.67965 8.25023 6.65668 8.2501 6.63301C8.25225 6.37163 8.32078 6.1648 8.48128 5.96879C8.72644 5.71507 9.07274 5.68973 9.36648 5.85289Z",
603
+ fill: "white"
604
+ }
605
+ ),
606
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
607
+ "path",
608
+ {
609
+ d: "M9.34541 10.8369C9.52938 10.9471 9.67125 11.1068 9.73271 11.3148C9.77656 11.529 9.73613 11.7317 9.62145 11.916C9.49889 12.0867 9.3528 12.1846 9.14957 12.2412C8.92053 12.2704 8.73922 12.2283 8.55045 12.0972C8.38043 11.959 8.27865 11.7781 8.25072 11.5592C8.24266 11.3506 8.30179 11.162 8.43381 10.9998C8.68322 10.7451 9.02878 10.6749 9.34541 10.8369Z",
610
+ fill: "white"
611
+ }
612
+ )
613
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
614
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
615
+ "path",
616
+ {
617
+ d: "M5.03711 3.84082C6.60875 2.5881 8.77805 2.2038 10.7188 2.72754L11.1035 2.84473L11.1064 2.8457C11.125 2.85187 11.144 2.85694 11.1631 2.86328V2.86426C11.9606 3.13233 12.6739 3.57547 13.3125 4.14258L13.582 4.39258L13.585 4.39551L13.666 4.47363C13.7385 4.54442 13.8078 4.61844 13.876 4.69629L14.082 4.94629L14.0869 4.95215L14.1562 5.03711C14.5346 5.51326 14.8361 6.06221 15.0586 6.6416L15.1494 6.89258V6.89355L15.1738 6.96387C15.5931 8.21222 15.6047 9.58552 15.2295 10.8506L15.1494 11.1025L15.1484 11.1045C15.1368 11.1391 15.1363 11.1401 15.125 11.1738C14.9596 11.6581 14.7354 12.1232 14.4541 12.542L14.3301 12.7178L14.3291 12.7197C14.3181 12.7348 14.3072 12.7501 14.2959 12.7656C13.9281 13.2659 13.5205 13.7197 13.0518 14.082L13.3457 14.4629L13.0508 14.0811L13.042 14.0889L12.958 14.1572C12.4859 14.5367 11.9342 14.8378 11.3535 15.0605L11.1025 15.1514H11.1016C11.0793 15.159 11.0571 15.1669 11.0342 15.1748C9.51234 15.6873 7.84224 15.5817 6.36426 14.9443L6.07129 14.8096C5.3482 14.4439 4.67072 13.9288 4.1377 13.3203L3.91797 13.0527L3.91016 13.0439L3.84277 12.959H3.8418C2.81057 11.6744 2.36571 9.93549 2.53516 8.28223C2.64545 7.33424 2.95228 6.41319 3.44727 5.60938L3.6709 5.27148L3.67285 5.26953C3.6858 5.2512 3.69858 5.23275 3.71191 5.21387L3.71094 5.21289C3.85636 5.00834 4.01615 4.81758 4.18945 4.62891L4.36816 4.44141L4.37012 4.43848C4.39734 4.41013 4.42493 4.38187 4.45215 4.35352C4.52879 4.27498 4.60794 4.19996 4.69043 4.12695L4.94922 3.91211L4.95605 3.90625C4.98272 3.88459 5.00872 3.86211 5.03613 3.83984L5.03711 3.84082Z",
618
+ stroke: "currentColor"
619
+ }
620
+ ),
621
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
622
+ "path",
623
+ {
624
+ d: "M9.36648 5.85289C9.53634 5.9647 9.6533 6.12598 9.71812 6.32867C9.73452 6.40467 9.74201 6.47516 9.74238 6.55312C9.74254 6.57462 9.74269 6.59612 9.74284 6.61826C9.7429 6.64157 9.74296 6.66489 9.74302 6.68891C9.74315 6.71368 9.74329 6.73845 9.74344 6.76397C9.74385 6.84591 9.7441 6.92785 9.74431 7.00979C9.7444 7.03785 9.74448 7.06592 9.74457 7.09484C9.74497 7.22817 9.74528 7.3615 9.74545 7.49483C9.74568 7.66315 9.74639 7.83146 9.74732 7.99978C9.74787 8.11787 9.74805 8.23596 9.74812 8.35405C9.74823 8.41042 9.74847 8.46679 9.74886 8.52316C9.75351 9.23268 9.75351 9.23268 9.54833 9.48966C9.39246 9.65505 9.20768 9.73677 8.98973 9.75C8.78199 9.74035 8.59485 9.64627 8.44906 9.48814C8.28258 9.27909 8.24899 9.03597 8.25049 8.7678C8.25038 8.7429 8.25027 8.718 8.25015 8.69234C8.24987 8.61081 8.25006 8.5293 8.25027 8.44777C8.25023 8.39068 8.25017 8.33358 8.25009 8.27649C8.24999 8.15716 8.25013 8.03783 8.25043 7.9185C8.25079 7.76594 8.25058 7.6134 8.2502 7.46085C8.24997 7.34306 8.25004 7.22527 8.25021 7.10748C8.25025 7.05125 8.2502 6.99501 8.25005 6.93877C8.24989 6.86005 8.25014 6.78135 8.25049 6.70263C8.25036 6.67965 8.25023 6.65668 8.2501 6.63301C8.25225 6.37163 8.32078 6.1648 8.48128 5.96879C8.72644 5.71507 9.07274 5.68973 9.36648 5.85289Z",
625
+ fill: "currentColor"
626
+ }
627
+ ),
628
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
629
+ "path",
630
+ {
631
+ d: "M9.34541 10.8369C9.52938 10.9471 9.67125 11.1068 9.73271 11.3148C9.77656 11.529 9.73613 11.7317 9.62145 11.916C9.49889 12.0867 9.3528 12.1846 9.14957 12.2412C8.92053 12.2704 8.73922 12.2283 8.55045 12.0972C8.38043 11.959 8.27865 11.7781 8.25072 11.5592C8.24266 11.3506 8.30179 11.162 8.43381 10.9998C8.68322 10.7451 9.02878 10.6749 9.34541 10.8369Z",
632
+ fill: "currentColor"
633
+ }
634
+ )
635
+ ] })
636
+ }
637
+ );
638
+ },
639
+ close: ({ className }) => {
640
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
641
+ "svg",
642
+ {
589
643
  xmlns: "http://www.w3.org/2000/svg",
644
+ width: "27",
645
+ height: "27",
646
+ viewBox: "0 0 27 27",
647
+ fill: "none",
590
648
  className,
591
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 4.5V19.5M19.5 12H4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
649
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
650
+ "path",
651
+ {
652
+ fillRule: "evenodd",
653
+ clipRule: "evenodd",
654
+ d: "M6.24339 6.2645C6.39943 6.10887 6.61095 6.02146 6.83149 6.02146C7.05203 6.02146 7.26355 6.10887 7.41959 6.2645L13.4893 12.3255L19.5589 6.2645C19.6351 6.18285 19.727 6.11736 19.8291 6.07194C19.9312 6.02652 20.0414 6.0021 20.1531 6.00013C20.2648 5.99816 20.3758 6.01869 20.4795 6.06048C20.5831 6.10228 20.6772 6.16449 20.7562 6.2434C20.8353 6.32232 20.8976 6.41632 20.9394 6.51979C20.9813 6.62327 21.0018 6.73411 20.9999 6.84569C20.9979 6.95727 20.9734 7.06732 20.928 7.16926C20.8825 7.27119 20.8169 7.36294 20.7351 7.43902L14.6655 13.5L20.7351 19.561C20.8169 19.6371 20.8825 19.7288 20.928 19.8307C20.9734 19.9327 20.9979 20.0427 20.9999 20.1543C21.0018 20.2659 20.9813 20.3767 20.9394 20.4802C20.8976 20.5837 20.8353 20.6777 20.7562 20.7566C20.6772 20.8355 20.5831 20.8977 20.4795 20.9395C20.3758 20.9813 20.2648 21.0018 20.1531 20.9999C20.0414 20.9979 19.9312 20.9735 19.8291 20.9281C19.727 20.8826 19.6351 20.8172 19.5589 20.7355L13.4893 14.6745L7.41959 20.7355C7.26183 20.8823 7.05317 20.9622 6.83757 20.9584C6.62196 20.9546 6.41626 20.8674 6.26378 20.7151C6.1113 20.5629 6.02396 20.3575 6.02016 20.1422C6.01635 19.9269 6.09638 19.7185 6.24339 19.561L12.313 13.5L6.24339 7.43902C6.08754 7.2832 6 7.07198 6 6.85176C6 6.63154 6.08754 6.42032 6.24339 6.2645Z",
655
+ fill: "currentColor"
656
+ }
657
+ )
592
658
  }
593
659
  );
594
660
  },
595
- close: ({ className, fill }) => {
661
+ // ----------------------------------- old ---------------------------------
662
+ // ** Status **
663
+ plus: ({ className, fill }) => {
596
664
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
597
665
  "svg",
598
666
  {
@@ -602,7 +670,7 @@ var template = {
602
670
  fill: "none",
603
671
  xmlns: "http://www.w3.org/2000/svg",
604
672
  className,
605
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 18L18 6M6 6L18 18", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
673
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 4.5V19.5M19.5 12H4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
606
674
  }
607
675
  );
608
676
  },
@@ -5890,7 +5958,7 @@ var input_default = Input;
5890
5958
  var inputStyle = tv(
5891
5959
  {
5892
5960
  slots: {
5893
- base: ["group/input", "flex"],
5961
+ base: ["group/input", "flex select-none"],
5894
5962
  vertical: ["flex-col"],
5895
5963
  horizon: ["flex-row", "gap-0"],
5896
5964
  label: ["flex", "items-center", "font-bold", "text-body-foreground", "min-w-[80px]"],
@@ -7459,18 +7527,59 @@ var tableStyle = (0, import_tailwind_variants15.tv)({
7459
7527
  }
7460
7528
  });
7461
7529
 
7530
+ // src/components/table/form-table.tsx
7531
+ var import_react18 = require("react");
7532
+ var import_jsx_runtime20 = require("react/jsx-runtime");
7533
+ var DEFAULT_COLUMN_CLASSES = [
7534
+ "w-[120px] h-[50px] px-[10px] font-bold text-md text-body-foreground border-r border-neutral-light",
7535
+ "px-[10px]"
7536
+ ];
7537
+ var FormTableRow = ({ columns, columnClasses = [] }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tr", { className: "border-neutral-light border-b", children: columns.map((col, index) => {
7538
+ var _a;
7539
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: (_a = columnClasses[index]) != null ? _a : DEFAULT_COLUMN_CLASSES[index], children: col }, index);
7540
+ }) });
7541
+ var FormTable = (0, import_react18.forwardRef)(
7542
+ ({ rows, onSubmit, footer, classNames }, ref) => {
7543
+ const slots = (0, import_react18.useMemo)(() => formTableStyle(), []);
7544
+ const content = /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
7545
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tbody", { children: rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FormTableRow, { ...row }, i)) }) }),
7546
+ footer && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { children: footer })
7547
+ ] });
7548
+ if (onSubmit) {
7549
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
7550
+ "form",
7551
+ {
7552
+ ref,
7553
+ onSubmit,
7554
+ className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
7555
+ children: content
7556
+ }
7557
+ );
7558
+ }
7559
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: content });
7560
+ }
7561
+ );
7562
+ FormTable.displayName = "FormTable";
7563
+ var form_table_default = FormTable;
7564
+ var formTableStyle = tv({
7565
+ slots: {
7566
+ base: ["flex", "flex-col", "gap-[30px]"],
7567
+ table: ["w-full", "table-fixed", "border", "border-neutral-light"]
7568
+ }
7569
+ });
7570
+
7462
7571
  // src/components/select/select.tsx
7463
- var import_react19 = require("react");
7572
+ var import_react20 = require("react");
7464
7573
  var import_react_dom = require("react-dom");
7465
7574
 
7466
7575
  // src/components/select/useSelect.tsx
7467
- var import_react18 = require("react");
7576
+ var import_react19 = require("react");
7468
7577
  var useSelect = ({ options, defaultOption, onChange }) => {
7469
- const [selectedOption, setSelectedOption] = (0, import_react18.useState)(defaultOption);
7470
- const [targetRect, setTargetRect] = (0, import_react18.useState)(null);
7471
- const [optionWrapperHeight, setOptionWrapperHeight] = (0, import_react18.useState)(0);
7472
- const selectWrapperRef = (0, import_react18.useRef)(null);
7473
- const optionWrapperRef = (0, import_react18.useRef)(null);
7578
+ const [selectedOption, setSelectedOption] = (0, import_react19.useState)(defaultOption);
7579
+ const [targetRect, setTargetRect] = (0, import_react19.useState)(null);
7580
+ const [optionWrapperHeight, setOptionWrapperHeight] = (0, import_react19.useState)(0);
7581
+ const selectWrapperRef = (0, import_react19.useRef)(null);
7582
+ const optionWrapperRef = (0, import_react19.useRef)(null);
7474
7583
  const calculatePositionWithScroll = (targetRect2, optionWrapperHeight2) => {
7475
7584
  const scrollTop = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop;
7476
7585
  const scrollLeft = window.scrollX || document.documentElement.scrollLeft || document.body.scrollLeft;
@@ -7493,7 +7602,7 @@ var useSelect = ({ options, defaultOption, onChange }) => {
7493
7602
  setSelectedOption(option);
7494
7603
  handleToggleSelect();
7495
7604
  };
7496
- (0, import_react18.useEffect)(() => {
7605
+ (0, import_react19.useEffect)(() => {
7497
7606
  const onClickOutside = (e) => {
7498
7607
  if (optionWrapperRef.current && !optionWrapperRef.current.contains(e.target)) {
7499
7608
  setTargetRect(null);
@@ -7502,7 +7611,7 @@ var useSelect = ({ options, defaultOption, onChange }) => {
7502
7611
  window.addEventListener("mousedown", onClickOutside);
7503
7612
  return () => window.removeEventListener("mousedown", onClickOutside);
7504
7613
  }, []);
7505
- (0, import_react18.useEffect)(() => {
7614
+ (0, import_react19.useEffect)(() => {
7506
7615
  if (optionWrapperRef.current) {
7507
7616
  setOptionWrapperHeight(optionWrapperRef.current.getBoundingClientRect().height);
7508
7617
  }
@@ -7520,10 +7629,10 @@ var useSelect = ({ options, defaultOption, onChange }) => {
7520
7629
  };
7521
7630
 
7522
7631
  // src/components/select/option.tsx
7523
- var import_jsx_runtime20 = require("react/jsx-runtime");
7632
+ var import_jsx_runtime21 = require("react/jsx-runtime");
7524
7633
  var Option = (props) => {
7525
7634
  const { base, option, icon } = optionStyle(props);
7526
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
7635
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
7527
7636
  "div",
7528
7637
  {
7529
7638
  title: props.option.value,
@@ -7533,8 +7642,8 @@ var Option = (props) => {
7533
7642
  props.isSelected && (node == null ? void 0 : node.scrollIntoView());
7534
7643
  },
7535
7644
  children: [
7536
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: option(), children: props.children }),
7537
- props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: icon(), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon_default, { name: "check", size: props.size }) })
7645
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: option(), children: props.children }),
7646
+ props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: icon(), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Icon_default, { name: "check", size: props.size }) })
7538
7647
  ]
7539
7648
  }
7540
7649
  );
@@ -7585,11 +7694,11 @@ var optionStyle = tv({
7585
7694
  });
7586
7695
 
7587
7696
  // src/components/select/select.tsx
7588
- var import_jsx_runtime21 = require("react/jsx-runtime");
7589
- var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
7697
+ var import_jsx_runtime22 = require("react/jsx-runtime");
7698
+ var Select = (0, import_react20.forwardRef)((originalProps, ref) => {
7590
7699
  const [props, variantProps] = mapPropsVariants(originalProps, select.variantKeys);
7591
7700
  const { classNames, options, defaultOption, onChange, ...inputProps } = props;
7592
- const slots = (0, import_react19.useMemo)(() => select({ ...variantProps }), [variantProps]);
7701
+ const slots = (0, import_react20.useMemo)(() => select({ ...variantProps }), [variantProps]);
7593
7702
  const {
7594
7703
  targetRect,
7595
7704
  selectedOption,
@@ -7605,19 +7714,19 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
7605
7714
  onChange
7606
7715
  });
7607
7716
  const position = targetRect ? calculatePositionWithScroll(targetRect, optionWrapperHeight) : null;
7608
- const getBaseProps = (0, import_react19.useCallback)(
7717
+ const getBaseProps = (0, import_react20.useCallback)(
7609
7718
  () => ({
7610
7719
  className: slots.base({ class: classNames == null ? void 0 : classNames.base })
7611
7720
  }),
7612
7721
  [slots, classNames]
7613
7722
  );
7614
- const getLabelProps = (0, import_react19.useCallback)(
7723
+ const getLabelProps = (0, import_react20.useCallback)(
7615
7724
  () => ({
7616
7725
  className: slots.label({ class: classNames == null ? void 0 : classNames.label })
7617
7726
  }),
7618
7727
  [slots, classNames]
7619
7728
  );
7620
- const getSelectWrapperProps = (0, import_react19.useCallback)(
7729
+ const getSelectWrapperProps = (0, import_react20.useCallback)(
7621
7730
  () => ({
7622
7731
  className: slots.selectWrapper({ class: classNames == null ? void 0 : classNames.selectWrapper }),
7623
7732
  ref: selectWrapperRef,
@@ -7625,7 +7734,7 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
7625
7734
  }),
7626
7735
  [slots, classNames]
7627
7736
  );
7628
- const getSelectProps = (0, import_react19.useCallback)(
7737
+ const getSelectProps = (0, import_react20.useCallback)(
7629
7738
  () => ({
7630
7739
  ...inputProps,
7631
7740
  ref,
@@ -7636,30 +7745,30 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
7636
7745
  }),
7637
7746
  [slots, classNames, inputProps, selectedOption, ref]
7638
7747
  );
7639
- const getOptionsWrapperProps = (0, import_react19.useCallback)(
7748
+ const getOptionsWrapperProps = (0, import_react20.useCallback)(
7640
7749
  () => ({
7641
7750
  className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
7642
7751
  ref: optionWrapperRef
7643
7752
  }),
7644
7753
  [slots, classNames]
7645
7754
  );
7646
- const getErrorMessageProps = (0, import_react19.useCallback)(
7755
+ const getErrorMessageProps = (0, import_react20.useCallback)(
7647
7756
  () => ({
7648
7757
  className: slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })
7649
7758
  }),
7650
7759
  [slots, classNames]
7651
7760
  );
7652
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
7653
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { ...getBaseProps(), children: [
7654
- props.label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { ...getLabelProps(), children: props.label }),
7655
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { "data-expanded": !!targetRect, ...getSelectWrapperProps(), children: [
7656
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("input", { ...getSelectProps() }),
7657
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Icon_default, { name: !!targetRect ? "arrow-triangle-up" : "arrow-triangle-down", size: originalProps.size, fill: true })
7761
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
7762
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { ...getBaseProps(), children: [
7763
+ props.label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("label", { ...getLabelProps(), children: props.label }),
7764
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { "data-expanded": !!targetRect, ...getSelectWrapperProps(), children: [
7765
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("input", { ...getSelectProps() }),
7766
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon_default, { name: !!targetRect ? "arrow-triangle-up" : "arrow-triangle-down", size: originalProps.size, fill: true })
7658
7767
  ] }),
7659
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { ...getErrorMessageProps(), children: props.errorMessage })
7768
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { ...getErrorMessageProps(), children: props.errorMessage })
7660
7769
  ] }),
7661
- targetRect && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: (0, import_react_dom.createPortal)(
7662
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7770
+ targetRect && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children: (0, import_react_dom.createPortal)(
7771
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7663
7772
  "div",
7664
7773
  {
7665
7774
  ...getOptionsWrapperProps(),
@@ -7669,7 +7778,7 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
7669
7778
  left: position == null ? void 0 : position.left,
7670
7779
  width: targetRect.width
7671
7780
  },
7672
- children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7781
+ children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7673
7782
  option_default,
7674
7783
  {
7675
7784
  variant: originalProps.variant,
@@ -7818,16 +7927,16 @@ var select = tv({
7818
7927
  });
7819
7928
 
7820
7929
  // src/components/chip/chip.tsx
7821
- var import_react20 = require("react");
7822
- var import_jsx_runtime22 = require("react/jsx-runtime");
7823
- var Chip = (0, import_react20.forwardRef)((originalProps, ref) => {
7930
+ var import_react21 = require("react");
7931
+ var import_jsx_runtime23 = require("react/jsx-runtime");
7932
+ var Chip = (0, import_react21.forwardRef)((originalProps, ref) => {
7824
7933
  var _a;
7825
7934
  const [rawProps, variantProps] = mapPropsVariants(originalProps, chipStyle.variantKeys);
7826
7935
  const props = { ...rawProps, ...variantProps };
7827
7936
  const Component = props.onClick ? "button" : "div";
7828
- const slots = (0, import_react20.useMemo)(() => chipStyle({ ...variantProps }), [variantProps]);
7829
- const renderIcon = (name) => name ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon_default, { name, fill: true, size: props.size, className: slots.icon() }) : null;
7830
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
7937
+ const slots = (0, import_react21.useMemo)(() => chipStyle({ ...variantProps }), [variantProps]);
7938
+ const renderIcon = (name) => name ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon_default, { name, fill: true, size: props.size, className: slots.icon() }) : null;
7939
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
7831
7940
  Component,
7832
7941
  {
7833
7942
  ref,
@@ -8003,13 +8112,13 @@ var chipStyle = tv({
8003
8112
  });
8004
8113
 
8005
8114
  // src/components/radio/radio.tsx
8006
- var import_react21 = require("react");
8007
- var import_jsx_runtime23 = require("react/jsx-runtime");
8008
- var Radio = (0, import_react21.forwardRef)((originalProps, ref) => {
8115
+ var import_react22 = require("react");
8116
+ var import_jsx_runtime24 = require("react/jsx-runtime");
8117
+ var Radio = (0, import_react22.forwardRef)((originalProps, ref) => {
8009
8118
  const [props, variantProps] = mapPropsVariants(originalProps, radioStyle.variantKeys);
8010
8119
  const { children, classNames, labelPosition = "end", ...inputProps } = props;
8011
- const slots = (0, import_react21.useMemo)(() => radioStyle({ ...variantProps }), [variantProps]);
8012
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
8120
+ const slots = (0, import_react22.useMemo)(() => radioStyle({ ...variantProps }), [variantProps]);
8121
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
8013
8122
  "label",
8014
8123
  {
8015
8124
  className: clsx(
@@ -8017,9 +8126,9 @@ var Radio = (0, import_react21.forwardRef)((originalProps, ref) => {
8017
8126
  labelPosition === "start" && slots.labelReverse({ class: classNames == null ? void 0 : classNames.labelReverse })
8018
8127
  ),
8019
8128
  children: [
8020
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { ...inputProps, type: "radio", ref }) }),
8021
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: slots.outerDot({ class: classNames == null ? void 0 : classNames.outerDot }), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: slots.innerDot({ class: classNames == null ? void 0 : classNames.innerDot }) }) }),
8022
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: slots.labelWrapper({ class: classNames == null ? void 0 : classNames.labelWrapper }), children: children && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children }) })
8129
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("input", { ...inputProps, type: "radio", ref }) }),
8130
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: slots.outerDot({ class: classNames == null ? void 0 : classNames.outerDot }), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: slots.innerDot({ class: classNames == null ? void 0 : classNames.innerDot }) }) }),
8131
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: slots.labelWrapper({ class: classNames == null ? void 0 : classNames.labelWrapper }), children: children && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children }) })
8023
8132
  ]
8024
8133
  }
8025
8134
  );
@@ -8159,21 +8268,21 @@ var radioStyle = tv({
8159
8268
  });
8160
8269
 
8161
8270
  // src/components/switch/switch.tsx
8162
- var import_react22 = require("react");
8163
- var import_tailwind_variants20 = require("tailwind-variants");
8164
- var import_jsx_runtime24 = require("react/jsx-runtime");
8165
- var Switch = (0, import_react22.forwardRef)((originalProps, ref) => {
8271
+ var import_react23 = require("react");
8272
+ var import_tailwind_variants21 = require("tailwind-variants");
8273
+ var import_jsx_runtime25 = require("react/jsx-runtime");
8274
+ var Switch = (0, import_react23.forwardRef)((originalProps, ref) => {
8166
8275
  const [rawProps, variantProps] = mapPropsVariants(originalProps, switchStyle.variantKeys);
8167
8276
  const { size, color, isDisabled, disableAnimation, id, classNames, ...inputProps } = { ...rawProps, ...variantProps };
8168
- const slots = (0, import_react22.useMemo)(() => switchStyle({ ...variantProps }), [variantProps]);
8169
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
8170
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("input", { ...inputProps, id, ref, type: "checkbox", disabled: isDisabled, className: "hidden" }),
8171
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: slots.outerWrapper({ class: classNames == null ? void 0 : classNames.outerWrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }) }) }) })
8277
+ const slots = (0, import_react23.useMemo)(() => switchStyle({ ...variantProps }), [variantProps]);
8278
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
8279
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", { ...inputProps, id, ref, type: "checkbox", disabled: isDisabled, className: "hidden" }),
8280
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: slots.outerWrapper({ class: classNames == null ? void 0 : classNames.outerWrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }) }) }) })
8172
8281
  ] });
8173
8282
  });
8174
8283
  Switch.displayName = "Switch";
8175
8284
  var switch_default = Switch;
8176
- var switchStyle = (0, import_tailwind_variants20.tv)({
8285
+ var switchStyle = (0, import_tailwind_variants21.tv)({
8177
8286
  slots: {
8178
8287
  base: ["group/switch", "relative", "max-w-fit", "inline-flex", "items-center", "justify-start", "cursor-pointer"],
8179
8288
  outerWrapper: [
@@ -8278,7 +8387,7 @@ var switchStyle = (0, import_tailwind_variants20.tv)({
8278
8387
  });
8279
8388
 
8280
8389
  // src/components/tooltip/tooltip.tsx
8281
- var import_react24 = require("react");
8390
+ var import_react25 = require("react");
8282
8391
  var import_react_dom2 = require("react-dom");
8283
8392
 
8284
8393
  // src/components/tooltip/tooltip-utils.ts
@@ -8401,11 +8510,11 @@ var getTailStyles = (placement) => {
8401
8510
  };
8402
8511
 
8403
8512
  // src/components/tooltip/useTooltip.ts
8404
- var import_react23 = require("react");
8513
+ var import_react24 = require("react");
8405
8514
  var useTooltip = ({ placement, offset, targetRect }) => {
8406
- const [tooltipPosition, setTooltipPosition] = (0, import_react23.useState)({ x: 0, y: 0 });
8407
- const tooltipRef = (0, import_react23.useRef)(null);
8408
- (0, import_react23.useEffect)(() => {
8515
+ const [tooltipPosition, setTooltipPosition] = (0, import_react24.useState)({ x: 0, y: 0 });
8516
+ const tooltipRef = (0, import_react24.useRef)(null);
8517
+ (0, import_react24.useEffect)(() => {
8409
8518
  if (targetRect && tooltipRef.current) {
8410
8519
  const { width, height } = tooltipRef.current.getBoundingClientRect();
8411
8520
  const scrollX = window.scrollX;
@@ -8435,29 +8544,29 @@ var useTooltip = ({ placement, offset, targetRect }) => {
8435
8544
  };
8436
8545
 
8437
8546
  // src/components/tooltip/tooltip.tsx
8438
- var import_jsx_runtime25 = require("react/jsx-runtime");
8439
- var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
8547
+ var import_jsx_runtime26 = require("react/jsx-runtime");
8548
+ var Tooltip = (0, import_react25.forwardRef)((originalProps, ref) => {
8440
8549
  const [props, variantProps] = mapPropsVariants(originalProps, tooltipStyle.variantKeys);
8441
8550
  const { placement = "top", offset = 5, delay = 100, persistent = false, classNames } = props;
8442
- const slots = (0, import_react24.useMemo)(() => tooltipStyle({ ...variantProps }), [variantProps]);
8443
- const [targetRect, setTargetRect] = (0, import_react24.useState)(null);
8551
+ const slots = (0, import_react25.useMemo)(() => tooltipStyle({ ...variantProps }), [variantProps]);
8552
+ const [targetRect, setTargetRect] = (0, import_react25.useState)(null);
8444
8553
  const { tooltipPosition, tooltipRef } = useTooltip({
8445
8554
  placement,
8446
8555
  offset,
8447
8556
  delay,
8448
8557
  targetRect
8449
8558
  });
8450
- const childrenRef = (0, import_react24.useRef)(null);
8451
- const delayTimeoutRef = (0, import_react24.useRef)(null);
8452
- const getProps = (0, import_react24.useCallback)(
8559
+ const childrenRef = (0, import_react25.useRef)(null);
8560
+ const delayTimeoutRef = (0, import_react25.useRef)(null);
8561
+ const getProps = (0, import_react25.useCallback)(
8453
8562
  (slotKey, classNameKey) => ({
8454
8563
  className: slots[slotKey]({ class: classNames == null ? void 0 : classNames[classNameKey] })
8455
8564
  }),
8456
8565
  [slots, classNames]
8457
8566
  );
8458
- const getBaseProps = (0, import_react24.useCallback)(() => getProps("base", "base"), [getProps]);
8459
- const getContentProps = (0, import_react24.useCallback)(() => getProps("content", "content"), [getProps]);
8460
- const showTooltip = (0, import_react24.useCallback)(() => {
8567
+ const getBaseProps = (0, import_react25.useCallback)(() => getProps("base", "base"), [getProps]);
8568
+ const getContentProps = (0, import_react25.useCallback)(() => getProps("content", "content"), [getProps]);
8569
+ const showTooltip = (0, import_react25.useCallback)(() => {
8461
8570
  if (childrenRef.current) {
8462
8571
  const rect = childrenRef.current.getBoundingClientRect();
8463
8572
  setTargetRect({
@@ -8470,16 +8579,16 @@ var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
8470
8579
  });
8471
8580
  }
8472
8581
  }, []);
8473
- const hideTooltip = (0, import_react24.useCallback)(() => {
8582
+ const hideTooltip = (0, import_react25.useCallback)(() => {
8474
8583
  if (!persistent) {
8475
8584
  delayTimeoutRef.current = window.setTimeout(() => setTargetRect(null), delay);
8476
8585
  }
8477
8586
  }, [persistent, delay]);
8478
- (0, import_react24.useEffect)(() => {
8587
+ (0, import_react25.useEffect)(() => {
8479
8588
  if (persistent) showTooltip();
8480
8589
  }, [persistent, showTooltip]);
8481
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
8482
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
8590
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
8591
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
8483
8592
  "div",
8484
8593
  {
8485
8594
  ref: (node) => {
@@ -8496,7 +8605,7 @@ var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
8496
8605
  }
8497
8606
  ),
8498
8607
  targetRect && (0, import_react_dom2.createPortal)(
8499
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
8608
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
8500
8609
  "div",
8501
8610
  {
8502
8611
  ref: tooltipRef,
@@ -8509,7 +8618,7 @@ var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
8509
8618
  },
8510
8619
  children: [
8511
8620
  props.content,
8512
- variantProps.tail && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
8621
+ variantProps.tail && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
8513
8622
  "div",
8514
8623
  {
8515
8624
  className: `absolute h-2 w-2 rotate-45 bg-inherit ${getTailClassName(placement)}`,
@@ -8560,110 +8669,29 @@ var tooltipStyle = tv({
8560
8669
  });
8561
8670
 
8562
8671
  // src/components/modal/modal.tsx
8563
- var import_react25 = require("react");
8672
+ var import_react26 = require("react");
8564
8673
  var import_react_dom3 = require("react-dom");
8565
- var import_jsx_runtime26 = require("react/jsx-runtime");
8566
- var Modal = (0, import_react25.forwardRef)((originalProps, ref) => {
8567
- const [props, variantProps] = mapPropsVariants(originalProps, modal.variantKeys);
8674
+ var import_jsx_runtime27 = require("react/jsx-runtime");
8675
+ var Modal = (0, import_react26.forwardRef)((props, ref) => {
8676
+ const [localProps, variantProps] = mapPropsVariants(props, modal.variantKeys);
8568
8677
  const {
8569
8678
  classNames,
8570
8679
  isOpen,
8571
- icon,
8572
8680
  title,
8573
- subTitle,
8574
8681
  content,
8575
8682
  confirmButtonText,
8576
8683
  cancelButtonText,
8577
- showCloseButton,
8578
- isDismissable = true,
8684
+ showCloseButton = true,
8579
8685
  isKeyboardDismissDisabled = false,
8580
8686
  onConfirm,
8581
8687
  onCancel
8582
- } = props;
8583
- const slots = (0, import_react25.useMemo)(() => modal({ ...variantProps }), [...Object.values(variantProps)]);
8584
- const getBackdropProps = (0, import_react25.useCallback)(
8585
- () => ({
8586
- className: slots.backdrop({ class: classNames == null ? void 0 : classNames.backdrop }),
8587
- onClick: (e) => {
8588
- if (isDismissable && e.target === e.currentTarget && onCancel) {
8589
- onCancel();
8590
- }
8591
- }
8592
- }),
8593
- [slots, classNames == null ? void 0 : classNames.backdrop, isDismissable, onCancel]
8594
- );
8595
- const getModalWrapperProps = (0, import_react25.useCallback)(
8596
- () => ({
8597
- className: slots.modalWrapper({ class: classNames == null ? void 0 : classNames.modalWrapper }),
8598
- "data-icon-visibility": typeof icon !== "undefined"
8599
- }),
8600
- [slots, classNames == null ? void 0 : classNames.modalWrapper, icon]
8601
- );
8602
- const getIconProps = (0, import_react25.useCallback)(
8603
- () => ({
8604
- className: slots.icon({ class: [classNames == null ? void 0 : classNames.icon] })
8605
- }),
8606
- [slots, classNames == null ? void 0 : classNames.icon]
8607
- );
8608
- const getCloseIconProps = (0, import_react25.useCallback)(
8609
- () => ({
8610
- className: slots.closeIcon({ class: [classNames == null ? void 0 : classNames.closeIcon, showCloseButton ? "" : "hidden"] })
8611
- }),
8612
- [slots, classNames == null ? void 0 : classNames.closeIcon, showCloseButton]
8613
- );
8614
- const getBodyWrapperProps = (0, import_react25.useCallback)(
8615
- () => ({
8616
- className: slots.bodyWrapper({ class: classNames == null ? void 0 : classNames.bodyWrapper })
8617
- }),
8618
- [slots, classNames == null ? void 0 : classNames.bodyWrapper]
8619
- );
8620
- const getTitleWrapperProps = (0, import_react25.useCallback)(
8621
- () => ({
8622
- className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper })
8623
- }),
8624
- [slots, classNames == null ? void 0 : classNames.titleWrapper]
8625
- );
8626
- const getTitleProps = (0, import_react25.useCallback)(
8627
- () => ({
8628
- className: slots.title({ class: classNames == null ? void 0 : classNames.title })
8629
- }),
8630
- [slots, classNames == null ? void 0 : classNames.title]
8631
- );
8632
- const getSubTitleProps = (0, import_react25.useCallback)(
8633
- () => ({
8634
- className: slots.subTitle({ class: classNames == null ? void 0 : classNames.subTitle })
8635
- }),
8636
- [slots, classNames == null ? void 0 : classNames.subTitle]
8637
- );
8638
- const getBodyProps = (0, import_react25.useCallback)(
8639
- () => ({
8640
- className: slots.body({ class: classNames == null ? void 0 : classNames.body })
8641
- }),
8642
- [slots, classNames == null ? void 0 : classNames.body]
8643
- );
8644
- const getContentProps = (0, import_react25.useCallback)(
8645
- () => ({
8646
- className: slots.content({ class: classNames == null ? void 0 : classNames.content })
8647
- }),
8648
- [slots, classNames == null ? void 0 : classNames.content]
8649
- );
8650
- const getFooterWrapperProps = (0, import_react25.useCallback)(
8651
- () => ({
8652
- className: slots.footerWrapper({ class: classNames == null ? void 0 : classNames.footerWrapper })
8653
- }),
8654
- [slots, classNames == null ? void 0 : classNames.footerWrapper]
8655
- );
8656
- (0, import_react25.useEffect)(() => {
8657
- if (isOpen) {
8658
- document.body.classList.add("overflow-hidden");
8659
- } else {
8660
- document.body.classList.remove("overflow-hidden");
8661
- }
8688
+ } = localProps;
8689
+ const slots = (0, import_react26.useMemo)(() => modal(variantProps), [variantProps]);
8690
+ (0, import_react26.useEffect)(() => {
8691
+ document.body.classList.toggle("overflow-hidden", !!isOpen);
8662
8692
  if (!isOpen || isKeyboardDismissDisabled) return;
8663
8693
  const handleKeyDown = (e) => {
8664
- if (e.key === "Escape" && onCancel) {
8665
- onCancel();
8666
- }
8694
+ if (e.key === "Escape") onCancel == null ? void 0 : onCancel();
8667
8695
  };
8668
8696
  document.addEventListener("keydown", handleKeyDown);
8669
8697
  return () => {
@@ -8671,82 +8699,83 @@ var Modal = (0, import_react25.forwardRef)((originalProps, ref) => {
8671
8699
  document.body.classList.remove("overflow-hidden");
8672
8700
  };
8673
8701
  }, [isOpen, isKeyboardDismissDisabled, onCancel]);
8674
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, { children: isOpen && (0, import_react_dom3.createPortal)(
8675
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getBackdropProps(), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ref, ...getModalWrapperProps(), children: [
8676
- typeof icon === "string" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getIconProps(), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon_default, { name: icon, className: "h-[80px] w-[80px]" }) }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getIconProps(), children: icon }),
8677
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ...getBodyWrapperProps(), children: [
8678
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon_default, { name: "close", ...getCloseIconProps(), onClick: onCancel }),
8679
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ...getBodyProps(), children: [
8680
- (title || subTitle) && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ...getTitleWrapperProps(), children: [
8681
- title && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getTitleProps(), children: title }),
8682
- subTitle && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getSubTitleProps(), children: subTitle })
8683
- ] }),
8684
- content && typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getContentProps(), children: content }) : content,
8685
- (cancelButtonText || confirmButtonText) && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ...getFooterWrapperProps(), children: [
8686
- cancelButtonText && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(button_default, { variant: "outline", color: originalProps.color, fullWidth: true, onClick: onCancel, children: cancelButtonText }),
8687
- confirmButtonText && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(button_default, { size: "md", color: originalProps.color, fullWidth: true, onClick: onConfirm, children: confirmButtonText })
8702
+ if (!isOpen) return null;
8703
+ return (0, import_react_dom3.createPortal)(
8704
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
8705
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(backdrop_default, { open: true }),
8706
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: slots.modalWrapper({ class: classNames == null ? void 0 : classNames.modalWrapper }), children: [
8707
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
8708
+ Icon_default,
8709
+ {
8710
+ size: "xl",
8711
+ name: "close",
8712
+ className: slots.closeIcon({ class: classNames == null ? void 0 : classNames.closeIcon }),
8713
+ onClick: onCancel
8714
+ }
8715
+ ),
8716
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
8717
+ title && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
8718
+ typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: slots.content({ class: classNames == null ? void 0 : classNames.content }), children: content }) : content,
8719
+ (cancelButtonText || confirmButtonText) && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: slots.footer({ class: classNames == null ? void 0 : classNames.footer }), children: [
8720
+ cancelButtonText && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(button_default, { variant: "soft", color: "neutral", fullWidth: true, onClick: onCancel, children: cancelButtonText }),
8721
+ confirmButtonText && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(button_default, { color: props.color, fullWidth: true, onClick: onConfirm, children: confirmButtonText })
8688
8722
  ] })
8689
8723
  ] })
8690
- ] })
8691
- ] }) }),
8724
+ ] }) })
8725
+ ] }),
8692
8726
  document.body
8693
- ) });
8727
+ );
8694
8728
  });
8695
8729
  Modal.displayName = "Modal";
8696
8730
  var modal_default = Modal;
8697
8731
  var modal = tv({
8698
8732
  slots: {
8699
- backdrop: ["relative w-screen h-screen fixed inset-0 bg-black/60", "z-[900]"],
8700
- modalWrapper: ["group/modal", "absolute", "top-1/2", "-translate-y-1/2", "left-1/2", "-translate-x-1/2"],
8701
- icon: ["absolute", "top-[-40px]", "left-1/2", "-translate-x-1/2", "z-10"],
8702
- closeIcon: [
8733
+ base: [
8734
+ "group/modal",
8703
8735
  "absolute",
8704
- "top-[20px]",
8705
- "right-[20px]",
8706
- "cursor-pointer",
8707
- "z-10",
8708
- "group-data-[icon-visibility=true]/modal:top-[80px]"
8736
+ "top-1/2",
8737
+ "-translate-y-1/2",
8738
+ "left-1/2",
8739
+ "-translate-x-1/2",
8740
+ "z-[50]",
8741
+ "bg-body-background"
8709
8742
  ],
8710
- titleWrapper: ["relative", "flex", "flex-col", "gap-[10px]"],
8711
- title: "text-h5 text-center text-foreground",
8712
- subTitle: "text-lg text-center text-neutral-dark",
8713
- bodyWrapper: [
8714
- "min-w-[400px]",
8715
- "flex flex-col justify-center",
8716
- "p-[20px]",
8743
+ modalWrapper: [
8744
+ "min-w-[450px]",
8745
+ "flex",
8746
+ "flex-col",
8747
+ "justify-center",
8748
+ "p-[30px]",
8717
8749
  "bg-background",
8718
- "shadow-drop shadow-foreground/20 rounded-xxlg",
8750
+ "shadow-drop",
8751
+ "shadow-foreground/20",
8752
+ "rounded-xlg",
8719
8753
  "overflow-hidden",
8720
8754
  "group-data-[icon-visibility=true]/modal:mt-[0]",
8721
8755
  "group-data-[icon-visibility=true]/modal:pt-[60px]"
8722
8756
  ],
8723
- body: ["flex", "flex-col", "gap-[20px]"],
8724
- content: ["text-md text-center", "break-words", "bg-neutral-soft", "rounded-[5px]", "p-[10px]"],
8725
- footerWrapper: ["flex gap-[20px]"]
8757
+ wrapper: ["flex", "flex-col", "gap-[30px]"],
8758
+ title: ["text-xl", "font-extrabold", "text-foreground"],
8759
+ content: ["text-md", "font-bold", "text-center", "break-words", "bg-neutral-soft", "rounded-[5px]", "p-[10px]"],
8760
+ footer: ["flex", "gap-[10px]"],
8761
+ closeIcon: [
8762
+ "absolute",
8763
+ "top-[30px]",
8764
+ "right-[30px]",
8765
+ "cursor-pointer",
8766
+ "z-60",
8767
+ "group-data-[icon-visibility=true]/modal:top-[80px]"
8768
+ ]
8726
8769
  },
8727
8770
  variants: {
8728
8771
  color: {
8729
- primary: {
8730
- icon: "text-primary-main"
8731
- },
8732
- secondary: {
8733
- icon: "text-secondary-main"
8734
- },
8735
- neutral: {
8736
- icon: "text-neutral-main"
8737
- },
8738
- success: {
8739
- icon: "text-success-main"
8740
- },
8741
- info: {
8742
- icon: "text-info-main"
8743
- },
8744
- warning: {
8745
- icon: "text-warning-main"
8746
- },
8747
- danger: {
8748
- icon: "text-danger-main"
8749
- }
8772
+ primary: {},
8773
+ secondary: {},
8774
+ neutral: {},
8775
+ success: {},
8776
+ info: {},
8777
+ warning: {},
8778
+ danger: {}
8750
8779
  }
8751
8780
  },
8752
8781
  defaultVariants: {
@@ -8755,15 +8784,15 @@ var modal = tv({
8755
8784
  });
8756
8785
 
8757
8786
  // src/components/list/list.tsx
8758
- var import_react26 = require("react");
8759
- var import_jsx_runtime27 = require("react/jsx-runtime");
8760
- var List = (0, import_react26.forwardRef)((originalProps, ref) => {
8787
+ var import_react27 = require("react");
8788
+ var import_jsx_runtime28 = require("react/jsx-runtime");
8789
+ var List = (0, import_react27.forwardRef)((originalProps, ref) => {
8761
8790
  const [props, variantProps] = mapPropsVariants(originalProps, listStyle.variantKeys);
8762
8791
  const { children, classNames } = props;
8763
- const slots = (0, import_react26.useMemo)(() => listStyle(variantProps), [variantProps]);
8764
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react26.Children.map(children, (child) => {
8765
- if (!(0, import_react26.isValidElement)(child)) return child;
8766
- return (0, import_react26.cloneElement)(child, {
8792
+ const slots = (0, import_react27.useMemo)(() => listStyle(variantProps), [variantProps]);
8793
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react27.Children.map(children, (child) => {
8794
+ if (!(0, import_react27.isValidElement)(child)) return child;
8795
+ return (0, import_react27.cloneElement)(child, {
8767
8796
  ...variantProps,
8768
8797
  ...child.props
8769
8798
  });
@@ -8800,9 +8829,9 @@ var listStyle = tv({
8800
8829
  });
8801
8830
 
8802
8831
  // src/components/list/listItem.tsx
8803
- var import_react27 = require("react");
8804
- var import_jsx_runtime28 = require("react/jsx-runtime");
8805
- var ListItem = (0, import_react27.forwardRef)((props, ref) => {
8832
+ var import_react28 = require("react");
8833
+ var import_jsx_runtime29 = require("react/jsx-runtime");
8834
+ var ListItem = (0, import_react28.forwardRef)((props, ref) => {
8806
8835
  const [rawProps, variantProps] = mapPropsVariants(props, listItemStyle.variantKeys);
8807
8836
  const {
8808
8837
  title,
@@ -8814,19 +8843,19 @@ var ListItem = (0, import_react27.forwardRef)((props, ref) => {
8814
8843
  classNames,
8815
8844
  onClick
8816
8845
  } = { ...rawProps, ...variantProps };
8817
- const slots = (0, import_react27.useMemo)(() => listItemStyle(variantProps), [variantProps]);
8846
+ const slots = (0, import_react28.useMemo)(() => listItemStyle(variantProps), [variantProps]);
8818
8847
  const iconSize = ["lg", "xl"].includes(size) ? "lg" : "md";
8819
8848
  const avatarSize = iconSize;
8820
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), "data-selected": selected, onClick, children: [
8821
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
8822
- avatar && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(avatar_default, { ...avatar, variant: "round", size: avatarSize }),
8823
- startIconName && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon_default, { name: startIconName, fill: true, size, className: slots.startIcon({ class: classNames == null ? void 0 : classNames.startIcon }) }),
8824
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper }), children: [
8825
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
8826
- subTitle && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: slots.subTitle({ class: classNames == null ? void 0 : classNames.subTitle }), children: subTitle })
8849
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), "data-selected": selected, onClick, children: [
8850
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
8851
+ avatar && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(avatar_default, { ...avatar, variant: "round", size: avatarSize }),
8852
+ startIconName && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon_default, { name: startIconName, fill: true, size, className: slots.startIcon({ class: classNames == null ? void 0 : classNames.startIcon }) }),
8853
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper }), children: [
8854
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
8855
+ subTitle && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: slots.subTitle({ class: classNames == null ? void 0 : classNames.subTitle }), children: subTitle })
8827
8856
  ] })
8828
8857
  ] }),
8829
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon_default, { name: "right-chevron", size: iconSize, className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }) })
8858
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon_default, { name: "right-chevron", size: iconSize, className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }) })
8830
8859
  ] });
8831
8860
  });
8832
8861
  ListItem.displayName = "ListItem";
@@ -8994,41 +9023,56 @@ var listItemStyle = tv({
8994
9023
  });
8995
9024
 
8996
9025
  // src/components/toast/toast.tsx
8997
- var import_react28 = require("react");
8998
- var import_jsx_runtime29 = require("react/jsx-runtime");
8999
- var Toast = (0, import_react28.forwardRef)((originalProps, ref) => {
9026
+ var import_react29 = require("react");
9027
+ var import_jsx_runtime30 = require("react/jsx-runtime");
9028
+ var Toast = (0, import_react29.forwardRef)((originalProps, ref) => {
9000
9029
  const [props, variantProps] = mapPropsVariants(originalProps, toast.variantKeys);
9001
- const { width = 300, placement, classNames, showIcon = true, showCloseButton = true, onClose, ...toastProps } = props;
9002
- const slots = (0, import_react28.useMemo)(() => toast({ ...variantProps }), [variantProps]);
9003
- const toastRef = (0, import_react28.useRef)(null);
9004
- (0, import_react28.useImperativeHandle)(
9030
+ const {
9031
+ title,
9032
+ content,
9033
+ width = 300,
9034
+ placement,
9035
+ classNames,
9036
+ showIcon = true,
9037
+ showCloseButton = true,
9038
+ hasShadow = true,
9039
+ disableAnimation,
9040
+ onClose
9041
+ } = { ...props, ...variantProps };
9042
+ const slots = (0, import_react29.useMemo)(() => toast({ ...variantProps }), [variantProps]);
9043
+ const toastRef = (0, import_react29.useRef)(null);
9044
+ (0, import_react29.useImperativeHandle)(
9005
9045
  ref,
9006
9046
  () => ({
9007
9047
  getWidth: () => {
9008
- if (toastRef.current) {
9009
- return toastRef.current.offsetWidth;
9010
- }
9048
+ var _a;
9049
+ return (_a = toastRef.current) == null ? void 0 : _a.offsetWidth;
9011
9050
  }
9012
9051
  }),
9013
9052
  []
9014
9053
  );
9015
- const getBaseProps = (0, import_react28.useCallback)(
9016
- () => ({
9017
- className: slots.base({
9018
- class: [
9019
- classNames == null ? void 0 : classNames.base,
9020
- width ? `w-[${width}px]` : "",
9021
- (placement == null ? void 0 : placement.includes("top")) ? "animate-slideInFromTop" : "animate-slideInFromBottom"
9022
- ]
9023
- })
9024
- }),
9025
- [slots, classNames == null ? void 0 : classNames.base]
9054
+ const animationClass = (placement == null ? void 0 : placement.includes("top")) ? "animate-slideInFromTop" : "animate-slideInFromBottom";
9055
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
9056
+ "div",
9057
+ {
9058
+ ref: toastRef,
9059
+ className: clsx(
9060
+ slots.base({ class: classNames == null ? void 0 : classNames.base }),
9061
+ width && `w-[${width}px]`,
9062
+ animationClass,
9063
+ disableAnimation && "!animate-none"
9064
+ ),
9065
+ style: hasShadow ? { boxShadow: "0px 6px 18px rgba(0, 0, 0, 0.10)" } : {},
9066
+ children: [
9067
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
9068
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
9069
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
9070
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon_default, { name: "close", className: "cursor-pointer", onClick: onClose })
9071
+ ] }),
9072
+ content && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { children: content })
9073
+ ]
9074
+ }
9026
9075
  );
9027
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ref: toastRef, ...getBaseProps(), children: [
9028
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
9029
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex-1 select-none", children: props.content }),
9030
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon_default, { name: "close", className: "cursor-pointer mt-[2px]", onClick: onClose })
9031
- ] });
9032
9076
  });
9033
9077
  Toast.displayName = "Toast";
9034
9078
  var toast_default = Toast;
@@ -9039,15 +9083,18 @@ var toast = tv({
9039
9083
  "inline-flex",
9040
9084
  "items-start",
9041
9085
  "border",
9042
- "rounded-md",
9086
+ "rounded-[5px]",
9043
9087
  "text-md",
9044
9088
  "p-[10px]",
9045
9089
  "gap-[5px]",
9046
9090
  "z-0",
9047
9091
  "transition-all",
9048
9092
  "duration-300",
9049
- "overflow-auto"
9093
+ "overflow-auto",
9094
+ "select-none"
9050
9095
  ],
9096
+ wrapper: ["flex", "items-center", "gap-[5px]"],
9097
+ title: ["font-bold", "truncate"],
9051
9098
  content: [
9052
9099
  "absolute",
9053
9100
  "top-0",
@@ -9061,43 +9108,73 @@ var toast = tv({
9061
9108
  ]
9062
9109
  },
9063
9110
  variants: {
9111
+ variant: {
9112
+ solid: {},
9113
+ outline: {}
9114
+ },
9064
9115
  color: {
9065
- primary: {
9066
- base: "bg-primary-soft border-primary-light text-primary-main"
9067
- },
9068
- secondary: {
9069
- base: "bg-secondary-soft border-secondary-light text-secondary-main"
9070
- },
9071
- default: {
9072
- base: "bg-default-soft border-default-light text-default-main"
9073
- },
9074
- success: {
9075
- base: "bg-success-soft border-success-light text-success-main"
9076
- },
9077
- info: {
9078
- base: "bg-info-soft border-info-light text-info-main"
9079
- },
9080
- warning: {
9081
- base: "bg-warning-soft border-warning-light text-warning-main"
9082
- },
9083
- danger: {
9084
- base: "bg-danger-soft border-danger-light text-danger-main"
9116
+ primary: {},
9117
+ secondary: {},
9118
+ success: {},
9119
+ info: {},
9120
+ warning: {},
9121
+ danger: {}
9122
+ }
9123
+ },
9124
+ compoundVariants: [
9125
+ {
9126
+ variant: "solid",
9127
+ color: "primary",
9128
+ class: {
9129
+ base: ["bg-primary-soft", "border-primary-main", "text-primary-main"]
9085
9130
  }
9086
9131
  },
9087
- disableAnimation: {
9088
- true: {
9089
- base: "animate-none"
9132
+ {
9133
+ variant: "solid",
9134
+ color: "secondary",
9135
+ class: {
9136
+ base: ["bg-secondary-soft", "border-secondary-main", "text-secondary-main"]
9137
+ }
9138
+ },
9139
+ {
9140
+ variant: "solid",
9141
+ color: "success",
9142
+ class: {
9143
+ base: ["bg-success-soft", "border-success-main", "text-success-main"]
9144
+ }
9145
+ },
9146
+ {
9147
+ variant: "solid",
9148
+ color: "info",
9149
+ class: {
9150
+ base: ["bg-info-soft", "border-info-main", "text-info-main"]
9151
+ }
9152
+ },
9153
+ {
9154
+ variant: "solid",
9155
+ color: "warning",
9156
+ class: {
9157
+ base: ["bg-warning-soft", "border-warning-main", "text-warning-main"]
9158
+ }
9159
+ },
9160
+ {
9161
+ variant: "solid",
9162
+ color: "danger",
9163
+ class: {
9164
+ base: ["bg-danger-soft", "border-danger-main", "text-danger-main"]
9090
9165
  }
9091
9166
  }
9092
- },
9167
+ ],
9093
9168
  defaultVariants: {
9094
- color: "default",
9169
+ variant: "solid",
9170
+ color: "primary",
9171
+ hasShadow: true,
9095
9172
  disableAnimation: false
9096
9173
  }
9097
9174
  });
9098
9175
 
9099
9176
  // src/components/toast/use-toast.tsx
9100
- var import_react29 = require("react");
9177
+ var import_react30 = require("react");
9101
9178
 
9102
9179
  // src/components/toast/toast-utils.ts
9103
9180
  var getToastPosition = (placement, width, offset) => {
@@ -9136,10 +9213,10 @@ var getToastPosition = (placement, width, offset) => {
9136
9213
  };
9137
9214
 
9138
9215
  // src/components/toast/use-toast.tsx
9139
- var import_jsx_runtime30 = require("react/jsx-runtime");
9140
- var ToastContext = (0, import_react29.createContext)(null);
9216
+ var import_jsx_runtime31 = require("react/jsx-runtime");
9217
+ var ToastContext = (0, import_react30.createContext)(null);
9141
9218
  var useToast = () => {
9142
- const context = (0, import_react29.useContext)(ToastContext);
9219
+ const context = (0, import_react30.useContext)(ToastContext);
9143
9220
  if (!context) {
9144
9221
  throw new Error("useToast must be used within a ToastProvider");
9145
9222
  }
@@ -9149,68 +9226,56 @@ var ToastProvider = ({
9149
9226
  globalOptions,
9150
9227
  children
9151
9228
  }) => {
9152
- const [toasts, setToasts] = (0, import_react29.useState)([]);
9153
- const [containerStyle, setContainerStyle] = (0, import_react29.useState)({});
9154
- const toastRef = (0, import_react29.useRef)(null);
9155
- const addToast = (0, import_react29.useCallback)((content, options) => {
9156
- const id = Date.now() + Math.floor(Math.random() * 1e5);
9157
- const newToast = {
9158
- id,
9159
- content,
9160
- ...options
9161
- };
9162
- setToasts((prevToasts) => [...prevToasts, newToast]);
9163
- setTimeout(() => {
9164
- setToasts((prevToasts) => prevToasts.filter((toast2) => toast2.id !== id));
9165
- }, options.duration || 3e3);
9166
- }, []);
9167
- const removeToast = (0, import_react29.useCallback)((id) => {
9229
+ const [toasts, setToasts] = (0, import_react30.useState)([]);
9230
+ const [containerStyle, setContainerStyle] = (0, import_react30.useState)({});
9231
+ const toastRef = (0, import_react30.useRef)(null);
9232
+ const addToast = (0, import_react30.useCallback)(
9233
+ (title, options = {}) => {
9234
+ const id = Date.now() + Math.floor(Math.random() * 1e5);
9235
+ const newToast = {
9236
+ id,
9237
+ title,
9238
+ duration: 3e3,
9239
+ ...globalOptions,
9240
+ ...options
9241
+ };
9242
+ setToasts((prev) => [...prev, newToast]);
9243
+ setTimeout(() => {
9244
+ setToasts((prevToasts) => prevToasts.filter((toast2) => toast2.id !== id));
9245
+ }, newToast.duration || 3e3);
9246
+ },
9247
+ [globalOptions]
9248
+ );
9249
+ const removeToast = (0, import_react30.useCallback)((id) => {
9168
9250
  setToasts((prevToasts) => prevToasts.filter((toast2) => toast2.id !== id));
9169
9251
  }, []);
9170
- const value = {
9171
- default: (content, options) => addToast(content, { type: "default", icon: "info-circle", color: "default", ...globalOptions, ...options }),
9172
- info: (content, options) => addToast(content, { type: "info", icon: "info-circle", color: "info", ...globalOptions, ...options }),
9173
- success: (content, options) => addToast(content, { type: "success", icon: "check-circle", color: "success", ...globalOptions, ...options }),
9174
- warning: (content, options) => addToast(content, {
9175
- type: "warning",
9176
- icon: "exclamation-triangle",
9177
- color: "warning",
9178
- ...globalOptions,
9179
- ...options
9180
- }),
9181
- error: (content, options) => addToast(content, { type: "error", icon: "exclamation-circle", color: "danger", ...globalOptions, ...options })
9182
- };
9183
- (0, import_react29.useEffect)(() => {
9252
+ const contextValue = addToast;
9253
+ (0, import_react30.useEffect)(() => {
9184
9254
  var _a;
9185
- const width = (globalOptions == null ? void 0 : globalOptions.width) ? globalOptions == null ? void 0 : globalOptions.width : typeof ((_a = toastRef.current) == null ? void 0 : _a.getWidth) === "function" ? toastRef.current.getWidth() : 300;
9255
+ const width = (globalOptions == null ? void 0 : globalOptions.width) ? globalOptions.width : typeof ((_a = toastRef.current) == null ? void 0 : _a.getWidth) === "function" ? toastRef.current.getWidth() : 300;
9186
9256
  const offset = 20;
9187
- const calculatePosition = () => {
9188
- const placement = (globalOptions == null ? void 0 : globalOptions.placement) || "bottom-right";
9189
- const { top, left, bottom, right } = getToastPosition(placement, width, offset);
9190
- setContainerStyle({
9191
- position: "fixed",
9192
- top: top !== void 0 ? `${top}px` : void 0,
9193
- left: left !== void 0 ? `${left}px` : void 0,
9194
- bottom: bottom !== void 0 ? `${bottom}px` : void 0,
9195
- right: right !== void 0 ? `${right}px` : void 0
9196
- });
9197
- };
9198
- calculatePosition();
9199
- window.addEventListener("resize", calculatePosition);
9200
- return () => window.removeEventListener("resize", calculatePosition);
9257
+ const placement = (globalOptions == null ? void 0 : globalOptions.placement) || "bottom-right";
9258
+ const { top, left, bottom, right } = getToastPosition(placement, width, offset);
9259
+ setContainerStyle({
9260
+ position: "fixed",
9261
+ top: top !== void 0 ? `${top}px` : void 0,
9262
+ left: left !== void 0 ? `${left}px` : void 0,
9263
+ bottom: bottom !== void 0 ? `${bottom}px` : void 0,
9264
+ right: right !== void 0 ? `${right}px` : void 0
9265
+ });
9201
9266
  }, [globalOptions == null ? void 0 : globalOptions.placement, globalOptions == null ? void 0 : globalOptions.width]);
9202
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(ToastContext.Provider, { value, children: [
9267
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(ToastContext.Provider, { value: contextValue, children: [
9203
9268
  children,
9204
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { id: "deepnoid-toast-container", className: "flex flex-col gap-[10px]", style: containerStyle, children: toasts.map((toast2) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(toast_default, { ref: toastRef, onClose: () => removeToast(toast2.id), ...toast2 }, toast2.id)) })
9269
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { id: "deepnoid-toast-container", className: "flex flex-col gap-[10px]", style: containerStyle, children: toasts.map((toast2) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(toast_default, { ref: toastRef, onClose: () => removeToast(toast2.id), ...toast2 }, toast2.id)) })
9205
9270
  ] });
9206
9271
  };
9207
9272
 
9208
9273
  // src/components/dateTimePicker/dateTimePicker.tsx
9209
- var import_react33 = __toESM(require("react"));
9274
+ var import_react34 = __toESM(require("react"));
9210
9275
  var import_react_dom4 = require("react-dom");
9211
9276
 
9212
9277
  // src/components/dateTimePicker/useDateTimePicker.tsx
9213
- var import_react30 = require("react");
9278
+ var import_react31 = require("react");
9214
9279
 
9215
9280
  // src/components/dateTimePicker/util.ts
9216
9281
  var formatDateToString = (date) => {
@@ -9226,17 +9291,17 @@ var formatStringToDate = (date) => {
9226
9291
 
9227
9292
  // src/components/dateTimePicker/useDateTimePicker.tsx
9228
9293
  var useDatePicker = ({ initialDate, initialTime }) => {
9229
- const [selectedDate, setSelectedDate] = (0, import_react30.useState)(
9294
+ const [selectedDate, setSelectedDate] = (0, import_react31.useState)(
9230
9295
  initialDate ? formatDateToString(initialDate) : ""
9231
9296
  );
9232
- const [selectedTime, setSelectedTime] = (0, import_react30.useState)(initialTime ? initialTime : "");
9233
- const [targetRect, setTargetRect] = (0, import_react30.useState)(null);
9234
- const [popupWidth, setPopupWidth] = (0, import_react30.useState)(0);
9235
- const [popupHeight, setPopupHeight] = (0, import_react30.useState)(0);
9236
- const [isFocusInput, setIsFocusInput] = (0, import_react30.useState)(false);
9237
- const dateInputRef = (0, import_react30.useRef)(null);
9238
- const datePickerWrapperRef = (0, import_react30.useRef)(null);
9239
- const datePickerRef = (0, import_react30.useRef)(null);
9297
+ const [selectedTime, setSelectedTime] = (0, import_react31.useState)(initialTime ? initialTime : "");
9298
+ const [targetRect, setTargetRect] = (0, import_react31.useState)(null);
9299
+ const [popupWidth, setPopupWidth] = (0, import_react31.useState)(0);
9300
+ const [popupHeight, setPopupHeight] = (0, import_react31.useState)(0);
9301
+ const [isFocusInput, setIsFocusInput] = (0, import_react31.useState)(false);
9302
+ const dateInputRef = (0, import_react31.useRef)(null);
9303
+ const datePickerWrapperRef = (0, import_react31.useRef)(null);
9304
+ const datePickerRef = (0, import_react31.useRef)(null);
9240
9305
  const DATE_PICKER_GAP = 4;
9241
9306
  const calculatePositionWithScroll = (targetRect2) => {
9242
9307
  if (targetRect2 && popupWidth && popupHeight) {
@@ -9269,7 +9334,7 @@ var useDatePicker = ({ initialDate, initialTime }) => {
9269
9334
  const handleBlueInput = () => {
9270
9335
  setIsFocusInput(false);
9271
9336
  };
9272
- (0, import_react30.useEffect)(() => {
9337
+ (0, import_react31.useEffect)(() => {
9273
9338
  const onClickOutside = (e) => {
9274
9339
  if (datePickerRef.current && !datePickerRef.current.contains(e.target) && datePickerWrapperRef.current && !datePickerWrapperRef.current.contains(e.target)) {
9275
9340
  setTargetRect(null);
@@ -9278,7 +9343,7 @@ var useDatePicker = ({ initialDate, initialTime }) => {
9278
9343
  window.addEventListener("mousedown", onClickOutside);
9279
9344
  return () => window.removeEventListener("mousedown", onClickOutside);
9280
9345
  }, []);
9281
- (0, import_react30.useEffect)(() => {
9346
+ (0, import_react31.useEffect)(() => {
9282
9347
  if (datePickerWrapperRef.current) {
9283
9348
  setPopupHeight(datePickerWrapperRef.current.getBoundingClientRect().height);
9284
9349
  setPopupWidth(datePickerWrapperRef.current.getBoundingClientRect().width);
@@ -9303,19 +9368,19 @@ var useDatePicker = ({ initialDate, initialTime }) => {
9303
9368
  };
9304
9369
 
9305
9370
  // src/components/dateTimePicker/calendar.tsx
9306
- var import_react31 = __toESM(require("react"));
9307
- var import_jsx_runtime31 = require("react/jsx-runtime");
9308
- var Calendar = (0, import_react31.forwardRef)((originalProps, ref) => {
9371
+ var import_react32 = __toESM(require("react"));
9372
+ var import_jsx_runtime32 = require("react/jsx-runtime");
9373
+ var Calendar = (0, import_react32.forwardRef)((originalProps, ref) => {
9309
9374
  const [props, variantProps] = mapPropsVariants(originalProps, calendarStyle.variantKeys);
9310
9375
  const { selectedDate, classNames, highlightWeekend = true, onChangeDate, ...inputProps } = props;
9311
- const [currentDate, setCurrentDate] = (0, import_react31.useState)(selectedDate ? new Date(selectedDate) : /* @__PURE__ */ new Date());
9376
+ const [currentDate, setCurrentDate] = (0, import_react32.useState)(selectedDate ? new Date(selectedDate) : /* @__PURE__ */ new Date());
9312
9377
  const daysOfWeek = ["S", "M", "T", "W", "T", "F", "S"];
9313
- (0, import_react31.useEffect)(() => {
9378
+ (0, import_react32.useEffect)(() => {
9314
9379
  if (selectedDate) {
9315
9380
  setCurrentDate(new Date(selectedDate));
9316
9381
  }
9317
9382
  }, [selectedDate]);
9318
- const getCalendarDates = (0, import_react31.useCallback)(() => {
9383
+ const getCalendarDates = (0, import_react32.useCallback)(() => {
9319
9384
  const year = currentDate.getFullYear();
9320
9385
  const month = currentDate.getMonth();
9321
9386
  const firstDayOfMonth = new Date(year, month, 1).getDay();
@@ -9361,17 +9426,17 @@ var Calendar = (0, import_react31.forwardRef)((originalProps, ref) => {
9361
9426
  onChangeDate(formatted);
9362
9427
  }
9363
9428
  };
9364
- (0, import_react31.useImperativeHandle)(ref, () => ({
9429
+ (0, import_react32.useImperativeHandle)(ref, () => ({
9365
9430
  getSelectedDate: () => selectedDate
9366
9431
  }));
9367
- const slots = (0, import_react31.useMemo)(() => calendarStyle({ ...variantProps }), [variantProps]);
9368
- const getBaseProps = (0, import_react31.useCallback)(
9432
+ const slots = (0, import_react32.useMemo)(() => calendarStyle({ ...variantProps }), [variantProps]);
9433
+ const getBaseProps = (0, import_react32.useCallback)(
9369
9434
  () => ({
9370
9435
  className: `${slots.base({ class: classNames == null ? void 0 : classNames.base })}`
9371
9436
  }),
9372
9437
  [slots, classNames]
9373
9438
  );
9374
- const getDateTitleProps = (0, import_react31.useCallback)(
9439
+ const getDateTitleProps = (0, import_react32.useCallback)(
9375
9440
  (index) => {
9376
9441
  return {
9377
9442
  className: `${slots.dateTitle({
@@ -9383,7 +9448,7 @@ var Calendar = (0, import_react31.forwardRef)((originalProps, ref) => {
9383
9448
  },
9384
9449
  [slots, classNames, highlightWeekend]
9385
9450
  );
9386
- const getDateProps = (0, import_react31.useCallback)(
9451
+ const getDateProps = (0, import_react32.useCallback)(
9387
9452
  (dateObj) => {
9388
9453
  const today = /* @__PURE__ */ new Date();
9389
9454
  const isToday = today.getDate() === dateObj.date && today.getMonth() === currentDate.getMonth() && today.getFullYear() === currentDate.getFullYear();
@@ -9405,18 +9470,18 @@ var Calendar = (0, import_react31.forwardRef)((originalProps, ref) => {
9405
9470
  [slots, classNames, selectedDate, currentDate, highlightWeekend]
9406
9471
  );
9407
9472
  const calendarDates = getCalendarDates();
9408
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { ...getBaseProps(), children: [
9409
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "calendar-header flex justify-between items-center mb-4", children: [
9410
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon_default, { name: "brace-left", size: "md", className: "cursor-pointer", onClick: handlePrevMonth }),
9411
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-h6 font-semibold", children: currentDate.toLocaleString("default", { year: "numeric", month: "2-digit" }) }),
9412
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon_default, { name: "brace-right", size: "md", className: "cursor-pointer", onClick: handleNextMonth })
9473
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { ...getBaseProps(), children: [
9474
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "calendar-header flex justify-between items-center mb-4", children: [
9475
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon_default, { name: "brace-left", size: "md", className: "cursor-pointer", onClick: handlePrevMonth }),
9476
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-h6 font-semibold", children: currentDate.toLocaleString("default", { year: "numeric", month: "2-digit" }) }),
9477
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon_default, { name: "brace-right", size: "md", className: "cursor-pointer", onClick: handleNextMonth })
9413
9478
  ] }),
9414
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "grid grid-cols-7 gap-2 text-center", children: daysOfWeek.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { ...getDateTitleProps(index), children: day }, `${day}-${index}`)) }),
9415
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "grid grid-cols-7 gap-[5px] text-center mt-2", children: calendarDates.map((week, weekIndex) => {
9479
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "grid grid-cols-7 gap-2 text-center", children: daysOfWeek.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ...getDateTitleProps(index), children: day }, `${day}-${index}`)) }),
9480
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "grid grid-cols-7 gap-[5px] text-center mt-2", children: calendarDates.map((week, weekIndex) => {
9416
9481
  const hasCurrentMonthDates = week.some((dateObj) => dateObj.currentMonth);
9417
9482
  if (!hasCurrentMonthDates) return null;
9418
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react31.default.Fragment, { children: week.map((dateObj, index) => {
9419
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { ...getDateProps(dateObj), children: dateObj.date }, index);
9483
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react32.default.Fragment, { children: week.map((dateObj, index) => {
9484
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ...getDateProps(dateObj), children: dateObj.date }, index);
9420
9485
  }) }, weekIndex);
9421
9486
  }) })
9422
9487
  ] }) });
@@ -9487,22 +9552,22 @@ var calendarStyle = tv({
9487
9552
  });
9488
9553
 
9489
9554
  // src/components/dateTimePicker/timePicker.tsx
9490
- var import_react32 = require("react");
9491
- var import_jsx_runtime32 = require("react/jsx-runtime");
9555
+ var import_react33 = require("react");
9556
+ var import_jsx_runtime33 = require("react/jsx-runtime");
9492
9557
  var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime }) => {
9493
9558
  const TOTAL_HOURS = 12;
9494
9559
  const TOTAL_MINUTES = 60;
9495
9560
  const ITEM_HEIGHT = 30;
9496
9561
  const PERIODS = ["AM", "PM"];
9497
- const [selectedHour, setSelectedHour] = (0, import_react32.useState)("01");
9498
- const [selectedMinute, setSelectedMinute] = (0, import_react32.useState)("00");
9499
- const [selectedPeriod, setSelectedPeriod] = (0, import_react32.useState)("AM");
9500
- const hourRef = (0, import_react32.useRef)(null);
9501
- const minuteRef = (0, import_react32.useRef)(null);
9502
- const periodRef = (0, import_react32.useRef)(null);
9562
+ const [selectedHour, setSelectedHour] = (0, import_react33.useState)("01");
9563
+ const [selectedMinute, setSelectedMinute] = (0, import_react33.useState)("00");
9564
+ const [selectedPeriod, setSelectedPeriod] = (0, import_react33.useState)("AM");
9565
+ const hourRef = (0, import_react33.useRef)(null);
9566
+ const minuteRef = (0, import_react33.useRef)(null);
9567
+ const periodRef = (0, import_react33.useRef)(null);
9503
9568
  const hoursArray = [...Array(TOTAL_HOURS).keys()].map((i) => (i + 1).toString().padStart(2, "0"));
9504
9569
  const minutesArray = [...Array(TOTAL_MINUTES).keys()].map((i) => i.toString().padStart(2, "0"));
9505
- (0, import_react32.useEffect)(() => {
9570
+ (0, import_react33.useEffect)(() => {
9506
9571
  if (selectedTime) {
9507
9572
  const { formattedHour, minute, period } = parseAndFormatTime(selectedTime);
9508
9573
  setSelectedHour(formattedHour);
@@ -9513,7 +9578,7 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9513
9578
  scrollToSelectedTime();
9514
9579
  }
9515
9580
  }, [selectedTime, isFocusInput]);
9516
- (0, import_react32.useEffect)(() => {
9581
+ (0, import_react33.useEffect)(() => {
9517
9582
  scrollToSelectedTime();
9518
9583
  }, []);
9519
9584
  const parseAndFormatTime = (time) => {
@@ -9550,8 +9615,8 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9550
9615
  onChangeTime(formattedTime);
9551
9616
  }
9552
9617
  };
9553
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex h-[200px] p-[10px] gap-[5px] border border-neutral-main rounded-md bg-background shadow-lg", children: [
9554
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(list_default, { ref: periodRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: PERIODS.map((period, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
9618
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex h-[200px] p-[10px] gap-[5px] border border-neutral-main rounded-md bg-background shadow-lg", children: [
9619
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(list_default, { ref: periodRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: PERIODS.map((period, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
9555
9620
  listItem_default,
9556
9621
  {
9557
9622
  color,
@@ -9565,7 +9630,7 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9565
9630
  },
9566
9631
  `${period}-${index}`
9567
9632
  )) }),
9568
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(list_default, { ref: hourRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: hoursArray.map((hour, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
9633
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(list_default, { ref: hourRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: hoursArray.map((hour, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
9569
9634
  listItem_default,
9570
9635
  {
9571
9636
  color,
@@ -9579,7 +9644,7 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9579
9644
  },
9580
9645
  `${hour}-${index}`
9581
9646
  )) }),
9582
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(list_default, { ref: minuteRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: minutesArray.map((minute, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
9647
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(list_default, { ref: minuteRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: minutesArray.map((minute, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
9583
9648
  listItem_default,
9584
9649
  {
9585
9650
  color,
@@ -9598,8 +9663,8 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9598
9663
  var timePicker_default = TimePicker;
9599
9664
 
9600
9665
  // src/components/dateTimePicker/dateTimePicker.tsx
9601
- var import_jsx_runtime33 = require("react/jsx-runtime");
9602
- var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9666
+ var import_jsx_runtime34 = require("react/jsx-runtime");
9667
+ var DatePicker = (0, import_react34.forwardRef)((originalProps, ref) => {
9603
9668
  const [props, variantProps] = mapPropsVariants(originalProps, dateTimePickerStyle.variantKeys);
9604
9669
  const {
9605
9670
  classNames,
@@ -9613,7 +9678,7 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9613
9678
  onChangeTime,
9614
9679
  ...inputProps
9615
9680
  } = props;
9616
- const slots = (0, import_react33.useMemo)(() => dateTimePickerStyle({ ...variantProps }), [variantProps]);
9681
+ const slots = (0, import_react34.useMemo)(() => dateTimePickerStyle({ ...variantProps }), [variantProps]);
9617
9682
  const {
9618
9683
  selectedDate,
9619
9684
  selectedTime,
@@ -9634,32 +9699,32 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9634
9699
  initialTime: typeof value === "string" ? value : void 0
9635
9700
  });
9636
9701
  const position = targetRect ? calculatePositionWithScroll(targetRect) : null;
9637
- const getBaseProps = (0, import_react33.useCallback)(
9702
+ const getBaseProps = (0, import_react34.useCallback)(
9638
9703
  () => ({
9639
9704
  className: slots.base({ class: classNames == null ? void 0 : classNames.base })
9640
9705
  }),
9641
9706
  [slots, classNames]
9642
9707
  );
9643
- const getLabelProps = (0, import_react33.useCallback)(
9708
+ const getLabelProps = (0, import_react34.useCallback)(
9644
9709
  () => ({
9645
9710
  className: slots.label({ class: classNames == null ? void 0 : classNames.label })
9646
9711
  }),
9647
9712
  [slots, classNames]
9648
9713
  );
9649
- const getInnerWrapperProps = (0, import_react33.useCallback)(
9714
+ const getInnerWrapperProps = (0, import_react34.useCallback)(
9650
9715
  () => ({
9651
9716
  className: slots.innerWrapper({ class: classNames == null ? void 0 : classNames.innerWrapper })
9652
9717
  }),
9653
9718
  [slots, classNames]
9654
9719
  );
9655
- const getInputWrapperProps = (0, import_react33.useCallback)(
9720
+ const getInputWrapperProps = (0, import_react34.useCallback)(
9656
9721
  () => ({
9657
9722
  className: slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }),
9658
9723
  ref: datePickerRef
9659
9724
  }),
9660
9725
  [slots, classNames]
9661
9726
  );
9662
- const getInputProps = (0, import_react33.useCallback)(
9727
+ const getInputProps = (0, import_react34.useCallback)(
9663
9728
  () => ({
9664
9729
  ...inputProps,
9665
9730
  ref: ref || dateInputRef,
@@ -9690,33 +9755,33 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9690
9755
  }),
9691
9756
  [inputProps, ref, dateInputRef, slots, classNames == null ? void 0 : classNames.input, selectedDate, selectedTime, type, value]
9692
9757
  );
9693
- const getContentProps = (0, import_react33.useCallback)(
9758
+ const getContentProps = (0, import_react34.useCallback)(
9694
9759
  () => ({
9695
9760
  className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
9696
9761
  size: originalProps.size
9697
9762
  }),
9698
9763
  [slots, classNames, originalProps.size]
9699
9764
  );
9700
- const getErrorMessageProps = (0, import_react33.useCallback)(
9765
+ const getErrorMessageProps = (0, import_react34.useCallback)(
9701
9766
  () => ({
9702
9767
  className: slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })
9703
9768
  }),
9704
9769
  [slots, classNames]
9705
9770
  );
9706
9771
  const renderStartContent = () => {
9707
- if (import_react33.default.isValidElement(startContent)) {
9772
+ if (import_react34.default.isValidElement(startContent)) {
9708
9773
  const existingProps = startContent.props;
9709
9774
  const mergedProps = {
9710
9775
  ...getContentProps(),
9711
9776
  className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
9712
9777
  };
9713
- return import_react33.default.cloneElement(startContent, mergedProps);
9778
+ return import_react34.default.cloneElement(startContent, mergedProps);
9714
9779
  } else {
9715
9780
  const contentProps = getContentProps();
9716
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ...contentProps, children: startContent });
9781
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ...contentProps, children: startContent });
9717
9782
  }
9718
9783
  };
9719
- const renderDateTimePickerIcon = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ...getContentProps(), onClick: handleToggleDatePicker, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
9784
+ const renderDateTimePickerIcon = () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ...getContentProps(), onClick: handleToggleDatePicker, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
9720
9785
  Icon_default,
9721
9786
  {
9722
9787
  name: type === "time" ? "clock" : "calendar",
@@ -9726,18 +9791,18 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9726
9791
  }
9727
9792
  ) });
9728
9793
  const renderContentWithIcon = () => {
9729
- if (import_react33.default.isValidElement(endContent)) {
9794
+ if (import_react34.default.isValidElement(endContent)) {
9730
9795
  const existingProps = endContent.props;
9731
9796
  const mergedProps = {
9732
9797
  ...getContentProps(),
9733
9798
  className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
9734
9799
  };
9735
- return import_react33.default.cloneElement(endContent, mergedProps);
9800
+ return import_react34.default.cloneElement(endContent, mergedProps);
9736
9801
  } else if (errorMessage) {
9737
9802
  const iconProps = { ...getContentProps(), className: getContentProps().className };
9738
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
9803
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
9739
9804
  } else {
9740
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, {});
9805
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, {});
9741
9806
  }
9742
9807
  };
9743
9808
  const renderEndContent = () => {
@@ -9752,20 +9817,20 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9752
9817
  return renderContentWithIcon();
9753
9818
  }
9754
9819
  };
9755
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
9756
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...getBaseProps(), children: [
9757
- label && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("label", { ...getLabelProps(), children: label }),
9758
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...getInnerWrapperProps(), children: [
9759
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...getInputWrapperProps(), children: [
9820
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
9821
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { ...getBaseProps(), children: [
9822
+ label && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { ...getLabelProps(), children: label }),
9823
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { ...getInnerWrapperProps(), children: [
9824
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { ...getInputWrapperProps(), children: [
9760
9825
  startContent && renderStartContent(),
9761
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("input", { ...getInputProps() }),
9826
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { ...getInputProps() }),
9762
9827
  renderEndContent()
9763
9828
  ] }),
9764
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { ...getErrorMessageProps(), children: errorMessage })
9829
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { ...getErrorMessageProps(), children: errorMessage })
9765
9830
  ] })
9766
9831
  ] }),
9767
- targetRect && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: (0, import_react_dom4.createPortal)(
9768
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
9832
+ targetRect && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children: (0, import_react_dom4.createPortal)(
9833
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
9769
9834
  "div",
9770
9835
  {
9771
9836
  ref: datePickerWrapperRef,
@@ -9776,7 +9841,7 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9776
9841
  zIndex: 1e3
9777
9842
  },
9778
9843
  children: [
9779
- type === "date" && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
9844
+ type === "date" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
9780
9845
  calendar_default,
9781
9846
  {
9782
9847
  color: originalProps.color,
@@ -9788,7 +9853,7 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9788
9853
  }
9789
9854
  }
9790
9855
  ),
9791
- type === "time" && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
9856
+ type === "time" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
9792
9857
  timePicker_default,
9793
9858
  {
9794
9859
  color: originalProps.color,
@@ -9936,6 +10001,79 @@ var dateTimePickerStyle = tv({
9936
10001
  }
9937
10002
  ]
9938
10003
  });
10004
+
10005
+ // src/components/tree/tree.tsx
10006
+ var import_react35 = require("react");
10007
+
10008
+ // src/assets/images/cogwheel.png
10009
+ var cogwheel_default = "./cogwheel-U2B3CWEL.png";
10010
+
10011
+ // src/assets/images/folder.svg
10012
+ var folder_default = "./folder-RO3QTLGS.svg";
10013
+
10014
+ // src/components/tree/tree.tsx
10015
+ var import_jsx_runtime35 = require("react/jsx-runtime");
10016
+ var TreeNodeItem = (0, import_react35.forwardRef)(({ node, depth }, _ref) => {
10017
+ var _a;
10018
+ const [isOpen, setIsOpen] = (0, import_react35.useState)(false);
10019
+ const slots = (0, import_react35.useMemo)(() => treeStyle(), []);
10020
+ const toggleOpen = (0, import_react35.useCallback)(() => {
10021
+ setIsOpen((prev) => !prev);
10022
+ }, []);
10023
+ const handleClick = () => {
10024
+ var _a2;
10025
+ toggleOpen();
10026
+ (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
10027
+ };
10028
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: depth > 1 ? "ml-[30px]" : "", children: [
10029
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: slots.label(), onClick: handleClick, children: [
10030
+ node.children && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
10031
+ Icon_default,
10032
+ {
10033
+ name: "right-chevron",
10034
+ className: `text-neutral-main transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
10035
+ }
10036
+ ),
10037
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("img", { src: folder_default, alt: "folder", width: 25, height: 25 }),
10038
+ node.label
10039
+ ] }),
10040
+ isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TreeNodeItem, { node: child, depth: depth + 1 }, child.id)))
10041
+ ] });
10042
+ });
10043
+ var Tree = (0, import_react35.forwardRef)(({ headerContent, group }, ref) => {
10044
+ const { label, data, onClick } = group;
10045
+ const slots = (0, import_react35.useMemo)(() => treeStyle(), []);
10046
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: slots.base(), ref, children: [
10047
+ headerContent && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: headerContent }),
10048
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
10049
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: slots.label(), onClick, children: [
10050
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("img", { src: cogwheel_default, alt: "cogwheel", width: 25, height: 25 }),
10051
+ label
10052
+ ] }),
10053
+ data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TreeNodeItem, { node, depth: 1 }, node.id))
10054
+ ] })
10055
+ ] });
10056
+ });
10057
+ TreeNodeItem.displayName = "TreeNodeItem";
10058
+ Tree.displayName = "Tree";
10059
+ var tree_default = Tree;
10060
+ var treeStyle = tv({
10061
+ slots: {
10062
+ base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]"],
10063
+ label: [
10064
+ "flex",
10065
+ "items-center",
10066
+ "gap-[5px]",
10067
+ "text-md",
10068
+ "font-bold",
10069
+ "text-body-foreground",
10070
+ "hover:bg-neutral-soft",
10071
+ "p-[5px]",
10072
+ "rounded-[5px]",
10073
+ "cursor-pointer"
10074
+ ]
10075
+ }
10076
+ });
9939
10077
  // Annotate the CommonJS export names for ESM import in node:
9940
10078
  0 && (module.exports = {
9941
10079
  Avatar,
@@ -9946,6 +10084,7 @@ var dateTimePickerStyle = tv({
9946
10084
  CheckBox,
9947
10085
  Chip,
9948
10086
  DateTimePicker,
10087
+ FormTable,
9949
10088
  Icon,
9950
10089
  IconButton,
9951
10090
  Input,
@@ -9964,6 +10103,7 @@ var dateTimePickerStyle = tv({
9964
10103
  Toast,
9965
10104
  ToastProvider,
9966
10105
  Tooltip,
10106
+ Tree,
9967
10107
  deepnoidUi,
9968
10108
  iconTemplate,
9969
10109
  tv,