@draftbit/core 48.4.8-d976c5.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,430 +0,0 @@
1
- import * as React from "react";
2
- import { View, Animated, StyleSheet, Text, I18nManager, } from "react-native";
3
- import { withTheme } from "../theming";
4
- import { applyStyles, extractStyles } from "../utilities";
5
- import TextInput from "./TextInput";
6
- const AnimatedText = Animated.createAnimatedComponent(Text);
7
- const FOCUS_ANIMATION_DURATION = 150;
8
- const BLUR_ANIMATION_DURATION = 180;
9
- const ICON_SIZE = 24;
10
- class TextField extends React.Component {
11
- constructor() {
12
- super(...arguments);
13
- this.state = {
14
- nativeProps: {},
15
- labeled: new Animated.Value(this.props.value || this.props.error ? 0 : 1),
16
- focused: false,
17
- placeholder: this.props.error ? this.props.placeholder : "",
18
- labelLayout: {
19
- measured: false,
20
- width: 0,
21
- },
22
- };
23
- this._timer = setTimeout(() => { }, 0);
24
- this._showPlaceholder = () => {
25
- clearTimeout(this._timer);
26
- // Set the placeholder in a delay to offset the label animation
27
- // If we show it immediately, they'll overlap and look ugly
28
- this._timer = setTimeout(() => this.setState({
29
- placeholder: this.props.placeholder,
30
- }), 50);
31
- };
32
- this._hidePlaceholder = () => this.setState({
33
- placeholder: "",
34
- });
35
- this._restoreLabel = () => Animated.timing(this.state.labeled, {
36
- toValue: 1,
37
- duration: FOCUS_ANIMATION_DURATION,
38
- useNativeDriver: true,
39
- }).start();
40
- this._minmizeLabel = () => Animated.timing(this.state.labeled, {
41
- toValue: 0,
42
- duration: BLUR_ANIMATION_DURATION,
43
- useNativeDriver: true,
44
- }).start();
45
- this._handleFocus = () => {
46
- if (this.props.disabled) {
47
- return;
48
- }
49
- this.setState({ focused: true });
50
- };
51
- this._handleBlur = () => {
52
- if (this.props.disabled) {
53
- return;
54
- }
55
- this.setState({ focused: false });
56
- };
57
- this._handleChangeText = (value) => {
58
- if (this.props.disabled) {
59
- return;
60
- }
61
- if (typeof value === "string") {
62
- this.setState({ value });
63
- this.props.onChangeText && this.props.onChangeText(value);
64
- }
65
- else {
66
- this.setState({ value: value.nativeEvent.text });
67
- this.props.onChangeText &&
68
- this.props.onChangeText(value.nativeEvent.text);
69
- }
70
- };
71
- this._root = undefined;
72
- }
73
- static getDerivedStateFromProps(nextProps, prevState) {
74
- return {
75
- value: typeof nextProps.value !== "undefined"
76
- ? nextProps.value
77
- : prevState.value,
78
- };
79
- }
80
- componentDidMount() {
81
- if (this.props.defaultValue) {
82
- this._handleChangeText(this.props.defaultValue);
83
- }
84
- if (this.props.placeholder) {
85
- this._minmizeLabel();
86
- }
87
- }
88
- componentDidUpdate(prevProps, prevState) {
89
- if (prevState.focused !== this.state.focused ||
90
- prevState.value !== this.state.value) {
91
- // The label should be minimized if the text input is focused, or has text
92
- // In minimized mode, the label moves up and becomes small
93
- if (this.state.value ||
94
- this.state.focused ||
95
- this.props.error ||
96
- this.props.placeholder) {
97
- this._minmizeLabel();
98
- }
99
- else {
100
- this._restoreLabel();
101
- }
102
- }
103
- if (prevState.focused !== this.state.focused ||
104
- prevProps.label !== this.props.label) {
105
- // Show placeholder text only if the input is focused, or has error, or there's no label
106
- // We don't show placeholder if there's a label because the label acts as placeholder
107
- // When focused, the label moves up, so we can show a placeholder
108
- if (this.state.focused || this.props.error || !this.props.label) {
109
- this._showPlaceholder();
110
- }
111
- else {
112
- this._hidePlaceholder();
113
- }
114
- }
115
- }
116
- componentWillUnmount() {
117
- clearTimeout(this._timer);
118
- }
119
- toggleFocus() {
120
- this.setState((prevState) => ({ focused: !prevState.focused }));
121
- }
122
- /**
123
- * @internal
124
- */
125
- setNativeProps(args) {
126
- this.setState((state) => ({
127
- ...state,
128
- nativeState: args || {},
129
- }));
130
- }
131
- isFocused() {
132
- return this._root && this._root.isFocused();
133
- }
134
- clear() {
135
- return this._root && this._root.clear();
136
- }
137
- focus() {
138
- return this._root && this._root.focus();
139
- }
140
- blur() {
141
- return this._root && this._root.blur();
142
- }
143
- render() {
144
- const { Icon, type = "underline", disabled = false, label, error = false, leftIconName, leftIconMode, rightIconName, assistiveText, underlineColor: underlineColorProp, activeBorderColor: activeBorderColorProp, multiline = false, numberOfLines = 4, style, theme: { colors, typography, roundness, disabledOpacity }, render = (props) => React.createElement(TextInput, { ...props }), ...rest } = this.props;
145
- const MINIMIZED_LABEL_Y_OFFSET = -(typography.caption.lineHeight + 4);
146
- const OUTLINE_MINIMIZED_LABEL_Y_OFFSET = -(16 * 0.5 + 4);
147
- const MAXIMIZED_LABEL_FONT_SIZE = typography.subtitle1.fontSize;
148
- const MINIMIZED_LABEL_FONT_SIZE = typography.caption.fontSize;
149
- const hasActiveOutline = this.state.focused || error;
150
- let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
151
- inputTextColor = colors.strong;
152
- if (disabled) {
153
- activeColor = colors.light;
154
- placeholderColor = colors.light;
155
- borderColor = "transparent";
156
- underlineColor = "transparent";
157
- backgroundColor = colors.divider;
158
- }
159
- else {
160
- activeColor = error ? colors.error : activeBorderColorProp;
161
- placeholderColor = borderColor = colors.light;
162
- underlineColor = underlineColorProp;
163
- backgroundColor = colors.background;
164
- }
165
- if (rest.placeholderTextColor) {
166
- placeholderColor = rest.placeholderTextColor;
167
- }
168
- const { lineHeight, ...subtitle1 } = typography.subtitle1;
169
- inputStyle = {
170
- paddingVertical: 0,
171
- color: inputTextColor,
172
- paddingLeft: leftIconName && leftIconMode === "inset"
173
- ? ICON_SIZE + 12 + (type === "solid" ? 16 : 0)
174
- : 0,
175
- paddingRight: rightIconName ? ICON_SIZE + 16 + 4 : 12,
176
- ...subtitle1,
177
- };
178
- if (!multiline) {
179
- inputStyle.height = lineHeight;
180
- }
181
- let assistiveTextLeftMargin;
182
- if (type === "underline") {
183
- containerStyle = {
184
- borderTopLeftRadius: roundness,
185
- borderTopRightRadius: roundness,
186
- paddingBottom: 12,
187
- marginTop: 16,
188
- };
189
- if (leftIconName && leftIconMode === "outset") {
190
- assistiveTextLeftMargin = ICON_SIZE + 8;
191
- }
192
- else {
193
- assistiveTextLeftMargin = 0;
194
- }
195
- }
196
- else {
197
- containerStyle = {
198
- borderRadius: roundness,
199
- borderColor: hasActiveOutline ? activeColor : borderColor,
200
- borderWidth: 1,
201
- paddingTop: label ? 16 * 1.5 : 16,
202
- paddingBottom: label ? 16 * 0.5 : 16,
203
- opacity: disabled ? disabledOpacity : 1,
204
- backgroundColor,
205
- };
206
- if (leftIconName && leftIconMode === "inset") {
207
- assistiveTextLeftMargin = 16 + 4;
208
- }
209
- else if (leftIconName && leftIconMode === "outset") {
210
- assistiveTextLeftMargin = ICON_SIZE + 8 + 12;
211
- }
212
- else {
213
- assistiveTextLeftMargin = 12;
214
- }
215
- inputStyle.paddingHorizontal = 12;
216
- }
217
- if (leftIconName && leftIconMode === "outset") {
218
- containerStyle.marginLeft = ICON_SIZE + 8;
219
- }
220
- let leftIconColor;
221
- if (error) {
222
- leftIconColor = colors.error;
223
- }
224
- else if (this.state.focused) {
225
- leftIconColor = colors.primary;
226
- }
227
- else {
228
- leftIconColor = colors.light;
229
- }
230
- const leftIconProps = {
231
- size: 24,
232
- color: leftIconColor,
233
- name: leftIconName || "",
234
- };
235
- const leftIconStyle = {
236
- position: "absolute",
237
- marginTop: type === "solid"
238
- ? MINIMIZED_LABEL_FONT_SIZE + 4
239
- : leftIconMode === "outset"
240
- ? 16
241
- : 0,
242
- marginLeft: leftIconMode === "inset" && type === "solid" ? 16 : 0,
243
- };
244
- const labelStyle = {
245
- ...typography.subtitle1,
246
- top: type === "solid" ? 16 : 0,
247
- left: leftIconName && leftIconMode === "inset"
248
- ? ICON_SIZE + (type === "solid" ? 16 : 12)
249
- : 0,
250
- transform: [
251
- {
252
- // Move label to top
253
- translateY: this.state.labeled.interpolate({
254
- inputRange: [0, 1],
255
- outputRange: [
256
- type === "solid"
257
- ? OUTLINE_MINIMIZED_LABEL_Y_OFFSET
258
- : MINIMIZED_LABEL_Y_OFFSET,
259
- 0,
260
- ],
261
- }),
262
- },
263
- {
264
- // Make label smaller
265
- scale: this.state.labeled.interpolate({
266
- inputRange: [0, 1],
267
- outputRange: [
268
- MINIMIZED_LABEL_FONT_SIZE / MAXIMIZED_LABEL_FONT_SIZE,
269
- 1,
270
- ],
271
- }),
272
- },
273
- {
274
- // Offset label scale since RN doesn't support transform origin
275
- translateX: this.state.labeled.interpolate({
276
- inputRange: [0, 1],
277
- outputRange: [
278
- -(1 - MINIMIZED_LABEL_FONT_SIZE / MAXIMIZED_LABEL_FONT_SIZE) *
279
- (this.state.labelLayout.width / 2),
280
- 0,
281
- ],
282
- }),
283
- },
284
- ],
285
- };
286
- const { textStyles } = extractStyles(style);
287
- const inputStyles = applyStyles([
288
- styles.input,
289
- inputStyle,
290
- type === "solid" ? { marginHorizontal: 12 } : {},
291
- ], textStyles);
292
- const { backgroundColor: bgColor, padding, paddingTop, paddingBottom, paddingLeft, paddingRight, borderRadius, borderWidth, borderTopWidth, borderRightWidth, borderBottomWidth, borderLeftWidth, borderColor: borderCol, ...styleProp } = StyleSheet.flatten(style || {});
293
- return (React.createElement(View, { style: [styles.container, styleProp] },
294
- leftIconName && leftIconMode === "outset" ? (React.createElement(Icon, { ...leftIconProps, style: leftIconStyle })) : null,
295
- React.createElement(View, { style: applyStyles([containerStyle], {
296
- height: style === null || style === void 0 ? void 0 : style.height,
297
- backgroundColor: bgColor,
298
- padding,
299
- paddingTop,
300
- paddingBottom,
301
- paddingLeft,
302
- paddingRight,
303
- borderRadius,
304
- borderWidth,
305
- borderTopWidth,
306
- borderRightWidth,
307
- borderBottomWidth,
308
- borderLeftWidth,
309
- borderColor: borderCol,
310
- }) },
311
- type === "underline" ? (
312
- // When type === 'flat', render an underline
313
- React.createElement(Animated.View, { style: [
314
- styles.underline,
315
- {
316
- backgroundColor: bgColor ||
317
- (error
318
- ? colors.error
319
- : this.state.focused
320
- ? activeColor
321
- : underlineColor),
322
- // Underlines is thinner when input is not focused
323
- transform: [{ scaleY: this.state.focused ? 1 : 0.5 }],
324
- },
325
- ] })) : null,
326
- label ? (
327
- // Position colored placeholder and gray placeholder on top of each other and crossfade them
328
- // This gives the effect of animating the color, but allows us to use native driver
329
- React.createElement(View, { pointerEvents: "none", style: [
330
- StyleSheet.absoluteFill,
331
- {
332
- opacity:
333
- // Hide the label in minimized state until we measure its width
334
- this.state.value || this.state.focused
335
- ? this.state.labelLayout.measured
336
- ? 1
337
- : 0
338
- : 1,
339
- },
340
- ] },
341
- React.createElement(AnimatedText, { onLayout: (e) => this.setState({
342
- labelLayout: {
343
- width: e.nativeEvent.layout.width,
344
- measured: true,
345
- },
346
- }), style: [
347
- styles.placeholder,
348
- type === "solid" ? { paddingHorizontal: 12 } : {},
349
- labelStyle,
350
- {
351
- color: placeholderColor,
352
- opacity: this.state.labeled.interpolate({
353
- inputRange: [0, 1],
354
- outputRange: [hasActiveOutline ? 1 : 0, 0],
355
- }),
356
- },
357
- ], numberOfLines: 1 }, label),
358
- React.createElement(AnimatedText, { style: [
359
- styles.placeholder,
360
- type === "solid" ? { paddingHorizontal: 12 } : {},
361
- labelStyle,
362
- {
363
- color: placeholderColor,
364
- opacity: hasActiveOutline ? this.state.labeled : 1,
365
- },
366
- ], numberOfLines: 1 }, label))) : null,
367
- leftIconName && leftIconMode === "inset" ? (React.createElement(View, { style: {
368
- justifyContent: type === "solid" ? "center" : undefined,
369
- } },
370
- React.createElement(Icon, { ...leftIconProps, style: leftIconStyle }))) : null,
371
- render({
372
- ref: (c) => {
373
- this._root = c;
374
- },
375
- onChange: this._handleChangeText,
376
- placeholder: label
377
- ? this.state.placeholder
378
- : this.props.placeholder,
379
- placeholderTextColor: placeholderColor,
380
- editable: !disabled,
381
- selectionColor: activeColor,
382
- multiline,
383
- numberOfLines,
384
- onFocus: this._handleFocus,
385
- onBlur: this._handleBlur,
386
- underlineColorAndroid: "transparent",
387
- style: inputStyles,
388
- ...rest,
389
- ...this.state.nativeProps,
390
- value: this.state.value,
391
- })),
392
- rightIconName ? (React.createElement(Icon, { name: rightIconName, size: ICON_SIZE, color: colors.light, style: {
393
- position: "absolute",
394
- right: 16,
395
- marginTop: type === "solid" ? MINIMIZED_LABEL_FONT_SIZE + 4 : 16,
396
- } })) : null,
397
- assistiveText ? (React.createElement(Text, { style: [
398
- {
399
- color: error ? colors.error : colors.light,
400
- marginTop: 8,
401
- marginLeft: assistiveTextLeftMargin,
402
- },
403
- ] }, assistiveText)) : null));
404
- }
405
- }
406
- export default withTheme(TextField);
407
- const styles = StyleSheet.create({
408
- container: {
409
- alignSelf: "stretch",
410
- },
411
- placeholder: {
412
- position: "absolute",
413
- left: 0,
414
- },
415
- underline: {
416
- position: "absolute",
417
- left: 0,
418
- right: 0,
419
- bottom: 0,
420
- height: 2,
421
- },
422
- input: {
423
- flexGrow: 1,
424
- justifyContent: "center",
425
- textAlignVertical: "center",
426
- margin: 0,
427
- textAlign: I18nManager.isRTL ? "right" : "left",
428
- },
429
- });
430
- //# sourceMappingURL=TextField.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextField.js","sourceRoot":"","sources":["TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,IAAI,EACJ,QAAQ,EAER,UAAU,EACV,IAAI,EACJ,WAAW,GAQZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,SAA6B,MAAM,aAAa,CAAC;AAExD,MAAM,YAAY,GAAG,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;AAE5D,MAAM,wBAAwB,GAAG,GAAG,CAAC;AACrC,MAAM,uBAAuB,GAAG,GAAG,CAAC;AACpC,MAAM,SAAS,GAAG,EAAE,CAAC;AAuCrB,MAAM,SAAU,SAAQ,KAAK,CAAC,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C;QACX,cAAc,EAAE,QAAQ;QACxB,iBAAiB,EAAE,QAAQ;QAC3B,MAAM,EAAE,CAAC;QACT,SAAS,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;KAChD;CACF,CAAC,CAAC"}
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { TextInput as NativeTextInput, } from "react-native";
3
- import { useDebounce } from "../hooks";
4
- const TextInput = React.forwardRef(({ onChangeTextDelayed, changeTextDelay = 500, value, ...rest }, ref) => {
5
- const delayedValue = useDebounce(value, changeTextDelay);
6
- React.useEffect(() => {
7
- if (delayedValue !== undefined) {
8
- onChangeTextDelayed === null || onChangeTextDelayed === void 0 ? void 0 : onChangeTextDelayed(delayedValue);
9
- }
10
- // eslint-disable-next-line react-hooks/exhaustive-deps
11
- }, [delayedValue]);
12
- return (React.createElement(NativeTextInput, { testID: "native-text-input", ref: ref, value: value, ...rest }));
13
- });
14
- export default TextInput;
15
- //# sourceMappingURL=TextInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextInput.js","sourceRoot":"","sources":["TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,SAAS,IAAI,eAAe,GAE7B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAOvC,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAChC,CAAC,EAAE,mBAAmB,EAAE,eAAe,GAAG,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;IACtE,MAAM,YAAY,GAAG,WAAW,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IAEzD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,YAAY,KAAK,SAAS,EAAE;YAC9B,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAG,YAAY,CAAC,CAAC;SACrC;QACD,uDAAuD;IACzD,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,OAAO,CACL,oBAAC,eAAe,IACd,MAAM,EAAC,mBAAmB,EAC1B,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,KACR,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- import { Pressable } from "react-native";
3
- export default function Touchable({ children, disabled, onPress, activeOpacity = 0.8, disabledOpacity = 0.8, delayLongPress, hitSlop, style, ...props }) {
4
- return (React.createElement(Pressable, { disabled: disabled, onPress: onPress, delayLongPress: delayLongPress ? delayLongPress : 500, hitSlop: hitSlop ? hitSlop : 8, style: ({ pressed }) => {
5
- return [
6
- {
7
- opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1,
8
- },
9
- style,
10
- ];
11
- }, ...props }, children));
12
- }
13
- //# sourceMappingURL=Touchable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Touchable.js","sourceRoot":"","sources":["Touchable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAA6B,MAAM,cAAc,CAAC;AAQpE,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,aAAa,GAAG,GAAG,EACnB,eAAe,GAAG,GAAG,EACrB,cAAc,EACd,OAAO,EACP,KAAK,EACL,GAAG,KAAK,EACF;IACN,OAAO,CACL,oBAAC,SAAS,IACR,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAC9B,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;YACrB,OAAO;gBACL;oBACE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;iBAClE;gBACD,KAAK;aACN,CAAC;QACJ,CAAC,KACG,KAAK,IAER,QAAQ,CACC,CACb,CAAC;AACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- import { TouchableOpacity } from "react-native";
2
- export default TouchableOpacity;
3
- //# sourceMappingURL=Touchable.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Touchable.web.js","sourceRoot":"","sources":["Touchable.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,eAAe,gBAAgB,CAAC"}
@@ -1,37 +0,0 @@
1
- import React from "react";
2
- import { Text } from "react-native";
3
- import { withTheme } from "../theming";
4
- export const Title = withTheme(({ text, theme, style }) => {
5
- return (React.createElement(Text, { style: [
6
- {
7
- fontSize: 20,
8
- letterSpacing: 0,
9
- lineHeight: 26,
10
- color: theme.colors.text,
11
- },
12
- style,
13
- ] }, text));
14
- });
15
- export const Subtitle = withTheme(({ text, theme, style }) => {
16
- return (React.createElement(Text, { style: [
17
- {
18
- fontSize: 14,
19
- letterSpacing: 0,
20
- lineHeight: 16,
21
- color: theme.colors.medium,
22
- },
23
- style,
24
- ] }, text));
25
- });
26
- export const Caption = withTheme(({ text, theme, style }) => {
27
- return (React.createElement(Text, { style: [
28
- {
29
- fontSize: 12,
30
- letterSpacing: 0,
31
- lineHeight: 14,
32
- color: theme.colors.light,
33
- },
34
- style,
35
- ] }, text));
36
- });
37
- //# sourceMappingURL=Typography.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Typography.js","sourceRoot":"","sources":["Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAwB,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAYvC,MAAM,CAAC,MAAM,KAAK,GAAG,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAS,EAAE,EAAE;IAC/D,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL;gBACE,QAAQ,EAAE,EAAE;gBACZ,aAAa,EAAE,CAAC;gBAChB,UAAU,EAAE,EAAE;gBACd,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI;aACzB;YACD,KAAK;SACN,IAEA,IAAI,CACA,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAS,EAAE,EAAE;IAClE,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL;gBACE,QAAQ,EAAE,EAAE;gBACZ,aAAa,EAAE,CAAC;gBAChB,UAAU,EAAE,EAAE;gBACd,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM;aAC3B;YACD,KAAK;SACN,IAEA,IAAI,CACA,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAS,EAAE,EAAE;IACjE,OAAO,CACL,oBAAC,IAAI,IACH,KAAK,EAAE;YACL;gBACE,QAAQ,EAAE,EAAE;gBACZ,aAAa,EAAE,CAAC;gBAChB,UAAU,EAAE,EAAE;gBACd,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;aAC1B;YACD,KAAK;SACN,IAEA,IAAI,CACA,CACR,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- import { View } from "react-native";
3
- import { extractStyles } from "../../utilities";
4
- import YouTube from "react-youtube";
5
- const YoutubePlayer = ({ videoId, playlist, autoplay = false, style, }) => {
6
- const { viewStyles } = extractStyles(style);
7
- const defaultVideoId = "nwMUpDESXrI";
8
- const options = {
9
- width: viewStyles.width,
10
- height: viewStyles.height,
11
- playerVars: {
12
- autoplay: autoplay ? 1 : 0,
13
- list: playlist,
14
- listType: "playlist",
15
- },
16
- };
17
- return (React.createElement(View, { style: viewStyles },
18
- React.createElement(YouTube, { videoId: !videoId && !playlist ? defaultVideoId : videoId, opts: options })));
19
- };
20
- export default YoutubePlayer;
21
- //# sourceMappingURL=YoutubePlayer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"YoutubePlayer.js","sourceRoot":"","sources":["YoutubePlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,OAAyB,MAAM,eAAe,CAAC;AAEtD,MAAM,aAAa,GAAiC,CAAC,EACnD,OAAO,EACP,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,KAAK,GACN,EAAE,EAAE;IACH,MAAM,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,cAAc,GAAG,aAAa,CAAC;IAErC,MAAM,OAAO,GAAyB;QACpC,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,MAAM,EAAE,UAAU,CAAC,MAAM;QACzB,UAAU,EAAE;YACV,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1B,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,UAAU;SACrB;KACF,CAAC;IAEF,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,UAAU;QACrB,oBAAC,OAAO,IACN,OAAO,EAAE,CAAC,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,EACzD,IAAI,EAAE,OAAO,GACb,CACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import YoutubePlayerIFrame from "react-native-youtube-iframe";
3
- import { extractStyles } from "../../utilities";
4
- const YoutubePlayer = ({ videoId, playlist, autoplay = false, style, }) => {
5
- const { viewStyles } = extractStyles(style);
6
- const defaultVideoId = "nwMUpDESXrI";
7
- return (React.createElement(YoutubePlayerIFrame, { width: viewStyles.width, height: viewStyles.height, play: autoplay, videoId: !videoId && !playlist ? defaultVideoId : videoId, playList: playlist, webViewStyle: viewStyles }));
8
- };
9
- export default YoutubePlayer;
10
- //# sourceMappingURL=YoutubePlayer.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"YoutubePlayer.native.js","sourceRoot":"","sources":["YoutubePlayer.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,mBAAmB,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,aAAa,GAAiC,CAAC,EACnD,OAAO,EACP,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,KAAK,GACN,EAAE,EAAE;IACH,MAAM,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,cAAc,GAAG,aAAa,CAAC;IAErC,OAAO,CACL,oBAAC,mBAAmB,IAClB,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,MAAM,EAAE,UAAU,CAAC,MAAM,EACzB,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,CAAC,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,EACzD,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,UAAU,GACxB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=YoutubePlayerProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"YoutubePlayerProps.js","sourceRoot":"","sources":["YoutubePlayerProps.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export { default as YoutubePlayer } from "./YoutubePlayer";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,35 +0,0 @@
1
- import * as React from "react";
2
- /**
3
- * @deprecated DEPRECATED
4
- */
5
- export const useAuthState = (auth) => {
6
- const [error, setError] = React.useState();
7
- const [value, setValue] = React.useState(auth.currentUser);
8
- React.useEffect(() => {
9
- const list = auth.onAuthStateChanged(setValue, setError);
10
- return () => {
11
- list();
12
- };
13
- }, [auth]);
14
- const signInWithEmailAndPassword = (user, password) => {
15
- auth
16
- .signInWithEmailAndPassword(user, password)
17
- .then(setValue)
18
- .catch(setError);
19
- };
20
- const createUserWithEmailAndPassword = (user, password) => {
21
- auth
22
- .signInWithEmailAndPassword(user, password)
23
- .then(setValue)
24
- .catch(setError);
25
- };
26
- const signOut = () => auth.signOut();
27
- return [
28
- value,
29
- error,
30
- signInWithEmailAndPassword,
31
- signOut,
32
- createUserWithEmailAndPassword,
33
- ];
34
- };
35
- //# sourceMappingURL=useAuthState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAuthState.js","sourceRoot":"","sources":["useAuthState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAS,EAAE,EAAE;IACxC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC3C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAE3D,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAEzD,OAAO,GAAG,EAAE;YACV,IAAI,EAAE,CAAC;QACT,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,MAAM,0BAA0B,GAAG,CAAC,IAAY,EAAE,QAAgB,EAAE,EAAE;QACpE,IAAI;aACD,0BAA0B,CAAC,IAAI,EAAE,QAAQ,CAAC;aAC1C,IAAI,CAAC,QAAQ,CAAC;aACd,KAAK,CAAC,QAAQ,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,8BAA8B,GAAG,CAAC,IAAY,EAAE,QAAgB,EAAE,EAAE;QACxE,IAAI;aACD,0BAA0B,CAAC,IAAI,EAAE,QAAQ,CAAC;aAC1C,IAAI,CAAC,QAAQ,CAAC;aACd,KAAK,CAAC,QAAQ,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IAErC,OAAO;QACL,KAAK;QACL,KAAK;QACL,0BAA0B;QAC1B,OAAO;QACP,8BAA8B;KAC/B,CAAC;AACJ,CAAC,CAAC"}
package/src/constants.js DELETED
@@ -1,11 +0,0 @@
1
- import { Platform } from "react-native";
2
- // @ts-ignore
3
- const expo = global.__expo;
4
- const DEFAULT_STATUSBAR_HEIGHT_EXPO = (expo === null || expo === void 0 ? void 0 : expo.Constants)
5
- ? expo.Constants.statusBarHeight
6
- : 0;
7
- export const APPROX_STATUSBAR_HEIGHT = Platform.select({
8
- android: DEFAULT_STATUSBAR_HEIGHT_EXPO,
9
- ios: Platform.Version < 11 ? DEFAULT_STATUSBAR_HEIGHT_EXPO : 0,
10
- });
11
- //# sourceMappingURL=constants.js.map