@ceed/ads 1.38.1 → 1.39.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
@@ -5559,8 +5559,9 @@ var StyledDialogFrame = (0, import_joy41.styled)(ModalDialog, {
5559
5559
  padding: 0
5560
5560
  });
5561
5561
  var DialogFrame = import_react32.default.forwardRef((props, ref) => {
5562
- const { title, children, actions, fullscreen, ...innerProps } = props;
5563
- return /* @__PURE__ */ import_react32.default.createElement(StyledDialogFrame, { layout: fullscreen ? "fullscreen" : "center", ref, ...innerProps }, /* @__PURE__ */ import_react32.default.createElement(DialogTitle_default, null, title), /* @__PURE__ */ import_react32.default.createElement(DialogContent_default, null, children), /* @__PURE__ */ import_react32.default.createElement(DialogActions_default, null, actions));
5562
+ const { title, children, actions, fullscreen, onSubmit, ...innerProps } = props;
5563
+ const formProps = onSubmit ? { component: "form", onSubmit } : void 0;
5564
+ return /* @__PURE__ */ import_react32.default.createElement(StyledDialogFrame, { layout: fullscreen ? "fullscreen" : "center", ref, ...formProps, ...innerProps }, /* @__PURE__ */ import_react32.default.createElement(DialogTitle_default, null, title), /* @__PURE__ */ import_react32.default.createElement(DialogContent_default, null, children), /* @__PURE__ */ import_react32.default.createElement(DialogActions_default, null, actions));
5564
5565
  });
5565
5566
  DialogFrame.displayName = "DialogFrame";
5566
5567
 
package/dist/index.js CHANGED
@@ -5442,8 +5442,9 @@ var StyledDialogFrame = styled18(ModalDialog, {
5442
5442
  padding: 0
5443
5443
  });
5444
5444
  var DialogFrame = React29.forwardRef((props, ref) => {
5445
- const { title, children, actions, fullscreen, ...innerProps } = props;
5446
- return /* @__PURE__ */ React29.createElement(StyledDialogFrame, { layout: fullscreen ? "fullscreen" : "center", ref, ...innerProps }, /* @__PURE__ */ React29.createElement(DialogTitle_default, null, title), /* @__PURE__ */ React29.createElement(DialogContent_default, null, children), /* @__PURE__ */ React29.createElement(DialogActions_default, null, actions));
5445
+ const { title, children, actions, fullscreen, onSubmit, ...innerProps } = props;
5446
+ const formProps = onSubmit ? { component: "form", onSubmit } : void 0;
5447
+ return /* @__PURE__ */ React29.createElement(StyledDialogFrame, { layout: fullscreen ? "fullscreen" : "center", ref, ...formProps, ...innerProps }, /* @__PURE__ */ React29.createElement(DialogTitle_default, null, title), /* @__PURE__ */ React29.createElement(DialogContent_default, null, children), /* @__PURE__ */ React29.createElement(DialogActions_default, null, actions));
5447
5448
  });
5448
5449
  DialogFrame.displayName = "DialogFrame";
5449
5450