@royaloperahouse/harmonic 0.6.0-f → 0.6.1

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.
Files changed (29) hide show
  1. package/README.GIT +278 -0
  2. package/README.md +43 -252
  3. package/dist/components/atoms/ControlledDropdown/ControlledDropdown.d.ts +2 -2
  4. package/dist/components/atoms/ControlledDropdown/ControlledDropdown.style.d.ts +2 -2
  5. package/dist/components/atoms/Dropdown/Dropdown.d.ts +1 -1
  6. package/dist/components/atoms/Search/Search.d.ts +1 -1
  7. package/dist/components/atoms/Search/Search.style.d.ts +1 -1
  8. package/dist/components/atoms/Tab/Tab.d.ts +1 -1
  9. package/dist/components/index.d.ts +2 -2
  10. package/dist/components/molecules/NavTop/NavTop.d.ts +1 -1
  11. package/dist/components/molecules/SearchBar/SearchBar.d.ts +1 -1
  12. package/dist/components/molecules/SearchBar/SearchBar.style.d.ts +1 -1
  13. package/dist/components/molecules/index.d.ts +1 -2
  14. package/dist/harmonic.cjs.development.css +0 -319
  15. package/dist/harmonic.cjs.development.js +186 -306
  16. package/dist/harmonic.cjs.development.js.map +1 -1
  17. package/dist/harmonic.cjs.production.min.js +1 -1
  18. package/dist/harmonic.cjs.production.min.js.map +1 -1
  19. package/dist/harmonic.esm.js +196 -318
  20. package/dist/harmonic.esm.js.map +1 -1
  21. package/dist/index.d.ts +2 -2
  22. package/dist/styles/HarmonicThemeProvider/HarmonicThemeProvider.d.ts +0 -1
  23. package/dist/types/navigation.d.ts +0 -12
  24. package/dist/types/types.d.ts +1 -23
  25. package/package.json +1 -1
  26. package/dist/components/molecules/HotFilters/HotFilters.d.ts +0 -4
  27. package/dist/components/molecules/HotFilters/HotFilters.style.d.ts +0 -3
  28. package/dist/components/molecules/HotFilters/index.d.ts +0 -2
  29. package/dist/helpers/accessibility.d.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, Carousel, 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, PageHeadingPromo, Pagination, PasswordStrength, 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, TextOnly, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls } from './components';
1
+ import { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, Carousel, CinemaBadge, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, MinimalCarousel, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, Pagination, PasswordStrength, 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, TextOnly, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls } from './components';
2
2
  import { devices, breakpoints } from './styles/viewports';
3
3
  import zIndexes from './styles/zIndexes';
4
4
  import { AspectRatio, ButtonType, CarouselType, Colors, IconNameType, IntegratedTimerProps, ITimerProps, TickboxMode, ThemeColor, ThemeType, EditorialLink, IInformationTitleProps, IInformationCTAProps } from './types';
@@ -8,4 +8,4 @@ import AuxiliaryButton from './components/atoms/Buttons/Auxiliary/AuxiliaryButto
8
8
  import HarmonicThemeProvider from './styles/HarmonicThemeProvider';
9
9
  import { HarmonicSize } from './types/typography';
10
10
  import { HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText } from './components/Typography';
11
- export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, 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, PageHeadingPromo, Pagination, PasswordStrength, 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, TextOnly, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
11
+ export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, Carousel, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, HarmonicSize, HarmonicThemeProvider, Header, HighlightsCarousel, HighlightsCarouselCinema, HighlightsCarouselCore, HighlightsCarouselStream, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, IInformationCTAProps, IInformationTitleProps, ITimerProps, IntegratedTimerProps, MinimalCarousel, MiniCard, ModalWindow, Navigation, Overline, PageHeading, PageHeadingCompact, PageHeadingImpact, PageHeadingPanel, PageHeadingPromo, Pagination, PasswordStrength, 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, TextOnly, ThemeColor, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, zIndexes, HarmonicHeader, HarmonicSubtitle, BodyCopyHarmonic, HarmonicOverline, ButtonText, Caption, NavigationText, };
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ThemeType } from '../../types';
3
3
  import './theme/fonts.css';
4
- import './theme/typography.css';
5
4
  interface HarmonicThemeProviderProps {
6
5
  theme: ThemeType;
7
6
  children: React.ReactNode;
@@ -79,10 +79,6 @@ export interface ISearchProps {
79
79
  * Additional CSS class names to apply to the navigation component.
80
80
  */
81
81
  className?: string;
82
- /**
83
- * Reference to the search icon element for focusing
84
- */
85
- ref?: React.Ref<HTMLButtonElement>;
86
82
  }
87
83
  export interface INavigationWrapperProps {
88
84
  /**
@@ -149,10 +145,6 @@ export interface INavTopProps {
149
145
  * Additional CSS class names to apply to the navigation component.
150
146
  */
151
147
  className?: string;
152
- /**
153
- * Search button ref for focus management
154
- */
155
- searchButtonRef?: React.Ref<HTMLButtonElement>;
156
148
  }
157
149
  export interface IMenuOptionProps {
158
150
  /**
@@ -213,10 +205,6 @@ export interface ISearchBarProps {
213
205
  * Function to be called when is closed
214
206
  */
215
207
  onClose?: (e?: React.MouseEvent) => void;
216
- /**
217
- * Reference to the input element for focusing
218
- */
219
- inputRef?: React.RefObject<HTMLInputElement>;
220
208
  /**
221
209
  * Additional CSS class names to apply to the navigation component.
222
210
  */
@@ -154,10 +154,6 @@ export interface ITabProps {
154
154
  * Additional CSS class names to apply to the navigation component.
155
155
  */
156
156
  className?: string;
157
- /**
158
- * The unique ID to assign to the link element.
159
- */
160
- tabLinkId?: string;
161
157
  /**
162
158
  * Defines the ARIA role of the element for accessibility purposes.
163
159
  */
@@ -225,11 +221,7 @@ export interface IDropdownProps {
225
221
  */
226
222
  ariaLabel?: string;
227
223
  /**
228
- * The unique ID to assign to the link element inside the tab.
229
- */
230
- tabLinkId?: string;
231
- /**
232
- * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
224
+ * Defines if it is needed to trim the text of the Tab and add 3 dots in the end
233
225
  */
234
226
  trimTabText?: boolean;
235
227
  }
@@ -293,10 +285,6 @@ export interface IControlledDropdownProps {
293
285
  * Callback called when main link or option are focused
294
286
  */
295
287
  onFocus?: () => void;
296
- /**
297
- * Callback called when focus leaves element
298
- */
299
- onFocusLeave?: () => void;
300
288
  /**
301
289
  * Callback called when main link or last option lose focus
302
290
  */
@@ -422,16 +410,6 @@ export interface ISponsorLogoProps extends ExternalLink {
422
410
  */
423
411
  className?: string;
424
412
  }
425
- export interface IHotFilterItem {
426
- text: string;
427
- href?: string;
428
- onClick?: () => void;
429
- }
430
- export interface IHotFilterProps {
431
- items: IHotFilterItem[];
432
- className?: string;
433
- defaultSelectedIndex?: number;
434
- }
435
413
  export interface ISponsorshipProps {
436
414
  /**
437
415
  * Source URL for Sponsorship IFRAME.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/harmonic",
3
- "version": "0.6.0-f",
3
+ "version": "0.6.1",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,4 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { IHotFilterProps } from '../../../types/types';
3
- declare const HotFilters: FunctionComponent<IHotFilterProps>;
4
- export default HotFilters;
@@ -1,3 +0,0 @@
1
- export declare const HotFiltersWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const HotFilterOptionsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const StyledHotFiltersButton: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../../../types/buttonTypes").PrimaryButtonProps>, any, {}, never>;
@@ -1,2 +0,0 @@
1
- import HotFilters from './HotFilters';
2
- export default HotFilters;
@@ -1 +0,0 @@
1
- export declare function useFocusTrap(containerRef: React.RefObject<HTMLElement>, onEscape?: () => void): void;