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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pebble-web",
3
- "version": "2.26.1",
3
+ "version": "2.26.2",
4
4
  "author": "ritz078 <rkritesh078@gmail.com>",
5
5
  "license": "MIT",
6
6
  "main": "dist/pebble-web.js",
@@ -44,7 +44,7 @@
44
44
  "utility-types": "^3.10.0"
45
45
  },
46
46
  "devDependencies": {
47
- "pebble-shared": "^2.26.1"
47
+ "pebble-shared": "^2.26.2"
48
48
  },
49
49
  "greenkeeper": {
50
50
  "ignore": [
@@ -9,7 +9,6 @@ import {
9
9
  import Ink from "react-ink";
10
10
  import { ButtonProps, DropDownButtonProps } from "./typings/Button";
11
11
  import Loader from "./Loader";
12
- import { colors } from "pebble-shared";
13
12
 
14
13
  const Button: React.FunctionComponent<ButtonProps> = ({
15
14
  type = "primary",
@@ -28,10 +27,8 @@ const Button: React.FunctionComponent<ButtonProps> = ({
28
27
  }: ButtonProps) => {
29
28
  const disableAction = disabled || loading;
30
29
 
31
- const _outline = size === "x-small" || !!outline;
32
-
33
30
  const _className = cx(
34
- getButtonStyle(size, type, !!showShadow, !_outline),
31
+ getButtonStyle(size, type, !!showShadow, !!outline),
35
32
  className
36
33
  );
37
34
 
@@ -44,7 +41,7 @@ const Button: React.FunctionComponent<ButtonProps> = ({
44
41
  data-testid={testId}
45
42
  {...buttonProps}
46
43
  >
47
- {loading ? <Loader color={colors.white.base} scale={0.4} /> : children}
44
+ {loading ? <Loader color="currentColor" scale={0.4} /> : children}
48
45
  {!disableAction && showRipple && type !== "link" && <Ink />}
49
46
  </button>
50
47
  );