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