@deepnoid/ui 0.1.223 → 1.0.0

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 (252) hide show
  1. package/.turbo/turbo-build.log +266 -251
  2. package/dist/{chunk-NTNF5T5I.mjs → chunk-23KGTXH2.mjs} +1 -1
  3. package/dist/{chunk-SX3JDFTH.mjs → chunk-2K3HZMC6.mjs} +9 -9
  4. package/dist/{chunk-ZFC5O2V3.mjs → chunk-3JKORA4G.mjs} +1 -1
  5. package/dist/{chunk-HFOHFBZH.mjs → chunk-3N442F6I.mjs} +2 -2
  6. package/dist/{chunk-WA7CSZQ3.mjs → chunk-3QZPVRM5.mjs} +1 -1
  7. package/dist/{chunk-BH3I4LIZ.mjs → chunk-4V5D237Z.mjs} +1 -1
  8. package/dist/chunk-63JRWMWN.mjs +215 -0
  9. package/dist/{chunk-GDHLN463.mjs → chunk-6CNPC722.mjs} +2 -2
  10. package/dist/{chunk-4IEHQI5B.mjs → chunk-7JCCPTBU.mjs} +3 -3
  11. package/dist/chunk-A6UUVHC6.mjs +38 -0
  12. package/dist/{chunk-P5L4YI54.mjs → chunk-AOU4QX7H.mjs} +106 -40
  13. package/dist/{chunk-U7SYKG2C.mjs → chunk-BBCJTXGU.mjs} +1 -1
  14. package/dist/{chunk-4S4AAZFC.mjs → chunk-CBFUVFGI.mjs} +4 -4
  15. package/dist/{chunk-AGE57VDD.mjs → chunk-CBIV6KFQ.mjs} +22 -25
  16. package/dist/{chunk-KWHCUAFU.mjs → chunk-CGJBY53Q.mjs} +3 -3
  17. package/dist/{chunk-XZYQFBCT.mjs → chunk-DI7QXTYZ.mjs} +1 -1
  18. package/dist/{chunk-U4DJHAM5.mjs → chunk-DPWUIAVC.mjs} +413 -149
  19. package/dist/chunk-E4VJDQD5.mjs +142 -0
  20. package/dist/{chunk-TE5JU3WA.mjs → chunk-EAWNUQDB.mjs} +90 -133
  21. package/dist/{chunk-OXJX5G3O.mjs → chunk-EIVSXVP5.mjs} +2 -2
  22. package/dist/{chunk-JGG3ZUNG.mjs → chunk-GSOTTSR4.mjs} +1 -1
  23. package/dist/{chunk-NGRGAY42.mjs → chunk-HKF5BNPX.mjs} +1 -1
  24. package/dist/{chunk-2URJGQFC.mjs → chunk-JUKILR6X.mjs} +2 -2
  25. package/dist/{chunk-DW3BX4M2.mjs → chunk-KPOXK7NN.mjs} +1 -1
  26. package/dist/{chunk-5KC3IFNR.mjs → chunk-LJSGQO4B.mjs} +1 -1
  27. package/dist/{chunk-LH6Z7SDZ.mjs → chunk-M7V5YMM2.mjs} +1 -1
  28. package/dist/{chunk-44FMPRHV.mjs → chunk-MAGZDGUW.mjs} +67 -38
  29. package/dist/chunk-MV2WCFK7.mjs +1 -0
  30. package/dist/{chunk-U52FBRJ3.mjs → chunk-NJWXYTBQ.mjs} +1 -1
  31. package/dist/{chunk-3DCUMRYP.mjs → chunk-NPQBJO6G.mjs} +11 -39
  32. package/dist/chunk-OK34FKBQ.mjs +224 -0
  33. package/dist/{chunk-OC5C42CB.mjs → chunk-OPGGL4CG.mjs} +3 -3
  34. package/dist/{chunk-R2XKPG4K.mjs → chunk-OPSMMRA2.mjs} +1 -1
  35. package/dist/{chunk-4X35QQTI.mjs → chunk-P4GNXDMO.mjs} +1 -1
  36. package/dist/{chunk-MTT24BLX.mjs → chunk-PCWANNZ4.mjs} +3 -3
  37. package/dist/{chunk-V2YH54JQ.mjs → chunk-PXUYPS6M.mjs} +12 -2
  38. package/dist/chunk-RFHWRBAB.mjs +105 -0
  39. package/dist/{chunk-EJ4GDC6K.mjs → chunk-S2T4GHJA.mjs} +27 -27
  40. package/dist/{chunk-5VTYO3RF.mjs → chunk-TBI5O3OL.mjs} +1 -1
  41. package/dist/{chunk-FZYZSMSS.mjs → chunk-TBRF36RK.mjs} +1 -1
  42. package/dist/{chunk-Q3KBMVJS.mjs → chunk-TEERNFIT.mjs} +77 -46
  43. package/dist/{chunk-RH3AHG52.mjs → chunk-V5XX3CGL.mjs} +1 -1
  44. package/dist/{chunk-6WD32ERF.mjs → chunk-VO2ZIGIK.mjs} +1 -1
  45. package/dist/{chunk-H6ZQDMYU.mjs → chunk-VOOEH6OJ.mjs} +24 -38
  46. package/dist/{chunk-ACZ3DQVT.mjs → chunk-VUO5J2OK.mjs} +16 -15
  47. package/dist/{chunk-RY5VVXQ4.mjs → chunk-WYTAGN2P.mjs} +1 -1
  48. package/dist/{chunk-NDNIAALB.mjs → chunk-YBDQSEPV.mjs} +17 -18
  49. package/dist/chunk-Z4NO7SMY.mjs +460 -0
  50. package/dist/components/accordion/accordion.js +366 -4
  51. package/dist/components/accordion/accordion.mjs +2 -2
  52. package/dist/components/accordion/accordionItem.js +366 -4
  53. package/dist/components/accordion/accordionItem.mjs +2 -2
  54. package/dist/components/accordion/index.js +366 -4
  55. package/dist/components/accordion/index.mjs +3 -3
  56. package/dist/components/avatar/avatar.js +472 -44
  57. package/dist/components/avatar/avatar.mjs +3 -3
  58. package/dist/components/avatar/index.js +472 -44
  59. package/dist/components/avatar/index.mjs +3 -3
  60. package/dist/components/backdrop/backdrop.js +366 -4
  61. package/dist/components/backdrop/backdrop.mjs +2 -2
  62. package/dist/components/backdrop/index.js +366 -4
  63. package/dist/components/backdrop/index.mjs +2 -2
  64. package/dist/components/breadcrumb/breadcrumb.js +951 -74
  65. package/dist/components/breadcrumb/breadcrumb.mjs +10 -9
  66. package/dist/components/breadcrumb/index.js +951 -74
  67. package/dist/components/breadcrumb/index.mjs +10 -9
  68. package/dist/components/button/button-group.js +366 -4
  69. package/dist/components/button/button-group.mjs +2 -2
  70. package/dist/components/button/button.d.mts +82 -119
  71. package/dist/components/button/button.d.ts +82 -119
  72. package/dist/components/button/button.js +966 -355
  73. package/dist/components/button/button.mjs +6 -5
  74. package/dist/components/button/button.style.d.mts +89 -0
  75. package/dist/components/button/button.style.d.ts +89 -0
  76. package/dist/components/button/button.style.js +1172 -0
  77. package/dist/components/button/button.style.mjs +9 -0
  78. package/dist/components/button/icon-button.d.mts +45 -46
  79. package/dist/components/button/icon-button.d.ts +45 -46
  80. package/dist/components/button/icon-button.js +1125 -527
  81. package/dist/components/button/icon-button.mjs +6 -5
  82. package/dist/components/button/index.js +1154 -830
  83. package/dist/components/button/index.mjs +9 -8
  84. package/dist/components/button/text-button.d.mts +59 -39
  85. package/dist/components/button/text-button.d.ts +59 -39
  86. package/dist/components/button/text-button.js +831 -21
  87. package/dist/components/button/text-button.mjs +3 -2
  88. package/dist/components/charts/areaChart.js +366 -4
  89. package/dist/components/charts/areaChart.mjs +2 -2
  90. package/dist/components/charts/barChart.js +366 -4
  91. package/dist/components/charts/barChart.mjs +2 -2
  92. package/dist/components/charts/circularProgress.js +366 -4
  93. package/dist/components/charts/circularProgress.mjs +2 -2
  94. package/dist/components/charts/index.js +366 -4
  95. package/dist/components/charts/index.mjs +6 -6
  96. package/dist/components/charts/radarChart.js +366 -4
  97. package/dist/components/charts/radarChart.mjs +2 -2
  98. package/dist/components/charts/simpleBarChart.js +366 -4
  99. package/dist/components/charts/simpleBarChart.mjs +2 -2
  100. package/dist/components/checkbox/checkbox.js +376 -42
  101. package/dist/components/checkbox/checkbox.mjs +2 -2
  102. package/dist/components/checkbox/index.js +376 -42
  103. package/dist/components/checkbox/index.mjs +2 -2
  104. package/dist/components/chip/chip.d.mts +32 -0
  105. package/dist/components/chip/chip.d.ts +32 -0
  106. package/dist/components/chip/chip.js +496 -57
  107. package/dist/components/chip/chip.mjs +4 -4
  108. package/dist/components/chip/index.js +496 -57
  109. package/dist/components/chip/index.mjs +4 -4
  110. package/dist/components/drawer/drawer.js +366 -4
  111. package/dist/components/drawer/drawer.mjs +2 -2
  112. package/dist/components/drawer/index.js +366 -4
  113. package/dist/components/drawer/index.mjs +2 -2
  114. package/dist/components/fileUpload/fileUpload.js +1014 -402
  115. package/dist/components/fileUpload/fileUpload.mjs +12 -11
  116. package/dist/components/fileUpload/index.js +1014 -402
  117. package/dist/components/fileUpload/index.mjs +12 -11
  118. package/dist/components/icon/Icon.d.mts +23 -10
  119. package/dist/components/icon/Icon.d.ts +23 -10
  120. package/dist/components/icon/Icon.js +120 -53
  121. package/dist/components/icon/Icon.mjs +2 -2
  122. package/dist/components/icon/index.js +120 -53
  123. package/dist/components/icon/index.mjs +2 -2
  124. package/dist/components/icon/template.d.mts +5 -2
  125. package/dist/components/icon/template.d.ts +5 -2
  126. package/dist/components/icon/template.js +106 -40
  127. package/dist/components/icon/template.mjs +1 -1
  128. package/dist/components/input/index.js +511 -82
  129. package/dist/components/input/index.mjs +4 -4
  130. package/dist/components/input/input.js +511 -82
  131. package/dist/components/input/input.mjs +4 -4
  132. package/dist/components/list/index.js +486 -57
  133. package/dist/components/list/index.mjs +6 -6
  134. package/dist/components/list/list.js +366 -4
  135. package/dist/components/list/list.mjs +2 -2
  136. package/dist/components/list/listItem.js +486 -57
  137. package/dist/components/list/listItem.mjs +5 -5
  138. package/dist/components/modal/GlobalModalProvider.d.mts +2 -0
  139. package/dist/components/modal/GlobalModalProvider.d.ts +2 -0
  140. package/dist/components/modal/GlobalModalProvider.js +1028 -416
  141. package/dist/components/modal/GlobalModalProvider.mjs +12 -11
  142. package/dist/components/modal/index.d.mts +2 -0
  143. package/dist/components/modal/index.d.ts +2 -0
  144. package/dist/components/modal/index.js +1028 -416
  145. package/dist/components/modal/index.mjs +13 -12
  146. package/dist/components/modal/modal.d.mts +101 -29
  147. package/dist/components/modal/modal.d.ts +101 -29
  148. package/dist/components/modal/modal.js +1028 -416
  149. package/dist/components/modal/modal.mjs +11 -10
  150. package/dist/components/modal/useGlobalModal.d.mts +2 -0
  151. package/dist/components/modal/useGlobalModal.d.ts +2 -0
  152. package/dist/components/modal/useGlobalModal.mjs +13 -12
  153. package/dist/components/pagination/index.js +598 -212
  154. package/dist/components/pagination/index.mjs +5 -5
  155. package/dist/components/pagination/pagination.js +598 -212
  156. package/dist/components/pagination/pagination.mjs +5 -5
  157. package/dist/components/picker/datePicker.js +1029 -705
  158. package/dist/components/picker/datePicker.mjs +12 -11
  159. package/dist/components/picker/day.js +366 -4
  160. package/dist/components/picker/day.mjs +2 -2
  161. package/dist/components/picker/index.js +1027 -703
  162. package/dist/components/picker/index.mjs +15 -14
  163. package/dist/components/picker/timePicker/Panel.js +831 -21
  164. package/dist/components/picker/timePicker/Panel.mjs +10 -9
  165. package/dist/components/picker/timePicker/index.js +976 -99
  166. package/dist/components/picker/timePicker/index.mjs +12 -11
  167. package/dist/components/progress/index.js +381 -18
  168. package/dist/components/progress/index.mjs +2 -2
  169. package/dist/components/progress/progress.d.mts +21 -18
  170. package/dist/components/progress/progress.d.ts +21 -18
  171. package/dist/components/progress/progress.js +381 -18
  172. package/dist/components/progress/progress.mjs +2 -2
  173. package/dist/components/radio/index.js +389 -41
  174. package/dist/components/radio/index.mjs +2 -2
  175. package/dist/components/radio/radio.d.mts +33 -48
  176. package/dist/components/radio/radio.d.ts +33 -48
  177. package/dist/components/radio/radio.js +389 -41
  178. package/dist/components/radio/radio.mjs +2 -2
  179. package/dist/components/ripple/index.mjs +3 -3
  180. package/dist/components/select/index.js +819 -221
  181. package/dist/components/select/index.mjs +10 -9
  182. package/dist/components/select/select.js +819 -221
  183. package/dist/components/select/select.mjs +10 -9
  184. package/dist/components/slider/index.d.mts +4 -0
  185. package/dist/components/slider/index.d.ts +4 -0
  186. package/dist/components/slider/index.js +955 -0
  187. package/dist/components/slider/index.mjs +11 -0
  188. package/dist/components/slider/slider.d.mts +158 -0
  189. package/dist/components/slider/slider.d.ts +158 -0
  190. package/dist/components/slider/slider.js +949 -0
  191. package/dist/components/slider/slider.mjs +10 -0
  192. package/dist/components/starRating/index.js +486 -57
  193. package/dist/components/starRating/index.mjs +4 -4
  194. package/dist/components/starRating/starRating.js +486 -57
  195. package/dist/components/starRating/starRating.mjs +4 -4
  196. package/dist/components/switch/index.js +22 -25
  197. package/dist/components/switch/index.mjs +1 -1
  198. package/dist/components/switch/switch.d.mts +0 -18
  199. package/dist/components/switch/switch.d.ts +0 -18
  200. package/dist/components/switch/switch.js +22 -25
  201. package/dist/components/switch/switch.mjs +1 -1
  202. package/dist/components/table/definition-table.js +366 -4
  203. package/dist/components/table/definition-table.mjs +2 -2
  204. package/dist/components/table/form-table.js +366 -4
  205. package/dist/components/table/form-table.mjs +1 -1
  206. package/dist/components/table/index.js +679 -291
  207. package/dist/components/table/index.mjs +10 -10
  208. package/dist/components/table/table-body.js +679 -291
  209. package/dist/components/table/table-body.mjs +7 -7
  210. package/dist/components/table/table-head.js +679 -291
  211. package/dist/components/table/table-head.mjs +7 -7
  212. package/dist/components/table/table.d.mts +8 -29
  213. package/dist/components/table/table.d.ts +8 -29
  214. package/dist/components/table/table.js +679 -291
  215. package/dist/components/table/table.mjs +7 -7
  216. package/dist/components/tabs/index.js +366 -4
  217. package/dist/components/tabs/index.mjs +2 -2
  218. package/dist/components/tabs/tabs.js +366 -4
  219. package/dist/components/tabs/tabs.mjs +2 -2
  220. package/dist/components/textarea/index.js +67 -38
  221. package/dist/components/textarea/index.mjs +1 -1
  222. package/dist/components/textarea/textarea.d.mts +21 -0
  223. package/dist/components/textarea/textarea.d.ts +21 -0
  224. package/dist/components/textarea/textarea.js +67 -38
  225. package/dist/components/textarea/textarea.mjs +1 -1
  226. package/dist/components/timePicker/calendar.js +486 -57
  227. package/dist/components/timePicker/calendar.mjs +3 -3
  228. package/dist/components/toast/index.js +486 -57
  229. package/dist/components/toast/index.mjs +5 -5
  230. package/dist/components/toast/toast.js +486 -57
  231. package/dist/components/toast/toast.mjs +4 -4
  232. package/dist/components/toast/use-toast.js +486 -57
  233. package/dist/components/toast/use-toast.mjs +5 -5
  234. package/dist/components/tooltip/index.js +366 -4
  235. package/dist/components/tooltip/index.mjs +2 -2
  236. package/dist/components/tooltip/tooltip.js +366 -4
  237. package/dist/components/tooltip/tooltip.mjs +2 -2
  238. package/dist/components/tree/index.js +486 -57
  239. package/dist/components/tree/index.mjs +4 -4
  240. package/dist/components/tree/tree.js +486 -57
  241. package/dist/components/tree/tree.mjs +4 -4
  242. package/dist/index.d.mts +1 -0
  243. package/dist/index.d.ts +1 -0
  244. package/dist/index.js +1705 -1281
  245. package/dist/index.mjs +76 -70
  246. package/dist/utils/tailwind-variants.js +366 -4
  247. package/dist/utils/tailwind-variants.mjs +1 -1
  248. package/package.json +1 -1
  249. package/dist/chunk-6AID2NLT.mjs +0 -37
  250. package/dist/chunk-BBRO35V3.mjs +0 -385
  251. package/dist/chunk-EVJ46M3U.mjs +0 -141
  252. package/dist/chunk-SKX5QPUD.mjs +0 -482
@@ -2,30 +2,31 @@
2
2
  import "../../chunk-NNVGYR5T.mjs";
3
3
  import {
4
4
  useGlobalModal
5
- } from "../../chunk-RH3AHG52.mjs";
5
+ } from "../../chunk-V5XX3CGL.mjs";
6
6
  import {
7
7
  GlobalModalContext,
8
8
  GlobalModalProvider
9
- } from "../../chunk-R2XKPG4K.mjs";
9
+ } from "../../chunk-OPSMMRA2.mjs";
10
10
  import {
11
11
  modal_default
12
- } from "../../chunk-EVJ46M3U.mjs";
12
+ } from "../../chunk-E4VJDQD5.mjs";
13
13
  import "../../chunk-SE5TU755.mjs";
14
- import "../../chunk-4X35QQTI.mjs";
14
+ import "../../chunk-P4GNXDMO.mjs";
15
15
  import "../../chunk-MY5U63QO.mjs";
16
- import "../../chunk-NDNIAALB.mjs";
17
- import "../../chunk-5VTYO3RF.mjs";
18
- import "../../chunk-SKX5QPUD.mjs";
19
- import "../../chunk-BBRO35V3.mjs";
16
+ import "../../chunk-YBDQSEPV.mjs";
17
+ import "../../chunk-TBI5O3OL.mjs";
18
+ import "../../chunk-63JRWMWN.mjs";
19
+ import "../../chunk-RFHWRBAB.mjs";
20
20
  import "../../chunk-6WSACUIB.mjs";
21
- import "../../chunk-SZL743JC.mjs";
22
21
  import "../../chunk-LXHUO6VM.mjs";
22
+ import "../../chunk-SZL743JC.mjs";
23
23
  import "../../chunk-ZYIIXWVY.mjs";
24
- import "../../chunk-6AID2NLT.mjs";
25
- import "../../chunk-P5L4YI54.mjs";
24
+ import "../../chunk-A6UUVHC6.mjs";
25
+ import "../../chunk-Z4NO7SMY.mjs";
26
+ import "../../chunk-AOU4QX7H.mjs";
26
27
  import "../../chunk-27Y6K5NK.mjs";
27
28
  import "../../chunk-E3G5QXSH.mjs";
28
- import "../../chunk-U4DJHAM5.mjs";
29
+ import "../../chunk-DPWUIAVC.mjs";
29
30
  import "../../chunk-AC6TWLRT.mjs";
30
31
  export {
31
32
  GlobalModalContext,
@@ -3,75 +3,147 @@ import { VariantProps } from 'tailwind-variants';
3
3
  import * as react from 'react';
4
4
  import { ReactNode } from 'react';
5
5
  import { SlotsToClasses } from '../../utils/types.mjs';
6
+ import { IconName } from '../icon/Icon.mjs';
7
+ import 'react/jsx-runtime';
8
+ import '../icon/template.mjs';
6
9
 
7
- interface ModalProps extends VariantProps<typeof modal> {
10
+ interface ModalProps extends Omit<React.ComponentPropsWithRef<"div">, "color" | "title" | "content">, VariantProps<typeof modal> {
8
11
  isOpen?: boolean;
12
+ variant?: "vertical" | "horizontal";
9
13
  color?: "primary" | "secondary" | "neutral" | "success" | "info" | "warning" | "danger";
14
+ iconName?: IconName;
10
15
  title?: string;
11
16
  content?: ReactNode | string;
12
17
  confirmButtonText?: string;
13
18
  cancelButtonText?: string;
14
19
  showCloseButton?: boolean;
15
20
  isKeyboardDismissDisabled?: boolean;
21
+ hasBackdrop?: boolean;
16
22
  onConfirm?: () => void;
17
23
  onCancel?: () => void;
18
24
  extraFooter?: ReactNode;
19
25
  classNames?: SlotsToClasses<ModalSlots>;
20
26
  }
21
- declare const Modal: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDivElement>>;
27
+ declare const Modal: react.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
22
28
 
23
29
  declare const modal: tailwind_variants.TVReturnType<{
30
+ variant: {
31
+ vertical: {
32
+ titleWrapper: string[];
33
+ };
34
+ horizontal: {
35
+ titleWrapper: string[];
36
+ };
37
+ };
24
38
  color: {
25
- primary: {};
26
- secondary: {};
27
- neutral: {};
28
- success: {};
29
- info: {};
30
- warning: {};
31
- danger: {};
39
+ primary: {
40
+ icon: string[];
41
+ };
42
+ secondary: {
43
+ icon: string[];
44
+ };
45
+ neutral: {
46
+ icon: string[];
47
+ };
48
+ success: {
49
+ icon: string[];
50
+ };
51
+ info: {
52
+ icon: string[];
53
+ };
54
+ warning: {
55
+ icon: string[];
56
+ };
57
+ danger: {
58
+ icon: string[];
59
+ };
32
60
  };
33
61
  }, {
34
62
  base: string[];
35
- modalWrapper: string[];
36
- wrapper: string[];
63
+ icon: never[];
64
+ titleWrapper: string[];
37
65
  title: string[];
38
66
  content: string[];
39
67
  footerWrapper: string[];
40
68
  footer: string[];
41
69
  closeIcon: string[];
42
70
  }, undefined, {
71
+ variant: {
72
+ vertical: {
73
+ titleWrapper: string[];
74
+ };
75
+ horizontal: {
76
+ titleWrapper: string[];
77
+ };
78
+ };
43
79
  color: {
44
- primary: {};
45
- secondary: {};
46
- neutral: {};
47
- success: {};
48
- info: {};
49
- warning: {};
50
- danger: {};
80
+ primary: {
81
+ icon: string[];
82
+ };
83
+ secondary: {
84
+ icon: string[];
85
+ };
86
+ neutral: {
87
+ icon: string[];
88
+ };
89
+ success: {
90
+ icon: string[];
91
+ };
92
+ info: {
93
+ icon: string[];
94
+ };
95
+ warning: {
96
+ icon: string[];
97
+ };
98
+ danger: {
99
+ icon: string[];
100
+ };
51
101
  };
52
102
  }, {
53
103
  base: string[];
54
- modalWrapper: string[];
55
- wrapper: string[];
104
+ icon: never[];
105
+ titleWrapper: string[];
56
106
  title: string[];
57
107
  content: string[];
58
108
  footerWrapper: string[];
59
109
  footer: string[];
60
110
  closeIcon: string[];
61
111
  }, tailwind_variants.TVReturnType<{
112
+ variant: {
113
+ vertical: {
114
+ titleWrapper: string[];
115
+ };
116
+ horizontal: {
117
+ titleWrapper: string[];
118
+ };
119
+ };
62
120
  color: {
63
- primary: {};
64
- secondary: {};
65
- neutral: {};
66
- success: {};
67
- info: {};
68
- warning: {};
69
- danger: {};
121
+ primary: {
122
+ icon: string[];
123
+ };
124
+ secondary: {
125
+ icon: string[];
126
+ };
127
+ neutral: {
128
+ icon: string[];
129
+ };
130
+ success: {
131
+ icon: string[];
132
+ };
133
+ info: {
134
+ icon: string[];
135
+ };
136
+ warning: {
137
+ icon: string[];
138
+ };
139
+ danger: {
140
+ icon: string[];
141
+ };
70
142
  };
71
143
  }, {
72
144
  base: string[];
73
- modalWrapper: string[];
74
- wrapper: string[];
145
+ icon: never[];
146
+ titleWrapper: string[];
75
147
  title: string[];
76
148
  content: string[];
77
149
  footerWrapper: string[];
@@ -3,75 +3,147 @@ import { VariantProps } from 'tailwind-variants';
3
3
  import * as react from 'react';
4
4
  import { ReactNode } from 'react';
5
5
  import { SlotsToClasses } from '../../utils/types.js';
6
+ import { IconName } from '../icon/Icon.js';
7
+ import 'react/jsx-runtime';
8
+ import '../icon/template.js';
6
9
 
7
- interface ModalProps extends VariantProps<typeof modal> {
10
+ interface ModalProps extends Omit<React.ComponentPropsWithRef<"div">, "color" | "title" | "content">, VariantProps<typeof modal> {
8
11
  isOpen?: boolean;
12
+ variant?: "vertical" | "horizontal";
9
13
  color?: "primary" | "secondary" | "neutral" | "success" | "info" | "warning" | "danger";
14
+ iconName?: IconName;
10
15
  title?: string;
11
16
  content?: ReactNode | string;
12
17
  confirmButtonText?: string;
13
18
  cancelButtonText?: string;
14
19
  showCloseButton?: boolean;
15
20
  isKeyboardDismissDisabled?: boolean;
21
+ hasBackdrop?: boolean;
16
22
  onConfirm?: () => void;
17
23
  onCancel?: () => void;
18
24
  extraFooter?: ReactNode;
19
25
  classNames?: SlotsToClasses<ModalSlots>;
20
26
  }
21
- declare const Modal: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDivElement>>;
27
+ declare const Modal: react.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
22
28
 
23
29
  declare const modal: tailwind_variants.TVReturnType<{
30
+ variant: {
31
+ vertical: {
32
+ titleWrapper: string[];
33
+ };
34
+ horizontal: {
35
+ titleWrapper: string[];
36
+ };
37
+ };
24
38
  color: {
25
- primary: {};
26
- secondary: {};
27
- neutral: {};
28
- success: {};
29
- info: {};
30
- warning: {};
31
- danger: {};
39
+ primary: {
40
+ icon: string[];
41
+ };
42
+ secondary: {
43
+ icon: string[];
44
+ };
45
+ neutral: {
46
+ icon: string[];
47
+ };
48
+ success: {
49
+ icon: string[];
50
+ };
51
+ info: {
52
+ icon: string[];
53
+ };
54
+ warning: {
55
+ icon: string[];
56
+ };
57
+ danger: {
58
+ icon: string[];
59
+ };
32
60
  };
33
61
  }, {
34
62
  base: string[];
35
- modalWrapper: string[];
36
- wrapper: string[];
63
+ icon: never[];
64
+ titleWrapper: string[];
37
65
  title: string[];
38
66
  content: string[];
39
67
  footerWrapper: string[];
40
68
  footer: string[];
41
69
  closeIcon: string[];
42
70
  }, undefined, {
71
+ variant: {
72
+ vertical: {
73
+ titleWrapper: string[];
74
+ };
75
+ horizontal: {
76
+ titleWrapper: string[];
77
+ };
78
+ };
43
79
  color: {
44
- primary: {};
45
- secondary: {};
46
- neutral: {};
47
- success: {};
48
- info: {};
49
- warning: {};
50
- danger: {};
80
+ primary: {
81
+ icon: string[];
82
+ };
83
+ secondary: {
84
+ icon: string[];
85
+ };
86
+ neutral: {
87
+ icon: string[];
88
+ };
89
+ success: {
90
+ icon: string[];
91
+ };
92
+ info: {
93
+ icon: string[];
94
+ };
95
+ warning: {
96
+ icon: string[];
97
+ };
98
+ danger: {
99
+ icon: string[];
100
+ };
51
101
  };
52
102
  }, {
53
103
  base: string[];
54
- modalWrapper: string[];
55
- wrapper: string[];
104
+ icon: never[];
105
+ titleWrapper: string[];
56
106
  title: string[];
57
107
  content: string[];
58
108
  footerWrapper: string[];
59
109
  footer: string[];
60
110
  closeIcon: string[];
61
111
  }, tailwind_variants.TVReturnType<{
112
+ variant: {
113
+ vertical: {
114
+ titleWrapper: string[];
115
+ };
116
+ horizontal: {
117
+ titleWrapper: string[];
118
+ };
119
+ };
62
120
  color: {
63
- primary: {};
64
- secondary: {};
65
- neutral: {};
66
- success: {};
67
- info: {};
68
- warning: {};
69
- danger: {};
121
+ primary: {
122
+ icon: string[];
123
+ };
124
+ secondary: {
125
+ icon: string[];
126
+ };
127
+ neutral: {
128
+ icon: string[];
129
+ };
130
+ success: {
131
+ icon: string[];
132
+ };
133
+ info: {
134
+ icon: string[];
135
+ };
136
+ warning: {
137
+ icon: string[];
138
+ };
139
+ danger: {
140
+ icon: string[];
141
+ };
70
142
  };
71
143
  }, {
72
144
  base: string[];
73
- modalWrapper: string[];
74
- wrapper: string[];
145
+ icon: never[];
146
+ titleWrapper: string[];
75
147
  title: string[];
76
148
  content: string[];
77
149
  footerWrapper: string[];