@bcgov-sso/common-react-components 1.18.1 → 1.18.4
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/cjs/index.js +101 -153
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Alert/Alert.d.ts +1 -1
- package/dist/esm/index.js +101 -153
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Alert/Alert.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2662,8 +2662,6 @@ var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
|
2662
2662
|
|
|
2663
2663
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
2664
2664
|
|
|
2665
|
-
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2666
|
-
|
|
2667
2665
|
/**
|
|
2668
2666
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2669
2667
|
*
|
|
@@ -2676,7 +2674,7 @@ var printWarning$1 = function() {};
|
|
|
2676
2674
|
if (process.env.NODE_ENV !== 'production') {
|
|
2677
2675
|
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
|
|
2678
2676
|
var loggedTypeFailures = {};
|
|
2679
|
-
var has$1 =
|
|
2677
|
+
var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2680
2678
|
|
|
2681
2679
|
printWarning$1 = function(text) {
|
|
2682
2680
|
var message = 'Warning: ' + text;
|
|
@@ -2688,7 +2686,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
2688
2686
|
// This error was thrown as a convenience so that you can use this stack
|
|
2689
2687
|
// to find the callsite that caused this warning to fire.
|
|
2690
2688
|
throw new Error(message);
|
|
2691
|
-
} catch (x) {
|
|
2689
|
+
} catch (x) {}
|
|
2692
2690
|
};
|
|
2693
2691
|
}
|
|
2694
2692
|
|
|
@@ -2717,8 +2715,7 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
2717
2715
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
2718
2716
|
var err = Error(
|
|
2719
2717
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
2720
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
2721
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
2718
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
2722
2719
|
);
|
|
2723
2720
|
err.name = 'Invariant Violation';
|
|
2724
2721
|
throw err;
|
|
@@ -2777,9 +2774,9 @@ var ReactIs$1 = reactIs$1.exports;
|
|
|
2777
2774
|
var assign = objectAssign;
|
|
2778
2775
|
|
|
2779
2776
|
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
2780
|
-
var has = has$2;
|
|
2781
2777
|
var checkPropTypes = checkPropTypes_1;
|
|
2782
2778
|
|
|
2779
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2783
2780
|
var printWarning = function() {};
|
|
2784
2781
|
|
|
2785
2782
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2880,7 +2877,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
2880
2877
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
2881
2878
|
var ReactPropTypes = {
|
|
2882
2879
|
array: createPrimitiveTypeChecker('array'),
|
|
2883
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
2884
2880
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
2885
2881
|
func: createPrimitiveTypeChecker('function'),
|
|
2886
2882
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -2926,9 +2922,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
2926
2922
|
* is prohibitively expensive if they are created too often, such as what
|
|
2927
2923
|
* happens in oneOfType() for any type before the one that matched.
|
|
2928
2924
|
*/
|
|
2929
|
-
function PropTypeError(message
|
|
2925
|
+
function PropTypeError(message) {
|
|
2930
2926
|
this.message = message;
|
|
2931
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
2932
2927
|
this.stack = '';
|
|
2933
2928
|
}
|
|
2934
2929
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -2963,7 +2958,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
2963
2958
|
) {
|
|
2964
2959
|
printWarning(
|
|
2965
2960
|
'You are manually calling a React.PropTypes validation ' +
|
|
2966
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
2961
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
2967
2962
|
'and will throw in the standalone `prop-types` package. ' +
|
|
2968
2963
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
2969
2964
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -3002,10 +2997,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
3002
2997
|
// 'of type `object`'.
|
|
3003
2998
|
var preciseType = getPreciseType(propValue);
|
|
3004
2999
|
|
|
3005
|
-
return new PropTypeError(
|
|
3006
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
3007
|
-
{expectedType: expectedType}
|
|
3008
|
-
);
|
|
3000
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
3009
3001
|
}
|
|
3010
3002
|
return null;
|
|
3011
3003
|
}
|
|
@@ -3149,19 +3141,14 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
3149
3141
|
}
|
|
3150
3142
|
|
|
3151
3143
|
function validate(props, propName, componentName, location, propFullName) {
|
|
3152
|
-
var expectedTypes = [];
|
|
3153
3144
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
3154
3145
|
var checker = arrayOfTypeCheckers[i];
|
|
3155
|
-
|
|
3156
|
-
if (checkerResult == null) {
|
|
3146
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1) == null) {
|
|
3157
3147
|
return null;
|
|
3158
3148
|
}
|
|
3159
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
3160
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
3161
|
-
}
|
|
3162
3149
|
}
|
|
3163
|
-
|
|
3164
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
3150
|
+
|
|
3151
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
3165
3152
|
}
|
|
3166
3153
|
return createChainableTypeChecker(validate);
|
|
3167
3154
|
}
|
|
@@ -3176,13 +3163,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
3176
3163
|
return createChainableTypeChecker(validate);
|
|
3177
3164
|
}
|
|
3178
3165
|
|
|
3179
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
3180
|
-
return new PropTypeError(
|
|
3181
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
3182
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
3183
|
-
);
|
|
3184
|
-
}
|
|
3185
|
-
|
|
3186
3166
|
function createShapeTypeChecker(shapeTypes) {
|
|
3187
3167
|
function validate(props, propName, componentName, location, propFullName) {
|
|
3188
3168
|
var propValue = props[propName];
|
|
@@ -3192,8 +3172,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
3192
3172
|
}
|
|
3193
3173
|
for (var key in shapeTypes) {
|
|
3194
3174
|
var checker = shapeTypes[key];
|
|
3195
|
-
if (
|
|
3196
|
-
|
|
3175
|
+
if (!checker) {
|
|
3176
|
+
continue;
|
|
3197
3177
|
}
|
|
3198
3178
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
3199
3179
|
if (error) {
|
|
@@ -3212,18 +3192,16 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
3212
3192
|
if (propType !== 'object') {
|
|
3213
3193
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
3214
3194
|
}
|
|
3215
|
-
// We need to check all keys in case some are required but missing from
|
|
3195
|
+
// We need to check all keys in case some are required but missing from
|
|
3196
|
+
// props.
|
|
3216
3197
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
3217
3198
|
for (var key in allKeys) {
|
|
3218
3199
|
var checker = shapeTypes[key];
|
|
3219
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
3220
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
3221
|
-
}
|
|
3222
3200
|
if (!checker) {
|
|
3223
3201
|
return new PropTypeError(
|
|
3224
3202
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
3225
3203
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
3226
|
-
'\nValid keys: ' +
|
|
3204
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
3227
3205
|
);
|
|
3228
3206
|
}
|
|
3229
3207
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
@@ -3408,7 +3386,6 @@ var factoryWithThrowingShims = function() {
|
|
|
3408
3386
|
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
3409
3387
|
var ReactPropTypes = {
|
|
3410
3388
|
array: shim,
|
|
3411
|
-
bigint: shim,
|
|
3412
3389
|
bool: shim,
|
|
3413
3390
|
func: shim,
|
|
3414
3391
|
number: shim,
|
|
@@ -3459,40 +3436,18 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
3459
3436
|
|
|
3460
3437
|
var PropTypes = propTypes.exports;
|
|
3461
3438
|
|
|
3462
|
-
function ownKeys(object, enumerableOnly) {
|
|
3463
|
-
var keys = Object.keys(object);
|
|
3464
|
-
|
|
3465
|
-
if (Object.getOwnPropertySymbols) {
|
|
3466
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
3467
|
-
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
3468
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
3469
|
-
})), keys.push.apply(keys, symbols);
|
|
3470
|
-
}
|
|
3471
|
-
|
|
3472
|
-
return keys;
|
|
3473
|
-
}
|
|
3474
|
-
|
|
3475
|
-
function _objectSpread2(target) {
|
|
3476
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
3477
|
-
var source = null != arguments[i] ? arguments[i] : {};
|
|
3478
|
-
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
3479
|
-
_defineProperty$1(target, key, source[key]);
|
|
3480
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
3481
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3482
|
-
});
|
|
3483
|
-
}
|
|
3484
|
-
|
|
3485
|
-
return target;
|
|
3486
|
-
}
|
|
3487
|
-
|
|
3488
3439
|
function _typeof$1(obj) {
|
|
3489
|
-
"
|
|
3440
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
3441
|
+
_typeof$1 = function (obj) {
|
|
3442
|
+
return typeof obj;
|
|
3443
|
+
};
|
|
3444
|
+
} else {
|
|
3445
|
+
_typeof$1 = function (obj) {
|
|
3446
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3447
|
+
};
|
|
3448
|
+
}
|
|
3490
3449
|
|
|
3491
|
-
return _typeof$1
|
|
3492
|
-
return typeof obj;
|
|
3493
|
-
} : function (obj) {
|
|
3494
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3495
|
-
}, _typeof$1(obj);
|
|
3450
|
+
return _typeof$1(obj);
|
|
3496
3451
|
}
|
|
3497
3452
|
|
|
3498
3453
|
function _defineProperty$1(obj, key, value) {
|
|
@@ -3510,6 +3465,40 @@ function _defineProperty$1(obj, key, value) {
|
|
|
3510
3465
|
return obj;
|
|
3511
3466
|
}
|
|
3512
3467
|
|
|
3468
|
+
function ownKeys(object, enumerableOnly) {
|
|
3469
|
+
var keys = Object.keys(object);
|
|
3470
|
+
|
|
3471
|
+
if (Object.getOwnPropertySymbols) {
|
|
3472
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
3473
|
+
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
3474
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
3475
|
+
});
|
|
3476
|
+
keys.push.apply(keys, symbols);
|
|
3477
|
+
}
|
|
3478
|
+
|
|
3479
|
+
return keys;
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
function _objectSpread2(target) {
|
|
3483
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
3484
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
3485
|
+
|
|
3486
|
+
if (i % 2) {
|
|
3487
|
+
ownKeys(Object(source), true).forEach(function (key) {
|
|
3488
|
+
_defineProperty$1(target, key, source[key]);
|
|
3489
|
+
});
|
|
3490
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
3491
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3492
|
+
} else {
|
|
3493
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
3494
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3495
|
+
});
|
|
3496
|
+
}
|
|
3497
|
+
}
|
|
3498
|
+
|
|
3499
|
+
return target;
|
|
3500
|
+
}
|
|
3501
|
+
|
|
3513
3502
|
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
3514
3503
|
if (source == null) return {};
|
|
3515
3504
|
var target = {};
|
|
@@ -3547,51 +3536,30 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
3547
3536
|
}
|
|
3548
3537
|
|
|
3549
3538
|
function _toConsumableArray(arr) {
|
|
3550
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
3539
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
3551
3540
|
}
|
|
3552
3541
|
|
|
3553
3542
|
function _arrayWithoutHoles(arr) {
|
|
3554
|
-
if (Array.isArray(arr))
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
function _iterableToArray(iter) {
|
|
3558
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3559
|
-
}
|
|
3543
|
+
if (Array.isArray(arr)) {
|
|
3544
|
+
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
|
3560
3545
|
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
3564
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3565
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3566
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
3567
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
3546
|
+
return arr2;
|
|
3547
|
+
}
|
|
3568
3548
|
}
|
|
3569
3549
|
|
|
3570
|
-
function
|
|
3571
|
-
if (
|
|
3572
|
-
|
|
3573
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
3574
|
-
|
|
3575
|
-
return arr2;
|
|
3550
|
+
function _iterableToArray(iter) {
|
|
3551
|
+
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
3576
3552
|
}
|
|
3577
3553
|
|
|
3578
3554
|
function _nonIterableSpread() {
|
|
3579
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
3555
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
3580
3556
|
}
|
|
3581
3557
|
|
|
3582
3558
|
// Get CSS class list from a props object
|
|
3583
3559
|
function classList(props) {
|
|
3584
3560
|
var _classes;
|
|
3585
3561
|
|
|
3586
|
-
var
|
|
3587
|
-
fade = props.fade,
|
|
3588
|
-
beatFade = props.beatFade,
|
|
3589
|
-
bounce = props.bounce,
|
|
3590
|
-
shake = props.shake,
|
|
3591
|
-
flash = props.flash,
|
|
3592
|
-
spin = props.spin,
|
|
3593
|
-
spinPulse = props.spinPulse,
|
|
3594
|
-
spinReverse = props.spinReverse,
|
|
3562
|
+
var spin = props.spin,
|
|
3595
3563
|
pulse = props.pulse,
|
|
3596
3564
|
fixedWidth = props.fixedWidth,
|
|
3597
3565
|
inverse = props.inverse,
|
|
@@ -3603,15 +3571,7 @@ function classList(props) {
|
|
|
3603
3571
|
pull = props.pull; // map of CSS class names to properties
|
|
3604
3572
|
|
|
3605
3573
|
var classes = (_classes = {
|
|
3606
|
-
'fa-beat': beat,
|
|
3607
|
-
'fa-fade': fade,
|
|
3608
|
-
'fa-beat-fade': beatFade,
|
|
3609
|
-
'fa-bounce': bounce,
|
|
3610
|
-
'fa-shake': shake,
|
|
3611
|
-
'fa-flash': flash,
|
|
3612
3574
|
'fa-spin': spin,
|
|
3613
|
-
'fa-spin-reverse': spinReverse,
|
|
3614
|
-
'fa-spin-pulse': spinPulse,
|
|
3615
3575
|
'fa-pulse': pulse,
|
|
3616
3576
|
'fa-fw': fixedWidth,
|
|
3617
3577
|
'fa-inverse': inverse,
|
|
@@ -3652,8 +3612,6 @@ function camelize(string) {
|
|
|
3652
3612
|
return string.substr(0, 1).toLowerCase() + string.substr(1);
|
|
3653
3613
|
}
|
|
3654
3614
|
|
|
3655
|
-
var _excluded$1 = ["style"];
|
|
3656
|
-
|
|
3657
3615
|
function capitalize(val) {
|
|
3658
3616
|
return val.charAt(0).toUpperCase() + val.slice(1);
|
|
3659
3617
|
}
|
|
@@ -3713,12 +3671,12 @@ function convert(createElement, element) {
|
|
|
3713
3671
|
|
|
3714
3672
|
var _extraProps$style = extraProps.style,
|
|
3715
3673
|
existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
|
|
3716
|
-
remaining = _objectWithoutProperties(extraProps,
|
|
3674
|
+
remaining = _objectWithoutProperties(extraProps, ["style"]);
|
|
3717
3675
|
|
|
3718
|
-
mixins.attrs['style'] = _objectSpread2(
|
|
3676
|
+
mixins.attrs['style'] = _objectSpread2({}, mixins.attrs['style'], {}, existingStyle);
|
|
3719
3677
|
/* eslint-enable */
|
|
3720
3678
|
|
|
3721
|
-
return createElement.apply(void 0, [element.tag, _objectSpread2(
|
|
3679
|
+
return createElement.apply(void 0, [element.tag, _objectSpread2({}, mixins.attrs, {}, remaining)].concat(_toConsumableArray(children)));
|
|
3722
3680
|
}
|
|
3723
3681
|
|
|
3724
3682
|
var PRODUCTION = false;
|
|
@@ -3742,10 +3700,6 @@ function normalizeIconArgs(icon) {
|
|
|
3742
3700
|
return icon;
|
|
3743
3701
|
}
|
|
3744
3702
|
|
|
3745
|
-
if (parse.icon) {
|
|
3746
|
-
return parse.icon(icon);
|
|
3747
|
-
} // if the icon is null, there's nothing to do
|
|
3748
|
-
|
|
3749
3703
|
|
|
3750
3704
|
if (icon === null) {
|
|
3751
3705
|
return null;
|
|
@@ -3785,27 +3739,24 @@ function objectWithKey(key, value) {
|
|
|
3785
3739
|
return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty$1({}, key, value) : {};
|
|
3786
3740
|
}
|
|
3787
3741
|
|
|
3788
|
-
var _excluded = ["forwardedRef"];
|
|
3789
3742
|
function FontAwesomeIcon(_ref) {
|
|
3790
3743
|
var forwardedRef = _ref.forwardedRef,
|
|
3791
|
-
props = _objectWithoutProperties(_ref,
|
|
3744
|
+
props = _objectWithoutProperties(_ref, ["forwardedRef"]);
|
|
3792
3745
|
|
|
3793
3746
|
var iconArgs = props.icon,
|
|
3794
3747
|
maskArgs = props.mask,
|
|
3795
3748
|
symbol = props.symbol,
|
|
3796
3749
|
className = props.className,
|
|
3797
3750
|
title = props.title,
|
|
3798
|
-
titleId = props.titleId
|
|
3799
|
-
maskId = props.maskId;
|
|
3751
|
+
titleId = props.titleId;
|
|
3800
3752
|
var iconLookup = normalizeIconArgs(iconArgs);
|
|
3801
3753
|
var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
|
|
3802
3754
|
var transform = objectWithKey('transform', typeof props.transform === 'string' ? parse.transform(props.transform) : props.transform);
|
|
3803
3755
|
var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
|
|
3804
|
-
var renderedIcon = icon(iconLookup, _objectSpread2(
|
|
3756
|
+
var renderedIcon = icon(iconLookup, _objectSpread2({}, classes, {}, transform, {}, mask, {
|
|
3805
3757
|
symbol: symbol,
|
|
3806
3758
|
title: title,
|
|
3807
|
-
titleId: titleId
|
|
3808
|
-
maskId: maskId
|
|
3759
|
+
titleId: titleId
|
|
3809
3760
|
}));
|
|
3810
3761
|
|
|
3811
3762
|
if (!renderedIcon) {
|
|
@@ -3827,14 +3778,9 @@ function FontAwesomeIcon(_ref) {
|
|
|
3827
3778
|
}
|
|
3828
3779
|
FontAwesomeIcon.displayName = 'FontAwesomeIcon';
|
|
3829
3780
|
FontAwesomeIcon.propTypes = {
|
|
3830
|
-
beat: PropTypes.bool,
|
|
3831
3781
|
border: PropTypes.bool,
|
|
3832
|
-
bounce: PropTypes.bool,
|
|
3833
3782
|
className: PropTypes.string,
|
|
3834
|
-
fade: PropTypes.bool,
|
|
3835
|
-
flash: PropTypes.bool,
|
|
3836
3783
|
mask: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
|
|
3837
|
-
maskId: PropTypes.string,
|
|
3838
3784
|
fixedWidth: PropTypes.bool,
|
|
3839
3785
|
inverse: PropTypes.bool,
|
|
3840
3786
|
flip: PropTypes.oneOf(['horizontal', 'vertical', 'both']),
|
|
@@ -3843,14 +3789,10 @@ FontAwesomeIcon.propTypes = {
|
|
|
3843
3789
|
pull: PropTypes.oneOf(['right', 'left']),
|
|
3844
3790
|
pulse: PropTypes.bool,
|
|
3845
3791
|
rotation: PropTypes.oneOf([0, 90, 180, 270]),
|
|
3846
|
-
|
|
3847
|
-
size: PropTypes.oneOf(['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
|
|
3792
|
+
size: PropTypes.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
|
|
3848
3793
|
spin: PropTypes.bool,
|
|
3849
|
-
spinPulse: PropTypes.bool,
|
|
3850
|
-
spinReverse: PropTypes.bool,
|
|
3851
3794
|
symbol: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
3852
3795
|
title: PropTypes.string,
|
|
3853
|
-
titleId: PropTypes.string,
|
|
3854
3796
|
transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
3855
3797
|
swapOpacity: PropTypes.bool
|
|
3856
3798
|
};
|
|
@@ -3858,7 +3800,6 @@ FontAwesomeIcon.defaultProps = {
|
|
|
3858
3800
|
border: false,
|
|
3859
3801
|
className: '',
|
|
3860
3802
|
mask: null,
|
|
3861
|
-
maskId: null,
|
|
3862
3803
|
fixedWidth: false,
|
|
3863
3804
|
inverse: false,
|
|
3864
3805
|
flip: null,
|
|
@@ -3869,14 +3810,8 @@ FontAwesomeIcon.defaultProps = {
|
|
|
3869
3810
|
rotation: null,
|
|
3870
3811
|
size: null,
|
|
3871
3812
|
spin: false,
|
|
3872
|
-
beat: false,
|
|
3873
|
-
fade: false,
|
|
3874
|
-
beatFade: false,
|
|
3875
|
-
bounce: false,
|
|
3876
|
-
shake: false,
|
|
3877
3813
|
symbol: false,
|
|
3878
3814
|
title: '',
|
|
3879
|
-
titleId: null,
|
|
3880
3815
|
transform: null,
|
|
3881
3816
|
swapOpacity: false
|
|
3882
3817
|
};
|
|
@@ -3906,10 +3841,10 @@ var faExclamationTriangle = {
|
|
|
3906
3841
|
iconName: 'exclamation-triangle',
|
|
3907
3842
|
icon: [576, 512, [], "f071", "M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]
|
|
3908
3843
|
};
|
|
3909
|
-
var
|
|
3844
|
+
var faInfo = {
|
|
3910
3845
|
prefix: 'fas',
|
|
3911
|
-
iconName: 'info
|
|
3912
|
-
icon: [
|
|
3846
|
+
iconName: 'info',
|
|
3847
|
+
icon: [192, 512, [], "f129", "M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"]
|
|
3913
3848
|
};
|
|
3914
3849
|
|
|
3915
3850
|
const SECONDARY_BLUE = '#38598a';
|
|
@@ -4042,7 +3977,8 @@ function _interopRequireDefault(obj) {
|
|
|
4042
3977
|
};
|
|
4043
3978
|
}
|
|
4044
3979
|
|
|
4045
|
-
module.exports = _interopRequireDefault
|
|
3980
|
+
module.exports = _interopRequireDefault;
|
|
3981
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
4046
3982
|
}(interopRequireDefault));
|
|
4047
3983
|
|
|
4048
3984
|
function _extends() {
|
|
@@ -8504,14 +8440,25 @@ var _typeof = {exports: {}};
|
|
|
8504
8440
|
function _typeof(obj) {
|
|
8505
8441
|
"@babel/helpers - typeof";
|
|
8506
8442
|
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8443
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
8444
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
8445
|
+
return typeof obj;
|
|
8446
|
+
};
|
|
8447
|
+
|
|
8448
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
8449
|
+
} else {
|
|
8450
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
8451
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
8452
|
+
};
|
|
8453
|
+
|
|
8454
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
8455
|
+
}
|
|
8456
|
+
|
|
8457
|
+
return _typeof(obj);
|
|
8512
8458
|
}
|
|
8513
8459
|
|
|
8514
|
-
module.exports = _typeof
|
|
8460
|
+
module.exports = _typeof;
|
|
8461
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
8515
8462
|
}(_typeof));
|
|
8516
8463
|
|
|
8517
8464
|
(function (module) {
|
|
@@ -8567,7 +8514,8 @@ function _interopRequireWildcard(obj, nodeInterop) {
|
|
|
8567
8514
|
return newObj;
|
|
8568
8515
|
}
|
|
8569
8516
|
|
|
8570
|
-
module.exports = _interopRequireWildcard
|
|
8517
|
+
module.exports = _interopRequireWildcard;
|
|
8518
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
8571
8519
|
}(interopRequireWildcard));
|
|
8572
8520
|
|
|
8573
8521
|
var _interopRequireDefault = interopRequireDefault.exports;
|
|
@@ -8812,7 +8760,7 @@ const InfoIcon = (React__default["default"].createElement("div", { style: {
|
|
|
8812
8760
|
textAlign: 'center',
|
|
8813
8761
|
border: '1px solid #434a44',
|
|
8814
8762
|
} },
|
|
8815
|
-
React__default["default"].createElement(FontAwesomeIcon, { icon:
|
|
8763
|
+
React__default["default"].createElement(FontAwesomeIcon, { icon: faInfo, style: {
|
|
8816
8764
|
color: '#000',
|
|
8817
8765
|
marginBottom: '0.1em',
|
|
8818
8766
|
}, size: "sm" })));
|