@brandlab-digital/site-next 3.19.1 → 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/blog.d.ts +18 -2
- package/dist/blog.d.ts.map +1 -1
- package/dist/blog.js +14 -2
- package/dist/blog.js.map +1 -1
- 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 -69
- 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,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `Gallery` (`gallery`, 3.15.0): a grid of genuine job photos, on the gallery page (eight or more) or as a short
|
|
3
|
-
* section on a money page. Server component, no client JS: every photo renders through `MediaFrame`, so the sizing
|
|
4
|
-
* rule (a fluid `vw` size or a fixed `displayWidth`, never `sizes="148px"`) and the provenance hook are the library's.
|
|
5
|
-
*
|
|
6
|
-
* Locked:
|
|
7
|
-
* - genuine photos only: a stock or AI image fails the build. An AI illustration is supporting media with its
|
|
8
|
-
* "Illustration" label elsewhere, never in an "our work" gallery (F13);
|
|
9
|
-
* - every photo loads lazily (no preload): a gallery is never the page's main image;
|
|
10
|
-
* - a photo may link its project page; those links never prefetch (a gallery can hold dozens);
|
|
11
|
-
* - no photo twice, and no default visible copy: captions ("{what}, {suburb}, {month year}") come from the site.
|
|
12
|
-
*/
|
|
13
|
-
import type { ReactNode } from 'react';
|
|
14
|
-
import type { BrandlabMediaRatio } from '@brandlab-digital/site-core/media';
|
|
15
|
-
import { type BrandlabSectionReadiness } from '@brandlab-digital/site-core/section-order';
|
|
16
|
-
import { type SectionHeadingSlot, type SectionSlot, type SectionTone } from '../primitives/layout.js';
|
|
17
|
-
import { type UiMedia } from '../primitives/media-frame.js';
|
|
18
|
-
import type { RepeatedSlotOf } from '../repeated-slots.js';
|
|
19
|
-
import { type SkinEntry } from '../skin.js';
|
|
20
|
-
import type { UiLink } from '../types.js';
|
|
21
|
-
/** Rendered once per photo: styled from the skin stylesheet, never by class. The frames are `[data-bl="media"]`. */
|
|
22
|
-
export type GalleryRepeatedSlot = RepeatedSlotOf<'gallery'>;
|
|
23
|
-
export type GallerySlot = SectionSlot | SectionHeadingSlot | 'list' | 'more' | GalleryRepeatedSlot;
|
|
24
|
-
export interface GalleryLayout {
|
|
25
|
-
/** Columns on wide screens. Defaults to 3. */
|
|
26
|
-
readonly columns?: 2 | 3 | 4;
|
|
27
|
-
/** Crop every photo to one ratio, so the grid lines up. Left out, each photo keeps its own shape. */
|
|
28
|
-
readonly ratio?: BrandlabMediaRatio;
|
|
29
|
-
}
|
|
30
|
-
export type GallerySkin = SkinEntry<GallerySlot, never, GalleryLayout, GalleryRepeatedSlot>;
|
|
31
|
-
/** One photo of the work. */
|
|
32
|
-
export interface GalleryPhoto {
|
|
33
|
-
/** A stable slug (the media id), rendered as `data-item`. */
|
|
34
|
-
readonly id: string;
|
|
35
|
-
/** A genuine photo from the media manifest. */
|
|
36
|
-
readonly media: UiMedia;
|
|
37
|
-
/** "{what}, {suburb}, {month year}", only when the photo really shows that job. */
|
|
38
|
-
readonly caption?: ReactNode;
|
|
39
|
-
/** The job's project page, when it has one. Never prefetched. */
|
|
40
|
-
readonly href?: string;
|
|
41
|
-
}
|
|
42
|
-
export interface GalleryProps extends GallerySkin {
|
|
43
|
-
/** The H2, for example "Our recent tree work". */
|
|
44
|
-
readonly title: ReactNode;
|
|
45
|
-
readonly eyebrow?: ReactNode;
|
|
46
|
-
readonly lead?: ReactNode;
|
|
47
|
-
readonly photos: readonly GalleryPhoto[];
|
|
48
|
-
/** A link after the grid, for example the full gallery. Never prefetched. */
|
|
49
|
-
readonly more?: UiLink;
|
|
50
|
-
/** The photos' `sizes`: a fluid `vw` string, or a number for a fixed CSS width (thumbnails). Defaults to one column. */
|
|
51
|
-
readonly imageSizes?: string | number;
|
|
52
|
-
/** Defaults to `gallery-heading`. */
|
|
53
|
-
readonly headingId?: string;
|
|
54
|
-
/** Set by `SectionSequence`. */
|
|
55
|
-
readonly tone?: SectionTone;
|
|
56
|
-
}
|
|
57
|
-
/** The section's guard for `SectionSequence`: skipped when there is no genuine photo to show. */
|
|
58
|
-
export declare function galleryReady({ photos }: Pick<GalleryProps, 'photos'>): BrandlabSectionReadiness;
|
|
59
|
-
export declare function Gallery({ title, eyebrow, lead, photos, more, imageSizes, headingId, tone, layout, classes }: GalleryProps): import("react/jsx-runtime").JSX.Element | null;
|
|
60
|
-
//# sourceMappingURL=gallery.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gallery.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/sections/gallery.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AAiE;IACjE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,kDAAkD;IAClD,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAA;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAA;IACxC,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,wHAAwH;IACxH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACrC,qCAAqC;IACrC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,gCAAgC;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAA;CAC5B;AAED,iGAAiG;AACjG,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,GAAG,wBAAwB,CAE/F;AAgBD,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,SAA6B,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,YAAY,kDAiC7I"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { SECTION_READY } from '@brandlab-digital/site-core/section-order';
|
|
3
|
-
import { Section, SectionHeading } from '../primitives/layout.js';
|
|
4
|
-
import { Anchor } from '../primitives/links.js';
|
|
5
|
-
import { MediaFrame } from '../primitives/media-frame.js';
|
|
6
|
-
import { repeatedSlot, slot } from '../skin.js';
|
|
7
|
-
import { assertGenuineWork, frameSizing, gridImageSizes, isInternalPath } from './work-photos.js';
|
|
8
|
-
/** The section's guard for `SectionSequence`: skipped when there is no genuine photo to show. */
|
|
9
|
-
export function galleryReady({ photos }) {
|
|
10
|
-
return photos.length > 0 ? SECTION_READY : { render: false, reason: 'no-genuine-photos' };
|
|
11
|
-
}
|
|
12
|
-
function assertPhotos(photos) {
|
|
13
|
-
const ids = new Set();
|
|
14
|
-
const sources = new Map();
|
|
15
|
-
for (const photo of photos) {
|
|
16
|
-
if (!photo.id || ids.has(photo.id))
|
|
17
|
-
throw new Error(`Gallery: every photo needs its own id ("${photo.id}" is empty or repeated).`);
|
|
18
|
-
ids.add(photo.id);
|
|
19
|
-
assertGenuineWork('Gallery', photo.media, `"${photo.id}"`);
|
|
20
|
-
const other = sources.get(photo.media.src);
|
|
21
|
-
if (other)
|
|
22
|
-
throw new Error(`Gallery: "${photo.id}" and "${other}" are the same photo (${photo.media.src}).`);
|
|
23
|
-
sources.set(photo.media.src, photo.id);
|
|
24
|
-
if (photo.href !== undefined && !isInternalPath(photo.href))
|
|
25
|
-
throw new Error(`Gallery: "${photo.id}" links ${photo.href}; a photo links its project page on this site.`);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export function Gallery({ title, eyebrow, lead, photos, more, imageSizes, headingId = 'gallery-heading', tone, layout, classes }) {
|
|
29
|
-
if (!galleryReady({ photos }).render)
|
|
30
|
-
return null;
|
|
31
|
-
assertPhotos(photos);
|
|
32
|
-
const columns = layout?.columns ?? 3;
|
|
33
|
-
const sizing = frameSizing(imageSizes ?? gridImageSizes(columns));
|
|
34
|
-
return (_jsxs(Section, { id: "gallery", labelledBy: headingId, tone: tone, classes: classes, hooks: { 'data-columns': String(columns), 'data-ratio': layout?.ratio }, children: [_jsx(SectionHeading, { id: headingId, title: title, eyebrow: eyebrow, lead: lead, classes: classes }), _jsx("ul", { role: "list", ...slot(classes, 'list'), children: photos.map((photo) => {
|
|
35
|
-
const frame = _jsx(MediaFrame, { media: photo.media, ratio: layout?.ratio, caption: photo.caption, ...sizing });
|
|
36
|
-
return (_jsx("li", { ...repeatedSlot('item'), "data-item": photo.id, children: photo.href ? (_jsx(Anchor, { href: photo.href, prefetch: false, hooks: { 'data-slot': 'link' }, children: frame })) : (frame) }, photo.id));
|
|
37
|
-
}) }), more ? (_jsx("p", { ...slot(classes, 'more'), children: _jsx(Anchor, { href: more.href, prefetch: false, hooks: {}, children: more.label }) })) : null] }));
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=gallery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gallery.js","sourceRoot":"","sources":["../../../src/ui-kit/sections/gallery.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,aAAa,EAAiC,MAAM,2CAA2C,CAAA;AACxG,OAAO,EAAE,OAAO,EAAE,cAAc,EAA+D,MAAM,yBAAyB,CAAA;AAC9H,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAgB,MAAM,8BAA8B,CAAA;AAEvE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAkB,MAAM,YAAY,CAAA;AAE/D,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAyCjG,iGAAiG;AACjG,MAAM,UAAU,YAAY,CAAC,EAAE,MAAM,EAAgC;IACnE,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,CAAA;AAC3F,CAAC;AAED,SAAS,YAAY,CAAC,MAA+B;IACnD,MAAM,GAAG,GAAG,IAAI,GAAG,EAAU,CAAA;IAC7B,MAAM,OAAO,GAAG,IAAI,GAAG,EAAkB,CAAA;IACzC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG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E,KAAK,EAAE,EAAE,YAChD,IAAI,CAAC,KAAK,GACJ,GACP,CACL,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAA;AACH,CAAC","sourcesContent":["/**\n * `Gallery` (`gallery`, 3.15.0): a grid of genuine job photos, on the gallery page (eight or more) or as a short\n * section on a money page. Server component, no client JS: every photo renders through `MediaFrame`, so the sizing\n * rule (a fluid `vw` size or a fixed `displayWidth`, never `sizes=\"148px\"`) and the provenance hook are the library's.\n *\n * Locked:\n * - genuine photos only: a stock or AI image fails the build. An AI illustration is supporting media with its\n * \"Illustration\" label elsewhere, never in an \"our work\" gallery (F13);\n * - every photo loads lazily (no preload): a gallery is never the page's main image;\n * - a photo may link its project page; those links never prefetch (a gallery can hold dozens);\n * - no photo twice, and no default visible copy: captions (\"{what}, {suburb}, {month year}\") come from the site.\n */\nimport type { ReactNode } from 'react'\nimport type { BrandlabMediaRatio } from '@brandlab-digital/site-core/media'\nimport { SECTION_READY, type BrandlabSectionReadiness } from '@brandlab-digital/site-core/section-order'\nimport { Section, SectionHeading, type SectionHeadingSlot, type SectionSlot, type SectionTone } from '../primitives/layout.js'\nimport { Anchor } from '../primitives/links.js'\nimport { MediaFrame, type UiMedia } from '../primitives/media-frame.js'\nimport type { RepeatedSlotOf } from '../repeated-slots.js'\nimport { repeatedSlot, slot, type SkinEntry } from '../skin.js'\nimport type { UiLink } from '../types.js'\nimport { assertGenuineWork, frameSizing, gridImageSizes, isInternalPath } from './work-photos.js'\n\n/** Rendered once per photo: styled from the skin stylesheet, never by class. The frames are `[data-bl=\"media\"]`. */\nexport type GalleryRepeatedSlot = RepeatedSlotOf<'gallery'>\nexport type GallerySlot = SectionSlot | SectionHeadingSlot | 'list' | 'more' | GalleryRepeatedSlot\nexport interface GalleryLayout {\n /** Columns on wide screens. Defaults to 3. */\n readonly columns?: 2 | 3 | 4\n /** Crop every photo to one ratio, so the grid lines up. Left out, each photo keeps its own shape. */\n readonly ratio?: BrandlabMediaRatio\n}\nexport type GallerySkin = SkinEntry<GallerySlot, never, GalleryLayout, GalleryRepeatedSlot>\n\n/** One photo of the work. */\nexport interface GalleryPhoto {\n /** A stable slug (the media id), rendered as `data-item`. */\n readonly id: string\n /** A genuine photo from the media manifest. */\n readonly media: UiMedia\n /** \"{what}, {suburb}, {month year}\", only when the photo really shows that job. */\n readonly caption?: ReactNode\n /** The job's project page, when it has one. Never prefetched. */\n readonly href?: string\n}\n\nexport interface GalleryProps extends GallerySkin {\n /** The H2, for example \"Our recent tree work\". */\n readonly title: ReactNode\n readonly eyebrow?: ReactNode\n readonly lead?: ReactNode\n readonly photos: readonly GalleryPhoto[]\n /** A link after the grid, for example the full gallery. Never prefetched. */\n readonly more?: UiLink\n /** The photos' `sizes`: a fluid `vw` string, or a number for a fixed CSS width (thumbnails). Defaults to one column. */\n readonly imageSizes?: string | number\n /** Defaults to `gallery-heading`. */\n readonly headingId?: string\n /** Set by `SectionSequence`. */\n readonly tone?: SectionTone\n}\n\n/** The section's guard for `SectionSequence`: skipped when there is no genuine photo to show. */\nexport function galleryReady({ photos }: Pick<GalleryProps, 'photos'>): BrandlabSectionReadiness {\n return photos.length > 0 ? SECTION_READY : { render: false, reason: 'no-genuine-photos' }\n}\n\nfunction assertPhotos(photos: readonly GalleryPhoto[]): void {\n const ids = new Set<string>()\n const sources = new Map<string, string>()\n for (const photo of photos) {\n if (!photo.id || ids.has(photo.id)) throw new Error(`Gallery: every photo needs its own id (\"${photo.id}\" is empty or repeated).`)\n ids.add(photo.id)\n assertGenuineWork('Gallery', photo.media, `\"${photo.id}\"`)\n const other = sources.get(photo.media.src)\n if (other) throw new Error(`Gallery: \"${photo.id}\" and \"${other}\" are the same photo (${photo.media.src}).`)\n sources.set(photo.media.src, photo.id)\n if (photo.href !== undefined && !isInternalPath(photo.href)) throw new Error(`Gallery: \"${photo.id}\" links ${photo.href}; a photo links its project page on this site.`)\n }\n}\n\nexport function Gallery({ title, eyebrow, lead, photos, more, imageSizes, headingId = 'gallery-heading', tone, layout, classes }: GalleryProps) {\n if (!galleryReady({ photos }).render) return null\n assertPhotos(photos)\n const columns = layout?.columns ?? 3\n const sizing = frameSizing(imageSizes ?? gridImageSizes(columns))\n return (\n <Section id=\"gallery\" labelledBy={headingId} tone={tone} classes={classes} hooks={{ 'data-columns': String(columns), 'data-ratio': layout?.ratio }}>\n <SectionHeading id={headingId} title={title} eyebrow={eyebrow} lead={lead} classes={classes} />\n <ul role=\"list\" {...slot(classes, 'list')}>\n {photos.map((photo) => {\n const frame = <MediaFrame media={photo.media} ratio={layout?.ratio} caption={photo.caption} {...sizing} />\n return (\n <li key={photo.id} {...repeatedSlot('item')} data-item={photo.id}>\n {photo.href ? (\n <Anchor href={photo.href} prefetch={false} hooks={{ 'data-slot': 'link' }}>\n {frame}\n </Anchor>\n ) : (\n frame\n )}\n </li>\n )\n })}\n </ul>\n {more ? (\n <p {...slot(classes, 'more')}>\n <Anchor href={more.href} prefetch={false} hooks={{}}>\n {more.label}\n </Anchor>\n </p>\n ) : null}\n </Section>\n )\n}\n"]}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `Hero` (S1, `hero`, 3.14.0): the first screen of the home, service and service-in-suburb pages. Server component;
|
|
3
|
-
* it wins the click and starts the enquiry. Light by default: every colour comes from the site's tokens and skin.
|
|
4
|
-
*
|
|
5
|
-
* In source order, which is the phone order: breadcrumbs (service and location pages), an optional eyebrow, the H1
|
|
6
|
-
* (once, as plain text; on a location page the built "{Service} {Suburb}" string), one offer line of 25 words or fewer,
|
|
7
|
-
* the two actions, the trust checklist (up to six verified facts, two columns), Google's feed rating, partner badges,
|
|
8
|
-
* the photo and then the site's quote form. On desktop the form sits beside the text (`split`, the photo on the other side) or over the photo
|
|
9
|
-
* as a card (`full-bleed`, under a text-side scrim the skin colours).
|
|
10
|
-
*
|
|
11
|
-
* Locked:
|
|
12
|
-
* - the actions are the phone link (`data-phone-location="hero"`, icon on the left) then the quote button
|
|
13
|
-
* (`lead_cta_click` placement `hero`, id `quote-hero`): the same phone-first order as the header, the call bar and the
|
|
14
|
-
* CTA band (K6). Job mode only moves the primary styling (`data-primary`), never the order;
|
|
15
|
-
* - the actions are the page's call path (`data-bl-call-path`), so the phone call bar stays hidden while they are on
|
|
16
|
-
* screen and shows once they scroll out (F6);
|
|
17
|
-
* - with a form, the quote button links to it (`#quote-hero`, the form's own id) and the form is in the hero, so C1 sees
|
|
18
|
-
* the H1, a call and a quote action in the first phone screen and the form in the first desktop screen;
|
|
19
|
-
* - the photo is the page's largest image: preloaded, high priority, never lazy. It must be real work or licensed stock
|
|
20
|
-
* (an AI illustration is supporting only, F13), and a job caption needs a genuine photo;
|
|
21
|
-
* - no review quote, and no visible words the site doesn't pass.
|
|
22
|
-
*
|
|
23
|
-
* `family` is the page family (`data-family`): `home` takes no breadcrumbs and is `tall` by default; `service` and
|
|
24
|
-
* `location` take breadcrumbs. A skin styles families apart through `[data-family]`; the variant is the site's one
|
|
25
|
-
* hero structure.
|
|
26
|
-
*
|
|
27
|
-
* The site's own hero (3.16.0), inside the same skeleton:
|
|
28
|
-
* - `layout.contentOrder` arranges the text column's parts (AA: H1, rating, summary, checklist, actions). The
|
|
29
|
-
* breadcrumbs stay first, an eyebrow sits straight before the H1, and the H1 comes before the summary and actions;
|
|
30
|
-
* parts left out follow in the default order;
|
|
31
|
-
* - `layout.rating: 'figure'` shows Google's rating as a large figure with the stars and count, and `ratingMoreLabel`
|
|
32
|
-
* adds the site's link to all the reviews;
|
|
33
|
-
* - `formHeading` puts an eyebrow, an H2 and a line above the quote form (the hero's one H2);
|
|
34
|
-
* - `seal` stamps one verified fact on the photo (`{ value: '15+', label: 'years of tree work' }`);
|
|
35
|
-
* - `layout.scrim` chooses the overlay: `full` over the whole photo, `column` behind the text side only (as wide as
|
|
36
|
-
* `--bl-hero-scrim-column-width`, 60% by default), or `none` (the default on `split`; `full-bleed` defaults to
|
|
37
|
-
* `full`), coloured by the skin's `--bl-hero-scrim`;
|
|
38
|
-
* - the photo's corners, shadow and filter come from `--bl-hero-photo-radius`, `--bl-hero-photo-shadow` and
|
|
39
|
-
* `--bl-hero-photo-filter`, and the `decoration` slot holds the site's motif.
|
|
40
|
-
*/
|
|
41
|
-
import { type ReactNode } from 'react';
|
|
42
|
-
import { type SiteJobMode } from '@brandlab-digital/site-core/strategy';
|
|
43
|
-
import { type SectionTone } from '../primitives/layout.js';
|
|
44
|
-
import { type TickItem } from '../primitives/lists.js';
|
|
45
|
-
import { type UiMedia } from '../primitives/media-frame.js';
|
|
46
|
-
import { type SkinEntry } from '../skin.js';
|
|
47
|
-
import type { UiPhone } from '../types.js';
|
|
48
|
-
import { type RatingChipData } from './rating-chip.js';
|
|
49
|
-
/** The text column's parts, in their default order (3.16.0). The breadcrumbs always come first. */
|
|
50
|
-
export declare const HERO_CONTENT_PARTS: readonly ["eyebrow", "h1", "summary", "actions", "checklist", "rating", "badges"];
|
|
51
|
-
export type HeroContentPart = (typeof HERO_CONTENT_PARTS)[number];
|
|
52
|
-
export declare const HERO_SCRIMS: readonly ["none", "full", "column"];
|
|
53
|
-
export type HeroScrim = (typeof HERO_SCRIMS)[number];
|
|
54
|
-
export declare const HERO_VARIANTS: readonly ["split", "full-bleed"];
|
|
55
|
-
export type HeroVariant = (typeof HERO_VARIANTS)[number];
|
|
56
|
-
/**
|
|
57
|
-
* The hero's family (`data-family`). Site-core's page families are finer (`service-in-suburb`, `region`, `suburb` all
|
|
58
|
-
* take the `location` hero), so this stays a hero-level grouping.
|
|
59
|
-
*/
|
|
60
|
-
export declare const HERO_FAMILIES: readonly ["home", "service", "location"];
|
|
61
|
-
export type HeroFamily = (typeof HERO_FAMILIES)[number];
|
|
62
|
-
/**
|
|
63
|
-
* A service's job mode (v2 §2.2), as the site's strategy decision card records it (`SiteJobMode` in
|
|
64
|
-
* `site-core/strategy`): which action is styled primary. Never the order.
|
|
65
|
-
*/
|
|
66
|
-
export declare const HERO_JOB_MODES: readonly ["urgent", "planned", "mixed"];
|
|
67
|
-
export type HeroJobMode = SiteJobMode;
|
|
68
|
-
export type HeroSlot = 'root' | 'inner' | 'content' | 'crumbs' | 'eyebrow' | 'h1' | 'summary' | 'actions' | 'phone' | 'quote' | 'checklist' | 'rating' | 'badges' | 'media' | 'caption' | 'scrim' | 'form' | 'formHead' | 'formEyebrow' | 'formTitle' | 'formText' | 'seal' | 'sealValue' | 'sealLabel';
|
|
69
|
-
export interface HeroLayout {
|
|
70
|
-
/** `split`: the photo's side on desktop (default `end`). */
|
|
71
|
-
readonly mediaSide?: 'start' | 'end';
|
|
72
|
-
/** Default `tall` on the home page, `standard` elsewhere. */
|
|
73
|
-
readonly height?: 'standard' | 'tall';
|
|
74
|
-
/** The trust checklist's columns (default 2). */
|
|
75
|
-
readonly checklistColumns?: 1 | 2;
|
|
76
|
-
/**
|
|
77
|
-
* The checklist's ticks (3.15.0): `icon` (the default) is the sprite's check; `rule` ships no svg, only a mark the
|
|
78
|
-
* stylesheet draws as a short rule (`TickList`'s `layout.tick`), about 100 bytes less a fact.
|
|
79
|
-
*/
|
|
80
|
-
readonly checklistTick?: 'icon' | 'rule';
|
|
81
|
-
/** The text column's order (3.16.0); parts left out follow in the default order. */
|
|
82
|
-
readonly contentOrder?: readonly HeroContentPart[];
|
|
83
|
-
/** Google's rating as one line (`chip`, the default) or a large figure with the stars and count (3.16.0). */
|
|
84
|
-
readonly rating?: 'chip' | 'figure';
|
|
85
|
-
/** The photo's overlay (3.16.0): `full`, `column` (behind the text side only) or `none`. */
|
|
86
|
-
readonly scrim?: HeroScrim;
|
|
87
|
-
/**
|
|
88
|
-
* The photo's WebP quality, 1 to 100 (3.18.0; Next's default 75). Add it to `images.qualities` in
|
|
89
|
-
* `brandlabNextConfig`. A hero over B1's 200 KB at 1440 px usually passes at 60 to 65.
|
|
90
|
-
*/
|
|
91
|
-
readonly imageQuality?: number;
|
|
92
|
-
}
|
|
93
|
-
export type HeroSkin = SkinEntry<HeroSlot, HeroVariant, HeroLayout>;
|
|
94
|
-
/** The form's id and lead diagnostics `form_id` in the hero; the quote button links here. */
|
|
95
|
-
export declare const HERO_FORM_ID = "quote-hero";
|
|
96
|
-
/** The most facts the trust checklist holds (v2 S1: three to six). */
|
|
97
|
-
export declare const HERO_CHECKLIST_MAX = 6;
|
|
98
|
-
/** The offer line's word limit (v2 §9.2). */
|
|
99
|
-
export declare const HERO_SUMMARY_MAX_WORDS = 25;
|
|
100
|
-
export interface HeroProps extends HeroSkin {
|
|
101
|
-
readonly family: HeroFamily;
|
|
102
|
-
/** The H1 text: the recorded H1 on live pages, the title builder's on new ones ("Tree Removal Castle Hill"). */
|
|
103
|
-
readonly title: string;
|
|
104
|
-
/** The one offer line under the H1, 25 words or fewer. */
|
|
105
|
-
readonly summary: string;
|
|
106
|
-
/** A short label above the H1. */
|
|
107
|
-
readonly eyebrow?: string;
|
|
108
|
-
/** The page's breadcrumbs (the shared `Breadcrumbs`, with its own `nav`). Service and location pages only. */
|
|
109
|
-
readonly breadcrumbs?: ReactNode;
|
|
110
|
-
/** The trust checklist: verified facts only (licence, insurance, rating source, years), at most six. */
|
|
111
|
-
readonly checklist: readonly TickItem[];
|
|
112
|
-
/**
|
|
113
|
-
* Google's average and total from the reviews feed (`prepareBusinessProfileReviews`), shown as the shared
|
|
114
|
-
* `RatingChip` (`data-bl="rating-chip"`, the `rating` class on its root, like `phone` and `quote`) after the
|
|
115
|
-
* checklist, linked to the Business Profile. Never typed by hand: without a feed average and a total of 1 or more,
|
|
116
|
-
* nothing renders.
|
|
117
|
-
*/
|
|
118
|
-
readonly rating?: RatingChipData | null;
|
|
119
|
-
/** Partner badges or logos held and verified (a `LogoStrip`). */
|
|
120
|
-
readonly badges?: ReactNode;
|
|
121
|
-
/** The best genuine photo of this page's service; on a location page the nearest job's. From `media.ts`. */
|
|
122
|
-
readonly media: UiMedia;
|
|
123
|
-
/** "{what}, {suburb}, {month year}" for a genuine job photo, for example on a location page. */
|
|
124
|
-
readonly caption?: string;
|
|
125
|
-
readonly phone: UiPhone;
|
|
126
|
-
/** Optional words before the number, for example "Call". */
|
|
127
|
-
readonly phoneLabel?: string;
|
|
128
|
-
/**
|
|
129
|
-
* The site's recorded quote label (C5). `href` defaults to the hero's own form (`#quote-hero`); without a form it
|
|
130
|
-
* is required (for example `/contact#quote`).
|
|
131
|
-
*/
|
|
132
|
-
readonly quote: {
|
|
133
|
-
readonly label: string;
|
|
134
|
-
readonly href?: string;
|
|
135
|
-
};
|
|
136
|
-
/** The site's bound quote form: `<QuoteForm formId="quote-hero" />`. Required on money pages (C1). */
|
|
137
|
-
readonly form?: ReactNode;
|
|
138
|
-
/** The page's service job mode (default `planned`): `urgent` styles the phone link primary. */
|
|
139
|
-
readonly jobMode?: HeroJobMode;
|
|
140
|
-
/** The H1's id (default `hero-title`). */
|
|
141
|
-
readonly headingId?: string;
|
|
142
|
-
/** Set by `SectionSequence`. */
|
|
143
|
-
readonly tone?: SectionTone;
|
|
144
|
-
/** Signature art, rendered `aria-hidden` (Superior's waterline, Absolute's grass edge). */
|
|
145
|
-
readonly decoration?: ReactNode;
|
|
146
|
-
/** The site's words for a link to all the reviews on Google, after the rating (3.16.0). */
|
|
147
|
-
readonly ratingMoreLabel?: string;
|
|
148
|
-
/** A heading block above the quote form (3.16.0): an optional eyebrow, the H2 and an optional line. */
|
|
149
|
-
readonly formHeading?: {
|
|
150
|
-
readonly eyebrow?: string;
|
|
151
|
-
readonly title: string;
|
|
152
|
-
readonly text?: string;
|
|
153
|
-
};
|
|
154
|
-
/** One verified fact stamped on the photo (3.16.0), for example `{ value: '15+', label: 'years of tree work' }`. */
|
|
155
|
-
readonly seal?: {
|
|
156
|
-
readonly value: string;
|
|
157
|
-
readonly label: string;
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
/** The form heading's id (3.16.0). */
|
|
161
|
-
export declare const HERO_FORM_HEADING_ID = "quote-hero-title";
|
|
162
|
-
/**
|
|
163
|
-
* The text column's order: the site's order, then the parts it left out in the default order. A left-out eyebrow goes
|
|
164
|
-
* straight before the H1, where it always sits (3.16.1).
|
|
165
|
-
*/
|
|
166
|
-
export declare function heroContentOrder(order?: readonly HeroContentPart[]): HeroContentPart[];
|
|
167
|
-
export declare function Hero(props: HeroProps): import("react/jsx-runtime").JSX.Element;
|
|
168
|
-
//# sourceMappingURL=hero.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/sections/hero.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,sCAAsC,CAAA;AACvF,OAAO,EAAW,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEnE,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAChE,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAEvE,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAA+B,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEnF,mGAAmG;AACnG,eAAO,MAAM,kBAAkB,mFAAoF,CAAA;AACnH,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjE,eAAO,MAAM,WAAW,qCAAsC,CAAA;AAC9D,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AAEpD,eAAO,MAAM,aAAa,kCAAmC,CAAA;AAC7D,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAExD;;;GAGG;AACH,eAAO,MAAM,aAAa,0C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AA;IAC3B,gCAAgC;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAA;IAC3B,2FAA2F;IAC3F,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,CAAA;IAC/B,2FAA2F;IAC3F,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAA;IACjC,uGAAuG;IACvG,QAAQ,CAAC,WAAW,CAAC,EAAE;QAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACpG,oHAAoH;IACpH,QAAQ,CAAC,IAAI,CAAC,EAAE;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CACnE;AAED,sCAAsC;AACtC,eAAO,MAAM,oBAAoB,qBAA0B,CAAA;AAE3D;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,GAAE,SAAS,eAAe,EAAO,GAAG,eAAe,EAAE,CAe1F;AAkBD,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,2CA6HpC"}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* `Hero` (S1, `hero`, 3.14.0): the first screen of the home, service and service-in-suburb pages. Server component;
|
|
4
|
-
* it wins the click and starts the enquiry. Light by default: every colour comes from the site's tokens and skin.
|
|
5
|
-
*
|
|
6
|
-
* In source order, which is the phone order: breadcrumbs (service and location pages), an optional eyebrow, the H1
|
|
7
|
-
* (once, as plain text; on a location page the built "{Service} {Suburb}" string), one offer line of 25 words or fewer,
|
|
8
|
-
* the two actions, the trust checklist (up to six verified facts, two columns), Google's feed rating, partner badges,
|
|
9
|
-
* the photo and then the site's quote form. On desktop the form sits beside the text (`split`, the photo on the other side) or over the photo
|
|
10
|
-
* as a card (`full-bleed`, under a text-side scrim the skin colours).
|
|
11
|
-
*
|
|
12
|
-
* Locked:
|
|
13
|
-
* - the actions are the phone link (`data-phone-location="hero"`, icon on the left) then the quote button
|
|
14
|
-
* (`lead_cta_click` placement `hero`, id `quote-hero`): the same phone-first order as the header, the call bar and the
|
|
15
|
-
* CTA band (K6). Job mode only moves the primary styling (`data-primary`), never the order;
|
|
16
|
-
* - the actions are the page's call path (`data-bl-call-path`), so the phone call bar stays hidden while they are on
|
|
17
|
-
* screen and shows once they scroll out (F6);
|
|
18
|
-
* - with a form, the quote button links to it (`#quote-hero`, the form's own id) and the form is in the hero, so C1 sees
|
|
19
|
-
* the H1, a call and a quote action in the first phone screen and the form in the first desktop screen;
|
|
20
|
-
* - the photo is the page's largest image: preloaded, high priority, never lazy. It must be real work or licensed stock
|
|
21
|
-
* (an AI illustration is supporting only, F13), and a job caption needs a genuine photo;
|
|
22
|
-
* - no review quote, and no visible words the site doesn't pass.
|
|
23
|
-
*
|
|
24
|
-
* `family` is the page family (`data-family`): `home` takes no breadcrumbs and is `tall` by default; `service` and
|
|
25
|
-
* `location` take breadcrumbs. A skin styles families apart through `[data-family]`; the variant is the site's one
|
|
26
|
-
* hero structure.
|
|
27
|
-
*
|
|
28
|
-
* The site's own hero (3.16.0), inside the same skeleton:
|
|
29
|
-
* - `layout.contentOrder` arranges the text column's parts (AA: H1, rating, summary, checklist, actions). The
|
|
30
|
-
* breadcrumbs stay first, an eyebrow sits straight before the H1, and the H1 comes before the summary and actions;
|
|
31
|
-
* parts left out follow in the default order;
|
|
32
|
-
* - `layout.rating: 'figure'` shows Google's rating as a large figure with the stars and count, and `ratingMoreLabel`
|
|
33
|
-
* adds the site's link to all the reviews;
|
|
34
|
-
* - `formHeading` puts an eyebrow, an H2 and a line above the quote form (the hero's one H2);
|
|
35
|
-
* - `seal` stamps one verified fact on the photo (`{ value: '15+', label: 'years of tree work' }`);
|
|
36
|
-
* - `layout.scrim` chooses the overlay: `full` over the whole photo, `column` behind the text side only (as wide as
|
|
37
|
-
* `--bl-hero-scrim-column-width`, 60% by default), or `none` (the default on `split`; `full-bleed` defaults to
|
|
38
|
-
* `full`), coloured by the skin's `--bl-hero-scrim`;
|
|
39
|
-
* - the photo's corners, shadow and filter come from `--bl-hero-photo-radius`, `--bl-hero-photo-shadow` and
|
|
40
|
-
* `--bl-hero-photo-filter`, and the `decoration` slot holds the site's motif.
|
|
41
|
-
*/
|
|
42
|
-
import { Fragment } from 'react';
|
|
43
|
-
import { SITE_JOB_MODES } from '@brandlab-digital/site-core/strategy';
|
|
44
|
-
import { Section } from '../primitives/layout.js';
|
|
45
|
-
import { PhoneLink } from '../primitives/links.js';
|
|
46
|
-
import { TickList } from '../primitives/lists.js';
|
|
47
|
-
import { MediaFrame } from '../primitives/media-frame.js';
|
|
48
|
-
import { QuoteButton } from '../primitives/quote-button.js';
|
|
49
|
-
import { slot } from '../skin.js';
|
|
50
|
-
import { RatingChip, hasGoogleRating } from './rating-chip.js';
|
|
51
|
-
/** The text column's parts, in their default order (3.16.0). The breadcrumbs always come first. */
|
|
52
|
-
export const HERO_CONTENT_PARTS = ['eyebrow', 'h1', 'summary', 'actions', 'checklist', 'rating', 'badges'];
|
|
53
|
-
export const HERO_SCRIMS = ['none', 'full', 'column'];
|
|
54
|
-
export const HERO_VARIANTS = ['split', 'full-bleed'];
|
|
55
|
-
/**
|
|
56
|
-
* The hero's family (`data-family`). Site-core's page families are finer (`service-in-suburb`, `region`, `suburb` all
|
|
57
|
-
* take the `location` hero), so this stays a hero-level grouping.
|
|
58
|
-
*/
|
|
59
|
-
export const HERO_FAMILIES = ['home', 'service', 'location'];
|
|
60
|
-
/**
|
|
61
|
-
* A service's job mode (v2 §2.2), as the site's strategy decision card records it (`SiteJobMode` in
|
|
62
|
-
* `site-core/strategy`): which action is styled primary. Never the order.
|
|
63
|
-
*/
|
|
64
|
-
export const HERO_JOB_MODES = SITE_JOB_MODES;
|
|
65
|
-
/** The form's id and lead diagnostics `form_id` in the hero; the quote button links here. */
|
|
66
|
-
export const HERO_FORM_ID = 'quote-hero';
|
|
67
|
-
/** The most facts the trust checklist holds (v2 S1: three to six). */
|
|
68
|
-
export const HERO_CHECKLIST_MAX = 6;
|
|
69
|
-
/** The offer line's word limit (v2 §9.2). */
|
|
70
|
-
export const HERO_SUMMARY_MAX_WORDS = 25;
|
|
71
|
-
/** The form heading's id (3.16.0). */
|
|
72
|
-
export const HERO_FORM_HEADING_ID = `${HERO_FORM_ID}-title`;
|
|
73
|
-
/**
|
|
74
|
-
* The text column's order: the site's order, then the parts it left out in the default order. A left-out eyebrow goes
|
|
75
|
-
* straight before the H1, where it always sits (3.16.1).
|
|
76
|
-
*/
|
|
77
|
-
export function heroContentOrder(order = []) {
|
|
78
|
-
const problems = [];
|
|
79
|
-
const seen = new Set();
|
|
80
|
-
for (const part of order) {
|
|
81
|
-
if (!HERO_CONTENT_PARTS.includes(part))
|
|
82
|
-
problems.push(`"${part}" is not a hero part (${HERO_CONTENT_PARTS.join(', ')})`);
|
|
83
|
-
else if (seen.has(part))
|
|
84
|
-
problems.push(`"${part}" appears twice`);
|
|
85
|
-
seen.add(part);
|
|
86
|
-
}
|
|
87
|
-
const full = [...order, ...HERO_CONTENT_PARTS.filter((part) => !seen.has(part) && part !== 'eyebrow')];
|
|
88
|
-
if (!seen.has('eyebrow'))
|
|
89
|
-
full.splice(full.indexOf('h1'), 0, 'eyebrow');
|
|
90
|
-
const at = (part) => full.indexOf(part);
|
|
91
|
-
if (at('eyebrow') !== at('h1') - 1)
|
|
92
|
-
problems.push('the eyebrow sits straight before the H1');
|
|
93
|
-
if (at('summary') < at('h1') || at('actions') < at('h1'))
|
|
94
|
-
problems.push('the H1 comes before the summary and the actions');
|
|
95
|
-
if (problems.length > 0)
|
|
96
|
-
throw new Error(`Hero content order: ${problems.join('; ')}.`);
|
|
97
|
-
return full;
|
|
98
|
-
}
|
|
99
|
-
const words = (text) => text.trim().split(/\s+/).filter(Boolean).length;
|
|
100
|
-
function assertHero({ title, summary, checklist, media, caption, quote, form, formHeading, seal }) {
|
|
101
|
-
const problems = [];
|
|
102
|
-
if (title.trim() === '')
|
|
103
|
-
problems.push('the H1 is empty');
|
|
104
|
-
if (words(summary) > HERO_SUMMARY_MAX_WORDS)
|
|
105
|
-
problems.push(`the offer line has ${words(summary)} words (${HERO_SUMMARY_MAX_WORDS} at most)`);
|
|
106
|
-
if (checklist.length > HERO_CHECKLIST_MAX)
|
|
107
|
-
problems.push(`the checklist has ${checklist.length} facts (${HERO_CHECKLIST_MAX} at most)`);
|
|
108
|
-
if (media.provenance === 'illustrative-ai')
|
|
109
|
-
problems.push(`${media.src} is an AI illustration; the hero shows real work or licensed stock`);
|
|
110
|
-
if (caption && media.provenance !== 'genuine')
|
|
111
|
-
problems.push(`a job caption needs a genuine photo (${media.src} is ${media.provenance})`);
|
|
112
|
-
if (!form && !quote.href)
|
|
113
|
-
problems.push('without a form, quote.href must name the quote form, for example /contact#quote');
|
|
114
|
-
if (formHeading && !form)
|
|
115
|
-
problems.push('a form heading needs the form');
|
|
116
|
-
if (formHeading && formHeading.title.trim() === '')
|
|
117
|
-
problems.push('the form heading is empty');
|
|
118
|
-
if (seal && (seal.value.trim() === '' || seal.label.trim() === ''))
|
|
119
|
-
problems.push('the seal needs a value and a label');
|
|
120
|
-
if (problems.length > 0)
|
|
121
|
-
throw new Error(`Hero "${title}": ${problems.join('; ')}.`);
|
|
122
|
-
}
|
|
123
|
-
export function Hero(props) {
|
|
124
|
-
assertHero(props);
|
|
125
|
-
const { family, title, summary, eyebrow, breadcrumbs, checklist, rating, badges, media, caption, phone, phoneLabel, quote, form, jobMode = 'planned', headingId = 'hero-title', tone, decoration, ratingMoreLabel, formHeading, seal, variant = 'split', layout, classes, } = props;
|
|
126
|
-
const primary = jobMode === 'urgent' ? 'phone' : 'quote';
|
|
127
|
-
const crumbs = family === 'home' ? null : breadcrumbs;
|
|
128
|
-
const scrim = layout?.scrim ?? (variant === 'full-bleed' ? 'full' : 'none');
|
|
129
|
-
const parts = {
|
|
130
|
-
eyebrow: eyebrow ? _jsx("p", { ...slot(classes, 'eyebrow'), children: eyebrow }) : null,
|
|
131
|
-
h1: (_jsx("h1", { id: headingId, ...slot(classes, 'h1'), children: title })),
|
|
132
|
-
summary: _jsx("p", { ...slot(classes, 'summary'), children: summary }),
|
|
133
|
-
actions: (_jsxs("div", { ...slot(classes, 'actions'), "data-bl-call-path": "", "data-primary": primary, children: [_jsx(PhoneLink, { phone: phone, placement: "hero", label: phoneLabel, showIcon: true, variant: "button", classes: { root: classes?.phone } }), _jsx(QuoteButton, { label: quote.label, href: quote.href ?? `#${HERO_FORM_ID}`, placement: "hero", ctaId: "quote-hero", variant: primary === 'quote' ? 'primary' : 'secondary', classes: { root: classes?.quote } })] })),
|
|
134
|
-
checklist: checklist.length > 0 ? (_jsx("div", { ...slot(classes, 'checklist'), children: _jsx(TickList, { items: checklist, layout: { columns: layout?.checklistColumns ?? 2, ...(layout?.checklistTick ? { tick: layout.checklistTick } : {}) } }) })) : null,
|
|
135
|
-
rating: hasGoogleRating(rating) ? (_jsx(RatingChip, { reviews: rating, moreLabel: ratingMoreLabel, layout: layout?.rating === 'figure' ? { display: 'figure' } : undefined, classes: { root: classes?.rating } })) : null,
|
|
136
|
-
badges: badges ? _jsx("div", { ...slot(classes, 'badges'), children: badges }) : null,
|
|
137
|
-
};
|
|
138
|
-
return (_jsxs(Section, { id: "hero", labelledBy: headingId, tone: tone, variant: variant, classes: classes, decoration: decoration, phonePlacement: "hero", hooks: {
|
|
139
|
-
'data-family': family,
|
|
140
|
-
'data-job-mode': jobMode,
|
|
141
|
-
'data-height': layout?.height ?? (family === 'home' ? 'tall' : 'standard'),
|
|
142
|
-
'data-media-side': variant === 'split' ? (layout?.mediaSide ?? 'end') : undefined,
|
|
143
|
-
'data-form': form ? '' : undefined,
|
|
144
|
-
'data-scrim': scrim === 'none' ? undefined : scrim,
|
|
145
|
-
}, children: [_jsxs("div", { ...slot(classes, 'content'), children: [crumbs ? _jsx("div", { ...slot(classes, 'crumbs'), children: crumbs }) : null, heroContentOrder(layout?.contentOrder).map((part) => (_jsx(Fragment, { children: parts[part] }, part)))] }), _jsxs("div", { ...slot(classes, 'media'), children: [_jsx(MediaFrame, { media: media, ratio: "4:3", sizes: variant === 'full-bleed' ? '100vw' : '(min-width: 1024px) 50vw, 100vw', caption: caption, priority: true, quality: layout?.imageQuality, classes: { caption: classes?.caption } }), scrim === 'none' ? null : _jsx("div", { ...slot(classes, 'scrim'), "aria-hidden": "true" }), seal ? (_jsxs("p", { ...slot(classes, 'seal'), children: [_jsx("span", { ...slot(classes, 'sealValue'), children: seal.value }), " ", _jsx("span", { ...slot(classes, 'sealLabel'), children: seal.label })] })) : null] }), form ? (_jsxs("div", { ...slot(classes, 'form'), children: [formHeading ? (_jsxs("div", { ...slot(classes, 'formHead'), children: [formHeading.eyebrow ? _jsx("p", { ...slot(classes, 'formEyebrow'), children: formHeading.eyebrow }) : null, _jsx("h2", { id: HERO_FORM_HEADING_ID, ...slot(classes, 'formTitle'), children: formHeading.title }), formHeading.text ? _jsx("p", { ...slot(classes, 'formText'), children: formHeading.text }) : null] })) : null, form] })) : null] }));
|
|
146
|
-
}
|
|
147
|
-
//# sourceMappingURL=hero.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hero.js","sourceRoot":"","sources":["../../../src/ui-kit/sections/hero.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,cAAc,EAAoB,MAAM,sCAAsC,CAAA;AACvF,OAAO,EAAE,OAAO,EAAoB,MAAM,yBAAyB,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAiB,MAAM,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AAC,CAAC,CAAC,eAAO,IAAI,CAAC,OAAO,EAAE,aAAa,CAAC,YAAG,WAAW,CAAC,OAAO,GAAK,CAAC,CAAC,CAAC,IAAI,EAC5F,aAAI,EAAE,EAAE,oBAAoB,KAAM,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,YACzD,WAAW,CAAC,KAAK,GACf,EACJ,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,eAAO,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,YAAG,WAAW,CAAC,IAAI,GAAK,CAAC,CAAC,CAAC,IAAI,IAC/E,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,IACD,CACP,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAA;AACH,CAAC","sourcesContent":["/**\n * `Hero` (S1, `hero`, 3.14.0): the first screen of the home, service and service-in-suburb pages. Server component;\n * it wins the click and starts the enquiry. Light by default: every colour comes from the site's tokens and skin.\n *\n * In source order, which is the phone order: breadcrumbs (service and location pages), an optional eyebrow, the H1\n * (once, as plain text; on a location page the built \"{Service} {Suburb}\" string), one offer line of 25 words or fewer,\n * the two actions, the trust checklist (up to six verified facts, two columns), Google's feed rating, partner badges,\n * the photo and then the site's quote form. On desktop the form sits beside the text (`split`, the photo on the other side) or over the photo\n * as a card (`full-bleed`, under a text-side scrim the skin colours).\n *\n * Locked:\n * - the actions are the phone link (`data-phone-location=\"hero\"`, icon on the left) then the quote button\n * (`lead_cta_click` placement `hero`, id `quote-hero`): the same phone-first order as the header, the call bar and the\n * CTA band (K6). Job mode only moves the primary styling (`data-primary`), never the order;\n * - the actions are the page's call path (`data-bl-call-path`), so the phone call bar stays hidden while they are on\n * screen and shows once they scroll out (F6);\n * - with a form, the quote button links to it (`#quote-hero`, the form's own id) and the form is in the hero, so C1 sees\n * the H1, a call and a quote action in the first phone screen and the form in the first desktop screen;\n * - the photo is the page's largest image: preloaded, high priority, never lazy. It must be real work or licensed stock\n * (an AI illustration is supporting only, F13), and a job caption needs a genuine photo;\n * - no review quote, and no visible words the site doesn't pass.\n *\n * `family` is the page family (`data-family`): `home` takes no breadcrumbs and is `tall` by default; `service` and\n * `location` take breadcrumbs. A skin styles families apart through `[data-family]`; the variant is the site's one\n * hero structure.\n *\n * The site's own hero (3.16.0), inside the same skeleton:\n * - `layout.contentOrder` arranges the text column's parts (AA: H1, rating, summary, checklist, actions). The\n * breadcrumbs stay first, an eyebrow sits straight before the H1, and the H1 comes before the summary and actions;\n * parts left out follow in the default order;\n * - `layout.rating: 'figure'` shows Google's rating as a large figure with the stars and count, and `ratingMoreLabel`\n * adds the site's link to all the reviews;\n * - `formHeading` puts an eyebrow, an H2 and a line above the quote form (the hero's one H2);\n * - `seal` stamps one verified fact on the photo (`{ value: '15+', label: 'years of tree work' }`);\n * - `layout.scrim` chooses the overlay: `full` over the whole photo, `column` behind the text side only (as wide as\n * `--bl-hero-scrim-column-width`, 60% by default), or `none` (the default on `split`; `full-bleed` defaults to\n * `full`), coloured by the skin's `--bl-hero-scrim`;\n * - the photo's corners, shadow and filter come from `--bl-hero-photo-radius`, `--bl-hero-photo-shadow` and\n * `--bl-hero-photo-filter`, and the `decoration` slot holds the site's motif.\n */\nimport { Fragment, type ReactNode } from 'react'\nimport { SITE_JOB_MODES, type SiteJobMode } from '@brandlab-digital/site-core/strategy'\nimport { Section, type SectionTone } from '../primitives/layout.js'\nimport { PhoneLink } from '../primitives/links.js'\nimport { TickList, type TickItem } from '../primitives/lists.js'\nimport { MediaFrame, type UiMedia } from '../primitives/media-frame.js'\nimport { QuoteButton } from '../primitives/quote-button.js'\nimport { slot, type SkinEntry } from '../skin.js'\nimport type { UiPhone } from '../types.js'\nimport { RatingChip, hasGoogleRating, type RatingChipData } from './rating-chip.js'\n\n/** The text column's parts, in their default order (3.16.0). The breadcrumbs always come first. */\nexport const HERO_CONTENT_PARTS = ['eyebrow', 'h1', 'summary', 'actions', 'checklist', 'rating', 'badges'] as const\nexport type HeroContentPart = (typeof HERO_CONTENT_PARTS)[number]\n\nexport const HERO_SCRIMS = ['none', 'full', 'column'] as const\nexport type HeroScrim = (typeof HERO_SCRIMS)[number]\n\nexport const HERO_VARIANTS = ['split', 'full-bleed'] as const\nexport type HeroVariant = (typeof HERO_VARIANTS)[number]\n\n/**\n * The hero's family (`data-family`). Site-core's page families are finer (`service-in-suburb`, `region`, `suburb` all\n * take the `location` hero), so this stays a hero-level grouping.\n */\nexport const HERO_FAMILIES = ['home', 'service', 'location'] as const\nexport type HeroFamily = (typeof HERO_FAMILIES)[number]\n\n/**\n * A service's job mode (v2 §2.2), as the site's strategy decision card records it (`SiteJobMode` in\n * `site-core/strategy`): which action is styled primary. Never the order.\n */\nexport const HERO_JOB_MODES = SITE_JOB_MODES\nexport type HeroJobMode = SiteJobMode\n\nexport type HeroSlot =\n | 'root'\n | 'inner'\n | 'content'\n | 'crumbs'\n | 'eyebrow'\n | 'h1'\n | 'summary'\n | 'actions'\n | 'phone'\n | 'quote'\n | 'checklist'\n | 'rating'\n | 'badges'\n | 'media'\n | 'caption'\n | 'scrim'\n | 'form'\n | 'formHead'\n | 'formEyebrow'\n | 'formTitle'\n | 'formText'\n | 'seal'\n | 'sealValue'\n | 'sealLabel'\n\nexport interface HeroLayout {\n /** `split`: the photo's side on desktop (default `end`). */\n readonly mediaSide?: 'start' | 'end'\n /** Default `tall` on the home page, `standard` elsewhere. */\n readonly height?: 'standard' | 'tall'\n /** The trust checklist's columns (default 2). */\n readonly checklistColumns?: 1 | 2\n /**\n * The checklist's ticks (3.15.0): `icon` (the default) is the sprite's check; `rule` ships no svg, only a mark the\n * stylesheet draws as a short rule (`TickList`'s `layout.tick`), about 100 bytes less a fact.\n */\n readonly checklistTick?: 'icon' | 'rule'\n /** The text column's order (3.16.0); parts left out follow in the default order. */\n readonly contentOrder?: readonly HeroContentPart[]\n /** Google's rating as one line (`chip`, the default) or a large figure with the stars and count (3.16.0). */\n readonly rating?: 'chip' | 'figure'\n /** The photo's overlay (3.16.0): `full`, `column` (behind the text side only) or `none`. */\n readonly scrim?: HeroScrim\n /**\n * The photo's WebP quality, 1 to 100 (3.18.0; Next's default 75). Add it to `images.qualities` in\n * `brandlabNextConfig`. A hero over B1's 200 KB at 1440 px usually passes at 60 to 65.\n */\n readonly imageQuality?: number\n}\n\nexport type HeroSkin = SkinEntry<HeroSlot, HeroVariant, HeroLayout>\n\n/** The form's id and lead diagnostics `form_id` in the hero; the quote button links here. */\nexport const HERO_FORM_ID = 'quote-hero'\n/** The most facts the trust checklist holds (v2 S1: three to six). */\nexport const HERO_CHECKLIST_MAX = 6\n/** The offer line's word limit (v2 §9.2). */\nexport const HERO_SUMMARY_MAX_WORDS = 25\n\nexport interface HeroProps extends HeroSkin {\n readonly family: HeroFamily\n /** The H1 text: the recorded H1 on live pages, the title builder's on new ones (\"Tree Removal Castle Hill\"). */\n readonly title: string\n /** The one offer line under the H1, 25 words or fewer. */\n readonly summary: string\n /** A short label above the H1. */\n readonly eyebrow?: string\n /** The page's breadcrumbs (the shared `Breadcrumbs`, with its own `nav`). Service and location pages only. */\n readonly breadcrumbs?: ReactNode\n /** The trust checklist: verified facts only (licence, insurance, rating source, years), at most six. */\n readonly checklist: readonly TickItem[]\n /**\n * Google's average and total from the reviews feed (`prepareBusinessProfileReviews`), shown as the shared\n * `RatingChip` (`data-bl=\"rating-chip\"`, the `rating` class on its root, like `phone` and `quote`) after the\n * checklist, linked to the Business Profile. Never typed by hand: without a feed average and a total of 1 or more,\n * nothing renders.\n */\n readonly rating?: RatingChipData | null\n /** Partner badges or logos held and verified (a `LogoStrip`). */\n readonly badges?: ReactNode\n /** The best genuine photo of this page's service; on a location page the nearest job's. From `media.ts`. */\n readonly media: UiMedia\n /** \"{what}, {suburb}, {month year}\" for a genuine job photo, for example on a location page. */\n readonly caption?: string\n readonly phone: UiPhone\n /** Optional words before the number, for example \"Call\". */\n readonly phoneLabel?: string\n /**\n * The site's recorded quote label (C5). `href` defaults to the hero's own form (`#quote-hero`); without a form it\n * is required (for example `/contact#quote`).\n */\n readonly quote: { readonly label: string; readonly href?: string }\n /** The site's bound quote form: `<QuoteForm formId=\"quote-hero\" />`. Required on money pages (C1). */\n readonly form?: ReactNode\n /** The page's service job mode (default `planned`): `urgent` styles the phone link primary. */\n readonly jobMode?: HeroJobMode\n /** The H1's id (default `hero-title`). */\n readonly headingId?: string\n /** Set by `SectionSequence`. */\n readonly tone?: SectionTone\n /** Signature art, rendered `aria-hidden` (Superior's waterline, Absolute's grass edge). */\n readonly decoration?: ReactNode\n /** The site's words for a link to all the reviews on Google, after the rating (3.16.0). */\n readonly ratingMoreLabel?: string\n /** A heading block above the quote form (3.16.0): an optional eyebrow, the H2 and an optional line. */\n readonly formHeading?: { readonly eyebrow?: string; readonly title: string; readonly text?: string }\n /** One verified fact stamped on the photo (3.16.0), for example `{ value: '15+', label: 'years of tree work' }`. */\n readonly seal?: { readonly value: string; readonly label: string }\n}\n\n/** The form heading's id (3.16.0). */\nexport const HERO_FORM_HEADING_ID = `${HERO_FORM_ID}-title`\n\n/**\n * The text column's order: the site's order, then the parts it left out in the default order. A left-out eyebrow goes\n * straight before the H1, where it always sits (3.16.1).\n */\nexport function heroContentOrder(order: readonly HeroContentPart[] = []): HeroContentPart[] {\n const problems: string[] = []\n const seen = new Set<string>()\n for (const part of order) {\n if (!(HERO_CONTENT_PARTS as readonly string[]).includes(part)) problems.push(`\"${part}\" is not a hero part (${HERO_CONTENT_PARTS.join(', ')})`)\n else if (seen.has(part)) problems.push(`\"${part}\" appears twice`)\n seen.add(part)\n }\n const full = [...order, ...HERO_CONTENT_PARTS.filter((part) => !seen.has(part) && part !== 'eyebrow')]\n if (!seen.has('eyebrow')) full.splice(full.indexOf('h1'), 0, 'eyebrow')\n const at = (part: HeroContentPart) => full.indexOf(part)\n if (at('eyebrow') !== at('h1') - 1) problems.push('the eyebrow sits straight before the H1')\n if (at('summary') < at('h1') || at('actions') < at('h1')) problems.push('the H1 comes before the summary and the actions')\n if (problems.length > 0) throw new Error(`Hero content order: ${problems.join('; ')}.`)\n return full\n}\n\nconst words = (text: string) => text.trim().split(/\\s+/).filter(Boolean).length\n\nfunction assertHero({ title, summary, checklist, media, caption, quote, form, formHeading, seal }: HeroProps): void {\n const problems: string[] = []\n if (title.trim() === '') problems.push('the H1 is empty')\n if (words(summary) > HERO_SUMMARY_MAX_WORDS) problems.push(`the offer line has ${words(summary)} words (${HERO_SUMMARY_MAX_WORDS} at most)`)\n if (checklist.length > HERO_CHECKLIST_MAX) problems.push(`the checklist has ${checklist.length} facts (${HERO_CHECKLIST_MAX} at most)`)\n if (media.provenance === 'illustrative-ai') problems.push(`${media.src} is an AI illustration; the hero shows real work or licensed stock`)\n if (caption && media.provenance !== 'genuine') problems.push(`a job caption needs a genuine photo (${media.src} is ${media.provenance})`)\n if (!form && !quote.href) problems.push('without a form, quote.href must name the quote form, for example /contact#quote')\n if (formHeading && !form) problems.push('a form heading needs the form')\n if (formHeading && formHeading.title.trim() === '') problems.push('the form heading is empty')\n if (seal && (seal.value.trim() === '' || seal.label.trim() === '')) problems.push('the seal needs a value and a label')\n if (problems.length > 0) throw new Error(`Hero \"${title}\": ${problems.join('; ')}.`)\n}\n\nexport function Hero(props: HeroProps) {\n assertHero(props)\n const {\n family,\n title,\n summary,\n eyebrow,\n breadcrumbs,\n checklist,\n rating,\n badges,\n media,\n caption,\n phone,\n phoneLabel,\n quote,\n form,\n jobMode = 'planned',\n headingId = 'hero-title',\n tone,\n decoration,\n ratingMoreLabel,\n formHeading,\n seal,\n variant = 'split',\n layout,\n classes,\n } = props\n const primary = jobMode === 'urgent' ? 'phone' : 'quote'\n const crumbs = family === 'home' ? null : breadcrumbs\n const scrim = layout?.scrim ?? (variant === 'full-bleed' ? 'full' : 'none')\n const parts: Record<HeroContentPart, ReactNode> = {\n eyebrow: eyebrow ? <p {...slot(classes, 'eyebrow')}>{eyebrow}</p> : null,\n h1: (\n <h1 id={headingId} {...slot(classes, 'h1')}>\n {title}\n </h1>\n ),\n summary: <p {...slot(classes, 'summary')}>{summary}</p>,\n actions: (\n <div {...slot(classes, 'actions')} data-bl-call-path=\"\" data-primary={primary}>\n <PhoneLink phone={phone} placement=\"hero\" label={phoneLabel} showIcon variant=\"button\" classes={{ root: classes?.phone }} />\n <QuoteButton\n label={quote.label}\n href={quote.href ?? `#${HERO_FORM_ID}`}\n placement=\"hero\"\n ctaId=\"quote-hero\"\n variant={primary === 'quote' ? 'primary' : 'secondary'}\n classes={{ root: classes?.quote }}\n />\n </div>\n ),\n checklist:\n checklist.length > 0 ? (\n <div {...slot(classes, 'checklist')}>\n <TickList items={checklist} layout={{ columns: layout?.checklistColumns ?? 2, ...(layout?.checklistTick ? { tick: layout.checklistTick } : {}) }} />\n </div>\n ) : null,\n rating: hasGoogleRating(rating) ? (\n <RatingChip\n reviews={rating}\n moreLabel={ratingMoreLabel}\n layout={layout?.rating === 'figure' ? { display: 'figure' } : undefined}\n classes={{ root: classes?.rating }}\n />\n ) : null,\n badges: badges ? <div {...slot(classes, 'badges')}>{badges}</div> : null,\n }\n return (\n <Section\n id=\"hero\"\n labelledBy={headingId}\n tone={tone}\n variant={variant}\n classes={classes}\n decoration={decoration}\n phonePlacement=\"hero\"\n hooks={{\n 'data-family': family,\n 'data-job-mode': jobMode,\n 'data-height': layout?.height ?? (family === 'home' ? 'tall' : 'standard'),\n 'data-media-side': variant === 'split' ? (layout?.mediaSide ?? 'end') : undefined,\n 'data-form': form ? '' : undefined,\n 'data-scrim': scrim === 'none' ? undefined : scrim,\n }}\n >\n <div {...slot(classes, 'content')}>\n {crumbs ? <div {...slot(classes, 'crumbs')}>{crumbs}</div> : null}\n {heroContentOrder(layout?.contentOrder).map((part) => (\n <Fragment key={part}>{parts[part]}</Fragment>\n ))}\n </div>\n <div {...slot(classes, 'media')}>\n <MediaFrame\n media={media}\n ratio=\"4:3\"\n sizes={variant === 'full-bleed' ? '100vw' : '(min-width: 1024px) 50vw, 100vw'}\n caption={caption}\n priority\n quality={layout?.imageQuality}\n classes={{ caption: classes?.caption }}\n />\n {scrim === 'none' ? null : <div {...slot(classes, 'scrim')} aria-hidden=\"true\" />}\n {seal ? (\n <p {...slot(classes, 'seal')}>\n <span {...slot(classes, 'sealValue')}>{seal.value}</span> <span {...slot(classes, 'sealLabel')}>{seal.label}</span>\n </p>\n ) : null}\n </div>\n {form ? (\n <div {...slot(classes, 'form')}>\n {formHeading ? (\n <div {...slot(classes, 'formHead')}>\n {formHeading.eyebrow ? <p {...slot(classes, 'formEyebrow')}>{formHeading.eyebrow}</p> : null}\n <h2 id={HERO_FORM_HEADING_ID} {...slot(classes, 'formTitle')}>\n {formHeading.title}\n </h2>\n {formHeading.text ? <p {...slot(classes, 'formText')}>{formHeading.text}</p> : null}\n </div>\n ) : null}\n {form}\n </div>\n ) : null}\n </Section>\n )\n}\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export { hasGoogleRating, RatingChip, type RatingChipData, type RatingChipLayout, type RatingChipProps, type RatingChipSkin, type RatingChipSlot, } from './rating-chip.js';
|
|
2
|
-
export { REVIEWS_BAND_HEADING_ID, REVIEWS_BAND_SKIP_REASON, REVIEWS_BAND_VARIANTS, ReviewsBand, ReviewsBandHeading, ReviewsBandItem, ReviewsBandList, ReviewsBandRoot, ReviewsBandSummary, reviewsBandReady, splitReviewText, type ReviewsBandHeadingProps, type ReviewsBandItemProps, type ReviewsBandLayout, type ReviewsBandProps, type ReviewsBandRootProps, type ReviewsBandSkin, type ReviewsBandSlot, type ReviewsBandSummaryProps, type ReviewsBandVariant, } from './reviews-band.js';
|
|
3
|
-
export { CTA_BAND_HEADING_ID, CTA_BAND_VARIANTS, CTABand, type CTABandLayout, type CTABandProps, type CTABandSkin, type CTABandSlot, type CTABandVariant } from './cta-band.js';
|
|
4
|
-
export { SITE_FOOTER_VARIANTS, SiteFooter, type SiteFooterColumn, type SiteFooterLicence, type SiteFooterProps, type SiteFooterSkin, type SiteFooterSlot, type SiteFooterVariant, } from './site-footer.js';
|
|
5
|
-
export { Accordion, type AccordionItem, type AccordionProps, type AccordionSkin, type AccordionSlot } from './accordion.js';
|
|
6
|
-
export { FAQS_VARIANTS, FAQs, faqsReady, type FAQItem, type FAQsProps, type FAQsSkin, type FAQsSlot, type FAQsVariant } from './faqs.js';
|
|
7
|
-
export { PriceTable, type PriceLabels, type PriceTableProps, type PriceTableSkin, type PriceTableSlot } from './price-table.js';
|
|
8
|
-
export { PRICE_GUIDE_VARIANTS, PriceGuide, priceGuideReady, type PriceFactor, type PriceGuideProps, type PriceGuideSkin, type PriceGuideSlot, type PriceGuideVariant, } from './price-guide.js';
|
|
9
|
-
export { PROOF_STRIP_MINIMUM, PROOF_STRIP_VARIANTS, ProofStrip, proofStripReady, type ProofFactItem, type ProofItem, type ProofRatingItem, type ProofStripProps, type ProofStripSkin, type ProofStripSlot, type ProofStripVariant, } from './proof-strip.js';
|
|
10
|
-
export { PAGE_HEADER_VARIANTS, PageHeader, type PageHeaderProps, type PageHeaderSkin, type PageHeaderSlot, type PageHeaderVariant } from './page-header.js';
|
|
11
|
-
export { ContactBlock, type ContactBlockProps, type ContactBlockSkin, type ContactBlockSlot, type ContactDetailLines } from './contact-block.js';
|
|
12
|
-
export { SectionSequence, serialiseSectionManifest, type SectionSequenceProps, type SequenceSection } from './section-sequence.js';
|
|
13
|
-
export { HERO_CHECKLIST_MAX, HERO_CONTENT_PARTS, HERO_FAMILIES, HERO_FORM_HEADING_ID, HERO_FORM_ID, HERO_JOB_MODES, HERO_SUMMARY_MAX_WORDS, HERO_SCRIMS, HERO_VARIANTS, Hero, heroContentOrder, type HeroContentPart, type HeroFamily, type HeroJobMode, type HeroLayout, type HeroProps, type HeroScrim, type HeroSkin, type HeroSlot, type HeroVariant, } from './hero.js';
|
|
14
|
-
export { SERVICES_GRID_CARD_LIMIT, SERVICES_GRID_VARIANTS, ServiceCard, ServicesGrid, defaultImageSizes, type ServiceCardData, type ServiceCardProps, type ServiceCardSlot, type ServicesGridLayout, type ServicesGridProps, type ServicesGridRepeatedSlot, type ServicesGridSkin, type ServicesGridSlot, type ServicesGridVariant, } from './services-grid.js';
|
|
15
|
-
export { CouncilRecordLines, CouncilRules, councilFeeLine, councilRecordReady, councilRulesReady, formatCouncilFeeAmount, type CouncilRecordSlot, type CouncilRuleWording, type CouncilRulesProps, type CouncilRulesRepeatedSlot, type CouncilRulesSkin, type CouncilRulesSlot, } from './council-rules.js';
|
|
16
|
-
export { LOCAL_FACTS_VARIANTS, LocalFacts, localFactsReady, type LocalFact, type LocalFactsPermit, type LocalFactsProps, type LocalFactsRepeatedSlot, type LocalFactsSkin, type LocalFactsSlot, type LocalFactsVariant, } from './local-facts.js';
|
|
17
|
-
export { NEARBY_JOBS_VARIANTS, NearbyJobs, nearbyJobsReady, type NearbyJobsLayout, type NearbyJobsProps, type NearbyJobsRepeatedSlot, type NearbyJobsSkin, type NearbyJobsSlot, type NearbyJobsVariant, } from './nearby-jobs.js';
|
|
18
|
-
export { NEARBY_AREAS_DEFAULT, NEARBY_AREAS_LIMIT, NEARBY_AREAS_VARIANTS, NearbyAreas, nearbyAreaLinks, nearbyAreasReady, type NearbyAreasLayout, type NearbyAreasProps, type NearbyAreasSkin, type NearbyAreasSlot, type NearbyAreasVariant, } from './nearby-areas.js';
|
|
19
|
-
export { AREA_MAP_VARIANTS, AreaMap, areaMapPlaces, areaMapReady, type AreaMapData, type AreaMapLayout, type AreaMapProps, type AreaMapSkin, type AreaMapSlot, type AreaMapVariant, } from './area-map.js';
|
|
20
|
-
export { COVERAGE_VARIANTS, Coverage, coverageHubLabel, coverageReady, type CoverageGroup, type CoverageHub, type CoverageLayout, type CoverageProps, type CoverageRepeatedSlot, type CoverageSkin, type CoverageSlot, type CoverageVariant, } from './coverage.js';
|
|
21
|
-
export { RELATED_SERVICES_LIMIT, RELATED_SERVICES_VARIANTS, RelatedServices, relatedServicesReady, type RelatedServicesLayout, type RelatedServicesProps, type RelatedServicesRepeatedSlot, type RelatedServicesSkin, type RelatedServicesSlot, type RelatedServicesVariant, } from './related-services.js';
|
|
22
|
-
export { PROJECTS_CARD_LIMIT, Projects, projectCardFromJob, projectsReady, type ProjectCardData, type ProjectsLayout, type ProjectsProps, type ProjectsSkin, type ProjectsSlot, } from './projects.js';
|
|
23
|
-
export { Gallery, galleryReady, type GalleryLayout, type GalleryPhoto, type GalleryProps, type GalleryRepeatedSlot, type GallerySkin, type GallerySlot, } from './gallery.js';
|
|
24
|
-
export { BeforeAfter, beforeAfterReady, type BeforeAfterLayout, type BeforeAfterPair, type BeforeAfterProps, type BeforeAfterRepeatedSlot, type BeforeAfterSkin, type BeforeAfterSlot, } from './before-after.js';
|
|
25
|
-
export { LICENCES_VARIANTS, Licences, licencesContent, licencesReady, type LicencesBusiness, type LicencesLabels, type LicencesProps, type LicencesRepeatedSlot, type LicencesSkin, type LicencesSlot, type LicencesVariant, } from './licences.js';
|
|
26
|
-
export { QUOTE_CHECKLIST_MAX, QuoteChecklist, type QuoteChecklistLayout, type QuoteChecklistProps, type QuoteChecklistSkin, type QuoteChecklistSlot, } from './quote-checklist.js';
|
|
27
|
-
export { EmergencyBand, emergencyBandReady, renderableAfterHours, type EmergencyBandBusiness, type EmergencyBandLayout, type EmergencyBandProps, type EmergencyBandSkin, type EmergencyBandSlot, } from './emergency-band.js';
|
|
28
|
-
export { SignatureSection, type SignatureSectionLayout, type SignatureSectionProps, type SignatureSectionSkin, type SignatureSectionSlot, } from './signature-section.js';
|
|
29
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/sections/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,WAAW,EACX,kBAAkB,EA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iB,EACtB,KAAK,iBAAiB,GACvB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B,MAAM,wBAAwB,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export { hasGoogleRating, RatingChip, } from './rating-chip.js';
|
|
2
|
-
export { REVIEWS_BAND_HEADING_ID, REVIEWS_BAND_SKIP_REASON, REVIEWS_BAND_VARIANTS, ReviewsBand, ReviewsBandHeading, ReviewsBandItem, ReviewsBandList, ReviewsBandRoot, ReviewsBandSummary, reviewsBandReady, splitReviewText, } from './reviews-band.js';
|
|
3
|
-
export { CTA_BAND_HEADING_ID, CTA_BAND_VARIANTS, CTABand } from './cta-band.js';
|
|
4
|
-
export { SITE_FOOTER_VARIANTS, SiteFooter, } from './site-footer.js';
|
|
5
|
-
export { Accordion } from './accordion.js';
|
|
6
|
-
export { FAQS_VARIANTS, FAQs, faqsReady } from './faqs.js';
|
|
7
|
-
export { PriceTable } from './price-table.js';
|
|
8
|
-
export { PRICE_GUIDE_VARIANTS, PriceGuide, priceGuideReady, } from './price-guide.js';
|
|
9
|
-
export { PROOF_STRIP_MINIMUM, PROOF_STRIP_VARIANTS, ProofStrip, proofStripReady, } from './proof-strip.js';
|
|
10
|
-
export { PAGE_HEADER_VARIANTS, PageHeader } from './page-header.js';
|
|
11
|
-
export { ContactBlock } from './contact-block.js';
|
|
12
|
-
export { SectionSequence, serialiseSectionManifest } from './section-sequence.js';
|
|
13
|
-
export { HERO_CHECKLIST_MAX, HERO_CONTENT_PARTS, HERO_FAMILIES, HERO_FORM_HEADING_ID, HERO_FORM_ID, HERO_JOB_MODES, HERO_SUMMARY_MAX_WORDS, HERO_SCRIMS, HERO_VARIANTS, Hero, heroContentOrder, } from './hero.js';
|
|
14
|
-
export { SERVICES_GRID_CARD_LIMIT, SERVICES_GRID_VARIANTS, ServiceCard, ServicesGrid, defaultImageSizes, } from './services-grid.js';
|
|
15
|
-
export { CouncilRecordLines, CouncilRules, councilFeeLine, councilRecordReady, councilRulesReady, formatCouncilFeeAmount, } from './council-rules.js';
|
|
16
|
-
export { LOCAL_FACTS_VARIANTS, LocalFacts, localFactsReady, } from './local-facts.js';
|
|
17
|
-
export { NEARBY_JOBS_VARIANTS, NearbyJobs, nearbyJobsReady, } from './nearby-jobs.js';
|
|
18
|
-
export { NEARBY_AREAS_DEFAULT, NEARBY_AREAS_LIMIT, NEARBY_AREAS_VARIANTS, NearbyAreas, nearbyAreaLinks, nearbyAreasReady, } from './nearby-areas.js';
|
|
19
|
-
export { AREA_MAP_VARIANTS, AreaMap, areaMapPlaces, areaMapReady, } from './area-map.js';
|
|
20
|
-
export { COVERAGE_VARIANTS, Coverage, coverageHubLabel, coverageReady, } from './coverage.js';
|
|
21
|
-
export { RELATED_SERVICES_LIMIT, RELATED_SERVICES_VARIANTS, RelatedServices, relatedServicesReady, } from './related-services.js';
|
|
22
|
-
export { PROJECTS_CARD_LIMIT, Projects, projectCardFromJob, projectsReady, } from './projects.js';
|
|
23
|
-
export { Gallery, galleryReady, } from './gallery.js';
|
|
24
|
-
export { BeforeAfter, beforeAfterReady, } from './before-after.js';
|
|
25
|
-
export { LICENCES_VARIANTS, Licences, licencesContent, licencesReady, } from './licences.js';
|
|
26
|
-
export { QUOTE_CHECKLIST_MAX, QuoteChecklist, } from './quote-checklist.js';
|
|
27
|
-
export { EmergencyBand, emergencyBandReady, renderableAfterHours, } from './emergency-band.js';
|
|
28
|
-
export { SignatureSection, } from './signature-section.js';
|
|
29
|
-
//# sourceMappingURL=index.js.map
|