@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.
@@ -4,5 +4,5 @@ import type { IconButtonContentProps } from './IconButton';
4
4
  export interface PressableIconButtonProps extends PressableProps {
5
5
  color: IconButtonContentProps['color'];
6
6
  }
7
- export declare function PressableIconButton({ color, ...props }: PressableIconButtonProps): ReactElement;
7
+ export declare function PressableIconButton({ color, disabled, ...props }: PressableIconButtonProps): ReactElement;
8
8
  //# sourceMappingURL=PressableIconButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PressableIconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/PressableIconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAOnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AA2E3D,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC9D,KAAK,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CACxC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,GAAG,YAAY,CAM/F"}
1
+ {"version":3,"file":"PressableIconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/PressableIconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAOnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AA8E3D,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC9D,KAAK,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CACxC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,GAAG,YAAY,CAMzG"}
@@ -1440,7 +1440,7 @@ function StyleWebWrapper(_ref) {
1440
1440
  }));
1441
1441
  }
1442
1442
 
1443
- var _excluded$6 = ["color"];
1443
+ var _excluded$6 = ["color", "disabled"];
1444
1444
 
1445
1445
  function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1446
1446
 
@@ -1476,12 +1476,16 @@ var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
1476
1476
  });
1477
1477
  function PressableIconButton(_ref5) {
1478
1478
  var color = _ref5.color,
1479
+ disabled = _ref5.disabled,
1479
1480
  props = _objectWithoutProperties(_ref5, _excluded$6);
1480
1481
 
1481
1482
  return /*#__PURE__*/jsx(StyleWebWrapper, {
1482
1483
  as: PressableIconButtonWebWrapper,
1483
1484
  $isWhite: color === 'white',
1484
- children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread$9({}, props))
1485
+ $isDisabled: Boolean(disabled),
1486
+ children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread$9(_objectSpread$9({}, props), {}, {
1487
+ disabled: disabled
1488
+ }))
1485
1489
  });
1486
1490
  }
1487
1491