@draftbit/core 46.4.4-dc9728.2 → 46.4.4-e5ebcf.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (435) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +25 -5
  2. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +18 -3
  3. package/lib/commonjs/components/Checkbox/CheckboxRow.js +24 -6
  4. package/lib/commonjs/components/Checkbox/context.js +1 -1
  5. package/lib/commonjs/components/CircleImage.js +16 -2
  6. package/lib/commonjs/components/CircularProgress.js +15 -7
  7. package/lib/commonjs/components/DatePicker/DatePicker.js +8 -18
  8. package/lib/commonjs/components/DeprecatedButton.js +22 -4
  9. package/lib/commonjs/components/DeprecatedCardWrapper.js +17 -2
  10. package/lib/commonjs/components/DeprecatedFAB.js +22 -4
  11. package/lib/commonjs/components/Divider.js +16 -2
  12. package/lib/commonjs/components/Elevation.js +15 -3
  13. package/lib/commonjs/components/FAB.js +20 -5
  14. package/lib/commonjs/components/FormRow.js +17 -3
  15. package/lib/commonjs/components/IconButton.js +22 -5
  16. package/lib/commonjs/components/Image.js +16 -3
  17. package/lib/commonjs/components/Layout.js +40 -19
  18. package/lib/commonjs/components/NumberInput.js +13 -2
  19. package/lib/commonjs/components/Picker/Picker.js +5 -5
  20. package/lib/commonjs/components/Picker/PickerComponent.ios.js +42 -13
  21. package/lib/commonjs/components/Picker/PickerComponent.web.js +24 -5
  22. package/lib/commonjs/components/Portal/PortalHost.js +27 -15
  23. package/lib/commonjs/components/ProgressBar.js +23 -7
  24. package/lib/commonjs/components/RadioButton/RadioButton.js +14 -3
  25. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +11 -2
  26. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +24 -6
  27. package/lib/commonjs/components/ScreenContainer.js +23 -5
  28. package/lib/commonjs/components/Slider.js +24 -5
  29. package/lib/commonjs/components/StarRating.js +25 -5
  30. package/lib/commonjs/components/StepIndicator.js +34 -16
  31. package/lib/commonjs/components/Stepper.js +8 -3
  32. package/lib/commonjs/components/Surface.js +14 -3
  33. package/lib/commonjs/components/Switch.js +23 -10
  34. package/lib/commonjs/components/Text.js +42 -8
  35. package/lib/commonjs/components/TextField.js +68 -31
  36. package/lib/commonjs/components/ToggleButton.js +18 -3
  37. package/lib/commonjs/components/Touchable.js +16 -2
  38. package/lib/commonjs/mappings/AudioPlayer.js +32 -2
  39. package/lib/commonjs/mappings/DatePicker.js +0 -13
  40. package/lib/commonjs/mappings/Stepper.js +1 -1
  41. package/lib/commonjs/mappings/TextArea.js +14 -3
  42. package/lib/commonjs/mappings/TextField.js +15 -5
  43. package/lib/commonjs/mappings/TextInput.js +15 -4
  44. package/lib/module/components/DatePicker/DatePicker.js +8 -17
  45. package/lib/module/components/Picker/Picker.js +2 -2
  46. package/lib/module/components/Stepper.js +7 -3
  47. package/lib/module/components/Text.js +6 -2
  48. package/lib/module/components/TextField.js +5 -1
  49. package/lib/module/mappings/AudioPlayer.js +33 -3
  50. package/lib/module/mappings/DatePicker.js +1 -14
  51. package/lib/module/mappings/Stepper.js +2 -2
  52. package/lib/module/mappings/TextArea.js +15 -4
  53. package/lib/module/mappings/TextField.js +15 -5
  54. package/lib/module/mappings/TextInput.js +16 -5
  55. package/lib/typescript/src/Provider.d.ts +1 -0
  56. package/lib/typescript/src/Provider.d.ts.map +1 -0
  57. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -0
  58. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -0
  59. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -0
  60. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -0
  61. package/lib/typescript/src/components/Accordion/index.d.ts +1 -0
  62. package/lib/typescript/src/components/Accordion/index.d.ts.map +1 -0
  63. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +1 -0
  64. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts.map +1 -0
  65. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -0
  66. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -0
  67. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -0
  68. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -0
  69. package/lib/typescript/src/components/ActionSheet/index.d.ts +1 -0
  70. package/lib/typescript/src/components/ActionSheet/index.d.ts.map +1 -0
  71. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +1 -0
  72. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
  73. package/lib/typescript/src/components/AspectRatio.d.ts +1 -0
  74. package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
  75. package/lib/typescript/src/components/AvatarEdit.d.ts +1 -0
  76. package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
  77. package/lib/typescript/src/components/Banner.d.ts +1 -0
  78. package/lib/typescript/src/components/Banner.d.ts.map +1 -0
  79. package/lib/typescript/src/components/Button.d.ts +1 -0
  80. package/lib/typescript/src/components/Button.d.ts.map +1 -0
  81. package/lib/typescript/src/components/Card.d.ts +1 -0
  82. package/lib/typescript/src/components/Card.d.ts.map +1 -0
  83. package/lib/typescript/src/components/CardBlock.d.ts +1 -0
  84. package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
  85. package/lib/typescript/src/components/CardContainer.d.ts +1 -0
  86. package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
  87. package/lib/typescript/src/components/CardContainerRating.d.ts +1 -0
  88. package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
  89. package/lib/typescript/src/components/CardContainerShortImage.d.ts +1 -0
  90. package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
  91. package/lib/typescript/src/components/CardInline.d.ts +1 -0
  92. package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
  93. package/lib/typescript/src/components/Carousel.d.ts +1 -0
  94. package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
  95. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +1 -0
  96. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -0
  97. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts +1 -0
  98. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
  99. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +1 -0
  100. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -0
  101. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +1 -0
  102. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -0
  103. package/lib/typescript/src/components/Checkbox/context.d.ts +1 -0
  104. package/lib/typescript/src/components/Checkbox/context.d.ts.map +1 -0
  105. package/lib/typescript/src/components/Checkbox/index.d.ts +1 -0
  106. package/lib/typescript/src/components/Checkbox/index.d.ts.map +1 -0
  107. package/lib/typescript/src/components/CircleImage.d.ts +1 -0
  108. package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
  109. package/lib/typescript/src/components/CircularProgress.d.ts +1 -0
  110. package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
  111. package/lib/typescript/src/components/Config.d.ts +1 -0
  112. package/lib/typescript/src/components/Config.d.ts.map +1 -0
  113. package/lib/typescript/src/components/Container.d.ts +1 -0
  114. package/lib/typescript/src/components/Container.d.ts.map +1 -0
  115. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -4
  116. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -0
  117. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +1 -0
  118. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -0
  119. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +1 -0
  120. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -0
  121. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +1 -0
  122. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -0
  123. package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -0
  124. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
  125. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +1 -0
  126. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
  127. package/lib/typescript/src/components/DeprecatedFAB.d.ts +1 -0
  128. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
  129. package/lib/typescript/src/components/Divider.d.ts +1 -0
  130. package/lib/typescript/src/components/Divider.d.ts.map +1 -0
  131. package/lib/typescript/src/components/Elevation.d.ts +1 -0
  132. package/lib/typescript/src/components/Elevation.d.ts.map +1 -0
  133. package/lib/typescript/src/components/FAB.d.ts +1 -0
  134. package/lib/typescript/src/components/FAB.d.ts.map +1 -0
  135. package/lib/typescript/src/components/FieldSearchBarFull.d.ts +1 -0
  136. package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
  137. package/lib/typescript/src/components/FormRow.d.ts +1 -0
  138. package/lib/typescript/src/components/FormRow.d.ts.map +1 -0
  139. package/lib/typescript/src/components/Header.d.ts +1 -0
  140. package/lib/typescript/src/components/Header.d.ts.map +1 -0
  141. package/lib/typescript/src/components/HeaderLarge.d.ts +1 -0
  142. package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
  143. package/lib/typescript/src/components/HeaderMedium.d.ts +1 -0
  144. package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
  145. package/lib/typescript/src/components/HeaderOverline.d.ts +1 -0
  146. package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
  147. package/lib/typescript/src/components/IconButton.d.ts +1 -0
  148. package/lib/typescript/src/components/IconButton.d.ts.map +1 -0
  149. package/lib/typescript/src/components/Image.d.ts +1 -0
  150. package/lib/typescript/src/components/Image.d.ts.map +1 -0
  151. package/lib/typescript/src/components/Justification.d.ts +1 -0
  152. package/lib/typescript/src/components/Justification.d.ts.map +1 -0
  153. package/lib/typescript/src/components/Layout.d.ts +1 -0
  154. package/lib/typescript/src/components/Layout.d.ts.map +1 -0
  155. package/lib/typescript/src/components/NumberInput.d.ts +1 -0
  156. package/lib/typescript/src/components/NumberInput.d.ts.map +1 -0
  157. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
  158. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -0
  159. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +1 -0
  160. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts.map +1 -0
  161. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +1 -0
  162. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts.map +1 -0
  163. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +1 -0
  164. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts.map +1 -0
  165. package/lib/typescript/src/components/Picker/PickerTypes.d.ts +1 -0
  166. package/lib/typescript/src/components/Picker/PickerTypes.d.ts.map +1 -0
  167. package/lib/typescript/src/components/Portal/Portal.d.ts +1 -0
  168. package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -0
  169. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -0
  170. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -0
  171. package/lib/typescript/src/components/Portal/PortalHost.d.ts +1 -0
  172. package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -0
  173. package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -0
  174. package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -0
  175. package/lib/typescript/src/components/ProgressBar.d.ts +1 -0
  176. package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
  177. package/lib/typescript/src/components/ProgressCircle.d.ts +1 -0
  178. package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
  179. package/lib/typescript/src/components/ProgressIndicator.d.ts +1 -0
  180. package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
  181. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -0
  182. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -0
  183. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts +1 -0
  184. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts.map +1 -0
  185. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +1 -0
  186. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts.map +1 -0
  187. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -0
  188. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts.map +1 -0
  189. package/lib/typescript/src/components/RadioButton/context.d.ts +1 -0
  190. package/lib/typescript/src/components/RadioButton/context.d.ts.map +1 -0
  191. package/lib/typescript/src/components/RadioButton/index.d.ts +1 -0
  192. package/lib/typescript/src/components/RadioButton/index.d.ts.map +1 -0
  193. package/lib/typescript/src/components/ResizeMode.d.ts +1 -0
  194. package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
  195. package/lib/typescript/src/components/Row.d.ts +1 -0
  196. package/lib/typescript/src/components/Row.d.ts.map +1 -0
  197. package/lib/typescript/src/components/RowBodyIcon.d.ts +1 -0
  198. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
  199. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +1 -0
  200. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
  201. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +1 -0
  202. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
  203. package/lib/typescript/src/components/SVG.d.ts +1 -0
  204. package/lib/typescript/src/components/SVG.d.ts.map +1 -0
  205. package/lib/typescript/src/components/ScreenContainer.d.ts +1 -0
  206. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -0
  207. package/lib/typescript/src/components/Slider.d.ts +1 -0
  208. package/lib/typescript/src/components/Slider.d.ts.map +1 -0
  209. package/lib/typescript/src/components/StarRating.d.ts +1 -0
  210. package/lib/typescript/src/components/StarRating.d.ts.map +1 -0
  211. package/lib/typescript/src/components/StepIndicator.d.ts +1 -0
  212. package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
  213. package/lib/typescript/src/components/Stepper.d.ts +2 -2
  214. package/lib/typescript/src/components/Stepper.d.ts.map +1 -0
  215. package/lib/typescript/src/components/Surface.d.ts +1 -0
  216. package/lib/typescript/src/components/Surface.d.ts.map +1 -0
  217. package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -0
  218. package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -0
  219. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +1 -0
  220. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts.map +1 -0
  221. package/lib/typescript/src/components/Swiper/index.d.ts +1 -0
  222. package/lib/typescript/src/components/Swiper/index.d.ts.map +1 -0
  223. package/lib/typescript/src/components/Switch.d.ts +1 -0
  224. package/lib/typescript/src/components/Switch.d.ts.map +1 -0
  225. package/lib/typescript/src/components/Text.d.ts +3 -1
  226. package/lib/typescript/src/components/Text.d.ts.map +1 -0
  227. package/lib/typescript/src/components/TextField.d.ts +3 -1
  228. package/lib/typescript/src/components/TextField.d.ts.map +1 -0
  229. package/lib/typescript/src/components/ToggleButton.d.ts +1 -0
  230. package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
  231. package/lib/typescript/src/components/Touchable.d.ts +1 -0
  232. package/lib/typescript/src/components/Touchable.d.ts.map +1 -0
  233. package/lib/typescript/src/components/Touchable.web.d.ts +1 -0
  234. package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
  235. package/lib/typescript/src/components/Typography.d.ts +1 -0
  236. package/lib/typescript/src/components/Typography.d.ts.map +1 -0
  237. package/lib/typescript/src/components/useAuthState.d.ts +1 -0
  238. package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
  239. package/lib/typescript/src/constants.d.ts +1 -0
  240. package/lib/typescript/src/constants.d.ts.map +1 -0
  241. package/lib/typescript/src/hooks.d.ts +1 -0
  242. package/lib/typescript/src/hooks.d.ts.map +1 -0
  243. package/lib/typescript/src/index.d.ts +1 -0
  244. package/lib/typescript/src/index.d.ts.map +1 -0
  245. package/lib/typescript/src/interfaces/Icon.d.ts +1 -0
  246. package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -0
  247. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  248. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
  249. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  250. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
  251. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  252. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
  253. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  254. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
  255. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  256. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
  257. package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
  258. package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
  259. package/lib/typescript/src/mappings/AudioPlayer.d.ts +63 -1
  260. package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
  261. package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
  262. package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
  263. package/lib/typescript/src/mappings/Banner.d.ts +1 -0
  264. package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
  265. package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
  266. package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
  267. package/lib/typescript/src/mappings/Button.d.ts +1 -0
  268. package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
  269. package/lib/typescript/src/mappings/Card.d.ts +1 -0
  270. package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
  271. package/lib/typescript/src/mappings/CardBlock.d.ts +1 -0
  272. package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
  273. package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
  274. package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
  275. package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
  276. package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
  277. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +1 -0
  278. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
  279. package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
  280. package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
  281. package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
  282. package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
  283. package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
  284. package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
  285. package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
  286. package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
  287. package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
  288. package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
  289. package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
  290. package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
  291. package/lib/typescript/src/mappings/Container.d.ts +1 -0
  292. package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
  293. package/lib/typescript/src/mappings/CustomCode.d.ts +1 -0
  294. package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
  295. package/lib/typescript/src/mappings/DatePicker.d.ts +1 -42
  296. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
  297. package/lib/typescript/src/mappings/Divider.d.ts +1 -0
  298. package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
  299. package/lib/typescript/src/mappings/FAB.d.ts +1 -0
  300. package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
  301. package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
  302. package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
  303. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
  304. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
  305. package/lib/typescript/src/mappings/FlashList.d.ts +1 -0
  306. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
  307. package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
  308. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
  309. package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
  310. package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
  311. package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
  312. package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
  313. package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
  314. package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
  315. package/lib/typescript/src/mappings/Icon.d.ts +1 -0
  316. package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
  317. package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
  318. package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
  319. package/lib/typescript/src/mappings/Image.d.ts +1 -0
  320. package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
  321. package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
  322. package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
  323. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
  324. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
  325. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
  326. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
  327. package/lib/typescript/src/mappings/Layout.d.ts +1 -0
  328. package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
  329. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  330. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
  331. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  332. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
  333. package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
  334. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
  335. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  336. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
  337. package/lib/typescript/src/mappings/Modal.d.ts +1 -0
  338. package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
  339. package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
  340. package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
  341. package/lib/typescript/src/mappings/Picker.d.ts +1 -0
  342. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
  343. package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
  344. package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
  345. package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
  346. package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
  347. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
  348. package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
  349. package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
  350. package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
  351. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
  352. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
  353. package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
  354. package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
  355. package/lib/typescript/src/mappings/RowBodyIcon.d.ts +1 -0
  356. package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
  357. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +1 -0
  358. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
  359. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +1 -0
  360. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
  361. package/lib/typescript/src/mappings/SVG.d.ts +1 -0
  362. package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
  363. package/lib/typescript/src/mappings/SafeAreaView.d.ts +1 -0
  364. package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
  365. package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
  366. package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
  367. package/lib/typescript/src/mappings/Slider.d.ts +1 -0
  368. package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
  369. package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
  370. package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
  371. package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
  372. package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
  373. package/lib/typescript/src/mappings/Surface.d.ts +1 -0
  374. package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
  375. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  376. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
  377. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  378. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
  379. package/lib/typescript/src/mappings/Switch.d.ts +1 -0
  380. package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
  381. package/lib/typescript/src/mappings/Text.d.ts +1 -0
  382. package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
  383. package/lib/typescript/src/mappings/TextArea.d.ts +22 -1
  384. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
  385. package/lib/typescript/src/mappings/TextField.d.ts +25 -4
  386. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
  387. package/lib/typescript/src/mappings/TextInput.d.ts +23 -2
  388. package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
  389. package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
  390. package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
  391. package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
  392. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
  393. package/lib/typescript/src/mappings/Video.d.ts +1 -0
  394. package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
  395. package/lib/typescript/src/mappings/View.d.ts +1 -0
  396. package/lib/typescript/src/mappings/View.d.ts.map +1 -0
  397. package/lib/typescript/src/mappings/WebView.d.ts +1 -0
  398. package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
  399. package/lib/typescript/src/styles/DarkTheme.d.ts +1 -0
  400. package/lib/typescript/src/styles/DarkTheme.d.ts.map +1 -0
  401. package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -0
  402. package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -0
  403. package/lib/typescript/src/styles/fonts.d.ts +1 -0
  404. package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
  405. package/lib/typescript/src/styles/overlay.d.ts +1 -0
  406. package/lib/typescript/src/styles/overlay.d.ts.map +1 -0
  407. package/lib/typescript/src/styles/shadow.d.ts +1 -0
  408. package/lib/typescript/src/styles/shadow.d.ts.map +1 -0
  409. package/lib/typescript/src/theming.d.ts +1 -0
  410. package/lib/typescript/src/theming.d.ts.map +1 -0
  411. package/lib/typescript/src/utilities.d.ts +1 -0
  412. package/lib/typescript/src/utilities.d.ts.map +1 -0
  413. package/package.json +15 -5
  414. package/src/components/DatePicker/DatePicker.js +8 -14
  415. package/src/components/DatePicker/DatePicker.tsx +7 -23
  416. package/src/components/Picker/Picker.js +1 -1
  417. package/src/components/Picker/Picker.tsx +2 -2
  418. package/src/components/Stepper.js +5 -3
  419. package/src/components/Stepper.tsx +5 -5
  420. package/src/components/Text.js +8 -2
  421. package/src/components/Text.tsx +6 -1
  422. package/src/components/TextField.js +6 -1
  423. package/src/components/TextField.tsx +7 -1
  424. package/src/mappings/AudioPlayer.js +39 -2
  425. package/src/mappings/AudioPlayer.ts +41 -1
  426. package/src/mappings/DatePicker.js +1 -21
  427. package/src/mappings/DatePicker.ts +0 -23
  428. package/src/mappings/Stepper.js +5 -2
  429. package/src/mappings/Stepper.ts +5 -1
  430. package/src/mappings/TextArea.js +15 -4
  431. package/src/mappings/TextArea.ts +15 -3
  432. package/src/mappings/TextField.js +15 -5
  433. package/src/mappings/TextField.ts +15 -5
  434. package/src/mappings/TextInput.js +16 -5
  435. package/src/mappings/TextInput.ts +16 -4
@@ -25,9 +25,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
25
25
 
26
26
  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; }
27
27
 
28
- 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); }
29
-
30
- let Direction;
28
+ var Direction;
31
29
  exports.Direction = Direction;
32
30
 
33
31
  (function (Direction) {
@@ -90,13 +88,14 @@ const RadioButtonRow = _ref => {
90
88
  textStyles,
91
89
  viewStyles
92
90
  } = (0, _utilities.extractStyles)(style);
93
- return /*#__PURE__*/React.createElement(_Touchable.default, _extends({
91
+ return /*#__PURE__*/React.createElement(_Touchable.default, {
94
92
  onPress: handlePress,
95
93
  style: [styles.mainParent, {
96
94
  flexDirection: direction
97
95
  }, viewStyles],
98
- disabled: disabled
99
- }, rest), /*#__PURE__*/React.createElement(_reactNative.View, {
96
+ disabled: disabled,
97
+ ...rest
98
+ }, /*#__PURE__*/React.createElement(_reactNative.View, {
100
99
  style: [styles.label, {
101
100
  alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
102
101
  }, labelContainerStyle]
@@ -135,5 +134,24 @@ const styles = _reactNative.StyleSheet.create({
135
134
  }
136
135
  });
137
136
 
137
+ var _default = RadioButtonRow;
138
+ exports.default = _default; "center",
139
+ justifyContent: "space-around",
140
+ paddingStart: 20,
141
+ minHeight: 50,
142
+ paddingEnd: 20,
143
+ display: "flex",
144
+ ..._reactNative.Platform.select({
145
+ web: {
146
+ cursor: "pointer",
147
+ userSelect: "none"
148
+ }
149
+ })
150
+ },
151
+ label: {
152
+ flex: 3
153
+ }
154
+ });
155
+
138
156
  var _default = RadioButtonRow;
139
157
  exports.default = _default;
@@ -17,8 +17,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
17
17
 
18
18
  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
19
 
20
- 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); }
21
-
22
20
  function ScreenContainer(_ref) {
23
21
  let {
24
22
  scrollable = false,
@@ -41,12 +39,13 @@ function ScreenContainer(_ref) {
41
39
  edges.push("bottom");
42
40
  }
43
41
 
44
- return /*#__PURE__*/React.createElement(_reactNativeSafeAreaContext.SafeAreaView, _extends({
42
+ return /*#__PURE__*/React.createElement(_reactNativeSafeAreaContext.SafeAreaView, {
45
43
  edges: edges,
46
44
  style: [styles.container, {
47
45
  backgroundColor
48
- }]
49
- }, rest), scrollable ? /*#__PURE__*/React.createElement(_reactNative.ScrollView, {
46
+ }],
47
+ ...rest
48
+ }, scrollable ? /*#__PURE__*/React.createElement(_reactNative.ScrollView, {
50
49
  contentContainerStyle: [styles.scrollViewContainer, {
51
50
  backgroundColor
52
51
  }, style]
@@ -69,4 +68,23 @@ const styles = _reactNative.StyleSheet.create({
69
68
 
70
69
  var _default = (0, _theming.withTheme)(ScreenContainer);
71
70
 
71
+ exports.default = _default;reactNative.View, {
72
+ style: [styles.container, {
73
+ backgroundColor
74
+ }, style]
75
+ }, children));
76
+ }
77
+
78
+ const styles = _reactNative.StyleSheet.create({
79
+ container: {
80
+ flex: 1
81
+ },
82
+ scrollViewContainer: {
83
+ flexGrow: 1,
84
+ flex: undefined
85
+ }
86
+ });
87
+
88
+ var _default = (0, _theming.withTheme)(ScreenContainer);
89
+
72
90
  exports.default = _default;
@@ -23,8 +23,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
23
23
 
24
24
  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; }
25
25
 
26
- 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); }
27
-
28
26
  function maybeParseValue(value) {
29
27
  if (value === undefined) {
30
28
  return undefined;
@@ -91,9 +89,10 @@ function Slider(_ref) {
91
89
  onValueChange(newValue);
92
90
  };
93
91
 
94
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
95
- style: [styles.container, style]
96
- }, rest), leftIcon ? /*#__PURE__*/React.createElement(Icon, {
92
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
93
+ style: [styles.container, style],
94
+ ...rest
95
+ }, leftIcon ? /*#__PURE__*/React.createElement(Icon, {
97
96
  color: leftIconThemeColor,
98
97
  name: leftIcon,
99
98
  size: 24
@@ -129,4 +128,24 @@ const styles = _reactNative.StyleSheet.create({
129
128
 
130
129
  var _default = (0, _theming.withTheme)(Slider);
131
130
 
131
+ exports.default = _default;: rightIconThemeColor,
132
+ name: rightIcon,
133
+ size: 24
134
+ }) : null);
135
+ }
136
+
137
+ const styles = _reactNative.StyleSheet.create({
138
+ container: {
139
+ height: 40,
140
+ flexDirection: "row",
141
+ alignItems: "center"
142
+ },
143
+ slider: {
144
+ flex: 1,
145
+ marginHorizontal: 12
146
+ }
147
+ });
148
+
149
+ var _default = (0, _theming.withTheme)(Slider);
150
+
132
151
  exports.default = _default;
@@ -15,8 +15,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  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; }
17
17
 
18
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
-
20
18
  const StarRating = _ref => {
21
19
  let {
22
20
  Icon,
@@ -47,9 +45,10 @@ const StarRating = _ref => {
47
45
  !!onPress && onPress(r);
48
46
  }, [onPress]);
49
47
  const ratingRounded = Math.round(localRating * 2) / 2;
50
- return /*#__PURE__*/React.createElement(_reactNative.View, _extends({
51
- style: [styles.container, style]
52
- }, rest), [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(_reactNative.View, {
48
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
49
+ style: [styles.container, style],
50
+ ...rest
51
+ }, [...Array(maxStars)].map((_, i) => /*#__PURE__*/React.createElement(_reactNative.View, {
53
52
  key: i,
54
53
  style: {
55
54
  display: "flex"
@@ -93,4 +92,25 @@ const styles = _reactNative.StyleSheet.create({
93
92
 
94
93
  var _default = (0, _theming.withTheme)(StarRating);
95
94
 
95
+ exports.default = _default;ignItems: "center"
96
+ },
97
+ touchContainer: {
98
+ display: "flex",
99
+ flexDirection: "row",
100
+ position: "absolute",
101
+ top: 0,
102
+ right: 0,
103
+ left: 0,
104
+ bottom: 0,
105
+ zIndex: 1
106
+ },
107
+ pressable: {
108
+ flex: 1,
109
+ height: "100%",
110
+ width: "50%"
111
+ }
112
+ });
113
+
114
+ var _default = (0, _theming.withTheme)(StarRating);
115
+
96
116
  exports.default = _default;
@@ -13,8 +13,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
13
13
 
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
15
 
16
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
-
16
+ // @ts-nocheck
18
17
  const STEP_STATUS = {
19
18
  CURRENT: "current",
20
19
  FINISHED: "finished",
@@ -25,7 +24,7 @@ class StepIndicator extends _react.Component {
25
24
  constructor(props) {
26
25
  super(props);
27
26
 
28
- _defineProperty(this, "renderProgressBarBackground", () => {
27
+ this.renderProgressBarBackground = () => {
29
28
  const {
30
29
  stepCount,
31
30
  direction
@@ -70,9 +69,9 @@ class StepIndicator extends _react.Component {
70
69
  },
71
70
  style: progressBarBackgroundStyle
72
71
  });
73
- });
72
+ };
74
73
 
75
- _defineProperty(this, "renderProgressBar", () => {
74
+ this.renderProgressBar = () => {
76
75
  const {
77
76
  stepCount,
78
77
  direction
@@ -104,9 +103,9 @@ class StepIndicator extends _react.Component {
104
103
  return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
105
104
  style: progressBarStyle
106
105
  });
107
- });
106
+ };
108
107
 
109
- _defineProperty(this, "renderStepIndicator", () => {
108
+ this.renderStepIndicator = () => {
110
109
  let steps = [];
111
110
  const {
112
111
  stepCount,
@@ -139,9 +138,9 @@ class StepIndicator extends _react.Component {
139
138
  height: this.state.customStyles.currentStepIndicatorSize
140
139
  }]
141
140
  }, steps);
142
- });
141
+ };
143
142
 
144
- _defineProperty(this, "renderStepLabels", () => {
143
+ this.renderStepLabels = () => {
145
144
  const {
146
145
  labels,
147
146
  direction,
@@ -183,9 +182,9 @@ class StepIndicator extends _react.Component {
183
182
  alignItems: this.state.customStyles.labelAlign
184
183
  }]
185
184
  }, labelViews);
186
- });
185
+ };
187
186
 
188
- _defineProperty(this, "renderStep", position => {
187
+ this.renderStep = position => {
189
188
  const {
190
189
  renderStepIndicator
191
190
  } = this.props;
@@ -257,9 +256,9 @@ class StepIndicator extends _react.Component {
257
256
  }) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
258
257
  style: indicatorLabelStyle
259
258
  }, "".concat(position + 1)));
260
- });
259
+ };
261
260
 
262
- _defineProperty(this, "getStepStatus", stepPosition => {
261
+ this.getStepStatus = stepPosition => {
263
262
  const {
264
263
  currentPosition
265
264
  } = this.props;
@@ -271,9 +270,9 @@ class StepIndicator extends _react.Component {
271
270
  } else {
272
271
  return STEP_STATUS.UNFINISHED;
273
272
  }
274
- });
273
+ };
275
274
 
276
- _defineProperty(this, "onCurrentPositionChanged", position => {
275
+ this.onCurrentPositionChanged = position => {
277
276
  let {
278
277
  stepCount
279
278
  } = this.props;
@@ -296,7 +295,7 @@ class StepIndicator extends _react.Component {
296
295
  toValue: this.state.customStyles.currentStepIndicatorSize / 2,
297
296
  duration: 100
298
297
  })])]).start();
299
- });
298
+ };
300
299
 
301
300
  const defaultStyles = {
302
301
  stepIndicatorSize: 30,
@@ -411,6 +410,25 @@ const styles = _reactNative.StyleSheet.create({
411
410
  }
412
411
  });
413
412
 
413
+ StepIndicator.defaultProps = {
414
+ currentPosition: 0,
415
+ stepCount: 5,
416
+ customStyles: {},
417
+ direction: "horizontal"
418
+ }; justifyContent: "center"
419
+ },
420
+ stepLabel: {
421
+ fontSize: 12,
422
+ textAlign: "center",
423
+ fontWeight: "500"
424
+ },
425
+ stepLabelItem: {
426
+ flex: 1,
427
+ alignItems: "center",
428
+ justifyContent: "center"
429
+ }
430
+ });
431
+
414
432
  StepIndicator.defaultProps = {
415
433
  currentPosition: 0,
416
434
  stepCount: 5,
@@ -15,6 +15,8 @@ var _theming = require("../theming");
15
15
 
16
16
  var _IconButton = _interopRequireDefault(require("./IconButton"));
17
17
 
18
+ var _utilities = require("../utilities");
19
+
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
21
 
20
22
  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); }
@@ -28,7 +30,6 @@ const Stepper = _ref => {
28
30
  value: valueProp,
29
31
  defaultValue,
30
32
  style,
31
- typeStyle,
32
33
  iconSize = 24,
33
34
  iconColor,
34
35
  onChange,
@@ -38,6 +39,10 @@ const Stepper = _ref => {
38
39
  },
39
40
  Icon
40
41
  } = _ref;
42
+ const {
43
+ viewStyles,
44
+ textStyles
45
+ } = (0, _utilities.extractStyles)(style);
41
46
  const [value, setValue] = (0, _react.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0);
42
47
 
43
48
  const isValidValue = valueArg => valueArg >= min && valueArg <= max;
@@ -60,7 +65,7 @@ const Stepper = _ref => {
60
65
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
61
66
  style: [{
62
67
  flexDirection: "row"
63
- }, style]
68
+ }, viewStyles]
64
69
  }, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
65
70
  Icon: Icon,
66
71
  icon: "MaterialIcons/remove",
@@ -77,7 +82,7 @@ const Stepper = _ref => {
77
82
  alignSelf: "center",
78
83
  color: colors.medium,
79
84
  marginHorizontal: 8
80
- }, typeStyle]
85
+ }, textStyles]
81
86
  }, value), /*#__PURE__*/_react.default.createElement(_IconButton.default, {
82
87
  Icon: Icon,
83
88
  icon: "MaterialIcons/add",
@@ -21,8 +21,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
21
 
22
22
  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; }
23
23
 
24
- 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); }
25
-
24
+ /* Copied from https://github.com/callstack/react-native-paper/blob/main/src/components/Surface.tsx */
26
25
  const Surface = _ref => {
27
26
  let {
28
27
  elevation: propElevation,
@@ -54,7 +53,19 @@ const Surface = _ref => {
54
53
  }
55
54
  };
56
55
 
57
- return /*#__PURE__*/React.createElement(_reactNative.Animated.View, _extends({}, rest, {
56
+ return /*#__PURE__*/React.createElement(_reactNative.Animated.View, { ...rest,
57
+ style: [{
58
+ backgroundColor: getBackgroundColor(),
59
+ elevation,
60
+ ...evalationStyles,
61
+ ...restStyle
62
+ }]
63
+ }, children);
64
+ };
65
+
66
+ var _default = (0, _theming.withTheme)(Surface);
67
+
68
+ exports.default = _default;, _extends({}, rest, {
58
69
  style: [{
59
70
  backgroundColor: getBackgroundColor(),
60
71
  elevation,
@@ -23,8 +23,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
23
23
 
24
24
  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; }
25
25
 
26
- 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); }
27
-
28
26
  function Switch(_ref) {
29
27
  let {
30
28
  value,
@@ -57,23 +55,24 @@ function Switch(_ref) {
57
55
  setChecked(Boolean(defaultValue));
58
56
  }
59
57
  }, [defaultValue, previousDefaultValue]);
60
- return /*#__PURE__*/React.createElement(_reactNative.Switch, _extends({
58
+ return /*#__PURE__*/React.createElement(_reactNative.Switch, {
61
59
  value: checked,
62
60
  disabled: disabled,
63
61
  trackColor: {
64
62
  false: inactiveTrackThemeColor,
65
63
  true: activeTrackThemeColor
66
64
  },
67
- thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor // @ts-ignore react-native-web only
68
- ,
65
+ thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor,
66
+ // @ts-ignore react-native-web only
69
67
  activeThumbColor: activeThumbThemeColor,
70
68
  ios_backgroundColor: inactiveTrackThemeColor,
71
69
  style: style,
72
70
  onValueChange: bool => {
73
71
  setChecked(bool);
74
72
  onValueChange && onValueChange(bool);
75
- }
76
- }, rest));
73
+ },
74
+ ...rest
75
+ });
77
76
  }
78
77
 
79
78
  function Row(_ref2) {
@@ -103,7 +102,7 @@ function Row(_ref2) {
103
102
  setChecked(defaultValue);
104
103
  }
105
104
  }, [defaultValue]);
106
- return /*#__PURE__*/React.createElement(_FormRow.default, _extends({
105
+ return /*#__PURE__*/React.createElement(_FormRow.default, {
107
106
  disabled: disabled,
108
107
  onPress: () => {
109
108
  setChecked(!checked);
@@ -111,8 +110,9 @@ function Row(_ref2) {
111
110
  },
112
111
  label: label,
113
112
  direction: direction,
114
- style: style
115
- }, rest), /*#__PURE__*/React.createElement(Switch, {
113
+ style: style,
114
+ ...rest
115
+ }, /*#__PURE__*/React.createElement(Switch, {
116
116
  theme: theme,
117
117
  value: checked,
118
118
  disabled: disabled,
@@ -129,4 +129,17 @@ exports.SwitchRow = SwitchRow;
129
129
 
130
130
  var _default = (0, _theming.withTheme)(Switch);
131
131
 
132
+ exports.default = _default;onValueChange,
133
+ activeTrackColor: activeTrackColor,
134
+ inactiveTrackColor: inactiveTrackColor,
135
+ activeThumbColor: activeThumbColor,
136
+ inactiveThumbColor: inactiveThumbColor
137
+ }));
138
+ }
139
+
140
+ const SwitchRow = (0, _theming.withTheme)(Row);
141
+ exports.SwitchRow = SwitchRow;
142
+
143
+ var _default = (0, _theming.withTheme)(Switch);
144
+
132
145
  exports.default = _default;
@@ -15,19 +15,16 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  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; }
17
17
 
18
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
-
20
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
-
22
18
  class Text extends React.Component {
23
19
  constructor() {
24
20
  super(...arguments);
25
-
26
- _defineProperty(this, "_root", void 0);
21
+ this.state = {
22
+ nativeProps: {}
23
+ };
27
24
  }
28
25
 
29
26
  setNativeProps(args) {
30
- return this._root && this._root.setNativeProps(args);
27
+ this.state.nativeProps = args || {};
31
28
  }
32
29
 
33
30
  render() {
@@ -36,7 +33,44 @@ class Text extends React.Component {
36
33
  ...rest
37
34
  } = this.props;
38
35
  const writingDirection = _reactNative.I18nManager.isRTL ? "rtl" : "ltr";
39
- return /*#__PURE__*/React.createElement(_reactNative.Text, _extends({}, rest, {
36
+ return /*#__PURE__*/React.createElement(_reactNative.Text, { ...rest,
37
+ ...this.state.nativeProps,
38
+ ref: c => {
39
+ this._root = c;
40
+ },
41
+ style: [{
42
+ textAlign: "left",
43
+ writingDirection
44
+ }, style]
45
+ });
46
+ }
47
+
48
+ }
49
+
50
+ const BaseLink = _ref => {
51
+ let {
52
+ style,
53
+ theme,
54
+ title,
55
+ ...props
56
+ } = _ref;
57
+ return /*#__PURE__*/React.createElement(Text, {
58
+ hitSlop: 8,
59
+ style: [{
60
+ color: theme.colors.primary
61
+ }, style],
62
+ theme: theme,
63
+ ...props
64
+ }, title);
65
+ };
66
+
67
+ exports.BaseLink = BaseLink;
68
+ const Link = (0, _theming.withTheme)(BaseLink);
69
+ exports.Link = Link;
70
+
71
+ var _default = (0, _theming.withTheme)(Text);
72
+
73
+ exports.default = _default;is.state.nativeProps, {
40
74
  ref: c => {
41
75
  this._root = c;
42
76
  },