@deepnoid/ui 0.1.19 → 0.1.21

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 (178) hide show
  1. package/.turbo/turbo-build.log +202 -183
  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-2DLKV6TT.mjs +168 -0
  11. package/dist/{chunk-7TXQPX4O.mjs → chunk-2Y7IBUAZ.mjs} +19 -8
  12. package/dist/chunk-3BKCODIL.mjs +49 -0
  13. package/dist/{chunk-A7OXEUCC.mjs → chunk-3IU2RPSM.mjs} +75 -9
  14. package/dist/{chunk-3TJAGKKY.mjs → chunk-7CFOD7G4.mjs} +11 -9
  15. package/dist/chunk-7KUFDVGL.mjs +71 -0
  16. package/dist/chunk-7USF56CT.mjs +8 -0
  17. package/dist/{chunk-5ANQDLRS.mjs → chunk-DUPQBPI2.mjs} +4 -4
  18. package/dist/{chunk-K7Z6PVXE.mjs → chunk-EWZAHXN7.mjs} +7 -7
  19. package/dist/{chunk-BFM3LPBK.mjs → chunk-FBAR75U4.mjs} +4 -4
  20. package/dist/{chunk-RPDPB4JP.mjs → chunk-HQLSHEK6.mjs} +4 -4
  21. package/dist/{chunk-DADMVOYI.mjs → chunk-HWL7TPUN.mjs} +1 -1
  22. package/dist/chunk-IZM66FHP.mjs +8 -0
  23. package/dist/{chunk-QIDZXCYP.mjs → chunk-JHDYQCEE.mjs} +6 -6
  24. package/dist/chunk-MBLZYQCN.mjs +1 -0
  25. package/dist/{chunk-7A5M7DRD.mjs → chunk-MQI5SZWO.mjs} +7 -7
  26. package/dist/{chunk-3DPVPTHL.mjs → chunk-MV7RSV4D.mjs} +3 -3
  27. package/dist/chunk-MW7CSRIE.mjs +348 -0
  28. package/dist/chunk-OV7CZNXU.mjs +135 -0
  29. package/dist/{chunk-AG7AWQKH.mjs → chunk-Q6BZ76DI.mjs} +4 -4
  30. package/dist/{chunk-63WXGSTV.mjs → chunk-QHWFHOW2.mjs} +24 -14
  31. package/dist/{chunk-FONJYZKH.mjs → chunk-SDHQUYFI.mjs} +7 -7
  32. package/dist/{chunk-UHFJ7ZFM.mjs → chunk-UTC2D6GV.mjs} +6 -6
  33. package/dist/chunk-XGYQ6D3S.mjs +82 -0
  34. package/dist/{chunk-UYPVP36M.mjs → chunk-XQGD4ZIX.mjs} +1 -1
  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/backdrop/backdrop.mjs +2 -2
  41. package/dist/components/backdrop/index.mjs +2 -2
  42. package/dist/components/breadcrumb/breadcrumb.js +75 -9
  43. package/dist/components/breadcrumb/breadcrumb.mjs +9 -9
  44. package/dist/components/breadcrumb/index.js +75 -9
  45. package/dist/components/breadcrumb/index.mjs +9 -9
  46. package/dist/components/button/button.js +75 -9
  47. package/dist/components/button/button.mjs +5 -5
  48. package/dist/components/button/icon-button.js +75 -9
  49. package/dist/components/button/icon-button.mjs +5 -5
  50. package/dist/components/button/index.js +75 -9
  51. package/dist/components/button/index.mjs +9 -9
  52. package/dist/components/button/text-button.mjs +3 -3
  53. package/dist/components/checkbox/checkbox.mjs +3 -3
  54. package/dist/components/checkbox/index.mjs +3 -3
  55. package/dist/components/chip/chip.js +75 -9
  56. package/dist/components/chip/chip.mjs +4 -4
  57. package/dist/components/chip/index.js +75 -9
  58. package/dist/components/chip/index.mjs +4 -4
  59. package/dist/components/dateTimePicker/calendar.js +75 -9
  60. package/dist/components/dateTimePicker/calendar.mjs +4 -4
  61. package/dist/components/dateTimePicker/dateTimePicker.js +75 -9
  62. package/dist/components/dateTimePicker/dateTimePicker.mjs +9 -9
  63. package/dist/components/dateTimePicker/index.js +75 -9
  64. package/dist/components/dateTimePicker/index.mjs +9 -9
  65. package/dist/components/dateTimePicker/timePicker.js +75 -9
  66. package/dist/components/dateTimePicker/timePicker.mjs +7 -7
  67. package/dist/components/icon/Icon.d.mts +6 -2
  68. package/dist/components/icon/Icon.d.ts +6 -2
  69. package/dist/components/icon/Icon.js +75 -9
  70. package/dist/components/icon/Icon.mjs +2 -2
  71. package/dist/components/icon/index.js +75 -9
  72. package/dist/components/icon/index.mjs +2 -2
  73. package/dist/components/icon/template.d.mts +2 -1
  74. package/dist/components/icon/template.d.ts +2 -1
  75. package/dist/components/icon/template.js +75 -9
  76. package/dist/components/icon/template.mjs +1 -1
  77. package/dist/components/input/index.js +89 -12
  78. package/dist/components/input/index.mjs +5 -5
  79. package/dist/components/input/input.js +89 -12
  80. package/dist/components/input/input.mjs +5 -5
  81. package/dist/components/list/index.js +75 -9
  82. package/dist/components/list/index.mjs +8 -8
  83. package/dist/components/list/list.mjs +2 -2
  84. package/dist/components/list/listItem.js +75 -9
  85. package/dist/components/list/listItem.mjs +5 -5
  86. package/dist/components/modal/index.d.mts +0 -3
  87. package/dist/components/modal/index.d.ts +0 -3
  88. package/dist/components/modal/index.js +205 -158
  89. package/dist/components/modal/index.mjs +11 -9
  90. package/dist/components/modal/modal.d.mts +43 -105
  91. package/dist/components/modal/modal.d.ts +43 -105
  92. package/dist/components/modal/modal.js +206 -164
  93. package/dist/components/modal/modal.mjs +12 -12
  94. package/dist/components/pagination/index.js +89 -12
  95. package/dist/components/pagination/index.mjs +6 -6
  96. package/dist/components/pagination/pagination.js +89 -12
  97. package/dist/components/pagination/pagination.mjs +6 -6
  98. package/dist/components/radio/index.mjs +3 -3
  99. package/dist/components/radio/radio.mjs +3 -3
  100. package/dist/components/ripple/index.mjs +3 -3
  101. package/dist/components/select/index.d.mts +1 -1
  102. package/dist/components/select/index.d.ts +1 -1
  103. package/dist/components/select/index.js +376 -295
  104. package/dist/components/select/index.mjs +5 -6
  105. package/dist/components/select/select.d.mts +190 -177
  106. package/dist/components/select/select.d.ts +190 -177
  107. package/dist/components/select/select.js +376 -295
  108. package/dist/components/select/select.mjs +5 -6
  109. package/dist/components/table/form-table.d.mts +52 -0
  110. package/dist/components/table/form-table.d.ts +52 -0
  111. package/dist/components/table/form-table.js +365 -0
  112. package/dist/components/table/form-table.mjs +9 -0
  113. package/dist/components/table/index.d.mts +2 -0
  114. package/dist/components/table/index.d.ts +2 -0
  115. package/dist/components/table/index.js +162 -30
  116. package/dist/components/table/index.mjs +15 -11
  117. package/dist/components/table/table-body.d.mts +3 -2
  118. package/dist/components/table/table-body.d.ts +3 -2
  119. package/dist/components/table/table-body.js +23 -13
  120. package/dist/components/table/table-body.mjs +4 -4
  121. package/dist/components/table/table-head.d.mts +2 -2
  122. package/dist/components/table/table-head.d.ts +2 -2
  123. package/dist/components/table/table-head.js +2 -2
  124. package/dist/components/table/table-head.mjs +4 -4
  125. package/dist/components/table/table.d.mts +2 -1
  126. package/dist/components/table/table.d.ts +2 -1
  127. package/dist/components/table/table.js +119 -30
  128. package/dist/components/table/table.mjs +10 -10
  129. package/dist/components/tabs/index.mjs +2 -2
  130. package/dist/components/tabs/tabs.mjs +2 -2
  131. package/dist/components/toast/index.js +239 -97
  132. package/dist/components/toast/index.mjs +6 -5
  133. package/dist/components/toast/toast.d.mts +40 -81
  134. package/dist/components/toast/toast.d.ts +40 -81
  135. package/dist/components/toast/toast.js +210 -56
  136. package/dist/components/toast/toast.mjs +5 -4
  137. package/dist/components/toast/use-toast.d.mts +6 -10
  138. package/dist/components/toast/use-toast.d.ts +6 -10
  139. package/dist/components/toast/use-toast.js +239 -97
  140. package/dist/components/toast/use-toast.mjs +6 -5
  141. package/dist/components/tooltip/index.mjs +2 -2
  142. package/dist/components/tooltip/tooltip.mjs +2 -2
  143. package/dist/components/tree/index.d.mts +2 -0
  144. package/dist/components/tree/index.d.ts +2 -0
  145. package/dist/components/tree/index.js +4371 -0
  146. package/dist/components/tree/index.mjs +15 -0
  147. package/dist/components/tree/tree.d.mts +20 -0
  148. package/dist/components/tree/tree.d.ts +20 -0
  149. package/dist/components/{select/option.js → tree/tree.js} +146 -74
  150. package/dist/components/tree/tree.mjs +14 -0
  151. package/dist/folder-RO3QTLGS.svg +9 -0
  152. package/dist/index.d.mts +3 -0
  153. package/dist/index.d.ts +3 -0
  154. package/dist/index.js +681 -545
  155. package/dist/index.mjs +71 -62
  156. package/package.json +1 -1
  157. package/types/images.d.ts +14 -0
  158. package/dist/chunk-5OBP42D6.mjs +0 -117
  159. package/dist/chunk-HDNQOLUJ.mjs +0 -83
  160. package/dist/chunk-MJT6ZW4C.mjs +0 -255
  161. package/dist/chunk-P6NVCCBZ.mjs +0 -76
  162. package/dist/chunk-RXIFDECK.mjs +0 -213
  163. package/dist/chunk-S3QS5B7F.mjs +0 -61
  164. package/dist/components/select/option.d.mts +0 -17
  165. package/dist/components/select/option.d.ts +0 -17
  166. package/dist/components/select/option.mjs +0 -12
  167. package/dist/components/select/useSelect.d.mts +0 -31
  168. package/dist/components/select/useSelect.d.ts +0 -31
  169. package/dist/components/select/useSelect.js +0 -84
  170. package/dist/components/select/useSelect.mjs +0 -8
  171. package/dist/{chunk-D6QI3DJG.mjs → chunk-7H5XPHY6.mjs} +4 -4
  172. package/dist/{chunk-2UUH2MBF.mjs → chunk-DX3KXNP6.mjs} +0 -0
  173. package/dist/{chunk-Z2537DF6.mjs → chunk-IL5ENWCR.mjs} +3 -3
  174. package/dist/{chunk-WFMFC7R6.mjs → chunk-KCOHU7X7.mjs} +4 -4
  175. package/dist/{chunk-LL6F3WDX.mjs → chunk-P5QCU457.mjs} +3 -3
  176. package/dist/{chunk-2YMAKIZ6.mjs → chunk-SSMMWMQC.mjs} +3 -3
  177. package/dist/{chunk-HIVPDIEP.mjs → chunk-UFVQPPPW.mjs} +3 -3
  178. package/dist/{chunk-QIRL6HY6.mjs → chunk-YIIFWADW.mjs} +4 -4
@@ -786,23 +786,89 @@ var template = {
786
786
  }
787
787
  );
788
788
  },
789
- // ----------------------------------- old ---------------------------------
790
- // ** Status **
791
- plus: ({ className, fill }) => {
789
+ exclamation: ({ className, fill }) => {
792
790
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
793
791
  "svg",
794
792
  {
795
- width: "24",
796
- height: "24",
797
- viewBox: "0 0 24 24",
793
+ xmlns: "http://www.w3.org/2000/svg",
794
+ width: "18",
795
+ height: "18",
796
+ viewBox: "0 0 18 18",
798
797
  fill: "none",
798
+ className,
799
+ children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
800
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
801
+ "path",
802
+ {
803
+ 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",
804
+ fill: "currentColor"
805
+ }
806
+ ),
807
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
808
+ "path",
809
+ {
810
+ 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",
811
+ fill: "white"
812
+ }
813
+ ),
814
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
815
+ "path",
816
+ {
817
+ 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",
818
+ fill: "white"
819
+ }
820
+ )
821
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
822
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
823
+ "path",
824
+ {
825
+ 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",
826
+ stroke: "currentColor"
827
+ }
828
+ ),
829
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
830
+ "path",
831
+ {
832
+ 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",
833
+ fill: "currentColor"
834
+ }
835
+ ),
836
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
837
+ "path",
838
+ {
839
+ 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",
840
+ fill: "currentColor"
841
+ }
842
+ )
843
+ ] })
844
+ }
845
+ );
846
+ },
847
+ close: ({ className }) => {
848
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
849
+ "svg",
850
+ {
799
851
  xmlns: "http://www.w3.org/2000/svg",
852
+ width: "27",
853
+ height: "27",
854
+ viewBox: "0 0 27 27",
855
+ fill: "none",
800
856
  className,
801
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 4.5V19.5M19.5 12H4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
857
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
858
+ "path",
859
+ {
860
+ fillRule: "evenodd",
861
+ clipRule: "evenodd",
862
+ 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",
863
+ fill: "currentColor"
864
+ }
865
+ )
802
866
  }
803
867
  );
804
868
  },
805
- close: ({ className, fill }) => {
869
+ // ----------------------------------- old ---------------------------------
870
+ // ** Status **
871
+ plus: ({ className, fill }) => {
806
872
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
807
873
  "svg",
808
874
  {
@@ -812,7 +878,7 @@ var template = {
812
878
  fill: "none",
813
879
  xmlns: "http://www.w3.org/2000/svg",
814
880
  className,
815
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 18L18 6M6 6L18 18", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
881
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 4.5V19.5M19.5 12H4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
816
882
  }
817
883
  );
818
884
  },
@@ -4252,41 +4318,96 @@ var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) =
4252
4318
  };
4253
4319
  var Icon_default = Icon;
4254
4320
 
4321
+ // src/utils/clsx.ts
4322
+ function clsx(...args) {
4323
+ var i = 0, tmp, x, str = "";
4324
+ while (i < args.length) {
4325
+ if (tmp = args[i++]) {
4326
+ if (x = toVal(tmp)) {
4327
+ str && (str += " ");
4328
+ str += x;
4329
+ }
4330
+ }
4331
+ }
4332
+ return str;
4333
+ }
4334
+ function toVal(mix) {
4335
+ var k, y, str = "";
4336
+ if (typeof mix === "string" || typeof mix === "number") {
4337
+ str += mix;
4338
+ } else if (typeof mix === "object") {
4339
+ if (Array.isArray(mix)) {
4340
+ var len = mix.length;
4341
+ for (k = 0; k < len; k++) {
4342
+ if (mix[k]) {
4343
+ if (y = toVal(mix[k])) {
4344
+ str && (str += " ");
4345
+ str += y;
4346
+ }
4347
+ }
4348
+ }
4349
+ } else {
4350
+ for (y in mix) {
4351
+ if (mix[y]) {
4352
+ str && (str += " ");
4353
+ str += y;
4354
+ }
4355
+ }
4356
+ }
4357
+ }
4358
+ return str;
4359
+ }
4360
+
4255
4361
  // src/components/toast/toast.tsx
4256
4362
  var import_jsx_runtime3 = require("react/jsx-runtime");
4257
4363
  var Toast = (0, import_react.forwardRef)((originalProps, ref) => {
4258
4364
  const [props, variantProps] = mapPropsVariants(originalProps, toast.variantKeys);
4259
- const { width = 300, placement, classNames, showIcon = true, showCloseButton = true, onClose, ...toastProps } = props;
4365
+ const {
4366
+ title,
4367
+ content,
4368
+ width = 300,
4369
+ placement,
4370
+ classNames,
4371
+ showIcon = true,
4372
+ showCloseButton = true,
4373
+ hasShadow = true,
4374
+ disableAnimation,
4375
+ onClose
4376
+ } = { ...props, ...variantProps };
4260
4377
  const slots = (0, import_react.useMemo)(() => toast({ ...variantProps }), [variantProps]);
4261
4378
  const toastRef = (0, import_react.useRef)(null);
4262
4379
  (0, import_react.useImperativeHandle)(
4263
4380
  ref,
4264
4381
  () => ({
4265
4382
  getWidth: () => {
4266
- if (toastRef.current) {
4267
- return toastRef.current.offsetWidth;
4268
- }
4383
+ var _a;
4384
+ return (_a = toastRef.current) == null ? void 0 : _a.offsetWidth;
4269
4385
  }
4270
4386
  }),
4271
4387
  []
4272
4388
  );
4273
- const getBaseProps = (0, import_react.useCallback)(
4274
- () => ({
4275
- className: slots.base({
4276
- class: [
4277
- classNames == null ? void 0 : classNames.base,
4278
- width ? `w-[${width}px]` : "",
4279
- (placement == null ? void 0 : placement.includes("top")) ? "animate-slideInFromTop" : "animate-slideInFromBottom"
4280
- ]
4281
- })
4282
- }),
4283
- [slots, classNames == null ? void 0 : classNames.base]
4389
+ const animationClass = (placement == null ? void 0 : placement.includes("top")) ? "animate-slideInFromTop" : "animate-slideInFromBottom";
4390
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
4391
+ "div",
4392
+ {
4393
+ ref: toastRef,
4394
+ className: clsx(
4395
+ slots.base({ class: classNames == null ? void 0 : classNames.base }),
4396
+ width && `w-[${width}px]`,
4397
+ animationClass,
4398
+ disableAnimation && "!animate-none"
4399
+ ),
4400
+ style: hasShadow ? { boxShadow: "0px 6px 18px rgba(0, 0, 0, 0.10)" } : {},
4401
+ children: [
4402
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
4403
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
4404
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
4405
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "close", className: "cursor-pointer", onClick: onClose })
4406
+ ] }),
4407
+ content && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: content })
4408
+ ]
4409
+ }
4284
4410
  );
4285
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { ref: toastRef, ...getBaseProps(), children: [
4286
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
4287
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex-1 select-none", children: props.content }),
4288
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "close", className: "cursor-pointer mt-[2px]", onClick: onClose })
4289
- ] });
4290
4411
  });
4291
4412
  Toast.displayName = "Toast";
4292
4413
  var toast_default = Toast;
@@ -4297,15 +4418,18 @@ var toast = tv({
4297
4418
  "inline-flex",
4298
4419
  "items-start",
4299
4420
  "border",
4300
- "rounded-md",
4421
+ "rounded-[5px]",
4301
4422
  "text-md",
4302
4423
  "p-[10px]",
4303
4424
  "gap-[5px]",
4304
4425
  "z-0",
4305
4426
  "transition-all",
4306
4427
  "duration-300",
4307
- "overflow-auto"
4428
+ "overflow-auto",
4429
+ "select-none"
4308
4430
  ],
4431
+ wrapper: ["flex", "items-center", "gap-[5px]"],
4432
+ title: ["font-bold", "truncate"],
4309
4433
  content: [
4310
4434
  "absolute",
4311
4435
  "top-0",
@@ -4319,37 +4443,67 @@ var toast = tv({
4319
4443
  ]
4320
4444
  },
4321
4445
  variants: {
4446
+ variant: {
4447
+ solid: {},
4448
+ outline: {}
4449
+ },
4322
4450
  color: {
4323
- primary: {
4324
- base: "bg-primary-soft border-primary-light text-primary-main"
4325
- },
4326
- secondary: {
4327
- base: "bg-secondary-soft border-secondary-light text-secondary-main"
4328
- },
4329
- default: {
4330
- base: "bg-default-soft border-default-light text-default-main"
4331
- },
4332
- success: {
4333
- base: "bg-success-soft border-success-light text-success-main"
4334
- },
4335
- info: {
4336
- base: "bg-info-soft border-info-light text-info-main"
4337
- },
4338
- warning: {
4339
- base: "bg-warning-soft border-warning-light text-warning-main"
4340
- },
4341
- danger: {
4342
- base: "bg-danger-soft border-danger-light text-danger-main"
4451
+ primary: {},
4452
+ secondary: {},
4453
+ success: {},
4454
+ info: {},
4455
+ warning: {},
4456
+ danger: {}
4457
+ }
4458
+ },
4459
+ compoundVariants: [
4460
+ {
4461
+ variant: "solid",
4462
+ color: "primary",
4463
+ class: {
4464
+ base: ["bg-primary-soft", "border-primary-main", "text-primary-main"]
4465
+ }
4466
+ },
4467
+ {
4468
+ variant: "solid",
4469
+ color: "secondary",
4470
+ class: {
4471
+ base: ["bg-secondary-soft", "border-secondary-main", "text-secondary-main"]
4343
4472
  }
4344
4473
  },
4345
- disableAnimation: {
4346
- true: {
4347
- base: "animate-none"
4474
+ {
4475
+ variant: "solid",
4476
+ color: "success",
4477
+ class: {
4478
+ base: ["bg-success-soft", "border-success-main", "text-success-main"]
4479
+ }
4480
+ },
4481
+ {
4482
+ variant: "solid",
4483
+ color: "info",
4484
+ class: {
4485
+ base: ["bg-info-soft", "border-info-main", "text-info-main"]
4486
+ }
4487
+ },
4488
+ {
4489
+ variant: "solid",
4490
+ color: "warning",
4491
+ class: {
4492
+ base: ["bg-warning-soft", "border-warning-main", "text-warning-main"]
4493
+ }
4494
+ },
4495
+ {
4496
+ variant: "solid",
4497
+ color: "danger",
4498
+ class: {
4499
+ base: ["bg-danger-soft", "border-danger-main", "text-danger-main"]
4348
4500
  }
4349
4501
  }
4350
- },
4502
+ ],
4351
4503
  defaultVariants: {
4352
- color: "default",
4504
+ variant: "solid",
4505
+ color: "primary",
4506
+ hasShadow: true,
4353
4507
  disableAnimation: false
4354
4508
  }
4355
4509
  });
@@ -4410,54 +4564,42 @@ var ToastProvider = ({
4410
4564
  const [toasts, setToasts] = (0, import_react2.useState)([]);
4411
4565
  const [containerStyle, setContainerStyle] = (0, import_react2.useState)({});
4412
4566
  const toastRef = (0, import_react2.useRef)(null);
4413
- const addToast = (0, import_react2.useCallback)((content, options) => {
4414
- const id = Date.now() + Math.floor(Math.random() * 1e5);
4415
- const newToast = {
4416
- id,
4417
- content,
4418
- ...options
4419
- };
4420
- setToasts((prevToasts) => [...prevToasts, newToast]);
4421
- setTimeout(() => {
4422
- setToasts((prevToasts) => prevToasts.filter((toast2) => toast2.id !== id));
4423
- }, options.duration || 3e3);
4424
- }, []);
4567
+ const addToast = (0, import_react2.useCallback)(
4568
+ (title, options = {}) => {
4569
+ const id = Date.now() + Math.floor(Math.random() * 1e5);
4570
+ const newToast = {
4571
+ id,
4572
+ title,
4573
+ duration: 3e3,
4574
+ ...globalOptions,
4575
+ ...options
4576
+ };
4577
+ setToasts((prev) => [...prev, newToast]);
4578
+ setTimeout(() => {
4579
+ setToasts((prevToasts) => prevToasts.filter((toast2) => toast2.id !== id));
4580
+ }, newToast.duration || 3e3);
4581
+ },
4582
+ [globalOptions]
4583
+ );
4425
4584
  const removeToast = (0, import_react2.useCallback)((id) => {
4426
4585
  setToasts((prevToasts) => prevToasts.filter((toast2) => toast2.id !== id));
4427
4586
  }, []);
4428
- const value = {
4429
- default: (content, options) => addToast(content, { type: "default", icon: "info-circle", color: "default", ...globalOptions, ...options }),
4430
- info: (content, options) => addToast(content, { type: "info", icon: "info-circle", color: "info", ...globalOptions, ...options }),
4431
- success: (content, options) => addToast(content, { type: "success", icon: "check-circle", color: "success", ...globalOptions, ...options }),
4432
- warning: (content, options) => addToast(content, {
4433
- type: "warning",
4434
- icon: "exclamation-triangle",
4435
- color: "warning",
4436
- ...globalOptions,
4437
- ...options
4438
- }),
4439
- error: (content, options) => addToast(content, { type: "error", icon: "exclamation-circle", color: "danger", ...globalOptions, ...options })
4440
- };
4587
+ const contextValue = addToast;
4441
4588
  (0, import_react2.useEffect)(() => {
4442
4589
  var _a;
4443
- 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;
4590
+ const width = (globalOptions == null ? void 0 : globalOptions.width) ? globalOptions.width : typeof ((_a = toastRef.current) == null ? void 0 : _a.getWidth) === "function" ? toastRef.current.getWidth() : 300;
4444
4591
  const offset = 20;
4445
- const calculatePosition = () => {
4446
- const placement = (globalOptions == null ? void 0 : globalOptions.placement) || "bottom-right";
4447
- const { top, left, bottom, right } = getToastPosition(placement, width, offset);
4448
- setContainerStyle({
4449
- position: "fixed",
4450
- top: top !== void 0 ? `${top}px` : void 0,
4451
- left: left !== void 0 ? `${left}px` : void 0,
4452
- bottom: bottom !== void 0 ? `${bottom}px` : void 0,
4453
- right: right !== void 0 ? `${right}px` : void 0
4454
- });
4455
- };
4456
- calculatePosition();
4457
- window.addEventListener("resize", calculatePosition);
4458
- return () => window.removeEventListener("resize", calculatePosition);
4592
+ const placement = (globalOptions == null ? void 0 : globalOptions.placement) || "bottom-right";
4593
+ const { top, left, bottom, right } = getToastPosition(placement, width, offset);
4594
+ setContainerStyle({
4595
+ position: "fixed",
4596
+ top: top !== void 0 ? `${top}px` : void 0,
4597
+ left: left !== void 0 ? `${left}px` : void 0,
4598
+ bottom: bottom !== void 0 ? `${bottom}px` : void 0,
4599
+ right: right !== void 0 ? `${right}px` : void 0
4600
+ });
4459
4601
  }, [globalOptions == null ? void 0 : globalOptions.placement, globalOptions == null ? void 0 : globalOptions.width]);
4460
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(ToastContext.Provider, { value, children: [
4602
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(ToastContext.Provider, { value: contextValue, children: [
4461
4603
  children,
4462
4604
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { id: "deepnoid-toast-container", className: "flex flex-col gap-[10px]", style: containerStyle, children: toasts.map((toast2) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(toast_default, { ref: toastRef, onClose: () => removeToast(toast2.id), ...toast2 }, toast2.id)) })
4463
4605
  ] });
@@ -3,16 +3,17 @@ import "../../chunk-LUWGOKLG.mjs";
3
3
  import {
4
4
  ToastProvider,
5
5
  useToast
6
- } from "../../chunk-HDNQOLUJ.mjs";
6
+ } from "../../chunk-7KUFDVGL.mjs";
7
7
  import "../../chunk-ZOTHPHXA.mjs";
8
8
  import {
9
9
  toast_default
10
- } from "../../chunk-5OBP42D6.mjs";
10
+ } from "../../chunk-2DLKV6TT.mjs";
11
11
  import "../../chunk-ZYIIXWVY.mjs";
12
- import "../../chunk-DADMVOYI.mjs";
13
- import "../../chunk-A7OXEUCC.mjs";
14
- import "../../chunk-4ZJFD3L3.mjs";
12
+ import "../../chunk-HWL7TPUN.mjs";
15
13
  import "../../chunk-E3G5QXSH.mjs";
14
+ import "../../chunk-3IU2RPSM.mjs";
15
+ import "../../chunk-27Y6K5NK.mjs";
16
+ import "../../chunk-4ZJFD3L3.mjs";
16
17
  import "../../chunk-AC6TWLRT.mjs";
17
18
  export {
18
19
  toast_default as Toast,
@@ -11,115 +11,74 @@ import '../../utils/types.mjs';
11
11
  interface Props {
12
12
  width?: number;
13
13
  icon?: IconName;
14
+ title: string;
14
15
  content?: ReactNode | string;
15
16
  placement?: ToastPlacement;
16
17
  classNames?: Record<string, string>;
17
18
  showIcon?: boolean;
18
19
  showCloseButton?: boolean;
19
20
  onClose?: () => void;
21
+ hasShadow?: boolean;
22
+ disableAnimation?: boolean;
20
23
  }
21
24
  type ToastProps = Props & ToastVariantProps;
22
25
  declare const Toast: react.ForwardRefExoticComponent<Props & ToastVariantProps & react.RefAttributes<any>>;
23
26
 
24
27
  declare const toast: tailwind_variants.TVReturnType<{
25
- color: {
26
- primary: {
27
- base: string;
28
- };
29
- secondary: {
30
- base: string;
31
- };
32
- default: {
33
- base: string;
34
- };
35
- success: {
36
- base: string;
37
- };
38
- info: {
39
- base: string;
40
- };
41
- warning: {
42
- base: string;
43
- };
44
- danger: {
45
- base: string;
46
- };
28
+ variant: {
29
+ solid: {};
30
+ outline: {};
47
31
  };
48
- disableAnimation: {
49
- true: {
50
- base: string;
51
- };
32
+ color: {
33
+ primary: {};
34
+ secondary: {};
35
+ success: {};
36
+ info: {};
37
+ warning: {};
38
+ danger: {};
52
39
  };
53
40
  }, {
54
41
  base: string[];
42
+ wrapper: string[];
43
+ title: string[];
55
44
  content: string[];
56
45
  }, undefined, {
57
- color: {
58
- primary: {
59
- base: string;
60
- };
61
- secondary: {
62
- base: string;
63
- };
64
- default: {
65
- base: string;
66
- };
67
- success: {
68
- base: string;
69
- };
70
- info: {
71
- base: string;
72
- };
73
- warning: {
74
- base: string;
75
- };
76
- danger: {
77
- base: string;
78
- };
46
+ variant: {
47
+ solid: {};
48
+ outline: {};
79
49
  };
80
- disableAnimation: {
81
- true: {
82
- base: string;
83
- };
50
+ color: {
51
+ primary: {};
52
+ secondary: {};
53
+ success: {};
54
+ info: {};
55
+ warning: {};
56
+ danger: {};
84
57
  };
85
58
  }, {
86
59
  base: string[];
60
+ wrapper: string[];
61
+ title: string[];
87
62
  content: string[];
88
63
  }, tailwind_variants.TVReturnType<{
89
- color: {
90
- primary: {
91
- base: string;
92
- };
93
- secondary: {
94
- base: string;
95
- };
96
- default: {
97
- base: string;
98
- };
99
- success: {
100
- base: string;
101
- };
102
- info: {
103
- base: string;
104
- };
105
- warning: {
106
- base: string;
107
- };
108
- danger: {
109
- base: string;
110
- };
64
+ variant: {
65
+ solid: {};
66
+ outline: {};
111
67
  };
112
- disableAnimation: {
113
- true: {
114
- base: string;
115
- };
68
+ color: {
69
+ primary: {};
70
+ secondary: {};
71
+ success: {};
72
+ info: {};
73
+ warning: {};
74
+ danger: {};
116
75
  };
117
76
  }, {
118
77
  base: string[];
78
+ wrapper: string[];
79
+ title: string[];
119
80
  content: string[];
120
81
  }, undefined, unknown, unknown, undefined>>;
121
82
  type ToastVariantProps = VariantProps<typeof toast>;
122
- type ToastSlots = keyof ReturnType<typeof toast>;
123
- type ToastReturnType = ReturnType<typeof toast>;
124
83
 
125
- export { type Props, type ToastProps, type ToastReturnType, type ToastSlots, type ToastVariantProps, Toast as default };
84
+ export { type Props, type ToastProps, Toast as default };