@brandlab-digital/site-next 3.20.0 → 4.1.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 (345) hide show
  1. package/README.md +24 -0
  2. package/dist/contact/client.d.ts +2 -0
  3. package/dist/contact/client.d.ts.map +1 -1
  4. package/dist/contact/client.js +6 -0
  5. package/dist/contact/client.js.map +1 -1
  6. package/dist/contact/form-client.d.ts.map +1 -1
  7. package/dist/contact/form-client.js +5 -1
  8. package/dist/contact/form-client.js.map +1 -1
  9. package/dist/contact/route-handler.d.ts +5 -0
  10. package/dist/contact/route-handler.d.ts.map +1 -1
  11. package/dist/contact/route-handler.js +1 -0
  12. package/dist/contact/route-handler.js.map +1 -1
  13. package/dist/contact/server-entry.d.ts +1 -0
  14. package/dist/contact/server-entry.d.ts.map +1 -1
  15. package/dist/contact/server-entry.js +1 -0
  16. package/dist/contact/server-entry.js.map +1 -1
  17. package/dist/contact/server.d.ts +8 -0
  18. package/dist/contact/server.d.ts.map +1 -1
  19. package/dist/contact/server.js +24 -0
  20. package/dist/contact/server.js.map +1 -1
  21. package/dist/contact/shared.d.ts +2 -0
  22. package/dist/contact/shared.d.ts.map +1 -1
  23. package/dist/contact/shared.js +2 -0
  24. package/dist/contact/shared.js.map +1 -1
  25. package/dist/contact/spam-filter.d.ts +65 -0
  26. package/dist/contact/spam-filter.d.ts.map +1 -0
  27. package/dist/contact/spam-filter.js +347 -0
  28. package/dist/contact/spam-filter.js.map +1 -0
  29. package/dist/contact/spam-places.d.ts +8 -0
  30. package/dist/contact/spam-places.d.ts.map +1 -0
  31. package/dist/contact/spam-places.js +8 -0
  32. package/dist/contact/spam-places.js.map +1 -0
  33. package/dist/instrumentation-client.d.ts +1 -1
  34. package/dist/instrumentation-client.js +1 -1
  35. package/dist/instrumentation-client.js.map +1 -1
  36. package/dist/navigation/index.d.ts +2 -3
  37. package/dist/navigation/index.d.ts.map +1 -1
  38. package/dist/navigation/index.js +2 -3
  39. package/dist/navigation/index.js.map +1 -1
  40. package/dist/next-config.d.ts +1 -17
  41. package/dist/next-config.d.ts.map +1 -1
  42. package/dist/next-config.js +2 -33
  43. package/dist/next-config.js.map +1 -1
  44. package/package.json +4 -33
  45. package/dist/ui-kit/brandlab-skin.d.ts +0 -112
  46. package/dist/ui-kit/brandlab-skin.d.ts.map +0 -1
  47. package/dist/ui-kit/brandlab-skin.js +0 -2
  48. package/dist/ui-kit/brandlab-skin.js.map +0 -1
  49. package/dist/ui-kit/form/copy.d.ts +0 -3
  50. package/dist/ui-kit/form/copy.d.ts.map +0 -1
  51. package/dist/ui-kit/form/copy.js +0 -5
  52. package/dist/ui-kit/form/copy.js.map +0 -1
  53. package/dist/ui-kit/form/dialog.d.ts +0 -24
  54. package/dist/ui-kit/form/dialog.d.ts.map +0 -1
  55. package/dist/ui-kit/form/dialog.js +0 -17
  56. package/dist/ui-kit/form/dialog.js.map +0 -1
  57. package/dist/ui-kit/form/field.d.ts +0 -30
  58. package/dist/ui-kit/form/field.d.ts.map +0 -1
  59. package/dist/ui-kit/form/field.js +0 -11
  60. package/dist/ui-kit/form/field.js.map +0 -1
  61. package/dist/ui-kit/form/index.d.ts +0 -7
  62. package/dist/ui-kit/form/index.d.ts.map +0 -1
  63. package/dist/ui-kit/form/index.js +0 -7
  64. package/dist/ui-kit/form/index.js.map +0 -1
  65. package/dist/ui-kit/form/photo-upload.d.ts +0 -40
  66. package/dist/ui-kit/form/photo-upload.d.ts.map +0 -1
  67. package/dist/ui-kit/form/photo-upload.js +0 -19
  68. package/dist/ui-kit/form/photo-upload.js.map +0 -1
  69. package/dist/ui-kit/form/quote-dialog.d.ts +0 -15
  70. package/dist/ui-kit/form/quote-dialog.d.ts.map +0 -1
  71. package/dist/ui-kit/form/quote-dialog.js +0 -68
  72. package/dist/ui-kit/form/quote-dialog.js.map +0 -1
  73. package/dist/ui-kit/form/quote-form.d.ts +0 -172
  74. package/dist/ui-kit/form/quote-form.d.ts.map +0 -1
  75. package/dist/ui-kit/form/quote-form.js +0 -238
  76. package/dist/ui-kit/form/quote-form.js.map +0 -1
  77. package/dist/ui-kit/form/thank-you.d.ts +0 -40
  78. package/dist/ui-kit/form/thank-you.d.ts.map +0 -1
  79. package/dist/ui-kit/form/thank-you.js +0 -36
  80. package/dist/ui-kit/form/thank-you.js.map +0 -1
  81. package/dist/ui-kit/icon-glyphs.d.ts +0 -41
  82. package/dist/ui-kit/icon-glyphs.d.ts.map +0 -1
  83. package/dist/ui-kit/icon-glyphs.js +0 -138
  84. package/dist/ui-kit/icon-glyphs.js.map +0 -1
  85. package/dist/ui-kit/icon-sprite.d.ts +0 -19
  86. package/dist/ui-kit/icon-sprite.d.ts.map +0 -1
  87. package/dist/ui-kit/icon-sprite.js +0 -44
  88. package/dist/ui-kit/icon-sprite.js.map +0 -1
  89. package/dist/ui-kit/icons.d.ts +0 -50
  90. package/dist/ui-kit/icons.d.ts.map +0 -1
  91. package/dist/ui-kit/icons.js +0 -55
  92. package/dist/ui-kit/icons.js.map +0 -1
  93. package/dist/ui-kit/prefetch.d.ts +0 -59
  94. package/dist/ui-kit/prefetch.d.ts.map +0 -1
  95. package/dist/ui-kit/prefetch.js +0 -63
  96. package/dist/ui-kit/prefetch.js.map +0 -1
  97. package/dist/ui-kit/primitives/badge.d.ts +0 -25
  98. package/dist/ui-kit/primitives/badge.d.ts.map +0 -1
  99. package/dist/ui-kit/primitives/badge.js +0 -21
  100. package/dist/ui-kit/primitives/badge.js.map +0 -1
  101. package/dist/ui-kit/primitives/breadcrumbs.d.ts +0 -27
  102. package/dist/ui-kit/primitives/breadcrumbs.d.ts.map +0 -1
  103. package/dist/ui-kit/primitives/breadcrumbs.js +0 -40
  104. package/dist/ui-kit/primitives/breadcrumbs.js.map +0 -1
  105. package/dist/ui-kit/primitives/button.d.ts +0 -32
  106. package/dist/ui-kit/primitives/button.d.ts.map +0 -1
  107. package/dist/ui-kit/primitives/button.js +0 -8
  108. package/dist/ui-kit/primitives/button.js.map +0 -1
  109. package/dist/ui-kit/primitives/card.d.ts +0 -40
  110. package/dist/ui-kit/primitives/card.d.ts.map +0 -1
  111. package/dist/ui-kit/primitives/card.js +0 -8
  112. package/dist/ui-kit/primitives/card.js.map +0 -1
  113. package/dist/ui-kit/primitives/index.d.ts +0 -16
  114. package/dist/ui-kit/primitives/index.d.ts.map +0 -1
  115. package/dist/ui-kit/primitives/index.js +0 -16
  116. package/dist/ui-kit/primitives/index.js.map +0 -1
  117. package/dist/ui-kit/primitives/layout.d.ts +0 -85
  118. package/dist/ui-kit/primitives/layout.d.ts.map +0 -1
  119. package/dist/ui-kit/primitives/layout.js +0 -52
  120. package/dist/ui-kit/primitives/layout.js.map +0 -1
  121. package/dist/ui-kit/primitives/links.d.ts +0 -74
  122. package/dist/ui-kit/primitives/links.d.ts.map +0 -1
  123. package/dist/ui-kit/primitives/links.js +0 -41
  124. package/dist/ui-kit/primitives/links.js.map +0 -1
  125. package/dist/ui-kit/primitives/lists.d.ts +0 -51
  126. package/dist/ui-kit/primitives/lists.d.ts.map +0 -1
  127. package/dist/ui-kit/primitives/lists.js +0 -34
  128. package/dist/ui-kit/primitives/lists.js.map +0 -1
  129. package/dist/ui-kit/primitives/media-frame.d.ts +0 -33
  130. package/dist/ui-kit/primitives/media-frame.d.ts.map +0 -1
  131. package/dist/ui-kit/primitives/media-frame.js +0 -61
  132. package/dist/ui-kit/primitives/media-frame.js.map +0 -1
  133. package/dist/ui-kit/primitives/media.d.ts +0 -40
  134. package/dist/ui-kit/primitives/media.d.ts.map +0 -1
  135. package/dist/ui-kit/primitives/media.js +0 -9
  136. package/dist/ui-kit/primitives/media.js.map +0 -1
  137. package/dist/ui-kit/primitives/quote-button.d.ts +0 -46
  138. package/dist/ui-kit/primitives/quote-button.d.ts.map +0 -1
  139. package/dist/ui-kit/primitives/quote-button.js +0 -38
  140. package/dist/ui-kit/primitives/quote-button.js.map +0 -1
  141. package/dist/ui-kit/primitives/stat.d.ts +0 -25
  142. package/dist/ui-kit/primitives/stat.d.ts.map +0 -1
  143. package/dist/ui-kit/primitives/stat.js +0 -7
  144. package/dist/ui-kit/primitives/stat.js.map +0 -1
  145. package/dist/ui-kit/repeated-slots.d.ts +0 -153
  146. package/dist/ui-kit/repeated-slots.d.ts.map +0 -1
  147. package/dist/ui-kit/repeated-slots.js +0 -100
  148. package/dist/ui-kit/repeated-slots.js.map +0 -1
  149. package/dist/ui-kit/sections/accordion.d.ts +0 -28
  150. package/dist/ui-kit/sections/accordion.d.ts.map +0 -1
  151. package/dist/ui-kit/sections/accordion.js +0 -14
  152. package/dist/ui-kit/sections/accordion.js.map +0 -1
  153. package/dist/ui-kit/sections/area-map.d.ts +0 -64
  154. package/dist/ui-kit/sections/area-map.d.ts.map +0 -1
  155. package/dist/ui-kit/sections/area-map.js +0 -146
  156. package/dist/ui-kit/sections/area-map.js.map +0 -1
  157. package/dist/ui-kit/sections/before-after.d.ts +0 -59
  158. package/dist/ui-kit/sections/before-after.d.ts.map +0 -1
  159. package/dist/ui-kit/sections/before-after.js +0 -42
  160. package/dist/ui-kit/sections/before-after.js.map +0 -1
  161. package/dist/ui-kit/sections/contact-block.d.ts +0 -77
  162. package/dist/ui-kit/sections/contact-block.d.ts.map +0 -1
  163. package/dist/ui-kit/sections/contact-block.js +0 -23
  164. package/dist/ui-kit/sections/contact-block.js.map +0 -1
  165. package/dist/ui-kit/sections/council-rules.d.ts +0 -64
  166. package/dist/ui-kit/sections/council-rules.d.ts.map +0 -1
  167. package/dist/ui-kit/sections/council-rules.js +0 -46
  168. package/dist/ui-kit/sections/council-rules.js.map +0 -1
  169. package/dist/ui-kit/sections/coverage.d.ts +0 -53
  170. package/dist/ui-kit/sections/coverage.d.ts.map +0 -1
  171. package/dist/ui-kit/sections/coverage.js +0 -57
  172. package/dist/ui-kit/sections/coverage.js.map +0 -1
  173. package/dist/ui-kit/sections/cta-band.d.ts +0 -67
  174. package/dist/ui-kit/sections/cta-band.d.ts.map +0 -1
  175. package/dist/ui-kit/sections/cta-band.js +0 -11
  176. package/dist/ui-kit/sections/cta-band.js.map +0 -1
  177. package/dist/ui-kit/sections/emergency-band.d.ts +0 -60
  178. package/dist/ui-kit/sections/emergency-band.d.ts.map +0 -1
  179. package/dist/ui-kit/sections/emergency-band.js +0 -43
  180. package/dist/ui-kit/sections/emergency-band.js.map +0 -1
  181. package/dist/ui-kit/sections/faqs.d.ts +0 -46
  182. package/dist/ui-kit/sections/faqs.d.ts.map +0 -1
  183. package/dist/ui-kit/sections/faqs.js +0 -39
  184. package/dist/ui-kit/sections/faqs.js.map +0 -1
  185. package/dist/ui-kit/sections/gallery.d.ts +0 -60
  186. package/dist/ui-kit/sections/gallery.d.ts.map +0 -1
  187. package/dist/ui-kit/sections/gallery.js +0 -39
  188. package/dist/ui-kit/sections/gallery.js.map +0 -1
  189. package/dist/ui-kit/sections/hero.d.ts +0 -168
  190. package/dist/ui-kit/sections/hero.d.ts.map +0 -1
  191. package/dist/ui-kit/sections/hero.js +0 -147
  192. package/dist/ui-kit/sections/hero.js.map +0 -1
  193. package/dist/ui-kit/sections/index.d.ts +0 -29
  194. package/dist/ui-kit/sections/index.d.ts.map +0 -1
  195. package/dist/ui-kit/sections/index.js +0 -29
  196. package/dist/ui-kit/sections/index.js.map +0 -1
  197. package/dist/ui-kit/sections/licences.d.ts +0 -95
  198. package/dist/ui-kit/sections/licences.d.ts.map +0 -1
  199. package/dist/ui-kit/sections/licences.js +0 -72
  200. package/dist/ui-kit/sections/licences.js.map +0 -1
  201. package/dist/ui-kit/sections/local-facts.d.ts +0 -107
  202. package/dist/ui-kit/sections/local-facts.d.ts.map +0 -1
  203. package/dist/ui-kit/sections/local-facts.js +0 -44
  204. package/dist/ui-kit/sections/local-facts.js.map +0 -1
  205. package/dist/ui-kit/sections/nearby-areas.d.ts +0 -50
  206. package/dist/ui-kit/sections/nearby-areas.d.ts.map +0 -1
  207. package/dist/ui-kit/sections/nearby-areas.js +0 -49
  208. package/dist/ui-kit/sections/nearby-areas.js.map +0 -1
  209. package/dist/ui-kit/sections/nearby-jobs.d.ts +0 -84
  210. package/dist/ui-kit/sections/nearby-jobs.d.ts.map +0 -1
  211. package/dist/ui-kit/sections/nearby-jobs.js +0 -72
  212. package/dist/ui-kit/sections/nearby-jobs.js.map +0 -1
  213. package/dist/ui-kit/sections/page-header.d.ts +0 -29
  214. package/dist/ui-kit/sections/page-header.d.ts.map +0 -1
  215. package/dist/ui-kit/sections/page-header.js +0 -9
  216. package/dist/ui-kit/sections/page-header.js.map +0 -1
  217. package/dist/ui-kit/sections/price-guide.d.ts +0 -59
  218. package/dist/ui-kit/sections/price-guide.d.ts.map +0 -1
  219. package/dist/ui-kit/sections/price-guide.js +0 -28
  220. package/dist/ui-kit/sections/price-guide.js.map +0 -1
  221. package/dist/ui-kit/sections/price-table.d.ts +0 -42
  222. package/dist/ui-kit/sections/price-table.d.ts.map +0 -1
  223. package/dist/ui-kit/sections/price-table.js +0 -29
  224. package/dist/ui-kit/sections/price-table.js.map +0 -1
  225. package/dist/ui-kit/sections/projects.d.ts +0 -79
  226. package/dist/ui-kit/sections/projects.d.ts.map +0 -1
  227. package/dist/ui-kit/sections/projects.js +0 -69
  228. package/dist/ui-kit/sections/projects.js.map +0 -1
  229. package/dist/ui-kit/sections/proof-strip.d.ts +0 -68
  230. package/dist/ui-kit/sections/proof-strip.d.ts.map +0 -1
  231. package/dist/ui-kit/sections/proof-strip.js +0 -27
  232. package/dist/ui-kit/sections/proof-strip.js.map +0 -1
  233. package/dist/ui-kit/sections/quote-checklist.d.ts +0 -43
  234. package/dist/ui-kit/sections/quote-checklist.d.ts.map +0 -1
  235. package/dist/ui-kit/sections/quote-checklist.js +0 -19
  236. package/dist/ui-kit/sections/quote-checklist.js.map +0 -1
  237. package/dist/ui-kit/sections/rating-chip.d.ts +0 -35
  238. package/dist/ui-kit/sections/rating-chip.d.ts.map +0 -1
  239. package/dist/ui-kit/sections/rating-chip.js +0 -21
  240. package/dist/ui-kit/sections/rating-chip.js.map +0 -1
  241. package/dist/ui-kit/sections/related-services.d.ts +0 -41
  242. package/dist/ui-kit/sections/related-services.d.ts.map +0 -1
  243. package/dist/ui-kit/sections/related-services.js +0 -52
  244. package/dist/ui-kit/sections/related-services.js.map +0 -1
  245. package/dist/ui-kit/sections/reviews-band.d.ts +0 -124
  246. package/dist/ui-kit/sections/reviews-band.d.ts.map +0 -1
  247. package/dist/ui-kit/sections/reviews-band.js +0 -115
  248. package/dist/ui-kit/sections/reviews-band.js.map +0 -1
  249. package/dist/ui-kit/sections/section-sequence.d.ts +0 -41
  250. package/dist/ui-kit/sections/section-sequence.d.ts.map +0 -1
  251. package/dist/ui-kit/sections/section-sequence.js +0 -36
  252. package/dist/ui-kit/sections/section-sequence.js.map +0 -1
  253. package/dist/ui-kit/sections/services-grid.d.ts +0 -82
  254. package/dist/ui-kit/sections/services-grid.d.ts.map +0 -1
  255. package/dist/ui-kit/sections/services-grid.js +0 -90
  256. package/dist/ui-kit/sections/services-grid.js.map +0 -1
  257. package/dist/ui-kit/sections/signature-section.d.ts +0 -42
  258. package/dist/ui-kit/sections/signature-section.d.ts.map +0 -1
  259. package/dist/ui-kit/sections/signature-section.js +0 -14
  260. package/dist/ui-kit/sections/signature-section.js.map +0 -1
  261. package/dist/ui-kit/sections/site-footer-columns.d.ts +0 -12
  262. package/dist/ui-kit/sections/site-footer-columns.d.ts.map +0 -1
  263. package/dist/ui-kit/sections/site-footer-columns.js +0 -63
  264. package/dist/ui-kit/sections/site-footer-columns.js.map +0 -1
  265. package/dist/ui-kit/sections/site-footer.d.ts +0 -66
  266. package/dist/ui-kit/sections/site-footer.d.ts.map +0 -1
  267. package/dist/ui-kit/sections/site-footer.js +0 -49
  268. package/dist/ui-kit/sections/site-footer.js.map +0 -1
  269. package/dist/ui-kit/sections/work-photos.d.ts +0 -15
  270. package/dist/ui-kit/sections/work-photos.d.ts.map +0 -1
  271. package/dist/ui-kit/sections/work-photos.js +0 -24
  272. package/dist/ui-kit/sections/work-photos.js.map +0 -1
  273. package/dist/ui-kit/shell/back-to-top-client.d.ts +0 -9
  274. package/dist/ui-kit/shell/back-to-top-client.d.ts.map +0 -1
  275. package/dist/ui-kit/shell/back-to-top-client.js +0 -8
  276. package/dist/ui-kit/shell/back-to-top-client.js.map +0 -1
  277. package/dist/ui-kit/shell/back-to-top.d.ts +0 -13
  278. package/dist/ui-kit/shell/back-to-top.d.ts.map +0 -1
  279. package/dist/ui-kit/shell/back-to-top.js +0 -14
  280. package/dist/ui-kit/shell/back-to-top.js.map +0 -1
  281. package/dist/ui-kit/shell/call-bar-client.d.ts +0 -8
  282. package/dist/ui-kit/shell/call-bar-client.d.ts.map +0 -1
  283. package/dist/ui-kit/shell/call-bar-client.js +0 -13
  284. package/dist/ui-kit/shell/call-bar-client.js.map +0 -1
  285. package/dist/ui-kit/shell/current-link.d.ts +0 -45
  286. package/dist/ui-kit/shell/current-link.d.ts.map +0 -1
  287. package/dist/ui-kit/shell/current-link.js +0 -54
  288. package/dist/ui-kit/shell/current-link.js.map +0 -1
  289. package/dist/ui-kit/shell/drawer-client.d.ts +0 -22
  290. package/dist/ui-kit/shell/drawer-client.d.ts.map +0 -1
  291. package/dist/ui-kit/shell/drawer-client.js +0 -70
  292. package/dist/ui-kit/shell/drawer-client.js.map +0 -1
  293. package/dist/ui-kit/shell/header-client.d.ts +0 -44
  294. package/dist/ui-kit/shell/header-client.d.ts.map +0 -1
  295. package/dist/ui-kit/shell/header-client.js +0 -59
  296. package/dist/ui-kit/shell/header-client.js.map +0 -1
  297. package/dist/ui-kit/shell/index.d.ts +0 -7
  298. package/dist/ui-kit/shell/index.d.ts.map +0 -1
  299. package/dist/ui-kit/shell/index.js +0 -7
  300. package/dist/ui-kit/shell/index.js.map +0 -1
  301. package/dist/ui-kit/shell/intent-prefetch.d.ts +0 -4
  302. package/dist/ui-kit/shell/intent-prefetch.d.ts.map +0 -1
  303. package/dist/ui-kit/shell/intent-prefetch.js +0 -62
  304. package/dist/ui-kit/shell/intent-prefetch.js.map +0 -1
  305. package/dist/ui-kit/shell/mobile-call-bar.d.ts +0 -25
  306. package/dist/ui-kit/shell/mobile-call-bar.d.ts.map +0 -1
  307. package/dist/ui-kit/shell/mobile-call-bar.js +0 -21
  308. package/dist/ui-kit/shell/mobile-call-bar.js.map +0 -1
  309. package/dist/ui-kit/shell/mobile-drawer.d.ts +0 -41
  310. package/dist/ui-kit/shell/mobile-drawer.d.ts.map +0 -1
  311. package/dist/ui-kit/shell/mobile-drawer.js +0 -41
  312. package/dist/ui-kit/shell/mobile-drawer.js.map +0 -1
  313. package/dist/ui-kit/shell/shell-context.d.ts +0 -3
  314. package/dist/ui-kit/shell/shell-context.d.ts.map +0 -1
  315. package/dist/ui-kit/shell/shell-context.js +0 -5
  316. package/dist/ui-kit/shell/shell-context.js.map +0 -1
  317. package/dist/ui-kit/shell/shell-quote.d.ts +0 -10
  318. package/dist/ui-kit/shell/shell-quote.d.ts.map +0 -1
  319. package/dist/ui-kit/shell/shell-quote.js +0 -13
  320. package/dist/ui-kit/shell/shell-quote.js.map +0 -1
  321. package/dist/ui-kit/shell/site-header.d.ts +0 -55
  322. package/dist/ui-kit/shell/site-header.d.ts.map +0 -1
  323. package/dist/ui-kit/shell/site-header.js +0 -35
  324. package/dist/ui-kit/shell/site-header.js.map +0 -1
  325. package/dist/ui-kit/shell/social-links.d.ts +0 -7
  326. package/dist/ui-kit/shell/social-links.d.ts.map +0 -1
  327. package/dist/ui-kit/shell/social-links.js +0 -12
  328. package/dist/ui-kit/shell/social-links.js.map +0 -1
  329. package/dist/ui-kit/shell/utility-bar.d.ts +0 -33
  330. package/dist/ui-kit/shell/utility-bar.d.ts.map +0 -1
  331. package/dist/ui-kit/shell/utility-bar.js +0 -15
  332. package/dist/ui-kit/shell/utility-bar.js.map +0 -1
  333. package/dist/ui-kit/skin-index.d.ts +0 -4
  334. package/dist/ui-kit/skin-index.d.ts.map +0 -1
  335. package/dist/ui-kit/skin-index.js +0 -3
  336. package/dist/ui-kit/skin-index.js.map +0 -1
  337. package/dist/ui-kit/skin.d.ts +0 -65
  338. package/dist/ui-kit/skin.d.ts.map +0 -1
  339. package/dist/ui-kit/skin.js +0 -60
  340. package/dist/ui-kit/skin.js.map +0 -1
  341. package/dist/ui-kit/structure.css +0 -2546
  342. package/dist/ui-kit/types.d.ts +0 -27
  343. package/dist/ui-kit/types.d.ts.map +0 -1
  344. package/dist/ui-kit/types.js +0 -6
  345. package/dist/ui-kit/types.js.map +0 -1
@@ -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,IAAI,GAAG,GAAG,CAAC,OAAO,CAAA;QACxB,MAAM,MAAM,GAAG,IAAI,EAAE,OAAO,CAAc,oBAAoB,CAAC,CAAA;QAC/D,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM;YAAE,OAAM;QAC5B,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAc,sBAAsB,CAAC,CAAC,CAAA;QACtF,IAAI,MAAM,GAAG,KAAK,CAAA;QAClB,IAAI,IAAI,GAAuB,IAAI,CAAA;QAEnC,MAAM,MAAM,GAAG,GAAG,EAAE;YAClB,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;YACvC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;gBAC7B,MAAM,QAAQ,GAAG,MAAM,IAAI,MAAM,KAAK,IAAI,CAAA;gBAC1C,MAAM,MAAM,GA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AAG,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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EAAuE;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"}
@@ -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,QAAQ,CAAC,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,YACtF,IAAI,CAAC,KAAK,GACT,CACL,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,KAAM,YAAY,CAAC,QAAQ,CAAC,YAC/D,IAAI,CAAC,KAAK,GACN,CACR,CAAA;AACH,CAAC;AAED,SAAS,WAAW;IAClB,OAAO,MAAM,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,EA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BAAO,MAAM,CAAC,OAAO,GAAQ,EAC7B,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,GAAG,IAChB,IACN,EACL,aAAI,EAAE,EAAE,MAAM,KAAM,YAAY,CAAC,MAAM,CAAC,YACrC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC1B,uBACE,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAC,MAAM,GAAG,IADnC,IAAI,CAAC,IAAI,CAEb,CACN,CAAC,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 * `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
@@ -1 +0,0 @@
1
- {"version":3,"file":"current-link.d.ts","sourceRoot":"","sources":["../../../src/ui-kit/shell/current-link.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAqC,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAOrF,8EAA8E;AAC9E,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,WAG3D;AAED,4FAA4F;AAC5F,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,WAO1E;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,IAAI,EACJ,GAAW,EACX,QAAQ,EACR,SAAS,EACT,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAA;IACtB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IAC5C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,2CAeA;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,SAAS,EACT,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,2CAMA;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IAC5C,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,MAAM,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IACpH,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,2CAQA"}
@@ -1,54 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- /**
4
- * A menu link that marks itself `aria-current="page"` on its own page. A client leaf only because the root layout
5
- * can't read the route: it receives one href and its server-rendered label, and renders in the server HTML with the
6
- * right state. The current page is never prefetched (W2), so a link to it renders `prefetch={false}` whatever its role.
7
- */
8
- import Link from 'next/link';
9
- import { usePathname } from 'next/navigation';
10
- import { isSamePageHref, linkPrefetchProps } from '../prefetch.js';
11
- function normalisePath(path) {
12
- const bare = path.split(/[?#]/, 1)[0] ?? '';
13
- return bare.replace(/\/+$/, '') || '/';
14
- }
15
- /** True when `href` is the current page. External links are never current. */
16
- export function isCurrentPage(pathname, href) {
17
- if (!href.startsWith('/') || href.startsWith('//'))
18
- return false;
19
- return normalisePath(pathname) === normalisePath(href);
20
- }
21
- /** True when the page is one of `paths` or below it (the home path matches only itself). */
22
- export function isCurrentSection(pathname, paths) {
23
- const current = normalisePath(pathname);
24
- return paths.some((path) => {
25
- if (!path.startsWith('/') || path.startsWith('//'))
26
- return false;
27
- const section = normalisePath(path);
28
- return current === section || (section !== '/' && current.startsWith(`${section}/`));
29
- });
30
- }
31
- export function CurrentLink({ href, slot, hub = false, prefetch, className, children, }) {
32
- const pathname = usePathname();
33
- const current = isCurrentPage(pathname, href);
34
- return (_jsx(Link, { href: href, ...(current ? { prefetch: false } : linkPrefetchProps(prefetch, href)), "data-slot": slot, "data-hub": hub ? 'true' : undefined, "aria-current": current ? 'page' : undefined, className: className, children: children }));
35
- }
36
- /**
37
- * The header logo's home link. It never prefetches (3.15.0): the logo is in view on every page, so on landing it
38
- * prefetched home from every page, and home itself on the home page. No `aria-current`: the logo is named by the
39
- * brand, not as a menu item.
40
- */
41
- export function LogoLink({ href, label, slot, className, children, }) {
42
- return (_jsx(Link, { href: href, prefetch: false, "aria-label": label, "data-slot": slot, className: className, children: children }));
43
- }
44
- /**
45
- * A shell action's link (the quote button in the header, drawer and call bar): its role's prefetch, except that it
46
- * never prefetches the page it is on (`/contact#quote` on `/contact`) or a place on the same page. The anchor's
47
- * hooks and content come from the server component that renders it.
48
- */
49
- export function PageLink({ href, prefetch, hooks, children, }) {
50
- const pathname = usePathname();
51
- const current = isSamePageHref(href) || isCurrentPage(pathname, href);
52
- return (_jsx(Link, { href: href, ...(current ? { prefetch: false } : linkPrefetchProps(prefetch)), ...hooks, children: children }));
53
- }
54
- //# sourceMappingURL=current-link.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"current-link.js","sourceRoot":"","sources":["../../../src/ui-kit/shell/current-link.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ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AC,QAAQ,CAAC,CAAC,KAAM,KAAK,YACpG,QAAQ,GACJ,CACR,CAAA;AACH,CAAC","sourcesContent":["'use client'\n\n/**\n * A menu link that marks itself `aria-current=\"page\"` on its own page. A client leaf only because the root layout\n * can't read the route: it receives one href and its server-rendered label, and renders in the server HTML with the\n * right state. The current page is never prefetched (W2), so a link to it renders `prefetch={false}` whatever its role.\n */\nimport Link from 'next/link'\nimport { usePathname } from 'next/navigation'\nimport type { ReactNode } from 'react'\nimport { isSamePageHref, linkPrefetchProps, type LinkPrefetch } from '../prefetch.js'\n\nfunction normalisePath(path: string) {\n const bare = path.split(/[?#]/, 1)[0] ?? ''\n return bare.replace(/\\/+$/, '') || '/'\n}\n\n/** True when `href` is the current page. External links are never current. */\nexport function isCurrentPage(pathname: string, href: string) {\n if (!href.startsWith('/') || href.startsWith('//')) return false\n return normalisePath(pathname) === normalisePath(href)\n}\n\n/** True when the page is one of `paths` or below it (the home path matches only itself). */\nexport function isCurrentSection(pathname: string, paths: readonly string[]) {\n const current = normalisePath(pathname)\n return paths.some((path) => {\n if (!path.startsWith('/') || path.startsWith('//')) return false\n const section = normalisePath(path)\n return current === section || (section !== '/' && current.startsWith(`${section}/`))\n })\n}\n\nexport function CurrentLink({\n href,\n slot,\n hub = false,\n prefetch,\n className,\n children,\n}: {\n readonly href: string\n readonly slot: string\n readonly hub?: boolean\n /**\n * The link's prefetch role (`LINK_PREFETCH_POLICY`): `intent` for the top-level menu links, false for links in panels\n * and the drawer (hidden panels count as in view and would prefetch every menu page). The current page is never\n * prefetched, whatever this says.\n */\n readonly prefetch?: LinkPrefetch | undefined\n readonly className?: string | undefined\n readonly children: ReactNode\n}) {\n const pathname = usePathname()\n const current = isCurrentPage(pathname, href)\n return (\n <Link\n href={href}\n {...(current ? { prefetch: false as const } : linkPrefetchProps(prefetch, href))}\n data-slot={slot}\n data-hub={hub ? 'true' : undefined}\n aria-current={current ? 'page' : undefined}\n className={className}\n >\n {children}\n </Link>\n )\n}\n\n/**\n * The header logo's home link. It never prefetches (3.15.0): the logo is in view on every page, so on landing it\n * prefetched home from every page, and home itself on the home page. No `aria-current`: the logo is named by the\n * brand, not as a menu item.\n */\nexport function LogoLink({\n href,\n label,\n slot,\n className,\n children,\n}: {\n readonly href: string\n readonly label: string\n readonly slot: string\n readonly className?: string | undefined\n readonly children: ReactNode\n}) {\n return (\n <Link href={href} prefetch={false} aria-label={label} data-slot={slot} className={className}>\n {children}\n </Link>\n )\n}\n\n/**\n * A shell action's link (the quote button in the header, drawer and call bar): its role's prefetch, except that it\n * never prefetches the page it is on (`/contact#quote` on `/contact`) or a place on the same page. The anchor's\n * hooks and content come from the server component that renders it.\n */\nexport function PageLink({\n href,\n prefetch,\n hooks,\n children,\n}: {\n readonly href: string\n readonly prefetch?: LinkPrefetch | undefined\n readonly hooks: { readonly className?: string | undefined } & Readonly<Record<`data-${string}`, string | undefined>>\n readonly children: ReactNode\n}) {\n const pathname = usePathname()\n const current = isSamePageHref(href) || isCurrentPage(pathname, href)\n return (\n <Link href={href} {...(current ? { prefetch: false as const } : linkPrefetchProps(prefetch))} {...hooks}>\n {children}\n </Link>\n )\n}\n"]}
@@ -1,22 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- export interface DrawerControllerClasses {
3
- readonly root?: string | undefined;
4
- readonly menuButton?: string | undefined;
5
- readonly menuLabel?: string | undefined;
6
- readonly panel?: string | undefined;
7
- readonly top?: string | undefined;
8
- readonly close?: string | undefined;
9
- readonly title?: string | undefined;
10
- readonly logo?: string | undefined;
11
- }
12
- export declare function DrawerController({ id, variant, side, classes, logo, menuIcon, closeIcon, children, }: {
13
- readonly id: string;
14
- readonly variant: string;
15
- readonly side: string;
16
- readonly classes: DrawerControllerClasses;
17
- readonly logo?: ReactNode;
18
- readonly menuIcon: ReactNode;
19
- readonly closeIcon: ReactNode;
20
- readonly children: ReactNode;
21
- }): import("react/jsx-runtime").JSX.Element;
22
- //# sourceMappingURL=drawer-client.d.ts.map
@@ -1 +0,0 @@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