@deepnoid/ui 0.1.18 → 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 (143) hide show
  1. package/.turbo/turbo-build.log +209 -180
  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-ETX4WR6J.mjs → chunk-63WXGSTV.mjs} +6 -4
  13. package/dist/{chunk-BFM3LPBK.mjs → chunk-6HX3PPL6.mjs} +1 -1
  14. package/dist/{chunk-RPDPB4JP.mjs → chunk-6KXBXGYR.mjs} +3 -3
  15. package/dist/chunk-7USF56CT.mjs +8 -0
  16. package/dist/chunk-BPVRXFIC.mjs +82 -0
  17. package/dist/{chunk-MJT6ZW4C.mjs → chunk-BXXAMH3R.mjs} +4 -4
  18. package/dist/{chunk-UHFJ7ZFM.mjs → chunk-EGHTZLZJ.mjs} +2 -2
  19. package/dist/{chunk-QIDZXCYP.mjs → chunk-EYVRTVRM.mjs} +3 -3
  20. package/dist/{chunk-DADMVOYI.mjs → chunk-HWL7TPUN.mjs} +1 -1
  21. package/dist/chunk-IZM66FHP.mjs +8 -0
  22. package/dist/{chunk-7TXQPX4O.mjs → chunk-JOCMCOEK.mjs} +2 -2
  23. package/dist/{chunk-2YRRWNYG.mjs → chunk-LNYMVBV5.mjs} +14 -5
  24. package/dist/chunk-MBLZYQCN.mjs +1 -0
  25. package/dist/{chunk-P6NVCCBZ.mjs → chunk-OF3X4BXG.mjs} +1 -1
  26. package/dist/chunk-OUAKGMDW.mjs +168 -0
  27. package/dist/{chunk-AG7AWQKH.mjs → chunk-OWG4RL2T.mjs} +3 -3
  28. package/dist/{chunk-7A5M7DRD.mjs → chunk-PNRS23HE.mjs} +4 -4
  29. package/dist/{chunk-FONJYZKH.mjs → chunk-PZIVMTKX.mjs} +4 -4
  30. package/dist/{chunk-5ANQDLRS.mjs → chunk-Q72LZAPG.mjs} +1 -1
  31. package/dist/{chunk-K7Z6PVXE.mjs → chunk-VQROXH43.mjs} +4 -4
  32. package/dist/{chunk-UYPVP36M.mjs → chunk-XQGD4ZIX.mjs} +1 -1
  33. package/dist/chunk-YBDA3WQP.mjs +71 -0
  34. package/dist/chunk-ZUSUVPYV.mjs +135 -0
  35. package/dist/cogwheel-U2B3CWEL.png +0 -0
  36. package/dist/components/avatar/avatar.js +75 -9
  37. package/dist/components/avatar/avatar.mjs +2 -2
  38. package/dist/components/avatar/index.js +75 -9
  39. package/dist/components/avatar/index.mjs +2 -2
  40. package/dist/components/breadcrumb/breadcrumb.js +75 -9
  41. package/dist/components/breadcrumb/breadcrumb.mjs +7 -7
  42. package/dist/components/breadcrumb/index.js +75 -9
  43. package/dist/components/breadcrumb/index.mjs +7 -7
  44. package/dist/components/button/button.js +75 -9
  45. package/dist/components/button/button.mjs +4 -4
  46. package/dist/components/button/icon-button.js +75 -9
  47. package/dist/components/button/icon-button.mjs +4 -4
  48. package/dist/components/button/index.js +75 -9
  49. package/dist/components/button/index.mjs +6 -6
  50. package/dist/components/chip/chip.js +75 -9
  51. package/dist/components/chip/chip.mjs +3 -3
  52. package/dist/components/chip/index.js +75 -9
  53. package/dist/components/chip/index.mjs +3 -3
  54. package/dist/components/dateTimePicker/calendar.js +75 -9
  55. package/dist/components/dateTimePicker/calendar.mjs +3 -3
  56. package/dist/components/dateTimePicker/dateTimePicker.js +75 -9
  57. package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
  58. package/dist/components/dateTimePicker/index.js +75 -9
  59. package/dist/components/dateTimePicker/index.mjs +7 -7
  60. package/dist/components/dateTimePicker/timePicker.js +75 -9
  61. package/dist/components/dateTimePicker/timePicker.mjs +5 -5
  62. package/dist/components/icon/Icon.d.mts +6 -2
  63. package/dist/components/icon/Icon.d.ts +6 -2
  64. package/dist/components/icon/Icon.js +75 -9
  65. package/dist/components/icon/Icon.mjs +2 -2
  66. package/dist/components/icon/index.js +75 -9
  67. package/dist/components/icon/index.mjs +2 -2
  68. package/dist/components/icon/template.d.mts +2 -1
  69. package/dist/components/icon/template.d.ts +2 -1
  70. package/dist/components/icon/template.js +75 -9
  71. package/dist/components/icon/template.mjs +1 -1
  72. package/dist/components/input/index.js +76 -10
  73. package/dist/components/input/index.mjs +3 -3
  74. package/dist/components/input/input.js +76 -10
  75. package/dist/components/input/input.mjs +3 -3
  76. package/dist/components/list/index.js +75 -9
  77. package/dist/components/list/index.mjs +6 -6
  78. package/dist/components/list/listItem.js +75 -9
  79. package/dist/components/list/listItem.mjs +4 -4
  80. package/dist/components/modal/index.d.mts +0 -3
  81. package/dist/components/modal/index.d.ts +0 -3
  82. package/dist/components/modal/index.js +205 -158
  83. package/dist/components/modal/index.mjs +9 -7
  84. package/dist/components/modal/modal.d.mts +43 -105
  85. package/dist/components/modal/modal.d.ts +43 -105
  86. package/dist/components/modal/modal.js +206 -164
  87. package/dist/components/modal/modal.mjs +10 -10
  88. package/dist/components/pagination/index.js +76 -10
  89. package/dist/components/pagination/index.mjs +4 -4
  90. package/dist/components/pagination/pagination.js +76 -10
  91. package/dist/components/pagination/pagination.mjs +4 -4
  92. package/dist/components/ripple/index.mjs +3 -3
  93. package/dist/components/select/index.js +75 -9
  94. package/dist/components/select/index.mjs +4 -4
  95. package/dist/components/select/option.js +75 -9
  96. package/dist/components/select/option.mjs +3 -3
  97. package/dist/components/select/select.js +75 -9
  98. package/dist/components/select/select.mjs +4 -4
  99. package/dist/components/table/form-table.d.mts +52 -0
  100. package/dist/components/table/form-table.d.ts +52 -0
  101. package/dist/components/table/form-table.js +365 -0
  102. package/dist/components/table/form-table.mjs +9 -0
  103. package/dist/components/table/index.d.mts +2 -0
  104. package/dist/components/table/index.d.ts +2 -0
  105. package/dist/components/table/index.js +134 -17
  106. package/dist/components/table/index.mjs +12 -8
  107. package/dist/components/table/table-body.d.mts +3 -1
  108. package/dist/components/table/table-body.d.ts +3 -1
  109. package/dist/components/table/table-body.js +6 -4
  110. package/dist/components/table/table-body.mjs +1 -1
  111. package/dist/components/table/table.d.mts +1 -0
  112. package/dist/components/table/table.d.ts +1 -0
  113. package/dist/components/table/table.js +91 -17
  114. package/dist/components/table/table.mjs +7 -7
  115. package/dist/components/toast/index.js +239 -97
  116. package/dist/components/toast/index.mjs +5 -4
  117. package/dist/components/toast/toast.d.mts +40 -81
  118. package/dist/components/toast/toast.d.ts +40 -81
  119. package/dist/components/toast/toast.js +210 -56
  120. package/dist/components/toast/toast.mjs +4 -3
  121. package/dist/components/toast/use-toast.d.mts +6 -10
  122. package/dist/components/toast/use-toast.d.ts +6 -10
  123. package/dist/components/toast/use-toast.js +239 -97
  124. package/dist/components/toast/use-toast.mjs +5 -4
  125. package/dist/components/tree/index.d.mts +2 -0
  126. package/dist/components/tree/index.d.ts +2 -0
  127. package/dist/components/tree/index.js +4371 -0
  128. package/dist/components/tree/index.mjs +15 -0
  129. package/dist/components/tree/tree.d.mts +20 -0
  130. package/dist/components/tree/tree.d.ts +20 -0
  131. package/dist/components/tree/tree.js +4365 -0
  132. package/dist/components/tree/tree.mjs +14 -0
  133. package/dist/folder-RO3QTLGS.svg +9 -0
  134. package/dist/index.d.mts +3 -0
  135. package/dist/index.d.ts +3 -0
  136. package/dist/index.js +589 -441
  137. package/dist/index.mjs +66 -55
  138. package/package.json +1 -1
  139. package/types/images.d.ts +14 -0
  140. package/dist/chunk-5OBP42D6.mjs +0 -117
  141. package/dist/chunk-HDNQOLUJ.mjs +0 -83
  142. package/dist/chunk-RXIFDECK.mjs +0 -213
  143. /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]"],
@@ -6774,7 +6842,9 @@ var TableBody = ({
6774
6842
  checkedRows,
6775
6843
  onCheckRow,
6776
6844
  emptyContent,
6777
- classNames
6845
+ isLoading,
6846
+ classNames,
6847
+ className
6778
6848
  }) => {
6779
6849
  const generateColumnStyles = (0, import_react13.useCallback)((column) => {
6780
6850
  const alignClass = column.align ? `text-${column.align}` : "text-left";
@@ -6812,8 +6882,8 @@ var TableBody = ({
6812
6882
  );
6813
6883
  const hasRows = rows.length > 0;
6814
6884
  const colSpan = (columns.length || 1) + (selectableRows ? 1 : 0);
6815
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("tbody", { className: slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), children: [
6816
- hasRows && rows.map((row, rowIndex) => {
6885
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("tbody", { className: clsx(slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), className), children: [
6886
+ !isLoading && hasRows && rows.map((row, rowIndex) => {
6817
6887
  const isRowChecked = checkedRows.has(rowIndex);
6818
6888
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "aria-checked": isRowChecked, children: [
6819
6889
  columns.map((column) => /* @__PURE__ */ (0, import_react14.createElement)("td", { ...getCellProps(column, row), key: column.field })),
@@ -6827,7 +6897,7 @@ var TableBody = ({
6827
6897
  ) }) })
6828
6898
  ] }, rowIndex);
6829
6899
  }),
6830
- !hasRows && emptyContent && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "border-none"), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("td", { colSpan, className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) })
6900
+ !isLoading && !hasRows && emptyContent && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "border-none"), children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("td", { colSpan, className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) })
6831
6901
  ] });
6832
6902
  };
6833
6903
  var table_body_default = TableBody;
@@ -7168,13 +7238,14 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
7168
7238
  pagination,
7169
7239
  onPageChange,
7170
7240
  emptyContent,
7241
+ isLoading,
7171
7242
  className,
7172
7243
  color
7173
7244
  } = { ...props, ...variantProps };
7174
7245
  const [checkedRows, setCheckedRows] = (0, import_react17.useState)(/* @__PURE__ */ new Set());
7175
7246
  const divRef = (0, import_react17.useRef)(null);
7176
7247
  const { page, perPage } = pagination || { page: 1, perPage: 10 };
7177
- const showPagination = pagination && typeof totalData === "number";
7248
+ const showPagination = pagination && typeof totalData === "number" && !isLoading;
7178
7249
  (0, import_react17.useImperativeHandle)(ref, () => ({
7179
7250
  checkedRows,
7180
7251
  setCheckedRows
@@ -7193,7 +7264,7 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
7193
7264
  };
7194
7265
  const slots = (0, import_react17.useMemo)(() => tableStyle(variantProps), [variantProps]);
7195
7266
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { ref: divRef, "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
7196
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(scrollArea_default, { size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
7267
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
7197
7268
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
7198
7269
  table_head_default,
7199
7270
  {
@@ -7217,7 +7288,12 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
7217
7288
  checkedRows,
7218
7289
  onCheckRow: handleCheck,
7219
7290
  emptyContent,
7220
- classNames
7291
+ isLoading,
7292
+ classNames,
7293
+ className: clsx(
7294
+ "transition-all duration-150 ease-out",
7295
+ isLoading ? "-translate-y-2 opacity-0" : "translate-y-0 opacity-100"
7296
+ )
7221
7297
  }
7222
7298
  )
7223
7299
  ] }) }),
@@ -7451,18 +7527,59 @@ var tableStyle = (0, import_tailwind_variants15.tv)({
7451
7527
  }
7452
7528
  });
7453
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
+
7454
7571
  // src/components/select/select.tsx
7455
- var import_react19 = require("react");
7572
+ var import_react20 = require("react");
7456
7573
  var import_react_dom = require("react-dom");
7457
7574
 
7458
7575
  // src/components/select/useSelect.tsx
7459
- var import_react18 = require("react");
7576
+ var import_react19 = require("react");
7460
7577
  var useSelect = ({ options, defaultOption, onChange }) => {
7461
- const [selectedOption, setSelectedOption] = (0, import_react18.useState)(defaultOption);
7462
- const [targetRect, setTargetRect] = (0, import_react18.useState)(null);
7463
- const [optionWrapperHeight, setOptionWrapperHeight] = (0, import_react18.useState)(0);
7464
- const selectWrapperRef = (0, import_react18.useRef)(null);
7465
- 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);
7466
7583
  const calculatePositionWithScroll = (targetRect2, optionWrapperHeight2) => {
7467
7584
  const scrollTop = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop;
7468
7585
  const scrollLeft = window.scrollX || document.documentElement.scrollLeft || document.body.scrollLeft;
@@ -7485,7 +7602,7 @@ var useSelect = ({ options, defaultOption, onChange }) => {
7485
7602
  setSelectedOption(option);
7486
7603
  handleToggleSelect();
7487
7604
  };
7488
- (0, import_react18.useEffect)(() => {
7605
+ (0, import_react19.useEffect)(() => {
7489
7606
  const onClickOutside = (e) => {
7490
7607
  if (optionWrapperRef.current && !optionWrapperRef.current.contains(e.target)) {
7491
7608
  setTargetRect(null);
@@ -7494,7 +7611,7 @@ var useSelect = ({ options, defaultOption, onChange }) => {
7494
7611
  window.addEventListener("mousedown", onClickOutside);
7495
7612
  return () => window.removeEventListener("mousedown", onClickOutside);
7496
7613
  }, []);
7497
- (0, import_react18.useEffect)(() => {
7614
+ (0, import_react19.useEffect)(() => {
7498
7615
  if (optionWrapperRef.current) {
7499
7616
  setOptionWrapperHeight(optionWrapperRef.current.getBoundingClientRect().height);
7500
7617
  }
@@ -7512,10 +7629,10 @@ var useSelect = ({ options, defaultOption, onChange }) => {
7512
7629
  };
7513
7630
 
7514
7631
  // src/components/select/option.tsx
7515
- var import_jsx_runtime20 = require("react/jsx-runtime");
7632
+ var import_jsx_runtime21 = require("react/jsx-runtime");
7516
7633
  var Option = (props) => {
7517
7634
  const { base, option, icon } = optionStyle(props);
7518
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
7635
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
7519
7636
  "div",
7520
7637
  {
7521
7638
  title: props.option.value,
@@ -7525,8 +7642,8 @@ var Option = (props) => {
7525
7642
  props.isSelected && (node == null ? void 0 : node.scrollIntoView());
7526
7643
  },
7527
7644
  children: [
7528
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: option(), children: props.children }),
7529
- 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 }) })
7530
7647
  ]
7531
7648
  }
7532
7649
  );
@@ -7577,11 +7694,11 @@ var optionStyle = tv({
7577
7694
  });
7578
7695
 
7579
7696
  // src/components/select/select.tsx
7580
- var import_jsx_runtime21 = require("react/jsx-runtime");
7581
- 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) => {
7582
7699
  const [props, variantProps] = mapPropsVariants(originalProps, select.variantKeys);
7583
7700
  const { classNames, options, defaultOption, onChange, ...inputProps } = props;
7584
- const slots = (0, import_react19.useMemo)(() => select({ ...variantProps }), [variantProps]);
7701
+ const slots = (0, import_react20.useMemo)(() => select({ ...variantProps }), [variantProps]);
7585
7702
  const {
7586
7703
  targetRect,
7587
7704
  selectedOption,
@@ -7597,19 +7714,19 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
7597
7714
  onChange
7598
7715
  });
7599
7716
  const position = targetRect ? calculatePositionWithScroll(targetRect, optionWrapperHeight) : null;
7600
- const getBaseProps = (0, import_react19.useCallback)(
7717
+ const getBaseProps = (0, import_react20.useCallback)(
7601
7718
  () => ({
7602
7719
  className: slots.base({ class: classNames == null ? void 0 : classNames.base })
7603
7720
  }),
7604
7721
  [slots, classNames]
7605
7722
  );
7606
- const getLabelProps = (0, import_react19.useCallback)(
7723
+ const getLabelProps = (0, import_react20.useCallback)(
7607
7724
  () => ({
7608
7725
  className: slots.label({ class: classNames == null ? void 0 : classNames.label })
7609
7726
  }),
7610
7727
  [slots, classNames]
7611
7728
  );
7612
- const getSelectWrapperProps = (0, import_react19.useCallback)(
7729
+ const getSelectWrapperProps = (0, import_react20.useCallback)(
7613
7730
  () => ({
7614
7731
  className: slots.selectWrapper({ class: classNames == null ? void 0 : classNames.selectWrapper }),
7615
7732
  ref: selectWrapperRef,
@@ -7617,7 +7734,7 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
7617
7734
  }),
7618
7735
  [slots, classNames]
7619
7736
  );
7620
- const getSelectProps = (0, import_react19.useCallback)(
7737
+ const getSelectProps = (0, import_react20.useCallback)(
7621
7738
  () => ({
7622
7739
  ...inputProps,
7623
7740
  ref,
@@ -7628,30 +7745,30 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
7628
7745
  }),
7629
7746
  [slots, classNames, inputProps, selectedOption, ref]
7630
7747
  );
7631
- const getOptionsWrapperProps = (0, import_react19.useCallback)(
7748
+ const getOptionsWrapperProps = (0, import_react20.useCallback)(
7632
7749
  () => ({
7633
7750
  className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
7634
7751
  ref: optionWrapperRef
7635
7752
  }),
7636
7753
  [slots, classNames]
7637
7754
  );
7638
- const getErrorMessageProps = (0, import_react19.useCallback)(
7755
+ const getErrorMessageProps = (0, import_react20.useCallback)(
7639
7756
  () => ({
7640
7757
  className: slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })
7641
7758
  }),
7642
7759
  [slots, classNames]
7643
7760
  );
7644
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
7645
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { ...getBaseProps(), children: [
7646
- props.label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { ...getLabelProps(), children: props.label }),
7647
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { "data-expanded": !!targetRect, ...getSelectWrapperProps(), children: [
7648
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("input", { ...getSelectProps() }),
7649
- /* @__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 })
7650
7767
  ] }),
7651
- 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 })
7652
7769
  ] }),
7653
- targetRect && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: (0, import_react_dom.createPortal)(
7654
- /* @__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)(
7655
7772
  "div",
7656
7773
  {
7657
7774
  ...getOptionsWrapperProps(),
@@ -7661,7 +7778,7 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
7661
7778
  left: position == null ? void 0 : position.left,
7662
7779
  width: targetRect.width
7663
7780
  },
7664
- children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7781
+ children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7665
7782
  option_default,
7666
7783
  {
7667
7784
  variant: originalProps.variant,
@@ -7810,16 +7927,16 @@ var select = tv({
7810
7927
  });
7811
7928
 
7812
7929
  // src/components/chip/chip.tsx
7813
- var import_react20 = require("react");
7814
- var import_jsx_runtime22 = require("react/jsx-runtime");
7815
- 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) => {
7816
7933
  var _a;
7817
7934
  const [rawProps, variantProps] = mapPropsVariants(originalProps, chipStyle.variantKeys);
7818
7935
  const props = { ...rawProps, ...variantProps };
7819
7936
  const Component = props.onClick ? "button" : "div";
7820
- const slots = (0, import_react20.useMemo)(() => chipStyle({ ...variantProps }), [variantProps]);
7821
- const renderIcon = (name) => name ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon_default, { name, fill: true, size: props.size, className: slots.icon() }) : null;
7822
- 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)(
7823
7940
  Component,
7824
7941
  {
7825
7942
  ref,
@@ -7995,13 +8112,13 @@ var chipStyle = tv({
7995
8112
  });
7996
8113
 
7997
8114
  // src/components/radio/radio.tsx
7998
- var import_react21 = require("react");
7999
- var import_jsx_runtime23 = require("react/jsx-runtime");
8000
- 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) => {
8001
8118
  const [props, variantProps] = mapPropsVariants(originalProps, radioStyle.variantKeys);
8002
8119
  const { children, classNames, labelPosition = "end", ...inputProps } = props;
8003
- const slots = (0, import_react21.useMemo)(() => radioStyle({ ...variantProps }), [variantProps]);
8004
- 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)(
8005
8122
  "label",
8006
8123
  {
8007
8124
  className: clsx(
@@ -8009,9 +8126,9 @@ var Radio = (0, import_react21.forwardRef)((originalProps, ref) => {
8009
8126
  labelPosition === "start" && slots.labelReverse({ class: classNames == null ? void 0 : classNames.labelReverse })
8010
8127
  ),
8011
8128
  children: [
8012
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { ...inputProps, type: "radio", ref }) }),
8013
- /* @__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 }) }) }),
8014
- /* @__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 }) })
8015
8132
  ]
8016
8133
  }
8017
8134
  );
@@ -8151,21 +8268,21 @@ var radioStyle = tv({
8151
8268
  });
8152
8269
 
8153
8270
  // src/components/switch/switch.tsx
8154
- var import_react22 = require("react");
8155
- var import_tailwind_variants20 = require("tailwind-variants");
8156
- var import_jsx_runtime24 = require("react/jsx-runtime");
8157
- 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) => {
8158
8275
  const [rawProps, variantProps] = mapPropsVariants(originalProps, switchStyle.variantKeys);
8159
8276
  const { size, color, isDisabled, disableAnimation, id, classNames, ...inputProps } = { ...rawProps, ...variantProps };
8160
- const slots = (0, import_react22.useMemo)(() => switchStyle({ ...variantProps }), [variantProps]);
8161
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
8162
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("input", { ...inputProps, id, ref, type: "checkbox", disabled: isDisabled, className: "hidden" }),
8163
- /* @__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 }) }) }) })
8164
8281
  ] });
8165
8282
  });
8166
8283
  Switch.displayName = "Switch";
8167
8284
  var switch_default = Switch;
8168
- var switchStyle = (0, import_tailwind_variants20.tv)({
8285
+ var switchStyle = (0, import_tailwind_variants21.tv)({
8169
8286
  slots: {
8170
8287
  base: ["group/switch", "relative", "max-w-fit", "inline-flex", "items-center", "justify-start", "cursor-pointer"],
8171
8288
  outerWrapper: [
@@ -8270,7 +8387,7 @@ var switchStyle = (0, import_tailwind_variants20.tv)({
8270
8387
  });
8271
8388
 
8272
8389
  // src/components/tooltip/tooltip.tsx
8273
- var import_react24 = require("react");
8390
+ var import_react25 = require("react");
8274
8391
  var import_react_dom2 = require("react-dom");
8275
8392
 
8276
8393
  // src/components/tooltip/tooltip-utils.ts
@@ -8393,11 +8510,11 @@ var getTailStyles = (placement) => {
8393
8510
  };
8394
8511
 
8395
8512
  // src/components/tooltip/useTooltip.ts
8396
- var import_react23 = require("react");
8513
+ var import_react24 = require("react");
8397
8514
  var useTooltip = ({ placement, offset, targetRect }) => {
8398
- const [tooltipPosition, setTooltipPosition] = (0, import_react23.useState)({ x: 0, y: 0 });
8399
- const tooltipRef = (0, import_react23.useRef)(null);
8400
- (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)(() => {
8401
8518
  if (targetRect && tooltipRef.current) {
8402
8519
  const { width, height } = tooltipRef.current.getBoundingClientRect();
8403
8520
  const scrollX = window.scrollX;
@@ -8427,29 +8544,29 @@ var useTooltip = ({ placement, offset, targetRect }) => {
8427
8544
  };
8428
8545
 
8429
8546
  // src/components/tooltip/tooltip.tsx
8430
- var import_jsx_runtime25 = require("react/jsx-runtime");
8431
- 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) => {
8432
8549
  const [props, variantProps] = mapPropsVariants(originalProps, tooltipStyle.variantKeys);
8433
8550
  const { placement = "top", offset = 5, delay = 100, persistent = false, classNames } = props;
8434
- const slots = (0, import_react24.useMemo)(() => tooltipStyle({ ...variantProps }), [variantProps]);
8435
- 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);
8436
8553
  const { tooltipPosition, tooltipRef } = useTooltip({
8437
8554
  placement,
8438
8555
  offset,
8439
8556
  delay,
8440
8557
  targetRect
8441
8558
  });
8442
- const childrenRef = (0, import_react24.useRef)(null);
8443
- const delayTimeoutRef = (0, import_react24.useRef)(null);
8444
- 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)(
8445
8562
  (slotKey, classNameKey) => ({
8446
8563
  className: slots[slotKey]({ class: classNames == null ? void 0 : classNames[classNameKey] })
8447
8564
  }),
8448
8565
  [slots, classNames]
8449
8566
  );
8450
- const getBaseProps = (0, import_react24.useCallback)(() => getProps("base", "base"), [getProps]);
8451
- const getContentProps = (0, import_react24.useCallback)(() => getProps("content", "content"), [getProps]);
8452
- 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)(() => {
8453
8570
  if (childrenRef.current) {
8454
8571
  const rect = childrenRef.current.getBoundingClientRect();
8455
8572
  setTargetRect({
@@ -8462,16 +8579,16 @@ var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
8462
8579
  });
8463
8580
  }
8464
8581
  }, []);
8465
- const hideTooltip = (0, import_react24.useCallback)(() => {
8582
+ const hideTooltip = (0, import_react25.useCallback)(() => {
8466
8583
  if (!persistent) {
8467
8584
  delayTimeoutRef.current = window.setTimeout(() => setTargetRect(null), delay);
8468
8585
  }
8469
8586
  }, [persistent, delay]);
8470
- (0, import_react24.useEffect)(() => {
8587
+ (0, import_react25.useEffect)(() => {
8471
8588
  if (persistent) showTooltip();
8472
8589
  }, [persistent, showTooltip]);
8473
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
8474
- /* @__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)(
8475
8592
  "div",
8476
8593
  {
8477
8594
  ref: (node) => {
@@ -8488,7 +8605,7 @@ var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
8488
8605
  }
8489
8606
  ),
8490
8607
  targetRect && (0, import_react_dom2.createPortal)(
8491
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
8608
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
8492
8609
  "div",
8493
8610
  {
8494
8611
  ref: tooltipRef,
@@ -8501,7 +8618,7 @@ var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
8501
8618
  },
8502
8619
  children: [
8503
8620
  props.content,
8504
- variantProps.tail && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
8621
+ variantProps.tail && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
8505
8622
  "div",
8506
8623
  {
8507
8624
  className: `absolute h-2 w-2 rotate-45 bg-inherit ${getTailClassName(placement)}`,
@@ -8552,110 +8669,29 @@ var tooltipStyle = tv({
8552
8669
  });
8553
8670
 
8554
8671
  // src/components/modal/modal.tsx
8555
- var import_react25 = require("react");
8672
+ var import_react26 = require("react");
8556
8673
  var import_react_dom3 = require("react-dom");
8557
- var import_jsx_runtime26 = require("react/jsx-runtime");
8558
- var Modal = (0, import_react25.forwardRef)((originalProps, ref) => {
8559
- 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);
8560
8677
  const {
8561
8678
  classNames,
8562
8679
  isOpen,
8563
- icon,
8564
8680
  title,
8565
- subTitle,
8566
8681
  content,
8567
8682
  confirmButtonText,
8568
8683
  cancelButtonText,
8569
- showCloseButton,
8570
- isDismissable = true,
8684
+ showCloseButton = true,
8571
8685
  isKeyboardDismissDisabled = false,
8572
8686
  onConfirm,
8573
8687
  onCancel
8574
- } = props;
8575
- const slots = (0, import_react25.useMemo)(() => modal({ ...variantProps }), [...Object.values(variantProps)]);
8576
- const getBackdropProps = (0, import_react25.useCallback)(
8577
- () => ({
8578
- className: slots.backdrop({ class: classNames == null ? void 0 : classNames.backdrop }),
8579
- onClick: (e) => {
8580
- if (isDismissable && e.target === e.currentTarget && onCancel) {
8581
- onCancel();
8582
- }
8583
- }
8584
- }),
8585
- [slots, classNames == null ? void 0 : classNames.backdrop, isDismissable, onCancel]
8586
- );
8587
- const getModalWrapperProps = (0, import_react25.useCallback)(
8588
- () => ({
8589
- className: slots.modalWrapper({ class: classNames == null ? void 0 : classNames.modalWrapper }),
8590
- "data-icon-visibility": typeof icon !== "undefined"
8591
- }),
8592
- [slots, classNames == null ? void 0 : classNames.modalWrapper, icon]
8593
- );
8594
- const getIconProps = (0, import_react25.useCallback)(
8595
- () => ({
8596
- className: slots.icon({ class: [classNames == null ? void 0 : classNames.icon] })
8597
- }),
8598
- [slots, classNames == null ? void 0 : classNames.icon]
8599
- );
8600
- const getCloseIconProps = (0, import_react25.useCallback)(
8601
- () => ({
8602
- className: slots.closeIcon({ class: [classNames == null ? void 0 : classNames.closeIcon, showCloseButton ? "" : "hidden"] })
8603
- }),
8604
- [slots, classNames == null ? void 0 : classNames.closeIcon, showCloseButton]
8605
- );
8606
- const getBodyWrapperProps = (0, import_react25.useCallback)(
8607
- () => ({
8608
- className: slots.bodyWrapper({ class: classNames == null ? void 0 : classNames.bodyWrapper })
8609
- }),
8610
- [slots, classNames == null ? void 0 : classNames.bodyWrapper]
8611
- );
8612
- const getTitleWrapperProps = (0, import_react25.useCallback)(
8613
- () => ({
8614
- className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper })
8615
- }),
8616
- [slots, classNames == null ? void 0 : classNames.titleWrapper]
8617
- );
8618
- const getTitleProps = (0, import_react25.useCallback)(
8619
- () => ({
8620
- className: slots.title({ class: classNames == null ? void 0 : classNames.title })
8621
- }),
8622
- [slots, classNames == null ? void 0 : classNames.title]
8623
- );
8624
- const getSubTitleProps = (0, import_react25.useCallback)(
8625
- () => ({
8626
- className: slots.subTitle({ class: classNames == null ? void 0 : classNames.subTitle })
8627
- }),
8628
- [slots, classNames == null ? void 0 : classNames.subTitle]
8629
- );
8630
- const getBodyProps = (0, import_react25.useCallback)(
8631
- () => ({
8632
- className: slots.body({ class: classNames == null ? void 0 : classNames.body })
8633
- }),
8634
- [slots, classNames == null ? void 0 : classNames.body]
8635
- );
8636
- const getContentProps = (0, import_react25.useCallback)(
8637
- () => ({
8638
- className: slots.content({ class: classNames == null ? void 0 : classNames.content })
8639
- }),
8640
- [slots, classNames == null ? void 0 : classNames.content]
8641
- );
8642
- const getFooterWrapperProps = (0, import_react25.useCallback)(
8643
- () => ({
8644
- className: slots.footerWrapper({ class: classNames == null ? void 0 : classNames.footerWrapper })
8645
- }),
8646
- [slots, classNames == null ? void 0 : classNames.footerWrapper]
8647
- );
8648
- (0, import_react25.useEffect)(() => {
8649
- if (isOpen) {
8650
- document.body.classList.add("overflow-hidden");
8651
- } else {
8652
- document.body.classList.remove("overflow-hidden");
8653
- }
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);
8654
8692
  if (!isOpen || isKeyboardDismissDisabled) return;
8655
8693
  const handleKeyDown = (e) => {
8656
- if (e.key === "Escape" && onCancel) {
8657
- onCancel();
8658
- }
8694
+ if (e.key === "Escape") onCancel == null ? void 0 : onCancel();
8659
8695
  };
8660
8696
  document.addEventListener("keydown", handleKeyDown);
8661
8697
  return () => {
@@ -8663,82 +8699,83 @@ var Modal = (0, import_react25.forwardRef)((originalProps, ref) => {
8663
8699
  document.body.classList.remove("overflow-hidden");
8664
8700
  };
8665
8701
  }, [isOpen, isKeyboardDismissDisabled, onCancel]);
8666
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, { children: isOpen && (0, import_react_dom3.createPortal)(
8667
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getBackdropProps(), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ref, ...getModalWrapperProps(), children: [
8668
- 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 }),
8669
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ...getBodyWrapperProps(), children: [
8670
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon_default, { name: "close", ...getCloseIconProps(), onClick: onCancel }),
8671
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ...getBodyProps(), children: [
8672
- (title || subTitle) && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ...getTitleWrapperProps(), children: [
8673
- title && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getTitleProps(), children: title }),
8674
- subTitle && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getSubTitleProps(), children: subTitle })
8675
- ] }),
8676
- content && typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getContentProps(), children: content }) : content,
8677
- (cancelButtonText || confirmButtonText) && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ...getFooterWrapperProps(), children: [
8678
- cancelButtonText && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(button_default, { variant: "outline", color: originalProps.color, fullWidth: true, onClick: onCancel, children: cancelButtonText }),
8679
- 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 })
8680
8722
  ] })
8681
8723
  ] })
8682
- ] })
8683
- ] }) }),
8724
+ ] }) })
8725
+ ] }),
8684
8726
  document.body
8685
- ) });
8727
+ );
8686
8728
  });
8687
8729
  Modal.displayName = "Modal";
8688
8730
  var modal_default = Modal;
8689
8731
  var modal = tv({
8690
8732
  slots: {
8691
- backdrop: ["relative w-screen h-screen fixed inset-0 bg-black/60", "z-[900]"],
8692
- modalWrapper: ["group/modal", "absolute", "top-1/2", "-translate-y-1/2", "left-1/2", "-translate-x-1/2"],
8693
- icon: ["absolute", "top-[-40px]", "left-1/2", "-translate-x-1/2", "z-10"],
8694
- closeIcon: [
8733
+ base: [
8734
+ "group/modal",
8695
8735
  "absolute",
8696
- "top-[20px]",
8697
- "right-[20px]",
8698
- "cursor-pointer",
8699
- "z-10",
8700
- "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"
8701
8742
  ],
8702
- titleWrapper: ["relative", "flex", "flex-col", "gap-[10px]"],
8703
- title: "text-h5 text-center text-foreground",
8704
- subTitle: "text-lg text-center text-neutral-dark",
8705
- bodyWrapper: [
8706
- "min-w-[400px]",
8707
- "flex flex-col justify-center",
8708
- "p-[20px]",
8743
+ modalWrapper: [
8744
+ "min-w-[450px]",
8745
+ "flex",
8746
+ "flex-col",
8747
+ "justify-center",
8748
+ "p-[30px]",
8709
8749
  "bg-background",
8710
- "shadow-drop shadow-foreground/20 rounded-xxlg",
8750
+ "shadow-drop",
8751
+ "shadow-foreground/20",
8752
+ "rounded-xlg",
8711
8753
  "overflow-hidden",
8712
8754
  "group-data-[icon-visibility=true]/modal:mt-[0]",
8713
8755
  "group-data-[icon-visibility=true]/modal:pt-[60px]"
8714
8756
  ],
8715
- body: ["flex", "flex-col", "gap-[20px]"],
8716
- content: ["text-md text-center", "break-words", "bg-neutral-soft", "rounded-[5px]", "p-[10px]"],
8717
- 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
+ ]
8718
8769
  },
8719
8770
  variants: {
8720
8771
  color: {
8721
- primary: {
8722
- icon: "text-primary-main"
8723
- },
8724
- secondary: {
8725
- icon: "text-secondary-main"
8726
- },
8727
- neutral: {
8728
- icon: "text-neutral-main"
8729
- },
8730
- success: {
8731
- icon: "text-success-main"
8732
- },
8733
- info: {
8734
- icon: "text-info-main"
8735
- },
8736
- warning: {
8737
- icon: "text-warning-main"
8738
- },
8739
- danger: {
8740
- icon: "text-danger-main"
8741
- }
8772
+ primary: {},
8773
+ secondary: {},
8774
+ neutral: {},
8775
+ success: {},
8776
+ info: {},
8777
+ warning: {},
8778
+ danger: {}
8742
8779
  }
8743
8780
  },
8744
8781
  defaultVariants: {
@@ -8747,15 +8784,15 @@ var modal = tv({
8747
8784
  });
8748
8785
 
8749
8786
  // src/components/list/list.tsx
8750
- var import_react26 = require("react");
8751
- var import_jsx_runtime27 = require("react/jsx-runtime");
8752
- 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) => {
8753
8790
  const [props, variantProps] = mapPropsVariants(originalProps, listStyle.variantKeys);
8754
8791
  const { children, classNames } = props;
8755
- const slots = (0, import_react26.useMemo)(() => listStyle(variantProps), [variantProps]);
8756
- 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) => {
8757
- if (!(0, import_react26.isValidElement)(child)) return child;
8758
- 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, {
8759
8796
  ...variantProps,
8760
8797
  ...child.props
8761
8798
  });
@@ -8792,9 +8829,9 @@ var listStyle = tv({
8792
8829
  });
8793
8830
 
8794
8831
  // src/components/list/listItem.tsx
8795
- var import_react27 = require("react");
8796
- var import_jsx_runtime28 = require("react/jsx-runtime");
8797
- 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) => {
8798
8835
  const [rawProps, variantProps] = mapPropsVariants(props, listItemStyle.variantKeys);
8799
8836
  const {
8800
8837
  title,
@@ -8806,19 +8843,19 @@ var ListItem = (0, import_react27.forwardRef)((props, ref) => {
8806
8843
  classNames,
8807
8844
  onClick
8808
8845
  } = { ...rawProps, ...variantProps };
8809
- const slots = (0, import_react27.useMemo)(() => listItemStyle(variantProps), [variantProps]);
8846
+ const slots = (0, import_react28.useMemo)(() => listItemStyle(variantProps), [variantProps]);
8810
8847
  const iconSize = ["lg", "xl"].includes(size) ? "lg" : "md";
8811
8848
  const avatarSize = iconSize;
8812
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), "data-selected": selected, onClick, children: [
8813
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
8814
- avatar && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(avatar_default, { ...avatar, variant: "round", size: avatarSize }),
8815
- startIconName && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon_default, { name: startIconName, fill: true, size, className: slots.startIcon({ class: classNames == null ? void 0 : classNames.startIcon }) }),
8816
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper }), children: [
8817
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
8818
- 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 })
8819
8856
  ] })
8820
8857
  ] }),
8821
- /* @__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 }) })
8822
8859
  ] });
8823
8860
  });
8824
8861
  ListItem.displayName = "ListItem";
@@ -8986,41 +9023,56 @@ var listItemStyle = tv({
8986
9023
  });
8987
9024
 
8988
9025
  // src/components/toast/toast.tsx
8989
- var import_react28 = require("react");
8990
- var import_jsx_runtime29 = require("react/jsx-runtime");
8991
- 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) => {
8992
9029
  const [props, variantProps] = mapPropsVariants(originalProps, toast.variantKeys);
8993
- const { width = 300, placement, classNames, showIcon = true, showCloseButton = true, onClose, ...toastProps } = props;
8994
- const slots = (0, import_react28.useMemo)(() => toast({ ...variantProps }), [variantProps]);
8995
- const toastRef = (0, import_react28.useRef)(null);
8996
- (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)(
8997
9045
  ref,
8998
9046
  () => ({
8999
9047
  getWidth: () => {
9000
- if (toastRef.current) {
9001
- return toastRef.current.offsetWidth;
9002
- }
9048
+ var _a;
9049
+ return (_a = toastRef.current) == null ? void 0 : _a.offsetWidth;
9003
9050
  }
9004
9051
  }),
9005
9052
  []
9006
9053
  );
9007
- const getBaseProps = (0, import_react28.useCallback)(
9008
- () => ({
9009
- className: slots.base({
9010
- class: [
9011
- classNames == null ? void 0 : classNames.base,
9012
- width ? `w-[${width}px]` : "",
9013
- (placement == null ? void 0 : placement.includes("top")) ? "animate-slideInFromTop" : "animate-slideInFromBottom"
9014
- ]
9015
- })
9016
- }),
9017
- [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
+ }
9018
9075
  );
9019
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ref: toastRef, ...getBaseProps(), children: [
9020
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
9021
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex-1 select-none", children: props.content }),
9022
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon_default, { name: "close", className: "cursor-pointer mt-[2px]", onClick: onClose })
9023
- ] });
9024
9076
  });
9025
9077
  Toast.displayName = "Toast";
9026
9078
  var toast_default = Toast;
@@ -9031,15 +9083,18 @@ var toast = tv({
9031
9083
  "inline-flex",
9032
9084
  "items-start",
9033
9085
  "border",
9034
- "rounded-md",
9086
+ "rounded-[5px]",
9035
9087
  "text-md",
9036
9088
  "p-[10px]",
9037
9089
  "gap-[5px]",
9038
9090
  "z-0",
9039
9091
  "transition-all",
9040
9092
  "duration-300",
9041
- "overflow-auto"
9093
+ "overflow-auto",
9094
+ "select-none"
9042
9095
  ],
9096
+ wrapper: ["flex", "items-center", "gap-[5px]"],
9097
+ title: ["font-bold", "truncate"],
9043
9098
  content: [
9044
9099
  "absolute",
9045
9100
  "top-0",
@@ -9053,43 +9108,73 @@ var toast = tv({
9053
9108
  ]
9054
9109
  },
9055
9110
  variants: {
9111
+ variant: {
9112
+ solid: {},
9113
+ outline: {}
9114
+ },
9056
9115
  color: {
9057
- primary: {
9058
- base: "bg-primary-soft border-primary-light text-primary-main"
9059
- },
9060
- secondary: {
9061
- base: "bg-secondary-soft border-secondary-light text-secondary-main"
9062
- },
9063
- default: {
9064
- base: "bg-default-soft border-default-light text-default-main"
9065
- },
9066
- success: {
9067
- base: "bg-success-soft border-success-light text-success-main"
9068
- },
9069
- info: {
9070
- base: "bg-info-soft border-info-light text-info-main"
9071
- },
9072
- warning: {
9073
- base: "bg-warning-soft border-warning-light text-warning-main"
9074
- },
9075
- danger: {
9076
- 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"]
9077
9130
  }
9078
9131
  },
9079
- disableAnimation: {
9080
- true: {
9081
- 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"]
9082
9165
  }
9083
9166
  }
9084
- },
9167
+ ],
9085
9168
  defaultVariants: {
9086
- color: "default",
9169
+ variant: "solid",
9170
+ color: "primary",
9171
+ hasShadow: true,
9087
9172
  disableAnimation: false
9088
9173
  }
9089
9174
  });
9090
9175
 
9091
9176
  // src/components/toast/use-toast.tsx
9092
- var import_react29 = require("react");
9177
+ var import_react30 = require("react");
9093
9178
 
9094
9179
  // src/components/toast/toast-utils.ts
9095
9180
  var getToastPosition = (placement, width, offset) => {
@@ -9128,10 +9213,10 @@ var getToastPosition = (placement, width, offset) => {
9128
9213
  };
9129
9214
 
9130
9215
  // src/components/toast/use-toast.tsx
9131
- var import_jsx_runtime30 = require("react/jsx-runtime");
9132
- var ToastContext = (0, import_react29.createContext)(null);
9216
+ var import_jsx_runtime31 = require("react/jsx-runtime");
9217
+ var ToastContext = (0, import_react30.createContext)(null);
9133
9218
  var useToast = () => {
9134
- const context = (0, import_react29.useContext)(ToastContext);
9219
+ const context = (0, import_react30.useContext)(ToastContext);
9135
9220
  if (!context) {
9136
9221
  throw new Error("useToast must be used within a ToastProvider");
9137
9222
  }
@@ -9141,68 +9226,56 @@ var ToastProvider = ({
9141
9226
  globalOptions,
9142
9227
  children
9143
9228
  }) => {
9144
- const [toasts, setToasts] = (0, import_react29.useState)([]);
9145
- const [containerStyle, setContainerStyle] = (0, import_react29.useState)({});
9146
- const toastRef = (0, import_react29.useRef)(null);
9147
- const addToast = (0, import_react29.useCallback)((content, options) => {
9148
- const id = Date.now() + Math.floor(Math.random() * 1e5);
9149
- const newToast = {
9150
- id,
9151
- content,
9152
- ...options
9153
- };
9154
- setToasts((prevToasts) => [...prevToasts, newToast]);
9155
- setTimeout(() => {
9156
- setToasts((prevToasts) => prevToasts.filter((toast2) => toast2.id !== id));
9157
- }, options.duration || 3e3);
9158
- }, []);
9159
- 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) => {
9160
9250
  setToasts((prevToasts) => prevToasts.filter((toast2) => toast2.id !== id));
9161
9251
  }, []);
9162
- const value = {
9163
- default: (content, options) => addToast(content, { type: "default", icon: "info-circle", color: "default", ...globalOptions, ...options }),
9164
- info: (content, options) => addToast(content, { type: "info", icon: "info-circle", color: "info", ...globalOptions, ...options }),
9165
- success: (content, options) => addToast(content, { type: "success", icon: "check-circle", color: "success", ...globalOptions, ...options }),
9166
- warning: (content, options) => addToast(content, {
9167
- type: "warning",
9168
- icon: "exclamation-triangle",
9169
- color: "warning",
9170
- ...globalOptions,
9171
- ...options
9172
- }),
9173
- error: (content, options) => addToast(content, { type: "error", icon: "exclamation-circle", color: "danger", ...globalOptions, ...options })
9174
- };
9175
- (0, import_react29.useEffect)(() => {
9252
+ const contextValue = addToast;
9253
+ (0, import_react30.useEffect)(() => {
9176
9254
  var _a;
9177
- 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;
9178
9256
  const offset = 20;
9179
- const calculatePosition = () => {
9180
- const placement = (globalOptions == null ? void 0 : globalOptions.placement) || "bottom-right";
9181
- const { top, left, bottom, right } = getToastPosition(placement, width, offset);
9182
- setContainerStyle({
9183
- position: "fixed",
9184
- top: top !== void 0 ? `${top}px` : void 0,
9185
- left: left !== void 0 ? `${left}px` : void 0,
9186
- bottom: bottom !== void 0 ? `${bottom}px` : void 0,
9187
- right: right !== void 0 ? `${right}px` : void 0
9188
- });
9189
- };
9190
- calculatePosition();
9191
- window.addEventListener("resize", calculatePosition);
9192
- 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
+ });
9193
9266
  }, [globalOptions == null ? void 0 : globalOptions.placement, globalOptions == null ? void 0 : globalOptions.width]);
9194
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(ToastContext.Provider, { value, children: [
9267
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(ToastContext.Provider, { value: contextValue, children: [
9195
9268
  children,
9196
- /* @__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)) })
9197
9270
  ] });
9198
9271
  };
9199
9272
 
9200
9273
  // src/components/dateTimePicker/dateTimePicker.tsx
9201
- var import_react33 = __toESM(require("react"));
9274
+ var import_react34 = __toESM(require("react"));
9202
9275
  var import_react_dom4 = require("react-dom");
9203
9276
 
9204
9277
  // src/components/dateTimePicker/useDateTimePicker.tsx
9205
- var import_react30 = require("react");
9278
+ var import_react31 = require("react");
9206
9279
 
9207
9280
  // src/components/dateTimePicker/util.ts
9208
9281
  var formatDateToString = (date) => {
@@ -9218,17 +9291,17 @@ var formatStringToDate = (date) => {
9218
9291
 
9219
9292
  // src/components/dateTimePicker/useDateTimePicker.tsx
9220
9293
  var useDatePicker = ({ initialDate, initialTime }) => {
9221
- const [selectedDate, setSelectedDate] = (0, import_react30.useState)(
9294
+ const [selectedDate, setSelectedDate] = (0, import_react31.useState)(
9222
9295
  initialDate ? formatDateToString(initialDate) : ""
9223
9296
  );
9224
- const [selectedTime, setSelectedTime] = (0, import_react30.useState)(initialTime ? initialTime : "");
9225
- const [targetRect, setTargetRect] = (0, import_react30.useState)(null);
9226
- const [popupWidth, setPopupWidth] = (0, import_react30.useState)(0);
9227
- const [popupHeight, setPopupHeight] = (0, import_react30.useState)(0);
9228
- const [isFocusInput, setIsFocusInput] = (0, import_react30.useState)(false);
9229
- const dateInputRef = (0, import_react30.useRef)(null);
9230
- const datePickerWrapperRef = (0, import_react30.useRef)(null);
9231
- 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);
9232
9305
  const DATE_PICKER_GAP = 4;
9233
9306
  const calculatePositionWithScroll = (targetRect2) => {
9234
9307
  if (targetRect2 && popupWidth && popupHeight) {
@@ -9261,7 +9334,7 @@ var useDatePicker = ({ initialDate, initialTime }) => {
9261
9334
  const handleBlueInput = () => {
9262
9335
  setIsFocusInput(false);
9263
9336
  };
9264
- (0, import_react30.useEffect)(() => {
9337
+ (0, import_react31.useEffect)(() => {
9265
9338
  const onClickOutside = (e) => {
9266
9339
  if (datePickerRef.current && !datePickerRef.current.contains(e.target) && datePickerWrapperRef.current && !datePickerWrapperRef.current.contains(e.target)) {
9267
9340
  setTargetRect(null);
@@ -9270,7 +9343,7 @@ var useDatePicker = ({ initialDate, initialTime }) => {
9270
9343
  window.addEventListener("mousedown", onClickOutside);
9271
9344
  return () => window.removeEventListener("mousedown", onClickOutside);
9272
9345
  }, []);
9273
- (0, import_react30.useEffect)(() => {
9346
+ (0, import_react31.useEffect)(() => {
9274
9347
  if (datePickerWrapperRef.current) {
9275
9348
  setPopupHeight(datePickerWrapperRef.current.getBoundingClientRect().height);
9276
9349
  setPopupWidth(datePickerWrapperRef.current.getBoundingClientRect().width);
@@ -9295,19 +9368,19 @@ var useDatePicker = ({ initialDate, initialTime }) => {
9295
9368
  };
9296
9369
 
9297
9370
  // src/components/dateTimePicker/calendar.tsx
9298
- var import_react31 = __toESM(require("react"));
9299
- var import_jsx_runtime31 = require("react/jsx-runtime");
9300
- 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) => {
9301
9374
  const [props, variantProps] = mapPropsVariants(originalProps, calendarStyle.variantKeys);
9302
9375
  const { selectedDate, classNames, highlightWeekend = true, onChangeDate, ...inputProps } = props;
9303
- 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());
9304
9377
  const daysOfWeek = ["S", "M", "T", "W", "T", "F", "S"];
9305
- (0, import_react31.useEffect)(() => {
9378
+ (0, import_react32.useEffect)(() => {
9306
9379
  if (selectedDate) {
9307
9380
  setCurrentDate(new Date(selectedDate));
9308
9381
  }
9309
9382
  }, [selectedDate]);
9310
- const getCalendarDates = (0, import_react31.useCallback)(() => {
9383
+ const getCalendarDates = (0, import_react32.useCallback)(() => {
9311
9384
  const year = currentDate.getFullYear();
9312
9385
  const month = currentDate.getMonth();
9313
9386
  const firstDayOfMonth = new Date(year, month, 1).getDay();
@@ -9353,17 +9426,17 @@ var Calendar = (0, import_react31.forwardRef)((originalProps, ref) => {
9353
9426
  onChangeDate(formatted);
9354
9427
  }
9355
9428
  };
9356
- (0, import_react31.useImperativeHandle)(ref, () => ({
9429
+ (0, import_react32.useImperativeHandle)(ref, () => ({
9357
9430
  getSelectedDate: () => selectedDate
9358
9431
  }));
9359
- const slots = (0, import_react31.useMemo)(() => calendarStyle({ ...variantProps }), [variantProps]);
9360
- const getBaseProps = (0, import_react31.useCallback)(
9432
+ const slots = (0, import_react32.useMemo)(() => calendarStyle({ ...variantProps }), [variantProps]);
9433
+ const getBaseProps = (0, import_react32.useCallback)(
9361
9434
  () => ({
9362
9435
  className: `${slots.base({ class: classNames == null ? void 0 : classNames.base })}`
9363
9436
  }),
9364
9437
  [slots, classNames]
9365
9438
  );
9366
- const getDateTitleProps = (0, import_react31.useCallback)(
9439
+ const getDateTitleProps = (0, import_react32.useCallback)(
9367
9440
  (index) => {
9368
9441
  return {
9369
9442
  className: `${slots.dateTitle({
@@ -9375,7 +9448,7 @@ var Calendar = (0, import_react31.forwardRef)((originalProps, ref) => {
9375
9448
  },
9376
9449
  [slots, classNames, highlightWeekend]
9377
9450
  );
9378
- const getDateProps = (0, import_react31.useCallback)(
9451
+ const getDateProps = (0, import_react32.useCallback)(
9379
9452
  (dateObj) => {
9380
9453
  const today = /* @__PURE__ */ new Date();
9381
9454
  const isToday = today.getDate() === dateObj.date && today.getMonth() === currentDate.getMonth() && today.getFullYear() === currentDate.getFullYear();
@@ -9397,18 +9470,18 @@ var Calendar = (0, import_react31.forwardRef)((originalProps, ref) => {
9397
9470
  [slots, classNames, selectedDate, currentDate, highlightWeekend]
9398
9471
  );
9399
9472
  const calendarDates = getCalendarDates();
9400
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { ...getBaseProps(), children: [
9401
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "calendar-header flex justify-between items-center mb-4", children: [
9402
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon_default, { name: "brace-left", size: "md", className: "cursor-pointer", onClick: handlePrevMonth }),
9403
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-h6 font-semibold", children: currentDate.toLocaleString("default", { year: "numeric", month: "2-digit" }) }),
9404
- /* @__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 })
9405
9478
  ] }),
9406
- /* @__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}`)) }),
9407
- /* @__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) => {
9408
9481
  const hasCurrentMonthDates = week.some((dateObj) => dateObj.currentMonth);
9409
9482
  if (!hasCurrentMonthDates) return null;
9410
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react31.default.Fragment, { children: week.map((dateObj, index) => {
9411
- 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);
9412
9485
  }) }, weekIndex);
9413
9486
  }) })
9414
9487
  ] }) });
@@ -9479,22 +9552,22 @@ var calendarStyle = tv({
9479
9552
  });
9480
9553
 
9481
9554
  // src/components/dateTimePicker/timePicker.tsx
9482
- var import_react32 = require("react");
9483
- var import_jsx_runtime32 = require("react/jsx-runtime");
9555
+ var import_react33 = require("react");
9556
+ var import_jsx_runtime33 = require("react/jsx-runtime");
9484
9557
  var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime }) => {
9485
9558
  const TOTAL_HOURS = 12;
9486
9559
  const TOTAL_MINUTES = 60;
9487
9560
  const ITEM_HEIGHT = 30;
9488
9561
  const PERIODS = ["AM", "PM"];
9489
- const [selectedHour, setSelectedHour] = (0, import_react32.useState)("01");
9490
- const [selectedMinute, setSelectedMinute] = (0, import_react32.useState)("00");
9491
- const [selectedPeriod, setSelectedPeriod] = (0, import_react32.useState)("AM");
9492
- const hourRef = (0, import_react32.useRef)(null);
9493
- const minuteRef = (0, import_react32.useRef)(null);
9494
- 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);
9495
9568
  const hoursArray = [...Array(TOTAL_HOURS).keys()].map((i) => (i + 1).toString().padStart(2, "0"));
9496
9569
  const minutesArray = [...Array(TOTAL_MINUTES).keys()].map((i) => i.toString().padStart(2, "0"));
9497
- (0, import_react32.useEffect)(() => {
9570
+ (0, import_react33.useEffect)(() => {
9498
9571
  if (selectedTime) {
9499
9572
  const { formattedHour, minute, period } = parseAndFormatTime(selectedTime);
9500
9573
  setSelectedHour(formattedHour);
@@ -9505,7 +9578,7 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9505
9578
  scrollToSelectedTime();
9506
9579
  }
9507
9580
  }, [selectedTime, isFocusInput]);
9508
- (0, import_react32.useEffect)(() => {
9581
+ (0, import_react33.useEffect)(() => {
9509
9582
  scrollToSelectedTime();
9510
9583
  }, []);
9511
9584
  const parseAndFormatTime = (time) => {
@@ -9542,8 +9615,8 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9542
9615
  onChangeTime(formattedTime);
9543
9616
  }
9544
9617
  };
9545
- 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: [
9546
- /* @__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)(
9547
9620
  listItem_default,
9548
9621
  {
9549
9622
  color,
@@ -9557,7 +9630,7 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9557
9630
  },
9558
9631
  `${period}-${index}`
9559
9632
  )) }),
9560
- /* @__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)(
9561
9634
  listItem_default,
9562
9635
  {
9563
9636
  color,
@@ -9571,7 +9644,7 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9571
9644
  },
9572
9645
  `${hour}-${index}`
9573
9646
  )) }),
9574
- /* @__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)(
9575
9648
  listItem_default,
9576
9649
  {
9577
9650
  color,
@@ -9590,8 +9663,8 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9590
9663
  var timePicker_default = TimePicker;
9591
9664
 
9592
9665
  // src/components/dateTimePicker/dateTimePicker.tsx
9593
- var import_jsx_runtime33 = require("react/jsx-runtime");
9594
- 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) => {
9595
9668
  const [props, variantProps] = mapPropsVariants(originalProps, dateTimePickerStyle.variantKeys);
9596
9669
  const {
9597
9670
  classNames,
@@ -9605,7 +9678,7 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9605
9678
  onChangeTime,
9606
9679
  ...inputProps
9607
9680
  } = props;
9608
- const slots = (0, import_react33.useMemo)(() => dateTimePickerStyle({ ...variantProps }), [variantProps]);
9681
+ const slots = (0, import_react34.useMemo)(() => dateTimePickerStyle({ ...variantProps }), [variantProps]);
9609
9682
  const {
9610
9683
  selectedDate,
9611
9684
  selectedTime,
@@ -9626,32 +9699,32 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9626
9699
  initialTime: typeof value === "string" ? value : void 0
9627
9700
  });
9628
9701
  const position = targetRect ? calculatePositionWithScroll(targetRect) : null;
9629
- const getBaseProps = (0, import_react33.useCallback)(
9702
+ const getBaseProps = (0, import_react34.useCallback)(
9630
9703
  () => ({
9631
9704
  className: slots.base({ class: classNames == null ? void 0 : classNames.base })
9632
9705
  }),
9633
9706
  [slots, classNames]
9634
9707
  );
9635
- const getLabelProps = (0, import_react33.useCallback)(
9708
+ const getLabelProps = (0, import_react34.useCallback)(
9636
9709
  () => ({
9637
9710
  className: slots.label({ class: classNames == null ? void 0 : classNames.label })
9638
9711
  }),
9639
9712
  [slots, classNames]
9640
9713
  );
9641
- const getInnerWrapperProps = (0, import_react33.useCallback)(
9714
+ const getInnerWrapperProps = (0, import_react34.useCallback)(
9642
9715
  () => ({
9643
9716
  className: slots.innerWrapper({ class: classNames == null ? void 0 : classNames.innerWrapper })
9644
9717
  }),
9645
9718
  [slots, classNames]
9646
9719
  );
9647
- const getInputWrapperProps = (0, import_react33.useCallback)(
9720
+ const getInputWrapperProps = (0, import_react34.useCallback)(
9648
9721
  () => ({
9649
9722
  className: slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }),
9650
9723
  ref: datePickerRef
9651
9724
  }),
9652
9725
  [slots, classNames]
9653
9726
  );
9654
- const getInputProps = (0, import_react33.useCallback)(
9727
+ const getInputProps = (0, import_react34.useCallback)(
9655
9728
  () => ({
9656
9729
  ...inputProps,
9657
9730
  ref: ref || dateInputRef,
@@ -9682,33 +9755,33 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9682
9755
  }),
9683
9756
  [inputProps, ref, dateInputRef, slots, classNames == null ? void 0 : classNames.input, selectedDate, selectedTime, type, value]
9684
9757
  );
9685
- const getContentProps = (0, import_react33.useCallback)(
9758
+ const getContentProps = (0, import_react34.useCallback)(
9686
9759
  () => ({
9687
9760
  className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
9688
9761
  size: originalProps.size
9689
9762
  }),
9690
9763
  [slots, classNames, originalProps.size]
9691
9764
  );
9692
- const getErrorMessageProps = (0, import_react33.useCallback)(
9765
+ const getErrorMessageProps = (0, import_react34.useCallback)(
9693
9766
  () => ({
9694
9767
  className: slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })
9695
9768
  }),
9696
9769
  [slots, classNames]
9697
9770
  );
9698
9771
  const renderStartContent = () => {
9699
- if (import_react33.default.isValidElement(startContent)) {
9772
+ if (import_react34.default.isValidElement(startContent)) {
9700
9773
  const existingProps = startContent.props;
9701
9774
  const mergedProps = {
9702
9775
  ...getContentProps(),
9703
9776
  className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
9704
9777
  };
9705
- return import_react33.default.cloneElement(startContent, mergedProps);
9778
+ return import_react34.default.cloneElement(startContent, mergedProps);
9706
9779
  } else {
9707
9780
  const contentProps = getContentProps();
9708
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ...contentProps, children: startContent });
9781
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ...contentProps, children: startContent });
9709
9782
  }
9710
9783
  };
9711
- 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)(
9712
9785
  Icon_default,
9713
9786
  {
9714
9787
  name: type === "time" ? "clock" : "calendar",
@@ -9718,18 +9791,18 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9718
9791
  }
9719
9792
  ) });
9720
9793
  const renderContentWithIcon = () => {
9721
- if (import_react33.default.isValidElement(endContent)) {
9794
+ if (import_react34.default.isValidElement(endContent)) {
9722
9795
  const existingProps = endContent.props;
9723
9796
  const mergedProps = {
9724
9797
  ...getContentProps(),
9725
9798
  className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
9726
9799
  };
9727
- return import_react33.default.cloneElement(endContent, mergedProps);
9800
+ return import_react34.default.cloneElement(endContent, mergedProps);
9728
9801
  } else if (errorMessage) {
9729
9802
  const iconProps = { ...getContentProps(), className: getContentProps().className };
9730
- 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 }) });
9731
9804
  } else {
9732
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, {});
9805
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, {});
9733
9806
  }
9734
9807
  };
9735
9808
  const renderEndContent = () => {
@@ -9744,20 +9817,20 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9744
9817
  return renderContentWithIcon();
9745
9818
  }
9746
9819
  };
9747
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
9748
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...getBaseProps(), children: [
9749
- label && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("label", { ...getLabelProps(), children: label }),
9750
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...getInnerWrapperProps(), children: [
9751
- /* @__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: [
9752
9825
  startContent && renderStartContent(),
9753
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("input", { ...getInputProps() }),
9826
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { ...getInputProps() }),
9754
9827
  renderEndContent()
9755
9828
  ] }),
9756
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { ...getErrorMessageProps(), children: errorMessage })
9829
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { ...getErrorMessageProps(), children: errorMessage })
9757
9830
  ] })
9758
9831
  ] }),
9759
- targetRect && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: (0, import_react_dom4.createPortal)(
9760
- /* @__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)(
9761
9834
  "div",
9762
9835
  {
9763
9836
  ref: datePickerWrapperRef,
@@ -9768,7 +9841,7 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9768
9841
  zIndex: 1e3
9769
9842
  },
9770
9843
  children: [
9771
- type === "date" && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
9844
+ type === "date" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
9772
9845
  calendar_default,
9773
9846
  {
9774
9847
  color: originalProps.color,
@@ -9780,7 +9853,7 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9780
9853
  }
9781
9854
  }
9782
9855
  ),
9783
- type === "time" && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
9856
+ type === "time" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
9784
9857
  timePicker_default,
9785
9858
  {
9786
9859
  color: originalProps.color,
@@ -9928,6 +10001,79 @@ var dateTimePickerStyle = tv({
9928
10001
  }
9929
10002
  ]
9930
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
+ });
9931
10077
  // Annotate the CommonJS export names for ESM import in node:
9932
10078
  0 && (module.exports = {
9933
10079
  Avatar,
@@ -9938,6 +10084,7 @@ var dateTimePickerStyle = tv({
9938
10084
  CheckBox,
9939
10085
  Chip,
9940
10086
  DateTimePicker,
10087
+ FormTable,
9941
10088
  Icon,
9942
10089
  IconButton,
9943
10090
  Input,
@@ -9956,6 +10103,7 @@ var dateTimePickerStyle = tv({
9956
10103
  Toast,
9957
10104
  ToastProvider,
9958
10105
  Tooltip,
10106
+ Tree,
9959
10107
  deepnoidUi,
9960
10108
  iconTemplate,
9961
10109
  tv,