@royaloperahouse/harmonic 1.0.8 → 1.0.9

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.
@@ -764,6 +764,40 @@ var Tick = (function (_ref) {
764
764
  }));
765
765
  });
766
766
 
767
+ var Expand16px = (function (_ref) {
768
+ var _ref$color = _ref.color,
769
+ color = _ref$color === void 0 ? '#1A1A1A' : _ref$color,
770
+ ariaLabel = _ref.ariaLabel;
771
+ return /*#__PURE__*/createElement("svg", {
772
+ width: "16",
773
+ height: "16",
774
+ viewBox: "1.5 1.5 9.5 9.5",
775
+ fill: "none",
776
+ "aria-label": ariaLabel,
777
+ xmlns: "http://www.w3.org/2000/svg"
778
+ }, /*#__PURE__*/createElement("path", {
779
+ d: "M6.44531 6.08203V1.83203H5.94531V6.08203H1.69531V6.58203H5.94531V10.832H6.44531V6.58203H10.6953V6.08203H6.44531Z",
780
+ fill: color
781
+ }));
782
+ });
783
+
784
+ var Remove16px = (function (_ref) {
785
+ var _ref$color = _ref.color,
786
+ color = _ref$color === void 0 ? '#1A1A1A' : _ref$color,
787
+ ariaLabel = _ref.ariaLabel;
788
+ return /*#__PURE__*/createElement("svg", {
789
+ xmlns: "http://www.w3.org/2000/svg",
790
+ viewBox: "1.5 1.2 10.5 10.5",
791
+ width: "16",
792
+ height: "16",
793
+ fill: "none",
794
+ "aria-label": ariaLabel
795
+ }, /*#__PURE__*/createElement("g", null, /*#__PURE__*/createElement("path", {
796
+ d: "M7.75597 6.26964L11.6954 2.33019L10.6348 1.26953L6.69531 5.20898L2.75586 1.26953L1.6952 2.33019L5.63465 6.26964L1.63477 10.2695L2.69543 11.3302L6.69531 7.33031L10.6952 11.3302L11.7559 10.2695L7.75597 6.26964Z",
797
+ fill: color
798
+ })));
799
+ });
800
+
767
801
  var AddToMyList = (function (_ref) {
768
802
  var _ref$color = _ref.color,
769
803
  color = _ref$color === void 0 ? '#1A1A1A' : _ref$color,
@@ -2608,6 +2642,7 @@ var IconLibrary = {
2608
2642
  Email: Email,
2609
2643
  Expand: Expand,
2610
2644
  Expand12px: Expand12px,
2645
+ Expand16px: Expand16px,
2611
2646
  ExternalLink: ExternalLink,
2612
2647
  Facebook: Facebook,
2613
2648
  FamilyFriendly: FamilyFriendly,
@@ -2645,6 +2680,7 @@ var IconLibrary = {
2645
2680
  Reminder: Reminder,
2646
2681
  Remove: Remove,
2647
2682
  Remove12px: Remove12px,
2683
+ Remove16px: Remove16px,
2648
2684
  Restart: Restart,
2649
2685
  Search: Search,
2650
2686
  Seat: Seat,
@@ -6083,7 +6119,7 @@ var CardContainer = /*#__PURE__*/styled.div(_templateObject$G || (_templateObjec
6083
6119
  return isCardClickable ? 'pointer' : 'default';
6084
6120
  }, function (_ref2) {
6085
6121
  var onlyShowButtonsOnHover = _ref2.onlyShowButtonsOnHover;
6086
- return !onlyShowButtonsOnHover ? "height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between; \n " : '';
6122
+ return !onlyShowButtonsOnHover ? "height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n " : '';
6087
6123
  });
6088
6124
  var HoverContainer = /*#__PURE__*/styled.div(_templateObject2$t || (_templateObject2$t = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 4px;\n background-color: var(--button-bg-color);\n background-color: ", ";\n position: absolute;\n width: 100%;\n z-index: ", ";\n"])), function (_ref3) {
6089
6125
  var lineColor = _ref3.lineColor;
@@ -6116,7 +6152,7 @@ var ExtraActionsContainer = /*#__PURE__*/styled.div(_templateObject1$1 || (_temp
6116
6152
  var fullWidth = _ref9.fullWidth;
6117
6153
  return fullWidth ? '0' : '20px';
6118
6154
  });
6119
- var LabelElements = /*#__PURE__*/styled.div(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n height: 26px;\n padding: 0 8px;\n background-color: ", ";\n"])), function (_ref0) {
6155
+ var LabelElements = /*#__PURE__*/styled.div(_templateObject10$1 || (_templateObject10$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n height: 26px;\n padding: 0 8px;\n background-color: ", ";\n && * {\n text-transform: var(--text-transform-body);\n }\n"])), function (_ref0) {
6120
6156
  var bgColor = _ref0.bgColor;
6121
6157
  return bgColor ? "var(--color-base-" + bgColor + ")" : 'var(--color-primary-background)';
6122
6158
  });
@@ -12096,7 +12132,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
12096
12132
  }, []);
12097
12133
  useEffect(function () {
12098
12134
  var scrollTriggerCheck = function scrollTriggerCheck() {
12099
- var elementGap = 100;
12135
+ var elementGap = LIST_ITEM_GAP;
12100
12136
  var reachedItem = tabs == null ? void 0 : tabs.find(function (item) {
12101
12137
  var targetSectionElement = document.getElementById(item.id);
12102
12138
  if (!targetSectionElement) return false;
@@ -12119,7 +12155,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
12119
12155
  offsetWidth = tabLinkElement.offsetWidth;
12120
12156
  var isInView = offsetLeft >= scrollLeft && offsetLeft + offsetWidth < scrollLeft + clientWidth;
12121
12157
  if (!isInView && tabListRef != null && tabListRef.current) {
12122
- tabListRef.current.scrollLeft = offsetLeft;
12158
+ tabListRef.current.scrollLeft = offsetLeft - LIST_ITEM_GAP;
12123
12159
  }
12124
12160
  setSelectedItem(reachedItem.id);
12125
12161
  }
@@ -12602,7 +12638,7 @@ var TitleWrapper$5 = /*#__PURE__*/styled.div(_templateObject5$E || (_templateObj
12602
12638
  return isDescriptionPresent && 'margin: 20px 0';
12603
12639
  });
12604
12640
  var TitleText$1 = /*#__PURE__*/styled(HarmonicHeader)(_templateObject6$u || (_templateObject6$u = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n && {\n line-height: 42px;\n }\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n padding-top: 4px;\n box-sizing: border-box;\n /* max-height = 2 * 40px (two lines): 40px is the design line-height for header--medium (matches font-size/optical metrics), +4px provides extra descender room so glyphs like g/y aren't clipped \u2014 non\u2011WebKit fallback */\n max-height: calc(2 * 40px + 4px);\n"])));
12605
- var ButtonsWrapper = /*#__PURE__*/styled.div(_templateObject7$o || (_templateObject7$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: flex-end;\n align-items: start;\n"])));
12641
+ var ButtonsWrapper = /*#__PURE__*/styled.div(_templateObject7$o || (_templateObject7$o = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: flex-end;\n align-items: start;\n\n @media ", " {\n margin-right: var(--navigation-middle-gap);\n }\n"])), devices.mobile);
12606
12642
  var TitleGridItem = /*#__PURE__*/styled(GridItem)(_templateObject8$h || (_templateObject8$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media ", " {\n grid-column: 2 / span 10;\n }\n"])), devices.tablet);
12607
12643
  var SwipeGridWrapper = /*#__PURE__*/styled(GridItem)(_templateObject9$b || (_templateObject9$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n .swipe {\n padding-inline-start: 2px;\n padding-block-start: 2px;\n }\n\n ", ";\n\n @media ", " {\n grid-column: ", ";\n }\n\n @media ", " {\n grid-column: 2 / span 13;\n }\n"])), function (_ref5) {
12608
12644
  var active = _ref5.active;