@atelic-action/ui 8.1.0 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +117 -34
- package/dist/monitoring/server.d.ts +58 -1
- package/dist/monitoring/server.js +129 -1
- package/package.json +1 -1
- package/src/chrome/BrandLockup.tsx +12 -3
- package/src/chrome/ContactDock.tsx +16 -2
- package/src/chrome/Footer.tsx +50 -12
- package/src/chrome/NavMegaPanel.tsx +6 -12
- package/src/chrome/SiteHeader.tsx +39 -17
- package/src/chrome/SiteMenu.tsx +211 -76
- package/src/chrome/SiteShell.tsx +9 -2
- package/src/chrome/StickyCTABar.tsx +48 -20
- package/src/chrome/index.ts +3 -0
- package/src/components/DataTable.tsx +1 -1
- package/src/components/ReportCard.tsx +3 -3
- package/src/lib/hours.ts +9 -2
- package/src/lib/phoneText.tsx +9 -0
- package/src/monitoring/ErrorCatcherScript.tsx +17 -6
- package/src/monitoring/index.ts +1 -1
- package/src/monitoring/server.ts +158 -1
- package/src/primitives/Button.tsx +2 -2
- package/src/routing/index.ts +10 -32
- package/src/routing/miss.ts +14 -3
- package/src/routing/routerErrors.tsx +57 -0
- package/src/routing/staticNotFound.tsx +77 -0
- package/src/scripts/check-sentry.ts +22 -1
- package/src/sections/CalloutPanel.tsx +4 -1
- package/src/sections/ContactInfoCard.tsx +9 -2
- package/src/sections/FeatureGrid.tsx +31 -7
- package/src/sections/Hero.tsx +2 -2
- package/src/sections/HoursTable.tsx +5 -3
- package/src/sections/LocationSection.tsx +2 -2
- package/src/sections/LogoMarquee.tsx +1 -1
- package/src/sections/PricingBand.tsx +1 -1
- package/src/sections/ProcessSteps.tsx +1 -1
- package/src/sections/ReviewWall.tsx +2 -2
- package/src/sections/index.ts +1 -0
- package/src/sections/siteConfig.ts +57 -0
- package/src/styles/base.css +34 -17
- package/src/styles/chrome.css +358 -42
- package/src/styles/components.css +0 -22
- package/src/styles/defaults.css +90 -3
- package/src/styles/primitives.css +9 -3
- package/src/styles/sections.css +46 -26
- package/src/types.ts +38 -1
package/src/styles/defaults.css
CHANGED
|
@@ -99,6 +99,72 @@
|
|
|
99
99
|
--section-space: clamp(56px, 9vw, 120px);
|
|
100
100
|
--block-gap: 44px;
|
|
101
101
|
--card-min: 240px;
|
|
102
|
+
|
|
103
|
+
/* The optional tokens a theme sets to restyle one piece, each at the
|
|
104
|
+
look the piece had before it was a token (README.md, Tokens): the
|
|
105
|
+
ones whose default is a literal value or a system keyword. A color
|
|
106
|
+
whose old look was the inherited one is currentColor, which as a
|
|
107
|
+
color is exactly the inherited value.
|
|
108
|
+
|
|
109
|
+
A default that names another token is never declared here: it stays
|
|
110
|
+
an inline fallback where it is read, as --primary-fill and
|
|
111
|
+
--primary-ink always have, so it resolves on the element that reads
|
|
112
|
+
it, below any band that restates the named token. Declared here it
|
|
113
|
+
would resolve once, on the root, and a band restating --primary
|
|
114
|
+
would no longer reach it. Those defaults, each read in place (a
|
|
115
|
+
chain read more than once is written once, as a private property
|
|
116
|
+
on the component's own root): --header-max (--max-width) and
|
|
117
|
+
--header-gutter (--gutter), on .nav; --nav-open-bg (--hover-tint);
|
|
118
|
+
--menu-card-bg (--primary-deep) and --menu-card-ink (--on-primary),
|
|
119
|
+
the ink on .nav-feature; --menu-badge-bg and --menu-cta-bg
|
|
120
|
+
(--primary-fill, then --primary) and --menu-badge-ink and
|
|
121
|
+
--menu-cta-ink (--on-primary), the call to action's on
|
|
122
|
+
.mobile-menu; --heading-weight (--weight-heavy); the hero's
|
|
123
|
+
--hero-kicker-weight, --hero-kicker-tracking, and
|
|
124
|
+
--hero-kicker-size (the eyebrow's own, on .eyebrow);
|
|
125
|
+
--proof-star-fill (--primary); --footer-link (--neutral-200),
|
|
126
|
+
--footer-link-hover (--on-dark), --closing-link (--neutral-300),
|
|
127
|
+
and --closing-link-hover (--surface mixed with --on-dark);
|
|
128
|
+
--menu-rule (--hairline), on the light sheet; --hero-split-pad-block
|
|
129
|
+
(--section-space). --hero-stack-gap and the three gaps under it
|
|
130
|
+
(--hero-gap-kicker, --hero-gap-lead, --hero-gap-actions) have no
|
|
131
|
+
default of their own: unset, each gap in the hero keeps the value
|
|
132
|
+
it always had, in place; so has --footer-brand-width, the brand
|
|
133
|
+
column's share of the footer's row (1.4, or 2 beside the hours). */
|
|
134
|
+
/* The open group's pill's words on the bar. */
|
|
135
|
+
--nav-open-ink: currentColor;
|
|
136
|
+
/* The header phone pill's padding and its number's size. */
|
|
137
|
+
--nav-phone-pad: 6px 16px 6px 12px;
|
|
138
|
+
--nav-phone-size: 0.95rem;
|
|
139
|
+
/* The page and section headings (h1, h2), and the smaller ones (h3 at
|
|
140
|
+
the tracking, h4 at two thirds of it). */
|
|
141
|
+
--heading-transform: none;
|
|
142
|
+
--heading-tracking: -0.02em;
|
|
143
|
+
--heading-color: currentColor;
|
|
144
|
+
--subheading-tracking: -0.015em;
|
|
145
|
+
/* The hero's lead paragraph: its size and its measure. */
|
|
146
|
+
--hero-lead-size: clamp(1.05rem, 2.2vw, 1.35rem);
|
|
147
|
+
--hero-lead-measure: 52ch;
|
|
148
|
+
--hero-lead-leading: 1.55;
|
|
149
|
+
/* A FeatureGrid card's title. */
|
|
150
|
+
--card-title-color: currentColor;
|
|
151
|
+
/* A CalloutPanel title's case, and its subtitle's case and tracking. */
|
|
152
|
+
--callout-transform: none;
|
|
153
|
+
--callout-sub-transform: none;
|
|
154
|
+
--callout-sub-tracking: normal;
|
|
155
|
+
/* The least a LinkColumns column narrows to. */
|
|
156
|
+
--link-columns-min: 170px;
|
|
157
|
+
/* The footer lockup's mark, and the line its links take on hover. */
|
|
158
|
+
--footer-mark-height: 38px;
|
|
159
|
+
--footer-link-hover-decoration: none;
|
|
160
|
+
/* The footer's column links' size: 1em is the footer's own, as they
|
|
161
|
+
always inherited it. */
|
|
162
|
+
--footer-link-size: 1em;
|
|
163
|
+
/* How far in from each side the rule above the closing bar starts:
|
|
164
|
+
0px runs it the bar's full width, as always. */
|
|
165
|
+
--closing-rule-inset: 0px;
|
|
166
|
+
/* The gap between the hero's actions, side by side or stacked. */
|
|
167
|
+
--hero-actions-gap: 14px;
|
|
102
168
|
}
|
|
103
169
|
|
|
104
170
|
/* ---- Long words ----
|
|
@@ -124,10 +190,31 @@
|
|
|
124
190
|
/* A phone number is one thing to read and dial, so it never breaks, at
|
|
125
191
|
its spaces or its hyphen, wherever it is set (Component Rules 17). The
|
|
126
192
|
rule holds the number, never a whole row that links to a call: a tel
|
|
127
|
-
link of words alone is the number, and
|
|
128
|
-
|
|
129
|
-
|
|
193
|
+
link of words alone is the number, and so is one of an icon beside the
|
|
194
|
+
words (every element in it an svg), held with its icon; a tel link
|
|
195
|
+
with more in it (a dock row, a label over the number) marks the number
|
|
196
|
+
.tel-number, which every such link the package draws does. */
|
|
197
|
+
:where(.atelic-ui a[href^="tel:"]:not(:has(:not(svg, svg *))), .atelic-ui .tel-number) {
|
|
198
|
+
white-space: nowrap;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* Words a screen reader hears and the eye does not: the one visually
|
|
202
|
+
hidden rule every component uses (a new tab's note, a control's own
|
|
203
|
+
label, a grade's spoken words), here because every sheet needs it as
|
|
204
|
+
it needs the defaults. It carries no token. The elements that had a
|
|
205
|
+
copy of their own keep its name beside this one (.rc-sr,
|
|
206
|
+
.data-table-empty-label, .rw-select-label), so a site rule written
|
|
207
|
+
against one still reaches it; the old names go in the next major. */
|
|
208
|
+
.atelic-ui .visually-hidden {
|
|
209
|
+
position: absolute;
|
|
210
|
+
width: 1px;
|
|
211
|
+
height: 1px;
|
|
212
|
+
margin: -1px;
|
|
213
|
+
padding: 0;
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
clip-path: inset(50%);
|
|
130
216
|
white-space: nowrap;
|
|
217
|
+
border: 0;
|
|
131
218
|
}
|
|
132
219
|
|
|
133
220
|
/* A ::backdrop inherits no custom property before Safari 17.4 and Chrome
|
|
@@ -229,10 +229,16 @@
|
|
|
229
229
|
right — the wordmark's signature, in the brand's primary. This fade is
|
|
230
230
|
the only rendering; the old leading-dash mode is retired. */
|
|
231
231
|
.atelic-ui .eyebrow {
|
|
232
|
+
/* The eyebrow's own size, weight, and tracking, named once so a
|
|
233
|
+
context that restyles it (the hero's kicker tokens) falls back to
|
|
234
|
+
them rather than copying the values. */
|
|
235
|
+
--_eyebrow-size: 0.74rem;
|
|
236
|
+
--_eyebrow-weight: var(--weight-medium);
|
|
237
|
+
--_eyebrow-tracking: 0.18em;
|
|
232
238
|
font-family: var(--font-mono);
|
|
233
|
-
font-size:
|
|
234
|
-
font-weight: var(--weight
|
|
235
|
-
letter-spacing:
|
|
239
|
+
font-size: var(--_eyebrow-size);
|
|
240
|
+
font-weight: var(--_eyebrow-weight);
|
|
241
|
+
letter-spacing: var(--_eyebrow-tracking);
|
|
236
242
|
text-transform: uppercase;
|
|
237
243
|
color: var(--primary-ink, var(--primary));
|
|
238
244
|
/* Inline, so the rule follows the last line of a kicker that wraps
|
package/src/styles/sections.css
CHANGED
|
@@ -934,7 +934,7 @@
|
|
|
934
934
|
}
|
|
935
935
|
.atelic-ui .feature-card h3 {
|
|
936
936
|
margin: 14px 0 10px;
|
|
937
|
-
color: var(--card-title-color
|
|
937
|
+
color: var(--card-title-color);
|
|
938
938
|
}
|
|
939
939
|
.atelic-ui .feature-card p {
|
|
940
940
|
color: var(--ink-soft);
|
|
@@ -1073,14 +1073,34 @@
|
|
|
1073
1073
|
padding-bottom: clamp(48px, 9vh, 110px);
|
|
1074
1074
|
padding-top: calc(var(--nav-height) + 30px);
|
|
1075
1075
|
}
|
|
1076
|
+
/* The room between the hero's kicker, headline, lead, and actions: each
|
|
1077
|
+
gap its own token (--hero-gap-kicker, --hero-gap-lead,
|
|
1078
|
+
--hero-gap-actions), then the one --hero-stack-gap when a theme sets
|
|
1079
|
+
it, then the value it always had (18, 22, and 32px; 12, 22, and 26px
|
|
1080
|
+
on the split hero). The defaults differ by layout and name another
|
|
1081
|
+
token, so each stays at its read. */
|
|
1076
1082
|
.atelic-ui .hero h1 {
|
|
1077
1083
|
color: var(--on-dark);
|
|
1078
|
-
margin: 18px 0 0;
|
|
1084
|
+
margin: var(--hero-gap-kicker, var(--hero-stack-gap, 18px)) 0 0;
|
|
1079
1085
|
text-shadow: 0 2px 30px color-mix(in srgb, var(--shade) 25%, transparent);
|
|
1080
1086
|
}
|
|
1081
1087
|
.atelic-ui .hero h1 .serif {
|
|
1082
1088
|
color: var(--primary-bright);
|
|
1083
1089
|
}
|
|
1090
|
+
/* The hero's eyebrow line, at the eyebrow primitive's own look (its
|
|
1091
|
+
private properties, primitives.css) unless a theme sets the hero's
|
|
1092
|
+
kicker tokens. */
|
|
1093
|
+
/* --hero-kicker-display: block and --hero-kicker-leading lay the kicker
|
|
1094
|
+
out as a block whose height is its own line height. Unset it stays the
|
|
1095
|
+
inline block it was, in the copy's line box, which stands it taller
|
|
1096
|
+
than its own type (both read in place, inherited by default). */
|
|
1097
|
+
.atelic-ui .hero .eyebrow {
|
|
1098
|
+
display: var(--hero-kicker-display, inline-block);
|
|
1099
|
+
line-height: var(--hero-kicker-leading, inherit);
|
|
1100
|
+
font-size: var(--hero-kicker-size, var(--_eyebrow-size));
|
|
1101
|
+
font-weight: var(--hero-kicker-weight, var(--_eyebrow-weight));
|
|
1102
|
+
letter-spacing: var(--hero-kicker-tracking, var(--_eyebrow-tracking));
|
|
1103
|
+
}
|
|
1084
1104
|
/* On the split hero the headline sits on the primary field, where the
|
|
1085
1105
|
bright primary all but vanishes (1.38 to 1 on the practice's palette):
|
|
1086
1106
|
the accent keeps its italic and takes the field's own words. */
|
|
@@ -1089,11 +1109,11 @@
|
|
|
1089
1109
|
color: var(--on-primary);
|
|
1090
1110
|
}
|
|
1091
1111
|
.atelic-ui .hero-sub {
|
|
1092
|
-
font-size:
|
|
1093
|
-
max-width:
|
|
1094
|
-
margin-top: 22px;
|
|
1112
|
+
font-size: var(--hero-lead-size);
|
|
1113
|
+
max-width: var(--hero-lead-measure);
|
|
1114
|
+
margin-top: var(--hero-gap-lead, var(--hero-stack-gap, 22px));
|
|
1095
1115
|
color: color-mix(in srgb, var(--on-dark) 92%, transparent);
|
|
1096
|
-
line-height:
|
|
1116
|
+
line-height: var(--hero-lead-leading);
|
|
1097
1117
|
}
|
|
1098
1118
|
.atelic-ui .hero-trust {
|
|
1099
1119
|
display: flex;
|
|
@@ -1182,28 +1202,37 @@
|
|
|
1182
1202
|
--hero-split-edge: max(var(--gutter), calc((100cqw - var(--max-width)) / 2 + var(--gutter)));
|
|
1183
1203
|
width: 100%;
|
|
1184
1204
|
/* --hero-split-pad sets the copy's sides outright, for a design that
|
|
1185
|
-
wants them tighter than the wrap's edge.
|
|
1186
|
-
|
|
1205
|
+
wants them tighter than the wrap's edge. Its default is the edge
|
|
1206
|
+
computed on this element, so it stays at the read. */
|
|
1207
|
+
padding: var(--hero-split-pad-block, var(--section-space))
|
|
1208
|
+
var(--hero-split-pad, var(--hero-split-edge));
|
|
1187
1209
|
}
|
|
1188
1210
|
/* From 900px the copy sits beside the photo under the transparent header;
|
|
1189
1211
|
below it the photo stacks first and takes the header, so the copy needs
|
|
1190
1212
|
no clearance. */
|
|
1191
1213
|
@media (min-width: 900px) {
|
|
1192
1214
|
.atelic-ui main:not(.clears-nav) .hero.is-split .hero-split-inner {
|
|
1193
|
-
padding-top: calc(
|
|
1215
|
+
padding-top: calc(
|
|
1216
|
+
var(--nav-height, 72px) +
|
|
1217
|
+
var(--hero-split-pad-block, var(--section-space))
|
|
1218
|
+
);
|
|
1194
1219
|
}
|
|
1195
1220
|
}
|
|
1196
1221
|
.atelic-ui .hero.is-split h1 {
|
|
1197
1222
|
font-size: clamp(2.1rem, 4vw, 3.3rem);
|
|
1198
1223
|
line-height: 1.05;
|
|
1199
|
-
margin-top: 12px;
|
|
1224
|
+
margin-top: var(--hero-gap-kicker, var(--hero-stack-gap, 12px));
|
|
1200
1225
|
text-shadow: none;
|
|
1201
1226
|
}
|
|
1202
1227
|
.atelic-ui .hero.is-split .hero-sub {
|
|
1203
1228
|
color: var(--on-primary);
|
|
1204
1229
|
}
|
|
1230
|
+
.atelic-ui .hero .cta-row {
|
|
1231
|
+
gap: var(--hero-actions-gap);
|
|
1232
|
+
margin-top: var(--hero-gap-actions, var(--hero-stack-gap, 32px));
|
|
1233
|
+
}
|
|
1205
1234
|
.atelic-ui .hero.is-split .cta-row {
|
|
1206
|
-
margin-top: 26px;
|
|
1235
|
+
margin-top: var(--hero-gap-actions, var(--hero-stack-gap, 26px));
|
|
1207
1236
|
}
|
|
1208
1237
|
.atelic-ui .hero-split-media {
|
|
1209
1238
|
position: relative;
|
|
@@ -1694,7 +1723,7 @@
|
|
|
1694
1723
|
aligned on its line in tabular numerals. */
|
|
1695
1724
|
.atelic-ui .link-columns {
|
|
1696
1725
|
display: grid;
|
|
1697
|
-
grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--link-columns-min
|
|
1726
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--link-columns-min)), 1fr));
|
|
1698
1727
|
gap: 24px 28px;
|
|
1699
1728
|
}
|
|
1700
1729
|
.atelic-ui * + .link-columns {
|
|
@@ -1763,7 +1792,7 @@
|
|
|
1763
1792
|
min-width: 0;
|
|
1764
1793
|
}
|
|
1765
1794
|
.atelic-ui .callout-panel-title {
|
|
1766
|
-
text-transform: var(--callout-transform
|
|
1795
|
+
text-transform: var(--callout-transform);
|
|
1767
1796
|
font-family: var(--font-condensed, var(--font-heading, var(--font-sans)));
|
|
1768
1797
|
font-size: clamp(1.35rem, 2.15vw, 1.9rem);
|
|
1769
1798
|
font-weight: var(--weight-heavy);
|
|
@@ -1772,7 +1801,11 @@
|
|
|
1772
1801
|
text-wrap: balance;
|
|
1773
1802
|
}
|
|
1774
1803
|
.atelic-ui .callout-panel-sub {
|
|
1804
|
+
/* Inherited unless a theme sets it: no custom property can hold
|
|
1805
|
+
inherit as a default, so the fallback stays at the read. */
|
|
1775
1806
|
font-family: var(--callout-sub-font, inherit);
|
|
1807
|
+
text-transform: var(--callout-sub-transform);
|
|
1808
|
+
letter-spacing: var(--callout-sub-tracking);
|
|
1776
1809
|
font-size: clamp(0.85rem, 1.1vw, 1rem);
|
|
1777
1810
|
line-height: 1.3;
|
|
1778
1811
|
color: var(--on-primary);
|
|
@@ -2249,19 +2282,6 @@
|
|
|
2249
2282
|
.atelic-ui .rw-select-end {
|
|
2250
2283
|
margin-left: auto;
|
|
2251
2284
|
}
|
|
2252
|
-
/* The control's own label is visually hidden — the selected option
|
|
2253
|
-
already reads as the label ("All services", "Newest") — but screen
|
|
2254
|
-
readers still get a name for each dropdown. */
|
|
2255
|
-
.atelic-ui .rw-select-label {
|
|
2256
|
-
position: absolute;
|
|
2257
|
-
width: 1px;
|
|
2258
|
-
height: 1px;
|
|
2259
|
-
padding: 0;
|
|
2260
|
-
margin: -1px;
|
|
2261
|
-
overflow: hidden;
|
|
2262
|
-
clip-path: inset(50%);
|
|
2263
|
-
white-space: nowrap;
|
|
2264
|
-
}
|
|
2265
2285
|
.atelic-ui .rw-select select {
|
|
2266
2286
|
appearance: none;
|
|
2267
2287
|
font: inherit;
|
package/src/types.ts
CHANGED
|
@@ -205,8 +205,33 @@ export interface NavFeature {
|
|
|
205
205
|
|
|
206
206
|
/** A number the header shows, with the words that say whose line it is. */
|
|
207
207
|
export interface HeaderPhone extends Phone {
|
|
208
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* Printed small over the number in the desktop bar's phone pill and read
|
|
210
|
+
* with it, e.g. "Mountain office". The phone menu's line falls back to it.
|
|
211
|
+
*/
|
|
209
212
|
label?: string;
|
|
213
|
+
/**
|
|
214
|
+
* The phone menu's words for this number, when they should differ from
|
|
215
|
+
* the bar's `label`, e.g. "Call or text" for a line that answers texts.
|
|
216
|
+
* Defaults to `label`, then to "Call".
|
|
217
|
+
*/
|
|
218
|
+
menuLabel?: string;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The phone menu's sheet: `dark`, the full screen sheet on the dark surface
|
|
223
|
+
* with large light links, or `light`, the page's own ground with the lockup
|
|
224
|
+
* and a round close button across the top, the entries as rows, and the call
|
|
225
|
+
* to action and the numbers in a foot on the alternate ground.
|
|
226
|
+
*/
|
|
227
|
+
export type SiteMenuSurface = "dark" | "light";
|
|
228
|
+
|
|
229
|
+
/** How the burger that opens the phone menu is drawn. */
|
|
230
|
+
export interface MenuBurgerStyle {
|
|
231
|
+
/** Sets the three lines before the words (`menuLabel`) rather than after them. Off by default. */
|
|
232
|
+
labelAfter?: boolean;
|
|
233
|
+
/** Draws the burger inside an outlined pill. Off by default. */
|
|
234
|
+
outlined?: boolean;
|
|
210
235
|
}
|
|
211
236
|
|
|
212
237
|
/** A conversion action rendered as a button link. */
|
|
@@ -217,6 +242,12 @@ export interface CallToAction {
|
|
|
217
242
|
external?: boolean;
|
|
218
243
|
/** The header's button carries the arrow a hero's primary button shows. Off by default. */
|
|
219
244
|
arrow?: boolean;
|
|
245
|
+
/**
|
|
246
|
+
* The phone menu's words for the action, when they should differ from
|
|
247
|
+
* `label` (a fuller "Order ahead for Saturday" where the bar says "Order
|
|
248
|
+
* ahead"). Defaults to `label`.
|
|
249
|
+
*/
|
|
250
|
+
menuLabel?: string;
|
|
220
251
|
}
|
|
221
252
|
|
|
222
253
|
/** A footer or legal link that may open in a new tab. */
|
|
@@ -272,6 +303,12 @@ export interface PostalAddress {
|
|
|
272
303
|
}
|
|
273
304
|
|
|
274
305
|
/** One row of opening hours, already formatted by the site. */
|
|
306
|
+
/**
|
|
307
|
+
* Where the footer sets the hours: `column`, a column of their own beside
|
|
308
|
+
* the link columns, or `brand`, a compact list inside the brand column.
|
|
309
|
+
*/
|
|
310
|
+
export type FooterHoursPlacement = "column" | "brand";
|
|
311
|
+
|
|
275
312
|
export interface HoursRow {
|
|
276
313
|
/** The day label as printed, e.g. "Mon" or "Fri to Sun". */
|
|
277
314
|
label: string;
|