@nmorph/nmorph-ui-kit 3.0.4 → 3.0.5

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 (50) hide show
  1. package/dist/assets/icons/chevron-right.svg.js +2 -2
  2. package/dist/assets/icons/hand.svg.js +10 -28
  3. package/dist/assets/icons/mic.svg.js +6 -6
  4. package/dist/assets/icons/mute.svg.js +6 -6
  5. package/dist/assets/icons/pin.svg.js +5 -5
  6. package/dist/assets/icons/video-camera-off.svg.js +6 -6
  7. package/dist/components/basic/nmorph-scroll/NmorphScroll.css +1 -1
  8. package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +25 -20
  9. package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
  10. package/dist/components/data/nmorph-card/NmorphCard.vue2.js +19 -17
  11. package/dist/components/data/nmorph-carousel/NmorphCarousel.css +1 -1
  12. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +10 -10
  13. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +23 -20
  14. package/dist/components/data/nmorph-file-card/NmorphFileCard.vue2.js +7 -7
  15. package/dist/components/data/nmorph-image/NmorphImage.vue2.js +1 -1
  16. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.css +1 -1
  17. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +77 -82
  18. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +56 -34
  19. package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +87 -91
  20. package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +71 -44
  21. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +4 -4
  22. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue2.js +25 -25
  23. package/dist/components/feedback/nmorph-guide/NmorphGuide.vue2.js +66 -61
  24. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +25 -23
  25. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -1
  26. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue.js +88 -48
  27. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +75 -59
  28. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
  29. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -1
  30. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +128 -95
  31. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +73 -71
  32. package/dist/components/navigation/nmorph-stepper/NmorphStepper.css +1 -1
  33. package/dist/components/navigation/nmorph-stepper/NmorphStepper.vue.js +49 -26
  34. package/dist/index.umd.js +17 -17
  35. package/dist/package.json.js +1 -1
  36. package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +1 -0
  37. package/dist/src/components/basic/nmorph-scroll/types.d.ts +1 -0
  38. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +1 -0
  39. package/dist/src/components/data/nmorph-card/types.d.ts +1 -0
  40. package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +2 -1
  41. package/dist/src/components/data/nmorph-media-tile/types.d.ts +1 -1
  42. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -0
  43. package/dist/src/components/data/nmorph-pagination/types.d.ts +1 -0
  44. package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +2 -0
  45. package/dist/src/components/feedback/nmorph-guide/types.d.ts +4 -0
  46. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -0
  47. package/dist/src/components/feedback/nmorph-tooltip/types.d.ts +2 -0
  48. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +10 -2
  49. package/dist/style.css +1 -1
  50. package/package.json +1 -1
@@ -14,8 +14,8 @@ function l(c, e) {
14
14
  )
15
15
  ])]);
16
16
  }
17
- const d = { render: l };
17
+ const s = { render: l };
18
18
  export {
19
- d as default,
19
+ s as default,
20
20
  l as render
21
21
  };
@@ -1,33 +1,15 @@
1
- import { openBlock as n, createElementBlock as r, createElementVNode as o } from "vue";
2
- const t = {
1
+ import { openBlock as t, createElementBlock as o, createElementVNode as r } from "vue";
2
+ const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  viewBox: "0 0 1024 1024"
5
5
  };
6
- function l(s, e) {
7
- return n(), r("svg", t, [...e[0] || (e[0] = [
8
- o(
6
+ function c(l, e) {
7
+ return t(), o("svg", n, [...e[0] || (e[0] = [
8
+ r(
9
9
  "path",
10
10
  {
11
- fill: "none",
12
- stroke: "currentColor",
13
- "stroke-linecap": "round",
14
- "stroke-linejoin": "round",
15
- "stroke-width": "56",
16
- d: "M320 704V320a64 64 0 0 1 128 0v200M448 520V192a64 64 0 0 1 128 0v288M576 480V288a64 64 0 0 1 128 0v224"
17
- },
18
- null,
19
- -1
20
- /* CACHED */
21
- ),
22
- o(
23
- "path",
24
- {
25
- fill: "none",
26
- stroke: "currentColor",
27
- "stroke-linecap": "round",
28
- "stroke-linejoin": "round",
29
- "stroke-width": "56",
30
- d: "M704 512V384a64 64 0 0 1 128 0v280c0 159.04-128.96 288-288 288h-88c-84.544 0-164.8-37.12-219.52-101.504L106.24 697.344a64 64 0 0 1 97.52-82.88L320 751.104M448 520v88M576 480v128M704 512v112"
11
+ fill: "currentColor",
12
+ d: "M360 140c0-36.45 29.55-66 66-66s66 29.55 66 66v420h32V86c0-36.45 29.55-66 66-66s66 29.55 66 66v474h32V160c0-36.45 29.55-66 66-66s66 29.55 66 66v424h30V256c0-36.45 29.55-66 66-66s66 29.55 66 66v444c0 167.9-136.1 304-304 304h-82c-98.69 0-190.2-51.5-241.34-135.92l-244.93-233.2a70 70 0 0 1 120.06-71.76L360 780z"
31
13
  },
32
14
  null,
33
15
  -1
@@ -35,8 +17,8 @@ function l(s, e) {
35
17
  )
36
18
  ])]);
37
19
  }
38
- const i = { render: l };
20
+ const d = { render: c };
39
21
  export {
40
- i as default,
41
- l as render
22
+ d as default,
23
+ c as render
42
24
  };
@@ -1,10 +1,10 @@
1
- import { openBlock as a, createElementBlock as e, createElementVNode as t } from "vue";
1
+ import { openBlock as h, createElementBlock as e, createElementVNode as t } from "vue";
2
2
  const o = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  viewBox: "0 0 1024 1024"
5
5
  };
6
- function n(r, h) {
7
- return a(), e("svg", o, [...h[0] || (h[0] = [
6
+ function v(n, a) {
7
+ return h(), e("svg", o, [...a[0] || (a[0] = [
8
8
  t(
9
9
  "path",
10
10
  { d: "M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z" },
@@ -14,8 +14,8 @@ function n(r, h) {
14
14
  )
15
15
  ])]);
16
16
  }
17
- const c = { render: n };
17
+ const l = { render: v };
18
18
  export {
19
- c as default,
20
- n as render
19
+ l as default,
20
+ v as render
21
21
  };
@@ -1,10 +1,10 @@
1
- import { openBlock as a, createElementBlock as l, createElementVNode as t } from "vue";
2
- const n = {
1
+ import { openBlock as a, createElementBlock as o, createElementVNode as t } from "vue";
2
+ const l = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  viewBox: "0 0 1024 1024"
5
5
  };
6
- function o(r, e) {
7
- return a(), l("svg", n, [...e[0] || (e[0] = [
6
+ function n(r, e) {
7
+ return a(), o("svg", l, [...e[0] || (e[0] = [
8
8
  t(
9
9
  "path",
10
10
  { d: "m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z" },
@@ -21,8 +21,8 @@ function o(r, e) {
21
21
  )
22
22
  ])]);
23
23
  }
24
- const c = { render: o };
24
+ const c = { render: n };
25
25
  export {
26
26
  c as default,
27
- o as render
27
+ n as render
28
28
  };
@@ -1,11 +1,11 @@
1
- import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
1
+ import { openBlock as t, createElementBlock as n, createElementVNode as o } from "vue";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  viewBox: "0 0 24 24"
5
5
  };
6
6
  function l(a, e) {
7
- return t(), o("svg", r, [...e[0] || (e[0] = [
8
- n(
7
+ return t(), n("svg", r, [...e[0] || (e[0] = [
8
+ o(
9
9
  "path",
10
10
  { d: "M16 2H8a1 1 0 0 0 0 2h1v5.59l-2.71 2.7A1 1 0 0 0 7 14h4v7a1 1 0 1 0 2 0v-7h4a1 1 0 0 0 .71-1.71L15 9.59V4h1a1 1 0 1 0 0-2m-2.71 8.71 1.3 1.29H9.41l1.3-1.29A1 1 0 0 0 11 10V4h2v6a1 1 0 0 0 .29.71" },
11
11
  null,
@@ -14,8 +14,8 @@ function l(a, e) {
14
14
  )
15
15
  ])]);
16
16
  }
17
- const c = { render: l };
17
+ const s = { render: l };
18
18
  export {
19
- c as default,
19
+ s as default,
20
20
  l as render
21
21
  };
@@ -1,10 +1,10 @@
1
- import { openBlock as o, createElementBlock as a, createElementVNode as t } from "vue";
2
- const l = {
1
+ import { openBlock as o, createElementBlock as n, createElementVNode as t } from "vue";
2
+ const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  viewBox: "0 0 1024 1024"
5
5
  };
6
- function n(r, e) {
7
- return o(), a("svg", l, [...e[0] || (e[0] = [
6
+ function a(l, e) {
7
+ return o(), n("svg", r, [...e[0] || (e[0] = [
8
8
  t(
9
9
  "path",
10
10
  { d: "M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z" },
@@ -21,8 +21,8 @@ function n(r, e) {
21
21
  )
22
22
  ])]);
23
23
  }
24
- const d = { render: n };
24
+ const d = { render: a };
25
25
  export {
26
26
  d as default,
27
- n as render
27
+ a as render
28
28
  };
@@ -1 +1 @@
1
- .nmorph-scroll{--nmorph-private-scroll-thumb-color: var(--nmorph-scroll-thumb-color, var(--nmorph-text-color));position:relative;overflow:hidden;color-scheme:var(--nmorph-scroll-color-scheme, light)}.nmorph-scroll__viewport{display:inherit;flex-direction:inherit;flex-wrap:inherit;grid-auto-flow:inherit;grid-template-columns:inherit;grid-template-rows:inherit;gap:inherit;justify-content:inherit;align-content:inherit;align-items:inherit;box-sizing:border-box;width:100%;height:100%;color-scheme:inherit;scrollbar-width:none;-ms-overflow-style:none}.nmorph-scroll__viewport::-webkit-scrollbar{display:none;width:0;height:0;background:transparent}.nmorph-scroll__bar{position:absolute;z-index:1;background:transparent;border-radius:var(--border-radius-40);box-shadow:var(--nmorph-shadow-inset);opacity:.78;transition:opacity ease-in-out .16s,background-color ease-in-out .16s;touch-action:none}.nmorph-scroll__bar--vertical{top:0;right:0;width:var(--nmorph-private-scroll-bar-width)}.nmorph-scroll__bar--horizontal{right:0;bottom:0;left:0;height:var(--nmorph-private-scroll-bar-height)}.nmorph-scroll__thumb{position:absolute;top:0;left:0;background-color:var(--nmorph-private-scroll-thumb-color);border-radius:var(--border-radius-40);cursor:pointer;transition:background-color ease-in-out .16s;touch-action:none}.nmorph-scroll__thumb--vertical{width:100%}.nmorph-scroll__thumb--horizontal{height:100%}.nmorph-scroll--show-bars .nmorph-scroll__bar,.nmorph-scroll__bar:hover{opacity:1}.nmorph-scroll--dragging .nmorph-scroll__thumb{cursor:grabbing}.nmorph-scroll::-webkit-scrollbar{width:var(--nmorph-private-scroll-bar-width);height:var(--nmorph-private-scroll-bar-height);background-color:transparent;cursor:pointer;transition:width ease-in-out .2s}.nmorph-scroll::-webkit-scrollbar-button,.nmorph-scroll::-webkit-scrollbar-button:single-button,.nmorph-scroll::-webkit-scrollbar-button:double-button,.nmorph-scroll::-webkit-scrollbar-button:vertical:start:decrement,.nmorph-scroll::-webkit-scrollbar-button:vertical:end:increment,.nmorph-scroll::-webkit-scrollbar-button:horizontal:start:decrement,.nmorph-scroll::-webkit-scrollbar-button:horizontal:end:increment{display:none!important;width:0!important;min-width:0!important;max-width:0!important;height:0!important;min-height:0!important;max-height:0!important;background:transparent!important;background-image:none!important;border:0!important;appearance:none}.nmorph-scroll::-webkit-scrollbar-track{background:transparent;border-radius:var(--border-radius-40);box-shadow:var(--nmorph-shadow-inset)}.nmorph-scroll::-webkit-scrollbar-thumb{background-color:var(--nmorph-private-scroll-thumb-color);border-radius:var(--border-radius-40)}.nmorph-scroll::-webkit-scrollbar-corner{background-color:transparent}
1
+ .nmorph-scroll{--nmorph-private-scroll-thumb-color: var(--nmorph-scroll-thumb-color, var(--nmorph-text-color));position:relative;overflow:hidden;color-scheme:var(--nmorph-scroll-color-scheme, light)}.nmorph-scroll__viewport{display:inherit;flex-direction:inherit;flex-wrap:inherit;grid-auto-flow:inherit;grid-template-columns:inherit;grid-template-rows:inherit;gap:var(--nmorph-private-scroll-gap, inherit);justify-content:inherit;align-content:inherit;align-items:inherit;box-sizing:border-box;width:100%;height:100%;color-scheme:inherit;scrollbar-width:none;-ms-overflow-style:none}.nmorph-scroll__viewport::-webkit-scrollbar{display:none;width:0;height:0;background:transparent}.nmorph-scroll__bar{position:absolute;z-index:1;background:transparent;border-radius:var(--border-radius-40);box-shadow:var(--nmorph-shadow-inset);opacity:.78;transition:opacity ease-in-out .16s,background-color ease-in-out .16s;touch-action:none}.nmorph-scroll__bar--vertical{top:0;right:0;width:var(--nmorph-private-scroll-bar-width)}.nmorph-scroll__bar--horizontal{right:0;bottom:0;left:0;height:var(--nmorph-private-scroll-bar-height)}.nmorph-scroll__thumb{position:absolute;top:0;left:0;background-color:var(--nmorph-private-scroll-thumb-color);border-radius:var(--border-radius-40);cursor:pointer;transition:background-color ease-in-out .16s;touch-action:none}.nmorph-scroll__thumb--vertical{width:100%}.nmorph-scroll__thumb--horizontal{height:100%}.nmorph-scroll--show-bars .nmorph-scroll__bar,.nmorph-scroll__bar:hover{opacity:1}.nmorph-scroll--dragging .nmorph-scroll__thumb{cursor:grabbing}.nmorph-scroll::-webkit-scrollbar{width:var(--nmorph-private-scroll-bar-width);height:var(--nmorph-private-scroll-bar-height);background-color:transparent;cursor:pointer;transition:width ease-in-out .2s}.nmorph-scroll::-webkit-scrollbar-button,.nmorph-scroll::-webkit-scrollbar-button:single-button,.nmorph-scroll::-webkit-scrollbar-button:double-button,.nmorph-scroll::-webkit-scrollbar-button:vertical:start:decrement,.nmorph-scroll::-webkit-scrollbar-button:vertical:end:increment,.nmorph-scroll::-webkit-scrollbar-button:horizontal:start:decrement,.nmorph-scroll::-webkit-scrollbar-button:horizontal:end:increment{display:none!important;width:0!important;min-width:0!important;max-width:0!important;height:0!important;min-height:0!important;max-height:0!important;background:transparent!important;background-image:none!important;border:0!important;appearance:none}.nmorph-scroll::-webkit-scrollbar-track{background:transparent;border-radius:var(--border-radius-40);box-shadow:var(--nmorph-shadow-inset)}.nmorph-scroll::-webkit-scrollbar-thumb{background-color:var(--nmorph-private-scroll-thumb-color);border-radius:var(--border-radius-40)}.nmorph-scroll::-webkit-scrollbar-corner{background-color:transparent}
@@ -1,11 +1,13 @@
1
1
  import './NmorphScroll.css';
2
2
  import { defineComponent as Te, ref as p, computed as n, inject as Me, onUnmounted as We, onMounted as Ee, watch as de, nextTick as Oe } from "vue";
3
3
  import { useModifiers as Le } from "../../../utils/create-modifiers.js";
4
- const qe = /* @__PURE__ */ Te({
4
+ import { createCssSizeVariables as Re } from "../../../utils/common.js";
5
+ const Ce = /* @__PURE__ */ Te({
5
6
  __name: "NmorphScroll",
6
7
  props: {
7
8
  height: { type: String, required: !1, default: "100%" },
8
9
  maxHeight: { type: String, required: !1, default: "none" },
10
+ gap: { type: [Number, String], required: !1, default: void 0 },
9
11
  modelValue: { type: Object, required: !1, default: () => ({
10
12
  x: 0,
11
13
  y: 0
@@ -22,7 +24,7 @@ const qe = /* @__PURE__ */ Te({
22
24
  },
23
25
  emits: ["on-scroll", "update:model-value", "on-scroll-end"],
24
26
  setup(he, { expose: pe, emit: fe }) {
25
- const o = he, O = p(null), a = p(null), N = n(() => o.scrollYProp), U = n(() => o.scrollXProp), f = p(!1), m = p(!1), s = p({
27
+ const o = he, O = p(null), a = p(null), $ = n(() => o.scrollYProp), U = n(() => o.scrollXProp), f = p(!1), m = p(!1), s = p({
26
28
  clientWidth: 0,
27
29
  clientHeight: 0,
28
30
  scrollWidth: 0,
@@ -79,9 +81,9 @@ const qe = /* @__PURE__ */ Te({
79
81
  () => o.scrollYProp === "hidden" || !f.value ? "0" : `${j.value}px`
80
82
  ), J = n(
81
83
  () => o.scrollXProp === "hidden" || !m.value ? "0" : `${A.value}px`
82
- ), R = n(() => `${o.yBarWidthInPx}px`), D = n(() => `${o.xBarWidthInPx}px`), me = n(() => q.value ? D.value : "0px"), ve = n(() => _.value ? R.value : "0px"), K = Me("nmorph");
84
+ ), R = n(() => `${o.yBarWidthInPx}px`), D = n(() => `${o.xBarWidthInPx}px`), me = n(() => _.value ? D.value : "0px"), ve = n(() => I.value ? R.value : "0px"), K = Me("nmorph");
83
85
  let d;
84
- const H = fe, I = () => {
86
+ const H = fe, q = () => {
85
87
  const e = a.value;
86
88
  if (!e) return;
87
89
  const t = Math.trunc(e.scrollLeft), r = Math.trunc(e.scrollTop);
@@ -89,8 +91,8 @@ const qe = /* @__PURE__ */ Te({
89
91
  }, Q = () => {
90
92
  H("on-scroll-end");
91
93
  }, ge = (e) => {
92
- w(), H("on-scroll", e), a.value && (o.updateOnlyOnScrollEnd || I(), d !== void 0 && clearTimeout(d), d = setTimeout(() => {
93
- o.updateOnlyOnScrollEnd && I(), Q();
94
+ w(), H("on-scroll", e), a.value && (o.updateOnlyOnScrollEnd || q(), d !== void 0 && clearTimeout(d), d = setTimeout(() => {
95
+ o.updateOnlyOnScrollEnd && q(), Q();
94
96
  }, o.scrollEndDelay));
95
97
  }, Z = (e) => e.deltaMode === 1 ? 16 : e.deltaMode === 2 ? Math.max(s.value.clientWidth, 1) : 1, ee = (e) => {
96
98
  if (o.scrollYProp === "hidden" || !f.value || !e) return !1;
@@ -161,6 +163,9 @@ const qe = /* @__PURE__ */ Te({
161
163
  const le = n(() => o.cssScrollBehavior), ne = n(() => o.height), ae = n(() => o.maxHeight), ye = n(() => ({
162
164
  "--nmorph-private-scroll-bar-width": R.value,
163
165
  "--nmorph-private-scroll-bar-height": D.value,
166
+ ...Re({
167
+ "--nmorph-private-scroll-gap": o.gap
168
+ }),
164
169
  boxSizing: "border-box",
165
170
  minWidth: "0",
166
171
  minHeight: "0",
@@ -170,18 +175,18 @@ const qe = /* @__PURE__ */ Te({
170
175
  paddingRight: F.value,
171
176
  paddingBottom: J.value,
172
177
  overflowX: U.value,
173
- overflowY: N.value,
178
+ overflowY: $.value,
174
179
  scrollBehavior: le.value
175
- })), _ = n(() => o.scrollYProp !== "hidden" && f.value), q = n(() => o.scrollXProp !== "hidden" && m.value), se = n(
176
- () => Math.max(0, s.value.clientHeight - (q.value ? o.xBarWidthInPx : 0))
180
+ })), I = n(() => o.scrollYProp !== "hidden" && f.value), _ = n(() => o.scrollXProp !== "hidden" && m.value), se = n(
181
+ () => Math.max(0, s.value.clientHeight - (_.value ? o.xBarWidthInPx : 0))
177
182
  ), ie = n(
178
- () => Math.max(0, s.value.clientWidth - (_.value ? o.yBarWidthInPx : 0))
179
- ), b = (e) => e === "y" ? se.value : ie.value, X = (e) => e === "y" ? s.value.clientHeight : s.value.clientWidth, k = (e) => e === "y" ? s.value.scrollHeight : s.value.scrollWidth, C = (e) => e === "y" ? s.value.scrollTop : s.value.scrollLeft, ce = (e) => Math.min(b(e), Math.max(18, e === "y" ? o.yBarWidthInPx * 3 : o.xBarWidthInPx * 3)), S = (e) => Math.max(0, k(e) - X(e)), h = (e) => {
180
- const t = b(e), r = k(e), l = X(e);
183
+ () => Math.max(0, s.value.clientWidth - (I.value ? o.yBarWidthInPx : 0))
184
+ ), b = (e) => e === "y" ? se.value : ie.value, X = (e) => e === "y" ? s.value.clientHeight : s.value.clientWidth, C = (e) => e === "y" ? s.value.scrollHeight : s.value.scrollWidth, k = (e) => e === "y" ? s.value.scrollTop : s.value.scrollLeft, ce = (e) => Math.min(b(e), Math.max(18, e === "y" ? o.yBarWidthInPx * 3 : o.xBarWidthInPx * 3)), S = (e) => Math.max(0, C(e) - X(e)), h = (e) => {
185
+ const t = b(e), r = C(e), l = X(e);
181
186
  return t <= 0 || r <= l ? 0 : Math.min(t, Math.max(ce(e), l / r * t));
182
187
  }, Y = (e) => {
183
188
  const t = S(e), r = Math.max(0, b(e) - h(e));
184
- return !t || !r ? 0 : C(e) / t * r;
189
+ return !t || !r ? 0 : k(e) / t * r;
185
190
  }, Pe = n(() => ({
186
191
  height: `${h("y")}px`,
187
192
  transform: `translate3d(0, ${Y("y")}px, 0)`
@@ -194,8 +199,8 @@ const qe = /* @__PURE__ */ Te({
194
199
  const l = Math.max(0, Math.min(S(e), t));
195
200
  e === "y" ? r.scrollTop = l : r.scrollLeft = l, w();
196
201
  }, V = () => {
197
- i && (window.removeEventListener("pointermove", $), window.removeEventListener("pointerup", z), window.removeEventListener("pointercancel", z), i = void 0, y.value = !1, document.body && (document.body.style.userSelect = B));
198
- }, $ = (e) => {
202
+ i && (window.removeEventListener("pointermove", N), window.removeEventListener("pointerup", z), window.removeEventListener("pointercancel", z), i = void 0, y.value = !1, document.body && (document.body.style.userSelect = B));
203
+ }, N = (e) => {
199
204
  if (!i) return;
200
205
  const r = (i.axis === "y" ? e.clientY : e.clientX) - i.pointerStart, l = Math.max(1, i.trackSize - i.thumbSize), c = r / l * i.maxScroll;
201
206
  W(i.axis, i.scrollStart + c);
@@ -207,18 +212,18 @@ const qe = /* @__PURE__ */ Te({
207
212
  !r || !l || !c || (i = {
208
213
  axis: e,
209
214
  pointerStart: e === "y" ? t.clientY : t.clientX,
210
- scrollStart: C(e),
215
+ scrollStart: k(e),
211
216
  trackSize: r,
212
217
  thumbSize: l,
213
218
  maxScroll: c
214
- }, y.value = !0, B = document.body?.style.userSelect ?? "", document.body && (document.body.style.userSelect = "none"), window.addEventListener("pointermove", $), window.addEventListener("pointerup", z), window.addEventListener("pointercancel", z));
219
+ }, y.value = !0, B = document.body?.style.userSelect ?? "", document.body && (document.body.style.userSelect = "none"), window.addEventListener("pointermove", N), window.addEventListener("pointerup", z), window.addEventListener("pointercancel", z));
215
220
  }, Be = (e, t) => {
216
221
  if (t.target.closest(".nmorph-scroll__thumb")) return;
217
222
  const l = t.currentTarget.getBoundingClientRect(), c = e === "y" ? t.clientY - l.top : t.clientX - l.left, E = Math.max(1, b(e) - h(e)), He = (c - h(e) / 2) / E * S(e);
218
223
  W(e, He);
219
224
  };
220
225
  pe({ scrollDOMContainer: a, moveTo: M });
221
- const ue = { props: o, scrollRoot: O, scrollDOMContainer: a, overflowY: N, overflowX: U, hasVerticalScroll: f, hasHorizontalScroll: m, metrics: s, isDragging: y, get viewportResizeObserver() {
226
+ const ue = { props: o, scrollRoot: O, scrollDOMContainer: a, overflowY: $, overflowX: U, hasVerticalScroll: f, hasHorizontalScroll: m, metrics: s, isDragging: y, get viewportResizeObserver() {
222
227
  return x;
223
228
  }, set viewportResizeObserver(e) {
224
229
  x = e;
@@ -242,7 +247,7 @@ const qe = /* @__PURE__ */ Te({
242
247
  return d;
243
248
  }, set scrollEndTimeout(e) {
244
249
  d = e;
245
- }, emit: H, updateValue: I, handleScrollEnd: Q, scrollHandler: ge, getWheelDeltaMultiplier: Z, canConsumeVerticalWheel: ee, isNestedScrollEvent: te, isCurrentHorizontalBarEvent: re, wheelHandler: be, show: T, modifiers: Se, getProgrammaticScrollBehavior: oe, moveTo: M, scrollBehavior: le, scrollHeight: ne, maxHeight: ae, rootStyle: ye, viewportStyle: xe, visibleVerticalBar: _, visibleHorizontalBar: q, verticalTrackSize: se, horizontalTrackSize: ie, getTrackSize: b, getClientSize: X, getScrollSize: k, getScrollPosition: C, getMinThumbSize: ce, getMaxScroll: S, getThumbSize: h, getThumbOffset: Y, verticalThumbStyle: Pe, horizontalThumbStyle: we, setScrollPosition: W, stopThumbDrag: V, thumbPointerMoveHandler: $, thumbPointerUpHandler: z, thumbPointerDownHandler: ze, trackPointerDownHandler: Be, mouseEnterHandler: () => {
250
+ }, emit: H, updateValue: q, handleScrollEnd: Q, scrollHandler: ge, getWheelDeltaMultiplier: Z, canConsumeVerticalWheel: ee, isNestedScrollEvent: te, isCurrentHorizontalBarEvent: re, wheelHandler: be, show: T, modifiers: Se, getProgrammaticScrollBehavior: oe, moveTo: M, scrollBehavior: le, scrollHeight: ne, maxHeight: ae, rootStyle: ye, viewportStyle: xe, visibleVerticalBar: I, visibleHorizontalBar: _, verticalTrackSize: se, horizontalTrackSize: ie, getTrackSize: b, getClientSize: X, getScrollSize: C, getScrollPosition: k, getMinThumbSize: ce, getMaxScroll: S, getThumbSize: h, getThumbOffset: Y, verticalThumbStyle: Pe, horizontalThumbStyle: we, setScrollPosition: W, stopThumbDrag: V, thumbPointerMoveHandler: N, thumbPointerUpHandler: z, thumbPointerDownHandler: ze, trackPointerDownHandler: Be, mouseEnterHandler: () => {
246
251
  T.value = !0;
247
252
  }, mouseLeaveHandler: () => {
248
253
  T.value = !1;
@@ -251,5 +256,5 @@ const qe = /* @__PURE__ */ Te({
251
256
  }
252
257
  });
253
258
  export {
254
- qe as default
259
+ Ce as default
255
260
  };
@@ -1 +1 @@
1
- .nmorph-card{--nmorph-private-card-padding: var(--indentation-04);--nmorph-private-card-background: var(--nmorph-main-color);--nmorph-private-card-border: none;--nmorph-private-card-shadow: none;position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:fit-content;max-width:100%;padding:var(--nmorph-private-card-padding);background:var(--nmorph-private-card-background);border:var(--nmorph-private-card-border);border-radius:var(--nmorph-private-card-radius, var(--default-border-radius));box-shadow:var(--nmorph-private-card-shadow)}.nmorph-card.nmorph-card--fill{width:100%}.nmorph-card .nmorph-card__content{height:100%;padding:var(--nmorph-private-card-content-padding, 0)}.nmorph-card .nmorph-card__header{font-weight:var(--nmorph-typography-title-font-weight);font-size:var(--nmorph-typography-title-font-size);line-height:var(--nmorph-typography-title-line-height)}.nmorph-card .nmorph-card__footer{height:fit-content;margin-top:4px;font-weight:var(--nmorph-typography-body-small-font-weight);font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-card.nmorph-card--nmorph{--nmorph-private-card-background: var(--nmorph-main-color)}.nmorph-card:not(.nmorph-card--plain).nmorph-card--outset{--nmorph-private-card-shadow: var(--nmorph-shadow-outset)}.nmorph-card:not(.nmorph-card--plain).nmorph-card--inset{--nmorph-private-card-shadow: var(--nmorph-shadow-inset)}.nmorph-card:not(.nmorph-card--plain).nmorph-card--combined{--nmorph-private-card-border: var(--nmorph-private-card-combined-border-width) solid var(--nmorph-main-color);--nmorph-private-card-shadow: var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color), calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color), inset var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color), inset calc(-1 * var(--base-shadow-width)) calc(-.5 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}.nmorph-card.nmorph-card--plain{--nmorph-private-card-background: var(--nmorph-main-color);--nmorph-private-card-border: var(--nmorph-plain-border);--nmorph-private-card-shadow: none}
1
+ .nmorph-card{--nmorph-private-card-padding: var(--indentation-04);--nmorph-private-card-background: var(--nmorph-main-color);--nmorph-private-card-border: none;--nmorph-private-card-shadow: none;--nmorph-private-card-paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.72' filter='url(%23n)'/%3E%3C/svg%3E");--nmorph-private-card-paper-opacity: 0;--nmorph-private-card-paper-shadow-color: color-mix(in srgb, var(--nmorph-dark-shade-color) 82%, transparent);--nmorph-private-card-paper-light-color: color-mix(in srgb, var(--nmorph-light-shade-color) 76%, transparent);position:relative;isolation:isolate;display:flex;flex-direction:column;box-sizing:border-box;width:fit-content;max-width:100%;padding:var(--nmorph-private-card-padding);background:var(--nmorph-private-card-background);border:var(--nmorph-private-card-border);border-radius:var(--nmorph-private-card-radius, var(--default-border-radius));box-shadow:var(--nmorph-private-card-shadow)}.nmorph-card:before{position:absolute;z-index:0;background-image:var(--nmorph-private-card-paper-noise),radial-gradient(circle at 1px 1px,var(--nmorph-private-card-paper-shadow-color) 0 1px,transparent 1.7px),radial-gradient(circle at 6px 4px,var(--nmorph-private-card-paper-light-color) 0 1px,transparent 1.8px);background-size:72px 72px,11px 11px,16px 16px;border-radius:inherit;opacity:var(--nmorph-private-card-paper-opacity);pointer-events:none;content:"";inset:0}.nmorph-card.nmorph-card--fill{width:100%}.nmorph-card .nmorph-card__header,.nmorph-card .nmorph-card__content{position:relative;z-index:1}.nmorph-card .nmorph-card__content{height:100%;padding:var(--nmorph-private-card-content-padding, 0)}.nmorph-card .nmorph-card__header{font-weight:var(--nmorph-typography-title-font-weight);font-size:var(--nmorph-typography-title-font-size);line-height:var(--nmorph-typography-title-line-height)}.nmorph-card .nmorph-card__footer{position:relative;z-index:1;height:fit-content;margin-top:4px;font-weight:var(--nmorph-typography-body-small-font-weight);font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-card.nmorph-card--nmorph{--nmorph-private-card-background: var(--nmorph-main-color)}.nmorph-card:not(.nmorph-card--plain).nmorph-card--outset{--nmorph-private-card-shadow: var(--nmorph-shadow-outset)}.nmorph-card:not(.nmorph-card--plain).nmorph-card--inset{--nmorph-private-card-shadow: var(--nmorph-shadow-inset)}.nmorph-card:not(.nmorph-card--plain).nmorph-card--combined{--nmorph-private-card-border: var(--nmorph-private-card-combined-border-width) solid var(--nmorph-main-color);--nmorph-private-card-shadow: var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color), calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color), inset var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color), inset calc(-1 * var(--base-shadow-width)) calc(-.5 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}.nmorph-card.nmorph-card--plain{--nmorph-private-card-background: var(--nmorph-main-color);--nmorph-private-card-border: var(--nmorph-plain-border);--nmorph-private-card-shadow: none}
@@ -1,9 +1,9 @@
1
1
  import './NmorphCard.css';
2
- import { defineComponent as m, useSlots as c, computed as o } from "vue";
3
- import { useModifiers as g } from "../../../utils/create-modifiers.js";
4
- import { toCssSize as d } from "../../../utils/common.js";
5
- import { NmorphShadowType as h } from "../../../types/common.types.js";
6
- const q = /* @__PURE__ */ m({
2
+ import { defineComponent as h, useSlots as g, computed as a } from "vue";
3
+ import { useModifiers as y } from "../../../utils/create-modifiers.js";
4
+ import { toCssSize as r } from "../../../utils/common.js";
5
+ import { NmorphShadowType as v } from "../../../types/common.types.js";
6
+ const N = /* @__PURE__ */ h({
7
7
  __name: "NmorphCard",
8
8
  props: {
9
9
  design: { type: null, required: !1, default: "nmorph" },
@@ -14,30 +14,32 @@ const q = /* @__PURE__ */ m({
14
14
  radius: { type: [Number, String], required: !1, default: void 0 },
15
15
  contentPadding: { type: [Number, String], required: !1, default: void 0 },
16
16
  contentClass: { type: String, required: !1, default: "" },
17
+ paper: { type: Number, required: !1, default: 0 },
17
18
  fill: { type: Boolean, required: !1, default: !0 },
18
19
  tag: { type: String, required: !1, default: "div" }
19
20
  },
20
- setup(s, { expose: p }) {
21
- p();
22
- const e = s, u = c(), r = o(() => e.design || "nmorph"), l = o(
23
- () => g({
24
- nmorph: [r.value === "nmorph" ? h[e.shadowType] : ""],
25
- "nmorph-card": [r.value, e.shadowType, e.fill ? "fill" : "fit-content"]
21
+ setup(s, { expose: u }) {
22
+ u();
23
+ const e = s, l = g(), d = a(() => e.design || "nmorph"), m = a(
24
+ () => y({
25
+ nmorph: [d.value === "nmorph" ? v[e.shadowType] : ""],
26
+ "nmorph-card": [d.value, e.shadowType, e.fill ? "fill" : "fit-content"]
26
27
  })
27
- ), f = o(() => {
28
- const t = e.padding !== void 0 ? d(e.padding) : d(e.cardPadding), a = d(e.radius), n = d(e.contentPadding);
28
+ ), c = a(() => {
29
+ const t = e.padding !== void 0 ? r(e.padding) : r(e.cardPadding), o = r(e.radius), n = r(e.contentPadding), f = Math.max(0, Number(e.paper) || 0), p = Math.min(f * 0.08, 0.48);
29
30
  return {
30
31
  ...e.shadowType === "combined" && {
31
32
  "--nmorph-private-card-combined-border-width": `${e.combinedShadowBorderWidth}px`
32
33
  },
33
34
  ...t !== void 0 && { "--nmorph-private-card-padding": t, padding: t },
34
- ...a !== void 0 && { "--nmorph-private-card-radius": a },
35
- ...n !== void 0 && { "--nmorph-private-card-content-padding": n }
35
+ ...o !== void 0 && { "--nmorph-private-card-radius": o },
36
+ ...n !== void 0 && { "--nmorph-private-card-content-padding": n },
37
+ ...p > 0 && { "--nmorph-private-card-paper-opacity": String(p) }
36
38
  };
37
- }), i = { props: e, slots: u, resolvedDesign: r, modifiers: l, styles: f };
39
+ }), i = { props: e, slots: l, resolvedDesign: d, modifiers: m, styles: c };
38
40
  return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
39
41
  }
40
42
  });
41
43
  export {
42
- q as default
44
+ N as default
43
45
  };
@@ -1 +1 @@
1
- .nmorph-carousel{--nmorph-private-carousel-height: 500px;--nmorph-private-carousel-frame-border: 10px;position:relative;box-sizing:border-box;height:var(--nmorph-private-carousel-height);overflow:hidden;border-radius:var(--default-border-radius)}.nmorph-carousel .nmorph-carousel__wrapper{display:flex;height:100%}.nmorph-carousel .transition-enabled{transition:transform .4s ease}.nmorph-carousel .nmorph-carousel__element-indicator-wrapper{padding:4px;cursor:pointer}.nmorph-carousel .nmorph-carousel__elements-indicator{position:absolute;bottom:16px;display:flex;justify-content:center;width:100%}.nmorph-carousel .nmorph-carousel__element-indicator{width:30px;height:2px;margin-right:var(--indentation-02);background:var(--nmorph-gray-color)}.nmorph-carousel .nmorph-carousel__element-indicator--active{background:var(--nmorph-white-color)}.nmorph-carousel .nmorph-carousel__action-btn{position:absolute;top:50%;padding:var(--indentation-03);background:var(--nmorph-info-color);border-radius:var(--default-border-radius);transform:translateY(-50%);cursor:pointer}.nmorph-carousel .nmorph-carousel__action-btn:hover{background:var(--nmorph-info-color)}.nmorph-carousel .nmorph-carousel__action-btn .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-carousel .nmorph-carousel__prev{right:var(--indentation-02);rotate:-90deg}.nmorph-carousel .nmorph-carousel__next{left:var(--indentation-02);rotate:90deg}.nmorph-carousel .nmorph-carousel__item{flex-shrink:0;width:100%;height:100%}.nmorph-carousel--nmorph{background:var(--nmorph-main-color);border:var(--nmorph-private-carousel-frame-border) solid var(--nmorph-main-color)}.nmorph-carousel--plain{background:var(--nmorph-main-color);border:var(--nmorph-plain-border);box-shadow:none}.nmorph-carousel--plain .nmorph-carousel__action-btn{color:var(--nmorph-text-color);background:var(--nmorph-main-color);border:var(--nmorph-plain-border);box-shadow:none}.nmorph-carousel--plain .nmorph-carousel__action-btn .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-carousel--plain .nmorph-carousel__action-btn:hover{color:var(--nmorph-accent-color);background:var(--nmorph-main-color);border-color:var(--nmorph-accent-color)}
1
+ .nmorph-carousel{--nmorph-private-carousel-height: 500px;--nmorph-private-carousel-frame-border: 10px;--nmorph-private-carousel-action-size: 36px;--nmorph-private-carousel-action-offset: var(--indentation-02);position:relative;box-sizing:border-box;height:var(--nmorph-private-carousel-height);overflow:hidden;border-radius:var(--default-border-radius)}.nmorph-carousel .nmorph-carousel__wrapper{display:flex;height:100%}.nmorph-carousel .transition-enabled{transition:transform .4s ease}.nmorph-carousel .nmorph-carousel__element-indicator-wrapper{padding:4px;cursor:pointer}.nmorph-carousel .nmorph-carousel__elements-indicator{position:absolute;bottom:16px;display:flex;justify-content:center;width:100%}.nmorph-carousel .nmorph-carousel__element-indicator{width:30px;height:2px;margin-right:var(--indentation-02);background:var(--nmorph-gray-color)}.nmorph-carousel .nmorph-carousel__element-indicator--active{background:var(--nmorph-white-color)}.nmorph-carousel .nmorph-carousel__action-btn{position:absolute;top:50%;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:var(--nmorph-private-carousel-action-size);height:var(--nmorph-private-carousel-action-size);padding:0;background:var(--nmorph-info-color);border-radius:var(--default-border-radius);transform:translateY(-50%);cursor:pointer}.nmorph-carousel .nmorph-carousel__action-btn:hover{background:var(--nmorph-info-color)}.nmorph-carousel .nmorph-carousel__action-btn .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-carousel .nmorph-carousel__prev{right:var(--nmorph-private-carousel-action-offset)}.nmorph-carousel .nmorph-carousel__next{left:var(--nmorph-private-carousel-action-offset)}.nmorph-carousel .nmorph-carousel__item{flex-shrink:0;width:100%;height:100%}.nmorph-carousel--nmorph{background:var(--nmorph-main-color);border:var(--nmorph-private-carousel-frame-border) solid var(--nmorph-main-color)}.nmorph-carousel--plain{background:var(--nmorph-main-color);border:var(--nmorph-plain-border);box-shadow:none}.nmorph-carousel--plain .nmorph-carousel__action-btn{color:var(--nmorph-text-color);background:var(--nmorph-main-color);border:var(--nmorph-plain-border);box-shadow:none}.nmorph-carousel--plain .nmorph-carousel__action-btn .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-carousel--plain .nmorph-carousel__action-btn:hover{color:var(--nmorph-accent-color);background:var(--nmorph-main-color);border-color:var(--nmorph-accent-color)}
@@ -1,11 +1,11 @@
1
1
  import './NmorphCarousel.css';
2
2
  import d from "./NmorphCarousel.vue2.js";
3
- import { openBlock as o, createElementBlock as e, normalizeClass as c, createElementVNode as n, normalizeStyle as h, Fragment as i, renderList as s, createVNode as l, withCtx as m, renderSlot as p } from "vue";
3
+ import { openBlock as e, createElementBlock as o, normalizeClass as c, createElementVNode as n, normalizeStyle as h, Fragment as i, renderList as s, createVNode as l, withCtx as m, renderSlot as p } from "vue";
4
4
  /* empty css */
5
5
  import u from "../../../_virtual/_plugin-vue_export-helper.js";
6
6
  const v = ["id"], f = { class: "nmorph-carousel__elements-indicator" }, C = ["onClick"];
7
- function k(_, N, I, r, b, w) {
8
- return o(), e(
7
+ function k(_, N, I, r, b, y) {
8
+ return e(), o(
9
9
  "div",
10
10
  {
11
11
  class: c(r.modifiers)
@@ -18,10 +18,10 @@ function k(_, N, I, r, b, w) {
18
18
  style: h({ transform: r.translateX })
19
19
  },
20
20
  [
21
- (o(!0), e(
21
+ (e(!0), o(
22
22
  i,
23
23
  null,
24
- s(r.carouselData, (a) => (o(), e("div", {
24
+ s(r.carouselData, (a) => (e(), o("div", {
25
25
  id: `nmorph-carousel-item-${r.carouselId}-${a}`,
26
26
  key: a,
27
27
  class: "nmorph-carousel__item"
@@ -34,13 +34,13 @@ function k(_, N, I, r, b, w) {
34
34
  /* STYLE */
35
35
  ),
36
36
  n("div", f, [
37
- (o(!0), e(
37
+ (e(!0), o(
38
38
  i,
39
39
  null,
40
- s(r.carouselData, (a, t) => (o(), e("div", {
40
+ s(r.carouselData, (a, t) => (e(), o("div", {
41
41
  key: t,
42
42
  class: "nmorph-carousel__element-indicator-wrapper",
43
- onClick: (y) => r.elementIndicator(t)
43
+ onClick: (S) => r.elementIndicator(t)
44
44
  }, [
45
45
  n(
46
46
  "div",
@@ -62,7 +62,7 @@ function k(_, N, I, r, b, w) {
62
62
  }, [
63
63
  l(r.NmorphIcon, null, {
64
64
  default: m(() => [
65
- l(r.NmorphIconChevronDown)
65
+ l(r.NmorphIconChevronRight)
66
66
  ]),
67
67
  _: 1
68
68
  /* STABLE */
@@ -74,7 +74,7 @@ function k(_, N, I, r, b, w) {
74
74
  }, [
75
75
  l(r.NmorphIcon, null, {
76
76
  default: m(() => [
77
- l(r.NmorphIconChevronDown)
77
+ l(r.NmorphIconChevronLeft)
78
78
  ]),
79
79
  _: 1
80
80
  /* STABLE */
@@ -1,29 +1,30 @@
1
1
  import './NmorphCarousel.css';
2
- import { defineComponent as N, ref as p, computed as u, provide as w, watch as d } from "vue";
3
- import { useModifiers as D } from "../../../utils/create-modifiers.js";
4
- import { generateUUID as M } from "../../../utils/common.js";
5
- import y from "../../basic/nmorph-icon/NmorphIcon.vue.js";
6
- import b from "../../../assets/icons/chevron-down.svg.js";
7
- const A = /* @__PURE__ */ N({
2
+ import { defineComponent as x, ref as p, computed as u, provide as M, watch as d } from "vue";
3
+ import { useModifiers as y } from "../../../utils/create-modifiers.js";
4
+ import { generateUUID as b } from "../../../utils/common.js";
5
+ import q from "../../../assets/icons/chevron-right.svg.js";
6
+ import w from "../../../assets/icons/chevron-left.svg.js";
7
+ import D from "../../basic/nmorph-icon/NmorphIcon.vue.js";
8
+ const A = /* @__PURE__ */ x({
8
9
  __name: "NmorphCarousel",
9
10
  props: {
10
11
  design: { type: null, required: !1, default: "nmorph" },
11
12
  loop: { type: Boolean, required: !1, default: !0 }
12
13
  },
13
14
  emits: ["change"],
14
- setup(f, { expose: v, emit: h }) {
15
- v();
16
- const e = p(0), o = f, l = h, g = u(
17
- () => D({
15
+ setup(h, { expose: f, emit: v }) {
16
+ f();
17
+ const e = p(0), o = h, l = v, g = u(
18
+ () => y({
18
19
  nmorph: [o.design === "nmorph" ? "shadow-outset" : ""],
19
20
  "nmorph-carousel": [o.design]
20
21
  })
21
- ), a = p([]), s = M();
22
- w("carousel-data", { data: a, carouselId: s });
22
+ ), a = p([]), s = b();
23
+ M("carousel-data", { data: a, carouselId: s });
23
24
  const r = u(() => a.value.length), i = (t) => r.value ? o.loop ? (t + r.value) % r.value : Math.min(Math.max(t, 0), r.value - 1) : 0, n = (t) => {
24
- const m = i(t);
25
- m !== e.value && (e.value = m);
26
- }, _ = () => n(e.value - 1), I = () => n(e.value + 1), S = u(() => `translateX(-${e.value * 100}%)`), x = (t) => t === e.value, C = (t) => {
25
+ const c = i(t);
26
+ c !== e.value && (e.value = c);
27
+ }, I = () => n(e.value - 1), _ = () => n(e.value + 1), C = u(() => `translateX(-${e.value * 100}%)`), S = (t) => t === e.value, N = (t) => {
27
28
  n(t);
28
29
  };
29
30
  d(r, (t) => {
@@ -31,12 +32,14 @@ const A = /* @__PURE__ */ N({
31
32
  }), d(e, () => {
32
33
  l("change", e.value);
33
34
  });
34
- const c = { currentSlide: e, props: o, emit: l, modifiers: g, carouselData: a, carouselId: s, slideCount: r, normalizeSlideIndex: i, goToSlide: n, prevSlide: _, nextSlide: I, translateX: S, isCurrentElementActive: x, elementIndicator: C, get NmorphIcon() {
35
- return y;
36
- }, get NmorphIconChevronDown() {
37
- return b;
35
+ const m = { currentSlide: e, props: o, emit: l, modifiers: g, carouselData: a, carouselId: s, slideCount: r, normalizeSlideIndex: i, goToSlide: n, prevSlide: I, nextSlide: _, translateX: C, isCurrentElementActive: S, elementIndicator: N, get NmorphIcon() {
36
+ return D;
37
+ }, get NmorphIconChevronLeft() {
38
+ return w;
39
+ }, get NmorphIconChevronRight() {
40
+ return q;
38
41
  } };
39
- return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
42
+ return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
40
43
  }
41
44
  });
42
45
  export {
@@ -10,10 +10,10 @@ 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 "../../basic/nmorph-icon/NmorphIcon.vue.js";
14
- import ae from "../../../assets/icons/audio.svg.js";
15
- import ie from "../../../assets/icons/video.svg.js";
16
- import ne from "../../../assets/icons/open.svg.js";
13
+ import te from "../../../assets/icons/open.svg.js";
14
+ import ae from "../../basic/nmorph-icon/NmorphIcon.vue.js";
15
+ import ie from "../../../assets/icons/audio.svg.js";
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";
@@ -45,7 +45,7 @@ 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)) ? ae : e.mimeType.toLowerCase().startsWith("video/") || t.value.some((o) => n(o, W)) ? ie : 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()), 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) => {
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;
@@ -103,7 +103,7 @@ const de = "var(--nmorph-contrast-text-color)", Me = /* @__PURE__ */ F({
103
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: () => {
104
104
  q.value && (w.value = !0), e.previewMode !== "none" && l("open");
105
105
  }, downloadHandler: () => l("download"), errorHandler: () => l("error"), get NmorphIcon() {
106
- return te;
106
+ return ae;
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 ne;
114
+ return te;
115
115
  }, NmorphAudioPreview: Y, NmorphMediaGallery: Z, NmorphVideoPreview: ee };
116
116
  return Object.defineProperty(H, "__isScriptSetup", { enumerable: !1, value: !0 }), H;
117
117
  }
@@ -11,7 +11,7 @@ const C = /* @__PURE__ */ S({
11
11
  design: { type: null, required: !1, default: "nmorph" },
12
12
  loadingText: { type: String, required: !1, default: "" },
13
13
  loadFailedText: { type: String, required: !1, default: "" },
14
- frameBorder: { type: Number, required: !1, default: 4 },
14
+ frameBorder: { type: Number, required: !1, default: 2.67 },
15
15
  src: { type: String, required: !1 },
16
16
  srcSet: { type: String, required: !1, default: "" },
17
17
  width: { type: [Number, String], required: !1, default: void 0 },
@@ -1 +1 @@
1
- .nmorph-media-tile{position:relative;display:flex;justify-content:center;align-items:center;aspect-ratio:16/9;min-width:0;overflow:hidden;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.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{display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;color:var(--nmorph-text-color);background:color-mix(in srgb,var(--nmorph-main-color) 86%,transparent);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset);--nmorph-private-icon-color: currentColor}.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--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;aspect-ratio:16/9;min-width:0;overflow:hidden;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.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--screen-sharing{box-shadow:0 0 0 2px var(--nmorph-success-color)}