highsoft-ui 1.0.29 → 1.0.30
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/components/Header/index.js +19 -23
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { useState as z, useEffect as q } from "react";
|
|
|
3
3
|
import { J } from "../../index-CMegByeX.js";
|
|
4
4
|
import { _ as d } from "../../extends-hS2Bh-Yp.js";
|
|
5
5
|
import { N as A, X as G } from "../../index-ChurKizy.js";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as g } from "../../clsx-OuTLNxxd.js";
|
|
7
7
|
import { Button as h } from "../Button/index.js";
|
|
8
8
|
import { Container as y } from "../Container/index.js";
|
|
9
9
|
import { ThemedLogo as S } from "../Logo/index.js";
|
|
@@ -153,7 +153,7 @@ var F = function(t) {
|
|
|
153
153
|
d: "M4.5 22v-5m0-10V2M2 4.5h5m-5 15h5M13 3l-1.7342 4.5089c-.282.7332-.423 1.0998-.6423 1.4082a3 3 0 0 1-.7064.7064c-.3084.2193-.675.3603-1.4082.6423L4 12l4.5089 1.7342c.7332.282 1.0998.423 1.4082.6423.2733.1943.5121.4331.7064.7064.2193.3084.3603.675.6423 1.4082L13 21l1.7342-4.5089c.282-.7332.423-1.0998.6423-1.4082a3 3 0 0 1 .7064-.7064c.3084-.2193.675-.3603 1.4082-.6423L22 12l-4.5089-1.7342c-.7332-.282-1.0998-.423-1.4082-.6423a3 3 0 0 1-.7064-.7064c-.2193-.3084-.3603-.675-.6423-1.4082z"
|
|
154
154
|
})
|
|
155
155
|
}));
|
|
156
|
-
},
|
|
156
|
+
}, H = function(t) {
|
|
157
157
|
return /* @__PURE__ */ e("svg", d({
|
|
158
158
|
xmlns: "http://www.w3.org/2000/svg",
|
|
159
159
|
width: 24,
|
|
@@ -169,7 +169,7 @@ var F = function(t) {
|
|
|
169
169
|
d: "m7 15 3-3-3-3m6 6h4m-9.2 6h8.4c1.6802 0 2.5202 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 18.7202 21 17.8802 21 16.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.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 21"
|
|
170
170
|
})
|
|
171
171
|
}));
|
|
172
|
-
},
|
|
172
|
+
}, W = function(t) {
|
|
173
173
|
return /* @__PURE__ */ e("svg", d({
|
|
174
174
|
xmlns: "http://www.w3.org/2000/svg",
|
|
175
175
|
width: 24,
|
|
@@ -248,18 +248,14 @@ function w1({
|
|
|
248
248
|
host: p = "https://www.highcharts.com",
|
|
249
249
|
pathname: i = typeof window < "u" ? window.location.pathname : ""
|
|
250
250
|
}) {
|
|
251
|
-
return /* @__PURE__ */ e("div", { className:
|
|
252
|
-
|
|
253
|
-
if (typeof window < "u") {
|
|
254
|
-
const w = window.location.origin, g = new URL(f, w);
|
|
255
|
-
k = (f.startsWith("/") || g.origin === w) && g.pathname === i;
|
|
256
|
-
}
|
|
251
|
+
return /* @__PURE__ */ e("div", { className: g(n.sub, n.outer), children: /* @__PURE__ */ e(y, { className: n.subContainer, as: "ul", children: r.map(({ title: a, url: f, icon: _, tag: x, tagVariant: C = "success" }, m) => {
|
|
252
|
+
const k = typeof window < "u" && window.location.origin || "http://example.com", w = new URL(f, k), v = w.origin === k && w.pathname === i;
|
|
257
253
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
|
|
258
254
|
t,
|
|
259
255
|
{
|
|
260
256
|
href: l(f, p),
|
|
261
|
-
className:
|
|
262
|
-
[n.selected]:
|
|
257
|
+
className: g({
|
|
258
|
+
[n.selected]: v
|
|
263
259
|
}),
|
|
264
260
|
children: [
|
|
265
261
|
_,
|
|
@@ -268,7 +264,7 @@ function w1({
|
|
|
268
264
|
x && /* @__PURE__ */ e(
|
|
269
265
|
"span",
|
|
270
266
|
{
|
|
271
|
-
className:
|
|
267
|
+
className: g(
|
|
272
268
|
n.subTag,
|
|
273
269
|
n[`subTag-${C}`]
|
|
274
270
|
),
|
|
@@ -290,25 +286,25 @@ function z1({
|
|
|
290
286
|
host: a = "https://www.highcharts.com",
|
|
291
287
|
pathname: f = typeof window < "u" ? window.location.pathname : ""
|
|
292
288
|
}) {
|
|
293
|
-
const _ = M("(max-width: 374px)"), x = M("(max-width: 849px)"), C = M("(min-width: 850px) and (max-width: 999px)"), [m, k] = z(!1), [w,
|
|
289
|
+
const _ = M("(max-width: 374px)"), x = M("(max-width: 849px)"), C = M("(min-width: 850px) and (max-width: 999px)"), [m, k] = z(!1), [w, v] = z([]);
|
|
294
290
|
q(() => {
|
|
295
291
|
if (p.length) {
|
|
296
292
|
const c = localStorage.getItem("notifications");
|
|
297
293
|
if (c) {
|
|
298
294
|
const u = JSON.parse(c);
|
|
299
|
-
|
|
295
|
+
v(
|
|
300
296
|
p.filter(
|
|
301
297
|
(s) => !s.id || !u.closed.includes(s.id)
|
|
302
298
|
)
|
|
303
299
|
);
|
|
304
300
|
} else
|
|
305
|
-
|
|
301
|
+
v(p);
|
|
306
302
|
}
|
|
307
303
|
}, [p]);
|
|
308
304
|
const N = () => {
|
|
309
305
|
k(!m);
|
|
310
306
|
}, O = (c) => {
|
|
311
|
-
|
|
307
|
+
v(w.filter((s) => !s.id || s.id !== c));
|
|
312
308
|
const u = localStorage.getItem("notifications");
|
|
313
309
|
if (u) {
|
|
314
310
|
const s = JSON.parse(u);
|
|
@@ -335,7 +331,7 @@ function z1({
|
|
|
335
331
|
U
|
|
336
332
|
)
|
|
337
333
|
),
|
|
338
|
-
/* @__PURE__ */ e("div", { className:
|
|
334
|
+
/* @__PURE__ */ e("div", { className: g(n.main, n.outer), children: /* @__PURE__ */ o(y, { as: "nav", className: n.container, children: [
|
|
339
335
|
/* @__PURE__ */ e(
|
|
340
336
|
i,
|
|
341
337
|
{
|
|
@@ -379,7 +375,7 @@ function z1({
|
|
|
379
375
|
as: i,
|
|
380
376
|
href: l("https://shop.highcharts.com/account", a),
|
|
381
377
|
"aria-label": "Login",
|
|
382
|
-
children: /* @__PURE__ */ e(
|
|
378
|
+
children: /* @__PURE__ */ e(W, {})
|
|
383
379
|
}
|
|
384
380
|
),
|
|
385
381
|
/* @__PURE__ */ o(
|
|
@@ -392,7 +388,7 @@ function z1({
|
|
|
392
388
|
a
|
|
393
389
|
),
|
|
394
390
|
children: [
|
|
395
|
-
/* @__PURE__ */ e(
|
|
391
|
+
/* @__PURE__ */ e(H, {}),
|
|
396
392
|
"Get started"
|
|
397
393
|
]
|
|
398
394
|
}
|
|
@@ -425,14 +421,14 @@ function z1({
|
|
|
425
421
|
/* @__PURE__ */ e(
|
|
426
422
|
"div",
|
|
427
423
|
{
|
|
428
|
-
className:
|
|
424
|
+
className: g(n.mobileOverlay, { [n.open]: m }),
|
|
429
425
|
onClick: N
|
|
430
426
|
}
|
|
431
427
|
),
|
|
432
428
|
/* @__PURE__ */ o(
|
|
433
429
|
"nav",
|
|
434
430
|
{
|
|
435
|
-
className:
|
|
431
|
+
className: g(n.mobile, {
|
|
436
432
|
[n.open]: m
|
|
437
433
|
}),
|
|
438
434
|
children: [
|
|
@@ -477,7 +473,7 @@ function z1({
|
|
|
477
473
|
a
|
|
478
474
|
),
|
|
479
475
|
children: [
|
|
480
|
-
/* @__PURE__ */ e(
|
|
476
|
+
/* @__PURE__ */ e(W, {}),
|
|
481
477
|
"Login"
|
|
482
478
|
]
|
|
483
479
|
}
|
|
@@ -493,7 +489,7 @@ function z1({
|
|
|
493
489
|
a
|
|
494
490
|
),
|
|
495
491
|
children: [
|
|
496
|
-
/* @__PURE__ */ e(
|
|
492
|
+
/* @__PURE__ */ e(H, {}),
|
|
497
493
|
"Get started"
|
|
498
494
|
]
|
|
499
495
|
}
|