@royaloperahouse/chord 2.2.10-e-chord-development → 2.2.11

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.
@@ -1,6 +1,6 @@
1
1
  import { AltHeader, BodyText, CinemaBadge, ControlledDropdown, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, Overline, PrimaryButton, Progress, Radio, Radio2, RotatorButtons, SecondaryButton, SecondaryLogo, TertiaryButton, SectionSplitter, Sponsorship, Stepper, StreamBadge, Subtitle, Tab, TabLink, TextLogo, TextArea, TextField, TextLink, Tickbox, Tickbox2, Timer, TypeTags, VideoControls } from './atoms';
2
2
  import { AnchorTabBar, Footer, LiveChat, Navigation, StickyBar, TitleWithCTA, UpsellSection } from './organisms';
3
- import { Accordion, Accordions, 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, Table, Tabs, TextOnly, UpsellCard, Quote } from './molecules';
3
+ import { Accordion, Accordions, 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, Tabs, TextOnly, UpsellCard, Quote } from './molecules';
4
4
  import ThemeProvider from '../styles/ThemeProvider';
5
5
  import GlobalStyles from '../styles/GlobalStyles';
6
- export { Accordion, Accordions, 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, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Table, Tabs, TextArea, TextField, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, LiveChat, VideoControls, };
6
+ export { Accordion, Accordions, 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, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, SectionSplitter, Tab, TabLink, Tabs, TextArea, TextField, TextLink, TextLogo, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote, LiveChat, VideoControls, };
@@ -18,7 +18,9 @@ export declare const LabelContainer: import("styled-components").StyledComponent
18
18
  isVisible: boolean;
19
19
  isGridCard: boolean;
20
20
  }, never>;
21
- export declare const ExtraActionsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
21
+ export declare const ExtraActionsContainer: import("styled-components").StyledComponent<"div", any, {
22
+ fullWidth?: boolean | undefined;
23
+ }, never>;
22
24
  export declare const LabelElements: import("styled-components").StyledComponent<"div", any, {
23
25
  bgColor?: Colors | undefined;
24
26
  }, never>;
@@ -4,4 +4,4 @@ import PageHeadingImpact from './Impact';
4
4
  import PageHeadingPanel from './Panel';
5
5
  import PageHeadingStream from './Stream';
6
6
  import PageHeadingCompact from './Compact/Compact';
7
- export { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, PageHeadingCompact, };
7
+ export { PageHeadingCinema, PageHeadingCore, PageHeadingImpact, PageHeadingStream, PageHeadingCompact, PageHeadingPanel, };
@@ -3,4 +3,3 @@ export declare const CreditListingWrapper: import("styled-components").StyledCom
3
3
  export declare const DescriptionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export declare const RoleWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
5
  export declare const CreditWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const CreditBodyWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,11 +1,5 @@
1
- import React, { FunctionComponent } from 'react';
2
- import { DropdownIndicatorProps } from 'react-select';
1
+ import { FunctionComponent } from 'react';
3
2
  import { ISelect2Props } from '../../../types/formTypes';
4
- export declare const DropdownIndicator: (props: DropdownIndicatorProps) => JSX.Element;
5
- interface IWrapperProps extends Pick<ISelect2Props, 'label' | 'error' | 'width' | 'darkMode'> {
6
- children: React.ReactNode;
7
- }
8
- export declare const WrapperComponent: FunctionComponent<IWrapperProps>;
9
3
  /**
10
4
  * A Select2 component wraps react-select with Chord styling and additional elements like
11
5
  * text and error labels. This should be used just as usual react-select component.
@@ -19,7 +19,6 @@ import SearchBar from './SearchBar';
19
19
  import SectionTitle from './SectionTitle';
20
20
  import Select from './Select';
21
21
  import Select2 from './Select2';
22
- import Select2Async from './Select2Async';
23
22
  import Tabs from './Tabs';
24
23
  import TextOnly from './TextOnly';
25
24
  import UpsellCard from './UpsellCard';
@@ -27,7 +26,6 @@ import ImageWithCaption from './ImageWithCaption';
27
26
  import Quote from './Quote';
28
27
  import MiniCard from './MiniCard';
29
28
  import ReadMore from './ReadMore';
30
- import PasswordStrength from './PasswordStrength';
31
29
  import AuxiliaryNav from './AuxiliaryNav';
32
- import Table from './Table';
33
- export { Accordion, Accordions, 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, Tabs, Table, TextOnly, UpsellCard, };
30
+ import PasswordStrength from './PasswordStrength';
31
+ export { Accordion, Accordions, 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, Tabs, TextOnly, UpsellCard, };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, CinemaBadge, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, Tab, Table, TabLink, Tabs, TextArea, TextField, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote } from './components';
1
+ import { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryNav, BodyText, Card, Cards, CinemaBadge, ContactCard, ContentSummary, ControlledDropdown, CreditListing, Editorial, Footer, GlobalStyles, Grid, GridItem, Header, Icon, ImageAspectRatioWrapper, ImageWithCaption, Information, LiveChat, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, TertiaryButton, TextOnly, ThemeProvider, TitleWithCTA, Tab, TabLink, Tabs, TextArea, TextField, TextLink, Tickbox, Tickbox2, Timer, TypeTags, UpsellCard, UpsellSection, Quote } 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, ThemeType, EditorialLink } from './types';
5
5
  import { MiniCard } from './components/molecules';
6
- import { BrandingStyle } from './types/impactHeader';
7
6
  import { ModalWindow } from './components/organisms';
8
7
  import AuxiliaryButton from './components/atoms/Buttons/Auxiliary/AuxiliaryButton';
9
- export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyText, BrandingStyle, breakpoints, ButtonType, Card, Cards, CarouselType, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, Header, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, ITimerProps, IntegratedTimerProps, LiveChat, MiniCard, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Select2Async, Sponsorship, Stepper, StickyBar, StreamBadge, Subtitle, Tab, Table, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextLink, TextOnly, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, zIndexes, };
8
+ export { Accordion, Accordions, AnnouncementBanner, AltHeader, AnchorTabBar, AuxiliaryButton, AuxiliaryNav, AspectRatio, BodyText, breakpoints, ButtonType, Card, Cards, CarouselType, CinemaBadge, Colors, ContactCard, ContentSummary, ControlledDropdown, CreditListing, devices, Editorial, EditorialLink, Footer, GlobalStyles, Grid, GridItem, Header, Icon, IconNameType, ImageAspectRatioWrapper, ImageWithCaption, Information, ITimerProps, IntegratedTimerProps, LiveChat, MiniCard, ModalWindow, Navigation, Overline, PageHeadingCinema, PageHeadingCompact, PageHeadingCore, PageHeadingImpact, PageHeadingPanel, PageHeadingStream, Pagination, PasswordStrength, PeopleListing, PrimaryButton, Progress, PromoWithTags, PromoWithTitle, Radio, Radio2, RadioGroup, RadioGroup2, ReadMore, RotatorButtons, StatusBanner, SearchBar, SecondaryButton, SecondaryLogo, SectionSplitter, SectionTitle, Select, Select2, Sponsorship, StickyBar, Stepper, StreamBadge, Subtitle, Tab, TabLink, Tabs, TertiaryButton, TextArea, TextField, TextLink, TextOnly, ThemeProvider, ThemeType, TitleWithCTA, Tickbox, Tickbox2, TickboxMode, Timer, TypeTags, UpsellCard, UpsellSection, Quote, zIndexes, };
@@ -1,7 +1,6 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  import { IGridItemProps } from './types';
3
- import Select from 'react-select';
4
- import SelectAsync from 'react-select/async';
3
+ import { Props as SelectProps } from 'react-select';
5
4
  export interface ITextAreaProps extends Partial<IGridItemProps>, InputHTMLAttributes<HTMLTextAreaElement> {
6
5
  /**
7
6
  * A text label to be shown above the text area input box.
@@ -55,7 +54,7 @@ export interface ITextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
55
54
  * `password` type adds `Show/Hide` button over the input element.
56
55
  * Any other types don't change the view of the element, just change
57
56
  * accessibility stuff
58
- */
57
+ */
59
58
  type?: ITextFieldType;
60
59
  /**
61
60
  * A style prop that allows us to change what colours to
@@ -220,7 +219,7 @@ export interface ISelectProps<T = unknown> {
220
219
  */
221
220
  resetWhenOptionsUpdate?: boolean;
222
221
  }
223
- interface ISelect2MainProps {
222
+ export interface ISelect2Props extends SelectProps {
224
223
  /**
225
224
  * A text label to be shown above the text input field.
226
225
  */
@@ -246,8 +245,6 @@ interface ISelect2MainProps {
246
245
  */
247
246
  darkMode?: boolean;
248
247
  }
249
- export declare type ISelect2Props = ISelect2MainProps & React.ComponentProps<typeof Select>;
250
- export declare type ISelect2AsyncProps = ISelect2MainProps & React.ComponentProps<typeof SelectAsync>;
251
248
  export interface IStepperProps {
252
249
  /** The initial value to display in the center of the element */
253
250
  initialValue?: number;
@@ -265,28 +262,25 @@ export interface IStepperProps {
265
262
  step?: number;
266
263
  /** An error message to be shown below the stepper.
267
264
  *
265
+ * Default: `undefined`
268
266
  */
269
267
  error?: string;
270
- /**
271
- * Set disapled state
272
- */
273
- disabled?: boolean;
274
- /**
275
- * Minimum value allowed in the stepper
276
- */
277
- min?: number;
278
268
  /**
279
269
  * A style prop that allows us to change what colours to
280
270
  * use for light or dark mode (e.g. text color, border color, etc...)
281
271
  * based on the background color.
282
272
  *
283
273
  * Defaults to `false`.
284
- * Specify whether or not the containing element has a dark background.
285
- * This property affects the border colours for focused and error states.
286
- *
287
- * Default: `false`
288
274
  */
289
275
  darkMode?: boolean;
276
+ /**
277
+ * Set disapled state
278
+ */
279
+ disabled?: boolean;
280
+ /**
281
+ * Minimum value allowed in the stepper
282
+ */
283
+ min?: number;
290
284
  /**
291
285
  * Maximum value allowed in the stepper
292
286
  */
@@ -325,4 +319,3 @@ export interface IRadioGroupProps extends Partial<IGridItemProps> {
325
319
  */
326
320
  onChange?: (checkedRadio: IRadioProps | undefined) => void;
327
321
  }
328
- export {};
@@ -19,10 +19,10 @@ export interface IPasswordStrengthProps {
19
19
  */
20
20
  sectionsColor?: Colors;
21
21
  /**
22
- * Color of active sections
23
- *
24
- * Default: Colors.Black
25
- */
22
+ * Color of active sections
23
+ *
24
+ * Default: Colors.Black
25
+ */
26
26
  activeSectionsColor?: Colors;
27
27
  /**
28
28
  * Text
@@ -40,12 +40,12 @@ export interface IPasswordStrengthProps {
40
40
  * Strength label text
41
41
  *
42
42
  * Default: ""
43
- */
43
+ */
44
44
  strengthLabel?: string;
45
45
  /**
46
46
  * Strength label text
47
47
  *
48
48
  * Default: Colors.Black
49
- */
49
+ */
50
50
  strengthLabelColor?: Colors;
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "2.2.10-e-chord-development",
3
+ "version": "2.2.11",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,18 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { ISelect2AsyncProps } from '../../../types/formTypes';
3
- /**
4
- * The Select2Async component is similar to Select 2, but uses react-select async
5
- * component for select instead of regular react-select component. This can be used
6
- * for selects with dynamically loaded options, live search components etc.
7
- *
8
- * # Error state
9
- * An error label will be shown below the select if the `error` prop exists.
10
- * Also select will be rendered with a red border. An empty string can be passed to
11
- * render only error state without error message.
12
- *
13
- * # Light / Dark mode
14
- * The component can also adapt its styles for light / dark mode. If you want this component
15
- * to be rendered on a dark / coloured background, you can use the `darkMode` prop.
16
- */
17
- declare const SelectComponent: FunctionComponent<ISelect2AsyncProps>;
18
- export default SelectComponent;
@@ -1,2 +0,0 @@
1
- import Select2Async from './Select2Async';
2
- export default Select2Async;
@@ -1,4 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { ITableProps } from '../../../types/tableTypes';
3
- declare const Table: FunctionComponent<ITableProps>;
4
- export default Table;
@@ -1,16 +0,0 @@
1
- import { ThemeType } from '../../../types/types';
2
- export declare const TableHeader: import("styled-components").StyledComponent<"th", any, {}, never>;
3
- export declare const TableCell: import("styled-components").StyledComponent<"td", any, {
4
- columns: number;
5
- }, never>;
6
- export declare const LineContainer: import("styled-components").StyledComponent<"div", any, {
7
- lineColor: ThemeType;
8
- }, never>;
9
- export declare const Pagination: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- export declare const PageNumber: import("styled-components").StyledComponent<"button", any, {
11
- active?: string | undefined;
12
- }, never>;
13
- export declare const Next: import("styled-components").StyledComponent<"span", any, {}, never>;
14
- export declare const ScrollButtons: import("styled-components").StyledComponent<"div", any, {}, never>;
15
- export declare const TableContainer: import("styled-components").StyledComponent<"table", any, {}, never>;
16
- export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,2 +0,0 @@
1
- import Table from './Table';
2
- export default Table;
@@ -1,42 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ThemeType } from './types';
3
- export interface ContentProps {
4
- content: string | ReactNode;
5
- }
6
- export interface CellProps {
7
- cell: ReactNode;
8
- cellIndex: number;
9
- columns: number;
10
- }
11
- export interface RowProps {
12
- row: any[];
13
- rowIndex: number;
14
- columns: number;
15
- lineColor: ThemeType;
16
- }
17
- export interface ITableProps {
18
- /**
19
- * Number of columns in table
20
- */
21
- columns: number;
22
- /**
23
- * Headings array
24
- */
25
- headings?: string[];
26
- /**
27
- * Table content
28
- */
29
- children: ReactNode;
30
- /**
31
- * Line divider color
32
- */
33
- lineColors?: ThemeType;
34
- /**
35
- * Rows in table per page for pagination
36
- */
37
- rowsPerPage: number;
38
- /**
39
- * Pagination
40
- */
41
- pagination?: boolean;
42
- }