@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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## [0.17.3]
2
+ - AnchorBar: extend to accept optional grid
3
+
1
4
  ## [0.17.2]
2
5
  - Swipe: moved padding from Swipe component to Carousel
3
6
 
@@ -11033,6 +11033,12 @@ var AnchorBarContainer = /*#__PURE__*/styled__default(Grid)(_templateObject$1d |
11033
11033
  var CloseButtonWrapper = /*#__PURE__*/styled__default.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);
11034
11034
  var ContentWrapper$2 = /*#__PURE__*/styled__default.a(_templateObject5$z || (_templateObject5$z = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"])));
11035
11035
 
11036
+ var defaultGrid = {
11037
+ columnStartDesktop: 2,
11038
+ columnSpanDesktop: 14,
11039
+ columnStartDevice: 2,
11040
+ columnSpanDevice: 12
11041
+ };
11036
11042
  var AnchorBar = function AnchorBar(_ref) {
11037
11043
  var cta = _ref.cta,
11038
11044
  onClickHandler = _ref.onClickHandler,
@@ -11041,7 +11047,9 @@ var AnchorBar = function AnchorBar(_ref) {
11041
11047
  showAnchorBar = _ref$showAnchorBar === void 0 ? true : _ref$showAnchorBar,
11042
11048
  className = _ref.className,
11043
11049
  _ref$withShadow = _ref.withShadow,
11044
- withShadow = _ref$withShadow === void 0 ? false : _ref$withShadow;
11050
+ withShadow = _ref$withShadow === void 0 ? false : _ref$withShadow,
11051
+ _ref$grid = _ref.grid,
11052
+ grid = _ref$grid === void 0 ? defaultGrid : _ref$grid;
11045
11053
  var _useState = React.useState(showAnchorBar),
11046
11054
  isRendered = _useState[0],
11047
11055
  setIsRendered = _useState[1];
@@ -11065,12 +11073,7 @@ var AnchorBar = function AnchorBar(_ref) {
11065
11073
  "data-testid": "anchor-bar",
11066
11074
  className: className,
11067
11075
  withShadow: withShadow
11068
- }, /*#__PURE__*/React__default.createElement(GridItem, {
11069
- columnStartDesktop: 2,
11070
- columnSpanDesktop: 14,
11071
- columnStartDevice: 2,
11072
- columnSpanDevice: 12
11073
- }, /*#__PURE__*/React__default.createElement(ContentWrapper$2, null, /*#__PURE__*/React__default.createElement(TextLink, {
11076
+ }, /*#__PURE__*/React__default.createElement(GridItem, Object.assign({}, grid), /*#__PURE__*/React__default.createElement(ContentWrapper$2, null, /*#__PURE__*/React__default.createElement(TextLink, {
11074
11077
  href: (_cta$href = cta.href) != null ? _cta$href : '#',
11075
11078
  onClick: onCtaClickHandler,
11076
11079
  tabIndex: 0