@thecb/components 10.6.7-beta.0 → 10.6.8-beta.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.cjs.js CHANGED
@@ -25092,7 +25092,7 @@ var Dropdown = function Dropdown(_ref13) {
25092
25092
  setInputChangedByAutofill(true);
25093
25093
  }
25094
25094
  },
25095
- padding: "12px",
25095
+ padding: "12px 25px 12px 12px",
25096
25096
  placeholder: getSelection(),
25097
25097
  required: options.required || isRequired,
25098
25098
  role: "combobox",
@@ -50687,7 +50687,6 @@ var Timeout = function Timeout(_ref) {
50687
50687
  };
50688
50688
  var Timeout$1 = withWindowSize(Timeout);
50689
50689
 
50690
- var _excluded$F = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive"];
50691
50690
  var VARIANTS = {
50692
50691
  SUCCESS: "success",
50693
50692
  ERROR: "error"
@@ -50710,15 +50709,9 @@ var ToastNotification = function ToastNotification(_ref) {
50710
50709
  childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
50711
50710
  backgroundColor = _ref.backgroundColor,
50712
50711
  _ref$role = _ref.role,
50713
- role = _ref$role === void 0 ? "alert" : _ref$role,
50714
- _ref$ariaLive = _ref.ariaLive,
50715
- ariaLive = _ref$ariaLive === void 0 ? "polite" : _ref$ariaLive,
50716
- rest = _objectWithoutProperties(_ref, _excluded$F);
50717
- return /*#__PURE__*/React__default.createElement(Box, _extends({
50712
+ role = _ref$role === void 0 ? "alert" : _ref$role;
50713
+ return /*#__PURE__*/React__default.createElement(Box, {
50718
50714
  onClick: closeToastNotification,
50719
- onKeyDown: function onKeyDown(e) {
50720
- return e.key === "Enter" && closeToastNotification();
50721
- },
50722
50715
  background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === VARIANTS.ERROR ? ERROR_BACKGROUND_COLOR : WHITE,
50723
50716
  minWidth: minWidth,
50724
50717
  minHeight: height && parseInt(height) < 100 ? height : "100px",
@@ -50728,9 +50721,8 @@ var ToastNotification = function ToastNotification(_ref) {
50728
50721
  borderRadius: "4px",
50729
50722
  boxShadow: generateShadows().standard.base,
50730
50723
  extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n "),
50731
- role: role,
50732
- "aria-live": ariaLive
50733
- }, rest), /*#__PURE__*/React__default.createElement(Cluster, {
50724
+ role: role
50725
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
50734
50726
  align: "center",
50735
50727
  childGap: childGap,
50736
50728
  justify: "space-between"
@@ -50878,7 +50870,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
50878
50870
  return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
50879
50871
  });
50880
50872
 
50881
- var _excluded$G = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
50873
+ var _excluded$F = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
50882
50874
  var PopupMenuItem = function PopupMenuItem(_ref) {
50883
50875
  var id = _ref.id,
50884
50876
  closeMenuCallback = _ref.closeMenuCallback,
@@ -50894,7 +50886,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
50894
50886
  hoverStyles = _ref.hoverStyles,
50895
50887
  activeStyles = _ref.activeStyles,
50896
50888
  extraStyles = _ref.extraStyles,
50897
- rest = _objectWithoutProperties(_ref, _excluded$G);
50889
+ rest = _objectWithoutProperties(_ref, _excluded$F);
50898
50890
  return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
50899
50891
  id: id,
50900
50892
  role: "menuItem",