@mcurros2/microm 1.1.14-0 → 1.1.16-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 +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +55 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3967,12 +3967,14 @@ function $991669c453bd55ba$export$15c9a37039d15c3e({ entity: entity, onSaved: on
|
|
|
3967
3967
|
|
|
3968
3968
|
parcelRegister("k7qj2", function(module, exports) {
|
|
3969
3969
|
|
|
3970
|
+
$parcel$export(module.exports, "ModalsManagerLabelsDefaultProps", function () { return $ea58ddf30d0b80dd$export$20f67a9940806830; });
|
|
3970
3971
|
$parcel$export(module.exports, "ModalsManager", function () { return $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c; });
|
|
3971
3972
|
$parcel$export(module.exports, "useModal", function () { return $ea58ddf30d0b80dd$export$33ffd74ebf07f060; });
|
|
3972
3973
|
|
|
3973
3974
|
|
|
3974
3975
|
|
|
3975
3976
|
|
|
3977
|
+
|
|
3976
3978
|
parcelRequire("2eyXi");
|
|
3977
3979
|
var $lTNXP = parcelRequire("lTNXP");
|
|
3978
3980
|
var $ea58ddf30d0b80dd$var$__awaiter = undefined && undefined.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
@@ -4002,6 +4004,12 @@ var $ea58ddf30d0b80dd$var$__awaiter = undefined && undefined.__awaiter || functi
|
|
|
4002
4004
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
4003
4005
|
});
|
|
4004
4006
|
};
|
|
4007
|
+
const $ea58ddf30d0b80dd$export$20f67a9940806830 = {
|
|
4008
|
+
closeLabel: "Close",
|
|
4009
|
+
fullscreenLabel: "Fullscreen",
|
|
4010
|
+
minimizeLabel: "Minimize",
|
|
4011
|
+
toggleLabel: "Toggle"
|
|
4012
|
+
};
|
|
4005
4013
|
const $ea58ddf30d0b80dd$var$NEW_SIZES = {
|
|
4006
4014
|
xs: "20%",
|
|
4007
4015
|
sm: "30%",
|
|
@@ -4050,7 +4058,8 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4050
4058
|
id: modal_id,
|
|
4051
4059
|
props: modalProps,
|
|
4052
4060
|
onClosed: onClosed,
|
|
4053
|
-
focusOnClosed: focusOnClosed
|
|
4061
|
+
focusOnClosed: focusOnClosed,
|
|
4062
|
+
initialSize: modalProps.size
|
|
4054
4063
|
}
|
|
4055
4064
|
]);
|
|
4056
4065
|
} else setModals((prevModals)=>[
|
|
@@ -4062,7 +4071,8 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4062
4071
|
id: modal_id,
|
|
4063
4072
|
props: modalProps,
|
|
4064
4073
|
onClosed: onClosed,
|
|
4065
|
-
focusOnClosed: focusOnClosed
|
|
4074
|
+
focusOnClosed: focusOnClosed,
|
|
4075
|
+
initialSize: modalProps.size
|
|
4066
4076
|
}
|
|
4067
4077
|
]);
|
|
4068
4078
|
}), [
|
|
@@ -4135,6 +4145,49 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4135
4145
|
onClose: ()=>$ea58ddf30d0b80dd$var$__awaiter(void 0, void 0, void 0, function*() {
|
|
4136
4146
|
yield close();
|
|
4137
4147
|
})
|
|
4148
|
+
}), (0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Modal).Header, {
|
|
4149
|
+
children: [
|
|
4150
|
+
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal).Title, {
|
|
4151
|
+
children: (0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$mantinecore.Group), {
|
|
4152
|
+
position: "apart",
|
|
4153
|
+
align: "center",
|
|
4154
|
+
noWrap: true,
|
|
4155
|
+
children: [
|
|
4156
|
+
(0, $b4te3$reactjsxruntime.jsx)("h2", {
|
|
4157
|
+
children: modal.props.title
|
|
4158
|
+
}),
|
|
4159
|
+
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
|
|
4160
|
+
onClick: (e)=>{
|
|
4161
|
+
e.stopPropagation();
|
|
4162
|
+
setModals((prev)=>prev.map((m, i)=>{
|
|
4163
|
+
var _a;
|
|
4164
|
+
if (i !== index) return m;
|
|
4165
|
+
const original = (_a = m.initialSize) !== null && _a !== void 0 ? _a : "lg";
|
|
4166
|
+
const currentSize = m.props.size;
|
|
4167
|
+
const newSize = currentSize === "fullscreen" ? original === "fullscreen" ? "lg" : original : "fullscreen";
|
|
4168
|
+
return Object.assign(Object.assign({}, m), {
|
|
4169
|
+
props: Object.assign(Object.assign({}, m.props), {
|
|
4170
|
+
size: newSize
|
|
4171
|
+
})
|
|
4172
|
+
});
|
|
4173
|
+
}));
|
|
4174
|
+
},
|
|
4175
|
+
variant: "subtle",
|
|
4176
|
+
size: "sm",
|
|
4177
|
+
title: `${$ea58ddf30d0b80dd$export$20f67a9940806830.toggleLabel} ${$ea58ddf30d0b80dd$export$20f67a9940806830.fullscreenLabel}`,
|
|
4178
|
+
children: modal.props.size === "fullscreen" ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconWindowMaximize), {
|
|
4179
|
+
size: "1rem"
|
|
4180
|
+
}) : (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconWindowMinimize), {
|
|
4181
|
+
size: "1rem"
|
|
4182
|
+
})
|
|
4183
|
+
})
|
|
4184
|
+
]
|
|
4185
|
+
})
|
|
4186
|
+
}),
|
|
4187
|
+
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal).CloseButton, {
|
|
4188
|
+
title: $ea58ddf30d0b80dd$export$20f67a9940806830.closeLabel
|
|
4189
|
+
})
|
|
4190
|
+
]
|
|
4138
4191
|
}), modal.resolvedContent ? modal.resolvedContent : (0, $lTNXP.isPromise)(modal.originalContent) ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Skeleton), {}) : modal.originalContent);
|
|
4139
4192
|
})
|
|
4140
4193
|
]
|