@commercetools-uikit/primary-button 18.1.0 → 18.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.
|
@@ -55,10 +55,6 @@ var _ref2 = {
|
|
|
55
55
|
name: "dx7qb5",
|
|
56
56
|
styles: "background-color:#dc630a;&:focus,&:hover{background-color:#e7680d;}"
|
|
57
57
|
} ;
|
|
58
|
-
var _ref3 = {
|
|
59
|
-
name: "235xut",
|
|
60
|
-
styles: "background-color:#15a390;&:focus,&:hover{background-color:#17ab97;}"
|
|
61
|
-
} ;
|
|
62
58
|
const getButtonStyles = (isDisabled, isActive, tone, size) => {
|
|
63
59
|
const baseStyles = /*#__PURE__*/react.css("align-items:center;color:", designSystem.designTokens.colorSurface, ";transition:background-color ", designSystem.designTokens.transitionLinear80Ms, ";padding:", designSystem.designTokens.paddingForButton, ";", getSizeStyles(size), ";" + ("" ), "" );
|
|
64
60
|
// "disabled" takes precendece over "active"
|
|
@@ -72,7 +68,7 @@ const getButtonStyles = (isDisabled, isActive, tone, size) => {
|
|
|
72
68
|
// TODO: This custom colors where itroduced in the Merchant Center redign 2023
|
|
73
69
|
// We need to check with designers if we want to introduce them in our color palette
|
|
74
70
|
// They are 'color-primary' with 10% and 5% black opacity
|
|
75
|
-
return [baseActiveStyles,
|
|
71
|
+
return [baseActiveStyles, /*#__PURE__*/react.css("background-color:", designSystem.designTokens.backgroundColorForButtonAsPrimary, ";&:focus,&:hover{background-color:", designSystem.designTokens.backgroundColorForButtonAsPrimaryAsDefaultWhenHovered, ";}" + ("" ), "" )];
|
|
76
72
|
case 'urgent':
|
|
77
73
|
// TODO: This custom colors where itroduced in the Merchant Center redign 2023
|
|
78
74
|
// We need to check with designers if we want to introduce them in our color palette
|
|
@@ -93,12 +89,12 @@ const getButtonStyles = (isDisabled, isActive, tone, size) => {
|
|
|
93
89
|
// TODO: This custom colors where itroduced in the Merchant Center redign 2023
|
|
94
90
|
// We need to check with designers if we want to introduce them in our color palette
|
|
95
91
|
// They are 'color-primary' with 10% and 5% black opacity
|
|
96
|
-
return [baseDefaultStyles, /*#__PURE__*/react.css("background-color:", designSystem.designTokens.colorPrimary, ";&:focus,&:hover{background-color
|
|
92
|
+
return [baseDefaultStyles, /*#__PURE__*/react.css("background-color:", designSystem.designTokens.colorPrimary, ";&:focus,&:hover{background-color:", designSystem.designTokens.backgroundColorForButtonAsPrimaryAsDefaultWhenHovered, ";}&:active{background-color:", designSystem.designTokens.backgroundColorForButtonAsPrimaryAsDefaultWhenActive, ";}" + ("" ), "" )];
|
|
97
93
|
case 'urgent':
|
|
98
94
|
// TODO: This custom colors where itroduced in the Merchant Center redign 2023
|
|
99
95
|
// We need to check with designers if we want to introduce them in our color palette
|
|
100
96
|
// They are 'color-warning' with 10% and 5% black opacity
|
|
101
|
-
return [baseDefaultStyles, /*#__PURE__*/react.css("background-color:", designSystem.designTokens.
|
|
97
|
+
return [baseDefaultStyles, /*#__PURE__*/react.css("background-color:", designSystem.designTokens.backgroundColorForButtonAsPrimaryAsUrgent, ";&:focus,&:hover{background-color:#e7680d;}&:active{background-color:#dc630a;}" + ("" ), "" )];
|
|
102
98
|
case 'critical':
|
|
103
99
|
// TODO: These custom colors where itroduced in the Merchant Center redign 2023
|
|
104
100
|
// We need to check with designers if we want to introduce them in our color palette
|
|
@@ -159,7 +155,7 @@ PrimaryButton.displayName = 'PrimaryButton';
|
|
|
159
155
|
var PrimaryButton$1 = PrimaryButton;
|
|
160
156
|
|
|
161
157
|
// NOTE: This string will be replaced on build time with the package version.
|
|
162
|
-
var version = "18.
|
|
158
|
+
var version = "18.2.0";
|
|
163
159
|
|
|
164
160
|
exports["default"] = PrimaryButton$1;
|
|
165
161
|
exports.version = version;
|