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