@royaloperahouse/harmonic 0.18.3-o → 0.18.4-a
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 +10 -0
- package/README.md +2 -3
- package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +2 -0
- package/dist/components/organisms/Carousels/Carousel/Carousel.d.ts +3 -1
- package/dist/components/organisms/Carousels/HighlightsCarousel/HighlightsCarousel.d.ts +3 -1
- package/dist/harmonic.cjs.development.js +10 -5
- 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 +10 -5
- package/dist/harmonic.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [0.18.7]
|
|
2
|
+
- Carousel, Typography, HighlightCarousels added font changed prop
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## [0.18.5]
|
|
6
|
+
- PeopleListing, PersonCard: Added person-headshot-grayscale class to display headshots in grayscale
|
|
7
|
+
|
|
8
|
+
## [0.18.4]
|
|
9
|
+
- Access Icons: Add Captioned, Family Friendly, and Touch Tour icons
|
|
10
|
+
|
|
1
11
|
## [0.18.3]
|
|
2
12
|
- CastFilter: Added arrows to CastFilter component
|
|
3
13
|
|
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ The Storybook for the latest version of the library is hosted at [Storybook - Ha
|
|
|
22
22
|
|
|
23
23
|
* You can find these values at:
|
|
24
24
|
|
|
25
|
-
*AWS
|
|
25
|
+
*AWS access portal/ Accounts tab -> 'Royal Opera House' -> 'Access keys' -> 'Option 2: Add a profile to your AWS credentials file'*
|
|
26
26
|
|
|
27
27
|
* **To deploy a preview** for demo / QA you will need:
|
|
28
28
|
|
|
@@ -151,8 +151,7 @@ To publish a snapshot use:
|
|
|
151
151
|
```bash
|
|
152
152
|
NPM_ROH_TOKEN={NPM_TOKEN} RELEASE_VERSION={RELEASE_VERSION} yarn publish-snapshot
|
|
153
153
|
```
|
|
154
|
-
|
|
155
|
-
The version published to NPM will be named, e.g. `1.42.0-a-harmonic-development`, use this to install the snapshot package in the frontend repos.
|
|
154
|
+
Use the version name to install the package in a frontend repo.
|
|
156
155
|
|
|
157
156
|
### **2. To release a stable version**
|
|
158
157
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const ReplacementWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
2
|
export declare const CreditListingWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
$largeDesktopColumns?: 3 | 4 | undefined;
|
|
4
|
+
} & {
|
|
3
5
|
columnCount: number;
|
|
4
6
|
}, never>;
|
|
5
7
|
export declare const DescriptionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { ICarouselProps } from '../../../../types/carousel';
|
|
3
|
-
declare const Carousel: FunctionComponent<ICarouselProps
|
|
3
|
+
declare const Carousel: FunctionComponent<ICarouselProps & Partial<{
|
|
4
|
+
titleFontFamily: 'Victor' | 'Grey' | undefined;
|
|
5
|
+
}>>;
|
|
4
6
|
export default Carousel;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { IHighlightsCarouselProps } from '../../../../types/carousel';
|
|
3
|
-
declare const HighlightsCarousel: FunctionComponent<IHighlightsCarouselProps
|
|
3
|
+
declare const HighlightsCarousel: FunctionComponent<IHighlightsCarouselProps & Partial<{
|
|
4
|
+
titleFontFamily: 'Victor' | 'Grey' | undefined;
|
|
5
|
+
}>>;
|
|
4
6
|
export default HighlightsCarousel;
|
|
@@ -217,7 +217,8 @@ var HarmonicHeader = function HarmonicHeader(_ref2) {
|
|
|
217
217
|
em = _ref2.em,
|
|
218
218
|
_ref2$color = _ref2.color,
|
|
219
219
|
color = _ref2$color === void 0 ? 'inherit' : _ref2$color,
|
|
220
|
-
serif = _ref2.serif,
|
|
220
|
+
_ref2$serif = _ref2.serif,
|
|
221
|
+
serif = _ref2$serif === void 0 ? false : _ref2$serif,
|
|
221
222
|
hierarchy = _ref2.hierarchy,
|
|
222
223
|
tag = _ref2.tag,
|
|
223
224
|
className = _ref2.className,
|
|
@@ -12789,7 +12790,8 @@ var Carousel = function Carousel(_ref) {
|
|
|
12789
12790
|
_ref$infinite = _ref.infinite,
|
|
12790
12791
|
infinite = _ref$infinite === void 0 ? true : _ref$infinite,
|
|
12791
12792
|
_ref$useOffset = _ref.useOffset,
|
|
12792
|
-
useOffset = _ref$useOffset === void 0 ? true : _ref$useOffset
|
|
12793
|
+
useOffset = _ref$useOffset === void 0 ? true : _ref$useOffset,
|
|
12794
|
+
titleFontFamily = _ref.titleFontFamily;
|
|
12793
12795
|
var _useState = React.useState(false),
|
|
12794
12796
|
isFullscreen = _useState[0],
|
|
12795
12797
|
setIsFullscreen = _useState[1];
|
|
@@ -12939,6 +12941,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12939
12941
|
var carouselTitleId = "carousel-title-" + title;
|
|
12940
12942
|
var titleSemanticLevelValue = titleSemanticLevel ? "h" + titleSemanticLevel : 'h2';
|
|
12941
12943
|
var Wrapper = type === exports.CarouselType.Image ? ImageCarouselWrapper : CardsCarouselWrapper;
|
|
12944
|
+
var isVictorTitleFont = titleFontFamily === 'Victor';
|
|
12942
12945
|
return /*#__PURE__*/React__default.createElement(Wrapper, {
|
|
12943
12946
|
className: className,
|
|
12944
12947
|
type: type,
|
|
@@ -12962,7 +12965,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12962
12965
|
isDescriptionPresent: !!description
|
|
12963
12966
|
}, /*#__PURE__*/React__default.createElement(TitleText$1, {
|
|
12964
12967
|
size: "medium",
|
|
12965
|
-
serif:
|
|
12968
|
+
serif: isVictorTitleFont,
|
|
12966
12969
|
hierarchy: titleSemanticLevelValue
|
|
12967
12970
|
}, title)), /*#__PURE__*/React__default.createElement(BodyCopyHarmonic, {
|
|
12968
12971
|
size: "large"
|
|
@@ -13192,7 +13195,8 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
|
|
|
13192
13195
|
carouselTitle = _ref.carouselTitle,
|
|
13193
13196
|
slides = _ref.slides,
|
|
13194
13197
|
titleSemanticLevel = _ref.titleSemanticLevel,
|
|
13195
|
-
className = _ref.className
|
|
13198
|
+
className = _ref.className,
|
|
13199
|
+
titleFontFamily = _ref.titleFontFamily;
|
|
13196
13200
|
var slidesMedia = React.useMemo(function () {
|
|
13197
13201
|
return slides.map(function (_ref2) {
|
|
13198
13202
|
var mediaContent = _ref2.mediaContent;
|
|
@@ -13223,6 +13227,7 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
|
|
|
13223
13227
|
var handleClickInside = function handleClickInside(e) {
|
|
13224
13228
|
e.stopPropagation();
|
|
13225
13229
|
};
|
|
13230
|
+
var isVictorTitleFont = titleFontFamily === 'Victor';
|
|
13226
13231
|
return /*#__PURE__*/React__default.createElement(HighlightsGrid$1, {
|
|
13227
13232
|
role: "region",
|
|
13228
13233
|
"aria-labelledby": carouselTitleId,
|
|
@@ -13235,7 +13240,7 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
|
|
|
13235
13240
|
}, /*#__PURE__*/React__default.createElement(HarmonicHeader, {
|
|
13236
13241
|
className: TYPOGRAPHY_CLASS_NAME,
|
|
13237
13242
|
size: "medium",
|
|
13238
|
-
serif:
|
|
13243
|
+
serif: isVictorTitleFont,
|
|
13239
13244
|
hierarchy: titleSemanticLevelValue
|
|
13240
13245
|
}, carouselTitle))), hasMultipleSlides && (/*#__PURE__*/React__default.createElement(RotatorButtonsWrapperMobile$1, null, /*#__PURE__*/React__default.createElement(RotatorButtons, {
|
|
13241
13246
|
onClickNext: onNext,
|