@royaloperahouse/harmonic 0.17.2 → 0.17.3

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.
@@ -11071,6 +11071,12 @@ var AnchorBarContainer = /*#__PURE__*/styled(Grid)(_templateObject$1d || (_templ
11071
11071
  var CloseButtonWrapper = /*#__PURE__*/styled.a(_templateObject4$F || (_templateObject4$F = /*#__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);
11072
11072
  var ContentWrapper$2 = /*#__PURE__*/styled.a(_templateObject5$z || (_templateObject5$z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
11073
11073
 
11074
+ var defaultGrid = {
11075
+ columnStartDesktop: 2,
11076
+ columnSpanDesktop: 14,
11077
+ columnStartDevice: 2,
11078
+ columnSpanDevice: 12
11079
+ };
11074
11080
  var AnchorBar = function AnchorBar(_ref) {
11075
11081
  var cta = _ref.cta,
11076
11082
  onClickHandler = _ref.onClickHandler,
@@ -11079,7 +11085,9 @@ var AnchorBar = function AnchorBar(_ref) {
11079
11085
  showAnchorBar = _ref$showAnchorBar === void 0 ? true : _ref$showAnchorBar,
11080
11086
  className = _ref.className,
11081
11087
  _ref$withShadow = _ref.withShadow,
11082
- withShadow = _ref$withShadow === void 0 ? false : _ref$withShadow;
11088
+ withShadow = _ref$withShadow === void 0 ? false : _ref$withShadow,
11089
+ _ref$grid = _ref.grid,
11090
+ grid = _ref$grid === void 0 ? defaultGrid : _ref$grid;
11083
11091
  var _useState = useState(showAnchorBar),
11084
11092
  isRendered = _useState[0],
11085
11093
  setIsRendered = _useState[1];
@@ -11103,12 +11111,7 @@ var AnchorBar = function AnchorBar(_ref) {
11103
11111
  "data-testid": "anchor-bar",
11104
11112
  className: className,
11105
11113
  withShadow: withShadow
11106
- }, /*#__PURE__*/React__default.createElement(GridItem, {
11107
- columnStartDesktop: 2,
11108
- columnSpanDesktop: 14,
11109
- columnStartDevice: 2,
11110
- columnSpanDevice: 12
11111
- }, /*#__PURE__*/React__default.createElement(ContentWrapper$2, null, /*#__PURE__*/React__default.createElement(TextLink, {
11114
+ }, /*#__PURE__*/React__default.createElement(GridItem, Object.assign({}, grid), /*#__PURE__*/React__default.createElement(ContentWrapper$2, null, /*#__PURE__*/React__default.createElement(TextLink, {
11112
11115
  href: (_cta$href = cta.href) != null ? _cta$href : '#',
11113
11116
  onClick: onCtaClickHandler,
11114
11117
  tabIndex: 0