@brandlab-digital/site-next 3.8.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/instrumentation-client.d.ts +23 -4
- package/dist/instrumentation-client.d.ts.map +1 -1
- package/dist/instrumentation-client.js +65 -3
- package/dist/instrumentation-client.js.map +1 -1
- package/dist/navigation/constants.d.ts +25 -0
- package/dist/navigation/constants.d.ts.map +1 -0
- package/dist/navigation/constants.js +30 -0
- package/dist/navigation/constants.js.map +1 -0
- package/dist/navigation/index.d.ts +11 -0
- package/dist/navigation/index.d.ts.map +1 -0
- package/dist/navigation/index.js +11 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/navigation/use-back-to-top.d.ts +5 -0
- package/dist/navigation/use-back-to-top.d.ts.map +1 -0
- package/dist/navigation/use-back-to-top.js +32 -0
- package/dist/navigation/use-back-to-top.js.map +1 -0
- package/dist/navigation/use-header-metrics.d.ts +17 -0
- package/dist/navigation/use-header-metrics.d.ts.map +1 -0
- package/dist/navigation/use-header-metrics.js +52 -0
- package/dist/navigation/use-header-metrics.js.map +1 -0
- package/dist/navigation/use-navigation-menu.d.ts +39 -0
- package/dist/navigation/use-navigation-menu.d.ts.map +1 -0
- package/dist/navigation/use-navigation-menu.js +206 -0
- package/dist/navigation/use-navigation-menu.js.map +1 -0
- package/dist/navigation/use-sticky-call-bar.d.ts +15 -0
- package/dist/navigation/use-sticky-call-bar.d.ts.map +1 -0
- package/dist/navigation/use-sticky-call-bar.js +110 -0
- package/dist/navigation/use-sticky-call-bar.js.map +1 -0
- package/dist/ui-kit/brandlab-skin.d.ts +10 -0
- package/dist/ui-kit/brandlab-skin.d.ts.map +1 -1
- package/dist/ui-kit/brandlab-skin.js.map +1 -1
- package/dist/ui-kit/shell/back-to-top-client.d.ts +9 -0
- package/dist/ui-kit/shell/back-to-top-client.d.ts.map +1 -0
- package/dist/ui-kit/shell/back-to-top-client.js +8 -0
- package/dist/ui-kit/shell/back-to-top-client.js.map +1 -0
- package/dist/ui-kit/shell/back-to-top.d.ts +13 -0
- package/dist/ui-kit/shell/back-to-top.d.ts.map +1 -0
- package/dist/ui-kit/shell/back-to-top.js +14 -0
- package/dist/ui-kit/shell/back-to-top.js.map +1 -0
- package/dist/ui-kit/shell/call-bar-client.d.ts +7 -0
- package/dist/ui-kit/shell/call-bar-client.d.ts.map +1 -0
- package/dist/ui-kit/shell/call-bar-client.js +13 -0
- package/dist/ui-kit/shell/call-bar-client.js.map +1 -0
- package/dist/ui-kit/shell/current-link.d.ts +15 -0
- package/dist/ui-kit/shell/current-link.d.ts.map +1 -0
- package/dist/ui-kit/shell/current-link.js +34 -0
- package/dist/ui-kit/shell/current-link.js.map +1 -0
- package/dist/ui-kit/shell/drawer-client.d.ts +22 -0
- package/dist/ui-kit/shell/drawer-client.d.ts.map +1 -0
- package/dist/ui-kit/shell/drawer-client.js +70 -0
- package/dist/ui-kit/shell/drawer-client.js.map +1 -0
- package/dist/ui-kit/shell/header-client.d.ts +44 -0
- package/dist/ui-kit/shell/header-client.d.ts.map +1 -0
- package/dist/ui-kit/shell/header-client.js +59 -0
- package/dist/ui-kit/shell/header-client.js.map +1 -0
- package/dist/ui-kit/shell/index.d.ts +6 -0
- package/dist/ui-kit/shell/index.d.ts.map +1 -0
- package/dist/ui-kit/shell/index.js +6 -0
- package/dist/ui-kit/shell/index.js.map +1 -0
- package/dist/ui-kit/shell/mobile-call-bar.d.ts +16 -0
- package/dist/ui-kit/shell/mobile-call-bar.d.ts.map +1 -0
- package/dist/ui-kit/shell/mobile-call-bar.js +15 -0
- package/dist/ui-kit/shell/mobile-call-bar.js.map +1 -0
- package/dist/ui-kit/shell/mobile-drawer.d.ts +37 -0
- package/dist/ui-kit/shell/mobile-drawer.d.ts.map +1 -0
- package/dist/ui-kit/shell/mobile-drawer.js +25 -0
- package/dist/ui-kit/shell/mobile-drawer.js.map +1 -0
- package/dist/ui-kit/shell/shell-context.d.ts +3 -0
- package/dist/ui-kit/shell/shell-context.d.ts.map +1 -0
- package/dist/ui-kit/shell/shell-context.js +5 -0
- package/dist/ui-kit/shell/shell-context.js.map +1 -0
- package/dist/ui-kit/shell/site-header.d.ts +52 -0
- package/dist/ui-kit/shell/site-header.d.ts.map +1 -0
- package/dist/ui-kit/shell/site-header.js +36 -0
- package/dist/ui-kit/shell/site-header.js.map +1 -0
- package/dist/ui-kit/shell/social-links.d.ts +8 -0
- package/dist/ui-kit/shell/social-links.d.ts.map +1 -0
- package/dist/ui-kit/shell/social-links.js +9 -0
- package/dist/ui-kit/shell/social-links.js.map +1 -0
- package/dist/ui-kit/shell/utility-bar.d.ts +30 -0
- package/dist/ui-kit/shell/utility-bar.d.ts.map +1 -0
- package/dist/ui-kit/shell/utility-bar.js +15 -0
- package/dist/ui-kit/shell/utility-bar.js.map +1 -0
- package/dist/ui-kit/structure.css +594 -0
- package/package.json +10 -2
|
@@ -120,4 +120,598 @@
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
/* 10-header.css */
|
|
124
|
+
/*
|
|
125
|
+
* F2 header and F3 panels: sticky and solid, modes by the header's own width, panels always in the HTML. The drawer's
|
|
126
|
+
* dialog sits inside the header's actions, so header rules reach their parts by structure, never by a bare slot name.
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
:where([data-bl='header'], [data-bl='drawer'], [data-bl='utility']) :where(ul) {
|
|
130
|
+
list-style: none;
|
|
131
|
+
margin: 0;
|
|
132
|
+
padding: 0;
|
|
133
|
+
}
|
|
134
|
+
:where([data-bl='header'], [data-bl='drawer'], [data-bl='utility']) :where(p) {
|
|
135
|
+
margin: 0;
|
|
136
|
+
}
|
|
137
|
+
:where([data-bl='header'], [data-bl='drawer'], [data-bl='utility']) :where(a) {
|
|
138
|
+
color: inherit;
|
|
139
|
+
}
|
|
140
|
+
:where([data-bl='header'], [data-bl='drawer']) :where(button),
|
|
141
|
+
:where([data-bl='back-to-top']) {
|
|
142
|
+
font: inherit;
|
|
143
|
+
color: inherit;
|
|
144
|
+
letter-spacing: inherit;
|
|
145
|
+
text-transform: inherit;
|
|
146
|
+
background: none;
|
|
147
|
+
border: 0;
|
|
148
|
+
padding: 0;
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* F12: the skip link is the first focusable element, visible on focus. */
|
|
153
|
+
[data-bl='skip'] {
|
|
154
|
+
position: absolute;
|
|
155
|
+
inset-inline-start: 1rem;
|
|
156
|
+
top: 0.75rem;
|
|
157
|
+
z-index: 100;
|
|
158
|
+
translate: 0 -200%;
|
|
159
|
+
padding: 0.75rem 1rem;
|
|
160
|
+
background: var(--bl-color-canvas, Canvas);
|
|
161
|
+
color: var(--bl-color-ink, CanvasText);
|
|
162
|
+
}
|
|
163
|
+
[data-bl='skip']:focus {
|
|
164
|
+
translate: 0 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* The header never hides on scroll; its background is solid (a skin sets the colour, never transparency). */
|
|
168
|
+
[data-bl='header'] {
|
|
169
|
+
position: sticky;
|
|
170
|
+
top: 0;
|
|
171
|
+
z-index: 40;
|
|
172
|
+
container: bl-header / inline-size;
|
|
173
|
+
background: var(--bl-color-canvas, Canvas);
|
|
174
|
+
color: var(--bl-color-ink, CanvasText);
|
|
175
|
+
}
|
|
176
|
+
[data-bl='header'] > [data-slot='bar'] > [data-slot='inner'] {
|
|
177
|
+
display: flex;
|
|
178
|
+
align-items: center;
|
|
179
|
+
gap: 0.75rem;
|
|
180
|
+
max-width: var(--bl-container, 80rem);
|
|
181
|
+
min-height: var(--bl-header-bar-phone, 4rem);
|
|
182
|
+
margin-inline: auto;
|
|
183
|
+
padding-inline: var(--bl-gutter, 1.25rem);
|
|
184
|
+
}
|
|
185
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='logo'] {
|
|
186
|
+
display: inline-flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
flex-shrink: 0;
|
|
189
|
+
text-decoration: none;
|
|
190
|
+
}
|
|
191
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='logo'] :is(img, svg) {
|
|
192
|
+
display: block;
|
|
193
|
+
width: auto;
|
|
194
|
+
height: var(--bl-logo-h-phone, 40px);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* The menu: hidden below 1280 px (the drawer takes over). */
|
|
198
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='nav'] {
|
|
199
|
+
display: none;
|
|
200
|
+
flex: 1;
|
|
201
|
+
min-width: 0;
|
|
202
|
+
}
|
|
203
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='nav'] > [data-slot='list'] {
|
|
204
|
+
display: flex;
|
|
205
|
+
align-items: center;
|
|
206
|
+
justify-content: center;
|
|
207
|
+
gap: 0.125rem;
|
|
208
|
+
}
|
|
209
|
+
[data-bl='header'][data-nav-align='end'] [data-slot='inner'] > [data-slot='nav'] > [data-slot='list'] {
|
|
210
|
+
justify-content: flex-end;
|
|
211
|
+
}
|
|
212
|
+
[data-bl='header'] [data-slot='item'] {
|
|
213
|
+
position: relative;
|
|
214
|
+
}
|
|
215
|
+
[data-bl='header'] [data-slot='itemRow'] {
|
|
216
|
+
display: flex;
|
|
217
|
+
align-items: center;
|
|
218
|
+
}
|
|
219
|
+
[data-bl='header'] [data-slot='item'] [data-slot='link'] {
|
|
220
|
+
display: inline-flex;
|
|
221
|
+
align-items: center;
|
|
222
|
+
min-height: 40px;
|
|
223
|
+
white-space: nowrap;
|
|
224
|
+
text-decoration: none;
|
|
225
|
+
}
|
|
226
|
+
[data-bl='header'] [data-slot='trigger'] {
|
|
227
|
+
display: inline-flex;
|
|
228
|
+
align-items: center;
|
|
229
|
+
justify-content: center;
|
|
230
|
+
min-width: 24px;
|
|
231
|
+
min-height: 40px;
|
|
232
|
+
}
|
|
233
|
+
[data-bl='header'] [data-slot='trigger'] svg {
|
|
234
|
+
width: 1rem;
|
|
235
|
+
height: 1rem;
|
|
236
|
+
transition: rotate 150ms ease;
|
|
237
|
+
}
|
|
238
|
+
[data-bl='header'] [data-slot='trigger'][aria-expanded='true'] svg {
|
|
239
|
+
rotate: 180deg;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/*
|
|
243
|
+
* F3 panels: always in the server HTML. Closed panels are visibility: hidden (and inert once scripts run); before
|
|
244
|
+
* hydration, :hover and :focus-within open them. The offset gap is padding inside the panel's hover box, never a
|
|
245
|
+
* margin, so the pointer never crosses a dead gap. The 150 ms fade never decides hoverability: visibility flips at once.
|
|
246
|
+
*/
|
|
247
|
+
[data-bl='header'] [data-slot='item'] > [data-slot='panel'] {
|
|
248
|
+
position: absolute;
|
|
249
|
+
top: 100%;
|
|
250
|
+
left: 50%;
|
|
251
|
+
z-index: 50;
|
|
252
|
+
translate: -50% 0;
|
|
253
|
+
padding-top: var(--bl-panel-gap, 0.75rem);
|
|
254
|
+
visibility: hidden;
|
|
255
|
+
opacity: 0;
|
|
256
|
+
transition: opacity 150ms ease;
|
|
257
|
+
}
|
|
258
|
+
[data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-state='open'],
|
|
259
|
+
[data-bl='header']:not([data-hydrated='true']) [data-slot='item']:is(:hover, :focus-within) > [data-slot='panel'] {
|
|
260
|
+
visibility: visible;
|
|
261
|
+
opacity: 1;
|
|
262
|
+
}
|
|
263
|
+
[data-bl='header'] [data-slot='panelBody'] {
|
|
264
|
+
width: 22rem;
|
|
265
|
+
max-width: calc(100vw - 2 * var(--bl-gutter, 1.25rem));
|
|
266
|
+
background: var(--bl-color-canvas, Canvas);
|
|
267
|
+
color: var(--bl-color-ink, CanvasText);
|
|
268
|
+
}
|
|
269
|
+
[data-bl='header'] [data-slot='panelLink'] {
|
|
270
|
+
display: flex;
|
|
271
|
+
flex-wrap: wrap;
|
|
272
|
+
align-items: center;
|
|
273
|
+
justify-content: space-between;
|
|
274
|
+
gap: 0.15rem 0.75rem;
|
|
275
|
+
min-height: 40px;
|
|
276
|
+
text-decoration: none;
|
|
277
|
+
}
|
|
278
|
+
[data-bl='header'] [data-slot='panelLink'] svg {
|
|
279
|
+
width: 1rem;
|
|
280
|
+
height: 1rem;
|
|
281
|
+
}
|
|
282
|
+
[data-bl='header'] [data-slot='panelText'] {
|
|
283
|
+
flex-basis: 100%;
|
|
284
|
+
}
|
|
285
|
+
[data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-variant='columns'] [data-slot='panelBody'] {
|
|
286
|
+
display: grid;
|
|
287
|
+
grid-template-columns: repeat(var(--bl-panel-columns, 2), minmax(0, 1fr));
|
|
288
|
+
gap: 0 1.5rem;
|
|
289
|
+
width: 34rem;
|
|
290
|
+
}
|
|
291
|
+
[data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-variant='columns'][data-columns='3'] [data-slot='panelBody'] {
|
|
292
|
+
--bl-panel-columns: 3;
|
|
293
|
+
width: 46rem;
|
|
294
|
+
}
|
|
295
|
+
[data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-variant='columns'] [data-slot='panelBody'] > [data-slot='panelList']:first-child {
|
|
296
|
+
grid-column: 1 / -1;
|
|
297
|
+
}
|
|
298
|
+
/* A columns panel without groups balances its one list. */
|
|
299
|
+
[data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-variant='columns']:not([data-columns]) [data-slot='panelList'] {
|
|
300
|
+
columns: 2;
|
|
301
|
+
column-gap: 1.5rem;
|
|
302
|
+
}
|
|
303
|
+
[data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-variant='columns']:not([data-columns]) [data-slot='panelList'] > li {
|
|
304
|
+
break-inside: avoid;
|
|
305
|
+
}
|
|
306
|
+
[data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-variant='featured'] [data-slot='panelBody'] {
|
|
307
|
+
display: grid;
|
|
308
|
+
grid-template-columns: 15rem minmax(0, 1fr);
|
|
309
|
+
gap: 1.25rem;
|
|
310
|
+
width: 38rem;
|
|
311
|
+
}
|
|
312
|
+
[data-bl='header'] [data-slot='featured'] {
|
|
313
|
+
display: grid;
|
|
314
|
+
align-content: start;
|
|
315
|
+
gap: 0.4rem;
|
|
316
|
+
text-decoration: none;
|
|
317
|
+
}
|
|
318
|
+
[data-bl='header'] [data-slot='featuredMedia'] {
|
|
319
|
+
display: block;
|
|
320
|
+
overflow: hidden;
|
|
321
|
+
aspect-ratio: 4 / 3;
|
|
322
|
+
}
|
|
323
|
+
[data-bl='header'] [data-slot='featuredMedia'] img {
|
|
324
|
+
display: block;
|
|
325
|
+
width: 100%;
|
|
326
|
+
height: 100%;
|
|
327
|
+
object-fit: cover;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* Actions: phone (icon left, its label above the number), quote, Menu. Below 1024 px a 44 px call button and Menu. */
|
|
331
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] {
|
|
332
|
+
display: flex;
|
|
333
|
+
align-items: center;
|
|
334
|
+
gap: 0.5rem;
|
|
335
|
+
margin-inline-start: auto;
|
|
336
|
+
}
|
|
337
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] {
|
|
338
|
+
justify-content: center;
|
|
339
|
+
min-width: 44px;
|
|
340
|
+
min-height: 44px;
|
|
341
|
+
white-space: nowrap;
|
|
342
|
+
text-decoration: none;
|
|
343
|
+
}
|
|
344
|
+
[data-bl='header'][data-variant='standard'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] :is([data-slot='label'], [data-slot='number']),
|
|
345
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] [data-slot='label'],
|
|
346
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-slot='menuButton'] [data-slot='menuLabel'] {
|
|
347
|
+
position: absolute;
|
|
348
|
+
width: 1px;
|
|
349
|
+
height: 1px;
|
|
350
|
+
overflow: hidden;
|
|
351
|
+
clip-path: inset(50%);
|
|
352
|
+
white-space: nowrap;
|
|
353
|
+
}
|
|
354
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='quote-button'] {
|
|
355
|
+
display: none;
|
|
356
|
+
white-space: nowrap;
|
|
357
|
+
}
|
|
358
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-slot='menuButton'] {
|
|
359
|
+
display: inline-flex;
|
|
360
|
+
align-items: center;
|
|
361
|
+
justify-content: center;
|
|
362
|
+
gap: 0.4rem;
|
|
363
|
+
min-width: 44px;
|
|
364
|
+
min-height: 44px;
|
|
365
|
+
}
|
|
366
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > :is([data-bl='phone-link'], [data-bl='quote-button'], [data-slot='menuButton']) svg {
|
|
367
|
+
width: 1.25rem;
|
|
368
|
+
height: 1.25rem;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/* 1024 to 1279 px: the compact band. Logo, phone with its number, quote and Menu. */
|
|
372
|
+
@container bl-header (min-width: 1024px) {
|
|
373
|
+
[data-bl='header'] > [data-slot='bar'] > [data-slot='inner'] {
|
|
374
|
+
min-height: var(--bl-header-bar, 5rem);
|
|
375
|
+
gap: 1rem;
|
|
376
|
+
}
|
|
377
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='logo'] :is(img, svg) {
|
|
378
|
+
height: var(--bl-logo-h, 52px);
|
|
379
|
+
}
|
|
380
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] {
|
|
381
|
+
display: inline-grid;
|
|
382
|
+
grid-template-columns: auto auto;
|
|
383
|
+
column-gap: 0.6rem;
|
|
384
|
+
align-items: center;
|
|
385
|
+
justify-content: start;
|
|
386
|
+
text-align: start;
|
|
387
|
+
}
|
|
388
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] [data-slot='icon'] {
|
|
389
|
+
grid-row: span 2;
|
|
390
|
+
}
|
|
391
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] :is([data-slot='label'], [data-slot='number']),
|
|
392
|
+
[data-bl='header'][data-variant='standard'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] :is([data-slot='label'], [data-slot='number']),
|
|
393
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-slot='menuButton'] [data-slot='menuLabel'] {
|
|
394
|
+
position: static;
|
|
395
|
+
width: auto;
|
|
396
|
+
height: auto;
|
|
397
|
+
overflow: visible;
|
|
398
|
+
clip-path: none;
|
|
399
|
+
}
|
|
400
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] [data-slot='label'] {
|
|
401
|
+
grid-column: 2;
|
|
402
|
+
}
|
|
403
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] [data-slot='number'] {
|
|
404
|
+
grid-column: 2;
|
|
405
|
+
}
|
|
406
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='quote-button'] {
|
|
407
|
+
display: inline-flex;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/* 1280 px and up: the full menu. */
|
|
412
|
+
@container bl-header (min-width: 1280px) {
|
|
413
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='nav'] {
|
|
414
|
+
display: block;
|
|
415
|
+
}
|
|
416
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] {
|
|
417
|
+
margin-inline-start: 0;
|
|
418
|
+
}
|
|
419
|
+
[data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-slot='menuButton'] {
|
|
420
|
+
display: none;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/* 11-utility.css */
|
|
425
|
+
/* F5 utility bar: optional, above the header, scrolls away with the page; hidden below 768 px of its own width. */
|
|
426
|
+
|
|
427
|
+
[data-bl='utility'] {
|
|
428
|
+
container: bl-utility / inline-size;
|
|
429
|
+
}
|
|
430
|
+
[data-bl='utility'] > [data-slot='inner'] {
|
|
431
|
+
display: none;
|
|
432
|
+
}
|
|
433
|
+
@container bl-utility (min-width: 768px) {
|
|
434
|
+
[data-bl='utility'] > [data-slot='inner'] {
|
|
435
|
+
display: flex;
|
|
436
|
+
align-items: center;
|
|
437
|
+
justify-content: space-between;
|
|
438
|
+
gap: 1.5rem;
|
|
439
|
+
max-width: var(--bl-container, 80rem);
|
|
440
|
+
min-height: 2.25rem;
|
|
441
|
+
margin-inline: auto;
|
|
442
|
+
padding-inline: var(--bl-gutter, 1.25rem);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
[data-bl='utility'][data-reverse='true'] > [data-slot='inner'] {
|
|
446
|
+
flex-direction: row-reverse;
|
|
447
|
+
}
|
|
448
|
+
[data-bl='utility'] [data-slot='left'],
|
|
449
|
+
[data-bl='utility'] [data-slot='social'] {
|
|
450
|
+
display: flex;
|
|
451
|
+
flex-wrap: wrap;
|
|
452
|
+
align-items: center;
|
|
453
|
+
gap: 0.25rem 1.25rem;
|
|
454
|
+
}
|
|
455
|
+
[data-bl='utility'] :is([data-slot='rating'], [data-slot='licence']) {
|
|
456
|
+
display: inline-flex;
|
|
457
|
+
align-items: center;
|
|
458
|
+
gap: 0.4rem;
|
|
459
|
+
min-height: 24px;
|
|
460
|
+
text-decoration: none;
|
|
461
|
+
}
|
|
462
|
+
[data-bl='utility'] [data-slot='social'] {
|
|
463
|
+
gap: 0.25rem;
|
|
464
|
+
}
|
|
465
|
+
[data-bl='utility'] [data-slot='socialLink'] {
|
|
466
|
+
display: inline-flex;
|
|
467
|
+
align-items: center;
|
|
468
|
+
justify-content: center;
|
|
469
|
+
min-width: 24px;
|
|
470
|
+
min-height: 24px;
|
|
471
|
+
}
|
|
472
|
+
[data-bl='utility'] [data-slot='social'] svg {
|
|
473
|
+
width: 1rem;
|
|
474
|
+
height: 1rem;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/* 12-drawer.css */
|
|
478
|
+
/*
|
|
479
|
+
* F4 drawer: a modal dialog of min(100%, 420px) from the end side (or full screen), its own scroll container. The page
|
|
480
|
+
* behind it is inert (native modal) and doesn't scroll while it is open.
|
|
481
|
+
*/
|
|
482
|
+
|
|
483
|
+
/* The gutter stays when the scrollbar goes, so the header's width (and its mode) never changes as the drawer opens. */
|
|
484
|
+
:root:has(dialog[data-bl='drawer'][open]) {
|
|
485
|
+
overflow: hidden;
|
|
486
|
+
scrollbar-gutter: stable;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
dialog[data-bl='drawer'] {
|
|
490
|
+
inset-block: 0;
|
|
491
|
+
width: min(100%, 420px);
|
|
492
|
+
max-width: 100%;
|
|
493
|
+
height: 100dvh;
|
|
494
|
+
max-height: 100dvh;
|
|
495
|
+
margin: 0;
|
|
496
|
+
margin-inline-start: auto;
|
|
497
|
+
padding: 0;
|
|
498
|
+
border: 0;
|
|
499
|
+
overflow: hidden;
|
|
500
|
+
overscroll-behavior: contain;
|
|
501
|
+
background: var(--bl-color-canvas, Canvas);
|
|
502
|
+
color: var(--bl-color-ink, CanvasText);
|
|
503
|
+
}
|
|
504
|
+
dialog[data-bl='drawer'][data-side='start'] {
|
|
505
|
+
margin-inline: 0 auto;
|
|
506
|
+
}
|
|
507
|
+
dialog[data-bl='drawer'][data-variant='full'] {
|
|
508
|
+
width: 100%;
|
|
509
|
+
margin-inline: 0;
|
|
510
|
+
}
|
|
511
|
+
dialog[data-bl='drawer'] > [data-slot='panel'] {
|
|
512
|
+
display: flex;
|
|
513
|
+
flex-direction: column;
|
|
514
|
+
height: 100%;
|
|
515
|
+
padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
|
|
516
|
+
overflow-y: auto;
|
|
517
|
+
overscroll-behavior: contain;
|
|
518
|
+
}
|
|
519
|
+
dialog[data-bl='drawer'][open] > [data-slot='panel'] {
|
|
520
|
+
animation: bl-drawer-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
521
|
+
}
|
|
522
|
+
dialog[data-bl='drawer'][data-side='start'][open] > [data-slot='panel'] {
|
|
523
|
+
animation-name: bl-drawer-in-start;
|
|
524
|
+
}
|
|
525
|
+
@keyframes bl-drawer-in {
|
|
526
|
+
from {
|
|
527
|
+
translate: 2rem 0;
|
|
528
|
+
opacity: 0;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
@keyframes bl-drawer-in-start {
|
|
532
|
+
from {
|
|
533
|
+
translate: -2rem 0;
|
|
534
|
+
opacity: 0;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/* The close button comes first in the DOM and focus order; the row shows it at the end. */
|
|
539
|
+
dialog[data-bl='drawer'] [data-slot='top'] {
|
|
540
|
+
display: flex;
|
|
541
|
+
flex-direction: row-reverse;
|
|
542
|
+
align-items: center;
|
|
543
|
+
gap: 1rem;
|
|
544
|
+
padding: 0.75rem var(--bl-gutter, 1.25rem);
|
|
545
|
+
}
|
|
546
|
+
dialog[data-bl='drawer'] [data-slot='close'] {
|
|
547
|
+
display: inline-flex;
|
|
548
|
+
align-items: center;
|
|
549
|
+
justify-content: center;
|
|
550
|
+
width: 44px;
|
|
551
|
+
height: 44px;
|
|
552
|
+
}
|
|
553
|
+
dialog[data-bl='drawer'] [data-slot='close'] svg {
|
|
554
|
+
width: 1.4rem;
|
|
555
|
+
height: 1.4rem;
|
|
556
|
+
}
|
|
557
|
+
dialog[data-bl='drawer'] [data-slot='title'] {
|
|
558
|
+
margin-inline-end: auto;
|
|
559
|
+
}
|
|
560
|
+
dialog[data-bl='drawer'] [data-slot='top'] > [data-slot='logo'] :is(img, svg) {
|
|
561
|
+
display: block;
|
|
562
|
+
width: auto;
|
|
563
|
+
height: 36px;
|
|
564
|
+
}
|
|
565
|
+
dialog[data-bl='drawer'] [data-slot='nav'] {
|
|
566
|
+
padding: 0.5rem var(--bl-gutter, 1.25rem) 1rem;
|
|
567
|
+
}
|
|
568
|
+
dialog[data-bl='drawer'] [data-slot='groupTrigger'] {
|
|
569
|
+
display: flex;
|
|
570
|
+
align-items: center;
|
|
571
|
+
justify-content: space-between;
|
|
572
|
+
gap: 1rem;
|
|
573
|
+
min-height: 52px;
|
|
574
|
+
list-style: none;
|
|
575
|
+
cursor: pointer;
|
|
576
|
+
}
|
|
577
|
+
dialog[data-bl='drawer'] [data-slot='groupTrigger']::-webkit-details-marker {
|
|
578
|
+
display: none;
|
|
579
|
+
}
|
|
580
|
+
dialog[data-bl='drawer'] [data-slot='groupTrigger'] svg {
|
|
581
|
+
width: 1.1rem;
|
|
582
|
+
height: 1.1rem;
|
|
583
|
+
transition: rotate 150ms ease;
|
|
584
|
+
}
|
|
585
|
+
dialog[data-bl='drawer'] [data-slot='group'][open] > [data-slot='groupTrigger'] svg {
|
|
586
|
+
rotate: 180deg;
|
|
587
|
+
}
|
|
588
|
+
dialog[data-bl='drawer'] :is([data-slot='link'], [data-slot='groupLink']) {
|
|
589
|
+
display: flex;
|
|
590
|
+
align-items: center;
|
|
591
|
+
min-height: 44px;
|
|
592
|
+
text-decoration: none;
|
|
593
|
+
}
|
|
594
|
+
dialog[data-bl='drawer'] [data-slot='actions'] {
|
|
595
|
+
display: grid;
|
|
596
|
+
gap: 0.75rem;
|
|
597
|
+
margin-top: auto;
|
|
598
|
+
padding: 0.5rem var(--bl-gutter, 1.25rem) 1.25rem;
|
|
599
|
+
}
|
|
600
|
+
dialog[data-bl='drawer'] [data-slot='actions'] > :is([data-bl='phone-link'], [data-bl='quote-button']) {
|
|
601
|
+
display: flex;
|
|
602
|
+
justify-content: center;
|
|
603
|
+
min-height: 52px;
|
|
604
|
+
text-decoration: none;
|
|
605
|
+
}
|
|
606
|
+
dialog[data-bl='drawer'] [data-slot='actions'] svg {
|
|
607
|
+
width: 1.15rem;
|
|
608
|
+
height: 1.15rem;
|
|
609
|
+
}
|
|
610
|
+
dialog[data-bl='drawer'] [data-slot='social'] {
|
|
611
|
+
display: flex;
|
|
612
|
+
flex-wrap: wrap;
|
|
613
|
+
gap: 0.5rem;
|
|
614
|
+
padding: 0 var(--bl-gutter, 1.25rem);
|
|
615
|
+
}
|
|
616
|
+
dialog[data-bl='drawer'] [data-slot='socialLink'] {
|
|
617
|
+
display: inline-flex;
|
|
618
|
+
align-items: center;
|
|
619
|
+
justify-content: center;
|
|
620
|
+
width: 44px;
|
|
621
|
+
height: 44px;
|
|
622
|
+
}
|
|
623
|
+
dialog[data-bl='drawer'] [data-slot='social'] svg {
|
|
624
|
+
width: 1.1rem;
|
|
625
|
+
height: 1.1rem;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/* 13-callbar.css */
|
|
629
|
+
/*
|
|
630
|
+
* F6 call bar: below 1024 px only, fixed to the bottom above the safe area. Hidden until the hero's call paths have
|
|
631
|
+
* scrolled out; the component sets --bl-callbar-height while it shows (scroll padding and back-to-top use it).
|
|
632
|
+
*/
|
|
633
|
+
|
|
634
|
+
[data-bl='callbar'] {
|
|
635
|
+
position: fixed;
|
|
636
|
+
inset-inline: 0;
|
|
637
|
+
bottom: 0;
|
|
638
|
+
z-index: 30;
|
|
639
|
+
display: flex;
|
|
640
|
+
gap: 0.5rem;
|
|
641
|
+
padding: 0.5rem var(--bl-gutter, 1.25rem) max(0.5rem, env(safe-area-inset-bottom));
|
|
642
|
+
background: var(--bl-color-canvas, Canvas);
|
|
643
|
+
color: var(--bl-color-ink, CanvasText);
|
|
644
|
+
transition: translate 200ms ease, visibility 0s;
|
|
645
|
+
}
|
|
646
|
+
[data-bl='callbar'] > :is([data-bl='phone-link'], [data-bl='quote-button']) {
|
|
647
|
+
flex: 1 1 0;
|
|
648
|
+
justify-content: center;
|
|
649
|
+
min-width: 0;
|
|
650
|
+
min-height: 48px;
|
|
651
|
+
text-decoration: none;
|
|
652
|
+
}
|
|
653
|
+
[data-bl='callbar'][data-variant='float'] {
|
|
654
|
+
inset-inline: auto 0;
|
|
655
|
+
justify-content: flex-end;
|
|
656
|
+
background: none;
|
|
657
|
+
}
|
|
658
|
+
[data-bl='callbar'][data-variant='float'] > :is([data-bl='phone-link'], [data-bl='quote-button']) {
|
|
659
|
+
flex: none;
|
|
660
|
+
}
|
|
661
|
+
[data-bl='callbar'][data-state='hidden'] {
|
|
662
|
+
visibility: hidden;
|
|
663
|
+
translate: 0 100%;
|
|
664
|
+
transition: translate 200ms ease, visibility 0s linear 200ms;
|
|
665
|
+
}
|
|
666
|
+
@media (min-width: 1024px) {
|
|
667
|
+
[data-bl='callbar'] {
|
|
668
|
+
display: none;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/* 14-back-to-top.css */
|
|
673
|
+
/* F7 back-to-top: a 44 px button in a bottom corner, above the call bar while it shows. */
|
|
674
|
+
|
|
675
|
+
[data-bl='back-to-top'] {
|
|
676
|
+
--bl-back-to-top-offset: 1.25rem;
|
|
677
|
+
position: fixed;
|
|
678
|
+
inset-inline-end: var(--bl-back-to-top-offset);
|
|
679
|
+
bottom: max(
|
|
680
|
+
calc(var(--bl-callbar-height, 0px) + var(--bl-back-to-top-offset)),
|
|
681
|
+
calc(env(safe-area-inset-bottom) + var(--bl-back-to-top-offset))
|
|
682
|
+
);
|
|
683
|
+
z-index: 30;
|
|
684
|
+
display: inline-flex;
|
|
685
|
+
align-items: center;
|
|
686
|
+
justify-content: center;
|
|
687
|
+
min-width: 44px;
|
|
688
|
+
min-height: 44px;
|
|
689
|
+
background: var(--bl-color-canvas, Canvas);
|
|
690
|
+
color: var(--bl-color-ink, CanvasText);
|
|
691
|
+
transition: opacity 150ms ease, bottom 200ms ease, visibility 0s;
|
|
692
|
+
}
|
|
693
|
+
[data-bl='back-to-top'][data-corner='start'] {
|
|
694
|
+
inset-inline: var(--bl-back-to-top-offset) auto;
|
|
695
|
+
}
|
|
696
|
+
[data-bl='back-to-top'][data-offset='small'] {
|
|
697
|
+
--bl-back-to-top-offset: 0.75rem;
|
|
698
|
+
}
|
|
699
|
+
[data-bl='back-to-top'][data-offset='large'] {
|
|
700
|
+
--bl-back-to-top-offset: 2rem;
|
|
701
|
+
}
|
|
702
|
+
[data-bl='back-to-top'][data-state='hidden'] {
|
|
703
|
+
visibility: hidden;
|
|
704
|
+
opacity: 0;
|
|
705
|
+
transition: opacity 150ms ease, bottom 200ms ease, visibility 0s linear 150ms;
|
|
706
|
+
}
|
|
707
|
+
[data-bl='back-to-top'] svg {
|
|
708
|
+
width: 1.25rem;
|
|
709
|
+
height: 1.25rem;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/* The skip-link and back-to-top target takes focus without a ring: it is a landmark, not a control. */
|
|
713
|
+
#main[tabindex='-1']:focus {
|
|
714
|
+
outline: none;
|
|
715
|
+
}
|
|
716
|
+
|
|
123
717
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brandlab-digital/site-next",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.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.
|
|
28
|
+
"@brandlab-digital/site-core": "3.9.0",
|
|
29
29
|
"browser-image-compression": "2.0.2",
|
|
30
30
|
"pdf-lib": "1.17.1",
|
|
31
31
|
"server-only": "0.0.1",
|
|
@@ -162,6 +162,14 @@
|
|
|
162
162
|
"types": "./dist/ui-kit/primitives/index.d.ts",
|
|
163
163
|
"import": "./dist/ui-kit/primitives/index.js"
|
|
164
164
|
},
|
|
165
|
+
"./ui-kit/shell": {
|
|
166
|
+
"types": "./dist/ui-kit/shell/index.d.ts",
|
|
167
|
+
"import": "./dist/ui-kit/shell/index.js"
|
|
168
|
+
},
|
|
169
|
+
"./navigation": {
|
|
170
|
+
"types": "./dist/navigation/index.d.ts",
|
|
171
|
+
"import": "./dist/navigation/index.js"
|
|
172
|
+
},
|
|
165
173
|
"./ui-kit/structure.css": {
|
|
166
174
|
"style": "./dist/ui-kit/structure.css",
|
|
167
175
|
"default": "./dist/ui-kit/structure.css"
|