highsoft-ui 1.0.106 → 1.0.108

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.
@@ -1,26 +1,26 @@
1
- import { jsx as t, jsxs as i, Fragment as nt } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as i, Fragment as ne } from "react/jsx-runtime";
2
2
  import { useRef as U, useState as P, useEffect as A } from "react";
3
- import { a as T, b as W, J as ot, c as rt, z as st } from "../../utils-BKDJp1i0.js";
4
- import { A as it } from "../../Announcement03-obPaH4LK.js";
3
+ import { a as T, b as W, J as oe, c as re, z as se } from "../../utils-BKDJp1i0.js";
4
+ import { A as ie } from "../../Announcement03-obPaH4LK.js";
5
5
  import { _ as w } from "../../extends-hS2Bh-Yp.js";
6
6
  import { S as j, a as $ } from "../../index-rhaCwOYf.js";
7
- import { X as ct } from "../../XClose-CCu1vrNS.js";
7
+ import { X as ce } from "../../XClose-CCu1vrNS.js";
8
8
  import { c as b } from "../../clsx-OuTLNxxd.js";
9
9
  import { Button as m } from "../Button/index.js";
10
10
  import { Container as G } from "../Container/index.js";
11
- import { Logo as R } from "../Logo/index.js";
12
- import { NewTag as at } from "../NewTag/index.js";
13
- import { Notification as lt } from "../Notification/index.js";
14
- import { PrefPanel as F } from "../PrefPanel/index.js";
15
- var ht = function(n) {
16
- return /* @__PURE__ */ t("svg", w({
11
+ import { Logo as F } from "../Logo/index.js";
12
+ import { NewTag as ae } from "../NewTag/index.js";
13
+ import { Notification as le } from "../Notification/index.js";
14
+ import { PrefPanel as R } from "../PrefPanel/index.js";
15
+ var he = function(n) {
16
+ return /* @__PURE__ */ e("svg", w({
17
17
  xmlns: "http://www.w3.org/2000/svg",
18
18
  width: 24,
19
19
  height: 24,
20
20
  fill: "none",
21
21
  viewBox: "0 0 24 24"
22
22
  }, n, {
23
- children: /* @__PURE__ */ t("path", {
23
+ children: /* @__PURE__ */ e("path", {
24
24
  stroke: "currentColor",
25
25
  strokeLinecap: "round",
26
26
  strokeLinejoin: "round",
@@ -28,15 +28,15 @@ var ht = function(n) {
28
28
  d: "M6 11v4m12-6v4m-1-9c2.4487 0 3.7731.3748 4.4321.6654.0878.0388.1317.0581.2583.179.0759.0724.2145.285.2501.3837.0595.1646.0595.2546.0595.4346v10.7484c0 .9088 0 1.3632-.1363 1.5968-.1386.2375-.2723.348-.5318.4393-.255.0897-.7699-.0092-1.7997-.2071A13.45 13.45 0 0 0 17 18c-3 0-6 2-10 2-2.4487 0-3.7731-.3748-4.4321-.6654-.0878-.0388-.1317-.0581-.2583-.179-.076-.0724-.2145-.285-.2501-.3837C2 18.6073 2 18.5173 2 18.3373V7.5889c0-.9088 0-1.3632.1363-1.5968.1386-.2375.2723-.348.5318-.4393.255-.0898.77.0092 1.7997.207A13.44 13.44 0 0 0 7 6c3 0 6-2 10-2m-2.5 8c0 1.3807-1.1193 2.5-2.5 2.5S9.5 13.3807 9.5 12s1.1193-2.5 2.5-2.5 2.5 1.1193 2.5 2.5"
29
29
  })
30
30
  }));
31
- }, dt = function(n) {
32
- return /* @__PURE__ */ t("svg", w({
31
+ }, de = function(n) {
32
+ return /* @__PURE__ */ e("svg", w({
33
33
  xmlns: "http://www.w3.org/2000/svg",
34
34
  width: 24,
35
35
  height: 24,
36
36
  fill: "none",
37
37
  viewBox: "0 0 24 24"
38
38
  }, n, {
39
- children: /* @__PURE__ */ t("path", {
39
+ children: /* @__PURE__ */ e("path", {
40
40
  stroke: "currentColor",
41
41
  strokeLinecap: "round",
42
42
  strokeLinejoin: "round",
@@ -44,15 +44,15 @@ var ht = function(n) {
44
44
  d: "M11 3H7.8c-1.6802 0-2.5202 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.2798 3 6.1198 3 7.8v8.4c0 1.6802 0 2.5202.327 3.162a3 3 0 0 0 1.311 1.311C5.2798 21 6.1198 21 7.8 21h8.4c1.6802 0 2.5202 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 18.7202 21 17.8802 21 16.2V13m-9-5h4v4m-.5-8.5V2m3.9393 2.5607L20.5 3.5m.0103 5h1.5M3 13.3471c.652.1007 1.3199.1529 2 .1529 4.3864 0 8.2653-2.1724 10.6197-5.5"
45
45
  })
46
46
  }));
47
- }, mt = function(n) {
48
- return /* @__PURE__ */ t("svg", w({
47
+ }, me = function(n) {
48
+ return /* @__PURE__ */ e("svg", w({
49
49
  xmlns: "http://www.w3.org/2000/svg",
50
50
  width: 24,
51
51
  height: 24,
52
52
  fill: "none",
53
53
  viewBox: "0 0 24 24"
54
54
  }, n, {
55
- children: /* @__PURE__ */ t("path", {
55
+ children: /* @__PURE__ */ e("path", {
56
56
  stroke: "currentColor",
57
57
  strokeLinecap: "round",
58
58
  strokeLinejoin: "round",
@@ -60,15 +60,15 @@ var ht = function(n) {
60
60
  d: "M14 2.2695v4.1306c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.7599 8 15.0399 8 15.6 8h4.1305M16 13H8m8 4H8m2-8H8m6-7H8.8c-1.6802 0-2.5202 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.2798 4 5.1198 4 6.8v10.4c0 1.6802 0 2.5202.327 3.162a3 3 0 0 0 1.311 1.311C6.2798 22 7.1198 22 8.8 22h6.4c1.6802 0 2.5202 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.7202 20 18.8802 20 17.2V8z"
61
61
  })
62
62
  }));
63
- }, ut = function(n) {
64
- return /* @__PURE__ */ t("svg", w({
63
+ }, ue = function(n) {
64
+ return /* @__PURE__ */ e("svg", w({
65
65
  xmlns: "http://www.w3.org/2000/svg",
66
66
  width: 24,
67
67
  height: 24,
68
68
  fill: "none",
69
69
  viewBox: "0 0 24 24"
70
70
  }, n, {
71
- children: /* @__PURE__ */ t("path", {
71
+ children: /* @__PURE__ */ e("path", {
72
72
  stroke: "currentColor",
73
73
  strokeLinecap: "round",
74
74
  strokeLinejoin: "round",
@@ -76,15 +76,15 @@ var ht = function(n) {
76
76
  d: "M3 12h12M3 6h18M3 18h18"
77
77
  })
78
78
  }));
79
- }, pt = function(n) {
80
- return /* @__PURE__ */ t("svg", w({
79
+ }, pe = function(n) {
80
+ return /* @__PURE__ */ e("svg", w({
81
81
  xmlns: "http://www.w3.org/2000/svg",
82
82
  width: 24,
83
83
  height: 24,
84
84
  fill: "none",
85
85
  viewBox: "0 0 24 24"
86
86
  }, n, {
87
- children: /* @__PURE__ */ t("path", {
87
+ children: /* @__PURE__ */ e("path", {
88
88
  stroke: "currentColor",
89
89
  strokeLinecap: "round",
90
90
  strokeLinejoin: "round",
@@ -92,15 +92,15 @@ var ht = function(n) {
92
92
  d: "M10 8.0022a2.2485 2.2485 0 0 1 2.501-1.4698 2.248 2.248 0 0 1 1.8682 2.2193c0 1.4989-2.2483 2.2483-2.2483 2.2483m.029 3h.01M7 18v2.3355c0 .5329 0 .7993.1092.9361a.5.5 0 0 0 .3913.1881c.1751-.0002.3832-.1666.7993-.4995l2.3854-1.9084c.4873-.3898.731-.5847 1.0023-.7233a3 3 0 0 1 .7617-.2672C12.7477 18 13.0597 18 13.6837 18H16.2c1.6802 0 2.5202 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 15.7202 21 14.8802 21 13.2V7.8c0-1.6802 0-2.5202-.327-3.162a3 3 0 0 0-1.311-1.311C18.7202 3 17.8802 3 16.2 3H7.8c-1.6802 0-2.5202 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.2798 3 6.1198 3 7.8V14c0 .93 0 1.395.1022 1.7765a3 3 0 0 0 2.1213 2.1213C5.605 18 6.07 18 7 18"
93
93
  })
94
94
  }));
95
- }, wt = function(n) {
96
- return /* @__PURE__ */ t("svg", w({
95
+ }, we = function(n) {
96
+ return /* @__PURE__ */ e("svg", w({
97
97
  xmlns: "http://www.w3.org/2000/svg",
98
98
  width: 24,
99
99
  height: 24,
100
100
  fill: "none",
101
101
  viewBox: "0 0 24 24"
102
102
  }, n, {
103
- children: /* @__PURE__ */ t("path", {
103
+ children: /* @__PURE__ */ e("path", {
104
104
  stroke: "currentColor",
105
105
  strokeLinecap: "round",
106
106
  strokeLinejoin: "round",
@@ -109,14 +109,14 @@ var ht = function(n) {
109
109
  })
110
110
  }));
111
111
  }, D = function(n) {
112
- return /* @__PURE__ */ t("svg", w({
112
+ return /* @__PURE__ */ e("svg", w({
113
113
  xmlns: "http://www.w3.org/2000/svg",
114
114
  width: 24,
115
115
  height: 24,
116
116
  fill: "none",
117
117
  viewBox: "0 0 24 24"
118
118
  }, n, {
119
- children: /* @__PURE__ */ t("path", {
119
+ children: /* @__PURE__ */ e("path", {
120
120
  stroke: "currentColor",
121
121
  strokeLinecap: "round",
122
122
  strokeLinejoin: "round",
@@ -125,14 +125,14 @@ var ht = function(n) {
125
125
  })
126
126
  }));
127
127
  }, V = function(n) {
128
- return /* @__PURE__ */ t("svg", w({
128
+ return /* @__PURE__ */ e("svg", w({
129
129
  xmlns: "http://www.w3.org/2000/svg",
130
130
  width: 24,
131
131
  height: 24,
132
132
  fill: "none",
133
133
  viewBox: "0 0 24 24"
134
134
  }, n, {
135
- children: /* @__PURE__ */ t("path", {
135
+ children: /* @__PURE__ */ e("path", {
136
136
  stroke: "currentColor",
137
137
  strokeLinecap: "round",
138
138
  strokeLinejoin: "round",
@@ -141,61 +141,61 @@ var ht = function(n) {
141
141
  })
142
142
  }));
143
143
  };
144
- const ft = "m_QBtq_buttons", gt = "m_QBtq_container", vt = "m_QBtq_content", _t = "m_QBtq_cta", Ct = "m_QBtq_gpt", kt = "m_QBtq_header", bt = "m_QBtq_icon", xt = "m_QBtq_icons", Bt = "m_QBtq_links", Nt = "m_QBtq_logo", yt = "m_QBtq_main", qt = "m_QBtq_menu", St = "m_QBtq_mobile", Mt = "m_QBtq_mobileOverlay", Qt = "m_QBtq_open", Tt = "m_QBtq_outer", Et = "m_QBtq_selectableIcon", Ht = "m_QBtq_selected", Lt = "m_QBtq_selectedIcon", It = "m_QBtq_skip", Ot = "m_QBtq_sub", Pt = "m_QBtq_subContainer", At = "m_QBtq_subTitle", o = {
145
- buttons: ft,
146
- container: gt,
147
- content: vt,
148
- cta: _t,
149
- gpt: Ct,
150
- header: kt,
151
- icon: bt,
152
- icons: xt,
153
- links: Bt,
154
- logo: Nt,
155
- main: yt,
156
- menu: qt,
157
- mobile: St,
158
- mobileOverlay: Mt,
159
- open: Qt,
160
- outer: Tt,
161
- selectableIcon: Et,
162
- selected: Ht,
163
- selectedIcon: Lt,
164
- skip: It,
165
- sub: Ot,
166
- subContainer: Pt,
167
- subTitle: At
168
- }, Y = "notifications", J = "theme", Wt = 365 * 20, jt = (e) => /^\d{1,3}(?:\.\d{1,3}){3}$/.test(e), $t = () => {
144
+ const fe = "m_QBtq_buttons", ge = "m_QBtq_container", ve = "m_QBtq_content", _e = "m_QBtq_cta", Ce = "m_QBtq_gpt", ke = "m_QBtq_header", be = "m_QBtq_icon", xe = "m_QBtq_icons", Be = "m_QBtq_links", Ne = "m_QBtq_logo", ye = "m_QBtq_main", qe = "m_QBtq_menu", Se = "m_QBtq_mobile", Me = "m_QBtq_mobileOverlay", Qe = "m_QBtq_open", Te = "m_QBtq_outer", He = "m_QBtq_selectableIcon", Ee = "m_QBtq_selected", Le = "m_QBtq_selectedIcon", Ie = "m_QBtq_skip", Oe = "m_QBtq_sub", Pe = "m_QBtq_subContainer", Ae = "m_QBtq_subTitle", o = {
145
+ buttons: fe,
146
+ container: ge,
147
+ content: ve,
148
+ cta: _e,
149
+ gpt: Ce,
150
+ header: ke,
151
+ icon: be,
152
+ icons: xe,
153
+ links: Be,
154
+ logo: Ne,
155
+ main: ye,
156
+ menu: qe,
157
+ mobile: Se,
158
+ mobileOverlay: Me,
159
+ open: Qe,
160
+ outer: Te,
161
+ selectableIcon: He,
162
+ selected: Ee,
163
+ selectedIcon: Le,
164
+ skip: Ie,
165
+ sub: Oe,
166
+ subContainer: Pe,
167
+ subTitle: Ae
168
+ }, Y = "notifications", J = "theme", We = 365 * 20, je = (t) => /^\d{1,3}(?:\.\d{1,3}){3}$/.test(t), $e = () => {
169
169
  if (typeof window > "u") return;
170
- const e = window.location.hostname;
171
- if (!e || e === "localhost" || jt(e))
170
+ const t = window.location.hostname;
171
+ if (!t || t === "localhost" || je(t))
172
172
  return;
173
- const n = e.replace(/^www\./, ""), l = n.split(".");
173
+ const n = t.replace(/^www\./, ""), l = n.split(".");
174
174
  return l.length <= 2 ? `.${n}` : `.${l.slice(-2).join(".")}`;
175
175
  }, z = () => {
176
176
  if (typeof document > "u") return null;
177
- const e = document.cookie.split("; ").find((n) => n.startsWith(`${Y}=`));
178
- if (!e) return null;
177
+ const t = document.cookie.split("; ").find((n) => n.startsWith(`${Y}=`));
178
+ if (!t) return null;
179
179
  try {
180
- return JSON.parse(decodeURIComponent(e.split("=")[1]));
180
+ return JSON.parse(decodeURIComponent(t.split("=")[1]));
181
181
  } catch {
182
182
  return null;
183
183
  }
184
- }, Rt = () => {
184
+ }, Fe = () => {
185
185
  if (typeof document > "u") return null;
186
- const e = document.cookie.split("; ").find((n) => n.startsWith(`${J}=`));
187
- if (!e) return null;
186
+ const t = document.cookie.split("; ").find((n) => n.startsWith(`${J}=`));
187
+ if (!t) return null;
188
188
  try {
189
- return decodeURIComponent(e.split("=")[1]);
189
+ return decodeURIComponent(t.split("=")[1]);
190
190
  } catch {
191
191
  return null;
192
192
  }
193
- }, X = (e, n) => {
193
+ }, X = (t, n) => {
194
194
  if (typeof document > "u") return;
195
195
  const l = new Date(
196
- Date.now() + Wt * 24 * 60 * 60 * 1e3
197
- ).toUTCString(), s = $t(), a = [
198
- `${e}=${encodeURIComponent(n)}`,
196
+ Date.now() + We * 24 * 60 * 60 * 1e3
197
+ ).toUTCString(), s = $e(), a = [
198
+ `${t}=${encodeURIComponent(n)}`,
199
199
  "path=/",
200
200
  "SameSite=Lax",
201
201
  `expires=${l}`
@@ -205,45 +205,45 @@ const ft = "m_QBtq_buttons", gt = "m_QBtq_container", vt = "m_QBtq_content", _t
205
205
  {
206
206
  title: "Products",
207
207
  url: "https://www.highcharts.com/products/",
208
- icon: /* @__PURE__ */ t(dt, {})
208
+ icon: /* @__PURE__ */ e(de, {})
209
209
  },
210
210
  {
211
211
  title: "Demos",
212
212
  url: "https://www.highcharts.com/demo",
213
- icon: /* @__PURE__ */ t(wt, {})
213
+ icon: /* @__PURE__ */ e(we, {})
214
214
  },
215
215
  {
216
216
  title: "Support",
217
217
  url: "https://www.highcharts.com/support/",
218
- icon: /* @__PURE__ */ t(pt, {})
218
+ icon: /* @__PURE__ */ e(pe, {})
219
219
  },
220
220
  {
221
221
  title: "Resources",
222
222
  url: "https://www.highcharts.com/resources/",
223
- icon: /* @__PURE__ */ t(mt, {})
223
+ icon: /* @__PURE__ */ e(me, {})
224
224
  },
225
225
  {
226
226
  title: "Pricing",
227
227
  url: "https://shop.highcharts.com/",
228
- icon: /* @__PURE__ */ t(ht, {})
228
+ icon: /* @__PURE__ */ e(he, {})
229
229
  },
230
230
  {
231
231
  title: "Blog",
232
232
  url: "https://www.highcharts.com/blog/home/",
233
- icon: /* @__PURE__ */ t(it, {})
233
+ icon: /* @__PURE__ */ e(ie, {})
234
234
  }
235
235
  ];
236
- function d(e, n) {
237
- return n ? e.replace(n, "") : e;
236
+ function d(t, n) {
237
+ return n ? t.replace(n, "") : t;
238
238
  }
239
- function Ft({
240
- items: e,
239
+ function Re({
240
+ items: t,
241
241
  link: n = "a",
242
242
  host: l = "https://www.highcharts.com",
243
243
  pathname: s
244
244
  }) {
245
- const a = rt();
246
- return /* @__PURE__ */ t("div", { className: b(o.sub, o.outer), children: /* @__PURE__ */ t(G, { className: o.subContainer, as: "ul", children: e.map(
245
+ const a = re();
246
+ return /* @__PURE__ */ e("div", { className: b(o.sub, o.outer), children: /* @__PURE__ */ e(G, { className: o.subContainer, as: "ul", children: t.map(
247
247
  ({
248
248
  title: S,
249
249
  url: f,
@@ -254,7 +254,7 @@ function Ft({
254
254
  tagVariant: p = "success"
255
255
  }, M) => {
256
256
  const u = s || typeof window < "u" && window.location.pathname, g = typeof window < "u" && window.location.origin || "http://example.com", v = new URL(f, g), q = u && (!!s || a) && v.origin === g && (x ? u.startsWith(v.pathname) : v.pathname === u);
257
- return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ i(
257
+ return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
258
258
  n,
259
259
  {
260
260
  href: d(f, l),
@@ -264,12 +264,12 @@ function Ft({
264
264
  }),
265
265
  children: [
266
266
  /* @__PURE__ */ i("span", { className: o.icons, children: [
267
- /* @__PURE__ */ t("span", { className: o.selectedIcon, children: N }),
268
- /* @__PURE__ */ t("span", { className: o.icon, children: B })
267
+ /* @__PURE__ */ e("span", { className: o.selectedIcon, children: N }),
268
+ /* @__PURE__ */ e("span", { className: o.icon, children: B })
269
269
  ] }),
270
270
  /* @__PURE__ */ i("span", { className: o.subTitle, children: [
271
271
  S,
272
- y && /* @__PURE__ */ t(at, { variant: p, icon: !1 })
272
+ y && /* @__PURE__ */ e(ae, { variant: p, icon: !1 })
273
273
  ] })
274
274
  ]
275
275
  }
@@ -277,7 +277,7 @@ function Ft({
277
277
  }
278
278
  ) }) });
279
279
  }
280
- const Dt = [
280
+ const De = [
281
281
  {
282
282
  id: "whats-new",
283
283
  content: [
@@ -288,9 +288,9 @@ const Dt = [
288
288
  tag: "new"
289
289
  },
290
290
  {
291
- title: "React",
292
- description: "Our improved React integration",
293
- url: "https://www.highcharts.com/blog/integrations-posts/how-to-migrate-to-the-new-highcharts-for-react/",
291
+ title: "Highcharts React v4.2.1",
292
+ description: "See what's new",
293
+ url: "https://www.highcharts.com/blog/post/highcharts-react-v4-2-1-better-docs-better-defaults-better-dx/",
294
294
  tag: "new"
295
295
  },
296
296
  {
@@ -302,24 +302,24 @@ const Dt = [
302
302
  ]
303
303
  }
304
304
  ];
305
- function Vt() {
306
- const { theme: e, setTheme: n } = st(), l = U(!1);
305
+ function Ve() {
306
+ const { theme: t, setTheme: n } = se(), l = U(!1);
307
307
  return A(() => {
308
308
  if (l.current) return;
309
- const s = Rt();
310
- if (s && s !== e) {
309
+ const s = Fe();
310
+ if (s && s !== t) {
311
311
  n(s), l.current = !0;
312
312
  return;
313
313
  }
314
314
  l.current = !0;
315
- }, [n, e]), A(() => {
316
- e && X(J, e);
317
- }, [e]), null;
315
+ }, [n, t]), A(() => {
316
+ t && X(J, t);
317
+ }, [t]), null;
318
318
  }
319
- function ie({
320
- subItems: e,
319
+ function it({
320
+ subItems: t,
321
321
  children: n,
322
- notifications: l = Dt,
322
+ notifications: l = De,
323
323
  // TODO: Fetch these from the internets
324
324
  link: s = "a",
325
325
  host: a = "https://www.highcharts.com",
@@ -330,23 +330,23 @@ function ie({
330
330
  W(() => {
331
331
  const r = y.current;
332
332
  if (!r) return;
333
- const c = 48, h = 82, C = e?.length ? 72 : 0, Q = h + u.length * c + C, tt = -(h + u.length * c);
334
- let E = window.scrollY, _ = 0, H = null, k = null;
333
+ const c = 48, h = 82, C = t?.length ? 72 : 0, Q = h + u.length * c + C, ee = -(h + u.length * c);
334
+ let H = window.scrollY, _ = 0, E = null, k = null;
335
335
  const L = () => {
336
- k = null, !(!r || H === _) && (r.style.transform = `translate3d(0, ${_}px, 0)`, f && document.documentElement.style.setProperty(
336
+ k = null, !(!r || E === _) && (r.style.transform = `translate3d(0, ${_}px, 0)`, f && document.documentElement.style.setProperty(
337
337
  "--header-bottom",
338
338
  `${Q + _}px`
339
- ), H = _);
339
+ ), E = _);
340
340
  };
341
341
  L();
342
342
  const I = () => {
343
- const O = window.scrollY, et = O - E;
344
- E = O, _ = Math.min(0, Math.max(tt, _ - et)), k === null && (k = window.requestAnimationFrame(L));
343
+ const O = window.scrollY, te = O - H;
344
+ H = O, _ = Math.min(0, Math.max(ee, _ - te)), k === null && (k = window.requestAnimationFrame(L));
345
345
  };
346
346
  return window.addEventListener("scroll", I, { passive: !0 }), () => {
347
347
  window.removeEventListener("scroll", I), k !== null && cancelAnimationFrame(k), r.style.transform = "", f && document.documentElement.style.removeProperty("--header-bottom");
348
348
  };
349
- }, [f, u.length, e?.length]), W(() => {
349
+ }, [f, u.length, t?.length]), W(() => {
350
350
  if (!l.length) return;
351
351
  const r = z();
352
352
  g(
@@ -374,12 +374,12 @@ function ie({
374
374
  })
375
375
  );
376
376
  };
377
- return /* @__PURE__ */ i(ot, { children: [
378
- /* @__PURE__ */ t(Vt, {}),
377
+ return /* @__PURE__ */ i(oe, { children: [
378
+ /* @__PURE__ */ e(Ve, {}),
379
379
  /* @__PURE__ */ i("header", { className: o.header, children: [
380
380
  /* @__PURE__ */ i("div", { className: o.content, ref: y, children: [
381
- u?.map(({ id: r, content: c, variant: h, closable: C }, Q) => /* @__PURE__ */ t(
382
- lt,
381
+ u?.map(({ id: r, content: c, variant: h, closable: C }, Q) => /* @__PURE__ */ e(
382
+ le,
383
383
  {
384
384
  id: r,
385
385
  content: c,
@@ -389,8 +389,8 @@ function ie({
389
389
  },
390
390
  Q
391
391
  )),
392
- /* @__PURE__ */ t("div", { className: b(o.main, o.outer), children: /* @__PURE__ */ i(G, { as: "nav", className: o.container, children: [
393
- /* @__PURE__ */ t(
392
+ /* @__PURE__ */ e("div", { className: b(o.main, o.outer), children: /* @__PURE__ */ i(G, { as: "nav", className: o.container, children: [
393
+ /* @__PURE__ */ e(
394
394
  m,
395
395
  {
396
396
  as: "a",
@@ -402,15 +402,15 @@ function ie({
402
402
  children: "Skip to content"
403
403
  }
404
404
  ),
405
- /* @__PURE__ */ t(
405
+ /* @__PURE__ */ e(
406
406
  s,
407
407
  {
408
408
  className: o.logo,
409
409
  href: d("https://www.highcharts.com/", a),
410
- children: /* @__PURE__ */ t(R, { showText: !N || B && !x })
410
+ children: /* @__PURE__ */ e(F, { showText: !N || B && !x })
411
411
  }
412
412
  ),
413
- /* @__PURE__ */ t("ul", { className: o.links, children: K.map(({ title: r, url: c }, h) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
413
+ /* @__PURE__ */ e("ul", { className: o.links, children: K.map(({ title: r, url: c }, h) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
414
414
  m,
415
415
  {
416
416
  variant: "plain",
@@ -431,13 +431,13 @@ function ie({
431
431
  a
432
432
  ),
433
433
  children: [
434
- /* @__PURE__ */ t("span", { className: o.gpt, children: "Highcharts GPT" }),
435
- /* @__PURE__ */ t(D, {})
434
+ /* @__PURE__ */ e("span", { className: o.gpt, children: "Highcharts GPT" }),
435
+ /* @__PURE__ */ e(D, {})
436
436
  ]
437
437
  }
438
438
  ),
439
- /* @__PURE__ */ t(j, {}),
440
- /* @__PURE__ */ t(F, {}),
439
+ /* @__PURE__ */ e(j, {}),
440
+ /* @__PURE__ */ e(R, {}),
441
441
  /* @__PURE__ */ i(
442
442
  m,
443
443
  {
@@ -447,7 +447,7 @@ function ie({
447
447
  href: d("https://shop.highcharts.com/", a),
448
448
  "aria-label": "Buy Now",
449
449
  children: [
450
- /* @__PURE__ */ t($, {}),
450
+ /* @__PURE__ */ e($, {}),
451
451
  "Buy Now"
452
452
  ]
453
453
  }
@@ -463,7 +463,7 @@ function ie({
463
463
  a
464
464
  ),
465
465
  children: [
466
- /* @__PURE__ */ t(V, {}),
466
+ /* @__PURE__ */ e(V, {}),
467
467
  "Try for Free"
468
468
  ]
469
469
  }
@@ -476,16 +476,16 @@ function ie({
476
476
  onClick: q,
477
477
  children: [
478
478
  p ? "Close" : "Menu",
479
- p ? /* @__PURE__ */ t(ct, {}) : /* @__PURE__ */ t(ut, {})
479
+ p ? /* @__PURE__ */ e(ce, {}) : /* @__PURE__ */ e(ue, {})
480
480
  ]
481
481
  }
482
482
  )
483
483
  ] })
484
484
  ] }) }),
485
- !!e?.length && /* @__PURE__ */ t(
486
- Ft,
485
+ !!t?.length && /* @__PURE__ */ e(
486
+ Re,
487
487
  {
488
- items: e,
488
+ items: t,
489
489
  link: s,
490
490
  host: a,
491
491
  pathname: S
@@ -493,8 +493,8 @@ function ie({
493
493
  ),
494
494
  n
495
495
  ] }),
496
- B && /* @__PURE__ */ i(nt, { children: [
497
- /* @__PURE__ */ t(
496
+ B && /* @__PURE__ */ i(ne, { children: [
497
+ /* @__PURE__ */ e(
498
498
  "div",
499
499
  {
500
500
  className: b(o.mobileOverlay, { [o.open]: p }),
@@ -509,12 +509,12 @@ function ie({
509
509
  }),
510
510
  children: [
511
511
  /* @__PURE__ */ i("div", { className: o.container, children: [
512
- /* @__PURE__ */ t(
512
+ /* @__PURE__ */ e(
513
513
  s,
514
514
  {
515
515
  className: o.logo,
516
516
  href: d("https://www.highcharts.com/", a),
517
- children: /* @__PURE__ */ t(R, { showText: !x })
517
+ children: /* @__PURE__ */ e(F, { showText: !x })
518
518
  }
519
519
  ),
520
520
  /* @__PURE__ */ i("div", { className: o.buttons, children: [
@@ -528,13 +528,13 @@ function ie({
528
528
  a
529
529
  ),
530
530
  children: [
531
- /* @__PURE__ */ t("span", { className: o.gpt, children: "Highcharts GPT" }),
532
- /* @__PURE__ */ t(D, {})
531
+ /* @__PURE__ */ e("span", { className: o.gpt, children: "Highcharts GPT" }),
532
+ /* @__PURE__ */ e(D, {})
533
533
  ]
534
534
  }
535
535
  ),
536
- /* @__PURE__ */ t(j, {}),
537
- /* @__PURE__ */ t(F, {})
536
+ /* @__PURE__ */ e(j, {}),
537
+ /* @__PURE__ */ e(R, {})
538
538
  ] })
539
539
  ] }),
540
540
  /* @__PURE__ */ i("div", { className: o.buttons, children: [
@@ -546,7 +546,7 @@ function ie({
546
546
  as: s,
547
547
  href: d("https://shop.highcharts.com/", a),
548
548
  children: [
549
- /* @__PURE__ */ t($, {}),
549
+ /* @__PURE__ */ e($, {}),
550
550
  "Buy Now"
551
551
  ]
552
552
  }
@@ -562,13 +562,13 @@ function ie({
562
562
  a
563
563
  ),
564
564
  children: [
565
- /* @__PURE__ */ t(V, {}),
565
+ /* @__PURE__ */ e(V, {}),
566
566
  "Try for Free"
567
567
  ]
568
568
  }
569
569
  )
570
570
  ] }),
571
- /* @__PURE__ */ t("ul", { className: o.links, children: K.map(({ title: r, url: c, icon: h }, C) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ i(
571
+ /* @__PURE__ */ e("ul", { className: o.links, children: K.map(({ title: r, url: c, icon: h }, C) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
572
572
  m,
573
573
  {
574
574
  variant: "plain",
@@ -590,6 +590,6 @@ function ie({
590
590
  ] });
591
591
  }
592
592
  export {
593
- ie as Header,
594
- Ft as SubHeader
593
+ it as Header,
594
+ Re as SubHeader
595
595
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "highsoft-ui",
3
- "version": "1.0.106",
3
+ "version": "1.0.108",
4
4
  "description": "Highsoft UI",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",