@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.
- package/dist/definitions/IconButton/PressableIconButton.d.ts +1 -1
- package/dist/definitions/IconButton/PressableIconButton.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +6 -2
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +6 -2
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +18 -9
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +18 -9
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +16 -8
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +16 -8
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1449,7 +1449,7 @@ function StyleWebWrapper(_ref) {
|
|
|
1449
1449
|
}));
|
|
1450
1450
|
}
|
|
1451
1451
|
|
|
1452
|
-
var _excluded$6 = ["color"];
|
|
1452
|
+
var _excluded$6 = ["color", "disabled"];
|
|
1453
1453
|
|
|
1454
1454
|
function ownKeys$7(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; }
|
|
1455
1455
|
|
|
@@ -1459,20 +1459,25 @@ var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled("div")({
|
|
|
1459
1459
|
"class": "p1nlccvg",
|
|
1460
1460
|
vars: {
|
|
1461
1461
|
"p1nlccvg-0": [function (_ref) {
|
|
1462
|
-
var theme = _ref.theme
|
|
1463
|
-
|
|
1462
|
+
var theme = _ref.theme,
|
|
1463
|
+
$isDisabled = _ref.$isDisabled;
|
|
1464
|
+
return $isDisabled ? 1 : theme.kitt.iconButton.scale.base.hover;
|
|
1464
1465
|
}],
|
|
1465
1466
|
"p1nlccvg-2": [function (_ref2) {
|
|
1466
|
-
var theme = _ref2.theme
|
|
1467
|
-
|
|
1467
|
+
var theme = _ref2.theme,
|
|
1468
|
+
$isDisabled = _ref2.$isDisabled;
|
|
1469
|
+
return $isDisabled ? 1 : theme.kitt.iconButton.scale.medium.hover;
|
|
1468
1470
|
}],
|
|
1469
1471
|
"p1nlccvg-3": [function (_ref3) {
|
|
1470
|
-
var theme = _ref3.theme
|
|
1471
|
-
|
|
1472
|
+
var theme = _ref3.theme,
|
|
1473
|
+
$isDisabled = _ref3.$isDisabled;
|
|
1474
|
+
return $isDisabled ? 1 : theme.kitt.iconButton.scale.base.active;
|
|
1472
1475
|
}],
|
|
1473
1476
|
"p1nlccvg-4": [function (_ref4) {
|
|
1474
1477
|
var theme = _ref4.theme,
|
|
1475
|
-
$isWhite = _ref4.$isWhite
|
|
1478
|
+
$isWhite = _ref4.$isWhite,
|
|
1479
|
+
$isDisabled = _ref4.$isDisabled;
|
|
1480
|
+
if ($isDisabled) return theme.kitt.iconButton.disabled.backgroundColor;
|
|
1476
1481
|
var _theme$kitt$iconButto = theme.kitt.iconButton,
|
|
1477
1482
|
white = _theme$kitt$iconButto.white,
|
|
1478
1483
|
defaultIconButton = _theme$kitt$iconButto["default"];
|
|
@@ -1507,12 +1512,16 @@ var StyledPressableIconButton = /*#__PURE__*/styled$1(Pressable).withConfig({
|
|
|
1507
1512
|
});
|
|
1508
1513
|
function PressableIconButton(_ref9) {
|
|
1509
1514
|
var color = _ref9.color,
|
|
1515
|
+
disabled = _ref9.disabled,
|
|
1510
1516
|
props = _objectWithoutProperties(_ref9, _excluded$6);
|
|
1511
1517
|
|
|
1512
1518
|
return /*#__PURE__*/jsx(StyleWebWrapper, {
|
|
1513
1519
|
as: PressableIconButtonWebWrapper,
|
|
1514
1520
|
$isWhite: color === 'white',
|
|
1515
|
-
|
|
1521
|
+
$isDisabled: Boolean(disabled),
|
|
1522
|
+
children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread$7(_objectSpread$7({}, props), {}, {
|
|
1523
|
+
disabled: disabled
|
|
1524
|
+
}))
|
|
1516
1525
|
});
|
|
1517
1526
|
}
|
|
1518
1527
|
|