@causw/core 0.0.15 → 0.0.16

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 (237) hide show
  1. package/dist/components/Avatar/Avatar.d.cts +3 -2
  2. package/dist/components/Avatar/Avatar.d.cts.map +1 -1
  3. package/dist/components/Avatar/Avatar.d.mts +2 -2
  4. package/dist/components/Avatar/Avatar.styles.d.cts +3 -3
  5. package/dist/components/Avatar/Avatar.styles.d.mts +3 -3
  6. package/dist/components/Avatar/index.d.cts +2 -0
  7. package/dist/components/BottomNavigation/BottomNavigation.d.cts +6 -5
  8. package/dist/components/BottomNavigation/BottomNavigation.d.cts.map +1 -1
  9. package/dist/components/BottomNavigation/BottomNavigation.d.mts +5 -5
  10. package/dist/components/BottomNavigation/BottomNavigation.styles.d.cts +3 -3
  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.styles.d.cts +3 -3
  15. package/dist/components/BottomSheet/index.d.cts +1 -0
  16. package/dist/components/Box/Box.d.cts +1 -0
  17. package/dist/components/Box/Box.d.cts.map +1 -1
  18. package/dist/components/Box/index.d.cts +2 -0
  19. package/dist/components/Button/Button.d.cts +3 -2
  20. package/dist/components/Button/Button.d.cts.map +1 -1
  21. package/dist/components/Button/Button.d.mts +2 -2
  22. package/dist/components/Button/Button.d.mts.map +1 -1
  23. package/dist/components/Button/Button.styles.cjs +1 -1
  24. package/dist/components/Button/Button.styles.d.cts +2 -2
  25. package/dist/components/Button/Button.styles.d.mts +5 -5
  26. package/dist/components/Button/Button.styles.mjs +1 -1
  27. package/dist/components/Button/Button.styles.mjs.map +1 -1
  28. package/dist/components/Button/index.d.cts +1 -0
  29. package/dist/components/CTAButton/CTAButton.d.cts +3 -2
  30. package/dist/components/CTAButton/CTAButton.d.cts.map +1 -1
  31. package/dist/components/CTAButton/CTAButton.d.mts +2 -2
  32. package/dist/components/CTAButton/CTAButton.styles.cjs +1 -1
  33. package/dist/components/CTAButton/CTAButton.styles.d.cts +5 -5
  34. package/dist/components/CTAButton/CTAButton.styles.d.mts +5 -5
  35. package/dist/components/CTAButton/CTAButton.styles.mjs +1 -1
  36. package/dist/components/CTAButton/CTAButton.styles.mjs.map +1 -1
  37. package/dist/components/CTAButton/index.d.cts +1 -0
  38. package/dist/components/Calendar/Calendar.d.cts +2 -2
  39. package/dist/components/Calendar/Calendar.d.mts +2 -2
  40. package/dist/components/Calendar/Calendar.styles.d.mts +3 -3
  41. package/dist/components/Checkbox/Checkbox.d.cts +6 -4
  42. package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
  43. package/dist/components/Checkbox/Checkbox.d.mts +4 -4
  44. package/dist/components/Checkbox/Checkbox.styles.d.mts +3 -3
  45. package/dist/components/Checkbox/index.d.cts +1 -0
  46. package/dist/components/Chip/Chip.d.cts +3 -2
  47. package/dist/components/Chip/Chip.d.cts.map +1 -1
  48. package/dist/components/Chip/Chip.styles.cjs +1 -1
  49. package/dist/components/Chip/Chip.styles.d.cts +3 -3
  50. package/dist/components/Chip/Chip.styles.mjs +1 -1
  51. package/dist/components/Chip/Chip.styles.mjs.map +1 -1
  52. package/dist/components/Chip/index.d.cts +2 -0
  53. package/dist/components/Dialog/Dialog.d.cts +14 -13
  54. package/dist/components/Dialog/Dialog.d.cts.map +1 -1
  55. package/dist/components/Dialog/Dialog.d.mts +5 -5
  56. package/dist/components/Dialog/Dialog.styles.d.cts +3 -3
  57. package/dist/components/Dialog/Dialog.styles.d.mts +3 -3
  58. package/dist/components/Dialog/index.d.cts +2 -0
  59. package/dist/components/Drawer/Drawer.d.cts +11 -11
  60. package/dist/components/Drawer/Drawer.d.cts.map +1 -1
  61. package/dist/components/Drawer/Drawer.d.mts +3 -3
  62. package/dist/components/Drawer/Drawer.styles.d.cts +3 -3
  63. package/dist/components/Drawer/Drawer.styles.d.mts +3 -3
  64. package/dist/components/Drawer/index.d.cts +1 -0
  65. package/dist/components/Dropdown/Dropdown.d.cts +3 -3
  66. package/dist/components/Dropdown/Dropdown.d.mts +3 -3
  67. package/dist/components/Dropdown/Dropdown.styles.d.mts +3 -3
  68. package/dist/components/Dropdown/index.d.cts +2 -0
  69. package/dist/components/Field/Field.d.cts +6 -5
  70. package/dist/components/Field/Field.d.cts.map +1 -1
  71. package/dist/components/Field/index.d.cts +1 -0
  72. package/dist/components/Flex/Flex.d.cts +1 -0
  73. package/dist/components/Flex/Flex.d.cts.map +1 -1
  74. package/dist/components/Flex/index.d.cts +2 -0
  75. package/dist/components/Float/Float.d.cts +1 -0
  76. package/dist/components/Float/Float.d.cts.map +1 -1
  77. package/dist/components/Float/Float.styles.d.cts +3 -3
  78. package/dist/components/Float/index.d.cts +1 -0
  79. package/dist/components/FloatingActionButton/FloatingActionButton.d.cts +3 -2
  80. package/dist/components/FloatingActionButton/FloatingActionButton.d.cts.map +1 -1
  81. package/dist/components/FloatingActionButton/FloatingActionButton.d.mts +2 -2
  82. package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.mts +3 -3
  83. package/dist/components/FloatingActionButton/index.d.cts +1 -0
  84. package/dist/components/Grid/Grid.d.cts +1 -0
  85. package/dist/components/Grid/Grid.d.cts.map +1 -1
  86. package/dist/components/Grid/Grid.styles.d.cts +3 -3
  87. package/dist/components/Grid/index.d.cts +1 -0
  88. package/dist/components/HStack/HStack.d.cts +3 -2
  89. package/dist/components/HStack/HStack.d.cts.map +1 -1
  90. package/dist/components/HStack/index.d.cts +1 -0
  91. package/dist/components/Modal/Modal.cjs +4 -7
  92. package/dist/components/Modal/Modal.d.cts +11 -12
  93. package/dist/components/Modal/Modal.d.cts.map +1 -1
  94. package/dist/components/Modal/Modal.d.mts +10 -12
  95. package/dist/components/Modal/Modal.d.mts.map +1 -1
  96. package/dist/components/Modal/Modal.mjs +4 -7
  97. package/dist/components/Modal/Modal.mjs.map +1 -1
  98. package/dist/components/Modal/Modal.styles.cjs +15 -26
  99. package/dist/components/Modal/Modal.styles.d.cts +3 -39
  100. package/dist/components/Modal/Modal.styles.d.cts.map +1 -1
  101. package/dist/components/Modal/Modal.styles.d.mts +3 -39
  102. package/dist/components/Modal/Modal.styles.d.mts.map +1 -1
  103. package/dist/components/Modal/Modal.styles.mjs +15 -26
  104. package/dist/components/Modal/Modal.styles.mjs.map +1 -1
  105. package/dist/components/Modal/index.d.cts +2 -0
  106. package/dist/components/Primitive/Primitive.d.cts +16 -16
  107. package/dist/components/Primitive/Primitive.d.mts +16 -16
  108. package/dist/components/Primitive/index.d.cts +1 -0
  109. package/dist/components/PullToRefresh/PullToRefresh.cjs +79 -0
  110. package/dist/components/PullToRefresh/PullToRefresh.d.cts +20 -0
  111. package/dist/components/PullToRefresh/PullToRefresh.d.cts.map +1 -0
  112. package/dist/components/PullToRefresh/PullToRefresh.d.mts +20 -0
  113. package/dist/components/PullToRefresh/PullToRefresh.d.mts.map +1 -0
  114. package/dist/components/PullToRefresh/PullToRefresh.mjs +78 -0
  115. package/dist/components/PullToRefresh/PullToRefresh.mjs.map +1 -0
  116. package/dist/components/PullToRefresh/PullToRefresh.styles.cjs +12 -0
  117. package/dist/components/PullToRefresh/PullToRefresh.styles.d.cts +46 -0
  118. package/dist/components/PullToRefresh/PullToRefresh.styles.d.cts.map +1 -0
  119. package/dist/components/PullToRefresh/PullToRefresh.styles.d.mts +46 -0
  120. package/dist/components/PullToRefresh/PullToRefresh.styles.d.mts.map +1 -0
  121. package/dist/components/PullToRefresh/PullToRefresh.styles.mjs +12 -0
  122. package/dist/components/PullToRefresh/PullToRefresh.styles.mjs.map +1 -0
  123. package/dist/components/PullToRefresh/index.d.cts +1 -0
  124. package/dist/components/PullToRefresh/index.d.mts +1 -0
  125. package/dist/components/Radio/Radio.d.cts +4 -3
  126. package/dist/components/Radio/Radio.d.cts.map +1 -1
  127. package/dist/components/Radio/Radio.d.mts +3 -3
  128. package/dist/components/Radio/Radio.d.mts.map +1 -1
  129. package/dist/components/Radio/index.d.cts +1 -0
  130. package/dist/components/RatioChart/RatioChart.d.cts +5 -5
  131. package/dist/components/RatioChart/RatioChartEditor.d.cts +2 -2
  132. package/dist/components/RatioChart/index.d.cts +2 -0
  133. package/dist/components/Select/Select.d.cts +5 -5
  134. package/dist/components/Select/Select.d.mts +5 -5
  135. package/dist/components/Select/Select.styles.d.cts +3 -3
  136. package/dist/components/Select/Select.styles.d.mts +3 -3
  137. package/dist/components/Select/index.d.cts +2 -0
  138. package/dist/components/Separator/Separator.d.cts +1 -0
  139. package/dist/components/Separator/Separator.d.cts.map +1 -1
  140. package/dist/components/Separator/Separator.styles.d.mts +3 -3
  141. package/dist/components/Separator/index.d.cts +2 -0
  142. package/dist/components/Sidebar/Sidebar.d.cts +9 -8
  143. package/dist/components/Sidebar/Sidebar.d.cts.map +1 -1
  144. package/dist/components/Sidebar/Sidebar.d.mts +8 -8
  145. package/dist/components/Sidebar/Sidebar.styles.d.cts +3 -3
  146. package/dist/components/Sidebar/Sidebar.styles.d.mts +3 -3
  147. package/dist/components/Sidebar/hooks/useSidebarContext.d.cts +2 -0
  148. package/dist/components/Sidebar/hooks/useSidebarContext.d.cts.map +1 -1
  149. package/dist/components/Sidebar/index.d.cts +2 -0
  150. package/dist/components/Skeleton/Skeleton.cjs +34 -0
  151. package/dist/components/Skeleton/Skeleton.d.cts +25 -0
  152. package/dist/components/Skeleton/Skeleton.d.cts.map +1 -0
  153. package/dist/components/Skeleton/Skeleton.d.mts +25 -0
  154. package/dist/components/Skeleton/Skeleton.d.mts.map +1 -0
  155. package/dist/components/Skeleton/Skeleton.mjs +33 -0
  156. package/dist/components/Skeleton/Skeleton.mjs.map +1 -0
  157. package/dist/components/Skeleton/Skeleton.styles.cjs +40 -0
  158. package/dist/components/Skeleton/Skeleton.styles.d.cts +50 -0
  159. package/dist/components/Skeleton/Skeleton.styles.d.cts.map +1 -0
  160. package/dist/components/Skeleton/Skeleton.styles.d.mts +50 -0
  161. package/dist/components/Skeleton/Skeleton.styles.d.mts.map +1 -0
  162. package/dist/components/Skeleton/Skeleton.styles.mjs +39 -0
  163. package/dist/components/Skeleton/Skeleton.styles.mjs.map +1 -0
  164. package/dist/components/Skeleton/index.d.cts +1 -0
  165. package/dist/components/Skeleton/index.d.mts +1 -0
  166. package/dist/components/Spacer/Spacer.d.cts +1 -0
  167. package/dist/components/Spacer/Spacer.d.cts.map +1 -1
  168. package/dist/components/Spacer/Spacer.styles.d.mts +3 -3
  169. package/dist/components/Spacer/index.d.cts +2 -0
  170. package/dist/components/Spinner/Spinner.cjs +38 -0
  171. package/dist/components/Spinner/Spinner.d.cts +17 -0
  172. package/dist/components/Spinner/Spinner.d.cts.map +1 -0
  173. package/dist/components/Spinner/Spinner.d.mts +17 -0
  174. package/dist/components/Spinner/Spinner.d.mts.map +1 -0
  175. package/dist/components/Spinner/Spinner.mjs +37 -0
  176. package/dist/components/Spinner/Spinner.mjs.map +1 -0
  177. package/dist/components/Spinner/Spinner.styles.cjs +34 -0
  178. package/dist/components/Spinner/Spinner.styles.d.cts +63 -0
  179. package/dist/components/Spinner/Spinner.styles.d.cts.map +1 -0
  180. package/dist/components/Spinner/Spinner.styles.d.mts +63 -0
  181. package/dist/components/Spinner/Spinner.styles.d.mts.map +1 -0
  182. package/dist/components/Spinner/Spinner.styles.mjs +34 -0
  183. package/dist/components/Spinner/Spinner.styles.mjs.map +1 -0
  184. package/dist/components/Spinner/index.d.mts +1 -0
  185. package/dist/components/Stack/Stack.d.cts +1 -0
  186. package/dist/components/Stack/Stack.d.cts.map +1 -1
  187. package/dist/components/Stack/index.d.cts +2 -0
  188. package/dist/components/Tab/Tab.d.cts +1 -0
  189. package/dist/components/Tab/Tab.d.cts.map +1 -1
  190. package/dist/components/Tab/Tab.styles.d.cts +3 -3
  191. package/dist/components/Tab/index.d.cts +2 -0
  192. package/dist/components/Text/Text.d.cts +1 -0
  193. package/dist/components/Text/Text.d.cts.map +1 -1
  194. package/dist/components/Text/index.d.cts +2 -0
  195. package/dist/components/TextArea/TextArea.d.cts +5 -4
  196. package/dist/components/TextArea/TextArea.d.cts.map +1 -1
  197. package/dist/components/TextArea/TextArea.d.mts +4 -4
  198. package/dist/components/TextArea/TextArea.styles.d.mts +3 -3
  199. package/dist/components/TextArea/index.d.cts +1 -0
  200. package/dist/components/TextInput/TextInput.d.cts +3 -2
  201. package/dist/components/TextInput/TextInput.d.cts.map +1 -1
  202. package/dist/components/TextInput/TextInput.d.mts +2 -2
  203. package/dist/components/TextInput/index.d.cts +2 -0
  204. package/dist/components/Toast/Toast.d.cts +5 -5
  205. package/dist/components/Toast/Toast.d.mts +3 -3
  206. package/dist/components/Toast/Toast.styles.d.cts +3 -3
  207. package/dist/components/Toast/Toast.styles.d.mts +3 -3
  208. package/dist/components/Toast/index.d.cts +3 -0
  209. package/dist/components/Toast/index.d.mts +2 -1
  210. package/dist/components/Toast/toastStore.cjs +38 -0
  211. package/dist/components/Toast/toastStore.d.cts +19 -0
  212. package/dist/components/Toast/toastStore.d.cts.map +1 -0
  213. package/dist/components/Toast/toastStore.d.mts +19 -0
  214. package/dist/components/Toast/toastStore.d.mts.map +1 -0
  215. package/dist/components/Toast/toastStore.mjs +39 -0
  216. package/dist/components/Toast/toastStore.mjs.map +1 -0
  217. package/dist/components/Toggle/Toggle.d.cts +6 -4
  218. package/dist/components/Toggle/Toggle.d.cts.map +1 -1
  219. package/dist/components/Toggle/Toggle.d.mts +4 -4
  220. package/dist/components/Toggle/Toggle.d.mts.map +1 -1
  221. package/dist/components/Toggle/Toggle.styles.d.cts +3 -3
  222. package/dist/components/Toggle/Toggle.styles.d.mts +3 -3
  223. package/dist/components/Toggle/index.d.cts +1 -0
  224. package/dist/components/VStack/VStack.d.cts +3 -2
  225. package/dist/components/VStack/VStack.d.cts.map +1 -1
  226. package/dist/components/VStack/VStack.d.mts +2 -2
  227. package/dist/components/VStack/index.d.cts +1 -0
  228. package/dist/components/index.d.cts +90 -0
  229. package/dist/components/index.d.mts +8 -1
  230. package/dist/index.cjs +8 -0
  231. package/dist/index.d.cts +7 -1
  232. package/dist/index.d.mts +5 -1
  233. package/dist/index.mjs +5 -1
  234. package/dist/utils/index.d.cts +5 -0
  235. package/dist/utils/polymorphic/index.d.cts +1 -0
  236. package/package.json +3 -3
  237. package/src/styles/global.css +32 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Flex.d.cts","names":[],"sources":["../../../src/components/Flex/Flex.tsx"],"mappings":";;;;;KAKY,aAAA,GAAgB,iBAAA;AAAA,KAEhB,SAAA,WAAoB,WAAA,YAAuB,gBAAA,CACrD,CAAA,EACA,aAAA;AAAA,cAGW,IAAA;EAAA,WAAkB,WAAA;IAAW,EAAA;IAAA,SAAA;IAAA,GAAA;IAAA,KAAA;IAAA,OAAA;IAAA,IAAA;IAAA,SAAA;IAAA,QAAA;IAAA,GAAA;EAAA,GAUvC,SAAA,CAAU,CAAA,IAAE,KAAA,CAAA,YAAA,eAAA,KAAA,CAAA,qBAAA"}
1
+ {"version":3,"file":"Flex.d.cts","names":[],"sources":["../../../src/components/Flex/Flex.tsx"],"mappings":";;;;;;KAKY,aAAA,GAAgB,iBAAA;AAAA,KAEhB,SAAA,WAAoB,WAAA,YAAuB,gBAAA,CACrD,CAAA,EACA,aAAA;AAAA,cAGW,IAAA;EAAA,WAAkB,WAAA;IAAW,EAAA;IAAA,SAAA;IAAA,GAAA;IAAA,KAAA;IAAA,OAAA;IAAA,IAAA;IAAA,SAAA;IAAA,QAAA;IAAA,GAAA;EAAA,GAUvC,SAAA,CAAU,CAAA,IAAE,KAAA,CAAA,YAAA,eAAA,KAAA,CAAA,qBAAA"}
@@ -0,0 +1,2 @@
1
+ import { FlexAlign, FlexDirection, FlexGap, FlexJustify } from "./Flex.styles.cjs";
2
+ import { Flex, FlexProps } from "./Flex.cjs";
@@ -1,4 +1,5 @@
1
1
  import { PolymorphicProps } from "../../utils/polymorphic/polymorphic.cjs";
2
+ import "../../utils/polymorphic/index.cjs";
2
3
  import { FloatStylesOptions } from "./Float.styles.cjs";
3
4
  import React, { ElementType } from "react";
4
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"Float.d.cts","names":[],"sources":["../../../src/components/Float/Float.tsx"],"mappings":";;;;;KAQY,UAAA,WAAqB,WAAA,YAAuB,gBAAA,CACtD,CAAA,EACA,kBAAA;AAAA,cAGW,KAAA;EAAA,WAAmB,WAAA;IAAW,EAAA;IAAA,SAAA;IAAA,MAAA;IAAA,GAAA;IAAA,MAAA;IAAA,IAAA;IAAA,KAAA;IAAA,SAAA;IAAA,KAAA;IAAA,QAAA;IAAA,GAAA;EAAA,GAYxC,UAAA,CAAW,CAAA,IAAE,KAAA,CAAA,YAAA,eAAA,KAAA,CAAA,qBAAA"}
1
+ {"version":3,"file":"Float.d.cts","names":[],"sources":["../../../src/components/Float/Float.tsx"],"mappings":";;;;;;KAQY,UAAA,WAAqB,WAAA,YAAuB,gBAAA,CACtD,CAAA,EACA,kBAAA;AAAA,cAGW,KAAA;EAAA,WAAmB,WAAA;IAAW,EAAA;IAAA,SAAA;IAAA,MAAA;IAAA,GAAA;IAAA,MAAA;IAAA,IAAA;IAAA,KAAA;IAAA,SAAA;IAAA,KAAA;IAAA,QAAA;IAAA,GAAA;EAAA,GAYxC,UAAA,CAAW,CAAA,IAAE,KAAA,CAAA,YAAA,eAAA,KAAA,CAAA,qBAAA"}
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants45 from "tailwind-variants";
1
+ import * as tailwind_variants43 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/components/Float/Float.styles.d.ts
5
- declare const float: tailwind_variants45.TVReturnType<{
5
+ declare const float: tailwind_variants43.TVReturnType<{
6
6
  floatType: {
7
7
  absolute: string;
8
8
  fixed: string;
@@ -30,7 +30,7 @@ declare const float: tailwind_variants45.TVReturnType<{
30
30
  modal: string;
31
31
  toast: string;
32
32
  };
33
- }, undefined, tailwind_variants45.TVReturnType<{
33
+ }, undefined, tailwind_variants43.TVReturnType<{
34
34
  floatType: {
35
35
  absolute: string;
36
36
  fixed: string;
@@ -0,0 +1 @@
1
+ import { Float, FloatProps } from "./Float.cjs";
@@ -1,7 +1,8 @@
1
1
  import { PrimitiveProps } from "../Primitive/Primitive.cjs";
2
+ import "../Primitive/index.cjs";
2
3
  import { FloatingActionButtonVariants } from "./FloatingActionButton.styles.cjs";
3
4
  import { ComponentProps } from "react";
4
- import * as react_jsx_runtime16 from "react/jsx-runtime";
5
+ import * as react_jsx_runtime14 from "react/jsx-runtime";
5
6
 
6
7
  //#region src/components/FloatingActionButton/FloatingActionButton.d.ts
7
8
  interface FloatingActionButtonProps extends ComponentProps<'button'>, FloatingActionButtonVariants, PrimitiveProps {}
@@ -10,7 +11,7 @@ declare function FloatingActionButton({
10
11
  children,
11
12
  className,
12
13
  ...props
13
- }: FloatingActionButtonProps): react_jsx_runtime16.JSX.Element;
14
+ }: FloatingActionButtonProps): react_jsx_runtime14.JSX.Element;
14
15
  //#endregion
15
16
  export { FloatingActionButton, FloatingActionButtonProps };
16
17
  //# sourceMappingURL=FloatingActionButton.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FloatingActionButton.d.cts","names":[],"sources":["../../../src/components/FloatingActionButton/FloatingActionButton.tsx"],"mappings":";;;;;;UAQiB,yBAAA,SAEb,cAAA,YACA,4BAAA,EACA,cAAA;AAAA,iBAEY,oBAAA,CAAA;EACd,QAAA;EACA,QAAA;EACA,SAAA;EAAA,GACG;AAAA,GACF,yBAAA,GAAyB,mBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"FloatingActionButton.d.cts","names":[],"sources":["../../../src/components/FloatingActionButton/FloatingActionButton.tsx"],"mappings":";;;;;;;UAQiB,yBAAA,SAEb,cAAA,YACA,4BAAA,EACA,cAAA;AAAA,iBAEY,oBAAA,CAAA;EACd,QAAA;EACA,QAAA;EACA,SAAA;EAAA,GACG;AAAA,GACF,yBAAA,GAAyB,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -2,7 +2,7 @@ import { PrimitiveProps } from "../Primitive/Primitive.mjs";
2
2
  import "../Primitive/index.mjs";
3
3
  import { FloatingActionButtonVariants } from "./FloatingActionButton.styles.mjs";
4
4
  import { ComponentProps } from "react";
5
- import * as react_jsx_runtime19 from "react/jsx-runtime";
5
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/FloatingActionButton/FloatingActionButton.d.ts
8
8
  interface FloatingActionButtonProps extends ComponentProps<'button'>, FloatingActionButtonVariants, PrimitiveProps {}
@@ -11,7 +11,7 @@ declare function FloatingActionButton({
11
11
  children,
12
12
  className,
13
13
  ...props
14
- }: FloatingActionButtonProps): react_jsx_runtime19.JSX.Element;
14
+ }: FloatingActionButtonProps): react_jsx_runtime17.JSX.Element;
15
15
  //#endregion
16
16
  export { FloatingActionButton, FloatingActionButtonProps };
17
17
  //# sourceMappingURL=FloatingActionButton.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants39 from "tailwind-variants";
1
+ import * as tailwind_variants37 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/components/FloatingActionButton/FloatingActionButton.styles.d.ts
5
- declare const floatingActionButton: tailwind_variants39.TVReturnType<{
5
+ declare const floatingActionButton: tailwind_variants37.TVReturnType<{
6
6
  disabled: {
7
7
  true: string;
8
8
  false: string;
@@ -12,7 +12,7 @@ declare const floatingActionButton: tailwind_variants39.TVReturnType<{
12
12
  true: string;
13
13
  false: string;
14
14
  };
15
- }, undefined, tailwind_variants39.TVReturnType<{
15
+ }, undefined, tailwind_variants37.TVReturnType<{
16
16
  disabled: {
17
17
  true: string;
18
18
  false: string;
@@ -0,0 +1 @@
1
+ import { FloatingActionButton, FloatingActionButtonProps } from "./FloatingActionButton.cjs";
@@ -1,4 +1,5 @@
1
1
  import { PolymorphicProps } from "../../utils/polymorphic/polymorphic.cjs";
2
+ import "../../utils/polymorphic/index.cjs";
2
3
  import { GridVariants } from "./Grid.styles.cjs";
3
4
  import React, { ElementType } from "react";
4
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.d.cts","names":[],"sources":["../../../src/components/Grid/Grid.tsx"],"mappings":";;;;;KAKY,SAAA,WAAoB,WAAA,YAAuB,gBAAA,CACrD,CAAA,EACA,YAAA;AAAA,cAGW,IAAA;EAAA,WAAkB,WAAA;IAAW,EAAA;IAAA,OAAA;IAAA,IAAA;IAAA,GAAA;IAAA,IAAA;IAAA,SAAA;IAAA,QAAA;IAAA,GAAA;EAAA,GASvC,SAAA,CAAU,CAAA,IAAE,KAAA,CAAA,YAAA,eAAA,KAAA,CAAA,qBAAA"}
1
+ {"version":3,"file":"Grid.d.cts","names":[],"sources":["../../../src/components/Grid/Grid.tsx"],"mappings":";;;;;;KAKY,SAAA,WAAoB,WAAA,YAAuB,gBAAA,CACrD,CAAA,EACA,YAAA;AAAA,cAGW,IAAA;EAAA,WAAkB,WAAA;IAAW,EAAA;IAAA,OAAA;IAAA,IAAA;IAAA,GAAA;IAAA,IAAA;IAAA,SAAA;IAAA,QAAA;IAAA,GAAA;EAAA,GASvC,SAAA,CAAU,CAAA,IAAE,KAAA,CAAA,YAAA,eAAA,KAAA,CAAA,qBAAA"}
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants43 from "tailwind-variants";
1
+ import * as tailwind_variants41 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/components/Grid/Grid.styles.d.ts
5
- declare const grid: tailwind_variants43.TVReturnType<{
5
+ declare const grid: tailwind_variants41.TVReturnType<{
6
6
  columns: {
7
7
  1: string;
8
8
  2: string;
@@ -80,7 +80,7 @@ declare const grid: tailwind_variants43.TVReturnType<{
80
80
  'row-dense': string;
81
81
  'col-dense': string;
82
82
  };
83
- }, undefined, tailwind_variants43.TVReturnType<{
83
+ }, undefined, tailwind_variants41.TVReturnType<{
84
84
  columns: {
85
85
  1: string;
86
86
  2: string;
@@ -0,0 +1 @@
1
+ import { Grid, GridProps } from "./Grid.cjs";
@@ -1,13 +1,14 @@
1
1
  import { StackProps } from "../Stack/Stack.cjs";
2
+ import "../Stack/index.cjs";
2
3
  import { ElementType } from "react";
3
- import * as react_jsx_runtime21 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
4
5
 
5
6
  //#region src/components/HStack/HStack.d.ts
6
7
  type HStackProps<E extends ElementType = 'div'> = Omit<StackProps<E>, 'direction'>;
7
8
  declare const HStack: {
8
9
  <E extends ElementType = "div">({
9
10
  ...props
10
- }: HStackProps<E>): react_jsx_runtime21.JSX.Element;
11
+ }: HStackProps<E>): react_jsx_runtime19.JSX.Element;
11
12
  displayName: string;
12
13
  };
13
14
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"HStack.d.cts","names":[],"sources":["../../../src/components/HStack/HStack.tsx"],"mappings":";;;;;KAGY,WAAA,WAAsB,WAAA,YAAuB,IAAA,CACvD,UAAA,CAAW,CAAA;AAAA,cAIA,MAAA;EAAA,WAAoB,WAAA;IAAA,GAAW;EAAA,GAEzC,WAAA,CAAY,CAAA,IAAE,mBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"HStack.d.cts","names":[],"sources":["../../../src/components/HStack/HStack.tsx"],"mappings":";;;;;;KAGY,WAAA,WAAsB,WAAA,YAAuB,IAAA,CACvD,UAAA,CAAW,CAAA;AAAA,cAIA,MAAA;EAAA,WAAoB,WAAA;IAAA,GAAW;EAAA,GAEzC,WAAA,CAAY,CAAA,IAAE,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1 @@
1
+ import { HStack, HStackProps } from "./HStack.cjs";
@@ -1,4 +1,5 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ const require_CTAButton = require('../CTAButton/CTAButton.cjs');
2
3
  const require_Dialog = require('../Dialog/Dialog.cjs');
3
4
  const require_Modal_styles = require('./Modal.styles.cjs');
4
5
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -54,13 +55,9 @@ const ModalFooter = ({ className, children, ...props }) => {
54
55
  });
55
56
  };
56
57
  ModalFooter.displayName = "ModalFooter";
57
- const ModalAction = ({ className, variant, ...props }) => {
58
- const { actionButton } = require_Modal_styles.modal();
59
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
60
- className: actionButton({
61
- className,
62
- variant
63
- }),
58
+ const ModalAction = (props) => {
59
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CTAButton.CTAButton, {
60
+ fullWidth: true,
64
61
  ...props
65
62
  });
66
63
  };
@@ -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
6
  import * as react23 from "react";
4
7
  import { ComponentProps } from "react";
5
- import * as react_jsx_runtime46 from "react/jsx-runtime";
8
+ import * as react_jsx_runtime81 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,9 +14,9 @@ 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_runtime81.JSX.Element;
17
20
  displayName: string;
18
21
  } & {
19
22
  Trigger: react23.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react23.RefAttributes<HTMLButtonElement>>;
@@ -22,7 +25,7 @@ declare const Modal: {
22
25
  className,
23
26
  children,
24
27
  ...props
25
- }: ModalContentProps): react_jsx_runtime46.JSX.Element;
28
+ }: ModalContentProps): react_jsx_runtime81.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_runtime81.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_runtime81.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_runtime81.JSX.Element;
50
53
  displayName: string;
51
54
  };
52
55
  Close: react23.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react23.RefAttributes<HTMLButtonElement>>;
53
56
  ActionButton: {
54
- ({
55
- className,
56
- variant,
57
- ...props
58
- }: ModalActionProps): react_jsx_runtime46.JSX.Element;
57
+ (props: ModalActionProps): react_jsx_runtime81.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,KAS1D,iBAAA,GAAoB,cAAA,QAAsB,e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AA,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_runtime44 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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.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;AAAA,UAYQ,qBAAA,SAEb,cAAA,QAAsB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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;AAG3B,MAAM,gBAAgB,EAAE,WAAW,UAAU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{ 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_variants27 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_variants27.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_variants27.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"}
@@ -1,19 +1,8 @@
1
- import * as tailwind_variants27 from "tailwind-variants";
1
+ import * as tailwind_variants25 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_variants27.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_variants25.TVReturnType<{
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
- }, tailwind_variants27.TVReturnType<{
72
- variant: {
73
- primary: {
74
- actionButton: string;
75
- };
76
- destructive: {
77
- actionButton: string;
78
- };
79
- cancel: {
80
- actionButton: string;
81
- };
82
- };
47
+ }, tailwind_variants25.TVReturnType<{
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"}