@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.
- package/README.md +313 -127
- package/package.json +14 -10
- package/src/app/ErrorFallback.tsx +6 -2
- package/src/app/context/AppContext.tsx +10 -1
- package/src/app/index.ts +0 -1
- package/src/app/layout/AppPage.tsx +36 -7
- package/src/app/layout/DesktopRail.tsx +9 -2
- package/src/app/layout/MobileMenu.tsx +5 -1
- package/src/app/layout/PageError.tsx +6 -3
- package/src/app/layout/PageSkeleton.tsx +33 -26
- package/src/app/layout/UserMenu.tsx +12 -6
- package/src/app/ui/alert.tsx +41 -11
- package/src/app/ui/badge.tsx +1 -1
- package/src/app/ui/button.tsx +2 -1
- package/src/app/ui/command.tsx +86 -21
- package/src/app/ui/country-dropdown.tsx +26 -47
- package/src/app/ui/form.tsx +46 -7
- package/src/app/ui/pagination.tsx +1 -1
- package/src/app/ui/progress.tsx +26 -12
- package/src/app/ui/search-input.tsx +16 -3
- package/src/app/ui/select.tsx +8 -3
- package/src/app/ui/slider.tsx +62 -15
- package/src/artifact/ArtifactShell.tsx +8 -3
- package/src/artifact/ErrorFallback.tsx +8 -1
- package/src/artifact/artifactConfig.ts +1 -1
- package/src/chrome/BrandLockup.tsx +71 -16
- package/src/chrome/ClosingBar.tsx +8 -5
- package/src/chrome/ContactDock.tsx +329 -0
- package/src/chrome/Footer.tsx +32 -9
- package/src/chrome/NavBadge.tsx +8 -0
- package/src/chrome/NavMegaPanel.tsx +388 -0
- package/src/chrome/SiteHeader.tsx +235 -18
- package/src/chrome/SiteMenu.tsx +197 -19
- package/src/chrome/SiteShell.tsx +130 -13
- package/src/chrome/StickyCTABar.tsx +56 -2
- package/src/chrome/brandMark.ts +56 -0
- package/src/chrome/icons.ts +58 -0
- package/src/chrome/index.ts +16 -0
- package/src/chrome/navSections.ts +55 -0
- package/src/components/ColumnChart.tsx +27 -2
- package/src/components/DataTable.tsx +104 -85
- package/src/components/Disclosure.tsx +3 -1
- package/src/components/Hint.tsx +3 -24
- package/src/components/NotFound.tsx +4 -1
- package/src/components/StarRating.tsx +45 -19
- package/src/components/ThresholdScale.tsx +36 -26
- package/src/email/atoms.tsx +13 -57
- package/src/email/frame.tsx +4 -6
- package/src/email/index.ts +4 -10
- package/src/email/scoreboard.tsx +107 -186
- package/src/email/text.ts +30 -0
- package/src/email/theme.tsx +76 -9
- package/src/hooks/useDismiss.ts +39 -0
- package/src/lib/useScrollsSideways.ts +26 -0
- package/src/primitives/Button.tsx +2 -0
- package/src/primitives/ProseBlocks.tsx +6 -1
- package/src/primitives/SectionHeading.tsx +3 -1
- package/src/primitives/StarRow.tsx +23 -8
- package/src/sections/BlogIndex.tsx +17 -3
- package/src/sections/BlogPost.tsx +10 -1
- package/src/sections/CTASection.tsx +2 -2
- package/src/sections/CalloutPanel.tsx +34 -0
- package/src/sections/ComparisonTable.tsx +23 -2
- package/src/sections/ContactForm.tsx +61 -17
- package/src/sections/FAQBrowser.tsx +11 -2
- package/src/sections/FeatureGrid.tsx +6 -2
- package/src/sections/FullBleedVideo.tsx +158 -0
- package/src/sections/Gallery.tsx +6 -4
- package/src/sections/Hero.tsx +63 -39
- package/src/sections/JumpRail.tsx +7 -0
- package/src/sections/LegalPage.tsx +10 -2
- package/src/sections/LinkColumns.tsx +64 -0
- package/src/sections/LocationSection.tsx +28 -5
- package/src/sections/Locations.tsx +17 -4
- package/src/sections/LogoMarquee.tsx +43 -11
- package/src/sections/MapEmbed.tsx +13 -9
- package/src/sections/PageHero.tsx +16 -2
- package/src/sections/ProcessSteps.tsx +27 -4
- package/src/sections/ProfileCards.tsx +12 -2
- package/src/sections/ProofStrip.tsx +44 -0
- package/src/sections/RevealSlider.tsx +28 -7
- package/src/sections/ReviewCarousel.tsx +17 -4
- package/src/sections/ReviewWall.tsx +2 -2
- package/src/sections/SplitSection.tsx +2 -1
- package/src/sections/index.ts +15 -6
- package/src/sections/siteConfig.ts +66 -3
- package/src/styles/app.css +24 -2
- package/src/styles/artifact.css +20 -8
- package/src/styles/base.css +42 -13
- package/src/styles/chrome.css +938 -48
- package/src/styles/components.css +104 -65
- package/src/styles/defaults.css +137 -0
- package/src/styles/gate.css +21 -10
- package/src/styles/primitives.css +97 -35
- package/src/styles/sections.css +477 -437
- package/src/styles/star-rating.css +1 -4
- package/src/tokens/palettes.ts +24 -4
- package/src/types.ts +212 -2
- package/src/app/CardErrorBoundary.tsx +0 -39
- package/src/sections/CTABanner.tsx +0 -93
- package/src/sections/DeviceShowcase.tsx +0 -39
- package/src/sections/MediaBand.tsx +0 -20
- package/src/sections/MenuList.tsx +0 -44
- package/src/sections/PressQuotes.tsx +0 -51
- 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:
|
|
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:
|
|
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-
|
|
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:
|
|
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:
|
|
56
|
-
box-shadow: inset 0 0 0 1.5px
|
|
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
|
|
60
|
-
background:
|
|
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
|
-
|
|
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:
|
|
100
|
-
color:
|
|
101
|
-
box-shadow: inset 0 0 0 1px
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
215
|
+
background: color-mix(in srgb, var(--on-dark) 8%, transparent);
|
|
185
216
|
border-color: transparent;
|
|
186
|
-
box-shadow: inset 0 0 0 1px
|
|
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,10 +231,10 @@
|
|
|
200
231
|
.atelic-ui .eyebrow {
|
|
201
232
|
font-family: var(--font-mono);
|
|
202
233
|
font-size: 0.74rem;
|
|
203
|
-
font-weight:
|
|
234
|
+
font-weight: var(--weight-medium);
|
|
204
235
|
letter-spacing: 0.18em;
|
|
205
236
|
text-transform: uppercase;
|
|
206
|
-
color: var(--primary);
|
|
237
|
+
color: var(--primary-ink, var(--primary));
|
|
207
238
|
display: inline-flex;
|
|
208
239
|
align-items: center;
|
|
209
240
|
gap: 0.6em;
|
|
@@ -214,6 +245,17 @@
|
|
|
214
245
|
.atelic-ui .eyebrow.center {
|
|
215
246
|
justify-content: center;
|
|
216
247
|
}
|
|
248
|
+
/* On the primary field the primary colored kicker would vanish, and so
|
|
249
|
+
would a serif accent in a heading. Words on the fill take --on-primary
|
|
250
|
+
whole: the fill leaves too little room over 4.5 to 1 for a softened
|
|
251
|
+
mix of it to stay readable. */
|
|
252
|
+
.atelic-ui .on-primary .eyebrow {
|
|
253
|
+
color: var(--on-primary);
|
|
254
|
+
}
|
|
255
|
+
.atelic-ui .on-primary :is(h1, h2) .serif,
|
|
256
|
+
.atelic-ui .on-primary em.serif {
|
|
257
|
+
color: var(--on-primary);
|
|
258
|
+
}
|
|
217
259
|
.atelic-ui .eyebrow::after {
|
|
218
260
|
content: "";
|
|
219
261
|
width: 40px;
|
|
@@ -243,6 +285,15 @@
|
|
|
243
285
|
margin-top: 16px;
|
|
244
286
|
max-width: 60ch;
|
|
245
287
|
}
|
|
288
|
+
/* On a dark band the whole heading lifts, not only the eyebrow: the
|
|
289
|
+
title to --on-dark, so a site's colored heading rule cannot sink it, and
|
|
290
|
+
the lead to the band's quiet words (--ink-soft read 2.26 to 1 there). */
|
|
291
|
+
.atelic-ui .section-head.on-dark > :is(h1, h2, h3) {
|
|
292
|
+
color: var(--on-dark);
|
|
293
|
+
}
|
|
294
|
+
.atelic-ui .section-head.on-dark .section-head-lead {
|
|
295
|
+
color: var(--on-dark-quiet);
|
|
296
|
+
}
|
|
246
297
|
}
|
|
247
298
|
|
|
248
299
|
/* The five primitives that came from template-marketing in 0.19.0 (ATE-643):
|
|
@@ -279,21 +330,23 @@
|
|
|
279
330
|
background:
|
|
280
331
|
repeating-linear-gradient(
|
|
281
332
|
135deg,
|
|
282
|
-
|
|
283
|
-
|
|
333
|
+
color-mix(in srgb, var(--placeholder-ink) 10%, transparent) 0 10px,
|
|
334
|
+
color-mix(in srgb, var(--placeholder-ink) 4%, transparent) 10px 20px
|
|
284
335
|
),
|
|
285
336
|
var(--surface-inset);
|
|
286
337
|
display: flex;
|
|
287
338
|
align-items: center;
|
|
288
339
|
justify-content: center;
|
|
289
|
-
|
|
340
|
+
/* Soft words on the inset well read --ink-inset, which a theme may
|
|
341
|
+
set; --neutral-600 read 4.4 to 1 there on the practice's palette. */
|
|
342
|
+
color: var(--ink-inset, var(--ink-soft));
|
|
290
343
|
font-family: var(--font-mono);
|
|
291
344
|
font-size: 0.8rem;
|
|
292
345
|
letter-spacing: 0.08em;
|
|
293
346
|
text-transform: uppercase;
|
|
294
347
|
text-align: center;
|
|
295
348
|
padding: 20px;
|
|
296
|
-
box-shadow: inset 0 0 0 1px
|
|
349
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--placeholder-ink) 20%, transparent);
|
|
297
350
|
}
|
|
298
351
|
|
|
299
352
|
/* ---- ProseBlocks (prose-blocks.css) ---- */
|
|
@@ -391,10 +444,14 @@
|
|
|
391
444
|
padding: 22px 10px 0;
|
|
392
445
|
border-bottom: 8px solid transparent;
|
|
393
446
|
border-radius: 0 0 12px 12px;
|
|
394
|
-
background: linear-gradient(
|
|
395
|
-
|
|
447
|
+
background: linear-gradient(
|
|
448
|
+
to top,
|
|
449
|
+
color-mix(in srgb, var(--shade) 62%, transparent),
|
|
450
|
+
transparent
|
|
451
|
+
);
|
|
452
|
+
color: var(--on-dark);
|
|
396
453
|
font-size: 0.78rem;
|
|
397
|
-
font-weight:
|
|
454
|
+
font-weight: var(--weight-semibold);
|
|
398
455
|
line-height: 1.3;
|
|
399
456
|
display: -webkit-box;
|
|
400
457
|
-webkit-box-orient: vertical;
|
|
@@ -420,8 +477,11 @@
|
|
|
420
477
|
overflow: hidden;
|
|
421
478
|
}
|
|
422
479
|
|
|
480
|
+
/* A ::backdrop inherits no custom property before Safari 17.4 and Chrome
|
|
481
|
+
122, so the shade falls back to the one defaults.css gives the backdrop
|
|
482
|
+
itself, and the page behind is shaded either way. */
|
|
423
483
|
.atelic-ui .pb-lightbox::backdrop {
|
|
424
|
-
background:
|
|
484
|
+
background: color-mix(in srgb, var(--shade, var(--backdrop-shade)) 72%, transparent);
|
|
425
485
|
}
|
|
426
486
|
|
|
427
487
|
.atelic-ui .pb-lightbox img,
|
|
@@ -455,14 +515,14 @@
|
|
|
455
515
|
margin: 10px 0 0;
|
|
456
516
|
text-align: center;
|
|
457
517
|
font-size: 0.9rem;
|
|
458
|
-
color: var(--neutral-700);
|
|
518
|
+
color: var(--neutral-700, var(--ink));
|
|
459
519
|
}
|
|
460
520
|
|
|
461
521
|
.atelic-ui .pb-body {
|
|
462
522
|
margin: 0 0 16px;
|
|
463
523
|
font-size: 1rem;
|
|
464
524
|
line-height: 1.75;
|
|
465
|
-
color: var(--neutral-700);
|
|
525
|
+
color: var(--neutral-700, var(--ink));
|
|
466
526
|
}
|
|
467
527
|
|
|
468
528
|
/* The base reset strips list markers site wide, which suits nav and card
|
|
@@ -472,7 +532,7 @@
|
|
|
472
532
|
margin: 0 0 16px;
|
|
473
533
|
padding-left: 22px;
|
|
474
534
|
list-style: disc outside;
|
|
475
|
-
color: var(--neutral-700);
|
|
535
|
+
color: var(--neutral-700, var(--ink));
|
|
476
536
|
}
|
|
477
537
|
|
|
478
538
|
.atelic-ui .pb-list li {
|
|
@@ -482,10 +542,12 @@
|
|
|
482
542
|
}
|
|
483
543
|
|
|
484
544
|
/* 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.
|
|
545
|
+
in caps) that would otherwise push the column past the viewport on a phone.
|
|
546
|
+
anywhere, as on the root (defaults.css, Long words), so a prose block set in a
|
|
547
|
+
flex or grid track breaks them too. */
|
|
486
548
|
.atelic-ui .pb-body,
|
|
487
549
|
.atelic-ui .pb-list li {
|
|
488
|
-
overflow-wrap:
|
|
550
|
+
overflow-wrap: anywhere;
|
|
489
551
|
}
|
|
490
552
|
|
|
491
553
|
/* ---- QuoteCard (quote-card.css) ---- */
|