highsoft-ui 1.0.177 → 1.0.179

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 (84) hide show
  1. package/CLAUDE.md +130 -0
  2. package/dist/Accordion-NPNV0Rdr.js +73 -0
  3. package/dist/{Breadcrumb-CyaMrJfW.js → Breadcrumb-BQzfkMH0.js} +2 -2
  4. package/dist/{BrowserFrame-_qNod9an.js → BrowserFrame-Bs2fIKzy.js} +4 -4
  5. package/dist/{Button-DFcjZsF4.js → Button-DtCIaVhq.js} +1 -1
  6. package/dist/{ButtonGroup-dTeFICBP.js → ButtonGroup-6tLQmpEH.js} +1 -1
  7. package/dist/{Checkbox-X7FrR_6F.js → Checkbox-CqFkzrVk.js} +1 -1
  8. package/dist/{CodeBlock-rPC0sIvR.js → CodeBlock-BM_Vefdj.js} +4 -4
  9. package/dist/{CookiePolicyModal-D-IOZSoU.js → CookiePolicyModal-BXIr4v-D.js} +2 -2
  10. package/dist/{CopyCode-DS2T69as.js → CopyCode-4IXo0bTs.js} +2 -2
  11. package/dist/{Dropdown-Ck7IASlc.js → Dropdown-BgY76epB.js} +1 -1
  12. package/dist/{Footer-8oEBlwJ5.js → Footer-hAk1PceF.js} +7 -7
  13. package/dist/{FooterBottom-BPuLsXI1.js → FooterBottom-CT_vF7Wo.js} +1 -1
  14. package/dist/{FooterHelp-99gRcRar.js → FooterHelp-VHhF9ED6.js} +1 -1
  15. package/dist/{FooterLinks-DXTz-d8e.js → FooterLinks-DsCivmiy.js} +2 -2
  16. package/dist/{Header-DqE0a41T.js → Header-CEV_MWep.js} +24 -24
  17. package/dist/{InputGrouped-DNiMvxxa.js → InputGrouped-y1UNKVd4.js} +11 -11
  18. package/dist/{Label-DTIv_3zs.js → Label-DwiX1ZiD.js} +1 -1
  19. package/dist/{List-CdwPhveO.js → List-gHC2SJgK.js} +1 -1
  20. package/dist/{LogoCarousel-BsmxIlzx.js → LogoCarousel-e-1WK43R.js} +3 -3
  21. package/dist/{NewsletterSignup-CTbjNSnk.js → NewsletterSignup-Dk1cwk-W.js} +2 -2
  22. package/dist/{Notification-CTSGBhJk.js → Notification-D93nzw6M.js} +3 -3
  23. package/dist/{PrefPanel-CwrWfi3R.js → PrefPanel-DTbo6QDa.js} +7 -7
  24. package/dist/{PrevNextNav-BwP-lRaG.js → PrevNextNav-C406puU6.js} +2 -2
  25. package/dist/ProductNotice-CtgDdo5_.js +144 -0
  26. package/dist/{RoadmapDetails-B-2pgXHz.js → RoadmapDetails-DIByXo2r.js} +5 -5
  27. package/dist/{SearchDropdown-g3g30peB.js → SearchDropdown-cml8LqKq.js} +1 -1
  28. package/dist/{VideoPlayer-C0pHiwYx.js → VideoPlayer-Cg9MFkP5.js} +7 -7
  29. package/dist/{VideoPlayerModal-Bh2u5h8g.js → VideoPlayerModal-BzYnI2f2.js} +2 -2
  30. package/dist/{YoutubeModal-B6yOEOaP.js → YoutubeModal-8iX4sMik.js} +1 -1
  31. package/dist/components/Accordion/index.js +2 -0
  32. package/dist/components/Breadcrumb/index.js +1 -1
  33. package/dist/components/BrowserFrame/index.js +1 -1
  34. package/dist/components/Button/index.js +1 -1
  35. package/dist/components/ButtonGroup/index.js +1 -1
  36. package/dist/components/Checkbox/index.js +1 -1
  37. package/dist/components/CodeBlock/index.js +1 -1
  38. package/dist/components/CopyCode/index.js +1 -1
  39. package/dist/components/Dropdown/index.js +1 -1
  40. package/dist/components/Figure/ZoomImage.js +2 -2
  41. package/dist/components/Footer/CookiePolicyModal.js +1 -1
  42. package/dist/components/Footer/FooterBottom.js +1 -1
  43. package/dist/components/Footer/FooterHelp.js +1 -1
  44. package/dist/components/Footer/FooterLinks.js +1 -1
  45. package/dist/components/Footer/YoutubeModal.js +1 -1
  46. package/dist/components/Footer/index.js +1 -1
  47. package/dist/components/Header/index.js +1 -1
  48. package/dist/components/InputGrouped/index.js +1 -1
  49. package/dist/components/Label/index.js +1 -1
  50. package/dist/components/List/index.js +1 -1
  51. package/dist/components/LogoCarousel/index.js +1 -1
  52. package/dist/components/Modal/ModalContactFooter.js +2 -2
  53. package/dist/components/Modal/index.js +2 -2
  54. package/dist/components/NewsletterSignup/index.js +1 -1
  55. package/dist/components/Notification/index.js +1 -1
  56. package/dist/components/PrefPanel/index.js +1 -1
  57. package/dist/components/PrevNextNav/index.js +1 -1
  58. package/dist/components/ProductNotice/index.js +4 -0
  59. package/dist/components/ProductNotice/tracking.js +25 -0
  60. package/dist/components/PromoBanner/index.js +2 -2
  61. package/dist/components/RoadmapDetails/index.js +1 -1
  62. package/dist/components/Search/SearchDialog.js +12 -12
  63. package/dist/components/Search/index.js +2 -2
  64. package/dist/components/SearchDropdown/index.js +1 -1
  65. package/dist/components/Sidebar/NavDisclosure.js +1 -1
  66. package/dist/components/Sidebar/NavGroup.js +1 -1
  67. package/dist/components/Sidebar/Sidebar.js +10 -10
  68. package/dist/components/Sidebar/SidebarLayout.js +1 -1
  69. package/dist/components/Sidebar/SidebarSwitcher.js +1 -1
  70. package/dist/components/VideoCover/index.js +1 -1
  71. package/dist/components/VideoPlayer/VideoPlayerModal.js +1 -1
  72. package/dist/components/VideoPlayer/index.js +1 -1
  73. package/dist/{create-element-DHbI55TT.js → create-element-ChcNUMOL.js} +1 -1
  74. package/dist/{esm-DQBytmnt.js → esm-CqcQTziN.js} +57 -29
  75. package/dist/highsoft-ui.css +1 -1
  76. package/dist/lib/components/Accordion/index.d.ts +24 -0
  77. package/dist/lib/components/ProductNotice/index.d.ts +60 -0
  78. package/dist/lib/components/ProductNotice/tracking.d.ts +40 -0
  79. package/dist/lib/main.d.ts +6 -0
  80. package/dist/lib/tracking.d.ts +52 -0
  81. package/dist/main.js +61 -57
  82. package/dist/{prism-light-D9OePufj.js → prism-light-B3J0jr_a.js} +1 -1
  83. package/dist/tracking.js +47 -0
  84. package/package.json +1 -1
package/CLAUDE.md CHANGED
@@ -158,6 +158,42 @@ The foundational layout component. Use it instead of raw `<div>` with inline sty
158
158
  - **`hoverable`:** adds animated border-highlight + shadow-lift on hover using `--animations-fade-fast` and `--animations-bounce-default`
159
159
  - **`as`:** polymorphic — render as any HTML element
160
160
 
161
+ ### Accordion
162
+ A stack of collapsible sections. Each `AccordionItem` is a native `<details>` with its headline in the `<summary>`, so opening, closing and the keyboard come from the browser (and, where supported, find-in-page opens an item whose body holds a match).
163
+ ```tsx
164
+ import { LinkExternal01 } from '@untitled-ui/icons-react'
165
+
166
+ <Accordion>
167
+ <AccordionItem title="Typescript">
168
+ <p>Typed from the ground up…</p>
169
+ </AccordionItem>
170
+ <AccordionItem title="Dynamic and Customizable" defaultOpen>
171
+ <p>Body text with a <Link href="/docs">link</Link>.</p>
172
+ <Button variant="brand" size={300} href="/docs" iconRight={<LinkExternal01 />}>Button link</Button>
173
+ </AccordionItem>
174
+ </Accordion>
175
+
176
+ // Titles as <h3>, same look — for items that are sections of the page
177
+ <Accordion headingLevel={3}>…</Accordion>
178
+
179
+ // Controlled
180
+ <AccordionItem title="Shipping" open={open} onOpenChange={setOpen}>…</AccordionItem>
181
+ ```
182
+ - **`Accordion`:** a flex column with 8px between items (`--item-spacing-400`). Each item opens and closes on its own; there is no one-open-at-a-time mode. **`headingLevel`** (`2`–`6`) renders every item's title as that heading; unset, titles are plain text (`<span>`).
183
+ - **`AccordionItem`:** **`title`** (the headline, `ReactNode`), **`children`** (the body), **`headingLevel`** (overrides the Accordion's for this item), **`defaultOpen`** or controlled **`open`** + **`onOpenChange(open)`**. Other props and the ref go to the `<details>`. Uncontrolled, `defaultOpen` is rendered as the `open` attribute, so server HTML is already open. Controlled, a summary click calls `onOpenChange` instead of toggling, and changes the browser makes on its own (find-in-page) are reported through `onOpenChange` too.
184
+ - **States, from Figma:** closed items are transparent with a 1px `--HS-surface-ui-border-100` stroke and a `--HS-text-secondary-default` title, so they sit on the page. Open: `--HS-surface-ui-background-0` card, `--HS-surface-ui-border-200`, primary title. Hover (pointer devices only, `@media (hover: hover)`): background-0 card, `--HS-surface-ui-border-300`, primary title, and the indicator takes the transparent Button hover. Keyboard focus: background-0 card and the two-tone ring (the `a11y-focus-ring` mixin with the Figma "Focus/A11Y" 5px outer).
185
+ - **Title element:** the title is `Typography` 400 semi rendered as a `<span>` or, with `headingLevel`, an `<h2>`–`<h6>` — same look either way (margins and any site-wide heading font are reset). There is no paragraph option, unlike the blocks' "Title element" setting: `<summary>` accepts phrasing or heading content, and a `<p>` is neither. The Storybook **Title element** control maps to this prop.
186
+ - **Geometry:** 8px radius, 22px padding inside the stroke, title 20px semi (`Typography` 400) with the line centred on the indicator, 20px between headline and body, body 18px secondary (`Typography` 300) with 24px between its children. The body's end inset is the indicator column (32 + 8px), so its text lines up under the title (Figma draws 47px). Below a 480px card (container query) the body takes the full width.
187
+ - **Indicator:** plus when closed, minus when open — the size-200 transparent `Button` rendered as an `aria-hidden` `<span>` with its role and tab stop removed, because a `<button>` inside `<summary>` is invalid nested interaction.
188
+ - **Body children:** a flex column aligned to the start, so a `Button` keeps its width; direct children's block margins are reset at zero specificity (`:where`), so the gap sets the rhythm and a class margin still wins. Wrap several Buttons in a row element.
189
+ - **Motion:** the body's height animates on `--animations-bounce-default` through `::details-content` + `interpolate-size` (Chrome 129+, Safari 18.4+; others snap) and is instant under `prefers-reduced-motion`. **Colours are not transitioned**, for the same reason as ButtonGroup: a colour transition fades the list behind the page on a `data-theme` flip.
190
+
191
+ **Accessibility:**
192
+ - The `<summary>` is the item's one control: the browser announces it as a button with its expanded state, and Space/Enter toggle it. The whole closed card is the click target; an open body isn't, so its text can be selected and its links and Buttons work as usual.
193
+ - The indicator is `aria-hidden`, so the button is named by the title alone. A closed body is out of the tab order and the accessibility tree.
194
+ - **Headings:** set `headingLevel` when the items are sections of the page, at the level that fits the outline (`3` under a section's `<h2>`), rather than putting a `Heading` inside `title`. Leave it unset for a list of short questions or options. The heading sits inside the `<summary>`, which is valid HTML, but screen readers differ: some list it in their headings navigation, others treat the summary as a button and read only its text. So write the title to work as a button name too.
195
+ - Focus is drawn on the card edge (`:has(> summary:focus-visible)`) rather than on the summary, since the card is what you click. The ring is the background-coloured gap + brand outer, as on the other form controls.
196
+
161
197
  ### Button
162
198
  ```tsx
163
199
  <Button variant="brand" size={300}>Primary action</Button>
@@ -1081,6 +1117,73 @@ heading, provide an appropriate accessible section label and distinct CTA label
1081
1117
  through `action.buttonProps` as needed. Preserve reduced-motion handling and
1082
1118
  keyboard operation of the media control.
1083
1119
 
1120
+ ### ProductNotice
1121
+ Slim, closable product notice on a brand surface: a product icon, a semibold run-in title and its description, up to two buttons and a close button. Under 760px of its own width it switches to a compact layout. Reports views, clicks and closes to the page's tracker (see [Tracking](#tracking)). Figma "orbit Banner shop" in the Kartoffel shop file (wide 4055:77089, mobile 4061:42944).
1122
+ ```tsx
1123
+ import { Mail01 } from '@untitled-ui/icons-react'
1124
+
1125
+ <ProductNotice
1126
+ product="orbit"
1127
+ title="Highcharts Orbit is here."
1128
+ description="It’s sold through our sales team, so you won’t find it in the configurator below."
1129
+ compactDescription="It’s sold through our sales team."
1130
+ actions={[
1131
+ { label: 'Explore Orbit', href: '/products/orbit' },
1132
+ { label: 'Contact sales', href: '/contact-sales', iconRight: <Mail01 /> }
1133
+ ]}
1134
+ tracking={{ id: 'orbit-shop-notice', name: 'Highcharts Orbit (shop)' }}
1135
+ />
1136
+
1137
+ // One button, no close
1138
+ <ProductNotice product="stock" title="…" description="…" actions={[{ label: 'Read more', href: '…' }]} closable={false} />
1139
+
1140
+ // Any other logo in place of the product icon: it then needs a tracking id (or tracking={false})
1141
+ <ProductNotice icon={<FrameworkIcon icon="python" size={24} />} title="…" tracking={{ id: 'python-notice' }} />
1142
+ ```
1143
+ - **`product`:** a `ProductIconName` (default `orbit`), drawn as a monochrome 24px `ProductIcon`; also the default `promotion_id` and `item_id`. **`icon`** replaces it with any element (a `FrameworkIcon`, an `<img>`); it sits in an `aria-hidden` slot, so it is decorative — the title names the product. `product` and `icon` are exclusive, and with `icon` the types require `tracking={{ id }}` or `tracking={false}`, so a Python notice can't report as Orbit.
1144
+ - **`title`** / **`description`:** one 16px paragraph (`Typography` 200, 130%), the title in a semibold `<strong>`, the description regular. **`compactDescription`** is the shorter text for the compact layout (defaults to `description`).
1145
+ - **`actions`:** zero, one or two `{ label, href?, onClick?, iconLeft?, iconRight?, buttonProps?, tracking? }`, rendered as transparent `Button`s; variant and size are fixed by the design. A third item is ignored. `label` is a string because it is also the tracked `link_text`. `buttonProps` can't override the variant, size, `href` or the tracked click; an `onClick` in it still runs after the notice's own handler.
1146
+ - **`closable`** (default `true`) shows a plain icon-only `Button` with `X`; clicking it hides the notice and calls **`onClose`**. Nothing is remembered: to keep it closed across page loads, store that in `onClose` and stop rendering it. **`closeLabel`** (default `'Close'`) is its accessible name.
1147
+ - **Wide layout:** `Box` (1px border, 8px radius, `--shadow-size-100`, 12px padding, 20px from the left edge to the content): icon and text, then size-100 buttons and close on the same row.
1148
+ - **Compact layout** (under 760px, Figma mobile): no icon and no shadow, 12px padding all round, the text with a size-200 close top right, and size-200 buttons on their own row below. It is a **container query** on the notice's own width, so a narrow column gets it too, not only a phone. Both button sets are rendered and the hidden one is `display: none`; so each action renders twice — don't put an `id` in `buttonProps`.
1149
+ - **Colours** are the component's own light/dark pair from primitives, as in PromoBanner: light brand-200 surface, brand-300 stroke, brand-1000 text; dark brand-1000 surface, brand-900 stroke, brand-50 text (`--product-notice-bg` / `-border` / `-text`, remapped under `[data-theme='dark']`). The semantic brand tokens would give brand-800 and brand-600 in dark.
1150
+
1151
+ **Tracking.** Events go to the page's tracker: a `TrackingProvider` at the app root, or the notice's own **`tracker`** prop (see [Tracking](#tracking)). With neither, nothing is sent. The default event names are GA4's promotion events (`dismiss_promotion` is a custom one):
1152
+
1153
+ | Interaction | Default event | Extra params |
1154
+ |---|---|---|
1155
+ | half the notice on screen (once per mount) | `view_promotion` | `items` |
1156
+ | a button click | `select_promotion` | `items`, `link_text`, `link_url` |
1157
+ | close | `dismiss_promotion` | — |
1158
+
1159
+ Every event carries `promotion_id` (`tracking.id`, default the `product`) and `promotion_name` (`tracking.name`, default the id). View and click also carry GA4's **`items`**: GA4 requires them on `view_promotion`, and the Promotions report leaves out a `select_promotion` without them. The default is the product, `[{ item_id: 'orbit' }]` (with a custom `icon`, the tracking id); pass `tracking.items` for your own (each needs an `item_id` or an `item_name`), or `false` for none. Change any of it through **`tracking`**:
1160
+ ```tsx
1161
+ <ProductNotice
1162
+ tracking={{
1163
+ id: 'orbit-shop-notice',
1164
+ events: { view: false, close: 'shop_notice_close' }, // rename or skip an event
1165
+ items: [{ item_id: 'orbit', item_name: 'Highcharts Orbit' }], // GA4 items for view and click
1166
+ params: { creative_slot: 'shop_configurator' } // sent with every event
1167
+ }}
1168
+ tracker={({ event, params }) => Google.analytics({ event, ...params })} // this notice only, instead of the provider's
1169
+ actions={[
1170
+ { label: 'Explore Orbit', href: '…', tracking: false }, // this button isn't tracked
1171
+ { label: 'Contact sales', href: '…', tracking: { event: 'generate_lead', params: { lead_source: 'orbit_shop_notice' } } }
1172
+ ]}
1173
+ />
1174
+
1175
+ <ProductNotice tracking={false} … /> // send nothing
1176
+ ```
1177
+ Params merge in this order, later winning: `promotion_id`/`promotion_name`/`items` → `link_text`/`link_url` → `tracking.params` → the button's `tracking.params`. Undefined values are dropped. The tracker receives `{ event, params }`. An inline `tracking` object doesn't restart the view observer; the latest config is read when an event fires.
1178
+
1179
+ **Accessibility:**
1180
+ - The buttons are real `Button`s (links when `href` is set) with the shared focus ring; the close button is named by `closeLabel`. Tab order follows the layout: the buttons then close in the wide row; close then the buttons in the compact one, top to bottom.
1181
+ - The layout not shown is `display: none`, so assistive technology and the tab order only ever meet one set of buttons and one description.
1182
+ - The icon is decorative (`aria-hidden`); the title carries the product name.
1183
+ - Text is brand-1000 on brand-200 in light and brand-50 on brand-1000 in dark, both well above 4.5:1.
1184
+ - Closing removes the notice, so focus falls back to the page; if the notice sits before important content, move focus there in `onClose`.
1185
+ - Nothing animates.
1186
+
1084
1187
  ### TableOfContents
1085
1188
  "On this page" navigation for an article: a rule down the left, a semibold title and one link per heading. Uncontrolled by default with a built-in scroll spy; pass `activeId` to drive the highlight yourself.
1086
1189
 
@@ -1117,6 +1220,33 @@ const items: TableOfContentsItem[] = [
1117
1220
  - Hover and current states pair the bar with a text-colour change, so neither rests on colour alone. The bar's width grows on the bounce token and is instant under `prefers-reduced-motion: reduce`, which leaves nothing animating; colours switch instantly in every mode. The spy only swaps which row is current.
1118
1221
  - Rows are 18px tall on a 25px pitch: under the 24px minimum of WCAG 2.5.8, but the pitch keeps every target at least 24px from the next, which is the criterion's spacing exception. Nested rows indent without shrinking.
1119
1222
 
1223
+ ## Tracking
1224
+
1225
+ Components that report interactions (currently `ProductNotice`) don't know which analytics a site runs. They hand each event, `{ event, params }` in GA4 shape, to a **tracker**, and the site chooses the tracker. Set it once at the app root:
1226
+
1227
+ ```tsx
1228
+ import { TrackingProvider, dataLayerTracker, gtagTracker } from 'highsoft-ui'
1229
+
1230
+ // Google Tag Manager (highcharts.com): pushes { event, ...params } onto window.dataLayer
1231
+ <TrackingProvider tracker={dataLayerTracker()}>…</TrackingProvider>
1232
+
1233
+ // GTM with a renamed data layer
1234
+ <TrackingProvider tracker={dataLayerTracker({ name: 'siteLayer' })}>…</TrackingProvider>
1235
+
1236
+ // gtag.js straight to GA4, routed to this site's measurement ID
1237
+ <TrackingProvider tracker={gtagTracker({ sendTo: 'G-XXXXXXX' })}>…</TrackingProvider>
1238
+
1239
+ // The site's own wrapper, which keeps its consent check (the shop's Cookiebot-gated Google.analytics)
1240
+ <TrackingProvider tracker={({ event, params }) => Google.analytics({ event, ...params })}>…</TrackingProvider>
1241
+ ```
1242
+ - **`Tracker`** is `(event: TrackingEvent) => void`; any function works, so a site can also log, sample, or send to two places at once.
1243
+ - A component's own **`tracker`** prop beats the provider. No provider and no prop: no events are sent.
1244
+ - `dataLayerTracker` pushes everything at the top level, `items` included: `{ event, promotion_id, items, … }`. Google's GTM ecommerce examples nest them under an `ecommerce` key, which is what a GA4 event tag's "Send Ecommerce data" option reads; with this tracker, map `items` as an event parameter in the tag instead.
1245
+ - **Consent belongs to the site.** `dataLayerTracker`/`gtagTracker` push unconditionally; GTM consent mode or the site's wrapper decides what is sent. Never point a consent-gated site at the raw adapters.
1246
+ - Trackers run inside a `try/catch`: a broken analytics script logs an error but never blocks the click or the navigation. The adapters do nothing during SSR, and `gtagTracker` does nothing until the gtag snippet has run.
1247
+ - `useTracker(prop?)` returns the resolved, never-throwing tracker, for new components that track.
1248
+ - Functions can't cross the Next.js Server → Client Component boundary: create the tracker in a client component (e.g. a `'use client'` providers file at the root).
1249
+
1120
1250
  ## Hooks
1121
1251
 
1122
1252
  ### useSuccessFlash
@@ -0,0 +1,73 @@
1
+ "use client";
2
+ import { t as e } from "./clsx-BWCAbrjV.js";
3
+ import { S as t, j as n } from "./esm-CqcQTziN.js";
4
+ import { t as r } from "./Button-DtCIaVhq.js";
5
+ import { n as i } from "./Typography-DI1AkqiO.js";
6
+ import { createContext as a, forwardRef as o, useContext as s, useMemo as c } from "react";
7
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
8
+ var f = {
9
+ accordion: "_5-LWIa_accordion",
10
+ content: "_5-LWIa_content",
11
+ indicator: "_5-LWIa_indicator",
12
+ item: "_5-LWIa_item",
13
+ minus: "_5-LWIa_minus",
14
+ plus: "_5-LWIa_plus",
15
+ summary: "_5-LWIa_summary",
16
+ title: "_5-LWIa_title"
17
+ }, p = a({}), m = o(({ headingLevel: t, className: n, children: r, ...i }, a) => {
18
+ let o = c(() => ({ headingLevel: t }), [t]);
19
+ return /* @__PURE__ */ u(p.Provider, {
20
+ value: o,
21
+ children: /* @__PURE__ */ u("div", {
22
+ ref: a,
23
+ className: e("hsui-accordion", n, f.accordion),
24
+ ...i,
25
+ children: r
26
+ })
27
+ });
28
+ });
29
+ m.displayName = "Accordion";
30
+ var h = o(({ title: a, headingLevel: o, open: c, defaultOpen: m = !1, onOpenChange: h, className: g, children: _, ...v }, y) => {
31
+ let b = s(p), x = o ?? b.headingLevel, S = c !== void 0, C = (e) => {
32
+ S && (e.preventDefault(), h?.(!c));
33
+ };
34
+ return /* @__PURE__ */ d("details", {
35
+ ref: y,
36
+ open: S ? c : m,
37
+ className: e("hsui-accordion-item", g, f.item),
38
+ onToggle: (e) => {
39
+ let t = e.currentTarget.open;
40
+ S && t === c || h?.(t);
41
+ },
42
+ ...v,
43
+ children: [/* @__PURE__ */ d("summary", {
44
+ className: f.summary,
45
+ onClick: C,
46
+ children: [/* @__PURE__ */ u(i, {
47
+ as: x ? `h${x}` : "span",
48
+ size: 400,
49
+ weight: "semi",
50
+ className: f.title,
51
+ children: a
52
+ }), /* @__PURE__ */ u(r, {
53
+ as: "span",
54
+ variant: "transparent",
55
+ size: 200,
56
+ className: f.indicator,
57
+ role: void 0,
58
+ tabIndex: void 0,
59
+ "aria-hidden": "true",
60
+ iconLeft: /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(t, { className: f.plus }), /* @__PURE__ */ u(n, { className: f.minus })] })
61
+ })]
62
+ }), /* @__PURE__ */ u(i, {
63
+ as: "div",
64
+ size: 300,
65
+ color: "secondary",
66
+ className: f.content,
67
+ children: _
68
+ })]
69
+ });
70
+ });
71
+ h.displayName = "AccordionItem";
72
+ //#endregion
73
+ export { h as n, m as t };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./clsx-BWCAbrjV.js";
2
- import { Q as t, st as n } from "./esm-DQBytmnt.js";
3
- import { t as r } from "./Button-DFcjZsF4.js";
2
+ import { et as t, lt as n } from "./esm-CqcQTziN.js";
3
+ import { t as r } from "./Button-DtCIaVhq.js";
4
4
  import { t as i } from "./Icon-DJTgdvsG.js";
5
5
  import { forwardRef as a } from "react";
6
6
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { t as e } from "./clsx-BWCAbrjV.js";
3
- import { A as t, K as n, R as r, z as i } from "./esm-DQBytmnt.js";
4
- import { t as a } from "./Button-DFcjZsF4.js";
3
+ import { B as t, J as n, M as r, V as i } from "./esm-CqcQTziN.js";
4
+ import { t as a } from "./Button-DtCIaVhq.js";
5
5
  import { forwardRef as o, useCallback as s, useEffect as c, useRef as l, useState as u } from "react";
6
6
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
7
7
  var p = {
@@ -52,7 +52,7 @@ var h = o(({ variant: o = "full", src: h, displayUrl: g, href: _, action: v = "v
52
52
  }, [G]), X = o === "full" && v !== "none" ? v === "fullscreen" ? /* @__PURE__ */ d(a, {
53
53
  variant: "soft",
54
54
  size: 100,
55
- iconRight: d(V ? t : n, {}),
55
+ iconRight: d(V ? r : n, {}),
56
56
  onClick: Y,
57
57
  children: y ?? (V ? "Exit fullscreen" : "Fullscreen")
58
58
  }) : G ? /* @__PURE__ */ d(a, {
@@ -117,7 +117,7 @@ var h = o(({ variant: o = "full", src: h, displayUrl: g, href: _, action: v = "v
117
117
  children: S.map((e) => /* @__PURE__ */ d(a, {
118
118
  variant: "soft",
119
119
  size: 100,
120
- iconRight: /* @__PURE__ */ d(r, {}),
120
+ iconRight: /* @__PURE__ */ d(t, {}),
121
121
  href: e.href,
122
122
  target: "_blank",
123
123
  rel: "noreferrer",
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BWCAbrjV.js";
2
- import { I as t } from "./esm-DQBytmnt.js";
2
+ import { R as t } from "./esm-CqcQTziN.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,6 +1,6 @@
1
1
  "use client";
2
2
  import { t as e } from "./clsx-BWCAbrjV.js";
3
- import { t } from "./Button-DFcjZsF4.js";
3
+ import { t } from "./Button-DtCIaVhq.js";
4
4
  import { useEffect as n, useState as r } from "react";
5
5
  import { jsx as i } from "react/jsx-runtime";
6
6
  var a = {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { t as e } from "./clsx-BWCAbrjV.js";
3
- import { F as t } from "./esm-DQBytmnt.js";
3
+ import { L as t } from "./esm-CqcQTziN.js";
4
4
  import { createContext as n, useCallback as r, useContext as i, useEffect as a, useId as o, useRef as s, useState as c } from "react";
5
5
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
6
6
  var d = {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { r as e, s as t } from "./utils-bAjntFD8.js";
3
3
  import { t as n } from "./clsx-BWCAbrjV.js";
4
- import { J as r, nt as i } from "./esm-DQBytmnt.js";
5
- import { t as a } from "./Button-DFcjZsF4.js";
4
+ import { X as r, it as i } from "./esm-CqcQTziN.js";
5
+ import { t as a } from "./Button-DtCIaVhq.js";
6
6
  import { t as o } from "./FrameworkIcon-B8GmMx0r.js";
7
7
  import { Fragment as s, forwardRef as c, useCallback as l, useEffect as u, useMemo as d, useState as f } from "react";
8
8
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
@@ -23,8 +23,8 @@ var h = {
23
23
  }, g = null;
24
24
  function _() {
25
25
  return g ||= Promise.all([
26
- import("./prism-light-D9OePufj.js"),
27
- import("./create-element-DHbI55TT.js").then((e) => e.n),
26
+ import("./prism-light-B3J0jr_a.js"),
27
+ import("./create-element-ChcNUMOL.js").then((e) => e.n),
28
28
  import("./jsx-B57trbk8.js"),
29
29
  import("./tsx-CJFgwLf7.js"),
30
30
  import("./json-Bfzk2Msc.js"),
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { n as e } from "./esm-DQBytmnt.js";
3
- import { t } from "./Button-DFcjZsF4.js";
2
+ import { n as e } from "./esm-CqcQTziN.js";
3
+ import { t } from "./Button-DtCIaVhq.js";
4
4
  import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./dist-DWZ0DflU.js";
5
5
  import { useEffect as l, useRef as u, useState as d } from "react";
6
6
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { r as e, s as t } from "./utils-bAjntFD8.js";
3
3
  import { t as n } from "./clsx-BWCAbrjV.js";
4
- import { J as r, nt as i } from "./esm-DQBytmnt.js";
5
- import { t as a } from "./Button-DFcjZsF4.js";
4
+ import { X as r, it as i } from "./esm-CqcQTziN.js";
5
+ import { t as a } from "./Button-DtCIaVhq.js";
6
6
  import { forwardRef as o, useCallback as s } from "react";
7
7
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
8
8
  var u = {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { t as e } from "./clsx-BWCAbrjV.js";
3
- import { nt as t } from "./esm-DQBytmnt.js";
3
+ import { it as t } from "./esm-CqcQTziN.js";
4
4
  import { t as n } from "./Icon-DJTgdvsG.js";
5
5
  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-DGI5uxql.js";
6
6
  import { a as b, i as x, n as S, r as C, t as w } from "./dist-BAH-0dTg.js";
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { r as e } from "./utils-bAjntFD8.js";
3
- import { Y as t, nt as n } from "./esm-DQBytmnt.js";
4
- import { t as r } from "./Button-DFcjZsF4.js";
3
+ import { Z as t, it as n } from "./esm-CqcQTziN.js";
4
+ import { t as r } from "./Button-DtCIaVhq.js";
5
5
  import { t as i } from "./Container-BDssaLig.js";
6
6
  import { t as a } from "./DiscordInvite-DfPVlJ5G.js";
7
7
  import { t as o } from "./Logo-Bz0G2G-k.js";
8
- import { t as s } from "./NewsletterSignup-CTbjNSnk.js";
9
- import { t as c } from "./FooterBottom-BPuLsXI1.js";
10
- import { t as l } from "./FooterHelp-99gRcRar.js";
11
- import { t as u } from "./FooterLinks-DXTz-d8e.js";
12
- import { t as d } from "./YoutubeModal-B6yOEOaP.js";
8
+ import { t as s } from "./NewsletterSignup-Dk1cwk-W.js";
9
+ import { t as c } from "./FooterBottom-CT_vF7Wo.js";
10
+ import { t as l } from "./FooterHelp-VHhF9ED6.js";
11
+ import { t as u } from "./FooterLinks-DsCivmiy.js";
12
+ import { t as d } from "./YoutubeModal-8iX4sMik.js";
13
13
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
14
14
  var m = {
15
15
  discordCard: "_4W4F3q_discordCard",
@@ -2,7 +2,7 @@
2
2
  import { a as e, t } from "./utils-bAjntFD8.js";
3
3
  import { n } from "./Typography-DI1AkqiO.js";
4
4
  import { a as r, c as i, i as a, n as o, o as s, r as c, s as l, t as u } from "./fa-B95RwBpz.js";
5
- import { t as d } from "./CookiePolicyModal-D-IOZSoU.js";
5
+ import { t as d } from "./CookiePolicyModal-BXIr4v-D.js";
6
6
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
7
7
  //#region node_modules/react-icons/fa6/index.mjs
8
8
  function h(e) {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { a as e, t } from "./utils-bAjntFD8.js";
3
- import { _ as n, f as r } from "./esm-DQBytmnt.js";
3
+ import { _ as n, f as r } from "./esm-CqcQTziN.js";
4
4
  import { n as i } from "./Typography-DI1AkqiO.js";
5
5
  import { t as a } from "./Icon-DJTgdvsG.js";
6
6
  import { o, r as s } from "./fa-B95RwBpz.js";
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./clsx-BWCAbrjV.js";
2
- import { L as t } from "./esm-DQBytmnt.js";
2
+ import { z as t } from "./esm-CqcQTziN.js";
3
3
  import { n } from "./Typography-DI1AkqiO.js";
4
4
  import { t as r } from "./Icon-DJTgdvsG.js";
5
- import { t as i } from "./Label-DTIv_3zs.js";
5
+ import { t as i } from "./Label-DwiX1ZiD.js";
6
6
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
7
  var s = {
8
8
  externalIcon: "N4RQEq_externalIcon",
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { a as e, d as t, i as n, o as r, u as i } from "./utils-bAjntFD8.js";
3
3
  import { t as a } from "./clsx-BWCAbrjV.js";
4
- import { H as o, M as s, at as c, c as l, j as u, lt as d, m as f, n as p, p as m, rt as h, x as g } from "./esm-DQBytmnt.js";
5
- import { t as _ } from "./Button-DFcjZsF4.js";
4
+ import { N as o, P as s, W as c, at as l, c as u, dt as d, m as f, n as p, p as m, st as h, x as g } from "./esm-CqcQTziN.js";
5
+ import { t as _ } from "./Button-DtCIaVhq.js";
6
6
  import { t as v } from "./Container-BDssaLig.js";
7
7
  import { t as y } from "./Logo-Bz0G2G-k.js";
8
- import { t as b } from "./PrefPanel-CwrWfi3R.js";
9
- import { t as x } from "./Label-DTIv_3zs.js";
10
- import { t as S } from "./Notification-CTSGBhJk.js";
8
+ import { t as b } from "./PrefPanel-DTbo6QDa.js";
9
+ import { t as x } from "./Label-DwiX1ZiD.js";
10
+ import { t as S } from "./Notification-D93nzw6M.js";
11
11
  import { Search as C } from "./components/Search/index.js";
12
12
  import { useEffect as w, useRef as T, useState as E } from "react";
13
13
  import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
@@ -76,7 +76,7 @@ var A = {
76
76
  {
77
77
  title: "Products",
78
78
  url: "https://www.highcharts.com/products/",
79
- icon: /* @__PURE__ */ O(h, {})
79
+ icon: /* @__PURE__ */ O(l, {})
80
80
  },
81
81
  {
82
82
  title: "Demos",
@@ -86,17 +86,17 @@ var A = {
86
86
  {
87
87
  title: "Support",
88
88
  url: "https://www.highcharts.com/support/",
89
- icon: /* @__PURE__ */ O(u, {})
89
+ icon: /* @__PURE__ */ O(o, {})
90
90
  },
91
91
  {
92
92
  title: "Resources",
93
93
  url: "https://www.highcharts.com/resources/",
94
- icon: /* @__PURE__ */ O(o, {})
94
+ icon: /* @__PURE__ */ O(c, {})
95
95
  },
96
96
  {
97
97
  title: "Pricing",
98
98
  url: "https://shop.highcharts.com/",
99
- icon: /* @__PURE__ */ O(c, {})
99
+ icon: /* @__PURE__ */ O(h, {})
100
100
  },
101
101
  {
102
102
  title: "Blog",
@@ -194,7 +194,7 @@ function Y() {
194
194
  e && R(M, e);
195
195
  }, [e]), null;
196
196
  }
197
- function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host: u = "https://www.highcharts.com", pathname: d, cssVariable: h, position: g = "sticky" }) {
197
+ function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host: l = "https://www.highcharts.com", pathname: d, cssVariable: h, position: g = "sticky" }) {
198
198
  let x = 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([]);
199
199
  n(() => {
200
200
  let e = P.current;
@@ -224,7 +224,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host
224
224
  if (!o.length) return;
225
225
  let e = I();
226
226
  H(e ? o.filter((t) => !t.id || !e.closed.includes(t.id)) : o);
227
- }, [u, o]);
227
+ }, [l, o]);
228
228
  let q = (e) => {
229
229
  if (e.preventDefault(), !(e.nativeEvent instanceof KeyboardEvent) || e.nativeEvent.code === "Enter" || e.nativeEvent.code === "Space") {
230
230
  let e = document.querySelector("main");
@@ -267,7 +267,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host
267
267
  }),
268
268
  /* @__PURE__ */ O(c, {
269
269
  className: A.logo,
270
- href: B("https://www.highcharts.com/", u),
270
+ href: B("https://www.highcharts.com/", l),
271
271
  children: /* @__PURE__ */ O(y, { showText: !M || w && !x })
272
272
  }),
273
273
  /* @__PURE__ */ O("ul", {
@@ -276,7 +276,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host
276
276
  variant: "plain",
277
277
  size: 300,
278
278
  as: c,
279
- href: B(t, u),
279
+ href: B(t, l),
280
280
  children: e
281
281
  }) }, n))
282
282
  }),
@@ -286,7 +286,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host
286
286
  /* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(_, {
287
287
  variant: "transparent",
288
288
  as: c,
289
- href: B("https://www.highcharts.com/chat/gpt/", u),
289
+ href: B("https://www.highcharts.com/chat/gpt/", l),
290
290
  children: [/* @__PURE__ */ O("span", {
291
291
  className: A.gpt,
292
292
  children: "Highcharts Assist"
@@ -298,7 +298,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host
298
298
  className: A.cta,
299
299
  variant: "success",
300
300
  as: c,
301
- href: B("https://shop.highcharts.com/", u),
301
+ href: B("https://shop.highcharts.com/", l),
302
302
  "aria-label": "Buy Now",
303
303
  children: [/* @__PURE__ */ O(f, {}), "Buy Now"]
304
304
  }) }),
@@ -306,8 +306,8 @@ function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host
306
306
  className: A.cta,
307
307
  variant: "brand",
308
308
  as: c,
309
- href: B("https://www.highcharts.com/download/", u),
310
- children: [/* @__PURE__ */ O(l, {}), "Try for Free"]
309
+ href: B("https://www.highcharts.com/download/", l),
310
+ children: [/* @__PURE__ */ O(u, {}), "Try for Free"]
311
311
  }) }),
312
312
  /* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(_, {
313
313
  variant: F ? "soft" : "transparent",
@@ -323,7 +323,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host
323
323
  !!t?.length && /* @__PURE__ */ O(K, {
324
324
  items: t,
325
325
  link: c,
326
- host: u,
326
+ host: l,
327
327
  pathname: d
328
328
  }),
329
329
  r
@@ -338,7 +338,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host
338
338
  className: A.container,
339
339
  children: [/* @__PURE__ */ O(c, {
340
340
  className: A.logo,
341
- href: B("https://www.highcharts.com/", u),
341
+ href: B("https://www.highcharts.com/", l),
342
342
  children: /* @__PURE__ */ O(y, { showText: !x })
343
343
  }), /* @__PURE__ */ k("ul", {
344
344
  className: A.buttons,
@@ -346,7 +346,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host
346
346
  /* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(_, {
347
347
  variant: "transparent",
348
348
  as: c,
349
- href: B("https://www.highcharts.com/chat/gpt/", u),
349
+ href: B("https://www.highcharts.com/chat/gpt/", l),
350
350
  children: [/* @__PURE__ */ O("span", {
351
351
  className: A.gpt,
352
352
  children: "Highcharts Assist"
@@ -363,14 +363,14 @@ function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host
363
363
  variant: "brand",
364
364
  fullWidth: !0,
365
365
  as: c,
366
- href: B("https://shop.highcharts.com/", u),
366
+ href: B("https://shop.highcharts.com/", l),
367
367
  children: [/* @__PURE__ */ O(f, {}), "Buy Now"]
368
368
  }) }), /* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(_, {
369
369
  variant: "success",
370
370
  fullWidth: !0,
371
371
  as: c,
372
- href: B("https://www.highcharts.com/download/", u),
373
- children: [/* @__PURE__ */ O(l, {}), "Try for Free"]
372
+ href: B("https://www.highcharts.com/download/", l),
373
+ children: [/* @__PURE__ */ O(u, {}), "Try for Free"]
374
374
  }) })]
375
375
  }),
376
376
  /* @__PURE__ */ O("ul", {
@@ -380,7 +380,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: c = "a", host
380
380
  size: 500,
381
381
  fullWidth: !0,
382
382
  as: c,
383
- href: B(t, u),
383
+ href: B(t, l),
384
384
  children: [n, e]
385
385
  }) }, r))
386
386
  })