@codeleap/mobile 1.9.33 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. package/dist/components/ActionIcon/index.d.ts +13 -0
  2. package/dist/components/ActionIcon/index.js +54 -0
  3. package/dist/components/ActionIcon/index.js.map +1 -0
  4. package/dist/components/ActionIcon/styles.d.ts +64 -0
  5. package/dist/components/ActionIcon/styles.js +57 -0
  6. package/dist/components/ActionIcon/styles.js.map +1 -0
  7. package/dist/components/{ActivityIndicator.d.ts → ActivityIndicator/index.d.ts} +4 -2
  8. package/dist/components/{ActivityIndicator.js → ActivityIndicator/index.js} +5 -1
  9. package/dist/components/ActivityIndicator/index.js.map +1 -0
  10. package/dist/components/ActivityIndicator/styles.d.ts +59 -0
  11. package/dist/components/ActivityIndicator/styles.js +52 -0
  12. package/dist/components/ActivityIndicator/styles.js.map +1 -0
  13. package/dist/components/AutoComplete/index.d.ts +33 -0
  14. package/dist/components/AutoComplete/index.js +129 -0
  15. package/dist/components/AutoComplete/index.js.map +1 -0
  16. package/dist/components/AutoComplete/styles.d.ts +57 -0
  17. package/dist/components/AutoComplete/styles.js +28 -0
  18. package/dist/components/AutoComplete/styles.js.map +1 -0
  19. package/dist/components/Backdrop/index.d.ts +14 -0
  20. package/dist/components/{Backdrop.js → Backdrop/index.js} +21 -30
  21. package/dist/components/Backdrop/index.js.map +1 -0
  22. package/dist/components/{Backdrop.d.ts → Backdrop/styles.d.ts} +7 -20
  23. package/dist/components/Backdrop/styles.js +28 -0
  24. package/dist/components/Backdrop/styles.js.map +1 -0
  25. package/dist/components/Button/index.d.ts +247 -0
  26. package/dist/components/{Button.js → Button/index.js} +45 -13
  27. package/dist/components/Button/index.js.map +1 -0
  28. package/dist/components/Button/styles.d.ts +65 -0
  29. package/dist/components/Button/styles.js +61 -0
  30. package/dist/components/Button/styles.js.map +1 -0
  31. package/dist/components/Calendar/index.d.ts +15 -0
  32. package/dist/components/Calendar/index.js +80 -0
  33. package/dist/components/Calendar/index.js.map +1 -0
  34. package/dist/components/Calendar/style.d.ts +4 -0
  35. package/dist/components/Calendar/style.js +36 -0
  36. package/dist/components/Calendar/style.js.map +1 -0
  37. package/dist/components/Calendar/types.d.ts +95 -0
  38. package/dist/components/Calendar/types.js +3 -0
  39. package/dist/components/Calendar/types.js.map +1 -0
  40. package/dist/components/Checkbox/index.d.ts +2 -2
  41. package/dist/components/Checkbox/index.js +5 -3
  42. package/dist/components/Checkbox/index.js.map +1 -1
  43. package/dist/components/Checkbox/styles.d.ts +53 -53
  44. package/dist/components/Checkbox/styles.js +6 -2
  45. package/dist/components/Checkbox/styles.js.map +1 -1
  46. package/dist/components/{ContentView.d.ts → ContentView/index.d.ts} +5 -3
  47. package/dist/components/{ContentView.js → ContentView/index.js} +19 -4
  48. package/dist/components/ContentView/index.js.map +1 -0
  49. package/dist/components/ContentView/styles.d.ts +53 -0
  50. package/dist/components/ContentView/styles.js +26 -0
  51. package/dist/components/ContentView/styles.js.map +1 -0
  52. package/dist/components/Drawer/index.d.ts +7 -0
  53. package/dist/components/{View.js → Drawer/index.js} +18 -15
  54. package/dist/components/Drawer/index.js.map +1 -0
  55. package/dist/components/{NewModal → Drawer}/styles.d.ts +55 -56
  56. package/dist/components/Drawer/styles.js +37 -0
  57. package/dist/components/Drawer/styles.js.map +1 -0
  58. package/dist/components/{EmptyPlaceholder.d.ts → EmptyPlaceholder/index.d.ts} +4 -2
  59. package/dist/components/{EmptyPlaceholder.js → EmptyPlaceholder/index.js} +9 -5
  60. package/dist/components/EmptyPlaceholder/index.js.map +1 -0
  61. package/dist/components/EmptyPlaceholder/styles.d.ts +55 -0
  62. package/dist/components/EmptyPlaceholder/styles.js +32 -0
  63. package/dist/components/EmptyPlaceholder/styles.js.map +1 -0
  64. package/dist/components/{FileInput.d.ts → FileInput/index.d.ts} +8 -6
  65. package/dist/components/{FileInput.js → FileInput/index.js} +13 -30
  66. package/dist/components/FileInput/index.js.map +1 -0
  67. package/dist/components/FileInput/styles.d.ts +53 -0
  68. package/dist/components/FileInput/styles.js +19 -0
  69. package/dist/components/FileInput/styles.js.map +1 -0
  70. package/dist/components/Grid/index.d.ts +30 -0
  71. package/dist/components/Grid/index.js +69 -0
  72. package/dist/components/Grid/index.js.map +1 -0
  73. package/dist/components/Grid/styles.d.ts +5 -0
  74. package/dist/components/Grid/styles.js +19 -0
  75. package/dist/components/Grid/styles.js.map +1 -0
  76. package/dist/components/{Icon.d.ts → Icon/index.d.ts} +3 -1
  77. package/dist/components/{Icon.js → Icon/index.js} +6 -2
  78. package/dist/components/Icon/index.js.map +1 -0
  79. package/dist/components/{NewPager → Icon}/styles.d.ts +59 -86
  80. package/dist/components/Icon/styles.js +45 -0
  81. package/dist/components/Icon/styles.js.map +1 -0
  82. package/dist/components/{Image.d.ts → Image/index.d.ts} +6 -4
  83. package/dist/components/{Image.js → Image/index.js} +38 -7
  84. package/dist/components/Image/index.js.map +1 -0
  85. package/dist/components/Image/styles.d.ts +54 -0
  86. package/dist/components/Image/styles.js +25 -0
  87. package/dist/components/Image/styles.js.map +1 -0
  88. package/dist/components/ImageView/Spotlight.d.ts +25 -0
  89. package/dist/components/ImageView/Spotlight.js +155 -0
  90. package/dist/components/ImageView/Spotlight.js.map +1 -0
  91. package/dist/components/ImageView/component.d.ts +5 -0
  92. package/dist/components/ImageView/component.js +54 -0
  93. package/dist/components/ImageView/component.js.map +1 -0
  94. package/dist/components/ImageView/index.d.ts +2 -0
  95. package/dist/components/ImageView/index.js +19 -0
  96. package/dist/components/ImageView/index.js.map +1 -0
  97. package/dist/components/List/PaginationIndicator.d.ts +67 -0
  98. package/dist/components/List/PaginationIndicator.js +51 -0
  99. package/dist/components/List/PaginationIndicator.js.map +1 -0
  100. package/dist/components/{List.d.ts → List/index.d.ts} +12 -15
  101. package/dist/components/List/index.js +68 -0
  102. package/dist/components/List/index.js.map +1 -0
  103. package/dist/components/List/styles.d.ts +5 -0
  104. package/dist/components/List/styles.js +24 -0
  105. package/dist/components/List/styles.js.map +1 -0
  106. package/dist/components/Modal/index.d.ts +13 -3
  107. package/dist/components/Modal/index.js +23 -8
  108. package/dist/components/Modal/index.js.map +1 -1
  109. package/dist/components/Modal/styles.d.ts +55 -55
  110. package/dist/components/Modal/styles.js +4 -3
  111. package/dist/components/Modal/styles.js.map +1 -1
  112. package/dist/components/MultiSelect/index.d.ts +6 -0
  113. package/dist/components/MultiSelect/index.js +106 -0
  114. package/dist/components/MultiSelect/index.js.map +1 -0
  115. package/dist/components/MultiSelect/styles.d.ts +58 -0
  116. package/dist/components/MultiSelect/styles.js +22 -0
  117. package/dist/components/MultiSelect/styles.js.map +1 -0
  118. package/dist/components/MultiSelect/types.d.ts +32 -0
  119. package/dist/components/MultiSelect/types.js +3 -0
  120. package/dist/components/MultiSelect/types.js.map +1 -0
  121. package/dist/components/Navigation/Navigation.js +1 -5
  122. package/dist/components/Navigation/Navigation.js.map +1 -1
  123. package/dist/components/Navigation/utils.js +0 -1
  124. package/dist/components/Navigation/utils.js.map +1 -1
  125. package/dist/components/Pager/index.d.ts +18 -12
  126. package/dist/components/Pager/index.js +54 -134
  127. package/dist/components/Pager/index.js.map +1 -1
  128. package/dist/components/Pager/styles.d.ts +42 -9
  129. package/dist/components/Pager/styles.js +53 -25
  130. package/dist/components/Pager/styles.js.map +1 -1
  131. package/dist/components/RadioInput/index.d.ts +4 -4
  132. package/dist/components/RadioInput/index.js +3 -1
  133. package/dist/components/RadioInput/index.js.map +1 -1
  134. package/dist/components/RadioInput/styles.d.ts +54 -54
  135. package/dist/components/RadioInput/styles.js +12 -7
  136. package/dist/components/RadioInput/styles.js.map +1 -1
  137. package/dist/components/Scroll/index.d.ts +18 -0
  138. package/dist/components/{Scroll.js → Scroll/index.js} +14 -11
  139. package/dist/components/Scroll/index.js.map +1 -0
  140. package/dist/components/Scroll/styles.d.ts +4 -0
  141. package/dist/components/Scroll/styles.js +27 -0
  142. package/dist/components/Scroll/styles.js.map +1 -0
  143. package/dist/components/Sections/index.d.ts +11 -0
  144. package/dist/components/{Sections.js → Sections/index.js} +4 -5
  145. package/dist/components/Sections/index.js.map +1 -0
  146. package/dist/components/SegmentedControl/index.d.ts +10 -1
  147. package/dist/components/SegmentedControl/index.js +27 -27
  148. package/dist/components/SegmentedControl/index.js.map +1 -1
  149. package/dist/components/SegmentedControl/styles.d.ts +56 -51
  150. package/dist/components/SegmentedControl/styles.js +10 -3
  151. package/dist/components/SegmentedControl/styles.js.map +1 -1
  152. package/dist/components/Select/index.d.ts +8 -0
  153. package/dist/components/Select/index.js +37 -80
  154. package/dist/components/Select/index.js.map +1 -1
  155. package/dist/components/Select/styles.d.ts +57 -7
  156. package/dist/components/Select/styles.js +17 -41
  157. package/dist/components/Select/styles.js.map +1 -1
  158. package/dist/components/Select/types.d.ts +16 -25
  159. package/dist/components/Slider/index.d.ts +1 -0
  160. package/dist/components/Slider/index.js +4 -0
  161. package/dist/components/Slider/index.js.map +1 -1
  162. package/dist/components/Slider/styles.d.ts +53 -0
  163. package/dist/components/Slider/styles.js +61 -0
  164. package/dist/components/Slider/styles.js.map +1 -0
  165. package/dist/components/Slider/types.d.ts +3 -2
  166. package/dist/components/{Switch.d.ts → Switch/index.d.ts} +3 -2
  167. package/dist/components/{Switch.js → Switch/index.js} +9 -5
  168. package/dist/components/Switch/index.js.map +1 -0
  169. package/dist/components/Switch/styles.d.ts +54 -0
  170. package/dist/components/Switch/styles.js +34 -0
  171. package/dist/components/Switch/styles.js.map +1 -0
  172. package/dist/components/{Text.d.ts → Text/index.d.ts} +7 -3
  173. package/dist/components/{Text.js → Text/index.js} +53 -5
  174. package/dist/components/Text/index.js.map +1 -0
  175. package/dist/components/Text/styles.d.ts +70 -0
  176. package/dist/components/Text/styles.js +31 -0
  177. package/dist/components/Text/styles.js.map +1 -0
  178. package/dist/components/TextInput/Label.d.ts +9 -0
  179. package/dist/components/TextInput/Label.js +34 -0
  180. package/dist/components/TextInput/Label.js.map +1 -0
  181. package/dist/components/{TextInput.d.ts → TextInput/index.d.ts} +42 -45
  182. package/dist/components/TextInput/index.js +204 -0
  183. package/dist/components/TextInput/index.js.map +1 -0
  184. package/dist/components/TextInput/styles.d.ts +62 -0
  185. package/dist/components/TextInput/styles.js +68 -0
  186. package/dist/components/TextInput/styles.js.map +1 -0
  187. package/dist/components/Touchable/index.d.ts +20 -0
  188. package/dist/components/Touchable/index.js +165 -0
  189. package/dist/components/Touchable/index.js.map +1 -0
  190. package/dist/components/Touchable/styles.d.ts +58 -0
  191. package/dist/components/Touchable/styles.js +24 -0
  192. package/dist/components/Touchable/styles.js.map +1 -0
  193. package/dist/components/{View.d.ts → View/index.d.ts} +6 -0
  194. package/dist/components/View/index.js +99 -0
  195. package/dist/components/View/index.js.map +1 -0
  196. package/dist/components/View/styles.d.ts +54 -0
  197. package/dist/components/View/styles.js +29 -0
  198. package/dist/components/View/styles.js.map +1 -0
  199. package/dist/components/components.d.ts +10 -3
  200. package/dist/components/components.js +23 -3
  201. package/dist/components/components.js.map +1 -1
  202. package/dist/components/defaultStyles.d.ts +1364 -0
  203. package/dist/components/defaultStyles.js +63 -0
  204. package/dist/components/defaultStyles.js.map +1 -0
  205. package/dist/components/{_Modal → legacy/Modal}/index.d.ts +3 -3
  206. package/dist/components/{_Modal → legacy/Modal}/index.js +6 -6
  207. package/dist/components/legacy/Modal/index.js.map +1 -0
  208. package/dist/components/{_Modal → legacy/Modal}/styles.d.ts +6 -6
  209. package/dist/components/{_Modal → legacy/Modal}/styles.js +0 -0
  210. package/dist/components/legacy/Modal/styles.js.map +1 -0
  211. package/dist/components/legacy/Pager/index.d.ts +20 -0
  212. package/dist/components/legacy/Pager/index.js +168 -0
  213. package/dist/components/legacy/Pager/index.js.map +1 -0
  214. package/dist/components/legacy/Pager/styles.d.ts +54 -0
  215. package/dist/components/legacy/Pager/styles.js +44 -0
  216. package/dist/components/legacy/Pager/styles.js.map +1 -0
  217. package/dist/components/legacy/index.d.ts +2 -0
  218. package/dist/components/legacy/index.js +19 -0
  219. package/dist/components/legacy/index.js.map +1 -0
  220. package/dist/index.d.ts +4 -6
  221. package/dist/index.js +6 -9
  222. package/dist/index.js.map +1 -1
  223. package/dist/modules/reactNavigation.d.ts +2 -0
  224. package/dist/modules/reactNavigation.js +16 -1
  225. package/dist/modules/reactNavigation.js.map +1 -1
  226. package/dist/modules/textInputMask.d.ts +1 -0
  227. package/dist/modules/textInputMask.js +15 -0
  228. package/dist/modules/textInputMask.js.map +1 -1
  229. package/dist/types/index.d.ts +1 -0
  230. package/dist/types/index.js +18 -0
  231. package/dist/types/index.js.map +1 -0
  232. package/dist/utils/KeyboardAware/index.d.ts +6 -0
  233. package/dist/utils/KeyboardAware/index.js +31 -0
  234. package/dist/utils/KeyboardAware/index.js.map +1 -0
  235. package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.d.ts +3 -0
  236. package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js +9 -0
  237. package/dist/utils/KeyboardAware/lib/KeyboardAwareFlatList.js.map +1 -0
  238. package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.d.ts +67 -0
  239. package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js +451 -0
  240. package/dist/utils/KeyboardAware/lib/KeyboardAwareHOC.js.map +1 -0
  241. package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.d.ts +7 -0
  242. package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js +4 -0
  243. package/dist/utils/KeyboardAware/lib/KeyboardAwareInterface.js.map +1 -0
  244. package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.d.ts +3 -0
  245. package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js +10 -0
  246. package/dist/utils/KeyboardAware/lib/KeyboardAwareScrollView.js.map +1 -0
  247. package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.d.ts +3 -0
  248. package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js +10 -0
  249. package/dist/utils/KeyboardAware/lib/KeyboardAwareSectionList.js.map +1 -0
  250. package/dist/utils/KeyboardAware/types.d.ts +1 -0
  251. package/dist/utils/KeyboardAware/types.js +7 -0
  252. package/dist/utils/KeyboardAware/types.js.map +1 -0
  253. package/dist/utils/ModalManager/components.d.ts +10 -2
  254. package/dist/utils/ModalManager/components.js +39 -7
  255. package/dist/utils/ModalManager/components.js.map +1 -1
  256. package/dist/utils/ModalManager/context.d.ts +1 -0
  257. package/dist/utils/ModalManager/context.js +6 -0
  258. package/dist/utils/ModalManager/context.js.map +1 -1
  259. package/dist/utils/ModalManager/index.d.ts +3 -2
  260. package/dist/utils/ModalManager/index.js +1 -0
  261. package/dist/utils/ModalManager/index.js.map +1 -1
  262. package/dist/utils/OSAlert.d.ts +6 -5
  263. package/dist/utils/OSAlert.js +7 -6
  264. package/dist/utils/OSAlert.js.map +1 -1
  265. package/dist/utils/PermissionManager/context.js +0 -7
  266. package/dist/utils/PermissionManager/context.js.map +1 -1
  267. package/dist/utils/hooks.d.ts +34 -1
  268. package/dist/utils/hooks.js +54 -1
  269. package/dist/utils/hooks.js.map +1 -1
  270. package/dist/utils/index.d.ts +8 -0
  271. package/dist/utils/index.js +38 -0
  272. package/dist/utils/index.js.map +1 -0
  273. package/dist/utils/misc.d.ts +5 -1
  274. package/dist/utils/misc.js +62 -1
  275. package/dist/utils/misc.js.map +1 -1
  276. package/dist/utils/notifications.d.ts +34 -0
  277. package/dist/utils/notifications.js +268 -0
  278. package/dist/utils/notifications.js.map +1 -0
  279. package/package.json +13 -4
  280. package/src/components/ActionIcon/index.tsx +31 -0
  281. package/src/components/ActionIcon/styles.ts +92 -0
  282. package/src/components/{ActivityIndicator.tsx → ActivityIndicator/index.tsx} +7 -3
  283. package/src/components/ActivityIndicator/styles.ts +68 -0
  284. package/src/components/AutoComplete/index.tsx +158 -0
  285. package/src/components/AutoComplete/styles.ts +49 -0
  286. package/src/components/{Backdrop.tsx → Backdrop/index.tsx} +9 -42
  287. package/src/components/Backdrop/styles.ts +33 -0
  288. package/src/components/{Button.tsx → Button/index.tsx} +62 -13
  289. package/src/components/Button/styles.ts +129 -0
  290. package/src/components/Calendar/index.tsx +65 -0
  291. package/src/components/Calendar/style.ts +35 -0
  292. package/src/components/Calendar/types.ts +102 -0
  293. package/src/components/Checkbox/index.tsx +10 -5
  294. package/src/components/Checkbox/styles.ts +8 -3
  295. package/src/components/{ContentView.tsx → ContentView/index.tsx} +11 -6
  296. package/src/components/ContentView/styles.ts +25 -0
  297. package/src/components/Drawer/index.tsx +24 -0
  298. package/src/components/Drawer/styles.ts +38 -0
  299. package/src/components/{EmptyPlaceholder.tsx → EmptyPlaceholder/index.tsx} +14 -7
  300. package/src/components/EmptyPlaceholder/styles.ts +58 -0
  301. package/src/components/{FileInput.tsx → FileInput/index.tsx} +19 -28
  302. package/src/components/FileInput/styles.ts +15 -0
  303. package/src/components/Grid/index.tsx +107 -0
  304. package/src/components/Grid/styles.ts +11 -0
  305. package/src/components/{Icon.tsx → Icon/index.tsx} +8 -3
  306. package/src/components/Icon/styles.ts +52 -0
  307. package/src/components/Image/index.tsx +91 -0
  308. package/src/components/Image/styles.ts +20 -0
  309. package/src/components/ImageView/Spotlight.tsx +158 -0
  310. package/src/components/ImageView/component.tsx +38 -0
  311. package/src/components/ImageView/index.ts +2 -0
  312. package/src/components/List/PaginationIndicator.tsx +71 -0
  313. package/src/components/List/index.tsx +108 -0
  314. package/src/components/List/styles.ts +15 -0
  315. package/src/components/Modal/index.tsx +75 -39
  316. package/src/components/Modal/styles.ts +7 -5
  317. package/src/components/MultiSelect/index.tsx +120 -0
  318. package/src/components/MultiSelect/styles.ts +18 -0
  319. package/src/components/MultiSelect/types.ts +39 -0
  320. package/src/components/Navigation/Navigation.tsx +1 -5
  321. package/src/components/Navigation/utils.tsx +0 -2
  322. package/src/components/Pager/index.tsx +81 -202
  323. package/src/components/Pager/styles.ts +57 -27
  324. package/src/components/RadioInput/index.tsx +8 -7
  325. package/src/components/RadioInput/styles.ts +10 -11
  326. package/src/components/{Scroll.tsx → Scroll/index.tsx} +22 -24
  327. package/src/components/Scroll/styles.ts +18 -0
  328. package/src/components/{Sections.tsx → Sections/index.tsx} +5 -15
  329. package/src/components/SegmentedControl/index.tsx +30 -17
  330. package/src/components/SegmentedControl/styles.ts +29 -7
  331. package/src/components/Select/index.tsx +78 -142
  332. package/src/components/Select/styles.ts +52 -74
  333. package/src/components/Select/types.ts +16 -23
  334. package/src/components/Slider/index.tsx +2 -0
  335. package/src/components/Slider/styles.ts +75 -0
  336. package/src/components/Slider/types.ts +7 -2
  337. package/src/components/{Switch.tsx → Switch/index.tsx} +10 -5
  338. package/src/components/Switch/styles.ts +37 -0
  339. package/src/components/Text/index.tsx +102 -0
  340. package/src/components/Text/styles.ts +50 -0
  341. package/src/components/TextInput/Label.tsx +26 -0
  342. package/src/components/{TextInput.tsx → TextInput/index.tsx} +124 -75
  343. package/src/components/TextInput/styles.ts +130 -0
  344. package/src/components/Touchable/index.tsx +182 -0
  345. package/src/components/Touchable/styles.ts +28 -0
  346. package/src/components/View/index.tsx +89 -0
  347. package/src/components/View/styles.ts +24 -0
  348. package/src/components/components.ts +14 -4
  349. package/src/components/defaultStyles.ts +60 -0
  350. package/src/components/{_Modal → legacy/Modal}/index.tsx +7 -7
  351. package/src/components/{_Modal → legacy/Modal}/styles.ts +0 -0
  352. package/src/components/legacy/Pager/index.tsx +242 -0
  353. package/src/components/legacy/Pager/styles.ts +51 -0
  354. package/src/components/legacy/index.ts +2 -0
  355. package/src/index.ts +4 -9
  356. package/src/modules/reactNavigation.ts +11 -0
  357. package/src/modules/textInputMask.ts +2 -0
  358. package/src/types/index.ts +1 -0
  359. package/src/utils/KeyboardAware/index.ts +15 -0
  360. package/src/utils/KeyboardAware/lib/KeyboardAwareFlatList.ts +4 -0
  361. package/src/utils/KeyboardAware/lib/KeyboardAwareHOC.tsx +618 -0
  362. package/src/utils/KeyboardAware/lib/KeyboardAwareInterface.ts +13 -0
  363. package/src/utils/KeyboardAware/lib/KeyboardAwareScrollView.ts +6 -0
  364. package/src/utils/KeyboardAware/lib/KeyboardAwareSectionList.ts +6 -0
  365. package/src/utils/KeyboardAware/types.ts +159 -0
  366. package/src/utils/ModalManager/components.tsx +57 -14
  367. package/src/utils/ModalManager/context.tsx +10 -0
  368. package/src/utils/ModalManager/index.ts +4 -1
  369. package/src/utils/OSAlert.ts +10 -10
  370. package/src/utils/PermissionManager/context.tsx +1 -7
  371. package/src/utils/hooks.ts +82 -2
  372. package/src/utils/index.ts +9 -0
  373. package/src/utils/misc.ts +61 -2
  374. package/src/utils/notifications.ts +206 -0
  375. package/dist/components/ActivityIndicator.js.map +0 -1
  376. package/dist/components/Backdrop.js.map +0 -1
  377. package/dist/components/Button.d.ts +0 -132
  378. package/dist/components/Button.js.map +0 -1
  379. package/dist/components/ContentView.js.map +0 -1
  380. package/dist/components/EmptyPlaceholder.js.map +0 -1
  381. package/dist/components/FileInput.js.map +0 -1
  382. package/dist/components/Gap.d.ts +0 -8
  383. package/dist/components/Gap.js +0 -60
  384. package/dist/components/Gap.js.map +0 -1
  385. package/dist/components/Icon.js.map +0 -1
  386. package/dist/components/Image.js.map +0 -1
  387. package/dist/components/List.js +0 -101
  388. package/dist/components/List.js.map +0 -1
  389. package/dist/components/NewModal/index.d.ts +0 -27
  390. package/dist/components/NewModal/index.js +0 -99
  391. package/dist/components/NewModal/index.js.map +0 -1
  392. package/dist/components/NewModal/styles.js +0 -58
  393. package/dist/components/NewModal/styles.js.map +0 -1
  394. package/dist/components/NewPager/index.d.ts +0 -26
  395. package/dist/components/NewPager/index.js +0 -88
  396. package/dist/components/NewPager/index.js.map +0 -1
  397. package/dist/components/NewPager/styles.js +0 -70
  398. package/dist/components/NewPager/styles.js.map +0 -1
  399. package/dist/components/Overlay.d.ts +0 -16
  400. package/dist/components/Overlay.js +0 -74
  401. package/dist/components/Overlay.js.map +0 -1
  402. package/dist/components/Scroll.d.ts +0 -15
  403. package/dist/components/Scroll.js.map +0 -1
  404. package/dist/components/Sections.d.ts +0 -11
  405. package/dist/components/Sections.js.map +0 -1
  406. package/dist/components/SegmentedControl.d.ts +0 -5
  407. package/dist/components/SegmentedControl.js +0 -32
  408. package/dist/components/SegmentedControl.js.map +0 -1
  409. package/dist/components/Switch.js.map +0 -1
  410. package/dist/components/Text.js.map +0 -1
  411. package/dist/components/TextInput.js +0 -181
  412. package/dist/components/TextInput.js.map +0 -1
  413. package/dist/components/Touchable.d.ts +0 -16
  414. package/dist/components/Touchable.js +0 -83
  415. package/dist/components/Touchable.js.map +0 -1
  416. package/dist/components/View.js.map +0 -1
  417. package/dist/components/_Modal/index.js.map +0 -1
  418. package/dist/components/_Modal/styles.js.map +0 -1
  419. package/dist/utils/PermissionManager/components.d.ts +0 -18
  420. package/dist/utils/PermissionManager/components.js +0 -52
  421. package/dist/utils/PermissionManager/components.js.map +0 -1
  422. package/dist/utils/styles.d.ts +0 -1
  423. package/dist/utils/styles.js +0 -13
  424. package/dist/utils/styles.js.map +0 -1
  425. package/src/components/Gap.tsx +0 -40
  426. package/src/components/Image.tsx +0 -62
  427. package/src/components/List.tsx +0 -155
  428. package/src/components/NewPager/index.tsx +0 -121
  429. package/src/components/NewPager/styles.ts +0 -76
  430. package/src/components/Overlay.tsx +0 -86
  431. package/src/components/Text.tsx +0 -43
  432. package/src/components/Touchable.tsx +0 -89
  433. package/src/components/View.tsx +0 -48
  434. package/src/utils/styles.ts +0 -14
@@ -1,54 +1,59 @@
1
+ import { StylesOf } from '@codeleap/common';
2
+ import { TouchableStylesGen } from '../Touchable';
1
3
  export declare type SegmentedControlStates = 'selected';
2
- export declare type SegmentedControlComposition = 'selectedBubble' | 'wrapper' | 'scroll' | 'scrollContent' | 'text' | `text:${SegmentedControlStates}` | 'button' | `button:${SegmentedControlStates}`;
4
+ export declare type SegmentedControlComposition = 'selectedBubble' | 'wrapper' | 'scroll' | 'scrollContent' | 'text' | `text:${SegmentedControlStates}` | 'button' | 'buttonFeedback' | `button:${SegmentedControlStates}`;
5
+ export declare type SegmentedControlStylesGen<TCSS = any> = StylesOf<Exclude<SegmentedControlComposition, 'buttonFeedback'>> & {
6
+ buttonFeedback?: TouchableStylesGen['feedback'];
7
+ };
3
8
  export declare const SegmentedControlStyles: {
4
- default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
5
- block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
6
- flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
7
- absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
8
- relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
9
- fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
10
- sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
11
- row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
12
- center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
13
- column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
14
- wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
15
- inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
16
- inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
17
- hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
18
- full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
19
- noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
20
- fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
21
- fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
22
- fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
23
- fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
24
- fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
25
- whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
26
- centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
27
- listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
28
- alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
29
- alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
30
- alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
31
- alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
32
- alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
33
- alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
34
- alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
35
- alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
36
- justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
37
- justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
38
- justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
39
- justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
40
- justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
41
- textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
42
- textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
43
- textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
44
- blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
45
- elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
46
- neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
47
- scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
48
- scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
49
- scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
50
- debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
51
- debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
52
- debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
53
- debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SegmentedControlComposition, any>>;
9
+ default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
10
+ inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
11
+ block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
12
+ flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
13
+ inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
14
+ absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
15
+ relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
16
+ fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
17
+ sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
18
+ hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
19
+ full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
20
+ noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
21
+ fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
22
+ fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
23
+ fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
24
+ fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
25
+ fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
26
+ whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
27
+ centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
28
+ row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
29
+ listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
30
+ column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
31
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
32
+ alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
33
+ alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
34
+ alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
35
+ alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
36
+ alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
37
+ alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
38
+ alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
39
+ alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
40
+ justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
41
+ justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
42
+ justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
43
+ justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
44
+ justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
45
+ textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
46
+ textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
47
+ textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
48
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
49
+ elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
50
+ neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
51
+ scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
52
+ scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
53
+ scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
54
+ wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
55
+ debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
56
+ debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
57
+ debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
58
+ debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => SegmentedControlStylesGen<any>;
54
59
  };
@@ -17,6 +17,10 @@ var createSegmentedControlStyle = (0, common_1.createDefaultVariantFactory)();
17
17
  var presets = (0, common_1.includePresets)(function (style) { return createSegmentedControlStyle(function () { return ({ scrollContent: style }); }); });
18
18
  exports.SegmentedControlStyles = __assign(__assign({}, presets), { default: createSegmentedControlStyle(function (theme) {
19
19
  return {
20
+ buttonFeedback: {
21
+ type: 'opacity',
22
+ value: 0.5,
23
+ },
20
24
  text: {
21
25
  color: theme.colors.text,
22
26
  },
@@ -27,9 +31,12 @@ exports.SegmentedControlStyles = __assign(__assign({}, presets), { default: crea
27
31
  height: theme.values.buttons.default.height,
28
32
  // borderRadius: Theme.borderRadius.large,
29
33
  },
30
- scrollContent: __assign({}, theme.spacing.paddingHorizontal(2)),
31
- button: __assign(__assign(__assign(__assign({ backgroundColor: 'transparent' }, theme.presets.alignCenter), { color: 'red' }), theme.spacing.padding(2)), theme.presets.justifyCenter),
32
- selectedBubble: __assign(__assign({ position: 'absolute', zIndex: -1 }, theme.spacing.padding(2)), { maxHeight: 50, minHeight: 50, borderRadius: theme.borderRadius.large, backgroundColor: theme.colors.primary }),
34
+ scrollContent: __assign(__assign(__assign({}, theme.presets.row), theme.spacing.paddingHorizontal(2)), theme.presets.alignStretch),
35
+ button: __assign(__assign(__assign(__assign(__assign({ backgroundColor: 'transparent' }, theme.presets.alignCenter), theme.presets.justifyCenter), { borderRadius: theme.borderRadius.large }), theme.spacing.padding(1)), { minHeight: '100%' }),
36
+ selectedBubble: __assign(__assign({ position: 'absolute', zIndex: -1 }, theme.spacing.padding(2)), {
37
+ // maxHeight: 50,
38
+ // minHeight: 50,
39
+ top: 0, bottom: 0, borderRadius: theme.borderRadius.large, backgroundColor: theme.colors.primary }),
33
40
  wrapper: __assign(__assign({ borderRadius: theme.borderRadius.large, backgroundColor: theme.colors.backgroundSecondary }, theme.presets.row), { position: 'relative' }),
34
41
  };
35
42
  }) });
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/SegmentedControl/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAA8E;AAc9E,IAAM,2BAA2B,GAAG,IAAA,oCAA2B,GAA+B,CAAA;AAE9F,IAAM,OAAO,GAAG,IAAA,uBAAc,EAAC,UAAC,KAAK,IAAK,OAAA,2BAA2B,CAAC,cAAM,OAAA,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,EAA1B,CAA0B,CAAC,EAA7D,CAA6D,CAAC,CAAA;AAE3F,QAAA,sBAAsB,yBAC9B,OAAO,KACV,OAAO,EAAE,2BAA2B,CAAC,UAAC,KAAK;QAEzC,OAAO;YAEL,IAAI,EAAE;gBACJ,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI;aACzB;YACD,eAAe,EAA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K,CAAC,MAAM,CAAC,mBAAmB,IAC9C,KAAK,CAAC,OAAO,CAAC,GAAG,KACpB,QAAQ,EAAE,UAAU,GACrB;SAEF,CAAA;IAEH,CAAC,CAAC,IACH"}
@@ -1,5 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import { CustomSelectProps } from './types';
3
+ export declare const SelectItem: ({ item, icon, isSelected, styles, onPress }: {
4
+ item: any;
5
+ icon?: any;
6
+ isSelected: any;
7
+ styles: any;
8
+ onPress: any;
9
+ }) => JSX.Element;
10
+ export * from './styles';
3
11
  export declare const Select: <T extends string | number = string>(selectProps: CustomSelectProps<T>) => JSX.Element;
4
12
  export * from './styles';
5
13
  export * from './types';
@@ -1,15 +1,4 @@
1
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
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -48,34 +37,45 @@ var __rest = (this && this.__rest) || function (s, e) {
48
37
  return t;
49
38
  };
50
39
  Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.Select = void 0;
40
+ exports.Select = exports.SelectItem = void 0;
52
41
  var common_1 = require("@codeleap/common");
53
42
  var react_1 = __importStar(require("react"));
54
43
  var react_native_1 = require("react-native");
55
- var Button_1 = require("../Button");
56
- var Scroll_1 = require("../Scroll");
44
+ var List_1 = require("../List");
45
+ var Text_1 = require("../Text");
57
46
  var TextInput_1 = require("../TextInput");
58
47
  var Touchable_1 = require("../Touchable");
59
- var View_1 = require("../View");
48
+ var utils_1 = require("../../utils");
49
+ var Icon_1 = require("../Icon");
50
+ var SelectItem = function (_a) {
51
+ var item = _a.item, _b = _a.icon, icon = _b === void 0 ? null : _b, isSelected = _a.isSelected, styles = _a.styles, onPress = _a.onPress;
52
+ return <Touchable_1.Touchable style={[
53
+ styles.itemWrapper,
54
+ isSelected && styles['itemWrapper:selected'],
55
+ ]} onPress={onPress} debugName={"Select ".concat(item.value)}>
56
+ <Text_1.Text text={item.label} style={[
57
+ styles.itemText,
58
+ isSelected && styles['itemText:selected'],
59
+ ]}/>
60
+ {icon ? <Icon_1.Icon name={icon} style={[styles === null || styles === void 0 ? void 0 : styles.itemIcon, isSelected && (styles === null || styles === void 0 ? void 0 : styles['itemIcon:selected'])]}/> : null}
61
+ </Touchable_1.Touchable>;
62
+ };
63
+ exports.SelectItem = SelectItem;
64
+ __exportStar(require("./styles"), exports);
60
65
  var Select = function (selectProps) {
61
- var value = selectProps.value, onValueChange = selectProps.onValueChange, label = selectProps.label, _a = selectProps.styles, styles = _a === void 0 ? {} : _a, options = selectProps.options, style = selectProps.style, variants = selectProps.variants, renderItem = selectProps.renderItem, _b = selectProps.closeOnSelect, closeOnSelect = _b === void 0 ? true : _b, _c = selectProps.scroll, scroll = _c === void 0 ? false : _c, _d = selectProps.showClose, showClose = _d === void 0 ? true : _d, _e = selectProps.showLabelOnModal, showLabelOnModal = _e === void 0 ? true : _e, _f = selectProps.placeholder, placeholder = _f === void 0 ? 'Select' : _f, _g = selectProps.arrowIconName, arrowIconName = _g === void 0 ? 'selectArrow' : _g, footer = selectProps.footer, _h = selectProps.modalCloseIconName, modalCloseIconName = _h === void 0 ? 'close' : _h, header = selectProps.header, closeButtonProps = selectProps.closeButtonProps, modalLabel = selectProps.modalLabel, _j = selectProps.textInputProps, textInputProps = _j === void 0 ? {} : _j, _k = selectProps.visible, visible = _k === void 0 ? null : _k, _l = selectProps.toggle, toggle = _l === void 0 ? null : _l, renderList = selectProps.renderList, props = __rest(selectProps, ["value", "onValueChange", "label", "styles", "options", "style", "variants", "renderItem", "closeOnSelect", "scroll", "showClose", "showLabelOnModal", "placeholder", "arrowIconName", "footer", "modalCloseIconName", "header", "closeButtonProps", "modalLabel", "textInputProps", "visible", "toggle", "renderList"]);
62
- var _m = (0, common_1.useBooleanToggle)(false), _isModalVisible = _m[0], _setModalVisibility = _m[1];
63
- var isModalVisible = visible !== null && visible !== void 0 ? visible : _isModalVisible;
64
- var setModalVisibility = toggle !== null && toggle !== void 0 ? toggle : _setModalVisibility;
65
- var variantStyles = (0, common_1.useDefaultComponentStyle)('u:MobileSelect', {
66
+ var value = selectProps.value, onValueChange = selectProps.onValueChange, label = selectProps.label, _a = selectProps.styles, styles = _a === void 0 ? {} : _a, options = selectProps.options, style = selectProps.style, variants = selectProps.variants, renderItem = selectProps.renderItem, _b = selectProps.closeOnSelect, closeOnSelect = _b === void 0 ? true : _b, listProps = selectProps.listProps, _c = selectProps.placeholder, placeholder = _c === void 0 ? 'Select' : _c, _d = selectProps.arrowIconName, arrowIconName = _d === void 0 ? 'selectArrow' : _d, _e = selectProps.inputProps, inputProps = _e === void 0 ? {} : _e, _f = selectProps.hideInput, hideInput = _f === void 0 ? false : _f, drawerProps = __rest(selectProps, ["value", "onValueChange", "label", "styles", "options", "style", "variants", "renderItem", "closeOnSelect", "listProps", "placeholder", "arrowIconName", "inputProps", "hideInput"]);
67
+ var variantStyles = (0, common_1.useDefaultComponentStyle)('u:Select', {
66
68
  transform: react_native_1.StyleSheet.flatten,
67
69
  rootElement: 'inputWrapper',
68
70
  styles: styles,
69
71
  variants: variants,
70
72
  });
71
73
  var inputStyles = (0, react_1.useMemo)(function () { return (0, common_1.getNestedStylesByKey)('input', variantStyles); }, [variantStyles]);
72
- var closeButtonStyles = (0, react_1.useMemo)(function () { return (0, common_1.getNestedStylesByKey)('modalCloseButton', variantStyles); }, [variantStyles]);
73
- var ListComponent = scroll ? Scroll_1.Scroll : View_1.View;
74
- var close = function () { return setModalVisibility(); };
74
+ var close = function () { var _a; return (_a = drawerProps === null || drawerProps === void 0 ? void 0 : drawerProps.toggle) === null || _a === void 0 ? void 0 : _a.call(drawerProps); };
75
75
  var select = function (value) {
76
76
  onValueChange(value);
77
77
  if (closeOnSelect) {
78
- close();
78
+ close === null || close === void 0 ? void 0 : close();
79
79
  }
80
80
  };
81
81
  var selectedLabel = (0, react_1.useMemo)(function () {
@@ -84,65 +84,22 @@ var Select = function (selectProps) {
84
84
  var display = (_a = current === null || current === void 0 ? void 0 : current.label) !== null && _a !== void 0 ? _a : placeholder;
85
85
  return common_1.TypeGuards.isString(display) ? display : '';
86
86
  }, [value, placeholder, options]);
87
+ var Item = renderItem || exports.SelectItem;
88
+ var renderListItem = function (_a) {
89
+ var item = _a.item;
90
+ return <Item isSelected={value === item.value} item={item} onPress={function () { return select(item.value); }} styles={variantStyles}/>;
91
+ };
87
92
  return <>
88
- <TextInput_1.TextInput caretHidden value={selectedLabel} rightIcon={{
89
- name: arrowIconName,
90
- }} editable={false} touchableWrapper wrapperProps={{
91
- debugName: 'Select',
92
- onPress: close,
93
- }} pointerEvents={'none'} label={label} debugName={'Select input'} styles={inputStyles} style={style} {...textInputProps}/>
94
- <View_1.AnimatedView pointerEvents={'none'} transition='opacity' style={[
95
- {
96
- position: 'absolute',
97
- top: 0,
98
- right: 0,
99
- left: 0,
100
- bottom: 0,
101
- },
102
- variantStyles.backdrop,
103
- isModalVisible ? variantStyles['backdrop:visible'] : variantStyles['backdrop:hidden'],
104
- ]}/>
105
-
106
- <react_native_1.Modal animationType='slide' transparent={true} visible={isModalVisible} onRequestClose={function () {
107
- setModalVisibility();
108
- }} pointerEvents={isModalVisible ? 'auto' : 'none'}>
109
- <Touchable_1.Touchable onPress={close} style={{
110
- position: 'absolute',
111
- top: 0,
112
- right: 0,
113
- left: 0,
114
- bottom: 0,
115
- }} debugName={"Close modal"}/>
116
- <View_1.View style={variantStyles.modalWrapper}>
93
+ {!hideInput && (<TextInput_1.TextInput caretHidden value={selectedLabel} rightIcon={{
94
+ icon: arrowIconName,
95
+ }} editable={false} touchableWrapper onPress={close} wrapperProps={{
96
+ debugName: 'Select',
97
+ }} pointerEvents={'none'} label={label} debugName={'Select input'} styles={inputStyles} style={style} {...inputProps}/>)}
117
98
 
118
- <View_1.View style={variantStyles.modalBox}>
119
- {(showClose || showLabelOnModal || header) && (<View_1.View style={variantStyles.modalHeader}>
120
- {header ? header : <>
121
- {showLabelOnModal && <TextInput_1.InputLabel label={modalLabel || label} style={variantStyles.modalLabelText}/>}
122
- {showClose && <Button_1.Button icon={modalCloseIconName} onPress={close} styles={closeButtonStyles} debugName={'Close modal'} {...closeButtonProps}/>}
123
- </>}
124
- </View_1.View>)}
125
- <ListComponent style={variantStyles.modalList}>
126
- {renderList ? renderList(__assign(__assign({}, selectProps), { isEmpty: !options.length })) : options.map(function (item, idx) {
127
- var isSelected = value === item.value;
128
- if (renderItem) {
129
- return renderItem(__assign(__assign({}, item), { index: idx, selected: isSelected, onPress: close, styles: variantStyles }));
130
- }
131
- return <Touchable_1.Touchable key={idx} style={[
132
- variantStyles.modalItem,
133
- isSelected && variantStyles['modalItem:selected'],
134
- ]} onPress={function () { return select(item.value); }} debugName={"Select ".concat(item.value)}>
135
- <TextInput_1.InputLabel label={item.label} style={[variantStyles.modalItemText, isSelected && variantStyles['modalItemText:selected']]}/>
136
- </Touchable_1.Touchable>;
137
- })}
138
- </ListComponent>
99
+ <utils_1.ModalManager.Drawer scroll={false} title={label} {...drawerProps} styles={variantStyles}>
100
+ <List_1.List data={options} style={variantStyles.list} contentContainerStyle={variantStyles.listContent} keyExtractor={function (i) { return i.value; }} renderItem={renderListItem} {...listProps}/>
101
+ </utils_1.ModalManager.Drawer>
139
102
 
140
- {footer && <View_1.View style={variantStyles.modalFooter}>
141
- {footer}
142
- </View_1.View>}
143
- </View_1.View>
144
- </View_1.View>
145
- </react_native_1.Modal>
146
103
  </>;
147
104
  };
148
105
  exports.Select = Select;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";;;;;;;;;;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Aa,CAAC,CAAC,MAAM,CAAC,CACtB,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,SAAS,CAAC,CAAC,cAAc,CAAC,CAC1B,MAAM,CAAC,CAAC,WAAW,CAAC,CACpB,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,UAAU,CAAC,EACf,CACH,CAGH;;IAAA,CAAC,oBAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CACvF;MAAA,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,OAAO,CAAC,CACd,KAAK,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,CAC1B,qBAAqB,CAAC,CAAC,aAAa,CAAC,WAAW,CAAC,CACjD,YAAY,CAAC,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,KAAK,EAAP,CAAO,CAAC,CAC7B,UAAU,CAAC,CAAC,cAAc,CAAC,CAC3B,IAAI,SAAS,CAAC,EAElB;IAAA,EAAE,oBAAY,CAAC,MAAM,CAEvB;;EAAA,GAAG,CAAA;AACL,CAAC,CAAA;AAjGY,QAAA,MAAM,UAiGlB;AAED,2CAAwB;AACxB,0CAAuB"}
@@ -1,9 +1,59 @@
1
- import { ButtonParts, TextInputComposition } from '@codeleap/common';
2
- declare type ModalParts = 'Box' | 'Wrapper' | 'Header' | 'Footer' | 'List' | 'Item' | 'ItemText' | 'Item:selected' | 'ItemText:selected' | 'LabelText' | `CloseButton${Capitalize<ButtonParts>}`;
3
- declare type InputParts = `input${Capitalize<TextInputComposition>}`;
4
- export declare type MobileSelectParts = InputParts | `backdrop` | `backdrop:visible` | `backdrop:hidden` | `modal${ModalParts}`;
5
- export declare type MobileSelectComposition = MobileSelectParts;
6
- export declare const MobileSelectStyles: {
7
- default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<MobileSelectParts, any>>;
1
+ import { TextInputComposition } from '@codeleap/common';
2
+ import { DrawerComposition } from '../Drawer';
3
+ declare type ItemStates = '' | ':selected';
4
+ export declare type SelectComposition = DrawerComposition | `input${TextInputComposition}` | 'list' | 'listContent' | `itemWrapper${ItemStates}` | `itemText${ItemStates}` | 'scroll' | 'scrollContent' | `itemIcon${ItemStates}`;
5
+ export declare const SelectStyles: {
6
+ default: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<SelectComposition, any>>;
7
+ popup: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
8
+ fullscreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
9
+ inline: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
10
+ block: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
11
+ flex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
12
+ inlineFlex: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
13
+ absolute: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
14
+ relative: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
15
+ fixed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
16
+ sticky: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
17
+ hidden: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
18
+ full: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
19
+ noWrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
20
+ fullWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
21
+ fullHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
22
+ fullView: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
23
+ fullViewWidth: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
24
+ fullViewHeight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
25
+ whole: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
26
+ centerRow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
27
+ row: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
28
+ listStyles: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
29
+ column: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
30
+ center: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
31
+ alignStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
32
+ alignEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
33
+ alignCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
34
+ alignStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
35
+ alignSelfCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
36
+ alignSelfStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
37
+ alignSelfStretch: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
38
+ alignSelfEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
39
+ justifyStart: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
40
+ justifyEnd: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
41
+ justifyCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
42
+ justifySpaceBetween: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
43
+ justifySpaceAround: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
44
+ textRight: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
45
+ textLeft: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
46
+ textCenter: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
47
+ blur: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
48
+ elevated: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
49
+ neumorphism: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
50
+ scrollX: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
51
+ scrollY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
52
+ scrollXY: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
53
+ wrap: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
54
+ debRed: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
55
+ debGreen: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
56
+ debBlue: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
57
+ debYellow: (theme: import("@codeleap/common").ThemeColorScheme<import("@codeleap/common").AppTheme>, variant?: string) => Partial<Record<import("../Modal").ModalComposition, any>>;
8
58
  };
9
59
  export {};
@@ -11,47 +11,23 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.MobileSelectStyles = void 0;
14
+ exports.SelectStyles = void 0;
15
15
  var common_1 = require("@codeleap/common");
16
+ var Drawer_1 = require("../Drawer");
16
17
  var createSelectStyle = (0, common_1.createDefaultVariantFactory)();
17
- exports.MobileSelectStyles = {
18
- default: createSelectStyle(function (theme) { return ({
19
- modalBox: {
20
- // ...MobileModalStyles.default(theme).box,
21
- backgroundColor: theme.colors.background,
22
- borderTopLeftRadius: 20,
23
- borderTopRightRadius: 20,
24
- zIndex: 1,
25
- elevation: 5,
26
- },
27
- modalWrapper: {
28
- // ...MobileModalStyles.default(theme).wrapper,
29
- flex: 1,
30
- alignItems: 'stretch',
31
- justifyContent: 'flex-end',
32
- },
33
- modalItem: __assign(__assign(__assign({}, theme.spacing.paddingVertical(1)), theme.spacing.paddingHorizontal(2)), { color: theme.colors.text }),
34
- 'modalItemText:selected': {
35
- color: theme.colors.primary,
36
- },
37
- modalList: __assign({}, theme.spacing.marginVertical(0.6)),
38
- backdrop: {
39
- // ...MobileModalStyles.default(theme).overlay,
40
- zIndex: 10,
41
- flex: 1,
42
- backgroundColor: theme.colors.black,
43
- },
44
- 'backdrop:hidden': {
45
- opacity: 0,
46
- },
47
- 'backdrop:visible': {
48
- opacity: 0.4,
49
- },
50
- modalHeader: __assign(__assign(__assign(__assign({}, theme.spacing.padding(2)), { flexDirection: 'row' }), theme.presets.alignCenter), theme.presets.justifySpaceBetween),
51
- modalLabelText: __assign({}, (0, common_1.assignTextStyle)('p2')(theme).text),
52
- modalCloseButtonWrapper: {
53
- backgroundColor: 'transparent',
54
- },
55
- }); }),
56
- };
18
+ exports.SelectStyles = __assign(__assign({}, Drawer_1.DrawerStyles), { default: createSelectStyle(function (theme) {
19
+ var defaultStyle = Drawer_1.DrawerStyles.default(theme);
20
+ return __assign(__assign({}, defaultStyle), { box: __assign({}, theme.spacing.paddingHorizontal(0)), itemWrapper: __assign(__assign(__assign(__assign(__assign({}, theme.presets.row), theme.presets.justifySpaceBetween), theme.presets.alignCenter), theme.spacing.padding(1.4)), { height: 50 }), 'itemWrapper:selected': {
21
+ backgroundColor: theme.colors.primary,
22
+ }, 'itemText:selected': {
23
+ color: theme.colors.white,
24
+ }, 'itemIcon:selected': __assign({ color: theme.colors.white }, theme.sized(3)), itemIcon: {
25
+ width: 0,
26
+ height: 0,
27
+ }, list: {
28
+ height: 'auto',
29
+ }, listContent: {
30
+ paddingBottom: theme.values.bottomNavHeight + theme.spacing.value(1),
31
+ } });
32
+ }) });
57
33
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Select/styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAAkH;AAyBlH,IAAM,iBAAiB,GAAG,IAAA,oCAA2B,GAA2B,CAAA;AAEnE,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,iBAAiB,CAAC,UAAC,KAAK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