@plusscommunities/pluss-core-app 8.0.0 → 8.0.1-auth.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/actions/FollowerActions.js +4 -4
- package/dist/module/actions/FollowerActions.js.map +1 -1
- package/dist/module/actions/MediaActions.js +1 -1
- package/dist/module/actions/MediaActions.js.map +1 -1
- package/dist/module/actions/ResidentActions.js +1 -1
- package/dist/module/actions/ResidentActions.js.map +1 -1
- package/dist/module/actions/UserActions.js +1 -1
- package/dist/module/actions/UserActions.js.map +1 -1
- package/dist/module/actions/UserSettingsActions.js +1 -1
- package/dist/module/actions/UserSettingsActions.js.map +1 -1
- package/dist/module/actions/index.js +5 -5
- package/dist/module/actions/index.js.map +1 -1
- package/dist/module/actions/types.js +16 -16
- package/dist/module/actions/types.js.map +1 -1
- package/dist/module/apis/analyticsActions.js +5 -5
- package/dist/module/apis/analyticsActions.js.map +1 -1
- package/dist/module/apis/contactActions.js +6 -6
- package/dist/module/apis/contactActions.js.map +1 -1
- package/dist/module/apis/eventActions.js +28 -28
- package/dist/module/apis/eventActions.js.map +1 -1
- package/dist/module/apis/fileActions.js +15 -15
- package/dist/module/apis/fileActions.js.map +1 -1
- package/dist/module/apis/followerActions.js +8 -8
- package/dist/module/apis/followerActions.js.map +1 -1
- package/dist/module/apis/index.js +12 -12
- package/dist/module/apis/index.js.map +1 -1
- package/dist/module/apis/notificationActions.js +17 -17
- package/dist/module/apis/notificationActions.js.map +1 -1
- package/dist/module/apis/profileActions.js +4 -4
- package/dist/module/apis/profileActions.js.map +1 -1
- package/dist/module/apis/reactionActions.js +15 -15
- package/dist/module/apis/reactionActions.js.map +1 -1
- package/dist/module/apis/settingActions.js +6 -6
- package/dist/module/apis/settingActions.js.map +1 -1
- package/dist/module/apis/stringActions.js +8 -8
- package/dist/module/apis/stringActions.js.map +1 -1
- package/dist/module/apis/typeActions.js +4 -4
- package/dist/module/apis/typeActions.js.map +1 -1
- package/dist/module/apis/userActions.js +8 -8
- package/dist/module/apis/userActions.js.map +1 -1
- package/dist/module/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-light-300.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
- package/dist/module/colours.js +26 -29
- package/dist/module/colours.js.map +1 -1
- package/dist/module/components/AddButton.js +8 -8
- package/dist/module/components/AddButton.js.map +1 -1
- package/dist/module/components/AddToCalendarButton.js +30 -29
- package/dist/module/components/AddToCalendarButton.js.map +1 -1
- package/dist/module/components/Attachment.js +10 -9
- package/dist/module/components/Attachment.js.map +1 -1
- package/dist/module/components/AudienceSelectorLauncher.js +11 -11
- package/dist/module/components/AudienceSelectorLauncher.js.map +1 -1
- package/dist/module/components/AudienceSelectorPage.js +45 -44
- package/dist/module/components/AudienceSelectorPage.js.map +1 -1
- package/dist/module/components/AutoOffsetImage.js +13 -13
- package/dist/module/components/AutoOffsetImage.js.map +1 -1
- package/dist/module/components/BackButton.js +10 -10
- package/dist/module/components/BackButton.js.map +1 -1
- package/dist/module/components/CalendarPopup.js +21 -21
- package/dist/module/components/CalendarPopup.js.map +1 -1
- package/dist/module/components/CategoryTabs.js +30 -29
- package/dist/module/components/CategoryTabs.js.map +1 -1
- package/dist/module/components/CommentReply.js +43 -37
- package/dist/module/components/CommentReply.js.map +1 -1
- package/dist/module/components/CommentSection.js +74 -74
- package/dist/module/components/CommentSection.js.map +1 -1
- package/dist/module/components/ConfirmPopup.js +21 -20
- package/dist/module/components/ConfirmPopup.js.map +1 -1
- package/dist/module/components/ConfirmationPopup.js +11 -11
- package/dist/module/components/ConfirmationPopup.js.map +1 -1
- package/dist/module/components/DocumentUploader.js +50 -50
- package/dist/module/components/DocumentUploader.js.map +1 -1
- package/dist/module/components/DropDownItem.js +14 -13
- package/dist/module/components/DropDownItem.js.map +1 -1
- package/dist/module/components/DropDownMenu.js +5 -5
- package/dist/module/components/DropDownMenu.js.map +1 -1
- package/dist/module/components/EmptyStateMain.js +10 -9
- package/dist/module/components/EmptyStateMain.js.map +1 -1
- package/dist/module/components/EmptyStateWidget.js +7 -6
- package/dist/module/components/EmptyStateWidget.js.map +1 -1
- package/dist/module/components/FontScaleButton.js +5 -4
- package/dist/module/components/FontScaleButton.js.map +1 -1
- package/dist/module/components/FontScalePopup.js +11 -10
- package/dist/module/components/FontScalePopup.js.map +1 -1
- package/dist/module/components/Forbidden.js +13 -13
- package/dist/module/components/Forbidden.js.map +1 -1
- package/dist/module/components/FormCard.js +4 -4
- package/dist/module/components/FormCard.js.map +1 -1
- package/dist/module/components/FormCardSection.js +20 -18
- package/dist/module/components/FormCardSection.js.map +1 -1
- package/dist/module/components/FormCardSectionOptionLauncher.js +13 -12
- package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -1
- package/dist/module/components/FormattedText.js +18 -16
- package/dist/module/components/FormattedText.js.map +1 -1
- package/dist/module/components/GenericInput.js +24 -21
- package/dist/module/components/GenericInput.js.map +1 -1
- package/dist/module/components/GenericInputSection.js +27 -26
- package/dist/module/components/GenericInputSection.js.map +1 -1
- package/dist/module/components/Header.js +70 -69
- package/dist/module/components/Header.js.map +1 -1
- package/dist/module/components/Icon.js +109 -0
- package/dist/module/components/Icon.js.map +1 -0
- package/dist/module/components/ImagePopup.js +211 -73
- package/dist/module/components/ImagePopup.js.map +1 -1
- package/dist/module/components/ImageUploadProgress.js +10 -9
- package/dist/module/components/ImageUploadProgress.js.map +1 -1
- package/dist/module/components/ImageUploader.js +116 -96
- package/dist/module/components/ImageUploader.js.map +1 -1
- package/dist/module/components/InlineButton.js +9 -8
- package/dist/module/components/InlineButton.js.map +1 -1
- package/dist/module/components/Input.js +28 -26
- package/dist/module/components/Input.js.map +1 -1
- package/dist/module/components/LoadingCircles.js +20 -20
- package/dist/module/components/LoadingCircles.js.map +1 -1
- package/dist/module/components/LoadingIndicator.js +11 -11
- package/dist/module/components/LoadingIndicator.js.map +1 -1
- package/dist/module/components/LoadingStateWidget.js +5 -5
- package/dist/module/components/LoadingStateWidget.js.map +1 -1
- package/dist/module/components/MediaPlayer.js +31 -31
- package/dist/module/components/MediaPlayer.js.map +1 -1
- package/dist/module/components/MiddlePopup.js +17 -11
- package/dist/module/components/MiddlePopup.js.map +1 -1
- package/dist/module/components/PDFPopup.js +52 -39
- package/dist/module/components/PDFPopup.js.map +1 -1
- package/dist/module/components/PlussChat.js +168 -149
- package/dist/module/components/PlussChat.js.map +1 -1
- package/dist/module/components/PlussChatMessage.js +42 -42
- package/dist/module/components/PlussChatMessage.js.map +1 -1
- package/dist/module/components/PlussChatTime.js +18 -17
- package/dist/module/components/PlussChatTime.js.map +1 -1
- package/dist/module/components/Popup.js +20 -19
- package/dist/module/components/Popup.js.map +1 -1
- package/dist/module/components/PopupMenu.js +15 -14
- package/dist/module/components/PopupMenu.js.map +1 -1
- package/dist/module/components/PositionedImage.js +20 -20
- package/dist/module/components/PositionedImage.js.map +1 -1
- package/dist/module/components/ProfilePic.js +10 -10
- package/dist/module/components/ProfilePic.js.map +1 -1
- package/dist/module/components/RadioButton.js +10 -9
- package/dist/module/components/RadioButton.js.map +1 -1
- package/dist/module/components/Reaction.js +18 -17
- package/dist/module/components/Reaction.js.map +1 -1
- package/dist/module/components/Reactions.js +7 -7
- package/dist/module/components/Reactions.js.map +1 -1
- package/dist/module/components/SharingTools.js +78 -43
- package/dist/module/components/SharingTools.js.map +1 -1
- package/dist/module/components/Spinner.js +5 -5
- package/dist/module/components/Spinner.js.map +1 -1
- package/dist/module/components/StickyFooter.js +6 -6
- package/dist/module/components/StickyFooter.js.map +1 -1
- package/dist/module/components/Text.js +57 -0
- package/dist/module/components/Text.js.map +1 -0
- package/dist/module/components/TickIcon.js +6 -6
- package/dist/module/components/TickIcon.js.map +1 -1
- package/dist/module/components/Toggle.js +10 -9
- package/dist/module/components/Toggle.js.map +1 -1
- package/dist/module/components/TouchableSearchBar.js +18 -17
- package/dist/module/components/TouchableSearchBar.js.map +1 -1
- package/dist/module/components/UserListPopup.js +20 -19
- package/dist/module/components/UserListPopup.js.map +1 -1
- package/dist/module/components/UserListing.js +41 -40
- package/dist/module/components/UserListing.js.map +1 -1
- package/dist/module/components/VideoPopup.js +20 -20
- package/dist/module/components/VideoPopup.js.map +1 -1
- package/dist/module/components/WarningPopup.js +21 -20
- package/dist/module/components/WarningPopup.js.map +1 -1
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +13 -13
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -1
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js +24 -23
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -1
- package/dist/module/components/index.js +59 -58
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +94 -64
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -1
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +64 -64
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -1
- package/dist/module/config.js +15 -10
- package/dist/module/config.js.map +1 -1
- package/dist/module/constants.js +3 -4
- package/dist/module/constants.js.map +1 -1
- package/dist/module/helper.js +83 -82
- package/dist/module/helper.js.map +1 -1
- package/dist/module/index.js +12 -12
- package/dist/module/index.js.map +1 -1
- package/dist/module/js/images/detectFaces.js +11 -10
- package/dist/module/js/images/detectFaces.js.map +1 -1
- package/dist/module/js/images/findLandmarkRange.js +8 -8
- package/dist/module/js/images/findLandmarkRange.js.map +1 -1
- package/dist/module/js/images/getScaledOffset.js.map +1 -1
- package/dist/module/js/site/getSiteLevelFromState.js +2 -2
- package/dist/module/js/site/getSiteLevelFromState.js.map +1 -1
- package/dist/module/js/site/isTVEnabled.js +2 -2
- package/dist/module/js/site/isTVEnabled.js.map +1 -1
- package/dist/module/session.js +6 -6
- package/dist/module/session.js.map +1 -1
- package/dist/module/styles.js +17 -17
- package/dist/module/styles.js.map +1 -1
- package/dist/module/withNavigationFocus.js +30 -0
- package/dist/module/withNavigationFocus.js.map +1 -0
- package/package.json +71 -68
- package/src/actions/FollowerActions.js +36 -32
- package/src/actions/MediaActions.js +25 -20
- package/src/actions/ResidentActions.js +26 -21
- package/src/actions/UserActions.js +22 -22
- package/src/actions/UserSettingsActions.js +11 -11
- package/src/actions/index.js +5 -5
- package/src/actions/types.js +16 -16
- package/src/apis/analyticsActions.js +17 -17
- package/src/apis/contactActions.js +20 -20
- package/src/apis/eventActions.js +153 -144
- package/src/apis/fileActions.js +96 -86
- package/src/apis/followerActions.js +29 -29
- package/src/apis/index.js +12 -12
- package/src/apis/notificationActions.js +44 -44
- package/src/apis/profileActions.js +8 -8
- package/src/apis/reactionActions.js +81 -73
- package/src/apis/settingActions.js +15 -15
- package/src/apis/stringActions.js +29 -25
- package/src/apis/typeActions.js +10 -10
- package/src/apis/userActions.js +93 -93
- package/src/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
- package/src/assets/icons/fontawesome/fa-light-300.ttf +0 -0
- package/src/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
- package/src/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
- package/src/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
- package/src/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
- package/src/colours.js +116 -96
- package/src/components/AddButton.js +32 -27
- package/src/components/AddToCalendarButton.js +236 -202
- package/src/components/Attachment.js +59 -36
- package/src/components/AudienceSelectorLauncher.js +52 -48
- package/src/components/AudienceSelectorPage.js +353 -311
- package/src/components/AutoOffsetImage.js +237 -196
- package/src/components/BackButton.js +57 -41
- package/src/components/CalendarPopup.js +127 -97
- package/src/components/CategoryTabs.js +208 -163
- package/src/components/CommentReply.js +370 -309
- package/src/components/CommentSection.js +974 -781
- package/src/components/ConfirmPopup.js +141 -110
- package/src/components/ConfirmationPopup.js +80 -69
- package/src/components/DocumentUploader.js +245 -215
- package/src/components/DropDownItem.js +70 -60
- package/src/components/DropDownMenu.js +31 -27
- package/src/components/EmptyStateMain.js +51 -44
- package/src/components/EmptyStateWidget.js +47 -38
- package/src/components/FontScaleButton.js +29 -25
- package/src/components/FontScalePopup.js +67 -56
- package/src/components/Forbidden.js +48 -46
- package/src/components/FormCard.js +21 -17
- package/src/components/FormCardSection.js +284 -233
- package/src/components/FormCardSectionOptionLauncher.js +72 -46
- package/src/components/FormattedText.js +128 -111
- package/src/components/GenericInput.js +168 -136
- package/src/components/GenericInputSection.js +209 -161
- package/src/components/Header.js +620 -474
- package/src/components/Icon.js +119 -0
- package/src/components/ImagePopup.js +425 -221
- package/src/components/ImageUploadProgress.js +49 -41
- package/src/components/ImageUploader.js +968 -797
- package/src/components/InlineButton.js +79 -69
- package/src/components/Input.js +190 -156
- package/src/components/LoadingCircles.js +233 -233
- package/src/components/LoadingIndicator.js +87 -76
- package/src/components/LoadingStateWidget.js +47 -37
- package/src/components/MediaPlayer.js +416 -387
- package/src/components/MiddlePopup.js +62 -33
- package/src/components/PDFPopup.js +212 -159
- package/src/components/PlussChat.js +1224 -1025
- package/src/components/PlussChatMessage.js +329 -298
- package/src/components/PlussChatTime.js +57 -53
- package/src/components/Popup.js +138 -116
- package/src/components/PopupMenu.js +140 -110
- package/src/components/PositionedImage.js +281 -237
- package/src/components/ProfilePic.js +122 -113
- package/src/components/RadioButton.js +76 -52
- package/src/components/Reaction.js +134 -96
- package/src/components/Reactions.js +65 -63
- package/src/components/SharingTools.js +185 -134
- package/src/components/Spinner.js +13 -13
- package/src/components/StickyFooter.js +36 -26
- package/src/components/Text.js +62 -0
- package/src/components/TickIcon.js +20 -20
- package/src/components/Toggle.js +74 -73
- package/src/components/TouchableSearchBar.js +68 -50
- package/src/components/UserListPopup.js +161 -124
- package/src/components/UserListing.js +273 -238
- package/src/components/VideoPopup.js +110 -96
- package/src/components/WarningPopup.js +92 -71
- package/src/components/expo-image-picker-multiple/ImageBrowser.js +288 -256
- package/src/components/expo-image-picker-multiple/ImageTile.js +108 -84
- package/src/components/index.js +59 -58
- package/src/components/react-native-expo-image-cropper/ExpoImageManipulator.js +444 -359
- package/src/components/react-native-expo-image-cropper/ImageCropOverlay.js +420 -324
- package/src/config.js +26 -21
- package/src/constants.js +8 -10
- package/src/helper.js +469 -438
- package/src/index.js +24 -12
- package/src/js/images/detectFaces.js +28 -21
- package/src/js/images/findLandmarkRange.js +97 -90
- package/src/js/images/getScaledOffset.js +80 -75
- package/src/js/site/getSiteLevelFromState.js +26 -26
- package/src/js/site/isTVEnabled.js +10 -10
- package/src/session.js +32 -32
- package/src/styles.js +61 -61
- package/src/withNavigationFocus.js +28 -0
- package/dist/module/components/TextStyle.js +0 -45
- package/dist/module/components/TextStyle.js.map +0 -1
- package/dist/module/fonts/index.js +0 -2
- package/dist/module/fonts/index.js.map +0 -1
- package/dist/module/fonts/pluss60-icons.js +0 -5
- package/dist/module/fonts/pluss60-icons.js.map +0 -1
- package/dist/module/fonts/pluss60-icons.json +0 -1097
- package/src/components/TextStyle.js +0 -48
- package/src/fonts/index.js +0 -1
- package/src/fonts/pluss60-icons.js +0 -7
- package/src/fonts/pluss60-icons.json +0 -1097
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React, { Component } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
import { Text } from "@plusscommunities/pluss-core-app/components";
|
|
3
|
+
import { Animated, View, StatusBar, Image, Dimensions, TouchableOpacity, Platform } from "react-native";
|
|
4
|
+
import { Icon } from "@rneui/themed";
|
|
5
|
+
import { LinearGradient } from "expo-linear-gradient";
|
|
6
|
+
import { connect } from "react-redux";
|
|
6
7
|
// import {
|
|
7
8
|
// StatusBarHeight,
|
|
8
9
|
// COLOUR_TRANSPARENT,
|
|
@@ -14,10 +15,10 @@ import { connect } from 'react-redux';
|
|
|
14
15
|
// hexToRGBAstring,
|
|
15
16
|
// getSiteSettingFromState,
|
|
16
17
|
// } from '../../js';
|
|
17
|
-
import { StatusBarHeight, getSiteSettingFromState } from
|
|
18
|
-
import { COLOUR_TRANSPARENT, TEXT_DARK, TEXT_LIGHT, LINEGREY, COLOUR_GREEN, getMainBrandingColourFromState, hexToRGBAstring } from
|
|
19
|
-
import {
|
|
20
|
-
import Config from
|
|
18
|
+
import { StatusBarHeight, getSiteSettingFromState } from "../helper";
|
|
19
|
+
import { COLOUR_TRANSPARENT, TEXT_DARK, TEXT_LIGHT, LINEGREY, COLOUR_GREEN, getMainBrandingColourFromState, hexToRGBAstring } from "../colours";
|
|
20
|
+
import { FontAwesome } from "./Icon";
|
|
21
|
+
import Config from "../config";
|
|
21
22
|
// import { HAS_GRADIENT_HEADER } from '../../config';
|
|
22
23
|
|
|
23
24
|
class Header extends Component {
|
|
@@ -27,16 +28,16 @@ class Header extends Component {
|
|
|
27
28
|
}
|
|
28
29
|
UNSAFE_componentWillMount() {
|
|
29
30
|
let barStyle = Platform.select({
|
|
30
|
-
ios:
|
|
31
|
-
android:
|
|
31
|
+
ios: "dark-content",
|
|
32
|
+
android: "default"
|
|
32
33
|
});
|
|
33
34
|
if (this.props.barStyle) {
|
|
34
35
|
barStyle = this.props.barStyle;
|
|
35
|
-
} else if (this.props.headerType !==
|
|
36
|
-
barStyle =
|
|
36
|
+
} else if (this.props.headerType !== "white" && !this.props.noGradient && !this.props.transparent) {
|
|
37
|
+
barStyle = "light-content";
|
|
37
38
|
}
|
|
38
39
|
this.setState({
|
|
39
|
-
windowWidth: Dimensions.get(
|
|
40
|
+
windowWidth: Dimensions.get("window").width,
|
|
40
41
|
barStyle
|
|
41
42
|
});
|
|
42
43
|
}
|
|
@@ -46,9 +47,9 @@ class Header extends Component {
|
|
|
46
47
|
color: this.props.textColour
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
if (this.props.headerType !==
|
|
50
|
+
if (this.props.headerType !== "white" && !this.props.noGradient && !this.props.transparent) {
|
|
50
51
|
return {
|
|
51
|
-
color:
|
|
52
|
+
color: "#fff"
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
return null;
|
|
@@ -65,7 +66,7 @@ class Header extends Component {
|
|
|
65
66
|
}
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
|
-
if (this.props.headerType ===
|
|
69
|
+
if (this.props.headerType === "pattern" && !this.props.noGradient && !this.props.transparent) {
|
|
69
70
|
return /*#__PURE__*/React.createElement(View, {
|
|
70
71
|
style: [styles.thumbnailStyle, this.props.contentContainerStyle, {
|
|
71
72
|
backgroundColor: this.props.colourBrandingMain,
|
|
@@ -80,7 +81,7 @@ class Header extends Component {
|
|
|
80
81
|
}
|
|
81
82
|
}));
|
|
82
83
|
}
|
|
83
|
-
if (this.props.headerType ===
|
|
84
|
+
if (this.props.headerType === "block" && !this.props.noGradient && !this.props.transparent) {
|
|
84
85
|
return /*#__PURE__*/React.createElement(View, {
|
|
85
86
|
style: [styles.thumbnailStyle, this.props.contentContainerStyle, {
|
|
86
87
|
backgroundColor: this.props.colourBrandingMain,
|
|
@@ -88,7 +89,7 @@ class Header extends Component {
|
|
|
88
89
|
}, this.props.popupHeader && styles.thumbnailPopupHeader]
|
|
89
90
|
});
|
|
90
91
|
}
|
|
91
|
-
if (this.props.headerType ===
|
|
92
|
+
if (this.props.headerType === "gradient" && !this.props.noGradient && !this.props.transparent) {
|
|
92
93
|
return /*#__PURE__*/React.createElement(View, {
|
|
93
94
|
style: [styles.thumbnailStyle, this.props.contentContainerStyle, {
|
|
94
95
|
width: this.state.windowWidth
|
|
@@ -126,7 +127,7 @@ class Header extends Component {
|
|
|
126
127
|
if (this.props.leftText) {
|
|
127
128
|
return /*#__PURE__*/React.createElement(View, {
|
|
128
129
|
style: [styles.headerContentIcon, {
|
|
129
|
-
width:
|
|
130
|
+
width: "auto"
|
|
130
131
|
}]
|
|
131
132
|
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
132
133
|
onPress: this.props.onPressLeft,
|
|
@@ -136,12 +137,12 @@ class Header extends Component {
|
|
|
136
137
|
paddingRight: 5,
|
|
137
138
|
paddingLeft: 15,
|
|
138
139
|
color: this.props.colourBrandingMain
|
|
139
|
-
}, this.props.leftTextStyle, this.props.headerType !==
|
|
140
|
-
color:
|
|
140
|
+
}, this.props.leftTextStyle, this.props.headerType !== "white" && !this.props.noGradient && !this.props.transparent && {
|
|
141
|
+
color: "#fff"
|
|
141
142
|
}]
|
|
142
143
|
}, this.props.leftText)));
|
|
143
144
|
}
|
|
144
|
-
if (this.props.leftIconType && this.props.leftIconType ===
|
|
145
|
+
if (this.props.leftIconType && this.props.leftIconType === "pluss") {
|
|
145
146
|
return /*#__PURE__*/React.createElement(View, {
|
|
146
147
|
style: styles.headerContentIcon
|
|
147
148
|
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
@@ -149,7 +150,7 @@ class Header extends Component {
|
|
|
149
150
|
activeOpacity: 0.6
|
|
150
151
|
}, /*#__PURE__*/React.createElement(View, {
|
|
151
152
|
style: styles.headerContentIcon
|
|
152
|
-
}, /*#__PURE__*/React.createElement(
|
|
153
|
+
}, /*#__PURE__*/React.createElement(FontAwesome, {
|
|
153
154
|
name: this.props.leftIcon,
|
|
154
155
|
style: [styles.leftIcon, this.props.leftIconStyle, this.getTextColourStyle()]
|
|
155
156
|
}), this.renderLeftBubble())));
|
|
@@ -208,7 +209,7 @@ class Header extends Component {
|
|
|
208
209
|
if (this.props.rightText && this.props.onPressRight) {
|
|
209
210
|
return /*#__PURE__*/React.createElement(View, {
|
|
210
211
|
style: [styles.headerContentIcon, {
|
|
211
|
-
width:
|
|
212
|
+
width: "auto"
|
|
212
213
|
}, this.props.absoluteRight && styles.absoluteRight, this.props.rightContainerStyle]
|
|
213
214
|
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
214
215
|
onPress: this.props.onPressRight,
|
|
@@ -217,8 +218,8 @@ class Header extends Component {
|
|
|
217
218
|
style: [styles.buttonText, {
|
|
218
219
|
paddingRight: 15,
|
|
219
220
|
paddingLeft: 5,
|
|
220
|
-
textAlign:
|
|
221
|
-
fontFamily:
|
|
221
|
+
textAlign: "right",
|
|
222
|
+
fontFamily: "sf-semibold",
|
|
222
223
|
color: this.props.colourBrandingMain
|
|
223
224
|
}, this.getTextColourStyle(), this.props.optionalRightStyle]
|
|
224
225
|
}, this.props.rightText)));
|
|
@@ -243,15 +244,15 @@ class Header extends Component {
|
|
|
243
244
|
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
244
245
|
onPress: this.props.onPressRight,
|
|
245
246
|
activeOpacity: 0.6
|
|
246
|
-
}, this.props.rightIconType && this.props.rightIconType ===
|
|
247
|
+
}, this.props.rightIconType && this.props.rightIconType === "pluss" ? /*#__PURE__*/React.createElement(View, {
|
|
247
248
|
style: styles.headerContentIcon
|
|
248
|
-
}, /*#__PURE__*/React.createElement(
|
|
249
|
+
}, /*#__PURE__*/React.createElement(FontAwesome, {
|
|
249
250
|
name: this.props.rightIcon,
|
|
250
251
|
style: [styles.rightIcon, this.getTextColourStyle(), this.props.rightIconStyle]
|
|
251
252
|
})) : /*#__PURE__*/React.createElement(Icon, {
|
|
252
253
|
name: this.props.rightIcon,
|
|
253
254
|
style: styles.headerContentIcon,
|
|
254
|
-
type: this.props.rightIconType ? this.props.rightIconType :
|
|
255
|
+
type: this.props.rightIconType ? this.props.rightIconType : "font-awesome",
|
|
255
256
|
iconStyle: [styles.rightIcon, this.getTextColourStyle(), this.props.rightIconStyle]
|
|
256
257
|
}));
|
|
257
258
|
}
|
|
@@ -288,12 +289,12 @@ class Header extends Component {
|
|
|
288
289
|
}
|
|
289
290
|
const styles = {
|
|
290
291
|
container: {
|
|
291
|
-
alignSelf:
|
|
292
|
-
backgroundColor:
|
|
292
|
+
alignSelf: "stretch",
|
|
293
|
+
backgroundColor: "#fff",
|
|
293
294
|
zIndex: 10
|
|
294
295
|
},
|
|
295
296
|
containerShadow: {
|
|
296
|
-
shadowColor:
|
|
297
|
+
shadowColor: "#000",
|
|
297
298
|
shadowOffset: {
|
|
298
299
|
width: 0,
|
|
299
300
|
height: 1
|
|
@@ -318,8 +319,8 @@ const styles = {
|
|
|
318
319
|
},
|
|
319
320
|
contentContainer: {
|
|
320
321
|
height: StatusBarHeight(70),
|
|
321
|
-
alignSelf:
|
|
322
|
-
flexDirection:
|
|
322
|
+
alignSelf: "stretch",
|
|
323
|
+
flexDirection: "row"
|
|
323
324
|
},
|
|
324
325
|
popupContentContainer: {
|
|
325
326
|
height: 70,
|
|
@@ -334,21 +335,21 @@ const styles = {
|
|
|
334
335
|
thumbnailStyle: {
|
|
335
336
|
height: StatusBarHeight(70),
|
|
336
337
|
width: null,
|
|
337
|
-
position:
|
|
338
|
+
position: "absolute",
|
|
338
339
|
top: 0,
|
|
339
340
|
left: 0,
|
|
340
|
-
resizeMode:
|
|
341
|
+
resizeMode: "cover"
|
|
341
342
|
},
|
|
342
343
|
thumbnailPopupHeader: {
|
|
343
344
|
height: 70,
|
|
344
|
-
width:
|
|
345
|
+
width: "100%",
|
|
345
346
|
borderTopLeftRadius: 12,
|
|
346
347
|
borderTopRightRadius: 12,
|
|
347
|
-
overflow:
|
|
348
|
+
overflow: "hidden"
|
|
348
349
|
},
|
|
349
350
|
headerContent: {
|
|
350
|
-
alignSelf:
|
|
351
|
-
flexDirection:
|
|
351
|
+
alignSelf: "stretch",
|
|
352
|
+
flexDirection: "row",
|
|
352
353
|
flex: 1,
|
|
353
354
|
paddingTop: StatusBarHeight(0)
|
|
354
355
|
},
|
|
@@ -358,14 +359,14 @@ const styles = {
|
|
|
358
359
|
headerContentIcon: {
|
|
359
360
|
height: 70,
|
|
360
361
|
width: 55,
|
|
361
|
-
alignItems:
|
|
362
|
-
flexDirection:
|
|
363
|
-
justifyContent:
|
|
362
|
+
alignItems: "center",
|
|
363
|
+
flexDirection: "row",
|
|
364
|
+
justifyContent: "space-between"
|
|
364
365
|
},
|
|
365
366
|
absoluteRight: {
|
|
366
367
|
height: 70,
|
|
367
|
-
justifyContent:
|
|
368
|
-
position:
|
|
368
|
+
justifyContent: "center",
|
|
369
|
+
position: "absolute",
|
|
369
370
|
right: 0,
|
|
370
371
|
top: StatusBarHeight(0)
|
|
371
372
|
},
|
|
@@ -373,35 +374,35 @@ const styles = {
|
|
|
373
374
|
fontSize: 25,
|
|
374
375
|
padding: 15,
|
|
375
376
|
width: 55,
|
|
376
|
-
textAlign:
|
|
377
|
+
textAlign: "center",
|
|
377
378
|
color: TEXT_LIGHT
|
|
378
379
|
},
|
|
379
380
|
headerTextContainer: {
|
|
380
381
|
height: 70,
|
|
381
382
|
flex: 1,
|
|
382
|
-
alignItems:
|
|
383
|
-
flexDirection:
|
|
384
|
-
justifyContent:
|
|
383
|
+
alignItems: "center",
|
|
384
|
+
flexDirection: "row",
|
|
385
|
+
justifyContent: "space-between"
|
|
385
386
|
},
|
|
386
387
|
headerText: {
|
|
387
388
|
fontSize: 16,
|
|
388
389
|
flex: 1,
|
|
389
|
-
fontFamily:
|
|
390
|
+
fontFamily: "sf-semibold",
|
|
390
391
|
color: TEXT_DARK,
|
|
391
|
-
textAlign:
|
|
392
|
-
backgroundColor:
|
|
392
|
+
textAlign: "center",
|
|
393
|
+
backgroundColor: "rgba(255,255,255,0)"
|
|
393
394
|
},
|
|
394
395
|
buttonText: {
|
|
395
396
|
fontSize: 15,
|
|
396
|
-
fontFamily:
|
|
397
|
+
fontFamily: "sf-regular",
|
|
397
398
|
width: 80,
|
|
398
|
-
backgroundColor:
|
|
399
|
+
backgroundColor: "rgba(255,255,255,0)"
|
|
399
400
|
},
|
|
400
401
|
rightIcon: {
|
|
401
402
|
fontSize: 25,
|
|
402
403
|
padding: 15,
|
|
403
404
|
width: 55,
|
|
404
|
-
textAlign:
|
|
405
|
+
textAlign: "center",
|
|
405
406
|
color: TEXT_LIGHT
|
|
406
407
|
},
|
|
407
408
|
rightImage: {
|
|
@@ -414,19 +415,19 @@ const styles = {
|
|
|
414
415
|
top: 15,
|
|
415
416
|
right: 5,
|
|
416
417
|
borderRadius: 10,
|
|
417
|
-
position:
|
|
418
|
+
position: "absolute",
|
|
418
419
|
height: 20,
|
|
419
420
|
minWidth: 20,
|
|
420
421
|
backgroundColor: COLOUR_GREEN,
|
|
421
|
-
justifyContent:
|
|
422
|
+
justifyContent: "center"
|
|
422
423
|
},
|
|
423
424
|
counterText: {
|
|
424
|
-
color:
|
|
425
|
-
textAlign:
|
|
426
|
-
fontFamily:
|
|
425
|
+
color: "#fff",
|
|
426
|
+
textAlign: "center",
|
|
427
|
+
fontFamily: "sf-bold",
|
|
427
428
|
fontSize: 10,
|
|
428
429
|
lineHeight: 12,
|
|
429
|
-
backgroundColor:
|
|
430
|
+
backgroundColor: "transparent"
|
|
430
431
|
},
|
|
431
432
|
smallCounter: {
|
|
432
433
|
width: 5,
|
|
@@ -436,22 +437,22 @@ const styles = {
|
|
|
436
437
|
right: 10
|
|
437
438
|
},
|
|
438
439
|
headerPattern: {
|
|
439
|
-
position:
|
|
440
|
+
position: "absolute",
|
|
440
441
|
top: 0,
|
|
441
442
|
left: 0,
|
|
442
443
|
right: 0,
|
|
443
444
|
bottom: 0,
|
|
444
|
-
width:
|
|
445
|
-
height:
|
|
446
|
-
resizeMode:
|
|
445
|
+
width: "100%",
|
|
446
|
+
height: "100%",
|
|
447
|
+
resizeMode: "cover"
|
|
447
448
|
}
|
|
448
449
|
};
|
|
449
450
|
const mapStateToProps = state => {
|
|
450
451
|
return {
|
|
451
452
|
colourBrandingMain: getMainBrandingColourFromState(state),
|
|
452
|
-
headerType: getSiteSettingFromState(state,
|
|
453
|
-
headerPattern: getSiteSettingFromState(state,
|
|
454
|
-
patternColour: getSiteSettingFromState(state,
|
|
453
|
+
headerType: getSiteSettingFromState(state, "HeaderType", getSiteSettingFromState(state, "UseGradientHeader", Config.env.hasGradientHeader) ? "gradient" : "white"),
|
|
454
|
+
headerPattern: getSiteSettingFromState(state, "HeaderPattern"),
|
|
455
|
+
patternColour: getSiteSettingFromState(state, "PatternColour")
|
|
455
456
|
};
|
|
456
457
|
};
|
|
457
458
|
export default connect(mapStateToProps, {})(Header);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","Animated","View","StatusBar","Image","Dimensions","TouchableOpacity","Text","Platform","Icon","LinearGradient","connect","StatusBarHeight","getSiteSettingFromState","COLOUR_TRANSPARENT","TEXT_DARK","TEXT_LIGHT","LINEGREY","COLOUR_GREEN","getMainBrandingColourFromState","hexToRGBAstring","Pl60Icon","Config","Header","constructor","props","state","UNSAFE_componentWillMount","barStyle","select","ios","android","headerType","noGradient","transparent","setState","windowWidth","get","width","getTextColourStyle","textColour","color","renderBackground","headerBackground","headerImage","createElement","style","styles","thumbnailStyle","source","uri","contentContainerStyle","backgroundColor","colourBrandingMain","popupHeader","thumbnailPopupHeader","headerPattern","patternColour","tintColor","flex","colors","start","x","y","end","locations","renderLeftBubble","hasLeftBubble","counter","smallCounter","renderLeftIcon","leftIcon","leftText","onPressLeft","headerContentIcon","onPress","activeOpacity","buttonText","paddingRight","paddingLeft","leftTextStyle","leftIconType","name","leftIconStyle","type","iconStyle","renderHeaderText","text","centerContent","onTextPress","headerTextContainer","rightIcon","rightText","absoluteRight","textContainerStyle","headerText","textStyle","numberOfLines","ellipsizeMode","absoluteLeft","renderRightIcon","rightContent","onPressRight","rightContainerStyle","textAlign","fontFamily","optionalRightStyle","rightImage","resizeMode","rightIconType","rightIconStyle","render","animatedHeader","container","noShadow","containerShadow","transparentContainer","headerColourOffset","elevation","headerElev","shadowColor","headerShadow","translucent","headerContent","children","extraHeaderContent","lineSeparated","colourBrandingHeader","contentContainer","popupContentContainer","headerContentPopup","alignSelf","zIndex","shadowOffset","height","shadowOpacity","shadowRadius","borderBottomWidth","borderColor","borderTopLeftRadius","borderTopRightRadius","flexDirection","position","top","left","overflow","paddingTop","alignItems","justifyContent","right","fontSize","padding","marginRight","marginLeft","borderRadius","minWidth","counterText","lineHeight","bottom","mapStateToProps","env","hasGradientHeader"],"sources":["Header.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { Animated, View, StatusBar, Image, Dimensions, TouchableOpacity, Text, Platform } from 'react-native';\nimport { Icon } from '@rneui/themed';\nimport { LinearGradient } from 'expo-linear-gradient';\nimport { connect } from 'react-redux';\n// import {\n// StatusBarHeight,\n// COLOUR_TRANSPARENT,\n// TEXT_DARK,\n// TEXT_LIGHT,\n// LINEGREY,\n// COLOUR_GREEN,\n// getMainBrandingColourFromState,\n// hexToRGBAstring,\n// getSiteSettingFromState,\n// } from '../../js';\nimport { StatusBarHeight, getSiteSettingFromState } from '../helper';\nimport {\n COLOUR_TRANSPARENT,\n TEXT_DARK,\n TEXT_LIGHT,\n LINEGREY,\n COLOUR_GREEN,\n getMainBrandingColourFromState,\n hexToRGBAstring,\n} from '../colours';\nimport { Pl60Icon } from '../fonts';\nimport Config from '../config';\n// import { HAS_GRADIENT_HEADER } from '../../config';\n\nclass Header extends Component {\n constructor(props) {\n super(props);\n\n this.state = {};\n }\n\n UNSAFE_componentWillMount() {\n let barStyle = Platform.select({ ios: 'dark-content', android: 'default' });\n if (this.props.barStyle) {\n barStyle = this.props.barStyle;\n } else if (this.props.headerType !== 'white' && !this.props.noGradient && !this.props.transparent) {\n barStyle = 'light-content';\n }\n this.setState({ windowWidth: Dimensions.get('window').width, barStyle });\n }\n\n getTextColourStyle() {\n if (this.props.textColour) {\n return { color: this.props.textColour };\n }\n if (this.props.headerType !== 'white' && !this.props.noGradient && !this.props.transparent) {\n return { color: '#fff' };\n }\n return null;\n }\n\n renderBackground() {\n if (this.props.headerBackground) return this.props.headerBackground;\n if (this.props.headerImage) {\n return <Image style={[styles.thumbnailStyle, { width: this.state.windowWidth }]} source={{ uri: this.props.headerImage }} />;\n }\n if (this.props.headerType === 'pattern' && !this.props.noGradient && !this.props.transparent) {\n return (\n <View\n style={[\n styles.thumbnailStyle,\n this.props.contentContainerStyle,\n { backgroundColor: this.props.colourBrandingMain, width: this.state.windowWidth },\n this.props.popupHeader && styles.thumbnailPopupHeader,\n ]}\n >\n <Image\n style={[styles.headerPattern, this.props.patternColour && { tintColor: this.props.patternColour }]}\n source={{ uri: this.props.headerPattern }}\n />\n </View>\n );\n }\n if (this.props.headerType === 'block' && !this.props.noGradient && !this.props.transparent) {\n return (\n <View\n style={[\n styles.thumbnailStyle,\n this.props.contentContainerStyle,\n { backgroundColor: this.props.colourBrandingMain, width: this.state.windowWidth },\n this.props.popupHeader && styles.thumbnailPopupHeader,\n ]}\n />\n );\n }\n if (this.props.headerType === 'gradient' && !this.props.noGradient && !this.props.transparent) {\n return (\n <View\n style={[\n styles.thumbnailStyle,\n this.props.contentContainerStyle,\n { width: this.state.windowWidth },\n this.props.popupHeader && styles.thumbnailPopupHeader,\n ]}\n >\n <LinearGradient\n style={{ flex: 1 }}\n colors={[this.props.colourBrandingMain, hexToRGBAstring(this.props.colourBrandingMain, 0.7)]}\n start={{ x: 0, y: 0 }}\n end={{ x: 1, y: 1 }}\n locations={[0.4, 1]}\n />\n </View>\n );\n }\n return null;\n }\n\n renderLeftBubble() {\n if (!this.props.hasLeftBubble) {\n return null;\n }\n return <View style={[styles.counter, styles.smallCounter]} />;\n }\n\n renderLeftIcon() {\n if ((!this.props.leftIcon && !this.props.leftText) || !this.props.onPressLeft) {\n return null;\n }\n if (this.props.leftText) {\n return (\n <View style={[styles.headerContentIcon, { width: 'auto' }]}>\n <TouchableOpacity onPress={this.props.onPressLeft} activeOpacity={0.6}>\n <Text\n style={[\n styles.buttonText,\n { paddingRight: 5, paddingLeft: 15, color: this.props.colourBrandingMain },\n this.props.leftTextStyle,\n this.props.headerType !== 'white' && !this.props.noGradient && !this.props.transparent && { color: '#fff' },\n ]}\n >\n {this.props.leftText}\n </Text>\n </TouchableOpacity>\n </View>\n );\n }\n if (this.props.leftIconType && this.props.leftIconType === 'pluss') {\n return (\n <View style={styles.headerContentIcon}>\n <TouchableOpacity onPress={this.props.onPressLeft} activeOpacity={0.6}>\n <View style={styles.headerContentIcon}>\n <Pl60Icon name={this.props.leftIcon} style={[styles.leftIcon, this.props.leftIconStyle, this.getTextColourStyle()]} />\n {this.renderLeftBubble()}\n </View>\n </TouchableOpacity>\n </View>\n );\n }\n return (\n <View style={styles.headerContentIcon}>\n <TouchableOpacity onPress={this.props.onPressLeft} activeOpacity={0.6}>\n <Icon\n name={this.props.leftIcon}\n style={styles.headerContentIcon}\n type=\"font-awesome\"\n iconStyle={[styles.leftIcon, this.props.leftIconStyle, this.getTextColourStyle()]}\n />\n {this.renderLeftBubble()}\n </TouchableOpacity>\n </View>\n );\n }\n\n renderHeaderText() {\n if (!this.props.text) {\n if (this.props.centerContent) {\n return this.props.centerContent;\n }\n return null;\n }\n if (this.props.onTextPress) {\n return (\n <TouchableOpacity\n onPress={this.props.onTextPress}\n activeOpacity={0.6}\n style={[\n styles.headerTextContainer,\n this.props.leftIcon && ((!this.props.rightIcon && !this.props.rightText) || this.props.absoluteRight) && { paddingRight: 55 },\n this.props.textContainerStyle,\n ]}\n >\n <Text style={[styles.headerText, this.props.textStyle, this.getTextColourStyle()]} numberOfLines={1} ellipsizeMode=\"tail\">\n {this.props.text}\n </Text>\n </TouchableOpacity>\n );\n }\n return (\n <View\n style={[\n styles.headerTextContainer,\n this.props.leftIcon && ((!this.props.rightIcon && !this.props.rightText) || this.props.absoluteRight) && { paddingRight: 55 },\n this.props.rightIcon && ((!this.props.leftIcon && !this.props.leftText) || this.props.absoluteLeft) && { paddingLeft: 55 },\n this.props.textContainerStyle,\n ]}\n >\n <Text style={[styles.headerText, this.props.textStyle, this.getTextColourStyle()]} numberOfLines={1} ellipsizeMode=\"tail\">\n {this.props.text}\n </Text>\n </View>\n );\n }\n\n renderRightIcon() {\n if (this.props.rightContent) {\n return this.props.rightContent;\n }\n if (!this.props.onPressRight) {\n return null;\n }\n if (this.props.rightText && this.props.onPressRight) {\n return (\n <View\n style={[\n styles.headerContentIcon,\n { width: 'auto' },\n this.props.absoluteRight && styles.absoluteRight,\n this.props.rightContainerStyle,\n ]}\n >\n <TouchableOpacity onPress={this.props.onPressRight} activeOpacity={0.6}>\n <Text\n style={[\n styles.buttonText,\n { paddingRight: 15, paddingLeft: 5, textAlign: 'right', fontFamily: 'sf-semibold', color: this.props.colourBrandingMain },\n this.getTextColourStyle(),\n this.props.optionalRightStyle,\n ]}\n >\n {this.props.rightText}\n </Text>\n </TouchableOpacity>\n </View>\n );\n }\n if (!this.props.rightIcon) {\n if (this.props.rightImage) {\n return (\n <TouchableOpacity onPress={this.props.onPressRight} activeOpacity={0.6}>\n <View style={styles.headerContentIcon}>\n <Image source={{ uri: this.props.rightImage }} style={styles.rightImage} resizeMode=\"contain\" />\n </View>\n </TouchableOpacity>\n );\n }\n return null;\n }\n return (\n <TouchableOpacity onPress={this.props.onPressRight} activeOpacity={0.6}>\n {this.props.rightIconType && this.props.rightIconType === 'pluss' ? (\n <View style={styles.headerContentIcon}>\n <Pl60Icon name={this.props.rightIcon} style={[styles.rightIcon, this.getTextColourStyle(), this.props.rightIconStyle]} />\n </View>\n ) : (\n <Icon\n name={this.props.rightIcon}\n style={styles.headerContentIcon}\n type={this.props.rightIconType ? this.props.rightIconType : 'font-awesome'}\n iconStyle={[styles.rightIcon, this.getTextColourStyle(), this.props.rightIconStyle]}\n />\n )}\n </TouchableOpacity>\n );\n }\n\n render() {\n if (this.props.animatedHeader) {\n return (\n <Animated.View\n style={[\n styles.container,\n !this.props.noShadow && styles.containerShadow,\n this.props.transparent && styles.transparentContainer,\n this.props.style,\n { backgroundColor: this.props.headerColourOffset, elevation: this.props.headerElev, shadowColor: this.props.headerShadow },\n ]}\n >\n {this.renderBackground()}\n <StatusBar barStyle={this.state.barStyle} translucent />\n <View style={styles.headerContent}>\n {this.renderLeftIcon()}\n {this.renderHeaderText()}\n {this.renderRightIcon()}\n {this.props.children}\n </View>\n {this.props.extraHeaderContent}\n </Animated.View>\n );\n }\n return (\n <View\n style={[\n styles.container,\n !this.props.noShadow && styles.containerShadow,\n this.props.transparent && styles.transparentContainer,\n this.props.lineSeparated && styles.lineSeparated,\n this.props.popupHeader && styles.popupHeader,\n this.props.style,\n this.props.colourBrandingHeader && { backgroundColor: this.props.colourBrandingHeader },\n ]}\n >\n <View\n style={[\n styles.contentContainer,\n this.props.popupHeader && styles.popupContentContainer,\n this.props.contentContainerStyle,\n this.props.colourBrandingHeader && { backgroundColor: this.props.colourBrandingHeader },\n ]}\n >\n {this.renderBackground()}\n <StatusBar barStyle={this.state.barStyle} translucent />\n <View style={[styles.headerContent, this.props.popupHeader && styles.headerContentPopup]}>\n {this.renderLeftIcon()}\n {this.renderHeaderText()}\n {this.renderRightIcon()}\n {this.props.children}\n </View>\n </View>\n {this.props.extraHeaderContent}\n </View>\n );\n }\n}\n\nconst styles = {\n container: {\n alignSelf: 'stretch',\n backgroundColor: '#fff',\n zIndex: 10,\n },\n containerShadow: {\n shadowColor: '#000',\n shadowOffset: {\n width: 0,\n height: 1,\n },\n shadowOpacity: 0.1,\n shadowRadius: 6,\n elevation: 3,\n },\n lineSeparated: {\n borderBottomWidth: 1,\n borderColor: LINEGREY,\n shadowOpacity: 0,\n elevation: 0,\n },\n popupHeader: {\n borderBottomWidth: 1,\n borderColor: LINEGREY,\n shadowOpacity: 0,\n elevation: 0,\n borderTopLeftRadius: 12,\n borderTopRightRadius: 12,\n },\n contentContainer: {\n height: StatusBarHeight(70),\n alignSelf: 'stretch',\n flexDirection: 'row',\n },\n popupContentContainer: {\n height: 70,\n borderTopLeftRadius: 12,\n borderTopRightRadius: 12,\n },\n transparentContainer: {\n backgroundColor: COLOUR_TRANSPARENT,\n shadowColor: COLOUR_TRANSPARENT,\n elevation: 0,\n },\n thumbnailStyle: {\n height: StatusBarHeight(70),\n width: null,\n position: 'absolute',\n top: 0,\n left: 0,\n resizeMode: 'cover',\n },\n thumbnailPopupHeader: {\n height: 70,\n width: '100%',\n borderTopLeftRadius: 12,\n borderTopRightRadius: 12,\n overflow: 'hidden',\n },\n headerContent: {\n alignSelf: 'stretch',\n flexDirection: 'row',\n flex: 1,\n paddingTop: StatusBarHeight(0),\n },\n headerContentPopup: {\n paddingTop: 0,\n },\n headerContentIcon: {\n height: 70,\n width: 55,\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n absoluteRight: {\n height: 70,\n justifyContent: 'center',\n position: 'absolute',\n right: 0,\n top: StatusBarHeight(0),\n },\n leftIcon: {\n fontSize: 25,\n padding: 15,\n width: 55,\n textAlign: 'center',\n color: TEXT_LIGHT,\n },\n headerTextContainer: {\n height: 70,\n flex: 1,\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n headerText: {\n fontSize: 16,\n flex: 1,\n fontFamily: 'sf-semibold',\n color: TEXT_DARK,\n textAlign: 'center',\n backgroundColor: 'rgba(255,255,255,0)',\n },\n buttonText: {\n fontSize: 15,\n fontFamily: 'sf-regular',\n width: 80,\n backgroundColor: 'rgba(255,255,255,0)',\n },\n rightIcon: {\n fontSize: 25,\n padding: 15,\n width: 55,\n textAlign: 'center',\n color: TEXT_LIGHT,\n },\n rightImage: {\n width: 24,\n height: 24,\n marginRight: 15,\n marginLeft: 13,\n },\n counter: {\n top: 15,\n right: 5,\n borderRadius: 10,\n position: 'absolute',\n height: 20,\n minWidth: 20,\n backgroundColor: COLOUR_GREEN,\n justifyContent: 'center',\n },\n counterText: {\n color: '#fff',\n textAlign: 'center',\n fontFamily: 'sf-bold',\n fontSize: 10,\n lineHeight: 12,\n backgroundColor: 'transparent',\n },\n smallCounter: {\n width: 5,\n height: 5,\n minWidth: 5,\n top: 20,\n right: 10,\n },\n headerPattern: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n width: '100%',\n height: '100%',\n resizeMode: 'cover',\n },\n};\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: getMainBrandingColourFromState(state),\n headerType: getSiteSettingFromState(\n state,\n 'HeaderType',\n getSiteSettingFromState(state, 'UseGradientHeader', Config.env.hasGradientHeader) ? 'gradient' : 'white',\n ),\n headerPattern: getSiteSettingFromState(state, 'HeaderPattern'),\n patternColour: getSiteSettingFromState(state, 'PatternColour'),\n };\n};\n\nexport default connect(mapStateToProps, {})(Header);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,QAAQ,EAAEC,IAAI,EAAEC,SAAS,EAAEC,KAAK,EAAEC,UAAU,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AAC7G,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,OAAO,QAAQ,aAAa;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,eAAe,EAAEC,uBAAuB,QAAQ,WAAW;AACpE,SACEC,kBAAkB,EAClBC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,YAAY,EACZC,8BAA8B,EAC9BC,eAAe,QACV,YAAY;AACnB,SAASC,QAAQ,QAAQ,UAAU;AACnC,OAAOC,MAAM,MAAM,WAAW;AAC9B;;AAEA,MAAMC,MAAM,SAASvB,SAAS,CAAC;EAC7BwB,WAAWA,CAACC,KAAK,EAAE;IACjB,KAAK,CAACA,KAAK,CAAC;IAEZ,IAAI,CAACC,KAAK,GAAG,CAAC,CAAC;EACjB;EAEAC,yBAAyBA,CAAA,EAAG;IAC1B,IAAIC,QAAQ,GAAGpB,QAAQ,CAACqB,MAAM,CAAC;MAAEC,GAAG,EAAE,cAAc;MAAEC,OAAO,EAAE;IAAU,CAAC,CAAC;IAC3E,IAAI,IAAI,CAACN,KAAK,CAACG,QAAQ,EAAE;MACvBA,QAAQ,GAAG,IAAI,CAACH,KAAK,CAACG,QAAQ;IAChC,CAAC,MAAM,IAAI,IAAI,CAACH,KAAK,CAACO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EAAE;IACbsF,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPK,KAAK,EAAE,CAAC;IACRS,MAAM,EAAE,CAAC;IACTxH,KAAK,EAAE,MAAM;IACbgG,MAAM,EAAE,MAAM;IACd1B,UAAU,EAAE;EACd;AACF,CAAC;AAED,MAAMmD,eAAe,GAAGrI,KAAK,IAAI;EAC/B,OAAO;IACL2B,kBAAkB,EAAElC,8BAA8B,CAACO,KAAK,CAAC;IACzDM,UAAU,EAAEnB,uBAAuB,CACjCa,KAAK,EACL,YAAY,EACZb,uBAAuB,CAACa,KAAK,EAAE,mBAAmB,EAAEJ,MAAM,CAAC0I,GAAG,CAACC,iBAAiB,CAAC,GAAG,UAAU,GAAG,OACnG,CAAC;IACDzG,aAAa,EAAE3C,uBAAuB,CAACa,KAAK,EAAE,eAAe,CAAC;IAC9D+B,aAAa,EAAE5C,uBAAuB,CAACa,KAAK,EAAE,eAAe;EAC/D,CAAC;AACH,CAAC;AAED,eAAef,OAAO,CAACoJ,eAAe,EAAE,CAAC,CAAC,CAAC,CAACxI,MAAM,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Component","Text","Animated","View","StatusBar","Image","Dimensions","TouchableOpacity","Platform","Icon","LinearGradient","connect","StatusBarHeight","getSiteSettingFromState","COLOUR_TRANSPARENT","TEXT_DARK","TEXT_LIGHT","LINEGREY","COLOUR_GREEN","getMainBrandingColourFromState","hexToRGBAstring","FontAwesome","Config","Header","constructor","props","state","UNSAFE_componentWillMount","barStyle","select","ios","android","headerType","noGradient","transparent","setState","windowWidth","get","width","getTextColourStyle","textColour","color","renderBackground","headerBackground","headerImage","createElement","style","styles","thumbnailStyle","source","uri","contentContainerStyle","backgroundColor","colourBrandingMain","popupHeader","thumbnailPopupHeader","headerPattern","patternColour","tintColor","flex","colors","start","x","y","end","locations","renderLeftBubble","hasLeftBubble","counter","smallCounter","renderLeftIcon","leftIcon","leftText","onPressLeft","headerContentIcon","onPress","activeOpacity","buttonText","paddingRight","paddingLeft","leftTextStyle","leftIconType","name","leftIconStyle","type","iconStyle","renderHeaderText","text","centerContent","onTextPress","headerTextContainer","rightIcon","rightText","absoluteRight","textContainerStyle","headerText","textStyle","numberOfLines","ellipsizeMode","absoluteLeft","renderRightIcon","rightContent","onPressRight","rightContainerStyle","textAlign","fontFamily","optionalRightStyle","rightImage","resizeMode","rightIconType","rightIconStyle","render","animatedHeader","container","noShadow","containerShadow","transparentContainer","headerColourOffset","elevation","headerElev","shadowColor","headerShadow","translucent","headerContent","children","extraHeaderContent","lineSeparated","colourBrandingHeader","contentContainer","popupContentContainer","headerContentPopup","alignSelf","zIndex","shadowOffset","height","shadowOpacity","shadowRadius","borderBottomWidth","borderColor","borderTopLeftRadius","borderTopRightRadius","flexDirection","position","top","left","overflow","paddingTop","alignItems","justifyContent","right","fontSize","padding","marginRight","marginLeft","borderRadius","minWidth","counterText","lineHeight","bottom","mapStateToProps","env","hasGradientHeader"],"sources":["Header.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport {\n\tAnimated,\n\tView,\n\tStatusBar,\n\tImage,\n\tDimensions,\n\tTouchableOpacity,\n\tPlatform,\n} from \"react-native\";\nimport { Icon } from \"@rneui/themed\";\nimport { LinearGradient } from \"expo-linear-gradient\";\nimport { connect } from \"react-redux\";\n// import {\n// StatusBarHeight,\n// COLOUR_TRANSPARENT,\n// TEXT_DARK,\n// TEXT_LIGHT,\n// LINEGREY,\n// COLOUR_GREEN,\n// getMainBrandingColourFromState,\n// hexToRGBAstring,\n// getSiteSettingFromState,\n// } from '../../js';\nimport { StatusBarHeight, getSiteSettingFromState } from \"../helper\";\nimport {\n\tCOLOUR_TRANSPARENT,\n\tTEXT_DARK,\n\tTEXT_LIGHT,\n\tLINEGREY,\n\tCOLOUR_GREEN,\n\tgetMainBrandingColourFromState,\n\thexToRGBAstring,\n} from \"../colours\";\nimport { FontAwesome } from \"./Icon\";\nimport Config from \"../config\";\n// import { HAS_GRADIENT_HEADER } from '../../config';\n\nclass Header extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\n\t\tthis.state = {};\n\t}\n\n\tUNSAFE_componentWillMount() {\n\t\tlet barStyle = Platform.select({ ios: \"dark-content\", android: \"default\" });\n\t\tif (this.props.barStyle) {\n\t\t\tbarStyle = this.props.barStyle;\n\t\t} else if (\n\t\t\tthis.props.headerType !== \"white\" &&\n\t\t\t!this.props.noGradient &&\n\t\t\t!this.props.transparent\n\t\t) {\n\t\t\tbarStyle = \"light-content\";\n\t\t}\n\t\tthis.setState({ windowWidth: Dimensions.get(\"window\").width, barStyle });\n\t}\n\n\tgetTextColourStyle() {\n\t\tif (this.props.textColour) {\n\t\t\treturn { color: this.props.textColour };\n\t\t}\n\t\tif (\n\t\t\tthis.props.headerType !== \"white\" &&\n\t\t\t!this.props.noGradient &&\n\t\t\t!this.props.transparent\n\t\t) {\n\t\t\treturn { color: \"#fff\" };\n\t\t}\n\t\treturn null;\n\t}\n\n\trenderBackground() {\n\t\tif (this.props.headerBackground) return this.props.headerBackground;\n\t\tif (this.props.headerImage) {\n\t\t\treturn (\n\t\t\t\t<Image\n\t\t\t\t\tstyle={[styles.thumbnailStyle, { width: this.state.windowWidth }]}\n\t\t\t\t\tsource={{ uri: this.props.headerImage }}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t\tif (\n\t\t\tthis.props.headerType === \"pattern\" &&\n\t\t\t!this.props.noGradient &&\n\t\t\t!this.props.transparent\n\t\t) {\n\t\t\treturn (\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.thumbnailStyle,\n\t\t\t\t\t\tthis.props.contentContainerStyle,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\twidth: this.state.windowWidth,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tthis.props.popupHeader && styles.thumbnailPopupHeader,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<Image\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.headerPattern,\n\t\t\t\t\t\t\tthis.props.patternColour && {\n\t\t\t\t\t\t\t\ttintColor: this.props.patternColour,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t\tsource={{ uri: this.props.headerPattern }}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\tif (\n\t\t\tthis.props.headerType === \"block\" &&\n\t\t\t!this.props.noGradient &&\n\t\t\t!this.props.transparent\n\t\t) {\n\t\t\treturn (\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.thumbnailStyle,\n\t\t\t\t\t\tthis.props.contentContainerStyle,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\twidth: this.state.windowWidth,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tthis.props.popupHeader && styles.thumbnailPopupHeader,\n\t\t\t\t\t]}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t\tif (\n\t\t\tthis.props.headerType === \"gradient\" &&\n\t\t\t!this.props.noGradient &&\n\t\t\t!this.props.transparent\n\t\t) {\n\t\t\treturn (\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.thumbnailStyle,\n\t\t\t\t\t\tthis.props.contentContainerStyle,\n\t\t\t\t\t\t{ width: this.state.windowWidth },\n\t\t\t\t\t\tthis.props.popupHeader && styles.thumbnailPopupHeader,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<LinearGradient\n\t\t\t\t\t\tstyle={{ flex: 1 }}\n\t\t\t\t\t\tcolors={[\n\t\t\t\t\t\t\tthis.props.colourBrandingMain,\n\t\t\t\t\t\t\thexToRGBAstring(this.props.colourBrandingMain, 0.7),\n\t\t\t\t\t\t]}\n\t\t\t\t\t\tstart={{ x: 0, y: 0 }}\n\t\t\t\t\t\tend={{ x: 1, y: 1 }}\n\t\t\t\t\t\tlocations={[0.4, 1]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\treturn null;\n\t}\n\n\trenderLeftBubble() {\n\t\tif (!this.props.hasLeftBubble) {\n\t\t\treturn null;\n\t\t}\n\t\treturn <View style={[styles.counter, styles.smallCounter]} />;\n\t}\n\n\trenderLeftIcon() {\n\t\tif (\n\t\t\t(!this.props.leftIcon && !this.props.leftText) ||\n\t\t\t!this.props.onPressLeft\n\t\t) {\n\t\t\treturn null;\n\t\t}\n\t\tif (this.props.leftText) {\n\t\t\treturn (\n\t\t\t\t<View style={[styles.headerContentIcon, { width: \"auto\" }]}>\n\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\tonPress={this.props.onPressLeft}\n\t\t\t\t\t\tactiveOpacity={0.6}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\tstyles.buttonText,\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tpaddingRight: 5,\n\t\t\t\t\t\t\t\t\tpaddingLeft: 15,\n\t\t\t\t\t\t\t\t\tcolor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tthis.props.leftTextStyle,\n\t\t\t\t\t\t\t\tthis.props.headerType !== \"white\" &&\n\t\t\t\t\t\t\t\t\t!this.props.noGradient &&\n\t\t\t\t\t\t\t\t\t!this.props.transparent && { color: \"#fff\" },\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.props.leftText}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\tif (this.props.leftIconType && this.props.leftIconType === \"pluss\") {\n\t\t\treturn (\n\t\t\t\t<View style={styles.headerContentIcon}>\n\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\tonPress={this.props.onPressLeft}\n\t\t\t\t\t\tactiveOpacity={0.6}\n\t\t\t\t\t>\n\t\t\t\t\t\t<View style={styles.headerContentIcon}>\n\t\t\t\t\t\t\t<FontAwesome\n\t\t\t\t\t\t\t\tname={this.props.leftIcon}\n\t\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\t\tstyles.leftIcon,\n\t\t\t\t\t\t\t\t\tthis.props.leftIconStyle,\n\t\t\t\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t{this.renderLeftBubble()}\n\t\t\t\t\t\t</View>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\treturn (\n\t\t\t<View style={styles.headerContentIcon}>\n\t\t\t\t<TouchableOpacity onPress={this.props.onPressLeft} activeOpacity={0.6}>\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tname={this.props.leftIcon}\n\t\t\t\t\t\tstyle={styles.headerContentIcon}\n\t\t\t\t\t\ttype=\"font-awesome\"\n\t\t\t\t\t\ticonStyle={[\n\t\t\t\t\t\t\tstyles.leftIcon,\n\t\t\t\t\t\t\tthis.props.leftIconStyle,\n\t\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t\t{this.renderLeftBubble()}\n\t\t\t\t</TouchableOpacity>\n\t\t\t</View>\n\t\t);\n\t}\n\n\trenderHeaderText() {\n\t\tif (!this.props.text) {\n\t\t\tif (this.props.centerContent) {\n\t\t\t\treturn this.props.centerContent;\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\tif (this.props.onTextPress) {\n\t\t\treturn (\n\t\t\t\t<TouchableOpacity\n\t\t\t\t\tonPress={this.props.onTextPress}\n\t\t\t\t\tactiveOpacity={0.6}\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.headerTextContainer,\n\t\t\t\t\t\tthis.props.leftIcon &&\n\t\t\t\t\t\t\t((!this.props.rightIcon && !this.props.rightText) ||\n\t\t\t\t\t\t\t\tthis.props.absoluteRight) && { paddingRight: 55 },\n\t\t\t\t\t\tthis.props.textContainerStyle,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<Text\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.headerText,\n\t\t\t\t\t\t\tthis.props.textStyle,\n\t\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t\t]}\n\t\t\t\t\t\tnumberOfLines={1}\n\t\t\t\t\t\tellipsizeMode=\"tail\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.props.text}\n\t\t\t\t\t</Text>\n\t\t\t\t</TouchableOpacity>\n\t\t\t);\n\t\t}\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[\n\t\t\t\t\tstyles.headerTextContainer,\n\t\t\t\t\tthis.props.leftIcon &&\n\t\t\t\t\t\t((!this.props.rightIcon && !this.props.rightText) ||\n\t\t\t\t\t\t\tthis.props.absoluteRight) && { paddingRight: 55 },\n\t\t\t\t\tthis.props.rightIcon &&\n\t\t\t\t\t\t((!this.props.leftIcon && !this.props.leftText) ||\n\t\t\t\t\t\t\tthis.props.absoluteLeft) && { paddingLeft: 55 },\n\t\t\t\t\tthis.props.textContainerStyle,\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t<Text\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.headerText,\n\t\t\t\t\t\tthis.props.textStyle,\n\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t]}\n\t\t\t\t\tnumberOfLines={1}\n\t\t\t\t\tellipsizeMode=\"tail\"\n\t\t\t\t>\n\t\t\t\t\t{this.props.text}\n\t\t\t\t</Text>\n\t\t\t</View>\n\t\t);\n\t}\n\n\trenderRightIcon() {\n\t\tif (this.props.rightContent) {\n\t\t\treturn this.props.rightContent;\n\t\t}\n\t\tif (!this.props.onPressRight) {\n\t\t\treturn null;\n\t\t}\n\t\tif (this.props.rightText && this.props.onPressRight) {\n\t\t\treturn (\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.headerContentIcon,\n\t\t\t\t\t\t{ width: \"auto\" },\n\t\t\t\t\t\tthis.props.absoluteRight && styles.absoluteRight,\n\t\t\t\t\t\tthis.props.rightContainerStyle,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\tonPress={this.props.onPressRight}\n\t\t\t\t\t\tactiveOpacity={0.6}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\tstyles.buttonText,\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tpaddingRight: 15,\n\t\t\t\t\t\t\t\t\tpaddingLeft: 5,\n\t\t\t\t\t\t\t\t\ttextAlign: \"right\",\n\t\t\t\t\t\t\t\t\tfontFamily: \"sf-semibold\",\n\t\t\t\t\t\t\t\t\tcolor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t\t\t\tthis.props.optionalRightStyle,\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.props.rightText}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\tif (!this.props.rightIcon) {\n\t\t\tif (this.props.rightImage) {\n\t\t\t\treturn (\n\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\tonPress={this.props.onPressRight}\n\t\t\t\t\t\tactiveOpacity={0.6}\n\t\t\t\t\t>\n\t\t\t\t\t\t<View style={styles.headerContentIcon}>\n\t\t\t\t\t\t\t<Image\n\t\t\t\t\t\t\t\tsource={{ uri: this.props.rightImage }}\n\t\t\t\t\t\t\t\tstyle={styles.rightImage}\n\t\t\t\t\t\t\t\tresizeMode=\"contain\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</View>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t<TouchableOpacity onPress={this.props.onPressRight} activeOpacity={0.6}>\n\t\t\t\t{this.props.rightIconType && this.props.rightIconType === \"pluss\" ? (\n\t\t\t\t\t<View style={styles.headerContentIcon}>\n\t\t\t\t\t\t<FontAwesome\n\t\t\t\t\t\t\tname={this.props.rightIcon}\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\tstyles.rightIcon,\n\t\t\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t\t\t\tthis.props.rightIconStyle,\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</View>\n\t\t\t\t) : (\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tname={this.props.rightIcon}\n\t\t\t\t\t\tstyle={styles.headerContentIcon}\n\t\t\t\t\t\ttype={\n\t\t\t\t\t\t\tthis.props.rightIconType\n\t\t\t\t\t\t\t\t? this.props.rightIconType\n\t\t\t\t\t\t\t\t: \"font-awesome\"\n\t\t\t\t\t\t}\n\t\t\t\t\t\ticonStyle={[\n\t\t\t\t\t\t\tstyles.rightIcon,\n\t\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t\t\tthis.props.rightIconStyle,\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</TouchableOpacity>\n\t\t);\n\t}\n\n\trender() {\n\t\tif (this.props.animatedHeader) {\n\t\t\treturn (\n\t\t\t\t<Animated.View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.container,\n\t\t\t\t\t\t!this.props.noShadow && styles.containerShadow,\n\t\t\t\t\t\tthis.props.transparent && styles.transparentContainer,\n\t\t\t\t\t\tthis.props.style,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbackgroundColor: this.props.headerColourOffset,\n\t\t\t\t\t\t\televation: this.props.headerElev,\n\t\t\t\t\t\t\tshadowColor: this.props.headerShadow,\n\t\t\t\t\t\t},\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t{this.renderBackground()}\n\t\t\t\t\t<StatusBar barStyle={this.state.barStyle} translucent />\n\t\t\t\t\t<View style={styles.headerContent}>\n\t\t\t\t\t\t{this.renderLeftIcon()}\n\t\t\t\t\t\t{this.renderHeaderText()}\n\t\t\t\t\t\t{this.renderRightIcon()}\n\t\t\t\t\t\t{this.props.children}\n\t\t\t\t\t</View>\n\t\t\t\t\t{this.props.extraHeaderContent}\n\t\t\t\t</Animated.View>\n\t\t\t);\n\t\t}\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[\n\t\t\t\t\tstyles.container,\n\t\t\t\t\t!this.props.noShadow && styles.containerShadow,\n\t\t\t\t\tthis.props.transparent && styles.transparentContainer,\n\t\t\t\t\tthis.props.lineSeparated && styles.lineSeparated,\n\t\t\t\t\tthis.props.popupHeader && styles.popupHeader,\n\t\t\t\t\tthis.props.style,\n\t\t\t\t\tthis.props.colourBrandingHeader && {\n\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingHeader,\n\t\t\t\t\t},\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.contentContainer,\n\t\t\t\t\t\tthis.props.popupHeader && styles.popupContentContainer,\n\t\t\t\t\t\tthis.props.contentContainerStyle,\n\t\t\t\t\t\tthis.props.colourBrandingHeader && {\n\t\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingHeader,\n\t\t\t\t\t\t},\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t{this.renderBackground()}\n\t\t\t\t\t<StatusBar barStyle={this.state.barStyle} translucent />\n\t\t\t\t\t<View\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.headerContent,\n\t\t\t\t\t\t\tthis.props.popupHeader && styles.headerContentPopup,\n\t\t\t\t\t\t]}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.renderLeftIcon()}\n\t\t\t\t\t\t{this.renderHeaderText()}\n\t\t\t\t\t\t{this.renderRightIcon()}\n\t\t\t\t\t\t{this.props.children}\n\t\t\t\t\t</View>\n\t\t\t\t</View>\n\t\t\t\t{this.props.extraHeaderContent}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {\n\t\talignSelf: \"stretch\",\n\t\tbackgroundColor: \"#fff\",\n\t\tzIndex: 10,\n\t},\n\tcontainerShadow: {\n\t\tshadowColor: \"#000\",\n\t\tshadowOffset: {\n\t\t\twidth: 0,\n\t\t\theight: 1,\n\t\t},\n\t\tshadowOpacity: 0.1,\n\t\tshadowRadius: 6,\n\t\televation: 3,\n\t},\n\tlineSeparated: {\n\t\tborderBottomWidth: 1,\n\t\tborderColor: LINEGREY,\n\t\tshadowOpacity: 0,\n\t\televation: 0,\n\t},\n\tpopupHeader: {\n\t\tborderBottomWidth: 1,\n\t\tborderColor: LINEGREY,\n\t\tshadowOpacity: 0,\n\t\televation: 0,\n\t\tborderTopLeftRadius: 12,\n\t\tborderTopRightRadius: 12,\n\t},\n\tcontentContainer: {\n\t\theight: StatusBarHeight(70),\n\t\talignSelf: \"stretch\",\n\t\tflexDirection: \"row\",\n\t},\n\tpopupContentContainer: {\n\t\theight: 70,\n\t\tborderTopLeftRadius: 12,\n\t\tborderTopRightRadius: 12,\n\t},\n\ttransparentContainer: {\n\t\tbackgroundColor: COLOUR_TRANSPARENT,\n\t\tshadowColor: COLOUR_TRANSPARENT,\n\t\televation: 0,\n\t},\n\tthumbnailStyle: {\n\t\theight: StatusBarHeight(70),\n\t\twidth: null,\n\t\tposition: \"absolute\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tresizeMode: \"cover\",\n\t},\n\tthumbnailPopupHeader: {\n\t\theight: 70,\n\t\twidth: \"100%\",\n\t\tborderTopLeftRadius: 12,\n\t\tborderTopRightRadius: 12,\n\t\toverflow: \"hidden\",\n\t},\n\theaderContent: {\n\t\talignSelf: \"stretch\",\n\t\tflexDirection: \"row\",\n\t\tflex: 1,\n\t\tpaddingTop: StatusBarHeight(0),\n\t},\n\theaderContentPopup: {\n\t\tpaddingTop: 0,\n\t},\n\theaderContentIcon: {\n\t\theight: 70,\n\t\twidth: 55,\n\t\talignItems: \"center\",\n\t\tflexDirection: \"row\",\n\t\tjustifyContent: \"space-between\",\n\t},\n\tabsoluteRight: {\n\t\theight: 70,\n\t\tjustifyContent: \"center\",\n\t\tposition: \"absolute\",\n\t\tright: 0,\n\t\ttop: StatusBarHeight(0),\n\t},\n\tleftIcon: {\n\t\tfontSize: 25,\n\t\tpadding: 15,\n\t\twidth: 55,\n\t\ttextAlign: \"center\",\n\t\tcolor: TEXT_LIGHT,\n\t},\n\theaderTextContainer: {\n\t\theight: 70,\n\t\tflex: 1,\n\t\talignItems: \"center\",\n\t\tflexDirection: \"row\",\n\t\tjustifyContent: \"space-between\",\n\t},\n\theaderText: {\n\t\tfontSize: 16,\n\t\tflex: 1,\n\t\tfontFamily: \"sf-semibold\",\n\t\tcolor: TEXT_DARK,\n\t\ttextAlign: \"center\",\n\t\tbackgroundColor: \"rgba(255,255,255,0)\",\n\t},\n\tbuttonText: {\n\t\tfontSize: 15,\n\t\tfontFamily: \"sf-regular\",\n\t\twidth: 80,\n\t\tbackgroundColor: \"rgba(255,255,255,0)\",\n\t},\n\trightIcon: {\n\t\tfontSize: 25,\n\t\tpadding: 15,\n\t\twidth: 55,\n\t\ttextAlign: \"center\",\n\t\tcolor: TEXT_LIGHT,\n\t},\n\trightImage: {\n\t\twidth: 24,\n\t\theight: 24,\n\t\tmarginRight: 15,\n\t\tmarginLeft: 13,\n\t},\n\tcounter: {\n\t\ttop: 15,\n\t\tright: 5,\n\t\tborderRadius: 10,\n\t\tposition: \"absolute\",\n\t\theight: 20,\n\t\tminWidth: 20,\n\t\tbackgroundColor: COLOUR_GREEN,\n\t\tjustifyContent: \"center\",\n\t},\n\tcounterText: {\n\t\tcolor: \"#fff\",\n\t\ttextAlign: \"center\",\n\t\tfontFamily: \"sf-bold\",\n\t\tfontSize: 10,\n\t\tlineHeight: 12,\n\t\tbackgroundColor: \"transparent\",\n\t},\n\tsmallCounter: {\n\t\twidth: 5,\n\t\theight: 5,\n\t\tminWidth: 5,\n\t\ttop: 20,\n\t\tright: 10,\n\t},\n\theaderPattern: {\n\t\tposition: \"absolute\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tright: 0,\n\t\tbottom: 0,\n\t\twidth: \"100%\",\n\t\theight: \"100%\",\n\t\tresizeMode: \"cover\",\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t\theaderType: getSiteSettingFromState(\n\t\t\tstate,\n\t\t\t\"HeaderType\",\n\t\t\tgetSiteSettingFromState(\n\t\t\t\tstate,\n\t\t\t\t\"UseGradientHeader\",\n\t\t\t\tConfig.env.hasGradientHeader,\n\t\t\t)\n\t\t\t\t? \"gradient\"\n\t\t\t\t: \"white\",\n\t\t),\n\t\theaderPattern: getSiteSettingFromState(state, \"HeaderPattern\"),\n\t\tpatternColour: getSiteSettingFromState(state, \"PatternColour\"),\n\t};\n};\n\nexport default connect(mapStateToProps, {})(Header);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAAQ,6CAA6C;AAClE,SACCC,QAAQ,EACRC,IAAI,EACJC,SAAS,EACTC,KAAK,EACLC,UAAU,EACVC,gBAAgB,EAChBC,QAAQ,QACF,cAAc;AACrB,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC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,uBAAuB,CAACa,KAAK,EAAE,eAAe,CAAC;IAC9D+B,aAAa,EAAE5C,uBAAuB,CAACa,KAAK,EAAE,eAAe;EAC9D,CAAC;AACF,CAAC;AAED,eAAef,OAAO,CAACoJ,eAAe,EAAE,CAAC,CAAC,CAAC,CAACxI,MAAM,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React, { useEffect, useMemo } from "react";
|
|
3
|
+
import { createIconSet } from "@expo/vector-icons";
|
|
4
|
+
import glyphMap from "../assets/icons/fontawesome/fa7-glyphmap.json";
|
|
5
|
+
const v4ToV6Map = {
|
|
6
|
+
dashboard: "gauge",
|
|
7
|
+
navicon: "bars",
|
|
8
|
+
remove: "xmark",
|
|
9
|
+
close: "xmark",
|
|
10
|
+
pencil: "pen",
|
|
11
|
+
times: "xmark",
|
|
12
|
+
"trash-o": "trash-can",
|
|
13
|
+
"file-o": "file",
|
|
14
|
+
"picture-o": "image",
|
|
15
|
+
"photo-o": "image",
|
|
16
|
+
"camera-o": "camera",
|
|
17
|
+
"video-camera": "video",
|
|
18
|
+
"clock-o": "clock",
|
|
19
|
+
"calendar-o": "calendar",
|
|
20
|
+
"drivers-license": "id-card",
|
|
21
|
+
"drivers-license-o": "id-card",
|
|
22
|
+
"user-o": "user",
|
|
23
|
+
"user-circle-o": "circle-user",
|
|
24
|
+
"user-plus-o": "user-plus",
|
|
25
|
+
"user-times-o": "user-xmark",
|
|
26
|
+
"angle-left": "chevron-left",
|
|
27
|
+
"angle-right": "chevron-right",
|
|
28
|
+
"angle-up": "chevron-up",
|
|
29
|
+
"angle-down": "chevron-down",
|
|
30
|
+
"chevron-left": "chevron-left",
|
|
31
|
+
"chevron-right": "chevron-right",
|
|
32
|
+
"chevron-up": "chevron-up",
|
|
33
|
+
"chevron-down": "chevron-down",
|
|
34
|
+
"envelope-o": "envelope",
|
|
35
|
+
"comment-o": "comment",
|
|
36
|
+
"commenting-o": "comment-dots",
|
|
37
|
+
"comments-o": "comments",
|
|
38
|
+
"share-square-o": "share-from-square",
|
|
39
|
+
"bookmark-o": "bookmark",
|
|
40
|
+
"thumbs-o-up": "thumbs-up",
|
|
41
|
+
"thumbs-o-down": "thumbs-down",
|
|
42
|
+
"heart-o": "heart",
|
|
43
|
+
"star-o": "star",
|
|
44
|
+
"check-square-o": "square-check",
|
|
45
|
+
"circle-o": "circle",
|
|
46
|
+
"check-circle-o": "circle-check",
|
|
47
|
+
"circle-check": "circle-check",
|
|
48
|
+
warning: "triangle-exclamation",
|
|
49
|
+
"exclamation-circle": "circle-exclamation",
|
|
50
|
+
"exclamation-triangle": "triangle-exclamation",
|
|
51
|
+
"info-circle": "circle-info",
|
|
52
|
+
"question-circle": "circle-question",
|
|
53
|
+
"sign-out": "right-from-bracket",
|
|
54
|
+
"sign-in": "right-to-bracket",
|
|
55
|
+
"unlock-alt": "unlock",
|
|
56
|
+
"lock-alt": "lock",
|
|
57
|
+
"play-circle-o": "circle-play",
|
|
58
|
+
"pause-circle-o": "circle-pause",
|
|
59
|
+
"stop-circle-o": "circle-stop",
|
|
60
|
+
"shopping-cart": "cart-shopping",
|
|
61
|
+
"shopping-basket": "basket-shopping",
|
|
62
|
+
briefcase: "briefcase",
|
|
63
|
+
"building-o": "building",
|
|
64
|
+
"bell-o": "bell",
|
|
65
|
+
cog: "gear",
|
|
66
|
+
cogs: "gears",
|
|
67
|
+
check: "check",
|
|
68
|
+
"close-o": "xmark"
|
|
69
|
+
};
|
|
70
|
+
const IconSolid = createIconSet(glyphMap, "FontAwesomePro-Solid");
|
|
71
|
+
const IconRegular = createIconSet(glyphMap, "FontAwesomePro-Regular");
|
|
72
|
+
const IconLight = createIconSet(glyphMap, "FontAwesomePro-Light");
|
|
73
|
+
const IconBrand = createIconSet(glyphMap, "FontAwesomePro-Brands");
|
|
74
|
+
export const FontAwesome = ({
|
|
75
|
+
name,
|
|
76
|
+
size,
|
|
77
|
+
color,
|
|
78
|
+
style,
|
|
79
|
+
solid = false,
|
|
80
|
+
regular = false,
|
|
81
|
+
light = false,
|
|
82
|
+
brand = false,
|
|
83
|
+
...props
|
|
84
|
+
}) => {
|
|
85
|
+
useEffect(() => {
|
|
86
|
+
if (__DEV__) {
|
|
87
|
+
// Use __DEV__ for React Native
|
|
88
|
+
if (v4ToV6Map[name]) {
|
|
89
|
+
console.warn(`[FA7 Upgrade] "${name}" is a legacy name. Please use "${v4ToV6Map[name]}" instead.`);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}, [name]);
|
|
93
|
+
let iconName = name || "question";
|
|
94
|
+
iconName = iconName.replace(/^fa-/, "");
|
|
95
|
+
if (v4ToV6Map[iconName]) {
|
|
96
|
+
iconName = v4ToV6Map[iconName];
|
|
97
|
+
}
|
|
98
|
+
let SelectedIconComponent = IconSolid; // Default to Solid
|
|
99
|
+
if (regular) SelectedIconComponent = IconRegular;
|
|
100
|
+
if (light) SelectedIconComponent = IconLight;
|
|
101
|
+
if (brand) SelectedIconComponent = IconBrand;
|
|
102
|
+
return /*#__PURE__*/React.createElement(SelectedIconComponent, _extends({
|
|
103
|
+
name: iconName,
|
|
104
|
+
size: size,
|
|
105
|
+
color: color,
|
|
106
|
+
style: style
|
|
107
|
+
}, props));
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=Icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","createIconSet","glyphMap","v4ToV6Map","dashboard","navicon","remove","close","pencil","times","warning","briefcase","cog","cogs","check","IconSolid","IconRegular","IconLight","IconBrand","FontAwesome","name","size","color","style","solid","regular","light","brand","props","__DEV__","console","warn","iconName","replace","SelectedIconComponent","createElement","_extends"],"sources":["Icon.js"],"sourcesContent":["import React, { useEffect, useMemo } from \"react\";\nimport { createIconSet } from \"@expo/vector-icons\";\n\nimport glyphMap from \"../assets/icons/fontawesome/fa7-glyphmap.json\";\n\nconst v4ToV6Map = {\n\tdashboard: \"gauge\",\n\tnavicon: \"bars\",\n\tremove: \"xmark\",\n\tclose: \"xmark\",\n\tpencil: \"pen\",\n\ttimes: \"xmark\",\n\t\"trash-o\": \"trash-can\",\n\t\"file-o\": \"file\",\n\t\"picture-o\": \"image\",\n\t\"photo-o\": \"image\",\n\t\"camera-o\": \"camera\",\n\t\"video-camera\": \"video\",\n\t\"clock-o\": \"clock\",\n\t\"calendar-o\": \"calendar\",\n\t\"drivers-license\": \"id-card\",\n\t\"drivers-license-o\": \"id-card\",\n\t\"user-o\": \"user\",\n\t\"user-circle-o\": \"circle-user\",\n\t\"user-plus-o\": \"user-plus\",\n\t\"user-times-o\": \"user-xmark\",\n\t\"angle-left\": \"chevron-left\",\n\t\"angle-right\": \"chevron-right\",\n\t\"angle-up\": \"chevron-up\",\n\t\"angle-down\": \"chevron-down\",\n\t\"chevron-left\": \"chevron-left\",\n\t\"chevron-right\": \"chevron-right\",\n\t\"chevron-up\": \"chevron-up\",\n\t\"chevron-down\": \"chevron-down\",\n\t\"envelope-o\": \"envelope\",\n\t\"comment-o\": \"comment\",\n\t\"commenting-o\": \"comment-dots\",\n\t\"comments-o\": \"comments\",\n\t\"share-square-o\": \"share-from-square\",\n\t\"bookmark-o\": \"bookmark\",\n\t\"thumbs-o-up\": \"thumbs-up\",\n\t\"thumbs-o-down\": \"thumbs-down\",\n\t\"heart-o\": \"heart\",\n\t\"star-o\": \"star\",\n\t\"check-square-o\": \"square-check\",\n\t\"circle-o\": \"circle\",\n\t\"check-circle-o\": \"circle-check\",\n\t\"circle-check\": \"circle-check\",\n\twarning: \"triangle-exclamation\",\n\t\"exclamation-circle\": \"circle-exclamation\",\n\t\"exclamation-triangle\": \"triangle-exclamation\",\n\t\"info-circle\": \"circle-info\",\n\t\"question-circle\": \"circle-question\",\n\t\"sign-out\": \"right-from-bracket\",\n\t\"sign-in\": \"right-to-bracket\",\n\t\"unlock-alt\": \"unlock\",\n\t\"lock-alt\": \"lock\",\n\t\"play-circle-o\": \"circle-play\",\n\t\"pause-circle-o\": \"circle-pause\",\n\t\"stop-circle-o\": \"circle-stop\",\n\t\"shopping-cart\": \"cart-shopping\",\n\t\"shopping-basket\": \"basket-shopping\",\n\tbriefcase: \"briefcase\",\n\t\"building-o\": \"building\",\n\t\"bell-o\": \"bell\",\n\tcog: \"gear\",\n\tcogs: \"gears\",\n\tcheck: \"check\",\n\t\"close-o\": \"xmark\",\n};\n\nconst IconSolid = createIconSet(glyphMap, \"FontAwesomePro-Solid\");\nconst IconRegular = createIconSet(glyphMap, \"FontAwesomePro-Regular\");\nconst IconLight = createIconSet(glyphMap, \"FontAwesomePro-Light\");\nconst IconBrand = createIconSet(glyphMap, \"FontAwesomePro-Brands\");\n\nexport const FontAwesome = ({\n\tname,\n\tsize,\n\tcolor,\n\tstyle,\n\tsolid = false,\n\tregular = false,\n\tlight = false,\n\tbrand = false,\n\t...props\n}) => {\n\tuseEffect(() => {\n\t\tif (__DEV__) {\n\t\t\t// Use __DEV__ for React Native\n\t\t\tif (v4ToV6Map[name]) {\n\t\t\t\tconsole.warn(\n\t\t\t\t\t`[FA7 Upgrade] \"${name}\" is a legacy name. Please use \"${v4ToV6Map[name]}\" instead.`,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}, [name]);\n\n\tlet iconName = name || \"question\";\n\ticonName = iconName.replace(/^fa-/, \"\");\n\tif (v4ToV6Map[iconName]) {\n\t\ticonName = v4ToV6Map[iconName];\n\t}\n\n\tlet SelectedIconComponent = IconSolid; // Default to Solid\n\tif (regular) SelectedIconComponent = IconRegular;\n\tif (light) SelectedIconComponent = IconLight;\n\tif (brand) SelectedIconComponent = IconBrand;\n\n\treturn (\n\t\t<SelectedIconComponent\n\t\t\tname={iconName}\n\t\t\tsize={size}\n\t\t\tcolor={color}\n\t\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