highsoft-ui 1.0.1 → 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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # Highsoft UI
2
2
 
3
+ ## Development
4
+
5
+ ```sh
6
+ npm i
7
+ npm run dev
8
+ ```
9
+
10
+ `src` contains a test application using the component library located in `lib`.
11
+
3
12
  ## PHP
4
13
 
5
14
  1. Build script
@@ -1,42 +1,42 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { c } from "../../clsx-OuTLNxxd.js";
3
- const i = "_button_xzze6_17", r = "_content_xzze6_28", x = "_neutral_xzze6_35", u = "_white_xzze6_52", l = "_transparent_xzze6_71", p = "_plain_xzze6_88", b = "_brand_xzze6_110", d = "_success_xzze6_127", m = "_attention_xzze6_142", h = "_danger_xzze6_157", t = {
4
- button: i,
5
- content: r,
6
- neutral: x,
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: l,
9
- plain: p,
10
- brand: b,
11
- success: d,
12
- attention: m,
13
- danger: h,
14
- "size-50": "_size-50_xzze6_174",
15
- "size-100": "_size-100_xzze6_190",
16
- "size-200": "_size-200_xzze6_206",
17
- "size-300": "_size-300_xzze6_222",
18
- "size-400": "_size-400_xzze6_238",
19
- "size-500": "_size-500_xzze6_254"
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: n,
23
- variant: _ = "neutral",
24
- size: s = 200,
25
- as: z = "button",
26
- className: o,
27
- ...a
22
+ children: _,
23
+ variant: s = "neutral",
24
+ size: e = 200,
25
+ as: o = "button",
26
+ className: a,
27
+ ...c
28
28
  }) {
29
- return /* @__PURE__ */ e(
30
- z,
29
+ return /* @__PURE__ */ n(
30
+ o,
31
31
  {
32
- className: c(
33
- o,
32
+ className: i(
33
+ a,
34
34
  t.button,
35
- t[_],
36
- t[`size-${s}`]
35
+ t[s],
36
+ t[`size-${e}`]
37
37
  ),
38
- ...a,
39
- children: /* @__PURE__ */ e("span", { className: t.content, children: n })
38
+ ...c,
39
+ children: /* @__PURE__ */ n("span", { className: t.content, children: _ })
40
40
  }
41
41
  );
42
42
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import { c as s } from "../../clsx-OuTLNxxd.js";
3
- const a = "_container_1534h_1", e = {
3
+ const a = "_container_mh6y2_1", e = {
4
4
  container: a
5
5
  };
6
6
  function f({
@@ -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 { jsxs as x, jsx as n } from "react/jsx-runtime";
2
- import { useRef as y, useState as d, useLayoutEffect as _ } from "react";
3
- import { c as v } from "../../clsx-OuTLNxxd.js";
4
- import g from "../icons/Bubble.js";
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 k = "_inputWrap_12kfl_17", S = "_active_12kfl_53", K = "_textarea_12kfl_61", a = {
7
- inputWrap: k,
8
- active: S,
9
- textarea: K
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 w({
12
- autoFocus: r,
13
- onSubmit: u
16
+ function F({
17
+ variant: a = "primary",
18
+ className: s,
19
+ children: e,
20
+ ...o
14
21
  }) {
15
- const e = y(null), [o, s] = d(""), c = o.trim(), p = !!c;
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
- r && ((t = e.current) == null || t.focus());
19
- }, [r]);
20
- const i = () => {
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
- s(t.target.value), i();
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 && l(t);
29
- }, h = () => {
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__ */ x(
53
+ return /* @__PURE__ */ l(
34
54
  "form",
35
55
  {
36
- className: v(a.inputWrap, { [a.active]: p }),
56
+ className: _(r.inputWrap, { [r.active]: u }),
37
57
  onKeyDown: f,
38
- onSubmit: l,
58
+ onSubmit: m,
39
59
  children: [
40
- /* @__PURE__ */ n(g, {}),
60
+ /* @__PURE__ */ n(v, {}),
41
61
  /* @__PURE__ */ n(
42
62
  "textarea",
43
63
  {
44
- className: a.textarea,
64
+ className: r.textarea,
45
65
  ref: e,
46
66
  value: o,
47
- onChange: m
67
+ onChange: d
48
68
  }
49
69
  ),
50
- /* @__PURE__ */ n("button", { "aria-label": "Send message", onClick: h, children: /* @__PURE__ */ n(b, {}) })
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
- w as GPTInput
86
+ I as GPTInput,
87
+ F as default
57
88
  };
@@ -1,4 +1,26 @@
1
- import { ReactNode } from 'react';
2
- export declare function Header({ children }: {
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 n } from "react/jsx-runtime";
2
- import "react";
3
- import { _ as i, N as d } from "../../index-B_g_yGPq.js";
4
- import { Button as o } from "../Button/index.js";
5
- import { Container as p } from "../Container/index.js";
6
- import { Logo as g } from "../Logo/index.js";
7
- var w = function(r) {
8
- return /* @__PURE__ */ t("svg", i({
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
- }, r, {
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: "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"
25
+ d: "M3 12h12M3 6h18M3 18h18"
21
26
  })
22
27
  }));
23
- }, u = function(r) {
24
- return /* @__PURE__ */ t("svg", i({
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
- }, r, {
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: "M3 8h12m0 0c0 1.6569 1.3431 3 3 3s3-1.3431 3-3-1.3431-3-3-3-3 1.3431-3 3m-6 8h12M9 16c0 1.6569-1.3431 3-3 3s-3-1.3431-3-3 1.3431-3 3-3 3 1.3431 3 3"
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
- }, m = function(r) {
40
- return /* @__PURE__ */ t("svg", i({
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
- }, r, {
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
- }, v = function(r) {
56
- return /* @__PURE__ */ t("svg", i({
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
- }, r, {
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
- }, f = function(r) {
72
- return /* @__PURE__ */ t("svg", i({
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
- }, r, {
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 k = "_header_40fgp_17", x = "_container_40fgp_29", L = "_logo_40fgp_41", _ = "_gpt_40fgp_49", s = {
89
- header: k,
90
- container: x,
91
- logo: L,
92
- gpt: _
93
- }, C = [
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 H({ children: e }) {
120
- const r = [
121
- {
122
- title: "Hello",
123
- description: "Goodbye"
124
- }
125
- ];
126
- return /* @__PURE__ */ n("header", { className: s.header, children: [
127
- r.map(({ title: h, description: a, variant: c }, l) => /* @__PURE__ */ t(d, { description: a, variant: c, children: h }, l)),
128
- /* @__PURE__ */ n(p, { as: "nav", className: s.container, children: [
129
- /* @__PURE__ */ t(g, { light: !0, className: s.logo }),
130
- /* @__PURE__ */ t("div", { children: C.map(({ title: h, url: a }, c) => /* @__PURE__ */ t(o, { variant: "plain", size: 300, as: "a", href: a, children: h }, c)) }),
131
- /* @__PURE__ */ n("div", { children: [
132
- /* @__PURE__ */ n(
133
- o,
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: "a",
189
+ as: o,
137
190
  href: "https://www.highcharts.com/chat/gpt/",
138
191
  children: [
139
- /* @__PURE__ */ t("span", { className: s.gpt, children: "Highcharts GPT" }),
140
- /* @__PURE__ */ t(m, {})
192
+ /* @__PURE__ */ t("span", { className: r.gpt, children: "Highcharts GPT" }),
193
+ /* @__PURE__ */ t(j, {})
141
194
  ]
142
195
  }
143
196
  ),
144
- /* @__PURE__ */ t(o, { variant: "transparent", children: /* @__PURE__ */ t(w, {}) }),
145
- /* @__PURE__ */ t(o, { variant: "transparent", children: /* @__PURE__ */ t(u, {}) }),
146
- /* @__PURE__ */ t(o, { variant: "brand", children: /* @__PURE__ */ t(f, {}) }),
147
- /* @__PURE__ */ n(o, { variant: "success", children: [
148
- /* @__PURE__ */ t(v, {}),
149
- "Get started"
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
- H as Header
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: l = "Highcharts",
4
- light: f,
5
- showText: o = !0,
6
- withLink: r = !1,
4
+ title: o = "Highcharts",
5
+ light: s,
6
+ showText: l = !0,
7
+ withLink: f = !1,
7
8
  ...e
8
9
  }) {
9
- const i = f ? "#18171c" : "#f7f7f8", s = /* @__PURE__ */ c(
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: o ? "10 10 384 65" : "10 10 69 65",
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: l }),
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
- o && /* @__PURE__ */ c(
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 r ? /* @__PURE__ */ t("a", { href: "https://www.highcharts.com", children: s }) : s;
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;