@shopgate/pwa-ui-material 7.9.0-beta.5 → 7.9.0-beta.7

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.
@@ -1,4 +1,4 @@
1
1
  import React,{memo}from'react';import PropTypes from'prop-types';import I18n from'@shopgate/pwa-common/components/I18n';import Button from'@shopgate/pwa-ui-shared/Button';import styles from"../../style";/**
2
2
  * @param {Object} props The component props.
3
3
  * @returns {JSX}
4
- */var Buttons=function Buttons(_ref){var actions=_ref.actions;return actions.map(function(_ref2){var label=_ref2.label,action=_ref2.action;return React.createElement(Button,{key:label,className:styles.button,flat:true,type:"primary",onClick:action},React.createElement(I18n.Text,{string:label}));});};Buttons.defaultProps={actions:[]};export default memo(Buttons);
4
+ */var Buttons=function Buttons(_ref){var actions=_ref.actions;return actions.map(function(_ref2){var label=_ref2.label,action=_ref2.action,_ref2$disabled=_ref2.disabled,disabled=_ref2$disabled===void 0?false:_ref2$disabled;return React.createElement(Button,{key:label,className:styles.button,flat:true,type:"primary",onClick:action,disabled:disabled},React.createElement(I18n.Text,{string:label}));});};Buttons.defaultProps={actions:[]};export default memo(Buttons);
package/SnackBar/style.js CHANGED
@@ -1,2 +1,2 @@
1
1
  import{css}from'glamor';import Color from'color';import{themeColors,themeShadows}from'@shopgate/pwa-common/helpers/config';var backgroundColor=themeColors.lightDark;var buttonColor=themeColors.accent;var buttonColorContrast=Color(buttonColor).contrast(Color(backgroundColor));// Button color can be anything. Fall back to white if accent is too dark.
2
- var safebuttonColor=buttonColorContrast>4?buttonColor:themeColors.light;var container=css({position:'fixed',height:'var(--snack-bar-height, 80px)',bottom:'calc(var(--footer-height) + var(--safe-area-inset-bottom))',overflow:'hidden',zIndex:6,width:'100%'});var wrapper=css({top:'var(--snack-bar-height, 80px)',display:'flex',justifyContent:'center',left:0,position:'absolute',width:'100%',zIndex:6});var box=css({alignItems:'center',background:backgroundColor,borderRadius:3,boxShadow:themeShadows.toast,color:themeColors.light,display:'flex',fontSize:'0.875rem',justifyContent:'space-between',letterSpacing:0.5,margin:16,maxWidth:344,minHeight:48,padding:'6px 16px',width:'100%'});var label=css({lineHeight:1.4,margin:'6px 0',overflow:'hidden'}).toString();var button=css({color:safebuttonColor,fontWeight:500,height:36,letterSpacing:'inherit',margin:'0 -8px 0 8px',outline:0,padding:'0 8px',textTransform:'uppercase'});export default{container:container,wrapper:wrapper,box:box,label:label,button:button};
2
+ var safebuttonColor=buttonColorContrast>4?buttonColor:themeColors.light;var container=css({position:'fixed',height:'var(--snack-bar-height, 80px)',bottom:'var(--footer-height)',overflow:'hidden',zIndex:6,width:'100%'});var wrapper=css({top:'var(--snack-bar-height, 80px)',display:'flex',justifyContent:'center',left:0,position:'absolute',width:'100%',zIndex:6});var box=css({alignItems:'center',background:backgroundColor,borderRadius:3,boxShadow:themeShadows.toast,color:themeColors.light,display:'flex',fontSize:'0.875rem',justifyContent:'space-between',letterSpacing:0.5,margin:16,maxWidth:344,minHeight:48,padding:'6px 16px',width:'100%'});var label=css({lineHeight:1.4,margin:'6px 0',overflow:'hidden'}).toString();var button=css({color:safebuttonColor,fontWeight:500,height:36,letterSpacing:'inherit',margin:'0 -8px 0 8px',outline:0,padding:'0 8px',textTransform:'uppercase'});export default{container:container,wrapper:wrapper,box:box,label:label,button:button};
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-ui-material",
3
- "version": "7.9.0-beta.5",
3
+ "version": "7.9.0-beta.7",
4
4
  "description": "Shopgate's material design UI components.",
5
5
  "main": "index.js",
6
6
  "license": "Apache-2.0",
7
7
  "devDependencies": {
8
- "@shopgate/pwa-common": "7.9.0-beta.5",
8
+ "@shopgate/pwa-common": "7.9.0-beta.7",
9
9
  "react": "~16.12.0",
10
10
  "react-dom": "~16.12.0",
11
11
  "redux": "^4.0.1"