@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
@@ -5,28 +5,165 @@ import type { AnimatedRef } from 'react-native-reanimated';
5
5
  import type AnimatedView from '../components/view/AnimatedView';
6
6
  import type { InsetsStyleConfig } from './style';
7
7
  import type { Theme } from './theme';
8
+ /**
9
+ * RefObject for a React Native View component.
10
+ *
11
+ * Used to store and access view references in React components.
12
+ */
8
13
  export type ViewRefObj = RefObject<View | null>;
14
+ /**
15
+ * RefObject for a React Native ScrollView component.
16
+ *
17
+ * Used to store and access scroll view references for programmatic scrolling.
18
+ */
9
19
  export type ScrollViewRefObj = RefObject<ScrollView | null>;
20
+ /**
21
+ * Animated RefObject for a ScrollView component.
22
+ *
23
+ * Used with Reanimated for animated scroll operations and gesture handling.
24
+ */
10
25
  export type ScrollViewAnimatedRefObj = AnimatedRef<ScrollView>;
26
+ /**
27
+ * Callback handler for scroll events.
28
+ *
29
+ * Invoked when a ScrollView is scrolled, providing scroll position and metrics.
30
+ *
31
+ * @example
32
+ * ```tsx
33
+ * const handleScroll: OnScroll = (event) => {
34
+ * const offsetY = event.nativeEvent.contentOffset.y;
35
+ * console.log(`Scrolled to: ${offsetY}`);
36
+ * };
37
+ * ```
38
+ */
11
39
  export type OnScroll = (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
40
+ /**
41
+ * Callback handler for content size changes.
42
+ *
43
+ * Invoked when a ScrollView's content dimensions change.
44
+ *
45
+ * @example
46
+ * ```tsx
47
+ * const handleContentSizeChange: OnContentSizeChange = (width, height) => {
48
+ * console.log(`Content size: ${width}x${height}`);
49
+ * };
50
+ * ```
51
+ */
12
52
  export type OnContentSizeChange = (width: number, height: number) => void;
53
+ /**
54
+ * Props for themed view component.
55
+ *
56
+ * Combines React Native ViewProps with Restyle theme-based styling capabilities.
57
+ * The foundation for most container components in the library.
58
+ *
59
+ * @example
60
+ * ```tsx
61
+ * <ThemedView
62
+ * padding="md"
63
+ * backgroundColor="surface"
64
+ * borderRadius="lg"
65
+ * >
66
+ * <Text>Content</Text>
67
+ * </ThemedView>
68
+ * ```
69
+ */
13
70
  export type ThemedViewProps = ViewProps & BoxProps<Theme> & {
71
+ /** Reference to the underlying View component */
14
72
  ref?: ViewRefObj;
15
73
  };
74
+ /**
75
+ * Props for the AnimatedView component.
76
+ *
77
+ * Inferred from the AnimatedView component implementation for Reanimated support.
78
+ */
16
79
  export type AnimatedViewProps = ComponentProps<typeof AnimatedView>;
80
+ /**
81
+ * Themed view with Reanimated animation support.
82
+ *
83
+ * Merges themed view capabilities with Reanimated animations for complex interactions.
84
+ *
85
+ * @example
86
+ * ```tsx
87
+ * <AnimatedThemedView
88
+ * padding="md"
89
+ * animatedStyle={animatedStyles}
90
+ * entering={FadeIn}
91
+ * >
92
+ * <Text>Animated Content</Text>
93
+ * </AnimatedThemedView>
94
+ * ```
95
+ */
17
96
  export type AnimatedThemedViewProps = Omit<ThemedViewProps, 'ref'> & Omit<AnimatedViewProps, 'key' | 'style'> & {
97
+ /** Animated style object for Reanimated animations */
18
98
  animatedStyle?: AnimatedViewProps['style'];
19
99
  };
100
+ /**
101
+ * Props for themed screen wrapper component.
102
+ *
103
+ * Extends themed view with safe area inset support and lifecycle hooks.
104
+ * Typically used as the root container for screen components.
105
+ *
106
+ * @example
107
+ * ```tsx
108
+ * <ThemedScreenWrap
109
+ * insets
110
+ * insetsPadding="md"
111
+ * effectSetup={setupAnalytics}
112
+ * effectCleanup={cleanupAnalytics}
113
+ * >
114
+ * <ScreenContent />
115
+ * </ThemedScreenWrap>
116
+ * ```
117
+ */
20
118
  export type ThemedScreenWrapProps = ThemedViewProps & InsetsStyleConfig & {
119
+ /** Setup function called in useEffect on mount */
21
120
  effectSetup?: () => void;
121
+ /** Cleanup function called in useEffect on unmount */
22
122
  effectCleanup?: () => void;
123
+ /** Dependency array for the effect (like useEffect deps) */
23
124
  effectDependencies?: DependencyList;
24
125
  };
126
+ /**
127
+ * Props for ScrollView component with inset support.
128
+ *
129
+ * Extends React Native ScrollViewProps with safe area inset configuration.
130
+ */
25
131
  export type ScrollViewProps = RNScrollViewProps & InsetsStyleConfig & {
132
+ /** Reference to the ScrollView component */
26
133
  ref?: ScrollViewRefObj;
27
134
  };
135
+ /**
136
+ * Themed ScrollView component props.
137
+ *
138
+ * Combines ScrollView functionality with theme-based styling capabilities.
139
+ *
140
+ * @example
141
+ * ```tsx
142
+ * <ThemedScrollView
143
+ * padding="md"
144
+ * insets
145
+ * showsVerticalScrollIndicator={false}
146
+ * >
147
+ * <Content />
148
+ * </ThemedScrollView>
149
+ * ```
150
+ */
28
151
  export type ThemedScrollViewProps = ScrollViewProps & Omit<ThemedViewProps, 'ref'>;
152
+ /**
153
+ * Props with required children.
154
+ *
155
+ * Utility type that ensures children prop is non-nullable.
156
+ * Useful for components that must have children content.
157
+ *
158
+ * @example
159
+ * ```tsx
160
+ * type ButtonProps = PropsWithRequiredChildren<{
161
+ * onPress: () => void;
162
+ * }>;
163
+ * ```
164
+ */
29
165
  export type PropsWithRequiredChildren<P = unknown> = P & {
166
+ /** Required non-null children */
30
167
  children: NonNullable<ReactNode>;
31
168
  };
32
169
  //# sourceMappingURL=view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../src/types/view.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,SAAS,EACT,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,IAAI,iBAAiB,EACpC,UAAU,EACV,IAAI,EACJ,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,YAAY,MAAM,iCAAiC,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;AAE5D,M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YAAY,CAAC,CAAC;AAEpE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,GAChE,IAAI,CAAC,iBAAiB,EAAE,KAAK,GAAG,OAAO,CAAC,GAAG;IACzC,sDAAsD;IACtD,aAAa,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;CAC5C,CAAC;AAEJ;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,qBAAqB,GAAG,eAAe,GACjD,iBAAiB,GAAG;IAClB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,cAAc,CAAC;CACrC,CAAC;AAEJ;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAC7C,iBAAiB,GAAG;IAClB,4CAA4C;IAC5C,GAAG,CAAC,EAAE,gBAAgB,CAAC;CACxB,CAAC;AAEJ;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,qBAAqB,GAAG,eAAe,GACjD,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;AAE/B;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,yBAAyB,CAAC,CAAC,GAAG,OAAO,IAAI,CAAC,GAAG;IACvD,iCAAiC;IACjC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CAClC,CAAC"}
@@ -1,10 +1,37 @@
1
+ /**
2
+ * Scale ratios applied to buttons during press animations.
3
+ * These values determine how much a button shrinks when pressed, creating visual feedback.
4
+ *
5
+ * @example
6
+ * ```tsx
7
+ * <Button scaleRatio={ButtonScaleRatio.Square}>
8
+ * Press Me
9
+ * </Button>
10
+ * ```
11
+ */
1
12
  export declare enum ButtonScaleRatio {
13
+ /** Scale to 90% - suitable for square or circular buttons */
2
14
  Square = 0.9,
15
+ /** Scale to 98% - subtle effect for rectangular buttons */
3
16
  Rectangle = 0.98,
17
+ /** No scaling animation */
4
18
  None = 1
5
19
  }
20
+ /**
21
+ * Delay strategies for handling rapid button press events.
22
+ * Controls how multiple press events are processed over time.
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * <Button onPressDelayConfig={{ type: OnPressDelayType.Throttle, delay: 1000 }}>
27
+ * Submit
28
+ * </Button>
29
+ * ```
30
+ */
6
31
  export declare enum OnPressDelayType {
32
+ /** Throttle - Execute the first press, then ignore subsequent presses for the delay period */
7
33
  Throttle = 0,
34
+ /** Debounce - Wait for the delay period after the last press before executing */
8
35
  Debounce = 1
9
36
  }
10
37
  //# sourceMappingURL=const.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/button/const.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,MAAM,MAAM;IACZ,SAAS,OAAO;IAChB,IAAI,IAAI;CACT;AAED,oBAAY,gBAAgB;IAC1B,QAAQ,IAAA;IACR,QAAQ,IAAA;CACT"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/button/const.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,oBAAY,gBAAgB;IAC1B,6DAA6D;IAC7D,MAAM,MAAM;IACZ,2DAA2D;IAC3D,SAAS,OAAO;IAChB,2BAA2B;IAC3B,IAAI,IAAI;CACT;AAED;;;;;;;;;;GAUG;AACH,oBAAY,gBAAgB;IAC1B,8FAA8F;IAC9F,QAAQ,IAAA;IACR,iFAAiF;IACjF,QAAQ,IAAA;CACT"}
@@ -1,24 +1,124 @@
1
+ import { IconSize } from '@jamadd/react-native-template-icons';
2
+ import type { ActionSheetContextVal } from '../../types/overlay';
3
+ import type { ThemeSpacing, ThemeTextVariants } from '../../types/theme';
4
+ /** @internal */
5
+ export declare const overlayMaxWidthPercent = "80%";
6
+ /**
7
+ * Types of overlay components that can be dismissed.
8
+ * Used to identify which overlay component triggered a dismiss result.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * const result = {
13
+ * type: OverlayDismissResultType.Alert,
14
+ * text: 'User cancelled'
15
+ * };
16
+ * ```
17
+ */
1
18
  export declare enum OverlayDismissResultType {
19
+ /** Toast notification overlay */
2
20
  Toast = "toast",
21
+ /** Alert dialog overlay */
3
22
  Alert = "alert",
23
+ /** Action sheet overlay */
4
24
  ActionSheet = "actionSheet"
5
25
  }
26
+ /**
27
+ * Default text returned when an overlay is dismissed by user action.
28
+ * Used as the dismiss result text when no custom text is provided.
29
+ */
6
30
  export declare const overlayDismissResultDefaultText = "cancelByUser";
31
+ /**
32
+ * Position types for toast notifications.
33
+ * Determines where on the screen a toast will appear.
34
+ *
35
+ * @example
36
+ * ```tsx
37
+ * showToast({
38
+ * type: ToastType.TopRight,
39
+ * message: 'Success!'
40
+ * });
41
+ * ```
42
+ */
7
43
  export declare enum ToastType {
44
+ /** Center top of screen */
8
45
  Top = "top",
46
+ /** Top left corner */
9
47
  TopLeft = "topLeft",
48
+ /** Top right corner */
10
49
  TopRight = "topRight",
50
+ /** Center bottom of screen */
11
51
  Bottom = "bottom",
52
+ /** Bottom left corner */
12
53
  BottomLeft = "bottomLeft",
54
+ /** Bottom right corner */
13
55
  BottomRight = "bottomRight"
14
56
  }
57
+ /**
58
+ * Duration constants for toast notifications in milliseconds.
59
+ *
60
+ * @example
61
+ * ```tsx
62
+ * showToast({
63
+ * message: 'Saved',
64
+ * duration: ToastDuration.Short
65
+ * });
66
+ * ```
67
+ */
15
68
  export declare enum ToastDuration {
69
+ /** Short duration - 3 seconds */
16
70
  Short = 3000,
71
+ /** Long duration - 5 seconds */
17
72
  Long = 5000
18
73
  }
74
+ /** @internal */
75
+ export declare const AlertContext: import("react").Context<Partial<Pick<import("../..").AlertProps, "buttonProps"> & {
76
+ onDismiss: (result?: Partial<import("../..").OverlayDismissAlertResult>) => void;
77
+ }>>;
78
+ /**
79
+ * Visual styles for alert dialog buttons.
80
+ * Determines the appearance and emphasis level of buttons in alert dialogs.
81
+ *
82
+ * @example
83
+ * ```tsx
84
+ * showAlert({
85
+ * buttons: [
86
+ * { text: 'Cancel', type: AlertButtonType.Secondary },
87
+ * { text: 'Delete', type: AlertButtonType.Destructive }
88
+ * ]
89
+ * });
90
+ * ```
91
+ */
19
92
  export declare enum AlertButtonType {
93
+ /** Primary action button - emphasized appearance */
20
94
  Primary = "primary",
95
+ /** Secondary action button - normal appearance */
21
96
  Secondary = "secondary",
97
+ /** Destructive action button - warning appearance (typically red) */
22
98
  Destructive = "destructive"
23
99
  }
100
+ /** @internal */
101
+ export declare const ActionSheetContext: import("react").Context<Partial<ActionSheetContextVal>>;
102
+ /** @internal */
103
+ export declare const actionSheetOpenDuration = 300;
104
+ /** @internal */
105
+ export declare const actionSheetSnapDuration = 300;
106
+ /** @internal */
107
+ export declare const actionSheetDismissDuration = 150;
108
+ /** @internal */
109
+ export declare const actionSheetMaxHeightRatio = 0.6;
110
+ /** @internal */
111
+ export declare enum ActionSheetExpandableHeightRatio {
112
+ Top = 0.9,
113
+ Middle = 0.6,
114
+ Bottom = 0.3
115
+ }
116
+ /** @internal */
117
+ export declare const actionSheetHeaderIconSize: IconSize;
118
+ /** @internal */
119
+ export declare const actionSheetHeaderPadding: ThemeSpacing;
120
+ /** @internal */
121
+ export declare const actionSheetOptionListItemPadding: ThemeSpacing;
122
+ /** @internal */
123
+ export declare const actionSheetOptionListItemTextVariant: ThemeTextVariants;
24
124
  //# sourceMappingURL=const.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/const.ts"],"names":[],"mappings":"AAWA,oBAAY,wBAAwB;IAClC,KAAK,UAAU;IACf,KAAK,UAAU;IACf,WAAW,gBAAgB;CAC5B;AAED,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAE9D,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,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AAY,eAAe;IACzB,oDAAoD;IACpD,OAAO,YAAY;IACnB,kDAAkD;IAClD,SAAS,cAAc;IACvB,qEAAqE;IACrE,WAAW,gBAAgB;CAC5B;AAED,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,yDAE9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,gBAAgB;AAChB,oBAAY,gCAAgC;IAC1C,GAAG,MAAM;IACT,MAAM,MAAM;IACZ,MAAM,MAAM;CACb;AAED,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,QAAqB,CAAC;AAE9D,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,YAAkB,CAAC;AAE1D,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,YAAkB,CAAC;AAElE,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,iBAA2B,CAAC"}
@@ -1,11 +1,104 @@
1
+ /**
2
+ * Hook to access the Alert context.
3
+ * Provides access to alert state and control functions.
4
+ *
5
+ * @returns The alert context value
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * const alertContext = getAlertContext();
10
+ * ```
11
+ */
1
12
  export declare function getAlertContext(): Partial<Pick<import("../..").AlertProps, "buttonProps"> & {
2
13
  onDismiss: (result?: Partial<import("../..").OverlayDismissAlertResult>) => void;
3
14
  }>;
15
+ /**
16
+ * Calculates the maximum height for an action sheet.
17
+ *
18
+ * @param expandable - Whether the action sheet is expandable (supports multiple height positions)
19
+ * @returns The maximum height in pixels
20
+ *
21
+ * @example
22
+ * ```tsx
23
+ * const maxHeight = getActionSheetMaxHeight(true);
24
+ * ```
25
+ */
4
26
  export declare function getActionSheetMaxHeight(expandable?: boolean): number;
27
+ /**
28
+ * Constrains an action sheet height to not exceed the maximum allowed height.
29
+ *
30
+ * @param height - The desired height in pixels
31
+ * @returns The constrained height in pixels, capped at maximum
32
+ *
33
+ * @example
34
+ * ```tsx
35
+ * const constrainedHeight = getActionSheetHeight(800);
36
+ * ```
37
+ */
5
38
  export declare function getActionSheetHeight(height: number): number;
39
+ /**
40
+ * Gets the maximum height for an expandable action sheet.
41
+ *
42
+ * @returns The maximum expandable height in pixels (90% of screen height)
43
+ *
44
+ * @example
45
+ * ```tsx
46
+ * const expandableHeight = getActionSheetExpandableHeight();
47
+ * ```
48
+ */
6
49
  export declare function getActionSheetExpandableHeight(): number;
50
+ /**
51
+ * Gets the initial height for an expandable action sheet when first shown.
52
+ *
53
+ * @returns The initial height in pixels (60% of screen height)
54
+ *
55
+ * @example
56
+ * ```tsx
57
+ * const initialHeight = getActionSheetExpandableInitHeight();
58
+ * ```
59
+ */
7
60
  export declare function getActionSheetExpandableInitHeight(): number;
61
+ /**
62
+ * Calculates the snap height for a non-expandable action sheet after user drag gesture ends.
63
+ * Determines whether the sheet should dismiss or snap back to its original height.
64
+ *
65
+ * @param height - The original height of the action sheet in pixels
66
+ * @param currentHeight - The current height after user drag in pixels
67
+ * @param forceDismiss - Whether to force dismissal regardless of current height
68
+ * @returns The target snap height - either the original height (dismissed) or 0 (visible)
69
+ *
70
+ * @example
71
+ * ```tsx
72
+ * const snapHeight = getActionSheetSnapHeight(400, 200, false);
73
+ * // Returns 400 to dismiss if dragged past threshold
74
+ * ```
75
+ */
8
76
  export declare function getActionSheetSnapHeight(height: number, currentHeight: number, forceDismiss: boolean): number;
77
+ /**
78
+ * Calculates the snap height for an expandable action sheet after user drag gesture ends.
79
+ * Determines which height position (top/middle/bottom) the sheet should snap to, or if it should dismiss.
80
+ *
81
+ * @param currentHight - The current height after user drag in pixels
82
+ * @param forceDismiss - Whether to force dismissal regardless of current height
83
+ * @returns The target snap height - 0 for dismissed, or one of the defined snap positions (90%/60%/30% of screen)
84
+ *
85
+ * @example
86
+ * ```tsx
87
+ * const snapHeight = getActionSheetExpandableSnapHeight(500, false);
88
+ * // Returns closest snap position based on current height
89
+ * ```
90
+ */
9
91
  export declare function getActionSheetExpandableSnapHeight(currentHight: number, forceDismiss: boolean): number;
92
+ /**
93
+ * Hook to access the ActionSheet context.
94
+ * Provides access to action sheet state and control functions.
95
+ *
96
+ * @returns The action sheet context value
97
+ *
98
+ * @example
99
+ * ```tsx
100
+ * const actionSheetContext = getActionSheetContext();
101
+ * ```
102
+ */
10
103
  export declare function getActionSheetContext(): Partial<import("../..").ActionSheetContextVal>;
11
104
  //# sourceMappingURL=func.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/func.ts"],"names":[],"mappings":"AASA,wBAAgB,eAAe;sBAiFb,CAAC;GA/ElB;AAQD,wBAAgB,uBAAuB,CAAC,UAAU,GAAE,OAAe,UAMlE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,UAElD;AAED,wBAAgB,8BAA8B,WAE7C;AAED,wBAAgB,kCAAkC,WAIjD;AAgBD,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,OAAO,UAKtB;AAED,wBAAgB,kCAAkC,CAChD,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,OAAO,UAmCtB;AAED,wBAAgB,qBAAqB,mDAEpC"}
1
+ {"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/func.ts"],"names":[],"mappings":"AASA;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe;sBAoJW,CAAC;GAlJ1C;AAQD;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,GAAE,OAAe,UAMlE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,UAElD;AAED;;;;;;;;;GASG;AACH,wBAAgB,8BAA8B,WAE7C;AAED;;;;;;;;;GASG;AACH,wBAAgB,kCAAkC,WAIjD;AAgBD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,OAAO,UAKtB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kCAAkC,CAChD,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,OAAO,UAmCtB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,mDAEpC"}
@@ -1,2 +1,6 @@
1
- export {};
1
+ import type { SharedValue, WithSpringConfig, WithTimingConfig } from 'react-native-reanimated';
2
+ /** @internal */
3
+ export declare function updateSharedValWithTiming(sharedVal: SharedValue<number>, toVal: number, userConfig?: WithTimingConfig, cb?: () => void): void;
4
+ /** @internal */
5
+ export declare function updateSharedValWithSpring(sharedVal: SharedValue<number>, toVal: number, userConfig?: WithSpringConfig, cb?: () => void): void;
2
6
  //# sourceMappingURL=func.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/reanimated/func.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/reanimated/func.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AAIjC,gBAAgB;AAChB,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,gBAAgB,EAC7B,EAAE,CAAC,EAAE,MAAM,IAAI,QAShB;AAED,gBAAgB;AAChB,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,gBAAgB,EAC7B,EAAE,CAAC,EAAE,MAAM,IAAI,QAShB"}
@@ -1,19 +1,66 @@
1
1
  import { BorderSize } from '../theme/const';
2
+ /**
3
+ * Display modes for showing the current slider value.
4
+ * Controls whether and where the value label is displayed.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * <Slider
9
+ * valueDisplayMode={SliderValueDisplayMode.Top}
10
+ * value={50}
11
+ * />
12
+ * ```
13
+ */
2
14
  export declare enum SliderValueDisplayMode {
15
+ /** No value display */
3
16
  None = "none",
17
+ /** Display value above the slider */
4
18
  Top = "top",
19
+ /** Display value below the slider */
5
20
  Bottom = "bottom"
6
21
  }
22
+ /**
23
+ * Size options for the slider track (the rail along which the thumb moves).
24
+ * Values are in pixels representing the track height.
25
+ *
26
+ * @example
27
+ * ```tsx
28
+ * <Slider trackSize={SliderTrackSize.L} />
29
+ * ```
30
+ */
7
31
  export declare enum SliderTrackSize {
32
+ /** Small track - 8px height */
8
33
  S = 8,
34
+ /** Medium track - 10px height */
9
35
  M = 10,
36
+ /** Large track - 12px height */
10
37
  L = 12
11
38
  }
39
+ /**
40
+ * Size options for the slider thumb (the draggable knob).
41
+ * Values are in pixels representing the thumb diameter.
42
+ *
43
+ * @example
44
+ * ```tsx
45
+ * <Slider thumbSize={SliderThumbSize.L} />
46
+ * ```
47
+ */
12
48
  export declare enum SliderThumbSize {
49
+ /** Small thumb - 20px diameter */
13
50
  S = 20,
51
+ /** Medium thumb - 24px diameter */
14
52
  M = 24,
53
+ /** Large thumb - 28px diameter */
15
54
  L = 28
16
55
  }
56
+ /**
57
+ * Default thumb size used when no size is specified.
58
+ * Set to medium (24px).
59
+ */
17
60
  export declare const sliderThumbDefaultSize = SliderThumbSize.M;
61
+ /**
62
+ * Default width for slider step indicators.
63
+ * Uses medium border size from theme constants.
64
+ */
18
65
  export declare const sliderStepIndicatorDefaultWidth = BorderSize.M;
19
66
  //# sourceMappingURL=const.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/slider/const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,oBAAY,sBAAsB;IAChC,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;CAClB;AAED,oBAAY,eAAe;IACzB,CAAC,IAAI;IACL,CAAC,KAAK;IACN,CAAC,KAAK;CACP;AAED,oBAAY,eAAe;IACzB,CAAC,KAAK;IACN,CAAC,KAAK;IACN,CAAC,KAAK;CACP;AAED,eAAO,MAAM,sBAAsB,oBAAoB,CAAC;AAExD,eAAO,MAAM,+BAA+B,eAAe,CAAC"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/slider/const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;;;;;GAWG;AACH,oBAAY,sBAAsB;IAChC,uBAAuB;IACvB,IAAI,SAAS;IACb,qCAAqC;IACrC,GAAG,QAAQ;IACX,qCAAqC;IACrC,MAAM,WAAW;CAClB;AAED;;;;;;;;GAQG;AACH,oBAAY,eAAe;IACzB,+BAA+B;IAC/B,CAAC,IAAI;IACL,iCAAiC;IACjC,CAAC,KAAK;IACN,gCAAgC;IAChC,CAAC,KAAK;CACP;AAED;;;;;;;;GAQG;AACH,oBAAY,eAAe;IACzB,kCAAkC;IAClC,CAAC,KAAK;IACN,mCAAmC;IACnC,CAAC,KAAK;IACN,kCAAkC;IAClC,CAAC,KAAK;CACP;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,oBAAoB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,+BAA+B,eAAe,CAAC"}
@@ -1,5 +1,19 @@
1
+ /**
2
+ * Device screen orientation types.
3
+ * Used for responsive layouts and orientation-specific styling.
4
+ *
5
+ * @example
6
+ * ```tsx
7
+ * const orientation = useOrientation();
8
+ * if (orientation === Orientation.Landscape) {
9
+ * // Apply landscape-specific layout
10
+ * }
11
+ * ```
12
+ */
1
13
  export declare enum Orientation {
14
+ /** Portrait orientation - height is greater than width */
2
15
  Portrait = "portrait",
16
+ /** Landscape orientation - width is greater than height */
3
17
  Landscape = "landscape"
4
18
  }
5
19
  //# sourceMappingURL=const.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/style/const.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/style/const.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,oBAAY,WAAW;IACrB,0DAA0D;IAC1D,QAAQ,aAAa;IACrB,2DAA2D;IAC3D,SAAS,cAAc;CACxB"}
@@ -1,10 +1,105 @@
1
1
  import type { Style, StyleOrStyleProp } from '../../types/style';
2
+ /**
3
+ * Creates a stylesheet from a style object with type safety.
4
+ * Wrapper around React Native's StyleSheet.create for better type inference.
5
+ *
6
+ * @param styles - Object containing named styles
7
+ * @returns A stylesheet object with optimized and frozen styles
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * const styles = createStyleSheet({
12
+ * container: {
13
+ * flex: 1,
14
+ * padding: 16
15
+ * }
16
+ * });
17
+ * ```
18
+ */
2
19
  export declare function createStyleSheet<T extends Record<string, Style>>(styles: T): T;
20
+ /**
21
+ * Composes two style objects or style props into a single style.
22
+ * Handles arrays, objects, and null/undefined values automatically.
23
+ *
24
+ * @param style1 - First style to compose
25
+ * @param style2 - Second style to compose (overrides style1 properties)
26
+ * @returns Composed style object
27
+ *
28
+ * @example
29
+ * ```tsx
30
+ * const combinedStyle = composeStyles(baseStyle, overrideStyle);
31
+ * ```
32
+ */
3
33
  export declare function composeStyles<T extends Style>(style1?: StyleOrStyleProp<T>, style2?: StyleOrStyleProp<T>): import("react-native").StyleProp<T>;
34
+ /**
35
+ * Flattens an array of styles into a single style object.
36
+ * Useful for resolving style arrays into their final computed values.
37
+ *
38
+ * @param style - Style or array of styles to flatten
39
+ * @returns Flattened style object with all properties resolved
40
+ *
41
+ * @example
42
+ * ```tsx
43
+ * const flatStyle = flattenStyle([styles.base, styles.active]);
44
+ * console.log(flatStyle.backgroundColor); // Access resolved value
45
+ * ```
46
+ */
4
47
  export declare function flattenStyle<T extends Style>(style: StyleOrStyleProp<T>): T extends (infer U)[] ? U : T;
48
+ /**
49
+ * Gets the current window dimensions.
50
+ *
51
+ * @returns Object containing width, height, scale, and fontScale
52
+ *
53
+ * @example
54
+ * ```tsx
55
+ * const { width, height } = getWindowDimensions();
56
+ * ```
57
+ */
5
58
  export declare function getWindowDimensions(): import("react-native").ScaledSize;
59
+ /**
60
+ * Gets the current window width in pixels.
61
+ *
62
+ * @returns Window width in pixels
63
+ *
64
+ * @example
65
+ * ```tsx
66
+ * const width = getWindowDimensionsWidth();
67
+ * ```
68
+ */
6
69
  export declare function getWindowDimensionsWidth(): number;
70
+ /**
71
+ * Gets the current window height in pixels.
72
+ *
73
+ * @returns Window height in pixels
74
+ *
75
+ * @example
76
+ * ```tsx
77
+ * const height = getWindowDimensionsHeight();
78
+ * ```
79
+ */
7
80
  export declare function getWindowDimensionsHeight(): number;
81
+ /**
82
+ * Gets the device pixel density scale factor.
83
+ *
84
+ * @returns Device scale factor (e.g., 2 for @2x, 3 for @3x displays)
85
+ *
86
+ * @example
87
+ * ```tsx
88
+ * const scale = getWindowDimensionsScale();
89
+ * const physicalPixels = logicalPixels * scale;
90
+ * ```
91
+ */
8
92
  export declare function getWindowDimensionsScale(): number;
93
+ /**
94
+ * Gets the font scaling factor set by the user in device accessibility settings.
95
+ *
96
+ * @returns Font scale factor (typically 1.0, but can be higher for accessibility)
97
+ *
98
+ * @example
99
+ * ```tsx
100
+ * const fontScale = getWindowDimensionsFontScale();
101
+ * const actualFontSize = baseFontSize * fontScale;
102
+ * ```
103
+ */
9
104
  export declare function getWindowDimensionsFontScale(): number;
10
105
  //# sourceMappingURL=func.d.ts.map