highsoft-ui 1.0.22 → 1.0.23

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.
@@ -250,7 +250,7 @@ function w1({
250
250
  const o = G();
251
251
  return /* @__PURE__ */ e("div", { className: f(r.sub, r.outer), children: /* @__PURE__ */ e(j, { className: r.subContainer, as: "ul", children: n.map(({ title: a, url: w, icon: x, tag: _, tagVariant: m = "success" }, k) => {
252
252
  w = l(w, g);
253
- const p = window == null ? void 0 : window.location.origin, v = new URL(w, p);
253
+ const p = typeof window < "u" ? window.location.origin : void 0, v = new URL(w, p);
254
254
  return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ s(
255
255
  t,
256
256
  {
@@ -303,7 +303,7 @@ function z1({
303
303
  }, [g]);
304
304
  const M = () => {
305
305
  k(!m);
306
- }, O = (c) => {
306
+ }, y = (c) => {
307
307
  v(p.filter((i) => !i.id || i.id !== c));
308
308
  const u = localStorage.getItem("notifications");
309
309
  if (u) {
@@ -319,13 +319,13 @@ function z1({
319
319
  };
320
320
  return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s("header", { className: r.header, children: [
321
321
  p == null ? void 0 : p.map(
322
- ({ id: c, title: u, description: i, variant: C, closable: y }, P) => /* @__PURE__ */ e(
322
+ ({ id: c, title: u, description: i, variant: C, closable: O }, P) => /* @__PURE__ */ e(
323
323
  J,
324
324
  {
325
325
  description: i,
326
326
  variant: C,
327
- closable: y,
328
- onClose: () => O(c),
327
+ closable: O,
328
+ onClose: () => y(c),
329
329
  children: u
330
330
  },
331
331
  P
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "highsoft-ui",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Highsoft UI",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",