@flodesk/grain 10.13.0 → 10.13.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.
@@ -9,7 +9,7 @@ export var componentVars = {
9
9
  textBoxHeight: '40px',
10
10
  clearButtonHeight: '36px',
11
11
  clearButtonDangerBackgroundHover: 'hsl(var(--redHS) var(--redL) / 12%)',
12
- clearButtonDangerBackgroundActive: 'hsl(var(--redHS) var(--redL) / 60%)',
12
+ clearButtonDangerBackgroundActive: 'hsl(var(--redHS) var(--redL) / 19%)',
13
13
  dangerIconColor: 'hsl(var(--redHS) var(--redL) / 70%)'
14
14
  };
15
15
  var buttonResetStyles = "\n appearance: none;\n font-family: inherit;\n font-size: inherit;\n font-weight: ".concat(getWeight('medium'), ";\n cursor: pointer;\n");
@@ -27,7 +27,7 @@ var variantStyles = {
27
27
  iconColor: getColor('content')
28
28
  },
29
29
  active: {
30
- borderColor: getColor('fade5')
30
+ backgroundColor: getColor('fade2')
31
31
  }
32
32
  },
33
33
  danger: {
@@ -38,7 +38,7 @@ var variantStyles = {
38
38
  iconColor: getColor('danger')
39
39
  },
40
40
  active: {
41
- borderColor: componentVars.clearButtonDangerBackgroundActive
41
+ backgroundColor: componentVars.clearButtonDangerBackgroundActive
42
42
  }
43
43
  }
44
44
  };
@@ -47,7 +47,7 @@ export var getClearButtonStyles = function getClearButtonStyles(_ref) {
47
47
  variant = _ref$variant === void 0 ? 'neutral' : _ref$variant,
48
48
  isActive = _ref.isActive,
49
49
  isDisabled = _ref.isDisabled;
50
- var box = "\n ".concat(buttonResetStyles, ";\n ").concat(transitionStyles, ";\n\n border: none;\n padding: 0;\n border-radius: ").concat(getRadius('s'), ";\n height: ").concat(componentVars.clearButtonHeight, ";\n background-color: transparent;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:hover {\n background-color: ").concat(variant && variantStyles[variant].hover.backgroundColor, ";\n\n .Icon {\n color: ").concat(variant && variantStyles[variant].hover.iconColor, ";\n }\n }\n\n &:active {\n --border: ").concat(componentVars.strokeSize, " ").concat(variantStyles[variant].active.borderColor, ";\n background-color: transparent;\n box-shadow: inset 0 0 0 var(--border);\n }\n\n ").concat(isDisabled && "pointer-events: none; ", "\n ");
50
+ var box = "\n ".concat(buttonResetStyles, ";\n ").concat(transitionStyles, ";\n\n border: none;\n padding: 0;\n border-radius: ").concat(getRadius('s'), ";\n height: ").concat(componentVars.clearButtonHeight, ";\n background-color: transparent;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:hover {\n background-color: ").concat(variant && variantStyles[variant].hover.backgroundColor, ";\n\n .Icon {\n color: ").concat(variant && variantStyles[variant].hover.iconColor, ";\n }\n }\n\n &:active {\n background-color: ").concat(variant && variantStyles[variant].active.backgroundColor, ";\n }\n\n ").concat(isDisabled && "pointer-events: none; ", "\n ");
51
51
  var icon = "\n ".concat(transitionStyles, ";\n color: ").concat(variant && variantStyles[variant].iconColor, ";\n ").concat(isActive && "color: ".concat(variant && variantStyles[variant].color), ";\n ").concat(isDisabled && "color: ".concat(getColor('disabledIcon')), ";\n ");
52
52
  var text = "\n color: ".concat(variant && variantStyles[variant].color, ";\n ").concat(isDisabled && "color: ".concat(getColor('disabledContent')), ";\n ");
53
53
  var clearButtonStyles = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flodesk/grain",
3
- "version": "10.13.0",
3
+ "version": "10.13.1",
4
4
  "description": "Flodesk design system",
5
5
  "module": "es/index.js",
6
6
  "author": "Flodesk",