highsoft-ui 1.0.2 → 1.0.4
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 +83 -8
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.js +36 -35
- 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 +151 -52
- 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 +2999 -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 +7 -4
- package/dist/index-B_g_yGPq.js +0 -57
|
@@ -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;
|
|
@@ -1,9 +1,59 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
1
|
+
import { jsx as t, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import "../../clsx-OuTLNxxd.js";
|
|
5
|
-
import "../Button/index.js";
|
|
6
|
-
import "../Container/index.js";
|
|
3
|
+
import { _ as a } from "../../extends-hS2Bh-Yp.js";
|
|
4
|
+
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
import { Button as l } from "../Button/index.js";
|
|
6
|
+
import { Container as u } from "../Container/index.js";
|
|
7
|
+
var d = function(i) {
|
|
8
|
+
return /* @__PURE__ */ t("svg", a({
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
width: 24,
|
|
11
|
+
height: 24,
|
|
12
|
+
fill: "none",
|
|
13
|
+
viewBox: "0 0 24 24"
|
|
14
|
+
}, i, {
|
|
15
|
+
children: /* @__PURE__ */ t("path", {
|
|
16
|
+
stroke: "currentColor",
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round",
|
|
19
|
+
strokeWidth: 2,
|
|
20
|
+
d: "M18 6 6 18M6 6l12 12"
|
|
21
|
+
})
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
const m = "_notification_1ku6y_17", f = "_container_1ku6y_22", p = "_success_1ku6y_32", k = "_danger_1ku6y_37", h = "_attention_1ku6y_42", y = "_title_1ku6y_47", g = "_description_1ku6y_53", x = "_close_1ku6y_60", n = {
|
|
25
|
+
notification: m,
|
|
26
|
+
container: f,
|
|
27
|
+
default: "_default_1ku6y_27",
|
|
28
|
+
success: p,
|
|
29
|
+
danger: k,
|
|
30
|
+
attention: h,
|
|
31
|
+
title: y,
|
|
32
|
+
description: g,
|
|
33
|
+
close: x
|
|
34
|
+
};
|
|
35
|
+
function M({
|
|
36
|
+
children: e,
|
|
37
|
+
variant: i = "default",
|
|
38
|
+
description: s,
|
|
39
|
+
closable: c = !0,
|
|
40
|
+
onClose: o
|
|
41
|
+
}) {
|
|
42
|
+
return /* @__PURE__ */ t("div", { className: _(n.notification, n[i]), children: /* @__PURE__ */ r(u, { className: n.container, children: [
|
|
43
|
+
/* @__PURE__ */ t("span", { className: n.title, children: e }),
|
|
44
|
+
s && /* @__PURE__ */ t("span", { className: n.description, children: s }),
|
|
45
|
+
c && /* @__PURE__ */ t(
|
|
46
|
+
l,
|
|
47
|
+
{
|
|
48
|
+
variant: "plain",
|
|
49
|
+
size: 400,
|
|
50
|
+
className: n.close,
|
|
51
|
+
onClick: () => o == null ? void 0 : o(),
|
|
52
|
+
children: /* @__PURE__ */ t(d, {})
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] }) });
|
|
56
|
+
}
|
|
7
57
|
export {
|
|
8
|
-
|
|
58
|
+
M as Notification
|
|
9
59
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode, InputHTMLAttributes } from 'react';
|
|
2
|
+
export interface PrefRadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare function PrefRadio({ children, id, ...props }: PrefRadioProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function PrefPanel(): import("react/jsx-runtime").JSX.Element;
|