@innovaccer/design-system 2.21.0 → 2.23.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 (50) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/css/dist/MaterialSymbolsRounded.woff2 +0 -0
  3. package/css/dist/index.css +108 -21
  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/pageHeader.css +7 -6
  9. package/css/src/components/selectionCard.css +91 -0
  10. package/dist/.lib/tsconfig.type.tsbuildinfo +157 -66
  11. package/dist/core/common.type.d.ts +1 -6
  12. package/dist/core/components/atoms/_chip/index.d.ts +2 -2
  13. package/dist/core/components/atoms/button/Button.d.ts +2 -2
  14. package/dist/core/components/atoms/chip/Chip.d.ts +2 -2
  15. package/dist/core/components/atoms/dropdown/Dropdown.d.ts +3 -0
  16. package/dist/core/components/atoms/dropdown/DropdownButton.d.ts +2 -2
  17. package/dist/core/components/atoms/dropdown/DropdownList.d.ts +8 -0
  18. package/dist/core/components/atoms/dropdown/ErrorTemplate.d.ts +9 -0
  19. package/dist/core/components/atoms/dropdown/option/index.d.ts +2 -2
  20. package/dist/core/components/atoms/icon/Icon.d.ts +0 -8
  21. package/dist/core/components/atoms/input/Input.d.ts +2 -2
  22. package/dist/core/components/atoms/input/actionButton/ActionButton.d.ts +2 -2
  23. package/dist/core/components/atoms/linkButton/LinkButton.d.ts +2 -2
  24. package/dist/core/components/atoms/metaList/Meta.d.ts +2 -2
  25. package/dist/core/components/atoms/metricInput/MetricInput.d.ts +2 -2
  26. package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +15 -15
  27. package/dist/core/components/atoms/selectionCard/SelectionCard.d.ts +23 -0
  28. package/dist/core/components/atoms/selectionCard/hooks/index.d.ts +2 -0
  29. package/dist/core/components/atoms/selectionCard/hooks/useMultiSelect.d.ts +6 -0
  30. package/dist/core/components/atoms/selectionCard/hooks/useSingleSelect.d.ts +6 -0
  31. package/dist/core/components/atoms/selectionCard/index.d.ts +2 -0
  32. package/dist/core/components/molecules/chipInput/ChipInput.d.ts +1 -1
  33. package/dist/core/components/molecules/tabs/Tabs.d.ts +2 -2
  34. package/dist/core/components/organisms/pageHeader/PageHeader.d.ts +1 -0
  35. package/dist/core/components/organisms/pageHeader/utils.d.ts +32 -0
  36. package/dist/core/index.d.ts +1 -0
  37. package/dist/core/index.type.d.ts +1 -0
  38. package/dist/core/utils/navigationHelper.d.ts +2 -2
  39. package/dist/index.esm.js +535 -301
  40. package/dist/index.js +434 -224
  41. package/dist/index.js.map +1 -1
  42. package/dist/index.umd.js +1 -1
  43. package/dist/index.umd.js.br +0 -0
  44. package/dist/index.umd.js.gz +0 -0
  45. package/package.json +1 -1
  46. package/css/dist/MaterialSymbolsOutlined.ttf +0 -0
  47. package/css/dist/MaterialSymbolsRounded.ttf +0 -0
  48. package/css/material-design-icons/iconfont/MaterialSymbolsOutlined.ttf +0 -0
  49. package/css/material-design-icons/iconfont/MaterialSymbolsRounded.ttf +0 -0
  50. 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: 1697533162404
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.21.0
5
+ * Version: v2.23.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,115 +2716,44 @@ 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);
2719
+ var iconTypeMapper = {
2720
+ timelapse: 'outlined',
2721
+ content_copy: 'outlined',
2722
+ speed: 'outlined',
2723
+ add_circle_outline: 'outlined',
2724
+ turned_in_not: 'outlined',
2725
+ important_devices: 'outlined',
2726
+ thumb_down_off_alt: 'outlined',
2727
+ alarm_on: 'outlined',
2728
+ calendar_view_month: 'outlined',
2729
+ aspect_ratio: 'outlined',
2730
+ change_history: 'outlined',
2731
+ arrow_circle_down: 'outlined',
2732
+ card_membership: 'outlined',
2733
+ query_builder: 'outlined',
2734
+ copyright: 'outlined',
2735
+ arrow_circle_up: 'outlined',
2736
+ alarm: 'outlined',
2737
+ work_outline: 'outlined',
2738
+ bookmark_border: 'outlined',
2739
+ delete_outline: 'outlined',
2740
+ credit_card: 'outlined',
2741
+ highlight_of: 'outlined',
2742
+ check_circle_outline: 'outlined',
2743
+ help_outline: 'outlined',
2744
+ schedule: 'outlined',
2745
+ radio_button_unchecked: 'outlined',
2746
+ radio_button_checked: 'outlined',
2747
+ "delete": 'outlined'
2827
2748
  };
2749
+ /**
2750
+ *
2751
+ * <pre class="DocPage-codeBlock mx-6 mb-7">
2752
+ * Following Icons are mapped to **outlined** type by default:
2753
+ * <br />
2754
+ * timelapse, content_copy, speed, add_circle_outline, turned_in_not, important_devices, thumb_down_off_alt, alarm_on, calendar_view_month, aspect_ratio, change_history, arrow_circle_down, card_membership, query_builder, copyright, arrow_circle_up, alarm, work_outline, bookmark_border, delete_outline, credit_card, highlight_of, check_circle_outline, help_outline, schedule, radio_button_unchecked, radio_button_checked, delete
2755
+ * </pre>
2756
+ */
2828
2757
 
2829
2758
  var Icon = function Icon(props) {
2830
2759
  var _classNames;
@@ -2833,8 +2762,7 @@ var Icon = function Icon(props) {
2833
2762
  className = props.className,
2834
2763
  name = props.name,
2835
2764
  size = props.size,
2836
- children = props.children,
2837
- variations = props.variations;
2765
+ children = props.children;
2838
2766
  var accessibilityProps = useAccessibilityProps(props);
2839
2767
  var baseProps = extractBaseProps(props);
2840
2768
  var mapper = {
@@ -2844,7 +2772,7 @@ var Icon = function Icon(props) {
2844
2772
  filled: 'rounded',
2845
2773
  'two-tone': 'rounded'
2846
2774
  };
2847
- var type = props.type && mapper[props.type] || props.type;
2775
+ var type = props.type && mapper[props.type] || props.type || name && iconTypeMapper[name] || 'rounded';
2848
2776
 
2849
2777
  var getIconAppearance = function getIconAppearance(iconColor) {
2850
2778
  var x = iconColor.indexOf('_');
@@ -2853,17 +2781,9 @@ var Icon = function Icon(props) {
2853
2781
 
2854
2782
  var color = appearance && appearance.includes('_') ? getIconAppearance(appearance) : appearance;
2855
2783
  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
2784
  var styles = {
2864
2785
  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)
2786
+ width: "".concat(size, "px")
2867
2787
  }; // change `children` to {name} after migration
2868
2788
 
2869
2789
  if (children && /*#__PURE__*/React.isValidElement(children)) {
@@ -2881,25 +2801,24 @@ var Icon = function Icon(props) {
2881
2801
  };
2882
2802
  Icon.displayName = 'Icon';
2883
2803
  Icon.defaultProps = {
2884
- size: 16,
2885
- type: 'rounded'
2804
+ size: 16
2886
2805
  };
2887
2806
 
2888
- var _excluded$z = ["children", "componentType", "className"];
2807
+ var _excluded$A = ["children", "componentType", "className"];
2889
2808
 
2890
2809
  var GenericText = function GenericText(_ref) {
2891
2810
  var children = _ref.children,
2892
2811
  _ref$componentType = _ref.componentType,
2893
2812
  componentType = _ref$componentType === void 0 ? 'span' : _ref$componentType,
2894
2813
  className = _ref.className,
2895
- props = _objectWithoutProperties(_ref, _excluded$z);
2814
+ props = _objectWithoutProperties(_ref, _excluded$A);
2896
2815
 
2897
2816
  return /*#__PURE__*/React.createElement(componentType, _objectSpread2(_objectSpread2({}, props), {}, {
2898
2817
  className: className
2899
2818
  }), children);
2900
2819
  };
2901
2820
 
2902
- var _excluded$y = ["appearance", "size", "children", "weight", "small", "className", "color"];
2821
+ var _excluded$z = ["appearance", "size", "children", "weight", "small", "className", "color"];
2903
2822
  var Text = function Text(props) {
2904
2823
  var _classNames;
2905
2824
 
@@ -2910,7 +2829,7 @@ var Text = function Text(props) {
2910
2829
  small = props.small,
2911
2830
  className = props.className,
2912
2831
  color = props.color,
2913
- rest = _objectWithoutProperties(props, _excluded$y);
2832
+ rest = _objectWithoutProperties(props, _excluded$z);
2914
2833
 
2915
2834
  var classes = classnames((_classNames = {
2916
2835
  Text: true
@@ -2940,7 +2859,7 @@ var GenericChip = function GenericChip(props) {
2940
2859
  onClose = props.onClose,
2941
2860
  onClick = props.onClick,
2942
2861
  labelPrefix = props.labelPrefix,
2943
- iconVariations = props.iconVariations;
2862
+ iconType = props.iconType;
2944
2863
  var baseProps = extractBaseProps(props);
2945
2864
 
2946
2865
  var iconClass = function iconClass(align) {
@@ -3003,7 +2922,7 @@ var GenericChip = function GenericChip(props) {
3003
2922
  }), icon && /*#__PURE__*/React.createElement(Icon, {
3004
2923
  "data-test": "DesignSystem-GenericChip--Icon",
3005
2924
  name: icon,
3006
- variations: iconVariations,
2925
+ type: iconType,
3007
2926
  appearance: iconAppearance('left'),
3008
2927
  className: iconClass('left')
3009
2928
  }), renderLabel(), clearButton && /*#__PURE__*/React.createElement("div", {
@@ -3036,7 +2955,7 @@ var Chip = function Chip(props) {
3036
2955
  name = props.name,
3037
2956
  className = props.className,
3038
2957
  labelPrefix = props.labelPrefix,
3039
- iconVariations = props.iconVariations;
2958
+ iconType = props.iconType;
3040
2959
  var baseProps = extractBaseProps(props);
3041
2960
 
3042
2961
  var onCloseHandler = function onCloseHandler() {
@@ -3058,7 +2977,7 @@ var Chip = function Chip(props) {
3058
2977
  label: label,
3059
2978
  selected: select,
3060
2979
  icon: icon,
3061
- iconVariations: iconVariations,
2980
+ iconType: iconType,
3062
2981
  clearButton: clearbutton,
3063
2982
  disabled: disabled,
3064
2983
  className: chipClass,
@@ -3102,7 +3021,7 @@ var ChipGroup = function ChipGroup(props) {
3102
3021
  selected = item.selected,
3103
3022
  clearButton = item.clearButton,
3104
3023
  name = item.name,
3105
- iconVariations = item.iconVariations;
3024
+ iconType = item.iconType;
3106
3025
  return /*#__PURE__*/React.createElement("span", {
3107
3026
  key: ind,
3108
3027
  className: "ChipGroup-item"
@@ -3114,7 +3033,7 @@ var ChipGroup = function ChipGroup(props) {
3114
3033
  icon: icon,
3115
3034
  disabled: disabled,
3116
3035
  clearButton: clearButton,
3117
- iconVariations: iconVariations,
3036
+ iconType: iconType,
3118
3037
  type: type,
3119
3038
  onClick: function onClick() {
3120
3039
  return onClickHandler(item);
@@ -3197,7 +3116,7 @@ var CheckboxIcon = function CheckboxIcon(props) {
3197
3116
  }
3198
3117
  };
3199
3118
 
3200
- var _excluded$x = ["size", "tabIndex", "defaultChecked", "indeterminate", "label", "error", "disabled", "onChange", "name", "value", "className", "checked", "helpText", "id"];
3119
+ var _excluded$y = ["size", "tabIndex", "defaultChecked", "indeterminate", "label", "error", "disabled", "onChange", "name", "value", "className", "checked", "helpText", "id"];
3201
3120
  var Checkbox = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
3202
3121
  var _classNames, _classNames2, _classNames3, _classNames4, _classNames5, _classNames6;
3203
3122
 
@@ -3218,7 +3137,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
3218
3137
  helpText = props.helpText,
3219
3138
  _props$id = props.id,
3220
3139
  id = _props$id === void 0 ? "".concat(name, "-").concat(label, "-").concat(uidGenerator()) : _props$id,
3221
- rest = _objectWithoutProperties(props, _excluded$x);
3140
+ rest = _objectWithoutProperties(props, _excluded$y);
3222
3141
 
3223
3142
  var ref = React.useRef(null);
3224
3143
  React.useImperativeHandle(forwardedRef, function () {
@@ -3299,7 +3218,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
3299
3218
  });
3300
3219
  Checkbox.displayName = 'Checkbox';
3301
3220
 
3302
- var _excluded$w = ["size", "sizeXS", "sizeS", "sizeM", "sizeL", "sizeXL", "className", "children"];
3221
+ var _excluded$x = ["size", "sizeXS", "sizeS", "sizeM", "sizeL", "sizeXL", "className", "children"];
3303
3222
  var Column = /*#__PURE__*/React.forwardRef(function (props, ref) {
3304
3223
  var _classNames;
3305
3224
 
@@ -3311,7 +3230,7 @@ var Column = /*#__PURE__*/React.forwardRef(function (props, ref) {
3311
3230
  sizeXL = props.sizeXL,
3312
3231
  className = props.className,
3313
3232
  children = props.children,
3314
- rest = _objectWithoutProperties(props, _excluded$w);
3233
+ rest = _objectWithoutProperties(props, _excluded$x);
3315
3234
 
3316
3235
  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
3236
  return /*#__PURE__*/React.createElement("div", _extends$2({
@@ -3422,7 +3341,7 @@ var Trigger$1 = function Trigger(props) {
3422
3341
  }));
3423
3342
  };
3424
3343
 
3425
- var _excluded$v = ["date", "open", "position", "inputFormat", "outputFormat", "inputOptions", "validators", "withInput", "disabledBefore", "disabledAfter", "onDateChange", "closeOnSelect", "size", "showTodayDate", "children", "view"];
3344
+ var _excluded$w = ["date", "open", "position", "inputFormat", "outputFormat", "inputOptions", "validators", "withInput", "disabledBefore", "disabledAfter", "onDateChange", "closeOnSelect", "size", "showTodayDate", "children", "view"];
3426
3345
  var DatePicker = /*#__PURE__*/function (_React$Component) {
3427
3346
  _inherits(DatePicker, _React$Component);
3428
3347
 
@@ -3565,7 +3484,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
3565
3484
  _this$props4$children = _this$props4.children,
3566
3485
  children = _this$props4$children === void 0 ? /*#__PURE__*/React.createElement(React.Fragment, null) : _this$props4$children,
3567
3486
  view = _this$props4.view,
3568
- rest = _objectWithoutProperties(_this$props4, _excluded$v);
3487
+ rest = _objectWithoutProperties(_this$props4, _excluded$w);
3569
3488
 
3570
3489
  var date = this.state.date;
3571
3490
  var months = config.months;
@@ -4629,7 +4548,7 @@ function debounce$1 (delay, atBegin, callback) {
4629
4548
  return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
4630
4549
  }
4631
4550
 
4632
- var _excluded$u = ["triggerSize", "placeholder", "menu", "children", "icon", "disabled", "open", "inlineLabel", "error", "iconVariations"];
4551
+ var _excluded$v = ["triggerSize", "placeholder", "menu", "children", "icon", "disabled", "open", "inlineLabel", "error", "iconType"];
4633
4552
  var DropdownButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
4634
4553
  var _classNames, _classNames2;
4635
4554
 
@@ -4645,8 +4564,8 @@ var DropdownButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
4645
4564
  open = props.open,
4646
4565
  inlineLabel = props.inlineLabel,
4647
4566
  error = props.error,
4648
- iconVariations = props.iconVariations,
4649
- rest = _objectWithoutProperties(props, _excluded$u);
4567
+ iconType = props.iconType,
4568
+ rest = _objectWithoutProperties(props, _excluded$v);
4650
4569
 
4651
4570
  var buttonDisabled = disabled ? 'disabled' : 'default';
4652
4571
  var trimmedPlaceholder = placeholder.trim();
@@ -4671,13 +4590,13 @@ var DropdownButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
4671
4590
  appearance: buttonDisabled,
4672
4591
  className: "d-flex align-items-center mr-4",
4673
4592
  name: icon,
4674
- variations: iconVariations
4593
+ type: iconType
4675
4594
  }), value && /*#__PURE__*/React.createElement("span", {
4676
4595
  className: textClass
4677
4596
  }, value)), /*#__PURE__*/React.createElement(Icon, {
4678
4597
  appearance: buttonDisabled,
4679
4598
  name: iconName,
4680
- variations: iconVariations
4599
+ type: iconType
4681
4600
  }));
4682
4601
  });
4683
4602
  DropdownButton.displayName = 'DropdownButton';
@@ -4816,7 +4735,7 @@ var IconOption = function IconOption(props) {
4816
4735
  var label = optionData.label,
4817
4736
  icon = optionData.icon,
4818
4737
  disabled = optionData.disabled,
4819
- iconVariations = optionData.iconVariations;
4738
+ iconType = optionData.iconType;
4820
4739
  var OptionClass = classnames((_classNames = {}, _defineProperty$1(_classNames, "".concat(className), true), _defineProperty$1(_classNames, 'Option--icon', icon), _classNames));
4821
4740
  return (
4822
4741
  /*#__PURE__*/
@@ -4833,7 +4752,7 @@ var IconOption = function IconOption(props) {
4833
4752
  className: "Option-icon mr-4",
4834
4753
  "data-test": "".concat(dataTest, "--Icon"),
4835
4754
  name: icon,
4836
- variations: iconVariations
4755
+ type: iconType
4837
4756
  }), /*#__PURE__*/React.createElement("div", {
4838
4757
  className: 'Option-label'
4839
4758
  }, /*#__PURE__*/React.createElement(Text, {
@@ -5134,6 +5053,47 @@ var Loading = function Loading(props) {
5134
5053
  return null;
5135
5054
  };
5136
5055
 
5056
+ var errorTitle = {
5057
+ FAILED_TO_FETCH: 'Failed to fetch data',
5058
+ NO_RECORDS_FOUND: 'No results found',
5059
+ DEFAULT: 'No record available'
5060
+ };
5061
+ var errorDescription = {
5062
+ FAILED_TO_FETCH: "We couldn't load the data, try reloading.",
5063
+ NO_RECORDS_FOUND: 'Try modifying your search to find what you are looking for.',
5064
+ DEFAULT: 'We have nothing to show you at the moment.'
5065
+ };
5066
+ var ErrorTemplate = function ErrorTemplate(_ref) {
5067
+ var dropdownStyle = _ref.dropdownStyle,
5068
+ errorType = _ref.errorType,
5069
+ updateOptions = _ref.updateOptions;
5070
+ return /*#__PURE__*/React.createElement("div", {
5071
+ className: "Dropdown-wrapper px-7 d-flex",
5072
+ style: dropdownStyle,
5073
+ "data-test": "DesignSystem-Dropdown--wrapper"
5074
+ }, /*#__PURE__*/React.createElement("div", {
5075
+ className: "d-flex flex-column justify-content-center align-items-center",
5076
+ "data-test": "DesignSystem-Dropdown--errorWrapper"
5077
+ }, /*#__PURE__*/React.createElement(Text, {
5078
+ className: "mb-3",
5079
+ weight: "strong"
5080
+ }, errorTitle[errorType]), /*#__PURE__*/React.createElement(Text, {
5081
+ className: "text-align-center mb-6",
5082
+ weight: "medium",
5083
+ size: "small",
5084
+ appearance: "subtle"
5085
+ }, errorDescription[errorType]), errorType === 'FAILED_TO_FETCH' && /*#__PURE__*/React.createElement(Button, {
5086
+ size: "tiny",
5087
+ largeIcon: true,
5088
+ "aria-label": "reload",
5089
+ icon: "refresh",
5090
+ iconAlign: "left",
5091
+ onClick: function onClick() {
5092
+ return updateOptions();
5093
+ }
5094
+ }, "Reload")));
5095
+ };
5096
+
5137
5097
  var alignmentMapping = {
5138
5098
  right: 'bottom-start',
5139
5099
  left: 'bottom-end'
@@ -5180,7 +5140,11 @@ var DropdownList = function DropdownList(props) {
5180
5140
  className = props.className,
5181
5141
  _props$searchPlacehol = props.searchPlaceholder,
5182
5142
  searchPlaceholder = _props$searchPlacehol === void 0 ? 'Search..' : _props$searchPlacehol,
5183
- scrollIndex = props.scrollIndex;
5143
+ scrollIndex = props.scrollIndex,
5144
+ updateOptions = props.updateOptions,
5145
+ noResultMessage = props.noResultMessage,
5146
+ errorType = props.errorType,
5147
+ loadingOptions = props.loadingOptions;
5184
5148
  var baseProps = extractBaseProps(props);
5185
5149
  var dropdownRef = /*#__PURE__*/React.createRef();
5186
5150
  var triggerRef = /*#__PURE__*/React.createRef();
@@ -5209,6 +5173,7 @@ var DropdownList = function DropdownList(props) {
5209
5173
  minHeight && setMinHeight(minHeight);
5210
5174
  };
5211
5175
 
5176
+ var isDropdownListBlank = listOptions.length === 0 && !loadingOptions && selected.length <= 0;
5212
5177
  React.useEffect(function () {
5213
5178
  var timer;
5214
5179
 
@@ -5251,7 +5216,7 @@ var DropdownList = function DropdownList(props) {
5251
5216
  disabled = props.disabled,
5252
5217
  inlineLabel = props.inlineLabel,
5253
5218
  triggerLabel = props.triggerLabel,
5254
- iconVariations = props.iconVariations;
5219
+ iconType = props.iconType;
5255
5220
  var CustomTrigger = customTrigger ? customTrigger(triggerLabel ? triggerLabel : placeholder) : /*#__PURE__*/React.createElement(React.Fragment, null);
5256
5221
  var NewCustomTrigger = /*#__PURE__*/React.cloneElement(CustomTrigger, {
5257
5222
  tabIndex: 0,
@@ -5267,7 +5232,7 @@ var DropdownList = function DropdownList(props) {
5267
5232
  menu: menu,
5268
5233
  error: error,
5269
5234
  ref: dropdownTriggerRef,
5270
- iconVariations: iconVariations
5235
+ iconType: iconType
5271
5236
  }, triggerLabel);
5272
5237
  var dropdownStyle = {
5273
5238
  maxHeight: maxHeight,
@@ -5282,6 +5247,16 @@ var DropdownList = function DropdownList(props) {
5282
5247
  minHeight: minHeight
5283
5248
  };
5284
5249
 
5250
+ var defaultErrorTemplate = function defaultErrorTemplate() {
5251
+ return /*#__PURE__*/React.createElement(ErrorTemplate, {
5252
+ dropdownStyle: _objectSpread2(_objectSpread2({}, dropdownStyle), {}, {
5253
+ minHeight: maxHeight
5254
+ }),
5255
+ updateOptions: updateOptions,
5256
+ errorType: errorType
5257
+ });
5258
+ };
5259
+
5285
5260
  var getDropdownSectionClass = function getDropdownSectionClass(showClearButton) {
5286
5261
  var _classNames;
5287
5262
 
@@ -5494,7 +5469,8 @@ var DropdownList = function DropdownList(props) {
5494
5469
  allItemsSectionLabel = _props$allItemsSectio === void 0 ? 'All Items' : _props$allItemsSectio,
5495
5470
  _props$loadersCount = props.loadersCount,
5496
5471
  loadersCount = _props$loadersCount === void 0 ? 10 : _props$loadersCount,
5497
- loadingOptions = props.loadingOptions;
5472
+ _props$errorTemplate = props.errorTemplate,
5473
+ errorTemplate = _props$errorTemplate === void 0 ? defaultErrorTemplate : _props$errorTemplate;
5498
5474
 
5499
5475
  var selectAllPresent = _isSelectAllPresent(searchTerm, remainingOptions, withSelectAll, withCheckbox);
5500
5476
 
@@ -5509,18 +5485,22 @@ var DropdownList = function DropdownList(props) {
5509
5485
  }, renderLoading(loadersCount)));
5510
5486
  }
5511
5487
 
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)));
5488
+ if (isDropdownListBlank) {
5489
+ if (noResultMessage) {
5490
+ return /*#__PURE__*/React.createElement("div", {
5491
+ className: "Dropdown-wrapper",
5492
+ style: dropdownStyle,
5493
+ "data-test": "DesignSystem-Dropdown--errorWrapper"
5494
+ }, /*#__PURE__*/React.createElement("div", {
5495
+ className: 'Option'
5496
+ }, /*#__PURE__*/React.createElement("div", {
5497
+ className: 'Option-subinfo'
5498
+ }, noResultMessage)));
5499
+ } else {
5500
+ return errorTemplate && errorTemplate({
5501
+ errorType: errorType
5502
+ });
5503
+ }
5524
5504
  }
5525
5505
 
5526
5506
  return /*#__PURE__*/React.createElement("div", {
@@ -5634,6 +5614,7 @@ var DropdownList = function DropdownList(props) {
5634
5614
  }
5635
5615
  };
5636
5616
 
5617
+ var enableSearch = (withSearch || props.async) && (!isDropdownListBlank || errorType === 'NO_RECORDS_FOUND');
5637
5618
  return (
5638
5619
  /*#__PURE__*/
5639
5620
  //TODO(a11y)
@@ -5651,13 +5632,13 @@ var DropdownList = function DropdownList(props) {
5651
5632
  position: alignmentMapping[align]
5652
5633
  }, popoverOptions, {
5653
5634
  "data-test": "DesignSystem-Dropdown--Popover"
5654
- }), (withSearch || props.async) && renderSearch(), renderDropdownSection(), showApplyButton && withCheckbox && renderApplyButton()))
5635
+ }), enableSearch && renderSearch(), renderDropdownSection(), showApplyButton && withCheckbox && renderApplyButton()))
5655
5636
  );
5656
5637
  };
5657
5638
 
5658
5639
  DropdownList.displayName = 'DropdownList';
5659
5640
 
5660
- var _excluded$t = ["triggerOptions", "selected", "tabIndex"];
5641
+ var _excluded$u = ["triggerOptions", "selected", "tabIndex"];
5661
5642
  var inputRef = /*#__PURE__*/React.createRef();
5662
5643
 
5663
5644
  /**
@@ -5673,6 +5654,21 @@ var inputRef = /*#__PURE__*/React.createRef();
5673
5654
  * * onChange: Called when selected options are updated.
5674
5655
  * - Uncontrolled Dropdown:
5675
5656
  * * onChange: Called when user `clicks on option` / `clicks on Clear, or Apply button`.
5657
+ * 4. Default errorTemplate:
5658
+ *
5659
+ * <pre class="DocPage-codeBlock mx-6 mb-7">
5660
+ * (props) => {
5661
+ * const { errorType = 'DEFAULT' } = props;
5662
+ * const errorMessages = {
5663
+ * 'FAILED\_TO\_FETCH': 'Failed to fetch data',
5664
+ * 'NO\_RECORDS\_FOUND': 'No results found',
5665
+ * 'DEFAULT': 'No record available'
5666
+ * }
5667
+ * return(
5668
+ * \<Heading>{errorMessages[errorType]}\</Heading>
5669
+ * );
5670
+ * }
5671
+ * </pre>
5676
5672
  */
5677
5673
  var Dropdown = /*#__PURE__*/function (_React$Component) {
5678
5674
  _inherits(Dropdown, _React$Component);
@@ -5751,7 +5747,8 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
5751
5747
  searchTerm = _this$state.searchTerm,
5752
5748
  selectAll = _this$state.selectAll,
5753
5749
  tempSelected = _this$state.tempSelected,
5754
- previousSelected = _this$state.previousSelected;
5750
+ previousSelected = _this$state.previousSelected,
5751
+ errorType = _this$state.errorType;
5755
5752
  var updatedAsync = async === undefined ? _this.state.async : async;
5756
5753
  var _this$props = _this.props,
5757
5754
  fetchOptions = _this$props.fetchOptions,
@@ -5778,7 +5775,18 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
5778
5775
 
5779
5776
  var disabledOptions = _this.getDisabledOptions(unSelectedGroup.slice(0, _this.staticLimit));
5780
5777
 
5778
+ var errorResult = errorType;
5779
+
5780
+ if (optionsLength === 0 && searchTerm === '') {
5781
+ errorResult = 'DEFAULT';
5782
+ } else if (searchTerm !== '') {
5783
+ errorResult = 'NO_RECORDS_FOUND';
5784
+ } else {
5785
+ errorResult = 'FAILED_TO_FETCH';
5786
+ }
5787
+
5781
5788
  _this.setState(_objectSpread2(_objectSpread2({}, _this.state), {}, {
5789
+ errorType: fetchOptions ? errorResult : errorType,
5782
5790
  scrollIndex: res.scrollToIndex || 0,
5783
5791
  optionsLength: optionsLength,
5784
5792
  loading: false,
@@ -5794,6 +5802,11 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
5794
5802
 
5795
5803
  if (updatedAsync || withSearch) (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
5796
5804
  }
5805
+ })["catch"](function () {
5806
+ _this.setState({
5807
+ errorType: fetchOptions ? 'FAILED_TO_FETCH' : errorType,
5808
+ loading: false
5809
+ });
5797
5810
  });
5798
5811
  });
5799
5812
 
@@ -5801,7 +5814,8 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
5801
5814
  _this.setState(_objectSpread2(_objectSpread2({}, _this.state), {}, {
5802
5815
  loading: true,
5803
5816
  searchInit: true,
5804
- searchTerm: search
5817
+ searchTerm: search,
5818
+ errorType: 'NO_RECORDS_FOUND'
5805
5819
  }));
5806
5820
  });
5807
5821
 
@@ -6048,6 +6062,14 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
6048
6062
  });
6049
6063
  }));
6050
6064
 
6065
+ _defineProperty$1(_assertThisInitialized$1(_this), "reload", function () {
6066
+ _this.setState({
6067
+ loading: true
6068
+ }, function () {
6069
+ _this.updateOptions(false);
6070
+ });
6071
+ });
6072
+
6051
6073
  _defineProperty$1(_assertThisInitialized$1(_this), "debounceClear", debounce$1(250, function () {
6052
6074
  return _this.updateOptions(false);
6053
6075
  }));
@@ -6219,7 +6241,8 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
6219
6241
  previousSelected: _selectedGroup,
6220
6242
  selected: _showSelectedItems(_async, '', _withCheckbox) ? _selected : [],
6221
6243
  triggerLabel: _this.updateTriggerLabel(_selectedGroup, _optionsLength),
6222
- selectAll: getSelectAll$1(_selectedGroup, _optionsLength, _disabledOptions.length)
6244
+ selectAll: getSelectAll$1(_selectedGroup, _optionsLength, _disabledOptions.length),
6245
+ errorType: 'DEFAULT'
6223
6246
  };
6224
6247
  return _this;
6225
6248
  }
@@ -6294,7 +6317,8 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
6294
6317
  selectAll = _this$state7.selectAll,
6295
6318
  triggerLabel = _this$state7.triggerLabel,
6296
6319
  previousSelected = _this$state7.previousSelected,
6297
- scrollIndex = _this$state7.scrollIndex;
6320
+ scrollIndex = _this$state7.scrollIndex,
6321
+ errorType = _this$state7.errorType;
6298
6322
  var _this$props13 = this.props,
6299
6323
  _this$props13$withSel = _this$props13.withSelectAll,
6300
6324
  withSelectAll = _this$props13$withSel === void 0 ? true : _this$props13$withSel,
@@ -6305,7 +6329,7 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
6305
6329
  triggerOptions = _this$props14$trigger === void 0 ? {} : _this$props14$trigger;
6306
6330
  _this$props14.selected;
6307
6331
  var tabIndex = _this$props14.tabIndex,
6308
- rest = _objectWithoutProperties(_this$props14, _excluded$t);
6332
+ rest = _objectWithoutProperties(_this$props14, _excluded$u);
6309
6333
 
6310
6334
  var remainingOptionsLen = searchedOptionsLength - options.length;
6311
6335
  var firstEnabledOption = tabIndex ? tabIndex : _isSelectAllPresent(searchTerm, remainingOptionsLen, withSelectAll, withCheckbox) ? 0 : options.findIndex(function (option) {
@@ -6335,7 +6359,9 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
6335
6359
  onOptionSelect: this.onOptionSelect,
6336
6360
  onSelectAll: this.onSelectAll,
6337
6361
  customTrigger: triggerOptions.customTrigger,
6338
- scrollIndex: scrollIndex
6362
+ scrollIndex: scrollIndex,
6363
+ updateOptions: this.reload,
6364
+ errorType: errorType
6339
6365
  }, rest));
6340
6366
  }
6341
6367
  }]);
@@ -6351,7 +6377,7 @@ _defineProperty$1(Dropdown, "defaultProps", {
6351
6377
  searchDebounceDuration: 300
6352
6378
  });
6353
6379
 
6354
- var _excluded$s = ["appearance", "size", "children", "className", "color"];
6380
+ var _excluded$t = ["appearance", "size", "children", "className", "color"];
6355
6381
  var sizeMap = {
6356
6382
  s: 'h5',
6357
6383
  m: 'h4',
@@ -6367,7 +6393,7 @@ var Heading = function Heading(props) {
6367
6393
  children = props.children,
6368
6394
  className = props.className,
6369
6395
  color = props.color,
6370
- rest = _objectWithoutProperties(props, _excluded$s);
6396
+ rest = _objectWithoutProperties(props, _excluded$t);
6371
6397
 
6372
6398
  var classes = classnames((_classNames = {
6373
6399
  Heading: true
@@ -6385,18 +6411,18 @@ Heading.defaultProps = {
6385
6411
  size: 'm'
6386
6412
  };
6387
6413
 
6388
- var _excluded$r = ["className", "iconVariations"];
6414
+ var _excluded$s = ["className", "iconType"];
6389
6415
  var ActionButton$1 = function ActionButton(props) {
6390
6416
  var _classNames;
6391
6417
 
6392
6418
  var className = props.className,
6393
- iconVariations = props.iconVariations,
6394
- rest = _objectWithoutProperties(props, _excluded$r);
6419
+ iconType = props.iconType,
6420
+ rest = _objectWithoutProperties(props, _excluded$s);
6395
6421
 
6396
6422
  var iconClass = classnames((_classNames = {}, _defineProperty$1(_classNames, 'ActionButton', true), _defineProperty$1(_classNames, "".concat(className), className), _classNames));
6397
6423
  return /*#__PURE__*/React.createElement(Icon, _extends$2({
6398
6424
  className: iconClass,
6399
- variations: iconVariations,
6425
+ type: iconType,
6400
6426
  "data-test": "DesignSystem-Input-ActionButton"
6401
6427
  }, rest));
6402
6428
  };
@@ -6406,7 +6432,7 @@ ActionButton$1.defaultProps = {
6406
6432
  type: 'rounded'
6407
6433
  };
6408
6434
 
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"];
6435
+ 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
6436
  var sizeMapping$2 = {
6411
6437
  tiny: 12,
6412
6438
  regular: 16,
@@ -6447,8 +6473,8 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6447
6473
  autoFocus = props.autoFocus,
6448
6474
  disabled = props.disabled,
6449
6475
  readOnly = props.readOnly,
6450
- iconVariations = props.iconVariations,
6451
- rest = _objectWithoutProperties(props, _excluded$q);
6476
+ iconType = props.iconType,
6477
+ rest = _objectWithoutProperties(props, _excluded$r);
6452
6478
 
6453
6479
  var ref = React.useRef(null);
6454
6480
 
@@ -6507,7 +6533,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6507
6533
  }, /*#__PURE__*/React.createElement(Icon, {
6508
6534
  name: icon,
6509
6535
  size: sizeMapping$2[size],
6510
- variations: iconVariations
6536
+ type: iconType
6511
6537
  })), /*#__PURE__*/React.createElement("input", _extends$2({
6512
6538
  "data-test": "DesignSystem-Input"
6513
6539
  }, baseProps, rest, {
@@ -6557,7 +6583,7 @@ Object.assign(Input, {
6557
6583
  ActionButton: ActionButton$1
6558
6584
  });
6559
6585
 
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"];
6586
+ 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
6587
  var sizeMapping$1 = {
6562
6588
  regular: 16,
6563
6589
  large: 20
@@ -6607,8 +6633,8 @@ var MetricInput = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6607
6633
  _props$showActionButt = props.showActionButton,
6608
6634
  showActionButton = _props$showActionButt === void 0 ? true : _props$showActionButt,
6609
6635
  onKeyDown = props.onKeyDown,
6610
- iconVariations = props.iconVariations,
6611
- rest = _objectWithoutProperties(props, _excluded$p);
6636
+ iconType = props.iconType,
6637
+ rest = _objectWithoutProperties(props, _excluded$q);
6612
6638
 
6613
6639
  var ref = React.useRef(null);
6614
6640
  var isUncontrolled = valueProp === undefined;
@@ -6706,7 +6732,7 @@ var MetricInput = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6706
6732
  }, icon && /*#__PURE__*/React.createElement(Icon, {
6707
6733
  "data-test": "DesignSystem-MetricInput--icon",
6708
6734
  name: icon,
6709
- variations: iconVariations,
6735
+ type: iconType,
6710
6736
  size: sizeMapping$1[size],
6711
6737
  appearance: !value ? 'disabled' : 'subtle',
6712
6738
  className: iconClass
@@ -6772,7 +6798,7 @@ var getDefaultValue = function getDefaultValue(mask, placeholderChar) {
6772
6798
  return val;
6773
6799
  };
6774
6800
 
6775
- var _excluded$o = ["mask", "value", "placeholderChar", "validators", "clearOnEmptyBlur", "defaultValue", "mask", "error", "caption", "required", "onChange", "onPaste", "onBlur", "onFocus", "onClear", "className", "id", "helpText"];
6801
+ var _excluded$p = ["mask", "value", "placeholderChar", "validators", "clearOnEmptyBlur", "defaultValue", "mask", "error", "caption", "required", "onChange", "onPaste", "onBlur", "onFocus", "onClear", "className", "id", "helpText"];
6776
6802
 
6777
6803
  /**
6778
6804
  * It works as Uncontrolled Input
@@ -6801,7 +6827,7 @@ var InputMask = /*#__PURE__*/React.forwardRef(function (props, forwardRef) {
6801
6827
  className = props.className,
6802
6828
  id = props.id,
6803
6829
  helpText = props.helpText,
6804
- rest = _objectWithoutProperties(props, _excluded$o);
6830
+ rest = _objectWithoutProperties(props, _excluded$p);
6805
6831
 
6806
6832
  var isEditable = React.useCallback(function (pos) {
6807
6833
  return _typeof(mask[pos]) === 'object';
@@ -7105,7 +7131,7 @@ InputMask.utils = {
7105
7131
  };
7106
7132
  var X = InputMask;
7107
7133
 
7108
- var _excluded$n = ["required", "optional", "withInput", "disabled", "children", "className", "info"];
7134
+ var _excluded$o = ["required", "optional", "withInput", "disabled", "children", "className", "info"];
7109
7135
 
7110
7136
  /**
7111
7137
  * *NOTE: Extends props with HTMLProps<HTMLLabelElement>*
@@ -7120,7 +7146,7 @@ var Label = function Label(props) {
7120
7146
  children = props.children,
7121
7147
  className = props.className,
7122
7148
  info = props.info,
7123
- rest = _objectWithoutProperties(props, _excluded$n);
7149
+ rest = _objectWithoutProperties(props, _excluded$o);
7124
7150
 
7125
7151
  var baseProps = extractBaseProps(props);
7126
7152
  var LabelClass = classnames((_classNames = {
@@ -7278,7 +7304,7 @@ var Editable = function Editable(props) {
7278
7304
  };
7279
7305
  Editable.displayName = 'Editable';
7280
7306
 
7281
- var _excluded$m = ["onChange", "onClose"];
7307
+ var _excluded$n = ["onChange", "onClose"];
7282
7308
  var EditableDropdown = function EditableDropdown(props) {
7283
7309
  var _classNames2;
7284
7310
 
@@ -7289,7 +7315,7 @@ var EditableDropdown = function EditableDropdown(props) {
7289
7315
 
7290
7316
  var onDropdownChange = dropdownOptions.onChange,
7291
7317
  onDropdownClose = dropdownOptions.onClose,
7292
- rest = _objectWithoutProperties(dropdownOptions, _excluded$m);
7318
+ rest = _objectWithoutProperties(dropdownOptions, _excluded$n);
7293
7319
 
7294
7320
  var _React$useState = React.useState(placeholder),
7295
7321
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -7371,7 +7397,7 @@ EditableDropdown.defaultProps = {
7371
7397
  dropdownOptions: {}
7372
7398
  };
7373
7399
 
7374
- var _excluded$l = ["children", "className", "appearance", "size", "disabled"];
7400
+ var _excluded$m = ["children", "className", "appearance", "size", "disabled"];
7375
7401
  var Link = function Link(props) {
7376
7402
  var _classNames;
7377
7403
 
@@ -7380,7 +7406,7 @@ var Link = function Link(props) {
7380
7406
  appearance = props.appearance,
7381
7407
  size = props.size,
7382
7408
  disabled = props.disabled,
7383
- rest = _objectWithoutProperties(props, _excluded$l);
7409
+ rest = _objectWithoutProperties(props, _excluded$m);
7384
7410
 
7385
7411
  var classes = classnames((_classNames = {
7386
7412
  Link: true
@@ -7465,7 +7491,7 @@ var Meta = function Meta(props) {
7465
7491
  var label = props.label,
7466
7492
  icon = props.icon,
7467
7493
  size = props.size,
7468
- iconVariations = props.iconVariations;
7494
+ iconType = props.iconType;
7469
7495
  return /*#__PURE__*/React.createElement("span", {
7470
7496
  "data-test": "DesignSystem-MetaList--Meta",
7471
7497
  className: 'Meta'
@@ -7474,7 +7500,7 @@ var Meta = function Meta(props) {
7474
7500
  name: icon,
7475
7501
  appearance: "subtle",
7476
7502
  className: 'Meta-icon',
7477
- variations: iconVariations,
7503
+ type: iconType,
7478
7504
  size: size === 'regular' ? 16 : 12
7479
7505
  }), /*#__PURE__*/React.createElement(Text, {
7480
7506
  size: size,
@@ -7509,7 +7535,7 @@ var MetaList = function MetaList(props) {
7509
7535
  var _item$label = item.label,
7510
7536
  label = _item$label === void 0 ? '' : _item$label,
7511
7537
  icon = item.icon,
7512
- iconVariations = item.iconVariations;
7538
+ iconType = item.iconType;
7513
7539
  var rightSeperator = ind !== list.length - 1;
7514
7540
  return /*#__PURE__*/React.createElement("span", {
7515
7541
  key: ind,
@@ -7518,7 +7544,7 @@ var MetaList = function MetaList(props) {
7518
7544
  size: size,
7519
7545
  label: label,
7520
7546
  icon: icon,
7521
- iconVariations: iconVariations
7547
+ iconType: iconType
7522
7548
  }), rightSeperator && /*#__PURE__*/React.createElement(Icon, {
7523
7549
  "data-test": "DesignSystem-MetaList--rightSeperator",
7524
7550
  name: "fiber_manual_record",
@@ -8276,12 +8302,12 @@ _defineProperty$1(MultiSlider, "defaultProps", {
8276
8302
 
8277
8303
  _defineProperty$1(MultiSlider, "Handle", MultiSliderHandle);
8278
8304
 
8279
- var _excluded$k = ["children", "className", "onOutsideClick"];
8305
+ var _excluded$l = ["children", "className", "onOutsideClick"];
8280
8306
  var OutsideClick = /*#__PURE__*/React.forwardRef(function (props, ref) {
8281
8307
  var children = props.children,
8282
8308
  className = props.className,
8283
8309
  onOutsideClick = props.onOutsideClick,
8284
- rest = _objectWithoutProperties(props, _excluded$k);
8310
+ rest = _objectWithoutProperties(props, _excluded$l);
8285
8311
 
8286
8312
  var innerRef = React.useRef(null);
8287
8313
  React.useImperativeHandle(ref, function () {
@@ -8313,7 +8339,7 @@ var OutsideClick = /*#__PURE__*/React.forwardRef(function (props, ref) {
8313
8339
  });
8314
8340
  OutsideClick.displayName = 'OutsideClick';
8315
8341
 
8316
- var _excluded$j = ["appearance", "children", "className", "color"];
8342
+ var _excluded$k = ["appearance", "children", "className", "color"];
8317
8343
  var Paragraph = function Paragraph(props) {
8318
8344
  var _classNames;
8319
8345
 
@@ -8321,7 +8347,7 @@ var Paragraph = function Paragraph(props) {
8321
8347
  children = props.children,
8322
8348
  className = props.className,
8323
8349
  color = props.color,
8324
- rest = _objectWithoutProperties(props, _excluded$j);
8350
+ rest = _objectWithoutProperties(props, _excluded$k);
8325
8351
 
8326
8352
  var classes = classnames((_classNames = {
8327
8353
  Text: true
@@ -8369,7 +8395,7 @@ ProgressBar.defaultProps = {
8369
8395
  size: 'regular'
8370
8396
  };
8371
8397
 
8372
- var _excluded$i = ["size", "label", "disabled", "onChange", "name", "value", "checked", "defaultChecked", "className", "helpText", "error"];
8398
+ var _excluded$j = ["size", "label", "disabled", "onChange", "name", "value", "checked", "defaultChecked", "className", "helpText", "error"];
8373
8399
  var Radio = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
8374
8400
  var _classNames, _classNames2, _classNames3;
8375
8401
 
@@ -8385,7 +8411,7 @@ var Radio = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
8385
8411
  className = props.className,
8386
8412
  helpText = props.helpText,
8387
8413
  error = props.error,
8388
- rest = _objectWithoutProperties(props, _excluded$i);
8414
+ rest = _objectWithoutProperties(props, _excluded$j);
8389
8415
 
8390
8416
  var ref = React.useRef(null);
8391
8417
  React.useImperativeHandle(forwardedRef, function () {
@@ -8436,11 +8462,11 @@ var Radio = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
8436
8462
  });
8437
8463
  Radio.displayName = 'Radio';
8438
8464
 
8439
- var _excluded$h = ["className", "children"];
8465
+ var _excluded$i = ["className", "children"];
8440
8466
  var Row = /*#__PURE__*/React.forwardRef(function (props, ref) {
8441
8467
  var className = props.className,
8442
8468
  children = props.children,
8443
- rest = _objectWithoutProperties(props, _excluded$h);
8469
+ rest = _objectWithoutProperties(props, _excluded$i);
8444
8470
 
8445
8471
  var classes = classnames(_defineProperty$1({
8446
8472
  Row: true
@@ -8557,13 +8583,13 @@ Spinner.defaultProps = {
8557
8583
  size: 'medium'
8558
8584
  };
8559
8585
 
8560
- var _excluded$g = ["value", "defaultValue", "onRelease", "onChange"];
8586
+ var _excluded$h = ["value", "defaultValue", "onRelease", "onChange"];
8561
8587
  var Slider = function Slider(props) {
8562
8588
  var valueProp = props.value,
8563
8589
  defaultValue = props.defaultValue,
8564
8590
  onRelease = props.onRelease,
8565
8591
  onChange = props.onChange,
8566
- rest = _objectWithoutProperties(props, _excluded$g);
8592
+ rest = _objectWithoutProperties(props, _excluded$h);
8567
8593
 
8568
8594
  var _React$useState = React.useState(valueProp === undefined ? defaultValue : valueProp),
8569
8595
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -8596,7 +8622,7 @@ Slider.defaultProps = _objectSpread2(_objectSpread2({}, MultiSlider.defaultProps
8596
8622
  defaultValue: 0
8597
8623
  });
8598
8624
 
8599
- var _excluded$f = ["value", "defaultValue", "onChange", "onRelease"];
8625
+ var _excluded$g = ["value", "defaultValue", "onChange", "onRelease"];
8600
8626
  var RangeIndex;
8601
8627
 
8602
8628
  (function (RangeIndex) {
@@ -8609,7 +8635,7 @@ var RangeSlider = function RangeSlider(props) {
8609
8635
  defaultValue = props.defaultValue,
8610
8636
  onChange = props.onChange,
8611
8637
  onRelease = props.onRelease,
8612
- rest = _objectWithoutProperties(props, _excluded$f);
8638
+ rest = _objectWithoutProperties(props, _excluded$g);
8613
8639
 
8614
8640
  var _React$useState = React.useState(valueProp === undefined ? defaultValue : valueProp),
8615
8641
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -8645,7 +8671,7 @@ RangeSlider.defaultProps = _objectSpread2(_objectSpread2({}, MultiSlider.default
8645
8671
  defaultValue: [0, 10]
8646
8672
  });
8647
8673
 
8648
- var _excluded$e = ["appearance", "children", "className", "color"];
8674
+ var _excluded$f = ["appearance", "children", "className", "color"];
8649
8675
  var Subheading = function Subheading(props) {
8650
8676
  var _classNames;
8651
8677
 
@@ -8653,7 +8679,7 @@ var Subheading = function Subheading(props) {
8653
8679
  children = props.children,
8654
8680
  className = props.className,
8655
8681
  color = props.color,
8656
- rest = _objectWithoutProperties(props, _excluded$e);
8682
+ rest = _objectWithoutProperties(props, _excluded$f);
8657
8683
 
8658
8684
  var classes = classnames((_classNames = {
8659
8685
  Subheading: true
@@ -8670,7 +8696,7 @@ Subheading.defaultProps = {
8670
8696
  appearance: 'default'
8671
8697
  };
8672
8698
 
8673
- var _excluded$d = ["size", "defaultChecked", "disabled", "onChange", "name", "value", "className", "appearance", "checked"];
8699
+ var _excluded$e = ["size", "defaultChecked", "disabled", "onChange", "name", "value", "className", "appearance", "checked"];
8674
8700
 
8675
8701
  /**
8676
8702
  * ######Switch has two types:
@@ -8690,7 +8716,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function (props, ref) {
8690
8716
  className = props.className;
8691
8717
  props.appearance;
8692
8718
  var checkedProp = props.checked,
8693
- rest = _objectWithoutProperties(props, _excluded$d);
8719
+ rest = _objectWithoutProperties(props, _excluded$e);
8694
8720
 
8695
8721
  var _React$useState = React.useState(checkedProp === undefined ? defaultChecked : checkedProp),
8696
8722
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -8729,7 +8755,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function (props, ref) {
8729
8755
  });
8730
8756
  Switch.displayName = 'Switch';
8731
8757
 
8732
- var _excluded$c = ["rows", "resize", "disabled", "name", "placeholder", "value", "defaultValue", "required", "error", "onChange", "onClick", "onBlur", "onFocus", "className"];
8758
+ var _excluded$d = ["rows", "resize", "disabled", "name", "placeholder", "value", "defaultValue", "required", "error", "onChange", "onClick", "onBlur", "onFocus", "className"];
8733
8759
  var Textarea = /*#__PURE__*/React.forwardRef(function (props, ref) {
8734
8760
  var _classNames;
8735
8761
 
@@ -8749,7 +8775,7 @@ var Textarea = /*#__PURE__*/React.forwardRef(function (props, ref) {
8749
8775
  onBlur = props.onBlur,
8750
8776
  onFocus = props.onFocus,
8751
8777
  className = props.className,
8752
- rest = _objectWithoutProperties(props, _excluded$c);
8778
+ rest = _objectWithoutProperties(props, _excluded$d);
8753
8779
 
8754
8780
  var classes = classnames((_classNames = {}, _defineProperty$1(_classNames, 'Textarea', true), _defineProperty$1(_classNames, 'Textarea--resize', resize), _defineProperty$1(_classNames, 'Textarea--error', error), _classNames), className);
8755
8781
  return /*#__PURE__*/React.createElement("textarea", _extends$2({
@@ -13878,7 +13904,7 @@ _defineProperty$1(PopperWrapper, "defaultProps", {
13878
13904
  style: {}
13879
13905
  });
13880
13906
 
13881
- var _excluded$b = ["position", "customStyle", "dark", "children", "onToggle", "className", "hideOnReferenceEscape", "boundaryElement"];
13907
+ var _excluded$c = ["position", "customStyle", "dark", "children", "onToggle", "className", "hideOnReferenceEscape", "boundaryElement"];
13882
13908
  var propsList = ['appendToBody', 'trigger', 'hoverable', 'on', 'open', 'closeOnBackdropClick', 'offset', 'closeOnScroll'];
13883
13909
  var Popover = function Popover(props) {
13884
13910
  var position = props.position,
@@ -13890,7 +13916,7 @@ var Popover = function Popover(props) {
13890
13916
  hideOnReferenceEscape = props.hideOnReferenceEscape,
13891
13917
  _props$boundaryElemen = props.boundaryElement,
13892
13918
  boundaryElement = _props$boundaryElemen === void 0 ? document.body : _props$boundaryElemen,
13893
- rest = _objectWithoutProperties(props, _excluded$b);
13919
+ rest = _objectWithoutProperties(props, _excluded$c);
13894
13920
 
13895
13921
  var _React$useState = React.useState(!!props.open),
13896
13922
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -13942,7 +13968,7 @@ Popover.defaultProps = Object.assign({}, filterProps(PopperWrapper.defaultProps,
13942
13968
  customStyle: {}
13943
13969
  });
13944
13970
 
13945
- var _excluded$a = ["type", "onClick"];
13971
+ var _excluded$b = ["type", "onClick"];
13946
13972
  var keyCodes = {
13947
13973
  BACKSPACE: 'Backspace',
13948
13974
  DELETE: 'Delete',
@@ -14061,7 +14087,7 @@ var ChipInput = function ChipInput(props) {
14061
14087
  var _chipOptions$type = chipOptions.type,
14062
14088
  type = _chipOptions$type === void 0 ? 'input' : _chipOptions$type,
14063
14089
  _onClick = chipOptions.onClick,
14064
- rest = _objectWithoutProperties(chipOptions, _excluded$a);
14090
+ rest = _objectWithoutProperties(chipOptions, _excluded$b);
14065
14091
 
14066
14092
  return /*#__PURE__*/React.createElement(Chip, _extends$2({
14067
14093
  "data-test": "DesignSystem-ChipInput--Chip",
@@ -14289,7 +14315,7 @@ var MenuItem = function MenuItem(props) {
14289
14315
  "data-test": "DesignSystem-VerticalNav--Icon",
14290
14316
  className: expanded ? 'mr-4' : '',
14291
14317
  name: menu.icon,
14292
- variations: menu.iconVariations
14318
+ type: menu.iconType
14293
14319
  }), expanded && /*#__PURE__*/React.createElement(_MenuLabel, {
14294
14320
  label: menu.label,
14295
14321
  labelColor: itemColor
@@ -14485,7 +14511,7 @@ var HorizontalNav = function HorizontalNav(props) {
14485
14511
  return /*#__PURE__*/React.createElement(Icon, {
14486
14512
  className: "mr-3 HorizontalNav-animate",
14487
14513
  name: menu.icon,
14488
- variations: menu.iconVariations,
14514
+ type: menu.iconType,
14489
14515
  "data-test": "DesignSystem-HorizontalNav--Icon"
14490
14516
  });
14491
14517
  }
@@ -14535,7 +14561,7 @@ var HorizontalNav = function HorizontalNav(props) {
14535
14561
  }), list);
14536
14562
  };
14537
14563
 
14538
- var _excluded$9 = ["children", "tooltip"];
14564
+ var _excluded$a = ["children", "tooltip"];
14539
14565
  var tooltipPropsList = ['trigger', 'on', 'open', 'offset', 'onToggle', 'dark', 'customStyle', 'closeOnBackdropClick', 'hideOnReferenceEscape', 'closeOnScroll'];
14540
14566
  var positionValue = {
14541
14567
  bottom: 'bottom',
@@ -14550,7 +14576,7 @@ var positionValue = {
14550
14576
  var Tooltip = function Tooltip(props) {
14551
14577
  var children = props.children,
14552
14578
  tooltip = props.tooltip,
14553
- rest = _objectWithoutProperties(props, _excluded$9);
14579
+ rest = _objectWithoutProperties(props, _excluded$a);
14554
14580
 
14555
14581
  var tooltipWrapper = /*#__PURE__*/React.createElement("div", {
14556
14582
  className: "Tooltip"
@@ -14626,7 +14652,7 @@ Dialog.defaultProps = {
14626
14652
  secondaryButtonAppearance: 'basic'
14627
14653
  };
14628
14654
 
14629
- var _excluded$8 = ["label"];
14655
+ var _excluded$9 = ["label"];
14630
14656
  var OverlayFooter = function OverlayFooter(props) {
14631
14657
  var open = props.open,
14632
14658
  className = props.className,
@@ -14663,7 +14689,7 @@ var OverlayFooter = function OverlayFooter(props) {
14663
14689
  className: classes
14664
14690
  }), actions.map(function (_ref, index) {
14665
14691
  _ref.label;
14666
- var options = _objectWithoutProperties(_ref, _excluded$8);
14692
+ var options = _objectWithoutProperties(_ref, _excluded$9);
14667
14693
 
14668
14694
  return /*#__PURE__*/React.createElement(Button, _extends$2({
14669
14695
  type: "button"
@@ -15616,7 +15642,7 @@ Collapsible.defaultProps = {
15616
15642
  withTrigger: true
15617
15643
  };
15618
15644
 
15619
- var Status = function Status(props) {
15645
+ var Status$1 = function Status(props) {
15620
15646
  var type = props.type,
15621
15647
  time = props.time,
15622
15648
  className = props.className,
@@ -15711,7 +15737,7 @@ var Status = function Status(props) {
15711
15737
  return null;
15712
15738
  }
15713
15739
  };
15714
- Status.displayName = 'Status';
15740
+ Status$1.displayName = 'Status';
15715
15741
 
15716
15742
  var Box = function Box(props) {
15717
15743
  var _classNames;
@@ -15792,7 +15818,7 @@ var ChatMessage = function ChatMessage(props) {
15792
15818
  typingText: typingText,
15793
15819
  isTyping: isTyping,
15794
15820
  statusType: statusType
15795
- }), !isTyping && statusOptions && /*#__PURE__*/React.createElement(Status, statusOptions));
15821
+ }), !isTyping && statusOptions && /*#__PURE__*/React.createElement(Status$1, statusOptions));
15796
15822
  };
15797
15823
  ChatMessage.displayName = 'ChatMessage';
15798
15824
 
@@ -16024,7 +16050,7 @@ Pagination.defaultProps = {
16024
16050
  pageJumpDebounceDuration: 750
16025
16051
  };
16026
16052
 
16027
- var _excluded$7 = ["onChange"];
16053
+ var _excluded$8 = ["onChange"];
16028
16054
  var EditableInput = function EditableInput(props) {
16029
16055
  var _classNames2, _classNames4;
16030
16056
 
@@ -16038,7 +16064,7 @@ var EditableInput = function EditableInput(props) {
16038
16064
  className = props.className;
16039
16065
 
16040
16066
  var onInputChange = inputOptions.onChange,
16041
- rest = _objectWithoutProperties(inputOptions, _excluded$7);
16067
+ rest = _objectWithoutProperties(inputOptions, _excluded$8);
16042
16068
 
16043
16069
  var _React$useState = React.useState(props.value),
16044
16070
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -16201,7 +16227,7 @@ EditableInput.defaultProps = {
16201
16227
  inputOptions: {}
16202
16228
  };
16203
16229
 
16204
- var _excluded$6 = ["onChange", "chipOptions"],
16230
+ var _excluded$7 = ["onChange", "chipOptions"],
16205
16231
  _excluded2$1 = ["onClick"];
16206
16232
  var EditableChipInput = function EditableChipInput(props) {
16207
16233
  var _classNames3;
@@ -16215,7 +16241,7 @@ var EditableChipInput = function EditableChipInput(props) {
16215
16241
  var onChipInputChange = chipInputOptions.onChange,
16216
16242
  _chipInputOptions$chi = chipInputOptions.chipOptions,
16217
16243
  chipOptions = _chipInputOptions$chi === void 0 ? {} : _chipInputOptions$chi,
16218
- rest = _objectWithoutProperties(chipInputOptions, _excluded$6);
16244
+ rest = _objectWithoutProperties(chipInputOptions, _excluded$7);
16219
16245
 
16220
16246
  var _onClick = chipOptions.onClick,
16221
16247
  chipObject = _objectWithoutProperties(chipOptions, _excluded2$1);
@@ -17031,7 +17057,7 @@ var getCustomDates = function getCustomDates() {
17031
17057
  };
17032
17058
  };
17033
17059
 
17034
- var _excluded$5 = ["startDate", "endDate", "yearNav", "monthNav", "open", "inputFormat", "outputFormat", "startInputOptions", "endInputOptions", "validators", "withInput", "position", "disabledBefore", "disabledAfter", "onRangeChange", "rangeLimit"];
17060
+ var _excluded$6 = ["startDate", "endDate", "yearNav", "monthNav", "open", "inputFormat", "outputFormat", "startInputOptions", "endInputOptions", "validators", "withInput", "position", "disabledBefore", "disabledAfter", "onRangeChange", "rangeLimit"];
17035
17061
  var DateRangePicker = /*#__PURE__*/function (_React$Component) {
17036
17062
  _inherits(DateRangePicker, _React$Component);
17037
17063
 
@@ -17301,7 +17327,7 @@ var DateRangePicker = /*#__PURE__*/function (_React$Component) {
17301
17327
  disabledAfter = _this$props6.disabledAfter;
17302
17328
  _this$props6.onRangeChange;
17303
17329
  var rangeLimit = _this$props6.rangeLimit,
17304
- rest = _objectWithoutProperties(_this$props6, _excluded$5);
17330
+ rest = _objectWithoutProperties(_this$props6, _excluded$6);
17305
17331
 
17306
17332
  var _this$state3 = this.state,
17307
17333
  startDate = _this$state3.startDate,
@@ -17570,7 +17596,7 @@ var Tabs = function Tabs(props) {
17570
17596
  count = _ref.count,
17571
17597
  icon = _ref.icon,
17572
17598
  disabled = _ref.disabled,
17573
- iconVariations = _ref.iconVariations;
17599
+ iconType = _ref.iconType;
17574
17600
 
17575
17601
  if (count !== undefined) {
17576
17602
  return /*#__PURE__*/React.createElement(Pills, {
@@ -17588,7 +17614,7 @@ var Tabs = function Tabs(props) {
17588
17614
  "data-test": "DesignSystem-Tabs--Icon",
17589
17615
  className: "mr-4 ".concat(iconClass),
17590
17616
  name: icon,
17591
- variations: iconVariations,
17617
+ type: iconType,
17592
17618
  appearance: iconAppearance
17593
17619
  });
17594
17620
  }
@@ -18205,7 +18231,7 @@ function _fromFileEntry() {
18205
18231
  return _fromFileEntry.apply(this, arguments);
18206
18232
  }
18207
18233
 
18208
- var _excluded$4 = ["refKey", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnterCallback", "onDragOverCallback", "onDragLeaveCallback", "onDropCallback"],
18234
+ var _excluded$5 = ["refKey", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnterCallback", "onDragOverCallback", "onDragLeaveCallback", "onDropCallback"],
18209
18235
  _excluded2 = ["refKey", "onChange", "onClick"];
18210
18236
  var initialState = {
18211
18237
  isFocused: false,
@@ -18483,7 +18509,7 @@ var DropzoneBase = function DropzoneBase(props) {
18483
18509
  onDragOverCallback = _ref.onDragOverCallback,
18484
18510
  onDragLeaveCallback = _ref.onDragLeaveCallback,
18485
18511
  onDropCallback = _ref.onDropCallback,
18486
- rest = _objectWithoutProperties(_ref, _excluded$4);
18512
+ rest = _objectWithoutProperties(_ref, _excluded$5);
18487
18513
 
18488
18514
  return _objectSpread2(_defineProperty$1({
18489
18515
  onDragEnter: composeDragHandler(composeEventHandlers(onDragEnterCallback, onDragEnterCb)),
@@ -20681,7 +20707,7 @@ Header.defaultProps = {
20681
20707
  showFilters: true
20682
20708
  };
20683
20709
 
20684
- var _excluded$3 = ["children"];
20710
+ var _excluded$4 = ["children"];
20685
20711
 
20686
20712
  var defaultErrorTemplate = function defaultErrorTemplate(props) {
20687
20713
  var _props$errorType = props.errorType,
@@ -21066,7 +21092,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
21066
21092
 
21067
21093
  var _ref = headerOptions,
21068
21094
  headerChildren = _ref.children,
21069
- headerAttr = _objectWithoutProperties(_ref, _excluded$3);
21095
+ headerAttr = _objectWithoutProperties(_ref, _excluded$4);
21070
21096
 
21071
21097
  var classes = className ? " ".concat(className) : '';
21072
21098
  var totalRecords = this.state.totalRecords;
@@ -21339,9 +21365,84 @@ Navigation.defaultProps = {
21339
21365
  rounded: false
21340
21366
  };
21341
21367
 
21342
- var PageHeader = function PageHeader(props) {
21343
- var _classNames;
21368
+ var Status = function Status(props) {
21369
+ var status = props.status,
21370
+ meta = props.meta,
21371
+ navigationPosition = props.navigationPosition,
21372
+ navigation = props.navigation,
21373
+ tabs = props.tabs;
21374
+ var statusClasses = classnames({
21375
+ 'PageHeader-statusWrapper': true,
21376
+ 'mb-3': navigationPosition === 'bottom' && navigation || tabs
21377
+ });
21378
+ return /*#__PURE__*/React.createElement(React.Fragment, null, (status || meta) && /*#__PURE__*/React.createElement("div", {
21379
+ className: statusClasses,
21380
+ "data-test": "DesignSystem-PageHeader--Status"
21381
+ }, status, meta));
21382
+ };
21383
+ var Action = function Action(props) {
21384
+ var actions = props.actions,
21385
+ navigation = props.navigation,
21386
+ stepper = props.stepper;
21387
+ return /*#__PURE__*/React.createElement(React.Fragment, null, actions ? /*#__PURE__*/React.createElement(Column, {
21388
+ size: "4",
21389
+ sizeXL: "4",
21390
+ sizeM: "4",
21391
+ "data-test": "DesignSystem-PageHeader--Actions"
21392
+ }, /*#__PURE__*/React.createElement("div", {
21393
+ className: "PageHeader-actionsWrapper"
21394
+ }, actions)) : (navigation || stepper) && /*#__PURE__*/React.createElement(Column, {
21395
+ size: "4",
21396
+ sizeXL: "4",
21397
+ sizeM: "4",
21398
+ "data-test": "DesignSystem-PageHeader--Actions"
21399
+ }, /*#__PURE__*/React.createElement("div", {
21400
+ className: "PageHeader-actionsWrapper"
21401
+ })));
21402
+ };
21403
+ var Nav = function Nav(props) {
21404
+ var navigation = props.navigation,
21405
+ stepper = props.stepper;
21344
21406
 
21407
+ if (!navigation && !stepper) {
21408
+ return null;
21409
+ }
21410
+
21411
+ return /*#__PURE__*/React.createElement("div", {
21412
+ className: "PageHeader-navigationWrapper",
21413
+ "data-test": "DesignSystem-PageHeader--Nav"
21414
+ }, navigation || stepper);
21415
+ };
21416
+ var CenterNav = function CenterNav(props) {
21417
+ var colSize = props.colSize,
21418
+ breadcrumbs = props.breadcrumbs,
21419
+ navigationPosition = props.navigationPosition;
21420
+ return /*#__PURE__*/React.createElement(React.Fragment, null, (!breadcrumbs || navigationPosition === 'center') && colSize === '4' && /*#__PURE__*/React.createElement(Column, {
21421
+ size: "4",
21422
+ sizeXL: "4",
21423
+ sizeM: "4",
21424
+ "data-test": "DesignSystem-PageHeader--CenterNav"
21425
+ }, /*#__PURE__*/React.createElement(Nav, props)));
21426
+ };
21427
+ var BackButton = function BackButton(props) {
21428
+ var button = props.button;
21429
+ return /*#__PURE__*/React.createElement(React.Fragment, null, button && /*#__PURE__*/React.createElement("div", {
21430
+ className: "mr-5 my-3",
21431
+ "data-test": "DesignSystem-PageHeader--Button"
21432
+ }, button));
21433
+ };
21434
+ var Title = function Title(props) {
21435
+ var badge = props.badge,
21436
+ title = props.title;
21437
+ return /*#__PURE__*/React.createElement("div", {
21438
+ className: "PageHeader-titleWrapper",
21439
+ "data-test": "DesignSystem-PageHeader--Title"
21440
+ }, /*#__PURE__*/React.createElement(Heading, {
21441
+ className: "PageHeader-title"
21442
+ }, title), badge);
21443
+ };
21444
+
21445
+ var PageHeader = function PageHeader(props) {
21345
21446
  var title = props.title,
21346
21447
  navigation = props.navigation,
21347
21448
  stepper = props.stepper,
@@ -21353,57 +21454,64 @@ var PageHeader = function PageHeader(props) {
21353
21454
  status = props.status,
21354
21455
  meta = props.meta,
21355
21456
  navigationPosition = props.navigationPosition,
21356
- className = props.className;
21457
+ className = props.className,
21458
+ button = props.button;
21357
21459
  var baseProps = extractBaseProps(props);
21358
- var wrapperClasses = classnames((_classNames = {
21460
+ var wrapperClasses = classnames(_defineProperty$1({
21359
21461
  'PageHeader-wrapper': true
21360
- }, _defineProperty$1(_classNames, 'PageHeader-wrapper--separator', separator), _defineProperty$1(_classNames, 'PageHeader-wrapper--withTabs', tabs), _classNames), className);
21462
+ }, 'PageHeader-wrapper--withTabs', tabs), className);
21361
21463
  var classes = classnames({
21362
21464
  PageHeader: true
21363
21465
  });
21364
-
21365
- var renderNav = function renderNav() {
21366
- if (!navigation && !stepper) {
21367
- return null;
21368
- }
21369
-
21370
- return /*#__PURE__*/React.createElement("div", {
21371
- className: "PageHeader-navigationWrapper"
21372
- }, navigation || stepper);
21373
- };
21374
-
21375
21466
  var colSize = (navigation || stepper) && navigationPosition === 'center' ? '4' : actions ? '8' : '12';
21376
- return /*#__PURE__*/React.createElement("div", _extends$2({}, baseProps, {
21467
+ var centerNavProps = {
21468
+ colSize: colSize,
21469
+ breadcrumbs: breadcrumbs,
21470
+ navigationPosition: navigationPosition,
21471
+ navigation: navigation,
21472
+ stepper: stepper
21473
+ };
21474
+ var statusProps = {
21475
+ status: status,
21476
+ meta: meta,
21477
+ navigationPosition: navigationPosition,
21478
+ navigation: navigation,
21479
+ tabs: tabs
21480
+ };
21481
+ return /*#__PURE__*/React.createElement("div", {
21482
+ "data-test": "DesignSystem-PageHeader"
21483
+ }, /*#__PURE__*/React.createElement("div", _extends$2({}, baseProps, {
21377
21484
  className: wrapperClasses
21378
- }), breadcrumbs, /*#__PURE__*/React.createElement("div", {
21485
+ }), breadcrumbs && /*#__PURE__*/React.createElement("div", {
21486
+ className: "pl-6",
21487
+ "data-test": "DesignSystem-PageHeader--Breadcrumbs"
21488
+ }, breadcrumbs), /*#__PURE__*/React.createElement("div", {
21489
+ className: "d-flex pl-6"
21490
+ }, /*#__PURE__*/React.createElement(BackButton, {
21491
+ button: button
21492
+ }), /*#__PURE__*/React.createElement("div", {
21379
21493
  className: classes
21380
21494
  }, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Column, {
21381
21495
  size: colSize,
21382
21496
  sizeXL: colSize,
21383
21497
  sizeM: colSize
21384
- }, /*#__PURE__*/React.createElement("div", {
21385
- className: "PageHeader-titleWrapper"
21386
- }, /*#__PURE__*/React.createElement(Heading, {
21387
- className: "PageHeader-title"
21388
- }, title), badge)), (!breadcrumbs || navigationPosition === 'center') && colSize === '4' && /*#__PURE__*/React.createElement(Column, {
21389
- size: "4",
21390
- sizeXL: "4",
21391
- sizeM: "4"
21392
- }, renderNav()), actions ? /*#__PURE__*/React.createElement(Column, {
21393
- size: "4",
21394
- sizeXL: "4",
21395
- sizeM: "4"
21396
- }, /*#__PURE__*/React.createElement("div", {
21397
- className: "PageHeader-actionsWrapper"
21398
- }, actions)) : (navigation || stepper) && /*#__PURE__*/React.createElement(Column, {
21399
- size: "4",
21400
- sizeXL: "4",
21401
- sizeM: "4"
21402
- }, /*#__PURE__*/React.createElement("div", {
21403
- className: "PageHeader-actionsWrapper"
21404
- })))), (status || meta) && /*#__PURE__*/React.createElement("div", {
21405
- className: "PageHeader-statusWrapper"
21406
- }, status, meta), breadcrumbs && navigationPosition === 'bottom' && renderNav(), tabs && /*#__PURE__*/React.createElement("div", null, tabs));
21498
+ }, /*#__PURE__*/React.createElement(Title, {
21499
+ badge: badge,
21500
+ title: title
21501
+ })), /*#__PURE__*/React.createElement(CenterNav, centerNavProps), /*#__PURE__*/React.createElement(Action, {
21502
+ actions: actions,
21503
+ navigation: navigation,
21504
+ stepper: stepper
21505
+ })), /*#__PURE__*/React.createElement(Status, statusProps))), /*#__PURE__*/React.createElement("div", {
21506
+ className: "pl-3"
21507
+ }, navigationPosition === 'bottom' && /*#__PURE__*/React.createElement(Nav, {
21508
+ navigation: navigation,
21509
+ stepper: stepper
21510
+ }), tabs && /*#__PURE__*/React.createElement("div", {
21511
+ "data-test": "DesignSystem-PageHeader--Tabs"
21512
+ }, tabs))), separator && /*#__PURE__*/React.createElement(Divider, {
21513
+ appearance: "header"
21514
+ }));
21407
21515
  };
21408
21516
  PageHeader.defaultProps = {
21409
21517
  navigationPosition: 'center',
@@ -21548,7 +21656,7 @@ FileList.defaultProps = {
21548
21656
  };
21549
21657
  FileList.displayName = 'FileList';
21550
21658
 
21551
- var _excluded$2 = ["type", "fields", "placeholder", "autoFocus", "onComplete", "onFocus", "onBlur", "className", "value"];
21659
+ var _excluded$3 = ["type", "fields", "placeholder", "autoFocus", "onComplete", "onFocus", "onBlur", "className", "value"];
21552
21660
  var KEY_CODE = {
21553
21661
  backspace: 'Backspace',
21554
21662
  left: 'ArrowLeft',
@@ -21573,7 +21681,7 @@ var VerificationCodeInput = function VerificationCodeInput(props) {
21573
21681
  onBlur = props.onBlur,
21574
21682
  className = props.className;
21575
21683
  props.value;
21576
- var rest = _objectWithoutProperties(props, _excluded$2);
21684
+ var rest = _objectWithoutProperties(props, _excluded$3);
21577
21685
 
21578
21686
  var initialValues = useMemo(function () {
21579
21687
  if (props.value && props.value.length) {
@@ -21979,7 +22087,7 @@ var HelpText = function HelpText(props) {
21979
22087
  };
21980
22088
  HelpText.displayName = 'HelpText';
21981
22089
 
21982
- var _excluded$1 = ["children", "type", "className", "disabled", "tabIndex", "icon", "subtle", "size", "iconAlign", "iconVariations"];
22090
+ var _excluded$2 = ["children", "type", "className", "disabled", "tabIndex", "icon", "subtle", "size", "iconAlign", "iconType"];
21983
22091
  var sizeMapping = {
21984
22092
  tiny: 12,
21985
22093
  regular: 16
@@ -21996,8 +22104,8 @@ var LinkButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
21996
22104
  subtle = props.subtle,
21997
22105
  size = props.size,
21998
22106
  iconAlign = props.iconAlign,
21999
- iconVariations = props.iconVariations,
22000
- rest = _objectWithoutProperties(props, _excluded$1);
22107
+ iconType = props.iconType,
22108
+ rest = _objectWithoutProperties(props, _excluded$2);
22001
22109
 
22002
22110
  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
22111
  var iconClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'LinkButton-icon', true), _defineProperty$1(_classNames2, "LinkButton-icon--".concat(iconAlign), children && iconAlign), _classNames2));
@@ -22013,7 +22121,7 @@ var LinkButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
22013
22121
  }, /*#__PURE__*/React.createElement(Icon, {
22014
22122
  "data-test": "DesignSystem-LinkButton--Icon",
22015
22123
  name: icon,
22016
- variations: iconVariations,
22124
+ type: iconType,
22017
22125
  size: size && sizeMapping[size]
22018
22126
  })), children));
22019
22127
  });
@@ -22024,7 +22132,7 @@ LinkButton.defaultProps = {
22024
22132
  iconAlign: 'left'
22025
22133
  };
22026
22134
 
22027
- var _excluded = ["children", "disabled", "className", "zIndex", "onClick"];
22135
+ var _excluded$1 = ["children", "disabled", "className", "zIndex", "onClick"];
22028
22136
  var ActionCard = function ActionCard(props) {
22029
22137
  var _classNames;
22030
22138
 
@@ -22033,7 +22141,7 @@ var ActionCard = function ActionCard(props) {
22033
22141
  className = props.className,
22034
22142
  zIndex = props.zIndex,
22035
22143
  onClick = props.onClick,
22036
- rest = _objectWithoutProperties(props, _excluded);
22144
+ rest = _objectWithoutProperties(props, _excluded$1);
22037
22145
 
22038
22146
  var classes = classnames((_classNames = {}, _defineProperty$1(_classNames, 'ActionCard', true), _defineProperty$1(_classNames, 'ActionCard--disabled', disabled), _classNames), className);
22039
22147
 
@@ -22060,6 +22168,132 @@ var ActionCard = function ActionCard(props) {
22060
22168
  };
22061
22169
  ActionCard.displayName = 'ActionCard';
22062
22170
 
22063
- var version = "2.21.0";
22171
+ var selectedCardValues = new Map();
22172
+ function useMultiSelect() {
22173
+ var _React$useState = React.useState([]),
22174
+ _React$useState2 = _slicedToArray(_React$useState, 2),
22175
+ selectedCardIds = _React$useState2[0],
22176
+ setSelectedCardIds = _React$useState2[1];
22177
+
22178
+ var isCardSelected = function isCardSelected(id) {
22179
+ return selectedCardIds.includes(id);
22180
+ };
22181
+
22182
+ var updateCardSelection = function updateCardSelection(id, value) {
22183
+ var idList = _toConsumableArray(selectedCardIds);
22184
+
22185
+ if (isCardSelected(id)) {
22186
+ idList = selectedCardIds.filter(function (cardKey) {
22187
+ return id !== cardKey;
22188
+ });
22189
+ selectedCardValues["delete"](id);
22190
+ } else {
22191
+ idList.push(id);
22192
+ selectedCardValues.set(id, value);
22193
+ }
22194
+
22195
+ setSelectedCardIds(idList);
22196
+ };
22197
+
22198
+ return {
22199
+ selectedCardIds: selectedCardIds,
22200
+ selectedCardValues: selectedCardValues,
22201
+ isCardSelected: isCardSelected,
22202
+ updateCardSelection: updateCardSelection
22203
+ };
22204
+ }
22205
+
22206
+ function useSingleSelect() {
22207
+ var _React$useState = React.useState([]),
22208
+ _React$useState2 = _slicedToArray(_React$useState, 2),
22209
+ selectedCardIds = _React$useState2[0],
22210
+ setSelectedCardIds = _React$useState2[1];
22211
+
22212
+ var _React$useState3 = React.useState([]),
22213
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
22214
+ selectedCardValues = _React$useState4[0],
22215
+ setSelectedCardValues = _React$useState4[1];
22216
+
22217
+ var isCardSelected = function isCardSelected(id) {
22218
+ return selectedCardIds.includes(id);
22219
+ };
22220
+
22221
+ var updateCardSelection = function updateCardSelection(id, value) {
22222
+ var idList = _toConsumableArray(selectedCardIds);
22223
+
22224
+ var valueList = _toConsumableArray(selectedCardValues);
22225
+
22226
+ if (selectedCardIds.includes(id)) {
22227
+ idList = [];
22228
+ valueList = [];
22229
+ } else {
22230
+ idList = [id];
22231
+ valueList = value ? [value] : [];
22232
+ }
22233
+
22234
+ setSelectedCardIds(idList);
22235
+ setSelectedCardValues(valueList);
22236
+ };
22237
+
22238
+ return {
22239
+ selectedCardIds: selectedCardIds,
22240
+ selectedCardValues: selectedCardValues,
22241
+ isCardSelected: isCardSelected,
22242
+ updateCardSelection: updateCardSelection
22243
+ };
22244
+ }
22245
+
22246
+ var _excluded = ["children", "onClick", "disabled", "id", "cardValue", "overlayZIndex", "selected", "className"];
22247
+ var SelectionCard = function SelectionCard(props) {
22248
+ var _classNames;
22249
+
22250
+ var children = props.children,
22251
+ onClick = props.onClick,
22252
+ disabled = props.disabled,
22253
+ id = props.id,
22254
+ cardValue = props.cardValue,
22255
+ overlayZIndex = props.overlayZIndex,
22256
+ selected = props.selected,
22257
+ className = props.className,
22258
+ rest = _objectWithoutProperties(props, _excluded);
22259
+
22260
+ 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);
22261
+
22262
+ var onClickHandler = function onClickHandler(event) {
22263
+ onClick && onClick(event, id, cardValue);
22264
+ };
22265
+
22266
+ var onKeyDownHandler = function onKeyDownHandler(event) {
22267
+ if (event.key === 'Enter') {
22268
+ onClickHandler(event);
22269
+ }
22270
+ };
22271
+
22272
+ return /*#__PURE__*/React.createElement("div", _extends$2({
22273
+ role: "checkbox",
22274
+ "aria-checked": selected,
22275
+ tabIndex: 0,
22276
+ onKeyDown: onKeyDownHandler,
22277
+ onClick: function onClick(event) {
22278
+ return onClickHandler(event);
22279
+ },
22280
+ className: classes,
22281
+ "data-test": "DesignSystem-SelectionCard"
22282
+ }, rest), /*#__PURE__*/React.createElement("div", {
22283
+ className: "Selection-card-overlay",
22284
+ style: {
22285
+ zIndex: overlayZIndex
22286
+ },
22287
+ "data-test": "DesignSystem-SelectionCard-Overlay"
22288
+ }), children);
22289
+ };
22290
+ SelectionCard.defaultProps = {
22291
+ disabled: false,
22292
+ overlayZIndex: 2
22293
+ };
22294
+ SelectionCard.useMultiSelect = useMultiSelect;
22295
+ SelectionCard.useSingleSelect = useSingleSelect;
22296
+
22297
+ var version = "2.23.0";
22064
22298
 
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 };
22299
+ 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 };