@commercetools-uikit/flat-button 19.1.0 → 19.2.0
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.
|
@@ -45,13 +45,13 @@ const getTextColor = props => {
|
|
|
45
45
|
}
|
|
46
46
|
switch (props.tone) {
|
|
47
47
|
case 'primary':
|
|
48
|
-
return props.isHover ? designSystem.designTokens.
|
|
48
|
+
return props.isHover ? designSystem.designTokens.colorPrimary40 : designSystem.designTokens.colorPrimary30;
|
|
49
49
|
case 'secondary':
|
|
50
50
|
return props.isHover ? designSystem.designTokens.colorPrimary25 : designSystem.designTokens.colorSolid;
|
|
51
51
|
case 'inverted':
|
|
52
52
|
return designSystem.designTokens.colorSurface;
|
|
53
53
|
case 'critical':
|
|
54
|
-
return props.isHover ? designSystem.designTokens.
|
|
54
|
+
return props.isHover ? designSystem.designTokens.colorError : designSystem.designTokens.colorError40;
|
|
55
55
|
default:
|
|
56
56
|
return 'inherit';
|
|
57
57
|
}
|
|
@@ -153,7 +153,7 @@ FlatButton.defaultProps = defaultProps;
|
|
|
153
153
|
var FlatButton$1 = FlatButton;
|
|
154
154
|
|
|
155
155
|
// NOTE: This string will be replaced on build time with the package version.
|
|
156
|
-
var version = "19.
|
|
156
|
+
var version = "19.2.0";
|
|
157
157
|
|
|
158
158
|
exports["default"] = FlatButton$1;
|
|
159
159
|
exports.version = version;
|
|
@@ -44,13 +44,13 @@ const getTextColor = props => {
|
|
|
44
44
|
}
|
|
45
45
|
switch (props.tone) {
|
|
46
46
|
case 'primary':
|
|
47
|
-
return props.isHover ? designSystem.designTokens.
|
|
47
|
+
return props.isHover ? designSystem.designTokens.colorPrimary40 : designSystem.designTokens.colorPrimary30;
|
|
48
48
|
case 'secondary':
|
|
49
49
|
return props.isHover ? designSystem.designTokens.colorPrimary25 : designSystem.designTokens.colorSolid;
|
|
50
50
|
case 'inverted':
|
|
51
51
|
return designSystem.designTokens.colorSurface;
|
|
52
52
|
case 'critical':
|
|
53
|
-
return props.isHover ? designSystem.designTokens.
|
|
53
|
+
return props.isHover ? designSystem.designTokens.colorError : designSystem.designTokens.colorError40;
|
|
54
54
|
default:
|
|
55
55
|
return 'inherit';
|
|
56
56
|
}
|
|
@@ -128,7 +128,7 @@ FlatButton.defaultProps = defaultProps;
|
|
|
128
128
|
var FlatButton$1 = FlatButton;
|
|
129
129
|
|
|
130
130
|
// NOTE: This string will be replaced on build time with the package version.
|
|
131
|
-
var version = "19.
|
|
131
|
+
var version = "19.2.0";
|
|
132
132
|
|
|
133
133
|
exports["default"] = FlatButton$1;
|
|
134
134
|
exports.version = version;
|
|
@@ -26,13 +26,13 @@ const getTextColor = props => {
|
|
|
26
26
|
}
|
|
27
27
|
switch (props.tone) {
|
|
28
28
|
case 'primary':
|
|
29
|
-
return props.isHover ? designTokens.
|
|
29
|
+
return props.isHover ? designTokens.colorPrimary40 : designTokens.colorPrimary30;
|
|
30
30
|
case 'secondary':
|
|
31
31
|
return props.isHover ? designTokens.colorPrimary25 : designTokens.colorSolid;
|
|
32
32
|
case 'inverted':
|
|
33
33
|
return designTokens.colorSurface;
|
|
34
34
|
case 'critical':
|
|
35
|
-
return props.isHover ? designTokens.
|
|
35
|
+
return props.isHover ? designTokens.colorError : designTokens.colorError40;
|
|
36
36
|
default:
|
|
37
37
|
return 'inherit';
|
|
38
38
|
}
|
|
@@ -134,6 +134,6 @@ FlatButton.defaultProps = defaultProps;
|
|
|
134
134
|
var FlatButton$1 = FlatButton;
|
|
135
135
|
|
|
136
136
|
// NOTE: This string will be replaced on build time with the package version.
|
|
137
|
-
var version = "19.
|
|
137
|
+
var version = "19.2.0";
|
|
138
138
|
|
|
139
139
|
export { FlatButton$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/flat-button",
|
|
3
3
|
"description": "Flat buttons are minimal and a flat variation of primary and secondary buttons.",
|
|
4
|
-
"version": "19.
|
|
4
|
+
"version": "19.2.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "19.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.
|
|
26
|
-
"@commercetools-uikit/spacings-inline": "19.
|
|
27
|
-
"@commercetools-uikit/text": "19.
|
|
28
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/accessible-button": "19.2.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.2.0",
|
|
26
|
+
"@commercetools-uikit/spacings-inline": "19.2.0",
|
|
27
|
+
"@commercetools-uikit/text": "19.2.0",
|
|
28
|
+
"@commercetools-uikit/utils": "19.2.0",
|
|
29
29
|
"@emotion/react": "^11.10.5",
|
|
30
30
|
"@emotion/styled": "^11.10.5",
|
|
31
31
|
"lodash": "4.17.21",
|