@asante-org/atlascopco-vt-litesitegenerator 3.0.20 → 3.0.21
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/index.esm.js +82 -23
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.scss +302 -80
- package/dist/index.js +82 -23
- package/dist/index.js.map +1 -1
- package/dist/index.scss +302 -80
- package/dist/src/components/lsg/LsgBanner/LsgBanner.d.ts +30 -2
- package/dist/src/components/lsg/LsgBanner/LsgBanner.stories.d.ts +9 -2
- package/dist/src/components/lsg/LsgBanner/index.d.ts +1 -1
- package/dist/src/components/lsg/index.d.ts +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/themes/theme-1.css +417 -40
- package/dist/themes/theme-1.css.map +1 -1
- package/dist/themes/theme-2.css +488 -40
- package/dist/themes/theme-2.css.map +1 -1
- package/dist/themes/theme-3.css +515 -40
- package/dist/themes/theme-3.css.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.scss
CHANGED
|
@@ -340,63 +340,174 @@
|
|
|
340
340
|
pointer-events: none;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
+
.lsg-banner,
|
|
344
|
+
.lsg-banner * {
|
|
345
|
+
box-sizing: border-box;
|
|
346
|
+
}
|
|
347
|
+
|
|
343
348
|
.lsg-banner {
|
|
344
349
|
position: relative;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
min-height: 400px;
|
|
348
|
-
padding: 72px 24px;
|
|
349
|
-
background-color: var(--lsg-color-dark);
|
|
350
|
-
color: var(--lsg-color-white);
|
|
350
|
+
width: 100%;
|
|
351
|
+
margin: 0;
|
|
351
352
|
overflow: hidden;
|
|
353
|
+
background: var(--lsg-color-light);
|
|
354
|
+
color: var(--lsg-color-black);
|
|
355
|
+
font-family: var(--lsg-font-family-primary);
|
|
352
356
|
}
|
|
353
|
-
.lsg-
|
|
354
|
-
position:
|
|
355
|
-
|
|
357
|
+
.lsg-banner__shell {
|
|
358
|
+
position: relative;
|
|
359
|
+
width: 100%;
|
|
360
|
+
min-width: 0;
|
|
361
|
+
}
|
|
362
|
+
.lsg-banner__media {
|
|
363
|
+
position: relative;
|
|
364
|
+
min-width: 0;
|
|
365
|
+
overflow: hidden;
|
|
356
366
|
}
|
|
357
|
-
.lsg-
|
|
367
|
+
.lsg-banner__image, .lsg-banner__video {
|
|
368
|
+
display: block;
|
|
358
369
|
width: 100%;
|
|
359
370
|
height: 100%;
|
|
360
371
|
-o-object-fit: cover;
|
|
361
372
|
object-fit: cover;
|
|
362
|
-
display: block;
|
|
363
373
|
}
|
|
364
|
-
.lsg-
|
|
365
|
-
content: "";
|
|
366
|
-
position: absolute;
|
|
367
|
-
inset: 0;
|
|
368
|
-
background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 100%);
|
|
369
|
-
}
|
|
370
|
-
.lsg-banner__inner {
|
|
374
|
+
.lsg-banner__content {
|
|
371
375
|
position: relative;
|
|
372
376
|
z-index: 1;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
padding: 0 24px;
|
|
377
|
+
display: flex;
|
|
378
|
+
flex-direction: column;
|
|
379
|
+
min-width: 0;
|
|
377
380
|
}
|
|
378
|
-
.lsg-
|
|
379
|
-
display:
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
381
|
+
.lsg-banner__pre-title {
|
|
382
|
+
display: inline-flex;
|
|
383
|
+
align-items: center;
|
|
384
|
+
align-self: flex-start;
|
|
385
|
+
gap: 8px;
|
|
386
|
+
max-width: 100%;
|
|
387
|
+
font-size: var(--lsg-size-Pretitle, 18px);
|
|
388
|
+
font-weight: 600;
|
|
389
|
+
line-height: 1.2;
|
|
383
390
|
text-transform: uppercase;
|
|
384
|
-
|
|
385
|
-
|
|
391
|
+
}
|
|
392
|
+
.lsg-banner__pre-title-marker {
|
|
393
|
+
display: none;
|
|
394
|
+
flex: 0 0 auto;
|
|
395
|
+
width: 10px;
|
|
396
|
+
height: 10px;
|
|
397
|
+
border-radius: 50%;
|
|
398
|
+
background: currentColor;
|
|
399
|
+
}
|
|
400
|
+
.lsg-banner__pre-title-text {
|
|
401
|
+
min-width: 0;
|
|
402
|
+
}
|
|
403
|
+
.lsg-banner__heading, .lsg-banner__body p {
|
|
404
|
+
margin: 0;
|
|
405
|
+
word-break: break-word;
|
|
386
406
|
}
|
|
387
407
|
.lsg-banner__heading {
|
|
388
|
-
font-
|
|
389
|
-
font-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
max-width: 720px;
|
|
408
|
+
font-family: var(--lsg-font-family-primary);
|
|
409
|
+
font-size: var(--lsg-size-H1, 45px);
|
|
410
|
+
font-weight: 600;
|
|
411
|
+
line-height: 1.1;
|
|
393
412
|
}
|
|
394
|
-
.lsg-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
413
|
+
.lsg-banner__body {
|
|
414
|
+
min-width: 0;
|
|
415
|
+
font-size: var(--lsg-size-body, 18px);
|
|
416
|
+
font-weight: 400;
|
|
417
|
+
line-height: 1.5;
|
|
418
|
+
}
|
|
419
|
+
.lsg-banner__actions {
|
|
420
|
+
display: flex;
|
|
421
|
+
flex-wrap: wrap;
|
|
422
|
+
align-items: center;
|
|
423
|
+
gap: 16px;
|
|
424
|
+
}
|
|
425
|
+
.lsg-banner__cta {
|
|
426
|
+
flex: 0 0 auto;
|
|
427
|
+
}
|
|
428
|
+
.lsg-banner--text-only .lsg-banner__media {
|
|
429
|
+
display: none;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
@media (min-width: 768px) {
|
|
433
|
+
.lsg-banner--media-left .lsg-banner__shell, .lsg-banner--media-right .lsg-banner__shell, .lsg-banner--media-left-compact .lsg-banner__shell, .lsg-banner--media-right-compact .lsg-banner__shell {
|
|
434
|
+
display: grid;
|
|
435
|
+
align-items: stretch;
|
|
436
|
+
}
|
|
437
|
+
.lsg-banner--media-left .lsg-banner__shell, .lsg-banner--media-left-compact .lsg-banner__shell {
|
|
438
|
+
grid-template-areas: "media content";
|
|
439
|
+
}
|
|
440
|
+
.lsg-banner--media-right .lsg-banner__shell, .lsg-banner--media-right-compact .lsg-banner__shell {
|
|
441
|
+
grid-template-areas: "content media";
|
|
442
|
+
}
|
|
443
|
+
.lsg-banner--media-left .lsg-banner__media, .lsg-banner--media-right .lsg-banner__media, .lsg-banner--media-left-compact .lsg-banner__media, .lsg-banner--media-right-compact .lsg-banner__media {
|
|
444
|
+
grid-area: media;
|
|
445
|
+
}
|
|
446
|
+
.lsg-banner--media-left .lsg-banner__content, .lsg-banner--media-right .lsg-banner__content, .lsg-banner--media-left-compact .lsg-banner__content, .lsg-banner--media-right-compact .lsg-banner__content {
|
|
447
|
+
grid-area: content;
|
|
448
|
+
}
|
|
449
|
+
.lsg-banner--media-left .lsg-banner__shell, .lsg-banner--media-right .lsg-banner__shell {
|
|
450
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
451
|
+
}
|
|
452
|
+
.lsg-banner--media-left-compact .lsg-banner__shell {
|
|
453
|
+
grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
|
|
454
|
+
}
|
|
455
|
+
.lsg-banner--media-right-compact .lsg-banner__shell {
|
|
456
|
+
grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
|
|
457
|
+
}
|
|
458
|
+
.lsg-banner--overlay .lsg-banner__shell, .lsg-banner--overlay-transparent .lsg-banner__shell {
|
|
459
|
+
display: grid;
|
|
460
|
+
place-items: stretch;
|
|
461
|
+
}
|
|
462
|
+
.lsg-banner--overlay .lsg-banner__media, .lsg-banner--overlay-transparent .lsg-banner__media, .lsg-banner--overlay .lsg-banner__content, .lsg-banner--overlay-transparent .lsg-banner__content {
|
|
463
|
+
grid-area: 1/1;
|
|
464
|
+
}
|
|
465
|
+
.lsg-banner--overlay .lsg-banner__media, .lsg-banner--overlay-transparent .lsg-banner__media {
|
|
466
|
+
z-index: 0;
|
|
467
|
+
min-height: inherit;
|
|
468
|
+
}
|
|
469
|
+
.lsg-banner--overlay .lsg-banner__content, .lsg-banner--overlay-transparent .lsg-banner__content {
|
|
470
|
+
align-self: center;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
@media (max-width: 767px) {
|
|
474
|
+
.lsg-banner__heading {
|
|
475
|
+
font-size: 30px;
|
|
476
|
+
line-height: 1.2;
|
|
477
|
+
}
|
|
478
|
+
.lsg-banner__pre-title {
|
|
479
|
+
font-size: 16px;
|
|
480
|
+
}
|
|
481
|
+
.lsg-banner__body {
|
|
482
|
+
font-size: 18px;
|
|
483
|
+
line-height: 1.5;
|
|
484
|
+
}
|
|
485
|
+
.lsg-banner--media-left .lsg-banner__shell, .lsg-banner--media-right .lsg-banner__shell, .lsg-banner--media-left-compact .lsg-banner__shell, .lsg-banner--media-right-compact .lsg-banner__shell {
|
|
486
|
+
display: flex;
|
|
487
|
+
flex-direction: column;
|
|
488
|
+
}
|
|
489
|
+
.lsg-banner--mobile-media-top .lsg-banner__media {
|
|
490
|
+
order: 1;
|
|
491
|
+
}
|
|
492
|
+
.lsg-banner--mobile-media-top .lsg-banner__content {
|
|
493
|
+
order: 2;
|
|
494
|
+
}
|
|
495
|
+
.lsg-banner--mobile-media-bottom .lsg-banner__content {
|
|
496
|
+
order: 1;
|
|
497
|
+
}
|
|
498
|
+
.lsg-banner--mobile-media-bottom .lsg-banner__media {
|
|
499
|
+
order: 2;
|
|
500
|
+
}
|
|
501
|
+
.lsg-banner--overlay .lsg-banner__shell, .lsg-banner--overlay-transparent .lsg-banner__shell {
|
|
502
|
+
display: grid;
|
|
503
|
+
place-items: stretch;
|
|
504
|
+
}
|
|
505
|
+
.lsg-banner--overlay .lsg-banner__media, .lsg-banner--overlay-transparent .lsg-banner__media, .lsg-banner--overlay .lsg-banner__content, .lsg-banner--overlay-transparent .lsg-banner__content {
|
|
506
|
+
grid-area: 1/1;
|
|
507
|
+
}
|
|
508
|
+
.lsg-banner--overlay .lsg-banner__content, .lsg-banner--overlay-transparent .lsg-banner__content {
|
|
509
|
+
align-self: center;
|
|
510
|
+
}
|
|
400
511
|
}
|
|
401
512
|
.lsg-card,
|
|
402
513
|
.lsg-card *,
|
|
@@ -4090,63 +4201,174 @@
|
|
|
4090
4201
|
--text-xxl-line-height: 1;
|
|
4091
4202
|
}
|
|
4092
4203
|
|
|
4204
|
+
.lsg-banner,
|
|
4205
|
+
.lsg-banner * {
|
|
4206
|
+
box-sizing: border-box;
|
|
4207
|
+
}
|
|
4208
|
+
|
|
4093
4209
|
.lsg-banner {
|
|
4094
4210
|
position: relative;
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
min-height: 400px;
|
|
4098
|
-
padding: 72px 24px;
|
|
4099
|
-
background-color: var(--lsg-color-dark);
|
|
4100
|
-
color: var(--lsg-color-white);
|
|
4211
|
+
width: 100%;
|
|
4212
|
+
margin: 0;
|
|
4101
4213
|
overflow: hidden;
|
|
4214
|
+
background: var(--lsg-color-light);
|
|
4215
|
+
color: var(--lsg-color-black);
|
|
4216
|
+
font-family: var(--lsg-font-family-primary);
|
|
4102
4217
|
}
|
|
4103
|
-
.lsg-
|
|
4104
|
-
position:
|
|
4105
|
-
|
|
4218
|
+
.lsg-banner__shell {
|
|
4219
|
+
position: relative;
|
|
4220
|
+
width: 100%;
|
|
4221
|
+
min-width: 0;
|
|
4222
|
+
}
|
|
4223
|
+
.lsg-banner__media {
|
|
4224
|
+
position: relative;
|
|
4225
|
+
min-width: 0;
|
|
4226
|
+
overflow: hidden;
|
|
4106
4227
|
}
|
|
4107
|
-
.lsg-
|
|
4228
|
+
.lsg-banner__image, .lsg-banner__video {
|
|
4229
|
+
display: block;
|
|
4108
4230
|
width: 100%;
|
|
4109
4231
|
height: 100%;
|
|
4110
4232
|
-o-object-fit: cover;
|
|
4111
4233
|
object-fit: cover;
|
|
4112
|
-
display: block;
|
|
4113
4234
|
}
|
|
4114
|
-
.lsg-
|
|
4115
|
-
content: "";
|
|
4116
|
-
position: absolute;
|
|
4117
|
-
inset: 0;
|
|
4118
|
-
background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 100%);
|
|
4119
|
-
}
|
|
4120
|
-
.lsg-banner__inner {
|
|
4235
|
+
.lsg-banner__content {
|
|
4121
4236
|
position: relative;
|
|
4122
4237
|
z-index: 1;
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
padding: 0 24px;
|
|
4238
|
+
display: flex;
|
|
4239
|
+
flex-direction: column;
|
|
4240
|
+
min-width: 0;
|
|
4127
4241
|
}
|
|
4128
|
-
.lsg-
|
|
4129
|
-
display:
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4242
|
+
.lsg-banner__pre-title {
|
|
4243
|
+
display: inline-flex;
|
|
4244
|
+
align-items: center;
|
|
4245
|
+
align-self: flex-start;
|
|
4246
|
+
gap: 8px;
|
|
4247
|
+
max-width: 100%;
|
|
4248
|
+
font-size: var(--lsg-size-Pretitle, 18px);
|
|
4249
|
+
font-weight: 600;
|
|
4250
|
+
line-height: 1.2;
|
|
4133
4251
|
text-transform: uppercase;
|
|
4134
|
-
|
|
4135
|
-
|
|
4252
|
+
}
|
|
4253
|
+
.lsg-banner__pre-title-marker {
|
|
4254
|
+
display: none;
|
|
4255
|
+
flex: 0 0 auto;
|
|
4256
|
+
width: 10px;
|
|
4257
|
+
height: 10px;
|
|
4258
|
+
border-radius: 50%;
|
|
4259
|
+
background: currentColor;
|
|
4260
|
+
}
|
|
4261
|
+
.lsg-banner__pre-title-text {
|
|
4262
|
+
min-width: 0;
|
|
4263
|
+
}
|
|
4264
|
+
.lsg-banner__heading, .lsg-banner__body p {
|
|
4265
|
+
margin: 0;
|
|
4266
|
+
word-break: break-word;
|
|
4136
4267
|
}
|
|
4137
4268
|
.lsg-banner__heading {
|
|
4138
|
-
font-
|
|
4139
|
-
font-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
max-width: 720px;
|
|
4269
|
+
font-family: var(--lsg-font-family-primary);
|
|
4270
|
+
font-size: var(--lsg-size-H1, 45px);
|
|
4271
|
+
font-weight: 600;
|
|
4272
|
+
line-height: 1.1;
|
|
4143
4273
|
}
|
|
4144
|
-
.lsg-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4274
|
+
.lsg-banner__body {
|
|
4275
|
+
min-width: 0;
|
|
4276
|
+
font-size: var(--lsg-size-body, 18px);
|
|
4277
|
+
font-weight: 400;
|
|
4278
|
+
line-height: 1.5;
|
|
4279
|
+
}
|
|
4280
|
+
.lsg-banner__actions {
|
|
4281
|
+
display: flex;
|
|
4282
|
+
flex-wrap: wrap;
|
|
4283
|
+
align-items: center;
|
|
4284
|
+
gap: 16px;
|
|
4285
|
+
}
|
|
4286
|
+
.lsg-banner__cta {
|
|
4287
|
+
flex: 0 0 auto;
|
|
4288
|
+
}
|
|
4289
|
+
.lsg-banner--text-only .lsg-banner__media {
|
|
4290
|
+
display: none;
|
|
4291
|
+
}
|
|
4292
|
+
|
|
4293
|
+
@media (min-width: 768px) {
|
|
4294
|
+
.lsg-banner--media-left .lsg-banner__shell, .lsg-banner--media-right .lsg-banner__shell, .lsg-banner--media-left-compact .lsg-banner__shell, .lsg-banner--media-right-compact .lsg-banner__shell {
|
|
4295
|
+
display: grid;
|
|
4296
|
+
align-items: stretch;
|
|
4297
|
+
}
|
|
4298
|
+
.lsg-banner--media-left .lsg-banner__shell, .lsg-banner--media-left-compact .lsg-banner__shell {
|
|
4299
|
+
grid-template-areas: "media content";
|
|
4300
|
+
}
|
|
4301
|
+
.lsg-banner--media-right .lsg-banner__shell, .lsg-banner--media-right-compact .lsg-banner__shell {
|
|
4302
|
+
grid-template-areas: "content media";
|
|
4303
|
+
}
|
|
4304
|
+
.lsg-banner--media-left .lsg-banner__media, .lsg-banner--media-right .lsg-banner__media, .lsg-banner--media-left-compact .lsg-banner__media, .lsg-banner--media-right-compact .lsg-banner__media {
|
|
4305
|
+
grid-area: media;
|
|
4306
|
+
}
|
|
4307
|
+
.lsg-banner--media-left .lsg-banner__content, .lsg-banner--media-right .lsg-banner__content, .lsg-banner--media-left-compact .lsg-banner__content, .lsg-banner--media-right-compact .lsg-banner__content {
|
|
4308
|
+
grid-area: content;
|
|
4309
|
+
}
|
|
4310
|
+
.lsg-banner--media-left .lsg-banner__shell, .lsg-banner--media-right .lsg-banner__shell {
|
|
4311
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
4312
|
+
}
|
|
4313
|
+
.lsg-banner--media-left-compact .lsg-banner__shell {
|
|
4314
|
+
grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
|
|
4315
|
+
}
|
|
4316
|
+
.lsg-banner--media-right-compact .lsg-banner__shell {
|
|
4317
|
+
grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
|
|
4318
|
+
}
|
|
4319
|
+
.lsg-banner--overlay .lsg-banner__shell, .lsg-banner--overlay-transparent .lsg-banner__shell {
|
|
4320
|
+
display: grid;
|
|
4321
|
+
place-items: stretch;
|
|
4322
|
+
}
|
|
4323
|
+
.lsg-banner--overlay .lsg-banner__media, .lsg-banner--overlay-transparent .lsg-banner__media, .lsg-banner--overlay .lsg-banner__content, .lsg-banner--overlay-transparent .lsg-banner__content {
|
|
4324
|
+
grid-area: 1/1;
|
|
4325
|
+
}
|
|
4326
|
+
.lsg-banner--overlay .lsg-banner__media, .lsg-banner--overlay-transparent .lsg-banner__media {
|
|
4327
|
+
z-index: 0;
|
|
4328
|
+
min-height: inherit;
|
|
4329
|
+
}
|
|
4330
|
+
.lsg-banner--overlay .lsg-banner__content, .lsg-banner--overlay-transparent .lsg-banner__content {
|
|
4331
|
+
align-self: center;
|
|
4332
|
+
}
|
|
4333
|
+
}
|
|
4334
|
+
@media (max-width: 767px) {
|
|
4335
|
+
.lsg-banner__heading {
|
|
4336
|
+
font-size: 30px;
|
|
4337
|
+
line-height: 1.2;
|
|
4338
|
+
}
|
|
4339
|
+
.lsg-banner__pre-title {
|
|
4340
|
+
font-size: 16px;
|
|
4341
|
+
}
|
|
4342
|
+
.lsg-banner__body {
|
|
4343
|
+
font-size: 18px;
|
|
4344
|
+
line-height: 1.5;
|
|
4345
|
+
}
|
|
4346
|
+
.lsg-banner--media-left .lsg-banner__shell, .lsg-banner--media-right .lsg-banner__shell, .lsg-banner--media-left-compact .lsg-banner__shell, .lsg-banner--media-right-compact .lsg-banner__shell {
|
|
4347
|
+
display: flex;
|
|
4348
|
+
flex-direction: column;
|
|
4349
|
+
}
|
|
4350
|
+
.lsg-banner--mobile-media-top .lsg-banner__media {
|
|
4351
|
+
order: 1;
|
|
4352
|
+
}
|
|
4353
|
+
.lsg-banner--mobile-media-top .lsg-banner__content {
|
|
4354
|
+
order: 2;
|
|
4355
|
+
}
|
|
4356
|
+
.lsg-banner--mobile-media-bottom .lsg-banner__content {
|
|
4357
|
+
order: 1;
|
|
4358
|
+
}
|
|
4359
|
+
.lsg-banner--mobile-media-bottom .lsg-banner__media {
|
|
4360
|
+
order: 2;
|
|
4361
|
+
}
|
|
4362
|
+
.lsg-banner--overlay .lsg-banner__shell, .lsg-banner--overlay-transparent .lsg-banner__shell {
|
|
4363
|
+
display: grid;
|
|
4364
|
+
place-items: stretch;
|
|
4365
|
+
}
|
|
4366
|
+
.lsg-banner--overlay .lsg-banner__media, .lsg-banner--overlay-transparent .lsg-banner__media, .lsg-banner--overlay .lsg-banner__content, .lsg-banner--overlay-transparent .lsg-banner__content {
|
|
4367
|
+
grid-area: 1/1;
|
|
4368
|
+
}
|
|
4369
|
+
.lsg-banner--overlay .lsg-banner__content, .lsg-banner--overlay-transparent .lsg-banner__content {
|
|
4370
|
+
align-self: center;
|
|
4371
|
+
}
|
|
4150
4372
|
}
|
|
4151
4373
|
:root {
|
|
4152
4374
|
--atlascopco-blue-1: #f5fbfc;
|
|
@@ -1,17 +1,45 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./LsgBanner.scss";
|
|
3
|
+
import type { LsgButtonVariant } from "../LsgButton";
|
|
4
|
+
export type LsgBannerLayout = "media-left" | "media-right" | "media-left-compact" | "media-right-compact" | "overlay" | "overlay-transparent" | "text-only";
|
|
5
|
+
export type LsgBannerMobileMediaPosition = "top" | "bottom";
|
|
6
|
+
export type LsgBannerMediaType = "image" | "video";
|
|
7
|
+
export type LsgBannerHeadingTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
3
8
|
export interface LsgBannerCta {
|
|
4
9
|
label: string;
|
|
5
|
-
href
|
|
10
|
+
href?: string;
|
|
6
11
|
external?: boolean;
|
|
12
|
+
variant?: LsgButtonVariant;
|
|
13
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
|
|
7
14
|
}
|
|
8
15
|
export interface LsgBannerProps {
|
|
16
|
+
/** Mandatory banner title. */
|
|
9
17
|
heading: string;
|
|
18
|
+
/** Figma/AEM pre-title. `eyebrow` remains as a backwards-compatible alias. */
|
|
19
|
+
preTitle?: string;
|
|
10
20
|
eyebrow?: string;
|
|
21
|
+
/** Optional body copy. `copy` remains as a backwards-compatible alias. */
|
|
22
|
+
body?: string;
|
|
11
23
|
copy?: string;
|
|
24
|
+
/** Up to three CTAs. Theme/AEM policy may choose to expose fewer. */
|
|
25
|
+
ctas?: LsgBannerCta[];
|
|
26
|
+
/** Backwards-compatible single CTA alias. */
|
|
12
27
|
cta?: LsgBannerCta;
|
|
13
|
-
/**
|
|
28
|
+
/** Image/video presentation controlled by the Banner authoring layout. */
|
|
29
|
+
mediaType?: LsgBannerMediaType;
|
|
14
30
|
imageUrl?: string;
|
|
15
31
|
imageAlt?: string;
|
|
32
|
+
videoUrl?: string;
|
|
33
|
+
videoPoster?: string;
|
|
34
|
+
videoControls?: boolean;
|
|
35
|
+
videoAutoPlay?: boolean;
|
|
36
|
+
videoMuted?: boolean;
|
|
37
|
+
videoLoop?: boolean;
|
|
38
|
+
/** Desktop visual layout matching the Figma Banner variants. */
|
|
39
|
+
layout?: LsgBannerLayout;
|
|
40
|
+
/** Mobile stack order for split/compact layouts. */
|
|
41
|
+
mobileMediaPosition?: LsgBannerMobileMediaPosition;
|
|
42
|
+
headingTag?: LsgBannerHeadingTag;
|
|
43
|
+
className?: string;
|
|
16
44
|
}
|
|
17
45
|
export declare const LsgBanner: React.FC<LsgBannerProps>;
|
|
@@ -3,5 +3,12 @@ import { LsgBanner } from "./LsgBanner";
|
|
|
3
3
|
declare const meta: Meta<typeof LsgBanner>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof LsgBanner>;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
6
|
+
export declare const MediaLeft: Story;
|
|
7
|
+
export declare const MediaRight: Story;
|
|
8
|
+
export declare const ExtendedContentRight: Story;
|
|
9
|
+
export declare const ExtendedContentLeft: Story;
|
|
10
|
+
export declare const TextOverImage: Story;
|
|
11
|
+
export declare const TextOverImageTransparent: Story;
|
|
12
|
+
export declare const TextOnly: Story;
|
|
13
|
+
export declare const VideoMedia: Story;
|
|
14
|
+
export declare const ThreeCtas: Story;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { LsgBanner } from "./LsgBanner";
|
|
2
|
-
export type { LsgBannerProps, LsgBannerCta } from "./LsgBanner";
|
|
2
|
+
export type { LsgBannerProps, LsgBannerCta, LsgBannerLayout, LsgBannerMobileMediaPosition, LsgBannerMediaType, LsgBannerHeadingTag, } from "./LsgBanner";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { LsgButton } from "./LsgButton";
|
|
2
2
|
export type { LsgButtonProps, LsgButtonVariant } from "./LsgButton";
|
|
3
3
|
export { LsgBanner } from "./LsgBanner";
|
|
4
|
-
export type { LsgBannerProps, LsgBannerCta } from "./LsgBanner";
|
|
4
|
+
export type { LsgBannerProps, LsgBannerCta, LsgBannerLayout, LsgBannerMobileMediaPosition, LsgBannerMediaType, LsgBannerHeadingTag, } from "./LsgBanner";
|
|
5
5
|
export { LsgCard, LsgCards } from "./LsgCard";
|
|
6
6
|
export type { LsgCardProps, LsgCardCta, LsgCardVariant, LsgCardColumns, LsgCardsProps, } from "./LsgCard";
|
|
7
7
|
export { LsgBreadcrumb } from "./LsgBreadcrumb";
|
package/dist/src/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { LsgButton, LsgBanner, LsgCard, LsgCards, LsgBreadcrumb, LsgLogo, LsgNav
|
|
|
3
3
|
export { Theme1LsgButton, Theme1LsgBanner, Theme1LsgCard, Theme1LsgCards, Theme1LsgBreadcrumb, Theme1LsgLogo, Theme1LsgNavigation, Theme1LsgLanguageSwitcher, Theme1LsgSearchTrigger, Theme1LsgSearchOverlay, Theme1LsgHeader, Theme1LsgQuickLinks, Theme1LsgSocialMediaIcons, Theme1LsgFooter, Theme1LsgHero, theme1Components, } from "./themes/theme-1/components";
|
|
4
4
|
export { Theme2LsgButton, Theme2LsgBanner, Theme2LsgCard, Theme2LsgCards, Theme2LsgBreadcrumb, Theme2LsgLogo, Theme2LsgNavigation, Theme2LsgLanguageSwitcher, Theme2LsgSearchTrigger, Theme2LsgSearchOverlay, Theme2LsgHeader, Theme2LsgQuickLinks, Theme2LsgSocialMediaIcons, Theme2LsgFooter, Theme2LsgHero, theme2Components, } from "./themes/theme-2/components";
|
|
5
5
|
export { Theme3LsgButton, Theme3LsgBanner, Theme3LsgCard, Theme3LsgCards, Theme3LsgBreadcrumb, Theme3LsgLogo, Theme3LsgNavigation, Theme3LsgLanguageSwitcher, Theme3LsgSearchTrigger, Theme3LsgSearchOverlay, Theme3LsgHeader, Theme3LsgQuickLinks, Theme3LsgSocialMediaIcons, Theme3LsgFooter, Theme3LsgHero, theme3Components, } from "./themes/theme-3/components";
|
|
6
|
-
export type { LsgButtonProps, LsgButtonVariant, LsgBannerProps, LsgBannerCta, LsgCardProps, LsgCardCta, LsgCardVariant, LsgCardColumns, LsgCardsProps, LsgBreadcrumbItem, LsgBreadcrumbProps, LsgLogoProps, LsgNavigationProps, LsgNavItem, LsgLanguageSwitcherProps, LsgLanguage, LsgSearchTriggerProps, LsgSearchOverlayProps, LsgHeaderProps, LsgQuickLinksProps, LsgQuickLink, LsgSocialMediaIconsProps, LsgSocialItem, LsgSocialPlatform, LsgFooterProps, LsgHeroProps, LsgHeroSlide, LsgHeroHeight, LsgHeroTransition, LsgHeroControllerOptions, LsgHeroControllerElements, LsgHeroControllerTransition, LsgHeroCardProps, } from "./components/lsg";
|
|
6
|
+
export type { LsgButtonProps, LsgButtonVariant, LsgBannerProps, LsgBannerCta, LsgBannerLayout, LsgBannerMobileMediaPosition, LsgBannerMediaType, LsgBannerHeadingTag, LsgCardProps, LsgCardCta, LsgCardVariant, LsgCardColumns, LsgCardsProps, LsgBreadcrumbItem, LsgBreadcrumbProps, LsgLogoProps, LsgNavigationProps, LsgNavItem, LsgLanguageSwitcherProps, LsgLanguage, LsgSearchTriggerProps, LsgSearchOverlayProps, LsgHeaderProps, LsgQuickLinksProps, LsgQuickLink, LsgSocialMediaIconsProps, LsgSocialItem, LsgSocialPlatform, LsgFooterProps, LsgHeroProps, LsgHeroSlide, LsgHeroHeight, LsgHeroTransition, LsgHeroControllerOptions, LsgHeroControllerElements, LsgHeroControllerTransition, LsgHeroCardProps, } from "./components/lsg";
|