@nmorph/nmorph-ui-kit 2.2.10 → 2.2.12

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 (37) hide show
  1. package/dist/components/data/nmorph-avatar/NmorphAvatar.css +1 -0
  2. package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +74 -46
  3. package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +26 -21
  4. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +4 -4
  5. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +77 -38
  6. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +31 -30
  7. package/dist/components/data/nmorph-pagination/NmorphPagination.css +1 -1
  8. package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +33 -28
  9. package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +18 -17
  10. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +8 -8
  11. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.css +1 -1
  12. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue.js +15 -13
  13. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +8 -8
  14. package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +22 -14
  15. package/dist/components/form/nmorph-radio/NmorphRadio.css +1 -1
  16. package/dist/components/form/nmorph-radio/NmorphRadio.vue.js +22 -20
  17. package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +7 -7
  18. package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +14 -14
  19. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +7 -7
  20. package/dist/hooks/use-common-styles.js +10 -11
  21. package/dist/index.es.js +695 -694
  22. package/dist/index.umd.js +27 -28
  23. package/dist/nuxt.mjs +36 -7
  24. package/dist/package.json.js +1 -1
  25. package/dist/plugin.js +21 -20
  26. package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +1 -1
  27. package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -3
  28. package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +14 -2
  29. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +3 -0
  30. package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +1 -0
  31. package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +4 -3
  32. package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +1 -0
  33. package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +4 -3
  34. package/dist/src/types/index.d.ts +9 -2
  35. package/dist/style.css +1 -1
  36. package/dist/types/index.js +14 -8
  37. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import './NmorphRadioGroup.css';
2
- import { defineComponent as m, ref as c, watch as h, computed as d, provide as a } from "vue";
2
+ import { defineComponent as m, ref as c, watch as h, computed as d, provide as o } from "vue";
3
3
  import { useModifiers as y } from "../../../utils/create-modifiers.js";
4
4
  import g from "../nmorph-radio/NmorphRadio.vue.js";
5
5
  const b = /* @__PURE__ */ m({
@@ -7,33 +7,33 @@ const b = /* @__PURE__ */ m({
7
7
  props: {
8
8
  modelValue: { type: String, required: !0, default: "" },
9
9
  options: { type: Array, required: !1, default: () => [] },
10
- styleType: { type: null, required: !1, default: "radio-style" },
10
+ styleType: { type: null, required: !1, default: "button" },
11
11
  direction: { type: null, required: !1, default: "row" },
12
+ height: { type: null, required: !1, default: "thin" },
12
13
  id: { type: String, required: !1 },
13
14
  name: { type: String, required: !1 },
14
15
  autocomplete: { type: String, required: !1 },
15
- height: { type: null, required: !1, default: "thin" },
16
16
  disabled: { type: Boolean, required: !1, default: !1 },
17
17
  tabindex: { type: Number, required: !1 }
18
18
  },
19
19
  emits: ["update:model-value"],
20
- setup(p, { expose: n, emit: s }) {
21
- n();
22
- const e = p, r = c(e.modelValue);
20
+ setup(n, { expose: p, emit: s }) {
21
+ p();
22
+ const e = n, t = c(e.modelValue);
23
23
  h(
24
24
  () => e.modelValue,
25
- (t) => {
26
- r.value = t;
25
+ (r) => {
26
+ t.value = r;
27
27
  }
28
28
  );
29
- const o = s, i = (t) => {
30
- r.value = t, o("update:model-value", r.value);
31
- }, f = d(() => y({ "nmorph-radio-group": [e.styleType, e.direction] })), l = d(() => e.height);
32
- a("radio-group-selected-value", r), a("change-radio-button-value-handler", i), a("radio-group-height", l);
33
- const u = { props: e, initialValue: r, emit: o, changeHandler: i, modifiers: f, height: l, get NmorphRadio() {
29
+ const a = s, i = (r) => {
30
+ t.value = r, a("update:model-value", t.value);
31
+ }, f = d(() => y({ "nmorph-radio-group": [e.styleType, e.direction] })), u = d(() => e.height);
32
+ o("radio-group-selected-value", t), o("change-radio-button-value-handler", i), o("radio-group-height", u);
33
+ const l = { props: e, initialValue: t, emit: a, changeHandler: i, modifiers: f, height: u, get NmorphRadio() {
34
34
  return g;
35
35
  } };
36
- return Object.defineProperty(u, "__isScriptSetup", { enumerable: !1, value: !0 }), u;
36
+ return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
37
37
  }
38
38
  });
39
39
  export {
@@ -1,20 +1,20 @@
1
1
  import './NmorphBacktop.css';
2
2
  import p from "./NmorphBacktop.vue2.js";
3
- import { openBlock as l, createElementBlock as a, normalizeStyle as i, createElementVNode as t, normalizeClass as c, withModifiers as m, renderSlot as s, createVNode as r, withCtx as e } from "vue";
3
+ import { openBlock as a, createElementBlock as l, normalizeStyle as c, createElementVNode as t, normalizeClass as i, withModifiers as m, renderSlot as s, createVNode as r, withCtx as e } from "vue";
4
4
  /* empty css */
5
5
  import d from "../../../_virtual/_plugin-vue_export-helper.js";
6
6
  function h(n, f, _, o, k, b) {
7
- return l(), a(
7
+ return a(), l(
8
8
  "div",
9
9
  {
10
- style: i({ "--nmorph-backtop-right": `${o.props.right}px`, "--nmorph-backtop-bottom": `${o.props.bottom}px` })
10
+ style: c({ "--nmorph-backtop-right": `${o.props.right}px`, "--nmorph-backtop-bottom": `${o.props.bottom}px` })
11
11
  },
12
12
  [
13
13
  t(
14
14
  "div",
15
15
  {
16
16
  ref: "selfDOMEl",
17
- class: c(o.modifiers)
17
+ class: i(o.modifiers)
18
18
  },
19
19
  [
20
20
  t("div", {
@@ -27,7 +27,7 @@ function h(n, f, _, o, k, b) {
27
27
  default: e(() => [
28
28
  r(o.NmorphIcon, {
29
29
  class: "nmorph-backtop__up-icon",
30
- color: o.props.design === "nmorph" ? void 0 : "var(--nmorph-white-color)"
30
+ color: o.props.design === "nmorph" ? void 0 : "var(--nmorph-contrast-text-color)"
31
31
  }, {
32
32
  default: e(() => [
33
33
  r(o.NmorphIconChevronDown)
@@ -50,7 +50,7 @@ function h(n, f, _, o, k, b) {
50
50
  /* STYLE */
51
51
  );
52
52
  }
53
- const x = /* @__PURE__ */ d(p, [["render", h], ["__file", "/builds/ketjo/nmorph/library/src/components/navigation/nmorph-backtop/NmorphBacktop.vue"]]);
53
+ const g = /* @__PURE__ */ d(p, [["render", h], ["__file", "/builds/ketjo/nmorph/library/src/components/navigation/nmorph-backtop/NmorphBacktop.vue"]]);
54
54
  export {
55
- x as default
55
+ g as default
56
56
  };
@@ -11,7 +11,7 @@ const b = {
11
11
  "nmorph--shadow-outset": e,
12
12
  "nmorph--shadow-inset": o,
13
13
  "nmorph--shadow-combined": p
14
- }, x = () => {
14
+ }, g = () => {
15
15
  let t = `
16
16
  :root {
17
17
  --font-size-tiny: 10px;
@@ -198,6 +198,12 @@ const b = {
198
198
  height: var(--height);
199
199
  }
200
200
 
201
+ .nmorph--extra-thin-component {
202
+ --height: var(--extra-thin-component);
203
+
204
+ height: var(--height);
205
+ }
206
+
201
207
  .nmorph--thick-component {
202
208
  --height: var(--thick-component);
203
209
 
@@ -281,15 +287,8 @@ const b = {
281
287
  cursor: pointer;
282
288
  }
283
289
 
284
- .nmorph-avatar__preview {
285
- position: absolute;
286
- width: 0;
287
- height: 0;
288
- overflow: visible;
289
- }
290
-
291
- .nmorph-avatar__preview .nmorph-image-preview__trigger {
292
- display: none;
290
+ .nmorph-avatar--preview:hover > .nmorph-image {
291
+ filter: brightness(0.8);
293
292
  }
294
293
 
295
294
  .nmorph-image {
@@ -535,5 +534,5 @@ const b = {
535
534
  r.innerHTML = t, document.head.appendChild(r);
536
535
  };
537
536
  export {
538
- x as useCommonStyles
537
+ g as useCommonStyles
539
538
  };