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

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 (311) 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 +0 -1
  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 +0 -2
  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 +0 -2
  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 +0 -2
  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 +0 -2
  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 +0 -2
  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 +0 -3
  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 +0 -2
  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 +0 -2
  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 +0 -3
  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 +0 -2
  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 +0 -3
  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 +0 -3
  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 +0 -3
  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 +0 -8
  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 +0 -2
  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 +0 -2021
  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 +0 -1
  216. package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
  217. package/lib/typescript/src/components/view/Box.d.ts +0 -2071
  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/react.d.ts +38 -0
  232. package/lib/typescript/src/hooks/react.d.ts.map +1 -1
  233. package/lib/typescript/src/hooks/reanimated.d.ts +10 -0
  234. package/lib/typescript/src/hooks/reanimated.d.ts.map +1 -1
  235. package/lib/typescript/src/hooks/separator.d.ts +16 -0
  236. package/lib/typescript/src/hooks/separator.d.ts.map +1 -1
  237. package/lib/typescript/src/hooks/style.d.ts +65 -0
  238. package/lib/typescript/src/hooks/style.d.ts.map +1 -1
  239. package/lib/typescript/src/hooks/theme.d.ts +82 -0
  240. package/lib/typescript/src/hooks/theme.d.ts.map +1 -1
  241. package/lib/typescript/src/hooks/view.d.ts +40 -2
  242. package/lib/typescript/src/hooks/view.d.ts.map +1 -1
  243. package/lib/typescript/src/types/accordion.d.ts +26 -0
  244. package/lib/typescript/src/types/accordion.d.ts.map +1 -1
  245. package/lib/typescript/src/types/button.d.ts +92 -0
  246. package/lib/typescript/src/types/button.d.ts.map +1 -1
  247. package/lib/typescript/src/types/icon.d.ts +43 -0
  248. package/lib/typescript/src/types/icon.d.ts.map +1 -1
  249. package/lib/typescript/src/types/list.d.ts +84 -0
  250. package/lib/typescript/src/types/list.d.ts.map +1 -1
  251. package/lib/typescript/src/types/loading.d.ts +38 -0
  252. package/lib/typescript/src/types/loading.d.ts.map +1 -1
  253. package/lib/typescript/src/types/overlay.d.ts +222 -0
  254. package/lib/typescript/src/types/overlay.d.ts.map +1 -1
  255. package/lib/typescript/src/types/provider.d.ts +21 -0
  256. package/lib/typescript/src/types/provider.d.ts.map +1 -1
  257. package/lib/typescript/src/types/react.d.ts +32 -0
  258. package/lib/typescript/src/types/react.d.ts.map +1 -1
  259. package/lib/typescript/src/types/reanimated.d.ts +32 -1
  260. package/lib/typescript/src/types/reanimated.d.ts.map +1 -1
  261. package/lib/typescript/src/types/separator.d.ts +26 -0
  262. package/lib/typescript/src/types/separator.d.ts.map +1 -1
  263. package/lib/typescript/src/types/slider.d.ts +88 -0
  264. package/lib/typescript/src/types/slider.d.ts.map +1 -1
  265. package/lib/typescript/src/types/style.d.ts +43 -0
  266. package/lib/typescript/src/types/style.d.ts.map +1 -1
  267. package/lib/typescript/src/types/switch.d.ts +50 -0
  268. package/lib/typescript/src/types/switch.d.ts.map +1 -1
  269. package/lib/typescript/src/types/text.d.ts +72 -0
  270. package/lib/typescript/src/types/text.d.ts.map +1 -1
  271. package/lib/typescript/src/types/theme.d.ts +111 -0
  272. package/lib/typescript/src/types/theme.d.ts.map +1 -1
  273. package/lib/typescript/src/types/view.d.ts +137 -0
  274. package/lib/typescript/src/types/view.d.ts.map +1 -1
  275. package/lib/typescript/src/utils/button/const.d.ts +27 -0
  276. package/lib/typescript/src/utils/button/const.d.ts.map +1 -1
  277. package/lib/typescript/src/utils/overlay/const.d.ts +67 -0
  278. package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
  279. package/lib/typescript/src/utils/overlay/func.d.ts +93 -0
  280. package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -1
  281. package/lib/typescript/src/utils/slider/const.d.ts +47 -0
  282. package/lib/typescript/src/utils/slider/const.d.ts.map +1 -1
  283. package/lib/typescript/src/utils/style/const.d.ts +14 -0
  284. package/lib/typescript/src/utils/style/const.d.ts.map +1 -1
  285. package/lib/typescript/src/utils/style/func.d.ts +95 -0
  286. package/lib/typescript/src/utils/style/func.d.ts.map +1 -1
  287. package/lib/typescript/src/utils/theme/const.d.ts +170 -0
  288. package/lib/typescript/src/utils/theme/const.d.ts.map +1 -1
  289. package/lib/typescript/src/utils/theme/restyle.d.ts +1 -1977
  290. package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -1
  291. package/package.json +4 -4
  292. package/lib/module/components/accordion/ThemedAccordion.web.js +0 -245
  293. package/lib/module/components/accordion/ThemedAccordion.web.js.map +0 -1
  294. package/lib/module/components/overlay/actionSheet/ActionSheet.web.js +0 -76
  295. package/lib/module/components/overlay/actionSheet/ActionSheet.web.js.map +0 -1
  296. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js +0 -113
  297. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js.map +0 -1
  298. package/lib/module/components/slider/Slider.web.js +0 -595
  299. package/lib/module/components/slider/Slider.web.js.map +0 -1
  300. package/lib/module/components/slider/ThemedSlider.web.js +0 -206
  301. package/lib/module/components/slider/ThemedSlider.web.js.map +0 -1
  302. package/lib/typescript/src/components/accordion/ThemedAccordion.web.d.ts +0 -5
  303. package/lib/typescript/src/components/accordion/ThemedAccordion.web.d.ts.map +0 -1
  304. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts +0 -5
  305. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts.map +0 -1
  306. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts +0 -4
  307. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts.map +0 -1
  308. package/lib/typescript/src/components/slider/Slider.web.d.ts +0 -5
  309. package/lib/typescript/src/components/slider/Slider.web.d.ts.map +0 -1
  310. package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts +0 -5
  311. package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/Box.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAqB,CAAC;AAE/B,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/Box.tsx"],"names":[],"mappings":"AAWA,eAAe,GAAG,CAAC"}
@@ -1,5 +1,21 @@
1
1
  import { type FC } from 'react';
2
2
  import type { ThemedScreenWrapProps } from '../../types/view';
3
+ /**
4
+ * A themed screen wrapper component for full-screen layouts with lifecycle hooks.
5
+ * Provides a flex:1 container with safe area inset support and optional setup/cleanup effects.
6
+ * Ideal for wrapping entire screen content with consistent spacing and lifecycle management.
7
+ * @param props - Component props of type ThemedScreenWrapProps
8
+ * @returns JSX element rendering a full-screen themed container
9
+ * @example
10
+ * <ThemedScreenWrap
11
+ * insetTop={true}
12
+ * insetBottom={true}
13
+ * effectSetup={() => console.log('screen mounted')}
14
+ * effectCleanup={() => console.log('screen unmounted')}
15
+ * >
16
+ * <ThemedText>Screen content</ThemedText>
17
+ * </ThemedScreenWrap>
18
+ */
3
19
  declare const ThemedScreenWrap: FC<ThemedScreenWrapProps>;
4
20
  export default ThemedScreenWrap;
5
21
  //# sourceMappingURL=ThemedScreenWrap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemedScreenWrap.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedScreenWrap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAI9D,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAsC/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ThemedScreenWrap.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedScreenWrap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAG9D;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAmC/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,5 +1,19 @@
1
1
  import type { FC } from 'react';
2
2
  import type { ThemedScreenWrapProps } from '../../types/view';
3
+ /**
4
+ * A themed screen wrapper component for full-screen layouts on web platforms.
5
+ * Provides a height-constrained container with safe area inset support.
6
+ * Automatically adjusts to window dimensions for consistent web layout.
7
+ * @param props - Component props of type ThemedScreenWrapProps
8
+ * @returns JSX element rendering a full-screen themed container
9
+ * @example
10
+ * <ThemedScreenWrap
11
+ * insetTop={true}
12
+ * insetBottom={true}
13
+ * >
14
+ * <ThemedText>Screen content</ThemedText>
15
+ * </ThemedScreenWrap>
16
+ */
3
17
  declare const ThemedScreenWrap: FC<ThemedScreenWrapProps>;
4
18
  export default ThemedScreenWrap;
5
19
  //# sourceMappingURL=ThemedScreenWrap.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemedScreenWrap.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedScreenWrap.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAI9D,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA+B/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ThemedScreenWrap.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedScreenWrap.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAG9D;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAoC/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,5 +1,21 @@
1
1
  import type { FC } from 'react';
2
2
  import type { ThemedScrollViewProps } from '../../types/view';
3
+ /**
4
+ * A themed scroll view component with safe area inset support.
5
+ * Wraps React Native's ScrollView with theme-aware styling and automatic inset handling.
6
+ * Provides smooth scrolling with optional bottom padding for safe areas.
7
+ * @param props - Component props of type ThemedScrollViewProps
8
+ * @returns JSX element rendering a themed scrollable container
9
+ * @example
10
+ * <ThemedScrollView
11
+ * insetBottom={true}
12
+ * insetPaddingBottom="m"
13
+ * >
14
+ * <ThemedView>
15
+ * <ThemedText>Scrollable content</ThemedText>
16
+ * </ThemedView>
17
+ * </ThemedScrollView>
18
+ */
3
19
  declare const ThemedScrollView: FC<ThemedScrollViewProps>;
4
20
  export default ThemedScrollView;
5
21
  //# sourceMappingURL=ThemedScrollView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemedScrollView.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedScrollView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAI9D,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA2C/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ThemedScrollView.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedScrollView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAI9D;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA2C/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,5 +1,20 @@
1
1
  import type { FC } from 'react';
2
2
  import type { ThemedViewProps } from '../../types/view';
3
+ /**
4
+ * A themed view component that provides theme-aware container styling.
5
+ * Serves as the foundation for layout and composition with automatic theme integration.
6
+ * Supports all standard view props plus theme-based colors, spacing, and layout properties.
7
+ * @param props - Component props of type ThemedViewProps
8
+ * @returns JSX element rendering a themed view container
9
+ * @example
10
+ * <ThemedView
11
+ * backgroundColor="background"
12
+ * padding="l"
13
+ * flexDirection="row"
14
+ * >
15
+ * <ThemedText>Content</ThemedText>
16
+ * </ThemedView>
17
+ */
3
18
  declare const ThemedView: FC<ThemedViewProps>;
4
19
  export default ThemedView;
5
20
  //# sourceMappingURL=ThemedView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemedView.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAYnC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"ThemedView.d.ts","sourceRoot":"","sources":["../../../../../src/components/view/ThemedView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAYnC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,6 +1,47 @@
1
1
  import type { AnimatedThemedPressableProps, OnPressDelayConfig, PressableOnPress, ThemedPressableProps } from '../types/button';
2
+ /**
3
+ * Hook to wrap an onPress handler with debounce or throttle behavior.
4
+ * @param onPress - The press handler function to be delayed
5
+ * @param onPressDelayConfig - Configuration for delay type (debounce/throttle) and wait time
6
+ * @returns A memoized onPress handler with the configured delay behavior
7
+ * @example
8
+ * const delayedPress = useDelayedOnPress(
9
+ * () => console.log('Pressed'),
10
+ * { type: OnPressDelayType.Debounce, wait: 500 }
11
+ * );
12
+ */
2
13
  export declare function useDelayedOnPress(onPress: PressableOnPress | null, onPressDelayConfig?: OnPressDelayConfig): PressableOnPress;
14
+ /**
15
+ * Hook to create themed pressable props with restyle support, scale animation, and delayed press handling.
16
+ * @param props - Themed pressable properties including theme props, onPress, scaleRatio, and onPressDelayConfig
17
+ * @returns Object containing all pressable props with applied theme styles and behaviors
18
+ * @example
19
+ * const pressableProps = useThemedPressable({
20
+ * backgroundColor: 'themePri',
21
+ * padding: 'm',
22
+ * borderRadius: 'm',
23
+ * onPress: () => console.log('Pressed'),
24
+ * scaleRatio: ButtonScaleRatio.Small,
25
+ * onPressDelayConfig: { type: OnPressDelayType.Debounce, wait: 300 }
26
+ * });
27
+ */
3
28
  export declare function useThemedPressable({ onPress, scaleRatio, onPressDelayConfig, ...props }: ThemedPressableProps): ThemedPressableProps;
29
+ /**
30
+ * Hook to create animated themed pressable props with reanimated support and delayed press handling.
31
+ * @param props - Animated themed pressable properties including theme props, onPress, animatedStyle, and onPressDelayConfig
32
+ * @returns Object containing all animated pressable props with applied theme styles, animations, and behaviors
33
+ * @example
34
+ * const animatedStyle = useAnimatedStyle(() => ({
35
+ * opacity: interpolate(progress.value, [0, 1], [0.5, 1])
36
+ * }));
37
+ * const pressableProps = useAnimatedThemedPressable({
38
+ * backgroundColor: 'themePri',
39
+ * padding: 'm',
40
+ * animatedStyle,
41
+ * onPress: () => console.log('Pressed'),
42
+ * onPressDelayConfig: { type: OnPressDelayType.Throttle, wait: 1000 }
43
+ * });
44
+ */
4
45
  export declare function useAnimatedThemedPressable({ onPress, onPressDelayConfig, animatedStyle, ...props }: AnimatedThemedPressableProps): Omit<Omit<import("react-native-reanimated").AnimatedProps<Readonly<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>>>, "ref"> & {
5
46
  ref?: (import("react-native-reanimated").AnimatedRef | import("react").Ref<import("react-native").View> | import("react-native-reanimated").AnimatedRef<import("react").ForwardRefExoticComponent<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>>>) | undefined;
6
47
  }, "key">;
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/hooks/button.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,4BAA4B,EAC5B,kBAAkB,EAClB,gBAAgB,EAEhB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AASzB,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,gBAAgB,GAAG,IAAI,EAChC,kBAAkB,CAAC,EAAE,kBAAkB,oBAqDxC;AAgCD,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,UAAU,EACV,kBAAkB,EAClB,GAAG,KAAK,EACT,EAAE,oBAAoB,wBAetB;AAED,wBAAgB,0BAA0B,CAAC,EACzC,OAAO,EACP,kBAAkB,EAClB,aAAa,EACb,GAAG,KAAK,EACT,EAAE,4BAA4B;;UAmB9B"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/hooks/button.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,4BAA4B,EAC5B,kBAAkB,EAClB,gBAAgB,EAEhB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AASzB;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,gBAAgB,GAAG,IAAI,EAChC,kBAAkB,CAAC,EAAE,kBAAkB,oBAqDxC;AAiCD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,UAAU,EACV,kBAAkB,EAClB,GAAG,KAAK,EACT,EAAE,oBAAoB,wBAetB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,OAAO,EACP,kBAAkB,EAClB,aAAa,EACb,GAAG,KAAK,EACT,EAAE,4BAA4B;;UAmB9B"}
@@ -1,4 +1,31 @@
1
1
  import type { ListItemSeparatorComponent, ListItemSeparatorProps, ListRef } from '../types/list';
2
+ /**
3
+ * Hook to create a ref for a FlatList or SectionList component.
4
+ * @template T - The type of items in the list
5
+ * @returns A mutable ref object for accessing the list instance
6
+ * @example
7
+ * const listRef = useListRef<MyItemType>();
8
+ * <FlatList ref={listRef} />
9
+ * // Later: listRef.current?.scrollToEnd()
10
+ */
2
11
  export declare function useListRef<T>(): import("react").RefObject<ListRef<T> | null>;
12
+ /**
13
+ * Hook to create a customizable list item separator component with conditional rendering.
14
+ * @param props - Configuration for the separator appearance
15
+ * @param props.size - The size/thickness of the separator
16
+ * @param props.vertical - Whether the separator is vertical (default: false)
17
+ * @param props.backgroundColor - The background color of the separator
18
+ * @param props.style - Additional styles for the separator
19
+ * @param hideForLeadingItemTypes - Array of item type strings to hide separator after
20
+ * @param hideForTrailingItemTypes - Array of item type strings to hide separator before
21
+ * @returns A ListItemSeparatorComponent that renders conditionally based on adjacent items
22
+ * @example
23
+ * const ItemSeparator = useListItemSeparatorComponent(
24
+ * { size: BorderSize.S, backgroundColor: 'separator' },
25
+ * ['header'],
26
+ * ['footer']
27
+ * );
28
+ * <FlatList ItemSeparatorComponent={ItemSeparator} />
29
+ */
3
30
  export declare function useListItemSeparatorComponent(props?: ListItemSeparatorProps, hideForLeadingItemTypes?: string[], hideForTrailingItemTypes?: string[]): ListItemSeparatorComponent;
4
31
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,0BAA0B,EAC1B,sBAAsB,EACtB,OAAO,EACR,MAAM,eAAe,CAAC;AAGvB,wBAAgB,UAAU,CAAC,CAAC,kDAE3B;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,GAAE,sBAA2B,EAClC,uBAAuB,GAAE,MAAM,EAAO,EACtC,wBAAwB,GAAE,MAAM,EAAO,8BA0BxC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,0BAA0B,EAC1B,sBAAsB,EACtB,OAAO,EACR,MAAM,eAAe,CAAC;AAGvB;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,CAAC,kDAE3B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,6BAA6B,CAC3C,KAAK,GAAE,sBAA2B,EAClC,uBAAuB,GAAE,MAAM,EAAO,EACtC,wBAAwB,GAAE,MAAM,EAAO,8BA0BxC"}
@@ -1,11 +1,49 @@
1
+ /**
2
+ * Hook to manage a timeout with automatic cleanup.
3
+ * @returns Object containing timeoutRef and clearTimeoutRef function
4
+ * @returns timeoutRef - Ref to store the timeout ID
5
+ * @returns clearTimeoutRef - Function to clear the timeout
6
+ * @example
7
+ * const { timeoutRef, clearTimeoutRef } = useTimeout();
8
+ * timeoutRef.current = setTimeout(() => {
9
+ * console.log('Delayed action');
10
+ * }, 1000);
11
+ * // Cleanup happens automatically on unmount
12
+ */
1
13
  export declare function useTimeout(): {
2
14
  timeoutRef: import("react").RefObject<number | null>;
3
15
  clearTimeoutRef: () => void;
4
16
  };
17
+ /**
18
+ * Hook to manage an interval with automatic cleanup.
19
+ * @returns Object containing intervalRef and clearIntervalRef function
20
+ * @returns intervalRef - Ref to store the interval ID
21
+ * @returns clearIntervalRef - Function to clear the interval
22
+ * @example
23
+ * const { intervalRef, clearIntervalRef } = useInterval();
24
+ * intervalRef.current = setInterval(() => {
25
+ * console.log('Repeating action');
26
+ * }, 1000);
27
+ * // Cleanup happens automatically on unmount
28
+ */
5
29
  export declare function useInterval(): {
6
30
  intervalRef: import("react").RefObject<number | null>;
7
31
  clearIntervalRef: () => void;
8
32
  };
33
+ /**
34
+ * Hook to manage state with a deferred version for performance optimization.
35
+ * @template T - The type of the state value
36
+ * @param initialState - Initial state value
37
+ * @returns Object containing state, setState, and deferredState
38
+ * @returns state - The current state value
39
+ * @returns setState - Function to update the state
40
+ * @returns deferredState - Deferred version of state that updates after urgent updates
41
+ * @example
42
+ * const { state, setState, deferredState } = useDeferredState('');
43
+ * // Use state for input control, deferredState for expensive operations
44
+ * <TextInput value={state} onChangeText={setState} />
45
+ * <ExpensiveList filter={deferredState} />
46
+ */
9
47
  export declare function useDeferredState<T>(initialState?: T): {
10
48
  state: T | undefined;
11
49
  setState: import("react").Dispatch<import("react").SetStateAction<T | undefined>>;
@@ -1 +1 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../src/hooks/react.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU;;;EAWzB;AAED,wBAAgB,WAAW;;;EAW1B;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,YAAY,CAAC,EAAE,CAAC;;;;EAKnD"}
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../../src/hooks/react.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU;;;EAWzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW;;;EAW1B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,YAAY,CAAC,EAAE,CAAC;;;;EAKnD"}
@@ -1,3 +1,13 @@
1
1
  import type { AnimationValue } from '../types/reanimated';
2
+ /**
3
+ * Hook to create a shared value for animations initialized to 0.
4
+ * @returns A shared value initialized to 0, used for controlling animations
5
+ * @example
6
+ * const animValue = useAnimationSharedVal();
7
+ * const animatedStyle = useAnimatedStyle(() => ({
8
+ * opacity: animValue.value
9
+ * }));
10
+ * // Later: animValue.value = withTiming(1);
11
+ */
2
12
  export declare function useAnimationSharedVal(): import("react-native-reanimated").SharedValue<AnimationValue>;
3
13
  //# sourceMappingURL=reanimated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reanimated.d.ts","sourceRoot":"","sources":["../../../../src/hooks/reanimated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAAgB,qBAAqB,kEAEpC"}
1
+ {"version":3,"file":"reanimated.d.ts","sourceRoot":"","sources":["../../../../src/hooks/reanimated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,kEAEpC"}
@@ -1,5 +1,21 @@
1
1
  import type { ThemedSeparatorProps } from '../types/separator';
2
2
  import type { ThemeColors } from '../types/theme';
3
3
  import { BorderSize } from '../utils/theme/const';
4
+ /**
5
+ * Hook to create a themed separator element with customizable appearance.
6
+ * @param size - The thickness of the separator (default: BorderSize.S)
7
+ * @param vertical - Whether the separator is vertical (default: false)
8
+ * @param backgroundColor - The background color from theme colors (default: 'separator')
9
+ * @param style - Additional style properties to apply
10
+ * @returns A React element representing the separator
11
+ * @example
12
+ * const separator = useThemedSeparator(
13
+ * BorderSize.M,
14
+ * false,
15
+ * 'themePri',
16
+ * { marginVertical: 'm' }
17
+ * );
18
+ * // Use in JSX: {separator}
19
+ */
4
20
  export declare function useThemedSeparator(size?: BorderSize, vertical?: boolean, backgroundColor?: ThemeColors, style?: Omit<ThemedSeparatorProps, 'size' | 'vertical' | 'backgroundColor' | 'bg'>): import("react").FunctionComponentElement<ThemedSeparatorProps>;
5
21
  //# sourceMappingURL=separator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../../src/hooks/separator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKlD,wBAAgB,kBAAkB,CAChC,IAAI,aAAe,EACnB,QAAQ,UAAQ,EAChB,eAAe,GAAE,WAAyB,EAC1C,KAAK,GAAE,IAAI,CACT,oBAAoB,EACpB,MAAM,GAAG,UAAU,GAAG,iBAAiB,GAAG,IAAI,CAC1C,kEAaP"}
1
+ {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../../src/hooks/separator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKlD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,aAAe,EACnB,QAAQ,UAAQ,EAChB,eAAe,GAAE,WAAyB,EAC1C,KAAK,GAAE,IAAI,CACT,oBAAoB,EACpB,MAAM,GAAG,UAAU,GAAG,iBAAiB,GAAG,IAAI,CAC1C,kEAaP"}
@@ -1,11 +1,76 @@
1
1
  import { type ViewStyle } from 'react-native';
2
2
  import type { InsetsStyleConfig } from '../types/style';
3
3
  import { Orientation } from '../utils/style/const';
4
+ /**
5
+ * Hook to calculate padding styles based on safe area insets.
6
+ * @param config - Configuration object specifying which insets to apply and optional padding values
7
+ * @param config.insets - If true, applies all insets (top, bottom, left, right)
8
+ * @param config.insetTop - If true, applies top inset
9
+ * @param config.insetBottom - If true, applies bottom inset
10
+ * @param config.insetLeft - If true, applies left inset
11
+ * @param config.insetRight - If true, applies right inset
12
+ * @param config.insetsPadding - Additional padding to apply to all insets
13
+ * @param config.insetPaddingTop - Additional padding to apply to top inset
14
+ * @param config.insetPaddingBottom - Additional padding to apply to bottom inset
15
+ * @param config.insetPaddingLeft - Additional padding to apply to left inset
16
+ * @param config.insetPaddingRight - Additional padding to apply to right inset
17
+ * @returns ViewStyle object with calculated padding values for safe areas
18
+ * @example
19
+ * const insetsStyle = useInsetsStyle({
20
+ * insets: true,
21
+ * insetsPadding: 'm'
22
+ * });
23
+ * // Returns: { paddingTop: 44 + 16, paddingBottom: 34 + 16, ... }
24
+ */
4
25
  export declare function useInsetsStyle({ insets, insetTop, insetBottom, insetLeft, insetRight, insetsPadding, insetPaddingTop, insetPaddingBottom, insetPaddingLeft, insetPaddingRight, }: InsetsStyleConfig): Pick<ViewStyle, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft">;
26
+ /**
27
+ * Hook to get the window dimensions including width, height, scale, and fontScale.
28
+ * @returns Object containing window dimensions { width, height, scale, fontScale }
29
+ * @example
30
+ * const { width, height } = useWindowDimensions();
31
+ * console.log(`Screen size: ${width}x${height}`);
32
+ */
5
33
  export declare function useWindowDimensions(): import("react-native").ScaledSize;
34
+ /**
35
+ * Hook to get the current window width in pixels.
36
+ * @returns The width of the window in pixels
37
+ * @example
38
+ * const width = useWindowDimensionsWidth();
39
+ * console.log(`Window width: ${width}px`);
40
+ */
6
41
  export declare function useWindowDimensionsWidth(): number;
42
+ /**
43
+ * Hook to get the current window height in pixels.
44
+ * @returns The height of the window in pixels
45
+ * @example
46
+ * const height = useWindowDimensionsHeight();
47
+ * console.log(`Window height: ${height}px`);
48
+ */
7
49
  export declare function useWindowDimensionsHeight(): number;
50
+ /**
51
+ * Hook to get the pixel density scale of the device.
52
+ * @returns The scale factor (e.g., 2 for @2x, 3 for @3x displays)
53
+ * @example
54
+ * const scale = useWindowDimensionsScale();
55
+ * console.log(`Device scale: ${scale}x`);
56
+ */
8
57
  export declare function useWindowDimensionsScale(): number;
58
+ /**
59
+ * Hook to get the font scaling factor set by the user in device settings.
60
+ * @returns The font scale factor (1.0 is default, >1.0 means larger text is enabled)
61
+ * @example
62
+ * const fontScale = useWindowDimensionsFontScale();
63
+ * const adjustedFontSize = 16 * fontScale;
64
+ */
9
65
  export declare function useWindowDimensionsFontScale(): number;
66
+ /**
67
+ * Hook to determine the current device orientation.
68
+ * @returns The current orientation ('portrait' or 'landscape')
69
+ * @example
70
+ * const orientation = useOrientation();
71
+ * if (orientation === Orientation.Landscape) {
72
+ * // Render landscape layout
73
+ * }
74
+ */
10
75
  export declare function useOrientation(): Orientation;
11
76
  //# sourceMappingURL=style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/hooks/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,GAClB,EAAE,iBAAiB,oFA6BnB;AAED,wBAAgB,mBAAmB,sCAElC;AAED,wBAAgB,wBAAwB,WAEvC;AAED,wBAAgB,yBAAyB,WAExC;AAED,wBAAgB,wBAAwB,WAEvC;AAED,wBAAgB,4BAA4B,WAE3C;AAED,wBAAgB,cAAc,gBAO7B"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/hooks/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,GAClB,EAAE,iBAAiB,oFA6BnB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,sCAElC;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,WAEvC;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,WAExC;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,WAEvC;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,WAE3C;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,gBAO7B"}
@@ -1,16 +1,98 @@
1
1
  import { type PropValue, type ResponsiveValue } from '@shopify/restyle';
2
2
  import { type ColorSchemeName } from 'react-native';
3
3
  import type { Theme, ThemeBreakpoints } from '../types/theme';
4
+ /**
5
+ * Hook to access the current theme object.
6
+ * @returns The current theme configuration including colors, spacing, breakpoints, etc.
7
+ * @example
8
+ * const theme = useTheme();
9
+ * console.log(theme.colors.themePri);
10
+ */
4
11
  export declare function useTheme(): Theme;
12
+ /**
13
+ * Hook to access the theme's color palette.
14
+ * @returns Object containing all theme colors (themePri, themeSec, background, text, etc.).
15
+ * @example
16
+ * const colors = useThemeColors();
17
+ * console.log(colors.themePri); // '#7ccf6b'
18
+ */
5
19
  export declare function useThemeColors(): Theme['colors'];
20
+ /**
21
+ * Hook to access the theme's spacing scale.
22
+ * @returns Object containing spacing values (none, xxxs, xxs, xs, s, m, l, xl, xxl, xxxl).
23
+ * @example
24
+ * const spacing = useThemeSpacing();
25
+ * console.log(spacing.m); // 16
26
+ */
6
27
  export declare function useThemeSpacing(): Theme['spacing'];
28
+ /**
29
+ * Hook to access the theme's responsive breakpoints.
30
+ * @returns Object containing breakpoint values (smallPhone, phone, smallTablet, tablet, desktop).
31
+ * @example
32
+ * const breakpoints = useThemeBreakpoints();
33
+ * console.log(breakpoints.tablet); // 900
34
+ */
7
35
  export declare function useThemeBreakpoints(): Theme['breakpoints'];
36
+ /**
37
+ * Hook to resolve a responsive prop value based on the current breakpoint.
38
+ * @template T - The type of the prop value
39
+ * @param propValue - A responsive value object with breakpoint keys
40
+ * @returns The resolved value for the current breakpoint
41
+ * @example
42
+ * const fontSize = useThemeBreakpointValues({ phone: 14, tablet: 16, desktop: 18 });
43
+ */
8
44
  export declare function useThemeBreakpointValues<T extends PropValue>(propValue: ResponsiveValue<T, Theme['breakpoints']>): T | undefined;
45
+ /**
46
+ * Hook to get the current active breakpoint name.
47
+ * @returns The name of the current breakpoint ('smallPhone' | 'phone' | 'smallTablet' | 'tablet' | 'desktop')
48
+ * @example
49
+ * const breakpoint = useThemeBreakpoint();
50
+ * if (breakpoint === 'phone') {
51
+ * // Render mobile layout
52
+ * }
53
+ */
9
54
  export declare function useThemeBreakpoint(): ThemeBreakpoints;
55
+ /**
56
+ * Hook to access the theme's z-index scale.
57
+ * @returns Object containing z-index values (base, bottom, middle, top).
58
+ * @example
59
+ * const zIndices = useThemeZIndices();
60
+ * console.log(zIndices.top); // 3
61
+ */
10
62
  export declare function useThemeZIndices(): Theme['zIndices'];
63
+ /**
64
+ * Hook to access the theme's border radius scale.
65
+ * @returns Object containing border radius values (none, s, m, l, round).
66
+ * @example
67
+ * const borderRadii = useThemeBorderRadii();
68
+ * console.log(borderRadii.m); // 24
69
+ */
11
70
  export declare function useThemeBorderRadii(): Theme['borderRadii'];
71
+ /**
72
+ * Hook to access the theme's text style variants.
73
+ * @returns Object containing text variant definitions (textXS, textS, textM, textL, textXL and their bold versions).
74
+ * @example
75
+ * const textVariants = useThemeTextVariants();
76
+ * console.log(textVariants.textM);
77
+ */
12
78
  export declare function useThemeTextVariants(): Theme['textVariants'];
79
+ /**
80
+ * Hook to determine if the current color scheme is dark mode.
81
+ * @param overrideColorScheme - Optional color scheme to override the system's color scheme
82
+ * @returns True if the color scheme is 'dark', false otherwise
83
+ * @example
84
+ * const isDark = useIsDarkColorScheme();
85
+ * const backgroundColor = isDark ? '#000' : '#fff';
86
+ */
13
87
  export declare function useIsDarkColorScheme(overrideColorScheme?: ColorSchemeName): boolean;
88
+ /**
89
+ * Hook to get the appropriate theme (light or dark) based on the current color scheme.
90
+ * @param overrideColorScheme - Optional color scheme to override the system's color scheme
91
+ * @returns The dark theme if in dark mode, otherwise the light theme
92
+ * @example
93
+ * const theme = useColorSchemeTheme();
94
+ * // Returns darkTheme or lightTheme based on system preference
95
+ */
14
96
  export declare function useColorSchemeTheme(overrideColorScheme?: ColorSchemeName): {
15
97
  colors: {
16
98
  transparent: import("..").Palette;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/hooks/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAG9D,wBAAgB,QAAQ,IAAI,KAAK,CAEhC;AAED,wBAAgB,cAAc,IAAI,KAAK,CAAC,QAAQ,CAAC,CAEhD;AAED,wBAAgB,eAAe,IAAI,KAAK,CAAC,SAAS,CAAC,CAElD;AAED,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,aAAa,CAAC,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,SAAS,EAC1D,SAAS,EAAE,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,iBAGpD;AAED,wBAAgB,kBAAkB,IASkB,gBAAgB,CACnE;AAED,wBAAgB,gBAAgB,IAAI,KAAK,CAAC,UAAU,CAAC,CAEpD;AAED,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,aAAa,CAAC,CAE1D;AAED,wBAAgB,oBAAoB,IAAI,KAAK,CAAC,cAAc,CAAC,CAE5D;AAED,wBAAgB,oBAAoB,CAAC,mBAAmB,CAAC,EAAE,eAAe,WAIzE;AAED,wBAAgB,mBAAmB,CAAC,mBAAmB,CAAC,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAExE"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/hooks/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAG9D;;;;;;GAMG;AACH,wBAAgB,QAAQ,IAAI,KAAK,CAEhC;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,KAAK,CAAC,QAAQ,CAAC,CAEhD;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,IAAI,KAAK,CAAC,SAAS,CAAC,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,aAAa,CAAC,CAE1D;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,SAAS,EAC1D,SAAS,EAAE,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,iBAGpD;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IASkB,gBAAgB,CACnE;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,IAAI,KAAK,CAAC,UAAU,CAAC,CAEpD;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,IAAI,KAAK,CAAC,aAAa,CAAC,CAE1D;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,IAAI,KAAK,CAAC,cAAc,CAAC,CAE5D;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,mBAAmB,CAAC,EAAE,eAAe,WAIzE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,mBAAmB,CAAC,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAExE"}
@@ -1,7 +1,45 @@
1
- import type { View } from 'react-native';
2
- import type { AnimatedThemedViewProps } from '../types/view';
1
+ import type { View, ViewStyle } from 'react-native';
2
+ import type { InsetsStyleConfig } from '../types/style';
3
+ import type { AnimatedThemedViewProps, ThemedScreenWrapProps } from '../types/view';
4
+ /**
5
+ * Hook to create a ref for a View component.
6
+ * @returns A mutable ref object for accessing the View instance
7
+ * @example
8
+ * const viewRef = useViewRef();
9
+ * <View ref={viewRef} />
10
+ * // Later: viewRef.current?.measure(...)
11
+ */
3
12
  export declare function useViewRef(): import("react").RefObject<View | null>;
13
+ /**
14
+ * Hook to create animated themed view props with reanimated support.
15
+ * @param props - Animated themed view properties including theme props and animatedStyle
16
+ * @param props.animatedStyle - Reanimated style object to apply to the view
17
+ * @returns Object containing all animated view props with applied theme styles and animations
18
+ * @example
19
+ * const animatedStyle = useAnimatedStyle(() => ({
20
+ * transform: [{ translateX: progress.value * 100 }]
21
+ * }));
22
+ * const viewProps = useAnimatedThemedView({
23
+ * backgroundColor: 'themePri',
24
+ * padding: 'm',
25
+ * borderRadius: 'm',
26
+ * animatedStyle
27
+ * });
28
+ */
4
29
  export declare function useAnimatedThemedView({ animatedStyle, ...props }: AnimatedThemedViewProps): Omit<import("react-native-reanimated").AnimatedProps<Readonly<import("react-native").ViewProps>>, "ref"> & {
5
30
  ref?: (import("react-native-reanimated").AnimatedRef | import("react").Ref<View> | import("react-native-reanimated").AnimatedRef<typeof View>) | undefined;
6
31
  };
32
+ /**
33
+ * Hook to create themed screen wrap styles with safe area inset support and effect management.
34
+ * @param props - Themed screen wrap properties including effect setup/cleanup and inset styles
35
+ * @returns Style object combining themed screen wrap styles with calculated inset styles
36
+ * @example
37
+ * const style = useThemedScreenWrap({
38
+ * effectSetup: () => console.log('Mounted'),
39
+ * effectCleanup: () => console.log('Unmounted'),
40
+ * insets: true,
41
+ * insetPaddingTop: 'm',
42
+ * });
43
+ */
44
+ export declare function useThemedScreenWrap({ effectSetup, effectCleanup, effectDependencies, style: themedScreenWrapStyle, insets, insetTop, insetBottom, insetLeft, insetRight, insetsPadding, insetPaddingTop, insetPaddingBottom, insetPaddingLeft, insetPaddingRight, }: Pick<ThemedScreenWrapProps, 'effectSetup' | 'effectCleanup' | 'effectDependencies' | 'style' | keyof InsetsStyleConfig>): import("react-native").StyleProp<ViewStyle>;
7
45
  //# sourceMappingURL=view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../src/hooks/view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,uBAAuB,EAAqB,MAAM,eAAe,CAAC;AAGhF,wBAAgB,UAAU,2CAEzB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,aAAa,EACb,GAAG,KAAK,EACT,EAAE,uBAAuB;;EAczB"}
1
+ {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../src/hooks/view.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EACV,uBAAuB,EAEvB,qBAAqB,EACtB,MAAM,eAAe,CAAC;AAKvB;;;;;;;GAOG;AACH,wBAAgB,UAAU,2CAEzB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,aAAa,EACb,GAAG,KAAK,EACT,EAAE,uBAAuB;;EAczB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,aAAa,EACb,kBAAuB,EACvB,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EACN,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,GAClB,EAAE,IAAI,CACL,qBAAqB,EACnB,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,OAAO,GACP,MAAM,iBAAiB,CAC1B,+CAoBA"}
@@ -4,13 +4,39 @@ import type { CustomThemedIconProps } from './icon';
4
4
  import type { CustomThemedTextProps } from './text';
5
5
  import type { ThemeColors } from './theme';
6
6
  import type { AnimatedThemedViewProps, PropsWithRequiredChildren, ThemedViewProps } from './view';
7
+ /**
8
+ * Props for ThemedAccordion component.
9
+ *
10
+ * An accordion component that can expand and collapse content with animated transitions.
11
+ * Supports customizable header text, icons, borders, and content areas.
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <ThemedAccordion
16
+ * text="Section Title"
17
+ * iconNameOpened="chevron-up"
18
+ * iconNameClosed="chevron-down"
19
+ * borderWidth="sm"
20
+ * borderColor="border"
21
+ * >
22
+ * <Text>Accordion content goes here</Text>
23
+ * </ThemedAccordion>
24
+ * ```
25
+ */
7
26
  export type ThemedAccordionProps = PropsWithRequiredChildren<Partial<CustomThemedTextProps> & Omit<CustomThemedIconProps, 'iconName'> & {
27
+ /** Border width for the accordion container */
8
28
  borderWidth?: BorderSize;
29
+ /** Border color from theme colors */
9
30
  borderColor?: ThemeColors;
31
+ /** Props for the outer animated container wrapper */
10
32
  wrapProps?: AnimatedThemedViewProps;
33
+ /** Props for the pressable header area that toggles the accordion */
11
34
  headerWrapProps?: ThemedPressableProps;
35
+ /** Icon name to display when the accordion is opened/expanded */
12
36
  iconNameOpened?: CustomThemedIconProps['iconName'];
37
+ /** Icon name to display when the accordion is closed/collapsed */
13
38
  iconNameClosed?: CustomThemedIconProps['iconName'];
39
+ /** Props for the content container wrapper */
14
40
  contentWrapProps?: ThemedViewProps;
15
41
  }>;
16
42
  //# sourceMappingURL=accordion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../../src/types/accordion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,eAAe,EAChB,MAAM,QAAQ,CAAC;AAEhB,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAC1D,OAAO,CAAC,qBAAqB,CAAC,GAC5B,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,GAAG;IACxC,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,cAAc,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACnD,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC,CACJ,CAAC"}
1
+ {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../../src/types/accordion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,eAAe,EAChB,MAAM,QAAQ,CAAC;AAEhB;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAC1D,OAAO,CAAC,qBAAqB,CAAC,GAC5B,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,GAAG;IACxC,+CAA+C;IAC/C,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,qCAAqC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,qDAAqD;IACrD,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,qEAAqE;IACrE,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,iEAAiE;IACjE,cAAc,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACnD,kEAAkE;IAClE,cAAc,CAAC,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IACnD,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC,CACJ,CAAC"}