@nmorph/nmorph-ui-kit 3.0.16 → 3.0.18

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 (112) hide show
  1. package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +6 -6
  2. package/dist/components/basic/nmorph-layout/NmorphLayout.vue.js +32 -29
  3. package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +13 -11
  4. package/dist/components/basic/nmorph-link/NmorphLink.css +1 -1
  5. package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +7 -7
  6. package/dist/components/basic/nmorph-space/NmorphSpace.vue.js +18 -15
  7. package/dist/components/basic/nmorph-space/NmorphSpace.vue2.js +19 -17
  8. package/dist/components/basic/nmorph-text/NmorphText.vue.js +21 -18
  9. package/dist/components/basic/nmorph-text/NmorphText.vue2.js +23 -15
  10. package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.css +1 -1
  11. package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.vue2.js +15 -15
  12. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
  13. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue2.js +8 -8
  14. package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +1 -1
  15. package/dist/components/data/nmorph-card/NmorphCard.vue.js +36 -33
  16. package/dist/components/data/nmorph-card/NmorphCard.vue2.js +22 -20
  17. package/dist/components/data/nmorph-empty/NmorphEmpty.css +1 -1
  18. package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
  19. package/dist/components/data/nmorph-file-card/NmorphFileCard.vue2.js +12 -12
  20. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.css +1 -1
  21. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +11 -11
  22. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.css +1 -1
  23. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.css +1 -1
  24. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +23 -26
  25. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue2.js +21 -19
  26. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -1
  27. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +40 -43
  28. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue2.js +60 -59
  29. package/dist/components/feedback/nmorph-alert/NmorphAlert.css +1 -1
  30. package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -1
  31. package/dist/components/feedback/nmorph-callout/NmorphCallout.vue.js +37 -34
  32. package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +25 -16
  33. package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue.js +21 -23
  34. package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +32 -30
  35. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue.js +16 -18
  36. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +32 -30
  37. package/dist/components/feedback/nmorph-guide/NmorphGuide.vue2.js +3 -3
  38. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.css +1 -1
  39. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +37 -39
  40. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue2.js +26 -21
  41. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.css +1 -1
  42. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.css +1 -1
  43. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue.js +13 -14
  44. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +34 -29
  45. package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +24 -29
  46. package/dist/components/others/nmorph-overlay/NmorphOverlay.vue2.js +38 -36
  47. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.css +1 -1
  48. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +29 -32
  49. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +51 -49
  50. package/dist/hooks/use-common-styles.js +17 -5
  51. package/dist/index.umd.js +40 -28
  52. package/dist/outside-hooks/use-nmorph-theme.js +13 -13
  53. package/dist/package.json.js +1 -1
  54. package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +5 -6
  55. package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +1 -1
  56. package/dist/src/components/basic/nmorph-layout/NmorphLayout.vue.d.ts +7 -1
  57. package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +3 -4
  58. package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +3 -3
  59. package/dist/src/components/basic/nmorph-space/NmorphSpace.vue.d.ts +3 -3
  60. package/dist/src/components/basic/nmorph-text/NmorphText.vue.d.ts +6 -3
  61. package/dist/src/components/basic/nmorph-text/types.d.ts +3 -0
  62. package/dist/src/components/data/nmorph-audio-meter/NmorphAudioMeter.vue.d.ts +0 -6
  63. package/dist/src/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.d.ts +4 -4
  64. package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +1 -1
  65. package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +4 -5
  66. package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +1 -1
  67. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +6 -2
  68. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +1 -1
  69. package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +2 -2
  70. package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +1 -1
  71. package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +4 -4
  72. package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +1 -1
  73. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -1
  74. package/dist/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.d.ts +2 -2
  75. package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +1 -1
  76. package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +1 -1
  77. package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +4 -4
  78. package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -1
  79. package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +7 -4
  80. package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +4 -1
  81. package/dist/src/components/feedback/nmorph-drawer/NmorphDrawer.vue.d.ts +6 -2
  82. package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +2 -2
  83. package/dist/src/components/feedback/nmorph-guide/NmorphGuideStep.vue.d.ts +2 -2
  84. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -2
  85. package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +1 -1
  86. package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +1 -1
  87. package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +1 -1
  88. package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +3 -3
  89. package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
  90. package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +1 -1
  91. package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +3 -3
  92. package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +1 -1
  93. package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.d.ts +1 -1
  94. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +9 -9
  95. package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +1 -1
  96. package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +1 -1
  97. package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +1 -1
  98. package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +1 -1
  99. package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +1 -1
  100. package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +3 -3
  101. package/dist/src/components/navigation/nmorph-stepper/NmorphStepper.vue.d.ts +1 -1
  102. package/dist/src/components/navigation/nmorph-tabs/NmorphTabs.vue.d.ts +1 -1
  103. package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +1 -1
  104. package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +1 -1
  105. package/dist/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.d.ts +1 -1
  106. package/dist/src/main.d.ts +2 -0
  107. package/dist/src/outside-hooks/use-nmorph-notification.d.ts +2 -2
  108. package/dist/src/utils/attrs.d.ts +5 -0
  109. package/dist/src/utils/index.d.ts +1 -0
  110. package/dist/style.css +1 -1
  111. package/dist/utils/attrs.js +15 -0
  112. package/package.json +1 -1
@@ -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 +1 @@
1
- .nmorph-empty{display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;box-sizing:border-box;width:100%;min-height:var(--nmorph-private-empty-min-height);padding:var(--nmorph-private-empty-padding);color:var(--nmorph-text-color);text-align:center;border-radius:var(--default-border-radius)}.nmorph-empty .nmorph-empty__icon{display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-empty-icon-size);height:var(--nmorph-private-empty-icon-size);color:var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__icon .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__title{max-width:100%;font-weight:var(--nmorph-typography-title-font-weight);font-size:var(--nmorph-typography-title-font-size);line-height:var(--nmorph-typography-title-line-height);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__description{max-width:min(420px,100%);color:var(--nmorph-semi-contrast-text-color);font-weight:var(--nmorph-typography-body-font-weight);font-size:var(--nmorph-typography-body-font-size);line-height:var(--nmorph-typography-body-line-height);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__action{display:flex;justify-content:center;max-width:100%;margin-top:4px}.nmorph-empty.nmorph-empty--nmorph{background:var(--nmorph-main-color)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-inset{box-shadow:var(--nmorph-shadow-inset)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-outset{box-shadow:var(--nmorph-shadow-outset)}.nmorph-empty.nmorph-empty--plain{background:color-mix(in srgb,var(--nmorph-overlay-color) 42%,transparent)}
1
+ .nmorph-empty{display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;box-sizing:border-box;width:100%;min-height:var(--nmorph-private-empty-min-height);padding:var(--nmorph-private-empty-padding);color:var(--nmorph-text-color);text-align:center;border-radius:var(--default-border-radius)}.nmorph-empty .nmorph-empty__icon{display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-empty-icon-size);height:var(--nmorph-private-empty-icon-size);color:var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__icon .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__title{max-width:100%;font-weight:var(--nmorph-typography-title-font-weight);font-size:var(--nmorph-typography-title-font-size);line-height:var(--nmorph-typography-title-line-height);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__description{max-width:min(420px,100%);color:var(--nmorph-semi-contrast-text-color);font-weight:var(--nmorph-typography-body-font-weight);font-size:var(--nmorph-typography-body-font-size);line-height:var(--nmorph-typography-body-line-height);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__action{display:flex;justify-content:center;max-width:100%;margin-top:4px}.nmorph-empty.nmorph-empty--nmorph{background:var(--nmorph-main-color)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-inset{box-shadow:var(--nmorph-shadow-inset)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-outset{box-shadow:var(--nmorph-shadow-outset)}.nmorph-empty.nmorph-empty--plain{background:color-mix(in srgb,var(--nmorph-light-shade-color) 72%,transparent)}
@@ -1 +1 @@
1
- .nmorph-file-card{display:flex;gap:var(--indentation-03);align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:var(--nmorph-private-file-card-height, auto);min-height:var(--nmorph-private-file-card-height, 64px);padding:var(--indentation-03);color:var(--nmorph-text-color);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-file-card .nmorph-file-card__icon{position:relative;display:flex;flex:0 0 auto;justify-content:center;align-items:center;width:36px;height:36px;color:var(--nmorph-text-color);background:color-mix(in srgb,var(--nmorph-text-color) 10%,transparent);border-radius:var(--default-border-radius);--nmorph-private-icon-color: currentColor}.nmorph-file-card .nmorph-file-card__icon-action{position:absolute;right:-4px;bottom:-4px;display:inline-flex;justify-content:center;align-items:center;width:18px;height:18px;color:var(--nmorph-contrast-text-color);text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 36%,transparent);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset)}.nmorph-file-card .nmorph-file-card__icon-action:hover{background:color-mix(in srgb,var(--nmorph-black-color) 48%,transparent)}.nmorph-file-card .nmorph-file-card__icon-action .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-file-card .nmorph-file-card__body{display:flex;flex:1 1 0;flex-direction:column;gap:var(--indentation-01);min-width:0}.nmorph-file-card .nmorph-file-card__info{display:flex;flex-direction:column;gap:2px;min-width:0}.nmorph-file-card .nmorph-file-card__name,.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-file-card .nmorph-file-card__name{font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size);line-height:var(--nmorph-typography-label-line-height)}.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-file-card .nmorph-file-card__meta{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__error{color:var(--nmorph-error-text-color)}.nmorph-file-card .nmorph-file-card__audio-preview,.nmorph-file-card .nmorph-file-card__video-preview,.nmorph-file-card .nmorph-file-card__image-preview{width:100%;min-width:0}.nmorph-file-card .nmorph-file-card__image-preview{display:block;height:var(--nmorph-private-file-card-media-height, 120px);padding:0;overflow:hidden;color:inherit;font:inherit;background:transparent;border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-file-card .nmorph-file-card__image-preview .nmorph-file-card__image{display:block;width:100%;max-width:100%;height:100%;object-fit:cover}.nmorph-file-card .nmorph-file-card__badge{flex:0 0 auto;max-width:72px;padding:2px 6px;overflow:hidden;color:var(--nmorph-accent-color);font-weight:var(--font-weight-bold);font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);white-space:nowrap;text-transform:uppercase;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__visual-size{position:absolute;right:var(--indentation-02);bottom:var(--indentation-02);z-index:2;display:inline-flex;align-items:center;min-width:0;max-width:calc(100% - var(--indentation-04));min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius);pointer-events:none}.nmorph-file-card .nmorph-file-card__actions{display:flex;flex:0 0 auto;gap:var(--indentation-01);align-items:center}.nmorph-file-card .nmorph-file-card__action-link,.nmorph-file-card .nmorph-file-card__action-loader{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:inherit;line-height:1;text-decoration:none;border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__action-link:hover{color:var(--nmorph-accent-color);background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent)}.nmorph-file-card .nmorph-file-card__action-link .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-file-card .nmorph-file-card__action-loader{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__action-loader .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-file-card.nmorph-file-card--custom-actions,.nmorph-file-card.nmorph-file-card--compact{position:relative;padding-inline-end:calc(var(--indentation-03) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--custom-actions .nmorph-file-card__actions,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{position:absolute;top:var(--indentation-03);right:var(--indentation-03);z-index:3}.nmorph-file-card.nmorph-file-card--compact{min-height:var(--nmorph-private-file-card-height, 52px);padding:var(--indentation-02);padding-inline-end:calc(var(--indentation-02) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__icon{width:30px;height:30px}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__audio-preview,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__video-preview{margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__image-preview{height:var(--nmorph-private-file-card-media-height, 96px);margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{top:var(--indentation-02);right:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--loading.nmorph-file-card--compact{padding:var(--indentation-03);padding-inline-end:calc(var(--indentation-03) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--loading.nmorph-file-card--compact .nmorph-file-card__actions{top:var(--indentation-03);right:var(--indentation-03)}.nmorph-file-card.nmorph-file-card--media-audio.nmorph-file-card--no-actions .nmorph-file-card__body{padding-inline-end:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--media-visual{position:relative;display:block;gap:0;min-height:0;padding:0;padding-inline-end:0;overflow:hidden}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__body{position:relative;display:block;width:100%;min-width:0;height:100%}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__info{position:absolute;top:var(--indentation-02);left:var(--indentation-02);z-index:2;max-width:calc(100% - 48px);pointer-events:none}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__name{display:block;min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);line-height:22px;white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview__media,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image{display:block;width:100%;max-width:none;height:var(--nmorph-private-file-card-media-height, 100%);border-radius:inherit;object-fit:cover}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link .nmorph-icon,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader .nmorph-icon{flex:0 0 auto;--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link:hover{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-file-card__info{max-width:calc(100% - 112px)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-video-preview__actions{right:calc(var(--indentation-02) + 26px)}.nmorph-file-card.nmorph-file-card--media-image .nmorph-file-card__image-preview{border-radius:inherit}.nmorph-file-card.nmorph-file-card--error{outline:1px solid var(--nmorph-error-color)}.nmorph-file-card.nmorph-file-card--soft{background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);box-shadow:none}.nmorph-file-card.nmorph-file-card--soft .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--plain{background:transparent;box-shadow:none}.nmorph-file-card.nmorph-file-card--plain .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--icon-plain .nmorph-file-card__icon{background:transparent}
1
+ .nmorph-file-card{display:flex;gap:var(--indentation-03);align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:var(--nmorph-private-file-card-height, auto);min-height:var(--nmorph-private-file-card-height, 64px);padding:var(--indentation-03);color:var(--nmorph-text-color);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-file-card .nmorph-file-card__icon{position:relative;display:flex;flex:0 0 auto;justify-content:center;align-items:center;width:36px;height:36px;color:var(--nmorph-text-color);background:color-mix(in srgb,var(--nmorph-text-color) 10%,transparent);border-radius:var(--default-border-radius);--nmorph-private-icon-color: currentColor}.nmorph-file-card .nmorph-file-card__icon-action{position:absolute;right:-4px;bottom:-4px;display:inline-flex;justify-content:center;align-items:center;width:18px;height:18px;color:var(--nmorph-white-color);text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 36%,transparent);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset)}.nmorph-file-card .nmorph-file-card__icon-action:hover{background:color-mix(in srgb,var(--nmorph-black-color) 48%,transparent)}.nmorph-file-card .nmorph-file-card__icon-action .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-file-card .nmorph-file-card__body{display:flex;flex:1 1 0;flex-direction:column;gap:var(--indentation-01);min-width:0}.nmorph-file-card .nmorph-file-card__info{display:flex;flex-direction:column;gap:2px;min-width:0}.nmorph-file-card .nmorph-file-card__name,.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-file-card .nmorph-file-card__name{font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size);line-height:var(--nmorph-typography-label-line-height)}.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-file-card .nmorph-file-card__meta{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__error{color:var(--nmorph-error-text-color)}.nmorph-file-card .nmorph-file-card__audio-preview,.nmorph-file-card .nmorph-file-card__video-preview,.nmorph-file-card .nmorph-file-card__image-preview{width:100%;min-width:0}.nmorph-file-card .nmorph-file-card__image-preview{display:block;height:var(--nmorph-private-file-card-media-height, 120px);padding:0;overflow:hidden;color:inherit;font:inherit;background:transparent;border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-file-card .nmorph-file-card__image-preview .nmorph-file-card__image{display:block;width:100%;max-width:100%;height:100%;object-fit:cover}.nmorph-file-card .nmorph-file-card__badge{flex:0 0 auto;max-width:72px;padding:2px 6px;overflow:hidden;color:var(--nmorph-accent-color);font-weight:var(--font-weight-bold);font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);white-space:nowrap;text-transform:uppercase;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__visual-size{position:absolute;right:var(--indentation-02);bottom:var(--indentation-02);z-index:2;display:inline-flex;align-items:center;min-width:0;max-width:calc(100% - var(--indentation-04));min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-white-color);font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius);pointer-events:none}.nmorph-file-card .nmorph-file-card__actions{display:flex;flex:0 0 auto;gap:var(--indentation-01);align-items:center}.nmorph-file-card .nmorph-file-card__action-link,.nmorph-file-card .nmorph-file-card__action-loader{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:inherit;line-height:1;text-decoration:none;border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__action-link:hover{color:var(--nmorph-accent-color);background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent)}.nmorph-file-card .nmorph-file-card__action-link .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-file-card .nmorph-file-card__action-loader{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__action-loader .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-file-card.nmorph-file-card--custom-actions,.nmorph-file-card.nmorph-file-card--compact{position:relative;padding-inline-end:calc(var(--indentation-03) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--custom-actions .nmorph-file-card__actions,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{position:absolute;top:var(--indentation-03);right:var(--indentation-03);z-index:3}.nmorph-file-card.nmorph-file-card--compact{min-height:var(--nmorph-private-file-card-height, 52px);padding:var(--indentation-02);padding-inline-end:calc(var(--indentation-02) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__icon{width:30px;height:30px}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__audio-preview,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__video-preview{margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__image-preview{height:var(--nmorph-private-file-card-media-height, 96px);margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{top:var(--indentation-02);right:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--loading.nmorph-file-card--compact{padding:var(--indentation-03);padding-inline-end:calc(var(--indentation-03) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--loading.nmorph-file-card--compact .nmorph-file-card__actions{top:var(--indentation-03);right:var(--indentation-03)}.nmorph-file-card.nmorph-file-card--media-audio.nmorph-file-card--no-actions .nmorph-file-card__body{padding-inline-end:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--media-visual{position:relative;display:block;gap:0;min-height:0;padding:0;padding-inline-end:0;overflow:hidden}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__body{position:relative;display:block;width:100%;min-width:0;height:100%}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__info{position:absolute;top:var(--indentation-02);left:var(--indentation-02);z-index:2;max-width:calc(100% - 48px);pointer-events:none}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__name{display:block;min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-white-color);line-height:22px;white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview__media,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image{display:block;width:100%;max-width:none;height:var(--nmorph-private-file-card-media-height, 100%);border-radius:inherit;object-fit:cover}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader{color:var(--nmorph-white-color);background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link .nmorph-icon,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader .nmorph-icon{flex:0 0 auto;--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link:hover{color:var(--nmorph-white-color);background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-file-card__info{max-width:calc(100% - 112px)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-video-preview__actions{right:calc(var(--indentation-02) + 26px)}.nmorph-file-card.nmorph-file-card--media-image .nmorph-file-card__image-preview{border-radius:inherit}.nmorph-file-card.nmorph-file-card--error{outline:1px solid var(--nmorph-error-text-color)}.nmorph-file-card.nmorph-file-card--soft{background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);box-shadow:none}.nmorph-file-card.nmorph-file-card--soft .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--plain{background:transparent;box-shadow:none}.nmorph-file-card.nmorph-file-card--plain .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--icon-plain .nmorph-file-card__icon{background:transparent}
@@ -10,14 +10,14 @@ import ee from "../nmorph-video-preview/NmorphVideoPreview.vue.js";
10
10
  import re from "../../../assets/icons/image.svg.js";
11
11
  import oe from "../../../assets/icons/archive.svg.js";
12
12
  import x from "../../../assets/icons/doc.svg.js";
13
- import te from "../../../assets/icons/open.svg.js";
14
- import ae from "../../basic/nmorph-icon/NmorphIcon.vue.js";
13
+ import ae from "../../../assets/icons/open.svg.js";
14
+ import te from "../../basic/nmorph-icon/NmorphIcon.vue.js";
15
15
  import ie from "../../../assets/icons/audio.svg.js";
16
16
  import ne from "../../../assets/icons/video.svg.js";
17
17
  import le from "../../../assets/icons/loading.svg.js";
18
18
  import ue from "../../../assets/icons/eye.svg.js";
19
19
  import se from "../../../assets/icons/download.svg.js";
20
- const de = "var(--nmorph-contrast-text-color)", Me = /* @__PURE__ */ F({
20
+ const de = "var(--nmorph-white-color)", Me = /* @__PURE__ */ F({
21
21
  __name: "NmorphFileCard",
22
22
  props: {
23
23
  name: { type: String, required: !0 },
@@ -45,14 +45,14 @@ const de = "var(--nmorph-contrast-text-color)", Me = /* @__PURE__ */ F({
45
45
  emits: ["open", "download", "error"],
46
46
  setup(C, { expose: M, emit: _ }) {
47
47
  M();
48
- const e = C, l = _, h = E(), w = V(!1), s = r(() => (e.extension || Q(e.name) || U(e.mimeType)).toLowerCase()), t = r(() => X(e.mimeType, e.name)), O = r(() => e.mimeType.toLowerCase().startsWith("image/") || t.value.some((o) => n(o, k)) ? re : e.mimeType.toLowerCase().startsWith("audio/") || t.value.some((o) => n(o, G)) ? ie : e.mimeType.toLowerCase().startsWith("video/") || t.value.some((o) => n(o, W)) ? ne : t.value.some((o) => n(o, j)) ? oe : t.value.some((o) => n(o, K)) ? x : x), g = (o) => {
48
+ const e = C, l = _, h = E(), w = V(!1), s = r(() => (e.extension || Q(e.name) || U(e.mimeType)).toLowerCase()), a = r(() => X(e.mimeType, e.name)), O = r(() => e.mimeType.toLowerCase().startsWith("image/") || a.value.some((o) => n(o, k)) ? re : e.mimeType.toLowerCase().startsWith("audio/") || a.value.some((o) => n(o, G)) ? ie : e.mimeType.toLowerCase().startsWith("video/") || a.value.some((o) => n(o, W)) ? ne : a.value.some((o) => n(o, j)) ? oe : a.value.some((o) => n(o, K)) ? x : x), g = (o) => {
49
49
  if (o === void 0 || Number.isNaN(o) || o < 0) return "";
50
50
  if (o === 0) return "0 B";
51
51
  const b = ["B", "KB", "MB", "GB", "TB"], c = Math.min(Math.floor(Math.log(o) / Math.log(1024)), b.length - 1), v = o / 1024 ** c, z = v >= 10 || c === 0 || Number.isInteger(v) ? 0 : 1;
52
52
  return `${v.toFixed(z)} ${b[c]}`;
53
- }, y = r(() => e.showSize ? g(e.size) : ""), N = r(() => s.value || e.mimeType), S = r(() => [N.value, y.value].filter(Boolean).join(" · ")), d = r(() => e.mediaPreview === "audio" && !!e.previewSrc && !e.loading && !e.error), a = r(() => e.mediaPreview === "video" && !!e.previewSrc && !e.loading && !e.error), i = r(() => e.mediaPreview === "image" && !!e.previewSrc && !e.loading && !e.error), u = r(
54
- () => d.value || a.value || i.value
55
- ), m = r(() => a.value || i.value), B = r(() => e.height ?? (e.compact ? "96px" : "120px")), L = r(
53
+ }, y = r(() => e.showSize ? g(e.size) : ""), N = r(() => s.value || e.mimeType), S = r(() => [N.value, y.value].filter(Boolean).join(" · ")), d = r(() => e.mediaPreview === "audio" && !!e.previewSrc && !e.loading && !e.error), t = r(() => e.mediaPreview === "video" && !!e.previewSrc && !e.loading && !e.error), i = r(() => e.mediaPreview === "image" && !!e.previewSrc && !e.loading && !e.error), u = r(
54
+ () => d.value || t.value || i.value
55
+ ), m = r(() => t.value || i.value), B = r(() => e.height ?? (e.compact ? "96px" : "120px")), L = r(
56
56
  () => J({
57
57
  "--nmorph-private-file-card-height": e.height,
58
58
  "--nmorph-private-file-card-media-height": B.value
@@ -66,7 +66,7 @@ const de = "var(--nmorph-contrast-text-color)", Me = /* @__PURE__ */ F({
66
66
  size: e.size,
67
67
  downloadHref: e.downloadHref
68
68
  }
69
- ] : a.value ? [
69
+ ] : t.value ? [
70
70
  {
71
71
  kind: "video",
72
72
  src: e.previewSrc,
@@ -92,7 +92,7 @@ const de = "var(--nmorph-contrast-text-color)", Me = /* @__PURE__ */ F({
92
92
  e.error && "error",
93
93
  u.value && "media",
94
94
  d.value && "media-audio",
95
- a.value && "media-video",
95
+ t.value && "media-video",
96
96
  i.value && "media-image",
97
97
  m.value && "media-visual",
98
98
  f.value && "custom-actions",
@@ -100,10 +100,10 @@ const de = "var(--nmorph-contrast-text-color)", Me = /* @__PURE__ */ F({
100
100
  !T.value && "no-actions"
101
101
  ]
102
102
  })
103
- ), H = { CONTRAST_ICON_COLOR: de, props: e, emit: l, slots: h, previewOpen: w, extension: s, candidates: t, icon: O, formatSize: g, fileSize: y, typeLabel: N, meta: S, audioPreviewAvailable: d, videoPreviewAvailable: a, imagePreviewAvailable: i, mediaPreviewAvailable: u, visualMediaPreviewAvailable: m, mediaPreviewHeight: B, styles: L, showInfo: D, mediaGalleryItems: I, shouldOpenInternalPreview: q, isPdf: p, pdfPreviewHref: P, previewOnIcon: A, hasCustomActions: f, hasActions: T, modifiers: R, openHandler: () => {
103
+ ), H = { CONTRAST_ICON_COLOR: de, props: e, emit: l, slots: h, previewOpen: w, extension: s, candidates: a, icon: O, formatSize: g, fileSize: y, typeLabel: N, meta: S, audioPreviewAvailable: d, videoPreviewAvailable: t, imagePreviewAvailable: i, mediaPreviewAvailable: u, visualMediaPreviewAvailable: m, mediaPreviewHeight: B, styles: L, showInfo: D, mediaGalleryItems: I, shouldOpenInternalPreview: q, isPdf: p, pdfPreviewHref: P, previewOnIcon: A, hasCustomActions: f, hasActions: T, modifiers: R, openHandler: () => {
104
104
  q.value && (w.value = !0), e.previewMode !== "none" && l("open");
105
105
  }, downloadHandler: () => l("download"), errorHandler: () => l("error"), get NmorphIcon() {
106
- return ae;
106
+ return te;
107
107
  }, get NmorphIconDownload() {
108
108
  return se;
109
109
  }, get NmorphIconEye() {
@@ -111,7 +111,7 @@ const de = "var(--nmorph-contrast-text-color)", Me = /* @__PURE__ */ F({
111
111
  }, get NmorphIconLoader() {
112
112
  return le;
113
113
  }, get NmorphIconOpen() {
114
- return te;
114
+ return ae;
115
115
  }, NmorphAudioPreview: Y, NmorphMediaGallery: Z, NmorphVideoPreview: ee };
116
116
  return Object.defineProperty(H, "__isScriptSetup", { enumerable: !1, value: !0 }), H;
117
117
  }
@@ -1 +1 @@
1
- .nmorph-media-gallery__trigger{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:var(--indentation-03);box-sizing:border-box;width:100%;max-width:100%}.nmorph-media-gallery__trigger--fixed-height{grid-auto-rows:var(--nmorph-private-media-gallery-trigger-height)}.nmorph-media-gallery__trigger--fixed-height:not(.nmorph-media-gallery__trigger--natural,.nmorph-media-gallery__trigger--mosaic) .nmorph-media-gallery__trigger-item{height:100%;aspect-ratio:auto}.nmorph-media-gallery__trigger--natural,.nmorph-media-gallery__trigger--mosaic{display:flex;flex-wrap:wrap;align-items:flex-start}.nmorph-media-gallery__trigger--natural.nmorph-media-gallery__trigger--paired{flex-wrap:nowrap}.nmorph-media-gallery__trigger--natural .nmorph-media-gallery__trigger-item,.nmorph-media-gallery__trigger--mosaic .nmorph-media-gallery__trigger-item{flex-shrink:1;flex-basis:var(--nmorph-private-media-gallery-trigger-item-basis);width:auto;max-width:100%;aspect-ratio:var(--nmorph-private-media-gallery-trigger-item-ratio)}.nmorph-media-gallery__trigger-item{position:relative;box-sizing:border-box;min-width:0;overflow:hidden;background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-outset);aspect-ratio:16/9}.nmorph-media-gallery__trigger--plain .nmorph-media-gallery__trigger-item{border:var(--nmorph-plain-border);box-shadow:none}.nmorph-media-gallery__trigger-open{position:relative;display:block;width:100%;height:100%;padding:0;overflow:hidden;color:inherit;font:inherit;text-align:initial;background:transparent;border:0;cursor:pointer}.nmorph-media-gallery__trigger-open:after{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,color-mix(in srgb,var(--nmorph-black-color) 38%,transparent),transparent 42%),linear-gradient(0deg,color-mix(in srgb,var(--nmorph-black-color) 28%,transparent),transparent 48%);content:"";pointer-events:none}.nmorph-media-gallery__trigger-open .nmorph-image,.nmorph-media-gallery__trigger-open .nmorph-media-gallery__trigger-video{display:block;width:100%;height:100%;transition:filter var(--transition-03) ease-in-out,transform var(--transition-03) ease-in-out}.nmorph-media-gallery__trigger-open .nmorph-image img,.nmorph-media-gallery__trigger-open .nmorph-media-gallery__trigger-video{display:block;width:100%;height:100%}.nmorph-media-gallery__trigger-open .nmorph-image img{object-fit:var(--nmorph-private-media-gallery-trigger-image-fit)}.nmorph-media-gallery__trigger-open .nmorph-media-gallery__trigger-video{object-fit:var(--nmorph-private-media-gallery-trigger-video-fit)}.nmorph-media-gallery__trigger-open:hover .nmorph-image,.nmorph-media-gallery__trigger-open:hover .nmorph-media-gallery__trigger-video{transform:scale(1.035);filter:brightness(.86)}.nmorph-media-gallery__trigger-name,.nmorph-media-gallery__trigger-size{position:absolute;z-index:2;display:block;box-sizing:border-box;min-width:0;min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);line-height:22px;white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius);pointer-events:none}.nmorph-media-gallery__trigger-name{top:var(--indentation-02);left:var(--indentation-02);max-width:calc(100% - 56px);font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size)}.nmorph-media-gallery__trigger-item--video .nmorph-media-gallery__trigger-name{max-width:calc(100% - 118px)}.nmorph-media-gallery__trigger-size{right:var(--indentation-02);bottom:var(--indentation-02);max-width:calc(100% - var(--indentation-04));font-size:var(--nmorph-typography-caption-font-size)}.nmorph-media-gallery__trigger-actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3;display:flex;gap:var(--indentation-01)}.nmorph-media-gallery__trigger-action{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:var(--nmorph-contrast-text-color);font:inherit;line-height:1;text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-media-gallery__trigger-action .nmorph-icon{flex:0 0 auto;--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-media-gallery__trigger-action:hover{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-media-gallery__trigger-play{position:absolute;top:50%;left:50%;z-index:2;display:inline-flex;justify-content:center;align-items:center;width:54px;height:54px;color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--border-radius-circular);transform:translate(-50%,-50%);pointer-events:none}.nmorph-media-gallery__trigger-play .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-media-gallery{display:contents}.nmorph-media-gallery .nmorph-media-gallery__stage{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;pointer-events:none}.nmorph-media-gallery .nmorph-image{width:100%;height:100%;transition:transform var(--transition-03) ease-in-out;pointer-events:none}.nmorph-media-gallery .nmorph-image img{display:block;width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__video{display:block;width:100%;max-width:100%;height:100%;max-height:100%;background:var(--nmorph-black-color);border-radius:var(--default-border-radius);object-fit:contain;pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__file-name,.nmorph-media-gallery .nmorph-media-gallery__file-size{position:absolute;z-index:2;display:block;box-sizing:border-box;min-width:0;min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);line-height:22px;white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius);pointer-events:none}.nmorph-media-gallery .nmorph-media-gallery__file-name{top:var(--indentation-02);left:var(--indentation-02);max-width:calc(100% - 56px);font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size)}.nmorph-media-gallery.nmorph-media-gallery--video .nmorph-media-gallery__file-name{max-width:calc(100% - 92px)}.nmorph-media-gallery .nmorph-media-gallery__file-size{right:var(--indentation-02);bottom:var(--indentation-02);max-width:calc(100% - var(--indentation-04));font-size:var(--nmorph-typography-caption-font-size)}.nmorph-media-gallery .nmorph-media-gallery__file-actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3;display:flex;gap:var(--indentation-01);pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__file-action{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:var(--nmorph-contrast-text-color);font:inherit;line-height:1;text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-media-gallery .nmorph-media-gallery__file-action .nmorph-icon{flex:0 0 auto;--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-media-gallery .nmorph-media-gallery__file-action:hover{background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-media-gallery .nmorph-media-gallery__action-element{margin-right:var(--indentation-03)}.nmorph-media-gallery.nmorph-media-gallery--image-cover .nmorph-image img{width:100%;height:100%;object-fit:cover}.nmorph-media-gallery.nmorph-media-gallery--video-cover .nmorph-media-gallery__video{object-fit:cover}
1
+ .nmorph-media-gallery__trigger{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:var(--indentation-03);box-sizing:border-box;width:100%;max-width:100%}.nmorph-media-gallery__trigger--fixed-height{grid-auto-rows:var(--nmorph-private-media-gallery-trigger-height)}.nmorph-media-gallery__trigger--fixed-height:not(.nmorph-media-gallery__trigger--natural,.nmorph-media-gallery__trigger--mosaic) .nmorph-media-gallery__trigger-item{height:100%;aspect-ratio:auto}.nmorph-media-gallery__trigger--natural,.nmorph-media-gallery__trigger--mosaic{display:flex;flex-wrap:wrap;align-items:flex-start}.nmorph-media-gallery__trigger--natural.nmorph-media-gallery__trigger--paired{flex-wrap:nowrap}.nmorph-media-gallery__trigger--natural .nmorph-media-gallery__trigger-item,.nmorph-media-gallery__trigger--mosaic .nmorph-media-gallery__trigger-item{flex-shrink:1;flex-basis:var(--nmorph-private-media-gallery-trigger-item-basis);width:auto;max-width:100%;aspect-ratio:var(--nmorph-private-media-gallery-trigger-item-ratio)}.nmorph-media-gallery__trigger-item{position:relative;box-sizing:border-box;min-width:0;overflow:hidden;background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-outset);aspect-ratio:16/9}.nmorph-media-gallery__trigger--plain .nmorph-media-gallery__trigger-item{border:var(--nmorph-plain-border);box-shadow:none}.nmorph-media-gallery__trigger-open{position:relative;display:block;width:100%;height:100%;padding:0;overflow:hidden;color:inherit;font:inherit;text-align:initial;background:transparent;border:0;cursor:pointer}.nmorph-media-gallery__trigger-open:after{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,color-mix(in srgb,var(--nmorph-black-color) 38%,transparent),transparent 42%),linear-gradient(0deg,color-mix(in srgb,var(--nmorph-black-color) 28%,transparent),transparent 48%);content:"";pointer-events:none}.nmorph-media-gallery__trigger-open .nmorph-image,.nmorph-media-gallery__trigger-open .nmorph-media-gallery__trigger-video{display:block;width:100%;height:100%;transition:filter var(--transition-03) ease-in-out,transform var(--transition-03) ease-in-out}.nmorph-media-gallery__trigger-open .nmorph-image img,.nmorph-media-gallery__trigger-open .nmorph-media-gallery__trigger-video{display:block;width:100%;height:100%}.nmorph-media-gallery__trigger-open .nmorph-image img{object-fit:var(--nmorph-private-media-gallery-trigger-image-fit)}.nmorph-media-gallery__trigger-open .nmorph-media-gallery__trigger-video{object-fit:var(--nmorph-private-media-gallery-trigger-video-fit)}.nmorph-media-gallery__trigger-open:hover .nmorph-image,.nmorph-media-gallery__trigger-open:hover .nmorph-media-gallery__trigger-video{transform:scale(1.035);filter:brightness(.86)}.nmorph-media-gallery__trigger-name,.nmorph-media-gallery__trigger-size{position:absolute;z-index:2;display:block;box-sizing:border-box;min-width:0;min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-white-color);line-height:22px;white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius);pointer-events:none}.nmorph-media-gallery__trigger-name{top:var(--indentation-02);left:var(--indentation-02);max-width:calc(100% - 56px);font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size)}.nmorph-media-gallery__trigger-item--video .nmorph-media-gallery__trigger-name{max-width:calc(100% - 118px)}.nmorph-media-gallery__trigger-size{right:var(--indentation-02);bottom:var(--indentation-02);max-width:calc(100% - var(--indentation-04));font-size:var(--nmorph-typography-caption-font-size)}.nmorph-media-gallery__trigger-actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3;display:flex;gap:var(--indentation-01)}.nmorph-media-gallery__trigger-action{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:var(--nmorph-white-color);font:inherit;line-height:1;text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-media-gallery__trigger-action .nmorph-icon{flex:0 0 auto;--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-media-gallery__trigger-action:hover{color:var(--nmorph-white-color);background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-media-gallery__trigger-play{position:absolute;top:50%;left:50%;z-index:2;display:inline-flex;justify-content:center;align-items:center;width:54px;height:54px;color:var(--nmorph-white-color);background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--border-radius-circular);transform:translate(-50%,-50%);pointer-events:none}.nmorph-media-gallery__trigger-play .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-media-gallery{display:contents}.nmorph-media-gallery .nmorph-media-gallery__stage{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;pointer-events:none}.nmorph-media-gallery .nmorph-image{width:100%;height:100%;transition:transform var(--transition-03) ease-in-out;pointer-events:none}.nmorph-media-gallery .nmorph-image img{display:block;width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__video{display:block;width:100%;max-width:100%;height:100%;max-height:100%;background:var(--nmorph-black-color);border-radius:var(--default-border-radius);object-fit:contain;pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__file-name,.nmorph-media-gallery .nmorph-media-gallery__file-size{position:absolute;z-index:2;display:block;box-sizing:border-box;min-width:0;min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-white-color);line-height:22px;white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius);pointer-events:none}.nmorph-media-gallery .nmorph-media-gallery__file-name{top:var(--indentation-02);left:var(--indentation-02);max-width:calc(100% - 56px);font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size)}.nmorph-media-gallery.nmorph-media-gallery--video .nmorph-media-gallery__file-name{max-width:calc(100% - 92px)}.nmorph-media-gallery .nmorph-media-gallery__file-size{right:var(--indentation-02);bottom:var(--indentation-02);max-width:calc(100% - var(--indentation-04));font-size:var(--nmorph-typography-caption-font-size)}.nmorph-media-gallery .nmorph-media-gallery__file-actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3;display:flex;gap:var(--indentation-01);pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__file-action{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:var(--nmorph-white-color);font:inherit;line-height:1;text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-media-gallery .nmorph-media-gallery__file-action .nmorph-icon{flex:0 0 auto;--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-media-gallery .nmorph-media-gallery__file-action:hover{background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-media-gallery .nmorph-media-gallery__action-element{margin-right:var(--indentation-03)}.nmorph-media-gallery.nmorph-media-gallery--image-cover .nmorph-image img{width:100%;height:100%;object-fit:cover}.nmorph-media-gallery.nmorph-media-gallery--video-cover .nmorph-media-gallery__video{object-fit:cover}
@@ -24,8 +24,8 @@ const w = ["aria-label", "onClick"], p = ["src", "poster", "title"], N = {
24
24
  }, L = ["aria-label"], B = ["href", "download", "aria-label"], A = {
25
25
  key: 4,
26
26
  class: "nmorph-media-gallery__file-size"
27
- }, E = { class: "nmorph-media-gallery__action-element" }, V = { class: "nmorph-media-gallery__action-element" }, R = { class: "nmorph-media-gallery__action-element" }, M = { class: "nmorph-media-gallery__action-element" }, x = { class: "nmorph-media-gallery__action-element" };
28
- function O(G, U, Z, o, W, j) {
27
+ }, E = { class: "nmorph-media-gallery__action-element" }, V = { class: "nmorph-media-gallery__action-element" }, R = { class: "nmorph-media-gallery__action-element" }, M = { class: "nmorph-media-gallery__action-element" }, O = { class: "nmorph-media-gallery__action-element" };
28
+ function G(U, Z, W, o, j, q) {
29
29
  return l(), n(
30
30
  g,
31
31
  null,
@@ -82,7 +82,7 @@ function O(G, U, Z, o, W, j) {
82
82
  o.props.showTriggerPlayButton && r.kind === "video" ? (l(), n("span", N, [
83
83
  e(o.NmorphIcon, {
84
84
  size: "medium",
85
- color: "var(--nmorph-contrast-text-color)"
85
+ color: "var(--nmorph-white-color)"
86
86
  }, {
87
87
  default: a(() => [
88
88
  e(o.NmorphIconPlay)
@@ -116,7 +116,7 @@ function O(G, U, Z, o, W, j) {
116
116
  }, [
117
117
  e(o.NmorphIcon, {
118
118
  size: "small",
119
- color: "var(--nmorph-contrast-text-color)"
119
+ color: "var(--nmorph-white-color)"
120
120
  }, {
121
121
  default: a(() => [
122
122
  e(o.NmorphIconEye)
@@ -134,7 +134,7 @@ function O(G, U, Z, o, W, j) {
134
134
  }, [
135
135
  e(o.NmorphIcon, {
136
136
  size: "small",
137
- color: "var(--nmorph-contrast-text-color)"
137
+ color: "var(--nmorph-white-color)"
138
138
  }, {
139
139
  default: a(() => [
140
140
  e(o.NmorphIconFullScreen)
@@ -153,7 +153,7 @@ function O(G, U, Z, o, W, j) {
153
153
  }, [
154
154
  e(o.NmorphIcon, {
155
155
  size: "small",
156
- color: "var(--nmorph-contrast-text-color)"
156
+ color: "var(--nmorph-white-color)"
157
157
  }, {
158
158
  default: a(() => [
159
159
  e(o.NmorphIconDownload)
@@ -272,7 +272,7 @@ function O(G, U, Z, o, W, j) {
272
272
  /* STABLE */
273
273
  })
274
274
  ]),
275
- c("div", x, [
275
+ c("div", O, [
276
276
  e(o.NmorphButton, {
277
277
  class: "nmorph-preview-portal__control-button",
278
278
  design: "plain",
@@ -342,7 +342,7 @@ function O(G, U, Z, o, W, j) {
342
342
  }, [
343
343
  e(o.NmorphIcon, {
344
344
  size: "small",
345
- color: "var(--nmorph-contrast-text-color)"
345
+ color: "var(--nmorph-white-color)"
346
346
  }, {
347
347
  default: a(() => [
348
348
  e(o.NmorphIconFullScreen)
@@ -361,7 +361,7 @@ function O(G, U, Z, o, W, j) {
361
361
  }, [
362
362
  e(o.NmorphIcon, {
363
363
  size: "small",
364
- color: "var(--nmorph-contrast-text-color)"
364
+ color: "var(--nmorph-white-color)"
365
365
  }, {
366
366
  default: a(() => [
367
367
  e(o.NmorphIconDownload)
@@ -388,7 +388,7 @@ function O(G, U, Z, o, W, j) {
388
388
  /* STABLE_FRAGMENT */
389
389
  );
390
390
  }
391
- const X = /* @__PURE__ */ I(y, [["render", O], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue"]]);
391
+ const Y = /* @__PURE__ */ I(y, [["render", G], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue"]]);
392
392
  export {
393
- X as default
393
+ Y as default
394
394
  };
@@ -1 +1 @@
1
- .nmorph-media-tile{position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;min-width:0;overflow:hidden;background:var(--nmorph-main-color);border:none;border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-media-tile.nmorph-media-tile--video{aspect-ratio:16/9}.nmorph-media-tile.nmorph-media-tile--fill{width:100%;height:100%;aspect-ratio:auto}.nmorph-media-tile .nmorph-media-tile__video{width:100%;height:100%;object-fit:cover}.nmorph-media-tile.nmorph-media-tile--contain .nmorph-media-tile__video{object-fit:contain}.nmorph-media-tile.nmorph-media-tile--mirrored .nmorph-media-tile__video{transform:scaleX(-1)}.nmorph-media-tile .nmorph-media-tile__fallback{display:flex;flex-direction:column;gap:var(--indentation-02);justify-content:center;align-items:center;width:100%;height:100%;padding:var(--indentation-04);color:var(--nmorph-text-color);text-align:center}.nmorph-media-tile .nmorph-media-tile__initials{display:flex;justify-content:center;align-items:center;width:72px;height:72px;color:var(--nmorph-focus-text-color);font-weight:var(--font-weight-bold);font-size:var(--nmorph-typography-title-large-font-size);background:var(--nmorph-accent-color);border-radius:var(--border-radius-circular)}.nmorph-media-tile .nmorph-media-tile__name,.nmorph-media-tile .nmorph-media-tile__error-text{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-media-tile .nmorph-media-tile__error-text{color:var(--nmorph-error-text-color);font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-media-tile .nmorph-media-tile__status{position:absolute;right:var(--indentation-03);bottom:var(--indentation-03);display:flex;gap:var(--indentation-02)}.nmorph-media-tile .nmorph-media-tile__status-item{color:var(--nmorph-text-color)}.nmorph-media-tile .nmorph-media-tile__status-item .nmorph-button__content{width:28px;min-width:28px;height:24px;min-height:24px;padding:0;color:currentColor;background:color-mix(in srgb,var(--nmorph-main-color) 86%,transparent);border-color:color-mix(in srgb,currentColor 35%,transparent);border-radius:var(--default-border-radius)}.nmorph-media-tile.nmorph-media-tile--selected{outline:2px solid var(--nmorph-accent-color)}.nmorph-media-tile.nmorph-media-tile--speaking{outline:3px solid var(--nmorph-success-color)}.nmorph-media-tile.nmorph-media-tile--error{outline:2px solid var(--nmorph-error-color)}.nmorph-media-tile.nmorph-media-tile--plain{border:var(--nmorph-plain-border);box-shadow:none}.nmorph-media-tile.nmorph-media-tile--screen-sharing{box-shadow:0 0 0 2px var(--nmorph-success-color)}
1
+ .nmorph-media-tile{position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;min-width:0;overflow:hidden;background:var(--nmorph-main-color);border:none;border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-media-tile.nmorph-media-tile--video{aspect-ratio:16/9}.nmorph-media-tile.nmorph-media-tile--fill{width:100%;height:100%;aspect-ratio:auto}.nmorph-media-tile .nmorph-media-tile__video{width:100%;height:100%;object-fit:cover}.nmorph-media-tile.nmorph-media-tile--contain .nmorph-media-tile__video{object-fit:contain}.nmorph-media-tile.nmorph-media-tile--mirrored .nmorph-media-tile__video{transform:scaleX(-1)}.nmorph-media-tile .nmorph-media-tile__fallback{display:flex;flex-direction:column;gap:var(--indentation-02);justify-content:center;align-items:center;width:100%;height:100%;padding:var(--indentation-04);color:var(--nmorph-text-color);text-align:center}.nmorph-media-tile .nmorph-media-tile__initials{display:flex;justify-content:center;align-items:center;width:72px;height:72px;color:var(--nmorph-focus-text-color);font-weight:var(--font-weight-bold);font-size:var(--nmorph-typography-title-large-font-size);background:var(--nmorph-accent-color);border-radius:var(--border-radius-circular)}.nmorph-media-tile .nmorph-media-tile__name,.nmorph-media-tile .nmorph-media-tile__error-text{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-media-tile .nmorph-media-tile__error-text{color:var(--nmorph-error-text-color);font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-media-tile .nmorph-media-tile__status{position:absolute;right:var(--indentation-03);bottom:var(--indentation-03);display:flex;gap:var(--indentation-02)}.nmorph-media-tile .nmorph-media-tile__status-item{color:var(--nmorph-text-color)}.nmorph-media-tile .nmorph-media-tile__status-item .nmorph-button__content{width:28px;min-width:28px;height:24px;min-height:24px;padding:0;color:currentColor;background:color-mix(in srgb,var(--nmorph-main-color) 86%,transparent);border-color:color-mix(in srgb,currentColor 35%,transparent);border-radius:var(--default-border-radius)}.nmorph-media-tile.nmorph-media-tile--selected{outline:2px solid var(--nmorph-accent-color)}.nmorph-media-tile.nmorph-media-tile--speaking{outline:3px solid var(--nmorph-success-text-color)}.nmorph-media-tile.nmorph-media-tile--error{outline:2px solid var(--nmorph-error-text-color)}.nmorph-media-tile.nmorph-media-tile--plain{border:var(--nmorph-plain-border);box-shadow:none}.nmorph-media-tile.nmorph-media-tile--screen-sharing{box-shadow:0 0 0 2px var(--nmorph-success-text-color)}
@@ -1 +1 @@
1
- .nmorph-preview-portal{display:contents}.nmorph-preview-portal .nmorph-preview-portal__content{--nmorph-private-preview-portal-content-width: min( calc(100vw - 96px) , 960px);--nmorph-private-preview-portal-content-height: min( calc(100vh - 180px) , 720px);position:absolute;top:50%;left:50%;display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-preview-portal-content-width);height:var(--nmorph-private-preview-portal-content-height);transform:translate(-50%,-50%);transition:var(--transition-04) opacity ease-in-out;pointer-events:none}.nmorph-preview-portal .nmorph-preview-portal__actions{position:absolute;bottom:-50px;left:50%;z-index:2;display:flex;height:0;transform:translate(-50%);transition:ease-in-out bottom var(--transition-03)}.nmorph-preview-portal .nmorph-button__content{box-shadow:none}.nmorph-preview-portal .nmorph-preview-portal__control-button{background:var(--nmorph-overlay-color);border-radius:4px}.nmorph-preview-portal .nmorph-preview-portal__control-button .nmorph-button__content,.nmorph-preview-portal .nmorph-preview-portal__control-button .nmorph-button__content:not(:disabled,[loading=true]):hover{color:var(--nmorph-contrast-text-color);background:transparent;border:0;box-shadow:none}.nmorph-preview-portal .nmorph-preview-portal__control-button .nmorph-button__content .nmorph-icon,.nmorph-preview-portal .nmorph-preview-portal__control-button .nmorph-button__content:not(:disabled,[loading=true]):hover .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-preview-portal .nmorph-preview-portal__left,.nmorph-preview-portal .nmorph-preview-portal__right{z-index:2}.nmorph-preview-portal .nmorph-preview-portal__left{position:absolute;top:50%;left:-100%;transform:rotate(90deg) translate(-50%);transition:ease-in-out left var(--transition-03)}.nmorph-preview-portal .nmorph-preview-portal__right{position:absolute;top:50%;right:-100%;transform:rotate(270deg) translate(50%);transition:ease-in-out right var(--transition-03)}.nmorph-preview-portal.nmorph-preview-portal--opened .nmorph-preview-portal__actions{bottom:50px}.nmorph-preview-portal.nmorph-preview-portal--opened{--nmorph-private-preview-portal-btn-margin: 20px}.nmorph-preview-portal.nmorph-preview-portal--opened .nmorph-preview-portal__left{left:var(--nmorph-private-preview-portal-btn-margin)}.nmorph-preview-portal.nmorph-preview-portal--opened .nmorph-preview-portal__right{right:var(--nmorph-private-preview-portal-btn-margin)}
1
+ .nmorph-preview-portal{display:contents}.nmorph-preview-portal .nmorph-preview-portal__content{--nmorph-private-preview-portal-content-width: min( calc(100vw - 96px) , 960px);--nmorph-private-preview-portal-content-height: min( calc(100vh - 180px) , 720px);position:absolute;top:50%;left:50%;display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-preview-portal-content-width);height:var(--nmorph-private-preview-portal-content-height);transform:translate(-50%,-50%);transition:var(--transition-04) opacity ease-in-out;pointer-events:none}.nmorph-preview-portal .nmorph-preview-portal__actions{position:absolute;bottom:-50px;left:50%;z-index:2;display:flex;height:0;transform:translate(-50%);transition:ease-in-out bottom var(--transition-03)}.nmorph-preview-portal .nmorph-button__content{box-shadow:none}.nmorph-preview-portal .nmorph-preview-portal__control-button{background:var(--nmorph-overlay-color);border-radius:4px}.nmorph-preview-portal .nmorph-preview-portal__control-button .nmorph-button__content,.nmorph-preview-portal .nmorph-preview-portal__control-button .nmorph-button__content:not(:disabled,[loading=true]):hover{color:var(--nmorph-white-color);background:transparent;border:0;box-shadow:none}.nmorph-preview-portal .nmorph-preview-portal__control-button .nmorph-button__content .nmorph-icon,.nmorph-preview-portal .nmorph-preview-portal__control-button .nmorph-button__content:not(:disabled,[loading=true]):hover .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-preview-portal .nmorph-preview-portal__left,.nmorph-preview-portal .nmorph-preview-portal__right{z-index:2}.nmorph-preview-portal .nmorph-preview-portal__left{position:absolute;top:50%;left:-100%;transform:rotate(90deg) translate(-50%);transition:ease-in-out left var(--transition-03)}.nmorph-preview-portal .nmorph-preview-portal__right{position:absolute;top:50%;right:-100%;transform:rotate(270deg) translate(50%);transition:ease-in-out right var(--transition-03)}.nmorph-preview-portal.nmorph-preview-portal--opened .nmorph-preview-portal__actions{bottom:50px}.nmorph-preview-portal.nmorph-preview-portal--opened{--nmorph-private-preview-portal-btn-margin: 20px}.nmorph-preview-portal.nmorph-preview-portal--opened .nmorph-preview-portal__left{left:var(--nmorph-private-preview-portal-btn-margin)}.nmorph-preview-portal.nmorph-preview-portal--opened .nmorph-preview-portal__right{right:var(--nmorph-private-preview-portal-btn-margin)}
@@ -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
  };
@@ -1,11 +1,13 @@
1
1
  import './NmorphPreviewPortal.css';
2
- import { defineComponent as l, computed as r } from "vue";
3
- import { createCssSizeVariables as u } from "../../../utils/common.js";
4
- import d from "../../others/nmorph-overlay/NmorphOverlay.vue.js";
5
- import m from "../../../assets/icons/chevron-down.svg.js";
6
- import f from "../../basic/nmorph-icon/NmorphIcon.vue.js";
7
- import h from "../../basic/nmorph-button/NmorphButton.vue.js";
8
- const w = /* @__PURE__ */ l({
2
+ import { defineComponent as u, computed as n } from "vue";
3
+ import { createCssSizeVariables as m } from "../../../utils/common.js";
4
+ import { useMergedAttrs as d } from "../../../utils/attrs.js";
5
+ import f from "../../others/nmorph-overlay/NmorphOverlay.vue.js";
6
+ import h from "../../../assets/icons/chevron-down.svg.js";
7
+ import c from "../../basic/nmorph-icon/NmorphIcon.vue.js";
8
+ import g from "../../basic/nmorph-button/NmorphButton.vue.js";
9
+ const _ = /* @__PURE__ */ u({
10
+ inheritAttrs: !1,
9
11
  __name: "NmorphPreviewPortal",
10
12
  props: {
11
13
  show: { type: Boolean, required: !0 },
@@ -23,31 +25,31 @@ const w = /* @__PURE__ */ l({
23
25
  showActionBar: { type: Boolean, required: !1, default: !1 }
24
26
  },
25
27
  emits: ["close", "previous", "next"],
26
- setup(o, { expose: n, emit: a }) {
27
- n();
28
- const e = o, i = a, p = r(() => [
28
+ setup(a, { expose: i, emit: s }) {
29
+ i();
30
+ const e = a, p = s, t = n(() => [
29
31
  "nmorph-preview-portal",
30
32
  e.rootClass,
31
33
  e.stateClass,
32
34
  e.show && "nmorph-preview-portal--opened"
33
- ]), s = r(
34
- () => u({
35
+ ]), r = n(
36
+ () => m({
35
37
  "--nmorph-private-preview-portal-btn-margin": e.navigationButtonMargin,
36
38
  "--nmorph-private-preview-portal-content-width": e.contentWidth,
37
39
  "--nmorph-private-preview-portal-content-height": e.contentHeight
38
40
  })
39
- ), t = { props: e, emit: i, rootClasses: p, portalStyle: s, get NmorphButton() {
40
- return h;
41
+ ), l = d(t, r), o = { props: e, emit: p, rootClasses: t, portalStyle: r, rootAttrs: l, get NmorphButton() {
42
+ return g;
41
43
  }, get NmorphIcon() {
42
- return f;
44
+ return c;
43
45
  }, get NmorphIconChevronDown() {
44
- return m;
46
+ return h;
45
47
  }, get NmorphOverlay() {
46
- return d;
48
+ return f;
47
49
  } };
48
- return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
50
+ return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
49
51
  }
50
52
  });
51
53
  export {
52
- w as default
54
+ _ as default
53
55
  };