@nmorph/nmorph-ui-kit 3.0.5 → 3.0.7

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 (32) hide show
  1. package/dist/assets/icons/hand.svg.js +2 -2
  2. package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +9 -9
  3. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
  4. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +34 -36
  5. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +80 -78
  6. package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
  7. package/dist/components/data/nmorph-card/NmorphCard.vue2.js +18 -15
  8. package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
  9. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +60 -60
  10. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +118 -94
  11. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +19 -19
  12. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +72 -39
  13. package/dist/components/data/nmorph-pagination/NmorphPagination.css +1 -1
  14. package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +5 -5
  15. package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +80 -56
  16. package/dist/components/data/nmorph-table/NmorphTable.css +1 -1
  17. package/dist/components/data/nmorph-table/NmorphTable.vue.js +114 -162
  18. package/dist/components/data/nmorph-table/NmorphTable.vue2.js +41 -38
  19. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -1
  20. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue.js +8 -8
  21. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +64 -24
  22. package/dist/components/form/nmorph-select-button/NmorphSelectButton.css +1 -1
  23. package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.css +1 -1
  24. package/dist/index.umd.js +25 -25
  25. package/dist/package.json.js +1 -1
  26. package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +0 -3
  27. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +3 -0
  28. package/dist/src/components/data/nmorph-pagination/types.d.ts +3 -0
  29. package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +2 -21
  30. package/dist/src/components/data/nmorph-table/types.d.ts +11 -3
  31. package/dist/style.css +1 -1
  32. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { openBlock as t, createElementBlock as o, createElementVNode as r } from "vue";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
- viewBox: "0 0 1024 1024"
4
+ viewBox: "0 0 1024 1088"
5
5
  };
6
6
  function c(l, e) {
7
7
  return t(), o("svg", n, [...e[0] || (e[0] = [
@@ -9,7 +9,7 @@ function c(l, e) {
9
9
  "path",
10
10
  {
11
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"
12
+ d: "M360 131.2c0-39.366 29.55-71.28 66-71.28s66 31.914 66 71.28v453.6h32V72.88c0-39.366 29.55-71.28 66-71.28s66 31.914 66 71.28V584.8h32v-432c0-39.366 29.55-71.28 66-71.28s66 31.914 66 71.28v457.92h30V256.48c0-39.366 29.55-71.28 66-71.28s66 31.914 66 71.28V736c0 181.332-136.1 328.32-304 328.32h-82c-98.69 0-190.2-55.62-241.34-146.794L109.73 665.67a70 75.6 0 0 1 120.06-77.5L360 822.4z"
13
13
  },
14
14
  null,
15
15
  -1
@@ -1,25 +1,25 @@
1
1
  import './NmorphIcon.css';
2
- import { defineComponent as p, computed as o } from "vue";
3
- import { useModifiers as d } from "../../../utils/create-modifiers.js";
2
+ import { defineComponent as p, computed as r } from "vue";
3
+ import { useModifiers as c } from "../../../utils/create-modifiers.js";
4
4
  const l = /* @__PURE__ */ p({
5
5
  __name: "NmorphIcon",
6
6
  props: {
7
7
  size: { type: null, required: !1, default: "small" },
8
- width: { type: String, required: !1, default: void 0 },
9
- height: { type: String, required: !1, default: void 0 },
10
- color: { type: String, required: !1, default: void 0 }
8
+ width: { type: String, required: !1 },
9
+ height: { type: String, required: !1 },
10
+ color: { type: String, required: !1 }
11
11
  },
12
- setup(r, { expose: s }) {
12
+ setup(o, { expose: s }) {
13
13
  s();
14
- const e = r, n = o(
15
- () => d({
14
+ const e = o, n = r(
15
+ () => c({
16
16
  "nmorph-icon": [
17
17
  !e.width && !e.height && e.size,
18
18
  e.width && "custom-width",
19
19
  e.height && "custom-height"
20
20
  ]
21
21
  })
22
- ), h = o(() => {
22
+ ), h = r(() => {
23
23
  const t = {};
24
24
  return e.width && (t["--nmorph-private-icon-width"] = e.width), e.height && (t["--nmorph-private-icon-height"] = e.height), e.color && (t["--nmorph-private-icon-color"] = e.color), t;
25
25
  }), i = { props: e, modifiers: n, customStyles: h };
@@ -1 +1 @@
1
- .nmorph-audio-preview{display:flex;gap:var(--indentation-02);align-items:center;box-sizing:border-box;width:var(--nmorph-private-audio-preview-width, 360px);min-width:0;max-width:100%;min-height:64px;padding:var(--indentation-03);color:var(--nmorph-text-color);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-audio-preview audio{display:none}.nmorph-audio-preview .nmorph-audio-preview__icon{position:relative;display:flex;flex:0 0 auto;justify-content:center;align-items:center;width:36px;height:36px;padding:0;color:var(--nmorph-text-color);background:color-mix(in srgb,var(--nmorph-text-color) 10%,transparent);border:0;border-radius:var(--default-border-radius);cursor:default;--nmorph-private-icon-color: currentColor}.nmorph-audio-preview button.nmorph-audio-preview__icon{cursor:pointer}.nmorph-audio-preview button.nmorph-audio-preview__icon:disabled{cursor:default}.nmorph-audio-preview .nmorph-audio-preview__play-button{display:inline-flex;flex:0 0 auto;justify-content:center;align-items:center;width:20px;height:20px;padding:0;color:var(--nmorph-contrast-text-color);background:var(--nmorph-black-color);border:0;border-radius:var(--border-radius-circular);cursor:pointer}.nmorph-audio-preview .nmorph-audio-preview__play-button:hover{background:var(--nmorph-accent-color)}.nmorph-audio-preview .nmorph-audio-preview__play-button .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-audio-preview .nmorph-audio-preview__play-indicator{position:absolute;right:-4px;bottom:-4px;display:inline-flex;justify-content:center;align-items:center;width:18px;height:18px;color:var(--nmorph-contrast-text-color);background:var(--nmorph-black-color);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset)}.nmorph-audio-preview .nmorph-audio-preview__play-indicator .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-audio-preview .nmorph-audio-preview__body{display:flex;flex:1 1 0;flex-direction:column;gap:var(--indentation-02);box-sizing:border-box;min-width:0}.nmorph-audio-preview .nmorph-audio-preview__header{display:flex;gap:var(--indentation-02);justify-content:space-between;align-items:center;min-width:0}.nmorph-audio-preview .nmorph-audio-preview__control{display:flex;gap:var(--indentation-02);align-items:center;width:100%;min-width:0}.nmorph-audio-preview .nmorph-audio-preview__name,.nmorph-audio-preview .nmorph-audio-preview__time,.nmorph-audio-preview .nmorph-audio-preview__error{min-width:0;overflow:hidden;font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height);white-space:nowrap;text-overflow:ellipsis}.nmorph-audio-preview .nmorph-audio-preview__name{flex:1 1 auto;font-weight:var(--font-weight-semibold)}.nmorph-audio-preview .nmorph-audio-preview__time{flex:0 0 auto;color:var(--nmorph-semi-contrast-text-color);font-variant-numeric:tabular-nums}.nmorph-audio-preview .nmorph-audio-preview__error{flex:0 1 auto;color:var(--nmorph-error-text-color)}.nmorph-audio-preview .nmorph-audio-preview__range{flex:1 1 0;width:100%;min-width:0;height:6px;padding:0;background:linear-gradient(to right,var(--nmorph-accent-color) var(--nmorph-private-audio-preview-progress, 0%),color-mix(in srgb,var(--nmorph-text-color) 16%,transparent) 0);border-radius:var(--border-radius-100);outline:0;cursor:pointer;appearance:none}.nmorph-audio-preview .nmorph-audio-preview__range:disabled{cursor:default;opacity:.6}.nmorph-audio-preview .nmorph-audio-preview__range::-webkit-slider-thumb{width:14px;height:14px;background:var(--nmorph-accent-color);border:2px solid var(--nmorph-main-color);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset);appearance:none}.nmorph-audio-preview .nmorph-audio-preview__range::-moz-range-thumb{width:14px;height:14px;background:var(--nmorph-accent-color);border:2px solid var(--nmorph-main-color);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset)}.nmorph-audio-preview .nmorph-audio-preview__actions{display:flex;flex:0 0 auto;gap:var(--indentation-01);align-items:center}.nmorph-audio-preview .nmorph-audio-preview__action-link{display:inline-flex;justify-content:center;align-items:center;width:22px;height:22px;color:inherit;text-decoration:none;border-radius:var(--default-border-radius)}.nmorph-audio-preview .nmorph-audio-preview__action-link:hover{color:var(--nmorph-accent-color);background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent)}.nmorph-audio-preview .nmorph-audio-preview__action-link .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-audio-preview.nmorph-audio-preview--compact{min-height:52px;padding:var(--indentation-02)}.nmorph-audio-preview.nmorph-audio-preview--compact .nmorph-audio-preview__icon{width:30px;height:30px}.nmorph-audio-preview.nmorph-audio-preview--no-actions .nmorph-audio-preview__body{padding-inline-end:var(--indentation-02)}.nmorph-audio-preview.nmorph-audio-preview--embedded{width:var(--nmorph-private-audio-preview-width, 100%);min-height:auto;padding:0;background:transparent;border-radius:0;box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--embedded .nmorph-audio-preview__body{gap:0;padding-inline-end:0}.nmorph-audio-preview.nmorph-audio-preview--embedded .nmorph-audio-preview__range{height:5px}.nmorph-audio-preview.nmorph-audio-preview--embedded .nmorph-audio-preview__range::-webkit-slider-thumb{width:11px;height:11px;box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--embedded .nmorph-audio-preview__range::-moz-range-thumb{width:11px;height:11px;box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--embedded .nmorph-audio-preview__play-indicator{box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--no-header .nmorph-audio-preview__time{flex:0 0 auto}.nmorph-audio-preview.nmorph-audio-preview--soft{background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--soft .nmorph-audio-preview__play-indicator{box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--plain{background:transparent;box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--plain .nmorph-audio-preview__play-indicator{box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--error{outline:1px solid var(--nmorph-error-color)}
1
+ .nmorph-audio-preview{display:flex;gap:var(--indentation-02);align-items:center;box-sizing:border-box;width:var(--nmorph-private-audio-preview-width, 360px);min-width:0;max-width:100%;min-height:64px;padding:var(--indentation-03);color:var(--nmorph-text-color);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-audio-preview audio{display:none}.nmorph-audio-preview .nmorph-audio-preview__icon{position:relative;display:flex;flex:0 0 auto;justify-content:center;align-items:center;width:36px;height:36px;padding:0;color:var(--nmorph-text-color);background:color-mix(in srgb,var(--nmorph-text-color) 10%,transparent);border:0;border-radius:var(--default-border-radius);cursor:default;--nmorph-private-icon-color: currentColor}.nmorph-audio-preview button.nmorph-audio-preview__icon{cursor:pointer}.nmorph-audio-preview button.nmorph-audio-preview__icon:disabled{cursor:default}.nmorph-audio-preview .nmorph-audio-preview__play-button{display:inline-flex;flex:0 0 auto;justify-content:center;align-items:center;width:20px;height:20px;padding:0;color:var(--nmorph-contrast-text-color);background:var(--nmorph-black-color);border:0;border-radius:var(--border-radius-circular);cursor:pointer}.nmorph-audio-preview .nmorph-audio-preview__play-button:hover{background:var(--nmorph-accent-color)}.nmorph-audio-preview .nmorph-audio-preview__play-button .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-audio-preview .nmorph-audio-preview__play-indicator{position:absolute;right:-4px;bottom:-4px;display:inline-flex;justify-content:center;align-items:center;width:18px;height:18px;color:var(--nmorph-contrast-text-color);background:var(--nmorph-black-color);border-radius:var(--border-radius-circular)}.nmorph-audio-preview .nmorph-audio-preview__play-indicator .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-audio-preview .nmorph-audio-preview__body{display:flex;flex:1 1 0;flex-direction:column;gap:var(--indentation-02);box-sizing:border-box;min-width:0}.nmorph-audio-preview .nmorph-audio-preview__header{display:flex;gap:var(--indentation-02);justify-content:space-between;align-items:center;min-width:0}.nmorph-audio-preview .nmorph-audio-preview__control{display:flex;gap:var(--indentation-02);align-items:center;width:100%;min-width:0}.nmorph-audio-preview .nmorph-audio-preview__name,.nmorph-audio-preview .nmorph-audio-preview__time,.nmorph-audio-preview .nmorph-audio-preview__error{min-width:0;overflow:hidden;font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height);white-space:nowrap;text-overflow:ellipsis}.nmorph-audio-preview .nmorph-audio-preview__name{flex:1 1 auto;font-weight:var(--font-weight-semibold)}.nmorph-audio-preview .nmorph-audio-preview__time{flex:0 0 auto;color:var(--nmorph-semi-contrast-text-color);font-variant-numeric:tabular-nums}.nmorph-audio-preview .nmorph-audio-preview__error{flex:0 1 auto;color:var(--nmorph-error-text-color)}.nmorph-audio-preview .nmorph-audio-preview__range{flex:1 1 0;width:100%;min-width:0;height:6px;padding:0;background:linear-gradient(to right,var(--nmorph-accent-color) var(--nmorph-private-audio-preview-progress, 0%),color-mix(in srgb,var(--nmorph-text-color) 16%,transparent) 0);border-radius:var(--border-radius-100);outline:0;cursor:pointer;appearance:none}.nmorph-audio-preview .nmorph-audio-preview__range:disabled{cursor:default;opacity:.6}.nmorph-audio-preview .nmorph-audio-preview__range::-webkit-slider-thumb{width:14px;height:14px;background:var(--nmorph-accent-color);border:2px solid var(--nmorph-main-color);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset);appearance:none}.nmorph-audio-preview .nmorph-audio-preview__range::-moz-range-thumb{width:14px;height:14px;background:var(--nmorph-accent-color);border:2px solid var(--nmorph-main-color);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset)}.nmorph-audio-preview .nmorph-audio-preview__actions{display:flex;flex:0 0 auto;gap:var(--indentation-01);align-items:center}.nmorph-audio-preview .nmorph-audio-preview__action-link{display:inline-flex;justify-content:center;align-items:center;width:22px;height:22px;color:inherit;text-decoration:none;border-radius:var(--default-border-radius)}.nmorph-audio-preview .nmorph-audio-preview__action-link:hover{color:var(--nmorph-accent-color);background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent)}.nmorph-audio-preview .nmorph-audio-preview__action-link .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-audio-preview.nmorph-audio-preview--compact{min-height:52px;padding:var(--indentation-02)}.nmorph-audio-preview.nmorph-audio-preview--compact .nmorph-audio-preview__icon{width:30px;height:30px}.nmorph-audio-preview.nmorph-audio-preview--no-actions .nmorph-audio-preview__body{padding-inline-end:var(--indentation-02)}.nmorph-audio-preview.nmorph-audio-preview--embedded{width:var(--nmorph-private-audio-preview-width, 100%);min-height:auto;padding:0;background:transparent;border-radius:0;box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--embedded .nmorph-audio-preview__body{gap:0;padding-inline-end:0}.nmorph-audio-preview.nmorph-audio-preview--embedded .nmorph-audio-preview__range{height:5px}.nmorph-audio-preview.nmorph-audio-preview--embedded .nmorph-audio-preview__range::-webkit-slider-thumb{width:11px;height:11px;box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--embedded .nmorph-audio-preview__range::-moz-range-thumb{width:11px;height:11px;box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--embedded .nmorph-audio-preview__play-indicator{box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--no-header .nmorph-audio-preview__time{flex:0 0 auto}.nmorph-audio-preview.nmorph-audio-preview--soft{background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--plain{background:transparent;box-shadow:none}.nmorph-audio-preview.nmorph-audio-preview--error{outline:1px solid var(--nmorph-error-color)}
@@ -1,18 +1,18 @@
1
1
  import './NmorphCalendar.css';
2
2
  import f from "./NmorphCalendar.vue2.js";
3
- import { openBlock as o, createElementBlock as n, normalizeStyle as k, normalizeClass as h, renderSlot as r, createVNode as s, withCtx as l, Fragment as c, renderList as y, createBlock as D, createElementVNode as C, createTextVNode as _, toDisplayString as m } from "vue";
3
+ import { openBlock as o, createElementBlock as r, normalizeStyle as k, normalizeClass as i, renderSlot as n, createVNode as s, mergeProps as C, withCtx as l, Fragment as c, renderList as y, createBlock as D, createElementVNode as m, createTextVNode as _, toDisplayString as v } from "vue";
4
4
  /* empty css */
5
- import v from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ import T from "../../../_virtual/_plugin-vue_export-helper.js";
6
6
  const g = ["data-date", "onClick"];
7
- function T(d, p, B, a, M, w) {
8
- return o(), n(
7
+ function p(d, B, M, a, w, x) {
8
+ return o(), r(
9
9
  "div",
10
10
  {
11
- class: h(a.modifiers),
11
+ class: i(a.modifiers),
12
12
  style: k(a.styles)
13
13
  },
14
14
  [
15
- r(d.$slots, "header", {}, () => [
15
+ n(d.$slots, "header", {}, () => [
16
16
  s(a.NmorphCalendarHeader, {
17
17
  year: a.initialDate.getFullYear(),
18
18
  month: a.initialDate.getMonth(),
@@ -25,54 +25,52 @@ function T(d, p, B, a, M, w) {
25
25
  onClickToday: a.setTodayMonth
26
26
  }, null, 8, ["year", "month", "design", "show-previous-month-button", "show-today-button", "show-next-month-button"])
27
27
  ]),
28
- r(d.$slots, "content", {}, () => [
29
- s(a.NmorphTable, {
28
+ n(d.$slots, "content", {}, () => [
29
+ s(a.NmorphTable, C({
30
30
  data: a.calendar,
31
- bordered: "",
32
- "row-hover": !1,
33
- design: a.props.design
34
- }, {
31
+ "row-hover": !1
32
+ }, a.tableDesignProps), {
35
33
  default: l(() => [
36
- (o(!0), n(
34
+ (o(!0), r(
37
35
  c,
38
36
  null,
39
- y(a.days, (e) => (o(), D(a.NmorphTableColumn, {
40
- key: `${e}`,
41
- prop: e,
42
- label: e.toUpperCase()
37
+ y(a.days, (t) => (o(), D(a.NmorphTableColumn, {
38
+ key: `${t}`,
39
+ prop: t,
40
+ label: t.toUpperCase()
43
41
  }, {
44
42
  default: l(({ scope: b }) => [
45
- (o(!0), n(
43
+ (o(!0), r(
46
44
  c,
47
45
  null,
48
- y(b.rows, (t, i) => (o(), D(a.NmorphTableCell, {
49
- key: i,
50
- row: i
46
+ y(b.rows, (e, h) => (o(), D(a.NmorphTableCell, {
47
+ key: h,
48
+ row: h
51
49
  }, {
52
50
  default: l(() => [
53
- C("div", {
54
- "data-date": `${a.dateData(t[e]).date}`,
55
- class: h([
51
+ m("div", {
52
+ "data-date": `${a.dateData(e[t]).date}`,
53
+ class: i([
56
54
  "nmorph-calendar-date",
57
- `nmorph-calendar-date--${a.dateData(t[e]).monthType}`,
55
+ `nmorph-calendar-date--${a.dateData(e[t]).monthType}`,
58
56
  {
59
- "nmorph-calendar-date--today": a.dateData(t[e]).isToday && !a.dateData(t[e]).hidden && a.props.markToday
57
+ "nmorph-calendar-date--today": a.dateData(e[t]).isToday && !a.dateData(e[t]).hidden && a.props.markToday
60
58
  },
61
- { "nmorph-calendar-date--hidden": a.dateData(t[e]).hidden },
59
+ { "nmorph-calendar-date--hidden": a.dateData(e[t]).hidden },
62
60
  {
63
- "nmorph-calendar-date--selected": a.isValueSelected(a.dateData(t[e]).date)
61
+ "nmorph-calendar-date--selected": a.isValueSelected(a.dateData(e[t]).date)
64
62
  }
65
63
  ]),
66
- onClick: (x) => a.clickDate(a.dateData(t[e]))
64
+ onClick: (P) => a.clickDate(a.dateData(e[t]))
67
65
  }, [
68
- r(d.$slots, "date-cell", {
66
+ n(d.$slots, "date-cell", {
69
67
  scope: {
70
- ...a.dateData(t[e]),
71
- selected: a.isValueSelected(a.dateData(t[e]).date)
68
+ ...a.dateData(e[t]),
69
+ selected: a.isValueSelected(a.dateData(e[t]).date)
72
70
  }
73
71
  }, () => [
74
72
  _(
75
- m(a.dateData(t[e]).hidden ? "-" : a.dateData(t[e]).value),
73
+ v(a.dateData(e[t]).hidden ? "-" : a.dateData(e[t]).value),
76
74
  1
77
75
  /* TEXT */
78
76
  )
@@ -95,14 +93,14 @@ function T(d, p, B, a, M, w) {
95
93
  ]),
96
94
  _: 3
97
95
  /* FORWARDED */
98
- }, 8, ["data", "design"])
96
+ }, 16, ["data"])
99
97
  ])
100
98
  ],
101
99
  6
102
100
  /* CLASS, STYLE */
103
101
  );
104
102
  }
105
- const z = /* @__PURE__ */ v(f, [["render", T], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-calendar/NmorphCalendar.vue"]]);
103
+ const E = /* @__PURE__ */ T(f, [["render", p], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-calendar/NmorphCalendar.vue"]]);
106
104
  export {
107
- z as default
105
+ E as default
108
106
  };
@@ -1,14 +1,14 @@
1
1
  import './NmorphCalendar.css';
2
- import { defineComponent as R, ref as x, onMounted as O, reactive as k, watch as v, computed as s } from "vue";
3
- import { useModifiers as j } from "../../../utils/create-modifiers.js";
4
- import { createCssSizeVariables as z } from "../../../utils/common.js";
5
- import W from "./inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js";
6
- import { useCalendarTexts as Z } from "./hooks/use-calendar-texts.js";
7
- import { hasAnyRangeDateInPrevMonth as F, hasAnyRangeDateInNextMonth as G, isTodayInMonthRange as J, resetTimeToZero as d, getMonthDaysByWeek as K } from "./utils.js";
8
- import L from "../nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.js";
9
- import Q from "../nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.js";
10
- import U from "../nmorph-table/NmorphTable.vue.js";
11
- const ue = /* @__PURE__ */ R({
2
+ import { defineComponent as O, ref as x, onMounted as k, reactive as j, watch as h, computed as u } from "vue";
3
+ import { useModifiers as z } from "../../../utils/create-modifiers.js";
4
+ import { createCssSizeVariables as W } from "../../../utils/common.js";
5
+ import Z from "./inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js";
6
+ import { useCalendarTexts as F } from "./hooks/use-calendar-texts.js";
7
+ import { hasAnyRangeDateInPrevMonth as G, hasAnyRangeDateInNextMonth as J, isTodayInMonthRange as K, resetTimeToZero as d, getMonthDaysByWeek as L } from "./utils.js";
8
+ import Q from "../nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.js";
9
+ import U from "../nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.js";
10
+ import X from "../nmorph-table/NmorphTable.vue.js";
11
+ const se = /* @__PURE__ */ O({
12
12
  __name: "NmorphCalendar",
13
13
  props: {
14
14
  markToday: { type: Boolean, required: !1, default: !0 },
@@ -22,119 +22,121 @@ const ue = /* @__PURE__ */ R({
22
22
  emits: ["update:model-value", "update-initial-date"],
23
23
  setup(N, { expose: b, emit: _ }) {
24
24
  b();
25
- const r = N, i = _, { days: h } = Z(), y = () => {
26
- l.value = M.value;
25
+ const a = N, s = _, { days: v } = F(), y = () => {
26
+ o.value = M.value;
27
27
  }, C = () => {
28
- l.value = /* @__PURE__ */ new Date();
28
+ o.value = /* @__PURE__ */ new Date();
29
29
  }, g = () => {
30
- l.value = A.value;
31
- }, u = () => {
30
+ o.value = A.value;
31
+ }, i = () => {
32
32
  throw new Error("model value and type prop not matched");
33
33
  }, c = (e) => {
34
34
  if (e === null) return null;
35
- if (r.type === "date") {
35
+ if (a.type === "date") {
36
36
  if (e instanceof Date)
37
37
  return d(e);
38
- u();
38
+ i();
39
39
  }
40
- const o = Array.isArray(e) && e.every((a) => a instanceof Date);
41
- if (r.type === "dates") {
42
- if (o)
43
- return e.map((a) => d(a));
44
- u();
40
+ const l = Array.isArray(e) && e.every((r) => r instanceof Date);
41
+ if (a.type === "dates") {
42
+ if (l)
43
+ return e.map((r) => d(r));
44
+ i();
45
45
  }
46
- if (r.type === "daterange") {
47
- if (o)
48
- return e.map((a) => d(a)).slice(0, 2);
49
- u();
46
+ if (a.type === "daterange") {
47
+ if (l)
48
+ return e.map((r) => d(r)).slice(0, 2);
49
+ i();
50
50
  }
51
51
  }, q = (e) => {
52
52
  if (t.value === null) return;
53
- const { monthType: o, hidden: a } = e;
54
- if (a) return;
55
- o === "next" && g(), o === "previous" && y();
53
+ const { monthType: l, hidden: r } = e;
54
+ if (r) return;
55
+ l === "next" && g(), l === "previous" && y();
56
56
  const { date: n } = e;
57
- if (r.type === "date" && (t.value = n, i("update:model-value", t.value)), r.type === "dates") {
58
- if (!Array.isArray(t.value)) return u();
59
- const m = n.toDateString(), w = t.value.map((P) => P.toDateString()).indexOf(m);
60
- w !== -1 ? t.value.splice(w, 1) : t.value.push(n), i("update:model-value", t.value);
57
+ if (a.type === "date" && (t.value = n, s("update:model-value", t.value)), a.type === "dates") {
58
+ if (!Array.isArray(t.value)) return i();
59
+ const m = n.toDateString(), w = t.value.map((R) => R.toDateString()).indexOf(m);
60
+ w !== -1 ? t.value.splice(w, 1) : t.value.push(n), s("update:model-value", t.value);
61
61
  }
62
- if (r.type === "daterange") {
63
- if (!Array.isArray(t.value)) return u();
64
- t.value.length === 0 ? t.value.push(n) : t.value.length === 1 ? n < t.value[0] ? t.value = [n, t.value[0]] : t.value.push(n) : t.value = [n], i("update:model-value", t.value.slice(0, 2));
62
+ if (a.type === "daterange") {
63
+ if (!Array.isArray(t.value)) return i();
64
+ t.value.length === 0 ? t.value.push(n) : t.value.length === 1 ? n < t.value[0] ? t.value = [n, t.value[0]] : t.value.push(n) : t.value = [n], s("update:model-value", t.value.slice(0, 2));
65
65
  }
66
- }, D = (e, o) => {
67
- const [a, n] = o;
68
- return o.length === 1 ? e.toDateString() === a.toDateString() : a && n ? e >= d(a) && e <= d(n) : !1;
66
+ }, D = (e, l) => {
67
+ const [r, n] = l;
68
+ return l.length === 1 ? e.toDateString() === r.toDateString() : r && n ? e >= d(r) && e <= d(n) : !1;
69
69
  }, B = (e) => {
70
70
  if (t.value === null) return !1;
71
- if (r.type === "date")
72
- return Array.isArray(t.value) ? u() : t.value.toDateString() === e.toDateString();
73
- if (r.type === "dates")
74
- return Array.isArray(t.value) ? !!t.value.find((a) => a.toDateString() === e.toDateString()) : u();
75
- if (r.type === "daterange")
76
- return Array.isArray(t.value) ? D(e, t.value) : u();
77
- }, l = x(r.initialDate), t = x(c(r.modelValue));
78
- O(() => {
79
- i("update:model-value", t.value);
71
+ if (a.type === "date")
72
+ return Array.isArray(t.value) ? i() : t.value.toDateString() === e.toDateString();
73
+ if (a.type === "dates")
74
+ return Array.isArray(t.value) ? !!t.value.find((r) => r.toDateString() === e.toDateString()) : i();
75
+ if (a.type === "daterange")
76
+ return Array.isArray(t.value) ? D(e, t.value) : i();
77
+ }, o = x(a.initialDate), t = x(c(a.modelValue));
78
+ k(() => {
79
+ s("update:model-value", t.value);
80
80
  });
81
- let p = k([]);
81
+ let p = j([]);
82
82
  const f = () => {
83
- p = [], K(l, r.range).forEach((o) => {
84
- const a = {};
85
- o.forEach((n, m) => {
86
- const T = h[m];
87
- a[T] = n;
88
- }), p.push(a);
83
+ p = [], L(o, a.range).forEach((l) => {
84
+ const r = {};
85
+ l.forEach((n, m) => {
86
+ const T = v[m];
87
+ r[T] = n;
88
+ }), p.push(r);
89
89
  });
90
90
  };
91
- v(
92
- () => r.initialDate,
91
+ h(
92
+ () => a.initialDate,
93
93
  (e) => {
94
- l.value = e;
94
+ o.value = e;
95
95
  },
96
96
  {
97
97
  deep: !0
98
98
  }
99
- ), v(l, () => {
100
- f(), i("update-initial-date", l.value);
101
- }), v(
102
- () => r.modelValue,
99
+ ), h(o, () => {
100
+ f(), s("update-initial-date", o.value);
101
+ }), h(
102
+ () => a.modelValue,
103
103
  (e) => {
104
104
  t.value = c(e);
105
105
  }
106
106
  );
107
- const M = s(() => new Date(l.value.setMonth(l.value.getMonth() - 1))), A = s(() => new Date(l.value.setMonth(l.value.getMonth() + 1))), V = s(() => {
108
- const { range: e } = r, o = e ? F(l.value, e[0]) : !0, a = e ? G(l.value, e[1]) : !0, n = J(e);
107
+ const M = u(() => new Date(o.value.setMonth(o.value.getMonth() - 1))), A = u(() => new Date(o.value.setMonth(o.value.getMonth() + 1))), V = u(() => {
108
+ const { range: e } = a, l = e ? G(o.value, e[0]) : !0, r = e ? J(o.value, e[1]) : !0, n = K(e);
109
109
  return {
110
- showPreviousMonthButton: o,
111
- showNextMonthButton: a,
110
+ showPreviousMonthButton: l,
111
+ showNextMonthButton: r,
112
112
  showTodayButton: n
113
113
  };
114
- }), E = s(
115
- () => j({
114
+ }), E = u(
115
+ () => z({
116
116
  "nmorph-calendar": []
117
117
  })
118
- ), H = s(
119
- () => z({
120
- "--nmorph-private-calendar-cell-height": r.cellHeight
118
+ ), P = u(
119
+ () => W({
120
+ "--nmorph-private-calendar-cell-height": a.cellHeight
121
121
  })
122
+ ), H = u(
123
+ () => a.design === "plain" ? { design: "plain", bordered: !0 } : { design: "nmorph" }
122
124
  ), I = (e) => e;
123
125
  f();
124
- const S = { props: r, emit: i, days: h, setPreviousMonth: y, setTodayMonth: C, setNextMonth: g, wrongType: u, convertValue: c, clickDate: q, isDateInRange: D, isValueSelected: B, initialDate: l, selectedValue: t, get calendar() {
126
+ const S = { props: a, emit: s, days: v, setPreviousMonth: y, setTodayMonth: C, setNextMonth: g, wrongType: i, convertValue: c, clickDate: q, isDateInRange: D, isValueSelected: B, initialDate: o, selectedValue: t, get calendar() {
125
127
  return p;
126
128
  }, set calendar(e) {
127
129
  p = e;
128
- }, updateCalendar: f, prevMonth: M, nextMonth: A, showHeaderButtons: V, modifiers: E, styles: H, dateData: I, get NmorphTable() {
129
- return U;
130
+ }, updateCalendar: f, prevMonth: M, nextMonth: A, showHeaderButtons: V, modifiers: E, styles: P, tableDesignProps: H, dateData: I, get NmorphTable() {
131
+ return X;
130
132
  }, get NmorphTableColumn() {
131
- return Q;
133
+ return U;
132
134
  }, get NmorphTableCell() {
133
- return L;
134
- }, NmorphCalendarHeader: W };
135
+ return Q;
136
+ }, NmorphCalendarHeader: Z };
135
137
  return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
136
138
  }
137
139
  });
138
140
  export {
139
- ue as default
141
+ se as default
140
142
  };
@@ -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;--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
+ .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-light-opacity: 0;--nmorph-private-card-paper-dark-opacity: 0;--nmorph-private-card-paper-opacity: var(--nmorph-private-card-paper-light-opacity);--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}:root[nmorph-data-theme=dark] .nmorph-card{--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='.36' filter='url(%23n)'/%3E%3C/svg%3E");--nmorph-private-card-paper-opacity: var(--nmorph-private-card-paper-dark-opacity);--nmorph-private-card-paper-shadow-color: color-mix(in srgb, var(--nmorph-black-color) 54%, transparent);--nmorph-private-card-paper-light-color: color-mix(in srgb, var(--nmorph-white-color) 18%, transparent)}
@@ -1,9 +1,9 @@
1
1
  import './NmorphCard.css';
2
- import { defineComponent as h, useSlots as g, computed as a } from "vue";
3
- import { useModifiers as y } from "../../../utils/create-modifiers.js";
2
+ import { defineComponent as g, useSlots as y, computed as i } from "vue";
3
+ import { useModifiers as v } from "../../../utils/create-modifiers.js";
4
4
  import { toCssSize as r } from "../../../utils/common.js";
5
- import { NmorphShadowType as v } from "../../../types/common.types.js";
6
- const N = /* @__PURE__ */ h({
5
+ import { NmorphShadowType as S } from "../../../types/common.types.js";
6
+ const w = /* @__PURE__ */ g({
7
7
  __name: "NmorphCard",
8
8
  props: {
9
9
  design: { type: null, required: !1, default: "nmorph" },
@@ -20,26 +20,29 @@ const N = /* @__PURE__ */ h({
20
20
  },
21
21
  setup(s, { expose: u }) {
22
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] : ""],
23
+ const e = s, l = y(), d = i(() => e.design || "nmorph"), c = i(
24
+ () => v({
25
+ nmorph: [d.value === "nmorph" ? S[e.shadowType] : ""],
26
26
  "nmorph-card": [d.value, e.shadowType, e.fill ? "fill" : "fit-content"]
27
27
  })
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);
28
+ ), m = i(() => {
29
+ const t = e.padding !== void 0 ? r(e.padding) : r(e.cardPadding), n = r(e.radius), p = r(e.contentPadding), a = Math.max(0, Number(e.paper) || 0), f = Math.min(a * 0.08, 0.48), h = Math.min(a * 0.04, 0.2);
30
30
  return {
31
31
  ...e.shadowType === "combined" && {
32
32
  "--nmorph-private-card-combined-border-width": `${e.combinedShadowBorderWidth}px`
33
33
  },
34
34
  ...t !== void 0 && { "--nmorph-private-card-padding": t, padding: t },
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) }
35
+ ...n !== void 0 && { "--nmorph-private-card-radius": n },
36
+ ...p !== void 0 && { "--nmorph-private-card-content-padding": p },
37
+ ...a > 0 && {
38
+ "--nmorph-private-card-paper-light-opacity": String(f),
39
+ "--nmorph-private-card-paper-dark-opacity": String(h)
40
+ }
38
41
  };
39
- }), i = { props: e, slots: l, resolvedDesign: d, modifiers: m, styles: c };
40
- return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
42
+ }), o = { props: e, slots: l, resolvedDesign: d, modifiers: c, styles: m };
43
+ return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
41
44
  }
42
45
  });
43
46
  export {
44
- N as default
47
+ w as default
45
48
  };
@@ -1 +1 @@
1
- .nmorph-file-card{display:flex;gap:var(--indentation-03);align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:var(--nmorph-private-file-card-height, auto);min-height:var(--nmorph-private-file-card-height, 64px);padding:var(--indentation-03);color:var(--nmorph-text-color);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-file-card .nmorph-file-card__icon{position:relative;display:flex;flex:0 0 auto;justify-content:center;align-items:center;width:36px;height:36px;color:var(--nmorph-text-color);background:color-mix(in srgb,var(--nmorph-text-color) 10%,transparent);border-radius:var(--default-border-radius);--nmorph-private-icon-color: currentColor}.nmorph-file-card .nmorph-file-card__icon-action{position:absolute;right:-4px;bottom:-4px;display:inline-flex;justify-content:center;align-items:center;width:18px;height:18px;color:var(--nmorph-contrast-text-color);text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 36%,transparent);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset)}.nmorph-file-card .nmorph-file-card__icon-action:hover{background:color-mix(in srgb,var(--nmorph-black-color) 48%,transparent)}.nmorph-file-card .nmorph-file-card__icon-action .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-file-card .nmorph-file-card__body{display:flex;flex:1 1 0;flex-direction:column;gap:var(--indentation-01);min-width:0}.nmorph-file-card .nmorph-file-card__info{display:flex;flex-direction:column;gap:2px;min-width:0}.nmorph-file-card .nmorph-file-card__name,.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-file-card .nmorph-file-card__name{font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size);line-height:var(--nmorph-typography-label-line-height)}.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-file-card .nmorph-file-card__meta{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__error{color:var(--nmorph-error-text-color)}.nmorph-file-card .nmorph-file-card__audio-preview,.nmorph-file-card .nmorph-file-card__video-preview,.nmorph-file-card .nmorph-file-card__image-preview{width:100%;min-width:0}.nmorph-file-card .nmorph-file-card__image-preview{display:block;height:var(--nmorph-private-file-card-media-height, 120px);padding:0;overflow:hidden;color:inherit;font:inherit;background:transparent;border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-file-card .nmorph-file-card__image-preview .nmorph-file-card__image{display:block;width:100%;max-width:100%;height:100%;object-fit:cover}.nmorph-file-card .nmorph-file-card__badge{flex:0 0 auto;max-width:72px;padding:2px 6px;overflow:hidden;color:var(--nmorph-accent-color);font-weight:var(--font-weight-bold);font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);white-space:nowrap;text-transform:uppercase;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__visual-size{position:absolute;right:var(--indentation-02);bottom:var(--indentation-02);z-index:2;display:inline-flex;align-items:center;min-width:0;max-width:calc(100% - var(--indentation-04));min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius);pointer-events:none}.nmorph-file-card .nmorph-file-card__actions{display:flex;flex:0 0 auto;gap:var(--indentation-01);align-items:center}.nmorph-file-card .nmorph-file-card__action-link,.nmorph-file-card .nmorph-file-card__action-loader{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:inherit;line-height:1;text-decoration:none;border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__action-link:hover{color:var(--nmorph-accent-color);background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent)}.nmorph-file-card .nmorph-file-card__action-link .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-file-card .nmorph-file-card__action-loader{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__action-loader .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-file-card.nmorph-file-card--custom-actions,.nmorph-file-card.nmorph-file-card--compact{position:relative;padding-inline-end:calc(var(--indentation-03) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--custom-actions .nmorph-file-card__actions,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{position:absolute;top:var(--indentation-03);right:var(--indentation-03);z-index:3}.nmorph-file-card.nmorph-file-card--compact{min-height:var(--nmorph-private-file-card-height, 52px);padding:var(--indentation-02);padding-inline-end:calc(var(--indentation-02) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__icon{width:30px;height:30px}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__audio-preview,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__video-preview{margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__image-preview{height:var(--nmorph-private-file-card-media-height, 96px);margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{top:var(--indentation-02);right:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--media-audio.nmorph-file-card--no-actions .nmorph-file-card__body{padding-inline-end:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--media-visual{position:relative;display:block;gap:0;min-height:0;padding:0;padding-inline-end:0;overflow:hidden}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__body{position:relative;display:block;width:100%;min-width:0;height:100%}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__info{position:absolute;top:var(--indentation-02);left:var(--indentation-02);z-index:2;max-width:calc(100% - 48px);pointer-events:none}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__name{display:block;min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);line-height:22px;white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview__media,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image{display:block;width:100%;max-width:none;height:var(--nmorph-private-file-card-media-height, 100%);border-radius:inherit;object-fit:cover}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link .nmorph-icon,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader .nmorph-icon{flex:0 0 auto;--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link:hover{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-file-card__info{max-width:calc(100% - 112px)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-video-preview__actions{right:calc(var(--indentation-02) + 26px)}.nmorph-file-card.nmorph-file-card--media-image .nmorph-file-card__image-preview{border-radius:inherit}.nmorph-file-card.nmorph-file-card--error{outline:1px solid var(--nmorph-error-color)}.nmorph-file-card.nmorph-file-card--soft{background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);box-shadow:none}.nmorph-file-card.nmorph-file-card--soft .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--plain{background:transparent;box-shadow:none}.nmorph-file-card.nmorph-file-card--plain .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--icon-plain .nmorph-file-card__icon{background:transparent}
1
+ .nmorph-file-card{display:flex;gap:var(--indentation-03);align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:var(--nmorph-private-file-card-height, auto);min-height:var(--nmorph-private-file-card-height, 64px);padding:var(--indentation-03);color:var(--nmorph-text-color);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-file-card .nmorph-file-card__icon{position:relative;display:flex;flex:0 0 auto;justify-content:center;align-items:center;width:36px;height:36px;color:var(--nmorph-text-color);background:color-mix(in srgb,var(--nmorph-text-color) 10%,transparent);border-radius:var(--default-border-radius);--nmorph-private-icon-color: currentColor}.nmorph-file-card .nmorph-file-card__icon-action{position:absolute;right:-4px;bottom:-4px;display:inline-flex;justify-content:center;align-items:center;width:18px;height:18px;color:var(--nmorph-contrast-text-color);text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 36%,transparent);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset)}.nmorph-file-card .nmorph-file-card__icon-action:hover{background:color-mix(in srgb,var(--nmorph-black-color) 48%,transparent)}.nmorph-file-card .nmorph-file-card__icon-action .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-file-card .nmorph-file-card__body{display:flex;flex:1 1 0;flex-direction:column;gap:var(--indentation-01);min-width:0}.nmorph-file-card .nmorph-file-card__info{display:flex;flex-direction:column;gap:2px;min-width:0}.nmorph-file-card .nmorph-file-card__name,.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-file-card .nmorph-file-card__name{font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size);line-height:var(--nmorph-typography-label-line-height)}.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-file-card .nmorph-file-card__meta{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__error{color:var(--nmorph-error-text-color)}.nmorph-file-card .nmorph-file-card__audio-preview,.nmorph-file-card .nmorph-file-card__video-preview,.nmorph-file-card .nmorph-file-card__image-preview{width:100%;min-width:0}.nmorph-file-card .nmorph-file-card__image-preview{display:block;height:var(--nmorph-private-file-card-media-height, 120px);padding:0;overflow:hidden;color:inherit;font:inherit;background:transparent;border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-file-card .nmorph-file-card__image-preview .nmorph-file-card__image{display:block;width:100%;max-width:100%;height:100%;object-fit:cover}.nmorph-file-card .nmorph-file-card__badge{flex:0 0 auto;max-width:72px;padding:2px 6px;overflow:hidden;color:var(--nmorph-accent-color);font-weight:var(--font-weight-bold);font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);white-space:nowrap;text-transform:uppercase;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__visual-size{position:absolute;right:var(--indentation-02);bottom:var(--indentation-02);z-index:2;display:inline-flex;align-items:center;min-width:0;max-width:calc(100% - var(--indentation-04));min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius);pointer-events:none}.nmorph-file-card .nmorph-file-card__actions{display:flex;flex:0 0 auto;gap:var(--indentation-01);align-items:center}.nmorph-file-card .nmorph-file-card__action-link,.nmorph-file-card .nmorph-file-card__action-loader{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:inherit;line-height:1;text-decoration:none;border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__action-link:hover{color:var(--nmorph-accent-color);background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent)}.nmorph-file-card .nmorph-file-card__action-link .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-file-card .nmorph-file-card__action-loader{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__action-loader .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-file-card.nmorph-file-card--custom-actions,.nmorph-file-card.nmorph-file-card--compact{position:relative;padding-inline-end:calc(var(--indentation-03) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--custom-actions .nmorph-file-card__actions,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{position:absolute;top:var(--indentation-03);right:var(--indentation-03);z-index:3}.nmorph-file-card.nmorph-file-card--compact{min-height:var(--nmorph-private-file-card-height, 52px);padding:var(--indentation-02);padding-inline-end:calc(var(--indentation-02) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__icon{width:30px;height:30px}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__audio-preview,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__video-preview{margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__image-preview{height:var(--nmorph-private-file-card-media-height, 96px);margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{top:var(--indentation-02);right:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--loading.nmorph-file-card--compact{padding:var(--indentation-03);padding-inline-end:calc(var(--indentation-03) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--loading.nmorph-file-card--compact .nmorph-file-card__actions{top:var(--indentation-03);right:var(--indentation-03)}.nmorph-file-card.nmorph-file-card--media-audio.nmorph-file-card--no-actions .nmorph-file-card__body{padding-inline-end:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--media-visual{position:relative;display:block;gap:0;min-height:0;padding:0;padding-inline-end:0;overflow:hidden}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__body{position:relative;display:block;width:100%;min-width:0;height:100%}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__info{position:absolute;top:var(--indentation-02);left:var(--indentation-02);z-index:2;max-width:calc(100% - 48px);pointer-events:none}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__name{display:block;min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);line-height:22px;white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview__media,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image{display:block;width:100%;max-width:none;height:var(--nmorph-private-file-card-media-height, 100%);border-radius:inherit;object-fit:cover}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link .nmorph-icon,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader .nmorph-icon{flex:0 0 auto;--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link:hover{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-file-card__info{max-width:calc(100% - 112px)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-video-preview__actions{right:calc(var(--indentation-02) + 26px)}.nmorph-file-card.nmorph-file-card--media-image .nmorph-file-card__image-preview{border-radius:inherit}.nmorph-file-card.nmorph-file-card--error{outline:1px solid var(--nmorph-error-color)}.nmorph-file-card.nmorph-file-card--soft{background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);box-shadow:none}.nmorph-file-card.nmorph-file-card--soft .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--plain{background:transparent;box-shadow:none}.nmorph-file-card.nmorph-file-card--plain .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--icon-plain .nmorph-file-card__icon{background:transparent}