highsoft-ui 1.0.117 → 1.0.119
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/.cursorrules +845 -0
- package/CLAUDE.md +845 -0
- package/dist/Box-Bi-n_ZxQ.js +69 -0
- package/dist/Button-CJp__tle.js +63 -0
- package/dist/ButtonGroup-M9-A5Xva.js +53 -0
- package/dist/{Container-LAkF4ShX.js → Container-DI2smQRq.js} +1 -1
- package/dist/{CookiePolicyModal-B2mvebvV.js → CookiePolicyModal-BZkVbILl.js} +9 -43
- package/dist/CopyCode-BLXf0o74.js +40 -0
- package/dist/DiscordInvite-Mkr81Pib.js +92 -0
- package/dist/Footer-bUIou6Hl.js +83 -0
- package/dist/FooterBottom-_AezmdZB.js +133 -0
- package/dist/FooterHelp-CdeMRh1G.js +112 -0
- package/dist/FooterLinks-BUKcScC4.js +287 -0
- package/dist/{GPTInput-DRFGKJ2u.js → GPTInput-DKxJOGYt.js} +1 -1
- package/dist/{Header-BW8ilZxt.js → Header-6RIZc0v3.js} +90 -85
- package/dist/Heading-DuolDa27.js +19 -0
- package/dist/Icon-Dwo9ZDNX.js +31 -0
- package/dist/InputGrouped-CiA86XL7.js +221 -0
- package/dist/InputSolo-cLqKBh1c.js +122 -0
- package/dist/Label-BH3YxfNt.js +29 -0
- package/dist/Link-DGMiLJES.js +21 -0
- package/dist/{Logo-CZ5LYqub.js → Logo-h9bQL-cT.js} +1 -1
- package/dist/NewsletterSignup-eGx4jwiM.js +137 -0
- package/dist/{Notification-DHcQtd1k.js → Notification-CJ3iQv3Z.js} +6 -6
- package/dist/{PrefPanel-BTX6RAo4.js → PrefPanel-25erkPRB.js} +8 -8
- package/dist/{Search-DAPCZo13.js → Search-CDHkDXCm.js} +15 -15
- package/dist/Typography-nzBx3Yxn.js +49 -0
- package/dist/YoutubeModal-DNaiM6RL.js +89 -0
- package/dist/components/Box/index.js +2 -0
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +2 -0
- package/dist/components/Container/index.js +1 -1
- package/dist/components/CopyCode/index.js +2 -0
- package/dist/components/DiscordInvite/index.js +2 -0
- package/dist/components/Footer/CookiePolicyModal.js +1 -1
- package/dist/components/Footer/FooterBottom.js +2 -0
- package/dist/components/Footer/FooterHelp.js +2 -0
- package/dist/components/Footer/FooterLinks.js +2 -0
- package/dist/components/Footer/YoutubeModal.js +2 -0
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/GPTInput/index.js +1 -1
- package/dist/components/Header/index.js +1 -1
- package/dist/components/Heading/index.js +2 -0
- package/dist/components/Icon/index.js +2 -0
- package/dist/components/InputGrouped/index.js +2 -0
- package/dist/components/InputSolo/index.js +2 -0
- package/dist/components/Label/index.js +2 -0
- package/dist/components/Link/index.js +2 -0
- package/dist/components/Logo/index.js +1 -1
- package/dist/components/NewsletterSignup/index.js +2 -0
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/PrefPanel/index.js +1 -1
- package/dist/components/Search/index.js +1 -1
- package/dist/components/Typography/index.js +2 -0
- package/dist/{dist-CjrKJb_1.js → dist-GNbC83fc.js} +1 -1
- package/dist/{dist-0f0-S8_q.js → dist-fJmWSp8_.js} +1 -1
- package/dist/{esm-C1TDRARf.js → esm-T3Xn_ZHF.js} +208 -104
- package/dist/fa-ByhY-7YY.js +187 -0
- package/dist/highsoft-ui.css +1 -1
- package/dist/lib/components/Box/index.d.ts +28 -0
- package/dist/lib/components/Button/index.d.ts +9 -1
- package/dist/lib/components/ButtonGroup/index.d.ts +29 -0
- package/dist/lib/components/CopyCode/index.d.ts +12 -0
- package/dist/lib/components/DiscordInvite/index.d.ts +8 -0
- package/dist/lib/components/Footer/FooterBottom.d.ts +7 -0
- package/dist/lib/components/Footer/FooterHelp.d.ts +7 -0
- package/dist/lib/components/Footer/FooterLinks.d.ts +7 -0
- package/dist/lib/components/Footer/YoutubeModal.d.ts +1 -0
- package/dist/lib/components/Header/index.d.ts +14 -9
- package/dist/lib/components/Heading/index.d.ts +8 -0
- package/dist/lib/components/Icon/index.d.ts +26 -0
- package/dist/lib/components/InputGrouped/index.d.ts +60 -0
- package/dist/lib/components/InputSolo/index.d.ts +23 -0
- package/dist/lib/components/Label/index.d.ts +25 -0
- package/dist/lib/components/Link/index.d.ts +15 -0
- package/dist/lib/components/NewsletterSignup/index.d.ts +33 -0
- package/dist/lib/components/Typography/index.d.ts +13 -0
- package/dist/lib/main.d.ts +26 -3
- package/dist/lib/utils.d.ts +28 -0
- package/dist/main.js +23 -12
- package/dist/scss/mixins.scss +36 -0
- package/dist/scss/variables.scss +107 -0
- package/dist/{utils-C4QGLbxr.js → utils-BCI5dixg.js} +35 -15
- package/dist/utils.js +2 -2
- package/package.json +14 -6
- package/dist/Button-9RIB8ZR0.js +0 -47
- package/dist/Footer-5yMo5akY.js +0 -784
- package/dist/NewTag-C-3mRyvV.js +0 -26
- package/dist/components/NewTag/index.js +0 -2
- package/dist/lib/components/NewTag/index.d.ts +0 -8
- /package/dist/{clsx-ROFf4vs9.js → clsx-D7D_XZ_-.js} +0 -0
- /package/dist/{es2015-CzBBLWyD.js → es2015-C6iv4436.js} +0 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { t as e } from "./clsx-D7D_XZ_-.js";
|
|
2
|
+
import { forwardRef as t, useCallback as n, useEffect as r, useId as i, useRef as a, useState as o } from "react";
|
|
3
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
|
+
var l = {
|
|
5
|
+
autofilled: "YDdfMa_autofilled",
|
|
6
|
+
buttonSlot: "YDdfMa_buttonSlot",
|
|
7
|
+
default: "YDdfMa_default",
|
|
8
|
+
dirty: "YDdfMa_dirty",
|
|
9
|
+
disabled: "YDdfMa_disabled",
|
|
10
|
+
field: "YDdfMa_field",
|
|
11
|
+
focus: "YDdfMa_focus",
|
|
12
|
+
hasError: "YDdfMa_hasError",
|
|
13
|
+
helpText: "YDdfMa_helpText",
|
|
14
|
+
iconLeft: "YDdfMa_iconLeft",
|
|
15
|
+
inputElement: "YDdfMa_inputElement",
|
|
16
|
+
inputRow: "YDdfMa_inputRow",
|
|
17
|
+
inputSolo: "YDdfMa_inputSolo",
|
|
18
|
+
label: "YDdfMa_label",
|
|
19
|
+
labelRow: "YDdfMa_labelRow",
|
|
20
|
+
onAutoFillStart: "YDdfMa_onAutoFillStart",
|
|
21
|
+
required: "YDdfMa_required",
|
|
22
|
+
success: "YDdfMa_success",
|
|
23
|
+
white: "YDdfMa_white"
|
|
24
|
+
}, u = t(({ label: t, iconLeft: u, button: d, helpText: f, showHelpText: p, variant: m = "default", hasError: h = !1, success: g = !1, disabled: _ = !1, required: v = !1, className: y, wrapperClassName: b, onFocus: x, onBlur: S, id: C, "aria-label": w, "aria-describedby": T, value: E, defaultValue: D, onChange: O, ...k }, A) => {
|
|
25
|
+
let j = a(null), M = A || j, N = i(), [P, F] = o(!1), [I, L] = o(!1), [R, z] = o(D === void 0 ? "" : String(D)), B = E !== void 0, V = p ?? !!f, H = V && f ? `${C ?? N}-help-text` : void 0, U = [T, H].filter(Boolean).join(" ") || void 0, W = B ? String(E ?? "").length > 0 : R.length > 0, G = n((e) => {
|
|
26
|
+
e.animationName.includes("onAutoFillStart") && L(!0);
|
|
27
|
+
}, []);
|
|
28
|
+
r(() => {
|
|
29
|
+
let e = M.current;
|
|
30
|
+
if (!e) return;
|
|
31
|
+
let t = () => {
|
|
32
|
+
try {
|
|
33
|
+
e.matches(":-webkit-autofill") && L(!0);
|
|
34
|
+
} catch {}
|
|
35
|
+
}, n = setTimeout(t, 100), r = setTimeout(t, 500);
|
|
36
|
+
return () => {
|
|
37
|
+
clearTimeout(n), clearTimeout(r);
|
|
38
|
+
};
|
|
39
|
+
}, [M]);
|
|
40
|
+
let K = n((e) => {
|
|
41
|
+
F(!0), x?.(e);
|
|
42
|
+
}, [x]), q = n((e) => {
|
|
43
|
+
F(!1), S?.(e);
|
|
44
|
+
}, [S]), J = n((e) => {
|
|
45
|
+
B || z(e.target.value), O?.(e);
|
|
46
|
+
}, [B, O]);
|
|
47
|
+
return /* @__PURE__ */ c("div", {
|
|
48
|
+
onClick: n(() => {
|
|
49
|
+
!_ && M.current && M.current.focus();
|
|
50
|
+
}, [_, M]),
|
|
51
|
+
className: e("hsui-input-solo", l.inputSolo, {
|
|
52
|
+
[l[m]]: m,
|
|
53
|
+
[l.focus]: P,
|
|
54
|
+
[l.hasError]: h,
|
|
55
|
+
[l.success]: g,
|
|
56
|
+
[l.disabled]: _,
|
|
57
|
+
[l.dirty]: W || I,
|
|
58
|
+
[l.autofilled]: I
|
|
59
|
+
}, b),
|
|
60
|
+
children: [
|
|
61
|
+
t && /* @__PURE__ */ s("div", {
|
|
62
|
+
className: l.labelRow,
|
|
63
|
+
children: C ? /* @__PURE__ */ c("label", {
|
|
64
|
+
className: l.label,
|
|
65
|
+
htmlFor: C,
|
|
66
|
+
children: [t, v && /* @__PURE__ */ s("span", {
|
|
67
|
+
className: l.required,
|
|
68
|
+
children: " *"
|
|
69
|
+
})]
|
|
70
|
+
}) : /* @__PURE__ */ c("span", {
|
|
71
|
+
className: l.label,
|
|
72
|
+
children: [t, v && /* @__PURE__ */ s("span", {
|
|
73
|
+
className: l.required,
|
|
74
|
+
children: " *"
|
|
75
|
+
})]
|
|
76
|
+
})
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ s("div", {
|
|
79
|
+
className: l.field,
|
|
80
|
+
children: /* @__PURE__ */ c("div", {
|
|
81
|
+
className: l.inputRow,
|
|
82
|
+
children: [
|
|
83
|
+
u && /* @__PURE__ */ s("span", {
|
|
84
|
+
className: l.iconLeft,
|
|
85
|
+
children: u
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ s("input", {
|
|
88
|
+
ref: M,
|
|
89
|
+
id: C,
|
|
90
|
+
className: e(l.inputElement, y),
|
|
91
|
+
disabled: _,
|
|
92
|
+
required: v,
|
|
93
|
+
"aria-invalid": h,
|
|
94
|
+
"aria-label": w ?? t,
|
|
95
|
+
"aria-describedby": U,
|
|
96
|
+
value: E,
|
|
97
|
+
defaultValue: D,
|
|
98
|
+
onFocus: K,
|
|
99
|
+
onBlur: q,
|
|
100
|
+
onChange: J,
|
|
101
|
+
onAnimationStart: G,
|
|
102
|
+
...k
|
|
103
|
+
}),
|
|
104
|
+
d && /* @__PURE__ */ s("span", {
|
|
105
|
+
className: l.buttonSlot,
|
|
106
|
+
onClick: (e) => e.stopPropagation(),
|
|
107
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
108
|
+
children: d
|
|
109
|
+
})
|
|
110
|
+
]
|
|
111
|
+
})
|
|
112
|
+
}),
|
|
113
|
+
V && f && /* @__PURE__ */ s("span", {
|
|
114
|
+
id: H,
|
|
115
|
+
className: l.helpText,
|
|
116
|
+
children: f
|
|
117
|
+
})
|
|
118
|
+
]
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
//#endregion
|
|
122
|
+
export { u as t };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as e } from "./clsx-D7D_XZ_-.js";
|
|
2
|
+
import { a as t } from "./esm-T3Xn_ZHF.js";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
var i = {
|
|
5
|
+
attention: "UwHMOW_attention",
|
|
6
|
+
border: "UwHMOW_border",
|
|
7
|
+
brand: "UwHMOW_brand",
|
|
8
|
+
danger: "UwHMOW_danger",
|
|
9
|
+
icon: "UwHMOW_icon",
|
|
10
|
+
neutral: "UwHMOW_neutral",
|
|
11
|
+
success: "UwHMOW_success",
|
|
12
|
+
tag: "UwHMOW_tag"
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region lib/components/Label/index.tsx
|
|
16
|
+
function a({ variant: a = "success", iconLeft: o, icon: s, border: c, className: l, children: u, ...d }) {
|
|
17
|
+
let f = o === void 0 ? s === void 0 ? !0 : s : o, p = f === !0 ? /* @__PURE__ */ n(t, {}) : f === !1 ? null : f;
|
|
18
|
+
return /* @__PURE__ */ r("span", {
|
|
19
|
+
className: e(l, i.tag, i[a], {
|
|
20
|
+
[i.icon]: !!f,
|
|
21
|
+
[i.border]: c
|
|
22
|
+
}),
|
|
23
|
+
...d,
|
|
24
|
+
children: [p, u ?? "New"]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
var o = a;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { o as n, a as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
var t = {
|
|
3
|
+
fancy: "AY45VG_fancy",
|
|
4
|
+
link: "AY45VG_link",
|
|
5
|
+
native: "AY45VG_native"
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region lib/components/Link/index.tsx
|
|
9
|
+
function n({ as: n, variant: r = "native", className: i, children: a, ...o }) {
|
|
10
|
+
return /* @__PURE__ */ e(n ?? "a", {
|
|
11
|
+
className: [
|
|
12
|
+
t.link,
|
|
13
|
+
t[r],
|
|
14
|
+
i
|
|
15
|
+
].filter(Boolean).join(" "),
|
|
16
|
+
...o,
|
|
17
|
+
children: a
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { n as t };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { l as e } from "./utils-BCI5dixg.js";
|
|
2
|
+
import { t } from "./clsx-D7D_XZ_-.js";
|
|
3
|
+
import { C as n, M as r, z as i } from "./esm-T3Xn_ZHF.js";
|
|
4
|
+
import { t as a } from "./Button-CJp__tle.js";
|
|
5
|
+
import { t as o } from "./Icon-Dwo9ZDNX.js";
|
|
6
|
+
import { t as s } from "./Link-DGMiLJES.js";
|
|
7
|
+
import { t as c } from "./InputSolo-cLqKBh1c.js";
|
|
8
|
+
import { t as l } from "./Typography-nzBx3Yxn.js";
|
|
9
|
+
import { useEffect as u, useRef as d, useState as f } from "react";
|
|
10
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
11
|
+
var h = {
|
|
12
|
+
alreadySubscribed: "HrUh7G_alreadySubscribed",
|
|
13
|
+
content: "HrUh7G_content",
|
|
14
|
+
errorTip: "HrUh7G_errorTip",
|
|
15
|
+
errorTipIn: "HrUh7G_errorTipIn",
|
|
16
|
+
formWrap: "HrUh7G_formWrap",
|
|
17
|
+
input: "HrUh7G_input",
|
|
18
|
+
newsletter: "HrUh7G_newsletter",
|
|
19
|
+
success: "HrUh7G_success"
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region lib/components/NewsletterSignup/index.tsx
|
|
23
|
+
function g({ link: g = "a", privacyUrl: _ = "https://www.highcharts.com/privacy/", endpoint: v = "https://hc-dev.highcharts.com/wp-json/activecampaign/v1/newsletter-signup", onSuccess: y, onError: b, initialState: x = "default", initialError: S = "Check the email format and try again" }) {
|
|
24
|
+
let C = d(null), [w, T] = f(!1), [E, D] = f(x === "success"), [O, k] = f(x === "alreadySubscribedFlash" || x === "alreadySubscribed"), [A, j] = f(x === "alreadySubscribed"), [M, N] = f(x === "error" ? S : "");
|
|
25
|
+
u(() => {
|
|
26
|
+
if (!O || A || x === "alreadySubscribedFlash") return;
|
|
27
|
+
let e = setTimeout(() => j(!0), 1500);
|
|
28
|
+
return () => clearTimeout(e);
|
|
29
|
+
}, [
|
|
30
|
+
O,
|
|
31
|
+
A,
|
|
32
|
+
x
|
|
33
|
+
]);
|
|
34
|
+
let P = !!M && M !== "Something went wrong", F = (t) => {
|
|
35
|
+
P ? e(t.target.value) && N("") : M && N("");
|
|
36
|
+
}, I = async (t) => {
|
|
37
|
+
t.preventDefault();
|
|
38
|
+
let n = C.current;
|
|
39
|
+
if (n) {
|
|
40
|
+
if (!n.value.trim()) {
|
|
41
|
+
n.value = "", N("Please enter your email address"), n.focus();
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (P) {
|
|
45
|
+
n.focus();
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (!e(n.value)) {
|
|
49
|
+
N("Check the email format and try again"), n.focus();
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
N(""), T(!0);
|
|
53
|
+
try {
|
|
54
|
+
let e = await fetch(v, {
|
|
55
|
+
method: "POST",
|
|
56
|
+
headers: { "Content-Type": "application/json" },
|
|
57
|
+
body: JSON.stringify({ email: n.value })
|
|
58
|
+
});
|
|
59
|
+
e.ok ? (D(!0), y?.()) : e.status === 409 ? (k(!0), y?.()) : (N("Something went wrong"), b?.("Something went wrong"));
|
|
60
|
+
} catch {
|
|
61
|
+
N("Something went wrong"), b?.("Something went wrong");
|
|
62
|
+
} finally {
|
|
63
|
+
T(!1);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}, L = E || A;
|
|
67
|
+
return /* @__PURE__ */ m("div", {
|
|
68
|
+
className: t(h.newsletter, {
|
|
69
|
+
[h.success]: E,
|
|
70
|
+
[h.alreadySubscribed]: A
|
|
71
|
+
}),
|
|
72
|
+
"data-theme": L ? "light" : void 0,
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ m("h2", { children: [/* @__PURE__ */ p(o, {
|
|
75
|
+
name: i,
|
|
76
|
+
size: 12
|
|
77
|
+
}), "Stay in the Loop"] }),
|
|
78
|
+
L ? /* @__PURE__ */ m("div", {
|
|
79
|
+
className: h.content,
|
|
80
|
+
children: [/* @__PURE__ */ p(o, {
|
|
81
|
+
name: n,
|
|
82
|
+
size: 16
|
|
83
|
+
}), E ? "Check your inbox and confirm your email to finish signing up." : "You’re already subscribed to our newsletter."]
|
|
84
|
+
}) : /* @__PURE__ */ m("form", {
|
|
85
|
+
onSubmit: I,
|
|
86
|
+
className: h.formWrap,
|
|
87
|
+
noValidate: !0,
|
|
88
|
+
children: [M && /* @__PURE__ */ p("div", {
|
|
89
|
+
className: h.errorTip,
|
|
90
|
+
role: "alert",
|
|
91
|
+
children: M
|
|
92
|
+
}), /* @__PURE__ */ p(c, {
|
|
93
|
+
ref: C,
|
|
94
|
+
placeholder: "Email address",
|
|
95
|
+
type: "email",
|
|
96
|
+
hasError: !!M,
|
|
97
|
+
showHelpText: !1,
|
|
98
|
+
disabled: O,
|
|
99
|
+
success: O,
|
|
100
|
+
onChange: F,
|
|
101
|
+
wrapperClassName: h.input,
|
|
102
|
+
button: O ? /* @__PURE__ */ m(a, {
|
|
103
|
+
size: 200,
|
|
104
|
+
variant: "success",
|
|
105
|
+
disabled: !0,
|
|
106
|
+
children: [/* @__PURE__ */ p(o, {
|
|
107
|
+
name: r,
|
|
108
|
+
size: 16
|
|
109
|
+
}), "You’re in"]
|
|
110
|
+
}) : /* @__PURE__ */ p(a, {
|
|
111
|
+
type: "submit",
|
|
112
|
+
size: 200,
|
|
113
|
+
variant: M ? "danger" : "brand",
|
|
114
|
+
loading: w,
|
|
115
|
+
children: "Sign up"
|
|
116
|
+
})
|
|
117
|
+
})]
|
|
118
|
+
}),
|
|
119
|
+
/* @__PURE__ */ m(l, {
|
|
120
|
+
as: "p",
|
|
121
|
+
size: 75,
|
|
122
|
+
children: [
|
|
123
|
+
"By signing up, you agree to the",
|
|
124
|
+
" ",
|
|
125
|
+
/* @__PURE__ */ p(s, {
|
|
126
|
+
as: g,
|
|
127
|
+
href: _,
|
|
128
|
+
variant: "fancy",
|
|
129
|
+
children: "Privacy Policy"
|
|
130
|
+
})
|
|
131
|
+
]
|
|
132
|
+
})
|
|
133
|
+
]
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
//#endregion
|
|
137
|
+
export { g as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./clsx-
|
|
2
|
-
import { t } from "./esm-
|
|
3
|
-
import { t as n } from "./Button-
|
|
4
|
-
import { t as r } from "./Container-
|
|
5
|
-
import { t as i } from "./
|
|
1
|
+
import { t as e } from "./clsx-D7D_XZ_-.js";
|
|
2
|
+
import { t } from "./esm-T3Xn_ZHF.js";
|
|
3
|
+
import { t as n } from "./Button-CJp__tle.js";
|
|
4
|
+
import { t as r } from "./Container-DI2smQRq.js";
|
|
5
|
+
import { t as i } from "./Label-BH3YxfNt.js";
|
|
6
6
|
import { useEffect as a, useState as o } from "react";
|
|
7
7
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
8
|
var u = {
|
|
@@ -39,7 +39,7 @@ function d({ id: d, content: f, variant: p = "brand", closable: m = !0, onClose:
|
|
|
39
39
|
className: u.title,
|
|
40
40
|
children: [e.tag === "new" && /* @__PURE__ */ c(i, {
|
|
41
41
|
variant: p,
|
|
42
|
-
|
|
42
|
+
iconLeft: !1
|
|
43
43
|
}), /* @__PURE__ */ c("span", {
|
|
44
44
|
className: u.titleText,
|
|
45
45
|
children: e.title
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "./clsx-
|
|
3
|
-
import {
|
|
4
|
-
import { t as c } from "./Button-
|
|
5
|
-
import { _ as l, a as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, r as x, s as S, t as C, u as w } from "./es2015-
|
|
1
|
+
import { d as e, o as t } from "./utils-BCI5dixg.js";
|
|
2
|
+
import { t as n } from "./clsx-D7D_XZ_-.js";
|
|
3
|
+
import { N as r, _ as i, g as a, i as o, u as s } from "./esm-T3Xn_ZHF.js";
|
|
4
|
+
import { t as c } from "./Button-CJp__tle.js";
|
|
5
|
+
import { _ as l, a as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, r as x, s as S, t as C, u as w } from "./es2015-C6iv4436.js";
|
|
6
6
|
import * as T from "react";
|
|
7
7
|
import { useLayoutEffect as ee } from "react";
|
|
8
8
|
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
@@ -1501,13 +1501,13 @@ function Jn({ children: e, id: t, ...i }) {
|
|
|
1501
1501
|
})] });
|
|
1502
1502
|
}
|
|
1503
1503
|
function Yn() {
|
|
1504
|
-
let { theme: n, systemTheme: r, setTheme: l } =
|
|
1504
|
+
let { theme: n, systemTheme: r, setTheme: l } = e(), u = t();
|
|
1505
1505
|
return /* @__PURE__ */ O(Hn, { children: [/* @__PURE__ */ D(Wn, {
|
|
1506
1506
|
asChild: !0,
|
|
1507
1507
|
children: /* @__PURE__ */ O(c, {
|
|
1508
1508
|
variant: "transparent",
|
|
1509
1509
|
"aria-label": "Preferences",
|
|
1510
|
-
children: [/* @__PURE__ */ D(
|
|
1510
|
+
children: [/* @__PURE__ */ D(s, {}), /* @__PURE__ */ D(Un, { className: qn.anchor })]
|
|
1511
1511
|
})
|
|
1512
1512
|
}), /* @__PURE__ */ D(Gn, { children: /* @__PURE__ */ D(Kn, {
|
|
1513
1513
|
sideOffset: 8,
|
|
@@ -1532,7 +1532,7 @@ function Yn() {
|
|
|
1532
1532
|
name: "theme",
|
|
1533
1533
|
checked: n === "light",
|
|
1534
1534
|
onChange: () => l("light"),
|
|
1535
|
-
children: [/* @__PURE__ */ D(
|
|
1535
|
+
children: [/* @__PURE__ */ D(o, {}), "Light"]
|
|
1536
1536
|
}),
|
|
1537
1537
|
/* @__PURE__ */ O(Jn, {
|
|
1538
1538
|
id: "dark",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as f } from "./Button-
|
|
3
|
-
import { _ as p, c as m, f as h, g, h as _, l as v, m as y, s as b, u as x } from "./es2015-
|
|
4
|
-
import { t as S } from "./dist-
|
|
5
|
-
import { a as C, i as w, n as T, o as E, r as D, s as O } from "./dist-
|
|
1
|
+
import { B as e, F as t, L as n, O as r, R as i, S as a, T as o, c as s, f as c, h as l, l as u, p as d } from "./esm-T3Xn_ZHF.js";
|
|
2
|
+
import { t as f } from "./Button-CJp__tle.js";
|
|
3
|
+
import { _ as p, c as m, f as h, g, h as _, l as v, m as y, s as b, u as x } from "./es2015-C6iv4436.js";
|
|
4
|
+
import { t as S } from "./dist-GNbC83fc.js";
|
|
5
|
+
import { a as C, i as w, n as T, o as E, r as D, s as O } from "./dist-fJmWSp8_.js";
|
|
6
6
|
import * as k from "react";
|
|
7
7
|
import A, { useEffect as ee, useRef as te, useState as ne } from "react";
|
|
8
8
|
import { jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
@@ -4567,13 +4567,13 @@ function Tt() {
|
|
|
4567
4567
|
}, V = (e) => {
|
|
4568
4568
|
h(e.target.value);
|
|
4569
4569
|
}, H = {
|
|
4570
|
-
products: /* @__PURE__ */ j(
|
|
4570
|
+
products: /* @__PURE__ */ j(u, {}),
|
|
4571
4571
|
demo: /* @__PURE__ */ j(l, {}),
|
|
4572
|
-
docs: /* @__PURE__ */ j(
|
|
4573
|
-
blog: /* @__PURE__ */ j(
|
|
4574
|
-
misc: /* @__PURE__ */ j(
|
|
4575
|
-
shop: /* @__PURE__ */ j(
|
|
4576
|
-
file: /* @__PURE__ */ j(
|
|
4572
|
+
docs: /* @__PURE__ */ j(t, {}),
|
|
4573
|
+
blog: /* @__PURE__ */ j(e, {}),
|
|
4574
|
+
misc: /* @__PURE__ */ j(a, {}),
|
|
4575
|
+
shop: /* @__PURE__ */ j(s, {}),
|
|
4576
|
+
file: /* @__PURE__ */ j(o, {})
|
|
4577
4577
|
};
|
|
4578
4578
|
return /* @__PURE__ */ M(C, {
|
|
4579
4579
|
open: v,
|
|
@@ -4583,7 +4583,7 @@ function Tt() {
|
|
|
4583
4583
|
children: /* @__PURE__ */ j(f, {
|
|
4584
4584
|
variant: "transparent",
|
|
4585
4585
|
"aria-label": "Search",
|
|
4586
|
-
children: /* @__PURE__ */ j(
|
|
4586
|
+
children: /* @__PURE__ */ j(c, {})
|
|
4587
4587
|
})
|
|
4588
4588
|
}), /* @__PURE__ */ M(w, { children: [/* @__PURE__ */ j(D, { className: Z.overlay }), /* @__PURE__ */ M(T, {
|
|
4589
4589
|
className: Z.search,
|
|
@@ -4592,7 +4592,7 @@ function Tt() {
|
|
|
4592
4592
|
/* @__PURE__ */ j(S, { children: /* @__PURE__ */ j(E, { children: "Search" }) }),
|
|
4593
4593
|
/* @__PURE__ */ M("label", {
|
|
4594
4594
|
className: Z.label,
|
|
4595
|
-
children: [/* @__PURE__ */ j(
|
|
4595
|
+
children: [/* @__PURE__ */ j(d, {}), /* @__PURE__ */ j("input", {
|
|
4596
4596
|
className: Z.input,
|
|
4597
4597
|
placeholder: "Search charts, tutorials, blog posts, or keywords...",
|
|
4598
4598
|
ref: k,
|
|
@@ -4667,14 +4667,14 @@ function Tt() {
|
|
|
4667
4667
|
className: Z.bottomGroup,
|
|
4668
4668
|
children: [/* @__PURE__ */ M("div", {
|
|
4669
4669
|
className: Z.bottomIcons,
|
|
4670
|
-
children: [/* @__PURE__ */ j("span", { children: /* @__PURE__ */ j(
|
|
4670
|
+
children: [/* @__PURE__ */ j("span", { children: /* @__PURE__ */ j(i, {}) }), /* @__PURE__ */ j("span", { children: /* @__PURE__ */ j(n, {}) })]
|
|
4671
4671
|
}), "Navigate"]
|
|
4672
4672
|
}),
|
|
4673
4673
|
/* @__PURE__ */ M("div", {
|
|
4674
4674
|
className: Z.bottomGroup,
|
|
4675
4675
|
children: [/* @__PURE__ */ j("div", {
|
|
4676
4676
|
className: Z.bottomIcons,
|
|
4677
|
-
children: /* @__PURE__ */ j("span", { children: /* @__PURE__ */ j(
|
|
4677
|
+
children: /* @__PURE__ */ j("span", { children: /* @__PURE__ */ j(r, {}) })
|
|
4678
4678
|
}), "Select"]
|
|
4679
4679
|
}),
|
|
4680
4680
|
/* @__PURE__ */ M("div", {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { t as e } from "./clsx-D7D_XZ_-.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
var r = {
|
|
5
|
+
code: "va8HNW_code",
|
|
6
|
+
medium: "va8HNW_medium",
|
|
7
|
+
normal: "va8HNW_normal",
|
|
8
|
+
semi: "va8HNW_semi",
|
|
9
|
+
"size-100": "va8HNW_size-100",
|
|
10
|
+
"size-1000": "va8HNW_size-1000",
|
|
11
|
+
"size-200": "va8HNW_size-200",
|
|
12
|
+
"size-300": "va8HNW_size-300",
|
|
13
|
+
"size-400": "va8HNW_size-400",
|
|
14
|
+
"size-50": "va8HNW_size-50",
|
|
15
|
+
"size-500": "va8HNW_size-500",
|
|
16
|
+
"size-600": "va8HNW_size-600",
|
|
17
|
+
"size-700": "va8HNW_size-700",
|
|
18
|
+
"size-75": "va8HNW_size-75",
|
|
19
|
+
"size-800": "va8HNW_size-800",
|
|
20
|
+
"size-900": "va8HNW_size-900",
|
|
21
|
+
typography: "va8HNW_typography"
|
|
22
|
+
}, i = {
|
|
23
|
+
primary: "var(--HS-text-primary-default)",
|
|
24
|
+
secondary: "var(--HS-text-secondary-default)",
|
|
25
|
+
tertiary: "var(--HS-text-tertiary-default)",
|
|
26
|
+
brand: "var(--HS-text-brand-default)",
|
|
27
|
+
brandAlt: "var(--HS-text-brand-default-alt)",
|
|
28
|
+
brandSelected: "var(--HS-text-brand-selected)",
|
|
29
|
+
successPrimary: "var(--HS-text-success-Primary)",
|
|
30
|
+
successSecondary: "var(--HS-text-success-Secondary)",
|
|
31
|
+
successAlt: "var(--HS-text-success-default-alt)",
|
|
32
|
+
attention: "var(--HS-text-attention-default)",
|
|
33
|
+
attentionAlt: "var(--HS-text-attention-default-alt)",
|
|
34
|
+
danger: "var(--HS-text-danger-default)"
|
|
35
|
+
}, a = t(({ children: t, size: a = 200, weight: o = "normal", color: s = "primary", code: c = !1, as: l = c ? "code" : "span", className: u, style: d, ...f }, p) => {
|
|
36
|
+
let m = {
|
|
37
|
+
"--hsui-typography-color": i[s],
|
|
38
|
+
...d
|
|
39
|
+
};
|
|
40
|
+
return /* @__PURE__ */ n(l, {
|
|
41
|
+
className: e("hsui-typography", u, r.typography, r[`size-${a}`], r[o], { [r.code]: c }),
|
|
42
|
+
ref: p,
|
|
43
|
+
style: m,
|
|
44
|
+
...f,
|
|
45
|
+
children: t
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
export { a as t };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { n as e } from "./esm-T3Xn_ZHF.js";
|
|
2
|
+
import { s as t } from "./fa-ByhY-7YY.js";
|
|
3
|
+
import { t as n } from "./dist-GNbC83fc.js";
|
|
4
|
+
import { a as r, i, n as a, o, r as s, s as c, t as l } from "./dist-fJmWSp8_.js";
|
|
5
|
+
import { useEffect as u, useRef as d, useState as f } from "react";
|
|
6
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
|
+
var h = {
|
|
8
|
+
dialogClose: "elwCNG_dialogClose",
|
|
9
|
+
dialogOverlay: "elwCNG_dialogOverlay",
|
|
10
|
+
show: "elwCNG_show",
|
|
11
|
+
youtube: "elwCNG_youtube",
|
|
12
|
+
youtubeContent: "elwCNG_youtubeContent",
|
|
13
|
+
youtubeCopy: "elwCNG_youtubeCopy",
|
|
14
|
+
youtubeMedia: "elwCNG_youtubeMedia",
|
|
15
|
+
youtubePreview: "elwCNG_youtubePreview",
|
|
16
|
+
youtubePreviewVisible: "elwCNG_youtubePreviewVisible"
|
|
17
|
+
}, g = "Meet the team behind the charts", _ = "Video: Meet the team behind the charts", v = "https://player.vimeo.com/video/955924808?autoplay=1", y = "https://shop.highcharts.com/footer.webm", b = "200px";
|
|
18
|
+
function x() {
|
|
19
|
+
let x = d(null), [S, C] = f(!1), [w, T] = f(!1);
|
|
20
|
+
return u(() => {
|
|
21
|
+
let e = x.current;
|
|
22
|
+
if (S || !e) return;
|
|
23
|
+
if (typeof IntersectionObserver > "u") {
|
|
24
|
+
C(!0);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
let t = new IntersectionObserver(([e]) => {
|
|
28
|
+
e?.isIntersecting && (C(!0), t.disconnect());
|
|
29
|
+
}, { rootMargin: b });
|
|
30
|
+
return t.observe(e), () => t.disconnect();
|
|
31
|
+
}, [S]), /* @__PURE__ */ m(r, {
|
|
32
|
+
onOpenChange: (e) => e && C(!0),
|
|
33
|
+
children: [/* @__PURE__ */ p(c, {
|
|
34
|
+
asChild: !0,
|
|
35
|
+
children: /* @__PURE__ */ m("button", {
|
|
36
|
+
ref: x,
|
|
37
|
+
type: "button",
|
|
38
|
+
className: h.youtube,
|
|
39
|
+
"aria-label": g,
|
|
40
|
+
onPointerEnter: () => C(!0),
|
|
41
|
+
onFocus: () => C(!0),
|
|
42
|
+
children: [/* @__PURE__ */ p("span", {
|
|
43
|
+
className: h.youtubeMedia,
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
children: S && /* @__PURE__ */ p("video", {
|
|
46
|
+
className: `${h.youtubePreview} ${w ? h.youtubePreviewVisible : ""}`,
|
|
47
|
+
src: y,
|
|
48
|
+
autoPlay: !0,
|
|
49
|
+
loop: !0,
|
|
50
|
+
muted: !0,
|
|
51
|
+
playsInline: !0,
|
|
52
|
+
preload: "metadata",
|
|
53
|
+
onCanPlay: () => T(!0)
|
|
54
|
+
})
|
|
55
|
+
}), /* @__PURE__ */ m("span", {
|
|
56
|
+
className: h.youtubeCopy,
|
|
57
|
+
children: [/* @__PURE__ */ p(t, {}), /* @__PURE__ */ p("p", { children: g })]
|
|
58
|
+
})]
|
|
59
|
+
})
|
|
60
|
+
}), /* @__PURE__ */ m(i, { children: [/* @__PURE__ */ p(s, { className: h.dialogOverlay }), /* @__PURE__ */ m(a, {
|
|
61
|
+
className: h.youtubeContent,
|
|
62
|
+
"aria-describedby": void 0,
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ p(n, {
|
|
65
|
+
asChild: !0,
|
|
66
|
+
children: /* @__PURE__ */ p(o, { children: _ })
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ p(l, {
|
|
69
|
+
className: h.dialogClose,
|
|
70
|
+
"aria-label": "Close",
|
|
71
|
+
children: /* @__PURE__ */ p(e, {
|
|
72
|
+
width: 20,
|
|
73
|
+
height: 20
|
|
74
|
+
})
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ p("iframe", {
|
|
77
|
+
width: "100%",
|
|
78
|
+
height: "100%",
|
|
79
|
+
src: v,
|
|
80
|
+
title: _,
|
|
81
|
+
allow: "autoplay",
|
|
82
|
+
allowFullScreen: !0
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
})] })]
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { x as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Button-
|
|
1
|
+
import { t as e } from "../../Button-CJp__tle.js";
|
|
2
2
|
export { e as Button };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Container-
|
|
1
|
+
import { t as e } from "../../Container-DI2smQRq.js";
|
|
2
2
|
export { e as Container };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../CookiePolicyModal-
|
|
1
|
+
import { t as e } from "../../CookiePolicyModal-BZkVbILl.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Footer-
|
|
1
|
+
import { t as e } from "../../Footer-bUIou6Hl.js";
|
|
2
2
|
export { e as Footer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../GPTInput-
|
|
1
|
+
import { n as e, t } from "../../GPTInput-DKxJOGYt.js";
|
|
2
2
|
export { e as GPTInput, t as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../Header-
|
|
1
|
+
import { n as e, t } from "../../Header-6RIZc0v3.js";
|
|
2
2
|
export { t as Header, e as SubHeader };
|