@rabex-kit/rabex-ui 0.1.1 → 0.1.2

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.
@@ -2469,15 +2469,16 @@ var spaceBasedSize = function spaceBasedSize(theme) {
2469
2469
  var components = {
2470
2470
  styleOverrides: {
2471
2471
  root: function root(_ref) {
2472
+ var _spaceBasedSize$size, _spaceBasedSize$size2, _spaceBasedSize$size3, _spaceBasedSize$size4, _spaceBasedSize$size5;
2472
2473
  var theme = _ref.theme,
2473
2474
  ownerState = _ref.ownerState;
2474
2475
  var hasStartIcon = !!(ownerState !== null && ownerState !== void 0 && ownerState.startIcon);
2475
2476
  var hasEndIcon = !!(ownerState !== null && ownerState !== void 0 && ownerState.endIcon);
2476
2477
  var size = (ownerState === null || ownerState === void 0 ? void 0 : ownerState.size) || 'md';
2477
2478
  var overridenRootStyles = {
2478
- gap: spaceBasedSize(theme)[size].gap,
2479
- paddingLeft: hasStartIcon ? spaceBasedSize(theme)[size].iconSidePadding : spaceBasedSize(theme)[size].textSidePadding,
2480
- paddingRight: hasEndIcon ? spaceBasedSize(theme)[size].iconSidePadding : spaceBasedSize(theme)[size].textSidePadding
2479
+ gap: (_spaceBasedSize$size = spaceBasedSize(theme)[size]) === null || _spaceBasedSize$size === void 0 ? void 0 : _spaceBasedSize$size.gap,
2480
+ paddingLeft: hasStartIcon ? (_spaceBasedSize$size2 = spaceBasedSize(theme)[size]) === null || _spaceBasedSize$size2 === void 0 ? void 0 : _spaceBasedSize$size2.iconSidePadding : (_spaceBasedSize$size3 = spaceBasedSize(theme)[size]) === null || _spaceBasedSize$size3 === void 0 ? void 0 : _spaceBasedSize$size3.textSidePadding,
2481
+ paddingRight: hasEndIcon ? (_spaceBasedSize$size4 = spaceBasedSize(theme)[size]) === null || _spaceBasedSize$size4 === void 0 ? void 0 : _spaceBasedSize$size4.iconSidePadding : (_spaceBasedSize$size5 = spaceBasedSize(theme)[size]) === null || _spaceBasedSize$size5 === void 0 ? void 0 : _spaceBasedSize$size5.textSidePadding
2481
2482
  };
2482
2483
  return overridenRootStyles;
2483
2484
  },