highsoft-ui 1.0.47 → 1.0.49
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/Check-Cm4roSEj.js +23 -0
- package/dist/components/Button/index.js +78 -5
- package/dist/components/Footer/index.d.ts +5 -0
- package/dist/components/Footer/index.js +607 -0
- package/dist/components/Header/index.js +4 -4
- package/dist/components/Logo/index.d.ts +1 -1
- package/dist/components/Logo/index.js +17 -21
- package/dist/components/NewTag/index.d.ts +8 -0
- package/dist/components/NewTag/index.js +54 -0
- package/dist/components/Notification/index.js +2 -2
- package/dist/components/PrefPanel/index.js +529 -537
- package/dist/extends-hS2Bh-Yp.js +12 -0
- package/dist/highsoft-ui.css +1 -1
- package/dist/{index-CRjV8IBy.js → index-CUjEIxqY.js} +10 -9
- package/dist/main.d.ts +4 -1
- package/dist/main.js +23 -18
- package/dist/utils-CzQFvGG2.js +132 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +6 -20
- package/package.json +3 -2
- package/dist/index-DAWHN3cH.js +0 -85
- package/dist/index-DKE1ODpv.js +0 -89
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
...f
|
|
1
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { u as h } from "../../utils-CzQFvGG2.js";
|
|
3
|
+
function d({
|
|
4
|
+
title: o = "Highcharts",
|
|
5
|
+
light: r,
|
|
6
|
+
showText: s = !0,
|
|
7
|
+
withLink: f = !1,
|
|
8
|
+
...e
|
|
10
9
|
}) {
|
|
11
|
-
const i =
|
|
10
|
+
const i = r ? "#18171c" : "#f7f7f8", l = /* @__PURE__ */ c(
|
|
12
11
|
"svg",
|
|
13
12
|
{
|
|
14
13
|
version: "1.1",
|
|
@@ -19,11 +18,11 @@ function n({
|
|
|
19
18
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
20
19
|
x: "0px",
|
|
21
20
|
y: "0px",
|
|
22
|
-
viewBox:
|
|
21
|
+
viewBox: s ? "10 10 384 65" : "10 10 69 65",
|
|
23
22
|
xmlSpace: "preserve",
|
|
24
|
-
...
|
|
23
|
+
...e,
|
|
25
24
|
children: [
|
|
26
|
-
/* @__PURE__ */ t("title", { id: "logo-highcharts-title", children:
|
|
25
|
+
/* @__PURE__ */ t("title", { id: "logo-highcharts-title", children: o }),
|
|
27
26
|
/* @__PURE__ */ c("g", { id: "symbol", transform: "translate(10, 10) scale(1)", children: [
|
|
28
27
|
/* @__PURE__ */ t(
|
|
29
28
|
"polygon",
|
|
@@ -110,7 +109,7 @@ function n({
|
|
|
110
109
|
}
|
|
111
110
|
)
|
|
112
111
|
] }),
|
|
113
|
-
|
|
112
|
+
s && /* @__PURE__ */ c(
|
|
114
113
|
"g",
|
|
115
114
|
{
|
|
116
115
|
id: "text-highcharts",
|
|
@@ -244,13 +243,10 @@ function n({
|
|
|
244
243
|
]
|
|
245
244
|
}
|
|
246
245
|
);
|
|
247
|
-
return
|
|
248
|
-
}
|
|
249
|
-
function a(s) {
|
|
250
|
-
const { resolvedTheme: l } = h(), o = d();
|
|
251
|
-
return /* @__PURE__ */ t(n, { light: !o || l === "light", ...s });
|
|
246
|
+
return f ? /* @__PURE__ */ t("a", { href: "https://www.highcharts.com", children: l }) : l;
|
|
252
247
|
}
|
|
248
|
+
const k = (o) => /* @__PURE__ */ t(d, { light: h() === "light", ...o });
|
|
253
249
|
export {
|
|
254
|
-
|
|
255
|
-
|
|
250
|
+
d as Logo,
|
|
251
|
+
k as ThemedLogo
|
|
256
252
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type NewTagVariant = 'neutral' | 'success' | 'attention' | 'brand' | 'danger';
|
|
3
|
+
export interface NewTagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
variant?: NewTagVariant;
|
|
5
|
+
icon?: boolean;
|
|
6
|
+
border?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function NewTag({ variant, icon, border, className }: NewTagProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { _ as a } from "../../extends-hS2Bh-Yp.js";
|
|
4
|
+
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
var i = function(n) {
|
|
6
|
+
return /* @__PURE__ */ r("svg", a({
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: 24,
|
|
9
|
+
height: 24,
|
|
10
|
+
fill: "none",
|
|
11
|
+
viewBox: "0 0 24 24"
|
|
12
|
+
}, n, {
|
|
13
|
+
children: /* @__PURE__ */ r("path", {
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round",
|
|
17
|
+
strokeWidth: 2,
|
|
18
|
+
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"
|
|
19
|
+
})
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
22
|
+
const d = "_tag_pnk41_270", p = "_icon_pnk41_287", l = "_border_pnk41_293", u = "_neutral_pnk41_303", g = "_success_pnk41_309", k = "_attention_pnk41_315", m = "_brand_pnk41_321", h = "_danger_pnk41_327", t = {
|
|
23
|
+
tag: d,
|
|
24
|
+
icon: p,
|
|
25
|
+
border: l,
|
|
26
|
+
neutral: u,
|
|
27
|
+
success: g,
|
|
28
|
+
attention: k,
|
|
29
|
+
brand: m,
|
|
30
|
+
danger: h
|
|
31
|
+
};
|
|
32
|
+
function v({
|
|
33
|
+
variant: s = "success",
|
|
34
|
+
icon: n = !0,
|
|
35
|
+
border: o,
|
|
36
|
+
className: e
|
|
37
|
+
}) {
|
|
38
|
+
return /* @__PURE__ */ c(
|
|
39
|
+
"span",
|
|
40
|
+
{
|
|
41
|
+
className: _(e, t.tag, t[s], {
|
|
42
|
+
[t.icon]: n,
|
|
43
|
+
[t.border]: o
|
|
44
|
+
}),
|
|
45
|
+
children: [
|
|
46
|
+
n && /* @__PURE__ */ r(i, {}),
|
|
47
|
+
"New"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
v as NewTag
|
|
54
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { N as f } from "../../index-
|
|
3
|
+
import { N as f } from "../../index-CUjEIxqY.js";
|
|
4
4
|
import "../../clsx-OuTLNxxd.js";
|
|
5
|
-
import "
|
|
5
|
+
import "../Button/index.js";
|
|
6
6
|
import "../Container/index.js";
|
|
7
7
|
export {
|
|
8
8
|
f as Notification
|