@draftbit/core 47.0.0-eae99e.2 → 47.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1201) hide show
  1. package/lib/commonjs/Provider.js +1 -2
  2. package/lib/commonjs/components/Accordion/AccordionGroup.js +1 -2
  3. package/lib/commonjs/components/Accordion/AccordionItem.js +1 -2
  4. package/lib/commonjs/components/Accordion/index.js +1 -2
  5. package/lib/commonjs/components/ActionSheet/ActionSheet.js +1 -2
  6. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js +1 -2
  7. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js +1 -2
  8. package/lib/commonjs/components/ActionSheet/index.js +1 -2
  9. package/lib/commonjs/components/AnimatedCircularProgress.js +66 -0
  10. package/lib/commonjs/components/AspectRatio.js +50 -0
  11. package/lib/commonjs/components/AvatarEdit.js +59 -0
  12. package/lib/commonjs/components/Banner.js +1 -2
  13. package/lib/commonjs/components/Button.js +1 -2
  14. package/lib/commonjs/components/Card.js +137 -0
  15. package/lib/commonjs/components/CardBlock.js +106 -0
  16. package/lib/commonjs/components/CardContainer.js +129 -0
  17. package/lib/commonjs/components/CardContainerRating.js +133 -0
  18. package/lib/commonjs/components/CardContainerShortImage.js +84 -0
  19. package/lib/commonjs/components/CardInline.js +91 -0
  20. package/lib/commonjs/components/Carousel.js +130 -0
  21. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -2
  22. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +1 -2
  23. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -2
  24. package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -2
  25. package/lib/commonjs/components/Checkbox/context.js +1 -2
  26. package/lib/commonjs/components/Checkbox/index.js +1 -2
  27. package/lib/commonjs/components/CircleImage.js +35 -0
  28. package/lib/commonjs/components/CircularProgress.js +112 -0
  29. package/lib/commonjs/components/Config.js +1 -2
  30. package/lib/commonjs/components/Container.js +93 -0
  31. package/lib/commonjs/components/DatePicker/DatePicker.js +20 -11
  32. package/lib/commonjs/components/DatePicker/DatePickerComponent.js +1 -2
  33. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +1 -2
  34. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js +1 -2
  35. package/lib/commonjs/components/DeprecatedButton.js +1 -2
  36. package/lib/commonjs/components/DeprecatedCardWrapper.js +40 -0
  37. package/lib/commonjs/components/DeprecatedFAB.js +158 -0
  38. package/lib/commonjs/components/Divider.js +30 -0
  39. package/lib/commonjs/components/Elevation.js +1 -2
  40. package/lib/commonjs/components/FAB.js +82 -0
  41. package/lib/commonjs/components/FieldSearchBarFull.js +97 -0
  42. package/lib/commonjs/components/FormRow.js +1 -2
  43. package/lib/commonjs/components/Header.js +82 -0
  44. package/lib/commonjs/components/HeaderLarge.js +38 -0
  45. package/lib/commonjs/components/HeaderMedium.js +38 -0
  46. package/lib/commonjs/components/HeaderOverline.js +39 -0
  47. package/lib/commonjs/components/IconButton.js +1 -2
  48. package/lib/commonjs/components/Image.js +81 -0
  49. package/lib/commonjs/components/Justification.js +1 -0
  50. package/lib/commonjs/components/Layout.js +1 -2
  51. package/lib/commonjs/components/NumberInput.js +1 -2
  52. package/lib/commonjs/components/Picker/Picker.js +1 -2
  53. package/lib/commonjs/components/Picker/PickerComponent.android.js +1 -2
  54. package/lib/commonjs/components/Picker/PickerComponent.ios.js +1 -2
  55. package/lib/commonjs/components/Picker/PickerComponent.web.js +1 -2
  56. package/lib/commonjs/components/Picker/PickerTypes.js +1 -2
  57. package/lib/commonjs/components/Portal/Portal.js +1 -2
  58. package/lib/commonjs/components/Portal/PortalConsumer.js +1 -2
  59. package/lib/commonjs/components/Portal/PortalHost.js +1 -2
  60. package/lib/commonjs/components/Portal/PortalManager.js +1 -2
  61. package/lib/commonjs/components/ProgressBar.js +158 -0
  62. package/lib/commonjs/components/ProgressCircle.js +48 -0
  63. package/lib/commonjs/components/ProgressIndicator.js +55 -0
  64. package/lib/commonjs/components/RadioButton/RadioButton.js +1 -2
  65. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +1 -2
  66. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +1 -2
  67. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -2
  68. package/lib/commonjs/components/RadioButton/context.js +1 -2
  69. package/lib/commonjs/components/RadioButton/index.js +1 -2
  70. package/lib/commonjs/components/ResizeMode.js +1 -0
  71. package/lib/commonjs/components/Row.js +73 -0
  72. package/lib/commonjs/components/RowBodyIcon.js +45 -0
  73. package/lib/commonjs/components/RowHeadlineImageCaption.js +45 -0
  74. package/lib/commonjs/components/RowHeadlineImageIcon.js +51 -0
  75. package/lib/commonjs/components/SVG.js +1 -2
  76. package/lib/commonjs/components/ScreenContainer.js +1 -2
  77. package/lib/commonjs/components/Slider.js +1 -2
  78. package/lib/commonjs/components/StarRating.js +1 -2
  79. package/lib/commonjs/components/StepIndicator.js +385 -0
  80. package/lib/commonjs/components/Stepper.js +8 -5
  81. package/lib/commonjs/components/Surface.js +1 -2
  82. package/lib/commonjs/components/Swiper/Swiper.js +1 -2
  83. package/lib/commonjs/components/Swiper/SwiperItem.js +1 -2
  84. package/lib/commonjs/components/Swiper/index.js +1 -2
  85. package/lib/commonjs/components/Switch.js +1 -2
  86. package/lib/commonjs/components/Text.js +1 -2
  87. package/lib/commonjs/components/TextField.js +1 -2
  88. package/lib/commonjs/components/ToggleButton.js +71 -0
  89. package/lib/commonjs/components/Touchable.js +1 -2
  90. package/lib/commonjs/components/Touchable.web.js +1 -2
  91. package/lib/commonjs/components/Typography.js +58 -0
  92. package/lib/commonjs/components/useAuthState.js +28 -0
  93. package/lib/commonjs/constants.js +1 -2
  94. package/lib/commonjs/hooks.js +1 -2
  95. package/lib/commonjs/index.js +200 -15
  96. package/lib/commonjs/interfaces/Icon.js +1 -2
  97. package/lib/commonjs/mappings/Accordion.js +1 -2
  98. package/lib/commonjs/mappings/AccordionItem.js +1 -2
  99. package/lib/commonjs/mappings/ActionSheet.js +1 -2
  100. package/lib/commonjs/mappings/ActionSheetCancel.js +1 -2
  101. package/lib/commonjs/mappings/ActionSheetItem.js +1 -2
  102. package/lib/commonjs/mappings/ActivityIndicator.js +1 -2
  103. package/lib/commonjs/mappings/AudioPlayer.js +33 -4
  104. package/lib/commonjs/mappings/AvatarEdit.js +45 -0
  105. package/lib/commonjs/mappings/Banner.js +39 -0
  106. package/lib/commonjs/mappings/BlurView.js +1 -2
  107. package/lib/commonjs/mappings/Button.js +1 -2
  108. package/lib/commonjs/mappings/Card.js +60 -0
  109. package/lib/commonjs/mappings/CardBlock.js +126 -0
  110. package/lib/commonjs/mappings/CardContainer.js +108 -0
  111. package/lib/commonjs/mappings/CardContainerRating.js +130 -0
  112. package/lib/commonjs/mappings/CardContainerShortImage.js +124 -0
  113. package/lib/commonjs/mappings/CardInline.js +59 -0
  114. package/lib/commonjs/mappings/Carousel.js +24 -0
  115. package/lib/commonjs/mappings/Checkbox.js +1 -2
  116. package/lib/commonjs/mappings/CheckboxGroup.js +1 -2
  117. package/lib/commonjs/mappings/CheckboxRow.js +1 -2
  118. package/lib/commonjs/mappings/CircleImage.js +32 -0
  119. package/lib/commonjs/mappings/Container.js +37 -0
  120. package/lib/commonjs/mappings/CustomCode.js +1 -2
  121. package/lib/commonjs/mappings/DatePicker.js +24 -12
  122. package/lib/commonjs/mappings/Divider.js +32 -0
  123. package/lib/commonjs/mappings/FAB.js +44 -0
  124. package/lib/commonjs/mappings/Fetch.js +1 -2
  125. package/lib/commonjs/mappings/FieldSearchBarFull.js +56 -0
  126. package/lib/commonjs/mappings/FlashList.js +1 -2
  127. package/lib/commonjs/mappings/FlatList.js +1 -2
  128. package/lib/commonjs/mappings/HeaderLarge.js +34 -0
  129. package/lib/commonjs/mappings/HeaderMedium.js +60 -0
  130. package/lib/commonjs/mappings/HeaderOverline.js +60 -0
  131. package/lib/commonjs/mappings/Icon.js +1 -2
  132. package/lib/commonjs/mappings/IconButton.js +1 -2
  133. package/lib/commonjs/mappings/Image.js +1 -2
  134. package/lib/commonjs/mappings/ImageBackground.js +1 -2
  135. package/lib/commonjs/mappings/KeyboardAvoidingView.js +1 -2
  136. package/lib/commonjs/mappings/KeyboardAwareScrollView.js +1 -2
  137. package/lib/commonjs/mappings/Layout.js +1 -2
  138. package/lib/commonjs/mappings/LinearGradient.js +1 -2
  139. package/lib/commonjs/mappings/MapCallout.js +1 -2
  140. package/lib/commonjs/mappings/MapMarker.js +1 -2
  141. package/lib/commonjs/mappings/MapView.js +1 -2
  142. package/lib/commonjs/mappings/Modal.js +1 -2
  143. package/lib/commonjs/mappings/NumberInput.js +1 -2
  144. package/lib/commonjs/mappings/Picker.js +1 -2
  145. package/lib/commonjs/mappings/ProgressBar.js +106 -0
  146. package/lib/commonjs/mappings/ProgressCircle.js +116 -0
  147. package/lib/commonjs/mappings/ProgressIndicator.js +188 -0
  148. package/lib/commonjs/mappings/RadioButton.js +1 -2
  149. package/lib/commonjs/mappings/RadioButtonGroup.js +1 -2
  150. package/lib/commonjs/mappings/RadioButtonRow.js +1 -2
  151. package/lib/commonjs/mappings/RowBodyIcon.js +79 -0
  152. package/lib/commonjs/mappings/RowHeadlineImageCaption.js +169 -0
  153. package/lib/commonjs/mappings/RowHeadlineImageIcon.js +99 -0
  154. package/lib/commonjs/mappings/SVG.js +1 -2
  155. package/lib/commonjs/mappings/SafeAreaView.js +1 -2
  156. package/lib/commonjs/mappings/ScrollView.js +1 -2
  157. package/lib/commonjs/mappings/Slider.js +1 -2
  158. package/lib/commonjs/mappings/StarRating.js +1 -2
  159. package/lib/commonjs/mappings/Stepper.js +2 -3
  160. package/lib/commonjs/mappings/Surface.js +1 -2
  161. package/lib/commonjs/mappings/Swiper.js +1 -2
  162. package/lib/commonjs/mappings/SwiperItem.js +1 -2
  163. package/lib/commonjs/mappings/Switch.js +1 -2
  164. package/lib/commonjs/mappings/Text.js +1 -2
  165. package/lib/commonjs/mappings/TextArea.js +15 -5
  166. package/lib/commonjs/mappings/TextField.js +15 -6
  167. package/lib/commonjs/mappings/TextInput.js +15 -5
  168. package/lib/commonjs/mappings/ToggleButton.js +53 -0
  169. package/lib/commonjs/mappings/Touchable.js +2 -3
  170. package/lib/commonjs/mappings/Video.js +1 -2
  171. package/lib/commonjs/mappings/View.js +1 -2
  172. package/lib/commonjs/mappings/WebView.js +1 -2
  173. package/lib/commonjs/styles/DarkTheme.js +1 -2
  174. package/lib/commonjs/styles/DefaultTheme.js +1 -2
  175. package/lib/commonjs/styles/fonts.js +1 -2
  176. package/lib/commonjs/styles/overlay.js +1 -2
  177. package/lib/commonjs/styles/shadow.js +1 -2
  178. package/lib/commonjs/theming.js +1 -2
  179. package/lib/commonjs/utilities.js +1 -2
  180. package/lib/module/Provider.js +1 -2
  181. package/lib/module/components/Accordion/AccordionGroup.js +1 -2
  182. package/lib/module/components/Accordion/AccordionItem.js +1 -2
  183. package/lib/module/components/Accordion/index.js +1 -2
  184. package/lib/module/components/ActionSheet/ActionSheet.js +1 -2
  185. package/lib/module/components/ActionSheet/ActionSheetCancel.js +1 -2
  186. package/lib/module/components/ActionSheet/ActionSheetItem.js +1 -2
  187. package/lib/module/components/ActionSheet/index.js +1 -2
  188. package/lib/module/components/AnimatedCircularProgress.js +56 -0
  189. package/lib/module/components/AspectRatio.js +42 -0
  190. package/lib/module/components/AvatarEdit.js +49 -0
  191. package/lib/module/components/Banner.js +1 -2
  192. package/lib/module/components/Button.js +1 -2
  193. package/lib/module/components/Card.js +128 -0
  194. package/lib/module/components/CardBlock.js +98 -0
  195. package/lib/module/components/CardContainer.js +121 -0
  196. package/lib/module/components/CardContainerRating.js +125 -0
  197. package/lib/module/components/CardContainerShortImage.js +76 -0
  198. package/lib/module/components/CardInline.js +82 -0
  199. package/lib/module/components/Carousel.js +120 -0
  200. package/lib/module/components/Checkbox/Checkbox.js +1 -2
  201. package/lib/module/components/Checkbox/CheckboxGroup.js +1 -2
  202. package/lib/module/components/Checkbox/CheckboxGroupRow.js +1 -2
  203. package/lib/module/components/Checkbox/CheckboxRow.js +1 -2
  204. package/lib/module/components/Checkbox/context.js +1 -2
  205. package/lib/module/components/Checkbox/index.js +1 -2
  206. package/lib/module/components/CircleImage.js +25 -0
  207. package/lib/module/components/CircularProgress.js +104 -0
  208. package/lib/module/components/Config.js +1 -2
  209. package/lib/module/components/Container.js +83 -0
  210. package/lib/module/components/DatePicker/DatePicker.js +20 -11
  211. package/lib/module/components/DatePicker/DatePickerComponent.js +1 -2
  212. package/lib/module/components/DatePicker/DatePickerComponent.web.js +1 -2
  213. package/lib/module/components/DatePicker/DatePickerComponentType.js +1 -2
  214. package/lib/module/components/DeprecatedButton.js +1 -2
  215. package/lib/module/components/DeprecatedCardWrapper.js +32 -0
  216. package/lib/module/components/DeprecatedFAB.js +148 -0
  217. package/lib/module/components/Divider.js +21 -0
  218. package/lib/module/components/Elevation.js +1 -2
  219. package/lib/module/components/FAB.js +73 -0
  220. package/lib/module/components/FieldSearchBarFull.js +87 -0
  221. package/lib/module/components/FormRow.js +1 -2
  222. package/lib/module/components/Header.js +72 -0
  223. package/lib/module/components/HeaderLarge.js +28 -0
  224. package/lib/module/components/HeaderMedium.js +28 -0
  225. package/lib/module/components/HeaderOverline.js +29 -0
  226. package/lib/module/components/IconButton.js +1 -2
  227. package/lib/module/components/Image.js +74 -0
  228. package/lib/module/components/Justification.js +0 -0
  229. package/lib/module/components/Layout.js +1 -2
  230. package/lib/module/components/NumberInput.js +1 -2
  231. package/lib/module/components/Picker/Picker.js +1 -2
  232. package/lib/module/components/Picker/PickerComponent.android.js +1 -2
  233. package/lib/module/components/Picker/PickerComponent.ios.js +1 -2
  234. package/lib/module/components/Picker/PickerComponent.web.js +1 -2
  235. package/lib/module/components/Picker/PickerTypes.js +1 -2
  236. package/lib/module/components/Portal/Portal.js +1 -2
  237. package/lib/module/components/Portal/PortalConsumer.js +1 -2
  238. package/lib/module/components/Portal/PortalHost.js +1 -2
  239. package/lib/module/components/Portal/PortalManager.js +1 -2
  240. package/lib/module/components/ProgressBar.js +149 -0
  241. package/lib/module/components/ProgressCircle.js +38 -0
  242. package/lib/module/components/ProgressIndicator.js +45 -0
  243. package/lib/module/components/RadioButton/RadioButton.js +1 -2
  244. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +1 -2
  245. package/lib/module/components/RadioButton/RadioButtonGroup.js +1 -2
  246. package/lib/module/components/RadioButton/RadioButtonRow.js +1 -2
  247. package/lib/module/components/RadioButton/context.js +1 -2
  248. package/lib/module/components/RadioButton/index.js +1 -2
  249. package/lib/module/components/ResizeMode.js +0 -0
  250. package/lib/module/components/Row.js +63 -0
  251. package/lib/module/components/RowBodyIcon.js +35 -0
  252. package/lib/module/components/RowHeadlineImageCaption.js +35 -0
  253. package/lib/module/components/RowHeadlineImageIcon.js +41 -0
  254. package/lib/module/components/SVG.js +1 -2
  255. package/lib/module/components/ScreenContainer.js +1 -2
  256. package/lib/module/components/Slider.js +1 -2
  257. package/lib/module/components/StarRating.js +1 -2
  258. package/lib/module/components/StepIndicator.js +377 -0
  259. package/lib/module/components/Stepper.js +8 -5
  260. package/lib/module/components/Surface.js +1 -2
  261. package/lib/module/components/Swiper/Swiper.js +1 -2
  262. package/lib/module/components/Swiper/SwiperItem.js +1 -2
  263. package/lib/module/components/Swiper/index.js +1 -2
  264. package/lib/module/components/Switch.js +1 -2
  265. package/lib/module/components/Text.js +1 -2
  266. package/lib/module/components/TextField.js +1 -2
  267. package/lib/module/components/ToggleButton.js +61 -0
  268. package/lib/module/components/Touchable.js +1 -2
  269. package/lib/module/components/Touchable.web.js +1 -2
  270. package/lib/module/components/Typography.js +48 -0
  271. package/lib/module/components/useAuthState.js +19 -0
  272. package/lib/module/constants.js +1 -2
  273. package/lib/module/hooks.js +1 -2
  274. package/lib/module/index.js +41 -34
  275. package/lib/module/interfaces/Icon.js +1 -2
  276. package/lib/module/mappings/Accordion.js +1 -2
  277. package/lib/module/mappings/AccordionItem.js +1 -2
  278. package/lib/module/mappings/ActionSheet.js +1 -2
  279. package/lib/module/mappings/ActionSheetCancel.js +1 -2
  280. package/lib/module/mappings/ActionSheetItem.js +1 -2
  281. package/lib/module/mappings/ActivityIndicator.js +1 -2
  282. package/lib/module/mappings/AudioPlayer.js +34 -5
  283. package/lib/module/mappings/AvatarEdit.js +38 -0
  284. package/lib/module/mappings/Banner.js +32 -0
  285. package/lib/module/mappings/BlurView.js +1 -2
  286. package/lib/module/mappings/Button.js +1 -2
  287. package/lib/module/mappings/Card.js +53 -0
  288. package/lib/module/mappings/CardBlock.js +119 -0
  289. package/lib/module/mappings/CardContainer.js +101 -0
  290. package/lib/module/mappings/CardContainerRating.js +123 -0
  291. package/lib/module/mappings/CardContainerShortImage.js +117 -0
  292. package/lib/module/mappings/CardInline.js +52 -0
  293. package/lib/module/mappings/Carousel.js +17 -0
  294. package/lib/module/mappings/Checkbox.js +1 -2
  295. package/lib/module/mappings/CheckboxGroup.js +1 -2
  296. package/lib/module/mappings/CheckboxRow.js +1 -2
  297. package/lib/module/mappings/CircleImage.js +25 -0
  298. package/lib/module/mappings/Container.js +30 -0
  299. package/lib/module/mappings/CustomCode.js +1 -2
  300. package/lib/module/mappings/DatePicker.js +25 -13
  301. package/lib/module/mappings/Divider.js +25 -0
  302. package/lib/module/mappings/FAB.js +37 -0
  303. package/lib/module/mappings/Fetch.js +1 -2
  304. package/lib/module/mappings/FieldSearchBarFull.js +49 -0
  305. package/lib/module/mappings/FlashList.js +1 -2
  306. package/lib/module/mappings/FlatList.js +1 -2
  307. package/lib/module/mappings/HeaderLarge.js +27 -0
  308. package/lib/module/mappings/HeaderMedium.js +53 -0
  309. package/lib/module/mappings/HeaderOverline.js +53 -0
  310. package/lib/module/mappings/Icon.js +1 -2
  311. package/lib/module/mappings/IconButton.js +1 -2
  312. package/lib/module/mappings/Image.js +1 -2
  313. package/lib/module/mappings/ImageBackground.js +1 -2
  314. package/lib/module/mappings/KeyboardAvoidingView.js +1 -2
  315. package/lib/module/mappings/KeyboardAwareScrollView.js +1 -2
  316. package/lib/module/mappings/Layout.js +1 -2
  317. package/lib/module/mappings/LinearGradient.js +1 -2
  318. package/lib/module/mappings/MapCallout.js +1 -2
  319. package/lib/module/mappings/MapMarker.js +1 -2
  320. package/lib/module/mappings/MapView.js +1 -2
  321. package/lib/module/mappings/Modal.js +1 -2
  322. package/lib/module/mappings/NumberInput.js +1 -2
  323. package/lib/module/mappings/Picker.js +1 -2
  324. package/lib/module/mappings/ProgressBar.js +99 -0
  325. package/lib/module/mappings/ProgressCircle.js +109 -0
  326. package/lib/module/mappings/ProgressIndicator.js +181 -0
  327. package/lib/module/mappings/RadioButton.js +1 -2
  328. package/lib/module/mappings/RadioButtonGroup.js +1 -2
  329. package/lib/module/mappings/RadioButtonRow.js +1 -2
  330. package/lib/module/mappings/RowBodyIcon.js +72 -0
  331. package/lib/module/mappings/RowHeadlineImageCaption.js +162 -0
  332. package/lib/module/mappings/RowHeadlineImageIcon.js +92 -0
  333. package/lib/module/mappings/SVG.js +1 -2
  334. package/lib/module/mappings/SafeAreaView.js +1 -2
  335. package/lib/module/mappings/ScrollView.js +1 -2
  336. package/lib/module/mappings/Slider.js +1 -2
  337. package/lib/module/mappings/StarRating.js +1 -2
  338. package/lib/module/mappings/Stepper.js +3 -4
  339. package/lib/module/mappings/Surface.js +1 -2
  340. package/lib/module/mappings/Swiper.js +1 -2
  341. package/lib/module/mappings/SwiperItem.js +1 -2
  342. package/lib/module/mappings/Switch.js +1 -2
  343. package/lib/module/mappings/Text.js +1 -2
  344. package/lib/module/mappings/TextArea.js +16 -6
  345. package/lib/module/mappings/TextField.js +15 -6
  346. package/lib/module/mappings/TextInput.js +16 -6
  347. package/lib/module/mappings/ToggleButton.js +46 -0
  348. package/lib/module/mappings/Touchable.js +2 -3
  349. package/lib/module/mappings/Video.js +1 -2
  350. package/lib/module/mappings/View.js +1 -2
  351. package/lib/module/mappings/WebView.js +1 -2
  352. package/lib/module/styles/DarkTheme.js +1 -2
  353. package/lib/module/styles/DefaultTheme.js +1 -2
  354. package/lib/module/styles/fonts.js +1 -2
  355. package/lib/module/styles/overlay.js +1 -2
  356. package/lib/module/styles/shadow.js +1 -2
  357. package/lib/module/theming.js +1 -2
  358. package/lib/module/utilities.js +1 -2
  359. package/lib/typescript/src/Provider.d.ts +1 -0
  360. package/lib/typescript/src/Provider.d.ts.map +1 -0
  361. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -0
  362. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -0
  363. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -0
  364. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -0
  365. package/lib/typescript/src/components/Accordion/index.d.ts +1 -0
  366. package/lib/typescript/src/components/Accordion/index.d.ts.map +1 -0
  367. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +1 -0
  368. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts.map +1 -0
  369. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -0
  370. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -0
  371. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -0
  372. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -0
  373. package/lib/typescript/src/components/ActionSheet/index.d.ts +1 -0
  374. package/lib/typescript/src/components/ActionSheet/index.d.ts.map +1 -0
  375. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +14 -0
  376. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
  377. package/lib/typescript/src/components/AspectRatio.d.ts +9 -0
  378. package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
  379. package/lib/typescript/src/components/AvatarEdit.d.ts +16 -0
  380. package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
  381. package/lib/typescript/src/components/Banner.d.ts +1 -0
  382. package/lib/typescript/src/components/Banner.d.ts.map +1 -0
  383. package/lib/typescript/src/components/Button.d.ts +1 -0
  384. package/lib/typescript/src/components/Button.d.ts.map +1 -0
  385. package/lib/typescript/src/components/Card.d.ts +43 -0
  386. package/lib/typescript/src/components/Card.d.ts.map +1 -0
  387. package/lib/typescript/src/components/CardBlock.d.ts +21 -0
  388. package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
  389. package/lib/typescript/src/components/CardContainer.d.ts +23 -0
  390. package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
  391. package/lib/typescript/src/components/CardContainerRating.d.ts +24 -0
  392. package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
  393. package/lib/typescript/src/components/CardContainerShortImage.d.ts +19 -0
  394. package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
  395. package/lib/typescript/src/components/CardInline.d.ts +20 -0
  396. package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
  397. package/lib/typescript/src/components/Carousel.d.ts +15 -0
  398. package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
  399. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +1 -0
  400. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -0
  401. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts +1 -0
  402. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
  403. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +1 -0
  404. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -0
  405. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +1 -0
  406. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -0
  407. package/lib/typescript/src/components/Checkbox/context.d.ts +1 -0
  408. package/lib/typescript/src/components/Checkbox/context.d.ts.map +1 -0
  409. package/lib/typescript/src/components/Checkbox/index.d.ts +1 -0
  410. package/lib/typescript/src/components/Checkbox/index.d.ts.map +1 -0
  411. package/lib/typescript/src/components/CircleImage.d.ts +10 -0
  412. package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
  413. package/lib/typescript/src/components/CircularProgress.d.ts +43 -0
  414. package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
  415. package/lib/typescript/src/components/Config.d.ts +1 -0
  416. package/lib/typescript/src/components/Config.d.ts.map +1 -0
  417. package/lib/typescript/src/components/Container.d.ts +21 -0
  418. package/lib/typescript/src/components/Container.d.ts.map +1 -0
  419. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +7 -2
  420. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -0
  421. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +1 -0
  422. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -0
  423. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +1 -0
  424. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -0
  425. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +1 -0
  426. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -0
  427. package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -0
  428. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
  429. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +15 -0
  430. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
  431. package/lib/typescript/src/components/DeprecatedFAB.d.ts +56 -0
  432. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
  433. package/lib/typescript/src/components/Divider.d.ts +13 -0
  434. package/lib/typescript/src/components/Divider.d.ts.map +1 -0
  435. package/lib/typescript/src/components/Elevation.d.ts +1 -0
  436. package/lib/typescript/src/components/Elevation.d.ts.map +1 -0
  437. package/lib/typescript/src/components/FAB.d.ts +20 -0
  438. package/lib/typescript/src/components/FAB.d.ts.map +1 -0
  439. package/lib/typescript/src/components/FieldSearchBarFull.d.ts +20 -0
  440. package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
  441. package/lib/typescript/src/components/FormRow.d.ts +1 -0
  442. package/lib/typescript/src/components/FormRow.d.ts.map +1 -0
  443. package/lib/typescript/src/components/Header.d.ts +20 -0
  444. package/lib/typescript/src/components/Header.d.ts.map +1 -0
  445. package/lib/typescript/src/components/HeaderLarge.d.ts +17 -0
  446. package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
  447. package/lib/typescript/src/components/HeaderMedium.d.ts +17 -0
  448. package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
  449. package/lib/typescript/src/components/HeaderOverline.d.ts +17 -0
  450. package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
  451. package/lib/typescript/src/components/IconButton.d.ts +1 -0
  452. package/lib/typescript/src/components/IconButton.d.ts.map +1 -0
  453. package/lib/typescript/src/components/Image.d.ts +5 -0
  454. package/lib/typescript/src/components/Image.d.ts.map +1 -0
  455. package/lib/typescript/src/components/Justification.d.ts +2 -0
  456. package/lib/typescript/src/components/Justification.d.ts.map +1 -0
  457. package/lib/typescript/src/components/Layout.d.ts +1 -0
  458. package/lib/typescript/src/components/Layout.d.ts.map +1 -0
  459. package/lib/typescript/src/components/NumberInput.d.ts +1 -0
  460. package/lib/typescript/src/components/NumberInput.d.ts.map +1 -0
  461. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
  462. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -0
  463. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +1 -0
  464. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts.map +1 -0
  465. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +1 -0
  466. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts.map +1 -0
  467. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +1 -0
  468. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts.map +1 -0
  469. package/lib/typescript/src/components/Picker/PickerTypes.d.ts +1 -0
  470. package/lib/typescript/src/components/Picker/PickerTypes.d.ts.map +1 -0
  471. package/lib/typescript/src/components/Portal/Portal.d.ts +1 -0
  472. package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -0
  473. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -0
  474. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -0
  475. package/lib/typescript/src/components/Portal/PortalHost.d.ts +1 -0
  476. package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -0
  477. package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -0
  478. package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -0
  479. package/lib/typescript/src/components/ProgressBar.d.ts +35 -0
  480. package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
  481. package/lib/typescript/src/components/ProgressCircle.d.ts +21 -0
  482. package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
  483. package/lib/typescript/src/components/ProgressIndicator.d.ts +24 -0
  484. package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
  485. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -0
  486. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -0
  487. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts +1 -0
  488. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts.map +1 -0
  489. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +1 -0
  490. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts.map +1 -0
  491. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -0
  492. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts.map +1 -0
  493. package/lib/typescript/src/components/RadioButton/context.d.ts +1 -0
  494. package/lib/typescript/src/components/RadioButton/context.d.ts.map +1 -0
  495. package/lib/typescript/src/components/RadioButton/index.d.ts +1 -0
  496. package/lib/typescript/src/components/RadioButton/index.d.ts.map +1 -0
  497. package/lib/typescript/src/components/ResizeMode.d.ts +2 -0
  498. package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
  499. package/lib/typescript/src/components/Row.d.ts +21 -0
  500. package/lib/typescript/src/components/Row.d.ts.map +1 -0
  501. package/lib/typescript/src/components/RowBodyIcon.d.ts +16 -0
  502. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
  503. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +16 -0
  504. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
  505. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +18 -0
  506. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
  507. package/lib/typescript/src/components/SVG.d.ts +1 -0
  508. package/lib/typescript/src/components/SVG.d.ts.map +1 -0
  509. package/lib/typescript/src/components/ScreenContainer.d.ts +1 -0
  510. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -0
  511. package/lib/typescript/src/components/Slider.d.ts +1 -0
  512. package/lib/typescript/src/components/Slider.d.ts.map +1 -0
  513. package/lib/typescript/src/components/StarRating.d.ts +1 -0
  514. package/lib/typescript/src/components/StarRating.d.ts.map +1 -0
  515. package/lib/typescript/src/components/StepIndicator.d.ts +54 -0
  516. package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
  517. package/lib/typescript/src/components/Stepper.d.ts +2 -2
  518. package/lib/typescript/src/components/Stepper.d.ts.map +1 -0
  519. package/lib/typescript/src/components/Surface.d.ts +1 -0
  520. package/lib/typescript/src/components/Surface.d.ts.map +1 -0
  521. package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -0
  522. package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -0
  523. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +1 -0
  524. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts.map +1 -0
  525. package/lib/typescript/src/components/Swiper/index.d.ts +1 -0
  526. package/lib/typescript/src/components/Swiper/index.d.ts.map +1 -0
  527. package/lib/typescript/src/components/Switch.d.ts +1 -0
  528. package/lib/typescript/src/components/Switch.d.ts.map +1 -0
  529. package/lib/typescript/src/components/Text.d.ts +1 -0
  530. package/lib/typescript/src/components/Text.d.ts.map +1 -0
  531. package/lib/typescript/src/components/TextField.d.ts +1 -0
  532. package/lib/typescript/src/components/TextField.d.ts.map +1 -0
  533. package/lib/typescript/src/components/ToggleButton.d.ts +25 -0
  534. package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
  535. package/lib/typescript/src/components/Touchable.d.ts +1 -0
  536. package/lib/typescript/src/components/Touchable.d.ts.map +1 -0
  537. package/lib/typescript/src/components/Touchable.web.d.ts +1 -0
  538. package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
  539. package/lib/typescript/src/components/Typography.d.ts +22 -0
  540. package/lib/typescript/src/components/Typography.d.ts.map +1 -0
  541. package/lib/typescript/src/components/useAuthState.d.ts +2 -0
  542. package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
  543. package/lib/typescript/src/constants.d.ts +1 -0
  544. package/lib/typescript/src/constants.d.ts.map +1 -0
  545. package/lib/typescript/src/hooks.d.ts +1 -0
  546. package/lib/typescript/src/hooks.d.ts.map +1 -0
  547. package/lib/typescript/src/index.d.ts +40 -14
  548. package/lib/typescript/src/index.d.ts.map +1 -0
  549. package/lib/typescript/src/interfaces/Icon.d.ts +1 -0
  550. package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -0
  551. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  552. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
  553. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  554. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
  555. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  556. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
  557. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  558. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
  559. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  560. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
  561. package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
  562. package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
  563. package/lib/typescript/src/mappings/AudioPlayer.d.ts +63 -1
  564. package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
  565. package/lib/typescript/src/mappings/AvatarEdit.d.ts +38 -0
  566. package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
  567. package/lib/typescript/src/mappings/Banner.d.ts +49 -0
  568. package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
  569. package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
  570. package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
  571. package/lib/typescript/src/mappings/Button.d.ts +1 -0
  572. package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
  573. package/lib/typescript/src/mappings/Card.d.ts +114 -0
  574. package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
  575. package/lib/typescript/src/mappings/CardBlock.d.ts +289 -0
  576. package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
  577. package/lib/typescript/src/mappings/CardContainer.d.ts +102 -0
  578. package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
  579. package/lib/typescript/src/mappings/CardContainerRating.d.ts +108 -0
  580. package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
  581. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +139 -0
  582. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
  583. package/lib/typescript/src/mappings/CardInline.d.ts +62 -0
  584. package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
  585. package/lib/typescript/src/mappings/Carousel.d.ts +34 -0
  586. package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
  587. package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
  588. package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
  589. package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
  590. package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
  591. package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
  592. package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
  593. package/lib/typescript/src/mappings/CircleImage.d.ts +34 -0
  594. package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
  595. package/lib/typescript/src/mappings/Container.d.ts +55 -0
  596. package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
  597. package/lib/typescript/src/mappings/CustomCode.d.ts +1 -0
  598. package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
  599. package/lib/typescript/src/mappings/DatePicker.d.ts +46 -3
  600. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
  601. package/lib/typescript/src/mappings/Divider.d.ts +25 -0
  602. package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
  603. package/lib/typescript/src/mappings/FAB.d.ts +83 -0
  604. package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
  605. package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
  606. package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
  607. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +56 -0
  608. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
  609. package/lib/typescript/src/mappings/FlashList.d.ts +1 -0
  610. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
  611. package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
  612. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
  613. package/lib/typescript/src/mappings/HeaderLarge.d.ts +34 -0
  614. package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
  615. package/lib/typescript/src/mappings/HeaderMedium.d.ts +53 -0
  616. package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
  617. package/lib/typescript/src/mappings/HeaderOverline.d.ts +53 -0
  618. package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
  619. package/lib/typescript/src/mappings/Icon.d.ts +1 -0
  620. package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
  621. package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
  622. package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
  623. package/lib/typescript/src/mappings/Image.d.ts +1 -0
  624. package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
  625. package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
  626. package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
  627. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
  628. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
  629. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
  630. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
  631. package/lib/typescript/src/mappings/Layout.d.ts +1 -0
  632. package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
  633. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  634. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
  635. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  636. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
  637. package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
  638. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
  639. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  640. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
  641. package/lib/typescript/src/mappings/Modal.d.ts +1 -0
  642. package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
  643. package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
  644. package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
  645. package/lib/typescript/src/mappings/Picker.d.ts +1 -0
  646. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
  647. package/lib/typescript/src/mappings/ProgressBar.d.ts +99 -0
  648. package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
  649. package/lib/typescript/src/mappings/ProgressCircle.d.ts +109 -0
  650. package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
  651. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +181 -0
  652. package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
  653. package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
  654. package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
  655. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
  656. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
  657. package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
  658. package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
  659. package/lib/typescript/src/mappings/RowBodyIcon.d.ts +73 -0
  660. package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
  661. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +166 -0
  662. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
  663. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +170 -0
  664. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
  665. package/lib/typescript/src/mappings/SVG.d.ts +1 -0
  666. package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
  667. package/lib/typescript/src/mappings/SafeAreaView.d.ts +1 -0
  668. package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
  669. package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
  670. package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
  671. package/lib/typescript/src/mappings/Slider.d.ts +1 -0
  672. package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
  673. package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
  674. package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
  675. package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
  676. package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
  677. package/lib/typescript/src/mappings/Surface.d.ts +1 -0
  678. package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
  679. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  680. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
  681. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  682. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
  683. package/lib/typescript/src/mappings/Switch.d.ts +1 -0
  684. package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
  685. package/lib/typescript/src/mappings/Text.d.ts +1 -0
  686. package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
  687. package/lib/typescript/src/mappings/TextArea.d.ts +22 -1
  688. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
  689. package/lib/typescript/src/mappings/TextField.d.ts +23 -2
  690. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
  691. package/lib/typescript/src/mappings/TextInput.d.ts +22 -1
  692. package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
  693. package/lib/typescript/src/mappings/ToggleButton.d.ts +116 -0
  694. package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
  695. package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
  696. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
  697. package/lib/typescript/src/mappings/Video.d.ts +1 -0
  698. package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
  699. package/lib/typescript/src/mappings/View.d.ts +1 -0
  700. package/lib/typescript/src/mappings/View.d.ts.map +1 -0
  701. package/lib/typescript/src/mappings/WebView.d.ts +1 -0
  702. package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
  703. package/lib/typescript/src/styles/DarkTheme.d.ts +1 -0
  704. package/lib/typescript/src/styles/DarkTheme.d.ts.map +1 -0
  705. package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -0
  706. package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -0
  707. package/lib/typescript/src/styles/fonts.d.ts +1 -0
  708. package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
  709. package/lib/typescript/src/styles/overlay.d.ts +2 -1
  710. package/lib/typescript/src/styles/overlay.d.ts.map +1 -0
  711. package/lib/typescript/src/styles/shadow.d.ts +3 -2
  712. package/lib/typescript/src/styles/shadow.d.ts.map +1 -0
  713. package/lib/typescript/src/theming.d.ts +1 -0
  714. package/lib/typescript/src/theming.d.ts.map +1 -0
  715. package/lib/typescript/src/utilities.d.ts +1 -0
  716. package/lib/typescript/src/utilities.d.ts.map +1 -0
  717. package/package.json +19 -9
  718. package/src/components/AnimatedCircularProgress.tsx +101 -0
  719. package/src/components/AspectRatio.tsx +40 -0
  720. package/src/components/AvatarEdit.tsx +64 -0
  721. package/src/components/Card.tsx +161 -0
  722. package/src/components/CardBlock.tsx +127 -0
  723. package/src/components/CardContainer.tsx +165 -0
  724. package/src/components/CardContainerRating.tsx +175 -0
  725. package/src/components/CardContainerShortImage.tsx +101 -0
  726. package/src/components/CardInline.tsx +93 -0
  727. package/src/components/Carousel.tsx +134 -0
  728. package/src/components/CircleImage.tsx +33 -0
  729. package/src/components/CircularProgress.tsx +188 -0
  730. package/src/components/Container.tsx +116 -0
  731. package/src/components/DatePicker/DatePicker.tsx +29 -11
  732. package/src/components/DeprecatedCardWrapper.tsx +46 -0
  733. package/src/components/DeprecatedFAB.tsx +231 -0
  734. package/src/components/Divider.tsx +32 -0
  735. package/src/components/FAB.tsx +108 -0
  736. package/src/components/FieldSearchBarFull.tsx +126 -0
  737. package/src/components/Header.tsx +105 -0
  738. package/src/components/HeaderLarge.tsx +40 -0
  739. package/src/components/HeaderMedium.tsx +41 -0
  740. package/src/components/HeaderOverline.tsx +42 -0
  741. package/src/components/Image.tsx +91 -0
  742. package/src/components/Justification.ts +8 -0
  743. package/src/components/ProgressBar.tsx +191 -0
  744. package/src/components/ProgressCircle.tsx +64 -0
  745. package/src/components/ProgressIndicator.tsx +71 -0
  746. package/src/components/ResizeMode.ts +7 -0
  747. package/src/components/Row.tsx +108 -0
  748. package/src/components/RowBodyIcon.tsx +47 -0
  749. package/src/components/RowHeadlineImageCaption.tsx +49 -0
  750. package/src/components/RowHeadlineImageIcon.tsx +61 -0
  751. package/src/components/StepIndicator.tsx +494 -0
  752. package/src/components/Stepper.tsx +5 -5
  753. package/src/components/ToggleButton.tsx +94 -0
  754. package/src/components/Typography.tsx +67 -0
  755. package/src/components/useAuthState.tsx +38 -0
  756. package/src/index.tsx +51 -40
  757. package/src/mappings/AudioPlayer.ts +41 -1
  758. package/src/mappings/AvatarEdit.ts +45 -0
  759. package/src/mappings/Banner.ts +40 -0
  760. package/src/mappings/Card.ts +64 -0
  761. package/src/mappings/CardBlock.ts +136 -0
  762. package/src/mappings/CardContainer.ts +116 -0
  763. package/src/mappings/CardContainerRating.ts +137 -0
  764. package/src/mappings/CardContainerShortImage.ts +130 -0
  765. package/src/mappings/CardInline.ts +61 -0
  766. package/src/mappings/Carousel.ts +25 -0
  767. package/src/mappings/CircleImage.ts +33 -0
  768. package/src/mappings/Container.ts +41 -0
  769. package/src/mappings/DatePicker.ts +32 -10
  770. package/src/mappings/Divider.ts +34 -0
  771. package/src/mappings/FAB.ts +48 -0
  772. package/src/mappings/FieldSearchBarFull.ts +59 -0
  773. package/src/mappings/HeaderLarge.ts +38 -0
  774. package/src/mappings/HeaderMedium.ts +63 -0
  775. package/src/mappings/HeaderOverline.ts +63 -0
  776. package/src/mappings/ProgressBar.ts +110 -0
  777. package/src/mappings/ProgressCircle.ts +117 -0
  778. package/src/mappings/ProgressIndicator.ts +190 -0
  779. package/src/mappings/RowBodyIcon.ts +82 -0
  780. package/src/mappings/RowHeadlineImageCaption.ts +178 -0
  781. package/src/mappings/RowHeadlineImageIcon.ts +116 -0
  782. package/src/mappings/Stepper.ts +5 -1
  783. package/src/mappings/TextArea.ts +15 -3
  784. package/src/mappings/TextField.ts +14 -4
  785. package/src/mappings/TextInput.ts +15 -3
  786. package/src/mappings/ToggleButton.ts +63 -0
  787. package/src/mappings/Touchable.ts +1 -1
  788. package/src/styles/overlay.tsx +2 -2
  789. package/lib/commonjs/Provider.js.map +0 -1
  790. package/lib/commonjs/components/Accordion/AccordionGroup.js.map +0 -1
  791. package/lib/commonjs/components/Accordion/AccordionItem.js.map +0 -1
  792. package/lib/commonjs/components/Accordion/index.js.map +0 -1
  793. package/lib/commonjs/components/ActionSheet/ActionSheet.js.map +0 -1
  794. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +0 -1
  795. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js.map +0 -1
  796. package/lib/commonjs/components/ActionSheet/index.js.map +0 -1
  797. package/lib/commonjs/components/Banner.js.map +0 -1
  798. package/lib/commonjs/components/Button.js.map +0 -1
  799. package/lib/commonjs/components/Checkbox/Checkbox.js.map +0 -1
  800. package/lib/commonjs/components/Checkbox/CheckboxGroup.js.map +0 -1
  801. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +0 -1
  802. package/lib/commonjs/components/Checkbox/CheckboxRow.js.map +0 -1
  803. package/lib/commonjs/components/Checkbox/context.js.map +0 -1
  804. package/lib/commonjs/components/Checkbox/index.js.map +0 -1
  805. package/lib/commonjs/components/Config.js.map +0 -1
  806. package/lib/commonjs/components/DatePicker/DatePicker.js.map +0 -1
  807. package/lib/commonjs/components/DatePicker/DatePickerComponent.js.map +0 -1
  808. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +0 -1
  809. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +0 -1
  810. package/lib/commonjs/components/DeprecatedButton.js.map +0 -1
  811. package/lib/commonjs/components/Elevation.js.map +0 -1
  812. package/lib/commonjs/components/FormRow.js.map +0 -1
  813. package/lib/commonjs/components/IconButton.js.map +0 -1
  814. package/lib/commonjs/components/Layout.js.map +0 -1
  815. package/lib/commonjs/components/NumberInput.js.map +0 -1
  816. package/lib/commonjs/components/Picker/Picker.js.map +0 -1
  817. package/lib/commonjs/components/Picker/PickerComponent.android.js.map +0 -1
  818. package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +0 -1
  819. package/lib/commonjs/components/Picker/PickerComponent.web.js.map +0 -1
  820. package/lib/commonjs/components/Picker/PickerTypes.js.map +0 -1
  821. package/lib/commonjs/components/Portal/Portal.js.map +0 -1
  822. package/lib/commonjs/components/Portal/PortalConsumer.js.map +0 -1
  823. package/lib/commonjs/components/Portal/PortalHost.js.map +0 -1
  824. package/lib/commonjs/components/Portal/PortalManager.js.map +0 -1
  825. package/lib/commonjs/components/RadioButton/RadioButton.js.map +0 -1
  826. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +0 -1
  827. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +0 -1
  828. package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +0 -1
  829. package/lib/commonjs/components/RadioButton/context.js.map +0 -1
  830. package/lib/commonjs/components/RadioButton/index.js.map +0 -1
  831. package/lib/commonjs/components/SVG.js.map +0 -1
  832. package/lib/commonjs/components/ScreenContainer.js.map +0 -1
  833. package/lib/commonjs/components/Slider.js.map +0 -1
  834. package/lib/commonjs/components/StarRating.js.map +0 -1
  835. package/lib/commonjs/components/Stepper.js.map +0 -1
  836. package/lib/commonjs/components/Surface.js.map +0 -1
  837. package/lib/commonjs/components/Swiper/Swiper.js.map +0 -1
  838. package/lib/commonjs/components/Swiper/SwiperItem.js.map +0 -1
  839. package/lib/commonjs/components/Swiper/index.js.map +0 -1
  840. package/lib/commonjs/components/Switch.js.map +0 -1
  841. package/lib/commonjs/components/Text.js.map +0 -1
  842. package/lib/commonjs/components/TextField.js.map +0 -1
  843. package/lib/commonjs/components/Touchable.js.map +0 -1
  844. package/lib/commonjs/components/Touchable.web.js.map +0 -1
  845. package/lib/commonjs/constants.js.map +0 -1
  846. package/lib/commonjs/hooks.js.map +0 -1
  847. package/lib/commonjs/index.js.map +0 -1
  848. package/lib/commonjs/interfaces/Icon.js.map +0 -1
  849. package/lib/commonjs/mappings/Accordion.js.map +0 -1
  850. package/lib/commonjs/mappings/AccordionItem.js.map +0 -1
  851. package/lib/commonjs/mappings/ActionSheet.js.map +0 -1
  852. package/lib/commonjs/mappings/ActionSheetCancel.js.map +0 -1
  853. package/lib/commonjs/mappings/ActionSheetItem.js.map +0 -1
  854. package/lib/commonjs/mappings/ActivityIndicator.js.map +0 -1
  855. package/lib/commonjs/mappings/AudioPlayer.js.map +0 -1
  856. package/lib/commonjs/mappings/BlurView.js.map +0 -1
  857. package/lib/commonjs/mappings/Button.js.map +0 -1
  858. package/lib/commonjs/mappings/Checkbox.js.map +0 -1
  859. package/lib/commonjs/mappings/CheckboxGroup.js.map +0 -1
  860. package/lib/commonjs/mappings/CheckboxRow.js.map +0 -1
  861. package/lib/commonjs/mappings/CustomCode.js.map +0 -1
  862. package/lib/commonjs/mappings/DatePicker.js.map +0 -1
  863. package/lib/commonjs/mappings/Fetch.js.map +0 -1
  864. package/lib/commonjs/mappings/FlashList.js.map +0 -1
  865. package/lib/commonjs/mappings/FlatList.js.map +0 -1
  866. package/lib/commonjs/mappings/Icon.js.map +0 -1
  867. package/lib/commonjs/mappings/IconButton.js.map +0 -1
  868. package/lib/commonjs/mappings/Image.js.map +0 -1
  869. package/lib/commonjs/mappings/ImageBackground.js.map +0 -1
  870. package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +0 -1
  871. package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +0 -1
  872. package/lib/commonjs/mappings/Layout.js.map +0 -1
  873. package/lib/commonjs/mappings/LinearGradient.js.map +0 -1
  874. package/lib/commonjs/mappings/MapCallout.js.map +0 -1
  875. package/lib/commonjs/mappings/MapMarker.js.map +0 -1
  876. package/lib/commonjs/mappings/MapView.js.map +0 -1
  877. package/lib/commonjs/mappings/Modal.js.map +0 -1
  878. package/lib/commonjs/mappings/NativeBase/Layout/AspectRatio.js +0 -17
  879. package/lib/commonjs/mappings/NativeBase/Layout/AspectRatio.js.map +0 -1
  880. package/lib/commonjs/mappings/NativeBase/Layout/Box.js +0 -17
  881. package/lib/commonjs/mappings/NativeBase/Layout/Box.js.map +0 -1
  882. package/lib/commonjs/mappings/NativeBase/Layout/Center.js +0 -31
  883. package/lib/commonjs/mappings/NativeBase/Layout/Center.js.map +0 -1
  884. package/lib/commonjs/mappings/NativeBase/Layout/Column.js +0 -17
  885. package/lib/commonjs/mappings/NativeBase/Layout/Column.js.map +0 -1
  886. package/lib/commonjs/mappings/NativeBase/Layout/Container.js +0 -17
  887. package/lib/commonjs/mappings/NativeBase/Layout/Container.js.map +0 -1
  888. package/lib/commonjs/mappings/NativeBase/Layout/Row.js +0 -17
  889. package/lib/commonjs/mappings/NativeBase/Layout/Row.js.map +0 -1
  890. package/lib/commonjs/mappings/NativeBase/Layout/Stack.js +0 -17
  891. package/lib/commonjs/mappings/NativeBase/Layout/Stack.js.map +0 -1
  892. package/lib/commonjs/mappings/NativeBase/Layout/ZStack.js +0 -17
  893. package/lib/commonjs/mappings/NativeBase/Layout/ZStack.js.map +0 -1
  894. package/lib/commonjs/mappings/NumberInput.js.map +0 -1
  895. package/lib/commonjs/mappings/Picker.js.map +0 -1
  896. package/lib/commonjs/mappings/RadioButton.js.map +0 -1
  897. package/lib/commonjs/mappings/RadioButtonGroup.js.map +0 -1
  898. package/lib/commonjs/mappings/RadioButtonRow.js.map +0 -1
  899. package/lib/commonjs/mappings/SVG.js.map +0 -1
  900. package/lib/commonjs/mappings/SafeAreaView.js.map +0 -1
  901. package/lib/commonjs/mappings/ScrollView.js.map +0 -1
  902. package/lib/commonjs/mappings/Slider.js.map +0 -1
  903. package/lib/commonjs/mappings/StarRating.js.map +0 -1
  904. package/lib/commonjs/mappings/Stepper.js.map +0 -1
  905. package/lib/commonjs/mappings/Surface.js.map +0 -1
  906. package/lib/commonjs/mappings/Swiper.js.map +0 -1
  907. package/lib/commonjs/mappings/SwiperItem.js.map +0 -1
  908. package/lib/commonjs/mappings/Switch.js.map +0 -1
  909. package/lib/commonjs/mappings/Text.js.map +0 -1
  910. package/lib/commonjs/mappings/TextArea.js.map +0 -1
  911. package/lib/commonjs/mappings/TextField.js.map +0 -1
  912. package/lib/commonjs/mappings/TextInput.js.map +0 -1
  913. package/lib/commonjs/mappings/Touchable.js.map +0 -1
  914. package/lib/commonjs/mappings/Video.js.map +0 -1
  915. package/lib/commonjs/mappings/View.js.map +0 -1
  916. package/lib/commonjs/mappings/WebView.js.map +0 -1
  917. package/lib/commonjs/styles/DarkTheme.js.map +0 -1
  918. package/lib/commonjs/styles/DefaultTheme.js.map +0 -1
  919. package/lib/commonjs/styles/fonts.js.map +0 -1
  920. package/lib/commonjs/styles/overlay.js.map +0 -1
  921. package/lib/commonjs/styles/shadow.js.map +0 -1
  922. package/lib/commonjs/theming.js.map +0 -1
  923. package/lib/commonjs/utilities.js.map +0 -1
  924. package/lib/module/Provider.js.map +0 -1
  925. package/lib/module/components/Accordion/AccordionGroup.js.map +0 -1
  926. package/lib/module/components/Accordion/AccordionItem.js.map +0 -1
  927. package/lib/module/components/Accordion/index.js.map +0 -1
  928. package/lib/module/components/ActionSheet/ActionSheet.js.map +0 -1
  929. package/lib/module/components/ActionSheet/ActionSheetCancel.js.map +0 -1
  930. package/lib/module/components/ActionSheet/ActionSheetItem.js.map +0 -1
  931. package/lib/module/components/ActionSheet/index.js.map +0 -1
  932. package/lib/module/components/Banner.js.map +0 -1
  933. package/lib/module/components/Button.js.map +0 -1
  934. package/lib/module/components/Checkbox/Checkbox.js.map +0 -1
  935. package/lib/module/components/Checkbox/CheckboxGroup.js.map +0 -1
  936. package/lib/module/components/Checkbox/CheckboxGroupRow.js.map +0 -1
  937. package/lib/module/components/Checkbox/CheckboxRow.js.map +0 -1
  938. package/lib/module/components/Checkbox/context.js.map +0 -1
  939. package/lib/module/components/Checkbox/index.js.map +0 -1
  940. package/lib/module/components/Config.js.map +0 -1
  941. package/lib/module/components/DatePicker/DatePicker.js.map +0 -1
  942. package/lib/module/components/DatePicker/DatePickerComponent.js.map +0 -1
  943. package/lib/module/components/DatePicker/DatePickerComponent.web.js.map +0 -1
  944. package/lib/module/components/DatePicker/DatePickerComponentType.js.map +0 -1
  945. package/lib/module/components/DeprecatedButton.js.map +0 -1
  946. package/lib/module/components/Elevation.js.map +0 -1
  947. package/lib/module/components/FormRow.js.map +0 -1
  948. package/lib/module/components/IconButton.js.map +0 -1
  949. package/lib/module/components/Layout.js.map +0 -1
  950. package/lib/module/components/NumberInput.js.map +0 -1
  951. package/lib/module/components/Picker/Picker.js.map +0 -1
  952. package/lib/module/components/Picker/PickerComponent.android.js.map +0 -1
  953. package/lib/module/components/Picker/PickerComponent.ios.js.map +0 -1
  954. package/lib/module/components/Picker/PickerComponent.web.js.map +0 -1
  955. package/lib/module/components/Picker/PickerTypes.js.map +0 -1
  956. package/lib/module/components/Portal/Portal.js.map +0 -1
  957. package/lib/module/components/Portal/PortalConsumer.js.map +0 -1
  958. package/lib/module/components/Portal/PortalHost.js.map +0 -1
  959. package/lib/module/components/Portal/PortalManager.js.map +0 -1
  960. package/lib/module/components/RadioButton/RadioButton.js.map +0 -1
  961. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js.map +0 -1
  962. package/lib/module/components/RadioButton/RadioButtonGroup.js.map +0 -1
  963. package/lib/module/components/RadioButton/RadioButtonRow.js.map +0 -1
  964. package/lib/module/components/RadioButton/context.js.map +0 -1
  965. package/lib/module/components/RadioButton/index.js.map +0 -1
  966. package/lib/module/components/SVG.js.map +0 -1
  967. package/lib/module/components/ScreenContainer.js.map +0 -1
  968. package/lib/module/components/Slider.js.map +0 -1
  969. package/lib/module/components/StarRating.js.map +0 -1
  970. package/lib/module/components/Stepper.js.map +0 -1
  971. package/lib/module/components/Surface.js.map +0 -1
  972. package/lib/module/components/Swiper/Swiper.js.map +0 -1
  973. package/lib/module/components/Swiper/SwiperItem.js.map +0 -1
  974. package/lib/module/components/Swiper/index.js.map +0 -1
  975. package/lib/module/components/Switch.js.map +0 -1
  976. package/lib/module/components/Text.js.map +0 -1
  977. package/lib/module/components/TextField.js.map +0 -1
  978. package/lib/module/components/Touchable.js.map +0 -1
  979. package/lib/module/components/Touchable.web.js.map +0 -1
  980. package/lib/module/constants.js.map +0 -1
  981. package/lib/module/hooks.js.map +0 -1
  982. package/lib/module/index.js.map +0 -1
  983. package/lib/module/interfaces/Icon.js.map +0 -1
  984. package/lib/module/mappings/Accordion.js.map +0 -1
  985. package/lib/module/mappings/AccordionItem.js.map +0 -1
  986. package/lib/module/mappings/ActionSheet.js.map +0 -1
  987. package/lib/module/mappings/ActionSheetCancel.js.map +0 -1
  988. package/lib/module/mappings/ActionSheetItem.js.map +0 -1
  989. package/lib/module/mappings/ActivityIndicator.js.map +0 -1
  990. package/lib/module/mappings/AudioPlayer.js.map +0 -1
  991. package/lib/module/mappings/BlurView.js.map +0 -1
  992. package/lib/module/mappings/Button.js.map +0 -1
  993. package/lib/module/mappings/Checkbox.js.map +0 -1
  994. package/lib/module/mappings/CheckboxGroup.js.map +0 -1
  995. package/lib/module/mappings/CheckboxRow.js.map +0 -1
  996. package/lib/module/mappings/CustomCode.js.map +0 -1
  997. package/lib/module/mappings/DatePicker.js.map +0 -1
  998. package/lib/module/mappings/Fetch.js.map +0 -1
  999. package/lib/module/mappings/FlashList.js.map +0 -1
  1000. package/lib/module/mappings/FlatList.js.map +0 -1
  1001. package/lib/module/mappings/Icon.js.map +0 -1
  1002. package/lib/module/mappings/IconButton.js.map +0 -1
  1003. package/lib/module/mappings/Image.js.map +0 -1
  1004. package/lib/module/mappings/ImageBackground.js.map +0 -1
  1005. package/lib/module/mappings/KeyboardAvoidingView.js.map +0 -1
  1006. package/lib/module/mappings/KeyboardAwareScrollView.js.map +0 -1
  1007. package/lib/module/mappings/Layout.js.map +0 -1
  1008. package/lib/module/mappings/LinearGradient.js.map +0 -1
  1009. package/lib/module/mappings/MapCallout.js.map +0 -1
  1010. package/lib/module/mappings/MapMarker.js.map +0 -1
  1011. package/lib/module/mappings/MapView.js.map +0 -1
  1012. package/lib/module/mappings/Modal.js.map +0 -1
  1013. package/lib/module/mappings/NativeBase/Layout/AspectRatio.js +0 -10
  1014. package/lib/module/mappings/NativeBase/Layout/AspectRatio.js.map +0 -1
  1015. package/lib/module/mappings/NativeBase/Layout/Box.js +0 -10
  1016. package/lib/module/mappings/NativeBase/Layout/Box.js.map +0 -1
  1017. package/lib/module/mappings/NativeBase/Layout/Center.js +0 -24
  1018. package/lib/module/mappings/NativeBase/Layout/Center.js.map +0 -1
  1019. package/lib/module/mappings/NativeBase/Layout/Column.js +0 -10
  1020. package/lib/module/mappings/NativeBase/Layout/Column.js.map +0 -1
  1021. package/lib/module/mappings/NativeBase/Layout/Container.js +0 -10
  1022. package/lib/module/mappings/NativeBase/Layout/Container.js.map +0 -1
  1023. package/lib/module/mappings/NativeBase/Layout/Row.js +0 -10
  1024. package/lib/module/mappings/NativeBase/Layout/Row.js.map +0 -1
  1025. package/lib/module/mappings/NativeBase/Layout/Stack.js +0 -10
  1026. package/lib/module/mappings/NativeBase/Layout/Stack.js.map +0 -1
  1027. package/lib/module/mappings/NativeBase/Layout/ZStack.js +0 -10
  1028. package/lib/module/mappings/NativeBase/Layout/ZStack.js.map +0 -1
  1029. package/lib/module/mappings/NumberInput.js.map +0 -1
  1030. package/lib/module/mappings/Picker.js.map +0 -1
  1031. package/lib/module/mappings/RadioButton.js.map +0 -1
  1032. package/lib/module/mappings/RadioButtonGroup.js.map +0 -1
  1033. package/lib/module/mappings/RadioButtonRow.js.map +0 -1
  1034. package/lib/module/mappings/SVG.js.map +0 -1
  1035. package/lib/module/mappings/SafeAreaView.js.map +0 -1
  1036. package/lib/module/mappings/ScrollView.js.map +0 -1
  1037. package/lib/module/mappings/Slider.js.map +0 -1
  1038. package/lib/module/mappings/StarRating.js.map +0 -1
  1039. package/lib/module/mappings/Stepper.js.map +0 -1
  1040. package/lib/module/mappings/Surface.js.map +0 -1
  1041. package/lib/module/mappings/Swiper.js.map +0 -1
  1042. package/lib/module/mappings/SwiperItem.js.map +0 -1
  1043. package/lib/module/mappings/Switch.js.map +0 -1
  1044. package/lib/module/mappings/Text.js.map +0 -1
  1045. package/lib/module/mappings/TextArea.js.map +0 -1
  1046. package/lib/module/mappings/TextField.js.map +0 -1
  1047. package/lib/module/mappings/TextInput.js.map +0 -1
  1048. package/lib/module/mappings/Touchable.js.map +0 -1
  1049. package/lib/module/mappings/Video.js.map +0 -1
  1050. package/lib/module/mappings/View.js.map +0 -1
  1051. package/lib/module/mappings/WebView.js.map +0 -1
  1052. package/lib/module/styles/DarkTheme.js.map +0 -1
  1053. package/lib/module/styles/DefaultTheme.js.map +0 -1
  1054. package/lib/module/styles/fonts.js.map +0 -1
  1055. package/lib/module/styles/overlay.js.map +0 -1
  1056. package/lib/module/styles/shadow.js.map +0 -1
  1057. package/lib/module/theming.js.map +0 -1
  1058. package/lib/module/utilities.js.map +0 -1
  1059. package/lib/typescript/src/mappings/NativeBase/Layout/AspectRatio.d.ts +0 -8
  1060. package/lib/typescript/src/mappings/NativeBase/Layout/Box.d.ts +0 -8
  1061. package/lib/typescript/src/mappings/NativeBase/Layout/Center.d.ts +0 -8
  1062. package/lib/typescript/src/mappings/NativeBase/Layout/Column.d.ts +0 -8
  1063. package/lib/typescript/src/mappings/NativeBase/Layout/Container.d.ts +0 -8
  1064. package/lib/typescript/src/mappings/NativeBase/Layout/Row.d.ts +0 -8
  1065. package/lib/typescript/src/mappings/NativeBase/Layout/Stack.d.ts +0 -8
  1066. package/lib/typescript/src/mappings/NativeBase/Layout/ZStack.d.ts +0 -8
  1067. package/src/Provider.js +0 -9
  1068. package/src/components/Accordion/AccordionGroup.js +0 -44
  1069. package/src/components/Accordion/AccordionItem.js +0 -32
  1070. package/src/components/Accordion/index.js +0 -2
  1071. package/src/components/ActionSheet/ActionSheet.js +0 -45
  1072. package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
  1073. package/src/components/ActionSheet/ActionSheetItem.js +0 -30
  1074. package/src/components/ActionSheet/index.js +0 -3
  1075. package/src/components/Banner.js +0 -109
  1076. package/src/components/Button.js +0 -114
  1077. package/src/components/Checkbox/Checkbox.js +0 -63
  1078. package/src/components/Checkbox/CheckboxGroup.js +0 -21
  1079. package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
  1080. package/src/components/Checkbox/CheckboxRow.js +0 -78
  1081. package/src/components/Checkbox/context.js +0 -14
  1082. package/src/components/Checkbox/index.js +0 -3
  1083. package/src/components/Config.js +0 -64
  1084. package/src/components/DatePicker/DatePicker.js +0 -368
  1085. package/src/components/DatePicker/DatePickerComponent.js +0 -13
  1086. package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
  1087. package/src/components/DatePicker/DatePickerComponentType.js +0 -1
  1088. package/src/components/DeprecatedButton.js +0 -95
  1089. package/src/components/Elevation.js +0 -20
  1090. package/src/components/FormRow.js +0 -19
  1091. package/src/components/IconButton.js +0 -35
  1092. package/src/components/Layout.js +0 -50
  1093. package/src/components/NumberInput.js +0 -49
  1094. package/src/components/Picker/Picker.js +0 -267
  1095. package/src/components/Picker/PickerComponent.android.js +0 -69
  1096. package/src/components/Picker/PickerComponent.ios.js +0 -79
  1097. package/src/components/Picker/PickerComponent.web.js +0 -70
  1098. package/src/components/Picker/PickerTypes.js +0 -1
  1099. package/src/components/Portal/Portal.js +0 -35
  1100. package/src/components/Portal/PortalConsumer.js +0 -27
  1101. package/src/components/Portal/PortalHost.js +0 -107
  1102. package/src/components/Portal/PortalManager.js +0 -32
  1103. package/src/components/RadioButton/RadioButton.js +0 -17
  1104. package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
  1105. package/src/components/RadioButton/RadioButtonGroup.js +0 -43
  1106. package/src/components/RadioButton/RadioButtonRow.js +0 -76
  1107. package/src/components/RadioButton/context.js +0 -14
  1108. package/src/components/RadioButton/index.js +0 -4
  1109. package/src/components/SVG.js +0 -13
  1110. package/src/components/ScreenContainer.js +0 -34
  1111. package/src/components/Slider.js +0 -63
  1112. package/src/components/StarRating.js +0 -50
  1113. package/src/components/Stepper.js +0 -39
  1114. package/src/components/Surface.js +0 -32
  1115. package/src/components/Swiper/Swiper.js +0 -29
  1116. package/src/components/Swiper/SwiperItem.js +0 -9
  1117. package/src/components/Swiper/index.js +0 -2
  1118. package/src/components/Switch.js +0 -56
  1119. package/src/components/Text.js +0 -33
  1120. package/src/components/TextField.js +0 -428
  1121. package/src/components/Touchable.js +0 -12
  1122. package/src/components/Touchable.web.js +0 -2
  1123. package/src/constants.js +0 -10
  1124. package/src/hooks.js +0 -12
  1125. package/src/index.js +0 -37
  1126. package/src/interfaces/Icon.js +0 -8
  1127. package/src/mappings/Accordion.js +0 -41
  1128. package/src/mappings/AccordionItem.js +0 -16
  1129. package/src/mappings/ActionSheet.js +0 -13
  1130. package/src/mappings/ActionSheetCancel.js +0 -19
  1131. package/src/mappings/ActionSheetItem.js +0 -23
  1132. package/src/mappings/ActivityIndicator.js +0 -58
  1133. package/src/mappings/AudioPlayer.js +0 -20
  1134. package/src/mappings/BlurView.js +0 -42
  1135. package/src/mappings/Button.js +0 -87
  1136. package/src/mappings/Checkbox.js +0 -46
  1137. package/src/mappings/CheckboxGroup.js +0 -26
  1138. package/src/mappings/CheckboxRow.js +0 -61
  1139. package/src/mappings/CustomCode.js +0 -8
  1140. package/src/mappings/DatePicker.js +0 -157
  1141. package/src/mappings/Fetch.js +0 -13
  1142. package/src/mappings/FlashList.js +0 -33
  1143. package/src/mappings/FlatList.js +0 -24
  1144. package/src/mappings/Icon.js +0 -32
  1145. package/src/mappings/IconButton.js +0 -35
  1146. package/src/mappings/Image.js +0 -35
  1147. package/src/mappings/ImageBackground.js +0 -29
  1148. package/src/mappings/KeyboardAvoidingView.js +0 -41
  1149. package/src/mappings/KeyboardAwareScrollView.js +0 -50
  1150. package/src/mappings/Layout.js +0 -200
  1151. package/src/mappings/LinearGradient.js +0 -77
  1152. package/src/mappings/MapCallout.js +0 -21
  1153. package/src/mappings/MapMarker.js +0 -47
  1154. package/src/mappings/MapView.js +0 -139
  1155. package/src/mappings/Modal.js +0 -42
  1156. package/src/mappings/NativeBase/Layout/AspectRatio.js +0 -9
  1157. package/src/mappings/NativeBase/Layout/AspectRatio.ts +0 -11
  1158. package/src/mappings/NativeBase/Layout/Box.js +0 -9
  1159. package/src/mappings/NativeBase/Layout/Box.ts +0 -11
  1160. package/src/mappings/NativeBase/Layout/Center.js +0 -27
  1161. package/src/mappings/NativeBase/Layout/Center.ts +0 -28
  1162. package/src/mappings/NativeBase/Layout/Column.js +0 -9
  1163. package/src/mappings/NativeBase/Layout/Column.ts +0 -10
  1164. package/src/mappings/NativeBase/Layout/Container.js +0 -9
  1165. package/src/mappings/NativeBase/Layout/Container.ts +0 -11
  1166. package/src/mappings/NativeBase/Layout/Row.js +0 -9
  1167. package/src/mappings/NativeBase/Layout/Row.ts +0 -10
  1168. package/src/mappings/NativeBase/Layout/Stack.js +0 -9
  1169. package/src/mappings/NativeBase/Layout/Stack.ts +0 -11
  1170. package/src/mappings/NativeBase/Layout/ZStack.js +0 -9
  1171. package/src/mappings/NativeBase/Layout/ZStack.ts +0 -10
  1172. package/src/mappings/NumberInput.js +0 -254
  1173. package/src/mappings/Picker.js +0 -148
  1174. package/src/mappings/RadioButton.js +0 -51
  1175. package/src/mappings/RadioButtonGroup.js +0 -17
  1176. package/src/mappings/RadioButtonRow.js +0 -42
  1177. package/src/mappings/SVG.js +0 -20
  1178. package/src/mappings/SafeAreaView.js +0 -33
  1179. package/src/mappings/ScrollView.js +0 -31
  1180. package/src/mappings/Slider.js +0 -60
  1181. package/src/mappings/StarRating.js +0 -43
  1182. package/src/mappings/Stepper.js +0 -29
  1183. package/src/mappings/Surface.js +0 -14
  1184. package/src/mappings/Swiper.js +0 -60
  1185. package/src/mappings/SwiperItem.js +0 -8
  1186. package/src/mappings/Switch.js +0 -81
  1187. package/src/mappings/Text.js +0 -251
  1188. package/src/mappings/TextArea.js +0 -263
  1189. package/src/mappings/TextField.js +0 -381
  1190. package/src/mappings/TextInput.js +0 -391
  1191. package/src/mappings/Touchable.js +0 -17
  1192. package/src/mappings/Video.js +0 -81
  1193. package/src/mappings/View.js +0 -207
  1194. package/src/mappings/WebView.js +0 -88
  1195. package/src/styles/DarkTheme.js +0 -26
  1196. package/src/styles/DefaultTheme.js +0 -111
  1197. package/src/styles/fonts.js +0 -62
  1198. package/src/styles/overlay.js +0 -60
  1199. package/src/styles/shadow.js +0 -51
  1200. package/src/theming.js +0 -3
  1201. package/src/utilities.js +0 -102
@@ -0,0 +1,178 @@
1
+ import {
2
+ COMPONENT_TYPES,
3
+ FORM_TYPES,
4
+ PROP_TYPES,
5
+ GROUPS,
6
+ } from "@draftbit/types";
7
+
8
+ export const SEED_DATA = [
9
+ {
10
+ name: "Row Single Line Headline Caption",
11
+ tag: "RowHeadlineImageCaption",
12
+ description:
13
+ "A row with left aligned headline text and right aligned caption text",
14
+ category: COMPONENT_TYPES.row,
15
+ preview_image_url: "{CLOUDINARY_URL}/Row_SingleLine_HeadlineCaption.png",
16
+ supports_list_render: true,
17
+ props: {
18
+ title: {
19
+ group: GROUPS.data,
20
+ label: "Title",
21
+ description: "Headline text to display",
22
+ formType: FORM_TYPES.string,
23
+ propType: PROP_TYPES.STRING,
24
+ defaultValue: "Beautiful West Coast Villa",
25
+ editable: true,
26
+ required: false,
27
+ },
28
+ caption: {
29
+ group: GROUPS.data,
30
+ label: "Caption",
31
+ description: "Caption text to display",
32
+ formType: FORM_TYPES.string,
33
+ propType: PROP_TYPES.STRING,
34
+ defaultValue: "$100",
35
+ editable: true,
36
+ required: false,
37
+ },
38
+ },
39
+ layout: {},
40
+ },
41
+ {
42
+ name: "Row Single Line Headline Image Caption",
43
+ tag: "RowHeadlineImageCaption",
44
+ description:
45
+ "A row with left aligned image and headline text and right aligned caption text",
46
+ category: COMPONENT_TYPES.row,
47
+ preview_image_url:
48
+ "{CLOUDINARY_URL}/Row_SingleLine_HeadlineImageCaption.png",
49
+ supports_list_render: true,
50
+ props: {
51
+ title: {
52
+ group: GROUPS.data,
53
+ label: "Title",
54
+ description: "Headline text to display",
55
+ formType: FORM_TYPES.string,
56
+ propType: PROP_TYPES.STRING,
57
+ defaultValue: "Beautiful West Coast Villa",
58
+ editable: true,
59
+ required: false,
60
+ },
61
+ caption: {
62
+ group: GROUPS.data,
63
+ label: "Caption",
64
+ description: "Caption text to display",
65
+ formType: FORM_TYPES.string,
66
+ propType: PROP_TYPES.STRING,
67
+ defaultValue: "$100",
68
+ editable: true,
69
+ required: false,
70
+ },
71
+ image: {
72
+ group: GROUPS.data,
73
+ label: "Image",
74
+ description: "Image to display",
75
+ formType: FORM_TYPES.image,
76
+ propType: PROP_TYPES.ASSET,
77
+ defaultValue: null,
78
+ editable: true,
79
+ required: false,
80
+ },
81
+ },
82
+ layout: {},
83
+ },
84
+ {
85
+ name: "Row Double Line Headline Caption",
86
+ tag: "RowHeadlineImageCaption",
87
+ description:
88
+ "A row with left aligned headline text and subtitle text and right aligned caption text",
89
+ category: COMPONENT_TYPES.row,
90
+ preview_image_url: "{CLOUDINARY_URL}/Row_DoubleLine_HeadlineCaption.png",
91
+ supports_list_render: true,
92
+ props: {
93
+ title: {
94
+ group: GROUPS.data,
95
+ label: "Title",
96
+ description: "Headline text to display",
97
+ formType: FORM_TYPES.string,
98
+ propType: PROP_TYPES.STRING,
99
+ defaultValue: "Beautiful West Coast Villa",
100
+ editable: true,
101
+ required: false,
102
+ },
103
+ subtitle: {
104
+ group: GROUPS.data,
105
+ label: "Subtitle",
106
+ description: "Subtitle text to display",
107
+ formType: FORM_TYPES.string,
108
+ propType: PROP_TYPES.STRING,
109
+ defaultValue: "San Diego",
110
+ editable: true,
111
+ required: false,
112
+ },
113
+ caption: {
114
+ group: GROUPS.data,
115
+ label: "Caption",
116
+ description: "Caption text to display",
117
+ formType: FORM_TYPES.string,
118
+ propType: PROP_TYPES.STRING,
119
+ defaultValue: "$100",
120
+ editable: true,
121
+ required: false,
122
+ },
123
+ },
124
+ layout: {},
125
+ },
126
+ {
127
+ name: "Row Double Line Headline Image Caption",
128
+ tag: "RowHeadlineImageCaption",
129
+ description:
130
+ "A row with left aligned image, headline text, and subtitle text, and right aligned caption text",
131
+ category: COMPONENT_TYPES.row,
132
+ preview_image_url: "{CLOUDINARY_URL}/Row_DoubleLine_HeadlineCaption.png",
133
+ supports_list_render: true,
134
+ props: {
135
+ title: {
136
+ group: GROUPS.data,
137
+ label: "Title",
138
+ description: "Headline text to display",
139
+ formType: FORM_TYPES.string,
140
+ propType: PROP_TYPES.STRING,
141
+ defaultValue: "Beautiful West Coast Villa",
142
+ editable: true,
143
+ required: false,
144
+ },
145
+ subtitle: {
146
+ group: GROUPS.data,
147
+ label: "Subtitle",
148
+ description: "Subtitle text to display",
149
+ formType: FORM_TYPES.string,
150
+ propType: PROP_TYPES.STRING,
151
+ defaultValue: "San Diego",
152
+ editable: true,
153
+ required: false,
154
+ },
155
+ caption: {
156
+ group: GROUPS.data,
157
+ label: "Caption",
158
+ description: "Caption text to display",
159
+ formType: FORM_TYPES.string,
160
+ propType: PROP_TYPES.STRING,
161
+ defaultValue: "$100",
162
+ editable: true,
163
+ required: false,
164
+ },
165
+ image: {
166
+ group: GROUPS.data,
167
+ label: "Image",
168
+ description: "Image to display",
169
+ formType: FORM_TYPES.image,
170
+ propType: PROP_TYPES.ASSET,
171
+ defaultValue: null,
172
+ editable: true,
173
+ required: false,
174
+ },
175
+ },
176
+ layout: {},
177
+ },
178
+ ];
@@ -0,0 +1,116 @@
1
+ import {
2
+ COMPONENT_TYPES,
3
+ createIconProp,
4
+ createTextProp,
5
+ createImageProp,
6
+ createStaticBoolProp,
7
+ } from "@draftbit/types";
8
+
9
+ const SEED_DATA_PROPS = {
10
+ title: createTextProp({
11
+ label: "Title",
12
+ description: "Headline text to display",
13
+ }),
14
+ icon: createIconProp({
15
+ defaultValue: null,
16
+ }),
17
+ };
18
+
19
+ const IMAGE_PROP = createImageProp();
20
+ const MULTILINE_PROP = createStaticBoolProp({
21
+ defaultValue: true,
22
+ editable: false,
23
+ });
24
+ const SUBTITLE_PROP = createTextProp({
25
+ label: "Subtitle",
26
+ description: "Subtitle text to display",
27
+ defaultValue: "San Diego",
28
+ });
29
+
30
+ export const SEED_DATA = [
31
+ {
32
+ name: "Row Single Line Headline Icon",
33
+ tag: "RowHeadlineImageIcon",
34
+ description:
35
+ "A row with left aligned headline text and a right aligned icon",
36
+ category: COMPONENT_TYPES.row,
37
+ layout: {},
38
+ props: {
39
+ ...SEED_DATA_PROPS,
40
+ },
41
+ },
42
+ {
43
+ name: "Row Single Line Headline Icon Image",
44
+ tag: "RowHeadlineImageIcon",
45
+ description:
46
+ "A row with left aligned image and headline text and a right aligned icon",
47
+ category: COMPONENT_TYPES.row,
48
+ layout: {},
49
+ props: {
50
+ ...SEED_DATA_PROPS,
51
+ image: IMAGE_PROP,
52
+ },
53
+ },
54
+ {
55
+ name: "Row Double Line Headline Icon",
56
+ tag: "RowHeadlineImageIcon",
57
+ description:
58
+ "A row with left aligned headline text and subtitle text and a right aligned icon",
59
+ category: COMPONENT_TYPES.row,
60
+ layout: {},
61
+ props: {
62
+ ...SEED_DATA_PROPS,
63
+ subtitle: SUBTITLE_PROP,
64
+ },
65
+ },
66
+ {
67
+ name: "Row Double Line Headline Image Icon",
68
+ tag: "RowHeadlineImageIcon",
69
+ description:
70
+ "A row with left aligned headline text and subtitle text and a right aligned icon",
71
+ category: COMPONENT_TYPES.row,
72
+ layout: {},
73
+ props: {
74
+ ...SEED_DATA_PROPS,
75
+ image: IMAGE_PROP,
76
+ subtitle: SUBTITLE_PROP,
77
+ },
78
+ },
79
+ {
80
+ name: "Row Multiline Headline Icon",
81
+ tag: "RowHeadlineImageIcon",
82
+ description:
83
+ "A row with left aligned headline text and multiline subtitle text and a right aligned icon",
84
+ category: COMPONENT_TYPES.row,
85
+ layout: {},
86
+ props: {
87
+ ...SEED_DATA_PROPS,
88
+ multilineSubtitle: MULTILINE_PROP,
89
+ subtitle: createTextProp({
90
+ label: "Subtitle",
91
+ description: "Subtitle text to display",
92
+ defaultValue:
93
+ "San Diego is a city on the Pacific coast of California known for its beaches, parks and warm climate",
94
+ }),
95
+ },
96
+ },
97
+ {
98
+ name: "Row Multiline Headline Image Icon",
99
+ tag: "RowHeadlineImageIcon",
100
+ description:
101
+ "A row with left aligned image, headline text, and multiline subtitle text, and a right aligned icon",
102
+ category: COMPONENT_TYPES.row,
103
+ layout: {},
104
+ props: {
105
+ ...SEED_DATA_PROPS,
106
+ image: IMAGE_PROP,
107
+ multilineSubtitle: MULTILINE_PROP,
108
+ subtitle: createTextProp({
109
+ label: "Subtitle",
110
+ description: "Subtitle text to display",
111
+ defaultValue:
112
+ "San Diego is a city on the Pacific coast of California known for its beaches, parks and warm climate",
113
+ }),
114
+ },
115
+ },
116
+ ];
@@ -6,6 +6,7 @@ import {
6
6
  createStaticNumberProp,
7
7
  Triggers,
8
8
  BLOCK_STYLES_SECTIONS,
9
+ StylesPanelSections,
9
10
  } from "@draftbit/types";
10
11
 
11
12
  export const SEED_DATA = [
@@ -14,7 +15,10 @@ export const SEED_DATA = [
14
15
  tag: "Stepper",
15
16
  description: "A component used to control the quantity of something",
16
17
  category: COMPONENT_TYPES.control,
17
- stylesPanelSections: BLOCK_STYLES_SECTIONS,
18
+ stylesPanelSections: [
19
+ StylesPanelSections.Typography,
20
+ ...BLOCK_STYLES_SECTIONS,
21
+ ],
18
22
  layout: {},
19
23
  triggers: [Triggers.OnChange],
20
24
  props: {
@@ -5,6 +5,7 @@ import {
5
5
  PROP_TYPES,
6
6
  FIELD_NAME,
7
7
  Triggers,
8
+ createDisabledProp,
8
9
  } from "@draftbit/types";
9
10
 
10
11
  export const SEED_DATA = {
@@ -69,6 +70,17 @@ export const SEED_DATA = {
69
70
  formType: FORM_TYPES.boolean,
70
71
  propType: PROP_TYPES.BOOLEAN,
71
72
  },
73
+ blurOnSubmit: {
74
+ group: GROUPS.advanced,
75
+ label: "Blur On Submit",
76
+ description: "If true, the text field will blur when submitted. ",
77
+ editable: true,
78
+ required: false,
79
+ defaultValue: null,
80
+ formType: FORM_TYPES.boolean,
81
+ propType: PROP_TYPES.BOOLEAN,
82
+ },
83
+ disabled: createDisabledProp(),
72
84
  caretHidden: {
73
85
  group: GROUPS.advanced,
74
86
  label: "Hide Caret",
@@ -91,12 +103,12 @@ export const SEED_DATA = {
91
103
  propType: PROP_TYPES.BOOLEAN,
92
104
  },
93
105
  editable: {
94
- group: GROUPS.advanced,
95
- label: "Editable",
106
+ group: GROUPS.data,
107
+ label: "Editable?",
96
108
  description: "If false, the text is not editable",
97
109
  editable: true,
98
110
  required: false,
99
- defaultValue: true,
111
+ defaultValue: null,
100
112
  formType: FORM_TYPES.boolean,
101
113
  propType: PROP_TYPES.BOOLEAN,
102
114
  },
@@ -77,7 +77,7 @@ const SEED_DATA_PROPS = {
77
77
  propType: PROP_TYPES.BOOLEAN,
78
78
  },
79
79
  disabled: {
80
- group: GROUPS.basic,
80
+ group: GROUPS.data,
81
81
  label: "Disabled",
82
82
  description:
83
83
  "Whether the input should be disabled. Will prevent input and show a greyed out state.",
@@ -88,12 +88,22 @@ const SEED_DATA_PROPS = {
88
88
  required: false,
89
89
  },
90
90
  editable: {
91
- group: GROUPS.advanced,
92
- label: "Editable",
91
+ group: GROUPS.data,
92
+ label: "Editable?",
93
93
  description: "If false, the text is not editable",
94
94
  editable: true,
95
95
  required: false,
96
- defaultValue: true,
96
+ defaultValue: null,
97
+ formType: FORM_TYPES.boolean,
98
+ propType: PROP_TYPES.BOOLEAN,
99
+ },
100
+ blurOnSubmit: {
101
+ group: GROUPS.advanced,
102
+ label: "Blur On Submit",
103
+ description: "If true, the text field will blur when submitted. ",
104
+ editable: true,
105
+ required: false,
106
+ defaultValue: null,
97
107
  formType: FORM_TYPES.boolean,
98
108
  propType: PROP_TYPES.BOOLEAN,
99
109
  },
@@ -6,6 +6,7 @@ import {
6
6
  FIELD_NAME,
7
7
  Triggers,
8
8
  StylesPanelSections,
9
+ createDisabledProp,
9
10
  } from "@draftbit/types";
10
11
 
11
12
  export const SEED_DATA_PROPS = {
@@ -168,12 +169,12 @@ export const SEED_DATA = [
168
169
  propType: PROP_TYPES.BOOLEAN,
169
170
  },
170
171
  editable: {
171
- group: GROUPS.advanced,
172
- label: "Editable",
172
+ group: GROUPS.data,
173
+ label: "Editable?",
173
174
  description: "If false, the text is not editable",
174
175
  editable: true,
175
176
  required: false,
176
- defaultValue: true,
177
+ defaultValue: null,
177
178
  formType: FORM_TYPES.boolean,
178
179
  propType: PROP_TYPES.BOOLEAN,
179
180
  },
@@ -258,6 +259,16 @@ export const SEED_DATA = [
258
259
  formType: FORM_TYPES.string,
259
260
  propType: PROP_TYPES.STRING,
260
261
  },
262
+ blurOnSubmit: {
263
+ group: GROUPS.advanced,
264
+ label: "Blur On Submit",
265
+ description: "If true, the text field will blur when submitted. ",
266
+ editable: true,
267
+ required: false,
268
+ defaultValue: null,
269
+ formType: FORM_TYPES.boolean,
270
+ propType: PROP_TYPES.BOOLEAN,
271
+ },
261
272
  returnKeyType: {
262
273
  group: GROUPS.advanced,
263
274
  label: "Return Key Type",
@@ -341,6 +352,7 @@ export const SEED_DATA = [
341
352
  formType: FORM_TYPES.number,
342
353
  propType: PROP_TYPES.NUMBER,
343
354
  },
355
+ disabled: createDisabledProp(),
344
356
  scrollEnabled: {
345
357
  group: GROUPS.basic,
346
358
  label: "Scroll Enabled",
@@ -0,0 +1,63 @@
1
+ import {
2
+ GROUPS,
3
+ COMPONENT_TYPES,
4
+ createIconProp,
5
+ createBoolProp,
6
+ createColorProp,
7
+ createStaticNumberProp,
8
+ createFieldNameProp,
9
+ createIconSizeProp,
10
+ createActionProp,
11
+ Triggers,
12
+ StylesPanelSections,
13
+ } from "@draftbit/types";
14
+
15
+ export const SEED_DATA = {
16
+ name: "Toggle Button",
17
+ tag: "ToggleButton",
18
+ category: COMPONENT_TYPES.deprecated,
19
+ stylesPanelSections: [
20
+ StylesPanelSections.Margins,
21
+ StylesPanelSections.Effects,
22
+ StylesPanelSections.Position,
23
+ ],
24
+ layout: {},
25
+ triggers: [Triggers.OnPress],
26
+ props: {
27
+ onPress: createActionProp(),
28
+ icon: createIconProp({
29
+ required: true,
30
+ }),
31
+ iconSize: createIconSizeProp(),
32
+ fieldName: createFieldNameProp({
33
+ defaultValue: false,
34
+ valuePropName: "toggled",
35
+ }),
36
+ disabled: createBoolProp({
37
+ label: "Disabled",
38
+ description: "Whether the button should be disabled",
39
+ group: GROUPS.basic,
40
+ }),
41
+ color: createColorProp({
42
+ group: GROUPS.basic,
43
+ }),
44
+ colorSecondary: createColorProp({
45
+ label: "Secondary Color",
46
+ group: GROUPS.basic,
47
+ }),
48
+ borderColor: createColorProp({
49
+ label: "Border Color",
50
+ group: GROUPS.basic,
51
+ }),
52
+ width: createStaticNumberProp({
53
+ label: "Width",
54
+ description: "Width",
55
+ defaultValue: 50,
56
+ }),
57
+ height: createStaticNumberProp({
58
+ label: "Height",
59
+ description: "Height",
60
+ defaultValue: 50,
61
+ }),
62
+ },
63
+ };
@@ -6,7 +6,7 @@ import {
6
6
  } from "@draftbit/types";
7
7
 
8
8
  export const SEED_DATA = {
9
- name: "Pressable",
9
+ name: "Touchable",
10
10
  tag: "Touchable",
11
11
  description: "Simple button with no styles",
12
12
  category: COMPONENT_TYPES.button,
@@ -4,13 +4,13 @@ import { Animated } from "react-native";
4
4
  import DarkTheme from "./DarkTheme";
5
5
 
6
6
  const isAnimatedValue = (
7
- it: number | Animated.AnimatedInterpolation
7
+ it: number | Animated.AnimatedInterpolation<string | number>
8
8
  ): it is Animated.Value => it instanceof Animated.Value;
9
9
 
10
10
  export default function overlay<T extends Animated.Value | number>(
11
11
  elevation: T,
12
12
  surfaceColor: string = DarkTheme.colors.surface
13
- ): T extends number ? string : Animated.AnimatedInterpolation {
13
+ ): T extends number ? string : Animated.AnimatedInterpolation<string | number> {
14
14
  if (isAnimatedValue(elevation)) {
15
15
  const inputRange = [0, 1, 2, 3, 8, 24];
16
16
 
@@ -1 +0,0 @@
1
- {"version":3,"names":["Provider","React","Component","render","props","theme","children"],"sources":["Provider.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { ThemeProvider } from \"./theming\";\nimport PortalHost from \"./components/Portal/PortalHost\";\nimport { Theme } from \"@draftbit/types\";\n\ntype Props = {\n children: React.ReactNode;\n theme?: Theme;\n};\n\nexport default class Provider extends React.Component<Props> {\n render() {\n return (\n <PortalHost>\n {/* @ts-ignore */}\n <ThemeProvider theme={this.props.theme}>\n {this.props.children}\n </ThemeProvider>\n </PortalHost>\n );\n }\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAAwD;AAAA;AAAA;AAQzC,MAAMA,QAAQ,SAASC,KAAK,CAACC,SAAS,CAAQ;EAC3DC,MAAM,GAAG;IACP,oBACE,oBAAC,mBAAU,qBAET,oBAAC,sBAAa;MAAC,KAAK,EAAE,IAAI,CAACC,KAAK,CAACC;IAAM,GACpC,IAAI,CAACD,KAAK,CAACE,QAAQ,CACN,CACL;EAEjB;AACF;AAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["AccordionGroup","label","expanded","expandedProp","openColor","closedColor","caretColor","caretColorProp","caretSize","icon","iconSize","style","children","theme","Icon","setExpanded","React","useState","textStyles","viewStyles","extractStyles","expandedColor","colors","primary","collapsedColor","labelColor","handlePressAction","styles","row","content","color","StyleSheet","create","flexDirection","alignItems","flex","justifyContent","marginRight","withTheme"],"sources":["AccordionGroup.tsx"],"sourcesContent":["import * as React from \"react\";\nimport {\n View,\n StyleSheet,\n StyleProp,\n TextStyle,\n Pressable,\n} from \"react-native\";\nimport Text from \"../Text\";\nimport { withTheme } from \"../../theming\";\nimport type { IconSlot } from \"../../interfaces/Icon\";\nimport type { Theme } from \"../../styles/DefaultTheme\";\nimport { extractStyles } from \"../../utilities\";\n\ntype AccordionGroupProps = {\n label?: string;\n expanded?: boolean;\n openColor?: string;\n closedColor?: string;\n caretColor?: string;\n caretSize?: number;\n icon?: string;\n iconSize?: number;\n style?: StyleProp<TextStyle>;\n children?: React.ReactNode;\n theme: Theme;\n} & IconSlot;\n\nconst AccordionGroup = ({\n label,\n expanded: expandedProp = false,\n openColor,\n closedColor,\n caretColor: caretColorProp,\n caretSize = 24,\n icon,\n iconSize = 24,\n style,\n children,\n theme,\n Icon,\n}: AccordionGroupProps) => {\n const [expanded, setExpanded] = React.useState<boolean>(expandedProp);\n const { textStyles, viewStyles } = extractStyles(style);\n const expandedColor = openColor || theme.colors.primary;\n const collapsedColor = closedColor || theme.colors.primary;\n const labelColor = expanded ? expandedColor : collapsedColor;\n const caretColor = caretColorProp || labelColor;\n\n const handlePressAction = () => {\n setExpanded(!expanded);\n };\n\n return (\n <>\n <Pressable\n style={[styles.row, viewStyles]}\n onPress={handlePressAction}\n accessibilityRole=\"button\"\n >\n {icon ? (\n <Icon\n name={icon}\n size={iconSize}\n color={labelColor}\n style={styles.icon}\n />\n ) : null}\n <View style={styles.content}>\n <Text\n selectable={false}\n style={[\n textStyles,\n {\n color: labelColor,\n },\n ]}\n >\n {label}\n </Text>\n </View>\n <Icon\n name={\n expanded\n ? \"MaterialIcons/keyboard-arrow-up\"\n : \"MaterialIcons/keyboard-arrow-down\"\n }\n color={caretColor}\n size={caretSize}\n />\n </Pressable>\n {expanded ? children : null}\n </>\n );\n};\n\nconst styles = StyleSheet.create({\n row: {\n flexDirection: \"row\",\n alignItems: \"center\",\n },\n content: {\n flex: 1,\n justifyContent: \"center\",\n },\n icon: {\n marginRight: 8,\n },\n});\n\nexport default withTheme(AccordionGroup);\n"],"mappings":";;;;;;AAAA;AACA;AAOA;AACA;AAGA;AAAgD;AAAA;AAAA;AAgBhD,MAAMA,cAAc,GAAG,QAaI;EAAA,IAbH;IACtBC,KAAK;IACLC,QAAQ,EAAEC,YAAY,GAAG,KAAK;IAC9BC,SAAS;IACTC,WAAW;IACXC,UAAU,EAAEC,cAAc;IAC1BC,SAAS,GAAG,EAAE;IACdC,IAAI;IACJC,QAAQ,GAAG,EAAE;IACbC,KAAK;IACLC,QAAQ;IACRC,KAAK;IACLC;EACmB,CAAC;EACpB,MAAM,CAACZ,QAAQ,EAAEa,WAAW,CAAC,GAAGC,KAAK,CAACC,QAAQ,CAAUd,YAAY,CAAC;EACrE,MAAM;IAAEe,UAAU;IAAEC;EAAW,CAAC,GAAG,IAAAC,wBAAa,EAACT,KAAK,CAAC;EACvD,MAAMU,aAAa,GAAGjB,SAAS,IAAIS,KAAK,CAACS,MAAM,CAACC,OAAO;EACvD,MAAMC,cAAc,GAAGnB,WAAW,IAAIQ,KAAK,CAACS,MAAM,CAACC,OAAO;EAC1D,MAAME,UAAU,GAAGvB,QAAQ,GAAGmB,aAAa,GAAGG,cAAc;EAC5D,MAAMlB,UAAU,GAAGC,cAAc,IAAIkB,UAAU;EAE/C,MAAMC,iBAAiB,GAAG,MAAM;IAC9BX,WAAW,CAAC,CAACb,QAAQ,CAAC;EACxB,CAAC;EAED,oBACE,uDACE,oBAAC,sBAAS;IACR,KAAK,EAAE,CAACyB,MAAM,CAACC,GAAG,EAAET,UAAU,CAAE;IAChC,OAAO,EAAEO,iBAAkB;IAC3B,iBAAiB,EAAC;EAAQ,GAEzBjB,IAAI,gBACH,oBAAC,IAAI;IACH,IAAI,EAAEA,IAAK;IACX,IAAI,EAAEC,QAAS;IACf,KAAK,EAAEe,UAAW;IAClB,KAAK,EAAEE,MAAM,CAAClB;EAAK,EACnB,GACA,IAAI,eACR,oBAAC,iBAAI;IAAC,KAAK,EAAEkB,MAAM,CAACE;EAAQ,gBAC1B,oBAAC,aAAI;IACH,UAAU,EAAE,KAAM;IAClB,KAAK,EAAE,CACLX,UAAU,EACV;MACEY,KAAK,EAAEL;IACT,CAAC;EACD,GAEDxB,KAAK,CACD,CACF,eACP,oBAAC,IAAI;IACH,IAAI,EACFC,QAAQ,GACJ,iCAAiC,GACjC,mCACL;IACD,KAAK,EAAEI,UAAW;IAClB,IAAI,EAAEE;EAAU,EAChB,CACQ,EACXN,QAAQ,GAAGU,QAAQ,GAAG,IAAI,CAC1B;AAEP,CAAC;AAED,MAAMe,MAAM,GAAGI,uBAAU,CAACC,MAAM,CAAC;EAC/BJ,GAAG,EAAE;IACHK,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EACDL,OAAO,EAAE;IACPM,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE;EAClB,CAAC;EACD3B,IAAI,EAAE;IACJ4B,WAAW,EAAE;EACf;AACF,CAAC,CAAC;AAAC,eAEY,IAAAC,kBAAS,EAACtC,cAAc,CAAC;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["AccordionItem","Icon","icon","label","style","iconColor","theme","rest","textStyles","viewStyles","extractStyles","styles","container","row","colors","primary","item","content","StyleSheet","create","padding","flexDirection","alignItems","paddingLeft","marginVertical","flex","justifyContent","withTheme"],"sources":["AccordionItem.tsx"],"sourcesContent":["import * as React from \"react\";\nimport {\n Pressable,\n StyleSheet,\n View,\n StyleProp,\n ViewStyle,\n} from \"react-native\";\n\nimport Text from \"../Text\";\nimport type { IconSlot } from \"../../interfaces/Icon\";\nimport { extractStyles } from \"../../utilities\";\nimport { withTheme } from \"../../theming\";\nimport type { Theme } from \"../../styles/DefaultTheme\";\n\ntype Props = {\n icon?: string;\n label: string;\n iconColor?: string;\n style?: StyleProp<ViewStyle>;\n theme: Theme;\n} & IconSlot;\n\nconst AccordionItem = ({\n Icon,\n icon,\n label,\n style,\n iconColor,\n theme,\n ...rest\n}: Props) => {\n const { textStyles, viewStyles } = extractStyles(style);\n\n return (\n <Pressable style={[styles.container, viewStyles]} {...rest}>\n <View style={styles.row}>\n {icon ? (\n <Icon\n name={icon}\n size={24}\n color={iconColor || theme.colors.primary}\n />\n ) : null}\n <View style={[styles.item, styles.content]}>\n <Text selectable={false} style={textStyles}>\n {label}\n </Text>\n </View>\n </View>\n </Pressable>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n padding: 8,\n },\n row: {\n flexDirection: \"row\",\n alignItems: \"center\",\n paddingLeft: 8,\n },\n item: {\n marginVertical: 6,\n paddingLeft: 8,\n },\n content: {\n flex: 1,\n justifyContent: \"center\",\n },\n});\n\nexport default withTheme(AccordionItem);\n"],"mappings":";;;;;;AAAA;AACA;AAQA;AAEA;AACA;AAA0C;AAAA;AAAA;AAAA;AAW1C,MAAMA,aAAa,GAAG,QAQT;EAAA,IARU;IACrBC,IAAI;IACJC,IAAI;IACJC,KAAK;IACLC,KAAK;IACLC,SAAS;IACTC,KAAK;IACL,GAAGC;EACE,CAAC;EACN,MAAM;IAAEC,UAAU;IAAEC;EAAW,CAAC,GAAG,IAAAC,wBAAa,EAACN,KAAK,CAAC;EAEvD,oBACE,oBAAC,sBAAS;IAAC,KAAK,EAAE,CAACO,MAAM,CAACC,SAAS,EAAEH,UAAU;EAAE,GAAKF,IAAI,gBACxD,oBAAC,iBAAI;IAAC,KAAK,EAAEI,MAAM,CAACE;EAAI,GACrBX,IAAI,gBACH,oBAAC,IAAI;IACH,IAAI,EAAEA,IAAK;IACX,IAAI,EAAE,EAAG;IACT,KAAK,EAAEG,SAAS,IAAIC,KAAK,CAACQ,MAAM,CAACC;EAAQ,EACzC,GACA,IAAI,eACR,oBAAC,iBAAI;IAAC,KAAK,EAAE,CAACJ,MAAM,CAACK,IAAI,EAAEL,MAAM,CAACM,OAAO;EAAE,gBACzC,oBAAC,aAAI;IAAC,UAAU,EAAE,KAAM;IAAC,KAAK,EAAET;EAAW,GACxCL,KAAK,CACD,CACF,CACF,CACG;AAEhB,CAAC;AAED,MAAMQ,MAAM,GAAGO,uBAAU,CAACC,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,OAAO,EAAE;EACX,CAAC;EACDP,GAAG,EAAE;IACHQ,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,WAAW,EAAE;EACf,CAAC;EACDP,IAAI,EAAE;IACJQ,cAAc,EAAE,CAAC;IACjBD,WAAW,EAAE;EACf,CAAC;EACDN,OAAO,EAAE;IACPQ,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAAC,eAEY,IAAAC,kBAAS,EAAC3B,aAAa,CAAC;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export { default as AccordionGroup } from \"./AccordionGroup\";\nexport { default as AccordionItem } from \"./AccordionItem\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AAA2D"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["ActionSheet","visible","onClose","children","styles","wrapper","overlay","groupWrapper","group","React","Children","toArray","filter","child","type","ActionSheetCancel","StyleSheet","create","flex","display","flexDirection","position","top","left","right","bottom","backgroundColor","opacity","justifyContent","marginBottom","borderRadius","marginHorizontal","marginVertical","overflow"],"sources":["ActionSheet.tsx"],"sourcesContent":["import React from \"react\";\nimport { View, StyleSheet } from \"react-native\";\nimport Portal from \"../Portal/Portal\";\nimport Touchable from \"../Touchable\";\nimport ActionSheetCancel from \"./ActionSheetCancel\";\n\ninterface Props {\n visible: boolean;\n onClose: () => void;\n children: React.ReactNode;\n}\n\nconst ActionSheet = ({ visible = false, onClose, children }: Props) => {\n return visible ? (\n <Portal>\n <Touchable style={styles.wrapper} onPress={onClose}>\n <View style={styles.overlay} />\n <View style={styles.groupWrapper}>\n <View style={styles.group}>\n {React.Children.toArray(children).filter(\n (child: any) => child?.type !== ActionSheetCancel\n )}\n </View>\n <View style={styles.group}>\n {React.Children.toArray(children).filter(\n (child: any) => child.type === ActionSheetCancel\n )}\n </View>\n </View>\n </Touchable>\n </Portal>\n ) : (\n <></>\n );\n};\n\nconst styles = StyleSheet.create({\n wrapper: {\n flex: 1,\n display: \"flex\",\n flexDirection: \"column\",\n },\n overlay: {\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: \"#000000\",\n opacity: 0.3,\n },\n groupWrapper: {\n flex: 1,\n flexDirection: \"column\",\n justifyContent: \"flex-end\",\n display: \"flex\",\n marginBottom: 25,\n },\n group: {\n display: \"flex\",\n flexDirection: \"column\",\n borderRadius: 10,\n marginHorizontal: 7,\n marginVertical: 2.5,\n overflow: \"hidden\",\n },\n});\n\nexport default ActionSheet;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAAoD;AAQpD,MAAMA,WAAW,GAAG,QAAmD;EAAA,IAAlD;IAAEC,OAAO,GAAG,KAAK;IAAEC,OAAO;IAAEC;EAAgB,CAAC;EAChE,OAAOF,OAAO,gBACZ,6BAAC,eAAM,qBACL,6BAAC,kBAAS;IAAC,KAAK,EAAEG,MAAM,CAACC,OAAQ;IAAC,OAAO,EAAEH;EAAQ,gBACjD,6BAAC,iBAAI;IAAC,KAAK,EAAEE,MAAM,CAACE;EAAQ,EAAG,eAC/B,6BAAC,iBAAI;IAAC,KAAK,EAAEF,MAAM,CAACG;EAAa,gBAC/B,6BAAC,iBAAI;IAAC,KAAK,EAAEH,MAAM,CAACI;EAAM,GACvBC,cAAK,CAACC,QAAQ,CAACC,OAAO,CAACR,QAAQ,CAAC,CAACS,MAAM,CACrCC,KAAU,IAAK,CAAAA,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEC,IAAI,MAAKC,0BAAiB,CAClD,CACI,eACP,6BAAC,iBAAI;IAAC,KAAK,EAAEX,MAAM,CAACI;EAAM,GACvBC,cAAK,CAACC,QAAQ,CAACC,OAAO,CAACR,QAAQ,CAAC,CAACS,MAAM,CACrCC,KAAU,IAAKA,KAAK,CAACC,IAAI,KAAKC,0BAAiB,CACjD,CACI,CACF,CACG,CACL,gBAET,2DACD;AACH,CAAC;AAED,MAAMX,MAAM,GAAGY,uBAAU,CAACC,MAAM,CAAC;EAC/BZ,OAAO,EAAE;IACPa,IAAI,EAAE,CAAC;IACPC,OAAO,EAAE,MAAM;IACfC,aAAa,EAAE;EACjB,CAAC;EACDd,OAAO,EAAE;IACPe,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,eAAe,EAAE,SAAS;IAC1BC,OAAO,EAAE;EACX,CAAC;EACDpB,YAAY,EAAE;IACZW,IAAI,EAAE,CAAC;IACPE,aAAa,EAAE,QAAQ;IACvBQ,cAAc,EAAE,UAAU;IAC1BT,OAAO,EAAE,MAAM;IACfU,YAAY,EAAE;EAChB,CAAC;EACDrB,KAAK,EAAE;IACLW,OAAO,EAAE,MAAM;IACfC,aAAa,EAAE,QAAQ;IACvBU,YAAY,EAAE,EAAE;IAChBC,gBAAgB,EAAE,CAAC;IACnBC,cAAc,EAAE,GAAG;IACnBC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAAC,eAEYjC,WAAW;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["ActionSheetCancel","label","color","style","onPress"],"sources":["ActionSheetCancel.tsx"],"sourcesContent":["import React from \"react\";\nimport { StyleProp, ViewStyle, TextStyle } from \"react-native\";\nimport ActionSheetItem from \"./ActionSheetItem\";\n\ntype Props = {\n label: string;\n color: string;\n style?: StyleProp<ViewStyle | TextStyle>;\n onPress?: () => void;\n};\n\nconst ActionSheetCancel: React.FC<React.PropsWithChildren<Props>> = ({\n label = \"Cancel\",\n color,\n style,\n onPress,\n}) => {\n return (\n <ActionSheetItem\n label={label}\n color={color || \"#FF453A\"}\n style={[style]}\n onPress={onPress}\n />\n );\n};\n\nexport default ActionSheetCancel;\n"],"mappings":";;;;;;AAAA;AAEA;AAAgD;AAShD,MAAMA,iBAA2D,GAAG,QAK9D;EAAA,IAL+D;IACnEC,KAAK,GAAG,QAAQ;IAChBC,KAAK;IACLC,KAAK;IACLC;EACF,CAAC;EACC,oBACE,6BAAC,wBAAe;IACd,KAAK,EAAEH,KAAM;IACb,KAAK,EAAEC,KAAK,IAAI,SAAU;IAC1B,KAAK,EAAE,CAACC,KAAK,CAAE;IACf,OAAO,EAAEC;EAAQ,EACjB;AAEN,CAAC;AAAC,eAEaJ,iBAAiB;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["ActionSheetItem","label","style","color","onPress","textStyles","viewStyles","extractStyles","styles","wrapper","StyleSheet","create","borderBottomWidth","hairlineWidth","borderBottomColor","backgroundColor","minHeight","overflow","display","justifyContent","fontSize","textAlign","fontWeight","paddingHorizontal","paddingVertical","alignSelf"],"sources":["ActionSheetItem.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n Text,\n StyleSheet,\n StyleProp,\n TouchableOpacity,\n ViewStyle,\n TextStyle,\n} from \"react-native\";\nimport { extractStyles } from \"../../utilities\";\n\ntype Props = {\n label: string;\n color: string;\n style?: StyleProp<ViewStyle | TextStyle>;\n onPress?: () => void;\n};\n\nconst ActionSheetItem: React.FC<React.PropsWithChildren<Props>> = ({\n label,\n style,\n color,\n onPress,\n}) => {\n const { textStyles, viewStyles } = extractStyles(style);\n return (\n <TouchableOpacity\n activeOpacity={0.7}\n style={[styles.wrapper, viewStyles]}\n onPress={onPress}\n >\n <Text style={[styles.label, textStyles, { color }]}>{label}</Text>\n </TouchableOpacity>\n );\n};\n\nconst styles = StyleSheet.create({\n wrapper: {\n borderBottomWidth: StyleSheet.hairlineWidth,\n borderBottomColor: \"#CCCCCC\",\n backgroundColor: \"#F1F1F1\",\n minHeight: 50,\n overflow: \"hidden\",\n display: \"flex\",\n justifyContent: \"center\",\n },\n label: {\n fontSize: 16,\n textAlign: \"center\",\n color: \"#0A84FF\",\n fontWeight: \"500\",\n overflow: \"hidden\",\n paddingHorizontal: 20,\n paddingVertical: 10,\n alignSelf: \"center\",\n },\n});\n\nexport default ActionSheetItem;\n"],"mappings":";;;;;;AAAA;AACA;AAQA;AAAgD;AAShD,MAAMA,eAAyD,GAAG,QAK5D;EAAA,IAL6D;IACjEC,KAAK;IACLC,KAAK;IACLC,KAAK;IACLC;EACF,CAAC;EACC,MAAM;IAAEC,UAAU;IAAEC;EAAW,CAAC,GAAG,IAAAC,wBAAa,EAACL,KAAK,CAAC;EACvD,oBACE,6BAAC,6BAAgB;IACf,aAAa,EAAE,GAAI;IACnB,KAAK,EAAE,CAACM,MAAM,CAACC,OAAO,EAAEH,UAAU,CAAE;IACpC,OAAO,EAAEF;EAAQ,gBAEjB,6BAAC,iBAAI;IAAC,KAAK,EAAE,CAACI,MAAM,CAACP,KAAK,EAAEI,UAAU,EAAE;MAAEF;IAAM,CAAC;EAAE,GAAEF,KAAK,CAAQ,CACjD;AAEvB,CAAC;AAED,MAAMO,MAAM,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/BF,OAAO,EAAE;IACPG,iBAAiB,EAAEF,uBAAU,CAACG,aAAa;IAC3CC,iBAAiB,EAAE,SAAS;IAC5BC,eAAe,EAAE,SAAS;IAC1BC,SAAS,EAAE,EAAE;IACbC,QAAQ,EAAE,QAAQ;IAClBC,OAAO,EAAE,MAAM;IACfC,cAAc,EAAE;EAClB,CAAC;EACDlB,KAAK,EAAE;IACLmB,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE,QAAQ;IACnBlB,KAAK,EAAE,SAAS;IAChBmB,UAAU,EAAE,KAAK;IACjBL,QAAQ,EAAE,QAAQ;IAClBM,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,EAAE;IACnBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAAC,eAEYzB,eAAe;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export { default as ActionSheet } from \"./ActionSheet\";\nexport { default as ActionSheetItem } from \"./ActionSheetItem\";\nexport { default as ActionSheetCancel } from \"./ActionSheetCancel\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AAAmE"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["ELEVATION","DEFAULT_MAX_WIDTH","Banner","initiallyVisible","dismissable","icon","buttonColor","content","contentStyle","style","theme","Icon","rest","visible","setVisible","React","useState","useEffect","current","position","useRef","Animated","Value","layout","setLayout","height","measured","timing","duration","toValue","useNativeDriver","start","handleLayout","nativeEvent","multiply","translateY","add","styles","container","shadow","wrapper","absolute","transform","opacity","marginBottom","message","color","colors","text","actions","primary","StyleSheet","create","elevation","overflow","alignSelf","width","maxWidth","top","flexDirection","justifyContent","marginHorizontal","marginTop","margin","flex","withTheme"],"sources":["Banner.tsx"],"sourcesContent":["import * as React from \"react\";\nimport {\n Button,\n Text,\n View,\n ViewStyle,\n StyleSheet,\n StyleProp,\n Animated,\n} from \"react-native\";\nimport Surface from \"./Surface\";\nimport type { IconSlot } from \"../interfaces/Icon\";\nimport shadow from \"../styles/shadow\";\nimport { withTheme } from \"../theming\";\nimport type { Theme } from \"../styles/DefaultTheme\";\n\nconst ELEVATION = 1;\nconst DEFAULT_MAX_WIDTH = 960;\n\ntype Props = {\n initiallyVisible: boolean;\n dismissable: boolean;\n buttonColor?: string;\n icon?: string;\n content?: string;\n contentStyle?: StyleProp<ViewStyle>;\n style?: StyleProp<ViewStyle>;\n ref?: React.RefObject<View>;\n /**\n * @optional\n */\n theme: Theme;\n} & IconSlot;\n\ntype NativeEvent = {\n nativeEvent: {\n layout: {\n x: number;\n y: number;\n width: number;\n height: number;\n };\n };\n};\n\nconst Banner: React.FC<React.PropsWithChildren<Props>> = ({\n initiallyVisible = true,\n dismissable = true,\n icon,\n buttonColor,\n content,\n contentStyle,\n style,\n theme,\n Icon,\n ...rest\n}) => {\n const [visible, setVisible] = React.useState(initiallyVisible);\n\n React.useEffect(() => {\n if (initiallyVisible) {\n setVisible(true);\n }\n }, [initiallyVisible]);\n\n const { current: position } = React.useRef<Animated.Value>(\n new Animated.Value(visible ? 1 : 0)\n );\n const [layout, setLayout] = React.useState<{\n height: number;\n measured: boolean;\n }>({\n height: 0,\n measured: false,\n });\n\n React.useEffect(() => {\n if (visible) {\n // show\n Animated.timing(position, {\n duration: 250,\n toValue: 1,\n useNativeDriver: false,\n }).start();\n } else {\n // hide\n Animated.timing(position, {\n duration: 200,\n toValue: 0,\n useNativeDriver: false,\n }).start();\n }\n }, [visible, position]);\n\n const handleLayout = ({ nativeEvent }: NativeEvent) => {\n const { height } = nativeEvent.layout;\n setLayout({ height, measured: true });\n };\n\n // The banner animation has 2 parts:\n // 1. Blank spacer element which animates its height to move the content\n // 2. Actual banner which animates its translateY\n // In initial render, we position everything normally and measure the height of the banner\n // Once we have the height, we apply the height to the spacer and switch the banner to position: absolute\n // We need this because we need to move the content below as if banner's height was being animated\n // However we can't animated banner's height directly as it'll also resize the content inside\n const height = Animated.multiply(position, layout.height);\n\n const translateY = Animated.multiply(\n Animated.add(position, -1),\n layout.height\n );\n\n return (\n <Surface\n {...rest}\n style={[styles.container, shadow(ELEVATION) as ViewStyle, style]}\n >\n <View style={[styles.wrapper, contentStyle]}>\n <Animated.View style={{ height }} />\n <Animated.View\n onLayout={handleLayout}\n style={[\n layout.measured || !visible\n ? // If we have measured banner's height or it's invisible,\n // Position it absolutely, the layout will be taken care of the spacer\n [styles.absolute, { transform: [{ translateY }] }]\n : // Otherwise position it normally\n null,\n !layout.measured && !visible\n ? // If we haven't measured banner's height yet and it's invisible,\n // hide it with opacity: 0 so user doesn't see it\n { opacity: 0 }\n : null,\n ]}\n >\n <View\n style={[styles.content, { marginBottom: dismissable ? 0 : 16 }]}\n >\n {icon ? (\n <View style={styles.icon}>\n <Icon name={icon} size={40} />\n </View>\n ) : null}\n <Text\n style={[styles.message, { color: theme.colors.text }]}\n accessibilityLiveRegion={visible ? \"polite\" : \"none\"}\n accessibilityRole=\"alert\"\n >\n {content}\n </Text>\n </View>\n {dismissable ? (\n <View style={styles.actions}>\n <Button\n color={buttonColor || theme.colors.primary}\n title=\"Close\"\n onPress={() => setVisible(false)}\n />\n </View>\n ) : null}\n </Animated.View>\n </View>\n </Surface>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n elevation: ELEVATION,\n },\n wrapper: {\n overflow: \"hidden\",\n alignSelf: \"center\",\n width: \"100%\",\n maxWidth: DEFAULT_MAX_WIDTH,\n },\n absolute: {\n position: \"absolute\",\n top: 0,\n width: \"100%\",\n },\n content: {\n flexDirection: \"row\",\n justifyContent: \"flex-start\",\n marginHorizontal: 8,\n marginTop: 16,\n marginBottom: 0,\n },\n icon: {\n margin: 8,\n },\n message: {\n flex: 1,\n margin: 8,\n },\n actions: {\n flexDirection: \"row\",\n justifyContent: \"flex-end\",\n margin: 8,\n },\n});\n\nexport default withTheme(Banner);\n"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["CONSTANTS","baseHeight","borderRadius","padding","icon","Base","Icon","title","onPress","loading","disabled","style","props","color","fontFamily","fontWeight","fontSize","lineHeight","letterSpacing","textTransform","textAlign","textDecorationLine","textDecorationColor","textDecorationStyle","buttonStyles","StyleSheet","flatten","titleStyles","justifyContent","pressed","styles","base","opacity","Solid","theme","roundness","backgroundColor","colors","primary","ButtonSolid","withTheme","Button","Outline","outline","borderColor","ButtonOutline","create","position","flexDirection","alignItems","minHeight","paddingHorizontal","Platform","select","web","cursor","userSelect","borderWidth","bare","undefined","marginRight","marginTop","alignSelf","default","marginBottom"],"sources":["Button.tsx"],"sourcesContent":["import * as React from \"react\";\nimport {\n Text,\n Pressable,\n Platform,\n StyleSheet,\n TextStyle,\n PressableProps,\n ActivityIndicator,\n} from \"react-native\";\n\nimport { withTheme } from \"../theming\";\n\nimport type { Theme } from \"../styles/DefaultTheme\";\nimport type { IconSlot } from \"../interfaces/Icon\";\n\nconst CONSTANTS = {\n baseHeight: 42,\n borderRadius: 4,\n padding: 8,\n icon: 24,\n};\n\ntype BaseProps = {\n title: string;\n disabled: boolean;\n loading: boolean;\n style?: TextStyle;\n onPress: () => void;\n icon?: string;\n} & PressableProps &\n IconSlot;\n\ntype Props = {\n title: string;\n disabled: boolean;\n loading: boolean;\n style?: TextStyle;\n onPress: () => void;\n icon?: string;\n theme: Theme;\n} & PressableProps &\n IconSlot;\n\nfunction Base({\n Icon,\n icon,\n title,\n onPress,\n loading,\n disabled,\n style,\n ...props\n}: BaseProps): JSX.Element {\n const {\n color,\n fontFamily,\n fontWeight,\n fontSize,\n lineHeight,\n letterSpacing,\n textTransform,\n textAlign,\n textDecorationLine,\n textDecorationColor,\n textDecorationStyle,\n ...buttonStyles\n } = StyleSheet.flatten(style || ({} as TextStyle));\n\n const titleStyles: TextStyle = {\n color,\n fontFamily,\n fontWeight,\n fontSize,\n lineHeight,\n letterSpacing,\n textTransform,\n textAlign,\n textDecorationLine,\n textDecorationColor,\n textDecorationStyle,\n };\n\n if (textAlign === \"left\") {\n buttonStyles.justifyContent = \"flex-start\";\n }\n\n if (textAlign === \"right\") {\n buttonStyles.justifyContent = \"flex-end\";\n }\n\n return (\n <Pressable\n onPress={onPress}\n disabled={disabled || loading}\n style={({ pressed }) => {\n return [\n styles.base,\n {\n opacity: pressed || disabled ? 0.75 : 1,\n },\n buttonStyles,\n ];\n }}\n {...props}\n >\n {loading ? (\n <ActivityIndicator size=\"small\" color={color} style={styles.loading} />\n ) : null}\n {icon && !loading ? (\n <Icon\n name={icon}\n color={color as string}\n style={styles.icon}\n size={CONSTANTS.icon}\n />\n ) : null}\n <Text style={titleStyles}>{title}</Text>\n </Pressable>\n );\n}\n\nconst Solid = ({ style, theme, ...props }: Props): JSX.Element => {\n return (\n <Base\n style={[\n {\n color: \"#FFF\",\n borderRadius: theme.roundness,\n backgroundColor: theme.colors.primary,\n },\n style,\n ]}\n {...props}\n />\n );\n};\n\nconst ButtonSolid: any = withTheme(Solid);\nexport { ButtonSolid };\n\nconst Button: any = withTheme(Solid);\nexport { Button };\n\nconst Outline = ({ style, theme, ...props }: Props): JSX.Element => {\n return (\n <Base\n style={[\n styles.outline,\n {\n borderRadius: theme.roundness,\n borderColor: theme.colors.primary,\n color: theme.colors.primary,\n },\n style,\n ]}\n {...props}\n />\n );\n};\n\nconst ButtonOutline: any = withTheme(Outline);\nexport { ButtonOutline };\n\nconst styles = StyleSheet.create({\n base: {\n position: \"relative\",\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n minHeight: CONSTANTS.baseHeight,\n paddingHorizontal: 12,\n fontFamily: \"System\",\n fontWeight: \"700\",\n ...Platform.select({\n web: {\n cursor: \"pointer\",\n userSelect: \"none\",\n },\n }),\n },\n outline: {\n backgroundColor: \"transparent\",\n borderWidth: 1,\n },\n bare: {\n backgroundColor: \"transparent\",\n padding: 0,\n minHeight: undefined,\n },\n loading: {\n marginRight: 6,\n },\n icon: {\n ...Platform.select({\n web: {\n marginTop: 1,\n marginRight: 4,\n alignSelf: \"center\",\n },\n default: {\n marginBottom: 2,\n marginRight: 4,\n alignSelf: \"center\",\n },\n }),\n },\n});\n"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["Checkbox","Icon","status","disabled","onPress","onCheck","onUncheck","color","uncheckedColor","defaultValue","checkedIcon","uncheckedIcon","size","style","rest","internalValue","setInternalValue","React","useState","useEffect","previousDefaultValue","usePrevious","Boolean","colors","useTheme","checkboxColor","primary","handlePress","newValue","styles","container","width","height","icon","StyleSheet","absoluteFill","fillContainer","fill","opacity","borderColor","create","borderRadius","alignItems","justifyContent","alignSelf"],"sources":["Checkbox.tsx"],"sourcesContent":["import * as React from \"react\";\nimport {\n View,\n StyleSheet,\n TouchableHighlightProps,\n StyleProp,\n ViewStyle,\n} from \"react-native\";\nimport { useTheme } from \"../../theming\";\nimport type { IconSlot } from \"../../interfaces/Icon\";\n\nimport Touchable from \"../Touchable\";\nimport { usePrevious } from \"../../hooks\";\n\nexport interface CheckboxProps {\n status?: boolean;\n disabled?: boolean;\n onPress?: (checked: boolean) => void;\n onCheck?: () => void;\n onUncheck?: () => void;\n color?: string;\n uncheckedColor?: string;\n checkedIcon?: string;\n uncheckedIcon?: string;\n defaultValue?: boolean;\n size?: number;\n style?: StyleProp<ViewStyle>;\n}\n\nconst Checkbox: React.FC<\n CheckboxProps & TouchableHighlightProps & IconSlot\n> = ({\n Icon,\n status,\n disabled = false,\n onPress,\n onCheck,\n onUncheck,\n color,\n uncheckedColor,\n defaultValue,\n checkedIcon = \"MaterialCommunityIcons/checkbox-marked\",\n uncheckedIcon = \"MaterialCommunityIcons/checkbox-blank-outline\",\n size = 24,\n style,\n ...rest\n}) => {\n const [internalValue, setInternalValue] = React.useState<boolean>(\n status || defaultValue || false\n );\n\n React.useEffect(() => {\n if (status != null) {\n setInternalValue(status);\n }\n }, [status]);\n\n // This special logic is to handle weird APIs like Airtable that return\n // true or undefined for a boolean\n const previousDefaultValue = usePrevious(defaultValue) as boolean | undefined;\n\n React.useEffect(() => {\n if (defaultValue !== previousDefaultValue) {\n setInternalValue(Boolean(defaultValue));\n }\n }, [defaultValue, previousDefaultValue]);\n\n const { colors } = useTheme();\n\n const checkboxColor = internalValue\n ? color || colors.primary\n : uncheckedColor || colors.primary;\n\n const handlePress = () => {\n const newValue = !internalValue;\n\n setInternalValue(newValue);\n onPress?.(newValue);\n\n if (newValue) {\n onCheck?.();\n }\n\n if (!newValue) {\n onUncheck?.();\n }\n };\n\n return (\n <Touchable\n {...rest}\n onPress={handlePress}\n disabled={disabled}\n accessibilityState={{ disabled }}\n accessibilityRole=\"button\"\n accessibilityLiveRegion=\"polite\"\n style={[styles.container, style, { width: size, height: size }]}\n >\n <Icon\n style={styles.icon}\n name={internalValue ? checkedIcon : uncheckedIcon}\n size={size}\n color={checkboxColor}\n />\n <View style={[StyleSheet.absoluteFill, styles.fillContainer]}>\n <View\n style={[\n styles.fill,\n { opacity: disabled ? 0.5 : 1 },\n { borderColor: checkboxColor },\n ]}\n />\n </View>\n </Touchable>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n borderRadius: 18,\n },\n fillContainer: {\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n icon: {\n alignSelf: \"center\",\n },\n fill: {\n borderRadius: 5,\n width: 30,\n height: 30,\n alignSelf: \"center\",\n },\n});\n\nexport default Checkbox;\n"],"mappings":"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"}