@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
@@ -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_runtime44 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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.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_runtime44.JSX.Element;
72
72
  displayName: string;
73
73
  };
74
74
  };
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime57 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime50 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_runtime57.JSX.Element;
15
+ (props: PrimitivePropsWithRef<"div">): react_jsx_runtime50.JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  span: {
19
- (props: PrimitivePropsWithRef<"span">): react_jsx_runtime57.JSX.Element;
19
+ (props: PrimitivePropsWithRef<"span">): react_jsx_runtime50.JSX.Element;
20
20
  displayName: string;
21
21
  };
22
22
  img: {
23
- (props: PrimitivePropsWithRef<"img">): react_jsx_runtime57.JSX.Element;
23
+ (props: PrimitivePropsWithRef<"img">): react_jsx_runtime50.JSX.Element;
24
24
  displayName: string;
25
25
  };
26
26
  button: {
27
- (props: PrimitivePropsWithRef<"button">): react_jsx_runtime57.JSX.Element;
27
+ (props: PrimitivePropsWithRef<"button">): react_jsx_runtime50.JSX.Element;
28
28
  displayName: string;
29
29
  };
30
30
  label: {
31
- (props: PrimitivePropsWithRef<"label">): react_jsx_runtime57.JSX.Element;
31
+ (props: PrimitivePropsWithRef<"label">): react_jsx_runtime50.JSX.Element;
32
32
  displayName: string;
33
33
  };
34
34
  input: {
35
- (props: PrimitivePropsWithRef<"input">): react_jsx_runtime57.JSX.Element;
35
+ (props: PrimitivePropsWithRef<"input">): react_jsx_runtime50.JSX.Element;
36
36
  displayName: string;
37
37
  };
38
38
  textarea: {
39
- (props: PrimitivePropsWithRef<"textarea">): react_jsx_runtime57.JSX.Element;
39
+ (props: PrimitivePropsWithRef<"textarea">): react_jsx_runtime50.JSX.Element;
40
40
  displayName: string;
41
41
  };
42
42
  a: {
43
- (props: PrimitivePropsWithRef<"a">): react_jsx_runtime57.JSX.Element;
43
+ (props: PrimitivePropsWithRef<"a">): react_jsx_runtime50.JSX.Element;
44
44
  displayName: string;
45
45
  };
46
46
  p: {
47
- (props: PrimitivePropsWithRef<"p">): react_jsx_runtime57.JSX.Element;
47
+ (props: PrimitivePropsWithRef<"p">): react_jsx_runtime50.JSX.Element;
48
48
  displayName: string;
49
49
  };
50
50
  h2: {
51
- (props: PrimitivePropsWithRef<"h2">): react_jsx_runtime57.JSX.Element;
51
+ (props: PrimitivePropsWithRef<"h2">): react_jsx_runtime50.JSX.Element;
52
52
  displayName: string;
53
53
  };
54
54
  ul: {
55
- (props: PrimitivePropsWithRef<"ul">): react_jsx_runtime57.JSX.Element;
55
+ (props: PrimitivePropsWithRef<"ul">): react_jsx_runtime50.JSX.Element;
56
56
  displayName: string;
57
57
  };
58
58
  li: {
59
- (props: PrimitivePropsWithRef<"li">): react_jsx_runtime57.JSX.Element;
59
+ (props: PrimitivePropsWithRef<"li">): react_jsx_runtime50.JSX.Element;
60
60
  displayName: string;
61
61
  };
62
62
  svg: {
63
- (props: PrimitivePropsWithRef<"svg">): react_jsx_runtime57.JSX.Element;
63
+ (props: PrimitivePropsWithRef<"svg">): react_jsx_runtime50.JSX.Element;
64
64
  displayName: string;
65
65
  };
66
66
  circle: {
67
- (props: PrimitivePropsWithRef<"circle">): react_jsx_runtime57.JSX.Element;
67
+ (props: PrimitivePropsWithRef<"circle">): react_jsx_runtime50.JSX.Element;
68
68
  displayName: string;
69
69
  };
70
70
  nav: {
71
- (props: PrimitivePropsWithRef<"nav">): react_jsx_runtime57.JSX.Element;
71
+ (props: PrimitivePropsWithRef<"nav">): react_jsx_runtime50.JSX.Element;
72
72
  displayName: string;
73
73
  };
74
74
  };
@@ -0,0 +1 @@
1
+ import { Primitive, PrimitiveProps } from "./Primitive.cjs";
@@ -0,0 +1,79 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ const require_Spinner = require('../Spinner/Spinner.cjs');
3
+ const require_PullToRefresh_styles = require('./PullToRefresh.styles.cjs');
4
+ let react = require("react");
5
+ react = require_rolldown_runtime.__toESM(react);
6
+ let react_jsx_runtime = require("react/jsx-runtime");
7
+
8
+ //#region src/components/PullToRefresh/PullToRefresh.tsx
9
+ const PullToRefresh = ({ children, onRefresh, threshold = 60, className }) => {
10
+ const { wrapper, loaderContainer, content } = require_PullToRefresh_styles.pullToRefresh();
11
+ const containerRef = (0, react.useRef)(null);
12
+ const [pullDistance, setPullDistance] = (0, react.useState)(0);
13
+ const [isRefreshing, setIsRefreshing] = (0, react.useState)(false);
14
+ const [isDragging, setIsDragging] = (0, react.useState)(false);
15
+ const startY = (0, react.useRef)(0);
16
+ const isTopReached = (0, react.useRef)(false);
17
+ const handleTouchStart = (e) => {
18
+ if (isRefreshing) return;
19
+ if (containerRef.current && containerRef.current.scrollTop === 0) {
20
+ isTopReached.current = true;
21
+ startY.current = e.touches[0].clientY;
22
+ setIsDragging(true);
23
+ } else isTopReached.current = false;
24
+ };
25
+ const handleTouchMove = (e) => {
26
+ if (!isTopReached.current || isRefreshing) return;
27
+ const diff = e.touches[0].clientY - startY.current;
28
+ if (diff > 0) {
29
+ setPullDistance(Math.min(diff * .5, threshold * 2.5));
30
+ if (e.cancelable) e.preventDefault();
31
+ }
32
+ };
33
+ const handleTouchEnd = async () => {
34
+ setIsDragging(false);
35
+ if (!isTopReached.current || isRefreshing) return;
36
+ if (pullDistance >= threshold) {
37
+ setIsRefreshing(true);
38
+ setPullDistance(threshold);
39
+ try {
40
+ await onRefresh();
41
+ } finally {
42
+ setIsRefreshing(false);
43
+ setPullDistance(0);
44
+ }
45
+ } else setPullDistance(0);
46
+ };
47
+ const transitionStyle = isDragging ? "none" : "all 0.45s cubic-bezier(0, 0, 0.2, 1)";
48
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
49
+ ref: containerRef,
50
+ className: wrapper({ className }),
51
+ onTouchStart: handleTouchStart,
52
+ onTouchMove: handleTouchMove,
53
+ onTouchEnd: handleTouchEnd,
54
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
55
+ className: loaderContainer(),
56
+ style: {
57
+ height: "auto",
58
+ top: pullDistance > 0 ? `${pullDistance / 2}px` : `-${threshold}px`,
59
+ transform: "translateY(-50%)",
60
+ opacity: pullDistance > 0 ? Math.min(pullDistance / threshold, 1) : 0,
61
+ transition: transitionStyle
62
+ },
63
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Spinner.Spinner, {
64
+ size: "md",
65
+ speed: "fast"
66
+ })
67
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
68
+ className: content(),
69
+ style: {
70
+ transform: `translateY(${pullDistance}px)`,
71
+ transition: transitionStyle
72
+ },
73
+ children
74
+ })]
75
+ });
76
+ };
77
+
78
+ //#endregion
79
+ exports.PullToRefresh = PullToRefresh;
@@ -0,0 +1,20 @@
1
+ import { PullToRefreshVariants } from "./PullToRefresh.styles.cjs";
2
+ import React from "react";
3
+ import * as react_jsx_runtime77 from "react/jsx-runtime";
4
+
5
+ //#region src/components/PullToRefresh/PullToRefresh.d.ts
6
+ interface PullToRefreshProps extends PullToRefreshVariants {
7
+ children: React.ReactNode;
8
+ onRefresh: () => Promise<void>;
9
+ threshold?: number;
10
+ className?: string;
11
+ }
12
+ declare const PullToRefresh: ({
13
+ children,
14
+ onRefresh,
15
+ threshold,
16
+ className
17
+ }: PullToRefreshProps) => react_jsx_runtime77.JSX.Element;
18
+ //#endregion
19
+ export { PullToRefresh, PullToRefreshProps };
20
+ //# sourceMappingURL=PullToRefresh.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullToRefresh.d.cts","names":[],"sources":["../../../src/components/PullToRefresh/PullToRefresh.tsx"],"mappings":";;;;;UAOiB,kBAAA,SAA2B,qBAAA;EAC1C,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA,QAAiB,OAAA;EACjB,SAAA;EACA,SAAA;AAAA;AAAA,cAGW,aAAA;EAAiB,QAAA;EAAA,SAAA;EAAA,SAAA;EAAA;AAAA,GAK3B,kBAAA,KAAkB,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,20 @@
1
+ import { PullToRefreshVariants } from "./PullToRefresh.styles.mjs";
2
+ import React from "react";
3
+ import * as react_jsx_runtime77 from "react/jsx-runtime";
4
+
5
+ //#region src/components/PullToRefresh/PullToRefresh.d.ts
6
+ interface PullToRefreshProps extends PullToRefreshVariants {
7
+ children: React.ReactNode;
8
+ onRefresh: () => Promise<void>;
9
+ threshold?: number;
10
+ className?: string;
11
+ }
12
+ declare const PullToRefresh: ({
13
+ children,
14
+ onRefresh,
15
+ threshold,
16
+ className
17
+ }: PullToRefreshProps) => react_jsx_runtime77.JSX.Element;
18
+ //#endregion
19
+ export { PullToRefresh, PullToRefreshProps };
20
+ //# sourceMappingURL=PullToRefresh.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullToRefresh.d.mts","names":[],"sources":["../../../src/components/PullToRefresh/PullToRefresh.tsx"],"mappings":";;;;;UAOiB,kBAAA,SAA2B,qBAAA;EAC1C,QAAA,EAAU,KAAA,CAAM,SAAA;EAChB,SAAA,QAAiB,OAAA;EACjB,SAAA;EACA,SAAA;AAAA;AAAA,cAGW,aAAA;EAAiB,QAAA;EAAA,SAAA;EAAA,SAAA;EAAA;AAAA,GAK3B,kBAAA,KAAkB,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,78 @@
1
+ import { Spinner } from "../Spinner/Spinner.mjs";
2
+ import { pullToRefresh } from "./PullToRefresh.styles.mjs";
3
+ import React, { useRef, useState } from "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+
6
+ //#region src/components/PullToRefresh/PullToRefresh.tsx
7
+ const PullToRefresh = ({ children, onRefresh, threshold = 60, className }) => {
8
+ const { wrapper, loaderContainer, content } = pullToRefresh();
9
+ const containerRef = useRef(null);
10
+ const [pullDistance, setPullDistance] = useState(0);
11
+ const [isRefreshing, setIsRefreshing] = useState(false);
12
+ const [isDragging, setIsDragging] = useState(false);
13
+ const startY = useRef(0);
14
+ const isTopReached = useRef(false);
15
+ const handleTouchStart = (e) => {
16
+ if (isRefreshing) return;
17
+ if (containerRef.current && containerRef.current.scrollTop === 0) {
18
+ isTopReached.current = true;
19
+ startY.current = e.touches[0].clientY;
20
+ setIsDragging(true);
21
+ } else isTopReached.current = false;
22
+ };
23
+ const handleTouchMove = (e) => {
24
+ if (!isTopReached.current || isRefreshing) return;
25
+ const diff = e.touches[0].clientY - startY.current;
26
+ if (diff > 0) {
27
+ setPullDistance(Math.min(diff * .5, threshold * 2.5));
28
+ if (e.cancelable) e.preventDefault();
29
+ }
30
+ };
31
+ const handleTouchEnd = async () => {
32
+ setIsDragging(false);
33
+ if (!isTopReached.current || isRefreshing) return;
34
+ if (pullDistance >= threshold) {
35
+ setIsRefreshing(true);
36
+ setPullDistance(threshold);
37
+ try {
38
+ await onRefresh();
39
+ } finally {
40
+ setIsRefreshing(false);
41
+ setPullDistance(0);
42
+ }
43
+ } else setPullDistance(0);
44
+ };
45
+ const transitionStyle = isDragging ? "none" : "all 0.45s cubic-bezier(0, 0, 0.2, 1)";
46
+ return /* @__PURE__ */ jsxs("div", {
47
+ ref: containerRef,
48
+ className: wrapper({ className }),
49
+ onTouchStart: handleTouchStart,
50
+ onTouchMove: handleTouchMove,
51
+ onTouchEnd: handleTouchEnd,
52
+ children: [/* @__PURE__ */ jsx("div", {
53
+ className: loaderContainer(),
54
+ style: {
55
+ height: "auto",
56
+ top: pullDistance > 0 ? `${pullDistance / 2}px` : `-${threshold}px`,
57
+ transform: "translateY(-50%)",
58
+ opacity: pullDistance > 0 ? Math.min(pullDistance / threshold, 1) : 0,
59
+ transition: transitionStyle
60
+ },
61
+ children: /* @__PURE__ */ jsx(Spinner, {
62
+ size: "md",
63
+ speed: "fast"
64
+ })
65
+ }), /* @__PURE__ */ jsx("div", {
66
+ className: content(),
67
+ style: {
68
+ transform: `translateY(${pullDistance}px)`,
69
+ transition: transitionStyle
70
+ },
71
+ children
72
+ })]
73
+ });
74
+ };
75
+
76
+ //#endregion
77
+ export { PullToRefresh };
78
+ //# sourceMappingURL=PullToRefresh.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullToRefresh.mjs","names":[],"sources":["../../../src/components/PullToRefresh/PullToRefresh.tsx"],"sourcesContent":["import React, { useRef, useState } from 'react';\nimport { Spinner } from '../Spinner';\nimport {\n pullToRefresh,\n type PullToRefreshVariants,\n} from './PullToRefresh.styles';\n\nexport interface PullToRefreshProps extends PullToRefreshVariants {\n children: React.ReactNode;\n onRefresh: () => Promise<void>;\n threshold?: number;\n className?: string;\n}\n\nexport const PullToRefresh = ({\n children,\n onRefresh,\n threshold = 60,\n className,\n}: PullToRefreshProps) => {\n const { wrapper, loaderContainer, content } = pullToRefresh();\n\n const containerRef = useRef<HTMLDivElement>(null);\n const [pullDistance, setPullDistance] = useState(0);\n const [isRefreshing, setIsRefreshing] = useState(false);\n const [isDragging, setIsDragging] = useState(false); // [추가] 드래그 상태 감지\n\n const startY = useRef(0);\n const isTopReached = useRef(false);\n\n const handleTouchStart = (e: React.TouchEvent) => {\n if (isRefreshing) return;\n\n if (containerRef.current && containerRef.current.scrollTop === 0) {\n isTopReached.current = true;\n startY.current = e.touches[0].clientY;\n setIsDragging(true);\n } else {\n isTopReached.current = false;\n }\n };\n\n const handleTouchMove = (e: React.TouchEvent) => {\n if (!isTopReached.current || isRefreshing) return;\n\n const currentY = e.touches[0].clientY;\n const diff = currentY - startY.current;\n\n if (diff > 0) {\n const resistance = 0.5;\n const newDistance = Math.min(diff * resistance, threshold * 2.5);\n\n setPullDistance(newDistance);\n\n if (e.cancelable) e.preventDefault();\n }\n };\n\n const handleTouchEnd = async () => {\n setIsDragging(false);\n\n if (!isTopReached.current || isRefreshing) return;\n\n if (pullDistance >= threshold) {\n setIsRefreshing(true);\n setPullDistance(threshold);\n\n try {\n await onRefresh();\n } finally {\n setIsRefreshing(false);\n setPullDistance(0);\n }\n } else {\n // 임계값 못 넘음 -> 0으로 복귀\n setPullDistance(0);\n }\n };\n\n const transitionStyle = isDragging\n ? 'none'\n : 'all 0.45s cubic-bezier(0, 0, 0.2, 1)';\n\n return (\n <div\n ref={containerRef}\n className={wrapper({ className })}\n onTouchStart={handleTouchStart}\n onTouchMove={handleTouchMove}\n onTouchEnd={handleTouchEnd}\n >\n <div\n className={loaderContainer()}\n style={{\n height: 'auto',\n top: pullDistance > 0 ? `${pullDistance / 2}px` : `-${threshold}px`,\n transform: 'translateY(-50%)',\n opacity: pullDistance > 0 ? Math.min(pullDistance / threshold, 1) : 0,\n transition: transitionStyle,\n }}\n >\n <Spinner size=\"md\" speed=\"fast\" />\n </div>\n <div\n className={content()}\n style={{\n transform: `translateY(${pullDistance}px)`,\n transition: transitionStyle,\n }}\n >\n {children}\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;AAcA,MAAa,iBAAiB,EAC5B,UACA,WACA,YAAY,IACZ,gBACwB;CACxB,MAAM,EAAE,SAAS,iBAAiB,YAAY,eAAe;CAE7D,MAAM,eAAe,OAAuB,KAAK;CACjD,MAAM,CAAC,cAAc,mBAAmB,SAAS,EAAE;CACnD,MAAM,CAAC,cAAc,mBAAmB,SAAS,MAAM;CACvD,MAAM,CAAC,YAAY,iBAAiB,SAAS,MAAM;CAEnD,MAAM,SAAS,OAAO,EAAE;CACxB,MAAM,eAAe,OAAO,MAAM;CAElC,MAAM,oBAAoB,MAAwB;AAChD,MAAI,aAAc;AAElB,MAAI,aAAa,WAAW,aAAa,QAAQ,cAAc,GAAG;AAChE,gBAAa,UAAU;AACvB,UAAO,UAAU,EAAE,QAAQ,GAAG;AAC9B,iBAAc,KAAK;QAEnB,cAAa,UAAU;;CAI3B,MAAM,mBAAmB,MAAwB;AAC/C,MAAI,CAAC,aAAa,WAAW,aAAc;EAG3C,MAAM,OADW,EAAE,QAAQ,GAAG,UACN,OAAO;AAE/B,MAAI,OAAO,GAAG;AAIZ,mBAFoB,KAAK,IAAI,OADV,IAC6B,YAAY,IAAI,CAEpC;AAE5B,OAAI,EAAE,WAAY,GAAE,gBAAgB;;;CAIxC,MAAM,iBAAiB,YAAY;AACjC,gBAAc,MAAM;AAEpB,MAAI,CAAC,aAAa,WAAW,aAAc;AAE3C,MAAI,gBAAgB,WAAW;AAC7B,mBAAgB,KAAK;AACrB,mBAAgB,UAAU;AAE1B,OAAI;AACF,UAAM,WAAW;aACT;AACR,oBAAgB,MAAM;AACtB,oBAAgB,EAAE;;QAIpB,iBAAgB,EAAE;;CAItB,MAAM,kBAAkB,aACpB,SACA;AAEJ,QACE,qBAAC;EACC,KAAK;EACL,WAAW,QAAQ,EAAE,WAAW,CAAC;EACjC,cAAc;EACd,aAAa;EACb,YAAY;aAEZ,oBAAC;GACC,WAAW,iBAAiB;GAC5B,OAAO;IACL,QAAQ;IACR,KAAK,eAAe,IAAI,GAAG,eAAe,EAAE,MAAM,IAAI,UAAU;IAChE,WAAW;IACX,SAAS,eAAe,IAAI,KAAK,IAAI,eAAe,WAAW,EAAE,GAAG;IACpE,YAAY;IACb;aAED,oBAAC;IAAQ,MAAK;IAAK,OAAM;KAAS;IAC9B,EACN,oBAAC;GACC,WAAW,SAAS;GACpB,OAAO;IACL,WAAW,cAAc,aAAa;IACtC,YAAY;IACb;GAEA;IACG;GACF"}
@@ -0,0 +1,12 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ let tailwind_variants = require("tailwind-variants");
3
+
4
+ //#region src/components/PullToRefresh/PullToRefresh.styles.ts
5
+ const pullToRefresh = (0, tailwind_variants.tv)({ slots: {
6
+ wrapper: "relative w-full h-full overflow-y-auto overscroll-y-none touch-pan-y",
7
+ loaderContainer: "absolute top-0 left-0 w-full flex justify-center items-center pointer-events-none z-10",
8
+ content: "relative w-full transition-transform duration-200 ease-out will-change-transform"
9
+ } });
10
+
11
+ //#endregion
12
+ exports.pullToRefresh = pullToRefresh;
@@ -0,0 +1,46 @@
1
+ import * as tailwind_variants53 from "tailwind-variants";
2
+ import { VariantProps } from "tailwind-variants";
3
+ import * as tailwind_merge0 from "tailwind-merge";
4
+
5
+ //#region src/components/PullToRefresh/PullToRefresh.styles.d.ts
6
+ declare const pullToRefresh: tailwind_variants53.TVReturnType<{
7
+ [key: string]: {
8
+ [key: string]: tailwind_merge0.ClassNameValue | {
9
+ content?: tailwind_merge0.ClassNameValue;
10
+ wrapper?: tailwind_merge0.ClassNameValue;
11
+ loaderContainer?: tailwind_merge0.ClassNameValue;
12
+ };
13
+ };
14
+ } | {
15
+ [x: string]: {
16
+ [x: string]: tailwind_merge0.ClassNameValue | {
17
+ content?: tailwind_merge0.ClassNameValue;
18
+ wrapper?: tailwind_merge0.ClassNameValue;
19
+ loaderContainer?: tailwind_merge0.ClassNameValue;
20
+ };
21
+ };
22
+ } | {}, {
23
+ wrapper: string;
24
+ loaderContainer: string;
25
+ content: string;
26
+ }, undefined, {
27
+ [key: string]: {
28
+ [key: string]: tailwind_merge0.ClassNameValue | {
29
+ content?: tailwind_merge0.ClassNameValue;
30
+ wrapper?: tailwind_merge0.ClassNameValue;
31
+ loaderContainer?: tailwind_merge0.ClassNameValue;
32
+ };
33
+ };
34
+ } | {}, {
35
+ wrapper: string;
36
+ loaderContainer: string;
37
+ content: string;
38
+ }, tailwind_variants53.TVReturnType<unknown, {
39
+ wrapper: string;
40
+ loaderContainer: string;
41
+ content: string;
42
+ }, undefined, unknown, unknown, undefined>>;
43
+ type PullToRefreshVariants = VariantProps<typeof pullToRefresh>;
44
+ //#endregion
45
+ export { PullToRefreshVariants };
46
+ //# sourceMappingURL=PullToRefresh.styles.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullToRefresh.styles.d.cts","names":[],"sources":["../../../src/components/PullToRefresh/PullToRefresh.styles.ts"],"mappings":";;;;;cAEa,aAAA,sBAAa,YAAA;EAAA;mBASxB,eAAA,CAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,qBAAA,GAAwB,YAAA,QAAoB,aAAA"}
@@ -0,0 +1,46 @@
1
+ import * as tailwind_variants47 from "tailwind-variants";
2
+ import { VariantProps } from "tailwind-variants";
3
+ import * as tailwind_merge0 from "tailwind-merge";
4
+
5
+ //#region src/components/PullToRefresh/PullToRefresh.styles.d.ts
6
+ declare const pullToRefresh: tailwind_variants47.TVReturnType<{
7
+ [key: string]: {
8
+ [key: string]: tailwind_merge0.ClassNameValue | {
9
+ content?: tailwind_merge0.ClassNameValue;
10
+ wrapper?: tailwind_merge0.ClassNameValue;
11
+ loaderContainer?: tailwind_merge0.ClassNameValue;
12
+ };
13
+ };
14
+ } | {
15
+ [x: string]: {
16
+ [x: string]: tailwind_merge0.ClassNameValue | {
17
+ content?: tailwind_merge0.ClassNameValue;
18
+ wrapper?: tailwind_merge0.ClassNameValue;
19
+ loaderContainer?: tailwind_merge0.ClassNameValue;
20
+ };
21
+ };
22
+ } | {}, {
23
+ wrapper: string;
24
+ loaderContainer: string;
25
+ content: string;
26
+ }, undefined, {
27
+ [key: string]: {
28
+ [key: string]: tailwind_merge0.ClassNameValue | {
29
+ content?: tailwind_merge0.ClassNameValue;
30
+ wrapper?: tailwind_merge0.ClassNameValue;
31
+ loaderContainer?: tailwind_merge0.ClassNameValue;
32
+ };
33
+ };
34
+ } | {}, {
35
+ wrapper: string;
36
+ loaderContainer: string;
37
+ content: string;
38
+ }, tailwind_variants47.TVReturnType<unknown, {
39
+ wrapper: string;
40
+ loaderContainer: string;
41
+ content: string;
42
+ }, undefined, unknown, unknown, undefined>>;
43
+ type PullToRefreshVariants = VariantProps<typeof pullToRefresh>;
44
+ //#endregion
45
+ export { PullToRefreshVariants };
46
+ //# sourceMappingURL=PullToRefresh.styles.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullToRefresh.styles.d.mts","names":[],"sources":["../../../src/components/PullToRefresh/PullToRefresh.styles.ts"],"mappings":";;;;;cAEa,aAAA,sBAAa,YAAA;EAAA;mBASxB,eAAA,CAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,qBAAA,GAAwB,YAAA,QAAoB,aAAA"}
@@ -0,0 +1,12 @@
1
+ import { tv } from "tailwind-variants";
2
+
3
+ //#region src/components/PullToRefresh/PullToRefresh.styles.ts
4
+ const pullToRefresh = tv({ slots: {
5
+ wrapper: "relative w-full h-full overflow-y-auto overscroll-y-none touch-pan-y",
6
+ loaderContainer: "absolute top-0 left-0 w-full flex justify-center items-center pointer-events-none z-10",
7
+ content: "relative w-full transition-transform duration-200 ease-out will-change-transform"
8
+ } });
9
+
10
+ //#endregion
11
+ export { pullToRefresh };
12
+ //# sourceMappingURL=PullToRefresh.styles.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PullToRefresh.styles.mjs","names":[],"sources":["../../../src/components/PullToRefresh/PullToRefresh.styles.ts"],"sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\nexport const pullToRefresh = tv({\n slots: {\n wrapper:\n 'relative w-full h-full overflow-y-auto overscroll-y-none touch-pan-y',\n loaderContainer:\n 'absolute top-0 left-0 w-full flex justify-center items-center pointer-events-none z-10',\n content:\n 'relative w-full transition-transform duration-200 ease-out will-change-transform',\n },\n});\n\nexport type PullToRefreshVariants = VariantProps<typeof pullToRefresh>;\n"],"mappings":";;;AAEA,MAAa,gBAAgB,GAAG,EAC9B,OAAO;CACL,SACE;CACF,iBACE;CACF,SACE;CACH,EACF,CAAC"}
@@ -0,0 +1 @@
1
+ import { PullToRefresh, PullToRefreshProps } from "./PullToRefresh.cjs";
@@ -0,0 +1 @@
1
+ import { PullToRefresh, PullToRefreshProps } from "./PullToRefresh.mjs";
@@ -1,6 +1,7 @@
1
1
  import { PrimitiveProps } from "../Primitive/Primitive.cjs";
2
+ import "../Primitive/index.cjs";
2
3
  import React from "react";
3
- import * as react_jsx_runtime6 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
5
 
5
6
  //#region src/components/Radio/Radio.d.ts
6
7
  interface RadioGroupContextValue {
@@ -25,7 +26,7 @@ declare const RadioGroup: {
25
26
  className,
26
27
  children,
27
28
  ...props
28
- }: RadioGroupProps): react_jsx_runtime6.JSX.Element;
29
+ }: RadioGroupProps): react_jsx_runtime0.JSX.Element;
29
30
  displayName: string;
30
31
  };
31
32
  interface RadioProps extends Omit<React.ComponentProps<'input'>, 'type'> {
@@ -40,7 +41,7 @@ declare const Radio: {
40
41
  checked: checkedProp,
41
42
  onChange,
42
43
  ...props
43
- }: RadioProps): react_jsx_runtime6.JSX.Element;
44
+ }: RadioProps): react_jsx_runtime0.JSX.Element;
44
45
  displayName: string;
45
46
  };
46
47
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.cts","names":[],"sources":["../../../src/components/Radio/Radio.tsx"],"mappings":";;;;;UAMU,sBAAA;EACR,IAAA;EACA,KAAA;EACA,QAAA,IAAY,KAAA;AAAA;AAAA,cAKR,oBAAA,QAAoB,sBAAA;AAAA,UAKT,eAAA,SACP,KAAA,CAAM,cAAA,CAAe,cAAA,GAAiB,cAAA;EAC9C,IAAA;EACA,KAAA;EACA,YAAA;EACA,aAAA,IAAiB,KAAA;EACjB,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,cAGL,UAAA;EAAA;;;;;;;;KAQV,eAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UAuDD,UAAA,SAAmB,IAAA,CAClC,KAAA,CAAM,cAAA;EAGN,KAAA;EACA,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,cAGL,KAAA;EAAA;;;;;;;KAOV,UAAA,GAAU,kBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"Radio.d.cts","names":[],"sources":["../../../src/components/Radio/Radio.tsx"],"mappings":";;;;;;UAMU,sBAAA;EACR,IAAA;EACA,KAAA;EACA,QAAA,IAAY,KAAA;AAAA;AAAA,cAKR,oBAAA,QAAoB,sBAAA;AAAA,UAKT,eAAA,SACP,KAAA,CAAM,cAAA,CAAe,cAAA,GAAiB,cAAA;EAC9C,IAAA;EACA,KAAA;EACA,YAAA;EACA,aAAA,IAAiB,KAAA;EACjB,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,cAGL,UAAA;EAAA;;;;;;;;KAQV,eAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UAuDD,UAAA,SAAmB,IAAA,CAClC,KAAA,CAAM,cAAA;EAGN,KAAA;EACA,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,cAGL,KAAA;EAAA;;;;;;;KAOV,UAAA,GAAU,kBAAA,CAAA,GAAA,CAAA,OAAA"}