@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,55 +0,0 @@
1
- import { ActivityIndicatorComposition } from '../ActivityIndicator';
2
- export declare type EmptyPlaceholderComposition = 'wrapper:loading' | `loader${Capitalize<ActivityIndicatorComposition>}` | 'wrapper' | 'title' | 'description' | 'image' | 'imageWrapper' | 'icon';
3
- export declare const EmptyPlaceholderStyles: {
4
- default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
5
- compact: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
6
- absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
7
- fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
8
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
9
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
10
- hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
11
- flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
12
- row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
13
- column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
14
- wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
15
- relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
16
- inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
17
- block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
18
- inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
19
- sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
20
- full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
21
- noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
22
- fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
23
- fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
24
- fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
25
- fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
26
- fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
27
- whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
28
- centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
29
- listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
30
- alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
31
- alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
32
- alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
33
- alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
34
- alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
35
- alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
36
- alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
37
- alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
38
- justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
39
- justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
40
- justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
41
- justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
42
- justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
43
- textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
44
- textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
45
- textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
46
- elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
47
- neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
48
- scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
49
- scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
50
- scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
51
- debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
52
- debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
53
- debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
54
- debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<EmptyPlaceholderComposition, any>>;
55
- };
@@ -1,30 +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.EmptyPlaceholderStyles = void 0;
15
- var common_1 = require("@codeleap/common");
16
- var createEmptyPlaceholderStyle = (0, common_1.createDefaultVariantFactory)();
17
- var presets = (0, common_1.includePresets)(function (styles) { return createEmptyPlaceholderStyle(function () { return ({ wrapper: styles }); }); });
18
- exports.EmptyPlaceholderStyles = __assign(__assign({}, presets), { default: createEmptyPlaceholderStyle(function (theme) { return ({
19
- wrapper: __assign({ flexGrow: 1 }, theme.presets.center),
20
- title: __assign(__assign({}, (0, common_1.assignTextStyle)('h3')(theme).text), theme.spacing.marginBottom(theme.values.innerSpacing.Y)),
21
- description: __assign({}, (0, common_1.assignTextStyle)('p1')(theme).text),
22
- imageWrapper: __assign(__assign(__assign(__assign({}, theme.spacing.paddingBottom(theme.values.innerSpacing.Y * 2)), theme.presets.fullWidth), theme.presets.alignCenter), { height: '45%' }),
23
- image: __assign({}, theme.presets.fullHeight),
24
- }); }), compact: createEmptyPlaceholderStyle(function (theme) { return ({
25
- wrapper: __assign(__assign({}, theme.spacing.marginVertical(0)), { marginBottom: theme.spacing.value(6) }),
26
- }); }), absolute: createEmptyPlaceholderStyle(function (theme) { return ({
27
- 'wrapper:loading': __assign(__assign(__assign({}, theme.presets.absolute), theme.presets.whole), { backgroundColor: theme.colors.background }),
28
- wrapper: __assign(__assign(__assign({}, theme.presets.absolute), theme.presets.whole), { backgroundColor: theme.colors.background }),
29
- }); }) });
30
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/EmptyPlaceholder/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAA+F;AAa/F,IAAM,2BAA2B,GAAG,IAAA,oCAA2B,GAA+B,CAAA;AAE9F,IAAM,OAAO,GAAG,IAAA,uBAAc,EAAC,UAAC,MAAM,IAAK,OAAA,2BAA2B,CAAC,cAAM,OAAA,CAAC,EAAE,OAAO,EA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U,GACzC;QACD,OAAO,iCACF,KAAK,CAAC,OAAO,CAAC,QAAQ,GACtB,KAAK,CAAC,OAAO,CAAC,KAAK,KACtB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,GACzC;KACF,CAAC,EAX+C,CAW/C,CAAC,IACJ"}
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { MobileInputFile } from '@codeleap/common';
3
- import { OSAlert } from '../../utils';
4
- import { ImageOrVideo, Options } from 'react-native-image-crop-picker';
5
- import { DocumentPickerOptions } from '../../modules/types/documentPicker';
6
- export * from './styles';
7
- export declare type FileInputRef = {
8
- openFilePicker: (string?: 'camera' | 'library') => void;
9
- };
10
- export declare type FileInputProps = {
11
- mode: 'hidden' | 'button';
12
- onFileSelect(files: MobileInputFile<ImageOrVideo>[]): void;
13
- options?: DocumentPickerOptions<any>;
14
- ref?: FileInputRef;
15
- type?: 'image' | 'anyFile';
16
- alertProps?: Parameters<typeof OSAlert.ask>[0];
17
- pickerOptions?: Partial<Options>;
18
- required?: boolean;
19
- onOpenCamera?: (resolve: (() => void)) => Promise<void>;
20
- onOpenFileSystem?: (resolve: (() => void)) => Promise<void>;
21
- onOpenGallery?: (resolve: (() => void)) => Promise<void>;
22
- onError?: (error: any) => void;
23
- };
24
- export declare const FileInput: React.ForwardRefExoticComponent<Pick<FileInputProps, "type" | "options" | "onError" | "required" | "mode" | "onFileSelect" | "alertProps" | "pickerOptions" | "onOpenCamera" | "onOpenFileSystem" | "onOpenGallery"> & React.RefAttributes<FileInputRef>>;
@@ -1,183 +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 __exportStar = (this && this.__exportStar) || function(m, exports) {
25
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
26
- };
27
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
28
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29
- return new (P || (P = Promise))(function (resolve, reject) {
30
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
31
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
32
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
33
- step((generator = generator.apply(thisArg, _arguments || [])).next());
34
- });
35
- };
36
- var __generator = (this && this.__generator) || function (thisArg, body) {
37
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
38
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
39
- function verb(n) { return function (v) { return step([n, v]); }; }
40
- function step(op) {
41
- if (f) throw new TypeError("Generator is already executing.");
42
- while (_) try {
43
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
44
- if (y = 0, t) op = [op[0] & 2, t.value];
45
- switch (op[0]) {
46
- case 0: case 1: t = op; break;
47
- case 4: _.label++; return { value: op[1], done: false };
48
- case 5: _.label++; y = op[1]; op = [0]; continue;
49
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
50
- default:
51
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
52
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
53
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
54
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
55
- if (t[2]) _.ops.pop();
56
- _.trys.pop(); continue;
57
- }
58
- op = body.call(thisArg, _);
59
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
60
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
61
- }
62
- };
63
- Object.defineProperty(exports, "__esModule", { value: true });
64
- exports.FileInput = void 0;
65
- var react_1 = require("react");
66
- var documentPicker_1 = require("../../modules/documentPicker");
67
- var common_1 = require("@codeleap/common");
68
- var utils_1 = require("../../utils");
69
- __exportStar(require("./styles"), exports);
70
- var pickerDefaults = {
71
- cropping: true,
72
- };
73
- function parsePickerData(data) {
74
- var filePathData = (0, common_1.parseFilePathData)(data.path);
75
- var d = __assign(__assign({}, data), { name: filePathData.name, size: data.size, type: data.mime, uri: data.path, fileCopyUri: data.path });
76
- return {
77
- file: d,
78
- preview: data.path,
79
- };
80
- }
81
- exports.FileInput = (0, react_1.forwardRef)(function (fileInputProps, ref) {
82
- var onFileSelect = fileInputProps.onFileSelect, options = fileInputProps.options, _a = fileInputProps.type, type = _a === void 0 ? 'image' : _a, alertProps = fileInputProps.alertProps, pickerOptions = fileInputProps.pickerOptions, _b = fileInputProps.onOpenCamera, onOpenCamera = _b === void 0 ? null : _b, _c = fileInputProps.onOpenGallery, onOpenGallery = _c === void 0 ? null : _c, _d = fileInputProps.onOpenFileSystem, onOpenFileSystem = _d === void 0 ? null : _d, onError = fileInputProps.onError;
83
- var logger = (0, common_1.useCodeleapContext)().logger;
84
- function openFileSystem() {
85
- return __awaiter(this, void 0, void 0, function () {
86
- var files, err_1;
87
- return __generator(this, function (_a) {
88
- switch (_a.label) {
89
- case 0:
90
- _a.trys.push([0, 2, , 3]);
91
- return [4 /*yield*/, documentPicker_1.DocumentPicker.pick(options)];
92
- case 1:
93
- files = _a.sent();
94
- if (!Array.isArray(files)) {
95
- files = [files];
96
- }
97
- onFileSelect(files.map(function (file) { return ({ preview: file.uri, file: file }); }));
98
- return [3 /*break*/, 3];
99
- case 2:
100
- err_1 = _a.sent();
101
- handleError(err_1);
102
- return [3 /*break*/, 3];
103
- case 3: return [2 /*return*/];
104
- }
105
- });
106
- });
107
- }
108
- function handleError(err) {
109
- logger.warn('File Input Error', err, 'FILE INPUT');
110
- onError === null || onError === void 0 ? void 0 : onError(err);
111
- }
112
- var mergedOptions = __assign(__assign({}, pickerDefaults), pickerOptions);
113
- var handlePickerResolution = function (data) {
114
- var imageArray = [];
115
- if (!Array.isArray(data)) {
116
- imageArray = [data];
117
- }
118
- else {
119
- imageArray = data;
120
- }
121
- onFileSelect(imageArray.map(parsePickerData));
122
- };
123
- var onPress = function (open, options) {
124
- if (open == 'fs') {
125
- openFileSystem();
126
- }
127
- else {
128
- var call = open === 'camera' ? 'openCamera' : 'openPicker';
129
- documentPicker_1.ImageCropPicker[call](__assign(__assign({}, mergedOptions), (options || {}))).then(handlePickerResolution);
130
- }
131
- };
132
- var openFilePicker = function (imageSource) {
133
- if (imageSource === void 0) { imageSource = null; }
134
- return __awaiter(void 0, void 0, void 0, function () {
135
- var _a, _b;
136
- return __generator(this, function (_c) {
137
- if (type === 'image') {
138
- if (imageSource === 'camera') {
139
- onPress('camera');
140
- }
141
- else if (imageSource === 'library') {
142
- onPress('library');
143
- }
144
- else {
145
- utils_1.OSAlert.ask(__assign(__assign({ title: 'Change Image', body: 'Do you want to take a new picture or select an existing one?' }, alertProps), { options: [
146
- __assign({ text: ((_b = (_a = alertProps === null || alertProps === void 0 ? void 0 : alertProps.options) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.text) || 'Camera', onPress: function () {
147
- if (onOpenCamera) {
148
- onOpenCamera(function () { return onPress('camera'); });
149
- }
150
- else {
151
- onPress('camera');
152
- }
153
- } }, alertProps === null || alertProps === void 0 ? void 0 : alertProps.options[1]),
154
- __assign({ text: 'Library', onPress: function () {
155
- if (onOpenGallery) {
156
- onOpenGallery(function () { return onPress('library'); });
157
- }
158
- else {
159
- onPress('library');
160
- }
161
- } }, alertProps === null || alertProps === void 0 ? void 0 : alertProps.options[2]),
162
- __assign({ text: 'Cancel', style: 'cancel', onPress: function () { } }, alertProps === null || alertProps === void 0 ? void 0 : alertProps.options[0]),
163
- ] }));
164
- }
165
- }
166
- else {
167
- if (onOpenFileSystem) {
168
- onOpenFileSystem(function () { return onPress('fs'); });
169
- }
170
- else {
171
- onPress('fs');
172
- }
173
- }
174
- return [2 /*return*/];
175
- });
176
- });
177
- };
178
- (0, react_1.useImperativeHandle)(ref, function () { return ({
179
- openFilePicker: openFilePicker,
180
- }); });
181
- return null;
182
- });
183
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/FileInput/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA8D;AAC9D,+DAA8E;AAC9E,2CAKyB;AACzB,qCAAqC;AAIrC,2CAAwB;AAuBxB,IAAM,cAAc,GAAG;IACrB,QAAQ,EAAE,IAAI;CACf,CAAA;AAED,SAAS,eAAe,CAAC,IAAiB;IAExC,IAAM,YAAY,GAAG,IAAA,0BAAiB,EAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACjD,IAAM,CAAC,yBACF,IAAI,KACP,IAAI,EAAE,YAAY,CAAC,IAAI,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,GAAG,EAAE,IA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ileInputStyles: {
3
- default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
4
- fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
5
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
6
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
7
- hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
8
- flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
9
- row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
10
- column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
11
- wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
12
- absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
13
- relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
14
- inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
15
- block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
16
- inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
17
- sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
18
- full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
19
- noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
20
- fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
21
- fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
22
- fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
23
- fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
24
- fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
25
- whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
26
- centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
27
- listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
28
- alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
29
- alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
30
- alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
31
- alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
32
- alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
33
- alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
34
- alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
35
- alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
36
- justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
37
- justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
38
- justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
39
- justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
40
- justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
41
- textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
42
- textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
43
- textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
44
- elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
45
- neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
46
- scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
47
- scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
48
- scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
49
- debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
50
- debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
51
- debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
52
- debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<FileInputComposition, any>>;
53
- };
@@ -1,19 +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.FileInputStyles = void 0;
15
- var common_1 = require("@codeleap/common");
16
- var createFileInputStyle = (0, common_1.createDefaultVariantFactory)();
17
- var presets = (0, common_1.includePresets)(function (styles) { return createFileInputStyle(function () { return ({ wrapper: styles }); }); });
18
- exports.FileInputStyles = __assign(__assign({}, presets), { default: createFileInputStyle(function (theme) { return ({}); }) });
19
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/FileInput/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAA8E;AAI9E,IAAM,oBAAoB,GACxB,IAAA,oCAA2B,GAAwB,CAAA;AAErD,IAAM,OAAO,GAAG,IAAA,uBAAc,EAAC,UAAC,MAAM,IAAK,OAAA,oBAAoB,CAAC,cAAM,OAAA,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAArB,CAAqB,CAAC,EAAjD,CAAiD,CAC3F,CAAA;AAEY,QAAA,eAAe,yBACvB,OAAO,KACV,OAAO,EAAE,oBAAoB,CAAC,UAAC,KAAK,IAAK,OAAA,CAAC,EAAE,CAAC,EAAJ,CAAI,CAAC,IAE/C"}
@@ -1,32 +0,0 @@
1
- import * as React from 'react';
2
- import { ComponentVariants } from '@codeleap/common';
3
- import { FlatGridProps, GridRenderItemInfo } from 'react-native-super-grid';
4
- import { RefreshControlProps } from 'react-native';
5
- import { ViewProps } from '../View';
6
- import { EmptyPlaceholderProps } from '../EmptyPlaceholder';
7
- import { GridComposition, GridStyles } from './styles';
8
- import { StylesOf } from '../../types';
9
- import { GetKeyboardAwarePropsOptions } from '../../utils';
10
- export declare type DataboundFlatGridPropsTypes = 'data' | 'renderItem' | 'keyExtractor' | 'getItemLayout';
11
- export declare type ReplaceFlatGridProps<P, T> = Omit<P, DataboundFlatGridPropsTypes> & {
12
- data: T[];
13
- keyExtractor?: (item: T, index: number) => string;
14
- renderItem: (data: GridRenderItemInfo<T>) => React.ReactElement;
15
- onRefresh?: () => void;
16
- getItemLayout?: ((data: T, index: number) => {
17
- length: number;
18
- offset: number;
19
- index: number;
20
- });
21
- };
22
- export * from './styles';
23
- export declare type GridProps<T = any[], Data = T extends Array<infer D> ? D : never> = FlatGridProps<Data> & Omit<ViewProps, 'variants'> & {
24
- separators?: boolean;
25
- placeholder?: EmptyPlaceholderProps;
26
- keyboardAware?: GetKeyboardAwarePropsOptions;
27
- debugName?: string;
28
- styles?: StylesOf<GridComposition>;
29
- refreshControlProps?: Partial<RefreshControlProps>;
30
- } & ComponentVariants<typeof GridStyles>;
31
- export declare type GridComponentType = <T extends any[] = any[]>(props: FlatGridProps<T>) => React.ReactElement;
32
- export declare const Grid: GridComponentType;
@@ -1,84 +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 __exportStar = (this && this.__exportStar) || function(m, exports) {
37
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
38
- };
39
- var __rest = (this && this.__rest) || function (s, e) {
40
- var t = {};
41
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
42
- t[p] = s[p];
43
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
44
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
45
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
46
- t[p[i]] = s[p[i]];
47
- }
48
- return t;
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.Grid = void 0;
52
- var React = __importStar(require("react"));
53
- var react_1 = require("react");
54
- var common_1 = require("@codeleap/common");
55
- var react_native_super_grid_1 = require("react-native-super-grid");
56
- var react_native_1 = require("react-native");
57
- var View_1 = require("../View");
58
- var EmptyPlaceholder_1 = require("../EmptyPlaceholder");
59
- var utils_1 = require("../../utils");
60
- __exportStar(require("./styles"), exports);
61
- var GridCP = (0, react_1.forwardRef)(function (flatGridProps, ref) {
62
- var _a = flatGridProps.variants, variants = _a === void 0 ? [] : _a, style = flatGridProps.style, _b = flatGridProps.styles, styles = _b === void 0 ? {} : _b, onRefresh = flatGridProps.onRefresh, refreshing = flatGridProps.refreshing, placeholder = flatGridProps.placeholder, keyboardAware = flatGridProps.keyboardAware, debugName = flatGridProps.debugName, _c = flatGridProps.refreshControlProps, refreshControlProps = _c === void 0 ? {} : _c, props = __rest(flatGridProps, ["variants", "style", "styles", "onRefresh", "refreshing", "placeholder", "keyboardAware", "debugName", "refreshControlProps"]);
63
- var variantStyles = (0, common_1.useDefaultComponentStyle)('u:Grid', {
64
- variants: variants,
65
- styles: styles,
66
- transform: react_native_1.StyleSheet.flatten,
67
- });
68
- var renderSeparator = function () {
69
- return (<View_1.View variants={['separator']}></View_1.View>);
70
- };
71
- var separatorProp = props.separators;
72
- var isEmpty = !props.data || !props.data.length;
73
- var separator = !isEmpty && separatorProp == true && renderSeparator;
74
- var refreshStyles = react_native_1.StyleSheet.flatten([variantStyles.refreshControl, styles.refreshControl]);
75
- var Component = react_native_super_grid_1.FlatGrid;
76
- var _gridProps = __assign({ style: [variantStyles.wrapper, style], contentContainerStyle: variantStyles.content, ref: ref, ItemSeparatorComponent: separator, refreshControl: !!onRefresh && (<react_native_1.RefreshControl refreshing={refreshing} onRefresh={onRefresh} tintColor={refreshStyles === null || refreshStyles === void 0 ? void 0 : refreshStyles.color} colors={[refreshStyles === null || refreshStyles === void 0 ? void 0 : refreshStyles.color]} {...refreshControlProps}/>), ListEmptyComponent: <EmptyPlaceholder_1.EmptyPlaceholder {...placeholder}/> }, props);
77
- var keyboard = (0, utils_1.useKeyboardAwareView)({
78
- debugName: debugName,
79
- });
80
- var gridProps = keyboard.getKeyboardAwareProps(_gridProps, __assign({ baseStyleProp: 'contentContainerStyle', adapt: 'paddingBottom' }, keyboardAware));
81
- return (<Component {...gridProps}/>);
82
- });
83
- exports.Grid = GridCP;
84
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Grid/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA8B;AAC9B,+BAAkC;AAClC,2CAGyB;AAEzB,mEAAqF;AACrF,6CAA8E;AAC9E,gCAAyC;AACzC,wDAA6E;AAG7E,qCAAgF;AAehF,2CAAwB;AAexB,IAAM,MAAM,GAAG,IAAA,kBAAU,EACvB,UAAC,aAAa,EAAE,GAAG;IAEf,IAAA,KAUE,aAAa,SAVF,EAAb,QAAQ,mBAAG,EAAE,KAAA,EACb,KAAK,GASH,aAAa,MATV,EACL,KAQE,aAAa,OARJ,EAAX,MAAM,mBAAG,EAAE,KAAA,EACX,SAAS,GAOP,aAAa,UAPN,EACT,UAAU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AAa,uBAAb,aAAa,CAAE,KAAK,CAAC,CAChC,MAAM,CAAC,CAAC,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,KAAK,CAAC,CAAC,CAC/B,IAAI,mBAAmB,CAAC,EACxB,CACH,EAEL,kBAAkB,EAAE,CAAC,mCAAgB,CAAC,IAAI,WAAW,CAAC,EAAE,IACrD,KAAK,CACT,CAAA;IACD,IAAM,QAAQ,GAAG,IAAA,4BAAoB,EAAC;QACpC,SAAS,WAAA;KACV,CAAC,CAAA;IACF,IAAM,SAAS,GAAG,QAAQ,CAAC,qBAAqB,CAAC,UAAU,aACzD,aAAa,EAAE,uBAAuB,EACtC,KAAK,EAAE,eAAe,IACnB,aAAa,EAChB,CAAA;IACF,OAAO,CACL,CAAC,SAAS,CACR,IAAI,SAAS,CAAC,EACd,CACH,CAAA;AACH,CAAC,CACF,CAAA;AAIY,QAAA,IAAI,GAAG,MAA2B,CAAA"}
@@ -1,54 +0,0 @@
1
- import { ListComposition } from '../List';
2
- export declare type GridComposition = ListComposition;
3
- export declare const GridStyles: {
4
- default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
5
- fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
6
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
7
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
8
- hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
9
- flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
10
- row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
11
- column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
12
- wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
13
- absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
14
- relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
15
- inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
16
- block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
17
- inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
18
- sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
19
- full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
20
- noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
21
- fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
22
- fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
23
- fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
24
- fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
25
- fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
26
- whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
27
- centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
28
- listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
29
- alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
30
- alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
31
- alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
32
- alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
33
- alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
34
- alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
35
- alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
36
- alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
37
- justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
38
- justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
39
- justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
40
- justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
41
- justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
42
- textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
43
- textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
44
- textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
45
- elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
46
- neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
47
- scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
48
- scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
49
- scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
50
- debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
51
- debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
52
- debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
53
- debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<ListComposition, any>>;
54
- };