@mcurros2/microm 1.1.24-0 → 1.1.26-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.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4010,7 +4010,8 @@ const $ea58ddf30d0b80dd$export$6ccb6e1de3749d56 = {
|
|
|
4010
4010
|
minimizeLabel: "Minimize",
|
|
4011
4011
|
toggleLabel: "Toggle",
|
|
4012
4012
|
FullScreenIcon: (0, $b4te3$tablericonsreact.IconSquareChevronUp),
|
|
4013
|
-
RestoreScreeSizeIcon: (0, $b4te3$tablericonsreact.IconSquareChevronDown)
|
|
4013
|
+
RestoreScreeSizeIcon: (0, $b4te3$tablericonsreact.IconSquareChevronDown),
|
|
4014
|
+
withCloseButton: true
|
|
4014
4015
|
};
|
|
4015
4016
|
const $ea58ddf30d0b80dd$var$NEW_SIZES = {
|
|
4016
4017
|
xs: "20%",
|
|
@@ -4043,6 +4044,8 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4043
4044
|
const modal_id = (0, $b4te3$mantinehooks.randomId)(); // Generate ID upfront
|
|
4044
4045
|
// try to get the last focused event if none specified
|
|
4045
4046
|
if (!focusOnClosed) focusOnClosed = document.activeElement;
|
|
4047
|
+
// Default for closeButton
|
|
4048
|
+
if (modalProps.withCloseButton === undefined) modalProps.withCloseButton = $ea58ddf30d0b80dd$export$6ccb6e1de3749d56.withCloseButton;
|
|
4046
4049
|
// If content is a Promise
|
|
4047
4050
|
if ((0, $lTNXP.isPromise)(content)) {
|
|
4048
4051
|
content.then((resolvedContent)=>{
|
|
@@ -4061,7 +4064,8 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4061
4064
|
props: modalProps,
|
|
4062
4065
|
onClosed: onClosed,
|
|
4063
4066
|
focusOnClosed: focusOnClosed,
|
|
4064
|
-
initialSize: modalProps.size
|
|
4067
|
+
initialSize: modalProps.size,
|
|
4068
|
+
withFullscreenButton: modalProps.withFullscreenButton
|
|
4065
4069
|
}
|
|
4066
4070
|
]);
|
|
4067
4071
|
} else setModals((prevModals)=>[
|
|
@@ -4074,7 +4078,8 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4074
4078
|
props: modalProps,
|
|
4075
4079
|
onClosed: onClosed,
|
|
4076
4080
|
focusOnClosed: focusOnClosed,
|
|
4077
|
-
initialSize: modalProps.size
|
|
4081
|
+
initialSize: modalProps.size,
|
|
4082
|
+
withFullscreenButton: modalProps.withFullscreenButton
|
|
4078
4083
|
}
|
|
4079
4084
|
]);
|
|
4080
4085
|
}), [
|
|
@@ -4159,7 +4164,7 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4159
4164
|
(0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Group), {
|
|
4160
4165
|
position: "right",
|
|
4161
4166
|
children: [
|
|
4162
|
-
modal.
|
|
4167
|
+
modal.withFullscreenButton && (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
|
|
4163
4168
|
onClick: (e)=>{
|
|
4164
4169
|
e.stopPropagation();
|
|
4165
4170
|
setModals((prev)=>prev.map((m, i)=>{
|