@jamadd/react-native-template-ui 0.9.1 → 0.9.3

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 (319) hide show
  1. package/lib/module/components/accordion/ThemedAccordion.js +85 -60
  2. package/lib/module/components/accordion/ThemedAccordion.js.map +1 -1
  3. package/lib/module/components/button/AnimatedPressable.js +6 -0
  4. package/lib/module/components/button/AnimatedPressable.js.map +1 -1
  5. package/lib/module/components/button/AnimatedThemedPressable.js +15 -0
  6. package/lib/module/components/button/AnimatedThemedPressable.js.map +1 -1
  7. package/lib/module/components/button/ThemedButton.js +15 -0
  8. package/lib/module/components/button/ThemedButton.js.map +1 -1
  9. package/lib/module/components/button/ThemedIconButton.js +15 -0
  10. package/lib/module/components/button/ThemedIconButton.js.map +1 -1
  11. package/lib/module/components/button/ThemedIconTextButton.js +16 -0
  12. package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
  13. package/lib/module/components/button/ThemedPressable.js +15 -0
  14. package/lib/module/components/button/ThemedPressable.js.map +1 -1
  15. package/lib/module/components/icon/ThemedIcon.js +14 -0
  16. package/lib/module/components/icon/ThemedIcon.js.map +1 -1
  17. package/lib/module/components/list/List.js +15 -0
  18. package/lib/module/components/list/List.js.map +1 -1
  19. package/lib/module/components/loading/ThemedLoading.js +13 -0
  20. package/lib/module/components/loading/ThemedLoading.js.map +1 -1
  21. package/lib/module/components/overlay/actionSheet/ActionSheet.js +32 -3
  22. package/lib/module/components/overlay/actionSheet/ActionSheet.js.map +1 -1
  23. package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js +4 -0
  24. package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
  25. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +17 -2
  26. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
  27. package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +7 -1
  28. package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
  29. package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +6 -0
  30. package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
  31. package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js +6 -0
  32. package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js.map +1 -1
  33. package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js +6 -0
  34. package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js.map +1 -1
  35. package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +7 -1
  36. package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
  37. package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +7 -1
  38. package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
  39. package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +6 -0
  40. package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
  41. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +8 -2
  42. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
  43. package/lib/module/components/overlay/alert/Alert.js +19 -0
  44. package/lib/module/components/overlay/alert/Alert.js.map +1 -1
  45. package/lib/module/components/overlay/alert/AlertButton.js +6 -0
  46. package/lib/module/components/overlay/alert/AlertButton.js.map +1 -1
  47. package/lib/module/components/overlay/alert/AlertButtons.js +6 -0
  48. package/lib/module/components/overlay/alert/AlertButtons.js.map +1 -1
  49. package/lib/module/components/overlay/alert/AlertContent.js +6 -0
  50. package/lib/module/components/overlay/alert/AlertContent.js.map +1 -1
  51. package/lib/module/components/overlay/alert/AlertWrap.js +7 -1
  52. package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
  53. package/lib/module/components/overlay/modal/ThemedLoadingModal.js +15 -0
  54. package/lib/module/components/overlay/modal/ThemedLoadingModal.js.map +1 -1
  55. package/lib/module/components/overlay/modal/ThemedModal.js +18 -0
  56. package/lib/module/components/overlay/modal/ThemedModal.js.map +1 -1
  57. package/lib/module/components/overlay/toast/ThemedToast.js +17 -2
  58. package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
  59. package/lib/module/components/provider/GestureProvider.js +11 -0
  60. package/lib/module/components/provider/GestureProvider.js.map +1 -1
  61. package/lib/module/components/provider/InsetsProvider.js +12 -0
  62. package/lib/module/components/provider/InsetsProvider.js.map +1 -1
  63. package/lib/module/components/provider/ReactNativeTemplateProviders.js +12 -0
  64. package/lib/module/components/provider/ReactNativeTemplateProviders.js.map +1 -1
  65. package/lib/module/components/provider/ThemeProvider.js +11 -0
  66. package/lib/module/components/provider/ThemeProvider.js.map +1 -1
  67. package/lib/module/components/separator/ThemedSeparator.js +19 -0
  68. package/lib/module/components/separator/ThemedSeparator.js.map +1 -1
  69. package/lib/module/components/slider/Slider.js +89 -61
  70. package/lib/module/components/slider/Slider.js.map +1 -1
  71. package/lib/module/components/slider/ThemedSlider.js +25 -3
  72. package/lib/module/components/slider/ThemedSlider.js.map +1 -1
  73. package/lib/module/components/slider/ThemedSliderStepIndicator.js +6 -0
  74. package/lib/module/components/slider/ThemedSliderStepIndicator.js.map +1 -1
  75. package/lib/module/components/switch/ThemedSwitch.js +14 -0
  76. package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
  77. package/lib/module/components/text/Text.js +5 -0
  78. package/lib/module/components/text/Text.js.map +1 -1
  79. package/lib/module/components/text/ThemedIconText.js +22 -0
  80. package/lib/module/components/text/ThemedIconText.js.map +1 -1
  81. package/lib/module/components/text/ThemedText.js +15 -0
  82. package/lib/module/components/text/ThemedText.js.map +1 -1
  83. package/lib/module/components/view/AnimatedThemedView.js +16 -0
  84. package/lib/module/components/view/AnimatedThemedView.js.map +1 -1
  85. package/lib/module/components/view/AnimatedView.js +6 -0
  86. package/lib/module/components/view/AnimatedView.js.map +1 -1
  87. package/lib/module/components/view/Box.js +5 -0
  88. package/lib/module/components/view/Box.js.map +1 -1
  89. package/lib/module/components/view/ThemedScreenWrap.js +79 -88
  90. package/lib/module/components/view/ThemedScreenWrap.js.map +1 -1
  91. package/lib/module/components/view/ThemedScreenWrap.web.js +84 -59
  92. package/lib/module/components/view/ThemedScreenWrap.web.js.map +1 -1
  93. package/lib/module/components/view/ThemedScrollView.js +17 -0
  94. package/lib/module/components/view/ThemedScrollView.js.map +1 -1
  95. package/lib/module/components/view/ThemedView.js +16 -0
  96. package/lib/module/components/view/ThemedView.js.map +1 -1
  97. package/lib/module/hooks/button.js +46 -0
  98. package/lib/module/hooks/button.js.map +1 -1
  99. package/lib/module/hooks/list.js +29 -0
  100. package/lib/module/hooks/list.js.map +1 -1
  101. package/lib/module/hooks/react.js +41 -0
  102. package/lib/module/hooks/react.js.map +1 -1
  103. package/lib/module/hooks/reanimated.js +10 -0
  104. package/lib/module/hooks/reanimated.js.map +1 -1
  105. package/lib/module/hooks/separator.js +18 -1
  106. package/lib/module/hooks/separator.js.map +1 -1
  107. package/lib/module/hooks/style.js +72 -0
  108. package/lib/module/hooks/style.js.map +1 -1
  109. package/lib/module/hooks/theme.js +93 -0
  110. package/lib/module/hooks/theme.js.map +1 -1
  111. package/lib/module/hooks/view.js +122 -1
  112. package/lib/module/hooks/view.js.map +1 -1
  113. package/lib/module/index.js +3 -3
  114. package/lib/module/index.js.map +1 -1
  115. package/lib/module/utils/button/const.js +28 -0
  116. package/lib/module/utils/button/const.js.map +1 -1
  117. package/lib/module/utils/overlay/const.js +72 -0
  118. package/lib/module/utils/overlay/const.js.map +1 -1
  119. package/lib/module/utils/overlay/func.js +101 -0
  120. package/lib/module/utils/overlay/func.js.map +1 -1
  121. package/lib/module/utils/slider/const.js +52 -0
  122. package/lib/module/utils/slider/const.js.map +1 -1
  123. package/lib/module/utils/style/const.js +14 -0
  124. package/lib/module/utils/style/const.js.map +1 -1
  125. package/lib/module/utils/style/func.js +102 -0
  126. package/lib/module/utils/style/func.js.map +1 -1
  127. package/lib/module/utils/theme/const.js +180 -0
  128. package/lib/module/utils/theme/const.js.map +1 -1
  129. package/lib/module/utils/theme/restyle.js +124 -0
  130. package/lib/module/utils/theme/restyle.js.map +1 -1
  131. package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts +15 -0
  132. package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts.map +1 -1
  133. package/lib/typescript/src/components/button/AnimatedPressable.d.ts +5 -0
  134. package/lib/typescript/src/components/button/AnimatedPressable.d.ts.map +1 -1
  135. package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts +14 -0
  136. package/lib/typescript/src/components/button/AnimatedThemedPressable.d.ts.map +1 -1
  137. package/lib/typescript/src/components/button/ThemedButton.d.ts +14 -0
  138. package/lib/typescript/src/components/button/ThemedButton.d.ts.map +1 -1
  139. package/lib/typescript/src/components/button/ThemedIconButton.d.ts +14 -0
  140. package/lib/typescript/src/components/button/ThemedIconButton.d.ts.map +1 -1
  141. package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts +15 -0
  142. package/lib/typescript/src/components/button/ThemedIconTextButton.d.ts.map +1 -1
  143. package/lib/typescript/src/components/button/ThemedPressable.d.ts +15 -0
  144. package/lib/typescript/src/components/button/ThemedPressable.d.ts.map +1 -1
  145. package/lib/typescript/src/components/icon/ThemedIcon.d.ts +13 -0
  146. package/lib/typescript/src/components/icon/ThemedIcon.d.ts.map +1 -1
  147. package/lib/typescript/src/components/list/List.d.ts +14 -0
  148. package/lib/typescript/src/components/list/List.d.ts.map +1 -1
  149. package/lib/typescript/src/components/loading/ThemedLoading.d.ts +12 -0
  150. package/lib/typescript/src/components/loading/ThemedLoading.d.ts.map +1 -1
  151. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts +18 -1
  152. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.d.ts.map +1 -1
  153. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +6 -0
  154. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
  155. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +7 -0
  156. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
  157. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +7 -0
  158. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
  159. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +7 -0
  160. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
  161. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +7 -0
  162. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
  163. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +7 -0
  164. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
  165. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +7 -0
  166. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
  167. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +7 -0
  168. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
  169. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +7 -0
  170. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
  171. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +7 -0
  172. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
  173. package/lib/typescript/src/components/overlay/alert/Alert.d.ts +18 -0
  174. package/lib/typescript/src/components/overlay/alert/Alert.d.ts.map +1 -1
  175. package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts +5 -0
  176. package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts.map +1 -1
  177. package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts +5 -0
  178. package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts.map +1 -1
  179. package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts +5 -0
  180. package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts.map +1 -1
  181. package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts +5 -0
  182. package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts.map +1 -1
  183. package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts +14 -0
  184. package/lib/typescript/src/components/overlay/modal/ThemedLoadingModal.d.ts.map +1 -1
  185. package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts +17 -0
  186. package/lib/typescript/src/components/overlay/modal/ThemedModal.d.ts.map +1 -1
  187. package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts +14 -0
  188. package/lib/typescript/src/components/overlay/toast/ThemedToast.d.ts.map +1 -1
  189. package/lib/typescript/src/components/provider/GestureProvider.d.ts +11 -0
  190. package/lib/typescript/src/components/provider/GestureProvider.d.ts.map +1 -1
  191. package/lib/typescript/src/components/provider/InsetsProvider.d.ts +11 -0
  192. package/lib/typescript/src/components/provider/InsetsProvider.d.ts.map +1 -1
  193. package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts +11 -0
  194. package/lib/typescript/src/components/provider/ReactNativeTemplateProviders.d.ts.map +1 -1
  195. package/lib/typescript/src/components/provider/ThemeProvider.d.ts +11 -0
  196. package/lib/typescript/src/components/provider/ThemeProvider.d.ts.map +1 -1
  197. package/lib/typescript/src/components/separator/ThemedSeparator.d.ts +18 -0
  198. package/lib/typescript/src/components/separator/ThemedSeparator.d.ts.map +1 -1
  199. package/lib/typescript/src/components/slider/Slider.d.ts +20 -0
  200. package/lib/typescript/src/components/slider/Slider.d.ts.map +1 -1
  201. package/lib/typescript/src/components/slider/ThemedSlider.d.ts +15 -0
  202. package/lib/typescript/src/components/slider/ThemedSlider.d.ts.map +1 -1
  203. package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +7 -0
  204. package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
  205. package/lib/typescript/src/components/switch/ThemedSwitch.d.ts +13 -0
  206. package/lib/typescript/src/components/switch/ThemedSwitch.d.ts.map +1 -1
  207. package/lib/typescript/src/components/text/Text.d.ts +9 -4
  208. package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
  209. package/lib/typescript/src/components/text/ThemedIconText.d.ts +21 -0
  210. package/lib/typescript/src/components/text/ThemedIconText.d.ts.map +1 -1
  211. package/lib/typescript/src/components/text/ThemedText.d.ts +14 -0
  212. package/lib/typescript/src/components/text/ThemedText.d.ts.map +1 -1
  213. package/lib/typescript/src/components/view/AnimatedThemedView.d.ts +15 -0
  214. package/lib/typescript/src/components/view/AnimatedThemedView.d.ts.map +1 -1
  215. package/lib/typescript/src/components/view/AnimatedView.d.ts +7 -0
  216. package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
  217. package/lib/typescript/src/components/view/Box.d.ts +23 -18
  218. package/lib/typescript/src/components/view/Box.d.ts.map +1 -1
  219. package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts +16 -0
  220. package/lib/typescript/src/components/view/ThemedScreenWrap.d.ts.map +1 -1
  221. package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts +14 -0
  222. package/lib/typescript/src/components/view/ThemedScreenWrap.web.d.ts.map +1 -1
  223. package/lib/typescript/src/components/view/ThemedScrollView.d.ts +16 -0
  224. package/lib/typescript/src/components/view/ThemedScrollView.d.ts.map +1 -1
  225. package/lib/typescript/src/components/view/ThemedView.d.ts +15 -0
  226. package/lib/typescript/src/components/view/ThemedView.d.ts.map +1 -1
  227. package/lib/typescript/src/hooks/button.d.ts +41 -0
  228. package/lib/typescript/src/hooks/button.d.ts.map +1 -1
  229. package/lib/typescript/src/hooks/list.d.ts +27 -0
  230. package/lib/typescript/src/hooks/list.d.ts.map +1 -1
  231. package/lib/typescript/src/hooks/overlay.d.ts +27 -0
  232. package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
  233. package/lib/typescript/src/hooks/react.d.ts +38 -0
  234. package/lib/typescript/src/hooks/react.d.ts.map +1 -1
  235. package/lib/typescript/src/hooks/reanimated.d.ts +10 -0
  236. package/lib/typescript/src/hooks/reanimated.d.ts.map +1 -1
  237. package/lib/typescript/src/hooks/separator.d.ts +16 -0
  238. package/lib/typescript/src/hooks/separator.d.ts.map +1 -1
  239. package/lib/typescript/src/hooks/style.d.ts +65 -0
  240. package/lib/typescript/src/hooks/style.d.ts.map +1 -1
  241. package/lib/typescript/src/hooks/switch.d.ts +20 -1
  242. package/lib/typescript/src/hooks/switch.d.ts.map +1 -1
  243. package/lib/typescript/src/hooks/theme.d.ts +82 -0
  244. package/lib/typescript/src/hooks/theme.d.ts.map +1 -1
  245. package/lib/typescript/src/hooks/view.d.ts +40 -2
  246. package/lib/typescript/src/hooks/view.d.ts.map +1 -1
  247. package/lib/typescript/src/types/accordion.d.ts +26 -0
  248. package/lib/typescript/src/types/accordion.d.ts.map +1 -1
  249. package/lib/typescript/src/types/button.d.ts +92 -0
  250. package/lib/typescript/src/types/button.d.ts.map +1 -1
  251. package/lib/typescript/src/types/icon.d.ts +43 -0
  252. package/lib/typescript/src/types/icon.d.ts.map +1 -1
  253. package/lib/typescript/src/types/list.d.ts +98 -1
  254. package/lib/typescript/src/types/list.d.ts.map +1 -1
  255. package/lib/typescript/src/types/loading.d.ts +38 -0
  256. package/lib/typescript/src/types/loading.d.ts.map +1 -1
  257. package/lib/typescript/src/types/overlay.d.ts +296 -1
  258. package/lib/typescript/src/types/overlay.d.ts.map +1 -1
  259. package/lib/typescript/src/types/provider.d.ts +21 -0
  260. package/lib/typescript/src/types/provider.d.ts.map +1 -1
  261. package/lib/typescript/src/types/react.d.ts +32 -0
  262. package/lib/typescript/src/types/react.d.ts.map +1 -1
  263. package/lib/typescript/src/types/reanimated.d.ts +32 -1
  264. package/lib/typescript/src/types/reanimated.d.ts.map +1 -1
  265. package/lib/typescript/src/types/separator.d.ts +26 -0
  266. package/lib/typescript/src/types/separator.d.ts.map +1 -1
  267. package/lib/typescript/src/types/slider.d.ts +88 -0
  268. package/lib/typescript/src/types/slider.d.ts.map +1 -1
  269. package/lib/typescript/src/types/style.d.ts +43 -0
  270. package/lib/typescript/src/types/style.d.ts.map +1 -1
  271. package/lib/typescript/src/types/switch.d.ts +50 -0
  272. package/lib/typescript/src/types/switch.d.ts.map +1 -1
  273. package/lib/typescript/src/types/text.d.ts +72 -0
  274. package/lib/typescript/src/types/text.d.ts.map +1 -1
  275. package/lib/typescript/src/types/theme.d.ts +111 -0
  276. package/lib/typescript/src/types/theme.d.ts.map +1 -1
  277. package/lib/typescript/src/types/view.d.ts +137 -0
  278. package/lib/typescript/src/types/view.d.ts.map +1 -1
  279. package/lib/typescript/src/utils/button/const.d.ts +27 -0
  280. package/lib/typescript/src/utils/button/const.d.ts.map +1 -1
  281. package/lib/typescript/src/utils/overlay/const.d.ts +100 -0
  282. package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
  283. package/lib/typescript/src/utils/overlay/func.d.ts +93 -0
  284. package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -1
  285. package/lib/typescript/src/utils/reanimated/func.d.ts +5 -1
  286. package/lib/typescript/src/utils/reanimated/func.d.ts.map +1 -1
  287. package/lib/typescript/src/utils/slider/const.d.ts +47 -0
  288. package/lib/typescript/src/utils/slider/const.d.ts.map +1 -1
  289. package/lib/typescript/src/utils/style/const.d.ts +14 -0
  290. package/lib/typescript/src/utils/style/const.d.ts.map +1 -1
  291. package/lib/typescript/src/utils/style/func.d.ts +95 -0
  292. package/lib/typescript/src/utils/style/func.d.ts.map +1 -1
  293. package/lib/typescript/src/utils/switch/const.d.ts +2 -1
  294. package/lib/typescript/src/utils/switch/const.d.ts.map +1 -1
  295. package/lib/typescript/src/utils/theme/const.d.ts +170 -0
  296. package/lib/typescript/src/utils/theme/const.d.ts.map +1 -1
  297. package/lib/typescript/src/utils/theme/restyle.d.ts +142 -26
  298. package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -1
  299. package/package.json +4 -4
  300. package/lib/module/components/accordion/ThemedAccordion.web.js +0 -245
  301. package/lib/module/components/accordion/ThemedAccordion.web.js.map +0 -1
  302. package/lib/module/components/overlay/actionSheet/ActionSheet.web.js +0 -76
  303. package/lib/module/components/overlay/actionSheet/ActionSheet.web.js.map +0 -1
  304. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js +0 -113
  305. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js.map +0 -1
  306. package/lib/module/components/slider/Slider.web.js +0 -595
  307. package/lib/module/components/slider/Slider.web.js.map +0 -1
  308. package/lib/module/components/slider/ThemedSlider.web.js +0 -206
  309. package/lib/module/components/slider/ThemedSlider.web.js.map +0 -1
  310. package/lib/typescript/src/components/accordion/ThemedAccordion.web.d.ts +0 -5
  311. package/lib/typescript/src/components/accordion/ThemedAccordion.web.d.ts.map +0 -1
  312. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts +0 -5
  313. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts.map +0 -1
  314. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts +0 -4
  315. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts.map +0 -1
  316. package/lib/typescript/src/components/slider/Slider.web.d.ts +0 -5
  317. package/lib/typescript/src/components/slider/Slider.web.d.ts.map +0 -1
  318. package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts +0 -5
  319. package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts.map +0 -1
@@ -1,69 +1,254 @@
1
1
  import type { ModalProps, ViewStyle } from 'react-native';
2
+ import type { SharedValue } from 'react-native-reanimated';
2
3
  import type { AlertButtonType, OverlayDismissResultType, ToastDuration, ToastType } from '../utils/overlay/const';
3
4
  import type { ThemedButtonProps } from './button';
4
5
  import type { ListAnimatedRefObj, ListProps } from './list';
5
6
  import type { CustomThemedLoadingProps } from './loading';
7
+ import type { SetState } from './react';
6
8
  import type { CustomAnimation } from './reanimated';
7
9
  import type { InsetsStyleConfig } from './style';
8
10
  import type { CustomThemedTextProps, ThemedTextProps } from './text';
9
- import type { AnimatedThemedViewProps, PropsWithRequiredChildren, ScrollViewAnimatedRefObj, ScrollViewProps, ThemedViewProps } from './view';
11
+ import type { AnimatedThemedViewProps, PropsWithRequiredChildren, ScrollViewAnimatedRefObj, ScrollViewProps, ThemedViewProps, ViewRefObj } from './view';
12
+ /**
13
+ * Base props for overlay components.
14
+ *
15
+ * Provides common functionality for dismissable overlay components like modals, toasts, and alerts.
16
+ */
10
17
  type OverlayProps = {
18
+ /** Callback invoked when the overlay is dismissed */
11
19
  onDismiss: () => void;
20
+ /** Whether the overlay can be dismissed by user interaction (e.g., tapping backdrop) */
12
21
  dismissable?: boolean;
13
22
  };
23
+ /**
24
+ * Base result type for overlay dismissal.
25
+ *
26
+ * All overlay dismiss results extend this type with a resultType discriminator.
27
+ */
14
28
  type OverlayDismissBaseResult = {
29
+ /** Type discriminator for the dismiss result */
15
30
  resultType: OverlayDismissResultType;
16
31
  };
32
+ /**
33
+ * Callback handler for overlay dismissal events.
34
+ *
35
+ * Generic type parameter T allows for type-safe dismiss result handling.
36
+ */
17
37
  export type OverlayOnDismiss<T> = (result: T) => void;
38
+ /**
39
+ * Result type when a toast is dismissed.
40
+ *
41
+ * Contains toast-specific information like type, text, and duration.
42
+ */
18
43
  type OverlayDismissToastResult = OverlayDismissBaseResult & Pick<ThemedToastProps, 'type' | 'text' | 'duration'> & {
19
44
  resultType: OverlayDismissResultType.Toast;
20
45
  };
46
+ /**
47
+ * Result type when an alert is dismissed.
48
+ *
49
+ * Contains alert-specific information including which button was pressed.
50
+ */
21
51
  export type OverlayDismissAlertResult = OverlayDismissBaseResult & Pick<AlertProps, 'title' | 'description'> & Pick<AlertButtonProps, 'text' | 'type'> & {
22
52
  resultType: OverlayDismissResultType.Alert;
23
53
  };
54
+ /**
55
+ * Result type when an action sheet is dismissed.
56
+ *
57
+ * Contains action sheet-specific information including the selected option.
58
+ *
59
+ * @internal
60
+ */
61
+ export type OverlayDismissActionSheetResult = OverlayDismissBaseResult & Pick<ActionSheetProps, 'title'> & Pick<ActionSheetOption, 'text'> & {
62
+ resultType: OverlayDismissResultType.ActionSheet;
63
+ };
64
+ /**
65
+ * Props for themed toast notification component.
66
+ *
67
+ * Toasts are temporary, non-blocking notification messages that appear on screen.
68
+ * Supports customizable appearance, duration, and dismiss behavior.
69
+ *
70
+ * @example
71
+ * ```tsx
72
+ * <ThemedToast
73
+ * type="success"
74
+ * text="Operation completed successfully"
75
+ * duration={3000}
76
+ * dismissable
77
+ * />
78
+ * ```
79
+ */
24
80
  export type ThemedToastProps = Omit<OverlayProps, 'onDismiss'> & Omit<AnimatedThemedViewProps, 'children'> & CustomThemedTextProps & Pick<InsetsStyleConfig, 'insetsPadding' | 'insetPaddingTop' | 'insetPaddingBottom' | 'insetPaddingLeft' | 'insetPaddingRight'> & {
81
+ /** Visual style of the toast (e.g., 'success', 'error', 'info') */
25
82
  type?: ToastType;
83
+ /** Duration in milliseconds before the toast auto-dismisses */
26
84
  duration?: ToastDuration;
85
+ /** Callback invoked when the toast is dismissed */
27
86
  onDismiss?: OverlayOnDismiss<OverlayDismissToastResult>;
28
87
  };
88
+ /**
89
+ * Props for themed modal component.
90
+ *
91
+ * Modals are full-screen or centered overlays that block interaction with the underlying content.
92
+ *
93
+ * @example
94
+ * ```tsx
95
+ * <ThemedModal
96
+ * visible={isVisible}
97
+ * dismissable
98
+ * onDismiss={handleDismiss}
99
+ * contentWrapProps={{ padding: 'lg' }}
100
+ * >
101
+ * <Text>Modal content</Text>
102
+ * </ThemedModal>
103
+ * ```
104
+ */
29
105
  export type ThemedModalProps = Partial<OverlayProps> & ModalProps & {
106
+ /** Props for the content container wrapper */
30
107
  contentWrapProps?: ThemedViewProps;
31
108
  };
109
+ /**
110
+ * Props for themed loading modal component.
111
+ *
112
+ * Displays a loading indicator in a modal overlay, optionally with descriptive text.
113
+ *
114
+ * @example
115
+ * ```tsx
116
+ * <ThemedLoadingModal
117
+ * visible={isLoading}
118
+ * loadingSize="large"
119
+ * text="Loading data..."
120
+ * />
121
+ * ```
122
+ */
32
123
  export type ThemedLoadingModalProps = Omit<ThemedModalProps, 'children'> & CustomThemedLoadingProps & Partial<CustomThemedTextProps>;
124
+ /**
125
+ * Context value for alert components.
126
+ *
127
+ * Provides shared state and callbacks for alert button interactions.
128
+ */
33
129
  export type AlertContextVal = Partial<Pick<AlertProps, 'buttonProps'> & {
130
+ /** Callback to dismiss the alert with optional result data */
34
131
  onDismiss: (result?: Partial<OverlayDismissAlertResult>) => void;
35
132
  }>;
133
+ /**
134
+ * Props for themed alert dialog component.
135
+ *
136
+ * Alerts are modal dialogs that display important information and require user acknowledgment.
137
+ * Supports customizable animations, multiple button groups, and styled content.
138
+ *
139
+ * @example
140
+ * ```tsx
141
+ * <Alert
142
+ * visible={showAlert}
143
+ * title="Confirm Action"
144
+ * description="Are you sure you want to continue?"
145
+ * buttons={[
146
+ * [{ text: 'Cancel', type: 'cancel' }],
147
+ * [{ text: 'Confirm', type: 'default' }]
148
+ * ]}
149
+ * onDismiss={handleAlertDismiss}
150
+ * />
151
+ * ```
152
+ */
36
153
  export type AlertProps = Omit<OverlayProps, 'onDismiss'> & Pick<ModalProps, 'visible'> & {
154
+ /** Custom animation for showing the alert */
37
155
  customShowAnimation?: CustomAnimation<1>;
156
+ /** Custom animation for hiding the alert */
38
157
  customHideAnimation?: CustomAnimation<0>;
158
+ /** Props for the alert container wrapper */
39
159
  wrapProps?: Omit<AnimatedThemedViewProps, 'children'>;
160
+ /** Alert title text (required) */
40
161
  title: string;
162
+ /** Props for styling the title text */
41
163
  titleTextProps?: Omit<CustomThemedTextProps, 'text'>;
164
+ /** Optional description/message text */
42
165
  description?: string;
166
+ /** Props for styling the description text */
43
167
  descriptionTextProps?: Omit<CustomThemedTextProps, 'text'>;
168
+ /** Array of button groups, each group is an array of buttons */
44
169
  buttons?: AlertButtonProps[][];
170
+ /** Props for the buttons container wrapper */
45
171
  buttonsWrapProps?: Omit<ThemedViewProps, 'children'>;
172
+ /** Default props applied to all buttons */
46
173
  buttonProps?: Omit<ThemedButtonProps, 'onPress' | 'text'>;
174
+ /** Callback invoked when the alert is dismissed */
47
175
  onDismiss?: OverlayOnDismiss<OverlayDismissAlertResult>;
48
176
  };
177
+ /**
178
+ * Props for alert button groups.
179
+ *
180
+ * Used to render button arrays within alert dialogs.
181
+ */
49
182
  export type AlertButtonsProps = Pick<AlertProps, 'buttons' | 'buttonsWrapProps'>;
183
+ /**
184
+ * Props for individual alert buttons.
185
+ *
186
+ * Defines the appearance and behavior of buttons within alert dialogs.
187
+ *
188
+ * @example
189
+ * ```tsx
190
+ * const button: AlertButtonProps = {
191
+ * text: 'OK',
192
+ * type: 'default',
193
+ * onPress: () => console.log('OK pressed')
194
+ * };
195
+ * ```
196
+ */
50
197
  export type AlertButtonProps = Pick<ThemedButtonProps, 'text'> & {
198
+ /** Type of button (e.g., 'default', 'cancel', 'destructive') */
51
199
  type?: AlertButtonType;
200
+ /** Callback invoked when the button is pressed */
52
201
  onPress?: ThemedButtonProps['onPress'];
202
+ /** Additional props for customizing the button appearance */
53
203
  props?: Omit<ThemedButtonProps, 'onPress' | 'text'>;
54
204
  };
205
+ /**
206
+ * Props for themed action sheet component.
207
+ *
208
+ * Action sheets are bottom-sheet style modals that present a set of options or custom content.
209
+ * Supports three modes: options list, custom children with ScrollView, or custom list component.
210
+ * Can be expandable to fill the screen height.
211
+ *
212
+ * @example
213
+ * ```tsx
214
+ * // With options
215
+ * <ActionSheet
216
+ * title="Choose Action"
217
+ * options={[
218
+ * { text: 'Edit', onPress: handleEdit },
219
+ * { text: 'Delete', onPress: handleDelete }
220
+ * ]}
221
+ * expandable
222
+ * />
223
+ *
224
+ * // With custom content
225
+ * <ActionSheet
226
+ * title="Details"
227
+ * scrollViewProps={{ ...scrollProps }}
228
+ * >
229
+ * <CustomContent />
230
+ * </ActionSheet>
231
+ * ```
232
+ */
55
233
  export type ActionSheetProps = (Omit<OverlayProps, 'onDismiss'> & Omit<ActionSheetWrapProps, 'children'> & ActionSheetHeaderProps & {
234
+ /** Optional title text for the action sheet header */
56
235
  title?: string;
236
+ /** Whether the action sheet can expand to full screen height */
57
237
  expandable?: boolean;
238
+ /** Callback invoked when the action sheet is dismissed */
58
239
  onDismiss?: OverlayOnDismiss<OverlayDismissActionSheetResult>;
59
240
  }) & ({
241
+ /** Array of selectable options */
60
242
  options: ActionSheetOptions;
243
+ /** Props for the options list component */
61
244
  optionListProps?: ActionSheetOptionListProps;
245
+ /** Props applied to each option item */
62
246
  optionListItemProps?: ActionSheetOptionListItemProps;
63
247
  scrollViewProps?: never;
64
248
  children?: never;
65
249
  listProps?: never;
66
250
  } | PropsWithRequiredChildren<{
251
+ /** Props for the scrollable content wrapper */
67
252
  scrollViewProps?: Omit<ScrollViewProps, 'ref'> & {
68
253
  ref?: ScrollViewAnimatedRefObj;
69
254
  };
@@ -72,6 +257,7 @@ export type ActionSheetProps = (Omit<OverlayProps, 'onDismiss'> & Omit<ActionShe
72
257
  optionListItemProps?: never;
73
258
  listProps?: never;
74
259
  }> | {
260
+ /** Props for custom list component implementation */
75
261
  listProps: Omit<ListProps<any>, 'ref'> & {
76
262
  ref?: ListAnimatedRefObj<any>;
77
263
  };
@@ -81,26 +267,135 @@ export type ActionSheetProps = (Omit<OverlayProps, 'onDismiss'> & Omit<ActionShe
81
267
  scrollViewProps?: never;
82
268
  children?: never;
83
269
  });
270
+ /**
271
+ * Props for action sheet wrapper component.
272
+ *
273
+ * Controls the visibility and container styling of the action sheet.
274
+ */
84
275
  export type ActionSheetWrapProps = PropsWithRequiredChildren<Pick<ModalProps, 'visible'> & {
276
+ /** Props for the animated wrapper view */
85
277
  wrapViewProps?: Omit<AnimatedThemedViewProps, 'children' | 'style'> & {
86
278
  style?: ViewStyle;
87
279
  };
88
280
  }>;
281
+ /**
282
+ * Props for action sheet header configuration.
283
+ *
284
+ * Controls the appearance of the action sheet header including title and close icon.
285
+ */
89
286
  export type ActionSheetHeaderProps = {
287
+ /** Whether to show the close icon button in the header */
90
288
  headerShowIcon?: boolean;
289
+ /** Props for the header container wrapper */
91
290
  headerWrapProps?: Omit<ThemedViewProps, 'children'>;
291
+ /** Props for the header title text */
92
292
  headerTextProps?: Omit<ThemedTextProps, 'children'>;
293
+ /** Props for the header close icon button */
93
294
  headerIconButtonProps?: Omit<ThemedButtonProps, 'onPress'>;
94
295
  };
296
+ /**
297
+ * Context value for action sheet components.
298
+ *
299
+ * Provides shared state and methods for action sheet behavior including expand/collapse,
300
+ * scrolling, and dismiss handling.
301
+ *
302
+ * @internal
303
+ */
304
+ export type ActionSheetContextVal = Pick<ActionSheetProps, 'title' | 'expandable' | 'onDismiss' | 'dismissable'> & {
305
+ /** Reference to the header view for layout calculations */
306
+ headerViewRef: ViewRefObj;
307
+ /** Reference to the scrollable content (either list or scroll view) */
308
+ contentAnimatedRefObj: ListAnimatedRefObj<any> | ScrollViewAnimatedRefObj;
309
+ /** Current height of the action sheet */
310
+ height: number;
311
+ /** Setter for updating the content height */
312
+ setContentHeight?: SetState<number>;
313
+ /** Shared value for Y-axis translation (pan gestures) */
314
+ translateYSharedVal: SharedValue<number>;
315
+ /** Shared value for the current height */
316
+ heightSharedVal: SharedValue<number>;
317
+ /** Shared value for the expandable full height */
318
+ expandableHeightSharedVal: SharedValue<number>;
319
+ /** Shared value for tracking content scroll offset */
320
+ contentOffsetSharedVal: SharedValue<number>;
321
+ };
322
+ /**
323
+ * Action sheet props variant with required options array.
324
+ *
325
+ * @internal
326
+ */
327
+ export type ActionSheetOptionsProps = ActionSheetProps & Required<Pick<ActionSheetProps, 'options'>>;
328
+ /**
329
+ * Props for the action sheet options list component.
330
+ *
331
+ * Extends list props with action sheet-specific configuration.
332
+ */
95
333
  export type ActionSheetOptionListProps = Omit<ListProps<ActionSheetOption>, 'ref' | 'data' | 'Item' | 'keyExtractor' | 'extraData'> & {
334
+ /** Reference to the options list */
96
335
  ref?: ActionSheetOptionListRefObj;
97
336
  };
337
+ /**
338
+ * Props for individual action sheet option items.
339
+ *
340
+ * Customizes the appearance of each option button in the list.
341
+ */
98
342
  export type ActionSheetOptionListItemProps = Omit<ThemedButtonProps, 'onPress' | 'text'>;
343
+ /**
344
+ * Reference type for action sheet option list.
345
+ */
99
346
  export type ActionSheetOptionListRefObj = ListAnimatedRefObj<ActionSheetOption>;
347
+ /**
348
+ * Extra data passed to action sheet option list items.
349
+ *
350
+ * @internal
351
+ */
352
+ export type ActionSheetOptionListExtraData = {
353
+ /** Props applied to each option item */
354
+ optionListItemProps?: ActionSheetOptionListItemProps;
355
+ /** Callback to dismiss the action sheet with selected option text */
356
+ onDismiss: (text?: string) => void;
357
+ };
358
+ /**
359
+ * Configuration for a single action sheet option.
360
+ *
361
+ * Defines the text, optional press handler, and styling for an option.
362
+ *
363
+ * @example
364
+ * ```tsx
365
+ * const option: ActionSheetOption = {
366
+ * text: 'Share',
367
+ * onPress: () => handleShare(),
368
+ * props: { backgroundColor: 'primary' }
369
+ * };
370
+ * ```
371
+ */
100
372
  export type ActionSheetOption = Partial<Pick<ThemedButtonProps, 'onPress'>> & {
373
+ /** Display text for the option */
101
374
  text: string;
375
+ /** Additional props for customizing the option button */
102
376
  props?: ActionSheetOptionListItemProps;
103
377
  };
378
+ /**
379
+ * Array of action sheet options.
380
+ */
104
381
  export type ActionSheetOptions = ActionSheetOption[];
382
+ /**
383
+ * Action sheet props variant with required children.
384
+ *
385
+ * @internal
386
+ */
387
+ export type ActionSheetScrollViewProps = ActionSheetProps & Required<Pick<ActionSheetProps, 'children'>>;
388
+ /**
389
+ * Action sheet props variant with required list props.
390
+ *
391
+ * @internal
392
+ */
393
+ export type ActionSheetListViewProps = ActionSheetProps & Required<Pick<ActionSheetProps, 'listProps'>>;
394
+ /**
395
+ * Reference type for action sheet list view.
396
+ *
397
+ * @internal
398
+ */
399
+ export type ActionSheetListViewListRefObj = ListAnimatedRefObj<any>;
105
400
  export {};
106
401
  //# sourceMappingURL=overlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/types/overlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EACxB,aAAa,EACb,SAAS,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAE1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,eAAe,EACf,eAAe,EAEhB,MAAM,QAAQ,CAAC;AAEhB,KAAK,YAAY,GAAG;IAClB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,wBAAwB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;AAEtD,KAAK,yBAAyB,GAAG,wBAAwB,GACvD,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,GAAG,UAA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ACH,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,EAAE,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,GACvD,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC,CAAC;AAE/C;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,GACrD,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAAC;AAEhD;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC"}
@@ -1,6 +1,27 @@
1
1
  import type { Theme } from './theme';
2
2
  import type { PropsWithRequiredChildren } from './view';
3
+ /**
4
+ * Props for the root ReactNativeTemplate providers wrapper.
5
+ *
6
+ * This component sets up all necessary providers (theme, etc.) for the UI library.
7
+ * Must wrap your application root to enable themed components.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * import { ReactNativeTemplateProviders } from '@jamadd/react-native-template-ui';
12
+ * import { theme } from './theme';
13
+ *
14
+ * function App() {
15
+ * return (
16
+ * <ReactNativeTemplateProviders theme={theme}>
17
+ * <YourApp />
18
+ * </ReactNativeTemplateProviders>
19
+ * );
20
+ * }
21
+ * ```
22
+ */
3
23
  export type ReactNativeTemplateProvidersProps = PropsWithRequiredChildren<{
24
+ /** Theme configuration object containing colors, spacing, and other design tokens */
4
25
  theme: Theme;
5
26
  }>;
6
27
  //# sourceMappingURL=provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../src/types/provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAExD,MAAM,MAAM,iCAAiC,GAAG,yBAAyB,CAAC;IACxE,KAAK,EAAE,KAAK,CAAC;CACd,CAAC,CAAC"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../src/types/provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAExD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,iCAAiC,GAAG,yBAAyB,CAAC;IACxE,qFAAqF;IACrF,KAAK,EAAE,KAAK,CAAC;CACd,CAAC,CAAC"}
@@ -1,6 +1,38 @@
1
1
  import type { Dispatch, SetStateAction } from 'react';
2
2
  import type { LayoutChangeEvent } from 'react-native';
3
+ /**
4
+ * Type for setTimeout return value.
5
+ *
6
+ * Used for storing and managing timeout IDs that can be cleared with clearTimeout.
7
+ */
3
8
  export type Timeout = ReturnType<typeof setTimeout>;
9
+ /**
10
+ * Type for React setState function.
11
+ *
12
+ * Generic setter function returned by useState hook, supporting both direct values
13
+ * and updater functions.
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * const [count, setCount]: [number, SetState<number>] = useState(0);
18
+ * setCount(5); // Direct value
19
+ * setCount(prev => prev + 1); // Updater function
20
+ * ```
21
+ */
4
22
  export type SetState<T> = Dispatch<SetStateAction<T>>;
23
+ /**
24
+ * Callback handler for layout change events.
25
+ *
26
+ * Invoked when a component's layout is measured or changes.
27
+ * Provides layout information like position and dimensions.
28
+ *
29
+ * @example
30
+ * ```tsx
31
+ * const handleLayout: OnLayout = (event) => {
32
+ * const { width, height } = event.nativeEvent.layout;
33
+ * console.log(`Size: ${width}x${height}`);
34
+ * };
35
+ * ```
36
+ */
5
37
  export type OnLayout = (event: LayoutChangeEvent) => void;
6
38
  //# sourceMappingURL=react.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../src/types/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtD,MAAM,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC"}
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../src/types/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC"}
@@ -1,5 +1,36 @@
1
1
  import type { SharedValue } from 'react-native-reanimated';
2
+ /**
3
+ * Animation state values.
4
+ *
5
+ * Binary animation states: 0 (hidden/collapsed/off) and 1 (visible/expanded/on).
6
+ */
2
7
  export type AnimationValue = 0 | 1;
8
+ /**
9
+ * Reanimated shared value for animation states.
10
+ *
11
+ * A shared value that holds animation state (0 or 1) for use in Reanimated animations.
12
+ */
3
13
  export type AnimationSharedValue = SharedValue<AnimationValue>;
4
- export type CustomAnimation<T = AnimationValue> = (sharedValue: AnimationSharedValue, toValue: T, animationCompletedCallback?: () => void) => void;
14
+ /**
15
+ * Custom animation function type.
16
+ *
17
+ * Allows implementing custom animation behaviors for components.
18
+ * The function receives a shared value, target value, and optional completion callback.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * const customAnimation: CustomAnimation = (sharedValue, toValue, onComplete) => {
23
+ * sharedValue.value = withTiming(toValue, { duration: 300 }, () => {
24
+ * runOnJS(onComplete)();
25
+ * });
26
+ * };
27
+ * ```
28
+ */
29
+ export type CustomAnimation<T = AnimationValue> = (
30
+ /** Shared value to animate */
31
+ sharedValue: AnimationSharedValue,
32
+ /** Target value for the animation */
33
+ toValue: T,
34
+ /** Optional callback invoked when animation completes */
35
+ animationCompletedCallback?: () => void) => void;
5
36
  //# sourceMappingURL=reanimated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reanimated.d.ts","sourceRoot":"","sources":["../../../../src/types/reanimated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,CAAC,CAAC;AAEnC,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC;AAE/D,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,cAAc,IAAI,CAChD,WAAW,EAAE,oBAAoB,EACjC,OAAO,EAAE,CAAC,EACV,0BAA0B,CAAC,EAAE,MAAM,IAAI,KACpC,IAAI,CAAC"}
1
+ {"version":3,"file":"reanimated.d.ts","sourceRoot":"","sources":["../../../../src/types/reanimated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,CAAC,CAAC;AAEnC;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC;AAE/D;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,cAAc,IAAI;AAChD,8BAA8B;AAC9B,WAAW,EAAE,oBAAoB;AACjC,qCAAqC;AACrC,OAAO,EAAE,CAAC;AACV,yDAAyD;AACzD,0BAA0B,CAAC,EAAE,MAAM,IAAI,KACpC,IAAI,CAAC"}
@@ -1,7 +1,33 @@
1
1
  import type { BorderSize } from '../utils/theme/const';
2
2
  import type { ThemeBackgroundColorProps, ThemeSpacingProps } from './theme';
3
+ /**
4
+ * Props for themed separator component.
5
+ *
6
+ * A separator is a visual divider line used to separate content sections.
7
+ * Can be horizontal (default) or vertical, with customizable size, color, and margins.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * // Horizontal separator
12
+ * <ThemedSeparator
13
+ * size="sm"
14
+ * backgroundColor="border"
15
+ * marginVertical="md"
16
+ * />
17
+ *
18
+ * // Vertical separator
19
+ * <ThemedSeparator
20
+ * vertical
21
+ * size={2}
22
+ * backgroundColor="divider"
23
+ * marginHorizontal="sm"
24
+ * />
25
+ * ```
26
+ */
3
27
  export type ThemedSeparatorProps = ThemeBackgroundColorProps & Pick<ThemeSpacingProps, 'margin' | 'marginVertical' | 'marginHorizontal' | 'marginTop' | 'marginBottom' | 'marginLeft' | 'marginRight' | 'marginStart' | 'marginEnd' | 'm' | 'my' | 'mx' | 'mt' | 'mb' | 'ml' | 'mr' | 'ms' | 'me'> & {
28
+ /** Thickness of the separator (predefined size or custom number) */
4
29
  size?: BorderSize | number;
30
+ /** Whether the separator is vertical (default is horizontal) */
5
31
  vertical?: boolean;
6
32
  };
7
33
  //# sourceMappingURL=separator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../../src/types/separator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5E,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,GAC1D,IAAI,CACF,iBAAiB,EACf,QAAQ,GACR,gBAAgB,GAChB,kBAAkB,GAClB,WAAW,GACX,cAAc,GACd,YAAY,GACZ,aAAa,GACb,aAAa,GACb,WAAW,GACX,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CACP,GAAG;IACF,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../../src/types/separator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,GAC1D,IAAI,CACF,iBAAiB,EACf,QAAQ,GACR,gBAAgB,GAChB,kBAAkB,GAClB,WAAW,GACX,cAAc,GACd,YAAY,GACZ,aAAa,GACb,aAAa,GACb,WAAW,GACX,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CACP,GAAG;IACF,oEAAoE;IACpE,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC3B,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}