@mcurros2/microm 1.1.15-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.map +1 -1
- package/dist/index.js +44 -37
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3974,9 +3974,9 @@ $parcel$export(module.exports, "useModal", function () { return $ea58ddf30d0b80d
|
|
|
3974
3974
|
|
|
3975
3975
|
|
|
3976
3976
|
|
|
3977
|
+
|
|
3977
3978
|
parcelRequire("2eyXi");
|
|
3978
3979
|
var $lTNXP = parcelRequire("lTNXP");
|
|
3979
|
-
|
|
3980
3980
|
var $ea58ddf30d0b80dd$var$__awaiter = undefined && undefined.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
3981
3981
|
function adopt(value) {
|
|
3982
3982
|
return value instanceof P ? value : new P(function(resolve) {
|
|
@@ -4144,43 +4144,50 @@ const $ea58ddf30d0b80dd$export$4a25ee9b30a3b11c = ({ modalProps: modalProps, ani
|
|
|
4144
4144
|
returnFocus: false,
|
|
4145
4145
|
onClose: ()=>$ea58ddf30d0b80dd$var$__awaiter(void 0, void 0, void 0, function*() {
|
|
4146
4146
|
yield close();
|
|
4147
|
-
})
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
children:
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
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
|
+
]
|
|
4181
4185
|
})
|
|
4182
|
-
|
|
4183
|
-
|
|
4186
|
+
}),
|
|
4187
|
+
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Modal).CloseButton, {
|
|
4188
|
+
title: $ea58ddf30d0b80dd$export$20f67a9940806830.closeLabel
|
|
4189
|
+
})
|
|
4190
|
+
]
|
|
4184
4191
|
}), modal.resolvedContent ? modal.resolvedContent : (0, $lTNXP.isPromise)(modal.originalContent) ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Skeleton), {}) : modal.originalContent);
|
|
4185
4192
|
})
|
|
4186
4193
|
]
|