@ceed/cds 1.37.1 → 1.38.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.
package/dist/index.cjs
CHANGED
|
@@ -5584,8 +5584,9 @@ var StyledDialogFrame = (0, import_joy42.styled)(ModalDialog, {
|
|
|
5584
5584
|
padding: 0
|
|
5585
5585
|
});
|
|
5586
5586
|
var DialogFrame = import_react33.default.forwardRef((props, ref) => {
|
|
5587
|
-
const { title, children, actions, fullscreen, ...innerProps } = props;
|
|
5588
|
-
|
|
5587
|
+
const { title, children, actions, fullscreen, onSubmit, ...innerProps } = props;
|
|
5588
|
+
const formProps = onSubmit ? { component: "form", onSubmit } : void 0;
|
|
5589
|
+
return /* @__PURE__ */ import_react33.default.createElement(StyledDialogFrame, { layout: fullscreen ? "fullscreen" : "center", ref, ...formProps, ...innerProps }, /* @__PURE__ */ import_react33.default.createElement(DialogTitle_default, null, title), /* @__PURE__ */ import_react33.default.createElement(DialogContent_default, null, children), /* @__PURE__ */ import_react33.default.createElement(DialogActions_default, null, actions));
|
|
5589
5590
|
});
|
|
5590
5591
|
DialogFrame.displayName = "DialogFrame";
|
|
5591
5592
|
|
package/dist/index.js
CHANGED
|
@@ -5475,8 +5475,9 @@ var StyledDialogFrame = styled19(ModalDialog, {
|
|
|
5475
5475
|
padding: 0
|
|
5476
5476
|
});
|
|
5477
5477
|
var DialogFrame = React30.forwardRef((props, ref) => {
|
|
5478
|
-
const { title, children, actions, fullscreen, ...innerProps } = props;
|
|
5479
|
-
|
|
5478
|
+
const { title, children, actions, fullscreen, onSubmit, ...innerProps } = props;
|
|
5479
|
+
const formProps = onSubmit ? { component: "form", onSubmit } : void 0;
|
|
5480
|
+
return /* @__PURE__ */ React30.createElement(StyledDialogFrame, { layout: fullscreen ? "fullscreen" : "center", ref, ...formProps, ...innerProps }, /* @__PURE__ */ React30.createElement(DialogTitle_default, null, title), /* @__PURE__ */ React30.createElement(DialogContent_default, null, children), /* @__PURE__ */ React30.createElement(DialogActions_default, null, actions));
|
|
5480
5481
|
});
|
|
5481
5482
|
DialogFrame.displayName = "DialogFrame";
|
|
5482
5483
|
|