highsoft-ui 1.0.140 → 1.0.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +75 -0
- package/README.md +56 -3
- package/dist/{Button-Dc8NFRWQ.js → Button-awCDIEXQ.js} +1 -1
- package/dist/{ButtonGroup-CYmrw7gQ.js → ButtonGroup-Cwn0djAz.js} +1 -1
- package/dist/{Checkbox-CErz7eBz.js → Checkbox-CrF45NBl.js} +1 -1
- package/dist/{CodeBlock-BreFXfK5.js → CodeBlock-BIdeK3gz.js} +5 -5
- package/dist/{CookiePolicyModal-DdXZ2d36.js → CookiePolicyModal-CTA02JGV.js} +2 -2
- package/dist/{CopyCode-DH9Jh7PD.js → CopyCode-QiPNPCQN.js} +3 -3
- package/dist/{Dropdown-DbXr3sb-.js → Dropdown-0Vn7yro7.js} +1 -1
- package/dist/{Footer-DtFs2Sgb.js → Footer-BlCmsIDd.js} +9 -9
- package/dist/{FooterBottom-Dtttgp4F.js → FooterBottom-CF5ctutk.js} +1 -1
- package/dist/{FooterHelp-COjjt6h7.js → FooterHelp-BthIJ2ye.js} +1 -1
- package/dist/{FooterLinks-DZ0uH7HO.js → FooterLinks-BBOOTdRf.js} +2 -2
- package/dist/{Header-C7MCiwiz.js → Header-DY4mJxHm.js} +26 -26
- package/dist/{InputGrouped-CIokpRn5.js → InputGrouped-DyxraUpb.js} +12 -12
- package/dist/InputSolo-DUdKtZjX.js +126 -0
- package/dist/{Label-BM4vL0vA.js → Label-DdXaM1Bo.js} +1 -1
- package/dist/{Logo-DTfFHBgU.js → Logo-Bz0G2G-k.js} +69 -92
- package/dist/{NewsletterSignup-Dw9YbhEh.js → NewsletterSignup-BMRnrbw8.js} +5 -5
- package/dist/{Notification-BgmhEw6w.js → Notification-DM31Uzfz.js} +3 -3
- package/dist/{PrefPanel-BG4jW8wc.js → PrefPanel-DDD8R_-o.js} +5 -5
- package/dist/{RoadmapDetails-DXxJNZh9.js → RoadmapDetails-DsLtsnqg.js} +6 -6
- package/dist/{Search-CpJ2XTLG.js → Search-CDOpNByw.js} +12 -12
- package/dist/SearchDropdown-D65lySm_.js +176 -0
- package/dist/{YoutubeModal-DGj2INF0.js → YoutubeModal-CZgbaRB6.js} +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CodeBlock/index.js +1 -1
- package/dist/components/CopyCode/index.js +1 -1
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/Footer/CookiePolicyModal.js +1 -1
- package/dist/components/Footer/FooterBottom.js +1 -1
- package/dist/components/Footer/FooterHelp.js +1 -1
- package/dist/components/Footer/FooterLinks.js +1 -1
- package/dist/components/Footer/YoutubeModal.js +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/Header/index.js +1 -1
- package/dist/components/InputGrouped/index.js +1 -1
- package/dist/components/InputSolo/index.js +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/Logo/index.js +1 -1
- package/dist/components/Modal/ModalContactFooter.js +2 -2
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/NewsletterSignup/index.js +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/PrefPanel/index.js +1 -1
- package/dist/components/RoadmapDetails/index.js +1 -1
- package/dist/components/Search/index.js +1 -1
- package/dist/components/SearchDropdown/index.js +2 -0
- package/dist/components/Sidebar/NavDisclosure.js +39 -0
- package/dist/components/Sidebar/NavGroup.js +74 -0
- package/dist/components/Sidebar/NavItem.js +28 -0
- package/dist/components/Sidebar/Sidebar.js +107 -0
- package/dist/components/Sidebar/SidebarLayout.js +95 -0
- package/dist/components/Sidebar/SidebarResizer.js +59 -0
- package/dist/components/Sidebar/context.js +18 -0
- package/dist/components/Sidebar/index.js +8 -0
- package/dist/{create-element-B4K6TXvP.js → create-element-CWTzyETe.js} +1 -1
- package/dist/{esm-CDDjSK4f.js → esm-VMwHsplm.js} +26 -12
- package/dist/highsoft-ui.css +1 -1
- package/dist/lib/components/InputSolo/index.d.ts +11 -0
- package/dist/lib/components/Logo/index.d.ts +6 -1
- package/dist/lib/components/SearchDropdown/index.d.ts +69 -0
- package/dist/lib/components/Sidebar/NavDisclosure.d.ts +14 -0
- package/dist/lib/components/Sidebar/NavGroup.d.ts +25 -0
- package/dist/lib/components/Sidebar/NavItem.d.ts +15 -0
- package/dist/lib/components/Sidebar/Sidebar.d.ts +46 -0
- package/dist/lib/components/Sidebar/SidebarLayout.d.ts +41 -0
- package/dist/lib/components/Sidebar/SidebarResizer.d.ts +6 -0
- package/dist/lib/components/Sidebar/context.d.ts +29 -0
- package/dist/lib/components/Sidebar/index.d.ts +13 -0
- package/dist/lib/main.d.ts +5 -1
- package/dist/main.js +36 -27
- package/dist/{prism-light-hml_uDoc.js → prism-light-B3yrtgki.js} +1 -1
- package/dist/styles.module-Bd4HbnpA.js +42 -0
- package/package.json +13 -2
- package/dist/InputSolo-2RPRX0wM.js +0 -123
package/CLAUDE.md
CHANGED
|
@@ -208,9 +208,41 @@ The foundational layout component. Use it instead of raw `<div>` with inline sty
|
|
|
208
208
|
```
|
|
209
209
|
|
|
210
210
|
### InputSolo
|
|
211
|
+
Standalone, self-bordered text field with a floating label, help text, and error/success states.
|
|
211
212
|
```tsx
|
|
212
213
|
<InputSolo label="Email" placeholder="you@example.com" />
|
|
214
|
+
<InputSolo label="Search" size={300} iconLeft={<Icon name="search-md" />} />
|
|
215
|
+
<InputSolo label="API key" hasError helpText="That key isn't valid." />
|
|
213
216
|
```
|
|
217
|
+
- **`size`:** `100`, `200` (default), `300`
|
|
218
|
+
- **`variant`:** `"default"`, `"white"`
|
|
219
|
+
- **`iconLeft`:** icon rendered inside the field (not next to the label — that's `InputGrouped`'s `labelIcon`)
|
|
220
|
+
- **`hasError` / `success`:** state styling; pair with `helpText`
|
|
221
|
+
|
|
222
|
+
### SearchDropdown
|
|
223
|
+
Combobox / autocomplete: a search field (built on `InputSolo`) with a filtered, keyboard-navigable results popover and match highlighting.
|
|
224
|
+
```tsx
|
|
225
|
+
const items = [
|
|
226
|
+
{ id: 'chart.type', label: 'chart.type', kind: 'option' },
|
|
227
|
+
{ id: 'series.data', label: 'series.data', kind: 'option' },
|
|
228
|
+
]
|
|
229
|
+
|
|
230
|
+
<SearchDropdown
|
|
231
|
+
items={items}
|
|
232
|
+
placeholder="Search options…"
|
|
233
|
+
onSelect={(item) => router.push(`/api/${item.id}`)}
|
|
234
|
+
/>
|
|
235
|
+
|
|
236
|
+
// Server-side / async filtering — disable built-in filtering and feed results:
|
|
237
|
+
<SearchDropdown items={results} filter={false} onQueryChange={setQuery} mono />
|
|
238
|
+
```
|
|
239
|
+
- **`items`:** `SearchDropdownItem[]` — each `{ id, label, kind?, iconLeft?, disabled?, highlightFrom? }`
|
|
240
|
+
- **`onSelect(item)`:** called when a result is chosen; **`onQueryChange(query)`:** called as the user types
|
|
241
|
+
- **`filter`:** `true` (default, built-in substring match), `false` (you filter — pair with `onQueryChange`), or a custom `(item, query) => boolean`
|
|
242
|
+
- **`value` / `defaultValue`:** controlled / uncontrolled query
|
|
243
|
+
- **`size`:** `100` | `200` (default) | `300`; **`variant`:** `"default"` | `"white"` (forwarded to `InputSolo`)
|
|
244
|
+
- **`mono`:** monospace row labels (handy for code/API names); **`minChars`:** chars before the popover opens (default `1`)
|
|
245
|
+
- **`iconLeft`, `label`, `placeholder`, `emptyState`, `maxHeight`** also supported
|
|
214
246
|
|
|
215
247
|
### InputGrouped / SelectGrouped / FormGroup / FormRow
|
|
216
248
|
```tsx
|
|
@@ -284,6 +316,49 @@ const a = 2 // [!code ++]`} />
|
|
|
284
316
|
<Notification variant="danger" title="Error" message="Something went wrong" />
|
|
285
317
|
```
|
|
286
318
|
|
|
319
|
+
### Sidebar (SidebarLayout, Sidebar, NavItem, NavGroup, …)
|
|
320
|
+
A composable, resizable sidebar-navigation shell for docs/app layouts. The
|
|
321
|
+
`<SidebarLayout>` is a two-column grid that owns the resize width and the mobile
|
|
322
|
+
off-canvas drawer; compose the rest inside it.
|
|
323
|
+
|
|
324
|
+
```tsx
|
|
325
|
+
import {
|
|
326
|
+
SidebarLayout, SidebarMain, Sidebar, SidebarHeader, SidebarBody,
|
|
327
|
+
SidebarSection, NavItem, NavGroup, NavDisclosure
|
|
328
|
+
} from 'highsoft-ui'
|
|
329
|
+
import { BarChart01 } from '@untitled-ui/icons-react'
|
|
330
|
+
|
|
331
|
+
<SidebarLayout storageKey="docs.sidebarWidth">
|
|
332
|
+
<Sidebar aria-label="Docs navigation">
|
|
333
|
+
<SidebarHeader>{/* logo, product switcher, search */}</SidebarHeader>
|
|
334
|
+
<SidebarBody>
|
|
335
|
+
<SidebarSection label="Getting started">
|
|
336
|
+
<NavItem href="/overview" active iconLeft={<BarChart01 />}>Overview</NavItem>
|
|
337
|
+
<NavItem href="/install">Installation</NavItem>
|
|
338
|
+
</SidebarSection>
|
|
339
|
+
<SidebarSection label="Components" collapsible>
|
|
340
|
+
<NavGroup label="Inputs" defaultOpen>
|
|
341
|
+
<NavItem href="/inputs/text">Text field</NavItem>
|
|
342
|
+
<NavItem href="/inputs/select">Select</NavItem>
|
|
343
|
+
</NavGroup>
|
|
344
|
+
<NavItem href="/button">Button</NavItem>
|
|
345
|
+
</SidebarSection>
|
|
346
|
+
</SidebarBody>
|
|
347
|
+
</Sidebar>
|
|
348
|
+
<SidebarMain>{children}</SidebarMain>
|
|
349
|
+
</SidebarLayout>
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
- **`SidebarLayout`** — the grid shell. `defaultWidth`/`minWidth`/`maxWidth` (drag-to-resize), `storageKey` (persist width), `resizable` (default `true`), `fill` (default `true` — grows to fill a flex/grid parent), `mobileTriggerLabel` (default `"Menu"`). Owns the mobile drawer (sticky trigger, backdrop, Escape).
|
|
353
|
+
- **`SidebarMain`** — the fluid content column beside the sidebar.
|
|
354
|
+
- **`Sidebar`** — the `<aside>`; becomes the off-canvas drawer on mobile and auto-renders the resize handle + close button.
|
|
355
|
+
- **`SidebarHeader` / `SidebarBody`** — fixed top region / scrollable body.
|
|
356
|
+
- **`SidebarSection`** — labelled group. `collapsible` surfaces a "Minimize" control that collapses its open `NavGroup`s; `action` slots a custom control instead.
|
|
357
|
+
- **`NavItem`** — polymorphic nav link (`as`, default `<a>`); `active`, `icon`. Closes the mobile drawer on click. Open parents pin to the top while their list scrolls.
|
|
358
|
+
- **`NavGroup`** — expandable tree node (`defaultOpen`, controlled `open`/`onOpenChange`, `active` to tint the guide-line on the active path).
|
|
359
|
+
- **`NavDisclosure`** — collapses behind a tap-toggle on narrow screens, inert on desktop.
|
|
360
|
+
- The sidebar imposes **no background** of its own — set `--hs-sidebar-bg` (the mobile drawer keeps an opaque fallback). Colours use `--HS-*` tokens, so dark mode is automatic.
|
|
361
|
+
|
|
287
362
|
## Hooks
|
|
288
363
|
|
|
289
364
|
### useSuccessFlash
|
package/README.md
CHANGED
|
@@ -1,13 +1,44 @@
|
|
|
1
1
|
# Highsoft UI
|
|
2
2
|
|
|
3
|
+
The Highsoft design system — a React component library, design tokens, a Storybook component explorer, and the Astro docs site that documents them.
|
|
4
|
+
|
|
5
|
+
**Live**
|
|
6
|
+
|
|
7
|
+
- Design site — https://design.highdev.dev
|
|
8
|
+
- Storybook (component explorer) — https://storybook.highdev.dev
|
|
9
|
+
|
|
10
|
+
> The complete reference lives in [`CLAUDE.md`](./CLAUDE.md): every component's props, the semantic token rules, and the do's & don'ts. It ships inside the published package too.
|
|
11
|
+
|
|
12
|
+
## What's in this repo
|
|
13
|
+
|
|
14
|
+
| Path | What it is | Build | Ships to |
|
|
15
|
+
| --- | --- | --- | --- |
|
|
16
|
+
| `lib/` | The component library (the published package) | `npm run build` → `dist/` | npm — `highsoft-ui` |
|
|
17
|
+
| `src/` | The Astro docs site (multi-page, React islands) | `npm run build:app` → `dist-app/` | design.highdev.dev |
|
|
18
|
+
| `stories/` | Storybook stories | `npm run build-storybook` | storybook.highdev.dev |
|
|
19
|
+
|
|
20
|
+
`lib/` is the source of truth; the docs site and Storybook both consume it directly (via the `highsoft-ui` alias), so a change to a component shows up in all three.
|
|
21
|
+
|
|
22
|
+
## For AI agents / LLMs
|
|
23
|
+
|
|
24
|
+
The design system is self-describing for coding agents. A prompt like _"use guidelines from design.highdev.dev"_ should land here:
|
|
25
|
+
|
|
26
|
+
- `/llms.txt` — concise guide: install, core rules, and a **"which component when"** decision matrix
|
|
27
|
+
- `/llms-full.txt` — the full guide **plus the complete component API**
|
|
28
|
+
- `/api.json` — machine-readable component API (props, types, defaults, enums)
|
|
29
|
+
- `/guidelines` → redirects to `/llms.txt`
|
|
30
|
+
|
|
31
|
+
`/llms-full.txt` and `/api.json` are **generated from `lib/` source** by [`scripts/extract-component-api.mjs`](./scripts/extract-component-api.mjs) (runs on `predev` / `prebuild:app`), so they can't drift from the real props. Every page also advertises `/llms.txt` via a `<link rel="alternate">` in its `<head>`.
|
|
32
|
+
|
|
3
33
|
## Development
|
|
4
34
|
|
|
5
35
|
```sh
|
|
6
36
|
npm i
|
|
7
|
-
npm run dev
|
|
37
|
+
npm run dev # docs site (Astro) → http://localhost:4321
|
|
38
|
+
npm run storybook # component explorer → http://localhost:6006
|
|
8
39
|
```
|
|
9
40
|
|
|
10
|
-
|
|
41
|
+
Both run against the live library in `lib/`, so editing a component hot-reloads here.
|
|
11
42
|
|
|
12
43
|
## Usage
|
|
13
44
|
|
|
@@ -17,7 +48,7 @@ This will run the test application located in `src` that uses the component libr
|
|
|
17
48
|
npm i highsoft-ui
|
|
18
49
|
```
|
|
19
50
|
|
|
20
|
-
2. Load the
|
|
51
|
+
2. Load the CSS — `highsoft-ui/css` bundles the component styles, resets **and** the design tokens (tokens drive the colors and dark mode):
|
|
21
52
|
|
|
22
53
|
```scss
|
|
23
54
|
@import 'highsoft-ui/css';
|
|
@@ -31,6 +62,28 @@ import { Button } from 'highsoft-ui';
|
|
|
31
62
|
<Button variant="brand" size={300}>Hello</Button>
|
|
32
63
|
```
|
|
33
64
|
|
|
65
|
+
### Design tokens only
|
|
66
|
+
|
|
67
|
+
Need just the tokens — plain CSS/SCSS, WordPress blocks, no React? Install the tokens package on its own:
|
|
68
|
+
|
|
69
|
+
```sh
|
|
70
|
+
npm i highsoft-design-tokens
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
```scss
|
|
74
|
+
// the CSS custom properties — drives the colors and dark mode
|
|
75
|
+
@import 'highsoft-design-tokens/dist/css/tokens.css';
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
It also ships SCSS mixins, e.g. the link styles:
|
|
79
|
+
|
|
80
|
+
```scss
|
|
81
|
+
@use 'highsoft-design-tokens/dist/scss/mixins/links' as *;
|
|
82
|
+
|
|
83
|
+
a { @include link; } // subtle underline
|
|
84
|
+
a.fancy { @include link(fancy); } // animated slide-in underline
|
|
85
|
+
```
|
|
86
|
+
|
|
34
87
|
### PHP
|
|
35
88
|
|
|
36
89
|
How to use components that need hydration (running client-side react) in PHP.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BWCAbrjV.js";
|
|
2
|
-
import {
|
|
2
|
+
import { C as t } from "./esm-VMwHsplm.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 {
|
|
4
|
-
import { t as a } from "./Button-
|
|
3
|
+
import { P as r, R as i } from "./esm-VMwHsplm.js";
|
|
4
|
+
import { t as a } from "./Button-awCDIEXQ.js";
|
|
5
5
|
import { t as o } from "./FrameworkIcon-Ds6WrxO0.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-
|
|
26
|
-
import("./create-element-
|
|
25
|
+
import("./prism-light-B3yrtgki.js"),
|
|
26
|
+
import("./create-element-CWTzyETe.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 ?
|
|
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-
|
|
2
|
-
import { t } from "./Button-
|
|
1
|
+
import { t as e } from "./esm-VMwHsplm.js";
|
|
2
|
+
import { t } from "./Button-awCDIEXQ.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 {
|
|
4
|
-
import { t as a } from "./Button-
|
|
3
|
+
import { P as r, R as i } from "./esm-VMwHsplm.js";
|
|
4
|
+
import { t as a } from "./Button-awCDIEXQ.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 ?
|
|
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 {
|
|
2
|
+
import { R as t } from "./esm-VMwHsplm.js";
|
|
3
3
|
import { t as n } from "./Icon-VeXJMj8Q.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 ee, i as b, n as te, r as x, t as S } from "./dist-CE9LFbij.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as e } from "./utils-K9S_6_Eq.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as r } from "./Button-
|
|
2
|
+
import { F as t, R as n } from "./esm-VMwHsplm.js";
|
|
3
|
+
import { t as r } from "./Button-awCDIEXQ.js";
|
|
4
4
|
import { t as i } from "./Container-BDssaLig.js";
|
|
5
5
|
import { t as a } from "./DiscordInvite-CLYxexdH.js";
|
|
6
|
-
import { t as o } from "./Logo-
|
|
7
|
-
import { t as s } from "./NewsletterSignup-
|
|
8
|
-
import { t as c } from "./FooterBottom-
|
|
9
|
-
import { t as l } from "./FooterHelp-
|
|
10
|
-
import { t as u } from "./FooterLinks-
|
|
11
|
-
import { t as d } from "./YoutubeModal-
|
|
6
|
+
import { t as o } from "./Logo-Bz0G2G-k.js";
|
|
7
|
+
import { t as s } from "./NewsletterSignup-BMRnrbw8.js";
|
|
8
|
+
import { t as c } from "./FooterBottom-CF5ctutk.js";
|
|
9
|
+
import { t as l } from "./FooterHelp-BthIJ2ye.js";
|
|
10
|
+
import { t as u } from "./FooterLinks-BBOOTdRf.js";
|
|
11
|
+
import { t as d } from "./YoutubeModal-CZgbaRB6.js";
|
|
12
12
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
13
13
|
var m = {
|
|
14
14
|
discordCard: "_4W4F3q_discordCard",
|
|
@@ -29,7 +29,7 @@ function g() {
|
|
|
29
29
|
return /* @__PURE__ */ p(r, {
|
|
30
30
|
variant: "neutral",
|
|
31
31
|
onClick: () => i(o),
|
|
32
|
-
children: [o, f(a ?
|
|
32
|
+
children: [o, f(a ? n : t, {})]
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
function _({ link: e = "a", host: t = "https://www.highcharts.com" }) {
|
|
@@ -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-
|
|
4
|
+
import { t as d } from "./CookiePolicyModal-CTA02JGV.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 { f as n, s as r } from "./esm-
|
|
2
|
+
import { f as n, s as r } from "./esm-VMwHsplm.js";
|
|
3
3
|
import { t as i } from "./Icon-VeXJMj8Q.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 {
|
|
2
|
+
import { T as t } from "./esm-VMwHsplm.js";
|
|
3
3
|
import { t as n } from "./Icon-VeXJMj8Q.js";
|
|
4
4
|
import { t as r } from "./Typography-AvvBRu-u.js";
|
|
5
|
-
import { t as i } from "./Label-
|
|
5
|
+
import { t as i } from "./Label-DdXaM1Bo.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 {
|
|
4
|
-
import { t as _ } from "./Button-
|
|
3
|
+
import { V as o, W as s, b as c, c as l, g as u, k as d, l as f, r as p, t as m, x as h, z as g } from "./esm-VMwHsplm.js";
|
|
4
|
+
import { t as _ } from "./Button-awCDIEXQ.js";
|
|
5
5
|
import { t as v } from "./Container-BDssaLig.js";
|
|
6
|
-
import { t as y } from "./Logo-
|
|
7
|
-
import { t as b } from "./PrefPanel-
|
|
8
|
-
import { t as x } from "./Search-
|
|
9
|
-
import { t as S } from "./Label-
|
|
10
|
-
import { t as C } from "./Notification-
|
|
6
|
+
import { t as y } from "./Logo-Bz0G2G-k.js";
|
|
7
|
+
import { t as b } from "./PrefPanel-DDD8R_-o.js";
|
|
8
|
+
import { t as x } from "./Search-CDOpNByw.js";
|
|
9
|
+
import { t as S } from "./Label-DdXaM1Bo.js";
|
|
10
|
+
import { t as C } from "./Notification-DM31Uzfz.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,22 +75,22 @@ var A = {
|
|
|
75
75
|
{
|
|
76
76
|
title: "Products",
|
|
77
77
|
url: "https://www.highcharts.com/products/",
|
|
78
|
-
icon: /* @__PURE__ */ O(
|
|
78
|
+
icon: /* @__PURE__ */ O(g, {})
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
title: "Demos",
|
|
82
82
|
url: "https://www.highcharts.com/demo",
|
|
83
|
-
icon: /* @__PURE__ */ O(
|
|
83
|
+
icon: /* @__PURE__ */ O(u, {})
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
title: "Support",
|
|
87
87
|
url: "https://www.highcharts.com/support/",
|
|
88
|
-
icon: /* @__PURE__ */ O(
|
|
88
|
+
icon: /* @__PURE__ */ O(c, {})
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
title: "Resources",
|
|
92
92
|
url: "https://www.highcharts.com/resources/",
|
|
93
|
-
icon: /* @__PURE__ */ O(
|
|
93
|
+
icon: /* @__PURE__ */ O(d, {})
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
title: "Pricing",
|
|
@@ -100,7 +100,7 @@ var A = {
|
|
|
100
100
|
{
|
|
101
101
|
title: "Blog",
|
|
102
102
|
url: "https://www.highcharts.com/blog/home/",
|
|
103
|
-
icon: /* @__PURE__ */ O(
|
|
103
|
+
icon: /* @__PURE__ */ O(s, {})
|
|
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:
|
|
196
|
+
function X({ subItems: t, children: r, notifications: o = J, link: s = "a", host: c = "https://www.highcharts.com", pathname: u, cssVariable: d, position: g = "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 = "",
|
|
203
|
-
e.style.transform = "",
|
|
202
|
+
if (g === "static") return e.style.transform = "", d && document.documentElement.style.setProperty("--header-bottom", `${r}px`), () => {
|
|
203
|
+
e.style.transform = "", d && 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)`,
|
|
206
|
+
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
207
|
};
|
|
208
208
|
l();
|
|
209
209
|
let u = () => {
|
|
@@ -211,10 +211,10 @@ 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 = "",
|
|
214
|
+
window.removeEventListener("scroll", u), c !== null && cancelAnimationFrame(c), e.style.transform = "", d && document.documentElement.style.removeProperty("--header-bottom");
|
|
215
215
|
};
|
|
216
216
|
}, [
|
|
217
|
-
|
|
217
|
+
d,
|
|
218
218
|
N,
|
|
219
219
|
V.length,
|
|
220
220
|
g,
|
|
@@ -289,7 +289,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: s = "a", host
|
|
|
289
289
|
children: [/* @__PURE__ */ O("span", {
|
|
290
290
|
className: A.gpt,
|
|
291
291
|
children: "Highcharts Assist"
|
|
292
|
-
}), /* @__PURE__ */ O(
|
|
292
|
+
}), /* @__PURE__ */ O(l, {})]
|
|
293
293
|
}) }),
|
|
294
294
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(x, {}) }),
|
|
295
295
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(b, {}) }),
|
|
@@ -299,20 +299,20 @@ 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(
|
|
302
|
+
children: [/* @__PURE__ */ O(f, {}), "Buy Now"]
|
|
303
303
|
}) }),
|
|
304
304
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(_, {
|
|
305
305
|
className: A.cta,
|
|
306
306
|
variant: "brand",
|
|
307
307
|
as: s,
|
|
308
308
|
href: B("https://www.highcharts.com/download/", c),
|
|
309
|
-
children: [/* @__PURE__ */ O(
|
|
309
|
+
children: [/* @__PURE__ */ O(p, {}), "Try for Free"]
|
|
310
310
|
}) }),
|
|
311
311
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(_, {
|
|
312
312
|
variant: F ? "soft" : "transparent",
|
|
313
313
|
className: A.menu,
|
|
314
314
|
onClick: X,
|
|
315
|
-
children: [F ? "Close" : "Menu", O(F ?
|
|
315
|
+
children: [F ? "Close" : "Menu", O(F ? m : h, {})]
|
|
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:
|
|
326
|
+
pathname: u
|
|
327
327
|
}),
|
|
328
328
|
r
|
|
329
329
|
]
|
|
@@ -349,7 +349,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: s = "a", host
|
|
|
349
349
|
children: [/* @__PURE__ */ O("span", {
|
|
350
350
|
className: A.gpt,
|
|
351
351
|
children: "Highcharts Assist"
|
|
352
|
-
}), /* @__PURE__ */ O(
|
|
352
|
+
}), /* @__PURE__ */ O(l, {})]
|
|
353
353
|
}) }),
|
|
354
354
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(x, {}) }),
|
|
355
355
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(b, {}) })
|
|
@@ -363,13 +363,13 @@ 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(
|
|
366
|
+
children: [/* @__PURE__ */ O(f, {}), "Buy Now"]
|
|
367
367
|
}) }), /* @__PURE__ */ O("li", { children: /* @__PURE__ */ k(_, {
|
|
368
368
|
variant: "success",
|
|
369
369
|
fullWidth: !0,
|
|
370
370
|
as: s,
|
|
371
371
|
href: B("https://www.highcharts.com/download/", c),
|
|
372
|
-
children: [/* @__PURE__ */ O(
|
|
372
|
+
children: [/* @__PURE__ */ O(p, {}), "Try for Free"]
|
|
373
373
|
}) })]
|
|
374
374
|
}),
|
|
375
375
|
/* @__PURE__ */ O("ul", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BWCAbrjV.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as i } from "./Button-
|
|
2
|
+
import { I as t, M as n, j as r } from "./esm-VMwHsplm.js";
|
|
3
|
+
import { t as i } from "./Button-awCDIEXQ.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 = {
|
|
@@ -41,7 +41,7 @@ function m({ children: t, className: n }) {
|
|
|
41
41
|
children: t
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
var h = a(({ label:
|
|
44
|
+
var h = a(({ label: t, 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, onChange: E, value: D, defaultValue: O, ...k }, A) => {
|
|
45
45
|
let j = c(null), M = A || j, [N, P] = l(!1), [F, I] = l(!1), [L, R] = l(!1), z = C === "password", [B, V] = l(O === void 0 ? "" : String(O)), H = D !== void 0, U = H ? String(D).length > 0 : B.length > 0, W = o((e) => {
|
|
46
46
|
P(!0), w?.(e);
|
|
47
47
|
}, [w]), G = o((e) => {
|
|
@@ -81,14 +81,14 @@ var h = a(({ label: n, required: a = !1, helpText: p, showHelpText: m = !1, labe
|
|
|
81
81
|
children: [/* @__PURE__ */ d("div", {
|
|
82
82
|
className: f.leftContent,
|
|
83
83
|
children: [
|
|
84
|
-
|
|
84
|
+
t && /* @__PURE__ */ d("div", {
|
|
85
85
|
className: f.labelRow,
|
|
86
86
|
children: [h && /* @__PURE__ */ u("span", {
|
|
87
87
|
className: f.labelIcon,
|
|
88
88
|
children: h
|
|
89
89
|
}), /* @__PURE__ */ d("span", {
|
|
90
90
|
className: f.label,
|
|
91
|
-
children: [
|
|
91
|
+
children: [t, a && /* @__PURE__ */ u("span", {
|
|
92
92
|
className: f.required,
|
|
93
93
|
children: " *"
|
|
94
94
|
})]
|
|
@@ -99,7 +99,7 @@ var h = a(({ label: n, required: a = !1, helpText: p, showHelpText: m = !1, labe
|
|
|
99
99
|
type: Y,
|
|
100
100
|
className: e(f.inputElement, x),
|
|
101
101
|
disabled: b,
|
|
102
|
-
"aria-label":
|
|
102
|
+
"aria-label": t,
|
|
103
103
|
"aria-required": a,
|
|
104
104
|
"aria-invalid": v,
|
|
105
105
|
value: D,
|
|
@@ -130,7 +130,7 @@ var h = a(({ label: n, required: a = !1, helpText: p, showHelpText: m = !1, labe
|
|
|
130
130
|
e.stopPropagation(), R((e) => !e);
|
|
131
131
|
},
|
|
132
132
|
"aria-label": L ? "Hide password" : "Show password",
|
|
133
|
-
children: u(L ?
|
|
133
|
+
children: u(L ? r : n, {})
|
|
134
134
|
}),
|
|
135
135
|
_
|
|
136
136
|
]
|
|
@@ -139,7 +139,7 @@ var h = a(({ label: n, required: a = !1, helpText: p, showHelpText: m = !1, labe
|
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
141
|
h.displayName = "InputGrouped";
|
|
142
|
-
var g = a(({ label:
|
|
142
|
+
var g = a(({ label: n, required: r = !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, onChange: S, value: C, defaultValue: w, ...T }, E) => {
|
|
143
143
|
let D = c(null), O = E || D, [k, A] = l(!1), [j, M] = l(!1), [N, P] = l(w === void 0 ? "" : String(w)), F = C !== void 0, I = F ? String(C).length > 0 : N.length > 0, L = o((e) => {
|
|
144
144
|
A(!0), b?.(e);
|
|
145
145
|
}, [b]), R = o((e) => {
|
|
@@ -172,14 +172,14 @@ var g = a(({ label: t, required: r = !1, helpText: i, showHelpText: a = !1, labe
|
|
|
172
172
|
children: [/* @__PURE__ */ d("div", {
|
|
173
173
|
className: f.leftContent,
|
|
174
174
|
children: [
|
|
175
|
-
|
|
175
|
+
n && /* @__PURE__ */ d("div", {
|
|
176
176
|
className: f.labelRow,
|
|
177
177
|
children: [s && /* @__PURE__ */ u("span", {
|
|
178
178
|
className: f.labelIcon,
|
|
179
179
|
children: s
|
|
180
180
|
}), /* @__PURE__ */ d("span", {
|
|
181
181
|
className: f.label,
|
|
182
|
-
children: [
|
|
182
|
+
children: [n, r && /* @__PURE__ */ u("span", {
|
|
183
183
|
className: f.required,
|
|
184
184
|
children: " *"
|
|
185
185
|
})]
|
|
@@ -189,7 +189,7 @@ var g = a(({ label: t, required: r = !1, helpText: i, showHelpText: a = !1, labe
|
|
|
189
189
|
ref: O,
|
|
190
190
|
className: e(f.inputElement, f.selectElement, g),
|
|
191
191
|
disabled: h,
|
|
192
|
-
"aria-label":
|
|
192
|
+
"aria-label": n,
|
|
193
193
|
"aria-required": r,
|
|
194
194
|
"aria-invalid": p,
|
|
195
195
|
value: C,
|
|
@@ -214,7 +214,7 @@ var g = a(({ label: t, required: r = !1, helpText: i, showHelpText: a = !1, labe
|
|
|
214
214
|
className: f.rightContent,
|
|
215
215
|
children: /* @__PURE__ */ u("span", {
|
|
216
216
|
className: e(f.iconRight, f.chevron),
|
|
217
|
-
children: /* @__PURE__ */ u(
|
|
217
|
+
children: /* @__PURE__ */ u(t, {})
|
|
218
218
|
})
|
|
219
219
|
})]
|
|
220
220
|
})
|