@codeleap/mobile 2.3.27-1 → 2.3.27-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (432) hide show
  1. package/package.json +1 -1
  2. package/src/components/List/index.tsx +2 -7
  3. package/src/components/Scroll/index.tsx +1 -12
  4. package/dist/components/ActionIcon/index.d.ts +0 -13
  5. package/dist/components/ActionIcon/index.js +0 -55
  6. package/dist/components/ActionIcon/index.js.map +0 -1
  7. package/dist/components/ActionIcon/styles.d.ts +0 -65
  8. package/dist/components/ActionIcon/styles.js +0 -61
  9. package/dist/components/ActionIcon/styles.js.map +0 -1
  10. package/dist/components/ActivityIndicator/index.d.ts +0 -15
  11. package/dist/components/ActivityIndicator/index.js +0 -59
  12. package/dist/components/ActivityIndicator/index.js.map +0 -1
  13. package/dist/components/ActivityIndicator/styles.d.ts +0 -59
  14. package/dist/components/ActivityIndicator/styles.js +0 -52
  15. package/dist/components/ActivityIndicator/styles.js.map +0 -1
  16. package/dist/components/Animated.d.ts +0 -124
  17. package/dist/components/Animated.js +0 -59
  18. package/dist/components/Animated.js.map +0 -1
  19. package/dist/components/Autocomplete/index.d.ts +0 -34
  20. package/dist/components/Autocomplete/index.js +0 -130
  21. package/dist/components/Autocomplete/index.js.map +0 -1
  22. package/dist/components/Autocomplete/styles.d.ts +0 -57
  23. package/dist/components/Autocomplete/styles.js +0 -89
  24. package/dist/components/Autocomplete/styles.js.map +0 -1
  25. package/dist/components/Autocomplete/types.d.ts +0 -59
  26. package/dist/components/Autocomplete/types.js +0 -3
  27. package/dist/components/Autocomplete/types.js.map +0 -1
  28. package/dist/components/Avatar/index.d.ts +0 -23
  29. package/dist/components/Avatar/index.js +0 -95
  30. package/dist/components/Avatar/index.js.map +0 -1
  31. package/dist/components/Avatar/styles.d.ts +0 -4
  32. package/dist/components/Avatar/styles.js +0 -7
  33. package/dist/components/Avatar/styles.js.map +0 -1
  34. package/dist/components/AvatarGroup/index.d.ts +0 -18
  35. package/dist/components/AvatarGroup/index.js +0 -70
  36. package/dist/components/AvatarGroup/index.js.map +0 -1
  37. package/dist/components/AvatarGroup/styles.d.ts +0 -4
  38. package/dist/components/AvatarGroup/styles.js +0 -7
  39. package/dist/components/AvatarGroup/styles.js.map +0 -1
  40. package/dist/components/Backdrop/index.d.ts +0 -14
  41. package/dist/components/Backdrop/index.js +0 -63
  42. package/dist/components/Backdrop/index.js.map +0 -1
  43. package/dist/components/Backdrop/styles.d.ts +0 -53
  44. package/dist/components/Backdrop/styles.js +0 -28
  45. package/dist/components/Backdrop/styles.js.map +0 -1
  46. package/dist/components/Badge/index.d.ts +0 -31
  47. package/dist/components/Badge/index.js +0 -110
  48. package/dist/components/Badge/index.js.map +0 -1
  49. package/dist/components/Badge/styles.d.ts +0 -5
  50. package/dist/components/Badge/styles.js +0 -7
  51. package/dist/components/Badge/styles.js.map +0 -1
  52. package/dist/components/Button/index.d.ts +0 -246
  53. package/dist/components/Button/index.js +0 -119
  54. package/dist/components/Button/index.js.map +0 -1
  55. package/dist/components/Button/styles.d.ts +0 -65
  56. package/dist/components/Button/styles.js +0 -61
  57. package/dist/components/Button/styles.js.map +0 -1
  58. package/dist/components/Calendar/index.d.ts +0 -15
  59. package/dist/components/Calendar/index.js +0 -80
  60. package/dist/components/Calendar/index.js.map +0 -1
  61. package/dist/components/Calendar/style.d.ts +0 -4
  62. package/dist/components/Calendar/style.js +0 -36
  63. package/dist/components/Calendar/style.js.map +0 -1
  64. package/dist/components/Calendar/types.d.ts +0 -95
  65. package/dist/components/Calendar/types.js +0 -3
  66. package/dist/components/Calendar/types.js.map +0 -1
  67. package/dist/components/Checkbox/index.d.ts +0 -15
  68. package/dist/components/Checkbox/index.js +0 -85
  69. package/dist/components/Checkbox/index.js.map +0 -1
  70. package/dist/components/Checkbox/styles.d.ts +0 -56
  71. package/dist/components/Checkbox/styles.js +0 -53
  72. package/dist/components/Checkbox/styles.js.map +0 -1
  73. package/dist/components/ContentView/index.d.ts +0 -12
  74. package/dist/components/ContentView/index.js +0 -66
  75. package/dist/components/ContentView/index.js.map +0 -1
  76. package/dist/components/ContentView/styles.d.ts +0 -53
  77. package/dist/components/ContentView/styles.js +0 -26
  78. package/dist/components/ContentView/styles.js.map +0 -1
  79. package/dist/components/DatePickerModal/index.d.ts +0 -8
  80. package/dist/components/DatePickerModal/index.js +0 -153
  81. package/dist/components/DatePickerModal/index.js.map +0 -1
  82. package/dist/components/DatePickerModal/styles.d.ts +0 -5
  83. package/dist/components/DatePickerModal/styles.js +0 -7
  84. package/dist/components/DatePickerModal/styles.js.map +0 -1
  85. package/dist/components/DatePickerModal/types.d.ts +0 -40
  86. package/dist/components/DatePickerModal/types.js +0 -3
  87. package/dist/components/DatePickerModal/types.js.map +0 -1
  88. package/dist/components/Drawer/index.d.ts +0 -7
  89. package/dist/components/Drawer/index.js +0 -70
  90. package/dist/components/Drawer/index.js.map +0 -1
  91. package/dist/components/Drawer/styles.d.ts +0 -56
  92. package/dist/components/Drawer/styles.js +0 -39
  93. package/dist/components/Drawer/styles.js.map +0 -1
  94. package/dist/components/EmptyPlaceholder/index.d.ts +0 -25
  95. package/dist/components/EmptyPlaceholder/index.js +0 -92
  96. package/dist/components/EmptyPlaceholder/index.js.map +0 -1
  97. package/dist/components/EmptyPlaceholder/styles.d.ts +0 -55
  98. package/dist/components/EmptyPlaceholder/styles.js +0 -30
  99. package/dist/components/EmptyPlaceholder/styles.js.map +0 -1
  100. package/dist/components/FileInput/index.d.ts +0 -24
  101. package/dist/components/FileInput/index.js +0 -183
  102. package/dist/components/FileInput/index.js.map +0 -1
  103. package/dist/components/FileInput/styles.d.ts +0 -53
  104. package/dist/components/FileInput/styles.js +0 -19
  105. package/dist/components/FileInput/styles.js.map +0 -1
  106. package/dist/components/Grid/index.d.ts +0 -32
  107. package/dist/components/Grid/index.js +0 -84
  108. package/dist/components/Grid/index.js.map +0 -1
  109. package/dist/components/Grid/styles.d.ts +0 -54
  110. package/dist/components/Grid/styles.js +0 -19
  111. package/dist/components/Grid/styles.js.map +0 -1
  112. package/dist/components/Icon/index.d.ts +0 -14
  113. package/dist/components/Icon/index.js +0 -79
  114. package/dist/components/Icon/index.js.map +0 -1
  115. package/dist/components/Icon/styles.d.ts +0 -61
  116. package/dist/components/Icon/styles.js +0 -49
  117. package/dist/components/Icon/styles.js.map +0 -1
  118. package/dist/components/Image/index.d.ts +0 -21
  119. package/dist/components/Image/index.js +0 -109
  120. package/dist/components/Image/index.js.map +0 -1
  121. package/dist/components/Image/styles.d.ts +0 -54
  122. package/dist/components/Image/styles.js +0 -25
  123. package/dist/components/Image/styles.js.map +0 -1
  124. package/dist/components/ImageView/Spotlight.d.ts +0 -25
  125. package/dist/components/ImageView/Spotlight.js +0 -154
  126. package/dist/components/ImageView/Spotlight.js.map +0 -1
  127. package/dist/components/ImageView/component.d.ts +0 -5
  128. package/dist/components/ImageView/component.js +0 -54
  129. package/dist/components/ImageView/component.js.map +0 -1
  130. package/dist/components/ImageView/index.d.ts +0 -2
  131. package/dist/components/ImageView/index.js +0 -19
  132. package/dist/components/ImageView/index.js.map +0 -1
  133. package/dist/components/InputBase/index.d.ts +0 -37
  134. package/dist/components/InputBase/index.js +0 -90
  135. package/dist/components/InputBase/index.js.map +0 -1
  136. package/dist/components/InputBase/styles.d.ts +0 -27
  137. package/dist/components/InputBase/styles.js +0 -92
  138. package/dist/components/InputBase/styles.js.map +0 -1
  139. package/dist/components/InputBase/types.d.ts +0 -28
  140. package/dist/components/InputBase/types.js +0 -3
  141. package/dist/components/InputBase/types.js.map +0 -1
  142. package/dist/components/InputBase/utils.d.ts +0 -11
  143. package/dist/components/InputBase/utils.js +0 -41
  144. package/dist/components/InputBase/utils.js.map +0 -1
  145. package/dist/components/InputLabel/index.d.ts +0 -12
  146. package/dist/components/InputLabel/index.js +0 -62
  147. package/dist/components/InputLabel/index.js.map +0 -1
  148. package/dist/components/InputLabel/styles.d.ts +0 -4
  149. package/dist/components/InputLabel/styles.js +0 -26
  150. package/dist/components/InputLabel/styles.js.map +0 -1
  151. package/dist/components/List/PaginationIndicator.d.ts +0 -67
  152. package/dist/components/List/PaginationIndicator.js +0 -51
  153. package/dist/components/List/PaginationIndicator.js.map +0 -1
  154. package/dist/components/List/index.d.ts +0 -31
  155. package/dist/components/List/index.js +0 -81
  156. package/dist/components/List/index.js.map +0 -1
  157. package/dist/components/List/styles.d.ts +0 -54
  158. package/dist/components/List/styles.js +0 -28
  159. package/dist/components/List/styles.js.map +0 -1
  160. package/dist/components/LoadingOverlay/index.d.ts +0 -11
  161. package/dist/components/LoadingOverlay/index.js +0 -66
  162. package/dist/components/LoadingOverlay/index.js.map +0 -1
  163. package/dist/components/LoadingOverlay/styles.d.ts +0 -5
  164. package/dist/components/LoadingOverlay/styles.js +0 -7
  165. package/dist/components/LoadingOverlay/styles.js.map +0 -1
  166. package/dist/components/Modal/index.d.ts +0 -43
  167. package/dist/components/Modal/index.js +0 -146
  168. package/dist/components/Modal/index.js.map +0 -1
  169. package/dist/components/Modal/styles.d.ts +0 -58
  170. package/dist/components/Modal/styles.js +0 -74
  171. package/dist/components/Modal/styles.js.map +0 -1
  172. package/dist/components/MultiSelect/index.d.ts +0 -6
  173. package/dist/components/MultiSelect/index.js +0 -123
  174. package/dist/components/MultiSelect/index.js.map +0 -1
  175. package/dist/components/MultiSelect/styles.d.ts +0 -7
  176. package/dist/components/MultiSelect/styles.js +0 -84
  177. package/dist/components/MultiSelect/styles.js.map +0 -1
  178. package/dist/components/MultiSelect/types.d.ts +0 -43
  179. package/dist/components/MultiSelect/types.js +0 -3
  180. package/dist/components/MultiSelect/types.js.map +0 -1
  181. package/dist/components/Navigation/Navigation.d.ts +0 -3
  182. package/dist/components/Navigation/Navigation.js +0 -84
  183. package/dist/components/Navigation/Navigation.js.map +0 -1
  184. package/dist/components/Navigation/constants.d.ts +0 -5
  185. package/dist/components/Navigation/constants.js +0 -11
  186. package/dist/components/Navigation/constants.js.map +0 -1
  187. package/dist/components/Navigation/index.d.ts +0 -3
  188. package/dist/components/Navigation/index.js +0 -20
  189. package/dist/components/Navigation/index.js.map +0 -1
  190. package/dist/components/Navigation/types.d.ts +0 -26
  191. package/dist/components/Navigation/types.js +0 -8
  192. package/dist/components/Navigation/types.js.map +0 -1
  193. package/dist/components/Navigation/utils.d.ts +0 -3
  194. package/dist/components/Navigation/utils.js +0 -69
  195. package/dist/components/Navigation/utils.js.map +0 -1
  196. package/dist/components/NumberIncrement/index.d.ts +0 -31
  197. package/dist/components/NumberIncrement/index.js +0 -232
  198. package/dist/components/NumberIncrement/index.js.map +0 -1
  199. package/dist/components/NumberIncrement/styles.d.ts +0 -5
  200. package/dist/components/NumberIncrement/styles.js +0 -7
  201. package/dist/components/NumberIncrement/styles.js.map +0 -1
  202. package/dist/components/NumberIncrement/types.d.ts +0 -35
  203. package/dist/components/NumberIncrement/types.js +0 -3
  204. package/dist/components/NumberIncrement/types.js.map +0 -1
  205. package/dist/components/NumberIncrement/utils.d.ts +0 -5
  206. package/dist/components/NumberIncrement/utils.js +0 -27
  207. package/dist/components/NumberIncrement/utils.js.map +0 -1
  208. package/dist/components/Pager/index.d.ts +0 -26
  209. package/dist/components/Pager/index.js +0 -88
  210. package/dist/components/Pager/index.js.map +0 -1
  211. package/dist/components/Pager/styles.d.ts +0 -87
  212. package/dist/components/Pager/styles.js +0 -72
  213. package/dist/components/Pager/styles.js.map +0 -1
  214. package/dist/components/RadioInput/index.d.ts +0 -27
  215. package/dist/components/RadioInput/index.js +0 -76
  216. package/dist/components/RadioInput/index.js.map +0 -1
  217. package/dist/components/RadioInput/styles.d.ts +0 -58
  218. package/dist/components/RadioInput/styles.js +0 -50
  219. package/dist/components/RadioInput/styles.js.map +0 -1
  220. package/dist/components/RefreshControl/index.d.ts +0 -9
  221. package/dist/components/RefreshControl/index.js +0 -31
  222. package/dist/components/RefreshControl/index.js.map +0 -1
  223. package/dist/components/RefreshControl/styles.d.ts +0 -2
  224. package/dist/components/RefreshControl/styles.js +0 -7
  225. package/dist/components/RefreshControl/styles.js.map +0 -1
  226. package/dist/components/Scroll/index.d.ts +0 -20
  227. package/dist/components/Scroll/index.js +0 -101
  228. package/dist/components/Scroll/index.js.map +0 -1
  229. package/dist/components/Scroll/styles.d.ts +0 -53
  230. package/dist/components/Scroll/styles.js +0 -26
  231. package/dist/components/Scroll/styles.js.map +0 -1
  232. package/dist/components/Sections/index.d.ts +0 -11
  233. package/dist/components/Sections/index.js +0 -80
  234. package/dist/components/Sections/index.js.map +0 -1
  235. package/dist/components/Sections/styles.d.ts +0 -2
  236. package/dist/components/Sections/styles.js +0 -7
  237. package/dist/components/Sections/styles.js.map +0 -1
  238. package/dist/components/SegmentedControl/Option.d.ts +0 -16
  239. package/dist/components/SegmentedControl/Option.js +0 -38
  240. package/dist/components/SegmentedControl/Option.js.map +0 -1
  241. package/dist/components/SegmentedControl/index.d.ts +0 -52
  242. package/dist/components/SegmentedControl/index.js +0 -134
  243. package/dist/components/SegmentedControl/index.js.map +0 -1
  244. package/dist/components/SegmentedControl/styles.d.ts +0 -60
  245. package/dist/components/SegmentedControl/styles.js +0 -43
  246. package/dist/components/SegmentedControl/styles.js.map +0 -1
  247. package/dist/components/Select/index.d.ts +0 -16
  248. package/dist/components/Select/index.js +0 -126
  249. package/dist/components/Select/index.js.map +0 -1
  250. package/dist/components/Select/styles.d.ts +0 -60
  251. package/dist/components/Select/styles.js +0 -83
  252. package/dist/components/Select/styles.js.map +0 -1
  253. package/dist/components/Select/types.d.ts +0 -43
  254. package/dist/components/Select/types.js +0 -3
  255. package/dist/components/Select/types.js.map +0 -1
  256. package/dist/components/Slider/Mark.d.ts +0 -3
  257. package/dist/components/Slider/Mark.js +0 -32
  258. package/dist/components/Slider/Mark.js.map +0 -1
  259. package/dist/components/Slider/Thumb.d.ts +0 -7
  260. package/dist/components/Slider/Thumb.js +0 -30
  261. package/dist/components/Slider/Thumb.js.map +0 -1
  262. package/dist/components/Slider/index.d.ts +0 -4
  263. package/dist/components/Slider/index.js +0 -103
  264. package/dist/components/Slider/index.js.map +0 -1
  265. package/dist/components/Slider/styles.d.ts +0 -54
  266. package/dist/components/Slider/styles.js +0 -61
  267. package/dist/components/Slider/styles.js.map +0 -1
  268. package/dist/components/Slider/types.d.ts +0 -26
  269. package/dist/components/Slider/types.js +0 -3
  270. package/dist/components/Slider/types.js.map +0 -1
  271. package/dist/components/Switch/index.d.ts +0 -14
  272. package/dist/components/Switch/index.js +0 -85
  273. package/dist/components/Switch/index.js.map +0 -1
  274. package/dist/components/Switch/styles.d.ts +0 -55
  275. package/dist/components/Switch/styles.js +0 -34
  276. package/dist/components/Switch/styles.js.map +0 -1
  277. package/dist/components/Text/index.d.ts +0 -25
  278. package/dist/components/Text/index.js +0 -125
  279. package/dist/components/Text/index.js.map +0 -1
  280. package/dist/components/Text/styles.d.ts +0 -70
  281. package/dist/components/Text/styles.js +0 -34
  282. package/dist/components/Text/styles.js.map +0 -1
  283. package/dist/components/TextInput/index.d.ts +0 -181
  284. package/dist/components/TextInput/index.js +0 -217
  285. package/dist/components/TextInput/index.js.map +0 -1
  286. package/dist/components/TextInput/styles.d.ts +0 -63
  287. package/dist/components/TextInput/styles.js +0 -65
  288. package/dist/components/TextInput/styles.js.map +0 -1
  289. package/dist/components/Touchable/index.d.ts +0 -22
  290. package/dist/components/Touchable/index.js +0 -169
  291. package/dist/components/Touchable/index.js.map +0 -1
  292. package/dist/components/Touchable/styles.d.ts +0 -58
  293. package/dist/components/Touchable/styles.js +0 -24
  294. package/dist/components/Touchable/styles.js.map +0 -1
  295. package/dist/components/View/index.d.ts +0 -132
  296. package/dist/components/View/index.js +0 -108
  297. package/dist/components/View/index.js.map +0 -1
  298. package/dist/components/View/styles.d.ts +0 -54
  299. package/dist/components/View/styles.js +0 -29
  300. package/dist/components/View/styles.js.map +0 -1
  301. package/dist/components/components.d.ts +0 -38
  302. package/dist/components/components.js +0 -68
  303. package/dist/components/components.js.map +0 -1
  304. package/dist/components/defaultStyles.d.ts +0 -1465
  305. package/dist/components/defaultStyles.js +0 -65
  306. package/dist/components/defaultStyles.js.map +0 -1
  307. package/dist/components/legacy/Modal/index.d.ts +0 -28
  308. package/dist/components/legacy/Modal/index.js +0 -114
  309. package/dist/components/legacy/Modal/index.js.map +0 -1
  310. package/dist/components/legacy/Modal/styles.d.ts +0 -64
  311. package/dist/components/legacy/Modal/styles.js +0 -60
  312. package/dist/components/legacy/Modal/styles.js.map +0 -1
  313. package/dist/components/legacy/Pager/index.d.ts +0 -20
  314. package/dist/components/legacy/Pager/index.js +0 -168
  315. package/dist/components/legacy/Pager/index.js.map +0 -1
  316. package/dist/components/legacy/Pager/styles.d.ts +0 -54
  317. package/dist/components/legacy/Pager/styles.js +0 -44
  318. package/dist/components/legacy/Pager/styles.js.map +0 -1
  319. package/dist/components/legacy/index.d.ts +0 -2
  320. package/dist/components/legacy/index.js +0 -19
  321. package/dist/components/legacy/index.js.map +0 -1
  322. package/dist/index.d.ts +0 -7
  323. package/dist/index.js +0 -43
  324. package/dist/index.js.map +0 -1
  325. package/dist/modules/PressableRipple/index.d.ts +0 -2
  326. package/dist/modules/PressableRipple/index.js +0 -9
  327. package/dist/modules/PressableRipple/index.js.map +0 -1
  328. package/dist/modules/PressableRipple/ripple.d.ts +0 -30
  329. package/dist/modules/PressableRipple/ripple.js +0 -213
  330. package/dist/modules/PressableRipple/ripple.js.map +0 -1
  331. package/dist/modules/PressableRipple/styles.d.ts +0 -19
  332. package/dist/modules/PressableRipple/styles.js +0 -29
  333. package/dist/modules/PressableRipple/styles.js.map +0 -1
  334. package/dist/modules/PressableRipple/type.d.ts +0 -11
  335. package/dist/modules/PressableRipple/type.js +0 -3
  336. package/dist/modules/PressableRipple/type.js.map +0 -1
  337. package/dist/modules/documentPicker.d.ts +0 -3
  338. package/dist/modules/documentPicker.js +0 -12
  339. package/dist/modules/documentPicker.js.map +0 -1
  340. package/dist/modules/fastImage.d.ts +0 -1
  341. package/dist/modules/fastImage.js +0 -10
  342. package/dist/modules/fastImage.js.map +0 -1
  343. package/dist/modules/reactNavigation.d.ts +0 -5
  344. package/dist/modules/reactNavigation.js +0 -26
  345. package/dist/modules/reactNavigation.js.map +0 -1
  346. package/dist/modules/rnDeviceInfo.d.ts +0 -2
  347. package/dist/modules/rnDeviceInfo.js +0 -10
  348. package/dist/modules/rnDeviceInfo.js.map +0 -1
  349. package/dist/modules/textInputMask.d.ts +0 -10
  350. package/dist/modules/textInputMask.js +0 -23
  351. package/dist/modules/textInputMask.js.map +0 -1
  352. package/dist/modules/types/fileTypes.d.ts +0 -138
  353. package/dist/modules/types/fileTypes.js +0 -3
  354. package/dist/modules/types/fileTypes.js.map +0 -1
  355. package/dist/modules/types/textInputMask.d.ts +0 -7
  356. package/dist/modules/types/textInputMask.js +0 -3
  357. package/dist/modules/types/textInputMask.js.map +0 -1
  358. package/dist/types/index.d.ts +0 -1
  359. package/dist/types/index.js +0 -18
  360. package/dist/types/index.js.map +0 -1
  361. package/dist/types/utility.d.ts +0 -8
  362. package/dist/types/utility.js +0 -3
  363. package/dist/types/utility.js.map +0 -1
  364. package/dist/utils/KeyboardAware/context.d.ts +0 -13
  365. package/dist/utils/KeyboardAware/context.js +0 -63
  366. package/dist/utils/KeyboardAware/context.js.map +0 -1
  367. package/dist/utils/KeyboardAware/index.d.ts +0 -8
  368. package/dist/utils/KeyboardAware/index.js +0 -33
  369. package/dist/utils/KeyboardAware/index.js.map +0 -1
  370. package/dist/utils/KeyboardAware/keyboardHooks.d.ts +0 -26
  371. package/dist/utils/KeyboardAware/keyboardHooks.js +0 -87
  372. package/dist/utils/KeyboardAware/keyboardHooks.js.map +0 -1
  373. package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.d.ts +0 -3
  374. package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js +0 -9
  375. package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js.map +0 -1
  376. package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.d.ts +0 -67
  377. package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js +0 -451
  378. package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js.map +0 -1
  379. package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.d.ts +0 -7
  380. package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js +0 -4
  381. package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js.map +0 -1
  382. package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.d.ts +0 -3
  383. package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js +0 -10
  384. package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js.map +0 -1
  385. package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.d.ts +0 -3
  386. package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js +0 -10
  387. package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js.map +0 -1
  388. package/dist/utils/KeyboardAware/types.d.ts +0 -1
  389. package/dist/utils/KeyboardAware/types.js +0 -7
  390. package/dist/utils/KeyboardAware/types.js.map +0 -1
  391. package/dist/utils/ModalManager/components.d.ts +0 -20
  392. package/dist/utils/ModalManager/components.js +0 -118
  393. package/dist/utils/ModalManager/components.js.map +0 -1
  394. package/dist/utils/ModalManager/context.d.ts +0 -48
  395. package/dist/utils/ModalManager/context.js +0 -205
  396. package/dist/utils/ModalManager/context.js.map +0 -1
  397. package/dist/utils/ModalManager/index.d.ts +0 -11
  398. package/dist/utils/ModalManager/index.js +0 -13
  399. package/dist/utils/ModalManager/index.js.map +0 -1
  400. package/dist/utils/OSAlert.d.ts +0 -32
  401. package/dist/utils/OSAlert.js +0 -143
  402. package/dist/utils/OSAlert.js.map +0 -1
  403. package/dist/utils/PermissionManager/context.d.ts +0 -53
  404. package/dist/utils/PermissionManager/context.js +0 -324
  405. package/dist/utils/PermissionManager/context.js.map +0 -1
  406. package/dist/utils/PermissionManager/index.d.ts +0 -4
  407. package/dist/utils/PermissionManager/index.js +0 -9
  408. package/dist/utils/PermissionManager/index.js.map +0 -1
  409. package/dist/utils/PermissionManager/types.d.ts +0 -13
  410. package/dist/utils/PermissionManager/types.js +0 -3
  411. package/dist/utils/PermissionManager/types.js.map +0 -1
  412. package/dist/utils/hooks.d.ts +0 -42
  413. package/dist/utils/hooks.js +0 -174
  414. package/dist/utils/hooks.js.map +0 -1
  415. package/dist/utils/index.d.ts +0 -10
  416. package/dist/utils/index.js +0 -40
  417. package/dist/utils/index.js.map +0 -1
  418. package/dist/utils/input.d.ts +0 -35
  419. package/dist/utils/input.js +0 -49
  420. package/dist/utils/input.js.map +0 -1
  421. package/dist/utils/locale.d.ts +0 -1
  422. package/dist/utils/locale.js +0 -10
  423. package/dist/utils/locale.js.map +0 -1
  424. package/dist/utils/misc.d.ts +0 -6
  425. package/dist/utils/misc.js +0 -87
  426. package/dist/utils/misc.js.map +0 -1
  427. package/dist/utils/notifications.d.ts +0 -34
  428. package/dist/utils/notifications.js +0 -268
  429. package/dist/utils/notifications.js.map +0 -1
  430. package/dist/utils/theme.d.ts +0 -42
  431. package/dist/utils/theme.js +0 -50
  432. package/dist/utils/theme.js.map +0 -1
@@ -1,154 +0,0 @@
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
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- var __importDefault = (this && this.__importDefault) || function (mod) {
37
- return (mod && mod.__esModule) ? mod : { "default": mod };
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.Spotlight = exports.useImageSpotlight = exports.useSpotlight = exports.SpotlightProvider = void 0;
41
- var react_1 = __importStar(require("react"));
42
- var common_1 = require("@codeleap/common");
43
- var react_native_uuid_1 = __importDefault(require("react-native-uuid"));
44
- var component_1 = require("./component");
45
- var SpotlightCtx = react_1.default.createContext({});
46
- var SpotlightProvider = function (_a) {
47
- var children = _a.children;
48
- var _b = (0, react_1.useState)({}), spotlights = _b[0], setSpotlights = _b[1];
49
- var _c = (0, react_1.useState)({}), indexes = _c[0], setIndexes = _c[1];
50
- var ctxValue = {
51
- spotlights: spotlights,
52
- setSpotlights: setSpotlights,
53
- indexes: indexes,
54
- setIndexes: setIndexes,
55
- };
56
- return <SpotlightCtx.Provider value={ctxValue}>
57
- {children}
58
- </SpotlightCtx.Provider>;
59
- };
60
- exports.SpotlightProvider = SpotlightProvider;
61
- function useSpotlight(name) {
62
- var ctx = (0, react_1.useContext)(SpotlightCtx);
63
- var imList = Object.values(ctx.spotlights[name] || {});
64
- return {
65
- images: imList,
66
- currentIndex: ctx.indexes[name],
67
- set: function (img, id) {
68
- var newId = id || react_native_uuid_1.default.v4();
69
- ctx.setSpotlights(function (prev) {
70
- var _a;
71
- var images = __assign({}, prev[name]);
72
- if (id !== null) {
73
- images[id] = __assign(__assign({}, images[id]), { source: img });
74
- }
75
- else {
76
- var now = Date.now();
77
- images[newId] = {
78
- created: now,
79
- id: newId,
80
- source: img,
81
- };
82
- }
83
- return __assign(__assign({}, prev), (_a = {}, _a[name] = images, _a));
84
- });
85
- return newId;
86
- },
87
- remove: function (id) {
88
- ctx.setSpotlights(function (prev) {
89
- var _a;
90
- var images = __assign({}, prev[name]);
91
- delete images[id];
92
- return __assign(__assign({}, prev), (_a = {}, _a[name] = images, _a));
93
- });
94
- },
95
- open: function (id) {
96
- var newIdx = imList.findIndex(function (x) { return x.id === id; });
97
- ctx.setIndexes(function (prev) {
98
- var _a;
99
- return (__assign(__assign({}, prev), (_a = {}, _a[name] = newIdx, _a)));
100
- });
101
- },
102
- close: function () {
103
- ctx.setIndexes(function (prev) {
104
- var _a;
105
- return (__assign(__assign({}, prev), (_a = {}, _a[name] = undefined, _a)));
106
- });
107
- },
108
- clear: function () {
109
- ctx.setIndexes(function (prev) {
110
- var _a;
111
- return (__assign(__assign({}, prev), (_a = {}, _a[name] = undefined, _a)));
112
- });
113
- ctx.setSpotlights(function (prev) {
114
- var _a;
115
- return __assign(__assign({}, prev), (_a = {}, _a[name] = {}, _a));
116
- });
117
- },
118
- };
119
- }
120
- exports.useSpotlight = useSpotlight;
121
- var useImageSpotlight = function (name, src) {
122
- var _a = (0, react_1.useState)(null), id = _a[0], setId = _a[1];
123
- var spotlight = useSpotlight(name);
124
- var imSource = common_1.TypeGuards.isString(src) ? { uri: src } : src;
125
- var prevSource = (0, common_1.usePrevious)(imSource);
126
- (0, common_1.onUpdate)(function () {
127
- if (!name)
128
- return;
129
- if ((0, common_1.deepEqual)(prevSource, imSource))
130
- return;
131
- setId(spotlight.set(imSource, id));
132
- }, [src, id]);
133
- (0, common_1.useUnmount)(function () {
134
- if (!name)
135
- return;
136
- spotlight.remove(id);
137
- });
138
- return {
139
- onImagePressed: function () {
140
- spotlight.open(id);
141
- },
142
- };
143
- };
144
- exports.useImageSpotlight = useImageSpotlight;
145
- var Spotlight = function (_a) {
146
- var name = _a.name;
147
- var spotlight = useSpotlight(name);
148
- (0, common_1.useUnmount)(function () {
149
- spotlight.clear();
150
- });
151
- return <component_1.ImageView imageIndex={spotlight.currentIndex} images={spotlight.images.map(function (x) { return x.source; })} keyExtractor={function (_, index) { return index.toString(); }} onRequestClose={spotlight.close} visible={typeof spotlight.currentIndex !== 'undefined'}/>;
152
- };
153
- exports.Spotlight = Spotlight;
154
- //# sourceMappingURL=Spotlight.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Spotlight.js","sourceRoot":"","sources":["../../../src/components/ImageView/Spotlight.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAmD;AACnD,2CAAuG;AAGvG,wEAAoC;AACpC,yCAAuC;AAoBvC,IAAM,YAAY,GAAG,eAAK,CAAC,aAAa,CAAC,EAAmB,CAAC,CAAA;AAEtD,IAAM,iBAAiB,GAAY,UAAC,EAAY;QAAV,QAAQ,cAAA;IAC7C,IAAA,KAA8B,IAAA,gBAAQ,EAA8B,EAAE,CAAC,EAAtE,UAAU,QAAA,EAAE,aAAa,QAA6C,CAAA;IACvE,IAAA,KAAwB,IAAA,gBAAQ,EAA2B,EAAE,CAAC,EAA7D,OAAO,QAAA,EAAE,UAAU,QAA0C,CAAA;IACpE,IAAM,QAAQ,GAAiB;QAC7B,UAAU,YAAA;QACV,aAAa,eAAA;QACb,OAAO,SAAA;QACP,UAAU,YAAA;KACX,CAAA;IAED,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAC5C;IAAA,CAAC,QAAQ,CACX;EAAA,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAA;AAC1B,CAAC,CAAA;AAbY,QAAA,iBAAiB,qBAa7B;AAED,SAAgB,YAAY,CAAC,IAAY;IACvC,IAAM,GAAG,GAAG,IAAA,kBAAU,EAAC,YAAY,CAAC,CAAA;IAEpC,IAAM,MAAM,GACV,MAAM,CAAC,MAAM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E,EAAE,CAAC,CAAC,CAAA;IAEb,IAAA,mBAAU,EAAC;QACT,IAAI,CAAC,IAAI;YAAE,OAAM;QACjB,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,OAAO;QACL,cAAc,EAAE;YACd,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACpB,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AAtBY,QAAA,iBAAiB,qBAsB7B;AAEM,IAAM,SAAS,GAAG,UAAC,EAAQ;QAAN,IAAI,UAAA;IAC9B,IAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAA;IACpC,IAAA,mBAAU,EAAC;QACT,SAAS,CAAC,KAAK,EAAE,CAAA;IACnB,CAAC,CAAC,CAAA;IACF,OAAO,CAAC,qBAAS,CACf,UAAU,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CACnC,MAAM,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,MAAM,EAAR,CAAQ,CAAC,CAAC,CAC5C,YAAY,CAAC,CAAC,UAAC,CAAC,EAAE,KAAK,IAAK,OAAA,KAAK,CAAC,QAAQ,EAAE,EAAhB,CAAgB,CAAC,CAC7C,cAAc,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAChC,OAAO,CAAC,CAAC,OAAO,SAAS,CAAC,YAAY,KAAK,WAAW,CAAC,EAEvD,CAAA;AACJ,CAAC,CAAA;AAbY,QAAA,SAAS,aAarB"}
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import { PropsOf } from '@codeleap/common';
3
- import _ImageView from 'react-native-image-viewing';
4
- export declare type ImageViewProps = PropsOf<typeof _ImageView>;
5
- export declare const ImageView: React.FC<ImageViewProps>;
@@ -1,54 +0,0 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ImageView = void 0;
30
- var React = __importStar(require("react"));
31
- var common_1 = require("@codeleap/common");
32
- // @ts-ignore
33
- var react_native_image_viewing_1 = __importDefault(require("react-native-image-viewing"));
34
- var react_native_1 = require("react-native");
35
- var View_1 = require("../View");
36
- var Text_1 = require("../Text");
37
- var FooterComponent = function (_a) {
38
- var imageIndex = _a.imageIndex, imagesLength = _a.imagesLength;
39
- return (<View_1.View variants={['marginBottom:5', 'alignCenter']}>
40
- <Text_1.Text text={imageIndex + 1 + '/' + imagesLength}/>
41
- </View_1.View>);
42
- };
43
- var ImageView = function (props) {
44
- (0, common_1.onUpdate)(function () {
45
- react_native_1.StatusBar.setHidden(props.visible);
46
- // StatusBar.setBarStyle(`${props.visible ? 'light' : 'dark'}-content`)
47
- }, [props.visible]);
48
- return (<react_native_image_viewing_1.default doubleTapToZoomEnabled={false} FooterComponent={function (_a) {
49
- var imageIndex = _a.imageIndex;
50
- return <FooterComponent imageIndex={imageIndex} imagesLength={props.images.length}/>;
51
- }} presentationStyle={'overFullScreen'} {...props}/>);
52
- };
53
- exports.ImageView = ImageView;
54
- //# sourceMappingURL=component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/components/ImageView/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA8B;AAE9B,2CAAoD;AAEpD,aAAa;AACb,0FAAmD;AACnD,6CAAwC;AACxC,gCAA8B;AAC9B,gCAA8B;AAO9B,IAAM,eAAe,GAAwB,UAAC,EAA4B;QAA1B,UAAU,gBAAA,EAAE,YAAY,kBAAA;IAAO,OAAA,CAC7E,CAAC,WAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAChD;IAAA,CAAC,WAAI,CAAC,IAAI,CAAC,CAAC,UAAU,GAAG,CAAC,GAAG,GAAG,GAAG,YAAY,CAAC,EAClD;EAAA,EAAE,WAAI,CAAC,CACR;AAJ8E,CAI9E,CAAA;AAIM,IAAM,SAAS,GAA6B,UAAC,KAAK;IACvD,IAAA,iBAAQ,EAAC;QACP,wBAAS,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QAClC,uEAAuE;IACzE,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA;IAEnB,OAAO,CACL,CAAC,oCAAU,CACT,sBAAsB,CAAC,CAAC,KAAK,CAAC,CAC9B,eAAe,CAAC,CAAC,UAAC,EAAc;YAAZ,UAAU,gBAAA;QAAO,OAAA,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;IAA7E,CAA6E,CAAC,CACnH,iBAAiB,CAAC,CAAC,gBAAgB,CAAC,CACpC,IAAI,KAAK,CAAC,EACV,CACH,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,SAAS,aAcrB"}
@@ -1,2 +0,0 @@
1
- export * from './Spotlight';
2
- export * from './component';
@@ -1,19 +0,0 @@
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("./Spotlight"), exports);
18
- __exportStar(require("./component"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ImageView/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,8CAA2B"}
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import { InputBaseProps } from './types';
3
- export * from './styles';
4
- export * from './utils';
5
- export * from './types';
6
- export declare const InputBaseDefaultOrder: InputBaseProps['order'];
7
- export declare const InputBase: React.ForwardRefExoticComponent<{
8
- label?: React.ReactNode;
9
- error?: React.ReactNode;
10
- leftIcon?: JSX.Element | Partial<Omit<{
11
- iconProps?: Partial<import("../Icon").IconProps>;
12
- icon?: "__ICON__";
13
- name?: "__ICON__";
14
- styles?: Partial<Record<"badgeWrapper" | "badgeInnerWrapper" | "badgeCount" | "badgeWrapper:disabled" | "badgeInnerWrapper:disabled" | "badgeCount:disabled" | "icon" | "badgeWrapper:disabled:disabled" | "badgeInnerWrapper:disabled:disabled" | "badgeCount:disabled:disabled" | "icon:disabled" | "touchableWrapper" | "touchableFeedback" | "touchablePressable" | "touchableWrapper:disabled" | "touchableFeedback:disabled" | "touchablePressable:disabled", any>> | Partial<Record<"badgeWrapper" | "badgeInnerWrapper" | "badgeCount" | "badgeWrapper:disabled" | "badgeInnerWrapper:disabled" | "badgeCount:disabled" | "icon" | "badgeWrapper:disabled:disabled" | "badgeInnerWrapper:disabled:disabled" | "badgeCount:disabled:disabled" | "icon:disabled" | "touchableWrapper" | "touchableFeedback" | "touchablePressable" | "touchableWrapper:disabled" | "touchableFeedback:disabled" | "touchablePressable:disabled", any>>[];
15
- } & Omit<import("../Touchable").TouchableProps, "variants" | "styles"> & import("@codeleap/common").ComponentVariants<import("@codeleap/common").IncludePresetsReturn<(style: any) => (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"badgeWrapper" | "badgeInnerWrapper" | "badgeCount" | "badgeWrapper:disabled" | "badgeInnerWrapper:disabled" | "badgeCount:disabled" | "icon" | "badgeWrapper:disabled:disabled" | "badgeInnerWrapper:disabled:disabled" | "badgeCount:disabled:disabled" | "icon:disabled" | "touchableWrapper" | "touchableFeedback" | "touchablePressable" | "touchableWrapper:disabled" | "touchableFeedback:disabled" | "touchablePressable:disabled", any>>>> & import("../Badge").BadgeComponentProps, "">>;
16
- rightIcon?: JSX.Element | Partial<Omit<{
17
- iconProps?: Partial<import("../Icon").IconProps>;
18
- icon?: "__ICON__";
19
- name?: "__ICON__";
20
- styles?: Partial<Record<"badgeWrapper" | "badgeInnerWrapper" | "badgeCount" | "badgeWrapper:disabled" | "badgeInnerWrapper:disabled" | "badgeCount:disabled" | "icon" | "badgeWrapper:disabled:disabled" | "badgeInnerWrapper:disabled:disabled" | "badgeCount:disabled:disabled" | "icon:disabled" | "touchableWrapper" | "touchableFeedback" | "touchablePressable" | "touchableWrapper:disabled" | "touchableFeedback:disabled" | "touchablePressable:disabled", any>> | Partial<Record<"badgeWrapper" | "badgeInnerWrapper" | "badgeCount" | "badgeWrapper:disabled" | "badgeInnerWrapper:disabled" | "badgeCount:disabled" | "icon" | "badgeWrapper:disabled:disabled" | "badgeInnerWrapper:disabled:disabled" | "badgeCount:disabled:disabled" | "icon:disabled" | "touchableWrapper" | "touchableFeedback" | "touchablePressable" | "touchableWrapper:disabled" | "touchableFeedback:disabled" | "touchablePressable:disabled", any>>[];
21
- } & Omit<import("../Touchable").TouchableProps, "variants" | "styles"> & import("@codeleap/common").ComponentVariants<import("@codeleap/common").IncludePresetsReturn<(style: any) => (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<"badgeWrapper" | "badgeInnerWrapper" | "badgeCount" | "badgeWrapper:disabled" | "badgeInnerWrapper:disabled" | "badgeCount:disabled" | "icon" | "badgeWrapper:disabled:disabled" | "badgeInnerWrapper:disabled:disabled" | "badgeCount:disabled:disabled" | "icon:disabled" | "touchableWrapper" | "touchableFeedback" | "touchablePressable" | "touchableWrapper:disabled" | "touchableFeedback:disabled" | "touchablePressable:disabled", any>>>> & import("../Badge").BadgeComponentProps, "">>;
22
- wrapper?: React.FC<any>;
23
- wrapperProps?: any;
24
- innerWrapper?: React.FC<any>;
25
- innerWrapperProps?: any;
26
- styles?: Partial<Record<import("./styles").InputBaseComposition, any>>;
27
- description?: React.ReactNode;
28
- debugName: string;
29
- focused?: boolean;
30
- disabled?: boolean;
31
- order?: ("label" | "error" | "description" | "innerWrapper")[];
32
- style?: any;
33
- labelAsRow?: boolean;
34
- hideErrorMessage?: boolean;
35
- } & {
36
- children?: React.ReactNode;
37
- } & React.RefAttributes<any>>;
@@ -1,90 +0,0 @@
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
- var __rest = (this && this.__rest) || function (s, e) {
17
- var t = {};
18
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
19
- t[p] = s[p];
20
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
21
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
22
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
23
- t[p[i]] = s[p[i]];
24
- }
25
- return t;
26
- };
27
- var __importDefault = (this && this.__importDefault) || function (mod) {
28
- return (mod && mod.__esModule) ? mod : { "default": mod };
29
- };
30
- Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.InputBase = exports.InputBaseDefaultOrder = void 0;
32
- var react_1 = __importDefault(require("react"));
33
- var common_1 = require("@codeleap/common");
34
- var ActionIcon_1 = require("../ActionIcon");
35
- var View_1 = require("../View");
36
- var styles_1 = require("./styles");
37
- var Text_1 = require("../Text");
38
- __exportStar(require("./styles"), exports);
39
- __exportStar(require("./utils"), exports);
40
- __exportStar(require("./types"), exports);
41
- exports.InputBaseDefaultOrder = [
42
- 'label',
43
- 'description',
44
- 'innerWrapper',
45
- 'error',
46
- ];
47
- var KeyPassthrough = function (props) {
48
- return <>{props.children}</>;
49
- };
50
- exports.InputBase = react_1.default.forwardRef(function (props, ref) {
51
- var children = props.children, _a = props.error, error = _a === void 0 ? null : _a, label = props.label, _b = props.description, description = _b === void 0 ? null : _b, _c = props.leftIcon, leftIcon = _c === void 0 ? null : _c, _d = props.rightIcon, rightIcon = _d === void 0 ? null : _d, styles = props.styles, wrapper = props.wrapper, debugName = props.debugName, innerWrapper = props.innerWrapper, focused = props.focused, _e = props.innerWrapperProps, innerWrapperProps = _e === void 0 ? {} : _e, _f = props.wrapperProps, wrapperProps = _f === void 0 ? {} : _f, _g = props.disabled, disabled = _g === void 0 ? false : _g, _h = props.order, order = _h === void 0 ? exports.InputBaseDefaultOrder : _h, style = props.style, _j = props.labelAsRow, labelAsRow = _j === void 0 ? false : _j, _k = props.hideErrorMessage, hideErrorMessage = _k === void 0 ? false : _k, otherProps = __rest(props, ["children", "error", "label", "description", "leftIcon", "rightIcon", "styles", "wrapper", "debugName", "innerWrapper", "focused", "innerWrapperProps", "wrapperProps", "disabled", "order", "style", "labelAsRow", "hideErrorMessage"]);
52
- var WrapperComponent = wrapper || View_1.View;
53
- var InnerWrapperComponent = innerWrapper || View_1.View;
54
- var _styles = (0, styles_1.useInputBaseStyles)(props);
55
- var _leftIcon = (0, common_1.getRenderedComponent)(leftIcon, ActionIcon_1.ActionIcon, {
56
- // @ts-ignore
57
- styles: _styles.leftIconStyles,
58
- debugName: "".concat(debugName, " left icon"),
59
- });
60
- var _rightIcon = (0, common_1.getRenderedComponent)(rightIcon, ActionIcon_1.ActionIcon, {
61
- // @ts-ignore
62
- styles: _styles.rightIconStyles,
63
- debugName: "".concat(debugName, " right icon"),
64
- });
65
- var _label = common_1.TypeGuards.isString(label) ? <Text_1.Text text={label} style={_styles.labelStyle}/> : label;
66
- var _error = common_1.TypeGuards.isString(error) ? <Text_1.Text text={error} style={_styles.errorStyle}/> : error;
67
- var _description = common_1.TypeGuards.isString(description) ? <Text_1.Text text={description} style={_styles.descriptionStyle}/> : description;
68
- var parts = {
69
- label: labelAsRow ? <View_1.View style={_styles.labelRowStyle}>
70
- {_label}
71
- {_description}
72
- </View_1.View> : _label,
73
- description: labelAsRow ? null : _description,
74
- innerWrapper: <InnerWrapperComponent style={[
75
- _styles.innerWrapperStyle,
76
- ]} {...innerWrapperProps}>
77
- {_leftIcon}
78
- {children}
79
- {_rightIcon}
80
- </InnerWrapperComponent>,
81
- error: hideErrorMessage ? null : (_error || <Text_1.Text text={''} style={_styles.errorStyle}/>),
82
- };
83
- return <WrapperComponent style={[_styles.wrapperStyle, style]} {...otherProps} {...wrapperProps}>
84
- {order.map(function (key) { return <KeyPassthrough key={key}>
85
- {parts[key]}
86
- </KeyPassthrough>; })}
87
-
88
- </WrapperComponent>;
89
- });
90
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/InputBase/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,2CAAmE;AACnE,4CAA2D;AAC3D,gCAA8B;AAC9B,mCAA6C;AAE7C,gCAA8B;AAE9B,2CAAwB;AACxB,0CAAuB;AACvB,0CAAuB;AAEV,QAAA,qBAAqB,GAA2B;IAC3D,OAAO;IACP,aAAa;IACb,cAAc;IACd,OAAO;CACR,CAAA;AACD,IAAM,cAAc,GAAG,UAAC,KAAmC;IACzD,OAAO,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAA;AAC9B,CAAC,CAAA;AAEY,QAAA,SAAS,GAAG,eAAK,CAAC,UAAU,CAAsB,UAAC,KAAK,EAAE,GAAG;IAEtE,IAAA,QAAQ,GAmBN,KAAK,SAnBC,EACR,KAkBE,KAAK,MAlBK,EAAZ,KAAK,mBAAG,IAAI,KAAA,EACZ,KAAK,GAiBH,KAAK,MAjBF,EACL,KAgBE,KAAK,YAhBW,EAAlB,WAAW,mBAAG,IAAI,KAAA,EAClB,KAeE,KAAK,SAfQ,EAAf,QAAQ,mBAAG,IAAI,KAAA,EACf,KAcE,KAAK,UAdS,EAAhB,SAAS,mBAAG,IAAI,KAAA,EAChB,MAAM,GAaJ,KAAK,OAbD,EACN,OAAO,GAYL,KAAK,QAZA,EACP,SAAS,GAWP,KAAK,UAXE,EACT,YAAY,GAUV,KAAK,aAVK,EACZ,OAA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I,YAAY,CAAC,CAEjB;IAAA,CACE,KAAK,CAAC,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAC1C;QAAA,CAAC,KAAK,CAAC,GAAG,CAAC,CACb;MAAA,EAAE,cAAc,CAAC,EAFE,CAEF,CAAC,CAItB;;EAAA,EAAE,gBAAgB,CAAC,CAAA;AACrB,CAAC,CAAC,CAAA"}
@@ -1,27 +0,0 @@
1
- import { ActionIconParts } from "../ActionIcon";
2
- import { InputBaseProps } from "./types";
3
- type InputIcons = 'icon' | 'leftIcon' | 'rightIcon';
4
- type IconParts = ActionIconParts;
5
- export type InputIconComposition = `${InputIcons}${Capitalize<IconParts>}`;
6
- export type InputBaseStates = 'error' | 'focus' | 'disabled';
7
- export type InputBaseParts = 'wrapper' | 'innerWrapper' | 'label' | 'errorMessage' | 'description' | 'labelRow' | InputIconComposition;
8
- export type IconLessInputBaseParts = Exclude<InputBaseParts, InputIconComposition>;
9
- export type InputBaseComposition = `${InputBaseParts}:${InputBaseStates}` | InputBaseParts;
10
- export declare const InputBasePresets: import("@codeleap/common").IncludePresetsReturn<(styles: any) => (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<InputBaseComposition, any>>>;
11
- export declare const useInputBaseStyles: (props: InputBaseProps) => {
12
- wrapperStyle: any[];
13
- innerWrapperStyle: any[];
14
- leftIconStyles: {
15
- icon: any[];
16
- touchableWrapper: any[];
17
- }[];
18
- rightIconStyles: {
19
- icon: any[];
20
- touchableWrapper: any[];
21
- }[];
22
- labelStyle: any[];
23
- errorStyle: any[];
24
- descriptionStyle: any[];
25
- labelRowStyle: any[];
26
- };
27
- export {};
@@ -1,92 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useInputBaseStyles = exports.InputBasePresets = void 0;
4
- var common_1 = require("@codeleap/common");
5
- var react_native_1 = require("react-native");
6
- var createTextInputBaseComposition = (0, common_1.createDefaultVariantFactory)();
7
- exports.InputBasePresets = (0, common_1.includePresets)(function (styles) { return createTextInputBaseComposition(function () { return ({ wrapper: styles }); }); });
8
- var getIconStyles = function (obj, state) {
9
- return {
10
- icon: [
11
- obj.icon,
12
- state.focused && obj['icon:focus'],
13
- state.hasError && obj['icon:error'],
14
- state.disabled && obj['icon:disabled']
15
- ],
16
- touchableWrapper: [
17
- obj.touchableWrapper,
18
- state.focused && obj['touchableWrapper:focus'],
19
- state.hasError && obj['touchableWrapper:error'],
20
- state.disabled && obj['touchableWrapper:disabled']
21
- ],
22
- };
23
- };
24
- var useInputBaseStyles = function (props) {
25
- var focused = props.focused, disabled = props.disabled, error = props.error, styles = props.styles;
26
- var hasError = !common_1.TypeGuards.isNil(error);
27
- var variantStyles = (0, common_1.useDefaultComponentStyle)('u:InputBase', {
28
- styles: styles,
29
- transform: react_native_1.StyleSheet.flatten,
30
- rootElement: 'wrapper'
31
- });
32
- var _leftIconStyles = (0, common_1.useNestedStylesByKey)('leftIcon', variantStyles);
33
- var _rightIconStyles = (0, common_1.useNestedStylesByKey)('rightIcon', variantStyles);
34
- var _generalIconStyles = (0, common_1.useNestedStylesByKey)('icon', variantStyles);
35
- var generalIconStyles = getIconStyles(_generalIconStyles, { hasError: hasError, disabled: disabled });
36
- var leftIconStyles = [
37
- generalIconStyles,
38
- getIconStyles(_leftIconStyles, { hasError: hasError, disabled: disabled, focused: focused })
39
- ];
40
- var rightIconStyles = [
41
- generalIconStyles,
42
- getIconStyles(_rightIconStyles, { hasError: hasError, disabled: disabled, focused: focused })
43
- ];
44
- var labelStyle = [
45
- variantStyles.label,
46
- focused && variantStyles['label:focus'],
47
- hasError && variantStyles['label:error'],
48
- disabled && variantStyles['label:disabled'],
49
- ];
50
- var errorStyle = [
51
- variantStyles.errorMessage,
52
- focused && variantStyles['errorMessage:focus'],
53
- hasError && variantStyles['errorMessage:error'],
54
- disabled && variantStyles['errorMessage:disabled'],
55
- ];
56
- var descriptionStyle = [
57
- variantStyles.description,
58
- focused && variantStyles['description:focus'],
59
- hasError && variantStyles['description:error'],
60
- disabled && variantStyles['description:disabled'],
61
- ];
62
- var wrapperStyle = [
63
- variantStyles.wrapper,
64
- focused && variantStyles['wrapper:focus'],
65
- error && variantStyles['wrapper:error'],
66
- disabled && variantStyles['wrapper:disabled'],
67
- ];
68
- var innerWrapperStyle = [
69
- variantStyles.innerWrapper,
70
- focused && variantStyles['innerWrapper:focus'],
71
- hasError && variantStyles['innerWrapper:error'],
72
- disabled && variantStyles['innerWrapper:disabled'],
73
- ];
74
- var labelRowStyle = [
75
- variantStyles.labelRow,
76
- focused && variantStyles['labelRow:focus'],
77
- hasError && variantStyles['labelRow:error'],
78
- disabled && variantStyles['labelRow:disabled'],
79
- ];
80
- return {
81
- wrapperStyle: wrapperStyle,
82
- innerWrapperStyle: innerWrapperStyle,
83
- leftIconStyles: leftIconStyles,
84
- rightIconStyles: rightIconStyles,
85
- labelStyle: labelStyle,
86
- errorStyle: errorStyle,
87
- descriptionStyle: descriptionStyle,
88
- labelRowStyle: labelRowStyle
89
- };
90
- };
91
- exports.useInputBaseStyles = useInputBaseStyles;
92
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/InputBase/styles.ts"],"names":[],"mappings":";;;AAAA,2CAAyK;AAGzK,6CAAyC;AAuBzC,IAAM,8BAA8B,GAAG,IAAA,oCAA2B,GAAwB,CAAA;AAE7E,QAAA,gBAAgB,GAAG,IAAA,uBAAc,EAAC,UAAC,MAAM,IAAK,OAAA,8BAA8B,CAAC,cAAM,OAAA,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAArB,CAAqB,CAAC,EAA3D,CAA2D,CAAC,CAAA;AAGvH,IAAM,aAAa,GAAG,UAAC,GAAG,EAAE,KAAK;IAC/B,OAAO;QACL,IAAI,EAAE;YACJ,GAAG,CAAC,IAAI;YACR,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AG;QACpB,aAAa,CAAC,QAAQ;QACtB,OAAO,IAAI,aAAa,CAAC,gBAAgB,CAAC;QAC1C,QAAQ,IAAI,aAAa,CAAC,gBAAgB,CAAC;QAC3C,QAAQ,IAAI,aAAa,CAAC,mBAAmB,CAAC;KAC/C,CAAA;IAEF,OAAO;QACJ,YAAY,cAAA;QACZ,iBAAiB,mBAAA;QACjB,cAAc,gBAAA;QACd,eAAe,iBAAA;QACf,UAAU,YAAA;QACV,UAAU,YAAA;QACV,gBAAgB,kBAAA;QAChB,aAAa,eAAA;KACf,CAAA;AACF,CAAC,CAAA;AArFY,QAAA,kBAAkB,sBAqF9B"}
@@ -1,28 +0,0 @@
1
- /// <reference types="react" />
2
- import { PropsOf } from '@codeleap/common';
3
- import { StylesOf } from '../../types';
4
- import { InputBaseComposition } from './styles';
5
- import { ActionIcon } from '../ActionIcon';
6
- type ActionIconProps = PropsOf<typeof ActionIcon>;
7
- type OrderedParts = 'label' | 'description' | 'innerWrapper' | 'error';
8
- type IconProp = Partial<ActionIconProps> | JSX.Element;
9
- export type InputBaseProps = React.PropsWithChildren<{
10
- label?: React.ReactNode;
11
- error?: React.ReactNode;
12
- leftIcon?: IconProp;
13
- rightIcon?: IconProp;
14
- wrapper?: React.FC<any>;
15
- wrapperProps?: any;
16
- innerWrapper?: React.FC<any>;
17
- innerWrapperProps?: any;
18
- styles?: StylesOf<InputBaseComposition>;
19
- description?: React.ReactNode;
20
- debugName: string;
21
- focused?: boolean;
22
- disabled?: boolean;
23
- order?: OrderedParts[];
24
- style?: any;
25
- labelAsRow?: boolean;
26
- hideErrorMessage?: boolean;
27
- }>;
28
- export {};
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/InputBase/types.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import { InputBaseProps } from './types';
2
- type OmitDiff<T1, T2> = {
3
- [K in Exclude<keyof T1, keyof T2>]: T1[K];
4
- } & {
5
- [K in keyof T2]: T2[K];
6
- };
7
- export declare function selectInputBaseProps<T extends InputBaseProps>(props: T): {
8
- inputBaseProps: InputBaseProps;
9
- others: OmitDiff<T, T>;
10
- };
11
- export {};
@@ -1,41 +0,0 @@
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.selectInputBaseProps = void 0;
15
- function selectInputBaseProps(props) {
16
- var varList = [
17
- 'label',
18
- 'style',
19
- 'error',
20
- 'innerWrapper',
21
- 'leftIcon',
22
- 'rightIcon',
23
- // 'styles',
24
- 'description',
25
- 'wrapper',
26
- 'children',
27
- 'innerWrapperProps',
28
- 'wrapperProps',
29
- 'disabled',
30
- 'hideErrorMessage',
31
- ];
32
- var copy = __assign({}, props);
33
- var result = varList.reduce(function (acc, key) {
34
- // @ts-ignore
35
- acc[key] = copy[key];
36
- return acc;
37
- }, {});
38
- return { inputBaseProps: result, others: copy };
39
- }
40
- exports.selectInputBaseProps = selectInputBaseProps;
41
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/InputBase/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAUA,SAAgB,oBAAoB,CAA2B,KAAQ;IAIrE,IAAM,OAAO,GAAkB;QAC7B,OAAO;QACP,OAAO;QACP,OAAO;QACP,cAAc;QACd,UAAU;QACV,WAAW;QACX,YAAY;QACZ,aAAa;QACb,SAAS;QACT,UAAU;QACV,mBAAmB;QACnB,cAAc;QACd,UAAU;QACV,kBAAkB;KACnB,CAAA;IAED,IAAM,IAAI,gBAAQ,KAAK,CAAE,CAAA;IAEzB,IAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,GAAG;QACrC,aAAa;QACb,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAA;QAEpB,OAAO,GAAG,CAAA;IACZ,CAAC,EAAE,EAAoB,CAAC,CAAA;IAExB,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,IAAsB,EAAE,CAAA;AACnE,CAAC;AA/BD,oDA+BC"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { ComponentVariants, FormTypes } from '@codeleap/common';
3
- import { StylesOf } from '../../types';
4
- import { ViewProps } from '../View';
5
- import { InputLabelComposition, InputLabelStyles } from './styles';
6
- export declare type InputLabelProps = ViewProps & {
7
- styles?: StylesOf<InputLabelComposition>;
8
- label?: FormTypes.Label;
9
- required?: boolean;
10
- } & ComponentVariants<typeof InputLabelStyles>;
11
- export * from './styles';
12
- export declare const InputLabel: React.FC<InputLabelProps>;