@shoplflow/base 0.32.14 → 0.32.16

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/index.cjs CHANGED
@@ -1659,10 +1659,6 @@ var getWidthAndHeightFromSizeVar = (sizeVar) => {
1659
1659
  min-width: 40px;
1660
1660
  height: 40px;
1661
1661
  min-height: 40px;
1662
- & > svg {
1663
- width: 24px;
1664
- height: 24px;
1665
- }
1666
1662
  `;
1667
1663
  case "S":
1668
1664
  return react$1.css`
@@ -1670,10 +1666,6 @@ var getWidthAndHeightFromSizeVar = (sizeVar) => {
1670
1666
  min-width: 32px;
1671
1667
  height: 32px;
1672
1668
  min-height: 32px;
1673
- & > svg {
1674
- width: 20px;
1675
- height: 20px;
1676
- }
1677
1669
  `;
1678
1670
  case "XS":
1679
1671
  return react$1.css`
@@ -1681,10 +1673,6 @@ var getWidthAndHeightFromSizeVar = (sizeVar) => {
1681
1673
  min-width: 24px;
1682
1674
  height: 24px;
1683
1675
  min-height: 24px;
1684
- & > svg {
1685
- width: 12px;
1686
- height: 12px;
1687
- }
1688
1676
  `;
1689
1677
  default:
1690
1678
  return react$1.css`
@@ -1692,10 +1680,6 @@ var getWidthAndHeightFromSizeVar = (sizeVar) => {
1692
1680
  min-width: 40px;
1693
1681
  height: 40px;
1694
1682
  min-height: 40px;
1695
- & > svg {
1696
- width: 20px;
1697
- height: 20px;
1698
- }
1699
1683
  `;
1700
1684
  }
1701
1685
  };
@@ -1757,6 +1741,10 @@ var StyledIconButton = styled6__default.default.button`
1757
1741
  ${({ styleVar, color, isHovered }) => getStyleByStyleVar2(styleVar, color, isHovered)};
1758
1742
  ${({ sizeVar }) => getWidthAndHeightFromSizeVar(sizeVar)};
1759
1743
  ${({ disabled }) => getDisabledStyle(disabled)};
1744
+ & > svg {
1745
+ width: 20px;
1746
+ height: 20px;
1747
+ }
1760
1748
  `;
1761
1749
  var IconButton = React3.forwardRef(
1762
1750
  (_a, ref) => {
@@ -5886,17 +5874,24 @@ var NumberCombobox = (_a) => {
5886
5874
  placeholder,
5887
5875
  disabled,
5888
5876
  onKeyDown: (event) => {
5889
- var _a2;
5890
- if (event.key === "ArrowUp" || event.key === "ArrowDown") {
5877
+ var _a2, _b2;
5878
+ event.stopPropagation();
5879
+ if (event.key === "ArrowUp" || event.key === "ArrowDown" || event.key === "-") {
5891
5880
  event.preventDefault();
5892
5881
  return;
5893
5882
  }
5894
- setIsOpen(true);
5883
+ if (event.key === "Tab") {
5884
+ setIsOpen(false);
5885
+ onSelect == null ? void 0 : onSelect(event.currentTarget.value);
5886
+ (_a2 = inputRef.current) == null ? void 0 : _a2.blur();
5887
+ } else {
5888
+ setIsOpen(true);
5889
+ }
5895
5890
  if (event.key === "Enter") {
5896
5891
  const currentValue = event.currentTarget.value;
5897
5892
  onSelect == null ? void 0 : onSelect(currentValue);
5898
5893
  setIsOpen(false);
5899
- (_a2 = inputRef.current) == null ? void 0 : _a2.blur();
5894
+ (_b2 = inputRef.current) == null ? void 0 : _b2.blur();
5900
5895
  return;
5901
5896
  }
5902
5897
  },