@royaloperahouse/harmonic 0.11.0-e → 0.11.0-g
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/atoms/SectionSplitter/SectionSplitter.d.ts +1 -1
- package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +1 -1
- package/dist/harmonic.cjs.development.js +30 -20
- 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 +30 -20
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/types.d.ts +8 -16
- package/package.json +1 -1
package/dist/harmonic.esm.js
CHANGED
|
@@ -3563,12 +3563,15 @@ var SecondaryLogo = function SecondaryLogo(_ref) {
|
|
|
3563
3563
|
|
|
3564
3564
|
var _templateObject$h, _templateObject2$a;
|
|
3565
3565
|
var SectionSplitterContainer = /*#__PURE__*/styled(Grid)(_templateObject$h || (_templateObject$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 4px;\n"])));
|
|
3566
|
-
var Splitter = /*#__PURE__*/styled.div(_templateObject2$a || (_templateObject2$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n height: 4px;\n background: var(--base-
|
|
3566
|
+
var Splitter = /*#__PURE__*/styled.div(_templateObject2$a || (_templateObject2$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n height: 4px;\n background: var(--color-base-light-grey);\n"])));
|
|
3567
3567
|
|
|
3568
3568
|
var SectionSplitter = function SectionSplitter(_ref) {
|
|
3569
3569
|
var _ref$fullWidth = _ref.fullWidth,
|
|
3570
|
-
fullWidth = _ref$fullWidth === void 0 ? true : _ref$fullWidth
|
|
3571
|
-
|
|
3570
|
+
fullWidth = _ref$fullWidth === void 0 ? true : _ref$fullWidth,
|
|
3571
|
+
className = _ref.className;
|
|
3572
|
+
return /*#__PURE__*/React__default.createElement(SectionSplitterContainer, {
|
|
3573
|
+
className: className
|
|
3574
|
+
}, fullWidth ? (/*#__PURE__*/React__default.createElement(GridItem, {
|
|
3572
3575
|
columnStartDesktop: 1,
|
|
3573
3576
|
columnSpanDesktop: 16,
|
|
3574
3577
|
columnStartDevice: 1,
|
|
@@ -10627,31 +10630,45 @@ var StatusBanner = function StatusBanner(_ref) {
|
|
|
10627
10630
|
};
|
|
10628
10631
|
|
|
10629
10632
|
var _templateObject$1d;
|
|
10630
|
-
var SectionTitleWrapper = /*#__PURE__*/styled.div(_templateObject$1d || (_templateObject$1d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 30px 0;\n\n & > div {\n row-gap: 0;\n }\n\n & h1,\n & h2 {\n margin: 16px 0;\n white-space: pre-wrap;\n }\n\n @media ", " {\n & h1,\n & h2 {\n margin: 12px 0;\n }\n }\n\n & div {\n
|
|
10633
|
+
var SectionTitleWrapper = /*#__PURE__*/styled.div(_templateObject$1d || (_templateObject$1d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 30px 0;\n\n & > div {\n row-gap: 0;\n }\n\n & h1,\n & h2 {\n margin: 16px 0;\n white-space: pre-wrap;\n }\n\n @media ", " {\n & h1,\n & h2 {\n margin: 12px 0;\n }\n }\n\n & div {\n margin-block-start: 0;\n }\n"])), devices.mobile);
|
|
10634
|
+
|
|
10635
|
+
/* ~~~~~~~ new harmonic types ~~~~~~~ */
|
|
10636
|
+
var HarmonicSize = {
|
|
10637
|
+
Small: 'small',
|
|
10638
|
+
Medium: 'medium',
|
|
10639
|
+
Large: 'large'
|
|
10640
|
+
};
|
|
10641
|
+
var HeaderHierarchy = {
|
|
10642
|
+
H1: 'h1',
|
|
10643
|
+
H2: 'h2',
|
|
10644
|
+
H3: 'h3'
|
|
10645
|
+
};
|
|
10631
10646
|
|
|
10632
10647
|
var SectionTitle = function SectionTitle(_ref) {
|
|
10633
10648
|
var title = _ref.title,
|
|
10634
10649
|
_ref$size = _ref.size,
|
|
10635
10650
|
size = _ref$size === void 0 ? 'small' : _ref$size,
|
|
10636
10651
|
description = _ref.description,
|
|
10637
|
-
|
|
10638
|
-
var headingLevel = size === 'large' ?
|
|
10639
|
-
|
|
10652
|
+
className = _ref.className;
|
|
10653
|
+
var headingLevel = size === 'large' ? HeaderHierarchy.H1 : HeaderHierarchy.H2;
|
|
10654
|
+
var headingSize = size === 'large' ? HarmonicSize.Large : HarmonicSize.Medium;
|
|
10655
|
+
return /*#__PURE__*/React__default.createElement(SectionTitleWrapper, {
|
|
10656
|
+
className: className
|
|
10657
|
+
}, /*#__PURE__*/React__default.createElement(Grid, null, /*#__PURE__*/React__default.createElement(GridItem, {
|
|
10640
10658
|
columnStartDesktop: 3,
|
|
10641
10659
|
columnSpanDesktop: 12,
|
|
10642
10660
|
columnStartDevice: 2,
|
|
10643
10661
|
columnSpanDevice: 12
|
|
10644
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
10645
|
-
|
|
10646
|
-
|
|
10662
|
+
}, /*#__PURE__*/React__default.createElement(HarmonicHeader, {
|
|
10663
|
+
hierarchy: headingLevel,
|
|
10664
|
+
size: headingSize
|
|
10647
10665
|
}, title)), description && (/*#__PURE__*/React__default.createElement(GridItem, {
|
|
10648
10666
|
columnStartDesktop: 3,
|
|
10649
10667
|
columnSpanDesktop: 8,
|
|
10650
10668
|
columnStartDevice: 2,
|
|
10651
10669
|
columnSpanDevice: 12
|
|
10652
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
10653
|
-
|
|
10654
|
-
tag: "div"
|
|
10670
|
+
}, /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
|
|
10671
|
+
size: "large"
|
|
10655
10672
|
}, description)))));
|
|
10656
10673
|
};
|
|
10657
10674
|
|
|
@@ -13602,12 +13619,5 @@ var GlobalStyles = /*#__PURE__*/createGlobalStyle(_templateObject$1q || (_templa
|
|
|
13602
13619
|
return theme.footer.tablet.paddingBottom;
|
|
13603
13620
|
}, devices.desktop, devices.largeDesktop);
|
|
13604
13621
|
|
|
13605
|
-
/* ~~~~~~~ new harmonic types ~~~~~~~ */
|
|
13606
|
-
var HarmonicSize = {
|
|
13607
|
-
Small: 'small',
|
|
13608
|
-
Medium: 'medium',
|
|
13609
|
-
Large: 'large'
|
|
13610
|
-
};
|
|
13611
|
-
|
|
13612
13622
|
export { Accordion, Accordions, AltHeader, AnchorBar, AnchorTabBar, AnnouncementBanner, AspectRatio, AuxiliaryButton, AuxiliaryNav, BodyContent, BodyCopyHarmonic, BodyText, ButtonText, ButtonType, Caption, Card, Cards, Carousel, CarouselType, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, HarmonicHeader, HarmonicOverline, HarmonicSize, HarmonicSubtitle, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCinema as HighlightsCarouselCinema, HighlightsCore as HighlightsCarouselCore, HighlightsStream as HighlightsCarouselStream, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, MiniCard, MinimalCarousel, ModalWindow, Navigation, NavigationText, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Quote, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, SelectComponent as Select2, SelectComponent$1 as Select2Async, SignUpFormComponent as SignUpForm, Sponsorship, StatusBanner, Component as Stepper, StickyBar, StreamBadge, Subtitle, Tab, TabLink, Table, Tabs, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, ThemeColor, Theme as ThemeProvider, ThemeType, Tickbox, Tickbox2, TickboxMode, Timer, TitleWithCTA, TypeTags, UpsellCard, UpsellSection, VideoControls, VideoWithControls$1 as VideoWithControls, breakpoints, devices, zIndexes };
|
|
13613
13623
|
//# sourceMappingURL=harmonic.esm.js.map
|