@atelic-action/ui 8.2.0 → 8.4.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 +72 -13
- package/dist/monitoring/server.d.ts +9 -2
- package/dist/monitoring/server.js +107 -13
- package/package.json +1 -1
- package/src/chrome/Footer.tsx +75 -25
- package/src/chrome/SiteMenu.tsx +7 -3
- package/src/chrome/SiteShell.tsx +6 -1
- package/src/chrome/StickyCTABar.tsx +70 -37
- package/src/chrome/index.ts +1 -0
- package/src/components/DataTable.tsx +1 -1
- package/src/components/ReportCard.tsx +3 -3
- package/src/lib/hours.ts +9 -2
- package/src/monitoring/server.ts +122 -13
- package/src/routing/miss.ts +24 -12
- package/src/routing/staticNotFound.tsx +14 -1
- package/src/sections/ContactInfoCard.tsx +11 -2
- package/src/sections/FeatureGrid.tsx +31 -7
- package/src/sections/HoursTable.tsx +5 -3
- package/src/sections/LocationSection.tsx +2 -2
- package/src/sections/ReviewWall.tsx +2 -2
- package/src/sections/index.ts +1 -0
- package/src/sections/siteConfig.ts +37 -1
- package/src/styles/base.css +12 -1
- package/src/styles/chrome.css +121 -10
- package/src/styles/components.css +0 -22
- package/src/styles/defaults.css +36 -3
- package/src/styles/sections.css +25 -24
- package/src/types.ts +12 -1
|
@@ -7,7 +7,7 @@ import type { SiteConfig, Surface } from "./siteConfig";
|
|
|
7
7
|
|
|
8
8
|
/** The keys of the site config the section reads; a whole `SiteConfig` passes as it is. */
|
|
9
9
|
export type LocationSectionSite = MapEmbedSite &
|
|
10
|
-
Pick<SiteConfig, "serviceAreas" | "hours" | "clock" | "phone">;
|
|
10
|
+
Pick<SiteConfig, "serviceAreas" | "hours" | "clock" | "meridiem" | "phone">;
|
|
11
11
|
|
|
12
12
|
export interface LocationSectionProps {
|
|
13
13
|
site: LocationSectionSite;
|
|
@@ -64,7 +64,7 @@ export function LocationSection({
|
|
|
64
64
|
<div className="loc-heading" role="heading" aria-level={headingLevel + 1}>
|
|
65
65
|
Hours
|
|
66
66
|
</div>
|
|
67
|
-
<HoursTable hours={site.hours} clock={site.clock} />
|
|
67
|
+
<HoursTable hours={site.hours} clock={site.clock} meridiem={site.meridiem} />
|
|
68
68
|
</div>
|
|
69
69
|
|
|
70
70
|
<div className="loc-actions">
|
|
@@ -184,7 +184,7 @@ export function ReviewWall({
|
|
|
184
184
|
<div className="rw-controls">
|
|
185
185
|
{showFilter && (
|
|
186
186
|
<label className="rw-select">
|
|
187
|
-
<span className="rw-select-label">Filter reviews by tag</span>
|
|
187
|
+
<span className="rw-select-label visually-hidden">Filter reviews by tag</span>
|
|
188
188
|
<select value={tag} onChange={(event) => setTag(event.target.value)}>
|
|
189
189
|
<option value="">{allTagsLabel}</option>
|
|
190
190
|
{tags.map((option) => (
|
|
@@ -197,7 +197,7 @@ export function ReviewWall({
|
|
|
197
197
|
)}
|
|
198
198
|
{showSort && (
|
|
199
199
|
<label className="rw-select rw-select-end">
|
|
200
|
-
<span className="rw-select-label">Sort reviews by date</span>
|
|
200
|
+
<span className="rw-select-label visually-hidden">Sort reviews by date</span>
|
|
201
201
|
<select
|
|
202
202
|
value={order}
|
|
203
203
|
onChange={(event) => setOrder(event.target.value as "newest" | "oldest")}
|
package/src/sections/index.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import type {
|
|
12
12
|
ContactDockConfig,
|
|
13
13
|
FooterColumn,
|
|
14
|
+
FooterHoursPlacement,
|
|
14
15
|
HeaderPhone,
|
|
15
16
|
MenuBurgerStyle,
|
|
16
17
|
NavFeature,
|
|
@@ -88,6 +89,13 @@ export interface CTA {
|
|
|
88
89
|
/** How opening hours print: "12h" reads "9a to 5p", "24h" reads "09:00 to 17:00". */
|
|
89
90
|
export type Clock = "12h" | "24h";
|
|
90
91
|
|
|
92
|
+
/**
|
|
93
|
+
* How the 12 hour clock marks morning and afternoon: "letter" (the default)
|
|
94
|
+
* reads "9a" and "9:30a", "word" reads "9 am" and "9:30 am". The 24 hour
|
|
95
|
+
* clock marks neither.
|
|
96
|
+
*/
|
|
97
|
+
export type Meridiem = "letter" | "word";
|
|
98
|
+
|
|
91
99
|
export interface OpeningHours {
|
|
92
100
|
/** Row label as displayed, e.g. "Monday" or "Friday to Sunday". */
|
|
93
101
|
label: string;
|
|
@@ -200,7 +208,18 @@ export interface SiteConfig {
|
|
|
200
208
|
/** The site's primary conversion action; rendered in nav, sticky bar, and menus. */
|
|
201
209
|
cta: CTA;
|
|
202
210
|
/** Omit for businesses with no public phone; call surfaces render nothing. */
|
|
203
|
-
phone?: {
|
|
211
|
+
phone?: {
|
|
212
|
+
e164: string;
|
|
213
|
+
display: string;
|
|
214
|
+
/**
|
|
215
|
+
* The words the phone menu sets with this number when the header shows
|
|
216
|
+
* no numbers of its own (`header.phones`), on either sheet, e.g. "Call
|
|
217
|
+
* / Text" for a line that answers texts. Defaults to "Call". Only the
|
|
218
|
+
* phone menu reads it: a header number takes its own `menuLabel`, and
|
|
219
|
+
* `ContactInfoCard` takes `phoneLabel` (8.4.0).
|
|
220
|
+
*/
|
|
221
|
+
menuLabel?: string;
|
|
222
|
+
};
|
|
204
223
|
email: string;
|
|
205
224
|
address: Address;
|
|
206
225
|
geo?: { latitude: number; longitude: number };
|
|
@@ -222,6 +241,11 @@ export interface SiteConfig {
|
|
|
222
241
|
* `opens` and `closes` are already 24 hour.
|
|
223
242
|
*/
|
|
224
243
|
clock?: Clock;
|
|
244
|
+
/**
|
|
245
|
+
* How the 12 hour clock marks the time of day, wherever hours print:
|
|
246
|
+
* "letter" (the default) reads "9a to 5p", "word" reads "9 am to 5 pm".
|
|
247
|
+
*/
|
|
248
|
+
meridiem?: Meridiem;
|
|
225
249
|
/** Neighborhoods or cities served; feeds local SEO copy and structured data. */
|
|
226
250
|
serviceAreas: string[];
|
|
227
251
|
priceRange?: string;
|
|
@@ -275,6 +299,18 @@ export interface SiteConfig {
|
|
|
275
299
|
* to true: a site whose config holds hours shows them in its footer.
|
|
276
300
|
*/
|
|
277
301
|
showHours?: boolean;
|
|
302
|
+
/**
|
|
303
|
+
* Where the footer's hours sit: "column" (the default), a column of
|
|
304
|
+
* their own beside the link columns, or "brand", a compact list inside
|
|
305
|
+
* the brand column under the address, the phone, and the email.
|
|
306
|
+
*/
|
|
307
|
+
hoursPlacement?: FooterHoursPlacement;
|
|
308
|
+
/**
|
|
309
|
+
* Whether the footer's hours drop a whole hour's minutes ("8a to 5p").
|
|
310
|
+
* Defaults to true; false prints them as the hours table does
|
|
311
|
+
* ("8:00a to 5:00p", or "8:00 am to 5:00 pm" with `meridiem: "word"`).
|
|
312
|
+
*/
|
|
313
|
+
hoursShort?: boolean;
|
|
278
314
|
};
|
|
279
315
|
ogImage?: string;
|
|
280
316
|
/** Profile URLs for the schema.org sameAs entity graph (socials, listings). */
|
package/src/styles/base.css
CHANGED
|
@@ -8,6 +8,16 @@
|
|
|
8
8
|
them. Everything sits in the atelic-ui layer, so any rule a site
|
|
9
9
|
writes outside a layer wins without a specificity fight.
|
|
10
10
|
================================================================= */
|
|
11
|
+
/* The h4's tracking, two thirds of --subheading-tracking, computed on the
|
|
12
|
+
h4 itself. Registered as a length so a value that is not one (a theme's
|
|
13
|
+
--subheading-tracking: normal, which no arithmetic takes) falls to 0px,
|
|
14
|
+
flat as normal is, where an unregistered property left the h4 to inherit
|
|
15
|
+
whatever tracking its parent had. A registration sits outside any layer. */
|
|
16
|
+
@property --_h4-tracking {
|
|
17
|
+
syntax: "<length>";
|
|
18
|
+
inherits: false;
|
|
19
|
+
initial-value: 0px;
|
|
20
|
+
}
|
|
11
21
|
@layer atelic-ui {
|
|
12
22
|
/* ---- Resets ---- */
|
|
13
23
|
*,
|
|
@@ -142,7 +152,8 @@
|
|
|
142
152
|
letter-spacing: var(--subheading-tracking);
|
|
143
153
|
}
|
|
144
154
|
.atelic-ui h4 {
|
|
145
|
-
|
|
155
|
+
--_h4-tracking: calc(var(--subheading-tracking) * 2 / 3);
|
|
156
|
+
letter-spacing: var(--_h4-tracking);
|
|
146
157
|
}
|
|
147
158
|
.atelic-ui h1 {
|
|
148
159
|
font-size: clamp(2.6rem, 8vw, 5rem);
|
package/src/styles/chrome.css
CHANGED
|
@@ -1355,7 +1355,9 @@
|
|
|
1355
1355
|
.atelic-ui:has(dialog.mobile-menu[open]) .contact-dock {
|
|
1356
1356
|
visibility: hidden;
|
|
1357
1357
|
}
|
|
1358
|
-
/* Positioned, so it paints over the
|
|
1358
|
+
/* Positioned, so on a phone it paints over the dock's own panel, a fixed
|
|
1359
|
+
sheet across the bottom that leaves room for it as its close button.
|
|
1360
|
+
It never shows over the phone menu's sheet, which hides it (above). */
|
|
1359
1361
|
.atelic-ui .cd-launch {
|
|
1360
1362
|
position: relative;
|
|
1361
1363
|
display: inline-flex;
|
|
@@ -1637,19 +1639,58 @@
|
|
|
1637
1639
|
flex-wrap: wrap;
|
|
1638
1640
|
column-gap: 8px;
|
|
1639
1641
|
}
|
|
1640
|
-
.atelic-ui .footer-hours dt {
|
|
1642
|
+
.atelic-ui :is(.footer-hours, .footer-brand-hours) dt {
|
|
1641
1643
|
color: var(--on-dark);
|
|
1642
1644
|
font-weight: var(--weight-medium);
|
|
1643
1645
|
}
|
|
1644
|
-
.atelic-ui .footer-hours dd {
|
|
1646
|
+
.atelic-ui :is(.footer-hours, .footer-brand-hours) dd {
|
|
1645
1647
|
margin: 0;
|
|
1646
1648
|
color: var(--neutral-200);
|
|
1647
1649
|
}
|
|
1650
|
+
/* Two across (a phone), the cells under the brand column pair up with none
|
|
1651
|
+
left alone. Beside an even count of link columns the hours take the
|
|
1652
|
+
row's whole width, their rows laid two across, and the link columns pair
|
|
1653
|
+
under them; beside an odd count the hours stay a column of their own,
|
|
1654
|
+
rows stacked, paired with the first link column, so the count of cells
|
|
1655
|
+
is even either way. Footer.tsx marks the even count from the columns it
|
|
1656
|
+
draws. */
|
|
1657
|
+
@media (max-width: 759px) {
|
|
1658
|
+
.atelic-ui .footer-grid.has-even-columns > .footer-hours {
|
|
1659
|
+
grid-column: 1 / -1;
|
|
1660
|
+
}
|
|
1661
|
+
.atelic-ui .footer-grid.has-even-columns .footer-hours dl {
|
|
1662
|
+
display: grid;
|
|
1663
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1664
|
+
gap: 8px 32px;
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
/* The hours inside the brand column (hoursPlacement "brand"): a small
|
|
1668
|
+
label over a compact list, the days in one column and the ranges in
|
|
1669
|
+
the next, under the address, the phone, and the email. */
|
|
1670
|
+
.atelic-ui .footer-brand-hours {
|
|
1671
|
+
margin-top: 20px;
|
|
1672
|
+
}
|
|
1673
|
+
.atelic-ui .footer .footer-brand-hours .footer-heading {
|
|
1674
|
+
font-size: 0.72rem;
|
|
1675
|
+
margin-bottom: 8px;
|
|
1676
|
+
}
|
|
1677
|
+
.atelic-ui .footer-brand-hours dl {
|
|
1678
|
+
display: grid;
|
|
1679
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
1680
|
+
gap: 4px 16px;
|
|
1681
|
+
margin: 0;
|
|
1682
|
+
font-size: 0.9rem;
|
|
1683
|
+
line-height: 1.4;
|
|
1684
|
+
}
|
|
1685
|
+
.atelic-ui .footer-brand-hours dl > div {
|
|
1686
|
+
display: contents;
|
|
1687
|
+
}
|
|
1648
1688
|
.atelic-ui .footer nav a {
|
|
1649
1689
|
display: flex;
|
|
1650
1690
|
align-items: center;
|
|
1651
1691
|
gap: 10px;
|
|
1652
1692
|
padding: 6px 0;
|
|
1693
|
+
font-size: var(--footer-link-size);
|
|
1653
1694
|
color: var(--footer-link, var(--neutral-200));
|
|
1654
1695
|
font-weight: var(--weight-medium);
|
|
1655
1696
|
}
|
|
@@ -1688,6 +1729,11 @@
|
|
|
1688
1729
|
display: flex;
|
|
1689
1730
|
flex-direction: column;
|
|
1690
1731
|
}
|
|
1732
|
+
/* The link columns' shared box under the hours in the brand column: no
|
|
1733
|
+
box of its own on a phone, where the columns pair in the grid. */
|
|
1734
|
+
.atelic-ui .footer-links {
|
|
1735
|
+
display: contents;
|
|
1736
|
+
}
|
|
1691
1737
|
/* From 760px one row that wraps: the brand column at 1.4 shares, each
|
|
1692
1738
|
other column at one, as the grid laid them out, but a column never
|
|
1693
1739
|
narrows past its longest word; when the row cannot hold every column
|
|
@@ -1701,20 +1747,68 @@
|
|
|
1701
1747
|
.atelic-ui .footer-grid > * {
|
|
1702
1748
|
flex: 1 1 0;
|
|
1703
1749
|
}
|
|
1750
|
+
/* The brand column's share of the row, a link column's being 1:
|
|
1751
|
+
--footer-brand-width, else 1.4 (2 beside the hours from 1100px). */
|
|
1704
1752
|
.atelic-ui .footer-grid > .footer-brand {
|
|
1705
|
-
flex-grow: 1.4;
|
|
1753
|
+
flex-grow: var(--footer-brand-width, 1.4);
|
|
1706
1754
|
}
|
|
1707
1755
|
/* With the hours beside the four link columns a tablet has no room for
|
|
1708
1756
|
the brand column too, so it keeps the row above them until 1100px. */
|
|
1709
1757
|
.atelic-ui .footer-grid.has-hours > .footer-brand {
|
|
1710
1758
|
flex-basis: 100%;
|
|
1711
1759
|
}
|
|
1760
|
+
/* With the hours in the brand column the row is the brand column and
|
|
1761
|
+
the link columns' shared box, 24px apart, side by side while the row
|
|
1762
|
+
holds both at their floors and each on a row of its own when it
|
|
1763
|
+
cannot. The brand column's floor is its content: the width its
|
|
1764
|
+
longest line takes whole (the lockup, the rating, an address line,
|
|
1765
|
+
the email, a row of the hours), so a short brand block is as narrow
|
|
1766
|
+
as it reads and --footer-brand-width shares out the rest. The box's
|
|
1767
|
+
floor is every link column at its own floor, 10 of its link text's
|
|
1768
|
+
size (about twenty characters, scaled by --footer-link-size) and
|
|
1769
|
+
never narrower than its longest label, the columns 24px apart. In
|
|
1770
|
+
the box the columns sit four across while their floors fit it and
|
|
1771
|
+
two by two below that: one measure, the floors against the box's own
|
|
1772
|
+
width (a basis of the floor, or of half the box once the floors
|
|
1773
|
+
outrun it), so no breakpoint can disagree with it. A font a few
|
|
1774
|
+
percent wider than a site was drawn in still sets an ordinary three
|
|
1775
|
+
word label on one line. */
|
|
1776
|
+
.atelic-ui .footer-grid.has-brand-hours {
|
|
1777
|
+
--_link-floor: calc(10 * var(--footer-link-size));
|
|
1778
|
+
--_links-need: calc(
|
|
1779
|
+
var(--_link-count, 4) *
|
|
1780
|
+
var(--_link-floor) +
|
|
1781
|
+
(var(--_link-count, 4) - 1) *
|
|
1782
|
+
24px
|
|
1783
|
+
);
|
|
1784
|
+
column-gap: 24px;
|
|
1785
|
+
}
|
|
1786
|
+
.atelic-ui .footer-grid.has-brand-hours > .footer-brand {
|
|
1787
|
+
flex: var(--footer-brand-width, 1.4) 1 auto;
|
|
1788
|
+
width: max-content;
|
|
1789
|
+
}
|
|
1790
|
+
.atelic-ui .footer-grid.has-brand-hours > .footer-links {
|
|
1791
|
+
display: flex;
|
|
1792
|
+
flex-wrap: wrap;
|
|
1793
|
+
gap: 48px 24px;
|
|
1794
|
+
flex: var(--_link-count, 4) 1 var(--_links-need);
|
|
1795
|
+
}
|
|
1796
|
+
/* min-width: max-content departs from Component Rules 5 (zero the
|
|
1797
|
+
min-width chain around wide content) on purpose: these labels are
|
|
1798
|
+
short words a design sets whole, and the floor is what keeps a label
|
|
1799
|
+
whole on a machine whose font runs a few percent wider; the row wraps
|
|
1800
|
+
a column instead, so nothing scrolls sideways. */
|
|
1801
|
+
.atelic-ui .footer-grid.has-brand-hours .footer-links > .footer-column {
|
|
1802
|
+
flex: 1 1
|
|
1803
|
+
min(calc(50% - 16px), max(var(--_link-floor), calc((var(--_links-need) - 100%) * 999)));
|
|
1804
|
+
min-width: max-content;
|
|
1805
|
+
}
|
|
1712
1806
|
}
|
|
1713
1807
|
/* One row from 1100px, the brand column a little wider than without the
|
|
1714
1808
|
hours, so the lockup and the rating keep a line each. */
|
|
1715
1809
|
@media (min-width: 1100px) {
|
|
1716
1810
|
.atelic-ui .footer-grid.has-hours > .footer-brand {
|
|
1717
|
-
flex: 2 1 0;
|
|
1811
|
+
flex: var(--footer-brand-width, 2) 1 0;
|
|
1718
1812
|
}
|
|
1719
1813
|
}
|
|
1720
1814
|
/* Text wordmark for a site with no mark image. */
|
|
@@ -1747,9 +1841,13 @@
|
|
|
1747
1841
|
alone. Token themed: the hairline and hover lift derive from --surface
|
|
1748
1842
|
through color-mix and the words read --on-dark-faint, so it rebrands
|
|
1749
1843
|
with theme.css on any page it renders under, light or dark. */
|
|
1844
|
+
/* The rule above the closing bar is drawn in its top border's place, so
|
|
1845
|
+
it can sit inside the content's width (--closing-rule-inset, from each
|
|
1846
|
+
side) while the bar keeps its full width and its height. */
|
|
1750
1847
|
.atelic-ui .closing-bar {
|
|
1848
|
+
position: relative;
|
|
1751
1849
|
background: var(--surface-dark);
|
|
1752
|
-
border-top: 1px solid
|
|
1850
|
+
border-top: 1px solid transparent;
|
|
1753
1851
|
color: var(--on-dark-faint);
|
|
1754
1852
|
font-size: 0.82rem;
|
|
1755
1853
|
padding-block: 18px;
|
|
@@ -1758,6 +1856,21 @@
|
|
|
1758
1856
|
below everything, so nothing on screen moves when it appears. */
|
|
1759
1857
|
padding-bottom: calc(18px + var(--sticky-cta-space, 0px));
|
|
1760
1858
|
}
|
|
1859
|
+
.atelic-ui .closing-bar::before {
|
|
1860
|
+
content: "";
|
|
1861
|
+
position: absolute;
|
|
1862
|
+
top: -1px;
|
|
1863
|
+
left: var(--closing-rule-inset);
|
|
1864
|
+
right: var(--closing-rule-inset);
|
|
1865
|
+
height: 1px;
|
|
1866
|
+
background: color-mix(in srgb, var(--surface) 10%, transparent);
|
|
1867
|
+
}
|
|
1868
|
+
/* The two sides share one line, the copyright at the start and the credit
|
|
1869
|
+
at the end, while they fit; when they do not, the credit wraps under
|
|
1870
|
+
the copyright and both start at the same edge. That is space-between
|
|
1871
|
+
alone: a line holding one side sets it at the start, so no width
|
|
1872
|
+
decides it and a long attribution on a tablet stacks the same way. A
|
|
1873
|
+
side longer than the line wraps inside itself (min-width 0). */
|
|
1761
1874
|
.atelic-ui .closing-bar-line {
|
|
1762
1875
|
display: flex;
|
|
1763
1876
|
flex-wrap: wrap;
|
|
@@ -1765,16 +1878,14 @@
|
|
|
1765
1878
|
align-items: center;
|
|
1766
1879
|
justify-content: space-between;
|
|
1767
1880
|
}
|
|
1881
|
+
.atelic-ui .closing-bar-left,
|
|
1768
1882
|
.atelic-ui .closing-bar-right {
|
|
1769
|
-
|
|
1883
|
+
min-width: 0;
|
|
1770
1884
|
}
|
|
1771
1885
|
.atelic-ui .closing-bar.is-solo .closing-bar-line {
|
|
1772
1886
|
justify-content: center;
|
|
1773
1887
|
text-align: center;
|
|
1774
1888
|
}
|
|
1775
|
-
.atelic-ui .closing-bar.is-solo .closing-bar-right {
|
|
1776
|
-
margin-left: 0;
|
|
1777
|
-
}
|
|
1778
1889
|
/* biome-ignore lint/style/noDescendingSpecificity: scoped to .closing-bar, so it never meets the footer's link rules */
|
|
1779
1890
|
.atelic-ui .closing-bar a {
|
|
1780
1891
|
color: var(--closing-link, var(--neutral-300));
|
|
@@ -776,17 +776,6 @@
|
|
|
776
776
|
grid-row: 1 / span 2;
|
|
777
777
|
color: var(--neutral-500);
|
|
778
778
|
}
|
|
779
|
-
.atelic-ui .rc-sr {
|
|
780
|
-
position: absolute;
|
|
781
|
-
width: 1px;
|
|
782
|
-
height: 1px;
|
|
783
|
-
margin: -1px;
|
|
784
|
-
padding: 0;
|
|
785
|
-
overflow: hidden;
|
|
786
|
-
clip: rect(0, 0, 0, 0);
|
|
787
|
-
white-space: nowrap;
|
|
788
|
-
border: 0;
|
|
789
|
-
}
|
|
790
779
|
@media print, (min-width: 721px) {
|
|
791
780
|
.atelic-ui .rc-card {
|
|
792
781
|
grid-template-columns: auto 232px minmax(0, 1fr) auto;
|
|
@@ -1235,17 +1224,6 @@
|
|
|
1235
1224
|
vertical-align: 0.3em;
|
|
1236
1225
|
border-top: 1.5px solid var(--neutral-300);
|
|
1237
1226
|
}
|
|
1238
|
-
.atelic-ui .data-table-empty-label {
|
|
1239
|
-
position: absolute;
|
|
1240
|
-
width: 1px;
|
|
1241
|
-
height: 1px;
|
|
1242
|
-
margin: -1px;
|
|
1243
|
-
padding: 0;
|
|
1244
|
-
overflow: hidden;
|
|
1245
|
-
clip: rect(0, 0, 0, 0);
|
|
1246
|
-
white-space: nowrap;
|
|
1247
|
-
border: 0;
|
|
1248
|
-
}
|
|
1249
1227
|
@media print, (min-width: 721px) {
|
|
1250
1228
|
.atelic-ui .data-table-sort {
|
|
1251
1229
|
display: none;
|
package/src/styles/defaults.css
CHANGED
|
@@ -125,9 +125,12 @@
|
|
|
125
125
|
--proof-star-fill (--primary); --footer-link (--neutral-200),
|
|
126
126
|
--footer-link-hover (--on-dark), --closing-link (--neutral-300),
|
|
127
127
|
and --closing-link-hover (--surface mixed with --on-dark);
|
|
128
|
-
--menu-rule (--hairline), on the light sheet
|
|
129
|
-
|
|
130
|
-
|
|
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). */
|
|
131
134
|
/* The open group's pill's words on the bar. */
|
|
132
135
|
--nav-open-ink: currentColor;
|
|
133
136
|
/* The header phone pill's padding and its number's size. */
|
|
@@ -142,6 +145,9 @@
|
|
|
142
145
|
/* The hero's lead paragraph: its size and its measure. */
|
|
143
146
|
--hero-lead-size: clamp(1.05rem, 2.2vw, 1.35rem);
|
|
144
147
|
--hero-lead-measure: 52ch;
|
|
148
|
+
--hero-lead-leading: 1.55;
|
|
149
|
+
/* The hero's kicker: the inline block it has always been. */
|
|
150
|
+
--hero-kicker-display: inline-block;
|
|
145
151
|
/* A FeatureGrid card's title. */
|
|
146
152
|
--card-title-color: currentColor;
|
|
147
153
|
/* A CalloutPanel title's case, and its subtitle's case and tracking. */
|
|
@@ -153,6 +159,14 @@
|
|
|
153
159
|
/* The footer lockup's mark, and the line its links take on hover. */
|
|
154
160
|
--footer-mark-height: 38px;
|
|
155
161
|
--footer-link-hover-decoration: none;
|
|
162
|
+
/* The footer's column links' size: 1em is the footer's own, as they
|
|
163
|
+
always inherited it. */
|
|
164
|
+
--footer-link-size: 1em;
|
|
165
|
+
/* How far in from each side the rule above the closing bar starts:
|
|
166
|
+
0px runs it the bar's full width, as always. */
|
|
167
|
+
--closing-rule-inset: 0px;
|
|
168
|
+
/* The gap between the hero's actions, side by side or stacked. */
|
|
169
|
+
--hero-actions-gap: 14px;
|
|
156
170
|
}
|
|
157
171
|
|
|
158
172
|
/* ---- Long words ----
|
|
@@ -186,6 +200,25 @@
|
|
|
186
200
|
white-space: nowrap;
|
|
187
201
|
}
|
|
188
202
|
|
|
203
|
+
/* Words a screen reader hears and the eye does not: the one visually
|
|
204
|
+
hidden rule every component uses (a new tab's note, a control's own
|
|
205
|
+
label, a grade's spoken words), here because every sheet needs it as
|
|
206
|
+
it needs the defaults. It carries no token. The elements that had a
|
|
207
|
+
copy of their own keep its name beside this one (.rc-sr,
|
|
208
|
+
.data-table-empty-label, .rw-select-label), so a site rule written
|
|
209
|
+
against one still reaches it; the old names go in the next major. */
|
|
210
|
+
.atelic-ui .visually-hidden {
|
|
211
|
+
position: absolute;
|
|
212
|
+
width: 1px;
|
|
213
|
+
height: 1px;
|
|
214
|
+
margin: -1px;
|
|
215
|
+
padding: 0;
|
|
216
|
+
overflow: hidden;
|
|
217
|
+
clip-path: inset(50%);
|
|
218
|
+
white-space: nowrap;
|
|
219
|
+
border: 0;
|
|
220
|
+
}
|
|
221
|
+
|
|
189
222
|
/* A ::backdrop inherits no custom property before Safari 17.4 and Chrome
|
|
190
223
|
122, so a backdrop that reads --shade finds nothing there. The shade is
|
|
191
224
|
given to the backdrop itself under its own name, which a backdrop reads
|
package/src/styles/sections.css
CHANGED
|
@@ -1074,12 +1074,14 @@
|
|
|
1074
1074
|
padding-top: calc(var(--nav-height) + 30px);
|
|
1075
1075
|
}
|
|
1076
1076
|
/* The room between the hero's kicker, headline, lead, and actions: each
|
|
1077
|
-
its own
|
|
1078
|
-
|
|
1079
|
-
it,
|
|
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. */
|
|
1080
1082
|
.atelic-ui .hero h1 {
|
|
1081
1083
|
color: var(--on-dark);
|
|
1082
|
-
margin: var(--hero-stack-gap, 18px) 0 0;
|
|
1084
|
+
margin: var(--hero-gap-kicker, var(--hero-stack-gap, 18px)) 0 0;
|
|
1083
1085
|
text-shadow: 0 2px 30px color-mix(in srgb, var(--shade) 25%, transparent);
|
|
1084
1086
|
}
|
|
1085
1087
|
.atelic-ui .hero h1 .serif {
|
|
@@ -1088,7 +1090,14 @@
|
|
|
1088
1090
|
/* The hero's eyebrow line, at the eyebrow primitive's own look (its
|
|
1089
1091
|
private properties, primitives.css) unless a theme sets the hero's
|
|
1090
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 (defaults.css), in the copy's line box, which
|
|
1096
|
+
stands it taller than its own type; the leading is inherited by
|
|
1097
|
+
default, read in place, since no custom property can hold inherit. */
|
|
1091
1098
|
.atelic-ui .hero .eyebrow {
|
|
1099
|
+
display: var(--hero-kicker-display);
|
|
1100
|
+
line-height: var(--hero-kicker-leading, inherit);
|
|
1092
1101
|
font-size: var(--hero-kicker-size, var(--_eyebrow-size));
|
|
1093
1102
|
font-weight: var(--hero-kicker-weight, var(--_eyebrow-weight));
|
|
1094
1103
|
letter-spacing: var(--hero-kicker-tracking, var(--_eyebrow-tracking));
|
|
@@ -1103,9 +1112,9 @@
|
|
|
1103
1112
|
.atelic-ui .hero-sub {
|
|
1104
1113
|
font-size: var(--hero-lead-size);
|
|
1105
1114
|
max-width: var(--hero-lead-measure);
|
|
1106
|
-
margin-top: var(--hero-stack-gap, 22px);
|
|
1115
|
+
margin-top: var(--hero-gap-lead, var(--hero-stack-gap, 22px));
|
|
1107
1116
|
color: color-mix(in srgb, var(--on-dark) 92%, transparent);
|
|
1108
|
-
line-height:
|
|
1117
|
+
line-height: var(--hero-lead-leading);
|
|
1109
1118
|
}
|
|
1110
1119
|
.atelic-ui .hero-trust {
|
|
1111
1120
|
display: flex;
|
|
@@ -1196,30 +1205,35 @@
|
|
|
1196
1205
|
/* --hero-split-pad sets the copy's sides outright, for a design that
|
|
1197
1206
|
wants them tighter than the wrap's edge. Its default is the edge
|
|
1198
1207
|
computed on this element, so it stays at the read. */
|
|
1199
|
-
padding: var(--
|
|
1208
|
+
padding: var(--hero-split-pad-block, var(--section-space))
|
|
1209
|
+
var(--hero-split-pad, var(--hero-split-edge));
|
|
1200
1210
|
}
|
|
1201
1211
|
/* From 900px the copy sits beside the photo under the transparent header;
|
|
1202
1212
|
below it the photo stacks first and takes the header, so the copy needs
|
|
1203
1213
|
no clearance. */
|
|
1204
1214
|
@media (min-width: 900px) {
|
|
1205
1215
|
.atelic-ui main:not(.clears-nav) .hero.is-split .hero-split-inner {
|
|
1206
|
-
padding-top: calc(
|
|
1216
|
+
padding-top: calc(
|
|
1217
|
+
var(--nav-height, 72px) +
|
|
1218
|
+
var(--hero-split-pad-block, var(--section-space))
|
|
1219
|
+
);
|
|
1207
1220
|
}
|
|
1208
1221
|
}
|
|
1209
1222
|
.atelic-ui .hero.is-split h1 {
|
|
1210
1223
|
font-size: clamp(2.1rem, 4vw, 3.3rem);
|
|
1211
1224
|
line-height: 1.05;
|
|
1212
|
-
margin-top: var(--hero-stack-gap, 12px);
|
|
1225
|
+
margin-top: var(--hero-gap-kicker, var(--hero-stack-gap, 12px));
|
|
1213
1226
|
text-shadow: none;
|
|
1214
1227
|
}
|
|
1215
1228
|
.atelic-ui .hero.is-split .hero-sub {
|
|
1216
1229
|
color: var(--on-primary);
|
|
1217
1230
|
}
|
|
1218
1231
|
.atelic-ui .hero .cta-row {
|
|
1219
|
-
|
|
1232
|
+
gap: var(--hero-actions-gap);
|
|
1233
|
+
margin-top: var(--hero-gap-actions, var(--hero-stack-gap, 32px));
|
|
1220
1234
|
}
|
|
1221
1235
|
.atelic-ui .hero.is-split .cta-row {
|
|
1222
|
-
margin-top: var(--hero-stack-gap, 26px);
|
|
1236
|
+
margin-top: var(--hero-gap-actions, var(--hero-stack-gap, 26px));
|
|
1223
1237
|
}
|
|
1224
1238
|
.atelic-ui .hero-split-media {
|
|
1225
1239
|
position: relative;
|
|
@@ -2269,19 +2283,6 @@
|
|
|
2269
2283
|
.atelic-ui .rw-select-end {
|
|
2270
2284
|
margin-left: auto;
|
|
2271
2285
|
}
|
|
2272
|
-
/* The control's own label is visually hidden — the selected option
|
|
2273
|
-
already reads as the label ("All services", "Newest") — but screen
|
|
2274
|
-
readers still get a name for each dropdown. */
|
|
2275
|
-
.atelic-ui .rw-select-label {
|
|
2276
|
-
position: absolute;
|
|
2277
|
-
width: 1px;
|
|
2278
|
-
height: 1px;
|
|
2279
|
-
padding: 0;
|
|
2280
|
-
margin: -1px;
|
|
2281
|
-
overflow: hidden;
|
|
2282
|
-
clip-path: inset(50%);
|
|
2283
|
-
white-space: nowrap;
|
|
2284
|
-
}
|
|
2285
2286
|
.atelic-ui .rw-select select {
|
|
2286
2287
|
appearance: none;
|
|
2287
2288
|
font: inherit;
|
package/src/types.ts
CHANGED
|
@@ -302,6 +302,12 @@ export interface PostalAddress {
|
|
|
302
302
|
postalCode?: string;
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
+
/**
|
|
306
|
+
* Where the footer sets the hours: `column`, a column of their own beside
|
|
307
|
+
* the link columns, or `brand`, a compact list inside the brand column.
|
|
308
|
+
*/
|
|
309
|
+
export type FooterHoursPlacement = "column" | "brand";
|
|
310
|
+
|
|
305
311
|
/** One row of opening hours, already formatted by the site. */
|
|
306
312
|
export interface HoursRow {
|
|
307
313
|
/** The day label as printed, e.g. "Mon" or "Fri to Sun". */
|
|
@@ -312,7 +318,12 @@ export interface HoursRow {
|
|
|
312
318
|
|
|
313
319
|
/** The contact block at the foot of the menu. */
|
|
314
320
|
export interface MenuContact {
|
|
315
|
-
|
|
321
|
+
/**
|
|
322
|
+
* The one phone, which the menu lists when the header shows no numbers;
|
|
323
|
+
* its `menuLabel` is the words beside it on either sheet, else "Call"
|
|
324
|
+
* (8.4.0).
|
|
325
|
+
*/
|
|
326
|
+
phone?: Phone & { menuLabel?: string };
|
|
316
327
|
email?: string;
|
|
317
328
|
address?: PostalAddress;
|
|
318
329
|
}
|