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
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { t as e } from "./Search-
|
|
2
|
-
import { a as t,
|
|
3
|
-
import { t as o } from "./clsx-
|
|
4
|
-
import {
|
|
5
|
-
import { t as v } from "./Button-
|
|
6
|
-
import { t as y } from "./Container-
|
|
7
|
-
import { t as b } from "./
|
|
8
|
-
import { t as x } from "./
|
|
9
|
-
import { t as S } from "./
|
|
10
|
-
import { t as C } from "./Notification-
|
|
1
|
+
import { t as e } from "./Search-CDHkDXCm.js";
|
|
2
|
+
import { a as t, d as n, i as r, o as i, u as a } from "./utils-BCI5dixg.js";
|
|
3
|
+
import { t as o } from "./clsx-D7D_XZ_-.js";
|
|
4
|
+
import { I as s, P as c, c as l, m as u, r as d, s as f, t as p, v as m, w as h, y as g, z as _ } from "./esm-T3Xn_ZHF.js";
|
|
5
|
+
import { t as v } from "./Button-CJp__tle.js";
|
|
6
|
+
import { t as y } from "./Container-DI2smQRq.js";
|
|
7
|
+
import { t as b } from "./Logo-h9bQL-cT.js";
|
|
8
|
+
import { t as x } from "./PrefPanel-25erkPRB.js";
|
|
9
|
+
import { t as S } from "./Label-BH3YxfNt.js";
|
|
10
|
+
import { t as C } from "./Notification-CJ3iQv3Z.js";
|
|
11
11
|
import { useEffect as w, useRef as T, useState as E } from "react";
|
|
12
12
|
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
13
13
|
var A = {
|
|
@@ -75,32 +75,32 @@ var A = {
|
|
|
75
75
|
{
|
|
76
76
|
title: "Products",
|
|
77
77
|
url: "https://www.highcharts.com/products/",
|
|
78
|
-
icon: /* @__PURE__ */ O(
|
|
78
|
+
icon: /* @__PURE__ */ O(c, {})
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
title: "Demos",
|
|
82
82
|
url: "https://www.highcharts.com/demo",
|
|
83
|
-
icon: /* @__PURE__ */ O(
|
|
83
|
+
icon: /* @__PURE__ */ O(u, {})
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
title: "Support",
|
|
87
87
|
url: "https://www.highcharts.com/support/",
|
|
88
|
-
icon: /* @__PURE__ */ O(
|
|
88
|
+
icon: /* @__PURE__ */ O(m, {})
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
title: "Resources",
|
|
92
92
|
url: "https://www.highcharts.com/resources/",
|
|
93
|
-
icon: /* @__PURE__ */ O(
|
|
93
|
+
icon: /* @__PURE__ */ O(h, {})
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
title: "Pricing",
|
|
97
97
|
url: "https://shop.highcharts.com/",
|
|
98
|
-
icon: /* @__PURE__ */ O(
|
|
98
|
+
icon: /* @__PURE__ */ O(s, {})
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
title: "Blog",
|
|
102
102
|
url: "https://www.highcharts.com/blog/home/",
|
|
103
|
-
icon: /* @__PURE__ */ O(
|
|
103
|
+
icon: /* @__PURE__ */ O(_, {})
|
|
104
104
|
}
|
|
105
105
|
];
|
|
106
106
|
function B(e, t) {
|
|
@@ -118,21 +118,21 @@ var U = 72, W = 48;
|
|
|
118
118
|
function G(e) {
|
|
119
119
|
return !!e?.some(({ icon: e, selectedIcon: t }) => !!(e || t));
|
|
120
120
|
}
|
|
121
|
-
function K({ items: e, link:
|
|
122
|
-
let a =
|
|
121
|
+
function K({ items: e, link: t = "a", host: n = "https://www.highcharts.com", pathname: r }) {
|
|
122
|
+
let a = i(), s = G(e);
|
|
123
123
|
return /* @__PURE__ */ O("div", {
|
|
124
124
|
className: o(A.sub, A.outer),
|
|
125
125
|
children: /* @__PURE__ */ O(y, {
|
|
126
126
|
className: o(A.subContainer, { [A.compact]: !s }),
|
|
127
127
|
as: "ul",
|
|
128
|
-
children: e.map(({ title: e, url:
|
|
129
|
-
let p =
|
|
128
|
+
children: e.map(({ title: e, url: i, prefixMatch: s, icon: c, selectedIcon: l, tag: u, tagVariant: d = "success" }, f) => {
|
|
129
|
+
let p = r || typeof window < "u" && window.location.pathname, m = typeof window < "u" && window.location.origin || "http://example.com", h = new URL(i, m), g = p && (!!r || a) && h.origin === m && (s ? p.startsWith(h.pathname) : h.pathname === p), _ = !!(c || l), v = typeof u == "string" || typeof u == "number" ? /* @__PURE__ */ O(S, {
|
|
130
130
|
variant: d,
|
|
131
|
-
|
|
131
|
+
iconLeft: !1,
|
|
132
132
|
children: u
|
|
133
133
|
}) : u;
|
|
134
|
-
return /* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(
|
|
135
|
-
href: B(
|
|
134
|
+
return /* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(t, {
|
|
135
|
+
href: B(i, n),
|
|
136
136
|
className: o({
|
|
137
137
|
[A.withIcon]: _,
|
|
138
138
|
[A.selectableIcon]: l,
|
|
@@ -186,26 +186,30 @@ var q = [
|
|
|
186
186
|
content: q
|
|
187
187
|
}];
|
|
188
188
|
function Y() {
|
|
189
|
-
let { theme: e, setTheme: t } =
|
|
189
|
+
let { theme: e, setTheme: t } = n(), r = T(!1);
|
|
190
190
|
return w(() => {
|
|
191
|
-
if (
|
|
192
|
-
let
|
|
193
|
-
if (
|
|
194
|
-
t(
|
|
191
|
+
if (r.current) return;
|
|
192
|
+
let n = L();
|
|
193
|
+
if (n && n !== e) {
|
|
194
|
+
t(n), r.current = !0;
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
r.current = !0;
|
|
198
198
|
}, [t, e]), w(() => {
|
|
199
199
|
e && R(M, e);
|
|
200
200
|
}, [e]), null;
|
|
201
201
|
}
|
|
202
|
-
function X({ subItems:
|
|
203
|
-
let
|
|
204
|
-
|
|
205
|
-
let e =
|
|
202
|
+
function X({ subItems: n, children: i, notifications: s = J, link: c = "a", host: u = "https://www.highcharts.com", pathname: m, cssVariable: h, position: _ = "sticky" }) {
|
|
203
|
+
let S = t("(max-width: 374px)"), w = t("(max-width: 849px)"), M = t("(max-width: 1300px)"), N = G(n), P = T(null), [F, L] = E(!1), [V, H] = E([]);
|
|
204
|
+
r(() => {
|
|
205
|
+
let e = P.current;
|
|
206
206
|
if (!e) return;
|
|
207
|
-
let
|
|
208
|
-
|
|
207
|
+
let t = n?.length ? N ? U : W : 0, r = 82 + V.length * 48 + t, i = -(82 + V.length * 48);
|
|
208
|
+
if (_ === "static") return e.style.transform = "", h && document.documentElement.style.setProperty("--header-bottom", `${r}px`), () => {
|
|
209
|
+
e.style.transform = "", h && document.documentElement.style.removeProperty("--header-bottom");
|
|
210
|
+
};
|
|
211
|
+
let a = window.scrollY, o = 0, s = null, c = null, l = () => {
|
|
212
|
+
c = null, !(!e || s === o) && (e.style.transform = `translate3d(0, ${o}px, 0)`, h && document.documentElement.style.setProperty("--header-bottom", `${r + o}px`), s = o);
|
|
209
213
|
};
|
|
210
214
|
l();
|
|
211
215
|
let u = () => {
|
|
@@ -213,42 +217,43 @@ function X({ subItems: t, children: i, notifications: s = J, link: c = "a", host
|
|
|
213
217
|
a = e, o = Math.min(0, Math.max(i, o - t)), c === null && (c = window.requestAnimationFrame(l));
|
|
214
218
|
};
|
|
215
219
|
return window.addEventListener("scroll", u, { passive: !0 }), () => {
|
|
216
|
-
window.removeEventListener("scroll", u), c !== null && cancelAnimationFrame(c), e.style.transform = "",
|
|
220
|
+
window.removeEventListener("scroll", u), c !== null && cancelAnimationFrame(c), e.style.transform = "", h && document.documentElement.style.removeProperty("--header-bottom");
|
|
217
221
|
};
|
|
218
222
|
}, [
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
223
|
+
h,
|
|
224
|
+
N,
|
|
225
|
+
V.length,
|
|
226
|
+
_,
|
|
227
|
+
n?.length
|
|
228
|
+
]), r(() => {
|
|
224
229
|
if (!s.length) return;
|
|
225
230
|
let e = I();
|
|
226
|
-
|
|
227
|
-
}, [
|
|
228
|
-
let
|
|
231
|
+
H(e ? s.filter((t) => !t.id || !e.closed.includes(t.id)) : s);
|
|
232
|
+
}, [u, s]);
|
|
233
|
+
let q = (e) => {
|
|
229
234
|
if (e.preventDefault(), !(e.nativeEvent instanceof KeyboardEvent) || e.nativeEvent.code === "Enter" || e.nativeEvent.code === "Space") {
|
|
230
235
|
let e = document.querySelector("main");
|
|
231
236
|
e && (e.scrollIntoView(), e.getAttribute("tabindex") !== "-1" && e.setAttribute("tabindex", "-1"), e.focus());
|
|
232
237
|
}
|
|
233
|
-
},
|
|
234
|
-
|
|
235
|
-
},
|
|
236
|
-
if (V
|
|
238
|
+
}, X = () => {
|
|
239
|
+
L(!F);
|
|
240
|
+
}, Z = (e) => {
|
|
241
|
+
if (H(V.filter((t) => !t.id || t.id !== e)), !e) return;
|
|
237
242
|
let t = I() ?? { closed: [] };
|
|
238
243
|
t.closed.includes(e) || R(j, JSON.stringify({ closed: [...t.closed, e] }));
|
|
239
244
|
};
|
|
240
|
-
return /* @__PURE__ */ k(
|
|
245
|
+
return /* @__PURE__ */ k(a, { children: [/* @__PURE__ */ O(Y, {}), /* @__PURE__ */ k("header", {
|
|
241
246
|
className: A.header,
|
|
242
247
|
children: [/* @__PURE__ */ k("div", {
|
|
243
248
|
className: A.content,
|
|
244
|
-
ref:
|
|
249
|
+
ref: P,
|
|
245
250
|
children: [
|
|
246
|
-
|
|
251
|
+
V?.map(({ id: e, content: t, variant: n, closable: r }, i) => /* @__PURE__ */ O(C, {
|
|
247
252
|
id: e,
|
|
248
253
|
content: t,
|
|
249
254
|
variant: n,
|
|
250
255
|
closable: r,
|
|
251
|
-
onClose: () =>
|
|
256
|
+
onClose: () => Z(e)
|
|
252
257
|
}, i)),
|
|
253
258
|
/* @__PURE__ */ O("div", {
|
|
254
259
|
className: o(A.main, A.outer),
|
|
@@ -261,14 +266,14 @@ function X({ subItems: t, children: i, notifications: s = J, link: c = "a", host
|
|
|
261
266
|
className: A.skip,
|
|
262
267
|
size: 500,
|
|
263
268
|
tabIndex: "0",
|
|
264
|
-
onClick:
|
|
265
|
-
onKeyPress:
|
|
269
|
+
onClick: q,
|
|
270
|
+
onKeyPress: q,
|
|
266
271
|
children: "Skip to content"
|
|
267
272
|
}),
|
|
268
273
|
/* @__PURE__ */ O(c, {
|
|
269
274
|
className: A.logo,
|
|
270
|
-
href: B("https://www.highcharts.com/",
|
|
271
|
-
children: /* @__PURE__ */ O(
|
|
275
|
+
href: B("https://www.highcharts.com/", u),
|
|
276
|
+
children: /* @__PURE__ */ O(b, { showText: !M || w && !S })
|
|
272
277
|
}),
|
|
273
278
|
/* @__PURE__ */ O("ul", {
|
|
274
279
|
className: A.links,
|
|
@@ -276,7 +281,7 @@ function X({ subItems: t, children: i, notifications: s = J, link: c = "a", host
|
|
|
276
281
|
variant: "plain",
|
|
277
282
|
size: 300,
|
|
278
283
|
as: c,
|
|
279
|
-
href: B(t,
|
|
284
|
+
href: B(t, u),
|
|
280
285
|
children: e
|
|
281
286
|
}) }, n))
|
|
282
287
|
}),
|
|
@@ -286,74 +291,74 @@ function X({ subItems: t, children: i, notifications: s = J, link: c = "a", host
|
|
|
286
291
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(v, {
|
|
287
292
|
variant: "transparent",
|
|
288
293
|
as: c,
|
|
289
|
-
href: B("https://www.highcharts.com/chat/gpt/",
|
|
294
|
+
href: B("https://www.highcharts.com/chat/gpt/", u),
|
|
290
295
|
children: [/* @__PURE__ */ O("span", {
|
|
291
296
|
className: A.gpt,
|
|
292
297
|
children: "Highcharts GPT"
|
|
293
|
-
}), /* @__PURE__ */ O(
|
|
298
|
+
}), /* @__PURE__ */ O(f, {})]
|
|
294
299
|
}) }),
|
|
295
300
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(e, {}) }),
|
|
296
|
-
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(
|
|
301
|
+
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(x, {}) }),
|
|
297
302
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(v, {
|
|
298
303
|
className: A.cta,
|
|
299
304
|
variant: "success",
|
|
300
305
|
as: c,
|
|
301
|
-
href: B("https://shop.highcharts.com/",
|
|
306
|
+
href: B("https://shop.highcharts.com/", u),
|
|
302
307
|
"aria-label": "Buy Now",
|
|
303
|
-
children: [/* @__PURE__ */ O(
|
|
308
|
+
children: [/* @__PURE__ */ O(l, {}), "Buy Now"]
|
|
304
309
|
}) }),
|
|
305
310
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(v, {
|
|
306
311
|
className: A.cta,
|
|
307
312
|
variant: "brand",
|
|
308
313
|
as: c,
|
|
309
|
-
href: B("https://www.highcharts.com/download/",
|
|
310
|
-
children: [/* @__PURE__ */ O(
|
|
314
|
+
href: B("https://www.highcharts.com/download/", u),
|
|
315
|
+
children: [/* @__PURE__ */ O(d, {}), "Try for Free"]
|
|
311
316
|
}) }),
|
|
312
317
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(v, {
|
|
313
|
-
variant:
|
|
318
|
+
variant: F ? "soft" : "transparent",
|
|
314
319
|
className: A.menu,
|
|
315
|
-
onClick:
|
|
316
|
-
children: [
|
|
320
|
+
onClick: X,
|
|
321
|
+
children: [F ? "Close" : "Menu", O(F ? p : g, {})]
|
|
317
322
|
}) })
|
|
318
323
|
]
|
|
319
324
|
})
|
|
320
325
|
]
|
|
321
326
|
})
|
|
322
327
|
}),
|
|
323
|
-
!!
|
|
324
|
-
items:
|
|
328
|
+
!!n?.length && /* @__PURE__ */ O(K, {
|
|
329
|
+
items: n,
|
|
325
330
|
link: c,
|
|
326
|
-
host:
|
|
327
|
-
pathname:
|
|
331
|
+
host: u,
|
|
332
|
+
pathname: m
|
|
328
333
|
}),
|
|
329
334
|
i
|
|
330
335
|
]
|
|
331
|
-
}),
|
|
332
|
-
className: o(A.mobileOverlay, { [A.open]:
|
|
333
|
-
onClick:
|
|
336
|
+
}), w && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("div", {
|
|
337
|
+
className: o(A.mobileOverlay, { [A.open]: F }),
|
|
338
|
+
onClick: X
|
|
334
339
|
}), /* @__PURE__ */ k("nav", {
|
|
335
|
-
className: o(A.mobile, { [A.open]:
|
|
340
|
+
className: o(A.mobile, { [A.open]: F }),
|
|
336
341
|
children: [
|
|
337
342
|
/* @__PURE__ */ k("div", {
|
|
338
343
|
className: A.container,
|
|
339
344
|
children: [/* @__PURE__ */ O(c, {
|
|
340
345
|
className: A.logo,
|
|
341
|
-
href: B("https://www.highcharts.com/",
|
|
342
|
-
children: /* @__PURE__ */ O(
|
|
346
|
+
href: B("https://www.highcharts.com/", u),
|
|
347
|
+
children: /* @__PURE__ */ O(b, { showText: !S })
|
|
343
348
|
}), /* @__PURE__ */ k("ul", {
|
|
344
349
|
className: A.buttons,
|
|
345
350
|
children: [
|
|
346
351
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(v, {
|
|
347
352
|
variant: "transparent",
|
|
348
353
|
as: c,
|
|
349
|
-
href: B("https://www.highcharts.com/chat/gpt/",
|
|
354
|
+
href: B("https://www.highcharts.com/chat/gpt/", u),
|
|
350
355
|
children: [/* @__PURE__ */ O("span", {
|
|
351
356
|
className: A.gpt,
|
|
352
357
|
children: "Highcharts GPT"
|
|
353
|
-
}), /* @__PURE__ */ O(
|
|
358
|
+
}), /* @__PURE__ */ O(f, {})]
|
|
354
359
|
}) }),
|
|
355
360
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(e, {}) }),
|
|
356
|
-
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(
|
|
361
|
+
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(x, {}) })
|
|
357
362
|
]
|
|
358
363
|
})]
|
|
359
364
|
}),
|
|
@@ -363,14 +368,14 @@ function X({ subItems: t, children: i, notifications: s = J, link: c = "a", host
|
|
|
363
368
|
variant: "brand",
|
|
364
369
|
fullWidth: !0,
|
|
365
370
|
as: c,
|
|
366
|
-
href: B("https://shop.highcharts.com/",
|
|
367
|
-
children: [/* @__PURE__ */ O(
|
|
371
|
+
href: B("https://shop.highcharts.com/", u),
|
|
372
|
+
children: [/* @__PURE__ */ O(l, {}), "Buy Now"]
|
|
368
373
|
}) }), /* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(v, {
|
|
369
374
|
variant: "success",
|
|
370
375
|
fullWidth: !0,
|
|
371
376
|
as: c,
|
|
372
|
-
href: B("https://www.highcharts.com/download/",
|
|
373
|
-
children: [/* @__PURE__ */ O(
|
|
377
|
+
href: B("https://www.highcharts.com/download/", u),
|
|
378
|
+
children: [/* @__PURE__ */ O(d, {}), "Try for Free"]
|
|
374
379
|
}) })]
|
|
375
380
|
}),
|
|
376
381
|
/* @__PURE__ */ O("ul", {
|
|
@@ -380,7 +385,7 @@ function X({ subItems: t, children: i, notifications: s = J, link: c = "a", host
|
|
|
380
385
|
size: 500,
|
|
381
386
|
fullWidth: !0,
|
|
382
387
|
as: c,
|
|
383
|
-
href: B(t,
|
|
388
|
+
href: B(t, u),
|
|
384
389
|
children: [n, e]
|
|
385
390
|
}) }, r))
|
|
386
391
|
})
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
h1: "_5UYr1G_h1",
|
|
6
|
+
h2: "_5UYr1G_h2",
|
|
7
|
+
h3: "_5UYr1G_h3",
|
|
8
|
+
h4: "_5UYr1G_h4",
|
|
9
|
+
h5: "_5UYr1G_h5",
|
|
10
|
+
h6: "_5UYr1G_h6",
|
|
11
|
+
heading: "_5UYr1G_heading"
|
|
12
|
+
}, i = t(({ children: t, level: i = 2, as: a, className: o, ...s }, c) => /* @__PURE__ */ n(a || `h${i}`, {
|
|
13
|
+
className: e("hsui-heading", o, r.heading, r[`h${i}`]),
|
|
14
|
+
ref: c,
|
|
15
|
+
...s,
|
|
16
|
+
children: t
|
|
17
|
+
}));
|
|
18
|
+
//#endregion
|
|
19
|
+
export { i as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t as e } from "./clsx-D7D_XZ_-.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
var n = { icon: "_2G93rW_icon" }, r = {
|
|
4
|
+
12: 1,
|
|
5
|
+
16: 1.33,
|
|
6
|
+
20: 1.67,
|
|
7
|
+
24: 2,
|
|
8
|
+
32: 2.66,
|
|
9
|
+
40: 3,
|
|
10
|
+
52: 4.33,
|
|
11
|
+
64: 5.33,
|
|
12
|
+
72: 6
|
|
13
|
+
};
|
|
14
|
+
function i({ name: i, size: a = 24, className: o, strokeWidth: s, ...c }) {
|
|
15
|
+
let l = s ?? r[a];
|
|
16
|
+
return /* @__PURE__ */ t("span", {
|
|
17
|
+
className: e("hsui-icon", n.icon, o),
|
|
18
|
+
style: {
|
|
19
|
+
width: a,
|
|
20
|
+
height: a
|
|
21
|
+
},
|
|
22
|
+
children: /* @__PURE__ */ t(i, {
|
|
23
|
+
width: a,
|
|
24
|
+
height: a,
|
|
25
|
+
strokeWidth: l,
|
|
26
|
+
...c
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { i as t };
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { t as e } from "./clsx-D7D_XZ_-.js";
|
|
2
|
+
import { D as t, E as n, j as r } from "./esm-T3Xn_ZHF.js";
|
|
3
|
+
import { t as i } from "./Button-CJp__tle.js";
|
|
4
|
+
import { forwardRef as a, useCallback as o, useEffect as s, useRef as c, useState as l } from "react";
|
|
5
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
|
+
var f = {
|
|
7
|
+
autofilled: "rqAgta_autofilled",
|
|
8
|
+
chevron: "rqAgta_chevron",
|
|
9
|
+
content: "rqAgta_content",
|
|
10
|
+
dirty: "rqAgta_dirty",
|
|
11
|
+
disabled: "rqAgta_disabled",
|
|
12
|
+
focus: "rqAgta_focus",
|
|
13
|
+
formGroup: "rqAgta_formGroup",
|
|
14
|
+
formRow: "rqAgta_formRow",
|
|
15
|
+
hasError: "rqAgta_hasError",
|
|
16
|
+
helpText: "rqAgta_helpText",
|
|
17
|
+
iconRight: "rqAgta_iconRight",
|
|
18
|
+
inputElement: "rqAgta_inputElement",
|
|
19
|
+
inputGrouped: "rqAgta_inputGrouped",
|
|
20
|
+
label: "rqAgta_label",
|
|
21
|
+
labelIcon: "rqAgta_labelIcon",
|
|
22
|
+
labelRow: "rqAgta_labelRow",
|
|
23
|
+
leftContent: "rqAgta_leftContent",
|
|
24
|
+
onAutoFillStart: "rqAgta_onAutoFillStart",
|
|
25
|
+
open: "rqAgta_open",
|
|
26
|
+
required: "rqAgta_required",
|
|
27
|
+
rightContent: "rqAgta_rightContent",
|
|
28
|
+
selectElement: "rqAgta_selectElement",
|
|
29
|
+
selectGrouped: "rqAgta_selectGrouped",
|
|
30
|
+
success: "rqAgta_success"
|
|
31
|
+
}, p = a(({ children: t, className: n, ...r }, i) => /* @__PURE__ */ u("form", {
|
|
32
|
+
ref: i,
|
|
33
|
+
className: e("hsui-form-group", f.formGroup, n),
|
|
34
|
+
...r,
|
|
35
|
+
children: t
|
|
36
|
+
}));
|
|
37
|
+
function m({ children: t, className: n }) {
|
|
38
|
+
return /* @__PURE__ */ u("div", {
|
|
39
|
+
className: e("hsui-form-row", f.formRow, n),
|
|
40
|
+
children: t
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
var h = a(({ label: r, required: a = !1, helpText: p, showHelpText: m = !1, labelIcon: h, iconRight: g, button: _, hasError: v = !1, success: y = !1, disabled: b = !1, className: x, wrapperClassName: S, type: C, onFocus: w, onBlur: T, value: E, defaultValue: D, ...O }, k) => {
|
|
44
|
+
let A = c(null), j = k || A, [M, N] = l(!1), [P, F] = l(!1), [I, L] = l(!1), R = C === "password", [z, B] = l(D === void 0 ? "" : String(D)), V = E !== void 0, H = V ? String(E).length > 0 : z.length > 0, U = o((e) => {
|
|
45
|
+
N(!0), w?.(e);
|
|
46
|
+
}, [w]), W = o((e) => {
|
|
47
|
+
N(!1), T?.(e);
|
|
48
|
+
}, [T]), G = o((e) => {
|
|
49
|
+
V || B(e.target.value), O.onChange?.(e);
|
|
50
|
+
}, [V, O.onChange]), K = o((e) => {
|
|
51
|
+
e.animationName.includes("onAutoFillStart") && F(!0);
|
|
52
|
+
}, []);
|
|
53
|
+
s(() => {
|
|
54
|
+
let e = j.current;
|
|
55
|
+
if (!e) return;
|
|
56
|
+
let t = () => {
|
|
57
|
+
try {
|
|
58
|
+
e.matches(":-webkit-autofill") && F(!0);
|
|
59
|
+
} catch {}
|
|
60
|
+
}, n = setTimeout(t, 100), r = setTimeout(t, 500);
|
|
61
|
+
return () => {
|
|
62
|
+
clearTimeout(n), clearTimeout(r);
|
|
63
|
+
};
|
|
64
|
+
}, [j]);
|
|
65
|
+
let q = o(() => {
|
|
66
|
+
!b && j.current && j.current.focus();
|
|
67
|
+
}, [b, j]), J = R && I ? "text" : C;
|
|
68
|
+
return /* @__PURE__ */ u("div", {
|
|
69
|
+
onClick: q,
|
|
70
|
+
className: e("hsui-input-grouped", f.inputGrouped, {
|
|
71
|
+
[f.focus]: M,
|
|
72
|
+
[f.hasError]: v,
|
|
73
|
+
[f.success]: y,
|
|
74
|
+
[f.disabled]: b,
|
|
75
|
+
[f.dirty]: H || P,
|
|
76
|
+
[f.autofilled]: P
|
|
77
|
+
}, S),
|
|
78
|
+
children: /* @__PURE__ */ d("div", {
|
|
79
|
+
className: f.content,
|
|
80
|
+
children: [/* @__PURE__ */ d("div", {
|
|
81
|
+
className: f.leftContent,
|
|
82
|
+
children: [
|
|
83
|
+
r && /* @__PURE__ */ d("div", {
|
|
84
|
+
className: f.labelRow,
|
|
85
|
+
children: [h && /* @__PURE__ */ u("span", {
|
|
86
|
+
className: f.labelIcon,
|
|
87
|
+
children: h
|
|
88
|
+
}), /* @__PURE__ */ d("span", {
|
|
89
|
+
className: f.label,
|
|
90
|
+
children: [r, a && /* @__PURE__ */ u("span", {
|
|
91
|
+
className: f.required,
|
|
92
|
+
children: " *"
|
|
93
|
+
})]
|
|
94
|
+
})]
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ u("input", {
|
|
97
|
+
ref: j,
|
|
98
|
+
type: J,
|
|
99
|
+
className: e(f.inputElement, x),
|
|
100
|
+
disabled: b,
|
|
101
|
+
"aria-label": r,
|
|
102
|
+
"aria-required": a,
|
|
103
|
+
"aria-invalid": v,
|
|
104
|
+
value: E,
|
|
105
|
+
defaultValue: D,
|
|
106
|
+
onFocus: U,
|
|
107
|
+
onBlur: W,
|
|
108
|
+
onChange: G,
|
|
109
|
+
onAnimationStart: K,
|
|
110
|
+
...O
|
|
111
|
+
}),
|
|
112
|
+
m && p && /* @__PURE__ */ u("span", {
|
|
113
|
+
className: f.helpText,
|
|
114
|
+
children: p
|
|
115
|
+
})
|
|
116
|
+
]
|
|
117
|
+
}), (g || _ || R) && /* @__PURE__ */ d("div", {
|
|
118
|
+
className: f.rightContent,
|
|
119
|
+
children: [
|
|
120
|
+
g && /* @__PURE__ */ u("span", {
|
|
121
|
+
className: f.iconRight,
|
|
122
|
+
children: g
|
|
123
|
+
}),
|
|
124
|
+
R && /* @__PURE__ */ u(i, {
|
|
125
|
+
type: "button",
|
|
126
|
+
variant: "plain",
|
|
127
|
+
size: 300,
|
|
128
|
+
onClick: (e) => {
|
|
129
|
+
e.stopPropagation(), L((e) => !e);
|
|
130
|
+
},
|
|
131
|
+
"aria-label": I ? "Hide password" : "Show password",
|
|
132
|
+
children: u(I ? n : t, {})
|
|
133
|
+
}),
|
|
134
|
+
_
|
|
135
|
+
]
|
|
136
|
+
})]
|
|
137
|
+
})
|
|
138
|
+
});
|
|
139
|
+
}), g = a(({ label: t, required: n = !1, helpText: i, showHelpText: a = !1, labelIcon: s, hasError: p = !1, success: m = !1, disabled: h = !1, className: g, wrapperClassName: _, placeholder: v, children: y, onFocus: b, onBlur: x, value: S, defaultValue: C, ...w }, T) => {
|
|
140
|
+
let E = c(null), D = T || E, [O, k] = l(!1), [A, j] = l(!1), [M, N] = l(C === void 0 ? "" : String(C)), P = S !== void 0, F = P ? String(S).length > 0 : M.length > 0, I = o((e) => {
|
|
141
|
+
k(!0), b?.(e);
|
|
142
|
+
}, [b]), L = o((e) => {
|
|
143
|
+
k(!1), j(!1), x?.(e);
|
|
144
|
+
}, [x]), R = o((e) => {
|
|
145
|
+
j(!1), P || N(e.target.value), w.onChange?.(e);
|
|
146
|
+
}, [P, w.onChange]);
|
|
147
|
+
return /* @__PURE__ */ u("div", {
|
|
148
|
+
onClick: o((e) => {
|
|
149
|
+
if (!(h || !D.current) && (j((e) => !e), e.target !== D.current)) try {
|
|
150
|
+
D.current.showPicker();
|
|
151
|
+
} catch {
|
|
152
|
+
let e = new MouseEvent("mousedown", {
|
|
153
|
+
bubbles: !0,
|
|
154
|
+
cancelable: !0
|
|
155
|
+
});
|
|
156
|
+
D.current.dispatchEvent(e);
|
|
157
|
+
}
|
|
158
|
+
}, [h, D]),
|
|
159
|
+
className: e("hsui-select-grouped", f.inputGrouped, f.selectGrouped, {
|
|
160
|
+
[f.focus]: O,
|
|
161
|
+
[f.open]: A,
|
|
162
|
+
[f.hasError]: p,
|
|
163
|
+
[f.success]: m,
|
|
164
|
+
[f.disabled]: h,
|
|
165
|
+
[f.dirty]: F
|
|
166
|
+
}, _),
|
|
167
|
+
children: /* @__PURE__ */ d("div", {
|
|
168
|
+
className: f.content,
|
|
169
|
+
children: [/* @__PURE__ */ d("div", {
|
|
170
|
+
className: f.leftContent,
|
|
171
|
+
children: [
|
|
172
|
+
t && /* @__PURE__ */ d("div", {
|
|
173
|
+
className: f.labelRow,
|
|
174
|
+
children: [s && /* @__PURE__ */ u("span", {
|
|
175
|
+
className: f.labelIcon,
|
|
176
|
+
children: s
|
|
177
|
+
}), /* @__PURE__ */ d("span", {
|
|
178
|
+
className: f.label,
|
|
179
|
+
children: [t, n && /* @__PURE__ */ u("span", {
|
|
180
|
+
className: f.required,
|
|
181
|
+
children: " *"
|
|
182
|
+
})]
|
|
183
|
+
})]
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ d("select", {
|
|
186
|
+
ref: D,
|
|
187
|
+
className: e(f.inputElement, f.selectElement, g),
|
|
188
|
+
disabled: h,
|
|
189
|
+
"aria-label": t,
|
|
190
|
+
"aria-required": n,
|
|
191
|
+
"aria-invalid": p,
|
|
192
|
+
value: S,
|
|
193
|
+
defaultValue: C,
|
|
194
|
+
onFocus: I,
|
|
195
|
+
onBlur: L,
|
|
196
|
+
onChange: R,
|
|
197
|
+
...w,
|
|
198
|
+
children: [v && /* @__PURE__ */ u("option", {
|
|
199
|
+
value: "",
|
|
200
|
+
disabled: !0,
|
|
201
|
+
hidden: !1,
|
|
202
|
+
children: v
|
|
203
|
+
}), y]
|
|
204
|
+
}),
|
|
205
|
+
a && i && /* @__PURE__ */ u("span", {
|
|
206
|
+
className: f.helpText,
|
|
207
|
+
children: i
|
|
208
|
+
})
|
|
209
|
+
]
|
|
210
|
+
}), /* @__PURE__ */ u("div", {
|
|
211
|
+
className: f.rightContent,
|
|
212
|
+
children: /* @__PURE__ */ u("span", {
|
|
213
|
+
className: e(f.iconRight, f.chevron),
|
|
214
|
+
children: /* @__PURE__ */ u(r, {})
|
|
215
|
+
})
|
|
216
|
+
})]
|
|
217
|
+
})
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
//#endregion
|
|
221
|
+
export { g as i, m as n, h as r, p as t };
|