@bcgov-sso/common-react-components 1.16.0 → 1.18.1

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.
@@ -8,6 +8,9 @@ export declare const styles: {
8
8
  danger: {
9
9
  container: string;
10
10
  };
11
+ info: {
12
+ container: string;
13
+ };
11
14
  success: {
12
15
  container: string;
13
16
  };
@@ -21,6 +21,12 @@ export declare const styles: {
21
21
  primary: {
22
22
  button: string;
23
23
  };
24
+ plainText: {
25
+ button: string;
26
+ };
27
+ danger: {
28
+ button: string;
29
+ };
24
30
  secondary: {
25
31
  button: string;
26
32
  };
package/dist/esm/index.js CHANGED
@@ -2654,6 +2654,8 @@ 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
+
2657
2659
  /**
2658
2660
  * Copyright (c) 2013-present, Facebook, Inc.
2659
2661
  *
@@ -2666,7 +2668,7 @@ var printWarning$1 = function() {};
2666
2668
  if (process.env.NODE_ENV !== 'production') {
2667
2669
  var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
2668
2670
  var loggedTypeFailures = {};
2669
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
2671
+ var has$1 = has$2;
2670
2672
 
2671
2673
  printWarning$1 = function(text) {
2672
2674
  var message = 'Warning: ' + text;
@@ -2678,7 +2680,7 @@ if (process.env.NODE_ENV !== 'production') {
2678
2680
  // This error was thrown as a convenience so that you can use this stack
2679
2681
  // to find the callsite that caused this warning to fire.
2680
2682
  throw new Error(message);
2681
- } catch (x) {}
2683
+ } catch (x) { /**/ }
2682
2684
  };
2683
2685
  }
2684
2686
 
@@ -2707,7 +2709,8 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
2707
2709
  if (typeof typeSpecs[typeSpecName] !== 'function') {
2708
2710
  var err = Error(
2709
2711
  (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
2710
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
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`.'
2711
2714
  );
2712
2715
  err.name = 'Invariant Violation';
2713
2716
  throw err;
@@ -2766,9 +2769,9 @@ var ReactIs$1 = reactIs$1.exports;
2766
2769
  var assign = objectAssign;
2767
2770
 
2768
2771
  var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
2772
+ var has = has$2;
2769
2773
  var checkPropTypes = checkPropTypes_1;
2770
2774
 
2771
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
2772
2775
  var printWarning = function() {};
2773
2776
 
2774
2777
  if (process.env.NODE_ENV !== 'production') {
@@ -2869,6 +2872,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
2869
2872
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
2870
2873
  var ReactPropTypes = {
2871
2874
  array: createPrimitiveTypeChecker('array'),
2875
+ bigint: createPrimitiveTypeChecker('bigint'),
2872
2876
  bool: createPrimitiveTypeChecker('boolean'),
2873
2877
  func: createPrimitiveTypeChecker('function'),
2874
2878
  number: createPrimitiveTypeChecker('number'),
@@ -2914,8 +2918,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
2914
2918
  * is prohibitively expensive if they are created too often, such as what
2915
2919
  * happens in oneOfType() for any type before the one that matched.
2916
2920
  */
2917
- function PropTypeError(message) {
2921
+ function PropTypeError(message, data) {
2918
2922
  this.message = message;
2923
+ this.data = data && typeof data === 'object' ? data: {};
2919
2924
  this.stack = '';
2920
2925
  }
2921
2926
  // Make `instanceof Error` still work for returned errors.
@@ -2950,7 +2955,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
2950
2955
  ) {
2951
2956
  printWarning(
2952
2957
  'You are manually calling a React.PropTypes validation ' +
2953
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
2958
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
2954
2959
  'and will throw in the standalone `prop-types` package. ' +
2955
2960
  'You may be seeing this warning due to a third-party PropTypes ' +
2956
2961
  'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
@@ -2989,7 +2994,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
2989
2994
  // 'of type `object`'.
2990
2995
  var preciseType = getPreciseType(propValue);
2991
2996
 
2992
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
2997
+ return new PropTypeError(
2998
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
2999
+ {expectedType: expectedType}
3000
+ );
2993
3001
  }
2994
3002
  return null;
2995
3003
  }
@@ -3133,14 +3141,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
3133
3141
  }
3134
3142
 
3135
3143
  function validate(props, propName, componentName, location, propFullName) {
3144
+ var expectedTypes = [];
3136
3145
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
3137
3146
  var checker = arrayOfTypeCheckers[i];
3138
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1) == null) {
3147
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
3148
+ if (checkerResult == null) {
3139
3149
  return null;
3140
3150
  }
3151
+ if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
3152
+ expectedTypes.push(checkerResult.data.expectedType);
3153
+ }
3141
3154
  }
3142
-
3143
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
3155
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
3156
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
3144
3157
  }
3145
3158
  return createChainableTypeChecker(validate);
3146
3159
  }
@@ -3155,6 +3168,13 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
3155
3168
  return createChainableTypeChecker(validate);
3156
3169
  }
3157
3170
 
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
+
3158
3178
  function createShapeTypeChecker(shapeTypes) {
3159
3179
  function validate(props, propName, componentName, location, propFullName) {
3160
3180
  var propValue = props[propName];
@@ -3164,8 +3184,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
3164
3184
  }
3165
3185
  for (var key in shapeTypes) {
3166
3186
  var checker = shapeTypes[key];
3167
- if (!checker) {
3168
- continue;
3187
+ if (typeof checker !== 'function') {
3188
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
3169
3189
  }
3170
3190
  var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
3171
3191
  if (error) {
@@ -3184,16 +3204,18 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
3184
3204
  if (propType !== 'object') {
3185
3205
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
3186
3206
  }
3187
- // We need to check all keys in case some are required but missing from
3188
- // props.
3207
+ // We need to check all keys in case some are required but missing from props.
3189
3208
  var allKeys = assign({}, props[propName], shapeTypes);
3190
3209
  for (var key in allKeys) {
3191
3210
  var checker = shapeTypes[key];
3211
+ if (has(shapeTypes, key) && typeof checker !== 'function') {
3212
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
3213
+ }
3192
3214
  if (!checker) {
3193
3215
  return new PropTypeError(
3194
3216
  'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
3195
3217
  '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
3196
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
3218
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
3197
3219
  );
3198
3220
  }
3199
3221
  var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
@@ -3378,6 +3400,7 @@ var factoryWithThrowingShims = function() {
3378
3400
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
3379
3401
  var ReactPropTypes = {
3380
3402
  array: shim,
3403
+ bigint: shim,
3381
3404
  bool: shim,
3382
3405
  func: shim,
3383
3406
  number: shim,
@@ -3428,18 +3451,40 @@ if (process.env.NODE_ENV !== 'production') {
3428
3451
 
3429
3452
  var PropTypes = propTypes.exports;
3430
3453
 
3431
- function _typeof$1(obj) {
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
- };
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
+ });
3440
3475
  }
3441
3476
 
3442
- return _typeof$1(obj);
3477
+ return target;
3478
+ }
3479
+
3480
+ function _typeof$1(obj) {
3481
+ "@babel/helpers - typeof";
3482
+
3483
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
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);
3443
3488
  }
3444
3489
 
3445
3490
  function _defineProperty$1(obj, key, value) {
@@ -3457,40 +3502,6 @@ function _defineProperty$1(obj, key, value) {
3457
3502
  return obj;
3458
3503
  }
3459
3504
 
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
-
3494
3505
  function _objectWithoutPropertiesLoose$1(source, excluded) {
3495
3506
  if (source == null) return {};
3496
3507
  var target = {};
@@ -3528,30 +3539,51 @@ function _objectWithoutProperties(source, excluded) {
3528
3539
  }
3529
3540
 
3530
3541
  function _toConsumableArray(arr) {
3531
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
3542
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
3532
3543
  }
3533
3544
 
3534
3545
  function _arrayWithoutHoles(arr) {
3535
- if (Array.isArray(arr)) {
3536
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
3537
-
3538
- return arr2;
3539
- }
3546
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
3540
3547
  }
3541
3548
 
3542
3549
  function _iterableToArray(iter) {
3543
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
3550
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
3551
+ }
3552
+
3553
+ function _unsupportedIterableToArray(o, minLen) {
3554
+ if (!o) return;
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);
3560
+ }
3561
+
3562
+ function _arrayLikeToArray(arr, len) {
3563
+ if (len == null || len > arr.length) len = arr.length;
3564
+
3565
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
3566
+
3567
+ return arr2;
3544
3568
  }
3545
3569
 
3546
3570
  function _nonIterableSpread() {
3547
- throw new TypeError("Invalid attempt to spread non-iterable instance");
3571
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3548
3572
  }
3549
3573
 
3550
3574
  // Get CSS class list from a props object
3551
3575
  function classList(props) {
3552
3576
  var _classes;
3553
3577
 
3554
- var spin = props.spin,
3578
+ var beat = props.beat,
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,
3555
3587
  pulse = props.pulse,
3556
3588
  fixedWidth = props.fixedWidth,
3557
3589
  inverse = props.inverse,
@@ -3563,7 +3595,15 @@ function classList(props) {
3563
3595
  pull = props.pull; // map of CSS class names to properties
3564
3596
 
3565
3597
  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,
3566
3604
  'fa-spin': spin,
3605
+ 'fa-spin-reverse': spinReverse,
3606
+ 'fa-spin-pulse': spinPulse,
3567
3607
  'fa-pulse': pulse,
3568
3608
  'fa-fw': fixedWidth,
3569
3609
  'fa-inverse': inverse,
@@ -3604,6 +3644,8 @@ function camelize(string) {
3604
3644
  return string.substr(0, 1).toLowerCase() + string.substr(1);
3605
3645
  }
3606
3646
 
3647
+ var _excluded$1 = ["style"];
3648
+
3607
3649
  function capitalize(val) {
3608
3650
  return val.charAt(0).toUpperCase() + val.slice(1);
3609
3651
  }
@@ -3663,12 +3705,12 @@ function convert(createElement, element) {
3663
3705
 
3664
3706
  var _extraProps$style = extraProps.style,
3665
3707
  existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
3666
- remaining = _objectWithoutProperties(extraProps, ["style"]);
3708
+ remaining = _objectWithoutProperties(extraProps, _excluded$1);
3667
3709
 
3668
- mixins.attrs['style'] = _objectSpread2({}, mixins.attrs['style'], {}, existingStyle);
3710
+ mixins.attrs['style'] = _objectSpread2(_objectSpread2({}, mixins.attrs['style']), existingStyle);
3669
3711
  /* eslint-enable */
3670
3712
 
3671
- return createElement.apply(void 0, [element.tag, _objectSpread2({}, mixins.attrs, {}, remaining)].concat(_toConsumableArray(children)));
3713
+ return createElement.apply(void 0, [element.tag, _objectSpread2(_objectSpread2({}, mixins.attrs), remaining)].concat(_toConsumableArray(children)));
3672
3714
  }
3673
3715
 
3674
3716
  var PRODUCTION = false;
@@ -3692,6 +3734,10 @@ function normalizeIconArgs(icon) {
3692
3734
  return icon;
3693
3735
  }
3694
3736
 
3737
+ if (parse.icon) {
3738
+ return parse.icon(icon);
3739
+ } // if the icon is null, there's nothing to do
3740
+
3695
3741
 
3696
3742
  if (icon === null) {
3697
3743
  return null;
@@ -3731,24 +3777,27 @@ function objectWithKey(key, value) {
3731
3777
  return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty$1({}, key, value) : {};
3732
3778
  }
3733
3779
 
3780
+ var _excluded = ["forwardedRef"];
3734
3781
  function FontAwesomeIcon(_ref) {
3735
3782
  var forwardedRef = _ref.forwardedRef,
3736
- props = _objectWithoutProperties(_ref, ["forwardedRef"]);
3783
+ props = _objectWithoutProperties(_ref, _excluded);
3737
3784
 
3738
3785
  var iconArgs = props.icon,
3739
3786
  maskArgs = props.mask,
3740
3787
  symbol = props.symbol,
3741
3788
  className = props.className,
3742
3789
  title = props.title,
3743
- titleId = props.titleId;
3790
+ titleId = props.titleId,
3791
+ maskId = props.maskId;
3744
3792
  var iconLookup = normalizeIconArgs(iconArgs);
3745
3793
  var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
3746
3794
  var transform = objectWithKey('transform', typeof props.transform === 'string' ? parse.transform(props.transform) : props.transform);
3747
3795
  var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
3748
- var renderedIcon = icon(iconLookup, _objectSpread2({}, classes, {}, transform, {}, mask, {
3796
+ var renderedIcon = icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, {
3749
3797
  symbol: symbol,
3750
3798
  title: title,
3751
- titleId: titleId
3799
+ titleId: titleId,
3800
+ maskId: maskId
3752
3801
  }));
3753
3802
 
3754
3803
  if (!renderedIcon) {
@@ -3770,9 +3819,14 @@ function FontAwesomeIcon(_ref) {
3770
3819
  }
3771
3820
  FontAwesomeIcon.displayName = 'FontAwesomeIcon';
3772
3821
  FontAwesomeIcon.propTypes = {
3822
+ beat: PropTypes.bool,
3773
3823
  border: PropTypes.bool,
3824
+ bounce: PropTypes.bool,
3774
3825
  className: PropTypes.string,
3826
+ fade: PropTypes.bool,
3827
+ flash: PropTypes.bool,
3775
3828
  mask: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
3829
+ maskId: PropTypes.string,
3776
3830
  fixedWidth: PropTypes.bool,
3777
3831
  inverse: PropTypes.bool,
3778
3832
  flip: PropTypes.oneOf(['horizontal', 'vertical', 'both']),
@@ -3781,10 +3835,14 @@ FontAwesomeIcon.propTypes = {
3781
3835
  pull: PropTypes.oneOf(['right', 'left']),
3782
3836
  pulse: PropTypes.bool,
3783
3837
  rotation: PropTypes.oneOf([0, 90, 180, 270]),
3784
- size: PropTypes.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
3838
+ shake: PropTypes.bool,
3839
+ size: PropTypes.oneOf(['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
3785
3840
  spin: PropTypes.bool,
3841
+ spinPulse: PropTypes.bool,
3842
+ spinReverse: PropTypes.bool,
3786
3843
  symbol: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
3787
3844
  title: PropTypes.string,
3845
+ titleId: PropTypes.string,
3788
3846
  transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
3789
3847
  swapOpacity: PropTypes.bool
3790
3848
  };
@@ -3792,6 +3850,7 @@ FontAwesomeIcon.defaultProps = {
3792
3850
  border: false,
3793
3851
  className: '',
3794
3852
  mask: null,
3853
+ maskId: null,
3795
3854
  fixedWidth: false,
3796
3855
  inverse: false,
3797
3856
  flip: null,
@@ -3802,8 +3861,14 @@ FontAwesomeIcon.defaultProps = {
3802
3861
  rotation: null,
3803
3862
  size: null,
3804
3863
  spin: false,
3864
+ beat: false,
3865
+ fade: false,
3866
+ beatFade: false,
3867
+ bounce: false,
3868
+ shake: false,
3805
3869
  symbol: false,
3806
3870
  title: '',
3871
+ titleId: null,
3807
3872
  transform: null,
3808
3873
  swapOpacity: false
3809
3874
  };
@@ -3833,6 +3898,11 @@ var faExclamationTriangle = {
3833
3898
  iconName: 'exclamation-triangle',
3834
3899
  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"]
3835
3900
  };
3901
+ var faInfoCircle = {
3902
+ prefix: 'fas',
3903
+ iconName: 'info-circle',
3904
+ icon: [512, 512, [], "f05a", "M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]
3905
+ };
3836
3906
 
3837
3907
  const SECONDARY_BLUE = '#38598a';
3838
3908
  const LANDING_HEADER_FONT = '22px';
@@ -8339,6 +8409,18 @@ const styles$1 = {
8339
8409
  button: `
8340
8410
  background-color: #1a4dff;
8341
8411
  color: #e8edff;
8412
+ `,
8413
+ },
8414
+ plainText: {
8415
+ button: `
8416
+ background-color: unset;
8417
+ color: #0139ff;
8418
+ `,
8419
+ },
8420
+ danger: {
8421
+ button: `
8422
+ background-color: #ff1c1c;
8423
+ color: white;
8342
8424
  `,
8343
8425
  },
8344
8426
  secondary: {
@@ -8670,6 +8752,11 @@ const styles = {
8670
8752
  danger: {
8671
8753
  container: `
8672
8754
  background-color: #EAC2C1;
8755
+ `,
8756
+ },
8757
+ info: {
8758
+ container: `
8759
+ background-color: #FFDD81;
8673
8760
  `,
8674
8761
  },
8675
8762
  success: {
@@ -8707,9 +8794,22 @@ const DangerIcon = (React.createElement("div", { style: {
8707
8794
  color: '#d94532',
8708
8795
  marginBottom: '0.1em',
8709
8796
  }, size: "sm" })));
8797
+ const InfoIcon = (React.createElement("div", { style: {
8798
+ backgroundColor: 'white',
8799
+ marginRight: '1em',
8800
+ borderRadius: '50%',
8801
+ height: '1.5em',
8802
+ width: '1.5em',
8803
+ display: 'inline-block',
8804
+ textAlign: 'center',
8805
+ border: '1px solid #434a44',
8806
+ } },
8807
+ React.createElement(FontAwesomeIcon, { icon: faInfoCircle, style: {
8808
+ color: '#000',
8809
+ marginBottom: '0.1em',
8810
+ }, size: "sm" })));
8710
8811
  const Alert = (props) => (React.createElement(DefaultAlert, Object.assign({}, props),
8711
- props.variant === 'success' && SuccessIcon,
8712
- props.variant === 'danger' && DangerIcon,
8812
+ props.variant === 'success' ? SuccessIcon : props.variant === 'danger' ? DangerIcon : InfoIcon,
8713
8813
  props.children,
8714
8814
  props.content,
8715
8815
  React.createElement(DefaultAlert.Close, null, "X")));