@innovaccer/design-system 2.34.0 → 2.35.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.
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * Generated on: 1715851595101
3
+ * Generated on: 1716895234745
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.34.0
5
+ * Version: v2.35.0
6
6
  * License: MIT
7
7
  * Docs: https://innovaccer.github.io/design-system
8
8
  */
@@ -1358,7 +1358,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
1358
1358
  })));
1359
1359
  };
1360
1360
 
1361
- var _excluded$V = ["size", "appearance", "iconAlign", "tabIndex", "largeIcon", "type", "children", "icon", "expanded", "selected", "loading", "disabled", "className", "tooltip", "iconType"];
1361
+ var _excluded$Z = ["size", "appearance", "iconAlign", "tabIndex", "largeIcon", "type", "children", "icon", "expanded", "selected", "loading", "disabled", "className", "tooltip", "iconType"];
1362
1362
  var sizeMapping$3 = {
1363
1363
  tiny: 12,
1364
1364
  regular: 16,
@@ -1387,7 +1387,7 @@ var ButtonElement = /*#__PURE__*/React.forwardRef(function (props, ref) {
1387
1387
  className = props.className;
1388
1388
  props.tooltip;
1389
1389
  var iconType = props.iconType,
1390
- rest = _objectWithoutProperties(props, _excluded$V);
1390
+ rest = _objectWithoutProperties(props, _excluded$Z);
1391
1391
 
1392
1392
  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));
1393
1393
  var iconClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'Button-icon', true), _defineProperty$1(_classNames2, "Button-icon--".concat(iconAlign), children && iconAlign), _classNames2));
@@ -2733,7 +2733,7 @@ _defineProperty$1(Calendar, "defaultProps", {
2733
2733
  jumpView: true
2734
2734
  });
2735
2735
 
2736
- var _excluded$U = ["shadow", "children", "className"];
2736
+ var _excluded$Y = ["shadow", "children", "className"];
2737
2737
  var Card = /*#__PURE__*/React.forwardRef(function (props, ref) {
2738
2738
  var _classNames;
2739
2739
 
@@ -2741,7 +2741,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (props, ref) {
2741
2741
  shadow = _props$shadow === void 0 ? 'shadow10' : _props$shadow,
2742
2742
  children = props.children,
2743
2743
  className = props.className,
2744
- rest = _objectWithoutProperties(props, _excluded$U);
2744
+ rest = _objectWithoutProperties(props, _excluded$Y);
2745
2745
 
2746
2746
  var classes = classnames((_classNames = {
2747
2747
  Card: true
@@ -2758,12 +2758,12 @@ Card.defaultProps = {
2758
2758
  shadow: 'shadow10'
2759
2759
  };
2760
2760
 
2761
- var _excluded$T = ["border", "children", "className"];
2761
+ var _excluded$X = ["border", "children", "className"];
2762
2762
  var CardSubdued = /*#__PURE__*/React.forwardRef(function (props, ref) {
2763
2763
  var border = props.border,
2764
2764
  children = props.children,
2765
2765
  className = props.className,
2766
- rest = _objectWithoutProperties(props, _excluded$T);
2766
+ rest = _objectWithoutProperties(props, _excluded$X);
2767
2767
 
2768
2768
  var classes = classnames(_defineProperty$1({
2769
2769
  CardSubdued: true
@@ -2830,7 +2830,7 @@ var isSpaceKey = function isSpaceKey(e) {
2830
2830
  return e.key === 'Space';
2831
2831
  };
2832
2832
 
2833
- var _excluded$S = ["onClick", "onKeyDown", "role", "tabIndex"];
2833
+ var _excluded$W = ["onClick", "onKeyDown", "role", "tabIndex"];
2834
2834
  var allowed = {
2835
2835
  button: new Set(['Enter', 'Space', 'Spacebar', ' ']),
2836
2836
  link: new Set(['Enter']),
@@ -2854,7 +2854,7 @@ var useAccessibilityProps = function useAccessibilityProps(_ref) {
2854
2854
  _ref$role = _ref.role,
2855
2855
  role = _ref$role === void 0 ? 'button' : _ref$role,
2856
2856
  tabIndex = _ref.tabIndex,
2857
- rest = _objectWithoutProperties(_ref, _excluded$S);
2857
+ rest = _objectWithoutProperties(_ref, _excluded$W);
2858
2858
 
2859
2859
  return _objectSpread2({}, onClick ? {
2860
2860
  onClick: onClick,
@@ -2972,14 +2972,14 @@ Icon.defaultProps = {
2972
2972
  size: 16
2973
2973
  };
2974
2974
 
2975
- var _excluded$R = ["children", "componentType", "className"];
2975
+ var _excluded$V = ["children", "componentType", "className"];
2976
2976
 
2977
2977
  var GenericText = function GenericText(_ref, ref) {
2978
2978
  var children = _ref.children,
2979
2979
  _ref$componentType = _ref.componentType,
2980
2980
  componentType = _ref$componentType === void 0 ? 'span' : _ref$componentType,
2981
2981
  className = _ref.className,
2982
- rest = _objectWithoutProperties(_ref, _excluded$R);
2982
+ rest = _objectWithoutProperties(_ref, _excluded$V);
2983
2983
 
2984
2984
  return /*#__PURE__*/React.createElement(componentType, _objectSpread2(_objectSpread2({}, rest), {}, {
2985
2985
  className: className,
@@ -2989,7 +2989,7 @@ var GenericText = function GenericText(_ref, ref) {
2989
2989
 
2990
2990
  var Link$1 = /*#__PURE__*/React.forwardRef(GenericText);
2991
2991
 
2992
- var _excluded$Q = ["appearance", "size", "children", "weight", "small", "className", "color"];
2992
+ var _excluded$U = ["appearance", "size", "children", "weight", "small", "className", "color"];
2993
2993
  var Text = /*#__PURE__*/React.forwardRef(function (props, ref) {
2994
2994
  var _classNames;
2995
2995
 
@@ -3002,7 +3002,7 @@ var Text = /*#__PURE__*/React.forwardRef(function (props, ref) {
3002
3002
  small = props.small,
3003
3003
  className = props.className,
3004
3004
  color = props.color,
3005
- rest = _objectWithoutProperties(props, _excluded$Q);
3005
+ rest = _objectWithoutProperties(props, _excluded$U);
3006
3006
 
3007
3007
  var classes = classnames((_classNames = {
3008
3008
  Text: true
@@ -3290,7 +3290,7 @@ var CheckboxIcon = function CheckboxIcon(props) {
3290
3290
  }
3291
3291
  };
3292
3292
 
3293
- var _excluded$P = ["size", "tabIndex", "defaultChecked", "indeterminate", "label", "error", "disabled", "onChange", "name", "value", "className", "checked", "helpText", "id", "labelRef"];
3293
+ var _excluded$T = ["size", "tabIndex", "defaultChecked", "indeterminate", "label", "error", "disabled", "onChange", "name", "value", "className", "checked", "helpText", "id", "labelRef"];
3294
3294
  var Checkbox = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
3295
3295
  var _classNames, _classNames2, _classNames3, _classNames4, _classNames5, _classNames6;
3296
3296
 
@@ -3312,7 +3312,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
3312
3312
  _props$id = props.id,
3313
3313
  id = _props$id === void 0 ? "".concat(name, "-").concat(label, "-").concat(uidGenerator()) : _props$id,
3314
3314
  labelRef = props.labelRef,
3315
- rest = _objectWithoutProperties(props, _excluded$P);
3315
+ rest = _objectWithoutProperties(props, _excluded$T);
3316
3316
 
3317
3317
  var ref = React.useRef(null);
3318
3318
  React.useImperativeHandle(forwardedRef, function () {
@@ -3395,7 +3395,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
3395
3395
  });
3396
3396
  Checkbox.displayName = 'Checkbox';
3397
3397
 
3398
- var _excluded$O = ["size", "sizeXS", "sizeS", "sizeM", "sizeL", "sizeXL", "className", "children"];
3398
+ var _excluded$S = ["size", "sizeXS", "sizeS", "sizeM", "sizeL", "sizeXL", "className", "children"];
3399
3399
  var Column = /*#__PURE__*/React.forwardRef(function (props, ref) {
3400
3400
  var _classNames;
3401
3401
 
@@ -3407,7 +3407,7 @@ var Column = /*#__PURE__*/React.forwardRef(function (props, ref) {
3407
3407
  sizeXL = props.sizeXL,
3408
3408
  className = props.className,
3409
3409
  children = props.children,
3410
- rest = _objectWithoutProperties(props, _excluded$O);
3410
+ rest = _objectWithoutProperties(props, _excluded$S);
3411
3411
 
3412
3412
  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));
3413
3413
  return /*#__PURE__*/React.createElement("div", _extends$2({
@@ -3518,7 +3518,7 @@ var Trigger$1 = function Trigger(props) {
3518
3518
  }));
3519
3519
  };
3520
3520
 
3521
- var _excluded$N = ["date", "open", "position", "inputFormat", "outputFormat", "inputOptions", "validators", "withInput", "disabledBefore", "disabledAfter", "onDateChange", "closeOnSelect", "size", "showTodayDate", "children", "view"];
3521
+ var _excluded$R = ["date", "open", "position", "inputFormat", "outputFormat", "inputOptions", "validators", "withInput", "disabledBefore", "disabledAfter", "onDateChange", "closeOnSelect", "size", "showTodayDate", "children", "view"];
3522
3522
  var DatePicker = /*#__PURE__*/function (_React$Component) {
3523
3523
  _inherits(DatePicker, _React$Component);
3524
3524
 
@@ -3673,7 +3673,7 @@ var DatePicker = /*#__PURE__*/function (_React$Component) {
3673
3673
  _this$props4$children = _this$props4.children,
3674
3674
  children = _this$props4$children === void 0 ? /*#__PURE__*/React.createElement(React.Fragment, null) : _this$props4$children,
3675
3675
  view = _this$props4.view,
3676
- rest = _objectWithoutProperties(_this$props4, _excluded$N);
3676
+ rest = _objectWithoutProperties(_this$props4, _excluded$R);
3677
3677
 
3678
3678
  var date = this.state.date;
3679
3679
  var months = config.months;
@@ -4739,7 +4739,7 @@ function debounce$1 (delay, atBegin, callback) {
4739
4739
  return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
4740
4740
  }
4741
4741
 
4742
- var _excluded$M = ["triggerSize", "placeholder", "menu", "children", "icon", "disabled", "open", "inlineLabel", "error", "iconType"];
4742
+ var _excluded$Q = ["triggerSize", "placeholder", "menu", "children", "icon", "disabled", "open", "inlineLabel", "error", "iconType"];
4743
4743
  var DropdownButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
4744
4744
  var _classNames, _classNames2;
4745
4745
 
@@ -4756,7 +4756,7 @@ var DropdownButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
4756
4756
  inlineLabel = props.inlineLabel,
4757
4757
  error = props.error,
4758
4758
  iconType = props.iconType,
4759
- rest = _objectWithoutProperties(props, _excluded$M);
4759
+ rest = _objectWithoutProperties(props, _excluded$Q);
4760
4760
 
4761
4761
  var buttonDisabled = disabled ? 'disabled' : 'default';
4762
4762
  var trimmedPlaceholder = placeholder.trim();
@@ -5829,7 +5829,7 @@ var DropdownList = function DropdownList(props) {
5829
5829
 
5830
5830
  DropdownList.displayName = 'DropdownList';
5831
5831
 
5832
- var _excluded$L = ["triggerOptions", "selected", "tabIndex"];
5832
+ var _excluded$P = ["triggerOptions", "selected", "tabIndex"];
5833
5833
  var inputRef = /*#__PURE__*/React.createRef();
5834
5834
 
5835
5835
  /**
@@ -6528,7 +6528,7 @@ var Dropdown = /*#__PURE__*/function (_React$Component) {
6528
6528
  triggerOptions = _this$props14$trigger === void 0 ? {} : _this$props14$trigger;
6529
6529
  _this$props14.selected;
6530
6530
  var tabIndex = _this$props14.tabIndex,
6531
- rest = _objectWithoutProperties(_this$props14, _excluded$L);
6531
+ rest = _objectWithoutProperties(_this$props14, _excluded$P);
6532
6532
 
6533
6533
  var remainingOptionsLen = searchedOptionsLength - options.length;
6534
6534
  var firstEnabledOption = tabIndex ? tabIndex : _isSelectAllPresent(searchTerm, remainingOptionsLen, withSelectAll, withCheckbox) ? 0 : options.findIndex(function (option) {
@@ -6576,7 +6576,7 @@ _defineProperty$1(Dropdown, "defaultProps", {
6576
6576
  searchDebounceDuration: 300
6577
6577
  });
6578
6578
 
6579
- var _excluded$K = ["appearance", "size", "children", "className", "color"];
6579
+ var _excluded$O = ["appearance", "size", "children", "className", "color"];
6580
6580
  var sizeMap = {
6581
6581
  s: 'h5',
6582
6582
  m: 'h4',
@@ -6592,7 +6592,7 @@ var Heading = function Heading(props) {
6592
6592
  children = props.children,
6593
6593
  className = props.className,
6594
6594
  color = props.color,
6595
- rest = _objectWithoutProperties(props, _excluded$K);
6595
+ rest = _objectWithoutProperties(props, _excluded$O);
6596
6596
 
6597
6597
  var classes = classnames((_classNames = {
6598
6598
  Heading: true
@@ -6610,13 +6610,13 @@ Heading.defaultProps = {
6610
6610
  size: 'm'
6611
6611
  };
6612
6612
 
6613
- var _excluded$J = ["className", "iconType"];
6613
+ var _excluded$N = ["className", "iconType"];
6614
6614
  var ActionButton$1 = function ActionButton(props) {
6615
6615
  var _classNames;
6616
6616
 
6617
6617
  var className = props.className,
6618
6618
  iconType = props.iconType,
6619
- rest = _objectWithoutProperties(props, _excluded$J);
6619
+ rest = _objectWithoutProperties(props, _excluded$N);
6620
6620
 
6621
6621
  var iconClass = classnames((_classNames = {}, _defineProperty$1(_classNames, 'ActionButton', true), _defineProperty$1(_classNames, "".concat(className), className), _classNames));
6622
6622
  return /*#__PURE__*/React.createElement(Icon, _extends$2({
@@ -6631,7 +6631,7 @@ ActionButton$1.defaultProps = {
6631
6631
  type: 'rounded'
6632
6632
  };
6633
6633
 
6634
- var _excluded$I = ["size", "type", "minWidth", "defaultValue", "name", "placeholder", "value", "icon", "inlineLabel", "required", "error", "info", "onChange", "onClick", "onClear", "onBlur", "onFocus", "onPaste", "actionIcon", "className", "autoFocus", "disabled", "readOnly", "iconType"];
6634
+ var _excluded$M = ["size", "type", "minWidth", "defaultValue", "name", "placeholder", "value", "icon", "inlineLabel", "required", "error", "info", "onChange", "onClick", "onClear", "onBlur", "onFocus", "onPaste", "actionIcon", "className", "autoFocus", "disabled", "readOnly", "iconType"];
6635
6635
  var sizeMapping$2 = {
6636
6636
  tiny: 12,
6637
6637
  regular: 16,
@@ -6673,7 +6673,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6673
6673
  disabled = props.disabled,
6674
6674
  readOnly = props.readOnly,
6675
6675
  iconType = props.iconType,
6676
- rest = _objectWithoutProperties(props, _excluded$I);
6676
+ rest = _objectWithoutProperties(props, _excluded$M);
6677
6677
 
6678
6678
  var ref = React.useRef(null);
6679
6679
 
@@ -6782,7 +6782,7 @@ Object.assign(Input, {
6782
6782
  ActionButton: ActionButton$1
6783
6783
  });
6784
6784
 
6785
- var _excluded$H = ["size", "defaultValue", "name", "placeholder", "icon", "prefix", "suffix", "error", "min", "max", "onChange", "onClick", "onBlur", "onFocus", "className", "autoFocus", "disabled", "readOnly", "value", "showActionButton", "onKeyDown", "iconType"];
6785
+ var _excluded$L = ["size", "defaultValue", "name", "placeholder", "icon", "prefix", "suffix", "error", "min", "max", "onChange", "onClick", "onBlur", "onFocus", "className", "autoFocus", "disabled", "readOnly", "value", "showActionButton", "onKeyDown", "iconType"];
6786
6786
  var sizeMapping$1 = {
6787
6787
  regular: 16,
6788
6788
  large: 20
@@ -6833,7 +6833,7 @@ var MetricInput = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6833
6833
  showActionButton = _props$showActionButt === void 0 ? true : _props$showActionButt,
6834
6834
  onKeyDown = props.onKeyDown,
6835
6835
  iconType = props.iconType,
6836
- rest = _objectWithoutProperties(props, _excluded$H);
6836
+ rest = _objectWithoutProperties(props, _excluded$L);
6837
6837
 
6838
6838
  var ref = React.useRef(null);
6839
6839
  var isUncontrolled = valueProp === undefined;
@@ -6999,7 +6999,7 @@ var getDefaultValue = function getDefaultValue(mask, placeholderChar) {
6999
6999
  return val;
7000
7000
  };
7001
7001
 
7002
- var _excluded$G = ["mask", "value", "placeholderChar", "validators", "clearOnEmptyBlur", "defaultValue", "mask", "error", "caption", "required", "onChange", "onPaste", "onBlur", "onFocus", "onClear", "className", "id", "helpText"];
7002
+ var _excluded$K = ["mask", "value", "placeholderChar", "validators", "clearOnEmptyBlur", "defaultValue", "mask", "error", "caption", "required", "onChange", "onPaste", "onBlur", "onFocus", "onClear", "className", "id", "helpText"];
7003
7003
 
7004
7004
  /**
7005
7005
  * It works as Uncontrolled Input
@@ -7028,7 +7028,7 @@ var InputMask = /*#__PURE__*/React.forwardRef(function (props, forwardRef) {
7028
7028
  className = props.className,
7029
7029
  id = props.id,
7030
7030
  helpText = props.helpText,
7031
- rest = _objectWithoutProperties(props, _excluded$G);
7031
+ rest = _objectWithoutProperties(props, _excluded$K);
7032
7032
 
7033
7033
  var isEditable = React.useCallback(function (pos) {
7034
7034
  return _typeof(mask[pos]) === 'object';
@@ -7100,12 +7100,21 @@ var InputMask = /*#__PURE__*/React.forwardRef(function (props, forwardRef) {
7100
7100
  end: ((_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.selectionEnd) || 0
7101
7101
  };
7102
7102
  }, [ref.current]);
7103
+ var setSelectionRange_compatible_types = ['text', 'password', 'tel', 'url'];
7103
7104
  var setSelectionPos = React.useCallback(function (pos) {
7104
7105
  if (ref.current) {
7105
7106
  var el = ref.current;
7106
7107
  var start = Math.min(pos.start, pos.end);
7107
7108
  var end = Math.max(pos.start, pos.end);
7108
- el.setSelectionRange(start, end);
7109
+
7110
+ if (setSelectionRange_compatible_types.includes(el.type)) {
7111
+ el.setSelectionRange(start, end);
7112
+ } else {
7113
+ var el_type = el.type;
7114
+ el.type = 'text';
7115
+ el.setSelectionRange(start, end);
7116
+ el.type = el_type;
7117
+ }
7109
7118
  }
7110
7119
  }, [ref.current]);
7111
7120
  var setCursorPosition = React.useCallback(function (val) {
@@ -7332,7 +7341,7 @@ InputMask.utils = {
7332
7341
  };
7333
7342
  var X = InputMask;
7334
7343
 
7335
- var _excluded$F = ["required", "optional", "withInput", "disabled", "children", "className", "info"];
7344
+ var _excluded$J = ["required", "optional", "withInput", "disabled", "children", "className", "info"];
7336
7345
 
7337
7346
  /**
7338
7347
  * *NOTE: Extends props with HTMLProps<HTMLLabelElement>*
@@ -7347,7 +7356,7 @@ var Label = function Label(props) {
7347
7356
  children = props.children,
7348
7357
  className = props.className,
7349
7358
  info = props.info,
7350
- rest = _objectWithoutProperties(props, _excluded$F);
7359
+ rest = _objectWithoutProperties(props, _excluded$J);
7351
7360
 
7352
7361
  var baseProps = extractBaseProps(props);
7353
7362
  var LabelClass = classnames((_classNames = {
@@ -7505,7 +7514,7 @@ var Editable = function Editable(props) {
7505
7514
  };
7506
7515
  Editable.displayName = 'Editable';
7507
7516
 
7508
- var _excluded$E = ["onChange", "onClose"];
7517
+ var _excluded$I = ["onChange", "onClose"];
7509
7518
  var EditableDropdown = function EditableDropdown(props) {
7510
7519
  var _classNames2;
7511
7520
 
@@ -7516,7 +7525,7 @@ var EditableDropdown = function EditableDropdown(props) {
7516
7525
 
7517
7526
  var onDropdownChange = dropdownOptions.onChange,
7518
7527
  onDropdownClose = dropdownOptions.onClose,
7519
- rest = _objectWithoutProperties(dropdownOptions, _excluded$E);
7528
+ rest = _objectWithoutProperties(dropdownOptions, _excluded$I);
7520
7529
 
7521
7530
  var _React$useState = React.useState(placeholder),
7522
7531
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -7599,7 +7608,7 @@ EditableDropdown.defaultProps = {
7599
7608
  dropdownOptions: {}
7600
7609
  };
7601
7610
 
7602
- var _excluded$D = ["children", "className", "appearance", "size", "disabled"];
7611
+ var _excluded$H = ["children", "className", "appearance", "size", "disabled"];
7603
7612
  var Link = function Link(props) {
7604
7613
  var _classNames;
7605
7614
 
@@ -7608,7 +7617,7 @@ var Link = function Link(props) {
7608
7617
  appearance = props.appearance,
7609
7618
  size = props.size,
7610
7619
  disabled = props.disabled,
7611
- rest = _objectWithoutProperties(props, _excluded$D);
7620
+ rest = _objectWithoutProperties(props, _excluded$H);
7612
7621
 
7613
7622
  var classes = classnames((_classNames = {
7614
7623
  Link: true
@@ -8504,12 +8513,12 @@ _defineProperty$1(MultiSlider, "defaultProps", {
8504
8513
 
8505
8514
  _defineProperty$1(MultiSlider, "Handle", MultiSliderHandle);
8506
8515
 
8507
- var _excluded$C = ["children", "className", "onOutsideClick"];
8516
+ var _excluded$G = ["children", "className", "onOutsideClick"];
8508
8517
  var OutsideClick = /*#__PURE__*/React.forwardRef(function (props, ref) {
8509
8518
  var children = props.children,
8510
8519
  className = props.className,
8511
8520
  onOutsideClick = props.onOutsideClick,
8512
- rest = _objectWithoutProperties(props, _excluded$C);
8521
+ rest = _objectWithoutProperties(props, _excluded$G);
8513
8522
 
8514
8523
  var innerRef = React.useRef(null);
8515
8524
  React.useImperativeHandle(ref, function () {
@@ -8541,7 +8550,7 @@ var OutsideClick = /*#__PURE__*/React.forwardRef(function (props, ref) {
8541
8550
  });
8542
8551
  OutsideClick.displayName = 'OutsideClick';
8543
8552
 
8544
- var _excluded$B = ["appearance", "children", "className", "color"];
8553
+ var _excluded$F = ["appearance", "children", "className", "color"];
8545
8554
  var Paragraph = function Paragraph(props) {
8546
8555
  var _classNames;
8547
8556
 
@@ -8549,7 +8558,7 @@ var Paragraph = function Paragraph(props) {
8549
8558
  children = props.children,
8550
8559
  className = props.className,
8551
8560
  color = props.color,
8552
- rest = _objectWithoutProperties(props, _excluded$B);
8561
+ rest = _objectWithoutProperties(props, _excluded$F);
8553
8562
 
8554
8563
  var classes = classnames((_classNames = {
8555
8564
  Text: true
@@ -8597,7 +8606,7 @@ ProgressBar.defaultProps = {
8597
8606
  size: 'regular'
8598
8607
  };
8599
8608
 
8600
- var _excluded$A = ["size", "label", "disabled", "onChange", "name", "value", "checked", "defaultChecked", "className", "helpText", "error"];
8609
+ var _excluded$E = ["size", "label", "disabled", "onChange", "name", "value", "checked", "defaultChecked", "className", "helpText", "error"];
8601
8610
  var Radio = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
8602
8611
  var _classNames, _classNames2, _classNames3;
8603
8612
 
@@ -8613,7 +8622,7 @@ var Radio = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
8613
8622
  className = props.className,
8614
8623
  helpText = props.helpText,
8615
8624
  error = props.error,
8616
- rest = _objectWithoutProperties(props, _excluded$A);
8625
+ rest = _objectWithoutProperties(props, _excluded$E);
8617
8626
 
8618
8627
  var ref = React.useRef(null);
8619
8628
  React.useImperativeHandle(forwardedRef, function () {
@@ -8664,11 +8673,11 @@ var Radio = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
8664
8673
  });
8665
8674
  Radio.displayName = 'Radio';
8666
8675
 
8667
- var _excluded$z = ["className", "children"];
8676
+ var _excluded$D = ["className", "children"];
8668
8677
  var Row = /*#__PURE__*/React.forwardRef(function (props, ref) {
8669
8678
  var className = props.className,
8670
8679
  children = props.children,
8671
- rest = _objectWithoutProperties(props, _excluded$z);
8680
+ rest = _objectWithoutProperties(props, _excluded$D);
8672
8681
 
8673
8682
  var classes = classnames(_defineProperty$1({
8674
8683
  Row: true
@@ -8785,13 +8794,13 @@ Spinner.defaultProps = {
8785
8794
  size: 'medium'
8786
8795
  };
8787
8796
 
8788
- var _excluded$y = ["value", "defaultValue", "onRelease", "onChange"];
8797
+ var _excluded$C = ["value", "defaultValue", "onRelease", "onChange"];
8789
8798
  var Slider = function Slider(props) {
8790
8799
  var valueProp = props.value,
8791
8800
  defaultValue = props.defaultValue,
8792
8801
  onRelease = props.onRelease,
8793
8802
  onChange = props.onChange,
8794
- rest = _objectWithoutProperties(props, _excluded$y);
8803
+ rest = _objectWithoutProperties(props, _excluded$C);
8795
8804
 
8796
8805
  var _React$useState = React.useState(valueProp === undefined ? defaultValue : valueProp),
8797
8806
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -8824,7 +8833,7 @@ Slider.defaultProps = _objectSpread2(_objectSpread2({}, MultiSlider.defaultProps
8824
8833
  defaultValue: 0
8825
8834
  });
8826
8835
 
8827
- var _excluded$x = ["value", "defaultValue", "onChange", "onRelease"];
8836
+ var _excluded$B = ["value", "defaultValue", "onChange", "onRelease"];
8828
8837
  var RangeIndex;
8829
8838
 
8830
8839
  (function (RangeIndex) {
@@ -8837,7 +8846,7 @@ var RangeSlider = function RangeSlider(props) {
8837
8846
  defaultValue = props.defaultValue,
8838
8847
  onChange = props.onChange,
8839
8848
  onRelease = props.onRelease,
8840
- rest = _objectWithoutProperties(props, _excluded$x);
8849
+ rest = _objectWithoutProperties(props, _excluded$B);
8841
8850
 
8842
8851
  var _React$useState = React.useState(valueProp === undefined ? defaultValue : valueProp),
8843
8852
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -8873,7 +8882,7 @@ RangeSlider.defaultProps = _objectSpread2(_objectSpread2({}, MultiSlider.default
8873
8882
  defaultValue: [0, 10]
8874
8883
  });
8875
8884
 
8876
- var _excluded$w = ["appearance", "children", "className", "color"];
8885
+ var _excluded$A = ["appearance", "children", "className", "color"];
8877
8886
  var Subheading = function Subheading(props) {
8878
8887
  var _classNames;
8879
8888
 
@@ -8881,7 +8890,7 @@ var Subheading = function Subheading(props) {
8881
8890
  children = props.children,
8882
8891
  className = props.className,
8883
8892
  color = props.color,
8884
- rest = _objectWithoutProperties(props, _excluded$w);
8893
+ rest = _objectWithoutProperties(props, _excluded$A);
8885
8894
 
8886
8895
  var classes = classnames((_classNames = {
8887
8896
  Subheading: true
@@ -8898,7 +8907,7 @@ Subheading.defaultProps = {
8898
8907
  appearance: 'default'
8899
8908
  };
8900
8909
 
8901
- var _excluded$v = ["size", "defaultChecked", "disabled", "onChange", "name", "value", "className", "appearance", "checked"];
8910
+ var _excluded$z = ["size", "defaultChecked", "disabled", "onChange", "name", "value", "className", "appearance", "checked"];
8902
8911
 
8903
8912
  /**
8904
8913
  * ######Switch has two types:
@@ -8918,7 +8927,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function (props, ref) {
8918
8927
  className = props.className;
8919
8928
  props.appearance;
8920
8929
  var checkedProp = props.checked,
8921
- rest = _objectWithoutProperties(props, _excluded$v);
8930
+ rest = _objectWithoutProperties(props, _excluded$z);
8922
8931
 
8923
8932
  var _React$useState = React.useState(checkedProp === undefined ? defaultChecked : checkedProp),
8924
8933
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -8957,7 +8966,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function (props, ref) {
8957
8966
  });
8958
8967
  Switch.displayName = 'Switch';
8959
8968
 
8960
- var _excluded$u = ["rows", "resize", "disabled", "name", "placeholder", "value", "defaultValue", "required", "error", "onChange", "onClick", "onBlur", "onFocus", "className"];
8969
+ var _excluded$y = ["rows", "resize", "disabled", "name", "placeholder", "value", "defaultValue", "required", "error", "onChange", "onClick", "onBlur", "onFocus", "className"];
8961
8970
  var Textarea = /*#__PURE__*/React.forwardRef(function (props, ref) {
8962
8971
  var _classNames;
8963
8972
 
@@ -8977,7 +8986,7 @@ var Textarea = /*#__PURE__*/React.forwardRef(function (props, ref) {
8977
8986
  onBlur = props.onBlur,
8978
8987
  onFocus = props.onFocus,
8979
8988
  className = props.className,
8980
- rest = _objectWithoutProperties(props, _excluded$u);
8989
+ rest = _objectWithoutProperties(props, _excluded$y);
8981
8990
 
8982
8991
  var classes = classnames((_classNames = {}, _defineProperty$1(_classNames, 'Textarea', true), _defineProperty$1(_classNames, 'Textarea--resize', resize), _defineProperty$1(_classNames, 'Textarea--error', error), _classNames), className);
8983
8992
  return /*#__PURE__*/React.createElement("textarea", _extends$2({
@@ -14122,7 +14131,7 @@ _defineProperty$1(PopperWrapper, "defaultProps", {
14122
14131
  style: {}
14123
14132
  });
14124
14133
 
14125
- var _excluded$t = ["position", "customStyle", "dark", "children", "onToggle", "className", "hideOnReferenceEscape", "boundaryElement", "name"];
14134
+ var _excluded$x = ["position", "customStyle", "dark", "children", "onToggle", "className", "hideOnReferenceEscape", "boundaryElement", "name"];
14126
14135
  var propsList = ['appendToBody', 'trigger', 'hoverable', 'on', 'open', 'closeOnBackdropClick', 'offset', 'closeOnScroll'];
14127
14136
  var Popover = function Popover(props) {
14128
14137
  var position = props.position,
@@ -14135,7 +14144,7 @@ var Popover = function Popover(props) {
14135
14144
  _props$boundaryElemen = props.boundaryElement,
14136
14145
  boundaryElement = _props$boundaryElemen === void 0 ? document.body : _props$boundaryElemen,
14137
14146
  name = props.name,
14138
- rest = _objectWithoutProperties(props, _excluded$t);
14147
+ rest = _objectWithoutProperties(props, _excluded$x);
14139
14148
 
14140
14149
  var _React$useState = React.useState(!!props.open),
14141
14150
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -14188,7 +14197,7 @@ Popover.defaultProps = Object.assign({}, filterProps(PopperWrapper.defaultProps,
14188
14197
  customStyle: {}
14189
14198
  });
14190
14199
 
14191
- var _excluded$s = ["type", "onClick"];
14200
+ var _excluded$w = ["type", "onClick"];
14192
14201
  var keyCodes$1 = {
14193
14202
  BACKSPACE: 'Backspace',
14194
14203
  DELETE: 'Delete',
@@ -14307,7 +14316,7 @@ var ChipInput = function ChipInput(props) {
14307
14316
  var _chipOptions$type = chipOptions.type,
14308
14317
  type = _chipOptions$type === void 0 ? 'input' : _chipOptions$type,
14309
14318
  _onClick = chipOptions.onClick,
14310
- rest = _objectWithoutProperties(chipOptions, _excluded$s);
14319
+ rest = _objectWithoutProperties(chipOptions, _excluded$w);
14311
14320
 
14312
14321
  return /*#__PURE__*/React.createElement(Chip, _extends$2({
14313
14322
  "data-test": "DesignSystem-ChipInput--Chip",
@@ -14812,7 +14821,7 @@ var HorizontalNav = function HorizontalNav(props) {
14812
14821
  }), list);
14813
14822
  };
14814
14823
 
14815
- var _excluded$r = ["children", "tooltip", "showTooltip", "showOnTruncation", "elementRef"];
14824
+ var _excluded$v = ["children", "tooltip", "showTooltip", "showOnTruncation", "elementRef"];
14816
14825
  var tooltipPropsList = ['trigger', 'on', 'open', 'offset', 'onToggle', 'dark', 'customStyle', 'closeOnBackdropClick', 'hideOnReferenceEscape', 'closeOnScroll'];
14817
14826
  var positionValue = {
14818
14827
  bottom: 'bottom',
@@ -14835,7 +14844,7 @@ var Tooltip = function Tooltip(props) {
14835
14844
  showTooltip = props.showTooltip,
14836
14845
  showOnTruncation = props.showOnTruncation,
14837
14846
  elementRef = props.elementRef,
14838
- rest = _objectWithoutProperties(props, _excluded$r);
14847
+ rest = _objectWithoutProperties(props, _excluded$v);
14839
14848
 
14840
14849
  var childrenRef = React.useRef(null);
14841
14850
 
@@ -14956,7 +14965,7 @@ Dialog.defaultProps = {
14956
14965
  secondaryButtonAppearance: 'basic'
14957
14966
  };
14958
14967
 
14959
- var _excluded$q = ["label"];
14968
+ var _excluded$u = ["label"];
14960
14969
  var OverlayFooter = function OverlayFooter(props) {
14961
14970
  var open = props.open,
14962
14971
  className = props.className,
@@ -14993,7 +15002,7 @@ var OverlayFooter = function OverlayFooter(props) {
14993
15002
  className: classes
14994
15003
  }), actions.map(function (_ref, index) {
14995
15004
  _ref.label;
14996
- var options = _objectWithoutProperties(_ref, _excluded$q);
15005
+ var options = _objectWithoutProperties(_ref, _excluded$u);
14997
15006
 
14998
15007
  return /*#__PURE__*/React.createElement(Button, _extends$2({
14999
15008
  type: "button"
@@ -16126,60 +16135,246 @@ var ChatMessage = function ChatMessage(props) {
16126
16135
  };
16127
16136
  ChatMessage.displayName = 'ChatMessage';
16128
16137
 
16138
+ var EmptyStateContext = /*#__PURE__*/React.createContext({});
16139
+
16140
+ var _excluded$t = ["children", "maxHeight", "height", "minHeight", "src", "alt", "className"];
16141
+ var imageHeight$1 = {
16142
+ standard: '200px',
16143
+ compressed: '150px',
16144
+ tight: '100px',
16145
+ large: '200px',
16146
+ small: '200px'
16147
+ };
16148
+
16149
+ var EmptyStateImage = function EmptyStateImage(props) {
16150
+ var _classNames2;
16151
+
16152
+ var children = props.children,
16153
+ maxHeight = props.maxHeight,
16154
+ height = props.height,
16155
+ minHeight = props.minHeight,
16156
+ src = props.src,
16157
+ alt = props.alt,
16158
+ className = props.className,
16159
+ rest = _objectWithoutProperties(props, _excluded$t);
16160
+
16161
+ var contextProp = React__default.useContext(EmptyStateContext);
16162
+ var imageClasses = classnames(_defineProperty$1({}, 'EmptyState-image', true), className);
16163
+ var imageWrapperClasses = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'd-flex', true), _defineProperty$1(_classNames2, 'justify-content-center', true), _classNames2), className);
16164
+ var _contextProp$size = contextProp.size,
16165
+ size = _contextProp$size === void 0 ? 'standard' : _contextProp$size;
16166
+ var sizeStyle = {
16167
+ maxHeight: maxHeight !== null && maxHeight !== void 0 ? maxHeight : imageHeight$1[size],
16168
+ height: height,
16169
+ minHeight: minHeight
16170
+ };
16171
+
16172
+ if (children) {
16173
+ return /*#__PURE__*/React__default.createElement("div", _extends$2({}, rest, {
16174
+ className: imageWrapperClasses,
16175
+ style: _objectSpread2({}, sizeStyle)
16176
+ }), children);
16177
+ }
16178
+
16179
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, src && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("img", _extends$2({
16180
+ className: imageClasses,
16181
+ src: src,
16182
+ alt: alt,
16183
+ style: _objectSpread2({}, sizeStyle),
16184
+ "data-test": "DesignSystem-EmptyState--Img"
16185
+ }, rest))));
16186
+ };
16187
+
16188
+ var _excluded$s = ["children", "className"];
16189
+
16190
+ var EmptyStateTitle = function EmptyStateTitle(props) {
16191
+ var _classNames;
16192
+
16193
+ var children = props.children,
16194
+ className = props.className,
16195
+ rest = _objectWithoutProperties(props, _excluded$s);
16196
+
16197
+ var contextProp = React__default.useContext(EmptyStateContext);
16198
+ var _contextProp$size = contextProp.size,
16199
+ size = _contextProp$size === void 0 ? 'standard' : _contextProp$size;
16200
+ var headingClass = classnames((_classNames = {}, _defineProperty$1(_classNames, "EmptyState-text", true), _defineProperty$1(_classNames, "EmptyState-title--".concat(size), true), _classNames), className);
16201
+
16202
+ if (size === 'standard') {
16203
+ return /*#__PURE__*/React__default.createElement(Heading, _extends$2({
16204
+ "data-test": "DesignSystem-EmptyState--Heading",
16205
+ className: headingClass
16206
+ }, rest), children);
16207
+ }
16208
+
16209
+ return /*#__PURE__*/React__default.createElement(Text, _extends$2({
16210
+ "data-test": "DesignSystem-EmptyState--Heading",
16211
+ className: headingClass,
16212
+ weight: "medium",
16213
+ size: textSize[size]
16214
+ }, rest), children);
16215
+ };
16216
+
16217
+ var _excluded$r = ["children", "className"];
16218
+
16219
+ var EmptyStateDescription = function EmptyStateDescription(props) {
16220
+ var _classNames;
16221
+
16222
+ var children = props.children,
16223
+ className = props.className,
16224
+ rest = _objectWithoutProperties(props, _excluded$r);
16225
+
16226
+ var contextProp = React__default.useContext(EmptyStateContext);
16227
+ var _contextProp$size = contextProp.size,
16228
+ size = _contextProp$size === void 0 ? 'standard' : _contextProp$size;
16229
+ var textSize = {
16230
+ standard: 'regular',
16231
+ compressed: 'regular',
16232
+ tight: 'small'
16233
+ };
16234
+ var descriptionClasses = classnames((_classNames = {}, _defineProperty$1(_classNames, "EmptyState-text", true), _defineProperty$1(_classNames, 'mt-3', true), _classNames), className);
16235
+ return /*#__PURE__*/React__default.createElement(Text, _extends$2({
16236
+ size: textSize[size],
16237
+ appearance: "subtle",
16238
+ className: descriptionClasses,
16239
+ "data-test": "DesignSystem-EmptyState--Text"
16240
+ }, rest), children);
16241
+ };
16242
+
16243
+ var _excluded$q = ["children", "className"];
16244
+
16245
+ var EmptyStateActions = function EmptyStateActions(props) {
16246
+ var _classNames;
16247
+
16248
+ var children = props.children,
16249
+ className = props.className,
16250
+ rest = _objectWithoutProperties(props, _excluded$q);
16251
+
16252
+ var contextProp = React__default.useContext(EmptyStateContext);
16253
+ var _contextProp$size = contextProp.size,
16254
+ size = _contextProp$size === void 0 ? 'standard' : _contextProp$size;
16255
+ var actionWrapperClasses = classnames((_classNames = {}, _defineProperty$1(_classNames, "EmptyState-actions--".concat(size), true), _defineProperty$1(_classNames, 'EmptyState-actions', true), _classNames), className);
16256
+ return /*#__PURE__*/React__default.createElement("div", _extends$2({
16257
+ "data-test": "DesignSystem-EmptyState--Actions",
16258
+ className: actionWrapperClasses
16259
+ }, rest), children);
16260
+ };
16261
+
16129
16262
  var imageHeight = {
16130
16263
  large: '256px',
16131
- small: '128px'
16264
+ small: '128px',
16265
+ standard: '256px',
16266
+ compressed: '256px',
16267
+ tight: '256px'
16268
+ };
16269
+ var templateWidth = {
16270
+ standard: '480px',
16271
+ compressed: '400px',
16272
+ tight: '320px',
16273
+ large: '480px',
16274
+ small: '480px'
16132
16275
  };
16133
16276
  var HeadingSize = {
16134
16277
  large: 'l',
16135
- small: 'm'
16278
+ small: 'm',
16279
+ standard: 'l',
16280
+ compressed: 'l',
16281
+ tight: 'l'
16136
16282
  };
16137
16283
  var textSize = {
16138
16284
  large: 'large',
16139
- small: 'regular'
16285
+ small: 'regular',
16286
+ standard: 'large',
16287
+ compressed: 'large',
16288
+ tight: 'regular'
16140
16289
  };
16141
16290
  var EmptyState = function EmptyState(props) {
16142
- var _classNames2, _classNames3;
16291
+ var _classNames3, _classNames4;
16143
16292
 
16144
16293
  var imageSrc = props.imageSrc,
16145
16294
  title = props.title,
16146
16295
  description = props.description,
16147
- size = props.size,
16296
+ _props$size = props.size,
16297
+ size = _props$size === void 0 ? 'standard' : _props$size,
16148
16298
  children = props.children,
16149
16299
  className = props.className,
16150
- image = props.image;
16300
+ image = props.image,
16301
+ maxWidth = props.maxWidth,
16302
+ minWidth = props.minWidth,
16303
+ width = props.width;
16151
16304
  var baseProps = extractBaseProps(props);
16152
- var WrapperClass = classnames(_defineProperty$1({}, 'EmptyState', true), className);
16153
- var HeadingClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'EmptyState-title', true), _defineProperty$1(_classNames2, "EmptyState-title--".concat(size), true), _classNames2));
16154
- var TextClass = classnames((_classNames3 = {}, _defineProperty$1(_classNames3, 'EmptyState-description', true), _defineProperty$1(_classNames3, "EmptyState-description--".concat(size), children !== undefined), _classNames3));
16155
- return /*#__PURE__*/React.createElement("div", _extends$2({
16156
- "data-test": "DesignSystem-EmptyState"
16157
- }, baseProps, {
16158
- className: WrapperClass
16159
- }), image && /*#__PURE__*/React.createElement("div", {
16160
- style: {
16161
- height: imageHeight[size]
16305
+ var templateSize = 'standard';
16306
+
16307
+ var isValidSize = function isValidSize(size) {
16308
+ return size === 'large' || size === 'small';
16309
+ };
16310
+
16311
+ if (title || description) {
16312
+ templateSize = isValidSize(size) ? size : 'large';
16313
+ } else {
16314
+ templateSize = isValidSize(size) ? 'standard' : size;
16315
+ }
16316
+
16317
+ var wrapperClasses = classnames(_defineProperty$1({}, 'EmptyState', true), className);
16318
+ var emptyStateWrapper = classnames(_defineProperty$1({}, 'EmptyState-Wrapper', true), className);
16319
+ var headingClasses = classnames((_classNames3 = {}, _defineProperty$1(_classNames3, 'EmptyState-title', true), _defineProperty$1(_classNames3, "EmptyState-title--".concat(templateSize), true), _classNames3));
16320
+ var textClasses = classnames((_classNames4 = {}, _defineProperty$1(_classNames4, 'EmptyState-description', true), _defineProperty$1(_classNames4, "EmptyState-description--".concat(templateSize), children !== undefined), _classNames4));
16321
+
16322
+ if (title || description) {
16323
+ return /*#__PURE__*/React.createElement("div", _extends$2({
16324
+ "data-test": "DesignSystem-EmptyState"
16325
+ }, baseProps, {
16326
+ className: wrapperClasses
16327
+ }), image && /*#__PURE__*/React.createElement("div", {
16328
+ style: {
16329
+ height: imageHeight[templateSize]
16330
+ }
16331
+ }, image), imageSrc && !image &&
16332
+ /*#__PURE__*/
16333
+ //TODO(a11y)
16334
+ //eslint-disable-next-line
16335
+ React.createElement("img", {
16336
+ src: imageSrc,
16337
+ height: imageHeight[templateSize],
16338
+ "data-test": "DesignSystem-EmptyState--Img"
16339
+ }), title && /*#__PURE__*/React.createElement(Heading, {
16340
+ "data-test": "DesignSystem-EmptyState--Heading",
16341
+ size: HeadingSize[templateSize],
16342
+ className: headingClasses
16343
+ }, title), description && /*#__PURE__*/React.createElement(Text, {
16344
+ size: textSize[templateSize],
16345
+ className: textClasses,
16346
+ appearance: "subtle",
16347
+ "data-test": "DesignSystem-EmptyState--Text"
16348
+ }, description), children && children);
16349
+ }
16350
+
16351
+ var templateMaxWidth = maxWidth ? maxWidth : templateWidth[templateSize];
16352
+ var customStyle = {
16353
+ maxWidth: templateMaxWidth,
16354
+ minWidth: minWidth,
16355
+ width: width
16356
+ };
16357
+ return /*#__PURE__*/React.createElement(EmptyStateContext.Provider, {
16358
+ value: {
16359
+ size: templateSize,
16360
+ maxWidth: templateMaxWidth
16162
16361
  }
16163
- }, image), imageSrc && !image &&
16164
- /*#__PURE__*/
16165
- //TODO(a11y)
16166
- //eslint-disable-next-line
16167
- React.createElement("img", {
16168
- src: imageSrc,
16169
- height: imageHeight[size],
16170
- "data-test": "DesignSystem-EmptyState--Img"
16171
- }), /*#__PURE__*/React.createElement(Heading, {
16172
- "data-test": "DesignSystem-EmptyState--Heading",
16173
- size: HeadingSize[size],
16174
- className: HeadingClass
16175
- }, title), /*#__PURE__*/React.createElement(Text, {
16176
- size: textSize[size],
16177
- className: TextClass,
16178
- appearance: "subtle",
16179
- "data-test": "DesignSystem-EmptyState--Text"
16180
- }, description), children && children);
16362
+ }, /*#__PURE__*/React.createElement("div", {
16363
+ className: "d-flex justify-content-center align-item-center w-100 h-100"
16364
+ }, /*#__PURE__*/React.createElement("div", _extends$2({
16365
+ "data-test": "DesignSystem-EmptyState--Wrapper",
16366
+ className: emptyStateWrapper,
16367
+ style: customStyle
16368
+ }, baseProps), children)));
16181
16369
  };
16182
16370
  EmptyState.displayName = 'EmptyState';
16371
+ EmptyState.Title = EmptyStateTitle;
16372
+ EmptyState.Description = EmptyStateDescription;
16373
+ EmptyState.Image = EmptyStateImage;
16374
+ EmptyState.Actions = EmptyStateActions;
16375
+ EmptyState.defaultProps = {
16376
+ size: 'standard'
16377
+ };
16183
16378
 
16184
16379
  var ModalDescription = function ModalDescription(props) {
16185
16380
  var title = props.title,
@@ -24930,6 +25125,7 @@ var InputBox = function InputBox(props) {
24930
25125
 
24931
25126
  var onKeyDownHandler = function onKeyDownHandler(event) {
24932
25127
  handleKeyDown$3(event, setOpenPopover, setHighlightFirstItem, setHighlightLastItem);
25128
+ props.onKeyDown && props.onKeyDown(event);
24933
25129
  };
24934
25130
 
24935
25131
  return /*#__PURE__*/React.createElement(Input, _extends$2({}, props, {
@@ -25197,6 +25393,7 @@ var ChipInputBox = function ChipInputBox(props) {
25197
25393
 
25198
25394
  var onKeyDownHandler = function onKeyDownHandler(event) {
25199
25395
  handleKeyDown$3(event, setOpenPopover, setHighlightFirstItem, setHighlightLastItem);
25396
+ props.onKeyDown && props.onKeyDown(event);
25200
25397
  };
25201
25398
 
25202
25399
  return /*#__PURE__*/React__default.createElement(MultiSelectTrigger, _extends$2({}, props, {
@@ -25263,7 +25460,9 @@ var Combobox = function Combobox(props) {
25263
25460
  size = props.size,
25264
25461
  chipValue = props.chipValue,
25265
25462
  clearButton = props.clearButton,
25266
- onSearch = props.onSearch;
25463
+ onSearch = props.onSearch,
25464
+ onKeyDown = props.onKeyDown,
25465
+ onKeyUp = props.onKeyUp;
25267
25466
 
25268
25467
  var _React$useState = React.useState(),
25269
25468
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -25405,7 +25604,9 @@ var Combobox = function Combobox(props) {
25405
25604
  size: size,
25406
25605
  multiSelect: multiSelect,
25407
25606
  chipValue: chipValue,
25408
- clearButton: clearButton
25607
+ clearButton: clearButton,
25608
+ onKeyDown: onKeyDown,
25609
+ onKeyUp: onKeyUp
25409
25610
  };
25410
25611
  var contextProp = {
25411
25612
  inputValue: inputValue,
@@ -26603,6 +26804,6 @@ Menu.defaultProps = {
26603
26804
  position: 'bottom-start'
26604
26805
  };
26605
26806
 
26606
- var version = "2.34.0";
26807
+ var version = "2.35.0";
26607
26808
 
26608
26809
  export { ActionCard, Avatar, AvatarGroup, AvatarSelection, Backdrop, Badge, Breadcrumbs, Button, Calendar, Caption, Card, CardBody, CardFooter, CardHeader, CardSubdued, ChatMessage, Checkbox, Chip, ChipGroup, ChipInput, ChoiceList, Collapsible, Column, Combobox, 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, Listbox, Menu, Message, MetaList, MetricInput, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, MultiSlider, Navigation, OutsideClick, PageHeader, Pagination, Paragraph, Pills, Placeholder, PlaceholderImage, PlaceholderParagraph, Popover, ProgressBar, ProgressRing, Radio, RangeSlider, Row, Select, SelectionCard, Sidesheet, Slider, Spinner, StatusHint, Stepper, Subheading, Switch, Tab, Table, Tabs, TabsWrapper, Text, TextField, Textarea, TimePicker, Toast, Tooltip, index as Utils, VerificationCodeInput, VerticalNav, version };