@draftbit/core 48.4.8-550850.2 → 48.4.8-f6d6b8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/package.json +3 -3
  2. package/src/Provider.js +0 -10
  3. package/src/Provider.js.map +0 -1
  4. package/src/components/AccordionGroup.js +0 -45
  5. package/src/components/AccordionGroup.js.map +0 -1
  6. package/src/components/ActionSheet/ActionSheet.js +0 -46
  7. package/src/components/ActionSheet/ActionSheet.js.map +0 -1
  8. package/src/components/ActionSheet/ActionSheetCancel.js +0 -7
  9. package/src/components/ActionSheet/ActionSheetCancel.js.map +0 -1
  10. package/src/components/ActionSheet/ActionSheetItem.js +0 -31
  11. package/src/components/ActionSheet/ActionSheetItem.js.map +0 -1
  12. package/src/components/ActionSheet/index.js +0 -4
  13. package/src/components/ActionSheet/index.js.map +0 -1
  14. package/src/components/AspectRatio.js +0 -19
  15. package/src/components/AspectRatio.js.map +0 -1
  16. package/src/components/BottomSheet/BottomSheet.js +0 -72
  17. package/src/components/BottomSheet/BottomSheet.js.map +0 -1
  18. package/src/components/BottomSheet/BottomSheetComponent.js +0 -438
  19. package/src/components/BottomSheet/BottomSheetComponent.js.map +0 -1
  20. package/src/components/BottomSheet/index.js +0 -2
  21. package/src/components/BottomSheet/index.js.map +0 -1
  22. package/src/components/Button.js +0 -121
  23. package/src/components/Button.js.map +0 -1
  24. package/src/components/Checkbox/Checkbox.js +0 -63
  25. package/src/components/Checkbox/Checkbox.js.map +0 -1
  26. package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
  27. package/src/components/Checkbox/CheckboxGroupRow.js.map +0 -1
  28. package/src/components/Checkbox/CheckboxRow.js +0 -78
  29. package/src/components/Checkbox/CheckboxRow.js.map +0 -1
  30. package/src/components/Checkbox/context.js +0 -15
  31. package/src/components/Checkbox/context.js.map +0 -1
  32. package/src/components/Checkbox/index.js +0 -3
  33. package/src/components/Checkbox/index.js.map +0 -1
  34. package/src/components/Config.js +0 -65
  35. package/src/components/Config.js.map +0 -1
  36. package/src/components/DatePicker/DatePicker.js +0 -384
  37. package/src/components/DatePicker/DatePicker.js.map +0 -1
  38. package/src/components/DatePicker/DatePickerComponent.js +0 -14
  39. package/src/components/DatePicker/DatePickerComponent.js.map +0 -1
  40. package/src/components/DatePicker/DatePickerComponent.web.js +0 -31
  41. package/src/components/DatePicker/DatePickerComponent.web.js.map +0 -1
  42. package/src/components/DatePicker/DatePickerComponentType.js +0 -2
  43. package/src/components/DatePicker/DatePickerComponentType.js.map +0 -1
  44. package/src/components/DeckSwiper/DeckSwiper.js +0 -91
  45. package/src/components/DeckSwiper/DeckSwiper.js.map +0 -1
  46. package/src/components/DeckSwiper/DeckSwiperCard.js +0 -21
  47. package/src/components/DeckSwiper/DeckSwiperCard.js.map +0 -1
  48. package/src/components/DeckSwiper/index.js +0 -3
  49. package/src/components/DeckSwiper/index.js.map +0 -1
  50. package/src/components/Divider.js +0 -14
  51. package/src/components/Divider.js.map +0 -1
  52. package/src/components/Elevation.js +0 -21
  53. package/src/components/Elevation.js.map +0 -1
  54. package/src/components/FormRow.js +0 -20
  55. package/src/components/FormRow.js.map +0 -1
  56. package/src/components/IconButton.js +0 -36
  57. package/src/components/IconButton.js.map +0 -1
  58. package/src/components/Image.js +0 -48
  59. package/src/components/Image.js.map +0 -1
  60. package/src/components/Layout/AspectRatio.js +0 -7
  61. package/src/components/Layout/AspectRatio.js.map +0 -1
  62. package/src/components/Layout/Center.js +0 -15
  63. package/src/components/Layout/Center.js.map +0 -1
  64. package/src/components/Layout/Circle.js +0 -16
  65. package/src/components/Layout/Circle.js.map +0 -1
  66. package/src/components/Layout/HStack.js +0 -12
  67. package/src/components/Layout/HStack.js.map +0 -1
  68. package/src/components/Layout/LayoutCommon.js +0 -8
  69. package/src/components/Layout/LayoutCommon.js.map +0 -1
  70. package/src/components/Layout/Spacer.js +0 -15
  71. package/src/components/Layout/Spacer.js.map +0 -1
  72. package/src/components/Layout/Square.js +0 -25
  73. package/src/components/Layout/Square.js.map +0 -1
  74. package/src/components/Layout/VStack.js +0 -12
  75. package/src/components/Layout/VStack.js.map +0 -1
  76. package/src/components/Layout/ZStack.js +0 -20
  77. package/src/components/Layout/ZStack.js.map +0 -1
  78. package/src/components/Layout/index.js +0 -9
  79. package/src/components/Layout/index.js.map +0 -1
  80. package/src/components/Markdown.js +0 -11
  81. package/src/components/Markdown.js.map +0 -1
  82. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js +0 -2
  83. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js.map +0 -1
  84. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +0 -126
  85. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +0 -1
  86. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +0 -93
  87. package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +0 -1
  88. package/src/components/MediaPlayer/AudioPlayer/index.js +0 -15
  89. package/src/components/MediaPlayer/AudioPlayer/index.js.map +0 -1
  90. package/src/components/MediaPlayer/MediaPlaybackWrapper.js +0 -42
  91. package/src/components/MediaPlayer/MediaPlaybackWrapper.js.map +0 -1
  92. package/src/components/MediaPlayer/MediaPlayerCommon.js +0 -24
  93. package/src/components/MediaPlayer/MediaPlayerCommon.js.map +0 -1
  94. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +0 -75
  95. package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +0 -1
  96. package/src/components/MediaPlayer/VideoPlayer/index.js +0 -2
  97. package/src/components/MediaPlayer/VideoPlayer/index.js.map +0 -1
  98. package/src/components/NumberInput.js +0 -60
  99. package/src/components/NumberInput.js.map +0 -1
  100. package/src/components/Picker/Picker.js +0 -288
  101. package/src/components/Picker/Picker.js.map +0 -1
  102. package/src/components/Picker/PickerComponent.android.js +0 -70
  103. package/src/components/Picker/PickerComponent.android.js.map +0 -1
  104. package/src/components/Picker/PickerComponent.ios.js +0 -80
  105. package/src/components/Picker/PickerComponent.ios.js.map +0 -1
  106. package/src/components/Picker/PickerComponent.web.js +0 -71
  107. package/src/components/Picker/PickerComponent.web.js.map +0 -1
  108. package/src/components/Picker/PickerTypes.js +0 -2
  109. package/src/components/Picker/PickerTypes.js.map +0 -1
  110. package/src/components/PinInput/CustomPinInputCell.js +0 -11
  111. package/src/components/PinInput/CustomPinInputCell.js.map +0 -1
  112. package/src/components/PinInput/PinInput.js +0 -70
  113. package/src/components/PinInput/PinInput.js.map +0 -1
  114. package/src/components/PinInput/PinInputText.js +0 -14
  115. package/src/components/PinInput/PinInputText.js.map +0 -1
  116. package/src/components/PinInput/index.js +0 -4
  117. package/src/components/PinInput/index.js.map +0 -1
  118. package/src/components/Portal/Portal.js +0 -36
  119. package/src/components/Portal/Portal.js.map +0 -1
  120. package/src/components/Portal/PortalConsumer.js +0 -28
  121. package/src/components/Portal/PortalConsumer.js.map +0 -1
  122. package/src/components/Portal/PortalHost.js +0 -108
  123. package/src/components/Portal/PortalHost.js.map +0 -1
  124. package/src/components/Portal/PortalManager.js +0 -33
  125. package/src/components/Portal/PortalManager.js.map +0 -1
  126. package/src/components/Pressable.js +0 -13
  127. package/src/components/Pressable.js.map +0 -1
  128. package/src/components/Progress/CircularProgress/CircularProgress.js +0 -103
  129. package/src/components/Progress/CircularProgress/CircularProgress.js.map +0 -1
  130. package/src/components/Progress/CircularProgress/index.js +0 -14
  131. package/src/components/Progress/CircularProgress/index.js.map +0 -1
  132. package/src/components/Progress/IndeterminateProgress.js +0 -39
  133. package/src/components/Progress/IndeterminateProgress.js.map +0 -1
  134. package/src/components/Progress/LinearProgress/LinearProgress.js +0 -56
  135. package/src/components/Progress/LinearProgress/LinearProgress.js.map +0 -1
  136. package/src/components/Progress/LinearProgress/index.js +0 -14
  137. package/src/components/Progress/LinearProgress/index.js.map +0 -1
  138. package/src/components/Progress/ProgressCommon.js +0 -2
  139. package/src/components/Progress/ProgressCommon.js.map +0 -1
  140. package/src/components/ProgressIndicator.js +0 -28
  141. package/src/components/ProgressIndicator.js.map +0 -1
  142. package/src/components/RadioButton/RadioButton.js +0 -18
  143. package/src/components/RadioButton/RadioButton.js.map +0 -1
  144. package/src/components/RadioButton/RadioButtonGroup.js +0 -44
  145. package/src/components/RadioButton/RadioButtonGroup.js.map +0 -1
  146. package/src/components/RadioButton/RadioButtonRow.js +0 -77
  147. package/src/components/RadioButton/RadioButtonRow.js.map +0 -1
  148. package/src/components/RadioButton/context.js +0 -15
  149. package/src/components/RadioButton/context.js.map +0 -1
  150. package/src/components/RadioButton/index.js +0 -4
  151. package/src/components/RadioButton/index.js.map +0 -1
  152. package/src/components/Row.js +0 -49
  153. package/src/components/Row.js.map +0 -1
  154. package/src/components/SVG.js +0 -14
  155. package/src/components/SVG.js.map +0 -1
  156. package/src/components/ScreenContainer.js +0 -36
  157. package/src/components/ScreenContainer.js.map +0 -1
  158. package/src/components/SectionList/SectionHeader.js +0 -14
  159. package/src/components/SectionList/SectionHeader.js.map +0 -1
  160. package/src/components/SectionList/SectionList.js +0 -101
  161. package/src/components/SectionList/SectionList.js.map +0 -1
  162. package/src/components/SectionList/index.js +0 -3
  163. package/src/components/SectionList/index.js.map +0 -1
  164. package/src/components/Shadow.js +0 -26
  165. package/src/components/Shadow.js.map +0 -1
  166. package/src/components/Slider.js +0 -64
  167. package/src/components/Slider.js.map +0 -1
  168. package/src/components/StarRating.js +0 -51
  169. package/src/components/StarRating.js.map +0 -1
  170. package/src/components/StepIndicator.js +0 -347
  171. package/src/components/StepIndicator.js.map +0 -1
  172. package/src/components/Stepper.js +0 -42
  173. package/src/components/Stepper.js.map +0 -1
  174. package/src/components/Surface.js +0 -33
  175. package/src/components/Surface.js.map +0 -1
  176. package/src/components/SwipeableItem/SwipeableItem.js +0 -119
  177. package/src/components/SwipeableItem/SwipeableItem.js.map +0 -1
  178. package/src/components/SwipeableItem/SwipeableItemButton.js +0 -6
  179. package/src/components/SwipeableItem/SwipeableItemButton.js.map +0 -1
  180. package/src/components/SwipeableItem/SwipeableItemCommon.js +0 -44
  181. package/src/components/SwipeableItem/SwipeableItemCommon.js.map +0 -1
  182. package/src/components/SwipeableItem/SwipeableList.js +0 -29
  183. package/src/components/SwipeableItem/SwipeableList.js.map +0 -1
  184. package/src/components/SwipeableItem/index.js +0 -4
  185. package/src/components/SwipeableItem/index.js.map +0 -1
  186. package/src/components/Swiper/Swiper.js +0 -74
  187. package/src/components/Swiper/Swiper.js.map +0 -1
  188. package/src/components/Swiper/SwiperItem.js +0 -10
  189. package/src/components/Swiper/SwiperItem.js.map +0 -1
  190. package/src/components/Swiper/index.js +0 -3
  191. package/src/components/Swiper/index.js.map +0 -1
  192. package/src/components/Switch.js +0 -57
  193. package/src/components/Switch.js.map +0 -1
  194. package/src/components/TabView/TabView.js +0 -55
  195. package/src/components/TabView/TabView.js.map +0 -1
  196. package/src/components/TabView/TabViewItem.js +0 -12
  197. package/src/components/TabView/TabViewItem.js.map +0 -1
  198. package/src/components/TabView/index.js +0 -3
  199. package/src/components/TabView/index.js.map +0 -1
  200. package/src/components/Table/Table.js +0 -94
  201. package/src/components/Table/Table.js.map +0 -1
  202. package/src/components/Table/TableCell.js +0 -34
  203. package/src/components/Table/TableCell.js.map +0 -1
  204. package/src/components/Table/TableCommon.js +0 -13
  205. package/src/components/Table/TableCommon.js.map +0 -1
  206. package/src/components/Table/TableRow.js +0 -40
  207. package/src/components/Table/TableRow.js.map +0 -1
  208. package/src/components/Table/index.js +0 -4
  209. package/src/components/Table/index.js.map +0 -1
  210. package/src/components/Text.js +0 -34
  211. package/src/components/Text.js.map +0 -1
  212. package/src/components/TextField.js +0 -430
  213. package/src/components/TextField.js.map +0 -1
  214. package/src/components/TextInput.js +0 -15
  215. package/src/components/TextInput.js.map +0 -1
  216. package/src/components/Touchable.js +0 -13
  217. package/src/components/Touchable.js.map +0 -1
  218. package/src/components/Touchable.web.js +0 -3
  219. package/src/components/Touchable.web.js.map +0 -1
  220. package/src/components/Typography.js +0 -37
  221. package/src/components/Typography.js.map +0 -1
  222. package/src/components/YoutubePlayer/YoutubePlayer.js +0 -21
  223. package/src/components/YoutubePlayer/YoutubePlayer.js.map +0 -1
  224. package/src/components/YoutubePlayer/YoutubePlayer.native.js +0 -10
  225. package/src/components/YoutubePlayer/YoutubePlayer.native.js.map +0 -1
  226. package/src/components/YoutubePlayer/YoutubePlayerProps.js +0 -2
  227. package/src/components/YoutubePlayer/YoutubePlayerProps.js.map +0 -1
  228. package/src/components/YoutubePlayer/index.js +0 -2
  229. package/src/components/YoutubePlayer/index.js.map +0 -1
  230. package/src/components/useAuthState.js +0 -35
  231. package/src/components/useAuthState.js.map +0 -1
  232. package/src/constants.js +0 -11
  233. package/src/constants.js.map +0 -1
  234. package/src/deprecated-components/AccordionItem.js +0 -36
  235. package/src/deprecated-components/AccordionItem.js.map +0 -1
  236. package/src/deprecated-components/AnimatedCircularProgress.js +0 -47
  237. package/src/deprecated-components/AnimatedCircularProgress.js.map +0 -1
  238. package/src/deprecated-components/AvatarEdit.js +0 -34
  239. package/src/deprecated-components/AvatarEdit.js.map +0 -1
  240. package/src/deprecated-components/Banner.js +0 -113
  241. package/src/deprecated-components/Banner.js.map +0 -1
  242. package/src/deprecated-components/Card.js +0 -61
  243. package/src/deprecated-components/Card.js.map +0 -1
  244. package/src/deprecated-components/CheckboxGroup.js +0 -25
  245. package/src/deprecated-components/CheckboxGroup.js.map +0 -1
  246. package/src/deprecated-components/CircleImage.js +0 -12
  247. package/src/deprecated-components/CircleImage.js.map +0 -1
  248. package/src/deprecated-components/CircularProgress.js +0 -85
  249. package/src/deprecated-components/CircularProgress.js.map +0 -1
  250. package/src/deprecated-components/Container.js +0 -47
  251. package/src/deprecated-components/Container.js.map +0 -1
  252. package/src/deprecated-components/DeprecatedButton.js +0 -87
  253. package/src/deprecated-components/DeprecatedButton.js.map +0 -1
  254. package/src/deprecated-components/DeprecatedCardWrapper.js +0 -22
  255. package/src/deprecated-components/DeprecatedCardWrapper.js.map +0 -1
  256. package/src/deprecated-components/DeprecatedFAB.js +0 -118
  257. package/src/deprecated-components/DeprecatedFAB.js.map +0 -1
  258. package/src/deprecated-components/FAB.js +0 -50
  259. package/src/deprecated-components/FAB.js.map +0 -1
  260. package/src/deprecated-components/FieldSearchBarFull.js +0 -57
  261. package/src/deprecated-components/FieldSearchBarFull.js.map +0 -1
  262. package/src/deprecated-components/Layout.js +0 -69
  263. package/src/deprecated-components/Layout.js.map +0 -1
  264. package/src/deprecated-components/ProgressBar.js +0 -122
  265. package/src/deprecated-components/ProgressBar.js.map +0 -1
  266. package/src/deprecated-components/ProgressCircle.js +0 -17
  267. package/src/deprecated-components/ProgressCircle.js.map +0 -1
  268. package/src/deprecated-components/RadioButtonFieldGroup.js +0 -21
  269. package/src/deprecated-components/RadioButtonFieldGroup.js.map +0 -1
  270. package/src/deprecated-components/RowBodyIcon.js +0 -12
  271. package/src/deprecated-components/RowBodyIcon.js.map +0 -1
  272. package/src/deprecated-components/RowHeadlineImageCaption.js +0 -16
  273. package/src/deprecated-components/RowHeadlineImageCaption.js.map +0 -1
  274. package/src/deprecated-components/RowHeadlineImageIcon.js +0 -18
  275. package/src/deprecated-components/RowHeadlineImageIcon.js.map +0 -1
  276. package/src/deprecated-components/ToggleButton.js +0 -43
  277. package/src/deprecated-components/ToggleButton.js.map +0 -1
  278. package/src/hooks.js +0 -25
  279. package/src/hooks.js.map +0 -1
  280. package/src/index.js +0 -66
  281. package/src/index.js.map +0 -1
  282. package/src/interfaces/Icon.js +0 -9
  283. package/src/interfaces/Icon.js.map +0 -1
  284. package/src/styles/DarkTheme.js +0 -27
  285. package/src/styles/DarkTheme.js.map +0 -1
  286. package/src/styles/DefaultTheme.js +0 -112
  287. package/src/styles/DefaultTheme.js.map +0 -1
  288. package/src/styles/fonts.js +0 -63
  289. package/src/styles/fonts.js.map +0 -1
  290. package/src/styles/overlay.js +0 -61
  291. package/src/styles/overlay.js.map +0 -1
  292. package/src/styles/shadow.js +0 -52
  293. package/src/styles/shadow.js.map +0 -1
  294. package/src/theming.js +0 -4
  295. package/src/theming.js.map +0 -1
  296. package/src/utilities.js +0 -180
  297. package/src/utilities.js.map +0 -1
@@ -1,22 +0,0 @@
1
- import React from "react";
2
- import { withTheme } from "../theming";
3
- import Touchable from "../components/Touchable";
4
- const getWidth = (numColumns) => {
5
- switch (numColumns) {
6
- case 1:
7
- return "33%";
8
- case 2:
9
- return "50%";
10
- default:
11
- return "100%";
12
- }
13
- };
14
- /**
15
- * @deprecated DEPRECATED
16
- */
17
- const Card = ({ numColumns = 3, children, onPress, style, ...rest }) => {
18
- const width = getWidth(numColumns);
19
- return (React.createElement(Touchable, { disabled: !onPress, onPress: onPress, style: [style, { width }], ...rest }, children));
20
- };
21
- export default withTheme(Card);
22
- //# sourceMappingURL=DeprecatedCardWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeprecatedCardWrapper.js","sourceRoot":"","sources":["DeprecatedCardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAYhD,MAAM,QAAQ,GAAG,CAAC,UAAkB,EAAE,EAAE;IACtC,QAAQ,UAAU,EAAE;QAClB,KAAK,CAAC;YACJ,OAAO,KAAK,CAAC;QACf,KAAK,CAAC;YACJ,OAAO,KAAK,CAAC;QACf;YACE,OAAO,MAAM,CAAC;KACjB;AACH,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,IAAI,GAA6C,CAAC,EACtD,UAAU,GAAG,CAAC,EACd,QAAQ,EACR,OAAO,EACP,KAAK,EACL,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;IACnC,OAAO,CACL,oBAAC,SAAS,IACR,QAAQ,EAAE,CAAC,OAAO,EAClB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,KACrB,IAAI,IAEP,QAAQ,CACC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,IAAI,CAAC,CAAC"}
@@ -1,118 +0,0 @@
1
- import * as React from "react";
2
- import { ActivityIndicator, View, StyleSheet, Pressable, } from "react-native";
3
- import color from "color";
4
- import Config from "../components/Config";
5
- import Text from "../components/Text";
6
- import Elevation from "../components/Elevation";
7
- import { withTheme } from "../theming";
8
- /**
9
- * @deprecated DEPRECATED
10
- */
11
- const FAB = ({ Icon, icon, disabled = false, type = "solid", loading = false, color: colorOverride, label, onPress, elevation = 0, style, theme: { colors, disabledOpacity, roundness, typography }, ...rest }) => {
12
- let backgroundColor, borderColor, textColor, borderWidth;
13
- const buttonColor = colorOverride || colors.primary;
14
- if (type === "standard" || type === "extended" || type === "fixed") {
15
- backgroundColor = buttonColor;
16
- if (disabled) {
17
- textColor = color(colors.surface).alpha(disabledOpacity).rgb().string();
18
- }
19
- else {
20
- textColor = colors.surface;
21
- }
22
- }
23
- else {
24
- backgroundColor = "transparent";
25
- if (disabled) {
26
- textColor = color(buttonColor).alpha(disabledOpacity).rgb().string();
27
- }
28
- else {
29
- textColor = buttonColor;
30
- }
31
- }
32
- if (type === "outline") {
33
- if (disabled) {
34
- borderColor = color(buttonColor).alpha(disabledOpacity).rgb().string();
35
- }
36
- else {
37
- borderColor = buttonColor;
38
- }
39
- borderWidth = StyleSheet.hairlineWidth;
40
- }
41
- else {
42
- borderColor = "transparent";
43
- borderWidth = 0;
44
- }
45
- const buttonStyle = {
46
- backgroundColor,
47
- borderColor,
48
- borderWidth,
49
- borderRadius: roundness,
50
- alignItems: "center",
51
- justifyContent: "center",
52
- };
53
- const buttonStyles = [styles.button, buttonStyle];
54
- const contentStyle = [styles.content];
55
- const textStyle = {
56
- textAlign: "center",
57
- color: textColor,
58
- };
59
- const iconStyle = [
60
- styles.icon,
61
- {
62
- width: Config.buttonIconSize,
63
- },
64
- ];
65
- if (type === "standard" || type === "outline") {
66
- buttonStyle.width = Config.FABSize;
67
- buttonStyle.height = Config.FABSize;
68
- buttonStyle.borderRadius = Config.FABBorderRadius;
69
- contentStyle.push({
70
- width: Config.FABSize,
71
- height: Config.FABSize,
72
- });
73
- }
74
- if (type === "extended" || type === "fixed") {
75
- iconStyle.push({
76
- marginLeft: 16,
77
- marginRight: -8,
78
- });
79
- textStyle.margin = 16;
80
- }
81
- if (type === "fixed") {
82
- buttonStyles.push({
83
- height: Config.FABFixedHeight,
84
- alignSelf: "stretch",
85
- });
86
- }
87
- return (React.createElement(Elevation, { style: [{ elevation }, style] },
88
- React.createElement(Pressable, { ...rest, onPress: onPress, accessibilityState: { disabled }, accessibilityRole: "button", disabled: disabled || loading, style: buttonStyles },
89
- React.createElement(View, { style: styles.content },
90
- icon && loading !== true ? (React.createElement(View, { style: iconStyle },
91
- React.createElement(Icon, { name: icon, size: Config.buttonIconSize, color: textColor }))) : null,
92
- loading ? (React.createElement(ActivityIndicator, { size: "small", color: textColor, style: iconStyle })) : null,
93
- label ? (React.createElement(Text, { numberOfLines: 1, style: [textStyle, typography.button] }, label)) : null))));
94
- };
95
- const styles = StyleSheet.create({
96
- button: {
97
- borderStyle: "solid",
98
- },
99
- content: {
100
- flexDirection: "row",
101
- alignItems: "center",
102
- justifyContent: "center",
103
- },
104
- icon: {
105
- alignItems: "center",
106
- justifyContent: "center",
107
- width: Config.buttonIconSize,
108
- },
109
- fixed: {
110
- left: 0,
111
- right: 0,
112
- bottom: 0,
113
- height: 64,
114
- borderRadius: 0,
115
- },
116
- });
117
- export default withTheme(FAB);
118
- //# sourceMappingURL=DeprecatedFAB.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeprecatedFAB.js","sourceRoot":"","sources":["DeprecatedFAB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAC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C,CAAC,CAAC,IAAI,CACH,CACG,CACF,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE;QACN,WAAW,EAAE,OAAO;KACrB;IACD,OAAO,EAAE;QACP,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;QACxB,KAAK,EAAE,MAAM,CAAC,cAAc;KAC7B;IACD,KAAK,EAAE;QACL,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,MAAM,EAAE,EAAE;QACV,YAAY,EAAE,CAAC;KAChB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,GAAG,CAAC,CAAC"}
@@ -1,50 +0,0 @@
1
- import * as React from "react";
2
- import { View, StyleSheet, Pressable, ActivityIndicator, Platform, } from "react-native";
3
- import { withTheme } from "../theming";
4
- /**
5
- * @deprecated DEPRECATED
6
- */
7
- const FAB = ({ onPress, disabled, loading, iconName = "MaterialIcons/add", style, theme, iconColor, bgColor, size = 50, Icon, ...props }) => {
8
- const backgroundColor = bgColor || theme.colors.primary;
9
- const color = iconColor || "#FFF";
10
- return (React.createElement(View, { style: [
11
- {
12
- width: size,
13
- height: size,
14
- borderRadius: size / 2,
15
- overflow: "hidden",
16
- },
17
- style,
18
- ] },
19
- React.createElement(Pressable, { onPress: onPress, disabled: loading || disabled, android_ripple: {
20
- color: "#333",
21
- radius: size / 4,
22
- }, style: ({ pressed }) => {
23
- return [
24
- styles.button,
25
- {
26
- opacity: pressed || disabled ? 0.75 : 1,
27
- width: size,
28
- height: size,
29
- borderRadius: size / 2,
30
- backgroundColor,
31
- },
32
- ];
33
- }, ...props },
34
- 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 }))))));
35
- };
36
- const styles = StyleSheet.create({
37
- button: {
38
- backgroundColor: "#5a45ff",
39
- justifyContent: "center",
40
- alignItems: "center",
41
- ...Platform.select({
42
- web: {
43
- cursor: "pointer",
44
- userSelect: "none",
45
- },
46
- }),
47
- },
48
- });
49
- export default withTheme(FAB);
50
- //# sourceMappingURL=FAB.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FAB.js","sourceRoot":"","sources":["FAB.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,IAAI,EACJ,UAAU,EACV,SAAS,EACT,iBAAiB,EAIjB,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAiBvC;;GAEG;AACH,MAAM,GAAG,GAA6C,CAAC,EACrD,OAAO,EACP,QAAQ,EACR,OAAO,EACP,QAAQ,GAAG,mBAAmB,EAC9B,KAAK,EACL,KAAK,EACL,SAAS,EACT,OAAO,EACP,IAAI,GAAG,EAAE,EACT,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,eAAe,GAAG,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IACxD,MAAM,KAAK,GAAG,SAAS,IAAI,MAAM,CAAC;IAElC,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL;gBACE,KAAK,EAAE,IAAI;gBACX,MAAM,EAAE,IAAI;gBACZ,YAAY,EAAE,IAAI,GAAG,CAAC;gBACtB,QAAQ,EAAE,QAAQ;aACnB;YACD,KAAK;SACN;QAED,oBAAC,SAAS,IACR,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,OAAO,IAAI,QAAQ,EAC7B,cAAc,EAAE;gBACd,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,IAAI,GAAG,CAAC;aACjB,EACD,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;gBACrB,OAAO;oBACL,MAAM,CAAC,MAAM;oBACb;wBACE,OAAO,EAAE,OAAO,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;wBACvC,KAAK,EAAE,IAAI;wBACX,MAAM,EAAE,IAAI;wBACZ,YAAY,EAAE,IAAI,GAAG,CAAC;wBACtB,eAAe;qBAChB;iBACF,CAAC;YACJ,CAAC,KACG,KAAK;YAET,oBAAC,IAAI,QACF,OAAO,CAAC,CAAC,CAAC,CACT,oBAAC,iBAAiB,IAChB,KAAK,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAC9D,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EACpC,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,GAAI,CACnD,CACI,CACG,CACP,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,MAAM,EAAE;QACN,eAAe,EAAE,SAAS;QAC1B,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,GAAG,QAAQ,CAAC,MAAM,CAAC;YACjB,GAAG,EAAE;gBACH,MAAM,EAAE,SAAS;gBACjB,UAAU,EAAE,MAAM;aACnB;SACF,CAAC;KACH;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,GAAG,CAAC,CAAC"}
@@ -1,57 +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 "../components/Config";
5
- /**
6
- * @deprecated DEPRECATED
7
- */
8
- const FieldSearchBarFull = ({ showIcon, Icon, icon = "search", placeholder = "", style, theme: { colors, typography }, onChange: changeOverride, onSubmit: submitOverride, value, defaultValue, }) => {
9
- const [focused, setIsFocused] = React.useState(false);
10
- const onBlur = () => {
11
- setIsFocused(false);
12
- };
13
- const [internalValue, setInternalValue] = React.useState(value || defaultValue);
14
- React.useEffect(() => {
15
- if (value != null) {
16
- setInternalValue(value);
17
- }
18
- }, [value]);
19
- React.useEffect(() => {
20
- if (defaultValue != null) {
21
- setInternalValue(defaultValue);
22
- }
23
- }, [defaultValue]);
24
- const onChange = React.useCallback((text) => {
25
- changeOverride && changeOverride(text);
26
- }, [changeOverride]);
27
- const onFocus = () => {
28
- setIsFocused(true);
29
- };
30
- const onSubmit = (e) => {
31
- submitOverride && submitOverride(e);
32
- };
33
- const { lineHeight, ...typeStyles } = typography.body2; // eslint-disable-line @typescript-eslint/no-unused-vars
34
- const handleChangeText = (newValue) => {
35
- setInternalValue(newValue);
36
- if (onChange) {
37
- onChange(newValue);
38
- }
39
- };
40
- return (React.createElement(View, { style: [styles.container, style] },
41
- showIcon && (React.createElement(Icon, { name: icon, size: Config.fieldSearchBarFullIconSize, color: focused ? colors.primary : colors.light })),
42
- React.createElement(View, { style: { marginLeft: showIcon ? 12 : 0, flex: 1 } },
43
- React.createElement(TextInput, { clearButtonMode: "while-editing", placeholder: placeholder, value: internalValue, onBlur: onBlur, onFocus: onFocus, onChangeText: handleChangeText, onSubmitEditing: onSubmit, placeholderTextColor: colors.light, style: [
44
- {
45
- color: colors.medium,
46
- },
47
- typeStyles,
48
- ] }))));
49
- };
50
- const styles = StyleSheet.create({
51
- container: {
52
- flexDirection: "row",
53
- alignItems: "center",
54
- },
55
- });
56
- export default withTheme(FieldSearchBarFull);
57
- //# sourceMappingURL=FieldSearchBarFull.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FieldSearchBarF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EAClC,KAAK,EAAE;oBACL;wBACE,KAAK,EAAE,MAAM,CAAC,MAAM;qBACrB;oBACD,UAAU;iBACX,GACD,CACG,CACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;KACrB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,kBAAkB,CAAC,CAAC"}
@@ -1,69 +0,0 @@
1
- import * as React from "react";
2
- import { View } from "react-native";
3
- /**
4
- * @deprecated DEPRECATED
5
- */
6
- export function Center({ width = 240, height = 200, children, bgColor, style, ...rest }) {
7
- return (React.createElement(View, { style: [
8
- {
9
- justifyContent: "center",
10
- alignItems: "center",
11
- width,
12
- height,
13
- backgroundColor: bgColor,
14
- },
15
- style,
16
- ], ...rest }, children));
17
- }
18
- /**
19
- * @deprecated DEPRECATED
20
- */
21
- export function Circle({ size = 50, bgColor, children, style, ...rest }) {
22
- const borderRadius = 1000;
23
- return (React.createElement(Center, { width: size, height: size, bgColor: bgColor, style: [
24
- style,
25
- { backgroundColor: bgColor, borderRadius, overflow: "hidden" },
26
- ], ...rest }, children));
27
- }
28
- /**
29
- * @deprecated DEPRECATED
30
- */
31
- export function Square({ size = 50, bgColor, children, style, ...rest }) {
32
- return (React.createElement(Center, { style: style, width: size, height: size, bgColor: bgColor, ...rest }, children));
33
- }
34
- /**
35
- * @deprecated DEPRECATED
36
- */
37
- export function Row({ justifyContent, alignItems, children, style, ...rest }) {
38
- return (React.createElement(View, { style: [
39
- style,
40
- {
41
- alignItems,
42
- flexDirection: "row",
43
- justifyContent: justifyContent,
44
- },
45
- ], ...rest }, children));
46
- }
47
- /**
48
- * @deprecated DEPRECATED
49
- */
50
- export function Spacer({ top = 8, right = 8, bottom = 8, left = 8, children, style, ...rest }) {
51
- return (React.createElement(View, { style: [
52
- style,
53
- {
54
- paddingRight: right,
55
- paddingTop: top,
56
- paddingLeft: left,
57
- paddingBottom: bottom,
58
- },
59
- ], ...rest }, children));
60
- }
61
- /**
62
- * @deprecated DEPRECATED
63
- */
64
- export function Stack({ children, justifyContent = "flex-start", alignItems = "flex-start", style, ...rest }) {
65
- return (
66
- // style must go first since we don't want justifyContent, alignItems overridden
67
- React.createElement(View, { style: [style, { justifyContent, alignItems }], ...rest }, children));
68
- }
69
- //# sourceMappingURL=Layout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Layout.js","sourceRoot":"","sources":["Layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAwB,MAAM,cAAc,CAAC;AAI1D;;GAEG;AACH,MAAM,UAAU,MAAM,CAAC,EACrB,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,GAAG,EACZ,QAAQ,EACR,OAAO,EACP,KAAK,EACL,GAAG,IAAI,EAOR;IACC,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL;gBACE,cAAc,EAAE,QAAQ;gBACxB,UAAU,EAAE,QAAQ;gBACpB,KAAK;gBACL,MAAM;gBACN,eAAe,EAAE,OAAO;aACzB;YACD,KAAK;SACN,KACG,IAAI,IAEP,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,MAAM,CAAC,EACrB,IAAI,GAAG,EAAE,EACT,OAAO,EACP,QAAQ,EACR,KAAK,EACL,GAAG,IAAI,EAMR;IACC,MAAM,YAAY,GAAG,IAAI,CAAC;IAC1B,OAAO,CACL,oBAAC,MAAM,IACL,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE;YACL,KAAK;YACL,EAAE,eAAe,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE;SAC/D,KACG,IAAI,IAEP,QAAQ,CACF,CACV,CAAC;AAC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Ac,EAAE,UAAU,EAAE,CAAC,KAAM,IAAI,IAC3D,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC"}
@@ -1,122 +0,0 @@
1
- import React, { Component } from "react";
2
- import { Animated, Easing, View, I18nManager, } from "react-native";
3
- const INDETERMINATE_WIDTH_FACTOR = 0.3;
4
- const BAR_WIDTH_ZERO_POSITION = INDETERMINATE_WIDTH_FACTOR / (1 + INDETERMINATE_WIDTH_FACTOR);
5
- /**
6
- * @deprecated DEPRECATED
7
- */
8
- export default class ProgressBar extends Component {
9
- constructor(props) {
10
- super(props);
11
- this.handleLayout = (event) => {
12
- const { width = 150, onLayout } = this.props;
13
- if (!width) {
14
- this.setState({ width: event.nativeEvent.layout.width });
15
- }
16
- if (onLayout) {
17
- onLayout(event);
18
- }
19
- };
20
- const { progress: progressP = 0, indeterminate = false } = props;
21
- const progress = Math.min(Math.max(progressP, 0), 1);
22
- this.state = {
23
- width: 0,
24
- progress: new Animated.Value(indeterminate ? INDETERMINATE_WIDTH_FACTOR : progress),
25
- animationValue: new Animated.Value(BAR_WIDTH_ZERO_POSITION),
26
- };
27
- }
28
- componentDidMount() {
29
- const { indeterminate = false } = this.props;
30
- if (indeterminate) {
31
- this.animate();
32
- }
33
- }
34
- componentDidUpdate(prevProps) {
35
- const { indeterminate = false, useNativeDriver = false, progress: progressP = 0, animationType = "spring", animationConfig = { bounciness: 0 }, animated = true, } = this.props;
36
- if (prevProps.indeterminate !== indeterminate) {
37
- if (indeterminate) {
38
- this.animate();
39
- }
40
- else {
41
- Animated.spring(this.state.animationValue, {
42
- toValue: BAR_WIDTH_ZERO_POSITION,
43
- useNativeDriver,
44
- }).start();
45
- }
46
- }
47
- if (prevProps.indeterminate !== indeterminate ||
48
- prevProps.progress !== progressP) {
49
- const progress = this.props.indeterminate
50
- ? INDETERMINATE_WIDTH_FACTOR
51
- : Math.min(Math.max(progressP, 0), 1);
52
- if (animated) {
53
- Animated[animationType](this.state.progress, {
54
- ...animationConfig,
55
- toValue: progress,
56
- velocity: 0,
57
- useNativeDriver,
58
- }).start();
59
- }
60
- else {
61
- this.state.progress.setValue(progress);
62
- }
63
- }
64
- }
65
- animate() {
66
- const { useNativeDriver = false, indeterminateAnimationDuration = 1000 } = this.props;
67
- this.state.animationValue.setValue(0);
68
- Animated.timing(this.state.animationValue, {
69
- toValue: 1,
70
- duration: indeterminateAnimationDuration,
71
- easing: Easing.linear,
72
- isInteraction: false,
73
- useNativeDriver,
74
- }).start((endState) => {
75
- if (endState.finished) {
76
- this.animate();
77
- }
78
- });
79
- }
80
- render() {
81
- const { borderColor, borderRadius = 4, borderWidth = 1, children, color = "rgba(0, 122, 255, 1)", style, unfilledColor, width = 150, ...restProps } = this.props;
82
- const innerWidth = Math.max(0, width || this.state.width) - borderWidth * 2;
83
- const containerStyle = {
84
- width,
85
- borderWidth,
86
- borderColor: borderColor || color,
87
- borderRadius,
88
- overflow: "hidden",
89
- backgroundColor: unfilledColor,
90
- };
91
- const progressStyle = {
92
- backgroundColor: color,
93
- // Always take up full height of container.
94
- height: "100%",
95
- transform: [
96
- {
97
- translateX: this.state.animationValue.interpolate({
98
- inputRange: [0, 1],
99
- outputRange: [innerWidth * -INDETERMINATE_WIDTH_FACTOR, innerWidth],
100
- }),
101
- },
102
- {
103
- translateX: this.state.progress.interpolate({
104
- inputRange: [0, 1],
105
- outputRange: [innerWidth / (I18nManager.isRTL ? 2 : -2), 0],
106
- }),
107
- },
108
- {
109
- // Interpolation a temp workaround for https://github.com/facebook/react-native/issues/6278
110
- scaleX: this.state.progress.interpolate({
111
- inputRange: [0, 1],
112
- outputRange: [0.0001, 1],
113
- }),
114
- },
115
- ],
116
- };
117
- return (React.createElement(View, { style: [containerStyle, style], onLayout: this.handleLayout, ...restProps },
118
- React.createElement(Animated.View, { style: progressStyle }),
119
- children));
120
- }
121
- }
122
- //# sourceMappingURL=ProgressBar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["ProgressBar.t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AAE,MAAM;YACd,SAAS,EAAE;gBACT;oBACE,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;wBAChD,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;wBAClB,WAAW,EAAE,CAAC,UAAU,GAAG,CAAC,0BAA0B,EAAE,UAAU,CAAC;qBACpE,CAAC;iBACH;gBACD;oBACE,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC;wBAC1C,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;wBAClB,WAAW,EAAE,CAAC,UAAU,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;qBAC5D,CAAC;iBACH;gBACD;oBACE,2FAA2F;oBAC3F,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC;wBACtC,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;wBAClB,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;qBACzB,CAAC;iBACH;aACF;SACF,CAAC;QAEF,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE,CAAC,cAAc,EAAE,KAAK,CAAC,EAC9B,QAAQ,EAAE,IAAI,CAAC,YAAY,KACvB,SAAS;YAEb,oBAAC,QAAQ,CAAC,IAAI,IAAC,KAAK,EAAE,aAAa,GAAI;YACtC,QAAQ,CACJ,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -1,17 +0,0 @@
1
- import * as React from "react";
2
- import { Text } from "react-native";
3
- import AnimatedCircularProgress from "./AnimatedCircularProgress";
4
- import { withTheme } from "../theming";
5
- /**
6
- * @deprecated DEPRECATED
7
- */
8
- const ProgressCircle = ({ progress = 0.5, style, color = "primary", size = 100, showsText = true, unfilledColor, strokeCap = "butt", textStyle, thickness = 1, theme, }) => {
9
- const progressNum = Math.round(progress * 100);
10
- const tintColor = color || theme.colors.primary;
11
- const backgroundColor = unfilledColor || theme.colors.secondary;
12
- return (React.createElement(AnimatedCircularProgress, { size: size, width: thickness, backgroundWidth: thickness, fill: progressNum, tintColor: tintColor, backgroundColor: backgroundColor, rotation: 0, lineCap: strokeCap, style: style }, (fill) => showsText ? (React.createElement(Text, { style: [{ fontSize: size * 0.275, color: tintColor }, textStyle] },
13
- Math.round(fill),
14
- "%")) : null));
15
- };
16
- export default withTheme(ProgressCircle);
17
- //# sourceMappingURL=ProgressCircle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProgressCircle.js","sourceRoot":"","sources":["ProgressCircle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAmC,MAAM,cAAc,CAAC;AACrE,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAiBvC;;GAEG;AACH,MAAM,cAAc,GAA6C,CAAC,EAChE,QAAQ,GAAG,GAAG,EACd,KAAK,EACL,KAAK,GAAG,SAAS,EACjB,IAAI,GAAG,GAAG,EACV,SAAS,GAAG,IAAI,EAChB,aAAa,EACb,SAAS,GAAG,MAAM,EAClB,SAAS,EACT,SAAS,GAAG,CAAC,EACb,KAAK,GACN,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC,CAAC;IAE/C,MAAM,SAAS,GAAG,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IAChD,MAAM,eAAe,GAAG,aAAa,IAAI,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;IAEhE,OAAO,CACL,oBAAC,wBAAwB,IACvB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,SAAS,EAChB,eAAe,EAAE,SAAS,EAC1B,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,KAAK,IAGX,CAAC,IAAI,EAAE,EAAE,CACR,SAAS,CAAC,CAAC,CAAC,CACV,oBAAC,IAAI,IACH,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,GAAG,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,SAAS,CAAC;QAE/D,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;YACZ,CACR,CAAC,CAAC,CAAC,IAAI,CAEe,CAC5B,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,cAAc,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- import { View } from "react-native";
3
- import Text from "../components/Text";
4
- import { withTheme } from "../theming";
5
- import RadioButtonGroup from "../components/RadioButton/RadioButtonGroup";
6
- /**
7
- * @deprecated DEPRECATED
8
- */
9
- const RadioButtonFieldGroup = ({ label, children, theme, labelStyle, style, ...rest }) => {
10
- return (React.createElement(View, { style: style },
11
- React.createElement(Text, { style: [
12
- {
13
- fontSize: theme.typography.headline4.fontSize,
14
- color: theme.typography.headline4.color,
15
- },
16
- labelStyle,
17
- ] }, label),
18
- React.createElement(RadioButtonGroup, { theme: theme, ...rest }, children)));
19
- };
20
- export default withTheme(RadioButtonFieldGroup);
21
- //# sourceMappingURL=RadioButtonFieldGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioButtonFieldGroup.js","sourceRoot":"","sources":["RadioButtonFieldGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAmC,MAAM,cAAc,CAAC;AACrE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,gBAEN,MAAM,4CAA4C,CAAC;AAQpD;;GAEG;AACH,MAAM,qBAAqB,GAA6C,CAAC,EACvE,KAAK,EACL,QAAQ,EACR,KAAK,EACL,UAAU,EACV,KAAK,EACL,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK;QAChB,oBAAC,IAAI,IACH,KAAK,EAAE;gBACL;oBACE,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ;oBAC7C,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,KAAK;iBACxC;gBACD,UAAU;aACX,IAEA,KAAK,CACD;QACP,oBAAC,gBAAgB,IAAC,KAAK,EAAE,KAAK,KAAM,IAAI,IACrC,QAAQ,CACQ,CACd,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,qBAAqB,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import * as React from "react";
2
- import { withTheme } from "../theming";
3
- import Row from "../components/Row";
4
- import Config from "../components/Config";
5
- /**
6
- * @deprecated DEPRECATED
7
- */
8
- const RowBodyIcon = ({ Icon, title, subtitle, icon, style, theme: { colors, typography }, }) => {
9
- return (React.createElement(Row, { titleTypeStyle: typography.body1, titleColor: colors.medium, subtitleTypeStyle: typography.subtitle2, subtitleColor: colors.light, title: title, subtitle: subtitle, right: () => (React.createElement(Icon, { name: icon, size: Config.rowSingleLineIconSize, color: colors.light, style: { marginLeft: 16 } })), style: style }));
10
- };
11
- export default withTheme(RowBodyIcon);
12
- //# sourceMappingURL=RowBodyIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RowBodyIcon.js","sourceRoot":"","sources":["RowBodyIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAW1C;;GAEG;AACH,MAAM,WAAW,GAA6C,CAAC,EAC7D,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,GAC9B,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,GAAG,IACF,cAAc,EAAE,UAAU,CAAC,KAAK,EAChC,UAAU,EAAE,MAAM,CAAC,MAAM,EACzB,iBAAiB,EAAE,UAAU,CAAC,SAAS,EACvC,aAAa,EAAE,MAAM,CAAC,KAAK,EAC3B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,GAAG,EAAE,CAAC,CACX,oBAAC,IAAI,IACH,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,MAAM,CAAC,qBAAqB,EAClC,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,GACzB,CACH,EACD,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,WAAW,CAAC,CAAC"}
@@ -1,16 +0,0 @@
1
- import * as React from "react";
2
- import { Text } from "react-native";
3
- import { withTheme } from "../theming";
4
- import Row from "../components/Row";
5
- /**
6
- * @deprecated DEPRECATED
7
- */
8
- const RowHeadlineImageCaption = ({ title, subtitle, caption, image, style, theme: { colors, typography }, }) => {
9
- return (React.createElement(Row, { titleTypeStyle: typography.headline6, titleColor: colors.strong, subtitleTypeStyle: typography.body2, subtitleColor: colors.medium, title: title, subtitle: subtitle, image: image, right: () => (React.createElement(Text, { style: {
10
- ...typography.caption,
11
- color: colors.strong,
12
- marginLeft: 16,
13
- } }, caption)), style: style }));
14
- };
15
- export default withTheme(RowHeadlineImageCaption);
16
- //# sourceMappingURL=RowHeadlineImageCaption.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RowHeadlineImageCaption.js","sourceRoot":"","sources":["RowHeadlineImageCaption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAA6C,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAYpC;;GAEG;AACH,MAAM,uBAAuB,GAA6C,CAAC,EACzE,KAAK,EACL,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,GAC9B,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,GAAG,IACF,cAAc,EAAE,UAAU,CAAC,SAAS,EACpC,UAAU,EAAE,MAAM,CAAC,MAAM,EACzB,iBAAiB,EAAE,UAAU,CAAC,KAAK,EACnC,aAAa,EAAE,MAAM,CAAC,MAAM,EAC5B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,GAAG,EAAE,CAAC,CACX,oBAAC,IAAI,IACH,KAAK,EAAE;gBACL,GAAG,UAAU,CAAC,OAAO;gBACrB,KAAK,EAAE,MAAM,CAAC,MAAM;gBACpB,UAAU,EAAE,EAAE;aACf,IAEA,OAAO,CACH,CACR,EACD,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,uBAAuB,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- import * as React from "react";
2
- import { withTheme } from "../theming";
3
- import Row from "../components/Row";
4
- import Config from "../components/Config";
5
- /**
6
- * @deprecated DEPRECATED
7
- */
8
- const RowHeadlineImageIcon = ({ Icon, icon, title, image, subtitle, multilineSubtitle = false, style, theme: { colors, typography }, }) => {
9
- return (React.createElement(Row, { titleTypeStyle: typography.headline6, titleColor: colors.strong, subtitleTypeStyle: typography.body2, subtitleColor: colors.medium, title: title, subtitle: subtitle, multilineSubtitle: multilineSubtitle, image: image, right: () => (React.createElement(Icon, { name: icon, size: multilineSubtitle
10
- ? Config.rowMultiLineIconSize
11
- : Config.rowSingleLineIconSize, color: colors.light, style: {
12
- marginLeft: 16,
13
- alignSelf: multilineSubtitle ? "flex-start" : "center",
14
- marginTop: multilineSubtitle ? 4 : 0,
15
- } })), style: style }));
16
- };
17
- export default withTheme(RowHeadlineImageIcon);
18
- //# sourceMappingURL=RowHeadlineImageIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RowHeadlineImageIcon.js","sourceRoot":"","sources":["RowHeadlineImageIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AACpC,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAa1C;;GAEG;AACH,MAAM,oBAAoB,GAA6C,CAAC,EACtE,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,KAAK,EACL,QAAQ,EACR,iBAAiB,GAAG,KAAK,EACzB,KAAK,EACL,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,GAC9B,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,GAAG,IACF,cAAc,EAAE,UAAU,CAAC,SAAS,EACpC,UAAU,EAAE,MAAM,CAAC,MAAM,EACzB,iBAAiB,EAAE,UAAU,CAAC,KAAK,EACnC,aAAa,EAAE,MAAM,CAAC,MAAM,EAC5B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,iBAAiB,EAAE,iBAAiB,EACpC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,GAAG,EAAE,CAAC,CACX,oBAAC,IAAI,IACH,IAAI,EAAE,IAAI,EACV,IAAI,EACF,iBAAiB;gBACf,CAAC,CAAC,MAAM,CAAC,oBAAoB;gBAC7B,CAAC,CAAC,MAAM,CAAC,qBAAqB,EAElC,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,KAAK,EAAE;gBACL,UAAU,EAAE,EAAE;gBACd,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ;gBACtD,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aACrC,GACD,CACH,EACD,KAAK,EAAE,KAAK,GACZ,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,oBAAoB,CAAC,CAAC"}
@@ -1,43 +0,0 @@
1
- import * as React from "react";
2
- import { withTheme } from "../theming";
3
- import { StyleSheet } from "react-native";
4
- import IconButton from "../components/IconButton";
5
- /**
6
- * @deprecated DEPRECATED
7
- */
8
- const ToggleButton = ({ Icon, icon, toggled = false, onPress = () => { }, defaultValue, disabled = false, color = "primary", colorSecondary = "surface", borderColor = "divider", iconSize = 25, width = 50, height = 50, theme: { colors }, style, ...rest }) => {
9
- const [internalValue, setInternalValue] = React.useState(toggled || defaultValue || false);
10
- React.useEffect(() => {
11
- if (toggled != null) {
12
- setInternalValue(toggled);
13
- }
14
- }, [toggled]);
15
- React.useEffect(() => {
16
- if (defaultValue != null) {
17
- setInternalValue(defaultValue);
18
- }
19
- }, [defaultValue]);
20
- const handlePress = () => {
21
- setInternalValue(!internalValue);
22
- onPress(!internalValue);
23
- };
24
- return (React.createElement(IconButton, { Icon: Icon, icon: icon, size: iconSize, color: internalValue ? colors[color] : colors[colorSecondary], onPress: handlePress, disabled: disabled, style: [
25
- styles.mainContainer,
26
- {
27
- width,
28
- height,
29
- backgroundColor: internalValue
30
- ? colors[colorSecondary]
31
- : colors[color],
32
- borderColor: colors[borderColor],
33
- },
34
- style,
35
- ], ...rest }));
36
- };
37
- const styles = StyleSheet.create({
38
- mainContainer: {
39
- borderWidth: 1,
40
- },
41
- });
42
- export default withTheme(ToggleButton);
43
- //# sourceMappingURL=ToggleButton.js.map