@atelic-action/ui 7.2.0 → 8.1.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 (131) hide show
  1. package/README.md +439 -132
  2. package/bin/atelic-check-sentry.ts +5 -0
  3. package/dist/gate/middleware.js +15 -1
  4. package/dist/monitoring/server.d.ts +72 -0
  5. package/dist/monitoring/server.js +201 -0
  6. package/dist/vite/index.d.ts +1 -1
  7. package/dist/vite/index.js +1 -1
  8. package/dist/vite/marketing-config.d.ts +28 -1
  9. package/dist/vite/marketing-config.js +62 -0
  10. package/package.json +23 -11
  11. package/src/app/ErrorFallback.tsx +6 -2
  12. package/src/app/context/AppContext.tsx +10 -1
  13. package/src/app/index.ts +0 -1
  14. package/src/app/layout/AppPage.tsx +36 -7
  15. package/src/app/layout/DesktopRail.tsx +15 -6
  16. package/src/app/layout/MobileMenu.tsx +14 -5
  17. package/src/app/layout/MobileTabBar.tsx +3 -2
  18. package/src/app/layout/PageError.tsx +7 -4
  19. package/src/app/layout/PageSkeleton.tsx +33 -26
  20. package/src/app/layout/SectionCards.tsx +7 -2
  21. package/src/app/layout/UserMenu.tsx +13 -7
  22. package/src/app/ui/alert.tsx +42 -12
  23. package/src/app/ui/badge.tsx +1 -1
  24. package/src/app/ui/button.tsx +2 -1
  25. package/src/app/ui/command.tsx +86 -21
  26. package/src/app/ui/country-dropdown.tsx +26 -47
  27. package/src/app/ui/form.tsx +48 -9
  28. package/src/app/ui/pagination.tsx +1 -1
  29. package/src/app/ui/progress.tsx +26 -12
  30. package/src/app/ui/search-input.tsx +16 -3
  31. package/src/app/ui/select.tsx +8 -3
  32. package/src/app/ui/slider.tsx +62 -15
  33. package/src/artifact/AppErrorBoundary.tsx +12 -7
  34. package/src/artifact/ArtifactShell.tsx +5 -1
  35. package/src/artifact/ErrorFallback.tsx +8 -1
  36. package/src/artifact/artifactConfig.ts +1 -1
  37. package/src/chrome/BrandLockup.tsx +102 -17
  38. package/src/chrome/ClosingBar.tsx +5 -3
  39. package/src/chrome/ContactDock.tsx +361 -0
  40. package/src/chrome/Footer.tsx +126 -31
  41. package/src/chrome/NavBadge.tsx +8 -0
  42. package/src/chrome/NavMegaPanel.tsx +399 -0
  43. package/src/chrome/SiteHeader.tsx +268 -23
  44. package/src/chrome/SiteMenu.tsx +200 -19
  45. package/src/chrome/SiteShell.tsx +151 -14
  46. package/src/chrome/StickyCTABar.tsx +60 -2
  47. package/src/chrome/brandMark.ts +56 -0
  48. package/src/chrome/icons.ts +58 -0
  49. package/src/chrome/index.ts +16 -0
  50. package/src/chrome/navSections.ts +55 -0
  51. package/src/components/ColumnChart.tsx +27 -2
  52. package/src/components/DataTable.tsx +104 -85
  53. package/src/components/Disclosure.tsx +3 -1
  54. package/src/components/Hint.tsx +3 -24
  55. package/src/components/NotFound.tsx +7 -3
  56. package/src/components/StarRating.tsx +45 -19
  57. package/src/components/ThresholdScale.tsx +36 -26
  58. package/src/email/atoms.tsx +13 -57
  59. package/src/email/frame.tsx +4 -6
  60. package/src/email/index.ts +4 -10
  61. package/src/email/scoreboard.tsx +107 -186
  62. package/src/email/text.ts +30 -0
  63. package/src/email/theme.tsx +76 -9
  64. package/src/gate/middleware.ts +15 -1
  65. package/src/hooks/useDismiss.ts +39 -0
  66. package/src/lib/emailText.tsx +26 -0
  67. package/src/lib/phoneText.tsx +40 -0
  68. package/src/lib/useScrollsSideways.ts +26 -0
  69. package/src/monitoring/ErrorCatcherScript.tsx +15 -0
  70. package/src/monitoring/catcher.ts +118 -0
  71. package/src/monitoring/index.ts +25 -0
  72. package/src/monitoring/sdk.ts +112 -0
  73. package/src/monitoring/server.ts +244 -0
  74. package/src/monitoring/start.ts +118 -0
  75. package/src/primitives/Button.tsx +5 -1
  76. package/src/primitives/Eyebrow.tsx +6 -2
  77. package/src/primitives/ProseBlocks.tsx +6 -1
  78. package/src/primitives/SectionHeading.tsx +3 -1
  79. package/src/primitives/StarRow.tsx +23 -8
  80. package/src/routing/index.ts +1 -0
  81. package/src/routing/miss.ts +32 -0
  82. package/src/scripts/check-sentry.ts +77 -0
  83. package/src/sections/BlogIndex.tsx +17 -3
  84. package/src/sections/BlogPost.tsx +10 -1
  85. package/src/sections/CTASection.tsx +2 -2
  86. package/src/sections/CalloutPanel.tsx +34 -0
  87. package/src/sections/ComparisonTable.tsx +23 -2
  88. package/src/sections/ContactForm.tsx +61 -17
  89. package/src/sections/FAQBrowser.tsx +11 -2
  90. package/src/sections/FeatureGrid.tsx +6 -2
  91. package/src/sections/FullBleedVideo.tsx +167 -0
  92. package/src/sections/Gallery.tsx +6 -4
  93. package/src/sections/Hero.tsx +70 -39
  94. package/src/sections/JumpRail.tsx +7 -0
  95. package/src/sections/LegalPage.tsx +10 -2
  96. package/src/sections/LinkColumns.tsx +80 -0
  97. package/src/sections/LocationSection.tsx +28 -5
  98. package/src/sections/Locations.tsx +18 -5
  99. package/src/sections/LogoMarquee.tsx +43 -11
  100. package/src/sections/MapEmbed.tsx +13 -9
  101. package/src/sections/PageHero.tsx +16 -2
  102. package/src/sections/ProcessSteps.tsx +27 -4
  103. package/src/sections/ProfileCards.tsx +12 -2
  104. package/src/sections/ProofStrip.tsx +44 -0
  105. package/src/sections/RevealSlider.tsx +28 -7
  106. package/src/sections/ReviewCarousel.tsx +17 -4
  107. package/src/sections/ReviewWall.tsx +2 -2
  108. package/src/sections/SplitSection.tsx +2 -1
  109. package/src/sections/index.ts +15 -6
  110. package/src/sections/siteConfig.ts +101 -8
  111. package/src/styles/app.css +33 -2
  112. package/src/styles/artifact.css +20 -8
  113. package/src/styles/base.css +68 -13
  114. package/src/styles/chrome.css +1134 -56
  115. package/src/styles/components.css +104 -65
  116. package/src/styles/defaults.css +140 -0
  117. package/src/styles/gate.css +21 -10
  118. package/src/styles/primitives.css +108 -39
  119. package/src/styles/sections.css +500 -437
  120. package/src/styles/star-rating.css +1 -4
  121. package/src/tokens/palettes.ts +24 -4
  122. package/src/types.ts +220 -3
  123. package/src/vite/index.ts +4 -0
  124. package/src/vite/marketing-config.ts +81 -1
  125. package/src/app/CardErrorBoundary.tsx +0 -39
  126. package/src/sections/CTABanner.tsx +0 -93
  127. package/src/sections/DeviceShowcase.tsx +0 -39
  128. package/src/sections/MediaBand.tsx +0 -20
  129. package/src/sections/MenuList.tsx +0 -44
  130. package/src/sections/PressQuotes.tsx +0 -51
  131. package/src/sections/SocialStrip.tsx +0 -83
@@ -1,3 +1,4 @@
1
+ @import "./defaults.css";
1
2
  /* The primitives under src/primitives: the button, the chip, the bubble, the
2
3
  eyebrow, the lead paragraph, and the section heading. Every value is a theme token.
3
4
  They sit in the package's layer like every sheet here, so any rule a site
@@ -10,7 +11,7 @@
10
11
  justify-content: center;
11
12
  gap: 0.6em;
12
13
  padding: 0.95em 1.6em;
13
- font-weight: 700;
14
+ font-weight: var(--weight-bold);
14
15
  font-size: 1rem;
15
16
  letter-spacing: -0.01em;
16
17
  border-radius: var(--radius-pill);
@@ -21,26 +22,51 @@
21
22
  color 0.2s ease;
22
23
  text-align: center;
23
24
  line-height: 1;
25
+ /* A label keeps its words whole in a crowded row: break-word, unlike
26
+ the root's anywhere (defaults.css, Long words), leaves the button's
27
+ minimum width at its longest word, so a row of buttons wraps a
28
+ button to the next line rather than squeezing one letter by letter.
29
+ A button wider than its whole line still breaks. */
30
+ overflow-wrap: break-word;
24
31
  }
25
32
  .atelic-ui .btn:active {
26
33
  transform: translateY(1px) scale(0.99);
27
34
  }
35
+ /* The fill behind the words is --primary-fill, and the hover and the
36
+ press darken whatever the fill is, so they stay apart from the rest
37
+ state even on a theme whose fill is its old hover shade. */
28
38
  .atelic-ui .btn-primary {
29
- background: var(--primary);
30
- color: #fff;
39
+ background: var(--primary-fill, var(--primary));
40
+ color: var(--on-primary);
31
41
  box-shadow: var(--primary-shadow);
32
42
  }
33
43
  .atelic-ui .btn-primary:hover {
34
- background: var(--primary-deep);
44
+ background: color-mix(in srgb, var(--primary-fill, var(--primary)) 84%, var(--shade));
35
45
  box-shadow: var(--primary-shadow-hover);
36
46
  transform: translateY(-1px);
37
47
  }
48
+ .atelic-ui .btn-primary:active {
49
+ background: color-mix(in srgb, var(--primary-fill, var(--primary)) 74%, var(--shade));
50
+ }
51
+ /* On the primary field (a split hero's copy, a callout panel, a menu's
52
+ feature card) the primary button would vanish into the band, so it
53
+ turns to the page surface with primary words. The class is the band's,
54
+ so a site's own band takes the same fix by wearing it. */
55
+ .atelic-ui .on-primary .btn-primary {
56
+ background: var(--surface);
57
+ color: var(--primary-ink, var(--primary));
58
+ box-shadow: none;
59
+ }
60
+ .atelic-ui .on-primary .btn-primary:hover {
61
+ background: color-mix(in srgb, var(--surface) 86%, var(--primary));
62
+ box-shadow: none;
63
+ }
38
64
  .atelic-ui .btn-dark {
39
65
  background: var(--ink);
40
66
  color: var(--surface);
41
67
  }
42
68
  .atelic-ui .btn-dark:hover {
43
- background: #000;
69
+ background: var(--shade);
44
70
  transform: translateY(-1px);
45
71
  }
46
72
  .atelic-ui .btn-ghost {
@@ -52,12 +78,12 @@
52
78
  box-shadow: inset 0 0 0 1.5px var(--ink);
53
79
  }
54
80
  .atelic-ui .btn-ghost.on-dark {
55
- color: #fff;
56
- box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
81
+ color: var(--on-dark);
82
+ box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on-dark) 45%, transparent);
57
83
  }
58
84
  .atelic-ui .btn-ghost.on-dark:hover {
59
- box-shadow: inset 0 0 0 1.5px #fff;
60
- background: rgba(255, 255, 255, 0.08);
85
+ box-shadow: inset 0 0 0 1.5px var(--on-dark);
86
+ background: color-mix(in srgb, var(--on-dark) 8%, transparent);
61
87
  }
62
88
  .atelic-ui .btn-lg {
63
89
  padding: 1.1em 2em;
@@ -84,7 +110,12 @@
84
110
  background: var(--card);
85
111
  color: var(--ink-soft);
86
112
  box-shadow: inset 0 0 0 1px var(--neutral-200);
87
- white-space: nowrap;
113
+ /* A chip stays one line wherever it fits, since a chip row and an
114
+ inline chip both move a chip whole to the next line first. Only a
115
+ label longer than its column wraps, inside the pill, so every word
116
+ stays on the page; it was nowrap and ran a phone sideways. */
117
+ max-width: 100%;
118
+ min-width: 0;
88
119
  }
89
120
  .atelic-ui .chip .dot {
90
121
  width: 6px;
@@ -96,9 +127,9 @@
96
127
  flex: none;
97
128
  }
98
129
  .atelic-ui .chip.on-dark {
99
- background: rgba(255, 255, 255, 0.08);
100
- color: #efe7da;
101
- box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
130
+ background: color-mix(in srgb, var(--on-dark) 8%, transparent);
131
+ color: var(--on-dark-chip);
132
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-dark) 18%, transparent);
102
133
  }
103
134
 
104
135
  /* Bubble: a round tile holding an icon or a step number, set beside a
@@ -126,13 +157,13 @@
126
157
  .atelic-ui .bubble-num {
127
158
  font-family: var(--font-mono);
128
159
  font-size: 0.8rem;
129
- font-weight: 600;
160
+ font-weight: var(--weight-semibold);
130
161
  letter-spacing: 0.1em;
131
162
  /* The tracking trails the last glyph; the same lead on the left keeps
132
163
  the number optically centered in the circle. */
133
164
  padding-left: 0.1em;
134
165
  line-height: 1;
135
- color: var(--primary);
166
+ color: var(--primary-ink, var(--primary));
136
167
  }
137
168
  /* The badge: a small filled pill on the lower right rim, ringed in the
138
169
  card color so it sits clean over the circle's edge. */
@@ -147,12 +178,12 @@
147
178
  height: 1.9em;
148
179
  padding: 0 0.4em;
149
180
  border-radius: var(--radius-pill);
150
- background: var(--primary);
151
- color: #fff;
181
+ background: var(--primary-fill, var(--primary));
182
+ color: var(--on-primary);
152
183
  box-shadow: 0 0 0 2px var(--card);
153
184
  font-family: var(--font-mono);
154
185
  font-size: 0.62rem;
155
- font-weight: 700;
186
+ font-weight: var(--weight-bold);
156
187
  letter-spacing: 0.04em;
157
188
  line-height: 1;
158
189
  }
@@ -181,9 +212,9 @@
181
212
  font-size: 0.72rem;
182
213
  }
183
214
  .atelic-ui .bubble.on-dark {
184
- background: rgba(255, 255, 255, 0.08);
215
+ background: color-mix(in srgb, var(--on-dark) 8%, transparent);
185
216
  border-color: transparent;
186
- box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
217
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-dark) 18%, transparent);
187
218
  color: var(--primary-bright);
188
219
  }
189
220
  .atelic-ui .bubble.on-dark .bubble-num {
@@ -200,25 +231,43 @@
200
231
  .atelic-ui .eyebrow {
201
232
  font-family: var(--font-mono);
202
233
  font-size: 0.74rem;
203
- font-weight: 500;
234
+ font-weight: var(--weight-medium);
204
235
  letter-spacing: 0.18em;
205
236
  text-transform: uppercase;
206
- color: var(--primary);
207
- display: inline-flex;
208
- align-items: center;
209
- gap: 0.6em;
237
+ color: var(--primary-ink, var(--primary));
238
+ /* Inline, so the rule follows the last line of a kicker that wraps
239
+ (a phone's narrow hero) rather than standing apart beside the whole
240
+ block, as a flex row set it. */
241
+ display: inline-block;
210
242
  }
211
243
  .atelic-ui .eyebrow.on-dark {
212
244
  color: var(--primary-bright);
213
245
  }
214
246
  .atelic-ui .eyebrow.center {
215
- justify-content: center;
247
+ text-align: center;
248
+ }
249
+ /* On the primary field the primary colored kicker would vanish, and so
250
+ would a serif accent in a heading. Words on the fill take --on-primary
251
+ whole: the fill leaves too little room over 4.5 to 1 for a softened
252
+ mix of it to stay readable. */
253
+ .atelic-ui .on-primary .eyebrow {
254
+ color: var(--on-primary);
255
+ }
256
+ .atelic-ui .on-primary :is(h1, h2) .serif,
257
+ .atelic-ui .on-primary em.serif {
258
+ color: var(--on-primary);
259
+ }
260
+ /* An eyebrow drawn without its trailing rule (Eyebrow rule={false}). */
261
+ .atelic-ui .eyebrow.no-rule::after {
262
+ display: none;
216
263
  }
217
264
  .atelic-ui .eyebrow::after {
218
265
  content: "";
219
266
  width: 40px;
220
267
  height: 2px;
221
268
  display: inline-block;
269
+ vertical-align: middle;
270
+ margin-left: 0.6em;
222
271
  /* Themes with a dedicated ruling accent (a brand color reserved for
223
272
  rules, never text) set --rule-accent; default stays the text color. */
224
273
  background: linear-gradient(90deg, var(--rule-accent, currentColor), transparent);
@@ -243,6 +292,15 @@
243
292
  margin-top: 16px;
244
293
  max-width: 60ch;
245
294
  }
295
+ /* On a dark band the whole heading lifts, not only the eyebrow: the
296
+ title to --on-dark, so a site's colored heading rule cannot sink it, and
297
+ the lead to the band's quiet words (--ink-soft read 2.26 to 1 there). */
298
+ .atelic-ui .section-head.on-dark > :is(h1, h2, h3) {
299
+ color: var(--on-dark);
300
+ }
301
+ .atelic-ui .section-head.on-dark .section-head-lead {
302
+ color: var(--on-dark-quiet);
303
+ }
246
304
  }
247
305
 
248
306
  /* The five primitives that came from template-marketing in 0.19.0 (ATE-643):
@@ -279,21 +337,23 @@
279
337
  background:
280
338
  repeating-linear-gradient(
281
339
  135deg,
282
- rgba(138, 124, 104, 0.1) 0 10px,
283
- rgba(138, 124, 104, 0.04) 10px 20px
340
+ color-mix(in srgb, var(--placeholder-ink) 10%, transparent) 0 10px,
341
+ color-mix(in srgb, var(--placeholder-ink) 4%, transparent) 10px 20px
284
342
  ),
285
343
  var(--surface-inset);
286
344
  display: flex;
287
345
  align-items: center;
288
346
  justify-content: center;
289
- color: var(--neutral-600);
347
+ /* Soft words on the inset well read --ink-inset, which a theme may
348
+ set; --neutral-600 read 4.4 to 1 there on the practice's palette. */
349
+ color: var(--ink-inset, var(--ink-soft));
290
350
  font-family: var(--font-mono);
291
351
  font-size: 0.8rem;
292
352
  letter-spacing: 0.08em;
293
353
  text-transform: uppercase;
294
354
  text-align: center;
295
355
  padding: 20px;
296
- box-shadow: inset 0 0 0 1px rgba(138, 124, 104, 0.2);
356
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--placeholder-ink) 20%, transparent);
297
357
  }
298
358
 
299
359
  /* ---- ProseBlocks (prose-blocks.css) ---- */
@@ -391,10 +451,14 @@
391
451
  padding: 22px 10px 0;
392
452
  border-bottom: 8px solid transparent;
393
453
  border-radius: 0 0 12px 12px;
394
- background: linear-gradient(to top, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0));
395
- color: #fff;
454
+ background: linear-gradient(
455
+ to top,
456
+ color-mix(in srgb, var(--shade) 62%, transparent),
457
+ transparent
458
+ );
459
+ color: var(--on-dark);
396
460
  font-size: 0.78rem;
397
- font-weight: 600;
461
+ font-weight: var(--weight-semibold);
398
462
  line-height: 1.3;
399
463
  display: -webkit-box;
400
464
  -webkit-box-orient: vertical;
@@ -420,8 +484,11 @@
420
484
  overflow: hidden;
421
485
  }
422
486
 
487
+ /* A ::backdrop inherits no custom property before Safari 17.4 and Chrome
488
+ 122, so the shade falls back to the one defaults.css gives the backdrop
489
+ itself, and the page behind is shaded either way. */
423
490
  .atelic-ui .pb-lightbox::backdrop {
424
- background: rgb(0 0 0 / 0.72);
491
+ background: color-mix(in srgb, var(--shade, var(--backdrop-shade)) 72%, transparent);
425
492
  }
426
493
 
427
494
  .atelic-ui .pb-lightbox img,
@@ -455,14 +522,14 @@
455
522
  margin: 10px 0 0;
456
523
  text-align: center;
457
524
  font-size: 0.9rem;
458
- color: var(--neutral-700);
525
+ color: var(--neutral-700, var(--ink));
459
526
  }
460
527
 
461
528
  .atelic-ui .pb-body {
462
529
  margin: 0 0 16px;
463
530
  font-size: 1rem;
464
531
  line-height: 1.75;
465
- color: var(--neutral-700);
532
+ color: var(--neutral-700, var(--ink));
466
533
  }
467
534
 
468
535
  /* The base reset strips list markers site wide, which suits nav and card
@@ -472,7 +539,7 @@
472
539
  margin: 0 0 16px;
473
540
  padding-left: 22px;
474
541
  list-style: disc outside;
475
- color: var(--neutral-700);
542
+ color: var(--neutral-700, var(--ink));
476
543
  }
477
544
 
478
545
  .atelic-ui .pb-list li {
@@ -482,10 +549,12 @@
482
549
  }
483
550
 
484
551
  /* Ported prose carries long unbroken strings (URLs, citations, defined terms
485
- in caps) that would otherwise push the column past the viewport on a phone. */
552
+ in caps) that would otherwise push the column past the viewport on a phone.
553
+ anywhere, as on the root (defaults.css, Long words), so a prose block set in a
554
+ flex or grid track breaks them too. */
486
555
  .atelic-ui .pb-body,
487
556
  .atelic-ui .pb-list li {
488
- overflow-wrap: break-word;
557
+ overflow-wrap: anywhere;
489
558
  }
490
559
 
491
560
  /* ---- QuoteCard (quote-card.css) ---- */