@codeleap/mobile 4.1.0 → 4.2.1

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 (490) hide show
  1. package/dist/Registry.d.ts +7 -0
  2. package/dist/Registry.js +67 -0
  3. package/dist/Registry.js.map +1 -0
  4. package/dist/components/ActionIcon/index.d.ts +13 -0
  5. package/dist/components/ActionIcon/index.js +79 -0
  6. package/dist/components/ActionIcon/index.js.map +1 -0
  7. package/dist/components/ActionIcon/styles.d.ts +5 -0
  8. package/dist/components/ActionIcon/styles.js +3 -0
  9. package/dist/components/ActionIcon/styles.js.map +1 -0
  10. package/dist/components/ActionIcon/types.d.ts +11 -0
  11. package/dist/components/ActionIcon/types.js +3 -0
  12. package/dist/components/ActionIcon/types.js.map +1 -0
  13. package/dist/components/ActivityIndicator/index.d.ts +15 -0
  14. package/dist/components/ActivityIndicator/index.js +66 -0
  15. package/dist/components/ActivityIndicator/index.js.map +1 -0
  16. package/dist/components/ActivityIndicator/styles.d.ts +1 -0
  17. package/dist/components/ActivityIndicator/styles.js +3 -0
  18. package/dist/components/ActivityIndicator/styles.js.map +1 -0
  19. package/dist/components/ActivityIndicator/types.d.ts +9 -0
  20. package/dist/components/ActivityIndicator/types.js +3 -0
  21. package/dist/components/ActivityIndicator/types.js.map +1 -0
  22. package/dist/components/Autocomplete/index.d.ts +13 -0
  23. package/dist/components/Autocomplete/index.js +192 -0
  24. package/dist/components/Autocomplete/index.js.map +1 -0
  25. package/dist/components/Autocomplete/styles.d.ts +8 -0
  26. package/dist/components/Autocomplete/styles.js +3 -0
  27. package/dist/components/Autocomplete/styles.js.map +1 -0
  28. package/dist/components/Autocomplete/types.d.ts +58 -0
  29. package/dist/components/Autocomplete/types.js +3 -0
  30. package/dist/components/Autocomplete/types.js.map +1 -0
  31. package/dist/components/Avatar/index.d.ts +13 -0
  32. package/dist/components/Avatar/index.js +112 -0
  33. package/dist/components/Avatar/index.js.map +1 -0
  34. package/dist/components/Avatar/styles.d.ts +2 -0
  35. package/dist/components/Avatar/styles.js +3 -0
  36. package/dist/components/Avatar/styles.js.map +1 -0
  37. package/dist/components/Avatar/types.d.ts +19 -0
  38. package/dist/components/Avatar/types.js +3 -0
  39. package/dist/components/Avatar/types.js.map +1 -0
  40. package/dist/components/AvatarGroup/index.d.ts +13 -0
  41. package/dist/components/AvatarGroup/index.js +79 -0
  42. package/dist/components/AvatarGroup/index.js.map +1 -0
  43. package/dist/components/AvatarGroup/styles.d.ts +3 -0
  44. package/dist/components/AvatarGroup/styles.js +3 -0
  45. package/dist/components/AvatarGroup/styles.js.map +1 -0
  46. package/dist/components/AvatarGroup/types.d.ts +9 -0
  47. package/dist/components/AvatarGroup/types.js +3 -0
  48. package/dist/components/AvatarGroup/types.js.map +1 -0
  49. package/dist/components/Backdrop/index.d.ts +13 -0
  50. package/dist/components/Backdrop/index.js +82 -0
  51. package/dist/components/Backdrop/index.js.map +1 -0
  52. package/dist/components/Backdrop/styles.d.ts +1 -0
  53. package/dist/components/Backdrop/styles.js +3 -0
  54. package/dist/components/Backdrop/styles.js.map +1 -0
  55. package/dist/components/Backdrop/types.d.ts +11 -0
  56. package/dist/components/Backdrop/types.js +3 -0
  57. package/dist/components/Backdrop/types.js.map +1 -0
  58. package/dist/components/Badge/index.d.ts +13 -0
  59. package/dist/components/Badge/index.js +109 -0
  60. package/dist/components/Badge/index.js.map +1 -0
  61. package/dist/components/Badge/styles.d.ts +4 -0
  62. package/dist/components/Badge/styles.js +3 -0
  63. package/dist/components/Badge/styles.js.map +1 -0
  64. package/dist/components/Badge/types.d.ts +27 -0
  65. package/dist/components/Badge/types.js +3 -0
  66. package/dist/components/Badge/types.js.map +1 -0
  67. package/dist/components/Button/index.d.ts +5 -0
  68. package/dist/components/Button/index.js +123 -0
  69. package/dist/components/Button/index.js.map +1 -0
  70. package/dist/components/Button/styles.d.ts +12 -0
  71. package/dist/components/Button/styles.js +3 -0
  72. package/dist/components/Button/styles.js.map +1 -0
  73. package/dist/components/Button/types.d.ts +16 -0
  74. package/dist/components/Button/types.js +3 -0
  75. package/dist/components/Button/types.js.map +1 -0
  76. package/dist/components/Calendar/index.d.ts +19 -0
  77. package/dist/components/Calendar/index.js +82 -0
  78. package/dist/components/Calendar/index.js.map +1 -0
  79. package/dist/components/Calendar/types.d.ts +95 -0
  80. package/dist/components/Calendar/types.js +3 -0
  81. package/dist/components/Calendar/types.js.map +1 -0
  82. package/dist/components/Checkbox/index.d.ts +13 -0
  83. package/dist/components/Checkbox/index.js +120 -0
  84. package/dist/components/Checkbox/index.js.map +1 -0
  85. package/dist/components/Checkbox/styles.d.ts +7 -0
  86. package/dist/components/Checkbox/styles.js +3 -0
  87. package/dist/components/Checkbox/styles.js.map +1 -0
  88. package/dist/components/Checkbox/types.d.ts +10 -0
  89. package/dist/components/Checkbox/types.js +3 -0
  90. package/dist/components/Checkbox/types.js.map +1 -0
  91. package/dist/components/DatePickerModal/index.d.ts +13 -0
  92. package/dist/components/DatePickerModal/index.js +156 -0
  93. package/dist/components/DatePickerModal/index.js.map +1 -0
  94. package/dist/components/DatePickerModal/styles.d.ts +5 -0
  95. package/dist/components/DatePickerModal/styles.js +3 -0
  96. package/dist/components/DatePickerModal/styles.js.map +1 -0
  97. package/dist/components/DatePickerModal/types.d.ts +42 -0
  98. package/dist/components/DatePickerModal/types.js +3 -0
  99. package/dist/components/DatePickerModal/types.js.map +1 -0
  100. package/dist/components/EmptyPlaceholder/index.d.ts +13 -0
  101. package/dist/components/EmptyPlaceholder/index.js +87 -0
  102. package/dist/components/EmptyPlaceholder/index.js.map +1 -0
  103. package/dist/components/EmptyPlaceholder/styles.d.ts +2 -0
  104. package/dist/components/EmptyPlaceholder/styles.js +3 -0
  105. package/dist/components/EmptyPlaceholder/styles.js.map +1 -0
  106. package/dist/components/EmptyPlaceholder/types.d.ts +20 -0
  107. package/dist/components/EmptyPlaceholder/types.js +3 -0
  108. package/dist/components/EmptyPlaceholder/types.js.map +1 -0
  109. package/dist/components/FileInput/index.d.ts +9 -0
  110. package/dist/components/FileInput/index.js +218 -0
  111. package/dist/components/FileInput/index.js.map +1 -0
  112. package/dist/components/FileInput/types.d.ts +23 -0
  113. package/dist/components/FileInput/types.js +3 -0
  114. package/dist/components/FileInput/types.js.map +1 -0
  115. package/dist/components/Grid/index.d.ts +5 -0
  116. package/dist/components/Grid/index.js +110 -0
  117. package/dist/components/Grid/index.js.map +1 -0
  118. package/dist/components/Grid/styles.d.ts +2 -0
  119. package/dist/components/Grid/styles.js +3 -0
  120. package/dist/components/Grid/styles.js.map +1 -0
  121. package/dist/components/Grid/types.d.ts +15 -0
  122. package/dist/components/Grid/types.js +3 -0
  123. package/dist/components/Grid/types.js.map +1 -0
  124. package/dist/components/Icon/index.d.ts +7 -0
  125. package/dist/components/Icon/index.js +96 -0
  126. package/dist/components/Icon/index.js.map +1 -0
  127. package/dist/components/Icon/styles.d.ts +2 -0
  128. package/dist/components/Icon/styles.js +3 -0
  129. package/dist/components/Icon/styles.js.map +1 -0
  130. package/dist/components/Icon/types.d.ts +12 -0
  131. package/dist/components/Icon/types.js +3 -0
  132. package/dist/components/Icon/types.js.map +1 -0
  133. package/dist/components/Image/index.d.ts +5 -0
  134. package/dist/components/Image/index.js +151 -0
  135. package/dist/components/Image/index.js.map +1 -0
  136. package/dist/components/Image/styles.d.ts +2 -0
  137. package/dist/components/Image/styles.js +3 -0
  138. package/dist/components/Image/styles.js.map +1 -0
  139. package/dist/components/Image/types.d.ts +16 -0
  140. package/dist/components/Image/types.js +3 -0
  141. package/dist/components/Image/types.js.map +1 -0
  142. package/dist/components/ImageView/Spotlight.d.ts +41 -0
  143. package/dist/components/ImageView/Spotlight.js +178 -0
  144. package/dist/components/ImageView/Spotlight.js.map +1 -0
  145. package/dist/components/ImageView/component.d.ts +5 -0
  146. package/dist/components/ImageView/component.js +18 -0
  147. package/dist/components/ImageView/component.js.map +1 -0
  148. package/dist/components/ImageView/index.d.ts +2 -0
  149. package/dist/components/ImageView/index.js +19 -0
  150. package/dist/components/ImageView/index.js.map +1 -0
  151. package/dist/components/InputBase/index.d.ts +11 -0
  152. package/dist/components/InputBase/index.js +110 -0
  153. package/dist/components/InputBase/index.js.map +1 -0
  154. package/dist/components/InputBase/styles.d.ts +20 -0
  155. package/dist/components/InputBase/styles.js +99 -0
  156. package/dist/components/InputBase/styles.js.map +1 -0
  157. package/dist/components/InputBase/types.d.ts +26 -0
  158. package/dist/components/InputBase/types.js +3 -0
  159. package/dist/components/InputBase/types.js.map +1 -0
  160. package/dist/components/InputBase/utils.d.ts +12 -0
  161. package/dist/components/InputBase/utils.js +41 -0
  162. package/dist/components/InputBase/utils.js.map +1 -0
  163. package/dist/components/List/index.d.ts +5 -0
  164. package/dist/components/List/index.js +104 -0
  165. package/dist/components/List/index.js.map +1 -0
  166. package/dist/components/List/styles.d.ts +5 -0
  167. package/dist/components/List/styles.js +3 -0
  168. package/dist/components/List/styles.js.map +1 -0
  169. package/dist/components/List/types.d.ts +36 -0
  170. package/dist/components/List/types.js +3 -0
  171. package/dist/components/List/types.js.map +1 -0
  172. package/dist/components/LoadingOverlay/index.d.ts +13 -0
  173. package/dist/components/LoadingOverlay/index.js +84 -0
  174. package/dist/components/LoadingOverlay/index.js.map +1 -0
  175. package/dist/components/LoadingOverlay/styles.d.ts +4 -0
  176. package/dist/components/LoadingOverlay/styles.js +3 -0
  177. package/dist/components/LoadingOverlay/styles.js.map +1 -0
  178. package/dist/components/LoadingOverlay/types.d.ts +8 -0
  179. package/dist/components/LoadingOverlay/types.js +3 -0
  180. package/dist/components/LoadingOverlay/types.js.map +1 -0
  181. package/dist/components/Modal/index.d.ts +14 -0
  182. package/dist/components/Modal/index.js +151 -0
  183. package/dist/components/Modal/index.js.map +1 -0
  184. package/dist/components/Modal/styles.d.ts +4 -0
  185. package/dist/components/Modal/styles.js +3 -0
  186. package/dist/components/Modal/styles.js.map +1 -0
  187. package/dist/components/Modal/types.d.ts +36 -0
  188. package/dist/components/Modal/types.js +3 -0
  189. package/dist/components/Modal/types.js.map +1 -0
  190. package/dist/components/Navigation/Navigation.d.ts +55 -0
  191. package/dist/components/Navigation/Navigation.js +84 -0
  192. package/dist/components/Navigation/Navigation.js.map +1 -0
  193. package/dist/components/Navigation/constants.d.ts +9 -0
  194. package/dist/components/Navigation/constants.js +12 -0
  195. package/dist/components/Navigation/constants.js.map +1 -0
  196. package/dist/components/Navigation/index.d.ts +3 -0
  197. package/dist/components/Navigation/index.js +20 -0
  198. package/dist/components/Navigation/index.js.map +1 -0
  199. package/dist/components/Navigation/types.d.ts +26 -0
  200. package/dist/components/Navigation/types.js +3 -0
  201. package/dist/components/Navigation/types.js.map +1 -0
  202. package/dist/components/Navigation/utils.d.ts +3 -0
  203. package/dist/components/Navigation/utils.js +69 -0
  204. package/dist/components/Navigation/utils.js.map +1 -0
  205. package/dist/components/NumberIncrement/index.d.ts +5 -0
  206. package/dist/components/NumberIncrement/index.js +263 -0
  207. package/dist/components/NumberIncrement/index.js.map +1 -0
  208. package/dist/components/NumberIncrement/styles.d.ts +4 -0
  209. package/dist/components/NumberIncrement/styles.js +3 -0
  210. package/dist/components/NumberIncrement/styles.js.map +1 -0
  211. package/dist/components/NumberIncrement/types.d.ts +34 -0
  212. package/dist/components/NumberIncrement/types.js +3 -0
  213. package/dist/components/NumberIncrement/types.js.map +1 -0
  214. package/dist/components/NumberIncrement/utils.d.ts +5 -0
  215. package/dist/components/NumberIncrement/utils.js +27 -0
  216. package/dist/components/NumberIncrement/utils.js.map +1 -0
  217. package/dist/components/Pager/PagerDots.d.ts +16 -0
  218. package/dist/components/Pager/PagerDots.js +58 -0
  219. package/dist/components/Pager/PagerDots.js.map +1 -0
  220. package/dist/components/Pager/index.d.ts +14 -0
  221. package/dist/components/Pager/index.js +127 -0
  222. package/dist/components/Pager/index.js.map +1 -0
  223. package/dist/components/Pager/styles.d.ts +4 -0
  224. package/dist/components/Pager/styles.js +3 -0
  225. package/dist/components/Pager/styles.js.map +1 -0
  226. package/dist/components/Pager/types.d.ts +25 -0
  227. package/dist/components/Pager/types.js +3 -0
  228. package/dist/components/Pager/types.js.map +1 -0
  229. package/dist/components/PaginationIndicator/index.d.ts +11 -0
  230. package/dist/components/PaginationIndicator/index.js +49 -0
  231. package/dist/components/PaginationIndicator/index.js.map +1 -0
  232. package/dist/components/PaginationIndicator/styles.d.ts +2 -0
  233. package/dist/components/PaginationIndicator/styles.js +3 -0
  234. package/dist/components/PaginationIndicator/styles.js.map +1 -0
  235. package/dist/components/PaginationIndicator/types.d.ts +10 -0
  236. package/dist/components/PaginationIndicator/types.js +3 -0
  237. package/dist/components/PaginationIndicator/types.js.map +1 -0
  238. package/dist/components/PlacesAutocomplete/index.d.ts +19 -0
  239. package/dist/components/PlacesAutocomplete/index.js +127 -0
  240. package/dist/components/PlacesAutocomplete/index.js.map +1 -0
  241. package/dist/components/PlacesAutocomplete/styles.d.ts +4 -0
  242. package/dist/components/PlacesAutocomplete/styles.js +3 -0
  243. package/dist/components/PlacesAutocomplete/styles.js.map +1 -0
  244. package/dist/components/PlacesAutocomplete/types.d.ts +41 -0
  245. package/dist/components/PlacesAutocomplete/types.js +3 -0
  246. package/dist/components/PlacesAutocomplete/types.js.map +1 -0
  247. package/dist/components/RadioInput/index.d.ts +13 -0
  248. package/dist/components/RadioInput/index.js +123 -0
  249. package/dist/components/RadioInput/index.js.map +1 -0
  250. package/dist/components/RadioInput/styles.d.ts +6 -0
  251. package/dist/components/RadioInput/styles.js +3 -0
  252. package/dist/components/RadioInput/styles.js.map +1 -0
  253. package/dist/components/RadioInput/types.d.ts +27 -0
  254. package/dist/components/RadioInput/types.js +3 -0
  255. package/dist/components/RadioInput/types.js.map +1 -0
  256. package/dist/components/RefreshControl/index.d.ts +13 -0
  257. package/dist/components/RefreshControl/index.js +67 -0
  258. package/dist/components/RefreshControl/index.js.map +1 -0
  259. package/dist/components/RefreshControl/styles.d.ts +1 -0
  260. package/dist/components/RefreshControl/styles.js +3 -0
  261. package/dist/components/RefreshControl/styles.js.map +1 -0
  262. package/dist/components/RefreshControl/types.d.ts +6 -0
  263. package/dist/components/RefreshControl/types.js +3 -0
  264. package/dist/components/RefreshControl/types.js.map +1 -0
  265. package/dist/components/Scroll/index.d.ts +5 -0
  266. package/dist/components/Scroll/index.js +108 -0
  267. package/dist/components/Scroll/index.js.map +1 -0
  268. package/dist/components/Scroll/styles.d.ts +1 -0
  269. package/dist/components/Scroll/styles.js +3 -0
  270. package/dist/components/Scroll/styles.js.map +1 -0
  271. package/dist/components/Scroll/types.d.ts +16 -0
  272. package/dist/components/Scroll/types.js +3 -0
  273. package/dist/components/Scroll/types.js.map +1 -0
  274. package/dist/components/SearchInput/index.d.ts +15 -0
  275. package/dist/components/SearchInput/index.js +93 -0
  276. package/dist/components/SearchInput/index.js.map +1 -0
  277. package/dist/components/Sections/index.d.ts +5 -0
  278. package/dist/components/Sections/index.js +118 -0
  279. package/dist/components/Sections/index.js.map +1 -0
  280. package/dist/components/Sections/styles.d.ts +1 -0
  281. package/dist/components/Sections/styles.js +3 -0
  282. package/dist/components/Sections/styles.js.map +1 -0
  283. package/dist/components/Sections/types.d.ts +34 -0
  284. package/dist/components/Sections/types.js +3 -0
  285. package/dist/components/Sections/types.js.map +1 -0
  286. package/dist/components/SegmentedControl/Option.d.ts +18 -0
  287. package/dist/components/SegmentedControl/Option.js +44 -0
  288. package/dist/components/SegmentedControl/Option.js.map +1 -0
  289. package/dist/components/SegmentedControl/index.d.ts +5 -0
  290. package/dist/components/SegmentedControl/index.js +174 -0
  291. package/dist/components/SegmentedControl/index.js.map +1 -0
  292. package/dist/components/SegmentedControl/styles.d.ts +8 -0
  293. package/dist/components/SegmentedControl/styles.js +3 -0
  294. package/dist/components/SegmentedControl/styles.js.map +1 -0
  295. package/dist/components/SegmentedControl/types.d.ts +34 -0
  296. package/dist/components/SegmentedControl/types.js +3 -0
  297. package/dist/components/SegmentedControl/types.js.map +1 -0
  298. package/dist/components/Select/index.d.ts +13 -0
  299. package/dist/components/Select/index.js +259 -0
  300. package/dist/components/Select/index.js.map +1 -0
  301. package/dist/components/Select/styles.d.ts +9 -0
  302. package/dist/components/Select/styles.js +3 -0
  303. package/dist/components/Select/styles.js.map +1 -0
  304. package/dist/components/Select/types.d.ts +77 -0
  305. package/dist/components/Select/types.js +3 -0
  306. package/dist/components/Select/types.js.map +1 -0
  307. package/dist/components/Slider/index.d.ts +13 -0
  308. package/dist/components/Slider/index.js +183 -0
  309. package/dist/components/Slider/index.js.map +1 -0
  310. package/dist/components/Slider/styles.d.ts +11 -0
  311. package/dist/components/Slider/styles.js +3 -0
  312. package/dist/components/Slider/styles.js.map +1 -0
  313. package/dist/components/Slider/types.d.ts +22 -0
  314. package/dist/components/Slider/types.js +3 -0
  315. package/dist/components/Slider/types.js.map +1 -0
  316. package/dist/components/SortablePhotos/index.d.ts +13 -0
  317. package/dist/components/SortablePhotos/index.js +125 -0
  318. package/dist/components/SortablePhotos/index.js.map +1 -0
  319. package/dist/components/SortablePhotos/styles.d.ts +2 -0
  320. package/dist/components/SortablePhotos/styles.js +3 -0
  321. package/dist/components/SortablePhotos/styles.js.map +1 -0
  322. package/dist/components/SortablePhotos/types.d.ts +54 -0
  323. package/dist/components/SortablePhotos/types.js +3 -0
  324. package/dist/components/SortablePhotos/types.js.map +1 -0
  325. package/dist/components/SortablePhotos/useSortablePhotos.d.ts +21 -0
  326. package/dist/components/SortablePhotos/useSortablePhotos.js +192 -0
  327. package/dist/components/SortablePhotos/useSortablePhotos.js.map +1 -0
  328. package/dist/components/Switch/index.d.ts +13 -0
  329. package/dist/components/Switch/index.js +115 -0
  330. package/dist/components/Switch/index.js.map +1 -0
  331. package/dist/components/Switch/styles.d.ts +7 -0
  332. package/dist/components/Switch/styles.js +3 -0
  333. package/dist/components/Switch/styles.js.map +1 -0
  334. package/dist/components/Switch/types.d.ts +9 -0
  335. package/dist/components/Switch/types.js +3 -0
  336. package/dist/components/Switch/types.js.map +1 -0
  337. package/dist/components/Text/index.d.ts +7 -0
  338. package/dist/components/Text/index.js +127 -0
  339. package/dist/components/Text/index.js.map +1 -0
  340. package/dist/components/Text/styles.d.ts +6 -0
  341. package/dist/components/Text/styles.js +3 -0
  342. package/dist/components/Text/styles.js.map +1 -0
  343. package/dist/components/Text/types.d.ts +16 -0
  344. package/dist/components/Text/types.js +3 -0
  345. package/dist/components/Text/types.js.map +1 -0
  346. package/dist/components/TextInput/index.d.ts +5 -0
  347. package/dist/components/TextInput/index.js +181 -0
  348. package/dist/components/TextInput/index.js.map +1 -0
  349. package/dist/components/TextInput/styles.d.ts +5 -0
  350. package/dist/components/TextInput/styles.js +3 -0
  351. package/dist/components/TextInput/styles.js.map +1 -0
  352. package/dist/components/TextInput/types.d.ts +21 -0
  353. package/dist/components/TextInput/types.js +3 -0
  354. package/dist/components/TextInput/types.js.map +1 -0
  355. package/dist/components/Touchable/index.d.ts +5 -0
  356. package/dist/components/Touchable/index.js +220 -0
  357. package/dist/components/Touchable/index.js.map +1 -0
  358. package/dist/components/Touchable/styles.d.ts +6 -0
  359. package/dist/components/Touchable/styles.js +3 -0
  360. package/dist/components/Touchable/styles.js.map +1 -0
  361. package/dist/components/Touchable/types.d.ts +25 -0
  362. package/dist/components/Touchable/types.js +3 -0
  363. package/dist/components/Touchable/types.js.map +1 -0
  364. package/dist/components/View/index.d.ts +13 -0
  365. package/dist/components/View/index.js +53 -0
  366. package/dist/components/View/index.js.map +1 -0
  367. package/dist/components/View/styles.d.ts +1 -0
  368. package/dist/components/View/styles.js +3 -0
  369. package/dist/components/View/styles.js.map +1 -0
  370. package/dist/components/View/types.d.ts +13 -0
  371. package/dist/components/View/types.js +3 -0
  372. package/dist/components/View/types.js.map +1 -0
  373. package/dist/components/components.d.ts +42 -0
  374. package/dist/components/components.js +59 -0
  375. package/dist/components/components.js.map +1 -0
  376. package/dist/hooks/index.d.ts +2 -0
  377. package/dist/hooks/index.js +15 -0
  378. package/dist/hooks/index.js.map +1 -0
  379. package/dist/index.d.ts +8 -0
  380. package/dist/index.js +44 -0
  381. package/dist/index.js.map +1 -0
  382. package/dist/modules/PressableRipple/index.d.ts +2 -0
  383. package/dist/modules/PressableRipple/index.js +9 -0
  384. package/dist/modules/PressableRipple/index.js.map +1 -0
  385. package/dist/modules/PressableRipple/ripple.d.ts +30 -0
  386. package/dist/modules/PressableRipple/ripple.js +213 -0
  387. package/dist/modules/PressableRipple/ripple.js.map +1 -0
  388. package/dist/modules/PressableRipple/styles.d.ts +19 -0
  389. package/dist/modules/PressableRipple/styles.js +29 -0
  390. package/dist/modules/PressableRipple/styles.js.map +1 -0
  391. package/dist/modules/PressableRipple/type.d.ts +12 -0
  392. package/dist/modules/PressableRipple/type.js +3 -0
  393. package/dist/modules/PressableRipple/type.js.map +1 -0
  394. package/dist/modules/reactNavigation.d.ts +21 -0
  395. package/dist/modules/reactNavigation.js +25 -0
  396. package/dist/modules/reactNavigation.js.map +1 -0
  397. package/dist/modules/textInputMask.d.ts +6 -0
  398. package/dist/modules/textInputMask.js +21 -0
  399. package/dist/modules/textInputMask.js.map +1 -0
  400. package/dist/modules/types/textInputMask.d.ts +7 -0
  401. package/dist/modules/types/textInputMask.js +3 -0
  402. package/dist/modules/types/textInputMask.js.map +1 -0
  403. package/dist/types/index.d.ts +8 -0
  404. package/dist/types/index.js +18 -0
  405. package/dist/types/index.js.map +1 -0
  406. package/dist/types/utility.d.ts +14 -0
  407. package/dist/types/utility.js +3 -0
  408. package/dist/types/utility.js.map +1 -0
  409. package/dist/utils/KeyboardAware/context.d.ts +14 -0
  410. package/dist/utils/KeyboardAware/context.js +28 -0
  411. package/dist/utils/KeyboardAware/context.js.map +1 -0
  412. package/dist/utils/KeyboardAware/index.d.ts +3 -0
  413. package/dist/utils/KeyboardAware/index.js +20 -0
  414. package/dist/utils/KeyboardAware/index.js.map +1 -0
  415. package/dist/utils/KeyboardAware/keyboardHooks.d.ts +21 -0
  416. package/dist/utils/KeyboardAware/keyboardHooks.js +82 -0
  417. package/dist/utils/KeyboardAware/keyboardHooks.js.map +1 -0
  418. package/dist/utils/KeyboardAware/types.d.ts +1 -0
  419. package/dist/utils/KeyboardAware/types.js +7 -0
  420. package/dist/utils/KeyboardAware/types.js.map +1 -0
  421. package/dist/utils/ModalManager/components.d.ts +15 -0
  422. package/dist/utils/ModalManager/components.js +83 -0
  423. package/dist/utils/ModalManager/components.js.map +1 -0
  424. package/dist/utils/ModalManager/context.d.ts +48 -0
  425. package/dist/utils/ModalManager/context.js +184 -0
  426. package/dist/utils/ModalManager/context.js.map +1 -0
  427. package/dist/utils/ModalManager/index.d.ts +10 -0
  428. package/dist/utils/ModalManager/index.js +12 -0
  429. package/dist/utils/ModalManager/index.js.map +1 -0
  430. package/dist/utils/NotificationManager/index.d.ts +55 -0
  431. package/dist/utils/NotificationManager/index.js +304 -0
  432. package/dist/utils/NotificationManager/index.js.map +1 -0
  433. package/dist/utils/NotificationManager/types.d.ts +16 -0
  434. package/dist/utils/NotificationManager/types.js +3 -0
  435. package/dist/utils/NotificationManager/types.js.map +1 -0
  436. package/dist/utils/OSAlert.d.ts +32 -0
  437. package/dist/utils/OSAlert.js +143 -0
  438. package/dist/utils/OSAlert.js.map +1 -0
  439. package/dist/utils/PermissionManager/context.d.ts +53 -0
  440. package/dist/utils/PermissionManager/context.js +324 -0
  441. package/dist/utils/PermissionManager/context.js.map +1 -0
  442. package/dist/utils/PermissionManager/index.d.ts +4 -0
  443. package/dist/utils/PermissionManager/index.js +9 -0
  444. package/dist/utils/PermissionManager/index.js.map +1 -0
  445. package/dist/utils/PermissionManager/types.d.ts +16 -0
  446. package/dist/utils/PermissionManager/types.js +3 -0
  447. package/dist/utils/PermissionManager/types.js.map +1 -0
  448. package/dist/utils/StorageManager.d.ts +20 -0
  449. package/dist/utils/StorageManager.js +86 -0
  450. package/dist/utils/StorageManager.js.map +1 -0
  451. package/dist/utils/Subscription.d.ts +17 -0
  452. package/dist/utils/Subscription.js +72 -0
  453. package/dist/utils/Subscription.js.map +1 -0
  454. package/dist/utils/deprecated/notifications.d.ts +40 -0
  455. package/dist/utils/deprecated/notifications.js +274 -0
  456. package/dist/utils/deprecated/notifications.js.map +1 -0
  457. package/dist/utils/hooks.d.ts +68 -0
  458. package/dist/utils/hooks.js +228 -0
  459. package/dist/utils/hooks.js.map +1 -0
  460. package/dist/utils/index.d.ts +14 -0
  461. package/dist/utils/index.js +44 -0
  462. package/dist/utils/index.js.map +1 -0
  463. package/dist/utils/input.d.ts +35 -0
  464. package/dist/utils/input.js +49 -0
  465. package/dist/utils/input.js.map +1 -0
  466. package/dist/utils/locale.d.ts +1 -0
  467. package/dist/utils/locale.js +10 -0
  468. package/dist/utils/locale.js.map +1 -0
  469. package/dist/utils/misc.d.ts +12 -0
  470. package/dist/utils/misc.js +124 -0
  471. package/dist/utils/misc.js.map +1 -0
  472. package/dist/utils/theme.d.ts +23 -0
  473. package/dist/utils/theme.js +41 -0
  474. package/dist/utils/theme.js.map +1 -0
  475. package/dist/utils/useQueryListRefresh.d.ts +12 -0
  476. package/dist/utils/useQueryListRefresh.js +42 -0
  477. package/dist/utils/useQueryListRefresh.js.map +1 -0
  478. package/package.json +9 -10
  479. package/package.json.bak +53 -0
  480. package/src/components/Badge/index.tsx +3 -3
  481. package/src/components/Image/index.tsx +1 -1
  482. package/src/components/Image/types.ts +1 -1
  483. package/src/components/Pager/index.tsx +4 -4
  484. package/src/components/Pager/types.ts +2 -2
  485. package/src/components/PlacesAutocomplete/index.tsx +3 -1
  486. package/src/modules/PressableRipple/ripple.js +61 -61
  487. package/src/utils/StorageManager.ts +112 -0
  488. package/src/utils/hooks.ts +2 -51
  489. package/src/utils/index.ts +2 -1
  490. package/src/utils/theme.ts +13 -9
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __assign = (this && this.__assign) || function () {
18
+ __assign = Object.assign || function(t) {
19
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
20
+ s = arguments[i];
21
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
+ t[p] = s[p];
23
+ }
24
+ return t;
25
+ };
26
+ return __assign.apply(this, arguments);
27
+ };
28
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
29
+ if (k2 === undefined) k2 = k;
30
+ var desc = Object.getOwnPropertyDescriptor(m, k);
31
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
32
+ desc = { enumerable: true, get: function() { return m[k]; } };
33
+ }
34
+ Object.defineProperty(o, k2, desc);
35
+ }) : (function(o, m, k, k2) {
36
+ if (k2 === undefined) k2 = k;
37
+ o[k2] = m[k];
38
+ }));
39
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
40
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
41
+ }) : function(o, v) {
42
+ o["default"] = v;
43
+ });
44
+ var __importStar = (this && this.__importStar) || function (mod) {
45
+ if (mod && mod.__esModule) return mod;
46
+ var result = {};
47
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
48
+ __setModuleDefault(result, mod);
49
+ return result;
50
+ };
51
+ var __rest = (this && this.__rest) || function (s, e) {
52
+ var t = {};
53
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
54
+ t[p] = s[p];
55
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
56
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
57
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
58
+ t[p[i]] = s[p[i]];
59
+ }
60
+ return t;
61
+ };
62
+ var __importDefault = (this && this.__importDefault) || function (mod) {
63
+ return (mod && mod.__esModule) ? mod : { "default": mod };
64
+ };
65
+ Object.defineProperty(exports, "__esModule", { value: true });
66
+ var prop_types_1 = __importDefault(require("prop-types"));
67
+ var react_1 = __importStar(require("react"));
68
+ var react_native_1 = require("react-native");
69
+ var styles_js_1 = require("./styles.js");
70
+ var Ripple = /** @class */ (function (_super) {
71
+ __extends(Ripple, _super);
72
+ function Ripple(props) {
73
+ var _this = _super.call(this, props) || this;
74
+ _this.onLayout = _this.onLayout.bind(_this);
75
+ _this.onPress = _this.onPress.bind(_this);
76
+ _this.onPressIn = _this.onPressIn.bind(_this);
77
+ _this.onPressOut = _this.onPressOut.bind(_this);
78
+ _this.onLongPress = _this.onLongPress.bind(_this);
79
+ _this.onAnimationEnd = _this.onAnimationEnd.bind(_this);
80
+ _this.renderRipple = _this.renderRipple.bind(_this);
81
+ _this.unique = 0;
82
+ _this.mounted = false;
83
+ _this.state = {
84
+ width: 0,
85
+ height: 0,
86
+ ripples: [],
87
+ };
88
+ return _this;
89
+ }
90
+ Ripple.prototype.componentDidMount = function () {
91
+ this.mounted = true;
92
+ };
93
+ Ripple.prototype.componentWillUnmount = function () {
94
+ this.mounted = false;
95
+ };
96
+ Ripple.prototype.onLayout = function (event) {
97
+ var _a = event.nativeEvent.layout, width = _a.width, height = _a.height;
98
+ var onLayout = this.props.onLayout;
99
+ if ('function' === typeof onLayout) {
100
+ onLayout(event);
101
+ }
102
+ this.setState({ width: width, height: height });
103
+ };
104
+ Ripple.prototype.onPress = function (event) {
105
+ var onPress = this.props.onPress;
106
+ if ('function' === typeof onPress) {
107
+ onPress(event);
108
+ }
109
+ };
110
+ Ripple.prototype.onLongPress = function (event) {
111
+ var onLongPress = this.props.onLongPress;
112
+ if ('function' === typeof onLongPress) {
113
+ requestAnimationFrame(function () { return onLongPress(event); });
114
+ }
115
+ this.startRipple(event);
116
+ };
117
+ Ripple.prototype.onPressIn = function (event) {
118
+ var onPressIn = this.props.onPressIn;
119
+ if ('function' === typeof onPressIn) {
120
+ onPressIn(event);
121
+ }
122
+ this.startRipple(event);
123
+ };
124
+ Ripple.prototype.onPressOut = function (event) {
125
+ var onPressOut = this.props.onPressOut;
126
+ if ('function' === typeof onPressOut) {
127
+ onPressOut(event);
128
+ }
129
+ };
130
+ Ripple.prototype.onAnimationEnd = function () {
131
+ if (this.mounted) {
132
+ this.setState(function (_a) {
133
+ var ripples = _a.ripples;
134
+ return ({ ripples: ripples.slice(1) });
135
+ });
136
+ }
137
+ };
138
+ Ripple.prototype.startRipple = function (event) {
139
+ var _a = this.state, width = _a.width, height = _a.height;
140
+ var _b = this.props, rippleDuration = _b.rippleDuration, rippleCentered = _b.rippleCentered, rippleSize = _b.rippleSize, onRippleAnimation = _b.onRippleAnimation;
141
+ var w2 = 0.5 * width;
142
+ var h2 = 0.5 * height;
143
+ var _c = rippleCentered ?
144
+ { locationX: w2, locationY: h2 } :
145
+ event.nativeEvent, locationX = _c.locationX, locationY = _c.locationY;
146
+ var offsetX = Math.abs(w2 - locationX);
147
+ var offsetY = Math.abs(h2 - locationY);
148
+ var R = rippleSize > 0 ?
149
+ 0.5 * rippleSize :
150
+ Math.sqrt(Math.pow(w2 + offsetX, 2) + Math.pow(h2 + offsetY, 2));
151
+ var ripple = {
152
+ unique: this.unique++,
153
+ progress: new react_native_1.Animated.Value(0),
154
+ locationX: locationX,
155
+ locationY: locationY,
156
+ R: R,
157
+ };
158
+ var animation = react_native_1.Animated
159
+ .timing(ripple.progress, {
160
+ toValue: 1,
161
+ easing: react_native_1.Easing.out(react_native_1.Easing.ease),
162
+ duration: rippleDuration,
163
+ useNativeDriver: true,
164
+ });
165
+ onRippleAnimation(animation, this.onAnimationEnd);
166
+ this.setState(function (_a) {
167
+ var ripples = _a.ripples;
168
+ return ({ ripples: ripples.concat(ripple) });
169
+ });
170
+ };
171
+ Ripple.prototype.renderRipple = function (_a) {
172
+ var _b;
173
+ var unique = _a.unique, progress = _a.progress, locationX = _a.locationX, locationY = _a.locationY, R = _a.R;
174
+ var _c = this.props, rippleColor = _c.rippleColor, _d = _c.color, color = _d === void 0 ? rippleColor : _d, rippleOpacity = _c.rippleOpacity, rippleFades = _c.rippleFades;
175
+ var rippleStyle = (_b = {
176
+ top: locationY - styles_js_1.radius
177
+ },
178
+ _b[react_native_1.I18nManager.isRTL ? 'right' : 'left'] = locationX - styles_js_1.radius,
179
+ _b.backgroundColor = color,
180
+ _b.transform = [{
181
+ scale: progress.interpolate({
182
+ inputRange: [0, 1],
183
+ outputRange: [0.5 / styles_js_1.radius, R / styles_js_1.radius],
184
+ }),
185
+ }],
186
+ _b.opacity = rippleFades ?
187
+ progress.interpolate({
188
+ inputRange: [0, 1],
189
+ outputRange: [rippleOpacity, 0],
190
+ }) :
191
+ rippleOpacity,
192
+ _b);
193
+ return (<react_native_1.Animated.View style={[styles_js_1.styles.ripple, rippleStyle]} key={unique}/>);
194
+ };
195
+ Ripple.prototype.render = function () {
196
+ var ripples = this.state.ripples;
197
+ var _a = this.props, delayLongPress = _a.delayLongPress, delayPressIn = _a.delayPressIn, delayPressOut = _a.delayPressOut, disabled = _a.disabled, hitSlop = _a.hitSlop, pressRetentionOffset = _a.pressRetentionOffset, children = _a.children, rippleContainerBorderRadius = _a.rippleContainerBorderRadius, testID = _a.testID, nativeID = _a.nativeID, accessible = _a.accessible, accessibilityHint = _a.accessibilityHint, accessibilityLabel = _a.accessibilityLabel, onPress = _a.onPress, onLongPress = _a.onLongPress, onLayout = _a.onLayout, onRippleAnimation = _a.onRippleAnimation, rippleColor = _a.rippleColor, rippleOpacity = _a.rippleOpacity, rippleDuration = _a.rippleDuration, rippleSize = _a.rippleSize, rippleCentered = _a.rippleCentered, rippleSequential = _a.rippleSequential, rippleFades = _a.rippleFades, ref = _a.ref, radiusStyles = _a.radiusStyles, props = __rest(_a, ["delayLongPress", "delayPressIn", "delayPressOut", "disabled", "hitSlop", "pressRetentionOffset", "children", "rippleContainerBorderRadius", "testID", "nativeID", "accessible", "accessibilityHint", "accessibilityLabel", "onPress", "onLongPress", "onLayout", "onRippleAnimation", "rippleColor", "rippleOpacity", "rippleDuration", "rippleSize", "rippleCentered", "rippleSequential", "rippleFades", "ref", "radiusStyles"]);
198
+ var touchableProps = __assign({ disabled: disabled, hitSlop: hitSlop, pressRetentionOffset: pressRetentionOffset, testID: testID, accessible: accessible, accessibilityHint: accessibilityHint, accessibilityLabel: accessibilityLabel, onLayout: this.onLayout, onPress: this.onPress, onPressIn: this.onPressIn, onPressOut: this.onPressOut, onLongPress: onLongPress ? this.onLongPress : undefined }, ('web' !== react_native_1.Platform.OS ? { nativeID: nativeID } : null));
199
+ return (<react_native_1.TouchableWithoutFeedback {...touchableProps} ref={ref}>
200
+ <react_native_1.Animated.View {...props} pointerEvents='box-only'>
201
+ {children}
202
+ <react_native_1.View style={[styles_js_1.styles.container, radiusStyles]}>
203
+ {ripples.map(this.renderRipple)}
204
+ </react_native_1.View>
205
+ </react_native_1.Animated.View>
206
+ </react_native_1.TouchableWithoutFeedback>);
207
+ };
208
+ Ripple.defaultProps = __assign(__assign({}, react_native_1.TouchableWithoutFeedback.defaultProps), { rippleColor: 'rgb(0, 0, 0)', rippleOpacity: 0.30, rippleDuration: 400, rippleSize: 0, rippleContainerBorderRadius: 0, rippleCentered: false, rippleSequential: false, rippleFades: true, disabled: false, onRippleAnimation: function (animation, callback) { return animation.start(callback); } });
209
+ Ripple.propTypes = __assign(__assign(__assign({}, react_native_1.Animated.View.propTypes), react_native_1.TouchableWithoutFeedback.propTypes), { rippleColor: prop_types_1.default.string, rippleOpacity: prop_types_1.default.number, rippleDuration: prop_types_1.default.number, rippleSize: prop_types_1.default.number, rippleContainerBorderRadius: prop_types_1.default.number, rippleCentered: prop_types_1.default.bool, rippleSequential: prop_types_1.default.bool, rippleFades: prop_types_1.default.bool, disabled: prop_types_1.default.bool, onRippleAnimation: prop_types_1.default.func });
210
+ return Ripple;
211
+ }(react_1.PureComponent));
212
+ exports.default = Ripple;
213
+ //# sourceMappingURL=ripple.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ripple.js","sourceRoot":"","sources":["../../../src/modules/PressableRipple/ripple.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAAkC;AAClC,6CAA4C;AAC5C,6CAAsG;AACtG,yCAA4C;AAE5C;IAAoC,0BAAa;IAkC/C,gBAAY,KAAK;QAAjB,YACE,kBAAM,KAAK,CAAC,SAmBb;QAjBC,KAAI,CAAC,QAAQ,GAAG,KAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAI,CAAC,CAAA;QACxC,KAAI,CAAC,OAAO,GAAG,KAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAI,CAAC,CAAA;QACtC,KAAI,CAAC,SAAS,GAAG,KAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAI,CAAC,CAAA;QAC1C,KAAI,CAAC,UAAU,GAAG,KAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAI,CAAC,CAAA;QAC5C,KAAI,CAAC,WAAW,GAAG,KAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAI,CAAC,CAAA;QAC9C,KAAI,CAAC,cAAc,GAAG,KAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAI,CAAC,CAAA;QAEpD,KAAI,CAAC,YAAY,GAAG,KAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAI,CAAC,CAAA;QAEhD,KAAI,CAAC,MAAM,GAAG,CAAC,CAAA;QACf,KAAI,CAAC,OAAO,GAAG,KAAK,CAAA;QAEpB,KAAI,CAAC,KAAK,GAAG;YACX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C,EACb,2BAA2B,EAAE,CAAC,EAC9B,cAAc,EAAE,KAAK,EACrB,gBAAgB,EAAE,KAAK,EACvB,WAAW,EAAE,IAAI,EACjB,QAAQ,EAAE,KAAK,EAEf,iBAAiB,EAAE,UAAC,SAAS,EAAE,QAAQ,IAAK,OAAA,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAzB,CAAyB,IACtE;IAEM,gBAAS,kCACX,uBAAQ,CAAC,IAAI,CAAC,SAAS,GACvB,uCAAwB,CAAC,SAAS,KAErC,WAAW,EAAE,oBAAS,CAAC,MAAM,EAC7B,aAAa,EAAE,oBAAS,CAAC,MAAM,EAC/B,cAAc,EAAE,oBAAS,CAAC,MAAM,EAChC,UAAU,EAAE,oBAAS,CAAC,MAAM,EAC5B,2BAA2B,EAAE,oBAAS,CAAC,MAAM,EAC7C,cAAc,EAAE,oBAAS,CAAC,IAAI,EAC9B,gBAAgB,EAAE,oBAAS,CAAC,IAAI,EAChC,WAAW,EAAE,oBAAS,CAAC,IAAI,EAC3B,QAAQ,EAAE,oBAAS,CAAC,IAAI,EAExB,iBAAiB,EAAE,oBAAS,CAAC,IAAI,IAClC;IA4NH,aAAC;CAAA,AA5PD,CAAoC,qBAAa,GA4PhD;kBA5PoB,MAAM"}
@@ -0,0 +1,19 @@
1
+ export namespace styles {
2
+ const container: {
3
+ backgroundColor: string;
4
+ overflow: "hidden";
5
+ position: "absolute";
6
+ left: 0;
7
+ right: 0;
8
+ top: 0;
9
+ bottom: 0;
10
+ };
11
+ namespace ripple {
12
+ export const width: number;
13
+ export const height: number;
14
+ export { radius as borderRadius };
15
+ export const overflow: "hidden";
16
+ export const position: "absolute";
17
+ }
18
+ }
19
+ export const radius: 10;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.radius = exports.styles = void 0;
15
+ var react_native_1 = require("react-native");
16
+ var radius = 10;
17
+ exports.radius = radius;
18
+ var styles = react_native_1.StyleSheet.create({
19
+ container: __assign(__assign({}, react_native_1.StyleSheet.absoluteFillObject), { backgroundColor: 'transparent', overflow: 'hidden' }),
20
+ ripple: {
21
+ width: radius * 2,
22
+ height: radius * 2,
23
+ borderRadius: radius,
24
+ overflow: 'hidden',
25
+ position: 'absolute',
26
+ },
27
+ });
28
+ exports.styles = styles;
29
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/modules/PressableRipple/styles.js"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,6CAAyC;AAEzC,IAAM,MAAM,GAAG,EAAE,CAAA;AAmBA,wBAAM;AAjBvB,IAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,wBACJ,yBAAU,CAAC,kBAAkB,KAEhC,eAAe,EAAE,aAAa,EAC9B,QAAQ,EAAE,QAAQ,GACnB;IAED,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,GAAG,CAAC;QACjB,MAAM,EAAE,MAAM,GAAG,CAAC;QAClB,YAAY,EAAE,MAAM;QACpB,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,UAAU;KACrB;CACF,CAAC,CAAA;AAEO,wBAAM"}
@@ -0,0 +1,12 @@
1
+ import { Animated } from 'react-native';
2
+ export type PressableRippleProps = {
3
+ rippleColor?: string;
4
+ rippleOpacity?: number;
5
+ rippleDuration?: number;
6
+ rippleSize?: number;
7
+ rippleCentered?: boolean;
8
+ rippleSequential?: boolean;
9
+ rippleFades?: boolean;
10
+ color?: string;
11
+ onRippleAnimation?: (animation: Animated.CompositeAnimation, callback: () => void) => void;
12
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/modules/PressableRipple/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ export { createStackNavigator } from '@react-navigation/stack';
2
+ export { createDrawerNavigator } from '@react-navigation/drawer';
3
+ export { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
4
+ export { useIsFocused } from '@react-navigation/native';
5
+ export declare function useNavigationContext(): import("@react-navigation/core").NavigationContainerRef<import("@react-navigation/core").ParamListBase> | import("@react-navigation/core").NavigationProp<import("@react-navigation/core").ParamListBase, string, undefined, Readonly<{
6
+ key: string;
7
+ index: number;
8
+ routeNames: string[];
9
+ history?: unknown[];
10
+ routes: (Readonly<{
11
+ key: string;
12
+ name: string;
13
+ path?: string;
14
+ }> & Readonly<{
15
+ params?: object;
16
+ }> & {
17
+ state?: Readonly<any> | import("@react-navigation/core").PartialState<Readonly<any>>;
18
+ })[];
19
+ type: string;
20
+ stale: false;
21
+ }>, {}, {}>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useNavigationContext = exports.useIsFocused = exports.createBottomTabNavigator = exports.createDrawerNavigator = exports.createStackNavigator = void 0;
7
+ var react_1 = __importDefault(require("react"));
8
+ var stack_1 = require("@react-navigation/stack");
9
+ Object.defineProperty(exports, "createStackNavigator", { enumerable: true, get: function () { return stack_1.createStackNavigator; } });
10
+ var drawer_1 = require("@react-navigation/drawer");
11
+ Object.defineProperty(exports, "createDrawerNavigator", { enumerable: true, get: function () { return drawer_1.createDrawerNavigator; } });
12
+ var bottom_tabs_1 = require("@react-navigation/bottom-tabs");
13
+ Object.defineProperty(exports, "createBottomTabNavigator", { enumerable: true, get: function () { return bottom_tabs_1.createBottomTabNavigator; } });
14
+ var core_1 = require("@react-navigation/core");
15
+ var native_1 = require("@react-navigation/native");
16
+ Object.defineProperty(exports, "useIsFocused", { enumerable: true, get: function () { return native_1.useIsFocused; } });
17
+ function useNavigationContext() {
18
+ var root = react_1.default.useContext(core_1.NavigationContainerRefContext);
19
+ var navigation = react_1.default.useContext(core_1.NavigationContext);
20
+ if (!navigation && !root)
21
+ return undefined;
22
+ return (navigation !== null && navigation !== void 0 ? navigation : root);
23
+ }
24
+ exports.useNavigationContext = useNavigationContext;
25
+ //# sourceMappingURL=reactNavigation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactNavigation.js","sourceRoot":"","sources":["../../src/modules/reactNavigation.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAyB;AACzB,iDAA8D;AAArD,6GAAA,oBAAoB,OAAA;AAC7B,mDAAgE;AAAvD,+GAAA,qBAAqB,OAAA;AAC9B,6DAAwE;AAA/D,uHAAA,wBAAwB,OAAA;AACjC,+CAAyF;AACzF,mDAAuD;AAA9C,sGAAA,YAAY,OAAA;AAErB,SAAgB,oBAAoB;IAClC,IAAM,IAAI,GAAG,eAAK,CAAC,UAAU,CAAC,oCAA6B,CAAC,CAAA;IAC5D,IAAM,UAAU,GAAG,eAAK,CAAC,UAAU,CAAC,wBAAiB,CAAC,CAAA;IACtD,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAA;IAE1C,OAAO,CAAC,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,IAAI,CAAC,CAAA;AAC7B,CAAC;AAND,oDAMC"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { TextInputMaskProps } from 'react-native-masked-text';
3
+ export declare const MaskedTextInput: import("react").ForwardRefExoticComponent<Partial<TextInputMaskProps> & {
4
+ ref?: any;
5
+ }>;
6
+ export * from './types/textInputMask';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.MaskedTextInput = void 0;
18
+ var react_native_masked_text_1 = require("react-native-masked-text");
19
+ exports.MaskedTextInput = react_native_masked_text_1.TextInputMask;
20
+ __exportStar(require("./types/textInputMask"), exports);
21
+ //# sourceMappingURL=textInputMask.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textInputMask.js","sourceRoot":"","sources":["../../src/modules/textInputMask.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qEAA4E;AAE/D,QAAA,eAAe,GAAG,wCAE7B,CAAA;AAEF,wDAAqC"}
@@ -0,0 +1,7 @@
1
+ import { FormTypes } from '@codeleap/common';
2
+ import { TextInputProps } from 'react-native';
3
+ import { TextInputMaskProps as RNTextInputMaskProps } from 'react-native-masked-text';
4
+ export type TextInputMaskProps = Omit<RNTextInputMaskProps, keyof TextInputProps> & {
5
+ masking: FormTypes.TextField['masking'];
6
+ onChangeText: RNTextInputMaskProps['onChangeText'];
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=textInputMask.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textInputMask.js","sourceRoot":"","sources":["../../../src/modules/types/textInputMask.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export * from './utility';
3
+ export type ComponentWithDefaultProps<P = any> = ((props: P) => JSX.Element) & {
4
+ defaultProps: Partial<P>;
5
+ };
6
+ export type ForwardRefComponentWithDefaultProps<P = any, R = any> = ((props: P, ref: R) => JSX.Element) & {
7
+ defaultProps: Partial<P>;
8
+ };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./utility"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB"}
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ import { StyleProp } from 'react-native';
3
+ import { EasingFn } from 'react-native-reanimated';
4
+ export type StylesOf<C extends string> = Partial<Record<C, StyleProp<any>>>;
5
+ type TransitionBase = {
6
+ easing?: EasingFn;
7
+ type?: string;
8
+ duration?: number;
9
+ };
10
+ export type TransitionConfig = TransitionBase | {
11
+ [p: string]: TransitionBase;
12
+ };
13
+ export type ChildrenProp = ReactNode | ReactNode[] | undefined;
14
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=utility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utility.js","sourceRoot":"","sources":["../../src/types/utility.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ type TKeyboardCtx = {
3
+ isVisible: boolean;
4
+ height: number;
5
+ };
6
+ /**
7
+ *
8
+ * @deprecated useKeyboard does not need to be wrapped in a provider
9
+ */
10
+ export declare const KeyboardProvider: ({ children }: {
11
+ children: any;
12
+ }) => JSX.Element;
13
+ export declare const useKeyboard: () => TKeyboardCtx;
14
+ export {};
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useKeyboard = exports.KeyboardProvider = void 0;
7
+ var react_1 = __importDefault(require("react"));
8
+ var react_native_avoid_softinput_1 = require("react-native-avoid-softinput");
9
+ /**
10
+ *
11
+ * @deprecated useKeyboard does not need to be wrapped in a provider
12
+ */
13
+ var KeyboardProvider = function (_a) {
14
+ var children = _a.children;
15
+ return <>
16
+ {children}
17
+ </>;
18
+ };
19
+ exports.KeyboardProvider = KeyboardProvider;
20
+ var useKeyboard = function () {
21
+ var state = (0, react_native_avoid_softinput_1.useSoftInputState)();
22
+ return {
23
+ isVisible: state.isSoftInputShown,
24
+ height: state.softInputHeight,
25
+ };
26
+ };
27
+ exports.useKeyboard = useKeyboard;
28
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/utils/KeyboardAware/context.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAyB;AACzB,6EAAgE;AAOhE;;;GAGG;AACI,IAAM,gBAAgB,GAAG,UAAC,EAAY;QAAV,QAAQ,cAAA;IACzC,OAAO,EACL;IAAA,CAAC,QAAQ,CACX;EAAA,GAAG,CAAA;AACL,CAAC,CAAA;AAJY,QAAA,gBAAgB,oBAI5B;AAEM,IAAM,WAAW,GAAG;IACzB,IAAM,KAAK,GAAG,IAAA,gDAAiB,GAAE,CAAA;IACjC,OAAO;QACL,SAAS,EAAE,KAAK,CAAC,gBAAgB;QACjC,MAAM,EAAE,KAAK,CAAC,eAAe;KAC9B,CAAA;AACH,CAAC,CAAA;AANY,QAAA,WAAW,eAMvB"}
@@ -0,0 +1,3 @@
1
+ export * from './keyboardHooks';
2
+ export * from './context';
3
+ export * from './types';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./keyboardHooks"), exports);
18
+ __exportStar(require("./context"), exports);
19
+ __exportStar(require("./types"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/KeyboardAware/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,kDAA+B;AAC/B,4CAAyB;AACzB,0CAAuB"}
@@ -0,0 +1,21 @@
1
+ import { TransitionConfig } from '../../types';
2
+ export type GetKeyboardAwarePropsOptions = {
3
+ baseStyleProp?: 'style' | 'contentContainerStyle';
4
+ adapt?: 'height' | 'maxHeight' | 'paddingBottom' | 'marginBottom' | 'bottom';
5
+ enabled?: boolean;
6
+ animated?: boolean;
7
+ transition?: TransitionConfig;
8
+ enableOnAndroid?: boolean;
9
+ };
10
+ type UseKeyboardAwareViewParams = {
11
+ debugName?: string;
12
+ styles?: any;
13
+ } & GetKeyboardAwarePropsOptions;
14
+ export declare const useKeyboardAwareView: (params?: UseKeyboardAwareViewParams) => {
15
+ keyboard: {
16
+ isVisible: boolean;
17
+ height: number;
18
+ };
19
+ style: any;
20
+ };
21
+ export {};