pcm-shared-components 0.0.81 → 0.0.83

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.
@@ -14,6 +14,7 @@ export const GenericDialogWindow = props => {
14
14
  data,
15
15
  onClose,
16
16
  showSaveButton = false,
17
+ dialogSize = 'false',
17
18
  i18nextStrings = {
18
19
  saveButtonLabel: 'save',
19
20
  backButtonLabel: 'back'
@@ -53,7 +54,9 @@ export const GenericDialogWindow = props => {
53
54
  disableEnforceFocus: true,
54
55
  open: open,
55
56
  onClose: closeDialog,
56
- fullScreen: true,
57
+ onBackdropClick: "false",
58
+ maxWidth: dialogSize,
59
+ fullScreen: dialogSize ? false : true,
57
60
  className: ""
58
61
  }, /*#__PURE__*/React.createElement(AppBar, {
59
62
  position: 'relative'
@@ -116,6 +119,7 @@ GenericDialogWindow.defaultProps = {
116
119
  saveButtonLabel: 'save',
117
120
  backButtonLabel: 'back'
118
121
  },
122
+ dialogSize: false,
119
123
  theme: undefined
120
124
  };
121
125
  GenericDialogWindow.propTypes = {
@@ -137,6 +141,9 @@ GenericDialogWindow.propTypes = {
137
141
  /** i18next string object */
138
142
  i18nextStrings: PropTypes.object,
139
143
 
144
+ /** Determine the max-width of the dialog. The dialog width grows with the size of the screen. Set to false to disable maxWidth.*/
145
+ dialogSize: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]),
146
+
140
147
  /** Theme object to use on this component, if none provided then the MUI5 theme provider theme is used*/
141
148
  theme: PropTypes.object
142
149
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.81",
3
+ "version": "0.0.83",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {