highsoft-ui 1.0.4 → 1.0.6
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/Logo/index.js +20 -17
- package/dist/components/PrefPanel/index.js +467 -465
- package/package.json +2 -2
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { z as h } from "../../index-CMegByeX.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import { useState as d, useEffect as n } from "react";
|
|
4
|
+
function p({
|
|
5
|
+
title: s = "Highcharts",
|
|
6
|
+
light: l,
|
|
7
|
+
showText: o = !0,
|
|
8
|
+
withLink: e = !1,
|
|
9
|
+
...f
|
|
9
10
|
}) {
|
|
10
|
-
const i =
|
|
11
|
+
const i = l ? "#18171c" : "#f7f7f8", r = /* @__PURE__ */ c(
|
|
11
12
|
"svg",
|
|
12
13
|
{
|
|
13
14
|
version: "1.1",
|
|
@@ -18,11 +19,11 @@ function d({
|
|
|
18
19
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
19
20
|
x: "0px",
|
|
20
21
|
y: "0px",
|
|
21
|
-
viewBox:
|
|
22
|
+
viewBox: o ? "10 10 384 65" : "10 10 69 65",
|
|
22
23
|
xmlSpace: "preserve",
|
|
23
|
-
...
|
|
24
|
+
...f,
|
|
24
25
|
children: [
|
|
25
|
-
/* @__PURE__ */ t("title", { id: "logo-highcharts-title", children:
|
|
26
|
+
/* @__PURE__ */ t("title", { id: "logo-highcharts-title", children: s }),
|
|
26
27
|
/* @__PURE__ */ c("g", { id: "symbol", transform: "translate(10, 10) scale(1)", children: [
|
|
27
28
|
/* @__PURE__ */ t(
|
|
28
29
|
"polygon",
|
|
@@ -109,7 +110,7 @@ function d({
|
|
|
109
110
|
}
|
|
110
111
|
)
|
|
111
112
|
] }),
|
|
112
|
-
|
|
113
|
+
o && /* @__PURE__ */ c(
|
|
113
114
|
"g",
|
|
114
115
|
{
|
|
115
116
|
id: "text-highcharts",
|
|
@@ -243,13 +244,15 @@ function d({
|
|
|
243
244
|
]
|
|
244
245
|
}
|
|
245
246
|
);
|
|
246
|
-
return
|
|
247
|
+
return e ? /* @__PURE__ */ t("a", { href: "https://www.highcharts.com", children: r }) : r;
|
|
247
248
|
}
|
|
248
|
-
function
|
|
249
|
-
const { resolvedTheme:
|
|
250
|
-
return
|
|
249
|
+
function v(s) {
|
|
250
|
+
const { resolvedTheme: l } = h(), [o, e] = d(!1);
|
|
251
|
+
return n(() => {
|
|
252
|
+
e(!0);
|
|
253
|
+
}, []), /* @__PURE__ */ t(p, { light: !o || l === "light", ...s });
|
|
251
254
|
}
|
|
252
255
|
export {
|
|
253
|
-
|
|
254
|
-
|
|
256
|
+
p as Logo,
|
|
257
|
+
v as ThemedLogo
|
|
255
258
|
};
|