@ceed/cds 1.37.0 → 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
- return /* @__PURE__ */ import_react33.default.createElement(StyledDialogFrame, { layout: fullscreen ? "fullscreen" : "center", ref, ...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));
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
 
@@ -6990,7 +6991,8 @@ function RadioTileGroup(props) {
6990
6991
  label: ({ disabled }) => ({
6991
6992
  sx: (theme) => ({
6992
6993
  ...theme.typography[{ sm: "body-sm", md: "body-md", lg: "body-lg" }[size]],
6993
- color: disabled ? theme.palette.neutral.outlinedDisabledColor : theme.palette.neutral.outlinedColor
6994
+ color: disabled ? theme.palette.neutral.outlinedDisabledColor : theme.palette.neutral.outlinedColor,
6995
+ textAlign
6994
6996
  })
6995
6997
  })
6996
6998
  }
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
- return /* @__PURE__ */ React30.createElement(StyledDialogFrame, { layout: fullscreen ? "fullscreen" : "center", ref, ...innerProps }, /* @__PURE__ */ React30.createElement(DialogTitle_default, null, title), /* @__PURE__ */ React30.createElement(DialogContent_default, null, children), /* @__PURE__ */ React30.createElement(DialogActions_default, null, actions));
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
 
@@ -6897,7 +6898,8 @@ function RadioTileGroup(props) {
6897
6898
  label: ({ disabled }) => ({
6898
6899
  sx: (theme) => ({
6899
6900
  ...theme.typography[{ sm: "body-sm", md: "body-md", lg: "body-lg" }[size]],
6900
- color: disabled ? theme.palette.neutral.outlinedDisabledColor : theme.palette.neutral.outlinedColor
6901
+ color: disabled ? theme.palette.neutral.outlinedDisabledColor : theme.palette.neutral.outlinedColor,
6902
+ textAlign
6901
6903
  })
6902
6904
  })
6903
6905
  }