@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.
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +1 -1
- package/dist/harmonic.cjs.development.js +8 -13
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +8 -13
- package/dist/harmonic.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/harmonic.esm.js
CHANGED
|
@@ -4,7 +4,6 @@ import moment from 'moment';
|
|
|
4
4
|
import Modal from 'react-modal';
|
|
5
5
|
import ScrollLock from 'react-scrolllock';
|
|
6
6
|
import { renderToString } from 'react-dom/server';
|
|
7
|
-
import { useLocation } from 'react-router-dom';
|
|
8
7
|
import Select$1, { components } from 'react-select';
|
|
9
8
|
import Select$2 from 'react-select/async';
|
|
10
9
|
|
|
@@ -387,7 +386,7 @@ var css_248z = "/* Base classes */\n.typography-module_display__ZHsz9 {\n margi
|
|
|
387
386
|
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"};
|
|
388
387
|
styleInject(css_248z);
|
|
389
388
|
|
|
390
|
-
var _excluded = ["children", "size", "color", "className"],
|
|
389
|
+
var _excluded = ["children", "size", "color", "className", "bold"],
|
|
391
390
|
_excluded2 = ["children", "size", "color", "className"];
|
|
392
391
|
/* ~~~ Headers - size and hierarchy set separately ~~~ */
|
|
393
392
|
var HarmonicHeader = function HarmonicHeader(_ref2) {
|
|
@@ -434,10 +433,12 @@ var BodyCopyHarmonic = function BodyCopyHarmonic(_ref4) {
|
|
|
434
433
|
_ref4$color = _ref4.color,
|
|
435
434
|
color = _ref4$color === void 0 ? 'inherit' : _ref4$color,
|
|
436
435
|
className = _ref4.className,
|
|
436
|
+
bold = _ref4.bold,
|
|
437
437
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded);
|
|
438
438
|
var classNames = createClassNames('bodycopy', {
|
|
439
439
|
size: size,
|
|
440
440
|
color: color,
|
|
441
|
+
bold: bold,
|
|
441
442
|
className: className
|
|
442
443
|
}, styles);
|
|
443
444
|
return /*#__PURE__*/React__default.createElement("p", Object.assign({
|
|
@@ -9745,17 +9746,11 @@ var reducePages = function reducePages(pages, currentPage) {
|
|
|
9745
9746
|
// Otherwise, show 3 pages before and 2 pages after
|
|
9746
9747
|
return pages.slice(currentPage - 2, currentPage + 4);
|
|
9747
9748
|
};
|
|
9748
|
-
var buildUrlWithPage = function buildUrlWithPage(baseUrl, page, search) {
|
|
9749
|
-
var params = new URLSearchParams(search);
|
|
9750
|
-
params.set('page', page.toString());
|
|
9751
|
-
return baseUrl + "?" + params.toString();
|
|
9752
|
-
};
|
|
9753
9749
|
var Pagination = function Pagination(_ref) {
|
|
9754
9750
|
var pageCount = _ref.pageCount,
|
|
9755
9751
|
currentPage = _ref.currentPage,
|
|
9756
9752
|
baseUrl = _ref.baseUrl,
|
|
9757
9753
|
className = _ref.className;
|
|
9758
|
-
var location = useLocation();
|
|
9759
9754
|
// Array of page numbers starting at 1
|
|
9760
9755
|
var pageNumbers = Array.from(Array(pageCount + 1).keys()).slice(1);
|
|
9761
9756
|
var reducedPageNumbers = reducePages(pageNumbers, currentPage);
|
|
@@ -9764,7 +9759,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
9764
9759
|
},
|
|
9765
9760
|
// {/* Left arrow only appears after page 1 */
|
|
9766
9761
|
currentPage > 1 && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(PageNav, {
|
|
9767
|
-
href:
|
|
9762
|
+
href: baseUrl + "1"
|
|
9768
9763
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
9769
9764
|
iconName: "LastPageArrow",
|
|
9770
9765
|
direction: "right"
|
|
@@ -9772,7 +9767,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
9772
9767
|
key: "previous-page",
|
|
9773
9768
|
"data-testid": "left-arrow"
|
|
9774
9769
|
}, /*#__PURE__*/React__default.createElement(PageNav, {
|
|
9775
|
-
href:
|
|
9770
|
+
href: "" + baseUrl + (currentPage - 1)
|
|
9776
9771
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
9777
9772
|
iconName: "ArrowPagination",
|
|
9778
9773
|
direction: "right"
|
|
@@ -9780,7 +9775,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
9780
9775
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
9781
9776
|
key: page
|
|
9782
9777
|
}, /*#__PURE__*/React__default.createElement(PaginationLink, {
|
|
9783
|
-
href:
|
|
9778
|
+
href: "" + baseUrl + page,
|
|
9784
9779
|
"data-testid": "page-number"
|
|
9785
9780
|
}, /*#__PURE__*/React__default.createElement(TextLinkPagination, {
|
|
9786
9781
|
size: "large",
|
|
@@ -9790,12 +9785,12 @@ var Pagination = function Pagination(_ref) {
|
|
|
9790
9785
|
key: "next-page",
|
|
9791
9786
|
"data-testid": "right-arrow"
|
|
9792
9787
|
}, /*#__PURE__*/React__default.createElement(PageNav, {
|
|
9793
|
-
href:
|
|
9788
|
+
href: "" + baseUrl + (currentPage + 1)
|
|
9794
9789
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
9795
9790
|
iconName: "ArrowPagination",
|
|
9796
9791
|
direction: "left"
|
|
9797
9792
|
}))), /*#__PURE__*/React__default.createElement(LastPageItem, null, /*#__PURE__*/React__default.createElement(PageNav, {
|
|
9798
|
-
href:
|
|
9793
|
+
href: "" + baseUrl + pageCount
|
|
9799
9794
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
9800
9795
|
iconName: "LastPageArrow",
|
|
9801
9796
|
direction: "left"
|