@atelic-action/ui 8.3.0 → 8.5.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 +74 -9
- package/dist/lib/contactLinks.d.ts +31 -0
- package/dist/lib/contactLinks.js +55 -0
- package/dist/monitoring/server.js +82 -15
- package/dist/scripts/check-contacts.d.ts +17 -0
- package/dist/scripts/check-contacts.js +162 -0
- package/package.json +10 -13
- package/src/chrome/Footer.tsx +27 -17
- package/src/chrome/SiteHeader.tsx +7 -6
- package/src/chrome/SiteMenu.tsx +13 -10
- package/src/chrome/StickyCTABar.tsx +34 -16
- package/src/components/GateLogin.tsx +2 -1
- package/src/components/MultiSelect.tsx +225 -0
- package/src/components/index.ts +1 -0
- package/src/lib/contactForm.ts +184 -0
- package/src/lib/contactLinks.ts +57 -0
- package/src/lib/googlePlaces.ts +392 -0
- package/src/lib/latestOnly.ts +47 -0
- package/src/monitoring/server.ts +92 -16
- package/src/primitives/AddressSearch.tsx +341 -0
- package/src/primitives/EmailLink.tsx +55 -0
- package/src/primitives/ExpandableText.tsx +137 -0
- package/src/primitives/GoogleMapsAttribution.tsx +14 -0
- package/src/primitives/PhoneLink.tsx +61 -0
- package/src/primitives/index.ts +18 -0
- package/src/routing/miss.ts +14 -13
- package/src/scripts/check-base-path.ts +15 -0
- package/src/scripts/check-contacts.ts +177 -0
- package/src/sections/ContactForm.tsx +683 -87
- package/src/sections/ContactInfoCard.tsx +21 -4
- package/src/sections/InfoRows.tsx +103 -0
- package/src/sections/LocationSection.tsx +2 -1
- package/src/sections/Locations.tsx +3 -2
- package/src/sections/PageHero.tsx +22 -5
- package/src/sections/index.ts +23 -1
- package/src/sections/siteConfig.ts +12 -1
- package/src/styles/chrome.css +30 -17
- package/src/styles/components.css +123 -0
- package/src/styles/defaults.css +33 -1
- package/src/styles/fields.css +33 -0
- package/src/styles/primitives.css +165 -0
- package/src/styles/sections.css +310 -22
- package/src/types.ts +7 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import "./defaults.css";
|
|
2
|
+
@import "./fields.css";
|
|
2
3
|
/* The primitives under src/primitives: the button, the chip, the bubble, the
|
|
3
4
|
eyebrow, the lead paragraph, and the section heading. Every value is a theme token.
|
|
4
5
|
They sit in the package's layer like every sheet here, so any rule a site
|
|
@@ -625,4 +626,168 @@
|
|
|
625
626
|
place-items: center;
|
|
626
627
|
box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary) 45%, transparent);
|
|
627
628
|
}
|
|
629
|
+
|
|
630
|
+
/* ---- AddressSearch: a text field with a pin that offers addresses as
|
|
631
|
+
they are typed, the suggestions dropping beneath it. Specific enough to
|
|
632
|
+
hold its padding against a form's .field input rule. ---- */
|
|
633
|
+
.atelic-ui .address-search {
|
|
634
|
+
position: relative;
|
|
635
|
+
display: flex;
|
|
636
|
+
flex-direction: column;
|
|
637
|
+
gap: 7px;
|
|
638
|
+
min-width: 0;
|
|
639
|
+
}
|
|
640
|
+
.atelic-ui .address-search-bar {
|
|
641
|
+
position: relative;
|
|
642
|
+
}
|
|
643
|
+
.atelic-ui .address-search-pin {
|
|
644
|
+
position: absolute;
|
|
645
|
+
left: 14px;
|
|
646
|
+
top: 50%;
|
|
647
|
+
transform: translateY(-50%);
|
|
648
|
+
color: var(--primary-ink, var(--primary));
|
|
649
|
+
pointer-events: none;
|
|
650
|
+
}
|
|
651
|
+
.atelic-ui .address-search .address-search-input {
|
|
652
|
+
box-sizing: border-box;
|
|
653
|
+
width: 100%;
|
|
654
|
+
font: inherit;
|
|
655
|
+
padding: var(--field-padding-block) var(--field-padding-inline) var(--field-padding-block) 44px;
|
|
656
|
+
border: 1.5px solid var(--field-border, var(--neutral-200));
|
|
657
|
+
border-radius: var(--radius-md);
|
|
658
|
+
background: var(--card);
|
|
659
|
+
color: var(--ink);
|
|
660
|
+
}
|
|
661
|
+
.atelic-ui .address-search .address-search-input:focus {
|
|
662
|
+
outline: none;
|
|
663
|
+
border-color: var(--primary);
|
|
664
|
+
box-shadow: 0 0 0 4px var(--primary-focus-ring);
|
|
665
|
+
}
|
|
666
|
+
.atelic-ui .address-search-popup:not([hidden]) {
|
|
667
|
+
position: absolute;
|
|
668
|
+
left: 0;
|
|
669
|
+
right: 0;
|
|
670
|
+
top: 100%;
|
|
671
|
+
z-index: 20;
|
|
672
|
+
margin-top: 4px;
|
|
673
|
+
padding: 6px;
|
|
674
|
+
display: flex;
|
|
675
|
+
flex-direction: column;
|
|
676
|
+
background: var(--card);
|
|
677
|
+
border: 1.5px solid var(--field-border, var(--neutral-200));
|
|
678
|
+
border-radius: var(--radius-md);
|
|
679
|
+
box-shadow: var(--shadow-md);
|
|
680
|
+
}
|
|
681
|
+
.atelic-ui .address-search-list {
|
|
682
|
+
display: flex;
|
|
683
|
+
flex-direction: column;
|
|
684
|
+
}
|
|
685
|
+
.atelic-ui .address-search-option {
|
|
686
|
+
display: flex;
|
|
687
|
+
flex-direction: column;
|
|
688
|
+
gap: 1px;
|
|
689
|
+
padding: 10px 12px;
|
|
690
|
+
border-radius: var(--radius-sm);
|
|
691
|
+
line-height: 1.35;
|
|
692
|
+
color: var(--ink);
|
|
693
|
+
cursor: pointer;
|
|
694
|
+
}
|
|
695
|
+
.atelic-ui .address-search-option:hover,
|
|
696
|
+
.atelic-ui .address-search-option[aria-selected="true"] {
|
|
697
|
+
background: var(--primary-tint);
|
|
698
|
+
}
|
|
699
|
+
.atelic-ui .address-search-option-secondary {
|
|
700
|
+
font-size: 0.92em;
|
|
701
|
+
color: var(--ink-soft);
|
|
702
|
+
}
|
|
703
|
+
/* Google's attribution, as its terms set it: never wrapped, a regular
|
|
704
|
+
weight, 12 to 16 pixels, 4.5 to 1 against the list. */
|
|
705
|
+
.atelic-ui .google-maps-attribution {
|
|
706
|
+
white-space: nowrap;
|
|
707
|
+
font-size: 13px;
|
|
708
|
+
font-weight: var(--weight-regular);
|
|
709
|
+
color: var(--neutral-600);
|
|
710
|
+
}
|
|
711
|
+
.atelic-ui .address-search-attribution {
|
|
712
|
+
padding: 8px 12px 4px;
|
|
713
|
+
font-size: 0.8rem;
|
|
714
|
+
color: var(--neutral-600);
|
|
715
|
+
text-align: right;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/* ---- ExpandableText: long text drawn to a few lines, the rest a Show
|
|
719
|
+
more away. The cut is a line clamp, so every word stays in the page. ---- */
|
|
720
|
+
.atelic-ui .expandable-text {
|
|
721
|
+
min-width: 0;
|
|
722
|
+
}
|
|
723
|
+
.atelic-ui .expandable-text-body {
|
|
724
|
+
display: block;
|
|
725
|
+
}
|
|
726
|
+
.atelic-ui .expandable-text-body.is-clamped {
|
|
727
|
+
display: -webkit-box;
|
|
728
|
+
-webkit-box-orient: vertical;
|
|
729
|
+
-webkit-line-clamp: var(--expandable-lines, 3);
|
|
730
|
+
line-clamp: var(--expandable-lines, 3);
|
|
731
|
+
overflow: hidden;
|
|
732
|
+
}
|
|
733
|
+
.atelic-ui .expandable-text-more:not([hidden]) {
|
|
734
|
+
display: block;
|
|
735
|
+
margin-top: 4px;
|
|
736
|
+
}
|
|
737
|
+
.atelic-ui .expandable-text-toggle {
|
|
738
|
+
margin-top: 2px;
|
|
739
|
+
padding: 0;
|
|
740
|
+
border: 0;
|
|
741
|
+
background: none;
|
|
742
|
+
font: inherit;
|
|
743
|
+
color: inherit;
|
|
744
|
+
cursor: pointer;
|
|
745
|
+
}
|
|
746
|
+
/* The words carry the link look, so an inline control's ellipsis (below)
|
|
747
|
+
reads in the text's own color. */
|
|
748
|
+
.atelic-ui .expandable-text-toggle-label {
|
|
749
|
+
font-weight: var(--weight-bold);
|
|
750
|
+
color: var(--primary-ink, var(--primary));
|
|
751
|
+
text-decoration: underline;
|
|
752
|
+
}
|
|
753
|
+
/* inline (8.5.0). Closed: the control sits over the end of the last
|
|
754
|
+
clamped line, on a fade of the ground, after an ellipsis whose empty
|
|
755
|
+
alternative text keeps it out of the control's name. */
|
|
756
|
+
.atelic-ui .expandable-text.is-inline {
|
|
757
|
+
position: relative;
|
|
758
|
+
}
|
|
759
|
+
.atelic-ui .expandable-text.is-inline .expandable-text-body.is-clamped + .expandable-text-toggle {
|
|
760
|
+
position: absolute;
|
|
761
|
+
right: 0;
|
|
762
|
+
bottom: 0;
|
|
763
|
+
margin: 0;
|
|
764
|
+
padding-left: 1.25em;
|
|
765
|
+
background: linear-gradient(
|
|
766
|
+
to right,
|
|
767
|
+
transparent,
|
|
768
|
+
var(--expandable-ground, var(--surface)) 1em
|
|
769
|
+
);
|
|
770
|
+
}
|
|
771
|
+
.atelic-ui
|
|
772
|
+
.expandable-text.is-inline
|
|
773
|
+
.expandable-text-body.is-clamped
|
|
774
|
+
+ .expandable-text-toggle::before {
|
|
775
|
+
content: "\2026\00a0" / "";
|
|
776
|
+
display: inline-block;
|
|
777
|
+
}
|
|
778
|
+
/* Open: the text runs inline and the control follows its last word. */
|
|
779
|
+
.atelic-ui .expandable-text.is-inline .expandable-text-body:not(.is-clamped) {
|
|
780
|
+
display: inline;
|
|
781
|
+
}
|
|
782
|
+
.atelic-ui
|
|
783
|
+
.expandable-text.is-inline
|
|
784
|
+
.expandable-text-body:not(.is-clamped)
|
|
785
|
+
+ .expandable-text-toggle {
|
|
786
|
+
margin: 0 0 0 0.35em;
|
|
787
|
+
}
|
|
788
|
+
.atelic-ui .expandable-text-toggle:focus-visible {
|
|
789
|
+
outline: 2px solid var(--primary);
|
|
790
|
+
outline-offset: 2px;
|
|
791
|
+
border-radius: 2px;
|
|
792
|
+
}
|
|
628
793
|
}
|
package/src/styles/sections.css
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import "./defaults.css";
|
|
2
|
+
@import "./fields.css";
|
|
2
3
|
/* The marketing sections under src/sections, one block each, the sheets that
|
|
3
4
|
lived beside each component in template-marketing until 0.19.0 (ATE-643).
|
|
4
5
|
A section that composes another comes after it, the order the template's
|
|
@@ -290,20 +291,15 @@
|
|
|
290
291
|
gap: 7px;
|
|
291
292
|
margin-bottom: 18px;
|
|
292
293
|
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
font-size: 0.74rem;
|
|
296
|
-
letter-spacing: 0.1em;
|
|
297
|
-
text-transform: uppercase;
|
|
298
|
-
color: var(--neutral-600);
|
|
299
|
-
}
|
|
294
|
+
/* A field's label and the note beside it are in fields.css, with the
|
|
295
|
+
pickers' labels (8.5.0). */
|
|
300
296
|
.atelic-ui .field input,
|
|
301
297
|
.atelic-ui .field textarea,
|
|
302
298
|
.atelic-ui .field select {
|
|
303
299
|
font: inherit;
|
|
304
|
-
padding:
|
|
300
|
+
padding: var(--field-padding-block) var(--field-padding-inline);
|
|
305
301
|
border-radius: var(--radius-md);
|
|
306
|
-
border: 1.5px solid var(--neutral-200);
|
|
302
|
+
border: 1.5px solid var(--field-border, var(--neutral-200));
|
|
307
303
|
background: var(--card);
|
|
308
304
|
color: var(--ink);
|
|
309
305
|
transition:
|
|
@@ -333,17 +329,168 @@
|
|
|
333
329
|
}
|
|
334
330
|
/* The error words read the primary's ink, which clears 4.5 to 1 on the
|
|
335
331
|
surface and on the tint (--primary-deep, a fill, read 4.17 and 3.96). */
|
|
332
|
+
/* --field-error, --field-error-border, and --field-error-bg (8.5.0) let a
|
|
333
|
+
theme set the errors in its own color (the tone palette's bad, say);
|
|
334
|
+
unset, each reads in place what it always did. */
|
|
336
335
|
.atelic-ui .field .err {
|
|
337
|
-
color: var(--primary-ink, var(--primary));
|
|
338
|
-
font-size:
|
|
336
|
+
color: var(--field-error, var(--primary-ink, var(--primary)));
|
|
337
|
+
font-size: var(--field-error-size);
|
|
338
|
+
font-weight: var(--field-error-weight, inherit);
|
|
339
339
|
display: none;
|
|
340
340
|
}
|
|
341
341
|
.atelic-ui .field.invalid .err {
|
|
342
342
|
display: block;
|
|
343
343
|
}
|
|
344
344
|
.atelic-ui .field.invalid input,
|
|
345
|
-
.atelic-ui .field.invalid textarea
|
|
346
|
-
|
|
345
|
+
.atelic-ui .field.invalid textarea,
|
|
346
|
+
.atelic-ui .field.invalid select {
|
|
347
|
+
border-color: var(--field-error-border, var(--primary-deep));
|
|
348
|
+
border-width: var(--field-error-border-width);
|
|
349
|
+
}
|
|
350
|
+
/* Fields that share a line where there is room: a first and a last name,
|
|
351
|
+
a phone and an email (two up), a city, a state, and a ZIP (three up).
|
|
352
|
+
Each wraps to its own line before it would go narrower than it reads. */
|
|
353
|
+
.atelic-ui .field-row {
|
|
354
|
+
display: grid;
|
|
355
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
|
|
356
|
+
gap: 0 14px;
|
|
357
|
+
}
|
|
358
|
+
.atelic-ui .field-row > * {
|
|
359
|
+
min-width: 0;
|
|
360
|
+
}
|
|
361
|
+
.atelic-ui .field-row.field-row-3 {
|
|
362
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 104px), 1fr));
|
|
363
|
+
}
|
|
364
|
+
/* The line under the send button (footnote): its size and space, its
|
|
365
|
+
alignment, and its links' weight and color, each by token (8.5.0). */
|
|
366
|
+
.atelic-ui .form-footnote {
|
|
367
|
+
margin-top: 14px;
|
|
368
|
+
font-size: var(--form-footnote-size);
|
|
369
|
+
text-align: var(--form-footnote-align, inherit);
|
|
370
|
+
}
|
|
371
|
+
.atelic-ui .form-footnote a {
|
|
372
|
+
font-weight: var(--form-footnote-link-weight, inherit);
|
|
373
|
+
color: var(--form-footnote-link-color, inherit);
|
|
374
|
+
}
|
|
375
|
+
/* The count of fields to fix, over the form after a refused send. */
|
|
376
|
+
.atelic-ui .form-alert {
|
|
377
|
+
background: var(--field-error-bg, var(--primary-tint));
|
|
378
|
+
border: 1.5px solid var(--field-error-border, var(--primary-deep));
|
|
379
|
+
color: var(--field-error, var(--primary-ink, var(--primary)));
|
|
380
|
+
padding: 14px 16px;
|
|
381
|
+
border-radius: var(--radius-md);
|
|
382
|
+
font-weight: var(--weight-semibold);
|
|
383
|
+
margin-bottom: 18px;
|
|
384
|
+
}
|
|
385
|
+
/* The consent line: a checkbox beside its wording, which opens behind Show more. */
|
|
386
|
+
.atelic-ui .contact-consent {
|
|
387
|
+
display: flex;
|
|
388
|
+
gap: 10px;
|
|
389
|
+
align-items: flex-start;
|
|
390
|
+
margin: 0 0 18px;
|
|
391
|
+
font-size: 0.9rem;
|
|
392
|
+
line-height: 1.45;
|
|
393
|
+
color: var(--ink-soft);
|
|
394
|
+
}
|
|
395
|
+
.atelic-ui .contact-consent-box {
|
|
396
|
+
flex: none;
|
|
397
|
+
width: 20px;
|
|
398
|
+
height: 20px;
|
|
399
|
+
margin: 1px 0 0;
|
|
400
|
+
accent-color: var(--primary);
|
|
401
|
+
}
|
|
402
|
+
.atelic-ui .contact-consent > .expandable-text {
|
|
403
|
+
min-width: 0;
|
|
404
|
+
flex: 1;
|
|
405
|
+
}
|
|
406
|
+
.atelic-ui .contact-consent .expandable-text-body {
|
|
407
|
+
cursor: pointer;
|
|
408
|
+
}
|
|
409
|
+
.atelic-ui .contact-consent-links {
|
|
410
|
+
display: flex;
|
|
411
|
+
flex-wrap: wrap;
|
|
412
|
+
gap: 6px 16px;
|
|
413
|
+
}
|
|
414
|
+
.atelic-ui .contact-consent-links a {
|
|
415
|
+
color: var(--primary-ink, var(--primary));
|
|
416
|
+
}
|
|
417
|
+
/* The thanks that replaces the form once it is sent (thanks). */
|
|
418
|
+
.atelic-ui .contact-thanks-mark {
|
|
419
|
+
width: 48px;
|
|
420
|
+
height: 48px;
|
|
421
|
+
display: grid;
|
|
422
|
+
place-items: center;
|
|
423
|
+
border-radius: 50%;
|
|
424
|
+
background: var(--tone-good-bg);
|
|
425
|
+
color: var(--tone-good);
|
|
426
|
+
}
|
|
427
|
+
.atelic-ui .contact-thanks-title {
|
|
428
|
+
margin: 14px 0 0;
|
|
429
|
+
font-size: clamp(1.35rem, 2.4vw, 1.7rem);
|
|
430
|
+
font-weight: var(--weight-bold);
|
|
431
|
+
line-height: 1.2;
|
|
432
|
+
color: var(--primary-ink, var(--primary));
|
|
433
|
+
}
|
|
434
|
+
/* Focus lands on the heading so a screen reader reads it; it is not a
|
|
435
|
+
control, so it draws no ring. */
|
|
436
|
+
.atelic-ui .contact-thanks-title:focus {
|
|
437
|
+
outline: none;
|
|
438
|
+
}
|
|
439
|
+
.atelic-ui .contact-thanks-lead {
|
|
440
|
+
margin: 8px 0 0;
|
|
441
|
+
line-height: 1.5;
|
|
442
|
+
color: var(--ink-soft);
|
|
443
|
+
}
|
|
444
|
+
.atelic-ui .contact-thanks-summary {
|
|
445
|
+
margin: 20px 0 0;
|
|
446
|
+
padding: 4px 16px;
|
|
447
|
+
border: 1px solid var(--hairline-strong);
|
|
448
|
+
border-radius: var(--radius-md);
|
|
449
|
+
}
|
|
450
|
+
.atelic-ui .contact-thanks-summary > div {
|
|
451
|
+
display: flex;
|
|
452
|
+
gap: 14px;
|
|
453
|
+
padding: 11px 0;
|
|
454
|
+
border-bottom: 1px solid var(--hairline);
|
|
455
|
+
line-height: 1.4;
|
|
456
|
+
}
|
|
457
|
+
.atelic-ui .contact-thanks-summary > div:last-child {
|
|
458
|
+
border-bottom: 0;
|
|
459
|
+
}
|
|
460
|
+
.atelic-ui .contact-thanks-summary dt {
|
|
461
|
+
flex: 0 0 96px;
|
|
462
|
+
font-weight: var(--weight-bold);
|
|
463
|
+
}
|
|
464
|
+
.atelic-ui .contact-thanks-summary dd {
|
|
465
|
+
margin: 0;
|
|
466
|
+
min-width: 0;
|
|
467
|
+
}
|
|
468
|
+
.atelic-ui .contact-thanks-steps-head {
|
|
469
|
+
margin: 22px 0 0;
|
|
470
|
+
font-weight: var(--weight-bold);
|
|
471
|
+
}
|
|
472
|
+
.atelic-ui .contact-thanks-steps {
|
|
473
|
+
margin: 8px 0 0;
|
|
474
|
+
padding-left: 22px;
|
|
475
|
+
display: flex;
|
|
476
|
+
flex-direction: column;
|
|
477
|
+
gap: 6px;
|
|
478
|
+
line-height: 1.45;
|
|
479
|
+
}
|
|
480
|
+
.atelic-ui .contact-thanks-again {
|
|
481
|
+
margin-top: 20px;
|
|
482
|
+
padding: 0;
|
|
483
|
+
border: 0;
|
|
484
|
+
background: none;
|
|
485
|
+
color: var(--primary-ink, var(--primary));
|
|
486
|
+
font: inherit;
|
|
487
|
+
font-weight: var(--weight-bold);
|
|
488
|
+
text-decoration: underline;
|
|
489
|
+
cursor: pointer;
|
|
490
|
+
}
|
|
491
|
+
.atelic-ui .contact-thanks-again:focus-visible {
|
|
492
|
+
outline: 2px solid var(--primary);
|
|
493
|
+
outline-offset: 3px;
|
|
347
494
|
}
|
|
348
495
|
.atelic-ui .form-status {
|
|
349
496
|
display: block;
|
|
@@ -421,6 +568,125 @@
|
|
|
421
568
|
min-width: 0;
|
|
422
569
|
overflow-wrap: anywhere;
|
|
423
570
|
}
|
|
571
|
+
/* layout="stacked" (8.5.0): the label over its value in the body face,
|
|
572
|
+
and each number set large, for labels that are places. */
|
|
573
|
+
.atelic-ui .contact-info-card.is-stacked .ci-row {
|
|
574
|
+
flex-direction: column;
|
|
575
|
+
gap: 2px;
|
|
576
|
+
padding: 14px 0;
|
|
577
|
+
}
|
|
578
|
+
.atelic-ui .contact-info-card.is-stacked .ci-row .k {
|
|
579
|
+
flex: none;
|
|
580
|
+
padding: 0;
|
|
581
|
+
font-family: inherit;
|
|
582
|
+
font-size: 0.9rem;
|
|
583
|
+
letter-spacing: normal;
|
|
584
|
+
text-transform: none;
|
|
585
|
+
color: var(--on-dark);
|
|
586
|
+
}
|
|
587
|
+
.atelic-ui .contact-info-card.is-stacked .ci-row .v {
|
|
588
|
+
color: var(--on-dark);
|
|
589
|
+
line-height: 1.4;
|
|
590
|
+
}
|
|
591
|
+
.atelic-ui .contact-info-card.is-stacked .ci-row .v a[href^="tel:"] {
|
|
592
|
+
font-size: 1.3rem;
|
|
593
|
+
font-weight: var(--weight-bold);
|
|
594
|
+
text-decoration: none;
|
|
595
|
+
}
|
|
596
|
+
.atelic-ui .contact-info-card.is-stacked .ci-row .v a[href^="tel:"]:hover {
|
|
597
|
+
text-decoration: underline;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/* ---- InfoRows ---- */
|
|
601
|
+
/* A title over a few lines, with one action on the right, the way a map
|
|
602
|
+
pack lists a place: an office and its directions. */
|
|
603
|
+
.atelic-ui .info-rows {
|
|
604
|
+
list-style: none;
|
|
605
|
+
margin: 0;
|
|
606
|
+
padding: 0;
|
|
607
|
+
display: flex;
|
|
608
|
+
flex-direction: column;
|
|
609
|
+
}
|
|
610
|
+
.atelic-ui .info-row {
|
|
611
|
+
display: flex;
|
|
612
|
+
align-items: center;
|
|
613
|
+
gap: 16px;
|
|
614
|
+
padding: 18px 0;
|
|
615
|
+
border-bottom: 1px solid var(--hairline);
|
|
616
|
+
}
|
|
617
|
+
.atelic-ui .info-row:first-child {
|
|
618
|
+
padding-top: 0;
|
|
619
|
+
}
|
|
620
|
+
/* A row with more under its lines (an office's hours) keeps its action
|
|
621
|
+
beside its title and address, not centered on the whole row. */
|
|
622
|
+
.atelic-ui .info-row.has-detail {
|
|
623
|
+
align-items: flex-start;
|
|
624
|
+
}
|
|
625
|
+
.atelic-ui .info-row-icon {
|
|
626
|
+
flex: none;
|
|
627
|
+
align-self: flex-start;
|
|
628
|
+
color: var(--primary-ink, var(--primary));
|
|
629
|
+
}
|
|
630
|
+
.atelic-ui .info-row-text {
|
|
631
|
+
flex: 1;
|
|
632
|
+
min-width: 0;
|
|
633
|
+
}
|
|
634
|
+
.atelic-ui .info-row-title {
|
|
635
|
+
margin: 0 0 4px;
|
|
636
|
+
font-family: var(--font-heading, inherit);
|
|
637
|
+
font-size: 1.15rem;
|
|
638
|
+
font-weight: var(--weight-bold);
|
|
639
|
+
line-height: 1.25;
|
|
640
|
+
color: var(--ink);
|
|
641
|
+
}
|
|
642
|
+
.atelic-ui .info-row-lines {
|
|
643
|
+
margin: 0;
|
|
644
|
+
line-height: 1.5;
|
|
645
|
+
color: var(--ink-soft);
|
|
646
|
+
}
|
|
647
|
+
.atelic-ui .info-row-lines > span {
|
|
648
|
+
display: block;
|
|
649
|
+
}
|
|
650
|
+
.atelic-ui .info-row-detail {
|
|
651
|
+
margin-top: 8px;
|
|
652
|
+
}
|
|
653
|
+
.atelic-ui .info-row-action {
|
|
654
|
+
flex: none;
|
|
655
|
+
width: 84px;
|
|
656
|
+
display: flex;
|
|
657
|
+
flex-direction: column;
|
|
658
|
+
align-items: center;
|
|
659
|
+
gap: 6px;
|
|
660
|
+
font-size: 0.84rem;
|
|
661
|
+
font-weight: var(--weight-bold);
|
|
662
|
+
line-height: 1.2;
|
|
663
|
+
color: var(--primary-ink, var(--primary));
|
|
664
|
+
text-align: center;
|
|
665
|
+
text-decoration: none;
|
|
666
|
+
}
|
|
667
|
+
.atelic-ui .info-row-action-icon {
|
|
668
|
+
width: 48px;
|
|
669
|
+
height: 48px;
|
|
670
|
+
display: grid;
|
|
671
|
+
place-items: center;
|
|
672
|
+
border-radius: 50%;
|
|
673
|
+
background: var(--primary-fill, var(--primary));
|
|
674
|
+
color: var(--on-primary);
|
|
675
|
+
transition: background 0.15s;
|
|
676
|
+
}
|
|
677
|
+
.atelic-ui .info-row-action:hover .info-row-action-icon {
|
|
678
|
+
background: var(--primary-deep);
|
|
679
|
+
}
|
|
680
|
+
.atelic-ui .info-row-action:focus-visible {
|
|
681
|
+
outline: 2px solid var(--primary);
|
|
682
|
+
outline-offset: 3px;
|
|
683
|
+
border-radius: var(--radius-sm);
|
|
684
|
+
}
|
|
685
|
+
@media (prefers-reduced-motion: reduce) {
|
|
686
|
+
.atelic-ui .info-row-action-icon {
|
|
687
|
+
transition: none;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
424
690
|
|
|
425
691
|
/* ---- CredentialList (credential-list.css) ---- */
|
|
426
692
|
.atelic-ui .cert-list {
|
|
@@ -571,22 +837,42 @@
|
|
|
571
837
|
}
|
|
572
838
|
|
|
573
839
|
/* ---- PageHero (page-hero.css) ---- */
|
|
840
|
+
/* --page-hero-pad-block (8.5.0) sets the band's top and bottom padding
|
|
841
|
+
alike; unset, each keeps its own, read in place. */
|
|
574
842
|
.atelic-ui .page-hero {
|
|
575
|
-
padding-top: calc(var(--section-space) * 0.72);
|
|
576
|
-
padding-bottom: calc(var(--section-space) * 0.5);
|
|
843
|
+
padding-top: var(--page-hero-pad-block, calc(var(--section-space) * 0.72));
|
|
844
|
+
padding-bottom: var(--page-hero-pad-block, calc(var(--section-space) * 0.5));
|
|
577
845
|
background: var(--surface-alt);
|
|
578
846
|
}
|
|
579
847
|
.atelic-ui .page-hero.surface-default {
|
|
580
848
|
background: var(--surface);
|
|
581
849
|
}
|
|
582
850
|
.atelic-ui .page-hero h1 {
|
|
583
|
-
font-size:
|
|
851
|
+
font-size: var(--page-hero-title-size);
|
|
584
852
|
margin: 16px 0 0;
|
|
585
853
|
}
|
|
586
854
|
.atelic-ui .page-hero .lead {
|
|
587
855
|
margin-top: 22px;
|
|
588
856
|
max-width: 56ch;
|
|
589
857
|
}
|
|
858
|
+
/* The kicker, at the eyebrow primitive's own look (its private
|
|
859
|
+
properties, primitives.css) unless a theme sets the page hero's kicker
|
|
860
|
+
tokens, as the hero's are set (8.5.0). */
|
|
861
|
+
.atelic-ui .page-hero .eyebrow {
|
|
862
|
+
font-family: var(--page-hero-kicker-font, var(--font-mono));
|
|
863
|
+
font-size: var(--page-hero-kicker-size, var(--_eyebrow-size));
|
|
864
|
+
font-weight: var(--page-hero-kicker-weight, var(--_eyebrow-weight));
|
|
865
|
+
letter-spacing: var(--page-hero-kicker-tracking, var(--_eyebrow-tracking));
|
|
866
|
+
}
|
|
867
|
+
/* surface="primary" (8.5.0): the band on the primary fill, every word in
|
|
868
|
+
--on-primary (the kicker by .on-primary, the heading by the ground). */
|
|
869
|
+
.atelic-ui .page-hero[data-ground="primary"] {
|
|
870
|
+
background: var(--primary-fill, var(--primary));
|
|
871
|
+
color: var(--on-primary);
|
|
872
|
+
}
|
|
873
|
+
.atelic-ui .page-hero[data-ground="primary"] .lead {
|
|
874
|
+
color: var(--on-primary);
|
|
875
|
+
}
|
|
590
876
|
|
|
591
877
|
/* ---- FAQBrowser (faq-browser.css) ---- */
|
|
592
878
|
/* =================================================================
|
|
@@ -1092,10 +1378,11 @@
|
|
|
1092
1378
|
kicker tokens. */
|
|
1093
1379
|
/* --hero-kicker-display: block and --hero-kicker-leading lay the kicker
|
|
1094
1380
|
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
|
|
1096
|
-
than its own type
|
|
1381
|
+
inline block it was (defaults.css), in the copy's line box, which
|
|
1382
|
+
stands it taller than its own type; the leading is inherited by
|
|
1383
|
+
default, read in place, since no custom property can hold inherit. */
|
|
1097
1384
|
.atelic-ui .hero .eyebrow {
|
|
1098
|
-
display: var(--hero-kicker-display
|
|
1385
|
+
display: var(--hero-kicker-display);
|
|
1099
1386
|
line-height: var(--hero-kicker-leading, inherit);
|
|
1100
1387
|
font-size: var(--hero-kicker-size, var(--_eyebrow-size));
|
|
1101
1388
|
font-weight: var(--hero-kicker-weight, var(--_eyebrow-weight));
|
|
@@ -1305,7 +1592,8 @@
|
|
|
1305
1592
|
justify-content: space-between;
|
|
1306
1593
|
gap: 16px;
|
|
1307
1594
|
padding: 9px 0;
|
|
1308
|
-
|
|
1595
|
+
/* --hours-rule (8.5.0): the line under each row, dashed unless set. */
|
|
1596
|
+
border-bottom: var(--hours-rule, 1px dashed var(--neutral-200));
|
|
1309
1597
|
font-size: 0.95rem;
|
|
1310
1598
|
}
|
|
1311
1599
|
.atelic-ui .hours-row.closed {
|
|
@@ -1315,8 +1603,8 @@
|
|
|
1315
1603
|
font-weight: var(--weight-semibold);
|
|
1316
1604
|
}
|
|
1317
1605
|
.atelic-ui .hours-row .time {
|
|
1318
|
-
font-family: var(--font-mono);
|
|
1319
|
-
font-size:
|
|
1606
|
+
font-family: var(--hours-time-font, var(--font-mono));
|
|
1607
|
+
font-size: var(--hours-time-size);
|
|
1320
1608
|
}
|
|
1321
1609
|
|
|
1322
1610
|
/* ---- LegalPage (legal-page.css) ---- */
|
package/src/types.ts
CHANGED
|
@@ -302,13 +302,13 @@ export interface PostalAddress {
|
|
|
302
302
|
postalCode?: string;
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
/** One row of opening hours, already formatted by the site. */
|
|
306
305
|
/**
|
|
307
306
|
* Where the footer sets the hours: `column`, a column of their own beside
|
|
308
307
|
* the link columns, or `brand`, a compact list inside the brand column.
|
|
309
308
|
*/
|
|
310
309
|
export type FooterHoursPlacement = "column" | "brand";
|
|
311
310
|
|
|
311
|
+
/** One row of opening hours, already formatted by the site. */
|
|
312
312
|
export interface HoursRow {
|
|
313
313
|
/** The day label as printed, e.g. "Mon" or "Fri to Sun". */
|
|
314
314
|
label: string;
|
|
@@ -318,7 +318,12 @@ export interface HoursRow {
|
|
|
318
318
|
|
|
319
319
|
/** The contact block at the foot of the menu. */
|
|
320
320
|
export interface MenuContact {
|
|
321
|
-
|
|
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 };
|
|
322
327
|
email?: string;
|
|
323
328
|
address?: PostalAddress;
|
|
324
329
|
}
|