highsoft-ui 1.0.80 → 1.0.82
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/Footer/index.js +19 -13
- package/dist/components/Header/index.d.ts +1 -2
- package/dist/components/Header/index.js +106 -110
- package/dist/components/Logo/index.d.ts +1 -2
- package/dist/components/Logo/index.js +30 -27
- package/dist/components/PrefPanel/index.js +1 -1
- package/dist/components/Search/index.js +1 -1
- package/dist/highsoft-ui.css +1 -1
- package/dist/main.js +1 -1
- package/dist/{utils-C7rfowvr.js → utils-CT0G9Gzw.js} +44 -43
- package/dist/utils.js +1 -1
- package/package.json +1 -1
|
@@ -4,13 +4,13 @@ import { A as $ } from "../../Announcement03-obPaH4LK.js";
|
|
|
4
4
|
import { C as tt } from "../../Check-Cm4roSEj.js";
|
|
5
5
|
import { _ as j } from "../../extends-hS2Bh-Yp.js";
|
|
6
6
|
import { c as N } from "../../clsx-OuTLNxxd.js";
|
|
7
|
-
import { Button as
|
|
7
|
+
import { Button as T } from "../Button/index.js";
|
|
8
8
|
import { Container as et } from "../Container/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { Logo as rt } from "../Logo/index.js";
|
|
10
10
|
import { NewTag as it } from "../NewTag/index.js";
|
|
11
11
|
import ct from "../icons/MadeInNorway.js";
|
|
12
12
|
import { s as a, C as at } from "../../CookiePolicyModal-ChXNzv49.js";
|
|
13
|
-
import { a as H, c as st, v as
|
|
13
|
+
import { a as H, c as st, v as D } from "../../utils-CT0G9Gzw.js";
|
|
14
14
|
import { R as ot, T as nt, P as ht, O as lt, C as ut, a as dt } from "../../index-BSgacgd-.js";
|
|
15
15
|
import { R as mt } from "../../index-C_wmZvxw.js";
|
|
16
16
|
var wt = function(r) {
|
|
@@ -83,7 +83,7 @@ var wt = function(r) {
|
|
|
83
83
|
className: void 0,
|
|
84
84
|
style: void 0,
|
|
85
85
|
attr: void 0
|
|
86
|
-
},
|
|
86
|
+
}, E = g.createContext && /* @__PURE__ */ g.createContext(B), vt = ["attr", "size", "title"];
|
|
87
87
|
function bt(t, r) {
|
|
88
88
|
if (t == null) return {};
|
|
89
89
|
var i = yt(t, r), c, u;
|
|
@@ -114,7 +114,7 @@ function S() {
|
|
|
114
114
|
return t;
|
|
115
115
|
}, S.apply(this, arguments);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function F(t, r) {
|
|
118
118
|
var i = Object.keys(t);
|
|
119
119
|
if (Object.getOwnPropertySymbols) {
|
|
120
120
|
var c = Object.getOwnPropertySymbols(t);
|
|
@@ -127,9 +127,9 @@ function E(t, r) {
|
|
|
127
127
|
function O(t) {
|
|
128
128
|
for (var r = 1; r < arguments.length; r++) {
|
|
129
129
|
var i = arguments[r] != null ? arguments[r] : {};
|
|
130
|
-
r % 2 ?
|
|
130
|
+
r % 2 ? F(Object(i), !0).forEach(function(c) {
|
|
131
131
|
Ct(t, c, i[c]);
|
|
132
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) :
|
|
132
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : F(Object(i)).forEach(function(c) {
|
|
133
133
|
Object.defineProperty(t, c, Object.getOwnPropertyDescriptor(i, c));
|
|
134
134
|
});
|
|
135
135
|
}
|
|
@@ -183,7 +183,7 @@ function Pt(t) {
|
|
|
183
183
|
xmlns: "http://www.w3.org/2000/svg"
|
|
184
184
|
}), w && /* @__PURE__ */ g.createElement("title", null, w), t.children);
|
|
185
185
|
};
|
|
186
|
-
return
|
|
186
|
+
return E !== void 0 ? /* @__PURE__ */ g.createElement(E.Consumer, null, (i) => r(i)) : r(B);
|
|
187
187
|
}
|
|
188
188
|
function V(t) {
|
|
189
189
|
return p({ attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z" }, child: [] }] })(t);
|
|
@@ -511,7 +511,7 @@ const Lt = [
|
|
|
511
511
|
];
|
|
512
512
|
function At() {
|
|
513
513
|
const [t, r] = st(), i = "npm install highcharts --save";
|
|
514
|
-
return /* @__PURE__ */ s(
|
|
514
|
+
return /* @__PURE__ */ s(T, { variant: "neutral", onClick: () => t(i), children: [
|
|
515
515
|
i,
|
|
516
516
|
r ? /* @__PURE__ */ e(tt, {}) : /* @__PURE__ */ e(wt, {})
|
|
517
517
|
] });
|
|
@@ -556,7 +556,7 @@ function Zt({
|
|
|
556
556
|
}
|
|
557
557
|
}, [c.current]);
|
|
558
558
|
const x = !!n && n !== "Something went wrong", K = (h) => {
|
|
559
|
-
x ?
|
|
559
|
+
x ? D(h.target.value) && f("") : n && f("");
|
|
560
560
|
}, Q = async (h) => {
|
|
561
561
|
h.preventDefault();
|
|
562
562
|
const o = i.current;
|
|
@@ -569,7 +569,7 @@ function Zt({
|
|
|
569
569
|
x && o.focus();
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
572
|
-
if (!
|
|
572
|
+
if (!D(o.value)) {
|
|
573
573
|
f("Check the email format and try again"), o.focus();
|
|
574
574
|
return;
|
|
575
575
|
}
|
|
@@ -675,7 +675,7 @@ function Zt({
|
|
|
675
675
|
}
|
|
676
676
|
),
|
|
677
677
|
/* @__PURE__ */ e(
|
|
678
|
-
|
|
678
|
+
T,
|
|
679
679
|
{
|
|
680
680
|
variant: n ? "danger" : "brand",
|
|
681
681
|
loading: u,
|
|
@@ -706,7 +706,13 @@ function Zt({
|
|
|
706
706
|
/* @__PURE__ */ s("p", { children: [
|
|
707
707
|
"By signing up, you agree to the",
|
|
708
708
|
" ",
|
|
709
|
-
/* @__PURE__ */ e(
|
|
709
|
+
/* @__PURE__ */ e(
|
|
710
|
+
t,
|
|
711
|
+
{
|
|
712
|
+
href: P("https://www.highcharts.com/privacy/", r),
|
|
713
|
+
children: "Privacy Policy"
|
|
714
|
+
}
|
|
715
|
+
)
|
|
710
716
|
] })
|
|
711
717
|
]
|
|
712
718
|
}
|
|
@@ -8,12 +8,11 @@ export interface SubHeaderItem {
|
|
|
8
8
|
tag?: ReactNode;
|
|
9
9
|
tagVariant?: 'success' | 'brand';
|
|
10
10
|
}
|
|
11
|
-
export declare function SubHeader({ items, link: Link, host, pathname
|
|
11
|
+
export declare function SubHeader({ items, link: Link, host, pathname }: {
|
|
12
12
|
items: Array<SubHeaderItem>;
|
|
13
13
|
link?: ElementType;
|
|
14
14
|
host?: string;
|
|
15
15
|
pathname?: string;
|
|
16
|
-
waitForMount?: boolean;
|
|
17
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export interface Notification {
|
|
19
18
|
id?: string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as e, jsxs as i, Fragment as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { a as
|
|
1
|
+
import { jsx as e, jsxs as i, Fragment as A } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as J, useState as L, useEffect as T } from "react";
|
|
3
|
+
import { a as M, J as U, b as G } from "../../utils-CT0G9Gzw.js";
|
|
4
4
|
import { A as R } from "../../Announcement03-obPaH4LK.js";
|
|
5
5
|
import { _ as m } from "../../extends-hS2Bh-Yp.js";
|
|
6
6
|
import { X as $ } from "../../XClose-CCu1vrNS.js";
|
|
7
|
-
import { c as
|
|
7
|
+
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
8
8
|
import { Button as d } from "../Button/index.js";
|
|
9
|
-
import { Container as
|
|
10
|
-
import {
|
|
11
|
-
import { NewTag as
|
|
12
|
-
import { Notification as
|
|
13
|
-
import { Search as
|
|
9
|
+
import { Container as V } from "../Container/index.js";
|
|
10
|
+
import { Logo as H } from "../Logo/index.js";
|
|
11
|
+
import { NewTag as F } from "../NewTag/index.js";
|
|
12
|
+
import { Notification as Y } from "../Notification/index.js";
|
|
13
|
+
import { Search as I } from "../Search/index.js";
|
|
14
14
|
import { PrefPanel as W } from "../PrefPanel/index.js";
|
|
15
|
-
var
|
|
15
|
+
var D = function(o) {
|
|
16
16
|
return /* @__PURE__ */ e("svg", m({
|
|
17
17
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18
18
|
width: 24,
|
|
@@ -28,7 +28,7 @@ var K = function(o) {
|
|
|
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
|
-
},
|
|
31
|
+
}, K = function(o) {
|
|
32
32
|
return /* @__PURE__ */ e("svg", m({
|
|
33
33
|
xmlns: "http://www.w3.org/2000/svg",
|
|
34
34
|
width: 24,
|
|
@@ -44,7 +44,7 @@ var K = function(o) {
|
|
|
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
|
-
},
|
|
47
|
+
}, X = function(o) {
|
|
48
48
|
return /* @__PURE__ */ e("svg", m({
|
|
49
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50
50
|
width: 24,
|
|
@@ -60,7 +60,7 @@ var K = function(o) {
|
|
|
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
|
-
},
|
|
63
|
+
}, Z = function(o) {
|
|
64
64
|
return /* @__PURE__ */ e("svg", m({
|
|
65
65
|
xmlns: "http://www.w3.org/2000/svg",
|
|
66
66
|
width: 24,
|
|
@@ -76,7 +76,7 @@ var K = function(o) {
|
|
|
76
76
|
d: "M3 12h12M3 6h18M3 18h18"
|
|
77
77
|
})
|
|
78
78
|
}));
|
|
79
|
-
},
|
|
79
|
+
}, ee = function(o) {
|
|
80
80
|
return /* @__PURE__ */ e("svg", m({
|
|
81
81
|
xmlns: "http://www.w3.org/2000/svg",
|
|
82
82
|
width: 24,
|
|
@@ -92,7 +92,7 @@ var K = function(o) {
|
|
|
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
|
-
},
|
|
95
|
+
}, te = function(o) {
|
|
96
96
|
return /* @__PURE__ */ e("svg", m({
|
|
97
97
|
xmlns: "http://www.w3.org/2000/svg",
|
|
98
98
|
width: 24,
|
|
@@ -124,7 +124,7 @@ var K = function(o) {
|
|
|
124
124
|
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"
|
|
125
125
|
})
|
|
126
126
|
}));
|
|
127
|
-
},
|
|
127
|
+
}, P = function(o) {
|
|
128
128
|
return /* @__PURE__ */ e("svg", m({
|
|
129
129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
130
130
|
width: 24,
|
|
@@ -140,7 +140,7 @@ var K = function(o) {
|
|
|
140
140
|
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"
|
|
141
141
|
})
|
|
142
142
|
}));
|
|
143
|
-
},
|
|
143
|
+
}, E = function(o) {
|
|
144
144
|
return /* @__PURE__ */ e("svg", m({
|
|
145
145
|
xmlns: "http://www.w3.org/2000/svg",
|
|
146
146
|
width: 24,
|
|
@@ -157,53 +157,53 @@ var K = function(o) {
|
|
|
157
157
|
})
|
|
158
158
|
}));
|
|
159
159
|
};
|
|
160
|
-
const
|
|
161
|
-
buttons:
|
|
162
|
-
container:
|
|
163
|
-
gpt:
|
|
164
|
-
header:
|
|
165
|
-
icon:
|
|
166
|
-
icons:
|
|
167
|
-
links:
|
|
168
|
-
logo:
|
|
169
|
-
main:
|
|
170
|
-
menu:
|
|
171
|
-
mobile:
|
|
172
|
-
mobileOverlay:
|
|
173
|
-
open:
|
|
174
|
-
outer:
|
|
175
|
-
selectableIcon:
|
|
176
|
-
selected:
|
|
177
|
-
selectedIcon:
|
|
178
|
-
skip:
|
|
179
|
-
sub:
|
|
180
|
-
subContainer:
|
|
181
|
-
subTitle:
|
|
182
|
-
},
|
|
160
|
+
const ne = "m_QBtq_buttons", oe = "m_QBtq_container", re = "m_QBtq_gpt", se = "m_QBtq_header", ie = "m_QBtq_icon", ce = "m_QBtq_icons", ae = "m_QBtq_links", le = "m_QBtq_logo", he = "m_QBtq_main", de = "m_QBtq_menu", me = "m_QBtq_mobile", ue = "m_QBtq_mobileOverlay", pe = "m_QBtq_open", we = "m_QBtq_outer", ge = "m_QBtq_selectableIcon", fe = "m_QBtq_selected", ve = "m_QBtq_selectedIcon", ke = "m_QBtq_skip", _e = "m_QBtq_sub", Ce = "m_QBtq_subContainer", be = "m_QBtq_subTitle", t = {
|
|
161
|
+
buttons: ne,
|
|
162
|
+
container: oe,
|
|
163
|
+
gpt: re,
|
|
164
|
+
header: se,
|
|
165
|
+
icon: ie,
|
|
166
|
+
icons: ce,
|
|
167
|
+
links: ae,
|
|
168
|
+
logo: le,
|
|
169
|
+
main: he,
|
|
170
|
+
menu: de,
|
|
171
|
+
mobile: me,
|
|
172
|
+
mobileOverlay: ue,
|
|
173
|
+
open: pe,
|
|
174
|
+
outer: we,
|
|
175
|
+
selectableIcon: ge,
|
|
176
|
+
selected: fe,
|
|
177
|
+
selectedIcon: ve,
|
|
178
|
+
skip: ke,
|
|
179
|
+
sub: _e,
|
|
180
|
+
subContainer: Ce,
|
|
181
|
+
subTitle: be
|
|
182
|
+
}, O = [
|
|
183
183
|
{
|
|
184
184
|
title: "Products",
|
|
185
185
|
url: "https://www.highcharts.com/products/",
|
|
186
|
-
icon: /* @__PURE__ */ e(
|
|
186
|
+
icon: /* @__PURE__ */ e(K, {})
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
title: "Demos",
|
|
190
190
|
url: "https://www.highcharts.com/demo",
|
|
191
|
-
icon: /* @__PURE__ */ e(
|
|
191
|
+
icon: /* @__PURE__ */ e(te, {})
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
title: "Support",
|
|
195
195
|
url: "https://www.highcharts.com/support/",
|
|
196
|
-
icon: /* @__PURE__ */ e(
|
|
196
|
+
icon: /* @__PURE__ */ e(ee, {})
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
title: "Resources",
|
|
200
200
|
url: "https://www.highcharts.com/resources/",
|
|
201
|
-
icon: /* @__PURE__ */ e(
|
|
201
|
+
icon: /* @__PURE__ */ e(X, {})
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
title: "Pricing",
|
|
205
205
|
url: "https://shop.highcharts.com/",
|
|
206
|
-
icon: /* @__PURE__ */ e(
|
|
206
|
+
icon: /* @__PURE__ */ e(D, {})
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
title: "Blog",
|
|
@@ -214,33 +214,32 @@ const oe = "m_QBtq_buttons", re = "m_QBtq_container", se = "m_QBtq_gpt", ie = "m
|
|
|
214
214
|
function h(c, o) {
|
|
215
215
|
return o ? c.replace(o, "") : c;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function xe({
|
|
218
218
|
items: c,
|
|
219
219
|
link: o = "a",
|
|
220
220
|
host: p = "https://www.highcharts.com",
|
|
221
|
-
pathname: a
|
|
222
|
-
waitForMount: l
|
|
221
|
+
pathname: a
|
|
223
222
|
}) {
|
|
224
|
-
const
|
|
225
|
-
return /* @__PURE__ */ e("div", { className:
|
|
226
|
-
({ title:
|
|
227
|
-
const
|
|
223
|
+
const l = G();
|
|
224
|
+
return /* @__PURE__ */ e("div", { className: _(t.sub, t.outer), children: /* @__PURE__ */ e(V, { className: t.subContainer, as: "ul", children: c.map(
|
|
225
|
+
({ title: N, url: w, icon: C, selectedIcon: b, tag: q, tagVariant: f = "success" }, u) => {
|
|
226
|
+
const x = typeof window < "u" && window.location.origin || "http://example.com", v = new URL(w, x), k = (!!a || l) && v.origin === x && v.pathname === (a || typeof window < "u" && window.location.pathname);
|
|
228
227
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
|
|
229
228
|
o,
|
|
230
229
|
{
|
|
231
|
-
href: h(
|
|
232
|
-
className:
|
|
233
|
-
[t.selectableIcon]:
|
|
234
|
-
[t.selected]:
|
|
230
|
+
href: h(w, p),
|
|
231
|
+
className: _({
|
|
232
|
+
[t.selectableIcon]: b,
|
|
233
|
+
[t.selected]: k
|
|
235
234
|
}),
|
|
236
235
|
children: [
|
|
237
236
|
/* @__PURE__ */ i("span", { className: t.icons, children: [
|
|
238
|
-
/* @__PURE__ */ e("span", { className: t.selectedIcon, children:
|
|
239
|
-
/* @__PURE__ */ e("span", { className: t.icon, children:
|
|
237
|
+
/* @__PURE__ */ e("span", { className: t.selectedIcon, children: b }),
|
|
238
|
+
/* @__PURE__ */ e("span", { className: t.icon, children: C })
|
|
240
239
|
] }),
|
|
241
240
|
/* @__PURE__ */ i("span", { className: t.subTitle, children: [
|
|
242
|
-
|
|
243
|
-
|
|
241
|
+
N,
|
|
242
|
+
q && /* @__PURE__ */ e(F, { variant: f, icon: !1 })
|
|
244
243
|
] })
|
|
245
244
|
]
|
|
246
245
|
}
|
|
@@ -248,53 +247,51 @@ function Be({
|
|
|
248
247
|
}
|
|
249
248
|
) }) });
|
|
250
249
|
}
|
|
251
|
-
function
|
|
250
|
+
function Ee({
|
|
252
251
|
subItems: c,
|
|
253
252
|
children: o,
|
|
254
253
|
notifications: p = [],
|
|
255
254
|
// TODO: Fetch these from the internets
|
|
256
255
|
link: a = "a",
|
|
257
256
|
host: l = "https://www.highcharts.com",
|
|
258
|
-
pathname:
|
|
259
|
-
topCssVariable:
|
|
257
|
+
pathname: N,
|
|
258
|
+
topCssVariable: w
|
|
260
259
|
}) {
|
|
261
|
-
const b =
|
|
262
|
-
|
|
263
|
-
const x = Q("(max-width: 374px)"), B = Q("(max-width: 849px)"), S = Q("(min-width: 850px) and (max-width: 999px)"), v = U(null), [u, N] = T(!1), [k, _] = T([]);
|
|
264
|
-
H(() => {
|
|
260
|
+
const C = M("(max-width: 374px)"), b = M("(max-width: 849px)"), q = M("(min-width: 850px) and (max-width: 999px)"), f = J(null), [u, x] = L(!1), [v, k] = L([]);
|
|
261
|
+
T(() => {
|
|
265
262
|
let r = window.scrollY, n = -82, s = n;
|
|
266
|
-
|
|
263
|
+
w && document.documentElement.style.setProperty("--header-top", `${n}px`);
|
|
267
264
|
const g = () => {
|
|
268
|
-
const
|
|
269
|
-
n -=
|
|
265
|
+
const B = window.scrollY, S = B - r;
|
|
266
|
+
n -= S, n < -82 ? n = -82 : n > 0 && (n = 0), f.current && n !== s && (f.current.style.top = `${n}px`, w && document.documentElement.style.setProperty(
|
|
270
267
|
"--header-top",
|
|
271
268
|
`${n}px`
|
|
272
|
-
)), r =
|
|
269
|
+
)), r = B, s = n;
|
|
273
270
|
};
|
|
274
271
|
return window.addEventListener("scroll", g), () => window.removeEventListener("scroll", g);
|
|
275
|
-
}, [
|
|
272
|
+
}, [w]), T(() => {
|
|
276
273
|
if (p.length) {
|
|
277
274
|
const r = localStorage.getItem("notifications");
|
|
278
275
|
if (r) {
|
|
279
276
|
const n = JSON.parse(r);
|
|
280
|
-
|
|
277
|
+
k(
|
|
281
278
|
p.filter(
|
|
282
279
|
(s) => !s.id || !n.closed.includes(s.id)
|
|
283
280
|
)
|
|
284
281
|
);
|
|
285
282
|
} else
|
|
286
|
-
|
|
283
|
+
k(p);
|
|
287
284
|
}
|
|
288
285
|
}, [p]);
|
|
289
|
-
const
|
|
286
|
+
const Q = (r) => {
|
|
290
287
|
if (r.preventDefault(), !(r.nativeEvent instanceof KeyboardEvent) || r.nativeEvent.code === "Enter" || r.nativeEvent.code === "Space") {
|
|
291
288
|
const n = document.querySelector("main");
|
|
292
289
|
n && (n.scrollIntoView(), n.getAttribute("tabindex") !== "-1" && n.setAttribute("tabindex", "-1"), n.focus());
|
|
293
290
|
}
|
|
294
|
-
},
|
|
295
|
-
|
|
296
|
-
},
|
|
297
|
-
|
|
291
|
+
}, y = () => {
|
|
292
|
+
x(!u);
|
|
293
|
+
}, z = (r) => {
|
|
294
|
+
k(v.filter((s) => !s.id || s.id !== r));
|
|
298
295
|
const n = localStorage.getItem("notifications");
|
|
299
296
|
if (n) {
|
|
300
297
|
const s = JSON.parse(n);
|
|
@@ -307,21 +304,21 @@ function Oe({
|
|
|
307
304
|
})
|
|
308
305
|
);
|
|
309
306
|
};
|
|
310
|
-
return /* @__PURE__ */ e(
|
|
311
|
-
|
|
312
|
-
({ id: r, title: n, description: s, variant: g, closable:
|
|
313
|
-
|
|
307
|
+
return /* @__PURE__ */ e(U, { children: /* @__PURE__ */ i("header", { className: t.header, ref: f, children: [
|
|
308
|
+
v?.map(
|
|
309
|
+
({ id: r, title: n, description: s, variant: g, closable: B }, S) => /* @__PURE__ */ e(
|
|
310
|
+
Y,
|
|
314
311
|
{
|
|
315
312
|
description: s,
|
|
316
313
|
variant: g,
|
|
317
|
-
closable:
|
|
318
|
-
onClose: () =>
|
|
314
|
+
closable: B,
|
|
315
|
+
onClose: () => z(r),
|
|
319
316
|
children: n
|
|
320
317
|
},
|
|
321
|
-
|
|
318
|
+
S
|
|
322
319
|
)
|
|
323
320
|
),
|
|
324
|
-
/* @__PURE__ */ e("div", { className:
|
|
321
|
+
/* @__PURE__ */ e("div", { className: _(t.main, t.outer), children: /* @__PURE__ */ i(V, { as: "nav", className: t.container, children: [
|
|
325
322
|
/* @__PURE__ */ e(
|
|
326
323
|
d,
|
|
327
324
|
{
|
|
@@ -329,8 +326,8 @@ function Oe({
|
|
|
329
326
|
className: t.skip,
|
|
330
327
|
size: 500,
|
|
331
328
|
tabIndex: "0",
|
|
332
|
-
onClick:
|
|
333
|
-
onKeyPress:
|
|
329
|
+
onClick: Q,
|
|
330
|
+
onKeyPress: Q,
|
|
334
331
|
children: "Skip to content"
|
|
335
332
|
}
|
|
336
333
|
),
|
|
@@ -339,10 +336,10 @@ function Oe({
|
|
|
339
336
|
{
|
|
340
337
|
className: t.logo,
|
|
341
338
|
href: h("https://www.highcharts.com/", l),
|
|
342
|
-
children: /* @__PURE__ */ e(
|
|
339
|
+
children: /* @__PURE__ */ e(H, { showText: !q && !C })
|
|
343
340
|
}
|
|
344
341
|
),
|
|
345
|
-
/* @__PURE__ */ e("ul", { className: t.links, children:
|
|
342
|
+
/* @__PURE__ */ e("ul", { className: t.links, children: O.map(({ title: r, url: n }, s) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
346
343
|
d,
|
|
347
344
|
{
|
|
348
345
|
variant: "plain",
|
|
@@ -368,7 +365,7 @@ function Oe({
|
|
|
368
365
|
]
|
|
369
366
|
}
|
|
370
367
|
),
|
|
371
|
-
/* @__PURE__ */ e(
|
|
368
|
+
/* @__PURE__ */ e(I, {}),
|
|
372
369
|
/* @__PURE__ */ e(W, {}),
|
|
373
370
|
/* @__PURE__ */ e(
|
|
374
371
|
d,
|
|
@@ -377,7 +374,7 @@ function Oe({
|
|
|
377
374
|
as: a,
|
|
378
375
|
href: h("https://shop.highcharts.com/account", l),
|
|
379
376
|
"aria-label": "Login",
|
|
380
|
-
children: /* @__PURE__ */ e(
|
|
377
|
+
children: /* @__PURE__ */ e(E, {})
|
|
381
378
|
}
|
|
382
379
|
),
|
|
383
380
|
/* @__PURE__ */ i(
|
|
@@ -390,7 +387,7 @@ function Oe({
|
|
|
390
387
|
l
|
|
391
388
|
),
|
|
392
389
|
children: [
|
|
393
|
-
/* @__PURE__ */ e(
|
|
390
|
+
/* @__PURE__ */ e(P, {}),
|
|
394
391
|
"Get started"
|
|
395
392
|
]
|
|
396
393
|
}
|
|
@@ -400,38 +397,37 @@ function Oe({
|
|
|
400
397
|
{
|
|
401
398
|
variant: u ? "white" : "transparent",
|
|
402
399
|
className: t.menu,
|
|
403
|
-
onClick:
|
|
400
|
+
onClick: y,
|
|
404
401
|
children: [
|
|
405
402
|
u ? "Close" : "Menu",
|
|
406
|
-
u ? /* @__PURE__ */ e($, {}) : /* @__PURE__ */ e(
|
|
403
|
+
u ? /* @__PURE__ */ e($, {}) : /* @__PURE__ */ e(Z, {})
|
|
407
404
|
]
|
|
408
405
|
}
|
|
409
406
|
)
|
|
410
407
|
] })
|
|
411
408
|
] }) }),
|
|
412
409
|
!!c?.length && /* @__PURE__ */ e(
|
|
413
|
-
|
|
410
|
+
xe,
|
|
414
411
|
{
|
|
415
412
|
items: c,
|
|
416
413
|
link: a,
|
|
417
414
|
host: l,
|
|
418
|
-
pathname:
|
|
419
|
-
waitForMount: !b
|
|
415
|
+
pathname: N
|
|
420
416
|
}
|
|
421
417
|
),
|
|
422
418
|
o,
|
|
423
|
-
|
|
419
|
+
b && /* @__PURE__ */ i(A, { children: [
|
|
424
420
|
/* @__PURE__ */ e(
|
|
425
421
|
"div",
|
|
426
422
|
{
|
|
427
|
-
className:
|
|
428
|
-
onClick:
|
|
423
|
+
className: _(t.mobileOverlay, { [t.open]: u }),
|
|
424
|
+
onClick: y
|
|
429
425
|
}
|
|
430
426
|
),
|
|
431
427
|
/* @__PURE__ */ i(
|
|
432
428
|
"nav",
|
|
433
429
|
{
|
|
434
|
-
className:
|
|
430
|
+
className: _(t.mobile, {
|
|
435
431
|
[t.open]: u
|
|
436
432
|
}),
|
|
437
433
|
children: [
|
|
@@ -441,7 +437,7 @@ function Oe({
|
|
|
441
437
|
{
|
|
442
438
|
className: t.logo,
|
|
443
439
|
href: h("https://www.highcharts.com/", l),
|
|
444
|
-
children: /* @__PURE__ */ e(
|
|
440
|
+
children: /* @__PURE__ */ e(H, { showText: !C })
|
|
445
441
|
}
|
|
446
442
|
),
|
|
447
443
|
/* @__PURE__ */ i("div", { className: t.buttons, children: [
|
|
@@ -460,7 +456,7 @@ function Oe({
|
|
|
460
456
|
]
|
|
461
457
|
}
|
|
462
458
|
),
|
|
463
|
-
/* @__PURE__ */ e(
|
|
459
|
+
/* @__PURE__ */ e(I, {}),
|
|
464
460
|
/* @__PURE__ */ e(W, {})
|
|
465
461
|
] })
|
|
466
462
|
] }),
|
|
@@ -476,7 +472,7 @@ function Oe({
|
|
|
476
472
|
l
|
|
477
473
|
),
|
|
478
474
|
children: [
|
|
479
|
-
/* @__PURE__ */ e(
|
|
475
|
+
/* @__PURE__ */ e(E, {}),
|
|
480
476
|
"Login"
|
|
481
477
|
]
|
|
482
478
|
}
|
|
@@ -492,13 +488,13 @@ function Oe({
|
|
|
492
488
|
l
|
|
493
489
|
),
|
|
494
490
|
children: [
|
|
495
|
-
/* @__PURE__ */ e(
|
|
491
|
+
/* @__PURE__ */ e(P, {}),
|
|
496
492
|
"Get started"
|
|
497
493
|
]
|
|
498
494
|
}
|
|
499
495
|
)
|
|
500
496
|
] }),
|
|
501
|
-
/* @__PURE__ */ e("ul", { className: t.links, children:
|
|
497
|
+
/* @__PURE__ */ e("ul", { className: t.links, children: O.map(({ title: r, url: n, icon: s }, g) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
|
|
502
498
|
d,
|
|
503
499
|
{
|
|
504
500
|
variant: "plain",
|
|
@@ -519,6 +515,6 @@ function Oe({
|
|
|
519
515
|
] }) });
|
|
520
516
|
}
|
|
521
517
|
export {
|
|
522
|
-
|
|
523
|
-
|
|
518
|
+
Ee as Header,
|
|
519
|
+
xe as SubHeader
|
|
524
520
|
};
|
|
@@ -5,5 +5,4 @@ export interface LogoProps extends SVGProps<SVGSVGElement> {
|
|
|
5
5
|
light?: boolean;
|
|
6
6
|
withLink?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare function Logo({ title, light, showText, withLink, ...props }: LogoProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare const ThemedLogo: (props: LogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function Logo({ title, light, showText, withLink, className, ...props }: LogoProps): import("react/jsx-runtime").JSX.Element;
|