@draftbit/core 46.4.4-fe82de.2 → 46.5.1-c6140a.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 (430) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +23 -4
  2. package/lib/commonjs/components/AnimatedCircularProgress.js +1 -12
  3. package/lib/commonjs/components/AspectRatio.js +1 -17
  4. package/lib/commonjs/components/Button.js +33 -10
  5. package/lib/commonjs/components/Carousel.js +2 -1
  6. package/lib/commonjs/components/Checkbox/CheckboxRow.js +23 -6
  7. package/lib/commonjs/components/CircleImage.js +15 -1
  8. package/lib/commonjs/components/CircularProgress.js +26 -8
  9. package/lib/commonjs/components/Config.js +3 -3
  10. package/lib/commonjs/components/Container.js +15 -4
  11. package/lib/commonjs/components/DatePicker/DatePicker.js +10 -9
  12. package/lib/commonjs/components/Elevation.js +14 -2
  13. package/lib/commonjs/components/Picker/Picker.js +8 -8
  14. package/lib/commonjs/components/Picker/PickerComponent.android.js +20 -3
  15. package/lib/commonjs/components/Picker/PickerComponent.ios.js +2 -2
  16. package/lib/commonjs/components/Picker/PickerComponent.web.js +20 -3
  17. package/lib/commonjs/components/Portal/PortalManager.js +34 -8
  18. package/lib/commonjs/components/RadioButton/RadioButton.js +1 -1
  19. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -1
  20. package/lib/commonjs/components/StepIndicator.js +1 -1
  21. package/lib/commonjs/components/Stepper.js +8 -5
  22. package/lib/commonjs/hooks.js +1 -2
  23. package/lib/commonjs/mappings/AudioPlayer.js +32 -2
  24. package/lib/commonjs/mappings/DatePicker.js +12 -12
  25. package/lib/commonjs/mappings/Stepper.js +1 -1
  26. package/lib/commonjs/mappings/TextArea.js +14 -3
  27. package/lib/commonjs/mappings/TextField.js +14 -4
  28. package/lib/commonjs/mappings/TextInput.js +14 -3
  29. package/lib/commonjs/utilities.js +1 -1
  30. package/lib/module/components/CardBlock.js +14 -4
  31. package/lib/module/components/CardContainer.js +14 -4
  32. package/lib/module/components/Carousel.js +6 -1
  33. package/lib/module/components/Config.js +3 -3
  34. package/lib/module/components/DatePicker/DatePicker.js +10 -9
  35. package/lib/module/components/FieldSearchBarFull.js +1 -2
  36. package/lib/module/components/FormRow.js +17 -2
  37. package/lib/module/components/IconButton.js +21 -4
  38. package/lib/module/components/Image.js +18 -2
  39. package/lib/module/components/Picker/Picker.js +5 -5
  40. package/lib/module/components/Picker/PickerComponent.android.js +2 -2
  41. package/lib/module/components/Picker/PickerComponent.ios.js +2 -2
  42. package/lib/module/components/Picker/PickerComponent.web.js +2 -2
  43. package/lib/module/components/RadioButton/RadioButton.js +1 -1
  44. package/lib/module/components/RadioButton/RadioButtonRow.js +1 -1
  45. package/lib/module/components/StepIndicator.js +1 -1
  46. package/lib/module/components/Stepper.js +8 -7
  47. package/lib/module/mappings/AudioPlayer.js +33 -3
  48. package/lib/module/mappings/DatePicker.js +12 -12
  49. package/lib/module/mappings/Stepper.js +2 -2
  50. package/lib/module/mappings/TextArea.js +15 -4
  51. package/lib/module/mappings/TextField.js +14 -4
  52. package/lib/module/mappings/TextInput.js +15 -4
  53. package/lib/module/utilities.js +1 -1
  54. package/lib/typescript/src/Provider.d.ts +1 -0
  55. package/lib/typescript/src/Provider.d.ts.map +1 -0
  56. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -0
  57. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -0
  58. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -0
  59. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -0
  60. package/lib/typescript/src/components/Accordion/index.d.ts +1 -0
  61. package/lib/typescript/src/components/Accordion/index.d.ts.map +1 -0
  62. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +1 -0
  63. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts.map +1 -0
  64. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -0
  65. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -0
  66. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -0
  67. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -0
  68. package/lib/typescript/src/components/ActionSheet/index.d.ts +1 -0
  69. package/lib/typescript/src/components/ActionSheet/index.d.ts.map +1 -0
  70. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +1 -0
  71. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
  72. package/lib/typescript/src/components/AspectRatio.d.ts +1 -0
  73. package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
  74. package/lib/typescript/src/components/AvatarEdit.d.ts +1 -0
  75. package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
  76. package/lib/typescript/src/components/Banner.d.ts +1 -0
  77. package/lib/typescript/src/components/Banner.d.ts.map +1 -0
  78. package/lib/typescript/src/components/Button.d.ts +1 -0
  79. package/lib/typescript/src/components/Button.d.ts.map +1 -0
  80. package/lib/typescript/src/components/Card.d.ts +1 -0
  81. package/lib/typescript/src/components/Card.d.ts.map +1 -0
  82. package/lib/typescript/src/components/CardBlock.d.ts +1 -0
  83. package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
  84. package/lib/typescript/src/components/CardContainer.d.ts +1 -0
  85. package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
  86. package/lib/typescript/src/components/CardContainerRating.d.ts +1 -0
  87. package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
  88. package/lib/typescript/src/components/CardContainerShortImage.d.ts +1 -0
  89. package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
  90. package/lib/typescript/src/components/CardInline.d.ts +1 -0
  91. package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
  92. package/lib/typescript/src/components/Carousel.d.ts +1 -0
  93. package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
  94. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +1 -0
  95. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -0
  96. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts +1 -0
  97. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
  98. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +1 -0
  99. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -0
  100. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +1 -0
  101. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -0
  102. package/lib/typescript/src/components/Checkbox/context.d.ts +1 -0
  103. package/lib/typescript/src/components/Checkbox/context.d.ts.map +1 -0
  104. package/lib/typescript/src/components/Checkbox/index.d.ts +1 -0
  105. package/lib/typescript/src/components/Checkbox/index.d.ts.map +1 -0
  106. package/lib/typescript/src/components/CircleImage.d.ts +1 -0
  107. package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
  108. package/lib/typescript/src/components/CircularProgress.d.ts +1 -0
  109. package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
  110. package/lib/typescript/src/components/Config.d.ts +1 -0
  111. package/lib/typescript/src/components/Config.d.ts.map +1 -0
  112. package/lib/typescript/src/components/Container.d.ts +1 -0
  113. package/lib/typescript/src/components/Container.d.ts.map +1 -0
  114. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +4 -3
  115. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -0
  116. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +1 -0
  117. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -0
  118. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +1 -0
  119. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -0
  120. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +1 -0
  121. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -0
  122. package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -0
  123. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
  124. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +1 -0
  125. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
  126. package/lib/typescript/src/components/DeprecatedFAB.d.ts +1 -0
  127. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
  128. package/lib/typescript/src/components/Divider.d.ts +1 -0
  129. package/lib/typescript/src/components/Divider.d.ts.map +1 -0
  130. package/lib/typescript/src/components/Elevation.d.ts +1 -0
  131. package/lib/typescript/src/components/Elevation.d.ts.map +1 -0
  132. package/lib/typescript/src/components/FAB.d.ts +1 -0
  133. package/lib/typescript/src/components/FAB.d.ts.map +1 -0
  134. package/lib/typescript/src/components/FieldSearchBarFull.d.ts +1 -0
  135. package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
  136. package/lib/typescript/src/components/FormRow.d.ts +1 -0
  137. package/lib/typescript/src/components/FormRow.d.ts.map +1 -0
  138. package/lib/typescript/src/components/Header.d.ts +1 -0
  139. package/lib/typescript/src/components/Header.d.ts.map +1 -0
  140. package/lib/typescript/src/components/HeaderLarge.d.ts +1 -0
  141. package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
  142. package/lib/typescript/src/components/HeaderMedium.d.ts +1 -0
  143. package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
  144. package/lib/typescript/src/components/HeaderOverline.d.ts +1 -0
  145. package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
  146. package/lib/typescript/src/components/IconButton.d.ts +1 -0
  147. package/lib/typescript/src/components/IconButton.d.ts.map +1 -0
  148. package/lib/typescript/src/components/Image.d.ts +1 -0
  149. package/lib/typescript/src/components/Image.d.ts.map +1 -0
  150. package/lib/typescript/src/components/Justification.d.ts +1 -0
  151. package/lib/typescript/src/components/Justification.d.ts.map +1 -0
  152. package/lib/typescript/src/components/Layout.d.ts +1 -0
  153. package/lib/typescript/src/components/Layout.d.ts.map +1 -0
  154. package/lib/typescript/src/components/NumberInput.d.ts +1 -0
  155. package/lib/typescript/src/components/NumberInput.d.ts.map +1 -0
  156. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
  157. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -0
  158. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +1 -0
  159. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts.map +1 -0
  160. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +1 -0
  161. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts.map +1 -0
  162. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +1 -0
  163. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts.map +1 -0
  164. package/lib/typescript/src/components/Picker/PickerTypes.d.ts +1 -0
  165. package/lib/typescript/src/components/Picker/PickerTypes.d.ts.map +1 -0
  166. package/lib/typescript/src/components/Portal/Portal.d.ts +1 -0
  167. package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -0
  168. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -0
  169. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -0
  170. package/lib/typescript/src/components/Portal/PortalHost.d.ts +1 -0
  171. package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -0
  172. package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -0
  173. package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -0
  174. package/lib/typescript/src/components/ProgressBar.d.ts +1 -0
  175. package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
  176. package/lib/typescript/src/components/ProgressCircle.d.ts +1 -0
  177. package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
  178. package/lib/typescript/src/components/ProgressIndicator.d.ts +1 -0
  179. package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
  180. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -0
  181. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -0
  182. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts +1 -0
  183. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts.map +1 -0
  184. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +1 -0
  185. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts.map +1 -0
  186. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -0
  187. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts.map +1 -0
  188. package/lib/typescript/src/components/RadioButton/context.d.ts +1 -0
  189. package/lib/typescript/src/components/RadioButton/context.d.ts.map +1 -0
  190. package/lib/typescript/src/components/RadioButton/index.d.ts +1 -0
  191. package/lib/typescript/src/components/RadioButton/index.d.ts.map +1 -0
  192. package/lib/typescript/src/components/ResizeMode.d.ts +1 -0
  193. package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
  194. package/lib/typescript/src/components/Row.d.ts +1 -0
  195. package/lib/typescript/src/components/Row.d.ts.map +1 -0
  196. package/lib/typescript/src/components/RowBodyIcon.d.ts +1 -0
  197. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
  198. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +1 -0
  199. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
  200. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +1 -0
  201. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
  202. package/lib/typescript/src/components/SVG.d.ts +1 -0
  203. package/lib/typescript/src/components/SVG.d.ts.map +1 -0
  204. package/lib/typescript/src/components/ScreenContainer.d.ts +1 -0
  205. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -0
  206. package/lib/typescript/src/components/Slider.d.ts +1 -0
  207. package/lib/typescript/src/components/Slider.d.ts.map +1 -0
  208. package/lib/typescript/src/components/StarRating.d.ts +1 -0
  209. package/lib/typescript/src/components/StarRating.d.ts.map +1 -0
  210. package/lib/typescript/src/components/StepIndicator.d.ts +1 -0
  211. package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
  212. package/lib/typescript/src/components/Stepper.d.ts +2 -2
  213. package/lib/typescript/src/components/Stepper.d.ts.map +1 -0
  214. package/lib/typescript/src/components/Surface.d.ts +1 -0
  215. package/lib/typescript/src/components/Surface.d.ts.map +1 -0
  216. package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -0
  217. package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -0
  218. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +1 -0
  219. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts.map +1 -0
  220. package/lib/typescript/src/components/Swiper/index.d.ts +1 -0
  221. package/lib/typescript/src/components/Swiper/index.d.ts.map +1 -0
  222. package/lib/typescript/src/components/Switch.d.ts +1 -0
  223. package/lib/typescript/src/components/Switch.d.ts.map +1 -0
  224. package/lib/typescript/src/components/Text.d.ts +1 -0
  225. package/lib/typescript/src/components/Text.d.ts.map +1 -0
  226. package/lib/typescript/src/components/TextField.d.ts +1 -0
  227. package/lib/typescript/src/components/TextField.d.ts.map +1 -0
  228. package/lib/typescript/src/components/ToggleButton.d.ts +1 -0
  229. package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
  230. package/lib/typescript/src/components/Touchable.d.ts +1 -0
  231. package/lib/typescript/src/components/Touchable.d.ts.map +1 -0
  232. package/lib/typescript/src/components/Touchable.web.d.ts +1 -0
  233. package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
  234. package/lib/typescript/src/components/Typography.d.ts +1 -0
  235. package/lib/typescript/src/components/Typography.d.ts.map +1 -0
  236. package/lib/typescript/src/components/useAuthState.d.ts +1 -0
  237. package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
  238. package/lib/typescript/src/constants.d.ts +1 -0
  239. package/lib/typescript/src/constants.d.ts.map +1 -0
  240. package/lib/typescript/src/hooks.d.ts +1 -0
  241. package/lib/typescript/src/hooks.d.ts.map +1 -0
  242. package/lib/typescript/src/index.d.ts +1 -0
  243. package/lib/typescript/src/index.d.ts.map +1 -0
  244. package/lib/typescript/src/interfaces/Icon.d.ts +1 -0
  245. package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -0
  246. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  247. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
  248. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  249. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
  250. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  251. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
  252. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  253. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
  254. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  255. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
  256. package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
  257. package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
  258. package/lib/typescript/src/mappings/AudioPlayer.d.ts +63 -1
  259. package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
  260. package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
  261. package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
  262. package/lib/typescript/src/mappings/Banner.d.ts +1 -0
  263. package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
  264. package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
  265. package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
  266. package/lib/typescript/src/mappings/Button.d.ts +1 -0
  267. package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
  268. package/lib/typescript/src/mappings/Card.d.ts +1 -0
  269. package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
  270. package/lib/typescript/src/mappings/CardBlock.d.ts +1 -0
  271. package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
  272. package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
  273. package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
  274. package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
  275. package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
  276. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +1 -0
  277. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
  278. package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
  279. package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
  280. package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
  281. package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
  282. package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
  283. package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
  284. package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
  285. package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
  286. package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
  287. package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
  288. package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
  289. package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
  290. package/lib/typescript/src/mappings/Container.d.ts +1 -0
  291. package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
  292. package/lib/typescript/src/mappings/CustomCode.d.ts +1 -0
  293. package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
  294. package/lib/typescript/src/mappings/DatePicker.d.ts +12 -11
  295. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
  296. package/lib/typescript/src/mappings/Divider.d.ts +1 -0
  297. package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
  298. package/lib/typescript/src/mappings/FAB.d.ts +1 -0
  299. package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
  300. package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
  301. package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
  302. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
  303. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
  304. package/lib/typescript/src/mappings/FlashList.d.ts +1 -0
  305. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
  306. package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
  307. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
  308. package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
  309. package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
  310. package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
  311. package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
  312. package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
  313. package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
  314. package/lib/typescript/src/mappings/Icon.d.ts +1 -0
  315. package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
  316. package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
  317. package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
  318. package/lib/typescript/src/mappings/Image.d.ts +1 -0
  319. package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
  320. package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
  321. package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
  322. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
  323. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
  324. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
  325. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
  326. package/lib/typescript/src/mappings/Layout.d.ts +1 -0
  327. package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
  328. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  329. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
  330. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  331. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
  332. package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
  333. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
  334. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  335. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
  336. package/lib/typescript/src/mappings/Modal.d.ts +1 -0
  337. package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
  338. package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
  339. package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
  340. package/lib/typescript/src/mappings/Picker.d.ts +1 -0
  341. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
  342. package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
  343. package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
  344. package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
  345. package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
  346. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
  347. package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
  348. package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
  349. package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
  350. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
  351. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
  352. package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
  353. package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
  354. package/lib/typescript/src/mappings/RowBodyIcon.d.ts +1 -0
  355. package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
  356. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +1 -0
  357. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
  358. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +1 -0
  359. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
  360. package/lib/typescript/src/mappings/SVG.d.ts +1 -0
  361. package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
  362. package/lib/typescript/src/mappings/SafeAreaView.d.ts +1 -0
  363. package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
  364. package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
  365. package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
  366. package/lib/typescript/src/mappings/Slider.d.ts +1 -0
  367. package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
  368. package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
  369. package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
  370. package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
  371. package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
  372. package/lib/typescript/src/mappings/Surface.d.ts +1 -0
  373. package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
  374. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  375. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
  376. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  377. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
  378. package/lib/typescript/src/mappings/Switch.d.ts +1 -0
  379. package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
  380. package/lib/typescript/src/mappings/Text.d.ts +1 -0
  381. package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
  382. package/lib/typescript/src/mappings/TextArea.d.ts +22 -1
  383. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
  384. package/lib/typescript/src/mappings/TextField.d.ts +23 -2
  385. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
  386. package/lib/typescript/src/mappings/TextInput.d.ts +22 -1
  387. package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
  388. package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
  389. package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
  390. package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
  391. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
  392. package/lib/typescript/src/mappings/Video.d.ts +1 -0
  393. package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
  394. package/lib/typescript/src/mappings/View.d.ts +1 -0
  395. package/lib/typescript/src/mappings/View.d.ts.map +1 -0
  396. package/lib/typescript/src/mappings/WebView.d.ts +1 -0
  397. package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
  398. package/lib/typescript/src/styles/DarkTheme.d.ts +1 -0
  399. package/lib/typescript/src/styles/DarkTheme.d.ts.map +1 -0
  400. package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -0
  401. package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -0
  402. package/lib/typescript/src/styles/fonts.d.ts +1 -0
  403. package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
  404. package/lib/typescript/src/styles/overlay.d.ts +1 -0
  405. package/lib/typescript/src/styles/overlay.d.ts.map +1 -0
  406. package/lib/typescript/src/styles/shadow.d.ts +1 -0
  407. package/lib/typescript/src/styles/shadow.d.ts.map +1 -0
  408. package/lib/typescript/src/theming.d.ts +1 -0
  409. package/lib/typescript/src/theming.d.ts.map +1 -0
  410. package/lib/typescript/src/utilities.d.ts +1 -0
  411. package/lib/typescript/src/utilities.d.ts.map +1 -0
  412. package/package.json +15 -5
  413. package/src/components/DatePicker/DatePicker.js +10 -7
  414. package/src/components/DatePicker/DatePicker.tsx +12 -10
  415. package/src/components/Picker/Picker.js +1 -1
  416. package/src/components/Picker/Picker.tsx +2 -2
  417. package/src/components/Stepper.js +5 -3
  418. package/src/components/Stepper.tsx +5 -5
  419. package/src/mappings/AudioPlayer.js +39 -2
  420. package/src/mappings/AudioPlayer.ts +41 -1
  421. package/src/mappings/DatePicker.js +13 -14
  422. package/src/mappings/DatePicker.ts +13 -14
  423. package/src/mappings/Stepper.js +5 -2
  424. package/src/mappings/Stepper.ts +5 -1
  425. package/src/mappings/TextArea.js +15 -4
  426. package/src/mappings/TextArea.ts +15 -3
  427. package/src/mappings/TextField.js +14 -4
  428. package/src/mappings/TextField.ts +14 -4
  429. package/src/mappings/TextInput.js +15 -4
  430. package/src/mappings/TextInput.ts +15 -3
@@ -12,7 +12,6 @@ var _theming = require("../../theming");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
16
15
  const AccordionItem = _ref => {
17
16
  let {
18
17
  Icon,
@@ -27,9 +26,10 @@ const AccordionItem = _ref => {
27
26
  textStyles,
28
27
  viewStyles
29
28
  } = (0, _utilities.extractStyles)(style);
30
- return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
31
- style: [styles.container, viewStyles]
32
- }, rest), /*#__PURE__*/React.createElement(_reactNative.View, {
29
+ return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
30
+ style: [styles.container, viewStyles],
31
+ ...rest
32
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
33
33
  style: styles.row
34
34
  }, icon ? /*#__PURE__*/React.createElement(Icon, {
35
35
  name: icon,
@@ -61,4 +61,23 @@ const styles = _reactNative.StyleSheet.create({
61
61
  }
62
62
  });
63
63
  var _default = (0, _theming.withTheme)(AccordionItem);
64
+ exports.default = _default;.StyleSheet.create({
65
+ container: {
66
+ padding: 8
67
+ },
68
+ row: {
69
+ flexDirection: "row",
70
+ alignItems: "center",
71
+ paddingLeft: 8
72
+ },
73
+ item: {
74
+ marginVertical: 6,
75
+ paddingLeft: 8
76
+ },
77
+ content: {
78
+ flex: 1,
79
+ justifyContent: "center"
80
+ }
81
+ });
82
+ var _default = (0, _theming.withTheme)(AccordionItem);
64
83
  exports.default = _default;
@@ -10,6 +10,7 @@ var _CircularProgress = _interopRequireDefault(require("./CircularProgress"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
14
  const AnimatedProgress = _reactNative.Animated.createAnimatedComponent(_CircularProgress.default);
14
15
  const AnimatedCircularProgress = _ref => {
15
16
  let {
@@ -54,18 +55,6 @@ const AnimatedCircularProgress = _ref => {
54
55
  React.useEffect(() => {
55
56
  animate();
56
57
  }, [fill, animate]);
57
- return /*#__PURE__*/React.createElement(AnimatedProgress, {
58
- ...other,
59
- style: other.style,
60
- childrenContainerStyle: other.childrenContainerStyle,
61
- fill: fillAnimation,
62
- tintColor: animateColor()
63
- });
64
- };
65
- var _default = AnimatedCircularProgress;
66
- exports.default = _default;ect(() => {
67
- animate();
68
- }, [fill, animate]);
69
58
  return /*#__PURE__*/React.createElement(AnimatedProgress, _extends({}, other, {
70
59
  style: other.style,
71
60
  childrenContainerStyle: other.childrenContainerStyle,
@@ -7,6 +7,7 @@ exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
10
11
  const AspectRatio = props => {
11
12
  const [layout, setLayout] = _react.default.useState(null);
12
13
  const {
@@ -33,23 +34,6 @@ const AspectRatio = props => {
33
34
  });
34
35
  }
35
36
  }
36
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
37
- ...props,
38
- style: style,
39
- onLayout: _ref => {
40
- let {
41
- nativeEvent: {
42
- layout: l
43
- }
44
- } = _ref;
45
- return setLayout(l);
46
- }
47
- }, props.children);
48
- };
49
- var _default = AspectRatio;
50
- exports.default = _default; });
51
- }
52
- }
53
37
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({}, props, {
54
38
  style: style,
55
39
  onLayout: _ref => {
@@ -9,7 +9,6 @@ var _reactNative = require("react-native");
9
9
  var _theming = require("../theming");
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
12
  const CONSTANTS = {
14
13
  baseHeight: 42,
15
14
  borderRadius: 4,
@@ -60,7 +59,7 @@ function Base(_ref) {
60
59
  if (textAlign === "right") {
61
60
  buttonStyles.justifyContent = "flex-end";
62
61
  }
63
- return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
62
+ return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
64
63
  onPress: onPress,
65
64
  disabled: disabled || loading,
66
65
  style: _ref2 => {
@@ -70,8 +69,9 @@ function Base(_ref) {
70
69
  return [styles.base, {
71
70
  opacity: pressed || disabled ? 0.75 : 1
72
71
  }, buttonStyles];
73
- }
74
- }, props), loading ? /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
72
+ },
73
+ ...props
74
+ }, loading ? /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
75
75
  size: "small",
76
76
  color: color,
77
77
  style: styles.loading
@@ -90,13 +90,14 @@ const Solid = _ref3 => {
90
90
  theme,
91
91
  ...props
92
92
  } = _ref3;
93
- return /*#__PURE__*/React.createElement(Base, _extends({
93
+ return /*#__PURE__*/React.createElement(Base, {
94
94
  style: [{
95
95
  color: "#FFF",
96
96
  borderRadius: theme.roundness,
97
97
  backgroundColor: theme.colors.primary
98
- }, style]
99
- }, props));
98
+ }, style],
99
+ ...props
100
+ });
100
101
  };
101
102
  const ButtonSolid = (0, _theming.withTheme)(Solid);
102
103
  exports.ButtonSolid = ButtonSolid;
@@ -108,13 +109,14 @@ const Outline = _ref4 => {
108
109
  theme,
109
110
  ...props
110
111
  } = _ref4;
111
- return /*#__PURE__*/React.createElement(Base, _extends({
112
+ return /*#__PURE__*/React.createElement(Base, {
112
113
  style: [styles.outline, {
113
114
  borderRadius: theme.roundness,
114
115
  borderColor: theme.colors.primary,
115
116
  color: theme.colors.primary
116
- }, style]
117
- }, props));
117
+ }, style],
118
+ ...props
119
+ });
118
120
  };
119
121
  const ButtonOutline = (0, _theming.withTheme)(Outline);
120
122
  exports.ButtonOutline = ButtonOutline;
@@ -161,4 +163,25 @@ const styles = _reactNative.StyleSheet.create({
161
163
  }
162
164
  })
163
165
  }
166
+ });ent",
167
+ padding: 0,
168
+ minHeight: undefined
169
+ },
170
+ loading: {
171
+ marginRight: 6
172
+ },
173
+ icon: {
174
+ ..._reactNative.Platform.select({
175
+ web: {
176
+ marginTop: 1,
177
+ marginRight: 4,
178
+ alignSelf: "center"
179
+ },
180
+ default: {
181
+ marginBottom: 2,
182
+ marginRight: 4,
183
+ alignSelf: "center"
184
+ }
185
+ })
186
+ }
164
187
  });
@@ -39,6 +39,7 @@ function Pager(_ref) {
39
39
  }));
40
40
  }
41
41
  function Carousel(_ref2) {
42
+ var _data$length;
42
43
  let {
43
44
  data,
44
45
  children,
@@ -48,7 +49,7 @@ function Carousel(_ref2) {
48
49
  } = _ref2;
49
50
  const [index, setIndex] = React.useState(0);
50
51
  const length = React.Children.count(children);
51
- const itemsLength = ((data === null || data === void 0 ? void 0 : data.length) ?? 0) + length;
52
+ const itemsLength = ((_data$length = data === null || data === void 0 ? void 0 : data.length) !== null && _data$length !== void 0 ? _data$length : 0) + length;
52
53
  const slides = Array.isArray(data) ? data : [];
53
54
  const {
54
55
  width,
@@ -15,8 +15,7 @@ var _Checkbox = _interopRequireDefault(require("./Checkbox"));
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
17
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
- let Direction;
18
+ var Direction;
20
19
  exports.Direction = Direction;
21
20
  (function (Direction) {
22
21
  Direction["Row"] = "row";
@@ -59,7 +58,6 @@ const CheckboxRow = _ref => {
59
58
  setInternalValue(status);
60
59
  }
61
60
  }, [status]);
62
-
63
61
  // This special logic is to handle weird APIs like Airtable that return
64
62
  // true or undefined for a boolean
65
63
  const previousDefaultValue = (0, _hooks.usePrevious)(defaultValue);
@@ -83,13 +81,14 @@ const CheckboxRow = _ref => {
83
81
  textStyles,
84
82
  viewStyles
85
83
  } = (0, _utilities.extractStyles)(style);
86
- return /*#__PURE__*/React.createElement(_Touchable.default, _extends({
84
+ return /*#__PURE__*/React.createElement(_Touchable.default, {
87
85
  onPress: handlePress,
88
86
  style: [viewStyles, styles.mainParent, {
89
87
  flexDirection: direction
90
88
  }],
91
- disabled: disabled
92
- }, rest), /*#__PURE__*/React.createElement(_reactNative.View, {
89
+ disabled: disabled,
90
+ ...rest
91
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
93
92
  style: [styles.label, {
94
93
  alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
95
94
  }, labelContainerStyle]
@@ -126,4 +125,22 @@ const styles = _reactNative.StyleSheet.create({
126
125
  }
127
126
  });
128
127
  var _default = CheckboxRow;
128
+ exports.default = _default;ems: "center",
129
+ justifyContent: "space-around",
130
+ paddingStart: 20,
131
+ minHeight: 50,
132
+ paddingEnd: 20,
133
+ display: "flex",
134
+ ..._reactNative.Platform.select({
135
+ web: {
136
+ cursor: "pointer",
137
+ userSelect: "none"
138
+ }
139
+ })
140
+ },
141
+ label: {
142
+ flex: 3
143
+ }
144
+ });
145
+ var _default = CheckboxRow;
129
146
  exports.default = _default;
@@ -10,7 +10,6 @@ var _Config = _interopRequireDefault(require("./Config"));
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
13
  const CircleImage = _ref => {
15
14
  let {
16
15
  source = _Config.default.placeholderImageURL,
@@ -19,6 +18,21 @@ const CircleImage = _ref => {
19
18
  ...props
20
19
  } = _ref;
21
20
  const borderRadius = size / 2;
21
+ return /*#__PURE__*/React.createElement(_reactNative.Image, {
22
+ style: [{
23
+ width: size,
24
+ height: size,
25
+ borderRadius
26
+ }, style],
27
+ source: typeof source === "string" ? {
28
+ uri: source
29
+ } : source,
30
+ resizeMode: "cover",
31
+ ...props
32
+ });
33
+ };
34
+ var _default = CircleImage;
35
+ exports.default = _default;size / 2;
22
36
  return /*#__PURE__*/React.createElement(_reactNative.Image, _extends({
23
37
  style: [{
24
38
  width: size,
@@ -8,27 +8,24 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _reactNativeSvg = require("react-native-svg");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
13
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
11
  class CircularProgress extends _react.default.Component {
15
12
  constructor() {
16
13
  super(...arguments);
17
- _defineProperty(this, "polarToCartesian", (centerX, centerY, radius, angleInDegrees) => {
14
+ this.polarToCartesian = (centerX, centerY, radius, angleInDegrees) => {
18
15
  var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;
19
16
  return {
20
17
  x: centerX + radius * Math.cos(angleInRadians),
21
18
  y: centerY + radius * Math.sin(angleInRadians)
22
19
  };
23
- });
24
- _defineProperty(this, "circlePath", (x, y, radius, startAngle, endAngle) => {
20
+ };
21
+ this.circlePath = (x, y, radius, startAngle, endAngle) => {
25
22
  var start = this.polarToCartesian(x, y, radius, endAngle * 0.9999);
26
23
  var end = this.polarToCartesian(x, y, radius, startAngle);
27
24
  var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";
28
25
  var d = ["M", start.x, start.y, "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y];
29
26
  return d.join(" ");
30
- });
31
- _defineProperty(this, "clampFill", fill => Math.min(100, Math.max(0, fill)));
27
+ };
28
+ this.clampFill = fill => Math.min(100, Math.max(0, fill));
32
29
  }
33
30
  render() {
34
31
  const {
@@ -109,4 +106,25 @@ class CircularProgress extends _react.default.Component {
109
106
  }
110
107
  }
111
108
  var _default = CircularProgress;
109
+ exports.default = _default;padding) / 2
110
+ }, backgroundColor && /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Path, {
111
+ d: backgroundPath,
112
+ stroke: backgroundColor,
113
+ strokeWidth: backgroundWidth || width,
114
+ strokeLinecap: lineCap,
115
+ strokeDasharray: strokeDasharrayBackground,
116
+ fill: "transparent"
117
+ }), fill > 0 && /*#__PURE__*/_react.default.createElement(_reactNativeSvg.Path, {
118
+ d: circlePathItem,
119
+ stroke: tintColor,
120
+ strokeWidth: width,
121
+ strokeLinecap: lineCap,
122
+ strokeDasharray: strokeDasharrayTint,
123
+ fill: "transparent"
124
+ }), cap)), children && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
125
+ style: localChildrenContainerStyle
126
+ }, children(fill)));
127
+ }
128
+ }
129
+ var _default = CircularProgress;
112
130
  exports.default = _default;
@@ -25,13 +25,13 @@ const getFilters = options => {
25
25
  height
26
26
  } = options;
27
27
  const filters = ["c_scale", "q_auto", "dpr_auto"];
28
- if (width) filters.push(`w_${width}`);
29
- if (height) filters.push(`h_${height}`);
28
+ if (width) filters.push("w_".concat(width));
29
+ if (height) filters.push("h_".concat(height));
30
30
  return filters.join(",");
31
31
  };
32
32
  const buildImageUrl = (options, name) => {
33
33
  const filters = getFilters(options);
34
- return ["https://res.cloudinary.com/altos/image/upload", filters, `${name}.png`].join("/");
34
+ return ["https://res.cloudinary.com/altos/image/upload", filters, "".concat(name, ".png")].join("/");
35
35
  };
36
36
  const getExtension = () => {
37
37
  return _reactNative.Platform.OS === "web" ? ".svg" : ".png";
@@ -11,7 +11,6 @@ var _Elevation = _interopRequireDefault(require("./Elevation"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
13
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
14
  const Container = _ref => {
16
15
  let {
17
16
  useThemeGutterPadding,
@@ -73,9 +72,10 @@ const Container = _ref => {
73
72
  };
74
73
  const Wrap = elevation ? _Elevation.default : _reactNative.View;
75
74
  if (elevation) containerStyle.elevation = elevation;
76
- return /*#__PURE__*/React.createElement(Wrap, _extends({
77
- style: [containerStyle, style]
78
- }, rest), backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
75
+ return /*#__PURE__*/React.createElement(Wrap, {
76
+ style: [containerStyle, style],
77
+ ...rest
78
+ }, backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
79
79
  source: typeof backgroundImage === "string" ? {
80
80
  uri: backgroundImage
81
81
  } : backgroundImage,
@@ -90,4 +90,15 @@ const Container = _ref => {
90
90
  }, children));
91
91
  };
92
92
  var _default = (0, _theming.withTheme)(Container);
93
+ exports.default = _default;sizeMode: backgroundImageResizeMode,
94
+ style: {
95
+ flex: 1
96
+ }
97
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
98
+ style: innerStyle
99
+ }, children)) : /*#__PURE__*/React.createElement(_reactNative.View, {
100
+ style: innerStyle
101
+ }, children));
102
+ };
103
+ var _default = (0, _theming.withTheme)(Container);
93
104
  exports.default = _default;
@@ -65,6 +65,7 @@ const DatePicker = _ref => {
65
65
  width: 0
66
66
  });
67
67
  const {
68
+ viewStyles,
68
69
  textStyles
69
70
  } = (0, _utilities.extractStyles)(style);
70
71
  const getValidDate = () => {
@@ -78,12 +79,12 @@ const DatePicker = _ref => {
78
79
  let newDate = getValidDate();
79
80
  if (format) return (0, _dateformat.default)(newDate, format);
80
81
  if (mode === "time") {
81
- return `${newDate.toLocaleTimeString()}`;
82
+ return "".concat(newDate.toLocaleTimeString());
82
83
  }
83
84
  if (mode === "datetime") {
84
- return `${newDate.toLocaleString()}`;
85
+ return "".concat(newDate.toLocaleString());
85
86
  }
86
- return `${MONTHS[newDate.getMonth()]} ${newDate.getDate()}, ${newDate.getFullYear()}`;
87
+ return "".concat(MONTHS[newDate.getMonth()], " ").concat(newDate.getDate(), ", ").concat(newDate.getFullYear());
87
88
  };
88
89
  const toggleVisibility = async () => {
89
90
  setPickerVisible(!pickerVisible);
@@ -156,7 +157,7 @@ const DatePicker = _ref => {
156
157
  };
157
158
  const MINIMIZED_LABEL_Y_OFFSET = -(typography.caption.lineHeight + 4);
158
159
  const OUTLINE_MINIMIZED_LABEL_Y_OFFSET = -(16 * 0.5 + 4);
159
- const MAXIMIZED_LABEL_FONT_SIZE = (textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontSize) || typography.subtitle1.fontSize;
160
+ const MAXIMIZED_LABEL_FONT_SIZE = textStyles.fontSize || typography.subtitle1.fontSize;
160
161
  const MINIMIZED_LABEL_FONT_SIZE = labelSize ? labelSize : typography.caption.fontSize;
161
162
  const hasActiveOutline = focused;
162
163
  let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
@@ -169,7 +170,7 @@ const DatePicker = _ref => {
169
170
  backgroundColor = colors.divider;
170
171
  } else {
171
172
  activeColor = inputBorderColorActive || colors.primary;
172
- placeholderColor = borderColor = inputBorderColor || colors.light;
173
+ placeholderColor = inputBorderColor || colors.light;
173
174
  underlineColor = inputBorderColor || colors.light;
174
175
  backgroundColor = colors.background;
175
176
  }
@@ -249,7 +250,7 @@ const DatePicker = _ref => {
249
250
  };
250
251
  const inputStyles = [styles.input, inputStyle, type === "solid" ? {
251
252
  marginHorizontal: 12
252
- } : {}, textStyles];
253
+ } : {}];
253
254
 
254
255
  // const render = (props) => <NativeTextInput {...props} />;
255
256
 
@@ -267,7 +268,7 @@ const DatePicker = _ref => {
267
268
  })) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
268
269
  style: [containerStyle, style ? {
269
270
  height: style.height
270
- } : {}]
271
+ } : {}, viewStyles]
271
272
  }, type === "underline" ?
272
273
  /*#__PURE__*/
273
274
  // When type === 'flat', render an underline
@@ -309,7 +310,7 @@ const DatePicker = _ref => {
309
310
  style: [styles.placeholder, type === "solid" ? {
310
311
  paddingHorizontal: 12
311
312
  } : {}, labelStyle, {
312
- color: labelColor || placeholder,
313
+ color: labelColor || placeholderColor,
313
314
  opacity: hasActiveOutline ? labeled : 1
314
315
  }],
315
316
  numberOfLines: 1
@@ -327,7 +328,7 @@ const DatePicker = _ref => {
327
328
  onFocus: _handleFocus,
328
329
  onBlur: _handleBlur,
329
330
  underlineColorAndroid: "transparent",
330
- style: inputStyles
331
+ style: [inputStyles, textStyles]
331
332
  }, props))), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
332
333
  name: rightIconName,
333
334
  size: ICON_SIZE,
@@ -11,7 +11,6 @@ var _theming = require("../theming");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
13
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
14
  /* directly copied from https://github.com/callstack/react-native-paper/blob/main/src/components/Surface.tsx#L62 */
16
15
  const Elevation = _ref => {
17
16
  let {
@@ -28,11 +27,24 @@ const Elevation = _ref => {
28
27
  colors
29
28
  } = theme;
30
29
  const borderRadius = radius;
31
- return /*#__PURE__*/React.createElement(_reactNative.Animated.View, _extends({}, rest, {
30
+ return /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
31
+ ...rest,
32
32
  style: [{
33
33
  borderRadius,
34
34
  backgroundColor: colors.surface
35
35
  }, elevation ? (0, _shadow.default)(elevation) : null, style]
36
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
37
+ style: {
38
+ overflow: "hidden",
39
+ borderRadius
40
+ }
41
+ }, children));
42
+ };
43
+ var _default = (0, _theming.withTheme)(Elevation);
44
+ exports.default = _default;
45
+ borderRadius,
46
+ backgroundColor: colors.surface
47
+ }, elevation ? (0, _shadow.default)(elevation) : null, style]
36
48
  }), /*#__PURE__*/React.createElement(_reactNative.View, {
37
49
  style: {
38
50
  overflow: "hidden",
@@ -46,7 +46,6 @@ const unstyledColor = "rgba(165, 173, 183, 1)";
46
46
  const disabledColor = "rgb(240, 240, 240)";
47
47
  const errorColor = "rgba(255, 69, 100, 1)";
48
48
  const Picker = _ref => {
49
- var _find;
50
49
  let {
51
50
  error,
52
51
  options = [],
@@ -68,6 +67,7 @@ const Picker = _ref => {
68
67
  rightIconName,
69
68
  type = "solid"
70
69
  } = _ref;
70
+ var _a, _b;
71
71
  const androidPickerRef = React.useRef(undefined);
72
72
  const [internalValue, setInternalValue] = React.useState(value || defaultValue);
73
73
  const [pickerVisible, setPickerVisible] = React.useState(false);
@@ -85,9 +85,9 @@ const Picker = _ref => {
85
85
  }
86
86
  }, [defaultValue]);
87
87
  React.useEffect(() => {
88
+ var _a;
88
89
  if (pickerVisible && androidPickerRef.current) {
89
- var _androidPickerRef$cur;
90
- androidPickerRef === null || androidPickerRef === void 0 ? void 0 : (_androidPickerRef$cur = androidPickerRef.current) === null || _androidPickerRef$cur === void 0 ? void 0 : _androidPickerRef$cur.focus();
90
+ (_a = androidPickerRef === null || androidPickerRef === void 0 ? void 0 : androidPickerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
91
91
  }
92
92
  }, [pickerVisible, androidPickerRef]);
93
93
  const normalizedOptions = normalizeOptions(options);
@@ -137,7 +137,7 @@ const Picker = _ref => {
137
137
  ...extractedMarginStyles
138
138
  };
139
139
  const stylesWithoutBordersAndMargins = (0, _lodash.omit)(viewStyles, [..._utilities.borderStyleNames, ..._utilities.marginStyleNames, ...additionalBorderStyles, ...additionalMarginStyles]);
140
- const selectedLabel = internalValue && (((_find = pickerOptions.find(option => option.value === internalValue)) === null || _find === void 0 ? void 0 : _find.label) ?? internalValue);
140
+ const selectedLabel = internalValue && ((_b = (_a = pickerOptions.find(option => option.value === internalValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : internalValue);
141
141
  const labelText = label ? /*#__PURE__*/React.createElement(_reactNative.Text, {
142
142
  style: {
143
143
  textAlign: textStyles.textAlign,
@@ -220,7 +220,7 @@ const Picker = _ref => {
220
220
  style: styles.primaryTextContainer
221
221
  }, labelText, /*#__PURE__*/React.createElement(_reactNative.Text, {
222
222
  style: primaryTextStyle
223
- }, String(selectedLabel ?? placeholder))), rightIcon)), assistiveTextLabel), isIos && pickerVisible ? /*#__PURE__*/React.createElement(_Portal.default, null, /*#__PURE__*/React.createElement(_reactNative.View, {
223
+ }, String(selectedLabel !== null && selectedLabel !== void 0 ? selectedLabel : placeholder))), rightIcon)), assistiveTextLabel), isIos && pickerVisible ? /*#__PURE__*/React.createElement(_Portal.default, null, /*#__PURE__*/React.createElement(_reactNative.View, {
224
224
  style: [styles.iosPicker, {
225
225
  backgroundColor: colors.divider
226
226
  }]
@@ -253,8 +253,6 @@ const Picker = _ref => {
253
253
  }))) : null)
254
254
  );
255
255
  };
256
- var _default = (0, _theming.withTheme)(Picker);
257
- exports.default = _default;
258
256
  const styles = _reactNative.StyleSheet.create({
259
257
  marginsContainer: {
260
258
  alignSelf: "stretch",
@@ -324,4 +322,6 @@ const styles = _reactNative.StyleSheet.create({
324
322
  maxWidth: deviceWidth,
325
323
  maxHeight: deviceHeight
326
324
  }
327
- });
325
+ });
326
+ var _default = (0, _theming.withTheme)(Picker);
327
+ exports.default = _default;
@@ -15,9 +15,7 @@ var _Touchable = _interopRequireDefault(require("../Touchable"));
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
17
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
18
  const Picker = _ref => {
20
- var _options$find;
21
19
  let {
22
20
  style,
23
21
  options,
@@ -27,6 +25,7 @@ const Picker = _ref => {
27
25
  onValueChange: onValueChangeOverride = () => {},
28
26
  ...props
29
27
  } = _ref;
28
+ var _a, _b;
30
29
  const {
31
30
  viewStyles: {
32
31
  borderRadius,
@@ -71,7 +70,7 @@ const Picker = _ref => {
71
70
  };
72
71
 
73
72
  const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
74
- const selectedLabel = selectedValue && (((_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label) ?? selectedValue);
73
+ const selectedLabel = selectedValue && ((_b = (_a = options.find(o => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
75
74
  return /*#__PURE__*/React.createElement(_Touchable.default, {
76
75
  disabled: disabled,
77
76
  onPress: toggleFocus,
@@ -95,6 +94,24 @@ const Picker = _ref => {
95
94
  key: o.value
96
95
  }))), /*#__PURE__*/React.createElement(_reactNative.View, {
97
96
  pointerEvents: "none"
97
+ }, /*#__PURE__*/React.createElement(_TextField.default, {
98
+ ...props,
99
+ value: selectedLabel,
100
+ placeholder: placeholder,
101
+ // @ts-ignore
102
+ ref: textField,
103
+ disabled: disabled,
104
+ // @ts-expect-error
105
+ style: stylesWithoutMargin
106
+ }))));
107
+ };
108
+ const styles = _reactNative.StyleSheet.create({
109
+ container: {
110
+ alignSelf: "stretch"
111
+ }
112
+ });
113
+ var _default = (0, _theming.withTheme)(Picker);
114
+ exports.default = _default;pointerEvents: "none"
98
115
  }, /*#__PURE__*/React.createElement(_TextField.default, _extends({}, props, {
99
116
  value: selectedLabel,
100
117
  placeholder: placeholder