@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,24 +1,91 @@
1
+ /**
2
+ * Types of overlay components that can be dismissed.
3
+ * Used to identify which overlay component triggered a dismiss result.
4
+ *
5
+ * @example
6
+ * ```tsx
7
+ * const result = {
8
+ * type: OverlayDismissResultType.Alert,
9
+ * text: 'User cancelled'
10
+ * };
11
+ * ```
12
+ */
1
13
  export declare enum OverlayDismissResultType {
14
+ /** Toast notification overlay */
2
15
  Toast = "toast",
16
+ /** Alert dialog overlay */
3
17
  Alert = "alert",
18
+ /** Action sheet overlay */
4
19
  ActionSheet = "actionSheet"
5
20
  }
21
+ /**
22
+ * Default text returned when an overlay is dismissed by user action.
23
+ * Used as the dismiss result text when no custom text is provided.
24
+ */
6
25
  export declare const overlayDismissResultDefaultText = "cancelByUser";
26
+ /**
27
+ * Position types for toast notifications.
28
+ * Determines where on the screen a toast will appear.
29
+ *
30
+ * @example
31
+ * ```tsx
32
+ * showToast({
33
+ * type: ToastType.TopRight,
34
+ * message: 'Success!'
35
+ * });
36
+ * ```
37
+ */
7
38
  export declare enum ToastType {
39
+ /** Center top of screen */
8
40
  Top = "top",
41
+ /** Top left corner */
9
42
  TopLeft = "topLeft",
43
+ /** Top right corner */
10
44
  TopRight = "topRight",
45
+ /** Center bottom of screen */
11
46
  Bottom = "bottom",
47
+ /** Bottom left corner */
12
48
  BottomLeft = "bottomLeft",
49
+ /** Bottom right corner */
13
50
  BottomRight = "bottomRight"
14
51
  }
52
+ /**
53
+ * Duration constants for toast notifications in milliseconds.
54
+ *
55
+ * @example
56
+ * ```tsx
57
+ * showToast({
58
+ * message: 'Saved',
59
+ * duration: ToastDuration.Short
60
+ * });
61
+ * ```
62
+ */
15
63
  export declare enum ToastDuration {
64
+ /** Short duration - 3 seconds */
16
65
  Short = 3000,
66
+ /** Long duration - 5 seconds */
17
67
  Long = 5000
18
68
  }
69
+ /**
70
+ * Visual styles for alert dialog buttons.
71
+ * Determines the appearance and emphasis level of buttons in alert dialogs.
72
+ *
73
+ * @example
74
+ * ```tsx
75
+ * showAlert({
76
+ * buttons: [
77
+ * { text: 'Cancel', type: AlertButtonType.Secondary },
78
+ * { text: 'Delete', type: AlertButtonType.Destructive }
79
+ * ]
80
+ * });
81
+ * ```
82
+ */
19
83
  export declare enum AlertButtonType {
84
+ /** Primary action button - emphasized appearance */
20
85
  Primary = "primary",
86
+ /** Secondary action button - normal appearance */
21
87
  Secondary = "secondary",
88
+ /** Destructive action button - warning appearance (typically red) */
22
89
  Destructive = "destructive"
23
90
  }
24
91
  //# 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,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,WAAW,gBAAgB;CAC5B;AAED,oBAAY,aAAa;IACvB,KAAK,OAAO;IACZ,IAAI,OAAO;CACZ;AAKD,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,WAAW,gBAAgB;CAC5B"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/const.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;GAWG;AACH,oBAAY,wBAAwB;IAClC,iCAAiC;IACjC,KAAK,UAAU;IACf,2BAA2B;IAC3B,KAAK,UAAU;IACf,2BAA2B;IAC3B,WAAW,gBAAgB;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,oBAAY,SAAS;IACnB,2BAA2B;IAC3B,GAAG,QAAQ;IACX,sBAAsB;IACtB,OAAO,YAAY;IACnB,uBAAuB;IACvB,QAAQ,aAAa;IACrB,8BAA8B;IAC9B,MAAM,WAAW;IACjB,yBAAyB;IACzB,UAAU,eAAe;IACzB,0BAA0B;IAC1B,WAAW,gBAAgB;CAC5B;AAED;;;;;;;;;;GAUG;AACH,oBAAY,aAAa;IACvB,iCAAiC;IACjC,KAAK,OAAO;IACZ,gCAAgC;IAChC,IAAI,OAAO;CACZ;AAKD;;;;;;;;;;;;;GAaG;AACH,oBAAY,eAAe;IACzB,oDAAoD;IACpD,OAAO,YAAY;IACnB,kDAAkD;IAClD,SAAS,cAAc;IACvB,qEAAqE;IACrE,WAAW,gBAAgB;CAC5B"}
@@ -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,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
@@ -1 +1 @@
1
- {"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/style/func.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,KAE1E;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,EAC3C,MAAM,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAC5B,MAAM,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,uCAG7B;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,iCAEvE;AAED,wBAAgB,mBAAmB,sCAElC;AAED,wBAAgB,wBAAwB,WAEvC;AAED,wBAAgB,yBAAyB,WAExC;AAED,wBAAgB,wBAAwB,WAEvC;AAED,wBAAgB,4BAA4B,WAE3C"}
1
+ {"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/style/func.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAEjE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,KAE1E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,EAC3C,MAAM,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAC5B,MAAM,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,uCAG7B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,iCAEvE;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,sCAElC;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,WAEvC;AAED;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,WAExC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,WAEvC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,WAE3C"}
@@ -1,68 +1,224 @@
1
+ /**
2
+ * Color palette used throughout the application.
3
+ * Contains primary theme colors and semantic colors with transparency variants.
4
+ *
5
+ * @example
6
+ * ```tsx
7
+ * const styles = StyleSheet.create({
8
+ * container: {
9
+ * backgroundColor: Palette.ThemePri,
10
+ * borderColor: Palette.Silver
11
+ * }
12
+ * });
13
+ * ```
14
+ */
1
15
  export declare enum Palette {
16
+ /** Fully transparent color */
2
17
  Transparent = "transparent",
18
+ /** Primary theme color - bright green */
3
19
  ThemePri = "#7ccf6b",
20
+ /** Secondary theme color - darker green */
4
21
  ThemeSec = "#5aa85a",
22
+ /** Primary theme color with 50% transparency */
5
23
  ThemePriT = "#7ccf6b80",
24
+ /** Near black - used for text in light mode */
6
25
  Black = "#000501",
26
+ /** Black with 50% transparency */
7
27
  BlackT = "#00050180",
28
+ /** Off-white - used for backgrounds in light mode */
8
29
  White = "#fafafa",
30
+ /** White with 50% transparency */
9
31
  WhiteT = "#fafafa80",
32
+ /** Light gray - used for disabled states */
10
33
  Silver = "#c4c4c4",
34
+ /** Medium gray - used for borders */
11
35
  Grey = "#7a7a7a",
36
+ /** Red - used for errors and destructive actions */
12
37
  Red = "#ff3b30"
13
38
  }
39
+ /**
40
+ * Spacing scale used for margins, padding, and gaps.
41
+ * Based on a geometric progression for consistent spacing ratios.
42
+ *
43
+ * @example
44
+ * ```tsx
45
+ * <View style={{ padding: Spacing.M, gap: Spacing.S }}>
46
+ * <Text>Content</Text>
47
+ * </View>
48
+ * ```
49
+ */
14
50
  export declare enum Spacing {
51
+ /** No spacing - 0px */
15
52
  None = 0,
53
+ /** Extra extra extra small - 2px */
16
54
  XXXS = 2,
55
+ /** Extra extra small - 4px */
17
56
  XXS = 4,
57
+ /** Extra small - 6px */
18
58
  XS = 6,
59
+ /** Small - 10px */
19
60
  S = 10,
61
+ /** Medium - 16px */
20
62
  M = 16,
63
+ /** Large - 26px */
21
64
  L = 26,
65
+ /** Extra large - 42px */
22
66
  XL = 42,
67
+ /** Extra extra large - 68px */
23
68
  XXL = 68,
69
+ /** Extra extra extra large - 110px */
24
70
  XXXL = 110
25
71
  }
72
+ /**
73
+ * Font size scale for text elements.
74
+ * Provides consistent typography sizing across the application.
75
+ *
76
+ * @example
77
+ * ```tsx
78
+ * <Text style={{ fontSize: FontSize.M }}>
79
+ * Medium text
80
+ * </Text>
81
+ * ```
82
+ */
26
83
  export declare enum FontSize {
84
+ /** Extra small - 12px */
27
85
  XS = 12,
86
+ /** Small - 16px */
28
87
  S = 16,
88
+ /** Medium - 20px */
29
89
  M = 20,
90
+ /** Large - 24px */
30
91
  L = 24,
92
+ /** Extra large - 28px */
31
93
  XL = 28
32
94
  }
95
+ /**
96
+ * Line heights calculated from font sizes with a 1.4 ratio.
97
+ * Ensures proper vertical spacing and readability for text.
98
+ *
99
+ * @example
100
+ * ```tsx
101
+ * <Text style={{
102
+ * fontSize: FontSize.M,
103
+ * lineHeight: FontLineHeight.M
104
+ * }}>
105
+ * Readable text
106
+ * </Text>
107
+ * ```
108
+ */
33
109
  export declare enum FontLineHeight {
110
+ /** Extra small line height - 16.8px (12px * 1.4) */
34
111
  XS = 16.799999999999997,
112
+ /** Small line height - 22.4px (16px * 1.4) */
35
113
  S = 22.4,
114
+ /** Medium line height - 28px (20px * 1.4) */
36
115
  M = 28,
116
+ /** Large line height - 33.6px (24px * 1.4) */
37
117
  L = 33.599999999999994,
118
+ /** Extra large line height - 39.2px (28px * 1.4) */
38
119
  XL = 39.199999999999996
39
120
  }
121
+ /**
122
+ * Size options for switch components.
123
+ * Values represent the width/height of the switch track in pixels.
124
+ *
125
+ * @example
126
+ * ```tsx
127
+ * <Switch size={SwitchSize.M} />
128
+ * ```
129
+ */
40
130
  export declare enum SwitchSize {
131
+ /** Small switch - 16px */
41
132
  S = 16,
133
+ /** Medium switch - 22px */
42
134
  M = 22,
135
+ /** Large switch - 28px */
43
136
  L = 28
44
137
  }
138
+ /**
139
+ * Border width/thickness options.
140
+ * Includes hairline width for platform-specific thin borders.
141
+ *
142
+ * @example
143
+ * ```tsx
144
+ * <View style={{ borderWidth: BorderSize.M }}>
145
+ * Content
146
+ * </View>
147
+ * ```
148
+ */
45
149
  export declare enum BorderSize {
150
+ /** No border - 0px */
46
151
  None = 0,
152
+ /** Hairline border - thinnest possible border for the platform (typically 0.5-1px) */
47
153
  XS,
154
+ /** Small border - 1px */
48
155
  S = 1,
156
+ /** Medium border - 2px */
49
157
  M = 2,
158
+ /** Large border - 4px */
50
159
  L = 4,
160
+ /** Extra large border - 8px */
51
161
  XL = 8
52
162
  }
163
+ /**
164
+ * Border radius options for rounded corners.
165
+ * Round value creates fully circular shapes when applied to square elements.
166
+ *
167
+ * @example
168
+ * ```tsx
169
+ * <View style={{ borderRadius: BorderRadius.M }}>
170
+ * Rounded corners
171
+ * </View>
172
+ * ```
173
+ */
53
174
  export declare enum BorderRadius {
175
+ /** No rounding - sharp corners */
54
176
  None = 0,
177
+ /** Small radius - 12px */
55
178
  S = 12,
179
+ /** Medium radius - 24px */
56
180
  M = 24,
181
+ /** Large radius - 36px */
57
182
  L = 36,
183
+ /** Fully rounded - creates circles/pills (9999px) */
58
184
  Round = 9999
59
185
  }
186
+ /**
187
+ * Z-index layering values for stacking order.
188
+ * Controls which elements appear above others in the visual hierarchy.
189
+ *
190
+ * @example
191
+ * ```tsx
192
+ * <View style={{ zIndex: ZIndex.Top }}>
193
+ * Top layer content
194
+ * </View>
195
+ * ```
196
+ */
60
197
  export declare enum ZIndex {
198
+ /** Base layer - 0 */
61
199
  Base = 0,
200
+ /** Bottom layer - 1 */
62
201
  Bottom = 1,
202
+ /** Middle layer - 2 */
63
203
  Middle = 2,
204
+ /** Top layer - 3 */
64
205
  Top = 3
65
206
  }
207
+ /**
208
+ * Light theme configuration for the application.
209
+ * Contains all theme values including colors, spacing, breakpoints, and text variants.
210
+ * Built using Shopify Restyle for type-safe styling.
211
+ *
212
+ * @example
213
+ * ```tsx
214
+ * import { ThemeProvider } from '@shopify/restyle';
215
+ * import { lightTheme } from './utils/theme/const';
216
+ *
217
+ * <ThemeProvider theme={lightTheme}>
218
+ * <App />
219
+ * </ThemeProvider>
220
+ * ```
221
+ */
66
222
  export declare const lightTheme: {
67
223
  colors: {
68
224
  transparent: Palette;
@@ -173,5 +329,19 @@ export declare const lightTheme: {
173
329
  };
174
330
  };
175
331
  };
332
+ /**
333
+ * Dark theme configuration for the application.
334
+ * Extends the light theme with inverted background and text colors.
335
+ *
336
+ * @example
337
+ * ```tsx
338
+ * import { ThemeProvider } from '@shopify/restyle';
339
+ * import { darkTheme } from './utils/theme/const';
340
+ *
341
+ * <ThemeProvider theme={darkTheme}>
342
+ * <App />
343
+ * </ThemeProvider>
344
+ * ```
345
+ */
176
346
  export declare const darkTheme: typeof lightTheme;
177
347
  //# sourceMappingURL=const.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/theme/const.ts"],"names":[],"mappings":"AAGA,oBAAY,OAAO;IACjB,WAAW,gBAAgB;IAC3B,QAAQ,YAAY;IACpB,QAAQ,YAAY;IACpB,SAAS,cAAc;IACvB,KAAK,YAAY;IACjB,MAAM,cAAc;IACpB,KAAK,YAAY;IACjB,MAAM,cAAc;IACpB,MAAM,YAAY;IAClB,IAAI,YAAY;IAChB,GAAG,YAAY;CAChB;AAED,oBAAY,OAAO;IACjB,IAAI,IAAI;IACR,IAAI,IAAI;IACR,GAAG,IAAI;IACP,EAAE,IAAI;IACN,CAAC,KAAK;IACN,CAAC,KAAK;IACN,CAAC,KAAK;IACN,EAAE,KAAK;IACP,GAAG,KAAK;IACR,IAAI,MAAM;CACX;AAED,oBAAY,QAAQ;IAClB,EAAE,KAAK;IACP,CAAC,KAAK;IACN,CAAC,KAAK;IACN,CAAC,KAAK;IACN,EAAE,KAAK;CACR;AAKD,oBAAY,cAAc;IACxB,EAAE,qBAAoC;IACtC,CAAC,OAAmC;IACpC,CAAC,KAAmC;IACpC,CAAC,qBAAmC;IACpC,EAAE,qBAAoC;CACvC;AAED,oBAAY,UAAU;IACpB,CAAC,KAAK;IACN,CAAC,KAAK;IACN,CAAC,KAAK;CACP;AAED,oBAAY,UAAU;IACpB,IAAI,IAAI;IACR,EAA6B;IAC7B,CAAC,IAAI;IACL,CAAC,IAAI;IACL,CAAC,IAAI;IACL,EAAE,IAAI;CACP;AAED,oBAAY,YAAY;IACtB,IAAI,IAAI;IACR,CAAC,KAAK;IACN,CAAC,KAAK;IACN,CAAC,KAAK;IACN,KAAK,OAAO;CACb;AAED,oBAAY,MAAM;IAChB,IAAI,IAAI;IACR,MAAM,IAAI;IACV,MAAM,IAAI;IACV,GAAG,IAAI;CACR;AA+BD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuErB,CAAC;AAEH,eAAO,MAAM,SAAS,EAAE,OAAO,UAO9B,CAAC"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/theme/const.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,oBAAY,OAAO;IACjB,8BAA8B;IAC9B,WAAW,gBAAgB;IAC3B,yCAAyC;IACzC,QAAQ,YAAY;IACpB,2CAA2C;IAC3C,QAAQ,YAAY;IACpB,gDAAgD;IAChD,SAAS,cAAc;IACvB,+CAA+C;IAC/C,KAAK,YAAY;IACjB,kCAAkC;IAClC,MAAM,cAAc;IACpB,qDAAqD;IACrD,KAAK,YAAY;IACjB,kCAAkC;IAClC,MAAM,cAAc;IACpB,4CAA4C;IAC5C,MAAM,YAAY;IAClB,qCAAqC;IACrC,IAAI,YAAY;IAChB,oDAAoD;IACpD,GAAG,YAAY;CAChB;AAED;;;;;;;;;;GAUG;AACH,oBAAY,OAAO;IACjB,uBAAuB;IACvB,IAAI,IAAI;IACR,oCAAoC;IACpC,IAAI,IAAI;IACR,8BAA8B;IAC9B,GAAG,IAAI;IACP,wBAAwB;IACxB,EAAE,IAAI;IACN,mBAAmB;IACnB,CAAC,KAAK;IACN,oBAAoB;IACpB,CAAC,KAAK;IACN,mBAAmB;IACnB,CAAC,KAAK;IACN,yBAAyB;IACzB,EAAE,KAAK;IACP,+BAA+B;IAC/B,GAAG,KAAK;IACR,sCAAsC;IACtC,IAAI,MAAM;CACX;AAED;;;;;;;;;;GAUG;AACH,oBAAY,QAAQ;IAClB,yBAAyB;IACzB,EAAE,KAAK;IACP,mBAAmB;IACnB,CAAC,KAAK;IACN,oBAAoB;IACpB,CAAC,KAAK;IACN,mBAAmB;IACnB,CAAC,KAAK;IACN,yBAAyB;IACzB,EAAE,KAAK;CACR;AAKD;;;;;;;;;;;;;GAaG;AACH,oBAAY,cAAc;IACxB,oDAAoD;IACpD,EAAE,qBAAoC;IACtC,8CAA8C;IAC9C,CAAC,OAAmC;IACpC,6CAA6C;IAC7C,CAAC,KAAmC;IACpC,8CAA8C;IAC9C,CAAC,qBAAmC;IACpC,oDAAoD;IACpD,EAAE,qBAAoC;CACvC;AAED;;;;;;;;GAQG;AACH,oBAAY,UAAU;IACpB,0BAA0B;IAC1B,CAAC,KAAK;IACN,2BAA2B;IAC3B,CAAC,KAAK;IACN,0BAA0B;IAC1B,CAAC,KAAK;CACP;AAED;;;;;;;;;;GAUG;AACH,oBAAY,UAAU;IACpB,sBAAsB;IACtB,IAAI,IAAI;IACR,sFAAsF;IACtF,EAA6B;IAC7B,yBAAyB;IACzB,CAAC,IAAI;IACL,0BAA0B;IAC1B,CAAC,IAAI;IACL,yBAAyB;IACzB,CAAC,IAAI;IACL,+BAA+B;IAC/B,EAAE,IAAI;CACP;AAED;;;;;;;;;;GAUG;AACH,oBAAY,YAAY;IACtB,kCAAkC;IAClC,IAAI,IAAI;IACR,0BAA0B;IAC1B,CAAC,KAAK;IACN,2BAA2B;IAC3B,CAAC,KAAK;IACN,0BAA0B;IAC1B,CAAC,KAAK;IACN,qDAAqD;IACrD,KAAK,OAAO;CACb;AAED;;;;;;;;;;GAUG;AACH,oBAAY,MAAM;IAChB,qBAAqB;IACrB,IAAI,IAAI;IACR,uBAAuB;IACvB,MAAM,IAAI;IACV,uBAAuB;IACvB,MAAM,IAAI;IACV,oBAAoB;IACpB,GAAG,IAAI;CACR;AA+BD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuErB,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS,EAAE,OAAO,UAO9B,CAAC"}