@ornikar/kitt-universal 3.6.0 → 3.7.0

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.
@@ -1455,12 +1455,14 @@ function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) {
1455
1455
  // };
1456
1456
  // }
1457
1457
  function withTheme(WrappedComponent) {
1458
- return function (props) {
1458
+ // eslint-disable-next-line prefer-arrow-callback
1459
+ return /*#__PURE__*/forwardRef(function (props, ref) {
1459
1460
  var theme = /*#__PURE__*/useTheme();
1460
1461
  return /*#__PURE__*/jsx(WrappedComponent, _objectSpread$9({
1462
+ ref: ref,
1461
1463
  theme: theme
1462
1464
  }, props));
1463
- };
1465
+ });
1464
1466
  }
1465
1467
 
1466
1468
  var _excluded$6 = ["color"];
@@ -1476,21 +1478,17 @@ var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled$1("div")({
1476
1478
  var theme = _ref.theme;
1477
1479
  return theme.kitt.iconButton.scale.base.hover;
1478
1480
  }],
1479
- "p1nlccvg-1": [function (_ref2) {
1481
+ "p1nlccvg-2": [function (_ref2) {
1480
1482
  var theme = _ref2.theme;
1481
- return theme.breakpoints.min.mediumBreakpoint;
1482
- }],
1483
- "p1nlccvg-2": [function (_ref3) {
1484
- var theme = _ref3.theme;
1485
1483
  return theme.kitt.iconButton.scale.medium.hover;
1486
1484
  }],
1487
- "p1nlccvg-3": [function (_ref4) {
1488
- var theme = _ref4.theme;
1485
+ "p1nlccvg-3": [function (_ref3) {
1486
+ var theme = _ref3.theme;
1489
1487
  return theme.kitt.iconButton.scale.base.active;
1490
1488
  }],
1491
- "p1nlccvg-4": [function (_ref5) {
1492
- var theme = _ref5.theme,
1493
- $isWhite = _ref5.$isWhite;
1489
+ "p1nlccvg-4": [function (_ref4) {
1490
+ var theme = _ref4.theme,
1491
+ $isWhite = _ref4.$isWhite;
1494
1492
  var _theme$kitt$iconButto = theme.kitt.iconButton,
1495
1493
  white = _theme$kitt$iconButto.white,
1496
1494
  defaultIconButton = _theme$kitt$iconButto["default"];
@@ -1501,18 +1499,18 @@ var PressableIconButtonWebWrapper = withTheme( /*#__PURE__*/styled$1("div")({
1501
1499
  }));
1502
1500
  var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
1503
1501
  displayName: "PressableIconButton__StyledPressableIconButton"
1504
- })(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref6) {
1505
- var theme = _ref6.theme;
1502
+ })(["border-radius:", "px;width:", "px;height:", "px;align-items:center;justify-content:center;position:relative;background-color:transparent;", ";"], function (_ref5) {
1503
+ var theme = _ref5.theme;
1506
1504
  return theme.kitt.iconButton.borderRadius;
1505
+ }, function (_ref6) {
1506
+ var theme = _ref6.theme;
1507
+ return theme.kitt.iconButton.width;
1507
1508
  }, function (_ref7) {
1508
1509
  var theme = _ref7.theme;
1509
- return theme.kitt.iconButton.width;
1510
- }, function (_ref8) {
1511
- var theme = _ref8.theme;
1512
1510
  return theme.kitt.iconButton.height;
1513
- }, function (_ref9) {
1514
- var theme = _ref9.theme,
1515
- disabled = _ref9.disabled;
1511
+ }, function (_ref8) {
1512
+ var theme = _ref8.theme,
1513
+ disabled = _ref8.disabled;
1516
1514
  var iconButton = theme.kitt.iconButton;
1517
1515
 
1518
1516
  if (Platform.OS !== 'web') {
@@ -1527,9 +1525,9 @@ var StyledPressableIconButton = /*#__PURE__*/styled.Pressable.withConfig({
1527
1525
 
1528
1526
  return "\n transition: ".concat(transition.property, " ").concat(transition.duration, " ").concat(transition.timingFunction, ";\n ");
1529
1527
  });
1530
- function PressableIconButton(_ref10) {
1531
- var color = _ref10.color,
1532
- props = _objectWithoutProperties(_ref10, _excluded$6);
1528
+ function PressableIconButton(_ref9) {
1529
+ var color = _ref9.color,
1530
+ props = _objectWithoutProperties(_ref9, _excluded$6);
1533
1531
 
1534
1532
  return /*#__PURE__*/jsx(StyleWebWrapper, {
1535
1533
  as: PressableIconButtonWebWrapper,
@@ -3126,7 +3124,7 @@ var breakpoints = {
3126
3124
  wideBreakpoint: 'max-width: 1279px'
3127
3125
  }
3128
3126
  }; // eslint-disable-next-line unicorn/expiring-todo-comments
3129
- // TODO : seperate brand co lor usage definition from proper theme definition and add t ypings - https://ornikar.atlassian.net/browse/CME-156
3127
+ // TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
3130
3128
 
3131
3129
  var theme = {
3132
3130
  spacing: 4,
@@ -3146,7 +3144,8 @@ var theme = {
3146
3144
  iconButton: iconButton,
3147
3145
  listItem: listItemLateOceanTheme,
3148
3146
  tooltip: tooltip,
3149
- skeleton: skeletonTheme
3147
+ skeleton: skeletonTheme,
3148
+ breakpoints: breakpoints
3150
3149
  };
3151
3150
 
3152
3151
  function Title(_ref) {
@@ -3652,8 +3651,7 @@ function useKittTheme() {
3652
3651
  return useMemo(function () {
3653
3652
  return {
3654
3653
  kitt: theme,
3655
- responsive: createWindowSizeHelper(dimensions),
3656
- breakpoints: breakpoints
3654
+ responsive: createWindowSizeHelper(dimensions)
3657
3655
  };
3658
3656
  }, [dimensions]);
3659
3657
  }