@draftbit/core 44.2.3-9cbaf6.2 → 46.0.0

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 (654) hide show
  1. package/lib/commonjs/Provider.js.map +1 -1
  2. package/lib/commonjs/components/Accordion/AccordionGroup.js.map +1 -1
  3. package/lib/commonjs/components/Accordion/AccordionItem.js +5 -21
  4. package/lib/commonjs/components/Accordion/AccordionItem.js.map +1 -1
  5. package/lib/commonjs/components/Accordion/index.js.map +1 -1
  6. package/lib/commonjs/components/ActionSheet/ActionSheet.js.map +1 -1
  7. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +1 -1
  8. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js.map +1 -1
  9. package/lib/commonjs/components/ActionSheet/index.js.map +1 -1
  10. package/lib/commonjs/components/AnimatedCircularProgress.js +1 -1
  11. package/lib/commonjs/components/AnimatedCircularProgress.js.map +1 -1
  12. package/lib/commonjs/components/AspectRatio.js +1 -1
  13. package/lib/commonjs/components/AspectRatio.js.map +1 -1
  14. package/lib/commonjs/components/AvatarEdit.js +1 -1
  15. package/lib/commonjs/components/AvatarEdit.js.map +1 -1
  16. package/lib/commonjs/components/Banner.js +1 -1
  17. package/lib/commonjs/components/Banner.js.map +1 -1
  18. package/lib/commonjs/components/Button.js +1 -1
  19. package/lib/commonjs/components/Button.js.map +1 -1
  20. package/lib/commonjs/components/Card.js.map +1 -1
  21. package/lib/commonjs/components/CardBlock.js +1 -1
  22. package/lib/commonjs/components/CardBlock.js.map +1 -1
  23. package/lib/commonjs/components/CardContainer.js +1 -1
  24. package/lib/commonjs/components/CardContainer.js.map +1 -1
  25. package/lib/commonjs/components/CardContainerRating.js +1 -1
  26. package/lib/commonjs/components/CardContainerRating.js.map +1 -1
  27. package/lib/commonjs/components/CardContainerShortImage.js +1 -1
  28. package/lib/commonjs/components/CardContainerShortImage.js.map +1 -1
  29. package/lib/commonjs/components/CardInline.js.map +1 -1
  30. package/lib/commonjs/components/Carousel.js +1 -1
  31. package/lib/commonjs/components/Carousel.js.map +1 -1
  32. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  33. package/lib/commonjs/components/Checkbox/Checkbox.js.map +1 -1
  34. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +1 -1
  35. package/lib/commonjs/components/Checkbox/CheckboxGroup.js.map +1 -1
  36. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -1
  37. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +1 -1
  38. package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -1
  39. package/lib/commonjs/components/Checkbox/CheckboxRow.js.map +1 -1
  40. package/lib/commonjs/components/Checkbox/context.js.map +1 -1
  41. package/lib/commonjs/components/Checkbox/index.js.map +1 -1
  42. package/lib/commonjs/components/CircleImage.js +1 -1
  43. package/lib/commonjs/components/CircleImage.js.map +1 -1
  44. package/lib/commonjs/components/CircularProgress.js.map +1 -1
  45. package/lib/commonjs/components/Config.js.map +1 -1
  46. package/lib/commonjs/components/Container.js +1 -1
  47. package/lib/commonjs/components/Container.js.map +1 -1
  48. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  49. package/lib/commonjs/components/DatePicker/DatePicker.js.map +1 -1
  50. package/lib/commonjs/components/DatePicker/DatePickerComponent.js.map +1 -1
  51. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  52. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +1 -1
  53. package/lib/commonjs/components/DeprecatedButton.js +1 -1
  54. package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
  55. package/lib/commonjs/components/DeprecatedCardWrapper.js +1 -1
  56. package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -1
  57. package/lib/commonjs/components/DeprecatedFAB.js +1 -1
  58. package/lib/commonjs/components/DeprecatedFAB.js.map +1 -1
  59. package/lib/commonjs/components/Divider.js +1 -1
  60. package/lib/commonjs/components/Divider.js.map +1 -1
  61. package/lib/commonjs/components/Elevation.js +1 -1
  62. package/lib/commonjs/components/Elevation.js.map +1 -1
  63. package/lib/commonjs/components/FAB.js +1 -1
  64. package/lib/commonjs/components/FAB.js.map +1 -1
  65. package/lib/commonjs/components/FieldSearchBarFull.js.map +1 -1
  66. package/lib/commonjs/components/FormRow.js +1 -1
  67. package/lib/commonjs/components/FormRow.js.map +1 -1
  68. package/lib/commonjs/components/Header.js.map +1 -1
  69. package/lib/commonjs/components/HeaderLarge.js.map +1 -1
  70. package/lib/commonjs/components/HeaderMedium.js.map +1 -1
  71. package/lib/commonjs/components/HeaderOverline.js.map +1 -1
  72. package/lib/commonjs/components/IconButton.js +1 -1
  73. package/lib/commonjs/components/IconButton.js.map +1 -1
  74. package/lib/commonjs/components/Image.js +1 -1
  75. package/lib/commonjs/components/Image.js.map +1 -1
  76. package/lib/commonjs/components/Justification.js +0 -3
  77. package/lib/commonjs/components/Justification.js.map +1 -1
  78. package/lib/commonjs/components/Layout.js +1 -1
  79. package/lib/commonjs/components/Layout.js.map +1 -1
  80. package/lib/commonjs/components/NumberInput.js +1 -1
  81. package/lib/commonjs/components/NumberInput.js.map +1 -1
  82. package/lib/commonjs/components/Picker/Picker.js.map +1 -1
  83. package/lib/commonjs/components/Picker/PickerComponent.android.js +1 -1
  84. package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -1
  85. package/lib/commonjs/components/Picker/PickerComponent.ios.js +1 -1
  86. package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +1 -1
  87. package/lib/commonjs/components/Picker/PickerComponent.web.js +1 -1
  88. package/lib/commonjs/components/Picker/PickerComponent.web.js.map +1 -1
  89. package/lib/commonjs/components/Picker/PickerTypes.js.map +1 -1
  90. package/lib/commonjs/components/Portal/Portal.js.map +1 -1
  91. package/lib/commonjs/components/Portal/PortalConsumer.js.map +1 -1
  92. package/lib/commonjs/components/Portal/PortalHost.js.map +1 -1
  93. package/lib/commonjs/components/Portal/PortalManager.js.map +1 -1
  94. package/lib/commonjs/components/ProgressBar.js +1 -1
  95. package/lib/commonjs/components/ProgressBar.js.map +1 -1
  96. package/lib/commonjs/components/ProgressCircle.js.map +1 -1
  97. package/lib/commonjs/components/ProgressIndicator.js.map +1 -1
  98. package/lib/commonjs/components/RadioButton/RadioButton.js +1 -1
  99. package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -1
  100. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +1 -1
  101. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
  102. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +1 -1
  103. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -1
  104. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -1
  105. package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +1 -1
  106. package/lib/commonjs/components/RadioButton/context.js.map +1 -1
  107. package/lib/commonjs/components/RadioButton/index.js.map +1 -1
  108. package/lib/commonjs/components/ResizeMode.js +0 -3
  109. package/lib/commonjs/components/ResizeMode.js.map +1 -1
  110. package/lib/commonjs/components/Row.js.map +1 -1
  111. package/lib/commonjs/components/RowBodyIcon.js.map +1 -1
  112. package/lib/commonjs/components/RowHeadlineImageCaption.js.map +1 -1
  113. package/lib/commonjs/components/RowHeadlineImageIcon.js.map +1 -1
  114. package/lib/commonjs/components/ScreenContainer.js +1 -1
  115. package/lib/commonjs/components/ScreenContainer.js.map +1 -1
  116. package/lib/commonjs/components/Slider.js +1 -1
  117. package/lib/commonjs/components/Slider.js.map +1 -1
  118. package/lib/commonjs/components/StarRating.js +1 -1
  119. package/lib/commonjs/components/StarRating.js.map +1 -1
  120. package/lib/commonjs/components/StepIndicator.js.map +1 -1
  121. package/lib/commonjs/components/Stepper.js.map +1 -1
  122. package/lib/commonjs/components/Surface.js +1 -1
  123. package/lib/commonjs/components/Surface.js.map +1 -1
  124. package/lib/commonjs/components/Swiper/Swiper.js.map +1 -1
  125. package/lib/commonjs/components/Swiper/SwiperItem.js.map +1 -1
  126. package/lib/commonjs/components/Swiper/index.js.map +1 -1
  127. package/lib/commonjs/components/Switch.js +1 -1
  128. package/lib/commonjs/components/Switch.js.map +1 -1
  129. package/lib/commonjs/components/Text.js +1 -1
  130. package/lib/commonjs/components/Text.js.map +1 -1
  131. package/lib/commonjs/components/TextField.js +1 -1
  132. package/lib/commonjs/components/TextField.js.map +1 -1
  133. package/lib/commonjs/components/ToggleButton.js +1 -1
  134. package/lib/commonjs/components/ToggleButton.js.map +1 -1
  135. package/lib/commonjs/components/Touchable.js +1 -1
  136. package/lib/commonjs/components/Touchable.js.map +1 -1
  137. package/lib/commonjs/components/Touchable.web.js.map +1 -1
  138. package/lib/commonjs/components/Typography.js.map +1 -1
  139. package/lib/commonjs/components/useAuthState.js.map +1 -1
  140. package/lib/commonjs/constants.js.map +1 -1
  141. package/lib/commonjs/hooks.js.map +1 -1
  142. package/lib/commonjs/index.js +0 -14
  143. package/lib/commonjs/index.js.map +1 -1
  144. package/lib/commonjs/interfaces/Icon.js.map +1 -1
  145. package/lib/commonjs/mappings/Accordion.js.map +1 -1
  146. package/lib/commonjs/mappings/AccordionItem.js.map +1 -1
  147. package/lib/commonjs/mappings/ActionSheet.js.map +1 -1
  148. package/lib/commonjs/mappings/ActionSheetCancel.js.map +1 -1
  149. package/lib/commonjs/mappings/ActionSheetItem.js.map +1 -1
  150. package/lib/commonjs/mappings/ActivityIndicator.js.map +1 -1
  151. package/lib/commonjs/mappings/AudioPlayer.js.map +1 -1
  152. package/lib/commonjs/mappings/AvatarEdit.js.map +1 -1
  153. package/lib/commonjs/mappings/Banner.js.map +1 -1
  154. package/lib/commonjs/mappings/BlurView.js.map +1 -1
  155. package/lib/commonjs/mappings/Button.js.map +1 -1
  156. package/lib/commonjs/mappings/Card.js.map +1 -1
  157. package/lib/commonjs/mappings/CardBlock.js.map +1 -1
  158. package/lib/commonjs/mappings/CardContainer.js.map +1 -1
  159. package/lib/commonjs/mappings/CardContainerRating.js.map +1 -1
  160. package/lib/commonjs/mappings/CardContainerShortImage.js.map +1 -1
  161. package/lib/commonjs/mappings/CardInline.js.map +1 -1
  162. package/lib/commonjs/mappings/Carousel.js.map +1 -1
  163. package/lib/commonjs/mappings/Checkbox.js.map +1 -1
  164. package/lib/commonjs/mappings/CheckboxGroup.js.map +1 -1
  165. package/lib/commonjs/mappings/CheckboxRow.js.map +1 -1
  166. package/lib/commonjs/mappings/CircleImage.js.map +1 -1
  167. package/lib/commonjs/mappings/Container.js.map +1 -1
  168. package/lib/commonjs/mappings/CustomCode.js.map +1 -1
  169. package/lib/commonjs/mappings/DatePicker.js.map +1 -1
  170. package/lib/commonjs/mappings/Divider.js.map +1 -1
  171. package/lib/commonjs/mappings/FAB.js.map +1 -1
  172. package/lib/commonjs/mappings/Fetch.js.map +1 -1
  173. package/lib/commonjs/mappings/FieldSearchBarFull.js.map +1 -1
  174. package/lib/commonjs/mappings/FlatList.js.map +1 -1
  175. package/lib/commonjs/mappings/HeaderLarge.js.map +1 -1
  176. package/lib/commonjs/mappings/HeaderMedium.js.map +1 -1
  177. package/lib/commonjs/mappings/HeaderOverline.js.map +1 -1
  178. package/lib/commonjs/mappings/Icon.js.map +1 -1
  179. package/lib/commonjs/mappings/IconButton.js.map +1 -1
  180. package/lib/commonjs/mappings/Image.js.map +1 -1
  181. package/lib/commonjs/mappings/ImageBackground.js.map +1 -1
  182. package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +1 -1
  183. package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -1
  184. package/lib/commonjs/mappings/Layout.js.map +1 -1
  185. package/lib/commonjs/mappings/LinearGradient.js.map +1 -1
  186. package/lib/commonjs/mappings/MapCallout.js.map +1 -1
  187. package/lib/commonjs/mappings/MapMarker.js.map +1 -1
  188. package/lib/commonjs/mappings/MapView.js.map +1 -1
  189. package/lib/commonjs/mappings/Modal.js.map +1 -1
  190. package/lib/commonjs/mappings/Picker.js.map +1 -1
  191. package/lib/commonjs/mappings/ProgressBar.js.map +1 -1
  192. package/lib/commonjs/mappings/ProgressCircle.js.map +1 -1
  193. package/lib/commonjs/mappings/ProgressIndicator.js.map +1 -1
  194. package/lib/commonjs/mappings/RadioButton.js.map +1 -1
  195. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
  196. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
  197. package/lib/commonjs/mappings/RowBodyIcon.js.map +1 -1
  198. package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +1 -1
  199. package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +1 -1
  200. package/lib/commonjs/mappings/SafeAreaView.js.map +1 -1
  201. package/lib/commonjs/mappings/ScrollView.js.map +1 -1
  202. package/lib/commonjs/mappings/Slider.js.map +1 -1
  203. package/lib/commonjs/mappings/StarRating.js.map +1 -1
  204. package/lib/commonjs/mappings/Stepper.js.map +1 -1
  205. package/lib/commonjs/mappings/Surface.js.map +1 -1
  206. package/lib/commonjs/mappings/Swiper.js.map +1 -1
  207. package/lib/commonjs/mappings/SwiperItem.js.map +1 -1
  208. package/lib/commonjs/mappings/Switch.js.map +1 -1
  209. package/lib/commonjs/mappings/Text.js.map +1 -1
  210. package/lib/commonjs/mappings/TextArea.js.map +1 -1
  211. package/lib/commonjs/mappings/TextField.js.map +1 -1
  212. package/lib/commonjs/mappings/TextInput.js.map +1 -1
  213. package/lib/commonjs/mappings/ToggleButton.js.map +1 -1
  214. package/lib/commonjs/mappings/Touchable.js.map +1 -1
  215. package/lib/commonjs/mappings/Video.js.map +1 -1
  216. package/lib/commonjs/mappings/View.js.map +1 -1
  217. package/lib/commonjs/mappings/WebView.js.map +1 -1
  218. package/lib/commonjs/styles/DarkTheme.js.map +1 -1
  219. package/lib/commonjs/styles/DefaultTheme.js.map +1 -1
  220. package/lib/commonjs/styles/fonts.js.map +1 -1
  221. package/lib/commonjs/styles/overlay.js.map +1 -1
  222. package/lib/commonjs/styles/shadow.js.map +1 -1
  223. package/lib/commonjs/theming.js.map +1 -1
  224. package/lib/commonjs/utilities.js.map +1 -1
  225. package/lib/module/Provider.js.map +1 -1
  226. package/lib/module/components/Accordion/AccordionGroup.js.map +1 -1
  227. package/lib/module/components/Accordion/AccordionItem.js +1 -1
  228. package/lib/module/components/Accordion/AccordionItem.js.map +1 -1
  229. package/lib/module/components/Accordion/index.js.map +1 -1
  230. package/lib/module/components/ActionSheet/ActionSheet.js.map +1 -1
  231. package/lib/module/components/ActionSheet/ActionSheetCancel.js.map +1 -1
  232. package/lib/module/components/ActionSheet/ActionSheetItem.js.map +1 -1
  233. package/lib/module/components/ActionSheet/index.js.map +1 -1
  234. package/lib/module/components/AnimatedCircularProgress.js +1 -1
  235. package/lib/module/components/AnimatedCircularProgress.js.map +1 -1
  236. package/lib/module/components/AspectRatio.js +1 -1
  237. package/lib/module/components/AspectRatio.js.map +1 -1
  238. package/lib/module/components/AvatarEdit.js +1 -1
  239. package/lib/module/components/AvatarEdit.js.map +1 -1
  240. package/lib/module/components/Banner.js +1 -1
  241. package/lib/module/components/Banner.js.map +1 -1
  242. package/lib/module/components/Button.js +1 -1
  243. package/lib/module/components/Button.js.map +1 -1
  244. package/lib/module/components/Card.js.map +1 -1
  245. package/lib/module/components/CardBlock.js +1 -1
  246. package/lib/module/components/CardBlock.js.map +1 -1
  247. package/lib/module/components/CardContainer.js +1 -1
  248. package/lib/module/components/CardContainer.js.map +1 -1
  249. package/lib/module/components/CardContainerRating.js +1 -1
  250. package/lib/module/components/CardContainerRating.js.map +1 -1
  251. package/lib/module/components/CardContainerShortImage.js +1 -1
  252. package/lib/module/components/CardContainerShortImage.js.map +1 -1
  253. package/lib/module/components/CardInline.js.map +1 -1
  254. package/lib/module/components/Carousel.js +5 -20
  255. package/lib/module/components/Carousel.js.map +1 -1
  256. package/lib/module/components/Checkbox/Checkbox.js +1 -1
  257. package/lib/module/components/Checkbox/Checkbox.js.map +1 -1
  258. package/lib/module/components/Checkbox/CheckboxGroup.js +1 -1
  259. package/lib/module/components/Checkbox/CheckboxGroup.js.map +1 -1
  260. package/lib/module/components/Checkbox/CheckboxGroupRow.js +1 -1
  261. package/lib/module/components/Checkbox/CheckboxGroupRow.js.map +1 -1
  262. package/lib/module/components/Checkbox/CheckboxRow.js +1 -1
  263. package/lib/module/components/Checkbox/CheckboxRow.js.map +1 -1
  264. package/lib/module/components/Checkbox/context.js.map +1 -1
  265. package/lib/module/components/Checkbox/index.js.map +1 -1
  266. package/lib/module/components/CircleImage.js +1 -1
  267. package/lib/module/components/CircleImage.js.map +1 -1
  268. package/lib/module/components/CircularProgress.js.map +1 -1
  269. package/lib/module/components/Config.js.map +1 -1
  270. package/lib/module/components/Container.js +1 -1
  271. package/lib/module/components/Container.js.map +1 -1
  272. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  273. package/lib/module/components/DatePicker/DatePicker.js.map +1 -1
  274. package/lib/module/components/DatePicker/DatePickerComponent.js.map +1 -1
  275. package/lib/module/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  276. package/lib/module/components/DatePicker/DatePickerComponentType.js.map +1 -1
  277. package/lib/module/components/DeprecatedButton.js +1 -1
  278. package/lib/module/components/DeprecatedButton.js.map +1 -1
  279. package/lib/module/components/DeprecatedCardWrapper.js +1 -1
  280. package/lib/module/components/DeprecatedCardWrapper.js.map +1 -1
  281. package/lib/module/components/DeprecatedFAB.js +1 -1
  282. package/lib/module/components/DeprecatedFAB.js.map +1 -1
  283. package/lib/module/components/Divider.js +1 -1
  284. package/lib/module/components/Divider.js.map +1 -1
  285. package/lib/module/components/Elevation.js +1 -1
  286. package/lib/module/components/Elevation.js.map +1 -1
  287. package/lib/module/components/FAB.js +1 -1
  288. package/lib/module/components/FAB.js.map +1 -1
  289. package/lib/module/components/FieldSearchBarFull.js.map +1 -1
  290. package/lib/module/components/FormRow.js +1 -1
  291. package/lib/module/components/FormRow.js.map +1 -1
  292. package/lib/module/components/Header.js.map +1 -1
  293. package/lib/module/components/HeaderLarge.js.map +1 -1
  294. package/lib/module/components/HeaderMedium.js.map +1 -1
  295. package/lib/module/components/HeaderOverline.js.map +1 -1
  296. package/lib/module/components/IconButton.js +1 -1
  297. package/lib/module/components/IconButton.js.map +1 -1
  298. package/lib/module/components/Image.js +1 -1
  299. package/lib/module/components/Image.js.map +1 -1
  300. package/lib/module/components/Justification.js +1 -1
  301. package/lib/module/components/Justification.js.map +1 -1
  302. package/lib/module/components/Layout.js +1 -1
  303. package/lib/module/components/Layout.js.map +1 -1
  304. package/lib/module/components/NumberInput.js +1 -1
  305. package/lib/module/components/NumberInput.js.map +1 -1
  306. package/lib/module/components/Picker/Picker.js.map +1 -1
  307. package/lib/module/components/Picker/PickerComponent.android.js +1 -1
  308. package/lib/module/components/Picker/PickerComponent.android.js.map +1 -1
  309. package/lib/module/components/Picker/PickerComponent.ios.js +1 -1
  310. package/lib/module/components/Picker/PickerComponent.ios.js.map +1 -1
  311. package/lib/module/components/Picker/PickerComponent.web.js +1 -1
  312. package/lib/module/components/Picker/PickerComponent.web.js.map +1 -1
  313. package/lib/module/components/Picker/PickerTypes.js.map +1 -1
  314. package/lib/module/components/Portal/Portal.js.map +1 -1
  315. package/lib/module/components/Portal/PortalConsumer.js.map +1 -1
  316. package/lib/module/components/Portal/PortalHost.js.map +1 -1
  317. package/lib/module/components/Portal/PortalManager.js.map +1 -1
  318. package/lib/module/components/ProgressBar.js +1 -1
  319. package/lib/module/components/ProgressBar.js.map +1 -1
  320. package/lib/module/components/ProgressCircle.js.map +1 -1
  321. package/lib/module/components/ProgressIndicator.js.map +1 -1
  322. package/lib/module/components/RadioButton/RadioButton.js +1 -1
  323. package/lib/module/components/RadioButton/RadioButton.js.map +1 -1
  324. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +1 -1
  325. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
  326. package/lib/module/components/RadioButton/RadioButtonGroup.js +1 -1
  327. package/lib/module/components/RadioButton/RadioButtonGroup.js.map +1 -1
  328. package/lib/module/components/RadioButton/RadioButtonRow.js +1 -1
  329. package/lib/module/components/RadioButton/RadioButtonRow.js.map +1 -1
  330. package/lib/module/components/RadioButton/context.js.map +1 -1
  331. package/lib/module/components/RadioButton/index.js.map +1 -1
  332. package/lib/module/components/ResizeMode.js +1 -1
  333. package/lib/module/components/ResizeMode.js.map +1 -1
  334. package/lib/module/components/Row.js.map +1 -1
  335. package/lib/module/components/RowBodyIcon.js.map +1 -1
  336. package/lib/module/components/RowHeadlineImageCaption.js.map +1 -1
  337. package/lib/module/components/RowHeadlineImageIcon.js.map +1 -1
  338. package/lib/module/components/ScreenContainer.js +1 -1
  339. package/lib/module/components/ScreenContainer.js.map +1 -1
  340. package/lib/module/components/Slider.js +1 -1
  341. package/lib/module/components/Slider.js.map +1 -1
  342. package/lib/module/components/StarRating.js +1 -1
  343. package/lib/module/components/StarRating.js.map +1 -1
  344. package/lib/module/components/StepIndicator.js.map +1 -1
  345. package/lib/module/components/Stepper.js.map +1 -1
  346. package/lib/module/components/Surface.js +1 -1
  347. package/lib/module/components/Surface.js.map +1 -1
  348. package/lib/module/components/Swiper/Swiper.js.map +1 -1
  349. package/lib/module/components/Swiper/SwiperItem.js.map +1 -1
  350. package/lib/module/components/Swiper/index.js.map +1 -1
  351. package/lib/module/components/Switch.js +1 -1
  352. package/lib/module/components/Switch.js.map +1 -1
  353. package/lib/module/components/Text.js +1 -1
  354. package/lib/module/components/Text.js.map +1 -1
  355. package/lib/module/components/TextField.js +1 -1
  356. package/lib/module/components/TextField.js.map +1 -1
  357. package/lib/module/components/ToggleButton.js +1 -1
  358. package/lib/module/components/ToggleButton.js.map +1 -1
  359. package/lib/module/components/Touchable.js +1 -1
  360. package/lib/module/components/Touchable.js.map +1 -1
  361. package/lib/module/components/Touchable.web.js.map +1 -1
  362. package/lib/module/components/Typography.js.map +1 -1
  363. package/lib/module/components/useAuthState.js.map +1 -1
  364. package/lib/module/constants.js.map +1 -1
  365. package/lib/module/hooks.js.map +1 -1
  366. package/lib/module/index.js +0 -1
  367. package/lib/module/index.js.map +1 -1
  368. package/lib/module/interfaces/Icon.js.map +1 -1
  369. package/lib/module/mappings/Accordion.js.map +1 -1
  370. package/lib/module/mappings/AccordionItem.js.map +1 -1
  371. package/lib/module/mappings/ActionSheet.js.map +1 -1
  372. package/lib/module/mappings/ActionSheetCancel.js.map +1 -1
  373. package/lib/module/mappings/ActionSheetItem.js.map +1 -1
  374. package/lib/module/mappings/ActivityIndicator.js.map +1 -1
  375. package/lib/module/mappings/AudioPlayer.js.map +1 -1
  376. package/lib/module/mappings/AvatarEdit.js.map +1 -1
  377. package/lib/module/mappings/Banner.js.map +1 -1
  378. package/lib/module/mappings/BlurView.js.map +1 -1
  379. package/lib/module/mappings/Button.js.map +1 -1
  380. package/lib/module/mappings/Card.js.map +1 -1
  381. package/lib/module/mappings/CardBlock.js.map +1 -1
  382. package/lib/module/mappings/CardContainer.js.map +1 -1
  383. package/lib/module/mappings/CardContainerRating.js.map +1 -1
  384. package/lib/module/mappings/CardContainerShortImage.js.map +1 -1
  385. package/lib/module/mappings/CardInline.js.map +1 -1
  386. package/lib/module/mappings/Carousel.js.map +1 -1
  387. package/lib/module/mappings/Checkbox.js.map +1 -1
  388. package/lib/module/mappings/CheckboxGroup.js.map +1 -1
  389. package/lib/module/mappings/CheckboxRow.js.map +1 -1
  390. package/lib/module/mappings/CircleImage.js.map +1 -1
  391. package/lib/module/mappings/Container.js.map +1 -1
  392. package/lib/module/mappings/CustomCode.js.map +1 -1
  393. package/lib/module/mappings/DatePicker.js.map +1 -1
  394. package/lib/module/mappings/Divider.js.map +1 -1
  395. package/lib/module/mappings/FAB.js.map +1 -1
  396. package/lib/module/mappings/Fetch.js.map +1 -1
  397. package/lib/module/mappings/FieldSearchBarFull.js.map +1 -1
  398. package/lib/module/mappings/FlatList.js.map +1 -1
  399. package/lib/module/mappings/HeaderLarge.js.map +1 -1
  400. package/lib/module/mappings/HeaderMedium.js.map +1 -1
  401. package/lib/module/mappings/HeaderOverline.js.map +1 -1
  402. package/lib/module/mappings/Icon.js.map +1 -1
  403. package/lib/module/mappings/IconButton.js.map +1 -1
  404. package/lib/module/mappings/Image.js.map +1 -1
  405. package/lib/module/mappings/ImageBackground.js.map +1 -1
  406. package/lib/module/mappings/KeyboardAvoidingView.js.map +1 -1
  407. package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -1
  408. package/lib/module/mappings/Layout.js.map +1 -1
  409. package/lib/module/mappings/LinearGradient.js.map +1 -1
  410. package/lib/module/mappings/MapCallout.js.map +1 -1
  411. package/lib/module/mappings/MapMarker.js.map +1 -1
  412. package/lib/module/mappings/MapView.js.map +1 -1
  413. package/lib/module/mappings/Modal.js.map +1 -1
  414. package/lib/module/mappings/Picker.js.map +1 -1
  415. package/lib/module/mappings/ProgressBar.js.map +1 -1
  416. package/lib/module/mappings/ProgressCircle.js.map +1 -1
  417. package/lib/module/mappings/ProgressIndicator.js.map +1 -1
  418. package/lib/module/mappings/RadioButton.js.map +1 -1
  419. package/lib/module/mappings/RadioButtonGroup.js.map +1 -1
  420. package/lib/module/mappings/RadioButtonRow.js.map +1 -1
  421. package/lib/module/mappings/RowBodyIcon.js.map +1 -1
  422. package/lib/module/mappings/RowHeadlineImageCaption.js.map +1 -1
  423. package/lib/module/mappings/RowHeadlineImageIcon.js.map +1 -1
  424. package/lib/module/mappings/SafeAreaView.js.map +1 -1
  425. package/lib/module/mappings/ScrollView.js.map +1 -1
  426. package/lib/module/mappings/Slider.js.map +1 -1
  427. package/lib/module/mappings/StarRating.js.map +1 -1
  428. package/lib/module/mappings/Stepper.js.map +1 -1
  429. package/lib/module/mappings/Surface.js.map +1 -1
  430. package/lib/module/mappings/Swiper.js.map +1 -1
  431. package/lib/module/mappings/SwiperItem.js.map +1 -1
  432. package/lib/module/mappings/Switch.js.map +1 -1
  433. package/lib/module/mappings/Text.js.map +1 -1
  434. package/lib/module/mappings/TextArea.js.map +1 -1
  435. package/lib/module/mappings/TextField.js.map +1 -1
  436. package/lib/module/mappings/TextInput.js.map +1 -1
  437. package/lib/module/mappings/ToggleButton.js.map +1 -1
  438. package/lib/module/mappings/Touchable.js.map +1 -1
  439. package/lib/module/mappings/Video.js.map +1 -1
  440. package/lib/module/mappings/View.js.map +1 -1
  441. package/lib/module/mappings/WebView.js.map +1 -1
  442. package/lib/module/styles/DarkTheme.js.map +1 -1
  443. package/lib/module/styles/DefaultTheme.js.map +1 -1
  444. package/lib/module/styles/fonts.js.map +1 -1
  445. package/lib/module/styles/overlay.js.map +1 -1
  446. package/lib/module/styles/shadow.js.map +1 -1
  447. package/lib/module/theming.js.map +1 -1
  448. package/lib/module/utilities.js.map +1 -1
  449. package/lib/typescript/src/index.d.ts +0 -1
  450. package/package.json +5 -7
  451. package/src/index.tsx +0 -1
  452. package/lib/commonjs/components/TabView/TabView.js +0 -103
  453. package/lib/commonjs/components/TabView/TabView.js.map +0 -1
  454. package/lib/commonjs/components/TabView/TabViewItem.js +0 -27
  455. package/lib/commonjs/components/TabView/TabViewItem.js.map +0 -1
  456. package/lib/commonjs/components/TabView/index.js +0 -24
  457. package/lib/commonjs/components/TabView/index.js.map +0 -1
  458. package/lib/commonjs/mappings/TabView.js +0 -80
  459. package/lib/commonjs/mappings/TabView.js.map +0 -1
  460. package/lib/module/components/TabView/TabView.js +0 -88
  461. package/lib/module/components/TabView/TabView.js.map +0 -1
  462. package/lib/module/components/TabView/TabViewItem.js +0 -19
  463. package/lib/module/components/TabView/TabViewItem.js.map +0 -1
  464. package/lib/module/components/TabView/index.js +0 -3
  465. package/lib/module/components/TabView/index.js.map +0 -1
  466. package/lib/module/mappings/TabView.js +0 -71
  467. package/lib/module/mappings/TabView.js.map +0 -1
  468. package/lib/typescript/src/components/TabView/TabView.d.ts +0 -19
  469. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -10
  470. package/lib/typescript/src/components/TabView/index.d.ts +0 -2
  471. package/lib/typescript/src/mappings/TabView.d.ts +0 -111
  472. package/src/Provider.js +0 -9
  473. package/src/components/Accordion/AccordionGroup.js +0 -44
  474. package/src/components/Accordion/AccordionItem.js +0 -32
  475. package/src/components/Accordion/index.js +0 -2
  476. package/src/components/ActionSheet/ActionSheet.js +0 -45
  477. package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
  478. package/src/components/ActionSheet/ActionSheetItem.js +0 -30
  479. package/src/components/ActionSheet/index.js +0 -3
  480. package/src/components/AnimatedCircularProgress.js +0 -43
  481. package/src/components/AspectRatio.js +0 -18
  482. package/src/components/AvatarEdit.js +0 -30
  483. package/src/components/Banner.js +0 -109
  484. package/src/components/Button.js +0 -112
  485. package/src/components/Card.js +0 -57
  486. package/src/components/CardBlock.js +0 -54
  487. package/src/components/CardContainer.js +0 -69
  488. package/src/components/CardContainerRating.js +0 -79
  489. package/src/components/CardContainerShortImage.js +0 -33
  490. package/src/components/CardInline.js +0 -36
  491. package/src/components/Carousel.js +0 -66
  492. package/src/components/Checkbox/Checkbox.js +0 -63
  493. package/src/components/Checkbox/CheckboxGroup.js +0 -21
  494. package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
  495. package/src/components/Checkbox/CheckboxRow.js +0 -78
  496. package/src/components/Checkbox/context.js +0 -14
  497. package/src/components/Checkbox/index.js +0 -3
  498. package/src/components/CircleImage.js +0 -8
  499. package/src/components/CircularProgress.js +0 -78
  500. package/src/components/Config.js +0 -63
  501. package/src/components/Container.js +0 -43
  502. package/src/components/DatePicker/DatePicker.js +0 -368
  503. package/src/components/DatePicker/DatePickerComponent.js +0 -13
  504. package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
  505. package/src/components/DatePicker/DatePickerComponentType.js +0 -1
  506. package/src/components/DeprecatedButton.js +0 -95
  507. package/src/components/DeprecatedCardWrapper.js +0 -18
  508. package/src/components/DeprecatedFAB.js +0 -115
  509. package/src/components/Divider.js +0 -13
  510. package/src/components/Elevation.js +0 -20
  511. package/src/components/FAB.js +0 -46
  512. package/src/components/FieldSearchBarFull.js +0 -53
  513. package/src/components/FormRow.js +0 -19
  514. package/src/components/Header.js +0 -44
  515. package/src/components/HeaderLarge.js +0 -7
  516. package/src/components/HeaderMedium.js +0 -7
  517. package/src/components/HeaderOverline.js +0 -7
  518. package/src/components/IconButton.js +0 -35
  519. package/src/components/Image.js +0 -47
  520. package/src/components/Justification.js +0 -1
  521. package/src/components/Layout.js +0 -50
  522. package/src/components/NumberInput.js +0 -49
  523. package/src/components/Picker/Picker.js +0 -266
  524. package/src/components/Picker/PickerComponent.android.js +0 -68
  525. package/src/components/Picker/PickerComponent.ios.js +0 -78
  526. package/src/components/Picker/PickerComponent.web.js +0 -69
  527. package/src/components/Picker/PickerTypes.js +0 -1
  528. package/src/components/Portal/Portal.js +0 -35
  529. package/src/components/Portal/PortalConsumer.js +0 -28
  530. package/src/components/Portal/PortalHost.js +0 -105
  531. package/src/components/Portal/PortalManager.js +0 -29
  532. package/src/components/ProgressBar.js +0 -118
  533. package/src/components/ProgressCircle.js +0 -13
  534. package/src/components/ProgressIndicator.js +0 -27
  535. package/src/components/RadioButton/RadioButton.js +0 -17
  536. package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
  537. package/src/components/RadioButton/RadioButtonGroup.js +0 -43
  538. package/src/components/RadioButton/RadioButtonRow.js +0 -76
  539. package/src/components/RadioButton/context.js +0 -14
  540. package/src/components/RadioButton/index.js +0 -4
  541. package/src/components/ResizeMode.js +0 -1
  542. package/src/components/Row.js +0 -48
  543. package/src/components/RowBodyIcon.js +0 -8
  544. package/src/components/RowHeadlineImageCaption.js +0 -12
  545. package/src/components/RowHeadlineImageIcon.js +0 -14
  546. package/src/components/ScreenContainer.js +0 -34
  547. package/src/components/Slider.js +0 -63
  548. package/src/components/StarRating.js +0 -50
  549. package/src/components/StepIndicator.js +0 -346
  550. package/src/components/Stepper.js +0 -39
  551. package/src/components/Surface.js +0 -32
  552. package/src/components/Swiper/Swiper.js +0 -29
  553. package/src/components/Swiper/SwiperItem.js +0 -9
  554. package/src/components/Swiper/index.js +0 -2
  555. package/src/components/Switch.js +0 -56
  556. package/src/components/TabView/TabView.js +0 -33
  557. package/src/components/TabView/TabView.tsx +0 -97
  558. package/src/components/TabView/TabViewItem.js +0 -5
  559. package/src/components/TabView/TabViewItem.tsx +0 -21
  560. package/src/components/TabView/index.js +0 -2
  561. package/src/components/TabView/index.ts +0 -2
  562. package/src/components/Text.js +0 -28
  563. package/src/components/TextField.js +0 -420
  564. package/src/components/ToggleButton.js +0 -39
  565. package/src/components/Touchable.js +0 -12
  566. package/src/components/Touchable.web.js +0 -2
  567. package/src/components/Typography.js +0 -36
  568. package/src/components/useAuthState.js +0 -31
  569. package/src/constants.js +0 -10
  570. package/src/hooks.js +0 -12
  571. package/src/index.js +0 -53
  572. package/src/interfaces/Icon.js +0 -8
  573. package/src/mappings/Accordion.js +0 -41
  574. package/src/mappings/AccordionItem.js +0 -16
  575. package/src/mappings/ActionSheet.js +0 -13
  576. package/src/mappings/ActionSheetCancel.js +0 -19
  577. package/src/mappings/ActionSheetItem.js +0 -23
  578. package/src/mappings/ActivityIndicator.js +0 -53
  579. package/src/mappings/AudioPlayer.js +0 -20
  580. package/src/mappings/AvatarEdit.js +0 -37
  581. package/src/mappings/Banner.js +0 -32
  582. package/src/mappings/BlurView.js +0 -41
  583. package/src/mappings/Button.js +0 -56
  584. package/src/mappings/Card.js +0 -52
  585. package/src/mappings/CardBlock.js +0 -122
  586. package/src/mappings/CardContainer.js +0 -102
  587. package/src/mappings/CardContainerRating.js +0 -124
  588. package/src/mappings/CardContainerShortImage.js +0 -118
  589. package/src/mappings/CardInline.js +0 -51
  590. package/src/mappings/Carousel.js +0 -18
  591. package/src/mappings/Checkbox.js +0 -45
  592. package/src/mappings/CheckboxGroup.js +0 -25
  593. package/src/mappings/CheckboxRow.js +0 -56
  594. package/src/mappings/CircleImage.js +0 -24
  595. package/src/mappings/Container.js +0 -29
  596. package/src/mappings/CustomCode.js +0 -8
  597. package/src/mappings/DatePicker.js +0 -147
  598. package/src/mappings/Divider.js +0 -26
  599. package/src/mappings/FAB.js +0 -36
  600. package/src/mappings/Fetch.js +0 -12
  601. package/src/mappings/FieldSearchBarFull.js +0 -49
  602. package/src/mappings/FlatList.js +0 -19
  603. package/src/mappings/HeaderLarge.js +0 -28
  604. package/src/mappings/HeaderMedium.js +0 -54
  605. package/src/mappings/HeaderOverline.js +0 -54
  606. package/src/mappings/Icon.js +0 -25
  607. package/src/mappings/IconButton.js +0 -30
  608. package/src/mappings/Image.js +0 -15
  609. package/src/mappings/ImageBackground.js +0 -28
  610. package/src/mappings/KeyboardAvoidingView.js +0 -40
  611. package/src/mappings/KeyboardAwareScrollView.js +0 -49
  612. package/src/mappings/Layout.js +0 -195
  613. package/src/mappings/LinearGradient.js +0 -77
  614. package/src/mappings/MapCallout.js +0 -21
  615. package/src/mappings/MapMarker.js +0 -47
  616. package/src/mappings/MapView.js +0 -138
  617. package/src/mappings/Modal.js +0 -41
  618. package/src/mappings/Picker.js +0 -139
  619. package/src/mappings/ProgressBar.js +0 -100
  620. package/src/mappings/ProgressCircle.js +0 -108
  621. package/src/mappings/ProgressIndicator.js +0 -180
  622. package/src/mappings/RadioButton.js +0 -50
  623. package/src/mappings/RadioButtonGroup.js +0 -16
  624. package/src/mappings/RadioButtonRow.js +0 -37
  625. package/src/mappings/RowBodyIcon.js +0 -75
  626. package/src/mappings/RowHeadlineImageCaption.js +0 -167
  627. package/src/mappings/RowHeadlineImageIcon.js +0 -99
  628. package/src/mappings/SafeAreaView.js +0 -33
  629. package/src/mappings/ScrollView.js +0 -30
  630. package/src/mappings/Slider.js +0 -59
  631. package/src/mappings/StarRating.js +0 -42
  632. package/src/mappings/Stepper.js +0 -28
  633. package/src/mappings/Surface.js +0 -13
  634. package/src/mappings/Swiper.js +0 -60
  635. package/src/mappings/SwiperItem.js +0 -8
  636. package/src/mappings/Switch.js +0 -75
  637. package/src/mappings/TabView.js +0 -73
  638. package/src/mappings/TabView.ts +0 -80
  639. package/src/mappings/Text.js +0 -232
  640. package/src/mappings/TextArea.js +0 -52
  641. package/src/mappings/TextField.js +0 -158
  642. package/src/mappings/TextInput.js +0 -208
  643. package/src/mappings/ToggleButton.js +0 -45
  644. package/src/mappings/Touchable.js +0 -12
  645. package/src/mappings/Video.js +0 -74
  646. package/src/mappings/View.js +0 -206
  647. package/src/mappings/WebView.js +0 -18
  648. package/src/styles/DarkTheme.js +0 -26
  649. package/src/styles/DefaultTheme.js +0 -111
  650. package/src/styles/fonts.js +0 -62
  651. package/src/styles/overlay.js +0 -60
  652. package/src/styles/shadow.js +0 -51
  653. package/src/theming.js +0 -3
  654. package/src/utilities.js +0 -102
@@ -1,266 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet, Text, Platform, Dimensions, } from "react-native";
3
- import { omit, pickBy, identity, isObject } from "lodash";
4
- import { SafeAreaView } from "react-native-safe-area-context";
5
- import { Picker as NativePicker } from "@react-native-picker/picker";
6
- import { withTheme } from "../../theming";
7
- import Portal from "../Portal/Portal";
8
- import Button from "../DeprecatedButton";
9
- import Touchable from "../Touchable";
10
- import { extractStyles, extractBorderAndMarginStyles, borderStyleNames, marginStyleNames, } from "../../utilities";
11
- function normalizeOptions(options) {
12
- if (options.length === 0) {
13
- return [];
14
- }
15
- if (typeof options[0] === ("string" || "number")) {
16
- return options.map((option) => ({
17
- label: String(option),
18
- value: String(option),
19
- }));
20
- }
21
- if (isObject(options[0]) &&
22
- options[0].value !== null &&
23
- options[0].label !== null) {
24
- return options.map((option) => {
25
- return {
26
- label: String(option.label),
27
- value: String(option.value),
28
- };
29
- });
30
- }
31
- throw new Error('Picker options must be either an array of strings or array of { "label": string; "value": string; } objects.');
32
- }
33
- const { width: deviceWidth, height: deviceHeight } = Dimensions.get("screen");
34
- const isIos = Platform.OS === "ios";
35
- const unstyledColor = "rgba(165, 173, 183, 1)";
36
- const disabledColor = "rgb(240, 240, 240)";
37
- const errorColor = "rgba(255, 69, 100, 1)";
38
- const Picker = ({ error, options = [], onValueChange, defaultValue, Icon, style, placeholder, value, disabled = false, theme, assistiveText, label, iconColor = unstyledColor, iconSize = 24, leftIconMode = "inset", leftIconName, placeholderTextColor = unstyledColor, rightIconName, type = "solid", }) => {
39
- const androidPickerRef = React.useRef(undefined);
40
- const [internalValue, setInternalValue] = React.useState(value || defaultValue);
41
- const [pickerVisible, setPickerVisible] = React.useState(false);
42
- const togglePickerVisible = () => {
43
- setPickerVisible(!pickerVisible);
44
- };
45
- React.useEffect(() => {
46
- if (value != null) {
47
- setInternalValue(value);
48
- }
49
- }, [value]);
50
- React.useEffect(() => {
51
- if (defaultValue != null) {
52
- setInternalValue(defaultValue);
53
- }
54
- }, [defaultValue]);
55
- React.useEffect(() => {
56
- if (pickerVisible && androidPickerRef.current) {
57
- androidPickerRef?.current?.focus();
58
- }
59
- }, [pickerVisible, androidPickerRef]);
60
- const normalizedOptions = normalizeOptions(options);
61
- const pickerOptions = placeholder
62
- ? [{ value: placeholder, label: placeholder }, ...normalizedOptions]
63
- : normalizedOptions;
64
- const { colors } = theme;
65
- const { viewStyles, textStyles } = extractStyles(style);
66
- const additionalBorderStyles = ["backgroundColor"];
67
- const additionalMarginStyles = [
68
- "bottom",
69
- "height",
70
- "left",
71
- "maxHeight",
72
- "maxWidth",
73
- "minHeight",
74
- "minWidth",
75
- "overflow",
76
- "position",
77
- "right",
78
- "top",
79
- "width",
80
- "zIndex",
81
- ];
82
- const { borderStyles: extractedBorderStyles, marginStyles: extractedMarginStyles, } = extractBorderAndMarginStyles(viewStyles, additionalBorderStyles, additionalMarginStyles);
83
- const borderStyles = {
84
- ...{
85
- ...(type === "solid"
86
- ? {
87
- borderTopLeftRadius: 5,
88
- borderTopRightRadius: 5,
89
- borderBottomRightRadius: 5,
90
- borderBottomLeftRadius: 5,
91
- borderTopWidth: 1,
92
- borderRightWidth: 1,
93
- borderLeftWidth: 1,
94
- }
95
- : {}),
96
- borderBottomWidth: 1,
97
- borderColor: unstyledColor,
98
- borderStyle: "solid",
99
- },
100
- ...extractedBorderStyles,
101
- ...(error ? { borderColor: errorColor } : {}),
102
- ...(disabled
103
- ? { borderColor: "transparent", backgroundColor: disabledColor }
104
- : {}),
105
- };
106
- const marginStyles = {
107
- height: 60,
108
- ...extractedMarginStyles,
109
- };
110
- const stylesWithoutBordersAndMargins = omit(viewStyles, [
111
- ...borderStyleNames,
112
- ...marginStyleNames,
113
- ...additionalBorderStyles,
114
- ...additionalMarginStyles,
115
- ]);
116
- const selectedLabel = internalValue &&
117
- (pickerOptions.find((option) => option.value === internalValue)?.label ??
118
- internalValue);
119
- const labelText = label ? (React.createElement(Text, { style: {
120
- textAlign: textStyles.textAlign,
121
- color: unstyledColor,
122
- fontSize: 12,
123
- paddingBottom: 4,
124
- } }, label)) : null;
125
- const leftIconOutset = leftIconMode === "outset";
126
- const leftIcon = leftIconName ? (React.createElement(Icon, { name: leftIconName, color: disabled ? unstyledColor : iconColor, size: iconSize, style: {
127
- marginRight: 4,
128
- marginLeft: 4,
129
- } })) : null;
130
- const rightIcon = rightIconName ? (React.createElement(Icon, { name: rightIconName, color: disabled ? unstyledColor : iconColor, size: iconSize, style: {
131
- marginRight: -10,
132
- marginLeft: 8,
133
- } })) : null;
134
- const textAlign = textStyles?.textAlign;
135
- const calculateLeftPadding = () => {
136
- if (leftIconOutset) {
137
- if (textAlign === "center") {
138
- return iconSize - Math.abs(8 - iconSize);
139
- }
140
- return iconSize + 8;
141
- }
142
- return 0;
143
- };
144
- const assistiveTextLabel = assistiveText ? (React.createElement(Text, { style: {
145
- textAlign,
146
- width: "100%",
147
- paddingLeft: calculateLeftPadding(),
148
- color: unstyledColor,
149
- fontSize: 12,
150
- paddingTop: 4,
151
- } }, assistiveText)) : null;
152
- const primaryTextStyle = {
153
- color: unstyledColor,
154
- fontSize: 14,
155
- ...pickBy(textStyles, identity),
156
- ...(placeholder === internalValue ? { color: placeholderTextColor } : {}),
157
- ...(disabled ? { color: unstyledColor } : {}),
158
- };
159
- const handleValueChange = (newValue, itemIndex) => {
160
- if (!placeholder || itemIndex > 0) {
161
- onValueChange?.(newValue, itemIndex);
162
- }
163
- setInternalValue(newValue);
164
- };
165
- return (
166
- /* marginsContainer */
167
- React.createElement(View, { style: [styles.marginsContainer, marginStyles] },
168
- React.createElement(Touchable, { disabled: disabled, onPress: togglePickerVisible, style: styles.touchableContainer },
169
- React.createElement(View, { pointerEvents: "none", style: [
170
- styles.outsetContainer,
171
- stylesWithoutBordersAndMargins,
172
- !leftIconOutset ? borderStyles : {},
173
- ] },
174
- leftIcon,
175
- React.createElement(View, { style: [
176
- styles.insetContainer,
177
- leftIconOutset ? borderStyles : {},
178
- ] },
179
- React.createElement(View, { style: styles.primaryTextContainer },
180
- labelText,
181
- React.createElement(Text, { style: primaryTextStyle }, String(selectedLabel ?? placeholder))),
182
- rightIcon)),
183
- assistiveTextLabel),
184
- isIos && pickerVisible ? (React.createElement(Portal, null,
185
- React.createElement(View, { style: [
186
- styles.iosPicker,
187
- {
188
- backgroundColor: colors.divider,
189
- },
190
- ] },
191
- React.createElement(SafeAreaView, { style: styles.iosSafeArea },
192
- React.createElement(Button, { Icon: Icon, type: "text", onPress: togglePickerVisible, style: styles.iosButton }, "Close"),
193
- React.createElement(NativePicker, { style: styles.iosNativePicker, selectedValue: internalValue, onValueChange: handleValueChange }, pickerOptions.map((option) => (React.createElement(NativePicker.Item, { label: option.label, value: option.value, key: option.value })))))))) : null,
194
- !isIos && pickerVisible ? (React.createElement(NativePicker, { enabled: pickerVisible, selectedValue: internalValue, onValueChange: handleValueChange, style: styles.nonIosPicker, ref: androidPickerRef, onBlur: () => setPickerVisible(false) }, pickerOptions.map((option) => (React.createElement(NativePicker.Item, { label: option.label, value: option.value, key: option.value }))))) : null));
195
- };
196
- export default withTheme(Picker);
197
- const styles = StyleSheet.create({
198
- marginsContainer: {
199
- alignSelf: "stretch",
200
- alignItems: "center",
201
- width: "100%",
202
- maxWidth: deviceWidth,
203
- },
204
- touchableContainer: {
205
- flex: 1,
206
- height: "100%",
207
- width: "100%",
208
- alignSelf: "stretch",
209
- alignItems: "center",
210
- },
211
- outsetContainer: {
212
- flex: 1,
213
- height: "100%",
214
- width: "100%",
215
- flexDirection: "row",
216
- alignItems: "center",
217
- justifyContent: "space-between",
218
- },
219
- insetContainer: {
220
- flex: 1,
221
- height: "100%",
222
- width: "100%",
223
- flexDirection: "row",
224
- alignItems: "center",
225
- justifyContent: "space-between",
226
- paddingLeft: 12,
227
- paddingRight: 12,
228
- },
229
- primaryTextContainer: {
230
- flex: 1,
231
- },
232
- iosPicker: {
233
- position: "absolute",
234
- bottom: 0,
235
- left: 0,
236
- right: 0,
237
- flexDirection: "row",
238
- justifyContent: "center",
239
- width: "100%",
240
- maxWidth: deviceWidth,
241
- maxHeight: deviceHeight,
242
- },
243
- iosSafeArea: {
244
- backgroundColor: "white",
245
- flexDirection: "column",
246
- width: "100%",
247
- maxWidth: deviceWidth,
248
- },
249
- iosButton: {
250
- alignSelf: "flex-end",
251
- },
252
- iosNativePicker: {
253
- backgroundColor: "white",
254
- },
255
- nonIosPicker: {
256
- opacity: 0,
257
- position: "absolute",
258
- top: 0,
259
- left: 0,
260
- right: 0,
261
- bottom: 0,
262
- width: "100%",
263
- maxWidth: deviceWidth,
264
- maxHeight: deviceHeight,
265
- },
266
- });
@@ -1,68 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import omit from "lodash.omit";
4
- import { withTheme } from "../../theming";
5
- import { Picker as NativePicker } from "@react-native-picker/picker";
6
- import { extractStyles } from "../../utilities";
7
- import TextField from "../TextField";
8
- import Touchable from "../Touchable";
9
- const Picker = ({ style, options, placeholder, selectedValue, disabled = false, onValueChange: onValueChangeOverride = () => { }, ...props }) => {
10
- const { viewStyles: { borderRadius, // eslint-disable-line @typescript-eslint/no-unused-vars
11
- borderWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
12
- borderTopWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
13
- borderRightWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
14
- borderBottomWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
15
- borderLeftWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
16
- borderColor, // eslint-disable-line @typescript-eslint/no-unused-vars
17
- backgroundColor, // eslint-disable-line @typescript-eslint/no-unused-vars
18
- padding, // eslint-disable-line @typescript-eslint/no-unused-vars
19
- paddingTop, // eslint-disable-line @typescript-eslint/no-unused-vars
20
- paddingRight, // eslint-disable-line @typescript-eslint/no-unused-vars
21
- paddingBottom, // eslint-disable-line @typescript-eslint/no-unused-vars
22
- paddingLeft, // eslint-disable-line @typescript-eslint/no-unused-vars
23
- ...viewStyles }, } = extractStyles(style);
24
- const textField = React.useRef(undefined);
25
- const onValueChange = (itemValue, itemIndex) => {
26
- toggleFocus();
27
- onValueChangeOverride(itemValue, itemIndex);
28
- };
29
- const toggleFocus = () => {
30
- if (!disabled) {
31
- // @ts-ignore
32
- textField.current.toggleFocus(); // cannot determine if method exists due to component being wrapped in a withTheme()
33
- }
34
- };
35
- const stylesWithoutMargin = style &&
36
- omit(StyleSheet.flatten(style), [
37
- "margin",
38
- "marginTop",
39
- "marginRight",
40
- "marginBottom",
41
- "marginLeft",
42
- ]);
43
- const selectedLabel = selectedValue &&
44
- (options.find((o) => o.value === selectedValue)?.label ?? selectedValue);
45
- return (React.createElement(Touchable, { disabled: disabled, onPress: toggleFocus, style: [styles.container, viewStyles] },
46
- React.createElement(View, null,
47
- React.createElement(NativePicker, { enabled: !disabled, selectedValue: selectedValue, onValueChange: onValueChange, style: {
48
- opacity: 0,
49
- position: "absolute",
50
- top: 0,
51
- left: 0,
52
- right: 0,
53
- bottom: 0,
54
- width: "100%",
55
- } }, options.map((o) => (React.createElement(NativePicker.Item, { label: o.label, value: o.value, key: o.value })))),
56
- React.createElement(View, { pointerEvents: "none" },
57
- React.createElement(TextField, { ...props, value: selectedLabel, placeholder: placeholder,
58
- // @ts-ignore
59
- ref: textField, disabled: disabled,
60
- // @ts-expect-error
61
- style: stylesWithoutMargin })))));
62
- };
63
- const styles = StyleSheet.create({
64
- container: {
65
- alignSelf: "stretch",
66
- },
67
- });
68
- export default withTheme(Picker);
@@ -1,78 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import { SafeAreaView } from "react-native-safe-area-context";
4
- import omit from "lodash.omit";
5
- import { Picker as NativePicker } from "@react-native-picker/picker";
6
- import { withTheme } from "../../theming";
7
- import Portal from "../Portal/Portal";
8
- import Button from "../DeprecatedButton";
9
- import TextField from "../TextField";
10
- import Touchable from "../Touchable";
11
- import { extractStyles } from "../../utilities";
12
- const Picker = ({ Icon, style, options, placeholder, selectedValue, disabled = false, onValueChange = () => { }, theme: { colors }, ...props }) => {
13
- const { viewStyles: { borderRadius, // eslint-disable-line @typescript-eslint/no-unused-vars
14
- borderWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
15
- borderTopWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
16
- borderRightWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
17
- borderBottomWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
18
- borderLeftWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
19
- borderColor, // eslint-disable-line @typescript-eslint/no-unused-vars
20
- backgroundColor, // eslint-disable-line @typescript-eslint/no-unused-vars
21
- padding, // eslint-disable-line @typescript-eslint/no-unused-vars
22
- paddingTop, // eslint-disable-line @typescript-eslint/no-unused-vars
23
- paddingRight, // eslint-disable-line @typescript-eslint/no-unused-vars
24
- paddingBottom, // eslint-disable-line @typescript-eslint/no-unused-vars
25
- paddingLeft, // eslint-disable-line @typescript-eslint/no-unused-vars
26
- ...viewStyles }, } = extractStyles(style);
27
- const textField = React.useRef(undefined);
28
- const [pickerVisible, setIsPickerVisible] = React.useState(false);
29
- const toggleVisibility = () => {
30
- setIsPickerVisible(!pickerVisible);
31
- // @ts-ignore
32
- textField.current.toggleFocus(); // cannot determine if method exists due to component being wrapped in a withTheme()
33
- };
34
- const stylesWithoutMargin = style &&
35
- omit(StyleSheet.flatten(style), [
36
- "margin",
37
- "marginTop",
38
- "marginRight",
39
- "marginBottom",
40
- "marginLeft",
41
- ]);
42
- const selectedLabel = selectedValue &&
43
- (options.find((o) => o.value === selectedValue)?.label ?? selectedValue);
44
- return (React.createElement(View, { style: [styles.container, viewStyles] },
45
- React.createElement(Touchable, { disabled: disabled, onPress: toggleVisibility },
46
- React.createElement(TextField, { ...props, value: String(selectedLabel), placeholder: placeholder,
47
- // @ts-ignore
48
- ref: textField, disabled: disabled, pointerEvents: "none",
49
- // @ts-expect-error
50
- style: stylesWithoutMargin, Icon: Icon })),
51
- pickerVisible && (React.createElement(Portal, null,
52
- React.createElement(View, { style: [styles.picker, { backgroundColor: colors.divider }] },
53
- React.createElement(SafeAreaView, { style: styles.pickerContainer },
54
- React.createElement(Button, { Icon: Icon, type: "text", onPress: toggleVisibility, style: styles.closeButton }, "Close"),
55
- React.createElement(NativePicker, { style: { backgroundColor: "white" }, selectedValue: selectedValue, onValueChange: onValueChange }, options.map((o) => (React.createElement(NativePicker.Item, { label: o.label, value: o.value, key: o.value }))))))))));
56
- };
57
- const styles = StyleSheet.create({
58
- container: {
59
- alignSelf: "stretch",
60
- },
61
- picker: {
62
- position: "absolute",
63
- bottom: 0,
64
- left: 0,
65
- right: 0,
66
- flexDirection: "row",
67
- justifyContent: "center",
68
- },
69
- pickerContainer: {
70
- backgroundColor: "white",
71
- flexDirection: "column",
72
- width: "100%",
73
- },
74
- closeButton: {
75
- alignSelf: "flex-end",
76
- },
77
- });
78
- export default withTheme(Picker);
@@ -1,69 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import { Picker as NativePicker } from "@react-native-picker/picker";
4
- import omit from "lodash.omit";
5
- import { withTheme } from "../../theming";
6
- import { extractStyles } from "../../utilities";
7
- import TextField from "../TextField";
8
- import Touchable from "../Touchable";
9
- const Picker = ({ style, options, placeholder, selectedValue, disabled = false, onValueChange: onValueChangeOverride = () => { }, ...props }) => {
10
- const { viewStyles: { borderRadius, // eslint-disable-line @typescript-eslint/no-unused-vars
11
- borderWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
12
- borderTopWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
13
- borderRightWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
14
- borderBottomWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
15
- borderLeftWidth, // eslint-disable-line @typescript-eslint/no-unused-vars
16
- borderColor, // eslint-disable-line @typescript-eslint/no-unused-vars
17
- backgroundColor, // eslint-disable-line @typescript-eslint/no-unused-vars
18
- padding, // eslint-disable-line @typescript-eslint/no-unused-vars
19
- paddingTop, // eslint-disable-line @typescript-eslint/no-unused-vars
20
- paddingRight, // eslint-disable-line @typescript-eslint/no-unused-vars
21
- paddingBottom, // eslint-disable-line @typescript-eslint/no-unused-vars
22
- paddingLeft, // eslint-disable-line @typescript-eslint/no-unused-vars
23
- ...viewStyles }, } = extractStyles(style);
24
- const textField = React.useRef(undefined);
25
- const onValueChange = (itemValue, itemIndex) => {
26
- toggleFocus();
27
- onValueChangeOverride(itemValue, itemIndex);
28
- };
29
- const toggleFocus = () => {
30
- if (!disabled) {
31
- // @ts-ignore
32
- textField.current.toggleFocus(); // cannot determine if method exists due to component being wrapped in a withTheme()
33
- }
34
- };
35
- const stylesWithoutMargin = style &&
36
- omit(StyleSheet.flatten(style), [
37
- "margin",
38
- "marginTop",
39
- "marginRight",
40
- "marginBottom",
41
- "marginLeft",
42
- ]);
43
- const selectedLabel = selectedValue &&
44
- (options.find((o) => o.value === selectedValue)?.label ?? selectedValue);
45
- return (React.createElement(Touchable, { disabled: disabled, onPress: toggleFocus, style: [styles.container, viewStyles] },
46
- React.createElement(View, null,
47
- React.createElement(NativePicker, { enabled: !disabled, selectedValue: selectedValue, onValueChange: onValueChange, style: {
48
- flex: 1,
49
- opacity: 0,
50
- position: "absolute",
51
- top: 0,
52
- left: 0,
53
- right: 0,
54
- bottom: 0,
55
- width: "100%",
56
- } }, options.map((o) => (React.createElement(NativePicker.Item, { label: o.label, value: o.value, key: o.value })))),
57
- React.createElement(View, { pointerEvents: "none" },
58
- React.createElement(TextField, { ...props, value: selectedLabel, placeholder: placeholder,
59
- // @ts-ignore
60
- ref: textField, disabled: disabled,
61
- // @ts-expect-error
62
- style: stylesWithoutMargin })))));
63
- };
64
- const styles = StyleSheet.create({
65
- container: {
66
- alignSelf: "stretch",
67
- },
68
- });
69
- export default withTheme(Picker);
@@ -1 +0,0 @@
1
- export {};
@@ -1,35 +0,0 @@
1
- import * as React from "react";
2
- import PortalConsumer from "./PortalConsumer";
3
- import PortalHost, { PortalContext } from "./PortalHost";
4
- import { ThemeProvider, withTheme } from "../../theming";
5
- /**
6
- * Portal allows to render a component at a different place in the parent tree.
7
- * You can use it to render content which should appear above other elements, similar to `Modal`.
8
- * It requires a [`Portal.Host`](portal-host.html) component to be rendered somewhere in the parent tree.
9
- *
10
- * ## Usage
11
- * ```js
12
- * import * as React from 'react';
13
- * import { Portal, Text } from 'react-native-paper';
14
- *
15
- * export default class MyComponent extends React.Component {
16
- * render() {
17
- * return (
18
- * <Portal>
19
- * <Text>This is rendered at a different place</Text>
20
- * </Portal>
21
- * );
22
- * }
23
- * }
24
- * ```
25
- */
26
- class Portal extends React.Component {
27
- // @component ./PortalHost.tsx
28
- static Host = PortalHost;
29
- render() {
30
- const { children, theme } = this.props;
31
- return (React.createElement(PortalContext.Consumer, null, (manager) => (React.createElement(PortalConsumer, { manager: manager },
32
- React.createElement(ThemeProvider, { theme: theme }, children)))));
33
- }
34
- }
35
- export default withTheme(Portal);
@@ -1,28 +0,0 @@
1
- import * as React from "react";
2
- export default class PortalConsumer extends React.Component {
3
- async componentDidMount() {
4
- this.checkManager();
5
- // Delay updating to prevent React from going to infinite loop
6
- await Promise.resolve();
7
- this.key = this.props.manager.mount(this.props.children);
8
- }
9
- componentDidUpdate() {
10
- this.checkManager();
11
- this.props.manager.update(this.key, this.props.children);
12
- }
13
- componentWillUnmount() {
14
- this.checkManager();
15
- this.props.manager.unmount(this.key);
16
- }
17
- key;
18
- checkManager() {
19
- if (!this.props.manager) {
20
- throw new Error("Looks like you forgot to wrap your root component with `Provider` component from `react-native-paper`.\n\n" +
21
- "Please read our getting-started guide and make sure you've followed all the required steps.\n\n" +
22
- "https://callstack.github.io/react-native-paper/getting-started.html");
23
- }
24
- }
25
- render() {
26
- return null;
27
- }
28
- }
@@ -1,105 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import PortalManager from "./PortalManager";
4
- export const PortalContext = React.createContext(null);
5
- /**
6
- * Portal host renders all of its children `Portal` elements.
7
- * For example, you can wrap a screen in `Portal.Host` to render items above the screen.
8
- * If you're using the `Provider` component, it already includes `Portal.Host`.
9
- *
10
- * ## Usage
11
- * ```js
12
- * import * as React from 'react';
13
- * import { Text } from 'react-native';
14
- * import { Portal } from 'react-native-paper';
15
- *
16
- * export default class MyComponent extends React.Component {
17
- * render() {
18
- * return (
19
- * <Portal.Host>
20
- * <Text>Content of the app</Text>
21
- * </Portal.Host>
22
- * );
23
- * }
24
- * }
25
- * ```
26
- *
27
- * Here any `Portal` elements under `<App />` are rendered alongside `<App />` and will appear above `<App />` like a `Modal`.
28
- */
29
- export default class PortalHost extends React.Component {
30
- static displayName = "Portal.Host";
31
- componentDidMount() {
32
- const manager = this.manager;
33
- const queue = this.queue;
34
- while (queue.length && manager) {
35
- const action = queue.pop();
36
- if (action) {
37
- switch (action.type) {
38
- case "mount":
39
- manager.mount(action.key, action.children);
40
- break;
41
- case "update":
42
- manager.update(action.key, action.children);
43
- break;
44
- case "unmount":
45
- manager.unmount(action.key);
46
- break;
47
- }
48
- }
49
- }
50
- }
51
- setManager = (manager) => {
52
- this.manager = manager;
53
- };
54
- mount = (children) => {
55
- const key = this.nextKey++;
56
- if (this.manager) {
57
- this.manager.mount(key, children);
58
- }
59
- else {
60
- this.queue.push({ type: "mount", key, children });
61
- }
62
- return key;
63
- };
64
- update = (key, children) => {
65
- if (this.manager) {
66
- this.manager.update(key, children);
67
- }
68
- else {
69
- const op = { type: "mount", key, children };
70
- const index = this.queue.findIndex((o) => o.type === "mount" || (o.type === "update" && o.key === key));
71
- if (index > -1) {
72
- // @ts-ignore
73
- this.queue[index] = op;
74
- }
75
- else {
76
- this.queue.push(op);
77
- }
78
- }
79
- };
80
- unmount = (key) => {
81
- if (this.manager) {
82
- this.manager.unmount(key);
83
- }
84
- else {
85
- this.queue.push({ type: "unmount", key });
86
- }
87
- };
88
- nextKey = 0;
89
- queue = [];
90
- manager;
91
- render() {
92
- return (React.createElement(PortalContext.Provider, { value: {
93
- mount: this.mount,
94
- update: this.update,
95
- unmount: this.unmount,
96
- } },
97
- React.createElement(View, { style: styles.container, collapsable: false, pointerEvents: "box-none" }, this.props.children),
98
- React.createElement(PortalManager, { ref: this.setManager })));
99
- }
100
- }
101
- const styles = StyleSheet.create({
102
- container: {
103
- flex: 1,
104
- },
105
- });