@nubisco/ui 1.43.0 → 1.44.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/components/Modal.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12 -18
- package/dist/index.mjs.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -19259,13 +19259,8 @@ var dXt = { class: "nb-command-palette__input-row" }, fXt = ["placeholder"], pXt
|
|
|
19259
19259
|
},
|
|
19260
19260
|
emits: ["close"],
|
|
19261
19261
|
setup(e, { emit: t }) {
|
|
19262
|
-
let n = e, i = t
|
|
19263
|
-
|
|
19264
|
-
md: "520px",
|
|
19265
|
-
lg: "720px",
|
|
19266
|
-
xl: "960px"
|
|
19267
|
-
};
|
|
19268
|
-
function p() {
|
|
19262
|
+
let n = e, i = t;
|
|
19263
|
+
function o() {
|
|
19269
19264
|
n.closeOnOverlay && i("close");
|
|
19270
19265
|
}
|
|
19271
19266
|
V(() => n.open, (e) => {
|
|
@@ -19273,34 +19268,33 @@ var dXt = { class: "nb-command-palette__input-row" }, fXt = ["placeholder"], pXt
|
|
|
19273
19268
|
}), w(() => {
|
|
19274
19269
|
document.body.style.overflow = "";
|
|
19275
19270
|
});
|
|
19276
|
-
function
|
|
19271
|
+
function p(e) {
|
|
19277
19272
|
e.key === "Escape" && n.open && i("close");
|
|
19278
19273
|
}
|
|
19279
19274
|
return C(() => {
|
|
19280
|
-
document.addEventListener("keydown",
|
|
19275
|
+
document.addEventListener("keydown", p);
|
|
19281
19276
|
}), w(() => {
|
|
19282
|
-
document.removeEventListener("keydown",
|
|
19277
|
+
document.removeEventListener("keydown", p);
|
|
19283
19278
|
}), (t, n) => {
|
|
19284
|
-
let
|
|
19279
|
+
let p = j("NbIcon"), m = j("NbGrid");
|
|
19285
19280
|
return T(), s(r, { to: "body" }, [f(a, { name: "nb-modal" }, {
|
|
19286
19281
|
default: H(() => [e.open ? (T(), l("div", {
|
|
19287
19282
|
key: 0,
|
|
19288
19283
|
class: "nb-modal--overlay",
|
|
19289
|
-
onClick: G(
|
|
19284
|
+
onClick: G(o, ["self"])
|
|
19290
19285
|
}, [u("div", {
|
|
19291
|
-
class: "nb-modal--content",
|
|
19286
|
+
class: b(["nb-modal--content", `nb-modal--content--${e.size}`]),
|
|
19292
19287
|
role: "dialog",
|
|
19293
19288
|
"aria-modal": "true",
|
|
19294
|
-
style: x({ maxWidth: o[e.size] }),
|
|
19295
19289
|
onClick: n[1] ||= G(() => {}, ["stop"])
|
|
19296
19290
|
}, [
|
|
19297
19291
|
t.$slots.header || e.title ? (T(), l("header", bXt, [u("span", xXt, [A(t.$slots, "header", {}, () => [d(P(e.title), 1)], !0)]), u("button", {
|
|
19298
19292
|
class: "nb-modal--close",
|
|
19299
19293
|
"aria-label": "Close",
|
|
19300
19294
|
onClick: n[0] ||= (e) => i("close")
|
|
19301
|
-
}, [f(
|
|
19295
|
+
}, [f(p, { name: "x" })])])) : c("", !0),
|
|
19302
19296
|
u("main", SXt, [A(t.$slots, "default", {}, void 0, !0)]),
|
|
19303
|
-
t.$slots.footer ? (T(), s(
|
|
19297
|
+
t.$slots.footer ? (T(), s(m, {
|
|
19304
19298
|
key: 1,
|
|
19305
19299
|
is: "footer",
|
|
19306
19300
|
justify: "end",
|
|
@@ -19310,12 +19304,12 @@ var dXt = { class: "nb-command-palette__input-row" }, fXt = ["placeholder"], pXt
|
|
|
19310
19304
|
default: H(() => [A(t.$slots, "footer", {}, void 0, !0)]),
|
|
19311
19305
|
_: 3
|
|
19312
19306
|
})) : c("", !0)
|
|
19313
|
-
],
|
|
19307
|
+
], 2)])) : c("", !0)]),
|
|
19314
19308
|
_: 3
|
|
19315
19309
|
})]);
|
|
19316
19310
|
};
|
|
19317
19311
|
}
|
|
19318
|
-
}), [["__scopeId", "data-v-
|
|
19312
|
+
}), [["__scopeId", "data-v-24bdff10"]]), CXt = [
|
|
19319
19313
|
"id",
|
|
19320
19314
|
"placeholder",
|
|
19321
19315
|
"min",
|