pcm-shared-components 0.0.103 → 0.0.104
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.
|
@@ -16,6 +16,7 @@ export const GenericDialogWindow = props => {
|
|
|
16
16
|
showSaveButton = false,
|
|
17
17
|
dialogSize = 'false',
|
|
18
18
|
appBarMenu = undefined,
|
|
19
|
+
fullWidth = false,
|
|
19
20
|
theme
|
|
20
21
|
} = props;
|
|
21
22
|
const compTheme = theme ? theme : useTheme();
|
|
@@ -148,6 +149,7 @@ export const GenericDialogWindow = props => {
|
|
|
148
149
|
onBackdropClick: "false",
|
|
149
150
|
maxWidth: dialogSize,
|
|
150
151
|
fullScreen: dialogSize ? false : true,
|
|
152
|
+
fullWidth: fullWidth,
|
|
151
153
|
className: ""
|
|
152
154
|
}, /*#__PURE__*/React.createElement(GenericAppBar, {
|
|
153
155
|
appBarMenu: managedAppBarMenu
|
|
@@ -187,6 +189,7 @@ GenericDialogWindow.defaultProps = {
|
|
|
187
189
|
showSaveButton: true,
|
|
188
190
|
appBarMenu: undefined,
|
|
189
191
|
dialogSize: false,
|
|
192
|
+
fullWidth: false,
|
|
190
193
|
theme: undefined
|
|
191
194
|
};
|
|
192
195
|
GenericDialogWindow.propTypes = {
|
|
@@ -208,6 +211,9 @@ GenericDialogWindow.propTypes = {
|
|
|
208
211
|
/** Determine the max-width of the dialog. The dialog width grows with the size of the screen. Set to false to disable maxWidth.*/
|
|
209
212
|
dialogSize: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]),
|
|
210
213
|
|
|
214
|
+
/**If true, the dialog stretches to maxWidth. Notice that the dialog width grow is limited by the default margin. */
|
|
215
|
+
fullWidth: PropTypes.bool,
|
|
216
|
+
|
|
211
217
|
/** Theme object to use on this component, if none provided then the MUI5 theme provider theme is used*/
|
|
212
218
|
theme: PropTypes.object
|
|
213
219
|
};
|