@royaloperahouse/harmonic 0.7.1-f → 0.7.1-g

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.
@@ -3,7 +3,7 @@ import { IGenericTypographyProps, IHarmonicHeaderProps } from '../../types/typog
3
3
  export declare const DisplayHeader: ({ children, size, em, color, serif, className }: IGenericTypographyProps) => React.JSX.Element;
4
4
  export declare const HarmonicHeader: ({ children, size, em, color, serif, hierarchy: Tag, className, }: IHarmonicHeaderProps) => React.JSX.Element;
5
5
  export declare const HarmonicSubtitle: ({ children, size, color, className }: IGenericTypographyProps) => React.JSX.Element;
6
- export declare const BodyCopyHarmonic: ({ children, size, color, className, ...props }: IGenericTypographyProps) => React.JSX.Element;
6
+ export declare const BodyCopyHarmonic: ({ children, size, color, className, bold, ...props }: IGenericTypographyProps) => React.JSX.Element;
7
7
  export declare const HarmonicOverline: ({ children, size, color, className, ...props }: IGenericTypographyProps) => React.JSX.Element;
8
8
  export declare const ButtonText: ({ children, color, className }: IGenericTypographyProps) => React.JSX.Element;
9
9
  export declare const Caption: ({ children, color, className }: IGenericTypographyProps) => React.JSX.Element;
@@ -7,7 +7,7 @@ interface ContentSummaryProps {
7
7
  interface Clickable {
8
8
  clickable?: boolean;
9
9
  }
10
- export declare const BodyTextRelative: import("styled-components").StyledComponent<({ children, size, color, className, ...props }: import("../../../types/typography").IGenericTypographyProps<HTMLParagraphElement>) => import("react").JSX.Element, any, {}, never>;
10
+ export declare const BodyTextRelative: import("styled-components").StyledComponent<({ children, size, color, className, bold, ...props }: import("../../../types/typography").IGenericTypographyProps<HTMLParagraphElement>) => import("react").JSX.Element, any, {}, never>;
11
11
  export declare const ContentSummaryWrapper: import("styled-components").StyledComponent<"article", any, Clickable, never>;
12
12
  export declare const ContentSummaryImageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
13
13
  export declare const ContentSummaryTextWrapper: import("styled-components").StyledComponent<"div", any, ContentSummaryProps, never>;
@@ -12,7 +12,6 @@ var moment = _interopDefault(require('moment'));
12
12
  var Modal = _interopDefault(require('react-modal'));
13
13
  var ScrollLock = _interopDefault(require('react-scrolllock'));
14
14
  var server = require('react-dom/server');
15
- var reactRouterDom = require('react-router-dom');
16
15
  var Select$1 = require('react-select');
17
16
  var Select$1__default = _interopDefault(Select$1);
18
17
  var Select$2 = _interopDefault(require('react-select/async'));
@@ -367,7 +366,7 @@ var createClassNames = function createClassNames(baseClass, options, styles) {
367
366
 
368
367
  var styles = {"display":"typography-module_display__ZHsz9","header":"typography-module_header__FVsLI","subtitle":"typography-module_subtitle__x3sSn","bodycopy":"typography-module_bodycopy__-BY2U","overline":"typography-module_overline__y1yCC","buttontext":"typography-module_buttontext__Gp0W-","captiontext":"typography-module_captiontext__zyA--","navigationtext":"typography-module_navigationtext__Qj6Zw","display--large":"typography-module_display--large__RwPQD","display--small":"typography-module_display--small__XWUSJ","header--large":"typography-module_header--large__2vP3p","header--medium":"typography-module_header--medium__OgzlB","header--small":"typography-module_header--small__zLuFf","subtitle--large":"typography-module_subtitle--large__1Ep9J","subtitle--small":"typography-module_subtitle--small__Vt9bZ","bodycopy--large":"typography-module_bodycopy--large__BNzf2","bodycopy--medium":"typography-module_bodycopy--medium__cwJEu","bodycopy--small":"typography-module_bodycopy--small__fTLSM","overline--large":"typography-module_overline--large__79WUM","overline--small":"typography-module_overline--small__MGEG6","display--primary":"typography-module_display--primary__9sTwU","header--primary":"typography-module_header--primary__KF0PJ","subtitle--primary":"typography-module_subtitle--primary__yL-hS","bodycopy--primary":"typography-module_bodycopy--primary__5Uo2D","overline--primary":"typography-module_overline--primary__a2NSa","buttontext--primary":"typography-module_buttontext--primary__HnmE3","captiontext--primary":"typography-module_captiontext--primary__mmafI","navigationtext--primary":"typography-module_navigationtext--primary__vIsUl","display--black":"typography-module_display--black__8hmsx","header--black":"typography-module_header--black__M3I14","subtitle--black":"typography-module_subtitle--black__IQRSo","bodycopy--black":"typography-module_bodycopy--black__J8BNP","overline--black":"typography-module_overline--black__RUDoj","buttontext--black":"typography-module_buttontext--black__irjmz","captiontext--black":"typography-module_captiontext--black__7axhP","navigationtext--black":"typography-module_navigationtext--black__wDz-G","display--white":"typography-module_display--white__3QA6W","header--white":"typography-module_header--white__mm-ex","subtitle--white":"typography-module_subtitle--white__VzQ3K","bodycopy--white":"typography-module_bodycopy--white__NJ8J8","overline--white":"typography-module_overline--white__cV5QV","buttontext--white":"typography-module_buttontext--white__rrr8U","captiontext--white":"typography-module_captiontext--white__OMFwW","navigationtext--white":"typography-module_navigationtext--white__5YDdY","display--red":"typography-module_display--red__khdLJ","header--red":"typography-module_header--red__hxuj9","subtitle--red":"typography-module_subtitle--red__gSK7d","bodycopy--red":"typography-module_bodycopy--red__P5Mau","overline--red":"typography-module_overline--red__OW5dE","buttontext--red":"typography-module_buttontext--red__mlRi2","captiontext--red":"typography-module_captiontext--red__jMQIK","navigationtext--red":"typography-module_navigationtext--red__-QADV","display--grey":"typography-module_display--grey__RsgTf","header--grey":"typography-module_header--grey__rC0vN","subtitle--grey":"typography-module_subtitle--grey__1nkEx","bodycopy--grey":"typography-module_bodycopy--grey__SNnaU","overline--grey":"typography-module_overline--grey__lGOsK","buttontext--grey":"typography-module_buttontext--grey__1Y4oX","captiontext--grey":"typography-module_captiontext--grey__V0MLc","navigationtext--grey":"typography-module_navigationtext--grey__xi3sz","display--inherit":"typography-module_display--inherit__ZNOHM","header--inherit":"typography-module_header--inherit__qmHQE","subtitle--inherit":"typography-module_subtitle--inherit__mly-X","bodycopy--inherit":"typography-module_bodycopy--inherit__CoC-f","overline--inherit":"typography-module_overline--inherit__Cq4ni","buttontext--inherit":"typography-module_buttontext--inherit__vguWx","captiontext--inherit":"typography-module_captiontext--inherit__ya6gm","navigationtext--inherit":"typography-module_navigationtext--inherit__cJLWf","display--serif":"typography-module_display--serif__C0-Ve","header--serif":"typography-module_header--serif__uTGCc","display--em":"typography-module_display--em__h2bPV","header--em":"typography-module_header--em__UFQIA","display--bold":"typography-module_display--bold__PG-8g","header--bold":"typography-module_header--bold__InvJk","subtitle--bold":"typography-module_subtitle--bold__Subov","bodycopy--bold":"typography-module_bodycopy--bold__nZX3C","overline--bold":"typography-module_overline--bold__3mUXy","buttontext--bold":"typography-module_buttontext--bold__rBKIJ","captiontext--bold":"typography-module_captiontext--bold__ebTyV","navigationtext--bold":"typography-module_navigationtext--bold__SRlV2"};
369
368
 
370
- var _excluded = ["children", "size", "color", "className"],
369
+ var _excluded = ["children", "size", "color", "className", "bold"],
371
370
  _excluded2 = ["children", "size", "color", "className"];
372
371
  /* ~~~ Headers - size and hierarchy set separately ~~~ */
373
372
  var HarmonicHeader = function HarmonicHeader(_ref2) {
@@ -414,10 +413,12 @@ var BodyCopyHarmonic = function BodyCopyHarmonic(_ref4) {
414
413
  _ref4$color = _ref4.color,
415
414
  color = _ref4$color === void 0 ? 'inherit' : _ref4$color,
416
415
  className = _ref4.className,
416
+ bold = _ref4.bold,
417
417
  props = _objectWithoutPropertiesLoose(_ref4, _excluded);
418
418
  var classNames = createClassNames('bodycopy', {
419
419
  size: size,
420
420
  color: color,
421
+ bold: bold,
421
422
  className: className
422
423
  }, styles);
423
424
  return /*#__PURE__*/React__default.createElement("p", Object.assign({
@@ -9718,17 +9719,11 @@ var reducePages = function reducePages(pages, currentPage) {
9718
9719
  // Otherwise, show 3 pages before and 2 pages after
9719
9720
  return pages.slice(currentPage - 2, currentPage + 4);
9720
9721
  };
9721
- var buildUrlWithPage = function buildUrlWithPage(baseUrl, page, search) {
9722
- var params = new URLSearchParams(search);
9723
- params.set('page', page.toString());
9724
- return baseUrl + "?" + params.toString();
9725
- };
9726
9722
  var Pagination = function Pagination(_ref) {
9727
9723
  var pageCount = _ref.pageCount,
9728
9724
  currentPage = _ref.currentPage,
9729
9725
  baseUrl = _ref.baseUrl,
9730
9726
  className = _ref.className;
9731
- var location = reactRouterDom.useLocation();
9732
9727
  // Array of page numbers starting at 1
9733
9728
  var pageNumbers = Array.from(Array(pageCount + 1).keys()).slice(1);
9734
9729
  var reducedPageNumbers = reducePages(pageNumbers, currentPage);
@@ -9737,7 +9732,7 @@ var Pagination = function Pagination(_ref) {
9737
9732
  },
9738
9733
  // {/* Left arrow only appears after page 1 */
9739
9734
  currentPage > 1 && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(PageNav, {
9740
- href: buildUrlWithPage(baseUrl, 1, location.search)
9735
+ href: baseUrl + "1"
9741
9736
  }, /*#__PURE__*/React__default.createElement(Icon, {
9742
9737
  iconName: "LastPageArrow",
9743
9738
  direction: "right"
@@ -9745,7 +9740,7 @@ var Pagination = function Pagination(_ref) {
9745
9740
  key: "previous-page",
9746
9741
  "data-testid": "left-arrow"
9747
9742
  }, /*#__PURE__*/React__default.createElement(PageNav, {
9748
- href: buildUrlWithPage(baseUrl, currentPage - 1, location.search)
9743
+ href: "" + baseUrl + (currentPage - 1)
9749
9744
  }, /*#__PURE__*/React__default.createElement(Icon, {
9750
9745
  iconName: "ArrowPagination",
9751
9746
  direction: "right"
@@ -9753,7 +9748,7 @@ var Pagination = function Pagination(_ref) {
9753
9748
  return /*#__PURE__*/React__default.createElement("li", {
9754
9749
  key: page
9755
9750
  }, /*#__PURE__*/React__default.createElement(PaginationLink, {
9756
- href: buildUrlWithPage(baseUrl, page, location.search),
9751
+ href: "" + baseUrl + page,
9757
9752
  "data-testid": "page-number"
9758
9753
  }, /*#__PURE__*/React__default.createElement(TextLinkPagination, {
9759
9754
  size: "large",
@@ -9763,12 +9758,12 @@ var Pagination = function Pagination(_ref) {
9763
9758
  key: "next-page",
9764
9759
  "data-testid": "right-arrow"
9765
9760
  }, /*#__PURE__*/React__default.createElement(PageNav, {
9766
- href: buildUrlWithPage(baseUrl, currentPage + 1, location.search)
9761
+ href: "" + baseUrl + (currentPage + 1)
9767
9762
  }, /*#__PURE__*/React__default.createElement(Icon, {
9768
9763
  iconName: "ArrowPagination",
9769
9764
  direction: "left"
9770
9765
  }))), /*#__PURE__*/React__default.createElement(LastPageItem, null, /*#__PURE__*/React__default.createElement(PageNav, {
9771
- href: buildUrlWithPage(baseUrl, pageCount, location.search)
9766
+ href: "" + baseUrl + pageCount
9772
9767
  }, /*#__PURE__*/React__default.createElement(Icon, {
9773
9768
  iconName: "LastPageArrow",
9774
9769
  direction: "left"