@royaloperahouse/harmonic 0.13.0 → 0.13.1
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 +3 -0
- package/dist/components/atoms/TextField/TextField.style.d.ts +1 -1
- package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +1 -1
- package/dist/components/molecules/Information/Information.style.d.ts +3 -2
- package/dist/components/molecules/Pagination/Pagination.style.d.ts +1 -1
- package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +273 -3
- package/dist/harmonic.cjs.development.js +28 -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 +28 -17
- package/dist/harmonic.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/harmonic.esm.js
CHANGED
|
@@ -2590,7 +2590,7 @@ var Button = function Button(_ref) {
|
|
|
2590
2590
|
}, [href, onClick]);
|
|
2591
2591
|
return /*#__PURE__*/React__default.createElement(ButtonWrapper, Object.assign({
|
|
2592
2592
|
role: href ? undefined : 'button',
|
|
2593
|
-
tabIndex:
|
|
2593
|
+
tabIndex: 0
|
|
2594
2594
|
}, rest, {
|
|
2595
2595
|
href: href != null ? href : '#',
|
|
2596
2596
|
onClick: handleClick,
|
|
@@ -2827,7 +2827,8 @@ var TertiaryButton = function TertiaryButton(_ref) {
|
|
|
2827
2827
|
"data-testid": "tertiary-button"
|
|
2828
2828
|
}, rest, {
|
|
2829
2829
|
className: className,
|
|
2830
|
-
onClick: handleClick
|
|
2830
|
+
onClick: handleClick,
|
|
2831
|
+
tabIndex: 0
|
|
2831
2832
|
}), /*#__PURE__*/React__default.createElement(ButtonText, {
|
|
2832
2833
|
color: "inherit"
|
|
2833
2834
|
}, truncatedString), /*#__PURE__*/React__default.createElement(TertiaryIconWrapper, {
|
|
@@ -2863,7 +2864,7 @@ var ControlledDropdownWrapper = /*#__PURE__*/styled.div(_templateObject$7 || (_t
|
|
|
2863
2864
|
var ControlledDropdownHeaderContainer = /*#__PURE__*/styled.button(_templateObject2$5 || (_templateObject2$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n all: unset;\n display: flex;\n gap: 6px;\n border-bottom: 1px solid transparent;\n height: 24px;\n line-height: 24px;\n font-size: var(--harmonic-font-size-navigation);\n font-family: var(--font-family-sans);\n font-weight: var(--font-weight-navigation);\n letter-spacing: var(--harmonic-letter-spacing-navigation);\n color: var(--color-primary-black);\n text-decoration: none;\n cursor: pointer;\n width: max-content;\n\n &:focus {\n outline: 2px solid var(--color-primary-black);\n outline-offset: 2px;\n }\n\n ", "\n"])), function (_ref) {
|
|
2864
2865
|
var active = _ref.active;
|
|
2865
2866
|
if (active) {
|
|
2866
|
-
return "\n & {\n color: var(--color-primary-red);\n }\n && svg path {\n fill: var(--color-primary-red);\n }
|
|
2867
|
+
return "\n & {\n color: var(--color-primary-red);\n }\n && svg path {\n fill: var(--color-primary-red);\n }\n ";
|
|
2867
2868
|
}
|
|
2868
2869
|
return '';
|
|
2869
2870
|
});
|
|
@@ -2976,7 +2977,8 @@ var ControlledDropdown = /*#__PURE__*/React__default.forwardRef(function (_ref,
|
|
|
2976
2977
|
role: "menuitem",
|
|
2977
2978
|
"aria-controls": "dropdown-menu",
|
|
2978
2979
|
"aria-haspopup": "menu",
|
|
2979
|
-
"aria-expanded": active
|
|
2980
|
+
"aria-expanded": active,
|
|
2981
|
+
tabIndex: 0
|
|
2980
2982
|
}), text, /*#__PURE__*/React__default.createElement(IconWrapper, {
|
|
2981
2983
|
"data-testid": "dropdown-icon"
|
|
2982
2984
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -3816,7 +3818,8 @@ var TabLink = function TabLink(_ref) {
|
|
|
3816
3818
|
color: color,
|
|
3817
3819
|
iconName: iconName,
|
|
3818
3820
|
hoverColor: hoverColor,
|
|
3819
|
-
className: "" + typographyStyles.navigationtext + (className ? " " + className : '')
|
|
3821
|
+
className: "" + typographyStyles.navigationtext + (className ? " " + className : ''),
|
|
3822
|
+
tabIndex: 0
|
|
3820
3823
|
}, rest), iconName ? (/*#__PURE__*/React__default.createElement(TabLinkIconWrapper, {
|
|
3821
3824
|
"data-testid": "tab-link-icon"
|
|
3822
3825
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -5051,7 +5054,7 @@ var SocialLinks = function SocialLinks(_ref) {
|
|
|
5051
5054
|
rel: "noopener noreferrer" // Ensures security for external links
|
|
5052
5055
|
,
|
|
5053
5056
|
target: "_blank",
|
|
5054
|
-
tabIndex: isMobile ? 1 :
|
|
5057
|
+
tabIndex: isMobile ? 1 : 0
|
|
5055
5058
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
5056
5059
|
iconName: mediaLink.name,
|
|
5057
5060
|
color: "white",
|
|
@@ -6002,7 +6005,7 @@ var PolicyLinks = function PolicyLinks(_ref) {
|
|
|
6002
6005
|
href: link.href,
|
|
6003
6006
|
"data-roh": link.dataRoh,
|
|
6004
6007
|
"aria-label": link.title,
|
|
6005
|
-
tabIndex: isMobile ? 4 :
|
|
6008
|
+
tabIndex: isMobile ? 4 : 0
|
|
6006
6009
|
}, link.title);
|
|
6007
6010
|
}));
|
|
6008
6011
|
};
|
|
@@ -6037,7 +6040,7 @@ var Footer = function Footer(_ref) {
|
|
|
6037
6040
|
}), /*#__PURE__*/React__default.createElement(TextLinkWrapper$2, {
|
|
6038
6041
|
href: contact.href,
|
|
6039
6042
|
"aria-label": contact.title,
|
|
6040
|
-
tabIndex: isMobile ? 2 :
|
|
6043
|
+
tabIndex: isMobile ? 2 : 0
|
|
6041
6044
|
}, contact.title)), /*#__PURE__*/React__default.createElement(SectionWrapper, null, /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
|
|
6042
6045
|
size: "large",
|
|
6043
6046
|
color: "white"
|
|
@@ -6045,7 +6048,7 @@ var Footer = function Footer(_ref) {
|
|
|
6045
6048
|
href: newsletter.link.href,
|
|
6046
6049
|
"data-roh": newsletter.link.dataRoh,
|
|
6047
6050
|
"aria-label": newsletter.link.title,
|
|
6048
|
-
tabIndex: isMobile ? 3 :
|
|
6051
|
+
tabIndex: isMobile ? 3 : 0
|
|
6049
6052
|
}, newsletter.link.title))), /*#__PURE__*/React__default.createElement(LogoAndDescriptionSection, null, /*#__PURE__*/React__default.createElement(SponsorLogoContainer, {
|
|
6050
6053
|
"data-testid": "arts-logo"
|
|
6051
6054
|
}, /*#__PURE__*/React__default.createElement(SponsorLogo, Object.assign({
|
|
@@ -10140,14 +10143,16 @@ var NavButtonOrLink = function NavButtonOrLink(_ref) {
|
|
|
10140
10143
|
return onPageChange(page);
|
|
10141
10144
|
},
|
|
10142
10145
|
key: keyProp,
|
|
10143
|
-
"data-testid": testId
|
|
10146
|
+
"data-testid": testId,
|
|
10147
|
+
tabIndex: 0
|
|
10144
10148
|
}, children);
|
|
10145
10149
|
}
|
|
10146
10150
|
return /*#__PURE__*/React__default.createElement(PageNav, {
|
|
10147
10151
|
"aria-label": ariaLabel,
|
|
10148
10152
|
href: "" + (baseUrl != null ? baseUrl : '') + page,
|
|
10149
10153
|
key: keyProp,
|
|
10150
|
-
"data-testid": testId
|
|
10154
|
+
"data-testid": testId,
|
|
10155
|
+
tabIndex: 0
|
|
10151
10156
|
}, children);
|
|
10152
10157
|
};
|
|
10153
10158
|
|
|
@@ -10168,14 +10173,16 @@ var PageLinkOrButton = function PageLinkOrButton(_ref) {
|
|
|
10168
10173
|
return onPageChange(page);
|
|
10169
10174
|
},
|
|
10170
10175
|
key: keyProp,
|
|
10171
|
-
"data-testid": testId
|
|
10176
|
+
"data-testid": testId,
|
|
10177
|
+
tabIndex: 0
|
|
10172
10178
|
}, children);
|
|
10173
10179
|
}
|
|
10174
10180
|
return /*#__PURE__*/React__default.createElement(PaginationLink, {
|
|
10175
10181
|
"aria-label": ariaLabel,
|
|
10176
10182
|
href: "" + (baseUrl != null ? baseUrl : '') + page,
|
|
10177
10183
|
key: keyProp,
|
|
10178
|
-
"data-testid": testId
|
|
10184
|
+
"data-testid": testId,
|
|
10185
|
+
tabIndex: 0
|
|
10179
10186
|
}, children);
|
|
10180
10187
|
};
|
|
10181
10188
|
|
|
@@ -12621,7 +12628,8 @@ var SignUpForm = function SignUpForm(_ref) {
|
|
|
12621
12628
|
role: "alert",
|
|
12622
12629
|
"aria-live": "assertive"
|
|
12623
12630
|
}, /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, null, errors.serverError)))), !isLoggedIn && isMobile ? (/*#__PURE__*/React__default.createElement(FormFooterWrapper, null, /*#__PURE__*/React__default.createElement(CTALinkWrapper, {
|
|
12624
|
-
href: ctaPrivacy.link
|
|
12631
|
+
href: ctaPrivacy.link,
|
|
12632
|
+
tabIndex: 0
|
|
12625
12633
|
}, /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
|
|
12626
12634
|
size: "small"
|
|
12627
12635
|
}, ctaPrivacy.text)), /*#__PURE__*/React__default.createElement(ButtonWrapper$3, null, /*#__PURE__*/React__default.createElement(SignUpFormButton, {
|
|
@@ -12631,7 +12639,8 @@ var SignUpForm = function SignUpForm(_ref) {
|
|
|
12631
12639
|
onClick: handleFormSubmit,
|
|
12632
12640
|
theme: theme
|
|
12633
12641
|
})), /*#__PURE__*/React__default.createElement(CTALinkWrapper, {
|
|
12634
|
-
href: ctaPrivacy.link
|
|
12642
|
+
href: ctaPrivacy.link,
|
|
12643
|
+
tabIndex: 0
|
|
12635
12644
|
}, /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
|
|
12636
12645
|
size: "medium"
|
|
12637
12646
|
}, ctaPrivacy.text))))));
|
|
@@ -12790,11 +12799,13 @@ var AnchorBar = function AnchorBar(_ref) {
|
|
|
12790
12799
|
columnSpanDevice: 12
|
|
12791
12800
|
}, /*#__PURE__*/React__default.createElement(ContentWrapper$3, null, /*#__PURE__*/React__default.createElement(TextLink, {
|
|
12792
12801
|
href: (_cta$href = cta.href) != null ? _cta$href : '#',
|
|
12793
|
-
onClick: onCtaClickHandler
|
|
12802
|
+
onClick: onCtaClickHandler,
|
|
12803
|
+
tabIndex: 0
|
|
12794
12804
|
}, cta.text), /*#__PURE__*/React__default.createElement(CloseButtonWrapper, {
|
|
12795
12805
|
href: "#",
|
|
12796
12806
|
onClick: onCloseButtonHandler,
|
|
12797
|
-
"aria-label": "Close an anchor bar"
|
|
12807
|
+
"aria-label": "Close an anchor bar",
|
|
12808
|
+
tabIndex: 0
|
|
12798
12809
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
12799
12810
|
iconName: "Close"
|
|
12800
12811
|
})))));
|