@plusscommunities/pluss-core-web 1.1.5 → 1.1.9
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 +65 -51
- package/dist/index.esm.js +65 -51
- package/dist/index.umd.js +65 -51
- package/package.json +4 -4
- package/rollup.config.js +16 -15
- package/src/components/Attachment.js +7 -2
- package/src/components/FileInput.js +18 -12
- package/src/components/ProfilePic.js +16 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4060,7 +4060,7 @@ var Attachment = /*#__PURE__*/function (_Component) {
|
|
|
4060
4060
|
key: "render",
|
|
4061
4061
|
value: function render() {
|
|
4062
4062
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4063
|
-
className: "pdfAttachment".concat(this.props.className ? " ".concat(this.props.className) : '')
|
|
4063
|
+
className: "pdfAttachment".concat(this.props.className ? " ".concat(this.props.className) : '').concat(this.props.white ? ' pdfAttachment-white' : '')
|
|
4064
4064
|
}, /*#__PURE__*/React__default['default'].createElement("a", {
|
|
4065
4065
|
href: this.props.source,
|
|
4066
4066
|
target: "_blank",
|
|
@@ -4070,7 +4070,7 @@ var Attachment = /*#__PURE__*/function (_Component) {
|
|
|
4070
4070
|
name: "".concat(this.props.uploading ? 'spinner fa-pulse' : 'paperclip', " fa-fw")
|
|
4071
4071
|
}), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
4072
4072
|
className: "pdfAttachment_title"
|
|
4073
|
-
}, this.props.title)), this.props.onRemove && /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
|
|
4073
|
+
}, this.props.title || getFileName(this.props.source))), this.props.onRemove && /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
|
|
4074
4074
|
colour: COLOUR_DUSK_LIGHT,
|
|
4075
4075
|
icon: "close",
|
|
4076
4076
|
className: "pdfAttachment_close",
|
|
@@ -4976,7 +4976,7 @@ var FileInputComponent = /*#__PURE__*/function (_Component) {
|
|
|
4976
4976
|
alt: "file"
|
|
4977
4977
|
}), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
4978
4978
|
className: "imageInput_text"
|
|
4979
|
-
}, getFileName(input.value))), /*#__PURE__*/React__default['default'].createElement(Dropzone__default['default'], {
|
|
4979
|
+
}, getFileName(input.value))), !_this3.props.multiple && /*#__PURE__*/React__default['default'].createElement(Dropzone__default['default'], {
|
|
4980
4980
|
accept: _this3.props.accept,
|
|
4981
4981
|
onDrop: function onDrop(files) {
|
|
4982
4982
|
return _this3.onDrop(files, true);
|
|
@@ -7195,18 +7195,55 @@ var PageTitle = /*#__PURE__*/function (_Component) {
|
|
|
7195
7195
|
return PageTitle;
|
|
7196
7196
|
}(React.Component);
|
|
7197
7197
|
|
|
7198
|
+
function _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); 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); }; }
|
|
7199
|
+
|
|
7200
|
+
function _isNativeReflectConstruct$f() { 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; } }
|
|
7201
|
+
|
|
7202
|
+
var Text = /*#__PURE__*/function (_Component) {
|
|
7203
|
+
_inherits__default['default'](Text, _Component);
|
|
7204
|
+
|
|
7205
|
+
var _super = _createSuper$f(Text);
|
|
7206
|
+
|
|
7207
|
+
function Text() {
|
|
7208
|
+
_classCallCheck__default['default'](this, Text);
|
|
7209
|
+
|
|
7210
|
+
return _super.apply(this, arguments);
|
|
7211
|
+
}
|
|
7212
|
+
|
|
7213
|
+
_createClass__default['default'](Text, [{
|
|
7214
|
+
key: "getClassName",
|
|
7215
|
+
value: function getClassName() {
|
|
7216
|
+
if (this.props.className) {
|
|
7217
|
+
return " ".concat(this.props.className);
|
|
7218
|
+
}
|
|
7219
|
+
|
|
7220
|
+
return '';
|
|
7221
|
+
}
|
|
7222
|
+
}, {
|
|
7223
|
+
key: "render",
|
|
7224
|
+
value: function render() {
|
|
7225
|
+
return /*#__PURE__*/React__default['default'].createElement("p", {
|
|
7226
|
+
className: "text-".concat(this.props.type).concat(this.getClassName()),
|
|
7227
|
+
style: this.props.style
|
|
7228
|
+
}, this.props.children);
|
|
7229
|
+
}
|
|
7230
|
+
}]);
|
|
7231
|
+
|
|
7232
|
+
return Text;
|
|
7233
|
+
}(React.Component);
|
|
7234
|
+
|
|
7198
7235
|
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
7199
7236
|
|
|
7200
7237
|
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
7201
7238
|
|
|
7202
|
-
function _createSuper$
|
|
7239
|
+
function _createSuper$e(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$e(); 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); }; }
|
|
7203
7240
|
|
|
7204
|
-
function _isNativeReflectConstruct$
|
|
7241
|
+
function _isNativeReflectConstruct$e() { 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; } }
|
|
7205
7242
|
|
|
7206
7243
|
var ProfilePicComponent = /*#__PURE__*/function (_Component) {
|
|
7207
7244
|
_inherits__default['default'](ProfilePicComponent, _Component);
|
|
7208
7245
|
|
|
7209
|
-
var _super = _createSuper$
|
|
7246
|
+
var _super = _createSuper$e(ProfilePicComponent);
|
|
7210
7247
|
|
|
7211
7248
|
function ProfilePicComponent() {
|
|
7212
7249
|
_classCallCheck__default['default'](this, ProfilePicComponent);
|
|
@@ -7215,8 +7252,8 @@ var ProfilePicComponent = /*#__PURE__*/function (_Component) {
|
|
|
7215
7252
|
}
|
|
7216
7253
|
|
|
7217
7254
|
_createClass__default['default'](ProfilePicComponent, [{
|
|
7218
|
-
key: "
|
|
7219
|
-
value: function
|
|
7255
|
+
key: "renderPic",
|
|
7256
|
+
value: function renderPic() {
|
|
7220
7257
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7221
7258
|
className: this.props.className,
|
|
7222
7259
|
style: _objectSpread$4({
|
|
@@ -7231,6 +7268,20 @@ var ProfilePicComponent = /*#__PURE__*/function (_Component) {
|
|
|
7231
7268
|
alt: "Profile Pic"
|
|
7232
7269
|
});
|
|
7233
7270
|
}
|
|
7271
|
+
}, {
|
|
7272
|
+
key: "render",
|
|
7273
|
+
value: function render() {
|
|
7274
|
+
if (this.props.hoverText) {
|
|
7275
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7276
|
+
className: "profilePicHover ".concat(this.props.containerClass)
|
|
7277
|
+
}, this.renderPic(), /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
7278
|
+
type: "h5",
|
|
7279
|
+
className: "profilePicHover_text"
|
|
7280
|
+
}, this.props.hoverText));
|
|
7281
|
+
}
|
|
7282
|
+
|
|
7283
|
+
return this.renderPic();
|
|
7284
|
+
}
|
|
7234
7285
|
}]);
|
|
7235
7286
|
|
|
7236
7287
|
return ProfilePicComponent;
|
|
@@ -7248,14 +7299,14 @@ function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
7248
7299
|
|
|
7249
7300
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
7250
7301
|
|
|
7251
|
-
function _createSuper$
|
|
7302
|
+
function _createSuper$d(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$d(); 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); }; }
|
|
7252
7303
|
|
|
7253
|
-
function _isNativeReflectConstruct$
|
|
7304
|
+
function _isNativeReflectConstruct$d() { 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; } }
|
|
7254
7305
|
|
|
7255
7306
|
var RadioButton = /*#__PURE__*/function (_Component) {
|
|
7256
7307
|
_inherits__default['default'](RadioButton, _Component);
|
|
7257
7308
|
|
|
7258
|
-
var _super = _createSuper$
|
|
7309
|
+
var _super = _createSuper$d(RadioButton);
|
|
7259
7310
|
|
|
7260
7311
|
function RadioButton() {
|
|
7261
7312
|
_classCallCheck__default['default'](this, RadioButton);
|
|
@@ -7413,14 +7464,14 @@ var styles$1 = {
|
|
|
7413
7464
|
}
|
|
7414
7465
|
};
|
|
7415
7466
|
|
|
7416
|
-
function _createSuper$
|
|
7467
|
+
function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); 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); }; }
|
|
7417
7468
|
|
|
7418
|
-
function _isNativeReflectConstruct$
|
|
7469
|
+
function _isNativeReflectConstruct$c() { 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; } }
|
|
7419
7470
|
|
|
7420
7471
|
var Tag = /*#__PURE__*/function (_Component) {
|
|
7421
7472
|
_inherits__default['default'](Tag, _Component);
|
|
7422
7473
|
|
|
7423
|
-
var _super = _createSuper$
|
|
7474
|
+
var _super = _createSuper$c(Tag);
|
|
7424
7475
|
|
|
7425
7476
|
function Tag() {
|
|
7426
7477
|
_classCallCheck__default['default'](this, Tag);
|
|
@@ -7485,43 +7536,6 @@ var Tag = /*#__PURE__*/function (_Component) {
|
|
|
7485
7536
|
return Tag;
|
|
7486
7537
|
}(React.Component);
|
|
7487
7538
|
|
|
7488
|
-
function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); 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); }; }
|
|
7489
|
-
|
|
7490
|
-
function _isNativeReflectConstruct$c() { 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; } }
|
|
7491
|
-
|
|
7492
|
-
var Text = /*#__PURE__*/function (_Component) {
|
|
7493
|
-
_inherits__default['default'](Text, _Component);
|
|
7494
|
-
|
|
7495
|
-
var _super = _createSuper$c(Text);
|
|
7496
|
-
|
|
7497
|
-
function Text() {
|
|
7498
|
-
_classCallCheck__default['default'](this, Text);
|
|
7499
|
-
|
|
7500
|
-
return _super.apply(this, arguments);
|
|
7501
|
-
}
|
|
7502
|
-
|
|
7503
|
-
_createClass__default['default'](Text, [{
|
|
7504
|
-
key: "getClassName",
|
|
7505
|
-
value: function getClassName() {
|
|
7506
|
-
if (this.props.className) {
|
|
7507
|
-
return " ".concat(this.props.className);
|
|
7508
|
-
}
|
|
7509
|
-
|
|
7510
|
-
return '';
|
|
7511
|
-
}
|
|
7512
|
-
}, {
|
|
7513
|
-
key: "render",
|
|
7514
|
-
value: function render() {
|
|
7515
|
-
return /*#__PURE__*/React__default['default'].createElement("p", {
|
|
7516
|
-
className: "text-".concat(this.props.type).concat(this.getClassName()),
|
|
7517
|
-
style: this.props.style
|
|
7518
|
-
}, this.props.children);
|
|
7519
|
-
}
|
|
7520
|
-
}]);
|
|
7521
|
-
|
|
7522
|
-
return Text;
|
|
7523
|
-
}(React.Component);
|
|
7524
|
-
|
|
7525
7539
|
function _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); 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); }; }
|
|
7526
7540
|
|
|
7527
7541
|
function _isNativeReflectConstruct$b() { 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; } }
|
package/dist/index.esm.js
CHANGED
|
@@ -4033,7 +4033,7 @@ var Attachment = /*#__PURE__*/function (_Component) {
|
|
|
4033
4033
|
key: "render",
|
|
4034
4034
|
value: function render() {
|
|
4035
4035
|
return /*#__PURE__*/React.createElement("div", {
|
|
4036
|
-
className: "pdfAttachment".concat(this.props.className ? " ".concat(this.props.className) : '')
|
|
4036
|
+
className: "pdfAttachment".concat(this.props.className ? " ".concat(this.props.className) : '').concat(this.props.white ? ' pdfAttachment-white' : '')
|
|
4037
4037
|
}, /*#__PURE__*/React.createElement("a", {
|
|
4038
4038
|
href: this.props.source,
|
|
4039
4039
|
target: "_blank",
|
|
@@ -4043,7 +4043,7 @@ var Attachment = /*#__PURE__*/function (_Component) {
|
|
|
4043
4043
|
name: "".concat(this.props.uploading ? 'spinner fa-pulse' : 'paperclip', " fa-fw")
|
|
4044
4044
|
}), /*#__PURE__*/React.createElement("p", {
|
|
4045
4045
|
className: "pdfAttachment_title"
|
|
4046
|
-
}, this.props.title)), this.props.onRemove && /*#__PURE__*/React.createElement(SVGIcon, {
|
|
4046
|
+
}, this.props.title || getFileName(this.props.source))), this.props.onRemove && /*#__PURE__*/React.createElement(SVGIcon, {
|
|
4047
4047
|
colour: COLOUR_DUSK_LIGHT,
|
|
4048
4048
|
icon: "close",
|
|
4049
4049
|
className: "pdfAttachment_close",
|
|
@@ -4949,7 +4949,7 @@ var FileInputComponent = /*#__PURE__*/function (_Component) {
|
|
|
4949
4949
|
alt: "file"
|
|
4950
4950
|
}), /*#__PURE__*/React.createElement("p", {
|
|
4951
4951
|
className: "imageInput_text"
|
|
4952
|
-
}, getFileName(input.value))), /*#__PURE__*/React.createElement(Dropzone, {
|
|
4952
|
+
}, getFileName(input.value))), !_this3.props.multiple && /*#__PURE__*/React.createElement(Dropzone, {
|
|
4953
4953
|
accept: _this3.props.accept,
|
|
4954
4954
|
onDrop: function onDrop(files) {
|
|
4955
4955
|
return _this3.onDrop(files, true);
|
|
@@ -7168,18 +7168,55 @@ var PageTitle = /*#__PURE__*/function (_Component) {
|
|
|
7168
7168
|
return PageTitle;
|
|
7169
7169
|
}(Component);
|
|
7170
7170
|
|
|
7171
|
+
function _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); 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); }; }
|
|
7172
|
+
|
|
7173
|
+
function _isNativeReflectConstruct$f() { 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; } }
|
|
7174
|
+
|
|
7175
|
+
var Text = /*#__PURE__*/function (_Component) {
|
|
7176
|
+
_inherits(Text, _Component);
|
|
7177
|
+
|
|
7178
|
+
var _super = _createSuper$f(Text);
|
|
7179
|
+
|
|
7180
|
+
function Text() {
|
|
7181
|
+
_classCallCheck(this, Text);
|
|
7182
|
+
|
|
7183
|
+
return _super.apply(this, arguments);
|
|
7184
|
+
}
|
|
7185
|
+
|
|
7186
|
+
_createClass(Text, [{
|
|
7187
|
+
key: "getClassName",
|
|
7188
|
+
value: function getClassName() {
|
|
7189
|
+
if (this.props.className) {
|
|
7190
|
+
return " ".concat(this.props.className);
|
|
7191
|
+
}
|
|
7192
|
+
|
|
7193
|
+
return '';
|
|
7194
|
+
}
|
|
7195
|
+
}, {
|
|
7196
|
+
key: "render",
|
|
7197
|
+
value: function render() {
|
|
7198
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
7199
|
+
className: "text-".concat(this.props.type).concat(this.getClassName()),
|
|
7200
|
+
style: this.props.style
|
|
7201
|
+
}, this.props.children);
|
|
7202
|
+
}
|
|
7203
|
+
}]);
|
|
7204
|
+
|
|
7205
|
+
return Text;
|
|
7206
|
+
}(Component);
|
|
7207
|
+
|
|
7171
7208
|
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
7172
7209
|
|
|
7173
7210
|
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
7174
7211
|
|
|
7175
|
-
function _createSuper$
|
|
7212
|
+
function _createSuper$e(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$e(); 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); }; }
|
|
7176
7213
|
|
|
7177
|
-
function _isNativeReflectConstruct$
|
|
7214
|
+
function _isNativeReflectConstruct$e() { 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; } }
|
|
7178
7215
|
|
|
7179
7216
|
var ProfilePicComponent = /*#__PURE__*/function (_Component) {
|
|
7180
7217
|
_inherits(ProfilePicComponent, _Component);
|
|
7181
7218
|
|
|
7182
|
-
var _super = _createSuper$
|
|
7219
|
+
var _super = _createSuper$e(ProfilePicComponent);
|
|
7183
7220
|
|
|
7184
7221
|
function ProfilePicComponent() {
|
|
7185
7222
|
_classCallCheck(this, ProfilePicComponent);
|
|
@@ -7188,8 +7225,8 @@ var ProfilePicComponent = /*#__PURE__*/function (_Component) {
|
|
|
7188
7225
|
}
|
|
7189
7226
|
|
|
7190
7227
|
_createClass(ProfilePicComponent, [{
|
|
7191
|
-
key: "
|
|
7192
|
-
value: function
|
|
7228
|
+
key: "renderPic",
|
|
7229
|
+
value: function renderPic() {
|
|
7193
7230
|
return /*#__PURE__*/React.createElement("div", {
|
|
7194
7231
|
className: this.props.className,
|
|
7195
7232
|
style: _objectSpread$4({
|
|
@@ -7204,6 +7241,20 @@ var ProfilePicComponent = /*#__PURE__*/function (_Component) {
|
|
|
7204
7241
|
alt: "Profile Pic"
|
|
7205
7242
|
});
|
|
7206
7243
|
}
|
|
7244
|
+
}, {
|
|
7245
|
+
key: "render",
|
|
7246
|
+
value: function render() {
|
|
7247
|
+
if (this.props.hoverText) {
|
|
7248
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7249
|
+
className: "profilePicHover ".concat(this.props.containerClass)
|
|
7250
|
+
}, this.renderPic(), /*#__PURE__*/React.createElement(Text, {
|
|
7251
|
+
type: "h5",
|
|
7252
|
+
className: "profilePicHover_text"
|
|
7253
|
+
}, this.props.hoverText));
|
|
7254
|
+
}
|
|
7255
|
+
|
|
7256
|
+
return this.renderPic();
|
|
7257
|
+
}
|
|
7207
7258
|
}]);
|
|
7208
7259
|
|
|
7209
7260
|
return ProfilePicComponent;
|
|
@@ -7221,14 +7272,14 @@ function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
7221
7272
|
|
|
7222
7273
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
7223
7274
|
|
|
7224
|
-
function _createSuper$
|
|
7275
|
+
function _createSuper$d(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$d(); 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); }; }
|
|
7225
7276
|
|
|
7226
|
-
function _isNativeReflectConstruct$
|
|
7277
|
+
function _isNativeReflectConstruct$d() { 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; } }
|
|
7227
7278
|
|
|
7228
7279
|
var RadioButton = /*#__PURE__*/function (_Component) {
|
|
7229
7280
|
_inherits(RadioButton, _Component);
|
|
7230
7281
|
|
|
7231
|
-
var _super = _createSuper$
|
|
7282
|
+
var _super = _createSuper$d(RadioButton);
|
|
7232
7283
|
|
|
7233
7284
|
function RadioButton() {
|
|
7234
7285
|
_classCallCheck(this, RadioButton);
|
|
@@ -7386,14 +7437,14 @@ var styles$1 = {
|
|
|
7386
7437
|
}
|
|
7387
7438
|
};
|
|
7388
7439
|
|
|
7389
|
-
function _createSuper$
|
|
7440
|
+
function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); 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); }; }
|
|
7390
7441
|
|
|
7391
|
-
function _isNativeReflectConstruct$
|
|
7442
|
+
function _isNativeReflectConstruct$c() { 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; } }
|
|
7392
7443
|
|
|
7393
7444
|
var Tag = /*#__PURE__*/function (_Component) {
|
|
7394
7445
|
_inherits(Tag, _Component);
|
|
7395
7446
|
|
|
7396
|
-
var _super = _createSuper$
|
|
7447
|
+
var _super = _createSuper$c(Tag);
|
|
7397
7448
|
|
|
7398
7449
|
function Tag() {
|
|
7399
7450
|
_classCallCheck(this, Tag);
|
|
@@ -7458,43 +7509,6 @@ var Tag = /*#__PURE__*/function (_Component) {
|
|
|
7458
7509
|
return Tag;
|
|
7459
7510
|
}(Component);
|
|
7460
7511
|
|
|
7461
|
-
function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); 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); }; }
|
|
7462
|
-
|
|
7463
|
-
function _isNativeReflectConstruct$c() { 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; } }
|
|
7464
|
-
|
|
7465
|
-
var Text = /*#__PURE__*/function (_Component) {
|
|
7466
|
-
_inherits(Text, _Component);
|
|
7467
|
-
|
|
7468
|
-
var _super = _createSuper$c(Text);
|
|
7469
|
-
|
|
7470
|
-
function Text() {
|
|
7471
|
-
_classCallCheck(this, Text);
|
|
7472
|
-
|
|
7473
|
-
return _super.apply(this, arguments);
|
|
7474
|
-
}
|
|
7475
|
-
|
|
7476
|
-
_createClass(Text, [{
|
|
7477
|
-
key: "getClassName",
|
|
7478
|
-
value: function getClassName() {
|
|
7479
|
-
if (this.props.className) {
|
|
7480
|
-
return " ".concat(this.props.className);
|
|
7481
|
-
}
|
|
7482
|
-
|
|
7483
|
-
return '';
|
|
7484
|
-
}
|
|
7485
|
-
}, {
|
|
7486
|
-
key: "render",
|
|
7487
|
-
value: function render() {
|
|
7488
|
-
return /*#__PURE__*/React.createElement("p", {
|
|
7489
|
-
className: "text-".concat(this.props.type).concat(this.getClassName()),
|
|
7490
|
-
style: this.props.style
|
|
7491
|
-
}, this.props.children);
|
|
7492
|
-
}
|
|
7493
|
-
}]);
|
|
7494
|
-
|
|
7495
|
-
return Text;
|
|
7496
|
-
}(Component);
|
|
7497
|
-
|
|
7498
7512
|
function _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); 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); }; }
|
|
7499
7513
|
|
|
7500
7514
|
function _isNativeReflectConstruct$b() { 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; } }
|
package/dist/index.umd.js
CHANGED
|
@@ -4036,7 +4036,7 @@
|
|
|
4036
4036
|
key: "render",
|
|
4037
4037
|
value: function render() {
|
|
4038
4038
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4039
|
-
className: "pdfAttachment".concat(this.props.className ? " ".concat(this.props.className) : '')
|
|
4039
|
+
className: "pdfAttachment".concat(this.props.className ? " ".concat(this.props.className) : '').concat(this.props.white ? ' pdfAttachment-white' : '')
|
|
4040
4040
|
}, /*#__PURE__*/React__default['default'].createElement("a", {
|
|
4041
4041
|
href: this.props.source,
|
|
4042
4042
|
target: "_blank",
|
|
@@ -4046,7 +4046,7 @@
|
|
|
4046
4046
|
name: "".concat(this.props.uploading ? 'spinner fa-pulse' : 'paperclip', " fa-fw")
|
|
4047
4047
|
}), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
4048
4048
|
className: "pdfAttachment_title"
|
|
4049
|
-
}, this.props.title)), this.props.onRemove && /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
|
|
4049
|
+
}, this.props.title || getFileName(this.props.source))), this.props.onRemove && /*#__PURE__*/React__default['default'].createElement(SVGIcon, {
|
|
4050
4050
|
colour: COLOUR_DUSK_LIGHT,
|
|
4051
4051
|
icon: "close",
|
|
4052
4052
|
className: "pdfAttachment_close",
|
|
@@ -4952,7 +4952,7 @@
|
|
|
4952
4952
|
alt: "file"
|
|
4953
4953
|
}), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
4954
4954
|
className: "imageInput_text"
|
|
4955
|
-
}, getFileName(input.value))), /*#__PURE__*/React__default['default'].createElement(Dropzone__default['default'], {
|
|
4955
|
+
}, getFileName(input.value))), !_this3.props.multiple && /*#__PURE__*/React__default['default'].createElement(Dropzone__default['default'], {
|
|
4956
4956
|
accept: _this3.props.accept,
|
|
4957
4957
|
onDrop: function onDrop(files) {
|
|
4958
4958
|
return _this3.onDrop(files, true);
|
|
@@ -7171,18 +7171,55 @@
|
|
|
7171
7171
|
return PageTitle;
|
|
7172
7172
|
}(React.Component);
|
|
7173
7173
|
|
|
7174
|
+
function _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); 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); }; }
|
|
7175
|
+
|
|
7176
|
+
function _isNativeReflectConstruct$f() { 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; } }
|
|
7177
|
+
|
|
7178
|
+
var Text = /*#__PURE__*/function (_Component) {
|
|
7179
|
+
_inherits__default['default'](Text, _Component);
|
|
7180
|
+
|
|
7181
|
+
var _super = _createSuper$f(Text);
|
|
7182
|
+
|
|
7183
|
+
function Text() {
|
|
7184
|
+
_classCallCheck__default['default'](this, Text);
|
|
7185
|
+
|
|
7186
|
+
return _super.apply(this, arguments);
|
|
7187
|
+
}
|
|
7188
|
+
|
|
7189
|
+
_createClass__default['default'](Text, [{
|
|
7190
|
+
key: "getClassName",
|
|
7191
|
+
value: function getClassName() {
|
|
7192
|
+
if (this.props.className) {
|
|
7193
|
+
return " ".concat(this.props.className);
|
|
7194
|
+
}
|
|
7195
|
+
|
|
7196
|
+
return '';
|
|
7197
|
+
}
|
|
7198
|
+
}, {
|
|
7199
|
+
key: "render",
|
|
7200
|
+
value: function render() {
|
|
7201
|
+
return /*#__PURE__*/React__default['default'].createElement("p", {
|
|
7202
|
+
className: "text-".concat(this.props.type).concat(this.getClassName()),
|
|
7203
|
+
style: this.props.style
|
|
7204
|
+
}, this.props.children);
|
|
7205
|
+
}
|
|
7206
|
+
}]);
|
|
7207
|
+
|
|
7208
|
+
return Text;
|
|
7209
|
+
}(React.Component);
|
|
7210
|
+
|
|
7174
7211
|
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
7175
7212
|
|
|
7176
7213
|
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
7177
7214
|
|
|
7178
|
-
function _createSuper$
|
|
7215
|
+
function _createSuper$e(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$e(); 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); }; }
|
|
7179
7216
|
|
|
7180
|
-
function _isNativeReflectConstruct$
|
|
7217
|
+
function _isNativeReflectConstruct$e() { 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; } }
|
|
7181
7218
|
|
|
7182
7219
|
var ProfilePicComponent = /*#__PURE__*/function (_Component) {
|
|
7183
7220
|
_inherits__default['default'](ProfilePicComponent, _Component);
|
|
7184
7221
|
|
|
7185
|
-
var _super = _createSuper$
|
|
7222
|
+
var _super = _createSuper$e(ProfilePicComponent);
|
|
7186
7223
|
|
|
7187
7224
|
function ProfilePicComponent() {
|
|
7188
7225
|
_classCallCheck__default['default'](this, ProfilePicComponent);
|
|
@@ -7191,8 +7228,8 @@
|
|
|
7191
7228
|
}
|
|
7192
7229
|
|
|
7193
7230
|
_createClass__default['default'](ProfilePicComponent, [{
|
|
7194
|
-
key: "
|
|
7195
|
-
value: function
|
|
7231
|
+
key: "renderPic",
|
|
7232
|
+
value: function renderPic() {
|
|
7196
7233
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7197
7234
|
className: this.props.className,
|
|
7198
7235
|
style: _objectSpread$4({
|
|
@@ -7207,6 +7244,20 @@
|
|
|
7207
7244
|
alt: "Profile Pic"
|
|
7208
7245
|
});
|
|
7209
7246
|
}
|
|
7247
|
+
}, {
|
|
7248
|
+
key: "render",
|
|
7249
|
+
value: function render() {
|
|
7250
|
+
if (this.props.hoverText) {
|
|
7251
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7252
|
+
className: "profilePicHover ".concat(this.props.containerClass)
|
|
7253
|
+
}, this.renderPic(), /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
7254
|
+
type: "h5",
|
|
7255
|
+
className: "profilePicHover_text"
|
|
7256
|
+
}, this.props.hoverText));
|
|
7257
|
+
}
|
|
7258
|
+
|
|
7259
|
+
return this.renderPic();
|
|
7260
|
+
}
|
|
7210
7261
|
}]);
|
|
7211
7262
|
|
|
7212
7263
|
return ProfilePicComponent;
|
|
@@ -7224,14 +7275,14 @@
|
|
|
7224
7275
|
|
|
7225
7276
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
7226
7277
|
|
|
7227
|
-
function _createSuper$
|
|
7278
|
+
function _createSuper$d(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$d(); 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); }; }
|
|
7228
7279
|
|
|
7229
|
-
function _isNativeReflectConstruct$
|
|
7280
|
+
function _isNativeReflectConstruct$d() { 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; } }
|
|
7230
7281
|
|
|
7231
7282
|
var RadioButton = /*#__PURE__*/function (_Component) {
|
|
7232
7283
|
_inherits__default['default'](RadioButton, _Component);
|
|
7233
7284
|
|
|
7234
|
-
var _super = _createSuper$
|
|
7285
|
+
var _super = _createSuper$d(RadioButton);
|
|
7235
7286
|
|
|
7236
7287
|
function RadioButton() {
|
|
7237
7288
|
_classCallCheck__default['default'](this, RadioButton);
|
|
@@ -7389,14 +7440,14 @@
|
|
|
7389
7440
|
}
|
|
7390
7441
|
};
|
|
7391
7442
|
|
|
7392
|
-
function _createSuper$
|
|
7443
|
+
function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); 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); }; }
|
|
7393
7444
|
|
|
7394
|
-
function _isNativeReflectConstruct$
|
|
7445
|
+
function _isNativeReflectConstruct$c() { 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; } }
|
|
7395
7446
|
|
|
7396
7447
|
var Tag = /*#__PURE__*/function (_Component) {
|
|
7397
7448
|
_inherits__default['default'](Tag, _Component);
|
|
7398
7449
|
|
|
7399
|
-
var _super = _createSuper$
|
|
7450
|
+
var _super = _createSuper$c(Tag);
|
|
7400
7451
|
|
|
7401
7452
|
function Tag() {
|
|
7402
7453
|
_classCallCheck__default['default'](this, Tag);
|
|
@@ -7461,43 +7512,6 @@
|
|
|
7461
7512
|
return Tag;
|
|
7462
7513
|
}(React.Component);
|
|
7463
7514
|
|
|
7464
|
-
function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); 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); }; }
|
|
7465
|
-
|
|
7466
|
-
function _isNativeReflectConstruct$c() { 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; } }
|
|
7467
|
-
|
|
7468
|
-
var Text = /*#__PURE__*/function (_Component) {
|
|
7469
|
-
_inherits__default['default'](Text, _Component);
|
|
7470
|
-
|
|
7471
|
-
var _super = _createSuper$c(Text);
|
|
7472
|
-
|
|
7473
|
-
function Text() {
|
|
7474
|
-
_classCallCheck__default['default'](this, Text);
|
|
7475
|
-
|
|
7476
|
-
return _super.apply(this, arguments);
|
|
7477
|
-
}
|
|
7478
|
-
|
|
7479
|
-
_createClass__default['default'](Text, [{
|
|
7480
|
-
key: "getClassName",
|
|
7481
|
-
value: function getClassName() {
|
|
7482
|
-
if (this.props.className) {
|
|
7483
|
-
return " ".concat(this.props.className);
|
|
7484
|
-
}
|
|
7485
|
-
|
|
7486
|
-
return '';
|
|
7487
|
-
}
|
|
7488
|
-
}, {
|
|
7489
|
-
key: "render",
|
|
7490
|
-
value: function render() {
|
|
7491
|
-
return /*#__PURE__*/React__default['default'].createElement("p", {
|
|
7492
|
-
className: "text-".concat(this.props.type).concat(this.getClassName()),
|
|
7493
|
-
style: this.props.style
|
|
7494
|
-
}, this.props.children);
|
|
7495
|
-
}
|
|
7496
|
-
}]);
|
|
7497
|
-
|
|
7498
|
-
return Text;
|
|
7499
|
-
}(React.Component);
|
|
7500
|
-
|
|
7501
7515
|
function _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); 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); }; }
|
|
7502
7516
|
|
|
7503
7517
|
function _isNativeReflectConstruct$b() { 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; } }
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plusscommunities/pluss-core-web",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Core extension package for Pluss Communities platform",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "npm i && rollup -c",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
8
|
+
"patch": "npm version patch",
|
|
9
|
+
"upload": "npm build && npm publish --access public && rm -rf node_modules",
|
|
10
|
+
"upload:p": "npm run patch && npm run upload"
|
|
11
11
|
},
|
|
12
12
|
"author": "Phillip Suh",
|
|
13
13
|
"license": "ISC",
|
package/rollup.config.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import styles from
|
|
2
|
-
const autoprefixer = require(
|
|
3
|
-
import babel from
|
|
4
|
-
import json from
|
|
5
|
-
import localResolve from
|
|
1
|
+
import styles from 'rollup-plugin-styles';
|
|
2
|
+
const autoprefixer = require('autoprefixer');
|
|
3
|
+
import babel from '@rollup/plugin-babel';
|
|
4
|
+
import json from '@rollup/plugin-json';
|
|
5
|
+
import localResolve from 'rollup-plugin-local-resolve';
|
|
6
6
|
|
|
7
7
|
// the entry point for the library
|
|
8
|
-
const input =
|
|
8
|
+
const input = 'src/index.js';
|
|
9
9
|
|
|
10
10
|
var MODE = [
|
|
11
11
|
{
|
|
12
|
-
fomart:
|
|
12
|
+
fomart: 'cjs',
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
fomart:
|
|
15
|
+
fomart: 'esm',
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
fomart:
|
|
18
|
+
fomart: 'umd',
|
|
19
19
|
},
|
|
20
20
|
];
|
|
21
21
|
|
|
@@ -26,19 +26,20 @@ MODE.map((m) => {
|
|
|
26
26
|
input: input,
|
|
27
27
|
output: {
|
|
28
28
|
// then name of your package
|
|
29
|
-
name:
|
|
29
|
+
name: '@plusscommunities/pluss-core-web',
|
|
30
30
|
file: `dist/index.${m.fomart}.js`,
|
|
31
31
|
format: m.fomart,
|
|
32
|
-
exports:
|
|
32
|
+
exports: 'auto',
|
|
33
33
|
},
|
|
34
34
|
// this externelizes react to prevent rollup from compiling it
|
|
35
|
-
external: [
|
|
35
|
+
external: ['react', /@babel\/runtime/],
|
|
36
36
|
plugins: [
|
|
37
37
|
// these are babel comfigurations
|
|
38
38
|
babel({
|
|
39
|
-
exclude:
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
exclude: 'node_modules/**',
|
|
40
|
+
presets: ['@babel/preset-react', '@babel/preset-env'],
|
|
41
|
+
plugins: ['@babel/transform-runtime'],
|
|
42
|
+
babelHelpers: 'runtime',
|
|
42
43
|
}),
|
|
43
44
|
// this adds support for styles
|
|
44
45
|
styles({
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import FontAwesome from 'react-fontawesome';
|
|
3
3
|
import { COLOUR_DUSK_LIGHT } from '../colours';
|
|
4
|
+
import getFileName from '../helper/files/getFileName';
|
|
4
5
|
import { SVGIcon } from './SVGIcon';
|
|
5
6
|
|
|
6
7
|
class Attachment extends Component {
|
|
7
8
|
render() {
|
|
8
9
|
return (
|
|
9
|
-
<div
|
|
10
|
+
<div
|
|
11
|
+
className={`pdfAttachment${this.props.className ? ` ${this.props.className}` : ''}${
|
|
12
|
+
this.props.white ? ' pdfAttachment-white' : ''
|
|
13
|
+
}`}
|
|
14
|
+
>
|
|
10
15
|
<a href={this.props.source} target="_blank" className="pdfAttachment_container">
|
|
11
16
|
<FontAwesome className="pdfAttachment_icon" name={`${this.props.uploading ? 'spinner fa-pulse' : 'paperclip'} fa-fw`} />
|
|
12
|
-
<p className="pdfAttachment_title">{this.props.title}</p>
|
|
17
|
+
<p className="pdfAttachment_title">{this.props.title || getFileName(this.props.source)}</p>
|
|
13
18
|
</a>
|
|
14
19
|
{this.props.onRemove && (
|
|
15
20
|
<SVGIcon colour={COLOUR_DUSK_LIGHT} icon="close" className="pdfAttachment_close" onClick={this.props.onRemove} />
|
|
@@ -150,13 +150,17 @@ class FileInputComponent extends Component {
|
|
|
150
150
|
inputs: newInputs,
|
|
151
151
|
});
|
|
152
152
|
this.checkRefreshCallback(newInputs);
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
153
|
+
if (this.props.handleFile) {
|
|
154
|
+
this.props.handleFile(file, newInputs);
|
|
155
|
+
} else {
|
|
156
|
+
try {
|
|
157
|
+
let uploadFile = file;
|
|
158
|
+
const url = await fileActions.uploadMediaAsync(uploadFile, uploadFile.name);
|
|
159
|
+
this.checkSetDisplayValue(input, url);
|
|
160
|
+
} catch (error) {
|
|
161
|
+
console.log('handleFile error', error);
|
|
162
|
+
this.setState({ uploadingFile: false });
|
|
163
|
+
}
|
|
160
164
|
}
|
|
161
165
|
};
|
|
162
166
|
|
|
@@ -206,11 +210,13 @@ class FileInputComponent extends Component {
|
|
|
206
210
|
/>
|
|
207
211
|
<p className="imageInput_text">{getFileName(input.value)}</p>
|
|
208
212
|
</div>
|
|
209
|
-
|
|
210
|
-
<
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
213
|
+
{!this.props.multiple && (
|
|
214
|
+
<Dropzone accept={this.props.accept} onDrop={(files) => this.onDrop(files, true)} style={{ padding: 10 }}>
|
|
215
|
+
<Button buttonType="secondary" className="imageInput_button" disabled>
|
|
216
|
+
Change file
|
|
217
|
+
</Button>
|
|
218
|
+
</Dropzone>
|
|
219
|
+
)}
|
|
214
220
|
</div>
|
|
215
221
|
);
|
|
216
222
|
}
|
|
@@ -3,9 +3,10 @@ import _ from 'lodash';
|
|
|
3
3
|
import { connect } from 'react-redux';
|
|
4
4
|
import Config from '../config';
|
|
5
5
|
import { getAppColourFromState } from '../helper';
|
|
6
|
+
import { Text } from './Text';
|
|
6
7
|
|
|
7
8
|
class ProfilePicComponent extends Component {
|
|
8
|
-
|
|
9
|
+
renderPic() {
|
|
9
10
|
return (
|
|
10
11
|
<div
|
|
11
12
|
className={this.props.className}
|
|
@@ -23,6 +24,20 @@ class ProfilePicComponent extends Component {
|
|
|
23
24
|
></div>
|
|
24
25
|
);
|
|
25
26
|
}
|
|
27
|
+
|
|
28
|
+
render() {
|
|
29
|
+
if (this.props.hoverText) {
|
|
30
|
+
return (
|
|
31
|
+
<div className={`profilePicHover ${this.props.containerClass}`}>
|
|
32
|
+
{this.renderPic()}
|
|
33
|
+
<Text type="h5" className="profilePicHover_text">
|
|
34
|
+
{this.props.hoverText}
|
|
35
|
+
</Text>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
return this.renderPic();
|
|
40
|
+
}
|
|
26
41
|
}
|
|
27
42
|
|
|
28
43
|
const mapStateToProps = (state) => {
|