pebble-web 2.26.1 → 2.26.2

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.
@@ -1768,7 +1768,7 @@
1768
1768
  color: violet.lighter
1769
1769
  }
1770
1770
  };
1771
- var getStyleByType = function getStyleByType(type, filled) {
1771
+ var getStyleByType = function getStyleByType(type, outline) {
1772
1772
  if (type === "link") return linkStyle;
1773
1773
  var _color = mappingColorByType[type];
1774
1774
  var colorBase = _color.base,
@@ -1776,11 +1776,11 @@
1776
1776
  hover = _color.hover,
1777
1777
  active = _color.active,
1778
1778
  textColor = _color.textColor;
1779
- var defaultFontColor = filled ? textColor || white.base : colorBase;
1779
+ var defaultFontColor = outline ? colorBase : textColor || white.base;
1780
1780
  return {
1781
1781
  color: defaultFontColor,
1782
- backgroundColor: filled ? colorBase : white.base,
1783
- border: filled ? "none" : "1px solid ".concat(colorBase),
1782
+ backgroundColor: outline ? white.base : colorBase,
1783
+ border: outline ? "1px solid ".concat(colorBase) : "none",
1784
1784
  "&:not([disabled]):hover": {
1785
1785
  color: textColor || white.base,
1786
1786
  backgroundColor: hover,
@@ -1812,8 +1812,8 @@
1812
1812
  minWidth: 140
1813
1813
  }, typography.normal.regular)
1814
1814
  };
1815
- var getButtonStyle = function getButtonStyle(size, type, showShadow, filled) {
1816
- return /*#__PURE__*/css([commonButtonStyle, _objectSpread$2(_objectSpread$2(_objectSpread$2({}, styleBasedOnSize[size]), getStyleByType(type, filled)), {}, {
1815
+ var getButtonStyle = function getButtonStyle(size, type, showShadow, outline) {
1816
+ return /*#__PURE__*/css([commonButtonStyle, _objectSpread$2(_objectSpread$2(_objectSpread$2({}, styleBasedOnSize[size]), getStyleByType(type, outline)), {}, {
1817
1817
  boxShadow: showShadow ? constants.boxShadow.base : "none"
1818
1818
  })], "" );
1819
1819
  };
@@ -1921,8 +1921,7 @@
1921
1921
  buttonProps = _ref.buttonProps,
1922
1922
  testId = _ref.testId;
1923
1923
  var disableAction = disabled || loading;
1924
- var _outline = size === "x-small" || !!outline;
1925
- var _className = cx(getButtonStyle(size, type, !!showShadow, !_outline), className);
1924
+ var _className = cx(getButtonStyle(size, type, !!showShadow, !!outline), className);
1926
1925
  return /*#__PURE__*/React.createElement("button", Object.assign({
1927
1926
  className: _className,
1928
1927
  onClick: !disableAction ? onClick : undefined,
@@ -1932,7 +1931,7 @@
1932
1931
  disabled: disabled,
1933
1932
  "data-testid": testId
1934
1933
  }, buttonProps), loading ? /*#__PURE__*/React.createElement(Loader, {
1935
- color: colors.white.base,
1934
+ color: "currentColor",
1936
1935
  scale: 0.4
1937
1936
  }) : children, !disableAction && showRipple && type !== "link" && /*#__PURE__*/React.createElement(Ink, null));
1938
1937
  };