@sdxc/ui 2026.10.28 → 2026.10.29

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 (64) hide show
  1. package/README.md +41 -4
  2. package/dist/components/accordion.d.ts +3 -1
  3. package/dist/components/accordion.js +3 -1
  4. package/dist/components/button.d.ts +4 -0
  5. package/dist/components/button.js +2 -0
  6. package/dist/components/card.d.ts +6 -4
  7. package/dist/components/carousel.d.ts +15 -0
  8. package/dist/components/carousel.js +15 -0
  9. package/dist/components/cta-group.d.ts +45 -0
  10. package/dist/components/cta-group.js +26 -0
  11. package/dist/components/empty.d.ts +5 -3
  12. package/dist/components/feature.d.ts +102 -0
  13. package/dist/components/feature.js +151 -0
  14. package/dist/components/heading.d.ts +20 -4
  15. package/dist/components/heading.js +25 -11
  16. package/dist/components/index.d.ts +7 -0
  17. package/dist/components/index.js +7 -0
  18. package/dist/components/link-button.d.ts +2 -0
  19. package/dist/components/logo-cloud.d.ts +42 -0
  20. package/dist/components/logo-cloud.js +41 -0
  21. package/dist/components/marketing-header.d.ts +71 -0
  22. package/dist/components/marketing-header.js +81 -0
  23. package/dist/components/marketing-section.d.ts +81 -0
  24. package/dist/components/marketing-section.js +103 -0
  25. package/dist/components/nav-link.d.ts +2 -1
  26. package/dist/components/split.d.ts +66 -0
  27. package/dist/components/split.js +115 -0
  28. package/dist/components/stat-strip.d.ts +52 -0
  29. package/dist/components/stat-strip.js +64 -0
  30. package/dist/patterns/accent-text.d.ts +30 -0
  31. package/dist/patterns/accent-text.js +17 -0
  32. package/dist/patterns/announcement-chip.d.ts +41 -0
  33. package/dist/patterns/announcement-chip.js +49 -0
  34. package/dist/patterns/bento.d.ts +67 -0
  35. package/dist/patterns/bento.js +95 -0
  36. package/dist/patterns/check-row.d.ts +67 -0
  37. package/dist/patterns/check-row.js +76 -0
  38. package/dist/patterns/closing-cta.d.ts +60 -0
  39. package/dist/patterns/closing-cta.js +31 -0
  40. package/dist/patterns/code-stage.d.ts +63 -0
  41. package/dist/patterns/code-stage.js +82 -0
  42. package/dist/patterns/faq-band.d.ts +67 -0
  43. package/dist/patterns/faq-band.js +43 -0
  44. package/dist/patterns/feature-band.d.ts +85 -0
  45. package/dist/patterns/feature-band.js +50 -0
  46. package/dist/patterns/icon-well.d.ts +38 -0
  47. package/dist/patterns/icon-well.js +38 -0
  48. package/dist/patterns/index.d.ts +23 -0
  49. package/dist/patterns/index.js +23 -0
  50. package/dist/patterns/install-tabs.d.ts +77 -0
  51. package/dist/patterns/install-tabs.js +87 -0
  52. package/dist/patterns/landing-hero.d.ts +93 -0
  53. package/dist/patterns/landing-hero.js +126 -0
  54. package/dist/patterns/product-frame.d.ts +60 -0
  55. package/dist/patterns/product-frame.js +70 -0
  56. package/dist/patterns/proof-strip.d.ts +48 -0
  57. package/dist/patterns/proof-strip.js +29 -0
  58. package/dist/patterns/step-list.d.ts +45 -0
  59. package/dist/patterns/step-list.js +84 -0
  60. package/dist/patterns/tabbed-stage.d.ts +74 -0
  61. package/dist/patterns/tabbed-stage.js +77 -0
  62. package/dist/styles/marketing.d.ts +12 -0
  63. package/dist/styles/marketing.js +17 -0
  64. package/package.json +3 -2
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Barrel for marketing landing patterns: composition craft and page building
3
+ * blocks imported as `@sdxc/ui/patterns` so product chrome stays on the root
4
+ * catalog.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ export * from "./accent-text.js";
10
+ export * from "./announcement-chip.js";
11
+ export * from "./bento.js";
12
+ export * from "./check-row.js";
13
+ export * from "./closing-cta.js";
14
+ export * from "./code-stage.js";
15
+ export * from "./faq-band.js";
16
+ export * from "./feature-band.js";
17
+ export * from "./icon-well.js";
18
+ export * from "./install-tabs.js";
19
+ export * from "./landing-hero.js";
20
+ export * from "./product-frame.js";
21
+ export * from "./proof-strip.js";
22
+ export * from "./step-list.js";
23
+ export * from "./tabbed-stage.js";
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Package-manager or language chooser plus a command row. Switching dialects
3
+ * uses a radio group and CSS — no JavaScript — so the selected command stays
4
+ * copyable with the platform alone. Every label and command string is a prop.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
+ /**
11
+ * Prop types for {@link InstallTabs} and its compound parts.
12
+ */
13
+ export declare namespace InstallTabs {
14
+ /**
15
+ * Value {@link InstallTabs} provides so nested options share one radio name.
16
+ */
17
+ interface Context {
18
+ /** Radio `name` every option in this strip writes. */
19
+ name: string;
20
+ }
21
+ /**
22
+ * Props accepted by {@link InstallTabs}.
23
+ */
24
+ interface Props extends TagProps<"form"> {
25
+ /**
26
+ * Shared `name` for the radio group that switches dialects. Required so
27
+ * multiple strips on one page stay independent.
28
+ */
29
+ name: string;
30
+ /** Accessible name for the strip. Required — the library ships no copy. */
31
+ "aria-label": string;
32
+ /** One or more {@link InstallTabs.Option} dialects. */
33
+ children: RemixNode;
34
+ }
35
+ /**
36
+ * Props accepted by {@link InstallTabs.Option}.
37
+ */
38
+ interface OptionProps extends TagProps<"div"> {
39
+ /** Radio value written for this dialect. */
40
+ value: string;
41
+ /** Visible tab label for the dialect. */
42
+ label: RemixNode;
43
+ /**
44
+ * Marks this dialect as the initially selected one. Only one option in
45
+ * a strip should pass `defaultChecked`.
46
+ */
47
+ defaultChecked?: boolean;
48
+ /**
49
+ * Optional trailing control beside the command — typically a copy
50
+ * button the page supplies.
51
+ */
52
+ actions?: RemixNode;
53
+ /** Command or snippet shown when this dialect is selected. */
54
+ children: RemixNode;
55
+ }
56
+ }
57
+ /**
58
+ * Renders a radio-driven dialect strip. Nest {@link InstallTabs.Option}
59
+ * children; the checked option's command row reveals via CSS.
60
+ *
61
+ * @param handle Runtime handle carrying the host `<form>`'s props and providing
62
+ * {@link InstallTabs.Context}.
63
+ * @returns The render function producing the strip's markup.
64
+ * @example
65
+ * <InstallTabs name="pkg" aria-label={t("install.label")}>
66
+ * <InstallTabs.Option value="bun" label="bun" defaultChecked>
67
+ * bun add @sdxc/ui
68
+ * </InstallTabs.Option>
69
+ * <InstallTabs.Option value="npm" label="npm">
70
+ * npm add @sdxc/ui
71
+ * </InstallTabs.Option>
72
+ * </InstallTabs>
73
+ */
74
+ export declare function InstallTabs(handle: Handle<InstallTabs.Props, InstallTabs.Context>): () => import("remix/component").RemixElement;
75
+ export declare namespace InstallTabs {
76
+ var Option: (handle: Handle<InstallTabs.OptionProps>) => () => import("remix/component").RemixElement;
77
+ }
@@ -0,0 +1,87 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { visuallyHidden } from "@sdxc/u/a11y";
3
+ import { bg, border, borderEdge, fg, outline } from "@sdxc/u/color";
4
+ import { rounded, transition } from "@sdxc/u/effects";
5
+ import { cursor, raw } from "@sdxc/u/general";
6
+ import { basis, flex, flexWrap, gap, hidden, items, justify } from "@sdxc/u/layout";
7
+ import { overflow, overflowX } from "@sdxc/u/overflow";
8
+ import { minIs, p } from "@sdxc/u/size";
9
+ import { precededBy, when } from "@sdxc/u/state";
10
+ import { font, text, weight } from "@sdxc/u/typography";
11
+ /**
12
+ * Renders a radio-driven dialect strip. Nest {@link InstallTabs.Option}
13
+ * children; the checked option's command row reveals via CSS.
14
+ *
15
+ * @param handle Runtime handle carrying the host `<form>`'s props and providing
16
+ * {@link InstallTabs.Context}.
17
+ * @returns The render function producing the strip's markup.
18
+ * @example
19
+ * <InstallTabs name="pkg" aria-label={t("install.label")}>
20
+ * <InstallTabs.Option value="bun" label="bun" defaultChecked>
21
+ * bun add @sdxc/ui
22
+ * </InstallTabs.Option>
23
+ * <InstallTabs.Option value="npm" label="npm">
24
+ * npm add @sdxc/ui
25
+ * </InstallTabs.Option>
26
+ * </InstallTabs>
27
+ */
28
+ export function InstallTabs(handle) {
29
+ return () => {
30
+ let { mix, name, ...rest } = handle.props;
31
+ handle.context.set({ name });
32
+ return (_jsx("form", { ...rest, "data-slot": "install-tabs", "data-name": name, mix: [
33
+ flex(),
34
+ flexWrap("wrap"),
35
+ overflow("hidden"),
36
+ rounded("lg"),
37
+ border({ color: "neutral", width: 1, style: "solid" }),
38
+ bg(),
39
+ mix,
40
+ ] }));
41
+ };
42
+ }
43
+ /**
44
+ * One dialect: a radio, its label, and a command row that shows when checked.
45
+ * The command row keys off the adjacent `input:checked + label + &` chain so a
46
+ * checked earlier dialect never reveals a later row.
47
+ *
48
+ * @param handle Runtime handle carrying the option's props.
49
+ * @returns The render function producing the option's markup.
50
+ */
51
+ InstallTabs.Option = function InstallTabsOption(handle) {
52
+ return () => {
53
+ let { actions, children, defaultChecked, label, mix, value, ...rest } = handle.props;
54
+ let context = handle.context.get(InstallTabs);
55
+ let groupName = context?.name ?? "install-tabs";
56
+ let inputId = `${groupName}-${value}`;
57
+ let valueId = `${inputId}-value`;
58
+ return (_jsxs("div", { ...rest, "data-slot": "install-tabs-option", "data-value": value, mix: [raw({ display: "contents" }), mix], children: [_jsx("input", { type: "radio", name: groupName, id: inputId, value: value, defaultChecked: defaultChecked, mix: [visuallyHidden()] }), _jsx("label", { htmlFor: inputId, mix: [
59
+ raw({ order: -1 }),
60
+ p(2, 3),
61
+ fg("neutral"),
62
+ text("sm"),
63
+ weight("medium"),
64
+ cursor("pointer"),
65
+ borderEdge("block-end", { color: "transparent", width: 2, style: "solid" }),
66
+ transition("color, border-color"),
67
+ precededBy("input:checked", [
68
+ fg("brand"),
69
+ borderEdge("block-end", { color: "brand", width: 2, style: "solid" }),
70
+ ]),
71
+ precededBy("input:focus-visible", outline({ color: "brand.ring", offset: -2 })),
72
+ ], children: label }), _jsxs("div", { mix: [
73
+ basis("100%"),
74
+ hidden(),
75
+ items("center"),
76
+ justify("between"),
77
+ gap(3),
78
+ p(2, 2, 2, 3),
79
+ borderEdge("block-start", {
80
+ color: "neutral",
81
+ width: 1,
82
+ style: "solid",
83
+ }),
84
+ when(":is(input:checked) + label + &", raw({ display: "flex" })),
85
+ ], children: [_jsx("code", { id: valueId, mix: [font("mono"), text("sm"), fg("neutral.emphasis"), minIs(0), overflowX("auto")], children: children }), actions] })] }));
86
+ };
87
+ };
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Above-the-fold landing band: optional eyebrow, display title, lead, CTA
3
+ * cluster, and a media slot. Encodes the catalog hero pattern so pages supply
4
+ * copy and media without re-deriving spacing.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
+ import { MarketingSection } from "../components/marketing-section.js";
11
+ /**
12
+ * Prop types for {@link LandingHero}.
13
+ */
14
+ export declare namespace LandingHero {
15
+ /**
16
+ * Whether the copy stack stretches start-aligned or centers as one statement.
17
+ */
18
+ type Align = MarketingSection.Align;
19
+ /**
20
+ * Where the media slot sits: beside the copy, under it, or as a faded
21
+ * background behind the statement.
22
+ */
23
+ type MediaPlacement = "end" | "below" | "background";
24
+ /**
25
+ * Band fill forwarded to {@link MarketingSection}.
26
+ */
27
+ type Tone = MarketingSection.Tone;
28
+ /**
29
+ * How the optional eyebrow reads — same contract as {@link MarketingHeader}.
30
+ */
31
+ type EyebrowVariant = "pill" | "mono" | "chip";
32
+ /**
33
+ * Per-part styling for slots the hero composes.
34
+ */
35
+ interface PartsProps {
36
+ /** Styling for the optional eyebrow. */
37
+ eyebrow?: TagProps<"span">["mix"];
38
+ /** Styling for the title {@link Heading}. */
39
+ title?: TagProps<"h1">["mix"];
40
+ /** Styling for the lead paragraph. */
41
+ description?: TagProps<"p">["mix"];
42
+ /** Styling for the {@link CtaGroup} around `actions`. */
43
+ actions?: TagProps<"div">["mix"];
44
+ /** Styling for the media slot host. */
45
+ media?: TagProps<"div">["mix"];
46
+ }
47
+ /**
48
+ * Props accepted by {@link LandingHero}.
49
+ */
50
+ interface Props extends Omit<MarketingSection.Props, "children" | "align" | "tone" | "title" | "parts"> {
51
+ /** Content alignment. Defaults to {@link DEFAULT_ALIGN}. */
52
+ align?: Align;
53
+ /** Band fill. Defaults to {@link DEFAULT_TONE}. */
54
+ tone?: Tone;
55
+ /** Media placement. Defaults to {@link DEFAULT_MEDIA_PLACEMENT}. */
56
+ mediaPlacement?: MediaPlacement;
57
+ /** Optional eyebrow above the title. */
58
+ eyebrow?: RemixNode;
59
+ /**
60
+ * Eyebrow chrome. Defaults to {@link DEFAULT_EYEBROW_VARIANT} when an
61
+ * eyebrow is present.
62
+ */
63
+ eyebrowVariant?: EyebrowVariant;
64
+ /** Display title — required, always supplied by the page. */
65
+ title: RemixNode;
66
+ /** Supporting lead under the title. */
67
+ description?: RemixNode;
68
+ /** Primary/secondary actions rendered inside a {@link CtaGroup}. */
69
+ actions?: RemixNode;
70
+ /** Product visual, screenshot, or staged UI. */
71
+ media?: RemixNode;
72
+ /** Optional below-fold hook rendered under the main hero stack. */
73
+ below?: RemixNode;
74
+ /** Per-part styling for eyebrow, title, lead, actions, and media. */
75
+ parts?: PartsProps;
76
+ }
77
+ }
78
+ /**
79
+ * Renders a hero band: display title, optional lead and CTAs, and an optional
80
+ * media slot. Opens a {@link HeadingScope} so the title starts the outline.
81
+ *
82
+ * @param handle Runtime handle carrying the hero's props.
83
+ * @returns The render function producing the hero's markup.
84
+ * @example
85
+ * <LandingHero
86
+ * tone="grid"
87
+ * title={t("hero.title")}
88
+ * description={t("hero.lead")}
89
+ * actions={<Button size="lg">{t("hero.cta")}</Button>}
90
+ * media={<img src={shot} alt={t("hero.alt")} />}
91
+ * />
92
+ */
93
+ export declare function LandingHero(handle: Handle<LandingHero.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,126 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { bg, border, fg } from "@sdxc/u/color";
3
+ import { opacity, rounded } from "@sdxc/u/effects";
4
+ import { raw } from "@sdxc/u/general";
5
+ import { absolute, inlineFlex, inset, items, relative, vstack } from "@sdxc/u/layout";
6
+ import { overflow } from "@sdxc/u/overflow";
7
+ import { pb, pi } from "@sdxc/u/size";
8
+ import { when } from "@sdxc/u/state";
9
+ import { font, text, textAlign, textTransform, tracking, weight } from "@sdxc/u/typography";
10
+ import { CtaGroup } from "../components/cta-group.js";
11
+ import { HeadingScope } from "../components/heading-scope.js";
12
+ import { Heading } from "../components/heading.js";
13
+ import { MarketingSection } from "../components/marketing-section.js";
14
+ import { Split } from "../components/split.js";
15
+ import { marketingLead } from "../styles/marketing.js";
16
+ /** Content alignment {@link LandingHero} applies when `align` is omitted. */
17
+ const DEFAULT_ALIGN = "start";
18
+ /** Where media sits relative to the copy when `mediaPlacement` is omitted. */
19
+ const DEFAULT_MEDIA_PLACEMENT = "end";
20
+ /** Band fill {@link LandingHero} applies when `tone` is omitted. */
21
+ const DEFAULT_TONE = "grid";
22
+ /** Eyebrow chrome {@link LandingHero} applies when `eyebrowVariant` is omitted. */
23
+ const DEFAULT_EYEBROW_VARIANT = "pill";
24
+ /**
25
+ * Renders a hero band: display title, optional lead and CTAs, and an optional
26
+ * media slot. Opens a {@link HeadingScope} so the title starts the outline.
27
+ *
28
+ * @param handle Runtime handle carrying the hero's props.
29
+ * @returns The render function producing the hero's markup.
30
+ * @example
31
+ * <LandingHero
32
+ * tone="grid"
33
+ * title={t("hero.title")}
34
+ * description={t("hero.lead")}
35
+ * actions={<Button size="lg">{t("hero.cta")}</Button>}
36
+ * media={<img src={shot} alt={t("hero.alt")} />}
37
+ * />
38
+ */
39
+ export function LandingHero(handle) {
40
+ return () => {
41
+ let { actions, align, below, description, eyebrow, eyebrowVariant, media, mediaPlacement, mix, parts, spacing, title, tone, ...rest } = handle.props;
42
+ let resolvedAlign = align ?? DEFAULT_ALIGN;
43
+ let resolvedTone = tone ?? DEFAULT_TONE;
44
+ let resolvedPlacement = mediaPlacement ?? DEFAULT_MEDIA_PLACEMENT;
45
+ let resolvedSpacing = spacing ?? "hero";
46
+ let resolvedEyebrowVariant = eyebrowVariant ?? DEFAULT_EYEBROW_VARIANT;
47
+ let isCenter = resolvedAlign === "center";
48
+ let hasMedia = media !== undefined;
49
+ let isBackground = resolvedPlacement === "background" && hasMedia;
50
+ let isSplit = resolvedPlacement === "end" && hasMedia;
51
+ let isBelow = resolvedPlacement === "below" && hasMedia;
52
+ let copy = (_jsxs("div", { mix: [
53
+ vstack({
54
+ align: isCenter ? "center" : "stretch",
55
+ gap: 6,
56
+ }),
57
+ isCenter ? textAlign("center") : [],
58
+ ], children: [eyebrow ? (_jsx("span", { "data-variant": resolvedEyebrowVariant, mix: [
59
+ inlineFlex(),
60
+ items("center"),
61
+ text("xs"),
62
+ weight("semibold"),
63
+ when('&[data-variant="pill"]', [
64
+ pb(0.5),
65
+ pi(2.5),
66
+ rounded("full"),
67
+ border({ color: "brand", width: 1, style: "solid" }),
68
+ bg("brand.tint"),
69
+ fg("brand"),
70
+ ]),
71
+ when('&[data-variant="mono"]', [
72
+ font("mono"),
73
+ tracking("wide"),
74
+ textTransform("uppercase"),
75
+ fg("neutral.muted"),
76
+ ]),
77
+ when('&[data-variant="chip"]', [
78
+ pb(0.5),
79
+ pi(2.5),
80
+ rounded("full"),
81
+ border({ color: "brand", width: 1, style: "solid" }),
82
+ bg("brand.solid"),
83
+ fg("brand.onSolid"),
84
+ tracking("wider"),
85
+ textTransform("uppercase"),
86
+ ]),
87
+ parts?.eyebrow,
88
+ ], children: eyebrow })) : null, _jsx(Heading, { size: "display", mix: [parts?.title], children: title }), description ? (_jsx("p", { mix: [
89
+ marketingLead(),
90
+ isCenter ? raw({ marginInline: "auto" }) : [],
91
+ parts?.description,
92
+ ], children: description })) : null, actions ? _jsx(CtaGroup, { mix: [parts?.actions], children: actions }) : null] }));
93
+ let mediaSlot = hasMedia ? (_jsx("div", { "data-slot": "landing-hero-media", mix: [
94
+ isBackground
95
+ ? [
96
+ absolute(),
97
+ inset(0),
98
+ overflow("hidden"),
99
+ opacity(30),
100
+ raw({ pointerEvents: "none", zIndex: "0" }),
101
+ when("& img, & video", [
102
+ raw({
103
+ inlineSize: "100%",
104
+ blockSize: "100%",
105
+ objectFit: "cover",
106
+ }),
107
+ ]),
108
+ ]
109
+ : [],
110
+ parts?.media,
111
+ ], children: media })) : null;
112
+ let body = (_jsxs("div", { mix: [
113
+ vstack({
114
+ align: isCenter ? "center" : "stretch",
115
+ gap: 8,
116
+ }),
117
+ ], children: [copy, isBelow ? mediaSlot : null, below] }));
118
+ if (isBackground) {
119
+ body = (_jsxs("div", { mix: [relative(), vstack({ gap: 8, align: "stretch" })], children: [mediaSlot, _jsx("div", { mix: [relative(), raw({ zIndex: "1" })], children: copy }), below] }));
120
+ }
121
+ else if (isSplit) {
122
+ body = (_jsxs("div", { mix: [vstack({ gap: 8, align: "stretch" })], children: [_jsxs(Split, { lean: "media", children: [_jsx(Split.Copy, { children: copy }), _jsx(Split.Media, { children: mediaSlot })] }), below] }));
123
+ }
124
+ return (_jsx(MarketingSection, { ...rest, tone: resolvedTone, spacing: resolvedSpacing, align: isSplit ? "start" : resolvedAlign, mix: [isBackground ? relative() : [], mix], children: _jsx(HeadingScope, { children: body }) }));
125
+ };
126
+ }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Window or device chrome around a product screenshot or staged UI. Optional
3
+ * traffic lights, title, and URL bar stay decorative; the page supplies every
4
+ * string and the framed children.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
+ /**
11
+ * Prop types for {@link ProductFrame} and its compound parts.
12
+ */
13
+ export declare namespace ProductFrame {
14
+ /**
15
+ * Outer chrome: a desktop window with a title bar, or a darker rim for
16
+ * device-like screenshots.
17
+ */
18
+ type Variant = "window" | "device";
19
+ /**
20
+ * Per-part styling for chrome the frame renders besides its host.
21
+ */
22
+ interface PartsProps {
23
+ /** Styling for the title-bar row. */
24
+ chrome?: TagProps<"div">["mix"];
25
+ /** Styling for the framed body that holds children. */
26
+ body?: TagProps<"div">["mix"];
27
+ }
28
+ /**
29
+ * Props accepted by {@link ProductFrame}.
30
+ */
31
+ interface Props extends Omit<TagProps<"div">, "title"> {
32
+ /** Outer chrome. Defaults to {@link DEFAULT_VARIANT}. */
33
+ variant?: Variant;
34
+ /**
35
+ * Draws three decorative traffic-light dots in the title bar. Dots are
36
+ * `aria-hidden`; they never carry actionable behavior.
37
+ */
38
+ lights?: boolean;
39
+ /** Optional window title shown in the chrome bar. */
40
+ title?: RemixNode;
41
+ /** Optional URL or path shown as a quiet mono field in the chrome bar. */
42
+ url?: RemixNode;
43
+ /** Per-part styling for chrome and body. */
44
+ parts?: PartsProps;
45
+ /** Product UI, screenshot, or staged sample inside the frame. */
46
+ children: RemixNode;
47
+ }
48
+ }
49
+ /**
50
+ * Wraps children in soft window or device chrome so a landing media slot reads
51
+ * as a product surface rather than a bare image.
52
+ *
53
+ * @param handle Runtime handle carrying the host `<div>`'s props.
54
+ * @returns The render function producing the frame's markup.
55
+ * @example
56
+ * <ProductFrame lights title={t("frame.app")} url="app.example.com">
57
+ * <img src={shot} alt={t("frame.alt")} />
58
+ * </ProductFrame>
59
+ */
60
+ export declare function ProductFrame(handle: Handle<ProductFrame.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,70 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { bg, border, borderEdge, fg } from "@sdxc/u/color";
3
+ import { rounded, shadow } from "@sdxc/u/effects";
4
+ import { raw } from "@sdxc/u/general";
5
+ import { gap, hstack, inlineFlex, items, vstack } from "@sdxc/u/layout";
6
+ import { overflow } from "@sdxc/u/overflow";
7
+ import { bs, is, m, p, pi } from "@sdxc/u/size";
8
+ import { when } from "@sdxc/u/state";
9
+ import { font, text, truncate, weight } from "@sdxc/u/typography";
10
+ /** Chrome density {@link ProductFrame} applies when `variant` is omitted. */
11
+ const DEFAULT_VARIANT = "window";
12
+ /**
13
+ * Wraps children in soft window or device chrome so a landing media slot reads
14
+ * as a product surface rather than a bare image.
15
+ *
16
+ * @param handle Runtime handle carrying the host `<div>`'s props.
17
+ * @returns The render function producing the frame's markup.
18
+ * @example
19
+ * <ProductFrame lights title={t("frame.app")} url="app.example.com">
20
+ * <img src={shot} alt={t("frame.alt")} />
21
+ * </ProductFrame>
22
+ */
23
+ export function ProductFrame(handle) {
24
+ return () => {
25
+ let { children, lights, mix, parts, title, url, variant, ...rest } = handle.props;
26
+ let resolvedVariant = variant ?? DEFAULT_VARIANT;
27
+ let showChrome = Boolean(lights || title || url);
28
+ let isDevice = resolvedVariant === "device";
29
+ return (_jsxs("div", { ...rest, "data-slot": "product-frame", "data-variant": resolvedVariant, mix: [
30
+ vstack({ gap: 0, align: "stretch" }),
31
+ overflow("hidden"),
32
+ rounded(isDevice ? "2xl" : "xl"),
33
+ border({ color: "neutral", width: 1, style: "solid" }),
34
+ bg(),
35
+ shadow("md"),
36
+ isDevice
37
+ ? raw({
38
+ boxShadow: "0 0 0 1px color-mix(in oklab, CanvasText 12%, transparent), 0 18px 40px color-mix(in oklab, CanvasText 18%, transparent)",
39
+ })
40
+ : [],
41
+ mix,
42
+ ], children: [showChrome ? (_jsxs("div", { mix: [
43
+ hstack({ gap: 3, align: "center", justify: "between" }),
44
+ p(2, 3),
45
+ borderEdge("block-end", {
46
+ color: "neutral",
47
+ width: 1,
48
+ style: "solid",
49
+ }),
50
+ bg("neutral.tint"),
51
+ parts?.chrome,
52
+ ], children: [_jsxs("span", { mix: [hstack({ gap: 3, align: "center" }), is("100%"), overflow("hidden")], children: [lights ? (_jsxs("span", { "aria-hidden": "true", mix: [inlineFlex(), items("center"), gap(1.5), raw({ flexShrink: "0" })], children: [_jsx("span", { mix: [is(2.5), bs(2.5), rounded("full"), bg("danger.solid")] }), _jsx("span", { mix: [is(2.5), bs(2.5), rounded("full"), bg("warning.solid")] }), _jsx("span", { mix: [is(2.5), bs(2.5), rounded("full"), bg("success.solid")] })] })) : null, title ? (_jsx("span", { mix: [text("xs"), weight("medium"), fg("neutral"), truncate(), m(0)], children: title })) : null] }), url ? (_jsx("span", { mix: [
53
+ font("mono"),
54
+ text("xs"),
55
+ fg("neutral.muted"),
56
+ truncate(),
57
+ pi(2),
58
+ raw({ maxInlineSize: "50%" }),
59
+ ], children: url })) : null] })) : null, _jsx("div", { "data-slot": "product-frame-body", mix: [
60
+ overflow("hidden"),
61
+ bg(),
62
+ when("& > img, & > video", [
63
+ is("100%"),
64
+ bs("auto"),
65
+ raw({ display: "block", verticalAlign: "middle" }),
66
+ ]),
67
+ parts?.body,
68
+ ], children: children })] }));
69
+ };
70
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Trust band placed immediately after a hero: a {@link LogoCloud}, a
3
+ * {@link StatStrip}, or both stacked. Children are the proof content — the
4
+ * library ships no figures or marks.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, RemixNode } from "remix/component";
10
+ import { MarketingSection } from "../components/marketing-section.js";
11
+ /**
12
+ * Prop types for {@link ProofStrip}.
13
+ */
14
+ export declare namespace ProofStrip {
15
+ /**
16
+ * Band fill forwarded to {@link MarketingSection}.
17
+ */
18
+ type Tone = MarketingSection.Tone;
19
+ /**
20
+ * Props accepted by {@link ProofStrip}.
21
+ */
22
+ interface Props extends Omit<MarketingSection.Props, "children" | "tone" | "spacing"> {
23
+ /** Band fill. Defaults to {@link DEFAULT_TONE}. */
24
+ tone?: Tone;
25
+ /**
26
+ * Proof content — typically a {@link LogoCloud}, a {@link StatStrip},
27
+ * or both stacked.
28
+ */
29
+ children: RemixNode;
30
+ }
31
+ }
32
+ /**
33
+ * Renders a compact ruled band for adopter marks and/or numeric proof.
34
+ *
35
+ * @param handle Runtime handle carrying the strip's props.
36
+ * @returns The render function producing the strip's markup.
37
+ * @example
38
+ * <ProofStrip>
39
+ * <LogoCloud muted>{marks}</LogoCloud>
40
+ * </ProofStrip>
41
+ * @example
42
+ * <ProofStrip>
43
+ * <StatStrip>
44
+ * <StatStrip.Item label={t("stats.uptime")}>99.99%</StatStrip.Item>
45
+ * </StatStrip>
46
+ * </ProofStrip>
47
+ */
48
+ export declare function ProofStrip(handle: Handle<ProofStrip.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,29 @@
1
+ import { jsx as _jsx } from "remix/component/jsx-runtime";
2
+ import { vstack } from "@sdxc/u/layout";
3
+ import { HeadingScope } from "../components/heading-scope.js";
4
+ import { MarketingSection } from "../components/marketing-section.js";
5
+ /** Band fill {@link ProofStrip} applies when `tone` is omitted. */
6
+ const DEFAULT_TONE = "plain";
7
+ /**
8
+ * Renders a compact ruled band for adopter marks and/or numeric proof.
9
+ *
10
+ * @param handle Runtime handle carrying the strip's props.
11
+ * @returns The render function producing the strip's markup.
12
+ * @example
13
+ * <ProofStrip>
14
+ * <LogoCloud muted>{marks}</LogoCloud>
15
+ * </ProofStrip>
16
+ * @example
17
+ * <ProofStrip>
18
+ * <StatStrip>
19
+ * <StatStrip.Item label={t("stats.uptime")}>99.99%</StatStrip.Item>
20
+ * </StatStrip>
21
+ * </ProofStrip>
22
+ */
23
+ export function ProofStrip(handle) {
24
+ return () => {
25
+ let { children, mix, tone, ...rest } = handle.props;
26
+ let resolvedTone = tone ?? DEFAULT_TONE;
27
+ return (_jsx(MarketingSection, { ...rest, tone: resolvedTone, spacing: "compact", ruled: true, align: "center", mix: mix, children: _jsx(HeadingScope, { children: _jsx("div", { mix: [vstack({ gap: 8, align: "center" })], children: children }) }) }));
28
+ };
29
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Numbered marketing steps for a “how it works” band. Counters are CSS-driven
3
+ * so the list stays pure markup; titles and descriptions stay on the page.
4
+ *
5
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
6
+ * @copyright Sergio Xalambrí 2026
7
+ */
8
+ import type { Handle, Props as TagProps, RemixNode } from "remix/component";
9
+ /**
10
+ * Prop types for {@link StepList} and its compound parts.
11
+ */
12
+ export declare namespace StepList {
13
+ /**
14
+ * Props accepted by {@link StepList}.
15
+ */
16
+ interface Props extends TagProps<"ol"> {
17
+ /** {@link StepList.Item} children, numbered by CSS counters. */
18
+ children: RemixNode;
19
+ }
20
+ /**
21
+ * Props accepted by {@link StepList.Item}.
22
+ */
23
+ interface ItemProps extends Omit<TagProps<"li">, "title"> {
24
+ /** Step title — rendered at the ambient heading depth. */
25
+ title: RemixNode;
26
+ /** Supporting copy under the title. */
27
+ children: RemixNode;
28
+ }
29
+ }
30
+ /**
31
+ * Lays numbered steps in a responsive three-column track that collapses below
32
+ * `lg`. Connector lines appear between items only when the track is wide.
33
+ *
34
+ * @param handle Runtime handle carrying the host `<ol>`'s props.
35
+ * @returns The render function producing the list's markup.
36
+ * @example
37
+ * <StepList>
38
+ * <StepList.Item title={t("step.one")}>{t("step.one.body")}</StepList.Item>
39
+ * <StepList.Item title={t("step.two")}>{t("step.two.body")}</StepList.Item>
40
+ * </StepList>
41
+ */
42
+ export declare function StepList(handle: Handle<StepList.Props>): () => import("remix/component").RemixElement;
43
+ export declare namespace StepList {
44
+ var Item: (handle: Handle<StepList.ItemProps>) => () => import("remix/component").RemixElement;
45
+ }