@ornikar/kitt-universal 3.8.0 → 3.8.1

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.
@@ -1414,18 +1414,23 @@ const PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/react$1.styled("di
1414
1414
  class: "p1nlccvg",
1415
1415
  vars: {
1416
1416
  "p1nlccvg-0": [({
1417
- theme
1418
- }) => theme.kitt.iconButton.scale.base.hover],
1417
+ theme,
1418
+ $isDisabled
1419
+ }) => $isDisabled ? 1 : theme.kitt.iconButton.scale.base.hover],
1419
1420
  "p1nlccvg-2": [({
1420
- theme
1421
- }) => theme.kitt.iconButton.scale.medium.hover],
1421
+ theme,
1422
+ $isDisabled
1423
+ }) => $isDisabled ? 1 : theme.kitt.iconButton.scale.medium.hover],
1422
1424
  "p1nlccvg-3": [({
1423
- theme
1424
- }) => theme.kitt.iconButton.scale.base.active],
1425
+ theme,
1426
+ $isDisabled
1427
+ }) => $isDisabled ? 1 : theme.kitt.iconButton.scale.base.active],
1425
1428
  "p1nlccvg-4": [({
1426
1429
  theme,
1427
- $isWhite
1430
+ $isWhite,
1431
+ $isDisabled
1428
1432
  }) => {
1433
+ if ($isDisabled) return theme.kitt.iconButton.disabled.backgroundColor;
1429
1434
  const {
1430
1435
  white,
1431
1436
  default: defaultIconButton
@@ -1472,12 +1477,15 @@ const StyledPressableIconButton = /*#__PURE__*/styled__default.Pressable.withCon
1472
1477
  });
1473
1478
  function PressableIconButton({
1474
1479
  color,
1480
+ disabled,
1475
1481
  ...props
1476
1482
  }) {
1477
1483
  return /*#__PURE__*/jsxRuntime.jsx(StyleWebWrapper, {
1478
1484
  as: PressableIconButtonWebWrapper,
1479
1485
  $isWhite: color === 'white',
1480
- children: /*#__PURE__*/jsxRuntime.jsx(StyledPressableIconButton, { ...props
1486
+ $isDisabled: Boolean(disabled),
1487
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledPressableIconButton, { ...props,
1488
+ disabled: disabled
1481
1489
  })
1482
1490
  });
1483
1491
  }