@webiny/app-admin-rmwc 5.35.2 → 5.36.0-beta.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.
|
@@ -41,6 +41,7 @@ var DialogContainer = function DialogContainer() {
|
|
|
41
41
|
}, title && /*#__PURE__*/_react.default.createElement(_Dialog.DialogTitle, null, title), /*#__PURE__*/_react.default.createElement(_Dialog.DialogContent, null, message), /*#__PURE__*/_react.default.createElement(_Dialog.DialogActions, null, actions.cancel && /*#__PURE__*/_react.default.createElement(_Dialog.DialogAccept, {
|
|
42
42
|
onClick: actions.cancel.onClick
|
|
43
43
|
}, actions.cancel.label), actions.accept && /*#__PURE__*/_react.default.createElement(_Button.ButtonPrimary, {
|
|
44
|
+
"data-testid": "confirmationdialog-confirm-action",
|
|
44
45
|
onClick: function onClick() {
|
|
45
46
|
actions.accept.onClick();
|
|
46
47
|
hideDialog();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DialogContainer","ui","useUi","message","dataTestId","title","actions","cancel","accept","label","style","hideDialog","useCallback","setState","dialog","onClick"],"sources":["Dialog.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { get } from \"lodash\";\nimport { useUi } from \"@webiny/app/hooks/useUi\";\nimport { Dialog, DialogAccept, DialogTitle, DialogActions, DialogContent } from \"@webiny/ui/Dialog\";\nimport { ButtonPrimary } from \"@webiny/ui/Button\";\n\nexport const DialogContainer: React.FC = () => {\n const ui = useUi();\n const message: React.ReactNode = get(ui, \"dialog.message\");\n const {\n dataTestId,\n title,\n actions = { cancel: null, accept: { label: \"OK\" } },\n style\n } = get(ui, \"dialog.options\", {});\n\n const hideDialog = useCallback(() => {\n ui.setState(ui => ({ ...ui, dialog: null }));\n }, [ui]);\n\n return (\n <Dialog open={!!message} onClose={hideDialog} data-testid={dataTestId} style={style}>\n {title && <DialogTitle>{title}</DialogTitle>}\n <DialogContent>{message}</DialogContent>\n <DialogActions>\n {actions.cancel && (\n <DialogAccept onClick={actions.cancel.onClick}>\n {actions.cancel.label}\n </DialogAccept>\n )}\n {actions.accept && (\n <ButtonPrimary\n onClick={() => {\n actions.accept.onClick();\n hideDialog();\n }}\n >\n {actions.accept.label}\n </ButtonPrimary>\n )}\n </DialogActions>\n </Dialog>\n );\n};\n"],"mappings":";;;;;;;;;;AAAA;AAEA;AACA;AACA;AAEO,IAAMA,eAAyB,GAAG,SAA5BA,eAAyB,GAAS;EAC3C,IAAMC,EAAE,GAAG,IAAAC,YAAK,GAAE;EAClB,IAAMC,OAAwB,GAAG,mBAAIF,EAAE,EAAE,gBAAgB,CAAC;EAC1D,YAKI,mBAAIA,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;IAJ7BG,UAAU,SAAVA,UAAU;IACVC,KAAK,SAALA,KAAK;IAAA,sBACLC,OAAO;IAAPA,OAAO,8BAAG;MAAEC,MAAM,EAAE,IAAI;MAAEC,MAAM,EAAE;QAAEC,KAAK,EAAE;MAAK;IAAE,CAAC;IACnDC,KAAK,SAALA,KAAK;EAGT,IAAMC,UAAU,GAAG,IAAAC,kBAAW,EAAC,YAAM;IACjCX,EAAE,CAACY,QAAQ,CAAC,UAAAZ,EAAE;MAAA,mEAAUA,EAAE;QAAEa,MAAM,EAAE;MAAI;IAAA,CAAG,CAAC;EAChD,CAAC,EAAE,CAACb,EAAE,CAAC,CAAC;EAER,oBACI,6BAAC,cAAM;IAAC,IAAI,EAAE,CAAC,CAACE,OAAQ;IAAC,OAAO,EAAEQ,UAAW;IAAC,eAAaP,UAAW;IAAC,KAAK,EAAEM;EAAM,GAC/EL,KAAK,iBAAI,6BAAC,mBAAW,QAAEA,KAAK,CAAe,eAC5C,6BAAC,qBAAa,QAAEF,OAAO,CAAiB,eACxC,6BAAC,qBAAa,QACTG,OAAO,CAACC,MAAM,iBACX,6BAAC,oBAAY;IAAC,OAAO,EAAED,OAAO,CAACC,MAAM,CAACQ;EAAQ,GACzCT,OAAO,CAACC,MAAM,CAACE,KAAK,CAE5B,EACAH,OAAO,CAACE,MAAM,iBACX,6BAAC,qBAAa;IACV,OAAO,EAAE,mBAAM;MACXF,OAAO,CAACE,MAAM,CAACO,OAAO,EAAE;MACxBJ,UAAU,EAAE;IAChB;EAAE,GAEDL,OAAO,CAACE,MAAM,CAACC,KAAK,CAE5B,CACW,CACX;AAEjB,CAAC;AAAC"}
|
|
1
|
+
{"version":3,"names":["DialogContainer","ui","useUi","message","dataTestId","title","actions","cancel","accept","label","style","hideDialog","useCallback","setState","dialog","onClick"],"sources":["Dialog.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { get } from \"lodash\";\nimport { useUi } from \"@webiny/app/hooks/useUi\";\nimport { Dialog, DialogAccept, DialogTitle, DialogActions, DialogContent } from \"@webiny/ui/Dialog\";\nimport { ButtonPrimary } from \"@webiny/ui/Button\";\n\nexport const DialogContainer: React.FC = () => {\n const ui = useUi();\n const message: React.ReactNode = get(ui, \"dialog.message\");\n const {\n dataTestId,\n title,\n actions = { cancel: null, accept: { label: \"OK\" } },\n style\n } = get(ui, \"dialog.options\", {});\n\n const hideDialog = useCallback(() => {\n ui.setState(ui => ({ ...ui, dialog: null }));\n }, [ui]);\n\n return (\n <Dialog open={!!message} onClose={hideDialog} data-testid={dataTestId} style={style}>\n {title && <DialogTitle>{title}</DialogTitle>}\n <DialogContent>{message}</DialogContent>\n <DialogActions>\n {actions.cancel && (\n <DialogAccept onClick={actions.cancel.onClick}>\n {actions.cancel.label}\n </DialogAccept>\n )}\n {actions.accept && (\n <ButtonPrimary\n data-testid={\"confirmationdialog-confirm-action\"}\n onClick={() => {\n actions.accept.onClick();\n hideDialog();\n }}\n >\n {actions.accept.label}\n </ButtonPrimary>\n )}\n </DialogActions>\n </Dialog>\n );\n};\n"],"mappings":";;;;;;;;;;AAAA;AAEA;AACA;AACA;AAEO,IAAMA,eAAyB,GAAG,SAA5BA,eAAyB,GAAS;EAC3C,IAAMC,EAAE,GAAG,IAAAC,YAAK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
|
"name": "@webiny/app-admin-rmwc",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.36.0-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"@rmwc/base": "7.0.3",
|
|
15
15
|
"@rmwc/provider": "7.0.3",
|
|
16
16
|
"@types/react": "17.0.39",
|
|
17
|
-
"@webiny/app": "
|
|
18
|
-
"@webiny/app-admin": "
|
|
19
|
-
"@webiny/app-plugin-admin-welcome-screen": "
|
|
20
|
-
"@webiny/app-security": "
|
|
21
|
-
"@webiny/plugins": "
|
|
22
|
-
"@webiny/react-router": "
|
|
23
|
-
"@webiny/ui": "
|
|
17
|
+
"@webiny/app": "5.36.0-beta.0",
|
|
18
|
+
"@webiny/app-admin": "5.36.0-beta.0",
|
|
19
|
+
"@webiny/app-plugin-admin-welcome-screen": "5.36.0-beta.0",
|
|
20
|
+
"@webiny/app-security": "5.36.0-beta.0",
|
|
21
|
+
"@webiny/plugins": "5.36.0-beta.0",
|
|
22
|
+
"@webiny/react-router": "5.36.0-beta.0",
|
|
23
|
+
"@webiny/ui": "5.36.0-beta.0",
|
|
24
24
|
"classnames": "2.3.2",
|
|
25
25
|
"emotion": "10.0.27",
|
|
26
26
|
"lodash": "4.17.21",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@babel/preset-react": "7.18.6",
|
|
38
38
|
"@babel/preset-typescript": "7.18.6",
|
|
39
39
|
"@types/react-helmet": "6.1.6",
|
|
40
|
-
"@webiny/cli": "
|
|
41
|
-
"@webiny/project-utils": "
|
|
40
|
+
"@webiny/cli": "5.36.0-beta.0",
|
|
41
|
+
"@webiny/project-utils": "5.36.0-beta.0",
|
|
42
42
|
"babel-plugin-emotion": "9.2.11",
|
|
43
43
|
"babel-plugin-named-asset-import": "1.0.0-next.fb6e6f70",
|
|
44
44
|
"rimraf": "3.0.2",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"removeViewBox": false
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "c59b9cc5b96b7fd91388de93c7fff2d977d25220"
|
|
62
62
|
}
|