@nmorph/nmorph-ui-kit 2.2.42 → 2.2.44

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