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.
Files changed (92) hide show
  1. package/.cursorrules +845 -0
  2. package/CLAUDE.md +845 -0
  3. package/dist/Box-Bi-n_ZxQ.js +69 -0
  4. package/dist/Button-CJp__tle.js +63 -0
  5. package/dist/ButtonGroup-M9-A5Xva.js +53 -0
  6. package/dist/{Container-LAkF4ShX.js → Container-DI2smQRq.js} +1 -1
  7. package/dist/{CookiePolicyModal-B2mvebvV.js → CookiePolicyModal-BZkVbILl.js} +9 -43
  8. package/dist/CopyCode-BLXf0o74.js +40 -0
  9. package/dist/DiscordInvite-Mkr81Pib.js +92 -0
  10. package/dist/Footer-bUIou6Hl.js +83 -0
  11. package/dist/FooterBottom-_AezmdZB.js +133 -0
  12. package/dist/FooterHelp-CdeMRh1G.js +112 -0
  13. package/dist/FooterLinks-BUKcScC4.js +287 -0
  14. package/dist/{GPTInput-DRFGKJ2u.js → GPTInput-DKxJOGYt.js} +1 -1
  15. package/dist/{Header-BW8ilZxt.js → Header-6RIZc0v3.js} +90 -85
  16. package/dist/Heading-DuolDa27.js +19 -0
  17. package/dist/Icon-Dwo9ZDNX.js +31 -0
  18. package/dist/InputGrouped-CiA86XL7.js +221 -0
  19. package/dist/InputSolo-cLqKBh1c.js +122 -0
  20. package/dist/Label-BH3YxfNt.js +29 -0
  21. package/dist/Link-DGMiLJES.js +21 -0
  22. package/dist/{Logo-CZ5LYqub.js → Logo-h9bQL-cT.js} +1 -1
  23. package/dist/NewsletterSignup-eGx4jwiM.js +137 -0
  24. package/dist/{Notification-DHcQtd1k.js → Notification-CJ3iQv3Z.js} +6 -6
  25. package/dist/{PrefPanel-BTX6RAo4.js → PrefPanel-25erkPRB.js} +8 -8
  26. package/dist/{Search-DAPCZo13.js → Search-CDHkDXCm.js} +15 -15
  27. package/dist/Typography-nzBx3Yxn.js +49 -0
  28. package/dist/YoutubeModal-DNaiM6RL.js +89 -0
  29. package/dist/components/Box/index.js +2 -0
  30. package/dist/components/Button/index.js +1 -1
  31. package/dist/components/ButtonGroup/index.js +2 -0
  32. package/dist/components/Container/index.js +1 -1
  33. package/dist/components/CopyCode/index.js +2 -0
  34. package/dist/components/DiscordInvite/index.js +2 -0
  35. package/dist/components/Footer/CookiePolicyModal.js +1 -1
  36. package/dist/components/Footer/FooterBottom.js +2 -0
  37. package/dist/components/Footer/FooterHelp.js +2 -0
  38. package/dist/components/Footer/FooterLinks.js +2 -0
  39. package/dist/components/Footer/YoutubeModal.js +2 -0
  40. package/dist/components/Footer/index.js +1 -1
  41. package/dist/components/GPTInput/index.js +1 -1
  42. package/dist/components/Header/index.js +1 -1
  43. package/dist/components/Heading/index.js +2 -0
  44. package/dist/components/Icon/index.js +2 -0
  45. package/dist/components/InputGrouped/index.js +2 -0
  46. package/dist/components/InputSolo/index.js +2 -0
  47. package/dist/components/Label/index.js +2 -0
  48. package/dist/components/Link/index.js +2 -0
  49. package/dist/components/Logo/index.js +1 -1
  50. package/dist/components/NewsletterSignup/index.js +2 -0
  51. package/dist/components/Notification/index.js +1 -1
  52. package/dist/components/PrefPanel/index.js +1 -1
  53. package/dist/components/Search/index.js +1 -1
  54. package/dist/components/Typography/index.js +2 -0
  55. package/dist/{dist-CjrKJb_1.js → dist-GNbC83fc.js} +1 -1
  56. package/dist/{dist-0f0-S8_q.js → dist-fJmWSp8_.js} +1 -1
  57. package/dist/{esm-C1TDRARf.js → esm-T3Xn_ZHF.js} +208 -104
  58. package/dist/fa-ByhY-7YY.js +187 -0
  59. package/dist/highsoft-ui.css +1 -1
  60. package/dist/lib/components/Box/index.d.ts +28 -0
  61. package/dist/lib/components/Button/index.d.ts +9 -1
  62. package/dist/lib/components/ButtonGroup/index.d.ts +29 -0
  63. package/dist/lib/components/CopyCode/index.d.ts +12 -0
  64. package/dist/lib/components/DiscordInvite/index.d.ts +8 -0
  65. package/dist/lib/components/Footer/FooterBottom.d.ts +7 -0
  66. package/dist/lib/components/Footer/FooterHelp.d.ts +7 -0
  67. package/dist/lib/components/Footer/FooterLinks.d.ts +7 -0
  68. package/dist/lib/components/Footer/YoutubeModal.d.ts +1 -0
  69. package/dist/lib/components/Header/index.d.ts +14 -9
  70. package/dist/lib/components/Heading/index.d.ts +8 -0
  71. package/dist/lib/components/Icon/index.d.ts +26 -0
  72. package/dist/lib/components/InputGrouped/index.d.ts +60 -0
  73. package/dist/lib/components/InputSolo/index.d.ts +23 -0
  74. package/dist/lib/components/Label/index.d.ts +25 -0
  75. package/dist/lib/components/Link/index.d.ts +15 -0
  76. package/dist/lib/components/NewsletterSignup/index.d.ts +33 -0
  77. package/dist/lib/components/Typography/index.d.ts +13 -0
  78. package/dist/lib/main.d.ts +26 -3
  79. package/dist/lib/utils.d.ts +28 -0
  80. package/dist/main.js +23 -12
  81. package/dist/scss/mixins.scss +36 -0
  82. package/dist/scss/variables.scss +107 -0
  83. package/dist/{utils-C4QGLbxr.js → utils-BCI5dixg.js} +35 -15
  84. package/dist/utils.js +2 -2
  85. package/package.json +14 -6
  86. package/dist/Button-9RIB8ZR0.js +0 -47
  87. package/dist/Footer-5yMo5akY.js +0 -784
  88. package/dist/NewTag-C-3mRyvV.js +0 -26
  89. package/dist/components/NewTag/index.js +0 -2
  90. package/dist/lib/components/NewTag/index.d.ts +0 -8
  91. /package/dist/{clsx-ROFf4vs9.js → clsx-D7D_XZ_-.js} +0 -0
  92. /package/dist/{es2015-CzBBLWyD.js → es2015-C6iv4436.js} +0 -0
@@ -1,13 +1,13 @@
1
- import { t as e } from "./Search-DAPCZo13.js";
2
- import { a as t, c as n, i as r, l as i, r as a } from "./utils-C4QGLbxr.js";
3
- import { t as o } from "./clsx-ROFf4vs9.js";
4
- import { D as s, M as c, S as l, _ as u, k as d, n as f, o as p, p as m, s as h, t as g, v as _ } from "./esm-C1TDRARf.js";
5
- import { t as v } from "./Button-9RIB8ZR0.js";
6
- import { t as y } from "./Container-LAkF4ShX.js";
7
- import { t as b } from "./PrefPanel-BTX6RAo4.js";
8
- import { t as x } from "./Logo-CZ5LYqub.js";
9
- import { t as S } from "./NewTag-C-3mRyvV.js";
10
- import { t as C } from "./Notification-DHcQtd1k.js";
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(s, {})
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(m, {})
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(u, {})
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(l, {})
93
+ icon: /* @__PURE__ */ O(h, {})
94
94
  },
95
95
  {
96
96
  title: "Pricing",
97
97
  url: "https://shop.highcharts.com/",
98
- icon: /* @__PURE__ */ O(d, {})
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(c, {})
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: n = "a", host: r = "https://www.highcharts.com", pathname: i }) {
122
- let a = t(), s = G(e);
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: t, prefixMatch: s, icon: c, selectedIcon: l, tag: u, tagVariant: d = "success" }, f) => {
129
- let p = i || typeof window < "u" && window.location.pathname, m = typeof window < "u" && window.location.origin || "http://example.com", h = new URL(t, m), g = p && (!!i || a) && h.origin === m && (s ? p.startsWith(h.pathname) : h.pathname === p), _ = !!(c || l), v = typeof u == "string" || typeof u == "number" ? /* @__PURE__ */ O(S, {
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
- icon: !1,
131
+ iconLeft: !1,
132
132
  children: u
133
133
  }) : u;
134
- return /* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(n, {
135
- href: B(t, r),
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 } = i(), n = T(!1);
189
+ let { theme: e, setTheme: t } = n(), r = T(!1);
190
190
  return w(() => {
191
- if (n.current) return;
192
- let r = L();
193
- if (r && r !== e) {
194
- t(r), n.current = !0;
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
- n.current = !0;
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: t, children: i, notifications: s = J, link: c = "a", host: l = "https://www.highcharts.com", pathname: u, cssVariable: d }) {
203
- let m = r("(max-width: 374px)"), S = r("(max-width: 849px)"), w = r("(max-width: 1300px)"), M = G(t), N = T(null), [P, F] = E(!1), [L, V] = E([]);
204
- a(() => {
205
- let e = N.current;
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 n = t?.length ? M ? U : W : 0, r = 82 + L.length * 48 + n, i = -(82 + L.length * 48), a = window.scrollY, o = 0, s = null, c = null, l = () => {
208
- c = null, !(!e || s === o) && (e.style.transform = `translate3d(0, ${o}px, 0)`, d && document.documentElement.style.setProperty("--header-bottom", `${r + o}px`), s = o);
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 = "", d && document.documentElement.style.removeProperty("--header-bottom");
220
+ window.removeEventListener("scroll", u), c !== null && cancelAnimationFrame(c), e.style.transform = "", h && document.documentElement.style.removeProperty("--header-bottom");
217
221
  };
218
222
  }, [
219
- d,
220
- M,
221
- L.length,
222
- t?.length
223
- ]), a(() => {
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
- V(e ? s.filter((t) => !t.id || !e.closed.includes(t.id)) : s);
227
- }, [l, s]);
228
- let H = (e) => {
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
- }, q = () => {
234
- F(!P);
235
- }, X = (e) => {
236
- if (V(L.filter((t) => !t.id || t.id !== e)), !e) return;
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(n, { children: [/* @__PURE__ */ O(Y, {}), /* @__PURE__ */ k("header", {
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: N,
249
+ ref: P,
245
250
  children: [
246
- L?.map(({ id: e, content: t, variant: n, closable: r }, i) => /* @__PURE__ */ O(C, {
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: () => X(e)
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: H,
265
- onKeyPress: H,
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/", l),
271
- children: /* @__PURE__ */ O(x, { showText: !w || S && !m })
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, l),
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/", l),
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(p, {})]
298
+ }), /* @__PURE__ */ O(f, {})]
294
299
  }) }),
295
300
  /* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(e, {}) }),
296
- /* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(b, {}) }),
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/", l),
306
+ href: B("https://shop.highcharts.com/", u),
302
307
  "aria-label": "Buy Now",
303
- children: [/* @__PURE__ */ O(h, {}), "Buy Now"]
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/", l),
310
- children: [/* @__PURE__ */ O(f, {}), "Try for Free"]
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: P ? "soft" : "transparent",
318
+ variant: F ? "soft" : "transparent",
314
319
  className: A.menu,
315
- onClick: q,
316
- children: [P ? "Close" : "Menu", O(P ? g : _, {})]
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
- !!t?.length && /* @__PURE__ */ O(K, {
324
- items: t,
328
+ !!n?.length && /* @__PURE__ */ O(K, {
329
+ items: n,
325
330
  link: c,
326
- host: l,
327
- pathname: u
331
+ host: u,
332
+ pathname: m
328
333
  }),
329
334
  i
330
335
  ]
331
- }), S && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("div", {
332
- className: o(A.mobileOverlay, { [A.open]: P }),
333
- onClick: q
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]: P }),
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/", l),
342
- children: /* @__PURE__ */ O(x, { showText: !m })
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/", l),
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(p, {})]
358
+ }), /* @__PURE__ */ O(f, {})]
354
359
  }) }),
355
360
  /* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(e, {}) }),
356
- /* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(b, {}) })
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/", l),
367
- children: [/* @__PURE__ */ O(h, {}), "Buy Now"]
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/", l),
373
- children: [/* @__PURE__ */ O(f, {}), "Try for Free"]
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, l),
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 };