@royaloperahouse/harmonic 0.11.0-e → 0.11.0-f
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/molecules/SectionTitle/SectionTitle.d.ts +1 -1
- package/dist/harmonic.cjs.development.js +24 -17
- 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 +24 -17
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/types.d.ts +5 -13
- package/package.json +1 -1
package/dist/harmonic.esm.js
CHANGED
|
@@ -10627,31 +10627,45 @@ var StatusBanner = function StatusBanner(_ref) {
|
|
|
10627
10627
|
};
|
|
10628
10628
|
|
|
10629
10629
|
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
|
|
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 margin-block-start: 0;\n }\n"])), devices.mobile);
|
|
10631
|
+
|
|
10632
|
+
/* ~~~~~~~ new harmonic types ~~~~~~~ */
|
|
10633
|
+
var HarmonicSize = {
|
|
10634
|
+
Small: 'small',
|
|
10635
|
+
Medium: 'medium',
|
|
10636
|
+
Large: 'large'
|
|
10637
|
+
};
|
|
10638
|
+
var HeaderHierarchy = {
|
|
10639
|
+
H1: 'h1',
|
|
10640
|
+
H2: 'h2',
|
|
10641
|
+
H3: 'h3'
|
|
10642
|
+
};
|
|
10631
10643
|
|
|
10632
10644
|
var SectionTitle = function SectionTitle(_ref) {
|
|
10633
10645
|
var title = _ref.title,
|
|
10634
10646
|
_ref$size = _ref.size,
|
|
10635
10647
|
size = _ref$size === void 0 ? 'small' : _ref$size,
|
|
10636
10648
|
description = _ref.description,
|
|
10637
|
-
|
|
10638
|
-
var headingLevel = size === 'large' ?
|
|
10639
|
-
|
|
10649
|
+
className = _ref.className;
|
|
10650
|
+
var headingLevel = size === 'large' ? HeaderHierarchy.H1 : HeaderHierarchy.H2;
|
|
10651
|
+
var headingSize = size === 'large' ? HarmonicSize.Large : HarmonicSize.Medium;
|
|
10652
|
+
return /*#__PURE__*/React__default.createElement(SectionTitleWrapper, {
|
|
10653
|
+
className: className
|
|
10654
|
+
}, /*#__PURE__*/React__default.createElement(Grid, null, /*#__PURE__*/React__default.createElement(GridItem, {
|
|
10640
10655
|
columnStartDesktop: 3,
|
|
10641
10656
|
columnSpanDesktop: 12,
|
|
10642
10657
|
columnStartDevice: 2,
|
|
10643
10658
|
columnSpanDevice: 12
|
|
10644
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
10645
|
-
|
|
10646
|
-
|
|
10659
|
+
}, /*#__PURE__*/React__default.createElement(HarmonicHeader, {
|
|
10660
|
+
hierarchy: headingLevel,
|
|
10661
|
+
size: headingSize
|
|
10647
10662
|
}, title)), description && (/*#__PURE__*/React__default.createElement(GridItem, {
|
|
10648
10663
|
columnStartDesktop: 3,
|
|
10649
10664
|
columnSpanDesktop: 8,
|
|
10650
10665
|
columnStartDevice: 2,
|
|
10651
10666
|
columnSpanDevice: 12
|
|
10652
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
10653
|
-
|
|
10654
|
-
tag: "div"
|
|
10667
|
+
}, /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
|
|
10668
|
+
size: "large"
|
|
10655
10669
|
}, description)))));
|
|
10656
10670
|
};
|
|
10657
10671
|
|
|
@@ -13602,12 +13616,5 @@ var GlobalStyles = /*#__PURE__*/createGlobalStyle(_templateObject$1q || (_templa
|
|
|
13602
13616
|
return theme.footer.tablet.paddingBottom;
|
|
13603
13617
|
}, devices.desktop, devices.largeDesktop);
|
|
13604
13618
|
|
|
13605
|
-
/* ~~~~~~~ new harmonic types ~~~~~~~ */
|
|
13606
|
-
var HarmonicSize = {
|
|
13607
|
-
Small: 'small',
|
|
13608
|
-
Medium: 'medium',
|
|
13609
|
-
Large: 'large'
|
|
13610
|
-
};
|
|
13611
|
-
|
|
13612
13619
|
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
13620
|
//# sourceMappingURL=harmonic.esm.js.map
|