highsoft-ui 1.0.140 → 1.0.141

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 (60) hide show
  1. package/README.md +56 -3
  2. package/dist/{Button-Dc8NFRWQ.js → Button-awCDIEXQ.js} +1 -1
  3. package/dist/{ButtonGroup-CYmrw7gQ.js → ButtonGroup-Cwn0djAz.js} +1 -1
  4. package/dist/{Checkbox-CErz7eBz.js → Checkbox-CrF45NBl.js} +1 -1
  5. package/dist/{CodeBlock-BreFXfK5.js → CodeBlock-BIdeK3gz.js} +5 -5
  6. package/dist/{CookiePolicyModal-DdXZ2d36.js → CookiePolicyModal-CTA02JGV.js} +2 -2
  7. package/dist/{CopyCode-DH9Jh7PD.js → CopyCode-QiPNPCQN.js} +3 -3
  8. package/dist/{Dropdown-DbXr3sb-.js → Dropdown-0Vn7yro7.js} +1 -1
  9. package/dist/{Footer-DtFs2Sgb.js → Footer-BlCmsIDd.js} +9 -9
  10. package/dist/{FooterBottom-Dtttgp4F.js → FooterBottom-CF5ctutk.js} +1 -1
  11. package/dist/{FooterHelp-COjjt6h7.js → FooterHelp-BthIJ2ye.js} +1 -1
  12. package/dist/{FooterLinks-DZ0uH7HO.js → FooterLinks-BBOOTdRf.js} +2 -2
  13. package/dist/{Header-C7MCiwiz.js → Header-DY4mJxHm.js} +26 -26
  14. package/dist/{InputGrouped-CIokpRn5.js → InputGrouped-DyxraUpb.js} +12 -12
  15. package/dist/InputSolo-DUdKtZjX.js +126 -0
  16. package/dist/{Label-BM4vL0vA.js → Label-DdXaM1Bo.js} +1 -1
  17. package/dist/{Logo-DTfFHBgU.js → Logo-Bz0G2G-k.js} +69 -92
  18. package/dist/{NewsletterSignup-Dw9YbhEh.js → NewsletterSignup-BMRnrbw8.js} +5 -5
  19. package/dist/{Notification-BgmhEw6w.js → Notification-DM31Uzfz.js} +3 -3
  20. package/dist/{PrefPanel-BG4jW8wc.js → PrefPanel-DDD8R_-o.js} +5 -5
  21. package/dist/{RoadmapDetails-DXxJNZh9.js → RoadmapDetails-DsLtsnqg.js} +6 -6
  22. package/dist/{Search-CpJ2XTLG.js → Search-CDOpNByw.js} +12 -12
  23. package/dist/SearchDropdown-D65lySm_.js +176 -0
  24. package/dist/{YoutubeModal-DGj2INF0.js → YoutubeModal-CZgbaRB6.js} +1 -1
  25. package/dist/components/Button/index.js +1 -1
  26. package/dist/components/ButtonGroup/index.js +1 -1
  27. package/dist/components/Checkbox/index.js +1 -1
  28. package/dist/components/CodeBlock/index.js +1 -1
  29. package/dist/components/CopyCode/index.js +1 -1
  30. package/dist/components/Dropdown/index.js +1 -1
  31. package/dist/components/Footer/CookiePolicyModal.js +1 -1
  32. package/dist/components/Footer/FooterBottom.js +1 -1
  33. package/dist/components/Footer/FooterHelp.js +1 -1
  34. package/dist/components/Footer/FooterLinks.js +1 -1
  35. package/dist/components/Footer/YoutubeModal.js +1 -1
  36. package/dist/components/Footer/index.js +1 -1
  37. package/dist/components/Header/index.js +1 -1
  38. package/dist/components/InputGrouped/index.js +1 -1
  39. package/dist/components/InputSolo/index.js +1 -1
  40. package/dist/components/Label/index.js +1 -1
  41. package/dist/components/Logo/index.js +1 -1
  42. package/dist/components/Modal/ModalContactFooter.js +2 -2
  43. package/dist/components/Modal/index.js +2 -2
  44. package/dist/components/NewsletterSignup/index.js +1 -1
  45. package/dist/components/Notification/index.js +1 -1
  46. package/dist/components/PrefPanel/index.js +1 -1
  47. package/dist/components/RoadmapDetails/index.js +1 -1
  48. package/dist/components/Search/index.js +1 -1
  49. package/dist/components/SearchDropdown/index.js +2 -0
  50. package/dist/{create-element-B4K6TXvP.js → create-element-CWTzyETe.js} +1 -1
  51. package/dist/{esm-CDDjSK4f.js → esm-VMwHsplm.js} +26 -12
  52. package/dist/highsoft-ui.css +1 -1
  53. package/dist/lib/components/InputSolo/index.d.ts +11 -0
  54. package/dist/lib/components/Logo/index.d.ts +6 -1
  55. package/dist/lib/components/SearchDropdown/index.d.ts +69 -0
  56. package/dist/lib/main.d.ts +3 -1
  57. package/dist/main.js +28 -27
  58. package/dist/{prism-light-hml_uDoc.js → prism-light-B3yrtgki.js} +1 -1
  59. package/package.json +13 -2
  60. package/dist/InputSolo-2RPRX0wM.js +0 -123
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
- This will run the test application located in `src` that uses the component library located in `lib`.
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 the css somehow:
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 { C as t } from "./esm-CDDjSK4f.js";
2
+ import { w as t } from "./esm-VMwHsplm.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-Dc8NFRWQ.js";
2
+ import { t } from "./Button-awCDIEXQ.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 { S as t } from "./esm-CDDjSK4f.js";
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 { L as r, N as i } from "./esm-CDDjSK4f.js";
4
- import { t as a } from "./Button-Dc8NFRWQ.js";
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-hml_uDoc.js"),
26
- import("./create-element-B4K6TXvP.js").then((e) => e.n),
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 ? 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-CDDjSK4f.js";
2
- import { t } from "./Button-Dc8NFRWQ.js";
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 { L as r, N as i } from "./esm-CDDjSK4f.js";
4
- import { t as a } from "./Button-Dc8NFRWQ.js";
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 ? 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 { L as t } from "./esm-CDDjSK4f.js";
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 { L as t, P as n } from "./esm-CDDjSK4f.js";
3
- import { t as r } from "./Button-Dc8NFRWQ.js";
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-DTfFHBgU.js";
7
- import { t as s } from "./NewsletterSignup-Dw9YbhEh.js";
8
- import { t as c } from "./FooterBottom-Dtttgp4F.js";
9
- import { t as l } from "./FooterHelp-COjjt6h7.js";
10
- import { t as u } from "./FooterLinks-DZ0uH7HO.js";
11
- import { t as d } from "./YoutubeModal-DGj2INF0.js";
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 ? t : n, {})]
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-DdXZ2d36.js";
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-CDDjSK4f.js";
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 { w as t } from "./esm-CDDjSK4f.js";
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-BM4vL0vA.js";
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 { B as o, O as s, R as c, U as l, b as u, c as d, h as f, l as p, r as m, t as h, y as g } from "./esm-CDDjSK4f.js";
4
- import { t as _ } from "./Button-Dc8NFRWQ.js";
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-DTfFHBgU.js";
7
- import { t as b } from "./PrefPanel-BG4jW8wc.js";
8
- import { t as x } from "./Search-CpJ2XTLG.js";
9
- import { t as S } from "./Label-BM4vL0vA.js";
10
- import { t as C } from "./Notification-BgmhEw6w.js";
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(c, {})
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(f, {})
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(g, {})
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(s, {})
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(l, {})
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: l, cssVariable: f, 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: 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 = "", f && document.documentElement.style.setProperty("--header-bottom", `${r}px`), () => {
203
- e.style.transform = "", f && document.documentElement.style.removeProperty("--header-bottom");
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)`, f && 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)`, 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 = "", f && document.documentElement.style.removeProperty("--header-bottom");
214
+ window.removeEventListener("scroll", u), c !== null && cancelAnimationFrame(c), e.style.transform = "", d && document.documentElement.style.removeProperty("--header-bottom");
215
215
  };
216
216
  }, [
217
- f,
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(d, {})]
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(p, {}), "Buy Now"]
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(m, {}), "Try for Free"]
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 ? h : u, {})]
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: l
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(d, {})]
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(p, {}), "Buy Now"]
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(m, {}), "Try for Free"]
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 { A as t, F as n, j as r } from "./esm-CDDjSK4f.js";
3
- import { t as i } from "./Button-Dc8NFRWQ.js";
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: n, 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) => {
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
- n && /* @__PURE__ */ d("div", {
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: [n, a && /* @__PURE__ */ u("span", {
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": n,
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 ? t : r, {})
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: t, 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) => {
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
- t && /* @__PURE__ */ d("div", {
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: [t, r && /* @__PURE__ */ u("span", {
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": t,
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(n, {})
217
+ children: /* @__PURE__ */ u(t, {})
218
218
  })
219
219
  })]
220
220
  })
@@ -0,0 +1,126 @@
1
+ import { t as e } from "./clsx-BWCAbrjV.js";
2
+ import { forwardRef as t, useCallback as n, useEffect as r, useId as i, useRef as a, useState as o } from "react";
3
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
4
+ var l = {
5
+ autofilled: "YDdfMa_autofilled",
6
+ buttonSlot: "YDdfMa_buttonSlot",
7
+ default: "YDdfMa_default",
8
+ dirty: "YDdfMa_dirty",
9
+ disabled: "YDdfMa_disabled",
10
+ field: "YDdfMa_field",
11
+ focus: "YDdfMa_focus",
12
+ hasError: "YDdfMa_hasError",
13
+ helpText: "YDdfMa_helpText",
14
+ iconLeft: "YDdfMa_iconLeft",
15
+ inputElement: "YDdfMa_inputElement",
16
+ inputRow: "YDdfMa_inputRow",
17
+ inputSolo: "YDdfMa_inputSolo",
18
+ label: "YDdfMa_label",
19
+ labelRow: "YDdfMa_labelRow",
20
+ onAutoFillStart: "YDdfMa_onAutoFillStart",
21
+ required: "YDdfMa_required",
22
+ "size-100": "YDdfMa_size-100",
23
+ "size-200": "YDdfMa_size-200",
24
+ "size-300": "YDdfMa_size-300",
25
+ success: "YDdfMa_success",
26
+ white: "YDdfMa_white"
27
+ }, u = t(({ label: t, size: u = 200, iconLeft: d, button: f, helpText: p, showHelpText: m, variant: h = "default", hasError: g = !1, success: _ = !1, disabled: v = !1, required: y = !1, className: b, wrapperClassName: x, onFocus: S, onBlur: C, id: w, "aria-label": T, "aria-describedby": E, value: D, defaultValue: O, onChange: k, ...A }, j) => {
28
+ let M = a(null), N = j || M, P = i(), [F, I] = o(!1), [L, R] = o(!1), [z, B] = o(O === void 0 ? "" : String(O)), V = D !== void 0, H = m ?? !!p, U = H && p ? `${w ?? P}-help-text` : void 0, W = [E, U].filter(Boolean).join(" ") || void 0, G = V ? String(D ?? "").length > 0 : z.length > 0, K = n((e) => {
29
+ e.animationName.includes("onAutoFillStart") && R(!0);
30
+ }, []);
31
+ r(() => {
32
+ let e = N.current;
33
+ if (!e) return;
34
+ let t = () => {
35
+ try {
36
+ e.matches(":-webkit-autofill") && R(!0);
37
+ } catch {}
38
+ }, n = setTimeout(t, 100), r = setTimeout(t, 500);
39
+ return () => {
40
+ clearTimeout(n), clearTimeout(r);
41
+ };
42
+ }, [N]);
43
+ let q = n((e) => {
44
+ I(!0), S?.(e);
45
+ }, [S]), J = n((e) => {
46
+ I(!1), C?.(e);
47
+ }, [C]), Y = n((e) => {
48
+ V || B(e.target.value), k?.(e);
49
+ }, [V, k]);
50
+ return /* @__PURE__ */ c("div", {
51
+ onClick: n(() => {
52
+ !v && N.current && N.current.focus();
53
+ }, [v, N]),
54
+ className: e("hsui-input-solo", `hsui-input-solo--${u}`, l.inputSolo, l[`size-${u}`], {
55
+ [l[h]]: h,
56
+ [l.focus]: F,
57
+ [l.hasError]: g,
58
+ [l.success]: _,
59
+ [l.disabled]: v,
60
+ [l.dirty]: G || L,
61
+ [l.autofilled]: L
62
+ }, x),
63
+ children: [
64
+ t && /* @__PURE__ */ s("div", {
65
+ className: l.labelRow,
66
+ children: w ? /* @__PURE__ */ c("label", {
67
+ className: l.label,
68
+ htmlFor: w,
69
+ children: [t, y && /* @__PURE__ */ s("span", {
70
+ className: l.required,
71
+ children: " *"
72
+ })]
73
+ }) : /* @__PURE__ */ c("span", {
74
+ className: l.label,
75
+ children: [t, y && /* @__PURE__ */ s("span", {
76
+ className: l.required,
77
+ children: " *"
78
+ })]
79
+ })
80
+ }),
81
+ /* @__PURE__ */ s("div", {
82
+ className: l.field,
83
+ children: /* @__PURE__ */ c("div", {
84
+ className: l.inputRow,
85
+ children: [
86
+ d && /* @__PURE__ */ s("span", {
87
+ className: l.iconLeft,
88
+ children: d
89
+ }),
90
+ /* @__PURE__ */ s("input", {
91
+ ref: N,
92
+ id: w,
93
+ className: e(l.inputElement, b),
94
+ disabled: v,
95
+ required: y,
96
+ "aria-invalid": g,
97
+ "aria-label": T ?? t,
98
+ "aria-describedby": W,
99
+ value: D,
100
+ defaultValue: O,
101
+ onFocus: q,
102
+ onBlur: J,
103
+ onChange: Y,
104
+ onAnimationStart: K,
105
+ ...A
106
+ }),
107
+ f && /* @__PURE__ */ s("span", {
108
+ className: l.buttonSlot,
109
+ onClick: (e) => e.stopPropagation(),
110
+ onMouseDown: (e) => e.stopPropagation(),
111
+ children: f
112
+ })
113
+ ]
114
+ })
115
+ }),
116
+ H && p && /* @__PURE__ */ s("span", {
117
+ id: U,
118
+ className: l.helpText,
119
+ children: p
120
+ })
121
+ ]
122
+ });
123
+ });
124
+ u.displayName = "InputSolo";
125
+ //#endregion
126
+ export { u as t };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BWCAbrjV.js";
2
- import { o as t } from "./esm-CDDjSK4f.js";
2
+ import { o as t } from "./esm-VMwHsplm.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  var i = {
5
5
  attention: "UwHMOW_attention",