@royaloperahouse/harmonic 0.2.3-g → 0.2.3-i
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/components/Typography/Typography.d.ts +0 -1
- package/dist/components/Typography/utils.d.ts +3 -0
- package/dist/harmonic.cjs.development.css +231 -260
- package/dist/harmonic.cjs.development.js +84 -14
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +81 -19
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -365,16 +365,39 @@ function _taggedTemplateLiteralLoose(e, t) {
|
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
// Utility function for creating className strings
|
|
368
|
-
var createClassNames = function createClassNames(baseClass, options) {
|
|
369
|
-
var
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
368
|
+
var createClassNames = function createClassNames(baseClass, options, styles) {
|
|
369
|
+
var classes = [];
|
|
370
|
+
// Base class
|
|
371
|
+
if (styles[baseClass]) {
|
|
372
|
+
classes.push(styles[baseClass]);
|
|
373
|
+
}
|
|
374
|
+
// Size modifier
|
|
375
|
+
if (options.size && styles[baseClass + "--" + options.size]) {
|
|
376
|
+
classes.push(styles[baseClass + "--" + options.size]);
|
|
377
|
+
}
|
|
378
|
+
// Color modifier
|
|
379
|
+
if (options.color && styles[baseClass + "--" + options.color]) {
|
|
380
|
+
classes.push(styles[baseClass + "--" + options.color]);
|
|
381
|
+
}
|
|
382
|
+
// Typography variants
|
|
383
|
+
if (options.serif && styles[baseClass + "--serif"]) {
|
|
384
|
+
classes.push(styles[baseClass + "--serif"]);
|
|
385
|
+
}
|
|
386
|
+
if (options.em && styles[baseClass + "--em"]) {
|
|
387
|
+
classes.push(styles[baseClass + "--em"]);
|
|
388
|
+
}
|
|
389
|
+
if (options.bold && styles[baseClass + "--bold"]) {
|
|
390
|
+
classes.push(styles[baseClass + "--bold"]);
|
|
391
|
+
}
|
|
392
|
+
// External className (not from CSS modules)
|
|
393
|
+
if (options.className) {
|
|
394
|
+
classes.push(options.className);
|
|
395
|
+
}
|
|
396
|
+
return classes.filter(Boolean).join(' ');
|
|
376
397
|
};
|
|
377
398
|
|
|
399
|
+
var styles = {"display":"typography-module_display__ZHsz9","header":"typography-module_header__FVsLI","subtitle":"typography-module_subtitle__x3sSn","bodycopy":"typography-module_bodycopy__-BY2U","overline":"typography-module_overline__y1yCC","buttontext":"typography-module_buttontext__Gp0W-","captiontext":"typography-module_captiontext__zyA--","navigationtext":"typography-module_navigationtext__Qj6Zw","display--large":"typography-module_display--large__RwPQD","display--small":"typography-module_display--small__XWUSJ","header--large":"typography-module_header--large__2vP3p","header--medium":"typography-module_header--medium__OgzlB","header--small":"typography-module_header--small__zLuFf","subtitle--large":"typography-module_subtitle--large__1Ep9J","subtitle--medium":"typography-module_subtitle--medium__8FxeU","subtitle--small":"typography-module_subtitle--small__Vt9bZ","bodycopy--large":"typography-module_bodycopy--large__BNzf2","bodycopy--medium":"typography-module_bodycopy--medium__cwJEu","bodycopy--small":"typography-module_bodycopy--small__fTLSM","overline--large":"typography-module_overline--large__79WUM","overline--medium":"typography-module_overline--medium__Y5z3w","overline--small":"typography-module_overline--small__MGEG6","display--primary":"typography-module_display--primary__9sTwU","header--primary":"typography-module_header--primary__KF0PJ","subtitle--primary":"typography-module_subtitle--primary__yL-hS","bodycopy--primary":"typography-module_bodycopy--primary__5Uo2D","overline--primary":"typography-module_overline--primary__a2NSa","buttontext--primary":"typography-module_buttontext--primary__HnmE3","captiontext--primary":"typography-module_captiontext--primary__mmafI","navigationtext--primary":"typography-module_navigationtext--primary__vIsUl","display--black":"typography-module_display--black__8hmsx","header--black":"typography-module_header--black__M3I14","subtitle--black":"typography-module_subtitle--black__IQRSo","bodycopy--black":"typography-module_bodycopy--black__J8BNP","overline--black":"typography-module_overline--black__RUDoj","buttontext--black":"typography-module_buttontext--black__irjmz","captiontext--black":"typography-module_captiontext--black__7axhP","navigationtext--black":"typography-module_navigationtext--black__wDz-G","display--white":"typography-module_display--white__3QA6W","header--white":"typography-module_header--white__mm-ex","subtitle--white":"typography-module_subtitle--white__VzQ3K","bodycopy--white":"typography-module_bodycopy--white__NJ8J8","overline--white":"typography-module_overline--white__cV5QV","buttontext--white":"typography-module_buttontext--white__rrr8U","captiontext--white":"typography-module_captiontext--white__OMFwW","navigationtext--white":"typography-module_navigationtext--white__5YDdY","display--red":"typography-module_display--red__khdLJ","header--red":"typography-module_header--red__hxuj9","subtitle--red":"typography-module_subtitle--red__gSK7d","bodycopy--red":"typography-module_bodycopy--red__P5Mau","overline--red":"typography-module_overline--red__OW5dE","buttontext--red":"typography-module_buttontext--red__mlRi2","captiontext--red":"typography-module_captiontext--red__jMQIK","navigationtext--red":"typography-module_navigationtext--red__-QADV","display--grey":"typography-module_display--grey__RsgTf","header--grey":"typography-module_header--grey__rC0vN","subtitle--grey":"typography-module_subtitle--grey__1nkEx","bodycopy--grey":"typography-module_bodycopy--grey__SNnaU","overline--grey":"typography-module_overline--grey__lGOsK","buttontext--grey":"typography-module_buttontext--grey__1Y4oX","captiontext--grey":"typography-module_captiontext--grey__V0MLc","navigationtext--grey":"typography-module_navigationtext--grey__xi3sz","display--inherit":"typography-module_display--inherit__ZNOHM","header--inherit":"typography-module_header--inherit__qmHQE","subtitle--inherit":"typography-module_subtitle--inherit__mly-X","bodycopy--inherit":"typography-module_bodycopy--inherit__CoC-f","overline--inherit":"typography-module_overline--inherit__Cq4ni","buttontext--inherit":"typography-module_buttontext--inherit__vguWx","captiontext--inherit":"typography-module_captiontext--inherit__ya6gm","navigationtext--inherit":"typography-module_navigationtext--inherit__cJLWf","display--serif":"typography-module_display--serif__C0-Ve","header--serif":"typography-module_header--serif__uTGCc","display--em":"typography-module_display--em__h2bPV","header--em":"typography-module_header--em__UFQIA","display--bold":"typography-module_display--bold__PG-8g","header--bold":"typography-module_header--bold__InvJk","subtitle--bold":"typography-module_subtitle--bold__Subov","bodycopy--bold":"typography-module_bodycopy--bold__nZX3C","overline--bold":"typography-module_overline--bold__3mUXy","buttontext--bold":"typography-module_buttontext--bold__rBKIJ","captiontext--bold":"typography-module_captiontext--bold__ebTyV","navigationtext--bold":"typography-module_navigationtext--bold__SRlV2"};
|
|
400
|
+
|
|
378
401
|
var _excluded = ["children", "size", "color", "className"],
|
|
379
402
|
_excluded2 = ["children", "size", "color", "className"];
|
|
380
403
|
/* ~~~ Headers - size and hierarchy set separately ~~~ */
|
|
@@ -393,7 +416,7 @@ var HarmonicHeader = function HarmonicHeader(_ref2) {
|
|
|
393
416
|
serif: serif,
|
|
394
417
|
em: em,
|
|
395
418
|
className: className
|
|
396
|
-
});
|
|
419
|
+
}, styles);
|
|
397
420
|
return /*#__PURE__*/React__default.createElement(Tag, {
|
|
398
421
|
className: classNames
|
|
399
422
|
}, children);
|
|
@@ -409,7 +432,7 @@ var HarmonicSubtitle = function HarmonicSubtitle(_ref3) {
|
|
|
409
432
|
size: size,
|
|
410
433
|
color: color,
|
|
411
434
|
className: className
|
|
412
|
-
});
|
|
435
|
+
}, styles);
|
|
413
436
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
414
437
|
className: classNames
|
|
415
438
|
}, children);
|
|
@@ -427,7 +450,7 @@ var BodyCopyHarmonic = function BodyCopyHarmonic(_ref4) {
|
|
|
427
450
|
size: size,
|
|
428
451
|
color: color,
|
|
429
452
|
className: className
|
|
430
|
-
});
|
|
453
|
+
}, styles);
|
|
431
454
|
return /*#__PURE__*/React__default.createElement("p", Object.assign({
|
|
432
455
|
className: classNames
|
|
433
456
|
}, props), children);
|
|
@@ -444,11 +467,51 @@ var HarmonicOverline = function HarmonicOverline(_ref5) {
|
|
|
444
467
|
size: size,
|
|
445
468
|
color: color,
|
|
446
469
|
className: className
|
|
447
|
-
});
|
|
470
|
+
}, styles);
|
|
448
471
|
return /*#__PURE__*/React__default.createElement("p", Object.assign({
|
|
449
472
|
className: classNames
|
|
450
473
|
}, props), children);
|
|
451
474
|
};
|
|
475
|
+
/* ~~~ Other - (might relocate these) ~~~ */
|
|
476
|
+
var ButtonText = function ButtonText(_ref6) {
|
|
477
|
+
var children = _ref6.children,
|
|
478
|
+
_ref6$color = _ref6.color,
|
|
479
|
+
color = _ref6$color === void 0 ? 'primary' : _ref6$color,
|
|
480
|
+
className = _ref6.className;
|
|
481
|
+
var classNames = createClassNames('buttontext', {
|
|
482
|
+
color: color,
|
|
483
|
+
className: className
|
|
484
|
+
}, styles);
|
|
485
|
+
return /*#__PURE__*/React__default.createElement("p", {
|
|
486
|
+
className: classNames
|
|
487
|
+
}, children);
|
|
488
|
+
};
|
|
489
|
+
var Caption = function Caption(_ref7) {
|
|
490
|
+
var children = _ref7.children,
|
|
491
|
+
_ref7$color = _ref7.color,
|
|
492
|
+
color = _ref7$color === void 0 ? 'primary' : _ref7$color,
|
|
493
|
+
className = _ref7.className;
|
|
494
|
+
var classNames = createClassNames('captiontext', {
|
|
495
|
+
color: color,
|
|
496
|
+
className: className
|
|
497
|
+
}, styles);
|
|
498
|
+
return /*#__PURE__*/React__default.createElement("p", {
|
|
499
|
+
className: classNames
|
|
500
|
+
}, children);
|
|
501
|
+
};
|
|
502
|
+
var NavigationText = function NavigationText(_ref8) {
|
|
503
|
+
var children = _ref8.children,
|
|
504
|
+
_ref8$color = _ref8.color,
|
|
505
|
+
color = _ref8$color === void 0 ? 'primary' : _ref8$color,
|
|
506
|
+
className = _ref8.className;
|
|
507
|
+
var classNames = createClassNames('navigationtext', {
|
|
508
|
+
color: color,
|
|
509
|
+
className: className
|
|
510
|
+
}, styles);
|
|
511
|
+
return /*#__PURE__*/React__default.createElement("p", {
|
|
512
|
+
className: classNames
|
|
513
|
+
}, children);
|
|
514
|
+
};
|
|
452
515
|
|
|
453
516
|
// eslint-disable-next-line no-shadow
|
|
454
517
|
(function (Colors) {
|
|
@@ -10165,8 +10228,8 @@ var PromoWithTitleContentWrapper = /*#__PURE__*/styled__default.div(_templateObj
|
|
|
10165
10228
|
var imageToLeft = _ref4.imageToLeft;
|
|
10166
10229
|
return imageToLeft ? 'right' : 'left';
|
|
10167
10230
|
}, devices.mobile);
|
|
10168
|
-
var HarmonicHeaderWithWrapper = /*#__PURE__*/styled__default(HarmonicHeader)(_templateObject4$A || (_templateObject4$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n
|
|
10169
|
-
var HarmonicSubtitleWithWrapper = /*#__PURE__*/styled__default(HarmonicSubtitle)(_templateObject5$t || (_templateObject5$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n
|
|
10231
|
+
var HarmonicHeaderWithWrapper = /*#__PURE__*/styled__default(HarmonicHeader)(_templateObject4$A || (_templateObject4$A = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-bottom: 32px;\n\n @media ", " {\n padding-bottom: 24px;\n }\n"])), devices.mobile);
|
|
10232
|
+
var HarmonicSubtitleWithWrapper = /*#__PURE__*/styled__default(HarmonicSubtitle)(_templateObject5$t || (_templateObject5$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-wrap: break-word;\n margin-bottom: 16px;\n"])));
|
|
10170
10233
|
var BodyCopyHarmonicWithWrapper = /*#__PURE__*/styled__default(BodyCopyHarmonic)(_templateObject6$n || (_templateObject6$n = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0;\n margin: 0;\n margin-bottom: 32px;\n whiete-space: break-spaces;\n overflow-wrap: break-word;\n\n a {\n text-decoration: underline;\n cursor: pointer;\n\n &[href^='tel:'] {\n text-decoration: none;\n }\n\n &:link {\n color: var(--color-primary-black);\n }\n\n &:visited {\n color: var(--color-base-dark-grey);\n }\n\n &:hover {\n color: var(--color-primary-red);\n }\n }\n @media ", " {\n margin-bottom: 24px;\n }\n"])), devices.mobile);
|
|
10171
10234
|
var ButtonsContainer$3 = /*#__PURE__*/styled__default.div(_templateObject7$h || (_templateObject7$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n gap: 16px;\n margin-top: 32px;\n\n ", "\n\n @media ", " {\n gap: 24px;\n margin-top: 24px;\n flex-direction: column;\n align-items: center;\n }\n\n @media ", " {\n gap: 24px;\n margin-top: 24px;\n align-items: flex-start;\n\n ", "\n }\n"])), function (_ref5) {
|
|
10172
10235
|
var _ref5$primaryButtonTe = _ref5.primaryButtonTextLength,
|
|
@@ -13446,7 +13509,10 @@ exports.AnchorTabBar = AnchorTabBar;
|
|
|
13446
13509
|
exports.AnnouncementBanner = AnnouncementBanner;
|
|
13447
13510
|
exports.AuxiliaryButton = AuxiliaryButton;
|
|
13448
13511
|
exports.AuxiliaryNav = AuxiliaryNav;
|
|
13512
|
+
exports.BodyCopyHarmonic = BodyCopyHarmonic;
|
|
13449
13513
|
exports.BodyText = BodyText;
|
|
13514
|
+
exports.ButtonText = ButtonText;
|
|
13515
|
+
exports.Caption = Caption;
|
|
13450
13516
|
exports.Card = Card;
|
|
13451
13517
|
exports.Cards = Cards;
|
|
13452
13518
|
exports.Carousel = Carousel;
|
|
@@ -13460,7 +13526,10 @@ exports.Footer = Footer;
|
|
|
13460
13526
|
exports.GlobalStyles = GlobalStyles;
|
|
13461
13527
|
exports.Grid = Grid;
|
|
13462
13528
|
exports.GridItem = GridItem;
|
|
13529
|
+
exports.HarmonicHeader = HarmonicHeader;
|
|
13530
|
+
exports.HarmonicOverline = HarmonicOverline;
|
|
13463
13531
|
exports.HarmonicSize = HarmonicSize;
|
|
13532
|
+
exports.HarmonicSubtitle = HarmonicSubtitle;
|
|
13464
13533
|
exports.HarmonicThemeProvider = HarmonicThemeProvider;
|
|
13465
13534
|
exports.Header = Header;
|
|
13466
13535
|
exports.HighlightsCarousel = HighlightsCarousel;
|
|
@@ -13475,6 +13544,7 @@ exports.MiniCard = MiniCard;
|
|
|
13475
13544
|
exports.MinimalCarousel = MinimalCarousel;
|
|
13476
13545
|
exports.ModalWindow = ModalWindow;
|
|
13477
13546
|
exports.Navigation = Navigation;
|
|
13547
|
+
exports.NavigationText = NavigationText;
|
|
13478
13548
|
exports.Overline = Overline;
|
|
13479
13549
|
exports.PageHeadingCinema = PageHeadingCinema;
|
|
13480
13550
|
exports.PageHeadingCompact = PageHeadingCompact;
|