@sdxc/ui 2026.10.27 → 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 (67) hide show
  1. package/README.md +45 -0
  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/index.d.ts +1 -0
  63. package/dist/styles/index.js +1 -0
  64. package/dist/styles/marketing.d.ts +120 -0
  65. package/dist/styles/marketing.js +225 -0
  66. package/package.json +3 -2
  67. package/src/theme.css +26 -0
@@ -0,0 +1,76 @@
1
+ import { jsx as _jsx } from "remix/component/jsx-runtime";
2
+ import { fg } from "@sdxc/u/color";
3
+ import { raw } from "@sdxc/u/general";
4
+ import { flexWrap, gap, inlineFlex, items, vstack } from "@sdxc/u/layout";
5
+ import { when } from "@sdxc/u/state";
6
+ import { leading, text } from "@sdxc/u/typography";
7
+ /** Axis {@link CheckList} lays rows along when `orientation` is omitted. */
8
+ const DEFAULT_ORIENTATION = "stacked";
9
+ /** The check each row is marked with, drawn as a brand-filled mask. */
10
+ const CHECK_MASK = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat`;
11
+ /**
12
+ * Lays {@link CheckRow} children as a stacked claim list or a wrapping
13
+ * horizontal cluster under CTAs.
14
+ *
15
+ * @param handle Runtime handle carrying the host `<ul>`'s props.
16
+ * @returns The render function producing the list's markup.
17
+ * @example
18
+ * <CheckList>
19
+ * <CheckRow>{t("claim.one")}</CheckRow>
20
+ * <CheckRow>{t("claim.two")}</CheckRow>
21
+ * </CheckList>
22
+ * @example
23
+ * <CheckList orientation="horizontal">
24
+ * <CheckRow>{t("claim.fast")}</CheckRow>
25
+ * <CheckRow>{t("claim.free")}</CheckRow>
26
+ * </CheckList>
27
+ */
28
+ export function CheckList(handle) {
29
+ return () => {
30
+ let { mix, orientation, ...rest } = handle.props;
31
+ let resolvedOrientation = orientation ?? DEFAULT_ORIENTATION;
32
+ let isHorizontal = resolvedOrientation === "horizontal";
33
+ return (_jsx("ul", { ...rest, "data-slot": "check-list", "data-orientation": resolvedOrientation, mix: [
34
+ raw({ listStyle: "none", padding: "0", margin: "0" }),
35
+ isHorizontal
36
+ ? [inlineFlex(), flexWrap(), items("center"), gap(4)]
37
+ : [vstack({ gap: 2.5, align: "stretch" })],
38
+ mix,
39
+ ] }));
40
+ };
41
+ }
42
+ /**
43
+ * One checked claim. The brand mark sits in the inline-start gutter; copy is
44
+ * the row's children.
45
+ *
46
+ * @param handle Runtime handle carrying the host `<li>`'s props.
47
+ * @returns The render function producing the row's markup.
48
+ * @example
49
+ * <CheckRow>{t("claim.uptime")}</CheckRow>
50
+ */
51
+ export function CheckRow(handle) {
52
+ return () => {
53
+ let { mix, ...rest } = handle.props;
54
+ return (_jsx("li", { ...rest, "data-slot": "check-row", mix: [
55
+ raw({
56
+ position: "relative",
57
+ paddingInlineStart: "1.75rem",
58
+ }),
59
+ text("base"),
60
+ leading("snug"),
61
+ fg("neutral"),
62
+ when("&::before", raw({
63
+ content: '""',
64
+ position: "absolute",
65
+ insetInlineStart: "0",
66
+ insetBlockStart: "0.3em",
67
+ inlineSize: "1rem",
68
+ blockSize: "1rem",
69
+ backgroundColor: "var(--ui-brand-fg)",
70
+ mask: CHECK_MASK,
71
+ WebkitMask: CHECK_MASK,
72
+ })),
73
+ mix,
74
+ ] }));
75
+ };
76
+ }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Closing call-to-action band: inverse or tinted section with a title, lead,
3
+ * and action cluster. Encodes the catalog closing pattern.
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
+ import { MarketingSection } from "../components/marketing-section.js";
10
+ /**
11
+ * Prop types for {@link ClosingCta}.
12
+ */
13
+ export declare namespace ClosingCta {
14
+ /**
15
+ * Band fill forwarded to {@link MarketingSection}. Prefer `"inverse"` or
16
+ * `"tinted"` so the close reads as a distinct final statement.
17
+ */
18
+ type Tone = MarketingSection.Tone;
19
+ /**
20
+ * Per-part styling for slots the band composes.
21
+ */
22
+ interface PartsProps {
23
+ /** Styling for the title. */
24
+ title?: TagProps<"h1">["mix"];
25
+ /** Styling for the lead. */
26
+ description?: TagProps<"p">["mix"];
27
+ /** Styling for the {@link CtaGroup}. */
28
+ actions?: TagProps<"div">["mix"];
29
+ }
30
+ /**
31
+ * Props accepted by {@link ClosingCta}.
32
+ */
33
+ interface Props extends Omit<MarketingSection.Props, "children" | "tone" | "align" | "title" | "parts"> {
34
+ /** Band fill. Defaults to {@link DEFAULT_TONE}. */
35
+ tone?: Tone;
36
+ /** Optional eyebrow above the title. */
37
+ eyebrow?: RemixNode;
38
+ /** Closing title — required, always supplied by the page. */
39
+ title: RemixNode;
40
+ /** Supporting lead under the title. */
41
+ description?: RemixNode;
42
+ /** Primary/secondary actions rendered inside a {@link CtaGroup}. */
43
+ actions?: RemixNode;
44
+ /** Per-part styling for title, lead, and actions. */
45
+ parts?: PartsProps;
46
+ }
47
+ }
48
+ /**
49
+ * Renders a centered closing band with chapter title, optional lead, and CTAs.
50
+ *
51
+ * @param handle Runtime handle carrying the band's props.
52
+ * @returns The render function producing the band's markup.
53
+ * @example
54
+ * <ClosingCta
55
+ * title={t("close.title")}
56
+ * description={t("close.lead")}
57
+ * actions={<Button size="lg">{t("close.cta")}</Button>}
58
+ * />
59
+ */
60
+ export declare function ClosingCta(handle: Handle<ClosingCta.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,31 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { vstack } from "@sdxc/u/layout";
3
+ import { CtaGroup } from "../components/cta-group.js";
4
+ import { HeadingScope } from "../components/heading-scope.js";
5
+ import { MarketingHeader } from "../components/marketing-header.js";
6
+ import { MarketingSection } from "../components/marketing-section.js";
7
+ /** Band fill {@link ClosingCta} applies when `tone` is omitted. */
8
+ const DEFAULT_TONE = "inverse";
9
+ /**
10
+ * Renders a centered closing band with chapter title, optional lead, and CTAs.
11
+ *
12
+ * @param handle Runtime handle carrying the band's props.
13
+ * @returns The render function producing the band's markup.
14
+ * @example
15
+ * <ClosingCta
16
+ * title={t("close.title")}
17
+ * description={t("close.lead")}
18
+ * actions={<Button size="lg">{t("close.cta")}</Button>}
19
+ * />
20
+ */
21
+ export function ClosingCta(handle) {
22
+ return () => {
23
+ let { actions, description, eyebrow, mix, parts, spacing, title, tone, ...rest } = handle.props;
24
+ let resolvedTone = tone ?? DEFAULT_TONE;
25
+ let resolvedSpacing = spacing ?? "normal";
26
+ return (_jsx(MarketingSection, { ...rest, tone: resolvedTone, spacing: resolvedSpacing, align: "center", mix: mix, children: _jsx(HeadingScope, { children: _jsxs("div", { mix: [vstack({ gap: 6, align: "center" })], children: [_jsx(MarketingHeader, { eyebrow: eyebrow, description: description, align: "center", parts: {
27
+ title: parts?.title,
28
+ description: parts?.description,
29
+ }, children: title }), actions ? _jsx(CtaGroup, { mix: [parts?.actions], children: actions }) : null] }) }) }));
30
+ };
31
+ }
@@ -0,0 +1,63 @@
1
+ /**
2
+ * A titled mono panel for install samples, CLI output, or code snippets on a
3
+ * landing. The optional actions slot holds a copy control the page supplies;
4
+ * the library never invents a clipboard button.
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 CodeStage}.
12
+ */
13
+ export declare namespace CodeStage {
14
+ /**
15
+ * Surface treatment: a light code card, or a darker terminal panel.
16
+ */
17
+ type Variant = "code" | "terminal";
18
+ /**
19
+ * Per-part styling for chrome the stage renders besides its host.
20
+ */
21
+ interface PartsProps {
22
+ /** Styling for the optional title bar. */
23
+ header?: TagProps<"div">["mix"];
24
+ /** Styling for the mono body that wraps children. */
25
+ body?: TagProps<"pre">["mix"];
26
+ }
27
+ /**
28
+ * Props accepted by {@link CodeStage}.
29
+ */
30
+ interface Props extends Omit<TagProps<"div">, "title"> {
31
+ /** Surface treatment. Defaults to {@link DEFAULT_VARIANT}. */
32
+ variant?: Variant;
33
+ /** Optional title or path shown in the header. */
34
+ title?: RemixNode;
35
+ /** Optional trailing control in the header — typically a copy button. */
36
+ actions?: RemixNode;
37
+ /** Per-part styling for header and body. */
38
+ parts?: PartsProps;
39
+ /** Mono body content — a command, snippet, or terminal output. */
40
+ children: RemixNode;
41
+ }
42
+ }
43
+ /**
44
+ * Renders an optional titled header and a mono body. Prefer
45
+ * `variant="terminal"` when the sample should read as a shell session.
46
+ *
47
+ * @param handle Runtime handle carrying the host `<div>`'s props.
48
+ * @returns The render function producing the stage's markup.
49
+ * @example
50
+ * <CodeStage title="install.sh" actions={copyControl}>
51
+ * {t("install.command")}
52
+ * </CodeStage>
53
+ * @example
54
+ * <CodeStage variant="terminal" title={t("cli.prompt")}>
55
+ * {t("cli.output")}
56
+ * </CodeStage>
57
+ */
58
+ export declare function CodeStage(handle: Handle<CodeStage.Props>): () => import("remix/component").RemixElement;
59
+ /**
60
+ * Alias for {@link CodeStage} with terminal chrome — same props, same host.
61
+ * Prefer this name when the sample is a shell session rather than a file.
62
+ */
63
+ export declare const TerminalPanel: typeof CodeStage;
@@ -0,0 +1,82 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { bg, border, fg } from "@sdxc/u/color";
3
+ import { rounded } from "@sdxc/u/effects";
4
+ import { raw } from "@sdxc/u/general";
5
+ import { hstack, vstack } from "@sdxc/u/layout";
6
+ import { overflowX } from "@sdxc/u/overflow";
7
+ import { m, p } from "@sdxc/u/size";
8
+ import { font, text, weight } from "@sdxc/u/typography";
9
+ /** Panel chrome {@link CodeStage} applies when `variant` is omitted. */
10
+ const DEFAULT_VARIANT = "code";
11
+ /**
12
+ * Renders an optional titled header and a mono body. Prefer
13
+ * `variant="terminal"` when the sample should read as a shell session.
14
+ *
15
+ * @param handle Runtime handle carrying the host `<div>`'s props.
16
+ * @returns The render function producing the stage's markup.
17
+ * @example
18
+ * <CodeStage title="install.sh" actions={copyControl}>
19
+ * {t("install.command")}
20
+ * </CodeStage>
21
+ * @example
22
+ * <CodeStage variant="terminal" title={t("cli.prompt")}>
23
+ * {t("cli.output")}
24
+ * </CodeStage>
25
+ */
26
+ export function CodeStage(handle) {
27
+ return () => {
28
+ let { actions, children, mix, parts, title, variant, ...rest } = handle.props;
29
+ let resolvedVariant = variant ?? DEFAULT_VARIANT;
30
+ let isTerminal = resolvedVariant === "terminal";
31
+ let showHeader = title !== undefined || actions !== undefined;
32
+ return (_jsxs("div", { ...rest, "data-slot": "code-stage", "data-variant": resolvedVariant, mix: [
33
+ vstack({ gap: 0, align: "stretch" }),
34
+ rounded("lg"),
35
+ border({ color: "neutral", width: 1, style: "solid" }),
36
+ isTerminal
37
+ ? [
38
+ raw({
39
+ backgroundColor: "color-mix(in oklab, CanvasText 92%, Canvas)",
40
+ color: "Canvas",
41
+ }),
42
+ ]
43
+ : bg(),
44
+ mix,
45
+ ], children: [showHeader ? (_jsxs("div", { mix: [
46
+ hstack({ gap: 2, align: "center", justify: "between" }),
47
+ p(2, 2, 2, 3),
48
+ raw({
49
+ borderBlockEndWidth: "1px",
50
+ borderBlockEndStyle: "solid",
51
+ borderBlockEndColor: isTerminal
52
+ ? "color-mix(in oklab, Canvas 18%, transparent)"
53
+ : "var(--ui-neutral-border)",
54
+ }),
55
+ parts?.header,
56
+ ], children: [title ? (_jsx("span", { mix: [
57
+ font("mono"),
58
+ text("sm"),
59
+ weight("medium"),
60
+ isTerminal ? fg("neutral.muted") : fg("neutral"),
61
+ isTerminal ? raw({ color: "color-mix(in oklab, Canvas 70%, transparent)" }) : [],
62
+ ], children: title })) : (_jsx("span", {})), actions] })) : null, _jsx("pre", { mix: [
63
+ m(0),
64
+ p(4),
65
+ font("mono"),
66
+ text("sm"),
67
+ overflowX("auto"),
68
+ raw({
69
+ overscrollBehaviorInline: "contain",
70
+ whiteSpace: "pre-wrap",
71
+ overflowWrap: "anywhere",
72
+ }),
73
+ isTerminal ? raw({ color: "Canvas" }) : fg("neutral.emphasis"),
74
+ parts?.body,
75
+ ], children: children })] }));
76
+ };
77
+ }
78
+ /**
79
+ * Alias for {@link CodeStage} with terminal chrome — same props, same host.
80
+ * Prefer this name when the sample is a shell session rather than a file.
81
+ */
82
+ export const TerminalPanel = CodeStage;
@@ -0,0 +1,67 @@
1
+ /**
2
+ * FAQ band: a {@link MarketingHeader} over one or two {@link Accordion}
3
+ * columns. The page supplies every question and answer as accordion children.
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
+ import { MarketingSection } from "../components/marketing-section.js";
10
+ /**
11
+ * Prop types for {@link FaqBand}.
12
+ */
13
+ export declare namespace FaqBand {
14
+ /**
15
+ * How many accordion columns to lay out above the stack breakpoint.
16
+ */
17
+ type Columns = 1 | 2;
18
+ /**
19
+ * Band fill forwarded to {@link MarketingSection}.
20
+ */
21
+ type Tone = MarketingSection.Tone;
22
+ /**
23
+ * Per-part styling for slots the band composes.
24
+ */
25
+ interface PartsProps {
26
+ /** Styling for the header title. */
27
+ title?: TagProps<"h1">["mix"];
28
+ /** Styling for the header lead. */
29
+ description?: TagProps<"p">["mix"];
30
+ /** Styling for the accordion column grid. */
31
+ columns?: TagProps<"div">["mix"];
32
+ }
33
+ /**
34
+ * Props accepted by {@link FaqBand}.
35
+ */
36
+ interface Props extends Omit<MarketingSection.Props, "children" | "tone" | "title" | "parts"> {
37
+ /** Column count. Defaults to {@link DEFAULT_COLUMNS}. */
38
+ columns?: Columns;
39
+ /** Band fill. Defaults to {@link DEFAULT_TONE}. */
40
+ tone?: Tone;
41
+ /** Optional eyebrow above the title. */
42
+ eyebrow?: RemixNode;
43
+ /** Section title — required, always supplied by the page. */
44
+ title: RemixNode;
45
+ /** Supporting lead under the title. */
46
+ description?: RemixNode;
47
+ /**
48
+ * Accordion column(s). Pass one {@link Accordion} for a single column,
49
+ * or two for a split FAQ — the band lays them in a responsive grid.
50
+ */
51
+ children: RemixNode;
52
+ /** Per-part styling for title, lead, and columns. */
53
+ parts?: PartsProps;
54
+ }
55
+ }
56
+ /**
57
+ * Renders a FAQ band with a chapter header and one or two accordion columns.
58
+ *
59
+ * @param handle Runtime handle carrying the band's props.
60
+ * @returns The render function producing the band's markup.
61
+ * @example
62
+ * <FaqBand title={t("faq.title")} columns={2}>
63
+ * <Accordion>{leftItems}</Accordion>
64
+ * <Accordion>{rightItems}</Accordion>
65
+ * </FaqBand>
66
+ */
67
+ export declare function FaqBand(handle: Handle<FaqBand.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,43 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { container, gap, grid, gridTemplate, vstack } from "@sdxc/u/layout";
3
+ import { at } from "@sdxc/u/responsive";
4
+ import { HeadingScope } from "../components/heading-scope.js";
5
+ import { MarketingHeader } from "../components/marketing-header.js";
6
+ import { MarketingSection } from "../components/marketing-section.js";
7
+ /** How many accordion columns {@link FaqBand} uses when `columns` is omitted. */
8
+ const DEFAULT_COLUMNS = 1;
9
+ /** Band fill {@link FaqBand} applies when `tone` is omitted. */
10
+ const DEFAULT_TONE = "plain";
11
+ /**
12
+ * Renders a FAQ band with a chapter header and one or two accordion columns.
13
+ *
14
+ * @param handle Runtime handle carrying the band's props.
15
+ * @returns The render function producing the band's markup.
16
+ * @example
17
+ * <FaqBand title={t("faq.title")} columns={2}>
18
+ * <Accordion>{leftItems}</Accordion>
19
+ * <Accordion>{rightItems}</Accordion>
20
+ * </FaqBand>
21
+ */
22
+ export function FaqBand(handle) {
23
+ return () => {
24
+ let { children, columns, description, eyebrow, mix, parts, ruled, spacing, title, tone, ...rest } = handle.props;
25
+ let resolvedColumns = columns ?? DEFAULT_COLUMNS;
26
+ let resolvedTone = tone ?? DEFAULT_TONE;
27
+ let resolvedSpacing = spacing ?? "normal";
28
+ let isTwo = resolvedColumns === 2;
29
+ return (_jsx(MarketingSection, { ...rest, tone: resolvedTone, spacing: resolvedSpacing, ruled: ruled, mix: mix, children: _jsx(HeadingScope, { children: _jsxs("div", { mix: [vstack({ gap: 0, align: "stretch" })], children: [_jsx(MarketingHeader, { eyebrow: eyebrow, description: description, parts: {
30
+ title: parts?.title,
31
+ description: parts?.description,
32
+ }, children: title }), _jsx("div", { "data-columns": String(resolvedColumns), mix: [
33
+ container("ui-marketing-faq"),
34
+ grid(),
35
+ gap(8),
36
+ gridTemplate({ columns: "minmax(0, 1fr)" }),
37
+ isTwo
38
+ ? at("lg", "ui-marketing-faq", gridTemplate({ columns: "minmax(0, 1fr) minmax(0, 1fr)" }))
39
+ : [],
40
+ parts?.columns,
41
+ ], children: children })] }) }) }));
42
+ };
43
+ }
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Mid-page feature band: a {@link MarketingHeader} plus either a {@link Split},
3
+ * a {@link Feature.Grid}, or a {@link StepList}, selected by `layout`.
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
+ import { Feature } from "../components/feature.js";
10
+ import { MarketingHeader } from "../components/marketing-header.js";
11
+ import { MarketingSection } from "../components/marketing-section.js";
12
+ import { Split } from "../components/split.js";
13
+ /**
14
+ * Prop types for {@link FeatureBand}.
15
+ */
16
+ export declare namespace FeatureBand {
17
+ /**
18
+ * How the band body lays out under the header.
19
+ */
20
+ type Layout = "split" | "grid" | "steps";
21
+ /**
22
+ * Band fill forwarded to {@link MarketingSection}.
23
+ */
24
+ type Tone = MarketingSection.Tone;
25
+ /**
26
+ * Per-part styling for slots the band composes.
27
+ */
28
+ interface PartsProps {
29
+ /** Styling for the header title. */
30
+ title?: TagProps<"h1">["mix"];
31
+ /** Styling for the header lead. */
32
+ description?: TagProps<"p">["mix"];
33
+ /** Styling for the media column when `layout="split"`. */
34
+ media?: TagProps<"div">["mix"];
35
+ }
36
+ /**
37
+ * Props accepted by {@link FeatureBand}.
38
+ */
39
+ interface Props extends Omit<MarketingSection.Props, "children" | "tone" | "title" | "parts"> {
40
+ /** Body layout. Defaults to {@link DEFAULT_LAYOUT}. */
41
+ layout?: Layout;
42
+ /** Band fill. Defaults to {@link DEFAULT_TONE}. */
43
+ tone?: Tone;
44
+ /** Optional eyebrow above the title. */
45
+ eyebrow?: RemixNode;
46
+ /** Eyebrow chrome forwarded to {@link MarketingHeader}. */
47
+ eyebrowVariant?: MarketingHeader.EyebrowVariant;
48
+ /** Section title — required, always supplied by the page. */
49
+ title: RemixNode;
50
+ /** Supporting lead under the title. */
51
+ description?: RemixNode;
52
+ /**
53
+ * Media for `layout="split"`. Ignored for `"grid"` and `"steps"`.
54
+ */
55
+ media?: RemixNode;
56
+ /** Which column is wider when `layout="split"`. */
57
+ lean?: Split.Lean;
58
+ /** Grid column count when `layout="grid"`. */
59
+ columns?: Feature.Columns;
60
+ /**
61
+ * Body content: claim list / copy for `"split"`, {@link Feature} cells
62
+ * for `"grid"`, or {@link StepList.Item} children for `"steps"`.
63
+ */
64
+ children?: RemixNode;
65
+ /** Per-part styling for title, lead, and media. */
66
+ parts?: PartsProps;
67
+ }
68
+ }
69
+ /**
70
+ * Renders a feature band with a chapter header and a split, grid, or steps
71
+ * body. Opens a nested {@link HeadingScope} so cell titles sit under the
72
+ * section heading.
73
+ *
74
+ * @param handle Runtime handle carrying the band's props.
75
+ * @returns The render function producing the band's markup.
76
+ * @example
77
+ * <FeatureBand layout="split" title={t("f1.title")} description={t("f1.lead")} media={shot}>
78
+ * <ul><li>{t("f1.claim")}</li></ul>
79
+ * </FeatureBand>
80
+ * @example
81
+ * <FeatureBand layout="grid" title={t("grid.title")} columns={3}>
82
+ * <Feature>...</Feature>
83
+ * </FeatureBand>
84
+ */
85
+ export declare function FeatureBand(handle: Handle<FeatureBand.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,50 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { vstack } from "@sdxc/u/layout";
3
+ import { Feature } from "../components/feature.js";
4
+ import { HeadingScope } from "../components/heading-scope.js";
5
+ import { MarketingHeader } from "../components/marketing-header.js";
6
+ import { MarketingSection } from "../components/marketing-section.js";
7
+ import { Split } from "../components/split.js";
8
+ import { StepList } from "./step-list.js";
9
+ /** Layout {@link FeatureBand} applies when `layout` is omitted. */
10
+ const DEFAULT_LAYOUT = "split";
11
+ /** Band fill {@link FeatureBand} applies when `tone` is omitted. */
12
+ const DEFAULT_TONE = "plain";
13
+ /**
14
+ * Renders a feature band with a chapter header and a split, grid, or steps
15
+ * body. Opens a nested {@link HeadingScope} so cell titles sit under the
16
+ * section heading.
17
+ *
18
+ * @param handle Runtime handle carrying the band's props.
19
+ * @returns The render function producing the band's markup.
20
+ * @example
21
+ * <FeatureBand layout="split" title={t("f1.title")} description={t("f1.lead")} media={shot}>
22
+ * <ul><li>{t("f1.claim")}</li></ul>
23
+ * </FeatureBand>
24
+ * @example
25
+ * <FeatureBand layout="grid" title={t("grid.title")} columns={3}>
26
+ * <Feature>...</Feature>
27
+ * </FeatureBand>
28
+ */
29
+ export function FeatureBand(handle) {
30
+ return () => {
31
+ let { children, columns, description, eyebrow, eyebrowVariant, layout, lean, media, mix, parts, ruled, spacing, title, tone, ...rest } = handle.props;
32
+ let resolvedLayout = layout ?? DEFAULT_LAYOUT;
33
+ let resolvedTone = tone ?? DEFAULT_TONE;
34
+ let resolvedSpacing = spacing ?? "normal";
35
+ let body = _jsx("div", { mix: [vstack({ gap: 4, align: "stretch" })], children: children });
36
+ if (resolvedLayout === "grid") {
37
+ body = _jsx(Feature.Grid, { columns: columns, children: children });
38
+ }
39
+ else if (resolvedLayout === "steps") {
40
+ body = _jsx(StepList, { children: children });
41
+ }
42
+ else if (media !== undefined) {
43
+ body = (_jsxs(Split, { lean: lean, children: [_jsx(Split.Copy, { checks: Boolean(children), children: children }), _jsx(Split.Media, { mix: [parts?.media], children: media })] }));
44
+ }
45
+ return (_jsx(MarketingSection, { ...rest, tone: resolvedTone, spacing: resolvedSpacing, ruled: ruled, mix: mix, children: _jsx(HeadingScope, { children: _jsxs("div", { mix: [vstack({ gap: 0, align: "stretch" })], children: [_jsx(MarketingHeader, { eyebrow: eyebrow, eyebrowVariant: eyebrowVariant, description: description, parts: {
46
+ title: parts?.title,
47
+ description: parts?.description,
48
+ }, children: title }), _jsx(HeadingScope, { children: body })] }) }) }));
49
+ };
50
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * A tinted rounded square that holds a marketing metaphor glyph. Distinct from
3
+ * product-chrome icons (~14px stroke) and UI chrome (chevrons, copy, search) —
4
+ * wells are the claim-cell affordance size.
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 IconWell}.
12
+ */
13
+ export declare namespace IconWell {
14
+ /**
15
+ * Well footprint: compact for dense grids, medium for feature cells, large
16
+ * for hero metaphors.
17
+ */
18
+ type Size = "sm" | "md" | "lg";
19
+ /**
20
+ * Props accepted by {@link IconWell}.
21
+ */
22
+ interface Props extends TagProps<"span"> {
23
+ /** Footprint. Defaults to {@link DEFAULT_SIZE}. */
24
+ size?: Size;
25
+ /** Glyph rendered inside the well — typically an `@sdxc/icons` icon. */
26
+ children: RemixNode;
27
+ }
28
+ }
29
+ /**
30
+ * Centers a glyph in a brand-tinted rounded square so marketing claim icons
31
+ * share one size language across bands.
32
+ *
33
+ * @param handle Runtime handle carrying the host `<span>`'s props.
34
+ * @returns The render function producing the well's markup.
35
+ * @example
36
+ * <IconWell><ZapIcon size={18} aria-hidden="true" /></IconWell>
37
+ */
38
+ export declare function IconWell(handle: Handle<IconWell.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx } from "remix/component/jsx-runtime";
2
+ import { bg, border, fg } from "@sdxc/u/color";
3
+ import { rounded } from "@sdxc/u/effects";
4
+ import { center, inlineFlex } from "@sdxc/u/layout";
5
+ import { bs, is } from "@sdxc/u/size";
6
+ /** Side length {@link IconWell} applies when `size` is omitted. */
7
+ const DEFAULT_SIZE = "md";
8
+ /**
9
+ * Centers a glyph in a brand-tinted rounded square so marketing claim icons
10
+ * share one size language across bands.
11
+ *
12
+ * @param handle Runtime handle carrying the host `<span>`'s props.
13
+ * @returns The render function producing the well's markup.
14
+ * @example
15
+ * <IconWell><ZapIcon size={18} aria-hidden="true" /></IconWell>
16
+ */
17
+ export function IconWell(handle) {
18
+ return () => {
19
+ let { mix, size, ...rest } = handle.props;
20
+ let resolvedSize = size ?? DEFAULT_SIZE;
21
+ let side = 10;
22
+ if (resolvedSize === "sm")
23
+ side = 8;
24
+ else if (resolvedSize === "lg")
25
+ side = 12;
26
+ return (_jsx("span", { ...rest, "data-slot": "icon-well", "data-size": resolvedSize, mix: [
27
+ inlineFlex(),
28
+ center(),
29
+ is(side),
30
+ bs(side),
31
+ rounded("lg"),
32
+ bg("brand.tint"),
33
+ fg("brand"),
34
+ border({ color: "brand", width: 1, style: "solid" }),
35
+ mix,
36
+ ] }));
37
+ };
38
+ }
@@ -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";