@innovaccer/design-system 2.21.0 → 2.22.0

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/css/dist/MaterialSymbolsRounded.woff2 +0 -0
  3. package/css/dist/index.css +101 -15
  4. package/css/dist/index.css.map +1 -1
  5. package/css/gulpfile.js +1 -1
  6. package/css/material-design-icons/iconfont/MaterialSymbolsRounded.woff2 +0 -0
  7. package/css/material-design-icons/iconfont/material-icons.css +9 -15
  8. package/css/src/components/selectionCard.css +91 -0
  9. package/dist/.lib/tsconfig.type.tsbuildinfo +138 -64
  10. package/dist/core/common.type.d.ts +1 -6
  11. package/dist/core/components/atoms/_chip/index.d.ts +2 -2
  12. package/dist/core/components/atoms/button/Button.d.ts +2 -2
  13. package/dist/core/components/atoms/chip/Chip.d.ts +2 -2
  14. package/dist/core/components/atoms/dropdown/Dropdown.d.ts +3 -0
  15. package/dist/core/components/atoms/dropdown/DropdownButton.d.ts +2 -2
  16. package/dist/core/components/atoms/dropdown/DropdownList.d.ts +8 -0
  17. package/dist/core/components/atoms/dropdown/ErrorTemplate.d.ts +9 -0
  18. package/dist/core/components/atoms/dropdown/option/index.d.ts +2 -2
  19. package/dist/core/components/atoms/icon/Icon.d.ts +0 -7
  20. package/dist/core/components/atoms/input/Input.d.ts +2 -2
  21. package/dist/core/components/atoms/input/actionButton/ActionButton.d.ts +2 -2
  22. package/dist/core/components/atoms/linkButton/LinkButton.d.ts +2 -2
  23. package/dist/core/components/atoms/metaList/Meta.d.ts +2 -2
  24. package/dist/core/components/atoms/metricInput/MetricInput.d.ts +2 -2
  25. package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +15 -15
  26. package/dist/core/components/atoms/selectionCard/SelectionCard.d.ts +23 -0
  27. package/dist/core/components/atoms/selectionCard/hooks/index.d.ts +2 -0
  28. package/dist/core/components/atoms/selectionCard/hooks/useMultiSelect.d.ts +6 -0
  29. package/dist/core/components/atoms/selectionCard/hooks/useSingleSelect.d.ts +6 -0
  30. package/dist/core/components/atoms/selectionCard/index.d.ts +2 -0
  31. package/dist/core/components/molecules/chipInput/ChipInput.d.ts +1 -1
  32. package/dist/core/components/molecules/tabs/Tabs.d.ts +2 -2
  33. package/dist/core/index.d.ts +1 -0
  34. package/dist/core/index.type.d.ts +1 -0
  35. package/dist/core/utils/navigationHelper.d.ts +2 -2
  36. package/dist/index.esm.js +355 -256
  37. package/dist/index.js +263 -181
  38. package/dist/index.js.map +1 -1
  39. package/dist/index.umd.js +1 -1
  40. package/dist/index.umd.js.br +0 -0
  41. package/dist/index.umd.js.gz +0 -0
  42. package/package.json +1 -1
  43. package/css/dist/MaterialSymbolsOutlined.ttf +0 -0
  44. package/css/dist/MaterialSymbolsRounded.ttf +0 -0
  45. package/css/material-design-icons/iconfont/MaterialSymbolsOutlined.ttf +0 -0
  46. package/css/material-design-icons/iconfont/MaterialSymbolsRounded.ttf +0 -0
  47. package/dist/core/components/atoms/icon/utils.d.ts +0 -7
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * Generated on: 1695030042653
3
+ * Generated on: 1695891565938
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.21.0
5
+ * Version: v2.22.0
6
6
  * License: MIT
7
7
  * Docs: https://innovaccer.github.io/design-system
8
8
  */
@@ -1227,7 +1227,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
1227
1227
  })));
1228
1228
  };
1229
1229
 
1230
- var _excluded$D = ["size", "appearance", "iconAlign", "tabIndex", "largeIcon", "type", "children", "icon", "expanded", "selected", "loading", "disabled", "className", "tooltip", "iconVariations"];
1230
+ var _excluded$E = ["size", "appearance", "iconAlign", "tabIndex", "largeIcon", "type", "children", "icon", "expanded", "selected", "loading", "disabled", "className", "tooltip", "iconType"];
1231
1231
  var sizeMapping$3 = {
1232
1232
  tiny: 12,
1233
1233
  regular: 16,
@@ -1255,8 +1255,8 @@ var ButtonElement = /*#__PURE__*/React.forwardRef(function (props, ref) {
1255
1255
  disabled = props.disabled,
1256
1256
  className = props.className;
1257
1257
  props.tooltip;
1258
- var iconVariations = props.iconVariations,
1259
- rest = _objectWithoutProperties(props, _excluded$D);
1258
+ var iconType = props.iconType,
1259
+ rest = _objectWithoutProperties(props, _excluded$E);
1260
1260
 
1261
1261
  var buttonClass = classnames((_classNames = {}, _defineProperty$1(_classNames, 'Button', true), _defineProperty$1(_classNames, 'Button--expanded', expanded), _defineProperty$1(_classNames, "Button--".concat(size), size), _defineProperty$1(_classNames, "Button--".concat(size, "Square"), !children), _defineProperty$1(_classNames, "Button--".concat(appearance), appearance), _defineProperty$1(_classNames, 'Button--selected', selected && (appearance === 'basic' || appearance === 'transparent')), _defineProperty$1(_classNames, "Button--iconAlign-".concat(iconAlign), children && iconAlign), _defineProperty$1(_classNames, "".concat(className), className), _classNames));
1262
1262
  var iconClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'Button-icon', true), _defineProperty$1(_classNames2, "Button-icon--".concat(iconAlign), children && iconAlign), _classNames2));
@@ -1279,7 +1279,7 @@ var ButtonElement = /*#__PURE__*/React.forwardRef(function (props, ref) {
1279
1279
  }, /*#__PURE__*/React.createElement(Icon, {
1280
1280
  "data-test": "DesignSystem-Button--Icon",
1281
1281
  name: icon,
1282
- variations: iconVariations,
1282
+ type: iconType,
1283
1283
  size: largeIcon && !children ? sizeMapping$3[size] + 4 : sizeMapping$3[size]
1284
1284
  })), children && /*#__PURE__*/React.createElement("span", {
1285
1285
  className: "Button-text"
@@ -2565,7 +2565,7 @@ _defineProperty$1(Calendar, "defaultProps", {
2565
2565
  jumpView: true
2566
2566
  });
2567
2567
 
2568
- var _excluded$C = ["shadow", "children", "className"];
2568
+ var _excluded$D = ["shadow", "children", "className"];
2569
2569
  var Card = /*#__PURE__*/React.forwardRef(function (props, ref) {
2570
2570
  var _classNames;
2571
2571
 
@@ -2573,7 +2573,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (props, ref) {
2573
2573
  shadow = _props$shadow === void 0 ? 'shadow10' : _props$shadow,
2574
2574
  children = props.children,
2575
2575
  className = props.className,
2576
- rest = _objectWithoutProperties(props, _excluded$C);
2576
+ rest = _objectWithoutProperties(props, _excluded$D);
2577
2577
 
2578
2578
  var classes = classnames((_classNames = {
2579
2579
  Card: true
@@ -2590,12 +2590,12 @@ Card.defaultProps = {
2590
2590
  shadow: 'shadow10'
2591
2591
  };
2592
2592
 
2593
- var _excluded$B = ["border", "children", "className"];
2593
+ var _excluded$C = ["border", "children", "className"];
2594
2594
  var CardSubdued = /*#__PURE__*/React.forwardRef(function (props, ref) {
2595
2595
  var border = props.border,
2596
2596
  children = props.children,
2597
2597
  className = props.className,
2598
- rest = _objectWithoutProperties(props, _excluded$B);
2598
+ rest = _objectWithoutProperties(props, _excluded$C);
2599
2599
 
2600
2600
  var classes = classnames(_defineProperty$1({
2601
2601
  CardSubdued: true
@@ -2662,7 +2662,7 @@ var isSpaceKey = function isSpaceKey(e) {
2662
2662
  return e.key === 'Space';
2663
2663
  };
2664
2664
 
2665
- var _excluded$A = ["onClick", "onKeyDown", "role", "tabIndex"];
2665
+ var _excluded$B = ["onClick", "onKeyDown", "role", "tabIndex"];
2666
2666
  var allowed = {
2667
2667
  button: new Set(['Enter', 'Space', 'Spacebar', ' ']),
2668
2668
  link: new Set(['Enter']),
@@ -2686,7 +2686,7 @@ var useAccessibilityProps = function useAccessibilityProps(_ref) {
2686
2686
  _ref$role = _ref.role,
2687
2687
  role = _ref$role === void 0 ? 'button' : _ref$role,
2688
2688
  tabIndex = _ref.tabIndex,
2689
- rest = _objectWithoutProperties(_ref, _excluded$A);
2689
+ rest = _objectWithoutProperties(_ref, _excluded$B);
2690
2690
 
2691
2691
  return _objectSpread2({}, onClick ? {
2692
2692
  onClick: onClick,
@@ -2716,116 +2716,6 @@ var useAccessibilityProps = function useAccessibilityProps(_ref) {
2716
2716
  });
2717
2717
  };
2718
2718
 
2719
- var getOpticalSize = function getOpticalSize(size) {
2720
- if (size && size <= 20) {
2721
- return 20;
2722
- } else if (size && size >= 48) {
2723
- return 48;
2724
- }
2725
-
2726
- return size;
2727
- };
2728
-
2729
- var iconVariantMapper = {
2730
- more_horiz: {
2731
- weight: 600,
2732
- opticalSize: 24
2733
- },
2734
- "delete": {
2735
- fill: 0
2736
- },
2737
- radio_button_checked: {
2738
- fill: 0
2739
- },
2740
- radio_button_unchecked: {
2741
- fill: 0
2742
- },
2743
- schedule: {
2744
- fill: 0
2745
- },
2746
- help_outline: {
2747
- fill: 0
2748
- },
2749
- check_circle_outline: {
2750
- fill: 0
2751
- },
2752
- highlight_of: {
2753
- fill: 0
2754
- },
2755
- credit_card: {
2756
- fill: 0
2757
- },
2758
- delete_outline: {
2759
- fill: 0
2760
- },
2761
- bookmark_border: {
2762
- fill: 0
2763
- },
2764
- work_outline: {
2765
- fill: 0
2766
- },
2767
- alarm: {
2768
- fill: 0
2769
- },
2770
- arrow_circle_up: {
2771
- fill: 0
2772
- },
2773
- copyright: {
2774
- fill: 0
2775
- },
2776
- query_builder: {
2777
- fill: 0
2778
- },
2779
- card_membership: {
2780
- fill: 0
2781
- },
2782
- arrow_circle_down: {
2783
- fill: 0
2784
- },
2785
- change_history: {
2786
- fill: 0
2787
- },
2788
- aspect_ratio: {
2789
- fill: 0
2790
- },
2791
- calendar_view_month: {
2792
- fill: 0
2793
- },
2794
- alarm_on: {
2795
- fill: 0
2796
- },
2797
- thumb_down_off_alt: {
2798
- fill: 0
2799
- },
2800
- important_devices: {
2801
- fill: 0
2802
- },
2803
- turned_in_not: {
2804
- fill: 0
2805
- },
2806
- add_circle_outline: {
2807
- fill: 0
2808
- },
2809
- speed: {
2810
- fill: 0
2811
- },
2812
- content_copy: {
2813
- fill: 0
2814
- },
2815
- timelapse: {
2816
- fill: 0
2817
- }
2818
- };
2819
- var getFontVariation = function getFontVariation(iconName, variations, type, size) {
2820
- var defaultVariant = {
2821
- fill: type === 'outlined' ? 0 : 1,
2822
- weight: 400,
2823
- grade: 0,
2824
- opticalSize: getOpticalSize(size)
2825
- };
2826
- return _objectSpread2(_objectSpread2(_objectSpread2({}, defaultVariant), iconVariantMapper[iconName]), variations);
2827
- };
2828
-
2829
2719
  var Icon = function Icon(props) {
2830
2720
  var _classNames;
2831
2721
 
@@ -2833,8 +2723,7 @@ var Icon = function Icon(props) {
2833
2723
  className = props.className,
2834
2724
  name = props.name,
2835
2725
  size = props.size,
2836
- children = props.children,
2837
- variations = props.variations;
2726
+ children = props.children;
2838
2727
  var accessibilityProps = useAccessibilityProps(props);
2839
2728
  var baseProps = extractBaseProps(props);
2840
2729
  var mapper = {
@@ -2853,17 +2742,9 @@ var Icon = function Icon(props) {
2853
2742
 
2854
2743
  var color = appearance && appearance.includes('_') ? getIconAppearance(appearance) : appearance;
2855
2744
  var iconClass = classnames((_classNames = {}, _defineProperty$1(_classNames, 'material-icons', true), _defineProperty$1(_classNames, 'material-icons-rounded', type === 'rounded'), _defineProperty$1(_classNames, 'material-icons-outlined', type === 'outlined'), _defineProperty$1(_classNames, 'Icon', true), _defineProperty$1(_classNames, "Icon--".concat(color), appearance), _defineProperty$1(_classNames, "".concat(className), className), _classNames));
2856
-
2857
- var _getFontVariation = getFontVariation(name, variations, type, size),
2858
- fill = _getFontVariation.fill,
2859
- grade = _getFontVariation.grade,
2860
- opticalSize = _getFontVariation.opticalSize,
2861
- weight = _getFontVariation.weight;
2862
-
2863
2745
  var styles = {
2864
2746
  fontSize: "".concat(size, "px"),
2865
- width: "".concat(size, "px"),
2866
- 'font-variation-settings': "\"FILL\" ".concat(fill, ", \"wght\" ").concat(weight, ", \"GRAD\" ").concat(grade, ", \"opsz\" ").concat(opticalSize)
2747
+ width: "".concat(size, "px")
2867
2748
  }; // change `children` to {name} after migration
2868
2749
 
2869
2750
  if (children && /*#__PURE__*/React.isValidElement(children)) {
@@ -2885,21 +2766,21 @@ Icon.defaultProps = {
2885
2766
  type: 'rounded'
2886
2767
  };
2887
2768
 
2888
- var _excluded$z = ["children", "componentType", "className"];
2769
+ var _excluded$A = ["children", "componentType", "className"];
2889
2770
 
2890
2771
  var GenericText = function GenericText(_ref) {
2891
2772
  var children = _ref.children,
2892
2773
  _ref$componentType = _ref.componentType,
2893
2774
  componentType = _ref$componentType === void 0 ? 'span' : _ref$componentType,
2894
2775
  className = _ref.className,
2895
- props = _objectWithoutProperties(_ref, _excluded$z);
2776
+ props = _objectWithoutProperties(_ref, _excluded$A);
2896
2777
 
2897
2778
  return /*#__PURE__*/React.createElement(componentType, _objectSpread2(_objectSpread2({}, props), {}, {
2898
2779
  className: className
2899
2780
  }), children);
2900
2781
  };
2901
2782
 
2902
- var _excluded$y = ["appearance", "size", "children", "weight", "small", "className", "color"];
2783
+ var _excluded$z = ["appearance", "size", "children", "weight", "small", "className", "color"];
2903
2784
  var Text = function Text(props) {
2904
2785
  var _classNames;
2905
2786
 
@@ -2910,7 +2791,7 @@ var Text = function Text(props) {
2910
2791
  small = props.small,
2911
2792
  className = props.className,
2912
2793
  color = props.color,
2913
- rest = _objectWithoutProperties(props, _excluded$y);
2794
+ rest = _objectWithoutProperties(props, _excluded$z);
2914
2795
 
2915
2796
  var classes = classnames((_classNames = {
2916
2797
  Text: true
@@ -2940,7 +2821,7 @@ var GenericChip = function GenericChip(props) {
2940
2821
  onClose = props.onClose,
2941
2822
  onClick = props.onClick,
2942
2823
  labelPrefix = props.labelPrefix,
2943
- iconVariations = props.iconVariations;
2824
+ iconType = props.iconType;
2944
2825
  var baseProps = extractBaseProps(props);
2945
2826
 
2946
2827
  var iconClass = function iconClass(align) {
@@ -3003,7 +2884,7 @@ var GenericChip = function GenericChip(props) {
3003
2884
  }), icon && /*#__PURE__*/React.createElement(Icon, {
3004
2885
  "data-test": "DesignSystem-GenericChip--Icon",
3005
2886
  name: icon,
3006
- variations: iconVariations,
2887
+ type: iconType,
3007
2888
  appearance: iconAppearance('left'),
3008
2889
  className: iconClass('left')
3009
2890
  }), renderLabel(), clearButton && /*#__PURE__*/React.createElement("div", {
@@ -3036,7 +2917,7 @@ var Chip = function Chip(props) {
3036
2917
  name = props.name,
3037
2918
  className = props.className,
3038
2919
  labelPrefix = props.labelPrefix,
3039
- iconVariations = props.iconVariations;
2920
+ iconType = props.iconType;
3040
2921
  var baseProps = extractBaseProps(props);
3041
2922
 
3042
2923
  var onCloseHandler = function onCloseHandler() {
@@ -3058,7 +2939,7 @@ var Chip = function Chip(props) {
3058
2939
  label: label,
3059
2940
  selected: select,
3060
2941
  icon: icon,
3061
- iconVariations: iconVariations,
2942
+ iconType: iconType,
3062
2943
  clearButton: clearbutton,
3063
2944
  disabled: disabled,
3064
2945
  className: chipClass,
@@ -3102,7 +2983,7 @@ var ChipGroup = function ChipGroup(props) {
3102
2983
  selected = item.selected,
3103
2984
  clearButton = item.clearButton,
3104
2985
  name = item.name,
3105
- iconVariations = item.iconVariations;
2986
+ iconType = item.iconType;
3106
2987
  return /*#__PURE__*/React.createElement("span", {
3107
2988
  key: ind,
3108
2989
  className: "ChipGroup-item"
@@ -3114,7 +2995,7 @@ var ChipGroup = function ChipGroup(props) {
3114
2995
  icon: icon,
3115
2996
  disabled: disabled,
3116
2997
  clearButton: clearButton,
3117
- iconVariations: iconVariations,
2998
+ iconType: iconType,
3118
2999
  type: type,
3119
3000
  onClick: function onClick() {
3120
3001
  return onClickHandler(item);
@@ -3197,7 +3078,7 @@ var CheckboxIcon = function CheckboxIcon(props) {
3197
3078
  }
3198
3079
  };
3199
3080
 
3200
- var _excluded$x = ["size", "tabIndex", "defaultChecked", "indeterminate", "label", "error", "disabled", "onChange", "name", "value", "className", "checked", "helpText", "id"];
3081
+ var _excluded$y = ["size", "tabIndex", "defaultChecked", "indeterminate", "label", "error", "disabled", "onChange", "name", "value", "className", "checked", "helpText", "id"];
3201
3082
  var Checkbox = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
3202
3083
  var _classNames, _classNames2, _classNames3, _classNames4, _classNames5, _classNames6;
3203
3084
 
@@ -3218,7 +3099,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
3218
3099
  helpText = props.helpText,
3219
3100
  _props$id = props.id,
3220
3101
  id = _props$id === void 0 ? "".concat(name, "-").concat(label, "-").concat(uidGenerator()) : _props$id,
3221
- rest = _objectWithoutProperties(props, _excluded$x);
3102
+ rest = _objectWithoutProperties(props, _excluded$y);
3222
3103
 
3223
3104
  var ref = React.useRef(null);
3224
3105
  React.useImperativeHandle(forwardedRef, function () {
@@ -3299,7 +3180,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
3299
3180
  });
3300
3181
  Checkbox.displayName = 'Checkbox';
3301
3182
 
3302
- var _excluded$w = ["size", "sizeXS", "sizeS", "sizeM", "sizeL", "sizeXL", "className", "children"];
3183
+ var _excluded$x = ["size", "sizeXS", "sizeS", "sizeM", "sizeL", "sizeXL", "className", "children"];
3303
3184
  var Column = /*#__PURE__*/React.forwardRef(function (props, ref) {
3304
3185
  var _classNames;
3305
3186
 
@@ -3311,7 +3192,7 @@ var Column = /*#__PURE__*/React.forwardRef(function (props, ref) {
3311
3192
  sizeXL = props.sizeXL,
3312
3193
  className = props.className,
3313
3194
  children = props.children,
3314
- rest = _objectWithoutProperties(props, _excluded$w);
3195
+ rest = _objectWithoutProperties(props, _excluded$x);
3315
3196
 
3316
3197
  var classes = classnames((_classNames = {}, _defineProperty$1(_classNames, 'Col', true), _defineProperty$1(_classNames, "Col--".concat(size), size), _defineProperty$1(_classNames, "Col--xs-".concat(sizeXS), sizeXS), _defineProperty$1(_classNames, "Col--s-".concat(sizeS), sizeS), _defineProperty$1(_classNames, "Col--m-".concat(sizeM), sizeM), _defineProperty$1(_classNames, "Col--l-".concat(sizeL), sizeL), _defineProperty$1(_classNames, "Col--xl-".concat(sizeXL), sizeXL), _defineProperty$1(_classNames, "".concat(className), className), _classNames));
3317
3198
  return /*#__PURE__*/React.createElement("div", _extends$2({
@@ -3422,7 +3303,7 @@ var Trigger$1 = function Trigger(props) {
3422
3303
  }));
3423
3304
  };
3424
3305
 
3425
- var _excluded$v = ["date", "open", "position", "inputFormat", "outputFormat", "inputOptions", "validators", "withInput", "disabledBefore", "disabledAfter", "onDateChange", "closeOnSelect", "size", "showTodayDate", "children", "view"];
3306
+ var _excluded$w = ["date", "open", "position", "inputFormat", "outputFormat", "inputOptions", "validators", "withInput", "disabledBefore", "disabledAfter", "onDateChange", "closeOnSelect", "size", "showTodayDate", "children", "view"];
3426
3307
  var DatePicker = /*#__PURE__*/function (_React$Component) {
3427
3308
  _inherits(DatePicker, _React$Component);
3428
3309
 
@@ -3565,7 +3446,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
3565
3446
  _this$props4$children = _this$props4.children,
3566
3447
  children = _this$props4$children === void 0 ? /*#__PURE__*/React.createElement(React.Fragment, null) : _this$props4$children,
3567
3448
  view = _this$props4.view,
3568
- rest = _objectWithoutProperties(_this$props4, _excluded$v);
3449
+ rest = _objectWithoutProperties(_this$props4, _excluded$w);
3569
3450
 
3570
3451
  var date = this.state.date;
3571
3452
  var months = config.months;
@@ -4629,7 +4510,7 @@ function debounce$1 (delay, atBegin, callback) {
4629
4510
  return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
4630
4511
  }
4631
4512
 
4632
- var _excluded$u = ["triggerSize", "placeholder", "menu", "children", "icon", "disabled", "open", "inlineLabel", "error", "iconVariations"];
4513
+ var _excluded$v = ["triggerSize", "placeholder", "menu", "children", "icon", "disabled", "open", "inlineLabel", "error", "iconType"];
4633
4514
  var DropdownButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
4634
4515
  var _classNames, _classNames2;
4635
4516
 
@@ -4645,8 +4526,8 @@ var DropdownButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
4645
4526
  open = props.open,
4646
4527
  inlineLabel = props.inlineLabel,
4647
4528
  error = props.error,
4648
- iconVariations = props.iconVariations,
4649
- rest = _objectWithoutProperties(props, _excluded$u);
4529
+ iconType = props.iconType,
4530
+ rest = _objectWithoutProperties(props, _excluded$v);
4650
4531
 
4651
4532
  var buttonDisabled = disabled ? 'disabled' : 'default';
4652
4533
  var trimmedPlaceholder = placeholder.trim();
@@ -4671,13 +4552,13 @@ var DropdownButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
4671
4552
  appearance: buttonDisabled,
4672
4553
  className: "d-flex align-items-center mr-4",
4673
4554
  name: icon,
4674
- variations: iconVariations
4555
+ type: iconType
4675
4556
  }), value && /*#__PURE__*/React.createElement("span", {
4676
4557
  className: textClass
4677
4558
  }, value)), /*#__PURE__*/React.createElement(Icon, {
4678
4559
  appearance: buttonDisabled,
4679
4560
  name: iconName,
4680
- variations: iconVariations
4561
+ type: iconType
4681
4562
  }));
4682
4563
  });
4683
4564
  DropdownButton.displayName = 'DropdownButton';
@@ -4816,7 +4697,7 @@ var IconOption = function IconOption(props) {
4816
4697
  var label = optionData.label,
4817
4698
  icon = optionData.icon,
4818
4699
  disabled = optionData.disabled,
4819
- iconVariations = optionData.iconVariations;
4700
+ iconType = optionData.iconType;
4820
4701
  var OptionClass = classnames((_classNames = {}, _defineProperty$1(_classNames, "".concat(className), true), _defineProperty$1(_classNames, 'Option--icon', icon), _classNames));
4821
4702
  return (
4822
4703
  /*#__PURE__*/
@@ -4833,7 +4714,7 @@ var IconOption = function IconOption(props) {
4833
4714
  className: "Option-icon mr-4",
4834
4715
  "data-test": "".concat(dataTest, "--Icon"),
4835
4716
  name: icon,
4836
- variations: iconVariations
4717
+ type: iconType
4837
4718
  }), /*#__PURE__*/React.createElement("div", {
4838
4719
  className: 'Option-label'
4839
4720
  }, /*#__PURE__*/React.createElement(Text, {
@@ -5134,6 +5015,47 @@ var Loading = function Loading(props) {
5134
5015
  return null;
5135
5016
  };
5136
5017
 
5018
+ var errorTitle = {
5019
+ FAILED_TO_FETCH: 'Failed to fetch data',
5020
+ NO_RECORDS_FOUND: 'No results found',
5021
+ DEFAULT: 'No record available'
5022
+ };
5023
+ var errorDescription = {
5024
+ FAILED_TO_FETCH: "We couldn't load the data, try reloading.",
5025
+ NO_RECORDS_FOUND: 'Try modifying your search to find what you are looking for.',
5026
+ DEFAULT: 'We have nothing to show you at the moment.'
5027
+ };
5028
+ var ErrorTemplate = function ErrorTemplate(_ref) {
5029
+ var dropdownStyle = _ref.dropdownStyle,
5030
+ errorType = _ref.errorType,
5031
+ updateOptions = _ref.updateOptions;
5032
+ return /*#__PURE__*/React.createElement("div", {
5033
+ className: "Dropdown-wrapper px-7 d-flex",
5034
+ style: dropdownStyle,
5035
+ "data-test": "DesignSystem-Dropdown--wrapper"
5036
+ }, /*#__PURE__*/React.createElement("div", {
5037
+ className: "d-flex flex-column justify-content-center align-items-center",
5038
+ "data-test": "DesignSystem-Dropdown--errorWrapper"
5039
+ }, /*#__PURE__*/React.createElement(Text, {
5040
+ className: "mb-3",
5041
+ weight: "strong"
5042
+ }, errorTitle[errorType]), /*#__PURE__*/React.createElement(Text, {
5043
+ className: "text-align-center mb-6",
5044
+ weight: "medium",
5045
+ size: "small",
5046
+ appearance: "subtle"
5047
+ }, errorDescription[errorType]), errorType === 'FAILED_TO_FETCH' && /*#__PURE__*/React.createElement(Button, {
5048
+ size: "tiny",
5049
+ largeIcon: true,
5050
+ "aria-label": "reload",
5051
+ icon: "refresh",
5052
+ iconAlign: "left",
5053
+ onClick: function onClick() {
5054
+ return updateOptions();
5055
+ }
5056
+ }, "Reload")));
5057
+ };
5058
+
5137
5059
  var alignmentMapping = {
5138
5060
  right: 'bottom-start',
5139
5061
  left: 'bottom-end'
@@ -5180,7 +5102,11 @@ var DropdownList = function DropdownList(props) {
5180
5102
  className = props.className,
5181
5103
  _props$searchPlacehol = props.searchPlaceholder,
5182
5104
  searchPlaceholder = _props$searchPlacehol === void 0 ? 'Search..' : _props$searchPlacehol,
5183
- scrollIndex = props.scrollIndex;
5105
+ scrollIndex = props.scrollIndex,
5106
+ updateOptions = props.updateOptions,
5107
+ noResultMessage = props.noResultMessage,
5108
+ errorType = props.errorType,
5109
+ loadingOptions = props.loadingOptions;
5184
5110
  var baseProps = extractBaseProps(props);
5185
5111
  var dropdownRef = /*#__PURE__*/React.createRef();
5186
5112
  var triggerRef = /*#__PURE__*/React.createRef();
@@ -5209,6 +5135,7 @@ var DropdownList = function DropdownList(props) {
5209
5135
  minHeight && setMinHeight(minHeight);
5210
5136
  };
5211
5137
 
5138
+ var isDropdownListBlank = listOptions.length === 0 && !loadingOptions && selected.length <= 0;
5212
5139
  React.useEffect(function () {
5213
5140
  var timer;
5214
5141
 
@@ -5251,7 +5178,7 @@ var DropdownList = function DropdownList(props) {
5251
5178
  disabled = props.disabled,
5252
5179
  inlineLabel = props.inlineLabel,
5253
5180
  triggerLabel = props.triggerLabel,
5254
- iconVariations = props.iconVariations;
5181
+ iconType = props.iconType;
5255
5182
  var CustomTrigger = customTrigger ? customTrigger(triggerLabel ? triggerLabel : placeholder) : /*#__PURE__*/React.createElement(React.Fragment, null);
5256
5183
  var NewCustomTrigger = /*#__PURE__*/React.cloneElement(CustomTrigger, {
5257
5184
  tabIndex: 0,
@@ -5267,7 +5194,7 @@ var DropdownList = function DropdownList(props) {
5267
5194
  menu: menu,
5268
5195
  error: error,
5269
5196
  ref: dropdownTriggerRef,
5270
- iconVariations: iconVariations
5197
+ iconType: iconType
5271
5198
  }, triggerLabel);
5272
5199
  var dropdownStyle = {
5273
5200
  maxHeight: maxHeight,
@@ -5282,6 +5209,16 @@ var DropdownList = function DropdownList(props) {
5282
5209
  minHeight: minHeight
5283
5210
  };
5284
5211
 
5212
+ var defaultErrorTemplate = function defaultErrorTemplate() {
5213
+ return /*#__PURE__*/React.createElement(ErrorTemplate, {
5214
+ dropdownStyle: _objectSpread2(_objectSpread2({}, dropdownStyle), {}, {
5215
+ minHeight: maxHeight
5216
+ }),
5217
+ updateOptions: updateOptions,
5218
+ errorType: errorType
5219
+ });
5220
+ };
5221
+
5285
5222
  var getDropdownSectionClass = function getDropdownSectionClass(showClearButton) {
5286
5223
  var _classNames;
5287
5224
 
@@ -5494,7 +5431,8 @@ var DropdownList = function DropdownList(props) {
5494
5431
  allItemsSectionLabel = _props$allItemsSectio === void 0 ? 'All Items' : _props$allItemsSectio,
5495
5432
  _props$loadersCount = props.loadersCount,
5496
5433
  loadersCount = _props$loadersCount === void 0 ? 10 : _props$loadersCount,
5497
- loadingOptions = props.loadingOptions;
5434
+ _props$errorTemplate = props.errorTemplate,
5435
+ errorTemplate = _props$errorTemplate === void 0 ? defaultErrorTemplate : _props$errorTemplate;
5498
5436
 
5499
5437
  var selectAllPresent = _isSelectAllPresent(searchTerm, remainingOptions, withSelectAll, withCheckbox);
5500
5438
 
@@ -5509,18 +5447,22 @@ var DropdownList = function DropdownList(props) {
5509
5447
  }, renderLoading(loadersCount)));
5510
5448
  }
5511
5449
 
5512
- if (listOptions.length === 0 && !loadingOptions && selected.length <= 0) {
5513
- var _props$noResultMessag = props.noResultMessage,
5514
- noResultMessage = _props$noResultMessag === void 0 ? 'No result found' : _props$noResultMessag;
5515
- return /*#__PURE__*/React.createElement("div", {
5516
- className: "Dropdown-wrapper",
5517
- style: dropdownStyle,
5518
- "data-test": "DesignSystem-Dropdown--errorWrapper"
5519
- }, /*#__PURE__*/React.createElement("div", {
5520
- className: 'Option'
5521
- }, /*#__PURE__*/React.createElement("div", {
5522
- className: 'Option-subinfo'
5523
- }, noResultMessage)));
5450
+ if (isDropdownListBlank) {
5451
+ if (noResultMessage) {
5452
+ return /*#__PURE__*/React.createElement("div", {
5453
+ className: "Dropdown-wrapper",
5454
+ style: dropdownStyle,
5455
+ "data-test": "DesignSystem-Dropdown--errorWrapper"
5456
+ }, /*#__PURE__*/React.createElement("div", {
5457
+ className: 'Option'
5458
+ }, /*#__PURE__*/React.createElement("div", {
5459
+ className: 'Option-subinfo'
5460
+ }, noResultMessage)));
5461
+ } else {
5462
+ return errorTemplate && errorTemplate({
5463
+ errorType: errorType
5464
+ });
5465
+ }
5524
5466
  }
5525
5467
 
5526
5468
  return /*#__PURE__*/React.createElement("div", {
@@ -5634,6 +5576,7 @@ var DropdownList = function DropdownList(props) {
5634
5576
  }
5635
5577
  };
5636
5578
 
5579
+ var enableSearch = (withSearch || props.async) && (!isDropdownListBlank || errorType === 'NO_RECORDS_FOUND');
5637
5580
  return (
5638
5581
  /*#__PURE__*/
5639
5582
  //TODO(a11y)
@@ -5651,13 +5594,13 @@ var DropdownList = function DropdownList(props) {
5651
5594
  position: alignmentMapping[align]
5652
5595
  }, popoverOptions, {
5653
5596
  "data-test": "DesignSystem-Dropdown--Popover"
5654
- }), (withSearch || props.async) && renderSearch(), renderDropdownSection(), showApplyButton && withCheckbox && renderApplyButton()))
5597
+ }), enableSearch && renderSearch(), renderDropdownSection(), showApplyButton && withCheckbox && renderApplyButton()))
5655
5598
  );
5656
5599
  };
5657
5600
 
5658
5601
  DropdownList.displayName = 'DropdownList';
5659
5602
 
5660
- var _excluded$t = ["triggerOptions", "selected", "tabIndex"];
5603
+ var _excluded$u = ["triggerOptions", "selected", "tabIndex"];
5661
5604
  var inputRef = /*#__PURE__*/React.createRef();
5662
5605
 
5663
5606
  /**
@@ -5673,6 +5616,21 @@ var inputRef = /*#__PURE__*/React.createRef();
5673
5616
  * * onChange: Called when selected options are updated.
5674
5617
  * - Uncontrolled Dropdown:
5675
5618
  * * onChange: Called when user `clicks on option` / `clicks on Clear, or Apply button`.
5619
+ * 4. Default errorTemplate:
5620
+ *
5621
+ * <pre class="DocPage-codeBlock mx-6 mb-7">
5622
+ * (props) => {
5623
+ * const { errorType = 'DEFAULT' } = props;
5624
+ * const errorMessages = {
5625
+ * 'FAILED\_TO\_FETCH': 'Failed to fetch data',
5626
+ * 'NO\_RECORDS\_FOUND': 'No results found',
5627
+ * 'DEFAULT': 'No results found'
5628
+ * }
5629
+ * return(
5630
+ * \<Heading>{errorMessages[errorType]}\</Heading>
5631
+ * );
5632
+ * }
5633
+ * </pre>
5676
5634
  */
5677
5635
  var Dropdown = /*#__PURE__*/function (_React$Component) {
5678
5636
  _inherits(Dropdown, _React$Component);
@@ -5751,7 +5709,8 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
5751
5709
  searchTerm = _this$state.searchTerm,
5752
5710
  selectAll = _this$state.selectAll,
5753
5711
  tempSelected = _this$state.tempSelected,
5754
- previousSelected = _this$state.previousSelected;
5712
+ previousSelected = _this$state.previousSelected,
5713
+ errorType = _this$state.errorType;
5755
5714
  var updatedAsync = async === undefined ? _this.state.async : async;
5756
5715
  var _this$props = _this.props,
5757
5716
  fetchOptions = _this$props.fetchOptions,
@@ -5779,6 +5738,7 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
5779
5738
  var disabledOptions = _this.getDisabledOptions(unSelectedGroup.slice(0, _this.staticLimit));
5780
5739
 
5781
5740
  _this.setState(_objectSpread2(_objectSpread2({}, _this.state), {}, {
5741
+ errorType: fetchOptions && errorType !== 'NO_RECORDS_FOUND' ? 'FAILED_TO_FETCH' : errorType,
5782
5742
  scrollIndex: res.scrollToIndex || 0,
5783
5743
  optionsLength: optionsLength,
5784
5744
  loading: false,
@@ -5801,7 +5761,8 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
5801
5761
  _this.setState(_objectSpread2(_objectSpread2({}, _this.state), {}, {
5802
5762
  loading: true,
5803
5763
  searchInit: true,
5804
- searchTerm: search
5764
+ searchTerm: search,
5765
+ errorType: 'NO_RECORDS_FOUND'
5805
5766
  }));
5806
5767
  });
5807
5768
 
@@ -6048,6 +6009,14 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
6048
6009
  });
6049
6010
  }));
6050
6011
 
6012
+ _defineProperty$1(_assertThisInitialized$1(_this), "reload", function () {
6013
+ _this.setState({
6014
+ loading: true
6015
+ }, function () {
6016
+ _this.updateOptions(false);
6017
+ });
6018
+ });
6019
+
6051
6020
  _defineProperty$1(_assertThisInitialized$1(_this), "debounceClear", debounce$1(250, function () {
6052
6021
  return _this.updateOptions(false);
6053
6022
  }));
@@ -6219,7 +6188,8 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
6219
6188
  previousSelected: _selectedGroup,
6220
6189
  selected: _showSelectedItems(_async, '', _withCheckbox) ? _selected : [],
6221
6190
  triggerLabel: _this.updateTriggerLabel(_selectedGroup, _optionsLength),
6222
- selectAll: getSelectAll$1(_selectedGroup, _optionsLength, _disabledOptions.length)
6191
+ selectAll: getSelectAll$1(_selectedGroup, _optionsLength, _disabledOptions.length),
6192
+ errorType: 'DEFAULT'
6223
6193
  };
6224
6194
  return _this;
6225
6195
  }
@@ -6294,7 +6264,8 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
6294
6264
  selectAll = _this$state7.selectAll,
6295
6265
  triggerLabel = _this$state7.triggerLabel,
6296
6266
  previousSelected = _this$state7.previousSelected,
6297
- scrollIndex = _this$state7.scrollIndex;
6267
+ scrollIndex = _this$state7.scrollIndex,
6268
+ errorType = _this$state7.errorType;
6298
6269
  var _this$props13 = this.props,
6299
6270
  _this$props13$withSel = _this$props13.withSelectAll,
6300
6271
  withSelectAll = _this$props13$withSel === void 0 ? true : _this$props13$withSel,
@@ -6305,7 +6276,7 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
6305
6276
  triggerOptions = _this$props14$trigger === void 0 ? {} : _this$props14$trigger;
6306
6277
  _this$props14.selected;
6307
6278
  var tabIndex = _this$props14.tabIndex,
6308
- rest = _objectWithoutProperties(_this$props14, _excluded$t);
6279
+ rest = _objectWithoutProperties(_this$props14, _excluded$u);
6309
6280
 
6310
6281
  var remainingOptionsLen = searchedOptionsLength - options.length;
6311
6282
  var firstEnabledOption = tabIndex ? tabIndex : _isSelectAllPresent(searchTerm, remainingOptionsLen, withSelectAll, withCheckbox) ? 0 : options.findIndex(function (option) {
@@ -6335,7 +6306,9 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
6335
6306
  onOptionSelect: this.onOptionSelect,
6336
6307
  onSelectAll: this.onSelectAll,
6337
6308
  customTrigger: triggerOptions.customTrigger,
6338
- scrollIndex: scrollIndex
6309
+ scrollIndex: scrollIndex,
6310
+ updateOptions: this.reload,
6311
+ errorType: errorType
6339
6312
  }, rest));
6340
6313
  }
6341
6314
  }]);
@@ -6351,7 +6324,7 @@ _defineProperty$1(Dropdown, "defaultProps", {
6351
6324
  searchDebounceDuration: 300
6352
6325
  });
6353
6326
 
6354
- var _excluded$s = ["appearance", "size", "children", "className", "color"];
6327
+ var _excluded$t = ["appearance", "size", "children", "className", "color"];
6355
6328
  var sizeMap = {
6356
6329
  s: 'h5',
6357
6330
  m: 'h4',
@@ -6367,7 +6340,7 @@ var Heading = function Heading(props) {
6367
6340
  children = props.children,
6368
6341
  className = props.className,
6369
6342
  color = props.color,
6370
- rest = _objectWithoutProperties(props, _excluded$s);
6343
+ rest = _objectWithoutProperties(props, _excluded$t);
6371
6344
 
6372
6345
  var classes = classnames((_classNames = {
6373
6346
  Heading: true
@@ -6385,18 +6358,18 @@ Heading.defaultProps = {
6385
6358
  size: 'm'
6386
6359
  };
6387
6360
 
6388
- var _excluded$r = ["className", "iconVariations"];
6361
+ var _excluded$s = ["className", "iconType"];
6389
6362
  var ActionButton$1 = function ActionButton(props) {
6390
6363
  var _classNames;
6391
6364
 
6392
6365
  var className = props.className,
6393
- iconVariations = props.iconVariations,
6394
- rest = _objectWithoutProperties(props, _excluded$r);
6366
+ iconType = props.iconType,
6367
+ rest = _objectWithoutProperties(props, _excluded$s);
6395
6368
 
6396
6369
  var iconClass = classnames((_classNames = {}, _defineProperty$1(_classNames, 'ActionButton', true), _defineProperty$1(_classNames, "".concat(className), className), _classNames));
6397
6370
  return /*#__PURE__*/React.createElement(Icon, _extends$2({
6398
6371
  className: iconClass,
6399
- variations: iconVariations,
6372
+ type: iconType,
6400
6373
  "data-test": "DesignSystem-Input-ActionButton"
6401
6374
  }, rest));
6402
6375
  };
@@ -6406,7 +6379,7 @@ ActionButton$1.defaultProps = {
6406
6379
  type: 'rounded'
6407
6380
  };
6408
6381
 
6409
- var _excluded$q = ["size", "type", "minWidth", "defaultValue", "name", "placeholder", "value", "icon", "inlineLabel", "required", "error", "info", "onChange", "onClick", "onClear", "onBlur", "onFocus", "onPaste", "actionIcon", "className", "autoFocus", "disabled", "readOnly", "iconVariations"];
6382
+ var _excluded$r = ["size", "type", "minWidth", "defaultValue", "name", "placeholder", "value", "icon", "inlineLabel", "required", "error", "info", "onChange", "onClick", "onClear", "onBlur", "onFocus", "onPaste", "actionIcon", "className", "autoFocus", "disabled", "readOnly", "iconType"];
6410
6383
  var sizeMapping$2 = {
6411
6384
  tiny: 12,
6412
6385
  regular: 16,
@@ -6447,8 +6420,8 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6447
6420
  autoFocus = props.autoFocus,
6448
6421
  disabled = props.disabled,
6449
6422
  readOnly = props.readOnly,
6450
- iconVariations = props.iconVariations,
6451
- rest = _objectWithoutProperties(props, _excluded$q);
6423
+ iconType = props.iconType,
6424
+ rest = _objectWithoutProperties(props, _excluded$r);
6452
6425
 
6453
6426
  var ref = React.useRef(null);
6454
6427
 
@@ -6507,7 +6480,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6507
6480
  }, /*#__PURE__*/React.createElement(Icon, {
6508
6481
  name: icon,
6509
6482
  size: sizeMapping$2[size],
6510
- variations: iconVariations
6483
+ type: iconType
6511
6484
  })), /*#__PURE__*/React.createElement("input", _extends$2({
6512
6485
  "data-test": "DesignSystem-Input"
6513
6486
  }, baseProps, rest, {
@@ -6557,7 +6530,7 @@ Object.assign(Input, {
6557
6530
  ActionButton: ActionButton$1
6558
6531
  });
6559
6532
 
6560
- var _excluded$p = ["size", "defaultValue", "name", "placeholder", "icon", "prefix", "suffix", "error", "min", "max", "onChange", "onClick", "onBlur", "onFocus", "className", "autoFocus", "disabled", "readOnly", "value", "showActionButton", "onKeyDown", "iconVariations"];
6533
+ var _excluded$q = ["size", "defaultValue", "name", "placeholder", "icon", "prefix", "suffix", "error", "min", "max", "onChange", "onClick", "onBlur", "onFocus", "className", "autoFocus", "disabled", "readOnly", "value", "showActionButton", "onKeyDown", "iconType"];
6561
6534
  var sizeMapping$1 = {
6562
6535
  regular: 16,
6563
6536
  large: 20
@@ -6607,8 +6580,8 @@ var MetricInput = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6607
6580
  _props$showActionButt = props.showActionButton,
6608
6581
  showActionButton = _props$showActionButt === void 0 ? true : _props$showActionButt,
6609
6582
  onKeyDown = props.onKeyDown,
6610
- iconVariations = props.iconVariations,
6611
- rest = _objectWithoutProperties(props, _excluded$p);
6583
+ iconType = props.iconType,
6584
+ rest = _objectWithoutProperties(props, _excluded$q);
6612
6585
 
6613
6586
  var ref = React.useRef(null);
6614
6587
  var isUncontrolled = valueProp === undefined;
@@ -6706,7 +6679,7 @@ var MetricInput = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6706
6679
  }, icon && /*#__PURE__*/React.createElement(Icon, {
6707
6680
  "data-test": "DesignSystem-MetricInput--icon",
6708
6681
  name: icon,
6709
- variations: iconVariations,
6682
+ type: iconType,
6710
6683
  size: sizeMapping$1[size],
6711
6684
  appearance: !value ? 'disabled' : 'subtle',
6712
6685
  className: iconClass
@@ -6772,7 +6745,7 @@ var getDefaultValue = function getDefaultValue(mask, placeholderChar) {
6772
6745
  return val;
6773
6746
  };
6774
6747
 
6775
- var _excluded$o = ["mask", "value", "placeholderChar", "validators", "clearOnEmptyBlur", "defaultValue", "mask", "error", "caption", "required", "onChange", "onPaste", "onBlur", "onFocus", "onClear", "className", "id", "helpText"];
6748
+ var _excluded$p = ["mask", "value", "placeholderChar", "validators", "clearOnEmptyBlur", "defaultValue", "mask", "error", "caption", "required", "onChange", "onPaste", "onBlur", "onFocus", "onClear", "className", "id", "helpText"];
6776
6749
 
6777
6750
  /**
6778
6751
  * It works as Uncontrolled Input
@@ -6801,7 +6774,7 @@ var InputMask = /*#__PURE__*/React.forwardRef(function (props, forwardRef) {
6801
6774
  className = props.className,
6802
6775
  id = props.id,
6803
6776
  helpText = props.helpText,
6804
- rest = _objectWithoutProperties(props, _excluded$o);
6777
+ rest = _objectWithoutProperties(props, _excluded$p);
6805
6778
 
6806
6779
  var isEditable = React.useCallback(function (pos) {
6807
6780
  return _typeof(mask[pos]) === 'object';
@@ -7105,7 +7078,7 @@ InputMask.utils = {
7105
7078
  };
7106
7079
  var X = InputMask;
7107
7080
 
7108
- var _excluded$n = ["required", "optional", "withInput", "disabled", "children", "className", "info"];
7081
+ var _excluded$o = ["required", "optional", "withInput", "disabled", "children", "className", "info"];
7109
7082
 
7110
7083
  /**
7111
7084
  * *NOTE: Extends props with HTMLProps<HTMLLabelElement>*
@@ -7120,7 +7093,7 @@ var Label = function Label(props) {
7120
7093
  children = props.children,
7121
7094
  className = props.className,
7122
7095
  info = props.info,
7123
- rest = _objectWithoutProperties(props, _excluded$n);
7096
+ rest = _objectWithoutProperties(props, _excluded$o);
7124
7097
 
7125
7098
  var baseProps = extractBaseProps(props);
7126
7099
  var LabelClass = classnames((_classNames = {
@@ -7278,7 +7251,7 @@ var Editable = function Editable(props) {
7278
7251
  };
7279
7252
  Editable.displayName = 'Editable';
7280
7253
 
7281
- var _excluded$m = ["onChange", "onClose"];
7254
+ var _excluded$n = ["onChange", "onClose"];
7282
7255
  var EditableDropdown = function EditableDropdown(props) {
7283
7256
  var _classNames2;
7284
7257
 
@@ -7289,7 +7262,7 @@ var EditableDropdown = function EditableDropdown(props) {
7289
7262
 
7290
7263
  var onDropdownChange = dropdownOptions.onChange,
7291
7264
  onDropdownClose = dropdownOptions.onClose,
7292
- rest = _objectWithoutProperties(dropdownOptions, _excluded$m);
7265
+ rest = _objectWithoutProperties(dropdownOptions, _excluded$n);
7293
7266
 
7294
7267
  var _React$useState = React.useState(placeholder),
7295
7268
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -7371,7 +7344,7 @@ EditableDropdown.defaultProps = {
7371
7344
  dropdownOptions: {}
7372
7345
  };
7373
7346
 
7374
- var _excluded$l = ["children", "className", "appearance", "size", "disabled"];
7347
+ var _excluded$m = ["children", "className", "appearance", "size", "disabled"];
7375
7348
  var Link = function Link(props) {
7376
7349
  var _classNames;
7377
7350
 
@@ -7380,7 +7353,7 @@ var Link = function Link(props) {
7380
7353
  appearance = props.appearance,
7381
7354
  size = props.size,
7382
7355
  disabled = props.disabled,
7383
- rest = _objectWithoutProperties(props, _excluded$l);
7356
+ rest = _objectWithoutProperties(props, _excluded$m);
7384
7357
 
7385
7358
  var classes = classnames((_classNames = {
7386
7359
  Link: true
@@ -7465,7 +7438,7 @@ var Meta = function Meta(props) {
7465
7438
  var label = props.label,
7466
7439
  icon = props.icon,
7467
7440
  size = props.size,
7468
- iconVariations = props.iconVariations;
7441
+ iconType = props.iconType;
7469
7442
  return /*#__PURE__*/React.createElement("span", {
7470
7443
  "data-test": "DesignSystem-MetaList--Meta",
7471
7444
  className: 'Meta'
@@ -7474,7 +7447,7 @@ var Meta = function Meta(props) {
7474
7447
  name: icon,
7475
7448
  appearance: "subtle",
7476
7449
  className: 'Meta-icon',
7477
- variations: iconVariations,
7450
+ type: iconType,
7478
7451
  size: size === 'regular' ? 16 : 12
7479
7452
  }), /*#__PURE__*/React.createElement(Text, {
7480
7453
  size: size,
@@ -7509,7 +7482,7 @@ var MetaList = function MetaList(props) {
7509
7482
  var _item$label = item.label,
7510
7483
  label = _item$label === void 0 ? '' : _item$label,
7511
7484
  icon = item.icon,
7512
- iconVariations = item.iconVariations;
7485
+ iconType = item.iconType;
7513
7486
  var rightSeperator = ind !== list.length - 1;
7514
7487
  return /*#__PURE__*/React.createElement("span", {
7515
7488
  key: ind,
@@ -7518,7 +7491,7 @@ var MetaList = function MetaList(props) {
7518
7491
  size: size,
7519
7492
  label: label,
7520
7493
  icon: icon,
7521
- iconVariations: iconVariations
7494
+ iconType: iconType
7522
7495
  }), rightSeperator && /*#__PURE__*/React.createElement(Icon, {
7523
7496
  "data-test": "DesignSystem-MetaList--rightSeperator",
7524
7497
  name: "fiber_manual_record",
@@ -8276,12 +8249,12 @@ _defineProperty$1(MultiSlider, "defaultProps", {
8276
8249
 
8277
8250
  _defineProperty$1(MultiSlider, "Handle", MultiSliderHandle);
8278
8251
 
8279
- var _excluded$k = ["children", "className", "onOutsideClick"];
8252
+ var _excluded$l = ["children", "className", "onOutsideClick"];
8280
8253
  var OutsideClick = /*#__PURE__*/React.forwardRef(function (props, ref) {
8281
8254
  var children = props.children,
8282
8255
  className = props.className,
8283
8256
  onOutsideClick = props.onOutsideClick,
8284
- rest = _objectWithoutProperties(props, _excluded$k);
8257
+ rest = _objectWithoutProperties(props, _excluded$l);
8285
8258
 
8286
8259
  var innerRef = React.useRef(null);
8287
8260
  React.useImperativeHandle(ref, function () {
@@ -8313,7 +8286,7 @@ var OutsideClick = /*#__PURE__*/React.forwardRef(function (props, ref) {
8313
8286
  });
8314
8287
  OutsideClick.displayName = 'OutsideClick';
8315
8288
 
8316
- var _excluded$j = ["appearance", "children", "className", "color"];
8289
+ var _excluded$k = ["appearance", "children", "className", "color"];
8317
8290
  var Paragraph = function Paragraph(props) {
8318
8291
  var _classNames;
8319
8292
 
@@ -8321,7 +8294,7 @@ var Paragraph = function Paragraph(props) {
8321
8294
  children = props.children,
8322
8295
  className = props.className,
8323
8296
  color = props.color,
8324
- rest = _objectWithoutProperties(props, _excluded$j);
8297
+ rest = _objectWithoutProperties(props, _excluded$k);
8325
8298
 
8326
8299
  var classes = classnames((_classNames = {
8327
8300
  Text: true
@@ -8369,7 +8342,7 @@ ProgressBar.defaultProps = {
8369
8342
  size: 'regular'
8370
8343
  };
8371
8344
 
8372
- var _excluded$i = ["size", "label", "disabled", "onChange", "name", "value", "checked", "defaultChecked", "className", "helpText", "error"];
8345
+ var _excluded$j = ["size", "label", "disabled", "onChange", "name", "value", "checked", "defaultChecked", "className", "helpText", "error"];
8373
8346
  var Radio = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
8374
8347
  var _classNames, _classNames2, _classNames3;
8375
8348
 
@@ -8385,7 +8358,7 @@ var Radio = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
8385
8358
  className = props.className,
8386
8359
  helpText = props.helpText,
8387
8360
  error = props.error,
8388
- rest = _objectWithoutProperties(props, _excluded$i);
8361
+ rest = _objectWithoutProperties(props, _excluded$j);
8389
8362
 
8390
8363
  var ref = React.useRef(null);
8391
8364
  React.useImperativeHandle(forwardedRef, function () {
@@ -8436,11 +8409,11 @@ var Radio = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
8436
8409
  });
8437
8410
  Radio.displayName = 'Radio';
8438
8411
 
8439
- var _excluded$h = ["className", "children"];
8412
+ var _excluded$i = ["className", "children"];
8440
8413
  var Row = /*#__PURE__*/React.forwardRef(function (props, ref) {
8441
8414
  var className = props.className,
8442
8415
  children = props.children,
8443
- rest = _objectWithoutProperties(props, _excluded$h);
8416
+ rest = _objectWithoutProperties(props, _excluded$i);
8444
8417
 
8445
8418
  var classes = classnames(_defineProperty$1({
8446
8419
  Row: true
@@ -8557,13 +8530,13 @@ Spinner.defaultProps = {
8557
8530
  size: 'medium'
8558
8531
  };
8559
8532
 
8560
- var _excluded$g = ["value", "defaultValue", "onRelease", "onChange"];
8533
+ var _excluded$h = ["value", "defaultValue", "onRelease", "onChange"];
8561
8534
  var Slider = function Slider(props) {
8562
8535
  var valueProp = props.value,
8563
8536
  defaultValue = props.defaultValue,
8564
8537
  onRelease = props.onRelease,
8565
8538
  onChange = props.onChange,
8566
- rest = _objectWithoutProperties(props, _excluded$g);
8539
+ rest = _objectWithoutProperties(props, _excluded$h);
8567
8540
 
8568
8541
  var _React$useState = React.useState(valueProp === undefined ? defaultValue : valueProp),
8569
8542
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -8596,7 +8569,7 @@ Slider.defaultProps = _objectSpread2(_objectSpread2({}, MultiSlider.defaultProps
8596
8569
  defaultValue: 0
8597
8570
  });
8598
8571
 
8599
- var _excluded$f = ["value", "defaultValue", "onChange", "onRelease"];
8572
+ var _excluded$g = ["value", "defaultValue", "onChange", "onRelease"];
8600
8573
  var RangeIndex;
8601
8574
 
8602
8575
  (function (RangeIndex) {
@@ -8609,7 +8582,7 @@ var RangeSlider = function RangeSlider(props) {
8609
8582
  defaultValue = props.defaultValue,
8610
8583
  onChange = props.onChange,
8611
8584
  onRelease = props.onRelease,
8612
- rest = _objectWithoutProperties(props, _excluded$f);
8585
+ rest = _objectWithoutProperties(props, _excluded$g);
8613
8586
 
8614
8587
  var _React$useState = React.useState(valueProp === undefined ? defaultValue : valueProp),
8615
8588
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -8645,7 +8618,7 @@ RangeSlider.defaultProps = _objectSpread2(_objectSpread2({}, MultiSlider.default
8645
8618
  defaultValue: [0, 10]
8646
8619
  });
8647
8620
 
8648
- var _excluded$e = ["appearance", "children", "className", "color"];
8621
+ var _excluded$f = ["appearance", "children", "className", "color"];
8649
8622
  var Subheading = function Subheading(props) {
8650
8623
  var _classNames;
8651
8624
 
@@ -8653,7 +8626,7 @@ var Subheading = function Subheading(props) {
8653
8626
  children = props.children,
8654
8627
  className = props.className,
8655
8628
  color = props.color,
8656
- rest = _objectWithoutProperties(props, _excluded$e);
8629
+ rest = _objectWithoutProperties(props, _excluded$f);
8657
8630
 
8658
8631
  var classes = classnames((_classNames = {
8659
8632
  Subheading: true
@@ -8670,7 +8643,7 @@ Subheading.defaultProps = {
8670
8643
  appearance: 'default'
8671
8644
  };
8672
8645
 
8673
- var _excluded$d = ["size", "defaultChecked", "disabled", "onChange", "name", "value", "className", "appearance", "checked"];
8646
+ var _excluded$e = ["size", "defaultChecked", "disabled", "onChange", "name", "value", "className", "appearance", "checked"];
8674
8647
 
8675
8648
  /**
8676
8649
  * ######Switch has two types:
@@ -8690,7 +8663,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function (props, ref) {
8690
8663
  className = props.className;
8691
8664
  props.appearance;
8692
8665
  var checkedProp = props.checked,
8693
- rest = _objectWithoutProperties(props, _excluded$d);
8666
+ rest = _objectWithoutProperties(props, _excluded$e);
8694
8667
 
8695
8668
  var _React$useState = React.useState(checkedProp === undefined ? defaultChecked : checkedProp),
8696
8669
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -8729,7 +8702,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function (props, ref) {
8729
8702
  });
8730
8703
  Switch.displayName = 'Switch';
8731
8704
 
8732
- var _excluded$c = ["rows", "resize", "disabled", "name", "placeholder", "value", "defaultValue", "required", "error", "onChange", "onClick", "onBlur", "onFocus", "className"];
8705
+ var _excluded$d = ["rows", "resize", "disabled", "name", "placeholder", "value", "defaultValue", "required", "error", "onChange", "onClick", "onBlur", "onFocus", "className"];
8733
8706
  var Textarea = /*#__PURE__*/React.forwardRef(function (props, ref) {
8734
8707
  var _classNames;
8735
8708
 
@@ -8749,7 +8722,7 @@ var Textarea = /*#__PURE__*/React.forwardRef(function (props, ref) {
8749
8722
  onBlur = props.onBlur,
8750
8723
  onFocus = props.onFocus,
8751
8724
  className = props.className,
8752
- rest = _objectWithoutProperties(props, _excluded$c);
8725
+ rest = _objectWithoutProperties(props, _excluded$d);
8753
8726
 
8754
8727
  var classes = classnames((_classNames = {}, _defineProperty$1(_classNames, 'Textarea', true), _defineProperty$1(_classNames, 'Textarea--resize', resize), _defineProperty$1(_classNames, 'Textarea--error', error), _classNames), className);
8755
8728
  return /*#__PURE__*/React.createElement("textarea", _extends$2({
@@ -13878,7 +13851,7 @@ _defineProperty$1(PopperWrapper, "defaultProps", {
13878
13851
  style: {}
13879
13852
  });
13880
13853
 
13881
- var _excluded$b = ["position", "customStyle", "dark", "children", "onToggle", "className", "hideOnReferenceEscape", "boundaryElement"];
13854
+ var _excluded$c = ["position", "customStyle", "dark", "children", "onToggle", "className", "hideOnReferenceEscape", "boundaryElement"];
13882
13855
  var propsList = ['appendToBody', 'trigger', 'hoverable', 'on', 'open', 'closeOnBackdropClick', 'offset', 'closeOnScroll'];
13883
13856
  var Popover = function Popover(props) {
13884
13857
  var position = props.position,
@@ -13890,7 +13863,7 @@ var Popover = function Popover(props) {
13890
13863
  hideOnReferenceEscape = props.hideOnReferenceEscape,
13891
13864
  _props$boundaryElemen = props.boundaryElement,
13892
13865
  boundaryElement = _props$boundaryElemen === void 0 ? document.body : _props$boundaryElemen,
13893
- rest = _objectWithoutProperties(props, _excluded$b);
13866
+ rest = _objectWithoutProperties(props, _excluded$c);
13894
13867
 
13895
13868
  var _React$useState = React.useState(!!props.open),
13896
13869
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -13942,7 +13915,7 @@ Popover.defaultProps = Object.assign({}, filterProps(PopperWrapper.defaultProps,
13942
13915
  customStyle: {}
13943
13916
  });
13944
13917
 
13945
- var _excluded$a = ["type", "onClick"];
13918
+ var _excluded$b = ["type", "onClick"];
13946
13919
  var keyCodes = {
13947
13920
  BACKSPACE: 'Backspace',
13948
13921
  DELETE: 'Delete',
@@ -14061,7 +14034,7 @@ var ChipInput = function ChipInput(props) {
14061
14034
  var _chipOptions$type = chipOptions.type,
14062
14035
  type = _chipOptions$type === void 0 ? 'input' : _chipOptions$type,
14063
14036
  _onClick = chipOptions.onClick,
14064
- rest = _objectWithoutProperties(chipOptions, _excluded$a);
14037
+ rest = _objectWithoutProperties(chipOptions, _excluded$b);
14065
14038
 
14066
14039
  return /*#__PURE__*/React.createElement(Chip, _extends$2({
14067
14040
  "data-test": "DesignSystem-ChipInput--Chip",
@@ -14289,7 +14262,7 @@ var MenuItem = function MenuItem(props) {
14289
14262
  "data-test": "DesignSystem-VerticalNav--Icon",
14290
14263
  className: expanded ? 'mr-4' : '',
14291
14264
  name: menu.icon,
14292
- variations: menu.iconVariations
14265
+ type: menu.iconType
14293
14266
  }), expanded && /*#__PURE__*/React.createElement(_MenuLabel, {
14294
14267
  label: menu.label,
14295
14268
  labelColor: itemColor
@@ -14485,7 +14458,7 @@ var HorizontalNav = function HorizontalNav(props) {
14485
14458
  return /*#__PURE__*/React.createElement(Icon, {
14486
14459
  className: "mr-3 HorizontalNav-animate",
14487
14460
  name: menu.icon,
14488
- variations: menu.iconVariations,
14461
+ type: menu.iconType,
14489
14462
  "data-test": "DesignSystem-HorizontalNav--Icon"
14490
14463
  });
14491
14464
  }
@@ -14535,7 +14508,7 @@ var HorizontalNav = function HorizontalNav(props) {
14535
14508
  }), list);
14536
14509
  };
14537
14510
 
14538
- var _excluded$9 = ["children", "tooltip"];
14511
+ var _excluded$a = ["children", "tooltip"];
14539
14512
  var tooltipPropsList = ['trigger', 'on', 'open', 'offset', 'onToggle', 'dark', 'customStyle', 'closeOnBackdropClick', 'hideOnReferenceEscape', 'closeOnScroll'];
14540
14513
  var positionValue = {
14541
14514
  bottom: 'bottom',
@@ -14550,7 +14523,7 @@ var positionValue = {
14550
14523
  var Tooltip = function Tooltip(props) {
14551
14524
  var children = props.children,
14552
14525
  tooltip = props.tooltip,
14553
- rest = _objectWithoutProperties(props, _excluded$9);
14526
+ rest = _objectWithoutProperties(props, _excluded$a);
14554
14527
 
14555
14528
  var tooltipWrapper = /*#__PURE__*/React.createElement("div", {
14556
14529
  className: "Tooltip"
@@ -14626,7 +14599,7 @@ Dialog.defaultProps = {
14626
14599
  secondaryButtonAppearance: 'basic'
14627
14600
  };
14628
14601
 
14629
- var _excluded$8 = ["label"];
14602
+ var _excluded$9 = ["label"];
14630
14603
  var OverlayFooter = function OverlayFooter(props) {
14631
14604
  var open = props.open,
14632
14605
  className = props.className,
@@ -14663,7 +14636,7 @@ var OverlayFooter = function OverlayFooter(props) {
14663
14636
  className: classes
14664
14637
  }), actions.map(function (_ref, index) {
14665
14638
  _ref.label;
14666
- var options = _objectWithoutProperties(_ref, _excluded$8);
14639
+ var options = _objectWithoutProperties(_ref, _excluded$9);
14667
14640
 
14668
14641
  return /*#__PURE__*/React.createElement(Button, _extends$2({
14669
14642
  type: "button"
@@ -16024,7 +15997,7 @@ Pagination.defaultProps = {
16024
15997
  pageJumpDebounceDuration: 750
16025
15998
  };
16026
15999
 
16027
- var _excluded$7 = ["onChange"];
16000
+ var _excluded$8 = ["onChange"];
16028
16001
  var EditableInput = function EditableInput(props) {
16029
16002
  var _classNames2, _classNames4;
16030
16003
 
@@ -16038,7 +16011,7 @@ var EditableInput = function EditableInput(props) {
16038
16011
  className = props.className;
16039
16012
 
16040
16013
  var onInputChange = inputOptions.onChange,
16041
- rest = _objectWithoutProperties(inputOptions, _excluded$7);
16014
+ rest = _objectWithoutProperties(inputOptions, _excluded$8);
16042
16015
 
16043
16016
  var _React$useState = React.useState(props.value),
16044
16017
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -16201,7 +16174,7 @@ EditableInput.defaultProps = {
16201
16174
  inputOptions: {}
16202
16175
  };
16203
16176
 
16204
- var _excluded$6 = ["onChange", "chipOptions"],
16177
+ var _excluded$7 = ["onChange", "chipOptions"],
16205
16178
  _excluded2$1 = ["onClick"];
16206
16179
  var EditableChipInput = function EditableChipInput(props) {
16207
16180
  var _classNames3;
@@ -16215,7 +16188,7 @@ var EditableChipInput = function EditableChipInput(props) {
16215
16188
  var onChipInputChange = chipInputOptions.onChange,
16216
16189
  _chipInputOptions$chi = chipInputOptions.chipOptions,
16217
16190
  chipOptions = _chipInputOptions$chi === void 0 ? {} : _chipInputOptions$chi,
16218
- rest = _objectWithoutProperties(chipInputOptions, _excluded$6);
16191
+ rest = _objectWithoutProperties(chipInputOptions, _excluded$7);
16219
16192
 
16220
16193
  var _onClick = chipOptions.onClick,
16221
16194
  chipObject = _objectWithoutProperties(chipOptions, _excluded2$1);
@@ -17031,7 +17004,7 @@ var getCustomDates = function getCustomDates() {
17031
17004
  };
17032
17005
  };
17033
17006
 
17034
- var _excluded$5 = ["startDate", "endDate", "yearNav", "monthNav", "open", "inputFormat", "outputFormat", "startInputOptions", "endInputOptions", "validators", "withInput", "position", "disabledBefore", "disabledAfter", "onRangeChange", "rangeLimit"];
17007
+ var _excluded$6 = ["startDate", "endDate", "yearNav", "monthNav", "open", "inputFormat", "outputFormat", "startInputOptions", "endInputOptions", "validators", "withInput", "position", "disabledBefore", "disabledAfter", "onRangeChange", "rangeLimit"];
17035
17008
  var DateRangePicker = /*#__PURE__*/function (_React$Component) {
17036
17009
  _inherits(DateRangePicker, _React$Component);
17037
17010
 
@@ -17301,7 +17274,7 @@ var DateRangePicker = /*#__PURE__*/function (_React$Component) {
17301
17274
  disabledAfter = _this$props6.disabledAfter;
17302
17275
  _this$props6.onRangeChange;
17303
17276
  var rangeLimit = _this$props6.rangeLimit,
17304
- rest = _objectWithoutProperties(_this$props6, _excluded$5);
17277
+ rest = _objectWithoutProperties(_this$props6, _excluded$6);
17305
17278
 
17306
17279
  var _this$state3 = this.state,
17307
17280
  startDate = _this$state3.startDate,
@@ -17570,7 +17543,7 @@ var Tabs = function Tabs(props) {
17570
17543
  count = _ref.count,
17571
17544
  icon = _ref.icon,
17572
17545
  disabled = _ref.disabled,
17573
- iconVariations = _ref.iconVariations;
17546
+ iconType = _ref.iconType;
17574
17547
 
17575
17548
  if (count !== undefined) {
17576
17549
  return /*#__PURE__*/React.createElement(Pills, {
@@ -17588,7 +17561,7 @@ var Tabs = function Tabs(props) {
17588
17561
  "data-test": "DesignSystem-Tabs--Icon",
17589
17562
  className: "mr-4 ".concat(iconClass),
17590
17563
  name: icon,
17591
- variations: iconVariations,
17564
+ type: iconType,
17592
17565
  appearance: iconAppearance
17593
17566
  });
17594
17567
  }
@@ -18205,7 +18178,7 @@ function _fromFileEntry() {
18205
18178
  return _fromFileEntry.apply(this, arguments);
18206
18179
  }
18207
18180
 
18208
- var _excluded$4 = ["refKey", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnterCallback", "onDragOverCallback", "onDragLeaveCallback", "onDropCallback"],
18181
+ var _excluded$5 = ["refKey", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnterCallback", "onDragOverCallback", "onDragLeaveCallback", "onDropCallback"],
18209
18182
  _excluded2 = ["refKey", "onChange", "onClick"];
18210
18183
  var initialState = {
18211
18184
  isFocused: false,
@@ -18483,7 +18456,7 @@ var DropzoneBase = function DropzoneBase(props) {
18483
18456
  onDragOverCallback = _ref.onDragOverCallback,
18484
18457
  onDragLeaveCallback = _ref.onDragLeaveCallback,
18485
18458
  onDropCallback = _ref.onDropCallback,
18486
- rest = _objectWithoutProperties(_ref, _excluded$4);
18459
+ rest = _objectWithoutProperties(_ref, _excluded$5);
18487
18460
 
18488
18461
  return _objectSpread2(_defineProperty$1({
18489
18462
  onDragEnter: composeDragHandler(composeEventHandlers(onDragEnterCallback, onDragEnterCb)),
@@ -20681,7 +20654,7 @@ Header.defaultProps = {
20681
20654
  showFilters: true
20682
20655
  };
20683
20656
 
20684
- var _excluded$3 = ["children"];
20657
+ var _excluded$4 = ["children"];
20685
20658
 
20686
20659
  var defaultErrorTemplate = function defaultErrorTemplate(props) {
20687
20660
  var _props$errorType = props.errorType,
@@ -21066,7 +21039,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
21066
21039
 
21067
21040
  var _ref = headerOptions,
21068
21041
  headerChildren = _ref.children,
21069
- headerAttr = _objectWithoutProperties(_ref, _excluded$3);
21042
+ headerAttr = _objectWithoutProperties(_ref, _excluded$4);
21070
21043
 
21071
21044
  var classes = className ? " ".concat(className) : '';
21072
21045
  var totalRecords = this.state.totalRecords;
@@ -21548,7 +21521,7 @@ FileList.defaultProps = {
21548
21521
  };
21549
21522
  FileList.displayName = 'FileList';
21550
21523
 
21551
- var _excluded$2 = ["type", "fields", "placeholder", "autoFocus", "onComplete", "onFocus", "onBlur", "className", "value"];
21524
+ var _excluded$3 = ["type", "fields", "placeholder", "autoFocus", "onComplete", "onFocus", "onBlur", "className", "value"];
21552
21525
  var KEY_CODE = {
21553
21526
  backspace: 'Backspace',
21554
21527
  left: 'ArrowLeft',
@@ -21573,7 +21546,7 @@ var VerificationCodeInput = function VerificationCodeInput(props) {
21573
21546
  onBlur = props.onBlur,
21574
21547
  className = props.className;
21575
21548
  props.value;
21576
- var rest = _objectWithoutProperties(props, _excluded$2);
21549
+ var rest = _objectWithoutProperties(props, _excluded$3);
21577
21550
 
21578
21551
  var initialValues = useMemo(function () {
21579
21552
  if (props.value && props.value.length) {
@@ -21979,7 +21952,7 @@ var HelpText = function HelpText(props) {
21979
21952
  };
21980
21953
  HelpText.displayName = 'HelpText';
21981
21954
 
21982
- var _excluded$1 = ["children", "type", "className", "disabled", "tabIndex", "icon", "subtle", "size", "iconAlign", "iconVariations"];
21955
+ var _excluded$2 = ["children", "type", "className", "disabled", "tabIndex", "icon", "subtle", "size", "iconAlign", "iconType"];
21983
21956
  var sizeMapping = {
21984
21957
  tiny: 12,
21985
21958
  regular: 16
@@ -21996,8 +21969,8 @@ var LinkButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
21996
21969
  subtle = props.subtle,
21997
21970
  size = props.size,
21998
21971
  iconAlign = props.iconAlign,
21999
- iconVariations = props.iconVariations,
22000
- rest = _objectWithoutProperties(props, _excluded$1);
21972
+ iconType = props.iconType,
21973
+ rest = _objectWithoutProperties(props, _excluded$2);
22001
21974
 
22002
21975
  var buttonClass = classnames((_classNames = {}, _defineProperty$1(_classNames, 'LinkButton', true), _defineProperty$1(_classNames, "LinkButton--".concat(size), size), _defineProperty$1(_classNames, 'LinkButton--default', !subtle), _defineProperty$1(_classNames, 'LinkButton--subtle', subtle), _defineProperty$1(_classNames, "LinkButton--iconAlign-".concat(iconAlign), children && iconAlign), _defineProperty$1(_classNames, "".concat(className), className), _classNames));
22003
21976
  var iconClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'LinkButton-icon', true), _defineProperty$1(_classNames2, "LinkButton-icon--".concat(iconAlign), children && iconAlign), _classNames2));
@@ -22013,7 +21986,7 @@ var LinkButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
22013
21986
  }, /*#__PURE__*/React.createElement(Icon, {
22014
21987
  "data-test": "DesignSystem-LinkButton--Icon",
22015
21988
  name: icon,
22016
- variations: iconVariations,
21989
+ type: iconType,
22017
21990
  size: size && sizeMapping[size]
22018
21991
  })), children));
22019
21992
  });
@@ -22024,7 +21997,7 @@ LinkButton.defaultProps = {
22024
21997
  iconAlign: 'left'
22025
21998
  };
22026
21999
 
22027
- var _excluded = ["children", "disabled", "className", "zIndex", "onClick"];
22000
+ var _excluded$1 = ["children", "disabled", "className", "zIndex", "onClick"];
22028
22001
  var ActionCard = function ActionCard(props) {
22029
22002
  var _classNames;
22030
22003
 
@@ -22033,7 +22006,7 @@ var ActionCard = function ActionCard(props) {
22033
22006
  className = props.className,
22034
22007
  zIndex = props.zIndex,
22035
22008
  onClick = props.onClick,
22036
- rest = _objectWithoutProperties(props, _excluded);
22009
+ rest = _objectWithoutProperties(props, _excluded$1);
22037
22010
 
22038
22011
  var classes = classnames((_classNames = {}, _defineProperty$1(_classNames, 'ActionCard', true), _defineProperty$1(_classNames, 'ActionCard--disabled', disabled), _classNames), className);
22039
22012
 
@@ -22060,6 +22033,132 @@ var ActionCard = function ActionCard(props) {
22060
22033
  };
22061
22034
  ActionCard.displayName = 'ActionCard';
22062
22035
 
22063
- var version = "2.21.0";
22036
+ var selectedCardValues = new Map();
22037
+ function useMultiSelect() {
22038
+ var _React$useState = React.useState([]),
22039
+ _React$useState2 = _slicedToArray(_React$useState, 2),
22040
+ selectedCardIds = _React$useState2[0],
22041
+ setSelectedCardIds = _React$useState2[1];
22042
+
22043
+ var isCardSelected = function isCardSelected(id) {
22044
+ return selectedCardIds.includes(id);
22045
+ };
22046
+
22047
+ var updateCardSelection = function updateCardSelection(id, value) {
22048
+ var idList = _toConsumableArray(selectedCardIds);
22049
+
22050
+ if (isCardSelected(id)) {
22051
+ idList = selectedCardIds.filter(function (cardKey) {
22052
+ return id !== cardKey;
22053
+ });
22054
+ selectedCardValues["delete"](id);
22055
+ } else {
22056
+ idList.push(id);
22057
+ selectedCardValues.set(id, value);
22058
+ }
22059
+
22060
+ setSelectedCardIds(idList);
22061
+ };
22062
+
22063
+ return {
22064
+ selectedCardIds: selectedCardIds,
22065
+ selectedCardValues: selectedCardValues,
22066
+ isCardSelected: isCardSelected,
22067
+ updateCardSelection: updateCardSelection
22068
+ };
22069
+ }
22070
+
22071
+ function useSingleSelect() {
22072
+ var _React$useState = React.useState([]),
22073
+ _React$useState2 = _slicedToArray(_React$useState, 2),
22074
+ selectedCardIds = _React$useState2[0],
22075
+ setSelectedCardIds = _React$useState2[1];
22076
+
22077
+ var _React$useState3 = React.useState([]),
22078
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
22079
+ selectedCardValues = _React$useState4[0],
22080
+ setSelectedCardValues = _React$useState4[1];
22081
+
22082
+ var isCardSelected = function isCardSelected(id) {
22083
+ return selectedCardIds.includes(id);
22084
+ };
22085
+
22086
+ var updateCardSelection = function updateCardSelection(id, value) {
22087
+ var idList = _toConsumableArray(selectedCardIds);
22088
+
22089
+ var valueList = _toConsumableArray(selectedCardValues);
22090
+
22091
+ if (selectedCardIds.includes(id)) {
22092
+ idList = [];
22093
+ valueList = [];
22094
+ } else {
22095
+ idList = [id];
22096
+ valueList = value ? [value] : [];
22097
+ }
22098
+
22099
+ setSelectedCardIds(idList);
22100
+ setSelectedCardValues(valueList);
22101
+ };
22102
+
22103
+ return {
22104
+ selectedCardIds: selectedCardIds,
22105
+ selectedCardValues: selectedCardValues,
22106
+ isCardSelected: isCardSelected,
22107
+ updateCardSelection: updateCardSelection
22108
+ };
22109
+ }
22110
+
22111
+ var _excluded = ["children", "onClick", "disabled", "id", "cardValue", "overlayZIndex", "selected", "className"];
22112
+ var SelectionCard = function SelectionCard(props) {
22113
+ var _classNames;
22114
+
22115
+ var children = props.children,
22116
+ onClick = props.onClick,
22117
+ disabled = props.disabled,
22118
+ id = props.id,
22119
+ cardValue = props.cardValue,
22120
+ overlayZIndex = props.overlayZIndex,
22121
+ selected = props.selected,
22122
+ className = props.className,
22123
+ rest = _objectWithoutProperties(props, _excluded);
22124
+
22125
+ var classes = classnames((_classNames = {}, _defineProperty$1(_classNames, 'Selection-card', true), _defineProperty$1(_classNames, 'Selection-card--selected', selected), _defineProperty$1(_classNames, 'Selection-card--disabled', disabled && !selected), _defineProperty$1(_classNames, 'Selection-card--selected-disabled', disabled && selected), _classNames), className);
22126
+
22127
+ var onClickHandler = function onClickHandler(event) {
22128
+ onClick && onClick(event, id, cardValue);
22129
+ };
22130
+
22131
+ var onKeyDownHandler = function onKeyDownHandler(event) {
22132
+ if (event.key === 'Enter') {
22133
+ onClickHandler(event);
22134
+ }
22135
+ };
22136
+
22137
+ return /*#__PURE__*/React.createElement("div", _extends$2({
22138
+ role: "checkbox",
22139
+ "aria-checked": selected,
22140
+ tabIndex: 0,
22141
+ onKeyDown: onKeyDownHandler,
22142
+ onClick: function onClick(event) {
22143
+ return onClickHandler(event);
22144
+ },
22145
+ className: classes,
22146
+ "data-test": "DesignSystem-SelectionCard"
22147
+ }, rest), /*#__PURE__*/React.createElement("div", {
22148
+ className: "Selection-card-overlay",
22149
+ style: {
22150
+ zIndex: overlayZIndex
22151
+ },
22152
+ "data-test": "DesignSystem-SelectionCard-Overlay"
22153
+ }), children);
22154
+ };
22155
+ SelectionCard.defaultProps = {
22156
+ disabled: false,
22157
+ overlayZIndex: 2
22158
+ };
22159
+ SelectionCard.useMultiSelect = useMultiSelect;
22160
+ SelectionCard.useSingleSelect = useSingleSelect;
22161
+
22162
+ var version = "2.22.0";
22064
22163
 
22065
- export { ActionCard, Avatar, AvatarGroup, Backdrop, Badge, Breadcrumbs, Button, Calendar, Caption, Card, CardBody, CardFooter, CardHeader, CardSubdued, ChatMessage, Checkbox, Chip, ChipGroup, ChipInput, ChoiceList, Collapsible, Column, DatePicker, DateRangePicker, Dialog, Divider, Dropdown, Dropzone, EditableChipInput, EditableDropdown, EditableInput, EmptyState, FileList, FileUploader, FileUploaderList, FullscreenModal, Grid, GridCell, Heading, HelpText, HorizontalNav, Icon, InlineMessage, Input, X as InputMask, Label, Legend, Link, LinkButton, List, Message, MetaList, MetricInput, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, MultiSlider, Navigation, OutsideClick, PageHeader, Pagination, Paragraph, Pills, Placeholder, PlaceholderImage, PlaceholderParagraph, Popover, ProgressBar, ProgressRing, Radio, RangeSlider, Row, Sidesheet, Slider, Spinner, StatusHint, Stepper, Subheading, Switch, Tab, Table, Tabs, TabsWrapper, Text, Textarea, TimePicker, Toast, Tooltip, index as Utils, VerificationCodeInput, VerticalNav, version };
22164
+ export { ActionCard, Avatar, AvatarGroup, Backdrop, Badge, Breadcrumbs, Button, Calendar, Caption, Card, CardBody, CardFooter, CardHeader, CardSubdued, ChatMessage, Checkbox, Chip, ChipGroup, ChipInput, ChoiceList, Collapsible, Column, DatePicker, DateRangePicker, Dialog, Divider, Dropdown, Dropzone, EditableChipInput, EditableDropdown, EditableInput, EmptyState, FileList, FileUploader, FileUploaderList, FullscreenModal, Grid, GridCell, Heading, HelpText, HorizontalNav, Icon, InlineMessage, Input, X as InputMask, Label, Legend, Link, LinkButton, List, Message, MetaList, MetricInput, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, MultiSlider, Navigation, OutsideClick, PageHeader, Pagination, Paragraph, Pills, Placeholder, PlaceholderImage, PlaceholderParagraph, Popover, ProgressBar, ProgressRing, Radio, RangeSlider, Row, SelectionCard, Sidesheet, Slider, Spinner, StatusHint, Stepper, Subheading, Switch, Tab, Table, Tabs, TabsWrapper, Text, Textarea, TimePicker, Toast, Tooltip, index as Utils, VerificationCodeInput, VerticalNav, version };