@draftbit/core 44.2.3-f311f8.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 (634) 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 +3 -11
  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 +4 -19
  54. package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
  55. package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -14
  56. package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -1
  57. package/lib/commonjs/components/DeprecatedFAB.js +4 -20
  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 +0 -4
  83. package/lib/commonjs/components/Picker/Picker.js.map +1 -1
  84. package/lib/commonjs/components/Picker/PickerComponent.android.js +1 -1
  85. package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -1
  86. package/lib/commonjs/components/Picker/PickerComponent.ios.js +1 -1
  87. package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +1 -1
  88. package/lib/commonjs/components/Picker/PickerComponent.web.js +1 -1
  89. package/lib/commonjs/components/Picker/PickerComponent.web.js.map +1 -1
  90. package/lib/commonjs/components/Picker/PickerTypes.js.map +1 -1
  91. package/lib/commonjs/components/Portal/Portal.js.map +1 -1
  92. package/lib/commonjs/components/Portal/PortalConsumer.js.map +1 -1
  93. package/lib/commonjs/components/Portal/PortalHost.js.map +1 -1
  94. package/lib/commonjs/components/Portal/PortalManager.js.map +1 -1
  95. package/lib/commonjs/components/ProgressBar.js +1 -1
  96. package/lib/commonjs/components/ProgressBar.js.map +1 -1
  97. package/lib/commonjs/components/ProgressCircle.js.map +1 -1
  98. package/lib/commonjs/components/ProgressIndicator.js.map +1 -1
  99. package/lib/commonjs/components/RadioButton/RadioButton.js +1 -1
  100. package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -1
  101. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +1 -1
  102. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
  103. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +1 -1
  104. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -1
  105. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -1
  106. package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +1 -1
  107. package/lib/commonjs/components/RadioButton/context.js.map +1 -1
  108. package/lib/commonjs/components/RadioButton/index.js.map +1 -1
  109. package/lib/commonjs/components/ResizeMode.js +0 -3
  110. package/lib/commonjs/components/ResizeMode.js.map +1 -1
  111. package/lib/commonjs/components/Row.js.map +1 -1
  112. package/lib/commonjs/components/RowBodyIcon.js.map +1 -1
  113. package/lib/commonjs/components/RowHeadlineImageCaption.js.map +1 -1
  114. package/lib/commonjs/components/RowHeadlineImageIcon.js.map +1 -1
  115. package/lib/commonjs/components/ScreenContainer.js +1 -1
  116. package/lib/commonjs/components/ScreenContainer.js.map +1 -1
  117. package/lib/commonjs/components/Slider.js +1 -1
  118. package/lib/commonjs/components/Slider.js.map +1 -1
  119. package/lib/commonjs/components/StarRating.js +1 -1
  120. package/lib/commonjs/components/StarRating.js.map +1 -1
  121. package/lib/commonjs/components/StepIndicator.js.map +1 -1
  122. package/lib/commonjs/components/Stepper.js.map +1 -1
  123. package/lib/commonjs/components/Surface.js +1 -1
  124. package/lib/commonjs/components/Surface.js.map +1 -1
  125. package/lib/commonjs/components/Swiper/Swiper.js.map +1 -1
  126. package/lib/commonjs/components/Swiper/SwiperItem.js.map +1 -1
  127. package/lib/commonjs/components/Swiper/index.js.map +1 -1
  128. package/lib/commonjs/components/Switch.js +1 -1
  129. package/lib/commonjs/components/Switch.js.map +1 -1
  130. package/lib/commonjs/components/Text.js +1 -1
  131. package/lib/commonjs/components/Text.js.map +1 -1
  132. package/lib/commonjs/components/TextField.js +7 -23
  133. package/lib/commonjs/components/TextField.js.map +1 -1
  134. package/lib/commonjs/components/ToggleButton.js +1 -1
  135. package/lib/commonjs/components/ToggleButton.js.map +1 -1
  136. package/lib/commonjs/components/Touchable.js +3 -16
  137. package/lib/commonjs/components/Touchable.js.map +1 -1
  138. package/lib/commonjs/components/Touchable.web.js.map +1 -1
  139. package/lib/commonjs/components/Typography.js.map +1 -1
  140. package/lib/commonjs/components/useAuthState.js.map +1 -1
  141. package/lib/commonjs/constants.js.map +1 -1
  142. package/lib/commonjs/hooks.js.map +1 -1
  143. package/lib/commonjs/index.js +0 -8
  144. package/lib/commonjs/index.js.map +1 -1
  145. package/lib/commonjs/interfaces/Icon.js.map +1 -1
  146. package/lib/commonjs/mappings/Accordion.js.map +1 -1
  147. package/lib/commonjs/mappings/AccordionItem.js.map +1 -1
  148. package/lib/commonjs/mappings/ActionSheet.js.map +1 -1
  149. package/lib/commonjs/mappings/ActionSheetCancel.js.map +1 -1
  150. package/lib/commonjs/mappings/ActionSheetItem.js.map +1 -1
  151. package/lib/commonjs/mappings/ActivityIndicator.js.map +1 -1
  152. package/lib/commonjs/mappings/AudioPlayer.js.map +1 -1
  153. package/lib/commonjs/mappings/AvatarEdit.js.map +1 -1
  154. package/lib/commonjs/mappings/Banner.js.map +1 -1
  155. package/lib/commonjs/mappings/BlurView.js.map +1 -1
  156. package/lib/commonjs/mappings/Button.js.map +1 -1
  157. package/lib/commonjs/mappings/Card.js.map +1 -1
  158. package/lib/commonjs/mappings/CardBlock.js.map +1 -1
  159. package/lib/commonjs/mappings/CardContainer.js.map +1 -1
  160. package/lib/commonjs/mappings/CardContainerRating.js.map +1 -1
  161. package/lib/commonjs/mappings/CardContainerShortImage.js.map +1 -1
  162. package/lib/commonjs/mappings/CardInline.js.map +1 -1
  163. package/lib/commonjs/mappings/Carousel.js.map +1 -1
  164. package/lib/commonjs/mappings/Checkbox.js.map +1 -1
  165. package/lib/commonjs/mappings/CheckboxGroup.js.map +1 -1
  166. package/lib/commonjs/mappings/CheckboxRow.js.map +1 -1
  167. package/lib/commonjs/mappings/CircleImage.js.map +1 -1
  168. package/lib/commonjs/mappings/Container.js.map +1 -1
  169. package/lib/commonjs/mappings/CustomCode.js.map +1 -1
  170. package/lib/commonjs/mappings/DatePicker.js.map +1 -1
  171. package/lib/commonjs/mappings/Divider.js.map +1 -1
  172. package/lib/commonjs/mappings/FAB.js.map +1 -1
  173. package/lib/commonjs/mappings/Fetch.js.map +1 -1
  174. package/lib/commonjs/mappings/FieldSearchBarFull.js.map +1 -1
  175. package/lib/commonjs/mappings/FlatList.js.map +1 -1
  176. package/lib/commonjs/mappings/HeaderLarge.js.map +1 -1
  177. package/lib/commonjs/mappings/HeaderMedium.js.map +1 -1
  178. package/lib/commonjs/mappings/HeaderOverline.js.map +1 -1
  179. package/lib/commonjs/mappings/Icon.js.map +1 -1
  180. package/lib/commonjs/mappings/IconButton.js.map +1 -1
  181. package/lib/commonjs/mappings/Image.js.map +1 -1
  182. package/lib/commonjs/mappings/ImageBackground.js.map +1 -1
  183. package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +1 -1
  184. package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -1
  185. package/lib/commonjs/mappings/Layout.js.map +1 -1
  186. package/lib/commonjs/mappings/LinearGradient.js.map +1 -1
  187. package/lib/commonjs/mappings/MapCallout.js.map +1 -1
  188. package/lib/commonjs/mappings/MapMarker.js.map +1 -1
  189. package/lib/commonjs/mappings/MapView.js.map +1 -1
  190. package/lib/commonjs/mappings/Modal.js.map +1 -1
  191. package/lib/commonjs/mappings/Picker.js.map +1 -1
  192. package/lib/commonjs/mappings/ProgressBar.js.map +1 -1
  193. package/lib/commonjs/mappings/ProgressCircle.js.map +1 -1
  194. package/lib/commonjs/mappings/ProgressIndicator.js.map +1 -1
  195. package/lib/commonjs/mappings/RadioButton.js.map +1 -1
  196. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
  197. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
  198. package/lib/commonjs/mappings/RowBodyIcon.js.map +1 -1
  199. package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +1 -1
  200. package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +1 -1
  201. package/lib/commonjs/mappings/SafeAreaView.js.map +1 -1
  202. package/lib/commonjs/mappings/ScrollView.js.map +1 -1
  203. package/lib/commonjs/mappings/Slider.js.map +1 -1
  204. package/lib/commonjs/mappings/StarRating.js.map +1 -1
  205. package/lib/commonjs/mappings/Stepper.js.map +1 -1
  206. package/lib/commonjs/mappings/Surface.js.map +1 -1
  207. package/lib/commonjs/mappings/Swiper.js.map +1 -1
  208. package/lib/commonjs/mappings/SwiperItem.js.map +1 -1
  209. package/lib/commonjs/mappings/Switch.js.map +1 -1
  210. package/lib/commonjs/mappings/Text.js.map +1 -1
  211. package/lib/commonjs/mappings/TextArea.js.map +1 -1
  212. package/lib/commonjs/mappings/TextField.js.map +1 -1
  213. package/lib/commonjs/mappings/TextInput.js.map +1 -1
  214. package/lib/commonjs/mappings/ToggleButton.js.map +1 -1
  215. package/lib/commonjs/mappings/Touchable.js.map +1 -1
  216. package/lib/commonjs/mappings/Video.js.map +1 -1
  217. package/lib/commonjs/mappings/View.js.map +1 -1
  218. package/lib/commonjs/mappings/WebView.js.map +1 -1
  219. package/lib/commonjs/styles/DarkTheme.js.map +1 -1
  220. package/lib/commonjs/styles/DefaultTheme.js.map +1 -1
  221. package/lib/commonjs/styles/fonts.js.map +1 -1
  222. package/lib/commonjs/styles/overlay.js.map +1 -1
  223. package/lib/commonjs/styles/shadow.js.map +1 -1
  224. package/lib/commonjs/theming.js.map +1 -1
  225. package/lib/commonjs/utilities.js.map +1 -1
  226. package/lib/module/Provider.js.map +1 -1
  227. package/lib/module/components/Accordion/AccordionGroup.js.map +1 -1
  228. package/lib/module/components/Accordion/AccordionItem.js +1 -1
  229. package/lib/module/components/Accordion/AccordionItem.js.map +1 -1
  230. package/lib/module/components/Accordion/index.js.map +1 -1
  231. package/lib/module/components/ActionSheet/ActionSheet.js.map +1 -1
  232. package/lib/module/components/ActionSheet/ActionSheetCancel.js.map +1 -1
  233. package/lib/module/components/ActionSheet/ActionSheetItem.js.map +1 -1
  234. package/lib/module/components/ActionSheet/index.js.map +1 -1
  235. package/lib/module/components/AnimatedCircularProgress.js +1 -1
  236. package/lib/module/components/AnimatedCircularProgress.js.map +1 -1
  237. package/lib/module/components/AspectRatio.js +1 -1
  238. package/lib/module/components/AspectRatio.js.map +1 -1
  239. package/lib/module/components/AvatarEdit.js +1 -1
  240. package/lib/module/components/AvatarEdit.js.map +1 -1
  241. package/lib/module/components/Banner.js +1 -1
  242. package/lib/module/components/Banner.js.map +1 -1
  243. package/lib/module/components/Button.js +1 -1
  244. package/lib/module/components/Button.js.map +1 -1
  245. package/lib/module/components/Card.js.map +1 -1
  246. package/lib/module/components/CardBlock.js +1 -1
  247. package/lib/module/components/CardBlock.js.map +1 -1
  248. package/lib/module/components/CardContainer.js +1 -1
  249. package/lib/module/components/CardContainer.js.map +1 -1
  250. package/lib/module/components/CardContainerRating.js +1 -1
  251. package/lib/module/components/CardContainerRating.js.map +1 -1
  252. package/lib/module/components/CardContainerShortImage.js +1 -1
  253. package/lib/module/components/CardContainerShortImage.js.map +1 -1
  254. package/lib/module/components/CardInline.js.map +1 -1
  255. package/lib/module/components/Carousel.js +1 -1
  256. package/lib/module/components/Carousel.js.map +1 -1
  257. package/lib/module/components/Checkbox/Checkbox.js +1 -1
  258. package/lib/module/components/Checkbox/Checkbox.js.map +1 -1
  259. package/lib/module/components/Checkbox/CheckboxGroup.js +1 -1
  260. package/lib/module/components/Checkbox/CheckboxGroup.js.map +1 -1
  261. package/lib/module/components/Checkbox/CheckboxGroupRow.js +1 -1
  262. package/lib/module/components/Checkbox/CheckboxGroupRow.js.map +1 -1
  263. package/lib/module/components/Checkbox/CheckboxRow.js +1 -1
  264. package/lib/module/components/Checkbox/CheckboxRow.js.map +1 -1
  265. package/lib/module/components/Checkbox/context.js.map +1 -1
  266. package/lib/module/components/Checkbox/index.js.map +1 -1
  267. package/lib/module/components/CircleImage.js +1 -1
  268. package/lib/module/components/CircleImage.js.map +1 -1
  269. package/lib/module/components/CircularProgress.js.map +1 -1
  270. package/lib/module/components/Config.js.map +1 -1
  271. package/lib/module/components/Container.js +1 -1
  272. package/lib/module/components/Container.js.map +1 -1
  273. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  274. package/lib/module/components/DatePicker/DatePicker.js.map +1 -1
  275. package/lib/module/components/DatePicker/DatePickerComponent.js.map +1 -1
  276. package/lib/module/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  277. package/lib/module/components/DatePicker/DatePickerComponentType.js.map +1 -1
  278. package/lib/module/components/DeprecatedButton.js +1 -1
  279. package/lib/module/components/DeprecatedButton.js.map +1 -1
  280. package/lib/module/components/DeprecatedCardWrapper.js +1 -1
  281. package/lib/module/components/DeprecatedCardWrapper.js.map +1 -1
  282. package/lib/module/components/DeprecatedFAB.js +1 -1
  283. package/lib/module/components/DeprecatedFAB.js.map +1 -1
  284. package/lib/module/components/Divider.js +1 -1
  285. package/lib/module/components/Divider.js.map +1 -1
  286. package/lib/module/components/Elevation.js +1 -1
  287. package/lib/module/components/Elevation.js.map +1 -1
  288. package/lib/module/components/FAB.js +1 -1
  289. package/lib/module/components/FAB.js.map +1 -1
  290. package/lib/module/components/FieldSearchBarFull.js.map +1 -1
  291. package/lib/module/components/FormRow.js +1 -1
  292. package/lib/module/components/FormRow.js.map +1 -1
  293. package/lib/module/components/Header.js.map +1 -1
  294. package/lib/module/components/HeaderLarge.js.map +1 -1
  295. package/lib/module/components/HeaderMedium.js.map +1 -1
  296. package/lib/module/components/HeaderOverline.js.map +1 -1
  297. package/lib/module/components/IconButton.js +1 -1
  298. package/lib/module/components/IconButton.js.map +1 -1
  299. package/lib/module/components/Image.js +1 -1
  300. package/lib/module/components/Image.js.map +1 -1
  301. package/lib/module/components/Justification.js +1 -1
  302. package/lib/module/components/Justification.js.map +1 -1
  303. package/lib/module/components/Layout.js +1 -1
  304. package/lib/module/components/Layout.js.map +1 -1
  305. package/lib/module/components/NumberInput.js +1 -1
  306. package/lib/module/components/NumberInput.js.map +1 -1
  307. package/lib/module/components/Picker/Picker.js.map +1 -1
  308. package/lib/module/components/Picker/PickerComponent.android.js +1 -1
  309. package/lib/module/components/Picker/PickerComponent.android.js.map +1 -1
  310. package/lib/module/components/Picker/PickerComponent.ios.js +1 -1
  311. package/lib/module/components/Picker/PickerComponent.ios.js.map +1 -1
  312. package/lib/module/components/Picker/PickerComponent.web.js +1 -1
  313. package/lib/module/components/Picker/PickerComponent.web.js.map +1 -1
  314. package/lib/module/components/Picker/PickerTypes.js.map +1 -1
  315. package/lib/module/components/Portal/Portal.js.map +1 -1
  316. package/lib/module/components/Portal/PortalConsumer.js.map +1 -1
  317. package/lib/module/components/Portal/PortalHost.js.map +1 -1
  318. package/lib/module/components/Portal/PortalManager.js.map +1 -1
  319. package/lib/module/components/ProgressBar.js +1 -1
  320. package/lib/module/components/ProgressBar.js.map +1 -1
  321. package/lib/module/components/ProgressCircle.js.map +1 -1
  322. package/lib/module/components/ProgressIndicator.js.map +1 -1
  323. package/lib/module/components/RadioButton/RadioButton.js +1 -1
  324. package/lib/module/components/RadioButton/RadioButton.js.map +1 -1
  325. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +1 -1
  326. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
  327. package/lib/module/components/RadioButton/RadioButtonGroup.js +1 -1
  328. package/lib/module/components/RadioButton/RadioButtonGroup.js.map +1 -1
  329. package/lib/module/components/RadioButton/RadioButtonRow.js +1 -1
  330. package/lib/module/components/RadioButton/RadioButtonRow.js.map +1 -1
  331. package/lib/module/components/RadioButton/context.js.map +1 -1
  332. package/lib/module/components/RadioButton/index.js.map +1 -1
  333. package/lib/module/components/ResizeMode.js +1 -1
  334. package/lib/module/components/ResizeMode.js.map +1 -1
  335. package/lib/module/components/Row.js.map +1 -1
  336. package/lib/module/components/RowBodyIcon.js.map +1 -1
  337. package/lib/module/components/RowHeadlineImageCaption.js.map +1 -1
  338. package/lib/module/components/RowHeadlineImageIcon.js.map +1 -1
  339. package/lib/module/components/ScreenContainer.js +1 -1
  340. package/lib/module/components/ScreenContainer.js.map +1 -1
  341. package/lib/module/components/Slider.js +1 -1
  342. package/lib/module/components/Slider.js.map +1 -1
  343. package/lib/module/components/StarRating.js +1 -1
  344. package/lib/module/components/StarRating.js.map +1 -1
  345. package/lib/module/components/StepIndicator.js.map +1 -1
  346. package/lib/module/components/Stepper.js.map +1 -1
  347. package/lib/module/components/Surface.js +1 -1
  348. package/lib/module/components/Surface.js.map +1 -1
  349. package/lib/module/components/Swiper/Swiper.js.map +1 -1
  350. package/lib/module/components/Swiper/SwiperItem.js.map +1 -1
  351. package/lib/module/components/Swiper/index.js.map +1 -1
  352. package/lib/module/components/Switch.js +1 -1
  353. package/lib/module/components/Switch.js.map +1 -1
  354. package/lib/module/components/Text.js +1 -1
  355. package/lib/module/components/Text.js.map +1 -1
  356. package/lib/module/components/TextField.js +1 -1
  357. package/lib/module/components/TextField.js.map +1 -1
  358. package/lib/module/components/ToggleButton.js +1 -1
  359. package/lib/module/components/ToggleButton.js.map +1 -1
  360. package/lib/module/components/Touchable.js +1 -1
  361. package/lib/module/components/Touchable.js.map +1 -1
  362. package/lib/module/components/Touchable.web.js.map +1 -1
  363. package/lib/module/components/Typography.js.map +1 -1
  364. package/lib/module/components/useAuthState.js.map +1 -1
  365. package/lib/module/constants.js.map +1 -1
  366. package/lib/module/hooks.js.map +1 -1
  367. package/lib/module/index.js +1 -2
  368. package/lib/module/index.js.map +1 -1
  369. package/lib/module/interfaces/Icon.js.map +1 -1
  370. package/lib/module/mappings/Accordion.js.map +1 -1
  371. package/lib/module/mappings/AccordionItem.js.map +1 -1
  372. package/lib/module/mappings/ActionSheet.js.map +1 -1
  373. package/lib/module/mappings/ActionSheetCancel.js.map +1 -1
  374. package/lib/module/mappings/ActionSheetItem.js.map +1 -1
  375. package/lib/module/mappings/ActivityIndicator.js.map +1 -1
  376. package/lib/module/mappings/AudioPlayer.js.map +1 -1
  377. package/lib/module/mappings/AvatarEdit.js.map +1 -1
  378. package/lib/module/mappings/Banner.js.map +1 -1
  379. package/lib/module/mappings/BlurView.js.map +1 -1
  380. package/lib/module/mappings/Button.js.map +1 -1
  381. package/lib/module/mappings/Card.js.map +1 -1
  382. package/lib/module/mappings/CardBlock.js.map +1 -1
  383. package/lib/module/mappings/CardContainer.js.map +1 -1
  384. package/lib/module/mappings/CardContainerRating.js.map +1 -1
  385. package/lib/module/mappings/CardContainerShortImage.js.map +1 -1
  386. package/lib/module/mappings/CardInline.js.map +1 -1
  387. package/lib/module/mappings/Carousel.js.map +1 -1
  388. package/lib/module/mappings/Checkbox.js.map +1 -1
  389. package/lib/module/mappings/CheckboxGroup.js.map +1 -1
  390. package/lib/module/mappings/CheckboxRow.js.map +1 -1
  391. package/lib/module/mappings/CircleImage.js.map +1 -1
  392. package/lib/module/mappings/Container.js.map +1 -1
  393. package/lib/module/mappings/CustomCode.js.map +1 -1
  394. package/lib/module/mappings/DatePicker.js.map +1 -1
  395. package/lib/module/mappings/Divider.js.map +1 -1
  396. package/lib/module/mappings/FAB.js.map +1 -1
  397. package/lib/module/mappings/Fetch.js.map +1 -1
  398. package/lib/module/mappings/FieldSearchBarFull.js.map +1 -1
  399. package/lib/module/mappings/FlatList.js.map +1 -1
  400. package/lib/module/mappings/HeaderLarge.js.map +1 -1
  401. package/lib/module/mappings/HeaderMedium.js.map +1 -1
  402. package/lib/module/mappings/HeaderOverline.js.map +1 -1
  403. package/lib/module/mappings/Icon.js.map +1 -1
  404. package/lib/module/mappings/IconButton.js.map +1 -1
  405. package/lib/module/mappings/Image.js.map +1 -1
  406. package/lib/module/mappings/ImageBackground.js.map +1 -1
  407. package/lib/module/mappings/KeyboardAvoidingView.js.map +1 -1
  408. package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -1
  409. package/lib/module/mappings/Layout.js.map +1 -1
  410. package/lib/module/mappings/LinearGradient.js.map +1 -1
  411. package/lib/module/mappings/MapCallout.js.map +1 -1
  412. package/lib/module/mappings/MapMarker.js.map +1 -1
  413. package/lib/module/mappings/MapView.js.map +1 -1
  414. package/lib/module/mappings/Modal.js.map +1 -1
  415. package/lib/module/mappings/Picker.js.map +1 -1
  416. package/lib/module/mappings/ProgressBar.js.map +1 -1
  417. package/lib/module/mappings/ProgressCircle.js.map +1 -1
  418. package/lib/module/mappings/ProgressIndicator.js.map +1 -1
  419. package/lib/module/mappings/RadioButton.js.map +1 -1
  420. package/lib/module/mappings/RadioButtonGroup.js.map +1 -1
  421. package/lib/module/mappings/RadioButtonRow.js.map +1 -1
  422. package/lib/module/mappings/RowBodyIcon.js.map +1 -1
  423. package/lib/module/mappings/RowHeadlineImageCaption.js.map +1 -1
  424. package/lib/module/mappings/RowHeadlineImageIcon.js.map +1 -1
  425. package/lib/module/mappings/SafeAreaView.js.map +1 -1
  426. package/lib/module/mappings/ScrollView.js.map +1 -1
  427. package/lib/module/mappings/Slider.js.map +1 -1
  428. package/lib/module/mappings/StarRating.js.map +1 -1
  429. package/lib/module/mappings/Stepper.js.map +1 -1
  430. package/lib/module/mappings/Surface.js.map +1 -1
  431. package/lib/module/mappings/Swiper.js.map +1 -1
  432. package/lib/module/mappings/SwiperItem.js.map +1 -1
  433. package/lib/module/mappings/Switch.js.map +1 -1
  434. package/lib/module/mappings/Text.js.map +1 -1
  435. package/lib/module/mappings/TextArea.js.map +1 -1
  436. package/lib/module/mappings/TextField.js.map +1 -1
  437. package/lib/module/mappings/TextInput.js.map +1 -1
  438. package/lib/module/mappings/ToggleButton.js.map +1 -1
  439. package/lib/module/mappings/Touchable.js.map +1 -1
  440. package/lib/module/mappings/Video.js.map +1 -1
  441. package/lib/module/mappings/View.js.map +1 -1
  442. package/lib/module/mappings/WebView.js.map +1 -1
  443. package/lib/module/styles/DarkTheme.js.map +1 -1
  444. package/lib/module/styles/DefaultTheme.js.map +1 -1
  445. package/lib/module/styles/fonts.js.map +1 -1
  446. package/lib/module/styles/overlay.js.map +1 -1
  447. package/lib/module/styles/shadow.js.map +1 -1
  448. package/lib/module/theming.js.map +1 -1
  449. package/lib/module/utilities.js.map +1 -1
  450. package/lib/typescript/src/index.d.ts +0 -1
  451. package/package.json +6 -8
  452. package/src/index.tsx +0 -1
  453. package/lib/commonjs/components/Youtube.js +0 -74
  454. package/lib/commonjs/components/Youtube.js.map +0 -1
  455. package/lib/module/components/Youtube.js +0 -60
  456. package/lib/module/components/Youtube.js.map +0 -1
  457. package/lib/typescript/src/components/Youtube.d.ts +0 -44
  458. package/src/Provider.js +0 -9
  459. package/src/components/Accordion/AccordionGroup.js +0 -44
  460. package/src/components/Accordion/AccordionItem.js +0 -32
  461. package/src/components/Accordion/index.js +0 -2
  462. package/src/components/ActionSheet/ActionSheet.js +0 -45
  463. package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
  464. package/src/components/ActionSheet/ActionSheetItem.js +0 -30
  465. package/src/components/ActionSheet/index.js +0 -3
  466. package/src/components/AnimatedCircularProgress.js +0 -43
  467. package/src/components/AspectRatio.js +0 -18
  468. package/src/components/AvatarEdit.js +0 -30
  469. package/src/components/Banner.js +0 -109
  470. package/src/components/Button.js +0 -112
  471. package/src/components/Card.js +0 -57
  472. package/src/components/CardBlock.js +0 -54
  473. package/src/components/CardContainer.js +0 -69
  474. package/src/components/CardContainerRating.js +0 -79
  475. package/src/components/CardContainerShortImage.js +0 -33
  476. package/src/components/CardInline.js +0 -36
  477. package/src/components/Carousel.js +0 -66
  478. package/src/components/Checkbox/Checkbox.js +0 -63
  479. package/src/components/Checkbox/CheckboxGroup.js +0 -21
  480. package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
  481. package/src/components/Checkbox/CheckboxRow.js +0 -78
  482. package/src/components/Checkbox/context.js +0 -14
  483. package/src/components/Checkbox/index.js +0 -3
  484. package/src/components/CircleImage.js +0 -8
  485. package/src/components/CircularProgress.js +0 -78
  486. package/src/components/Config.js +0 -63
  487. package/src/components/Container.js +0 -43
  488. package/src/components/DatePicker/DatePicker.js +0 -368
  489. package/src/components/DatePicker/DatePickerComponent.js +0 -13
  490. package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
  491. package/src/components/DatePicker/DatePickerComponentType.js +0 -1
  492. package/src/components/DeprecatedButton.js +0 -95
  493. package/src/components/DeprecatedCardWrapper.js +0 -18
  494. package/src/components/DeprecatedFAB.js +0 -115
  495. package/src/components/Divider.js +0 -13
  496. package/src/components/Elevation.js +0 -20
  497. package/src/components/FAB.js +0 -46
  498. package/src/components/FieldSearchBarFull.js +0 -53
  499. package/src/components/FormRow.js +0 -19
  500. package/src/components/Header.js +0 -44
  501. package/src/components/HeaderLarge.js +0 -7
  502. package/src/components/HeaderMedium.js +0 -7
  503. package/src/components/HeaderOverline.js +0 -7
  504. package/src/components/IconButton.js +0 -35
  505. package/src/components/Image.js +0 -47
  506. package/src/components/Justification.js +0 -1
  507. package/src/components/Layout.js +0 -50
  508. package/src/components/NumberInput.js +0 -49
  509. package/src/components/Picker/Picker.js +0 -266
  510. package/src/components/Picker/PickerComponent.android.js +0 -68
  511. package/src/components/Picker/PickerComponent.ios.js +0 -78
  512. package/src/components/Picker/PickerComponent.web.js +0 -69
  513. package/src/components/Picker/PickerTypes.js +0 -1
  514. package/src/components/Portal/Portal.js +0 -35
  515. package/src/components/Portal/PortalConsumer.js +0 -28
  516. package/src/components/Portal/PortalHost.js +0 -105
  517. package/src/components/Portal/PortalManager.js +0 -29
  518. package/src/components/ProgressBar.js +0 -118
  519. package/src/components/ProgressCircle.js +0 -13
  520. package/src/components/ProgressIndicator.js +0 -27
  521. package/src/components/RadioButton/RadioButton.js +0 -17
  522. package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
  523. package/src/components/RadioButton/RadioButtonGroup.js +0 -43
  524. package/src/components/RadioButton/RadioButtonRow.js +0 -76
  525. package/src/components/RadioButton/context.js +0 -14
  526. package/src/components/RadioButton/index.js +0 -4
  527. package/src/components/ResizeMode.js +0 -1
  528. package/src/components/Row.js +0 -48
  529. package/src/components/RowBodyIcon.js +0 -8
  530. package/src/components/RowHeadlineImageCaption.js +0 -12
  531. package/src/components/RowHeadlineImageIcon.js +0 -14
  532. package/src/components/ScreenContainer.js +0 -34
  533. package/src/components/Slider.js +0 -63
  534. package/src/components/StarRating.js +0 -50
  535. package/src/components/StepIndicator.js +0 -346
  536. package/src/components/Stepper.js +0 -39
  537. package/src/components/Surface.js +0 -32
  538. package/src/components/Swiper/Swiper.js +0 -29
  539. package/src/components/Swiper/SwiperItem.js +0 -9
  540. package/src/components/Swiper/index.js +0 -2
  541. package/src/components/Switch.js +0 -56
  542. package/src/components/Text.js +0 -28
  543. package/src/components/TextField.js +0 -420
  544. package/src/components/ToggleButton.js +0 -39
  545. package/src/components/Touchable.js +0 -12
  546. package/src/components/Touchable.web.js +0 -2
  547. package/src/components/Typography.js +0 -36
  548. package/src/components/Youtube.js +0 -38
  549. package/src/components/Youtube.tsx +0 -66
  550. package/src/components/useAuthState.js +0 -31
  551. package/src/constants.js +0 -10
  552. package/src/hooks.js +0 -12
  553. package/src/index.js +0 -53
  554. package/src/interfaces/Icon.js +0 -8
  555. package/src/mappings/Accordion.js +0 -41
  556. package/src/mappings/AccordionItem.js +0 -16
  557. package/src/mappings/ActionSheet.js +0 -13
  558. package/src/mappings/ActionSheetCancel.js +0 -19
  559. package/src/mappings/ActionSheetItem.js +0 -23
  560. package/src/mappings/ActivityIndicator.js +0 -53
  561. package/src/mappings/AudioPlayer.js +0 -20
  562. package/src/mappings/AvatarEdit.js +0 -37
  563. package/src/mappings/Banner.js +0 -32
  564. package/src/mappings/BlurView.js +0 -41
  565. package/src/mappings/Button.js +0 -56
  566. package/src/mappings/Card.js +0 -52
  567. package/src/mappings/CardBlock.js +0 -122
  568. package/src/mappings/CardContainer.js +0 -102
  569. package/src/mappings/CardContainerRating.js +0 -124
  570. package/src/mappings/CardContainerShortImage.js +0 -118
  571. package/src/mappings/CardInline.js +0 -51
  572. package/src/mappings/Carousel.js +0 -18
  573. package/src/mappings/Checkbox.js +0 -45
  574. package/src/mappings/CheckboxGroup.js +0 -25
  575. package/src/mappings/CheckboxRow.js +0 -56
  576. package/src/mappings/CircleImage.js +0 -24
  577. package/src/mappings/Container.js +0 -29
  578. package/src/mappings/CustomCode.js +0 -8
  579. package/src/mappings/DatePicker.js +0 -147
  580. package/src/mappings/Divider.js +0 -26
  581. package/src/mappings/FAB.js +0 -36
  582. package/src/mappings/Fetch.js +0 -12
  583. package/src/mappings/FieldSearchBarFull.js +0 -49
  584. package/src/mappings/FlatList.js +0 -19
  585. package/src/mappings/HeaderLarge.js +0 -28
  586. package/src/mappings/HeaderMedium.js +0 -54
  587. package/src/mappings/HeaderOverline.js +0 -54
  588. package/src/mappings/Icon.js +0 -25
  589. package/src/mappings/IconButton.js +0 -30
  590. package/src/mappings/Image.js +0 -15
  591. package/src/mappings/ImageBackground.js +0 -28
  592. package/src/mappings/KeyboardAvoidingView.js +0 -40
  593. package/src/mappings/KeyboardAwareScrollView.js +0 -49
  594. package/src/mappings/Layout.js +0 -195
  595. package/src/mappings/LinearGradient.js +0 -77
  596. package/src/mappings/MapCallout.js +0 -21
  597. package/src/mappings/MapMarker.js +0 -47
  598. package/src/mappings/MapView.js +0 -138
  599. package/src/mappings/Modal.js +0 -41
  600. package/src/mappings/Picker.js +0 -139
  601. package/src/mappings/ProgressBar.js +0 -100
  602. package/src/mappings/ProgressCircle.js +0 -108
  603. package/src/mappings/ProgressIndicator.js +0 -180
  604. package/src/mappings/RadioButton.js +0 -50
  605. package/src/mappings/RadioButtonGroup.js +0 -16
  606. package/src/mappings/RadioButtonRow.js +0 -37
  607. package/src/mappings/RowBodyIcon.js +0 -75
  608. package/src/mappings/RowHeadlineImageCaption.js +0 -167
  609. package/src/mappings/RowHeadlineImageIcon.js +0 -99
  610. package/src/mappings/SafeAreaView.js +0 -33
  611. package/src/mappings/ScrollView.js +0 -30
  612. package/src/mappings/Slider.js +0 -59
  613. package/src/mappings/StarRating.js +0 -42
  614. package/src/mappings/Stepper.js +0 -28
  615. package/src/mappings/Surface.js +0 -13
  616. package/src/mappings/Swiper.js +0 -60
  617. package/src/mappings/SwiperItem.js +0 -8
  618. package/src/mappings/Switch.js +0 -75
  619. package/src/mappings/Text.js +0 -232
  620. package/src/mappings/TextArea.js +0 -52
  621. package/src/mappings/TextField.js +0 -158
  622. package/src/mappings/TextInput.js +0 -208
  623. package/src/mappings/ToggleButton.js +0 -45
  624. package/src/mappings/Touchable.js +0 -12
  625. package/src/mappings/Video.js +0 -74
  626. package/src/mappings/View.js +0 -206
  627. package/src/mappings/WebView.js +0 -18
  628. package/src/styles/DarkTheme.js +0 -26
  629. package/src/styles/DefaultTheme.js +0 -111
  630. package/src/styles/fonts.js +0 -62
  631. package/src/styles/overlay.js +0 -60
  632. package/src/styles/shadow.js +0 -51
  633. package/src/theming.js +0 -3
  634. package/src/utilities.js +0 -102
@@ -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
- });
@@ -1,29 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- /**
4
- * Portal host is the component which actually renders all Portals.
5
- */
6
- export default class PortalManager extends React.PureComponent {
7
- state = {
8
- portals: [],
9
- };
10
- mount = (key, children) => {
11
- this.setState((state) => ({
12
- portals: [...state.portals, { key, children }],
13
- }));
14
- };
15
- update = (key, children) => this.setState((state) => ({
16
- portals: state.portals.map((item) => {
17
- if (item.key === key) {
18
- return { ...item, children };
19
- }
20
- return item;
21
- }),
22
- }));
23
- unmount = (key) => this.setState((state) => ({
24
- portals: state.portals.filter((item) => item.key !== key),
25
- }));
26
- render() {
27
- return this.state.portals.map(({ key, children }) => (React.createElement(View, { key: key, collapsable: false /* Need collapsable=false here to clip the elevations, otherwise they appear above sibling components */, pointerEvents: "box-none", style: StyleSheet.absoluteFill }, children)));
28
- }
29
- }
@@ -1,118 +0,0 @@
1
- import React, { Component } from "react";
2
- import { Animated, Easing, View, I18nManager, } from "react-native";
3
- const INDETERMINATE_WIDTH_FACTOR = 0.3;
4
- const BAR_WIDTH_ZERO_POSITION = INDETERMINATE_WIDTH_FACTOR / (1 + INDETERMINATE_WIDTH_FACTOR);
5
- export default class ProgressBar extends Component {
6
- constructor(props) {
7
- super(props);
8
- const { progress: progressP = 0, indeterminate = false } = props;
9
- const progress = Math.min(Math.max(progressP, 0), 1);
10
- this.state = {
11
- width: 0,
12
- progress: new Animated.Value(indeterminate ? INDETERMINATE_WIDTH_FACTOR : progress),
13
- animationValue: new Animated.Value(BAR_WIDTH_ZERO_POSITION),
14
- };
15
- }
16
- componentDidMount() {
17
- const { indeterminate = false } = this.props;
18
- if (indeterminate) {
19
- this.animate();
20
- }
21
- }
22
- componentDidUpdate(prevProps) {
23
- const { indeterminate = false, useNativeDriver = false, progress: progressP = 0, animationType = "spring", animationConfig = { bounciness: 0 }, animated = true, } = this.props;
24
- if (prevProps.indeterminate !== indeterminate) {
25
- if (indeterminate) {
26
- this.animate();
27
- }
28
- else {
29
- Animated.spring(this.state.animationValue, {
30
- toValue: BAR_WIDTH_ZERO_POSITION,
31
- useNativeDriver,
32
- }).start();
33
- }
34
- }
35
- if (prevProps.indeterminate !== indeterminate ||
36
- prevProps.progress !== progressP) {
37
- const progress = this.props.indeterminate
38
- ? INDETERMINATE_WIDTH_FACTOR
39
- : Math.min(Math.max(progressP, 0), 1);
40
- if (animated) {
41
- Animated[animationType](this.state.progress, {
42
- ...animationConfig,
43
- toValue: progress,
44
- velocity: 0,
45
- useNativeDriver,
46
- }).start();
47
- }
48
- else {
49
- this.state.progress.setValue(progress);
50
- }
51
- }
52
- }
53
- handleLayout = (event) => {
54
- const { width = 150, onLayout } = this.props;
55
- if (!width) {
56
- this.setState({ width: event.nativeEvent.layout.width });
57
- }
58
- if (onLayout) {
59
- onLayout(event);
60
- }
61
- };
62
- animate() {
63
- const { useNativeDriver = false, indeterminateAnimationDuration = 1000 } = this.props;
64
- this.state.animationValue.setValue(0);
65
- Animated.timing(this.state.animationValue, {
66
- toValue: 1,
67
- duration: indeterminateAnimationDuration,
68
- easing: Easing.linear,
69
- isInteraction: false,
70
- useNativeDriver,
71
- }).start((endState) => {
72
- if (endState.finished) {
73
- this.animate();
74
- }
75
- });
76
- }
77
- render() {
78
- const { borderColor, borderRadius = 4, borderWidth = 1, children, color = "rgba(0, 122, 255, 1)", style, unfilledColor, width = 150, ...restProps } = this.props;
79
- const innerWidth = Math.max(0, width || this.state.width) - borderWidth * 2;
80
- const containerStyle = {
81
- width,
82
- borderWidth,
83
- borderColor: borderColor || color,
84
- borderRadius,
85
- overflow: "hidden",
86
- backgroundColor: unfilledColor,
87
- };
88
- const progressStyle = {
89
- backgroundColor: color,
90
- // Always take up full height of container.
91
- height: "100%",
92
- transform: [
93
- {
94
- translateX: this.state.animationValue.interpolate({
95
- inputRange: [0, 1],
96
- outputRange: [innerWidth * -INDETERMINATE_WIDTH_FACTOR, innerWidth],
97
- }),
98
- },
99
- {
100
- translateX: this.state.progress.interpolate({
101
- inputRange: [0, 1],
102
- outputRange: [innerWidth / (I18nManager.isRTL ? 2 : -2), 0],
103
- }),
104
- },
105
- {
106
- // Interpolation a temp workaround for https://github.com/facebook/react-native/issues/6278
107
- scaleX: this.state.progress.interpolate({
108
- inputRange: [0, 1],
109
- outputRange: [0.0001, 1],
110
- }),
111
- },
112
- ],
113
- };
114
- return (React.createElement(View, { style: [containerStyle, style], onLayout: this.handleLayout, ...restProps },
115
- React.createElement(Animated.View, { style: progressStyle }),
116
- children));
117
- }
118
- }
@@ -1,13 +0,0 @@
1
- import * as React from "react";
2
- import { Text } from "react-native";
3
- import AnimatedCircularProgress from "./AnimatedCircularProgress";
4
- import { withTheme } from "../theming";
5
- const ProgressCircle = ({ progress = 0.5, style, color = "primary", size = 100, showsText = true, unfilledColor, strokeCap = "butt", textStyle, thickness = 1, theme, }) => {
6
- const progressNum = Math.round(progress * 100);
7
- const tintColor = color || theme.colors.primary;
8
- const backgroundColor = unfilledColor || theme.colors.secondary;
9
- return (React.createElement(AnimatedCircularProgress, { size: size, width: thickness, backgroundWidth: thickness, fill: progressNum, tintColor: tintColor, backgroundColor: backgroundColor, rotation: 0, lineCap: strokeCap, style: style }, (fill) => showsText ? (React.createElement(Text, { style: [{ fontSize: size * 0.275, color: tintColor }, textStyle] },
10
- Math.round(fill),
11
- "%")) : null));
12
- };
13
- export default withTheme(ProgressCircle);
@@ -1,27 +0,0 @@
1
- import * as React from "react";
2
- import StepIndicator from "./StepIndicator";
3
- import { withTheme } from "../theming";
4
- const ProgressIndicator = ({ numberOfSteps, currentStep, currentStepStrokeWidth = 3, stepStrokeCurrentColor = "primary", stepIndicatorSize, currentStepIndicatorSize, stepIndicatorCurrentColor, stepIndicatorLabelCurrentColor, stepIndicatorLabelFontSize = 12, stepNumberFinishedColor = "strongInverse", stepNumberUnfinishedColor = "primary", unfinishedColor = "light", finishedColor = "primary", theme, }) => {
5
- const currentPosition = currentStep - 1;
6
- return (React.createElement(StepIndicator, { stepCount: numberOfSteps, currentPosition: currentPosition, customStyles: {
7
- stepIndicatorSize,
8
- currentStepIndicatorSize: currentStepIndicatorSize
9
- ? currentStepIndicatorSize
10
- : stepIndicatorSize,
11
- stepStrokeFinishedColor: finishedColor,
12
- stepStrokeUnFinishedColor: unfinishedColor,
13
- separatorFinishedColor: finishedColor,
14
- separatorUnFinishedColor: unfinishedColor,
15
- stepIndicatorFinishedColor: finishedColor,
16
- stepIndicatorUnFinishedColor: unfinishedColor,
17
- currentStepStrokeWidth,
18
- stepStrokeCurrentColor: stepStrokeCurrentColor || stepIndicatorCurrentColor,
19
- stepIndicatorLabelUnFinishedColor: stepNumberUnfinishedColor,
20
- stepIndicatorLabelFinishedColor: stepNumberFinishedColor,
21
- stepIndicatorCurrentColor: stepIndicatorCurrentColor || unfinishedColor,
22
- stepIndicatorLabelCurrentColor: stepIndicatorLabelCurrentColor || stepNumberUnfinishedColor,
23
- stepIndicatorLabelFontSize,
24
- labelFontFamily: theme.typography.body1.fontFamily,
25
- } }));
26
- };
27
- export default withTheme(ProgressIndicator);
@@ -1,17 +0,0 @@
1
- import * as React from "react";
2
- import Config from "../Config";
3
- import IconButton from "../IconButton";
4
- import { getValueForRadioButton } from "../../utilities";
5
- import { useRadioButtonGroupContext } from "./context";
6
- const RadioButton = ({ Icon, disabled = false, color, value = "", selected, unselectedColor, onPress, size = Config.radioButtonSize, selectedIcon = "MaterialIcons/radio-button-checked", unselectedIcon = "MaterialIcons/radio-button-unchecked", style, ...rest }) => {
7
- const { value: contextValue, onValueChange } = useRadioButtonGroupContext();
8
- const realValue = getValueForRadioButton(value);
9
- const realContextValue = getValueForRadioButton(contextValue);
10
- const isSelected = selected ?? realContextValue === realValue;
11
- const handlePress = () => {
12
- onPress?.(realValue);
13
- onValueChange?.(realValue);
14
- };
15
- return (React.createElement(IconButton, { Icon: Icon, icon: isSelected ? selectedIcon : unselectedIcon, color: isSelected ? color : unselectedColor, disabled: disabled, onPress: handlePress, size: size, style: style, ...rest }));
16
- };
17
- export default RadioButton;
@@ -1,17 +0,0 @@
1
- import React from "react";
2
- import { View } from "react-native";
3
- import Text from "../Text";
4
- import { withTheme } from "../../theming";
5
- import RadioButtonGroup from "./RadioButtonGroup";
6
- const RadioButtonFieldGroup = ({ label, children, theme, labelStyle, style, ...rest }) => {
7
- return (React.createElement(View, { style: style },
8
- React.createElement(Text, { style: [
9
- {
10
- fontSize: theme.typography.headline4.fontSize,
11
- color: theme.typography.headline4.color,
12
- },
13
- labelStyle,
14
- ] }, label),
15
- React.createElement(RadioButtonGroup, { theme: theme, ...rest }, children)));
16
- };
17
- export default withTheme(RadioButtonFieldGroup);
@@ -1,43 +0,0 @@
1
- import * as React from "react";
2
- import { View } from "react-native";
3
- import { getValueForRadioButton } from "../../utilities";
4
- import { radioButtonGroupContext, Direction } from "./context";
5
- const { Provider } = radioButtonGroupContext;
6
- const RadioButtonGroup = ({ direction = Direction.Vertical, value = "", onValueChange, defaultValue, style, children, ...rest }) => {
7
- const [internalValue, setInternalValue] = React.useState("");
8
- React.useEffect(() => {
9
- if (value != null) {
10
- const realValue = getValueForRadioButton(value);
11
- setInternalValue(realValue);
12
- }
13
- }, [value]);
14
- React.useEffect(() => {
15
- if (defaultValue != null) {
16
- const realDefaultValue = getValueForRadioButton(defaultValue);
17
- setInternalValue(realDefaultValue);
18
- }
19
- }, [defaultValue]);
20
- const handleValueChange = (newValue) => {
21
- const realNewValue = getValueForRadioButton(newValue);
22
- setInternalValue(realNewValue);
23
- onValueChange?.(realNewValue);
24
- };
25
- const _containerStyle = [
26
- {
27
- flexDirection: direction === Direction.Horizontal ? "row" : "column",
28
- },
29
- ];
30
- if (direction !== Direction.Vertical) {
31
- _containerStyle.push({
32
- alignItems: "center",
33
- });
34
- }
35
- return (React.createElement(View, { style: [{ minHeight: 40 }, style], ...rest },
36
- React.createElement(Provider, { value: {
37
- value: internalValue,
38
- onValueChange: handleValueChange,
39
- direction,
40
- } },
41
- React.createElement(View, { style: _containerStyle }, children))));
42
- };
43
- export default RadioButtonGroup;