@brandlab-digital/site-next 3.16.0 → 3.17.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.
Files changed (33) hide show
  1. package/dist/ui-kit/repeated-slots.d.ts +3 -3
  2. package/dist/ui-kit/repeated-slots.d.ts.map +1 -1
  3. package/dist/ui-kit/repeated-slots.js +6 -3
  4. package/dist/ui-kit/repeated-slots.js.map +1 -1
  5. package/dist/ui-kit/sections/area-map.d.ts.map +1 -1
  6. package/dist/ui-kit/sections/area-map.js +8 -4
  7. package/dist/ui-kit/sections/area-map.js.map +1 -1
  8. package/dist/ui-kit/sections/contact-block.d.ts +24 -2
  9. package/dist/ui-kit/sections/contact-block.d.ts.map +1 -1
  10. package/dist/ui-kit/sections/contact-block.js +9 -3
  11. package/dist/ui-kit/sections/contact-block.js.map +1 -1
  12. package/dist/ui-kit/sections/hero.d.ts +7 -3
  13. package/dist/ui-kit/sections/hero.d.ts.map +1 -1
  14. package/dist/ui-kit/sections/hero.js +10 -4
  15. package/dist/ui-kit/sections/hero.js.map +1 -1
  16. package/dist/ui-kit/sections/local-facts.d.ts +33 -4
  17. package/dist/ui-kit/sections/local-facts.d.ts.map +1 -1
  18. package/dist/ui-kit/sections/local-facts.js +18 -6
  19. package/dist/ui-kit/sections/local-facts.js.map +1 -1
  20. package/dist/ui-kit/sections/nearby-jobs.d.ts +20 -2
  21. package/dist/ui-kit/sections/nearby-jobs.d.ts.map +1 -1
  22. package/dist/ui-kit/sections/nearby-jobs.js +23 -6
  23. package/dist/ui-kit/sections/nearby-jobs.js.map +1 -1
  24. package/dist/ui-kit/sections/proof-strip.d.ts +3 -1
  25. package/dist/ui-kit/sections/proof-strip.d.ts.map +1 -1
  26. package/dist/ui-kit/sections/proof-strip.js +5 -2
  27. package/dist/ui-kit/sections/proof-strip.js.map +1 -1
  28. package/dist/ui-kit/sections/site-footer.d.ts +6 -2
  29. package/dist/ui-kit/sections/site-footer.d.ts.map +1 -1
  30. package/dist/ui-kit/sections/site-footer.js +7 -2
  31. package/dist/ui-kit/sections/site-footer.js.map +1 -1
  32. package/dist/ui-kit/structure.css +170 -25
  33. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { SECTION_READY } from '@brandlab-digital/site-core/section-order';
3
3
  import { Icon } from '../icons.js';
4
4
  import { Anchor } from '../primitives/links.js';
@@ -15,9 +15,12 @@ export function proofStripReady({ items, logos }) {
15
15
  export function ProofStrip({ title, items, logos, headingId = 'proof-heading', tone, variant = 'inline', layout, classes }) {
16
16
  if (!proofStripReady({ items, logos }).render)
17
17
  return null;
18
+ const unlinked = items.find((item) => item.linkLabel && !item.href);
19
+ if (unlinked)
20
+ throw new Error(`ProofStrip: "${unlinked.id}" has a link label but no href.`);
18
21
  const hidden = (layout?.heading ?? 'hidden') === 'hidden';
19
22
  return (_jsxs(Section, { id: "proof-strip", labelledBy: headingId, tone: tone, variant: variant, classes: classes, children: [_jsx("h2", { id: headingId, ...slot(classes, 'heading'), "data-bl-visually-hidden": hidden ? '' : undefined, children: title }), items.length > 0 ? (_jsx("ul", { role: "list", ...slot(classes, 'list'), children: items.map((item) => {
20
- const content = (_jsxs(_Fragment, { children: [item.icon ? (_jsx("span", { ...repeatedSlot('icon'), children: _jsx(Icon, { name: item.icon }) })) : null, item.rating !== undefined ? (_jsx("span", { ...repeatedSlot('stars'), "aria-hidden": "true", children: _jsx(RatingStars, { rating: item.rating }) })) : null, item.rating !== undefined ? (_jsx("span", { ...repeatedSlot('value'), children: item.rating.toFixed(1) })) : item.value ? (_jsx("span", { ...repeatedSlot('value'), children: item.value })) : null, ' ', _jsx("span", { ...repeatedSlot('label'), children: item.label })] }));
23
+ const content = (_jsxs(_Fragment, { children: [item.icon ? (_jsx("span", { ...repeatedSlot('icon'), children: _jsx(Icon, { name: item.icon }) })) : null, item.rating !== undefined ? (_jsx("span", { ...repeatedSlot('stars'), "aria-hidden": "true", children: _jsx(RatingStars, { rating: item.rating }) })) : null, item.rating !== undefined ? (_jsx("span", { ...repeatedSlot('value'), children: item.rating.toFixed(1) })) : item.value ? (_jsx("span", { ...repeatedSlot('value'), children: item.value })) : null, ' ', _jsx("span", { ...repeatedSlot('label'), children: item.label }), item.href && item.linkLabel ? (_jsxs("span", { ...repeatedSlot('linkLabel'), children: [' ', item.linkLabel, _jsx(Icon, { name: "arrow" })] })) : null] }));
21
24
  return (_jsx("li", { ...repeatedSlot('item'), "data-item": item.id, "data-bl-source": item.rating !== undefined ? 'feed' : undefined, children: item.href ? (_jsx(Anchor, { href: item.href, prefetch: false, hooks: repeatedSlot('link'), children: content })) : (content) }, item.id));
22
25
  }) })) : null, logos ? _jsx("div", { ...slot(classes, 'logos'), children: logos }) : null] }));
23
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"proof-strip.js","sourceRoot":"","sources":["../../../src/ui-kit/sections/proof-strip.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,aAAa,EAAiC,MAAM,2CAA2C,CAAA;AACxG,OAAO,EAAE,IAAI,EAAmB,MAAM,aAAa,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAsC,MAAM,yBAAyB,CAAA;AAElG,OAAO,EAAE,YAAY,EAAE,IAAI,EAAkB,MAAM,YAAY,CAAA;AAE/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAA;AAQhE,0FAA0F;AAC1F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAA;AAwCpC,4GAA4G;AAC5G,MAAM,UAAU,eAAe,CAAC,EAAE,KAAK,EAAE,KAAK,EAA4C;IACxF,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,K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AACH,CAAC","sourcesContent":["/**\n * `ProofStrip` (S3, `proof-strip`): the business's verified strengths straight after the hero: the live rating from\n * the feed, licence lines, insurance, years trading and partner logos. Server component. It takes items that are\n * already verified (`verified` or `legacy-carried` facts, T4); it never counts up or hides text before scripts run.\n * With fewer than three items it renders nothing and reports `merge-into-hero-checklist`: the facts belong in the\n * hero's checklist instead (v1 §7.2).\n *\n * 3.16.0: an item with `href` links its value and label to where the fact can be checked (the reviews, the licence\n * register, the about page), never prefetched; external links open in a new tab. The `tiles` variant sets each value\n * as a large figure (`--bl-proof-figure-size`) over its label, as AA's home strip does.\n */\nimport type { ReactNode } from 'react'\nimport { SECTION_READY, type BrandlabSectionReadiness } from '@brandlab-digital/site-core/section-order'\nimport { Icon, type UiIconName } from '../icons.js'\nimport { Anchor } from '../primitives/links.js'\nimport { RatingStars, Section, type SectionSlot, type SectionTone } from '../primitives/layout.js'\nimport type { RepeatedSlotOf } from '../repeated-slots.js'\nimport { repeatedSlot, slot, type SkinEntry } from '../skin.js'\n\nexport const PROOF_STRIP_VARIANTS = ['inline', 'tiles'] as const\nexport type ProofStripVariant = (typeof PROOF_STRIP_VARIANTS)[number]\nexport type ProofStripSlot = SectionSlot | 'heading' | 'list' | 'item' | 'link' | 'icon' | 'stars' | 'value' | 'label' | 'logos'\n/** `heading`: the section's H2 is visually hidden by default; a skin may show it. */\n/** Rendered once per proof item: styled from the skin stylesheet, never by class (3.14.0). */\nexport type ProofStripRepeatedSlot = RepeatedSlotOf<'proofStrip'>\nexport type ProofStripSkin = SkinEntry<ProofStripSlot, ProofStripVariant, { heading?: 'hidden' | 'visible' }, ProofStripRepeatedSlot>\n\n/** The fewest items a strip shows; below this the facts merge into the hero checklist. */\nexport const PROOF_STRIP_MINIMUM = 3\n\ninterface ProofItemBase {\n /** A stable slug, rendered as `data-item`. */\n readonly id: string\n readonly label: string\n readonly icon?: UiIconName\n /** Where the fact can be checked (3.16.0), for example `/reviews` or the licence register. */\n readonly href?: string\n}\n\n/** One verified fact, for example `{ id: 'licence', value: '276621C', label: 'NSW contractor licence' }`. */\nexport interface ProofFactItem extends ProofItemBase {\n readonly value?: string\n readonly rating?: never\n}\n\n/**\n * The live rating from the reviews feed (F9), never typed by hand (T4). Its value is the rating itself (\"4.9\"), with\n * the stars beside it, and the item is marked `data-bl-source=\"feed\"`, as the reviews band marks its root.\n */\nexport interface ProofRatingItem extends ProofItemBase {\n readonly rating: number\n readonly value?: never\n}\n\nexport type ProofItem = ProofFactItem | ProofRatingItem\n\nexport interface ProofStripProps extends ProofStripSkin {\n /** The H2, for example \"Why homeowners choose Omega\". Visually hidden unless the skin shows it. */\n readonly title: string\n readonly items: readonly ProofItem[]\n /** Partner logos (a `LogoStrip` of verified relationships). Counts as one item. */\n readonly logos?: ReactNode\n /** Defaults to `proof-heading`. */\n readonly headingId?: string\n /** Set by `SectionSequence`. */\n readonly tone?: SectionTone\n}\n\n/** Whether the strip renders: at least three items, logos counting as one (`merge-into-hero-checklist`). */\nexport function proofStripReady({ items, logos }: Pick<ProofStripProps, 'items' | 'logos'>): BrandlabSectionReadiness {\n const count = items.length + (logos ? 1 : 0)\n return count >= PROOF_STRIP_MINIMUM ? SECTION_READY : { render: false, reason: 'merge-into-hero-checklist' }\n}\n\nexport function ProofStrip({ title, items, logos, headingId = 'proof-heading', tone, variant = 'inline', layout, classes }: ProofStripProps) {\n if (!proofStripReady({ items, logos }).render) return null\n const hidden = (layout?.heading ?? 'hidden') === 'hidden'\n return (\n <Section id=\"proof-strip\" labelledBy={headingId} tone={tone} variant={variant} classes={classes}>\n <h2 id={headingId} {...slot(classes, 'heading')} data-bl-visually-hidden={hidden ? '' : undefined}>\n {title}\n </h2>\n {items.length > 0 ? (\n <ul role=\"list\" {...slot(classes, 'list')}>\n {items.map((item) => {\n const content = (\n <>\n {item.icon ? (\n <span {...repeatedSlot('icon')}>\n <Icon name={item.icon} />\n </span>\n ) : null}\n {item.rating !== undefined ? (\n <span {...repeatedSlot('stars')} aria-hidden=\"true\">\n <RatingStars rating={item.rating} />\n </span>\n ) : null}\n {item.rating !== undefined ? (\n <span {...repeatedSlot('value')}>{item.rating.toFixed(1)}</span>\n ) : item.value ? (\n <span {...repeatedSlot('value')}>{item.value}</span>\n ) : null}{' '}\n <span {...repeatedSlot('label')}>{item.label}</span>\n </>\n )\n return (\n <li key={item.id} {...repeatedSlot('item')} data-item={item.id} data-bl-source={item.rating !== undefined ? 'feed' : undefined}>\n {item.href ? (\n <Anchor href={item.href} prefetch={false} hooks={repeatedSlot('link')}>\n {content}\n </Anchor>\n ) : (\n content\n )}\n </li>\n )\n })}\n </ul>\n ) : null}\n {logos ? <div {...slot(classes, 'logos')}>{logos}</div> : null}\n </Section>\n )\n}\n"]}
1
+ {"version":3,"file":"proof-strip.js","sourceRoot":"","sources":["../../../src/ui-kit/sections/proof-strip.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,aAAa,EAAiC,MAAM,2CAA2C,CAAA;AACxG,OAAO,EAAE,IAAI,EAAmB,MAAM,aAAa,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAsC,MAAM,yBAAyB,CAAA;AAElG,OAAO,EAAE,YAAY,EAAE,IAAI,EAAkB,MAAM,YAAY,CAAA;AAE/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAA;AAQhE,0FAA0F;AAC1F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAA;AA0CpC,4GAA4G;AAC5G,MAAM,UAAU,eAAe,CAAC,EAAE,KAAK,EAAE,KAAK,EAA4C;IACxF,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5C,OAAO,KAAK,IAAI,mBAAmB,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC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AE,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,YAClE,OAAO,GACD,CACV,CAAC,CAAC,CAAC,CACF,OAAO,CACR,IAPM,IAAI,CAAC,EAAE,CAQX,CACN,CAAA;gBACH,CAAC,CAAC,GACC,CACN,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,CAAC,CAAC,iBAAS,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,YAAG,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,IACtD,CACX,CAAA;AACH,CAAC","sourcesContent":["/**\n * `ProofStrip` (S3, `proof-strip`): the business's verified strengths straight after the hero: the live rating from\n * the feed, licence lines, insurance, years trading and partner logos. Server component. It takes items that are\n * already verified (`verified` or `legacy-carried` facts, T4); it never counts up or hides text before scripts run.\n * With fewer than three items it renders nothing and reports `merge-into-hero-checklist`: the facts belong in the\n * hero's checklist instead (v1 §7.2).\n *\n * 3.16.0: an item with `href` links its value and label to where the fact can be checked (the reviews, the licence\n * register, the about page), never prefetched; external links open in a new tab. The `tiles` variant sets each value\n * as a large figure (`--bl-proof-figure-size`) over its label, as AA's home strip does.\n */\nimport type { ReactNode } from 'react'\nimport { SECTION_READY, type BrandlabSectionReadiness } from '@brandlab-digital/site-core/section-order'\nimport { Icon, type UiIconName } from '../icons.js'\nimport { Anchor } from '../primitives/links.js'\nimport { RatingStars, Section, type SectionSlot, type SectionTone } from '../primitives/layout.js'\nimport type { RepeatedSlotOf } from '../repeated-slots.js'\nimport { repeatedSlot, slot, type SkinEntry } from '../skin.js'\n\nexport const PROOF_STRIP_VARIANTS = ['inline', 'tiles'] as const\nexport type ProofStripVariant = (typeof PROOF_STRIP_VARIANTS)[number]\nexport type ProofStripSlot = SectionSlot | 'heading' | 'list' | 'item' | 'link' | 'icon' | 'stars' | 'value' | 'label' | 'linkLabel' | 'logos'\n/** `heading`: the section's H2 is visually hidden by default; a skin may show it. */\n/** Rendered once per proof item: styled from the skin stylesheet, never by class (3.14.0). */\nexport type ProofStripRepeatedSlot = RepeatedSlotOf<'proofStrip'>\nexport type ProofStripSkin = SkinEntry<ProofStripSlot, ProofStripVariant, { heading?: 'hidden' | 'visible' }, ProofStripRepeatedSlot>\n\n/** The fewest items a strip shows; below this the facts merge into the hero checklist. */\nexport const PROOF_STRIP_MINIMUM = 3\n\ninterface ProofItemBase {\n /** A stable slug, rendered as `data-item`. */\n readonly id: string\n readonly label: string\n readonly icon?: UiIconName\n /** Where the fact can be checked (3.16.0), for example `/reviews` or the licence register. */\n readonly href?: string\n /** A visible cue under the label when `href` is set (3.17.0), for example \"Read reviews\". An arrow follows it. */\n readonly linkLabel?: string\n}\n\n/** One verified fact, for example `{ id: 'licence', value: '276621C', label: 'NSW contractor licence' }`. */\nexport interface ProofFactItem extends ProofItemBase {\n readonly value?: string\n readonly rating?: never\n}\n\n/**\n * The live rating from the reviews feed (F9), never typed by hand (T4). Its value is the rating itself (\"4.9\"), with\n * the stars beside it, and the item is marked `data-bl-source=\"feed\"`, as the reviews band marks its root.\n */\nexport interface ProofRatingItem extends ProofItemBase {\n readonly rating: number\n readonly value?: never\n}\n\nexport type ProofItem = ProofFactItem | ProofRatingItem\n\nexport interface ProofStripProps extends ProofStripSkin {\n /** The H2, for example \"Why homeowners choose Omega\". Visually hidden unless the skin shows it. */\n readonly title: string\n readonly items: readonly ProofItem[]\n /** Partner logos (a `LogoStrip` of verified relationships). Counts as one item. */\n readonly logos?: ReactNode\n /** Defaults to `proof-heading`. */\n readonly headingId?: string\n /** Set by `SectionSequence`. */\n readonly tone?: SectionTone\n}\n\n/** Whether the strip renders: at least three items, logos counting as one (`merge-into-hero-checklist`). */\nexport function proofStripReady({ items, logos }: Pick<ProofStripProps, 'items' | 'logos'>): BrandlabSectionReadiness {\n const count = items.length + (logos ? 1 : 0)\n return count >= PROOF_STRIP_MINIMUM ? SECTION_READY : { render: false, reason: 'merge-into-hero-checklist' }\n}\n\nexport function ProofStrip({ title, items, logos, headingId = 'proof-heading', tone, variant = 'inline', layout, classes }: ProofStripProps) {\n if (!proofStripReady({ items, logos }).render) return null\n const unlinked = items.find((item) => item.linkLabel && !item.href)\n if (unlinked) throw new Error(`ProofStrip: \"${unlinked.id}\" has a link label but no href.`)\n const hidden = (layout?.heading ?? 'hidden') === 'hidden'\n return (\n <Section id=\"proof-strip\" labelledBy={headingId} tone={tone} variant={variant} classes={classes}>\n <h2 id={headingId} {...slot(classes, 'heading')} data-bl-visually-hidden={hidden ? '' : undefined}>\n {title}\n </h2>\n {items.length > 0 ? (\n <ul role=\"list\" {...slot(classes, 'list')}>\n {items.map((item) => {\n const content = (\n <>\n {item.icon ? (\n <span {...repeatedSlot('icon')}>\n <Icon name={item.icon} />\n </span>\n ) : null}\n {item.rating !== undefined ? (\n <span {...repeatedSlot('stars')} aria-hidden=\"true\">\n <RatingStars rating={item.rating} />\n </span>\n ) : null}\n {item.rating !== undefined ? (\n <span {...repeatedSlot('value')}>{item.rating.toFixed(1)}</span>\n ) : item.value ? (\n <span {...repeatedSlot('value')}>{item.value}</span>\n ) : null}{' '}\n <span {...repeatedSlot('label')}>{item.label}</span>\n {item.href && item.linkLabel ? (\n <span {...repeatedSlot('linkLabel')}>\n {' '}\n {item.linkLabel}\n <Icon name=\"arrow\" />\n </span>\n ) : null}\n </>\n )\n return (\n <li key={item.id} {...repeatedSlot('item')} data-item={item.id} data-bl-source={item.rating !== undefined ? 'feed' : undefined}>\n {item.href ? (\n <Anchor href={item.href} prefetch={false} hooks={repeatedSlot('link')}>\n {content}\n </Anchor>\n ) : (\n content\n )}\n </li>\n )\n })}\n </ul>\n ) : null}\n {logos ? <div {...slot(classes, 'logos')}>{logos}</div> : null}\n </Section>\n )\n}\n"]}
@@ -7,7 +7,11 @@ export type SiteFooterVariant = (typeof SITE_FOOTER_VARIANTS)[number];
7
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
8
  /** Rendered once per licence, profile, column, link or policy: styled from the skin stylesheet, never by class (3.14.0). */
9
9
  export type SiteFooterRepeatedSlot = RepeatedSlotOf<'siteFooter'>;
10
- export type SiteFooterSkin = SkinEntry<SiteFooterSlot, SiteFooterVariant, Record<never, never>, SiteFooterRepeatedSlot>;
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>;
11
15
  /** One licence line: the text as the register shows it, and the register link when there is one. */
12
16
  export interface SiteFooterLicence {
13
17
  readonly text: string;
@@ -58,5 +62,5 @@ export interface SiteFooterProps extends SiteFooterSkin {
58
62
  /** Prefix for the column list ids (default `bl-footer`). */
59
63
  readonly idPrefix?: string;
60
64
  }
61
- export declare function SiteFooter({ brandName, homeHref, logo, description, licences, socials, phone, phoneLabel, email, address, columns, legal, media, decoration, idPrefix, variant, classes, }: SiteFooterProps): import("react/jsx-runtime").JSX.Element;
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;
62
66
  //# sourceMappingURL=site-footer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"site-footer.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/sections/site-footer.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,Y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B,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,OAAO,GACR,EAAE,eAAe,2CA4GjB"}
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,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAA;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG5D,eAAO,MAAM,oBAAoB,+BAAgC,CAAA;AACjE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAA;AAErE,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,GACN,aAAa,GACb,UAAU,GACV,aAAa,GACb,QAAQ,GACR,YAAY,GACZ,SAAS,GACT,OAAO,GACP,YAAY,GACZ,aAAa,GACb,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,OAAO,GACP,UAAU,GACV,YAAY,CAAA;AAEhB,4HAA4H;AAC5H,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,YAAY,CAAC,CAAA;AACjE,MAAM,WAAW,gBAAgB;IAC/B,0GAA0G;IAC1G,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CACpC;AACD,MAAM,MAAM,cAA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ACd,iCAAiC;QACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;QACrB,8CAA8C;QAC9C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;QACtB,qDAAqD;QACrD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;QACzB,4CAA4C;QAC5C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KACxB,CAAA;IACD,uEAAuE;IACvE,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,6CAA6C;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"}
@@ -9,6 +9,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
9
9
  * ABN · the privacy and terms links. Never a quote button, "based in", opening hours, a guides column or a "back to
10
10
  * top" text link: the props have no place for them.
11
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
+ *
12
15
  * Variants: `columns`; `photo`, with the site's backdrop image for the panel in `media` (decorative, `aria-hidden`),
13
16
  * for example Superior's sunlit water. Signature art goes in `decoration`.
14
17
  *
@@ -31,9 +34,11 @@ function FooterLink({ link, slotName }) {
31
34
  function currentYear() {
32
35
  return Number(new Intl.DateTimeFormat('en-AU', { year: 'numeric', timeZone: 'Australia/Sydney' }).format(new Date()));
33
36
  }
34
- export function SiteFooter({ brandName, homeHref = '/', logo, description, licences = [], socials = [], phone, phoneLabel, email, address, columns, legal, media, decoration, idPrefix = 'bl-footer', variant = 'columns', classes, }) {
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, }) {
35
38
  const policies = [legal.privacy, legal.terms].filter((link) => !!link);
36
- return (_jsxs("footer", { "data-bl": "footer", "data-variant": variant, 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: [_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, _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] })] }), _jsx(SiteFooterColumns, { className: classes?.columns, children: COLUMN_KEYS.map((key) => {
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) => {
37
42
  const column = columns[key];
38
43
  if (!column || column.links.length === 0)
39
44
  return null;
@@ -1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,GACC,KAdG,GAAG,CAeP,CACP,CAAA;gCACH,CAAC,CAAC,GACgB,IAChB,IACF,EACN,iBAAS,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,YAC9B,kBAAS,IAAI,CAAC,OAAO,EAAE,aAAa,CAAC,aACnC,gBAAO,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,wBACxB,KAAK,CAAC,IAAI,IAAI,WAAW,EAAE,OAAG,KAAK,CAAC,IAAI,EAC1C,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CACX,8BACE,8BAAkB,MAAM,yBAAW,EACnC,mCAAW,KAAK,CAAC,GAAG,IAAQ,IAC3B,CACJ,CAAC,CAAC,CAAC,IAAI,IACN,EACH,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACrB,gBAAQ,IAAI,CAAC,OAAO,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 * 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 type SiteFooterSkin = SkinEntry<SiteFooterSlot, SiteFooterVariant, Record<never, never>, 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 classes,\n}: SiteFooterProps) {\n const policies = [legal.privacy, legal.terms].filter((link): link is UiLink => !!link)\n return (\n <footer data-bl=\"footer\" data-variant={variant} 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 <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 <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 </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
+ {"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,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,CAAC,CACrB,gBAAQ,IAAI,CAAC,OAAO,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"]}
@@ -312,40 +312,46 @@
312
312
  }
313
313
 
314
314
  /* 07-motif.css */
315
- /* 3.16.0 brand motif tokens: a client's own marks, available to every section. Each default draws nothing, and none
316
- overrides a property a skin sets, so a site opts in by setting the token:
317
- --bl-motif-rule-display: block a short rule above each section H2 (size, weight, colour, gap tokens below);
318
- --bl-motif-dash-display: inline-block a dash before each eyebrow;
315
+ /* 3.16.0 brand motif tokens: a client's own marks, available to every section. Each draws nothing until the site
316
+ sets it, and none touches a property a skin already sets (3.16.1: the two marks drawn before a heading or eyebrow
317
+ are switched on with `on`, through a style query, so a site's own ::before mark is left alone; a browser without
318
+ style queries simply draws no motif):
319
+ --bl-motif-rule: on a short rule above each section H2 (-size, -weight, -color, -gap tokens below);
320
+ --bl-motif-dash: on a dash before each eyebrow (-size, -weight, -color, -gap);
319
321
  --bl-motif-divider: 2px solid … a border between neighbouring sections;
320
322
  --bl-motif-texture: url(…) a background image on the page's band;
321
323
  --bl-motif-media-clip: polygon(…) a corner shape for section photos. */
322
324
 
323
- [data-bl-section] h2[data-slot='heading']::before {
324
- content: '';
325
- display: var(--bl-motif-rule-display, none);
326
- inline-size: var(--bl-motif-rule-size, 3rem);
327
- block-size: var(--bl-motif-rule-weight, 3px);
328
- margin-block-end: var(--bl-motif-rule-gap, 0.75rem);
329
- background: var(--bl-motif-rule-color, currentColor);
330
- }
331
- [data-bl-section] [data-slot='eyebrow']::before,
332
- [data-bl='eyebrow']::before {
333
- content: '';
334
- display: var(--bl-motif-dash-display, none);
335
- inline-size: var(--bl-motif-dash-size, 1.5rem);
336
- block-size: var(--bl-motif-dash-weight, 2px);
337
- margin-inline-end: var(--bl-motif-dash-gap, 0.5rem);
338
- vertical-align: middle;
339
- background: var(--bl-motif-dash-color, currentColor);
325
+ @container style(--bl-motif-rule: on) {
326
+ [data-bl-section] h2[data-slot='heading']::before {
327
+ content: '';
328
+ display: block;
329
+ inline-size: var(--bl-motif-rule-size, 3rem);
330
+ block-size: var(--bl-motif-rule-weight, 3px);
331
+ margin-block-end: var(--bl-motif-rule-gap, 0.75rem);
332
+ background: var(--bl-motif-rule-color, currentColor);
333
+ }
334
+ }
335
+ @container style(--bl-motif-dash: on) {
336
+ [data-bl-section] [data-slot='eyebrow']::before,
337
+ [data-bl='eyebrow']::before {
338
+ content: '';
339
+ display: inline-block;
340
+ inline-size: var(--bl-motif-dash-size, 1.5rem);
341
+ block-size: var(--bl-motif-dash-weight, 2px);
342
+ margin-inline-end: var(--bl-motif-dash-gap, 0.5rem);
343
+ vertical-align: middle;
344
+ background: var(--bl-motif-dash-color, currentColor);
345
+ }
340
346
  }
341
347
  [data-bl-section] + [data-bl-section] {
342
- border-block-start: var(--bl-motif-divider, none);
348
+ border-block-start: var(--bl-motif-divider);
343
349
  }
344
350
  [data-bl-section][data-tone='band'] {
345
- background-image: var(--bl-motif-texture, none);
351
+ background-image: var(--bl-motif-texture);
346
352
  }
347
353
  [data-bl-section] [data-bl='media'] {
348
- clip-path: var(--bl-motif-media-clip, none);
354
+ clip-path: var(--bl-motif-media-clip);
349
355
  }
350
356
 
351
357
  /* 10-header.css */
@@ -1304,7 +1310,7 @@
1304
1310
  pointer-events: none;
1305
1311
  }
1306
1312
  [data-bl-section='hero'][data-variant='full-bleed'][data-scrim='column'] [data-slot='scrim'] {
1307
- inset-inline-end: var(--bl-hero-scrim-column-end, 40%);
1313
+ inset-inline-end: calc(100% - var(--bl-hero-scrim-column-width, 60%));
1308
1314
  }
1309
1315
  [data-bl-section='hero'][data-variant='full-bleed'] [data-slot='seal'] {
1310
1316
  inset-inline: auto 1.5rem;
@@ -1713,6 +1719,23 @@
1713
1719
  gap: 4rem;
1714
1720
  }
1715
1721
  }
1722
+ /* 3.17.0 contact tier: the phone, email and address in a full-width row at the top, the phone large. */
1723
+ [data-bl='footer'][data-contact='tier'] [data-slot='inner'] > [data-slot='contact'] {
1724
+ grid-column: 1 / -1;
1725
+ display: flex;
1726
+ flex-wrap: wrap;
1727
+ align-items: center;
1728
+ gap: 0.5rem 2rem;
1729
+ padding-block-end: 2rem;
1730
+ border-block-end: 1px solid color-mix(in srgb, currentColor 20%, transparent);
1731
+ }
1732
+ [data-bl='footer'][data-contact='tier'] [data-slot='inner'] > [data-slot='contact'] [data-bl='phone-link'] {
1733
+ font-size: var(--bl-footer-tier-phone-size, clamp(1.5rem, 1.1rem + 2vw, 2.25rem));
1734
+ font-family: var(--bl-font-display, inherit);
1735
+ }
1736
+ [data-bl='footer'][data-contact='tier'] [data-slot='inner'] > [data-slot='contact'] > p {
1737
+ margin: 0;
1738
+ }
1716
1739
 
1717
1740
  /* 33-faqs.css */
1718
1741
  /* Accordion and FAQs: native <details name> disclosures (one open at a time); two columns from 48rem of the section. */
@@ -1866,6 +1889,21 @@
1866
1889
  [data-bl-section='proof-strip'] [data-slot='logos'] {
1867
1890
  margin-top: 1.5rem;
1868
1891
  }
1892
+ /* 3.17.0: a linked item's cue under its label, an arrow after it. */
1893
+ [data-bl-section='proof-strip'] [data-slot='linkLabel'] {
1894
+ display: inline-flex;
1895
+ align-items: center;
1896
+ gap: 0.25em;
1897
+ font-weight: 600;
1898
+ }
1899
+ /* The inline strip's row wraps it to a line of its own; the tiles' column already puts it under the label. */
1900
+ [data-bl-section='proof-strip']:not([data-variant='tiles']) [data-slot='linkLabel'] {
1901
+ flex-basis: 100%;
1902
+ }
1903
+ [data-bl-section='proof-strip'] [data-slot='linkLabel'] svg {
1904
+ width: 1em;
1905
+ height: 1em;
1906
+ }
1869
1907
 
1870
1908
  /* 36-page-header.css */
1871
1909
  /* Page header. The photo variant puts the site's image and its scrim behind the text, edge to edge. */
@@ -1920,6 +1958,34 @@
1920
1958
  }
1921
1959
  }
1922
1960
 
1961
+ /* 3.17.0: the form heading, notes, links and reply line. */
1962
+ [data-bl-section='contact'] [data-slot='formHead'] {
1963
+ margin-block-end: 1.25rem;
1964
+ }
1965
+ [data-bl-section='contact'] [data-slot='formHead'] > * {
1966
+ margin: 0;
1967
+ }
1968
+ [data-bl-section='contact'] [data-slot='formHead'] > * + * {
1969
+ margin-block-start: 0.375rem;
1970
+ }
1971
+ [data-bl-section='contact'] [data-slot='note'] {
1972
+ display: block;
1973
+ }
1974
+ [data-bl-section='contact'] [data-slot='links'] {
1975
+ margin: 0 0 1rem;
1976
+ padding: 0;
1977
+ list-style: none;
1978
+ display: grid;
1979
+ gap: 0.5rem;
1980
+ }
1981
+ [data-bl-section='contact'] [data-slot='links'] a {
1982
+ display: inline-block;
1983
+ padding-block: 0.25rem;
1984
+ }
1985
+ [data-bl-section='contact'] [data-slot='reply'] {
1986
+ margin: 0;
1987
+ }
1988
+
1923
1989
  /* 38-sequence.css */
1924
1990
  /* Section tones assigned by SectionSequence, from the site's tokens. The photo tone takes its look from its image. */
1925
1991
 
@@ -2124,6 +2190,85 @@
2124
2190
  margin: 0;
2125
2191
  }
2126
2192
 
2193
+ /* 3.17.0. Nearby jobs: a linked card follows its heading's link (the link's box covers the card), with a cue. */
2194
+ [data-bl-section='nearby-jobs'] [data-slot='list'] > [data-slot='item'][data-linked] {
2195
+ position: relative;
2196
+ }
2197
+ [data-bl-section='nearby-jobs'] [data-slot='item'][data-linked] [data-slot='title'] > a::after {
2198
+ content: '';
2199
+ position: absolute;
2200
+ inset: 0;
2201
+ }
2202
+ [data-bl-section='nearby-jobs'] [data-slot='item'] [data-slot='cue'] {
2203
+ display: inline-block;
2204
+ margin-block-start: auto;
2205
+ font-weight: 600;
2206
+ }
2207
+ [data-bl-section='nearby-jobs'] [data-slot='item'] > [data-slot='body'] {
2208
+ display: flex;
2209
+ flex-direction: column;
2210
+ gap: 0.5rem;
2211
+ flex: 1;
2212
+ }
2213
+ [data-bl-section='nearby-jobs'] [data-slot='footer'],
2214
+ [data-bl-section='nearby-jobs'] [data-slot='more'] {
2215
+ margin: 1.25rem 0 0;
2216
+ }
2217
+ /* Feature: one tall card beside two stacked. */
2218
+ @container bl-nearby-jobs (min-width: 1024px) {
2219
+ [data-bl-section='nearby-jobs'][data-arrangement='feature'] [data-slot='list'] {
2220
+ grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
2221
+ grid-template-rows: auto auto;
2222
+ }
2223
+ [data-bl-section='nearby-jobs'][data-arrangement='feature'] [data-slot='list'] > [data-slot='item']:first-child {
2224
+ grid-row: 1 / span 2;
2225
+ }
2226
+ [data-bl-section='nearby-jobs'][data-arrangement='feature'] [data-slot='list'] > [data-slot='item']:not(:first-child) {
2227
+ flex-direction: row;
2228
+ align-items: start;
2229
+ }
2230
+ [data-bl-section='nearby-jobs'][data-arrangement='feature'] [data-slot='list'] > [data-slot='item']:not(:first-child) > [data-slot='media'] {
2231
+ flex: 0 0 45%;
2232
+ }
2233
+ }
2234
+
2235
+ /* 3.17.0. Local facts with a photo: the photo first on phones, beside the copy from 768 px. */
2236
+ [data-bl-section='local-facts'] {
2237
+ container: bl-local-facts / inline-size;
2238
+ }
2239
+ [data-bl-section='local-facts'] [data-slot='media'] {
2240
+ margin-block-end: 1.5rem;
2241
+ }
2242
+ [data-bl-section='local-facts'] [data-slot='checklist'],
2243
+ [data-bl-section='local-facts'] [data-slot='action'] {
2244
+ margin-block-start: 1.25rem;
2245
+ }
2246
+ @container bl-local-facts (min-width: 768px) {
2247
+ [data-bl-section='local-facts'][data-media-side] > [data-slot='inner'] {
2248
+ display: grid;
2249
+ grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
2250
+ column-gap: clamp(1.5rem, 4cqi, 3rem);
2251
+ align-items: start;
2252
+ }
2253
+ [data-bl-section='local-facts'][data-media-side] > [data-slot='inner'] > * {
2254
+ grid-column: 1;
2255
+ }
2256
+ [data-bl-section='local-facts'][data-media-side] > [data-slot='inner'] > [data-slot='media'] {
2257
+ grid-column: 2;
2258
+ grid-row: 1 / span 12;
2259
+ margin: 0;
2260
+ }
2261
+ [data-bl-section='local-facts'][data-media-side='start'] > [data-slot='inner'] {
2262
+ grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
2263
+ }
2264
+ [data-bl-section='local-facts'][data-media-side='start'] > [data-slot='inner'] > * {
2265
+ grid-column: 2;
2266
+ }
2267
+ [data-bl-section='local-facts'][data-media-side='start'] > [data-slot='inner'] > [data-slot='media'] {
2268
+ grid-column: 1;
2269
+ }
2270
+ }
2271
+
2127
2272
  /* 40-projects.css */
2128
2273
  /* Projects and Gallery (3.15.0): a grid of cards or photos, one column on phones, two from 640 px and the skin's
2129
2274
  columns from 1024 px of the section's own width. Lists styled without bullets carry role="list". */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brandlab-digital/site-next",
3
- "version": "3.16.0",
3
+ "version": "3.17.0",
4
4
  "license": "UNLICENSED",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  "typecheck": "tsc --noEmit -p tsconfig.json"
26
26
  },
27
27
  "dependencies": {
28
- "@brandlab-digital/site-core": "3.16.0",
28
+ "@brandlab-digital/site-core": "3.17.0",
29
29
  "browser-image-compression": "2.0.2",
30
30
  "pdf-lib": "1.17.1",
31
31
  "server-only": "0.0.1",