@atelic-action/ui 7.1.0 → 8.0.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 (105) hide show
  1. package/README.md +313 -127
  2. package/package.json +14 -10
  3. package/src/app/ErrorFallback.tsx +6 -2
  4. package/src/app/context/AppContext.tsx +10 -1
  5. package/src/app/index.ts +0 -1
  6. package/src/app/layout/AppPage.tsx +36 -7
  7. package/src/app/layout/DesktopRail.tsx +9 -2
  8. package/src/app/layout/MobileMenu.tsx +5 -1
  9. package/src/app/layout/PageError.tsx +6 -3
  10. package/src/app/layout/PageSkeleton.tsx +33 -26
  11. package/src/app/layout/UserMenu.tsx +12 -6
  12. package/src/app/ui/alert.tsx +41 -11
  13. package/src/app/ui/badge.tsx +1 -1
  14. package/src/app/ui/button.tsx +2 -1
  15. package/src/app/ui/command.tsx +86 -21
  16. package/src/app/ui/country-dropdown.tsx +26 -47
  17. package/src/app/ui/form.tsx +46 -7
  18. package/src/app/ui/pagination.tsx +1 -1
  19. package/src/app/ui/progress.tsx +26 -12
  20. package/src/app/ui/search-input.tsx +16 -3
  21. package/src/app/ui/select.tsx +8 -3
  22. package/src/app/ui/slider.tsx +62 -15
  23. package/src/artifact/ArtifactShell.tsx +8 -3
  24. package/src/artifact/ErrorFallback.tsx +8 -1
  25. package/src/artifact/artifactConfig.ts +1 -1
  26. package/src/chrome/BrandLockup.tsx +71 -16
  27. package/src/chrome/ClosingBar.tsx +8 -5
  28. package/src/chrome/ContactDock.tsx +329 -0
  29. package/src/chrome/Footer.tsx +32 -9
  30. package/src/chrome/NavBadge.tsx +8 -0
  31. package/src/chrome/NavMegaPanel.tsx +388 -0
  32. package/src/chrome/SiteHeader.tsx +235 -18
  33. package/src/chrome/SiteMenu.tsx +197 -19
  34. package/src/chrome/SiteShell.tsx +130 -13
  35. package/src/chrome/StickyCTABar.tsx +56 -2
  36. package/src/chrome/brandMark.ts +56 -0
  37. package/src/chrome/icons.ts +58 -0
  38. package/src/chrome/index.ts +16 -0
  39. package/src/chrome/navSections.ts +55 -0
  40. package/src/components/ColumnChart.tsx +27 -2
  41. package/src/components/DataTable.tsx +104 -85
  42. package/src/components/Disclosure.tsx +3 -1
  43. package/src/components/Hint.tsx +3 -24
  44. package/src/components/NotFound.tsx +4 -1
  45. package/src/components/StarRating.tsx +45 -19
  46. package/src/components/ThresholdScale.tsx +36 -26
  47. package/src/email/atoms.tsx +13 -57
  48. package/src/email/frame.tsx +4 -6
  49. package/src/email/index.ts +4 -10
  50. package/src/email/scoreboard.tsx +107 -186
  51. package/src/email/text.ts +30 -0
  52. package/src/email/theme.tsx +76 -9
  53. package/src/hooks/useDismiss.ts +39 -0
  54. package/src/lib/useScrollsSideways.ts +26 -0
  55. package/src/primitives/Button.tsx +2 -0
  56. package/src/primitives/ProseBlocks.tsx +6 -1
  57. package/src/primitives/SectionHeading.tsx +3 -1
  58. package/src/primitives/StarRow.tsx +23 -8
  59. package/src/sections/BlogIndex.tsx +17 -3
  60. package/src/sections/BlogPost.tsx +10 -1
  61. package/src/sections/CTASection.tsx +2 -2
  62. package/src/sections/CalloutPanel.tsx +34 -0
  63. package/src/sections/ComparisonTable.tsx +23 -2
  64. package/src/sections/ContactForm.tsx +61 -17
  65. package/src/sections/FAQBrowser.tsx +11 -2
  66. package/src/sections/FeatureGrid.tsx +6 -2
  67. package/src/sections/FullBleedVideo.tsx +158 -0
  68. package/src/sections/Gallery.tsx +6 -4
  69. package/src/sections/Hero.tsx +63 -39
  70. package/src/sections/JumpRail.tsx +7 -0
  71. package/src/sections/LegalPage.tsx +10 -2
  72. package/src/sections/LinkColumns.tsx +64 -0
  73. package/src/sections/LocationSection.tsx +28 -5
  74. package/src/sections/Locations.tsx +17 -4
  75. package/src/sections/LogoMarquee.tsx +43 -11
  76. package/src/sections/MapEmbed.tsx +13 -9
  77. package/src/sections/PageHero.tsx +16 -2
  78. package/src/sections/ProcessSteps.tsx +27 -4
  79. package/src/sections/ProfileCards.tsx +12 -2
  80. package/src/sections/ProofStrip.tsx +44 -0
  81. package/src/sections/RevealSlider.tsx +28 -7
  82. package/src/sections/ReviewCarousel.tsx +17 -4
  83. package/src/sections/ReviewWall.tsx +2 -2
  84. package/src/sections/SplitSection.tsx +2 -1
  85. package/src/sections/index.ts +15 -6
  86. package/src/sections/siteConfig.ts +66 -3
  87. package/src/styles/app.css +24 -2
  88. package/src/styles/artifact.css +20 -8
  89. package/src/styles/base.css +42 -13
  90. package/src/styles/chrome.css +938 -48
  91. package/src/styles/components.css +104 -65
  92. package/src/styles/defaults.css +137 -0
  93. package/src/styles/gate.css +21 -10
  94. package/src/styles/primitives.css +97 -35
  95. package/src/styles/sections.css +477 -437
  96. package/src/styles/star-rating.css +1 -4
  97. package/src/tokens/palettes.ts +24 -4
  98. package/src/types.ts +212 -2
  99. package/src/app/CardErrorBoundary.tsx +0 -39
  100. package/src/sections/CTABanner.tsx +0 -93
  101. package/src/sections/DeviceShowcase.tsx +0 -39
  102. package/src/sections/MediaBand.tsx +0 -20
  103. package/src/sections/MenuList.tsx +0 -44
  104. package/src/sections/PressQuotes.tsx +0 -51
  105. package/src/sections/SocialStrip.tsx +0 -83
package/README.md CHANGED
@@ -6,55 +6,56 @@ The package ships source, not a build. Its TSX and CSS arrive as written and com
6
6
 
7
7
  ## Component Index
8
8
 
9
- Every export, grouped by the entry it is imported from. The gallery column links the section of [ui.atelic.me](https://ui.atelic.me) that shows it; none marks an export that draws nothing. The composed documents (the writeup, the read, the monthly page, the note, and the sealed document) are not here: since 2.0.0 they live in [`@atelic-action/artifact`](https://github.com/atelic-action/artifact), which builds them from the pieces this package exports.
9
+ Every export, grouped by the entry it is imported from. The Storybook column links the docs page on [ui.atelic.me](https://ui.atelic.me), the package's Storybook, that shows it; none marks an export that draws nothing. The composed documents (the writeup, the read, the monthly page, the note, and the sealed document) are not here: since 2.0.0 they live in [`@atelic-action/artifact`](https://github.com/atelic-action/artifact), which builds them from the pieces this package exports.
10
10
 
11
- | Export | Entry | What it is | Gallery |
11
+ | Export | Entry | What it is | Storybook |
12
12
  |---|---|---|---|
13
- | `SiteHeader` | `@atelic-action/ui/chrome` | The fixed bar: the lockup, the nav or a page's own stops, the call to action, the burger; transparent, solid, or dark | [#site-header](https://ui.atelic.me/#site-header) |
14
- | `SiteMenu` | `@atelic-action/ui/chrome` | The phone's full screen menu, on a native modal dialog | [#site-menu](https://ui.atelic.me/#site-menu) |
15
- | `Footer` | `@atelic-action/ui/chrome` | The default footer: the brand column (logo, Google rating, linked address, phone, email), the link columns, and the closing bar | [#footer](https://ui.atelic.me/#footer) |
16
- | `ClosingBar`, `Copyright`, `Credit` | `@atelic-action/ui/chrome` | The line that closes every page, in two sides that each take anything: by default `Copyright` with the business's name on the left and `Credit`, the practice's made with line, on the right | [#closing-bar](https://ui.atelic.me/#closing-bar) |
17
- | `StickyCTABar` | `@atelic-action/ui/chrome` | The phone's bottom bar: the call to action and a call shortcut, there from the top on an interior page (`fromTop`) and sliding in after a scroll on a hero page | [#sticky-cta-bar](https://ui.atelic.me/#sticky-cta-bar) |
18
- | `BrandLockup` | `@atelic-action/ui/chrome` | The header's identity as one link, with the recipient's mark on a sent document | [#brand-lockup](https://ui.atelic.me/#brand-lockup) |
19
- | `SkipLink` | `@atelic-action/ui/chrome` | The keyboard user's jump past the chrome | [#skip-link](https://ui.atelic.me/#skip-link) |
20
- | `Brand`, `BrandLogo`, `CallToAction`, `HoursRow`, `MenuContact`, `NavLink`, `Phone`, `PostalAddress`, `SiteLink`, `SocialLink`, `PageStop`, `FooterColumn`, `FooterColumnLink`, `FooterIcon` | `@atelic-action/ui/chrome` | The shapes the chrome renders from (types) | none |
21
- | `NotFound` | `@atelic-action/ui/components` | The body of the page an unknown path renders | [#not-found](https://ui.atelic.me/#not-found) |
22
- | `Checklist` | `@atelic-action/ui/components` | A short list of checks, each passed or failed | [#checklist](https://ui.atelic.me/#checklist) |
23
- | `IconList` | `@atelic-action/ui/components` | A list whose bullets are icons, one for the list or one per item, each in a tone | [#icon-list](https://ui.atelic.me/#icon-list) |
24
- | `DataTable` | `@atelic-action/ui/components` | A table whose first column names each row, sortable, stacking on a phone | [#data-table](https://ui.atelic.me/#data-table) |
25
- | `Hint` | `@atelic-action/ui/components` | An info icon that opens a short explainer beside a word, or beside a table heading | [#hint](https://ui.atelic.me/#hint) |
26
- | `ReportCard` | `@atelic-action/ui/components` | A name, a grade, and a line per row, in labeled groups, each row a link to its section | [#report-card](https://ui.atelic.me/#report-card) |
13
+ | `SiteHeader` | `@atelic-action/ui/chrome` | The fixed bar: the lockup, the nav or a page's own stops, the call to action, the burger; transparent, solid, or dark. A nav entry with `columns` is a group that opens a mega menu panel of link columns (nested links, badges), a picture, icon rows, and cards beside a ticked feature card, and `phones` puts up to two tel links in the bar (8.0.0) | [Chrome/SiteHeader](https://ui.atelic.me/?path=/docs/chrome-siteheader--docs) |
14
+ | `SiteMenu` | `@atelic-action/ui/chrome` | The phone's full screen menu, on a native modal dialog; a group is an accordion that opens one at a time, every group closed when the menu opens (8.0.0) | [Chrome/SiteMenu](https://ui.atelic.me/?path=/docs/chrome-sitemenu--docs) |
15
+ | `ContactDock` | `@atelic-action/ui/chrome` | The floating Get in Touch launcher and its panel of ways to reach the business, inset alike from the right and the bottom, lifting over the phone's sticky bar and riding above the footer; `SiteShell` mounts it from `site.contactDock` (8.0.0) | [Chrome/ContactDock](https://ui.atelic.me/?path=/docs/chrome-contactdock--docs) |
16
+ | `Footer` | `@atelic-action/ui/chrome` | The default footer: the brand column (logo, Google rating, linked address, phone, email), the link columns, and the closing bar | [Chrome/Footer](https://ui.atelic.me/?path=/docs/chrome-footer--docs) |
17
+ | `ClosingBar`, `Copyright`, `Credit` | `@atelic-action/ui/chrome` | The line that closes every page, in two sides that each take anything: by default `Copyright` with the business's name on the left and `Credit`, the practice's made with line, on the right | [Chrome/ClosingBar](https://ui.atelic.me/?path=/docs/chrome-closingbar--docs) |
18
+ | `StickyCTABar` | `@atelic-action/ui/chrome` | The phone's bottom bar: the call to action and a call shortcut, there from the top on an interior page (`fromTop`) and sliding in after a scroll on a hero page | [Chrome/StickyCTABar](https://ui.atelic.me/?path=/docs/chrome-stickyctabar--docs) |
19
+ | `BrandLockup` | `@atelic-action/ui/chrome` | The header's identity as one link, with the recipient's mark on a sent document; the brand's own mark per surface (`onLight`, `onDark`), never recolored, at `--brand-mark-height` (8.0.0) | [Chrome/BrandLockup](https://ui.atelic.me/?path=/docs/chrome-brandlockup--docs) |
20
+ | `SkipLink` | `@atelic-action/ui/chrome` | The keyboard user's jump past the chrome | [Chrome/SkipLink](https://ui.atelic.me/?path=/docs/chrome-skiplink--docs) |
21
+ | `Brand`, `BrandLogo`, `CallToAction`, `HoursRow`, `MenuContact`, `NavLink`, `NavPanelSection`, `NavGroupColumn`, `NavGroupLink`, `NavGroupChildLink`, `NavPictureSection`, `NavIconRowsSection`, `NavIconRow`, `NavIcon`, `NavCardsSection`, `NavCard`, `NavFeature`, `HeaderPhone`, `ContactDockConfig`, `ContactDockItem`, `ContactDockIcon`, `Phone`, `PostalAddress`, `SiteLink`, `SocialLink`, `PageStop`, `FooterColumn`, `FooterColumnLink`, `FooterIcon` | `@atelic-action/ui/chrome` | The shapes the chrome renders from (types) | none |
22
+ | `NotFound` | `@atelic-action/ui/components` | The body of the page an unknown path renders | [Components/NotFound](https://ui.atelic.me/?path=/docs/components-notfound--docs) |
23
+ | `Checklist` | `@atelic-action/ui/components` | A short list of checks, each passed or failed | [Components/Checklist](https://ui.atelic.me/?path=/docs/components-checklist--docs) |
24
+ | `IconList` | `@atelic-action/ui/components` | A list whose bullets are icons, one for the list or one per item, each in a tone | [Components/IconList](https://ui.atelic.me/?path=/docs/components-iconlist--docs) |
25
+ | `DataTable` | `@atelic-action/ui/components` | A table whose first column names each row, sortable, stacking on a phone | [Components/DataTable](https://ui.atelic.me/?path=/docs/components-datatable--docs) |
26
+ | `Hint` | `@atelic-action/ui/components` | An info icon that opens a short explainer beside a word, or beside a table heading | [Components/Hint](https://ui.atelic.me/?path=/docs/components-hint--docs) |
27
+ | `ReportCard` | `@atelic-action/ui/components` | A name, a grade, and a line per row, in labeled groups, each row a link to its section | [Components/ReportCard](https://ui.atelic.me/?path=/docs/components-reportcard--docs) |
27
28
  | `reportCardLabels`, `ReportCardLabels` | `@atelic-action/ui/components` | The words a screen reader hears around a report card's letters by default, and their type | none |
28
- | `Rank` | `@atelic-action/ui/components` | A figure with its badge in a tone, for a table cell: a rank, a place in an answer, or a dash | [#rank](https://ui.atelic.me/#rank) |
29
- | `StatRow` | `@atelic-action/ui/components` | A row of large figures with periods, deltas, and trends; a share's denominator set small after the figure (`outOf`) and a change set small beside it with a triangle (`change`), 3.14.0 | [#stat-row](https://ui.atelic.me/#stat-row) |
30
- | `Callout` | `@atelic-action/ui/components` | One finding: an icon in its tone, the title, the explainer | [#callout](https://ui.atelic.me/#callout) |
31
- | `Disclosure` | `@atelic-action/ui/components` | A section that folds: controlled, an app's card; uncontrolled, a native details fold that prints open | [#disclosure](https://ui.atelic.me/#disclosure) |
32
- | `Tabs`, `TabsItem` | `@atelic-action/ui/components` | Panels behind a row of tabs, every panel kept in the page: a hash opens the tab or the panel holding what it names, and it prints every panel under its label | [#tabs](https://ui.atelic.me/#tabs) |
33
- | `StackedBar` | `@atelic-action/ui/components` | One bar split into the parts of a whole, with a key | [#stacked-bar](https://ui.atelic.me/#stacked-bar) |
34
- | `ColumnChart` | `@atelic-action/ui/components` | A bar a period, the periods in labeled groups | [#column-chart](https://ui.atelic.me/#column-chart) |
35
- | `ThresholdScale` | `@atelic-action/ui/components` | Zones on a scale and a pin for each reading | [#threshold-scale](https://ui.atelic.me/#threshold-scale) |
36
- | `StarRating`, `describeStarRating` | `@atelic-action/ui/components` | A row of stars in half steps, read only or editable, and its spoken name | [#star-rating](https://ui.atelic.me/#star-rating) |
37
- | `GateLogin` | `@atelic-action/ui/components` | The access gate's sign in screen | [#gate-login](https://ui.atelic.me/#gate-login) |
38
- | `Watermark` | `@atelic-action/ui/components` | The signed in reader's confidential stamp, pill or tiled | [#watermark](https://ui.atelic.me/#watermark) |
29
+ | `Rank` | `@atelic-action/ui/components` | A figure with its badge in a tone, for a table cell: a rank, a place in an answer, or a dash | [Components/Rank](https://ui.atelic.me/?path=/docs/components-rank--docs) |
30
+ | `StatRow` | `@atelic-action/ui/components` | A row of large figures with periods, deltas, and trends; a share's denominator set small after the figure (`outOf`) and a change set small beside it with a triangle (`change`), 3.14.0 | [Components/StatRow](https://ui.atelic.me/?path=/docs/components-statrow--docs) |
31
+ | `Callout` | `@atelic-action/ui/components` | One finding: an icon in its tone, the title, the explainer (not `CalloutPanel`, the business's headline claims) | [Components/Callout](https://ui.atelic.me/?path=/docs/components-callout--docs) |
32
+ | `Disclosure` | `@atelic-action/ui/components` | A section that folds: controlled, an app's card; uncontrolled, a native details fold that prints open | [Components/Disclosure](https://ui.atelic.me/?path=/docs/components-disclosure--docs) |
33
+ | `Tabs`, `TabsItem` | `@atelic-action/ui/components` | Panels behind a row of tabs, every panel kept in the page: a hash opens the tab or the panel holding what it names, and it prints every panel under its label | [Components/Tabs](https://ui.atelic.me/?path=/docs/components-tabs--docs) |
34
+ | `StackedBar` | `@atelic-action/ui/components` | One bar split into the parts of a whole, with a key | [Components/StackedBar](https://ui.atelic.me/?path=/docs/components-stackedbar--docs) |
35
+ | `ColumnChart` | `@atelic-action/ui/components` | A bar a period, the periods in labeled groups | [Components/ColumnChart](https://ui.atelic.me/?path=/docs/components-columnchart--docs) |
36
+ | `ThresholdScale` | `@atelic-action/ui/components` | Zones on a scale and a pin for each reading | [Components/ThresholdScale](https://ui.atelic.me/?path=/docs/components-thresholdscale--docs) |
37
+ | `StarRating`, `describeStarRating` | `@atelic-action/ui/components` | A row of stars in half steps, read only or editable, and its spoken name | [Components/StarRating](https://ui.atelic.me/?path=/docs/components-starrating--docs) |
38
+ | `GateLogin` | `@atelic-action/ui/components` | The access gate's sign in screen | [Components/GateLogin](https://ui.atelic.me/?path=/docs/components-gatelogin--docs) |
39
+ | `Watermark` | `@atelic-action/ui/components` | The signed in reader's confidential stamp, pill or tiled | [Components/Watermark](https://ui.atelic.me/?path=/docs/components-watermark--docs) |
39
40
  | `readCookie`, `Tone` | `@atelic-action/ui/components` | The cookie reader the watermark uses, and the tone type | none |
40
- | `Button`, `PrimaryButton`, `SecondaryButton`, `Chip`, `Eyebrow`, `Lead`, `SectionHeading` | `@atelic-action/ui/primitives` | The small pieces a page is set in; the two named buttons are the only call to action shapes a page uses | [#primitives](https://ui.atelic.me/#primitives) |
41
- | `GradeChip`, `gradeLabel`, `WriteupGrade` | `@atelic-action/ui/artifact` | A section's grade, A to D, as a chip in its color, the letter alone, and the grade type | [#grade-chip](https://ui.atelic.me/#grade-chip) |
42
- | `SignOff`, `WriteupPerson` | `@atelic-action/ui/artifact` | The close a document ends on, and the person it names | [#sign-off](https://ui.atelic.me/#sign-off) |
43
- | `Shot`, `WriteupShot` | `@atelic-action/ui/artifact` | The owner's own screen, opening the full picture, over its caption; a portrait crop is marked `data-portrait` and held to 200px (1.8in in print) | [#shot](https://ui.atelic.me/#shot) |
44
- | `Paragraph`, `Runs`, `ArtifactAnchor`, `isEmpty`, `isQuery`, `ArtifactLink`, `ArtifactQuery`, `ArtifactRun`, `ArtifactParagraph` | `@atelic-action/ui/artifact` | Plain data text a routine can write as JSON: a paragraph, its runs alone, one link, the empty test, the query test, and the four types | [#paragraph](https://ui.atelic.me/#paragraph) |
45
- | `ArtifactShell` | `@atelic-action/ui/artifact` | The chrome around a document page: skip link, dark header, closing bar, watermark | [#site-header](https://ui.atelic.me/#site-header) (its dark bar) |
46
- | `AppErrorBoundary`, `ErrorFallback` | `@atelic-action/ui/artifact` | The error boundary and the page it falls back to | none |
41
+ | `Button`, `PrimaryButton`, `SecondaryButton`, `Chip`, `Eyebrow`, `Lead`, `SectionHeading` | `@atelic-action/ui/primitives` | The small pieces a page is set in; the two named buttons are the only call to action shapes a page uses | [Primitives/Button](https://ui.atelic.me/?path=/docs/primitives-button--docs) |
42
+ | `GradeChip`, `gradeLabel`, `WriteupGrade` | `@atelic-action/ui/artifact` | A section's grade, A to D, as a chip in its color, the letter alone, and the grade type | [Artifact/GradeChip](https://ui.atelic.me/?path=/docs/artifact-gradechip--docs) |
43
+ | `SignOff`, `WriteupPerson` | `@atelic-action/ui/artifact` | The close a document ends on, and the person it names | [Artifact/SignOff](https://ui.atelic.me/?path=/docs/artifact-signoff--docs) |
44
+ | `Shot`, `WriteupShot` | `@atelic-action/ui/artifact` | The owner's own screen, opening the full picture, over its caption; a portrait crop is marked `data-portrait` and held to 200px (1.8in in print) | [Artifact/Shot](https://ui.atelic.me/?path=/docs/artifact-shot--docs) |
45
+ | `Paragraph`, `Runs`, `ArtifactAnchor`, `isEmpty`, `isQuery`, `ArtifactLink`, `ArtifactQuery`, `ArtifactRun`, `ArtifactParagraph` | `@atelic-action/ui/artifact` | Plain data text a routine can write as JSON: a paragraph, its runs alone, one link, the empty test, the query test, and the four types | [Artifact/Paragraph](https://ui.atelic.me/?path=/docs/artifact-paragraph--docs) |
46
+ | `ArtifactShell` | `@atelic-action/ui/artifact` | The chrome around a document page: skip link, dark header, the closing bar with the sender's copyright and the credit, watermark | [Artifact/ArtifactShell](https://ui.atelic.me/?path=/docs/artifact-artifactshell--docs) |
47
+ | `AppErrorBoundary`, `ErrorFallback` | `@atelic-action/ui/artifact` | The error boundary and the page it falls back to | [Artifact/AppErrorBoundary](https://ui.atelic.me/?path=/docs/artifact-apperrorboundary--docs) |
47
48
  | `buildPageHead`, `canonicalURL`, `newTabProps`, the `ArtifactConfig` types | `@atelic-action/ui/artifact` | A page's head, a link's new tab props, and a site's contract | none |
48
49
  | `whoIsReading` | `@atelic-action/ui/artifact` and `@atelic-action/ui/artifact/readers` | Who opened a document, by the email they signed in with; the second entry is the same function, built, for what Node runs | none |
49
- | `Masthead`, `TitleCard`, `Footer`, `FailurePage` | `@atelic-action/ui/email` | An email's frame: the wordmark row, the title card, the foot, the failure page (plain, or structured by a step and a fix) | [#email](https://ui.atelic.me/#email) |
50
- | `Card`, `Row`, `FoldRow`, `Eyebrow`, `SubEyebrow`, `Fold`, `BigFold` | `@atelic-action/ui/email` | The containers and labels an email's sections sit in | [#email](https://ui.atelic.me/#email) |
51
- | `Item`, `TitleLine`, `Note`, `EmptyRow`, `Stat`, `StatsRow`, `List`, `ListRow`, `LeadRow`, `MonoTable`, `ReadBlock`, `Badge` | `@atelic-action/ui/email` | The rows inside a card | [#email](https://ui.atelic.me/#email) |
52
- | `Scoreboard`, `GroupRow`, `TargetRow`, `Bar`, `WhatMoved`, `DayStrip`, `StatStrip` | `@atelic-action/ui/email` | Targets against what was logged, what moved, and the week by day | [#email](https://ui.atelic.me/#email) |
53
- | `RecordStack`, `RecordTimelineStrip`, `RecordTimelineLegend`, `Records` | `@atelic-action/ui/email` | Records stacked for a phone, their timeline, and the fixed column table | [#email](https://ui.atelic.me/#email) |
54
- | `EmailThemeProvider`, `useEmailTheme`, `eyebrowStyle`, the plain text helpers (`recordStackText`, `wrap`, `textTable`, and the rest) | `@atelic-action/ui/email` | The palette context and the plain text twin (see [Email](#email)) | [#email](https://ui.atelic.me/#email) (the text twin) |
55
- | `renderEmail`, `renderFailureEmail` | `@atelic-action/ui/email/render` | The whole email document, and the failure page's | [#email](https://ui.atelic.me/#email) |
50
+ | `Masthead`, `TitleCard`, `Footer`, `FailurePage` | `@atelic-action/ui/email` | An email's frame: the wordmark row, the title card, the foot, the failure page (plain, or structured by a step and a fix) | [Email/Masthead](https://ui.atelic.me/?path=/docs/email-masthead--docs) |
51
+ | `Card`, `Row`, `FoldRow`, `Eyebrow`, `SubEyebrow`, `Fold`, `BigFold` | `@atelic-action/ui/email` | The containers and labels an email's sections sit in | [Email/Card](https://ui.atelic.me/?path=/docs/email-card--docs) |
52
+ | `Item`, `TitleLine`, `Note`, `EmptyRow`, `Stat`, `StatsRow`, `List`, `ListRow`, `LeadRow`, `ReadBlock`, `Badge` | `@atelic-action/ui/email` | The rows inside a card | [Email/Item](https://ui.atelic.me/?path=/docs/email-item--docs) |
53
+ | `Scoreboard`, `GroupRow`, `TargetRow`, `Bar`, `DayStrip` | `@atelic-action/ui/email` | Targets against what was logged, and the week by day | [Email/Scoreboard](https://ui.atelic.me/?path=/docs/email-scoreboard--docs) |
54
+ | `RecordStack`, `RecordTimelineStrip`, `Records` | `@atelic-action/ui/email` | Records stacked for a phone, their timeline, and the fixed column table | [Email/RecordStack](https://ui.atelic.me/?path=/docs/email-recordstack--docs) |
55
+ | `EmailThemeProvider`, `useEmailTheme`, `eyebrowStyle`, `accentInk`, `contrastRatio`, `wrapLong`, the plain text helpers (`recordStackText`, `recordTimelineSummary`, `wrap`, `textTable`, and the rest) | `@atelic-action/ui/email` | The palette context, the accent's ink and the contrast check behind it, the long token wrap, and the plain text twin (see [Email](#email)) | [Email/WeeklyReport](https://ui.atelic.me/?path=/docs/email-weeklyreport--docs) (the text twin) |
56
+ | `renderEmail`, `renderFailureEmail` | `@atelic-action/ui/email/render` | The whole email document, and the failure page's | [Email/WeeklyReport](https://ui.atelic.me/?path=/docs/email-weeklyreport--docs) |
56
57
  | `atelicPalette`, `atelicFonts`, `toThemeCSS`, `themeTokenMap`, `Palette`, `Fonts` | `@atelic-action/ui/tokens` | The palette and font stacks, with no React | none |
57
- | `useScrollSpy` | `@atelic-action/ui/hooks` | Which section is in the reading band; the header's stops use it | [#site-header](https://ui.atelic.me/#site-header) (the dark bar's stops) |
58
+ | `useScrollSpy` | `@atelic-action/ui/hooks` | Which section is in the reading band; the header's stops use it | [Chrome/SiteHeader](https://ui.atelic.me/?path=/docs/chrome-siteheader--docs) (the dark bar's stops) |
58
59
  | `staticNotFoundRouting` | `@atelic-action/ui/routing` | The router options that keep a prerendered not found page alive | none |
59
60
  | `signToken`, `verifyToken`, `safeNext`, `needsSession` | `@atelic-action/ui/gate` | The access gate's tokens, the safe post sign in path, and the wall's test | none |
60
61
  | `POST`, `createRequestLink` | `@atelic-action/ui/gate/request-link` | The function that emails a sign in link | none |
@@ -63,52 +64,50 @@ Every export, grouped by the entry it is imported from. The gallery column links
63
64
  | `artifactConfig`, `artifactPages` | `@atelic-action/ui/vite` | An artifact site's whole Vite configuration, and its page list | none |
64
65
  | `privateChunks`, `isPrivateContent`, `DOC_DIR` | `@atelic-action/ui/vite` and `@atelic-action/ui/vite/private-chunks` | The plugin that keeps private content behind the wall; the second entry loads neither optional peer | none |
65
66
  | `base.css`, `chrome.css`, `components.css`, `primitives.css`, `gate.css`, `artifact.css`, `star-rating.css` | `@atelic-action/ui/styles/*` | The stylesheets, in the order under [CSS Import Order](#css-import-order) | every section |
66
- | `BlogIndex` | `@atelic-action/ui/sections` | The post listing as a readable stack | [#blog-index](https://ui.atelic.me/#blog-index) |
67
- | `BlogPost` | `@atelic-action/ui/sections` | One article: back link, title, byline and dateline, body | [#blog-post](https://ui.atelic.me/#blog-post) |
68
- | `CTABanner` | `@atelic-action/ui/sections` | A mid page banner behind a directional wash, with the token gradient before any photography | [#c-t-a-banner](https://ui.atelic.me/#c-t-a-banner) |
69
- | `CTASection` | `@atelic-action/ui/sections` | The standard closer: the site's own primary action and an optional ghost second | [#c-t-a-section](https://ui.atelic.me/#c-t-a-section) |
70
- | `ComparisonTable` | `@atelic-action/ui/sections` | A graded before and after that scrolls sideways on a phone rather than reflowing; a row's label can link to what explains it (`stageHref`, 3.14.0) | [#comparison-table](https://ui.atelic.me/#comparison-table) |
71
- | `ContactForm` | `@atelic-action/ui/sections` | Validated form with a honeypot that posts to `endpoint` (or hands off to mail); `onLead` replaces the default GA4 `generate_lead` event | [#contact-form](https://ui.atelic.me/#contact-form) |
72
- | `ContactInfoCard` | `@atelic-action/ui/sections` | A dark card of direct contact rows: call, email, visit, portal | [#contact-info-card](https://ui.atelic.me/#contact-info-card) |
73
- | `CredentialList` | `@atelic-action/ui/sections` | Credential cards with a mono code before each | [#credential-list](https://ui.atelic.me/#credential-list) |
74
- | `DeviceShowcase` | `@atelic-action/ui/sections` | A desktop browser frame with a phone overlapping it | [#device-showcase](https://ui.atelic.me/#device-showcase) |
75
- | `ExpandList` | `@atelic-action/ui/sections` | A light accordion of numbered rows whose bodies stay in the HTML while closed | [#expand-list](https://ui.atelic.me/#expand-list) |
76
- | `FAQBrowser` | `@atelic-action/ui/sections` | The help page: live search, a sticky `JumpRail` of categories with scroll spy, expand all, deep links; `contactHref` sets where the no match line points | [#f-a-q-browser](https://ui.atelic.me/#f-a-q-browser) |
77
- | `FeatureDetail` | `@atelic-action/ui/sections` | Alternating copy and media rows with tags and a tick list | [#feature-detail](https://ui.atelic.me/#feature-detail) |
78
- | `FeatureGrid` | `@atelic-action/ui/sections` | Numbered cards with a hover lift; a card is a link or holds one, never both | [#feature-grid](https://ui.atelic.me/#feature-grid) |
79
- | `Gallery` | `@atelic-action/ui/sections` | A captioned wall of the business's own work, a shot brief where a photo is missing | [#gallery](https://ui.atelic.me/#gallery) |
80
- | `Hero` | `@atelic-action/ui/sections` | The home page opener: a full bleed image (or the token gradient), a headline with a serif accent, a pair of actions, trust figures, and a scroll cue | [#hero](https://ui.atelic.me/#hero) |
81
- | `HoursTable` | `@atelic-action/ui/sections` | Day rows with dashed rules and mono times | [#hours-table](https://ui.atelic.me/#hours-table) |
82
- | `JumpRail` | `@atelic-action/ui/sections` | Sticky in page pill tabs with scroll spy, used by `FAQBrowser` and on its own | [#jump-rail](https://ui.atelic.me/#jump-rail) |
83
- | `LegalPage` | `@atelic-action/ui/sections` | A legal document from data, its last revised date first | [#legal-page](https://ui.atelic.me/#legal-page) |
84
- | `LocationSection` | `@atelic-action/ui/sections` | The local search section: service areas as prose, hours, directions, and the map | [#location-section](https://ui.atelic.me/#location-section) |
85
- | `Locations` | `@atelic-action/ui/sections` | More than one address: the flagship's map beside a card for each location | [#locations](https://ui.atelic.me/#locations) |
86
- | `LogoMarquee` | `@atelic-action/ui/sections` | A dark band of chips scrolling without end: credentials, clients, or press | [#logo-marquee](https://ui.atelic.me/#logo-marquee) |
87
- | `MapEmbed` | `@atelic-action/ui/sections` | The map: a screenshot linking to directions, or a click to load facade over the live embed | [#map-embed](https://ui.atelic.me/#map-embed) |
88
- | `MediaBand` | `@atelic-action/ui/sections` | A plain full bleed image band, cropped from the center | [#media-band](https://ui.atelic.me/#media-band) |
89
- | `MenuList` | `@atelic-action/ui/sections` | A priced menu group of dotted rows, with fine print under it | [#menu-list](https://ui.atelic.me/#menu-list) |
90
- | `PageHero` | `@atelic-action/ui/sections` | The interior page opener on the alternate band; children sit under the lead | [#page-hero](https://ui.atelic.me/#page-hero) |
91
- | `PressQuotes` | `@atelic-action/ui/sections` | Rows of press quotes and awards with source and year, newest first (`sortPress` beside it) | [#press-quotes](https://ui.atelic.me/#press-quotes) |
92
- | `PricingBand` | `@atelic-action/ui/sections` | A brand colored band with the price in a card beside it, informational by design | [#pricing-band](https://ui.atelic.me/#pricing-band) |
93
- | `PricingCard` | `@atelic-action/ui/sections` | A standalone price card with a tick list and its booking action | [#pricing-card](https://ui.atelic.me/#pricing-card) |
94
- | `ProcessSteps` | `@atelic-action/ui/sections` | A dark band of numbered steps beside a frame | [#process-steps](https://ui.atelic.me/#process-steps) |
95
- | `ProfileCards` | `@atelic-action/ui/sections` | Equal weight cards of media beside a short bio | [#profile-cards](https://ui.atelic.me/#profile-cards) |
96
- | `RevealSlider` | `@atelic-action/ui/sections` | Drag or arrow keys to compare two frames, each with its own toned shot brief before photography | [#reveal-slider](https://ui.atelic.me/#reveal-slider) |
97
- | `ReviewCarousel` | `@atelic-action/ui/sections` | The aggregate beside one large review at a time, stepped by dots and arrows, each review linking to its source | [#review-carousel](https://ui.atelic.me/#review-carousel) |
98
- | `ReviewWall` | `@atelic-action/ui/sections` | The reviews page: tag filter and sort when the data carries them, clamped quotes behind Read more | [#review-wall](https://ui.atelic.me/#review-wall) |
99
- | `SocialStrip` | `@atelic-action/ui/sections` | A static grid of the business's social photos linking to the profile, never a live embed | [#social-strip](https://ui.atelic.me/#social-strip) |
100
- | `SplitSection` | `@atelic-action/ui/sections` | The two column band: copy beside copy, or media beside copy | [#split-section](https://ui.atelic.me/#split-section) |
101
- | `SiteConfig` and its member types, `formatClock`, `formatHoursRange`, `isClosed`, `isHoneypotFilled`, `trackEvent` | `@atelic-action/ui/sections` | The site contract the sections read, and the hours, honeypot, and lead event helpers | none |
102
- | `Bubble`, `ImageFrame`, `ProseBlocks`, `QuoteCard`, `StarRow`, `TickList` | `@atelic-action/ui/primitives` | The marketing primitives: a round tile holding an icon or a step number, a framed image, prose blocks (headings at two levels, paragraphs, lists, and figures: small captioned tiles in rows, an image or a silent looping clip played only while on screen, each opening large in a dialog), a quote card, a row of filled stars, a tick list | [#marketing-primitives](https://ui.atelic.me/#marketing-primitives) |
103
- | `SiteShell` | `@atelic-action/ui/chrome` | A marketing page's whole chrome: skip link, header, main, footer, sticky bar, mounting the base path provider | none |
67
+ | `BlogIndex` | `@atelic-action/ui/sections` | The post listing as a readable stack | [Sections/BlogIndex](https://ui.atelic.me/?path=/docs/sections-blogindex--docs) |
68
+ | `BlogPost` | `@atelic-action/ui/sections` | One article: back link, title, byline and dateline, body | [Sections/BlogPost](https://ui.atelic.me/?path=/docs/sections-blogpost--docs) |
69
+ | `CalloutPanel` | `@atelic-action/ui/sections` | Short callouts on the primary field, a heavy title over a subtitle each, four across and two by two below, titles and subtitles each on a shared line (8.0.0) | [Sections/CalloutPanel](https://ui.atelic.me/?path=/docs/sections-calloutpanel--docs) |
70
+ | `CTASection` | `@atelic-action/ui/sections` | The standard closer: the site's own primary action and an optional ghost second | [Sections/CTASection](https://ui.atelic.me/?path=/docs/sections-ctasection--docs) |
71
+ | `ComparisonTable` | `@atelic-action/ui/sections` | A graded before and after that scrolls sideways on a phone rather than reflowing; a row's label can link to what explains it (`stageHref`, 3.14.0) | [Sections/ComparisonTable](https://ui.atelic.me/?path=/docs/sections-comparisontable--docs) |
72
+ | `ContactForm` | `@atelic-action/ui/sections` | Validated form with a honeypot that posts to `endpoint` (or hands off to mail); `onLead` replaces the default GA4 `generate_lead` event | [Sections/ContactForm](https://ui.atelic.me/?path=/docs/sections-contactform--docs) |
73
+ | `ContactInfoCard` | `@atelic-action/ui/sections` | A dark card of direct contact rows: call, email, visit, portal | [Sections/ContactInfoCard](https://ui.atelic.me/?path=/docs/sections-contactinfocard--docs) |
74
+ | `CredentialList` | `@atelic-action/ui/sections` | Credential cards with a mono code before each | [Sections/CredentialList](https://ui.atelic.me/?path=/docs/sections-credentiallist--docs) |
75
+ | `ExpandList` | `@atelic-action/ui/sections` | A light accordion of numbered rows whose bodies stay in the HTML while closed | [Sections/ExpandList](https://ui.atelic.me/?path=/docs/sections-expandlist--docs) |
76
+ | `FAQBrowser` | `@atelic-action/ui/sections` | The help page: live search, a sticky `JumpRail` of categories with scroll spy, expand all, deep links; `contactHref` sets where the no match line points | [Sections/FAQBrowser](https://ui.atelic.me/?path=/docs/sections-faqbrowser--docs) |
77
+ | `FeatureDetail` | `@atelic-action/ui/sections` | Alternating copy and media rows with tags and a tick list | [Sections/FeatureDetail](https://ui.atelic.me/?path=/docs/sections-featuredetail--docs) |
78
+ | `FeatureGrid` | `@atelic-action/ui/sections` | Numbered cards with a hover lift under a heading and an optional `lead`; a card is a link or holds one, never both | [Sections/FeatureGrid](https://ui.atelic.me/?path=/docs/sections-featuregrid--docs) |
79
+ | `FullBleedVideo` | `@atelic-action/ui/sections` | A silent looping clip edge to edge: the poster at once, the clip once it is on screen and only while on screen, the poster alone under reduced motion (8.0.0) | [Sections/FullBleedVideo](https://ui.atelic.me/?path=/docs/sections-fullbleedvideo--docs) |
80
+ | `Gallery` | `@atelic-action/ui/sections` | A captioned wall of the business's own work, a shot brief where a photo is missing | [Sections/Gallery](https://ui.atelic.me/?path=/docs/sections-gallery--docs) |
81
+ | `Hero` | `@atelic-action/ui/sections` | The home page opener: a full bleed image (or the token gradient), a headline with a serif accent, a pair of actions, trust figures, and a scroll cue; `layout="split"` sets the copy on the primary field beside the photo (8.0.0) | [Sections/Hero](https://ui.atelic.me/?path=/docs/sections-hero--docs) |
82
+ | `HoursTable` | `@atelic-action/ui/sections` | Day rows with dashed rules and mono times | [Sections/HoursTable](https://ui.atelic.me/?path=/docs/sections-hourstable--docs) |
83
+ | `JumpRail` | `@atelic-action/ui/sections` | Sticky in page pill tabs with scroll spy, used by `FAQBrowser` and on its own | [Sections/JumpRail](https://ui.atelic.me/?path=/docs/sections-jumprail--docs) |
84
+ | `LegalPage` | `@atelic-action/ui/sections` | A legal document from data, its last revised date first | [Sections/LegalPage](https://ui.atelic.me/?path=/docs/sections-legalpage--docs) |
85
+ | `LinkColumns` | `@atelic-action/ui/sections` | Columns of links under a section heading, each a heading over its links, a link's figure (`count`) set right aligned in tabular numerals (8.0.0) | [Sections/LinkColumns](https://ui.atelic.me/?path=/docs/sections-linkcolumns--docs) |
86
+ | `LocationSection` | `@atelic-action/ui/sections` | The local search section: service areas as prose, hours, directions, and the map | [Sections/LocationSection](https://ui.atelic.me/?path=/docs/sections-locationsection--docs) |
87
+ | `Locations` | `@atelic-action/ui/sections` | More than one address: the flagship's map beside a card for each location | [Sections/Locations](https://ui.atelic.me/?path=/docs/sections-locations--docs) |
88
+ | `LogoMarquee` | `@atelic-action/ui/sections` | A dark band of chips scrolling without end: credentials, clients, or press | [Sections/LogoMarquee](https://ui.atelic.me/?path=/docs/sections-logomarquee--docs) |
89
+ | `MapEmbed` | `@atelic-action/ui/sections` | The map: a screenshot linking to directions, or a click to load facade over the live embed | [Sections/MapEmbed](https://ui.atelic.me/?path=/docs/sections-mapembed--docs) |
90
+ | `PageHero` | `@atelic-action/ui/sections` | The interior page opener on the alternate band; children sit under the lead | [Sections/PageHero](https://ui.atelic.me/?path=/docs/sections-pagehero--docs) |
91
+ | `ProofStrip` | `@atelic-action/ui/sections` | One row of short proof facts under a hero, a figure over its label each, wrapping to a grid on a phone (8.0.0) | [Sections/ProofStrip](https://ui.atelic.me/?path=/docs/sections-proofstrip--docs) |
92
+ | `PricingBand` | `@atelic-action/ui/sections` | A brand colored band with the price in a card beside it, informational by design | [Sections/PricingBand](https://ui.atelic.me/?path=/docs/sections-pricingband--docs) |
93
+ | `PricingCard` | `@atelic-action/ui/sections` | A standalone price card with a tick list and its booking action | [Sections/PricingCard](https://ui.atelic.me/?path=/docs/sections-pricingcard--docs) |
94
+ | `ProcessSteps` | `@atelic-action/ui/sections` | A dark band of numbered steps beside a frame, landing on its `id` | [Sections/ProcessSteps](https://ui.atelic.me/?path=/docs/sections-processsteps--docs) |
95
+ | `ProfileCards` | `@atelic-action/ui/sections` | Equal weight cards of media beside a short bio | [Sections/ProfileCards](https://ui.atelic.me/?path=/docs/sections-profilecards--docs) |
96
+ | `RevealSlider` | `@atelic-action/ui/sections` | Drag or arrow keys to compare two frames, each with its own toned shot brief before photography | [Sections/RevealSlider](https://ui.atelic.me/?path=/docs/sections-revealslider--docs) |
97
+ | `ReviewCarousel` | `@atelic-action/ui/sections` | The aggregate beside one large review at a time, stepped by dots and arrows, each review linking to its source | [Sections/ReviewCarousel](https://ui.atelic.me/?path=/docs/sections-reviewcarousel--docs) |
98
+ | `ReviewWall` | `@atelic-action/ui/sections` | The reviews page: tag filter and sort when the data carries them, clamped quotes behind Read more | [Sections/ReviewWall](https://ui.atelic.me/?path=/docs/sections-reviewwall--docs) |
99
+ | `SplitSection` | `@atelic-action/ui/sections` | The two column band: copy beside copy, or media beside copy | [Sections/SplitSection](https://ui.atelic.me/?path=/docs/sections-splitsection--docs) |
100
+ | `SiteConfig` and its member types (`Density` among them), `Surface` (the band every section's `surface` takes, 8.0.0), `formatClock`, `formatHoursRange`, `isClosed`, `isHoneypotFilled`, `trackEvent` | `@atelic-action/ui/sections` | The site contract the sections read, and the hours, honeypot, and lead event helpers | none |
101
+ | `Bubble`, `ImageFrame`, `ProseBlocks`, `QuoteCard`, `StarRow`, `TickList` | `@atelic-action/ui/primitives` | The marketing primitives: a round tile holding an icon or a step number, a framed image, prose blocks (headings at two levels, paragraphs, lists, and figures: small captioned tiles in rows, an image or a silent looping clip played only while on screen, each opening large in a dialog), a quote card, a row of filled stars, a tick list | [Primitives/Bubble](https://ui.atelic.me/?path=/docs/primitives-bubble--docs) |
102
+ | `SiteShell` | `@atelic-action/ui/chrome` | A marketing page's whole chrome: skip link, header, main, footer, sticky bar, the contact dock when configured, mounting the base path provider and setting the section density | [Chrome/SiteShell](https://ui.atelic.me/?path=/docs/chrome-siteshell--docs) |
104
103
  | `BasePathProvider`, `useBasePath`, `useWithBase`, `joinBase`, `stripBase`, `hasBase`, `normalizeBasePath` | `@atelic-action/ui/routing` | The base path a site is served under, read by Button, Chip, and every section that builds a link | none |
105
104
  | `joinBase`, `stripBase`, `hasBase`, `normalizeBasePath` | `@atelic-action/ui/routing/base-path` | The same four pure helpers, built, for what Node runs (a Playwright spec, a script) | none |
106
105
  | `marketingConfig` | `@atelic-action/ui/vite` | A marketing site's whole Vite configuration as one call | none |
107
106
  | `sections.css` | `@atelic-action/ui/styles/sections.css` | Styles for everything under `sections`, imported after `primitives.css` | none |
108
- | `AppProvider`, `AppConfigProvider`, `useAppConfig`, `useNav`, `useUser`, `configureApp`, `getAppConfig`, `AppConfig`, `NavItem`, `AppUser`, `Register` | `@atelic-action/ui/app` | The app shell's seam: the app hands in its config and nav, registers its user type, and reads them back | [app](https://ui.atelic.me/app.html) |
109
- | `AppLayout`, `AppPage`, `AppPageToolbar`, `Breadcrumbs`, `SectionCards`, `DesktopRail`, `MobileTabBar`, `MobileMenu`, `UserMenu`, `PageSkeleton`, `PageError`, `ActionButton`, `FormActionButtons`, `activeSection` | `@atelic-action/ui/app` | The app frame: the rails, the tab bar, the page scaffold with its toolbar and right rail | [app](https://ui.atelic.me/app.html) |
110
- | `AuthGuard`, `CardErrorBoundary`, `ErrorFallback`, `GoogleGlyph`, `useAuthStore`, `useUnitsStore`, `apiFetch`, `publicFetch`, `session`, the hooks and the wire types | `@atelic-action/ui/app` | Auth, transport, the two shell stores, and the helpers the shell runs on | [app](https://ui.atelic.me/app.html) |
111
- | The shadcn kit (`Button`, `Dialog`, `Select`, `OptionSelect`, `SearchInput`, `BadgeList`, `Callout`, and the rest) | `@atelic-action/ui/app/ui` | The kit the shell is set in; a new kit component lands here, never in an app | [app](https://ui.atelic.me/app.html) |
107
+ | `AppProvider`, `AppConfigProvider`, `useAppConfig`, `useNav`, `useUser`, `configureApp`, `getAppConfig`, `AppConfig`, `NavItem`, `AppUser`, `Register` | `@atelic-action/ui/app` | The app shell's seam: the app hands in its config and nav, registers its user type, and reads them back | [App/AppProvider](https://ui.atelic.me/?path=/docs/app-appprovider--docs) |
108
+ | `AppLayout`, `AppPage`, `AppPageToolbar`, `Breadcrumbs`, `SectionCards`, `DesktopRail`, `MobileTabBar`, `MobileMenu`, `UserMenu`, `PageSkeleton`, `PageError`, `ActionButton`, `FormActionButtons`, `activeSection` | `@atelic-action/ui/app` | The app frame: the rails, the tab bar, the page scaffold with its toolbar and right rail | [App/AppLayout](https://ui.atelic.me/?path=/docs/app-applayout--docs) |
109
+ | `AuthGuard`, `ErrorFallback`, `GoogleGlyph`, `useAuthStore`, `useUnitsStore`, `apiFetch`, `publicFetch`, `session`, the hooks and the wire types | `@atelic-action/ui/app` | Auth, transport, the two shell stores, and the helpers the shell runs on | [App/AuthGuard](https://ui.atelic.me/?path=/docs/app-authguard--docs) |
110
+ | The shadcn kit (`Button`, `Dialog`, `Select`, `OptionSelect`, `SearchInput`, `BadgeList`, `Callout`, and the rest) | `@atelic-action/ui/app/ui` | The kit the shell is set in; a new kit component lands here, never in an app | [App/UI/Button](https://ui.atelic.me/?path=/docs/app-ui-button--docs) |
112
111
  | `app.css` | `@atelic-action/ui/styles/app.css` | The shell's Tailwind sheet: the token mapping, the default tokens, the base layer, the `ap-*` scaffold, and the `@source` that points Tailwind at the shell | none |
113
112
  | The eleven `atelic-*` commands | the `bin` map | The build guard, health stamp, link and wall checks, reader link, static server, print, sealing, and the marketing site's sitemap clean, base path check, and contact canary | none |
114
113
 
@@ -153,7 +152,7 @@ Import the stylesheets in this order, from the root route or the site's base she
153
152
 
154
153
  Every rule in the package sheets is scoped under `.atelic-ui`, the one root class a consumer wears: a site puts it on its outermost wrapper, an app on the region that holds a package component. Which sheets it imports decides what it gets, so a site importing `base.css` gets the resets and typography under that class and an app importing `components.css` alone gets none of them.
155
154
 
156
- The package sheets sit inside `@layer atelic-ui`, so any rule a site writes outside a layer wins over them whatever its specificity. The package reads the theme tokens (`--ink`, `--surface`, `--primary`, `--nav-height`, and the rest) and defines none, so `theme.css` stays the one file a site edits to rebrand. The chrome's buttons wear the `.btn` classes, which `primitives.css` defines and a site may restyle.
155
+ The package sheets sit inside `@layer atelic-ui`, so any rule a site writes outside a layer wins over them whatever its specificity. The package reads the theme tokens (`--ink`, `--surface`, `--primary`, `--nav-height`, and the rest) and defines none of them, so `theme.css` stays the one file a site edits to rebrand; the only values it declares are the defaults of its own optional tokens, on a selector that weighs nothing (see [Tokens](#tokens)). The chrome's buttons wear the `.btn` classes, which `primitives.css` defines and a site may restyle.
157
156
 
158
157
  ## Rendering From Props
159
158
 
@@ -186,7 +185,41 @@ an image; the chrome draws no second wordmark. A marketing site's lockup
186
185
  passes no recipient. The run after the wordmark reads `--brand-accent` when
187
186
  the theme sets it (a client branded host pins the sender's orange there) and
188
187
  falls back to `--primary` (0.6.1), and the recipient's mark sits at the same
189
- 30 pixel height as the sender's.
188
+ height as the sender's, `--brand-mark-height`.
189
+
190
+ The mark is the brand's own artwork. A site whose logo is cut once per
191
+ surface passes `logo.onLight` (drawn on the light bar) and `logo.onDark`
192
+ (drawn on the dark bar, over a hero, and in the footer), and the chrome
193
+ never recolors a cut on its own surface. A site that passes `logo.src`
194
+ alone keeps what it had: a light mark that the header tints to ink on the
195
+ light bar. Every header mark stands at `--brand-mark-height` (30px unless
196
+ the theme sets it) and runs as wide as its own ratio, so a wide wordmark
197
+ reads at a height the theme picks, and `logo.wordmark: false` drops the
198
+ live name beside artwork that already spells it; with no mark at all the
199
+ name stays, so the home link is never empty.
200
+
201
+ The header and the footer resolve the mark by one order (8.0.0): a
202
+ surface draws its own cut as given; failing that, `src`, as given on a dark
203
+ surface and tinted to ink on the light bar; failing that, the other
204
+ surface's cut flattened to a silhouette of the surface's words color (ink
205
+ on the light bar, white on a dark one), since drawn as given it would
206
+ vanish. "Dark" is the dark bar, the transparent bar over a hero, and the
207
+ footer band.
208
+
209
+ | `onLight` | `onDark` | `src` | The light bar draws | The dark bars and the footer draw |
210
+ |---|---|---|---|---|
211
+ | set | set | either | `onLight` | `onDark` |
212
+ | set | | set | `onLight` | `src` |
213
+ | set | | | `onLight` | `onLight` as a white silhouette |
214
+ | | set | set | `src` tinted to ink | `onDark` |
215
+ | | set | | `onDark` tinted to ink | `onDark` |
216
+ | | | set | `src` tinted to ink | `src` |
217
+ | | | | the name alone | the name alone |
218
+
219
+ A glyph tile (`logo.tile`) wins over all three; its letter is drawn by the
220
+ stylesheet, so it is never text in the home link, and the link's name is
221
+ always the words it shows (the brand's name, or the wordmark when it names
222
+ something else), then "home".
190
223
 
191
224
  The menu is a native `<dialog>` opened with `showModal()`, so Escape, focus containment, and focus return come from the browser.
192
225
 
@@ -344,7 +377,7 @@ The two pieces a reader sees are ordinary components, in `@atelic-action/ui/comp
344
377
  `@atelic-action/ui/artifact` is the pieces an artifact document is built from and the site around it, so a fix to a piece reaches every business's documents with one version bump. The composed documents themselves (`Writeup`, `Read`, `Report`, `Note`, and the sealed `Gate`, with their content types and their stylesheet) live in [`@atelic-action/artifact`](https://github.com/atelic-action/artifact) since 2.0.0, which depends on this package for everything below:
345
378
 
346
379
  - **The pieces:** `GradeChip` and `gradeLabel` with the `WriteupGrade` type, `SignOff` with the `WriteupPerson` type, `Shot` with the `WriteupShot` type (a crop taller than it is wide is measured in the browser, marked `data-portrait`, and held to 200px wide on screen and 1.8in in print; a layout that sizes its shots itself sets `--op-shot-portrait-max: none` to opt out, on screen and in print alike), and the plain data text (`Paragraph`, `Runs`, `ArtifactAnchor`, `isEmpty`, and `isQuery`, with the `ArtifactLink`, `ArtifactQuery`, `ArtifactRun`, and `ArtifactParagraph` types: a paragraph is a string or runs of text, `{ text, href }` links, and `{ query, href? }` search queries, so a routine can write a document as JSON). A query renders as `<em class="query">` around the words in curly quotes, which the component adds, so content passes the bare words; with an `href`, the link sits inside the `em` around the quoted words.
347
- - **The shell:** `ArtifactShell`, the `.atelic-ui` scope with the skip link, the dark header, the closing bar, and the watermark around a page.
380
+ - **The shell:** `ArtifactShell`, the `.atelic-ui` scope with the skip link, the dark header, the closing bar, and the watermark around a page. The closing bar is the one line after a document's sign off, and it closes the way a site does: `Copyright` with the sender's name on the left and `Credit` on the right (7.2.0; before it the credit stood alone, centered). Print drops it with the header and the skip link.
348
381
  - **The contract and the head:** the `ArtifactConfig` types, and `buildPageHead` and `canonicalURL` with their `PageMeta` type.
349
382
  - **Who opened it:** `whoIsReading`, the email a reader signed in with at the wall, by the form or by the sign in a send carried, and nobody on the sender's own domain. It is also built and exported alone as `@atelic-action/ui/artifact/readers`, because a Playwright spec runs under Node, which compiles nothing inside `node_modules`.
350
383
  - **The error boundary:** `AppErrorBoundary` and its `ErrorFallback`.
@@ -464,7 +497,7 @@ The provider stays in the source entry on purpose. A built copy of it would be a
464
497
 
465
498
  ### SiteShell
466
499
 
467
- `SiteShell` (in `@atelic-action/ui/chrome`) is the page wrapper: the `.atelic-ui` scope around the skip link, the header, `<main>`, the sticky CTA bar, the footer with its closing bar, and the watermark, all mapped from the `SiteConfig`. It takes `site`, `currentPath` (the package imports no router), `basePath`, and `nav` (defaults to `site.nav`), plus `heroNav`, `stickyCTA`, `footer`, `pageNav`, `navOnDark`, `hideNavCTA`, and `credit` (the practice's credit on the closing bar's right side; the copyright prints either way). 5.0.0 renames `CreditBar` to `ClosingBar` with no alias, replaces `.credit-bar` and `.footer-bottom` with `.closing-bar`, and `footer.note` prints at the far right of the closing bar. Since 6.0.0 the closing bar is two sides, `left` and `right`, that each take anything: left out, they are `Copyright` with the business's name and `Credit`, the practice's made with line; `null` empties a side. `credit` off empties the right side and keeps the copyright, and a `footer.note` stands in place of the credit whether `credit` is on or off. A site keeps a wrapper a few lines long:
500
+ `SiteShell` (in `@atelic-action/ui/chrome`) is the page wrapper: the `.atelic-ui` scope around the skip link, the header, `<main>`, the sticky CTA bar, the footer with its closing bar, and the watermark, all mapped from the `SiteConfig`. It takes `site`, `currentPath` (the package imports no router), `basePath`, and `nav` (defaults to `site.nav`), plus `heroNav`, `stickyCTA`, `footer`, `pageNav`, `navOnDark`, `hideNavCTA`, `density` (defaults to `site.density`; see [Density](#density)), `contactDock` (on by default; mounts the dock when `site.contactDock` is set), and `credit` (the practice's credit on the closing bar's right side; the copyright prints either way). 5.0.0 renames `CreditBar` to `ClosingBar` with no alias, replaces `.credit-bar` and `.footer-bottom` with `.closing-bar`, and `footer.note` prints at the far right of the closing bar. Since 6.0.0 the closing bar is two sides, `left` and `right`, that each take anything: left out, they are `Copyright` with the business's name and `Credit`, the practice's made with line; `null` empties a side. `credit` off empties the right side and keeps the copyright, and a `footer.note` stands in place of the credit whether `credit` is on or off. A site keeps a wrapper a few lines long:
468
501
 
469
502
  ```tsx
470
503
  import { SiteShell as Shell, type SiteShellProps } from "@atelic-action/ui/chrome";
@@ -484,6 +517,8 @@ Every site's footer has one shape, and `Footer` draws it (7.0.0):
484
517
  - **Four link columns:** Company, Resources, Social, and Legal, in that order. A Social link carries its icon in front of its words. A column with no links is left out, and the grid sizes itself to the columns shown.
485
518
  - **The closing bar:** `ClosingBar` under it all, `Copyright` with the business's name on the left and `Credit` on the right.
486
519
 
520
+ The rating's five stars read `--star-fill`, the same token `StarRating`'s filled star reads, and fall back to `--review-gold` (`#f5b301`) when a theme sets none, so one line in `theme.css` recolors every star on a site (8.0.0). The logo is the mark the dark surface resolves to, by the header's own order (see the table under [Rendering From Props](#rendering-from-props)). The column headings are level 2 by default (`headingLevel` takes 2 to 6): the footer is a landmark beside the page's main content, so its sections sit one level under the page's `h1` whatever the page's own outline ends on, which satisfies axe's `heading-order` on every page and keeps the columns in a screen reader's heading list. Each is a `div` with `role="heading"` and `aria-level`, wearing `.footer-heading`, rather than an `h2`: a site's own bare `h2` rule is unlayered, so it beats every rule in the package's layer whatever its weight, and it is written for a page's section titles, not these small labels. A heading by role keeps the outline and matches no element rule, with no `!important` and no specificity raised.
521
+
487
522
  The header carries the services and the service areas, so the footer does not repeat them. It holds no blurb, no hours, no call to action, and no credential badges; a site that needs one of those puts it on a page.
488
523
 
489
524
  `SiteShell` fills the footer from the `SiteConfig`, so a site names nothing twice:
@@ -503,34 +538,148 @@ A site whose footer genuinely needs other columns names them outright in `footer
503
538
 
504
539
  Moving to 7.0.0: `footerBlurb` and `footer.contactHeading` are gone from the config, and `Footer` no longer takes `blurb`, `socialLinks`, `links`, `extraLinks`, `contactHeading`, `hours`, or `legalLinks`. Delete `footerBlurb` from the site config; the rest carries over through the mapping above. The hours stay in the config for the structured data and the page sections that print them.
505
540
 
541
+ ### The Mega Menu
542
+
543
+ A nav entry in the config is a page or a group. A group is an entry with `columns`, its panel's sections from left to right; its `to` is the group's own page. On a desktop the label is a control that opens a panel under the bar, as wide as the page's wrap whatever it holds, and every panel opens to the same height (440px), the feature card's, so moving along the bar never makes it jump. A mouse hover or a keyboard focus opens a group, a click pins it open, and Escape, a click outside, or focus leaving it closes it; left and right walk the bar, the down arrow steps into the panel, and up and down walk every link in it, whatever section holds it. A closed panel stays in the HTML, `inert`.
544
+
545
+ A section is one of four kinds, named by `kind`; a section without one is a link column, and a section naming a kind this version does not know is left out of the panel, the menu, and the base path mapping alike, never drawn as another kind (a group left with no section is a plain link):
546
+
547
+ | Kind | What it draws | Its data |
548
+ |---|---|---|
549
+ | link column (`kind` left out, or `"links"`) | A mono heading over its links. The heading is itself a link when it has an `href`. A link may carry a `description` under it, a `badge` ("Popular") in a pill after its label, and `children`, drawn indented under it with an elbow, each with its own `badge` | `{ heading, href?, links: [{ label, href, description?, badge?, external?, children? }] }` |
550
+ | `"picture"` | One photo filling the section, its caption over a wash at the foot, the whole of it a link named by the caption | `{ kind: "picture", image: { src, alt? }, caption, href }` |
551
+ | `"rows"` | Icon rows two across under an optional heading: a lucide icon by name, a label, and a short line, one row (`highlight`) set on the primary | `{ kind: "rows", heading?, rows: [{ label, description?, icon, href, highlight? }] }` |
552
+ | `"cards"` | Small cards under an optional heading, set off by a rule: a kicker, a title, and a meta line beside a square picture, or a quiet tile without one | `{ kind: "cards", heading?, cards: [{ kicker?, title, meta?, image?, href }] }` |
553
+
554
+ A row's `icon` is one of `calculator`, `calendar`, `card`, `chat`, `document`, `help`, `home`, `mail`, `map`, `phone`, `pin`, `play`, `shield`, `star`, `tool`, `truck`, and `users` (the `NavIcon` type), each a lucide icon. `feature` is the card at the panel's right, 340px wide on `--primary-deep`: a picture taking the height the words leave, an eyebrow, a headline, a line (`text`), ticked `points` (`TickList`), and its action as a `Button` with the arrow, which turns light on the card (`.on-primary`). `allLabel` is off unless given; given, it links the group's own page first in the panel at a column link's weight.
555
+
556
+ Every link in a panel that leads to the page being read carries `aria-current="page"`, the picture, the cards, a column heading, and the group's own link included, and a flat bar link on the current page is marked as a group holding it is. The sections share one row and wrap to a second when their least widths outrun it (a picture, icon rows, and cards beside the feature card at a narrow desktop), so none is squeezed past reading or pushed out of the card.
557
+
558
+ On a phone and a tablet the menu opens each group as an accordion, one at a time, and every group starts closed whenever the menu opens, the one holding the current page included. It draws the same data: each section's heading, a link's children indented under it with the same elbow, the badges kept, icon rows and cards as plain links of their labels and titles, and a picture as a plain link of its caption. A plain entry wears a number, and the numbers count plain entries alone, so a group between them leaves no gap.
559
+
560
+ ```ts
561
+ // src/site.config.ts
562
+ nav: [
563
+ {
564
+ label: "Menu",
565
+ to: "/menu",
566
+ columns: [
567
+ {
568
+ heading: "Bread",
569
+ href: "/menu/bread",
570
+ links: [
571
+ {
572
+ label: "Country sourdough",
573
+ href: "/menu/sourdough",
574
+ children: [{ label: "Seeded", href: "/menu/seeded" }],
575
+ },
576
+ { label: "Morning buns", href: "/menu/buns", badge: "Popular" },
577
+ ],
578
+ },
579
+ ],
580
+ feature: {
581
+ eyebrow: "Order ahead",
582
+ title: "Skip the Saturday line.",
583
+ points: ["Order by Friday noon", "Pick a pickup time", "Pay at the counter"],
584
+ cta: { label: "Order ahead", href: "/order" },
585
+ image: { src: "/images/menu-feature.jpg", alt: "The ovens at dawn" },
586
+ },
587
+ },
588
+ {
589
+ label: "Visit",
590
+ to: "/visit",
591
+ columns: [
592
+ { kind: "picture", image: { src: "/images/menu-shop.jpg" }, caption: "Bread from the back of the shop.", href: "/visit" },
593
+ {
594
+ kind: "rows",
595
+ heading: "Plan a visit",
596
+ rows: [
597
+ { label: "Order ahead", description: "Pick a loaf and a time", icon: "calendar", href: "/order", highlight: true },
598
+ { label: "Questions", description: "Plain answers", icon: "help", href: "/faq" },
599
+ ],
600
+ },
601
+ { kind: "cards", heading: "Latest", cards: [{ kicker: "From the blog", title: "Why the rye takes three days", meta: "4 min", href: "/blog/rye" }] },
602
+ ],
603
+ },
604
+ { label: "About", to: "/about" },
605
+ ],
606
+ header: { phones: [{ e164: "+15555550100", display: "(555) 555-0100", label: "The shop" }] },
607
+ ```
608
+
609
+ `SiteShell` puts the base path on every link and picture a section holds. The footer's Company column lists the entries themselves and never a group's links. A bar holding a group or a number keeps the burger up to 1180px instead of 900px, since it needs the room; the second of two numbers shows from 1360px, and the menu lists both. `header.phones` takes up to two, each a tel link; the first is also the round call button beside the burger on a phone.
610
+
611
+ `contactDock` in the config turns on the floating launcher: `label` is the launcher's words, `title` and `subtitle` the panel's head, `footnote` its foot, and `items` the ways to reach the business, each `{ label, description, icon, href }` or, for something already on the page such as a chat vendor's window, `{ label, description, icon, onSelect }`: the type takes one or the other and never neither. A dock item always points at the business's own flow. The dock lifts over the phone's sticky bar while it shows and rides above the footer as it scrolls in. It finds the bar by the `data-dock-lift` attribute `StickyCTABar` wears, which keeps `data-showing` current, or failing that a site's own `.sticky-cta`, read as showing by its `show` class when it keeps no `data-showing` (`lift` names another selector), and the footer by `avoid`, a ref or a selector, which `SiteShell` fills with a ref to its own footer. When the page's elements change it asks the two selectors again once a frame, and binds and measures anew only when the bar or the footer it finds is not the one it holds (a route change, a bar that mounts late), never for the dock's own changes and never on a scroll frame; it measures again when either, or the page, changes size. While open, the launcher reads `closeLabel` ("Close") and the panel's own close button `panelCloseLabel` ("Close panel"), so the two never share a name. Rendered with `track={false}` it sets no inset of its own and sits in the stylesheet's corner, 24px in from the right and the bottom, 16px on a phone.
612
+
613
+ ### Density
614
+
615
+ The space a section leaves above and below itself is one token, `--section-space`, with three settings chosen by `data-density` on the `.atelic-ui` root. `SiteShell` sets it from its `density` prop, which defaults to `site.density`:
616
+
617
+ | Setting | `--section-space` | `--block-gap` | `--card-min` |
618
+ |---|---|---|---|
619
+ | `default` | `clamp(36px, 4.6vw, 64px)` | 28px | 0 |
620
+ | `comfortable` | `clamp(56px, 9vw, 120px)` | 44px | 240px |
621
+ | `compact` | `clamp(24px, 3.2vw, 44px)` | 20px | 0 |
622
+
623
+ `.section` pads with it, and the steps derived from it keep their old proportion to it: `.section-md` 0.7, `.section-sm` 0.6, `tight-top` and `tight-bottom` a third, the `PricingBand` 0.84, `PageHero` and the not found opener 0.72 on top and 0.5 below, and the `FeatureDetail` rows 0.6, whose first and last rows now sit flush with the section around them. `--block-gap` is the space between a section's heading and the grid under it (`FeatureGrid`, `ProfileCards`, `LinkColumns`, `CalloutPanel`, and `Gallery` at 0.77 of it), and `--card-min` the least a `FeatureGrid` card stands. A site that wants its own value sets the property on `.atelic-ui` in its own sheet, outside the layer. `ArtifactShell` pins `comfortable`, so a document reads as it did; the app shell reads none of these.
624
+
625
+ ### Moving to 8.0.0
626
+
627
+ - **The spacing default tightened.** Every section pads by the table above, so a site's pages run shorter. A site that wants its old look sets `density: "comfortable"` in its config. Check any section a site padded by hand in its own sheet against the new rhythm.
628
+ - **`.nav-links a` became `.nav-links > a`** so a panel's links keep their own styling. A site rule written against the old selector should be checked against the bar.
629
+ - **Surfaces:** `BlogIndex`, `BlogPost`, `LegalPage`, `LocationSection`, `Locations`, `ProfileCards`, and `ReviewCarousel` take `surface` like the sections that had it, and `PageHero` takes it defaulting to `alt`. Nothing alternates on its own except the `FAQBrowser`'s subject bands, every second one now on the alternate surface.
630
+ - **Eleven components are gone**, none of them used by any site, app, or runner: the sections `DeviceShowcase`, `MediaBand`, `CTABanner`, `PressQuotes` (with `sortPress` and the `PressItem` type), `SocialStrip`, and `MenuList`; the app shell's `CardErrorBoundary`; and the email pieces `MonoTable`, `StatStrip`, `WhatMoved`, and `RecordTimelineLegend`. Their props types and their styles (`.cta-banner`, `.device-*`, `.media-band`, `.menu-list`, `.press-quotes`, `.social-strip`) went with them. A page that still imports one fails to build: a banner moves to `CTASection` or a site's own `SplitSection`, a press row to `ReviewCarousel` or `LogoMarquee`, a photo strip to `Gallery`. The template's example pages that use `CTABanner`, `PressQuotes`, and `SocialStrip` are repointed in the template.
631
+ - **The mega menu takes more than link columns.** `columns` is now the panel's sections (`NavPanelSection`): a link column as before, or a `picture`, `rows`, or `cards` section; a link takes `badge` and `children`, and the feature card takes `points`. The panel is the wrap's width and 440px tall whatever it holds, the feature card is 340px on `--primary-deep`, and its action is the `Button` primitive. `allLabel` stays off unless given and now reads as a plain link at a column link's weight, where it was a bold primary line with an arrow. Existing groups render with the new spacing (a link at 17px, the panel's padding 36 by 40) and nothing to change in the config.
632
+ - **The brand mark.** `logo.onLight` and `logo.onDark` take the brand's own artwork per surface, never recolored, and `logo.wordmark: false` drops the live name. A site passing `logo.src` alone changes in one way: its mark is as tall as `--brand-mark-height` (30px) and as wide as its own ratio, where the header squeezed every mark into a 30 by 30 box, so a square mark looks exactly as it did and a wider one stops being squashed. The light bar still tints it to ink. The footer draws `logo.onDark` when it is given.
633
+ - **Every raw color and weight in the sheets is a token**, each defaulting to the value it replaced (see [Tokens](#tokens)), so a site that sets none looks the same, with one rounding exception: the reveal slider's before label and line read `--scrim` (`#140f0b`) where they had `rgb(20 16 12)`, one step lighter in green and blue. A theme sets `--on-primary` for a primary light enough to want dark words, and the weight tokens for a font kit that lacks 500, 600, or 800. A site that styled against `#fff` in its own sheet is unaffected.
634
+ - **`ContactDockItem` is a union:** an item has an `href` or an `onSelect`, and a config with neither no longer compiles. `ContactDock`'s `avoid` takes a ref as well as a selector, `lift` names the bar it rides over (default `[data-dock-lift]`, which `StickyCTABar` now wears), and with `track={false}` it sets no inset of its own. `SiteShell` hands the dock a ref to its footer, so a page's own `footer` element can no longer be mistaken for it. `Footer` and `ClosingBar` take a `ref`.
635
+ - **Smaller changes:** the sections' `surface` props share one exported type, `Surface`; `ProcessSteps` takes `id`; `FeatureGrid` takes `lead`; `Button` calls `onClick` on a link as well as a button; `SiteMenu` numbers plain entries alone, so a group no longer leaves a gap in the count; a `StatRow` figure given as words wraps instead of pushing the page sideways; `FullBleedVideo` mounts its video, and fetches the clip, only once the band is within a screen of the viewport; the split hero's copy starts where a `.wrap`'s content does at any width; and the FAQ's icon buttons hover with a wash of the text color, which shows on an alternate band.
636
+ - **Fixes the package now owns:** a primary button or an eyebrow inside `.on-primary` (the split hero, the callout panel, the menu's feature card, or a site band wearing the class) turns light, and the footer's stars read `--star-fill`.
637
+ - **The primary's three jobs are three tokens.** `--primary-fill` and `--primary-ink` (see [Tokens](#tokens)) each fall back to `--primary`, so a site that sets neither paints its rest states as before. Two things move at the defaults: a primary fill's hover and press darken the fill (`color-mix` toward `--shade`) where the hover read `--primary-deep`, and the words on a primary field read `--on-primary` whole where the subtitles, the dock's line, the feature card's line, and the price band's lead and figures read a softened mix of it, since no mix of white stays over 4.5 to 1 on a fill cut close to that line. The split hero's headline and its serif accent read `--on-primary` (the accent read `--primary-bright`, 1.38 to 1 on the practice's palette), the feature card's eyebrow and ticks read `--on-primary` (they read `--primary-bright`), and the price card sets itself off by a shade rather than a wash of white.
638
+ - **The current page and the foot of the page.** A flat nav link on the current page is now marked like a current group. While the phone's sticky bar shows, `SiteShell` pads the closing bar by the bar's measured height (`--sticky-cta-space`, from `StickyCTABar`'s new `onSpaceChange`), so the copyright and the credit are never under it; a site rendering `StickyCTABar` itself wires the same.
639
+ - **The footer's headings** are level 2 headings by role (`div` with `role="heading"`) wearing `.footer-heading`, where they were `h4`; a site rule against `.footer h4` moves to the class, a site's bare `h2` rule no longer reaches them, and `headingLevel` sets another level.
640
+ - **The lockup.** A logo with one cut no longer draws it untinted everywhere (the table under [Rendering From Props](#rendering-from-props)), the header and the footer resolve the same way, `wordmark: false` with no mark keeps the name, and a glyph tile's letter is drawn by the stylesheet from `data-glyph` (a site styling `.logo-tile`'s text keeps working; one reading its text content finds none).
641
+ - **The contact dock** names its panel's close button `panelCloseLabel` ("Close panel"), and still lifts over a site's own bar that wears only `.sticky-cta.show`.
642
+ - **A document's mark height** is the token: `ArtifactShell` wears `data-shell="artifact"`, where `artifact.css` sets `--brand-mark-height: 20px` in place of pinning the image's height, so a theme's own token now reaches a document's header and a site importing the sheet keeps its own header's size.
643
+ - **The email palette's `faint`** is the brand kit's Faint, `#6e6757`, darkened from the jq's `#8a8272` (3.38 to 1 on the ground at 11px) to 4.99 to 1 on the ground and 5.43 on paper. Every piece that sets it (the masthead's title and meta, the eyebrows, the folds' counts, the record meta, the scoreboard's quiet rows, the failure page's labels, the footer) reads it on the ground or on paper, never on a rule color.
644
+ - **Small orange words in email take the accent's ink.** The palette gains `accentInk` (`#B8300B`, the brand kit's Orange Ink, 5.86 to 1 on paper and 5.38 on the ground), and every piece that set small words in `accent` (`#FC4A1A`, 3.31 and 3.04) sets them in it: a title line's value and so an `Item`'s, a short `TargetRow` count, `GroupRow`, `ReadBlock`'s eyebrow, an accented `Note`'s eyebrow, `RecordStack`'s New pill (its border too) and callout eyebrow and a cold aside, a hot `Records` cell, the structured `FailurePage`'s fix label, and `Badge` (its box too). The accent stays for the marks with no words: the masthead's rule, a link's underline, a callout's edge, the timeline's open dots. A client palette that names only an accent gets an ink derived from it (see [Tokens](#tokens)). `warm` darkens from `#B7791F` (3.52 on paper) to `#966319` (4.96 on paper, 4.55 on the ground). A runner that renders its mail from this palette takes all three values with 8.0.0; the goldens record each departure.
645
+ - **Email holds a phone's width.** `Row`, `Item`, `Note`, `ListRow`, `ReadBlock`, a `DayStrip` day, a left aligned `Records` cell, and the plain `FailurePage`'s log break a long token (an address, a path) instead of widening the email (`wrapLong`, inline `overflow-wrap: anywhere` and `word-break: break-word`). A `Records` column's `width` is still given in pixels and is now drawn as its share of the 630 pixels a records table has on a desktop, so a desktop renders the same and a phone narrows the grid. `Records` is a data table: no `role="presentation"`, header cells `th scope="col"`, set in the same weight. `Badge` takes `label` (what its letter stands for), `DayStrip`'s entries `badgeLabel`, `Bar` and `RecordTimelineStrip` are images named by `label`, defaulting to "2 of 5" and to `recordTimelineSummary` ("Last 30 days: 2 sends, the latest 3 days ago; 1 open, today"); a `TargetRow`'s bar stays silent beside its count.
646
+ - **The app shell's light theme passes text contrast.** `--destructive` is red 600 (`#dc2626`, 4.83 to 1 as words on a card, 4.63 under its foreground) where shadcn's `#ef4444` read 3.6 to 3.76, and `--muted-foreground` is `#6b6b73` (4.81 on the grey highlight) where `#71717a` read 4.39 there. A destructive fill's hover and press read the new `--color-destructive-hover` (the fill mixed 85% with black), never a lighter tint of it, and the provider's rich toasts set each tone's words to pass on its own tint. An app that sets its own `--destructive` or `--muted-foreground` keeps them.
647
+ - **Country flags are gone.** `CountryDropdown` shows and lists each country by its name alone: no flag image, no emoji, no code in a circle, and nothing fetched. `getCountryFlag` and the `react-circle-flags` dependency are removed, and so are `AppConfig.flagsBaseURL` and the dropdown's `flagsBaseURL` prop. A consumer that called `getCountryFlag` drops the call and shows the country's name; one that set `flagsBaseURL` drops the key. The package exports no other helper from a country's code to its name, or back.
648
+ - **The app kit's names, values, and focus** (see [The Kit](#the-kit)). Visible changes: `Pagination`'s first button reads Previous where it read Prev; the dropdown's search sits above its list; an `AlertTitle` is a paragraph where it was an `h5` (give it `level` to keep a heading). Behavior that changed with a default: `Alert` is no longer `role="alert"` unless given `announce="assertive"` (or `"polite"` for a status), while `PageError` now is one, announced as it appears; a toolbar action and the rail's user menu are named by the words they show; a collapsed rail link is named by its label; clearing a search by keyboard keeps focus in the box; `CommandDialog` is named (`title`, "Commands" by default) and hands focus back to what opened it.
649
+ - **The token defaults moved to `styles/defaults.css`,** which every layered sheet imports first, so a consumer loading one sheet alone (`primitives.css` for the prose lightbox, say) has every default it reads. Nothing changes for a site importing them all.
650
+ - **A long word breaks instead of scrolling a phone sideways.** The root wears `overflow-wrap: anywhere`, which every text element under it inherits, declared once in `defaults.css` on `:where(.atelic-ui)`, so it weighs nothing and reaches a consumer loading any one sheet alone, and a table keeps `break-word`, so an auto table's columns never collapse below their longest ordinary word. Ordinary words still wrap at spaces; only a word longer than its line breaks. What must stay whole in a crowded row holds: the brand's name, a button's label (`break-word`, so a row of buttons wraps a button rather than squeezing it), a `PricingBand` price, and every `tel:` link, which never breaks (`stories/foundations/CrowdedRows.stories.tsx` checks the rows at 390, 900, and 1180). A `Chip` no longer sets `white-space: nowrap`: it still moves whole to the next line, and only a label longer than its column wraps inside the pill. The sign off's address wraps the same way.
651
+ - **`DataTable` scrolls inside its own box** (`.data-table-scroll`, the table's parent) when it is wider than the page, and the box is a focusable region named by the new `ariaLabel` (default "Table") only while it scrolls. `ComparisonTable`'s box, which scrolls on a phone, does the same, with its own `ariaLabel` (default "Comparison").
652
+ - **Said to a screen reader, and where focus goes.** `ContactForm` marks a refused field `aria-invalid`, describes it by its message, and focuses the first; its thanks and its failure sit in an `<output>` that is always drawn, so they are announced; its ids come from `useId`, so a label's target is no longer `contact-name` (a site's own CSS or test against those ids moves to the label). `FAQBrowser` returns focus to the search field when the search is cleared, and `JumpRail` marks its current stop `aria-current="location"` and draws nothing with no stops. `LogoMarquee` hides the loop's copy from assistive tech, draws it not at all under reduced motion, and has a quiet pause toggle (`pauseLabel`, default "Pause"). `RevealSlider` answers Home, End, Page Up and Page Down, and the up and down arrows, and says its value through `valueText` (default each side's share by its label). `MapEmbed`'s facade is named by its own words, and a screenshot with no `mapLinkURL` is a plain picture, not a link to `#`. `NotFound`'s closing arrow is hidden from the name. `ColumnChart` names a bar marked apart from its group by the legend's words, and with no bars says `emptyLabel` (default "No data to show"); `ThresholdScale`'s track names the zone with the figure ("Home page: 4.1 s, Poor"). An editable `StarRating` is one slider holding plain hit areas (`data-rating`), never buttons. `StarRow` says and draws a half rating ("4.5 out of 5 stars", four and a half stars) where it rounded up. `ProcessSteps` and `LocationSection` take `headingLevel` (default 2) and set the steps' titles and the hours heading one level below, at level 3 where they were `h4` elements, and as headings by role (a `div` with `role="heading"` and `aria-level`), as the footer's column labels already were, so a site's bare `h3` rule no longer restyles them; a site styling `.steps h3` or `.loc-block h3` moves to `.step-title` or `.loc-heading`. `NavMegaPanel` marks one link current, the first in reading order. The gate's fine print link is underlined.
653
+ - **Contrast at the defaults.** `--tone-good` is `#197538` (was `#1b7f3b`, 4.50 to 1 on the practice's surface and 4.16 on its alternate band; now 5.12 and 4.73) and `--grade-b` is `#8a5f00` (was `#9a6b00`, 4.30 on its own ground; now 5.18). The contact form's error words read `--primary-ink` where they read `--primary-deep`, the review carousel's denominator `--neutral-500` where it read `--neutral-300`, soft words on the inset well (a placeholder's brief, the map facade's hint, a profile placeholder, the reveal slider's before brief) the new `--ink-inset`, the reveal slider's after brief `--primary-ink`, and a dark `SectionHeading`'s lead `--on-dark-quiet` and its title `--on-dark`.
654
+ - **Tokens that were read but never defined** now resolve: `--shadow-md` and `--shadow-lg` default to plain neutral shadows and `--font-script` to a generic chain of system scripts, each a token a theme is expected to set, as the templates do (see [Tokens](#tokens)), and `--neutral-700`, which no theme sets, falls back to `--ink`, which prose already inherited. A theme that sets them is unaffected.
655
+ - **Column widths come from `.wrap`:** `PricingBand`'s lead, `Locations`' lead, and `Gallery`'s lead no longer cap themselves. `PricingCard` keeps its 520px: it is a card, not a column, and at the wrap's width its button ran across a nearly empty card.
656
+
506
657
  ### Every Section
507
658
 
508
659
  | Section | What it is |
509
660
  |---|---|
510
- | `Hero` | The home page opener: a full bleed image (or the token gradient), a headline with a serif accent, a pair of actions, trust figures, and a scroll cue |
661
+ | `Hero` | The home page opener: a full bleed image (or the token gradient), a headline with a serif accent, a pair of actions, trust figures, and a scroll cue; `layout="split"` sets the copy on the primary field beside the photo, stacking photo first on a phone |
662
+ | `ProofStrip` | One row of short proof facts under a hero, a figure over its label each |
663
+ | `FullBleedVideo` | A silent looping clip edge to edge, the poster first and the clip only while on screen |
664
+ | `CalloutPanel` | Short callouts on the primary field, titles and subtitles each on a shared line |
665
+ | `LinkColumns` | Columns of links under a heading, a link's figure right aligned in tabular numerals |
511
666
  | `PageHero` | The interior page opener on the alternate band; children sit under the lead |
512
667
  | `LogoMarquee` | A dark band of chips scrolling without end: credentials, clients, or press |
513
668
  | `SplitSection` | The two column band: copy beside copy, or media beside copy. `ratio` is `even`, `narrow-first`, or `media`, a fixed 420px shot column and the gap a card row uses, so a photo beside copy lines up with a case study entry above it; `even` and `narrow-first` stack below 920px, `media` below 761px |
514
669
  | `PricingBand` | A brand colored band with the price in a card beside it, informational by design |
515
- | `MediaBand` | A plain full bleed image band, cropped from the center |
516
- | `CTABanner` | A mid page banner behind a directional wash, with the token gradient before any photography |
517
670
  | `CTASection` | The standard closer: the site's own primary action and an optional ghost second |
518
671
  | `FeatureGrid` | Numbered cards with a hover lift; a card is a link or holds one, never both |
519
672
  | `FeatureDetail` | Alternating copy and media rows with tags and a tick list |
520
673
  | `ProcessSteps` | A dark band of numbered steps beside a frame |
521
674
  | `PricingCard` | A standalone price card with a tick list and its booking action |
522
- | `MenuList` | A priced menu group of dotted rows, with fine print under it |
523
675
  | `ExpandList` | A light accordion of numbered rows whose bodies stay in the HTML while closed |
524
676
  | `ComparisonTable` | A graded before and after that scrolls sideways on a phone rather than reflowing |
525
677
  | `RevealSlider` | Drag or arrow keys to compare two frames, each with its own toned shot brief before photography |
526
- | `DeviceShowcase` | A desktop browser frame with a phone overlapping it |
527
678
  | `ReviewCarousel` | The aggregate beside one large review at a time, stepped by dots and arrows, each review linking to its source |
528
679
  | `ReviewWall` | The reviews page: tag filter and sort when the data carries them, clamped quotes behind Read more |
529
- | `PressQuotes` | Rows of press quotes and awards with source and year, newest first (`sortPress` beside it) |
530
680
  | `ProfileCards` | Equal weight cards of media beside a short bio |
531
681
  | `Gallery` | A captioned wall of the business's own work, a shot brief where a photo is missing |
532
682
  | `CredentialList` | Credential cards with a mono code before each |
533
- | `SocialStrip` | A static grid of the business's social photos linking to the profile, never a live embed |
534
683
  | `LocationSection` | The local search section: service areas as prose, hours, directions, and the map |
535
684
  | `Locations` | More than one address: the flagship's map beside a card for each location |
536
685
  | `MapEmbed` | The map: a screenshot linking to directions, or a click to load facade over the live embed |
@@ -543,7 +692,7 @@ Moving to 7.0.0: `footerBlurb` and `footer.contactHeading` are gone from the con
543
692
  | `BlogPost` | One article: back link, title, byline and dateline, body |
544
693
  | `LegalPage` | A legal document from data, its last revised date first |
545
694
 
546
- The primitives that came with them, in `@atelic-action/ui/primitives`: `ImageFrame`, `ProseBlocks`, `QuoteCard`, `StarRow`, and `TickList`, with `Bubble` (see Primitives) shown beside them in the gallery. `StarRow` stays beside `StarRating` on purpose: it draws only the filled stars a review shows, in whole steps and the brand color, named "4 out of 5 stars", where `StarRating` draws the whole scale with outlines in half steps and can take a rating.
695
+ The primitives that came with them, in `@atelic-action/ui/primitives`: `ImageFrame`, `ProseBlocks`, `QuoteCard`, `StarRow`, and `TickList`, with `Bubble` (see Primitives) beside them. `StarRow` stays beside `StarRating` on purpose: it draws only the filled stars a review shows, to the nearest half star and in the brand color, named by the rating as given ("4.5 out of 5 stars"), where `StarRating` draws the whole scale with outlines in half steps and can take a rating.
547
696
 
548
697
  The entry also exports the helpers the sections use, for a site's own code: `formatClock`, `formatHoursRange`, and `isClosed` for hours, `isHoneypotFilled`, and `trackEvent`.
549
698
 
@@ -638,13 +787,11 @@ const html = renderEmail({
638
787
 
639
788
  ### Mobile First
640
789
 
641
- Runner emails are mobile first. A layout that squashes on a phone is fixed here, in the components every runner shares, never in a report page. A fixed column table is for numbers alone and never carries a name; names go in a `RecordStack`.
790
+ Runner emails are mobile first. A layout that squashes on a phone is fixed here, in the components every runner shares, never in a report page. A fixed column table is for numbers alone and never carries a name; names go in a `RecordStack`. One long token (an address, a path, a long word in a narrow day) breaks inside its cell rather than holding the email open past the phone: `Row`, `Item`, `Note`, `ListRow`, `ReadBlock`, a `DayStrip` day, a left aligned `Records` cell, and both failure pages' logs carry `wrapLong` (`overflow-wrap: anywhere` with `word-break: break-word`, which mail clients honor inline), exported for a runner's own blocks (8.0.0). A `Records` column `width` is pixels at the desktop column and is drawn as its share of the table (630 pixels inside a card's row, or the columns' sum when they ask for more), so the same widths keep sibling tables on one grid and narrow on a phone.
642
791
 
643
792
  `RecordStack` takes `records`, each a `RecordStackItem` (`title`, `url`, `meta`, `note`, `badge`, `callout`), and renders one table row per record: the title on its own line at 15px, bold and wrapping freely, linked when `url` is set; a mono meta line beneath it with the items joined by middle dots (empty items drop); an optional note beneath that; a hairline between records and none after the last. No cell carries a width, so a name of any length wraps at 320 pixels instead of squashing. An optional `badge` (a stage word such as `"Contacted"`) sits on the title line in a small mono uppercase pill on a `line` hairline, in its own right aligned unbroken cell, so the title keeps wrapping beside it and the badge stays on the title's first line. An optional `callout` (`{ eyebrow, text }`) sets a short task under the meta and the note in the accented `Note` idiom: the eyebrow in the accent, the text at 13px, and a 2px accent rule down its left edge. A record with neither renders exactly as it did before. `recordStackText(records)` is its plain text twin: each title on its own line under a two space indent with any badge after it in square brackets (`Blue Heron Plumbing [Contacted]`), the meta and the note wrapped under a four space indent, any callout as its eyebrow in upper case over its text under that same indent, a blank line between records, and no line past `textWidth` (68 columns, indent included).
644
793
 
645
- The Company Cards additions (0.7.0, from the `Company Cards IA` design, 2026-09-29) ride on the same item and change nothing for a record without them. `badges` is a list of further pills after `badge`, each with a `tone`: `faint` is the quiet stage word, `ink` a bold pill in ink on a 1.5px border (the next touch), `accent` the same in the accent (New). `timeline` (`{ days, touches, opens }`, each day count back from today) draws the record's recent days between the title and the meta line as one table cell per marked day and one per run of empty days between them (seven cells for three marks, never thirty, since Gmail clips a message past about 100 KB), an 8px ink square on each send day and a 5px accent dot on each known open day, the two stacked when they share a day, all standing on a `line` hairline with a 1.5px ink tick at today's edge and an axis row beneath (`30d` on the left, `today` on the right); nothing is positioned, so it survives Gmail. `RecordTimelineStrip` renders one on its own and `RecordTimelineLegend` names the marks once above a list. `aside` (`{ text, strong, tone }`) sets a fact right on the meta line with its number in bold and colored by tone: `up` fresh, `warm` cooling, `accent` cold. In the text twin every pill follows the title in brackets, the timeline is one character per day (`10d [#······@·o|]`: `#` a send, `o` an open, `@` both, `·` nothing, `|` today), and the aside ends the meta line; `recordTimelineText` and `recordBadges` are the helpers it uses.
646
-
647
- `StatStrip` lays its stats out as inline block cells with an 88 pixel floor inside one centered cell, so six or seven stats flow onto a second row on a phone rather than shrinking. Each stat takes an optional `delta` (`"+3 (12%)"`), set small under its label and colored by its sign: one that opens on `+` wears the palette's `up`, one that opens on `-` its `down`, and anything else stays muted.
794
+ The Company Cards additions (0.7.0, from the `Company Cards IA` design, 2026-09-29) ride on the same item and change nothing for a record without them. `badges` is a list of further pills after `badge`, each with a `tone`: `faint` is the quiet stage word, `ink` a bold pill in ink on a 1.5px border (the next touch), `accent` the same in the accent (New). `timeline` (`{ days, touches, opens }`, each day count back from today) draws the record's recent days between the title and the meta line as one table cell per marked day and one per run of empty days between them (seven cells for three marks, never thirty, since Gmail clips a message past about 100 KB), an 8px ink square on each send day and a 5px accent dot on each known open day, the two stacked when they share a day, all standing on a `line` hairline with a 1.5px ink tick at today's edge and an axis row beneath (`30d` on the left, `today` on the right); nothing is positioned, so it survives Gmail. `RecordTimelineStrip` renders one on its own. `aside` (`{ text, strong, tone }`) sets a fact right on the meta line with its number in bold and colored by tone: `up` fresh, `warm` cooling, `accent` cold. In the text twin every pill follows the title in brackets, the timeline is one character per day (`10d [#······@·o|]`: `#` a send, `o` an open, `@` both, `·` nothing, `|` today), and the aside ends the meta line; `recordTimelineText` and `recordBadges` are the helpers it uses.
648
795
 
649
796
  `Masthead` takes an optional `meta` (`"Week 39 · 09/21 to 09/27"`) set in the eyebrow style at the right end of the row, so the title card no longer carries the week. It is a right aligned, unbroken block floated after the wordmark and title: on the same line while the row has room, and dropped under the title on its own line, still right aligned, when it does not (checked at 320 pixels). `Eyebrow` takes `strong`, which sets the label at 15px and weight 700 in ink rather than faint, with a slightly tighter tracking, so a section such as `MQL · 15` reads as a heading on a phone.
650
797
 
@@ -664,9 +811,6 @@ const records = [
664
811
  <Eyebrow text="MQL · 15" strong />;
665
812
 
666
813
  <Card>
667
- <Row last={false}>
668
- <StatStrip stats={[{ n: 6, label: "Lead", delta: "+3 (12%)" }, { n: 2, label: "MQL", delta: "-1 (4%)" }]} />
669
- </Row>
670
814
  <Row last>
671
815
  <RecordStack records={records} />
672
816
  </Row>
@@ -711,19 +855,16 @@ Where the jq takes a pre rendered html string (`$rows`, `$body_html`, `$cells_ht
711
855
  | `lead_row` | `LeadRow` | `lead`, `rest` |
712
856
  | `row` | `Row` | `last`, `children` |
713
857
  | `fold_row` | `FoldRow` | `last`, `children` |
714
- | `mono_table` | `MonoTable` | `headers`, `rows` |
715
- | `bar` | `Bar` | `logged`, `target` |
858
+ | `bar` | `Bar` | `logged`, `target`, and since 8.0.0 `label`, its text alternative ("2 of 5" by default, `false` for a bar beside a count that says it) |
716
859
  | `group_row` | `GroupRow` | `text`, `first` |
717
860
  | `target_row` | `TargetRow` | `text`, `logged`, `target` (null is a count with nothing to measure it against), `note`, `last` |
718
861
  | `scoreboard` | `Scoreboard` | `children`, the `GroupRow` and `TargetRow` rows |
719
- | `what_moved` | `WhatMoved` | `items`, `note` |
720
862
  | `read_block` | `ReadBlock` | `text`, `divider` |
721
863
  | `sub_eyebrow` | `SubEyebrow` | `text` |
722
- | `badge` | `Badge` | `letter` |
723
- | `day_strip` | `DayStrip` | `days`, `last` |
724
- | `stat_strip` | `StatStrip` | `stats`, each with an optional `delta` colored by its sign (the component wraps where the jq does not) |
725
- | none | `RecordStack` | `records`, each with an optional `badge`, `callout`, and since 0.7.0 `badges`, `timeline` and `aside` (born here on 2026-09-24, with no jq counterpart) |
726
- | `records` | `Records` | `columns`, `rows`; a cell's `html` is a `ReactNode` |
864
+ | `badge` | `Badge` | `letter`, and since 8.0.0 `label`, what the letter stands for, read in its place |
865
+ | `day_strip` | `DayStrip` | `days` (an entry takes `badgeLabel` since 8.0.0), `last` |
866
+ | none | `RecordStack` | `records`, each with an optional `badge`, `callout`, and since 0.7.0 `badges`, `timeline` and `aside` (born here on 2026-09-24, with no jq counterpart); `RecordTimelineStrip` takes `label`, its text alternative, `recordTimelineSummary` of the timeline by default (8.0.0) |
867
+ | `records` | `Records` | `columns`, `rows`; a cell's `html` is a `ReactNode`. Since 8.0.0 a data table with `th scope="col"` headers, and a column's pixel `width` drawn as its share of the table |
727
868
  | `masthead` | `Masthead` | `title`, `wordmark` (defaults to `atelic`), `meta` (added 0.5.0, no jq counterpart) |
728
869
  | `title_card` | `TitleCard` | `eyebrowText`, `headlineLines`, `lede`, `stats` (the rows under the lede, in place of the jq's `$stats_html`) |
729
870
  | `footer` | `Footer` | `meta` |
@@ -736,13 +877,42 @@ The plain text alternative part ports as plain functions with no React anywhere
736
877
 
737
878
  ### Tokens
738
879
 
880
+ The sheets read a set of tokens beyond the theme's palette, type, radii, and layout. Each has a default, declared once in `styles/defaults.css` on `:where(.atelic-ui)`, which weighs nothing, so a theme's own `.atelic-ui` rule wins and sets one only to change it; every default is the value the sheets used before it was a token, so a site that sets none looks as it did (8.0.0). Every layered sheet imports `defaults.css` first, so a sheet loaded alone still finds its defaults. No layered sheet paints a raw color anywhere else: `tst/no-raw-colors.test.ts` sweeps every sheet in `src/styles/` but the ones it excludes by name with a reason (`app.css`, Tailwind source outside the layer), and fails on a hex, a color function, or a named color outside a token's declaration in the defaults sheet, with its few exceptions listed in the test, each with its reason.
881
+
882
+ **The primary does three jobs, and each has its own token.** `--primary` is the brand color as a mark: lines, rules, focus rings, icons, stars, dots, and accents that carry no words. `--primary-fill` is the primary as a field that carries words: the primary button, the dock's launcher and panel head, the split hero and the callout panel bands, the price band, the menu's badges and highlighted row, the reveal slider's after label, the map's directions chip, a step bubble's badge; the words on it read `--on-primary`, and its hover and press darken it, so they stay distinct even where a theme's fill is its old hover shade. `--primary-ink` is the primary as words on `--surface` and `--surface-alt`: the eyebrow, a serif accent in a heading, the current nav entry and panel link, inline accent links, a feature number, the info tone. Both new tokens fall back to `--primary` where they are read, so a site that sets neither looks as it did, and a band that restates `--primary` carries both with it. A bright brand color that cannot pass text contrast keeps `--primary` and sets the other two deeper; the Storybook theme (`.storybook/theme.css`) sets `--primary` `#fc4a1a`, `--primary-fill` `#d63a10` (white on it 4.70 to 1), and `--primary-ink` `#b8300b` (5.38 to 1 on `--surface`, 4.97 on `--surface-alt`, 4.80 under the bar's hover tint).
883
+
884
+ | Token | Default | What it colors or sets |
885
+ |---|---|---|
886
+ | `--primary-fill` | `--primary`, read in place | Every primary field that carries words: `.btn-primary`, the dock's launcher, panel head, and lead icon, the split hero and callout panel bands, the price band, a step bubble's badge, a menu badge, a highlighted menu row, the reveal slider's after label, the map's directions chip. Its hover is 84% of it mixed with `--shade`, its press 74% |
887
+ | `--primary-ink` | `--primary`, read in place | The primary's words on `--surface` and `--surface-alt`: the eyebrow, `em.serif` and a heading's `.serif`, the current nav entry, group, and panel link, inline accent links and hovers, feature numbers and links, the FAQ's links, the gate's brand line and links, the info tone, the surface button inside `.on-primary` |
888
+ | `--on-primary` | `#fff` | Anything set on the primary fill: a primary button's words, the dock's head and lead icon, the split hero's copy and accent, the callout panel, the price band, a step bubble's badge, a menu badge, a highlighted menu row, the feature card. Read whole, never softened, since a fill cut to pass leaves no room for a mix |
889
+ | `--on-dark` | `#fff` | Anything on a dark band or over a photograph: the skip link, the transparent header, the dark header's text (mixed with `--surface`), the phone menu's rules, the footer's headings and links, a hero's headline, the contact card, the process band, a ghost button and a chip on dark, the reveal slider's handle |
890
+ | `--on-dark-chip` | `#efe7da` | A chip's words on a dark band (the credentials chips, `Chip onDark`) |
891
+ | `--on-dark-quiet` | `rgb(248 244 237 / 0.74)` | Quiet text on the dark process band |
892
+ | `--on-dark-faint` | `rgb(248 244 237 / 0.52)` | The quietest text on a dark band: the closing bar's copyright and credit (5.23 to 1 on `#151515`), where a light ground's gray such as `--neutral-500` falls short |
893
+ | `--shade` | `#000` | Pure shadow: a lightbox backdrop, a caption's wash, a headline's text shadow, the dark button's press, a primary fill's hover and press, the price card's ground, and the fallbacks behind `--hairline` and `--shadow-md`. A `::backdrop` that inherits no custom property (before Safari 17.4 and Chrome 122) falls back to `--backdrop-shade`, which `defaults.css` sets on the backdrop itself |
894
+ | `--scrim` | `#140f0b` | The warm wash a hero lays over its photograph, and the reveal slider's before label |
895
+ | `--placeholder-ink` | `#8a7c68` | The hatching and ring of a placeholder before photography exists |
896
+ | `--ink-inset` | `--ink-soft`, read in place | Soft words on the inset well (`--surface-inset`): a placeholder's shot brief, the map facade's hint, a profile placeholder, the reveal slider's before brief. `--neutral-600` read 4.4 to 1 there on the practice's palette, `--ink-soft` reads 6.14 |
897
+ | `--shadow-md`, `--shadow-lg` | `0 4px 14px rgb(0 0 0 / 0.08), 0 12px 32px rgb(0 0 0 / 0.06)`, `0 10px 30px rgb(0 0 0 / 0.12), 0 30px 70px rgb(0 0 0 / 0.1)` | Theme tokens a theme is expected to set, as every template's does: the raised shadow (an image frame, the map's chip, a card) and the higher one (a lifted frame, a pricing card, a panel). The defaults are plain black at a low alpha, so a theme without them still draws a shadow and no site's tint leaks into another |
898
+ | `--font-script` | `"Brush Script MT", "Segoe Script", "Snell Roundhand", cursive` | The sign off's script line, a token a theme is expected to set: the templates self host Yellowtail and name it there. The package bundles no font, so its default is a generic chain of the system scripts |
899
+ | `--hover-tint` | `rgb(33 28 23 / 0.06)` | The light bar's hover behind a nav entry |
900
+ | `--review-gold` | `#f5b301` | The footer rating's stars when the theme sets no `--star-fill` |
901
+ | `--grade-a` to `--grade-d`, each with `-line` and `-bg` | A `var(--tone-good)` (`#197538`) on its ground `var(--tone-good-bg)`, B `#8a5f00` on `#c99a1a`, ground `#fdf5dc`, C `var(--tone-warn)` (`#a84500`) on `#e8650a`, ground `#fff0e3`, D `var(--tone-bad)` (`#b3261e`) on its ground `var(--tone-bad-bg)` | The grade chip's words, rule, and ground, green to red whatever the brand is. A grade whose value is a tone's reads the tone, so a theme restating the tone moves both |
902
+ | `--weight-light`, `--weight-regular`, `--weight-medium`, `--weight-semibold`, `--weight-strong`, `--weight-bold`, `--weight-heavy` | 300, 400, 500, 600, 650, 700, 800 | Every font weight in every layered sheet. A font kit with only 400 and 700 maps each name to one of those (medium to 400, semibold, strong, and heavy to 700), so the browser synthesizes no weight |
903
+ | `--brand-mark-height` | `30px` (20px inside `ArtifactShell`) | The header mark's height, and a sent document's recipient mark; the width follows the image's own ratio |
904
+ | `--sticky-cta-space` | `0px`, read in place | The room the phone's sticky bar takes while it shows, which the closing bar pads its foot by; `SiteShell` sets it on its root from `StickyCTABar`'s measurement, and a theme never does |
905
+ | `--section-space`, `--block-gap`, `--card-min` | `clamp(56px, 9vw, 120px)`, `44px`, `240px` | The section rhythm where no `base.css` sets it (an app importing `components.css` alone); with `base.css` the settings under [Density](#density) win |
906
+
907
+ Three more read a fallback in place: `--star-fill` colors every filled star (`StarRating`'s, which falls back to the text color, and the footer's rating, which falls back to `--review-gold`), `--font-condensed` sets a `CalloutPanel` title's face, and `--neutral-700` colors prose bodies (`ProseBlocks`, the blog's index and post), falling back to `--ink`. The tone palette (`--tone-good` and its kin) is declared with the defaults and described under [Page Components](#page-components).
908
+
739
909
  `@atelic-action/ui/tokens` carries the palette and the font stacks with no React import, so a build script or a plain text renderer can read them. `toThemeCSS(palette)` writes the palette out as the site token declarations (`--surface`, `--surface-dark`, `--card`, `--ink`, `--primary`), and `themeTokenMap` exposes which palette key each token takes.
740
910
 
741
- The palette carries three optional keys beyond the jq's eight: `up` (`#2F7A4B`, a calm green) and `down` (`#B23A2E`, a calm red, kept well apart from the orange accent), the colors a `StatStrip` delta wears by its sign, and `warm` (`#B7791F`, an amber between `up` and the accent) for a record's aside that is cooling but not cold. All three read on the cream card. They are optional so a client palette written before 0.5.0 still compiles, and a palette without them borrows the Atelic values. None maps to a site token.
911
+ Every color the palette sets words in reads 4.5 to 1 or better on both the paper and the ground, which `tst/tokens/tokens.test.ts` holds (8.0.0). `faint` departs from the jq's value on purpose: the brand kit's Faint, `#6e6757`, where the jq has `#8a8272`, which reads 3.38 to 1 on the ground at the 11px a masthead's title and meta are set in; the new value reads 4.99 on the ground and 5.43 on paper. `accent` (`#FC4A1A`) is the mark and never small words (3.31 on paper, 3.04 on the ground); words take `accentInk`, the brand kit's Orange Ink, `#B8300B` (5.86 and 5.38). `accentInk` is optional: for a palette that names only an accent, `accentInk(palette)` darkens the accent toward black one step at a time until it reads 4.5 on both grounds (`#FC4A1A` alone gives `#C73A15`), keeps an accent that already passes as it is, and falls back to the ink for a color that is not a hex. `contrastRatio(a, b)` is the WCAG ratio it measures by. No piece sets white words on the accent; a runner that does uses the brand's fill, `#D63A10`, not the accent. The palette carries three more optional keys beyond the jq's eight: `up` (`#2F7A4B`, a calm green, 5.07 on paper) and `down` (`#B23A2E`, a calm red kept well apart from the orange accent, 5.74), the colors a record's aside or a change wears by its direction, and `warm` (`#966319`, an amber between `up` and the accent, darkened from the jq's `#B7791F`, which read 3.52, to 4.96 on paper and 4.55 on the ground) for a record's aside that is cooling but not cold. They are optional so a client palette written before 0.5.0 still compiles, and a palette without them borrows the Atelic values. None maps to a site token.
742
912
 
743
913
  ## Page Components
744
914
 
745
- The blocks a page composes, each styled in `styles/components.css` inside the `atelic-ui` layer, so a site's own unlayered rule resizes or recolors any of them. They were cut from the SkySpec baseline writeup on 2026-10-02 (ATE-600), which is the worked example of them on one page.
915
+ The blocks a page composes, each styled in `styles/components.css` inside the `atelic-ui` layer, so a site's own unlayered rule resizes or recolors any of them. They were cut from a client's baseline writeup on 2026-10-02 (ATE-600), which is the worked example of them on one page.
746
916
 
747
917
  | Component | What it is | Notes |
748
918
  |---|---|---|
@@ -750,16 +920,16 @@ The blocks a page composes, each styled in `styles/components.css` inside the `a
750
920
  | `IconList` | A list whose bullets are icons | `icon` and `tone` on the list set every bullet; an item's own override them. The bullet is decoration, so a screen reader hears only the items. A dot when no icon is set; the text's color when no tone is |
751
921
  | `ReportCard` | A name, a grade, and one line on it per row, in labeled groups, each row's parts centered on it | A row with `href` is a link from edge to edge with a chevron at its end; a link inside `line` still goes where it points. `before` sets the earlier grade faded beside the grade; no `grade` draws a dash read as not graded. `legend` explains the letters beside the `title`, or under the card with `legendAt="foot"`; `labels` sets the screen reader's words. The grade is `GradeChip` |
752
922
  | `Rank` | A figure with its badge, for a table cell | `figure` is the rank, the place, or a dash for none; `tone` colors the badge and `meaning` names it for a screen reader; `href` links the figure, in a new tab with `newTab`. The figure's slot is a fixed width, so the badges line up down a column |
753
- | `DataTable` | A table whose first column names each row, sortable by any column marked `sortable` | A click on a heading sorts on a wide screen. On a phone each row stacks, every fact wearing its column's label, and a dropdown sorts. A cell is a node, or `{ display, sort }` when what it shows is not what it sorts by; a formatted number in a string (`"$12,047"`, `"0.24%"`) sorts as a number. It renders in `defaultSort` on the server. Every other row sits on a tinted ground; `striped={false}` turns that off. A column marked `fit` hugs its content, for a swatch or a mark beside a figure. A column with a `hint` draws a `Hint` beside its heading, before the label when the column is right aligned; on a phone the heading row is hidden, so the hint is too. A cell given as `null` or `undefined`, or left out of a short row, is empty: it draws a short gray rule, the `.data-table-empty` class, which a screen reader hears as "None" or as the column's `emptyLabel`, and it sorts last whichever way the column runs. The first cell names the row, so it is never drawn as empty; give every row a name. A typed string is always content, a dash included, so type nothing for an empty cell. A document may wear `.data-table-empty` for its own neutral mark, so every empty cell reads the same |
923
+ | `DataTable` | A table whose first column names each row, sortable by any column marked `sortable` | A click on a heading sorts on a wide screen, and a table wider than the page scrolls inside its own box, which takes a tab stop and the name `ariaLabel` (default "Table") only while it scrolls. On a phone each row stacks, every fact wearing its column's label, and a dropdown sorts. A cell is a node, or `{ display, sort }` when what it shows is not what it sorts by; a formatted number in a string (`"$12,047"`, `"0.24%"`) sorts as a number. It renders in `defaultSort` on the server. Every other row sits on a tinted ground; `striped={false}` turns that off. A column marked `fit` hugs its content, for a swatch or a mark beside a figure. A column with a `hint` draws a `Hint` beside its heading, before the label when the column is right aligned; on a phone the heading row is hidden, so the hint is too. A cell given as `null` or `undefined`, or left out of a short row, is empty: it draws a short gray rule, the `.data-table-empty` class, which a screen reader hears as "None" or as the column's `emptyLabel`, and it sorts last whichever way the column runs. The first cell names the row, so it is never drawn as empty; give every row a name. A typed string is always content, a dash included, so type nothing for an empty cell. A document may wear `.data-table-empty` for its own neutral mark, so every empty cell reads the same |
754
924
  | `Hint` | An info icon that opens a short explainer beside a word | Opens on hover or focus, stays open on a click or a tap, closes on Escape or a tap elsewhere. The bubble opens from the icon's left edge and slides left when it would run off the screen. `side="before"` puts the icon before its word, for a right aligned heading. `label` is what a screen reader calls the button; the bubble is its description. Print hides it |
755
925
  | `StatRow` | A row of large figures, each over what it counts and its `period`. `variant="quiet"` is the glance row for a working page: a light figure in the text color over a small capitalized label, hairlines between; `unit` sets a figure's unit small beside it | `trend` draws an arrow before a figure that is itself a change. `deltas` list comparisons beneath: an arrow, how far, against what (`basis`), and the earlier figure (`was`), each in its own tone, since a spend falling and a cost falling read differently |
756
926
  | `Callout` | One finding: an icon in its tone beside the title, the explainer under it | `variant="box"` sets it apart on a tinted ground, for something missing or owed |
757
927
  | `Disclosure` | A section the reader opens and closes, in two forms chosen by whether `open` is passed | Controlled (`open` and `onToggle`), it is an app's card: the caller remembers what was folded, a closed body is not rendered, the label is the toggle, `meta` (a count, a flag) sits beside it outside its name, and `headingLevel` makes the label a real heading. Uncontrolled, it is a document's fold: a native `details` with a `summary` line that carries the point and `defaultOpen`, so it works before any script loads, find in page opens it, and it prints open. `Collapsible`, the fold's old name, was folded in at 0.18.0 |
758
928
  | `Tabs` | Panels behind a row of tabs, on Radix for the arrow keys and the roles | Each tab's `id` names it in the URL: the tab is `<id>-tab`, its panel `<id>-panel`. A hash of `#<id>` opens the tab and scrolls to the tab row, and a hash naming any element inside a panel opens that panel and scrolls to it, on load, on a hash change, and on a click of a link to the hash already in the address bar, so a link in one panel lands on a finding in another. Every panel stays in the page: the inactive ones carry `hidden="until-found"`, so find in page reveals one and the tab follows. `defaultId` picks the first tab open; `selectedId` and `onSelect` hold it in the caller; either one naming no tab opens the first. Radix Tabs is a dependency of the package, so a site installs nothing for it. `ariaLabel` names the list and has no default. On paper the list is hidden and every panel prints under its label, as a heading at `headingLevel` (2 by default) |
759
929
  | `StackedBar` | One bar split into the parts of a whole, with a key | A part of zero is keyed and not drawn |
760
- | `ColumnChart` | A bar a period, the periods in groups that carry a label and a total | Months in quarters is the case it was cut for: a quarter reads against the one before it and the same one a year earlier |
761
- | `ThresholdScale` | Zones on a scale and a pin for each reading | For a number judged against lines, like a load time against good and poor |
762
- | `StarRating` | A row of stars showing a rating in half star steps, and taking one when given `onChange` | Each star is two hit targets; picking the current rating clears it. Editable, it is one slider to a keyboard and a screen reader; read only, a picture named by the rating. `fillColor` and `outlineColor` take any CSS color, `size` and `max` set the star and the scale |
930
+ | `ColumnChart` | A bar a period, the periods in groups that carry a label and a total | Months in quarters is the case it was cut for: a quarter reads against the one before it and the same one a year earlier. A bar given its own tone, apart from its group's, is named with the legend's words for that tone, so the mark is never told by color alone; with no bars the chart shows and says `emptyLabel` ("No data to show") |
931
+ | `ThresholdScale` | Zones on a scale and a pin for each reading | For a number judged against lines, like a load time against good and poor. Each track is named by its reading, its figure, and the zone it falls in ("Home page: 4.1 s, Poor"); a reading on a line belongs to the zone the line closes |
932
+ | `StarRating` | A row of stars showing a rating in half star steps, and taking one when given `onChange` | Each star is two hit areas, plain elements marked `data-rating`; picking the current rating clears it. Editable, it is one slider to a pointer, a keyboard, and a screen reader, holding no control of its own; read only, a picture named by the rating. `fillColor` and `outlineColor` take any CSS color, `size` and `max` set the star and the scale |
763
933
 
764
934
  **StarRating outside a site.** It is the one component that does not sit under `.atelic-ui` or read a theme token: its styles are in `styles/star-rating.css`, and its two colors are the `--star-fill` and `--star-outline` custom properties, falling back to the text color and a faint tint of it. An app that installs the package for this component alone imports that one sheet, not `components.css`.
765
935
 
@@ -847,7 +1017,7 @@ function RootLayout() {
847
1017
 
848
1018
  | Prop | What it is |
849
1019
  |---|---|
850
- | `config` | An `AppConfig`: `name` (aria labels), `mark` (the wordmark), `storagePrefix` (every storage key and cookie), `publicRoutes` (exact paths a signed out visitor may load), `publicPages` (prefix patterns ending in `/*`, rendered in the public chrome), and `apiBaseURL`, which the app resolves itself (`env.VITE_API_BASE_URL ?? "https://api.example.com"`), since the package never reads `import.meta.env` |
1020
+ | `config` | An `AppConfig`: `name` (aria labels), `mark` (the wordmark), `storagePrefix` (every storage key and cookie), `publicRoutes` (exact paths a signed out visitor may load), `publicPages` (prefix patterns ending in `/*`, rendered in the public chrome), `apiBaseURL`, which the app resolves itself (`env.VITE_API_BASE_URL ?? "https://api.example.com"`), since the package never reads `import.meta.env`, and the optional `profileHref` |
851
1021
  | `nav` | The `NavItem[]` every nav surface reads, sub pages as `children`; the one place a destination is declared |
852
1022
  | `queryClient` | Optional; defaults to the shell's, whose mutation cache raises `meta.toast` |
853
1023
  | `toaster` | Optional; sonner's `Toaster` at the top right by default, `false` for none |
@@ -888,13 +1058,19 @@ The import has to come before any other rule, or it is dropped without a word: t
888
1058
  @source "../../node_modules/@atelic-action/ui/src/app";
889
1059
  ```
890
1060
 
891
- Proven on a copy of pinole-app thinned onto a packed tarball: with the line or the import, the built CSS holds every utility the shell uses; with neither, 165 of them are missing. The sheet sits outside the `atelic-ui` layer on purpose: its tokens and resets are in Tailwind's base layer and the scaffold is unlayered, as the template carried them, so the shell renders as it did.
1061
+ Proven on a copy of pinole-app thinned onto a packed tarball: with the line or the import, the built CSS holds every utility the shell uses; with neither, 165 of them are missing.
1062
+
1063
+ The light theme's words pass 4.5 to 1 on what they sit on, and `tst/app/app-contrast.test.ts` reads the sheet to hold it there (8.0.0). Two stock shadcn values fell short and moved: `--destructive` is `0 72.2% 50.6%` (`#dc2626`; 4.63 to 1 under `--destructive-foreground`, 4.83 as words on a card, 4.66 on the ground) and `--muted-foreground` is `240 3.6% 43.5%` (`#6b6b73`; 4.81 on `--muted` and `--accent`, the grey a highlighted row wears). `--color-destructive-hover` is the fill mixed 85% with black, for a destructive fill's hover and press and for destructive words on the grey while pressed, so hovering never lightens the fill under its words. The provider's sonner toaster shows rich colors, whose stock light tones read 4.25 (success), 4.34 (error), 4.35 (info), and 3.07 (warning); the sheet darkens each tone's words through sonner's own variables, on a selector one element more specific than sonner's so the load order does not matter: success `hsl(140, 100%, 24%)` 5.22, info `hsl(210, 92%, 40%)` 5.28, warning `hsl(31, 92%, 32%)` 5.52, error `hsl(360, 100%, 41%)` 5.11. The dark theme's values are shadcn's and are not yet checked. The sheet sits outside the `atelic-ui` layer on purpose: its tokens and resets are in Tailwind's base layer and the scaffold is unlayered, as the template carried them, so the shell renders as it did.
892
1064
 
893
1065
  ### The Kit
894
1066
 
895
- `@atelic-action/ui/app/ui` exports the shadcn components the template carried: `Accordion`, `Alert`, `AlertDialog`, `Avatar`, `Badge`, `BadgeList`, `Button`, `Callout`, `Card`, `Checkbox`, `ClearButton`, `Command`, `CountryDropdown`, `Dialog`, `DropdownMenu`, `Form`, `Input`, `Label`, `OptionSelect`, `Pagination`, `Popover`, `Progress`, `SearchInput`, `Select`, `Separator`, `Sheet`, `Slider`, `Switch`, `Textarea`, and `Tooltip`, each with its parts. A new kit component lands here, not in an app, and it is written by hand into `src/app/ui/` and exported from its `index.ts`: the package carries no `components.json`, because `bunx shadcn add` writes its imports through the `@/` aliases the package never uses (consumers resolve none of ours), so a component taken from the shadcn registry has its imports made relative before it lands. The main entry adds the frame and its pieces (`AppLayout`, `AppPage`, `AppPageToolbar`, `Breadcrumbs`, `SectionCards`, `ActionButton`, `FormActionButtons`, `PageSkeleton`, `PageError`, `AuthGuard`, `CardErrorBoundary`, `ErrorFallback`, `GoogleGlyph`).
1067
+ `@atelic-action/ui/app/ui` exports the shadcn components the template carried: `Accordion`, `Alert`, `AlertDialog`, `Avatar`, `Badge`, `BadgeList`, `Button`, `Callout`, `Card`, `Checkbox`, `ClearButton`, `Command`, `CountryDropdown`, `Dialog`, `DropdownMenu`, `Form`, `Input`, `Label`, `OptionSelect`, `Pagination`, `Popover`, `Progress`, `SearchInput`, `Select`, `Separator`, `Sheet`, `Slider`, `Switch`, `Textarea`, and `Tooltip`, each with its parts. A new kit component lands here, not in an app, and it is written by hand into `src/app/ui/` and exported from its `index.ts`: the package carries no `components.json`, because `bunx shadcn add` writes its imports through the `@/` aliases the package never uses (consumers resolve none of ours), so a component taken from the shadcn registry has its imports made relative before it lands. The main entry adds the frame and its pieces (`AppLayout`, `AppPage`, `AppPageToolbar`, `Breadcrumbs`, `SectionCards`, `ActionButton`, `FormActionButtons`, `PageSkeleton`, `PageError`, `AuthGuard`, `ErrorFallback`, `GoogleGlyph`).
1068
+
1069
+ **What a reader and a keyboard get (8.0.0).** `CountryDropdown` shows each country by its name alone, with nothing fetched. The dropdown's popover is named (`ariaLabel`, "Countries" by default) and its search sits above the list, never inside the listbox. Elsewhere in the kit: `Progress` reports its `value` (`aria-valuenow`) against its `max`, and with no value is indeterminate; `Slider` names each thumb, the reachable `slider`, with its own `aria-label` or `aria-labelledby` and a range's thumbs with `thumbLabels`, and draws a thumb per value; `CommandDialog` takes `title` ("Commands" by default, visually hidden unless `showTitle`) and hands focus back to what opened it; `CommandSeparator` has no role and `CommandEmpty` is one disabled option, so the list holds only options and groups; `Alert` announces only with `announce` (`"assertive"` is `role="alert"`, `"polite"` a status), and `AlertTitle` is a paragraph unless given a heading `level`; `Form` describes a field only by the description and message on the page; `Pagination` shows Previous; `SearchInput` and the toolbar's search keep focus in the box when cleared by keyboard; the `OptionSelect` and `Select` list is the trigger's width, its border inside it. In the frame: `PageSkeleton` is `aria-busy` with visually hidden words (`label`, "Loading"), its pulse stopped under reduced motion; `PageError` is an alert, announced once as it appears, so render it when the error happens; `ErrorFallback`'s details box takes focus to scroll and shrinks below a long line on a phone; a collapsed rail link is named by its label, the user menu by the name or the initials it shows, and a toolbar action by its words and its `ago` time (`ariaLabel` is for an action with no words, and keeps the time).
1070
+
1071
+ **The toolbar's notice.** `AppPageToolbar`'s `notice` sits beside the row on a desktop (1024 and up), where `.ap-tools` is one wrapping row: after the search and the actions, before the filters. Below 1024, where the toolbar stacks, it is a line of its own under the search and the actions and above the filters. It is a plain block, never a live region (Component Rule 14).
896
1072
 
897
- The app's stack is optional peer dependencies, so a marketing site installs none of it: TanStack Router and Query, Tailwind, `sonner`, `zustand`, `zod`, `react-hook-form`, `class-variance-authority`, `clsx`, `tailwind-merge`, `cmdk`, the Radix primitives the kit uses, `country-data-list`, and `react-circle-flags`, at the ranges `template-application` already pins. An app that imports the shell has them all already.
1073
+ The app's stack is optional peer dependencies, so a marketing site installs none of it: TanStack Router and Query, Tailwind, `sonner`, `zustand`, `zod`, `react-hook-form`, `class-variance-authority`, `clsx`, `tailwind-merge`, `cmdk`, the Radix primitives the kit uses, and `country-data-list`, at the ranges `template-application` already pins. An app that imports the shell has them all already.
898
1074
 
899
1075
  ### Thinning an App onto It
900
1076
 
@@ -904,7 +1080,7 @@ Delete `src/shared/`, `src/stores/authStore.ts`, `src/stores/unitsStore.ts`, and
904
1080
  |---|---|
905
1081
  | `@/shared/components/layout` and every file in it | `@atelic-action/ui/app` |
906
1082
  | `@/shared/components/ui/<name>` | `@atelic-action/ui/app/ui` |
907
- | `@/shared/components/AuthGuard`, `CardErrorBoundary`, `ErrorFallback`, `GoogleGlyph` | `@atelic-action/ui/app` |
1083
+ | `@/shared/components/AuthGuard`, `ErrorFallback`, `GoogleGlyph` | `@atelic-action/ui/app` |
908
1084
  | `@/shared/context/SidebarContext`, `@/shared/context/UserContext` | `@atelic-action/ui/app` |
909
1085
  | `@/shared/hooks/useDebounce`, `useIsDesktop`, `useWakeLock` | `@atelic-action/ui/app` |
910
1086
  | `@/shared/lib/<name>`, every file but `env` | `@atelic-action/ui/app` |
@@ -943,16 +1119,26 @@ beforeEach(() => {
943
1119
 
944
1120
  An `expiresAt` an hour out keeps the refresh path quiet; one inside five minutes sends the transport to the refresh endpoint first, through the same mocked `fetch`.
945
1121
 
946
- ## The Gallery
1122
+ ## Storybook
947
1123
 
948
- `gallery/` is two static pages. The Components shows everything the package exports that draws (the chrome, the page components, the sections, the pieces a document is built from, and the email) on its own with made up data for a fictional bakery, wearing the practice's own palette and type. It lives at [ui.atelic.me](https://ui.atelic.me), noindexed and disallowed in its `robots.txt`, since it is for the people building with the package and never search inventory. It imports the components and stylesheets from `src/` by relative path rather than from npm, so it always shows the code in the repo, and it reads the package name and version from `package.json` at build time. It sits outside `src/`, so it is never published. The second page, [ui.atelic.me/app](https://ui.atelic.me/app) (`gallery/app.html`), runs the app shell for a made up bakery's ops app, on Tailwind through `@tailwindcss/vite`, with its own stylesheet set up the way an app's `globals.css` is; the plugin leaves The Components' plain sheets as they are.
1124
+ Every component's states live as stories, and every story runs as a test in a real browser. The built Storybook is served at [ui.atelic.me](https://ui.atelic.me) for the people building with the package: `vercel.json` builds it with `bun run storybook:build` and serves `storybook-static/`, and it is never search inventory, so `stories/public/robots.txt` disallows everything and both of its heads (`.storybook/manager-head.html` and `preview-head.html`) carry `noindex`. The old `/app` and `/app.html` paths, where the app shell used to be shown, redirect to its stories.
949
1125
 
950
1126
  ```bash
951
- bun run gallery:dev # a dev server on the repo's own source
952
- bun run gallery:build # the static page, written to gallery/dist
1127
+ bun run storybook # the dev server on the repo's own source, at localhost:6006
1128
+ bun run storybook:build # the static site, written to storybook-static/ (gitignored)
1129
+ bun run test:stories # every story as a test, in headless Chromium
1130
+ bun run test:run # the unit tests in tst/, on jsdom, as before
953
1131
  ```
954
1132
 
955
- `vercel.json` builds it the same way and serves `gallery/dist`. Typecheck and lint cover it, and CI builds it, so a component change that breaks the gallery fails CI. **A new component gets a gallery section in the same change**, with each of its meaningfully different forms shown. `gallery/parts.tsx` holds the frame pieces (`Piece`, `Example`, and `Frame`, which holds a fixed piece inside the page), and a group of pieces lives in a file of its own beside `Gallery.tsx` (`chrome.tsx`, `artifact.tsx`, `email.tsx`), mounted there with one element. The composed documents are shown by `@atelic-action/artifact`, through its own stubs.
1133
+ The stories live in `stories/`, outside `src/`, one file per component in a folder mirroring it (`stories/chrome/SiteHeader.stories.tsx`), and import the components from `src/` by relative path, so they always show the code in the repo. The configuration is `.storybook/`. Neither publishes: the package's `files` names `src`, `dist`, and `bin` alone. **[stories/README.md](stories/README.md) is how a story is written**: the names, the states a component needs, what a `play` function covers, how a bug a story exposes is marked and logged (one findings file per writer group, in `stories/findings/`), which files each group of writers owns, the components still owed, and the fixtures.
1134
+
1135
+ **The test run.** `vitest.config.ts` holds two projects. `unit` is the jsdom suite in `tst/`, unchanged, and `bun run test:run` runs it alone. `storybook` runs every story through `@storybook/addon-vitest` in Vitest's browser mode on Playwright's Chromium, headless: the story renders, its `play` function runs, and axe checks the page after it, failing the story on any violation (`a11y: { test: "error" }`). A story pins its width (`phone` 390, `tablet` 820, `desktop` 1280, `narrowDesktop` 1180, `smallDesktop` 900) and the run sizes the page to it, so layout is asserted as geometry. A marker for a known bug fails the run the day the bug is gone, accessibility markers included ([stories/README.md](stories/README.md#accessibility-and-bugs)). Playwright's Chromium is installed once per machine with `bunx playwright install chromium`; CI installs it with its system libraries and caches it.
1136
+
1137
+ **The frame.** A story is mounted the way its consumer mounts the component, chosen by the first segment of its title. Site pieces render inside a `.atelic-ui` root with every package sheet in a site's import order and the practice's theme last (`.storybook/theme.css`). `App/` stories run inside `AppProvider` with a fixture app under a memory router, with the shell's Tailwind sheet mounted only while the story shows, so its reset never reaches a site story. `Email/` stories render their rows in the email theme on a 680 column, with no sheet at all.
1138
+
1139
+ **The layer order.** `.storybook/preview-head.html` names the layers before any sheet loads (`properties, theme, base, atelic-ui, components, utilities`), the line an app's `index.html` carries, since Storybook injects sheets in whatever order its modules load. `stories/foundations/CascadeLayers.stories.tsx` proves it: the package outranks Tailwind's reset loaded after it, an app's utilities outrank the package, and an unlayered rule wins with less specificity.
1140
+
1141
+ **The toolbar.** Density sets `data-density` on the story's root (default, compact, comfortable; see [Density](#density)), and the viewport menu offers the same widths the tests pin.
956
1142
 
957
1143
  ## Releasing
958
1144