@royaloperahouse/harmonic 0.17.1 → 0.17.2-b

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 (51) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +268 -43
  3. package/dist/components/atoms/Dropdown/Dropdown.d.ts +1 -1
  4. package/dist/components/atoms/ImageAspectRatioWrapper/ImageAspectRatioWrapper.d.ts +1 -1
  5. package/dist/components/atoms/Person/Person.style.d.ts +2 -0
  6. package/dist/components/atoms/Person/index.d.ts +2 -0
  7. package/dist/components/atoms/RotatorButtons/RotatorButtons.d.ts +1 -1
  8. package/dist/components/atoms/RotatorButtons/RotatorButtons.style.d.ts +8 -3
  9. package/dist/components/atoms/Tab/Tab.d.ts +1 -1
  10. package/dist/components/index.d.ts +2 -2
  11. package/dist/components/molecules/ImageWithCaption/ImageWithCaption.d.ts +2 -2
  12. package/dist/components/molecules/ImageWithCaption/ImageWithCaption.style.d.ts +2 -1
  13. package/dist/components/molecules/PageHeading/HighlightCarousel/HighlightCarousel.d.ts +4 -0
  14. package/dist/components/molecules/PageHeading/HighlightCarousel/HighlightCarousel.style.d.ts +14 -0
  15. package/dist/components/molecules/PageHeading/HighlightCarousel/index.d.ts +2 -0
  16. package/dist/components/molecules/PageHeading/index.d.ts +2 -1
  17. package/dist/components/molecules/PeopleListing/PeopleListing.d.ts +1 -1
  18. package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +0 -6
  19. package/dist/components/molecules/PeopleListing/fixtures.d.ts +4 -0
  20. package/dist/components/molecules/PersonCard/PersonCard.d.ts +4 -0
  21. package/dist/components/molecules/PersonCard/PersonCard.style.d.ts +2 -0
  22. package/dist/components/molecules/PersonCard/index.d.ts +2 -0
  23. package/dist/components/molecules/PersonDetails/PersonDetails.d.ts +4 -0
  24. package/dist/components/molecules/PersonDetails/PersonDetails.style.d.ts +2 -0
  25. package/dist/components/molecules/PersonDetails/index.d.ts +2 -0
  26. package/dist/components/molecules/SkipToMain/SkipToMain.style.d.ts +1 -1
  27. package/dist/components/molecules/Swipe/Swipe.d.ts +3 -0
  28. package/dist/components/molecules/UpsellCard/UpsellCard.style.d.ts +277 -11
  29. package/dist/components/molecules/index.d.ts +2 -2
  30. package/dist/components/organisms/AnchorTabBar/AnchorTabBar.style.d.ts +1 -1
  31. package/dist/components/organisms/Carousels/Carousel/helper.d.ts +2 -2
  32. package/dist/components/organisms/UpsellSection/UpsellSection.style.d.ts +272 -1
  33. package/dist/harmonic.cjs.development.css +346 -13
  34. package/dist/harmonic.cjs.development.js +5592 -5281
  35. package/dist/harmonic.cjs.development.js.map +1 -1
  36. package/dist/harmonic.cjs.production.min.js +1 -1
  37. package/dist/harmonic.cjs.production.min.js.map +1 -1
  38. package/dist/harmonic.esm.js +5224 -4912
  39. package/dist/harmonic.esm.js.map +1 -1
  40. package/dist/index.d.ts +3 -2
  41. package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +1 -0
  42. package/dist/types/anchorBar.d.ts +3 -0
  43. package/dist/types/buttonTypes.d.ts +3 -0
  44. package/dist/types/card.d.ts +7 -0
  45. package/dist/types/carousel.d.ts +2 -1
  46. package/dist/types/image.d.ts +15 -11
  47. package/dist/types/types.d.ts +21 -5
  48. package/dist/types/upsell.d.ts +7 -15
  49. package/package.json +2 -3
  50. package/README.GIT +0 -294
  51. /package/dist/components/{molecules/PeopleListing → atoms/Person}/Person.d.ts +0 -0
@@ -152,7 +152,6 @@
152
152
  color: var(--color-primary);
153
153
  }
154
154
 
155
-
156
155
  .typography-module_display--black__8hmsx,
157
156
  .typography-module_header--black__M3I14,
158
157
  .typography-module_subtitle--black__IQRSo,
@@ -209,15 +208,24 @@
209
208
  }
210
209
 
211
210
  /* Typography variants */
212
- .typography-module_display--serif__C0-Ve,
211
+ .typography-module_display--serif__C0-Ve {
212
+ font-family: var(--font-family-serif);
213
+ }
214
+
213
215
  .typography-module_header--serif__uTGCc {
214
216
  font-family: var(--font-family-serif);
217
+ letter-spacing: -0.5px;
218
+ }
219
+
220
+ .typography-module_display--em__h2bPV {
221
+ font-family: var(--font-family-serif);
222
+ font-style: italic;
215
223
  }
216
224
 
217
- .typography-module_display--em__h2bPV,
218
225
  .typography-module_header--em__UFQIA {
219
226
  font-family: var(--font-family-serif);
220
227
  font-style: italic;
228
+ letter-spacing: -0.5px;
221
229
  }
222
230
 
223
231
  .typography-module_display--bold__PG-8g,
@@ -301,6 +309,7 @@
301
309
  letter-spacing: 0.3px;
302
310
  }
303
311
  }
312
+
304
313
  @font-face {
305
314
  font-family: 'GreyLLTT';
306
315
  src: url('https://static.roh.org.uk/fonts/harmonic/GreyLLTT-Regular.woff2') format('woff2');
@@ -327,8 +336,7 @@
327
336
 
328
337
  @font-face {
329
338
  font-family: 'VictorSerif';
330
- src: url('https://static.roh.org.uk/fonts/harmonic/VictorSerif-Medium.woff2')
331
- format('woff2');
339
+ src: url('https://static.roh.org.uk/fonts/harmonic/VictorSerif-Medium.woff2') format('woff2');
332
340
  font-weight: 500;
333
341
  font-style: normal;
334
342
  font-display: swap;
@@ -336,13 +344,331 @@
336
344
 
337
345
  @font-face {
338
346
  font-family: 'VictorSerif';
339
- src: url('https://static.roh.org.uk/fonts/harmonic/VictorSerif-MediumItalic.woff2')
340
- format('woff2');
347
+ src: url('https://static.roh.org.uk/fonts/harmonic/VictorSerif-MediumItalic.woff2') format('woff2');
341
348
  font-weight: 500;
342
349
  font-style: italic;
343
350
  font-display: swap;
344
351
  }
345
352
 
353
+ /* ~~~~~ General Styling Classes ~~~~~ */
354
+ .typography_color-primary__LOfDi {
355
+ color: var(--color-primary);
356
+ }
357
+
358
+ .typography_color-black__6MHRL {
359
+ color: var(--color-base-black);
360
+ }
361
+
362
+ .typography_color-white__PfW5s {
363
+ color: var(--color-base-white);
364
+ }
365
+
366
+ .typography_color-red__iPlbG {
367
+ color: var(--color-primary-red);
368
+ }
369
+
370
+ .typography_color-grey__GA1c2 {
371
+ color: var(--color-base-dark-grey);
372
+ }
373
+
374
+ .typography_color-inherit__RDd0Y {
375
+ color: inherit;
376
+ }
377
+
378
+ .typography_em__E6tX- {
379
+ font-style: italic;
380
+ }
381
+ /* ~~~ */
382
+
383
+ /* Display Headers */
384
+ .typography_display__-F3p4 {
385
+ margin: 0;
386
+ font-family: var(--font-family-sans);
387
+ line-height: 100%;
388
+
389
+ &.typography_large__uq0zC {
390
+ font-size: 96px;
391
+ font-weight: 700;
392
+ letter-spacing: -5px;
393
+ }
394
+
395
+ &.typography_small__wfQ0K {
396
+ font-size: 68px;
397
+ font-weight: 500;
398
+ letter-spacing: -3px;
399
+ }
400
+
401
+ /* Serif and Italic styles */
402
+ &.typography_serif__VSO38,
403
+ &.typography_em__E6tX- {
404
+ font-family: var(--font-family-serif);
405
+ font-weight: 500;
406
+ }
407
+
408
+ /* Serif and Italic adjustments */
409
+ &.typography_large__uq0zC.typography_serif__VSO38,
410
+ &.typography_large__uq0zC.typography_em__E6tX- {
411
+ letter-spacing: -3px;
412
+ }
413
+
414
+ &.typography_small__wfQ0K.typography_serif__VSO38,
415
+ &.typography_small__wfQ0K.typography_em__E6tX- {
416
+ letter-spacing: -2px;
417
+ }
418
+
419
+ @media (max-width: 699px) {
420
+ &.typography_large__uq0zC {
421
+ font-size: 38px;
422
+ letter-spacing: -1.5px;
423
+ }
424
+
425
+ &.typography_small__wfQ0K {
426
+ font-size: 32px;
427
+ letter-spacing: -1.5px;
428
+ }
429
+
430
+ &.typography_large__uq0zC.typography_serif__VSO38,
431
+ &.typography_large__uq0zC.typography_em__E6tX-,
432
+ &.typography_small__wfQ0K.typography_serif__VSO38,
433
+ &.typography_small__wfQ0K.typography_em__E6tX- {
434
+ letter-spacing: -0.5px;
435
+ }
436
+ }
437
+ }
438
+
439
+ /* Headers */
440
+ .typography_header__BexiD {
441
+ margin: 0;
442
+ font-family: var(--font-family-sans);
443
+ font-weight: 500;
444
+
445
+ &.typography_large__uq0zC {
446
+ font-size: 44px;
447
+ line-height: 48px;
448
+ letter-spacing: -1.5px;
449
+ }
450
+
451
+ &.typography_medium__K0uZD {
452
+ font-size: 34px;
453
+ line-height: 40px;
454
+ letter-spacing: -1px;
455
+ }
456
+
457
+ &.typography_small__wfQ0K {
458
+ font-size: 26px;
459
+ line-height: 32px;
460
+ letter-spacing: -0.5px;
461
+ }
462
+
463
+ /* Serif and Italic styles */
464
+ &.typography_serif__VSO38,
465
+ &.typography_em__E6tX- {
466
+ font-family: var(--font-family-serif);
467
+ }
468
+
469
+ /* Serif and Italic letter-spacing overrides */
470
+ &.typography_large__uq0zC.typography_serif__VSO38,
471
+ &.typography_large__uq0zC.typography_em__E6tX- {
472
+ letter-spacing: -0.5px;
473
+ }
474
+
475
+ &.typography_medium__K0uZD.typography_serif__VSO38,
476
+ &.typography_medium__K0uZD.typography_em__E6tX- {
477
+ letter-spacing: -0.5px;
478
+ }
479
+
480
+ &.typography_small__wfQ0K.typography_serif__VSO38,
481
+ &.typography_small__wfQ0K.typography_em__E6tX- {
482
+ letter-spacing: -0.5px;
483
+ }
484
+
485
+ @media (max-width: 699px) {
486
+ &.typography_large__uq0zC {
487
+ font-size: 28px;
488
+ line-height: 34px;
489
+ letter-spacing: -1.5px;
490
+ }
491
+
492
+ &.typography_medium__K0uZD {
493
+ font-size: 24px;
494
+ line-height: 28px;
495
+ letter-spacing: -1px;
496
+ }
497
+
498
+ &.typography_small__wfQ0K {
499
+ font-size: 20px;
500
+ line-height: 26px;
501
+ letter-spacing: -0.75px;
502
+ }
503
+
504
+ /* Mobile overrides for serif/italic letter-spacing */
505
+ &.typography_large__uq0zC.typography_serif__VSO38,
506
+ &.typography_large__uq0zC.typography_em__E6tX-,
507
+ &.typography_medium__K0uZD.typography_serif__VSO38,
508
+ &.typography_medium__K0uZD.typography_em__E6tX-,
509
+ &.typography_small__wfQ0K.typography_serif__VSO38,
510
+ &.typography_small__wfQ0K.typography_em__E6tX- {
511
+ letter-spacing: -0.5px;
512
+ }
513
+ }
514
+ }
515
+
516
+ /* Subtitle */
517
+ .typography_subtitle__aoFTV {
518
+ margin: 0;
519
+ font-family: var(--font-family-sans);
520
+ font-weight: 500;
521
+
522
+ &.typography_large__uq0zC {
523
+ font-size: 19px;
524
+ line-height: 26px;
525
+ letter-spacing: -0.5px;
526
+ }
527
+
528
+ &.typography_small__wfQ0K {
529
+ font-size: 17px;
530
+ line-height: 24px;
531
+ letter-spacing: -0.5px;
532
+ }
533
+
534
+ @media (max-width: 699px) {
535
+ &.typography_large__uq0zC {
536
+ font-size: 17px;
537
+ line-height: 24px;
538
+ letter-spacing: -0.5px;
539
+ }
540
+
541
+ &.typography_small__wfQ0K {
542
+ font-size: 14px;
543
+ line-height: 20px;
544
+ letter-spacing: -0.2px;
545
+ }
546
+ }
547
+ }
548
+
549
+ /* Body Copy */
550
+ .typography_bodycopy__vYtQ8 {
551
+ margin: 0;
552
+ font-family: var(--font-family-sans);
553
+ font-weight: 400;
554
+
555
+ &.typography_large__uq0zC {
556
+ font-size: 19px;
557
+ line-height: 26px;
558
+ letter-spacing: -0.5px;
559
+ }
560
+
561
+ &.typography_medium__K0uZD {
562
+ font-size: 17px;
563
+ line-height: 24px;
564
+ letter-spacing: -0.5px;
565
+ }
566
+
567
+ &.typography_small__wfQ0K {
568
+ font-size: 14px;
569
+ line-height: 20px;
570
+ letter-spacing: -0.5px;
571
+ }
572
+
573
+ @media (max-width: 699px) {
574
+ &.typography_large__uq0zC {
575
+ font-size: 17px;
576
+ line-height: 24px;
577
+ letter-spacing: -0.5px;
578
+ }
579
+
580
+ &.typography_medium__K0uZD {
581
+ font-size: 14px;
582
+ line-height: 20px;
583
+ letter-spacing: -0.2px;
584
+ }
585
+
586
+ &.typography_small__wfQ0K {
587
+ font-size: 11px;
588
+ line-height: 16px;
589
+ letter-spacing: -0.2px;
590
+ }
591
+ }
592
+ }
593
+
594
+ /* Overline */
595
+ .typography_overline__EnUK3 {
596
+ margin: 0;
597
+ font-family: var(--font-family-sans);
598
+ font-weight: 500;
599
+ text-transform: uppercase;
600
+
601
+ &.typography_large__uq0zC {
602
+ font-size: 14px;
603
+ line-height: 18px;
604
+ letter-spacing: 0.3px;
605
+ }
606
+
607
+ &.typography_small__wfQ0K {
608
+ font-size: 12px;
609
+ line-height: 14px;
610
+ letter-spacing: 0.2px;
611
+ }
612
+
613
+ @media (max-width: 699px) {
614
+ &.typography_large__uq0zC {
615
+ line-height: 17px;
616
+ letter-spacing: 0.3px; /* Added to ensure it stays */
617
+ }
618
+
619
+ &.typography_small__wfQ0K {
620
+ line-height: 14px;
621
+ letter-spacing: 0.3px;
622
+ }
623
+ }
624
+ }
625
+
626
+ /* Button Text */
627
+ .typography_buttontext__vcxNi {
628
+ margin: 0;
629
+ font-family: var(--font-family-sans);
630
+ font-size: 17px;
631
+ line-height: 20px;
632
+ letter-spacing: -0.5px;
633
+ font-weight: 400;
634
+
635
+ @media (max-width: 699px) {
636
+ font-weight: 500;
637
+ line-height: 17px;
638
+ }
639
+ }
640
+
641
+ /* Caption Text */
642
+ .typography_captiontext__91UFb {
643
+ margin: 0;
644
+ font-family: var(--font-family-sans);
645
+ font-weight: 400;
646
+ font-size: 17px;
647
+ line-height: 24px;
648
+ letter-spacing: -0.5px;
649
+
650
+ @media (max-width: 699px) {
651
+ font-size: 14px;
652
+ line-height: 20px;
653
+ letter-spacing: -0.2px;
654
+ }
655
+ }
656
+
657
+ /* Navigation Text */
658
+ .typography_navigationtext__YfGf7 {
659
+ margin: 0;
660
+ font-family: var(--font-family-sans);
661
+ font-size: 19px;
662
+ line-height: 19px;
663
+ letter-spacing: 0.4px;
664
+ font-weight: 500;
665
+
666
+ @media (max-width: 699px) {
667
+ font-size: 17px;
668
+ line-height: 17px;
669
+ }
670
+ }
671
+
346
672
  .core-theme-module_coreTheme__pWxYB {
347
673
  /* RBO Red */
348
674
  /* Primary Palette */
@@ -440,15 +766,19 @@
440
766
 
441
767
  --rotator-button-width: 60px;
442
768
  --rotator-button-icon-width: 36px;
769
+ --rotator-button-small-width: 44px;
770
+ --rotator-button-small-icon-width: 28px;
443
771
  --rotator-button-color: var(--color-primary-black);
444
772
  --rotator-button-bg-color: var(--color-base-light-grey);
445
773
  --rotator-button-hover-color: var(--color-base-white);
446
774
  --rotator-button-hover-bg-color: var(--color-primary-red);
447
775
 
448
- --carousel-image-caption-height: 17px;
776
+ --carousel-image-caption-margin: 12px;
449
777
 
450
778
  --line-height-listing: 36px;
451
779
 
780
+ --upsell-border-color: var(--color-primary-red);
781
+
452
782
  --font-feature-settings-body: 'pnum' on, 'onum' on, 'liga' off;
453
783
  --font-feature-settings-header: 'tnum' on, 'lnum' on;
454
784
  --font-feature-settings-subtitle: 'tnum' on, 'lnum' on;
@@ -462,7 +792,6 @@
462
792
  --grid-margin: 20px;
463
793
  --rotator-button-width: 40px;
464
794
  --rotator-button-icon-width: 24px;
465
- --carousel-image-caption-height: 14px;
466
795
 
467
796
  --line-height-listing: 34px;
468
797
 
@@ -480,7 +809,6 @@
480
809
  --grid-margin: 32px;
481
810
  --rotator-button-width: 44px;
482
811
  --rotator-button-icon-width: 24px;
483
- --carousel-image-caption-height: 14px;
484
812
  }
485
813
 
486
814
  /* ----- Variables already used in Harmonic END ----- */
@@ -656,7 +984,7 @@
656
984
  --font-family-sans: 'GreyLLTT', 'Roboto', sans-serif;
657
985
  --font-family-serif: 'VictorSerif', 'Inria Serif Regular', serif;
658
986
 
659
- --harmonic-text-link-underline-offset: 6px;
987
+ --harmonic-text-link-underline-offset: 4px;
660
988
  --harmonic-font-size-navigation: 19px;
661
989
 
662
990
  --announcement-banner-color: var(--color-base-white);
@@ -855,6 +1183,8 @@
855
1183
 
856
1184
  --heading-promo-bg-color: var(--color-base-black);
857
1185
  --page-header-bg-color: var(--color-primary-black);
1186
+
1187
+ --upsell-border-color: var(--color-primary-black);
858
1188
  }
859
1189
 
860
1190
  .cinema-theme-module_cinemaTheme__f5QFs {
@@ -900,9 +1230,12 @@
900
1230
  --information-panel-button-hover-color: var(--color-rbo-red-hovered);
901
1231
  --information-panel-button-pressed-color: var(--color-rbo-red-pressed);
902
1232
 
903
- --heading-promo-bg-color: var(--color-base-white);
1233
+ --heading-promo-bg-color: var(--color-base-white);
904
1234
  --page-header-bg-color: var(--color-primary-black);
905
- };
1235
+
1236
+ --upsell-border-color: var(--color-primary-black);
1237
+ }
1238
+
906
1239
  .schools-theme-module_schoolsTheme__CWHba {
907
1240
  /* Schools theme overrides */
908
1241
  --base-color-primary: #c8102e;