@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/esm/index.js
CHANGED
|
@@ -2654,8 +2654,6 @@ var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
|
2654
2654
|
|
|
2655
2655
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
|
|
2656
2656
|
|
|
2657
|
-
var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2658
|
-
|
|
2659
2657
|
/**
|
|
2660
2658
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
2661
2659
|
*
|
|
@@ -2668,7 +2666,7 @@ var printWarning$1 = function() {};
|
|
|
2668
2666
|
if (process.env.NODE_ENV !== 'production') {
|
|
2669
2667
|
var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
|
|
2670
2668
|
var loggedTypeFailures = {};
|
|
2671
|
-
var has$1 =
|
|
2669
|
+
var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2672
2670
|
|
|
2673
2671
|
printWarning$1 = function(text) {
|
|
2674
2672
|
var message = 'Warning: ' + text;
|
|
@@ -2680,7 +2678,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
2680
2678
|
// This error was thrown as a convenience so that you can use this stack
|
|
2681
2679
|
// to find the callsite that caused this warning to fire.
|
|
2682
2680
|
throw new Error(message);
|
|
2683
|
-
} catch (x) {
|
|
2681
|
+
} catch (x) {}
|
|
2684
2682
|
};
|
|
2685
2683
|
}
|
|
2686
2684
|
|
|
@@ -2709,8 +2707,7 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
2709
2707
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
2710
2708
|
var err = Error(
|
|
2711
2709
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
2712
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
2713
|
-
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
2710
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
2714
2711
|
);
|
|
2715
2712
|
err.name = 'Invariant Violation';
|
|
2716
2713
|
throw err;
|
|
@@ -2769,9 +2766,9 @@ var ReactIs$1 = reactIs$1.exports;
|
|
|
2769
2766
|
var assign = objectAssign;
|
|
2770
2767
|
|
|
2771
2768
|
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
2772
|
-
var has = has$2;
|
|
2773
2769
|
var checkPropTypes = checkPropTypes_1;
|
|
2774
2770
|
|
|
2771
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2775
2772
|
var printWarning = function() {};
|
|
2776
2773
|
|
|
2777
2774
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2872,7 +2869,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
2872
2869
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
2873
2870
|
var ReactPropTypes = {
|
|
2874
2871
|
array: createPrimitiveTypeChecker('array'),
|
|
2875
|
-
bigint: createPrimitiveTypeChecker('bigint'),
|
|
2876
2872
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
2877
2873
|
func: createPrimitiveTypeChecker('function'),
|
|
2878
2874
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -2918,9 +2914,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
2918
2914
|
* is prohibitively expensive if they are created too often, such as what
|
|
2919
2915
|
* happens in oneOfType() for any type before the one that matched.
|
|
2920
2916
|
*/
|
|
2921
|
-
function PropTypeError(message
|
|
2917
|
+
function PropTypeError(message) {
|
|
2922
2918
|
this.message = message;
|
|
2923
|
-
this.data = data && typeof data === 'object' ? data: {};
|
|
2924
2919
|
this.stack = '';
|
|
2925
2920
|
}
|
|
2926
2921
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -2955,7 +2950,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
2955
2950
|
) {
|
|
2956
2951
|
printWarning(
|
|
2957
2952
|
'You are manually calling a React.PropTypes validation ' +
|
|
2958
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
2953
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
2959
2954
|
'and will throw in the standalone `prop-types` package. ' +
|
|
2960
2955
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
2961
2956
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -2994,10 +2989,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
2994
2989
|
// 'of type `object`'.
|
|
2995
2990
|
var preciseType = getPreciseType(propValue);
|
|
2996
2991
|
|
|
2997
|
-
return new PropTypeError(
|
|
2998
|
-
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
2999
|
-
{expectedType: expectedType}
|
|
3000
|
-
);
|
|
2992
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
3001
2993
|
}
|
|
3002
2994
|
return null;
|
|
3003
2995
|
}
|
|
@@ -3141,19 +3133,14 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
3141
3133
|
}
|
|
3142
3134
|
|
|
3143
3135
|
function validate(props, propName, componentName, location, propFullName) {
|
|
3144
|
-
var expectedTypes = [];
|
|
3145
3136
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
3146
3137
|
var checker = arrayOfTypeCheckers[i];
|
|
3147
|
-
|
|
3148
|
-
if (checkerResult == null) {
|
|
3138
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1) == null) {
|
|
3149
3139
|
return null;
|
|
3150
3140
|
}
|
|
3151
|
-
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
3152
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
3153
|
-
}
|
|
3154
3141
|
}
|
|
3155
|
-
|
|
3156
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
3142
|
+
|
|
3143
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
3157
3144
|
}
|
|
3158
3145
|
return createChainableTypeChecker(validate);
|
|
3159
3146
|
}
|
|
@@ -3168,13 +3155,6 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
3168
3155
|
return createChainableTypeChecker(validate);
|
|
3169
3156
|
}
|
|
3170
3157
|
|
|
3171
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
3172
|
-
return new PropTypeError(
|
|
3173
|
-
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
3174
|
-
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
3175
|
-
);
|
|
3176
|
-
}
|
|
3177
|
-
|
|
3178
3158
|
function createShapeTypeChecker(shapeTypes) {
|
|
3179
3159
|
function validate(props, propName, componentName, location, propFullName) {
|
|
3180
3160
|
var propValue = props[propName];
|
|
@@ -3184,8 +3164,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
3184
3164
|
}
|
|
3185
3165
|
for (var key in shapeTypes) {
|
|
3186
3166
|
var checker = shapeTypes[key];
|
|
3187
|
-
if (
|
|
3188
|
-
|
|
3167
|
+
if (!checker) {
|
|
3168
|
+
continue;
|
|
3189
3169
|
}
|
|
3190
3170
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
3191
3171
|
if (error) {
|
|
@@ -3204,18 +3184,16 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
3204
3184
|
if (propType !== 'object') {
|
|
3205
3185
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
3206
3186
|
}
|
|
3207
|
-
// We need to check all keys in case some are required but missing from
|
|
3187
|
+
// We need to check all keys in case some are required but missing from
|
|
3188
|
+
// props.
|
|
3208
3189
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
3209
3190
|
for (var key in allKeys) {
|
|
3210
3191
|
var checker = shapeTypes[key];
|
|
3211
|
-
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
3212
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
3213
|
-
}
|
|
3214
3192
|
if (!checker) {
|
|
3215
3193
|
return new PropTypeError(
|
|
3216
3194
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
3217
3195
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
3218
|
-
'\nValid keys: ' +
|
|
3196
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
3219
3197
|
);
|
|
3220
3198
|
}
|
|
3221
3199
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
|
|
@@ -3400,7 +3378,6 @@ var factoryWithThrowingShims = function() {
|
|
|
3400
3378
|
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
3401
3379
|
var ReactPropTypes = {
|
|
3402
3380
|
array: shim,
|
|
3403
|
-
bigint: shim,
|
|
3404
3381
|
bool: shim,
|
|
3405
3382
|
func: shim,
|
|
3406
3383
|
number: shim,
|
|
@@ -3451,40 +3428,18 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
3451
3428
|
|
|
3452
3429
|
var PropTypes = propTypes.exports;
|
|
3453
3430
|
|
|
3454
|
-
function ownKeys(object, enumerableOnly) {
|
|
3455
|
-
var keys = Object.keys(object);
|
|
3456
|
-
|
|
3457
|
-
if (Object.getOwnPropertySymbols) {
|
|
3458
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
3459
|
-
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
3460
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
3461
|
-
})), keys.push.apply(keys, symbols);
|
|
3462
|
-
}
|
|
3463
|
-
|
|
3464
|
-
return keys;
|
|
3465
|
-
}
|
|
3466
|
-
|
|
3467
|
-
function _objectSpread2(target) {
|
|
3468
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
3469
|
-
var source = null != arguments[i] ? arguments[i] : {};
|
|
3470
|
-
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
3471
|
-
_defineProperty$1(target, key, source[key]);
|
|
3472
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
3473
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3474
|
-
});
|
|
3475
|
-
}
|
|
3476
|
-
|
|
3477
|
-
return target;
|
|
3478
|
-
}
|
|
3479
|
-
|
|
3480
3431
|
function _typeof$1(obj) {
|
|
3481
|
-
"
|
|
3432
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
3433
|
+
_typeof$1 = function (obj) {
|
|
3434
|
+
return typeof obj;
|
|
3435
|
+
};
|
|
3436
|
+
} else {
|
|
3437
|
+
_typeof$1 = function (obj) {
|
|
3438
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3439
|
+
};
|
|
3440
|
+
}
|
|
3482
3441
|
|
|
3483
|
-
return _typeof$1
|
|
3484
|
-
return typeof obj;
|
|
3485
|
-
} : function (obj) {
|
|
3486
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3487
|
-
}, _typeof$1(obj);
|
|
3442
|
+
return _typeof$1(obj);
|
|
3488
3443
|
}
|
|
3489
3444
|
|
|
3490
3445
|
function _defineProperty$1(obj, key, value) {
|
|
@@ -3502,6 +3457,40 @@ function _defineProperty$1(obj, key, value) {
|
|
|
3502
3457
|
return obj;
|
|
3503
3458
|
}
|
|
3504
3459
|
|
|
3460
|
+
function ownKeys(object, enumerableOnly) {
|
|
3461
|
+
var keys = Object.keys(object);
|
|
3462
|
+
|
|
3463
|
+
if (Object.getOwnPropertySymbols) {
|
|
3464
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
3465
|
+
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
|
3466
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
3467
|
+
});
|
|
3468
|
+
keys.push.apply(keys, symbols);
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
return keys;
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
function _objectSpread2(target) {
|
|
3475
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
3476
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
3477
|
+
|
|
3478
|
+
if (i % 2) {
|
|
3479
|
+
ownKeys(Object(source), true).forEach(function (key) {
|
|
3480
|
+
_defineProperty$1(target, key, source[key]);
|
|
3481
|
+
});
|
|
3482
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
|
3483
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3484
|
+
} else {
|
|
3485
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
3486
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3487
|
+
});
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
return target;
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3505
3494
|
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
3506
3495
|
if (source == null) return {};
|
|
3507
3496
|
var target = {};
|
|
@@ -3539,51 +3528,30 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
3539
3528
|
}
|
|
3540
3529
|
|
|
3541
3530
|
function _toConsumableArray(arr) {
|
|
3542
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) ||
|
|
3531
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
|
3543
3532
|
}
|
|
3544
3533
|
|
|
3545
3534
|
function _arrayWithoutHoles(arr) {
|
|
3546
|
-
if (Array.isArray(arr))
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
function _iterableToArray(iter) {
|
|
3550
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3551
|
-
}
|
|
3535
|
+
if (Array.isArray(arr)) {
|
|
3536
|
+
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
|
3552
3537
|
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
3556
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3557
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3558
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
3559
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
3538
|
+
return arr2;
|
|
3539
|
+
}
|
|
3560
3540
|
}
|
|
3561
3541
|
|
|
3562
|
-
function
|
|
3563
|
-
if (
|
|
3564
|
-
|
|
3565
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
3566
|
-
|
|
3567
|
-
return arr2;
|
|
3542
|
+
function _iterableToArray(iter) {
|
|
3543
|
+
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
3568
3544
|
}
|
|
3569
3545
|
|
|
3570
3546
|
function _nonIterableSpread() {
|
|
3571
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
3547
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
3572
3548
|
}
|
|
3573
3549
|
|
|
3574
3550
|
// Get CSS class list from a props object
|
|
3575
3551
|
function classList(props) {
|
|
3576
3552
|
var _classes;
|
|
3577
3553
|
|
|
3578
|
-
var
|
|
3579
|
-
fade = props.fade,
|
|
3580
|
-
beatFade = props.beatFade,
|
|
3581
|
-
bounce = props.bounce,
|
|
3582
|
-
shake = props.shake,
|
|
3583
|
-
flash = props.flash,
|
|
3584
|
-
spin = props.spin,
|
|
3585
|
-
spinPulse = props.spinPulse,
|
|
3586
|
-
spinReverse = props.spinReverse,
|
|
3554
|
+
var spin = props.spin,
|
|
3587
3555
|
pulse = props.pulse,
|
|
3588
3556
|
fixedWidth = props.fixedWidth,
|
|
3589
3557
|
inverse = props.inverse,
|
|
@@ -3595,15 +3563,7 @@ function classList(props) {
|
|
|
3595
3563
|
pull = props.pull; // map of CSS class names to properties
|
|
3596
3564
|
|
|
3597
3565
|
var classes = (_classes = {
|
|
3598
|
-
'fa-beat': beat,
|
|
3599
|
-
'fa-fade': fade,
|
|
3600
|
-
'fa-beat-fade': beatFade,
|
|
3601
|
-
'fa-bounce': bounce,
|
|
3602
|
-
'fa-shake': shake,
|
|
3603
|
-
'fa-flash': flash,
|
|
3604
3566
|
'fa-spin': spin,
|
|
3605
|
-
'fa-spin-reverse': spinReverse,
|
|
3606
|
-
'fa-spin-pulse': spinPulse,
|
|
3607
3567
|
'fa-pulse': pulse,
|
|
3608
3568
|
'fa-fw': fixedWidth,
|
|
3609
3569
|
'fa-inverse': inverse,
|
|
@@ -3644,8 +3604,6 @@ function camelize(string) {
|
|
|
3644
3604
|
return string.substr(0, 1).toLowerCase() + string.substr(1);
|
|
3645
3605
|
}
|
|
3646
3606
|
|
|
3647
|
-
var _excluded$1 = ["style"];
|
|
3648
|
-
|
|
3649
3607
|
function capitalize(val) {
|
|
3650
3608
|
return val.charAt(0).toUpperCase() + val.slice(1);
|
|
3651
3609
|
}
|
|
@@ -3705,12 +3663,12 @@ function convert(createElement, element) {
|
|
|
3705
3663
|
|
|
3706
3664
|
var _extraProps$style = extraProps.style,
|
|
3707
3665
|
existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
|
|
3708
|
-
remaining = _objectWithoutProperties(extraProps,
|
|
3666
|
+
remaining = _objectWithoutProperties(extraProps, ["style"]);
|
|
3709
3667
|
|
|
3710
|
-
mixins.attrs['style'] = _objectSpread2(
|
|
3668
|
+
mixins.attrs['style'] = _objectSpread2({}, mixins.attrs['style'], {}, existingStyle);
|
|
3711
3669
|
/* eslint-enable */
|
|
3712
3670
|
|
|
3713
|
-
return createElement.apply(void 0, [element.tag, _objectSpread2(
|
|
3671
|
+
return createElement.apply(void 0, [element.tag, _objectSpread2({}, mixins.attrs, {}, remaining)].concat(_toConsumableArray(children)));
|
|
3714
3672
|
}
|
|
3715
3673
|
|
|
3716
3674
|
var PRODUCTION = false;
|
|
@@ -3734,10 +3692,6 @@ function normalizeIconArgs(icon) {
|
|
|
3734
3692
|
return icon;
|
|
3735
3693
|
}
|
|
3736
3694
|
|
|
3737
|
-
if (parse.icon) {
|
|
3738
|
-
return parse.icon(icon);
|
|
3739
|
-
} // if the icon is null, there's nothing to do
|
|
3740
|
-
|
|
3741
3695
|
|
|
3742
3696
|
if (icon === null) {
|
|
3743
3697
|
return null;
|
|
@@ -3777,27 +3731,24 @@ function objectWithKey(key, value) {
|
|
|
3777
3731
|
return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty$1({}, key, value) : {};
|
|
3778
3732
|
}
|
|
3779
3733
|
|
|
3780
|
-
var _excluded = ["forwardedRef"];
|
|
3781
3734
|
function FontAwesomeIcon(_ref) {
|
|
3782
3735
|
var forwardedRef = _ref.forwardedRef,
|
|
3783
|
-
props = _objectWithoutProperties(_ref,
|
|
3736
|
+
props = _objectWithoutProperties(_ref, ["forwardedRef"]);
|
|
3784
3737
|
|
|
3785
3738
|
var iconArgs = props.icon,
|
|
3786
3739
|
maskArgs = props.mask,
|
|
3787
3740
|
symbol = props.symbol,
|
|
3788
3741
|
className = props.className,
|
|
3789
3742
|
title = props.title,
|
|
3790
|
-
titleId = props.titleId
|
|
3791
|
-
maskId = props.maskId;
|
|
3743
|
+
titleId = props.titleId;
|
|
3792
3744
|
var iconLookup = normalizeIconArgs(iconArgs);
|
|
3793
3745
|
var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
|
|
3794
3746
|
var transform = objectWithKey('transform', typeof props.transform === 'string' ? parse.transform(props.transform) : props.transform);
|
|
3795
3747
|
var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
|
|
3796
|
-
var renderedIcon = icon(iconLookup, _objectSpread2(
|
|
3748
|
+
var renderedIcon = icon(iconLookup, _objectSpread2({}, classes, {}, transform, {}, mask, {
|
|
3797
3749
|
symbol: symbol,
|
|
3798
3750
|
title: title,
|
|
3799
|
-
titleId: titleId
|
|
3800
|
-
maskId: maskId
|
|
3751
|
+
titleId: titleId
|
|
3801
3752
|
}));
|
|
3802
3753
|
|
|
3803
3754
|
if (!renderedIcon) {
|
|
@@ -3819,14 +3770,9 @@ function FontAwesomeIcon(_ref) {
|
|
|
3819
3770
|
}
|
|
3820
3771
|
FontAwesomeIcon.displayName = 'FontAwesomeIcon';
|
|
3821
3772
|
FontAwesomeIcon.propTypes = {
|
|
3822
|
-
beat: PropTypes.bool,
|
|
3823
3773
|
border: PropTypes.bool,
|
|
3824
|
-
bounce: PropTypes.bool,
|
|
3825
3774
|
className: PropTypes.string,
|
|
3826
|
-
fade: PropTypes.bool,
|
|
3827
|
-
flash: PropTypes.bool,
|
|
3828
3775
|
mask: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
|
|
3829
|
-
maskId: PropTypes.string,
|
|
3830
3776
|
fixedWidth: PropTypes.bool,
|
|
3831
3777
|
inverse: PropTypes.bool,
|
|
3832
3778
|
flip: PropTypes.oneOf(['horizontal', 'vertical', 'both']),
|
|
@@ -3835,14 +3781,10 @@ FontAwesomeIcon.propTypes = {
|
|
|
3835
3781
|
pull: PropTypes.oneOf(['right', 'left']),
|
|
3836
3782
|
pulse: PropTypes.bool,
|
|
3837
3783
|
rotation: PropTypes.oneOf([0, 90, 180, 270]),
|
|
3838
|
-
|
|
3839
|
-
size: PropTypes.oneOf(['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
|
|
3784
|
+
size: PropTypes.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
|
|
3840
3785
|
spin: PropTypes.bool,
|
|
3841
|
-
spinPulse: PropTypes.bool,
|
|
3842
|
-
spinReverse: PropTypes.bool,
|
|
3843
3786
|
symbol: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
3844
3787
|
title: PropTypes.string,
|
|
3845
|
-
titleId: PropTypes.string,
|
|
3846
3788
|
transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
3847
3789
|
swapOpacity: PropTypes.bool
|
|
3848
3790
|
};
|
|
@@ -3850,7 +3792,6 @@ FontAwesomeIcon.defaultProps = {
|
|
|
3850
3792
|
border: false,
|
|
3851
3793
|
className: '',
|
|
3852
3794
|
mask: null,
|
|
3853
|
-
maskId: null,
|
|
3854
3795
|
fixedWidth: false,
|
|
3855
3796
|
inverse: false,
|
|
3856
3797
|
flip: null,
|
|
@@ -3861,14 +3802,8 @@ FontAwesomeIcon.defaultProps = {
|
|
|
3861
3802
|
rotation: null,
|
|
3862
3803
|
size: null,
|
|
3863
3804
|
spin: false,
|
|
3864
|
-
beat: false,
|
|
3865
|
-
fade: false,
|
|
3866
|
-
beatFade: false,
|
|
3867
|
-
bounce: false,
|
|
3868
|
-
shake: false,
|
|
3869
3805
|
symbol: false,
|
|
3870
3806
|
title: '',
|
|
3871
|
-
titleId: null,
|
|
3872
3807
|
transform: null,
|
|
3873
3808
|
swapOpacity: false
|
|
3874
3809
|
};
|
|
@@ -3898,10 +3833,10 @@ var faExclamationTriangle = {
|
|
|
3898
3833
|
iconName: 'exclamation-triangle',
|
|
3899
3834
|
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"]
|
|
3900
3835
|
};
|
|
3901
|
-
var
|
|
3836
|
+
var faInfo = {
|
|
3902
3837
|
prefix: 'fas',
|
|
3903
|
-
iconName: 'info
|
|
3904
|
-
icon: [
|
|
3838
|
+
iconName: 'info',
|
|
3839
|
+
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"]
|
|
3905
3840
|
};
|
|
3906
3841
|
|
|
3907
3842
|
const SECONDARY_BLUE = '#38598a';
|
|
@@ -4034,7 +3969,8 @@ function _interopRequireDefault(obj) {
|
|
|
4034
3969
|
};
|
|
4035
3970
|
}
|
|
4036
3971
|
|
|
4037
|
-
module.exports = _interopRequireDefault
|
|
3972
|
+
module.exports = _interopRequireDefault;
|
|
3973
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
4038
3974
|
}(interopRequireDefault));
|
|
4039
3975
|
|
|
4040
3976
|
function _extends() {
|
|
@@ -8496,14 +8432,25 @@ var _typeof = {exports: {}};
|
|
|
8496
8432
|
function _typeof(obj) {
|
|
8497
8433
|
"@babel/helpers - typeof";
|
|
8498
8434
|
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8435
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
8436
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
8437
|
+
return typeof obj;
|
|
8438
|
+
};
|
|
8439
|
+
|
|
8440
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
8441
|
+
} else {
|
|
8442
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
8443
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
8444
|
+
};
|
|
8445
|
+
|
|
8446
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
8447
|
+
}
|
|
8448
|
+
|
|
8449
|
+
return _typeof(obj);
|
|
8504
8450
|
}
|
|
8505
8451
|
|
|
8506
|
-
module.exports = _typeof
|
|
8452
|
+
module.exports = _typeof;
|
|
8453
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
8507
8454
|
}(_typeof));
|
|
8508
8455
|
|
|
8509
8456
|
(function (module) {
|
|
@@ -8559,7 +8506,8 @@ function _interopRequireWildcard(obj, nodeInterop) {
|
|
|
8559
8506
|
return newObj;
|
|
8560
8507
|
}
|
|
8561
8508
|
|
|
8562
|
-
module.exports = _interopRequireWildcard
|
|
8509
|
+
module.exports = _interopRequireWildcard;
|
|
8510
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
8563
8511
|
}(interopRequireWildcard));
|
|
8564
8512
|
|
|
8565
8513
|
var _interopRequireDefault = interopRequireDefault.exports;
|
|
@@ -8804,7 +8752,7 @@ const InfoIcon = (React.createElement("div", { style: {
|
|
|
8804
8752
|
textAlign: 'center',
|
|
8805
8753
|
border: '1px solid #434a44',
|
|
8806
8754
|
} },
|
|
8807
|
-
React.createElement(FontAwesomeIcon, { icon:
|
|
8755
|
+
React.createElement(FontAwesomeIcon, { icon: faInfo, style: {
|
|
8808
8756
|
color: '#000',
|
|
8809
8757
|
marginBottom: '0.1em',
|
|
8810
8758
|
}, size: "sm" })));
|