@brandlab-digital/site-next 3.20.0 → 4.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/dist/instrumentation-client.d.ts +1 -1
- package/dist/instrumentation-client.js +1 -1
- package/dist/instrumentation-client.js.map +1 -1
- package/dist/navigation/index.d.ts +2 -3
- package/dist/navigation/index.d.ts.map +1 -1
- package/dist/navigation/index.js +2 -3
- package/dist/navigation/index.js.map +1 -1
- package/dist/next-config.d.ts +1 -17
- package/dist/next-config.d.ts.map +1 -1
- package/dist/next-config.js +2 -33
- package/dist/next-config.js.map +1 -1
- package/package.json +4 -33
- package/dist/ui-kit/brandlab-skin.d.ts +0 -112
- package/dist/ui-kit/brandlab-skin.d.ts.map +0 -1
- package/dist/ui-kit/brandlab-skin.js +0 -2
- package/dist/ui-kit/brandlab-skin.js.map +0 -1
- package/dist/ui-kit/form/copy.d.ts +0 -3
- package/dist/ui-kit/form/copy.d.ts.map +0 -1
- package/dist/ui-kit/form/copy.js +0 -5
- package/dist/ui-kit/form/copy.js.map +0 -1
- package/dist/ui-kit/form/dialog.d.ts +0 -24
- package/dist/ui-kit/form/dialog.d.ts.map +0 -1
- package/dist/ui-kit/form/dialog.js +0 -17
- package/dist/ui-kit/form/dialog.js.map +0 -1
- package/dist/ui-kit/form/field.d.ts +0 -30
- package/dist/ui-kit/form/field.d.ts.map +0 -1
- package/dist/ui-kit/form/field.js +0 -11
- package/dist/ui-kit/form/field.js.map +0 -1
- package/dist/ui-kit/form/index.d.ts +0 -7
- package/dist/ui-kit/form/index.d.ts.map +0 -1
- package/dist/ui-kit/form/index.js +0 -7
- package/dist/ui-kit/form/index.js.map +0 -1
- package/dist/ui-kit/form/photo-upload.d.ts +0 -40
- package/dist/ui-kit/form/photo-upload.d.ts.map +0 -1
- package/dist/ui-kit/form/photo-upload.js +0 -19
- package/dist/ui-kit/form/photo-upload.js.map +0 -1
- package/dist/ui-kit/form/quote-dialog.d.ts +0 -15
- package/dist/ui-kit/form/quote-dialog.d.ts.map +0 -1
- package/dist/ui-kit/form/quote-dialog.js +0 -68
- package/dist/ui-kit/form/quote-dialog.js.map +0 -1
- package/dist/ui-kit/form/quote-form.d.ts +0 -172
- package/dist/ui-kit/form/quote-form.d.ts.map +0 -1
- package/dist/ui-kit/form/quote-form.js +0 -238
- package/dist/ui-kit/form/quote-form.js.map +0 -1
- package/dist/ui-kit/form/thank-you.d.ts +0 -40
- package/dist/ui-kit/form/thank-you.d.ts.map +0 -1
- package/dist/ui-kit/form/thank-you.js +0 -36
- package/dist/ui-kit/form/thank-you.js.map +0 -1
- package/dist/ui-kit/icon-glyphs.d.ts +0 -41
- package/dist/ui-kit/icon-glyphs.d.ts.map +0 -1
- package/dist/ui-kit/icon-glyphs.js +0 -138
- package/dist/ui-kit/icon-glyphs.js.map +0 -1
- package/dist/ui-kit/icon-sprite.d.ts +0 -19
- package/dist/ui-kit/icon-sprite.d.ts.map +0 -1
- package/dist/ui-kit/icon-sprite.js +0 -44
- package/dist/ui-kit/icon-sprite.js.map +0 -1
- package/dist/ui-kit/icons.d.ts +0 -50
- package/dist/ui-kit/icons.d.ts.map +0 -1
- package/dist/ui-kit/icons.js +0 -55
- package/dist/ui-kit/icons.js.map +0 -1
- package/dist/ui-kit/prefetch.d.ts +0 -59
- package/dist/ui-kit/prefetch.d.ts.map +0 -1
- package/dist/ui-kit/prefetch.js +0 -63
- package/dist/ui-kit/prefetch.js.map +0 -1
- package/dist/ui-kit/primitives/badge.d.ts +0 -25
- package/dist/ui-kit/primitives/badge.d.ts.map +0 -1
- package/dist/ui-kit/primitives/badge.js +0 -21
- package/dist/ui-kit/primitives/badge.js.map +0 -1
- package/dist/ui-kit/primitives/breadcrumbs.d.ts +0 -27
- package/dist/ui-kit/primitives/breadcrumbs.d.ts.map +0 -1
- package/dist/ui-kit/primitives/breadcrumbs.js +0 -40
- package/dist/ui-kit/primitives/breadcrumbs.js.map +0 -1
- package/dist/ui-kit/primitives/button.d.ts +0 -32
- package/dist/ui-kit/primitives/button.d.ts.map +0 -1
- package/dist/ui-kit/primitives/button.js +0 -8
- package/dist/ui-kit/primitives/button.js.map +0 -1
- package/dist/ui-kit/primitives/card.d.ts +0 -40
- package/dist/ui-kit/primitives/card.d.ts.map +0 -1
- package/dist/ui-kit/primitives/card.js +0 -8
- package/dist/ui-kit/primitives/card.js.map +0 -1
- package/dist/ui-kit/primitives/index.d.ts +0 -16
- package/dist/ui-kit/primitives/index.d.ts.map +0 -1
- package/dist/ui-kit/primitives/index.js +0 -16
- package/dist/ui-kit/primitives/index.js.map +0 -1
- package/dist/ui-kit/primitives/layout.d.ts +0 -85
- package/dist/ui-kit/primitives/layout.d.ts.map +0 -1
- package/dist/ui-kit/primitives/layout.js +0 -52
- package/dist/ui-kit/primitives/layout.js.map +0 -1
- package/dist/ui-kit/primitives/links.d.ts +0 -74
- package/dist/ui-kit/primitives/links.d.ts.map +0 -1
- package/dist/ui-kit/primitives/links.js +0 -41
- package/dist/ui-kit/primitives/links.js.map +0 -1
- package/dist/ui-kit/primitives/lists.d.ts +0 -51
- package/dist/ui-kit/primitives/lists.d.ts.map +0 -1
- package/dist/ui-kit/primitives/lists.js +0 -34
- package/dist/ui-kit/primitives/lists.js.map +0 -1
- package/dist/ui-kit/primitives/media-frame.d.ts +0 -33
- package/dist/ui-kit/primitives/media-frame.d.ts.map +0 -1
- package/dist/ui-kit/primitives/media-frame.js +0 -61
- package/dist/ui-kit/primitives/media-frame.js.map +0 -1
- package/dist/ui-kit/primitives/media.d.ts +0 -40
- package/dist/ui-kit/primitives/media.d.ts.map +0 -1
- package/dist/ui-kit/primitives/media.js +0 -9
- package/dist/ui-kit/primitives/media.js.map +0 -1
- package/dist/ui-kit/primitives/quote-button.d.ts +0 -46
- package/dist/ui-kit/primitives/quote-button.d.ts.map +0 -1
- package/dist/ui-kit/primitives/quote-button.js +0 -38
- package/dist/ui-kit/primitives/quote-button.js.map +0 -1
- package/dist/ui-kit/primitives/stat.d.ts +0 -25
- package/dist/ui-kit/primitives/stat.d.ts.map +0 -1
- package/dist/ui-kit/primitives/stat.js +0 -7
- package/dist/ui-kit/primitives/stat.js.map +0 -1
- package/dist/ui-kit/repeated-slots.d.ts +0 -153
- package/dist/ui-kit/repeated-slots.d.ts.map +0 -1
- package/dist/ui-kit/repeated-slots.js +0 -100
- package/dist/ui-kit/repeated-slots.js.map +0 -1
- package/dist/ui-kit/sections/accordion.d.ts +0 -28
- package/dist/ui-kit/sections/accordion.d.ts.map +0 -1
- package/dist/ui-kit/sections/accordion.js +0 -14
- package/dist/ui-kit/sections/accordion.js.map +0 -1
- package/dist/ui-kit/sections/area-map.d.ts +0 -64
- package/dist/ui-kit/sections/area-map.d.ts.map +0 -1
- package/dist/ui-kit/sections/area-map.js +0 -146
- package/dist/ui-kit/sections/area-map.js.map +0 -1
- package/dist/ui-kit/sections/before-after.d.ts +0 -59
- package/dist/ui-kit/sections/before-after.d.ts.map +0 -1
- package/dist/ui-kit/sections/before-after.js +0 -42
- package/dist/ui-kit/sections/before-after.js.map +0 -1
- package/dist/ui-kit/sections/contact-block.d.ts +0 -77
- package/dist/ui-kit/sections/contact-block.d.ts.map +0 -1
- package/dist/ui-kit/sections/contact-block.js +0 -23
- package/dist/ui-kit/sections/contact-block.js.map +0 -1
- package/dist/ui-kit/sections/council-rules.d.ts +0 -64
- package/dist/ui-kit/sections/council-rules.d.ts.map +0 -1
- package/dist/ui-kit/sections/council-rules.js +0 -46
- package/dist/ui-kit/sections/council-rules.js.map +0 -1
- package/dist/ui-kit/sections/coverage.d.ts +0 -53
- package/dist/ui-kit/sections/coverage.d.ts.map +0 -1
- package/dist/ui-kit/sections/coverage.js +0 -57
- package/dist/ui-kit/sections/coverage.js.map +0 -1
- package/dist/ui-kit/sections/cta-band.d.ts +0 -67
- package/dist/ui-kit/sections/cta-band.d.ts.map +0 -1
- package/dist/ui-kit/sections/cta-band.js +0 -11
- package/dist/ui-kit/sections/cta-band.js.map +0 -1
- package/dist/ui-kit/sections/emergency-band.d.ts +0 -60
- package/dist/ui-kit/sections/emergency-band.d.ts.map +0 -1
- package/dist/ui-kit/sections/emergency-band.js +0 -43
- package/dist/ui-kit/sections/emergency-band.js.map +0 -1
- package/dist/ui-kit/sections/faqs.d.ts +0 -46
- package/dist/ui-kit/sections/faqs.d.ts.map +0 -1
- package/dist/ui-kit/sections/faqs.js +0 -39
- package/dist/ui-kit/sections/faqs.js.map +0 -1
- package/dist/ui-kit/sections/gallery.d.ts +0 -60
- package/dist/ui-kit/sections/gallery.d.ts.map +0 -1
- package/dist/ui-kit/sections/gallery.js +0 -39
- package/dist/ui-kit/sections/gallery.js.map +0 -1
- package/dist/ui-kit/sections/hero.d.ts +0 -168
- package/dist/ui-kit/sections/hero.d.ts.map +0 -1
- package/dist/ui-kit/sections/hero.js +0 -147
- package/dist/ui-kit/sections/hero.js.map +0 -1
- package/dist/ui-kit/sections/index.d.ts +0 -29
- package/dist/ui-kit/sections/index.d.ts.map +0 -1
- package/dist/ui-kit/sections/index.js +0 -29
- package/dist/ui-kit/sections/index.js.map +0 -1
- package/dist/ui-kit/sections/licences.d.ts +0 -95
- package/dist/ui-kit/sections/licences.d.ts.map +0 -1
- package/dist/ui-kit/sections/licences.js +0 -72
- package/dist/ui-kit/sections/licences.js.map +0 -1
- package/dist/ui-kit/sections/local-facts.d.ts +0 -107
- package/dist/ui-kit/sections/local-facts.d.ts.map +0 -1
- package/dist/ui-kit/sections/local-facts.js +0 -44
- package/dist/ui-kit/sections/local-facts.js.map +0 -1
- package/dist/ui-kit/sections/nearby-areas.d.ts +0 -50
- package/dist/ui-kit/sections/nearby-areas.d.ts.map +0 -1
- package/dist/ui-kit/sections/nearby-areas.js +0 -49
- package/dist/ui-kit/sections/nearby-areas.js.map +0 -1
- package/dist/ui-kit/sections/nearby-jobs.d.ts +0 -84
- package/dist/ui-kit/sections/nearby-jobs.d.ts.map +0 -1
- package/dist/ui-kit/sections/nearby-jobs.js +0 -72
- package/dist/ui-kit/sections/nearby-jobs.js.map +0 -1
- package/dist/ui-kit/sections/page-header.d.ts +0 -29
- package/dist/ui-kit/sections/page-header.d.ts.map +0 -1
- package/dist/ui-kit/sections/page-header.js +0 -9
- package/dist/ui-kit/sections/page-header.js.map +0 -1
- package/dist/ui-kit/sections/price-guide.d.ts +0 -59
- package/dist/ui-kit/sections/price-guide.d.ts.map +0 -1
- package/dist/ui-kit/sections/price-guide.js +0 -28
- package/dist/ui-kit/sections/price-guide.js.map +0 -1
- package/dist/ui-kit/sections/price-table.d.ts +0 -42
- package/dist/ui-kit/sections/price-table.d.ts.map +0 -1
- package/dist/ui-kit/sections/price-table.js +0 -29
- package/dist/ui-kit/sections/price-table.js.map +0 -1
- package/dist/ui-kit/sections/projects.d.ts +0 -79
- package/dist/ui-kit/sections/projects.d.ts.map +0 -1
- package/dist/ui-kit/sections/projects.js +0 -69
- package/dist/ui-kit/sections/projects.js.map +0 -1
- package/dist/ui-kit/sections/proof-strip.d.ts +0 -68
- package/dist/ui-kit/sections/proof-strip.d.ts.map +0 -1
- package/dist/ui-kit/sections/proof-strip.js +0 -27
- package/dist/ui-kit/sections/proof-strip.js.map +0 -1
- package/dist/ui-kit/sections/quote-checklist.d.ts +0 -43
- package/dist/ui-kit/sections/quote-checklist.d.ts.map +0 -1
- package/dist/ui-kit/sections/quote-checklist.js +0 -19
- package/dist/ui-kit/sections/quote-checklist.js.map +0 -1
- package/dist/ui-kit/sections/rating-chip.d.ts +0 -35
- package/dist/ui-kit/sections/rating-chip.d.ts.map +0 -1
- package/dist/ui-kit/sections/rating-chip.js +0 -21
- package/dist/ui-kit/sections/rating-chip.js.map +0 -1
- package/dist/ui-kit/sections/related-services.d.ts +0 -41
- package/dist/ui-kit/sections/related-services.d.ts.map +0 -1
- package/dist/ui-kit/sections/related-services.js +0 -52
- package/dist/ui-kit/sections/related-services.js.map +0 -1
- package/dist/ui-kit/sections/reviews-band.d.ts +0 -124
- package/dist/ui-kit/sections/reviews-band.d.ts.map +0 -1
- package/dist/ui-kit/sections/reviews-band.js +0 -115
- package/dist/ui-kit/sections/reviews-band.js.map +0 -1
- package/dist/ui-kit/sections/section-sequence.d.ts +0 -41
- package/dist/ui-kit/sections/section-sequence.d.ts.map +0 -1
- package/dist/ui-kit/sections/section-sequence.js +0 -36
- package/dist/ui-kit/sections/section-sequence.js.map +0 -1
- package/dist/ui-kit/sections/services-grid.d.ts +0 -82
- package/dist/ui-kit/sections/services-grid.d.ts.map +0 -1
- package/dist/ui-kit/sections/services-grid.js +0 -90
- package/dist/ui-kit/sections/services-grid.js.map +0 -1
- package/dist/ui-kit/sections/signature-section.d.ts +0 -42
- package/dist/ui-kit/sections/signature-section.d.ts.map +0 -1
- package/dist/ui-kit/sections/signature-section.js +0 -14
- package/dist/ui-kit/sections/signature-section.js.map +0 -1
- package/dist/ui-kit/sections/site-footer-columns.d.ts +0 -12
- package/dist/ui-kit/sections/site-footer-columns.d.ts.map +0 -1
- package/dist/ui-kit/sections/site-footer-columns.js +0 -63
- package/dist/ui-kit/sections/site-footer-columns.js.map +0 -1
- package/dist/ui-kit/sections/site-footer.d.ts +0 -66
- package/dist/ui-kit/sections/site-footer.d.ts.map +0 -1
- package/dist/ui-kit/sections/site-footer.js +0 -49
- package/dist/ui-kit/sections/site-footer.js.map +0 -1
- package/dist/ui-kit/sections/work-photos.d.ts +0 -15
- package/dist/ui-kit/sections/work-photos.d.ts.map +0 -1
- package/dist/ui-kit/sections/work-photos.js +0 -24
- package/dist/ui-kit/sections/work-photos.js.map +0 -1
- package/dist/ui-kit/shell/back-to-top-client.d.ts +0 -9
- package/dist/ui-kit/shell/back-to-top-client.d.ts.map +0 -1
- package/dist/ui-kit/shell/back-to-top-client.js +0 -8
- package/dist/ui-kit/shell/back-to-top-client.js.map +0 -1
- package/dist/ui-kit/shell/back-to-top.d.ts +0 -13
- package/dist/ui-kit/shell/back-to-top.d.ts.map +0 -1
- package/dist/ui-kit/shell/back-to-top.js +0 -14
- package/dist/ui-kit/shell/back-to-top.js.map +0 -1
- package/dist/ui-kit/shell/call-bar-client.d.ts +0 -8
- package/dist/ui-kit/shell/call-bar-client.d.ts.map +0 -1
- package/dist/ui-kit/shell/call-bar-client.js +0 -13
- package/dist/ui-kit/shell/call-bar-client.js.map +0 -1
- package/dist/ui-kit/shell/current-link.d.ts +0 -45
- package/dist/ui-kit/shell/current-link.d.ts.map +0 -1
- package/dist/ui-kit/shell/current-link.js +0 -54
- package/dist/ui-kit/shell/current-link.js.map +0 -1
- package/dist/ui-kit/shell/drawer-client.d.ts +0 -22
- package/dist/ui-kit/shell/drawer-client.d.ts.map +0 -1
- package/dist/ui-kit/shell/drawer-client.js +0 -70
- package/dist/ui-kit/shell/drawer-client.js.map +0 -1
- package/dist/ui-kit/shell/header-client.d.ts +0 -44
- package/dist/ui-kit/shell/header-client.d.ts.map +0 -1
- package/dist/ui-kit/shell/header-client.js +0 -59
- package/dist/ui-kit/shell/header-client.js.map +0 -1
- package/dist/ui-kit/shell/index.d.ts +0 -7
- package/dist/ui-kit/shell/index.d.ts.map +0 -1
- package/dist/ui-kit/shell/index.js +0 -7
- package/dist/ui-kit/shell/index.js.map +0 -1
- package/dist/ui-kit/shell/intent-prefetch.d.ts +0 -4
- package/dist/ui-kit/shell/intent-prefetch.d.ts.map +0 -1
- package/dist/ui-kit/shell/intent-prefetch.js +0 -62
- package/dist/ui-kit/shell/intent-prefetch.js.map +0 -1
- package/dist/ui-kit/shell/mobile-call-bar.d.ts +0 -25
- package/dist/ui-kit/shell/mobile-call-bar.d.ts.map +0 -1
- package/dist/ui-kit/shell/mobile-call-bar.js +0 -21
- package/dist/ui-kit/shell/mobile-call-bar.js.map +0 -1
- package/dist/ui-kit/shell/mobile-drawer.d.ts +0 -41
- package/dist/ui-kit/shell/mobile-drawer.d.ts.map +0 -1
- package/dist/ui-kit/shell/mobile-drawer.js +0 -41
- package/dist/ui-kit/shell/mobile-drawer.js.map +0 -1
- package/dist/ui-kit/shell/shell-context.d.ts +0 -3
- package/dist/ui-kit/shell/shell-context.d.ts.map +0 -1
- package/dist/ui-kit/shell/shell-context.js +0 -5
- package/dist/ui-kit/shell/shell-context.js.map +0 -1
- package/dist/ui-kit/shell/shell-quote.d.ts +0 -10
- package/dist/ui-kit/shell/shell-quote.d.ts.map +0 -1
- package/dist/ui-kit/shell/shell-quote.js +0 -13
- package/dist/ui-kit/shell/shell-quote.js.map +0 -1
- package/dist/ui-kit/shell/site-header.d.ts +0 -55
- package/dist/ui-kit/shell/site-header.d.ts.map +0 -1
- package/dist/ui-kit/shell/site-header.js +0 -35
- package/dist/ui-kit/shell/site-header.js.map +0 -1
- package/dist/ui-kit/shell/social-links.d.ts +0 -7
- package/dist/ui-kit/shell/social-links.d.ts.map +0 -1
- package/dist/ui-kit/shell/social-links.js +0 -12
- package/dist/ui-kit/shell/social-links.js.map +0 -1
- package/dist/ui-kit/shell/utility-bar.d.ts +0 -33
- package/dist/ui-kit/shell/utility-bar.d.ts.map +0 -1
- package/dist/ui-kit/shell/utility-bar.js +0 -15
- package/dist/ui-kit/shell/utility-bar.js.map +0 -1
- package/dist/ui-kit/skin-index.d.ts +0 -4
- package/dist/ui-kit/skin-index.d.ts.map +0 -1
- package/dist/ui-kit/skin-index.js +0 -3
- package/dist/ui-kit/skin-index.js.map +0 -1
- package/dist/ui-kit/skin.d.ts +0 -65
- package/dist/ui-kit/skin.d.ts.map +0 -1
- package/dist/ui-kit/skin.js +0 -60
- package/dist/ui-kit/skin.js.map +0 -1
- package/dist/ui-kit/structure.css +0 -2546
- package/dist/ui-kit/types.d.ts +0 -27
- package/dist/ui-kit/types.d.ts.map +0 -1
- package/dist/ui-kit/types.js +0 -6
- package/dist/ui-kit/types.js.map +0 -1
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `ProofStrip` (S3, `proof-strip`): the business's verified strengths straight after the hero: the live rating from
|
|
3
|
-
* the feed, licence lines, insurance, years trading and partner logos. Server component. It takes items that are
|
|
4
|
-
* already verified (`verified` or `legacy-carried` facts, T4); it never counts up or hides text before scripts run.
|
|
5
|
-
* With fewer than three items it renders nothing and reports `merge-into-hero-checklist`: the facts belong in the
|
|
6
|
-
* hero's checklist instead (v1 §7.2).
|
|
7
|
-
*
|
|
8
|
-
* 3.16.0: an item with `href` links its value and label to where the fact can be checked (the reviews, the licence
|
|
9
|
-
* register, the about page), never prefetched; external links open in a new tab. The `tiles` variant sets each value
|
|
10
|
-
* as a large figure (`--bl-proof-figure-size`) over its label, as AA's home strip does.
|
|
11
|
-
*/
|
|
12
|
-
import type { ReactNode } from 'react';
|
|
13
|
-
import { type BrandlabSectionReadiness } from '@brandlab-digital/site-core/section-order';
|
|
14
|
-
import { type UiIconName } from '../icons.js';
|
|
15
|
-
import { type SectionSlot, type SectionTone } from '../primitives/layout.js';
|
|
16
|
-
import type { RepeatedSlotOf } from '../repeated-slots.js';
|
|
17
|
-
import { type SkinEntry } from '../skin.js';
|
|
18
|
-
export declare const PROOF_STRIP_VARIANTS: readonly ["inline", "tiles"];
|
|
19
|
-
export type ProofStripVariant = (typeof PROOF_STRIP_VARIANTS)[number];
|
|
20
|
-
export type ProofStripSlot = SectionSlot | 'heading' | 'list' | 'item' | 'link' | 'icon' | 'stars' | 'value' | 'label' | 'linkLabel' | 'logos';
|
|
21
|
-
/** `heading`: the section's H2 is visually hidden by default; a skin may show it. */
|
|
22
|
-
/** Rendered once per proof item: styled from the skin stylesheet, never by class (3.14.0). */
|
|
23
|
-
export type ProofStripRepeatedSlot = RepeatedSlotOf<'proofStrip'>;
|
|
24
|
-
export type ProofStripSkin = SkinEntry<ProofStripSlot, ProofStripVariant, {
|
|
25
|
-
heading?: 'hidden' | 'visible';
|
|
26
|
-
}, ProofStripRepeatedSlot>;
|
|
27
|
-
/** The fewest items a strip shows; below this the facts merge into the hero checklist. */
|
|
28
|
-
export declare const PROOF_STRIP_MINIMUM = 3;
|
|
29
|
-
interface ProofItemBase {
|
|
30
|
-
/** A stable slug, rendered as `data-item`. */
|
|
31
|
-
readonly id: string;
|
|
32
|
-
readonly label: string;
|
|
33
|
-
readonly icon?: UiIconName;
|
|
34
|
-
/** Where the fact can be checked (3.16.0), for example `/reviews` or the licence register. */
|
|
35
|
-
readonly href?: string;
|
|
36
|
-
/** A visible cue under the label when `href` is set (3.17.0), for example "Read reviews". An arrow follows it. */
|
|
37
|
-
readonly linkLabel?: string;
|
|
38
|
-
}
|
|
39
|
-
/** One verified fact, for example `{ id: 'licence', value: '276621C', label: 'NSW contractor licence' }`. */
|
|
40
|
-
export interface ProofFactItem extends ProofItemBase {
|
|
41
|
-
readonly value?: string;
|
|
42
|
-
readonly rating?: never;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* The live rating from the reviews feed (F9), never typed by hand (T4). Its value is the rating itself ("4.9"), with
|
|
46
|
-
* the stars beside it, and the item is marked `data-bl-source="feed"`, as the reviews band marks its root.
|
|
47
|
-
*/
|
|
48
|
-
export interface ProofRatingItem extends ProofItemBase {
|
|
49
|
-
readonly rating: number;
|
|
50
|
-
readonly value?: never;
|
|
51
|
-
}
|
|
52
|
-
export type ProofItem = ProofFactItem | ProofRatingItem;
|
|
53
|
-
export interface ProofStripProps extends ProofStripSkin {
|
|
54
|
-
/** The H2, for example "Why homeowners choose Omega". Visually hidden unless the skin shows it. */
|
|
55
|
-
readonly title: string;
|
|
56
|
-
readonly items: readonly ProofItem[];
|
|
57
|
-
/** Partner logos (a `LogoStrip` of verified relationships). Counts as one item. */
|
|
58
|
-
readonly logos?: ReactNode;
|
|
59
|
-
/** Defaults to `proof-heading`. */
|
|
60
|
-
readonly headingId?: string;
|
|
61
|
-
/** Set by `SectionSequence`. */
|
|
62
|
-
readonly tone?: SectionTone;
|
|
63
|
-
}
|
|
64
|
-
/** Whether the strip renders: at least three items, logos counting as one (`merge-into-hero-checklist`). */
|
|
65
|
-
export declare function proofStripReady({ items, logos }: Pick<ProofStripProps, 'items' | 'logos'>): BrandlabSectionReadiness;
|
|
66
|
-
export declare function ProofStrip({ title, items, logos, headingId, tone, variant, layout, classes }: ProofStripProps): import("react/jsx-runtime").JSX.Element | null;
|
|
67
|
-
export {};
|
|
68
|
-
//# sourceMappingURL=proof-strip.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proof-strip.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/sections/proof-strip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAiB,KAAK,wBAAwB,EAAE,MAAM,2CAA2C,CAAA;AACxG,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,aAAa,CAAA;AAEnD,OAAO,EAAwB,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAClG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAA;AAE/D,eAAO,MAAM,oBAAoB,8BAA+B,CAAA;AAChE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAA;AACrE,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,CAAA;AAC9I,qFAAqF;AACrF,8FAA8F;AAC9F,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,YAAY,CAAC,CAAA;AACjE,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC,cAAc,EAAE,iBAAiB,EAAE;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAAE,EAAE,sBAAsB,CAAC,CAAA;AAErI,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAEpC,UAAU,aAAa;IACr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AAE,OAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,eAAe,kDAyD1I"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { SECTION_READY } from '@brandlab-digital/site-core/section-order';
|
|
3
|
-
import { Icon } from '../icons.js';
|
|
4
|
-
import { Anchor } from '../primitives/links.js';
|
|
5
|
-
import { RatingStars, Section } from '../primitives/layout.js';
|
|
6
|
-
import { repeatedSlot, slot } from '../skin.js';
|
|
7
|
-
export const PROOF_STRIP_VARIANTS = ['inline', 'tiles'];
|
|
8
|
-
/** The fewest items a strip shows; below this the facts merge into the hero checklist. */
|
|
9
|
-
export const PROOF_STRIP_MINIMUM = 3;
|
|
10
|
-
/** Whether the strip renders: at least three items, logos counting as one (`merge-into-hero-checklist`). */
|
|
11
|
-
export function proofStripReady({ items, logos }) {
|
|
12
|
-
const count = items.length + (logos ? 1 : 0);
|
|
13
|
-
return count >= PROOF_STRIP_MINIMUM ? SECTION_READY : { render: false, reason: 'merge-into-hero-checklist' };
|
|
14
|
-
}
|
|
15
|
-
export function ProofStrip({ title, items, logos, headingId = 'proof-heading', tone, variant = 'inline', layout, classes }) {
|
|
16
|
-
if (!proofStripReady({ items, logos }).render)
|
|
17
|
-
return null;
|
|
18
|
-
const unlinked = items.find((item) => item.linkLabel && !item.href);
|
|
19
|
-
if (unlinked)
|
|
20
|
-
throw new Error(`ProofStrip: "${unlinked.id}" has a link label but no href.`);
|
|
21
|
-
const hidden = (layout?.heading ?? 'hidden') === 'hidden';
|
|
22
|
-
return (_jsxs(Section, { id: "proof-strip", labelledBy: headingId, tone: tone, variant: variant, classes: classes, children: [_jsx("h2", { id: headingId, ...slot(classes, 'heading'), "data-bl-visually-hidden": hidden ? '' : undefined, children: title }), items.length > 0 ? (_jsx("ul", { role: "list", ...slot(classes, 'list'), children: items.map((item) => {
|
|
23
|
-
const content = (_jsxs(_Fragment, { children: [item.icon ? (_jsx("span", { ...repeatedSlot('icon'), children: _jsx(Icon, { name: item.icon }) })) : null, item.rating !== undefined ? (_jsx("span", { ...repeatedSlot('stars'), "aria-hidden": "true", children: _jsx(RatingStars, { rating: item.rating }) })) : null, item.rating !== undefined ? (_jsx("span", { ...repeatedSlot('value'), children: item.rating.toFixed(1) })) : item.value ? (_jsx("span", { ...repeatedSlot('value'), children: item.value })) : null, ' ', _jsx("span", { ...repeatedSlot('label'), children: item.label }), item.href && item.linkLabel ? (_jsxs("span", { ...repeatedSlot('linkLabel'), children: [' ', item.linkLabel, _jsx(Icon, { name: "arrow" })] })) : null] }));
|
|
24
|
-
return (_jsx("li", { ...repeatedSlot('item'), "data-item": item.id, "data-bl-source": item.rating !== undefined ? 'feed' : undefined, children: item.href ? (_jsx(Anchor, { href: item.href, prefetch: false, hooks: repeatedSlot('link'), children: content })) : (content) }, item.id));
|
|
25
|
-
}) })) : null, logos ? _jsx("div", { ...slot(classes, 'logos'), children: logos }) : null] }));
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=proof-strip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proof-strip.js","sourceRoot":"","sources":["../../../src/ui-kit/sections/proof-strip.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,aAAa,EAAiC,MAAM,2CAA2C,CAAA;AACxG,OAAO,EAAE,IAAI,EAAmB,MAAM,aAAa,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAsC,MAAM,yBAAyB,CAAA;AAElG,OAAO,EAAE,YAAY,EAAE,IAAI,EAAkB,MAAM,YAAY,CAAA;AAE/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAA;AAQhE,0FAA0F;AAC1F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAA;AA0CpC,4G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AsB,YAAY,CAAC,MAAM,CAAC,eAAa,IAAI,CAAC,EAAE,oBAAkB,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAC3H,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CACX,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,YAClE,OAAO,GACD,CACV,CAAC,CAAC,CAAC,CACF,OAAO,CACR,IAPM,IAAI,CAAC,EAAE,CAQX,CACN,CAAA;gBACH,CAAC,CAAC,GACC,CACN,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,CAAC,CAAC,iBAAS,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,YAAG,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,IACtD,CACX,CAAA;AACH,CAAC","sourcesContent":["/**\n * `ProofStrip` (S3, `proof-strip`): the business's verified strengths straight after the hero: the live rating from\n * the feed, licence lines, insurance, years trading and partner logos. Server component. It takes items that are\n * already verified (`verified` or `legacy-carried` facts, T4); it never counts up or hides text before scripts run.\n * With fewer than three items it renders nothing and reports `merge-into-hero-checklist`: the facts belong in the\n * hero's checklist instead (v1 §7.2).\n *\n * 3.16.0: an item with `href` links its value and label to where the fact can be checked (the reviews, the licence\n * register, the about page), never prefetched; external links open in a new tab. The `tiles` variant sets each value\n * as a large figure (`--bl-proof-figure-size`) over its label, as AA's home strip does.\n */\nimport type { ReactNode } from 'react'\nimport { SECTION_READY, type BrandlabSectionReadiness } from '@brandlab-digital/site-core/section-order'\nimport { Icon, type UiIconName } from '../icons.js'\nimport { Anchor } from '../primitives/links.js'\nimport { RatingStars, Section, type SectionSlot, type SectionTone } from '../primitives/layout.js'\nimport type { RepeatedSlotOf } from '../repeated-slots.js'\nimport { repeatedSlot, slot, type SkinEntry } from '../skin.js'\n\nexport const PROOF_STRIP_VARIANTS = ['inline', 'tiles'] as const\nexport type ProofStripVariant = (typeof PROOF_STRIP_VARIANTS)[number]\nexport type ProofStripSlot = SectionSlot | 'heading' | 'list' | 'item' | 'link' | 'icon' | 'stars' | 'value' | 'label' | 'linkLabel' | 'logos'\n/** `heading`: the section's H2 is visually hidden by default; a skin may show it. */\n/** Rendered once per proof item: styled from the skin stylesheet, never by class (3.14.0). */\nexport type ProofStripRepeatedSlot = RepeatedSlotOf<'proofStrip'>\nexport type ProofStripSkin = SkinEntry<ProofStripSlot, ProofStripVariant, { heading?: 'hidden' | 'visible' }, ProofStripRepeatedSlot>\n\n/** The fewest items a strip shows; below this the facts merge into the hero checklist. */\nexport const PROOF_STRIP_MINIMUM = 3\n\ninterface ProofItemBase {\n /** A stable slug, rendered as `data-item`. */\n readonly id: string\n readonly label: string\n readonly icon?: UiIconName\n /** Where the fact can be checked (3.16.0), for example `/reviews` or the licence register. */\n readonly href?: string\n /** A visible cue under the label when `href` is set (3.17.0), for example \"Read reviews\". An arrow follows it. */\n readonly linkLabel?: string\n}\n\n/** One verified fact, for example `{ id: 'licence', value: '276621C', label: 'NSW contractor licence' }`. */\nexport interface ProofFactItem extends ProofItemBase {\n readonly value?: string\n readonly rating?: never\n}\n\n/**\n * The live rating from the reviews feed (F9), never typed by hand (T4). Its value is the rating itself (\"4.9\"), with\n * the stars beside it, and the item is marked `data-bl-source=\"feed\"`, as the reviews band marks its root.\n */\nexport interface ProofRatingItem extends ProofItemBase {\n readonly rating: number\n readonly value?: never\n}\n\nexport type ProofItem = ProofFactItem | ProofRatingItem\n\nexport interface ProofStripProps extends ProofStripSkin {\n /** The H2, for example \"Why homeowners choose Omega\". Visually hidden unless the skin shows it. */\n readonly title: string\n readonly items: readonly ProofItem[]\n /** Partner logos (a `LogoStrip` of verified relationships). Counts as one item. */\n readonly logos?: ReactNode\n /** Defaults to `proof-heading`. */\n readonly headingId?: string\n /** Set by `SectionSequence`. */\n readonly tone?: SectionTone\n}\n\n/** Whether the strip renders: at least three items, logos counting as one (`merge-into-hero-checklist`). */\nexport function proofStripReady({ items, logos }: Pick<ProofStripProps, 'items' | 'logos'>): BrandlabSectionReadiness {\n const count = items.length + (logos ? 1 : 0)\n return count >= PROOF_STRIP_MINIMUM ? SECTION_READY : { render: false, reason: 'merge-into-hero-checklist' }\n}\n\nexport function ProofStrip({ title, items, logos, headingId = 'proof-heading', tone, variant = 'inline', layout, classes }: ProofStripProps) {\n if (!proofStripReady({ items, logos }).render) return null\n const unlinked = items.find((item) => item.linkLabel && !item.href)\n if (unlinked) throw new Error(`ProofStrip: \"${unlinked.id}\" has a link label but no href.`)\n const hidden = (layout?.heading ?? 'hidden') === 'hidden'\n return (\n <Section id=\"proof-strip\" labelledBy={headingId} tone={tone} variant={variant} classes={classes}>\n <h2 id={headingId} {...slot(classes, 'heading')} data-bl-visually-hidden={hidden ? '' : undefined}>\n {title}\n </h2>\n {items.length > 0 ? (\n <ul role=\"list\" {...slot(classes, 'list')}>\n {items.map((item) => {\n const content = (\n <>\n {item.icon ? (\n <span {...repeatedSlot('icon')}>\n <Icon name={item.icon} />\n </span>\n ) : null}\n {item.rating !== undefined ? (\n <span {...repeatedSlot('stars')} aria-hidden=\"true\">\n <RatingStars rating={item.rating} />\n </span>\n ) : null}\n {item.rating !== undefined ? (\n <span {...repeatedSlot('value')}>{item.rating.toFixed(1)}</span>\n ) : item.value ? (\n <span {...repeatedSlot('value')}>{item.value}</span>\n ) : null}{' '}\n <span {...repeatedSlot('label')}>{item.label}</span>\n {item.href && item.linkLabel ? (\n <span {...repeatedSlot('linkLabel')}>\n {' '}\n {item.linkLabel}\n <Icon name=\"arrow\" />\n </span>\n ) : null}\n </>\n )\n return (\n <li key={item.id} {...repeatedSlot('item')} data-item={item.id} data-bl-source={item.rating !== undefined ? 'feed' : undefined}>\n {item.href ? (\n <Anchor href={item.href} prefetch={false} hooks={repeatedSlot('link')}>\n {content}\n </Anchor>\n ) : (\n content\n )}\n </li>\n )\n })}\n </ul>\n ) : null}\n {logos ? <div {...slot(classes, 'logos')}>{logos}</div> : null}\n </Section>\n )\n}\n"]}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `QuoteChecklist` (`data-bl="quote-checklist"`, 3.15.0): what to send for a fast, fair quote in this trade (photos of
|
|
3
|
-
* the tree and its access, the suburb, what's underneath it…), as a real list of ticks, then the button to the quote
|
|
4
|
-
* form. Server component built on `TickList`. It is a block, not a sequenced section of the matrix: a site places it
|
|
5
|
-
* inside its service detail, beside the contact form or as its own band (`headingLevel`).
|
|
6
|
-
*
|
|
7
|
-
* Locked: the list comes before the action; the action is the site's quote button (`lead_cta_click` placement
|
|
8
|
-
* `section`, id `quote-checklist`) to its quote form. No default visible copy: the heading, every item and the button
|
|
9
|
-
* label are the site's (spec: checklist content lives in each site's copy file, so same-trade sites never repeat each
|
|
10
|
-
* other). At most 8 items, so the list stays a checklist.
|
|
11
|
-
*/
|
|
12
|
-
import type { ReactNode } from 'react';
|
|
13
|
-
import { type TickItem } from '../primitives/lists.js';
|
|
14
|
-
import type { ButtonVariant } from '../primitives/links.js';
|
|
15
|
-
import { type SkinEntry } from '../skin.js';
|
|
16
|
-
export type QuoteChecklistSlot = 'root' | 'heading' | 'lead' | 'list' | 'action' | 'quote';
|
|
17
|
-
export interface QuoteChecklistLayout {
|
|
18
|
-
/** The list's columns from the phone breakpoint up. Defaults to 1. */
|
|
19
|
-
readonly columns?: 1 | 2;
|
|
20
|
-
/** The quote button's variant. Defaults to `primary`. */
|
|
21
|
-
readonly quoteVariant?: ButtonVariant;
|
|
22
|
-
}
|
|
23
|
-
export type QuoteChecklistSkin = SkinEntry<QuoteChecklistSlot, never, QuoteChecklistLayout>;
|
|
24
|
-
/** The most items a checklist holds. */
|
|
25
|
-
export declare const QUOTE_CHECKLIST_MAX = 8;
|
|
26
|
-
export interface QuoteChecklistProps extends QuoteChecklistSkin {
|
|
27
|
-
/** The heading, for example "What to send for a fast quote". */
|
|
28
|
-
readonly title: ReactNode;
|
|
29
|
-
readonly lead?: ReactNode;
|
|
30
|
-
/** What to send, in the site's words: 2 to 8 items. */
|
|
31
|
-
readonly items: readonly TickItem[];
|
|
32
|
-
/** The site's recorded quote label and its quote form, for example `{ label: 'Get a free quote', href: '#quote-hero' }`. */
|
|
33
|
-
readonly quote: {
|
|
34
|
-
readonly label: string;
|
|
35
|
-
readonly href: string;
|
|
36
|
-
};
|
|
37
|
-
/** 2 (the default) makes the block its own `<section>` labelled by an H2; 3 sits it inside a section's outline. */
|
|
38
|
-
readonly headingLevel?: 2 | 3;
|
|
39
|
-
/** Defaults to `quote-checklist-heading`. */
|
|
40
|
-
readonly headingId?: string;
|
|
41
|
-
}
|
|
42
|
-
export declare function QuoteChecklist({ title, lead, items, quote, headingLevel, headingId, layout, classes }: QuoteChecklistProps): import("react/jsx-runtime").JSX.Element | null;
|
|
43
|
-
//# sourceMappingURL=quote-checklist.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quote-checklist.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/sections/quote-checklist.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AAC1F,MAAM,WAAW,oBAAoB;IACnC,sEAAsE;IACtE,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IACxB,yDAAyD;IACzD,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAA;CACtC;AACD,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAC,kBAAkB,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAA;AAE3F,wCAAwC;AACxC,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAEpC,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,gEAAgE;IAChE,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAA;IACzB,uDAAuD;IACvD,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAA;IACnC,4HAA4H;IAC5H,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACjE,mHAAmH;IACnH,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;IAC7B,6CAA6C;IAC7C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,YAAgB,EAAE,SAAqC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,mBAAmB,kDAoB1J"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TickList } from '../primitives/lists.js';
|
|
3
|
-
import { QuoteButton } from '../primitives/quote-button.js';
|
|
4
|
-
import { slot } from '../skin.js';
|
|
5
|
-
/** The most items a checklist holds. */
|
|
6
|
-
export const QUOTE_CHECKLIST_MAX = 8;
|
|
7
|
-
export function QuoteChecklist({ title, lead, items, quote, headingLevel = 2, headingId = 'quote-checklist-heading', layout, classes }) {
|
|
8
|
-
if (items.length === 0)
|
|
9
|
-
return null;
|
|
10
|
-
if (items.length < 2 || items.length > QUOTE_CHECKLIST_MAX) {
|
|
11
|
-
throw new Error(`QuoteChecklist: ${items.length} items; a checklist holds 2 to ${QUOTE_CHECKLIST_MAX}.`);
|
|
12
|
-
}
|
|
13
|
-
if (!quote?.label?.trim() || !quote.href?.trim())
|
|
14
|
-
throw new Error('QuoteChecklist: the quote button needs the site\'s label and its quote form.');
|
|
15
|
-
const Root = headingLevel === 2 ? 'section' : 'div';
|
|
16
|
-
const Heading = `h${headingLevel}`;
|
|
17
|
-
return (_jsxs(Root, { "data-bl": "quote-checklist", "aria-labelledby": headingLevel === 2 ? headingId : undefined, className: classes?.root, children: [_jsx(Heading, { id: headingId, ...slot(classes, 'heading'), children: title }), lead ? _jsx("p", { ...slot(classes, 'lead'), children: lead }) : null, _jsx(TickList, { items: items, layout: { columns: layout?.columns ?? 1 }, classes: { root: classes?.list } }), _jsx("p", { ...slot(classes, 'action'), children: _jsx(QuoteButton, { label: quote.label, href: quote.href, placement: "section", ctaId: "quote-checklist", variant: layout?.quoteVariant ?? 'primary', classes: { root: classes?.quote } }) })] }));
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=quote-checklist.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quote-checklist.js","sourceRoot":"","sources":["../../../src/ui-kit/sections/quote-checklist.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,QAAQ,EAAiB,MAAM,wBAAwB,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAkB,MAAM,YAAY,CAAA;AAWjD,wCAAwC;AACxC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAA;AAgBpC,MAAM,UAAU,cAAc,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,GAAG,CAAC,EAAE,SAAS,GAAG,yBAAyB,EAAE,MAAM,EAAE,OAAO,EAAuB;IACzJ,IAAI,KAAK,CAAC,MAAM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AAS,EAAC,SAAS,EAAC,KAAK,EAAC,iBAAiB,EAAC,OAAO,EAAE,MAAM,EAAE,YAAY,IAAI,SAAS,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAI,GAC9K,IACC,CACR,CAAA;AACH,CAAC","sourcesContent":["/**\n * `QuoteChecklist` (`data-bl=\"quote-checklist\"`, 3.15.0): what to send for a fast, fair quote in this trade (photos of\n * the tree and its access, the suburb, what's underneath it…), as a real list of ticks, then the button to the quote\n * form. Server component built on `TickList`. It is a block, not a sequenced section of the matrix: a site places it\n * inside its service detail, beside the contact form or as its own band (`headingLevel`).\n *\n * Locked: the list comes before the action; the action is the site's quote button (`lead_cta_click` placement\n * `section`, id `quote-checklist`) to its quote form. No default visible copy: the heading, every item and the button\n * label are the site's (spec: checklist content lives in each site's copy file, so same-trade sites never repeat each\n * other). At most 8 items, so the list stays a checklist.\n */\nimport type { ReactNode } from 'react'\nimport { TickList, type TickItem } from '../primitives/lists.js'\nimport { QuoteButton } from '../primitives/quote-button.js'\nimport type { ButtonVariant } from '../primitives/links.js'\nimport { slot, type SkinEntry } from '../skin.js'\n\nexport type QuoteChecklistSlot = 'root' | 'heading' | 'lead' | 'list' | 'action' | 'quote'\nexport interface QuoteChecklistLayout {\n /** The list's columns from the phone breakpoint up. Defaults to 1. */\n readonly columns?: 1 | 2\n /** The quote button's variant. Defaults to `primary`. */\n readonly quoteVariant?: ButtonVariant\n}\nexport type QuoteChecklistSkin = SkinEntry<QuoteChecklistSlot, never, QuoteChecklistLayout>\n\n/** The most items a checklist holds. */\nexport const QUOTE_CHECKLIST_MAX = 8\n\nexport interface QuoteChecklistProps extends QuoteChecklistSkin {\n /** The heading, for example \"What to send for a fast quote\". */\n readonly title: ReactNode\n readonly lead?: ReactNode\n /** What to send, in the site's words: 2 to 8 items. */\n readonly items: readonly TickItem[]\n /** The site's recorded quote label and its quote form, for example `{ label: 'Get a free quote', href: '#quote-hero' }`. */\n readonly quote: { readonly label: string; readonly href: string }\n /** 2 (the default) makes the block its own `<section>` labelled by an H2; 3 sits it inside a section's outline. */\n readonly headingLevel?: 2 | 3\n /** Defaults to `quote-checklist-heading`. */\n readonly headingId?: string\n}\n\nexport function QuoteChecklist({ title, lead, items, quote, headingLevel = 2, headingId = 'quote-checklist-heading', layout, classes }: QuoteChecklistProps) {\n if (items.length === 0) return null\n if (items.length < 2 || items.length > QUOTE_CHECKLIST_MAX) {\n throw new Error(`QuoteChecklist: ${items.length} items; a checklist holds 2 to ${QUOTE_CHECKLIST_MAX}.`)\n }\n if (!quote?.label?.trim() || !quote.href?.trim()) throw new Error('QuoteChecklist: the quote button needs the site\\'s label and its quote form.')\n const Root = headingLevel === 2 ? 'section' : 'div'\n const Heading = `h${headingLevel}` as const\n return (\n <Root data-bl=\"quote-checklist\" aria-labelledby={headingLevel === 2 ? headingId : undefined} className={classes?.root}>\n <Heading id={headingId} {...slot(classes, 'heading')}>\n {title}\n </Heading>\n {lead ? <p {...slot(classes, 'lead')}>{lead}</p> : null}\n <TickList items={items} layout={{ columns: layout?.columns ?? 1 }} classes={{ root: classes?.list }} />\n <p {...slot(classes, 'action')}>\n <QuoteButton label={quote.label} href={quote.href} placement=\"section\" ctaId=\"quote-checklist\" variant={layout?.quoteVariant ?? 'primary'} classes={{ root: classes?.quote }} />\n </p>\n </Root>\n )\n}\n"]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `RatingChip`: Google's own average and total in words ("4.9 out of 5 from 99 Google reviews"), with decorative stars
|
|
3
|
-
* and a link to the Business Profile. Server component. The numbers come only from the reviews feed (T4), never typed
|
|
4
|
-
* by hand; without both an average and a total of 1 or more it renders nothing. `data-bl-source="feed"` marks the
|
|
5
|
-
* numbers as the feed's for the ready gate (T4, T5).
|
|
6
|
-
*
|
|
7
|
-
* 3.16.0: `layout.display: 'figure'` sets the average as a large figure ("4.9", with "out of 5" for assistive
|
|
8
|
-
* technology) followed by the stars and the count, as AA's hero shows it under the H1; `moreLabel` adds the site's own
|
|
9
|
-
* link to the Business Profile ("Read all reviews on Google"), and the count becomes plain text so the profile is
|
|
10
|
-
* linked once.
|
|
11
|
-
*/
|
|
12
|
-
import type { PreparedBusinessProfileReviews } from '@brandlab-digital/site-core/google-business-reviews';
|
|
13
|
-
import { type SkinEntry } from '../skin.js';
|
|
14
|
-
export type RatingChipSlot = 'root' | 'stars' | 'rating' | 'figure' | 'source' | 'more';
|
|
15
|
-
export interface RatingChipLayout {
|
|
16
|
-
readonly stars?: boolean;
|
|
17
|
-
/** `inline` (the default): one line of words; `figure`: the average set large, then the stars and the count. */
|
|
18
|
-
readonly display?: 'inline' | 'figure';
|
|
19
|
-
}
|
|
20
|
-
export type RatingChipSkin = SkinEntry<RatingChipSlot, never, RatingChipLayout>;
|
|
21
|
-
/** The part of the prepared reviews the chip reads: Google's average, total and profile link. */
|
|
22
|
-
export type RatingChipData = Pick<PreparedBusinessProfileReviews, 'averageRating' | 'totalReviewCount' | 'profileUrl'>;
|
|
23
|
-
export interface RatingChipProps extends RatingChipSkin {
|
|
24
|
-
/** From `prepareBusinessProfileReviews`; null renders nothing. */
|
|
25
|
-
readonly reviews: RatingChipData | null | undefined;
|
|
26
|
-
/** The site's words for a link to the Business Profile, for example "Read all reviews on Google". */
|
|
27
|
-
readonly moreLabel?: string | undefined;
|
|
28
|
-
}
|
|
29
|
-
/** Whether the feed gave Google's average and a total of 1 or more, so a rating can be shown. */
|
|
30
|
-
export declare function hasGoogleRating(reviews: RatingChipData | null | undefined): reviews is RatingChipData & {
|
|
31
|
-
averageRating: number;
|
|
32
|
-
totalReviewCount: number;
|
|
33
|
-
};
|
|
34
|
-
export declare function RatingChip({ reviews, moreLabel, layout, classes }: RatingChipProps): import("react/jsx-runtime").JSX.Element | null;
|
|
35
|
-
//# sourceMappingURL=rating-chip.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rating-chip.d.ts","sourceRoot":"","sources":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-runtime";
|
|
2
|
-
import { RatingStars, VisuallyHidden } from '../primitives/layout.js';
|
|
3
|
-
import { slot } from '../skin.js';
|
|
4
|
-
const COUNT = new Intl.NumberFormat('en-AU');
|
|
5
|
-
/** Whether the feed gave Google's average and a total of 1 or more, so a rating can be shown. */
|
|
6
|
-
export function hasGoogleRating(reviews) {
|
|
7
|
-
return typeof reviews?.averageRating === 'number' && typeof reviews.totalReviewCount === 'number' && reviews.totalReviewCount > 0;
|
|
8
|
-
}
|
|
9
|
-
export function RatingChip({ reviews, moreLabel, layout, classes }) {
|
|
10
|
-
if (!hasGoogleRating(reviews))
|
|
11
|
-
return null;
|
|
12
|
-
const total = reviews.totalReviewCount;
|
|
13
|
-
const figure = layout?.display === 'figure';
|
|
14
|
-
const average = reviews.averageRating.toFixed(1);
|
|
15
|
-
const stars = layout?.stars === false ? null : (_jsx("span", { ...slot(classes, 'stars'), "aria-hidden": "true", children: _jsx(RatingStars, { rating: reviews.averageRating }) }));
|
|
16
|
-
const count = `${COUNT.format(total)} Google ${total === 1 ? 'review' : 'reviews'}`;
|
|
17
|
-
const more = moreLabel?.trim();
|
|
18
|
-
const link = { href: reviews.profileUrl, target: '_blank', rel: 'noopener noreferrer' };
|
|
19
|
-
return (_jsxs("p", { "data-bl": "rating-chip", "data-bl-source": "feed", "data-display": figure ? 'figure' : undefined, className: classes?.root, children: [figure ? null : stars, figure ? (_jsxs("span", { ...slot(classes, 'rating'), children: [_jsx("span", { ...slot(classes, 'figure'), children: average }), _jsx(VisuallyHidden, { children: " out of 5" })] })) : (_jsxs("span", { ...slot(classes, 'rating'), children: [average, " out of 5"] })), figure ? stars : null, " from", ' ', more ? _jsx("span", { ...slot(classes, 'source'), children: count }) : _jsx("a", { ...slot(classes, 'source'), ...link, children: count }), more ? (_jsxs(_Fragment, { children: [' ', _jsx("a", { ...slot(classes, 'more'), ...link, children: more })] })) : null] }));
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=rating-chip.js.map
|
|
@@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F,MAAM,IAAI,GAAG,SAAS,EAAE,IAAI,EAAE,CAAA;IAC9B,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,qBAAqB,EAAW,CAAA;IAChG,OAAO,CACL,wBAAW,aAAa,oBAAgB,MAAM,kBAAe,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,aACjH,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EACrB,MAAM,CAAC,CAAC,CAAC,CACR,mBAAU,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,aAC/B,kBAAU,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,YAAG,OAAO,GAAQ,EACnD,KAAC,cAAc,4BAA2B,IACrC,CACR,CAAC,CAAC,CAAC,CACF,mBAAU,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,aAAG,OAAO,iBAAiB,CAC7D,EACA,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,WAAO,GAAG,EAC/B,IAAI,CAAC,CAAC,CAAC,kBAAU,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,YAAG,KAAK,GAAQ,CAAC,CAAC,CAAC,eAAO,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAM,IAAI,YAAG,KAAK,GAAK,EAChH,IAAI,CAAC,CAAC,CAAC,CACN,8BACG,GAAG,EACJ,eAAO,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,KAAM,IAAI,YACnC,IAAI,GACH,IACH,CACJ,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAA;AACH,CAAC","sourcesContent":["/**\n * `RatingChip`: Google's own average and total in words (\"4.9 out of 5 from 99 Google reviews\"), with decorative stars\n * and a link to the Business Profile. Server component. The numbers come only from the reviews feed (T4), never typed\n * by hand; without both an average and a total of 1 or more it renders nothing. `data-bl-source=\"feed\"` marks the\n * numbers as the feed's for the ready gate (T4, T5).\n *\n * 3.16.0: `layout.display: 'figure'` sets the average as a large figure (\"4.9\", with \"out of 5\" for assistive\n * technology) followed by the stars and the count, as AA's hero shows it under the H1; `moreLabel` adds the site's own\n * link to the Business Profile (\"Read all reviews on Google\"), and the count becomes plain text so the profile is\n * linked once.\n */\nimport type { PreparedBusinessProfileReviews } from '@brandlab-digital/site-core/google-business-reviews'\nimport { RatingStars, VisuallyHidden } from '../primitives/layout.js'\nimport { slot, type SkinEntry } from '../skin.js'\n\nexport type RatingChipSlot = 'root' | 'stars' | 'rating' | 'figure' | 'source' | 'more'\nexport interface RatingChipLayout {\n readonly stars?: boolean\n /** `inline` (the default): one line of words; `figure`: the average set large, then the stars and the count. */\n readonly display?: 'inline' | 'figure'\n}\nexport type RatingChipSkin = SkinEntry<RatingChipSlot, never, RatingChipLayout>\n\n/** The part of the prepared reviews the chip reads: Google's average, total and profile link. */\nexport type RatingChipData = Pick<PreparedBusinessProfileReviews, 'averageRating' | 'totalReviewCount' | 'profileUrl'>\n\nexport interface RatingChipProps extends RatingChipSkin {\n /** From `prepareBusinessProfileReviews`; null renders nothing. */\n readonly reviews: RatingChipData | null | undefined\n /** The site's words for a link to the Business Profile, for example \"Read all reviews on Google\". */\n readonly moreLabel?: string | undefined\n}\n\nconst COUNT = new Intl.NumberFormat('en-AU')\n\n/** Whether the feed gave Google's average and a total of 1 or more, so a rating can be shown. */\nexport function hasGoogleRating(reviews: RatingChipData | null | undefined): reviews is RatingChipData & { averageRating: number; totalReviewCount: number } {\n return typeof reviews?.averageRating === 'number' && typeof reviews.totalReviewCount === 'number' && reviews.totalReviewCount > 0\n}\n\nexport function RatingChip({ reviews, moreLabel, layout, classes }: RatingChipProps) {\n if (!hasGoogleRating(reviews)) return null\n const total = reviews.totalReviewCount\n const figure = layout?.display === 'figure'\n const average = reviews.averageRating.toFixed(1)\n const stars =\n layout?.stars === false ? null : (\n <span {...slot(classes, 'stars')} aria-hidden=\"true\">\n <RatingStars rating={reviews.averageRating} />\n </span>\n )\n const count = `${COUNT.format(total)} Google ${total === 1 ? 'review' : 'reviews'}`\n const more = moreLabel?.trim()\n const link = { href: reviews.profileUrl, target: '_blank', rel: 'noopener noreferrer' } as const\n return (\n <p data-bl=\"rating-chip\" data-bl-source=\"feed\" data-display={figure ? 'figure' : undefined} className={classes?.root}>\n {figure ? null : stars}\n {figure ? (\n <span {...slot(classes, 'rating')}>\n <span {...slot(classes, 'figure')}>{average}</span>\n <VisuallyHidden> out of 5</VisuallyHidden>\n </span>\n ) : (\n <span {...slot(classes, 'rating')}>{average} out of 5</span>\n )}\n {figure ? stars : null} from{' '}\n {more ? <span {...slot(classes, 'source')}>{count}</span> : <a {...slot(classes, 'source')} {...link}>{count}</a>}\n {more ? (\n <>\n {' '}\n <a {...slot(classes, 'more')} {...link}>\n {more}\n </a>\n </>\n ) : null}\n </p>\n )\n}\n"]}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import { type BrandlabSectionReadiness } from '@brandlab-digital/site-core/section-order';
|
|
3
|
-
import { type SectionHeadingSlot, type SectionSlot, type SectionTone } from '../primitives/layout.js';
|
|
4
|
-
import type { RepeatedSlotOf } from '../repeated-slots.js';
|
|
5
|
-
import { type SkinEntry } from '../skin.js';
|
|
6
|
-
import type { UiLink } from '../types.js';
|
|
7
|
-
import { type ServiceCardData, type ServicesGridLayout } from './services-grid.js';
|
|
8
|
-
/** The most services the section lists (K11; the in-content intent-prefetch limit). */
|
|
9
|
-
export declare const RELATED_SERVICES_LIMIT: 8;
|
|
10
|
-
export declare const RELATED_SERVICES_VARIANTS: readonly ["list", "cards"];
|
|
11
|
-
export type RelatedServicesVariant = (typeof RELATED_SERVICES_VARIANTS)[number];
|
|
12
|
-
export type RelatedServicesSlot = SectionSlot | SectionHeadingSlot | 'list' | 'more' | RepeatedSlotOf<'relatedServices'>;
|
|
13
|
-
/** `cards`: rendered once per service, styled from the skin stylesheet, never by class. */
|
|
14
|
-
export type RelatedServicesRepeatedSlot = RepeatedSlotOf<'relatedServices'>;
|
|
15
|
-
export interface RelatedServicesLayout {
|
|
16
|
-
/** Columns on wide screens: `list` 1 to 4 (default 3), `cards` 2 to 4 (default 3). */
|
|
17
|
-
readonly columns?: 1 | 2 | 3 | 4;
|
|
18
|
-
/** `cards`: the photo's crop. Defaults to 4:3. */
|
|
19
|
-
readonly ratio?: ServicesGridLayout['ratio'];
|
|
20
|
-
}
|
|
21
|
-
export type RelatedServicesSkin = SkinEntry<RelatedServicesSlot, RelatedServicesVariant, RelatedServicesLayout, RelatedServicesRepeatedSlot>;
|
|
22
|
-
export interface RelatedServicesProps extends RelatedServicesSkin {
|
|
23
|
-
/** The H2, for example "Other services in Castle Hill". */
|
|
24
|
-
readonly title: ReactNode;
|
|
25
|
-
readonly eyebrow?: ReactNode;
|
|
26
|
-
readonly lead?: ReactNode;
|
|
27
|
-
/** The other services, in money order; `cards` uses their summaries and photos. */
|
|
28
|
-
readonly services: readonly ServiceCardData[];
|
|
29
|
-
/** A link after the list, for example the services hub. Never prefetched. */
|
|
30
|
-
readonly more?: UiLink;
|
|
31
|
-
/** `cards`: the photo `sizes`. */
|
|
32
|
-
readonly imageSizes?: string;
|
|
33
|
-
/** Defaults to `related-services-heading`. */
|
|
34
|
-
readonly headingId?: string;
|
|
35
|
-
/** Set by `SectionSequence`. */
|
|
36
|
-
readonly tone?: SectionTone;
|
|
37
|
-
}
|
|
38
|
-
/** The guard for `SectionSequence`. */
|
|
39
|
-
export declare function relatedServicesReady({ services }: Pick<RelatedServicesProps, 'services'>): BrandlabSectionReadiness;
|
|
40
|
-
export declare function RelatedServices({ title, eyebrow, lead, services, more, imageSizes, headingId, tone, variant, layout, classes, }: RelatedServicesProps): import("react/jsx-runtime").JSX.Element | null;
|
|
41
|
-
//# sourceMappingURL=related-services.d.ts.map
|
|
@@ -1 +0,0 @@
|
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2BAA2B,CAAC,CAAA;AAE5I,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAA;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAA;IACzB,mFAAmF;IACnF,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAA;IAC7C,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,kCAAkC;IAClC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,8CAA8C;IAC9C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,gCAAgC;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAA;CAC5B;AAED,uCAAuC;AACvC,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,GAAG,wBAAwB,CAEnH;AAiBD,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,SAAsC,EACtC,IAAI,EACJ,OAAgB,EAChB,MAAM,EACN,OAAO,GACR,EAAE,oBAAoB,kDA+CtB"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* `RelatedServices` (S28, `related-services`, 3.15.0): the other services in this place ("Other services in Castle
|
|
4
|
-
* Hill") or a service page's siblings. Server component.
|
|
5
|
-
*
|
|
6
|
-
* Each entry links to its service-in-suburb page where one exists, or to its section on the suburb page
|
|
7
|
-
* (`#tree-pruning`); the href always comes from the site's data. At most 8 (K11). Variants:
|
|
8
|
-
* - `list` (the default, lean): a `LinkList` of plain `<li><a>` entries, nothing prefetched
|
|
9
|
-
* (`data-bl-links="other-services"`, the `otherServicesInSuburb` role in `LINK_PREFETCH_POLICY`);
|
|
10
|
-
* - `cards`: `ServiceCard`s with a summary and photo, each card's one link prefetching on intent (`contentCard`).
|
|
11
|
-
*/
|
|
12
|
-
import Link from 'next/link';
|
|
13
|
-
import { SECTION_READY } from '@brandlab-digital/site-core/section-order';
|
|
14
|
-
import { LINK_PREFETCH_LIMITS, LINK_PREFETCH_POLICY } from '../prefetch.js';
|
|
15
|
-
import { LinkList } from '../primitives/lists.js';
|
|
16
|
-
import { Section, SectionHeading } from '../primitives/layout.js';
|
|
17
|
-
import { slot } from '../skin.js';
|
|
18
|
-
import { ServiceCard, defaultImageSizes } from './services-grid.js';
|
|
19
|
-
/** The most services the section lists (K11; the in-content intent-prefetch limit). */
|
|
20
|
-
export const RELATED_SERVICES_LIMIT = LINK_PREFETCH_LIMITS.contentCard;
|
|
21
|
-
export const RELATED_SERVICES_VARIANTS = ['list', 'cards'];
|
|
22
|
-
/** The guard for `SectionSequence`. */
|
|
23
|
-
export function relatedServicesReady({ services }) {
|
|
24
|
-
return services.length > 0 ? SECTION_READY : { render: false, reason: 'no-other-services' };
|
|
25
|
-
}
|
|
26
|
-
function assertServices(services) {
|
|
27
|
-
if (services.length > RELATED_SERVICES_LIMIT) {
|
|
28
|
-
throw new Error(`RelatedServices: ${services.length} services; the section lists at most ${RELATED_SERVICES_LIMIT} (K11). Link the services hub for the rest.`);
|
|
29
|
-
}
|
|
30
|
-
const ids = new Set();
|
|
31
|
-
const hrefs = new Set();
|
|
32
|
-
for (const service of services) {
|
|
33
|
-
if (!service.id || ids.has(service.id))
|
|
34
|
-
throw new Error(`RelatedServices: every service needs its own id ("${service.id}" is empty or repeated).`);
|
|
35
|
-
ids.add(service.id);
|
|
36
|
-
if (!service.title?.trim() || !service.href?.trim())
|
|
37
|
-
throw new Error(`RelatedServices: "${service.id}" needs a title and a link.`);
|
|
38
|
-
if (hrefs.has(service.href))
|
|
39
|
-
throw new Error(`RelatedServices: two services link to ${service.href}.`);
|
|
40
|
-
hrefs.add(service.href);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export function RelatedServices({ title, eyebrow, lead, services, more, imageSizes, headingId = 'related-services-heading', tone, variant = 'list', layout, classes, }) {
|
|
44
|
-
if (services.length === 0)
|
|
45
|
-
return null;
|
|
46
|
-
assertServices(services);
|
|
47
|
-
const columns = layout?.columns ?? 3;
|
|
48
|
-
const ratio = layout?.ratio ?? '4:3';
|
|
49
|
-
const cardColumns = (columns < 2 ? 2 : columns);
|
|
50
|
-
return (_jsxs(Section, { id: "related-services", labelledBy: headingId, tone: tone, variant: variant, classes: classes, hooks: variant === 'cards' ? { 'data-columns': String(cardColumns), 'data-ratio': ratio } : undefined, children: [_jsx(SectionHeading, { id: headingId, title: title, eyebrow: eyebrow, lead: lead, classes: classes }), variant === 'cards' ? (_jsx("ul", { role: "list", ...slot(classes, 'list'), children: services.map((service) => (_jsx(ServiceCard, { service: service, variant: "cards", imageSizes: imageSizes ?? defaultImageSizes('cards', cardColumns), ratio: ratio, prefetch: LINK_PREFETCH_POLICY.contentCard }, service.id))) })) : (_jsx(LinkList, { links: services.map((service) => ({ label: service.title, href: service.href })), kind: "other-services", prefetch: LINK_PREFETCH_POLICY.otherServicesInSuburb, layout: { columns }, classes: { root: classes?.list } })), more ? (_jsx("p", { ...slot(classes, 'more'), children: _jsx(Link, { href: more.href, prefetch: false, children: more.label }) })) : null] }));
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=related-services.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"related-services.js","sourceRoot":"","sources":["../../../src/ui-kit/sections/related-services.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;AACH,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EAAE,aAAa,EAAiC,MAAM,2CAA2C,CAAA;AACxG,OAAO,EAAE,oBAAoB,EAA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in this place (\"Other services in Castle\n * Hill\") or a service page's siblings. Server component.\n *\n * Each entry links to its service-in-suburb page where one exists, or to its section on the suburb page\n * (`#tree-pruning`); the href always comes from the site's data. At most 8 (K11). Variants:\n * - `list` (the default, lean): a `LinkList` of plain `<li><a>` entries, nothing prefetched\n * (`data-bl-links=\"other-services\"`, the `otherServicesInSuburb` role in `LINK_PREFETCH_POLICY`);\n * - `cards`: `ServiceCard`s with a summary and photo, each card's one link prefetching on intent (`contentCard`).\n */\nimport Link from 'next/link'\nimport type { ReactNode } from 'react'\nimport { SECTION_READY, type BrandlabSectionReadiness } from '@brandlab-digital/site-core/section-order'\nimport { LINK_PREFETCH_LIMITS, LINK_PREFETCH_POLICY } from '../prefetch.js'\nimport { LinkList } from '../primitives/lists.js'\nimport { Section, SectionHeading, type SectionHeadingSlot, type SectionSlot, type SectionTone } from '../primitives/layout.js'\nimport type { RepeatedSlotOf } from '../repeated-slots.js'\nimport { slot, type SkinEntry } from '../skin.js'\nimport type { UiLink } from '../types.js'\nimport { ServiceCard, defaultImageSizes, type ServiceCardData, type ServicesGridLayout } from './services-grid.js'\n\n/** The most services the section lists (K11; the in-content intent-prefetch limit). */\nexport const RELATED_SERVICES_LIMIT = LINK_PREFETCH_LIMITS.contentCard\n\nexport const RELATED_SERVICES_VARIANTS = ['list', 'cards'] as const\nexport type RelatedServicesVariant = (typeof RELATED_SERVICES_VARIANTS)[number]\nexport type RelatedServicesSlot = SectionSlot | SectionHeadingSlot | 'list' | 'more' | RepeatedSlotOf<'relatedServices'>\n/** `cards`: rendered once per service, styled from the skin stylesheet, never by class. */\nexport type RelatedServicesRepeatedSlot = RepeatedSlotOf<'relatedServices'>\nexport interface RelatedServicesLayout {\n /** Columns on wide screens: `list` 1 to 4 (default 3), `cards` 2 to 4 (default 3). */\n readonly columns?: 1 | 2 | 3 | 4\n /** `cards`: the photo's crop. Defaults to 4:3. */\n readonly ratio?: ServicesGridLayout['ratio']\n}\nexport type RelatedServicesSkin = SkinEntry<RelatedServicesSlot, RelatedServicesVariant, RelatedServicesLayout, RelatedServicesRepeatedSlot>\n\nexport interface RelatedServicesProps extends RelatedServicesSkin {\n /** The H2, for example \"Other services in Castle Hill\". */\n readonly title: ReactNode\n readonly eyebrow?: ReactNode\n readonly lead?: ReactNode\n /** The other services, in money order; `cards` uses their summaries and photos. */\n readonly services: readonly ServiceCardData[]\n /** A link after the list, for example the services hub. Never prefetched. */\n readonly more?: UiLink\n /** `cards`: the photo `sizes`. */\n readonly imageSizes?: string\n /** Defaults to `related-services-heading`. */\n readonly headingId?: string\n /** Set by `SectionSequence`. */\n readonly tone?: SectionTone\n}\n\n/** The guard for `SectionSequence`. */\nexport function relatedServicesReady({ services }: Pick<RelatedServicesProps, 'services'>): BrandlabSectionReadiness {\n return services.length > 0 ? SECTION_READY : { render: false, reason: 'no-other-services' }\n}\n\nfunction assertServices(services: readonly ServiceCardData[]) {\n if (services.length > RELATED_SERVICES_LIMIT) {\n throw new Error(`RelatedServices: ${services.length} services; the section lists at most ${RELATED_SERVICES_LIMIT} (K11). Link the services hub for the rest.`)\n }\n const ids = new Set<string>()\n const hrefs = new Set<string>()\n for (const service of services) {\n if (!service.id || ids.has(service.id)) throw new Error(`RelatedServices: every service needs its own id (\"${service.id}\" is empty or repeated).`)\n ids.add(service.id)\n if (!service.title?.trim() || !service.href?.trim()) throw new Error(`RelatedServices: \"${service.id}\" needs a title and a link.`)\n if (hrefs.has(service.href)) throw new Error(`RelatedServices: two services link to ${service.href}.`)\n hrefs.add(service.href)\n }\n}\n\nexport function RelatedServices({\n title,\n eyebrow,\n lead,\n services,\n more,\n imageSizes,\n headingId = 'related-services-heading',\n tone,\n variant = 'list',\n layout,\n classes,\n}: RelatedServicesProps) {\n if (services.length === 0) return null\n assertServices(services)\n const columns = layout?.columns ?? 3\n const ratio = layout?.ratio ?? '4:3'\n const cardColumns = (columns < 2 ? 2 : columns) as 2 | 3 | 4\n return (\n <Section\n id=\"related-services\"\n labelledBy={headingId}\n tone={tone}\n variant={variant}\n classes={classes}\n hooks={variant === 'cards' ? { 'data-columns': String(cardColumns), 'data-ratio': ratio } : undefined}\n >\n <SectionHeading id={headingId} title={title} eyebrow={eyebrow} lead={lead} classes={classes} />\n {variant === 'cards' ? (\n <ul role=\"list\" {...slot(classes, 'list')}>\n {services.map((service) => (\n <ServiceCard\n key={service.id}\n service={service}\n variant=\"cards\"\n imageSizes={imageSizes ?? defaultImageSizes('cards', cardColumns)}\n ratio={ratio}\n prefetch={LINK_PREFETCH_POLICY.contentCard}\n />\n ))}\n </ul>\n ) : (\n <LinkList\n links={services.map((service) => ({ label: service.title, href: service.href }))}\n kind=\"other-services\"\n prefetch={LINK_PREFETCH_POLICY.otherServicesInSuburb}\n layout={{ columns }}\n classes={{ root: classes?.list }}\n />\n )}\n {more ? (\n <p {...slot(classes, 'more')}>\n <Link href={more.href} prefetch={false}>\n {more.label}\n </Link>\n </p>\n ) : null}\n </Section>\n )\n}\n"]}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* S7 `ReviewsBand` (`reviews`): prominent, honest proof from the Business Profile feed. Server component, no client
|
|
3
|
-
* JS. Google's own average and total sit beside the selected reviews with a link to the profile; the text is verbatim
|
|
4
|
-
* and always in the HTML (a long review folds behind a native "Read more" disclosure); the band says how the reviews
|
|
5
|
-
* were chosen ("Selected five-star Google reviews" or "Recent Google reviews"). No review or rating schema: a business
|
|
6
|
-
* that controls its own reviews isn't eligible for review stars.
|
|
7
|
-
*
|
|
8
|
-
* Data comes only from `prepareBusinessProfileReviews` (site-core), which applies the policy, mention ordering, the
|
|
9
|
-
* 3.7.0 exclude guard and the limit. No prepared reviews, or none and no rating, renders nothing at all (no heading).
|
|
10
|
-
* With no written reviews but a rating, every variant renders as `summary`: the heading and the rating chip only.
|
|
11
|
-
* Never place it on the contact page or inside another section.
|
|
12
|
-
*
|
|
13
|
-
* Sites that arrange their own layout use the parts (`ReviewsBand.Root`, `.Heading`, `.Summary`, `.List`, `.Item`):
|
|
14
|
-
* the root keeps the section semantics, the empty rule and the disclosure line; the parts keep the data and markup.
|
|
15
|
-
*/
|
|
16
|
-
import { type ReactNode } from 'react';
|
|
17
|
-
import { type BusinessProfileReview, type PreparedBusinessProfileReviews } from '@brandlab-digital/site-core/google-business-reviews';
|
|
18
|
-
import { type BrandlabSectionReadiness } from '@brandlab-digital/site-core/section-order';
|
|
19
|
-
import { type SectionTone } from '../primitives/layout.js';
|
|
20
|
-
import type { RepeatedSlotOf } from '../repeated-slots.js';
|
|
21
|
-
import { type SkinEntry, type SlotClasses } from '../skin.js';
|
|
22
|
-
export declare const REVIEWS_BAND_VARIANTS: readonly ["band", "feature", "cards", "wall", "summary"];
|
|
23
|
-
export type ReviewsBandVariant = (typeof REVIEWS_BAND_VARIANTS)[number];
|
|
24
|
-
export type ReviewsBandSlot = 'root' | 'inner' | 'top' | 'head' | 'eyebrow' | 'heading' | 'lead' | 'summary' | 'rating' | 'source' | 'list' | 'item' | 'stars' | 'quote' | 'more' | 'author' | 'avatar' | 'name' | 'date' | 'disclosure' | 'profileLink';
|
|
25
|
-
export interface ReviewsBandLayout {
|
|
26
|
-
readonly columns?: 1 | 2 | 3;
|
|
27
|
-
readonly align?: 'start' | 'center';
|
|
28
|
-
/** Reviewer photos beside the names (Google's own small photos, decorative). */
|
|
29
|
-
readonly avatars?: boolean;
|
|
30
|
-
/** Characters shown before a long review folds behind "Read more" (default 320); `false` never folds. */
|
|
31
|
-
readonly excerpt?: number | false;
|
|
32
|
-
}
|
|
33
|
-
/** Rendered once per review: styled from the skin stylesheet, never by class (3.14.0). */
|
|
34
|
-
export type ReviewsBandRepeatedSlot = RepeatedSlotOf<'reviewsBand'>;
|
|
35
|
-
export type ReviewsBandSkin = SkinEntry<ReviewsBandSlot, ReviewsBandVariant, ReviewsBandLayout, ReviewsBandRepeatedSlot>;
|
|
36
|
-
type Classes = SlotClasses<Exclude<ReviewsBandSlot, ReviewsBandRepeatedSlot>> | undefined;
|
|
37
|
-
export declare const REVIEWS_BAND_HEADING_ID = "bl-reviews-heading";
|
|
38
|
-
/** The skip reason a band with nothing to show records in the section manifest: the feed has no reviews or rating. */
|
|
39
|
-
export declare const REVIEWS_BAND_SKIP_REASON = "no-feed-reviews";
|
|
40
|
-
/**
|
|
41
|
-
* The guard for `SectionSequence` (3.15.0), from the same prepared reviews the band renders: ready when the band
|
|
42
|
-
* renders (written reviews, or Google's rating alone as the summary fallback); otherwise `no-feed-reviews`, for a
|
|
43
|
-
* missing feed, an empty one, or the `summary` variant without a rating.
|
|
44
|
-
*/
|
|
45
|
-
export declare function reviewsBandReady(reviews: PreparedBusinessProfileReviews | null | undefined, { variant }?: {
|
|
46
|
-
readonly variant?: ReviewsBandVariant;
|
|
47
|
-
}): BrandlabSectionReadiness;
|
|
48
|
-
/**
|
|
49
|
-
* A long review split at a sentence end (or else a space) near `limit`, so the first part reads on its own. The two
|
|
50
|
-
* parts together are the review word for word. Short reviews, and reviews only a little over the limit, don't fold.
|
|
51
|
-
*/
|
|
52
|
-
export declare function splitReviewText(text: string, limit: number | false): readonly [string, string] | null;
|
|
53
|
-
export interface ReviewsBandRootProps extends ReviewsBandSkin {
|
|
54
|
-
readonly reviews: PreparedBusinessProfileReviews | null | undefined;
|
|
55
|
-
/** The id of the band's H2 (default `bl-reviews-heading`). */
|
|
56
|
-
readonly headingId?: string;
|
|
57
|
-
/** Set by `SectionSequence`. */
|
|
58
|
-
readonly tone?: SectionTone;
|
|
59
|
-
/** Signature art, rendered `aria-hidden`. */
|
|
60
|
-
readonly decoration?: ReactNode;
|
|
61
|
-
readonly children: ReactNode;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* The section: `data-bl-section="reviews"` with `data-bl-source="feed"` (the ready gate's mark for feed numbers),
|
|
65
|
-
* the empty rule, and the locked disclosure line after the children.
|
|
66
|
-
*/
|
|
67
|
-
export declare function ReviewsBandRoot({ reviews, headingId, tone, decoration, variant, layout, classes, children, }: ReviewsBandRootProps): import("react/jsx-runtime").JSX.Element | null;
|
|
68
|
-
export interface ReviewsBandHeadingProps {
|
|
69
|
-
/** The H2's id; the same `headingId` the root has (default `bl-reviews-heading`). */
|
|
70
|
-
readonly id?: string;
|
|
71
|
-
/** The H2 text the site owns. */
|
|
72
|
-
readonly children: string;
|
|
73
|
-
readonly eyebrow?: string;
|
|
74
|
-
readonly intro?: string;
|
|
75
|
-
readonly layout?: Pick<ReviewsBandLayout, 'align'>;
|
|
76
|
-
readonly classes?: Classes;
|
|
77
|
-
}
|
|
78
|
-
/** The heading block: an optional eyebrow, the H2 and an optional intro. */
|
|
79
|
-
export declare function ReviewsBandHeading({ id, children, eyebrow, intro, layout, classes }: ReviewsBandHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
80
|
-
export interface ReviewsBandSummaryProps {
|
|
81
|
-
readonly reviews: PreparedBusinessProfileReviews | null | undefined;
|
|
82
|
-
readonly classes?: Classes;
|
|
83
|
-
}
|
|
84
|
-
/** Google's own average and total with the profile link; nothing when the feed has no rating. */
|
|
85
|
-
export declare function ReviewsBandSummary({ reviews, classes }: ReviewsBandSummaryProps): import("react/jsx-runtime").JSX.Element | null;
|
|
86
|
-
/** The review list; nothing without items. */
|
|
87
|
-
export declare function ReviewsBandList({ classes, children }: {
|
|
88
|
-
readonly classes?: Classes;
|
|
89
|
-
readonly children: ReactNode;
|
|
90
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
91
|
-
export interface ReviewsBandItemProps {
|
|
92
|
-
readonly review: BusinessProfileReview;
|
|
93
|
-
/** The `feature` variant's wide lead card. */
|
|
94
|
-
readonly lead?: boolean;
|
|
95
|
-
readonly layout?: Pick<ReviewsBandLayout, 'avatars' | 'excerpt'>;
|
|
96
|
-
readonly classes?: Classes;
|
|
97
|
-
}
|
|
98
|
-
/** One review, word for word: its stars, the quote and the reviewer with the month. */
|
|
99
|
-
export declare function ReviewsBandItem({ review, lead, layout, classes }: ReviewsBandItemProps): import("react/jsx-runtime").JSX.Element;
|
|
100
|
-
export interface ReviewsBandProps extends ReviewsBandSkin {
|
|
101
|
-
/** From `prepareBusinessProfileReviews`; null renders nothing at all. */
|
|
102
|
-
readonly reviews: PreparedBusinessProfileReviews | null | undefined;
|
|
103
|
-
/** The H2 text the site owns. */
|
|
104
|
-
readonly heading: string;
|
|
105
|
-
readonly eyebrow?: string;
|
|
106
|
-
readonly intro?: string;
|
|
107
|
-
/** The id of the band's H2 (default `bl-reviews-heading`). */
|
|
108
|
-
readonly headingId?: string;
|
|
109
|
-
/** Set by `SectionSequence`. */
|
|
110
|
-
readonly tone?: SectionTone;
|
|
111
|
-
/** Signature art, rendered `aria-hidden`. */
|
|
112
|
-
readonly decoration?: ReactNode;
|
|
113
|
-
}
|
|
114
|
-
declare function ReviewsBandSection({ reviews, heading, eyebrow, intro, headingId, tone, decoration, variant, layout, classes }: ReviewsBandProps): import("react/jsx-runtime").JSX.Element | null;
|
|
115
|
-
/** The reviews band, with its parts for sites that arrange their own layout. */
|
|
116
|
-
export declare const ReviewsBand: typeof ReviewsBandSection & {
|
|
117
|
-
Root: typeof ReviewsBandRoot;
|
|
118
|
-
Heading: typeof ReviewsBandHeading;
|
|
119
|
-
Summary: typeof ReviewsBandSummary;
|
|
120
|
-
List: typeof ReviewsBandList;
|
|
121
|
-
Item: typeof ReviewsBandItem;
|
|
122
|
-
};
|
|
123
|
-
export {};
|
|
124
|
-
//# sourceMappingURL=reviews-band.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reviews-band.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/sections/reviews-band.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACpC,MAAM,qDAAqD,CAAA;AAC5D,OAAO,EAAiB,KAAK,wBAAwB,EAAE,MAAM,2CAA2C,CAAA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