highsoft-ui 1.0.2 → 1.0.3
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/README.md +9 -0
- package/dist/components/Button/index.js +32 -32
- package/dist/components/Container/index.js +1 -1
- package/dist/components/GPTInput/index.d.ts +7 -0
- package/dist/components/GPTInput/index.js +60 -29
- package/dist/components/Header/index.d.ts +24 -2
- package/dist/components/Header/index.js +133 -58
- package/dist/components/Logo/index.d.ts +1 -0
- package/dist/components/Logo/index.js +16 -10
- package/dist/components/Notification/index.d.ts +3 -1
- package/dist/components/Notification/index.js +56 -6
- package/dist/components/PrefPanel/index.d.ts +6 -0
- package/dist/components/PrefPanel/index.js +3002 -0
- package/dist/extends-hS2Bh-Yp.js +12 -0
- package/dist/highsoft-ui.css +1 -1
- package/dist/index-CMegByeX.js +85 -0
- package/dist/index-CWDYlYn8.js +19129 -0
- package/dist/main.js +4 -4
- package/dist/php.js +5062 -24186
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +15 -0
- package/package.json +5 -2
- package/dist/index-B_g_yGPq.js +0 -57
package/README.md
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
const
|
|
4
|
-
button:
|
|
5
|
-
content:
|
|
6
|
-
neutral:
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
const r = "_button_q36f8_17", f = "_content_q36f8_33", q = "_neutral_q36f8_40", u = "_white_q36f8_57", z = "_transparent_q36f8_76", l = "_plain_q36f8_98", p = "_brand_q36f8_123", b = "_success_q36f8_140", d = "_attention_q36f8_155", m = "_danger_q36f8_170", t = {
|
|
4
|
+
button: r,
|
|
5
|
+
content: f,
|
|
6
|
+
neutral: q,
|
|
7
7
|
white: u,
|
|
8
|
-
transparent:
|
|
9
|
-
plain:
|
|
10
|
-
brand:
|
|
11
|
-
success:
|
|
12
|
-
attention:
|
|
13
|
-
danger:
|
|
14
|
-
"size-50": "_size-
|
|
15
|
-
"size-100": "_size-
|
|
16
|
-
"size-200": "_size-
|
|
17
|
-
"size-300": "_size-
|
|
18
|
-
"size-400": "_size-
|
|
19
|
-
"size-500": "_size-
|
|
8
|
+
transparent: z,
|
|
9
|
+
plain: l,
|
|
10
|
+
brand: p,
|
|
11
|
+
success: b,
|
|
12
|
+
attention: d,
|
|
13
|
+
danger: m,
|
|
14
|
+
"size-50": "_size-50_q36f8_266",
|
|
15
|
+
"size-100": "_size-100_q36f8_282",
|
|
16
|
+
"size-200": "_size-200_q36f8_299",
|
|
17
|
+
"size-300": "_size-300_q36f8_316",
|
|
18
|
+
"size-400": "_size-400_q36f8_333",
|
|
19
|
+
"size-500": "_size-500_q36f8_350"
|
|
20
20
|
};
|
|
21
21
|
function w({
|
|
22
|
-
children:
|
|
23
|
-
variant:
|
|
24
|
-
size:
|
|
25
|
-
as:
|
|
26
|
-
className:
|
|
27
|
-
...
|
|
22
|
+
children: _,
|
|
23
|
+
variant: s = "neutral",
|
|
24
|
+
size: e = 200,
|
|
25
|
+
as: o = "button",
|
|
26
|
+
className: a,
|
|
27
|
+
...c
|
|
28
28
|
}) {
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
|
|
29
|
+
return /* @__PURE__ */ n(
|
|
30
|
+
o,
|
|
31
31
|
{
|
|
32
|
-
className:
|
|
33
|
-
|
|
32
|
+
className: i(
|
|
33
|
+
a,
|
|
34
34
|
t.button,
|
|
35
|
-
t[
|
|
36
|
-
t[`size-${
|
|
35
|
+
t[s],
|
|
36
|
+
t[`size-${e}`]
|
|
37
37
|
),
|
|
38
|
-
...
|
|
39
|
-
children: /* @__PURE__ */
|
|
38
|
+
...c,
|
|
39
|
+
children: /* @__PURE__ */ n("span", { className: t.content, children: _ })
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
42
|
}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
interface GPTButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
variant?: "primary" | "secondary";
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export default function GPTButton({ variant, className, children, ...props }: GPTButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
1
7
|
export declare function GPTInput({ autoFocus, onSubmit, }: {
|
|
2
8
|
autoFocus?: boolean;
|
|
3
9
|
onSubmit: (prompt: string) => void;
|
|
4
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,57 +1,88 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
1
|
+
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as x, useState as h, useLayoutEffect as g } from "react";
|
|
3
|
+
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import v from "../icons/Bubble.js";
|
|
5
5
|
import b from "../icons/Plane.js";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
const C = "_inputContainer_1v7xg_17", S = "_bottomFade_1v7xg_20", K = "_inputWrap_1v7xg_23", P = "_textarea_1v7xg_26", N = "_button_1v7xg_92", W = "_primary_1v7xg_127", k = "_secondary_1v7xg_136", D = "_disclaimer_1v7xg_142", r = {
|
|
7
|
+
inputContainer: C,
|
|
8
|
+
bottomFade: S,
|
|
9
|
+
inputWrap: K,
|
|
10
|
+
textarea: P,
|
|
11
|
+
button: N,
|
|
12
|
+
primary: W,
|
|
13
|
+
secondary: k,
|
|
14
|
+
disclaimer: D
|
|
10
15
|
};
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
function F({
|
|
17
|
+
variant: a = "primary",
|
|
18
|
+
className: s,
|
|
19
|
+
children: e,
|
|
20
|
+
...o
|
|
14
21
|
}) {
|
|
15
|
-
|
|
16
|
-
|
|
22
|
+
return /* @__PURE__ */ n(
|
|
23
|
+
"button",
|
|
24
|
+
{
|
|
25
|
+
className: _(r.button, r[a], s),
|
|
26
|
+
...o,
|
|
27
|
+
children: /* @__PURE__ */ n("span", { children: e })
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function I({
|
|
32
|
+
autoFocus: a,
|
|
33
|
+
onSubmit: s
|
|
34
|
+
}) {
|
|
35
|
+
const e = x(null), [o, i] = h(""), c = o.trim(), u = !!c;
|
|
36
|
+
g(() => {
|
|
17
37
|
var t;
|
|
18
|
-
|
|
19
|
-
}, [
|
|
20
|
-
const
|
|
38
|
+
a && ((t = e.current) == null || t.focus());
|
|
39
|
+
}, [a]);
|
|
40
|
+
const p = () => {
|
|
21
41
|
const t = e.current;
|
|
22
42
|
t && (t.style.height = "64px", t.style.height = `${t.scrollHeight + 4}px`);
|
|
43
|
+
}, d = (t) => {
|
|
44
|
+
i(t.target.value), p();
|
|
23
45
|
}, m = (t) => {
|
|
24
|
-
|
|
25
|
-
}, l = (t) => {
|
|
26
|
-
t.preventDefault(), u(c), s(""), requestAnimationFrame(i);
|
|
46
|
+
t.preventDefault(), s(c), i(""), requestAnimationFrame(p);
|
|
27
47
|
}, f = (t) => {
|
|
28
|
-
t.key === "Enter" && !t.shiftKey && !t.ctrlKey && !t.metaKey &&
|
|
29
|
-
},
|
|
48
|
+
t.key === "Enter" && !t.shiftKey && !t.ctrlKey && !t.metaKey && m(t);
|
|
49
|
+
}, y = () => {
|
|
30
50
|
var t;
|
|
31
51
|
(t = e.current) == null || t.focus();
|
|
32
52
|
};
|
|
33
|
-
return /* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ l(
|
|
34
54
|
"form",
|
|
35
55
|
{
|
|
36
|
-
className:
|
|
56
|
+
className: _(r.inputWrap, { [r.active]: u }),
|
|
37
57
|
onKeyDown: f,
|
|
38
|
-
onSubmit:
|
|
58
|
+
onSubmit: m,
|
|
39
59
|
children: [
|
|
40
|
-
/* @__PURE__ */ n(
|
|
60
|
+
/* @__PURE__ */ n(v, {}),
|
|
41
61
|
/* @__PURE__ */ n(
|
|
42
62
|
"textarea",
|
|
43
63
|
{
|
|
44
|
-
className:
|
|
64
|
+
className: r.textarea,
|
|
45
65
|
ref: e,
|
|
46
66
|
value: o,
|
|
47
|
-
onChange:
|
|
67
|
+
onChange: d
|
|
48
68
|
}
|
|
49
69
|
),
|
|
50
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ l(
|
|
71
|
+
F,
|
|
72
|
+
{
|
|
73
|
+
variant: u ? "primary" : "secondary",
|
|
74
|
+
onClick: y,
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ n(b, {}),
|
|
77
|
+
/* @__PURE__ */ n("span", { className: "sr-only", children: "Send message" })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
)
|
|
51
81
|
]
|
|
52
82
|
}
|
|
53
83
|
);
|
|
54
84
|
}
|
|
55
85
|
export {
|
|
56
|
-
|
|
86
|
+
I as GPTInput,
|
|
87
|
+
F as default
|
|
57
88
|
};
|
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
|
+
import { NotificationVariant } from '../Notification';
|
|
3
|
+
export interface SubHeaderItem {
|
|
4
|
+
title: string;
|
|
5
|
+
url: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
tag?: ReactNode;
|
|
8
|
+
tagVariant?: "success" | "brand";
|
|
9
|
+
link?: ElementType;
|
|
10
|
+
}
|
|
11
|
+
export declare function SubHeader({ items }: {
|
|
12
|
+
items: Array<SubHeaderItem>;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function Header({ subItems, children, notifications: initialNotifications, // TODO: Fetch these from the internets
|
|
15
|
+
link: Link, }: {
|
|
16
|
+
subItems?: Array<SubHeaderItem>;
|
|
3
17
|
children?: ReactNode;
|
|
18
|
+
notifications?: Array<{
|
|
19
|
+
id?: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
variant?: NotificationVariant;
|
|
23
|
+
closable?: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
link?: ElementType;
|
|
4
26
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,49 +1,54 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as k } from "react";
|
|
3
|
+
import { J as x } from "../../index-CMegByeX.js";
|
|
4
|
+
import { _ as c } from "../../extends-hS2Bh-Yp.js";
|
|
5
|
+
import { c as w } from "../../clsx-OuTLNxxd.js";
|
|
6
|
+
import { Button as a } from "../Button/index.js";
|
|
7
|
+
import { Container as _ } from "../Container/index.js";
|
|
8
|
+
import { ThemedLogo as C } from "../Logo/index.js";
|
|
9
|
+
import { Notification as M } from "../Notification/index.js";
|
|
10
|
+
import { PrefPanel as T } from "../PrefPanel/index.js";
|
|
11
|
+
import { useMediaQuery as N } from "../../utils.js";
|
|
12
|
+
var L = function(n) {
|
|
13
|
+
return /* @__PURE__ */ t("svg", c({
|
|
9
14
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
15
|
width: 24,
|
|
11
16
|
height: 24,
|
|
12
17
|
fill: "none",
|
|
13
18
|
viewBox: "0 0 24 24"
|
|
14
|
-
},
|
|
19
|
+
}, n, {
|
|
15
20
|
children: /* @__PURE__ */ t("path", {
|
|
16
21
|
stroke: "currentColor",
|
|
17
22
|
strokeLinecap: "round",
|
|
18
23
|
strokeLinejoin: "round",
|
|
19
24
|
strokeWidth: 2,
|
|
20
|
-
d: "
|
|
25
|
+
d: "M3 12h12M3 6h18M3 18h18"
|
|
21
26
|
})
|
|
22
27
|
}));
|
|
23
|
-
},
|
|
24
|
-
return /* @__PURE__ */ t("svg",
|
|
28
|
+
}, S = function(n) {
|
|
29
|
+
return /* @__PURE__ */ t("svg", c({
|
|
25
30
|
xmlns: "http://www.w3.org/2000/svg",
|
|
26
31
|
width: 24,
|
|
27
32
|
height: 24,
|
|
28
33
|
fill: "none",
|
|
29
34
|
viewBox: "0 0 24 24"
|
|
30
|
-
},
|
|
35
|
+
}, n, {
|
|
31
36
|
children: /* @__PURE__ */ t("path", {
|
|
32
37
|
stroke: "currentColor",
|
|
33
38
|
strokeLinecap: "round",
|
|
34
39
|
strokeLinejoin: "round",
|
|
35
40
|
strokeWidth: 2,
|
|
36
|
-
d: "
|
|
41
|
+
d: "m21 21-4.35-4.35M19 11c0 4.4183-3.5817 8-8 8s-8-3.5817-8-8 3.5817-8 8-8 8 3.5817 8 8"
|
|
37
42
|
})
|
|
38
43
|
}));
|
|
39
|
-
},
|
|
40
|
-
return /* @__PURE__ */ t("svg",
|
|
44
|
+
}, j = function(n) {
|
|
45
|
+
return /* @__PURE__ */ t("svg", c({
|
|
41
46
|
xmlns: "http://www.w3.org/2000/svg",
|
|
42
47
|
width: 24,
|
|
43
48
|
height: 24,
|
|
44
49
|
fill: "none",
|
|
45
50
|
viewBox: "0 0 24 24"
|
|
46
|
-
},
|
|
51
|
+
}, n, {
|
|
47
52
|
children: /* @__PURE__ */ t("path", {
|
|
48
53
|
stroke: "currentColor",
|
|
49
54
|
strokeLinecap: "round",
|
|
@@ -52,14 +57,14 @@ var w = function(r) {
|
|
|
52
57
|
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"
|
|
53
58
|
})
|
|
54
59
|
}));
|
|
55
|
-
},
|
|
56
|
-
return /* @__PURE__ */ t("svg",
|
|
60
|
+
}, B = function(n) {
|
|
61
|
+
return /* @__PURE__ */ t("svg", c({
|
|
57
62
|
xmlns: "http://www.w3.org/2000/svg",
|
|
58
63
|
width: 24,
|
|
59
64
|
height: 24,
|
|
60
65
|
fill: "none",
|
|
61
66
|
viewBox: "0 0 24 24"
|
|
62
|
-
},
|
|
67
|
+
}, n, {
|
|
63
68
|
children: /* @__PURE__ */ t("path", {
|
|
64
69
|
stroke: "currentColor",
|
|
65
70
|
strokeLinecap: "round",
|
|
@@ -68,14 +73,14 @@ var w = function(r) {
|
|
|
68
73
|
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"
|
|
69
74
|
})
|
|
70
75
|
}));
|
|
71
|
-
},
|
|
72
|
-
return /* @__PURE__ */ t("svg",
|
|
76
|
+
}, P = function(n) {
|
|
77
|
+
return /* @__PURE__ */ t("svg", c({
|
|
73
78
|
xmlns: "http://www.w3.org/2000/svg",
|
|
74
79
|
width: 24,
|
|
75
80
|
height: 24,
|
|
76
81
|
fill: "none",
|
|
77
82
|
viewBox: "0 0 24 24"
|
|
78
|
-
},
|
|
83
|
+
}, n, {
|
|
79
84
|
children: /* @__PURE__ */ t("path", {
|
|
80
85
|
stroke: "currentColor",
|
|
81
86
|
strokeLinecap: "round",
|
|
@@ -85,12 +90,23 @@ var w = function(r) {
|
|
|
85
90
|
})
|
|
86
91
|
}));
|
|
87
92
|
};
|
|
88
|
-
const
|
|
89
|
-
header:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
const W = "_header_1pbhn_17", H = "_outer_1pbhn_28", q = "_main_1pbhn_37", y = "_container_1pbhn_41", z = "_links_1pbhn_47", G = "_buttons_1pbhn_48", U = "_menu_1pbhn_53", V = "_logo_1pbhn_57", $ = "_sub_1pbhn_69", D = "_subContainer_1pbhn_73", J = "_selected_1pbhn_94", Q = "_subTag_1pbhn_106", R = "_gpt_1pbhn_139", r = {
|
|
94
|
+
header: W,
|
|
95
|
+
outer: H,
|
|
96
|
+
main: q,
|
|
97
|
+
container: y,
|
|
98
|
+
links: z,
|
|
99
|
+
buttons: G,
|
|
100
|
+
menu: U,
|
|
101
|
+
logo: V,
|
|
102
|
+
sub: $,
|
|
103
|
+
subContainer: D,
|
|
104
|
+
selected: J,
|
|
105
|
+
subTag: Q,
|
|
106
|
+
"subTag-success": "_subTag-success_1pbhn_111",
|
|
107
|
+
"subTag-brand": "_subTag-brand_1pbhn_115",
|
|
108
|
+
gpt: R
|
|
109
|
+
}, A = [
|
|
94
110
|
{
|
|
95
111
|
title: "Products",
|
|
96
112
|
url: "https://highcharts.com/products/"
|
|
@@ -116,43 +132,102 @@ const k = "_header_40fgp_17", x = "_container_40fgp_29", L = "_logo_40fgp_41", _
|
|
|
116
132
|
url: "https://www.highcharts.com/blog/"
|
|
117
133
|
}
|
|
118
134
|
];
|
|
119
|
-
function
|
|
120
|
-
|
|
121
|
-
{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
function E({ items: e }) {
|
|
136
|
+
return /* @__PURE__ */ t("div", { className: w(r.sub, r.outer), children: /* @__PURE__ */ t(_, { className: r.subContainer, as: "ul", children: e.map(
|
|
137
|
+
({ title: n, url: l, icon: o, tag: i, tagVariant: d = "success", link: u = "a" }, h) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ s(u, { href: l, children: [
|
|
138
|
+
o,
|
|
139
|
+
/* @__PURE__ */ s("span", { children: [
|
|
140
|
+
n,
|
|
141
|
+
i && /* @__PURE__ */ t(
|
|
142
|
+
"span",
|
|
143
|
+
{
|
|
144
|
+
className: w(
|
|
145
|
+
r.subTag,
|
|
146
|
+
r[`subTag-${d}`]
|
|
147
|
+
),
|
|
148
|
+
children: i
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
] })
|
|
152
|
+
] }) }, h)
|
|
153
|
+
) }) });
|
|
154
|
+
}
|
|
155
|
+
function st({
|
|
156
|
+
subItems: e,
|
|
157
|
+
children: n,
|
|
158
|
+
notifications: l,
|
|
159
|
+
// TODO: Fetch these from the internets
|
|
160
|
+
link: o = "a"
|
|
161
|
+
}) {
|
|
162
|
+
const [i, d] = k(l), u = N("(min-width: 850px) and (max-width: 999px)");
|
|
163
|
+
return /* @__PURE__ */ t(x, { children: /* @__PURE__ */ s("header", { className: r.header, children: [
|
|
164
|
+
i == null ? void 0 : i.map(
|
|
165
|
+
({ id: h, title: p, description: m, variant: b, closable: f }, v) => /* @__PURE__ */ t(
|
|
166
|
+
M,
|
|
167
|
+
{
|
|
168
|
+
description: m,
|
|
169
|
+
variant: b,
|
|
170
|
+
closable: f,
|
|
171
|
+
onClose: () => {
|
|
172
|
+
d(
|
|
173
|
+
i.filter((g) => !g.id || g.id !== h)
|
|
174
|
+
);
|
|
175
|
+
},
|
|
176
|
+
children: p
|
|
177
|
+
},
|
|
178
|
+
v
|
|
179
|
+
)
|
|
180
|
+
),
|
|
181
|
+
/* @__PURE__ */ t("div", { className: w(r.main, r.outer), children: /* @__PURE__ */ s(_, { as: "nav", className: r.container, children: [
|
|
182
|
+
/* @__PURE__ */ t(o, { className: r.logo, href: "https://www.highcharts.com/", children: /* @__PURE__ */ t(C, { showText: !u }) }),
|
|
183
|
+
/* @__PURE__ */ t("div", { className: r.links, children: A.map(({ title: h, url: p }, m) => /* @__PURE__ */ t(a, { variant: "plain", size: 300, as: o, href: p, children: h }, m)) }),
|
|
184
|
+
/* @__PURE__ */ s("div", { className: r.buttons, children: [
|
|
185
|
+
/* @__PURE__ */ s(
|
|
186
|
+
a,
|
|
134
187
|
{
|
|
135
188
|
variant: "transparent",
|
|
136
|
-
as:
|
|
189
|
+
as: o,
|
|
137
190
|
href: "https://www.highcharts.com/chat/gpt/",
|
|
138
191
|
children: [
|
|
139
|
-
/* @__PURE__ */ t("span", { className:
|
|
140
|
-
/* @__PURE__ */ t(
|
|
192
|
+
/* @__PURE__ */ t("span", { className: r.gpt, children: "Highcharts GPT" }),
|
|
193
|
+
/* @__PURE__ */ t(j, {})
|
|
141
194
|
]
|
|
142
195
|
}
|
|
143
196
|
),
|
|
144
|
-
/* @__PURE__ */ t(
|
|
145
|
-
/* @__PURE__ */ t(
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
|
|
148
|
-
/* @__PURE__ */ t(
|
|
149
|
-
|
|
150
|
-
|
|
197
|
+
/* @__PURE__ */ t(a, { variant: "transparent", children: /* @__PURE__ */ t(S, {}) }),
|
|
198
|
+
/* @__PURE__ */ t(T, {}),
|
|
199
|
+
/* @__PURE__ */ s(a, { variant: "transparent", className: r.menu, children: [
|
|
200
|
+
"Menu",
|
|
201
|
+
/* @__PURE__ */ t(L, {})
|
|
202
|
+
] }),
|
|
203
|
+
/* @__PURE__ */ t(
|
|
204
|
+
a,
|
|
205
|
+
{
|
|
206
|
+
variant: "brand",
|
|
207
|
+
as: o,
|
|
208
|
+
href: "https://shop.highcharts.com/account",
|
|
209
|
+
children: /* @__PURE__ */ t(P, {})
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
/* @__PURE__ */ s(
|
|
213
|
+
a,
|
|
214
|
+
{
|
|
215
|
+
variant: "success",
|
|
216
|
+
as: o,
|
|
217
|
+
href: "https://www.highcharts.com/download/",
|
|
218
|
+
children: [
|
|
219
|
+
/* @__PURE__ */ t(B, {}),
|
|
220
|
+
"Get started"
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
)
|
|
151
224
|
] })
|
|
152
|
-
] }),
|
|
153
|
-
e
|
|
154
|
-
|
|
225
|
+
] }) }),
|
|
226
|
+
!!(e != null && e.length) && /* @__PURE__ */ t(E, { items: e }),
|
|
227
|
+
n
|
|
228
|
+
] }) });
|
|
155
229
|
}
|
|
156
230
|
export {
|
|
157
|
-
|
|
231
|
+
st as Header,
|
|
232
|
+
E as SubHeader
|
|
158
233
|
};
|
|
@@ -6,3 +6,4 @@ export interface LogoProps extends SVGProps<SVGSVGElement> {
|
|
|
6
6
|
withLink?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare function Logo({ title, light, showText, withLink, ...props }: LogoProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function ThemedLogo(props: LogoProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { z as h } from "../../index-CMegByeX.js";
|
|
2
3
|
function d({
|
|
3
|
-
title:
|
|
4
|
-
light:
|
|
5
|
-
showText:
|
|
6
|
-
withLink:
|
|
4
|
+
title: o = "Highcharts",
|
|
5
|
+
light: s,
|
|
6
|
+
showText: l = !0,
|
|
7
|
+
withLink: f = !1,
|
|
7
8
|
...e
|
|
8
9
|
}) {
|
|
9
|
-
const i =
|
|
10
|
+
const i = s ? "#18171c" : "#f7f7f8", r = /* @__PURE__ */ c(
|
|
10
11
|
"svg",
|
|
11
12
|
{
|
|
12
13
|
version: "1.1",
|
|
@@ -17,11 +18,11 @@ function d({
|
|
|
17
18
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
18
19
|
x: "0px",
|
|
19
20
|
y: "0px",
|
|
20
|
-
viewBox:
|
|
21
|
+
viewBox: l ? "10 10 384 65" : "10 10 69 65",
|
|
21
22
|
xmlSpace: "preserve",
|
|
22
23
|
...e,
|
|
23
24
|
children: [
|
|
24
|
-
/* @__PURE__ */ t("title", { id: "logo-highcharts-title", children:
|
|
25
|
+
/* @__PURE__ */ t("title", { id: "logo-highcharts-title", children: o }),
|
|
25
26
|
/* @__PURE__ */ c("g", { id: "symbol", transform: "translate(10, 10) scale(1)", children: [
|
|
26
27
|
/* @__PURE__ */ t(
|
|
27
28
|
"polygon",
|
|
@@ -108,7 +109,7 @@ function d({
|
|
|
108
109
|
}
|
|
109
110
|
)
|
|
110
111
|
] }),
|
|
111
|
-
|
|
112
|
+
l && /* @__PURE__ */ c(
|
|
112
113
|
"g",
|
|
113
114
|
{
|
|
114
115
|
id: "text-highcharts",
|
|
@@ -242,8 +243,13 @@ function d({
|
|
|
242
243
|
]
|
|
243
244
|
}
|
|
244
245
|
);
|
|
245
|
-
return
|
|
246
|
+
return f ? /* @__PURE__ */ t("a", { href: "https://www.highcharts.com", children: r }) : r;
|
|
247
|
+
}
|
|
248
|
+
function k(o) {
|
|
249
|
+
const { resolvedTheme: s } = h();
|
|
250
|
+
return /* @__PURE__ */ t(d, { light: s === "light", ...o });
|
|
246
251
|
}
|
|
247
252
|
export {
|
|
248
|
-
d as Logo
|
|
253
|
+
d as Logo,
|
|
254
|
+
k as ThemedLogo
|
|
249
255
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export type NotificationVariant = "default" | "success" | "danger" | "attention";
|
|
3
|
-
export declare function Notification({ children, variant, description, }: {
|
|
3
|
+
export declare function Notification({ children, variant, description, closable, onClose, }: {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
variant?: NotificationVariant;
|
|
6
6
|
description?: string;
|
|
7
|
+
closable?: boolean;
|
|
8
|
+
onClose?: Function;
|
|
7
9
|
}): import("react/jsx-runtime").JSX.Element;
|