@shopgate/pwa-ui-shared 6.22.0-beta.6 → 6.22.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.
- package/Dialog/index.js +1 -1
- package/package.json +5 -5
package/Dialog/index.js
CHANGED
|
@@ -8,4 +8,4 @@ var _dialogTypes;function _defineProperty(obj,key,value){if(key in obj){Object.d
|
|
|
8
8
|
var actions=[];var confirm=modal.confirm,dismiss=modal.dismiss,title=modal.title,titleParams=modal.titleParams,message=modal.message,params=modal.params,type=modal.type,content=modal.content;// Push dismiss action first so the button is rendered first
|
|
9
9
|
if(dismiss){// We have a dismiss label, add a dismiss action.
|
|
10
10
|
actions.push({label:modal.dismiss,action:onDismiss,type:MODAL_ACTION_TYPE_PRIMARY});}if(confirm){// We have a confirm label, add a confirm action.
|
|
11
|
-
actions.push({label:modal.confirm,action:onConfirm,type:MODAL_ACTION_TYPE_NORMAL});}var dialogType=type;if(!dialogType&&message){dialogType=DIALOG_TEXT_MESSAGE;}var dialogTitle=title;if(titleParams){dialogTitle=/*#__PURE__*/React.createElement(I18n.Text,{string:title,params:titleParams});}var dialogProps={actions:actions,title:dialogTitle,params:params,message:message||undefined,children:children};var DialogComponent=dialogTypes[dialogType]||BasicDialog;return/*#__PURE__*/React.createElement(Modal,null,/*#__PURE__*/React.createElement(Backdrop,{isVisible:true,level:0}),/*#__PURE__*/React.createElement(DialogComponent,dialogProps,content));};Dialog.defaultProps={children:null,onConfirm:function onConfirm(){},onDismiss:function onDismiss(){}};export default Dialog;
|
|
11
|
+
actions.push({label:modal.confirm,action:onConfirm,type:MODAL_ACTION_TYPE_NORMAL});}var dialogType=type;if(!dialogType&&message){dialogType=DIALOG_TEXT_MESSAGE;}var dialogTitle=title;if(titleParams){dialogTitle=/*#__PURE__*/React.createElement(I18n.Text,{string:title,params:titleParams});}var dialogProps={actions:actions,title:dialogTitle,params:params,message:message||undefined,children:children};var DialogComponent=dialogTypes[dialogType]||BasicDialog;return/*#__PURE__*/React.createElement(Modal,null,/*#__PURE__*/React.createElement(Backdrop,{isVisible:true,level:0,opacity:30}),/*#__PURE__*/React.createElement(DialogComponent,dialogProps,content));};Dialog.defaultProps={children:null,onConfirm:function onConfirm(){},onDismiss:function onDismiss(){}};export default Dialog;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-ui-shared",
|
|
3
|
-
"version": "6.22.0-beta.
|
|
3
|
+
"version": "6.22.0-beta.7",
|
|
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": "6.22.0-beta.
|
|
9
|
-
"@shopgate/pwa-ui-material": "6.22.0-beta.
|
|
8
|
+
"@shopgate/pwa-ui-ios": "6.22.0-beta.7",
|
|
9
|
+
"@shopgate/pwa-ui-material": "6.22.0-beta.7"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@shopgate/pwa-common": "6.22.0-beta.
|
|
13
|
-
"@shopgate/pwa-common-commerce": "6.22.0-beta.
|
|
12
|
+
"@shopgate/pwa-common": "6.22.0-beta.7",
|
|
13
|
+
"@shopgate/pwa-common-commerce": "6.22.0-beta.7",
|
|
14
14
|
"classnames": "^2.2.5",
|
|
15
15
|
"react": "~16.12.0"
|
|
16
16
|
},
|