@plusscommunities/pluss-core-app 8.0.29 → 8.0.35
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 +34 -0
- package/dist/module/actions/FollowerActions.js.map +1 -0
- package/dist/module/actions/MediaActions.js +29 -0
- package/dist/module/actions/MediaActions.js.map +1 -0
- package/dist/module/actions/ResidentActions.js +26 -0
- package/dist/module/actions/ResidentActions.js.map +1 -0
- package/dist/module/actions/UserActions.js +223 -0
- package/dist/module/actions/UserActions.js.map +1 -0
- package/dist/module/actions/UserSettingsActions.js +14 -0
- package/dist/module/actions/UserSettingsActions.js.map +1 -0
- package/dist/module/actions/index.js +6 -0
- package/dist/module/actions/index.js.map +1 -0
- package/dist/module/actions/types.js +17 -0
- package/dist/module/actions/types.js.map +1 -0
- package/dist/module/apis/analyticsActions.js +20 -0
- package/dist/module/apis/analyticsActions.js.map +1 -0
- package/dist/module/apis/contactActions.js +27 -0
- package/dist/module/apis/contactActions.js.map +1 -0
- package/dist/module/apis/eventActions.js +161 -0
- package/dist/module/apis/eventActions.js.map +1 -0
- package/dist/module/apis/fileActions.js +93 -0
- package/dist/module/apis/fileActions.js.map +1 -0
- package/dist/module/apis/followerActions.js +38 -0
- package/dist/module/apis/followerActions.js.map +1 -0
- package/dist/module/apis/index.js +13 -0
- package/dist/module/apis/index.js.map +1 -0
- package/dist/module/apis/notificationActions.js +60 -0
- package/dist/module/apis/notificationActions.js.map +1 -0
- package/dist/module/apis/profileActions.js +14 -0
- package/dist/module/apis/profileActions.js.map +1 -0
- package/dist/module/apis/reactionActions.js +76 -0
- package/dist/module/apis/reactionActions.js.map +1 -0
- package/dist/module/apis/settingActions.js +22 -0
- package/dist/module/apis/settingActions.js.map +1 -0
- package/dist/module/apis/stringActions.js +30 -0
- package/dist/module/apis/stringActions.js.map +1 -0
- package/dist/module/apis/typeActions.js +15 -0
- package/dist/module/apis/typeActions.js.map +1 -0
- package/dist/module/apis/userActions.js +104 -0
- package/dist/module/apis/userActions.js.map +1 -0
- 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/assets/icons/reactions/heart.png +0 -0
- package/dist/module/assets/icons/reactions/party.png +0 -0
- package/dist/module/assets/icons/reactions/sad.png +0 -0
- package/dist/module/assets/icons/reactions/smile.png +0 -0
- package/dist/module/colours.js +165 -0
- package/dist/module/colours.js.map +1 -0
- package/dist/module/components/AddButton.js +43 -0
- package/dist/module/components/AddButton.js.map +1 -0
- package/dist/module/components/AddToCalendarButton.js +225 -0
- package/dist/module/components/AddToCalendarButton.js.map +1 -0
- package/dist/module/components/Attachment.js +55 -0
- package/dist/module/components/Attachment.js.map +1 -0
- package/dist/module/components/AudienceSelectorLauncher.js +64 -0
- package/dist/module/components/AudienceSelectorLauncher.js.map +1 -0
- package/dist/module/components/AudienceSelectorPage.js +351 -0
- package/dist/module/components/AudienceSelectorPage.js.map +1 -0
- package/dist/module/components/AutoOffsetImage.js +184 -0
- package/dist/module/components/AutoOffsetImage.js.map +1 -0
- package/dist/module/components/BackButton.js +58 -0
- package/dist/module/components/BackButton.js.map +1 -0
- package/dist/module/components/CalendarPopup.js +126 -0
- package/dist/module/components/CalendarPopup.js.map +1 -0
- package/dist/module/components/CategoryTabs.js +155 -0
- package/dist/module/components/CategoryTabs.js.map +1 -0
- package/dist/module/components/CommentReply.js +334 -0
- package/dist/module/components/CommentReply.js.map +1 -0
- package/dist/module/components/CommentSection.js +832 -0
- package/dist/module/components/CommentSection.js.map +1 -0
- package/dist/module/components/ConfirmPopup.js +109 -0
- package/dist/module/components/ConfirmPopup.js.map +1 -0
- package/dist/module/components/ConfirmationPopup.js +72 -0
- package/dist/module/components/ConfirmationPopup.js.map +1 -0
- package/dist/module/components/DocumentUploader.js +253 -0
- package/dist/module/components/DocumentUploader.js.map +1 -0
- package/dist/module/components/DropDownItem.js +75 -0
- package/dist/module/components/DropDownItem.js.map +1 -0
- package/dist/module/components/DropDownMenu.js +41 -0
- package/dist/module/components/DropDownMenu.js.map +1 -0
- package/dist/module/components/EmptyStateMain.js +51 -0
- package/dist/module/components/EmptyStateMain.js.map +1 -0
- package/dist/module/components/EmptyStateWidget.js +48 -0
- package/dist/module/components/EmptyStateWidget.js.map +1 -0
- package/dist/module/components/FontScaleButton.js +37 -0
- package/dist/module/components/FontScaleButton.js.map +1 -0
- package/dist/module/components/FontScalePopup.js +76 -0
- package/dist/module/components/FontScalePopup.js.map +1 -0
- package/dist/module/components/Forbidden.js +58 -0
- package/dist/module/components/Forbidden.js.map +1 -0
- package/dist/module/components/FormCard.js +25 -0
- package/dist/module/components/FormCard.js.map +1 -0
- package/dist/module/components/FormCardSection.js +214 -0
- package/dist/module/components/FormCardSection.js.map +1 -0
- package/dist/module/components/FormCardSectionOptionLauncher.js +73 -0
- package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -0
- package/dist/module/components/FormattedText.js +133 -0
- package/dist/module/components/FormattedText.js.map +1 -0
- package/dist/module/components/GenericInput.js +151 -0
- package/dist/module/components/GenericInput.js.map +1 -0
- package/dist/module/components/GenericInputSection.js +173 -0
- package/dist/module/components/GenericInputSection.js.map +1 -0
- package/dist/module/components/Header.js +459 -0
- package/dist/module/components/Header.js.map +1 -0
- package/dist/module/components/Icon.js +109 -0
- package/dist/module/components/Icon.js.map +1 -0
- package/dist/module/components/ImagePopup.js +400 -0
- package/dist/module/components/ImagePopup.js.map +1 -0
- package/dist/module/components/ImageUploadProgress.js +69 -0
- package/dist/module/components/ImageUploadProgress.js.map +1 -0
- package/dist/module/components/ImageUploader.js +831 -0
- package/dist/module/components/ImageUploader.js.map +1 -0
- package/dist/module/components/InlineButton.js +66 -0
- package/dist/module/components/InlineButton.js.map +1 -0
- package/dist/module/components/Input.js +156 -0
- package/dist/module/components/Input.js.map +1 -0
- package/dist/module/components/LoadingCircles.js +219 -0
- package/dist/module/components/LoadingCircles.js.map +1 -0
- package/dist/module/components/LoadingIndicator.js +86 -0
- package/dist/module/components/LoadingIndicator.js.map +1 -0
- package/dist/module/components/LoadingStateWidget.js +46 -0
- package/dist/module/components/LoadingStateWidget.js.map +1 -0
- package/dist/module/components/MediaPlayer.js +407 -0
- package/dist/module/components/MediaPlayer.js.map +1 -0
- package/dist/module/components/MiddlePopup.js +49 -0
- package/dist/module/components/MiddlePopup.js.map +1 -0
- package/dist/module/components/PDFPopup.js +296 -0
- package/dist/module/components/PDFPopup.js.map +1 -0
- package/dist/module/components/PlussChat.js +1078 -0
- package/dist/module/components/PlussChat.js.map +1 -0
- package/dist/module/components/PlussChatMessage.js +299 -0
- package/dist/module/components/PlussChatMessage.js.map +1 -0
- package/dist/module/components/PlussChatTime.js +59 -0
- package/dist/module/components/PlussChatTime.js.map +1 -0
- package/dist/module/components/Popup.js +126 -0
- package/dist/module/components/Popup.js.map +1 -0
- package/dist/module/components/PopupMenu.js +120 -0
- package/dist/module/components/PopupMenu.js.map +1 -0
- package/dist/module/components/PositionedImage.js +313 -0
- package/dist/module/components/PositionedImage.js.map +1 -0
- package/dist/module/components/ProfilePic.js +105 -0
- package/dist/module/components/ProfilePic.js.map +1 -0
- package/dist/module/components/RadioButton.js +78 -0
- package/dist/module/components/RadioButton.js.map +1 -0
- package/dist/module/components/Reaction.js +117 -0
- package/dist/module/components/Reaction.js.map +1 -0
- package/dist/module/components/Reactions.js +71 -0
- package/dist/module/components/Reactions.js.map +1 -0
- package/dist/module/components/SharingTools.js +189 -0
- package/dist/module/components/SharingTools.js.map +1 -0
- package/dist/module/components/Spinner.js +22 -0
- package/dist/module/components/Spinner.js.map +1 -0
- package/dist/module/components/StickyFooter.js +34 -0
- package/dist/module/components/StickyFooter.js.map +1 -0
- package/dist/module/components/Text.js +57 -0
- package/dist/module/components/Text.js.map +1 -0
- package/dist/module/components/TickIcon.js +24 -0
- package/dist/module/components/TickIcon.js.map +1 -0
- package/dist/module/components/Toggle.js +66 -0
- package/dist/module/components/Toggle.js.map +1 -0
- package/dist/module/components/TouchableSearchBar.js +68 -0
- package/dist/module/components/TouchableSearchBar.js.map +1 -0
- package/dist/module/components/UserListPopup.js +136 -0
- package/dist/module/components/UserListPopup.js.map +1 -0
- package/dist/module/components/UserListing.js +268 -0
- package/dist/module/components/UserListing.js.map +1 -0
- package/dist/module/components/VideoPopup.js +113 -0
- package/dist/module/components/VideoPopup.js.map +1 -0
- package/dist/module/components/WarningPopup.js +85 -0
- package/dist/module/components/WarningPopup.js.map +1 -0
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +289 -0
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -0
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js +117 -0
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -0
- package/dist/module/components/index.js +60 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +422 -0
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -0
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +387 -0
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -0
- package/dist/module/config.js +27 -0
- package/dist/module/config.js.map +1 -0
- package/dist/module/constants.js +18 -0
- package/dist/module/constants.js.map +1 -0
- package/dist/module/helper.js +424 -0
- package/dist/module/helper.js.map +1 -0
- package/dist/module/index.js +13 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/js/images/detectFaces.js +31 -0
- package/dist/module/js/images/detectFaces.js.map +1 -0
- package/dist/module/js/images/findLandmarkRange.js +93 -0
- package/dist/module/js/images/findLandmarkRange.js.map +1 -0
- package/dist/module/js/images/getScaledOffset.js +81 -0
- package/dist/module/js/images/getScaledOffset.js.map +1 -0
- package/dist/module/js/site/getSiteLevelFromState.js +29 -0
- package/dist/module/js/site/getSiteLevelFromState.js.map +1 -0
- package/dist/module/js/site/isTVEnabled.js +10 -0
- package/dist/module/js/site/isTVEnabled.js.map +1 -0
- package/dist/module/session.js +58 -0
- package/dist/module/session.js.map +1 -0
- package/dist/module/styles.js +67 -0
- package/dist/module/styles.js.map +1 -0
- package/dist/module/withNavigationFocus.js +30 -0
- package/dist/module/withNavigationFocus.js.map +1 -0
- package/package.json +1 -1
- package/src/components/CommentSection.js +8 -3
- package/src/components/PDFPopup.js +130 -35
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { LoadingCircles } from "./LoadingCircles";
|
|
4
|
+
const Spinner = ({
|
|
5
|
+
color,
|
|
6
|
+
style
|
|
7
|
+
}) => {
|
|
8
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
9
|
+
style: [styles.spinnerStyle, style]
|
|
10
|
+
}, /*#__PURE__*/React.createElement(LoadingCircles, {
|
|
11
|
+
color: color
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
const styles = {
|
|
15
|
+
spinnerStyle: {
|
|
16
|
+
flex: 1,
|
|
17
|
+
justifyContent: "center",
|
|
18
|
+
alignItems: "center"
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export { Spinner };
|
|
22
|
+
//# sourceMappingURL=Spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","LoadingCircles","Spinner","color","style","createElement","styles","spinnerStyle","flex","justifyContent","alignItems"],"sources":["Spinner.js"],"sourcesContent":["import React from \"react\";\nimport { View } from \"react-native\";\nimport { LoadingCircles } from \"./LoadingCircles\";\n\nconst Spinner = ({ color, style }) => {\n\treturn (\n\t\t<View style={[styles.spinnerStyle, style]}>\n\t\t\t<LoadingCircles color={color} />\n\t\t</View>\n\t);\n};\n\nconst styles = {\n\tspinnerStyle: {\n\t\tflex: 1,\n\t\tjustifyContent: \"center\",\n\t\talignItems: \"center\",\n\t},\n};\n\nexport { Spinner };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,MAAMC,OAAO,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAM,CAAC,KAAK;EACrC,oBACCL,KAAA,CAAAM,aAAA,CAACL,IAAI;IAACI,KAAK,EAAE,CAACE,MAAM,CAACC,YAAY,EAAEH,KAAK;EAAE,gBACzCL,KAAA,CAAAM,aAAA,CAACJ,cAAc;IAACE,KAAK,EAAEA;EAAM,CAAE,CAC1B,CAAC;AAET,CAAC;AAED,MAAMG,MAAM,GAAG;EACdC,YAAY,EAAE;IACbC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACb;AACD,CAAC;AAED,SAASR,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { PureComponent } from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { LINEGREY } from "../colours";
|
|
4
|
+
import { FOOTER_HEIGHT } from "../constants";
|
|
5
|
+
class StickyFooter extends PureComponent {
|
|
6
|
+
render() {
|
|
7
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
8
|
+
style: [styles.section, this.props.lineSeparated && styles.lineSeparated, this.props.style]
|
|
9
|
+
}, this.props.children);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
const styles = {
|
|
13
|
+
section: {
|
|
14
|
+
backgroundColor: "#fff",
|
|
15
|
+
height: FOOTER_HEIGHT,
|
|
16
|
+
borderTopWidth: 0,
|
|
17
|
+
shadowColor: "#000",
|
|
18
|
+
shadowOffset: {
|
|
19
|
+
width: 0,
|
|
20
|
+
height: -1
|
|
21
|
+
},
|
|
22
|
+
shadowOpacity: 0.1,
|
|
23
|
+
shadowRadius: 6,
|
|
24
|
+
elevation: 16
|
|
25
|
+
},
|
|
26
|
+
lineSeparated: {
|
|
27
|
+
borderTopWidth: 1,
|
|
28
|
+
borderColor: LINEGREY,
|
|
29
|
+
shadowOpacity: 0,
|
|
30
|
+
elevation: 0
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export { StickyFooter };
|
|
34
|
+
//# sourceMappingURL=StickyFooter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","PureComponent","View","LINEGREY","FOOTER_HEIGHT","StickyFooter","render","createElement","style","styles","section","props","lineSeparated","children","backgroundColor","height","borderTopWidth","shadowColor","shadowOffset","width","shadowOpacity","shadowRadius","elevation","borderColor"],"sources":["StickyFooter.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View } from \"react-native\";\nimport { LINEGREY } from \"../colours\";\nimport { FOOTER_HEIGHT } from \"../constants\";\n\nclass StickyFooter extends PureComponent {\n\trender() {\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[\n\t\t\t\t\tstyles.section,\n\t\t\t\t\tthis.props.lineSeparated && styles.lineSeparated,\n\t\t\t\t\tthis.props.style,\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t{this.props.children}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tsection: {\n\t\tbackgroundColor: \"#fff\",\n\t\theight: FOOTER_HEIGHT,\n\t\tborderTopWidth: 0,\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: 16,\n\t},\n\tlineSeparated: {\n\t\tborderTopWidth: 1,\n\t\tborderColor: LINEGREY,\n\t\tshadowOpacity: 0,\n\t\televation: 0,\n\t},\n};\n\nexport { StickyFooter };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,aAAa,QAAQ,cAAc;AAE5C,MAAMC,YAAY,SAASJ,aAAa,CAAC;EACxCK,MAAMA,CAAA,EAAG;IACR,oBACCN,KAAA,CAAAO,aAAA,CAACL,IAAI;MACJM,KAAK,EAAE,CACNC,MAAM,CAACC,OAAO,EACd,IAAI,CAACC,KAAK,CAACC,aAAa,IAAIH,MAAM,CAACG,aAAa,EAChD,IAAI,CAACD,KAAK,CAACH,KAAK;IACf,GAED,IAAI,CAACG,KAAK,CAACE,QACP,CAAC;EAET;AACD;AAEA,MAAMJ,MAAM,GAAG;EACdC,OAAO,EAAE;IACRI,eAAe,EAAE,MAAM;IACvBC,MAAM,EAAEX,aAAa;IACrBY,cAAc,EAAE,CAAC;IACjBC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MACbC,KAAK,EAAE,CAAC;MACRJ,MAAM,EAAE,CAAC;IACV,CAAC;IACDK,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACZ,CAAC;EACDV,aAAa,EAAE;IACdI,cAAc,EAAE,CAAC;IACjBO,WAAW,EAAEpB,QAAQ;IACrBiB,aAAa,EAAE,CAAC;IAChBE,SAAS,EAAE;EACZ;AACD,CAAC;AAED,SAASjB,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 "react";
|
|
3
|
+
import { StyleSheet, Text as TextNative } from "react-native";
|
|
4
|
+
import { TEXT_DARKEST, COLOUR_RED } from "../colours";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A wrapper around the react-native Text component that applies a
|
|
8
|
+
* maximum font size multiplier (1.2) to prevent layout breaking.
|
|
9
|
+
*
|
|
10
|
+
* * @typedef {Object} TextProps
|
|
11
|
+
* @property {'pageHeading' | 'heading' | 'label' | 'detailLabel' | 'input' | 'error'} [type] - The style preset to apply.
|
|
12
|
+
* * @example
|
|
13
|
+
* <Text type="pageHeading" className="myClass">Welcome</Text>
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
class Text extends PureComponent {
|
|
17
|
+
render() {
|
|
18
|
+
return /*#__PURE__*/React.createElement(TextNative, _extends({}, this.props, {
|
|
19
|
+
style: [styles[this.props.type], this.props.style],
|
|
20
|
+
maxFontSizeMultiplier: this.props.maxFontSizeMultiplier || 1.2
|
|
21
|
+
}), this.props.children);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const styles = StyleSheet.create({
|
|
25
|
+
pageHeading: {
|
|
26
|
+
fontFamily: "sf-bold",
|
|
27
|
+
fontSize: 24,
|
|
28
|
+
color: TEXT_DARKEST
|
|
29
|
+
},
|
|
30
|
+
body: {
|
|
31
|
+
fontFamily: "sf-regular",
|
|
32
|
+
fontSize: 14,
|
|
33
|
+
color: TEXT_DARKEST
|
|
34
|
+
},
|
|
35
|
+
label: {
|
|
36
|
+
fontFamily: "sf-semibold",
|
|
37
|
+
color: TEXT_DARKEST,
|
|
38
|
+
fontSize: 16
|
|
39
|
+
},
|
|
40
|
+
detailLabel: {
|
|
41
|
+
fontFamily: "sf-bold",
|
|
42
|
+
color: TEXT_DARKEST,
|
|
43
|
+
fontSize: 16
|
|
44
|
+
},
|
|
45
|
+
input: {
|
|
46
|
+
color: TEXT_DARKEST,
|
|
47
|
+
fontFamily: "sf-regular",
|
|
48
|
+
fontSize: 16
|
|
49
|
+
},
|
|
50
|
+
error: {
|
|
51
|
+
fontFamily: "sf-bold",
|
|
52
|
+
color: COLOUR_RED,
|
|
53
|
+
fontSize: 16
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export { Text };
|
|
57
|
+
//# sourceMappingURL=Text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","PureComponent","StyleSheet","Text","TextNative","TEXT_DARKEST","COLOUR_RED","render","createElement","_extends","props","style","styles","type","maxFontSizeMultiplier","children","create","pageHeading","fontFamily","fontSize","color","body","label","detailLabel","input","error"],"sources":["Text.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { StyleSheet, Text as TextNative } from \"react-native\";\nimport { TEXT_DARKEST, COLOUR_RED } from \"../colours\";\n\n/**\n * A wrapper around the react-native Text component that applies a\n * maximum font size multiplier (1.2) to prevent layout breaking.\n *\n * * @typedef {Object} TextProps\n * @property {'pageHeading' | 'heading' | 'label' | 'detailLabel' | 'input' | 'error'} [type] - The style preset to apply.\n * * @example\n * <Text type=\"pageHeading\" className=\"myClass\">Welcome</Text>\n */\n\nclass Text extends PureComponent {\n\trender() {\n\t\treturn (\n\t\t\t<TextNative\n\t\t\t\t{...this.props}\n\t\t\t\tstyle={[styles[this.props.type], this.props.style]}\n\t\t\t\tmaxFontSizeMultiplier={this.props.maxFontSizeMultiplier || 1.2}\n\t\t\t>\n\t\t\t\t{this.props.children}\n\t\t\t</TextNative>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tpageHeading: {\n\t\tfontFamily: \"sf-bold\",\n\t\tfontSize: 24,\n\t\tcolor: TEXT_DARKEST,\n\t},\n\tbody: {\n\t\tfontFamily: \"sf-regular\",\n\t\tfontSize: 14,\n\t\tcolor: TEXT_DARKEST,\n\t},\n\tlabel: {\n\t\tfontFamily: \"sf-semibold\",\n\t\tcolor: TEXT_DARKEST,\n\t\tfontSize: 16,\n\t},\n\tdetailLabel: {\n\t\tfontFamily: \"sf-bold\",\n\t\tcolor: TEXT_DARKEST,\n\t\tfontSize: 16,\n\t},\n\tinput: {\n\t\tcolor: TEXT_DARKEST,\n\t\tfontFamily: \"sf-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AY;IACxBC,QAAQ,EAAE;EACX,CAAC;EACDM,KAAK,EAAE;IACNP,UAAU,EAAE,SAAS;IACrBE,KAAK,EAAEd,UAAU;IACjBa,QAAQ,EAAE;EACX;AACD,CAAC,CAAC;AAEF,SAAShB,IAAI","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { PureComponent } from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import stylez from "../styles";
|
|
4
|
+
import { FontAwesome } from "./Icon";
|
|
5
|
+
class TickIcon extends PureComponent {
|
|
6
|
+
render() {
|
|
7
|
+
const size = this.props.diameter || 20;
|
|
8
|
+
const radius = size / 2;
|
|
9
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
10
|
+
style: [stylez.tickBox, {
|
|
11
|
+
height: size,
|
|
12
|
+
width: size,
|
|
13
|
+
borderRadius: radius
|
|
14
|
+
}, this.props.color && {
|
|
15
|
+
backgroundColor: this.props.color
|
|
16
|
+
}, this.props.style]
|
|
17
|
+
}, /*#__PURE__*/React.createElement(FontAwesome, {
|
|
18
|
+
name: "check",
|
|
19
|
+
style: stylez.tickIcon
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export { TickIcon };
|
|
24
|
+
//# sourceMappingURL=TickIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","PureComponent","View","stylez","FontAwesome","TickIcon","render","size","props","diameter","radius","createElement","style","tickBox","height","width","borderRadius","color","backgroundColor","name","tickIcon"],"sources":["TickIcon.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View } from \"react-native\";\nimport stylez from \"../styles\";\nimport { FontAwesome } from \"./Icon\";\n\nclass TickIcon extends PureComponent {\n\trender() {\n\t\tconst size = this.props.diameter || 20;\n\t\tconst radius = size / 2;\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[\n\t\t\t\t\tstylez.tickBox,\n\t\t\t\t\t{ height: size, width: size, borderRadius: radius },\n\t\t\t\t\tthis.props.color && { backgroundColor: this.props.color },\n\t\t\t\t\tthis.props.style,\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t<FontAwesome name=\"check\" style={stylez.tickIcon} />\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nexport { TickIcon };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AACnC,OAAOC,MAAM,MAAM,WAAW;AAC9B,SAASC,WAAW,QAAQ,QAAQ;AAEpC,MAAMC,QAAQ,SAASJ,aAAa,CAAC;EACpCK,MAAMA,CAAA,EAAG;IACR,MAAMC,IAAI,GAAG,IAAI,CAACC,KAAK,CAACC,QAAQ,IAAI,EAAE;IACtC,MAAMC,MAAM,GAAGH,IAAI,GAAG,CAAC;IACvB,oBACCP,KAAA,CAAAW,aAAA,CAACT,IAAI;MACJU,KAAK,EAAE,CACNT,MAAM,CAACU,OAAO,EACd;QAAEC,MAAM,EAAEP,IAAI;QAAEQ,KAAK,EAAER,IAAI;QAAES,YAAY,EAAEN;MAAO,CAAC,EACnD,IAAI,CAACF,KAAK,CAACS,KAAK,IAAI;QAAEC,eAAe,EAAE,IAAI,CAACV,KAAK,CAACS;MAAM,CAAC,EACzD,IAAI,CAACT,KAAK,CAACI,KAAK;IACf,gBAEFZ,KAAA,CAAAW,aAAA,CAACP,WAAW;MAACe,IAAI,EAAC,OAAO;MAACP,KAAK,EAAET,MAAM,CAACiB;IAAS,CAAE,CAC9C,CAAC;EAET;AACD;AAEA,SAASf,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React, { PureComponent } from "react";
|
|
2
|
+
import { View, TouchableOpacity } from "react-native";
|
|
3
|
+
import { Text } from "./Text";
|
|
4
|
+
import { connect } from "react-redux";
|
|
5
|
+
import { getMainBrandingColourFromState } from "../colours";
|
|
6
|
+
class Toggle extends PureComponent {
|
|
7
|
+
render() {
|
|
8
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
9
|
+
style: [styles.container, this.props.style]
|
|
10
|
+
}, this.props.options.map((option, index) => {
|
|
11
|
+
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
12
|
+
onPress: () => {
|
|
13
|
+
this.props.onPress(option);
|
|
14
|
+
},
|
|
15
|
+
style: [styles.tag, {
|
|
16
|
+
borderColor: this.props.colourBrandingMain
|
|
17
|
+
}, option.val === this.props.activeVal && {
|
|
18
|
+
borderColor: this.props.colourBrandingMain,
|
|
19
|
+
backgroundColor: this.props.colourBrandingMain
|
|
20
|
+
}, index === 0 && styles.firstTag, index === this.props.options.length - 1 && styles.lastTag, this.props.tagStyle],
|
|
21
|
+
key: option.val
|
|
22
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
23
|
+
style: [styles.text, {
|
|
24
|
+
color: this.props.colourBrandingMain
|
|
25
|
+
}, option.val === this.props.activeVal && styles.activeText, this.props.textStyle]
|
|
26
|
+
}, option.text));
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const styles = {
|
|
31
|
+
container: {
|
|
32
|
+
flexDirection: "row"
|
|
33
|
+
},
|
|
34
|
+
text: {
|
|
35
|
+
fontFamily: "sf-semibold",
|
|
36
|
+
fontSize: 14,
|
|
37
|
+
textAlign: "center"
|
|
38
|
+
},
|
|
39
|
+
activeText: {
|
|
40
|
+
color: "#fff"
|
|
41
|
+
},
|
|
42
|
+
tag: {
|
|
43
|
+
flex: 1,
|
|
44
|
+
height: 34,
|
|
45
|
+
borderWidth: 1,
|
|
46
|
+
borderLeftWidth: 0,
|
|
47
|
+
justifyContent: "center"
|
|
48
|
+
},
|
|
49
|
+
firstTag: {
|
|
50
|
+
borderLeftWidth: 1,
|
|
51
|
+
borderTopLeftRadius: 4,
|
|
52
|
+
borderBottomLeftRadius: 4
|
|
53
|
+
},
|
|
54
|
+
lastTag: {
|
|
55
|
+
borderTopRightRadius: 4,
|
|
56
|
+
borderBottomRightRadius: 4
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const mapStateToProps = state => {
|
|
60
|
+
return {
|
|
61
|
+
colourBrandingMain: getMainBrandingColourFromState(state)
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
const toggle = connect(mapStateToProps, {})(Toggle);
|
|
65
|
+
export { toggle as Toggle };
|
|
66
|
+
//# sourceMappingURL=Toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","PureComponent","View","TouchableOpacity","Text","connect","getMainBrandingColourFromState","Toggle","render","createElement","style","styles","container","props","options","map","option","index","onPress","tag","borderColor","colourBrandingMain","val","activeVal","backgroundColor","firstTag","length","lastTag","tagStyle","key","text","color","activeText","textStyle","flexDirection","fontFamily","fontSize","textAlign","flex","height","borderWidth","borderLeftWidth","justifyContent","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","mapStateToProps","state","toggle"],"sources":["Toggle.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View, TouchableOpacity } from \"react-native\";\nimport { Text } from \"./Text\";\nimport { connect } from \"react-redux\";\nimport { getMainBrandingColourFromState } from \"../colours\";\n\nclass Toggle extends PureComponent {\n\trender() {\n\t\treturn (\n\t\t\t<View style={[styles.container, this.props.style]}>\n\t\t\t\t{this.props.options.map((option, index) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\tonPress={() => {\n\t\t\t\t\t\t\t\tthis.props.onPress(option);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\tstyles.tag,\n\t\t\t\t\t\t\t\t{ borderColor: this.props.colourBrandingMain },\n\t\t\t\t\t\t\t\toption.val === this.props.activeVal && {\n\t\t\t\t\t\t\t\t\tborderColor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tindex === 0 && styles.firstTag,\n\t\t\t\t\t\t\t\tindex === this.props.options.length - 1 && styles.lastTag,\n\t\t\t\t\t\t\t\tthis.props.tagStyle,\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\tkey={option.val}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\t\tstyles.text,\n\t\t\t\t\t\t\t\t\t{ color: this.props.colourBrandingMain },\n\t\t\t\t\t\t\t\t\toption.val === this.props.activeVal && styles.activeText,\n\t\t\t\t\t\t\t\t\tthis.props.textStyle,\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\t{option.text}\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {\n\t\tflexDirection: \"row\",\n\t},\n\ttext: {\n\t\tfontFamily: \"sf-semibold\",\n\t\tfontSize: 14,\n\t\ttextAlign: \"center\",\n\t},\n\tactiveText: {\n\t\tcolor: \"#fff\",\n\t},\n\ttag: {\n\t\tflex: 1,\n\t\theight: 34,\n\t\tborderWidth: 1,\n\t\tborderLeftWidth: 0,\n\t\tjustifyContent: \"center\",\n\t},\n\tfirstTag: {\n\t\tborderLeftWidth: 1,\n\t\tborderTopLeftRadius: 4,\n\t\tborderBottomLeftRadius: 4,\n\t},\n\tlastTag: {\n\t\tborderTopRightRadius: 4,\n\t\tborderBottomRightRadius: 4,\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t};\n};\n\nconst toggle = connect(mapStateToProps, {})(Toggle);\nexport { toggle as Toggle };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC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EACxCL,MAAM,CAACM,GAAG,KAAK,IAAI,CAACT,KAAK,CAACU,SAAS,IAAIZ,MAAM,CAACqB,UAAU,EACxD,IAAI,CAACnB,KAAK,CAACoB,SAAS;MACnB,GAEDjB,MAAM,CAACc,IACH,CACW,CAAC;IAErB,CAAC,CACI,CAAC;EAET;AACD;AAEA,MAAMnB,MAAM,GAAG;EACdC,SAAS,EAAE;IACVsB,aAAa,EAAE;EAChB,CAAC;EACDJ,IAAI,EAAE;IACLK,UAAU,EAAE,aAAa;IACzBC,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE;EACZ,CAAC;EACDL,UAAU,EAAE;IACXD,KAAK,EAAE;EACR,CAAC;EACDZ,GAAG,EAAE;IACJmB,IAAI,EAAE,CAAC;IACPC,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,CAAC;IACdC,eAAe,EAAE,CAAC;IAClBC,cAAc,EAAE;EACjB,CAAC;EACDjB,QAAQ,EAAE;IACTgB,eAAe,EAAE,CAAC;IAClBE,mBAAmB,EAAE,CAAC;IACtBC,sBAAsB,EAAE;EACzB,CAAC;EACDjB,OAAO,EAAE;IACRkB,oBAAoB,EAAE,CAAC;IACvBC,uBAAuB,EAAE;EAC1B;AACD,CAAC;AAED,MAAMC,eAAe,GAAIC,KAAK,IAAK;EAClC,OAAO;IACN3B,kBAAkB,EAAEf,8BAA8B,CAAC0C,KAAK;EACzD,CAAC;AACF,CAAC;AAED,MAAMC,MAAM,GAAG5C,OAAO,CAAC0C,eAAe,EAAE,CAAC,CAAC,CAAC,CAACxC,MAAM,CAAC;AACnD,SAAS0C,MAAM,IAAI1C,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
+
import React, { Component } from "react";
|
|
5
|
+
import { View, TouchableWithoutFeedback } from "react-native";
|
|
6
|
+
import { Text } from "./Text";
|
|
7
|
+
import { connect } from "react-redux";
|
|
8
|
+
import { getSiteSettingFromState } from "../helper";
|
|
9
|
+
import { TEXT_LIGHT, BOXGREY } from "../colours";
|
|
10
|
+
import { FontAwesome } from "./Icon";
|
|
11
|
+
import Config, { Services } from "../config";
|
|
12
|
+
class TouchableSearchBar extends Component {
|
|
13
|
+
constructor(...args) {
|
|
14
|
+
super(...args);
|
|
15
|
+
_defineProperty(this, "onPressSearch", () => {
|
|
16
|
+
Services.navigation.navigate("search", {
|
|
17
|
+
priorityType: this.props.priorityType,
|
|
18
|
+
searchName: this.props.searchName
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
24
|
+
onPress: this.onPressSearch
|
|
25
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
26
|
+
style: [styles.searchInputContainer, this.props.headerType !== "white" && {
|
|
27
|
+
backgroundColor: "#fff"
|
|
28
|
+
}, this.props.style]
|
|
29
|
+
}, /*#__PURE__*/React.createElement(FontAwesome, {
|
|
30
|
+
name: "magnifying-glass",
|
|
31
|
+
style: styles.searchIcon
|
|
32
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
33
|
+
style: styles.searchText
|
|
34
|
+
}, `Search ${this.props.searchName}`)));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const styles = {
|
|
38
|
+
searchInputContainer: {
|
|
39
|
+
flex: 1,
|
|
40
|
+
height: 36,
|
|
41
|
+
marginHorizontal: 16,
|
|
42
|
+
marginVertical: 17,
|
|
43
|
+
borderRadius: 25,
|
|
44
|
+
backgroundColor: BOXGREY,
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
justifyContent: "center",
|
|
47
|
+
flexDirection: "row",
|
|
48
|
+
paddingHorizontal: 16
|
|
49
|
+
},
|
|
50
|
+
searchIcon: {
|
|
51
|
+
fontSize: 14,
|
|
52
|
+
color: TEXT_LIGHT,
|
|
53
|
+
marginRight: 8
|
|
54
|
+
},
|
|
55
|
+
searchText: {
|
|
56
|
+
fontSize: 14,
|
|
57
|
+
color: TEXT_LIGHT,
|
|
58
|
+
fontFamily: "sf-medium"
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const mapStateToProps = state => {
|
|
62
|
+
return {
|
|
63
|
+
headerType: getSiteSettingFromState(state, "HeaderType", getSiteSettingFromState(state, "UseGradientHeader", Config.env.hasGradientHeader) ? "gradient" : "white")
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const touchableSearchBar = connect(mapStateToProps, {})(TouchableSearchBar);
|
|
67
|
+
export { touchableSearchBar as TouchableSearchBar };
|
|
68
|
+
//# sourceMappingURL=TouchableSearchBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","View","TouchableWithoutFeedback","Text","connect","getSiteSettingFromState","TEXT_LIGHT","BOXGREY","FontAwesome","Config","Services","TouchableSearchBar","constructor","args","_defineProperty","navigation","navigate","priorityType","props","searchName","render","createElement","onPress","onPressSearch","style","styles","searchInputContainer","headerType","backgroundColor","name","searchIcon","searchText","flex","height","marginHorizontal","marginVertical","borderRadius","alignItems","justifyContent","flexDirection","paddingHorizontal","fontSize","color","marginRight","fontFamily","mapStateToProps","state","env","hasGradientHeader","touchableSearchBar"],"sources":["TouchableSearchBar.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { View, TouchableWithoutFeedback } from \"react-native\";\nimport { Text } from \"./Text\";\nimport { connect } from \"react-redux\";\nimport { getSiteSettingFromState } from \"../helper\";\nimport { TEXT_LIGHT, BOXGREY } from \"../colours\";\nimport { FontAwesome } from \"./Icon\";\nimport Config, { Services } from \"../config\";\n\nclass TouchableSearchBar extends Component {\n\tonPressSearch = () => {\n\t\tServices.navigation.navigate(\"search\", {\n\t\t\tpriorityType: this.props.priorityType,\n\t\t\tsearchName: this.props.searchName,\n\t\t});\n\t};\n\n\trender() {\n\t\treturn (\n\t\t\t<TouchableWithoutFeedback onPress={this.onPressSearch}>\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.searchInputContainer,\n\t\t\t\t\t\tthis.props.headerType !== \"white\" && { backgroundColor: \"#fff\" },\n\t\t\t\t\t\tthis.props.style,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<FontAwesome name=\"magnifying-glass\" style={styles.searchIcon} />\n\t\t\t\t\t<Text\n\t\t\t\t\t\tstyle={styles.searchText}\n\t\t\t\t\t>{`Search ${this.props.searchName}`}</Text>\n\t\t\t\t</View>\n\t\t\t</TouchableWithoutFeedback>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tsearchInputContainer: {\n\t\tflex: 1,\n\t\theight: 36,\n\t\tmarginHorizontal: 16,\n\t\tmarginVertical: 17,\n\t\tborderRadius: 25,\n\t\tbackgroundColor: BOXGREY,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tflexDirection: \"row\",\n\t\tpaddingHorizontal: 16,\n\t},\n\tsearchIcon: {\n\t\tfontSize: 14,\n\t\tcolor: TEXT_LIGHT,\n\t\tmarginRight: 8,\n\t},\n\tsearchText: {\n\t\tfontSize: 14,\n\t\tcolor: TEXT_LIGHT,\n\t\tfontFamily: \"sf-medium\",\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\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};\n};\n\nconst touchableSearchBar = connect(mapStateToProps, {})(TouchableSearchBar);\nexport { touchableSearchBar as TouchableSearchBar };\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,wBAAwB,QAAQ,cAAc;AAC7D,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,uBAAuB,QAAQ,WAAW;AACnD,SAASC,UAAU,EAAEC,OAAO,QAAQ,YAAY;AAChD,SAASC,WAAW,QAAQ,QAAQ;AACpC,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,WAAW;AAE5C,MAAMC,kBAAkB,SAASX,SAAS,CAAC;EAAAY,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,wBAC1B,MAAM;MACrBJ,QAAQ,CAACK,UAAU,CAACC,QAAQ,CAAC,QAAQ,EAAE;QACtCC,YAAY,EAAE,IAAI,CAACC,KAAK,CAACD,YAAY;QACrCE,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;MACxB,CAAC,CAAC;IACH,CAAC;EAAA;EAEDC,MAAMA,CAAA,EAAG;IACR,oBACCrB,KAAA,CAAAsB,aAAA,CAACnB,wBAAwB;MAACoB,OAAO,EAAE,IAAI,CAACC;IAAc,gBACrDxB,KAAA,CAAAsB,aAAA,CAACpB,IAAI;MACJuB,KAAK,EAAE,CACNC,MAAM,CAACC,oBAAoB,EAC3B,IAAI,CAACR,KAAK,CAACS,UAAU,KAAK,OAAO,IAAI;QAAEC,eAAe,EAAE;MAAO,CAAC,EAChE,IAAI,CAACV,KAAK,CAACM,KAAK;IACf,gBAEFzB,KAAA,CAAAsB,aAAA,CAACb,WAAW;MAACqB,IAAI,EAAC,kBAAkB;MAACL,KAAK,EAAEC,MAAM,CAACK;IAAW,CAAE,CAAC,eACjE/B,KAAA,CAAAsB,aAAA,CAAClB,IAAI;MACJqB,KAAK,EAAEC,MAAM,CAACM;IAAW,GACxB,UAAU,IAAI,CAACb,KAAK,CAACC,UAAU,EAAS,CACrC,CACmB,CAAC;EAE7B;AACD;AAEA,MAAMM,MAAM,GAAG;EACdC,oBAAoB,EAAE;IACrBM,IAAI,EAAE,CAAC;IACPC,MAAM,EAAE,EAAE;IACVC,gBAAgB,EAAE,EAAE;IACpBC,cAAc,EAAE,EAAE;IAClBC,YAAY,EAAE,EAAE;IAChBR,eAAe,EAAErB,OAAO;IACxB8B,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,aAAa,EAAE,KAAK;IACpBC,iBAAiB,EAAE;EACpB,CAAC;EACDV,UAAU,EAAE;IACXW,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAEpC,UAAU;IACjBqC,WAAW,EAAE;EACd,CAAC;EACDZ,UAAU,EAAE;IACXU,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAEpC,UAAU;IACjBsC,UAAU,EAAE;EACb;AACD,CAAC;AAED,MAAMC,eAAe,GAAIC,KAAK,IAAK;EAClC,OAAO;IACNnB,UAAU,EAAEtB,uBAAuB,CAClCyC,KAAK,EACL,YAAY,EACZzC,uBAAuB,CACtByC,KAAK,EACL,mBAAmB,EACnBrC,MAAM,CAACsC,GAAG,CAACC,iBACZ,CAAC,GACE,UAAU,GACV,OACJ;EACD,CAAC;AACF,CAAC;AAED,MAAMC,kBAAkB,GAAG7C,OAAO,CAACyC,eAAe,EAAE,CAAC,CAAC,CAAC,CAAClC,kBAAkB,CAAC;AAC3E,SAASsC,kBAAkB,IAAItC,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
import { Text } from "@plusscommunities/pluss-core-app/components";
|
|
3
|
+
import { View, Dimensions, Modal, ScrollView, TouchableWithoutFeedback, Platform } from "react-native";
|
|
4
|
+
import { connect } from "react-redux";
|
|
5
|
+
import { TEXT_DARK, LINEGREY, getMainBrandingColourFromState } from "../colours";
|
|
6
|
+
import UserListing from "./UserListing";
|
|
7
|
+
import { InlineButton } from "./InlineButton";
|
|
8
|
+
const SCREEN_HEIGHT = Dimensions.get("window").height;
|
|
9
|
+
class UserListPopup extends Component {
|
|
10
|
+
getRenderKey(user, userKey) {
|
|
11
|
+
if (user.id) {
|
|
12
|
+
return `${user.id}${userKey}`;
|
|
13
|
+
}
|
|
14
|
+
if (user.userId) {
|
|
15
|
+
return `${user.userId}${userKey}`;
|
|
16
|
+
}
|
|
17
|
+
return userKey;
|
|
18
|
+
}
|
|
19
|
+
renderHeader() {
|
|
20
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
21
|
+
style: styles.titleContainer
|
|
22
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
23
|
+
style: styles.titleContent
|
|
24
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
25
|
+
style: styles.title
|
|
26
|
+
}, this.props.title)));
|
|
27
|
+
}
|
|
28
|
+
renderScrollContainer() {
|
|
29
|
+
return /*#__PURE__*/React.createElement(ScrollView, {
|
|
30
|
+
style: styles.optionsContainer,
|
|
31
|
+
keyboardShouldPersistTaps: "handled"
|
|
32
|
+
}, this.props.users.map((user, userIndex) => {
|
|
33
|
+
return /*#__PURE__*/React.createElement(UserListing, {
|
|
34
|
+
user: user,
|
|
35
|
+
key: this.getRenderKey(user, userIndex),
|
|
36
|
+
index: userIndex
|
|
37
|
+
});
|
|
38
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
39
|
+
style: styles.scrollFooterSpace
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
renderFooter() {
|
|
43
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
44
|
+
style: styles.footer
|
|
45
|
+
}, /*#__PURE__*/React.createElement(InlineButton, {
|
|
46
|
+
onPress: this.props.onClose.bind(this),
|
|
47
|
+
color: this.props.colourBrandingMain,
|
|
48
|
+
style: [styles.footerButton]
|
|
49
|
+
}, "Done"));
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
53
|
+
visible: this.props.visible,
|
|
54
|
+
transparent: true,
|
|
55
|
+
animationType: "slide",
|
|
56
|
+
onRequestClose: this.props.onClose
|
|
57
|
+
}, /*#__PURE__*/React.createElement(ScrollView, {
|
|
58
|
+
keyboardShouldPersistTaps: "always"
|
|
59
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
60
|
+
style: styles.popup
|
|
61
|
+
}, /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
62
|
+
onPress: this.props.onClose
|
|
63
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
64
|
+
style: styles.popupOverlay
|
|
65
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
66
|
+
style: [styles.popupContent, {
|
|
67
|
+
minHeight: SCREEN_HEIGHT - (Platform.OS === "android" ? 175 : 150)
|
|
68
|
+
}, {
|
|
69
|
+
marginTop: 60,
|
|
70
|
+
minHeight: SCREEN_HEIGHT - (Platform.OS === "android" ? 85 : 60)
|
|
71
|
+
}]
|
|
72
|
+
}, this.renderHeader(), this.renderScrollContainer(), this.renderFooter()))));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const styles = {
|
|
76
|
+
popup: {
|
|
77
|
+
flex: 1,
|
|
78
|
+
justifyContent: "center"
|
|
79
|
+
},
|
|
80
|
+
popupOverlay: {
|
|
81
|
+
position: "absolute",
|
|
82
|
+
backgroundColor: "rgba(19, 19, 26, .25)",
|
|
83
|
+
top: 0,
|
|
84
|
+
left: 0,
|
|
85
|
+
right: 0,
|
|
86
|
+
bottom: 0
|
|
87
|
+
},
|
|
88
|
+
popupContent: {
|
|
89
|
+
borderRadius: 3,
|
|
90
|
+
marginTop: 150,
|
|
91
|
+
backgroundColor: "#fff",
|
|
92
|
+
flex: 1,
|
|
93
|
+
borderTopLeftRadius: 15,
|
|
94
|
+
borderTopRightRadius: 15
|
|
95
|
+
},
|
|
96
|
+
footer: {
|
|
97
|
+
padding: 8,
|
|
98
|
+
borderTopWidth: 1,
|
|
99
|
+
borderColor: LINEGREY,
|
|
100
|
+
backgroundColor: "#fff"
|
|
101
|
+
},
|
|
102
|
+
footerButton: {
|
|
103
|
+
width: "100%",
|
|
104
|
+
height: 40
|
|
105
|
+
},
|
|
106
|
+
titleContainer: {
|
|
107
|
+
alignSelf: "stretch",
|
|
108
|
+
padding: 24,
|
|
109
|
+
paddingTop: 16,
|
|
110
|
+
paddingBottom: 0
|
|
111
|
+
},
|
|
112
|
+
titleContent: {
|
|
113
|
+
borderColor: LINEGREY,
|
|
114
|
+
borderBottomWidth: 1,
|
|
115
|
+
flexDirection: "row",
|
|
116
|
+
justifyContent: "space-between",
|
|
117
|
+
paddingBottom: 15
|
|
118
|
+
},
|
|
119
|
+
title: {
|
|
120
|
+
fontSize: 15,
|
|
121
|
+
fontFamily: "sf-semibold",
|
|
122
|
+
color: TEXT_DARK
|
|
123
|
+
},
|
|
124
|
+
optionsContainer: {
|
|
125
|
+
flex: 1,
|
|
126
|
+
paddingVertical: 8
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
const mapStateToProps = state => {
|
|
130
|
+
return {
|
|
131
|
+
colourBrandingMain: getMainBrandingColourFromState(state)
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
const userListPopup = connect(mapStateToProps, {})(UserListPopup);
|
|
135
|
+
export { userListPopup as UserListPopup };
|
|
136
|
+
//# sourceMappingURL=UserListPopup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","Text","View","Dimensions","Modal","ScrollView","TouchableWithoutFeedback","Platform","connect","TEXT_DARK","LINEGREY","getMainBrandingColourFromState","UserListing","InlineButton","SCREEN_HEIGHT","get","height","UserListPopup","getRenderKey","user","userKey","id","userId","renderHeader","createElement","style","styles","titleContainer","titleContent","title","props","renderScrollContainer","optionsContainer","keyboardShouldPersistTaps","users","map","userIndex","key","index","scrollFooterSpace","renderFooter","footer","onPress","onClose","bind","color","colourBrandingMain","footerButton","render","visible","transparent","animationType","onRequestClose","popup","popupOverlay","popupContent","minHeight","OS","marginTop","flex","justifyContent","position","backgroundColor","top","left","right","bottom","borderRadius","borderTopLeftRadius","borderTopRightRadius","padding","borderTopWidth","borderColor","width","alignSelf","paddingTop","paddingBottom","borderBottomWidth","flexDirection","fontSize","fontFamily","paddingVertical","mapStateToProps","state","userListPopup"],"sources":["UserListPopup.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport {\n\tView,\n\tDimensions,\n\tModal,\n\tScrollView,\n\tTouchableWithoutFeedback,\n\tPlatform,\n} from \"react-native\";\nimport { connect } from \"react-redux\";\nimport {\n\tTEXT_DARK,\n\tLINEGREY,\n\tgetMainBrandingColourFromState,\n} from \"../colours\";\nimport UserListing from \"./UserListing\";\nimport { InlineButton } from \"./InlineButton\";\n\nconst SCREEN_HEIGHT = Dimensions.get(\"window\").height;\n\nclass UserListPopup extends Component {\n\tgetRenderKey(user, userKey) {\n\t\tif (user.id) {\n\t\t\treturn `${user.id}${userKey}`;\n\t\t}\n\t\tif (user.userId) {\n\t\t\treturn `${user.userId}${userKey}`;\n\t\t}\n\t\treturn userKey;\n\t}\n\n\trenderHeader() {\n\t\treturn (\n\t\t\t<View style={styles.titleContainer}>\n\t\t\t\t<View style={styles.titleContent}>\n\t\t\t\t\t<Text style={styles.title}>{this.props.title}</Text>\n\t\t\t\t</View>\n\t\t\t</View>\n\t\t);\n\t}\n\n\trenderScrollContainer() {\n\t\treturn (\n\t\t\t<ScrollView\n\t\t\t\tstyle={styles.optionsContainer}\n\t\t\t\tkeyboardShouldPersistTaps=\"handled\"\n\t\t\t>\n\t\t\t\t{this.props.users.map((user, userIndex) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<UserListing\n\t\t\t\t\t\t\tuser={user}\n\t\t\t\t\t\t\tkey={this.getRenderKey(user, userIndex)}\n\t\t\t\t\t\t\tindex={userIndex}\n\t\t\t\t\t\t/>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t\t<View style={styles.scrollFooterSpace} />\n\t\t\t</ScrollView>\n\t\t);\n\t}\n\n\trenderFooter() {\n\t\treturn (\n\t\t\t<View style={styles.footer}>\n\t\t\t\t<InlineButton\n\t\t\t\t\tonPress={this.props.onClose.bind(this)}\n\t\t\t\t\tcolor={this.props.colourBrandingMain}\n\t\t\t\t\tstyle={[styles.footerButton]}\n\t\t\t\t>\n\t\t\t\t\tDone\n\t\t\t\t</InlineButton>\n\t\t\t</View>\n\t\t);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Modal\n\t\t\t\tvisible={this.props.visible}\n\t\t\t\ttransparent\n\t\t\t\tanimationType=\"slide\"\n\t\t\t\tonRequestClose={this.props.onClose}\n\t\t\t>\n\t\t\t\t<ScrollView keyboardShouldPersistTaps=\"always\">\n\t\t\t\t\t<View style={styles.popup}>\n\t\t\t\t\t\t<TouchableWithoutFeedback onPress={this.props.onClose}>\n\t\t\t\t\t\t\t<View style={styles.popupOverlay} />\n\t\t\t\t\t\t</TouchableWithoutFeedback>\n\t\t\t\t\t\t<View\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\tstyles.popupContent,\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tminHeight:\n\t\t\t\t\t\t\t\t\t\tSCREEN_HEIGHT - (Platform.OS === \"android\" ? 175 : 150),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmarginTop: 60,\n\t\t\t\t\t\t\t\t\tminHeight:\n\t\t\t\t\t\t\t\t\t\tSCREEN_HEIGHT - (Platform.OS === \"android\" ? 85 : 60),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.renderHeader()}\n\t\t\t\t\t\t\t{this.renderScrollContainer()}\n\t\t\t\t\t\t\t{this.renderFooter()}\n\t\t\t\t\t\t</View>\n\t\t\t\t\t</View>\n\t\t\t\t</ScrollView>\n\t\t\t</Modal>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tpopup: {\n\t\tflex: 1,\n\t\tjustifyContent: \"center\",\n\t},\n\tpopupOverlay: {\n\t\tposition: \"absolute\",\n\t\tbackgroundColor: \"rgba(19, 19, 26, .25)\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tright: 0,\n\t\tbottom: 0,\n\t},\n\tpopupContent: {\n\t\tborderRadius: 3,\n\t\tmarginTop: 150,\n\t\tbackgroundColor: \"#fff\",\n\t\tflex: 1,\n\t\tborderTopLeftRadius: 15,\n\t\tborderTopRightRadius: 15,\n\t},\n\tfooter: {\n\t\tpadding: 8,\n\t\tborderTopWidth: 1,\n\t\tborderColor: LINEGREY,\n\t\tbackgroundColor: \"#fff\",\n\t},\n\tfooterButton: {\n\t\twidth: \"100%\",\n\t\theight: 40,\n\t},\n\ttitleContainer: {\n\t\talignSelf: \"stretch\",\n\t\tpadding: 24,\n\t\tpaddingTop: 16,\n\t\tpaddingBottom: 0,\n\t},\n\ttitleContent: {\n\t\tborderColor: LINEGREY,\n\t\tborderBottomWidth: 1,\n\t\tflexDirection: \"row\",\n\t\tjustifyContent: \"space-between\",\n\t\tpaddingBottom: 15,\n\t},\n\ttitle: {\n\t\tfontSize: 15,\n\t\tfontFamily: \"sf-semibold\",\n\t\tcolor: TEXT_DARK,\n\t},\n\toptionsContainer: {\n\t\tflex: 1,\n\t\tpaddingVertical: 8,\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t};\n};\n\nconst userListPopup = connect(mapStateToProps, {})(UserListPopup);\nexport { userListPopup as UserListPopup };\n"],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