@royaloperahouse/chord 2.11.3-dev → 2.12.1-rc

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,4 +3,5 @@ import { AnchorTabBar, Footer, Navigation, StickyBar, TitleWithCTA, UpsellSectio
3
3
  import { Accordion, Accordions, AnchorBar, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PasswordStrength, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, SignUpForm, Table, Tabs, TextOnly, UpsellCard, Quote, VideoWithControls } from './molecules';
4
4
  import ThemeProvider from '../styles/ThemeProvider';
5
5
  import GlobalStyles from '../styles/GlobalStyles';
6
- export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, ContactCard, ContentSummary, CinemaBadge, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SecondaryButton, SecondaryLogo, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, SignUpForm, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Table, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, FilterToggles, ToggleButton, };
6
+ import Autocomplete from './molecules/Autocomplete';
7
+ export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, Autocomplete, BodyText, Card, Cards, ContactCard, ContentSummary, CinemaBadge, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, SecondaryButton, SecondaryLogo, StatusBanner, SearchBar, SectionTitle, Select, Select2, Select2Async, SignUpForm, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Table, Tabs, TextArea, TextField, TextFieldLegacy, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, VideoControls, VideoWithControls, FilterToggles, ToggleButton, };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IAutocompleteProps } from './Autocomplete.types';
3
+ declare const Autocomplete: ({ value, options, placeholder, onChange, onSelect, maxWidth, }: IAutocompleteProps) => React.ReactElement;
4
+ export default Autocomplete;
@@ -0,0 +1,10 @@
1
+ export declare const AutocompleteWrapper: import("styled-components").StyledComponent<"div", any, {
2
+ maxWidth: number;
3
+ }, never>;
4
+ export declare const Dropdown: import("styled-components").StyledComponent<"div", any, {
5
+ maxWidth: number;
6
+ }, never>;
7
+ export declare const Option: import("styled-components").StyledComponent<"div", any, {
8
+ isActive: boolean;
9
+ }, never>;
10
+ export declare const NoResults: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,12 @@
1
+ import { ITextFieldProps } from '../../../types/formTypes';
2
+ export interface IAutocompleteOption {
3
+ label: string;
4
+ readonly value: string;
5
+ }
6
+ export interface IAutocompleteProps extends Omit<ITextFieldProps, 'onChange' | 'onSelect'> {
7
+ options: IAutocompleteOption[];
8
+ placeholder?: string;
9
+ maxWidth?: number;
10
+ onChange: (value: IAutocompleteOption['value']) => void;
11
+ onSelect: (option: IAutocompleteOption) => void;
12
+ }
@@ -0,0 +1,2 @@
1
+ import Autocomplete from './Autocomplete';
2
+ export default Autocomplete;
@@ -33,4 +33,5 @@ import Table from './Table';
33
33
  import VideoWithControls from './VideoWithControls';
34
34
  import SignUpForm from './SignUpForm';
35
35
  import AnchorBar from './AnchorBar';
36
- export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AuxiliaryNav, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, MiniCard, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PasswordStrength, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, Quote, StatusBanner, SectionTitle, SearchBar, Select, Select2, Select2Async, SignUpForm, Tabs, Table, TextOnly, UpsellCard, VideoWithControls, };
36
+ import Autocomplete from './Autocomplete';
37
+ export { Accordion, Accordions, AnchorBar, AnnouncementBanner, AuxiliaryNav, Autocomplete, Card, Cards, ContactCard, ContentSummary, CreditListing, Editorial, ImageWithCaption, Information, MiniCard, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PasswordStrength, Pagination, PeopleListing, PromoWithTags, PromoWithTitle, RadioGroup, RadioGroup2, ReadMore, Quote, StatusBanner, SectionTitle, SearchBar, Select, Select2, Select2Async, SignUpForm, Tabs, Table, TextOnly, UpsellCard, VideoWithControls, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "2.11.3-dev",
3
+ "version": "2.12.1-rc",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",