@royaloperahouse/harmonic 0.11.0 → 0.12.0
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/CHANGELOG.md +4 -0
- package/dist/components/molecules/AnchorBar/AnchorBar.style.d.ts +5 -1
- package/dist/components/molecules/Pagination/Pagination.style.d.ts +1 -1
- package/dist/components/organisms/Footer/Footer.style.d.ts +5 -5
- package/dist/harmonic.cjs.development.css +3 -0
- package/dist/harmonic.cjs.development.js +81 -70
- 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 +82 -71
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/anchorBar.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
interface AnchorBarContainerProps {
|
|
2
|
+
withShadow?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare const AnchorBarContainer: import("styled-components").StyledComponent<"div", any, AnchorBarContainerProps, never>;
|
|
2
5
|
export declare const CTAWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
6
|
export declare const CloseButtonWrapper: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
4
7
|
export declare const ContentWrapper: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
8
|
+
export {};
|
|
@@ -4,6 +4,6 @@ export declare const MorePages: import("styled-components").StyledComponent<"spa
|
|
|
4
4
|
export declare const PageNumberWrapper: import("styled-components").StyledComponent<"ol", any, {}, never>;
|
|
5
5
|
export declare const LastPageItem: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
6
6
|
export declare const PreviousPageItem: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
7
|
-
export declare const TextLinkPagination: import("styled-components").StyledComponent<({ children, size, color, className, bold, ...props }: import("../../../types/typography").
|
|
7
|
+
export declare const TextLinkPagination: import("styled-components").StyledComponent<({ children, size, color, className, bold, tag: Tag, ...props }: import("../../../types/typography").IBodyCopyHarmonicProps) => import("react").JSX.Element, any, {
|
|
8
8
|
active?: boolean | undefined;
|
|
9
9
|
}, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const FooterSection: import("styled-components").StyledComponent<"
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const SocialAndNewsletterSection: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
1
|
+
export declare const FooterSection: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const PolicyLinksSection: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps, never>;
|
|
3
|
+
export declare const SocialAndNewsletterSection: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps, never>;
|
|
5
4
|
export declare const SectionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const LogoAndDescriptionSection: import("styled-components").StyledComponent<"div", any,
|
|
5
|
+
export declare const LogoAndDescriptionSection: import("styled-components").StyledComponent<"div", any, import("../../../types/types").IGridItemProps, never>;
|
|
6
|
+
export declare const SponsorLogoContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
7
|
export declare const TextLinkWrapper: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../../types/types").ITextLinkProps>, any, {}, never>;
|
|
8
8
|
export declare const SponsorWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -2965,7 +2965,9 @@ var TertiaryButton = function TertiaryButton(_ref) {
|
|
|
2965
2965
|
if (rest != null && rest.disabled) return;
|
|
2966
2966
|
rest.onClick == null || rest.onClick(e);
|
|
2967
2967
|
}, [rest.disabled, rest.onClick]);
|
|
2968
|
-
return /*#__PURE__*/React__default.createElement(TertiaryButtonWrapper, Object.assign({
|
|
2968
|
+
return /*#__PURE__*/React__default.createElement(TertiaryButtonWrapper, Object.assign({
|
|
2969
|
+
"data-testid": "tertiary-button"
|
|
2970
|
+
}, rest, {
|
|
2969
2971
|
className: className,
|
|
2970
2972
|
onClick: handleClick
|
|
2971
2973
|
}), /*#__PURE__*/React__default.createElement(ButtonText, {
|
|
@@ -3754,17 +3756,18 @@ var DEFAULT_SPONSORSHIP_IFRAME = 'https://static.roh.org.uk/rolex/v4/rolex.html?
|
|
|
3754
3756
|
var DEFAULT_SPONSORSHIP_TITLE = 'rolex';
|
|
3755
3757
|
var DEFAULT_DATA_ROH = 'ImgAdvert';
|
|
3756
3758
|
|
|
3757
|
-
|
|
3759
|
+
var _excluded$7 = ["src", "dataRoh", "title"];
|
|
3758
3760
|
var Sponsorship = function Sponsorship(_ref) {
|
|
3759
3761
|
var _ref$src = _ref.src,
|
|
3760
3762
|
src = _ref$src === void 0 ? DEFAULT_SPONSORSHIP_IFRAME : _ref$src,
|
|
3761
3763
|
_ref$dataRoh = _ref.dataRoh,
|
|
3762
3764
|
dataRoh = _ref$dataRoh === void 0 ? DEFAULT_DATA_ROH : _ref$dataRoh,
|
|
3763
3765
|
_ref$title = _ref.title,
|
|
3764
|
-
title = _ref$title === void 0 ? DEFAULT_SPONSORSHIP_TITLE : _ref$title
|
|
3766
|
+
title = _ref$title === void 0 ? DEFAULT_SPONSORSHIP_TITLE : _ref$title,
|
|
3767
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
3765
3768
|
var linkText = title + " sponsorship";
|
|
3766
3769
|
var linkDescription = linkText + " - visit " + title + "'s website (opens in new tab)";
|
|
3767
|
-
return /*#__PURE__*/React__default.createElement(SponsorshipWrapper,
|
|
3770
|
+
return /*#__PURE__*/React__default.createElement(SponsorshipWrapper, Object.assign({}, rest), /*#__PURE__*/React__default.createElement(SponsorshipLink, {
|
|
3768
3771
|
href: "https://www.rolex.com",
|
|
3769
3772
|
target: "_blank",
|
|
3770
3773
|
rel: "noopener noreferrer",
|
|
@@ -3904,7 +3907,7 @@ var TabLinkWrapper = /*#__PURE__*/styled__default.a(_templateObject$l || (_templ
|
|
|
3904
3907
|
});
|
|
3905
3908
|
var TabLinkIconWrapper = /*#__PURE__*/styled__default.span(_templateObject2$d || (_templateObject2$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: var(--button-icon-width);\n height: var(--button-icon-height);\n margin-right: var(--button-icon-margin);\n"])));
|
|
3906
3909
|
|
|
3907
|
-
var _excluded$
|
|
3910
|
+
var _excluded$8 = ["children", "iconName", "iconDirection", "color", "hoverColor"];
|
|
3908
3911
|
var TabLink = function TabLink(_ref) {
|
|
3909
3912
|
var children = _ref.children,
|
|
3910
3913
|
iconName = _ref.iconName,
|
|
@@ -3913,7 +3916,7 @@ var TabLink = function TabLink(_ref) {
|
|
|
3913
3916
|
color = _ref$color === void 0 ? ThemeColor['base-dark-grey'] : _ref$color,
|
|
3914
3917
|
_ref$hoverColor = _ref.hoverColor,
|
|
3915
3918
|
hoverColor = _ref$hoverColor === void 0 ? ThemeColor['primary-red'] : _ref$hoverColor,
|
|
3916
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3919
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
3917
3920
|
return /*#__PURE__*/React__default.createElement(TabLinkWrapper, Object.assign({
|
|
3918
3921
|
color: color,
|
|
3919
3922
|
iconName: iconName,
|
|
@@ -3962,7 +3965,7 @@ var TextAreaError = /*#__PURE__*/styled__default.div(_templateObject4$4 || (_tem
|
|
|
3962
3965
|
return darkMode ? 'var(--base-color-white)' : 'var(--base-color-errorstate)';
|
|
3963
3966
|
});
|
|
3964
3967
|
|
|
3965
|
-
var _excluded$
|
|
3968
|
+
var _excluded$9 = ["label", "error", "width", "darkMode", "height", "columnStartDesktop", "columnStartDevice", "columnSpanDesktop", "columnSpanDevice", "maxLength", "tabIndex"];
|
|
3966
3969
|
/**
|
|
3967
3970
|
* An HTML textarea component for Harmonic.
|
|
3968
3971
|
*
|
|
@@ -4023,7 +4026,7 @@ var TextArea = function TextArea(_ref) {
|
|
|
4023
4026
|
maxLength = _ref$maxLength === void 0 ? 950 : _ref$maxLength,
|
|
4024
4027
|
_ref$tabIndex = _ref.tabIndex,
|
|
4025
4028
|
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex,
|
|
4026
|
-
textareaProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4029
|
+
textareaProps = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
4027
4030
|
return /*#__PURE__*/React__default.createElement(GridItem, {
|
|
4028
4031
|
columnStartDesktop: columnStartDesktop,
|
|
4029
4032
|
columnSpanDesktop: columnSpanDesktop,
|
|
@@ -4083,7 +4086,7 @@ var ErrorLabel$1 = /*#__PURE__*/styled__default.div(_templateObject6$1 || (_temp
|
|
|
4083
4086
|
});
|
|
4084
4087
|
var BodyCopyHarmonicWithWrapper = /*#__PURE__*/styled__default(BodyCopyHarmonic)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--color-state-error);\n"])));
|
|
4085
4088
|
|
|
4086
|
-
var _excluded$
|
|
4089
|
+
var _excluded$a = ["label", "type", "error", "darkMode", "width"];
|
|
4087
4090
|
/**
|
|
4088
4091
|
* A text field component, that wraps around the native `<input />` element
|
|
4089
4092
|
* and adds some extra states and information around it (i.e. a text and an error labels,
|
|
@@ -4130,7 +4133,7 @@ var TextFieldComponent = function TextFieldComponent(_ref, ref) {
|
|
|
4130
4133
|
_ref$darkMode = _ref.darkMode,
|
|
4131
4134
|
darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
|
|
4132
4135
|
width = _ref.width,
|
|
4133
|
-
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4136
|
+
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
4134
4137
|
var _useState = React.useState(false),
|
|
4135
4138
|
showPassword = _useState[0],
|
|
4136
4139
|
setShowPassword = _useState[1];
|
|
@@ -4228,7 +4231,7 @@ var ErrorLabel$2 = /*#__PURE__*/styled__default.p(_templateObject5$3 || (_templa
|
|
|
4228
4231
|
return darkMode ? theme.colors.white : theme.colors.error;
|
|
4229
4232
|
});
|
|
4230
4233
|
|
|
4231
|
-
var _excluded$
|
|
4234
|
+
var _excluded$b = ["label", "error", "darkMode", "width"];
|
|
4232
4235
|
/**
|
|
4233
4236
|
* @deprecated
|
|
4234
4237
|
*
|
|
@@ -4242,7 +4245,7 @@ var TextFieldLegacy = function TextFieldLegacy(_ref) {
|
|
|
4242
4245
|
_ref$darkMode = _ref.darkMode,
|
|
4243
4246
|
darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
|
|
4244
4247
|
width = _ref.width,
|
|
4245
|
-
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4248
|
+
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
4246
4249
|
return /*#__PURE__*/React__default.createElement(TextFieldContainer, null, /*#__PURE__*/React__default.createElement("label", {
|
|
4247
4250
|
htmlFor: "text-field-input"
|
|
4248
4251
|
}, /*#__PURE__*/React__default.createElement(TextLabel$2, {
|
|
@@ -4271,13 +4274,13 @@ var TextLinkWrapper = /*#__PURE__*/styled__default.a(_templateObject$p || (_temp
|
|
|
4271
4274
|
}, devices.mobile);
|
|
4272
4275
|
var TextLinkIconWrapper = /*#__PURE__*/styled__default.span(_templateObject2$h || (_templateObject2$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: var(--button-icon-width);\n height: var(--button-icon-height);\n margin-left: var(--button-icon-margin);\n"])));
|
|
4273
4276
|
|
|
4274
|
-
var _excluded$
|
|
4277
|
+
var _excluded$c = ["children", "iconName", "iconDirection", "textColor"];
|
|
4275
4278
|
var TextLink = function TextLink(_ref) {
|
|
4276
4279
|
var children = _ref.children,
|
|
4277
4280
|
iconName = _ref.iconName,
|
|
4278
4281
|
iconDirection = _ref.iconDirection,
|
|
4279
4282
|
textColor = _ref.textColor,
|
|
4280
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4283
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
4281
4284
|
var truncatedString = children.substring(0, 30);
|
|
4282
4285
|
return /*#__PURE__*/React__default.createElement(TextLinkWrapper, Object.assign({
|
|
4283
4286
|
color: textColor,
|
|
@@ -4470,7 +4473,7 @@ var ErrorLabel$3 = /*#__PURE__*/styled__default.div(_templateObject6$2 || (_temp
|
|
|
4470
4473
|
return 'var(--base-color-errorstate)';
|
|
4471
4474
|
});
|
|
4472
4475
|
|
|
4473
|
-
var _excluded$
|
|
4476
|
+
var _excluded$d = ["children", "disabled", "error", "darkMode", "blackBox"];
|
|
4474
4477
|
/**
|
|
4475
4478
|
* A Tickbox component, that wraps around the native `<input type="checkbox"/>` element
|
|
4476
4479
|
* and adds some extra styling, states and information around it (i.e. an error label,
|
|
@@ -4499,7 +4502,7 @@ var Tickbox2Component = function Tickbox2Component(_ref, ref) {
|
|
|
4499
4502
|
darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
|
|
4500
4503
|
_ref$blackBox = _ref.blackBox,
|
|
4501
4504
|
blackBox = _ref$blackBox === void 0 ? false : _ref$blackBox,
|
|
4502
|
-
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4505
|
+
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
4503
4506
|
return /*#__PURE__*/React__default.createElement(Container$2, null, /*#__PURE__*/React__default.createElement(TickboxLabel$2, {
|
|
4504
4507
|
darkMode: darkMode,
|
|
4505
4508
|
blackBox: blackBox
|
|
@@ -6082,12 +6085,12 @@ var Navigation = function Navigation(_ref) {
|
|
|
6082
6085
|
};
|
|
6083
6086
|
|
|
6084
6087
|
var _templateObject$D, _templateObject2$t, _templateObject3$j, _templateObject4$f, _templateObject5$b, _templateObject6$8, _templateObject7$5;
|
|
6085
|
-
var FooterSection = /*#__PURE__*/styled__default
|
|
6086
|
-
var
|
|
6087
|
-
var
|
|
6088
|
-
var
|
|
6089
|
-
var
|
|
6090
|
-
var
|
|
6088
|
+
var FooterSection = /*#__PURE__*/styled__default(Grid)(_templateObject$D || (_templateObject$D = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: var(--color-base-black);\n color: var(--color-base-white);\n padding: 44px 0px;\n grid-template-areas: '. . policy policy policy policy social social social social logo logo logo logo . .';\n\n @media ", " {\n padding: 40px 0px;\n gap: 24px;\n }\n\n @media ", " {\n padding: 20px 0px;\n row-gap: 40px;\n grid-template-areas:\n '. social social social social social social social social social social social social .'\n '. policy policy policy policy policy policy policy policy policy policy policy policy .'\n '. logo logo logo logo logo logo logo logo logo logo logo logo .';\n }\n"])), devices.tablet, devices.mobile);
|
|
6089
|
+
var PolicyLinksSection = /*#__PURE__*/styled__default(GridItem)(_templateObject2$t || (_templateObject2$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: policy;\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n @media ", " {\n gap: 20px;\n }\n\n @media ", " {\n gap: 12px;\n }\n"])), devices.tablet, devices.mobile);
|
|
6090
|
+
var SocialAndNewsletterSection = /*#__PURE__*/styled__default(GridItem)(_templateObject3$j || (_templateObject3$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: social;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n\n @media ", " {\n gap: 40px;\n }\n"])), devices.mobile);
|
|
6091
|
+
var SectionWrapper = /*#__PURE__*/styled__default.div(_templateObject4$f || (_templateObject4$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 20px;\n\n @media ", " {\n gap: 24px;\n }\n"])), devices.mobile);
|
|
6092
|
+
var LogoAndDescriptionSection = /*#__PURE__*/styled__default(GridItem)(_templateObject5$b || (_templateObject5$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: logo;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n\n @media ", " {\n gap: 24px;\n }\n"])), devices.mobile);
|
|
6093
|
+
var SponsorLogoContainer = /*#__PURE__*/styled__default.div(_templateObject6$8 || (_templateObject6$8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: 290px;\n\n @media ", " {\n max-width: unset;\n }\n"])), devices.mobile);
|
|
6091
6094
|
var TextLinkWrapper$2 = /*#__PURE__*/styled__default(TextLink)(_templateObject7$5 || (_templateObject7$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: var(--font-family-sans);\n font-size: 17px;\n line-height: 24px;\n letter-spacing: 0.4px;\n color: var(--color-base-white);\n border-bottom: unset;\n text-decoration: underline;\n text-underline-offset: 6px;\n margin-bottom: 0;\n padding-bottom: 0;\n"])));
|
|
6092
6095
|
|
|
6093
6096
|
var _templateObject$E;
|
|
@@ -6121,12 +6124,14 @@ var Footer = function Footer(_ref) {
|
|
|
6121
6124
|
additionalInfo = data.additionalInfo;
|
|
6122
6125
|
var sponsorImageSource = data.sponsorImageSource || SPONSOR_IMAGE_SOURCE;
|
|
6123
6126
|
var _useViewport = useViewport(),
|
|
6124
|
-
isMobile = _useViewport.isMobile
|
|
6127
|
+
isMobile = _useViewport.isMobile,
|
|
6128
|
+
isTablet = _useViewport.isTablet;
|
|
6125
6129
|
return /*#__PURE__*/React__default.createElement(FooterSection, {
|
|
6126
6130
|
className: className,
|
|
6127
6131
|
"aria-label": "Footer",
|
|
6128
|
-
role: "contentinfo"
|
|
6129
|
-
|
|
6132
|
+
role: "contentinfo",
|
|
6133
|
+
as: "footer"
|
|
6134
|
+
}, /*#__PURE__*/React__default.createElement(PolicyLinksSection, {
|
|
6130
6135
|
"data-testid": "policy-links"
|
|
6131
6136
|
}, /*#__PURE__*/React__default.createElement(PolicyLinks, {
|
|
6132
6137
|
items: policyLinks
|
|
@@ -6146,7 +6151,7 @@ var Footer = function Footer(_ref) {
|
|
|
6146
6151
|
"data-roh": newsletter.link.dataRoh,
|
|
6147
6152
|
"aria-label": newsletter.link.title,
|
|
6148
6153
|
tabIndex: isMobile ? 3 : undefined
|
|
6149
|
-
}, newsletter.link.title))), /*#__PURE__*/React__default.createElement(LogoAndDescriptionSection, null, /*#__PURE__*/React__default.createElement(
|
|
6154
|
+
}, newsletter.link.title))), /*#__PURE__*/React__default.createElement(LogoAndDescriptionSection, null, /*#__PURE__*/React__default.createElement(SponsorLogoContainer, {
|
|
6150
6155
|
"data-testid": "arts-logo"
|
|
6151
6156
|
}, /*#__PURE__*/React__default.createElement(SponsorLogo, Object.assign({
|
|
6152
6157
|
imageSource: sponsorImageSource,
|
|
@@ -6158,9 +6163,9 @@ var Footer = function Footer(_ref) {
|
|
|
6158
6163
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
6159
6164
|
"data-testid": "additional-info"
|
|
6160
6165
|
}, /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
|
|
6161
|
-
size:
|
|
6166
|
+
size: isTablet ? 'small' : 'medium',
|
|
6162
6167
|
color: "white"
|
|
6163
|
-
}, additionalInfo))))
|
|
6168
|
+
}, additionalInfo))));
|
|
6164
6169
|
};
|
|
6165
6170
|
|
|
6166
6171
|
var _templateObject$F, _templateObject2$u, _templateObject3$k, _templateObject4$g, _templateObject5$c, _templateObject6$9;
|
|
@@ -6188,7 +6193,7 @@ var ArrowsContainer = /*#__PURE__*/styled__default.div(_templateObject5$c || (_t
|
|
|
6188
6193
|
});
|
|
6189
6194
|
var ArrowWrapper = /*#__PURE__*/styled__default.div(_templateObject6$9 || (_templateObject6$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 24px;\n height: 24px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: flex-center;\n\n :hover {\n && svg path {\n fill: var(--base-color-primary);\n }\n }\n"])));
|
|
6190
6195
|
|
|
6191
|
-
var _excluded$
|
|
6196
|
+
var _excluded$e = ["id", "text"];
|
|
6192
6197
|
var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
6193
6198
|
var tabs = _ref.tabs,
|
|
6194
6199
|
onTabClick = _ref.onTabClick,
|
|
@@ -6381,7 +6386,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
6381
6386
|
}, tabs.map(function (_ref4) {
|
|
6382
6387
|
var id = _ref4.id,
|
|
6383
6388
|
text = _ref4.text,
|
|
6384
|
-
rest = _objectWithoutPropertiesLoose(_ref4, _excluded$
|
|
6389
|
+
rest = _objectWithoutPropertiesLoose(_ref4, _excluded$e);
|
|
6385
6390
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
6386
6391
|
key: id
|
|
6387
6392
|
}, /*#__PURE__*/React__default.createElement(TabLink, Object.assign({
|
|
@@ -6436,7 +6441,7 @@ var PrimaryButtonReverse = /*#__PURE__*/styled__default(PrimaryButton)(_template
|
|
|
6436
6441
|
var MessageWrapper = /*#__PURE__*/styled__default.div(_templateObject9$2 || (_templateObject9$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-right: var(--grid-outer-margin);\n height: var(--button-height);\n\n h6 {\n margin: 0;\n padding: 0;\n }\n\n @media ", " {\n & {\n margin-right: var(--grid-margin);\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
6437
6442
|
var MessageWrapperMobile = /*#__PURE__*/styled__default.div(_templateObject0$2 || (_templateObject0$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h6 {\n margin: 0;\n padding: 0;\n }\n display: none;\n\n @media ", " {\n & {\n display: flex;\n align-items: center;\n margin-left: var(--grid-margin);\n padding: 12px 0;\n }\n }\n"])), devices.mobile);
|
|
6438
6443
|
|
|
6439
|
-
var _excluded$
|
|
6444
|
+
var _excluded$f = ["text"],
|
|
6440
6445
|
_excluded2$1 = ["text"];
|
|
6441
6446
|
var TitleWithCTA = function TitleWithCTA(_ref) {
|
|
6442
6447
|
var title = _ref.title,
|
|
@@ -6446,7 +6451,7 @@ var TitleWithCTA = function TitleWithCTA(_ref) {
|
|
|
6446
6451
|
message = _ref.message;
|
|
6447
6452
|
var _ref2 = (links == null ? void 0 : links[0]) || {},
|
|
6448
6453
|
primaryButtonText = _ref2.text,
|
|
6449
|
-
primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
6454
|
+
primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded$f);
|
|
6450
6455
|
var _ref3 = (links == null ? void 0 : links[1]) || {},
|
|
6451
6456
|
secondaryButtonText = _ref3.text,
|
|
6452
6457
|
secondaryButtonProps = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
|
|
@@ -7272,7 +7277,7 @@ var CloseButton = /*#__PURE__*/styled__default.button(_templateObject2$z || (_te
|
|
|
7272
7277
|
var ContentWrapper = /*#__PURE__*/styled__default.div(_templateObject3$o || (_templateObject3$o = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
7273
7278
|
var Overlay = /*#__PURE__*/styled__default(Grid)(_templateObject4$j || (_templateObject4$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100vh;\n align-content: center;\n background-color: rgba(0, 0, 0, 0.4);\n"])));
|
|
7274
7279
|
|
|
7275
|
-
var _excluded$
|
|
7280
|
+
var _excluded$g = ["isOpen", "setIsOpen", "children", "appElementId"];
|
|
7276
7281
|
var MAX_Z_INDEX = 9999999999;
|
|
7277
7282
|
if (Modal.defaultStyles.content) {
|
|
7278
7283
|
Modal.defaultStyles.content.position = 'static';
|
|
@@ -7346,7 +7351,7 @@ var ModalWindow = function ModalWindow(_ref) {
|
|
|
7346
7351
|
setIsOpen = _ref.setIsOpen,
|
|
7347
7352
|
children = _ref.children,
|
|
7348
7353
|
appElementId = _ref.appElementId,
|
|
7349
|
-
modalProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7354
|
+
modalProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
7350
7355
|
var isMobile = useMobile();
|
|
7351
7356
|
var customStyles = {
|
|
7352
7357
|
overlay: {
|
|
@@ -7540,7 +7545,7 @@ var getMovedSlides = function getMovedSlides(delta, slideWidths) {
|
|
|
7540
7545
|
return movedSlides;
|
|
7541
7546
|
};
|
|
7542
7547
|
|
|
7543
|
-
var _excluded$
|
|
7548
|
+
var _excluded$h = ["children", "infinite", "onIndexChange", "slidesOffsetBefore", "slidesAriaHidden", "onActiveChange"];
|
|
7544
7549
|
var MAX_CLONES_NUMBER = 6;
|
|
7545
7550
|
var CLICK_DRAG_THRESHOLD = 10;
|
|
7546
7551
|
var getClonesCount = function getClonesCount(infinite, childrenLength) {
|
|
@@ -7565,7 +7570,7 @@ var Swipe = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7565
7570
|
_ref$slidesAriaHidden = _ref.slidesAriaHidden,
|
|
7566
7571
|
slidesAriaHidden = _ref$slidesAriaHidden === void 0 ? false : _ref$slidesAriaHidden,
|
|
7567
7572
|
onActiveChange = _ref.onActiveChange,
|
|
7568
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7573
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
7569
7574
|
var containerRef = React.useRef(null);
|
|
7570
7575
|
var childRefs = React.useRef([]);
|
|
7571
7576
|
var startX = React.useRef(0);
|
|
@@ -7961,18 +7966,18 @@ var getBackgroundColor$1 = function getBackgroundColor(_ref2) {
|
|
|
7961
7966
|
var _templateObject$Q;
|
|
7962
7967
|
var AuxiliaryButtonWrapper = /*#__PURE__*/styled__default(Button)(_templateObject$Q || (_templateObject$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: ", ";\n height: 20px;\n border: none;\n padding: 0;\n color: ", ";\n width: fit-content;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n cursor: pointer;\n text-decoration: none;\n box-sizing: border-box;\n\n && span svg * {\n fill: ", ";\n }\n\n .auxiliaryButtonIcon {\n width: 12px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n"])), getBackgroundColor$1, getTextColor$3, getTextColor$3);
|
|
7963
7968
|
|
|
7964
|
-
var _excluded$
|
|
7969
|
+
var _excluded$i = ["children", "className"];
|
|
7965
7970
|
var AuxiliaryButton = function AuxiliaryButton(_ref) {
|
|
7966
7971
|
var children = _ref.children,
|
|
7967
7972
|
className = _ref.className,
|
|
7968
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7973
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
7969
7974
|
return /*#__PURE__*/React__default.createElement(AuxiliaryButtonWrapper, Object.assign({}, props, {
|
|
7970
7975
|
iconClassName: "auxiliaryButtonIcon",
|
|
7971
7976
|
className: className
|
|
7972
7977
|
}), children);
|
|
7973
7978
|
};
|
|
7974
7979
|
|
|
7975
|
-
var _excluded$
|
|
7980
|
+
var _excluded$j = ["text"],
|
|
7976
7981
|
_excluded2$2 = ["text"];
|
|
7977
7982
|
var _buttonTypeToButton;
|
|
7978
7983
|
var buttonTypeToButton = (_buttonTypeToButton = {}, _buttonTypeToButton[exports.ButtonType.Primary] = PrimaryButton, _buttonTypeToButton[exports.ButtonType.Secondary] = SecondaryButton, _buttonTypeToButton[exports.ButtonType.Tertiary] = TertiaryButton, _buttonTypeToButton);
|
|
@@ -7983,7 +7988,7 @@ var Buttons = function Buttons(_ref) {
|
|
|
7983
7988
|
var _ref2 = firstButton || {},
|
|
7984
7989
|
_ref2$text = _ref2.text,
|
|
7985
7990
|
firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
7986
|
-
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
7991
|
+
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$j);
|
|
7987
7992
|
var secondButton = links == null ? void 0 : links[1];
|
|
7988
7993
|
var _ref3 = secondButton || {},
|
|
7989
7994
|
_ref3$text = _ref3.text,
|
|
@@ -8407,7 +8412,7 @@ var ButtonsContainer$1 = /*#__PURE__*/styled__default.div(_templateObject12$2 ||
|
|
|
8407
8412
|
return '';
|
|
8408
8413
|
});
|
|
8409
8414
|
|
|
8410
|
-
var _excluded$
|
|
8415
|
+
var _excluded$k = ["text"],
|
|
8411
8416
|
_excluded2$3 = ["text"];
|
|
8412
8417
|
var _buttonTypeToButton$1;
|
|
8413
8418
|
var LENGTH_LARGE_TEXT$1 = 28;
|
|
@@ -8457,7 +8462,7 @@ var Card = function Card(_ref) {
|
|
|
8457
8462
|
var _ref2 = firstButton || {},
|
|
8458
8463
|
_ref2$text = _ref2.text,
|
|
8459
8464
|
firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
8460
|
-
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
8465
|
+
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$k);
|
|
8461
8466
|
var primaryButtonTextTruncate = size === 'small' ? truncate(firstButtonText, LENGTH_SMALL_TEXT$2) : truncate(firstButtonText, LENGTH_LARGE_TEXT$1);
|
|
8462
8467
|
var secondButton = links == null ? void 0 : links[1];
|
|
8463
8468
|
var _ref3 = secondButton || {},
|
|
@@ -8812,7 +8817,7 @@ var HotFiltersWrapper = /*#__PURE__*/styled__default.div(_templateObject$Z || (_
|
|
|
8812
8817
|
var HotFilterOptionsWrapper = /*#__PURE__*/styled__default.div(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n width: fit-content;\n min-width: 400px;\n justify-content: space-between;\n gap: 16px;\n font-family: var(--font-family-sans);\n\n @media ", " {\n gap: 10px;\n }\n"])), devices.mobile);
|
|
8813
8818
|
var StyledHotFiltersButton = /*#__PURE__*/styled__default(PrimaryButton)(_templateObject3$x || (_templateObject3$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid var(--color-base-black);\n min-width: fit-content;\n\n :hover {\n color: var(--color-base-white);\n }\n"])));
|
|
8814
8819
|
|
|
8815
|
-
var _excluded$
|
|
8820
|
+
var _excluded$l = ["text", "onClick"];
|
|
8816
8821
|
var HotFilters = function HotFilters(_ref) {
|
|
8817
8822
|
var items = _ref.items,
|
|
8818
8823
|
className = _ref.className,
|
|
@@ -8828,7 +8833,7 @@ var HotFilters = function HotFilters(_ref) {
|
|
|
8828
8833
|
}, /*#__PURE__*/React__default.createElement(HotFilterOptionsWrapper, null, items.map(function (item, index) {
|
|
8829
8834
|
var text = item.text,
|
|
8830
8835
|
_onClick = item.onClick,
|
|
8831
|
-
rest = _objectWithoutPropertiesLoose(item, _excluded$
|
|
8836
|
+
rest = _objectWithoutPropertiesLoose(item, _excluded$l);
|
|
8832
8837
|
var isSelected = index === selectedIndex;
|
|
8833
8838
|
return /*#__PURE__*/React__default.createElement(StyledHotFiltersButton, Object.assign({
|
|
8834
8839
|
key: index,
|
|
@@ -9158,7 +9163,7 @@ var TextWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject6$i || (_tem
|
|
|
9158
9163
|
var ButtonWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject7$c || (_templateObject7$c = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: button;\n align-self: end;\n display: flex;\n justify-content: center;\n margin-top: 40px;\n\n @media ", " {\n & {\n margin-top: 0px;\n margin-bottom: 20px;\n }\n }\n"])), devices.mobile);
|
|
9159
9164
|
var ScrollDownWrapper = /*#__PURE__*/styled__default.div(_templateObject8$9 || (_templateObject8$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 20px;\n left: var(--grid-outer-margin);\n width: fit-content;\n z-index: ", ";\n\n @keyframes UpDown {\n 0%,\n 100% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(8px);\n }\n }\n\n a {\n font-size: var(--font-size-overline-1);\n font-weight: var(--font-weight-overline-1);\n letter-spacing: var(--letter-spacing-overline-1);\n border: none;\n padding: 0;\n :hover {\n border: none;\n\n > span {\n animation: UpDown 1500ms linear infinite;\n }\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), zIndexes.contentOverlay, devices.mobile, devices.tablet);
|
|
9160
9165
|
|
|
9161
|
-
var _excluded$
|
|
9166
|
+
var _excluded$m = ["text"];
|
|
9162
9167
|
var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
9163
9168
|
var children = _ref.children,
|
|
9164
9169
|
text = _ref.text,
|
|
@@ -9176,7 +9181,7 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
|
9176
9181
|
var truncatedText = text == null ? void 0 : text.substring(0, 75);
|
|
9177
9182
|
var _ref2 = link || {},
|
|
9178
9183
|
linkText = _ref2.text,
|
|
9179
|
-
restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
9184
|
+
restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$m);
|
|
9180
9185
|
return /*#__PURE__*/React__default.createElement(ImpactWrapper, {
|
|
9181
9186
|
bgUrlDesktop: bgUrlDesktop,
|
|
9182
9187
|
bgUrlDevice: bgUrlDevice,
|
|
@@ -9590,7 +9595,7 @@ var CompactHeaderBranding = function CompactHeaderBranding(_ref) {
|
|
|
9590
9595
|
return /*#__PURE__*/React__default.createElement(CompactHeaderLogoWrapper, null, renderBranding(brandingStyle, invert, brandingText, brandingLink));
|
|
9591
9596
|
};
|
|
9592
9597
|
|
|
9593
|
-
var _excluded$
|
|
9598
|
+
var _excluded$n = ["text"];
|
|
9594
9599
|
var useResponsiveVideo = function useResponsiveVideo(video, poster) {
|
|
9595
9600
|
var mobileVideo = video.mobile || video.desktop;
|
|
9596
9601
|
var desktopVideo = video.desktop || video.mobile;
|
|
@@ -9695,7 +9700,7 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
|
|
|
9695
9700
|
showCopy = _ref4$showCopy === void 0 ? true : _ref4$showCopy;
|
|
9696
9701
|
var _ref5 = link || {},
|
|
9697
9702
|
linkText = _ref5.text,
|
|
9698
|
-
restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$
|
|
9703
|
+
restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$n);
|
|
9699
9704
|
// const titleSize = title && title.length > 20 ? 4 : 3;
|
|
9700
9705
|
var video = {
|
|
9701
9706
|
elementId: 'compact-header-video',
|
|
@@ -10160,7 +10165,7 @@ var PromoWithTagsContainer = /*#__PURE__*/styled__default.div(_templateObject17
|
|
|
10160
10165
|
var TimerWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
|
|
10161
10166
|
var EndDateText = /*#__PURE__*/styled__default.div(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-bottom: 1px solid var(--base-color-black);\n padding-bottom: 32px;\n margin-bottom: 32px;\n\n @media ", " {\n padding-bottom: 20px;\n margin-bottom: 20px;\n }\n"])), devices.mobile);
|
|
10162
10167
|
|
|
10163
|
-
var _excluded$
|
|
10168
|
+
var _excluded$o = ["text"],
|
|
10164
10169
|
_excluded2$4 = ["text"],
|
|
10165
10170
|
_excluded3 = ["text"];
|
|
10166
10171
|
var _buttonTypeToButton$2;
|
|
@@ -10223,7 +10228,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
10223
10228
|
var _ref2 = firstButton || {},
|
|
10224
10229
|
_ref2$text = _ref2.text,
|
|
10225
10230
|
firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
10226
|
-
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
10231
|
+
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$o);
|
|
10227
10232
|
var primaryButtonTextTruncate = truncate(firstButtonText, LENGTH_TEXT$1);
|
|
10228
10233
|
var secondButton = links == null ? void 0 : links[1];
|
|
10229
10234
|
var _ref3 = secondButton || {},
|
|
@@ -10492,7 +10497,7 @@ var PromoChild = function PromoChild(_ref) {
|
|
|
10492
10497
|
}));
|
|
10493
10498
|
};
|
|
10494
10499
|
|
|
10495
|
-
var _excluded$
|
|
10500
|
+
var _excluded$p = ["text"],
|
|
10496
10501
|
_excluded2$5 = ["text"];
|
|
10497
10502
|
var LENGTH_TEXT$3 = 28;
|
|
10498
10503
|
var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
@@ -10519,7 +10524,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
|
10519
10524
|
var _ref2 = primaryButton || {},
|
|
10520
10525
|
_ref2$text = _ref2.text,
|
|
10521
10526
|
primaryButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
10522
|
-
restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
10527
|
+
restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$p);
|
|
10523
10528
|
var primaryButtonTextTruncate = truncate(primaryButtonText, LENGTH_TEXT$3);
|
|
10524
10529
|
var tertiaryButton = links == null ? void 0 : links[1];
|
|
10525
10530
|
var _ref3 = tertiaryButton || {},
|
|
@@ -11204,7 +11209,7 @@ var ErrorLabel$5 = /*#__PURE__*/styled__default.div(_templateObject4$C || (_temp
|
|
|
11204
11209
|
return "var(--base-color-errorstate)";
|
|
11205
11210
|
});
|
|
11206
11211
|
|
|
11207
|
-
var _excluded$
|
|
11212
|
+
var _excluded$q = ["label", "error", "width", "darkMode", "isSearchable", "components"];
|
|
11208
11213
|
var DropdownIndicator = function DropdownIndicator(props) {
|
|
11209
11214
|
return /*#__PURE__*/React__default.createElement(Select$1.components.DropdownIndicator, Object.assign({}, props), /*#__PURE__*/React__default.createElement(Icon, {
|
|
11210
11215
|
iconName: "DropdownArrow"
|
|
@@ -11255,7 +11260,7 @@ var SelectComponent = function SelectComponent(_ref2) {
|
|
|
11255
11260
|
_ref2$isSearchable = _ref2.isSearchable,
|
|
11256
11261
|
isSearchable = _ref2$isSearchable === void 0 ? false : _ref2$isSearchable,
|
|
11257
11262
|
components = _ref2.components,
|
|
11258
|
-
selectProps = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
11263
|
+
selectProps = _objectWithoutPropertiesLoose(_ref2, _excluded$q);
|
|
11259
11264
|
return /*#__PURE__*/React__default.createElement(WrapperComponent, {
|
|
11260
11265
|
label: label,
|
|
11261
11266
|
error: error,
|
|
@@ -11273,7 +11278,7 @@ var SelectComponent = function SelectComponent(_ref2) {
|
|
|
11273
11278
|
})));
|
|
11274
11279
|
};
|
|
11275
11280
|
|
|
11276
|
-
var _excluded$
|
|
11281
|
+
var _excluded$r = ["label", "error", "width", "darkMode", "components"];
|
|
11277
11282
|
/**
|
|
11278
11283
|
* The Select2Async component is similar to Select 2, but uses react-select async
|
|
11279
11284
|
* component for select instead of regular react-select component. This can be used
|
|
@@ -11295,7 +11300,7 @@ var SelectComponent$1 = function SelectComponent(_ref) {
|
|
|
11295
11300
|
_ref$darkMode = _ref.darkMode,
|
|
11296
11301
|
darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
|
|
11297
11302
|
components = _ref.components,
|
|
11298
|
-
selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11303
|
+
selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
11299
11304
|
return /*#__PURE__*/React__default.createElement(WrapperComponent, {
|
|
11300
11305
|
label: label,
|
|
11301
11306
|
error: error,
|
|
@@ -12390,10 +12395,13 @@ var SignUpFormComponent = function SignUpFormComponent(_ref) {
|
|
|
12390
12395
|
}))))));
|
|
12391
12396
|
};
|
|
12392
12397
|
|
|
12393
|
-
var _templateObject$1o,
|
|
12394
|
-
var AnchorBarContainer = /*#__PURE__*/styled__default(Grid)(_templateObject$1o || (_templateObject$1o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n top: 0;\n min-height: 70px;\n background: var(--color-base-white);\n z-index: ", ";\n align-content: center;\n\n @media ", " {\n min-height: 60px;\n }\n"])), zIndexes.anchor,
|
|
12395
|
-
var
|
|
12396
|
-
|
|
12398
|
+
var _templateObject$1o, _templateObject2$16, _templateObject4$J, _templateObject5$C;
|
|
12399
|
+
var AnchorBarContainer = /*#__PURE__*/styled__default(Grid)(_templateObject$1o || (_templateObject$1o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: sticky;\n top: 0;\n min-height: 70px;\n background: var(--color-base-white);\n z-index: ", ";\n align-content: center;\n border-bottom: 1px solid var(--color-base-light-grey);\n\n ", "\n\n @media ", " {\n min-height: 60px;\n }\n"])), zIndexes.anchor, function (_ref) {
|
|
12400
|
+
var withShadow = _ref.withShadow;
|
|
12401
|
+
return withShadow && styled.css(_templateObject2$16 || (_templateObject2$16 = _taggedTemplateLiteralLoose(["\n box-shadow: var(--shadow-floating);\n "])));
|
|
12402
|
+
}, devices.mobile);
|
|
12403
|
+
var CloseButtonWrapper = /*#__PURE__*/styled__default.a(_templateObject4$J || (_templateObject4$J = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n text-decoration: none;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 24px;\n min-width: 24px;\n max-height: 24px;\n max-width: 24px;\n border: none;\n padding: 0;\n background: none;\n\n :hover {\n cursor: pointer;\n }\n\n @media ", " {\n min-height: 12px;\n min-width: 12px;\n max-height: 12px;\n max-width: 12px;\n }\n"])), devices.mobile);
|
|
12404
|
+
var ContentWrapper$3 = /*#__PURE__*/styled__default.a(_templateObject5$C || (_templateObject5$C = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
|
|
12397
12405
|
|
|
12398
12406
|
var AnchorBar = function AnchorBar(_ref) {
|
|
12399
12407
|
var cta = _ref.cta,
|
|
@@ -12401,7 +12409,9 @@ var AnchorBar = function AnchorBar(_ref) {
|
|
|
12401
12409
|
onCloseHandler = _ref.onCloseHandler,
|
|
12402
12410
|
_ref$showAnchorBar = _ref.showAnchorBar,
|
|
12403
12411
|
showAnchorBar = _ref$showAnchorBar === void 0 ? true : _ref$showAnchorBar,
|
|
12404
|
-
className = _ref.className
|
|
12412
|
+
className = _ref.className,
|
|
12413
|
+
_ref$withShadow = _ref.withShadow,
|
|
12414
|
+
withShadow = _ref$withShadow === void 0 ? false : _ref$withShadow;
|
|
12405
12415
|
var _useState = React.useState(showAnchorBar),
|
|
12406
12416
|
isRendered = _useState[0],
|
|
12407
12417
|
setIsRendered = _useState[1];
|
|
@@ -12423,7 +12433,8 @@ var AnchorBar = function AnchorBar(_ref) {
|
|
|
12423
12433
|
var _cta$href;
|
|
12424
12434
|
return /*#__PURE__*/React__default.createElement(AnchorBarContainer, {
|
|
12425
12435
|
"data-testid": "anchor-bar",
|
|
12426
|
-
className: className
|
|
12436
|
+
className: className,
|
|
12437
|
+
withShadow: withShadow
|
|
12427
12438
|
}, /*#__PURE__*/React__default.createElement(GridItem, {
|
|
12428
12439
|
columnStartDesktop: 2,
|
|
12429
12440
|
columnSpanDesktop: 14,
|
|
@@ -12646,11 +12657,11 @@ var HarmonicThemeProvider = function HarmonicThemeProvider(_ref) {
|
|
|
12646
12657
|
return themedChildren.length === 1 ? themedChildren[0] : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, themedChildren);
|
|
12647
12658
|
};
|
|
12648
12659
|
|
|
12649
|
-
var _excluded$
|
|
12660
|
+
var _excluded$s = ["logo", "slides"];
|
|
12650
12661
|
var HighlightsCinema = function HighlightsCinema(_ref) {
|
|
12651
12662
|
var logo = _ref.logo,
|
|
12652
12663
|
slides = _ref.slides,
|
|
12653
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12664
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
12654
12665
|
var slidesWithLinks = slides.map(function (slide) {
|
|
12655
12666
|
var links = processSlideLinks(slide.links);
|
|
12656
12667
|
return _extends({}, slide, {
|
|
@@ -12667,10 +12678,10 @@ var HighlightsCinema = function HighlightsCinema(_ref) {
|
|
|
12667
12678
|
})));
|
|
12668
12679
|
};
|
|
12669
12680
|
|
|
12670
|
-
var _excluded$
|
|
12681
|
+
var _excluded$t = ["slides"];
|
|
12671
12682
|
var HighlightsCore = function HighlightsCore(_ref) {
|
|
12672
12683
|
var slides = _ref.slides,
|
|
12673
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12684
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
12674
12685
|
var slidesWithLinks = slides.map(function (slide) {
|
|
12675
12686
|
var links = processSlideLinks(slide.links);
|
|
12676
12687
|
return _extends({}, slide, {
|
|
@@ -12684,11 +12695,11 @@ var HighlightsCore = function HighlightsCore(_ref) {
|
|
|
12684
12695
|
})));
|
|
12685
12696
|
};
|
|
12686
12697
|
|
|
12687
|
-
var _excluded$
|
|
12698
|
+
var _excluded$u = ["logo", "slides"];
|
|
12688
12699
|
var HighlightsStream = function HighlightsStream(_ref) {
|
|
12689
12700
|
var logo = _ref.logo,
|
|
12690
12701
|
slides = _ref.slides,
|
|
12691
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12702
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
12692
12703
|
var slidesWithLinks = slides.map(function (slide) {
|
|
12693
12704
|
var links = processSlideLinks(slide.links);
|
|
12694
12705
|
return _extends({}, slide, {
|
|
@@ -12705,9 +12716,9 @@ var HighlightsStream = function HighlightsStream(_ref) {
|
|
|
12705
12716
|
})));
|
|
12706
12717
|
};
|
|
12707
12718
|
|
|
12708
|
-
var _templateObject$1p, _templateObject3$
|
|
12719
|
+
var _templateObject$1p, _templateObject3$U;
|
|
12709
12720
|
var CarouselWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject$1p || (_templateObject$1p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n user-select: none;\n display: flex;\n\n .swipe-slide {\n width: 100%;\n }\n"])));
|
|
12710
|
-
var ButtonsWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject3$
|
|
12721
|
+
var ButtonsWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject3$U || (_templateObject3$U = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n flex-direction: column;\n margin-left: 6px;\n"])));
|
|
12711
12722
|
|
|
12712
12723
|
var MinimalCarousel = function MinimalCarousel(_ref) {
|
|
12713
12724
|
var children = _ref.children;
|