@nmorph/nmorph-ui-kit 3.0.11 → 3.0.13

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.
@@ -2,7 +2,7 @@ import './NmorphErrorBox.css';
2
2
  import { defineComponent as p, computed as s } from "vue";
3
3
  import { useModifiers as u } from "../../../../../../../utils/create-modifiers.js";
4
4
  import { NmorphComponentThickness as c } from "../../../../../../../types/common.types.js";
5
- const h = /* @__PURE__ */ p({
5
+ const d = /* @__PURE__ */ p({
6
6
  __name: "NmorphErrorBox",
7
7
  props: {
8
8
  thickness: { type: null, required: !1, default: "basic" },
@@ -13,16 +13,16 @@ const h = /* @__PURE__ */ p({
13
13
  i();
14
14
  const e = n, t = s(() => {
15
15
  const r = Array.isArray(e.errors) ? e.errors : e.errors.value;
16
- return r.length ? [r[r.length - 1]] : [];
16
+ return r.length ? r[r.length - 1] : "";
17
17
  }), a = s(
18
18
  () => u({
19
19
  nmorph: [c[e.thickness]],
20
- "nmorph-error-box": [e.staticHeight && "static-height", t.value.length === 0 && "empty"]
20
+ "nmorph-error-box": [e.staticHeight && "static-height", !t.value && "empty"]
21
21
  })
22
22
  ), o = { props: e, currentError: t, modifiers: a };
23
23
  return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
24
24
  }
25
25
  });
26
26
  export {
27
- h as default
27
+ d as default
28
28
  };
@@ -1 +1 @@
1
- .nmorph-select-option{--nmorph-private-select-option-hover-background: var(--nmorph-accent-color);--nmorph-private-select-option-hover-color: var(--nmorph-white-color);display:flex;gap:var(--indentation-01);justify-content:space-between;align-items:center;box-sizing:border-box;min-width:0;padding:var(--indentation-00) var(--default-indentation-input);cursor:pointer}.nmorph-select-option .nmorph-select-option__content{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transform:translateY(var(--nmorph-private-control-text-offset-y))}.nmorph-select-option .nmorph-select-option__content span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-select-option .nmorph-select-option__checked{flex:0 0 auto}.nmorph-select-option:not(.nmorph-select-option--disabled):hover{background:var(--nmorph-private-select-option-hover-background)}.nmorph-select-option:not(.nmorph-select-option--disabled):hover span{color:var(--nmorph-private-select-option-hover-color)}.nmorph-select-option:not(.nmorph-select-option--disabled):hover .nmorph-select-option__checked{--nmorph-private-icon-color: var(--nmorph-private-select-option-hover-color)}.nmorph-select-option.nmorph-select-option--focused:not(.nmorph-select-option--disabled){background:var(--nmorph-private-select-option-hover-background)}.nmorph-select-option.nmorph-select-option--focused:not(.nmorph-select-option--disabled) span{color:var(--nmorph-private-select-option-hover-color)}.nmorph-select-option.nmorph-select-option--focused:not(.nmorph-select-option--disabled) .nmorph-select-option__checked{--nmorph-private-icon-color: var(--nmorph-private-select-option-hover-color)}.nmorph-select-option.nmorph-select-option--disabled{cursor:not-allowed;opacity:.6;pointer-events:none}
1
+ .nmorph-select-option{--nmorph-private-select-option-hover-background: var(--nmorph-accent-color);--nmorph-private-select-option-hover-color: var(--nmorph-white-color);display:flex;gap:var(--indentation-01);justify-content:space-between;align-items:center;box-sizing:border-box;min-width:0;padding:var(--indentation-00) var(--default-indentation-input);cursor:pointer}.nmorph-select-option .nmorph-select-option__content{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transform:translateY(var(--nmorph-private-control-text-offset-y))}.nmorph-select-option .nmorph-select-option__content span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-select-option .nmorph-select-option__checked{flex:0 0 auto}.nmorph-select-option:not(.nmorph-select-option--disabled):hover{color:var(--nmorph-private-select-option-hover-color);background:var(--nmorph-private-select-option-hover-background);--nmorph-private-icon-color: var(--nmorph-private-select-option-hover-color)}.nmorph-select-option:not(.nmorph-select-option--disabled):hover :where(*){color:inherit}.nmorph-select-option.nmorph-select-option--focused:not(.nmorph-select-option--disabled){color:var(--nmorph-private-select-option-hover-color);background:var(--nmorph-private-select-option-hover-background);--nmorph-private-icon-color: var(--nmorph-private-select-option-hover-color)}.nmorph-select-option.nmorph-select-option--focused:not(.nmorph-select-option--disabled) :where(*){color:inherit}.nmorph-select-option.nmorph-select-option--disabled{cursor:not-allowed;opacity:.6;pointer-events:none}