sit-onyx 1.6.0-dev-20260112070348 → 1.6.0-dev-20260112084701

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.
package/dist/index.js CHANGED
@@ -289,10 +289,11 @@ const Ua = ["innerHTML"], U = /* @__PURE__ */ R({
289
289
  );
290
290
  }, Qe = (n) => n;
291
291
  function Wt() {
292
- const n = lt();
292
+ const n = lt(null);
293
293
  return m({
294
294
  set: (t) => {
295
- Array.isArray(t) ? n.value = t.at(0) : t != null && "$el" in t ? n.value = t.$el : n.value = t;
295
+ const e = Array.isArray(t) ? t.at(0) : t;
296
+ e != null && "$el" in e ? n.value = e.$el : n.value = e ?? null;
296
297
  },
297
298
  get: () => n.value
298
299
  });
@@ -1010,7 +1011,7 @@ const Fs = Qe((n) => {
1010
1011
  (n) => {
1011
1012
  const t = Wt(), e = m(() => F(n.min) ?? 0), o = m(() => F(n.max) ?? 100), a = m(() => F(n.step) ?? 1), s = P();
1012
1013
  te(s, (y) => {
1013
- y != null && Array.from(t.value.querySelectorAll('[role="slider"]')).at(y)?.focus();
1014
+ y != null && Array.from(t.value?.querySelectorAll('[role="slider"]') ?? []).at(y)?.focus();
1014
1015
  });
1015
1016
  const i = m(() => {
1016
1017
  const y = F(n.shiftStep);
@@ -1083,8 +1084,8 @@ const Fs = Qe((n) => {
1083
1084
  disabled: m(() => s.value == null)
1084
1085
  });
1085
1086
  const f = (y) => {
1086
- const x = t.value.getBoundingClientRect();
1087
- if (x.width <= 0) return;
1087
+ const x = t.value?.getBoundingClientRect();
1088
+ if (!x || x.width <= 0) return;
1088
1089
  const w = ct.clamp((y - x.left) / x.width, 0, 1);
1089
1090
  return ct.percentToValue(w, e.value, o.value);
1090
1091
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sit-onyx",
3
3
  "description": "A design system and Vue.js component library created by Schwarz IT",
4
- "version": "1.6.0-dev-20260112070348",
4
+ "version": "1.6.0-dev-20260112084701",
5
5
  "type": "module",
6
6
  "author": "Schwarz IT KG",
7
7
  "license": "Apache-2.0",
@@ -40,7 +40,7 @@
40
40
  "peerDependencies": {
41
41
  "typescript": ">= 5.2.2",
42
42
  "vue": ">= 3.5.0",
43
- "@sit-onyx/icons": "^1.4.0-dev-20260112070348"
43
+ "@sit-onyx/icons": "^1.4.0-dev-20260112084701"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@axe-core/playwright": "^4.11.0",
@@ -59,8 +59,8 @@
59
59
  "vue-i18n": "^11.2.8",
60
60
  "vue-router": "^4.6.4",
61
61
  "@sit-onyx/flags": "^1.0.0",
62
- "@sit-onyx/headless": "^0.5.0-dev-20260112070348",
63
- "@sit-onyx/playwright-utils": "^1.1.0-dev-20260112070348",
62
+ "@sit-onyx/headless": "^0.5.0-dev-20260112084701",
63
+ "@sit-onyx/playwright-utils": "^1.1.0-dev-20260112084701",
64
64
  "@sit-onyx/shared": "^0.1.0",
65
65
  "@sit-onyx/storybook-utils": "^1.1.0"
66
66
  },