highsoft-ui 1.0.46 → 1.0.47
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/GPTInput/index.js +2 -4
- package/dist/components/Header/index.js +64 -64
- package/dist/components/Logo/index.js +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/PrefPanel/index.js +838 -854
- package/dist/highsoft-ui.css +1 -1
- package/dist/{index-BFhQ-SSv.js → index-CRjV8IBy.js} +13 -13
- package/dist/{index-CMegByeX.js → index-DAWHN3cH.js} +1 -1
- package/dist/main.js +2 -2
- package/package.json +2 -2
|
@@ -34,8 +34,7 @@ function I({
|
|
|
34
34
|
}) {
|
|
35
35
|
const e = h(null), [o, i] = b(""), c = o.trim(), u = !!c;
|
|
36
36
|
x(() => {
|
|
37
|
-
|
|
38
|
-
a && ((t = e.current) == null || t.focus());
|
|
37
|
+
a && e.current?.focus();
|
|
39
38
|
}, [a]);
|
|
40
39
|
const p = () => {
|
|
41
40
|
const t = e.current;
|
|
@@ -47,8 +46,7 @@ function I({
|
|
|
47
46
|
}, d = (t) => {
|
|
48
47
|
t.key === "Enter" && !t.shiftKey && !t.ctrlKey && !t.metaKey && m(t);
|
|
49
48
|
}, f = () => {
|
|
50
|
-
|
|
51
|
-
(t = e.current) == null || t.focus();
|
|
49
|
+
e.current?.focus();
|
|
52
50
|
};
|
|
53
51
|
return /* @__PURE__ */ l(
|
|
54
52
|
"form",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as V } from "react/jsx-runtime";
|
|
2
2
|
import { useState as S, useEffect as q } from "react";
|
|
3
|
-
import { J as z } from "../../index-
|
|
4
|
-
import { _ as
|
|
5
|
-
import { N as J, X as A } from "../../index-
|
|
6
|
-
import { c as
|
|
7
|
-
import { Container as
|
|
3
|
+
import { J as z } from "../../index-DAWHN3cH.js";
|
|
4
|
+
import { _ as m, B as l } from "../../index-DKE1ODpv.js";
|
|
5
|
+
import { N as J, X as A } from "../../index-CRjV8IBy.js";
|
|
6
|
+
import { c as v } from "../../clsx-OuTLNxxd.js";
|
|
7
|
+
import { Container as I } from "../Container/index.js";
|
|
8
8
|
import { ThemedLogo as L } from "../Logo/index.js";
|
|
9
9
|
import { PrefPanel as T } from "../PrefPanel/index.js";
|
|
10
10
|
import { useMediaQuery as M } from "../../utils.js";
|
|
11
11
|
var G = function(n) {
|
|
12
|
-
return /* @__PURE__ */ e("svg",
|
|
12
|
+
return /* @__PURE__ */ e("svg", m({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
width: 24,
|
|
15
15
|
height: 24,
|
|
@@ -25,7 +25,7 @@ var G = function(n) {
|
|
|
25
25
|
})
|
|
26
26
|
}));
|
|
27
27
|
}, F = function(n) {
|
|
28
|
-
return /* @__PURE__ */ e("svg",
|
|
28
|
+
return /* @__PURE__ */ e("svg", m({
|
|
29
29
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30
30
|
width: 24,
|
|
31
31
|
height: 24,
|
|
@@ -41,7 +41,7 @@ var G = function(n) {
|
|
|
41
41
|
})
|
|
42
42
|
}));
|
|
43
43
|
}, Q = function(n) {
|
|
44
|
-
return /* @__PURE__ */ e("svg",
|
|
44
|
+
return /* @__PURE__ */ e("svg", m({
|
|
45
45
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46
46
|
width: 24,
|
|
47
47
|
height: 24,
|
|
@@ -57,7 +57,7 @@ var G = function(n) {
|
|
|
57
57
|
})
|
|
58
58
|
}));
|
|
59
59
|
}, R = function(n) {
|
|
60
|
-
return /* @__PURE__ */ e("svg",
|
|
60
|
+
return /* @__PURE__ */ e("svg", m({
|
|
61
61
|
xmlns: "http://www.w3.org/2000/svg",
|
|
62
62
|
width: 24,
|
|
63
63
|
height: 24,
|
|
@@ -73,7 +73,7 @@ var G = function(n) {
|
|
|
73
73
|
})
|
|
74
74
|
}));
|
|
75
75
|
}, X = function(n) {
|
|
76
|
-
return /* @__PURE__ */ e("svg",
|
|
76
|
+
return /* @__PURE__ */ e("svg", m({
|
|
77
77
|
xmlns: "http://www.w3.org/2000/svg",
|
|
78
78
|
width: 24,
|
|
79
79
|
height: 24,
|
|
@@ -89,7 +89,7 @@ var G = function(n) {
|
|
|
89
89
|
})
|
|
90
90
|
}));
|
|
91
91
|
}, $ = function(n) {
|
|
92
|
-
return /* @__PURE__ */ e("svg",
|
|
92
|
+
return /* @__PURE__ */ e("svg", m({
|
|
93
93
|
xmlns: "http://www.w3.org/2000/svg",
|
|
94
94
|
width: 24,
|
|
95
95
|
height: 24,
|
|
@@ -105,7 +105,7 @@ var G = function(n) {
|
|
|
105
105
|
})
|
|
106
106
|
}));
|
|
107
107
|
}, D = function(n) {
|
|
108
|
-
return /* @__PURE__ */ e("svg",
|
|
108
|
+
return /* @__PURE__ */ e("svg", m({
|
|
109
109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
110
110
|
width: 24,
|
|
111
111
|
height: 24,
|
|
@@ -121,7 +121,7 @@ var G = function(n) {
|
|
|
121
121
|
})
|
|
122
122
|
}));
|
|
123
123
|
}, B = function(n) {
|
|
124
|
-
return /* @__PURE__ */ e("svg",
|
|
124
|
+
return /* @__PURE__ */ e("svg", m({
|
|
125
125
|
xmlns: "http://www.w3.org/2000/svg",
|
|
126
126
|
width: 24,
|
|
127
127
|
height: 24,
|
|
@@ -137,7 +137,7 @@ var G = function(n) {
|
|
|
137
137
|
})
|
|
138
138
|
}));
|
|
139
139
|
}, H = function(n) {
|
|
140
|
-
return /* @__PURE__ */ e("svg",
|
|
140
|
+
return /* @__PURE__ */ e("svg", m({
|
|
141
141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
142
142
|
width: 24,
|
|
143
143
|
height: 24,
|
|
@@ -153,7 +153,7 @@ var G = function(n) {
|
|
|
153
153
|
})
|
|
154
154
|
}));
|
|
155
155
|
}, W = function(n) {
|
|
156
|
-
return /* @__PURE__ */ e("svg",
|
|
156
|
+
return /* @__PURE__ */ e("svg", m({
|
|
157
157
|
xmlns: "http://www.w3.org/2000/svg",
|
|
158
158
|
width: 24,
|
|
159
159
|
height: 24,
|
|
@@ -169,7 +169,7 @@ var G = function(n) {
|
|
|
169
169
|
})
|
|
170
170
|
}));
|
|
171
171
|
}, j = function(n) {
|
|
172
|
-
return /* @__PURE__ */ e("svg",
|
|
172
|
+
return /* @__PURE__ */ e("svg", m({
|
|
173
173
|
xmlns: "http://www.w3.org/2000/svg",
|
|
174
174
|
width: 24,
|
|
175
175
|
height: 24,
|
|
@@ -185,7 +185,7 @@ var G = function(n) {
|
|
|
185
185
|
})
|
|
186
186
|
}));
|
|
187
187
|
};
|
|
188
|
-
const E = "_header_1mm0v_270", K = "_outer_1mm0v_281", Y = "_main_1mm0v_290", Z = "_container_1mm0v_294", e1 = "_links_1mm0v_300", t1 = "_buttons_1mm0v_301", n1 = "_menu_1mm0v_309", r1 = "_logo_1mm0v_314", o1 = "_subContainer_1mm0v_326", s1 = "_selected_1mm0v_354", i1 = "_icons_1mm0v_357", c1 = "_subTag_1mm0v_377", a1 = "_selectedIcon_1mm0v_390", l1 = "_selectableIcon_1mm0v_394", h1 = "_icon_1mm0v_357",
|
|
188
|
+
const E = "_header_1mm0v_270", K = "_outer_1mm0v_281", Y = "_main_1mm0v_290", Z = "_container_1mm0v_294", e1 = "_links_1mm0v_300", t1 = "_buttons_1mm0v_301", n1 = "_menu_1mm0v_309", r1 = "_logo_1mm0v_314", o1 = "_subContainer_1mm0v_326", s1 = "_selected_1mm0v_354", i1 = "_icons_1mm0v_357", c1 = "_subTag_1mm0v_377", a1 = "_selectedIcon_1mm0v_390", l1 = "_selectableIcon_1mm0v_394", h1 = "_icon_1mm0v_357", m1 = "_mobileOverlay_1mm0v_408", d1 = "_show_1mm0v_1", u1 = "_open_1mm0v_420", w1 = "_mobile_1mm0v_408", p1 = "_slideUp_1mm0v_1", v1 = "_sub_1mm0v_326", g1 = "_gpt_1mm0v_484", t = {
|
|
189
189
|
header: E,
|
|
190
190
|
outer: K,
|
|
191
191
|
main: Y,
|
|
@@ -203,8 +203,8 @@ const E = "_header_1mm0v_270", K = "_outer_1mm0v_281", Y = "_main_1mm0v_290", Z
|
|
|
203
203
|
selectedIcon: a1,
|
|
204
204
|
selectableIcon: l1,
|
|
205
205
|
icon: h1,
|
|
206
|
-
mobileOverlay:
|
|
207
|
-
show:
|
|
206
|
+
mobileOverlay: m1,
|
|
207
|
+
show: d1,
|
|
208
208
|
open: u1,
|
|
209
209
|
mobile: w1,
|
|
210
210
|
slideUp: p1,
|
|
@@ -245,34 +245,34 @@ const E = "_header_1mm0v_270", K = "_outer_1mm0v_281", Y = "_main_1mm0v_290", Z
|
|
|
245
245
|
function h(r, n) {
|
|
246
246
|
return n ? r.replace(n, "") : r;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function f1({
|
|
249
249
|
items: r,
|
|
250
250
|
link: n = "a",
|
|
251
|
-
host:
|
|
251
|
+
host: w = "https://www.highcharts.com",
|
|
252
252
|
pathname: i = typeof window < "u" ? window.location.pathname : ""
|
|
253
253
|
}) {
|
|
254
|
-
return /* @__PURE__ */ e("div", { className:
|
|
255
|
-
({ title: c, url:
|
|
256
|
-
const
|
|
254
|
+
return /* @__PURE__ */ e("div", { className: v(t.sub, t.outer), children: /* @__PURE__ */ e(I, { className: t.subContainer, as: "ul", children: r.map(
|
|
255
|
+
({ title: c, url: f, icon: _, selectedIcon: k, tag: C, tagVariant: u = "success" }, x) => {
|
|
256
|
+
const g = typeof window < "u" && window.location.origin || "http://example.com", p = new URL(f, g), b = p.origin === g && p.pathname === i;
|
|
257
257
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
|
|
258
258
|
n,
|
|
259
259
|
{
|
|
260
|
-
href: h(
|
|
261
|
-
className:
|
|
260
|
+
href: h(f, w),
|
|
261
|
+
className: v({
|
|
262
262
|
[t.selectableIcon]: k,
|
|
263
263
|
[t.selected]: b
|
|
264
264
|
}),
|
|
265
265
|
children: [
|
|
266
266
|
/* @__PURE__ */ o("span", { className: t.icons, children: [
|
|
267
267
|
/* @__PURE__ */ e("span", { className: t.selectedIcon, children: k }),
|
|
268
|
-
/* @__PURE__ */ e("span", { className: t.icon, children:
|
|
268
|
+
/* @__PURE__ */ e("span", { className: t.icon, children: _ })
|
|
269
269
|
] }),
|
|
270
270
|
/* @__PURE__ */ o("span", { children: [
|
|
271
271
|
c,
|
|
272
272
|
C && /* @__PURE__ */ e(
|
|
273
273
|
"span",
|
|
274
274
|
{
|
|
275
|
-
className:
|
|
275
|
+
className: v(
|
|
276
276
|
t.subTag,
|
|
277
277
|
t[`subTag-${u}`]
|
|
278
278
|
),
|
|
@@ -289,34 +289,34 @@ function _1({
|
|
|
289
289
|
function B1({
|
|
290
290
|
subItems: r,
|
|
291
291
|
children: n,
|
|
292
|
-
notifications:
|
|
292
|
+
notifications: w = [],
|
|
293
293
|
// TODO: Fetch these from the internets
|
|
294
294
|
link: i = "a",
|
|
295
295
|
host: c = "https://www.highcharts.com",
|
|
296
|
-
pathname:
|
|
296
|
+
pathname: f = typeof window < "u" ? window.location.pathname : ""
|
|
297
297
|
}) {
|
|
298
|
-
const
|
|
298
|
+
const _ = M("(max-width: 374px)"), k = M("(max-width: 849px)"), C = M("(min-width: 850px) and (max-width: 999px)"), [u, x] = S(!1), [g, p] = S([]);
|
|
299
299
|
q(() => {
|
|
300
|
-
if (
|
|
300
|
+
if (w.length) {
|
|
301
301
|
const a = localStorage.getItem("notifications");
|
|
302
302
|
if (a) {
|
|
303
|
-
const
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
(s) => !s.id || !
|
|
303
|
+
const d = JSON.parse(a);
|
|
304
|
+
p(
|
|
305
|
+
w.filter(
|
|
306
|
+
(s) => !s.id || !d.closed.includes(s.id)
|
|
307
307
|
)
|
|
308
308
|
);
|
|
309
309
|
} else
|
|
310
|
-
|
|
310
|
+
p(w);
|
|
311
311
|
}
|
|
312
|
-
}, [
|
|
312
|
+
}, [w]);
|
|
313
313
|
const b = () => {
|
|
314
314
|
x(!u);
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
const
|
|
318
|
-
if (
|
|
319
|
-
const s = JSON.parse(
|
|
315
|
+
}, O = (a) => {
|
|
316
|
+
p(g.filter((s) => !s.id || s.id !== a));
|
|
317
|
+
const d = localStorage.getItem("notifications");
|
|
318
|
+
if (d) {
|
|
319
|
+
const s = JSON.parse(d);
|
|
320
320
|
s.closed.includes(a) || (s.closed.push(a), localStorage.setItem("notifications", JSON.stringify(s)));
|
|
321
321
|
} else
|
|
322
322
|
localStorage.setItem(
|
|
@@ -327,35 +327,35 @@ function B1({
|
|
|
327
327
|
);
|
|
328
328
|
};
|
|
329
329
|
return /* @__PURE__ */ e(z, { children: /* @__PURE__ */ o("header", { className: t.header, children: [
|
|
330
|
-
|
|
331
|
-
({ id: a, title:
|
|
330
|
+
g?.map(
|
|
331
|
+
({ id: a, title: d, description: s, variant: N, closable: P }, U) => /* @__PURE__ */ e(
|
|
332
332
|
J,
|
|
333
333
|
{
|
|
334
334
|
description: s,
|
|
335
335
|
variant: N,
|
|
336
|
-
closable:
|
|
337
|
-
onClose: () =>
|
|
338
|
-
children:
|
|
336
|
+
closable: P,
|
|
337
|
+
onClose: () => O(a),
|
|
338
|
+
children: d
|
|
339
339
|
},
|
|
340
|
-
|
|
340
|
+
U
|
|
341
341
|
)
|
|
342
342
|
),
|
|
343
|
-
/* @__PURE__ */ e("div", { className:
|
|
343
|
+
/* @__PURE__ */ e("div", { className: v(t.main, t.outer), children: /* @__PURE__ */ o(I, { as: "nav", className: t.container, children: [
|
|
344
344
|
/* @__PURE__ */ e(
|
|
345
345
|
i,
|
|
346
346
|
{
|
|
347
347
|
className: t.logo,
|
|
348
348
|
href: h("https://www.highcharts.com/", c),
|
|
349
|
-
children: /* @__PURE__ */ e(L, { showText: !C && !
|
|
349
|
+
children: /* @__PURE__ */ e(L, { showText: !C && !_ })
|
|
350
350
|
}
|
|
351
351
|
),
|
|
352
|
-
/* @__PURE__ */ e("ul", { className: t.links, children: y.map(({ title: a, url:
|
|
352
|
+
/* @__PURE__ */ e("ul", { className: t.links, children: y.map(({ title: a, url: d }, s) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
353
353
|
l,
|
|
354
354
|
{
|
|
355
355
|
variant: "plain",
|
|
356
356
|
size: 300,
|
|
357
357
|
as: i,
|
|
358
|
-
href: h(
|
|
358
|
+
href: h(d, c),
|
|
359
359
|
children: a
|
|
360
360
|
}
|
|
361
361
|
) }, s)) }),
|
|
@@ -416,28 +416,28 @@ function B1({
|
|
|
416
416
|
)
|
|
417
417
|
] })
|
|
418
418
|
] }) }),
|
|
419
|
-
!!
|
|
420
|
-
|
|
419
|
+
!!r?.length && /* @__PURE__ */ e(
|
|
420
|
+
f1,
|
|
421
421
|
{
|
|
422
422
|
items: r,
|
|
423
423
|
link: i,
|
|
424
424
|
host: c,
|
|
425
|
-
pathname:
|
|
425
|
+
pathname: f
|
|
426
426
|
}
|
|
427
427
|
),
|
|
428
428
|
n,
|
|
429
|
-
k && /* @__PURE__ */ o(
|
|
429
|
+
k && /* @__PURE__ */ o(V, { children: [
|
|
430
430
|
/* @__PURE__ */ e(
|
|
431
431
|
"div",
|
|
432
432
|
{
|
|
433
|
-
className:
|
|
433
|
+
className: v(t.mobileOverlay, { [t.open]: u }),
|
|
434
434
|
onClick: b
|
|
435
435
|
}
|
|
436
436
|
),
|
|
437
437
|
/* @__PURE__ */ o(
|
|
438
438
|
"nav",
|
|
439
439
|
{
|
|
440
|
-
className:
|
|
440
|
+
className: v(t.mobile, {
|
|
441
441
|
[t.open]: u
|
|
442
442
|
}),
|
|
443
443
|
children: [
|
|
@@ -447,7 +447,7 @@ function B1({
|
|
|
447
447
|
{
|
|
448
448
|
className: t.logo,
|
|
449
449
|
href: h("https://www.highcharts.com/", c),
|
|
450
|
-
children: /* @__PURE__ */ e(L, { showText: !
|
|
450
|
+
children: /* @__PURE__ */ e(L, { showText: !_ })
|
|
451
451
|
}
|
|
452
452
|
),
|
|
453
453
|
/* @__PURE__ */ o("div", { className: t.buttons, children: [
|
|
@@ -504,14 +504,14 @@ function B1({
|
|
|
504
504
|
}
|
|
505
505
|
)
|
|
506
506
|
] }),
|
|
507
|
-
/* @__PURE__ */ e("ul", { className: t.links, children: y.map(({ title: a, url:
|
|
507
|
+
/* @__PURE__ */ e("ul", { className: t.links, children: y.map(({ title: a, url: d, icon: s }, N) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
|
|
508
508
|
l,
|
|
509
509
|
{
|
|
510
510
|
variant: "plain",
|
|
511
511
|
size: 500,
|
|
512
512
|
fullWidth: !0,
|
|
513
513
|
as: i,
|
|
514
|
-
href: h(
|
|
514
|
+
href: h(d, c),
|
|
515
515
|
children: [
|
|
516
516
|
s,
|
|
517
517
|
a
|
|
@@ -526,5 +526,5 @@ function B1({
|
|
|
526
526
|
}
|
|
527
527
|
export {
|
|
528
528
|
B1 as Header,
|
|
529
|
-
|
|
529
|
+
f1 as SubHeader
|
|
530
530
|
};
|