@draftbit/core 44.2.3-f311f8.2 → 46.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 (634) hide show
  1. package/lib/commonjs/Provider.js.map +1 -1
  2. package/lib/commonjs/components/Accordion/AccordionGroup.js.map +1 -1
  3. package/lib/commonjs/components/Accordion/AccordionItem.js +5 -21
  4. package/lib/commonjs/components/Accordion/AccordionItem.js.map +1 -1
  5. package/lib/commonjs/components/Accordion/index.js.map +1 -1
  6. package/lib/commonjs/components/ActionSheet/ActionSheet.js.map +1 -1
  7. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +1 -1
  8. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js.map +1 -1
  9. package/lib/commonjs/components/ActionSheet/index.js.map +1 -1
  10. package/lib/commonjs/components/AnimatedCircularProgress.js +3 -11
  11. package/lib/commonjs/components/AnimatedCircularProgress.js.map +1 -1
  12. package/lib/commonjs/components/AspectRatio.js +1 -1
  13. package/lib/commonjs/components/AspectRatio.js.map +1 -1
  14. package/lib/commonjs/components/AvatarEdit.js +1 -1
  15. package/lib/commonjs/components/AvatarEdit.js.map +1 -1
  16. package/lib/commonjs/components/Banner.js +1 -1
  17. package/lib/commonjs/components/Banner.js.map +1 -1
  18. package/lib/commonjs/components/Button.js +1 -1
  19. package/lib/commonjs/components/Button.js.map +1 -1
  20. package/lib/commonjs/components/Card.js.map +1 -1
  21. package/lib/commonjs/components/CardBlock.js +1 -1
  22. package/lib/commonjs/components/CardBlock.js.map +1 -1
  23. package/lib/commonjs/components/CardContainer.js +1 -1
  24. package/lib/commonjs/components/CardContainer.js.map +1 -1
  25. package/lib/commonjs/components/CardContainerRating.js +1 -1
  26. package/lib/commonjs/components/CardContainerRating.js.map +1 -1
  27. package/lib/commonjs/components/CardContainerShortImage.js +1 -1
  28. package/lib/commonjs/components/CardContainerShortImage.js.map +1 -1
  29. package/lib/commonjs/components/CardInline.js.map +1 -1
  30. package/lib/commonjs/components/Carousel.js +1 -1
  31. package/lib/commonjs/components/Carousel.js.map +1 -1
  32. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  33. package/lib/commonjs/components/Checkbox/Checkbox.js.map +1 -1
  34. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +1 -1
  35. package/lib/commonjs/components/Checkbox/CheckboxGroup.js.map +1 -1
  36. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -1
  37. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +1 -1
  38. package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -1
  39. package/lib/commonjs/components/Checkbox/CheckboxRow.js.map +1 -1
  40. package/lib/commonjs/components/Checkbox/context.js.map +1 -1
  41. package/lib/commonjs/components/Checkbox/index.js.map +1 -1
  42. package/lib/commonjs/components/CircleImage.js +1 -1
  43. package/lib/commonjs/components/CircleImage.js.map +1 -1
  44. package/lib/commonjs/components/CircularProgress.js.map +1 -1
  45. package/lib/commonjs/components/Config.js.map +1 -1
  46. package/lib/commonjs/components/Container.js +1 -1
  47. package/lib/commonjs/components/Container.js.map +1 -1
  48. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  49. package/lib/commonjs/components/DatePicker/DatePicker.js.map +1 -1
  50. package/lib/commonjs/components/DatePicker/DatePickerComponent.js.map +1 -1
  51. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  52. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +1 -1
  53. package/lib/commonjs/components/DeprecatedButton.js +4 -19
  54. package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
  55. package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -14
  56. package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -1
  57. package/lib/commonjs/components/DeprecatedFAB.js +4 -20
  58. package/lib/commonjs/components/DeprecatedFAB.js.map +1 -1
  59. package/lib/commonjs/components/Divider.js +1 -1
  60. package/lib/commonjs/components/Divider.js.map +1 -1
  61. package/lib/commonjs/components/Elevation.js +1 -1
  62. package/lib/commonjs/components/Elevation.js.map +1 -1
  63. package/lib/commonjs/components/FAB.js +1 -1
  64. package/lib/commonjs/components/FAB.js.map +1 -1
  65. package/lib/commonjs/components/FieldSearchBarFull.js.map +1 -1
  66. package/lib/commonjs/components/FormRow.js +1 -1
  67. package/lib/commonjs/components/FormRow.js.map +1 -1
  68. package/lib/commonjs/components/Header.js.map +1 -1
  69. package/lib/commonjs/components/HeaderLarge.js.map +1 -1
  70. package/lib/commonjs/components/HeaderMedium.js.map +1 -1
  71. package/lib/commonjs/components/HeaderOverline.js.map +1 -1
  72. package/lib/commonjs/components/IconButton.js +1 -1
  73. package/lib/commonjs/components/IconButton.js.map +1 -1
  74. package/lib/commonjs/components/Image.js +1 -1
  75. package/lib/commonjs/components/Image.js.map +1 -1
  76. package/lib/commonjs/components/Justification.js +0 -3
  77. package/lib/commonjs/components/Justification.js.map +1 -1
  78. package/lib/commonjs/components/Layout.js +1 -1
  79. package/lib/commonjs/components/Layout.js.map +1 -1
  80. package/lib/commonjs/components/NumberInput.js +1 -1
  81. package/lib/commonjs/components/NumberInput.js.map +1 -1
  82. package/lib/commonjs/components/Picker/Picker.js +0 -4
  83. package/lib/commonjs/components/Picker/Picker.js.map +1 -1
  84. package/lib/commonjs/components/Picker/PickerComponent.android.js +1 -1
  85. package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -1
  86. package/lib/commonjs/components/Picker/PickerComponent.ios.js +1 -1
  87. package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +1 -1
  88. package/lib/commonjs/components/Picker/PickerComponent.web.js +1 -1
  89. package/lib/commonjs/components/Picker/PickerComponent.web.js.map +1 -1
  90. package/lib/commonjs/components/Picker/PickerTypes.js.map +1 -1
  91. package/lib/commonjs/components/Portal/Portal.js.map +1 -1
  92. package/lib/commonjs/components/Portal/PortalConsumer.js.map +1 -1
  93. package/lib/commonjs/components/Portal/PortalHost.js.map +1 -1
  94. package/lib/commonjs/components/Portal/PortalManager.js.map +1 -1
  95. package/lib/commonjs/components/ProgressBar.js +1 -1
  96. package/lib/commonjs/components/ProgressBar.js.map +1 -1
  97. package/lib/commonjs/components/ProgressCircle.js.map +1 -1
  98. package/lib/commonjs/components/ProgressIndicator.js.map +1 -1
  99. package/lib/commonjs/components/RadioButton/RadioButton.js +1 -1
  100. package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -1
  101. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +1 -1
  102. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
  103. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +1 -1
  104. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -1
  105. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -1
  106. package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +1 -1
  107. package/lib/commonjs/components/RadioButton/context.js.map +1 -1
  108. package/lib/commonjs/components/RadioButton/index.js.map +1 -1
  109. package/lib/commonjs/components/ResizeMode.js +0 -3
  110. package/lib/commonjs/components/ResizeMode.js.map +1 -1
  111. package/lib/commonjs/components/Row.js.map +1 -1
  112. package/lib/commonjs/components/RowBodyIcon.js.map +1 -1
  113. package/lib/commonjs/components/RowHeadlineImageCaption.js.map +1 -1
  114. package/lib/commonjs/components/RowHeadlineImageIcon.js.map +1 -1
  115. package/lib/commonjs/components/ScreenContainer.js +1 -1
  116. package/lib/commonjs/components/ScreenContainer.js.map +1 -1
  117. package/lib/commonjs/components/Slider.js +1 -1
  118. package/lib/commonjs/components/Slider.js.map +1 -1
  119. package/lib/commonjs/components/StarRating.js +1 -1
  120. package/lib/commonjs/components/StarRating.js.map +1 -1
  121. package/lib/commonjs/components/StepIndicator.js.map +1 -1
  122. package/lib/commonjs/components/Stepper.js.map +1 -1
  123. package/lib/commonjs/components/Surface.js +1 -1
  124. package/lib/commonjs/components/Surface.js.map +1 -1
  125. package/lib/commonjs/components/Swiper/Swiper.js.map +1 -1
  126. package/lib/commonjs/components/Swiper/SwiperItem.js.map +1 -1
  127. package/lib/commonjs/components/Swiper/index.js.map +1 -1
  128. package/lib/commonjs/components/Switch.js +1 -1
  129. package/lib/commonjs/components/Switch.js.map +1 -1
  130. package/lib/commonjs/components/Text.js +1 -1
  131. package/lib/commonjs/components/Text.js.map +1 -1
  132. package/lib/commonjs/components/TextField.js +7 -23
  133. package/lib/commonjs/components/TextField.js.map +1 -1
  134. package/lib/commonjs/components/ToggleButton.js +1 -1
  135. package/lib/commonjs/components/ToggleButton.js.map +1 -1
  136. package/lib/commonjs/components/Touchable.js +3 -16
  137. package/lib/commonjs/components/Touchable.js.map +1 -1
  138. package/lib/commonjs/components/Touchable.web.js.map +1 -1
  139. package/lib/commonjs/components/Typography.js.map +1 -1
  140. package/lib/commonjs/components/useAuthState.js.map +1 -1
  141. package/lib/commonjs/constants.js.map +1 -1
  142. package/lib/commonjs/hooks.js.map +1 -1
  143. package/lib/commonjs/index.js +0 -8
  144. package/lib/commonjs/index.js.map +1 -1
  145. package/lib/commonjs/interfaces/Icon.js.map +1 -1
  146. package/lib/commonjs/mappings/Accordion.js.map +1 -1
  147. package/lib/commonjs/mappings/AccordionItem.js.map +1 -1
  148. package/lib/commonjs/mappings/ActionSheet.js.map +1 -1
  149. package/lib/commonjs/mappings/ActionSheetCancel.js.map +1 -1
  150. package/lib/commonjs/mappings/ActionSheetItem.js.map +1 -1
  151. package/lib/commonjs/mappings/ActivityIndicator.js.map +1 -1
  152. package/lib/commonjs/mappings/AudioPlayer.js.map +1 -1
  153. package/lib/commonjs/mappings/AvatarEdit.js.map +1 -1
  154. package/lib/commonjs/mappings/Banner.js.map +1 -1
  155. package/lib/commonjs/mappings/BlurView.js.map +1 -1
  156. package/lib/commonjs/mappings/Button.js.map +1 -1
  157. package/lib/commonjs/mappings/Card.js.map +1 -1
  158. package/lib/commonjs/mappings/CardBlock.js.map +1 -1
  159. package/lib/commonjs/mappings/CardContainer.js.map +1 -1
  160. package/lib/commonjs/mappings/CardContainerRating.js.map +1 -1
  161. package/lib/commonjs/mappings/CardContainerShortImage.js.map +1 -1
  162. package/lib/commonjs/mappings/CardInline.js.map +1 -1
  163. package/lib/commonjs/mappings/Carousel.js.map +1 -1
  164. package/lib/commonjs/mappings/Checkbox.js.map +1 -1
  165. package/lib/commonjs/mappings/CheckboxGroup.js.map +1 -1
  166. package/lib/commonjs/mappings/CheckboxRow.js.map +1 -1
  167. package/lib/commonjs/mappings/CircleImage.js.map +1 -1
  168. package/lib/commonjs/mappings/Container.js.map +1 -1
  169. package/lib/commonjs/mappings/CustomCode.js.map +1 -1
  170. package/lib/commonjs/mappings/DatePicker.js.map +1 -1
  171. package/lib/commonjs/mappings/Divider.js.map +1 -1
  172. package/lib/commonjs/mappings/FAB.js.map +1 -1
  173. package/lib/commonjs/mappings/Fetch.js.map +1 -1
  174. package/lib/commonjs/mappings/FieldSearchBarFull.js.map +1 -1
  175. package/lib/commonjs/mappings/FlatList.js.map +1 -1
  176. package/lib/commonjs/mappings/HeaderLarge.js.map +1 -1
  177. package/lib/commonjs/mappings/HeaderMedium.js.map +1 -1
  178. package/lib/commonjs/mappings/HeaderOverline.js.map +1 -1
  179. package/lib/commonjs/mappings/Icon.js.map +1 -1
  180. package/lib/commonjs/mappings/IconButton.js.map +1 -1
  181. package/lib/commonjs/mappings/Image.js.map +1 -1
  182. package/lib/commonjs/mappings/ImageBackground.js.map +1 -1
  183. package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +1 -1
  184. package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -1
  185. package/lib/commonjs/mappings/Layout.js.map +1 -1
  186. package/lib/commonjs/mappings/LinearGradient.js.map +1 -1
  187. package/lib/commonjs/mappings/MapCallout.js.map +1 -1
  188. package/lib/commonjs/mappings/MapMarker.js.map +1 -1
  189. package/lib/commonjs/mappings/MapView.js.map +1 -1
  190. package/lib/commonjs/mappings/Modal.js.map +1 -1
  191. package/lib/commonjs/mappings/Picker.js.map +1 -1
  192. package/lib/commonjs/mappings/ProgressBar.js.map +1 -1
  193. package/lib/commonjs/mappings/ProgressCircle.js.map +1 -1
  194. package/lib/commonjs/mappings/ProgressIndicator.js.map +1 -1
  195. package/lib/commonjs/mappings/RadioButton.js.map +1 -1
  196. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
  197. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
  198. package/lib/commonjs/mappings/RowBodyIcon.js.map +1 -1
  199. package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +1 -1
  200. package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +1 -1
  201. package/lib/commonjs/mappings/SafeAreaView.js.map +1 -1
  202. package/lib/commonjs/mappings/ScrollView.js.map +1 -1
  203. package/lib/commonjs/mappings/Slider.js.map +1 -1
  204. package/lib/commonjs/mappings/StarRating.js.map +1 -1
  205. package/lib/commonjs/mappings/Stepper.js.map +1 -1
  206. package/lib/commonjs/mappings/Surface.js.map +1 -1
  207. package/lib/commonjs/mappings/Swiper.js.map +1 -1
  208. package/lib/commonjs/mappings/SwiperItem.js.map +1 -1
  209. package/lib/commonjs/mappings/Switch.js.map +1 -1
  210. package/lib/commonjs/mappings/Text.js.map +1 -1
  211. package/lib/commonjs/mappings/TextArea.js.map +1 -1
  212. package/lib/commonjs/mappings/TextField.js.map +1 -1
  213. package/lib/commonjs/mappings/TextInput.js.map +1 -1
  214. package/lib/commonjs/mappings/ToggleButton.js.map +1 -1
  215. package/lib/commonjs/mappings/Touchable.js.map +1 -1
  216. package/lib/commonjs/mappings/Video.js.map +1 -1
  217. package/lib/commonjs/mappings/View.js.map +1 -1
  218. package/lib/commonjs/mappings/WebView.js.map +1 -1
  219. package/lib/commonjs/styles/DarkTheme.js.map +1 -1
  220. package/lib/commonjs/styles/DefaultTheme.js.map +1 -1
  221. package/lib/commonjs/styles/fonts.js.map +1 -1
  222. package/lib/commonjs/styles/overlay.js.map +1 -1
  223. package/lib/commonjs/styles/shadow.js.map +1 -1
  224. package/lib/commonjs/theming.js.map +1 -1
  225. package/lib/commonjs/utilities.js.map +1 -1
  226. package/lib/module/Provider.js.map +1 -1
  227. package/lib/module/components/Accordion/AccordionGroup.js.map +1 -1
  228. package/lib/module/components/Accordion/AccordionItem.js +1 -1
  229. package/lib/module/components/Accordion/AccordionItem.js.map +1 -1
  230. package/lib/module/components/Accordion/index.js.map +1 -1
  231. package/lib/module/components/ActionSheet/ActionSheet.js.map +1 -1
  232. package/lib/module/components/ActionSheet/ActionSheetCancel.js.map +1 -1
  233. package/lib/module/components/ActionSheet/ActionSheetItem.js.map +1 -1
  234. package/lib/module/components/ActionSheet/index.js.map +1 -1
  235. package/lib/module/components/AnimatedCircularProgress.js +1 -1
  236. package/lib/module/components/AnimatedCircularProgress.js.map +1 -1
  237. package/lib/module/components/AspectRatio.js +1 -1
  238. package/lib/module/components/AspectRatio.js.map +1 -1
  239. package/lib/module/components/AvatarEdit.js +1 -1
  240. package/lib/module/components/AvatarEdit.js.map +1 -1
  241. package/lib/module/components/Banner.js +1 -1
  242. package/lib/module/components/Banner.js.map +1 -1
  243. package/lib/module/components/Button.js +1 -1
  244. package/lib/module/components/Button.js.map +1 -1
  245. package/lib/module/components/Card.js.map +1 -1
  246. package/lib/module/components/CardBlock.js +1 -1
  247. package/lib/module/components/CardBlock.js.map +1 -1
  248. package/lib/module/components/CardContainer.js +1 -1
  249. package/lib/module/components/CardContainer.js.map +1 -1
  250. package/lib/module/components/CardContainerRating.js +1 -1
  251. package/lib/module/components/CardContainerRating.js.map +1 -1
  252. package/lib/module/components/CardContainerShortImage.js +1 -1
  253. package/lib/module/components/CardContainerShortImage.js.map +1 -1
  254. package/lib/module/components/CardInline.js.map +1 -1
  255. package/lib/module/components/Carousel.js +1 -1
  256. package/lib/module/components/Carousel.js.map +1 -1
  257. package/lib/module/components/Checkbox/Checkbox.js +1 -1
  258. package/lib/module/components/Checkbox/Checkbox.js.map +1 -1
  259. package/lib/module/components/Checkbox/CheckboxGroup.js +1 -1
  260. package/lib/module/components/Checkbox/CheckboxGroup.js.map +1 -1
  261. package/lib/module/components/Checkbox/CheckboxGroupRow.js +1 -1
  262. package/lib/module/components/Checkbox/CheckboxGroupRow.js.map +1 -1
  263. package/lib/module/components/Checkbox/CheckboxRow.js +1 -1
  264. package/lib/module/components/Checkbox/CheckboxRow.js.map +1 -1
  265. package/lib/module/components/Checkbox/context.js.map +1 -1
  266. package/lib/module/components/Checkbox/index.js.map +1 -1
  267. package/lib/module/components/CircleImage.js +1 -1
  268. package/lib/module/components/CircleImage.js.map +1 -1
  269. package/lib/module/components/CircularProgress.js.map +1 -1
  270. package/lib/module/components/Config.js.map +1 -1
  271. package/lib/module/components/Container.js +1 -1
  272. package/lib/module/components/Container.js.map +1 -1
  273. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  274. package/lib/module/components/DatePicker/DatePicker.js.map +1 -1
  275. package/lib/module/components/DatePicker/DatePickerComponent.js.map +1 -1
  276. package/lib/module/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  277. package/lib/module/components/DatePicker/DatePickerComponentType.js.map +1 -1
  278. package/lib/module/components/DeprecatedButton.js +1 -1
  279. package/lib/module/components/DeprecatedButton.js.map +1 -1
  280. package/lib/module/components/DeprecatedCardWrapper.js +1 -1
  281. package/lib/module/components/DeprecatedCardWrapper.js.map +1 -1
  282. package/lib/module/components/DeprecatedFAB.js +1 -1
  283. package/lib/module/components/DeprecatedFAB.js.map +1 -1
  284. package/lib/module/components/Divider.js +1 -1
  285. package/lib/module/components/Divider.js.map +1 -1
  286. package/lib/module/components/Elevation.js +1 -1
  287. package/lib/module/components/Elevation.js.map +1 -1
  288. package/lib/module/components/FAB.js +1 -1
  289. package/lib/module/components/FAB.js.map +1 -1
  290. package/lib/module/components/FieldSearchBarFull.js.map +1 -1
  291. package/lib/module/components/FormRow.js +1 -1
  292. package/lib/module/components/FormRow.js.map +1 -1
  293. package/lib/module/components/Header.js.map +1 -1
  294. package/lib/module/components/HeaderLarge.js.map +1 -1
  295. package/lib/module/components/HeaderMedium.js.map +1 -1
  296. package/lib/module/components/HeaderOverline.js.map +1 -1
  297. package/lib/module/components/IconButton.js +1 -1
  298. package/lib/module/components/IconButton.js.map +1 -1
  299. package/lib/module/components/Image.js +1 -1
  300. package/lib/module/components/Image.js.map +1 -1
  301. package/lib/module/components/Justification.js +1 -1
  302. package/lib/module/components/Justification.js.map +1 -1
  303. package/lib/module/components/Layout.js +1 -1
  304. package/lib/module/components/Layout.js.map +1 -1
  305. package/lib/module/components/NumberInput.js +1 -1
  306. package/lib/module/components/NumberInput.js.map +1 -1
  307. package/lib/module/components/Picker/Picker.js.map +1 -1
  308. package/lib/module/components/Picker/PickerComponent.android.js +1 -1
  309. package/lib/module/components/Picker/PickerComponent.android.js.map +1 -1
  310. package/lib/module/components/Picker/PickerComponent.ios.js +1 -1
  311. package/lib/module/components/Picker/PickerComponent.ios.js.map +1 -1
  312. package/lib/module/components/Picker/PickerComponent.web.js +1 -1
  313. package/lib/module/components/Picker/PickerComponent.web.js.map +1 -1
  314. package/lib/module/components/Picker/PickerTypes.js.map +1 -1
  315. package/lib/module/components/Portal/Portal.js.map +1 -1
  316. package/lib/module/components/Portal/PortalConsumer.js.map +1 -1
  317. package/lib/module/components/Portal/PortalHost.js.map +1 -1
  318. package/lib/module/components/Portal/PortalManager.js.map +1 -1
  319. package/lib/module/components/ProgressBar.js +1 -1
  320. package/lib/module/components/ProgressBar.js.map +1 -1
  321. package/lib/module/components/ProgressCircle.js.map +1 -1
  322. package/lib/module/components/ProgressIndicator.js.map +1 -1
  323. package/lib/module/components/RadioButton/RadioButton.js +1 -1
  324. package/lib/module/components/RadioButton/RadioButton.js.map +1 -1
  325. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +1 -1
  326. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
  327. package/lib/module/components/RadioButton/RadioButtonGroup.js +1 -1
  328. package/lib/module/components/RadioButton/RadioButtonGroup.js.map +1 -1
  329. package/lib/module/components/RadioButton/RadioButtonRow.js +1 -1
  330. package/lib/module/components/RadioButton/RadioButtonRow.js.map +1 -1
  331. package/lib/module/components/RadioButton/context.js.map +1 -1
  332. package/lib/module/components/RadioButton/index.js.map +1 -1
  333. package/lib/module/components/ResizeMode.js +1 -1
  334. package/lib/module/components/ResizeMode.js.map +1 -1
  335. package/lib/module/components/Row.js.map +1 -1
  336. package/lib/module/components/RowBodyIcon.js.map +1 -1
  337. package/lib/module/components/RowHeadlineImageCaption.js.map +1 -1
  338. package/lib/module/components/RowHeadlineImageIcon.js.map +1 -1
  339. package/lib/module/components/ScreenContainer.js +1 -1
  340. package/lib/module/components/ScreenContainer.js.map +1 -1
  341. package/lib/module/components/Slider.js +1 -1
  342. package/lib/module/components/Slider.js.map +1 -1
  343. package/lib/module/components/StarRating.js +1 -1
  344. package/lib/module/components/StarRating.js.map +1 -1
  345. package/lib/module/components/StepIndicator.js.map +1 -1
  346. package/lib/module/components/Stepper.js.map +1 -1
  347. package/lib/module/components/Surface.js +1 -1
  348. package/lib/module/components/Surface.js.map +1 -1
  349. package/lib/module/components/Swiper/Swiper.js.map +1 -1
  350. package/lib/module/components/Swiper/SwiperItem.js.map +1 -1
  351. package/lib/module/components/Swiper/index.js.map +1 -1
  352. package/lib/module/components/Switch.js +1 -1
  353. package/lib/module/components/Switch.js.map +1 -1
  354. package/lib/module/components/Text.js +1 -1
  355. package/lib/module/components/Text.js.map +1 -1
  356. package/lib/module/components/TextField.js +1 -1
  357. package/lib/module/components/TextField.js.map +1 -1
  358. package/lib/module/components/ToggleButton.js +1 -1
  359. package/lib/module/components/ToggleButton.js.map +1 -1
  360. package/lib/module/components/Touchable.js +1 -1
  361. package/lib/module/components/Touchable.js.map +1 -1
  362. package/lib/module/components/Touchable.web.js.map +1 -1
  363. package/lib/module/components/Typography.js.map +1 -1
  364. package/lib/module/components/useAuthState.js.map +1 -1
  365. package/lib/module/constants.js.map +1 -1
  366. package/lib/module/hooks.js.map +1 -1
  367. package/lib/module/index.js +1 -2
  368. package/lib/module/index.js.map +1 -1
  369. package/lib/module/interfaces/Icon.js.map +1 -1
  370. package/lib/module/mappings/Accordion.js.map +1 -1
  371. package/lib/module/mappings/AccordionItem.js.map +1 -1
  372. package/lib/module/mappings/ActionSheet.js.map +1 -1
  373. package/lib/module/mappings/ActionSheetCancel.js.map +1 -1
  374. package/lib/module/mappings/ActionSheetItem.js.map +1 -1
  375. package/lib/module/mappings/ActivityIndicator.js.map +1 -1
  376. package/lib/module/mappings/AudioPlayer.js.map +1 -1
  377. package/lib/module/mappings/AvatarEdit.js.map +1 -1
  378. package/lib/module/mappings/Banner.js.map +1 -1
  379. package/lib/module/mappings/BlurView.js.map +1 -1
  380. package/lib/module/mappings/Button.js.map +1 -1
  381. package/lib/module/mappings/Card.js.map +1 -1
  382. package/lib/module/mappings/CardBlock.js.map +1 -1
  383. package/lib/module/mappings/CardContainer.js.map +1 -1
  384. package/lib/module/mappings/CardContainerRating.js.map +1 -1
  385. package/lib/module/mappings/CardContainerShortImage.js.map +1 -1
  386. package/lib/module/mappings/CardInline.js.map +1 -1
  387. package/lib/module/mappings/Carousel.js.map +1 -1
  388. package/lib/module/mappings/Checkbox.js.map +1 -1
  389. package/lib/module/mappings/CheckboxGroup.js.map +1 -1
  390. package/lib/module/mappings/CheckboxRow.js.map +1 -1
  391. package/lib/module/mappings/CircleImage.js.map +1 -1
  392. package/lib/module/mappings/Container.js.map +1 -1
  393. package/lib/module/mappings/CustomCode.js.map +1 -1
  394. package/lib/module/mappings/DatePicker.js.map +1 -1
  395. package/lib/module/mappings/Divider.js.map +1 -1
  396. package/lib/module/mappings/FAB.js.map +1 -1
  397. package/lib/module/mappings/Fetch.js.map +1 -1
  398. package/lib/module/mappings/FieldSearchBarFull.js.map +1 -1
  399. package/lib/module/mappings/FlatList.js.map +1 -1
  400. package/lib/module/mappings/HeaderLarge.js.map +1 -1
  401. package/lib/module/mappings/HeaderMedium.js.map +1 -1
  402. package/lib/module/mappings/HeaderOverline.js.map +1 -1
  403. package/lib/module/mappings/Icon.js.map +1 -1
  404. package/lib/module/mappings/IconButton.js.map +1 -1
  405. package/lib/module/mappings/Image.js.map +1 -1
  406. package/lib/module/mappings/ImageBackground.js.map +1 -1
  407. package/lib/module/mappings/KeyboardAvoidingView.js.map +1 -1
  408. package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -1
  409. package/lib/module/mappings/Layout.js.map +1 -1
  410. package/lib/module/mappings/LinearGradient.js.map +1 -1
  411. package/lib/module/mappings/MapCallout.js.map +1 -1
  412. package/lib/module/mappings/MapMarker.js.map +1 -1
  413. package/lib/module/mappings/MapView.js.map +1 -1
  414. package/lib/module/mappings/Modal.js.map +1 -1
  415. package/lib/module/mappings/Picker.js.map +1 -1
  416. package/lib/module/mappings/ProgressBar.js.map +1 -1
  417. package/lib/module/mappings/ProgressCircle.js.map +1 -1
  418. package/lib/module/mappings/ProgressIndicator.js.map +1 -1
  419. package/lib/module/mappings/RadioButton.js.map +1 -1
  420. package/lib/module/mappings/RadioButtonGroup.js.map +1 -1
  421. package/lib/module/mappings/RadioButtonRow.js.map +1 -1
  422. package/lib/module/mappings/RowBodyIcon.js.map +1 -1
  423. package/lib/module/mappings/RowHeadlineImageCaption.js.map +1 -1
  424. package/lib/module/mappings/RowHeadlineImageIcon.js.map +1 -1
  425. package/lib/module/mappings/SafeAreaView.js.map +1 -1
  426. package/lib/module/mappings/ScrollView.js.map +1 -1
  427. package/lib/module/mappings/Slider.js.map +1 -1
  428. package/lib/module/mappings/StarRating.js.map +1 -1
  429. package/lib/module/mappings/Stepper.js.map +1 -1
  430. package/lib/module/mappings/Surface.js.map +1 -1
  431. package/lib/module/mappings/Swiper.js.map +1 -1
  432. package/lib/module/mappings/SwiperItem.js.map +1 -1
  433. package/lib/module/mappings/Switch.js.map +1 -1
  434. package/lib/module/mappings/Text.js.map +1 -1
  435. package/lib/module/mappings/TextArea.js.map +1 -1
  436. package/lib/module/mappings/TextField.js.map +1 -1
  437. package/lib/module/mappings/TextInput.js.map +1 -1
  438. package/lib/module/mappings/ToggleButton.js.map +1 -1
  439. package/lib/module/mappings/Touchable.js.map +1 -1
  440. package/lib/module/mappings/Video.js.map +1 -1
  441. package/lib/module/mappings/View.js.map +1 -1
  442. package/lib/module/mappings/WebView.js.map +1 -1
  443. package/lib/module/styles/DarkTheme.js.map +1 -1
  444. package/lib/module/styles/DefaultTheme.js.map +1 -1
  445. package/lib/module/styles/fonts.js.map +1 -1
  446. package/lib/module/styles/overlay.js.map +1 -1
  447. package/lib/module/styles/shadow.js.map +1 -1
  448. package/lib/module/theming.js.map +1 -1
  449. package/lib/module/utilities.js.map +1 -1
  450. package/lib/typescript/src/index.d.ts +0 -1
  451. package/package.json +6 -8
  452. package/src/index.tsx +0 -1
  453. package/lib/commonjs/components/Youtube.js +0 -74
  454. package/lib/commonjs/components/Youtube.js.map +0 -1
  455. package/lib/module/components/Youtube.js +0 -60
  456. package/lib/module/components/Youtube.js.map +0 -1
  457. package/lib/typescript/src/components/Youtube.d.ts +0 -44
  458. package/src/Provider.js +0 -9
  459. package/src/components/Accordion/AccordionGroup.js +0 -44
  460. package/src/components/Accordion/AccordionItem.js +0 -32
  461. package/src/components/Accordion/index.js +0 -2
  462. package/src/components/ActionSheet/ActionSheet.js +0 -45
  463. package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
  464. package/src/components/ActionSheet/ActionSheetItem.js +0 -30
  465. package/src/components/ActionSheet/index.js +0 -3
  466. package/src/components/AnimatedCircularProgress.js +0 -43
  467. package/src/components/AspectRatio.js +0 -18
  468. package/src/components/AvatarEdit.js +0 -30
  469. package/src/components/Banner.js +0 -109
  470. package/src/components/Button.js +0 -112
  471. package/src/components/Card.js +0 -57
  472. package/src/components/CardBlock.js +0 -54
  473. package/src/components/CardContainer.js +0 -69
  474. package/src/components/CardContainerRating.js +0 -79
  475. package/src/components/CardContainerShortImage.js +0 -33
  476. package/src/components/CardInline.js +0 -36
  477. package/src/components/Carousel.js +0 -66
  478. package/src/components/Checkbox/Checkbox.js +0 -63
  479. package/src/components/Checkbox/CheckboxGroup.js +0 -21
  480. package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
  481. package/src/components/Checkbox/CheckboxRow.js +0 -78
  482. package/src/components/Checkbox/context.js +0 -14
  483. package/src/components/Checkbox/index.js +0 -3
  484. package/src/components/CircleImage.js +0 -8
  485. package/src/components/CircularProgress.js +0 -78
  486. package/src/components/Config.js +0 -63
  487. package/src/components/Container.js +0 -43
  488. package/src/components/DatePicker/DatePicker.js +0 -368
  489. package/src/components/DatePicker/DatePickerComponent.js +0 -13
  490. package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
  491. package/src/components/DatePicker/DatePickerComponentType.js +0 -1
  492. package/src/components/DeprecatedButton.js +0 -95
  493. package/src/components/DeprecatedCardWrapper.js +0 -18
  494. package/src/components/DeprecatedFAB.js +0 -115
  495. package/src/components/Divider.js +0 -13
  496. package/src/components/Elevation.js +0 -20
  497. package/src/components/FAB.js +0 -46
  498. package/src/components/FieldSearchBarFull.js +0 -53
  499. package/src/components/FormRow.js +0 -19
  500. package/src/components/Header.js +0 -44
  501. package/src/components/HeaderLarge.js +0 -7
  502. package/src/components/HeaderMedium.js +0 -7
  503. package/src/components/HeaderOverline.js +0 -7
  504. package/src/components/IconButton.js +0 -35
  505. package/src/components/Image.js +0 -47
  506. package/src/components/Justification.js +0 -1
  507. package/src/components/Layout.js +0 -50
  508. package/src/components/NumberInput.js +0 -49
  509. package/src/components/Picker/Picker.js +0 -266
  510. package/src/components/Picker/PickerComponent.android.js +0 -68
  511. package/src/components/Picker/PickerComponent.ios.js +0 -78
  512. package/src/components/Picker/PickerComponent.web.js +0 -69
  513. package/src/components/Picker/PickerTypes.js +0 -1
  514. package/src/components/Portal/Portal.js +0 -35
  515. package/src/components/Portal/PortalConsumer.js +0 -28
  516. package/src/components/Portal/PortalHost.js +0 -105
  517. package/src/components/Portal/PortalManager.js +0 -29
  518. package/src/components/ProgressBar.js +0 -118
  519. package/src/components/ProgressCircle.js +0 -13
  520. package/src/components/ProgressIndicator.js +0 -27
  521. package/src/components/RadioButton/RadioButton.js +0 -17
  522. package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
  523. package/src/components/RadioButton/RadioButtonGroup.js +0 -43
  524. package/src/components/RadioButton/RadioButtonRow.js +0 -76
  525. package/src/components/RadioButton/context.js +0 -14
  526. package/src/components/RadioButton/index.js +0 -4
  527. package/src/components/ResizeMode.js +0 -1
  528. package/src/components/Row.js +0 -48
  529. package/src/components/RowBodyIcon.js +0 -8
  530. package/src/components/RowHeadlineImageCaption.js +0 -12
  531. package/src/components/RowHeadlineImageIcon.js +0 -14
  532. package/src/components/ScreenContainer.js +0 -34
  533. package/src/components/Slider.js +0 -63
  534. package/src/components/StarRating.js +0 -50
  535. package/src/components/StepIndicator.js +0 -346
  536. package/src/components/Stepper.js +0 -39
  537. package/src/components/Surface.js +0 -32
  538. package/src/components/Swiper/Swiper.js +0 -29
  539. package/src/components/Swiper/SwiperItem.js +0 -9
  540. package/src/components/Swiper/index.js +0 -2
  541. package/src/components/Switch.js +0 -56
  542. package/src/components/Text.js +0 -28
  543. package/src/components/TextField.js +0 -420
  544. package/src/components/ToggleButton.js +0 -39
  545. package/src/components/Touchable.js +0 -12
  546. package/src/components/Touchable.web.js +0 -2
  547. package/src/components/Typography.js +0 -36
  548. package/src/components/Youtube.js +0 -38
  549. package/src/components/Youtube.tsx +0 -66
  550. package/src/components/useAuthState.js +0 -31
  551. package/src/constants.js +0 -10
  552. package/src/hooks.js +0 -12
  553. package/src/index.js +0 -53
  554. package/src/interfaces/Icon.js +0 -8
  555. package/src/mappings/Accordion.js +0 -41
  556. package/src/mappings/AccordionItem.js +0 -16
  557. package/src/mappings/ActionSheet.js +0 -13
  558. package/src/mappings/ActionSheetCancel.js +0 -19
  559. package/src/mappings/ActionSheetItem.js +0 -23
  560. package/src/mappings/ActivityIndicator.js +0 -53
  561. package/src/mappings/AudioPlayer.js +0 -20
  562. package/src/mappings/AvatarEdit.js +0 -37
  563. package/src/mappings/Banner.js +0 -32
  564. package/src/mappings/BlurView.js +0 -41
  565. package/src/mappings/Button.js +0 -56
  566. package/src/mappings/Card.js +0 -52
  567. package/src/mappings/CardBlock.js +0 -122
  568. package/src/mappings/CardContainer.js +0 -102
  569. package/src/mappings/CardContainerRating.js +0 -124
  570. package/src/mappings/CardContainerShortImage.js +0 -118
  571. package/src/mappings/CardInline.js +0 -51
  572. package/src/mappings/Carousel.js +0 -18
  573. package/src/mappings/Checkbox.js +0 -45
  574. package/src/mappings/CheckboxGroup.js +0 -25
  575. package/src/mappings/CheckboxRow.js +0 -56
  576. package/src/mappings/CircleImage.js +0 -24
  577. package/src/mappings/Container.js +0 -29
  578. package/src/mappings/CustomCode.js +0 -8
  579. package/src/mappings/DatePicker.js +0 -147
  580. package/src/mappings/Divider.js +0 -26
  581. package/src/mappings/FAB.js +0 -36
  582. package/src/mappings/Fetch.js +0 -12
  583. package/src/mappings/FieldSearchBarFull.js +0 -49
  584. package/src/mappings/FlatList.js +0 -19
  585. package/src/mappings/HeaderLarge.js +0 -28
  586. package/src/mappings/HeaderMedium.js +0 -54
  587. package/src/mappings/HeaderOverline.js +0 -54
  588. package/src/mappings/Icon.js +0 -25
  589. package/src/mappings/IconButton.js +0 -30
  590. package/src/mappings/Image.js +0 -15
  591. package/src/mappings/ImageBackground.js +0 -28
  592. package/src/mappings/KeyboardAvoidingView.js +0 -40
  593. package/src/mappings/KeyboardAwareScrollView.js +0 -49
  594. package/src/mappings/Layout.js +0 -195
  595. package/src/mappings/LinearGradient.js +0 -77
  596. package/src/mappings/MapCallout.js +0 -21
  597. package/src/mappings/MapMarker.js +0 -47
  598. package/src/mappings/MapView.js +0 -138
  599. package/src/mappings/Modal.js +0 -41
  600. package/src/mappings/Picker.js +0 -139
  601. package/src/mappings/ProgressBar.js +0 -100
  602. package/src/mappings/ProgressCircle.js +0 -108
  603. package/src/mappings/ProgressIndicator.js +0 -180
  604. package/src/mappings/RadioButton.js +0 -50
  605. package/src/mappings/RadioButtonGroup.js +0 -16
  606. package/src/mappings/RadioButtonRow.js +0 -37
  607. package/src/mappings/RowBodyIcon.js +0 -75
  608. package/src/mappings/RowHeadlineImageCaption.js +0 -167
  609. package/src/mappings/RowHeadlineImageIcon.js +0 -99
  610. package/src/mappings/SafeAreaView.js +0 -33
  611. package/src/mappings/ScrollView.js +0 -30
  612. package/src/mappings/Slider.js +0 -59
  613. package/src/mappings/StarRating.js +0 -42
  614. package/src/mappings/Stepper.js +0 -28
  615. package/src/mappings/Surface.js +0 -13
  616. package/src/mappings/Swiper.js +0 -60
  617. package/src/mappings/SwiperItem.js +0 -8
  618. package/src/mappings/Switch.js +0 -75
  619. package/src/mappings/Text.js +0 -232
  620. package/src/mappings/TextArea.js +0 -52
  621. package/src/mappings/TextField.js +0 -158
  622. package/src/mappings/TextInput.js +0 -208
  623. package/src/mappings/ToggleButton.js +0 -45
  624. package/src/mappings/Touchable.js +0 -12
  625. package/src/mappings/Video.js +0 -74
  626. package/src/mappings/View.js +0 -206
  627. package/src/mappings/WebView.js +0 -18
  628. package/src/styles/DarkTheme.js +0 -26
  629. package/src/styles/DefaultTheme.js +0 -111
  630. package/src/styles/fonts.js +0 -62
  631. package/src/styles/overlay.js +0 -60
  632. package/src/styles/shadow.js +0 -51
  633. package/src/theming.js +0 -3
  634. package/src/utilities.js +0 -102
@@ -1,46 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet, Pressable, ActivityIndicator, Platform, } from "react-native";
3
- import { withTheme } from "../theming";
4
- const FAB = ({ onPress, disabled, loading, iconName = "MaterialIcons/add", style, theme, iconColor, bgColor, size = 50, Icon, ...props }) => {
5
- const backgroundColor = bgColor || theme.colors.primary;
6
- const color = iconColor || "#FFF";
7
- return (React.createElement(View, { style: [
8
- {
9
- width: size,
10
- height: size,
11
- borderRadius: size / 2,
12
- overflow: "hidden",
13
- },
14
- style,
15
- ] },
16
- React.createElement(Pressable, { onPress: onPress, disabled: loading || disabled, android_ripple: {
17
- color: "#333",
18
- radius: size / 4,
19
- }, style: ({ pressed }) => {
20
- return [
21
- styles.button,
22
- {
23
- opacity: pressed || disabled ? 0.75 : 1,
24
- width: size,
25
- height: size,
26
- borderRadius: size / 2,
27
- backgroundColor,
28
- },
29
- ];
30
- }, ...props },
31
- React.createElement(View, null, loading ? (React.createElement(ActivityIndicator, { style: size > 50 ? { marginTop: 2, marginLeft: 2 } : undefined, size: size <= 50 ? "small" : "large", color: color })) : (React.createElement(Icon, { name: iconName, size: size, color: color }))))));
32
- };
33
- const styles = StyleSheet.create({
34
- button: {
35
- backgroundColor: "#5a45ff",
36
- justifyContent: "center",
37
- alignItems: "center",
38
- ...Platform.select({
39
- web: {
40
- cursor: "pointer",
41
- userSelect: "none",
42
- },
43
- }),
44
- },
45
- });
46
- export default withTheme(FAB);
@@ -1,53 +0,0 @@
1
- import * as React from "react";
2
- import { View, TextInput, StyleSheet, } from "react-native";
3
- import { withTheme } from "../theming";
4
- import Config from "./Config";
5
- const FieldSearchBarFull = ({ showIcon, Icon, icon = "search", placeholder = "", style, theme: { colors, typography }, onChange: changeOverride, onSubmit: submitOverride, value, defaultValue, }) => {
6
- const [focused, setIsFocused] = React.useState(false);
7
- const onBlur = () => {
8
- setIsFocused(false);
9
- };
10
- const [internalValue, setInternalValue] = React.useState(value || defaultValue);
11
- React.useEffect(() => {
12
- if (value != null) {
13
- setInternalValue(value);
14
- }
15
- }, [value]);
16
- React.useEffect(() => {
17
- if (defaultValue != null) {
18
- setInternalValue(defaultValue);
19
- }
20
- }, [defaultValue]);
21
- const onChange = React.useCallback((text) => {
22
- changeOverride && changeOverride(text);
23
- }, [changeOverride]);
24
- const onFocus = () => {
25
- setIsFocused(true);
26
- };
27
- const onSubmit = (e) => {
28
- submitOverride && submitOverride(e);
29
- };
30
- const { lineHeight, ...typeStyles } = typography.body2; // eslint-disable-line @typescript-eslint/no-unused-vars
31
- const handleChangeText = (newValue) => {
32
- setInternalValue(newValue);
33
- if (onChange) {
34
- onChange(newValue);
35
- }
36
- };
37
- return (React.createElement(View, { style: [styles.container, style] },
38
- showIcon && (React.createElement(Icon, { name: icon, size: Config.fieldSearchBarFullIconSize, color: focused ? colors.primary : colors.light })),
39
- React.createElement(View, { style: { marginLeft: showIcon ? 12 : 0, flex: 1 } },
40
- React.createElement(TextInput, { clearButtonMode: "while-editing", placeholder: placeholder, value: internalValue, onBlur: onBlur, onFocus: onFocus, onChangeText: handleChangeText, onSubmitEditing: onSubmit, placeholderTextColor: colors.light, style: [
41
- {
42
- color: colors.medium,
43
- },
44
- typeStyles,
45
- ] }))));
46
- };
47
- const styles = StyleSheet.create({
48
- container: {
49
- flexDirection: "row",
50
- alignItems: "center",
51
- },
52
- });
53
- export default withTheme(FieldSearchBarFull);
@@ -1,19 +0,0 @@
1
- import * as React from "react";
2
- import { Text, StyleSheet } from "react-native";
3
- import { extractStyles } from "../utilities";
4
- import Touchable from "./Touchable";
5
- export default function FormRow({ disabled, direction, children, label, style, onPress, ...rest }) {
6
- const { textStyles, viewStyles } = extractStyles(style);
7
- return (React.createElement(Touchable, { disabled: disabled, onPress: onPress, style: [styles.row, { flexDirection: direction }, viewStyles], ...rest },
8
- React.createElement(Text, { style: textStyles }, label),
9
- children));
10
- }
11
- const styles = StyleSheet.create({
12
- row: {
13
- marginLeft: 8,
14
- marginRight: 8,
15
- flexDirection: "row",
16
- justifyContent: "space-between",
17
- alignItems: "center",
18
- },
19
- });
@@ -1,44 +0,0 @@
1
- import * as React from "react";
2
- import { View, Text, StyleSheet, } from "react-native";
3
- import { withTheme } from "../theming";
4
- import Divider from "./Divider";
5
- import Touchable from "./Touchable";
6
- import Config from "./Config";
7
- const Header = ({ Icon, titleTypeStyle, titleColor, title, buttonText, dividerTopMargin, icon, onPress, style, theme: { colors, typography }, }) => {
8
- return (React.createElement(View, { style: [styles.container, style] },
9
- React.createElement(View, { style: styles.topContainer },
10
- React.createElement(Text, { style: [
11
- titleTypeStyle,
12
- {
13
- color: titleColor,
14
- flex: 1,
15
- },
16
- ], numberOfLines: 1 }, title),
17
- onPress && (React.createElement(Touchable, { style: { alignSelf: "center", marginLeft: 12 }, onPress: onPress },
18
- React.createElement(View, { style: styles.buttonContainer },
19
- React.createElement(Text, { style: [
20
- typography.subtitle2,
21
- {
22
- color: colors.light,
23
- marginRight: 8,
24
- },
25
- ], numberOfLines: 1 }, buttonText),
26
- React.createElement(Icon, { name: icon, size: Config.headerIconSize, color: colors.light }))))),
27
- React.createElement(Divider, { style: { marginTop: dividerTopMargin || 16 } })));
28
- };
29
- const styles = StyleSheet.create({
30
- container: {
31
- alignSelf: "stretch",
32
- },
33
- topContainer: {
34
- flexDirection: "row",
35
- justifyContent: "space-between",
36
- alignItems: "center",
37
- },
38
- buttonContainer: {
39
- flexDirection: "row",
40
- justifyContent: "center",
41
- alignItems: "center",
42
- },
43
- });
44
- export default withTheme(Header);
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import { withTheme } from "../theming";
3
- import Header from "./Header";
4
- const HeaderLarge = ({ Icon, title, buttonText, icon, onPress = () => { }, style, theme: { colors, typography }, }) => {
5
- return (React.createElement(Header, { Icon: Icon, titleTypeStyle: typography.headline4, titleColor: colors.strong, title: title, buttonText: buttonText, icon: icon, onPress: onPress, style: style }));
6
- };
7
- export default withTheme(HeaderLarge);
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import { withTheme } from "../theming";
3
- import Header from "./Header";
4
- const HeaderMedium = ({ Icon, title, buttonText, icon, onPress = () => { }, style, theme: { colors, typography }, }) => {
5
- return (React.createElement(Header, { Icon: Icon, titleTypeStyle: typography.headline6, titleColor: colors.strong, title: title, buttonText: buttonText, icon: icon, onPress: onPress, style: style }));
6
- };
7
- export default withTheme(HeaderMedium);
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import { withTheme } from "../theming";
3
- import Header from "./Header";
4
- const HeaderOverline = ({ Icon, title, buttonText, icon, onPress = () => { }, style, theme: { colors, typography }, }) => {
5
- return (React.createElement(Header, { Icon: Icon, titleTypeStyle: typography.overline, titleColor: colors.light, title: title && title.toUpperCase(), buttonText: buttonText, icon: icon, dividerTopMargin: 12, onPress: onPress, style: style }));
6
- };
7
- export default withTheme(HeaderOverline);
@@ -1,35 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet, ActivityIndicator, Pressable, Platform, } from "react-native";
3
- import { withTheme } from "../theming";
4
- const IconButton = ({ Icon, icon, color: customColor, size = 32, disabled = false, loading = false, onPress, theme, style, ...props }) => {
5
- const iconColor = customColor || theme.colors.primary;
6
- return (React.createElement(Pressable, { onPress: onPress, disabled: disabled || loading, style: ({ pressed }) => {
7
- return [
8
- styles.container,
9
- {
10
- opacity: pressed || disabled ? 0.75 : 1,
11
- width: size,
12
- height: size,
13
- alignItems: "center",
14
- justifyContent: "center",
15
- },
16
- style,
17
- ];
18
- }, ...props },
19
- React.createElement(View, null,
20
- icon && !loading ? (React.createElement(Icon, { name: icon, size: size - 2, color: iconColor })) : null,
21
- loading ? React.createElement(ActivityIndicator, { size: "small", color: iconColor }) : null)));
22
- };
23
- const styles = StyleSheet.create({
24
- container: {
25
- alignItems: "center",
26
- justifyContent: "center",
27
- ...Platform.select({
28
- web: {
29
- cursor: "pointer",
30
- userSelect: "none",
31
- },
32
- }),
33
- },
34
- });
35
- export default withTheme(IconButton);
@@ -1,47 +0,0 @@
1
- /* README: Internal Image component used for stuff like Card. DO NOT EXPORT! */
2
- import React from "react";
3
- import { Image as NativeImage, StyleSheet, } from "react-native";
4
- import Config from "./Config";
5
- import AspectRatio from "./AspectRatio";
6
- const generateDimensions = ({ aspectRatio, width, height }) => {
7
- if (aspectRatio && !width && !height) {
8
- return {
9
- aspectRatio,
10
- width: "100%",
11
- };
12
- }
13
- if (aspectRatio && height) {
14
- return {
15
- aspectRatio,
16
- height,
17
- width: aspectRatio * height,
18
- };
19
- }
20
- if (aspectRatio && width) {
21
- return {
22
- aspectRatio,
23
- width,
24
- height: width / aspectRatio,
25
- };
26
- }
27
- return { width, height };
28
- };
29
- const Image = ({ source, resizeMode = "cover", style, ...props }) => {
30
- let imageSource = source === null || source === undefined
31
- ? Config.placeholderImageURL
32
- : source;
33
- const styles = StyleSheet.flatten(style || {});
34
- const { aspectRatio, width, height } = generateDimensions(styles);
35
- if (aspectRatio) {
36
- return (React.createElement(AspectRatio, { style: [style, { width, height, aspectRatio }] },
37
- React.createElement(NativeImage, { ...props, source: imageSource, resizeMode: resizeMode, style: [
38
- style,
39
- {
40
- height: "100%",
41
- width: "100%",
42
- },
43
- ] })));
44
- }
45
- return (React.createElement(NativeImage, { ...props, source: source, resizeMode: resizeMode, style: style }));
46
- };
47
- export default Image;
@@ -1 +0,0 @@
1
- export {};
@@ -1,50 +0,0 @@
1
- import * as React from "react";
2
- import { View } from "react-native";
3
- export function Center({ width = 240, height = 200, children, bgColor, style, ...rest }) {
4
- return (React.createElement(View, { style: [
5
- {
6
- justifyContent: "center",
7
- alignItems: "center",
8
- width,
9
- height,
10
- backgroundColor: bgColor,
11
- },
12
- style,
13
- ], ...rest }, children));
14
- }
15
- export function Circle({ size = 50, bgColor, children, style, ...rest }) {
16
- const borderRadius = 1000;
17
- return (React.createElement(Center, { width: size, height: size, bgColor: bgColor, style: [
18
- style,
19
- { backgroundColor: bgColor, borderRadius, overflow: "hidden" },
20
- ], ...rest }, children));
21
- }
22
- export function Square({ size = 50, bgColor, children, style, ...rest }) {
23
- return (React.createElement(Center, { style: style, width: size, height: size, bgColor: bgColor, ...rest }, children));
24
- }
25
- export function Row({ justifyContent, alignItems, children, style, ...rest }) {
26
- return (React.createElement(View, { style: [
27
- style,
28
- {
29
- alignItems,
30
- flexDirection: "row",
31
- justifyContent: justifyContent,
32
- },
33
- ], ...rest }, children));
34
- }
35
- export function Spacer({ top = 8, right = 8, bottom = 8, left = 8, children, style, ...rest }) {
36
- return (React.createElement(View, { style: [
37
- style,
38
- {
39
- paddingRight: right,
40
- paddingTop: top,
41
- paddingLeft: left,
42
- paddingBottom: bottom,
43
- },
44
- ], ...rest }, children));
45
- }
46
- export function Stack({ children, justifyContent = "flex-start", alignItems = "flex-start", style, ...rest }) {
47
- return (
48
- // style must go first since we don't want justifyContent, alignItems overridden
49
- React.createElement(View, { style: [style, { justifyContent, alignItems }], ...rest }, children));
50
- }
@@ -1,49 +0,0 @@
1
- import React, { useEffect, useState } from "react";
2
- import { TextInput } from "react-native";
3
- import { isString, isNumber, isNaN } from "lodash";
4
- const NumberInput = ({ onChangeText, value, defaultValue, ...props }) => {
5
- const [currentStringNumberValue, setCurrentStringNumberValue] = useState("0");
6
- const formatValueToStringNumber = (valueToFormat) => {
7
- if (valueToFormat != null) {
8
- if (isString(valueToFormat) && valueToFormat !== "") {
9
- if (/^0[1-9]$/.test(valueToFormat)) {
10
- return valueToFormat.slice(1);
11
- }
12
- else if (/^[+-]?([0-9]+\.?[0-9]*|\.[0-9]+)$/.test(valueToFormat)) {
13
- return valueToFormat;
14
- }
15
- else {
16
- return currentStringNumberValue;
17
- }
18
- }
19
- else if (isNumber(valueToFormat) && !isNaN(valueToFormat)) {
20
- return valueToFormat.toString();
21
- }
22
- }
23
- return "0";
24
- };
25
- // set currentStringNumberValue as defaultValue prop if there is a differnce on first render only
26
- useEffect(() => {
27
- const defaultStringNumberValue = formatValueToStringNumber(defaultValue);
28
- if (currentStringNumberValue !== defaultStringNumberValue) {
29
- setCurrentStringNumberValue(defaultStringNumberValue);
30
- }
31
- // eslint-disable-next-line react-hooks/exhaustive-deps
32
- }, []);
33
- const handleChangeText = (newValue) => {
34
- const newStringNumberValue = formatValueToStringNumber(newValue);
35
- const number = parseFloat(newStringNumberValue);
36
- setCurrentStringNumberValue(newStringNumberValue);
37
- onChangeText?.(number);
38
- };
39
- // run handleChangeText with value prop only when value prop changes (and first render to reset currentStringNumberValue)
40
- useEffect(() => {
41
- const nextStringNumberValue = formatValueToStringNumber(value);
42
- if (currentStringNumberValue !== nextStringNumberValue) {
43
- handleChangeText(nextStringNumberValue);
44
- }
45
- // eslint-disable-next-line react-hooks/exhaustive-deps
46
- }, [value]);
47
- return (React.createElement(TextInput, { keyboardType: "numeric", value: currentStringNumberValue, onChangeText: handleChangeText, ...props }));
48
- };
49
- export default NumberInput;
@@ -1,266 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet, Text, Platform, Dimensions, } from "react-native";
3
- import { omit, pickBy, identity, isObject } from "lodash";
4
- import { SafeAreaView } from "react-native-safe-area-context";
5
- import { Picker as NativePicker } from "@react-native-picker/picker";
6
- import { withTheme } from "../../theming";
7
- import Portal from "../Portal/Portal";
8
- import Button from "../DeprecatedButton";
9
- import Touchable from "../Touchable";
10
- import { extractStyles, extractBorderAndMarginStyles, borderStyleNames, marginStyleNames, } from "../../utilities";
11
- function normalizeOptions(options) {
12
- if (options.length === 0) {
13
- return [];
14
- }
15
- if (typeof options[0] === ("string" || "number")) {
16
- return options.map((option) => ({
17
- label: String(option),
18
- value: String(option),
19
- }));
20
- }
21
- if (isObject(options[0]) &&
22
- options[0].value !== null &&
23
- options[0].label !== null) {
24
- return options.map((option) => {
25
- return {
26
- label: String(option.label),
27
- value: String(option.value),
28
- };
29
- });
30
- }
31
- throw new Error('Picker options must be either an array of strings or array of { "label": string; "value": string; } objects.');
32
- }
33
- const { width: deviceWidth, height: deviceHeight } = Dimensions.get("screen");
34
- const isIos = Platform.OS === "ios";
35
- const unstyledColor = "rgba(165, 173, 183, 1)";
36
- const disabledColor = "rgb(240, 240, 240)";
37
- const errorColor = "rgba(255, 69, 100, 1)";
38
- const Picker = ({ error, options = [], onValueChange, defaultValue, Icon, style, placeholder, value, disabled = false, theme, assistiveText, label, iconColor = unstyledColor, iconSize = 24, leftIconMode = "inset", leftIconName, placeholderTextColor = unstyledColor, rightIconName, type = "solid", }) => {
39
- const androidPickerRef = React.useRef(undefined);
40
- const [internalValue, setInternalValue] = React.useState(value || defaultValue);
41
- const [pickerVisible, setPickerVisible] = React.useState(false);
42
- const togglePickerVisible = () => {
43
- setPickerVisible(!pickerVisible);
44
- };
45
- React.useEffect(() => {
46
- if (value != null) {
47
- setInternalValue(value);
48
- }
49
- }, [value]);
50
- React.useEffect(() => {
51
- if (defaultValue != null) {
52
- setInternalValue(defaultValue);
53
- }
54
- }, [defaultValue]);
55
- React.useEffect(() => {
56
- if (pickerVisible && androidPickerRef.current) {
57
- androidPickerRef?.current?.focus();
58
- }
59
- }, [pickerVisible, androidPickerRef]);
60
- const normalizedOptions = normalizeOptions(options);
61
- const pickerOptions = placeholder
62
- ? [{ value: placeholder, label: placeholder }, ...normalizedOptions]
63
- : normalizedOptions;
64
- const { colors } = theme;
65
- const { viewStyles, textStyles } = extractStyles(style);
66
- const additionalBorderStyles = ["backgroundColor"];
67
- const additionalMarginStyles = [
68
- "bottom",
69
- "height",
70
- "left",
71
- "maxHeight",
72
- "maxWidth",
73
- "minHeight",
74
- "minWidth",
75
- "overflow",
76
- "position",
77
- "right",
78
- "top",
79
- "width",
80
- "zIndex",
81
- ];
82
- const { borderStyles: extractedBorderStyles, marginStyles: extractedMarginStyles, } = extractBorderAndMarginStyles(viewStyles, additionalBorderStyles, additionalMarginStyles);
83
- const borderStyles = {
84
- ...{
85
- ...(type === "solid"
86
- ? {
87
- borderTopLeftRadius: 5,
88
- borderTopRightRadius: 5,
89
- borderBottomRightRadius: 5,
90
- borderBottomLeftRadius: 5,
91
- borderTopWidth: 1,
92
- borderRightWidth: 1,
93
- borderLeftWidth: 1,
94
- }
95
- : {}),
96
- borderBottomWidth: 1,
97
- borderColor: unstyledColor,
98
- borderStyle: "solid",
99
- },
100
- ...extractedBorderStyles,
101
- ...(error ? { borderColor: errorColor } : {}),
102
- ...(disabled
103
- ? { borderColor: "transparent", backgroundColor: disabledColor }
104
- : {}),
105
- };
106
- const marginStyles = {
107
- height: 60,
108
- ...extractedMarginStyles,
109
- };
110
- const stylesWithoutBordersAndMargins = omit(viewStyles, [
111
- ...borderStyleNames,
112
- ...marginStyleNames,
113
- ...additionalBorderStyles,
114
- ...additionalMarginStyles,
115
- ]);
116
- const selectedLabel = internalValue &&
117
- (pickerOptions.find((option) => option.value === internalValue)?.label ??
118
- internalValue);
119
- const labelText = label ? (React.createElement(Text, { style: {
120
- textAlign: textStyles.textAlign,
121
- color: unstyledColor,
122
- fontSize: 12,
123
- paddingBottom: 4,
124
- } }, label)) : null;
125
- const leftIconOutset = leftIconMode === "outset";
126
- const leftIcon = leftIconName ? (React.createElement(Icon, { name: leftIconName, color: disabled ? unstyledColor : iconColor, size: iconSize, style: {
127
- marginRight: 4,
128
- marginLeft: 4,
129
- } })) : null;
130
- const rightIcon = rightIconName ? (React.createElement(Icon, { name: rightIconName, color: disabled ? unstyledColor : iconColor, size: iconSize, style: {
131
- marginRight: -10,
132
- marginLeft: 8,
133
- } })) : null;
134
- const textAlign = textStyles?.textAlign;
135
- const calculateLeftPadding = () => {
136
- if (leftIconOutset) {
137
- if (textAlign === "center") {
138
- return iconSize - Math.abs(8 - iconSize);
139
- }
140
- return iconSize + 8;
141
- }
142
- return 0;
143
- };
144
- const assistiveTextLabel = assistiveText ? (React.createElement(Text, { style: {
145
- textAlign,
146
- width: "100%",
147
- paddingLeft: calculateLeftPadding(),
148
- color: unstyledColor,
149
- fontSize: 12,
150
- paddingTop: 4,
151
- } }, assistiveText)) : null;
152
- const primaryTextStyle = {
153
- color: unstyledColor,
154
- fontSize: 14,
155
- ...pickBy(textStyles, identity),
156
- ...(placeholder === internalValue ? { color: placeholderTextColor } : {}),
157
- ...(disabled ? { color: unstyledColor } : {}),
158
- };
159
- const handleValueChange = (newValue, itemIndex) => {
160
- if (!placeholder || itemIndex > 0) {
161
- onValueChange?.(newValue, itemIndex);
162
- }
163
- setInternalValue(newValue);
164
- };
165
- return (
166
- /* marginsContainer */
167
- React.createElement(View, { style: [styles.marginsContainer, marginStyles] },
168
- React.createElement(Touchable, { disabled: disabled, onPress: togglePickerVisible, style: styles.touchableContainer },
169
- React.createElement(View, { pointerEvents: "none", style: [
170
- styles.outsetContainer,
171
- stylesWithoutBordersAndMargins,
172
- !leftIconOutset ? borderStyles : {},
173
- ] },
174
- leftIcon,
175
- React.createElement(View, { style: [
176
- styles.insetContainer,
177
- leftIconOutset ? borderStyles : {},
178
- ] },
179
- React.createElement(View, { style: styles.primaryTextContainer },
180
- labelText,
181
- React.createElement(Text, { style: primaryTextStyle }, String(selectedLabel ?? placeholder))),
182
- rightIcon)),
183
- assistiveTextLabel),
184
- isIos && pickerVisible ? (React.createElement(Portal, null,
185
- React.createElement(View, { style: [
186
- styles.iosPicker,
187
- {
188
- backgroundColor: colors.divider,
189
- },
190
- ] },
191
- React.createElement(SafeAreaView, { style: styles.iosSafeArea },
192
- React.createElement(Button, { Icon: Icon, type: "text", onPress: togglePickerVisible, style: styles.iosButton }, "Close"),
193
- React.createElement(NativePicker, { style: styles.iosNativePicker, selectedValue: internalValue, onValueChange: handleValueChange }, pickerOptions.map((option) => (React.createElement(NativePicker.Item, { label: option.label, value: option.value, key: option.value })))))))) : null,
194
- !isIos && pickerVisible ? (React.createElement(NativePicker, { enabled: pickerVisible, selectedValue: internalValue, onValueChange: handleValueChange, style: styles.nonIosPicker, ref: androidPickerRef, onBlur: () => setPickerVisible(false) }, pickerOptions.map((option) => (React.createElement(NativePicker.Item, { label: option.label, value: option.value, key: option.value }))))) : null));
195
- };
196
- export default withTheme(Picker);
197
- const styles = StyleSheet.create({
198
- marginsContainer: {
199
- alignSelf: "stretch",
200
- alignItems: "center",
201
- width: "100%",
202
- maxWidth: deviceWidth,
203
- },
204
- touchableContainer: {
205
- flex: 1,
206
- height: "100%",
207
- width: "100%",
208
- alignSelf: "stretch",
209
- alignItems: "center",
210
- },
211
- outsetContainer: {
212
- flex: 1,
213
- height: "100%",
214
- width: "100%",
215
- flexDirection: "row",
216
- alignItems: "center",
217
- justifyContent: "space-between",
218
- },
219
- insetContainer: {
220
- flex: 1,
221
- height: "100%",
222
- width: "100%",
223
- flexDirection: "row",
224
- alignItems: "center",
225
- justifyContent: "space-between",
226
- paddingLeft: 12,
227
- paddingRight: 12,
228
- },
229
- primaryTextContainer: {
230
- flex: 1,
231
- },
232
- iosPicker: {
233
- position: "absolute",
234
- bottom: 0,
235
- left: 0,
236
- right: 0,
237
- flexDirection: "row",
238
- justifyContent: "center",
239
- width: "100%",
240
- maxWidth: deviceWidth,
241
- maxHeight: deviceHeight,
242
- },
243
- iosSafeArea: {
244
- backgroundColor: "white",
245
- flexDirection: "column",
246
- width: "100%",
247
- maxWidth: deviceWidth,
248
- },
249
- iosButton: {
250
- alignSelf: "flex-end",
251
- },
252
- iosNativePicker: {
253
- backgroundColor: "white",
254
- },
255
- nonIosPicker: {
256
- opacity: 0,
257
- position: "absolute",
258
- top: 0,
259
- left: 0,
260
- right: 0,
261
- bottom: 0,
262
- width: "100%",
263
- maxWidth: deviceWidth,
264
- maxHeight: deviceHeight,
265
- },
266
- });