@nmorph/nmorph-ui-kit 2.2.50 → 2.2.52

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 (39) hide show
  1. package/dist/assets/icons/full-screen.svg.js +6 -6
  2. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
  3. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.js +84 -78
  4. package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
  5. package/dist/components/data/nmorph-file-card/NmorphFileCard.vue.js +125 -89
  6. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
  7. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +183 -225
  8. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.css +1 -0
  9. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +298 -0
  10. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue3.js +6 -0
  11. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.css +1 -0
  12. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +110 -0
  13. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue3.js +6 -0
  14. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.js +57 -54
  15. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -1
  16. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +227 -134
  17. package/dist/index.es.js +866 -863
  18. package/dist/index.umd.js +29 -29
  19. package/dist/outside-hooks/use-nmorph-theme.js +16 -16
  20. package/dist/package.json.js +1 -1
  21. package/dist/src/components/data/index.d.ts +2 -0
  22. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +1 -1
  23. package/dist/src/components/data/nmorph-file-card/types.d.ts +1 -1
  24. package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -3
  25. package/dist/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.d.ts +26 -0
  26. package/dist/src/components/data/nmorph-media-gallery/types.d.ts +34 -0
  27. package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +1 -1
  28. package/dist/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.d.ts +43 -0
  29. package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +9 -2
  30. package/dist/src/components/data/nmorph-video-preview/types.d.ts +6 -0
  31. package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -1
  32. package/dist/src/components/feedback/nmorph-drawer/NmorphDrawer.vue.d.ts +1 -1
  33. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +3 -3
  34. package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +2 -2
  35. package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +1 -1
  36. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +9 -9
  37. package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +1 -1
  38. package/dist/style.css +1 -1
  39. package/package.json +24 -23
@@ -1,35 +1,25 @@
1
1
  import './NmorphImagePreview.css';
2
- import { defineComponent as ce, ref as k, watch as S, computed as o, onBeforeUnmount as ge, openBlock as n, createElementBlock as c, Fragment as N, normalizeStyle as b, normalizeClass as Z, createElementVNode as h, renderList as U, withModifiers as fe, createVNode as i, unref as a, createSlots as B, withCtx as r, renderSlot as g, toDisplayString as pe, createCommentVNode as f, createBlock as $, Teleport as he, resolveDynamicComponent as j } from "vue";
3
- import { useModifiers as ye } from "../../../utils/create-modifiers.js";
4
- import { createCssSizeVariables as q } from "../../../utils/common.js";
5
- import _e from "../../../assets/icons/shrink.svg.js";
6
- import x from "../nmorph-image/NmorphImage.vue.js";
2
+ import { defineComponent as ue, ref as w, watch as $, computed as a, onBeforeUnmount as de, openBlock as u, createElementBlock as c, Fragment as L, normalizeStyle as H, normalizeClass as me, createElementVNode as I, renderList as R, withModifiers as ce, createVNode as v, unref as m, createSlots as b, withCtx as n, renderSlot as g, toDisplayString as ve, createCommentVNode as N, createBlock as _, resolveDynamicComponent as G } from "vue";
3
+ import { useModifiers as ge } from "../../../utils/create-modifiers.js";
4
+ import { createCssSizeVariables as fe } from "../../../utils/common.js";
5
+ import pe from "../nmorph-preview-portal/NmorphPreviewPortal.vue.js";
6
+ /* empty css */
7
+ import he from "../../../assets/icons/shrink.svg.js";
8
+ import S from "../nmorph-image/NmorphImage.vue.js";
7
9
  /* empty css */
8
- import we from "../../others/nmorph-overlay/NmorphOverlay.vue.js";
9
- /* empty css */
10
- import I from "../../basic/nmorph-button/NmorphButton.vue.js";
10
+ import ye from "../../../assets/icons/rotate-right.svg.js";
11
+ import we from "../../../assets/icons/rotate-left.svg.js";
12
+ import _e from "../../../assets/icons/zoom-in.svg.js";
13
+ import ke from "../../../assets/icons/zoom-out.svg.js";
14
+ import P from "../../basic/nmorph-button/NmorphButton.vue.js";
11
15
  /* empty css */
12
- import L from "../../basic/nmorph-icon/NmorphIcon.vue.js";
16
+ import O from "../../basic/nmorph-icon/NmorphIcon.vue.js";
13
17
  /* empty css */
14
- import J from "../../../assets/icons/chevron-down.svg.js";
15
- import ke from "../../../assets/icons/rotate-right.svg.js";
16
- import $e from "../../../assets/icons/rotate-left.svg.js";
17
- import Ie from "../../../assets/icons/zoom-in.svg.js";
18
- import Le from "../../../assets/icons/zoom-out.svg.js";
19
- import Ce from "../../../assets/icons/enlarge.svg.js";
20
- const Se = ["aria-label", "onClick"], Ne = {
18
+ import $e from "../../../assets/icons/enlarge.svg.js";
19
+ const Le = ["aria-label", "onClick"], Ie = {
21
20
  key: 0,
22
21
  class: "nmorph-image-preview__trigger-more"
23
- }, be = { class: "nmorph-image-preview__content" }, Be = {
24
- key: 0,
25
- class: "nmorph-image-preview__left"
26
- }, xe = {
27
- key: 1,
28
- class: "nmorph-image-preview__right"
29
- }, Te = {
30
- key: 2,
31
- class: "nmorph-image-preview__actions"
32
- }, Ve = { class: "nmorph-image-preview__action-element" }, We = /* @__PURE__ */ ce({
22
+ }, be = { class: "nmorph-image-preview__action-element" }, Pe = /* @__PURE__ */ ue({
33
23
  __name: "NmorphImagePreview",
34
24
  props: {
35
25
  modelValue: { type: Boolean, default: !1 },
@@ -53,284 +43,252 @@ const Se = ["aria-label", "onClick"], Ne = {
53
43
  triggerGap: { default: 8 }
54
44
  },
55
45
  emits: ["update:model-value"],
56
- setup(Q, { emit: W }) {
57
- const t = Q, d = k(t.modelValue);
58
- S(
46
+ setup(Z, { emit: U }) {
47
+ const t = Z, i = w(t.modelValue);
48
+ $(
59
49
  () => t.modelValue,
60
- (e) => d.value = e
50
+ (e) => i.value = e
61
51
  );
62
- const s = o(() => Array.isArray(t.src) ? t.src : [t.src]), y = (e) => {
63
- const u = s.value.length - 1;
64
- return u < 0 || e < 0 ? 0 : e > u ? u : e;
65
- }, p = k(y(t.initialIndex)), _ = o(() => y(p.value)), T = o(() => s.value[_.value] || ""), C = o(() => t.triggerView === "gallery" && s.value.length > 1), X = o(() => !t.triggerLimit || t.triggerLimit < 1 ? s.value.length : Math.min(Math.floor(t.triggerLimit), s.value.length)), w = o(
66
- () => s.value.slice(0, X.value).map((e, u) => ({
67
- index: u,
52
+ const r = a(() => Array.isArray(t.src) ? t.src : [t.src]), p = (e) => {
53
+ const l = r.value.length - 1;
54
+ return l < 0 || e < 0 ? 0 : e > l ? l : e;
55
+ }, f = w(p(t.initialIndex)), h = a(() => p(f.value)), C = a(() => r.value[h.value] || ""), k = a(() => t.triggerView === "gallery" && r.value.length > 1), j = a(() => !t.triggerLimit || t.triggerLimit < 1 ? r.value.length : Math.min(Math.floor(t.triggerLimit), r.value.length)), y = a(
56
+ () => r.value.slice(0, j.value).map((e, l) => ({
57
+ index: l,
68
58
  src: e
69
59
  }))
70
- ), V = o(() => s.value.length - w.value.length), Y = o(() => w.value[w.value.length - 1]?.index ?? -1), z = o(
71
- () => ye({
72
- "nmorph-image-preview": [d.value && "opened", C.value && "gallery-trigger"]
60
+ ), B = a(() => r.value.length - y.value.length), q = a(() => y.value[y.value.length - 1]?.index ?? -1), x = a(
61
+ () => ge({
62
+ "nmorph-image-preview": [i.value && "opened", k.value && "gallery-trigger"]
73
63
  })
74
- ), l = k(1);
75
- S(
76
- () => [t.initialIndex, s.value.length],
64
+ ), o = w(1);
65
+ $(
66
+ () => [t.initialIndex, r.value.length],
77
67
  () => {
78
- p.value = y(t.initialIndex);
68
+ f.value = p(t.initialIndex);
79
69
  }
80
70
  );
81
- const A = (e) => {
82
- p.value = y(e), d.value = !0, O("update:model-value", d.value);
71
+ const V = (e) => {
72
+ f.value = p(e), i.value = !0, D("update:model-value", i.value);
73
+ }, J = () => {
74
+ k.value || V(h.value);
75
+ }, Q = () => {
76
+ i.value = !1, D("update:model-value", i.value);
77
+ }, W = () => {
78
+ d.value = d.value + 90, d.value >= 360 && (d.value = 0);
79
+ }, X = () => {
80
+ d.value = d.value - 90, d.value <= -360 && (d.value = 0);
81
+ }, Y = () => {
82
+ o.value < t.maxScaleLevel && (o.value += t.scaleStep), o.value = parseFloat(o.value.toFixed(3));
83
83
  }, ee = () => {
84
- C.value || A(_.value);
85
- }, K = () => {
86
- d.value = !1, O("update:model-value", d.value);
87
- }, te = () => {
88
- v.value = v.value + 90, v.value >= 360 && (v.value = 0);
84
+ o.value > t.minScaleLevel && (o.value -= t.scaleStep), o.value = parseFloat(o.value.toFixed(3));
85
+ }, te = a(() => o.value < 1), ae = () => {
86
+ o.value = 1;
89
87
  }, oe = () => {
90
- v.value = v.value - 90, v.value <= -360 && (v.value = 0);
91
- }, re = () => {
92
- l.value < t.maxScaleLevel && (l.value += t.scaleStep), l.value = parseFloat(l.value.toFixed(3));
93
- }, ae = () => {
94
- l.value > t.minScaleLevel && (l.value -= t.scaleStep), l.value = parseFloat(l.value.toFixed(3));
95
- }, le = o(() => l.value < 1), ne = () => {
96
- l.value = 1;
97
- }, ie = () => {
98
- l.value = 1;
99
- }, v = k(0), M = () => {
100
- const e = s.value.length;
88
+ o.value = 1;
89
+ }, d = w(0), z = () => {
90
+ const e = r.value.length;
101
91
  if (!e) return;
102
- const u = _.value - 1;
103
- p.value = u < 0 ? e - 1 : u;
104
- }, D = () => {
105
- const e = s.value.length;
92
+ const l = h.value - 1;
93
+ f.value = l < 0 ? e - 1 : l;
94
+ }, T = () => {
95
+ const e = r.value.length;
106
96
  if (!e) return;
107
- const u = _.value + 1;
108
- p.value = u > e - 1 ? 0 : u;
109
- }, E = (e) => {
110
- !d.value || s.value.length < 2 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || (e.key === "ArrowLeft" && (e.preventDefault(), M()), e.key === "ArrowRight" && (e.preventDefault(), D()));
111
- }, se = () => {
112
- typeof document > "u" || document.addEventListener("keydown", E);
113
- }, F = () => {
114
- typeof document > "u" || document.removeEventListener("keydown", E);
97
+ const l = h.value + 1;
98
+ f.value = l > e - 1 ? 0 : l;
99
+ }, A = (e) => {
100
+ !i.value || r.value.length < 2 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || (e.key === "ArrowLeft" && (e.preventDefault(), z()), e.key === "ArrowRight" && (e.preventDefault(), T()));
101
+ }, re = () => {
102
+ typeof document > "u" || document.addEventListener("keydown", A);
103
+ }, M = () => {
104
+ typeof document > "u" || document.removeEventListener("keydown", A);
115
105
  };
116
- S(
117
- d,
106
+ $(
107
+ i,
118
108
  (e) => {
119
- e ? se() : F();
109
+ e ? re() : M();
120
110
  },
121
111
  { immediate: !0 }
122
- ), ge(F);
123
- const H = o(() => {
112
+ ), de(M);
113
+ const K = a(() => {
124
114
  let e = {
125
- icon: _e,
126
- handler: ie
115
+ icon: he,
116
+ handler: oe
127
117
  };
128
- return le.value && (e = {
129
- icon: Ce,
130
- handler: ne
118
+ return te.value && (e = {
119
+ icon: $e,
120
+ handler: ae
131
121
  }), e;
132
- }), ue = [
122
+ }), le = [
133
123
  {
134
- icon: ke,
135
- handler: te
124
+ icon: ye,
125
+ handler: W
136
126
  },
137
127
  {
138
- icon: $e,
139
- handler: oe
128
+ icon: we,
129
+ handler: X
140
130
  },
141
131
  {
142
- icon: Ie,
143
- handler: re
132
+ icon: _e,
133
+ handler: Y
144
134
  },
145
135
  {
146
- icon: Le,
147
- handler: ae
136
+ icon: ke,
137
+ handler: ee
148
138
  }
149
- ], O = W, de = o(() => s.value.length > 1), R = o(() => t.showNavigationButtons && de.value), me = o(
150
- () => q({
139
+ ], D = U, ne = a(() => r.value.length > 1), ie = a(() => t.showNavigationButtons && ne.value), se = a(
140
+ () => fe({
151
141
  "--width": t.width,
152
142
  "--height": t.height,
153
143
  "--nmorph-image-preview-radius": t.radius,
154
144
  "--nmorph-image-preview-trigger-gap": t.triggerGap
155
145
  })
156
- ), ve = o(
157
- () => q({
158
- "--nmorph-image-preview-btn-margin": t.navigationButtonMargin
159
- })
160
- ), G = (e) => t.alt ? `${t.alt} ${e + 1}` : `Image ${e + 1}`;
161
- return (e, u) => (n(), c(N, null, [
162
- t.showTrigger ? (n(), c("div", {
146
+ ), E = (e) => t.alt ? `${t.alt} ${e + 1}` : `Image ${e + 1}`;
147
+ return (e, l) => (u(), c(L, null, [
148
+ t.showTrigger ? (u(), c("div", {
163
149
  key: 0,
164
- class: Z(z.value),
165
- style: b(me.value)
150
+ class: me(x.value),
151
+ style: H(se.value)
166
152
  }, [
167
- h("div", {
153
+ I("div", {
168
154
  class: "nmorph-image-preview__trigger",
169
- onClick: ee
155
+ onClick: J
170
156
  }, [
171
- C.value ? (n(!0), c(N, { key: 0 }, U(w.value, (m) => (n(), c("button", {
172
- key: `${m.src}-${m.index}`,
157
+ k.value ? (u(!0), c(L, { key: 0 }, R(y.value, (s) => (u(), c("button", {
158
+ key: `${s.src}-${s.index}`,
173
159
  type: "button",
174
160
  class: "nmorph-image-preview__trigger-item",
175
- "aria-label": G(m.index),
176
- onClick: fe((P) => A(m.index), ["stop"])
161
+ "aria-label": E(s.index),
162
+ onClick: ce((F) => V(s.index), ["stop"])
177
163
  }, [
178
- i(a(x), {
179
- src: m.src,
180
- alt: G(m.index),
164
+ v(m(S), {
165
+ src: s.src,
166
+ alt: E(s.index),
181
167
  fit: t.fit,
182
168
  "frame-border": 0
183
- }, B({ _: 2 }, [
169
+ }, b({ _: 2 }, [
184
170
  e.$slots.loading ? {
185
171
  name: "loading",
186
- fn: r(() => [
172
+ fn: n(() => [
187
173
  g(e.$slots, "loading")
188
174
  ]),
189
175
  key: "0"
190
176
  } : void 0,
191
177
  e.$slots.error ? {
192
178
  name: "error",
193
- fn: r(() => [
179
+ fn: n(() => [
194
180
  g(e.$slots, "error")
195
181
  ]),
196
182
  key: "1"
197
183
  } : void 0
198
184
  ]), 1032, ["src", "alt", "fit"]),
199
- m.index === Y.value && V.value > 0 ? (n(), c("span", Ne, " +" + pe(V.value), 1)) : f("", !0)
200
- ], 8, Se))), 128)) : (n(), $(a(x), {
185
+ s.index === q.value && B.value > 0 ? (u(), c("span", Ie, " +" + ve(B.value), 1)) : N("", !0)
186
+ ], 8, Le))), 128)) : (u(), _(m(S), {
201
187
  key: 1,
202
- src: T.value,
188
+ src: C.value,
203
189
  alt: t.alt,
204
190
  fit: t.fit,
205
191
  "frame-border": 0
206
- }, B({ _: 2 }, [
192
+ }, b({ _: 2 }, [
207
193
  e.$slots.loading ? {
208
194
  name: "loading",
209
- fn: r(() => [
195
+ fn: n(() => [
210
196
  g(e.$slots, "loading")
211
197
  ]),
212
198
  key: "0"
213
199
  } : void 0,
214
200
  e.$slots.error ? {
215
201
  name: "error",
216
- fn: r(() => [
202
+ fn: n(() => [
217
203
  g(e.$slots, "error")
218
204
  ]),
219
205
  key: "1"
220
206
  } : void 0
221
207
  ]), 1032, ["src", "alt", "fit"]))
222
208
  ])
223
- ], 6)) : f("", !0),
224
- d.value ? (n(), $(he, {
209
+ ], 6)) : N("", !0),
210
+ i.value ? (u(), _(pe, {
225
211
  key: 1,
226
- to: "body"
227
- }, [
228
- h("div", {
229
- class: Z(["nmorph-image-preview__portal", z.value]),
230
- style: b(ve.value)
231
- }, [
232
- i(a(we), {
233
- show: d.value,
234
- "z-index": t.zIndex,
235
- "disabled-teleport": "",
236
- onOnOutsideClick: K,
237
- onOnEscapeKeydown: K
238
- }, {
239
- default: r(() => [
240
- h("div", be, [
241
- i(a(x), {
242
- src: T.value,
243
- alt: t.alt,
244
- fit: "contain",
245
- "frame-border": 0,
246
- style: b({ transform: `rotate(${v.value}deg) scale(${l.value})` })
247
- }, B({ _: 2 }, [
248
- e.$slots.loading ? {
249
- name: "loading",
250
- fn: r(() => [
251
- g(e.$slots, "loading")
252
- ]),
253
- key: "0"
254
- } : void 0,
255
- e.$slots.error ? {
256
- name: "error",
257
- fn: r(() => [
258
- g(e.$slots, "error")
259
- ]),
260
- key: "1"
261
- } : void 0
262
- ]), 1032, ["src", "alt", "style"])
263
- ]),
264
- R.value ? (n(), c("div", Be, [
265
- i(a(I), { onClick: M }, {
266
- default: r(() => [
267
- i(a(L), null, {
268
- default: r(() => [
269
- i(a(J))
270
- ]),
271
- _: 1
272
- })
212
+ show: i.value,
213
+ "z-index": t.zIndex,
214
+ "root-class": "nmorph-image-preview__portal",
215
+ "state-class": x.value,
216
+ "content-class": "nmorph-image-preview__content",
217
+ "left-class": "nmorph-image-preview__left",
218
+ "right-class": "nmorph-image-preview__right",
219
+ "actions-class": "nmorph-image-preview__actions",
220
+ "navigation-button-margin": t.navigationButtonMargin,
221
+ "show-navigation": ie.value,
222
+ "show-action-bar": t.showActionBar,
223
+ onClose: Q,
224
+ onPrevious: z,
225
+ onNext: T
226
+ }, {
227
+ actions: n(() => [
228
+ (u(), c(L, null, R(le, (s, F) => I("div", {
229
+ key: F,
230
+ class: "nmorph-image-preview__action-element"
231
+ }, [
232
+ v(m(P), {
233
+ onClick: s.handler
234
+ }, {
235
+ default: n(() => [
236
+ v(m(O), null, {
237
+ default: n(() => [
238
+ (u(), _(G(s.icon)))
273
239
  ]),
274
- _: 1
275
- })
276
- ])) : f("", !0),
277
- R.value ? (n(), c("div", xe, [
278
- i(a(I), { onClick: D }, {
279
- default: r(() => [
280
- i(a(L), null, {
281
- default: r(() => [
282
- i(a(J))
283
- ]),
284
- _: 1
285
- })
240
+ _: 2
241
+ }, 1024)
242
+ ]),
243
+ _: 2
244
+ }, 1032, ["onClick"])
245
+ ])), 64)),
246
+ I("div", be, [
247
+ v(m(P), {
248
+ disabled: o.value === 1,
249
+ onClick: K.value.handler
250
+ }, {
251
+ default: n(() => [
252
+ v(m(O), null, {
253
+ default: n(() => [
254
+ (u(), _(G(K.value.icon)))
286
255
  ]),
287
256
  _: 1
288
257
  })
289
- ])) : f("", !0),
290
- t.showActionBar ? (n(), c("div", Te, [
291
- (n(), c(N, null, U(ue, (m, P) => h("div", {
292
- key: P,
293
- class: "nmorph-image-preview__action-element"
294
- }, [
295
- i(a(I), {
296
- onClick: m.handler
297
- }, {
298
- default: r(() => [
299
- i(a(L), null, {
300
- default: r(() => [
301
- (n(), $(j(m.icon)))
302
- ]),
303
- _: 2
304
- }, 1024)
305
- ]),
306
- _: 2
307
- }, 1032, ["onClick"])
308
- ])), 64)),
309
- h("div", Ve, [
310
- i(a(I), {
311
- disabled: l.value === 1,
312
- onClick: H.value.handler
313
- }, {
314
- default: r(() => [
315
- i(a(L), null, {
316
- default: r(() => [
317
- (n(), $(j(H.value.icon)))
318
- ]),
319
- _: 1
320
- })
321
- ]),
322
- _: 1
323
- }, 8, ["disabled", "onClick"])
324
- ])
325
- ])) : f("", !0)
326
- ]),
327
- _: 3
328
- }, 8, ["show", "z-index"])
329
- ], 6)
330
- ])) : f("", !0)
258
+ ]),
259
+ _: 1
260
+ }, 8, ["disabled", "onClick"])
261
+ ])
262
+ ]),
263
+ default: n(() => [
264
+ v(m(S), {
265
+ src: C.value,
266
+ alt: t.alt,
267
+ fit: "contain",
268
+ "frame-border": 0,
269
+ style: H({ transform: `rotate(${d.value}deg) scale(${o.value})` })
270
+ }, b({ _: 2 }, [
271
+ e.$slots.loading ? {
272
+ name: "loading",
273
+ fn: n(() => [
274
+ g(e.$slots, "loading")
275
+ ]),
276
+ key: "0"
277
+ } : void 0,
278
+ e.$slots.error ? {
279
+ name: "error",
280
+ fn: n(() => [
281
+ g(e.$slots, "error")
282
+ ]),
283
+ key: "1"
284
+ } : void 0
285
+ ]), 1032, ["src", "alt", "style"])
286
+ ]),
287
+ _: 3
288
+ }, 8, ["show", "z-index", "state-class", "navigation-button-margin", "show-navigation", "show-action-bar"])) : N("", !0)
331
289
  ], 64));
332
290
  }
333
291
  });
334
292
  export {
335
- We as default
293
+ Pe as default
336
294
  };
@@ -0,0 +1 @@
1
+ .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__play{position:absolute;top:50%;left:50%;z-index:1;display:inline-flex;justify-content:center;align-items:center;width:54px;height:54px;padding:0;color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0;border-radius:var(--border-radius-circular);transform:translate(-50%,-50%);cursor:pointer;pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__play .nmorph-icon{--nmorph-icon-color: var(--nmorph-contrast-text-color);--color: var(--nmorph-contrast-text-color)}.nmorph-media-gallery .nmorph-media-gallery__play:hover{background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-media-gallery.nmorph-media-gallery--video-playing .nmorph-media-gallery__play{opacity:.72}.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}