@janiscommerce/ui-web 0.9.0 → 0.9.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.
- package/CHANGELOG.md +6 -0
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.umd.js
CHANGED
|
@@ -1934,8 +1934,8 @@
|
|
|
1934
1934
|
return isValidColor(color) ? viewsPalette["".concat(color, "Pressed")] : bluePressed;
|
|
1935
1935
|
};
|
|
1936
1936
|
|
|
1937
|
-
var commonStyles = function commonStyles(iconColor, fontColor) {
|
|
1938
|
-
return styled$b.css(["color:", ";.button-icon{fill:", ";}background:none;&:focus,&:hover{background-color:", ";}&:active{background-color:", ";}&:disabled{color:", ";.button-icon{fill:", ";}}"], getColor(fontColor || blue), getColor(iconColor || blue), lightGreyHover, lightGrey, grey, grey);
|
|
1937
|
+
var commonStyles = function commonStyles(iconColor, fontColor, color) {
|
|
1938
|
+
return styled$b.css(["color:", ";.button-icon{fill:", ";}background:none;&:focus,&:hover{background-color:", ";}&:active{background-color:", ";}&:disabled{color:", ";.button-icon{fill:", ";}}"], getColor(fontColor || color || blue), getColor(iconColor || color || blue), lightGreyHover, lightGrey, grey, grey);
|
|
1939
1939
|
};
|
|
1940
1940
|
|
|
1941
1941
|
var getButtonStyles = function getButtonStyles(_ref) {
|
|
@@ -1948,10 +1948,10 @@
|
|
|
1948
1948
|
return styled$b.css(["color:", ";&:before{background-color:", ";}.button-icon{fill:", ";}&:focus:after,&:hover:after{background-color:", ";}&:active{background-color:", ";}&:disabled{&:before,&:after{background-color:", ";}}"], getColor(fontColor || 'white'), getColor(color), white, getHoverColor(color), getPressedColor(color), grey);
|
|
1949
1949
|
},
|
|
1950
1950
|
outlined: function outlined() {
|
|
1951
|
-
return styled$b.css(["", ";border:1px solid ", ";"], commonStyles(color), getColor(grey));
|
|
1951
|
+
return styled$b.css(["", ";border:1px solid ", ";"], commonStyles(iconColor, fontColor, color), getColor(grey));
|
|
1952
1952
|
},
|
|
1953
1953
|
cleaned: function cleaned() {
|
|
1954
|
-
return commonStyles(iconColor, fontColor);
|
|
1954
|
+
return commonStyles(iconColor, fontColor, color);
|
|
1955
1955
|
}
|
|
1956
1956
|
};
|
|
1957
1957
|
return variantStyles[variant] || '';
|