@draftbit/core 46.4.4-d93fe1.2 → 46.4.4-dc4ec4.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 (752) hide show
  1. package/lib/commonjs/Provider.js +2 -10
  2. package/lib/commonjs/Provider.js.map +1 -0
  3. package/lib/commonjs/components/Accordion/AccordionGroup.js +2 -15
  4. package/lib/commonjs/components/Accordion/AccordionGroup.js.map +1 -0
  5. package/lib/commonjs/components/Accordion/AccordionItem.js +2 -14
  6. package/lib/commonjs/components/Accordion/AccordionItem.js.map +1 -0
  7. package/lib/commonjs/components/Accordion/index.js +2 -4
  8. package/lib/commonjs/components/Accordion/index.js.map +1 -0
  9. package/lib/commonjs/components/ActionSheet/ActionSheet.js +2 -10
  10. package/lib/commonjs/components/ActionSheet/ActionSheet.js.map +1 -0
  11. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js +2 -6
  12. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +1 -0
  13. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js +2 -8
  14. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js.map +1 -0
  15. package/lib/commonjs/components/ActionSheet/index.js +2 -5
  16. package/lib/commonjs/components/ActionSheet/index.js.map +1 -0
  17. package/lib/commonjs/components/AnimatedCircularProgress.js +2 -16
  18. package/lib/commonjs/components/AnimatedCircularProgress.js.map +1 -0
  19. package/lib/commonjs/components/AspectRatio.js +2 -11
  20. package/lib/commonjs/components/AspectRatio.js.map +1 -0
  21. package/lib/commonjs/components/AvatarEdit.js +2 -13
  22. package/lib/commonjs/components/AvatarEdit.js.map +1 -0
  23. package/lib/commonjs/components/Banner.js +11 -24
  24. package/lib/commonjs/components/Banner.js.map +1 -0
  25. package/lib/commonjs/components/Button.js +4 -20
  26. package/lib/commonjs/components/Button.js.map +1 -0
  27. package/lib/commonjs/components/Card.js +2 -15
  28. package/lib/commonjs/components/Card.js.map +1 -0
  29. package/lib/commonjs/components/CardBlock.js +2 -16
  30. package/lib/commonjs/components/CardBlock.js.map +1 -0
  31. package/lib/commonjs/components/CardContainer.js +2 -19
  32. package/lib/commonjs/components/CardContainer.js.map +1 -0
  33. package/lib/commonjs/components/CardContainerRating.js +4 -21
  34. package/lib/commonjs/components/CardContainerRating.js.map +1 -0
  35. package/lib/commonjs/components/CardContainerShortImage.js +2 -13
  36. package/lib/commonjs/components/CardContainerShortImage.js.map +1 -0
  37. package/lib/commonjs/components/CardInline.js +3 -15
  38. package/lib/commonjs/components/CardInline.js.map +1 -0
  39. package/lib/commonjs/components/Carousel.js +5 -22
  40. package/lib/commonjs/components/Carousel.js.map +1 -0
  41. package/lib/commonjs/components/Checkbox/Checkbox.js +5 -19
  42. package/lib/commonjs/components/Checkbox/Checkbox.js.map +1 -0
  43. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +2 -12
  44. package/lib/commonjs/components/Checkbox/CheckboxGroup.js.map +1 -0
  45. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +2 -21
  46. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +1 -0
  47. package/lib/commonjs/components/Checkbox/CheckboxRow.js +5 -25
  48. package/lib/commonjs/components/Checkbox/CheckboxRow.js.map +1 -0
  49. package/lib/commonjs/components/Checkbox/context.js +2 -6
  50. package/lib/commonjs/components/Checkbox/context.js.map +1 -0
  51. package/lib/commonjs/components/Checkbox/index.js +2 -5
  52. package/lib/commonjs/components/Checkbox/index.js.map +1 -0
  53. package/lib/commonjs/components/CircleImage.js +2 -10
  54. package/lib/commonjs/components/CircleImage.js.map +1 -0
  55. package/lib/commonjs/components/CircularProgress.js +5 -14
  56. package/lib/commonjs/components/CircularProgress.js.map +1 -0
  57. package/lib/commonjs/components/Config.js +7 -14
  58. package/lib/commonjs/components/Config.js.map +1 -0
  59. package/lib/commonjs/components/Container.js +6 -28
  60. package/lib/commonjs/components/Container.js.map +1 -0
  61. package/lib/commonjs/components/DatePicker/DatePicker.js +18 -49
  62. package/lib/commonjs/components/DatePicker/DatePicker.js.map +1 -0
  63. package/lib/commonjs/components/DatePicker/DatePickerComponent.js +2 -8
  64. package/lib/commonjs/components/DatePicker/DatePickerComponent.js.map +1 -0
  65. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +2 -11
  66. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +1 -0
  67. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js +2 -1
  68. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +1 -0
  69. package/lib/commonjs/components/DeprecatedButton.js +2 -24
  70. package/lib/commonjs/components/DeprecatedButton.js.map +1 -0
  71. package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -12
  72. package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -0
  73. package/lib/commonjs/components/DeprecatedFAB.js +2 -27
  74. package/lib/commonjs/components/DeprecatedFAB.js.map +1 -0
  75. package/lib/commonjs/components/Divider.js +2 -10
  76. package/lib/commonjs/components/Divider.js.map +1 -0
  77. package/lib/commonjs/components/Elevation.js +2 -12
  78. package/lib/commonjs/components/Elevation.js.map +1 -0
  79. package/lib/commonjs/components/FAB.js +2 -11
  80. package/lib/commonjs/components/FAB.js.map +1 -0
  81. package/lib/commonjs/components/FieldSearchBarFull.js +2 -19
  82. package/lib/commonjs/components/FieldSearchBarFull.js.map +1 -0
  83. package/lib/commonjs/components/FormRow.js +2 -11
  84. package/lib/commonjs/components/FormRow.js.map +1 -0
  85. package/lib/commonjs/components/Header.js +2 -14
  86. package/lib/commonjs/components/Header.js.map +1 -0
  87. package/lib/commonjs/components/HeaderLarge.js +2 -10
  88. package/lib/commonjs/components/HeaderLarge.js.map +1 -0
  89. package/lib/commonjs/components/HeaderMedium.js +2 -10
  90. package/lib/commonjs/components/HeaderMedium.js.map +1 -0
  91. package/lib/commonjs/components/HeaderOverline.js +2 -10
  92. package/lib/commonjs/components/HeaderOverline.js.map +1 -0
  93. package/lib/commonjs/components/IconButton.js +2 -11
  94. package/lib/commonjs/components/IconButton.js.map +1 -0
  95. package/lib/commonjs/components/Image.js +2 -18
  96. package/lib/commonjs/components/Image.js.map +1 -0
  97. package/lib/commonjs/components/Justification.js +3 -3
  98. package/lib/commonjs/components/Justification.js.map +1 -0
  99. package/lib/commonjs/components/Layout.js +4 -13
  100. package/lib/commonjs/components/Layout.js.map +1 -0
  101. package/lib/commonjs/components/NumberInput.js +10 -22
  102. package/lib/commonjs/components/NumberInput.js.map +1 -0
  103. package/lib/commonjs/components/Picker/Picker.js +8 -40
  104. package/lib/commonjs/components/Picker/Picker.js.map +1 -0
  105. package/lib/commonjs/components/Picker/PickerComponent.android.js +8 -24
  106. package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -0
  107. package/lib/commonjs/components/Picker/PickerComponent.ios.js +10 -28
  108. package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +1 -0
  109. package/lib/commonjs/components/Picker/PickerComponent.web.js +8 -24
  110. package/lib/commonjs/components/Picker/PickerComponent.web.js.map +1 -0
  111. package/lib/commonjs/components/Picker/PickerTypes.js +2 -1
  112. package/lib/commonjs/components/Picker/PickerTypes.js.map +1 -0
  113. package/lib/commonjs/components/Portal/Portal.js +6 -15
  114. package/lib/commonjs/components/Portal/Portal.js.map +1 -0
  115. package/lib/commonjs/components/Portal/PortalConsumer.js +7 -16
  116. package/lib/commonjs/components/Portal/PortalConsumer.js.map +1 -0
  117. package/lib/commonjs/components/Portal/PortalHost.js +6 -32
  118. package/lib/commonjs/components/Portal/PortalHost.js.map +1 -0
  119. package/lib/commonjs/components/Portal/PortalManager.js +9 -20
  120. package/lib/commonjs/components/Portal/PortalManager.js.map +1 -0
  121. package/lib/commonjs/components/ProgressBar.js +11 -46
  122. package/lib/commonjs/components/ProgressBar.js.map +1 -0
  123. package/lib/commonjs/components/ProgressCircle.js +2 -11
  124. package/lib/commonjs/components/ProgressCircle.js.map +1 -0
  125. package/lib/commonjs/components/ProgressIndicator.js +2 -10
  126. package/lib/commonjs/components/ProgressIndicator.js.map +1 -0
  127. package/lib/commonjs/components/RadioButton/RadioButton.js +3 -15
  128. package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -0
  129. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +2 -11
  130. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +1 -0
  131. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +2 -15
  132. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -0
  133. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +3 -22
  134. package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +1 -0
  135. package/lib/commonjs/components/RadioButton/context.js +2 -6
  136. package/lib/commonjs/components/RadioButton/context.js.map +1 -0
  137. package/lib/commonjs/components/RadioButton/index.js +2 -6
  138. package/lib/commonjs/components/RadioButton/index.js.map +1 -0
  139. package/lib/commonjs/components/ResizeMode.js +3 -3
  140. package/lib/commonjs/components/ResizeMode.js.map +1 -0
  141. package/lib/commonjs/components/Row.js +2 -12
  142. package/lib/commonjs/components/Row.js.map +1 -0
  143. package/lib/commonjs/components/RowBodyIcon.js +2 -11
  144. package/lib/commonjs/components/RowBodyIcon.js.map +1 -0
  145. package/lib/commonjs/components/RowHeadlineImageCaption.js +4 -12
  146. package/lib/commonjs/components/RowHeadlineImageCaption.js.map +1 -0
  147. package/lib/commonjs/components/RowHeadlineImageIcon.js +2 -11
  148. package/lib/commonjs/components/RowHeadlineImageIcon.js.map +1 -0
  149. package/lib/commonjs/components/SVG.js +2 -10
  150. package/lib/commonjs/components/SVG.js.map +1 -0
  151. package/lib/commonjs/components/ScreenContainer.js +2 -15
  152. package/lib/commonjs/components/ScreenContainer.js.map +1 -0
  153. package/lib/commonjs/components/Slider.js +2 -22
  154. package/lib/commonjs/components/Slider.js.map +1 -0
  155. package/lib/commonjs/components/StarRating.js +2 -11
  156. package/lib/commonjs/components/StarRating.js.map +1 -0
  157. package/lib/commonjs/components/StepIndicator.js +7 -40
  158. package/lib/commonjs/components/StepIndicator.js.map +1 -0
  159. package/lib/commonjs/components/Stepper.js +6 -19
  160. package/lib/commonjs/components/Stepper.js.map +1 -0
  161. package/lib/commonjs/components/Surface.js +2 -15
  162. package/lib/commonjs/components/Surface.js.map +1 -0
  163. package/lib/commonjs/components/Swiper/Swiper.js +2 -9
  164. package/lib/commonjs/components/Swiper/Swiper.js.map +1 -0
  165. package/lib/commonjs/components/Swiper/SwiperItem.js +2 -7
  166. package/lib/commonjs/components/Swiper/SwiperItem.js.map +1 -0
  167. package/lib/commonjs/components/Swiper/index.js +2 -4
  168. package/lib/commonjs/components/Swiper/index.js.map +1 -0
  169. package/lib/commonjs/components/Switch.js +7 -19
  170. package/lib/commonjs/components/Switch.js.map +1 -0
  171. package/lib/commonjs/components/Text.js +10 -20
  172. package/lib/commonjs/components/Text.js.map +1 -0
  173. package/lib/commonjs/components/TextField.js +18 -63
  174. package/lib/commonjs/components/TextField.js.map +1 -0
  175. package/lib/commonjs/components/ToggleButton.js +2 -15
  176. package/lib/commonjs/components/ToggleButton.js.map +1 -0
  177. package/lib/commonjs/components/Touchable.js +18 -8
  178. package/lib/commonjs/components/Touchable.js.map +1 -0
  179. package/lib/commonjs/components/Touchable.web.js +2 -3
  180. package/lib/commonjs/components/Touchable.web.js.map +1 -0
  181. package/lib/commonjs/components/Typography.js +2 -6
  182. package/lib/commonjs/components/Typography.js.map +1 -0
  183. package/lib/commonjs/components/useAuthState.js +2 -10
  184. package/lib/commonjs/components/useAuthState.js.map +1 -0
  185. package/lib/commonjs/constants.js +2 -5
  186. package/lib/commonjs/constants.js.map +1 -0
  187. package/lib/commonjs/hooks.js +6 -8
  188. package/lib/commonjs/hooks.js.map +1 -0
  189. package/lib/commonjs/index.js +2 -67
  190. package/lib/commonjs/index.js.map +1 -0
  191. package/lib/commonjs/interfaces/Icon.js +5 -6
  192. package/lib/commonjs/interfaces/Icon.js.map +1 -0
  193. package/lib/commonjs/mappings/Accordion.js +2 -3
  194. package/lib/commonjs/mappings/Accordion.js.map +1 -0
  195. package/lib/commonjs/mappings/AccordionItem.js +2 -3
  196. package/lib/commonjs/mappings/AccordionItem.js.map +1 -0
  197. package/lib/commonjs/mappings/ActionSheet.js +2 -3
  198. package/lib/commonjs/mappings/ActionSheet.js.map +1 -0
  199. package/lib/commonjs/mappings/ActionSheetCancel.js +2 -3
  200. package/lib/commonjs/mappings/ActionSheetCancel.js.map +1 -0
  201. package/lib/commonjs/mappings/ActionSheetItem.js +2 -3
  202. package/lib/commonjs/mappings/ActionSheetItem.js.map +1 -0
  203. package/lib/commonjs/mappings/ActivityIndicator.js +2 -3
  204. package/lib/commonjs/mappings/ActivityIndicator.js.map +1 -0
  205. package/lib/commonjs/mappings/AudioPlayer.js +2 -3
  206. package/lib/commonjs/mappings/AudioPlayer.js.map +1 -0
  207. package/lib/commonjs/mappings/AvatarEdit.js +2 -3
  208. package/lib/commonjs/mappings/AvatarEdit.js.map +1 -0
  209. package/lib/commonjs/mappings/Banner.js +2 -3
  210. package/lib/commonjs/mappings/Banner.js.map +1 -0
  211. package/lib/commonjs/mappings/BlurView.js +2 -3
  212. package/lib/commonjs/mappings/BlurView.js.map +1 -0
  213. package/lib/commonjs/mappings/Button.js +8 -6
  214. package/lib/commonjs/mappings/Button.js.map +1 -0
  215. package/lib/commonjs/mappings/Card.js +5 -5
  216. package/lib/commonjs/mappings/Card.js.map +1 -0
  217. package/lib/commonjs/mappings/CardBlock.js +8 -6
  218. package/lib/commonjs/mappings/CardBlock.js.map +1 -0
  219. package/lib/commonjs/mappings/CardContainer.js +7 -8
  220. package/lib/commonjs/mappings/CardContainer.js.map +1 -0
  221. package/lib/commonjs/mappings/CardContainerRating.js +6 -5
  222. package/lib/commonjs/mappings/CardContainerRating.js.map +1 -0
  223. package/lib/commonjs/mappings/CardContainerShortImage.js +2 -3
  224. package/lib/commonjs/mappings/CardContainerShortImage.js.map +1 -0
  225. package/lib/commonjs/mappings/CardInline.js +2 -3
  226. package/lib/commonjs/mappings/CardInline.js.map +1 -0
  227. package/lib/commonjs/mappings/Carousel.js +2 -3
  228. package/lib/commonjs/mappings/Carousel.js.map +1 -0
  229. package/lib/commonjs/mappings/Checkbox.js +2 -3
  230. package/lib/commonjs/mappings/Checkbox.js.map +1 -0
  231. package/lib/commonjs/mappings/CheckboxGroup.js +2 -3
  232. package/lib/commonjs/mappings/CheckboxGroup.js.map +1 -0
  233. package/lib/commonjs/mappings/CheckboxRow.js +2 -3
  234. package/lib/commonjs/mappings/CheckboxRow.js.map +1 -0
  235. package/lib/commonjs/mappings/CircleImage.js +2 -3
  236. package/lib/commonjs/mappings/CircleImage.js.map +1 -0
  237. package/lib/commonjs/mappings/Container.js +2 -3
  238. package/lib/commonjs/mappings/Container.js.map +1 -0
  239. package/lib/commonjs/mappings/CustomCode.js +2 -3
  240. package/lib/commonjs/mappings/CustomCode.js.map +1 -0
  241. package/lib/commonjs/mappings/DatePicker.js +6 -5
  242. package/lib/commonjs/mappings/DatePicker.js.map +1 -0
  243. package/lib/commonjs/mappings/Divider.js +2 -3
  244. package/lib/commonjs/mappings/Divider.js.map +1 -0
  245. package/lib/commonjs/mappings/FAB.js +2 -3
  246. package/lib/commonjs/mappings/FAB.js.map +1 -0
  247. package/lib/commonjs/mappings/Fetch.js +2 -3
  248. package/lib/commonjs/mappings/Fetch.js.map +1 -0
  249. package/lib/commonjs/mappings/FieldSearchBarFull.js +4 -4
  250. package/lib/commonjs/mappings/FieldSearchBarFull.js.map +1 -0
  251. package/lib/commonjs/mappings/FlashList.js +2 -3
  252. package/lib/commonjs/mappings/FlashList.js.map +1 -0
  253. package/lib/commonjs/mappings/FlatList.js +2 -3
  254. package/lib/commonjs/mappings/FlatList.js.map +1 -0
  255. package/lib/commonjs/mappings/HeaderLarge.js +2 -3
  256. package/lib/commonjs/mappings/HeaderLarge.js.map +1 -0
  257. package/lib/commonjs/mappings/HeaderMedium.js +2 -3
  258. package/lib/commonjs/mappings/HeaderMedium.js.map +1 -0
  259. package/lib/commonjs/mappings/HeaderOverline.js +2 -3
  260. package/lib/commonjs/mappings/HeaderOverline.js.map +1 -0
  261. package/lib/commonjs/mappings/Icon.js +4 -4
  262. package/lib/commonjs/mappings/Icon.js.map +1 -0
  263. package/lib/commonjs/mappings/IconButton.js +2 -3
  264. package/lib/commonjs/mappings/IconButton.js.map +1 -0
  265. package/lib/commonjs/mappings/Image.js +2 -3
  266. package/lib/commonjs/mappings/Image.js.map +1 -0
  267. package/lib/commonjs/mappings/ImageBackground.js +2 -3
  268. package/lib/commonjs/mappings/ImageBackground.js.map +1 -0
  269. package/lib/commonjs/mappings/KeyboardAvoidingView.js +2 -3
  270. package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +1 -0
  271. package/lib/commonjs/mappings/KeyboardAwareScrollView.js +2 -3
  272. package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -0
  273. package/lib/commonjs/mappings/Layout.js +2 -3
  274. package/lib/commonjs/mappings/Layout.js.map +1 -0
  275. package/lib/commonjs/mappings/LinearGradient.js +2 -3
  276. package/lib/commonjs/mappings/LinearGradient.js.map +1 -0
  277. package/lib/commonjs/mappings/MapCallout.js +2 -3
  278. package/lib/commonjs/mappings/MapCallout.js.map +1 -0
  279. package/lib/commonjs/mappings/MapMarker.js +2 -3
  280. package/lib/commonjs/mappings/MapMarker.js.map +1 -0
  281. package/lib/commonjs/mappings/MapView.js +2 -3
  282. package/lib/commonjs/mappings/MapView.js.map +1 -0
  283. package/lib/commonjs/mappings/Modal.js +2 -3
  284. package/lib/commonjs/mappings/Modal.js.map +1 -0
  285. package/lib/commonjs/mappings/NumberInput.js +6 -5
  286. package/lib/commonjs/mappings/NumberInput.js.map +1 -0
  287. package/lib/commonjs/mappings/Picker.js +6 -5
  288. package/lib/commonjs/mappings/Picker.js.map +1 -0
  289. package/lib/commonjs/mappings/ProgressBar.js +2 -3
  290. package/lib/commonjs/mappings/ProgressBar.js.map +1 -0
  291. package/lib/commonjs/mappings/ProgressCircle.js +2 -3
  292. package/lib/commonjs/mappings/ProgressCircle.js.map +1 -0
  293. package/lib/commonjs/mappings/ProgressIndicator.js +2 -3
  294. package/lib/commonjs/mappings/ProgressIndicator.js.map +1 -0
  295. package/lib/commonjs/mappings/RadioButton.js +2 -3
  296. package/lib/commonjs/mappings/RadioButton.js.map +1 -0
  297. package/lib/commonjs/mappings/RadioButtonGroup.js +2 -3
  298. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -0
  299. package/lib/commonjs/mappings/RadioButtonRow.js +2 -3
  300. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -0
  301. package/lib/commonjs/mappings/RowBodyIcon.js +2 -3
  302. package/lib/commonjs/mappings/RowBodyIcon.js.map +1 -0
  303. package/lib/commonjs/mappings/RowHeadlineImageCaption.js +2 -3
  304. package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +1 -0
  305. package/lib/commonjs/mappings/RowHeadlineImageIcon.js +14 -9
  306. package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +1 -0
  307. package/lib/commonjs/mappings/SVG.js +2 -3
  308. package/lib/commonjs/mappings/SVG.js.map +1 -0
  309. package/lib/commonjs/mappings/SafeAreaView.js +2 -3
  310. package/lib/commonjs/mappings/SafeAreaView.js.map +1 -0
  311. package/lib/commonjs/mappings/ScrollView.js +2 -3
  312. package/lib/commonjs/mappings/ScrollView.js.map +1 -0
  313. package/lib/commonjs/mappings/Slider.js +2 -3
  314. package/lib/commonjs/mappings/Slider.js.map +1 -0
  315. package/lib/commonjs/mappings/StarRating.js +3 -4
  316. package/lib/commonjs/mappings/StarRating.js.map +1 -0
  317. package/lib/commonjs/mappings/Stepper.js +2 -3
  318. package/lib/commonjs/mappings/Stepper.js.map +1 -0
  319. package/lib/commonjs/mappings/Surface.js +2 -3
  320. package/lib/commonjs/mappings/Surface.js.map +1 -0
  321. package/lib/commonjs/mappings/Swiper.js +2 -3
  322. package/lib/commonjs/mappings/Swiper.js.map +1 -0
  323. package/lib/commonjs/mappings/SwiperItem.js +2 -3
  324. package/lib/commonjs/mappings/SwiperItem.js.map +1 -0
  325. package/lib/commonjs/mappings/Switch.js +2 -3
  326. package/lib/commonjs/mappings/Switch.js.map +1 -0
  327. package/lib/commonjs/mappings/Text.js +7 -6
  328. package/lib/commonjs/mappings/Text.js.map +1 -0
  329. package/lib/commonjs/mappings/TextArea.js +4 -4
  330. package/lib/commonjs/mappings/TextArea.js.map +1 -0
  331. package/lib/commonjs/mappings/TextField.js +10 -10
  332. package/lib/commonjs/mappings/TextField.js.map +1 -0
  333. package/lib/commonjs/mappings/TextInput.js +5 -5
  334. package/lib/commonjs/mappings/TextInput.js.map +1 -0
  335. package/lib/commonjs/mappings/ToggleButton.js +2 -3
  336. package/lib/commonjs/mappings/ToggleButton.js.map +1 -0
  337. package/lib/commonjs/mappings/Touchable.js +2 -3
  338. package/lib/commonjs/mappings/Touchable.js.map +1 -0
  339. package/lib/commonjs/mappings/Video.js +2 -3
  340. package/lib/commonjs/mappings/Video.js.map +1 -0
  341. package/lib/commonjs/mappings/View.js +2 -3
  342. package/lib/commonjs/mappings/View.js.map +1 -0
  343. package/lib/commonjs/mappings/WebView.js +2 -3
  344. package/lib/commonjs/mappings/WebView.js.map +1 -0
  345. package/lib/commonjs/styles/DarkTheme.js +7 -7
  346. package/lib/commonjs/styles/DarkTheme.js.map +1 -0
  347. package/lib/commonjs/styles/DefaultTheme.js +28 -18
  348. package/lib/commonjs/styles/DefaultTheme.js.map +1 -0
  349. package/lib/commonjs/styles/fonts.js +5 -6
  350. package/lib/commonjs/styles/fonts.js.map +1 -0
  351. package/lib/commonjs/styles/overlay.js +7 -15
  352. package/lib/commonjs/styles/overlay.js.map +1 -0
  353. package/lib/commonjs/styles/shadow.js +2 -10
  354. package/lib/commonjs/styles/shadow.js.map +1 -0
  355. package/lib/commonjs/theming.js +2 -5
  356. package/lib/commonjs/theming.js.map +1 -0
  357. package/lib/commonjs/utilities.js +4 -15
  358. package/lib/commonjs/utilities.js.map +1 -0
  359. package/lib/module/Provider.js +2 -2
  360. package/lib/module/Provider.js.map +1 -0
  361. package/lib/module/components/Accordion/AccordionGroup.js +2 -5
  362. package/lib/module/components/Accordion/AccordionGroup.js.map +1 -0
  363. package/lib/module/components/Accordion/AccordionItem.js +2 -4
  364. package/lib/module/components/Accordion/AccordionItem.js.map +1 -0
  365. package/lib/module/components/Accordion/index.js +2 -1
  366. package/lib/module/components/Accordion/index.js.map +1 -0
  367. package/lib/module/components/ActionSheet/ActionSheet.js +2 -3
  368. package/lib/module/components/ActionSheet/ActionSheet.js.map +1 -0
  369. package/lib/module/components/ActionSheet/ActionSheetCancel.js +2 -3
  370. package/lib/module/components/ActionSheet/ActionSheetCancel.js.map +1 -0
  371. package/lib/module/components/ActionSheet/ActionSheetItem.js +2 -3
  372. package/lib/module/components/ActionSheet/ActionSheetItem.js.map +1 -0
  373. package/lib/module/components/ActionSheet/index.js +2 -1
  374. package/lib/module/components/ActionSheet/index.js.map +1 -0
  375. package/lib/module/components/AnimatedCircularProgress.js +2 -7
  376. package/lib/module/components/AnimatedCircularProgress.js.map +1 -0
  377. package/lib/module/components/AspectRatio.js +2 -7
  378. package/lib/module/components/AspectRatio.js.map +1 -0
  379. package/lib/module/components/AvatarEdit.js +2 -4
  380. package/lib/module/components/AvatarEdit.js.map +1 -0
  381. package/lib/module/components/Banner.js +11 -11
  382. package/lib/module/components/Banner.js.map +1 -0
  383. package/lib/module/components/Button.js +4 -11
  384. package/lib/module/components/Button.js.map +1 -0
  385. package/lib/module/components/Card.js +2 -3
  386. package/lib/module/components/Card.js.map +1 -0
  387. package/lib/module/components/CardBlock.js +2 -7
  388. package/lib/module/components/CardBlock.js.map +1 -0
  389. package/lib/module/components/CardContainer.js +2 -8
  390. package/lib/module/components/CardContainer.js.map +1 -0
  391. package/lib/module/components/CardContainerRating.js +4 -9
  392. package/lib/module/components/CardContainerRating.js.map +1 -0
  393. package/lib/module/components/CardContainerShortImage.js +2 -4
  394. package/lib/module/components/CardContainerShortImage.js.map +1 -0
  395. package/lib/module/components/CardInline.js +2 -3
  396. package/lib/module/components/CardInline.js.map +1 -0
  397. package/lib/module/components/Carousel.js +5 -10
  398. package/lib/module/components/Carousel.js.map +1 -0
  399. package/lib/module/components/Checkbox/Checkbox.js +5 -10
  400. package/lib/module/components/Checkbox/Checkbox.js.map +1 -0
  401. package/lib/module/components/Checkbox/CheckboxGroup.js +2 -6
  402. package/lib/module/components/Checkbox/CheckboxGroup.js.map +1 -0
  403. package/lib/module/components/Checkbox/CheckboxGroupRow.js +2 -9
  404. package/lib/module/components/Checkbox/CheckboxGroupRow.js.map +1 -0
  405. package/lib/module/components/Checkbox/CheckboxRow.js +5 -12
  406. package/lib/module/components/Checkbox/CheckboxRow.js.map +1 -0
  407. package/lib/module/components/Checkbox/context.js +2 -3
  408. package/lib/module/components/Checkbox/context.js.map +1 -0
  409. package/lib/module/components/Checkbox/index.js +2 -1
  410. package/lib/module/components/Checkbox/index.js.map +1 -0
  411. package/lib/module/components/CircleImage.js +2 -4
  412. package/lib/module/components/CircleImage.js.map +1 -0
  413. package/lib/module/components/CircularProgress.js +5 -10
  414. package/lib/module/components/CircularProgress.js.map +1 -0
  415. package/lib/module/components/Config.js +7 -12
  416. package/lib/module/components/Config.js.map +1 -0
  417. package/lib/module/components/Container.js +2 -4
  418. package/lib/module/components/Container.js.map +1 -0
  419. package/lib/module/components/DatePicker/DatePicker.js +18 -34
  420. package/lib/module/components/DatePicker/DatePicker.js.map +1 -0
  421. package/lib/module/components/DatePicker/DatePickerComponent.js +2 -3
  422. package/lib/module/components/DatePicker/DatePickerComponent.js.map +1 -0
  423. package/lib/module/components/DatePicker/DatePickerComponent.web.js +2 -3
  424. package/lib/module/components/DatePicker/DatePickerComponent.web.js.map +1 -0
  425. package/lib/module/components/DatePicker/DatePickerComponentType.js +2 -1
  426. package/lib/module/components/DatePicker/DatePickerComponentType.js.map +1 -0
  427. package/lib/module/components/DeprecatedButton.js +2 -10
  428. package/lib/module/components/DeprecatedButton.js.map +1 -0
  429. package/lib/module/components/DeprecatedCardWrapper.js +2 -7
  430. package/lib/module/components/DeprecatedCardWrapper.js.map +1 -0
  431. package/lib/module/components/DeprecatedFAB.js +2 -14
  432. package/lib/module/components/DeprecatedFAB.js.map +1 -0
  433. package/lib/module/components/Divider.js +2 -4
  434. package/lib/module/components/Divider.js.map +1 -0
  435. package/lib/module/components/Elevation.js +2 -4
  436. package/lib/module/components/Elevation.js.map +1 -0
  437. package/lib/module/components/FAB.js +2 -4
  438. package/lib/module/components/FAB.js.map +1 -0
  439. package/lib/module/components/FieldSearchBarFull.js +2 -10
  440. package/lib/module/components/FieldSearchBarFull.js.map +1 -0
  441. package/lib/module/components/FormRow.js +2 -2
  442. package/lib/module/components/FormRow.js.map +1 -0
  443. package/lib/module/components/Header.js +2 -3
  444. package/lib/module/components/Header.js.map +1 -0
  445. package/lib/module/components/HeaderLarge.js +2 -3
  446. package/lib/module/components/HeaderLarge.js.map +1 -0
  447. package/lib/module/components/HeaderMedium.js +2 -3
  448. package/lib/module/components/HeaderMedium.js.map +1 -0
  449. package/lib/module/components/HeaderOverline.js +2 -3
  450. package/lib/module/components/HeaderOverline.js.map +1 -0
  451. package/lib/module/components/IconButton.js +2 -4
  452. package/lib/module/components/IconButton.js.map +1 -0
  453. package/lib/module/components/Image.js +2 -11
  454. package/lib/module/components/Image.js.map +1 -0
  455. package/lib/module/components/Justification.js +2 -1
  456. package/lib/module/components/Justification.js.map +1 -0
  457. package/lib/module/components/Layout.js +6 -4
  458. package/lib/module/components/Layout.js.map +1 -0
  459. package/lib/module/components/NumberInput.js +10 -17
  460. package/lib/module/components/NumberInput.js.map +1 -0
  461. package/lib/module/components/Picker/Picker.js +8 -24
  462. package/lib/module/components/Picker/Picker.js.map +1 -0
  463. package/lib/module/components/Picker/PickerComponent.android.js +8 -11
  464. package/lib/module/components/Picker/PickerComponent.android.js.map +1 -0
  465. package/lib/module/components/Picker/PickerComponent.ios.js +10 -12
  466. package/lib/module/components/Picker/PickerComponent.ios.js.map +1 -0
  467. package/lib/module/components/Picker/PickerComponent.web.js +8 -11
  468. package/lib/module/components/Picker/PickerComponent.web.js.map +1 -0
  469. package/lib/module/components/Picker/PickerTypes.js +2 -1
  470. package/lib/module/components/Picker/PickerTypes.js.map +1 -0
  471. package/lib/module/components/Portal/Portal.js +6 -7
  472. package/lib/module/components/Portal/Portal.js.map +1 -0
  473. package/lib/module/components/Portal/PortalConsumer.js +7 -11
  474. package/lib/module/components/Portal/PortalConsumer.js.map +1 -0
  475. package/lib/module/components/Portal/PortalHost.js +6 -23
  476. package/lib/module/components/Portal/PortalHost.js.map +1 -0
  477. package/lib/module/components/Portal/PortalManager.js +9 -15
  478. package/lib/module/components/Portal/PortalManager.js.map +1 -0
  479. package/lib/module/components/ProgressBar.js +7 -18
  480. package/lib/module/components/ProgressBar.js.map +1 -0
  481. package/lib/module/components/ProgressCircle.js +2 -3
  482. package/lib/module/components/ProgressCircle.js.map +1 -0
  483. package/lib/module/components/ProgressIndicator.js +2 -3
  484. package/lib/module/components/ProgressIndicator.js.map +1 -0
  485. package/lib/module/components/RadioButton/RadioButton.js +3 -7
  486. package/lib/module/components/RadioButton/RadioButton.js.map +1 -0
  487. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +2 -4
  488. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js.map +1 -0
  489. package/lib/module/components/RadioButton/RadioButtonGroup.js +2 -8
  490. package/lib/module/components/RadioButton/RadioButtonGroup.js.map +1 -0
  491. package/lib/module/components/RadioButton/RadioButtonRow.js +3 -10
  492. package/lib/module/components/RadioButton/RadioButtonRow.js.map +1 -0
  493. package/lib/module/components/RadioButton/context.js +2 -3
  494. package/lib/module/components/RadioButton/context.js.map +1 -0
  495. package/lib/module/components/RadioButton/index.js +2 -1
  496. package/lib/module/components/RadioButton/index.js.map +1 -0
  497. package/lib/module/components/ResizeMode.js +2 -1
  498. package/lib/module/components/ResizeMode.js.map +1 -0
  499. package/lib/module/components/Row.js +2 -3
  500. package/lib/module/components/Row.js.map +1 -0
  501. package/lib/module/components/RowBodyIcon.js +2 -3
  502. package/lib/module/components/RowBodyIcon.js.map +1 -0
  503. package/lib/module/components/RowHeadlineImageCaption.js +4 -4
  504. package/lib/module/components/RowHeadlineImageCaption.js.map +1 -0
  505. package/lib/module/components/RowHeadlineImageIcon.js +2 -3
  506. package/lib/module/components/RowHeadlineImageIcon.js.map +1 -0
  507. package/lib/module/components/SVG.js +2 -3
  508. package/lib/module/components/SVG.js.map +1 -0
  509. package/lib/module/components/ScreenContainer.js +2 -7
  510. package/lib/module/components/ScreenContainer.js.map +1 -0
  511. package/lib/module/components/Slider.js +2 -11
  512. package/lib/module/components/Slider.js.map +1 -0
  513. package/lib/module/components/StarRating.js +2 -4
  514. package/lib/module/components/StarRating.js.map +1 -0
  515. package/lib/module/components/StepIndicator.js +7 -30
  516. package/lib/module/components/StepIndicator.js.map +1 -0
  517. package/lib/module/components/Stepper.js +6 -10
  518. package/lib/module/components/Stepper.js.map +1 -0
  519. package/lib/module/components/Surface.js +2 -6
  520. package/lib/module/components/Surface.js.map +1 -0
  521. package/lib/module/components/Swiper/Swiper.js +2 -5
  522. package/lib/module/components/Swiper/Swiper.js.map +1 -0
  523. package/lib/module/components/Swiper/SwiperItem.js +2 -3
  524. package/lib/module/components/Swiper/SwiperItem.js.map +1 -0
  525. package/lib/module/components/Swiper/index.js +2 -1
  526. package/lib/module/components/Swiper/index.js.map +1 -0
  527. package/lib/module/components/Switch.js +7 -8
  528. package/lib/module/components/Switch.js.map +1 -0
  529. package/lib/module/components/Text.js +10 -12
  530. package/lib/module/components/Text.js.map +1 -0
  531. package/lib/module/components/TextField.js +18 -51
  532. package/lib/module/components/TextField.js.map +1 -0
  533. package/lib/module/components/ToggleButton.js +4 -22
  534. package/lib/module/components/ToggleButton.js.map +1 -0
  535. package/lib/module/components/Touchable.js +2 -2
  536. package/lib/module/components/Touchable.js.map +1 -0
  537. package/lib/module/components/Touchable.web.js +2 -1
  538. package/lib/module/components/Touchable.web.js.map +1 -0
  539. package/lib/module/components/Typography.js +2 -1
  540. package/lib/module/components/Typography.js.map +1 -0
  541. package/lib/module/components/useAuthState.js +2 -5
  542. package/lib/module/components/useAuthState.js.map +1 -0
  543. package/lib/module/constants.js +4 -2
  544. package/lib/module/constants.js.map +1 -0
  545. package/lib/module/hooks.js +6 -3
  546. package/lib/module/hooks.js.map +1 -0
  547. package/lib/module/index.js +5 -3
  548. package/lib/module/index.js.map +1 -0
  549. package/lib/module/interfaces/Icon.js +4 -2
  550. package/lib/module/interfaces/Icon.js.map +1 -0
  551. package/lib/module/mappings/Accordion.js +2 -1
  552. package/lib/module/mappings/Accordion.js.map +1 -0
  553. package/lib/module/mappings/AccordionItem.js +2 -1
  554. package/lib/module/mappings/AccordionItem.js.map +1 -0
  555. package/lib/module/mappings/ActionSheet.js +2 -1
  556. package/lib/module/mappings/ActionSheet.js.map +1 -0
  557. package/lib/module/mappings/ActionSheetCancel.js +2 -1
  558. package/lib/module/mappings/ActionSheetCancel.js.map +1 -0
  559. package/lib/module/mappings/ActionSheetItem.js +2 -1
  560. package/lib/module/mappings/ActionSheetItem.js.map +1 -0
  561. package/lib/module/mappings/ActivityIndicator.js +2 -1
  562. package/lib/module/mappings/ActivityIndicator.js.map +1 -0
  563. package/lib/module/mappings/AudioPlayer.js +2 -1
  564. package/lib/module/mappings/AudioPlayer.js.map +1 -0
  565. package/lib/module/mappings/AvatarEdit.js +2 -1
  566. package/lib/module/mappings/AvatarEdit.js.map +1 -0
  567. package/lib/module/mappings/Banner.js +2 -1
  568. package/lib/module/mappings/Banner.js.map +1 -0
  569. package/lib/module/mappings/BlurView.js +2 -1
  570. package/lib/module/mappings/BlurView.js.map +1 -0
  571. package/lib/module/mappings/Button.js +8 -4
  572. package/lib/module/mappings/Button.js.map +1 -0
  573. package/lib/module/mappings/Card.js +5 -3
  574. package/lib/module/mappings/Card.js.map +1 -0
  575. package/lib/module/mappings/CardBlock.js +8 -4
  576. package/lib/module/mappings/CardBlock.js.map +1 -0
  577. package/lib/module/mappings/CardContainer.js +7 -6
  578. package/lib/module/mappings/CardContainer.js.map +1 -0
  579. package/lib/module/mappings/CardContainerRating.js +6 -3
  580. package/lib/module/mappings/CardContainerRating.js.map +1 -0
  581. package/lib/module/mappings/CardContainerShortImage.js +2 -1
  582. package/lib/module/mappings/CardContainerShortImage.js.map +1 -0
  583. package/lib/module/mappings/CardInline.js +2 -1
  584. package/lib/module/mappings/CardInline.js.map +1 -0
  585. package/lib/module/mappings/Carousel.js +2 -1
  586. package/lib/module/mappings/Carousel.js.map +1 -0
  587. package/lib/module/mappings/Checkbox.js +2 -1
  588. package/lib/module/mappings/Checkbox.js.map +1 -0
  589. package/lib/module/mappings/CheckboxGroup.js +2 -1
  590. package/lib/module/mappings/CheckboxGroup.js.map +1 -0
  591. package/lib/module/mappings/CheckboxRow.js +2 -1
  592. package/lib/module/mappings/CheckboxRow.js.map +1 -0
  593. package/lib/module/mappings/CircleImage.js +2 -1
  594. package/lib/module/mappings/CircleImage.js.map +1 -0
  595. package/lib/module/mappings/Container.js +2 -1
  596. package/lib/module/mappings/Container.js.map +1 -0
  597. package/lib/module/mappings/CustomCode.js +2 -1
  598. package/lib/module/mappings/CustomCode.js.map +1 -0
  599. package/lib/module/mappings/DatePicker.js +6 -3
  600. package/lib/module/mappings/DatePicker.js.map +1 -0
  601. package/lib/module/mappings/Divider.js +2 -1
  602. package/lib/module/mappings/Divider.js.map +1 -0
  603. package/lib/module/mappings/FAB.js +2 -1
  604. package/lib/module/mappings/FAB.js.map +1 -0
  605. package/lib/module/mappings/Fetch.js +2 -2
  606. package/lib/module/mappings/Fetch.js.map +1 -0
  607. package/lib/module/mappings/FieldSearchBarFull.js +4 -2
  608. package/lib/module/mappings/FieldSearchBarFull.js.map +1 -0
  609. package/lib/module/mappings/FlashList.js +2 -1
  610. package/lib/module/mappings/FlashList.js.map +1 -0
  611. package/lib/module/mappings/FlatList.js +2 -1
  612. package/lib/module/mappings/FlatList.js.map +1 -0
  613. package/lib/module/mappings/HeaderLarge.js +2 -1
  614. package/lib/module/mappings/HeaderLarge.js.map +1 -0
  615. package/lib/module/mappings/HeaderMedium.js +2 -1
  616. package/lib/module/mappings/HeaderMedium.js.map +1 -0
  617. package/lib/module/mappings/HeaderOverline.js +2 -1
  618. package/lib/module/mappings/HeaderOverline.js.map +1 -0
  619. package/lib/module/mappings/Icon.js +4 -2
  620. package/lib/module/mappings/Icon.js.map +1 -0
  621. package/lib/module/mappings/IconButton.js +2 -1
  622. package/lib/module/mappings/IconButton.js.map +1 -0
  623. package/lib/module/mappings/Image.js +2 -1
  624. package/lib/module/mappings/Image.js.map +1 -0
  625. package/lib/module/mappings/ImageBackground.js +2 -1
  626. package/lib/module/mappings/ImageBackground.js.map +1 -0
  627. package/lib/module/mappings/KeyboardAvoidingView.js +2 -1
  628. package/lib/module/mappings/KeyboardAvoidingView.js.map +1 -0
  629. package/lib/module/mappings/KeyboardAwareScrollView.js +2 -1
  630. package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -0
  631. package/lib/module/mappings/Layout.js +2 -1
  632. package/lib/module/mappings/Layout.js.map +1 -0
  633. package/lib/module/mappings/LinearGradient.js +2 -1
  634. package/lib/module/mappings/LinearGradient.js.map +1 -0
  635. package/lib/module/mappings/MapCallout.js +2 -1
  636. package/lib/module/mappings/MapCallout.js.map +1 -0
  637. package/lib/module/mappings/MapMarker.js +2 -1
  638. package/lib/module/mappings/MapMarker.js.map +1 -0
  639. package/lib/module/mappings/MapView.js +2 -1
  640. package/lib/module/mappings/MapView.js.map +1 -0
  641. package/lib/module/mappings/Modal.js +2 -1
  642. package/lib/module/mappings/Modal.js.map +1 -0
  643. package/lib/module/mappings/NumberInput.js +6 -3
  644. package/lib/module/mappings/NumberInput.js.map +1 -0
  645. package/lib/module/mappings/Picker.js +6 -3
  646. package/lib/module/mappings/Picker.js.map +1 -0
  647. package/lib/module/mappings/ProgressBar.js +2 -1
  648. package/lib/module/mappings/ProgressBar.js.map +1 -0
  649. package/lib/module/mappings/ProgressCircle.js +2 -1
  650. package/lib/module/mappings/ProgressCircle.js.map +1 -0
  651. package/lib/module/mappings/ProgressIndicator.js +2 -1
  652. package/lib/module/mappings/ProgressIndicator.js.map +1 -0
  653. package/lib/module/mappings/RadioButton.js +2 -1
  654. package/lib/module/mappings/RadioButton.js.map +1 -0
  655. package/lib/module/mappings/RadioButtonGroup.js +2 -1
  656. package/lib/module/mappings/RadioButtonGroup.js.map +1 -0
  657. package/lib/module/mappings/RadioButtonRow.js +2 -1
  658. package/lib/module/mappings/RadioButtonRow.js.map +1 -0
  659. package/lib/module/mappings/RowBodyIcon.js +2 -1
  660. package/lib/module/mappings/RowBodyIcon.js.map +1 -0
  661. package/lib/module/mappings/RowHeadlineImageCaption.js +2 -1
  662. package/lib/module/mappings/RowHeadlineImageCaption.js.map +1 -0
  663. package/lib/module/mappings/RowHeadlineImageIcon.js +14 -7
  664. package/lib/module/mappings/RowHeadlineImageIcon.js.map +1 -0
  665. package/lib/module/mappings/SVG.js +2 -1
  666. package/lib/module/mappings/SVG.js.map +1 -0
  667. package/lib/module/mappings/SafeAreaView.js +2 -1
  668. package/lib/module/mappings/SafeAreaView.js.map +1 -0
  669. package/lib/module/mappings/ScrollView.js +2 -1
  670. package/lib/module/mappings/ScrollView.js.map +1 -0
  671. package/lib/module/mappings/Slider.js +2 -1
  672. package/lib/module/mappings/Slider.js.map +1 -0
  673. package/lib/module/mappings/StarRating.js +3 -2
  674. package/lib/module/mappings/StarRating.js.map +1 -0
  675. package/lib/module/mappings/Stepper.js +2 -1
  676. package/lib/module/mappings/Stepper.js.map +1 -0
  677. package/lib/module/mappings/Surface.js +2 -1
  678. package/lib/module/mappings/Surface.js.map +1 -0
  679. package/lib/module/mappings/Swiper.js +2 -1
  680. package/lib/module/mappings/Swiper.js.map +1 -0
  681. package/lib/module/mappings/SwiperItem.js +2 -1
  682. package/lib/module/mappings/SwiperItem.js.map +1 -0
  683. package/lib/module/mappings/Switch.js +2 -1
  684. package/lib/module/mappings/Switch.js.map +1 -0
  685. package/lib/module/mappings/Text.js +7 -4
  686. package/lib/module/mappings/Text.js.map +1 -0
  687. package/lib/module/mappings/TextArea.js +4 -2
  688. package/lib/module/mappings/TextArea.js.map +1 -0
  689. package/lib/module/mappings/TextField.js +10 -8
  690. package/lib/module/mappings/TextField.js.map +1 -0
  691. package/lib/module/mappings/TextInput.js +5 -3
  692. package/lib/module/mappings/TextInput.js.map +1 -0
  693. package/lib/module/mappings/ToggleButton.js +2 -1
  694. package/lib/module/mappings/ToggleButton.js.map +1 -0
  695. package/lib/module/mappings/Touchable.js +2 -1
  696. package/lib/module/mappings/Touchable.js.map +1 -0
  697. package/lib/module/mappings/Video.js +2 -1
  698. package/lib/module/mappings/Video.js.map +1 -0
  699. package/lib/module/mappings/View.js +2 -1
  700. package/lib/module/mappings/View.js.map +1 -0
  701. package/lib/module/mappings/WebView.js +2 -1
  702. package/lib/module/mappings/WebView.js.map +1 -0
  703. package/lib/module/styles/DarkTheme.js +6 -3
  704. package/lib/module/styles/DarkTheme.js.map +1 -0
  705. package/lib/module/styles/DefaultTheme.js +28 -14
  706. package/lib/module/styles/DefaultTheme.js.map +1 -0
  707. package/lib/module/styles/fonts.js +4 -2
  708. package/lib/module/styles/fonts.js.map +1 -0
  709. package/lib/module/styles/overlay.js +6 -11
  710. package/lib/module/styles/overlay.js.map +1 -0
  711. package/lib/module/styles/shadow.js +2 -7
  712. package/lib/module/styles/shadow.js.map +1 -0
  713. package/lib/module/theming.js +2 -1
  714. package/lib/module/theming.js.map +1 -0
  715. package/lib/module/utilities.js +4 -6
  716. package/lib/module/utilities.js.map +1 -0
  717. package/lib/typescript/src/components/Text.d.ts +2 -1
  718. package/lib/typescript/src/components/TextField.d.ts +2 -1
  719. package/lib/typescript/src/index.d.ts +0 -1
  720. package/lib/typescript/src/mappings/TextField.d.ts +2 -2
  721. package/lib/typescript/src/mappings/TextInput.d.ts +1 -1
  722. package/package.json +4 -6
  723. package/src/components/Text.js +8 -2
  724. package/src/components/Text.tsx +6 -1
  725. package/src/components/TextField.js +6 -1
  726. package/src/components/TextField.tsx +7 -1
  727. package/src/index.js +0 -1
  728. package/src/index.tsx +0 -1
  729. package/src/mappings/TextField.js +1 -1
  730. package/src/mappings/TextField.ts +1 -1
  731. package/src/mappings/TextInput.js +1 -1
  732. package/src/mappings/TextInput.ts +1 -1
  733. package/lib/commonjs/components/TabView/TabView.js +0 -102
  734. package/lib/commonjs/components/TabView/TabViewItem.js +0 -26
  735. package/lib/commonjs/components/TabView/index.js +0 -23
  736. package/lib/commonjs/mappings/TabView.js +0 -79
  737. package/lib/module/components/TabView/TabView.js +0 -87
  738. package/lib/module/components/TabView/TabViewItem.js +0 -18
  739. package/lib/module/components/TabView/index.js +0 -2
  740. package/lib/module/mappings/TabView.js +0 -70
  741. package/lib/typescript/src/components/TabView/TabView.d.ts +0 -19
  742. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -10
  743. package/lib/typescript/src/components/TabView/index.d.ts +0 -2
  744. package/lib/typescript/src/mappings/TabView.d.ts +0 -111
  745. package/src/components/TabView/TabView.js +0 -34
  746. package/src/components/TabView/TabView.tsx +0 -97
  747. package/src/components/TabView/TabViewItem.js +0 -5
  748. package/src/components/TabView/TabViewItem.tsx +0 -21
  749. package/src/components/TabView/index.js +0 -2
  750. package/src/components/TabView/index.tsx +0 -2
  751. package/src/mappings/TabView.js +0 -73
  752. package/src/mappings/TabView.ts +0 -80
@@ -0,0 +1 @@
1
+ {"version":3,"names":["maybeParseValue","value","undefined","isNumber","maybe","toNumber","Slider","Icon","leftIcon","rightIcon","leftIconColor","rightIconColor","defaultValue","minimumTrackTintColor","maximumTrackTintColor","thumbTintColor","minimumValue","maximumValue","tapToSeek","step","onValueChange","style","theme","rest","internalValue","setInternalValue","React","useState","useEffect","minTrackColor","colors","primary","maxTrackColor","light","thumbColor","leftIconThemeColor","rightIconThemeColor","parsedValue","handleSlidingComplete","newValue","styles","container","slider","StyleSheet","create","height","flexDirection","alignItems","flex","marginHorizontal","withTheme"],"sources":["Slider.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { View, StyleSheet, StyleProp, ViewStyle } from \"react-native\";\nimport NativeSlider from \"@react-native-community/slider\";\nimport isNumber from \"lodash.isnumber\";\nimport toNumber from \"lodash.tonumber\";\n\nimport { withTheme } from \"../theming\";\nimport type { Theme } from \"../styles/DefaultTheme\";\nimport type { IconSlot } from \"../interfaces/Icon\";\n\nexport type Props = {\n style?: StyleProp<ViewStyle>;\n value?: number;\n defaultValue?: number;\n minimumTrackTintColor: string;\n maximumTrackTintColor: string;\n leftIcon?: string;\n rightIcon?: string;\n leftIconColor?: string;\n rightIconColor?: string;\n thumbTintColor?: string;\n tapToSeek?: boolean;\n minimumValue: number;\n maximumValue: number;\n step: number;\n onValueChange?: (value: number) => void;\n theme: Theme;\n} & IconSlot;\n\nfunction maybeParseValue(value: any) {\n if (value === undefined) {\n return undefined;\n }\n\n if (isNumber(value)) {\n return value;\n }\n\n try {\n const maybe = toNumber(value);\n if (isNumber(maybe)) {\n return maybe;\n }\n } catch {\n return undefined;\n }\n\n return undefined;\n}\n\nfunction Slider({\n Icon,\n leftIcon,\n rightIcon,\n leftIconColor,\n rightIconColor,\n value,\n defaultValue,\n minimumTrackTintColor,\n maximumTrackTintColor,\n thumbTintColor,\n minimumValue = 0,\n maximumValue = 100,\n tapToSeek,\n step = 1,\n onValueChange = () => {},\n style,\n theme,\n ...rest\n}: Props) {\n const [internalValue, setInternalValue] = React.useState<number | undefined>(\n value || defaultValue\n );\n\n React.useEffect(() => {\n if (value != null) {\n setInternalValue(value);\n }\n }, [value]);\n\n React.useEffect(() => {\n if (defaultValue != null) {\n setInternalValue(defaultValue);\n }\n }, [defaultValue]);\n\n const minTrackColor = minimumTrackTintColor || theme.colors.primary;\n const maxTrackColor = maximumTrackTintColor || theme.colors.light;\n const thumbColor = thumbTintColor || theme.colors.primary;\n\n const leftIconThemeColor = leftIconColor || theme.colors.light;\n const rightIconThemeColor = rightIconColor || theme.colors.light;\n\n const parsedValue = maybeParseValue(internalValue);\n\n const handleSlidingComplete = (newValue: number) => {\n setInternalValue(newValue);\n onValueChange(newValue);\n };\n\n return (\n <View style={[styles.container, style]} {...rest}>\n {leftIcon ? (\n <Icon color={leftIconThemeColor} name={leftIcon} size={24} />\n ) : null}\n <NativeSlider\n value={parsedValue}\n step={step}\n minimumValue={minimumValue}\n maximumValue={maximumValue}\n tapToSeek={tapToSeek}\n minimumTrackTintColor={minTrackColor}\n maximumTrackTintColor={maxTrackColor}\n thumbTintColor={thumbColor}\n onSlidingComplete={handleSlidingComplete}\n style={styles.slider}\n />\n {rightIcon ? (\n <Icon color={rightIconThemeColor} name={rightIcon} size={24} />\n ) : null}\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n container: {\n height: 40,\n flexDirection: \"row\",\n alignItems: \"center\",\n },\n slider: {\n flex: 1,\n marginHorizontal: 12,\n },\n});\n\nexport default withTheme(Slider);\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAuC;AAAA;AAAA;AAAA;AAuBvC,SAASA,eAAe,CAACC,KAAU,EAAE;EACnC,IAAIA,KAAK,KAAKC,SAAS,EAAE;IACvB,OAAOA,SAAS;EAClB;EAEA,IAAI,IAAAC,eAAQ,EAACF,KAAK,CAAC,EAAE;IACnB,OAAOA,KAAK;EACd;EAEA,IAAI;IACF,MAAMG,KAAK,GAAG,IAAAC,gBAAQ,EAACJ,KAAK,CAAC;IAC7B,IAAI,IAAAE,eAAQ,EAACC,KAAK,CAAC,EAAE;MACnB,OAAOA,KAAK;IACd;EACF,CAAC,CAAC,MAAM;IACN,OAAOF,SAAS;EAClB;EAEA,OAAOA,SAAS;AAClB;AAEA,SAASI,MAAM,OAmBL;EAAA,IAnBM;IACdC,IAAI;IACJC,QAAQ;IACRC,SAAS;IACTC,aAAa;IACbC,cAAc;IACdV,KAAK;IACLW,YAAY;IACZC,qBAAqB;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AACC,SAAS,EAAEpB,KAAK;EAAE,GAAKE,IAAI,GAC7Cf,QAAQ,gBACP,oBAAC,IAAI;IAAC,KAAK,EAAE2B,kBAAmB;IAAC,IAAI,EAAE3B,QAAS;IAAC,IAAI,EAAE;EAAG,EAAG,GAC3D,IAAI,eACR,oBAAC,eAAY;IACX,KAAK,EAAE6B,WAAY;IACnB,IAAI,EAAElB,IAAK;IACX,YAAY,EAAEH,YAAa;IAC3B,YAAY,EAAEC,YAAa;IAC3B,SAAS,EAAEC,SAAU;IACrB,qBAAqB,EAAEW,aAAc;IACrC,qBAAqB,EAAEG,aAAc;IACrC,cAAc,EAAEE,UAAW;IAC3B,iBAAiB,EAAEI,qBAAsB;IACzC,KAAK,EAAEE,MAAM,CAACE;EAAO,EACrB,EACDjC,SAAS,gBACR,oBAAC,IAAI;IAAC,KAAK,EAAE2B,mBAAoB;IAAC,IAAI,EAAE3B,SAAU;IAAC,IAAI,EAAE;EAAG,EAAG,GAC7D,IAAI,CACH;AAEX;AAEA,MAAM+B,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAC/BH,SAAS,EAAE;IACTI,MAAM,EAAE,EAAE;IACVC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EACDL,MAAM,EAAE;IACNM,IAAI,EAAE,CAAC;IACPC,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC;AAAC,eAEY,IAAAC,kBAAS,EAAC5C,MAAM,CAAC;AAAA"}
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var React = _interopRequireWildcard(require("react"));
9
-
10
8
  var _reactNative = require("react-native");
11
-
12
9
  var _theming = require("../theming");
13
-
14
10
  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); }
15
-
16
11
  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
-
18
12
  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
13
  const StarRating = _ref => {
21
14
  let {
22
15
  Icon,
@@ -68,7 +61,6 @@ const StarRating = _ref => {
68
61
  onPress: () => ratingHandler(i + 1)
69
62
  })))));
70
63
  };
71
-
72
64
  const styles = _reactNative.StyleSheet.create({
73
65
  container: {
74
66
  flexDirection: "row",
@@ -90,7 +82,6 @@ const styles = _reactNative.StyleSheet.create({
90
82
  width: "50%"
91
83
  }
92
84
  });
93
-
94
85
  var _default = (0, _theming.withTheme)(StarRating);
95
-
96
- exports.default = _default;
86
+ exports.default = _default;
87
+ //# sourceMappingURL=StarRating.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StarRating","Icon","starSize","maxStars","rating","defaultValue","isEditable","activeColor","inactiveColor","style","onPress","rest","localRating","setLocalRating","React","useState","useEffect","ratingHandler","useCallback","r","ratingRounded","Math","round","styles","container","Array","map","_","i","display","touchContainer","pressable","StyleSheet","create","flexDirection","alignItems","position","top","right","left","bottom","zIndex","flex","height","width","withTheme"],"sources":["StarRating.tsx"],"sourcesContent":["import * as React from \"react\";\nimport {\n View,\n StyleSheet,\n StyleProp,\n ViewStyle,\n Pressable,\n} from \"react-native\";\nimport { withTheme } from \"../theming\";\nimport type { Theme } from \"../styles/DefaultTheme\";\nimport type { IconSlot } from \"../interfaces/Icon\";\n\ntype Props = {\n starSize?: number;\n maxStars?: number;\n rating?: number;\n defaultValue?: number;\n isEditable?: boolean;\n activeColor?: string;\n inactiveColor?: string;\n theme: Theme;\n style?: StyleProp<ViewStyle>;\n onPress?: (newValue: number) => void;\n} & IconSlot;\n\nconst StarRating: React.FC<React.PropsWithChildren<Props>> = ({\n Icon,\n starSize = 16,\n maxStars = 5,\n rating = 0,\n defaultValue,\n isEditable = false,\n activeColor,\n inactiveColor,\n style,\n onPress,\n ...rest\n}) => {\n const [localRating, setLocalRating] = React.useState<number>(\n rating || defaultValue || 0\n );\n\n React.useEffect(() => {\n if (rating != null) {\n setLocalRating(rating);\n }\n }, [rating]);\n\n React.useEffect(() => {\n if (defaultValue != null) {\n setLocalRating(defaultValue);\n }\n }, [defaultValue]);\n\n const ratingHandler = React.useCallback(\n (r: number) => {\n setLocalRating(r);\n !!onPress && onPress(r);\n },\n [onPress]\n );\n\n const ratingRounded = Math.round(localRating * 2) / 2;\n\n return (\n <View style={[styles.container, style]} {...rest}>\n {[...Array(maxStars)].map((_, i) => (\n <View key={i} style={{ display: \"flex\" }}>\n <Icon\n name={\n ratingRounded - i === 0.5\n ? \"MaterialIcons/star-half\"\n : \"MaterialIcons/star\"\n }\n size={starSize}\n color={ratingRounded > i ? activeColor : inactiveColor}\n />\n {isEditable && (\n <View style={styles.touchContainer}>\n <Pressable\n style={styles.pressable}\n onPress={() => ratingHandler(i + 0.5)}\n />\n <Pressable\n style={styles.pressable}\n onPress={() => ratingHandler(i + 1)}\n />\n </View>\n )}\n </View>\n ))}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flexDirection: \"row\",\n alignItems: \"center\",\n },\n touchContainer: {\n display: \"flex\",\n flexDirection: \"row\",\n position: \"absolute\",\n top: 0,\n right: 0,\n left: 0,\n bottom: 0,\n zIndex: 1,\n },\n pressable: {\n flex: 1,\n height: \"100%\",\n width: \"50%\",\n },\n});\n\nexport default withTheme(StarRating);\n"],"mappings":";;;;;;AAAA;AACA;AAOA;AAAuC;AAAA;AAAA;AAiBvC,MAAMA,UAAoD,GAAG,QAYvD;EAAA,IAZwD;IAC5DC,IAAI;IACJC,QAAQ,GAAG,EAAE;IACbC,QAAQ,GAAG,CAAC;IACZC,MAAM,GAAG,CAAC;IACVC,YAAY;IACZC,UAAU,GAAG,KAAK;IAClBC,WAAW;IACXC,aAAa;IACbC,KAAK;IACLC,OAAO;IACP,GAAGC;EACL,CAAC;EACC,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGC,KAAK,CAACC,QAAQ,CAClDX,MAAM,IAAIC,YAAY,IAAI,CAAC,CAC5B;EAEDS,KAAK,CAACE,SAAS,CAAC,MAAM;IACpB,IAAIZ,MAAM,IAAI,IAAI,EAAE;MAClBS,cAAc,CAACT,MAAM,CAAC;IACxB;EACF,CAAC,EAAE,CAACA,MAAM,CAAC,CAAC;EAEZU,KAAK,CAACE,SAAS,CAAC,MAAM;IACpB,IAAIX,YAAY,IAAI,IAAI,EAAE;MACxBQ,cAAc,CAACR,YAAY,CAAC;IAC9B;EACF,CAAC,EAAE,CAACA,YAAY,CAAC,CAAC;EAElB,MAAMY,aAAa,GAAGH,KAAK,CAACI,WAAW,CACpCC,CAAS,IAAK;IACbN,cAAc,CAACM,CAAC,CAAC;IACjB,CAAC,CAACT,OAAO,IAAIA,OAAO,CAACS,CAAC,CAAC;EACzB,CAAC,EACD,CAACT,OAAO,CAAC,CACV;EAED,MAAMU,aAAa,GAAGC,IAAI,CAACC,KAAK,CAACV,WAAW,GAAG,CAAC,CAAC,GAAG,CAAC;EAErD,oBACE,oBAAC,iBAAI;IAAC,KAAK,EAAE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EACT;AACF,CAAC,CAAC;AAAC,eAEY,IAAAC,kBAAS,EAAC7C,UAAU,CAAC;AAAA"}
@@ -4,34 +4,27 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireWildcard(require("react"));
9
-
10
8
  var _reactNative = require("react-native");
11
-
12
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); }
13
-
14
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; }
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
-
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); }
18
14
  const STEP_STATUS = {
19
15
  CURRENT: "current",
20
16
  FINISHED: "finished",
21
17
  UNFINISHED: "unfinished"
22
18
  };
23
-
24
19
  class StepIndicator extends _react.Component {
25
20
  constructor(props) {
26
21
  super(props);
27
-
28
22
  _defineProperty(this, "renderProgressBarBackground", () => {
29
23
  const {
30
24
  stepCount,
31
25
  direction
32
26
  } = this.props;
33
27
  let progressBarBackgroundStyle;
34
-
35
28
  if (direction === "vertical") {
36
29
  progressBarBackgroundStyle = {
37
30
  backgroundColor: this.state.customStyles.separatorUnFinishedColor,
@@ -51,7 +44,6 @@ class StepIndicator extends _react.Component {
51
44
  height: this.state.customStyles.separatorStrokeUnfinishedWidth === 0 ? this.state.customStyles.separatorStrokeWidth : this.state.customStyles.separatorStrokeUnfinishedWidth
52
45
  };
53
46
  }
54
-
55
47
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
56
48
  onLayout: event => {
57
49
  if (direction === "vertical") {
@@ -71,14 +63,12 @@ class StepIndicator extends _react.Component {
71
63
  style: progressBarBackgroundStyle
72
64
  });
73
65
  });
74
-
75
66
  _defineProperty(this, "renderProgressBar", () => {
76
67
  const {
77
68
  stepCount,
78
69
  direction
79
70
  } = this.props;
80
71
  let progressBarStyle;
81
-
82
72
  if (direction === "vertical") {
83
73
  progressBarStyle = {
84
74
  backgroundColor: this.state.customStyles.separatorFinishedColor,
@@ -100,19 +90,16 @@ class StepIndicator extends _react.Component {
100
90
  width: this.progressAnim
101
91
  };
102
92
  }
103
-
104
93
  return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
105
94
  style: progressBarStyle
106
95
  });
107
96
  });
108
-
109
97
  _defineProperty(this, "renderStepIndicator", () => {
110
98
  let steps = [];
111
99
  const {
112
100
  stepCount,
113
101
  direction
114
102
  } = this.props;
115
-
116
103
  for (let position = 0; position < stepCount; position++) {
117
104
  steps.push( /*#__PURE__*/_react.default.createElement(_reactNative.TouchableWithoutFeedback, {
118
105
  key: position,
@@ -125,7 +112,6 @@ class StepIndicator extends _react.Component {
125
112
  }]
126
113
  }, this.renderStep(position))));
127
114
  }
128
-
129
115
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
130
116
  onLayout: event => this.setState({
131
117
  width: event.nativeEvent.layout.width,
@@ -140,7 +126,6 @@ class StepIndicator extends _react.Component {
140
126
  }]
141
127
  }, steps);
142
128
  });
143
-
144
129
  _defineProperty(this, "renderStepLabels", () => {
145
130
  const {
146
131
  labels,
@@ -184,14 +169,12 @@ class StepIndicator extends _react.Component {
184
169
  }]
185
170
  }, labelViews);
186
171
  });
187
-
188
172
  _defineProperty(this, "renderStep", position => {
189
173
  const {
190
174
  renderStepIndicator
191
175
  } = this.props;
192
176
  let stepStyle;
193
177
  let indicatorLabelStyle;
194
-
195
178
  switch (this.getStepStatus(position)) {
196
179
  case STEP_STATUS.CURRENT:
197
180
  {
@@ -209,7 +192,6 @@ class StepIndicator extends _react.Component {
209
192
  };
210
193
  break;
211
194
  }
212
-
213
195
  case STEP_STATUS.FINISHED:
214
196
  {
215
197
  stepStyle = {
@@ -226,7 +208,6 @@ class StepIndicator extends _react.Component {
226
208
  };
227
209
  break;
228
210
  }
229
-
230
211
  case STEP_STATUS.UNFINISHED:
231
212
  {
232
213
  stepStyle = {
@@ -244,10 +225,8 @@ class StepIndicator extends _react.Component {
244
225
  };
245
226
  break;
246
227
  }
247
-
248
228
  default:
249
229
  }
250
-
251
230
  return /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
252
231
  key: "step-indicator",
253
232
  style: [styles.step, stepStyle]
@@ -256,14 +235,12 @@ class StepIndicator extends _react.Component {
256
235
  stepStatus: this.getStepStatus(position)
257
236
  }) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
258
237
  style: indicatorLabelStyle
259
- }, "".concat(position + 1)));
238
+ }, `${position + 1}`));
260
239
  });
261
-
262
240
  _defineProperty(this, "getStepStatus", stepPosition => {
263
241
  const {
264
242
  currentPosition
265
243
  } = this.props;
266
-
267
244
  if (stepPosition === currentPosition) {
268
245
  return STEP_STATUS.CURRENT;
269
246
  } else if (stepPosition < currentPosition) {
@@ -272,20 +249,16 @@ class StepIndicator extends _react.Component {
272
249
  return STEP_STATUS.UNFINISHED;
273
250
  }
274
251
  });
275
-
276
252
  _defineProperty(this, "onCurrentPositionChanged", position => {
277
253
  let {
278
254
  stepCount
279
255
  } = this.props;
280
-
281
256
  if (position > stepCount - 1) {
282
257
  position = stepCount - 1;
283
258
  }
284
-
285
259
  const animateToPosition = this.state.progressBarSize / (stepCount - 1) * position;
286
260
  this.sizeAnim.setValue(this.state.customStyles.stepIndicatorSize);
287
261
  this.borderRadiusAnim.setValue(this.state.customStyles.stepIndicatorSize / 2);
288
-
289
262
  _reactNative.Animated.sequence([_reactNative.Animated.timing(this.progressAnim, {
290
263
  toValue: animateToPosition,
291
264
  duration: 200
@@ -297,7 +270,6 @@ class StepIndicator extends _react.Component {
297
270
  duration: 100
298
271
  })])]).start();
299
272
  });
300
-
301
273
  const defaultStyles = {
302
274
  stepIndicatorSize: 30,
303
275
  currentStepIndicatorSize: 40,
@@ -335,13 +307,11 @@ class StepIndicator extends _react.Component {
335
307
  this.sizeAnim = new _reactNative.Animated.Value(this.state.customStyles.stepIndicatorSize);
336
308
  this.borderRadiusAnim = new _reactNative.Animated.Value(this.state.customStyles.stepIndicatorSize / 2);
337
309
  }
338
-
339
310
  stepPressed(position) {
340
311
  if (this.props.onPress) {
341
312
  this.props.onPress(position);
342
313
  }
343
314
  }
344
-
345
315
  render() {
346
316
  const {
347
317
  labels,
@@ -356,7 +326,6 @@ class StepIndicator extends _react.Component {
356
326
  }]
357
327
  }, this.state.width !== 0 && this.renderProgressBarBackground(), this.state.width !== 0 && this.renderProgressBar(), this.renderStepIndicator(), labels && this.renderStepLabels());
358
328
  }
359
-
360
329
  componentDidUpdate(prevProps) {
361
330
  // if (prevProps.customStyles !== this.props.customStyles) {
362
331
  // this.setState((state) => ({
@@ -366,15 +335,13 @@ class StepIndicator extends _react.Component {
366
335
  // ),
367
336
  // }));
368
337
  // }
338
+
369
339
  if (prevProps.currentPosition !== this.props.currentPosition) {
370
340
  this.onCurrentPositionChanged(this.props.currentPosition);
371
341
  }
372
342
  }
373
-
374
343
  }
375
-
376
344
  exports.default = StepIndicator;
377
-
378
345
  const styles = _reactNative.StyleSheet.create({
379
346
  container: {
380
347
  backgroundColor: "transparent"
@@ -410,10 +377,10 @@ const styles = _reactNative.StyleSheet.create({
410
377
  justifyContent: "center"
411
378
  }
412
379
  });
413
-
414
380
  StepIndicator.defaultProps = {
415
381
  currentPosition: 0,
416
382
  stepCount: 5,
417
383
  customStyles: {},
418
384
  direction: "horizontal"
419
- };
385
+ };
386
+ //# sourceMappingURL=StepIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["STEP_STATUS","CURRENT","FINISHED","UNFINISHED","StepIndicator","Component","constructor","props","stepCount","direction","progressBarBackgroundStyle","backgroundColor","state","customStyles","separatorUnFinishedColor","position","left","width","separatorStrokeWidth","top","height","bottom","separatorStrokeUnfinishedWidth","right","event","setState","progressBarSize","nativeEvent","layout","onCurrentPositionChanged","currentPosition","progressBarStyle","separatorFinishedColor","separatorStrokeFinishedWidth","progressAnim","steps","push","stepPressed","styles","stepContainer","flexDirection","renderStep","stepIndicatorContainer","currentStepIndicatorSize","labels","renderLabel","labelViews","map","label","index","selectedStepLabelStyle","color","currentStepLabelColor","labelColor","stepLabelItem","stepStatus","getStepStatus","stepLabel","fontSize","labelSize","fontFamily","labelFontFamily","stepLabelsContainer","paddingHorizontal","paddingVertical","alignItems","labelAlign","renderStepIndicator","stepStyle","indicatorLabelStyle","stepIndicatorCurrentColor","borderWidth","currentStepStrokeWidth","borderColor","stepStrokeCurrentColor","sizeAnim","borderRadius","borderRadiusAnim","currentStepIndicatorLabelFontSize","stepIndicatorLabelCurrentColor","stepIndicatorFinishedColor","stepStrokeWidth","stepStrokeFinishedColor","stepIndicatorSize","stepIndicatorLabelFontSize","stepIndicatorLabelFinishedColor","stepIndicatorUnFinishedColor","stepStrokeUnFinishedColor","overflow","stepIndicatorLabelUnFinishedColor","step","stepPosition","animateToPosition","setValue","Animated","sequence","timing","toValue","duration","parallel","start","defaultStyles","Object","assign","Value","onPress","render","container","flex","renderProgressBarBackground","renderProgressBar","renderStepLabels","componentDidUpdate","prevProps","StyleSheet","create","justifyContent","zIndex","textAlign","fontWeight","defaultProps"],"sources":["StepIndicator.tsx"],"sourcesContent":["// @ts-nocheck\nimport React, { Component } from \"react\";\nimport {\n View,\n Text,\n StyleSheet,\n Animated,\n TouchableWithoutFeedback,\n} from \"react-native\";\n\nconst STEP_STATUS = {\n CURRENT: \"current\",\n FINISHED: \"finished\",\n UNFINISHED: \"unfinished\",\n};\n\ninterface CustomStyles {\n stepIndicatorSize?: number;\n currentStepIndicatorSize?: number;\n separatorStrokeWidth?: number;\n separatorStrokeUnfinishedWidth?: number;\n separatorStrokeFinishedWidth?: number;\n currentStepStrokeWidth: number;\n stepStrokeWidth?: number;\n stepStrokeCurrentColor?: string;\n stepStrokeFinishedColor: string;\n stepStrokeUnFinishedColor: string;\n separatorFinishedColor: string;\n separatorUnFinishedColor: string;\n stepIndicatorFinishedColor: string;\n stepIndicatorUnFinishedColor: string;\n stepIndicatorCurrentColor: string;\n stepIndicatorLabelFontSize: number;\n currentStepIndicatorLabelFontSize?: number;\n stepIndicatorLabelCurrentColor: string;\n stepIndicatorLabelFinishedColor: string;\n stepIndicatorLabelUnFinishedColor: string;\n labelColor?: string;\n labelSize?: number;\n labelAlign?: string;\n currentStepLabelColor?: string;\n labelFontFamily?: string;\n}\n\ntype Props = {\n stepCount: number;\n currentPosition: number;\n customStyles: CustomStyles;\n};\n\ntype State = {\n width: number;\n height: number;\n progressBarSize: number;\n customStyles: CustomStyles;\n};\n\nexport default class StepIndicator extends Component<Props, State> {\n constructor(props: Props) {\n super(props);\n\n const defaultStyles = {\n stepIndicatorSize: 30,\n currentStepIndicatorSize: 40,\n separatorStrokeWidth: 3,\n separatorStrokeUnfinishedWidth: 0,\n separatorStrokeFinishedWidth: 0,\n currentStepStrokeWidth: 5,\n stepStrokeWidth: 0,\n stepStrokeCurrentColor: \"#4aae4f\",\n stepStrokeFinishedColor: \"#4aae4f\",\n stepStrokeUnFinishedColor: \"#4aae4f\",\n separatorFinishedColor: \"#4aae4f\",\n separatorUnFinishedColor: \"#a4d4a5\",\n stepIndicatorFinishedColor: \"#4aae4f\",\n stepIndicatorUnFinishedColor: \"#a4d4a5\",\n stepIndicatorCurrentColor: \"#ffffff\",\n stepIndicatorLabelFontSize: 15,\n currentStepIndicatorLabelFontSize: 15,\n stepIndicatorLabelCurrentColor: \"#000000\",\n stepIndicatorLabelFinishedColor: \"#ffffff\",\n stepIndicatorLabelUnFinishedColor: \"rgba(255,255,255,0.5)\",\n labelColor: \"#000000\",\n labelSize: 13,\n labelAlign: \"center\",\n currentStepLabelColor: \"#4aae4f\",\n };\n\n const customStyles = Object.assign(defaultStyles, props.customStyles);\n\n this.state = {\n width: 0,\n height: 1,\n progressBarSize: -2,\n customStyles,\n };\n\n this.progressAnim = new Animated.Value(0);\n this.sizeAnim = new Animated.Value(\n this.state.customStyles.stepIndicatorSize\n );\n this.borderRadiusAnim = new Animated.Value(\n this.state.customStyles.stepIndicatorSize / 2\n );\n }\n\n stepPressed(position) {\n if (this.props.onPress) {\n this.props.onPress(position);\n }\n }\n\n render() {\n const { labels, direction } = this.props;\n return (\n <View\n style={[\n styles.container,\n direction === \"vertical\"\n ? { flexDirection: \"row\", flex: 1 }\n : { flexDirection: \"column\" },\n ]}\n >\n {this.state.width !== 0 && this.renderProgressBarBackground()}\n {this.state.width !== 0 && this.renderProgressBar()}\n {this.renderStepIndicator()}\n {labels && this.renderStepLabels()}\n </View>\n );\n }\n\n componentDidUpdate(prevProps) {\n // if (prevProps.customStyles !== this.props.customStyles) {\n // this.setState((state) => ({\n // customStyles: Object.assign(\n // state.customStyles,\n // this.props.customStyles\n // ),\n // }));\n // }\n\n if (prevProps.currentPosition !== this.props.currentPosition) {\n this.onCurrentPositionChanged(this.props.currentPosition);\n }\n }\n\n renderProgressBarBackground = () => {\n const { stepCount, direction } = this.props;\n let progressBarBackgroundStyle;\n if (direction === \"vertical\") {\n progressBarBackgroundStyle = {\n backgroundColor: this.state.customStyles.separatorUnFinishedColor,\n position: \"absolute\",\n left:\n (this.state.width - this.state.customStyles.separatorStrokeWidth) / 2,\n top: this.state.height / (2 * stepCount),\n bottom: this.state.height / (2 * stepCount),\n width:\n this.state.customStyles.separatorStrokeUnfinishedWidth === 0\n ? this.state.customStyles.separatorStrokeWidth\n : this.state.customStyles.separatorStrokeUnfinishedWidth,\n };\n } else {\n progressBarBackgroundStyle = {\n backgroundColor: this.state.customStyles.separatorUnFinishedColor,\n position: \"absolute\",\n top:\n (this.state.height - this.state.customStyles.separatorStrokeWidth) /\n 2,\n left: this.state.width / (2 * stepCount),\n right: this.state.width / (2 * stepCount),\n height:\n this.state.customStyles.separatorStrokeUnfinishedWidth === 0\n ? this.state.customStyles.separatorStrokeWidth\n : this.state.customStyles.separatorStrokeUnfinishedWidth,\n };\n }\n return (\n <View\n onLayout={(event) => {\n if (direction === \"vertical\") {\n this.setState(\n { progressBarSize: event.nativeEvent.layout.height },\n () => {\n this.onCurrentPositionChanged(this.props.currentPosition);\n }\n );\n } else {\n this.setState(\n { progressBarSize: event.nativeEvent.layout.width },\n () => {\n this.onCurrentPositionChanged(this.props.currentPosition);\n }\n );\n }\n }}\n style={progressBarBackgroundStyle}\n />\n );\n };\n\n renderProgressBar = () => {\n const { stepCount, direction } = this.props;\n let progressBarStyle;\n if (direction === \"vertical\") {\n progressBarStyle = {\n backgroundColor: this.state.customStyles.separatorFinishedColor,\n position: \"absolute\",\n left:\n (this.state.width - this.state.customStyles.separatorStrokeWidth) / 2,\n top: this.state.height / (2 * stepCount),\n bottom: this.state.height / (2 * stepCount),\n width:\n this.state.customStyles.separatorStrokeFinishedWidth === 0\n ? this.state.customStyles.separatorStrokeWidth\n : this.state.customStyles.separatorStrokeFinishedWidth,\n height: this.progressAnim,\n };\n } else {\n progressBarStyle = {\n backgroundColor: this.state.customStyles.separatorFinishedColor,\n position: \"absolute\",\n top:\n (this.state.height - this.state.customStyles.separatorStrokeWidth) /\n 2,\n left: this.state.width / (2 * stepCount),\n right: this.state.width / (2 * stepCount),\n height:\n this.state.customStyles.separatorStrokeFinishedWidth === 0\n ? this.state.customStyles.separatorStrokeWidth\n : this.state.customStyles.separatorStrokeFinishedWidth,\n width: this.progressAnim,\n };\n }\n return <Animated.View style={progressBarStyle} />;\n };\n\n renderStepIndicator = () => {\n let steps = [];\n const { stepCount, direction } = this.props;\n for (let position = 0; position < stepCount; position++) {\n steps.push(\n <TouchableWithoutFeedback\n key={position}\n onPress={() => this.stepPressed(position)}\n >\n <View\n style={[\n styles.stepContainer,\n direction === \"vertical\"\n ? { flexDirection: \"column\" }\n : { flexDirection: \"row\" },\n ]}\n >\n {this.renderStep(position)}\n </View>\n </TouchableWithoutFeedback>\n );\n }\n return (\n <View\n onLayout={(event) =>\n this.setState({\n width: event.nativeEvent.layout.width,\n height: event.nativeEvent.layout.height,\n })\n }\n style={[\n styles.stepIndicatorContainer,\n direction === \"vertical\"\n ? {\n flexDirection: \"column\",\n width: this.state.customStyles.currentStepIndicatorSize,\n }\n : {\n flexDirection: \"row\",\n height: this.state.customStyles.currentStepIndicatorSize,\n },\n ]}\n >\n {steps}\n </View>\n );\n };\n\n renderStepLabels = () => {\n const { labels, direction, currentPosition, renderLabel } = this.props;\n var labelViews = labels.map((label, index) => {\n const selectedStepLabelStyle =\n index === currentPosition\n ? { color: this.state.customStyles.currentStepLabelColor }\n : { color: this.state.customStyles.labelColor };\n return (\n <TouchableWithoutFeedback\n style={styles.stepLabelItem}\n key={index}\n onPress={() => this.stepPressed(index)}\n >\n <View style={styles.stepLabelItem}>\n {renderLabel ? (\n renderLabel({\n position: index,\n stepStatus: this.getStepStatus(index),\n label,\n currentPosition,\n })\n ) : (\n <Text\n style={[\n styles.stepLabel,\n selectedStepLabelStyle,\n {\n fontSize: this.state.customStyles.labelSize,\n fontFamily: this.state.customStyles.labelFontFamily,\n },\n ]}\n >\n {label}\n </Text>\n )}\n </View>\n </TouchableWithoutFeedback>\n );\n });\n\n return (\n <View\n style={[\n styles.stepLabelsContainer,\n direction === \"vertical\"\n ? { flexDirection: \"column\", paddingHorizontal: 4 }\n : { flexDirection: \"row\", paddingVertical: 4 },\n { alignItems: this.state.customStyles.labelAlign },\n ]}\n >\n {labelViews}\n </View>\n );\n };\n\n renderStep = (position) => {\n const { renderStepIndicator } = this.props;\n let stepStyle;\n let indicatorLabelStyle;\n\n switch (this.getStepStatus(position)) {\n case STEP_STATUS.CURRENT: {\n stepStyle = {\n backgroundColor: this.state.customStyles.stepIndicatorCurrentColor,\n borderWidth: this.state.customStyles.currentStepStrokeWidth,\n borderColor: this.state.customStyles.stepStrokeCurrentColor,\n height: this.sizeAnim,\n width: this.sizeAnim,\n borderRadius: this.borderRadiusAnim,\n };\n indicatorLabelStyle = {\n fontSize: this.state.customStyles.currentStepIndicatorLabelFontSize,\n color: this.state.customStyles.stepIndicatorLabelCurrentColor,\n };\n\n break;\n }\n case STEP_STATUS.FINISHED: {\n stepStyle = {\n backgroundColor: this.state.customStyles.stepIndicatorFinishedColor,\n borderWidth: this.state.customStyles.stepStrokeWidth,\n borderColor: this.state.customStyles.stepStrokeFinishedColor,\n height: this.state.customStyles.stepIndicatorSize,\n width: this.state.customStyles.stepIndicatorSize,\n borderRadius: this.state.customStyles.stepIndicatorSize / 2,\n };\n indicatorLabelStyle = {\n fontSize: this.state.customStyles.stepIndicatorLabelFontSize,\n color: this.state.customStyles.stepIndicatorLabelFinishedColor,\n };\n break;\n }\n\n case STEP_STATUS.UNFINISHED: {\n stepStyle = {\n backgroundColor: this.state.customStyles.stepIndicatorUnFinishedColor,\n borderWidth: this.state.customStyles.stepStrokeWidth,\n borderColor: this.state.customStyles.stepStrokeUnFinishedColor,\n height: this.state.customStyles.stepIndicatorSize,\n width: this.state.customStyles.stepIndicatorSize,\n borderRadius: this.state.customStyles.stepIndicatorSize / 2,\n };\n indicatorLabelStyle = {\n overflow: \"hidden\",\n fontSize: this.state.customStyles.stepIndicatorLabelFontSize,\n color: this.state.customStyles.stepIndicatorLabelUnFinishedColor,\n };\n break;\n }\n default:\n }\n\n return (\n <Animated.View key={\"step-indicator\"} style={[styles.step, stepStyle]}>\n {renderStepIndicator ? (\n renderStepIndicator({\n position,\n stepStatus: this.getStepStatus(position),\n })\n ) : (\n <Text style={indicatorLabelStyle}>{`${position + 1}`}</Text>\n )}\n </Animated.View>\n );\n };\n\n getStepStatus = (stepPosition) => {\n const { currentPosition } = this.props;\n if (stepPosition === currentPosition) {\n return STEP_STATUS.CURRENT;\n } else if (stepPosition < currentPosition) {\n return STEP_STATUS.FINISHED;\n } else {\n return STEP_STATUS.UNFINISHED;\n }\n };\n\n onCurrentPositionChanged = (position) => {\n let { stepCount } = this.props;\n if (position > stepCount - 1) {\n position = stepCount - 1;\n }\n const animateToPosition =\n (this.state.progressBarSize / (stepCount - 1)) * position;\n this.sizeAnim.setValue(this.state.customStyles.stepIndicatorSize);\n this.borderRadiusAnim.setValue(\n this.state.customStyles.stepIndicatorSize / 2\n );\n Animated.sequence([\n Animated.timing(this.progressAnim, {\n toValue: animateToPosition,\n duration: 200,\n }),\n Animated.parallel([\n Animated.timing(this.sizeAnim, {\n toValue: this.state.customStyles.currentStepIndicatorSize,\n duration: 100,\n }),\n Animated.timing(this.borderRadiusAnim, {\n toValue: this.state.customStyles.currentStepIndicatorSize / 2,\n duration: 100,\n }),\n ]),\n ]).start();\n };\n}\n\nconst styles = StyleSheet.create({\n container: {\n backgroundColor: \"transparent\",\n },\n stepIndicatorContainer: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-around\",\n backgroundColor: \"transparent\",\n },\n stepLabelsContainer: {\n justifyContent: \"space-around\",\n },\n step: {\n alignItems: \"center\",\n justifyContent: \"center\",\n zIndex: 2,\n },\n stepContainer: {\n flex: 1,\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n stepLabel: {\n fontSize: 12,\n textAlign: \"center\",\n fontWeight: \"500\",\n },\n stepLabelItem: {\n flex: 1,\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n});\n\nStepIndicator.defaultProps = {\n currentPosition: 0,\n stepCount: 5,\n customStyles: {},\n direction: \"horizontal\",\n};\n"],"mappings":";;;;;;AACA;AACA;AAMsB;AAAA;AAAA;AAAA;AAAA;AAEtB,MAAMA,WAAW,GAAG;EAClBC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,UAAU;EACpBC,UAAU,EAAE;AACd,CAAC;AA2Cc,MAAMC,aAAa,SAASC,gBAAS,CAAe;EACjEC,WAAW,CAACC,KAAY,EAAE;IACxB,KAAK,CAACA,KAAK,CAAC;IAAC,qDAuFe,MAAM;MAClC,MAAM;QAAEC,SAAS;QAAEC;MAAU,CAAC,GAAG,IAAI,CAACF,KAAK;MAC3C,IAAIG,0BAA0B;MAC9B,IAAID,SAAS,KAAK,UAAU,EAAE;QAC5BC,0BAA0B,GAAG;UAC3BC,eAAe,EAAE,IAAI,CAACC,KAAK,CAACC,YAAY,CAACC,wBAAwB;UACjEC,QAAQ,EAAE,UAAU;UACpBC,IAAI,EACF,CAAC,IAAI,CAACJ,KAAK,CAACK,KAAK,GAAG,IAAI,CAACL,KAAK,CAACC,YAAY,CAACK,oBAAoB,IAAI,CAAC;UACvEC,GAAG,EAAE,IAAI,CAACP,KAAK,CAACQ,MAAM,IAAI,CAAC,GAAGZ,SAAS,CAAC;UACxCa,MAAM,EAAE,IAAI,CAACT,KAAK,CAACQ,MAAM,IAAI,CAAC,GAAGZ,SAAS,CAAC;UAC3CS,KAAK,EACH,IAAI,CAACL,KAAK,CAACC,YAAY,CAACS,8BAA8B,KAA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defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireWildcard(require("react"));
9
-
10
8
  var _reactNative = require("react-native");
11
-
12
9
  var _lodash = require("lodash");
13
-
14
10
  var _theming = require("../theming");
15
-
16
11
  var _IconButton = _interopRequireDefault(require("./IconButton"));
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
13
  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); }
21
-
22
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; }
23
-
24
15
  const Stepper = _ref => {
25
16
  let {
26
17
  min = -Infinity,
@@ -38,24 +29,20 @@ const Stepper = _ref => {
38
29
  },
39
30
  Icon
40
31
  } = _ref;
41
- const [value, setValue] = (0, _react.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0);
42
-
32
+ const [value, setValue] = (0, _react.useState)(defaultValue ?? 0);
43
33
  const isValidValue = valueArg => valueArg >= min && valueArg <= max;
44
-
45
34
  const handlePlusOrMinus = type => {
46
35
  const newValue = type === "plus" ? value + 1 : value - 1;
47
-
48
36
  if (isValidValue(newValue)) {
49
37
  setValue(newValue);
50
38
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
51
39
  }
52
40
  };
53
-
54
41
  (0, _react.useEffect)(() => {
55
42
  if (valueProp != null && (0, _lodash.isNumber)(valueProp) && valueProp !== value && isValidValue(valueProp)) {
56
43
  setValue(valueProp);
57
- } // eslint-disable-next-line react-hooks/exhaustive-deps
58
-
44
+ }
45
+ // eslint-disable-next-line react-hooks/exhaustive-deps
59
46
  }, [valueProp]);
60
47
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
61
48
  style: [{
@@ -90,7 +77,7 @@ const Stepper = _ref => {
90
77
  }
91
78
  }));
92
79
  };
93
-
94
80
  var _default = (0, _theming.withTheme)(Stepper);
95
-
96
- exports.default = _default;
81
+ exports.default = _default;
82
+ //# sourceMappingURL=Stepper.js.maplt = _default;
83
+ //# sourceMappingURL=Stepper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Stepper","min","Infinity","max","value","valueProp","defaultValue","style","typeStyle","iconSize","iconColor","onChange","theme","colors","typography","Icon","setValue","useState","isValidValue","valueArg","handlePlusOrMinus","type","newValue","useEffect","isNumber","flexDirection","opacity","body1","textAlign","alignSelf","color","medium","marginHorizontal","withTheme"],"sources":["Stepper.tsx"],"sourcesContent":["import React, { FC, useEffect, useState } from \"react\";\nimport { View, Text, StyleProp, ViewStyle, TextStyle } from \"react-native\";\nimport { isNumber } from \"lodash\";\n\nimport { withTheme } from \"../theming\";\nimport type { Theme } from \"../styles/DefaultTheme\";\nimport type { IconSlot } from \"../interfaces/Icon\";\nimport IconButton from \"./IconButton\";\n\ntype Props = {\n min: number;\n max: number;\n value?: number;\n defaultValue?: number;\n style?: StyleProp<ViewStyle>;\n typeStyle?: StyleProp<TextStyle>;\n iconSize: number;\n iconColor?: string;\n onChange?: (value: number) => void;\n theme: Theme;\n} & IconSlot;\n\nconst Stepper: FC<Props> = ({\n min = -Infinity,\n max = Infinity,\n value: valueProp,\n defaultValue,\n style,\n typeStyle,\n iconSize = 24,\n iconColor,\n onChange,\n theme: { colors, typography },\n Icon,\n}) => {\n const [value, setValue] = useState(defaultValue ?? 0);\n\n const isValidValue = (valueArg: number) => valueArg >= min && valueArg <= max;\n\n const handlePlusOrMinus = (type: \"plus\" | \"minus\") => {\n const newValue = type === \"plus\" ? value + 1 : value - 1;\n\n if (isValidValue(newValue)) {\n setValue(newValue);\n onChange?.(newValue);\n }\n };\n\n useEffect(() => {\n if (\n valueProp != null &&\n isNumber(valueProp) &&\n valueProp !== value &&\n isValidValue(valueProp)\n ) {\n setValue(valueProp);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [valueProp]);\n\n return (\n <View style={[{ flexDirection: \"row\" }, style]}>\n <IconButton\n Icon={Icon}\n icon=\"MaterialIcons/remove\"\n onPress={() => handlePlusOrMinus(\"minus\")}\n size={iconSize}\n color={iconColor}\n disabled={value === min}\n style={{ opacity: value === min ? 0.5 : 1 }}\n />\n\n <Text\n style={[\n typography.body1,\n {\n textAlign: \"center\",\n alignSelf: \"center\",\n color: colors.medium,\n marginHorizontal: 8,\n },\n typeStyle,\n ]}\n >\n {value}\n </Text>\n\n <IconButton\n Icon={Icon}\n icon=\"MaterialIcons/add\"\n onPress={() => handlePlusOrMinus(\"plus\")}\n size={iconSize}\n color={iconColor}\n disabled={value === max}\n style={{ opacity: value === max ? 0.5 : 1 }}\n />\n </View>\n );\n};\n\nexport default withTheme(Stepper);\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAEA;AAGA;AAAsC;AAAA;AAAA;AAetC,MAAMA,OAAkB,GAAG,QAYrB;EAAA,IAZsB;IAC1BC,GAAG,GAAG,CAACC,QAAQ;IACfC,GAAG,GAAGD,QAAQ;IACdE,KAAK,EAAEC,SAAS;IAChBC,YAAY;IACZC,KAAK;IACLC,SAAS;IACTC,QAAQ,GAAG,EAAE;IACbC,SAAS;IACTC,QAAQ;IACRC,KAAK,EAAE;MAAEC,MA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CACLa,UAAU,CAACa,KAAK,EAChB;MACEC,SAAS,EAAE,QAAQ;MACnBC,SAAS,EAAE,QAAQ;MACnBC,KAAK,EAAEjB,MAAM,CAACkB,MAAM;MACpBC,gBAAgB,EAAE;IACpB,CAAC,EACDxB,SAAS;EACT,GAEDJ,KAAK,CACD,eAEP,6BAAC,mBAAU;IACT,IAAI,EAAEW,IAAK;IACX,IAAI,EAAC,mBAAmB;IACxB,OAAO,EAAE,MAAMK,iBAAiB,CAAC,MAAM,CAAE;IACzC,IAAI,EAAEX,QAAS;IACf,KAAK,EAAEC,SAAU;IACjB,QAAQ,EAAEN,KAAK,KAAKD,GAAI;IACxB,KAAK,EAAE;MAAEuB,OAAO,EAAEtB,KAAK,KAAKD,GAAG,GAAG,GAAG,GAAG;IAAE;EAAE,EAC5C,CACG;AAEX,CAAC;AAAC,eAEa,IAAA8B,kBAAS,EAACjC,OAAO,CAAC;AAAA"}
@@ -4,25 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var React = _interopRequireWildcard(require("react"));
9
-
10
8
  var _reactNative = require("react-native");
11
-
12
9
  var _shadow = _interopRequireDefault(require("../styles/shadow"));
13
-
14
10
  var _overlay = _interopRequireDefault(require("../styles/overlay"));
15
-
16
11
  var _theming = require("../theming");
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
13
  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); }
21
-
22
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; }
23
-
24
15
  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
-
26
16
  const Surface = _ref => {
27
17
  let {
28
18
  elevation: propElevation,
@@ -43,7 +33,6 @@ const Surface = _ref => {
43
33
  } = theme;
44
34
  const elevation = propElevation || styleElevation;
45
35
  const evalationStyles = elevation ? (0, _shadow.default)(elevation) : {};
46
-
47
36
  const getBackgroundColor = () => {
48
37
  if (backgroundColor) {
49
38
  return backgroundColor;
@@ -53,7 +42,6 @@ const Surface = _ref => {
53
42
  return colors.surface;
54
43
  }
55
44
  };
56
-
57
45
  return /*#__PURE__*/React.createElement(_reactNative.Animated.View, _extends({}, rest, {
58
46
  style: [{
59
47
  backgroundColor: getBackgroundColor(),
@@ -63,7 +51,6 @@ const Surface = _ref => {
63
51
  }]
64
52
  }), children);
65
53
  };
66
-
67
54
  var _default = (0, _theming.withTheme)(Surface);
68
-
69
- exports.default = _default;
55
+ exports.default = _default;
56
+ //# sourceMappingURL=Surface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Surface","elevation","propElevation","style","theme","children","rest","styleElevation","backgroundColor","restStyle","StyleSheet","flatten","dark","isDarkTheme","mode","colors","evalationStyles","shadow","getBackgroundColor","overlay","surface","withTheme"],"sources":["Surface.tsx"],"sourcesContent":["/* Copied from https://github.com/callstack/react-native-paper/blob/main/src/components/Surface.tsx */\nimport * as React from \"react\";\nimport {\n Animated,\n StyleSheet,\n ViewProps,\n StyleProp,\n ViewStyle,\n} from \"react-native\";\n\nimport shadow from \"../styles/shadow\";\nimport overlay from \"../styles/overlay\";\nimport { withTheme } from \"../theming\";\nimport type { Theme } from \"../styles/DefaultTheme\";\n\ntype Props = {\n elevation?: number;\n style?: StyleProp<ViewStyle>;\n theme: Theme;\n} & ViewProps;\n\nconst Surface: React.FC<React.PropsWithChildren<Props>> = ({\n elevation: propElevation,\n style,\n theme,\n children,\n ...rest\n}) => {\n const {\n elevation: styleElevation = 3,\n backgroundColor,\n ...restStyle\n } = (StyleSheet.flatten(style) || {}) as ViewStyle;\n\n const { dark: isDarkTheme, mode, colors } = theme;\n\n const elevation = propElevation || styleElevation;\n\n const evalationStyles = elevation ? shadow(elevation) : {};\n\n const getBackgroundColor = () => {\n if (backgroundColor) {\n return backgroundColor;\n } else if (isDarkTheme && mode === \"adaptive\") {\n return overlay(elevation, colors.surface);\n } else {\n return colors.surface;\n }\n };\n\n return (\n <Animated.View\n {...rest}\n style={[\n {\n backgroundColor: getBackgroundColor(),\n elevation,\n ...evalationStyles,\n ...restStyle,\n },\n ]}\n >\n {children}\n </Animated.View>\n );\n};\n\nexport default withTheme(Surface);\n"],"mappings":";;;;;;AACA;AACA;AAQA;AACA;AACA;AAAuC;AAAA;AAAA;AAAA;AASvC,MAAMA,OAAiD,GAAG,QAMpD;EAAA,IANqD;IACzDC,SAAS,EAAEC,aAAa;IACxBC,KAAK;IACLC,KAAK;IACLC,QAAQ;IACR,GAAGC;EACL,CAAC;EACC,MAAM;IACJL,SAAS,EAAEM,cAAc,GAAG,CAAC;IAC7BC,eAAe;IACf,GAAGC;EACL,CAAC,GAAIC,uBAAU,CAACC,OAAO,CAACR,KAAK,CAAC,IAAI,CAAC,CAAe;EAElD,MAAM;IAAES,IAAI,EAAEC,WAAW;IAAEC,IAAI;IAAEC;EAAO,CAAC,GAAGX,KAAK;EAEjD,MAAMH,SAAS,GAAGC,aAAa,IAAIK,cAAc;EAEjD,MAAMS,eAAe,GAAGf,SAAS,GAAG,IAAAgB,eAAM,EAAChB,SAAS,CAAC,GAAG,CAAC,CAAC;EAE1D,MAAMiB,kBAAkB,GAAG,MAAM;IAC/B,IAAIV,eAAe,EAAE;MACnB,OAAOA,eAAe;IACxB,CAAC,MAAM,IAAIK,WAAW,IAAIC,IAAI,KAAK,UAAU,EAAE;MAC7C,OAAO,IAAAK,gBAAO,EAAClB,SAAS,EAAEc,MAAM,CAACK,OAAO,CAAC;IAC3C,CAAC,MAAM;MACL,OAAOL,MAAM,CAACK,OAAO;IACvB;EACF,CAAC;EAED,oBACE,oBAAC,qBAAQ,CAAC,IAAI,eACRd,IAAI;IACR,KAAK,EAAE,CACL;MACEE,eAAe,EAAEU,kBAAkB,EAAE;MACrCjB,SAAS;MACT,GAAGe,eAAe;MAClB,GAAGP;IACL,CAAC;EACD,IAEDJ,QAAQ,CACK;AAEpB,CAAC;AAAC,eAEa,IAAAgB,kBAAS,EAACrB,OAAO,CAAC;AAAA"}
@@ -4,15 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _reactNative = require("react-native");
11
-
12
9
  var _reactNativeWebSwiper = _interopRequireDefault(require("react-native-web-swiper"));
13
-
14
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
11
  const Swiper = _ref => {
17
12
  let {
18
13
  vertical = false,
@@ -67,17 +62,15 @@ const Swiper = _ref => {
67
62
  item,
68
63
  index
69
64
  });
70
-
71
65
  if (!component) {
72
66
  return null;
73
67
  }
74
-
75
68
  const key = keyExtractor ? keyExtractor(item, index) : index;
76
69
  return /*#__PURE__*/_react.default.cloneElement(component, {
77
70
  key
78
71
  });
79
72
  }) : children));
80
73
  };
81
-
82
74
  var _default = Swiper;
83
- exports.default = _default;
75
+ exports.default = _default;
76
+ //# sourceMappingURL=Swiper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Swiper","vertical","loop","timeout","from","prevTitle","nextTitle","prevTitleColor","nextTitleColor","dotsTouchable","dotColor","dotActiveColor","data","keyExtractor","renderItem","children","style","prevTitleStyle","color","nextTitleStyle","dotProps","badgeStyle","backgroundColor","dotActiveStyle","map","item","index","component","key","React","cloneElement"],"sources":["Swiper.tsx"],"sourcesContent":["import React from \"react\";\nimport { View, StyleProp, ViewStyle } from \"react-native\";\nimport SwiperComponent from \"react-native-web-swiper\";\n\nexport interface SwiperProps<T> {\n vertical?: boolean;\n loop?: boolean;\n from?: number;\n timeout?: number;\n prevTitle?: string;\n nextTitle?: string;\n prevTitleColor?: string;\n nextTitleColor?: string;\n dotsTouchable?: boolean;\n dotColor?: string;\n dotActiveColor?: string;\n children: React.ReactNode;\n data?: Array<T>;\n keyExtractor: (item: T, index: number) => string;\n renderItem?: ({ item, index }: { item: T; index: number }) => JSX.Element;\n style?: StyleProp<ViewStyle>;\n}\n\nconst Swiper = ({\n vertical = false,\n loop = false,\n timeout = 0,\n from = 0,\n prevTitle = \"\",\n nextTitle = \"\",\n prevTitleColor,\n nextTitleColor,\n dotsTouchable = true,\n dotColor,\n dotActiveColor,\n data,\n keyExtractor,\n renderItem,\n children,\n style,\n}: SwiperProps<any>) => (\n <View style={style}>\n {/* @ts-ignore */}\n <SwiperComponent\n from={from}\n loop={loop}\n timeout={timeout}\n vertical={vertical}\n controlsProps={{\n prevTitle,\n nextTitle,\n prevTitleStyle: { color: prevTitleColor },\n nextTitleStyle: { color: nextTitleColor },\n dotsTouchable,\n ...(dotColor\n ? { dotProps: { badgeStyle: { backgroundColor: dotColor } } }\n : {}),\n ...(dotActiveColor\n ? { dotActiveStyle: { backgroundColor: dotActiveColor } }\n : {}),\n }}\n >\n {data && renderItem\n ? data.map((item, index) => {\n const component = renderItem({ item, index });\n\n if (!component) {\n return null;\n }\n\n const key = keyExtractor ? keyExtractor(item, index) : index;\n return React.cloneElement(component, {\n key,\n });\n })\n : children}\n </SwiperComponent>\n </View>\n);\n\nexport default Swiper;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAAsD;AAqBtD,MAAMA,MAAM,GAAG;EAAA,IAAC;IACdC,QAAQ,GAAG,KAAK;IAChBC,IAAI,GAAG,KAAK;IACZC,OAAO,GAAG,CAAC;IACXC,IAAI,GAAG,CAAC;IACRC,SAAS,GAAG,EAAE;IACdC,SAAS,GAAG,EAAE;IACdC,cAAc;IACdC,cAAc;IACdC,aAAa,GAAG,IAAI;IACpBC,QAAQ;IACRC,cAAc;IACdC,IAAI;IACJC,YAAY;IACZC,UAAU;IACVC,QAAQ;IACRC;EACgB,CAAC;EAAA,oBACjB,6BAAC,iBAAI;IAAC,KAAK,EAAEA;EAAM,gBAEjB,6BAAC,6BAAe;IACd,IAAI,EAAEZ,IAAK;IACX,IAAI,EAAEF,IAAK;IACX,OAAO,EAAEC,OAAQ;IACjB,QAAQ,EAAEF,QAAS;IACnB,aAAa,EAAE;MACbI,SAAS;MACTC,SAAS;MACTW,cAAc,EAAE;QAAEC,KAAK,EAAEX;MAAe,CAAC;MACzCY,cAAc,EAAE;QAAED,KAAK,EAAEV;MAAe,CAAC;MACzCC,aAAa;MACb,IAAIC,QAAQ,GACR;QAAEU,QAAQ,EAAE;UAAEC,UAAU,EAAE;YAAEC,eAAe,EAAEZ;UAAS;QAAE;MAAE,CAAC,GAC3D,CAAC,CAAC,CAAC;MACP,IAAIC,cAAc,GACd;QAAEY,cAAc,EAAE;UAAED,eAAe,EAAEX;QAAe;MAAE,CAAC,GACvD,CAAC,CAAC;IACR;EAAE,GAEDC,IAAI,IAAIE,UAAU,GACfF,IAAI,CAACY,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,KAAK;IACxB,MAAMC,SAAS,GAAGb,UAAU,CAAC;MAAEW,IAAI;MAAEC;IAAM,CAAC,CAAC;IAE7C,IAAI,CAACC,SAAS,EAAE;MACd,OAAO,IAAI;IACb;IAEA,MAAMC,GAAG,GAAGf,YAAY,GAAGA,YAAY,CAACY,IAAI,EAAEC,KAAK,CAAC,GAAGA,KAAK;IAC5D,oBAAOG,cAAK,CAACC,YAAY,CAACH,SAAS,EAAE;MACnCC;IACF,CAAC,CAAC;EACJ,CAAC,CAAC,GACFb,QAAQ,CACI,CACb;AAAA,CACR;AAAC,eAEaf,MAAM;AAAA"}
@@ -4,19 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _reactNative = require("react-native");
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  const styles = _reactNative.StyleSheet.create({
15
11
  wrapper: {
16
12
  flex: 1
17
13
  }
18
14
  });
19
-
20
15
  const SwiperItem = _ref => {
21
16
  let {
22
17
  children,
@@ -26,6 +21,6 @@ const SwiperItem = _ref => {
26
21
  style: [styles.wrapper, style]
27
22
  }, children);
28
23
  };
29
-
30
24
  var _default = SwiperItem;
31
- exports.default = _default;
25
+ exports.default = _default;
26
+ //# sourceMappingURL=SwiperItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["styles","StyleSheet","create","wrapper","flex","SwiperItem","children","style"],"sources":["SwiperItem.tsx"],"sourcesContent":["import React from \"react\";\nimport { View, StyleSheet, StyleProp, ViewStyle } from \"react-native\";\n\nconst styles = StyleSheet.create({\n wrapper: {\n flex: 1,\n },\n});\n\nexport interface SwiperProps {\n children: React.ReactNode;\n style?: StyleProp<ViewStyle>;\n}\n\nconst SwiperItem = ({ children, style }: SwiperProps) => (\n <View style={[styles.wrapper, style]}>{children}</View>\n);\n\nexport default SwiperItem;\n"],"mappings":";;;;;;AAAA;AACA;AAAsE;AAEtE,MAAMA,MAAM,GAAGC,uBAAU,CAACC,MAAM,CAAC;EAC/BC,OAAO,EAAE;IACPC,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAOF,MAAMC,UAAU,GAAG;EAAA,IAAC;IAAEC,QAAQ;IAAEC;EAAmB,CAAC;EAAA,oBAClD,6BAAC,iBAAI;IAAC,KAAK,EAAE,CAACP,MAAM,CAACG,OAAO,EAAEI,KAAK;EAAE,GAAED,QAAQ,CAAQ;AAAA,CACxD;AAAC,eAEaD,UAAU;AAAA"}
@@ -15,9 +15,7 @@ Object.defineProperty(exports, "SwiperItem", {
15
15
  return _SwiperItem.default;
16
16
  }
17
17
  });
18
-
19
18
  var _Swiper = _interopRequireDefault(require("./Swiper"));
20
-
21
19
  var _SwiperItem = _interopRequireDefault(require("./SwiperItem"));
22
-
23
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export { default as Swiper } from \"./Swiper\";\nexport { default as SwiperItem } from \"./SwiperItem\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AAAqD"}