@royaloperahouse/harmonic 0.4.1-c → 0.4.1-e

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.
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { IDropdownProps } from '../../../types/types';
3
- declare const Dropdown: ({ title, titleLink, selected, options, onChange, iconName, isMobileBehaviour, withOptionsInMobile, withIcon, className, role, ariaLabel, }: IDropdownProps) => React.JSX.Element;
3
+ declare const Dropdown: ({ title, titleLink, selected, options, onChange, iconName, isMobileBehaviour, withOptionsInMobile, withIcon, className, role, ariaLabel, tabLinkId, }: IDropdownProps) => React.JSX.Element;
4
4
  export default Dropdown;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { ITabProps } from '../../../types/types';
3
- declare const Tab: ({ title, titleLink, onClick, onFocus, onReset, selected, iconName, withIcon, withTextInMobile, className, role, ariaLabel, }: ITabProps) => React.JSX.Element;
3
+ declare const Tab: ({ title, titleLink, onClick, onFocus, onReset, selected, iconName, withIcon, withTextInMobile, className, role, ariaLabel, tabLinkId, }: ITabProps) => React.JSX.Element;
4
4
  export default Tab;
@@ -3737,7 +3737,8 @@ var Tab = function Tab(_ref) {
3737
3737
  withTextInMobile = _ref$withTextInMobile === void 0 ? true : _ref$withTextInMobile,
3738
3738
  className = _ref.className,
3739
3739
  role = _ref.role,
3740
- ariaLabel = _ref.ariaLabel;
3740
+ ariaLabel = _ref.ariaLabel,
3741
+ tabLinkId = _ref.tabLinkId;
3741
3742
  var clickHandler = function clickHandler() {
3742
3743
  if (onClick) {
3743
3744
  onClick(titleLink);
@@ -3767,6 +3768,7 @@ var Tab = function Tab(_ref) {
3767
3768
  tabIndex: 0,
3768
3769
  className: className
3769
3770
  }, /*#__PURE__*/React__default.createElement(TabText, {
3771
+ id: tabLinkId,
3770
3772
  withTextInMobile: withTextInMobile,
3771
3773
  "aria-hidden": "true"
3772
3774
  }, title), withIcon !== 'none' && /*#__PURE__*/React__default.createElement(Icon, {
@@ -5321,7 +5323,8 @@ var Dropdown = function Dropdown(_ref) {
5321
5323
  withIcon = _ref$withIcon === void 0 ? 'right' : _ref$withIcon,
5322
5324
  className = _ref.className,
5323
5325
  role = _ref.role,
5324
- ariaLabel = _ref.ariaLabel;
5326
+ ariaLabel = _ref.ariaLabel,
5327
+ tabLinkId = _ref.tabLinkId;
5325
5328
  var node = React.useRef();
5326
5329
  var _useState = React.useState(false),
5327
5330
  open = _useState[0],
@@ -5417,6 +5420,7 @@ var Dropdown = function Dropdown(_ref) {
5417
5420
  };
5418
5421
  var renderTab = function renderTab() {
5419
5422
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Tab, {
5423
+ tabLinkId: tabLinkId,
5420
5424
  title: title,
5421
5425
  titleLink: titleLink,
5422
5426
  selected: titleSelected,
@@ -5494,7 +5498,8 @@ var Account = function Account(_ref) {
5494
5498
  iconName: iconName,
5495
5499
  withOptionsInMobile: false,
5496
5500
  withIcon: "left",
5497
- className: className
5501
+ className: className,
5502
+ tabLinkId: "account-link"
5498
5503
  });
5499
5504
  };
5500
5505
 
@@ -9047,7 +9052,7 @@ var PageHeadingStream = function PageHeadingStream(_ref) {
9047
9052
  var _templateObject$12, _templateObject2$O, _templateObject3$B, _templateObject4$w, _templateObject5$p, _templateObject6$j, _templateObject7$e, _templateObject8$a, _templateObject9$5, _templateObject0$5, _templateObject1$3;
9048
9053
  var Wrapper$5 = /*#__PURE__*/styled__default.section(_templateObject$12 || (_templateObject$12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
9049
9054
  var ImageWrapper = /*#__PURE__*/styled__default.div(_templateObject2$O || (_templateObject2$O = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: relative;\n\n picture,\n img {\n width: 100%;\n height: 100%;\n }\n"])));
9050
- var SponsorWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject3$B || (_templateObject3$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 20px;\n right: var(--grid-outer-margin);\n width: fit-content;\n z-index: ", ";\n\n @media ", " {\n & {\n right: var(--grid-margin);\n }\n }\n\n @media ", " {\n & {\n height: 40px;\n width: 40px;\n }\n \n & iframe {\n height: 80px;\n transform: scale(0.5) translate(-40px, -40px);\n width: 80px;\n }\n"])), zIndexes.sponsorship, devices.mobileAndTablet, devices.tablet);
9055
+ var SponsorWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject3$B || (_templateObject3$B = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 20px;\n right: var(--grid-outer-margin);\n width: fit-content;\n z-index: ", ";\n\n @media ", " {\n & {\n right: var(--grid-margin);\n }\n }\n"])), zIndexes.sponsorship, devices.mobileAndTablet);
9051
9056
  var ImageButtonWrapper = /*#__PURE__*/styled__default.div(_templateObject4$w || (_templateObject4$w = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n right: var(--grid-outer-margin);\n bottom: 20px;\n z-index: 10;\n\n @media ", " {\n right: var(--grid-margin);\n bottom: 10px;\n }\n"])), devices.tablet);
9052
9057
  var ContentSection = /*#__PURE__*/styled__default.div(_templateObject5$p || (_templateObject5$p = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: var(--heading-promo-bg-color);\n border-bottom: ", ";\n display: ", ";\n\n @media ", " {\n padding: 12px 0 20px;\n }\n"])), function (_ref) {
9053
9058
  var theme = _ref.theme;