@plusscommunities/pluss-core-web 1.4.34 → 1.4.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/index.cjs.js +32 -5
- package/dist/index.esm.js +11 -5
- package/dist/index.umd.js +35 -9
- package/package.json +1 -1
- package/src/components/UserListing.js +3 -0
package/dist/index.cjs.js
CHANGED
|
@@ -27,6 +27,7 @@ var _typeof = require('@babel/runtime/helpers/typeof');
|
|
|
27
27
|
var Dropzone = require('react-dropzone');
|
|
28
28
|
var reactRouter = require('react-router');
|
|
29
29
|
var reactBootstrap = require('react-bootstrap');
|
|
30
|
+
var PlussCore = require('@plusscommunities/pluss-core-web');
|
|
30
31
|
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
31
32
|
var reactLottie = require('@crello/react-lottie');
|
|
32
33
|
var reactCsv = require('react-csv');
|
|
@@ -38,6 +39,26 @@ var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
|
|
|
38
39
|
|
|
39
40
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
40
41
|
|
|
42
|
+
function _interopNamespace(e) {
|
|
43
|
+
if (e && e.__esModule) return e;
|
|
44
|
+
var n = Object.create(null);
|
|
45
|
+
if (e) {
|
|
46
|
+
Object.keys(e).forEach(function (k) {
|
|
47
|
+
if (k !== 'default') {
|
|
48
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
49
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () {
|
|
52
|
+
return e[k];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
n['default'] = e;
|
|
59
|
+
return Object.freeze(n);
|
|
60
|
+
}
|
|
61
|
+
|
|
41
62
|
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
42
63
|
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
43
64
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
@@ -59,6 +80,7 @@ var Textarea__default = /*#__PURE__*/_interopDefaultLegacy(Textarea);
|
|
|
59
80
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
60
81
|
var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
|
|
61
82
|
var Dropzone__default = /*#__PURE__*/_interopDefaultLegacy(Dropzone);
|
|
83
|
+
var PlussCore__namespace = /*#__PURE__*/_interopNamespace(PlussCore);
|
|
62
84
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
63
85
|
var tinycolor__default = /*#__PURE__*/_interopDefaultLegacy(tinycolor);
|
|
64
86
|
|
|
@@ -1164,7 +1186,7 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
1164
1186
|
// const COLOUR_1 = '#011d5c';
|
|
1165
1187
|
// const COLOUR_2 = '#3179cb';
|
|
1166
1188
|
// const COLOUR_3 = '#1bb7ee';
|
|
1167
|
-
var COLOUR_BRANDING_MAIN = '#4a57b7'; // const COLOUR_BRANDING_DARK = '#364196';
|
|
1189
|
+
var COLOUR_BRANDING_MAIN$1 = '#4a57b7'; // const COLOUR_BRANDING_DARK = '#364196';
|
|
1168
1190
|
// const COLOUR_BRANDING_LIGHT = '#597db4';
|
|
1169
1191
|
|
|
1170
1192
|
var COLOUR_BRANDING_OFF = '#597db4';
|
|
@@ -1238,7 +1260,7 @@ var colours = /*#__PURE__*/Object.freeze({
|
|
|
1238
1260
|
COLOUR_RED: COLOUR_RED,
|
|
1239
1261
|
hexToRGB: hexToRGB,
|
|
1240
1262
|
hexToRGBAstring: hexToRGBAstring,
|
|
1241
|
-
COLOUR_BRANDING_MAIN: COLOUR_BRANDING_MAIN,
|
|
1263
|
+
COLOUR_BRANDING_MAIN: COLOUR_BRANDING_MAIN$1,
|
|
1242
1264
|
COLOUR_BRANDING_OFF: COLOUR_BRANDING_OFF,
|
|
1243
1265
|
COLOUR_BRANDING_ACTION: COLOUR_BRANDING_ACTION,
|
|
1244
1266
|
INACTIVE_TEXT: INACTIVE_TEXT,
|
|
@@ -8267,6 +8289,10 @@ var AnalyticsFilter = /*#__PURE__*/function (_PureComponent) {
|
|
|
8267
8289
|
return AnalyticsFilter;
|
|
8268
8290
|
}(React.PureComponent);
|
|
8269
8291
|
|
|
8292
|
+
var Colours = PlussCore__namespace.Colours;
|
|
8293
|
+
Colours.COLOUR_DUSK_LIGHT;
|
|
8294
|
+
var COLOUR_BRANDING_MAIN = '#4a57b7';
|
|
8295
|
+
|
|
8270
8296
|
function _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf__default['default'](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default['default'](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default['default'](this, result); }; }
|
|
8271
8297
|
|
|
8272
8298
|
function _isNativeReflectConstruct$a() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
@@ -8366,7 +8392,8 @@ var UserListing = /*#__PURE__*/function (_Component) {
|
|
|
8366
8392
|
marginRight: 8,
|
|
8367
8393
|
backgroundSize: 'cover',
|
|
8368
8394
|
backgroundPosition: 'center',
|
|
8369
|
-
backgroundImage: "url(".concat(this.getImage(), ")")
|
|
8395
|
+
backgroundImage: "url(".concat(this.getImage(), ")"),
|
|
8396
|
+
backgroundColor: COLOUR_BRANDING_MAIN
|
|
8370
8397
|
},
|
|
8371
8398
|
alt: "".concat(this.getText(), " Image")
|
|
8372
8399
|
});
|
|
@@ -9998,7 +10025,7 @@ var TextFormatPopup = /*#__PURE__*/function (_Component) {
|
|
|
9998
10025
|
}, "*t*"), " =", ' ', /*#__PURE__*/React__default['default'].createElement("span", {
|
|
9999
10026
|
style: {
|
|
10000
10027
|
fontWeight: 600,
|
|
10001
|
-
color: COLOUR_BRANDING_MAIN,
|
|
10028
|
+
color: COLOUR_BRANDING_MAIN$1,
|
|
10002
10029
|
fontSize: 20
|
|
10003
10030
|
}
|
|
10004
10031
|
}, "Some Text"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("br", null), "Surround text with ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
@@ -10096,7 +10123,7 @@ var OptionsSection = /*#__PURE__*/function (_Component) {
|
|
|
10096
10123
|
default:
|
|
10097
10124
|
return /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
|
|
10098
10125
|
icon: o.icon,
|
|
10099
|
-
colour: isSelected ? '#fff' : COLOUR_BRANDING_MAIN
|
|
10126
|
+
colour: isSelected ? '#fff' : COLOUR_BRANDING_MAIN$1
|
|
10100
10127
|
});
|
|
10101
10128
|
}
|
|
10102
10129
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -23,6 +23,7 @@ import _typeof from '@babel/runtime/helpers/typeof';
|
|
|
23
23
|
import Dropzone from 'react-dropzone';
|
|
24
24
|
import { withRouter } from 'react-router';
|
|
25
25
|
import { MenuItem, DropdownButton, FormGroup, ControlLabel, FormControl, HelpBlock } from 'react-bootstrap';
|
|
26
|
+
import * as PlussCore from '@plusscommunities/pluss-core-web';
|
|
26
27
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
27
28
|
import { Lottie } from '@crello/react-lottie';
|
|
28
29
|
import { CSVLink } from 'react-csv';
|
|
@@ -1134,7 +1135,7 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
1134
1135
|
// const COLOUR_1 = '#011d5c';
|
|
1135
1136
|
// const COLOUR_2 = '#3179cb';
|
|
1136
1137
|
// const COLOUR_3 = '#1bb7ee';
|
|
1137
|
-
var COLOUR_BRANDING_MAIN = '#4a57b7'; // const COLOUR_BRANDING_DARK = '#364196';
|
|
1138
|
+
var COLOUR_BRANDING_MAIN$1 = '#4a57b7'; // const COLOUR_BRANDING_DARK = '#364196';
|
|
1138
1139
|
// const COLOUR_BRANDING_LIGHT = '#597db4';
|
|
1139
1140
|
|
|
1140
1141
|
var COLOUR_BRANDING_OFF = '#597db4';
|
|
@@ -1208,7 +1209,7 @@ var colours = /*#__PURE__*/Object.freeze({
|
|
|
1208
1209
|
COLOUR_RED: COLOUR_RED,
|
|
1209
1210
|
hexToRGB: hexToRGB,
|
|
1210
1211
|
hexToRGBAstring: hexToRGBAstring,
|
|
1211
|
-
COLOUR_BRANDING_MAIN: COLOUR_BRANDING_MAIN,
|
|
1212
|
+
COLOUR_BRANDING_MAIN: COLOUR_BRANDING_MAIN$1,
|
|
1212
1213
|
COLOUR_BRANDING_OFF: COLOUR_BRANDING_OFF,
|
|
1213
1214
|
COLOUR_BRANDING_ACTION: COLOUR_BRANDING_ACTION,
|
|
1214
1215
|
INACTIVE_TEXT: INACTIVE_TEXT,
|
|
@@ -8237,6 +8238,10 @@ var AnalyticsFilter = /*#__PURE__*/function (_PureComponent) {
|
|
|
8237
8238
|
return AnalyticsFilter;
|
|
8238
8239
|
}(PureComponent);
|
|
8239
8240
|
|
|
8241
|
+
var Colours = PlussCore.Colours;
|
|
8242
|
+
Colours.COLOUR_DUSK_LIGHT;
|
|
8243
|
+
var COLOUR_BRANDING_MAIN = '#4a57b7';
|
|
8244
|
+
|
|
8240
8245
|
function _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8241
8246
|
|
|
8242
8247
|
function _isNativeReflectConstruct$a() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
@@ -8336,7 +8341,8 @@ var UserListing = /*#__PURE__*/function (_Component) {
|
|
|
8336
8341
|
marginRight: 8,
|
|
8337
8342
|
backgroundSize: 'cover',
|
|
8338
8343
|
backgroundPosition: 'center',
|
|
8339
|
-
backgroundImage: "url(".concat(this.getImage(), ")")
|
|
8344
|
+
backgroundImage: "url(".concat(this.getImage(), ")"),
|
|
8345
|
+
backgroundColor: COLOUR_BRANDING_MAIN
|
|
8340
8346
|
},
|
|
8341
8347
|
alt: "".concat(this.getText(), " Image")
|
|
8342
8348
|
});
|
|
@@ -9968,7 +9974,7 @@ var TextFormatPopup = /*#__PURE__*/function (_Component) {
|
|
|
9968
9974
|
}, "*t*"), " =", ' ', /*#__PURE__*/React.createElement("span", {
|
|
9969
9975
|
style: {
|
|
9970
9976
|
fontWeight: 600,
|
|
9971
|
-
color: COLOUR_BRANDING_MAIN,
|
|
9977
|
+
color: COLOUR_BRANDING_MAIN$1,
|
|
9972
9978
|
fontSize: 20
|
|
9973
9979
|
}
|
|
9974
9980
|
}, "Some Text"), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), "Surround text with ", /*#__PURE__*/React.createElement("span", {
|
|
@@ -10066,7 +10072,7 @@ var OptionsSection = /*#__PURE__*/function (_Component) {
|
|
|
10066
10072
|
default:
|
|
10067
10073
|
return /*#__PURE__*/React.createElement(SVGIcon, {
|
|
10068
10074
|
icon: o.icon,
|
|
10069
|
-
colour: isSelected ? '#fff' : COLOUR_BRANDING_MAIN
|
|
10075
|
+
colour: isSelected ? '#fff' : COLOUR_BRANDING_MAIN$1
|
|
10070
10076
|
});
|
|
10071
10077
|
}
|
|
10072
10078
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/regenerator'), require('lodash'), require('axios'), require('aws-amplify'), require('@babel/runtime/helpers/defineProperty'), require('moment'), require('react'), require('jquery'), require('js-cookie'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('react-fontawesome'), require('@babel/runtime/helpers/extends'), require('@babel/runtime/helpers/assertThisInitialized'), require('react-redux'), require('react-textarea-autosize'), require('@babel/runtime/helpers/toConsumableArray'), require('@babel/runtime/helpers/typeof'), require('react-dropzone'), require('react-router'), require('react-bootstrap'), require('@fortawesome/react-fontawesome'), require('@crello/react-lottie'), require('react-csv'), require('@babel/runtime/helpers/objectWithoutProperties'), require('react-color'), require('tinycolor2'), require('react-router-dom'), require('@fortawesome/free-solid-svg-icons')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/regenerator', 'lodash', 'axios', 'aws-amplify', '@babel/runtime/helpers/defineProperty', 'moment', 'react', 'jquery', 'js-cookie', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', 'react-fontawesome', '@babel/runtime/helpers/extends', '@babel/runtime/helpers/assertThisInitialized', 'react-redux', 'react-textarea-autosize', '@babel/runtime/helpers/toConsumableArray', '@babel/runtime/helpers/typeof', 'react-dropzone', 'react-router', 'react-bootstrap', '@fortawesome/react-fontawesome', '@crello/react-lottie', 'react-csv', '@babel/runtime/helpers/objectWithoutProperties', 'react-color', 'tinycolor2', 'react-router-dom', '@fortawesome/free-solid-svg-icons'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['@plusscommunities/pluss-core-web'] = {}, global._asyncToGenerator, global._regeneratorRuntime, global._, global.axios, global.awsAmplify, global._defineProperty, global.moment, global.React, global.$, global.Cookies, global._classCallCheck, global._createClass, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global.FontAwesome, global._extends, global._assertThisInitialized, global.reactRedux, global.Textarea, global._toConsumableArray, global._typeof, global.Dropzone, global.reactRouter, global.reactBootstrap, global.reactFontawesome, global.reactLottie, global.reactCsv, global._objectWithoutProperties, global.reactColor, global.tinycolor, global.reactRouterDom, global.freeSolidSvgIcons));
|
|
5
|
-
}(this, (function (exports, _asyncToGenerator, _regeneratorRuntime, _, axios, awsAmplify, _defineProperty, moment, React, $, Cookies, _classCallCheck, _createClass, _inherits, _possibleConstructorReturn, _getPrototypeOf, FontAwesome, _extends, _assertThisInitialized, reactRedux, Textarea, _toConsumableArray, _typeof, Dropzone, reactRouter, reactBootstrap, reactFontawesome, reactLottie, reactCsv, _objectWithoutProperties, reactColor, tinycolor, reactRouterDom, freeSolidSvgIcons) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/regenerator'), require('lodash'), require('axios'), require('aws-amplify'), require('@babel/runtime/helpers/defineProperty'), require('moment'), require('react'), require('jquery'), require('js-cookie'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('react-fontawesome'), require('@babel/runtime/helpers/extends'), require('@babel/runtime/helpers/assertThisInitialized'), require('react-redux'), require('react-textarea-autosize'), require('@babel/runtime/helpers/toConsumableArray'), require('@babel/runtime/helpers/typeof'), require('react-dropzone'), require('react-router'), require('react-bootstrap'), require('@plusscommunities/pluss-core-web'), require('@fortawesome/react-fontawesome'), require('@crello/react-lottie'), require('react-csv'), require('@babel/runtime/helpers/objectWithoutProperties'), require('react-color'), require('tinycolor2'), require('react-router-dom'), require('@fortawesome/free-solid-svg-icons')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/regenerator', 'lodash', 'axios', 'aws-amplify', '@babel/runtime/helpers/defineProperty', 'moment', 'react', 'jquery', 'js-cookie', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', 'react-fontawesome', '@babel/runtime/helpers/extends', '@babel/runtime/helpers/assertThisInitialized', 'react-redux', 'react-textarea-autosize', '@babel/runtime/helpers/toConsumableArray', '@babel/runtime/helpers/typeof', 'react-dropzone', 'react-router', 'react-bootstrap', '@plusscommunities/pluss-core-web', '@fortawesome/react-fontawesome', '@crello/react-lottie', 'react-csv', '@babel/runtime/helpers/objectWithoutProperties', 'react-color', 'tinycolor2', 'react-router-dom', '@fortawesome/free-solid-svg-icons'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['@plusscommunities/pluss-core-web'] = {}, global._asyncToGenerator, global._regeneratorRuntime, global._, global.axios, global.awsAmplify, global._defineProperty, global.moment, global.React, global.$, global.Cookies, global._classCallCheck, global._createClass, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global.FontAwesome, global._extends, global._assertThisInitialized, global.reactRedux, global.Textarea, global._toConsumableArray, global._typeof, global.Dropzone, global.reactRouter, global.reactBootstrap, global.PlussCore, global.reactFontawesome, global.reactLottie, global.reactCsv, global._objectWithoutProperties, global.reactColor, global.tinycolor, global.reactRouterDom, global.freeSolidSvgIcons));
|
|
5
|
+
}(this, (function (exports, _asyncToGenerator, _regeneratorRuntime, _, axios, awsAmplify, _defineProperty, moment, React, $, Cookies, _classCallCheck, _createClass, _inherits, _possibleConstructorReturn, _getPrototypeOf, FontAwesome, _extends, _assertThisInitialized, reactRedux, Textarea, _toConsumableArray, _typeof, Dropzone, reactRouter, reactBootstrap, PlussCore, reactFontawesome, reactLottie, reactCsv, _objectWithoutProperties, reactColor, tinycolor, reactRouterDom, freeSolidSvgIcons) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return e[k];
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n['default'] = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
9
29
|
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
|
|
10
30
|
var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
|
|
11
31
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
@@ -27,6 +47,7 @@
|
|
|
27
47
|
var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
|
|
28
48
|
var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
|
|
29
49
|
var Dropzone__default = /*#__PURE__*/_interopDefaultLegacy(Dropzone);
|
|
50
|
+
var PlussCore__namespace = /*#__PURE__*/_interopNamespace(PlussCore);
|
|
30
51
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
31
52
|
var tinycolor__default = /*#__PURE__*/_interopDefaultLegacy(tinycolor);
|
|
32
53
|
|
|
@@ -1132,7 +1153,7 @@
|
|
|
1132
1153
|
// const COLOUR_1 = '#011d5c';
|
|
1133
1154
|
// const COLOUR_2 = '#3179cb';
|
|
1134
1155
|
// const COLOUR_3 = '#1bb7ee';
|
|
1135
|
-
var COLOUR_BRANDING_MAIN = '#4a57b7'; // const COLOUR_BRANDING_DARK = '#364196';
|
|
1156
|
+
var COLOUR_BRANDING_MAIN$1 = '#4a57b7'; // const COLOUR_BRANDING_DARK = '#364196';
|
|
1136
1157
|
// const COLOUR_BRANDING_LIGHT = '#597db4';
|
|
1137
1158
|
|
|
1138
1159
|
var COLOUR_BRANDING_OFF = '#597db4';
|
|
@@ -1206,7 +1227,7 @@
|
|
|
1206
1227
|
COLOUR_RED: COLOUR_RED,
|
|
1207
1228
|
hexToRGB: hexToRGB,
|
|
1208
1229
|
hexToRGBAstring: hexToRGBAstring,
|
|
1209
|
-
COLOUR_BRANDING_MAIN: COLOUR_BRANDING_MAIN,
|
|
1230
|
+
COLOUR_BRANDING_MAIN: COLOUR_BRANDING_MAIN$1,
|
|
1210
1231
|
COLOUR_BRANDING_OFF: COLOUR_BRANDING_OFF,
|
|
1211
1232
|
COLOUR_BRANDING_ACTION: COLOUR_BRANDING_ACTION,
|
|
1212
1233
|
INACTIVE_TEXT: INACTIVE_TEXT,
|
|
@@ -8235,6 +8256,10 @@
|
|
|
8235
8256
|
return AnalyticsFilter;
|
|
8236
8257
|
}(React.PureComponent);
|
|
8237
8258
|
|
|
8259
|
+
var Colours = PlussCore__namespace.Colours;
|
|
8260
|
+
Colours.COLOUR_DUSK_LIGHT;
|
|
8261
|
+
var COLOUR_BRANDING_MAIN = '#4a57b7';
|
|
8262
|
+
|
|
8238
8263
|
function _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf__default['default'](Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default['default'](this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default['default'](this, result); }; }
|
|
8239
8264
|
|
|
8240
8265
|
function _isNativeReflectConstruct$a() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
@@ -8334,7 +8359,8 @@
|
|
|
8334
8359
|
marginRight: 8,
|
|
8335
8360
|
backgroundSize: 'cover',
|
|
8336
8361
|
backgroundPosition: 'center',
|
|
8337
|
-
backgroundImage: "url(".concat(this.getImage(), ")")
|
|
8362
|
+
backgroundImage: "url(".concat(this.getImage(), ")"),
|
|
8363
|
+
backgroundColor: COLOUR_BRANDING_MAIN
|
|
8338
8364
|
},
|
|
8339
8365
|
alt: "".concat(this.getText(), " Image")
|
|
8340
8366
|
});
|
|
@@ -9966,7 +9992,7 @@
|
|
|
9966
9992
|
}, "*t*"), " =", ' ', /*#__PURE__*/React__default['default'].createElement("span", {
|
|
9967
9993
|
style: {
|
|
9968
9994
|
fontWeight: 600,
|
|
9969
|
-
color: COLOUR_BRANDING_MAIN,
|
|
9995
|
+
color: COLOUR_BRANDING_MAIN$1,
|
|
9970
9996
|
fontSize: 20
|
|
9971
9997
|
}
|
|
9972
9998
|
}, "Some Text"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("br", null), "Surround text with ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
@@ -10064,7 +10090,7 @@
|
|
|
10064
10090
|
default:
|
|
10065
10091
|
return /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
|
|
10066
10092
|
icon: o.icon,
|
|
10067
|
-
colour: isSelected ? '#fff' : COLOUR_BRANDING_MAIN
|
|
10093
|
+
colour: isSelected ? '#fff' : COLOUR_BRANDING_MAIN$1
|
|
10068
10094
|
});
|
|
10069
10095
|
}
|
|
10070
10096
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { Text } from './Text';
|
|
3
3
|
import { ProfilePic } from './ProfilePic';
|
|
4
|
+
import { COLOUR_BRANDING_MAIN } from '../../../../js/Colours';
|
|
4
5
|
|
|
5
6
|
class UserListing extends Component {
|
|
6
7
|
getSize() {
|
|
@@ -71,10 +72,12 @@ class UserListing extends Component {
|
|
|
71
72
|
backgroundSize: 'cover',
|
|
72
73
|
backgroundPosition: 'center',
|
|
73
74
|
backgroundImage: `url(${this.getImage()})`,
|
|
75
|
+
backgroundColor: COLOUR_BRANDING_MAIN,
|
|
74
76
|
}}
|
|
75
77
|
alt={`${this.getText()} Image`}
|
|
76
78
|
/>
|
|
77
79
|
);
|
|
80
|
+
p;
|
|
78
81
|
}
|
|
79
82
|
return <ProfilePic size={this.getSize()} className="userListing_profilePic" image={this.getImage()} />;
|
|
80
83
|
}
|