@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,18 +1,20 @@
|
|
|
1
|
-
import React, { Component } from
|
|
2
|
-
import _ from
|
|
3
|
-
import { TextInput, View, TouchableWithoutFeedback } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
import _ from "lodash";
|
|
3
|
+
import { TextInput, View, TouchableWithoutFeedback } from "react-native";
|
|
4
|
+
import { Text } from ".";
|
|
5
|
+
import { Icon } from "@rneui/themed";
|
|
6
|
+
import { TEXT_LIGHT, TEXT_DARK, TEXT_DARKEST } from "../colours";
|
|
7
|
+
import { FontAwesome } from "./Icon";
|
|
7
8
|
class GenericInput extends Component {
|
|
8
9
|
constructor(props) {
|
|
9
10
|
super(props);
|
|
10
11
|
this.state = {
|
|
11
12
|
showSecureText: false
|
|
12
13
|
};
|
|
14
|
+
this.inputRef = /*#__PURE__*/React.createRef();
|
|
13
15
|
}
|
|
14
16
|
blur() {
|
|
15
|
-
this.
|
|
17
|
+
this.inputRef.current.blur();
|
|
16
18
|
}
|
|
17
19
|
toggleSecureText() {
|
|
18
20
|
this.setState({
|
|
@@ -23,8 +25,8 @@ class GenericInput extends Component {
|
|
|
23
25
|
if (!this.props.icon) {
|
|
24
26
|
return null;
|
|
25
27
|
}
|
|
26
|
-
if (this.props.iconType && this.props.iconType ===
|
|
27
|
-
return /*#__PURE__*/React.createElement(
|
|
28
|
+
if (this.props.iconType && this.props.iconType === "pl60") {
|
|
29
|
+
return /*#__PURE__*/React.createElement(FontAwesome, {
|
|
28
30
|
name: this.props.icon,
|
|
29
31
|
style: styles.searchIcon
|
|
30
32
|
});
|
|
@@ -39,8 +41,8 @@ class GenericInput extends Component {
|
|
|
39
41
|
if (this.props.secureTextEntry) {
|
|
40
42
|
return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
41
43
|
onPress: this.toggleSecureText.bind(this)
|
|
42
|
-
}, /*#__PURE__*/React.createElement(
|
|
43
|
-
name: this.state.showSecureText ?
|
|
44
|
+
}, /*#__PURE__*/React.createElement(FontAwesome, {
|
|
45
|
+
name: this.state.showSecureText ? "eye-slash" : "eye",
|
|
44
46
|
style: [styles.clearIcon, styles.secureIcon]
|
|
45
47
|
}));
|
|
46
48
|
}
|
|
@@ -63,10 +65,10 @@ class GenericInput extends Component {
|
|
|
63
65
|
if (this.props.hasClear && !_.isEmpty(this.props.value)) {
|
|
64
66
|
return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
65
67
|
onPress: () => {
|
|
66
|
-
this.props.onChangeText(
|
|
68
|
+
this.props.onChangeText("");
|
|
67
69
|
}
|
|
68
|
-
}, /*#__PURE__*/React.createElement(
|
|
69
|
-
name: "
|
|
70
|
+
}, /*#__PURE__*/React.createElement(FontAwesome, {
|
|
71
|
+
name: "circle-x",
|
|
70
72
|
style: styles.clearIcon
|
|
71
73
|
}));
|
|
72
74
|
}
|
|
@@ -81,7 +83,8 @@ class GenericInput extends Component {
|
|
|
81
83
|
height: 36
|
|
82
84
|
}, this.props.containerStyle]
|
|
83
85
|
}, this.renderLeftIcon(), /*#__PURE__*/React.createElement(TextInput, {
|
|
84
|
-
|
|
86
|
+
maxFontSizeMultiplier: 1.2,
|
|
87
|
+
ref: this.inputRef,
|
|
85
88
|
placeholder: this.props.placeholder,
|
|
86
89
|
placeholderTextColor: TEXT_LIGHT,
|
|
87
90
|
autoCorrect: this.props.autoCorrect != null ? this.props.autoCorrect : false,
|
|
@@ -89,7 +92,7 @@ class GenericInput extends Component {
|
|
|
89
92
|
autoGrow: this.props.autoGrow != null ? this.props.autoGrow : false,
|
|
90
93
|
multiline: this.props.multiline != null ? this.props.multiline : false,
|
|
91
94
|
style: [styles.searchText, this.props.style, {
|
|
92
|
-
textAlignVertical: this.props.multiline ?
|
|
95
|
+
textAlignVertical: this.props.multiline ? "top" : "center"
|
|
93
96
|
}, this.props.minHeight && {
|
|
94
97
|
minHeight: this.props.minHeight
|
|
95
98
|
}],
|
|
@@ -100,7 +103,7 @@ class GenericInput extends Component {
|
|
|
100
103
|
selectionColor: TEXT_DARK,
|
|
101
104
|
underlineColorAndroid: "rgba(0,0,0,0)",
|
|
102
105
|
editable: this.props.editable != null ? this.props.editable : true,
|
|
103
|
-
autoCapitalize: this.props.autoCapitalize ||
|
|
106
|
+
autoCapitalize: this.props.autoCapitalize || "none",
|
|
104
107
|
onKeyPress: this.props.onKeyPress,
|
|
105
108
|
onSubmitEditing: this.props.onSubmitEditing,
|
|
106
109
|
onFocus: this.props.onFocus,
|
|
@@ -113,9 +116,9 @@ const styles = {
|
|
|
113
116
|
searchInputContainer: {
|
|
114
117
|
flex: 1,
|
|
115
118
|
borderRadius: 25,
|
|
116
|
-
backgroundColor:
|
|
117
|
-
alignItems:
|
|
118
|
-
flexDirection:
|
|
119
|
+
backgroundColor: "#ebeff2",
|
|
120
|
+
alignItems: "center",
|
|
121
|
+
flexDirection: "row",
|
|
119
122
|
paddingHorizontal: 16
|
|
120
123
|
},
|
|
121
124
|
squaredSearchInputContainer: {
|
|
@@ -139,7 +142,7 @@ const styles = {
|
|
|
139
142
|
},
|
|
140
143
|
searchText: {
|
|
141
144
|
color: TEXT_DARKEST,
|
|
142
|
-
fontFamily:
|
|
145
|
+
fontFamily: "sf-regular",
|
|
143
146
|
fontSize: 16,
|
|
144
147
|
flex: 1
|
|
145
148
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","_","TextInput","View","TouchableWithoutFeedback","Icon","TEXT_LIGHT","TEXT_DARK","TEXT_DARKEST","Pl60Icon","GenericInput","constructor","props","state","showSecureText","blur","refs","input","toggleSecureText","setState","renderLeftIcon","icon","iconType","createElement","name","style","styles","searchIcon","type","iconStyle","renderRightIcon","secureTextEntry","onPress","bind","clearIcon","secureIcon","rightIcon","rightIconAction","hasClear","isEmpty","value","onChangeText","render","searchInputContainer","squaredCorners","squaredSearchInputContainer","autoGrow","paddingVertical","minHeight","height","containerStyle","ref","placeholder","placeholderTextColor","autoCorrect","autoFocus","multiline","searchText","textAlignVertical","keyboardType","returnKeyType","selectionColor","underlineColorAndroid","editable","autoCapitalize","onKeyPress","onSubmitEditing","onFocus","onBlur","flex","borderRadius","backgroundColor","alignItems","flexDirection","paddingHorizontal","fontSize","color","marginRight","marginLeft","marginTop","marginBottom","fontFamily"],"sources":["GenericInput.js"],"sourcesContent":["import React, { Component } from 'react';\nimport _ from 'lodash';\nimport { TextInput, View, TouchableWithoutFeedback } from 'react-native';\nimport { Icon } from '@rneui/themed';\nimport { TEXT_LIGHT, TEXT_DARK, TEXT_DARKEST } from '../colours';\nimport { Pl60Icon } from '../fonts';\n\nclass GenericInput extends Component {\n constructor(props) {\n super(props);\n this.state = {\n showSecureText: false,\n };\n }\n\n blur() {\n this.refs.input.blur();\n }\n\n toggleSecureText() {\n this.setState({\n showSecureText: !this.state.showSecureText,\n });\n }\n\n renderLeftIcon() {\n if (!this.props.icon) {\n return null;\n }\n if (this.props.iconType && this.props.iconType === 'pl60') {\n return <Pl60Icon name={this.props.icon} style={styles.searchIcon} />;\n }\n return <Icon type=\"font-awesome\" name={this.props.icon} iconStyle={styles.searchIcon} />;\n }\n\n renderRightIcon() {\n if (this.props.secureTextEntry) {\n return (\n <TouchableWithoutFeedback onPress={this.toggleSecureText.bind(this)}>\n <Pl60Icon name={this.state.showSecureText ? 'hide' : 'show'} style={[styles.clearIcon, styles.secureIcon]} />\n </TouchableWithoutFeedback>\n );\n }\n if (this.props.rightIcon) {\n if (this.props.rightIconAction) {\n return (\n <TouchableWithoutFeedback onPress={this.props.rightIconAction}>\n <Icon type=\"font-awesome\" name={this.props.rightIcon} iconStyle={styles.clearIcon} />\n </TouchableWithoutFeedback>\n );\n }\n return <Icon type=\"font-awesome\" name={this.props.rightIcon} iconStyle={styles.clearIcon} />;\n }\n if (this.props.hasClear && !_.isEmpty(this.props.value)) {\n return (\n <TouchableWithoutFeedback\n onPress={() => {\n this.props.onChangeText('');\n }}\n >\n <Pl60Icon name=\"clear\" style={styles.clearIcon} />\n </TouchableWithoutFeedback>\n );\n }\n return null;\n }\n\n render() {\n return (\n <View\n style={[\n styles.searchInputContainer,\n this.props.squaredCorners && styles.squaredSearchInputContainer,\n this.props.autoGrow ? { paddingVertical: 8, minHeight: 40 } : { height: 36 },\n this.props.containerStyle,\n ]}\n >\n {this.renderLeftIcon()}\n <TextInput\n ref=\"input\"\n placeholder={this.props.placeholder}\n placeholderTextColor={TEXT_LIGHT}\n autoCorrect={this.props.autoCorrect != null ? this.props.autoCorrect : false}\n autoFocus={this.props.autoFocus != null ? this.props.autoFocus : false}\n autoGrow={this.props.autoGrow != null ? this.props.autoGrow : false}\n multiline={this.props.multiline != null ? this.props.multiline : false}\n style={[\n styles.searchText,\n this.props.style,\n { textAlignVertical: this.props.multiline ? 'top' : 'center' },\n this.props.minHeight && { minHeight: this.props.minHeight },\n ]}\n value={this.props.value}\n onChangeText={this.props.onChangeText}\n keyboardType={this.props.keyboardType}\n returnKeyType={this.props.returnKeyType}\n selectionColor={TEXT_DARK}\n underlineColorAndroid=\"rgba(0,0,0,0)\"\n editable={this.props.editable != null ? this.props.editable : true}\n autoCapitalize={this.props.autoCapitalize || 'none'}\n onKeyPress={this.props.onKeyPress}\n onSubmitEditing={this.props.onSubmitEditing}\n onFocus={this.props.onFocus}\n onBlur={this.props.onBlur}\n secureTextEntry={this.props.secureTextEntry && !this.state.showSecureText}\n />\n {this.renderRightIcon()}\n </View>\n );\n }\n}\n\nconst styles = {\n searchInputContainer: {\n flex: 1,\n borderRadius: 25,\n backgroundColor: '#ebeff2',\n alignItems: 'center',\n flexDirection: 'row',\n paddingHorizontal: 16,\n },\n squaredSearchInputContainer: {\n borderRadius: 5,\n paddingHorizontal: 8,\n },\n searchIcon: {\n fontSize: 14,\n color: TEXT_LIGHT,\n marginRight: 8,\n },\n clearIcon: {\n fontSize: 14,\n color: TEXT_LIGHT,\n marginLeft: 8,\n marginTop: 8,\n marginBottom: 8,\n },\n secureIcon: {\n fontSize: 20,\n },\n searchText: {\n color: TEXT_DARKEST,\n fontFamily: 'sf-regular',\n fontSize: 16,\n flex: 1,\n },\n};\n\nexport { GenericInput };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,OAAOC,CAAC,MAAM,QAAQ;AACtB,SAASC,SAAS,EAAEC,IAAI,EAAEC,wBAAwB,QAAQ,cAAc;AACxE,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,UAAU,EAAEC,SAAS,EAAEC,YAAY,QAAQ,YAAY;AAChE,SAASC,QAAQ,QAAQ,UAAU;AAEnC,MAAMC,YAAY,SAASV,SAAS,C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AAK,EAAEtE,UAAU;IACjBwE,UAAU,EAAE,CAAC;IACbC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE;EAChB,CAAC;EACD7C,UAAU,EAAE;IACVwC,QAAQ,EAAE;EACZ,CAAC;EACDlB,UAAU,EAAE;IACVmB,KAAK,EAAEpE,YAAY;IACnByE,UAAU,EAAE,YAAY;IACxBN,QAAQ,EAAE,EAAE;IACZN,IAAI,EAAE;EACR;AACF,CAAC;AAED,SAAS3D,YAAY","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Component","_","TextInput","View","TouchableWithoutFeedback","Text","Icon","TEXT_LIGHT","TEXT_DARK","TEXT_DARKEST","FontAwesome","GenericInput","constructor","props","state","showSecureText","inputRef","createRef","blur","current","toggleSecureText","setState","renderLeftIcon","icon","iconType","createElement","name","style","styles","searchIcon","type","iconStyle","renderRightIcon","secureTextEntry","onPress","bind","clearIcon","secureIcon","rightIcon","rightIconAction","hasClear","isEmpty","value","onChangeText","render","searchInputContainer","squaredCorners","squaredSearchInputContainer","autoGrow","paddingVertical","minHeight","height","containerStyle","maxFontSizeMultiplier","ref","placeholder","placeholderTextColor","autoCorrect","autoFocus","multiline","searchText","textAlignVertical","keyboardType","returnKeyType","selectionColor","underlineColorAndroid","editable","autoCapitalize","onKeyPress","onSubmitEditing","onFocus","onBlur","flex","borderRadius","backgroundColor","alignItems","flexDirection","paddingHorizontal","fontSize","color","marginRight","marginLeft","marginTop","marginBottom","fontFamily"],"sources":["GenericInput.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport _ from \"lodash\";\nimport { TextInput, View, TouchableWithoutFeedback } from \"react-native\";\nimport { Text } from \".\";\nimport { Icon } from \"@rneui/themed\";\nimport { TEXT_LIGHT, TEXT_DARK, TEXT_DARKEST } from \"../colours\";\nimport { FontAwesome } from \"./Icon\";\n\nclass GenericInput extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tshowSecureText: false,\n\t\t};\n\t\tthis.inputRef = React.createRef();\n\t}\n\n\tblur() {\n\t\tthis.inputRef.current.blur();\n\t}\n\n\ttoggleSecureText() {\n\t\tthis.setState({\n\t\t\tshowSecureText: !this.state.showSecureText,\n\t\t});\n\t}\n\n\trenderLeftIcon() {\n\t\tif (!this.props.icon) {\n\t\t\treturn null;\n\t\t}\n\t\tif (this.props.iconType && this.props.iconType === \"pl60\") {\n\t\t\treturn <FontAwesome name={this.props.icon} style={styles.searchIcon} />;\n\t\t}\n\t\treturn (\n\t\t\t<Icon\n\t\t\t\ttype=\"font-awesome\"\n\t\t\t\tname={this.props.icon}\n\t\t\t\ticonStyle={styles.searchIcon}\n\t\t\t/>\n\t\t);\n\t}\n\n\trenderRightIcon() {\n\t\tif (this.props.secureTextEntry) {\n\t\t\treturn (\n\t\t\t\t<TouchableWithoutFeedback onPress={this.toggleSecureText.bind(this)}>\n\t\t\t\t\t<FontAwesome\n\t\t\t\t\t\tname={this.state.showSecureText ? \"eye-slash\" : \"eye\"}\n\t\t\t\t\t\tstyle={[styles.clearIcon, styles.secureIcon]}\n\t\t\t\t\t/>\n\t\t\t\t</TouchableWithoutFeedback>\n\t\t\t);\n\t\t}\n\t\tif (this.props.rightIcon) {\n\t\t\tif (this.props.rightIconAction) {\n\t\t\t\treturn (\n\t\t\t\t\t<TouchableWithoutFeedback onPress={this.props.rightIconAction}>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ttype=\"font-awesome\"\n\t\t\t\t\t\t\tname={this.props.rightIcon}\n\t\t\t\t\t\t\ticonStyle={styles.clearIcon}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</TouchableWithoutFeedback>\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<Icon\n\t\t\t\t\ttype=\"font-awesome\"\n\t\t\t\t\tname={this.props.rightIcon}\n\t\t\t\t\ticonStyle={styles.clearIcon}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t\tif (this.props.hasClear && !_.isEmpty(this.props.value)) {\n\t\t\treturn (\n\t\t\t\t<TouchableWithoutFeedback\n\t\t\t\t\tonPress={() => {\n\t\t\t\t\t\tthis.props.onChangeText(\"\");\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<FontAwesome name=\"circle-x\" style={styles.clearIcon} />\n\t\t\t\t</TouchableWithoutFeedback>\n\t\t\t);\n\t\t}\n\t\treturn null;\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[\n\t\t\t\t\tstyles.searchInputContainer,\n\t\t\t\t\tthis.props.squaredCorners && styles.squaredSearchInputContainer,\n\t\t\t\t\tthis.props.autoGrow\n\t\t\t\t\t\t? { paddingVertical: 8, minHeight: 40 }\n\t\t\t\t\t\t: { height: 36 },\n\t\t\t\t\tthis.props.containerStyle,\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t{this.renderLeftIcon()}\n\t\t\t\t<TextInput\n\t\t\t\t\tmaxFontSizeMultiplier={1.2}\n\t\t\t\t\tref={this.inputRef}\n\t\t\t\t\tplaceholder={this.props.placeholder}\n\t\t\t\t\tplaceholderTextColor={TEXT_LIGHT}\n\t\t\t\t\tautoCorrect={\n\t\t\t\t\t\tthis.props.autoCorrect != null ? this.props.autoCorrect : false\n\t\t\t\t\t}\n\t\t\t\t\tautoFocus={\n\t\t\t\t\t\tthis.props.autoFocus != null ? this.props.autoFocus : false\n\t\t\t\t\t}\n\t\t\t\t\tautoGrow={this.props.autoGrow != null ? this.props.autoGrow : false}\n\t\t\t\t\tmultiline={\n\t\t\t\t\t\tthis.props.multiline != null ? this.props.multiline : false\n\t\t\t\t\t}\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.searchText,\n\t\t\t\t\t\tthis.props.style,\n\t\t\t\t\t\t{ textAlignVertical: this.props.multiline ? \"top\" : \"center\" },\n\t\t\t\t\t\tthis.props.minHeight && { minHeight: this.props.minHeight },\n\t\t\t\t\t]}\n\t\t\t\t\tvalue={this.props.value}\n\t\t\t\t\tonChangeText={this.props.onChangeText}\n\t\t\t\t\tkeyboardType={this.props.keyboardType}\n\t\t\t\t\treturnKeyType={this.props.returnKeyType}\n\t\t\t\t\tselectionColor={TEXT_DARK}\n\t\t\t\t\tunderlineColorAndroid=\"rgba(0,0,0,0)\"\n\t\t\t\t\teditable={this.props.editable != null ? this.props.editable : true}\n\t\t\t\t\tautoCapitalize={this.props.autoCapitalize || \"none\"}\n\t\t\t\t\tonKeyPress={this.props.onKeyPress}\n\t\t\t\t\tonSubmitEditing={this.props.onSubmitEditing}\n\t\t\t\t\tonFocus={this.props.onFocus}\n\t\t\t\t\tonBlur={this.props.onBlur}\n\t\t\t\t\tsecureTextEntry={\n\t\t\t\t\t\tthis.props.secureTextEntry && !this.state.showSecureText\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t\t{this.renderRightIcon()}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tsearchInputContainer: {\n\t\tflex: 1,\n\t\tborderRadius: 25,\n\t\tbackgroundColor: \"#ebeff2\",\n\t\talignItems: \"center\",\n\t\tflexDirection: \"row\",\n\t\tpaddingHorizontal: 16,\n\t},\n\tsquaredSearchInputContainer: {\n\t\tborderRadius: 5,\n\t\tpaddingHorizontal: 8,\n\t},\n\tsearchIcon: {\n\t\tfontSize: 14,\n\t\tcolor: TEXT_LIGHT,\n\t\tmarginRight: 8,\n\t},\n\tclearIcon: {\n\t\tfontSize: 14,\n\t\tcolor: TEXT_LIGHT,\n\t\tmarginLeft: 8,\n\t\tmarginTop: 8,\n\t\tmarginBottom: 8,\n\t},\n\tsecureIcon: {\n\t\tfontSize: 20,\n\t},\n\tsearchText: {\n\t\tcolor: TEXT_DARKEST,\n\t\tfontFamily: \"sf-regular\",\n\t\tfontSize: 16,\n\t\tflex: 1,\n\t},\n};\n\nexport { GenericInput };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,OAAOC,CAAC,MAAM,QAAQ;AACt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E,EAAE;IAChBC,eAAe,EAAE,SAAS;IAC1BC,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAE,KAAK;IACpBC,iBAAiB,EAAE;EACpB,CAAC;EACD9B,2BAA2B,EAAE;IAC5B0B,YAAY,EAAE,CAAC;IACfI,iBAAiB,EAAE;EACpB,CAAC;EACDhD,UAAU,EAAE;IACXiD,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAExE,UAAU;IACjByE,WAAW,EAAE;EACd,CAAC;EACD5C,SAAS,EAAE;IACV0C,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAExE,UAAU;IACjB0E,UAAU,EAAE,CAAC;IACbC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE;EACf,CAAC;EACD9C,UAAU,EAAE;IACXyC,QAAQ,EAAE;EACX,CAAC;EACDlB,UAAU,EAAE;IACXmB,KAAK,EAAEtE,YAAY;IACnB2E,UAAU,EAAE,YAAY;IACxBN,QAAQ,EAAE,EAAE;IACZN,IAAI,EAAE;EACP;AACD,CAAC;AAED,SAAS7D,YAAY","ignoreList":[]}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
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, { PureComponent } from
|
|
3
|
-
import { View,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import React, { PureComponent } from "react";
|
|
3
|
+
import { View, TouchableOpacity } from "react-native";
|
|
4
|
+
import { Text } from "./Text";
|
|
5
|
+
import { Icon } from "@rneui/themed";
|
|
6
|
+
import { connect } from "react-redux";
|
|
7
|
+
import { GenericInput } from "./GenericInput";
|
|
8
|
+
import { TEXT_DARKEST, COLOUR_GREEN, COLOUR_GRAPEFRUIT, getMainBrandingColourFromState } from "../colours";
|
|
9
|
+
import { RadioButton } from "./RadioButton";
|
|
9
10
|
class GenericInputSection extends PureComponent {
|
|
10
11
|
renderValidationDot() {
|
|
11
12
|
if (!this.props.required) {
|
|
@@ -49,17 +50,17 @@ class GenericInputSection extends PureComponent {
|
|
|
49
50
|
if (this.props.children) {
|
|
50
51
|
return this.props.children;
|
|
51
52
|
}
|
|
52
|
-
if (this.props.inputType ===
|
|
53
|
+
if (this.props.inputType === "toggle") {
|
|
53
54
|
return /*#__PURE__*/React.createElement(View, {
|
|
54
55
|
style: styles.radioOptionsContainer
|
|
55
|
-
}, this.renderRadioOption(
|
|
56
|
+
}, this.renderRadioOption("Yes", true, this.props.value === true, this.props.onChange), this.renderRadioOption("No", false, this.props.value === false, this.props.onChange));
|
|
56
57
|
}
|
|
57
|
-
if (this.props.inputType ===
|
|
58
|
+
if (this.props.inputType === "radio") {
|
|
58
59
|
return /*#__PURE__*/React.createElement(View, null, this.props.options.map(o => {
|
|
59
60
|
return this.renderRadioOption(o.Label, o.Value, this.props.value === o.Value, this.props.onChange, styles.radioOptionVertical);
|
|
60
61
|
}));
|
|
61
62
|
}
|
|
62
|
-
if (this.props.inputType ===
|
|
63
|
+
if (this.props.inputType === "optionSelector") {
|
|
63
64
|
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
64
65
|
onPress: this.props.onPress
|
|
65
66
|
}, /*#__PURE__*/React.createElement(View, {
|
|
@@ -82,7 +83,7 @@ class GenericInputSection extends PureComponent {
|
|
|
82
83
|
if (this.props.showError === true && !this.props.isValid()) {
|
|
83
84
|
return /*#__PURE__*/React.createElement(Text, {
|
|
84
85
|
style: styles.errorText
|
|
85
|
-
}, this.props.errorText ||
|
|
86
|
+
}, this.props.errorText || "Required");
|
|
86
87
|
}
|
|
87
88
|
return null;
|
|
88
89
|
}
|
|
@@ -95,11 +96,11 @@ class GenericInputSection extends PureComponent {
|
|
|
95
96
|
const styles = {
|
|
96
97
|
container: {},
|
|
97
98
|
labelContainer: {
|
|
98
|
-
flexDirection:
|
|
99
|
-
alignItems:
|
|
99
|
+
flexDirection: "row",
|
|
100
|
+
alignItems: "center"
|
|
100
101
|
},
|
|
101
102
|
labelText: {
|
|
102
|
-
fontFamily:
|
|
103
|
+
fontFamily: "sf-semibold",
|
|
103
104
|
fontSize: 16,
|
|
104
105
|
color: TEXT_DARKEST
|
|
105
106
|
},
|
|
@@ -119,23 +120,23 @@ const styles = {
|
|
|
119
120
|
backgroundColor: COLOUR_GRAPEFRUIT
|
|
120
121
|
},
|
|
121
122
|
radioOptionsContainer: {
|
|
122
|
-
flexDirection:
|
|
123
|
-
alignItems:
|
|
123
|
+
flexDirection: "row",
|
|
124
|
+
alignItems: "center",
|
|
124
125
|
marginTop: 8
|
|
125
126
|
},
|
|
126
127
|
radioOptionVertical: {
|
|
127
128
|
marginTop: 16
|
|
128
129
|
},
|
|
129
130
|
radioOption: {
|
|
130
|
-
flexDirection:
|
|
131
|
-
alignItems:
|
|
131
|
+
flexDirection: "row",
|
|
132
|
+
alignItems: "center",
|
|
132
133
|
marginRight: 24
|
|
133
134
|
},
|
|
134
135
|
radioOptionButton: {
|
|
135
136
|
marginRight: 8
|
|
136
137
|
},
|
|
137
138
|
radioOptionText: {
|
|
138
|
-
fontFamily:
|
|
139
|
+
fontFamily: "sf-medium",
|
|
139
140
|
fontSize: 14,
|
|
140
141
|
color: TEXT_DARKEST
|
|
141
142
|
},
|
|
@@ -143,22 +144,22 @@ const styles = {
|
|
|
143
144
|
marginTop: 8,
|
|
144
145
|
flex: 1,
|
|
145
146
|
height: 36,
|
|
146
|
-
backgroundColor:
|
|
147
|
-
alignItems:
|
|
148
|
-
flexDirection:
|
|
149
|
-
justifyContent:
|
|
147
|
+
backgroundColor: "#ebeff2",
|
|
148
|
+
alignItems: "center",
|
|
149
|
+
flexDirection: "row",
|
|
150
|
+
justifyContent: "space-between",
|
|
150
151
|
borderRadius: 5,
|
|
151
152
|
paddingHorizontal: 8
|
|
152
153
|
},
|
|
153
154
|
optionSelectorText: {
|
|
154
155
|
color: TEXT_DARKEST,
|
|
155
|
-
fontFamily:
|
|
156
|
+
fontFamily: "sf-regular",
|
|
156
157
|
fontSize: 16
|
|
157
158
|
},
|
|
158
159
|
errorText: {
|
|
159
160
|
paddingTop: 4,
|
|
160
161
|
fontSize: 13,
|
|
161
|
-
fontFamily:
|
|
162
|
+
fontFamily: "sf-regular",
|
|
162
163
|
color: COLOUR_GRAPEFRUIT
|
|
163
164
|
}
|
|
164
165
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","PureComponent","View","Text","TouchableOpacity","Icon","connect","GenericInput","TEXT_DARKEST","COLOUR_GREEN","COLOUR_GRAPEFRUIT","getMainBrandingColourFromState","RadioButton","GenericInputSection","renderValidationDot","props","required","createElement","style","styles","validatorDot","isValid","validatorTrue","validatorFalse","renderLabel","label","labelContainer","labelText","labelStyle","renderRadioOption","value","isActive","onChange","onPress","key","radioOption","hitSlop","top","left","bottom","right","iconSize","radioOptionButton","radioOptionText","renderInput","children","inputType","radioOptionsContainer","options","map","o","Label","Value","radioOptionVertical","optionSelector","optionSelectorText","name","type","iconStyle","optionSelectorIcon","color","colourBrandingMain","_extends","containerStyle","input","renderError","showError","errorText","render","container","sectionStyle","flexDirection","alignItems","fontFamily","fontSize","marginTop","height","width","borderRadius","marginLeft","backgroundColor","marginRight","flex","justifyContent","paddingHorizontal","paddingTop","mapStateToProps","state","genericInputSection"],"sources":["GenericInputSection.js"],"sourcesContent":["import React, { PureComponent } from 'react';\nimport { View, Text, TouchableOpacity } from 'react-native';\nimport { Icon } from '@rneui/themed';\nimport { connect } from 'react-redux';\nimport { GenericInput } from './GenericInput';\nimport { TEXT_DARKEST, COLOUR_GREEN, COLOUR_GRAPEFRUIT, getMainBrandingColourFromState } from '../colours';\nimport { RadioButton } from './RadioButton';\n\nclass GenericInputSection extends PureComponent {\n renderValidationDot() {\n if (!this.props.required) {\n return null;\n }\n return <View style={[styles.validatorDot, this.props.isValid() ? styles.validatorTrue : styles.validatorFalse]} />;\n }\n\n renderLabel() {\n if (!this.props.label) {\n return null;\n }\n return (\n <View style={styles.labelContainer}>\n <Text style={[styles.labelText, this.props.labelStyle]}>{this.props.label}</Text>\n {this.renderValidationDot()}\n </View>\n );\n }\n\n renderRadioOption(label, value, isActive, onChange, style) {\n return (\n <TouchableOpacity\n onPress={() => onChange(value)}\n key={label}\n style={[styles.radioOption, style]}\n hitSlop={{ top: 8, left: 8, bottom: 8, right: 8 }}\n >\n <RadioButton onPress={() => onChange(value)} isActive={isActive} iconSize={22} style={styles.radioOptionButton} />\n <Text style={styles.radioOptionText}>{label}</Text>\n </TouchableOpacity>\n );\n }\n\n renderInput() {\n if (this.props.children) {\n return this.props.children;\n }\n if (this.props.inputType === 'toggle') {\n return (\n <View style={styles.radioOptionsContainer}>\n {this.renderRadioOption('Yes', true, this.props.value === true, this.props.onChange)}\n {this.renderRadioOption('No', false, this.props.value === false, this.props.onChange)}\n </View>\n );\n }\n if (this.props.inputType === 'radio') {\n return (\n <View>\n {this.props.options.map(o => {\n return this.renderRadioOption(o.Label, o.Value, this.props.value === o.Value, this.props.onChange, styles.radioOptionVertical);\n })}\n </View>\n );\n }\n if (this.props.inputType === 'optionSelector') {\n return (\n <TouchableOpacity onPress={this.props.onPress}>\n <View style={styles.optionSelector}>\n <Text style={styles.optionSelectorText}>{this.props.value}</Text>\n <Icon\n name=\"angle-right\"\n type=\"font-awesome\"\n iconStyle={[styles.optionSelectorIcon, { color: this.props.colourBrandingMain }]}\n />\n </View>\n </TouchableOpacity>\n );\n }\n return <GenericInput {...this.props} containerStyle={[styles.input, this.props.containerStyle]} />;\n }\n\n renderError() {\n if (this.props.showError === true && !this.props.isValid()) {\n return <Text style={styles.errorText}>{this.props.errorText || 'Required'}</Text>;\n }\n return null;\n }\n\n render() {\n return (\n <View style={[styles.container, this.props.sectionStyle]}>\n {this.renderLabel()}\n {this.renderInput()}\n {this.renderError()}\n </View>\n );\n }\n}\n\nconst styles = {\n container: {},\n labelContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n labelText: {\n fontFamily: 'sf-semibold',\n fontSize: 16,\n color: TEXT_DARKEST,\n },\n input: {\n marginTop: 8,\n },\n validatorDot: {\n height: 6,\n width: 6,\n borderRadius: 3,\n marginLeft: 8,\n },\n validatorTrue: {\n backgroundColor: COLOUR_GREEN,\n },\n validatorFalse: {\n backgroundColor: COLOUR_GRAPEFRUIT,\n },\n radioOptionsContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n marginTop: 8,\n },\n radioOptionVertical: {\n marginTop: 16,\n },\n radioOption: {\n flexDirection: 'row',\n alignItems: 'center',\n marginRight: 24,\n },\n radioOptionButton: {\n marginRight: 8,\n },\n radioOptionText: {\n fontFamily: 'sf-medium',\n fontSize: 14,\n color: TEXT_DARKEST,\n },\n optionSelector: {\n marginTop: 8,\n flex: 1,\n height: 36,\n backgroundColor: '#ebeff2',\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-between',\n borderRadius: 5,\n paddingHorizontal: 8,\n },\n optionSelectorText: {\n color: TEXT_DARKEST,\n fontFamily: 'sf-regular',\n fontSize: 16,\n },\n errorText: {\n paddingTop: 4,\n fontSize: 13,\n fontFamily: 'sf-regular',\n color: COLOUR_GRAPEFRUIT,\n },\n};\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: getMainBrandingColourFromState(state),\n };\n};\n\nconst genericInputSection = connect(mapStateToProps, {})(GenericInputSection);\nexport { genericInputSection as GenericInputSection };\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AAC3D,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,YAAY,EAAEC,YAAY,EAAEC,iBAAiB,EAAEC,8BAA8B,Q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,cAAc,EAAE;IACdqB,SAAS,EAAE,CAAC;IACZO,IAAI,EAAE,CAAC;IACPN,MAAM,EAAE,EAAE;IACVI,eAAe,EAAE,SAAS;IAC1BR,UAAU,EAAE,QAAQ;IACpBD,aAAa,EAAE,KAAK;IACpBY,cAAc,EAAE,eAAe;IAC/BL,YAAY,EAAE,CAAC;IACfM,iBAAiB,EAAE;EACrB,CAAC;EACD7B,kBAAkB,EAAE;IAClBK,KAAK,EAAEpD,YAAY;IACnBiE,UAAU,EAAE,YAAY;IACxBC,QAAQ,EAAE;EACZ,CAAC;EACDP,SAAS,EAAE;IACTkB,UAAU,EAAE,CAAC;IACbX,QAAQ,EAAE,EAAE;IACZD,UAAU,EAAE,YAAY;IACxBb,KAAK,EAAElD;EACT;AACF,CAAC;AAED,MAAM4E,eAAe,GAAGC,KAAK,IAAI;EAC/B,OAAO;IACL1B,kBAAkB,EAAElD,8BAA8B,CAAC4E,KAAK;EAC1D,CAAC;AACH,CAAC;AAED,MAAMC,mBAAmB,GAAGlF,OAAO,CAACgF,eAAe,EAAE,CAAC,CAAC,CAAC,CAACzE,mBAAmB,CAAC;AAC7E,SAAS2E,mBAAmB,IAAI3E,mBAAmB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","PureComponent","View","TouchableOpacity","Text","Icon","connect","GenericInput","TEXT_DARKEST","COLOUR_GREEN","COLOUR_GRAPEFRUIT","getMainBrandingColourFromState","RadioButton","GenericInputSection","renderValidationDot","props","required","createElement","style","styles","validatorDot","isValid","validatorTrue","validatorFalse","renderLabel","label","labelContainer","labelText","labelStyle","renderRadioOption","value","isActive","onChange","onPress","key","radioOption","hitSlop","top","left","bottom","right","iconSize","radioOptionButton","radioOptionText","renderInput","children","inputType","radioOptionsContainer","options","map","o","Label","Value","radioOptionVertical","optionSelector","optionSelectorText","name","type","iconStyle","optionSelectorIcon","color","colourBrandingMain","_extends","containerStyle","input","renderError","showError","errorText","render","container","sectionStyle","flexDirection","alignItems","fontFamily","fontSize","marginTop","height","width","borderRadius","marginLeft","backgroundColor","marginRight","flex","justifyContent","paddingHorizontal","paddingTop","mapStateToProps","state","genericInputSection"],"sources":["GenericInputSection.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View, TouchableOpacity } from \"react-native\";\nimport { Text } from \"./Text\";\nimport { Icon } from \"@rneui/themed\";\nimport { connect } from \"react-redux\";\nimport { GenericInput } from \"./GenericInput\";\nimport {\n\tTEXT_DARKEST,\n\tCOLOUR_GREEN,\n\tCOLOUR_GRAPEFRUIT,\n\tgetMainBrandingColourFromState,\n} from \"../colours\";\nimport { RadioButton } from \"./RadioButton\";\n\nclass GenericInputSection extends PureComponent {\n\trenderValidationDot() {\n\t\tif (!this.props.required) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[\n\t\t\t\t\tstyles.validatorDot,\n\t\t\t\t\tthis.props.isValid() ? styles.validatorTrue : styles.validatorFalse,\n\t\t\t\t]}\n\t\t\t/>\n\t\t);\n\t}\n\n\trenderLabel() {\n\t\tif (!this.props.label) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t<View style={styles.labelContainer}>\n\t\t\t\t<Text style={[styles.labelText, this.props.labelStyle]}>\n\t\t\t\t\t{this.props.label}\n\t\t\t\t</Text>\n\t\t\t\t{this.renderValidationDot()}\n\t\t\t</View>\n\t\t);\n\t}\n\n\trenderRadioOption(label, value, isActive, onChange, style) {\n\t\treturn (\n\t\t\t<TouchableOpacity\n\t\t\t\tonPress={() => onChange(value)}\n\t\t\t\tkey={label}\n\t\t\t\tstyle={[styles.radioOption, style]}\n\t\t\t\thitSlop={{ top: 8, left: 8, bottom: 8, right: 8 }}\n\t\t\t>\n\t\t\t\t<RadioButton\n\t\t\t\t\tonPress={() => onChange(value)}\n\t\t\t\t\tisActive={isActive}\n\t\t\t\t\ticonSize={22}\n\t\t\t\t\tstyle={styles.radioOptionButton}\n\t\t\t\t/>\n\t\t\t\t<Text style={styles.radioOptionText}>{label}</Text>\n\t\t\t</TouchableOpacity>\n\t\t);\n\t}\n\n\trenderInput() {\n\t\tif (this.props.children) {\n\t\t\treturn this.props.children;\n\t\t}\n\t\tif (this.props.inputType === \"toggle\") {\n\t\t\treturn (\n\t\t\t\t<View style={styles.radioOptionsContainer}>\n\t\t\t\t\t{this.renderRadioOption(\n\t\t\t\t\t\t\"Yes\",\n\t\t\t\t\t\ttrue,\n\t\t\t\t\t\tthis.props.value === true,\n\t\t\t\t\t\tthis.props.onChange,\n\t\t\t\t\t)}\n\t\t\t\t\t{this.renderRadioOption(\n\t\t\t\t\t\t\"No\",\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\tthis.props.value === false,\n\t\t\t\t\t\tthis.props.onChange,\n\t\t\t\t\t)}\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\tif (this.props.inputType === \"radio\") {\n\t\t\treturn (\n\t\t\t\t<View>\n\t\t\t\t\t{this.props.options.map((o) => {\n\t\t\t\t\t\treturn this.renderRadioOption(\n\t\t\t\t\t\t\to.Label,\n\t\t\t\t\t\t\to.Value,\n\t\t\t\t\t\t\tthis.props.value === o.Value,\n\t\t\t\t\t\t\tthis.props.onChange,\n\t\t\t\t\t\t\tstyles.radioOptionVertical,\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\tif (this.props.inputType === \"optionSelector\") {\n\t\t\treturn (\n\t\t\t\t<TouchableOpacity onPress={this.props.onPress}>\n\t\t\t\t\t<View style={styles.optionSelector}>\n\t\t\t\t\t\t<Text style={styles.optionSelectorText}>{this.props.value}</Text>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tname=\"angle-right\"\n\t\t\t\t\t\t\ttype=\"font-awesome\"\n\t\t\t\t\t\t\ticonStyle={[\n\t\t\t\t\t\t\t\tstyles.optionSelectorIcon,\n\t\t\t\t\t\t\t\t{ color: this.props.colourBrandingMain },\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</TouchableOpacity>\n\t\t\t);\n\t\t}\n\t\treturn (\n\t\t\t<GenericInput\n\t\t\t\t{...this.props}\n\t\t\t\tcontainerStyle={[styles.input, this.props.containerStyle]}\n\t\t\t/>\n\t\t);\n\t}\n\n\trenderError() {\n\t\tif (this.props.showError === true && !this.props.isValid()) {\n\t\t\treturn (\n\t\t\t\t<Text style={styles.errorText}>\n\t\t\t\t\t{this.props.errorText || \"Required\"}\n\t\t\t\t</Text>\n\t\t\t);\n\t\t}\n\t\treturn null;\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<View style={[styles.container, this.props.sectionStyle]}>\n\t\t\t\t{this.renderLabel()}\n\t\t\t\t{this.renderInput()}\n\t\t\t\t{this.renderError()}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {},\n\tlabelContainer: {\n\t\tflexDirection: \"row\",\n\t\talignItems: \"center\",\n\t},\n\tlabelText: {\n\t\tfontFamily: \"sf-semibold\",\n\t\tfontSize: 16,\n\t\tcolor: TEXT_DARKEST,\n\t},\n\tinput: {\n\t\tmarginTop: 8,\n\t},\n\tvalidatorDot: {\n\t\theight: 6,\n\t\twidth: 6,\n\t\tborderRadius: 3,\n\t\tmarginLeft: 8,\n\t},\n\tvalidatorTrue: {\n\t\tbackgroundColor: COLOUR_GREEN,\n\t},\n\tvalidatorFalse: {\n\t\tbackgroundColor: COLOUR_GRAPEFRUIT,\n\t},\n\tradioOptionsContainer: {\n\t\tflexDirection: \"row\",\n\t\talignItems: \"center\",\n\t\tmarginTop: 8,\n\t},\n\tradioOptionVertical: {\n\t\tmarginTop: 16,\n\t},\n\tradioOption: {\n\t\tflexDirection: \"row\",\n\t\talignItems: \"center\",\n\t\tmarginRight: 24,\n\t},\n\tradioOptionButton: {\n\t\tmarginRight: 8,\n\t},\n\tradioOptionText: {\n\t\tfontFamily: \"sf-medium\",\n\t\tfontSize: 14,\n\t\tcolor: TEXT_DARKEST,\n\t},\n\toptionSelector: {\n\t\tmarginTop: 8,\n\t\tflex: 1,\n\t\theight: 36,\n\t\tbackgroundColor: \"#ebeff2\",\n\t\talignItems: \"center\",\n\t\tflexDirection: \"row\",\n\t\tjustifyContent: \"space-between\",\n\t\tborderRadius: 5,\n\t\tpaddingHorizontal: 8,\n\t},\n\toptionSelectorText: {\n\t\tcolor: TEXT_DARKEST,\n\t\tfontFamily: \"sf-regular\",\n\t\tfontSize: 16,\n\t},\n\terrorText: {\n\t\tpaddingTop: 4,\n\t\tfontSize: 13,\n\t\tfontFamily: \"sf-regular\",\n\t\tcolor: COLOUR_GRAPEFRUIT,\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t};\n};\n\nconst genericInputSection = connect(mapStateToProps, {})(GenericInputSection);\nexport { genericInputSection as GenericInputSection };\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AACrD,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SACCC,YAAY,EACZC,YAAY,EACZC,iBAAiB,EACjBC,8BAA8B,QACxB,YAAY;AACnB,SAASC,WAAW,QAAQ,eAAe;AAE3C,MAAMC,mBAAmB,SAASZ,aAAa,CAAC;EAC/Ca,mBAAmBA,CAAA,EAAG;IACrB,IAAI,CAAC,IAAI,CAACC,KAAK,CAACC,QAAQ,EAAE;MACzB,OAAO,IAAI;IACZ;IACA,oBACChB,KAAA,CAAAiB,aAAA,CAACf,IAAI;MACJgB,KAAK,EAAE,CACNC,MAAM,CAACC,YAAY,EACnB,IAAI,CAACL,KAAK,CAACM,OAAO,CAAC,CAAC,GAAGF,MAAM,CAACG,aAAa,GAAG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