@prenta/sections-react 0.15.0 → 0.16.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,201 @@
1
1
  # @actuate-media/sections-react
2
2
 
3
+ ## 0.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [385dd10]
8
+ - @prenta/core@0.120.0
9
+
10
+ ## 0.16.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 6f2eb6d: Two new section types: Awards & Partners, and Common Questions
15
+
16
+ The design prototype gained these after the handoff this work was built from —
17
+ `badges` and `faq` appear zero times in that handoff and are now in the seeded
18
+ page, so the editor was missing two of the seven sections the design shows.
19
+ - **`badges`** — a strip of award or partner logos. Each row is an image, its
20
+ alt text, and an optional link. The template declares bounds (3–8 rows),
21
+ matching the prototype's `TEMPLATE_STYLE`: the design owns how many the layout
22
+ holds, and the CMS works inside them. A badge with a link renders as an
23
+ anchor; one without stays a plain figure, so an unlinked logo does not put a
24
+ dead stop in the tab order.
25
+ - **`faq`** — questions and answers, bounds 2–12. Rendered as a `<dl>` rather
26
+ than a run of `<h3>`s, which would inject a second outline competing with the
27
+ section headings around it. Answers are plain text: they feed FAQ structured
28
+ data, where markup is stripped anyway, and a rich-text slot would invite
29
+ formatting that silently vanishes from the search result.
30
+
31
+ **The alt-text check now walks repeaters.** It counted `media` and `gallery`
32
+ fields only, so a badge strip — a repeater whose rows each carry an image —
33
+ would have reported a clean pass no matter how many logos were undescribed.
34
+ That is exactly the false pass the check exists to prevent, hiding behind a
35
+ field type rather than a missing asset. Any repeater with a media sub-field now
36
+ contributes one slot per row.
37
+
38
+ The seeded About Us page carries both, with one badge deliberately left
39
+ undescribed so the audit demonstrates a real failing check, and the FAQ seeded
40
+ hidden — which also exercises the one structural control a design-owned editor
41
+ keeps.
42
+
43
+ - 6f2eb6d: Reflow guard foundation: measure real components instead of a class chain
44
+
45
+ The editor can now tell you when an edit adds a line of wrapped text at a
46
+ breakpoint you are not looking at — the "it fits on my screen" failure, where
47
+ copy that reads fine on a laptop pushes a hero button below the fold on a
48
+ phone.
49
+
50
+ **How it measures.** The guard renders the actual section component off-screen
51
+ and reads the laid-out element, finding fields by the same `data-cms-field`
52
+ marker the click-to-edit bridge uses. The alternative — rebuilding each probe
53
+ from a hardcoded list of wrapper classes — is a second source of truth that has
54
+ to track the renderers by hand, and it cannot describe a consumer's own
55
+ registered renderer at all. Nothing here needs to stay in sync, and a renderer
56
+ refactor cannot silently invalidate it.
57
+
58
+ **What guards the guard.** A width cap that applies to the rendered element but
59
+ not to the probe makes the guard lie at exactly the widths where the cap binds
60
+ — so it looks correct on mobile and reports the wrong line count on laptop and
61
+ above. `e2e/reflow-probe.spec.ts` asserts probe width equals rendered width for
62
+ every guarded field on a real page, in a real browser. It has to run in
63
+ Playwright: `happy-dom` and `jsdom` do no layout, so the same assertion there
64
+ would pass while measuring nothing.
65
+
66
+ That test has already caught two real defects — a probe mounted outside
67
+ `.prenta-admin` inheriting the document's default font (a button measured 127px
68
+ rendered and 139px probed), and field paths being unique only within a section
69
+ rather than across a page.
70
+
71
+ **New in `@prenta/sections-react`:** `paddingClass`, `backgroundClass` and
72
+ `isDark` are now exported. The editor canvas wraps sections itself rather than
73
+ using `<Sections>`, so its padding has to match the site's exactly — a section
74
+ padded differently in the preview than on the site makes every line count taken
75
+ from it wrong. A parity test asserts the two agree.
76
+
77
+ - 6f2eb6d: Reflow sections on their own width instead of the viewport's.
78
+
79
+ Every responsive step in the section renderers moves from Tailwind's `sm:`/`md:`/`lg:`
80
+ viewport breakpoints to `@pv-*` container queries, and each `<section>` (plus
81
+ `PostHeader`) becomes a query container.
82
+
83
+ For a visitor nothing changes: a full-width section's width _is_ the viewport. What it
84
+ buys is that the same component renders correctly wherever it is placed — in a sidebar,
85
+ a split view, an embed, and above all in the CMS editor canvas, which shows a page at a
86
+ device's real CSS width scaled down to fit. A viewport query there measures the editor
87
+ window, so picking "Mobile" produced a 390px canvas still laid out for desktop. The
88
+ preview showed a width, not a layout.
89
+
90
+ `SiteNav` keeps viewport queries: it is site chrome rather than a section, and is not
91
+ inside a container.
92
+
93
+ **This changes canvas rendering**, and the editor-canvas baselines move with it — the
94
+ hero heading now renders at the size its classes specify for a 1920px canvas, where it
95
+ was previously a step smaller. Verified by measurement rather than against the old
96
+ baseline: 48px type in a 768px column, two lines, section 1920px wide.
97
+
98
+ Two things worth knowing:
99
+ - `container-type: inline-size` implies `contain: layout`, making a section a containing
100
+ block for `position: fixed` descendants. Relevant only to custom renderers or
101
+ `cssClass` overrides that rely on fixed positioning escaping the section.
102
+ - The `@theme` block declaring the steps must sit **before** the `utilities.css` import.
103
+ Tailwind generates container-query variants while processing that import, so a theme
104
+ block after it contributes nothing and every `@pv-*` class compiles to silence — with
105
+ no error. Moving it to satisfy the usual "@import first" rule breaks every responsive
106
+ step in the package.
107
+
108
+ - 6f2eb6d: Ship a precompiled stylesheet with the section renderers.
109
+
110
+ `@prenta/sections-react` now exports `@prenta/sections-react/styles.css`, built from
111
+ the package's own sources at publish time. Consumers import it instead of configuring
112
+ Tailwind to scan the package.
113
+
114
+ **This fixes silently unstyled public pages.** The renderers ship as compiled JS
115
+ styled with Tailwind utilities, so their classes previously had to come from a
116
+ `@source` directive pointing into `node_modules` — which `create-prenta` emitted. That
117
+ directive **emits nothing under pnpm**: pnpm links packages by symlink and Tailwind's
118
+ scanner does not follow symlinks. Verified by scanning the identical files through both
119
+ routes — the package's real path emits every class, the `node_modules` route emits
120
+ none. It is not a gitignore issue; an explicit `@source` into a gitignored directory
121
+ scans fine.
122
+
123
+ The result was a public site rendering sections with correct markup and no styling,
124
+ for anyone who installed with pnpm. npm and yarn consumers copy real files and were
125
+ unaffected, which is why it went unnoticed.
126
+
127
+ Shipping the CSS removes the failure class rather than moving it: no `@source` to
128
+ forget, no symlink resolution, no dependence on the consumer's Tailwind version, and
129
+ no way for the styles to be silently absent.
130
+
131
+ **What the stylesheet contains** — theme variables and utilities, no preflight. It
132
+ loads alongside the consumer's own Tailwind, and a second copy of the base reset would
133
+ re-apply element resets over their styles depending on import order. Theme variables
134
+ are idempotent and safe to duplicate; a reset is not. Utilities are emitted into the
135
+ `utilities` cascade layer so they rank alongside the consumer's rather than above
136
+ everything they wrote. 15KB minified.
137
+
138
+ **Scaffolded projects** import it in both the site layout and the admin route — the
139
+ editor canvas renders these same components — and the broken `@source` is gone from
140
+ the generated `globals.css`.
141
+
142
+ Verified equivalent: the editor-canvas visual baselines, captured while the classes
143
+ came from content scanning, pass **unchanged** against the shipped stylesheet.
144
+
145
+ **Upgrading an existing install** — import the stylesheet and remove the `@source`
146
+ line; optionally pass `DEFAULT_SECTION_RENDERERS` to `<AdminRoot>` so the editor
147
+ canvas renders the same components as the site. Step by step in
148
+ [docs/upgrading-section-styles.md](https://github.com/actuate-media/prenta/blob/main/docs/upgrading-section-styles.md).
149
+
150
+ `sideEffects` is declared as `["**/*.css"]` rather than `false`, so bundlers cannot
151
+ tree-shake the CSS import away — under `false` the import is eliminated and sections
152
+ render unstyled again, silently.
153
+
154
+ ### Patch Changes
155
+
156
+ - 6f2eb6d: Editor canvas paints section backgrounds in the site's palette, not the admin theme's
157
+
158
+ The canvas used admin theme tokens (`bg-brand`, `bg-card`, `bg-muted`) for
159
+ section backgrounds. Those follow the editor's light/dark preference; the live
160
+ site does not. So an editor working in dark mode previewed a hero in `#9D71F0`
161
+ sitting on dark body sections, while the published page rendered `violet-600`
162
+ on white — a page no visitor would ever see.
163
+
164
+ In light mode this changes nothing visible: `--brand` resolves to `#7C3AED`,
165
+ which is `violet-600`, and `--card` is white. The entire discrepancy lived in
166
+ dark mode, which is where it was least likely to be spotted and most likely to
167
+ mislead. Six dark-mode baselines are updated; no light-mode capture moved.
168
+
169
+ It also resolves an inconsistency inside the admin's own implementation, where
170
+ a _gradient_ purple background used the site's raw palette while a _solid_
171
+ purple used a theme token — the two halves of an unfinished migration
172
+ disagreeing with each other.
173
+
174
+ **New in `@prenta/core/page-sections`:** `backgroundPreset`, `isDarkBackground`,
175
+ `BACKGROUND_PRESETS` and the `BackgroundPreset` type.
176
+
177
+ The two renderers still hold their own class strings, and have to. Tailwind
178
+ generates utilities by scanning source text, and each package's stylesheet
179
+ scans only its own `src/` tree — a literal shared from a third package is
180
+ generated by nobody, so the section renders with correct markup and no
181
+ background at all. (That failure mode is why `@prenta/sections-react` ships a
182
+ precompiled stylesheet in the first place.)
183
+
184
+ So core owns the _decision_ and each renderer maps it to its own strings
185
+ through a `Record<BackgroundPreset, string>`. Adding a preset now fails both
186
+ builds until each has handled it — verified by adding one and watching both
187
+ packages refuse to compile — and a parity test asserts the strings still match.
188
+
189
+ - Updated dependencies [6f2eb6d]
190
+ - Updated dependencies [6f2eb6d]
191
+ - Updated dependencies [6f2eb6d]
192
+ - Updated dependencies [6f2eb6d]
193
+ - Updated dependencies [6f2eb6d]
194
+ - Updated dependencies [6f2eb6d]
195
+ - Updated dependencies [6f2eb6d]
196
+ - Updated dependencies [6f2eb6d]
197
+ - @prenta/core@0.119.0
198
+
3
199
  ## 0.15.0
4
200
 
5
201
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"Sections.d.ts","sourceRoot":"","sources":["../src/Sections.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAsB,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAKtF,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,aAAa,EAEb,kBAAkB,EACnB,MAAM,YAAY,CAAA;AA6BnB,MAAM,WAAW,aAAa;IAC5B,4CAA4C;IAC5C,QAAQ,EAAE,aAAa,EAAE,CAAA;IACzB,6DAA6D;IAC7D,GAAG,CAAC,EAAE,WAAW,CAAA;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAA;IAC9B,kDAAkD;IAClD,OAAO,CAAC,EAAE,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wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,eAAe,GAAG,SAAS,CA6E/E"}
package/dist/Sections.js CHANGED
@@ -41,7 +41,21 @@ export function Sections({ sections, ctx, renderers, options }) {
41
41
  const s = section.settings ?? {};
42
42
  const anchorId = typeof s.anchorId === 'string' && s.anchorId ? s.anchorId : undefined;
43
43
  const cssClass = typeof s.cssClass === 'string' ? s.cssClass : '';
44
- return (_jsx("section", { id: anchorId, "data-cms-section-id": section.id, "data-cms-section-type": section.sectionType, className: `${backgroundClass(s)} ${paddingClass(s)} ${cssClass}`.trim(), children: renderer({ section, ctx, options: resolved }) }, section.id));
44
+ return (_jsx("section", { id: anchorId, "data-cms-section-id": section.id, "data-cms-section-type": section.sectionType,
45
+ /*
46
+ * `@container` makes each section query its OWN width. For a
47
+ * full-width section on a real page that is the viewport, so a
48
+ * visitor sees no change — but the same component then renders
49
+ * correctly in a sidebar, an embed, or the CMS editor canvas, which
50
+ * shows a page at a device's real width scaled to fit. A viewport
51
+ * query there measures the editor window and the preview lies.
52
+ *
53
+ * `container-type: inline-size` implies `contain: layout`, making
54
+ * the section a containing block for `position: fixed` descendants.
55
+ * Relevant only to custom renderers or `cssClass` overrides that
56
+ * rely on fixed positioning escaping the section.
57
+ */
58
+ className: `@container ${backgroundClass(s)} ${paddingClass(s)} ${cssClass}`.trim(), children: renderer({ section, ctx, options: resolved }) }, section.id));
45
59
  }) }));
46
60
  }
47
61
  /**
@@ -57,17 +71,17 @@ export function PostHeader({ config, ctx, options }) {
57
71
  const align = centered ? 'mx-auto items-center text-center' : 'text-left';
58
72
  const meta = (_jsxs("div", { className: `mt-4 flex flex-wrap gap-x-3 gap-y-1 text-sm ${centered ? 'justify-center' : ''} ${overlay ? 'text-white/80' : 'text-zinc-500'}`, children: [config.showCategory && ctx.category && (_jsx("span", { className: "font-medium text-violet-500", children: ctx.category })), config.showAuthor && ctx.author?.name && _jsx("span", { children: ctx.author.name }), date && _jsx("span", { children: date }), config.showReadingTime && _jsxs("span", { children: [computeReadingTime(ctx.body), " min read"] })] }));
59
73
  if (overlay) {
60
- return (_jsxs("header", { className: "relative", children: [resolved.renderImage({
74
+ return (_jsxs("header", { className: "@container relative", children: [resolved.renderImage({
61
75
  src: ctx.featuredImageUrl,
62
76
  alt: '',
63
77
  width: ctx.featuredImageWidth,
64
78
  height: ctx.featuredImageHeight,
65
79
  priority: resolved.lcp.claim(),
66
80
  sizes: FULL_WIDTH_SIZES,
67
- className: 'h-[360px] w-full object-cover sm:h-[440px]',
68
- }), _jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/70 to-black/10", "aria-hidden": true }), _jsx("div", { className: "absolute inset-x-0 bottom-0 px-6 pb-10", children: _jsxs("div", { className: `mx-auto flex max-w-3xl flex-col ${align}`, children: [_jsx("h1", { className: "text-3xl font-bold tracking-tight text-white sm:text-5xl", children: title }), config.showExcerpt && ctx.excerpt && (_jsx("p", { className: "mt-3 max-w-2xl text-lg text-white/90", children: ctx.excerpt })), meta] }) })] }));
81
+ className: '@pv-md:h-[440px] h-[360px] w-full object-cover',
82
+ }), _jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/70 to-black/10", "aria-hidden": true }), _jsx("div", { className: "absolute inset-x-0 bottom-0 px-6 pb-10", children: _jsxs("div", { className: `mx-auto flex max-w-3xl flex-col ${align}`, children: [_jsx("h1", { className: "@pv-md:text-5xl text-3xl font-bold tracking-tight text-white", children: title }), config.showExcerpt && ctx.excerpt && (_jsx("p", { className: "mt-3 max-w-2xl text-lg text-white/90", children: ctx.excerpt })), meta] }) })] }));
69
83
  }
70
- return (_jsxs("header", { className: "border-b border-zinc-100 bg-zinc-50 py-16", children: [_jsxs("div", { className: `mx-auto flex max-w-3xl flex-col px-6 ${align}`, children: [_jsx("h1", { className: "text-4xl font-bold tracking-tight text-zinc-900 sm:text-5xl", children: title }), config.showExcerpt && ctx.excerpt && (_jsx("p", { className: `mt-4 max-w-2xl text-lg text-zinc-600 ${centered ? 'mx-auto' : ''}`, children: ctx.excerpt })), meta] }), config.showFeaturedImage && ctx.featuredImageUrl && (_jsx("div", { className: "mx-auto mt-8 max-w-4xl px-6", children: resolved.renderImage({
84
+ return (_jsxs("header", { className: "@container border-b border-zinc-100 bg-zinc-50 py-16", children: [_jsxs("div", { className: `mx-auto flex max-w-3xl flex-col px-6 ${align}`, children: [_jsx("h1", { className: "@pv-md:text-5xl text-4xl font-bold tracking-tight text-zinc-900", children: title }), config.showExcerpt && ctx.excerpt && (_jsx("p", { className: `mt-4 max-w-2xl text-lg text-zinc-600 ${centered ? 'mx-auto' : ''}`, children: ctx.excerpt })), meta] }), config.showFeaturedImage && ctx.featuredImageUrl && (_jsx("div", { className: "mx-auto mt-8 max-w-4xl px-6", children: resolved.renderImage({
71
85
  src: ctx.featuredImageUrl,
72
86
  alt: title,
73
87
  width: ctx.featuredImageWidth,
@@ -1 +1 @@
1
- {"version":3,"file":"Sections.js","sourceRoot":"","sources":["../src/Sections.tsx"],"names":[],"mappings":";AAWA,OAAO,EAAE,kBAAkB,EAAyB,MAAM,4BAA4B,CAAA;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQlE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE5E,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,IAAI,CAAA;AAE/C,SAAS,cAAc,CAAC,OAAuB;IAC7C,OAAO;QACL,YAAY,EAAE,OAAO,EAAE,YAAY,IAAI,QAAQ;QAC/C,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,EAAE;QAC/B,WAAW,EAAE,OAAO,EAAE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30
  * keeps this in lockstep with the cms-core registry so no section type can
31
31
  * exist without a renderer.
32
32
  */
33
+ /**
34
+ * A strip of award / partner logos.
35
+ *
36
+ * Every row renders an image slot whether or not an asset has been picked, so
37
+ * the alt-text audit counts it either way — an empty slot is a slot the
38
+ * template renders.
39
+ *
40
+ * A badge with a link becomes an anchor; one without stays a plain figure.
41
+ * Wrapping an unlinked logo in an `<a href="">` would put a focusable element
42
+ * in the tab order that goes nowhere.
43
+ */
44
+ export declare const BadgesSection: SectionRenderer;
45
+ /**
46
+ * Questions and answers.
47
+ *
48
+ * A `<dl>` rather than a heading-per-question: these are term/definition pairs,
49
+ * and emitting a run of `<h3>`s would inject a second outline into the page
50
+ * that competes with the section headings around it.
51
+ */
52
+ export declare const FaqSection: SectionRenderer;
33
53
  export declare const DEFAULT_SECTION_RENDERERS: SectionRendererMap;
34
54
  //# sourceMappingURL=defaults.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/components/defaults.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAwB,MAAM,aAAa,CAAA;AAQ5F,eAAO,MAAM,WAAW,EAAE,eAwDzB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,eAezB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,eAuD5B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,eAiC1B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,eAuBxB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,eAsBhC,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,eAoB1B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,eAwC9B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,eA6BjC,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,eA4C5B,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,eAkCzB,CAAA;AAUD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,eAiC1B,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAE,kBAcvC,CAAA"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/components/defaults.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAwB,MAAM,aAAa,CAAA;AAQ5F,eAAO,MAAM,WAAW,EAAE,eA2DzB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,eAezB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,eAuD5B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,eAiC1B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,eAuBxB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,eAsBhC,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,eAuB1B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,eAwC9B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,eA6BjC,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,eAgD5B,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,eAkCzB,CAAA;AAUD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,eAiC1B,CAAA;AAED;;;;;GAKG;AACH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,eAiD3B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,eA0BxB,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,kBAgBvC,CAAA"}
@@ -10,7 +10,7 @@ export const HeroSection = ({ section, options, }) => {
10
10
  const c = section.content;
11
11
  const dark = isDark(section.settings);
12
12
  const img = str(c, 'imageUrl');
13
- return (_jsxs("div", { className: "mx-auto max-w-3xl px-6 text-center", children: [str(c, 'eyebrow') && (_jsx("p", { className: "mb-3 text-sm font-medium tracking-wide uppercase opacity-80", "data-cms-field": "eyebrow", children: str(c, 'eyebrow') })), _jsx("h1", { className: "text-4xl font-bold tracking-tight sm:text-5xl", "data-cms-field": "heading", children: str(c, 'heading') }), str(c, 'body') && (_jsx("p", { className: "mx-auto mt-4 max-w-2xl text-lg opacity-90", "data-cms-field": "body", children: str(c, 'body') })), _jsxs("div", { className: "mt-8 flex flex-wrap items-center justify-center gap-3", children: [_jsx(Button, { label: str(c, 'primaryButtonLabel'), href: str(c, 'primaryButtonUrl'), tone: dark ? 'onDark' : 'primary', fieldPath: "primaryButtonLabel" }), _jsx(Button, { label: str(c, 'secondaryButtonLabel'), href: str(c, 'secondaryButtonUrl'), tone: "ghost", fieldPath: "secondaryButtonLabel" })] }), img && (_jsx("div", { className: "mt-10", "data-cms-field": "imageUrl", "data-cms-field-kind": "media", children: options.renderImage({
13
+ return (_jsxs("div", { className: "mx-auto max-w-3xl px-6 text-center", children: [str(c, 'eyebrow') && (_jsx("p", { className: "mb-3 text-sm font-medium tracking-wide uppercase opacity-80", "data-cms-field": "eyebrow", children: str(c, 'eyebrow') })), _jsx("h1", { className: "@pv-md:text-5xl @pv-2xl:text-6xl text-4xl font-bold tracking-tight", "data-cms-field": "heading", children: str(c, 'heading') }), str(c, 'body') && (_jsx("p", { className: "mx-auto mt-4 max-w-2xl text-lg opacity-90", "data-cms-field": "body", children: str(c, 'body') })), _jsxs("div", { className: "mt-8 flex flex-wrap items-center justify-center gap-3", children: [_jsx(Button, { label: str(c, 'primaryButtonLabel'), href: str(c, 'primaryButtonUrl'), tone: dark ? 'onDark' : 'primary', fieldPath: "primaryButtonLabel" }), _jsx(Button, { label: str(c, 'secondaryButtonLabel'), href: str(c, 'secondaryButtonUrl'), tone: "ghost", fieldPath: "secondaryButtonLabel" })] }), img && (_jsx("div", { className: "mt-10", "data-cms-field": "imageUrl", "data-cms-field-kind": "media", children: options.renderImage({
14
14
  src: img,
15
15
  alt: str(c, 'imageAlt'),
16
16
  width: num(c, 'imageWidth'),
@@ -31,7 +31,7 @@ export const FeatureSection = ({ section, options, }) => {
31
31
  const c = section.content;
32
32
  const left = str(c, 'imagePosition', 'right') === 'left';
33
33
  const img = str(c, 'imageUrl');
34
- return (_jsxs("div", { className: "mx-auto grid max-w-5xl items-center gap-10 px-6 md:grid-cols-2", children: [_jsxs("div", { className: left ? 'md:order-2' : '', children: [str(c, 'label') && (_jsx("p", { className: "mb-2 text-sm font-medium tracking-wide text-violet-600 uppercase", "data-cms-field": "label", children: str(c, 'label') })), _jsx("h2", { className: "text-3xl font-bold tracking-tight", "data-cms-field": "heading", children: str(c, 'heading') }), str(c, 'body') && (_jsx("p", { className: "mt-3 text-lg opacity-80", "data-cms-field": "body", children: str(c, 'body') })), _jsx("div", { className: "mt-5", children: _jsx(Button, { label: str(c, 'buttonLabel'), href: str(c, 'buttonUrl'), fieldPath: "buttonLabel" }) })] }), _jsx("div", { className: left ? 'md:order-1' : '', "data-cms-field": img ? 'imageUrl' : undefined, "data-cms-field-kind": img ? 'media' : undefined, children: img ? (options.renderImage({
34
+ return (_jsxs("div", { className: "@pv-md:grid-cols-2 mx-auto grid max-w-5xl items-center gap-10 px-6", children: [_jsxs("div", { className: left ? '@pv-md:order-2' : '', children: [str(c, 'label') && (_jsx("p", { className: "mb-2 text-sm font-medium tracking-wide text-violet-600 uppercase", "data-cms-field": "label", children: str(c, 'label') })), _jsx("h2", { className: "text-3xl font-bold tracking-tight", "data-cms-field": "heading", children: str(c, 'heading') }), str(c, 'body') && (_jsx("p", { className: "mt-3 text-lg opacity-80", "data-cms-field": "body", children: str(c, 'body') })), _jsx("div", { className: "mt-5", children: _jsx(Button, { label: str(c, 'buttonLabel'), href: str(c, 'buttonUrl'), fieldPath: "buttonLabel" }) })] }), _jsx("div", { className: left ? '@pv-md:order-1' : '', "data-cms-field": img ? 'imageUrl' : undefined, "data-cms-field-kind": img ? 'media' : undefined, children: img ? (options.renderImage({
35
35
  src: img,
36
36
  alt: str(c, 'imageAlt'),
37
37
  width: num(c, 'imageWidth'),
@@ -43,7 +43,7 @@ export const FeatureSection = ({ section, options, }) => {
43
43
  };
44
44
  export const StatsSection = ({ section }) => {
45
45
  const c = section.content;
46
- return (_jsxs("div", { className: "mx-auto max-w-5xl px-6 text-center", children: [str(c, 'heading') && (_jsx("h2", { className: "text-3xl font-bold tracking-tight", "data-cms-field": "heading", children: str(c, 'heading') })), str(c, 'body') && (_jsx("p", { className: "mx-auto mt-3 max-w-2xl text-lg opacity-80", "data-cms-field": "body", children: str(c, 'body') })), _jsx("dl", { className: "mt-10 grid grid-cols-1 gap-8 sm:grid-cols-3", children: rows(c, 'stats').map((row, i) => (_jsxs("div", { children: [_jsx("dt", { className: "text-4xl font-bold text-violet-600", "data-cms-field": `stats.${i}.value`, children: str(row, 'value') }), _jsx("dd", { className: "mt-1 text-sm font-medium opacity-70", "data-cms-field": `stats.${i}.label`, children: str(row, 'label') }), str(row, 'description') && (_jsx("dd", { className: "mt-1 text-xs opacity-60", "data-cms-field": `stats.${i}.description`, children: str(row, 'description') }))] }, i))) })] }));
46
+ return (_jsxs("div", { className: "mx-auto max-w-5xl px-6 text-center", children: [str(c, 'heading') && (_jsx("h2", { className: "text-3xl font-bold tracking-tight", "data-cms-field": "heading", children: str(c, 'heading') })), str(c, 'body') && (_jsx("p", { className: "mx-auto mt-3 max-w-2xl text-lg opacity-80", "data-cms-field": "body", children: str(c, 'body') })), _jsx("dl", { className: "@pv-sm:grid-cols-2 @pv-lg:grid-cols-3 mt-10 grid grid-cols-1 gap-8", children: rows(c, 'stats').map((row, i) => (_jsxs("div", { children: [_jsx("dt", { className: "text-4xl font-bold text-violet-600", "data-cms-field": `stats.${i}.value`, children: str(row, 'value') }), _jsx("dd", { className: "mt-1 text-sm font-medium opacity-70", "data-cms-field": `stats.${i}.label`, children: str(row, 'label') }), str(row, 'description') && (_jsx("dd", { className: "mt-1 text-xs opacity-60", "data-cms-field": `stats.${i}.description`, children: str(row, 'description') }))] }, i))) })] }));
47
47
  };
48
48
  export const CtaSection = ({ section }) => {
49
49
  const c = section.content;
@@ -66,7 +66,7 @@ export const ArticleBodySection = ({ section, ctx, options, }) => {
66
66
  };
67
67
  export const QuoteSection = ({ section }) => {
68
68
  const c = section.content;
69
- return (_jsxs("figure", { className: "mx-auto max-w-3xl px-6 text-center", children: [_jsxs("blockquote", { className: "text-2xl font-medium text-zinc-900 sm:text-3xl", "data-cms-field": "quote", children: ["\u201C", str(c, 'quote'), "\u201D"] }), (str(c, 'attribution') || str(c, 'role')) && (_jsxs("figcaption", { className: "mt-4 text-sm text-zinc-500", children: [_jsx("span", { "data-cms-field": "attribution", children: str(c, 'attribution') }), str(c, 'role') && (_jsxs("span", { className: "opacity-70", "data-cms-field": "role", children: [' ', "\u2014 ", str(c, 'role')] }))] }))] }));
69
+ return (_jsxs("figure", { className: "mx-auto max-w-3xl px-6 text-center", children: [_jsxs("blockquote", { className: "@pv-md:text-3xl text-2xl font-medium text-zinc-900", "data-cms-field": "quote", children: ["\u201C", str(c, 'quote'), "\u201D"] }), (str(c, 'attribution') || str(c, 'role')) && (_jsxs("figcaption", { className: "mt-4 text-sm text-zinc-500", children: [_jsx("span", { "data-cms-field": "attribution", children: str(c, 'attribution') }), str(c, 'role') && (_jsxs("span", { className: "opacity-70", "data-cms-field": "role", children: [' ', "\u2014 ", str(c, 'role')] }))] }))] }));
70
70
  };
71
71
  export const AuthorBioSection = ({ section, ctx, options, }) => {
72
72
  const c = section.content;
@@ -87,13 +87,17 @@ export const RelatedPostsSection = ({ section, ctx, }) => {
87
87
  const c = section.content;
88
88
  const related = ctx?.relatedPosts ?? [];
89
89
  const placeholders = related.length ? related : [null, null, null];
90
- return (_jsxs("div", { className: "mx-auto max-w-5xl px-6", children: [str(c, 'heading') && (_jsx("h2", { className: "mb-6 text-2xl font-bold tracking-tight", "data-cms-field": "heading", children: str(c, 'heading') })), _jsx("div", { className: "grid grid-cols-1 gap-6 sm:grid-cols-3", children: placeholders.map((p, i) => (_jsxs("a", { href: p?.url ?? '#', className: "block rounded-xl border border-zinc-200 p-5 transition-colors hover:border-violet-300 hover:bg-zinc-50", children: [_jsx("p", { className: "font-medium text-zinc-900", children: p?.title ?? 'Related post' }), p?.excerpt && _jsx("p", { className: "mt-2 text-sm text-zinc-600", children: p.excerpt })] }, i))) })] }));
90
+ return (_jsxs("div", { className: "mx-auto max-w-5xl px-6", children: [str(c, 'heading') && (_jsx("h2", { className: "mb-6 text-2xl font-bold tracking-tight", "data-cms-field": "heading", children: str(c, 'heading') })), _jsx("div", { className: "@pv-sm:grid-cols-2 @pv-lg:grid-cols-3 grid grid-cols-1 gap-6", children: placeholders.map((p, i) => (_jsxs("a", { href: p?.url ?? '#', className: "block rounded-xl border border-zinc-200 p-5 transition-colors hover:border-violet-300 hover:bg-zinc-50", children: [_jsx("p", { className: "font-medium text-zinc-900", children: p?.title ?? 'Related post' }), p?.excerpt && _jsx("p", { className: "mt-2 text-sm text-zinc-600", children: p.excerpt })] }, i))) })] }));
91
91
  };
92
92
  export const GallerySection = ({ section, options, }) => {
93
93
  const c = section.content;
94
94
  const cols = str(c, 'columns', '3');
95
95
  const colCount = cols === '2' ? 2 : cols === '4' ? 4 : 3;
96
- const colClass = cols === '2' ? 'sm:grid-cols-2' : cols === '4' ? 'sm:grid-cols-4' : 'sm:grid-cols-3';
96
+ const colClass = cols === '2'
97
+ ? '@pv-sm:grid-cols-2'
98
+ : cols === '4'
99
+ ? '@pv-sm:grid-cols-2 @pv-xl:grid-cols-4'
100
+ : '@pv-sm:grid-cols-2 @pv-lg:grid-cols-3';
97
101
  const imgSizes = gallerySizes(colCount);
98
102
  return (_jsxs("div", { className: "mx-auto max-w-5xl px-6", children: [str(c, 'heading') && (_jsx("h2", { className: "mb-6 text-2xl font-bold tracking-tight", "data-cms-field": "heading", children: str(c, 'heading') })), _jsx("div", { className: `grid grid-cols-1 gap-4 ${colClass}`, children: rows(c, 'images').map((img, i) => (_jsxs("figure", { "data-cms-field": `images.${i}.url`, "data-cms-field-kind": "media", children: [options.renderImage({
99
103
  src: str(img, 'url'),
@@ -152,11 +156,53 @@ export const EmbedSection = ({ section }) => {
152
156
  * keeps this in lockstep with the cms-core registry so no section type can
153
157
  * exist without a renderer.
154
158
  */
159
+ /**
160
+ * A strip of award / partner logos.
161
+ *
162
+ * Every row renders an image slot whether or not an asset has been picked, so
163
+ * the alt-text audit counts it either way — an empty slot is a slot the
164
+ * template renders.
165
+ *
166
+ * A badge with a link becomes an anchor; one without stays a plain figure.
167
+ * Wrapping an unlinked logo in an `<a href="">` would put a focusable element
168
+ * in the tab order that goes nowhere.
169
+ */
170
+ export const BadgesSection = ({ section, options, }) => {
171
+ const c = section.content;
172
+ return (_jsxs("div", { className: "mx-auto max-w-5xl px-6 text-center", children: [str(c, 'heading') && (_jsx("h2", { className: "mb-8 text-2xl font-bold tracking-tight", "data-cms-field": "heading", children: str(c, 'heading') })), _jsx("ul", { className: "@pv-sm:grid-cols-3 @pv-lg:grid-cols-5 grid grid-cols-2 items-center gap-6", children: rows(c, 'items').map((item, i) => {
173
+ const href = str(item, 'link');
174
+ const image = (_jsx("span", { className: "flex aspect-3/2 items-center justify-center rounded-[10px] bg-zinc-50", "data-cms-field": `items.${i}.imageUrl`, "data-cms-field-kind": "media", children: options.renderImage({
175
+ src: str(item, 'imageUrl'),
176
+ alt: str(item, 'imageAlt'),
177
+ width: num(item, 'imageWidth'),
178
+ height: num(item, 'imageHeight'),
179
+ // A logo strip is never the largest element on the page, so it
180
+ // never claims the priority slot.
181
+ priority: false,
182
+ sizes: '(max-width: 700px) 45vw, 20vw',
183
+ className: 'max-h-full w-full object-contain p-3',
184
+ }) }));
185
+ return (_jsx("li", { children: href ? (_jsx("a", { href: href, className: "block transition-opacity hover:opacity-75", children: image })) : (image) }, i));
186
+ }) })] }));
187
+ };
188
+ /**
189
+ * Questions and answers.
190
+ *
191
+ * A `<dl>` rather than a heading-per-question: these are term/definition pairs,
192
+ * and emitting a run of `<h3>`s would inject a second outline into the page
193
+ * that competes with the section headings around it.
194
+ */
195
+ export const FaqSection = ({ section }) => {
196
+ const c = section.content;
197
+ return (_jsxs("div", { className: "mx-auto max-w-3xl px-6", children: [str(c, 'heading') && (_jsx("h2", { className: "mb-8 text-center text-3xl font-bold tracking-tight", "data-cms-field": "heading", children: str(c, 'heading') })), _jsx("dl", { className: "flex flex-col gap-6 text-left", children: rows(c, 'items').map((item, i) => (_jsxs("div", { children: [_jsx("dt", { className: "text-lg leading-snug font-bold", "data-cms-field": `items.${i}.question`, children: str(item, 'question') }), _jsx("dd", { className: "mt-2 text-[15px] leading-relaxed whitespace-pre-line opacity-70", "data-cms-field": `items.${i}.answer`, children: str(item, 'answer') })] }, i))) })] }));
198
+ };
155
199
  export const DEFAULT_SECTION_RENDERERS = {
156
200
  hero: HeroSection,
157
201
  text: TextSection,
158
202
  feature: FeatureSection,
159
203
  stats: StatsSection,
204
+ badges: BadgesSection,
205
+ faq: FaqSection,
160
206
  cta: CtaSection,
161
207
  form: FormSection,
162
208
  'article-body': ArticleBodySection,
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../src/components/defaults.tsx"],"names":[],"mappings":";AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAE1D,MAAM,CAAC,MAAM,WAAW,GAAoB,CAAC,EAC3C,OAAO,EACP,OAAO,GACc,EAAa,EAAE;IACpC,MAAM,CAAC,G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I,EAAE,WAAW;IACjB,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,cAAc;IACvB,KAAK,EAAE,YAAY;IACnB,MAAM,EAAE,aAAa;IACrB,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,UAAU;IACf,IAAI,EAAE,WAAW;IACjB,cAAc,EAAE,kBAAkB;IAClC,KAAK,EAAE,YAAY;IACnB,YAAY,EAAE,gBAAgB;IAC9B,eAAe,EAAE,mBAAmB;IACpC,OAAO,EAAE,cAAc;IACvB,KAAK,EAAE,YAAY;IACnB,cAAc,EAAE,kBAAkB;CACnC,CAAA"}
package/dist/index.d.ts CHANGED
@@ -30,7 +30,7 @@
30
30
  export { Sections, PostHeader } from './Sections.js';
31
31
  export type { SectionsProps, PostHeaderProps } from './Sections.js';
32
32
  export { registerSectionRenderer, registerSectionRenderers, unregisterSectionRenderer, resetSectionRenderers, getSectionRenderer, registeredSectionTypes, DEFAULT_SECTION_RENDERERS, } from './registry.js';
33
- export { HeroSection, TextSection, FeatureSection, StatsSection, CtaSection, FormSection, ArticleBodySection, QuoteSection, AuthorBioSection, RelatedPostsSection, GallerySection, EmbedSection, } from './components/defaults.js';
33
+ export { HeroSection, TextSection, FeatureSection, StatsSection, BadgesSection, FaqSection, CtaSection, FormSection, ArticleBodySection, QuoteSection, AuthorBioSection, RelatedPostsSection, GallerySection, EmbedSection, } from './components/defaults.js';
34
34
  export { WidgetEmbedSection } from './components/WidgetEmbedSection.js';
35
35
  export { PrentaForm } from './PrentaForm.js';
36
36
  export type { PrentaFormProps } from './PrentaForm.js';
@@ -42,6 +42,14 @@ export { SiteNav } from './SiteNav.js';
42
42
  export type { SiteNavProps, SiteNavItem } from './SiteNav.js';
43
43
  export { coercePublicForm, fieldControl, htmlInputType, initialValues, firstMissingRequired, buildSubmitBody, } from './forms.js';
44
44
  export type { PublicForm, PublicFormField, FieldControl, SubmitBodyArgs } from './forms.js';
45
+ /**
46
+ * Section wrapper classes. Exported because the CMS editor canvas wraps
47
+ * sections itself rather than using `<Sections>`, and its padding must match
48
+ * this exactly — a section padded differently in the preview than on the site
49
+ * makes the reflow guard's line counts wrong. A parity test in @prenta/admin
50
+ * asserts they agree.
51
+ */
52
+ export { paddingClass, backgroundClass, isDark } from './utils.js';
45
53
  export { Button } from './primitives.js';
46
54
  export { defaultRenderImage, Img } from './image.js';
47
55
  export { createLcpController } from './lcp.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACpD,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEnE,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,WAAW,EACX,WAAW,EACX,cAAc,EACd,YAAY,EACZ,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,YAAY,GACb,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,YAAY,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAE9D,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAExE,OAAO,EAAE,O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a,EACb,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,YAAY,CAAA"}
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@
29
29
  */
30
30
  export { Sections, PostHeader } from './Sections.js';
31
31
  export { registerSectionRenderer, registerSectionRenderers, unregisterSectionRenderer, resetSectionRenderers, getSectionRenderer, registeredSectionTypes, DEFAULT_SECTION_RENDERERS, } from './registry.js';
32
- export { HeroSection, TextSection, FeatureSection, StatsSection, CtaSection, FormSection, ArticleBodySection, QuoteSection, AuthorBioSection, RelatedPostsSection, GallerySection, EmbedSection, } from './components/defaults.js';
32
+ export { HeroSection, TextSection, FeatureSection, StatsSection, BadgesSection, FaqSection, CtaSection, FormSection, ArticleBodySection, QuoteSection, AuthorBioSection, RelatedPostsSection, GallerySection, EmbedSection, } from './components/defaults.js';
33
33
  export { WidgetEmbedSection } from './components/WidgetEmbedSection.js';
34
34
  export { PrentaForm } from './PrentaForm.js';
35
35
  export { AttributionTracker, attributionConsentAllowed, captureAttributionIfAllowed, } from './attribution.js';
@@ -37,6 +37,14 @@ export { PrentaFormHtml } from './PrentaFormHtml.js';
37
37
  export { webMcpFormAttributes, webMcpFieldAttribute } from './webmcp.js';
38
38
  export { SiteNav } from './SiteNav.js';
39
39
  export { coercePublicForm, fieldControl, htmlInputType, initialValues, firstMissingRequired, buildSubmitBody, } from './forms.js';
40
+ /**
41
+ * Section wrapper classes. Exported because the CMS editor canvas wraps
42
+ * sections itself rather than using `<Sections>`, and its padding must match
43
+ * this exactly — a section padded differently in the preview than on the site
44
+ * makes the reflow guard's line counts wrong. A parity test in @prenta/admin
45
+ * asserts they agree.
46
+ */
47
+ export { paddingClass, backgroundClass, isDark } from './utils.js';
40
48
  export { Button } from './primitives.js';
41
49
  export { defaultRenderImage, Img } from './image.js';
42
50
  export { createLcpController } from './lcp.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAGpD,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,WAAW,EACX,WAAW,EACX,cAAc,EACd,YAAY,EACZ,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,YAAY,GACb,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAG5C,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAGpD,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,eAAe,GAChB,MAAM,YAAY,CAAA;AAGnB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAG9C,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src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AAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,2 @@
1
+ /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer theme,base,components;@layer utilities{.\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.bottom-0{bottom:calc(var(--spacing) * 0)}.-left-\[9999px\]{left:-9999px}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.aspect-3\/2{aspect-ratio:3/2}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[9\/16\]{aspect-ratio:9/16}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.h-0{height:calc(var(--spacing) * 0)}.h-4{height:calc(var(--spacing) * 4)}.h-14{height:calc(var(--spacing) * 14)}.h-\[360px\]{height:360px}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-\[inherit\]{min-height:inherit}.w-0{width:calc(var(--spacing) * 0)}.w-4{width:calc(var(--spacing) * 4)}.w-14{width:calc(var(--spacing) * 14)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-xl{max-width:var(--container-xl)}.min-w-48{min-width:calc(var(--spacing) * 48)}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.resize-y{resize:vertical}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-1{row-gap:calc(var(--spacing) * 1)}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-\[10px\]{border-radius:10px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-green-200{border-color:var(--color-green-200)}.border-zinc-100{border-color:var(--color-zinc-100)}.border-zinc-200{border-color:var(--color-zinc-200)}.border-zinc-300{border-color:var(--color-zinc-300)}.bg-green-50{background-color:var(--color-green-50)}.bg-violet-600{background-color:var(--color-violet-600)}.bg-white{background-color:var(--color-white)}.bg-zinc-50{background-color:var(--color-zinc-50)}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-black\/70{--tw-gradient-from:#000000b3}@supports (color:color-mix(in lab, red, red)){.from-black\/70{--tw-gradient-from:color-mix(in oklab, var(--color-black) 70%, transparent)}}.from-black\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-violet-600{--tw-gradient-from:var(--color-violet-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-black\/10{--tw-gradient-to:#0000001a}@supports (color:color-mix(in lab, red, red)){.to-black\/10{--tw-gradient-to:color-mix(in oklab, var(--color-black) 10%, transparent)}}.to-black\/10{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-violet-700{--tw-gradient-to:var(--color-violet-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing) * 1)}.p-3{padding:calc(var(--spacing) * 3)}.p-5{padding:calc(var(--spacing) * 5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.py-20{padding-block:calc(var(--spacing) * 20)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[15px\]{font-size:15px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-pre-line{white-space:pre-line}.text-green-800{color:var(--color-green-800)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-violet-500{color:var(--color-violet-500)}.text-violet-600{color:var(--color-violet-600)}.text-violet-700{color:var(--color-violet-700)}.text-white{color:var(--color-white)}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\/80{color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.text-white\/90{color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.text-white\/90{color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-900{color:var(--color-zinc-900)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}.placeholder\:text-zinc-400::placeholder{color:var(--color-zinc-400)}@media (hover:hover){.hover\:border-violet-300:hover{border-color:var(--color-violet-300)}.hover\:bg-violet-50:hover{background-color:var(--color-violet-50)}.hover\:bg-violet-700:hover{background-color:var(--color-violet-700)}.hover\:bg-zinc-50:hover{background-color:var(--color-zinc-50)}.hover\:bg-zinc-100:hover{background-color:var(--color-zinc-100)}.hover\:text-zinc-900:hover{color:var(--color-zinc-900)}.hover\:opacity-75:hover{opacity:.75}}.focus\:border-violet-500:focus{border-color:var(--color-violet-500)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-violet-500\/40:focus{--tw-ring-color:#8d54ff66}@supports (color:color-mix(in lab, red, red)){.focus\:ring-violet-500\/40:focus{--tw-ring-color:color-mix(in oklab, var(--color-violet-500) 40%, transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-60:disabled{opacity:.6}@media (min-width:48rem){.md\:absolute{position:absolute}.md\:left-0{left:calc(var(--spacing) * 0)}.md\:z-10{z-index:10}}@container (min-width:460px){.\@pv-sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\@pv-sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (min-width:700px){.\@pv-md\:order-1{order:1}.\@pv-md\:order-2{order:2}.\@pv-md\:h-\[440px\]{height:440px}.\@pv-md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\@pv-md\:py-20{padding-block:calc(var(--spacing) * 20)}.\@pv-md\:py-28{padding-block:calc(var(--spacing) * 28)}.\@pv-md\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.\@pv-md\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}}@container (min-width:900px){.\@pv-lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\@pv-lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@container (min-width:1100px){.\@pv-xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container (min-width:2000px){.\@pv-2xl\:py-28{padding-block:calc(var(--spacing) * 28)}.\@pv-2xl\:py-36{padding-block:calc(var(--spacing) * 36)}.\@pv-2xl\:text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}}}:root,:host{--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-800:oklch(44.8% .119 151.328);--color-violet-50:oklch(96.9% .016 293.756);--color-violet-300:oklch(81.1% .111 293.571);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-zinc-50:oklch(98.5% 0 0);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-900:oklch(21% .006 285.885);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
package/dist/utils.d.ts CHANGED
@@ -12,7 +12,6 @@ export declare function num(content: Record<string, unknown> | undefined, key: s
12
12
  export declare function rows(content: Record<string, unknown> | undefined, key: string): Array<Record<string, unknown>>;
13
13
  /** Vertical padding utility class from a section's `paddingY` setting. */
14
14
  export declare function paddingClass(settings: Record<string, unknown> | undefined): string;
15
- /** Background + text-color utility classes from a section's background settings. */
16
15
  export declare function backgroundClass(settings: Record<string, unknown> | undefined): string;
17
16
  /** True when a section uses a dark (purple) background — drives button tone. */
18
17
  export declare function isDark(settings: Record<string, unknown> | undefined): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names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, pure helpers shared by the default section renderers. No DOM or
3
4
  * browser APIs — these run in React Server Components.
@@ -30,28 +31,35 @@ export function paddingClass(settings) {
30
31
  case 'md':
31
32
  return 'py-12';
32
33
  case 'xl':
33
- return 'py-20 sm:py-28';
34
+ return 'py-20 @pv-md:py-28 @pv-2xl:py-36';
34
35
  default:
35
- return 'py-16 sm:py-20';
36
+ return 'py-16 @pv-md:py-20 @pv-2xl:py-28';
36
37
  }
37
38
  }
38
39
  /** Background + text-color utility classes from a section's background settings. */
40
+ /**
41
+ * The site palette, one entry per preset.
42
+ *
43
+ * These literals MUST stay in this package's `src/` tree — Tailwind generates
44
+ * utilities by scanning source text, and this stylesheet scans only this tree.
45
+ * Moved into `@prenta/core` alongside `backgroundPreset`, they would be
46
+ * generated by nobody and every section would render with no background.
47
+ *
48
+ * Typed as a full `Record`, so adding a preset in core fails the build here
49
+ * until it has a colour.
50
+ */
51
+ const PRESET_CLASSES = {
52
+ 'gradient-purple': 'bg-gradient-to-br from-violet-600 to-violet-700 text-white',
53
+ 'solid-purple': 'bg-violet-600 text-white',
54
+ 'solid-muted': 'bg-zinc-50 text-zinc-900',
55
+ plain: 'bg-white text-zinc-900',
56
+ };
39
57
  export function backgroundClass(settings) {
40
- const type = settings?.backgroundType;
41
- const color = settings?.backgroundColor;
42
- if (type === 'gradient' && color === 'purple') {
43
- return 'bg-gradient-to-br from-violet-600 to-violet-700 text-white';
44
- }
45
- if (type === 'solid' && color === 'purple')
46
- return 'bg-violet-600 text-white';
47
- if (type === 'solid' && color === 'muted')
48
- return 'bg-zinc-50 text-zinc-900';
49
- return 'bg-white text-zinc-900';
58
+ return PRESET_CLASSES[backgroundPreset(settings)];
50
59
  }
51
60
  /** True when a section uses a dark (purple) background — drives button tone. */
52
61
  export function isDark(settings) {
53
- return ((settings?.backgroundType === 'solid' || settings?.backgroundType === 'gradient') &&
54
- settings?.backgroundColor === 'purple');
62
+ return isDarkBackground(settings);
55
63
  }
56
64
  /** Format an ISO date for a post header; empty string when missing/invalid. */
57
65
  export function formatHeaderDate(value) {
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,qEAAqE;AACrE,MAAM,UAAU,GAAG,CACjB,OAA4C,EAC5C,GAAW,EACX,QAAQ,GAAG,EAAE;IAEb,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,CAAC,CAAA;IACxB,OAAO,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAA;AAC7C,CAAC;AAED,sEAAsE;AACtE,MAAM,UAAU,IAAI,CAClB,OAA4C,EAC5C,GAAW,EACX,QAAQ,GAAG,KAAK;IAEhB,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,CAAC,CAAA;IACxB,OAAO,OAAO,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAA;AAC9C,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,GAAG,CAAC,OAA4C,EAAE,GAAW;IAC3E,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,CAAC,CAAA;IACxB,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AAC/D,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,IAAI,CAClB,OAA4C,EAC5C,GAAW;IAEX,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,CAAC,CAAA;IACxB,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAoC,CAAC,CAAC,CAAC,EAAE,CAAA;AACtE,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,YAAY,CAAC,QAA6C;IACxE,QAAQ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ED,0EAA0E;AAC1E,MAAM,UAAU,YAAY,CAAC,QAA6C;IACxE,QAAQ,QAAQ,EAAE,QAAQ,EAAE,CAAC;QAC3B,KAAK,IAAI;YACP,OAAO,MAAM,CAAA;QACf,KAAK,IAAI;YACP,OAAO,OAAO,CAAA;QAChB,KAAK,IAAI;YACP,OAAO,kCAAkC,CAAA;QAC3C;YACE,OAAO,kCAAkC,CAAA;IAC7C,CAAC;AACH,CAAC;AAED,oFAAoF;AACpF;;;;;;;;;;GAUG;AACH,MAAM,cAAc,GAAqC;IACvD,iBAAiB,EAAE,4DAA4D;IAC/E,cAAc,EAAE,0BAA0B;IAC1C,aAAa,EAAE,0BAA0B;IACzC,KAAK,EAAE,wBAAwB;CAChC,CAAA;AAED,MAAM,UAAU,eAAe,CAAC,QAA6C;IAC3E,OAAO,cAAc,CAAC,gBAAgB,CAAC,QAAuC,CAAC,CAAC,CAAA;AAClF,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,MAAM,CAAC,QAA6C;IAClE,OAAO,gBAAgB,CAAC,QAAuC,CAAC,CAAA;AAClE,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,gBAAgB,CAAC,KAAqB;IACpD,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAA;IACrB,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAA;IACzB,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QAAE,OAAO,EAAE,CAAA;IACxC,OAAO,CAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAA;AAC5F,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prenta/sections-react",
3
- "version": "0.15.0",
3
+ "version": "0.16.1",
4
4
  "license": "MIT",
5
5
  "description": "Public React renderer for Prenta CMS page sections — the canonical PageSection[] contract — with a consumer-controlled renderer registry.",
6
6
  "repository": {
@@ -12,7 +12,9 @@
12
12
  "access": "public"
13
13
  },
14
14
  "type": "module",
15
- "sideEffects": false,
15
+ "sideEffects": [
16
+ "**/*.css"
17
+ ],
16
18
  "main": "./dist/index.js",
17
19
  "types": "./dist/index.d.ts",
18
20
  "exports": {
@@ -21,6 +23,7 @@
21
23
  "import": "./dist/index.js",
22
24
  "default": "./dist/index.js"
23
25
  },
26
+ "./styles.css": "./dist/styles.css",
24
27
  "./testing": {
25
28
  "types": "./dist/testing.d.ts",
26
29
  "import": "./dist/testing.js",
@@ -32,7 +35,7 @@
32
35
  "CHANGELOG.md"
33
36
  ],
34
37
  "dependencies": {
35
- "@prenta/core": "0.118.0"
38
+ "@prenta/core": "0.120.0"
36
39
  },
37
40
  "peerDependencies": {
38
41
  "react": ">=18.0.0",
@@ -48,10 +51,12 @@
48
51
  }
49
52
  },
50
53
  "devDependencies": {
54
+ "@tailwindcss/cli": "^4.0.0",
51
55
  "@types/react": "^19.0.0",
56
+ "@types/react-dom": "^19.0.0",
52
57
  "react": "^19.2.0",
53
58
  "react-dom": "^19.2.0",
54
- "@types/react-dom": "^19.0.0",
59
+ "tailwindcss": "^4.0.0",
55
60
  "typescript": "^5.7.0",
56
61
  "vitest": "^4.1.0",
57
62
  "@prenta/plugin-consent": "0.4.0"
@@ -60,10 +65,11 @@
60
65
  "node": ">=20"
61
66
  },
62
67
  "scripts": {
63
- "build": "tsc --project tsconfig.json",
68
+ "build": "tsc --project tsconfig.json && npx @tailwindcss/cli -i src/styles.css -o dist/styles.css --minify",
64
69
  "dev": "tsc --project tsconfig.json --watch --preserveWatchOutput",
65
70
  "type-check": "tsc --noEmit",
66
71
  "test": "vitest run",
67
- "clean": "rm -rf dist .turbo"
72
+ "clean": "rm -rf dist .turbo",
73
+ "build:css": "npx @tailwindcss/cli -i src/styles.css -o dist/styles.css --minify"
68
74
  }
69
75
  }