@draftbit/core 54.0.3 → 54.0.4-6c949a.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.
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -4
- package/src/Provider.js +0 -10
- package/src/Provider.js.map +0 -1
- package/src/components/AccordionGroup.js +0 -51
- package/src/components/AccordionGroup.js.map +0 -1
- package/src/components/ActionSheet/ActionSheet.js +0 -46
- package/src/components/ActionSheet/ActionSheet.js.map +0 -1
- package/src/components/ActionSheet/ActionSheetCancel.js +0 -7
- package/src/components/ActionSheet/ActionSheetCancel.js.map +0 -1
- package/src/components/ActionSheet/ActionSheetItem.js +0 -31
- package/src/components/ActionSheet/ActionSheetItem.js.map +0 -1
- package/src/components/ActionSheet/index.js +0 -4
- package/src/components/ActionSheet/index.js.map +0 -1
- package/src/components/AspectRatio.js +0 -19
- package/src/components/AspectRatio.js.map +0 -1
- package/src/components/BottomSheet/BottomSheet.js +0 -76
- package/src/components/BottomSheet/BottomSheet.js.map +0 -1
- package/src/components/BottomSheet/index.js +0 -2
- package/src/components/BottomSheet/index.js.map +0 -1
- package/src/components/Button.js +0 -119
- package/src/components/Button.js.map +0 -1
- package/src/components/Checkbox/Checkbox.js +0 -63
- package/src/components/Checkbox/Checkbox.js.map +0 -1
- package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
- package/src/components/Checkbox/CheckboxGroupRow.js.map +0 -1
- package/src/components/Checkbox/CheckboxRow.js +0 -79
- package/src/components/Checkbox/CheckboxRow.js.map +0 -1
- package/src/components/Checkbox/context.js +0 -15
- package/src/components/Checkbox/context.js.map +0 -1
- package/src/components/Checkbox/index.js +0 -3
- package/src/components/Checkbox/index.js.map +0 -1
- package/src/components/Config.js +0 -65
- package/src/components/Config.js.map +0 -1
- package/src/components/DatePicker/DatePicker.js +0 -418
- package/src/components/DatePicker/DatePicker.js.map +0 -1
- package/src/components/DatePicker/DatePickerComponent.js +0 -17
- package/src/components/DatePicker/DatePickerComponent.js.map +0 -1
- package/src/components/DatePicker/DatePickerComponent.web.js +0 -57
- package/src/components/DatePicker/DatePickerComponent.web.js.map +0 -1
- package/src/components/DatePicker/DatePickerComponentType.js +0 -2
- package/src/components/DatePicker/DatePickerComponentType.js.map +0 -1
- package/src/components/DatePicker/parseDate.js +0 -12
- package/src/components/DatePicker/parseDate.js.map +0 -1
- package/src/components/DeckSwiper/DeckSwiper.js +0 -116
- package/src/components/DeckSwiper/DeckSwiper.js.map +0 -1
- package/src/components/DeckSwiper/DeckSwiperCard.js +0 -21
- package/src/components/DeckSwiper/DeckSwiperCard.js.map +0 -1
- package/src/components/DeckSwiper/index.js +0 -3
- package/src/components/DeckSwiper/index.js.map +0 -1
- package/src/components/Divider.js +0 -14
- package/src/components/Divider.js.map +0 -1
- package/src/components/Elevation.js +0 -20
- package/src/components/Elevation.js.map +0 -1
- package/src/components/ExpoImage.js +0 -44
- package/src/components/ExpoImage.js.map +0 -1
- package/src/components/FlatList.js +0 -7
- package/src/components/FlatList.js.map +0 -1
- package/src/components/FormRow.js +0 -20
- package/src/components/FormRow.js.map +0 -1
- package/src/components/IconButton.js +0 -36
- package/src/components/IconButton.js.map +0 -1
- package/src/components/Image.js +0 -48
- package/src/components/Image.js.map +0 -1
- package/src/components/KeyboardAvoidingView.js +0 -29
- package/src/components/KeyboardAvoidingView.js.map +0 -1
- package/src/components/Layout/AspectRatio.js +0 -7
- package/src/components/Layout/AspectRatio.js.map +0 -1
- package/src/components/Layout/Center.js +0 -15
- package/src/components/Layout/Center.js.map +0 -1
- package/src/components/Layout/Circle.js +0 -16
- package/src/components/Layout/Circle.js.map +0 -1
- package/src/components/Layout/HStack.js +0 -12
- package/src/components/Layout/HStack.js.map +0 -1
- package/src/components/Layout/LayoutCommon.js +0 -8
- package/src/components/Layout/LayoutCommon.js.map +0 -1
- package/src/components/Layout/Spacer.js +0 -15
- package/src/components/Layout/Spacer.js.map +0 -1
- package/src/components/Layout/Square.js +0 -25
- package/src/components/Layout/Square.js.map +0 -1
- package/src/components/Layout/VStack.js +0 -12
- package/src/components/Layout/VStack.js.map +0 -1
- package/src/components/Layout/ZStack.js +0 -58
- package/src/components/Layout/ZStack.js.map +0 -1
- package/src/components/Layout/index.js +0 -9
- package/src/components/Layout/index.js.map +0 -1
- package/src/components/LoadingIndicator.js +0 -38
- package/src/components/LoadingIndicator.js.map +0 -1
- package/src/components/LottieAnimation.js +0 -12
- package/src/components/LottieAnimation.js.map +0 -1
- package/src/components/Markdown.js +0 -33
- package/src/components/Markdown.js.map +0 -1
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js +0 -2
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.js.map +0 -1
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +0 -123
- package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +0 -1
- package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js +0 -90
- package/src/components/MediaPlayer/AudioPlayer/HeadlessAudioPlayer.js.map +0 -1
- package/src/components/MediaPlayer/AudioPlayer/index.js +0 -13
- package/src/components/MediaPlayer/AudioPlayer/index.js.map +0 -1
- package/src/components/MediaPlayer/MediaPlaybackWrapper.js +0 -42
- package/src/components/MediaPlayer/MediaPlaybackWrapper.js.map +0 -1
- package/src/components/MediaPlayer/MediaPlayerCommon.js +0 -71
- package/src/components/MediaPlayer/MediaPlayerCommon.js.map +0 -1
- package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js +0 -109
- package/src/components/MediaPlayer/VideoPlayer/VideoPlayer.js.map +0 -1
- package/src/components/MediaPlayer/VideoPlayer/index.js +0 -2
- package/src/components/MediaPlayer/VideoPlayer/index.js.map +0 -1
- package/src/components/NumberInput.js +0 -63
- package/src/components/NumberInput.js.map +0 -1
- package/src/components/Picker/NativePicker.ios.js +0 -77
- package/src/components/Picker/NativePicker.ios.js.map +0 -1
- package/src/components/Picker/NativePicker.js +0 -73
- package/src/components/Picker/NativePicker.js.map +0 -1
- package/src/components/Picker/PickerCommon.js +0 -36
- package/src/components/Picker/PickerCommon.js.map +0 -1
- package/src/components/Picker/PickerInputContainer.js +0 -36
- package/src/components/Picker/PickerInputContainer.js.map +0 -1
- package/src/components/Picker/dropdown/DropDownModalPicker.js +0 -70
- package/src/components/Picker/dropdown/DropDownModalPicker.js.map +0 -1
- package/src/components/Picker/dropdown/DropDownPicker.js +0 -61
- package/src/components/Picker/dropdown/DropDownPicker.js.map +0 -1
- package/src/components/Picker/dropdown/MultiSelectPicker.js +0 -9
- package/src/components/Picker/dropdown/MultiSelectPicker.js.map +0 -1
- package/src/components/Picker/dropdown/PickerItem.js +0 -9
- package/src/components/Picker/dropdown/PickerItem.js.map +0 -1
- package/src/components/Picker/index.js +0 -22
- package/src/components/Picker/index.js.map +0 -1
- package/src/components/PinInput/CustomPinInputCell.js +0 -11
- package/src/components/PinInput/CustomPinInputCell.js.map +0 -1
- package/src/components/PinInput/PinInput.js +0 -89
- package/src/components/PinInput/PinInput.js.map +0 -1
- package/src/components/PinInput/PinInputText.js +0 -14
- package/src/components/PinInput/PinInputText.js.map +0 -1
- package/src/components/PinInput/index.js +0 -4
- package/src/components/PinInput/index.js.map +0 -1
- package/src/components/Portal/Portal.js +0 -34
- package/src/components/Portal/Portal.js.map +0 -1
- package/src/components/Portal/PortalConsumer.js +0 -28
- package/src/components/Portal/PortalConsumer.js.map +0 -1
- package/src/components/Portal/PortalHost.js +0 -109
- package/src/components/Portal/PortalHost.js.map +0 -1
- package/src/components/Portal/PortalManager.js +0 -33
- package/src/components/Portal/PortalManager.js.map +0 -1
- package/src/components/Pressable.js +0 -23
- package/src/components/Pressable.js.map +0 -1
- package/src/components/Progress/CircularProgress/CircularProgress.js +0 -103
- package/src/components/Progress/CircularProgress/CircularProgress.js.map +0 -1
- package/src/components/Progress/CircularProgress/index.js +0 -14
- package/src/components/Progress/CircularProgress/index.js.map +0 -1
- package/src/components/Progress/IndeterminateProgress.js +0 -39
- package/src/components/Progress/IndeterminateProgress.js.map +0 -1
- package/src/components/Progress/LinearProgress/LinearProgress.js +0 -57
- package/src/components/Progress/LinearProgress/LinearProgress.js.map +0 -1
- package/src/components/Progress/LinearProgress/index.js +0 -14
- package/src/components/Progress/LinearProgress/index.js.map +0 -1
- package/src/components/Progress/ProgressCommon.js +0 -2
- package/src/components/Progress/ProgressCommon.js.map +0 -1
- package/src/components/ProgressIndicator.js +0 -28
- package/src/components/ProgressIndicator.js.map +0 -1
- package/src/components/RadioButton/RadioButton.js +0 -18
- package/src/components/RadioButton/RadioButton.js.map +0 -1
- package/src/components/RadioButton/RadioButtonGroup.js +0 -44
- package/src/components/RadioButton/RadioButtonGroup.js.map +0 -1
- package/src/components/RadioButton/RadioButtonRow.js +0 -79
- package/src/components/RadioButton/RadioButtonRow.js.map +0 -1
- package/src/components/RadioButton/context.js +0 -15
- package/src/components/RadioButton/context.js.map +0 -1
- package/src/components/RadioButton/index.js +0 -4
- package/src/components/RadioButton/index.js.map +0 -1
- package/src/components/Row.js +0 -49
- package/src/components/Row.js.map +0 -1
- package/src/components/SVG.js +0 -8
- package/src/components/SVG.js.map +0 -1
- package/src/components/SVG.native.js +0 -10
- package/src/components/SVG.native.js.map +0 -1
- package/src/components/ScreenContainer.js +0 -42
- package/src/components/ScreenContainer.js.map +0 -1
- package/src/components/SectionList/SectionHeader.js +0 -14
- package/src/components/SectionList/SectionHeader.js.map +0 -1
- package/src/components/SectionList/SectionList.js +0 -111
- package/src/components/SectionList/SectionList.js.map +0 -1
- package/src/components/SectionList/index.js +0 -3
- package/src/components/SectionList/index.js.map +0 -1
- package/src/components/Shadow.js +0 -26
- package/src/components/Shadow.js.map +0 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js +0 -13
- package/src/components/SimpleStyleScrollables/SimpleStyleFlashList.js.map +0 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js +0 -13
- package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js.map +0 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js +0 -13
- package/src/components/SimpleStyleScrollables/SimpleStyleKeyboardAwareScrollView.js.map +0 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js +0 -13
- package/src/components/SimpleStyleScrollables/SimpleStyleMasonryFlashList.js.map +0 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js +0 -13
- package/src/components/SimpleStyleScrollables/SimpleStyleScrollView.js.map +0 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js +0 -15
- package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.js.map +0 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js +0 -15
- package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.js.map +0 -1
- package/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.js +0 -91
- package/src/components/SimpleStyleScrollables/useSplitContentContainerStyles.js.map +0 -1
- package/src/components/Slider.js +0 -84
- package/src/components/Slider.js.map +0 -1
- package/src/components/StarRating.js +0 -51
- package/src/components/StarRating.js.map +0 -1
- package/src/components/StepIndicator.js +0 -347
- package/src/components/StepIndicator.js.map +0 -1
- package/src/components/Stepper.js +0 -43
- package/src/components/Stepper.js.map +0 -1
- package/src/components/Surface.js +0 -55
- package/src/components/Surface.js.map +0 -1
- package/src/components/SwipeableItem/SwipeableItem.js +0 -124
- package/src/components/SwipeableItem/SwipeableItem.js.map +0 -1
- package/src/components/SwipeableItem/SwipeableItemButton.js +0 -6
- package/src/components/SwipeableItem/SwipeableItemButton.js.map +0 -1
- package/src/components/SwipeableItem/SwipeableItemCommon.js +0 -44
- package/src/components/SwipeableItem/SwipeableItemCommon.js.map +0 -1
- package/src/components/SwipeableItem/SwipeableList.js +0 -29
- package/src/components/SwipeableItem/SwipeableList.js.map +0 -1
- package/src/components/SwipeableItem/index.js +0 -4
- package/src/components/SwipeableItem/index.js.map +0 -1
- package/src/components/Swiper/Swiper.js +0 -99
- package/src/components/Swiper/Swiper.js.map +0 -1
- package/src/components/Swiper/SwiperItem.js +0 -10
- package/src/components/Swiper/SwiperItem.js.map +0 -1
- package/src/components/Swiper/index.js +0 -3
- package/src/components/Swiper/index.js.map +0 -1
- package/src/components/Switch.js +0 -56
- package/src/components/Switch.js.map +0 -1
- package/src/components/TabView/TabView.js +0 -65
- package/src/components/TabView/TabView.js.map +0 -1
- package/src/components/TabView/TabViewItem.js +0 -12
- package/src/components/TabView/TabViewItem.js.map +0 -1
- package/src/components/TabView/index.js +0 -3
- package/src/components/TabView/index.js.map +0 -1
- package/src/components/Table/Table.js +0 -94
- package/src/components/Table/Table.js.map +0 -1
- package/src/components/Table/TableCell.js +0 -34
- package/src/components/Table/TableCell.js.map +0 -1
- package/src/components/Table/TableCommon.js +0 -13
- package/src/components/Table/TableCommon.js.map +0 -1
- package/src/components/Table/TableRow.js +0 -42
- package/src/components/Table/TableRow.js.map +0 -1
- package/src/components/Table/index.js +0 -4
- package/src/components/Table/index.js.map +0 -1
- package/src/components/Text.js +0 -25
- package/src/components/Text.js.map +0 -1
- package/src/components/TextField.js +0 -411
- package/src/components/TextField.js.map +0 -1
- package/src/components/TextInput.js +0 -25
- package/src/components/TextInput.js.map +0 -1
- package/src/components/Timer.js +0 -87
- package/src/components/Timer.js.map +0 -1
- package/src/components/Touchable.js +0 -13
- package/src/components/Touchable.js.map +0 -1
- package/src/components/Touchable.web.js +0 -3
- package/src/components/Touchable.web.js.map +0 -1
- package/src/components/Typography.js +0 -37
- package/src/components/Typography.js.map +0 -1
- package/src/components/YoutubePlayer/YoutubePlayer.js +0 -21
- package/src/components/YoutubePlayer/YoutubePlayer.js.map +0 -1
- package/src/components/YoutubePlayer/YoutubePlayer.native.js +0 -36
- package/src/components/YoutubePlayer/YoutubePlayer.native.js.map +0 -1
- package/src/components/YoutubePlayer/YoutubePlayerProps.js +0 -2
- package/src/components/YoutubePlayer/YoutubePlayerProps.js.map +0 -1
- package/src/components/YoutubePlayer/index.js +0 -2
- package/src/components/YoutubePlayer/index.js.map +0 -1
- package/src/components/useAuthState.js +0 -35
- package/src/components/useAuthState.js.map +0 -1
- package/src/constants.js +0 -11
- package/src/constants.js.map +0 -1
- package/src/deprecated-components/AccordionItem.js +0 -36
- package/src/deprecated-components/AccordionItem.js.map +0 -1
- package/src/deprecated-components/AnimatedCircularProgress.js +0 -47
- package/src/deprecated-components/AnimatedCircularProgress.js.map +0 -1
- package/src/deprecated-components/AvatarEdit.js +0 -34
- package/src/deprecated-components/AvatarEdit.js.map +0 -1
- package/src/deprecated-components/AvoidKeyboardView.js +0 -36
- package/src/deprecated-components/AvoidKeyboardView.js.map +0 -1
- package/src/deprecated-components/Banner.js +0 -112
- package/src/deprecated-components/Banner.js.map +0 -1
- package/src/deprecated-components/Card.js +0 -61
- package/src/deprecated-components/Card.js.map +0 -1
- package/src/deprecated-components/CheckboxGroup.js +0 -25
- package/src/deprecated-components/CheckboxGroup.js.map +0 -1
- package/src/deprecated-components/CircleImage.js +0 -12
- package/src/deprecated-components/CircleImage.js.map +0 -1
- package/src/deprecated-components/CircularProgress.js +0 -85
- package/src/deprecated-components/CircularProgress.js.map +0 -1
- package/src/deprecated-components/Container.js +0 -46
- package/src/deprecated-components/Container.js.map +0 -1
- package/src/deprecated-components/DeprecatedButton.js +0 -87
- package/src/deprecated-components/DeprecatedButton.js.map +0 -1
- package/src/deprecated-components/DeprecatedCardWrapper.js +0 -22
- package/src/deprecated-components/DeprecatedCardWrapper.js.map +0 -1
- package/src/deprecated-components/DeprecatedFAB.js +0 -111
- package/src/deprecated-components/DeprecatedFAB.js.map +0 -1
- package/src/deprecated-components/FAB.js +0 -50
- package/src/deprecated-components/FAB.js.map +0 -1
- package/src/deprecated-components/FieldSearchBarFull.js +0 -57
- package/src/deprecated-components/FieldSearchBarFull.js.map +0 -1
- package/src/deprecated-components/Layout.js +0 -69
- package/src/deprecated-components/Layout.js.map +0 -1
- package/src/deprecated-components/ProgressBar.js +0 -122
- package/src/deprecated-components/ProgressBar.js.map +0 -1
- package/src/deprecated-components/ProgressCircle.js +0 -17
- package/src/deprecated-components/ProgressCircle.js.map +0 -1
- package/src/deprecated-components/RadioButtonFieldGroup.js +0 -21
- package/src/deprecated-components/RadioButtonFieldGroup.js.map +0 -1
- package/src/deprecated-components/RowBodyIcon.js +0 -12
- package/src/deprecated-components/RowBodyIcon.js.map +0 -1
- package/src/deprecated-components/RowHeadlineImageCaption.js +0 -16
- package/src/deprecated-components/RowHeadlineImageCaption.js.map +0 -1
- package/src/deprecated-components/RowHeadlineImageIcon.js +0 -18
- package/src/deprecated-components/RowHeadlineImageIcon.js.map +0 -1
- package/src/deprecated-components/ToggleButton.js +0 -43
- package/src/deprecated-components/ToggleButton.js.map +0 -1
- package/src/hooks.js +0 -35
- package/src/hooks.js.map +0 -1
- package/src/index.js +0 -77
- package/src/index.js.map +0 -1
- package/src/interfaces/Icon.js +0 -9
- package/src/interfaces/Icon.js.map +0 -1
- package/src/utilities.js +0 -223
- package/src/utilities.js.map +0 -1
|
@@ -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,iBAAiB,CAAC;AAY5C,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,CAAC,MAAM;aAChC;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,IAAI,CAAC,MAAM;aAChC;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,IAAI,CAAC,KAAK;aAC/B;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, { style: { flex: 1 }, 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,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAClB,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,36 +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: [
|
|
8
|
-
viewStyles,
|
|
9
|
-
{
|
|
10
|
-
/**
|
|
11
|
-
* Addresses a WebView and react-navigation bug that causes apps to crash
|
|
12
|
-
* Alternate solution is set `androidLayerType` prop to `"software"`, but that leads to player playing without video
|
|
13
|
-
* See:
|
|
14
|
-
* https://lonelycpp.github.io/react-native-youtube-iframe/navigation-crash/#change-webview-opacity-to-099-issue-comment
|
|
15
|
-
* https://github.com/LonelyCpp/react-native-youtube-iframe/issues/110#issuecomment-779848787
|
|
16
|
-
* https://github.com/react-native-webview/react-native-webview/issues/811
|
|
17
|
-
*/
|
|
18
|
-
opacity: viewStyles.opacity < 0.99 ? viewStyles.opacity : 0.99,
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
/**
|
|
22
|
-
* Addresses issue where webview is locked by aspect ratio and refuses to
|
|
23
|
-
* change height according to provided style props.
|
|
24
|
-
* See:
|
|
25
|
-
* https://github.com/LonelyCpp/react-native-youtube-iframe/issues/13#issuecomment-611753123
|
|
26
|
-
*/
|
|
27
|
-
webViewProps: {
|
|
28
|
-
injectedJavaScript: `
|
|
29
|
-
var element = document.getElementsByClassName('container')[0];
|
|
30
|
-
element.style.position = 'unset';
|
|
31
|
-
true;
|
|
32
|
-
`,
|
|
33
|
-
} }));
|
|
34
|
-
};
|
|
35
|
-
export default YoutubePlayer;
|
|
36
|
-
//# 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;YACZ,UAAU;YACV;gBACE;;;;;;;mBAOG;gBACH,OAAO,EAAE,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI;aAC/D;SACF;QACD;;;;;WAKG;QACH,YAAY,EAAE;YACZ,kBAAkB,EAAE;;;;WAIjB;SACJ,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"YoutubePlayerProps.js","sourceRoot":"","sources":["YoutubePlayerProps.ts"],"names":[],"mappings":""}
|
|
@@ -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: Number(Platform.Version) < 11 ? DEFAULT_STATUSBAR_HEIGHT_EXPO : 0,
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=constants.js.map
|
package/src/constants.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,aAAa;AACb,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;AAE3B,MAAM,6BAA6B,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS;IACnD,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe;IAChC,CAAC,CAAC,CAAC,CAAC;AAEN,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,MAAM,CAAC;IACrD,OAAO,EAAE,6BAA6B;IACtC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,CAAC;CACvE,CAAC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Pressable, StyleSheet, View, } from "react-native";
|
|
3
|
-
import Text from "../components/Text";
|
|
4
|
-
import { extractStyles } from "../utilities";
|
|
5
|
-
import { withTheme } from "@draftbit/theme";
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated DEPRECATED: Use direct children with AccordianGroup
|
|
8
|
-
*/
|
|
9
|
-
const AccordionItem = ({ Icon, icon, label, style, iconColor, theme, ...rest }) => {
|
|
10
|
-
const { textStyles, viewStyles } = extractStyles(style);
|
|
11
|
-
return (React.createElement(Pressable, { style: [styles.container, viewStyles], ...rest },
|
|
12
|
-
React.createElement(View, { style: styles.row },
|
|
13
|
-
icon ? (React.createElement(Icon, { name: icon, size: 24, color: iconColor || theme.colors.branding.primary })) : null,
|
|
14
|
-
React.createElement(View, { style: [styles.item, styles.content] },
|
|
15
|
-
React.createElement(Text, { selectable: false, style: textStyles }, label)))));
|
|
16
|
-
};
|
|
17
|
-
const styles = StyleSheet.create({
|
|
18
|
-
container: {
|
|
19
|
-
padding: 8,
|
|
20
|
-
},
|
|
21
|
-
row: {
|
|
22
|
-
flexDirection: "row",
|
|
23
|
-
alignItems: "center",
|
|
24
|
-
paddingLeft: 8,
|
|
25
|
-
},
|
|
26
|
-
item: {
|
|
27
|
-
marginVertical: 6,
|
|
28
|
-
paddingLeft: 8,
|
|
29
|
-
},
|
|
30
|
-
content: {
|
|
31
|
-
flex: 1,
|
|
32
|
-
justifyContent: "center",
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
export default withTheme(AccordionItem);
|
|
36
|
-
//# sourceMappingURL=AccordionItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["AccordionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,SAAS,EACT,UAAU,EACV,IAAI,GAGL,MAAM,cAAc,CAAC;AAEtB,OAAO,IAAI,MAAM,oBAAoB,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAW5C;;GAEG;AACH,MAAM,aAAa,GAAG,CAAC,EACrB,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,KAAK,EACL,GAAG,IAAI,EACD,EAAE,EAAE;IACV,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAExD,OAAO,CACL,oBAAC,SAAS,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,KAAM,IAAI;QACxD,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,GAAG;YACpB,IAAI,CAAC,CAAC,CAAC,CACN,oBAAC,IAAI,IACH,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,EAAE,EACR,KAAK,EAAE,SAAS,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,GACjD,CACH,CAAC,CAAC,CAAC,IAAI;YACR,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC;gBACxC,oBAAC,IAAI,IAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,IACvC,KAAK,CACD,CACF,CACF,CACG,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IACD,GAAG,EAAE;QACH,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,CAAC;KACf;IACD,IAAI,EAAE;QACJ,cAAc,EAAE,CAAC;QACjB,WAAW,EAAE,CAAC;KACf;IACD,OAAO,EAAE;QACP,IAAI,EAAE,CAAC;QACP,cAAc,EAAE,QAAQ;KACzB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Animated, Easing, } from "react-native";
|
|
3
|
-
import CircularProgress from "./CircularProgress";
|
|
4
|
-
const AnimatedProgress = Animated.createAnimatedComponent(CircularProgress);
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated DEPRECATED
|
|
7
|
-
*/
|
|
8
|
-
const AnimatedCircularProgress = ({ duration = 500, easing = Easing.out(Easing.ease), fill, prefill = 0, useNativeDriver = false, tintColorSecondary, onAnimationComplete, tintColor = "black", ...other }) => {
|
|
9
|
-
const [fillAnimation] = React.useState(new Animated.Value(prefill));
|
|
10
|
-
const animate = React.useCallback((toVal = -1, dur, ease) => {
|
|
11
|
-
const toValue = toVal >= 0 ? toVal : fill;
|
|
12
|
-
const dura = dur || duration;
|
|
13
|
-
const eas = ease || easing;
|
|
14
|
-
const useNative = useNativeDriver;
|
|
15
|
-
const anim = Animated.timing(fillAnimation, {
|
|
16
|
-
useNativeDriver: useNative,
|
|
17
|
-
toValue,
|
|
18
|
-
easing: eas,
|
|
19
|
-
duration: dura,
|
|
20
|
-
});
|
|
21
|
-
anim.start(onAnimationComplete);
|
|
22
|
-
return anim;
|
|
23
|
-
}, [
|
|
24
|
-
duration,
|
|
25
|
-
easing,
|
|
26
|
-
fill,
|
|
27
|
-
useNativeDriver,
|
|
28
|
-
fillAnimation,
|
|
29
|
-
onAnimationComplete,
|
|
30
|
-
]);
|
|
31
|
-
const animateColor = () => {
|
|
32
|
-
if (!tintColorSecondary) {
|
|
33
|
-
return tintColor;
|
|
34
|
-
}
|
|
35
|
-
const tintAnimation = fillAnimation.interpolate({
|
|
36
|
-
inputRange: [0, 100],
|
|
37
|
-
outputRange: [tintColor, tintColorSecondary],
|
|
38
|
-
});
|
|
39
|
-
return tintAnimation;
|
|
40
|
-
};
|
|
41
|
-
React.useEffect(() => {
|
|
42
|
-
animate();
|
|
43
|
-
}, [fill, animate]);
|
|
44
|
-
return (React.createElement(AnimatedProgress, { ...other, style: other.style, childrenContainerStyle: other.childrenContainerStyle, fill: fillAnimation, tintColor: animateColor() }));
|
|
45
|
-
};
|
|
46
|
-
export default AnimatedCircularProgress;
|
|
47
|
-
//# sourceMappingURL=AnimatedCircularProgress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedCircularProgress.js","sourceRoot":"","sources":["AnimatedCircularProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAA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mB;KACpB,CACF,CAAC;IAEF,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACxB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,aAAa,GAAG,aAAa,CAAC,WAAW,CAAC;YAC9C,UAAU,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC;YACpB,WAAW,EAAE,CAAC,SAAS,EAAE,kBAAkB,CAAC;SAC7C,CAAC,CAAC;QAEH,OAAO,aAAa,CAAC;IACvB,CAAC,CAAC;IAEF,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,OAAO,EAAE,CAAC;IACZ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAEpB,OAAO,CACL,oBAAC,gBAAgB,OACX,KAAK,EACT,KAAK,EAAE,KAAK,CAAC,KAAyD,EACtE,sBAAsB,EACpB,KAAK,CAAC,sBAEL,EAEH,IAAI,EAAE,aAAa,EACnB,SAAS,EAAE,YAAY,EAAE,GACzB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View } from "react-native";
|
|
3
|
-
import Touchable from "../components/Touchable";
|
|
4
|
-
import CircleImage from "./CircleImage";
|
|
5
|
-
import { withTheme } from "@draftbit/theme";
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated DEPRECATED
|
|
8
|
-
*/
|
|
9
|
-
const AvatarEdit = ({ Icon, image, size = 80, onPress = () => { }, style, theme, ...rest }) => {
|
|
10
|
-
const colorStyles = {
|
|
11
|
-
editBackgroundColor: theme.colors.branding.primary,
|
|
12
|
-
editIconColor: theme.colors.background.base,
|
|
13
|
-
editBorderColor: theme.colors.background.base,
|
|
14
|
-
};
|
|
15
|
-
const dimensions = {
|
|
16
|
-
width: size,
|
|
17
|
-
height: size,
|
|
18
|
-
};
|
|
19
|
-
return (React.createElement(View, { style: [style, dimensions], ...rest },
|
|
20
|
-
React.createElement(Touchable, { onPress: onPress },
|
|
21
|
-
React.createElement(CircleImage, { source: image, size: size }),
|
|
22
|
-
React.createElement(View, { style: {
|
|
23
|
-
position: "absolute",
|
|
24
|
-
top: -3,
|
|
25
|
-
right: -3,
|
|
26
|
-
borderColor: colorStyles.editBorderColor,
|
|
27
|
-
backgroundColor: colorStyles.editBackgroundColor,
|
|
28
|
-
borderRadius: size * (3 / 16),
|
|
29
|
-
padding: size * (3 / 32),
|
|
30
|
-
} },
|
|
31
|
-
React.createElement(Icon, { name: "MaterialIcons/edit", color: colorStyles.editIconColor, size: size * (3 / 16) })))));
|
|
32
|
-
};
|
|
33
|
-
export default withTheme(AvatarEdit);
|
|
34
|
-
//# sourceMappingURL=AvatarEdit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarEdit.js","sourceRoot":"","sources":["AvatarEdit.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAA6C,MAAM,cAAc,CAAC;AAC/E,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAa5C;;GAEG;AACH,MAAM,UAAU,GAA6C,CAAC,EAC5D,IAAI,EACJ,KAAK,EACL,IAAI,GAAG,EAAE,EACT,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,EAClB,KAAK,EACL,KAAK,EACL,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,WAAW,GAAG;QAClB,mBAAmB,EAAE,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO;QAClD,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI;QAC3C,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI;KAC9C,CAAC;IAEF,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,IAAI;KACb,CAAC;IAEF,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,KAAM,IAAI;QACxC,oBAAC,SAAS,IAAC,OAAO,EAAE,OAAO;YACzB,oBAAC,WAAW,IAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAI;YAC1C,oBAAC,IAAI,IACH,KAAK,EAAE;oBACL,QAAQ,EAAE,UAAU;oBACpB,GAAG,EAAE,CAAC,CAAC;oBACP,KAAK,EAAE,CAAC,CAAC;oBACT,WAAW,EAAE,WAAW,CAAC,eAAe;oBACxC,eAAe,EAAE,WAAW,CAAC,mBAAmB;oBAChD,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;oBAC7B,OAAO,EAAE,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;iBACzB;gBAED,oBAAC,IAAI,IACH,IAAI,EAAC,oBAAoB,EACzB,KAAK,EAAE,WAAW,CAAC,aAAa,EAChC,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,GACrB,CACG,CACG,CACP,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { View } from "react-native";
|
|
3
|
-
// `react-native-avoid-softinput` is an optional dependency and there is a possibility that it is not installed resulting in undefined references
|
|
4
|
-
let AvoidSoftInput = null;
|
|
5
|
-
let AvoidSoftInputView = null;
|
|
6
|
-
try {
|
|
7
|
-
const avoidSoftInputPackage = require("react-native-avoid-softinput");
|
|
8
|
-
AvoidSoftInput = avoidSoftInputPackage.AvoidSoftInput;
|
|
9
|
-
AvoidSoftInputView = avoidSoftInputPackage.AvoidSoftInputView;
|
|
10
|
-
}
|
|
11
|
-
catch (_) {
|
|
12
|
-
console.warn("AvoidKeyboardView: `react-native-avoid-softinput` is not installed, falling back to `View`. No keyboard avoiding capabilties will be used.");
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated DEPRECATED
|
|
16
|
-
*/
|
|
17
|
-
const AvoidKeyboardView = ({ onKeyboardHidden, onKeyboardShown, ...rest }) => {
|
|
18
|
-
React.useEffect(() => {
|
|
19
|
-
if (AvoidSoftInput) {
|
|
20
|
-
AvoidSoftInput.setShouldMimicIOSBehavior(true);
|
|
21
|
-
}
|
|
22
|
-
return () => {
|
|
23
|
-
if (AvoidSoftInput) {
|
|
24
|
-
AvoidSoftInput.setShouldMimicIOSBehavior(false);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
}, []);
|
|
28
|
-
if (AvoidSoftInputView) {
|
|
29
|
-
return (React.createElement(AvoidSoftInputView, { onSoftInputHidden: onKeyboardHidden, onSoftInputShown: onKeyboardShown, ...rest }));
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return React.createElement(View, { ...rest });
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
export default AvoidKeyboardView;
|
|
36
|
-
//# sourceMappingURL=AvoidKeyboardView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AvoidKeyboardView.js","sourceRoot":"","sources":["AvoidKeyboardView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAOpC,iJAAiJ;AACjJ,IAAI,cAAc,GAAqC,IAAI,CAAC;AAC5D,IAAI,kBAAkB,GAAyC,IAAI,CAAC;AAEpE,IAAI,CAAC;IACH,MAAM,qBAAqB,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;IACtE,cAAc,GAAG,qBAAqB,CAAC,cAAc,CAAC;IACtD,kBAAkB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC;AAChE,CAAC;AAAC,OAAO,CAAC,EAAE,CAAC;IACX,OAAO,CAAC,IAAI,CACV,4IAA4I,CAC7I,CAAC;AACJ,CAAC;AAiBD;;GAEG;AACH,MAAM,iBAAiB,GAAqC,CAAC,EAC3D,gBAAgB,EAChB,eAAe,EACf,GAAG,IAAI,EACR,EAAE,EAAE;IACH,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,cAAc,EAAE,CAAC;YACnB,cAAc,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,GAAG,EAAE;YACV,IAAI,cAAc,EAAE,CAAC;gBACnB,cAAc,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC;YAClD,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,kBAAkB,EAAE,CAAC;QACvB,OAAO,CACL,oBAAC,kBAAkB,IACjB,iBAAiB,EAAE,gBAAgB,EACnC,gBAAgB,EAAE,eAAe,KAC7B,IAAI,GACR,CACH,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO,oBAAC,IAAI,OAAK,IAAI,GAAI,CAAC;IAC5B,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Button, Text, View, StyleSheet, Animated, } from "react-native";
|
|
3
|
-
import Surface from "../components/Surface";
|
|
4
|
-
import { withTheme } from "@draftbit/theme";
|
|
5
|
-
const ELEVATION = 1;
|
|
6
|
-
const DEFAULT_MAX_WIDTH = 960;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated DEPRECATED
|
|
9
|
-
*/
|
|
10
|
-
const Banner = ({ initiallyVisible = true, dismissable = true, icon, buttonColor, content, contentStyle, style, theme, Icon, ...rest }) => {
|
|
11
|
-
const [visible, setVisible] = React.useState(initiallyVisible);
|
|
12
|
-
React.useEffect(() => {
|
|
13
|
-
if (initiallyVisible) {
|
|
14
|
-
setVisible(true);
|
|
15
|
-
}
|
|
16
|
-
}, [initiallyVisible]);
|
|
17
|
-
const { current: position } = React.useRef(new Animated.Value(visible ? 1 : 0));
|
|
18
|
-
const [layout, setLayout] = React.useState({
|
|
19
|
-
height: 0,
|
|
20
|
-
measured: false,
|
|
21
|
-
});
|
|
22
|
-
React.useEffect(() => {
|
|
23
|
-
if (visible) {
|
|
24
|
-
// show
|
|
25
|
-
Animated.timing(position, {
|
|
26
|
-
duration: 250,
|
|
27
|
-
toValue: 1,
|
|
28
|
-
useNativeDriver: false,
|
|
29
|
-
}).start();
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
// hide
|
|
33
|
-
Animated.timing(position, {
|
|
34
|
-
duration: 200,
|
|
35
|
-
toValue: 0,
|
|
36
|
-
useNativeDriver: false,
|
|
37
|
-
}).start();
|
|
38
|
-
}
|
|
39
|
-
}, [visible, position]);
|
|
40
|
-
const handleLayout = ({ nativeEvent }) => {
|
|
41
|
-
const { height } = nativeEvent.layout;
|
|
42
|
-
setLayout({ height, measured: true });
|
|
43
|
-
};
|
|
44
|
-
// The banner animation has 2 parts:
|
|
45
|
-
// 1. Blank spacer element which animates its height to move the content
|
|
46
|
-
// 2. Actual banner which animates its translateY
|
|
47
|
-
// In initial render, we position everything normally and measure the height of the banner
|
|
48
|
-
// Once we have the height, we apply the height to the spacer and switch the banner to position: absolute
|
|
49
|
-
// We need this because we need to move the content below as if banner's height was being animated
|
|
50
|
-
// However we can't animated banner's height directly as it'll also resize the content inside
|
|
51
|
-
const height = Animated.multiply(position, layout.height);
|
|
52
|
-
const translateY = Animated.multiply(Animated.add(position, -1), layout.height);
|
|
53
|
-
return (React.createElement(Surface, { ...rest, style: [styles.container, style] },
|
|
54
|
-
React.createElement(View, { style: [styles.wrapper, contentStyle] },
|
|
55
|
-
React.createElement(Animated.View, { style: { height } }),
|
|
56
|
-
React.createElement(Animated.View, { onLayout: handleLayout, style: [
|
|
57
|
-
layout.measured || !visible
|
|
58
|
-
? // If we have measured banner's height or it's invisible,
|
|
59
|
-
// Position it absolutely, the layout will be taken care of the spacer
|
|
60
|
-
[styles.absolute, { transform: [{ translateY }] }]
|
|
61
|
-
: // Otherwise position it normally
|
|
62
|
-
null,
|
|
63
|
-
!layout.measured && !visible
|
|
64
|
-
? // If we haven't measured banner's height yet and it's invisible,
|
|
65
|
-
// hide it with opacity: 0 so user doesn't see it
|
|
66
|
-
{ opacity: 0 }
|
|
67
|
-
: null,
|
|
68
|
-
] },
|
|
69
|
-
React.createElement(View, { style: [styles.content, { marginBottom: dismissable ? 0 : 16 }] },
|
|
70
|
-
icon ? (React.createElement(View, { style: styles.icon },
|
|
71
|
-
React.createElement(Icon, { name: icon, size: 40 }))) : null,
|
|
72
|
-
React.createElement(Text, { style: [styles.message, { color: theme.colors.text.normal }], accessibilityLiveRegion: visible ? "polite" : "none", accessibilityRole: "alert" }, content)),
|
|
73
|
-
dismissable ? (React.createElement(View, { style: styles.actions },
|
|
74
|
-
React.createElement(Button, { color: buttonColor || theme.colors.branding.primary, title: "Close", onPress: () => setVisible(false) }))) : null))));
|
|
75
|
-
};
|
|
76
|
-
const styles = StyleSheet.create({
|
|
77
|
-
container: {
|
|
78
|
-
elevation: ELEVATION,
|
|
79
|
-
},
|
|
80
|
-
wrapper: {
|
|
81
|
-
overflow: "hidden",
|
|
82
|
-
alignSelf: "center",
|
|
83
|
-
width: "100%",
|
|
84
|
-
maxWidth: DEFAULT_MAX_WIDTH,
|
|
85
|
-
},
|
|
86
|
-
absolute: {
|
|
87
|
-
position: "absolute",
|
|
88
|
-
top: 0,
|
|
89
|
-
width: "100%",
|
|
90
|
-
},
|
|
91
|
-
content: {
|
|
92
|
-
flexDirection: "row",
|
|
93
|
-
justifyContent: "flex-start",
|
|
94
|
-
marginHorizontal: 8,
|
|
95
|
-
marginTop: 16,
|
|
96
|
-
marginBottom: 0,
|
|
97
|
-
},
|
|
98
|
-
icon: {
|
|
99
|
-
margin: 8,
|
|
100
|
-
},
|
|
101
|
-
message: {
|
|
102
|
-
flex: 1,
|
|
103
|
-
margin: 8,
|
|
104
|
-
},
|
|
105
|
-
actions: {
|
|
106
|
-
flexDirection: "row",
|
|
107
|
-
justifyContent: "flex-end",
|
|
108
|
-
margin: 8,
|
|
109
|
-
},
|
|
110
|
-
});
|
|
111
|
-
export default withTheme(Banner);
|
|
112
|
-
//# sourceMappingURL=Banner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.js","sourceRoot":"","sources":["Banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,MAAM,EACN,IAAI,EACJ,IAAI,EAEJ,UAAU,EAEV,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,SAAS,GAAG,CAAC,CAAC;AACpB,MAAM,iBAAiB,GAAG,GAAG,CAAC;AA4B9B;;GAEG;AACH,MAAM,MAAM,GAA6C,CAAC,EACxD,gBAAgB,GAAG,IAAI,EACvB,WAAW,GAAG,IAAI,EAClB,IAAI,EACJ,WAAW,EACX,OAAO,EACP,YAAY,EACZ,KAAK,EACL,KAAK,EACL,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAE/D,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,gBAAgB,EAAE,CAAC;YACrB,UAAU,CAAC,IAAI,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAEvB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG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C,MAAM,CAAC,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StyleSheet, View, Pressable, } from "react-native";
|
|
3
|
-
import Image from "../components/Image";
|
|
4
|
-
import Surface from "../components/Surface";
|
|
5
|
-
import { Title, Subtitle, Caption } from "../components/Typography";
|
|
6
|
-
import { withTheme } from "@draftbit/theme";
|
|
7
|
-
import Config from "../components/Config";
|
|
8
|
-
const ICON_SIZE = Config.cardIconSize;
|
|
9
|
-
const ICON_CONTAINER_SIZE = Config.cardIconSize * 2;
|
|
10
|
-
const ICON_CONTAINER_PADDING = Config.cardIconSize / 2 - 1;
|
|
11
|
-
const ICON_ELEVATION = Config.cardIconElevation;
|
|
12
|
-
export const TopRightCircleIcon = withTheme(({ Icon, icon, theme, onPress, }) => {
|
|
13
|
-
return (React.createElement(Surface, { style: {
|
|
14
|
-
justifyContent: "center",
|
|
15
|
-
alignItems: "center",
|
|
16
|
-
elevation: ICON_ELEVATION,
|
|
17
|
-
position: "absolute",
|
|
18
|
-
top: 12,
|
|
19
|
-
right: 12,
|
|
20
|
-
width: ICON_CONTAINER_SIZE,
|
|
21
|
-
height: ICON_CONTAINER_SIZE,
|
|
22
|
-
padding: ICON_CONTAINER_PADDING,
|
|
23
|
-
borderRadius: ICON_CONTAINER_SIZE,
|
|
24
|
-
backgroundColor: "rgba(0, 0, 0, 0.1)",
|
|
25
|
-
} },
|
|
26
|
-
React.createElement(Pressable, { disabled: !onPress, onPress: onPress, style: ({ pressed }) => {
|
|
27
|
-
return [
|
|
28
|
-
{
|
|
29
|
-
opacity: pressed ? 0.8 : 1,
|
|
30
|
-
},
|
|
31
|
-
];
|
|
32
|
-
} },
|
|
33
|
-
React.createElement(Icon, { name: icon, size: ICON_SIZE, color: theme.colors.background.base }))));
|
|
34
|
-
});
|
|
35
|
-
/**
|
|
36
|
-
* @deprecated DEPRECATED
|
|
37
|
-
*/
|
|
38
|
-
const Card = ({ Icon, image = Config.cardImageUrl, title, subtitle, description, textCentered, icon, aspectRatio = 1.5, elevation = 2, style, onPress, onPressIcon, titleStyle, subtitleStyle, descriptionStyle, theme, children, }) => {
|
|
39
|
-
const { backgroundColor: bgColor, padding, ...styles } = StyleSheet.flatten(style || {});
|
|
40
|
-
const backgroundColor = bgColor ? bgColor : theme.colors.background.base;
|
|
41
|
-
const innerPadding = padding ? padding : 12;
|
|
42
|
-
return (React.createElement(Surface, { style: [{ elevation, backgroundColor }, styles] },
|
|
43
|
-
React.createElement(Pressable, { disabled: !onPress, onPress: onPress, style: ({ pressed }) => {
|
|
44
|
-
return [
|
|
45
|
-
{
|
|
46
|
-
opacity: pressed ? 0.8 : 1,
|
|
47
|
-
},
|
|
48
|
-
];
|
|
49
|
-
} },
|
|
50
|
-
React.createElement(Image, { style: { aspectRatio }, source: typeof image === "string" ? { uri: image } : image, resizeMode: "cover" }),
|
|
51
|
-
React.createElement(View, { style: { padding: innerPadding } },
|
|
52
|
-
React.createElement(View, { style: { alignItems: textCentered ? "center" : "flex-start" } },
|
|
53
|
-
title || (title && title !== "") ? (React.createElement(Title, { text: title, style: titleStyle })) : null,
|
|
54
|
-
subtitle || (subtitle && subtitle !== "") ? (React.createElement(Subtitle, { text: subtitle, style: subtitleStyle })) : null,
|
|
55
|
-
description || (description && description !== "") ? (React.createElement(View, { style: { marginTop: 4 } },
|
|
56
|
-
React.createElement(Caption, { text: description, style: descriptionStyle }))) : null,
|
|
57
|
-
children)),
|
|
58
|
-
icon ? (React.createElement(TopRightCircleIcon, { Icon: Icon, icon: icon, onPress: onPressIcon })) : null)));
|
|
59
|
-
};
|
|
60
|
-
export default withTheme(Card);
|
|
61
|
-
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,UAAU,EACV,IAAI,EAKJ,SAAS,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1
|
-
import * as React from "react";
|
|
2
|
-
import { View } from "react-native";
|
|
3
|
-
import { checkboxGroupContext, Direction, } from "../components/Checkbox/context";
|
|
4
|
-
const { Provider } = checkboxGroupContext;
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated DEPRECATED
|
|
7
|
-
*/
|
|
8
|
-
const CheckboxGroup = ({ direction = Direction.Vertical, values, onValueChange = () => { }, style, children, ...rest }) => {
|
|
9
|
-
const _containerStyle = [
|
|
10
|
-
{
|
|
11
|
-
flexDirection: direction === Direction.Horizontal ? "row" : "column",
|
|
12
|
-
overflow: "hidden",
|
|
13
|
-
},
|
|
14
|
-
];
|
|
15
|
-
if (direction !== Direction.Vertical) {
|
|
16
|
-
_containerStyle.push({
|
|
17
|
-
alignItems: "center",
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return (React.createElement(View, { style: [{ minHeight: 40 }, style], ...rest },
|
|
21
|
-
React.createElement(Provider, { value: { values, onValueChange, direction } },
|
|
22
|
-
React.createElement(View, { style: _containerStyle }, children))));
|
|
23
|
-
};
|
|
24
|
-
export default CheckboxGroup;
|
|
25
|
-
//# sourceMappingURL=CheckboxGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroup.js","sourceRoot":"","sources":["CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAwB,MAAM,cAAc,CAAC;AAE1D,OAAO,EACL,oBAAoB,EACpB,SAAS,GACV,MAAM,gCAAgC,CAAC;AAWxC,MAAM,EAAE,QAAQ,EAAE,GAAG,oBAAoB,CAAC;AAE1C;;GAEG;AACH,MAAM,aAAa,GAAiC,CAAC,EACnD,SAAS,GAAG,SAAS,CAAC,QAAQ,EAC9B,MAAM,EACN,aAAa,GAAG,GAAG,EAAE,GAAE,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,eAAe,GAAyB;QAC5C;YACE,aAAa,EAAE,SAAS,KAAK,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ;YACpE,QAAQ,EAAE,QAAQ;SACnB;KACF,CAAC;IAEF,IAAI,SAAS,KAAK,SAAS,CAAC,QAAQ,EAAE,CAAC;QACrC,eAAe,CAAC,IAAI,CAAC;YACnB,UAAU,EAAE,QAAQ;SACrB,CAAC,CAAC;IACL,CAAC;IAED,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,KAAM,IAAI;QAC/C,oBAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE;YACnD,oBAAC,IAAI,IAAC,KAAK,EAAE,eAAe,IAAG,QAAQ,CAAQ,CACtC,CACN,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Image, } from "react-native";
|
|
3
|
-
import Config from "../components/Config";
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated DEPRECATED
|
|
6
|
-
*/
|
|
7
|
-
const CircleImage = ({ source = Config.placeholderImageURL, size = 60, style, ...props }) => {
|
|
8
|
-
const borderRadius = size / 2;
|
|
9
|
-
return (React.createElement(Image, { style: [{ width: size, height: size, borderRadius }, style], source: typeof source === "string" ? { uri: source } : source, resizeMode: "cover", ...props }));
|
|
10
|
-
};
|
|
11
|
-
export default CircleImage;
|
|
12
|
-
//# sourceMappingURL=CircleImage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CircleImage.js","sourceRoot":"","sources":["CircleImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,KAAK,GAIN,MAAM,cAAc,CAAC;AACtB,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAO1C;;GAEG;AACH,MAAM,WAAW,GAA6C,CAAC,EAC7D,MAAM,GAAG,MAAM,CAAC,mBAAmB,EACnC,IAAI,GAAG,EAAE,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC;IAE9B,OAAO,CACL,oBAAC,KAAK,IACJ,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,KAAK,CAAC,EAC3D,MAAM,EAAE,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,EAC7D,UAAU,EAAC,OAAO,KACd,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|