@royaloperahouse/harmonic 0.19.1-b → 0.19.2
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 +3 -0
- package/README.GIT +293 -0
- package/README.md +43 -267
- package/dist/components/atoms/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/atoms/Icons/StorybookSupport/Iconography.d.ts +10 -2
- package/dist/components/atoms/Radio/Radio.d.ts +7 -0
- package/dist/components/atoms/Radio/Radio.style.d.ts +4 -0
- package/dist/components/atoms/Radio/index.d.ts +2 -0
- package/dist/components/atoms/Tab/Tab.d.ts +1 -1
- package/dist/components/atoms/TextLogo/TextLogo.d.ts +10 -3
- package/dist/components/atoms/index.d.ts +2 -7
- package/dist/components/index.d.ts +4 -4
- package/dist/components/molecules/BodyContent/BodyContent.d.ts +4 -1
- package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.d.ts +7 -1
- package/dist/components/molecules/PageHeading/Promo/components/Badge.d.ts +8 -2
- package/dist/components/molecules/PageHeading/Promo/components/Button.d.ts +8 -2
- package/dist/components/molecules/Pagination/Pagination.d.ts +13 -2
- package/dist/components/molecules/Paywall/Paywall.styles.d.ts +4 -1
- package/dist/components/molecules/PromoWithTitle/PromoChild.d.ts +7 -2
- package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +7 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.style.d.ts +1 -0
- package/dist/components/molecules/RadioGroup/index.d.ts +2 -0
- package/dist/components/molecules/Select/Select.d.ts +101 -0
- package/dist/components/molecules/Select/Select.style.d.ts +13 -0
- package/dist/components/molecules/Select/index.d.ts +2 -0
- package/dist/components/molecules/Select2/Select2.d.ts +3 -1
- package/dist/components/molecules/SignUpForm/components/SignUpFormButton.d.ts +6 -2
- package/dist/components/molecules/SkipToMain/SkipToMain.style.d.ts +1 -1
- package/dist/components/molecules/Swipe/Swipe.d.ts +6 -2
- package/dist/components/molecules/Table/Table.style.d.ts +1 -1
- package/dist/components/molecules/Table/components/HeaderCells.d.ts +4 -1
- package/dist/components/molecules/index.d.ts +3 -10
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/Buttons.d.ts +3 -2
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/InfoSection.d.ts +9 -3
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/SwipeCarousel.d.ts +12 -3
- package/dist/harmonic.cjs.development.css +0 -319
- package/dist/harmonic.cjs.development.js +2142 -1739
- 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 +2315 -1905
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +0 -1
- package/dist/types/types.d.ts +1 -9
- package/package.json +19 -5
- package/dist/components/atoms/Icons/StorybookSupport/Iconography.types.d.ts +0 -10
- package/dist/components/atoms/TextLogo/TextLogo.types.d.ts +0 -10
- package/dist/components/molecules/BodyContent/BodyContent.types.d.ts +0 -4
- package/dist/components/molecules/Information/InfoCta.types.d.ts +0 -11
- package/dist/components/molecules/PageHeading/Compact/Compact.types.d.ts +0 -14
- package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.types.d.ts +0 -7
- package/dist/components/molecules/PageHeading/Promo/components/Badge.types.d.ts +0 -7
- package/dist/components/molecules/PageHeading/Promo/components/Button.types.d.ts +0 -7
- package/dist/components/molecules/Pagination/Pagination.types.d.ts +0 -13
- package/dist/components/molecules/PromoWithTitle/PromoChild.types.d.ts +0 -7
- package/dist/components/molecules/Select2/Select2.types.d.ts +0 -6
- package/dist/components/molecules/SignUpForm/components/SignUpFormButton.types.d.ts +0 -6
- package/dist/components/molecules/Swipe/Swipe.types.d.ts +0 -17
- package/dist/components/molecules/Table/components/HeaderCells.types.d.ts +0 -5
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/Buttons.types.d.ts +0 -2
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/InfoSection.types.d.ts +0 -8
- package/dist/components/organisms/Carousels/HighlightsCarousel/components/SwipeCarousel.types.d.ts +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, Carousel, CastFilter, CinemaBadge, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, MinimalCarousel, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, PageHeadingHighlightCarousel, Pagination, PasswordStrength, Paywall, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, SignUpForm, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, TertiaryButton, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, VideoControls, VideoWithControls } from './components';
|
|
2
2
|
import BodyContent from './components/molecules/BodyContent';
|
|
3
3
|
import Quote from './components/molecules/Quote';
|
|
4
4
|
import { devices, breakpoints } from './styles/viewports';
|
|
@@ -12,4 +12,4 @@ import HarmonicThemeProvider, { useHarmonicTheme } from './styles/HarmonicThemeP
|
|
|
12
12
|
import { HarmonicSize } from './types/typography';
|
|
13
13
|
import { HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './components/Typography';
|
|
14
14
|
export { useHarmonicTheme };
|
|
15
|
-
export {
|
|
15
|
+
export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyContent, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, CastFilter, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, HarmonicSize, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, HotFilters, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, ModalWindow, Navigation, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingHighlight, PageHeadingPromo, PageHeadingHighlightCarousel, Pagination, PasswordStrength, PersonCard, Paywall, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, SignUpForm, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, Table, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextFieldLegacy, TextLink, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
|
package/dist/types/types.d.ts
CHANGED
|
@@ -147,10 +147,6 @@ export interface ITabProps {
|
|
|
147
147
|
* Additional CSS class names to apply to the navigation component.
|
|
148
148
|
*/
|
|
149
149
|
className?: string;
|
|
150
|
-
/**
|
|
151
|
-
* The unique ID to assign to the link element.
|
|
152
|
-
*/
|
|
153
|
-
tabLinkId?: string;
|
|
154
150
|
/**
|
|
155
151
|
* Defines the ARIA role of the element for accessibility purposes.
|
|
156
152
|
*/
|
|
@@ -226,11 +222,7 @@ export interface IDropdownProps {
|
|
|
226
222
|
*/
|
|
227
223
|
ariaLabel?: string;
|
|
228
224
|
/**
|
|
229
|
-
*
|
|
230
|
-
*/
|
|
231
|
-
tabLinkId?: string;
|
|
232
|
-
/**
|
|
233
|
-
* Defines if it is needed to trim the text of the Tab and add 3 dots in the end
|
|
225
|
+
* Defines if it is needed to trim the text of the Tab and add 3 dots in the end
|
|
234
226
|
*/
|
|
235
227
|
trimTabText?: boolean;
|
|
236
228
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@royaloperahouse/harmonic",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"author": "Royal Opera House",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": ">=
|
|
12
|
+
"node": ">=10"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"test:watch": "jest --watch --verbose --passWithNoTests",
|
|
23
23
|
"lint": "eslint src",
|
|
24
24
|
"format": "prettier --write src",
|
|
25
|
+
"prepare": "tsdx build",
|
|
25
26
|
"size": "size-limit",
|
|
26
27
|
"analyze": "size-limit --why",
|
|
27
28
|
"storybook": "storybook dev -p 6006",
|
|
@@ -29,10 +30,9 @@
|
|
|
29
30
|
"build-storybook": "rm -rf ./storybook-static; storybook build -o ./storybook-static; cp -r ./external/ ./storybook-static/",
|
|
30
31
|
"deploy-storybook-dev": "chromatic --build-script-name build-storybook-dev",
|
|
31
32
|
"deploy-storybook": "storybook-to-aws-s3 --bucket-path=harmonic.roh.org.uk --aws-profile=parent --existing-output-dir=storybook-static --s3-sync-options=--acl=public-read",
|
|
32
|
-
"test:save-results": "jest --json --passWithNoTests --outputFile=./test/jest-test-results.json",
|
|
33
33
|
"test-storybook": "jest --json --passWithNoTests --outputFile=./test/jest-test-results.json",
|
|
34
|
-
"publish-release": "make prepare-release-candidate
|
|
35
|
-
"publish-snapshot": "make prepare-release-candidate
|
|
34
|
+
"publish-release": "make prepare-release-candidate; make publish-release",
|
|
35
|
+
"publish-snapshot": "make prepare-release-candidate; make publish-npm-snapshot"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|
|
38
38
|
"React",
|
|
@@ -43,6 +43,11 @@
|
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=16"
|
|
45
45
|
},
|
|
46
|
+
"husky": {
|
|
47
|
+
"hooks": {
|
|
48
|
+
"pre-commit": "lint-staged"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
46
51
|
"module": "dist/harmonic.esm.js",
|
|
47
52
|
"size-limit": [
|
|
48
53
|
{
|
|
@@ -86,6 +91,7 @@
|
|
|
86
91
|
"@types/react-test-renderer": "^17.0.1",
|
|
87
92
|
"@types/resize-observer-browser": "^0.1.11",
|
|
88
93
|
"@types/styled-components": "5.1.26",
|
|
94
|
+
"@types/testing-library__jest-dom": "^5.9.1",
|
|
89
95
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
90
96
|
"@typescript-eslint/parser": "^5.0.0",
|
|
91
97
|
"autoprefixer": "^10.4.20",
|
|
@@ -102,9 +108,11 @@
|
|
|
102
108
|
"eslint-plugin-react": "^7.28.0",
|
|
103
109
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
104
110
|
"eslint-plugin-storybook": "^0.12.0",
|
|
111
|
+
"husky": "^7.0.4",
|
|
105
112
|
"identity-obj-proxy": "^3.0.0",
|
|
106
113
|
"jest": "^29.0.0",
|
|
107
114
|
"jest-environment-jsdom": "^29.7.0",
|
|
115
|
+
"lint-staged": "^15.2.10",
|
|
108
116
|
"prettier": "^3.3.3",
|
|
109
117
|
"react": "^17.0.2",
|
|
110
118
|
"react-dom": "^17.0.2",
|
|
@@ -130,5 +138,11 @@
|
|
|
130
138
|
"@types/react": "^17.0.34",
|
|
131
139
|
"@types/react-dom": "^17.0.11"
|
|
132
140
|
},
|
|
141
|
+
"lint-staged": {
|
|
142
|
+
"*.{js,jsx,json,css,md,ts,tsx,html}": [
|
|
143
|
+
"npx eslint src --fix ",
|
|
144
|
+
"npx prettier src --write --uncommitted"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
133
147
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
134
148
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DirectionType, IconNameType } from '../../../../types/iconTypes';
|
|
2
|
-
export interface IStorybookIcon {
|
|
3
|
-
iconName: IconNameType;
|
|
4
|
-
label: string;
|
|
5
|
-
direction?: DirectionType;
|
|
6
|
-
ariaLabel?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IIconographyGridProps {
|
|
9
|
-
iconsArray: IStorybookIcon[];
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DirectionType, IconNameType } from '../../../types/iconTypes';
|
|
2
|
-
import type { InformationCtaVariant } from '../../../types/information';
|
|
3
|
-
import { LinkTarget } from '../../../types/types';
|
|
4
|
-
export declare type RenderButtonProps = {
|
|
5
|
-
variant: InformationCtaVariant;
|
|
6
|
-
link: string;
|
|
7
|
-
text: string;
|
|
8
|
-
iconName?: IconNameType;
|
|
9
|
-
iconDirection?: DirectionType;
|
|
10
|
-
target: LinkTarget;
|
|
11
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare type VideoPoster = {
|
|
2
|
-
desktop?: string;
|
|
3
|
-
mobile?: string;
|
|
4
|
-
alt: string;
|
|
5
|
-
};
|
|
6
|
-
export declare type Video = {
|
|
7
|
-
elementId: string;
|
|
8
|
-
desktop?: string;
|
|
9
|
-
mobile?: string;
|
|
10
|
-
};
|
|
11
|
-
export interface IVideoProps {
|
|
12
|
-
video: Video;
|
|
13
|
-
poster: VideoPoster;
|
|
14
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { EditorialLink, ThemeType } from '../../../../../types';
|
|
2
|
-
import { PageHeadingPromoAdditionalLink } from '../../../../../types/impactHeader';
|
|
3
|
-
export declare type ButtonProps = {
|
|
4
|
-
link: PageHeadingPromoAdditionalLink | EditorialLink;
|
|
5
|
-
theme?: ThemeType;
|
|
6
|
-
isMobile?: boolean;
|
|
7
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare type PageData = {
|
|
2
|
-
currentPage: number;
|
|
3
|
-
pageCount: number;
|
|
4
|
-
baseUrl: string;
|
|
5
|
-
onPageChange?: never;
|
|
6
|
-
className?: string;
|
|
7
|
-
} | {
|
|
8
|
-
currentPage: number;
|
|
9
|
-
pageCount: number;
|
|
10
|
-
onPageChange: (page: number) => void;
|
|
11
|
-
baseUrl?: never;
|
|
12
|
-
className?: string;
|
|
13
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { IVideoWithControlsSettings } from '../../../types/types';
|
|
3
|
-
export interface IPromoChildProps {
|
|
4
|
-
children: ReactElement<HTMLImageElement | HTMLVideoElement>;
|
|
5
|
-
videoSettings: IVideoWithControlsSettings;
|
|
6
|
-
imageToLeft: boolean;
|
|
7
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare type SwipeProps = {
|
|
3
|
-
children: React.ReactNode[];
|
|
4
|
-
infinite?: boolean;
|
|
5
|
-
slidesOffsetBefore?: number;
|
|
6
|
-
slidesAriaHidden?: boolean;
|
|
7
|
-
onIndexChange?: (index: number) => void;
|
|
8
|
-
onActiveChange?: (value: boolean) => void;
|
|
9
|
-
onOverflowChange?: (overflow: boolean) => void;
|
|
10
|
-
limitDragToNavigableRange?: boolean;
|
|
11
|
-
} & React.HTMLAttributes<HTMLDivElement>;
|
|
12
|
-
export interface SwipeRef {
|
|
13
|
-
nextSlide: () => void;
|
|
14
|
-
prevSlide: () => void;
|
|
15
|
-
hasOverflow: () => boolean;
|
|
16
|
-
hasNext: () => boolean;
|
|
17
|
-
}
|
package/dist/components/organisms/Carousels/HighlightsCarousel/components/InfoSection.types.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { HighlightsCarouselSlide } from '../../../../../types/carousel';
|
|
3
|
-
import { ILogosProps } from '../../../../../types/types';
|
|
4
|
-
export declare type HighlightsCarouselInfoSectionProps = {
|
|
5
|
-
logo?: ReactElement<ILogosProps> | null;
|
|
6
|
-
slide: HighlightsCarouselSlide;
|
|
7
|
-
currentSlideIndex: number;
|
|
8
|
-
};
|
package/dist/components/organisms/Carousels/HighlightsCarousel/components/SwipeCarousel.types.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { HighlightsCarouselSlideImage, HighlightsCarouselSlideVideo } from '../../../../../types/carousel';
|
|
3
|
-
import { SwipeRef } from '../../../../molecules';
|
|
4
|
-
export declare type HighlightsCarouselSwipeCarouselProps = {
|
|
5
|
-
slidesMedia: (HighlightsCarouselSlideImage | HighlightsCarouselSlideVideo)[];
|
|
6
|
-
currentSlide: number;
|
|
7
|
-
setCurrentSlide: React.Dispatch<React.SetStateAction<number>>;
|
|
8
|
-
carouselRef: React.RefObject<SwipeRef>;
|
|
9
|
-
hasMultipleSlides: boolean;
|
|
10
|
-
carouselTitle?: string;
|
|
11
|
-
};
|