highsoft-ui 1.0.81 → 1.0.83
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/Footer/index.js +19 -13
- package/dist/components/Header/index.d.ts +2 -2
- package/dist/components/Header/index.js +205 -200
- package/dist/components/Logo/index.d.ts +1 -2
- package/dist/components/Logo/index.js +30 -27
- package/dist/components/PrefPanel/index.js +1 -1
- package/dist/highsoft-ui.css +1 -1
- package/dist/main.js +1 -1
- package/dist/{utils-C7rfowvr.js → utils-CT0G9Gzw.js} +44 -43
- package/dist/utils.js +1 -1
- package/package.json +1 -1
|
@@ -4,13 +4,13 @@ import { A as $ } from "../../Announcement03-obPaH4LK.js";
|
|
|
4
4
|
import { C as tt } from "../../Check-Cm4roSEj.js";
|
|
5
5
|
import { _ as j } from "../../extends-hS2Bh-Yp.js";
|
|
6
6
|
import { c as N } from "../../clsx-OuTLNxxd.js";
|
|
7
|
-
import { Button as
|
|
7
|
+
import { Button as T } from "../Button/index.js";
|
|
8
8
|
import { Container as et } from "../Container/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { Logo as rt } from "../Logo/index.js";
|
|
10
10
|
import { NewTag as it } from "../NewTag/index.js";
|
|
11
11
|
import ct from "../icons/MadeInNorway.js";
|
|
12
12
|
import { s as a, C as at } from "../../CookiePolicyModal-ChXNzv49.js";
|
|
13
|
-
import { a as H, c as st, v as
|
|
13
|
+
import { a as H, c as st, v as D } from "../../utils-CT0G9Gzw.js";
|
|
14
14
|
import { R as ot, T as nt, P as ht, O as lt, C as ut, a as dt } from "../../index-BSgacgd-.js";
|
|
15
15
|
import { R as mt } from "../../index-C_wmZvxw.js";
|
|
16
16
|
var wt = function(r) {
|
|
@@ -83,7 +83,7 @@ var wt = function(r) {
|
|
|
83
83
|
className: void 0,
|
|
84
84
|
style: void 0,
|
|
85
85
|
attr: void 0
|
|
86
|
-
},
|
|
86
|
+
}, E = g.createContext && /* @__PURE__ */ g.createContext(B), vt = ["attr", "size", "title"];
|
|
87
87
|
function bt(t, r) {
|
|
88
88
|
if (t == null) return {};
|
|
89
89
|
var i = yt(t, r), c, u;
|
|
@@ -114,7 +114,7 @@ function S() {
|
|
|
114
114
|
return t;
|
|
115
115
|
}, S.apply(this, arguments);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function F(t, r) {
|
|
118
118
|
var i = Object.keys(t);
|
|
119
119
|
if (Object.getOwnPropertySymbols) {
|
|
120
120
|
var c = Object.getOwnPropertySymbols(t);
|
|
@@ -127,9 +127,9 @@ function E(t, r) {
|
|
|
127
127
|
function O(t) {
|
|
128
128
|
for (var r = 1; r < arguments.length; r++) {
|
|
129
129
|
var i = arguments[r] != null ? arguments[r] : {};
|
|
130
|
-
r % 2 ?
|
|
130
|
+
r % 2 ? F(Object(i), !0).forEach(function(c) {
|
|
131
131
|
Ct(t, c, i[c]);
|
|
132
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) :
|
|
132
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : F(Object(i)).forEach(function(c) {
|
|
133
133
|
Object.defineProperty(t, c, Object.getOwnPropertyDescriptor(i, c));
|
|
134
134
|
});
|
|
135
135
|
}
|
|
@@ -183,7 +183,7 @@ function Pt(t) {
|
|
|
183
183
|
xmlns: "http://www.w3.org/2000/svg"
|
|
184
184
|
}), w && /* @__PURE__ */ g.createElement("title", null, w), t.children);
|
|
185
185
|
};
|
|
186
|
-
return
|
|
186
|
+
return E !== void 0 ? /* @__PURE__ */ g.createElement(E.Consumer, null, (i) => r(i)) : r(B);
|
|
187
187
|
}
|
|
188
188
|
function V(t) {
|
|
189
189
|
return p({ attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z" }, child: [] }] })(t);
|
|
@@ -511,7 +511,7 @@ const Lt = [
|
|
|
511
511
|
];
|
|
512
512
|
function At() {
|
|
513
513
|
const [t, r] = st(), i = "npm install highcharts --save";
|
|
514
|
-
return /* @__PURE__ */ s(
|
|
514
|
+
return /* @__PURE__ */ s(T, { variant: "neutral", onClick: () => t(i), children: [
|
|
515
515
|
i,
|
|
516
516
|
r ? /* @__PURE__ */ e(tt, {}) : /* @__PURE__ */ e(wt, {})
|
|
517
517
|
] });
|
|
@@ -556,7 +556,7 @@ function Zt({
|
|
|
556
556
|
}
|
|
557
557
|
}, [c.current]);
|
|
558
558
|
const x = !!n && n !== "Something went wrong", K = (h) => {
|
|
559
|
-
x ?
|
|
559
|
+
x ? D(h.target.value) && f("") : n && f("");
|
|
560
560
|
}, Q = async (h) => {
|
|
561
561
|
h.preventDefault();
|
|
562
562
|
const o = i.current;
|
|
@@ -569,7 +569,7 @@ function Zt({
|
|
|
569
569
|
x && o.focus();
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
572
|
-
if (!
|
|
572
|
+
if (!D(o.value)) {
|
|
573
573
|
f("Check the email format and try again"), o.focus();
|
|
574
574
|
return;
|
|
575
575
|
}
|
|
@@ -675,7 +675,7 @@ function Zt({
|
|
|
675
675
|
}
|
|
676
676
|
),
|
|
677
677
|
/* @__PURE__ */ e(
|
|
678
|
-
|
|
678
|
+
T,
|
|
679
679
|
{
|
|
680
680
|
variant: n ? "danger" : "brand",
|
|
681
681
|
loading: u,
|
|
@@ -706,7 +706,13 @@ function Zt({
|
|
|
706
706
|
/* @__PURE__ */ s("p", { children: [
|
|
707
707
|
"By signing up, you agree to the",
|
|
708
708
|
" ",
|
|
709
|
-
/* @__PURE__ */ e(
|
|
709
|
+
/* @__PURE__ */ e(
|
|
710
|
+
t,
|
|
711
|
+
{
|
|
712
|
+
href: P("https://www.highcharts.com/privacy/", r),
|
|
713
|
+
children: "Privacy Policy"
|
|
714
|
+
}
|
|
715
|
+
)
|
|
710
716
|
] })
|
|
711
717
|
]
|
|
712
718
|
}
|
|
@@ -22,12 +22,12 @@ export interface Notification {
|
|
|
22
22
|
closable?: boolean;
|
|
23
23
|
}
|
|
24
24
|
export declare function Header({ subItems, children, notifications: initialNotifications, // TODO: Fetch these from the internets
|
|
25
|
-
link: Link, host, pathname,
|
|
25
|
+
link: Link, host, pathname, cssVariable }: {
|
|
26
26
|
subItems?: Array<SubHeaderItem>;
|
|
27
27
|
children?: ReactNode;
|
|
28
28
|
notifications?: Array<Notification>;
|
|
29
29
|
link?: ElementType;
|
|
30
30
|
host?: string;
|
|
31
31
|
pathname?: string;
|
|
32
|
-
|
|
32
|
+
cssVariable?: boolean;
|
|
33
33
|
}): import("react/jsx-runtime").JSX.Element;
|