@telicent-oss/ds 0.21.0 → 0.21.1
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/ds.js
CHANGED
|
@@ -61097,6 +61097,7 @@ const modalPropsSchema = allModalPropsSchema.omit({
|
|
|
61097
61097
|
}).passthrough();
|
|
61098
61098
|
const Modal2 = ({
|
|
61099
61099
|
children: children2,
|
|
61100
|
+
hideCloseButton,
|
|
61100
61101
|
...props
|
|
61101
61102
|
}) => {
|
|
61102
61103
|
modalPropsSchema.parse({
|
|
@@ -61123,7 +61124,7 @@ const Modal2 = ({
|
|
|
61123
61124
|
/* @__PURE__ */ jsx$1(Box, { sx: {
|
|
61124
61125
|
display: "flex",
|
|
61125
61126
|
justifyContent: "flex-end"
|
|
61126
|
-
}, children: /* @__PURE__ */ jsxs(Button$1, { onClick: (event) => {
|
|
61127
|
+
}, children: !hideCloseButton && /* @__PURE__ */ jsxs(Button$1, { onClick: (event) => {
|
|
61127
61128
|
var _a2;
|
|
61128
61129
|
return (_a2 = props.onClose) == null ? void 0 : _a2.call(props, event, "closeButtonClick");
|
|
61129
61130
|
}, color: "inherit", sx: {
|
package/dist/ds.umd.cjs
CHANGED
|
@@ -61115,6 +61115,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
61115
61115
|
}).passthrough();
|
|
61116
61116
|
const Modal = ({
|
|
61117
61117
|
children: children2,
|
|
61118
|
+
hideCloseButton,
|
|
61118
61119
|
...props
|
|
61119
61120
|
}) => {
|
|
61120
61121
|
modalPropsSchema.parse({
|
|
@@ -61141,7 +61142,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
61141
61142
|
/* @__PURE__ */ jsx$1(Box, { sx: {
|
|
61142
61143
|
display: "flex",
|
|
61143
61144
|
justifyContent: "flex-end"
|
|
61144
|
-
}, children: /* @__PURE__ */ jsxs(Button$1, { onClick: (event) => {
|
|
61145
|
+
}, children: !hideCloseButton && /* @__PURE__ */ jsxs(Button$1, { onClick: (event) => {
|
|
61145
61146
|
var _a2;
|
|
61146
61147
|
return (_a2 = props.onClose) == null ? void 0 : _a2.call(props, event, "closeButtonClick");
|
|
61147
61148
|
}, color: "inherit", sx: {
|
|
@@ -3,6 +3,7 @@ import { ModalProps as MUIModalProps } from '@mui/material/Modal';
|
|
|
3
3
|
|
|
4
4
|
export type ModalProps = Omit<MUIModalProps, "slots" | "slotProps" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "components" | "componentsProps" | "container" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disableRestoreFocus" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onTransitionEnter" | "onTransitionExit"> & {
|
|
5
5
|
onClose: ((event: {}, reason: "backdropClick" | "escapeKeyDown" | "closeButtonClick") => void) | undefined;
|
|
6
|
+
hideCloseButton?: boolean;
|
|
6
7
|
};
|
|
7
8
|
export declare const Modal: React.FC<ModalProps>;
|
|
8
9
|
export default Modal;
|