@sdxc/ui 2026.10.29 → 2026.10.30
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/dist/components/feature.js +28 -29
- package/dist/components/marketing-section.d.ts +10 -4
- package/dist/components/marketing-section.js +32 -18
- package/dist/components/split.d.ts +5 -2
- package/dist/components/split.js +13 -12
- package/dist/components/stat-strip.d.ts +5 -2
- package/dist/components/stat-strip.js +20 -19
- package/dist/patterns/bento.d.ts +3 -2
- package/dist/patterns/bento.js +21 -22
- package/dist/patterns/faq-band.d.ts +2 -0
- package/dist/patterns/faq-band.js +10 -10
- package/dist/patterns/step-list.d.ts +4 -2
- package/dist/patterns/step-list.js +15 -14
- package/package.json +2 -2
|
@@ -34,7 +34,7 @@ export function Feature(handle) {
|
|
|
34
34
|
vstack({ gap: 4, align: "stretch" }),
|
|
35
35
|
bg(),
|
|
36
36
|
p(8, 6),
|
|
37
|
-
at("
|
|
37
|
+
at("lg", p(10, 10)),
|
|
38
38
|
when('&[data-variant="panel"]', [
|
|
39
39
|
bg("neutral.tint"),
|
|
40
40
|
border({ color: "neutral", width: 1, style: "solid" }),
|
|
@@ -105,9 +105,10 @@ Feature.Action = function FeatureAction(handle) {
|
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
107
|
/**
|
|
108
|
-
* Hairline-ruled grid of {@link Feature} cells.
|
|
109
|
-
*
|
|
110
|
-
* a
|
|
108
|
+
* Hairline-ruled grid of {@link Feature} cells. The host is the named sizing
|
|
109
|
+
* container; an inner wrapper holds the grid and `@container` column tracks so
|
|
110
|
+
* the query can restyle a descendant. Collapses to one column below `lg`
|
|
111
|
+
* (48rem), matching the landing's original viewport threshold.
|
|
111
112
|
*
|
|
112
113
|
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
113
114
|
* @returns The render function producing the grid.
|
|
@@ -120,32 +121,30 @@ Feature.Action = function FeatureAction(handle) {
|
|
|
120
121
|
*/
|
|
121
122
|
Feature.Grid = function FeatureGrid(handle) {
|
|
122
123
|
return () => {
|
|
123
|
-
let { columns, mix, ...rest } = handle.props;
|
|
124
|
+
let { children, columns, mix, ...rest } = handle.props;
|
|
124
125
|
let resolvedColumns = columns ?? DEFAULT_COLUMNS;
|
|
125
|
-
return (_jsx("div", { ...rest, "data-columns": String(resolvedColumns), "data-slot": "feature-grid", mix: [
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
textAlign: "start",
|
|
135
|
-
}),
|
|
136
|
-
gridTemplate({ columns: "minmax(0, 1fr)" }),
|
|
137
|
-
at("md", "ui-marketing-feature-grid", [
|
|
138
|
-
gridTemplate({
|
|
139
|
-
columns: repeat(resolvedColumns, "minmax(0, 1fr)"),
|
|
126
|
+
return (_jsx("div", { ...rest, "data-columns": String(resolvedColumns), "data-slot": "feature-grid", mix: [container("ui-marketing-feature-grid"), mix], children: _jsx("div", { mix: [
|
|
127
|
+
grid(),
|
|
128
|
+
gap("1px"),
|
|
129
|
+
rounded("xl"),
|
|
130
|
+
overflow("hidden"),
|
|
131
|
+
border({ color: "neutral", width: 1, style: "solid" }),
|
|
132
|
+
raw({
|
|
133
|
+
backgroundColor: "var(--ui-neutral-border)",
|
|
134
|
+
textAlign: "start",
|
|
140
135
|
}),
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
136
|
+
gridTemplate({ columns: "minmax(0, 1fr)" }),
|
|
137
|
+
at("lg", "ui-marketing-feature-grid", [
|
|
138
|
+
gridTemplate({
|
|
139
|
+
columns: repeat(resolvedColumns, "minmax(0, 1fr)"),
|
|
140
|
+
}),
|
|
141
|
+
resolvedColumns === 2
|
|
142
|
+
? when("& > :last-child:nth-child(odd)", raw({ gridColumn: "1 / -1" }))
|
|
143
|
+
: [
|
|
144
|
+
when("& > :last-child:nth-child(3n + 1)", raw({ gridColumn: "1 / -1" })),
|
|
145
|
+
when("& > :last-child:nth-child(3n + 2)", raw({ gridColumn: "span 2" })),
|
|
146
|
+
],
|
|
147
|
+
]),
|
|
148
|
+
], children: children }) }));
|
|
150
149
|
};
|
|
151
150
|
};
|
|
@@ -55,6 +55,12 @@ export declare namespace MarketingSection {
|
|
|
55
55
|
ruled?: boolean;
|
|
56
56
|
/** Outer chrome. Defaults to {@link DEFAULT_VARIANT}. */
|
|
57
57
|
variant?: Variant;
|
|
58
|
+
/**
|
|
59
|
+
* Zeroes block padding on a framed column so a flush strip (stats) keeps
|
|
60
|
+
* full-height rails without the section gap. Ignored when `variant` is
|
|
61
|
+
* not `"frame"`.
|
|
62
|
+
*/
|
|
63
|
+
flush?: boolean;
|
|
58
64
|
/** Per-part styling for the measured inner column. */
|
|
59
65
|
parts?: PartsProps;
|
|
60
66
|
/** Band content — headers, splits, feature grids, and so on. */
|
|
@@ -62,10 +68,10 @@ export declare namespace MarketingSection {
|
|
|
62
68
|
}
|
|
63
69
|
}
|
|
64
70
|
/**
|
|
65
|
-
* Renders a marketing band: tone
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
71
|
+
* Renders a marketing band: tone on the `<section>`, a named container for
|
|
72
|
+
* descendant queries, and a measured inner column. When `variant="frame"`,
|
|
73
|
+
* block padding lives on that column with the dashed rails so the rails run
|
|
74
|
+
* the full band height instead of stopping at the content box.
|
|
69
75
|
*
|
|
70
76
|
* @param handle Runtime handle carrying the host `<section>`'s props.
|
|
71
77
|
* @returns The render function producing the band's markup.
|
|
@@ -3,7 +3,7 @@ import { borderEdge } from "@sdxc/u/color";
|
|
|
3
3
|
import { raw } from "@sdxc/u/general";
|
|
4
4
|
import { container, relative, vstack } from "@sdxc/u/layout";
|
|
5
5
|
import { at } from "@sdxc/u/responsive";
|
|
6
|
-
import { is } from "@sdxc/u/size";
|
|
6
|
+
import { is, maxIs, mi, pi } from "@sdxc/u/size";
|
|
7
7
|
import { after, before } from "@sdxc/u/state";
|
|
8
8
|
import { textAlign } from "@sdxc/u/typography";
|
|
9
9
|
import { marketingBandTone, marketingContainer, marketingHairline, marketingSectionSpace, } from "../styles/marketing.js";
|
|
@@ -16,10 +16,10 @@ const DEFAULT_ALIGN = "start";
|
|
|
16
16
|
/** Chrome {@link MarketingSection} applies when `variant` is omitted. */
|
|
17
17
|
const DEFAULT_VARIANT = "default";
|
|
18
18
|
/**
|
|
19
|
-
* Renders a marketing band: tone
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
19
|
+
* Renders a marketing band: tone on the `<section>`, a named container for
|
|
20
|
+
* descendant queries, and a measured inner column. When `variant="frame"`,
|
|
21
|
+
* block padding lives on that column with the dashed rails so the rails run
|
|
22
|
+
* the full band height instead of stopping at the content box.
|
|
23
23
|
*
|
|
24
24
|
* @param handle Runtime handle carrying the host `<section>`'s props.
|
|
25
25
|
* @returns The render function producing the band's markup.
|
|
@@ -34,35 +34,42 @@ const DEFAULT_VARIANT = "default";
|
|
|
34
34
|
*/
|
|
35
35
|
export function MarketingSection(handle) {
|
|
36
36
|
return () => {
|
|
37
|
-
let { align, children, mix, parts, ruled, spacing, tone, variant, ...rest } = handle.props;
|
|
37
|
+
let { align, children, flush, mix, parts, ruled, spacing, tone, variant, ...rest } = handle.props;
|
|
38
38
|
let resolvedTone = tone ?? DEFAULT_TONE;
|
|
39
39
|
let resolvedSpacing = spacing ?? DEFAULT_SPACING;
|
|
40
40
|
let resolvedAlign = align ?? DEFAULT_ALIGN;
|
|
41
41
|
let resolvedVariant = variant ?? DEFAULT_VARIANT;
|
|
42
42
|
let isCenter = resolvedAlign === "center";
|
|
43
43
|
let isFrame = resolvedVariant === "frame";
|
|
44
|
-
|
|
44
|
+
let isFlushFrame = isFrame && Boolean(flush);
|
|
45
|
+
return (_jsx("section", { ...rest, "data-tone": resolvedTone, "data-spacing": resolvedSpacing, "data-align": resolvedAlign, "data-variant": resolvedVariant, "data-flush": isFlushFrame ? "true" : undefined, mix: [
|
|
45
46
|
container("ui-marketing-section"),
|
|
46
47
|
relative(),
|
|
47
48
|
vstack({ align: "center" }),
|
|
48
49
|
is("100%"),
|
|
49
50
|
raw({ isolation: "isolate" }),
|
|
50
51
|
marketingBandTone(resolvedTone),
|
|
51
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Framed bands keep block padding on the measured column so the
|
|
54
|
+
* dashed rails share that box and run the full band height.
|
|
55
|
+
*/
|
|
56
|
+
isFrame ? [] : marketingSectionSpace(resolvedSpacing),
|
|
52
57
|
ruled ? marketingHairline() : [],
|
|
53
58
|
mix,
|
|
54
59
|
], children: _jsx("div", { mix: [
|
|
55
|
-
marketingContainer(),
|
|
56
|
-
vstack({
|
|
57
|
-
align: isCenter ? "center" : "stretch",
|
|
58
|
-
gap: 0,
|
|
59
|
-
}),
|
|
60
|
-
relative(),
|
|
61
|
-
is("100%"),
|
|
62
|
-
isCenter ? textAlign("center") : [],
|
|
63
60
|
isFrame
|
|
64
61
|
? [
|
|
65
|
-
|
|
62
|
+
maxIs("var(--ui-marketing-measure, 72rem)"),
|
|
63
|
+
mi("auto"),
|
|
64
|
+
is("100%"),
|
|
65
|
+
/**
|
|
66
|
+
* Match the pre-migration framed band: quiet gutters that
|
|
67
|
+
* open to 3rem above `lg`, so copy clears the rails.
|
|
68
|
+
*/
|
|
69
|
+
pi(5),
|
|
70
|
+
isFlushFrame ? [] : marketingSectionSpace(resolvedSpacing),
|
|
71
|
+
at("lg", "ui-marketing-section", [
|
|
72
|
+
pi(12),
|
|
66
73
|
borderEdge("inline-start", {
|
|
67
74
|
color: "neutral",
|
|
68
75
|
width: 1,
|
|
@@ -81,7 +88,14 @@ export function MarketingSection(handle) {
|
|
|
81
88
|
: [],
|
|
82
89
|
]),
|
|
83
90
|
]
|
|
84
|
-
:
|
|
91
|
+
: marketingContainer(),
|
|
92
|
+
vstack({
|
|
93
|
+
align: isCenter ? "center" : "stretch",
|
|
94
|
+
gap: 0,
|
|
95
|
+
}),
|
|
96
|
+
relative(),
|
|
97
|
+
is("100%"),
|
|
98
|
+
isCenter ? textAlign("center") : [],
|
|
85
99
|
parts?.container,
|
|
86
100
|
], children: children }) }));
|
|
87
101
|
};
|
|
@@ -48,8 +48,11 @@ export declare namespace Split {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
* Lays {@link Split.Copy} and {@link Split.Media} as a two-track grid
|
|
52
|
-
*
|
|
51
|
+
* Lays {@link Split.Copy} and {@link Split.Media} as a two-track grid. The host
|
|
52
|
+
* is the named sizing container; an inner wrapper holds the tracks and
|
|
53
|
+
* `@container` column rules so the query can restyle a descendant. Collapses
|
|
54
|
+
* to one column below `xl` (64rem), matching the landing's original viewport
|
|
55
|
+
* threshold so copy and media do not squeeze side-by-side too early.
|
|
53
56
|
*
|
|
54
57
|
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
55
58
|
* @returns The render function producing the split's markup.
|
package/dist/components/split.js
CHANGED
|
@@ -11,8 +11,11 @@ const DEFAULT_LEAN = "media";
|
|
|
11
11
|
/** The check each claim list item is marked with, drawn as a brand-filled mask. */
|
|
12
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
13
|
/**
|
|
14
|
-
* Lays {@link Split.Copy} and {@link Split.Media} as a two-track grid
|
|
15
|
-
*
|
|
14
|
+
* Lays {@link Split.Copy} and {@link Split.Media} as a two-track grid. The host
|
|
15
|
+
* is the named sizing container; an inner wrapper holds the tracks and
|
|
16
|
+
* `@container` column rules so the query can restyle a descendant. Collapses
|
|
17
|
+
* to one column below `xl` (64rem), matching the landing's original viewport
|
|
18
|
+
* threshold so copy and media do not squeeze side-by-side too early.
|
|
16
19
|
*
|
|
17
20
|
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
18
21
|
* @returns The render function producing the split's markup.
|
|
@@ -24,20 +27,18 @@ const CHECK_MASK = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000
|
|
|
24
27
|
*/
|
|
25
28
|
export function Split(handle) {
|
|
26
29
|
return () => {
|
|
27
|
-
let { lean, mix, ...rest } = handle.props;
|
|
30
|
+
let { children, lean, mix, ...rest } = handle.props;
|
|
28
31
|
let resolvedLean = lean ?? DEFAULT_LEAN;
|
|
29
32
|
let columns = resolvedLean === "copy"
|
|
30
33
|
? "minmax(0, 1.15fr) minmax(0, 0.85fr)"
|
|
31
34
|
: "minmax(0, 0.85fr) minmax(0, 1.15fr)";
|
|
32
|
-
return (_jsx("div", { ...rest, "data-lean": resolvedLean, "data-slot": "split", mix: [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
mix,
|
|
40
|
-
] }));
|
|
35
|
+
return (_jsx("div", { ...rest, "data-lean": resolvedLean, "data-slot": "split", mix: [container("ui-marketing-split"), mix], children: _jsx("div", { mix: [
|
|
36
|
+
grid(),
|
|
37
|
+
gap(12),
|
|
38
|
+
items("start"),
|
|
39
|
+
gridTemplate({ columns: "minmax(0, 1fr)" }),
|
|
40
|
+
at("xl", "ui-marketing-split", gridTemplate({ columns })),
|
|
41
|
+
], children: children }) }));
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
/**
|
|
@@ -35,8 +35,11 @@ export declare namespace StatStrip {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
* Lays {@link StatStrip.Item} children in a responsive grid
|
|
39
|
-
*
|
|
38
|
+
* Lays {@link StatStrip.Item} children in a responsive grid. The host is the
|
|
39
|
+
* named sizing container; an inner wrapper holds the tracks and `@container`
|
|
40
|
+
* column / seam rules so the query can restyle a descendant. Starts at two
|
|
41
|
+
* columns and opens to five above `xl` (64rem), matching the landing's original
|
|
42
|
+
* viewport threshold so mid-width viewports stay a readable pair.
|
|
40
43
|
*
|
|
41
44
|
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
42
45
|
* @returns The render function producing the strip's markup.
|
|
@@ -8,8 +8,11 @@ import { balance, leading, text, tracking, weight } from "@sdxc/u/typography";
|
|
|
8
8
|
/** Seam treatment {@link StatStrip} applies when `variant` is omitted. */
|
|
9
9
|
const DEFAULT_VARIANT = "ruled";
|
|
10
10
|
/**
|
|
11
|
-
* Lays {@link StatStrip.Item} children in a responsive grid
|
|
12
|
-
*
|
|
11
|
+
* Lays {@link StatStrip.Item} children in a responsive grid. The host is the
|
|
12
|
+
* named sizing container; an inner wrapper holds the tracks and `@container`
|
|
13
|
+
* column / seam rules so the query can restyle a descendant. Starts at two
|
|
14
|
+
* columns and opens to five above `xl` (64rem), matching the landing's original
|
|
15
|
+
* viewport threshold so mid-width viewports stay a readable pair.
|
|
13
16
|
*
|
|
14
17
|
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
15
18
|
* @returns The render function producing the strip's markup.
|
|
@@ -21,25 +24,23 @@ const DEFAULT_VARIANT = "ruled";
|
|
|
21
24
|
*/
|
|
22
25
|
export function StatStrip(handle) {
|
|
23
26
|
return () => {
|
|
24
|
-
let { mix, variant, ...rest } = handle.props;
|
|
27
|
+
let { children, mix, variant, ...rest } = handle.props;
|
|
25
28
|
let resolvedVariant = variant ?? DEFAULT_VARIANT;
|
|
26
29
|
let isRuled = resolvedVariant === "ruled";
|
|
27
|
-
return (_jsx("div", { ...rest, "data-variant": resolvedVariant, "data-slot": "stat-strip", mix: [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
mix,
|
|
42
|
-
] }));
|
|
30
|
+
return (_jsx("div", { ...rest, "data-variant": resolvedVariant, "data-slot": "stat-strip", mix: [container("ui-marketing-stat-strip"), mix], children: _jsx("div", { mix: [
|
|
31
|
+
grid(),
|
|
32
|
+
isRuled ? gap(0) : gap(6),
|
|
33
|
+
gridTemplate({ columns: repeat(2, "minmax(0, 1fr)") }),
|
|
34
|
+
at("xl", "ui-marketing-stat-strip", gridTemplate({ columns: repeat(5, "minmax(0, 1fr)") })),
|
|
35
|
+
when("& > *", [p(6, 5), at("lg", "ui-marketing-stat-strip", p(8, 8))]),
|
|
36
|
+
isRuled
|
|
37
|
+
? when("& > * + *", at("xl", "ui-marketing-stat-strip", borderEdge("inline-start", {
|
|
38
|
+
color: "neutral",
|
|
39
|
+
width: 1,
|
|
40
|
+
style: "solid",
|
|
41
|
+
})))
|
|
42
|
+
: [],
|
|
43
|
+
], children: children }) }));
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
/**
|
package/dist/patterns/bento.d.ts
CHANGED
|
@@ -46,8 +46,9 @@ export declare namespace Bento {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
* Hairline-ruled equal columns
|
|
50
|
-
*
|
|
49
|
+
* Hairline-ruled equal columns. The host is the named sizing container; an
|
|
50
|
+
* inner wrapper holds the grid and `@container` column tracks so the query can
|
|
51
|
+
* restyle a descendant. Collapses to one track below `lg` (48rem).
|
|
51
52
|
*
|
|
52
53
|
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
53
54
|
* @returns The render function producing the bento's markup.
|
package/dist/patterns/bento.js
CHANGED
|
@@ -11,8 +11,9 @@ import { resolveHeadingLevel, TAG_BY_LEVEL } from "../components/heading-scope.j
|
|
|
11
11
|
/** How many cells a wide {@link Bento} puts on one row when `columns` is omitted. */
|
|
12
12
|
const DEFAULT_COLUMNS = 3;
|
|
13
13
|
/**
|
|
14
|
-
* Hairline-ruled equal columns
|
|
15
|
-
*
|
|
14
|
+
* Hairline-ruled equal columns. The host is the named sizing container; an
|
|
15
|
+
* inner wrapper holds the grid and `@container` column tracks so the query can
|
|
16
|
+
* restyle a descendant. Collapses to one track below `lg` (48rem).
|
|
16
17
|
*
|
|
17
18
|
* @param handle Runtime handle carrying the host `<div>`'s props.
|
|
18
19
|
* @returns The render function producing the bento's markup.
|
|
@@ -26,27 +27,25 @@ const DEFAULT_COLUMNS = 3;
|
|
|
26
27
|
*/
|
|
27
28
|
export function Bento(handle) {
|
|
28
29
|
return () => {
|
|
29
|
-
let { columns, mix, ...rest } = handle.props;
|
|
30
|
+
let { children, columns, mix, ...rest } = handle.props;
|
|
30
31
|
let resolvedColumns = columns ?? DEFAULT_COLUMNS;
|
|
31
|
-
return (_jsx("div", { ...rest, "data-slot": "bento", "data-columns": String(resolvedColumns), mix: [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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)"),
|
|
32
|
+
return (_jsx("div", { ...rest, "data-slot": "bento", "data-columns": String(resolvedColumns), mix: [container("ui-marketing-bento"), mix], children: _jsx("div", { mix: [
|
|
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",
|
|
46
41
|
}),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
gridTemplate({ columns: "minmax(0, 1fr)" }),
|
|
43
|
+
at("lg", "ui-marketing-bento", [
|
|
44
|
+
gridTemplate({
|
|
45
|
+
columns: repeat(resolvedColumns, "minmax(0, 1fr)"),
|
|
46
|
+
}),
|
|
47
|
+
]),
|
|
48
|
+
], children: children }) }));
|
|
50
49
|
};
|
|
51
50
|
}
|
|
52
51
|
/**
|
|
@@ -62,7 +61,7 @@ Bento.Cell = function BentoCell(handle) {
|
|
|
62
61
|
vstack({ gap: 3, align: "stretch" }),
|
|
63
62
|
raw({ backgroundColor: "var(--ui-bg, Canvas)" }),
|
|
64
63
|
p(6, 5),
|
|
65
|
-
at("
|
|
64
|
+
at("lg", "ui-marketing-bento", p(8, 8)),
|
|
66
65
|
mix,
|
|
67
66
|
] }));
|
|
68
67
|
};
|
|
@@ -55,6 +55,8 @@ export declare namespace FaqBand {
|
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Renders a FAQ band with a chapter header and one or two accordion columns.
|
|
58
|
+
* The column host is the named sizing container; an inner wrapper holds the
|
|
59
|
+
* `@container` tracks so the query can restyle a descendant.
|
|
58
60
|
*
|
|
59
61
|
* @param handle Runtime handle carrying the band's props.
|
|
60
62
|
* @returns The render function producing the band's markup.
|
|
@@ -10,6 +10,8 @@ const DEFAULT_COLUMNS = 1;
|
|
|
10
10
|
const DEFAULT_TONE = "plain";
|
|
11
11
|
/**
|
|
12
12
|
* Renders a FAQ band with a chapter header and one or two accordion columns.
|
|
13
|
+
* The column host is the named sizing container; an inner wrapper holds the
|
|
14
|
+
* `@container` tracks so the query can restyle a descendant.
|
|
13
15
|
*
|
|
14
16
|
* @param handle Runtime handle carrying the band's props.
|
|
15
17
|
* @returns The render function producing the band's markup.
|
|
@@ -29,15 +31,13 @@ export function FaqBand(handle) {
|
|
|
29
31
|
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
32
|
title: parts?.title,
|
|
31
33
|
description: parts?.description,
|
|
32
|
-
}, children: title }), _jsx("div", { "data-columns": String(resolvedColumns), mix: [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
parts?.columns,
|
|
41
|
-
], children: children })] }) }) }));
|
|
34
|
+
}, children: title }), _jsx("div", { "data-columns": String(resolvedColumns), mix: [container("ui-marketing-faq"), parts?.columns], children: _jsx("div", { mix: [
|
|
35
|
+
grid(),
|
|
36
|
+
gap(8),
|
|
37
|
+
gridTemplate({ columns: "minmax(0, 1fr)" }),
|
|
38
|
+
isTwo
|
|
39
|
+
? at("xl", "ui-marketing-faq", gridTemplate({ columns: "minmax(0, 1fr) minmax(0, 1fr)" }))
|
|
40
|
+
: [],
|
|
41
|
+
], children: children }) })] }) }) }));
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -28,8 +28,10 @@ export declare namespace StepList {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Lays numbered steps in a responsive three-column track
|
|
32
|
-
*
|
|
31
|
+
* Lays numbered steps in a responsive three-column track. A sizing wrapper is
|
|
32
|
+
* the named container; the `<ol>` holds the grid and `@container` column tracks
|
|
33
|
+
* so the query can restyle a descendant. Collapses below `xl` (64rem).
|
|
34
|
+
* Connector lines appear between items only when the track is wide.
|
|
33
35
|
*
|
|
34
36
|
* @param handle Runtime handle carrying the host `<ol>`'s props.
|
|
35
37
|
* @returns The render function producing the list's markup.
|
|
@@ -9,8 +9,10 @@ import { after, before, not } from "@sdxc/u/state";
|
|
|
9
9
|
import { leading, pretty, text, textAlign, weight } from "@sdxc/u/typography";
|
|
10
10
|
import { resolveHeadingLevel, TAG_BY_LEVEL } from "../components/heading-scope.js";
|
|
11
11
|
/**
|
|
12
|
-
* Lays numbered steps in a responsive three-column track
|
|
13
|
-
*
|
|
12
|
+
* Lays numbered steps in a responsive three-column track. A sizing wrapper is
|
|
13
|
+
* the named container; the `<ol>` holds the grid and `@container` column tracks
|
|
14
|
+
* so the query can restyle a descendant. Collapses below `xl` (64rem).
|
|
15
|
+
* Connector lines appear between items only when the track is wide.
|
|
14
16
|
*
|
|
15
17
|
* @param handle Runtime handle carrying the host `<ol>`'s props.
|
|
16
18
|
* @returns The render function producing the list's markup.
|
|
@@ -22,17 +24,16 @@ import { resolveHeadingLevel, TAG_BY_LEVEL } from "../components/heading-scope.j
|
|
|
22
24
|
*/
|
|
23
25
|
export function StepList(handle) {
|
|
24
26
|
return () => {
|
|
25
|
-
let { mix, ...rest } = handle.props;
|
|
26
|
-
return (_jsx("ol", { ...rest, "data-slot": "step-list", mix: [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
] }));
|
|
27
|
+
let { children, mix, ...rest } = handle.props;
|
|
28
|
+
return (_jsx("div", { mix: [container("ui-marketing-step-list")], children: _jsx("ol", { ...rest, "data-slot": "step-list", mix: [
|
|
29
|
+
counterReset("ui-marketing-step"),
|
|
30
|
+
raw({ listStyle: "none", padding: "0", margin: "0" }),
|
|
31
|
+
grid(),
|
|
32
|
+
gap(8),
|
|
33
|
+
gridTemplate({ columns: "minmax(0, 1fr)" }),
|
|
34
|
+
at("xl", "ui-marketing-step-list", gridTemplate({ columns: repeat(3, "minmax(0, 1fr)") })),
|
|
35
|
+
mix,
|
|
36
|
+
], children: children }) }));
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
@@ -76,7 +77,7 @@ StepList.Item = function StepListItem(handle) {
|
|
|
76
77
|
backgroundColor: "var(--ui-neutral-border)",
|
|
77
78
|
display: "none",
|
|
78
79
|
}),
|
|
79
|
-
at("
|
|
80
|
+
at("xl", "ui-marketing-step-list", raw({ display: "block" })),
|
|
80
81
|
])),
|
|
81
82
|
mix,
|
|
82
83
|
], children: [_jsx(Tag, { "data-slot": "step-list-title", "data-heading-level": resolved, mix: [m(0), text("xl"), weight("medium"), fg("neutral.emphasis")], children: title }), _jsx("div", { mix: [text("base"), leading("relaxed"), pretty(), fg("neutral")], children: children })] }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdxc/ui",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.30",
|
|
4
4
|
"description": "Styled, accessible remix/component components rendered as server HTML",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"remix": "3.1.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "b76637cea65a8310f966862a15bcaeb5a657d7b0",
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|