@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
|
@@ -1465,7 +1465,7 @@ function withTheme(WrappedComponent) {
|
|
|
1465
1465
|
});
|
|
1466
1466
|
}
|
|
1467
1467
|
|
|
1468
|
-
var _excluded$6 = ["color"];
|
|
1468
|
+
var _excluded$6 = ["color", "disabled"];
|
|
1469
1469
|
|
|
1470
1470
|
function ownKeys$8(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; }
|
|
1471
1471
|
|
|
@@ -1475,20 +1475,25 @@ var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled$1("div")({
|
|
|
1475
1475
|
"class": "p1nlccvg",
|
|
1476
1476
|
vars: {
|
|
1477
1477
|
"p1nlccvg-0": [function (_ref) {
|
|
1478
|
-
var theme = _ref.theme
|
|
1479
|
-
|
|
1478
|
+
var theme = _ref.theme,
|
|
1479
|
+
$isDisabled = _ref.$isDisabled;
|
|
1480
|
+
return $isDisabled ? 1 : theme.kitt.iconButton.scale.base.hover;
|
|
1480
1481
|
}],
|
|
1481
1482
|
"p1nlccvg-2": [function (_ref2) {
|
|
1482
|
-
var theme = _ref2.theme
|
|
1483
|
-
|
|
1483
|
+
var theme = _ref2.theme,
|
|
1484
|
+
$isDisabled = _ref2.$isDisabled;
|
|
1485
|
+
return $isDisabled ? 1 : theme.kitt.iconButton.scale.medium.hover;
|
|
1484
1486
|
}],
|
|
1485
1487
|
"p1nlccvg-3": [function (_ref3) {
|
|
1486
|
-
var theme = _ref3.theme
|
|
1487
|
-
|
|
1488
|
+
var theme = _ref3.theme,
|
|
1489
|
+
$isDisabled = _ref3.$isDisabled;
|
|
1490
|
+
return $isDisabled ? 1 : theme.kitt.iconButton.scale.base.active;
|
|
1488
1491
|
}],
|
|
1489
1492
|
"p1nlccvg-4": [function (_ref4) {
|
|
1490
1493
|
var theme = _ref4.theme,
|
|
1491
|
-
$isWhite = _ref4.$isWhite
|
|
1494
|
+
$isWhite = _ref4.$isWhite,
|
|
1495
|
+
$isDisabled = _ref4.$isDisabled;
|
|
1496
|
+
if ($isDisabled) return theme.kitt.iconButton.disabled.backgroundColor;
|
|
1492
1497
|
var _theme$kitt$iconButto = theme.kitt.iconButton,
|
|
1493
1498
|
white = _theme$kitt$iconButto.white,
|
|
1494
1499
|
defaultIconButton = _theme$kitt$iconButto["default"];
|
|
@@ -1527,12 +1532,16 @@ var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
|
|
|
1527
1532
|
});
|
|
1528
1533
|
function PressableIconButton(_ref9) {
|
|
1529
1534
|
var color = _ref9.color,
|
|
1535
|
+
disabled = _ref9.disabled,
|
|
1530
1536
|
props = _objectWithoutProperties(_ref9, _excluded$6);
|
|
1531
1537
|
|
|
1532
1538
|
return /*#__PURE__*/jsx(StyleWebWrapper, {
|
|
1533
1539
|
as: PressableIconButtonWebWrapper,
|
|
1534
1540
|
$isWhite: color === 'white',
|
|
1535
|
-
|
|
1541
|
+
$isDisabled: Boolean(disabled),
|
|
1542
|
+
children: /*#__PURE__*/jsx(StyledPressableIconButton, _objectSpread$8(_objectSpread$8({}, props), {}, {
|
|
1543
|
+
disabled: disabled
|
|
1544
|
+
}))
|
|
1536
1545
|
});
|
|
1537
1546
|
}
|
|
1538
1547
|
|