@nmorph/nmorph-ui-kit 3.0.15 → 3.0.17
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/basic/nmorph-layout/NmorphLayout.vue.js +32 -29
- package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +13 -11
- package/dist/components/basic/nmorph-space/NmorphSpace.vue.js +18 -15
- package/dist/components/basic/nmorph-space/NmorphSpace.vue2.js +19 -17
- package/dist/components/basic/nmorph-text/NmorphText.vue.js +24 -15
- package/dist/components/basic/nmorph-text/NmorphText.vue2.js +24 -14
- package/dist/components/data/nmorph-card/NmorphCard.vue.js +36 -33
- package/dist/components/data/nmorph-card/NmorphCard.vue2.js +22 -20
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +23 -26
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue2.js +21 -19
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +40 -43
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue2.js +55 -54
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue.js +37 -34
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +22 -14
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue.js +21 -23
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +32 -30
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue.js +16 -18
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +32 -30
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +37 -39
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue2.js +26 -21
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue.js +13 -14
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +34 -29
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +24 -29
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue2.js +38 -36
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +29 -32
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +47 -45
- package/dist/hooks/use-common-styles.js +16 -4
- package/dist/index.umd.js +39 -27
- package/dist/outside-hooks/use-nmorph-theme.js +1 -1
- package/dist/package.json.js +1 -1
- package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +6 -6
- package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +1 -1
- package/dist/src/components/basic/nmorph-layout/NmorphLayout.vue.d.ts +7 -1
- package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +3 -3
- package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +3 -3
- package/dist/src/components/basic/nmorph-space/NmorphSpace.vue.d.ts +3 -3
- package/dist/src/components/basic/nmorph-text/NmorphText.vue.d.ts +7 -3
- package/dist/src/components/basic/nmorph-text/types.d.ts +4 -0
- package/dist/src/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.d.ts +4 -4
- package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +4 -4
- package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +6 -2
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +2 -2
- package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +4 -4
- package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.d.ts +2 -2
- package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +4 -4
- package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +7 -3
- package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +4 -1
- package/dist/src/components/feedback/nmorph-drawer/NmorphDrawer.vue.d.ts +6 -2
- package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +2 -2
- package/dist/src/components/feedback/nmorph-guide/NmorphGuideStep.vue.d.ts +2 -2
- package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -2
- package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +3 -3
- package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +3 -3
- package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +9 -9
- package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +3 -3
- package/dist/src/components/navigation/nmorph-stepper/NmorphStepper.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-tabs/NmorphTabs.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +1 -1
- package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +1 -1
- package/dist/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.d.ts +1 -1
- package/dist/src/outside-hooks/use-nmorph-notification.d.ts +2 -2
- package/dist/src/types/common.types.d.ts +1 -0
- package/dist/src/utils/attrs.d.ts +5 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/types/common.types.js +1 -0
- package/dist/utils/attrs.js +15 -0
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './NmorphLayout.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as s, createBlock as
|
|
2
|
+
import n from "./NmorphLayout.vue2.js";
|
|
3
|
+
import { openBlock as s, createBlock as l, resolveDynamicComponent as d, normalizeProps as m, guardReactiveProps as _, withCtx as c, createElementBlock as t, renderSlot as r, createCommentVNode as a, createElementVNode as i } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import h from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const
|
|
6
|
+
const p = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "nmorph-layout__header"
|
|
9
|
-
},
|
|
9
|
+
}, f = { class: "nmorph-layout__body" }, y = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "nmorph-layout__aside"
|
|
12
12
|
}, u = { class: "nmorph-layout__main" }, k = {
|
|
@@ -16,35 +16,38 @@ const f = {
|
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "nmorph-layout__footer"
|
|
18
18
|
};
|
|
19
|
-
function
|
|
20
|
-
return s(),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
])) : a("v-if", !0),
|
|
28
|
-
i("div", p, [
|
|
29
|
-
o.slots.aside && o.props.asidePosition === "left" ? (s(), r("aside", y, [
|
|
30
|
-
t(e.$slots, "aside")
|
|
19
|
+
function N(e, P, b, o, g, B) {
|
|
20
|
+
return s(), l(
|
|
21
|
+
d(o.props.tag),
|
|
22
|
+
m(_(o.rootAttrs)),
|
|
23
|
+
{
|
|
24
|
+
default: c(() => [
|
|
25
|
+
o.slots.header ? (s(), t("header", p, [
|
|
26
|
+
r(e.$slots, "header")
|
|
31
27
|
])) : a("v-if", !0),
|
|
32
|
-
i("
|
|
33
|
-
|
|
28
|
+
i("div", f, [
|
|
29
|
+
o.slots.aside && o.props.asidePosition === "left" ? (s(), t("aside", y, [
|
|
30
|
+
r(e.$slots, "aside")
|
|
31
|
+
])) : a("v-if", !0),
|
|
32
|
+
i("main", u, [
|
|
33
|
+
r(e.$slots, "default")
|
|
34
|
+
]),
|
|
35
|
+
o.slots.aside && o.props.asidePosition === "right" ? (s(), t("aside", k, [
|
|
36
|
+
r(e.$slots, "aside")
|
|
37
|
+
])) : a("v-if", !0)
|
|
34
38
|
]),
|
|
35
|
-
o.slots.
|
|
36
|
-
|
|
39
|
+
o.slots.footer ? (s(), t("footer", v, [
|
|
40
|
+
r(e.$slots, "footer")
|
|
37
41
|
])) : a("v-if", !0)
|
|
38
42
|
]),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}, 8, ["class", "style"]);
|
|
43
|
+
_: 3
|
|
44
|
+
/* FORWARDED */
|
|
45
|
+
},
|
|
46
|
+
16
|
|
47
|
+
/* FULL_PROPS */
|
|
48
|
+
);
|
|
46
49
|
}
|
|
47
|
-
const
|
|
50
|
+
const V = /* @__PURE__ */ h(n, [["render", N], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/basic/nmorph-layout/NmorphLayout.vue"]]);
|
|
48
51
|
export {
|
|
49
|
-
|
|
52
|
+
V as default
|
|
50
53
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import './NmorphLayout.css';
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as u, useSlots as n, computed as i } from "vue";
|
|
3
3
|
import { useModifiers as d } from "../../../utils/create-modifiers.js";
|
|
4
|
-
import { createCssSizeVariables as
|
|
5
|
-
|
|
4
|
+
import { createCssSizeVariables as f } from "../../../utils/common.js";
|
|
5
|
+
import { useMergedAttrs as m } from "../../../utils/attrs.js";
|
|
6
|
+
const _ = /* @__PURE__ */ u({
|
|
7
|
+
inheritAttrs: !1,
|
|
6
8
|
__name: "NmorphLayout",
|
|
7
9
|
props: {
|
|
8
10
|
tag: { type: String, required: !1, default: "section" },
|
|
@@ -11,21 +13,21 @@ const g = /* @__PURE__ */ p({
|
|
|
11
13
|
asidePosition: { type: String, required: !1, default: "left" },
|
|
12
14
|
fullHeight: { type: Boolean, required: !1, default: !1 }
|
|
13
15
|
},
|
|
14
|
-
setup(
|
|
15
|
-
|
|
16
|
-
const e =
|
|
16
|
+
setup(o, { expose: a }) {
|
|
17
|
+
a();
|
|
18
|
+
const e = o, l = n(), t = i(
|
|
17
19
|
() => d({
|
|
18
20
|
"nmorph-layout": [`aside-${e.asidePosition}`, e.fullHeight && "full-height"]
|
|
19
21
|
})
|
|
20
|
-
),
|
|
21
|
-
() =>
|
|
22
|
+
), r = i(
|
|
23
|
+
() => f({
|
|
22
24
|
"--nmorph-private-layout-gap": e.gap,
|
|
23
25
|
"--nmorph-private-layout-aside-width": e.asideWidth
|
|
24
26
|
})
|
|
25
|
-
), t = { props: e, slots:
|
|
26
|
-
return Object.defineProperty(
|
|
27
|
+
), p = m(t, r), s = { props: e, slots: l, modifiers: t, styles: r, rootAttrs: p };
|
|
28
|
+
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
27
29
|
}
|
|
28
30
|
});
|
|
29
31
|
export {
|
|
30
|
-
|
|
32
|
+
_ as default
|
|
31
33
|
};
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import './NmorphSpace.css';
|
|
2
2
|
import e from "./NmorphSpace.vue2.js";
|
|
3
|
-
import { openBlock as
|
|
3
|
+
import { openBlock as t, createBlock as p, resolveDynamicComponent as n, normalizeProps as a, guardReactiveProps as c, withCtx as m, renderSlot as s } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
return
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
import i from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
function f(o, l, _, r, d, h) {
|
|
7
|
+
return t(), p(
|
|
8
|
+
n(r.props.tag),
|
|
9
|
+
a(c(r.rootAttrs)),
|
|
10
|
+
{
|
|
11
|
+
default: m(() => [
|
|
12
|
+
s(o.$slots, "default")
|
|
13
|
+
]),
|
|
14
|
+
_: 3
|
|
15
|
+
/* FORWARDED */
|
|
16
|
+
},
|
|
17
|
+
16
|
|
18
|
+
/* FULL_PROPS */
|
|
19
|
+
);
|
|
17
20
|
}
|
|
18
|
-
const
|
|
21
|
+
const S = /* @__PURE__ */ i(e, [["render", f], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/basic/nmorph-space/NmorphSpace.vue"]]);
|
|
19
22
|
export {
|
|
20
|
-
|
|
23
|
+
S as default
|
|
21
24
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import './NmorphSpace.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import { toCssSize as
|
|
5
|
-
|
|
2
|
+
import { defineComponent as m, computed as t } from "vue";
|
|
3
|
+
import { useModifiers as c } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { toCssSize as y } from "../../../utils/common.js";
|
|
5
|
+
import { useMergedAttrs as g } from "../../../utils/attrs.js";
|
|
6
|
+
const v = /* @__PURE__ */ m({
|
|
7
|
+
inheritAttrs: !1,
|
|
6
8
|
__name: "NmorphSpace",
|
|
7
9
|
props: {
|
|
8
10
|
tag: { type: String, required: !1, default: "div" },
|
|
@@ -14,28 +16,28 @@ const _ = /* @__PURE__ */ d({
|
|
|
14
16
|
inline: { type: Boolean, required: !1, default: !1 },
|
|
15
17
|
fill: { type: Boolean, required: !1, default: !1 }
|
|
16
18
|
},
|
|
17
|
-
setup(
|
|
18
|
-
|
|
19
|
-
const e =
|
|
19
|
+
setup(f, { expose: u }) {
|
|
20
|
+
u();
|
|
21
|
+
const e = f, r = {
|
|
20
22
|
small: "4px",
|
|
21
23
|
medium: "8px",
|
|
22
24
|
large: "16px"
|
|
23
|
-
},
|
|
24
|
-
() =>
|
|
25
|
+
}, i = t(
|
|
26
|
+
() => c({
|
|
25
27
|
"nmorph-space": [e.direction, e.wrap && "wrap", e.inline && "inline", e.fill && "fill"]
|
|
26
28
|
})
|
|
27
|
-
),
|
|
29
|
+
), s = (p) => y(r[p] || p), a = t(
|
|
28
30
|
() => e.align === "start" || e.align === "end" ? `flex-${e.align}` : e.align
|
|
29
|
-
),
|
|
31
|
+
), n = t(
|
|
30
32
|
() => e.justify === "start" || e.justify === "end" ? `flex-${e.justify}` : e.justify
|
|
31
|
-
),
|
|
32
|
-
"--nmorph-private-space-gap":
|
|
33
|
+
), l = t(() => ({
|
|
34
|
+
"--nmorph-private-space-gap": s(e.size),
|
|
33
35
|
"--nmorph-private-space-align": a.value,
|
|
34
|
-
"--nmorph-private-space-justify":
|
|
35
|
-
})), l = { props: e, sizeMap: r, modifiers:
|
|
36
|
-
return Object.defineProperty(
|
|
36
|
+
"--nmorph-private-space-justify": n.value
|
|
37
|
+
})), d = g(i, l), o = { props: e, sizeMap: r, modifiers: i, resolveSpaceSize: s, alignItems: a, justifyContent: n, styles: l, rootAttrs: d };
|
|
38
|
+
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
37
39
|
}
|
|
38
40
|
});
|
|
39
41
|
export {
|
|
40
|
-
|
|
42
|
+
v as default
|
|
41
43
|
};
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import e from "./NmorphText.vue2.js";
|
|
2
|
-
import { openBlock as t, createBlock as
|
|
3
|
-
import
|
|
4
|
-
function
|
|
5
|
-
return t(),
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import { openBlock as t, createBlock as n, resolveDynamicComponent as p, normalizeProps as a, guardReactiveProps as s, withCtx as m, renderSlot as c, createTextVNode as i, toDisplayString as l } from "vue";
|
|
3
|
+
import f from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function _(o, d, h, r, x, u) {
|
|
5
|
+
return t(), n(
|
|
6
|
+
p(r.props.as),
|
|
7
|
+
a(s(r.rootAttrs)),
|
|
8
|
+
{
|
|
9
|
+
default: m(() => [
|
|
10
|
+
c(o.$slots, "default", {}, () => [
|
|
11
|
+
i(
|
|
12
|
+
l(r.props.text),
|
|
13
|
+
1
|
|
14
|
+
/* TEXT */
|
|
15
|
+
)
|
|
16
|
+
])
|
|
17
|
+
]),
|
|
18
|
+
_: 3
|
|
19
|
+
/* FORWARDED */
|
|
20
|
+
},
|
|
21
|
+
16
|
|
22
|
+
/* FULL_PROPS */
|
|
23
|
+
);
|
|
15
24
|
}
|
|
16
|
-
const
|
|
25
|
+
const N = /* @__PURE__ */ f(e, [["render", _], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/basic/nmorph-text/NmorphText.vue"]]);
|
|
17
26
|
export {
|
|
18
|
-
|
|
27
|
+
N as default
|
|
19
28
|
};
|
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModifiers as
|
|
3
|
-
import { createCssVariables as
|
|
4
|
-
|
|
1
|
+
import { defineComponent as p, computed as l } from "vue";
|
|
2
|
+
import { useModifiers as c } from "../../../utils/create-modifiers.js";
|
|
3
|
+
import { createCssVariables as u } from "../../../utils/common.js";
|
|
4
|
+
import { useMergedAttrs as f } from "../../../utils/attrs.js";
|
|
5
|
+
const x = /* @__PURE__ */ p({
|
|
6
|
+
inheritAttrs: !1,
|
|
5
7
|
__name: "NmorphText",
|
|
6
8
|
props: {
|
|
7
9
|
as: { type: String, required: !1, default: "span" },
|
|
10
|
+
text: { type: [String, Number], required: !1, default: void 0 },
|
|
8
11
|
variant: { type: null, required: !1, default: "body" },
|
|
9
12
|
weight: { type: null, required: !1, default: void 0 },
|
|
10
13
|
color: { type: null, required: !1, default: "text" },
|
|
11
14
|
align: { type: null, required: !1, default: "inherit" },
|
|
15
|
+
selectable: { type: Boolean, required: !1, default: !0 },
|
|
16
|
+
italic: { type: Boolean, required: !1, default: !1 },
|
|
17
|
+
noLineHeight: { type: Boolean, required: !1, default: !1 },
|
|
12
18
|
truncate: { type: Boolean, required: !1, default: !1 },
|
|
13
19
|
nowrap: { type: Boolean, required: !1, default: !1 },
|
|
14
20
|
lineClamp: { type: Number, required: !1, default: void 0 }
|
|
15
21
|
},
|
|
16
|
-
setup(
|
|
17
|
-
|
|
18
|
-
const e =
|
|
22
|
+
setup(n, { expose: i }) {
|
|
23
|
+
i();
|
|
24
|
+
const e = n, r = {
|
|
19
25
|
text: "var(--nmorph-text-color)",
|
|
26
|
+
contrast: "var(--nmorph-contrast-text-color)",
|
|
20
27
|
"semi-contrast": "var(--nmorph-semi-contrast-text-color)",
|
|
21
28
|
placeholder: "var(--nmorph-placeholder-text-color)",
|
|
22
29
|
focus: "var(--nmorph-focus-text-color)",
|
|
@@ -25,26 +32,29 @@ const d = /* @__PURE__ */ i({
|
|
|
25
32
|
warning: "var(--nmorph-warning-text-color)",
|
|
26
33
|
error: "var(--nmorph-error-text-color)",
|
|
27
34
|
white: "var(--nmorph-white-color)"
|
|
28
|
-
},
|
|
29
|
-
() =>
|
|
35
|
+
}, t = l(
|
|
36
|
+
() => c({
|
|
30
37
|
"nmorph-typography": [
|
|
31
38
|
e.variant,
|
|
32
39
|
e.weight,
|
|
40
|
+
!e.selectable && "not-selectable",
|
|
41
|
+
e.italic && "italic",
|
|
42
|
+
e.noLineHeight && "no-line-height",
|
|
33
43
|
e.truncate && "truncate",
|
|
34
44
|
e.nowrap && "nowrap",
|
|
35
45
|
e.lineClamp && "line-clamp"
|
|
36
46
|
]
|
|
37
47
|
})
|
|
38
|
-
),
|
|
39
|
-
() =>
|
|
48
|
+
), o = l(
|
|
49
|
+
() => u({
|
|
40
50
|
"--nmorph-private-text-color": r[e.color] || e.color,
|
|
41
51
|
"--nmorph-private-text-align": e.align === "inherit" ? void 0 : e.align,
|
|
42
52
|
"--nmorph-private-text-line-clamp": e.lineClamp
|
|
43
53
|
})
|
|
44
|
-
), t = { props: e, colorMap: r, modifiers:
|
|
45
|
-
return Object.defineProperty(
|
|
54
|
+
), s = f(t, o), a = { props: e, colorMap: r, modifiers: t, styles: o, rootAttrs: s };
|
|
55
|
+
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
46
56
|
}
|
|
47
57
|
});
|
|
48
58
|
export {
|
|
49
|
-
|
|
59
|
+
x as default
|
|
50
60
|
};
|
|
@@ -1,44 +1,47 @@
|
|
|
1
1
|
import './NmorphCard.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as
|
|
2
|
+
import n from "./NmorphCard.vue2.js";
|
|
3
|
+
import { openBlock as e, createBlock as c, resolveDynamicComponent as m, normalizeProps as d, guardReactiveProps as l, withCtx as p, createElementBlock as a, renderSlot as t, createCommentVNode as s, createElementVNode as i, normalizeClass as _ } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import f from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const h = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "nmorph-card__header"
|
|
9
|
-
},
|
|
9
|
+
}, v = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "nmorph-card__footer"
|
|
12
12
|
};
|
|
13
|
-
function
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
13
|
+
function C(r, k, u, o, y, N) {
|
|
14
|
+
return e(), c(
|
|
15
|
+
m(o.props.tag),
|
|
16
|
+
d(l(o.rootAttrs)),
|
|
17
|
+
{
|
|
18
|
+
default: p(() => [
|
|
19
|
+
o.slots.header ? (e(), a("div", h, [
|
|
20
|
+
t(r.$slots, "header")
|
|
21
|
+
])) : s("v-if", !0),
|
|
22
|
+
i(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
class: _(["nmorph-card__content", o.props.contentClass])
|
|
26
|
+
},
|
|
27
|
+
[
|
|
28
|
+
t(r.$slots, "default")
|
|
29
|
+
],
|
|
30
|
+
2
|
|
31
|
+
/* CLASS */
|
|
32
|
+
),
|
|
33
|
+
o.slots.footer ? (e(), a("div", v, [
|
|
34
|
+
t(r.$slots, "footer")
|
|
35
|
+
])) : s("v-if", !0)
|
|
36
|
+
]),
|
|
37
|
+
_: 3
|
|
38
|
+
/* FORWARDED */
|
|
39
|
+
},
|
|
40
|
+
16
|
|
41
|
+
/* FULL_PROPS */
|
|
42
|
+
);
|
|
40
43
|
}
|
|
41
|
-
const E = /* @__PURE__ */
|
|
44
|
+
const E = /* @__PURE__ */ f(n, [["render", C], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/data/nmorph-card/NmorphCard.vue"]]);
|
|
42
45
|
export {
|
|
43
46
|
E as default
|
|
44
47
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import './NmorphCard.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
2
|
+
import { defineComponent as y, useSlots as v, computed as i } from "vue";
|
|
3
|
+
import { useModifiers as S } from "../../../utils/create-modifiers.js";
|
|
4
4
|
import { toCssSize as r } from "../../../utils/common.js";
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { useMergedAttrs as b } from "../../../utils/attrs.js";
|
|
6
|
+
import { NmorphShadowType as q } from "../../../types/common.types.js";
|
|
7
|
+
const T = /* @__PURE__ */ y({
|
|
8
|
+
inheritAttrs: !1,
|
|
7
9
|
__name: "NmorphCard",
|
|
8
10
|
props: {
|
|
9
11
|
design: { type: null, required: !1, default: "nmorph" },
|
|
@@ -18,31 +20,31 @@ const w = /* @__PURE__ */ g({
|
|
|
18
20
|
fill: { type: Boolean, required: !1, default: !0 },
|
|
19
21
|
tag: { type: String, required: !1, default: "div" }
|
|
20
22
|
},
|
|
21
|
-
setup(
|
|
22
|
-
|
|
23
|
-
const e =
|
|
24
|
-
() =>
|
|
25
|
-
nmorph: [
|
|
26
|
-
"nmorph-card": [
|
|
23
|
+
setup(l, { expose: c }) {
|
|
24
|
+
c();
|
|
25
|
+
const e = l, m = v(), t = i(() => e.design || "nmorph"), o = i(
|
|
26
|
+
() => S({
|
|
27
|
+
nmorph: [t.value === "nmorph" ? q[e.shadowType] : ""],
|
|
28
|
+
"nmorph-card": [t.value, e.shadowType, e.fill ? "fill" : "fit-content"]
|
|
27
29
|
})
|
|
28
|
-
),
|
|
29
|
-
const
|
|
30
|
+
), n = i(() => {
|
|
31
|
+
const d = e.padding !== void 0 ? r(e.padding) : r(e.cardPadding), s = r(e.radius), u = r(e.contentPadding), a = Math.max(0, Number(e.paper) || 0), h = Math.min(a * 0.08, 0.48), g = Math.min(a * 0.04, 0.2);
|
|
30
32
|
return {
|
|
31
33
|
...e.shadowType === "combined" && {
|
|
32
34
|
"--nmorph-private-card-combined-border-width": `${e.combinedShadowBorderWidth}px`
|
|
33
35
|
},
|
|
34
|
-
...
|
|
35
|
-
...
|
|
36
|
-
...
|
|
36
|
+
...d !== void 0 && { "--nmorph-private-card-padding": d, padding: d },
|
|
37
|
+
...s !== void 0 && { "--nmorph-private-card-radius": s },
|
|
38
|
+
...u !== void 0 && { "--nmorph-private-card-content-padding": u },
|
|
37
39
|
...a > 0 && {
|
|
38
|
-
"--nmorph-private-card-paper-light-opacity": String(
|
|
39
|
-
"--nmorph-private-card-paper-dark-opacity": String(
|
|
40
|
+
"--nmorph-private-card-paper-light-opacity": String(h),
|
|
41
|
+
"--nmorph-private-card-paper-dark-opacity": String(g)
|
|
40
42
|
}
|
|
41
43
|
};
|
|
42
|
-
}), o = { props: e, slots:
|
|
43
|
-
return Object.defineProperty(
|
|
44
|
+
}), f = b(o, n), p = { props: e, slots: m, resolvedDesign: t, modifiers: o, styles: n, rootAttrs: f };
|
|
45
|
+
return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
|
|
44
46
|
}
|
|
45
47
|
});
|
|
46
48
|
export {
|
|
47
|
-
|
|
49
|
+
T as default
|
|
48
50
|
};
|
|
@@ -1,35 +1,32 @@
|
|
|
1
1
|
import './NmorphPreviewPortal.css';
|
|
2
2
|
import v from "./NmorphPreviewPortal.vue2.js";
|
|
3
|
-
import { openBlock as t, createBlock as c, Teleport as h, createElementVNode as m,
|
|
3
|
+
import { openBlock as t, createBlock as c, Teleport as h, createElementVNode as m, normalizeProps as f, guardReactiveProps as w, createVNode as e, withCtx as n, normalizeClass as l, renderSlot as d, createElementBlock as a, createCommentVNode as i } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
function
|
|
5
|
+
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
function N(s, r, C, o, k, y) {
|
|
7
7
|
return o.props.show ? (t(), c(h, {
|
|
8
8
|
key: 0,
|
|
9
9
|
to: "body"
|
|
10
10
|
}, [
|
|
11
11
|
m(
|
|
12
12
|
"div",
|
|
13
|
-
|
|
14
|
-
class: n(o.rootClasses),
|
|
15
|
-
style: f(o.portalStyle)
|
|
16
|
-
},
|
|
13
|
+
f(w(o.rootAttrs)),
|
|
17
14
|
[
|
|
18
15
|
e(o.NmorphOverlay, {
|
|
19
16
|
show: o.props.show,
|
|
20
17
|
"z-index": o.props.zIndex,
|
|
21
18
|
"disabled-teleport": "",
|
|
22
|
-
onOnOutsideClick: r[2] || (r[2] = (
|
|
23
|
-
onOnEscapeKeydown: r[3] || (r[3] = (
|
|
19
|
+
onOnOutsideClick: r[2] || (r[2] = (p) => o.emit("close")),
|
|
20
|
+
onOnEscapeKeydown: r[3] || (r[3] = (p) => o.emit("close"))
|
|
24
21
|
}, {
|
|
25
|
-
default:
|
|
22
|
+
default: n(() => [
|
|
26
23
|
m(
|
|
27
24
|
"div",
|
|
28
25
|
{
|
|
29
|
-
class:
|
|
26
|
+
class: l(["nmorph-preview-portal__content", o.props.contentClass])
|
|
30
27
|
},
|
|
31
28
|
[
|
|
32
|
-
d(
|
|
29
|
+
d(s.$slots, "default")
|
|
33
30
|
],
|
|
34
31
|
2
|
|
35
32
|
/* CLASS */
|
|
@@ -38,18 +35,18 @@ function _(p, r, N, o, C, k) {
|
|
|
38
35
|
"div",
|
|
39
36
|
{
|
|
40
37
|
key: 0,
|
|
41
|
-
class:
|
|
38
|
+
class: l(["nmorph-preview-portal__left", o.props.leftClass])
|
|
42
39
|
},
|
|
43
40
|
[
|
|
44
41
|
e(o.NmorphButton, {
|
|
45
42
|
class: "nmorph-preview-portal__control-button",
|
|
46
43
|
design: "plain",
|
|
47
44
|
borderless: "",
|
|
48
|
-
onClick: r[0] || (r[0] = (
|
|
45
|
+
onClick: r[0] || (r[0] = (p) => o.emit("previous"))
|
|
49
46
|
}, {
|
|
50
|
-
default:
|
|
47
|
+
default: n(() => [
|
|
51
48
|
e(o.NmorphIcon, null, {
|
|
52
|
-
default:
|
|
49
|
+
default: n(() => [
|
|
53
50
|
e(o.NmorphIconChevronDown)
|
|
54
51
|
]),
|
|
55
52
|
_: 1
|
|
@@ -67,18 +64,18 @@ function _(p, r, N, o, C, k) {
|
|
|
67
64
|
"div",
|
|
68
65
|
{
|
|
69
66
|
key: 1,
|
|
70
|
-
class:
|
|
67
|
+
class: l(["nmorph-preview-portal__right", o.props.rightClass])
|
|
71
68
|
},
|
|
72
69
|
[
|
|
73
70
|
e(o.NmorphButton, {
|
|
74
71
|
class: "nmorph-preview-portal__control-button",
|
|
75
72
|
design: "plain",
|
|
76
73
|
borderless: "",
|
|
77
|
-
onClick: r[1] || (r[1] = (
|
|
74
|
+
onClick: r[1] || (r[1] = (p) => o.emit("next"))
|
|
78
75
|
}, {
|
|
79
|
-
default:
|
|
76
|
+
default: n(() => [
|
|
80
77
|
e(o.NmorphIcon, null, {
|
|
81
|
-
default:
|
|
78
|
+
default: n(() => [
|
|
82
79
|
e(o.NmorphIconChevronDown)
|
|
83
80
|
]),
|
|
84
81
|
_: 1
|
|
@@ -96,10 +93,10 @@ function _(p, r, N, o, C, k) {
|
|
|
96
93
|
"div",
|
|
97
94
|
{
|
|
98
95
|
key: 2,
|
|
99
|
-
class:
|
|
96
|
+
class: l(["nmorph-preview-portal__actions", o.props.actionsClass])
|
|
100
97
|
},
|
|
101
98
|
[
|
|
102
|
-
d(
|
|
99
|
+
d(s.$slots, "actions")
|
|
103
100
|
],
|
|
104
101
|
2
|
|
105
102
|
/* CLASS */
|
|
@@ -109,12 +106,12 @@ function _(p, r, N, o, C, k) {
|
|
|
109
106
|
/* FORWARDED */
|
|
110
107
|
}, 8, ["show", "z-index"])
|
|
111
108
|
],
|
|
112
|
-
|
|
113
|
-
/*
|
|
109
|
+
16
|
|
110
|
+
/* FULL_PROPS */
|
|
114
111
|
)
|
|
115
112
|
])) : i("v-if", !0);
|
|
116
113
|
}
|
|
117
|
-
const
|
|
114
|
+
const P = /* @__PURE__ */ _(v, [["render", N], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue"]]);
|
|
118
115
|
export {
|
|
119
|
-
|
|
116
|
+
P as default
|
|
120
117
|
};
|