@shopgate/pwa-ui-shared 7.5.2 → 7.6.0-beta.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/DiscountBadge/style.js +2 -2
- package/package.json +5 -5
package/DiscountBadge/style.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}import{css}from'glamor';import{themeConfig}from'@shopgate/pwa-common/helpers/config';var colors=themeConfig.colors;var badge=_extends({// Before the custom properties the primary color was used for this class.
|
|
2
|
-
background:"var(--color-secondary, ".concat(colors.primary,")"),borderRadius:2,color:"var(--color-secondary-contrast, ".concat(colors.primaryContrast,")"),
|
|
2
|
+
background:"var(--color-secondary, ".concat(colors.primary,")"),borderRadius:2,color:"var(--color-secondary-contrast, ".concat(colors.primaryContrast,")"),padding:5,width:'100%',fontWeight:700,textAlign:'center',display:'flex',justifyContent:'center',alignItems:'center',lineHeight:1,whiteSpace:'nowrap'},themeConfig.variables.discountBadgeBase);/**
|
|
3
3
|
* The discount badge styles that can be selected by passing the style key.
|
|
4
4
|
* @type {Object}
|
|
5
|
-
*/export default{small:css(_extends({},badge)).toString(),big:css(_extends({},badge,{paddingTop:
|
|
5
|
+
*/export default{small:css(_extends({},badge)).toString(),big:css(_extends({},badge,{paddingTop:5,paddingLeft:5,paddingRight:5})).toString()};
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-ui-shared",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0-beta.1",
|
|
4
4
|
"description": "Shopgate's shared UI components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@shopgate/pwa-ui-ios": "7.
|
|
9
|
-
"@shopgate/pwa-ui-material": "7.
|
|
8
|
+
"@shopgate/pwa-ui-ios": "7.6.0-beta.1",
|
|
9
|
+
"@shopgate/pwa-ui-material": "7.6.0-beta.1",
|
|
10
10
|
"react-day-picker": "^7.4.8"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@shopgate/pwa-common": "7.
|
|
14
|
-
"@shopgate/pwa-common-commerce": "7.
|
|
13
|
+
"@shopgate/pwa-common": "7.6.0-beta.1",
|
|
14
|
+
"@shopgate/pwa-common-commerce": "7.6.0-beta.1",
|
|
15
15
|
"classnames": "^2.2.5",
|
|
16
16
|
"react": "~16.12.0"
|
|
17
17
|
},
|