@getsoren/design-system 4.66.0 → 4.67.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.
@@ -0,0 +1,11 @@
1
+ import { BoxProps } from '@mui/material';
2
+ export type DialogFormProps = Omit<BoxProps<"form">, "component">;
3
+ /**
4
+ * Form wrapper for a Dialog's children: restores the Paper's flex column that a plain <form>
5
+ * breaks. Without it the whole paper scrolls (title and close button included) instead of the
6
+ * DialogContent, and the actions bar leaves the viewport.
7
+ * Use it whenever a form element must sit between the Dialog and its DialogContent/DialogActions
8
+ * (e.g. form libraries owning the submit).
9
+ */
10
+ declare const DialogForm: ({ sx, ...props }: DialogFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export default DialogForm;
@@ -41,6 +41,16 @@ declare module "@mui/material/Dialog" {
41
41
  backgroundColor?: "primary" | "secondary" | string;
42
42
  }
43
43
  }
44
+ declare module "@mui/material/DialogActions" {
45
+ interface DialogActionsProps {
46
+ /**
47
+ * "sticky": the buttons stay reachable when the dialog scrolls (engages only on overflow, so
48
+ * short dialogs render as before). "sticky-flat": same without the hairline, for small
49
+ * confirmation dialogs where the line separates nothing.
50
+ */
51
+ variant?: "sticky" | "sticky-flat";
52
+ }
53
+ }
44
54
  declare module "@mui/material/FormControlLabel" {
45
55
  interface FormControlLabelProps {
46
56
  variant?: "card";
@@ -48,6 +48,8 @@ export * from './components/DataDisplay/TypographySkeleton';
48
48
  export { default as TypographySkeleton } from './components/DataDisplay/TypographySkeleton';
49
49
  export * from './components/Feedback/Dialog/DialogCloseIcon';
50
50
  export { default as DialogCloseIcon } from './components/Feedback/Dialog/DialogCloseIcon';
51
+ export * from './components/Feedback/Dialog/DialogForm/DialogForm';
52
+ export { default as DialogForm } from './components/Feedback/Dialog/DialogForm/DialogForm';
51
53
  export * from './components/Feedback/Dialog/DialogPopper';
52
54
  export { default as DialogPopper } from './components/Feedback/Dialog/DialogPopper';
53
55
  export * from './components/Feedback/Dialog/DialogValidation/DialogValidation';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@getsoren/design-system",
3
3
  "description": "Design System React library",
4
4
  "sideEffects": false,
5
- "version": "4.66.0",
5
+ "version": "4.67.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",