highsoft-ui 1.0.182 → 1.0.184
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 +15 -2
- package/dist/{Footer-hAk1PceF.js → Footer-5mS8XhVa.js} +1 -1
- package/dist/{FooterLinks-DsCivmiy.js → FooterLinks-CzQ5cZ7-.js} +8 -6
- package/dist/components/Footer/FooterLinks.js +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/PromoBanner/index.js +2 -2
- package/dist/components/PromoBanner/products.js +6 -3
- package/dist/lib/components/PromoBanner/index.d.ts +6 -2
- package/dist/lib/components/PromoBanner/product-framing.d.ts +7 -3
- package/dist/lib/components/PromoBanner/products.d.ts +6 -2
- package/dist/lib/main.d.ts +2 -2
- package/dist/main.js +10 -8
- package/package.json +1 -1
package/CLAUDE.md
CHANGED
|
@@ -1102,7 +1102,8 @@ for concrete consumer needs.
|
|
|
1102
1102
|
<PromoBanner product="core" video title="Build something great." theme="dark" />
|
|
1103
1103
|
```
|
|
1104
1104
|
|
|
1105
|
-
`product` accepts `core`, `stock`, `maps`, `gantt`, `dashboards`, `grid`,
|
|
1105
|
+
`product` accepts `core`, `stock`, `maps`, `gantt`, `dashboards`, `grid`, `orbit`
|
|
1106
|
+
or `morningstar`.
|
|
1106
1107
|
It selects approved light/dark WebP posters, VP9 and Safari HEVC-alpha videos,
|
|
1107
1108
|
framing, description, price and CTA. `video` is boolean: true animates; omitted or
|
|
1108
1109
|
false shows the still image. No `image`, `imageAlt`, `videoHevc`, media URL,
|
|
@@ -1112,9 +1113,21 @@ text-only banner. Product artwork is decorative and always has empty alt text.
|
|
|
1112
1113
|
`title` defaults to "Start building today.". `title`, `description`, `price` and
|
|
1113
1114
|
`action` remain content overrides; null hides description, price or action.
|
|
1114
1115
|
`action` accepts `{ label, href?, onClick?, variant?, iconRight?, buttonProps? }`
|
|
1115
|
-
and uses a size-300
|
|
1116
|
+
and uses a size-300 Button in the product's CTA variant (success; danger for
|
|
1117
|
+
Morningstar) by default. `headingLevel` defaults to 2.
|
|
1116
1118
|
`theme` optionally pins light or dark; otherwise the component follows its page.
|
|
1117
1119
|
|
|
1120
|
+
The per-product data is exported so wrappers don't copy it:
|
|
1121
|
+
`promoBannerProducts` (`PromoBannerProductDefaults[]`: `slug`, `description`,
|
|
1122
|
+
`price?`, `action: { label, href, variant }`) and `promoBannerFraming`
|
|
1123
|
+
(`Record<PromoBannerProduct, PromoBannerFraming>`: the compact card's
|
|
1124
|
+
`fit`/`scale`/`offsetY`, which the component sets as `--promo-banner-compact-*`).
|
|
1125
|
+
The WordPress block prefills its fields from the first and server-renders the
|
|
1126
|
+
second. Read them; don't mirror them, since a mirror goes stale silently on the
|
|
1127
|
+
next highsoft-ui bump. Both are plain data, so a Node build script can import
|
|
1128
|
+
`highsoft-ui` and generate PHP from them. The data changes nothing for
|
|
1129
|
+
accessibility: the component still renders the same markup.
|
|
1130
|
+
|
|
1118
1131
|
Each five-second video plays once on visibility, then loops on hover/focus.
|
|
1119
1132
|
Reduced motion and playback failure retain the poster. Offscreen/hidden-page
|
|
1120
1133
|
playback pauses. The icon-only pause/play control shares VideoCover's glyphs
|
|
@@ -8,7 +8,7 @@ import { t as o } from "./Logo-Bz0G2G-k.js";
|
|
|
8
8
|
import { t as s } from "./NewsletterSignup-Dk1cwk-W.js";
|
|
9
9
|
import { t as c } from "./FooterBottom-CT_vF7Wo.js";
|
|
10
10
|
import { t as l } from "./FooterHelp-VHhF9ED6.js";
|
|
11
|
-
import { t as u } from "./FooterLinks-
|
|
11
|
+
import { t as u } from "./FooterLinks-CzQ5cZ7-.js";
|
|
12
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 = {
|
|
@@ -40,7 +40,11 @@ var l = {
|
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
title: "Grid",
|
|
43
|
-
url: "https://www.highcharts.com/products/grid/"
|
|
43
|
+
url: "https://www.highcharts.com/products/grid/"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
title: "Orbit",
|
|
47
|
+
url: "https://www.highcharts.com/products/orbit/",
|
|
44
48
|
tag: "New"
|
|
45
49
|
}
|
|
46
50
|
],
|
|
@@ -67,8 +71,7 @@ var l = {
|
|
|
67
71
|
},
|
|
68
72
|
{
|
|
69
73
|
title: "Flutter",
|
|
70
|
-
url: "https://www.highcharts.com/integrations/flutter/"
|
|
71
|
-
tag: "New"
|
|
74
|
+
url: "https://www.highcharts.com/integrations/flutter/"
|
|
72
75
|
},
|
|
73
76
|
{
|
|
74
77
|
title: "Node.js",
|
|
@@ -160,8 +163,7 @@ var l = {
|
|
|
160
163
|
},
|
|
161
164
|
{
|
|
162
165
|
title: "Discord",
|
|
163
|
-
url: "https://www.highcharts.com/highcharts-discord/"
|
|
164
|
-
tag: "New"
|
|
166
|
+
url: "https://www.highcharts.com/highcharts-discord/"
|
|
165
167
|
},
|
|
166
168
|
{
|
|
167
169
|
title: "Blog",
|
|
@@ -289,7 +291,7 @@ function u({ link: u = "a", host: d = "https://www.highcharts.com" }) {
|
|
|
289
291
|
className: s.externalIcon
|
|
290
292
|
})]
|
|
291
293
|
}), p && /* @__PURE__ */ a(i, {
|
|
292
|
-
variant: "
|
|
294
|
+
variant: "success",
|
|
293
295
|
iconLeft: !1,
|
|
294
296
|
border: !0
|
|
295
297
|
})]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../FooterLinks-
|
|
1
|
+
import { t as e } from "../../FooterLinks-CzQ5cZ7-.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Footer-
|
|
1
|
+
import { t as e } from "../../Footer-5mS8XhVa.js";
|
|
2
2
|
export { e as Footer };
|
|
@@ -68,7 +68,7 @@ var _ = f(({ product: f, title: _, description: v, price: y, action: b, video: x
|
|
|
68
68
|
className: s.price,
|
|
69
69
|
children: P
|
|
70
70
|
}), F != null && /* @__PURE__ */ h(n, {
|
|
71
|
-
variant: F.variant ??
|
|
71
|
+
variant: F.variant ?? A?.action.variant ?? "success",
|
|
72
72
|
size: 300,
|
|
73
73
|
href: F.href,
|
|
74
74
|
onClick: F.onClick,
|
|
@@ -94,4 +94,4 @@ var _ = f(({ product: f, title: _, description: v, price: y, action: b, video: x
|
|
|
94
94
|
});
|
|
95
95
|
_.displayName = "PromoBanner";
|
|
96
96
|
//#endregion
|
|
97
|
-
export { _ as PromoBanner };
|
|
97
|
+
export { _ as PromoBanner, u as promoBannerFraming, d as promoBannerProducts };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
//#region lib/components/PromoBanner/products.ts
|
|
2
2
|
var e = {
|
|
3
3
|
label: "Get licensed",
|
|
4
|
-
href: "https://shop.highcharts.com/"
|
|
4
|
+
href: "https://shop.highcharts.com/",
|
|
5
|
+
variant: "success"
|
|
5
6
|
}, t = [
|
|
6
7
|
{
|
|
7
8
|
slug: "core",
|
|
@@ -44,7 +45,8 @@ var e = {
|
|
|
44
45
|
description: "Get your Highcharts Orbit license and add analytics to any chart.",
|
|
45
46
|
action: {
|
|
46
47
|
label: "Contact us",
|
|
47
|
-
href: "https://shop.highcharts.com/contact"
|
|
48
|
+
href: "https://shop.highcharts.com/contact",
|
|
49
|
+
variant: "success"
|
|
48
50
|
}
|
|
49
51
|
},
|
|
50
52
|
{
|
|
@@ -52,7 +54,8 @@ var e = {
|
|
|
52
54
|
description: "Explore Morningstar integration.",
|
|
53
55
|
action: {
|
|
54
56
|
label: "Contact sales",
|
|
55
|
-
href: "https://shop.highcharts.com/contact"
|
|
57
|
+
href: "https://shop.highcharts.com/contact",
|
|
58
|
+
variant: "danger"
|
|
56
59
|
}
|
|
57
60
|
}
|
|
58
61
|
];
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { ButtonVariant } from '../Button';
|
|
3
3
|
import { HeadingLevel } from '../Heading';
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import { productFraming } from './product-framing';
|
|
5
|
+
import { promoBannerProducts, PromoBannerProduct } from './products';
|
|
6
|
+
export type { PromoBannerProduct, PromoBannerProductDefaults } from './products';
|
|
7
|
+
export type { PromoBannerFraming } from './product-framing';
|
|
8
|
+
export { promoBannerProducts };
|
|
9
|
+
export { productFraming as promoBannerFraming };
|
|
6
10
|
/** The call to action on the right of the banner. */
|
|
7
11
|
export interface PromoBannerAction {
|
|
8
12
|
/** Button text, e.g. "Get licensed". */
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { PromoBannerProduct } from './products';
|
|
2
|
+
/** How a product's artwork sits in the compact (narrow) card. */
|
|
3
|
+
export interface PromoBannerFraming {
|
|
3
4
|
fit: 'contain';
|
|
4
5
|
scale: number;
|
|
6
|
+
/** Vertical nudge in px. */
|
|
5
7
|
offsetY: number;
|
|
6
|
-
}
|
|
8
|
+
}
|
|
9
|
+
/** Keep the distinctive logo parts visible above the compact card's text fade. */
|
|
10
|
+
export declare const productFraming: Record<PromoBannerProduct, PromoBannerFraming>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import { ButtonVariant } from '../Button';
|
|
1
2
|
export type PromoBannerProduct = 'core' | 'stock' | 'maps' | 'gantt' | 'dashboards' | 'grid' | 'orbit' | 'morningstar';
|
|
2
|
-
|
|
3
|
+
/** A product's default copy and call to action. */
|
|
4
|
+
export interface PromoBannerProductDefaults {
|
|
3
5
|
slug: PromoBannerProduct;
|
|
4
6
|
description: string;
|
|
5
7
|
price?: string;
|
|
6
8
|
action: {
|
|
7
9
|
label: string;
|
|
8
10
|
href: string;
|
|
11
|
+
variant: ButtonVariant;
|
|
9
12
|
};
|
|
10
|
-
}
|
|
13
|
+
}
|
|
14
|
+
export declare const promoBannerProducts: PromoBannerProductDefaults[];
|
package/dist/lib/main.d.ts
CHANGED
|
@@ -79,8 +79,8 @@ export { SidebarLayout, SidebarMain, Sidebar, SidebarHeader, SidebarBody, Sideba
|
|
|
79
79
|
export type { SidebarLayoutProps, SidebarProps, SidebarSectionProps, SidebarSwitcherProps, NavItemProps, NavGroupProps, NavDisclosureProps, SidebarLayoutContextValue } from './components/Sidebar';
|
|
80
80
|
export { PrefPanel } from './components/PrefPanel';
|
|
81
81
|
export { PrevNextNav } from './components/PrevNextNav';
|
|
82
|
-
export { PromoBanner } from './components/PromoBanner';
|
|
83
|
-
export type { PromoBannerProps, PromoBannerAction, PromoBannerProduct } from './components/PromoBanner';
|
|
82
|
+
export { PromoBanner, promoBannerProducts, promoBannerFraming } from './components/PromoBanner';
|
|
83
|
+
export type { PromoBannerProps, PromoBannerAction, PromoBannerProduct, PromoBannerProductDefaults, PromoBannerFraming } from './components/PromoBanner';
|
|
84
84
|
export { ProductNotice, PRODUCT_NOTICE_EVENTS } from './components/ProductNotice';
|
|
85
85
|
export type { ProductNoticeProps, ProductNoticeAction, ProductNoticeActionTracking, ProductNoticeInteraction, ProductNoticeTracking, ProductNoticeTrackingParams } from './components/ProductNotice';
|
|
86
86
|
export { TrackingProvider, useTracker, dataLayerTracker, gtagTracker } from './tracking';
|
package/dist/main.js
CHANGED
|
@@ -31,7 +31,7 @@ import { n as G, t as K } from "./Label-DwiX1ZiD.js";
|
|
|
31
31
|
import { VideoCover as q } from "./components/VideoCover/index.js";
|
|
32
32
|
import { t as J } from "./VideoPlayer-Cg9MFkP5.js";
|
|
33
33
|
import { t as Y } from "./VideoPlayerModal-BzYnI2f2.js";
|
|
34
|
-
import { t as X } from "./Footer-
|
|
34
|
+
import { t as X } from "./Footer-5mS8XhVa.js";
|
|
35
35
|
import { n as Z } from "./GPTInput-g460kfc6.js";
|
|
36
36
|
import { t as Q } from "./Notification-D93nzw6M.js";
|
|
37
37
|
import { n as $, t as ee } from "./Header-CEV_MWep.js";
|
|
@@ -54,10 +54,12 @@ import { NavGroup as Ce } from "./components/Sidebar/NavGroup.js";
|
|
|
54
54
|
import { NavDisclosure as we } from "./components/Sidebar/NavDisclosure.js";
|
|
55
55
|
import "./components/Sidebar/index.js";
|
|
56
56
|
import { t as Te } from "./PrevNextNav-C406puU6.js";
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import { t as Ae } from "./
|
|
62
|
-
import {
|
|
63
|
-
|
|
57
|
+
import { productFraming as Ee } from "./components/PromoBanner/product-framing.js";
|
|
58
|
+
import { promoBannerProducts as De } from "./components/PromoBanner/products.js";
|
|
59
|
+
import { PromoBanner as Oe } from "./components/PromoBanner/index.js";
|
|
60
|
+
import { PRODUCT_NOTICE_EVENTS as ke } from "./components/ProductNotice/tracking.js";
|
|
61
|
+
import { t as Ae } from "./ProductNotice-CtgDdo5_.js";
|
|
62
|
+
import { t as je } from "./Breadcrumb-BQzfkMH0.js";
|
|
63
|
+
import { t as Me } from "./TableOfContents-d26S7KYx.js";
|
|
64
|
+
import { ThemeLoader as Ne, themeLoaderScript as Pe } from "./components/ThemeLoader/index.js";
|
|
65
|
+
export { p as Accordion, f as AccordionItem, l as Box, je as Breadcrumb, m as BrowserFrame, u as Button, T as ButtonGroup, ae as Checkbox, ie as CheckboxGroup, x as ClientLogo, y as CodeBlock, M as Container, _ as CopyCode, N as DiscordInvite, U as Dropdown, V as DropdownItem, H as DropdownSeparator, R as FeatureItem, L as Features, g as Figure, X as Footer, j as FormGroup, k as FormRow, v as FrameworkIcon, Z as GPTInput, ee as Header, P as Heading, h as Icon, A as InputGrouped, E as InputSolo, K as Label, C as Link, I as List, F as ListItem, z as Logo, S as LogoCarousel, le as Modal, de as ModalContactFooter, we as NavDisclosure, Ce as NavGroup, Se as NavItem, G as NewTag, B as NewsletterSignup, Q as Notification, ke as PRODUCT_NOTICE_EVENTS, W as PrefPanel, Te as PrevNextNav, w as ProductIcon, Ae as ProductNotice, Oe as PromoBanner, re as RadioBox, ne as RadioBoxGroup, ue as RoadmapDetails, D as SearchDropdown, O as SelectGrouped, _e as Sidebar, ve as SidebarBody, ye as SidebarHeader, me as SidebarLayout, he as SidebarMain, ge as SidebarResizer, be as SidebarSection, xe as SidebarSwitcher, $ as SubHeader, Me as TableOfContents, te as Tabs, Ne as ThemeLoader, i as ThemeProvider, oe as Toggle, se as ToggleCard, ce as ToggleList, a as TrackingProvider, d as Typography, q as VideoCover, J as VideoPlayer, Y as VideoPlayerModal, b as clientLogoLabels, o as dataLayerTracker, s as gtagTracker, Ee as promoBannerFraming, De as promoBannerProducts, Pe as themeLoaderScript, n as useClipboard, t as useNextTheme, fe as useOptionalSidebarLayout, pe as useSidebarLayout, r as useSuccessFlash, e as useTheme, c as useTracker };
|