@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
@@ -0,0 +1,385 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
10
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
11
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
13
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
+ const STEP_STATUS = {
15
+ CURRENT: "current",
16
+ FINISHED: "finished",
17
+ UNFINISHED: "unfinished"
18
+ };
19
+ class StepIndicator extends _react.Component {
20
+ constructor(props) {
21
+ super(props);
22
+ _defineProperty(this, "renderProgressBarBackground", () => {
23
+ const {
24
+ stepCount,
25
+ direction
26
+ } = this.props;
27
+ let progressBarBackgroundStyle;
28
+ if (direction === "vertical") {
29
+ progressBarBackgroundStyle = {
30
+ backgroundColor: this.state.customStyles.separatorUnFinishedColor,
31
+ position: "absolute",
32
+ left: (this.state.width - this.state.customStyles.separatorStrokeWidth) / 2,
33
+ top: this.state.height / (2 * stepCount),
34
+ bottom: this.state.height / (2 * stepCount),
35
+ width: this.state.customStyles.separatorStrokeUnfinishedWidth === 0 ? this.state.customStyles.separatorStrokeWidth : this.state.customStyles.separatorStrokeUnfinishedWidth
36
+ };
37
+ } else {
38
+ progressBarBackgroundStyle = {
39
+ backgroundColor: this.state.customStyles.separatorUnFinishedColor,
40
+ position: "absolute",
41
+ top: (this.state.height - this.state.customStyles.separatorStrokeWidth) / 2,
42
+ left: this.state.width / (2 * stepCount),
43
+ right: this.state.width / (2 * stepCount),
44
+ height: this.state.customStyles.separatorStrokeUnfinishedWidth === 0 ? this.state.customStyles.separatorStrokeWidth : this.state.customStyles.separatorStrokeUnfinishedWidth
45
+ };
46
+ }
47
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
48
+ onLayout: event => {
49
+ if (direction === "vertical") {
50
+ this.setState({
51
+ progressBarSize: event.nativeEvent.layout.height
52
+ }, () => {
53
+ this.onCurrentPositionChanged(this.props.currentPosition);
54
+ });
55
+ } else {
56
+ this.setState({
57
+ progressBarSize: event.nativeEvent.layout.width
58
+ }, () => {
59
+ this.onCurrentPositionChanged(this.props.currentPosition);
60
+ });
61
+ }
62
+ },
63
+ style: progressBarBackgroundStyle
64
+ });
65
+ });
66
+ _defineProperty(this, "renderProgressBar", () => {
67
+ const {
68
+ stepCount,
69
+ direction
70
+ } = this.props;
71
+ let progressBarStyle;
72
+ if (direction === "vertical") {
73
+ progressBarStyle = {
74
+ backgroundColor: this.state.customStyles.separatorFinishedColor,
75
+ position: "absolute",
76
+ left: (this.state.width - this.state.customStyles.separatorStrokeWidth) / 2,
77
+ top: this.state.height / (2 * stepCount),
78
+ bottom: this.state.height / (2 * stepCount),
79
+ width: this.state.customStyles.separatorStrokeFinishedWidth === 0 ? this.state.customStyles.separatorStrokeWidth : this.state.customStyles.separatorStrokeFinishedWidth,
80
+ height: this.progressAnim
81
+ };
82
+ } else {
83
+ progressBarStyle = {
84
+ backgroundColor: this.state.customStyles.separatorFinishedColor,
85
+ position: "absolute",
86
+ top: (this.state.height - this.state.customStyles.separatorStrokeWidth) / 2,
87
+ left: this.state.width / (2 * stepCount),
88
+ right: this.state.width / (2 * stepCount),
89
+ height: this.state.customStyles.separatorStrokeFinishedWidth === 0 ? this.state.customStyles.separatorStrokeWidth : this.state.customStyles.separatorStrokeFinishedWidth,
90
+ width: this.progressAnim
91
+ };
92
+ }
93
+ return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
94
+ style: progressBarStyle
95
+ });
96
+ });
97
+ _defineProperty(this, "renderStepIndicator", () => {
98
+ let steps = [];
99
+ const {
100
+ stepCount,
101
+ direction
102
+ } = this.props;
103
+ for (let position = 0; position < stepCount; position++) {
104
+ steps.push( /*#__PURE__*/_react.default.createElement(_reactNative.TouchableWithoutFeedback, {
105
+ key: position,
106
+ onPress: () => this.stepPressed(position)
107
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
108
+ style: [styles.stepContainer, direction === "vertical" ? {
109
+ flexDirection: "column"
110
+ } : {
111
+ flexDirection: "row"
112
+ }]
113
+ }, this.renderStep(position))));
114
+ }
115
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
116
+ onLayout: event => this.setState({
117
+ width: event.nativeEvent.layout.width,
118
+ height: event.nativeEvent.layout.height
119
+ }),
120
+ style: [styles.stepIndicatorContainer, direction === "vertical" ? {
121
+ flexDirection: "column",
122
+ width: this.state.customStyles.currentStepIndicatorSize
123
+ } : {
124
+ flexDirection: "row",
125
+ height: this.state.customStyles.currentStepIndicatorSize
126
+ }]
127
+ }, steps);
128
+ });
129
+ _defineProperty(this, "renderStepLabels", () => {
130
+ const {
131
+ labels,
132
+ direction,
133
+ currentPosition,
134
+ renderLabel
135
+ } = this.props;
136
+ var labelViews = labels.map((label, index) => {
137
+ const selectedStepLabelStyle = index === currentPosition ? {
138
+ color: this.state.customStyles.currentStepLabelColor
139
+ } : {
140
+ color: this.state.customStyles.labelColor
141
+ };
142
+ return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableWithoutFeedback, {
143
+ style: styles.stepLabelItem,
144
+ key: index,
145
+ onPress: () => this.stepPressed(index)
146
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
147
+ style: styles.stepLabelItem
148
+ }, renderLabel ? renderLabel({
149
+ position: index,
150
+ stepStatus: this.getStepStatus(index),
151
+ label,
152
+ currentPosition
153
+ }) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
154
+ style: [styles.stepLabel, selectedStepLabelStyle, {
155
+ fontSize: this.state.customStyles.labelSize,
156
+ fontFamily: this.state.customStyles.labelFontFamily
157
+ }]
158
+ }, label)));
159
+ });
160
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
161
+ style: [styles.stepLabelsContainer, direction === "vertical" ? {
162
+ flexDirection: "column",
163
+ paddingHorizontal: 4
164
+ } : {
165
+ flexDirection: "row",
166
+ paddingVertical: 4
167
+ }, {
168
+ alignItems: this.state.customStyles.labelAlign
169
+ }]
170
+ }, labelViews);
171
+ });
172
+ _defineProperty(this, "renderStep", position => {
173
+ const {
174
+ renderStepIndicator
175
+ } = this.props;
176
+ let stepStyle;
177
+ let indicatorLabelStyle;
178
+ switch (this.getStepStatus(position)) {
179
+ case STEP_STATUS.CURRENT:
180
+ {
181
+ stepStyle = {
182
+ backgroundColor: this.state.customStyles.stepIndicatorCurrentColor,
183
+ borderWidth: this.state.customStyles.currentStepStrokeWidth,
184
+ borderColor: this.state.customStyles.stepStrokeCurrentColor,
185
+ height: this.sizeAnim,
186
+ width: this.sizeAnim,
187
+ borderRadius: this.borderRadiusAnim
188
+ };
189
+ indicatorLabelStyle = {
190
+ fontSize: this.state.customStyles.currentStepIndicatorLabelFontSize,
191
+ color: this.state.customStyles.stepIndicatorLabelCurrentColor
192
+ };
193
+ break;
194
+ }
195
+ case STEP_STATUS.FINISHED:
196
+ {
197
+ stepStyle = {
198
+ backgroundColor: this.state.customStyles.stepIndicatorFinishedColor,
199
+ borderWidth: this.state.customStyles.stepStrokeWidth,
200
+ borderColor: this.state.customStyles.stepStrokeFinishedColor,
201
+ height: this.state.customStyles.stepIndicatorSize,
202
+ width: this.state.customStyles.stepIndicatorSize,
203
+ borderRadius: this.state.customStyles.stepIndicatorSize / 2
204
+ };
205
+ indicatorLabelStyle = {
206
+ fontSize: this.state.customStyles.stepIndicatorLabelFontSize,
207
+ color: this.state.customStyles.stepIndicatorLabelFinishedColor
208
+ };
209
+ break;
210
+ }
211
+ case STEP_STATUS.UNFINISHED:
212
+ {
213
+ stepStyle = {
214
+ backgroundColor: this.state.customStyles.stepIndicatorUnFinishedColor,
215
+ borderWidth: this.state.customStyles.stepStrokeWidth,
216
+ borderColor: this.state.customStyles.stepStrokeUnFinishedColor,
217
+ height: this.state.customStyles.stepIndicatorSize,
218
+ width: this.state.customStyles.stepIndicatorSize,
219
+ borderRadius: this.state.customStyles.stepIndicatorSize / 2
220
+ };
221
+ indicatorLabelStyle = {
222
+ overflow: "hidden",
223
+ fontSize: this.state.customStyles.stepIndicatorLabelFontSize,
224
+ color: this.state.customStyles.stepIndicatorLabelUnFinishedColor
225
+ };
226
+ break;
227
+ }
228
+ default:
229
+ }
230
+ return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
231
+ key: "step-indicator",
232
+ style: [styles.step, stepStyle]
233
+ }, renderStepIndicator ? renderStepIndicator({
234
+ position,
235
+ stepStatus: this.getStepStatus(position)
236
+ }) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
237
+ style: indicatorLabelStyle
238
+ }, "".concat(position + 1)));
239
+ });
240
+ _defineProperty(this, "getStepStatus", stepPosition => {
241
+ const {
242
+ currentPosition
243
+ } = this.props;
244
+ if (stepPosition === currentPosition) {
245
+ return STEP_STATUS.CURRENT;
246
+ } else if (stepPosition < currentPosition) {
247
+ return STEP_STATUS.FINISHED;
248
+ } else {
249
+ return STEP_STATUS.UNFINISHED;
250
+ }
251
+ });
252
+ _defineProperty(this, "onCurrentPositionChanged", position => {
253
+ let {
254
+ stepCount
255
+ } = this.props;
256
+ if (position > stepCount - 1) {
257
+ position = stepCount - 1;
258
+ }
259
+ const animateToPosition = this.state.progressBarSize / (stepCount - 1) * position;
260
+ this.sizeAnim.setValue(this.state.customStyles.stepIndicatorSize);
261
+ this.borderRadiusAnim.setValue(this.state.customStyles.stepIndicatorSize / 2);
262
+ _reactNative.Animated.sequence([_reactNative.Animated.timing(this.progressAnim, {
263
+ toValue: animateToPosition,
264
+ duration: 200
265
+ }), _reactNative.Animated.parallel([_reactNative.Animated.timing(this.sizeAnim, {
266
+ toValue: this.state.customStyles.currentStepIndicatorSize,
267
+ duration: 100
268
+ }), _reactNative.Animated.timing(this.borderRadiusAnim, {
269
+ toValue: this.state.customStyles.currentStepIndicatorSize / 2,
270
+ duration: 100
271
+ })])]).start();
272
+ });
273
+ const defaultStyles = {
274
+ stepIndicatorSize: 30,
275
+ currentStepIndicatorSize: 40,
276
+ separatorStrokeWidth: 3,
277
+ separatorStrokeUnfinishedWidth: 0,
278
+ separatorStrokeFinishedWidth: 0,
279
+ currentStepStrokeWidth: 5,
280
+ stepStrokeWidth: 0,
281
+ stepStrokeCurrentColor: "#4aae4f",
282
+ stepStrokeFinishedColor: "#4aae4f",
283
+ stepStrokeUnFinishedColor: "#4aae4f",
284
+ separatorFinishedColor: "#4aae4f",
285
+ separatorUnFinishedColor: "#a4d4a5",
286
+ stepIndicatorFinishedColor: "#4aae4f",
287
+ stepIndicatorUnFinishedColor: "#a4d4a5",
288
+ stepIndicatorCurrentColor: "#ffffff",
289
+ stepIndicatorLabelFontSize: 15,
290
+ currentStepIndicatorLabelFontSize: 15,
291
+ stepIndicatorLabelCurrentColor: "#000000",
292
+ stepIndicatorLabelFinishedColor: "#ffffff",
293
+ stepIndicatorLabelUnFinishedColor: "rgba(255,255,255,0.5)",
294
+ labelColor: "#000000",
295
+ labelSize: 13,
296
+ labelAlign: "center",
297
+ currentStepLabelColor: "#4aae4f"
298
+ };
299
+ const customStyles = Object.assign(defaultStyles, props.customStyles);
300
+ this.state = {
301
+ width: 0,
302
+ height: 1,
303
+ progressBarSize: -2,
304
+ customStyles
305
+ };
306
+ this.progressAnim = new _reactNative.Animated.Value(0);
307
+ this.sizeAnim = new _reactNative.Animated.Value(this.state.customStyles.stepIndicatorSize);
308
+ this.borderRadiusAnim = new _reactNative.Animated.Value(this.state.customStyles.stepIndicatorSize / 2);
309
+ }
310
+ stepPressed(position) {
311
+ if (this.props.onPress) {
312
+ this.props.onPress(position);
313
+ }
314
+ }
315
+ render() {
316
+ const {
317
+ labels,
318
+ direction
319
+ } = this.props;
320
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
321
+ style: [styles.container, direction === "vertical" ? {
322
+ flexDirection: "row",
323
+ flex: 1
324
+ } : {
325
+ flexDirection: "column"
326
+ }]
327
+ }, this.state.width !== 0 && this.renderProgressBarBackground(), this.state.width !== 0 && this.renderProgressBar(), this.renderStepIndicator(), labels && this.renderStepLabels());
328
+ }
329
+ componentDidUpdate(prevProps) {
330
+ // if (prevProps.customStyles !== this.props.customStyles) {
331
+ // this.setState((state) => ({
332
+ // customStyles: Object.assign(
333
+ // state.customStyles,
334
+ // this.props.customStyles
335
+ // ),
336
+ // }));
337
+ // }
338
+
339
+ if (prevProps.currentPosition !== this.props.currentPosition) {
340
+ this.onCurrentPositionChanged(this.props.currentPosition);
341
+ }
342
+ }
343
+ }
344
+ exports.default = StepIndicator;
345
+ const styles = _reactNative.StyleSheet.create({
346
+ container: {
347
+ backgroundColor: "transparent"
348
+ },
349
+ stepIndicatorContainer: {
350
+ flexDirection: "row",
351
+ alignItems: "center",
352
+ justifyContent: "space-around",
353
+ backgroundColor: "transparent"
354
+ },
355
+ stepLabelsContainer: {
356
+ justifyContent: "space-around"
357
+ },
358
+ step: {
359
+ alignItems: "center",
360
+ justifyContent: "center",
361
+ zIndex: 2
362
+ },
363
+ stepContainer: {
364
+ flex: 1,
365
+ flexDirection: "row",
366
+ alignItems: "center",
367
+ justifyContent: "center"
368
+ },
369
+ stepLabel: {
370
+ fontSize: 12,
371
+ textAlign: "center",
372
+ fontWeight: "500"
373
+ },
374
+ stepLabelItem: {
375
+ flex: 1,
376
+ alignItems: "center",
377
+ justifyContent: "center"
378
+ }
379
+ });
380
+ StepIndicator.defaultProps = {
381
+ currentPosition: 0,
382
+ stepCount: 5,
383
+ customStyles: {},
384
+ direction: "horizontal"
385
+ };
@@ -9,6 +9,7 @@ var _reactNative = require("react-native");
9
9
  var _lodash = require("lodash");
10
10
  var _theming = require("../theming");
11
11
  var _IconButton = _interopRequireDefault(require("./IconButton"));
12
+ var _utilities = require("../utilities");
12
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
15
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -19,7 +20,6 @@ const Stepper = _ref => {
19
20
  value: valueProp,
20
21
  defaultValue,
21
22
  style,
22
- typeStyle,
23
23
  iconSize = 24,
24
24
  iconColor,
25
25
  onChange,
@@ -29,7 +29,11 @@ const Stepper = _ref => {
29
29
  },
30
30
  Icon
31
31
  } = _ref;
32
- const [value, setValue] = (0, _react.useState)(defaultValue ?? 0);
32
+ const {
33
+ viewStyles,
34
+ textStyles
35
+ } = (0, _utilities.extractStyles)(style);
36
+ const [value, setValue] = (0, _react.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0);
33
37
  const isValidValue = valueArg => valueArg >= min && valueArg <= max;
34
38
  const handlePlusOrMinus = type => {
35
39
  const newValue = type === "plus" ? value + 1 : value - 1;
@@ -47,7 +51,7 @@ const Stepper = _ref => {
47
51
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
48
52
  style: [{
49
53
  flexDirection: "row"
50
- }, style]
54
+ }, viewStyles]
51
55
  }, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
52
56
  Icon: Icon,
53
57
  icon: "MaterialIcons/remove",
@@ -64,7 +68,7 @@ const Stepper = _ref => {
64
68
  alignSelf: "center",
65
69
  color: colors.medium,
66
70
  marginHorizontal: 8
67
- }, typeStyle]
71
+ }, textStyles]
68
72
  }, value), /*#__PURE__*/_react.default.createElement(_IconButton.default, {
69
73
  Icon: Icon,
70
74
  icon: "MaterialIcons/add",
@@ -78,6 +82,4 @@ const Stepper = _ref => {
78
82
  }));
79
83
  };
80
84
  var _default = (0, _theming.withTheme)(Stepper);
81
- exports.default = _default;
82
- //# sourceMappingURL=Stepper.js.maplt = _default;
83
- //# sourceMappingURL=Stepper.js.map
85
+ exports.default = _default;
@@ -52,5 +52,4 @@ const Surface = _ref => {
52
52
  }), children);
53
53
  };
54
54
  var _default = (0, _theming.withTheme)(Surface);
55
- exports.default = _default;
56
- //# sourceMappingURL=Surface.js.map
55
+ exports.default = _default;
@@ -72,5 +72,4 @@ const Swiper = _ref => {
72
72
  }) : children));
73
73
  };
74
74
  var _default = Swiper;
75
- exports.default = _default;
76
- //# sourceMappingURL=Swiper.js.map
75
+ exports.default = _default;
@@ -22,5 +22,4 @@ const SwiperItem = _ref => {
22
22
  }, children);
23
23
  };
24
24
  var _default = SwiperItem;
25
- exports.default = _default;
26
- //# sourceMappingURL=SwiperItem.js.map
25
+ exports.default = _default;
@@ -17,5 +17,4 @@ Object.defineProperty(exports, "SwiperItem", {
17
17
  });
18
18
  var _Swiper = _interopRequireDefault(require("./Swiper"));
19
19
  var _SwiperItem = _interopRequireDefault(require("./SwiperItem"));
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
- //# sourceMappingURL=index.js.map
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -116,5 +116,4 @@ function Row(_ref2) {
116
116
  const SwitchRow = (0, _theming.withTheme)(Row);
117
117
  exports.SwitchRow = SwitchRow;
118
118
  var _default = (0, _theming.withTheme)(Switch);
119
- exports.default = _default;
120
- //# sourceMappingURL=Switch.js.map
119
+ exports.default = _default;
@@ -60,5 +60,4 @@ exports.BaseLink = BaseLink;
60
60
  const Link = (0, _theming.withTheme)(BaseLink);
61
61
  exports.Link = Link;
62
62
  var _default = (0, _theming.withTheme)(Text);
63
- exports.default = _default;
64
- //# sourceMappingURL=Text.js.map
63
+ exports.default = _default;
@@ -445,5 +445,4 @@ const styles = _reactNative.StyleSheet.create({
445
445
  margin: 0,
446
446
  textAlign: _reactNative.I18nManager.isRTL ? "right" : "left"
447
447
  }
448
- });
449
- //# sourceMappingURL=TextField.js.map
448
+ });
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _theming = require("../theming");
9
+ var _reactNative = require("react-native");
10
+ var _IconButton = _interopRequireDefault(require("./IconButton"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
+ const ToggleButton = _ref => {
16
+ let {
17
+ Icon,
18
+ icon,
19
+ toggled = false,
20
+ onPress = () => {},
21
+ defaultValue,
22
+ disabled = false,
23
+ color = "primary",
24
+ colorSecondary = "surface",
25
+ borderColor = "divider",
26
+ iconSize = 25,
27
+ width = 50,
28
+ height = 50,
29
+ theme: {
30
+ colors
31
+ },
32
+ style,
33
+ ...rest
34
+ } = _ref;
35
+ const [internalValue, setInternalValue] = React.useState(toggled || defaultValue || false);
36
+ React.useEffect(() => {
37
+ if (toggled != null) {
38
+ setInternalValue(toggled);
39
+ }
40
+ }, [toggled]);
41
+ React.useEffect(() => {
42
+ if (defaultValue != null) {
43
+ setInternalValue(defaultValue);
44
+ }
45
+ }, [defaultValue]);
46
+ const handlePress = () => {
47
+ setInternalValue(!internalValue);
48
+ onPress(!internalValue);
49
+ };
50
+ return /*#__PURE__*/React.createElement(_IconButton.default, _extends({
51
+ Icon: Icon,
52
+ icon: icon,
53
+ size: iconSize,
54
+ color: internalValue ? colors[color] : colors[colorSecondary],
55
+ onPress: handlePress,
56
+ disabled: disabled,
57
+ style: [styles.mainContainer, {
58
+ width,
59
+ height,
60
+ backgroundColor: internalValue ? colors[colorSecondary] : colors[color],
61
+ borderColor: colors[borderColor]
62
+ }, style]
63
+ }, rest));
64
+ };
65
+ const styles = _reactNative.StyleSheet.create({
66
+ mainContainer: {
67
+ borderWidth: 1
68
+ }
69
+ });
70
+ var _default = (0, _theming.withTheme)(ToggleButton);
71
+ exports.default = _default;
@@ -29,5 +29,4 @@ function Touchable(_ref) {
29
29
  }, style];
30
30
  }
31
31
  }, props), children);
32
- }
33
- //# sourceMappingURL=Touchable.js.map
32
+ }
@@ -6,5 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _reactNative = require("react-native");
8
8
  var _default = _reactNative.TouchableOpacity;
9
- exports.default = _default;
10
- //# sourceMappingURL=Touchable.web.js.map
9
+ exports.default = _default;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Title = exports.Subtitle = exports.Caption = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _theming = require("../theming");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ const Title = (0, _theming.withTheme)(_ref => {
12
+ let {
13
+ text,
14
+ theme,
15
+ style
16
+ } = _ref;
17
+ return /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
18
+ style: [{
19
+ fontSize: 20,
20
+ letterSpacing: 0,
21
+ lineHeight: 26,
22
+ color: theme.colors.text
23
+ }, style]
24
+ }, text);
25
+ });
26
+ exports.Title = Title;
27
+ const Subtitle = (0, _theming.withTheme)(_ref2 => {
28
+ let {
29
+ text,
30
+ theme,
31
+ style
32
+ } = _ref2;
33
+ return /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
34
+ style: [{
35
+ fontSize: 14,
36
+ letterSpacing: 0,
37
+ lineHeight: 16,
38
+ color: theme.colors.medium
39
+ }, style]
40
+ }, text);
41
+ });
42
+ exports.Subtitle = Subtitle;
43
+ const Caption = (0, _theming.withTheme)(_ref3 => {
44
+ let {
45
+ text,
46
+ theme,
47
+ style
48
+ } = _ref3;
49
+ return /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
50
+ style: [{
51
+ fontSize: 12,
52
+ letterSpacing: 0,
53
+ lineHeight: 14,
54
+ color: theme.colors.light
55
+ }, style]
56
+ }, text);
57
+ });
58
+ exports.Caption = Caption;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useAuthState = void 0;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
9
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
10
+ const useAuthState = auth => {
11
+ const [error, setError] = React.useState();
12
+ const [value, setValue] = React.useState(auth.currentUser);
13
+ React.useEffect(() => {
14
+ const list = auth.onAuthStateChanged(setValue, setError);
15
+ return () => {
16
+ list();
17
+ };
18
+ }, [auth]);
19
+ const signInWithEmailAndPassword = (user, password) => {
20
+ auth.signInWithEmailAndPassword(user, password).then(setValue).catch(setError);
21
+ };
22
+ const createUserWithEmailAndPassword = (user, password) => {
23
+ auth.signInWithEmailAndPassword(user, password).then(setValue).catch(setError);
24
+ };
25
+ const signOut = () => auth.signOut();
26
+ return [value, error, signInWithEmailAndPassword, signOut, createUserWithEmailAndPassword];
27
+ };
28
+ exports.useAuthState = useAuthState;