@shopgate/pwa-ui-shared 7.29.1-beta.1 → 7.29.1-beta.3
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,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 Color from'color';import{themeConfig}from'@shopgate/pwa-common/helpers/config';import{getCSSCustomProp}from'@shopgate/engage/styles';/**
|
|
2
2
|
* Get the item class.
|
|
3
|
-
* @param {
|
|
3
|
+
* @param {boolean} disabled Disabled.
|
|
4
4
|
* @returns {string}
|
|
5
5
|
*/export var getItemClass=function getItemClass(disabled){var background=themeConfig.colors.shade8;var customPropColor=getCSSCustomProp('--color-primary');if(customPropColor){background=Color(customPropColor).alpha(0.04);}return css(_extends({position:'relative',whiteSpace:'nowrap',marginBottom:2,padding:"".concat(themeConfig.variables.gap.big*0.875,"px ").concat(themeConfig.variables.gap.big*1.375,"px"),lineHeight:1,zIndex:1,color:disabled?'var(--color-text-low-emphasis)':'inherits'},!disabled?{cursor:'pointer',':hover':{background:background}}:{cursor:'default'})).toString();};
|
package/IndicatorCircle/index.js
CHANGED
|
@@ -4,6 +4,6 @@ import React from'react';import PropTypes from'prop-types';import{themeConfig}fr
|
|
|
4
4
|
* @param {Object} props.size Width and height of the circle.
|
|
5
5
|
* @param {Object} props.color Color of the circle.
|
|
6
6
|
* @param {Object} props.strokeWidth Stroke width of the circle.
|
|
7
|
-
* @param {
|
|
7
|
+
* @param {boolean} props.paused Animation should be paused.
|
|
8
8
|
* @returns {JSX}
|
|
9
9
|
*/var IndicatorCircle=function IndicatorCircle(_ref){var size=_ref.size,color=_ref.color,strokeWidth=_ref.strokeWidth,paused=_ref.paused;return React.createElement("svg",{className:"".concat(styles.spinner(paused)," ui-shared__indicator-circle"),viewBox:"25 25 50 50",width:size,height:size,xmlns:"http://www.w3.org/2000/svg","data-test-id":"loadingIndicator"},React.createElement("circle",{className:styles.circle(color,strokeWidth,paused),cx:"50",cy:"50",r:"20"}));};IndicatorCircle.defaultProps={color:"var(--color-secondary, ".concat(themeConfig.colors.accent,")"),paused:false,size:themeConfig.variables.loadingIndicator.size,strokeWidth:themeConfig.variables.loadingIndicator.strokeWidth};export default IndicatorCircle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{css}from'glamor';import{themeVariables,themeColors}from'@shopgate/pwa-common/helpers/config';var edgeHeight=45;var edgeWidth=35;var edgeBorderWidth=3;var edgeOffsetHorizontal=themeVariables.gap.xbig;var edgeOffsetVertical=themeVariables.gap.xxbig;export default css({
|
|
1
|
+
import{css}from'glamor';import{themeVariables,themeColors}from'@shopgate/pwa-common/helpers/config';var edgeHeight=45;var edgeWidth=35;var edgeBorderWidth=3;var edgeOffsetHorizontal=themeVariables.gap.xbig;var edgeOffsetVertical=themeVariables.gap.xxbig;export default css({height:'90%',width:'100%',':before,:after,>:before,>:after':{display:'block',content:' ',width:edgeWidth,height:edgeHeight,position:'absolute',borderStyle:'solid',borderColor:themeColors.light},':before':{top:edgeOffsetVertical,left:edgeOffsetHorizontal,borderWidth:"".concat(edgeBorderWidth,"px 0 0 ").concat(edgeBorderWidth,"px")},':after':{top:edgeOffsetVertical,right:edgeOffsetHorizontal,borderWidth:"".concat(edgeBorderWidth,"px ").concat(edgeBorderWidth,"px 0 0")},'>:before':{bottom:edgeOffsetVertical,left:edgeOffsetHorizontal,borderWidth:"0 0 ".concat(edgeBorderWidth,"px ").concat(edgeBorderWidth,"px")},'>:after':{bottom:edgeOffsetVertical,right:edgeOffsetHorizontal,borderWidth:"0 ".concat(edgeBorderWidth,"px ").concat(edgeBorderWidth,"px 0")}}).toString();
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-ui-shared",
|
|
3
|
-
"version": "7.29.1-beta.
|
|
3
|
+
"version": "7.29.1-beta.3",
|
|
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.29.1-beta.
|
|
9
|
-
"@shopgate/pwa-ui-material": "7.29.1-beta.
|
|
8
|
+
"@shopgate/pwa-ui-ios": "7.29.1-beta.3",
|
|
9
|
+
"@shopgate/pwa-ui-material": "7.29.1-beta.3",
|
|
10
10
|
"react-day-picker": "^7.4.8"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@shopgate/pwa-common": "7.29.1-beta.
|
|
14
|
-
"@shopgate/pwa-common-commerce": "7.29.1-beta.
|
|
13
|
+
"@shopgate/pwa-common": "7.29.1-beta.3",
|
|
14
|
+
"@shopgate/pwa-common-commerce": "7.29.1-beta.3",
|
|
15
15
|
"classnames": "2.5.1",
|
|
16
16
|
"react": "~16.14.0"
|
|
17
17
|
},
|