@draftbit/core 47.0.0-df8093.2 → 47.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 (982) hide show
  1. package/lib/commonjs/Provider.js +1 -2
  2. package/lib/commonjs/components/Accordion/AccordionGroup.js +1 -2
  3. package/lib/commonjs/components/Accordion/AccordionItem.js +1 -2
  4. package/lib/commonjs/components/Accordion/index.js +1 -2
  5. package/lib/commonjs/components/ActionSheet/ActionSheet.js +1 -2
  6. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js +1 -2
  7. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js +1 -2
  8. package/lib/commonjs/components/ActionSheet/index.js +1 -2
  9. package/lib/commonjs/components/AnimatedCircularProgress.js +66 -0
  10. package/lib/commonjs/components/AspectRatio.js +50 -0
  11. package/lib/commonjs/components/AvatarEdit.js +59 -0
  12. package/lib/commonjs/components/Banner.js +1 -2
  13. package/lib/commonjs/components/Button.js +1 -2
  14. package/lib/commonjs/components/Card.js +137 -0
  15. package/lib/commonjs/components/CardBlock.js +106 -0
  16. package/lib/commonjs/components/CardContainer.js +129 -0
  17. package/lib/commonjs/components/CardContainerRating.js +133 -0
  18. package/lib/commonjs/components/CardContainerShortImage.js +84 -0
  19. package/lib/commonjs/components/CardInline.js +91 -0
  20. package/lib/commonjs/components/Carousel.js +130 -0
  21. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -2
  22. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +1 -2
  23. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -2
  24. package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -2
  25. package/lib/commonjs/components/Checkbox/context.js +1 -2
  26. package/lib/commonjs/components/Checkbox/index.js +1 -2
  27. package/lib/commonjs/components/CircleImage.js +35 -0
  28. package/lib/commonjs/components/CircularProgress.js +112 -0
  29. package/lib/commonjs/components/Config.js +4 -5
  30. package/lib/commonjs/components/Container.js +93 -0
  31. package/lib/commonjs/components/DatePicker/DatePicker.js +23 -14
  32. package/lib/commonjs/components/DatePicker/DatePickerComponent.js +1 -2
  33. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +1 -2
  34. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js +1 -2
  35. package/lib/commonjs/components/DeprecatedButton.js +1 -2
  36. package/lib/commonjs/components/DeprecatedCardWrapper.js +40 -0
  37. package/lib/commonjs/components/DeprecatedFAB.js +158 -0
  38. package/lib/commonjs/components/Divider.js +30 -0
  39. package/lib/commonjs/components/Elevation.js +1 -2
  40. package/lib/commonjs/components/FAB.js +82 -0
  41. package/lib/commonjs/components/FieldSearchBarFull.js +97 -0
  42. package/lib/commonjs/components/FormRow.js +1 -2
  43. package/lib/commonjs/components/Header.js +82 -0
  44. package/lib/commonjs/components/HeaderLarge.js +38 -0
  45. package/lib/commonjs/components/HeaderMedium.js +38 -0
  46. package/lib/commonjs/components/HeaderOverline.js +39 -0
  47. package/lib/commonjs/components/IconButton.js +1 -2
  48. package/lib/commonjs/components/Image.js +81 -0
  49. package/lib/commonjs/components/Justification.js +1 -0
  50. package/lib/commonjs/components/Layout.js +1 -2
  51. package/lib/commonjs/components/NumberInput.js +1 -2
  52. package/lib/commonjs/components/Picker/Picker.js +5 -6
  53. package/lib/commonjs/components/Picker/PickerComponent.android.js +3 -4
  54. package/lib/commonjs/components/Picker/PickerComponent.ios.js +3 -4
  55. package/lib/commonjs/components/Picker/PickerComponent.web.js +3 -4
  56. package/lib/commonjs/components/Picker/PickerTypes.js +1 -2
  57. package/lib/commonjs/components/Portal/Portal.js +1 -2
  58. package/lib/commonjs/components/Portal/PortalConsumer.js +1 -2
  59. package/lib/commonjs/components/Portal/PortalHost.js +1 -2
  60. package/lib/commonjs/components/Portal/PortalManager.js +1 -2
  61. package/lib/commonjs/components/ProgressBar.js +158 -0
  62. package/lib/commonjs/components/ProgressCircle.js +48 -0
  63. package/lib/commonjs/components/ProgressIndicator.js +55 -0
  64. package/lib/commonjs/components/RadioButton/RadioButton.js +2 -3
  65. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +1 -2
  66. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +1 -2
  67. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +2 -3
  68. package/lib/commonjs/components/RadioButton/context.js +1 -2
  69. package/lib/commonjs/components/RadioButton/index.js +1 -2
  70. package/lib/commonjs/components/ResizeMode.js +1 -0
  71. package/lib/commonjs/components/Row.js +73 -0
  72. package/lib/commonjs/components/RowBodyIcon.js +45 -0
  73. package/lib/commonjs/components/RowHeadlineImageCaption.js +45 -0
  74. package/lib/commonjs/components/RowHeadlineImageIcon.js +51 -0
  75. package/lib/commonjs/components/SVG.js +1 -2
  76. package/lib/commonjs/components/ScreenContainer.js +1 -2
  77. package/lib/commonjs/components/Slider.js +1 -2
  78. package/lib/commonjs/components/StarRating.js +1 -2
  79. package/lib/commonjs/components/StepIndicator.js +385 -0
  80. package/lib/commonjs/components/Stepper.js +9 -7
  81. package/lib/commonjs/components/Surface.js +1 -2
  82. package/lib/commonjs/components/Swiper/Swiper.js +1 -2
  83. package/lib/commonjs/components/Swiper/SwiperItem.js +1 -2
  84. package/lib/commonjs/components/Swiper/index.js +1 -2
  85. package/lib/commonjs/components/Switch.js +1 -2
  86. package/lib/commonjs/components/Text.js +1 -2
  87. package/lib/commonjs/components/TextField.js +1 -2
  88. package/lib/commonjs/components/ToggleButton.js +71 -0
  89. package/lib/commonjs/components/Touchable.js +1 -2
  90. package/lib/commonjs/components/Touchable.web.js +1 -2
  91. package/lib/commonjs/components/Typography.js +58 -0
  92. package/lib/commonjs/components/useAuthState.js +28 -0
  93. package/lib/commonjs/constants.js +1 -2
  94. package/lib/commonjs/hooks.js +1 -2
  95. package/lib/commonjs/index.js +194 -16
  96. package/lib/commonjs/interfaces/Icon.js +1 -2
  97. package/lib/commonjs/mappings/Accordion.js +1 -2
  98. package/lib/commonjs/mappings/AccordionItem.js +1 -2
  99. package/lib/commonjs/mappings/ActionSheet.js +1 -2
  100. package/lib/commonjs/mappings/ActionSheetCancel.js +1 -2
  101. package/lib/commonjs/mappings/ActionSheetItem.js +1 -2
  102. package/lib/commonjs/mappings/ActivityIndicator.js +1 -2
  103. package/lib/commonjs/mappings/AudioPlayer.js +33 -4
  104. package/lib/commonjs/mappings/AvatarEdit.js +45 -0
  105. package/lib/commonjs/mappings/Banner.js +39 -0
  106. package/lib/commonjs/mappings/BlurView.js +1 -2
  107. package/lib/commonjs/mappings/Button.js +1 -2
  108. package/lib/commonjs/mappings/Card.js +60 -0
  109. package/lib/commonjs/mappings/CardBlock.js +126 -0
  110. package/lib/commonjs/mappings/CardContainer.js +108 -0
  111. package/lib/commonjs/mappings/CardContainerRating.js +130 -0
  112. package/lib/commonjs/mappings/CardContainerShortImage.js +124 -0
  113. package/lib/commonjs/mappings/CardInline.js +59 -0
  114. package/lib/commonjs/mappings/Carousel.js +24 -0
  115. package/lib/commonjs/mappings/Checkbox.js +1 -2
  116. package/lib/commonjs/mappings/CheckboxGroup.js +1 -2
  117. package/lib/commonjs/mappings/CheckboxRow.js +1 -2
  118. package/lib/commonjs/mappings/CircleImage.js +32 -0
  119. package/lib/commonjs/mappings/Container.js +37 -0
  120. package/lib/commonjs/mappings/CustomCode.js +1 -2
  121. package/lib/commonjs/mappings/DatePicker.js +24 -12
  122. package/lib/commonjs/mappings/Divider.js +32 -0
  123. package/lib/commonjs/mappings/FAB.js +44 -0
  124. package/lib/commonjs/mappings/Fetch.js +1 -2
  125. package/lib/commonjs/mappings/FieldSearchBarFull.js +56 -0
  126. package/lib/commonjs/mappings/FlashList.js +1 -2
  127. package/lib/commonjs/mappings/FlatList.js +1 -2
  128. package/lib/commonjs/mappings/HeaderLarge.js +34 -0
  129. package/lib/commonjs/mappings/HeaderMedium.js +60 -0
  130. package/lib/commonjs/mappings/HeaderOverline.js +60 -0
  131. package/lib/commonjs/mappings/Icon.js +1 -2
  132. package/lib/commonjs/mappings/IconButton.js +1 -2
  133. package/lib/commonjs/mappings/Image.js +1 -2
  134. package/lib/commonjs/mappings/ImageBackground.js +1 -2
  135. package/lib/commonjs/mappings/KeyboardAvoidingView.js +1 -2
  136. package/lib/commonjs/mappings/KeyboardAwareScrollView.js +1 -2
  137. package/lib/commonjs/mappings/Layout.js +1 -2
  138. package/lib/commonjs/mappings/LinearGradient.js +1 -2
  139. package/lib/commonjs/mappings/MapCallout.js +1 -2
  140. package/lib/commonjs/mappings/MapMarker.js +1 -2
  141. package/lib/commonjs/mappings/MapView.js +1 -2
  142. package/lib/commonjs/mappings/Modal.js +1 -2
  143. package/lib/commonjs/mappings/NumberInput.js +1 -2
  144. package/lib/commonjs/mappings/Picker.js +1 -2
  145. package/lib/commonjs/mappings/ProgressBar.js +106 -0
  146. package/lib/commonjs/mappings/ProgressCircle.js +116 -0
  147. package/lib/commonjs/mappings/ProgressIndicator.js +188 -0
  148. package/lib/commonjs/mappings/RadioButton.js +1 -2
  149. package/lib/commonjs/mappings/RadioButtonGroup.js +1 -2
  150. package/lib/commonjs/mappings/RadioButtonRow.js +1 -2
  151. package/lib/commonjs/mappings/RowBodyIcon.js +79 -0
  152. package/lib/commonjs/mappings/RowHeadlineImageCaption.js +169 -0
  153. package/lib/commonjs/mappings/RowHeadlineImageIcon.js +99 -0
  154. package/lib/commonjs/mappings/SVG.js +1 -2
  155. package/lib/commonjs/mappings/SafeAreaView.js +1 -2
  156. package/lib/commonjs/mappings/ScrollView.js +1 -2
  157. package/lib/commonjs/mappings/Slider.js +1 -2
  158. package/lib/commonjs/mappings/StarRating.js +1 -2
  159. package/lib/commonjs/mappings/Stepper.js +2 -3
  160. package/lib/commonjs/mappings/Surface.js +1 -2
  161. package/lib/commonjs/mappings/Swiper.js +1 -2
  162. package/lib/commonjs/mappings/SwiperItem.js +1 -2
  163. package/lib/commonjs/mappings/Switch.js +1 -2
  164. package/lib/commonjs/mappings/Text.js +1 -2
  165. package/lib/commonjs/mappings/TextArea.js +15 -5
  166. package/lib/commonjs/mappings/TextField.js +15 -6
  167. package/lib/commonjs/mappings/TextInput.js +15 -5
  168. package/lib/commonjs/mappings/ToggleButton.js +53 -0
  169. package/lib/commonjs/mappings/Touchable.js +2 -3
  170. package/lib/commonjs/mappings/Video.js +1 -2
  171. package/lib/commonjs/mappings/View.js +1 -2
  172. package/lib/commonjs/mappings/WebView.js +1 -2
  173. package/lib/commonjs/styles/DarkTheme.js +1 -2
  174. package/lib/commonjs/styles/DefaultTheme.js +1 -2
  175. package/lib/commonjs/styles/fonts.js +1 -2
  176. package/lib/commonjs/styles/overlay.js +1 -2
  177. package/lib/commonjs/styles/shadow.js +1 -2
  178. package/lib/commonjs/theming.js +1 -2
  179. package/lib/commonjs/utilities.js +2 -3
  180. package/lib/module/Provider.js +1 -2
  181. package/lib/module/components/Accordion/AccordionGroup.js +1 -2
  182. package/lib/module/components/Accordion/AccordionItem.js +1 -2
  183. package/lib/module/components/Accordion/index.js +1 -2
  184. package/lib/module/components/ActionSheet/ActionSheet.js +1 -2
  185. package/lib/module/components/ActionSheet/ActionSheetCancel.js +1 -2
  186. package/lib/module/components/ActionSheet/ActionSheetItem.js +1 -2
  187. package/lib/module/components/ActionSheet/index.js +1 -2
  188. package/lib/module/components/AnimatedCircularProgress.js +56 -0
  189. package/lib/module/components/AspectRatio.js +42 -0
  190. package/lib/module/components/AvatarEdit.js +49 -0
  191. package/lib/module/components/Banner.js +1 -2
  192. package/lib/module/components/Button.js +1 -2
  193. package/lib/module/components/Card.js +128 -0
  194. package/lib/module/components/CardBlock.js +98 -0
  195. package/lib/module/components/CardContainer.js +121 -0
  196. package/lib/module/components/CardContainerRating.js +125 -0
  197. package/lib/module/components/CardContainerShortImage.js +76 -0
  198. package/lib/module/components/CardInline.js +82 -0
  199. package/lib/module/components/Carousel.js +120 -0
  200. package/lib/module/components/Checkbox/Checkbox.js +1 -2
  201. package/lib/module/components/Checkbox/CheckboxGroup.js +1 -2
  202. package/lib/module/components/Checkbox/CheckboxGroupRow.js +1 -2
  203. package/lib/module/components/Checkbox/CheckboxRow.js +1 -2
  204. package/lib/module/components/Checkbox/context.js +1 -2
  205. package/lib/module/components/Checkbox/index.js +1 -2
  206. package/lib/module/components/CircleImage.js +25 -0
  207. package/lib/module/components/CircularProgress.js +104 -0
  208. package/lib/module/components/Config.js +4 -5
  209. package/lib/module/components/Container.js +83 -0
  210. package/lib/module/components/DatePicker/DatePicker.js +23 -14
  211. package/lib/module/components/DatePicker/DatePickerComponent.js +1 -2
  212. package/lib/module/components/DatePicker/DatePickerComponent.web.js +1 -2
  213. package/lib/module/components/DatePicker/DatePickerComponentType.js +1 -2
  214. package/lib/module/components/DeprecatedButton.js +1 -2
  215. package/lib/module/components/DeprecatedCardWrapper.js +32 -0
  216. package/lib/module/components/DeprecatedFAB.js +148 -0
  217. package/lib/module/components/Divider.js +21 -0
  218. package/lib/module/components/Elevation.js +1 -2
  219. package/lib/module/components/FAB.js +73 -0
  220. package/lib/module/components/FieldSearchBarFull.js +87 -0
  221. package/lib/module/components/FormRow.js +1 -2
  222. package/lib/module/components/Header.js +72 -0
  223. package/lib/module/components/HeaderLarge.js +28 -0
  224. package/lib/module/components/HeaderMedium.js +28 -0
  225. package/lib/module/components/HeaderOverline.js +29 -0
  226. package/lib/module/components/IconButton.js +1 -2
  227. package/lib/module/components/Image.js +74 -0
  228. package/lib/module/components/Justification.js +0 -0
  229. package/lib/module/components/Layout.js +1 -2
  230. package/lib/module/components/NumberInput.js +1 -2
  231. package/lib/module/components/Picker/Picker.js +4 -5
  232. package/lib/module/components/Picker/PickerComponent.android.js +3 -4
  233. package/lib/module/components/Picker/PickerComponent.ios.js +3 -4
  234. package/lib/module/components/Picker/PickerComponent.web.js +3 -4
  235. package/lib/module/components/Picker/PickerTypes.js +1 -2
  236. package/lib/module/components/Portal/Portal.js +1 -2
  237. package/lib/module/components/Portal/PortalConsumer.js +1 -2
  238. package/lib/module/components/Portal/PortalHost.js +1 -2
  239. package/lib/module/components/Portal/PortalManager.js +1 -2
  240. package/lib/module/components/ProgressBar.js +149 -0
  241. package/lib/module/components/ProgressCircle.js +38 -0
  242. package/lib/module/components/ProgressIndicator.js +45 -0
  243. package/lib/module/components/RadioButton/RadioButton.js +2 -3
  244. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +1 -2
  245. package/lib/module/components/RadioButton/RadioButtonGroup.js +1 -2
  246. package/lib/module/components/RadioButton/RadioButtonRow.js +2 -3
  247. package/lib/module/components/RadioButton/context.js +1 -2
  248. package/lib/module/components/RadioButton/index.js +1 -2
  249. package/lib/module/components/ResizeMode.js +0 -0
  250. package/lib/module/components/Row.js +63 -0
  251. package/lib/module/components/RowBodyIcon.js +35 -0
  252. package/lib/module/components/RowHeadlineImageCaption.js +35 -0
  253. package/lib/module/components/RowHeadlineImageIcon.js +41 -0
  254. package/lib/module/components/SVG.js +1 -2
  255. package/lib/module/components/ScreenContainer.js +1 -2
  256. package/lib/module/components/Slider.js +1 -2
  257. package/lib/module/components/StarRating.js +1 -2
  258. package/lib/module/components/StepIndicator.js +377 -0
  259. package/lib/module/components/Stepper.js +9 -7
  260. package/lib/module/components/Surface.js +1 -2
  261. package/lib/module/components/Swiper/Swiper.js +1 -2
  262. package/lib/module/components/Swiper/SwiperItem.js +1 -2
  263. package/lib/module/components/Swiper/index.js +1 -2
  264. package/lib/module/components/Switch.js +1 -2
  265. package/lib/module/components/Text.js +1 -2
  266. package/lib/module/components/TextField.js +1 -2
  267. package/lib/module/components/ToggleButton.js +61 -0
  268. package/lib/module/components/Touchable.js +1 -2
  269. package/lib/module/components/Touchable.web.js +1 -2
  270. package/lib/module/components/Typography.js +48 -0
  271. package/lib/module/components/useAuthState.js +19 -0
  272. package/lib/module/constants.js +1 -2
  273. package/lib/module/hooks.js +1 -2
  274. package/lib/module/index.js +41 -32
  275. package/lib/module/interfaces/Icon.js +1 -2
  276. package/lib/module/mappings/Accordion.js +1 -2
  277. package/lib/module/mappings/AccordionItem.js +1 -2
  278. package/lib/module/mappings/ActionSheet.js +1 -2
  279. package/lib/module/mappings/ActionSheetCancel.js +1 -2
  280. package/lib/module/mappings/ActionSheetItem.js +1 -2
  281. package/lib/module/mappings/ActivityIndicator.js +1 -2
  282. package/lib/module/mappings/AudioPlayer.js +34 -5
  283. package/lib/module/mappings/AvatarEdit.js +38 -0
  284. package/lib/module/mappings/Banner.js +32 -0
  285. package/lib/module/mappings/BlurView.js +1 -2
  286. package/lib/module/mappings/Button.js +1 -2
  287. package/lib/module/mappings/Card.js +53 -0
  288. package/lib/module/mappings/CardBlock.js +119 -0
  289. package/lib/module/mappings/CardContainer.js +101 -0
  290. package/lib/module/mappings/CardContainerRating.js +123 -0
  291. package/lib/module/mappings/CardContainerShortImage.js +117 -0
  292. package/lib/module/mappings/CardInline.js +52 -0
  293. package/lib/module/mappings/Carousel.js +17 -0
  294. package/lib/module/mappings/Checkbox.js +1 -2
  295. package/lib/module/mappings/CheckboxGroup.js +1 -2
  296. package/lib/module/mappings/CheckboxRow.js +1 -2
  297. package/lib/module/mappings/CircleImage.js +25 -0
  298. package/lib/module/mappings/Container.js +30 -0
  299. package/lib/module/mappings/CustomCode.js +1 -2
  300. package/lib/module/mappings/DatePicker.js +25 -13
  301. package/lib/module/mappings/Divider.js +25 -0
  302. package/lib/module/mappings/FAB.js +37 -0
  303. package/lib/module/mappings/Fetch.js +1 -2
  304. package/lib/module/mappings/FieldSearchBarFull.js +49 -0
  305. package/lib/module/mappings/FlashList.js +1 -2
  306. package/lib/module/mappings/FlatList.js +1 -2
  307. package/lib/module/mappings/HeaderLarge.js +27 -0
  308. package/lib/module/mappings/HeaderMedium.js +53 -0
  309. package/lib/module/mappings/HeaderOverline.js +53 -0
  310. package/lib/module/mappings/Icon.js +1 -2
  311. package/lib/module/mappings/IconButton.js +1 -2
  312. package/lib/module/mappings/Image.js +1 -2
  313. package/lib/module/mappings/ImageBackground.js +1 -2
  314. package/lib/module/mappings/KeyboardAvoidingView.js +1 -2
  315. package/lib/module/mappings/KeyboardAwareScrollView.js +1 -2
  316. package/lib/module/mappings/Layout.js +1 -2
  317. package/lib/module/mappings/LinearGradient.js +1 -2
  318. package/lib/module/mappings/MapCallout.js +1 -2
  319. package/lib/module/mappings/MapMarker.js +1 -2
  320. package/lib/module/mappings/MapView.js +1 -2
  321. package/lib/module/mappings/Modal.js +1 -2
  322. package/lib/module/mappings/NumberInput.js +1 -2
  323. package/lib/module/mappings/Picker.js +1 -2
  324. package/lib/module/mappings/ProgressBar.js +99 -0
  325. package/lib/module/mappings/ProgressCircle.js +109 -0
  326. package/lib/module/mappings/ProgressIndicator.js +181 -0
  327. package/lib/module/mappings/RadioButton.js +1 -2
  328. package/lib/module/mappings/RadioButtonGroup.js +1 -2
  329. package/lib/module/mappings/RadioButtonRow.js +1 -2
  330. package/lib/module/mappings/RowBodyIcon.js +72 -0
  331. package/lib/module/mappings/RowHeadlineImageCaption.js +162 -0
  332. package/lib/module/mappings/RowHeadlineImageIcon.js +92 -0
  333. package/lib/module/mappings/SVG.js +1 -2
  334. package/lib/module/mappings/SafeAreaView.js +1 -2
  335. package/lib/module/mappings/ScrollView.js +1 -2
  336. package/lib/module/mappings/Slider.js +1 -2
  337. package/lib/module/mappings/StarRating.js +1 -2
  338. package/lib/module/mappings/Stepper.js +3 -4
  339. package/lib/module/mappings/Surface.js +1 -2
  340. package/lib/module/mappings/Swiper.js +1 -2
  341. package/lib/module/mappings/SwiperItem.js +1 -2
  342. package/lib/module/mappings/Switch.js +1 -2
  343. package/lib/module/mappings/Text.js +1 -2
  344. package/lib/module/mappings/TextArea.js +16 -6
  345. package/lib/module/mappings/TextField.js +15 -6
  346. package/lib/module/mappings/TextInput.js +16 -6
  347. package/lib/module/mappings/ToggleButton.js +46 -0
  348. package/lib/module/mappings/Touchable.js +2 -3
  349. package/lib/module/mappings/Video.js +1 -2
  350. package/lib/module/mappings/View.js +1 -2
  351. package/lib/module/mappings/WebView.js +1 -2
  352. package/lib/module/styles/DarkTheme.js +1 -2
  353. package/lib/module/styles/DefaultTheme.js +1 -2
  354. package/lib/module/styles/fonts.js +1 -2
  355. package/lib/module/styles/overlay.js +1 -2
  356. package/lib/module/styles/shadow.js +1 -2
  357. package/lib/module/theming.js +1 -2
  358. package/lib/module/utilities.js +2 -3
  359. package/lib/typescript/src/Provider.d.ts +1 -1
  360. package/lib/typescript/src/Provider.d.ts.map +1 -1
  361. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -1
  362. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -1
  363. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -1
  364. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -1
  365. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -1
  366. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -1
  367. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -1
  368. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -1
  369. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +14 -0
  370. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
  371. package/lib/typescript/src/components/AspectRatio.d.ts +9 -0
  372. package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
  373. package/lib/typescript/src/components/AvatarEdit.d.ts +16 -0
  374. package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
  375. package/lib/typescript/src/components/Banner.d.ts +1 -1
  376. package/lib/typescript/src/components/Banner.d.ts.map +1 -1
  377. package/lib/typescript/src/components/Card.d.ts +43 -0
  378. package/lib/typescript/src/components/Card.d.ts.map +1 -0
  379. package/lib/typescript/src/components/CardBlock.d.ts +21 -0
  380. package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
  381. package/lib/typescript/src/components/CardContainer.d.ts +23 -0
  382. package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
  383. package/lib/typescript/src/components/CardContainerRating.d.ts +24 -0
  384. package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
  385. package/lib/typescript/src/components/CardContainerShortImage.d.ts +19 -0
  386. package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
  387. package/lib/typescript/src/components/CardInline.d.ts +20 -0
  388. package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
  389. package/lib/typescript/src/components/Carousel.d.ts +15 -0
  390. package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
  391. package/lib/typescript/src/components/CircleImage.d.ts +10 -0
  392. package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
  393. package/lib/typescript/src/components/CircularProgress.d.ts +43 -0
  394. package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
  395. package/lib/typescript/src/components/Container.d.ts +21 -0
  396. package/lib/typescript/src/components/Container.d.ts.map +1 -0
  397. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +7 -3
  398. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -1
  399. package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -1
  400. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -1
  401. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +15 -0
  402. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
  403. package/lib/typescript/src/components/DeprecatedFAB.d.ts +56 -0
  404. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
  405. package/lib/typescript/src/components/Divider.d.ts +13 -0
  406. package/lib/typescript/src/components/Divider.d.ts.map +1 -0
  407. package/lib/typescript/src/components/Elevation.d.ts +1 -1
  408. package/lib/typescript/src/components/Elevation.d.ts.map +1 -1
  409. package/lib/typescript/src/components/FAB.d.ts +20 -0
  410. package/lib/typescript/src/components/FAB.d.ts.map +1 -0
  411. package/lib/typescript/src/components/FieldSearchBarFull.d.ts +20 -0
  412. package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
  413. package/lib/typescript/src/components/FormRow.d.ts +1 -1
  414. package/lib/typescript/src/components/FormRow.d.ts.map +1 -1
  415. package/lib/typescript/src/components/Header.d.ts +20 -0
  416. package/lib/typescript/src/components/Header.d.ts.map +1 -0
  417. package/lib/typescript/src/components/HeaderLarge.d.ts +17 -0
  418. package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
  419. package/lib/typescript/src/components/HeaderMedium.d.ts +17 -0
  420. package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
  421. package/lib/typescript/src/components/HeaderOverline.d.ts +17 -0
  422. package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
  423. package/lib/typescript/src/components/IconButton.d.ts +1 -1
  424. package/lib/typescript/src/components/IconButton.d.ts.map +1 -1
  425. package/lib/typescript/src/components/Image.d.ts +5 -0
  426. package/lib/typescript/src/components/Image.d.ts.map +1 -0
  427. package/lib/typescript/src/components/Justification.d.ts +2 -0
  428. package/lib/typescript/src/components/Justification.d.ts.map +1 -0
  429. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -1
  430. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  431. package/lib/typescript/src/components/Portal/Portal.d.ts +1 -1
  432. package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -1
  433. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -1
  434. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -1
  435. package/lib/typescript/src/components/Portal/PortalHost.d.ts +2 -2
  436. package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -1
  437. package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -1
  438. package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -1
  439. package/lib/typescript/src/components/ProgressBar.d.ts +35 -0
  440. package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
  441. package/lib/typescript/src/components/ProgressCircle.d.ts +21 -0
  442. package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
  443. package/lib/typescript/src/components/ProgressIndicator.d.ts +24 -0
  444. package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
  445. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -1
  446. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -1
  447. package/lib/typescript/src/components/ResizeMode.d.ts +2 -0
  448. package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
  449. package/lib/typescript/src/components/Row.d.ts +21 -0
  450. package/lib/typescript/src/components/Row.d.ts.map +1 -0
  451. package/lib/typescript/src/components/RowBodyIcon.d.ts +16 -0
  452. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
  453. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +16 -0
  454. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
  455. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +18 -0
  456. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
  457. package/lib/typescript/src/components/SVG.d.ts +1 -1
  458. package/lib/typescript/src/components/SVG.d.ts.map +1 -1
  459. package/lib/typescript/src/components/ScreenContainer.d.ts +1 -1
  460. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -1
  461. package/lib/typescript/src/components/Slider.d.ts +1 -1
  462. package/lib/typescript/src/components/Slider.d.ts.map +1 -1
  463. package/lib/typescript/src/components/StarRating.d.ts +1 -1
  464. package/lib/typescript/src/components/StarRating.d.ts.map +1 -1
  465. package/lib/typescript/src/components/StepIndicator.d.ts +54 -0
  466. package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
  467. package/lib/typescript/src/components/Stepper.d.ts +2 -3
  468. package/lib/typescript/src/components/Stepper.d.ts.map +1 -1
  469. package/lib/typescript/src/components/Surface.d.ts +1 -1
  470. package/lib/typescript/src/components/Surface.d.ts.map +1 -1
  471. package/lib/typescript/src/components/Switch.d.ts +2 -2
  472. package/lib/typescript/src/components/Switch.d.ts.map +1 -1
  473. package/lib/typescript/src/components/Text.d.ts +1 -1
  474. package/lib/typescript/src/components/Text.d.ts.map +1 -1
  475. package/lib/typescript/src/components/TextField.d.ts +1 -1
  476. package/lib/typescript/src/components/TextField.d.ts.map +1 -1
  477. package/lib/typescript/src/components/ToggleButton.d.ts +25 -0
  478. package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
  479. package/lib/typescript/src/components/Touchable.d.ts +1 -1
  480. package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
  481. package/lib/typescript/src/components/Typography.d.ts +22 -0
  482. package/lib/typescript/src/components/Typography.d.ts.map +1 -0
  483. package/lib/typescript/src/components/useAuthState.d.ts +2 -0
  484. package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
  485. package/lib/typescript/src/index.d.ts +39 -15
  486. package/lib/typescript/src/index.d.ts.map +1 -1
  487. package/lib/typescript/src/interfaces/Icon.d.ts +2 -2
  488. package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -1
  489. package/lib/typescript/src/mappings/AudioPlayer.d.ts +62 -1
  490. package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -1
  491. package/lib/typescript/src/mappings/AvatarEdit.d.ts +38 -0
  492. package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
  493. package/lib/typescript/src/mappings/Banner.d.ts +49 -0
  494. package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
  495. package/lib/typescript/src/mappings/Card.d.ts +114 -0
  496. package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
  497. package/lib/typescript/src/mappings/CardBlock.d.ts +289 -0
  498. package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
  499. package/lib/typescript/src/mappings/CardContainer.d.ts +102 -0
  500. package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
  501. package/lib/typescript/src/mappings/CardContainerRating.d.ts +108 -0
  502. package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
  503. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +139 -0
  504. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
  505. package/lib/typescript/src/mappings/CardInline.d.ts +62 -0
  506. package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
  507. package/lib/typescript/src/mappings/Carousel.d.ts +34 -0
  508. package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
  509. package/lib/typescript/src/mappings/CircleImage.d.ts +34 -0
  510. package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
  511. package/lib/typescript/src/mappings/Container.d.ts +55 -0
  512. package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
  513. package/lib/typescript/src/mappings/DatePicker.d.ts +45 -3
  514. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -1
  515. package/lib/typescript/src/mappings/Divider.d.ts +25 -0
  516. package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
  517. package/lib/typescript/src/mappings/FAB.d.ts +83 -0
  518. package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
  519. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +56 -0
  520. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
  521. package/lib/typescript/src/mappings/HeaderLarge.d.ts +34 -0
  522. package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
  523. package/lib/typescript/src/mappings/HeaderMedium.d.ts +53 -0
  524. package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
  525. package/lib/typescript/src/mappings/HeaderOverline.d.ts +53 -0
  526. package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
  527. package/lib/typescript/src/mappings/ProgressBar.d.ts +99 -0
  528. package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
  529. package/lib/typescript/src/mappings/ProgressCircle.d.ts +109 -0
  530. package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
  531. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +181 -0
  532. package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
  533. package/lib/typescript/src/mappings/RowBodyIcon.d.ts +73 -0
  534. package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
  535. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +166 -0
  536. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
  537. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +170 -0
  538. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
  539. package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -1
  540. package/lib/typescript/src/mappings/TextArea.d.ts +21 -1
  541. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -1
  542. package/lib/typescript/src/mappings/TextField.d.ts +22 -2
  543. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -1
  544. package/lib/typescript/src/mappings/TextInput.d.ts +21 -1
  545. package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -1
  546. package/lib/typescript/src/mappings/ToggleButton.d.ts +116 -0
  547. package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
  548. package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -1
  549. package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -1
  550. package/lib/typescript/src/styles/overlay.d.ts +1 -1
  551. package/lib/typescript/src/styles/overlay.d.ts.map +1 -1
  552. package/lib/typescript/src/styles/shadow.d.ts +2 -2
  553. package/package.json +19 -9
  554. package/src/components/AnimatedCircularProgress.tsx +101 -0
  555. package/src/components/AspectRatio.tsx +40 -0
  556. package/src/components/AvatarEdit.tsx +64 -0
  557. package/src/components/Card.tsx +161 -0
  558. package/src/components/CardBlock.tsx +127 -0
  559. package/src/components/CardContainer.tsx +165 -0
  560. package/src/components/CardContainerRating.tsx +175 -0
  561. package/src/components/CardContainerShortImage.tsx +101 -0
  562. package/src/components/CardInline.tsx +93 -0
  563. package/src/components/Carousel.tsx +134 -0
  564. package/src/components/CircleImage.tsx +33 -0
  565. package/src/components/CircularProgress.tsx +188 -0
  566. package/src/components/Container.tsx +116 -0
  567. package/src/components/DatePicker/DatePicker.tsx +29 -11
  568. package/src/components/DeprecatedCardWrapper.tsx +46 -0
  569. package/src/components/DeprecatedFAB.tsx +231 -0
  570. package/src/components/Divider.tsx +32 -0
  571. package/src/components/FAB.tsx +108 -0
  572. package/src/components/FieldSearchBarFull.tsx +126 -0
  573. package/src/components/Header.tsx +105 -0
  574. package/src/components/HeaderLarge.tsx +40 -0
  575. package/src/components/HeaderMedium.tsx +41 -0
  576. package/src/components/HeaderOverline.tsx +42 -0
  577. package/src/components/Image.tsx +91 -0
  578. package/src/components/Justification.ts +8 -0
  579. package/src/components/Picker/Picker.tsx +2 -2
  580. package/src/components/ProgressBar.tsx +191 -0
  581. package/src/components/ProgressCircle.tsx +64 -0
  582. package/src/components/ProgressIndicator.tsx +71 -0
  583. package/src/components/ResizeMode.ts +7 -0
  584. package/src/components/Row.tsx +108 -0
  585. package/src/components/RowBodyIcon.tsx +47 -0
  586. package/src/components/RowHeadlineImageCaption.tsx +49 -0
  587. package/src/components/RowHeadlineImageIcon.tsx +61 -0
  588. package/src/components/StepIndicator.tsx +494 -0
  589. package/src/components/Stepper.tsx +5 -5
  590. package/src/components/ToggleButton.tsx +94 -0
  591. package/src/components/Typography.tsx +67 -0
  592. package/src/components/useAuthState.tsx +38 -0
  593. package/src/index.tsx +51 -38
  594. package/src/mappings/AudioPlayer.ts +41 -1
  595. package/src/mappings/AvatarEdit.ts +45 -0
  596. package/src/mappings/Banner.ts +40 -0
  597. package/src/mappings/Card.ts +64 -0
  598. package/src/mappings/CardBlock.ts +136 -0
  599. package/src/mappings/CardContainer.ts +116 -0
  600. package/src/mappings/CardContainerRating.ts +137 -0
  601. package/src/mappings/CardContainerShortImage.ts +130 -0
  602. package/src/mappings/CardInline.ts +61 -0
  603. package/src/mappings/Carousel.ts +25 -0
  604. package/src/mappings/CircleImage.ts +33 -0
  605. package/src/mappings/Container.ts +41 -0
  606. package/src/mappings/DatePicker.ts +32 -10
  607. package/src/mappings/Divider.ts +34 -0
  608. package/src/mappings/FAB.ts +48 -0
  609. package/src/mappings/FieldSearchBarFull.ts +59 -0
  610. package/src/mappings/HeaderLarge.ts +38 -0
  611. package/src/mappings/HeaderMedium.ts +63 -0
  612. package/src/mappings/HeaderOverline.ts +63 -0
  613. package/src/mappings/ProgressBar.ts +110 -0
  614. package/src/mappings/ProgressCircle.ts +117 -0
  615. package/src/mappings/ProgressIndicator.ts +190 -0
  616. package/src/mappings/RowBodyIcon.ts +82 -0
  617. package/src/mappings/RowHeadlineImageCaption.ts +178 -0
  618. package/src/mappings/RowHeadlineImageIcon.ts +116 -0
  619. package/src/mappings/Stepper.ts +5 -1
  620. package/src/mappings/TextArea.ts +15 -3
  621. package/src/mappings/TextField.ts +14 -4
  622. package/src/mappings/TextInput.ts +15 -3
  623. package/src/mappings/ToggleButton.ts +63 -0
  624. package/src/mappings/Touchable.ts +1 -1
  625. package/src/styles/overlay.tsx +2 -2
  626. package/lib/commonjs/Provider.js.map +0 -1
  627. package/lib/commonjs/components/Accordion/AccordionGroup.js.map +0 -1
  628. package/lib/commonjs/components/Accordion/AccordionItem.js.map +0 -1
  629. package/lib/commonjs/components/Accordion/index.js.map +0 -1
  630. package/lib/commonjs/components/ActionSheet/ActionSheet.js.map +0 -1
  631. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +0 -1
  632. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js.map +0 -1
  633. package/lib/commonjs/components/ActionSheet/index.js.map +0 -1
  634. package/lib/commonjs/components/Banner.js.map +0 -1
  635. package/lib/commonjs/components/Button.js.map +0 -1
  636. package/lib/commonjs/components/Checkbox/Checkbox.js.map +0 -1
  637. package/lib/commonjs/components/Checkbox/CheckboxGroup.js.map +0 -1
  638. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +0 -1
  639. package/lib/commonjs/components/Checkbox/CheckboxRow.js.map +0 -1
  640. package/lib/commonjs/components/Checkbox/context.js.map +0 -1
  641. package/lib/commonjs/components/Checkbox/index.js.map +0 -1
  642. package/lib/commonjs/components/Config.js.map +0 -1
  643. package/lib/commonjs/components/DatePicker/DatePicker.js.map +0 -1
  644. package/lib/commonjs/components/DatePicker/DatePickerComponent.js.map +0 -1
  645. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +0 -1
  646. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +0 -1
  647. package/lib/commonjs/components/DeprecatedButton.js.map +0 -1
  648. package/lib/commonjs/components/Elevation.js.map +0 -1
  649. package/lib/commonjs/components/FormRow.js.map +0 -1
  650. package/lib/commonjs/components/IconButton.js.map +0 -1
  651. package/lib/commonjs/components/Layout.js.map +0 -1
  652. package/lib/commonjs/components/NumberInput.js.map +0 -1
  653. package/lib/commonjs/components/Picker/Picker.js.map +0 -1
  654. package/lib/commonjs/components/Picker/PickerComponent.android.js.map +0 -1
  655. package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +0 -1
  656. package/lib/commonjs/components/Picker/PickerComponent.web.js.map +0 -1
  657. package/lib/commonjs/components/Picker/PickerTypes.js.map +0 -1
  658. package/lib/commonjs/components/Portal/Portal.js.map +0 -1
  659. package/lib/commonjs/components/Portal/PortalConsumer.js.map +0 -1
  660. package/lib/commonjs/components/Portal/PortalHost.js.map +0 -1
  661. package/lib/commonjs/components/Portal/PortalManager.js.map +0 -1
  662. package/lib/commonjs/components/RadioButton/RadioButton.js.map +0 -1
  663. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +0 -1
  664. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +0 -1
  665. package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +0 -1
  666. package/lib/commonjs/components/RadioButton/context.js.map +0 -1
  667. package/lib/commonjs/components/RadioButton/index.js.map +0 -1
  668. package/lib/commonjs/components/SVG.js.map +0 -1
  669. package/lib/commonjs/components/ScreenContainer.js.map +0 -1
  670. package/lib/commonjs/components/Slider.js.map +0 -1
  671. package/lib/commonjs/components/StarRating.js.map +0 -1
  672. package/lib/commonjs/components/Stepper.js.map +0 -1
  673. package/lib/commonjs/components/Surface.js.map +0 -1
  674. package/lib/commonjs/components/Swiper/Swiper.js.map +0 -1
  675. package/lib/commonjs/components/Swiper/SwiperItem.js.map +0 -1
  676. package/lib/commonjs/components/Swiper/index.js.map +0 -1
  677. package/lib/commonjs/components/Switch.js.map +0 -1
  678. package/lib/commonjs/components/Text.js.map +0 -1
  679. package/lib/commonjs/components/TextField.js.map +0 -1
  680. package/lib/commonjs/components/Touchable.js.map +0 -1
  681. package/lib/commonjs/components/Touchable.web.js.map +0 -1
  682. package/lib/commonjs/constants.js.map +0 -1
  683. package/lib/commonjs/hooks.js.map +0 -1
  684. package/lib/commonjs/index.js.map +0 -1
  685. package/lib/commonjs/interfaces/Icon.js.map +0 -1
  686. package/lib/commonjs/mappings/Accordion.js.map +0 -1
  687. package/lib/commonjs/mappings/AccordionItem.js.map +0 -1
  688. package/lib/commonjs/mappings/ActionSheet.js.map +0 -1
  689. package/lib/commonjs/mappings/ActionSheetCancel.js.map +0 -1
  690. package/lib/commonjs/mappings/ActionSheetItem.js.map +0 -1
  691. package/lib/commonjs/mappings/ActivityIndicator.js.map +0 -1
  692. package/lib/commonjs/mappings/AudioPlayer.js.map +0 -1
  693. package/lib/commonjs/mappings/BlurView.js.map +0 -1
  694. package/lib/commonjs/mappings/Button.js.map +0 -1
  695. package/lib/commonjs/mappings/Checkbox.js.map +0 -1
  696. package/lib/commonjs/mappings/CheckboxGroup.js.map +0 -1
  697. package/lib/commonjs/mappings/CheckboxRow.js.map +0 -1
  698. package/lib/commonjs/mappings/CustomCode.js.map +0 -1
  699. package/lib/commonjs/mappings/DatePicker.js.map +0 -1
  700. package/lib/commonjs/mappings/Fetch.js.map +0 -1
  701. package/lib/commonjs/mappings/FlashList.js.map +0 -1
  702. package/lib/commonjs/mappings/FlatList.js.map +0 -1
  703. package/lib/commonjs/mappings/Icon.js.map +0 -1
  704. package/lib/commonjs/mappings/IconButton.js.map +0 -1
  705. package/lib/commonjs/mappings/Image.js.map +0 -1
  706. package/lib/commonjs/mappings/ImageBackground.js.map +0 -1
  707. package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +0 -1
  708. package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +0 -1
  709. package/lib/commonjs/mappings/Layout.js.map +0 -1
  710. package/lib/commonjs/mappings/LinearGradient.js.map +0 -1
  711. package/lib/commonjs/mappings/MapCallout.js.map +0 -1
  712. package/lib/commonjs/mappings/MapMarker.js.map +0 -1
  713. package/lib/commonjs/mappings/MapView.js.map +0 -1
  714. package/lib/commonjs/mappings/Modal.js.map +0 -1
  715. package/lib/commonjs/mappings/NumberInput.js.map +0 -1
  716. package/lib/commonjs/mappings/Picker.js.map +0 -1
  717. package/lib/commonjs/mappings/RadioButton.js.map +0 -1
  718. package/lib/commonjs/mappings/RadioButtonGroup.js.map +0 -1
  719. package/lib/commonjs/mappings/RadioButtonRow.js.map +0 -1
  720. package/lib/commonjs/mappings/SVG.js.map +0 -1
  721. package/lib/commonjs/mappings/SafeAreaView.js.map +0 -1
  722. package/lib/commonjs/mappings/ScrollView.js.map +0 -1
  723. package/lib/commonjs/mappings/Slider.js.map +0 -1
  724. package/lib/commonjs/mappings/StarRating.js.map +0 -1
  725. package/lib/commonjs/mappings/Stepper.js.map +0 -1
  726. package/lib/commonjs/mappings/Surface.js.map +0 -1
  727. package/lib/commonjs/mappings/Swiper.js.map +0 -1
  728. package/lib/commonjs/mappings/SwiperItem.js.map +0 -1
  729. package/lib/commonjs/mappings/Switch.js.map +0 -1
  730. package/lib/commonjs/mappings/Text.js.map +0 -1
  731. package/lib/commonjs/mappings/TextArea.js.map +0 -1
  732. package/lib/commonjs/mappings/TextField.js.map +0 -1
  733. package/lib/commonjs/mappings/TextInput.js.map +0 -1
  734. package/lib/commonjs/mappings/Touchable.js.map +0 -1
  735. package/lib/commonjs/mappings/Video.js.map +0 -1
  736. package/lib/commonjs/mappings/View.js.map +0 -1
  737. package/lib/commonjs/mappings/WebView.js.map +0 -1
  738. package/lib/commonjs/styles/DarkTheme.js.map +0 -1
  739. package/lib/commonjs/styles/DefaultTheme.js.map +0 -1
  740. package/lib/commonjs/styles/fonts.js.map +0 -1
  741. package/lib/commonjs/styles/overlay.js.map +0 -1
  742. package/lib/commonjs/styles/shadow.js.map +0 -1
  743. package/lib/commonjs/theming.js.map +0 -1
  744. package/lib/commonjs/utilities.js.map +0 -1
  745. package/lib/module/Provider.js.map +0 -1
  746. package/lib/module/components/Accordion/AccordionGroup.js.map +0 -1
  747. package/lib/module/components/Accordion/AccordionItem.js.map +0 -1
  748. package/lib/module/components/Accordion/index.js.map +0 -1
  749. package/lib/module/components/ActionSheet/ActionSheet.js.map +0 -1
  750. package/lib/module/components/ActionSheet/ActionSheetCancel.js.map +0 -1
  751. package/lib/module/components/ActionSheet/ActionSheetItem.js.map +0 -1
  752. package/lib/module/components/ActionSheet/index.js.map +0 -1
  753. package/lib/module/components/Banner.js.map +0 -1
  754. package/lib/module/components/Button.js.map +0 -1
  755. package/lib/module/components/Checkbox/Checkbox.js.map +0 -1
  756. package/lib/module/components/Checkbox/CheckboxGroup.js.map +0 -1
  757. package/lib/module/components/Checkbox/CheckboxGroupRow.js.map +0 -1
  758. package/lib/module/components/Checkbox/CheckboxRow.js.map +0 -1
  759. package/lib/module/components/Checkbox/context.js.map +0 -1
  760. package/lib/module/components/Checkbox/index.js.map +0 -1
  761. package/lib/module/components/Config.js.map +0 -1
  762. package/lib/module/components/DatePicker/DatePicker.js.map +0 -1
  763. package/lib/module/components/DatePicker/DatePickerComponent.js.map +0 -1
  764. package/lib/module/components/DatePicker/DatePickerComponent.web.js.map +0 -1
  765. package/lib/module/components/DatePicker/DatePickerComponentType.js.map +0 -1
  766. package/lib/module/components/DeprecatedButton.js.map +0 -1
  767. package/lib/module/components/Elevation.js.map +0 -1
  768. package/lib/module/components/FormRow.js.map +0 -1
  769. package/lib/module/components/IconButton.js.map +0 -1
  770. package/lib/module/components/Layout.js.map +0 -1
  771. package/lib/module/components/NumberInput.js.map +0 -1
  772. package/lib/module/components/Picker/Picker.js.map +0 -1
  773. package/lib/module/components/Picker/PickerComponent.android.js.map +0 -1
  774. package/lib/module/components/Picker/PickerComponent.ios.js.map +0 -1
  775. package/lib/module/components/Picker/PickerComponent.web.js.map +0 -1
  776. package/lib/module/components/Picker/PickerTypes.js.map +0 -1
  777. package/lib/module/components/Portal/Portal.js.map +0 -1
  778. package/lib/module/components/Portal/PortalConsumer.js.map +0 -1
  779. package/lib/module/components/Portal/PortalHost.js.map +0 -1
  780. package/lib/module/components/Portal/PortalManager.js.map +0 -1
  781. package/lib/module/components/RadioButton/RadioButton.js.map +0 -1
  782. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js.map +0 -1
  783. package/lib/module/components/RadioButton/RadioButtonGroup.js.map +0 -1
  784. package/lib/module/components/RadioButton/RadioButtonRow.js.map +0 -1
  785. package/lib/module/components/RadioButton/context.js.map +0 -1
  786. package/lib/module/components/RadioButton/index.js.map +0 -1
  787. package/lib/module/components/SVG.js.map +0 -1
  788. package/lib/module/components/ScreenContainer.js.map +0 -1
  789. package/lib/module/components/Slider.js.map +0 -1
  790. package/lib/module/components/StarRating.js.map +0 -1
  791. package/lib/module/components/Stepper.js.map +0 -1
  792. package/lib/module/components/Surface.js.map +0 -1
  793. package/lib/module/components/Swiper/Swiper.js.map +0 -1
  794. package/lib/module/components/Swiper/SwiperItem.js.map +0 -1
  795. package/lib/module/components/Swiper/index.js.map +0 -1
  796. package/lib/module/components/Switch.js.map +0 -1
  797. package/lib/module/components/Text.js.map +0 -1
  798. package/lib/module/components/TextField.js.map +0 -1
  799. package/lib/module/components/Touchable.js.map +0 -1
  800. package/lib/module/components/Touchable.web.js.map +0 -1
  801. package/lib/module/constants.js.map +0 -1
  802. package/lib/module/hooks.js.map +0 -1
  803. package/lib/module/index.js.map +0 -1
  804. package/lib/module/interfaces/Icon.js.map +0 -1
  805. package/lib/module/mappings/Accordion.js.map +0 -1
  806. package/lib/module/mappings/AccordionItem.js.map +0 -1
  807. package/lib/module/mappings/ActionSheet.js.map +0 -1
  808. package/lib/module/mappings/ActionSheetCancel.js.map +0 -1
  809. package/lib/module/mappings/ActionSheetItem.js.map +0 -1
  810. package/lib/module/mappings/ActivityIndicator.js.map +0 -1
  811. package/lib/module/mappings/AudioPlayer.js.map +0 -1
  812. package/lib/module/mappings/BlurView.js.map +0 -1
  813. package/lib/module/mappings/Button.js.map +0 -1
  814. package/lib/module/mappings/Checkbox.js.map +0 -1
  815. package/lib/module/mappings/CheckboxGroup.js.map +0 -1
  816. package/lib/module/mappings/CheckboxRow.js.map +0 -1
  817. package/lib/module/mappings/CustomCode.js.map +0 -1
  818. package/lib/module/mappings/DatePicker.js.map +0 -1
  819. package/lib/module/mappings/Fetch.js.map +0 -1
  820. package/lib/module/mappings/FlashList.js.map +0 -1
  821. package/lib/module/mappings/FlatList.js.map +0 -1
  822. package/lib/module/mappings/Icon.js.map +0 -1
  823. package/lib/module/mappings/IconButton.js.map +0 -1
  824. package/lib/module/mappings/Image.js.map +0 -1
  825. package/lib/module/mappings/ImageBackground.js.map +0 -1
  826. package/lib/module/mappings/KeyboardAvoidingView.js.map +0 -1
  827. package/lib/module/mappings/KeyboardAwareScrollView.js.map +0 -1
  828. package/lib/module/mappings/Layout.js.map +0 -1
  829. package/lib/module/mappings/LinearGradient.js.map +0 -1
  830. package/lib/module/mappings/MapCallout.js.map +0 -1
  831. package/lib/module/mappings/MapMarker.js.map +0 -1
  832. package/lib/module/mappings/MapView.js.map +0 -1
  833. package/lib/module/mappings/Modal.js.map +0 -1
  834. package/lib/module/mappings/NumberInput.js.map +0 -1
  835. package/lib/module/mappings/Picker.js.map +0 -1
  836. package/lib/module/mappings/RadioButton.js.map +0 -1
  837. package/lib/module/mappings/RadioButtonGroup.js.map +0 -1
  838. package/lib/module/mappings/RadioButtonRow.js.map +0 -1
  839. package/lib/module/mappings/SVG.js.map +0 -1
  840. package/lib/module/mappings/SafeAreaView.js.map +0 -1
  841. package/lib/module/mappings/ScrollView.js.map +0 -1
  842. package/lib/module/mappings/Slider.js.map +0 -1
  843. package/lib/module/mappings/StarRating.js.map +0 -1
  844. package/lib/module/mappings/Stepper.js.map +0 -1
  845. package/lib/module/mappings/Surface.js.map +0 -1
  846. package/lib/module/mappings/Swiper.js.map +0 -1
  847. package/lib/module/mappings/SwiperItem.js.map +0 -1
  848. package/lib/module/mappings/Switch.js.map +0 -1
  849. package/lib/module/mappings/Text.js.map +0 -1
  850. package/lib/module/mappings/TextArea.js.map +0 -1
  851. package/lib/module/mappings/TextField.js.map +0 -1
  852. package/lib/module/mappings/TextInput.js.map +0 -1
  853. package/lib/module/mappings/Touchable.js.map +0 -1
  854. package/lib/module/mappings/Video.js.map +0 -1
  855. package/lib/module/mappings/View.js.map +0 -1
  856. package/lib/module/mappings/WebView.js.map +0 -1
  857. package/lib/module/styles/DarkTheme.js.map +0 -1
  858. package/lib/module/styles/DefaultTheme.js.map +0 -1
  859. package/lib/module/styles/fonts.js.map +0 -1
  860. package/lib/module/styles/overlay.js.map +0 -1
  861. package/lib/module/styles/shadow.js.map +0 -1
  862. package/lib/module/theming.js.map +0 -1
  863. package/lib/module/utilities.js.map +0 -1
  864. package/src/Provider.js +0 -9
  865. package/src/components/Accordion/AccordionGroup.js +0 -44
  866. package/src/components/Accordion/AccordionItem.js +0 -32
  867. package/src/components/Accordion/index.js +0 -2
  868. package/src/components/ActionSheet/ActionSheet.js +0 -45
  869. package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
  870. package/src/components/ActionSheet/ActionSheetItem.js +0 -30
  871. package/src/components/ActionSheet/index.js +0 -3
  872. package/src/components/Banner.js +0 -109
  873. package/src/components/Button.js +0 -114
  874. package/src/components/Checkbox/Checkbox.js +0 -63
  875. package/src/components/Checkbox/CheckboxGroup.js +0 -21
  876. package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
  877. package/src/components/Checkbox/CheckboxRow.js +0 -78
  878. package/src/components/Checkbox/context.js +0 -14
  879. package/src/components/Checkbox/index.js +0 -3
  880. package/src/components/Config.js +0 -64
  881. package/src/components/DatePicker/DatePicker.js +0 -368
  882. package/src/components/DatePicker/DatePickerComponent.js +0 -13
  883. package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
  884. package/src/components/DatePicker/DatePickerComponentType.js +0 -1
  885. package/src/components/DeprecatedButton.js +0 -95
  886. package/src/components/Elevation.js +0 -20
  887. package/src/components/FormRow.js +0 -19
  888. package/src/components/IconButton.js +0 -35
  889. package/src/components/Layout.js +0 -50
  890. package/src/components/NumberInput.js +0 -49
  891. package/src/components/Picker/Picker.js +0 -267
  892. package/src/components/Picker/PickerComponent.android.js +0 -69
  893. package/src/components/Picker/PickerComponent.ios.js +0 -79
  894. package/src/components/Picker/PickerComponent.web.js +0 -70
  895. package/src/components/Picker/PickerTypes.js +0 -1
  896. package/src/components/Portal/Portal.js +0 -35
  897. package/src/components/Portal/PortalConsumer.js +0 -27
  898. package/src/components/Portal/PortalHost.js +0 -107
  899. package/src/components/Portal/PortalManager.js +0 -32
  900. package/src/components/RadioButton/RadioButton.js +0 -17
  901. package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
  902. package/src/components/RadioButton/RadioButtonGroup.js +0 -43
  903. package/src/components/RadioButton/RadioButtonRow.js +0 -76
  904. package/src/components/RadioButton/context.js +0 -14
  905. package/src/components/RadioButton/index.js +0 -4
  906. package/src/components/SVG.js +0 -13
  907. package/src/components/ScreenContainer.js +0 -34
  908. package/src/components/Slider.js +0 -63
  909. package/src/components/StarRating.js +0 -50
  910. package/src/components/Stepper.js +0 -39
  911. package/src/components/Surface.js +0 -32
  912. package/src/components/Swiper/Swiper.js +0 -29
  913. package/src/components/Swiper/SwiperItem.js +0 -9
  914. package/src/components/Swiper/index.js +0 -2
  915. package/src/components/Switch.js +0 -56
  916. package/src/components/Text.js +0 -33
  917. package/src/components/TextField.js +0 -428
  918. package/src/components/Touchable.js +0 -12
  919. package/src/components/Touchable.web.js +0 -2
  920. package/src/constants.js +0 -10
  921. package/src/hooks.js +0 -12
  922. package/src/index.js +0 -35
  923. package/src/interfaces/Icon.js +0 -8
  924. package/src/mappings/Accordion.js +0 -41
  925. package/src/mappings/AccordionItem.js +0 -16
  926. package/src/mappings/ActionSheet.js +0 -13
  927. package/src/mappings/ActionSheetCancel.js +0 -19
  928. package/src/mappings/ActionSheetItem.js +0 -23
  929. package/src/mappings/ActivityIndicator.js +0 -58
  930. package/src/mappings/AudioPlayer.js +0 -20
  931. package/src/mappings/BlurView.js +0 -42
  932. package/src/mappings/Button.js +0 -87
  933. package/src/mappings/Checkbox.js +0 -46
  934. package/src/mappings/CheckboxGroup.js +0 -26
  935. package/src/mappings/CheckboxRow.js +0 -61
  936. package/src/mappings/CustomCode.js +0 -8
  937. package/src/mappings/DatePicker.js +0 -157
  938. package/src/mappings/Fetch.js +0 -13
  939. package/src/mappings/FlashList.js +0 -33
  940. package/src/mappings/FlatList.js +0 -24
  941. package/src/mappings/Icon.js +0 -32
  942. package/src/mappings/IconButton.js +0 -35
  943. package/src/mappings/Image.js +0 -35
  944. package/src/mappings/ImageBackground.js +0 -29
  945. package/src/mappings/KeyboardAvoidingView.js +0 -41
  946. package/src/mappings/KeyboardAwareScrollView.js +0 -50
  947. package/src/mappings/Layout.js +0 -200
  948. package/src/mappings/LinearGradient.js +0 -77
  949. package/src/mappings/MapCallout.js +0 -21
  950. package/src/mappings/MapMarker.js +0 -47
  951. package/src/mappings/MapView.js +0 -139
  952. package/src/mappings/Modal.js +0 -42
  953. package/src/mappings/NumberInput.js +0 -254
  954. package/src/mappings/Picker.js +0 -148
  955. package/src/mappings/RadioButton.js +0 -51
  956. package/src/mappings/RadioButtonGroup.js +0 -17
  957. package/src/mappings/RadioButtonRow.js +0 -42
  958. package/src/mappings/SVG.js +0 -20
  959. package/src/mappings/SafeAreaView.js +0 -33
  960. package/src/mappings/ScrollView.js +0 -31
  961. package/src/mappings/Slider.js +0 -60
  962. package/src/mappings/StarRating.js +0 -43
  963. package/src/mappings/Stepper.js +0 -29
  964. package/src/mappings/Surface.js +0 -14
  965. package/src/mappings/Swiper.js +0 -60
  966. package/src/mappings/SwiperItem.js +0 -8
  967. package/src/mappings/Switch.js +0 -81
  968. package/src/mappings/Text.js +0 -251
  969. package/src/mappings/TextArea.js +0 -263
  970. package/src/mappings/TextField.js +0 -381
  971. package/src/mappings/TextInput.js +0 -391
  972. package/src/mappings/Touchable.js +0 -17
  973. package/src/mappings/Video.js +0 -81
  974. package/src/mappings/View.js +0 -207
  975. package/src/mappings/WebView.js +0 -88
  976. package/src/styles/DarkTheme.js +0 -26
  977. package/src/styles/DefaultTheme.js +0 -111
  978. package/src/styles/fonts.js +0 -62
  979. package/src/styles/overlay.js +0 -60
  980. package/src/styles/shadow.js +0 -51
  981. package/src/theming.js +0 -3
  982. package/src/utilities.js +0 -102
@@ -1,107 +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
- constructor() {
31
- super(...arguments);
32
- this.setManager = (manager) => {
33
- this.manager = manager;
34
- };
35
- this.mount = (children) => {
36
- const key = this.nextKey++;
37
- if (this.manager) {
38
- this.manager.mount(key, children);
39
- }
40
- else {
41
- this.queue.push({ type: "mount", key, children });
42
- }
43
- return key;
44
- };
45
- this.update = (key, children) => {
46
- if (this.manager) {
47
- this.manager.update(key, children);
48
- }
49
- else {
50
- const op = { type: "mount", key, children };
51
- const index = this.queue.findIndex((o) => o.type === "mount" || (o.type === "update" && o.key === key));
52
- if (index > -1) {
53
- // @ts-ignore
54
- this.queue[index] = op;
55
- }
56
- else {
57
- this.queue.push(op);
58
- }
59
- }
60
- };
61
- this.unmount = (key) => {
62
- if (this.manager) {
63
- this.manager.unmount(key);
64
- }
65
- else {
66
- this.queue.push({ type: "unmount", key });
67
- }
68
- };
69
- this.nextKey = 0;
70
- this.queue = [];
71
- }
72
- componentDidMount() {
73
- const manager = this.manager;
74
- const queue = this.queue;
75
- while (queue.length && manager) {
76
- const action = queue.pop();
77
- if (action) {
78
- switch (action.type) {
79
- case "mount":
80
- manager.mount(action.key, action.children);
81
- break;
82
- case "update":
83
- manager.update(action.key, action.children);
84
- break;
85
- case "unmount":
86
- manager.unmount(action.key);
87
- break;
88
- }
89
- }
90
- }
91
- }
92
- render() {
93
- return (React.createElement(PortalContext.Provider, { value: {
94
- mount: this.mount,
95
- update: this.update,
96
- unmount: this.unmount,
97
- } },
98
- React.createElement(View, { style: styles.container, collapsable: false, pointerEvents: "box-none" }, this.props.children),
99
- React.createElement(PortalManager, { ref: this.setManager })));
100
- }
101
- }
102
- PortalHost.displayName = "Portal.Host";
103
- const styles = StyleSheet.create({
104
- container: {
105
- flex: 1,
106
- },
107
- });
@@ -1,32 +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
- constructor() {
8
- super(...arguments);
9
- this.state = {
10
- portals: [],
11
- };
12
- this.mount = (key, children) => {
13
- this.setState((state) => ({
14
- portals: [...state.portals, { key, children }],
15
- }));
16
- };
17
- this.update = (key, children) => this.setState((state) => ({
18
- portals: state.portals.map((item) => {
19
- if (item.key === key) {
20
- return { ...item, children };
21
- }
22
- return item;
23
- }),
24
- }));
25
- this.unmount = (key) => this.setState((state) => ({
26
- portals: state.portals.filter((item) => item.key !== key),
27
- }));
28
- }
29
- render() {
30
- 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)));
31
- }
32
- }
@@ -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 !== null && selected !== void 0 ? selected : realContextValue === realValue;
11
- const handlePress = () => {
12
- onPress === null || onPress === void 0 ? void 0 : onPress(realValue);
13
- onValueChange === null || onValueChange === void 0 ? void 0 : 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 === null || onValueChange === void 0 ? void 0 : 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;
@@ -1,76 +0,0 @@
1
- import * as React from "react";
2
- import { StyleSheet, View, Platform, } from "react-native";
3
- import RadioButton from "./RadioButton";
4
- import Text from "../Text";
5
- import { useRadioButtonGroupContext } from "./context";
6
- import { Direction as GroupDirection } from "./context";
7
- import Touchable from "../Touchable";
8
- import { extractStyles, getValueForRadioButton } from "../../utilities";
9
- export var Direction;
10
- (function (Direction) {
11
- Direction["Row"] = "row";
12
- Direction["RowReverse"] = "row-reverse";
13
- })(Direction || (Direction = {}));
14
- const getRadioButtonAlignment = (parentDirection, direction) => {
15
- if (parentDirection === GroupDirection.Horizontal) {
16
- return direction === Direction.Row ? "flex-start" : "flex-end";
17
- }
18
- else if (direction === Direction.RowReverse) {
19
- return "flex-start";
20
- }
21
- else {
22
- return "flex-end";
23
- }
24
- };
25
- const renderLabel = (value, labelStyle, textStyle) => {
26
- if (typeof value === "string") {
27
- return React.createElement(Text, { style: [labelStyle, textStyle] }, value);
28
- }
29
- else {
30
- return React.createElement(React.Fragment, null, value);
31
- }
32
- };
33
- const RadioButtonRow = ({ Icon, label, value = "", color, unselectedColor, onPress, labelContainerStyle, labelStyle, radioButtonStyle, direction = Direction.Row, selected, disabled, style, ...rest }) => {
34
- const { value: contextValue, onValueChange, direction: parentDirection, } = useRadioButtonGroupContext();
35
- const realValue = getValueForRadioButton(value);
36
- const realContextValue = getValueForRadioButton(contextValue);
37
- const isSelected = selected !== null && selected !== void 0 ? selected : realContextValue === realValue;
38
- const handlePress = () => {
39
- onPress === null || onPress === void 0 ? void 0 : onPress(realValue);
40
- onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(realValue);
41
- };
42
- const { textStyles, viewStyles } = extractStyles(style);
43
- return (React.createElement(Touchable, { onPress: handlePress, style: [styles.mainParent, { flexDirection: direction }, viewStyles], disabled: disabled, ...rest },
44
- React.createElement(View, { style: [
45
- styles.label,
46
- {
47
- alignItems: direction === Direction.Row ? "flex-start" : "flex-end",
48
- },
49
- labelContainerStyle,
50
- ] }, renderLabel(label, labelStyle, textStyles)),
51
- React.createElement(View, { style: {
52
- flex: 1,
53
- alignItems: getRadioButtonAlignment(parentDirection, direction),
54
- } },
55
- React.createElement(RadioButton, { Icon: Icon, selected: isSelected, value: realValue, color: color, unselectedColor: unselectedColor, style: radioButtonStyle }))));
56
- };
57
- const styles = StyleSheet.create({
58
- mainParent: {
59
- alignItems: "center",
60
- justifyContent: "space-around",
61
- paddingStart: 20,
62
- minHeight: 50,
63
- paddingEnd: 20,
64
- display: "flex",
65
- ...Platform.select({
66
- web: {
67
- cursor: "pointer",
68
- userSelect: "none",
69
- },
70
- }),
71
- },
72
- label: {
73
- flex: 3,
74
- },
75
- });
76
- export default RadioButtonRow;
@@ -1,14 +0,0 @@
1
- import { createContext, useContext } from "react";
2
- export var Direction;
3
- (function (Direction) {
4
- Direction["Horizontal"] = "horizontal";
5
- Direction["Vertical"] = "vertical";
6
- })(Direction || (Direction = {}));
7
- export const radioButtonGroupContext = createContext({
8
- onValueChange: () => { },
9
- value: "",
10
- direction: undefined,
11
- });
12
- export function useRadioButtonGroupContext() {
13
- return useContext(radioButtonGroupContext);
14
- }
@@ -1,4 +0,0 @@
1
- export { default as RadioButton } from "./RadioButton";
2
- export { default as RadioButtonGroup } from "./RadioButtonGroup";
3
- export { default as RadioButtonRow } from "./RadioButtonRow";
4
- export { default as RadioButtonFieldGroup } from "./RadioButtonFieldGroup";
@@ -1,13 +0,0 @@
1
- import * as React from "react";
2
- import { View, Platform, Image } from "react-native";
3
- import { SvgUri } from "react-native-svg";
4
- import Config from "./Config";
5
- const SVG = ({ source = Config.placeholderSvgURL, style, }) => {
6
- return (React.createElement(React.Fragment, null,
7
- Platform.OS === "ios" && (React.createElement(View, { style: style },
8
- React.createElement(SvgUri, { width: "100%", height: "100%", uri: source }))),
9
- Platform.OS === "android" && (React.createElement(View, { style: style },
10
- React.createElement(SvgUri, { width: "100%", height: "100%", uri: source }))),
11
- Platform.OS === "web" && (React.createElement(Image, { style: style, source: { uri: source } }))));
12
- };
13
- export default SVG;
@@ -1,34 +0,0 @@
1
- import * as React from "react";
2
- import { StyleSheet, ScrollView, View, } from "react-native";
3
- import { SafeAreaView } from "react-native-safe-area-context";
4
- import { withTheme } from "../theming";
5
- function ScreenContainer({ scrollable = false, hasSafeArea = false, hasBottomSafeArea = false, hasTopSafeArea = false, theme, style, children, ...rest }) {
6
- const backgroundColor = theme.colors.background;
7
- const edges = ["left", "right"];
8
- if (hasSafeArea || hasTopSafeArea) {
9
- edges.push("top");
10
- }
11
- if (hasSafeArea || hasBottomSafeArea) {
12
- edges.push("bottom");
13
- }
14
- return (React.createElement(SafeAreaView, { edges: edges, style: [
15
- styles.container,
16
- {
17
- backgroundColor,
18
- },
19
- ], ...rest }, scrollable ? (React.createElement(ScrollView, { contentContainerStyle: [
20
- styles.scrollViewContainer,
21
- { backgroundColor },
22
- style,
23
- ] }, children)) : (React.createElement(View, { style: [styles.container, { backgroundColor }, style] }, children))));
24
- }
25
- const styles = StyleSheet.create({
26
- container: {
27
- flex: 1,
28
- },
29
- scrollViewContainer: {
30
- flexGrow: 1,
31
- flex: undefined,
32
- },
33
- });
34
- export default withTheme(ScreenContainer);
@@ -1,63 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import NativeSlider from "@react-native-community/slider";
4
- import isNumber from "lodash.isnumber";
5
- import toNumber from "lodash.tonumber";
6
- import { withTheme } from "../theming";
7
- function maybeParseValue(value) {
8
- if (value === undefined) {
9
- return undefined;
10
- }
11
- if (isNumber(value)) {
12
- return value;
13
- }
14
- try {
15
- const maybe = toNumber(value);
16
- if (isNumber(maybe)) {
17
- return maybe;
18
- }
19
- }
20
- catch {
21
- return undefined;
22
- }
23
- return undefined;
24
- }
25
- function Slider({ Icon, leftIcon, rightIcon, leftIconColor, rightIconColor, value, defaultValue, minimumTrackTintColor, maximumTrackTintColor, thumbTintColor, minimumValue = 0, maximumValue = 100, tapToSeek, step = 1, onValueChange = () => { }, style, theme, ...rest }) {
26
- const [internalValue, setInternalValue] = React.useState(value || defaultValue);
27
- React.useEffect(() => {
28
- if (value != null) {
29
- setInternalValue(value);
30
- }
31
- }, [value]);
32
- React.useEffect(() => {
33
- if (defaultValue != null) {
34
- setInternalValue(defaultValue);
35
- }
36
- }, [defaultValue]);
37
- const minTrackColor = minimumTrackTintColor || theme.colors.primary;
38
- const maxTrackColor = maximumTrackTintColor || theme.colors.light;
39
- const thumbColor = thumbTintColor || theme.colors.primary;
40
- const leftIconThemeColor = leftIconColor || theme.colors.light;
41
- const rightIconThemeColor = rightIconColor || theme.colors.light;
42
- const parsedValue = maybeParseValue(internalValue);
43
- const handleSlidingComplete = (newValue) => {
44
- setInternalValue(newValue);
45
- onValueChange(newValue);
46
- };
47
- return (React.createElement(View, { style: [styles.container, style], ...rest },
48
- leftIcon ? (React.createElement(Icon, { color: leftIconThemeColor, name: leftIcon, size: 24 })) : null,
49
- React.createElement(NativeSlider, { value: parsedValue, step: step, minimumValue: minimumValue, maximumValue: maximumValue, tapToSeek: tapToSeek, minimumTrackTintColor: minTrackColor, maximumTrackTintColor: maxTrackColor, thumbTintColor: thumbColor, onSlidingComplete: handleSlidingComplete, style: styles.slider }),
50
- rightIcon ? (React.createElement(Icon, { color: rightIconThemeColor, name: rightIcon, size: 24 })) : null));
51
- }
52
- const styles = StyleSheet.create({
53
- container: {
54
- height: 40,
55
- flexDirection: "row",
56
- alignItems: "center",
57
- },
58
- slider: {
59
- flex: 1,
60
- marginHorizontal: 12,
61
- },
62
- });
63
- export default withTheme(Slider);
@@ -1,50 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet, Pressable, } from "react-native";
3
- import { withTheme } from "../theming";
4
- const StarRating = ({ Icon, starSize = 16, maxStars = 5, rating = 0, defaultValue, isEditable = false, activeColor, inactiveColor, style, onPress, ...rest }) => {
5
- const [localRating, setLocalRating] = React.useState(rating || defaultValue || 0);
6
- React.useEffect(() => {
7
- if (rating != null) {
8
- setLocalRating(rating);
9
- }
10
- }, [rating]);
11
- React.useEffect(() => {
12
- if (defaultValue != null) {
13
- setLocalRating(defaultValue);
14
- }
15
- }, [defaultValue]);
16
- const ratingHandler = React.useCallback((r) => {
17
- setLocalRating(r);
18
- !!onPress && onPress(r);
19
- }, [onPress]);
20
- const ratingRounded = Math.round(localRating * 2) / 2;
21
- return (React.createElement(View, { style: [styles.container, style], ...rest }, [...Array(maxStars)].map((_, i) => (React.createElement(View, { key: i, style: { display: "flex" } },
22
- React.createElement(Icon, { name: ratingRounded - i === 0.5
23
- ? "MaterialIcons/star-half"
24
- : "MaterialIcons/star", size: starSize, color: ratingRounded > i ? activeColor : inactiveColor }),
25
- isEditable && (React.createElement(View, { style: styles.touchContainer },
26
- React.createElement(Pressable, { style: styles.pressable, onPress: () => ratingHandler(i + 0.5) }),
27
- React.createElement(Pressable, { style: styles.pressable, onPress: () => ratingHandler(i + 1) }))))))));
28
- };
29
- const styles = StyleSheet.create({
30
- container: {
31
- flexDirection: "row",
32
- alignItems: "center",
33
- },
34
- touchContainer: {
35
- display: "flex",
36
- flexDirection: "row",
37
- position: "absolute",
38
- top: 0,
39
- right: 0,
40
- left: 0,
41
- bottom: 0,
42
- zIndex: 1,
43
- },
44
- pressable: {
45
- flex: 1,
46
- height: "100%",
47
- width: "50%",
48
- },
49
- });
50
- export default withTheme(StarRating);
@@ -1,39 +0,0 @@
1
- import React, { useEffect, useState } from "react";
2
- import { View, Text } from "react-native";
3
- import { isNumber } from "lodash";
4
- import { withTheme } from "../theming";
5
- import IconButton from "./IconButton";
6
- const Stepper = ({ min = -Infinity, max = Infinity, value: valueProp, defaultValue, style, typeStyle, iconSize = 24, iconColor, onChange, theme: { colors, typography }, Icon, }) => {
7
- const [value, setValue] = useState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0);
8
- const isValidValue = (valueArg) => valueArg >= min && valueArg <= max;
9
- const handlePlusOrMinus = (type) => {
10
- const newValue = type === "plus" ? value + 1 : value - 1;
11
- if (isValidValue(newValue)) {
12
- setValue(newValue);
13
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
14
- }
15
- };
16
- useEffect(() => {
17
- if (valueProp != null &&
18
- isNumber(valueProp) &&
19
- valueProp !== value &&
20
- isValidValue(valueProp)) {
21
- setValue(valueProp);
22
- }
23
- // eslint-disable-next-line react-hooks/exhaustive-deps
24
- }, [valueProp]);
25
- return (React.createElement(View, { style: [{ flexDirection: "row" }, style] },
26
- React.createElement(IconButton, { Icon: Icon, icon: "MaterialIcons/remove", onPress: () => handlePlusOrMinus("minus"), size: iconSize, color: iconColor, disabled: value === min, style: { opacity: value === min ? 0.5 : 1 } }),
27
- React.createElement(Text, { style: [
28
- typography.body1,
29
- {
30
- textAlign: "center",
31
- alignSelf: "center",
32
- color: colors.medium,
33
- marginHorizontal: 8,
34
- },
35
- typeStyle,
36
- ] }, value),
37
- React.createElement(IconButton, { Icon: Icon, icon: "MaterialIcons/add", onPress: () => handlePlusOrMinus("plus"), size: iconSize, color: iconColor, disabled: value === max, style: { opacity: value === max ? 0.5 : 1 } })));
38
- };
39
- export default withTheme(Stepper);
@@ -1,32 +0,0 @@
1
- /* Copied from https://github.com/callstack/react-native-paper/blob/main/src/components/Surface.tsx */
2
- import * as React from "react";
3
- import { Animated, StyleSheet, } from "react-native";
4
- import shadow from "../styles/shadow";
5
- import overlay from "../styles/overlay";
6
- import { withTheme } from "../theming";
7
- const Surface = ({ elevation: propElevation, style, theme, children, ...rest }) => {
8
- const { elevation: styleElevation = 3, backgroundColor, ...restStyle } = (StyleSheet.flatten(style) || {});
9
- const { dark: isDarkTheme, mode, colors } = theme;
10
- const elevation = propElevation || styleElevation;
11
- const evalationStyles = elevation ? shadow(elevation) : {};
12
- const getBackgroundColor = () => {
13
- if (backgroundColor) {
14
- return backgroundColor;
15
- }
16
- else if (isDarkTheme && mode === "adaptive") {
17
- return overlay(elevation, colors.surface);
18
- }
19
- else {
20
- return colors.surface;
21
- }
22
- };
23
- return (React.createElement(Animated.View, { ...rest, style: [
24
- {
25
- backgroundColor: getBackgroundColor(),
26
- elevation,
27
- ...evalationStyles,
28
- ...restStyle,
29
- },
30
- ] }, children));
31
- };
32
- export default withTheme(Surface);
@@ -1,29 +0,0 @@
1
- import React from "react";
2
- import { View } from "react-native";
3
- import SwiperComponent from "react-native-web-swiper";
4
- const Swiper = ({ vertical = false, loop = false, timeout = 0, from = 0, prevTitle = "", nextTitle = "", prevTitleColor, nextTitleColor, dotsTouchable = true, dotColor, dotActiveColor, data, keyExtractor, renderItem, children, style, }) => (React.createElement(View, { style: style },
5
- React.createElement(SwiperComponent, { from: from, loop: loop, timeout: timeout, vertical: vertical, controlsProps: {
6
- prevTitle,
7
- nextTitle,
8
- prevTitleStyle: { color: prevTitleColor },
9
- nextTitleStyle: { color: nextTitleColor },
10
- dotsTouchable,
11
- ...(dotColor
12
- ? { dotProps: { badgeStyle: { backgroundColor: dotColor } } }
13
- : {}),
14
- ...(dotActiveColor
15
- ? { dotActiveStyle: { backgroundColor: dotActiveColor } }
16
- : {}),
17
- } }, data && renderItem
18
- ? data.map((item, index) => {
19
- const component = renderItem({ item, index });
20
- if (!component) {
21
- return null;
22
- }
23
- const key = keyExtractor ? keyExtractor(item, index) : index;
24
- return React.cloneElement(component, {
25
- key,
26
- });
27
- })
28
- : children)));
29
- export default Swiper;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- const styles = StyleSheet.create({
4
- wrapper: {
5
- flex: 1,
6
- },
7
- });
8
- const SwiperItem = ({ children, style }) => (React.createElement(View, { style: [styles.wrapper, style] }, children));
9
- export default SwiperItem;
@@ -1,2 +0,0 @@
1
- export { default as Swiper } from "./Swiper";
2
- export { default as SwiperItem } from "./SwiperItem";
@@ -1,56 +0,0 @@
1
- import * as React from "react";
2
- import { Switch as NativeSwitch, } from "react-native";
3
- import { withTheme } from "../theming";
4
- import FormRow from "./FormRow";
5
- import { RowDirection } from "@draftbit/types";
6
- import { usePrevious } from "../hooks";
7
- function Switch({ value, defaultValue, disabled, onValueChange, activeTrackColor, inactiveTrackColor, activeThumbColor, inactiveThumbColor, theme, style, ...rest }) {
8
- const activeTrackThemeColor = activeTrackColor || theme.colors.primary;
9
- const inactiveTrackThemeColor = inactiveTrackColor || "#EEE";
10
- const activeThumbThemeColor = activeThumbColor || "#FFF";
11
- const inactiveThumbThemeColor = inactiveThumbColor || "#FFF";
12
- const [checked, setChecked] = React.useState(value || defaultValue);
13
- React.useEffect(() => {
14
- if (value != null && value !== checked) {
15
- setChecked(value);
16
- }
17
- }, [value, checked]);
18
- // This special logic is to handle weird APIs like Airtable that return
19
- // true or undefined for a boolean
20
- const previousDefaultValue = usePrevious(defaultValue);
21
- React.useEffect(() => {
22
- if (defaultValue !== previousDefaultValue) {
23
- setChecked(Boolean(defaultValue));
24
- }
25
- }, [defaultValue, previousDefaultValue]);
26
- return (React.createElement(NativeSwitch, { value: checked, disabled: disabled, trackColor: {
27
- false: inactiveTrackThemeColor,
28
- true: activeTrackThemeColor,
29
- }, thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor,
30
- // @ts-ignore react-native-web only
31
- activeThumbColor: activeThumbThemeColor, ios_backgroundColor: inactiveTrackThemeColor, style: style, onValueChange: (bool) => {
32
- setChecked(bool);
33
- onValueChange && onValueChange(bool);
34
- }, ...rest }));
35
- }
36
- function Row({ label = "Label", direction = RowDirection.Row, style, value, defaultValue, disabled, onValueChange, activeTrackColor, inactiveTrackColor, activeThumbColor, inactiveThumbColor, theme, ...rest }) {
37
- const [checked, setChecked] = React.useState(value != null ? value : defaultValue);
38
- React.useEffect(() => {
39
- if (value != null) {
40
- setChecked(value);
41
- }
42
- }, [value]);
43
- React.useEffect(() => {
44
- if (defaultValue != null) {
45
- setChecked(defaultValue);
46
- }
47
- }, [defaultValue]);
48
- return (React.createElement(FormRow, { disabled: disabled, onPress: () => {
49
- setChecked(!checked);
50
- onValueChange && onValueChange(!checked);
51
- }, label: label, direction: direction, style: style, ...rest },
52
- React.createElement(Switch, { theme: theme, value: checked, disabled: disabled, onValueChange: onValueChange, activeTrackColor: activeTrackColor, inactiveTrackColor: inactiveTrackColor, activeThumbColor: activeThumbColor, inactiveThumbColor: inactiveThumbColor })));
53
- }
54
- const SwitchRow = withTheme(Row);
55
- export { SwitchRow };
56
- export default withTheme(Switch);