highsoft-ui 1.0.163 → 1.0.165

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 (72) hide show
  1. package/CLAUDE.md +38 -0
  2. package/dist/BrowserFrame-BWKH-jYq.js +147 -0
  3. package/dist/{Button-BCbWIPg1.js → Button-Ckhn8DSF.js} +1 -1
  4. package/dist/{ButtonGroup-DGEDf4ic.js → ButtonGroup-DJ9-E38n.js} +1 -1
  5. package/dist/{Checkbox-CO0SRaAZ.js → Checkbox-D1mlWTmw.js} +1 -1
  6. package/dist/{CodeBlock-Ugik4xMM.js → CodeBlock-C2W0T4RT.js} +5 -5
  7. package/dist/{CookiePolicyModal-TdrVbP_E.js → CookiePolicyModal-CPNTKMHc.js} +2 -2
  8. package/dist/{CopyCode-_sKjpGqB.js → CopyCode-BOehQAZN.js} +3 -3
  9. package/dist/{Dropdown-LiG-JAoo.js → Dropdown-Cjl8RQ5Y.js} +1 -1
  10. package/dist/{Footer-DzIGLnEz.js → Footer-DLMNyBXC.js} +7 -7
  11. package/dist/{FooterBottom-CRe2Mvjd.js → FooterBottom-ZK9F7wLx.js} +1 -1
  12. package/dist/{FooterHelp-CTSvficW.js → FooterHelp-Csfq-quf.js} +1 -1
  13. package/dist/{FooterLinks-BoDdQUWb.js → FooterLinks-CGoBeReu.js} +2 -2
  14. package/dist/{Header-CTO6Y6oH.js → Header-Pe6siDNx.js} +20 -20
  15. package/dist/{InputGrouped-y0JyshpR.js → InputGrouped-BLtnqxWc.js} +2 -2
  16. package/dist/{Label-k6e4Rqb-.js → Label-KDdBAgyD.js} +1 -1
  17. package/dist/{LogoCarousel-pRYdmphl.js → LogoCarousel-CJShpLJo.js} +2 -2
  18. package/dist/{NewsletterSignup-BrmQ7pXZ.js → NewsletterSignup-g8wPQ7NZ.js} +4 -4
  19. package/dist/{Notification-BFLAktZo.js → Notification-DQostuW6.js} +3 -3
  20. package/dist/{PrefPanel-CHkc6r6b.js → PrefPanel-Cf-xZ261.js} +7 -7
  21. package/dist/PrevNextNav-Cd6_IdPd.js +62 -0
  22. package/dist/{RoadmapDetails-BWt0J4Pn.js → RoadmapDetails-DMrLLty1.js} +5 -5
  23. package/dist/{Search-D29JM1a_.js → Search-Cy79c2sN.js} +5 -5
  24. package/dist/{SearchDropdown-BSUAlaMY.js → SearchDropdown-BA7CPuRf.js} +1 -1
  25. package/dist/{VideoCover-C18NhQcY.js → VideoCover-DlhRqr4Q.js} +1 -1
  26. package/dist/{VideoPlayer-UM4M4C5b.js → VideoPlayer-De_ejf8u.js} +5 -5
  27. package/dist/{VideoPlayerModal-IRwjMLoy.js → VideoPlayerModal-DNUIn0jM.js} +2 -2
  28. package/dist/{YoutubeModal-BOnH866s.js → YoutubeModal-D_pHHwxa.js} +2 -2
  29. package/dist/components/BrowserFrame/index.js +1 -1
  30. package/dist/components/Button/index.js +1 -1
  31. package/dist/components/ButtonGroup/index.js +1 -1
  32. package/dist/components/Checkbox/index.js +1 -1
  33. package/dist/components/CodeBlock/index.js +1 -1
  34. package/dist/components/CopyCode/index.js +1 -1
  35. package/dist/components/Dropdown/index.js +1 -1
  36. package/dist/components/Footer/CookiePolicyModal.js +1 -1
  37. package/dist/components/Footer/FooterBottom.js +1 -1
  38. package/dist/components/Footer/FooterHelp.js +1 -1
  39. package/dist/components/Footer/FooterLinks.js +1 -1
  40. package/dist/components/Footer/YoutubeModal.js +1 -1
  41. package/dist/components/Footer/index.js +1 -1
  42. package/dist/components/Header/index.js +1 -1
  43. package/dist/components/InputGrouped/index.js +1 -1
  44. package/dist/components/Label/index.js +1 -1
  45. package/dist/components/LogoCarousel/index.js +1 -1
  46. package/dist/components/Modal/ModalContactFooter.js +2 -2
  47. package/dist/components/Modal/index.js +2 -2
  48. package/dist/components/NewsletterSignup/index.js +1 -1
  49. package/dist/components/Notification/index.js +1 -1
  50. package/dist/components/PrefPanel/index.js +1 -1
  51. package/dist/components/PrevNextNav/index.js +2 -0
  52. package/dist/components/RoadmapDetails/index.js +1 -1
  53. package/dist/components/Search/index.js +1 -1
  54. package/dist/components/SearchDropdown/index.js +1 -1
  55. package/dist/components/Sidebar/NavDisclosure.js +1 -1
  56. package/dist/components/Sidebar/NavGroup.js +1 -1
  57. package/dist/components/Sidebar/Sidebar.js +4 -4
  58. package/dist/components/Sidebar/SidebarLayout.js +1 -1
  59. package/dist/components/Sidebar/SidebarSwitcher.js +1 -1
  60. package/dist/components/VideoCover/index.js +1 -1
  61. package/dist/components/VideoPlayer/VideoPlayerModal.js +1 -1
  62. package/dist/components/VideoPlayer/index.js +1 -1
  63. package/dist/{create-element-DxkdwAGs.js → create-element-BNkLOXrc.js} +1 -1
  64. package/dist/{esm-CUgR2iUX.js → esm-u0DqOC56.js} +65 -51
  65. package/dist/highsoft-ui.css +1 -1
  66. package/dist/lib/components/BrowserFrame/index.d.ts +8 -0
  67. package/dist/lib/components/PrevNextNav/index.d.ts +44 -0
  68. package/dist/lib/main.d.ts +2 -0
  69. package/dist/main.js +23 -22
  70. package/dist/{prism-light-Czk1yGD_.js → prism-light-CAkriFcS.js} +1 -1
  71. package/package.json +1 -1
  72. package/dist/BrowserFrame-D-DoBOXv.js +0 -133
package/CLAUDE.md CHANGED
@@ -510,6 +510,7 @@ Browser-window chrome around embedded content — a real `<iframe>` via `src`, o
510
510
  - **`explainer`** / **`explainerHref`** (mini), **`actions`** — external-link soft buttons
511
511
  - **`dots`:** `color` | `muted` — defaults per variant (colored traffic lights on `full`, muted on `mini`/`plain`); override to force either
512
512
  - **`aspectRatio`** (default `'3 / 2'`, `'auto'` = children flow naturally), **`width`**, **`height`** (fixed height overrides `aspectRatio`), **`radius`** (default `8`)
513
+ - **`background`:** the surface behind the embed — `0` | `50` | `100` (`--HS-surface-ui-background-*`), `'common'` (page background), `'transparent'` (default: the frame shell shows through, background-50 or background-0 on `plain`), or any raw CSS background. It's painted on the body, under the iframe/children, so it covers an `src` iframe while it loads, the letterbox left by `aspectRatio`/`height`, and a transparent embed — in both modes. Match it to the embed's own surface (Highcharts samples are white: `background={0}`) so loading and letterboxed states are seamless.
513
514
  - **Bar geometry:** the bar is 40px (`plain` 34px) — 8px padding around 24px controls (size-100 `Button`s and the URL pill). Dots are 11px (`plain` 10px).
514
515
  - **Theming:** the shell uses `--HS-*` tokens, so dark mode is automatic. The colored dots are the one sanctioned primitive use (`--primitives-danger/attention/success-400`) — decorative window realism with no semantic token, identical in both modes like macOS's own. **The site theme propagates into cross-origin embeds:** `[data-theme]` on the root maps to `color-scheme` on the iframe element, which is what `prefers-color-scheme` resolves from inside a frame — an embed that supports dark mode flips with the site, no JS involved. The default (no `data-theme`) is `light`, matching the tokens' own light-by-default behavior — the embed follows the chrome around it, never the OS directly. `ThemeLoader` resolves even the "system" preference to a concrete `data-theme`, so themed pages always drive it explicitly; nested `[data-theme='light']` sections inside a dark page are honored like the tokens honor them.
515
516
 
@@ -517,6 +518,7 @@ Browser-window chrome around embedded content — a real `<iframe>` via `src`, o
517
518
  - The window dots are decorative (`aria-hidden`); the embedded `<iframe>` carries `title` as its accessible name — describe what it shows.
518
519
  - The URL text, explainer, and action buttons are real links/`Button`s: keyboard reachable, brand `:focus-visible` ring, `target="_blank"` with `rel="noreferrer"`. The Fullscreen button's label switches to "Exit fullscreen" while active.
519
520
  - The frame itself is a non-interactive `<div>` — nothing in the tab order beyond its controls; no authored motion, so there's nothing to gate on `prefers-reduced-motion` beyond the shared Button tokens.
521
+ - `background` is a static surface with no state, so it changes nothing for keyboard or AT. The named values are semantic tokens and remap in dark mode; a raw CSS value does not, so prefer the tokens unless the embed is a fixed colour in both themes.
520
522
 
521
523
  ### Layout
522
524
  ```tsx
@@ -755,6 +757,42 @@ A page that has a site `<Header>` already spends the top of a phone screen on th
755
757
  - The grab handle is `aria-hidden` — it's the touch affordance, and the labelled close button is the control. Under `prefers-reduced-motion: reduce` the sheet arrives and leaves instantly; dragging it still tracks the finger, since that's direct manipulation rather than authored motion.
756
758
  - Widening past 760px retires the sheet without moving focus — a resize isn't a dismissal.
757
759
 
760
+ ### PrevNextNav
761
+ Previous / next footer navigation — two link cards in a three-slot grid (`1fr auto 1fr`) with an optional centered back-to-overview button. For sequential content: docs articles, changelog versions, API option pages.
762
+
763
+ ```tsx
764
+ import NextLink from 'next/link'
765
+
766
+ <PrevNextNav
767
+ as={NextLink}
768
+ aria-label="Article navigation"
769
+ prev={{ href: '/docs/install', title: 'Installation' }}
770
+ next={{ href: '/docs/first-chart', title: 'Your first chart' }}
771
+ back={{ href: '/docs', label: 'All Highcharts Core articles' }}
772
+ />
773
+
774
+ // At an edge, omit the missing side — a disabled "—" card keeps the grid balanced
775
+ <PrevNextNav
776
+ prev={undefined}
777
+ next={{ href: '/core/v1.1.0/', title: 'v1.1.0' }}
778
+ back={{ href: '/core/', label: 'All Highcharts Core versions' }}
779
+ aria-label="Version navigation"
780
+ />
781
+ ```
782
+
783
+ - **`prev` / `next`:** `{ href?, title, linkProps? }` — the link cards (chevron + small "Previous"/"Next" overline + title, ellipsized). Omit one at an edge: it renders as a bordered, non-interactive "—" card at 0.4 opacity so the grid keeps its shape. Omit **both** and the component renders nothing.
784
+ - **`back`:** `{ href?, label, linkProps? }` — the centered overview button (e.g. "All {product} versions"). Optional; without it the cards keep their outer columns.
785
+ - **`as`:** link component for all three slots — `'a'` default, `as={NextLink}` for SPA navigation (like NavItem). `linkProps` forwards per-link extras (`target`, `onClick`, router `to`, …).
786
+ - **`prevLabel` / `nextLabel`:** the overlines, default `'Previous'` / `'Next'` (customizable for localization).
787
+ - **≤850px:** the cards pair up side by side and the back button spans underneath; titles drop to size-75.
788
+ - Hover stays neutral: a `--HS-surface-ui-background-0` wash, card text stepping up to `--HS-text-primary-default`, and the border strengthening to `--HS-surface-ui-border-300` — no brand tint (the brand color is reserved for the focus ring). The background wash is what keeps hover legible in dark mode, where border-300 remaps to the same value as border-200 and the border step alone nearly disappears. Everything uses `--HS-*` tokens, so dark mode is automatic.
789
+
790
+ **Accessibility:**
791
+ - The wrapper is a real `<nav>` — pass `aria-label` to name it ("Article navigation", "Version navigation"); it defaults to `'Previous and next'`.
792
+ - The cards and back button are real links: keyboard reachable, with the shared `a11y-focus-ring` mixin on `:focus-visible` — the two-tone ring (background-colored gap + brand outer) animating on `--animations-bounce-default`, same as InputSolo/Checkbox/RadioBox. Hover colors transition on `--animations-fade-fast`.
793
+ - The disabled edge card is a non-interactive `aria-disabled` span — not focusable, so keyboard users skip straight to the real links, while AT can still read "Previous —" as "there is no previous page".
794
+ - DOM order is prev → back → next, matching the desktop visual order, so focus moves left-to-right across the row.
795
+
758
796
  ## Hooks
759
797
 
760
798
  ### useSuccessFlash
@@ -0,0 +1,147 @@
1
+ import { t as e } from "./clsx-BWCAbrjV.js";
2
+ import { G as t, L as n, R as r, k as i } from "./esm-u0DqOC56.js";
3
+ import { t as a } from "./Button-Ckhn8DSF.js";
4
+ import { forwardRef as o, useCallback as s, useEffect as c, useRef as l, useState as u } from "react";
5
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
6
+ var p = {
7
+ actions: "VfGqmW_actions",
8
+ body: "VfGqmW_body",
9
+ bodyAspect: "VfGqmW_bodyAspect",
10
+ bodyFill: "VfGqmW_bodyFill",
11
+ content: "VfGqmW_content",
12
+ dot: "VfGqmW_dot",
13
+ dots: "VfGqmW_dots",
14
+ dotsColor: "VfGqmW_dotsColor",
15
+ explainer: "VfGqmW_explainer",
16
+ frame: "VfGqmW_frame",
17
+ iframe: "VfGqmW_iframe",
18
+ mini: "VfGqmW_mini",
19
+ plain: "VfGqmW_plain",
20
+ topBar: "VfGqmW_topBar",
21
+ url: "VfGqmW_url",
22
+ urlBar: "VfGqmW_urlBar"
23
+ };
24
+ //#endregion
25
+ //#region lib/components/BrowserFrame/index.tsx
26
+ function m(e) {
27
+ switch (e) {
28
+ case "transparent": return;
29
+ case "common": return "var(--HS-common-background)";
30
+ case 0:
31
+ case 50:
32
+ case 100: return `var(--HS-surface-ui-background-${e})`;
33
+ default: return e;
34
+ }
35
+ }
36
+ var h = o(({ variant: o = "full", src: h, displayUrl: g, href: _, action: v = "view", actionLabel: y, explainer: b, explainerHref: x, actions: S, dots: C, aspectRatio: w = "3 / 2", width: T, height: E, radius: D = 8, background: O = "transparent", title: k, loading: A = "lazy", sandbox: j, allow: M, allowFullScreen: N = !0, referrerPolicy: P, children: F, className: I, style: L, ...R }, z) => {
37
+ let B = l(null), [V, H] = u(!1), U = s((e) => {
38
+ B.current = e, typeof z == "function" ? z(e) : z && (z.current = e);
39
+ }, [z]);
40
+ c(() => {
41
+ let e = () => H(document.fullscreenElement === B.current);
42
+ return document.addEventListener("fullscreenchange", e), () => document.removeEventListener("fullscreenchange", e);
43
+ }, []), h && !k && console.warn("BrowserFrame: `title` is required with `src` — it names the iframe for assistive tech. Falling back to \"Embedded content\".");
44
+ let W = g ?? h, G = _ ?? W, K = C ?? (o === "full" ? "color" : "muted"), q = E === void 0 && w !== "auto", J = m(O), Y = s(() => {
45
+ let e = B.current;
46
+ if (!e) return;
47
+ let t = () => {
48
+ G && window.open(G, "_blank", "noopener,noreferrer");
49
+ };
50
+ document.fullscreenElement === e ? document.exitFullscreen().catch(() => {}) : e.requestFullscreen ? e.requestFullscreen().catch(t) : t();
51
+ }, [G]), X = o === "full" && v !== "none" ? v === "fullscreen" ? /* @__PURE__ */ d(a, {
52
+ variant: "soft",
53
+ size: 100,
54
+ iconRight: d(V ? i : t, {}),
55
+ onClick: Y,
56
+ children: y ?? (V ? "Exit fullscreen" : "Fullscreen")
57
+ }) : G ? /* @__PURE__ */ d(a, {
58
+ variant: "soft",
59
+ size: 100,
60
+ iconRight: /* @__PURE__ */ d(r, {}),
61
+ href: G,
62
+ target: "_blank",
63
+ rel: "noreferrer",
64
+ children: y ?? "View"
65
+ }) : null : null, Z = o === "mini" && b ? x ? /* @__PURE__ */ d("a", {
66
+ className: p.explainer,
67
+ href: x,
68
+ target: "_blank",
69
+ rel: "noreferrer",
70
+ children: b
71
+ }) : /* @__PURE__ */ d("span", {
72
+ className: p.explainer,
73
+ children: b
74
+ }) : null;
75
+ return /* @__PURE__ */ f("div", {
76
+ ref: U,
77
+ className: e(p.frame, o === "plain" && p.plain, o === "mini" && p.mini, I),
78
+ style: {
79
+ "--hsbf-radius": `${D}px`,
80
+ "--hsbf-aspect": q ? w : void 0,
81
+ "--hsbf-body-bg": J,
82
+ width: T,
83
+ height: E,
84
+ ...L
85
+ },
86
+ ...R,
87
+ children: [/* @__PURE__ */ f("div", {
88
+ className: p.topBar,
89
+ children: [
90
+ /* @__PURE__ */ f("span", {
91
+ className: e(p.dots, K === "color" && p.dotsColor),
92
+ "aria-hidden": "true",
93
+ children: [
94
+ /* @__PURE__ */ d("span", { className: p.dot }),
95
+ /* @__PURE__ */ d("span", { className: p.dot }),
96
+ /* @__PURE__ */ d("span", { className: p.dot })
97
+ ]
98
+ }),
99
+ o === "full" && W && /* @__PURE__ */ d("span", {
100
+ className: p.urlBar,
101
+ children: G ? /* @__PURE__ */ d("a", {
102
+ className: p.url,
103
+ href: G,
104
+ target: "_blank",
105
+ rel: "noreferrer",
106
+ children: W
107
+ }) : /* @__PURE__ */ d("span", {
108
+ className: p.url,
109
+ children: W
110
+ })
111
+ }),
112
+ X,
113
+ Z,
114
+ S && S.length > 0 && /* @__PURE__ */ d("span", {
115
+ className: p.actions,
116
+ children: S.map((e) => /* @__PURE__ */ d(a, {
117
+ variant: "soft",
118
+ size: 100,
119
+ iconRight: /* @__PURE__ */ d(n, {}),
120
+ href: e.href,
121
+ target: "_blank",
122
+ rel: "noreferrer",
123
+ children: e.label
124
+ }, `${e.label}-${e.href}`))
125
+ })
126
+ ]
127
+ }), /* @__PURE__ */ f("div", {
128
+ className: e(p.body, q && p.bodyAspect, (q || E !== void 0) && p.bodyFill),
129
+ children: [h && !F && /* @__PURE__ */ d("iframe", {
130
+ className: p.iframe,
131
+ src: h,
132
+ title: k ?? "Embedded content",
133
+ loading: A,
134
+ sandbox: j,
135
+ allow: M,
136
+ allowFullScreen: N,
137
+ referrerPolicy: P
138
+ }), F && /* @__PURE__ */ d("div", {
139
+ className: p.content,
140
+ children: F
141
+ })]
142
+ })]
143
+ });
144
+ });
145
+ h.displayName = "BrowserFrame";
146
+ //#endregion
147
+ export { h as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BWCAbrjV.js";
2
- import { F as t } from "./esm-CUgR2iUX.js";
2
+ import { F as t } from "./esm-u0DqOC56.js";
3
3
  import { forwardRef as n } from "react";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  var a = {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BWCAbrjV.js";
2
- import { t } from "./Button-BCbWIPg1.js";
2
+ import { t } from "./Button-Ckhn8DSF.js";
3
3
  import { useEffect as n, useState as r } from "react";
4
4
  import { jsx as i } from "react/jsx-runtime";
5
5
  var a = {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BWCAbrjV.js";
2
- import { P as t } from "./esm-CUgR2iUX.js";
2
+ import { P as t } from "./esm-u0DqOC56.js";
3
3
  import { createContext as n, useCallback as r, useContext as i, useEffect as a, useId as o, useRef as s, useState as c } from "react";
4
4
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
5
5
  var d = {
@@ -1,7 +1,7 @@
1
1
  import { r as e, s as t } from "./utils-K9S_6_Eq.js";
2
2
  import { t as n } from "./clsx-BWCAbrjV.js";
3
- import { et as r, q as i } from "./esm-CUgR2iUX.js";
4
- import { t as a } from "./Button-BCbWIPg1.js";
3
+ import { q as r, tt as i } from "./esm-u0DqOC56.js";
4
+ import { t as a } from "./Button-Ckhn8DSF.js";
5
5
  import { t as o } from "./FrameworkIcon-B8GmMx0r.js";
6
6
  import { Fragment as s, forwardRef as c, useCallback as l, useEffect as u, useMemo as d, useState as f } from "react";
7
7
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
@@ -22,8 +22,8 @@ var h = {
22
22
  }, g = null;
23
23
  function _() {
24
24
  return g ||= Promise.all([
25
- import("./prism-light-Czk1yGD_.js"),
26
- import("./create-element-DxkdwAGs.js").then((e) => e.n),
25
+ import("./prism-light-CAkriFcS.js"),
26
+ import("./create-element-BNkLOXrc.js").then((e) => e.n),
27
27
  import("./jsx-B57trbk8.js"),
28
28
  import("./tsx-CJFgwLf7.js"),
29
29
  import("./json-Bfzk2Msc.js"),
@@ -195,7 +195,7 @@ var C = {}, w = ({ children: e }) => /* @__PURE__ */ p("pre", {
195
195
  }), /* @__PURE__ */ p(a, {
196
196
  variant: B ? "success" : "transparent",
197
197
  size: 100,
198
- iconRight: p(B ? r : i, {}),
198
+ iconRight: p(B ? i : r, {}),
199
199
  onClick: U,
200
200
  "aria-label": B ? "Copied" : A,
201
201
  className: h.copyBtn,
@@ -1,5 +1,5 @@
1
- import { t as e } from "./esm-CUgR2iUX.js";
2
- import { t } from "./Button-BCbWIPg1.js";
1
+ import { t as e } from "./esm-u0DqOC56.js";
2
+ import { t } from "./Button-Ckhn8DSF.js";
3
3
  import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./dist-f0z6DapB.js";
4
4
  import { useEffect as l, useRef as u, useState as d } from "react";
5
5
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import { r as e, s as t } from "./utils-K9S_6_Eq.js";
2
2
  import { t as n } from "./clsx-BWCAbrjV.js";
3
- import { et as r, q as i } from "./esm-CUgR2iUX.js";
4
- import { t as a } from "./Button-BCbWIPg1.js";
3
+ import { q as r, tt as i } from "./esm-u0DqOC56.js";
4
+ import { t as a } from "./Button-Ckhn8DSF.js";
5
5
  import { forwardRef as o, useCallback as s } from "react";
6
6
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
7
  var u = {
@@ -26,7 +26,7 @@ var u = {
26
26
  }), /* @__PURE__ */ c(a, {
27
27
  variant: x ? "success" : "soft",
28
28
  size: 200,
29
- iconLeft: c(x ? r : i, {}),
29
+ iconLeft: c(x ? i : r, {}),
30
30
  onClick: (e) => {
31
31
  e.stopPropagation(), S();
32
32
  },
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BWCAbrjV.js";
2
- import { et as t } from "./esm-CUgR2iUX.js";
2
+ import { tt as t } from "./esm-u0DqOC56.js";
3
3
  import { t as n } from "./Icon-DJTgdvsG.js";
4
4
  import { _ as r, a as i, c as a, d as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, t as g, u as _, v, y } from "./es2015-DWa0ZZ7A.js";
5
5
  import { a as b, i as x, n as S, r as C, t as w } from "./dist-CE9LFbij.js";
@@ -1,14 +1,14 @@
1
1
  import { r as e } from "./utils-K9S_6_Eq.js";
2
- import { J as t, et as n } from "./esm-CUgR2iUX.js";
3
- import { t as r } from "./Button-BCbWIPg1.js";
2
+ import { J as t, tt as n } from "./esm-u0DqOC56.js";
3
+ import { t as r } from "./Button-Ckhn8DSF.js";
4
4
  import { t as i } from "./Container-BDssaLig.js";
5
5
  import { t as a } from "./DiscordInvite-CLYxexdH.js";
6
6
  import { t as o } from "./Logo-Bz0G2G-k.js";
7
- import { t as s } from "./NewsletterSignup-BrmQ7pXZ.js";
8
- import { t as c } from "./FooterBottom-CRe2Mvjd.js";
9
- import { t as l } from "./FooterHelp-CTSvficW.js";
10
- import { t as u } from "./FooterLinks-BoDdQUWb.js";
11
- import { t as d } from "./YoutubeModal-BOnH866s.js";
7
+ import { t as s } from "./NewsletterSignup-g8wPQ7NZ.js";
8
+ import { t as c } from "./FooterBottom-ZK9F7wLx.js";
9
+ import { t as l } from "./FooterHelp-Csfq-quf.js";
10
+ import { t as u } from "./FooterLinks-CGoBeReu.js";
11
+ import { t as d } from "./YoutubeModal-D_pHHwxa.js";
12
12
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
13
13
  var m = {
14
14
  discordCard: "_4W4F3q_discordCard",
@@ -1,7 +1,7 @@
1
1
  import { a as e, t } from "./utils-K9S_6_Eq.js";
2
2
  import { a as n, c as r, i, n as a, o, r as s, s as c, t as l } from "./fa-B95RwBpz.js";
3
3
  import { t as u } from "./Typography-AvvBRu-u.js";
4
- import { t as d } from "./CookiePolicyModal-TdrVbP_E.js";
4
+ import { t as d } from "./CookiePolicyModal-CPNTKMHc.js";
5
5
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
6
6
  //#region node_modules/react-icons/fa6/index.mjs
7
7
  function h(e) {
@@ -1,5 +1,5 @@
1
1
  import { a as e, t } from "./utils-K9S_6_Eq.js";
2
- import { d as n, g as r } from "./esm-CUgR2iUX.js";
2
+ import { d as n, g as r } from "./esm-u0DqOC56.js";
3
3
  import { t as i } from "./Icon-DJTgdvsG.js";
4
4
  import { o as a, r as o } from "./fa-B95RwBpz.js";
5
5
  import { t as s } from "./Typography-AvvBRu-u.js";
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./clsx-BWCAbrjV.js";
2
- import { I as t } from "./esm-CUgR2iUX.js";
2
+ import { I as t } from "./esm-u0DqOC56.js";
3
3
  import { t as n } from "./Icon-DJTgdvsG.js";
4
4
  import { t as r } from "./Typography-AvvBRu-u.js";
5
- import { t as i } from "./Label-k6e4Rqb-.js";
5
+ import { t as i } from "./Label-KDdBAgyD.js";
6
6
  import a from "./components/icons/MadeInNorway.js";
7
7
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
8
  var c = {
@@ -1,13 +1,13 @@
1
1
  import { a as e, d as t, i as n, o as r, u as i } from "./utils-K9S_6_Eq.js";
2
2
  import { t as a } from "./clsx-BWCAbrjV.js";
3
- import { A as o, V as s, b as c, f as l, j as u, ot as d, p as f, rt as p, s as m, t as h, tt as g } from "./esm-CUgR2iUX.js";
4
- import { t as _ } from "./Button-BCbWIPg1.js";
3
+ import { A as o, V as s, b as c, f as l, it as u, j as d, nt as f, p, s as m, st as h, t as g } from "./esm-u0DqOC56.js";
4
+ import { t as _ } from "./Button-Ckhn8DSF.js";
5
5
  import { t as v } from "./Container-BDssaLig.js";
6
6
  import { t as y } from "./Logo-Bz0G2G-k.js";
7
- import { t as b } from "./PrefPanel-CHkc6r6b.js";
8
- import { t as x } from "./Search-D29JM1a_.js";
9
- import { t as S } from "./Label-k6e4Rqb-.js";
10
- import { t as C } from "./Notification-BFLAktZo.js";
7
+ import { t as b } from "./PrefPanel-Cf-xZ261.js";
8
+ import { t as x } from "./Search-Cy79c2sN.js";
9
+ import { t as S } from "./Label-KDdBAgyD.js";
10
+ import { t as C } from "./Notification-DQostuW6.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,7 +75,7 @@ var A = {
75
75
  {
76
76
  title: "Products",
77
77
  url: "https://www.highcharts.com/products/",
78
- icon: /* @__PURE__ */ O(g, {})
78
+ icon: /* @__PURE__ */ O(f, {})
79
79
  },
80
80
  {
81
81
  title: "Demos",
@@ -95,12 +95,12 @@ var A = {
95
95
  {
96
96
  title: "Pricing",
97
97
  url: "https://shop.highcharts.com/",
98
- icon: /* @__PURE__ */ O(p, {})
98
+ icon: /* @__PURE__ */ O(u, {})
99
99
  },
100
100
  {
101
101
  title: "Blog",
102
102
  url: "https://www.highcharts.com/blog/home/",
103
- icon: /* @__PURE__ */ O(d, {})
103
+ icon: /* @__PURE__ */ O(h, {})
104
104
  }
105
105
  ];
106
106
  function B(e, t) {
@@ -193,17 +193,17 @@ function Y() {
193
193
  e && R(M, e);
194
194
  }, [e]), null;
195
195
  }
196
- function X({ subItems: t, children: r, notifications: o = J, link: s = "a", host: c = "https://www.highcharts.com", pathname: d, cssVariable: p, position: g = "sticky" }) {
196
+ function X({ subItems: t, children: r, notifications: o = J, link: s = "a", host: c = "https://www.highcharts.com", pathname: u, cssVariable: f, position: h = "sticky" }) {
197
197
  let S = e("(max-width: 374px)"), w = e("(max-width: 849px)"), M = e("(max-width: 1300px)"), N = G(t), P = T(null), [F, L] = E(!1), [V, H] = E([]);
198
198
  n(() => {
199
199
  let e = P.current;
200
200
  if (!e) return;
201
201
  let n = t?.length ? N ? U : W : 0, r = 82 + V.length * 48 + n, i = -(82 + V.length * 48);
202
- if (g === "static") return e.style.transform = "", p && document.documentElement.style.setProperty("--header-bottom", `${r}px`), () => {
203
- e.style.transform = "", p && document.documentElement.style.removeProperty("--header-bottom");
202
+ if (h === "static") return e.style.transform = "", f && document.documentElement.style.setProperty("--header-bottom", `${r}px`), () => {
203
+ e.style.transform = "", f && document.documentElement.style.removeProperty("--header-bottom");
204
204
  };
205
205
  let a = window.scrollY, o = 0, s = null, c = null, l = () => {
206
- c = null, !(!e || s === o) && (e.style.transform = `translate3d(0, ${o}px, 0)`, p && document.documentElement.style.setProperty("--header-bottom", `${r + o}px`), s = o);
206
+ c = null, !(!e || s === o) && (e.style.transform = `translate3d(0, ${o}px, 0)`, f && document.documentElement.style.setProperty("--header-bottom", `${r + o}px`), s = o);
207
207
  };
208
208
  l();
209
209
  let u = () => {
@@ -211,13 +211,13 @@ function X({ subItems: t, children: r, notifications: o = J, link: s = "a", host
211
211
  a = e, o = Math.min(0, Math.max(i, o - t)), c === null && (c = window.requestAnimationFrame(l));
212
212
  };
213
213
  return window.addEventListener("scroll", u, { passive: !0 }), () => {
214
- window.removeEventListener("scroll", u), c !== null && cancelAnimationFrame(c), e.style.transform = "", p && document.documentElement.style.removeProperty("--header-bottom");
214
+ window.removeEventListener("scroll", u), c !== null && cancelAnimationFrame(c), e.style.transform = "", f && document.documentElement.style.removeProperty("--header-bottom");
215
215
  };
216
216
  }, [
217
- p,
217
+ f,
218
218
  N,
219
219
  V.length,
220
- g,
220
+ h,
221
221
  t?.length
222
222
  ]), n(() => {
223
223
  if (!o.length) return;
@@ -299,7 +299,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: s = "a", host
299
299
  as: s,
300
300
  href: B("https://shop.highcharts.com/", c),
301
301
  "aria-label": "Buy Now",
302
- children: [/* @__PURE__ */ O(f, {}), "Buy Now"]
302
+ children: [/* @__PURE__ */ O(p, {}), "Buy Now"]
303
303
  }) }),
304
304
  /* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(_, {
305
305
  className: A.cta,
@@ -312,7 +312,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: s = "a", host
312
312
  variant: F ? "soft" : "transparent",
313
313
  className: A.menu,
314
314
  onClick: X,
315
- children: [F ? "Close" : "Menu", O(F ? h : u, {})]
315
+ children: [F ? "Close" : "Menu", O(F ? g : d, {})]
316
316
  }) })
317
317
  ]
318
318
  })
@@ -323,7 +323,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: s = "a", host
323
323
  items: t,
324
324
  link: s,
325
325
  host: c,
326
- pathname: d
326
+ pathname: u
327
327
  }),
328
328
  r
329
329
  ]
@@ -363,7 +363,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: s = "a", host
363
363
  fullWidth: !0,
364
364
  as: s,
365
365
  href: B("https://shop.highcharts.com/", c),
366
- children: [/* @__PURE__ */ O(f, {}), "Buy Now"]
366
+ children: [/* @__PURE__ */ O(p, {}), "Buy Now"]
367
367
  }) }), /* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(_, {
368
368
  variant: "success",
369
369
  fullWidth: !0,
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./clsx-BWCAbrjV.js";
2
- import { Q as t, U as n, W as r } from "./esm-CUgR2iUX.js";
3
- import { t as i } from "./Button-BCbWIPg1.js";
2
+ import { $ as t, U as n, W as r } from "./esm-u0DqOC56.js";
3
+ import { t as i } from "./Button-Ckhn8DSF.js";
4
4
  import { forwardRef as a, useCallback as o, useEffect as s, useRef as c, useState as l } from "react";
5
5
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
6
6
  var f = {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BWCAbrjV.js";
2
- import { u as t } from "./esm-CUgR2iUX.js";
2
+ import { u as t } from "./esm-u0DqOC56.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  var i = {
5
5
  attention: "UwHMOW_attention",
@@ -1,7 +1,7 @@
1
1
  import { a as e } from "./utils-K9S_6_Eq.js";
2
2
  import { t } from "./clsx-BWCAbrjV.js";
3
- import { T as n, x as r } from "./esm-CUgR2iUX.js";
4
- import { t as i } from "./Button-BCbWIPg1.js";
3
+ import { T as n, x as r } from "./esm-u0DqOC56.js";
4
+ import { t as i } from "./Button-Ckhn8DSF.js";
5
5
  import { n as a, t as o } from "./ClientLogo-Dj7K48YL.js";
6
6
  import { useEffect as s, useRef as c, useState as l } from "react";
7
7
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  import { l as e } from "./utils-K9S_6_Eq.js";
2
2
  import { t } from "./clsx-BWCAbrjV.js";
3
- import { $ as n, B as r, ot as i } from "./esm-CUgR2iUX.js";
4
- import { t as a } from "./Button-BCbWIPg1.js";
3
+ import { B as n, et as r, st as i } from "./esm-u0DqOC56.js";
4
+ import { t as a } from "./Button-Ckhn8DSF.js";
5
5
  import { t as o } from "./Icon-DJTgdvsG.js";
6
6
  import { t as s } from "./Link-CYR92_U0.js";
7
7
  import { t as c } from "./InputSolo-DUdKtZjX.js";
@@ -78,7 +78,7 @@ function g({ link: g = "a", privacyUrl: _ = "https://www.highcharts.com/privacy/
78
78
  L ? /* @__PURE__ */ m("div", {
79
79
  className: h.content,
80
80
  children: [/* @__PURE__ */ p(o, {
81
- name: r,
81
+ name: n,
82
82
  size: 16
83
83
  }), E ? "Check your inbox and confirm your email to finish signing up." : "You’re already subscribed to our newsletter."]
84
84
  }) : /* @__PURE__ */ m("form", {
@@ -104,7 +104,7 @@ function g({ link: g = "a", privacyUrl: _ = "https://www.highcharts.com/privacy/
104
104
  variant: "success",
105
105
  disabled: !0,
106
106
  children: [/* @__PURE__ */ p(o, {
107
- name: n,
107
+ name: r,
108
108
  size: 16
109
109
  }), "You’re in"]
110
110
  }) : /* @__PURE__ */ p(a, {
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./clsx-BWCAbrjV.js";
2
- import { t } from "./esm-CUgR2iUX.js";
3
- import { t as n } from "./Button-BCbWIPg1.js";
2
+ import { t } from "./esm-u0DqOC56.js";
3
+ import { t as n } from "./Button-Ckhn8DSF.js";
4
4
  import { t as r } from "./Container-BDssaLig.js";
5
- import { t as i } from "./Label-k6e4Rqb-.js";
5
+ import { t as i } from "./Label-KDdBAgyD.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 = {
@@ -1,7 +1,7 @@
1
1
  import { d as e, o as t } from "./utils-K9S_6_Eq.js";
2
2
  import { t as n } from "./clsx-BWCAbrjV.js";
3
- import { D as r, E as i, et as a, h as o, l as s } from "./esm-CUgR2iUX.js";
4
- import { t as c } from "./Button-BCbWIPg1.js";
3
+ import { D as r, E as i, h as a, l as o, tt as s } from "./esm-u0DqOC56.js";
4
+ import { t as c } from "./Button-Ckhn8DSF.js";
5
5
  import { _ as l, a as u, d, h as f, i as p, l as m, m as h, n as ee, o as g, p as _, r as v, t as y, u as b, y as x } from "./es2015-DWa0ZZ7A.js";
6
6
  import { a as S, i as te, n as C, r as w, t as T } from "./dist-B04QoImH.js";
7
7
  import * as E from "react";
@@ -203,17 +203,17 @@ function $({ children: e, id: t, ...r }) {
203
203
  }), /* @__PURE__ */ k("label", {
204
204
  htmlFor: t,
205
205
  className: Q.radio,
206
- children: [e, /* @__PURE__ */ O(a, { className: Q.check })]
206
+ children: [e, /* @__PURE__ */ O(s, { className: Q.check })]
207
207
  })] });
208
208
  }
209
209
  function de() {
210
- let { theme: n, systemTheme: a, setTheme: l } = e(), u = t();
210
+ let { theme: n, systemTheme: s, setTheme: l } = e(), u = t();
211
211
  return /* @__PURE__ */ k(oe, { children: [/* @__PURE__ */ O(ce, {
212
212
  asChild: !0,
213
213
  children: /* @__PURE__ */ k(c, {
214
214
  variant: "transparent",
215
215
  "aria-label": "Preferences",
216
- children: [/* @__PURE__ */ O(o, {}), /* @__PURE__ */ O(se, { className: Q.anchor })]
216
+ children: [/* @__PURE__ */ O(a, {}), /* @__PURE__ */ O(se, { className: Q.anchor })]
217
217
  })
218
218
  }), /* @__PURE__ */ O(le, { children: /* @__PURE__ */ O(ue, {
219
219
  sideOffset: 8,
@@ -229,7 +229,7 @@ function de() {
229
229
  children: [
230
230
  /* @__PURE__ */ O(r, {}),
231
231
  "Auto (",
232
- a,
232
+ s,
233
233
  ")"
234
234
  ]
235
235
  }),
@@ -238,7 +238,7 @@ function de() {
238
238
  name: "theme",
239
239
  checked: n === "light",
240
240
  onChange: () => l("light"),
241
- children: [/* @__PURE__ */ O(s, {}), "Light"]
241
+ children: [/* @__PURE__ */ O(o, {}), "Light"]
242
242
  }),
243
243
  /* @__PURE__ */ k($, {
244
244
  id: "dark",