@sinnstack/ui 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/README.md +6 -4
  3. package/docs/blocks.md +373 -364
  4. package/docs/data.md +128 -128
  5. package/docs/finishes.md +165 -0
  6. package/docs/primitives.md +4 -4
  7. package/docs/seo.md +191 -187
  8. package/package.json +15 -24
  9. package/src/blocks/BlockRenderer.astro +13 -7
  10. package/src/blocks/CTABanner.astro +8 -8
  11. package/src/blocks/CTAPair.astro +9 -9
  12. package/src/blocks/CardGrid.astro +7 -7
  13. package/src/blocks/ConsentEmbed.astro +1 -1
  14. package/src/blocks/ConsentManager.astro +1 -1
  15. package/src/blocks/ContactCard.astro +14 -14
  16. package/src/blocks/ContactForm.astro +4 -4
  17. package/src/blocks/ErrorPage.astro +1 -1
  18. package/src/blocks/FAQ.astro +9 -9
  19. package/src/blocks/FeatureGrid.astro +7 -7
  20. package/src/blocks/Hero.astro +11 -11
  21. package/src/blocks/HeroCarousel.astro +11 -11
  22. package/src/blocks/HighlightCards.astro +10 -10
  23. package/src/blocks/LocationHours.astro +14 -14
  24. package/src/blocks/LogoCloud.astro +7 -7
  25. package/src/blocks/MaintenancePage.astro +8 -3
  26. package/src/blocks/MediaText.astro +12 -12
  27. package/src/blocks/PageHeader.astro +9 -9
  28. package/src/blocks/ProseSection.astro +8 -8
  29. package/src/blocks/Reviews.astro +11 -11
  30. package/src/blocks/RichText.astro +58 -57
  31. package/src/blocks/StatsBand.astro +117 -117
  32. package/src/blocks/Steps.astro +9 -9
  33. package/src/blocks/Testimonials.astro +13 -13
  34. package/src/blocks/cms/card-grid.ts +48 -80
  35. package/src/blocks/cms/consent.ts +1 -30
  36. package/src/blocks/cms/contact-card.ts +4 -46
  37. package/src/blocks/cms/contact-form.ts +2 -20
  38. package/src/blocks/cms/cta-banner.ts +2 -23
  39. package/src/blocks/cms/cta-pair.ts +4 -37
  40. package/src/blocks/cms/data-base.ts +2 -4
  41. package/src/blocks/cms/data.ts +19 -19
  42. package/src/blocks/cms/faq.ts +4 -36
  43. package/src/blocks/cms/feature-grid.ts +47 -80
  44. package/src/blocks/cms/fixtures.ts +591 -599
  45. package/src/blocks/cms/hero-carousel.ts +4 -48
  46. package/src/blocks/cms/hero.ts +2 -46
  47. package/src/blocks/cms/highlight-cards.ts +4 -39
  48. package/src/blocks/cms/images.ts +1 -2
  49. package/src/blocks/cms/index.ts +59 -87
  50. package/src/blocks/cms/location-hours.ts +3 -85
  51. package/src/blocks/cms/logo-cloud.ts +36 -62
  52. package/src/blocks/cms/media-text.ts +2 -20
  53. package/src/blocks/cms/page-header.ts +27 -49
  54. package/src/blocks/cms/pages.ts +35 -81
  55. package/src/blocks/cms/prose-section.ts +2 -22
  56. package/src/blocks/cms/reviews.ts +5 -56
  57. package/src/blocks/cms/schema-dsl.ts +134 -0
  58. package/src/blocks/cms/schema.ts +794 -0
  59. package/src/blocks/cms/shared.ts +63 -115
  60. package/src/blocks/cms/stats-band.ts +35 -61
  61. package/src/blocks/cms/steps.ts +4 -31
  62. package/src/blocks/cms/testimonials.ts +4 -38
  63. package/src/blocks/cms/topbar.ts +4 -41
  64. package/src/blocks/cms/types.ts +1 -37
  65. package/src/blocks/consent.ts +2 -2
  66. package/src/blocks/index.ts +2 -2
  67. package/src/blocks/internal/Actions.astro +11 -5
  68. package/src/blocks/internal/BlockHeader.astro +7 -7
  69. package/src/blocks/internal/Placeholder.astro +3 -3
  70. package/src/blocks/internal/fields.ts +18 -0
  71. package/src/blocks/internal/registry-contract.ts +67 -0
  72. package/src/blocks/internal/util.ts +4 -4
  73. package/src/blocks/lib/contact.ts +10 -4
  74. package/src/blocks/lib/faq.ts +1 -1
  75. package/src/blocks/lib/markdown.ts +350 -0
  76. package/src/blocks/lib/rich-text.ts +132 -143
  77. package/src/blocks/scripts/consent-manager.ts +1 -1
  78. package/src/blocks/scripts/consent-store.ts +1 -1
  79. package/src/blocks/scripts/hours.ts +3 -2
  80. package/src/blocks/types.ts +33 -23
  81. package/src/data/ChartContainer.astro +2 -1
  82. package/src/data/cms.ts +130 -190
  83. package/src/data/lib/chart.ts +13 -4
  84. package/src/data/schema.ts +65 -0
  85. package/src/finishes/aurora.css +75 -0
  86. package/src/finishes/autumn.css +87 -0
  87. package/src/finishes/blueprint.css +69 -0
  88. package/src/finishes/brutalist.css +55 -0
  89. package/src/finishes/clay.css +48 -0
  90. package/src/finishes/day-cycle.css +46 -0
  91. package/src/finishes/fog.css +71 -0
  92. package/src/finishes/glass.css +149 -0
  93. package/src/finishes/holographic.css +91 -0
  94. package/src/finishes/night.css +77 -0
  95. package/src/finishes/paper.css +58 -0
  96. package/src/finishes/polished-glass.css +159 -0
  97. package/src/finishes/rain.css +84 -0
  98. package/src/finishes/scripts/day-cycle.ts +30 -0
  99. package/src/finishes/scripts/holographic.ts +37 -0
  100. package/src/finishes/scripts/spotlight.ts +30 -0
  101. package/src/finishes/spotlight.css +41 -0
  102. package/src/finishes/spring.css +80 -0
  103. package/src/finishes/terminal.css +49 -0
  104. package/src/primitives/Divider.astro +1 -1
  105. package/src/primitives/FocusRing.astro +1 -1
  106. package/src/primitives/FormField.astro +2 -2
  107. package/src/primitives/Image.astro +3 -3
  108. package/src/primitives/Input.astro +4 -2
  109. package/src/primitives/MetricCard.astro +3 -1
  110. package/src/primitives/Picture.astro +3 -3
  111. package/src/primitives/Prose.astro +1 -1
  112. package/src/primitives/Select.astro +4 -2
  113. package/src/primitives/Slider.astro +1 -1
  114. package/src/primitives/Table.astro +1 -1
  115. package/src/primitives/Textarea.astro +4 -2
  116. package/src/primitives/Thumbnail.astro +2 -2
  117. package/src/primitives/index.ts +4 -4
  118. package/src/primitives/internal/ChoiceField.astro +4 -2
  119. package/src/primitives/scripts/slider.ts +1 -1
  120. package/src/primitives/scripts/table-sort.ts +2 -2
  121. package/src/seo/cms.ts +59 -80
  122. package/src/seo/index.ts +1 -1
  123. package/src/seo/integration.ts +40 -3
  124. package/src/seo/lib/jsonld.ts +10 -2
  125. package/src/seo/lib/meta.ts +2 -2
  126. package/src/seo/lib/redirects.ts +14 -4
  127. package/src/seo/lib/rss.ts +1 -1
  128. package/src/seo/lib/sitemap.ts +1 -1
  129. package/src/seo/schema.ts +43 -0
  130. package/src/blocks/internal/tina.ts +0 -19
  131. /package/src/blocks/{lib → internal}/consent.ts +0 -0
  132. /package/src/blocks/{lib → internal}/reviews.ts +0 -0
  133. /package/src/blocks/{lib → internal}/slug.ts +0 -0
  134. /package/src/data/{lib → internal}/scale.ts +0 -0
  135. /package/src/primitives/{lib → internal}/image-plan.ts +0 -0
  136. /package/src/primitives/{lib → internal}/image.ts +0 -0
  137. /package/src/primitives/{lib → internal}/slider.ts +0 -0
  138. /package/src/seo/{lib → internal}/url.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,79 @@
1
1
  # @sinnstack/ui
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 447a3ed: **SinnStackCMS schemas ship with the library.** Sites no longer hand-write a schema per block in `sinnstack.config.ts`.
8
+
9
+ - `@sinnstack/ui/blocks/schema`: `blockSchemas` (all 19 blocks, keyed by `_template`, for `fields.blocks({ types: blockSchemas })`), one export per block (`heroSchema`…), and the site settings the blocks read: `topbarSchema`, `consentSchema`, `errorPagesSchema` (together as `siteSettingsFields`). `withoutFields(schema, keys)` hides fields. Helpers for site blocks: `settingsField(keys)`, `actionsField(max)` and `blockSchema<Data>()`.
10
+ - `@sinnstack/ui/seo/schema`: `seoSchema` and `redirectsSchema`. `@sinnstack/ui/data/schema`: `chartSchema` and `sparklineSchema`. These replace the Tina `seoField`, `redirectsField`, `chartField` and `sparklineField`.
11
+ - The schemas are plain JSON in the CMS's field format, with no dependency on `@sinnstack/cms`. They're typed against the stored data shapes, so `astro check` fails on a field, field kind or select option a mapper doesn't read. A unit test checks that every block has a schema, that each block's settings match what its mapper reads, and that the defaults and fixtures fit.
12
+ - `seoProps(seo, fallback, { resolveImage })`: pass BlockRenderer's resolver so a share image picked in the CMS (`/src/assets/share.jpg`) becomes the built asset, cropped to 1200×630. Before, the path went out as a literal `og:image` URL, which 404s in production.
13
+ - **Rich text is Markdown.** Strings passed to RichText, ProseSection's `body` and FAQ answers are parsed as Markdown (headings, lists, quotes, code, tables, images, bold/italic/strike, links) into the same allowlisted node tree, so raw HTML still shows as text and unsafe URLs are still dropped. The schemas use SinnStackCMS's `markdown` field. Plain text is valid Markdown and renders as before, unless it contains Markdown syntax such as a line starting with `- ` or `1. `, or `*stars*`. Rich-text trees still render. `@sinnstack/ui/blocks/markdown` exports `markdownToRichText` and `richTextToMarkdown`: use the latter to move stored trees (e.g. from TinaCMS) into Markdown, which the CMS can edit.
14
+
15
+ - 447a3ed: **Breaking: TinaCMS support removed; the blocks now target SinnStackCMS.** The data → props mappers, data shapes, defaults, fixtures, `createImageResolver`, `topbarProps`, `consentProps`, `errorPageProps`, `seoProps`, `redirectMapFromCms` and `chartFromCms` are unchanged, and stored content keeps working.
16
+
17
+ - **Removed (Tina schema objects):** every `*Template` export and `blockTemplates` from `@sinnstack/ui/blocks/cms`, plus `settingsField`, `actionsField`, `topbarField`, `consentField`, `errorPagesField`, `maintenanceField`, and the `TinaField` / `TinaTemplate` / `TinaOption` types; `chartField` and `sparklineField` from `@sinnstack/ui/data/cms`; `seoField` and `redirectsField` from `@sinnstack/ui/seo/cms`. Block schemas now live in the site's `sinnstack.config.ts`.
18
+ - **`templateName` reads `_template` only.** Tina's GraphQL `__typename` is no longer recognised.
19
+ - **Click-to-edit is now `data-sinn-field`.** The blocks' `tina` prop (and the `TinaSource` type) is replaced by `fieldPath`. Pass `<BlockRenderer fieldPath="blocks">` in CMS previews and each section, field and list item gets its path in the content entry (`blocks.2`, `blocks.2.heading`, `blocks.2.items.0`). Item paths are the stored indices even when the mapper skips empty items. Without `fieldPath` nothing is annotated, so production HTML no longer carries editing attributes.
20
+ - Mapped list items and actions carry a `field` key (their path relative to the block). Plain prop usage can ignore it.
21
+ - `docs/tina.md` is gone; the CMS sections of the docs describe the stored data shapes instead.
22
+
23
+ - 1746514: Add finishes, a second theming choice next to palettes: a rendering style that works on top of any palette. Finishes are opt-in stylesheets under `@sinnstack/ui/finishes/<name>.css`, switched on with `<html data-finish="…">`; without the attribute nothing changes.
24
+
25
+ - **Glass** (`@sinnstack/ui/finishes/glass.css`, `data-finish="glass"`): frosted, translucent cards, panels, dialogs, popovers, navbar and footer over a soft backdrop drawn from the palette's accent colours. Tunable with `--sinn-finish-glass-*` tokens. Falls back to solid surfaces under `prefers-reduced-transparency: reduce` and in browsers without `backdrop-filter`.
26
+ - **Polished glass** (`@sinnstack/ui/finishes/polished-glass.css`, `data-finish="polished-glass"`): the bold version. Clear glass panels with a translucent rim, top highlight, drop shadow and strong blur, floating over a dimmed scene: the site's own image (`--sinn-finish-polished-glass-image`) or gradients from the palette's accent colours. Dark only: it sets `color-scheme: dark`, so every palette shows its own dark side and its dark-side contrast checks still hold.
27
+ - **Scene finishes** (`aurora`, `autumn`, `rain`, `fog`): decorative layers behind the page, gradients only, animated by transform, still under reduced motion. Aurora drifts blobs of the palette's `accent-soft`; Fog drifts bands of its `neutral-soft` (both fills palettes already guarantee text on); Autumn drops leaves under a warm glow and Rain slants streaks under a cool cast, in their own colours at low opacity, exposed as `--sinn-finish-*` tokens. Combine one scene with a glass finish: `data-finish="glass aurora"`.
28
+ - **Surface finishes** (`brutalist`, `clay`, `blueprint`, `paper`): Brutalist (square corners, thick borders and hard offset shadows in the text colour, buttons that press in), Soft / clay (large radii, layered soft shadows, borderless panels), Blueprint (a drafting grid from the palette's border tokens, thin borders, no shadows), Paper / print (fine grain and letterpress headings; the warm colours stay with the Paper palette).
29
+ - **Interactive finishes** (`spotlight`, `holographic`, `day-cycle`), each with a small optional script at `@sinnstack/ui/finishes/scripts/<name>` that only sets that finish's `--sinn-finish-*` variables: Spotlight (accent-soft light behind the page following the pointer), Holographic edges (an iridescent ring on hovered cards, its sheen turning toward the pointer), Day cycle (warm light placed by the visitor's local time, a faint cool glow at night).
30
+ - **More finishes:** Night (a dark-only starfield twinkling slowly, opacity-only), Spring (petals and pollen drifting in pale light), Terminal / CRT (faint scanlines and a phosphor glow in each element's own text colour; no flicker, off with `prefers-contrast: more`, forced colours and print).
31
+ - **Finish contract:** finishes may also set the library's non-colour tokens (radius, border width, shadow shapes, focus width), scoped to the finish; @keyframes are named `sinn-finish-<name>-*`.
32
+ a finish never declares a `--sinn-color-*` token and every rule is scoped to its `data-finish` value. `test/finishes/finish-contract.unit.mjs` enforces this.
33
+ - New guide: `docs/finishes.md`.
34
+
35
+ ### Patch Changes
36
+
37
+ - 447a3ed: SinnStackCMS compatibility.
38
+
39
+ - `safeHref` refuses a scheme with nothing after it (`https://`, `mailto:`, `tel:`, `sms:`), which rendered as a link to nowhere. The CMS's link check refuses the same values, and accepts `sms:` links and `tel:` links with an extension (`;ext=12`) or letters (`1-800-FLOWERS`), which the blocks render.
40
+ - LocationHours' "Map embed URL" field is a text field that must start with `https://`. It was a link field, so the CMS accepted page paths the block then ignored, leaving no map.
41
+
42
+ - 563c4f6: Fixes for static redirects, the Maintenance page notice, and type checking.
43
+
44
+ - **Redirects with params in static builds.** `sinnSeo` no longer breaks a static build with a redirect that has params (`/news/[slug]` → `/blog/[slug]`) when there's no page at the destination route. Astro builds those redirects from the destination page's `getStaticPaths` and failed with "getStaticPaths required" without one. The integration now leaves such a rule out of Astro's config and logs a warning naming it; the rule stays in the `RedirectMap` for `toRedirectsFile()`, `toVercel()` and the middleware. `output: 'server'` sites are unchanged.
45
+ - **MaintenancePage `noticeTone`.** It now takes every Callout tone (`info`, `success`, `warning`, `danger`, `neutral`). `accent`, which Callout never had, is deprecated and maps to `info`: before, an `accent` notice looked like `info` but lost its screen-reader prefix ("Note:").
46
+ - **`astro check` passes on the package (79 errors → 0).**
47
+ - MetricCard: `value! / target!` made the language server's .astro parser (`@astrojs/astro2tsx`) read a regex and miss the closing `---`, so the whole template was checked as TypeScript. Rewritten as `(value as number) / (target as number)`; builds were never affected.
48
+ - Table: the stacked layout's `role` helper now returns ARIA role names instead of `string`.
49
+ - LocationHours script: open/closed status is narrowed with `in`, which works without `strictNullChecks` (Astro's base tsconfig leaves it off).
50
+ - Input, Select, Textarea: `required` is passed to FormField as a boolean.
51
+ - Checkbox, Radio and Switch (`aria-invalid`), Divider (`role`), Image and Picture (`fetchpriority`): attribute values keep their literal types.
52
+ - **Input, Select, Textarea, Checkbox, Radio and Switch with `id={null}`** now generate an id, as they do when `id` is left out. Before, `null` got past the default and the description and error ids became `null-desc` and `null-error`.
53
+ - **The package is type-checked with Astro's `strict` preset.** The only changes it needed: the null id handling above, and `FormField`'s `class` and the blocks' `id` accepting `null`, which is how Astro types a missing attribute.
54
+ - **Internal:** private helpers moved from `lib/` to `internal/`, and the `exports` map uses one pattern per module for `lib/` helpers, with a test that checks every entry. Import paths are unchanged.
55
+
56
+ - 447a3ed: Fixes from a library-wide review.
57
+
58
+ - **Security: CMS links are checked everywhere.** Buttons (`actions`), feature, card and logo links, breadcrumbs, error-page links and a chart's source link now pass `safeHref`, like contact, topbar, review and rich-text links already did. Before, a stored `javascript:` URL in those fields rendered as a working link. `safeHref` also refuses values with control characters (`java<tab>script:` runs as `javascript:` in browsers) or backslashes, and protocol-relative `//host` links.
59
+ - **Security: CSV downloads.** Chart table cells that start like a spreadsheet formula (`=`, `+`, `-`, `@`) get a leading `'`, so opening the CSV can't run a formula from CMS text.
60
+ - StatsBand's mapper only accepts icon names from the icon set, like the other blocks. The component checks its own keys, so an icon named `constructor` can't print function source.
61
+ - FAQ answers carry `data-sinn-field` paths (`blocks.N.items.M.answer`) in CMS previews.
62
+ - Charts without an `id` get a sequential id instead of a random one, so identical builds produce identical HTML.
63
+ - Schemas: ProseSection's "Narrow column" and CTAPair's "Full width" checkboxes default to on, matching the components. A unit test keeps checkbox defaults in step with component defaults.
64
+ - Type contract: each registry mapper's output is checked against its component's props (`astro check`). The FeatureGrid, CardGrid and LogoCloud mappers now type their items.
65
+ - Docs: the FocusRing example no longer suggests `set:html` for CMS content.
66
+
67
+ - 447a3ed: Fixes from a second library review.
68
+
69
+ - **Security: open redirect in `RedirectMap.resolve` / `createRedirectMiddleware`.** Param values taken from the request path were put into the destination decoded, so with a rule like `/old/[slug]` → `/[slug]`, a request for `/old/%5Cevil.com` redirected to `/\evil.com`, which browsers follow to `evil.com`. Param values are now re-encoded (`\` becomes `%5C`; existing escapes are kept), and `$` sequences in them are no longer read as replacement patterns.
70
+ - `RedirectMap` reports a rule with an invalid full URL (e.g. a CSV row with `https://old site.com/x`) as an error instead of throwing from the constructor, so the other rules still load.
71
+ - `safeMediaUrl` (rich-text images) refuses backslashes and control characters, like `safeHref`.
72
+ - Charts: numeric `x` values (`[2019, 2020, 2021]`) are categories, not milliseconds since 1970. Before, a line chart of years showed every point as "1970" with no x labels. Pass `xType: 'time'` to have numbers read as timestamps.
73
+ - Text with `$&`, `` $` `` or `$'` in it no longer gets mangled when it fills a template: SEO titles (`titleTemplate`), LocationHours' map title and "Open in" link, ConsentEmbed's notice, Testimonials' "Read on {source}" and the Table sort announcement.
74
+
75
+ - 447a3ed: `service()` JSON-LD keeps the URL's fragment in its `@id`: `/services/#brakes` is `/services/#service-brakes`. It used to drop the fragment, so several services listed on one page all got `/services/#service` and search engines merged them into one node.
76
+
3
77
  ## 0.2.0
4
78
 
5
79
  ### Minor Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Astro components and design tokens for fast, accessible marketing sites.
4
4
 
5
5
  - **Primitives**: layout, typography, buttons, form controls, cards, navigation, dialogs, tables and media.
6
- - **Blocks**: ready-made page sections (Hero, FeatureGrid, FAQ, Testimonials, ContactForm, LocationHours and more), cookie consent, and 404 and maintenance pages, with TinaCMS schemas.
6
+ - **Blocks**: ready-made page sections (Hero, FeatureGrid, FAQ, Testimonials, ContactForm, LocationHours and more), cookie consent, and 404 and maintenance pages, with CMS data mappers for SinnStackCMS.
7
7
  - **SEO**: head tags, JSON-LD, sitemaps, RSS, robots.txt and redirects.
8
8
  - **Data**: SVG charts and sparklines that work without JavaScript.
9
9
  - **Motion** (optional): scroll reveals, parallax, marquees, page transitions and GSAP scroll scenes.
@@ -106,13 +106,14 @@ The group entries (`@sinnstack/ui/primitives`, `@sinnstack/ui/blocks`, …) re-e
106
106
  | `@sinnstack/ui/base.css` | Optional page baseline: box sizing, body type, responsive media, one focus ring. |
107
107
  | `@sinnstack/ui/primitives/<Name>.astro` | Layout (`Container`, `Stack`, `Grid`…), type (`Heading`, `Text`, `Prose`), `Button`, form controls, `Card`, `Navbar`, `Footer`, `Dialog`, `Tabs`, `Accordion`, `Table`, `Image`… |
108
108
  | `@sinnstack/ui/blocks/<Name>.astro` | Page sections: `Hero`, `HeroCarousel`, `PageHeader`, `FeatureGrid`, `CardGrid`, `Steps`, `MediaText`, `StatsBand`, `LogoCloud`, `Testimonials`, `Reviews`, `FAQ`, `ContactForm`, `ContactCard`, `LocationHours`, `CTABanner`, `CTAPair`, `Topbar`, consent, `ErrorPage`, `MaintenancePage`, `BlockRenderer` |
109
- | `@sinnstack/ui/blocks/cms` | TinaCMS templates, defaults, fixtures and CMS-to-props mappers for every block |
109
+ | `@sinnstack/ui/blocks/cms` | Data shapes, defaults, fixtures and CMS-to-props mappers for every block |
110
110
  | `@sinnstack/ui/seo/<Name>.astro` | `SEOHead`, `JSONLD` |
111
111
  | `@sinnstack/ui/seo/integration` | Astro integration: sitemaps built from your pages, robots.txt |
112
112
  | `@sinnstack/ui/data/<Name>.astro` | `ChartContainer` and parts, `Sparkline` |
113
113
  | `@sinnstack/ui/motion/<Name>.astro` | `RevealOnScroll`, `Parallax`, `Marquee`, `PageTransitions`, `MotionProvider`, `ScrollScene` |
114
+ | `@sinnstack/ui/finishes/<name>.css` | Optional finishes: a rendering style on top of any palette, switched on with `<html data-finish="…">`. Available: `glass`, `polished-glass`, the scenes `aurora`, `autumn`, `rain`, `fog`, `night`, `spring`, the `terminal` look, the surfaces `brutalist`, `clay`, `blueprint`, `paper`, and the interactive `spotlight`, `holographic`, `day-cycle` (with `@sinnstack/ui/finishes/scripts/<name>`). |
114
115
 
115
- Every group also has helper modules (`@sinnstack/ui/seo/jsonld`, `@sinnstack/ui/blocks/hours`, `@sinnstack/ui/data/chart` and so on), listed in its guide.
116
+ Every group also has helper modules (`@sinnstack/ui/seo/jsonld`, `@sinnstack/ui/blocks/hours`, `@sinnstack/ui/data/chart` and so on), listed in its guide. Files under a group's `internal/` folder are private and can't be imported.
116
117
 
117
118
  ## Guides
118
119
 
@@ -122,10 +123,11 @@ Each guide is the full reference for one part of the library: props, variants, C
122
123
  | --- | --- |
123
124
  | [Tokens](docs/tokens.md) | Every token, theming a client site, checking contrast |
124
125
  | [Primitives](docs/primitives.md) | Layout, typography, buttons, forms, surfaces, navigation, overlays, data display, media |
125
- | [Blocks](docs/blocks.md) | Every section block, the block renderer, TinaCMS setup, consent, error and maintenance pages |
126
+ | [Blocks](docs/blocks.md) | Every section block, the block renderer, CMS setup, consent, error and maintenance pages |
126
127
  | [SEO](docs/seo.md) | `SEOHead`, JSON-LD builders, the sitemap integration, RSS, redirects |
127
128
  | [Data](docs/data.md) | Charts and sparklines, CMS chart fields |
128
129
  | [Motion](docs/motion.md) | Reveals, parallax, marquees, page transitions, GSAP scenes |
130
+ | [Finishes](docs/finishes.md) | Glass, polished glass and future finishes: what they change, how they combine with palettes, tuning |
129
131
 
130
132
  ## Theming
131
133