@atelic-action/ui 7.2.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 +312 -126
  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 +5 -1
  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 +5 -3
  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 +935 -47
  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
@@ -1,3 +1,4 @@
1
+ @import "./defaults.css";
1
2
  /* =================================================================
2
3
  @atelic-action/ui BASE: the few unscoped resets, then the canvas,
3
4
  typography, and layout helpers, scoped to .atelic-ui. The class is the
@@ -36,6 +37,30 @@
36
37
  body:has(.atelic-ui) {
37
38
  overflow-x: hidden;
38
39
  }
40
+ /* ---- Density ----
41
+ How much room a section leaves above and below itself, one setting for
42
+ the whole page on the root's data-density (SiteShell's density, from
43
+ the site config). --section-space pads every section band, and the
44
+ in between steps are multiples of it; --block-gap is the space between
45
+ a section's heading and the grid under it; --card-min is the least a
46
+ feature card stands. The default is the trades site rhythm; comfortable
47
+ is the roomier spacing every site had before 8.0.0. A site that wants
48
+ its own value sets the property on .atelic-ui, outside the layer. */
49
+ .atelic-ui {
50
+ --section-space: clamp(36px, 4.6vw, 64px);
51
+ --block-gap: 28px;
52
+ --card-min: 0px;
53
+ }
54
+ .atelic-ui[data-density="comfortable"] {
55
+ --section-space: clamp(56px, 9vw, 120px);
56
+ --block-gap: 44px;
57
+ --card-min: 240px;
58
+ }
59
+ .atelic-ui[data-density="compact"] {
60
+ --section-space: clamp(24px, 3.2vw, 44px);
61
+ --block-gap: 20px;
62
+ --card-min: 0px;
63
+ }
39
64
  .atelic-ui {
40
65
  font-family: var(--font-sans);
41
66
  background: var(--surface);
@@ -45,6 +70,8 @@
45
70
  -webkit-font-smoothing: antialiased;
46
71
  text-rendering: optimizeLegibility;
47
72
  }
73
+ /* Long words break on the root by defaults.css (Long words), which every
74
+ layered sheet imports first. */
48
75
  .atelic-ui a {
49
76
  color: inherit;
50
77
  text-decoration: none;
@@ -78,7 +105,7 @@
78
105
  their theme; without it, headings share the body family. */
79
106
  font-family: var(--font-heading, var(--font-sans));
80
107
  line-height: 1.04;
81
- font-weight: 800;
108
+ font-weight: var(--weight-heavy);
82
109
  letter-spacing: -0.02em;
83
110
  text-wrap: balance;
84
111
  margin: 0;
@@ -95,7 +122,7 @@
95
122
  }
96
123
  .atelic-ui h4 {
97
124
  font-size: 1.15rem;
98
- font-weight: 700;
125
+ font-weight: var(--weight-bold);
99
126
  letter-spacing: -0.01em;
100
127
  }
101
128
  .atelic-ui p {
@@ -106,16 +133,17 @@
106
133
  .atelic-ui .serif-em {
107
134
  font-family: var(--font-serif);
108
135
  font-style: italic;
109
- font-weight: 400;
136
+ font-weight: var(--weight-regular);
110
137
  letter-spacing: -0.01em;
111
- color: var(--primary);
138
+ color: var(--primary-ink, var(--primary));
112
139
  }
113
140
  /* Serif accent words in headings carry the brand accent color (the
114
141
  wordmark's signature), so the italic word reads as the highlight it is.
115
- A page on a dark surface lifts its own to the bright primary. */
142
+ They are words on the page surface, so they read --primary-ink. A page
143
+ on a dark surface lifts its own to the bright primary. */
116
144
  .atelic-ui h1 .serif,
117
145
  .atelic-ui h2 .serif {
118
- color: var(--primary);
146
+ color: var(--primary-ink, var(--primary));
119
147
  }
120
148
 
121
149
  /* ---- Layout helpers ---- */
@@ -126,25 +154,26 @@
126
154
  padding-inline: var(--gutter);
127
155
  }
128
156
  .atelic-ui .section {
129
- padding-block: clamp(56px, 9vw, 120px);
157
+ padding-block: var(--section-space);
130
158
  }
131
159
  /* A middle step, for a page whose alternating bands do the separating and
132
- whose default rhythm reads too airy as a result. */
160
+ whose default rhythm reads too airy as a result. The two steps keep
161
+ their old proportion to the section (84 and 72 of 120). */
133
162
  .atelic-ui .section-md {
134
- padding-block: clamp(44px, 6.5vw, 84px);
163
+ padding-block: calc(var(--section-space) * 0.7);
135
164
  }
136
165
  .atelic-ui .section-sm {
137
- padding-block: clamp(40px, 6vw, 72px);
166
+ padding-block: calc(var(--section-space) * 0.6);
138
167
  }
139
168
  /* Section band modifiers, global because routes across chunks use them. */
140
169
  .atelic-ui .section.surface-alt {
141
170
  background: var(--surface-alt);
142
171
  }
143
172
  .atelic-ui .section.tight-top {
144
- padding-top: clamp(20px, 3vw, 40px);
173
+ padding-top: calc(var(--section-space) / 3);
145
174
  }
146
175
  .atelic-ui .section.tight-bottom {
147
- padding-bottom: clamp(20px, 3vw, 40px);
176
+ padding-bottom: calc(var(--section-space) / 3);
148
177
  }
149
178
  .atelic-ui .stack-sm > * + * {
150
179
  margin-top: 0.75rem;
@@ -217,7 +246,7 @@
217
246
  padding-bottom: 1px;
218
247
  }
219
248
  .atelic-ui .prose p a:not(.btn):hover {
220
- color: var(--primary);
249
+ color: var(--primary-ink, var(--primary));
221
250
  border-color: var(--primary);
222
251
  }
223
252
  }