morya-ui 0.2.7 → 0.2.8
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/CHANGELOG.md +16 -0
- package/dist/Renderable-DHU4Jcfw.js +20 -0
- package/dist/component-registry.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.vue.d.ts +1 -1
- package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts +1 -1
- package/dist/components/Loading/Loading.vue.d.ts +25 -0
- package/dist/components/Loading/Loading.vue.d.ts.map +1 -0
- package/dist/components/Loading/LoadingIndicator.vue.d.ts +13 -0
- package/dist/components/Loading/LoadingIndicator.vue.d.ts.map +1 -0
- package/dist/components/Loading/directive.d.ts +12 -0
- package/dist/components/Loading/directive.d.ts.map +1 -0
- package/dist/components/Loading/index.d.ts +8 -0
- package/dist/components/Loading/index.d.ts.map +1 -0
- package/dist/components/Loading/loading.d.ts +35 -0
- package/dist/components/Loading/loading.d.ts.map +1 -0
- package/dist/components/Loading/styles.css +386 -0
- package/dist/components/Loading/types.d.ts +74 -0
- package/dist/components/Loading/types.d.ts.map +1 -0
- package/dist/components/Loading/useLoading.d.ts +11 -0
- package/dist/components/Loading/useLoading.d.ts.map +1 -0
- package/dist/components/Page/PageContent.vue.d.ts +2 -2
- package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts +1 -1
- package/dist/components/Rating/Rating.vue.d.ts +1 -1
- package/dist/components/Table/Table.vue.d.ts +1 -1
- package/dist/confirm-dialog/index.js +9 -9
- package/dist/content-h8POj44-.js +28 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4152 -3697
- package/dist/loading/index.js +467 -0
- package/dist/loading/style.css +1377 -0
- package/dist/loading/style.js +3 -0
- package/dist/message/index.js +7 -6
- package/dist/resolver-map.d.ts.map +1 -1
- package/dist/resolver.js +1 -0
- package/dist/shared/config.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/toast/index.js +12 -11
- package/package.json +9 -2
- package/dist/Renderable-BaaCI4tS.js +0 -45
package/dist/toast/index.js
CHANGED
|
@@ -2,9 +2,10 @@ import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
|
2
2
|
import { t } from "../types-DGuu4Eg4.js";
|
|
3
3
|
import { t as n } from "../Icon-DfpIfo2L.js";
|
|
4
4
|
import { n as r } from "../overlay-oR-5MDuE.js";
|
|
5
|
-
import { i, r as a
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { n as i, r as a } from "../content-h8POj44-.js";
|
|
6
|
+
import { n as o } from "../overlayHost-78CGtMgR.js";
|
|
7
|
+
import { t as s } from "../Renderable-DHU4Jcfw.js";
|
|
8
|
+
import { c } from "../config-BdK5ccNT.js";
|
|
8
9
|
import { n as l, t as u } from "../locale-B36KH7c3.js";
|
|
9
10
|
import "./style.js";
|
|
10
11
|
import { Fragment as d, Teleport as f, TransitionGroup as p, computed as m, createBlock as ee, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as v, defineComponent as y, h as b, mergeProps as x, normalizeClass as S, onBeforeUnmount as te, onMounted as ne, openBlock as C, reactive as w, renderList as T, unref as E, useAttrs as D, watch as O, withCtx as k } from "vue";
|
|
@@ -25,7 +26,7 @@ function R() {
|
|
|
25
26
|
M = Math.max(0, M - 1);
|
|
26
27
|
}
|
|
27
28
|
function z(e, t) {
|
|
28
|
-
return `${
|
|
29
|
+
return `${a(e)}::${a(t ?? "")}`;
|
|
29
30
|
}
|
|
30
31
|
function B(e) {
|
|
31
32
|
let t = N.get(e);
|
|
@@ -99,8 +100,8 @@ var Y = ["onMouseenter", "onMouseleave"], X = { class: "m-toast__content" }, re
|
|
|
99
100
|
}
|
|
100
101
|
},
|
|
101
102
|
emits: ["close"],
|
|
102
|
-
setup(
|
|
103
|
-
let y =
|
|
103
|
+
setup(i, { emit: o }) {
|
|
104
|
+
let y = i, b = o, w = D(), { rootAttrs: j } = e(w, () => y.pt), M = c(), N = l(), P = m(() => r(y, M.value.appendTo)), F = m(() => y.messages === void 0), I = m(() => y.messages ?? A.messages), z = m(() => y.position ?? (F.value ? A.position : "top-right"));
|
|
104
105
|
ne(() => {
|
|
105
106
|
F.value && !y.auto && L();
|
|
106
107
|
}), te(() => {
|
|
@@ -112,7 +113,7 @@ var Y = ["onMouseenter", "onMouseleave"], X = { class: "m-toast__content" }, re
|
|
|
112
113
|
return `m-toast__message--${t(e) ?? "info"}`;
|
|
113
114
|
}
|
|
114
115
|
function U(e) {
|
|
115
|
-
return u(N.value.closeNamed, { summary:
|
|
116
|
+
return u(N.value.closeNamed, { summary: a(e.summary) || "toast" });
|
|
116
117
|
}
|
|
117
118
|
function G(e) {
|
|
118
119
|
F.value && W(e.id), b("close", e);
|
|
@@ -137,7 +138,7 @@ var Y = ["onMouseenter", "onMouseleave"], X = { class: "m-toast__content" }, re
|
|
|
137
138
|
role: "status",
|
|
138
139
|
onMouseenter: (t) => K(e),
|
|
139
140
|
onMouseleave: (t) => J(e)
|
|
140
|
-
}, [_("div", X, [_("strong", null, [v(E(
|
|
141
|
+
}, [_("div", X, [_("strong", null, [v(E(s), { value: e.summary }, null, 8, ["value"])]), e.detail != null && e.detail !== "" ? (C(), g("p", re, [v(E(s), { value: e.detail }, null, 8, ["value"])])) : h("", !0)]), e.closable === !1 ? h("", !0) : (C(), g("button", {
|
|
141
142
|
key: 0,
|
|
142
143
|
type: "button",
|
|
143
144
|
class: "m-toast__close",
|
|
@@ -157,10 +158,10 @@ var Y = ["onMouseenter", "onMouseleave"], X = { class: "m-toast__content" }, re
|
|
|
157
158
|
}
|
|
158
159
|
});
|
|
159
160
|
function ce() {
|
|
160
|
-
typeof document > "u" || M > 0 || j || I(
|
|
161
|
+
typeof document > "u" || M > 0 || j || I(o(se, "m-toast-host-root"));
|
|
161
162
|
}
|
|
162
163
|
function le(e, t) {
|
|
163
|
-
let n =
|
|
164
|
+
let n = i(e) ? e : { summary: e };
|
|
164
165
|
return n.position && (A.position = n.position), {
|
|
165
166
|
id: n.id ?? `m-toast-${Date.now()}-${++oe}`,
|
|
166
167
|
summary: n.summary,
|
|
@@ -173,7 +174,7 @@ function le(e, t) {
|
|
|
173
174
|
function Q(e, t) {
|
|
174
175
|
ce(), K(A.max);
|
|
175
176
|
let n = le(e, t);
|
|
176
|
-
if ((
|
|
177
|
+
if ((i(e) ? e.dedupe : void 0) ?? A.dedupe ?? !0) {
|
|
177
178
|
let e = J(n);
|
|
178
179
|
if (e) return n.life !== void 0 && (e.life = n.life), n.severity !== void 0 && (e.severity = n.severity), U(e, W), {
|
|
179
180
|
id: e.id,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "morya-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.8",
|
|
5
5
|
"description": "Open-source Vue 3 component library with design tokens, themes, and interactive docs.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://morya-space.github.io/morya-ui/",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"**/label/index.js",
|
|
66
66
|
"**/layout/index.js",
|
|
67
67
|
"**/listbox/index.js",
|
|
68
|
+
"**/loading/index.js",
|
|
68
69
|
"**/mega-menu/index.js",
|
|
69
70
|
"**/menu/index.js",
|
|
70
71
|
"**/menubar/index.js",
|
|
@@ -403,6 +404,12 @@
|
|
|
403
404
|
},
|
|
404
405
|
"./listbox/style": "./dist/listbox/style.js",
|
|
405
406
|
"./listbox/style.css": "./dist/listbox/style.css",
|
|
407
|
+
"./loading": {
|
|
408
|
+
"types": "./dist/components/Loading/index.d.ts",
|
|
409
|
+
"import": "./dist/loading/index.js"
|
|
410
|
+
},
|
|
411
|
+
"./loading/style": "./dist/loading/style.js",
|
|
412
|
+
"./loading/style.css": "./dist/loading/style.css",
|
|
406
413
|
"./mega-menu": {
|
|
407
414
|
"types": "./dist/components/MegaMenu/index.d.ts",
|
|
408
415
|
"import": "./dist/mega-menu/index.js"
|
|
@@ -749,7 +756,7 @@
|
|
|
749
756
|
"mcp:start": "pnpm --filter @morya-ui/mcp start",
|
|
750
757
|
"setup:sync-template": "pnpm --filter @morya-ui/setup sync-template",
|
|
751
758
|
"setup:build": "pnpm --filter @morya-ui/setup build",
|
|
752
|
-
"check:colors": "node design-kit/scripts/check-raw-colors.mjs src design-kit/docs/golden-pages
|
|
759
|
+
"check:colors": "node design-kit/scripts/check-raw-colors.mjs src design-kit/docs/golden-pages",
|
|
753
760
|
"check:tokens": "node design-kit/scripts/check-undefined-tokens.mjs src",
|
|
754
761
|
"check:docs": "node design-kit/scripts/check-docs-drift.mjs"
|
|
755
762
|
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, h as t, isVNode as n } from "vue";
|
|
2
|
-
//#region src/shared/content.ts
|
|
3
|
-
function r(e) {
|
|
4
|
-
if (e == null || n(e)) return !1;
|
|
5
|
-
if (typeof e == "function") {
|
|
6
|
-
let t = e;
|
|
7
|
-
return !!(t.setup || t.render || t.__vccOpts || t.props || t.emits || t.components);
|
|
8
|
-
}
|
|
9
|
-
if (typeof e == "object") {
|
|
10
|
-
let t = e;
|
|
11
|
-
return !!(t.setup || t.render || t.template || t.__vccOpts || t.props || t.emits || t.components || t.methods);
|
|
12
|
-
}
|
|
13
|
-
return !1;
|
|
14
|
-
}
|
|
15
|
-
function i(e) {
|
|
16
|
-
return e == null ? null : typeof e == "string" || typeof e == "number" || n(e) ? e : typeof e == "function" ? r(e) ? t(e) : e() : t(e);
|
|
17
|
-
}
|
|
18
|
-
function a(e) {
|
|
19
|
-
return typeof e == "string" || typeof e == "number" ? String(e) : "";
|
|
20
|
-
}
|
|
21
|
-
function o(e) {
|
|
22
|
-
return !!e && typeof e == "object" && !n(e) && "content" in e && !r(e);
|
|
23
|
-
}
|
|
24
|
-
function s(e) {
|
|
25
|
-
return !!e && typeof e == "object" && !n(e) && "summary" in e && !r(e);
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/shared/Renderable.ts
|
|
29
|
-
var c = e({
|
|
30
|
-
name: "MRenderable",
|
|
31
|
-
props: { value: {
|
|
32
|
-
type: [
|
|
33
|
-
String,
|
|
34
|
-
Number,
|
|
35
|
-
Object,
|
|
36
|
-
Function
|
|
37
|
-
],
|
|
38
|
-
required: !0
|
|
39
|
-
} },
|
|
40
|
-
setup(e) {
|
|
41
|
-
return () => i(e.value);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
//#endregion
|
|
45
|
-
export { a as i, o as n, s as r, c as t };
|