@luminati-io/uikit 6.3.22 → 6.3.23

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.
@@ -48956,7 +48956,7 @@ var ModalButton = function ModalButton(_ref) {
48956
48956
  rest = _objectWithoutProperties(_ref, _excluded);
48957
48957
  var icon = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(rest.icon, getHotKeyIcon(hotKey));
48958
48958
  var iconPlacement = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(rest.iconPlacement, getHotKeyIcon(hotKey) ? 'right' : undefined);
48959
- var btnVariant = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(getHotKeyVariant(hotKey, rest.keyType), variant);
48959
+ var btnVariant = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(getHotKeyVariant(hotKey, variant), variant);
48960
48960
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
48961
48961
  var _document$activeEleme;
48962
48962
  (_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 || _document$activeEleme.blur();
@@ -48975,7 +48975,8 @@ var ModalButton = function ModalButton(_ref) {
48975
48975
  iconPlacement: iconPlacement,
48976
48976
  icon: icon,
48977
48977
  size: size,
48978
- variant: btnVariant
48978
+ variant: btnVariant,
48979
+ $hotKey: hotKey
48979
48980
  }));
48980
48981
  };
48981
48982
  ModalButton.propTypes = {
@@ -48986,9 +48987,9 @@ var getHotKeyIcon = function getHotKeyIcon(hotKey) {
48986
48987
  if (hotKey.toLowerCase() == 'enter') return 'KeyEnter';
48987
48988
  if (hotKey.toLowerCase() == 'escape') return 'KeyEscape';
48988
48989
  };
48989
- var getHotKeyVariant = function getHotKeyVariant(hotKey, keyType) {
48990
+ var getHotKeyVariant = function getHotKeyVariant(hotKey, variant) {
48990
48991
  if (typeof hotKey != 'string') return;
48991
- if (hotKey.toLowerCase() == 'enter' && keyType == 'warning') return 'negative';
48992
+ if (hotKey.toLowerCase() == 'enter') return variant;
48992
48993
  if (hotKey.toLowerCase() == 'escape') return 'white';
48993
48994
  };
48994
48995
  var StyedButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_button__WEBPACK_IMPORTED_MODULE_3__.Button).attrs(function (props) {
@@ -48998,7 +48999,10 @@ var StyedButton = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_butt
48998
48999
  }).withConfig({
48999
49000
  displayName: "StyedButton",
49000
49001
  componentId: "sc-543wca-0"
49001
- })(["gap:8px;.confirm_button-icon{overflow:visible;min-width:32px;width:32px;min-height:20px;height:20px;}"]);
49002
+ })(["", ""], function (_ref2) {
49003
+ var $hotKey = _ref2.$hotKey;
49004
+ return $hotKey && "\n gap: 8px;\n .confirm_button-icon {\n overflow: visible;\n min-width: 32px;\n width: 32px;\n min-height: 20px;\n height: 20px;\n }\n ";
49005
+ });
49002
49006
 
49003
49007
  /***/ }),
49004
49008