@causw/core 0.0.15 → 0.0.17

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 (271) hide show
  1. package/README.md +123 -0
  2. package/dist/components/Avatar/Avatar.d.cts +3 -2
  3. package/dist/components/Avatar/Avatar.d.cts.map +1 -1
  4. package/dist/components/Avatar/Avatar.d.mts +2 -2
  5. package/dist/components/Avatar/Avatar.styles.d.cts +3 -3
  6. package/dist/components/Avatar/Avatar.styles.d.mts +3 -3
  7. package/dist/components/Avatar/index.d.cts +2 -0
  8. package/dist/components/BottomNavigation/BottomNavigation.d.cts +6 -5
  9. package/dist/components/BottomNavigation/BottomNavigation.d.cts.map +1 -1
  10. package/dist/components/BottomNavigation/BottomNavigation.d.mts +5 -5
  11. package/dist/components/BottomNavigation/BottomNavigation.styles.d.mts +3 -3
  12. package/dist/components/BottomNavigation/index.d.cts +1 -0
  13. package/dist/components/BottomSheet/BottomSheet.d.cts +6 -6
  14. package/dist/components/BottomSheet/BottomSheet.d.mts +6 -6
  15. package/dist/components/BottomSheet/BottomSheet.styles.d.cts +3 -3
  16. package/dist/components/BottomSheet/BottomSheet.styles.d.mts +3 -3
  17. package/dist/components/BottomSheet/index.d.cts +1 -0
  18. package/dist/components/Box/Box.d.cts +1 -0
  19. package/dist/components/Box/Box.d.cts.map +1 -1
  20. package/dist/components/Box/index.d.cts +2 -0
  21. package/dist/components/Button/Button.d.cts +3 -2
  22. package/dist/components/Button/Button.d.cts.map +1 -1
  23. package/dist/components/Button/Button.d.mts +2 -2
  24. package/dist/components/Button/Button.d.mts.map +1 -1
  25. package/dist/components/Button/Button.styles.cjs +1 -1
  26. package/dist/components/Button/Button.styles.d.cts +5 -5
  27. package/dist/components/Button/Button.styles.d.mts +5 -5
  28. package/dist/components/Button/Button.styles.mjs +1 -1
  29. package/dist/components/Button/Button.styles.mjs.map +1 -1
  30. package/dist/components/Button/index.d.cts +1 -0
  31. package/dist/components/CTAButton/CTAButton.d.cts +3 -2
  32. package/dist/components/CTAButton/CTAButton.d.cts.map +1 -1
  33. package/dist/components/CTAButton/CTAButton.styles.cjs +1 -1
  34. package/dist/components/CTAButton/CTAButton.styles.d.cts +5 -5
  35. package/dist/components/CTAButton/CTAButton.styles.d.mts +5 -5
  36. package/dist/components/CTAButton/CTAButton.styles.mjs +1 -1
  37. package/dist/components/CTAButton/CTAButton.styles.mjs.map +1 -1
  38. package/dist/components/CTAButton/index.d.cts +1 -0
  39. package/dist/components/Calendar/Calendar.cjs +2 -2
  40. package/dist/components/Calendar/Calendar.d.cts +4 -2
  41. package/dist/components/Calendar/Calendar.d.cts.map +1 -1
  42. package/dist/components/Calendar/Calendar.d.mts +4 -2
  43. package/dist/components/Calendar/Calendar.d.mts.map +1 -1
  44. package/dist/components/Calendar/Calendar.mjs +2 -2
  45. package/dist/components/Calendar/Calendar.mjs.map +1 -1
  46. package/dist/components/Calendar/Calendar.styles.d.cts +3 -3
  47. package/dist/components/Calendar/Calendar.styles.d.mts +3 -3
  48. package/dist/components/Checkbox/Checkbox.d.cts +6 -4
  49. package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
  50. package/dist/components/Checkbox/Checkbox.d.mts +4 -4
  51. package/dist/components/Checkbox/Checkbox.styles.d.cts +3 -3
  52. package/dist/components/Checkbox/index.d.cts +1 -0
  53. package/dist/components/Chip/Chip.d.cts +3 -2
  54. package/dist/components/Chip/Chip.d.cts.map +1 -1
  55. package/dist/components/Chip/Chip.d.mts +2 -2
  56. package/dist/components/Chip/Chip.styles.cjs +1 -1
  57. package/dist/components/Chip/Chip.styles.d.cts +3 -3
  58. package/dist/components/Chip/Chip.styles.d.mts +3 -3
  59. package/dist/components/Chip/Chip.styles.mjs +1 -1
  60. package/dist/components/Chip/Chip.styles.mjs.map +1 -1
  61. package/dist/components/Chip/index.d.cts +2 -0
  62. package/dist/components/DatePicker/DatePicker.cjs +93 -0
  63. package/dist/components/DatePicker/DatePicker.d.cts +40 -0
  64. package/dist/components/DatePicker/DatePicker.d.cts.map +1 -0
  65. package/dist/components/DatePicker/DatePicker.d.mts +41 -0
  66. package/dist/components/DatePicker/DatePicker.d.mts.map +1 -0
  67. package/dist/components/DatePicker/DatePicker.mjs +92 -0
  68. package/dist/components/DatePicker/DatePicker.mjs.map +1 -0
  69. package/dist/components/DatePicker/DatePicker.styles.cjs +33 -0
  70. package/dist/components/DatePicker/DatePicker.styles.d.cts +84 -0
  71. package/dist/components/DatePicker/DatePicker.styles.d.cts.map +1 -0
  72. package/dist/components/DatePicker/DatePicker.styles.d.mts +84 -0
  73. package/dist/components/DatePicker/DatePicker.styles.d.mts.map +1 -0
  74. package/dist/components/DatePicker/DatePicker.styles.mjs +33 -0
  75. package/dist/components/DatePicker/DatePicker.styles.mjs.map +1 -0
  76. package/dist/components/DatePicker/index.d.cts +2 -0
  77. package/dist/components/DatePicker/index.d.mts +2 -0
  78. package/dist/components/Dialog/Dialog.d.cts +9 -8
  79. package/dist/components/Dialog/Dialog.d.cts.map +1 -1
  80. package/dist/components/Dialog/Dialog.d.mts +5 -5
  81. package/dist/components/Dialog/Dialog.styles.d.cts +3 -3
  82. package/dist/components/Dialog/Dialog.styles.d.mts +3 -3
  83. package/dist/components/Dialog/index.d.cts +2 -0
  84. package/dist/components/Drawer/Drawer.d.cts +11 -11
  85. package/dist/components/Drawer/Drawer.d.cts.map +1 -1
  86. package/dist/components/Drawer/Drawer.d.mts +3 -3
  87. package/dist/components/Drawer/Drawer.styles.d.cts +3 -3
  88. package/dist/components/Drawer/Drawer.styles.d.mts +3 -3
  89. package/dist/components/Drawer/index.d.cts +1 -0
  90. package/dist/components/Dropdown/Dropdown.d.mts +3 -3
  91. package/dist/components/Dropdown/Dropdown.styles.d.cts +3 -3
  92. package/dist/components/Dropdown/Dropdown.styles.d.mts +3 -3
  93. package/dist/components/Dropdown/Dropdown.styles.d.mts.map +1 -1
  94. package/dist/components/Dropdown/index.d.cts +2 -0
  95. package/dist/components/Field/Field.d.cts +6 -5
  96. package/dist/components/Field/Field.d.cts.map +1 -1
  97. package/dist/components/Field/Field.d.mts +5 -5
  98. package/dist/components/Field/index.d.cts +1 -0
  99. package/dist/components/Flex/Flex.d.cts +1 -0
  100. package/dist/components/Flex/Flex.d.cts.map +1 -1
  101. package/dist/components/Flex/index.d.cts +2 -0
  102. package/dist/components/Float/Float.d.cts +1 -0
  103. package/dist/components/Float/Float.d.cts.map +1 -1
  104. package/dist/components/Float/Float.styles.d.mts +3 -3
  105. package/dist/components/Float/index.d.cts +1 -0
  106. package/dist/components/FloatingActionButton/FloatingActionButton.d.cts +3 -2
  107. package/dist/components/FloatingActionButton/FloatingActionButton.d.cts.map +1 -1
  108. package/dist/components/FloatingActionButton/FloatingActionButton.d.mts +2 -2
  109. package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.cts +3 -3
  110. package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.mts +3 -3
  111. package/dist/components/FloatingActionButton/index.d.cts +1 -0
  112. package/dist/components/Grid/Grid.d.cts +1 -0
  113. package/dist/components/Grid/Grid.d.cts.map +1 -1
  114. package/dist/components/Grid/Grid.styles.d.mts +3 -3
  115. package/dist/components/Grid/index.d.cts +1 -0
  116. package/dist/components/HStack/HStack.d.cts +3 -2
  117. package/dist/components/HStack/HStack.d.cts.map +1 -1
  118. package/dist/components/HStack/HStack.d.mts +2 -2
  119. package/dist/components/HStack/index.d.cts +1 -0
  120. package/dist/components/Modal/Modal.cjs +4 -7
  121. package/dist/components/Modal/Modal.d.cts +14 -15
  122. package/dist/components/Modal/Modal.d.cts.map +1 -1
  123. package/dist/components/Modal/Modal.d.mts +10 -12
  124. package/dist/components/Modal/Modal.d.mts.map +1 -1
  125. package/dist/components/Modal/Modal.mjs +4 -7
  126. package/dist/components/Modal/Modal.mjs.map +1 -1
  127. package/dist/components/Modal/Modal.styles.cjs +15 -26
  128. package/dist/components/Modal/Modal.styles.d.cts +3 -39
  129. package/dist/components/Modal/Modal.styles.d.cts.map +1 -1
  130. package/dist/components/Modal/Modal.styles.d.mts +0 -36
  131. package/dist/components/Modal/Modal.styles.d.mts.map +1 -1
  132. package/dist/components/Modal/Modal.styles.mjs +15 -26
  133. package/dist/components/Modal/Modal.styles.mjs.map +1 -1
  134. package/dist/components/Modal/index.d.cts +2 -0
  135. package/dist/components/Primitive/Primitive.d.cts +16 -16
  136. package/dist/components/Primitive/Primitive.d.mts +16 -16
  137. package/dist/components/Primitive/index.d.cts +1 -0
  138. package/dist/components/PullToRefresh/PullToRefresh.cjs +79 -0
  139. package/dist/components/PullToRefresh/PullToRefresh.d.cts +20 -0
  140. package/dist/components/PullToRefresh/PullToRefresh.d.cts.map +1 -0
  141. package/dist/components/PullToRefresh/PullToRefresh.d.mts +20 -0
  142. package/dist/components/PullToRefresh/PullToRefresh.d.mts.map +1 -0
  143. package/dist/components/PullToRefresh/PullToRefresh.mjs +78 -0
  144. package/dist/components/PullToRefresh/PullToRefresh.mjs.map +1 -0
  145. package/dist/components/PullToRefresh/PullToRefresh.styles.cjs +12 -0
  146. package/dist/components/PullToRefresh/PullToRefresh.styles.d.cts +46 -0
  147. package/dist/components/PullToRefresh/PullToRefresh.styles.d.cts.map +1 -0
  148. package/dist/components/PullToRefresh/PullToRefresh.styles.d.mts +46 -0
  149. package/dist/components/PullToRefresh/PullToRefresh.styles.d.mts.map +1 -0
  150. package/dist/components/PullToRefresh/PullToRefresh.styles.mjs +12 -0
  151. package/dist/components/PullToRefresh/PullToRefresh.styles.mjs.map +1 -0
  152. package/dist/components/PullToRefresh/index.d.cts +1 -0
  153. package/dist/components/PullToRefresh/index.d.mts +1 -0
  154. package/dist/components/Radio/Radio.d.cts +4 -3
  155. package/dist/components/Radio/Radio.d.cts.map +1 -1
  156. package/dist/components/Radio/index.d.cts +1 -0
  157. package/dist/components/RatioChart/RatioChart.d.cts +5 -5
  158. package/dist/components/RatioChart/RatioChart.d.mts +5 -5
  159. package/dist/components/RatioChart/RatioChartEditor.d.cts +2 -2
  160. package/dist/components/RatioChart/RatioChartEditor.d.mts +2 -2
  161. package/dist/components/RatioChart/index.d.cts +2 -0
  162. package/dist/components/Select/Select.d.mts +5 -5
  163. package/dist/components/Select/Select.styles.d.cts +3 -3
  164. package/dist/components/Select/index.d.cts +2 -0
  165. package/dist/components/Separator/Separator.d.cts +1 -0
  166. package/dist/components/Separator/Separator.d.cts.map +1 -1
  167. package/dist/components/Separator/Separator.styles.cjs +1 -1
  168. package/dist/components/Separator/Separator.styles.d.mts +3 -3
  169. package/dist/components/Separator/Separator.styles.mjs +1 -1
  170. package/dist/components/Separator/Separator.styles.mjs.map +1 -1
  171. package/dist/components/Separator/index.d.cts +2 -0
  172. package/dist/components/Sidebar/Sidebar.d.cts +9 -8
  173. package/dist/components/Sidebar/Sidebar.d.cts.map +1 -1
  174. package/dist/components/Sidebar/Sidebar.d.mts +8 -8
  175. package/dist/components/Sidebar/Sidebar.styles.d.mts +3 -3
  176. package/dist/components/Sidebar/hooks/useSidebarContext.d.cts +2 -0
  177. package/dist/components/Sidebar/hooks/useSidebarContext.d.cts.map +1 -1
  178. package/dist/components/Sidebar/index.d.cts +2 -0
  179. package/dist/components/Skeleton/Skeleton.cjs +34 -0
  180. package/dist/components/Skeleton/Skeleton.d.cts +25 -0
  181. package/dist/components/Skeleton/Skeleton.d.cts.map +1 -0
  182. package/dist/components/Skeleton/Skeleton.d.mts +25 -0
  183. package/dist/components/Skeleton/Skeleton.d.mts.map +1 -0
  184. package/dist/components/Skeleton/Skeleton.mjs +33 -0
  185. package/dist/components/Skeleton/Skeleton.mjs.map +1 -0
  186. package/dist/components/Skeleton/Skeleton.styles.cjs +40 -0
  187. package/dist/components/Skeleton/Skeleton.styles.d.cts +50 -0
  188. package/dist/components/Skeleton/Skeleton.styles.d.cts.map +1 -0
  189. package/dist/components/Skeleton/Skeleton.styles.d.mts +50 -0
  190. package/dist/components/Skeleton/Skeleton.styles.d.mts.map +1 -0
  191. package/dist/components/Skeleton/Skeleton.styles.mjs +39 -0
  192. package/dist/components/Skeleton/Skeleton.styles.mjs.map +1 -0
  193. package/dist/components/Skeleton/index.d.cts +1 -0
  194. package/dist/components/Skeleton/index.d.mts +1 -0
  195. package/dist/components/Spacer/Spacer.d.cts +1 -0
  196. package/dist/components/Spacer/Spacer.d.cts.map +1 -1
  197. package/dist/components/Spacer/Spacer.styles.d.mts +3 -3
  198. package/dist/components/Spacer/Spacer.styles.d.mts.map +1 -1
  199. package/dist/components/Spacer/index.d.cts +2 -0
  200. package/dist/components/Spinner/Spinner.cjs +38 -0
  201. package/dist/components/Spinner/Spinner.d.cts +17 -0
  202. package/dist/components/Spinner/Spinner.d.cts.map +1 -0
  203. package/dist/components/Spinner/Spinner.d.mts +17 -0
  204. package/dist/components/Spinner/Spinner.d.mts.map +1 -0
  205. package/dist/components/Spinner/Spinner.mjs +37 -0
  206. package/dist/components/Spinner/Spinner.mjs.map +1 -0
  207. package/dist/components/Spinner/Spinner.styles.cjs +34 -0
  208. package/dist/components/Spinner/Spinner.styles.d.cts +63 -0
  209. package/dist/components/Spinner/Spinner.styles.d.cts.map +1 -0
  210. package/dist/components/Spinner/Spinner.styles.d.mts +63 -0
  211. package/dist/components/Spinner/Spinner.styles.d.mts.map +1 -0
  212. package/dist/components/Spinner/Spinner.styles.mjs +34 -0
  213. package/dist/components/Spinner/Spinner.styles.mjs.map +1 -0
  214. package/dist/components/Spinner/index.d.mts +1 -0
  215. package/dist/components/Stack/Stack.d.cts +1 -0
  216. package/dist/components/Stack/Stack.d.cts.map +1 -1
  217. package/dist/components/Stack/Stack.styles.d.mts +3 -3
  218. package/dist/components/Stack/index.d.cts +2 -0
  219. package/dist/components/Tab/Tab.d.cts +7 -6
  220. package/dist/components/Tab/Tab.d.cts.map +1 -1
  221. package/dist/components/Tab/Tab.d.mts +6 -6
  222. package/dist/components/Tab/Tab.styles.d.cts +3 -3
  223. package/dist/components/Tab/index.d.cts +2 -0
  224. package/dist/components/Text/Text.d.cts +2 -1
  225. package/dist/components/Text/Text.d.cts.map +1 -1
  226. package/dist/components/Text/Text.d.mts +1 -1
  227. package/dist/components/Text/index.d.cts +2 -0
  228. package/dist/components/TextArea/TextArea.d.cts +5 -4
  229. package/dist/components/TextArea/TextArea.d.cts.map +1 -1
  230. package/dist/components/TextArea/TextArea.d.mts +4 -4
  231. package/dist/components/TextArea/TextArea.styles.d.cts +3 -3
  232. package/dist/components/TextArea/TextArea.styles.d.mts +3 -3
  233. package/dist/components/TextArea/index.d.cts +1 -0
  234. package/dist/components/TextInput/TextInput.d.cts +3 -2
  235. package/dist/components/TextInput/TextInput.d.cts.map +1 -1
  236. package/dist/components/TextInput/TextInput.d.mts +2 -2
  237. package/dist/components/TextInput/index.d.cts +2 -0
  238. package/dist/components/Toast/Toast.d.cts +5 -5
  239. package/dist/components/Toast/Toast.d.cts.map +1 -1
  240. package/dist/components/Toast/Toast.d.mts +3 -3
  241. package/dist/components/Toast/Toast.styles.d.cts +3 -3
  242. package/dist/components/Toast/Toast.styles.d.mts +3 -3
  243. package/dist/components/Toast/index.d.cts +3 -0
  244. package/dist/components/Toast/index.d.mts +2 -1
  245. package/dist/components/Toast/toastStore.cjs +38 -0
  246. package/dist/components/Toast/toastStore.d.cts +19 -0
  247. package/dist/components/Toast/toastStore.d.cts.map +1 -0
  248. package/dist/components/Toast/toastStore.d.mts +19 -0
  249. package/dist/components/Toast/toastStore.d.mts.map +1 -0
  250. package/dist/components/Toast/toastStore.mjs +39 -0
  251. package/dist/components/Toast/toastStore.mjs.map +1 -0
  252. package/dist/components/Toggle/Toggle.d.cts +6 -4
  253. package/dist/components/Toggle/Toggle.d.cts.map +1 -1
  254. package/dist/components/Toggle/Toggle.d.mts +4 -4
  255. package/dist/components/Toggle/Toggle.d.mts.map +1 -1
  256. package/dist/components/Toggle/Toggle.styles.d.cts +3 -3
  257. package/dist/components/Toggle/index.d.cts +1 -0
  258. package/dist/components/VStack/VStack.d.cts +3 -2
  259. package/dist/components/VStack/VStack.d.cts.map +1 -1
  260. package/dist/components/VStack/VStack.d.mts +2 -2
  261. package/dist/components/VStack/index.d.cts +1 -0
  262. package/dist/components/index.d.cts +93 -0
  263. package/dist/components/index.d.mts +11 -1
  264. package/dist/index.cjs +10 -0
  265. package/dist/index.d.cts +9 -1
  266. package/dist/index.d.mts +7 -1
  267. package/dist/index.mjs +6 -1
  268. package/dist/utils/index.d.cts +5 -0
  269. package/dist/utils/polymorphic/index.d.cts +1 -0
  270. package/package.json +3 -3
  271. package/src/styles/global.css +32 -0
@@ -1,8 +1,11 @@
1
+ import { CTAButton } from "../CTAButton/CTAButton.cjs";
2
+ import "../CTAButton/index.cjs";
1
3
  import { Dialog } from "../Dialog/Dialog.cjs";
4
+ import "../Dialog/index.cjs";
2
5
  import { ModalVariants } from "./Modal.styles.cjs";
3
- import * as react23 from "react";
6
+ import * as react12 from "react";
4
7
  import { ComponentProps } from "react";
5
- import * as react_jsx_runtime46 from "react/jsx-runtime";
8
+ import * as react_jsx_runtime38 from "react/jsx-runtime";
6
9
  import * as DialogPrimitive from "@radix-ui/react-dialog";
7
10
 
8
11
  //#region src/components/Modal/Modal.d.ts
@@ -11,18 +14,18 @@ type ModalContentProps = ComponentProps<typeof DialogPrimitive.Content>;
11
14
  interface ModalTitleProps extends ComponentProps<typeof DialogPrimitive.Title>, Pick<ModalVariants, 'textAlign'> {}
12
15
  interface ModalDescriptionProps extends ComponentProps<typeof DialogPrimitive.Description>, Pick<ModalVariants, 'textAlign'> {}
13
16
  type ModalFooterProps = ComponentProps<'div'>;
14
- interface ModalActionProps extends ComponentProps<'button'>, Pick<ModalVariants, 'variant'> {}
17
+ type ModalActionProps = ComponentProps<typeof CTAButton>;
15
18
  declare const Modal: {
16
- (props: ComponentProps<typeof Dialog>): react_jsx_runtime46.JSX.Element;
19
+ (props: ComponentProps<typeof Dialog>): react_jsx_runtime38.JSX.Element;
17
20
  displayName: string;
18
21
  } & {
19
- Trigger: react23.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react23.RefAttributes<HTMLButtonElement>>;
22
+ Trigger: react12.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react12.RefAttributes<HTMLButtonElement>>;
20
23
  Content: {
21
24
  ({
22
25
  className,
23
26
  children,
24
27
  ...props
25
- }: ModalContentProps): react_jsx_runtime46.JSX.Element;
28
+ }: ModalContentProps): react_jsx_runtime38.JSX.Element;
26
29
  displayName: string;
27
30
  };
28
31
  Title: {
@@ -30,7 +33,7 @@ declare const Modal: {
30
33
  className,
31
34
  textAlign,
32
35
  ...props
33
- }: ModalTitleProps): react_jsx_runtime46.JSX.Element;
36
+ }: ModalTitleProps): react_jsx_runtime38.JSX.Element;
34
37
  displayName: string;
35
38
  };
36
39
  Description: {
@@ -38,7 +41,7 @@ declare const Modal: {
38
41
  className,
39
42
  textAlign,
40
43
  ...props
41
- }: ModalDescriptionProps): react_jsx_runtime46.JSX.Element;
44
+ }: ModalDescriptionProps): react_jsx_runtime38.JSX.Element;
42
45
  displayName: string;
43
46
  };
44
47
  Footer: {
@@ -46,16 +49,12 @@ declare const Modal: {
46
49
  className,
47
50
  children,
48
51
  ...props
49
- }: ModalFooterProps): react_jsx_runtime46.JSX.Element;
52
+ }: ModalFooterProps): react_jsx_runtime38.JSX.Element;
50
53
  displayName: string;
51
54
  };
52
- Close: react23.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react23.RefAttributes<HTMLButtonElement>>;
55
+ Close: react12.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react12.RefAttributes<HTMLButtonElement>>;
53
56
  ActionButton: {
54
- ({
55
- className,
56
- variant,
57
- ...props
58
- }: ModalActionProps): react_jsx_runtime46.JSX.Element;
57
+ (props: ModalActionProps): react_jsx_runtime38.JSX.Element;
59
58
  displayName: string;
60
59
  };
61
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.cts","names":[],"sources":["../../../src/components/Modal/Modal.tsx"],"mappings":";;;;;;;;KAKY,iBAAA,GAAoB,cAAA,QAAsB,eAAA,CAAgB,OAAA;AAAA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A;;;;;;;;;OAjEE,iBAAA,GAAiB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;OAiBlB,eAAA,GAAe,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;OAmBpE,qBAAA,GAAqB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;OAYgC,gBAAA,GAAgB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;YAY5C,gBAAA,GAAgB,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,9 +1,11 @@
1
+ import { CTAButton } from "../CTAButton/CTAButton.mjs";
2
+ import "../CTAButton/index.mjs";
1
3
  import { Dialog } from "../Dialog/Dialog.mjs";
2
4
  import "../Dialog/index.mjs";
3
5
  import { ModalVariants } from "./Modal.styles.mjs";
4
6
  import * as react12 from "react";
5
7
  import { ComponentProps } from "react";
6
- import * as react_jsx_runtime51 from "react/jsx-runtime";
8
+ import * as react_jsx_runtime45 from "react/jsx-runtime";
7
9
  import * as DialogPrimitive from "@radix-ui/react-dialog";
8
10
 
9
11
  //#region src/components/Modal/Modal.d.ts
@@ -12,9 +14,9 @@ type ModalContentProps = ComponentProps<typeof DialogPrimitive.Content>;
12
14
  interface ModalTitleProps extends ComponentProps<typeof DialogPrimitive.Title>, Pick<ModalVariants, 'textAlign'> {}
13
15
  interface ModalDescriptionProps extends ComponentProps<typeof DialogPrimitive.Description>, Pick<ModalVariants, 'textAlign'> {}
14
16
  type ModalFooterProps = ComponentProps<'div'>;
15
- interface ModalActionProps extends ComponentProps<'button'>, Pick<ModalVariants, 'variant'> {}
17
+ type ModalActionProps = ComponentProps<typeof CTAButton>;
16
18
  declare const Modal: {
17
- (props: ComponentProps<typeof Dialog>): react_jsx_runtime51.JSX.Element;
19
+ (props: ComponentProps<typeof Dialog>): react_jsx_runtime45.JSX.Element;
18
20
  displayName: string;
19
21
  } & {
20
22
  Trigger: react12.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react12.RefAttributes<HTMLButtonElement>>;
@@ -23,7 +25,7 @@ declare const Modal: {
23
25
  className,
24
26
  children,
25
27
  ...props
26
- }: ModalContentProps): react_jsx_runtime51.JSX.Element;
28
+ }: ModalContentProps): react_jsx_runtime45.JSX.Element;
27
29
  displayName: string;
28
30
  };
29
31
  Title: {
@@ -31,7 +33,7 @@ declare const Modal: {
31
33
  className,
32
34
  textAlign,
33
35
  ...props
34
- }: ModalTitleProps): react_jsx_runtime51.JSX.Element;
36
+ }: ModalTitleProps): react_jsx_runtime45.JSX.Element;
35
37
  displayName: string;
36
38
  };
37
39
  Description: {
@@ -39,7 +41,7 @@ declare const Modal: {
39
41
  className,
40
42
  textAlign,
41
43
  ...props
42
- }: ModalDescriptionProps): react_jsx_runtime51.JSX.Element;
44
+ }: ModalDescriptionProps): react_jsx_runtime45.JSX.Element;
43
45
  displayName: string;
44
46
  };
45
47
  Footer: {
@@ -47,16 +49,12 @@ declare const Modal: {
47
49
  className,
48
50
  children,
49
51
  ...props
50
- }: ModalFooterProps): react_jsx_runtime51.JSX.Element;
52
+ }: ModalFooterProps): react_jsx_runtime45.JSX.Element;
51
53
  displayName: string;
52
54
  };
53
55
  Close: react12.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react12.RefAttributes<HTMLButtonElement>>;
54
56
  ActionButton: {
55
- ({
56
- className,
57
- variant,
58
- ...props
59
- }: ModalActionProps): react_jsx_runtime51.JSX.Element;
57
+ (props: ModalActionProps): react_jsx_runtime45.JSX.Element;
60
58
  displayName: string;
61
59
  };
62
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.mts","names":[],"sources":["../../../src/components/Modal/Modal.tsx"],"mappings":";;;;;;;;;KAKY,iBAAA,GAAoB,cAAA,QAAsB,eAAA,CAAgB,OAAA;AAAA,KAS1D,iBAAA,GAAoB,cAAA,QAAsB,eAAA,CAAgB,OAAA;AAAA,UAcrD,eAAA,SAEb,cAAA,QAAsB,eAAA,CAAgB,KAAA,GACtC,IAAA,CAAK,aAAA;A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pE,qBAAA,GAAqB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;OAYgC,gBAAA,GAAgB,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;YAY5C,gBAAA,GAAgB,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,3 +1,4 @@
1
+ import { CTAButton } from "../CTAButton/CTAButton.mjs";
1
2
  import { Dialog } from "../Dialog/Dialog.mjs";
2
3
  import { modal } from "./Modal.styles.mjs";
3
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -52,13 +53,9 @@ const ModalFooter = ({ className, children, ...props }) => {
52
53
  });
53
54
  };
54
55
  ModalFooter.displayName = "ModalFooter";
55
- const ModalAction = ({ className, variant, ...props }) => {
56
- const { actionButton } = modal();
57
- return /* @__PURE__ */ jsx("button", {
58
- className: actionButton({
59
- className,
60
- variant
61
- }),
56
+ const ModalAction = (props) => {
57
+ return /* @__PURE__ */ jsx(CTAButton, {
58
+ fullWidth: true,
62
59
  ...props
63
60
  });
64
61
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.mjs","names":[],"sources":["../../../src/components/Modal/Modal.tsx"],"sourcesContent":["import { ComponentProps } from 'react';\nimport { Dialog } from '../Dialog';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { modal, ModalVariants } from './Modal.styles';\n\nexport type ModalOverlayProps = ComponentProps<typeof DialogPrimitive.Overlay>;\nconst ModalOverlay = ({ className, ...props }: ModalOverlayProps) => {\n const { overlay } = modal();\n return (\n <DialogPrimitive.Overlay className={overlay({ className })} {...props} />\n );\n};\nModalOverlay.displayName = 'ModalOverlay';\n\nexport type ModalContentProps = ComponentProps<typeof DialogPrimitive.Content>;\nconst ModalContent = ({ className, children, ...props }: ModalContentProps) => {\n const { content } = modal();\n return (\n <DialogPrimitive.Portal>\n <ModalOverlay />\n <DialogPrimitive.Content className={content({ className })} {...props}>\n {children}\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n );\n};\nModalContent.displayName = 'ModalContent';\n\nexport interface ModalTitleProps\n extends\n ComponentProps<typeof DialogPrimitive.Title>,\n Pick<ModalVariants, 'textAlign'> {}\nconst ModalTitle = ({ className, textAlign, ...props }: ModalTitleProps) => {\n const { title } = modal();\n return (\n <DialogPrimitive.Title\n className={title({ className, textAlign })}\n {...props}\n />\n );\n};\nModalTitle.displayName = 'ModalTitle';\n\nexport interface ModalDescriptionProps\n extends\n ComponentProps<typeof DialogPrimitive.Description>,\n Pick<ModalVariants, 'textAlign'> {}\nconst ModalDescription = ({\n className,\n textAlign,\n ...props\n}: ModalDescriptionProps) => {\n const { description } = modal();\n return (\n <DialogPrimitive.Description\n className={description({ className, textAlign })}\n {...props}\n />\n );\n};\nModalDescription.displayName = 'ModalDescription';\n\nexport type ModalFooterProps = ComponentProps<'div'>;\nconst ModalFooter = ({ className, children, ...props }: ModalFooterProps) => {\n const { footer } = modal();\n return (\n <div className={footer({ className })} {...props}>\n {children}\n </div>\n );\n};\nModalFooter.displayName = 'ModalFooter';\n\nexport interface ModalActionProps\n extends ComponentProps<'button'>, Pick<ModalVariants, 'variant'> {}\nconst ModalAction = ({ className, variant, ...props }: ModalActionProps) => {\n const { actionButton } = modal();\n const classes = actionButton({ className, variant });\n return <button className={classes} {...props} />;\n};\nModalAction.displayName = 'ModalAction';\n\nconst ModalRoot = (props: ComponentProps<typeof Dialog>) => (\n <Dialog {...props} />\n);\nModalRoot.displayName = 'Modal';\n\nexport const Modal = Object.assign(ModalRoot, {\n Trigger: Dialog.Trigger,\n Content: ModalContent,\n Title: ModalTitle,\n Description: ModalDescription,\n Footer: ModalFooter,\n Close: Dialog.Close,\n ActionButton: ModalAction,\n});\n"],"mappings":";;;;;;AAMA,MAAM,gBAAgB,EAAE,WAAW,GAAG,YAA+B;CACnE,MAAM,EAAE,YAAY,OAAO;AAC3B,QACE,oBAAC,gBAAgB;EAAQ,WAAW,QAAQ,EAAE,WAAW,CAAC;EAAE,GAAI;GAAS;;AAG7E,aAAa,cAAc;A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["../../../src/components/Modal/Modal.tsx"],"sourcesContent":["import { ComponentProps } from 'react';\nimport { Dialog } from '../Dialog';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { modal, ModalVariants } from './Modal.styles';\nimport { CTAButton } from '../CTAButton';\n\nexport type ModalOverlayProps = ComponentProps<typeof DialogPrimitive.Overlay>;\nconst ModalOverlay = ({ className, ...props }: ModalOverlayProps) => {\n const { overlay } = modal();\n return (\n <DialogPrimitive.Overlay className={overlay({ className })} {...props} />\n );\n};\nModalOverlay.displayName = 'ModalOverlay';\n\nexport type ModalContentProps = ComponentProps<typeof DialogPrimitive.Content>;\nconst ModalContent = ({ className, children, ...props }: ModalContentProps) => {\n const { content } = modal();\n return (\n <DialogPrimitive.Portal>\n <ModalOverlay />\n <DialogPrimitive.Content className={content({ className })} {...props}>\n {children}\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n );\n};\nModalContent.displayName = 'ModalContent';\n\nexport interface ModalTitleProps\n extends\n ComponentProps<typeof DialogPrimitive.Title>,\n Pick<ModalVariants, 'textAlign'> {}\nconst ModalTitle = ({ className, textAlign, ...props }: ModalTitleProps) => {\n const { title } = modal();\n return (\n <DialogPrimitive.Title\n className={title({ className, textAlign })}\n {...props}\n />\n );\n};\nModalTitle.displayName = 'ModalTitle';\n\nexport interface ModalDescriptionProps\n extends\n ComponentProps<typeof DialogPrimitive.Description>,\n Pick<ModalVariants, 'textAlign'> {}\nconst ModalDescription = ({\n className,\n textAlign,\n ...props\n}: ModalDescriptionProps) => {\n const { description } = modal();\n return (\n <DialogPrimitive.Description\n className={description({ className, textAlign })}\n {...props}\n />\n );\n};\nModalDescription.displayName = 'ModalDescription';\n\nexport type ModalFooterProps = ComponentProps<'div'>;\nconst ModalFooter = ({ className, children, ...props }: ModalFooterProps) => {\n const { footer } = modal();\n return (\n <div className={footer({ className })} {...props}>\n {children}\n </div>\n );\n};\nModalFooter.displayName = 'ModalFooter';\n\nexport type ModalActionProps = ComponentProps<typeof CTAButton>;\n\nconst ModalAction = (props: ModalActionProps) => {\n return <CTAButton fullWidth {...props} />;\n};\nModalAction.displayName = 'ModalAction';\n\nconst ModalRoot = (props: ComponentProps<typeof Dialog>) => (\n <Dialog {...props} />\n);\nModalRoot.displayName = 'Modal';\n\nexport const Modal = Object.assign(ModalRoot, {\n Trigger: Dialog.Trigger,\n Content: ModalContent,\n Title: ModalTitle,\n Description: ModalDescription,\n Footer: ModalFooter,\n Close: Dialog.Close,\n ActionButton: ModalAction,\n});\n"],"mappings":";;;;;;;AAOA,MAAM,gBAAgB,EAAE,WAAW,GAAG,YAA+B;CACnE,MAAM,EAAE,YAAY,OAAO;AAC3B,QACE,oBAAC,gBAAgB;EAAQ,WAAW,QAAQ,EAAE,WAAW,CAAC;EAAE,GAAI;GAAS;;AAG7E,aAAa,cAAc;AAG3B,MAAM,gBAAgB,EAAE,WAAW,UAAU,GAAG,YAA+B;CAC7E,MAAM,EAAE,YAAY,OAAO;AAC3B,QACE,qBAAC,gBAAgB,qBACf,oBAAC,iBAAe,EAChB,oBAAC,gBAAgB;EAAQ,WAAW,QAAQ,EAAE,WAAW,CAAC;EAAE,GAAI;EAC7D;GACuB,IACH;;AAG7B,aAAa,cAAc;AAM3B,MAAM,cAAc,EAAE,WAAW,WAAW,GAAG,YAA6B;CAC1E,MAAM,EAAE,UAAU,OAAO;AACzB,QACE,oBAAC,gBAAgB;EACf,WAAW,MAAM;GAAE;GAAW;GAAW,CAAC;EAC1C,GAAI;GACJ;;AAGN,WAAW,cAAc;AAMzB,MAAM,oBAAoB,EACxB,WACA,WACA,GAAG,YACwB;CAC3B,MAAM,EAAE,gBAAgB,OAAO;AAC/B,QACE,oBAAC,gBAAgB;EACf,WAAW,YAAY;GAAE;GAAW;GAAW,CAAC;EAChD,GAAI;GACJ;;AAGN,iBAAiB,cAAc;AAG/B,MAAM,eAAe,EAAE,WAAW,UAAU,GAAG,YAA8B;CAC3E,MAAM,EAAE,WAAW,OAAO;AAC1B,QACE,oBAAC;EAAI,WAAW,OAAO,EAAE,WAAW,CAAC;EAAE,GAAI;EACxC;GACG;;AAGV,YAAY,cAAc;AAI1B,MAAM,eAAe,UAA4B;AAC/C,QAAO,oBAAC;EAAU;EAAU,GAAI;GAAS;;AAE3C,YAAY,cAAc;AAE1B,MAAM,aAAa,UACjB,oBAAC,UAAO,GAAI,QAAS;AAEvB,UAAU,cAAc;AAExB,MAAa,QAAQ,OAAO,OAAO,WAAW;CAC5C,SAAS,OAAO;CAChB,SAAS;CACT,OAAO;CACP,aAAa;CACb,QAAQ;CACR,OAAO,OAAO;CACd,cAAc;CACf,CAAC"}
@@ -5,33 +5,25 @@ let tailwind_variants = require("tailwind-variants");
5
5
  const modal = (0, tailwind_variants.tv)({
6
6
  slots: {
7
7
  overlay: "fixed inset-0 z-modal bg-black/50 backdrop-blur-sm data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out",
8
- content: "fixed left-[50%] top-[50%] z-modal flex w-[19.5rem] md:w-[26.25rem] translate-x-[-50%] translate-y-[-50%] flex-col items-center justify-center rounded-[1rem] bg-white pb-[0.75rem] pt-[1.875rem] shadow-lg data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out focus:outline-none",
8
+ content: "fixed left-[50%] top-[50%] z-modal flex w-[19.5rem] md:w-[26.25rem] translate-x-[-50%] translate-y-[-50%] flex-col items-center justify-center rounded-[1rem] bg-white pb-4 pt-8 shadow-lg data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out focus:outline-none",
9
9
  title: "w-full typo-subtitle-18-bold text-gray-800",
10
10
  description: "w-full mt-2 typo-body-16-regular text-gray-500",
11
- footer: "mt-6 flex w-full items-start px-10",
12
- actionButton: "flex flex-1 items-center justify-center py-3 px-10 rounded-md typo-subtitle-16-semibold transition-colors focus:outline-none"
11
+ footer: "mt-8 gap-2 flex w-full items-start px-4"
13
12
  },
14
- variants: {
15
- variant: {
16
- primary: { actionButton: "text-blue-700 hover:bg-blue-50 active:bg-blue-100 data-[active]:bg-blue-100" },
17
- destructive: { actionButton: "text-red-400 hover:bg-red-50 active:bg-red-100 data-[active]:bg-red-100" },
18
- cancel: { actionButton: "text-gray-400 hover:bg-gray-50 active:bg-gray-100 data-[active]:bg-gray-100" }
13
+ variants: { textAlign: {
14
+ center: {
15
+ title: "text-center px-10",
16
+ description: "text-center px-10"
19
17
  },
20
- textAlign: {
21
- center: {
22
- title: "text-center px-10",
23
- description: "text-center px-10"
24
- },
25
- left: {
26
- title: "text-left px-8",
27
- description: "text-left px-8"
28
- },
29
- right: {
30
- title: "text-right",
31
- description: "text-right"
32
- }
18
+ left: {
19
+ title: "text-left px-8",
20
+ description: "text-left px-8"
21
+ },
22
+ right: {
23
+ title: "text-right",
24
+ description: "text-right"
33
25
  }
34
- },
26
+ } },
35
27
  compoundVariants: [{
36
28
  textAlign: "left",
37
29
  title: "flex"
@@ -39,10 +31,7 @@ const modal = (0, tailwind_variants.tv)({
39
31
  textAlign: "right",
40
32
  title: "flex"
41
33
  }],
42
- defaultVariants: {
43
- variant: "primary",
44
- textAlign: "center"
45
- }
34
+ defaultVariants: { textAlign: "center" }
46
35
  });
47
36
 
48
37
  //#endregion
@@ -1,19 +1,8 @@
1
- import * as tailwind_variants25 from "tailwind-variants";
1
+ import * as tailwind_variants21 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/components/Modal/Modal.styles.d.ts
5
- declare const modal: tailwind_variants25.TVReturnType<{
6
- variant: {
7
- primary: {
8
- actionButton: string;
9
- };
10
- destructive: {
11
- actionButton: string;
12
- };
13
- cancel: {
14
- actionButton: string;
15
- };
16
- };
5
+ declare const modal: tailwind_variants21.TVReturnType<{
17
6
  textAlign: {
18
7
  center: {
19
8
  title: string;
@@ -34,19 +23,7 @@ declare const modal: tailwind_variants25.TVReturnType<{
34
23
  title: string;
35
24
  description: string;
36
25
  footer: string;
37
- actionButton: string;
38
26
  }, undefined, {
39
- variant: {
40
- primary: {
41
- actionButton: string;
42
- };
43
- destructive: {
44
- actionButton: string;
45
- };
46
- cancel: {
47
- actionButton: string;
48
- };
49
- };
50
27
  textAlign: {
51
28
  center: {
52
29
  title: string;
@@ -67,19 +44,7 @@ declare const modal: tailwind_variants25.TVReturnType<{
67
44
  title: string;
68
45
  description: string;
69
46
  footer: string;
70
- actionButton: string;
71
- }, tailwind_variants25.TVReturnType<{
72
- variant: {
73
- primary: {
74
- actionButton: string;
75
- };
76
- destructive: {
77
- actionButton: string;
78
- };
79
- cancel: {
80
- actionButton: string;
81
- };
82
- };
47
+ }, tailwind_variants21.TVReturnType<{
83
48
  textAlign: {
84
49
  center: {
85
50
  title: string;
@@ -100,7 +65,6 @@ declare const modal: tailwind_variants25.TVReturnType<{
100
65
  title: string;
101
66
  description: string;
102
67
  footer: string;
103
- actionButton: string;
104
68
  }, undefined, unknown, unknown, undefined>>;
105
69
  type ModalVariants = VariantProps<typeof modal>;
106
70
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.styles.d.cts","names":[],"sources":["../../../src/components/Modal/Modal.styles.ts"],"mappings":";;;;cAEa,KAAA,EAwDX,mBAAA,CAxDgB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDhB,mBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,aAAA,GAAgB,YAAA,QAAoB,KAAA"}
1
+ {"version":3,"file":"Modal.styles.d.cts","names":[],"sources":["../../../src/components/Modal/Modal.styles.ts"],"mappings":";;;;cAEa,KAAA,EAuCX,mBAAA,CAvCgB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuChB,mBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEU,aAAA,GAAgB,YAAA,QAAoB,KAAA"}
@@ -3,17 +3,6 @@ import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/components/Modal/Modal.styles.d.ts
5
5
  declare const modal: tailwind_variants27.TVReturnType<{
6
- variant: {
7
- primary: {
8
- actionButton: string;
9
- };
10
- destructive: {
11
- actionButton: string;
12
- };
13
- cancel: {
14
- actionButton: string;
15
- };
16
- };
17
6
  textAlign: {
18
7
  center: {
19
8
  title: string;
@@ -34,19 +23,7 @@ declare const modal: tailwind_variants27.TVReturnType<{
34
23
  title: string;
35
24
  description: string;
36
25
  footer: string;
37
- actionButton: string;
38
26
  }, undefined, {
39
- variant: {
40
- primary: {
41
- actionButton: string;
42
- };
43
- destructive: {
44
- actionButton: string;
45
- };
46
- cancel: {
47
- actionButton: string;
48
- };
49
- };
50
27
  textAlign: {
51
28
  center: {
52
29
  title: string;
@@ -67,19 +44,7 @@ declare const modal: tailwind_variants27.TVReturnType<{
67
44
  title: string;
68
45
  description: string;
69
46
  footer: string;
70
- actionButton: string;
71
47
  }, tailwind_variants27.TVReturnType<{
72
- variant: {
73
- primary: {
74
- actionButton: string;
75
- };
76
- destructive: {
77
- actionButton: string;
78
- };
79
- cancel: {
80
- actionButton: string;
81
- };
82
- };
83
48
  textAlign: {
84
49
  center: {
85
50
  title: string;
@@ -100,7 +65,6 @@ declare const modal: tailwind_variants27.TVReturnType<{
100
65
  title: string;
101
66
  description: string;
102
67
  footer: string;
103
- actionButton: string;
104
68
  }, undefined, unknown, unknown, undefined>>;
105
69
  type ModalVariants = VariantProps<typeof modal>;
106
70
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.styles.d.mts","names":[],"sources":["../../../src/components/Modal/Modal.styles.ts"],"mappings":";;;;cAEa,KAAA,EAwDX,mBAAA,CAxDgB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDhB,mBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,aAAA,GAAgB,YAAA,QAAoB,KAAA"}
1
+ {"version":3,"file":"Modal.styles.d.mts","names":[],"sources":["../../../src/components/Modal/Modal.styles.ts"],"mappings":";;;;cAEa,KAAA,EAuCX,mBAAA,CAvCgB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuChB,mBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEU,aAAA,GAAgB,YAAA,QAAoB,KAAA"}
@@ -4,33 +4,25 @@ import { tv } from "tailwind-variants";
4
4
  const modal = tv({
5
5
  slots: {
6
6
  overlay: "fixed inset-0 z-modal bg-black/50 backdrop-blur-sm data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out",
7
- content: "fixed left-[50%] top-[50%] z-modal flex w-[19.5rem] md:w-[26.25rem] translate-x-[-50%] translate-y-[-50%] flex-col items-center justify-center rounded-[1rem] bg-white pb-[0.75rem] pt-[1.875rem] shadow-lg data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out focus:outline-none",
7
+ content: "fixed left-[50%] top-[50%] z-modal flex w-[19.5rem] md:w-[26.25rem] translate-x-[-50%] translate-y-[-50%] flex-col items-center justify-center rounded-[1rem] bg-white pb-4 pt-8 shadow-lg data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out focus:outline-none",
8
8
  title: "w-full typo-subtitle-18-bold text-gray-800",
9
9
  description: "w-full mt-2 typo-body-16-regular text-gray-500",
10
- footer: "mt-6 flex w-full items-start px-10",
11
- actionButton: "flex flex-1 items-center justify-center py-3 px-10 rounded-md typo-subtitle-16-semibold transition-colors focus:outline-none"
10
+ footer: "mt-8 gap-2 flex w-full items-start px-4"
12
11
  },
13
- variants: {
14
- variant: {
15
- primary: { actionButton: "text-blue-700 hover:bg-blue-50 active:bg-blue-100 data-[active]:bg-blue-100" },
16
- destructive: { actionButton: "text-red-400 hover:bg-red-50 active:bg-red-100 data-[active]:bg-red-100" },
17
- cancel: { actionButton: "text-gray-400 hover:bg-gray-50 active:bg-gray-100 data-[active]:bg-gray-100" }
12
+ variants: { textAlign: {
13
+ center: {
14
+ title: "text-center px-10",
15
+ description: "text-center px-10"
18
16
  },
19
- textAlign: {
20
- center: {
21
- title: "text-center px-10",
22
- description: "text-center px-10"
23
- },
24
- left: {
25
- title: "text-left px-8",
26
- description: "text-left px-8"
27
- },
28
- right: {
29
- title: "text-right",
30
- description: "text-right"
31
- }
17
+ left: {
18
+ title: "text-left px-8",
19
+ description: "text-left px-8"
20
+ },
21
+ right: {
22
+ title: "text-right",
23
+ description: "text-right"
32
24
  }
33
- },
25
+ } },
34
26
  compoundVariants: [{
35
27
  textAlign: "left",
36
28
  title: "flex"
@@ -38,10 +30,7 @@ const modal = tv({
38
30
  textAlign: "right",
39
31
  title: "flex"
40
32
  }],
41
- defaultVariants: {
42
- variant: "primary",
43
- textAlign: "center"
44
- }
33
+ defaultVariants: { textAlign: "center" }
45
34
  });
46
35
 
47
36
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.styles.mjs","names":[],"sources":["../../../src/components/Modal/Modal.styles.ts"],"sourcesContent":["import { tv, VariantProps } from 'tailwind-variants';\n\nexport const modal = tv({\n slots: {\n overlay:\n 'fixed inset-0 z-modal bg-black/50 backdrop-blur-sm data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out',\n content:\n 'fixed left-[50%] top-[50%] z-modal flex w-[19.5rem] md:w-[26.25rem] translate-x-[-50%] translate-y-[-50%] flex-col items-center justify-center rounded-[1rem] bg-white pb-[0.75rem] pt-[1.875rem] shadow-lg data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out focus:outline-none',\n title: 'w-full typo-subtitle-18-bold text-gray-800',\n description: 'w-full mt-2 typo-body-16-regular text-gray-500',\n footer: 'mt-6 flex w-full items-start px-10',\n actionButton:\n 'flex flex-1 items-center justify-center py-3 px-10 rounded-md typo-subtitle-16-semibold transition-colors focus:outline-none',\n },\n variants: {\n variant: {\n primary: {\n actionButton:\n 'text-blue-700 hover:bg-blue-50 active:bg-blue-100 data-[active]:bg-blue-100',\n },\n destructive: {\n actionButton:\n 'text-red-400 hover:bg-red-50 active:bg-red-100 data-[active]:bg-red-100',\n },\n cancel: {\n actionButton:\n 'text-gray-400 hover:bg-gray-50 active:bg-gray-100 data-[active]:bg-gray-100',\n },\n },\n textAlign: {\n center: {\n title: 'text-center px-10',\n description: 'text-center px-10',\n },\n left: {\n title: 'text-left px-8',\n description: 'text-left px-8',\n },\n right: {\n title: 'text-right',\n description: 'text-right',\n },\n },\n },\n compoundVariants: [\n {\n textAlign: 'left',\n title: 'flex',\n },\n {\n textAlign: 'right',\n title: 'flex',\n },\n ],\n defaultVariants: {\n variant: 'primary',\n textAlign: 'center',\n },\n});\n\nexport type ModalVariants = VariantProps<typeof modal>;\n"],"mappings":";;;AAEA,MAAa,QAAQ,GAAG;CACtB,OAAO;EACL,SACE;EACF,SACE;EACF,OAAO;EACP,aAAa;EACb,QAAQ;EACR,cACE;EACH;CACD,UAAU;EACR,SAAS;GACP,SAAS,EACP,cACE,+EACH;GACD,aAAa,EACX,cACE,2EACH;GACD,QAAQ,EACN,cACE,+EACH;GACF;EACD,WAAW;GACT,QAAQ;IACN,OAAO;IACP,aAAa;IACd;GACD,MAAM;IACJ,OAAO;IACP,aAAa;IACd;GACD,OAAO;IACL,OAAO;IACP,aAAa;IACd;GACF;EACF;CACD,kBAAkB,CAChB;EACE,WAAW;EACX,OAAO;EACR,EACD;EACE,WAAW;EACX,OAAO;EACR,CACF;CACD,iBAAiB;EACf,SAAS;EACT,WAAW;EACZ;CACF,CAAC"}
1
+ {"version":3,"file":"Modal.styles.mjs","names":[],"sources":["../../../src/components/Modal/Modal.styles.ts"],"sourcesContent":["import { tv, VariantProps } from 'tailwind-variants';\n\nexport const modal = tv({\n slots: {\n overlay:\n 'fixed inset-0 z-modal bg-black/50 backdrop-blur-sm data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out',\n content:\n 'fixed left-[50%] top-[50%] z-modal flex w-[19.5rem] md:w-[26.25rem] translate-x-[-50%] translate-y-[-50%] flex-col items-center justify-center rounded-[1rem] bg-white pb-4 pt-8 shadow-lg data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out focus:outline-none',\n title: 'w-full typo-subtitle-18-bold text-gray-800',\n description: 'w-full mt-2 typo-body-16-regular text-gray-500',\n footer: 'mt-8 gap-2 flex w-full items-start px-4',\n },\n variants: {\n textAlign: {\n center: {\n title: 'text-center px-10',\n description: 'text-center px-10',\n },\n left: {\n title: 'text-left px-8',\n description: 'text-left px-8',\n },\n right: {\n title: 'text-right',\n description: 'text-right',\n },\n },\n },\n compoundVariants: [\n {\n textAlign: 'left',\n title: 'flex',\n },\n {\n textAlign: 'right',\n title: 'flex',\n },\n ],\n defaultVariants: {\n textAlign: 'center',\n },\n});\n\nexport type ModalVariants = VariantProps<typeof modal>;\n"],"mappings":";;;AAEA,MAAa,QAAQ,GAAG;CACtB,OAAO;EACL,SACE;EACF,SACE;EACF,OAAO;EACP,aAAa;EACb,QAAQ;EACT;CACD,UAAU,EACR,WAAW;EACT,QAAQ;GACN,OAAO;GACP,aAAa;GACd;EACD,MAAM;GACJ,OAAO;GACP,aAAa;GACd;EACD,OAAO;GACL,OAAO;GACP,aAAa;GACd;EACF,EACF;CACD,kBAAkB,CAChB;EACE,WAAW;EACX,OAAO;EACR,EACD;EACE,WAAW;EACX,OAAO;EACR,CACF;CACD,iBAAiB,EACf,WAAW,UACZ;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { ModalVariants } from "./Modal.styles.cjs";
2
+ import { Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps } from "./Modal.cjs";
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime52 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime45 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/Primitive/Primitive.d.ts
5
5
  interface PrimitiveProps {
@@ -12,63 +12,63 @@ interface PrimitiveProps {
12
12
  type PrimitivePropsWithRef<E extends React$1.ElementType> = React$1.ComponentProps<E> & PrimitiveProps;
13
13
  declare const Primitive: {
14
14
  div: {
15
- (props: PrimitivePropsWithRef<"div">): react_jsx_runtime52.JSX.Element;
15
+ (props: PrimitivePropsWithRef<"div">): react_jsx_runtime45.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  span: {
19
- (props: PrimitivePropsWithRef<"span">): react_jsx_runtime52.JSX.Element;
19
+ (props: PrimitivePropsWithRef<"span">): react_jsx_runtime45.JSX.Element;
20
20
  displayName: string;
21
21
  };
22
22
  img: {
23
- (props: PrimitivePropsWithRef<"img">): react_jsx_runtime52.JSX.Element;
23
+ (props: PrimitivePropsWithRef<"img">): react_jsx_runtime45.JSX.Element;
24
24
  displayName: string;
25
25
  };
26
26
  button: {
27
- (props: PrimitivePropsWithRef<"button">): react_jsx_runtime52.JSX.Element;
27
+ (props: PrimitivePropsWithRef<"button">): react_jsx_runtime45.JSX.Element;
28
28
  displayName: string;
29
29
  };
30
30
  label: {
31
- (props: PrimitivePropsWithRef<"label">): react_jsx_runtime52.JSX.Element;
31
+ (props: PrimitivePropsWithRef<"label">): react_jsx_runtime45.JSX.Element;
32
32
  displayName: string;
33
33
  };
34
34
  input: {
35
- (props: PrimitivePropsWithRef<"input">): react_jsx_runtime52.JSX.Element;
35
+ (props: PrimitivePropsWithRef<"input">): react_jsx_runtime45.JSX.Element;
36
36
  displayName: string;
37
37
  };
38
38
  textarea: {
39
- (props: PrimitivePropsWithRef<"textarea">): react_jsx_runtime52.JSX.Element;
39
+ (props: PrimitivePropsWithRef<"textarea">): react_jsx_runtime45.JSX.Element;
40
40
  displayName: string;
41
41
  };
42
42
  a: {
43
- (props: PrimitivePropsWithRef<"a">): react_jsx_runtime52.JSX.Element;
43
+ (props: PrimitivePropsWithRef<"a">): react_jsx_runtime45.JSX.Element;
44
44
  displayName: string;
45
45
  };
46
46
  p: {
47
- (props: PrimitivePropsWithRef<"p">): react_jsx_runtime52.JSX.Element;
47
+ (props: PrimitivePropsWithRef<"p">): react_jsx_runtime45.JSX.Element;
48
48
  displayName: string;
49
49
  };
50
50
  h2: {
51
- (props: PrimitivePropsWithRef<"h2">): react_jsx_runtime52.JSX.Element;
51
+ (props: PrimitivePropsWithRef<"h2">): react_jsx_runtime45.JSX.Element;
52
52
  displayName: string;
53
53
  };
54
54
  ul: {
55
- (props: PrimitivePropsWithRef<"ul">): react_jsx_runtime52.JSX.Element;
55
+ (props: PrimitivePropsWithRef<"ul">): react_jsx_runtime45.JSX.Element;
56
56
  displayName: string;
57
57
  };
58
58
  li: {
59
- (props: PrimitivePropsWithRef<"li">): react_jsx_runtime52.JSX.Element;
59
+ (props: PrimitivePropsWithRef<"li">): react_jsx_runtime45.JSX.Element;
60
60
  displayName: string;
61
61
  };
62
62
  svg: {
63
- (props: PrimitivePropsWithRef<"svg">): react_jsx_runtime52.JSX.Element;
63
+ (props: PrimitivePropsWithRef<"svg">): react_jsx_runtime45.JSX.Element;
64
64
  displayName: string;
65
65
  };
66
66
  circle: {
67
- (props: PrimitivePropsWithRef<"circle">): react_jsx_runtime52.JSX.Element;
67
+ (props: PrimitivePropsWithRef<"circle">): react_jsx_runtime45.JSX.Element;
68
68
  displayName: string;
69
69
  };
70
70
  nav: {
71
- (props: PrimitivePropsWithRef<"nav">): react_jsx_runtime52.JSX.Element;
71
+ (props: PrimitivePropsWithRef<"nav">): react_jsx_runtime45.JSX.Element;
72
72
  displayName: string;
73
73
  };
74
74
  };