@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,115 @@
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 { container, gap, grid, gridTemplate, items, vstack } from "@sdxc/u/layout";
5
+ import { at } from "@sdxc/u/responsive";
6
+ import { minIs } from "@sdxc/u/size";
7
+ import { when } from "@sdxc/u/state";
8
+ import { leading, text } from "@sdxc/u/typography";
9
+ /** Which column gets the wider track when `lean` is omitted. */
10
+ const DEFAULT_LEAN = "media";
11
+ /** The check each claim list item is marked with, drawn as a brand-filled mask. */
12
+ 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`;
13
+ /**
14
+ * Lays {@link Split.Copy} and {@link Split.Media} as a two-track grid that
15
+ * collapses to one column below `lg` on its own named container.
16
+ *
17
+ * @param handle Runtime handle carrying the host `<div>`'s props.
18
+ * @returns The render function producing the split's markup.
19
+ * @example
20
+ * <Split lean="copy">
21
+ * <Split.Copy checks>{claims}</Split.Copy>
22
+ * <Split.Media>{shot}</Split.Media>
23
+ * </Split>
24
+ */
25
+ export function Split(handle) {
26
+ return () => {
27
+ let { lean, mix, ...rest } = handle.props;
28
+ let resolvedLean = lean ?? DEFAULT_LEAN;
29
+ let columns = resolvedLean === "copy"
30
+ ? "minmax(0, 1.15fr) minmax(0, 0.85fr)"
31
+ : "minmax(0, 0.85fr) minmax(0, 1.15fr)";
32
+ return (_jsx("div", { ...rest, "data-lean": resolvedLean, "data-slot": "split", mix: [
33
+ container("ui-marketing-split"),
34
+ grid(),
35
+ gap(12),
36
+ items("start"),
37
+ gridTemplate({ columns: "minmax(0, 1fr)" }),
38
+ at("lg", "ui-marketing-split", gridTemplate({ columns })),
39
+ mix,
40
+ ] }));
41
+ };
42
+ }
43
+ /**
44
+ * The prose column of a {@link Split}. Pass `checks` so nested unordered
45
+ * lists read as claim rows with brand check marks.
46
+ *
47
+ * @param handle Runtime handle carrying the host `<div>`'s props.
48
+ * @returns The render function producing the copy column.
49
+ * @example
50
+ * <Split.Copy checks>
51
+ * <ul><li>{t("claim.one")}</li></ul>
52
+ * </Split.Copy>
53
+ */
54
+ Split.Copy = function SplitCopy(handle) {
55
+ return () => {
56
+ let { checks, mix, ...rest } = handle.props;
57
+ return (_jsx("div", { ...rest, "data-slot": "split-copy", "data-checks": checks ? "true" : undefined, mix: [
58
+ vstack({ gap: 6, align: "stretch" }),
59
+ text("lg"),
60
+ leading("relaxed"),
61
+ fg("neutral"),
62
+ checks
63
+ ? [
64
+ when("& ul", raw({
65
+ listStyle: "none",
66
+ padding: "0",
67
+ margin: "0",
68
+ display: "grid",
69
+ gap: "0.625rem",
70
+ })),
71
+ when("& li", raw({
72
+ position: "relative",
73
+ paddingInlineStart: "1.75rem",
74
+ fontSize: "1rem",
75
+ })),
76
+ when("& li::before", raw({
77
+ content: '""',
78
+ position: "absolute",
79
+ insetInlineStart: "0",
80
+ insetBlockStart: "0.3em",
81
+ inlineSize: "1rem",
82
+ blockSize: "1rem",
83
+ backgroundColor: "var(--ui-brand-fg)",
84
+ mask: CHECK_MASK,
85
+ WebkitMask: CHECK_MASK,
86
+ })),
87
+ ]
88
+ : [],
89
+ mix,
90
+ ] }));
91
+ };
92
+ };
93
+ /**
94
+ * The media column of a {@link Split}, sized to the track rather than its
95
+ * content so a long sample does not tower over the copy beside it.
96
+ *
97
+ * @param handle Runtime handle carrying the host `<div>`'s props.
98
+ * @returns The render function producing the media column.
99
+ * @example
100
+ * <Split.Media>
101
+ * <img src={shot} alt={alt} />
102
+ * </Split.Media>
103
+ */
104
+ Split.Media = function SplitMedia(handle) {
105
+ return () => {
106
+ let { mix, ...rest } = handle.props;
107
+ return (_jsx("div", { ...rest, "data-slot": "split-media", mix: [
108
+ vstack({ gap: 4, align: "stretch" }),
109
+ minIs(0),
110
+ text("base"),
111
+ when("& pre", raw({ maxBlockSize: "22rem", overflowY: "auto" })),
112
+ mix,
113
+ ] }));
114
+ };
115
+ };
@@ -0,0 +1,52 @@
1
+ /**
2
+ * A numeric proof strip for marketing bands: each cell carries a value and a
3
+ * label supplied by the page, laid out as a responsive grid with ruled or
4
+ * gapped seams.
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 StatStrip} and its compound parts.
12
+ */
13
+ export declare namespace StatStrip {
14
+ /**
15
+ * How cells meet: a hairline between them, or a gap with no rule.
16
+ */
17
+ type Variant = "ruled" | "gap";
18
+ /**
19
+ * Props accepted by {@link StatStrip}.
20
+ */
21
+ interface Props extends TagProps<"div"> {
22
+ /** Seam treatment. Defaults to {@link DEFAULT_VARIANT}. */
23
+ variant?: Variant;
24
+ /** One or more {@link StatStrip.Item} cells. */
25
+ children: RemixNode;
26
+ }
27
+ /**
28
+ * Props accepted by {@link StatStrip.Item}.
29
+ */
30
+ interface ItemProps extends TagProps<"div"> {
31
+ /** What the number counts — always supplied by the page. */
32
+ label: RemixNode;
33
+ /** The figure itself. */
34
+ children: RemixNode;
35
+ }
36
+ }
37
+ /**
38
+ * Lays {@link StatStrip.Item} children in a responsive grid that starts at two
39
+ * columns and opens to as many as five above `lg` on its own named container.
40
+ *
41
+ * @param handle Runtime handle carrying the host `<div>`'s props.
42
+ * @returns The render function producing the strip's markup.
43
+ * @example
44
+ * <StatStrip>
45
+ * <StatStrip.Item label={t("stats.packages")}>42</StatStrip.Item>
46
+ * <StatStrip.Item label={t("stats.apps")}>12</StatStrip.Item>
47
+ * </StatStrip>
48
+ */
49
+ export declare function StatStrip(handle: Handle<StatStrip.Props>): () => import("remix/component").RemixElement;
50
+ export declare namespace StatStrip {
51
+ var Item: (handle: Handle<StatStrip.ItemProps>) => () => import("remix/component").RemixElement;
52
+ }
@@ -0,0 +1,64 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { borderEdge, fg } from "@sdxc/u/color";
3
+ import { container, gap, grid, gridTemplate, repeat, vstack } from "@sdxc/u/layout";
4
+ import { at } from "@sdxc/u/responsive";
5
+ import { p } from "@sdxc/u/size";
6
+ import { when } from "@sdxc/u/state";
7
+ import { balance, leading, text, tracking, weight } from "@sdxc/u/typography";
8
+ /** Seam treatment {@link StatStrip} applies when `variant` is omitted. */
9
+ const DEFAULT_VARIANT = "ruled";
10
+ /**
11
+ * Lays {@link StatStrip.Item} children in a responsive grid that starts at two
12
+ * columns and opens to as many as five above `lg` on its own named container.
13
+ *
14
+ * @param handle Runtime handle carrying the host `<div>`'s props.
15
+ * @returns The render function producing the strip's markup.
16
+ * @example
17
+ * <StatStrip>
18
+ * <StatStrip.Item label={t("stats.packages")}>42</StatStrip.Item>
19
+ * <StatStrip.Item label={t("stats.apps")}>12</StatStrip.Item>
20
+ * </StatStrip>
21
+ */
22
+ export function StatStrip(handle) {
23
+ return () => {
24
+ let { mix, variant, ...rest } = handle.props;
25
+ let resolvedVariant = variant ?? DEFAULT_VARIANT;
26
+ let isRuled = resolvedVariant === "ruled";
27
+ return (_jsx("div", { ...rest, "data-variant": resolvedVariant, "data-slot": "stat-strip", mix: [
28
+ container("ui-marketing-stat-strip"),
29
+ grid(),
30
+ isRuled ? gap(0) : gap(6),
31
+ gridTemplate({ columns: repeat(2, "minmax(0, 1fr)") }),
32
+ at("lg", "ui-marketing-stat-strip", gridTemplate({ columns: repeat(5, "minmax(0, 1fr)") })),
33
+ when("& > *", [p(6, 5), at("md", "ui-marketing-stat-strip", p(8, 8))]),
34
+ isRuled
35
+ ? when("& > * + *", at("lg", "ui-marketing-stat-strip", borderEdge("inline-start", {
36
+ color: "neutral",
37
+ width: 1,
38
+ style: "solid",
39
+ })))
40
+ : [],
41
+ mix,
42
+ ] }));
43
+ };
44
+ }
45
+ /**
46
+ * One proof cell: the figure as `children`, and what it counts as `label`.
47
+ *
48
+ * @param handle Runtime handle carrying the host `<div>`'s props.
49
+ * @returns The render function producing the cell's markup.
50
+ * @example
51
+ * <StatStrip.Item label={t("stats.uptime")}>99.99%</StatStrip.Item>
52
+ */
53
+ StatStrip.Item = function StatStripItem(handle) {
54
+ return () => {
55
+ let { children, label, mix, ...rest } = handle.props;
56
+ return (_jsxs("div", { ...rest, "data-slot": "stat-strip-item", mix: [vstack({ gap: 1, align: "start" }), mix], children: [_jsx("span", { mix: [
57
+ text("3xl"),
58
+ weight("medium"),
59
+ tracking("tight"),
60
+ leading("none"),
61
+ fg("neutral.emphasis"),
62
+ ], children: children }), _jsx("span", { mix: [text("sm"), leading("snug"), balance(), fg("neutral")], children: label })] }));
63
+ };
64
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * A single emphasized phrase inside a marketing headline — brand color on the
3
+ * span so the surrounding display heading stays one weight and size.
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 AccentText}.
11
+ */
12
+ export declare namespace AccentText {
13
+ /**
14
+ * Props accepted by {@link AccentText}.
15
+ */
16
+ interface Props extends TagProps<"span"> {
17
+ /** The emphasized phrase. */
18
+ children: RemixNode;
19
+ }
20
+ }
21
+ /**
22
+ * Colors a phrase with the brand foreground so a display heading can stress
23
+ * one word without changing weight or inventing a gradient recipe.
24
+ *
25
+ * @param handle Runtime handle carrying the host `<span>`'s props.
26
+ * @returns The render function producing the accent span.
27
+ * @example
28
+ * <Heading size="display">Ship <AccentText>{t("hero.accent")}</AccentText> faster</Heading>
29
+ */
30
+ export declare function AccentText(handle: Handle<AccentText.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "remix/component/jsx-runtime";
2
+ import { fg } from "@sdxc/u/color";
3
+ /**
4
+ * Colors a phrase with the brand foreground so a display heading can stress
5
+ * one word without changing weight or inventing a gradient recipe.
6
+ *
7
+ * @param handle Runtime handle carrying the host `<span>`'s props.
8
+ * @returns The render function producing the accent span.
9
+ * @example
10
+ * <Heading size="display">Ship <AccentText>{t("hero.accent")}</AccentText> faster</Heading>
11
+ */
12
+ export function AccentText(handle) {
13
+ return () => {
14
+ let { mix, ...rest } = handle.props;
15
+ return _jsx("span", { ...rest, "data-slot": "accent-text", mix: [fg("brand"), mix] });
16
+ };
17
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * A short announcement with a stronger rim than the default eyebrow pill —
3
+ * reserved for “new” / forward callouts that should read louder than a band
4
+ * eyebrow.
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 AnnouncementChip}.
12
+ */
13
+ export declare namespace AnnouncementChip {
14
+ /**
15
+ * How the chip draws its edge: a solid brand rim, or a soft dual-tone
16
+ * border for a louder announcement.
17
+ */
18
+ type Variant = "rim" | "special";
19
+ /**
20
+ * Props accepted by {@link AnnouncementChip}.
21
+ */
22
+ interface Props extends TagProps<"span"> {
23
+ /** Rim treatment. Defaults to {@link DEFAULT_VARIANT}. */
24
+ variant?: Variant;
25
+ /** Announcement label — always supplied by the page. */
26
+ children: RemixNode;
27
+ }
28
+ }
29
+ /**
30
+ * Renders a compact announcement label. Prefer {@link MarketingHeader}'s
31
+ * eyebrow for ordinary section labels; reach for this when the callout itself
32
+ * is the news.
33
+ *
34
+ * @param handle Runtime handle carrying the host `<span>`'s props.
35
+ * @returns The render function producing the chip's markup.
36
+ * @example
37
+ * <AnnouncementChip>{t("announce.forward")}</AnnouncementChip>
38
+ * @example
39
+ * <AnnouncementChip variant="special">{t("announce.launch")}</AnnouncementChip>
40
+ */
41
+ export declare function AnnouncementChip(handle: Handle<AnnouncementChip.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,49 @@
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 { raw } from "@sdxc/u/general";
5
+ import { inlineFlex, items } from "@sdxc/u/layout";
6
+ import { pb, pi } from "@sdxc/u/size";
7
+ import { text, textTransform, tracking, weight } from "@sdxc/u/typography";
8
+ /** Rim treatment {@link AnnouncementChip} applies when `variant` is omitted. */
9
+ const DEFAULT_VARIANT = "rim";
10
+ /**
11
+ * Renders a compact announcement label. Prefer {@link MarketingHeader}'s
12
+ * eyebrow for ordinary section labels; reach for this when the callout itself
13
+ * is the news.
14
+ *
15
+ * @param handle Runtime handle carrying the host `<span>`'s props.
16
+ * @returns The render function producing the chip's markup.
17
+ * @example
18
+ * <AnnouncementChip>{t("announce.forward")}</AnnouncementChip>
19
+ * @example
20
+ * <AnnouncementChip variant="special">{t("announce.launch")}</AnnouncementChip>
21
+ */
22
+ export function AnnouncementChip(handle) {
23
+ return () => {
24
+ let { mix, variant, ...rest } = handle.props;
25
+ let resolvedVariant = variant ?? DEFAULT_VARIANT;
26
+ return (_jsx("span", { ...rest, "data-slot": "announcement-chip", "data-variant": resolvedVariant, mix: [
27
+ inlineFlex(),
28
+ items("center"),
29
+ pb(0.5),
30
+ pi(2.5),
31
+ rounded("full"),
32
+ text("xs"),
33
+ weight("semibold"),
34
+ tracking("wider"),
35
+ textTransform("uppercase"),
36
+ bg("brand.tint"),
37
+ fg("brand"),
38
+ resolvedVariant === "special"
39
+ ? raw({
40
+ border: "1px solid transparent",
41
+ backgroundImage: "linear-gradient(var(--ui-brand-bg-tint), var(--ui-brand-bg-tint)), linear-gradient(120deg, var(--ui-brand-bg-solid), color-mix(in oklab, var(--ui-brand-bg-solid) 40%, Canvas))",
42
+ backgroundOrigin: "border-box",
43
+ backgroundClip: "padding-box, border-box",
44
+ })
45
+ : border({ color: "brand", width: 1, style: "solid" }),
46
+ mix,
47
+ ] }));
48
+ };
49
+ }
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Equal columns divided by low-contrast rules — a purpose row or claim strip
3
+ * that needs no card fill. Hairlines come from a 1px gap over the border token.
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 Bento} and its compound parts.
11
+ */
12
+ export declare namespace Bento {
13
+ /**
14
+ * How many cells a wide grid puts on one row.
15
+ */
16
+ type Columns = 2 | 3 | 4;
17
+ /**
18
+ * Props accepted by {@link Bento}.
19
+ */
20
+ interface Props extends TagProps<"div"> {
21
+ /** Columns above the stack breakpoint. Defaults to {@link DEFAULT_COLUMNS}. */
22
+ columns?: Columns;
23
+ /** {@link Bento.Cell} children to lay out. */
24
+ children: RemixNode;
25
+ }
26
+ /**
27
+ * Props accepted by {@link Bento.Cell}.
28
+ */
29
+ interface CellProps extends TagProps<"div"> {
30
+ /** Cell content — typically title + body. */
31
+ children: RemixNode;
32
+ }
33
+ /**
34
+ * Props accepted by {@link Bento.Title}.
35
+ */
36
+ interface TitleProps extends TagProps<"h1"> {
37
+ /** Title copy for the cell. */
38
+ children: RemixNode;
39
+ }
40
+ /**
41
+ * Props accepted by {@link Bento.Body}.
42
+ */
43
+ interface BodyProps extends TagProps<"div"> {
44
+ /** Supporting copy for the cell. */
45
+ children: RemixNode;
46
+ }
47
+ }
48
+ /**
49
+ * Hairline-ruled equal columns that collapse to one track below `md` on their
50
+ * own named container.
51
+ *
52
+ * @param handle Runtime handle carrying the host `<div>`'s props.
53
+ * @returns The render function producing the bento's markup.
54
+ * @example
55
+ * <Bento columns={3}>
56
+ * <Bento.Cell>
57
+ * <Bento.Title>{t("purpose.one")}</Bento.Title>
58
+ * <Bento.Body>{t("purpose.one.body")}</Bento.Body>
59
+ * </Bento.Cell>
60
+ * </Bento>
61
+ */
62
+ export declare function Bento(handle: Handle<Bento.Props>): () => import("remix/component").RemixElement;
63
+ export declare namespace Bento {
64
+ var Cell: (handle: Handle<Bento.CellProps>) => () => import("remix/component").RemixElement;
65
+ var Title: (handle: Handle<Bento.TitleProps>) => () => import("remix/component").RemixElement;
66
+ var Body: (handle: Handle<Bento.BodyProps>) => () => import("remix/component").RemixElement;
67
+ }
@@ -0,0 +1,95 @@
1
+ import { jsx as _jsx } from "remix/component/jsx-runtime";
2
+ import { border, fg } from "@sdxc/u/color";
3
+ import { rounded } from "@sdxc/u/effects";
4
+ import { raw } from "@sdxc/u/general";
5
+ import { container, gap, grid, gridTemplate, repeat, vstack } from "@sdxc/u/layout";
6
+ import { overflow } from "@sdxc/u/overflow";
7
+ import { at } from "@sdxc/u/responsive";
8
+ import { p } from "@sdxc/u/size";
9
+ import { leading, pretty, text, weight } from "@sdxc/u/typography";
10
+ import { resolveHeadingLevel, TAG_BY_LEVEL } from "../components/heading-scope.js";
11
+ /** How many cells a wide {@link Bento} puts on one row when `columns` is omitted. */
12
+ const DEFAULT_COLUMNS = 3;
13
+ /**
14
+ * Hairline-ruled equal columns that collapse to one track below `md` on their
15
+ * own named container.
16
+ *
17
+ * @param handle Runtime handle carrying the host `<div>`'s props.
18
+ * @returns The render function producing the bento's markup.
19
+ * @example
20
+ * <Bento columns={3}>
21
+ * <Bento.Cell>
22
+ * <Bento.Title>{t("purpose.one")}</Bento.Title>
23
+ * <Bento.Body>{t("purpose.one.body")}</Bento.Body>
24
+ * </Bento.Cell>
25
+ * </Bento>
26
+ */
27
+ export function Bento(handle) {
28
+ return () => {
29
+ let { columns, mix, ...rest } = handle.props;
30
+ let resolvedColumns = columns ?? DEFAULT_COLUMNS;
31
+ return (_jsx("div", { ...rest, "data-slot": "bento", "data-columns": String(resolvedColumns), mix: [
32
+ container("ui-marketing-bento"),
33
+ grid(),
34
+ gap("1px"),
35
+ rounded("xl"),
36
+ overflow("hidden"),
37
+ border({ color: "neutral", width: 1, style: "solid" }),
38
+ raw({
39
+ backgroundColor: "var(--ui-neutral-border)",
40
+ textAlign: "start",
41
+ }),
42
+ gridTemplate({ columns: "minmax(0, 1fr)" }),
43
+ at("md", "ui-marketing-bento", [
44
+ gridTemplate({
45
+ columns: repeat(resolvedColumns, "minmax(0, 1fr)"),
46
+ }),
47
+ ]),
48
+ mix,
49
+ ] }));
50
+ };
51
+ }
52
+ /**
53
+ * One bento cell. Compose {@link Bento.Title} and {@link Bento.Body} inside it.
54
+ *
55
+ * @param handle Runtime handle carrying the host `<div>`'s props.
56
+ * @returns The render function producing the cell's markup.
57
+ */
58
+ Bento.Cell = function BentoCell(handle) {
59
+ return () => {
60
+ let { mix, ...rest } = handle.props;
61
+ return (_jsx("div", { ...rest, "data-slot": "bento-cell", mix: [
62
+ vstack({ gap: 3, align: "stretch" }),
63
+ raw({ backgroundColor: "var(--ui-bg, Canvas)" }),
64
+ p(6, 5),
65
+ at("md", "ui-marketing-bento", p(8, 8)),
66
+ mix,
67
+ ] }));
68
+ };
69
+ };
70
+ /**
71
+ * Cell title at the ambient heading depth.
72
+ *
73
+ * @param handle Runtime handle carrying the host heading's props.
74
+ * @returns The render function producing the title.
75
+ */
76
+ Bento.Title = function BentoTitle(handle) {
77
+ return () => {
78
+ let { mix, ...rest } = handle.props;
79
+ let resolved = resolveHeadingLevel(handle);
80
+ let Tag = TAG_BY_LEVEL[resolved];
81
+ return (_jsx(Tag, { ...rest, "data-slot": "bento-title", "data-heading-level": resolved, mix: [text("lg"), weight("medium"), fg("neutral.emphasis"), mix] }));
82
+ };
83
+ };
84
+ /**
85
+ * Supporting copy under a bento title.
86
+ *
87
+ * @param handle Runtime handle carrying the host `<div>`'s props.
88
+ * @returns The render function producing the body.
89
+ */
90
+ Bento.Body = function BentoBody(handle) {
91
+ return () => {
92
+ let { mix, ...rest } = handle.props;
93
+ return (_jsx("div", { ...rest, "data-slot": "bento-body", mix: [text("sm"), leading("relaxed"), pretty(), fg("neutral"), mix] }));
94
+ };
95
+ };
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Checked claim rows for landing CTAs and hero support lists. The mark is a
3
+ * brand-filled mask; every string stays on the page as 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
+ /**
10
+ * Prop types for {@link CheckList}.
11
+ */
12
+ export declare namespace CheckList {
13
+ /**
14
+ * Whether rows stack as a claim list or wrap as a horizontal cluster under
15
+ * a hero CTA.
16
+ */
17
+ type Orientation = "stacked" | "horizontal";
18
+ /**
19
+ * Props accepted by {@link CheckList}.
20
+ */
21
+ interface Props extends TagProps<"ul"> {
22
+ /** Layout axis. Defaults to {@link DEFAULT_ORIENTATION}. */
23
+ orientation?: Orientation;
24
+ /** One or more {@link CheckRow} items. */
25
+ children: RemixNode;
26
+ }
27
+ }
28
+ /**
29
+ * Prop types for {@link CheckRow}.
30
+ */
31
+ export declare namespace CheckRow {
32
+ /**
33
+ * Props accepted by {@link CheckRow}.
34
+ */
35
+ interface Props extends TagProps<"li"> {
36
+ /** Claim copy for the row. */
37
+ children: RemixNode;
38
+ }
39
+ }
40
+ /**
41
+ * Lays {@link CheckRow} children as a stacked claim list or a wrapping
42
+ * horizontal cluster under CTAs.
43
+ *
44
+ * @param handle Runtime handle carrying the host `<ul>`'s props.
45
+ * @returns The render function producing the list's markup.
46
+ * @example
47
+ * <CheckList>
48
+ * <CheckRow>{t("claim.one")}</CheckRow>
49
+ * <CheckRow>{t("claim.two")}</CheckRow>
50
+ * </CheckList>
51
+ * @example
52
+ * <CheckList orientation="horizontal">
53
+ * <CheckRow>{t("claim.fast")}</CheckRow>
54
+ * <CheckRow>{t("claim.free")}</CheckRow>
55
+ * </CheckList>
56
+ */
57
+ export declare function CheckList(handle: Handle<CheckList.Props>): () => import("remix/component").RemixElement;
58
+ /**
59
+ * One checked claim. The brand mark sits in the inline-start gutter; copy is
60
+ * the row's children.
61
+ *
62
+ * @param handle Runtime handle carrying the host `<li>`'s props.
63
+ * @returns The render function producing the row's markup.
64
+ * @example
65
+ * <CheckRow>{t("claim.uptime")}</CheckRow>
66
+ */
67
+ export declare function CheckRow(handle: Handle<CheckRow.Props>): () => import("remix/component").RemixElement;