@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"services-grid.js","sourceRoot":"","sources":["../../../src/ui-kit/sections/services-grid.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,CAAyE,CACtG,CAAC,GACC,EACJ,IAAI,CAAC,CAAC,CAAC,CACN,eAAO,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,YACzB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAC3B,YAAG,IAAI,EAAE,IAAI,CAAC,IAAI,YAAG,IAAI,CAAC,KAAK,GAAK,CACrC,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,YACnC,IAAI,CAAC,KAAK,GACN,CACR,GACC,CACL,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAA;AACH,CAAC","sourcesContent":["/**\n * `ServicesGrid` (S4, `services`, 3.14.0) and `ServiceCard`: route the visitor to the right service. Server components.\n *\n * Variants:\n * - `rows` (the fleet reference, AA's `ServiceRows`): one full-width row per service, the photo beside the text and\n * alternating sides on wide screens, with an optional line of scope points and the service's own link;\n * - `cards`: a grid of cards, each headed by its linked title;\n * - `compact` (suburb and region pages): a lean list of every service offered there, each a single link to its\n * service-in-suburb page or to its anchored section on the same page (`#tree-pruning`). No photos and no summaries.\n *\n * Locked rules (S4): one link per card; no prices and no before-and-afters in cards; no image on two cards; at most 8\n * `rows` or `cards` (K11's card limit, and the most in-content links that prefetch on intent), so a page that offers\n * more services lists them `compact` or links its services hub. Card links prefetch on intent (`LINK_PREFETCH_POLICY`\n * `contentCard`); compact links, the hub link and same-page anchors never prefetch.\n */\nimport Link from 'next/link'\nimport type { ReactNode } from 'react'\nimport type { BrandlabMediaEntry } from '@brandlab-digital/site-core/media'\nimport { LINK_PREFETCH_LIMITS, LINK_PREFETCH_POLICY, linkPrefetchProps, type LinkPrefetch } from '../prefetch.js'\nimport { Media, type MediaLayout } from '../primitives/media.js'\nimport { Section, SectionHeading, type SectionHeadingSlot, type SectionSlot, type SectionTone } from '../primitives/layout.js'\nimport type { RepeatedSlotOf } from '../repeated-slots.js'\nimport { repeatedSlot, slot, type SkinEntry } from '../skin.js'\nimport type { UiLink } from '../types.js'\n\nexport const SERVICES_GRID_VARIANTS = ['rows', 'cards', 'compact'] as const\nexport type ServicesGridVariant = (typeof SERVICES_GRID_VARIANTS)[number]\nexport type ServiceCardSlot = 'item' | 'media' | 'body' | 'title' | 'summary' | 'points' | 'point' | 'action' | 'link'\nexport type ServicesGridSlot = SectionSlot | SectionHeadingSlot | 'list' | 'more' | ServiceCardSlot\n/** Rendered once per service: styled from the skin stylesheet, never by class. */\nexport type ServicesGridRepeatedSlot = RepeatedSlotOf<'servicesGrid'>\nexport interface ServicesGridLayout {\n /** `cards`: columns on wide screens. Defaults to 3. */\n readonly columns?: 2 | 3 | 4\n /** `rows` and `cards`: the photo's crop. Defaults to 4:3. */\n readonly ratio?: NonNullable<MediaLayout['ratio']>\n /** `rows`: the photo's side on wide screens. Defaults to `alternate` (first photo at the start). */\n readonly mediaSide?: 'alternate' | 'start' | 'end'\n}\nexport type ServicesGridSkin = SkinEntry<ServicesGridSlot, ServicesGridVariant, ServicesGridLayout, ServicesGridRepeatedSlot>\n\n/** The most services `rows` and `cards` show (K11; the in-content intent-prefetch limit). */\nexport const SERVICES_GRID_CARD_LIMIT = LINK_PREFETCH_LIMITS.contentCard\n\n/** One service, in money order. */\nexport interface ServiceCardData {\n /** A stable slug, rendered as `data-item`. */\n readonly id: string\n /** The service's name, the card's H3 (`rows`, `cards`) or the link text (`compact`). */\n readonly title: string\n /**\n * Where the card goes: the service page, its service-in-suburb page or its anchored section on this page\n * (`#tree-pruning`). From the site's data, never built here.\n */\n readonly href: string\n /** One line on what the service is. `rows` and `cards`; never a price. */\n readonly summary?: ReactNode\n /** `rows`: a few scope points under the summary (verified service scope, never prices). */\n readonly points?: readonly string[]\n /** The service's own photo from the media manifest. `rows` and `cards`; no image on two cards. */\n readonly image?: BrandlabMediaEntry\n /**\n * `rows`: the link under the text, for example \"Tree removal in Castle Hill\". Left out, the title is the link, as on\n * `cards`. Name the service: never \"Learn more\".\n */\n readonly linkLabel?: string\n}\n\nexport interface ServiceCardProps {\n readonly service: ServiceCardData\n readonly variant: ServicesGridVariant\n /** `rows` and `cards`: the photo's `sizes`. */\n readonly imageSizes?: string\n readonly ratio?: ServicesGridLayout['ratio']\n /** `rows` and `cards` default to `intent`; `compact` is always off. */\n readonly prefetch?: LinkPrefetch\n}\n\nfunction ServiceLink({ href, prefetch, children }: { href: string; prefetch: LinkPrefetch; children: ReactNode }) {\n // A same-page section needs no route prefetch: a plain anchor.\n if (href.startsWith('#')) {\n return (\n <a href={href} {...repeatedSlot('link')}>\n {children}\n </a>\n )\n }\n return (\n <Link href={href} {...linkPrefetchProps(prefetch, href)} {...repeatedSlot('link')}>\n {children}\n </Link>\n )\n}\n\n/**\n * One service as a list item of `ServicesGrid` (also the building block for `RelatedServices`). Its parts are the\n * grid's repeated slots: the root sets no classes on them.\n */\nexport function ServiceCard({ service, variant, imageSizes, ratio = '4:3', prefetch }: ServiceCardProps) {\n if (variant === 'compact') {\n return (\n <li {...repeatedSlot('item')} data-item={service.id}>\n <ServiceLink href={service.href} prefetch={LINK_PREFETCH_POLICY.otherServicesInSuburb}>\n {service.title}\n </ServiceLink>\n </li>\n )\n }\n const linkPrefetch = prefetch ?? LINK_PREFETCH_POLICY.contentCard\n const separateLink = variant === 'rows' && service.linkLabel !== undefined && service.linkLabel.trim() !== ''\n return (\n <li {...repeatedSlot('item')} data-item={service.id}>\n <div {...repeatedSlot('body')}>\n <h3 {...repeatedSlot('title')}>\n {separateLink ? (\n service.title\n ) : (\n <ServiceLink href={service.href} prefetch={linkPrefetch}>\n {service.title}\n </ServiceLink>\n )}\n </h3>\n {service.summary ? <p {...repeatedSlot('summary')}>{service.summary}</p> : null}\n {variant === 'rows' && service.points && service.points.length > 0 ? (\n <ul role=\"list\" {...repeatedSlot('points')}>\n {service.points.map((point) => (\n <li key={point} {...repeatedSlot('point')}>\n {point}\n </li>\n ))}\n </ul>\n ) : null}\n {separateLink ? (\n <p {...repeatedSlot('action')}>\n <ServiceLink href={service.href} prefetch={linkPrefetch}>\n {service.linkLabel}\n </ServiceLink>\n </p>\n ) : null}\n </div>\n {service.image ? (\n <div {...repeatedSlot('media')}>\n <Media media={service.image} sizes={imageSizes ?? defaultImageSizes(variant, 3)} layout={{ ratio }} />\n </div>\n ) : null}\n </li>\n )\n}\n\n/** The photo `sizes` for each variant: half the container in rows, one column of the grid in cards. */\nexport function defaultImageSizes(variant: Exclude<ServicesGridVariant, 'compact'>, columns: 2 | 3 | 4): string {\n if (variant === 'rows') return '(min-width: 1024px) 50vw, 100vw'\n return `(min-width: 1024px) ${Math.round(100 / columns)}vw, (min-width: 640px) 50vw, 100vw`\n}\n\nexport interface ServicesGridProps extends ServicesGridSkin {\n /** The H2, for example \"Our tree services\" or \"Tree services in Castle Hill\". */\n readonly title: ReactNode\n readonly eyebrow?: ReactNode\n readonly lead?: ReactNode\n /** Every service the page offers, in money order. */\n readonly services: readonly ServiceCardData[]\n /** A link after the list, for example the services hub or \"Find your area\". Never prefetched. */\n readonly more?: UiLink\n /** `rows` and `cards`: override the photo `sizes` when the skin's grid differs from the defaults. */\n readonly imageSizes?: string\n /** Defaults to `services-heading`. */\n readonly headingId?: string\n /** Set by `SectionSequence`. */\n readonly tone?: SectionTone\n}\n\nfunction assertServices(services: readonly ServiceCardData[], variant: ServicesGridVariant): void {\n const ids = new Set<string>()\n const hrefs = new Set<string>()\n const images = new Map<string, string>()\n for (const service of services) {\n if (!service.id || ids.has(service.id)) throw new Error(`ServicesGrid: every service needs its own id (\"${service.id}\" is empty or repeated).`)\n ids.add(service.id)\n if (!service.title?.trim()) throw new Error(`ServicesGrid: the service \"${service.id}\" has no title.`)\n if (!service.href?.trim()) throw new Error(`ServicesGrid: the service \"${service.id}\" has no link.`)\n if (hrefs.has(service.href)) throw new Error(`ServicesGrid: two services link to ${service.href}; each card has its own page or section.`)\n hrefs.add(service.href)\n if (variant !== 'compact' && service.image) {\n const other = images.get(service.image.src)\n if (other) throw new Error(`ServicesGrid: \"${service.id}\" and \"${other}\" use the same image (${service.image.src}); no image is on two cards.`)\n images.set(service.image.src, service.id)\n }\n }\n if (variant !== 'compact' && services.length > SERVICES_GRID_CARD_LIMIT) {\n throw new Error(\n `ServicesGrid: ${services.length} services in ${variant}; ${variant} shows at most ${SERVICES_GRID_CARD_LIMIT} (K11). List every service with the compact variant, or show the money services and link the services hub.`,\n )\n }\n}\n\nexport function ServicesGrid({\n title,\n eyebrow,\n lead,\n services,\n more,\n imageSizes,\n headingId = 'services-heading',\n tone,\n variant = 'rows',\n layout,\n classes,\n}: ServicesGridProps) {\n if (services.length === 0) return null\n assertServices(services, variant)\n const columns = layout?.columns ?? 3\n const ratio = layout?.ratio ?? '4:3'\n const hooks =\n variant === 'compact'\n ? undefined\n : variant === 'cards'\n ? { 'data-columns': String(columns), 'data-ratio': ratio }\n : { 'data-media-side': layout?.mediaSide ?? 'alternate', 'data-ratio': ratio }\n const sizes = variant === 'compact' ? undefined : (imageSizes ?? defaultImageSizes(variant, columns))\n return (\n <Section id=\"services\" labelledBy={headingId} tone={tone} variant={variant} classes={classes} hooks={hooks}>\n <SectionHeading id={headingId} title={title} eyebrow={eyebrow} lead={lead} classes={classes} />\n <ul role=\"list\" {...slot(classes, 'list')}>\n {services.map((service) => (\n <ServiceCard key={service.id} service={service} variant={variant} imageSizes={sizes} ratio={ratio} />\n ))}\n </ul>\n {more ? (\n <p {...slot(classes, 'more')}>\n {more.href.startsWith('#') ? (\n <a href={more.href}>{more.label}</a>\n ) : (\n <Link href={more.href} prefetch={false}>\n {more.label}\n </Link>\n )}\n </p>\n ) : null}\n </Section>\n )\n}\n"]}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `SignatureSection` (`signature`, 3.16.0): the frame for one of a client's signature features, the sections that give
|
|
3
|
-
* a site its own character (Superior's waterline story, AA's storm line, Finishing Touch's `FinishBoard`). Server
|
|
4
|
-
* component. The site builds the body from the library's primitives in `src/site/signature/`; the frame keeps the
|
|
5
|
-
* rules every section keeps:
|
|
6
|
-
* - a `<section data-bl-section="signature" data-bl-signature="<name>">` labelled by its one H2, so K8, K11 and axe read
|
|
7
|
-
* it like any other section;
|
|
8
|
-
* - the name matches the `signature` the page offers `SectionSequence` and the look record in `strategy.ts`
|
|
9
|
-
* (`homeSections.signatures`), which D4 compares with the competitors' and K13 holds the rendered page to;
|
|
10
|
-
* - decoration is `aria-hidden`, and the body carries no client JS of its own (B1 budgets the page);
|
|
11
|
-
* - claims inside it come from the business facts (`renderableCredentials`) or the reviews feed, as everywhere else
|
|
12
|
-
* (T4, E8): a signature adds character, never an unsupported claim.
|
|
13
|
-
*
|
|
14
|
-
* `SectionSequence` places it where the site declares (`{ id: 'signature', signature: 'storm-line', after: 'services',
|
|
15
|
-
* render }`), outside the cap: up to two on the home page and one on service pages (`SIGNATURE_LIMITS`).
|
|
16
|
-
*/
|
|
17
|
-
import type { ReactNode } from 'react';
|
|
18
|
-
import { type SectionSlot, type SectionTone } from '../primitives/layout.js';
|
|
19
|
-
import { type SkinEntry } from '../skin.js';
|
|
20
|
-
export type SignatureSectionSlot = SectionSlot | 'head' | 'eyebrow' | 'heading' | 'lead' | 'body';
|
|
21
|
-
export interface SignatureSectionLayout {
|
|
22
|
-
readonly align?: 'start' | 'center';
|
|
23
|
-
}
|
|
24
|
-
export type SignatureSectionSkin = SkinEntry<SignatureSectionSlot, never, SignatureSectionLayout>;
|
|
25
|
-
export interface SignatureSectionProps extends SignatureSectionSkin {
|
|
26
|
-
/** The signature's name, as the page offers it to `SectionSequence` and `strategy.ts` records it: `storm-line`. */
|
|
27
|
-
readonly name: string;
|
|
28
|
-
/** The H2. */
|
|
29
|
-
readonly title: string;
|
|
30
|
-
readonly eyebrow?: string;
|
|
31
|
-
readonly lead?: string;
|
|
32
|
-
/** Defaults to `signature-<name>-heading`. */
|
|
33
|
-
readonly headingId?: string;
|
|
34
|
-
/** Set by `SectionSequence`. */
|
|
35
|
-
readonly tone?: SectionTone;
|
|
36
|
-
/** Signature art, rendered `aria-hidden`. */
|
|
37
|
-
readonly decoration?: ReactNode;
|
|
38
|
-
/** The feature itself, built from the library's primitives. */
|
|
39
|
-
readonly children: ReactNode;
|
|
40
|
-
}
|
|
41
|
-
export declare function SignatureSection({ name, title, eyebrow, lead, headingId, tone, decoration, layout, classes, children }: SignatureSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
-
//# sourceMappingURL=signature-section.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signature-section.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/sections/signature-section.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,EAA2B,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrG,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AACjG,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;CACpC;AACD,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,oBAAoB,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAAA;AAEjG,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,mHAAmH;IACnH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,cAAc;IACd,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,8CAA8C;IAC9C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,gCAAgC;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAA;IAC3B,6CAA6C;IAC7C,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,CAAA;IAC/B,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,qBAAqB,2CAmB7I"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { SIGNATURE_NAME_PATTERN } from '@brandlab-digital/site-core/section-order';
|
|
3
|
-
import { Section, SectionHeading } from '../primitives/layout.js';
|
|
4
|
-
import { slot } from '../skin.js';
|
|
5
|
-
export function SignatureSection({ name, title, eyebrow, lead, headingId, tone, decoration, layout, classes, children }) {
|
|
6
|
-
if (!SIGNATURE_NAME_PATTERN.test(name)) {
|
|
7
|
-
throw new Error(`SignatureSection: "${name}" is not a signature name (lower-case words joined by hyphens, for example "storm-line").`);
|
|
8
|
-
}
|
|
9
|
-
if (title.trim() === '')
|
|
10
|
-
throw new Error(`SignatureSection "${name}": the heading is empty.`);
|
|
11
|
-
const id = headingId ?? `signature-${name}-heading`;
|
|
12
|
-
return (_jsxs(Section, { id: "signature", labelledBy: id, tone: tone, classes: classes, decoration: decoration, hooks: { 'data-bl-signature': name }, children: [_jsx(SectionHeading, { id: id, title: title, eyebrow: eyebrow, lead: lead, layout: { align: layout?.align ?? 'start' }, classes: { head: classes?.head, eyebrow: classes?.eyebrow, heading: classes?.heading, lead: classes?.lead } }), _jsx("div", { ...slot(classes, 'body'), children: children })] }));
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=signature-section.js.map
|
|
@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,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAC3G,EACF,iBAAS,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,YAAG,QAAQ,GAAO,IACxC,CACX,CAAA;AACH,CAAC","sourcesContent":["/**\n * `SignatureSection` (`signature`, 3.16.0): the frame for one of a client's signature features, the sections that give\n * a site its own character (Superior's waterline story, AA's storm line, Finishing Touch's `FinishBoard`). Server\n * component. The site builds the body from the library's primitives in `src/site/signature/`; the frame keeps the\n * rules every section keeps:\n * - a `<section data-bl-section=\"signature\" data-bl-signature=\"<name>\">` labelled by its one H2, so K8, K11 and axe read\n * it like any other section;\n * - the name matches the `signature` the page offers `SectionSequence` and the look record in `strategy.ts`\n * (`homeSections.signatures`), which D4 compares with the competitors' and K13 holds the rendered page to;\n * - decoration is `aria-hidden`, and the body carries no client JS of its own (B1 budgets the page);\n * - claims inside it come from the business facts (`renderableCredentials`) or the reviews feed, as everywhere else\n * (T4, E8): a signature adds character, never an unsupported claim.\n *\n * `SectionSequence` places it where the site declares (`{ id: 'signature', signature: 'storm-line', after: 'services',\n * render }`), outside the cap: up to two on the home page and one on service pages (`SIGNATURE_LIMITS`).\n */\nimport type { ReactNode } from 'react'\nimport { SIGNATURE_NAME_PATTERN } from '@brandlab-digital/site-core/section-order'\nimport { Section, SectionHeading, type SectionSlot, type SectionTone } from '../primitives/layout.js'\nimport { slot, type SkinEntry } from '../skin.js'\n\nexport type SignatureSectionSlot = SectionSlot | 'head' | 'eyebrow' | 'heading' | 'lead' | 'body'\nexport interface SignatureSectionLayout {\n readonly align?: 'start' | 'center'\n}\nexport type SignatureSectionSkin = SkinEntry<SignatureSectionSlot, never, SignatureSectionLayout>\n\nexport interface SignatureSectionProps extends SignatureSectionSkin {\n /** The signature's name, as the page offers it to `SectionSequence` and `strategy.ts` records it: `storm-line`. */\n readonly name: string\n /** The H2. */\n readonly title: string\n readonly eyebrow?: string\n readonly lead?: string\n /** Defaults to `signature-<name>-heading`. */\n readonly headingId?: string\n /** Set by `SectionSequence`. */\n readonly tone?: SectionTone\n /** Signature art, rendered `aria-hidden`. */\n readonly decoration?: ReactNode\n /** The feature itself, built from the library's primitives. */\n readonly children: ReactNode\n}\n\nexport function SignatureSection({ name, title, eyebrow, lead, headingId, tone, decoration, layout, classes, children }: SignatureSectionProps) {\n if (!SIGNATURE_NAME_PATTERN.test(name)) {\n throw new Error(`SignatureSection: \"${name}\" is not a signature name (lower-case words joined by hyphens, for example \"storm-line\").`)\n }\n if (title.trim() === '') throw new Error(`SignatureSection \"${name}\": the heading is empty.`)\n const id = headingId ?? `signature-${name}-heading`\n return (\n <Section id=\"signature\" labelledBy={id} tone={tone} classes={classes} decoration={decoration} hooks={{ 'data-bl-signature': name }}>\n <SectionHeading\n id={id}\n title={title}\n eyebrow={eyebrow}\n lead={lead}\n layout={{ align: layout?.align ?? 'start' }}\n classes={{ head: classes?.head, eyebrow: classes?.eyebrow, heading: classes?.heading, lead: classes?.lead }}\n />\n <div {...slot(classes, 'body')}>{children}</div>\n </Section>\n )\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The footer's phone accordion (client island). Below 640 px of footer width each column's H2 shows its disclosure
|
|
3
|
-
* button and one column is open at a time; wider, every list shows and the buttons stay hidden. The headings, buttons
|
|
4
|
-
* and links are server HTML passed in as children; this island only toggles `hidden`, `aria-expanded` and
|
|
5
|
-
* `data-state`, so without scripts every link shows.
|
|
6
|
-
*/
|
|
7
|
-
import { type ReactNode } from 'react';
|
|
8
|
-
export declare function SiteFooterColumns({ className, children }: {
|
|
9
|
-
readonly className?: string | undefined;
|
|
10
|
-
readonly children: ReactNode;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=site-footer-columns.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-footer-columns.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/sections/site-footer-columns.tsx"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEzD,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAsDnI"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
/**
|
|
4
|
-
* The footer's phone accordion (client island). Below 640 px of footer width each column's H2 shows its disclosure
|
|
5
|
-
* button and one column is open at a time; wider, every list shows and the buttons stay hidden. The headings, buttons
|
|
6
|
-
* and links are server HTML passed in as children; this island only toggles `hidden`, `aria-expanded` and
|
|
7
|
-
* `data-state`, so without scripts every link shows.
|
|
8
|
-
*/
|
|
9
|
-
import { useEffect, useRef } from 'react';
|
|
10
|
-
export function SiteFooterColumns({ className, children }) {
|
|
11
|
-
const ref = useRef(null);
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
const root = ref.current;
|
|
14
|
-
const footer = root?.closest('[data-bl="footer"]');
|
|
15
|
-
if (!root || !footer)
|
|
16
|
-
return;
|
|
17
|
-
const columns = Array.from(root.querySelectorAll('[data-slot="column"]'));
|
|
18
|
-
let narrow = false;
|
|
19
|
-
let open = null;
|
|
20
|
-
const render = () => {
|
|
21
|
-
root.dataset.accordion = String(narrow);
|
|
22
|
-
for (const column of columns) {
|
|
23
|
-
const expanded = narrow && column === open;
|
|
24
|
-
const toggle = column.querySelector('[data-slot="toggle"]');
|
|
25
|
-
const text = column.querySelector('[data-slot="headingText"]');
|
|
26
|
-
const list = column.querySelector('[data-slot="list"]');
|
|
27
|
-
if (toggle) {
|
|
28
|
-
toggle.hidden = !narrow;
|
|
29
|
-
toggle.setAttribute('aria-expanded', String(expanded));
|
|
30
|
-
}
|
|
31
|
-
if (text)
|
|
32
|
-
text.hidden = narrow;
|
|
33
|
-
if (list)
|
|
34
|
-
list.hidden = narrow && !expanded;
|
|
35
|
-
if (narrow)
|
|
36
|
-
column.dataset.state = expanded ? 'open' : 'closed';
|
|
37
|
-
else
|
|
38
|
-
delete column.dataset.state;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
const onClick = (event) => {
|
|
42
|
-
const column = event.target?.closest('[data-slot="toggle"]')?.closest('[data-slot="column"]');
|
|
43
|
-
if (!narrow || !column)
|
|
44
|
-
return;
|
|
45
|
-
open = open === column ? null : column;
|
|
46
|
-
render();
|
|
47
|
-
};
|
|
48
|
-
const observer = new ResizeObserver(() => {
|
|
49
|
-
narrow = footer.getBoundingClientRect().width < 640;
|
|
50
|
-
if (!narrow)
|
|
51
|
-
open = null;
|
|
52
|
-
render();
|
|
53
|
-
});
|
|
54
|
-
observer.observe(footer);
|
|
55
|
-
root.addEventListener('click', onClick);
|
|
56
|
-
return () => {
|
|
57
|
-
observer.disconnect();
|
|
58
|
-
root.removeEventListener('click', onClick);
|
|
59
|
-
};
|
|
60
|
-
}, []);
|
|
61
|
-
return (_jsx("div", { ref: ref, "data-slot": "columns", className: className, children: children }));
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=site-footer-columns.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-footer-columns.js","sourceRoot":"","sources":["../../../src/ui-kit/sections/site-footer-columns.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAkB,MAAM,OAAO,CAAA;AAEzD,MAAM,UAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAA6E;IAClI,MAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAExC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM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AM,CAAC,OAAO,CAAC,KAAK,CAAA;YAClC,CAAC;QACH,CAAC,CAAA;QAED,MAAM,OAAO,GAAG,CAAC,KAAiB,EAAE,EAAE;YACpC,MAAM,MAAM,GAAI,KAAK,CAAC,MAAyB,EAAE,OAAO,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAc,sBAAsB,CAAC,CAAA;YAC9H,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM;gBAAE,OAAM;YAC9B,IAAI,GAAG,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAA;YACtC,MAAM,EAAE,CAAA;QACV,CAAC,CAAA;QAED,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAC,GAAG,EAAE;YACvC,MAAM,GAAG,MAAM,CAAC,qBAAqB,EAAE,CAAC,KAAK,GAAG,GAAG,CAAA;YACnD,IAAI,CAAC,MAAM;gBAAE,IAAI,GAAG,IAAI,CAAA;YACxB,MAAM,EAAE,CAAA;QACV,CAAC,CAAC,CAAA;QACF,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QACxB,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QACvC,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,UAAU,EAAE,CAAA;YACrB,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QAC5C,CAAC,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CACL,cAAK,GAAG,EAAE,GAAG,eAAY,SAAS,EAAC,SAAS,EAAE,SAAS,YACpD,QAAQ,GACL,CACP,CAAA;AACH,CAAC","sourcesContent":["'use client'\n\n/**\n * The footer's phone accordion (client island). Below 640 px of footer width each column's H2 shows its disclosure\n * button and one column is open at a time; wider, every list shows and the buttons stay hidden. The headings, buttons\n * and links are server HTML passed in as children; this island only toggles `hidden`, `aria-expanded` and\n * `data-state`, so without scripts every link shows.\n */\nimport { useEffect, useRef, type ReactNode } from 'react'\n\nexport function SiteFooterColumns({ className, children }: { readonly className?: string | undefined; readonly children: ReactNode }) {\n const ref = useRef<HTMLDivElement>(null)\n\n useEffect(() => {\n const root = ref.current\n const footer = root?.closest<HTMLElement>('[data-bl=\"footer\"]')\n if (!root || !footer) return\n const columns = Array.from(root.querySelectorAll<HTMLElement>('[data-slot=\"column\"]'))\n let narrow = false\n let open: HTMLElement | null = null\n\n const render = () => {\n root.dataset.accordion = String(narrow)\n for (const column of columns) {\n const expanded = narrow && column === open\n const toggle = column.querySelector<HTMLElement>('[data-slot=\"toggle\"]')\n const text = column.querySelector<HTMLElement>('[data-slot=\"headingText\"]')\n const list = column.querySelector<HTMLElement>('[data-slot=\"list\"]')\n if (toggle) {\n toggle.hidden = !narrow\n toggle.setAttribute('aria-expanded', String(expanded))\n }\n if (text) text.hidden = narrow\n if (list) list.hidden = narrow && !expanded\n if (narrow) column.dataset.state = expanded ? 'open' : 'closed'\n else delete column.dataset.state\n }\n }\n\n const onClick = (event: MouseEvent) => {\n const column = (event.target as Element | null)?.closest('[data-slot=\"toggle\"]')?.closest<HTMLElement>('[data-slot=\"column\"]')\n if (!narrow || !column) return\n open = open === column ? null : column\n render()\n }\n\n const observer = new ResizeObserver(() => {\n narrow = footer.getBoundingClientRect().width < 640\n if (!narrow) open = null\n render()\n })\n observer.observe(footer)\n root.addEventListener('click', onClick)\n return () => {\n observer.disconnect()\n root.removeEventListener('click', onClick)\n }\n }, [])\n\n return (\n <div ref={ref} data-slot=\"columns\" className={className}>\n {children}\n </div>\n )\n}\n"]}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { RepeatedSlotOf } from '../repeated-slots.js';
|
|
3
|
-
import { type SkinEntry } from '../skin.js';
|
|
4
|
-
import type { UiLink, UiPhone, UiSocial } from '../types.js';
|
|
5
|
-
export declare const SITE_FOOTER_VARIANTS: readonly ["columns", "photo"];
|
|
6
|
-
export type SiteFooterVariant = (typeof SITE_FOOTER_VARIANTS)[number];
|
|
7
|
-
export type SiteFooterSlot = 'root' | 'panel' | 'media' | 'inner' | 'brand' | 'logo' | 'description' | 'licences' | 'licenceLink' | 'social' | 'socialLink' | 'contact' | 'phone' | 'phoneLabel' | 'phoneNumber' | 'email' | 'address' | 'columns' | 'column' | 'heading' | 'toggle' | 'list' | 'link' | 'bottom' | 'bottomInner' | 'legal' | 'policies' | 'policyLink';
|
|
8
|
-
/** Rendered once per licence, profile, column, link or policy: styled from the skin stylesheet, never by class (3.14.0). */
|
|
9
|
-
export type SiteFooterRepeatedSlot = RepeatedSlotOf<'siteFooter'>;
|
|
10
|
-
export interface SiteFooterLayout {
|
|
11
|
-
/** `brand` (the default): the contact lines in column 1; `tier`: a full-width row at the top (3.17.0). */
|
|
12
|
-
readonly contact?: 'brand' | 'tier';
|
|
13
|
-
}
|
|
14
|
-
export type SiteFooterSkin = SkinEntry<SiteFooterSlot, SiteFooterVariant, SiteFooterLayout, SiteFooterRepeatedSlot>;
|
|
15
|
-
/** One licence line: the text as the register shows it, and the register link when there is one. */
|
|
16
|
-
export interface SiteFooterLicence {
|
|
17
|
-
readonly text: string;
|
|
18
|
-
readonly href?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface SiteFooterColumn {
|
|
21
|
-
/** The H2 text, for example "Services". */
|
|
22
|
-
readonly heading: string;
|
|
23
|
-
readonly links: readonly UiLink[];
|
|
24
|
-
}
|
|
25
|
-
export interface SiteFooterProps extends SiteFooterSkin {
|
|
26
|
-
/** The logo link's accessible name. */
|
|
27
|
-
readonly brandName: string;
|
|
28
|
-
readonly homeHref?: string;
|
|
29
|
-
/** The site's logo node (decorative inside the named link). */
|
|
30
|
-
readonly logo: ReactNode;
|
|
31
|
-
/** Two or three lines about the business. */
|
|
32
|
-
readonly description: string;
|
|
33
|
-
readonly licences?: readonly SiteFooterLicence[];
|
|
34
|
-
readonly socials?: readonly UiSocial[];
|
|
35
|
-
readonly phone: UiPhone;
|
|
36
|
-
/** Optional words before the number, for example "Call us". */
|
|
37
|
-
readonly phoneLabel?: string;
|
|
38
|
-
readonly email?: string;
|
|
39
|
-
/** Only when the business shows its address publicly. */
|
|
40
|
-
readonly address?: string;
|
|
41
|
-
/** Services, Areas and Company, rendered in that order; leave one out when the site has nothing true for it. */
|
|
42
|
-
readonly columns: {
|
|
43
|
-
readonly services?: SiteFooterColumn;
|
|
44
|
-
readonly areas?: SiteFooterColumn;
|
|
45
|
-
readonly company?: SiteFooterColumn;
|
|
46
|
-
};
|
|
47
|
-
readonly legal: {
|
|
48
|
-
/** The legal or trading name. */
|
|
49
|
-
readonly name: string;
|
|
50
|
-
readonly abn?: string;
|
|
51
|
-
/** Defaults to the current year in Sydney. */
|
|
52
|
-
readonly year?: number;
|
|
53
|
-
/** The privacy policy link, labelled by the site. */
|
|
54
|
-
readonly privacy?: UiLink;
|
|
55
|
-
/** The terms link, labelled by the site. */
|
|
56
|
-
readonly terms?: UiLink;
|
|
57
|
-
};
|
|
58
|
-
/** The `photo` variant's backdrop image for the panel (decorative). */
|
|
59
|
-
readonly media?: ReactNode;
|
|
60
|
-
/** Signature art, rendered `aria-hidden`. */
|
|
61
|
-
readonly decoration?: ReactNode;
|
|
62
|
-
/** Prefix for the column list ids (default `bl-footer`). */
|
|
63
|
-
readonly idPrefix?: string;
|
|
64
|
-
}
|
|
65
|
-
export declare function SiteFooter({ brandName, homeHref, logo, description, licences, socials, phone, phoneLabel, email, address, columns, legal, media, decoration, idPrefix, variant, layout, classes, }: SiteFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
66
|
-
//# sourceMappingURL=site-footer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-footer.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/sections/site-footer.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,cAA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IAC7C,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,CAAA;IAC/B,4DAA4D;IAC5D,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAC3B;AAwBD,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,QAAc,EACd,IAAI,EACJ,WAAW,EACX,QAAa,EACb,OAAY,EACZ,KAAK,EACL,UAAU,EACV,KAAK,EACL,OAAO,EACP,OAAO,EACP,KAAK,EACL,KAAK,EACL,UAAU,EACV,QAAsB,EACtB,OAAmB,EACnB,MAAM,EACN,OAAO,GACR,EAAE,eAAe,2CAiHjB"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* S27 `SiteFooter`: the v1 §6 footer, structured the same on every site. Server component; one small client island
|
|
4
|
-
* (`SiteFooterColumns`) turns the columns into a phone accordion.
|
|
5
|
-
*
|
|
6
|
-
* Column 1: the logo, a short description, one line per licence (with its register link when given), social and
|
|
7
|
-
* Business Profile icons, then the phone (`phone_link_click` placement `footer`), the email and the address only when
|
|
8
|
-
* it is public. Then Services, Areas and Company, each under a real H2, in that order. A bottom bar: © year name ·
|
|
9
|
-
* ABN · the privacy and terms links. Never a quote button, "based in", opening hours, a guides column or a "back to
|
|
10
|
-
* top" text link: the props have no place for them.
|
|
11
|
-
*
|
|
12
|
-
* `layout.contact: 'tier'` (3.17.0) lifts the phone, email and address out of column 1 into a full-width row at the top
|
|
13
|
-
* of the footer, the phone large (`--bl-footer-tier-phone-size`). Still no quote button.
|
|
14
|
-
*
|
|
15
|
-
* Variants: `columns`; `photo`, with the site's backdrop image for the panel in `media` (decorative, `aria-hidden`),
|
|
16
|
-
* for example Superior's sunlit water. Signature art goes in `decoration`.
|
|
17
|
-
*
|
|
18
|
-
* Prefetch is off on every internal footer link and the logo (`LINK_PREFETCH_POLICY.footer`): the footer comes into
|
|
19
|
-
* view on every full scroll, and visitors rarely follow its links.
|
|
20
|
-
*/
|
|
21
|
-
import Link from 'next/link';
|
|
22
|
-
import { Icon, SocialIcon } from '../icons.js';
|
|
23
|
-
import { PhoneLink } from '../primitives/links.js';
|
|
24
|
-
import { repeatedSlot, slot } from '../skin.js';
|
|
25
|
-
import { SiteFooterColumns } from './site-footer-columns.js';
|
|
26
|
-
export const SITE_FOOTER_VARIANTS = ['columns', 'photo'];
|
|
27
|
-
const COLUMN_KEYS = ['services', 'areas', 'company'];
|
|
28
|
-
function isExternal(href) {
|
|
29
|
-
return /^https?:\/\//i.test(href);
|
|
30
|
-
}
|
|
31
|
-
function FooterLink({ link, slotName }) {
|
|
32
|
-
return isExternal(link.href) ? (_jsx("a", { href: link.href, ...repeatedSlot(slotName), target: "_blank", rel: "noopener noreferrer", children: link.label })) : (_jsx(Link, { href: link.href, prefetch: false, ...repeatedSlot(slotName), children: link.label }));
|
|
33
|
-
}
|
|
34
|
-
function currentYear() {
|
|
35
|
-
return Number(new Intl.DateTimeFormat('en-AU', { year: 'numeric', timeZone: 'Australia/Sydney' }).format(new Date()));
|
|
36
|
-
}
|
|
37
|
-
export function SiteFooter({ brandName, homeHref = '/', logo, description, licences = [], socials = [], phone, phoneLabel, email, address, columns, legal, media, decoration, idPrefix = 'bl-footer', variant = 'columns', layout, classes, }) {
|
|
38
|
-
const policies = [legal.privacy, legal.terms].filter((link) => !!link);
|
|
39
|
-
const tier = layout?.contact === 'tier';
|
|
40
|
-
const contact = (_jsxs("div", { ...slot(classes, 'contact'), children: [_jsx(PhoneLink, { phone: phone, placement: "footer", label: phoneLabel, classes: { root: classes?.phone, label: classes?.phoneLabel, number: classes?.phoneNumber } }), email ? (_jsx("a", { ...slot(classes, 'email'), href: `mailto:${email}`, children: email })) : null, address ? _jsx("p", { ...slot(classes, 'address'), children: address }) : null] }));
|
|
41
|
-
return (_jsxs("footer", { "data-bl": "footer", "data-variant": variant, "data-contact": tier ? 'tier' : undefined, className: classes?.root, children: [decoration ? (_jsx("div", { "data-slot": "decoration", "aria-hidden": "true", children: decoration })) : null, _jsxs("div", { ...slot(classes, 'panel'), children: [variant === 'photo' && media ? (_jsx("div", { ...slot(classes, 'media'), "aria-hidden": "true", children: media })) : null, _jsxs("div", { ...slot(classes, 'inner'), children: [tier ? contact : null, _jsxs("div", { ...slot(classes, 'brand'), children: [_jsx(Link, { href: homeHref, prefetch: false, ...slot(classes, 'logo'), "aria-label": brandName, children: logo }), _jsx("p", { ...slot(classes, 'description'), children: description }), licences.length > 0 ? (_jsx("ul", { ...slot(classes, 'licences'), children: licences.map((licence) => (_jsx("li", { children: licence.href ? (_jsx("a", { ...repeatedSlot('licenceLink'), href: licence.href, target: "_blank", rel: "noopener noreferrer", children: licence.text })) : (licence.text) }, licence.text))) })) : null, socials.length > 0 ? (_jsx("ul", { ...slot(classes, 'social'), children: socials.map((social) => (_jsx("li", { children: _jsx("a", { ...repeatedSlot('socialLink'), href: social.href, "aria-label": social.label, target: "_blank", rel: "noopener noreferrer", children: _jsx(SocialIcon, { kind: social.kind }) }) }, social.href))) })) : null, tier ? null : contact] }), _jsx(SiteFooterColumns, { className: classes?.columns, children: COLUMN_KEYS.map((key) => {
|
|
42
|
-
const column = columns[key];
|
|
43
|
-
if (!column || column.links.length === 0)
|
|
44
|
-
return null;
|
|
45
|
-
const listId = `${idPrefix}-${key}`;
|
|
46
|
-
return (_jsxs("div", { ...repeatedSlot('column'), "data-column": key, children: [_jsxs("h2", { ...repeatedSlot('heading'), children: [_jsx("span", { "data-slot": "headingText", children: column.heading }), _jsxs("button", { type: "button", ...repeatedSlot('toggle'), "aria-expanded": "false", "aria-controls": listId, hidden: true, children: [_jsx("span", { children: column.heading }), _jsx(Icon, { name: "chevron" })] })] }), _jsx("ul", { id: listId, ...repeatedSlot('list'), children: column.links.map((link) => (_jsx("li", { children: _jsx(FooterLink, { link: link, slotName: "link" }) }, link.href))) })] }, key));
|
|
47
|
-
}) })] })] }), _jsx("div", { ...slot(classes, 'bottom'), children: _jsxs("div", { ...slot(classes, 'bottomInner'), children: [_jsxs("p", { ...slot(classes, 'legal'), children: ["\u00A9 ", legal.year ?? currentYear(), " ", legal.name, legal.abn ? (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": "true", children: " \u00B7 " }), _jsxs("span", { children: ["ABN ", legal.abn] })] })) : null] }), policies.length > 0 ? (_jsx("ul", { ...slot(classes, 'policies'), children: policies.map((link) => (_jsx("li", { children: _jsx(FooterLink, { link: link, slotName: "policyLink" }) }, link.href))) })) : null] }) })] }));
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=site-footer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"site-footer.js","sourceRoot":"","sources":["../../../src/ui-kit/sections/site-footer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAElD,OAAO,EAAE,YAAY,EAAE,IAAI,EAAkB,MAAM,YAAY,CAAA;AAE/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAE5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,OAAO,CAAU,CAAA;AA8FjE,MAAM,WAAW,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,CAAU,CAAA;AAE7D,SAAS,UAAU,CAAC,IAAY;IAC9B,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACnC,CAAC;AAED,SAAS,UAAU,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAqD;IACvF,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAC7B,YAAG,IAAI,EAAE,IAAI,CAAC,IAAI,KAAM,YAAY,CAAC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AAO,EAAE,UAAU,CAAC,YAC9B,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACtB,uBACE,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAC,YAAY,GAAG,IADzC,IAAI,CAAC,IAAI,CAEb,CACN,CAAC,GACC,CACN,CAAC,CAAC,CAAC,IAAI,IACJ,GACF,IACC,CACV,CAAA;AACH,CAAC","sourcesContent":["/**\n * S27 `SiteFooter`: the v1 §6 footer, structured the same on every site. Server component; one small client island\n * (`SiteFooterColumns`) turns the columns into a phone accordion.\n *\n * Column 1: the logo, a short description, one line per licence (with its register link when given), social and\n * Business Profile icons, then the phone (`phone_link_click` placement `footer`), the email and the address only when\n * it is public. Then Services, Areas and Company, each under a real H2, in that order. A bottom bar: © year name ·\n * ABN · the privacy and terms links. Never a quote button, \"based in\", opening hours, a guides column or a \"back to\n * top\" text link: the props have no place for them.\n *\n * `layout.contact: 'tier'` (3.17.0) lifts the phone, email and address out of column 1 into a full-width row at the top\n * of the footer, the phone large (`--bl-footer-tier-phone-size`). Still no quote button.\n *\n * Variants: `columns`; `photo`, with the site's backdrop image for the panel in `media` (decorative, `aria-hidden`),\n * for example Superior's sunlit water. Signature art goes in `decoration`.\n *\n * Prefetch is off on every internal footer link and the logo (`LINK_PREFETCH_POLICY.footer`): the footer comes into\n * view on every full scroll, and visitors rarely follow its links.\n */\nimport Link from 'next/link'\nimport type { ReactNode } from 'react'\nimport { Icon, SocialIcon } from '../icons.js'\nimport { PhoneLink } from '../primitives/links.js'\nimport type { RepeatedSlotOf } from '../repeated-slots.js'\nimport { repeatedSlot, slot, type SkinEntry } from '../skin.js'\nimport type { UiLink, UiPhone, UiSocial } from '../types.js'\nimport { SiteFooterColumns } from './site-footer-columns.js'\n\nexport const SITE_FOOTER_VARIANTS = ['columns', 'photo'] as const\nexport type SiteFooterVariant = (typeof SITE_FOOTER_VARIANTS)[number]\n\nexport type SiteFooterSlot =\n | 'root'\n | 'panel'\n | 'media'\n | 'inner'\n | 'brand'\n | 'logo'\n | 'description'\n | 'licences'\n | 'licenceLink'\n | 'social'\n | 'socialLink'\n | 'contact'\n | 'phone'\n | 'phoneLabel'\n | 'phoneNumber'\n | 'email'\n | 'address'\n | 'columns'\n | 'column'\n | 'heading'\n | 'toggle'\n | 'list'\n | 'link'\n | 'bottom'\n | 'bottomInner'\n | 'legal'\n | 'policies'\n | 'policyLink'\n\n/** Rendered once per licence, profile, column, link or policy: styled from the skin stylesheet, never by class (3.14.0). */\nexport type SiteFooterRepeatedSlot = RepeatedSlotOf<'siteFooter'>\nexport interface SiteFooterLayout {\n /** `brand` (the default): the contact lines in column 1; `tier`: a full-width row at the top (3.17.0). */\n readonly contact?: 'brand' | 'tier'\n}\nexport type SiteFooterSkin = SkinEntry<SiteFooterSlot, SiteFooterVariant, SiteFooterLayout, SiteFooterRepeatedSlot>\n\n/** One licence line: the text as the register shows it, and the register link when there is one. */\nexport interface SiteFooterLicence {\n readonly text: string\n readonly href?: string\n}\n\nexport interface SiteFooterColumn {\n /** The H2 text, for example \"Services\". */\n readonly heading: string\n readonly links: readonly UiLink[]\n}\n\nexport interface SiteFooterProps extends SiteFooterSkin {\n /** The logo link's accessible name. */\n readonly brandName: string\n readonly homeHref?: string\n /** The site's logo node (decorative inside the named link). */\n readonly logo: ReactNode\n /** Two or three lines about the business. */\n readonly description: string\n readonly licences?: readonly SiteFooterLicence[]\n readonly socials?: readonly UiSocial[]\n readonly phone: UiPhone\n /** Optional words before the number, for example \"Call us\". */\n readonly phoneLabel?: string\n readonly email?: string\n /** Only when the business shows its address publicly. */\n readonly address?: string\n /** Services, Areas and Company, rendered in that order; leave one out when the site has nothing true for it. */\n readonly columns: {\n readonly services?: SiteFooterColumn\n readonly areas?: SiteFooterColumn\n readonly company?: SiteFooterColumn\n }\n readonly legal: {\n /** The legal or trading name. */\n readonly name: string\n readonly abn?: string\n /** Defaults to the current year in Sydney. */\n readonly year?: number\n /** The privacy policy link, labelled by the site. */\n readonly privacy?: UiLink\n /** The terms link, labelled by the site. */\n readonly terms?: UiLink\n }\n /** The `photo` variant's backdrop image for the panel (decorative). */\n readonly media?: ReactNode\n /** Signature art, rendered `aria-hidden`. */\n readonly decoration?: ReactNode\n /** Prefix for the column list ids (default `bl-footer`). */\n readonly idPrefix?: string\n}\n\nconst COLUMN_KEYS = ['services', 'areas', 'company'] as const\n\nfunction isExternal(href: string) {\n return /^https?:\\/\\//i.test(href)\n}\n\nfunction FooterLink({ link, slotName }: { link: UiLink; slotName: 'link' | 'policyLink' }) {\n return isExternal(link.href) ? (\n <a href={link.href} {...repeatedSlot(slotName)} target=\"_blank\" rel=\"noopener noreferrer\">\n {link.label}\n </a>\n ) : (\n <Link href={link.href} prefetch={false} {...repeatedSlot(slotName)}>\n {link.label}\n </Link>\n )\n}\n\nfunction currentYear() {\n return Number(new Intl.DateTimeFormat('en-AU', { year: 'numeric', timeZone: 'Australia/Sydney' }).format(new Date()))\n}\n\nexport function SiteFooter({\n brandName,\n homeHref = '/',\n logo,\n description,\n licences = [],\n socials = [],\n phone,\n phoneLabel,\n email,\n address,\n columns,\n legal,\n media,\n decoration,\n idPrefix = 'bl-footer',\n variant = 'columns',\n layout,\n classes,\n}: SiteFooterProps) {\n const policies = [legal.privacy, legal.terms].filter((link): link is UiLink => !!link)\n const tier = layout?.contact === 'tier'\n const contact = (\n <div {...slot(classes, 'contact')}>\n <PhoneLink phone={phone} placement=\"footer\" label={phoneLabel} classes={{ root: classes?.phone, label: classes?.phoneLabel, number: classes?.phoneNumber }} />\n {email ? (\n <a {...slot(classes, 'email')} href={`mailto:${email}`}>\n {email}\n </a>\n ) : null}\n {address ? <p {...slot(classes, 'address')}>{address}</p> : null}\n </div>\n )\n return (\n <footer data-bl=\"footer\" data-variant={variant} data-contact={tier ? 'tier' : undefined} className={classes?.root}>\n {decoration ? (\n <div data-slot=\"decoration\" aria-hidden=\"true\">\n {decoration}\n </div>\n ) : null}\n <div {...slot(classes, 'panel')}>\n {variant === 'photo' && media ? (\n <div {...slot(classes, 'media')} aria-hidden=\"true\">\n {media}\n </div>\n ) : null}\n <div {...slot(classes, 'inner')}>\n {tier ? contact : null}\n <div {...slot(classes, 'brand')}>\n <Link href={homeHref} prefetch={false} {...slot(classes, 'logo')} aria-label={brandName}>\n {logo}\n </Link>\n <p {...slot(classes, 'description')}>{description}</p>\n {licences.length > 0 ? (\n <ul {...slot(classes, 'licences')}>\n {licences.map((licence) => (\n <li key={licence.text}>\n {licence.href ? (\n <a {...repeatedSlot('licenceLink')} href={licence.href} target=\"_blank\" rel=\"noopener noreferrer\">\n {licence.text}\n </a>\n ) : (\n licence.text\n )}\n </li>\n ))}\n </ul>\n ) : null}\n {socials.length > 0 ? (\n <ul {...slot(classes, 'social')}>\n {socials.map((social) => (\n <li key={social.href}>\n <a {...repeatedSlot('socialLink')} href={social.href} aria-label={social.label} target=\"_blank\" rel=\"noopener noreferrer\">\n <SocialIcon kind={social.kind} />\n </a>\n </li>\n ))}\n </ul>\n ) : null}\n {tier ? null : contact}\n </div>\n <SiteFooterColumns className={classes?.columns}>\n {COLUMN_KEYS.map((key) => {\n const column = columns[key]\n if (!column || column.links.length === 0) return null\n const listId = `${idPrefix}-${key}`\n return (\n <div key={key} {...repeatedSlot('column')} data-column={key}>\n <h2 {...repeatedSlot('heading')}>\n <span data-slot=\"headingText\">{column.heading}</span>\n <button type=\"button\" {...repeatedSlot('toggle')} aria-expanded=\"false\" aria-controls={listId} hidden>\n <span>{column.heading}</span>\n <Icon name=\"chevron\" />\n </button>\n </h2>\n <ul id={listId} {...repeatedSlot('list')}>\n {column.links.map((link) => (\n <li key={link.href}>\n <FooterLink link={link} slotName=\"link\" />\n </li>\n ))}\n </ul>\n </div>\n )\n })}\n </SiteFooterColumns>\n </div>\n </div>\n <div {...slot(classes, 'bottom')}>\n <div {...slot(classes, 'bottomInner')}>\n <p {...slot(classes, 'legal')}>\n © {legal.year ?? currentYear()} {legal.name}\n {legal.abn ? (\n <>\n <span aria-hidden=\"true\"> · </span>\n <span>ABN {legal.abn}</span>\n </>\n ) : null}\n </p>\n {policies.length > 0 ? (\n <ul {...slot(classes, 'policies')}>\n {policies.map((link) => (\n <li key={link.href}>\n <FooterLink link={link} slotName=\"policyLink\" />\n </li>\n ))}\n </ul>\n ) : null}\n </div>\n </div>\n </footer>\n )\n}\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The rules the "our work" sections share (3.15.0): `Projects`, `Gallery` and `BeforeAfter` show the client's real work
|
|
3
|
-
* only (v2 §11 imagery rule 4, F13). A stock or AI image never stands for a job, so these sections refuse one and fail
|
|
4
|
-
* the build, the same way the hero refuses an AI photo; when there are no genuine photos the section is skipped.
|
|
5
|
-
*/
|
|
6
|
-
import type { MediaFrameSizing, UiMedia } from '../primitives/media-frame.js';
|
|
7
|
-
/** Throws unless the image is a genuine, described photo of the work. */
|
|
8
|
-
export declare function assertGenuineWork(component: string, media: UiMedia, where: string): void;
|
|
9
|
-
/** Fluid `sizes` for one column of a grid that is one column on phones, two from 640 px and `columns` from 1024 px. */
|
|
10
|
-
export declare function gridImageSizes(columns: number): string;
|
|
11
|
-
/** `MediaFrame`'s sizing from a section's `imageSizes`: a number is a fixed CSS width, a string a fluid `vw` size. */
|
|
12
|
-
export declare function frameSizing(sizes: number | string): MediaFrameSizing;
|
|
13
|
-
/** An internal page path: starts with one `/`, no spaces. */
|
|
14
|
-
export declare function isInternalPath(href: string): boolean;
|
|
15
|
-
//# sourceMappingURL=work-photos.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"work-photos.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/sections/work-photos.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAE7E,yEAAyE;AACzE,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CASxF;AAED,uHAAuH;AACvH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGtD;AAED,sHAAsH;AACtH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAEpE;AAED,6DAA6D;AAC7D,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpD"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** Throws unless the image is a genuine, described photo of the work. */
|
|
2
|
-
export function assertGenuineWork(component, media, where) {
|
|
3
|
-
if (media.provenance !== 'genuine') {
|
|
4
|
-
throw new Error(`${component}: ${where} (${media.src}) is ${media.provenance}. Projects, the gallery and before-and-after pairs show genuine photos of the work only; use the image elsewhere as supporting media.`);
|
|
5
|
-
}
|
|
6
|
-
if (media.decorative || !media.alt.trim()) {
|
|
7
|
-
throw new Error(`${component}: ${where} (${media.src}) has no alt text; a photo of the work says what it shows.`);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
/** Fluid `sizes` for one column of a grid that is one column on phones, two from 640 px and `columns` from 1024 px. */
|
|
11
|
-
export function gridImageSizes(columns) {
|
|
12
|
-
if (columns <= 2)
|
|
13
|
-
return '(min-width: 640px) 50vw, 100vw';
|
|
14
|
-
return `(min-width: 1024px) ${Math.round(100 / columns)}vw, (min-width: 640px) 50vw, 100vw`;
|
|
15
|
-
}
|
|
16
|
-
/** `MediaFrame`'s sizing from a section's `imageSizes`: a number is a fixed CSS width, a string a fluid `vw` size. */
|
|
17
|
-
export function frameSizing(sizes) {
|
|
18
|
-
return typeof sizes === 'number' ? { displayWidth: sizes } : { sizes };
|
|
19
|
-
}
|
|
20
|
-
/** An internal page path: starts with one `/`, no spaces. */
|
|
21
|
-
export function isInternalPath(href) {
|
|
22
|
-
return /^\/(?!\/)\S*$/.test(href);
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=work-photos.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"work-photos.js","sourceRoot":"","sources":["../../../src/ui-kit/sections/work-photos.ts"],"names":[],"mappings":"AAOA,yEAAyE;AACzE,MAAM,UAAU,iBAAiB,CAAC,SAAiB,EAAE,KAAc,EAAE,KAAa;IAChF,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CACb,GAAG,SAAS,KAAK,KAAK,KAAK,KAAK,CAAC,GAAG,QAAQ,KAAK,CAAC,UAAU,uIAAuI,CACpM,CAAA;IACH,CAAC;IACD,IAAI,KAAK,CAAC,UAAU,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,GAAG,SAAS,KAAK,KAAK,KAAK,KAAK,CAAC,GAAG,4DAA4D,CAAC,CAAA;IACnH,CAAC;AACH,CAAC;AAED,uHAAuH;AACvH,MAAM,UAAU,cAAc,CAAC,OAAe;IAC5C,IAAI,OAAO,IAAI,CAAC;QAAE,OAAO,gCAAgC,CAAA;IACzD,OAAO,uBAAuB,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,OAAO,CAAC,oCAAoC,CAAA;AAC7F,CAAC;AAED,sHAAsH;AACtH,MAAM,UAAU,WAAW,CAAC,KAAsB;IAChD,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAA;AACxE,CAAC;AAED,6DAA6D;AAC7D,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACnC,CAAC","sourcesContent":["/**\n * The rules the \"our work\" sections share (3.15.0): `Projects`, `Gallery` and `BeforeAfter` show the client's real work\n * only (v2 §11 imagery rule 4, F13). A stock or AI image never stands for a job, so these sections refuse one and fail\n * the build, the same way the hero refuses an AI photo; when there are no genuine photos the section is skipped.\n */\nimport type { MediaFrameSizing, UiMedia } from '../primitives/media-frame.js'\n\n/** Throws unless the image is a genuine, described photo of the work. */\nexport function assertGenuineWork(component: string, media: UiMedia, where: string): void {\n if (media.provenance !== 'genuine') {\n throw new Error(\n `${component}: ${where} (${media.src}) is ${media.provenance}. Projects, the gallery and before-and-after pairs show genuine photos of the work only; use the image elsewhere as supporting media.`,\n )\n }\n if (media.decorative || !media.alt.trim()) {\n throw new Error(`${component}: ${where} (${media.src}) has no alt text; a photo of the work says what it shows.`)\n }\n}\n\n/** Fluid `sizes` for one column of a grid that is one column on phones, two from 640 px and `columns` from 1024 px. */\nexport function gridImageSizes(columns: number): string {\n if (columns <= 2) return '(min-width: 640px) 50vw, 100vw'\n return `(min-width: 1024px) ${Math.round(100 / columns)}vw, (min-width: 640px) 50vw, 100vw`\n}\n\n/** `MediaFrame`'s sizing from a section's `imageSizes`: a number is a fixed CSS width, a string a fluid `vw` size. */\nexport function frameSizing(sizes: number | string): MediaFrameSizing {\n return typeof sizes === 'number' ? { displayWidth: sizes } : { sizes }\n}\n\n/** An internal page path: starts with one `/`, no spaces. */\nexport function isInternalPath(href: string): boolean {\n return /^\\/(?!\\/)\\S*$/.test(href)\n}\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** The back-to-top button's client leaf (F7 rules in the hook). */
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
export declare function BackToTopButton({ corner, offset, className, children, }: {
|
|
4
|
-
readonly corner: string;
|
|
5
|
-
readonly offset: string;
|
|
6
|
-
readonly className?: string | undefined;
|
|
7
|
-
readonly children: ReactNode;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=back-to-top-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"back-to-top-client.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/shell/back-to-top-client.tsx"],"names":[],"mappings":"AAEA,mEAAmE;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,MAAM,EACN,SAAS,EACT,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,2CAiBA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useBackToTop } from '../../navigation/use-back-to-top.js';
|
|
4
|
-
export function BackToTopButton({ corner, offset, className, children, }) {
|
|
5
|
-
const { shown, scrollToTop } = useBackToTop();
|
|
6
|
-
return (_jsx("button", { type: "button", "data-bl": "back-to-top", "data-corner": corner, "data-offset": offset, "data-state": shown ? 'shown' : 'hidden', inert: !shown, "aria-label": "Back to top", className: className, onClick: scrollToTop, children: children }));
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=back-to-top-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"back-to-top-client.js","sourceRoot":"","sources":["../../../src/ui-kit/shell/back-to-top-client.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAIZ,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAElE,MAAM,UAAU,eAAe,CAAC,EAC9B,MAAM,EACN,MAAM,EACN,SAAS,EACT,QAAQ,GAMT;IACC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,YAAY,EAAE,CAAA;IAC7C,OAAO,CACL,iBACE,IAAI,EAAC,QAAQ,aACL,aAAa,iBACR,MAAM,iBACN,MAAM,gBACP,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EACtC,KAAK,EAAE,CAAC,KAAK,gBACF,aAAa,EACxB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,WAAW,YAEnB,QAAQ,GACF,CACV,CAAA;AACH,CAAC","sourcesContent":["'use client'\n\n/** The back-to-top button's client leaf (F7 rules in the hook). */\nimport type { ReactNode } from 'react'\nimport { useBackToTop } from '../../navigation/use-back-to-top.js'\n\nexport function BackToTopButton({\n corner,\n offset,\n className,\n children,\n}: {\n readonly corner: string\n readonly offset: string\n readonly className?: string | undefined\n readonly children: ReactNode\n}) {\n const { shown, scrollToTop } = useBackToTop()\n return (\n <button\n type=\"button\"\n data-bl=\"back-to-top\"\n data-corner={corner}\n data-offset={offset}\n data-state={shown ? 'shown' : 'hidden'}\n inert={!shown}\n aria-label=\"Back to top\"\n className={className}\n onClick={scrollToTop}\n >\n {children}\n </button>\n )\n}\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type SkinEntry } from '../skin.js';
|
|
2
|
-
export type BackToTopSlot = 'root' | 'icon';
|
|
3
|
-
export declare const BACK_TO_TOP_OFFSETS: readonly ["small", "medium", "large"];
|
|
4
|
-
export interface BackToTopLayout {
|
|
5
|
-
/** The bottom corner it sits in (default `end`). */
|
|
6
|
-
readonly corner?: 'end' | 'start';
|
|
7
|
-
/** Its distance from the side and from the bottom (or the call bar): 0.75, 1.25 or 2 rem (default `medium`). */
|
|
8
|
-
readonly offset?: (typeof BACK_TO_TOP_OFFSETS)[number];
|
|
9
|
-
}
|
|
10
|
-
export type BackToTopSkin = SkinEntry<BackToTopSlot, never, BackToTopLayout>;
|
|
11
|
-
export type BackToTopProps = BackToTopSkin;
|
|
12
|
-
export declare function BackToTop({ layout, classes }: BackToTopProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
//# sourceMappingURL=back-to-top.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"back-to-top.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/shell/back-to-top.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,YAAY,CAAA;AAGjD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAA;AAC3C,eAAO,MAAM,mBAAmB,uCAAwC,CAAA;AACxE,MAAM,WAAW,eAAe;IAC9B,oDAAoD;IACpD,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,OAAO,CAAA;IACjC,gHAAgH;IAChH,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;CACvD;AACD,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,aAAa,EAAE,KAAK,EAAE,eAAe,CAAC,CAAA;AAE5E,MAAM,MAAM,cAAc,GAAG,aAAa,CAAA;AAE1C,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,cAAc,2CAQ5D"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* F7: back-to-top (server component). A 44 px `<button>` named "Back to top" that appears after one and a half
|
|
4
|
-
* screens, stays hidden while the phone call bar shows (3.15.0; it never covers the bar or the content above it), scrolls smoothly unless the visitor prefers reduced motion and moves
|
|
5
|
-
* focus to `#main`. Never a footer text link. Render it once, after the page's `<main>`.
|
|
6
|
-
*/
|
|
7
|
-
import { Icon } from '../icons.js';
|
|
8
|
-
import { slot } from '../skin.js';
|
|
9
|
-
import { BackToTopButton } from './back-to-top-client.js';
|
|
10
|
-
export const BACK_TO_TOP_OFFSETS = ['small', 'medium', 'large'];
|
|
11
|
-
export function BackToTop({ layout, classes }) {
|
|
12
|
-
return (_jsx(BackToTopButton, { corner: layout?.corner ?? 'end', offset: layout?.offset ?? 'medium', className: classes?.root, children: _jsx("span", { ...slot(classes, 'icon'), children: _jsx(Icon, { name: "arrow-up" }) }) }));
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=back-to-top.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"back-to-top.js","sourceRoot":"","sources":["../../../src/ui-kit/shell/back-to-top.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,IAAI,EAAkB,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAGzD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAA;AAWxE,MAAM,UAAU,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,EAAkB;IAC3D,OAAO,CACL,KAAC,eAAe,IAAC,MAAM,EAAE,MAAM,EAAE,MAAM,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,IAAI,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,YAC5G,kBAAU,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,YAC7B,KAAC,IAAI,IAAC,IAAI,EAAC,UAAU,GAAG,GACnB,GACS,CACnB,CAAA;AACH,CAAC","sourcesContent":["/**\n * F7: back-to-top (server component). A 44 px `<button>` named \"Back to top\" that appears after one and a half\n * screens, stays hidden while the phone call bar shows (3.15.0; it never covers the bar or the content above it), scrolls smoothly unless the visitor prefers reduced motion and moves\n * focus to `#main`. Never a footer text link. Render it once, after the page's `<main>`.\n */\nimport { Icon } from '../icons.js'\nimport { slot, type SkinEntry } from '../skin.js'\nimport { BackToTopButton } from './back-to-top-client.js'\n\nexport type BackToTopSlot = 'root' | 'icon'\nexport const BACK_TO_TOP_OFFSETS = ['small', 'medium', 'large'] as const\nexport interface BackToTopLayout {\n /** The bottom corner it sits in (default `end`). */\n readonly corner?: 'end' | 'start'\n /** Its distance from the side and from the bottom (or the call bar): 0.75, 1.25 or 2 rem (default `medium`). */\n readonly offset?: (typeof BACK_TO_TOP_OFFSETS)[number]\n}\nexport type BackToTopSkin = SkinEntry<BackToTopSlot, never, BackToTopLayout>\n\nexport type BackToTopProps = BackToTopSkin\n\nexport function BackToTop({ layout, classes }: BackToTopProps) {\n return (\n <BackToTopButton corner={layout?.corner ?? 'end'} offset={layout?.offset ?? 'medium'} className={classes?.root}>\n <span {...slot(classes, 'icon')}>\n <Icon name=\"arrow-up\" />\n </span>\n </BackToTopButton>\n )\n}\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
export declare function CallBarController({ variant, always, className, children, }: {
|
|
3
|
-
readonly variant: string;
|
|
4
|
-
readonly always?: boolean | undefined;
|
|
5
|
-
readonly className?: string | undefined;
|
|
6
|
-
readonly children: ReactNode;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=call-bar-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"call-bar-client.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/shell/call-bar-client.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAG9C,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,MAAM,EACN,SAAS,EACT,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACrC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,2CAiBA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
/** The call bar's client leaf: shows and hides the server-rendered Call and quote buttons (F6 rules in the hook). */
|
|
4
|
-
import { usePathname } from 'next/navigation';
|
|
5
|
-
import { useRef } from 'react';
|
|
6
|
-
import { useStickyCallBar } from '../../navigation/use-sticky-call-bar.js';
|
|
7
|
-
export function CallBarController({ variant, always, className, children, }) {
|
|
8
|
-
const ref = useRef(null);
|
|
9
|
-
const pathname = usePathname();
|
|
10
|
-
const shown = useStickyCallBar(ref, pathname, { always: always === true });
|
|
11
|
-
return (_jsx("div", { ref: ref, "data-bl": "callbar", "data-variant": variant, "data-show": always ? 'always' : undefined, "data-state": shown ? 'shown' : 'hidden', inert: !shown, className: className, children: children }));
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=call-bar-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"call-bar-client.js","sourceRoot":"","sources":["../../../src/ui-kit/shell/call-bar-client.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,qHAAqH;AACrH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAkB,MAAM,OAAO,CAAA;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAA;AAE1E,MAAM,UAAU,iBAAiB,CAAC,EAChC,OAAO,EACP,MAAM,EACN,SAAS,EACT,QAAQ,GAMT;IACC,MAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACxC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAC9B,MAAM,KAAK,GAAG,gBAAgB,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,EAAE,CAAC,CAAA;IAC1E,OAAO,CACL,cACE,GAAG,EAAE,GAAG,aACA,SAAS,kBACH,OAAO,eACV,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gBAC5B,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EACtC,KAAK,EAAE,CAAC,KAAK,EACb,SAAS,EAAE,SAAS,YAEnB,QAAQ,GACL,CACP,CAAA;AACH,CAAC","sourcesContent":["'use client'\n\n/** The call bar's client leaf: shows and hides the server-rendered Call and quote buttons (F6 rules in the hook). */\nimport { usePathname } from 'next/navigation'\nimport { useRef, type ReactNode } from 'react'\nimport { useStickyCallBar } from '../../navigation/use-sticky-call-bar.js'\n\nexport function CallBarController({\n variant,\n always,\n className,\n children,\n}: {\n readonly variant: string\n readonly always?: boolean | undefined\n readonly className?: string | undefined\n readonly children: ReactNode\n}) {\n const ref = useRef<HTMLDivElement>(null)\n const pathname = usePathname()\n const shown = useStickyCallBar(ref, pathname, { always: always === true })\n return (\n <div\n ref={ref}\n data-bl=\"callbar\"\n data-variant={variant}\n data-show={always ? 'always' : undefined}\n data-state={shown ? 'shown' : 'hidden'}\n inert={!shown}\n className={className}\n >\n {children}\n </div>\n )\n}\n"]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import { type LinkPrefetch } from '../prefetch.js';
|
|
3
|
-
/** True when `href` is the current page. External links are never current. */
|
|
4
|
-
export declare function isCurrentPage(pathname: string, href: string): boolean;
|
|
5
|
-
/** True when the page is one of `paths` or below it (the home path matches only itself). */
|
|
6
|
-
export declare function isCurrentSection(pathname: string, paths: readonly string[]): boolean;
|
|
7
|
-
export declare function CurrentLink({ href, slot, hub, prefetch, className, children, }: {
|
|
8
|
-
readonly href: string;
|
|
9
|
-
readonly slot: string;
|
|
10
|
-
readonly hub?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* The link's prefetch role (`LINK_PREFETCH_POLICY`): `intent` for the top-level menu links, false for links in panels
|
|
13
|
-
* and the drawer (hidden panels count as in view and would prefetch every menu page). The current page is never
|
|
14
|
-
* prefetched, whatever this says.
|
|
15
|
-
*/
|
|
16
|
-
readonly prefetch?: LinkPrefetch | undefined;
|
|
17
|
-
readonly className?: string | undefined;
|
|
18
|
-
readonly children: ReactNode;
|
|
19
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
/**
|
|
21
|
-
* The header logo's home link. It never prefetches (3.15.0): the logo is in view on every page, so on landing it
|
|
22
|
-
* prefetched home from every page, and home itself on the home page. No `aria-current`: the logo is named by the
|
|
23
|
-
* brand, not as a menu item.
|
|
24
|
-
*/
|
|
25
|
-
export declare function LogoLink({ href, label, slot, className, children, }: {
|
|
26
|
-
readonly href: string;
|
|
27
|
-
readonly label: string;
|
|
28
|
-
readonly slot: string;
|
|
29
|
-
readonly className?: string | undefined;
|
|
30
|
-
readonly children: ReactNode;
|
|
31
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
/**
|
|
33
|
-
* A shell action's link (the quote button in the header, drawer and call bar): its role's prefetch, except that it
|
|
34
|
-
* never prefetches the page it is on (`/contact#quote` on `/contact`) or a place on the same page. The anchor's
|
|
35
|
-
* hooks and content come from the server component that renders it.
|
|
36
|
-
*/
|
|
37
|
-
export declare function PageLink({ href, prefetch, hooks, children, }: {
|
|
38
|
-
readonly href: string;
|
|
39
|
-
readonly prefetch?: LinkPrefetch | undefined;
|
|
40
|
-
readonly hooks: {
|
|
41
|
-
readonly className?: string | undefined;
|
|
42
|
-
} & Readonly<Record<`data-${string}`, string | undefined>>;
|
|
43
|
-
readonly children: ReactNode;
|
|
44
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
45
|
-
//# sourceMappingURL=current-link.d.ts.map
|