@royaloperahouse/chord 1.2.0 → 1.2.1-a-chord-development

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 (273) hide show
  1. package/CHANGELOG.md +504 -7
  2. package/README.md +250 -40
  3. package/dist/chord.cjs.development.js +9019 -3801
  4. package/dist/chord.cjs.development.js.map +1 -1
  5. package/dist/chord.cjs.production.min.js +1 -1
  6. package/dist/chord.cjs.production.min.js.map +1 -1
  7. package/dist/chord.esm.js +8986 -3797
  8. package/dist/chord.esm.js.map +1 -1
  9. package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.d.ts +4 -0
  10. package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.style.d.ts +4 -0
  11. package/dist/components/atoms/Buttons/Primary/PrimaryButtonWrapper.style.d.ts +1 -0
  12. package/dist/components/atoms/Grid/GridItemLegacy.d.ts +8 -0
  13. package/dist/components/atoms/Grid/index.d.ts +2 -1
  14. package/dist/components/atoms/Icons/Icons.d.ts +1 -1
  15. package/dist/components/atoms/Icons/StorybookSupport/Iconography.d.ts +1 -0
  16. package/dist/components/atoms/Icons/SvgIcons/12px/Expand.svg.d.ts +4 -0
  17. package/dist/components/atoms/Icons/SvgIcons/12px/Remove.svg.d.ts +1 -1
  18. package/dist/components/atoms/Icons/SvgIcons/12px/Tick.svg.d.ts +1 -1
  19. package/dist/components/atoms/Icons/SvgIcons/Actions/AddToMyList.svg.d.ts +1 -1
  20. package/dist/components/atoms/Icons/SvgIcons/Actions/BookTickets.svg.d.ts +1 -1
  21. package/dist/components/atoms/Icons/SvgIcons/Actions/ChooseDates.svg.d.ts +1 -1
  22. package/dist/components/atoms/Icons/SvgIcons/Actions/EditMyList.svg.d.ts +1 -1
  23. package/dist/components/atoms/Icons/SvgIcons/Actions/Favourite.svg.d.ts +1 -1
  24. package/dist/components/atoms/Icons/SvgIcons/Actions/FavouriteFull.svg.d.ts +1 -1
  25. package/dist/components/atoms/Icons/SvgIcons/Actions/Filter.svg.d.ts +1 -1
  26. package/dist/components/atoms/Icons/SvgIcons/Actions/FindAScreening.svg.d.ts +1 -1
  27. package/dist/components/atoms/Icons/SvgIcons/Actions/OnMyList.svg.d.ts +1 -1
  28. package/dist/components/atoms/Icons/SvgIcons/Actions/Reminder.svg.d.ts +1 -1
  29. package/dist/components/atoms/Icons/SvgIcons/Actions/Subscribe.svg.d.ts +1 -1
  30. package/dist/components/atoms/Icons/SvgIcons/Actions/Watch.svg.d.ts +1 -1
  31. package/dist/components/atoms/Icons/SvgIcons/Arrows/Arrow.svg.d.ts +1 -1
  32. package/dist/components/atoms/Icons/SvgIcons/Arrows/CarouselArrow.svg.d.ts +1 -1
  33. package/dist/components/atoms/Icons/SvgIcons/Arrows/DropdownArrow.svg.d.ts +1 -1
  34. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Cinema.svg.d.ts +1 -1
  35. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Clock.svg.d.ts +1 -1
  36. package/dist/components/atoms/Icons/SvgIcons/Descriptors/CreditCard.svg.d.ts +1 -1
  37. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Email.svg.d.ts +1 -1
  38. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Info.svg.d.ts +1 -1
  39. package/dist/components/atoms/Icons/SvgIcons/Descriptors/List.svg.d.ts +1 -1
  40. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Location.svg.d.ts +1 -1
  41. package/dist/components/atoms/Icons/SvgIcons/Descriptors/PDF.svg.d.ts +1 -1
  42. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Phone.svg.d.ts +1 -1
  43. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Print.svg.d.ts +1 -1
  44. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Seat.svg.d.ts +4 -0
  45. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Secure.svg.d.ts +1 -1
  46. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Standing.svg.d.ts +4 -0
  47. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Tickets.svg.d.ts +1 -1
  48. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Wheelchair.svg.d.ts +4 -0
  49. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Facebook.svg.d.ts +1 -1
  50. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Instagram.svg.d.ts +1 -1
  51. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Tiktok.svg.d.ts +1 -1
  52. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Twitter.svg.d.ts +1 -1
  53. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/X.svg.d.ts +4 -0
  54. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Youtube.svg.d.ts +1 -1
  55. package/dist/components/atoms/Icons/SvgIcons/Navigation/BalletAndDance.svg.d.ts +1 -1
  56. package/dist/components/atoms/Icons/SvgIcons/Navigation/Basket.svg.d.ts +1 -1
  57. package/dist/components/atoms/Icons/SvgIcons/Navigation/BasketFull.svg.d.ts +1 -1
  58. package/dist/components/atoms/Icons/SvgIcons/Navigation/Home.svg.d.ts +1 -1
  59. package/dist/components/atoms/Icons/SvgIcons/Navigation/LiveStream.svg.d.ts +1 -1
  60. package/dist/components/atoms/Icons/SvgIcons/Navigation/Menu.svg.d.ts +1 -1
  61. package/dist/components/atoms/Icons/SvgIcons/Navigation/OperaAndMusic.svg.d.ts +1 -1
  62. package/dist/components/atoms/Icons/SvgIcons/Navigation/Search.svg.d.ts +1 -1
  63. package/dist/components/atoms/Icons/SvgIcons/Navigation/Settings.svg.d.ts +1 -1
  64. package/dist/components/atoms/Icons/SvgIcons/Navigation/User.svg.d.ts +1 -1
  65. package/dist/components/atoms/Icons/SvgIcons/Navigation/UserSignedIn.svg.d.ts +1 -1
  66. package/dist/components/atoms/Icons/SvgIcons/Text/Delete.svg.d.ts +1 -1
  67. package/dist/components/atoms/Icons/SvgIcons/Text/Shift.svg.d.ts +1 -1
  68. package/dist/components/atoms/Icons/SvgIcons/Text/Space.svg.d.ts +1 -1
  69. package/dist/components/atoms/Icons/SvgIcons/Utility/Close.svg.d.ts +1 -1
  70. package/dist/components/atoms/Icons/SvgIcons/Utility/Confirm.svg.d.ts +1 -1
  71. package/dist/components/atoms/Icons/SvgIcons/Utility/Detract.svg.d.ts +1 -1
  72. package/dist/components/atoms/Icons/SvgIcons/Utility/Expand.svg.d.ts +1 -1
  73. package/dist/components/atoms/Icons/SvgIcons/Utility/ExternalLink.svg.d.ts +1 -1
  74. package/dist/components/atoms/Icons/SvgIcons/Utility/GridView.svg.d.ts +1 -1
  75. package/dist/components/atoms/Icons/SvgIcons/Utility/ListView.svg.d.ts +1 -1
  76. package/dist/components/atoms/Icons/SvgIcons/Utility/Refresh.svg.d.ts +1 -1
  77. package/dist/components/atoms/Icons/SvgIcons/Utility/Remove.svg.d.ts +4 -0
  78. package/dist/components/atoms/Icons/SvgIcons/Utility/Star.svg.d.ts +1 -1
  79. package/dist/components/atoms/Icons/SvgIcons/Video/AudioDescription.svg.d.ts +1 -1
  80. package/dist/components/atoms/Icons/SvgIcons/Video/Back10.svg.d.ts +1 -1
  81. package/dist/components/atoms/Icons/SvgIcons/Video/Clips.svg.d.ts +1 -1
  82. package/dist/components/atoms/Icons/SvgIcons/Video/Forward10.svg.d.ts +1 -1
  83. package/dist/components/atoms/Icons/SvgIcons/Video/FullScreen.svg.d.ts +1 -1
  84. package/dist/components/atoms/Icons/SvgIcons/Video/Minimise.svg.d.ts +1 -1
  85. package/dist/components/atoms/Icons/SvgIcons/Video/Muted.svg.d.ts +1 -1
  86. package/dist/components/atoms/Icons/SvgIcons/Video/Pause.svg.d.ts +1 -1
  87. package/dist/components/atoms/Icons/SvgIcons/Video/Play.svg.d.ts +1 -1
  88. package/dist/components/atoms/Icons/SvgIcons/Video/Restart.svg.d.ts +1 -1
  89. package/dist/components/atoms/Icons/SvgIcons/Video/Subtitles.svg.d.ts +1 -1
  90. package/dist/components/atoms/Icons/SvgIcons/Video/Trailer.svg.d.ts +1 -1
  91. package/dist/components/atoms/Icons/SvgIcons/Video/Volume.svg.d.ts +1 -1
  92. package/dist/components/atoms/Icons/SvgIcons/index.d.ts +76 -70
  93. package/dist/components/atoms/Logo/Logo.d.ts +1 -1
  94. package/dist/components/atoms/Progress/Progress.d.ts +1 -1
  95. package/dist/components/atoms/Progress/Progress.styles.d.ts +10 -3
  96. package/dist/components/atoms/Radio/Radio.d.ts +6 -0
  97. package/dist/components/atoms/Radio/Radio.style.d.ts +4 -0
  98. package/dist/components/atoms/Radio/index.d.ts +2 -0
  99. package/dist/components/atoms/Radio2/Radio2.d.ts +23 -0
  100. package/dist/components/atoms/Radio2/Radio2.style.d.ts +7 -0
  101. package/dist/components/atoms/Radio2/index.d.ts +2 -0
  102. package/dist/components/atoms/Sponsorship/Sponsorship.style.d.ts +2 -0
  103. package/dist/components/atoms/Stepper/Stepper.d.ts +58 -0
  104. package/dist/components/atoms/Stepper/Stepper.style.d.ts +6 -0
  105. package/dist/components/atoms/Stepper/index.d.ts +2 -0
  106. package/dist/components/atoms/TextArea/TextArea.d.ts +44 -0
  107. package/dist/components/atoms/TextArea/TextArea.style.d.ts +5 -0
  108. package/dist/components/atoms/TextArea/index.d.ts +2 -0
  109. package/dist/components/atoms/TextField/TextField.d.ts +42 -0
  110. package/dist/components/atoms/TextField/TextField.style.d.ts +9 -0
  111. package/dist/components/atoms/TextField/TextFieldLegacy.d.ts +10 -0
  112. package/dist/components/atoms/TextField/TextFieldLegacy.style.d.ts +5 -0
  113. package/dist/components/atoms/TextField/index.d.ts +3 -0
  114. package/dist/components/atoms/TextLogo/TextLogo.d.ts +13 -0
  115. package/dist/components/atoms/TextLogo/index.d.ts +2 -0
  116. package/dist/components/atoms/TextLogo/styled.d.ts +12 -0
  117. package/dist/components/atoms/Tickbox/Tickbox.d.ts +3 -0
  118. package/dist/components/atoms/Tickbox/Tickbox.style.d.ts +5 -0
  119. package/dist/components/atoms/Tickbox2/Tickbox2.d.ts +23 -0
  120. package/dist/components/atoms/Tickbox2/Tickbox2.style.d.ts +7 -0
  121. package/dist/components/atoms/Tickbox2/index.d.ts +2 -0
  122. package/dist/components/atoms/Timer/Timer.d.ts +4 -0
  123. package/dist/components/atoms/Timer/Timer.style.d.ts +9 -0
  124. package/dist/components/atoms/Timer/index.d.ts +2 -0
  125. package/dist/components/atoms/Typography/Typography.d.ts +2 -2
  126. package/dist/components/atoms/VideoControls/VideoControls.d.ts +4 -0
  127. package/dist/components/atoms/VideoControls/VideoControls.style.d.ts +13 -0
  128. package/dist/components/atoms/VideoControls/index.d.ts +2 -0
  129. package/dist/components/atoms/index.d.ts +17 -7
  130. package/dist/components/index.d.ts +4 -4
  131. package/dist/components/molecules/Accordion/Accordion.style.d.ts +7 -2
  132. package/dist/components/molecules/AuxiliaryNav/AuxiliaryNav.d.ts +21 -0
  133. package/dist/components/molecules/AuxiliaryNav/AuxiliaryNav.styles.d.ts +9 -0
  134. package/dist/components/molecules/AuxiliaryNav/index.d.ts +2 -0
  135. package/dist/components/molecules/Basket/Basket.d.ts +3 -0
  136. package/dist/components/molecules/Basket/helpers.d.ts +3 -0
  137. package/dist/components/molecules/Basket/hooks.d.ts +8 -0
  138. package/dist/components/molecules/Card/Card.style.d.ts +17 -1
  139. package/dist/components/molecules/ContentSummary/ContentSummary.d.ts +3 -0
  140. package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +17 -0
  141. package/dist/components/molecules/ContentSummary/ContentSummaryData.d.ts +25 -0
  142. package/dist/components/molecules/ContentSummary/index.d.ts +2 -0
  143. package/dist/components/molecules/Information/InfoCta.d.ts +2 -2
  144. package/dist/components/molecules/Information/Information.style.d.ts +6 -3
  145. package/dist/components/molecules/MiniCard/MiniCard.d.ts +4 -0
  146. package/dist/components/molecules/MiniCard/MiniCard.style.d.ts +6 -0
  147. package/dist/components/molecules/MiniCard/index.d.ts +2 -0
  148. package/dist/components/molecules/NavTop/NavTop.d.ts +1 -1
  149. package/dist/components/molecules/PageHeading/Compact/Compact.d.ts +4 -0
  150. package/dist/components/molecules/PageHeading/Compact/Compact.style.d.ts +24 -0
  151. package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.d.ts +10 -0
  152. package/dist/components/molecules/PageHeading/Compact/index.d.ts +2 -0
  153. package/dist/components/molecules/PageHeading/Impact/Impact.d.ts +1 -1
  154. package/dist/components/molecules/PageHeading/Impact/Impact.style.d.ts +1 -0
  155. package/dist/components/molecules/PageHeading/PageHeading.style.d.ts +6 -3
  156. package/dist/components/molecules/PageHeading/Panel/Panel.d.ts +4 -0
  157. package/dist/components/molecules/PageHeading/Panel/Panel.style.d.ts +9 -0
  158. package/dist/components/molecules/PageHeading/Panel/index.d.ts +2 -0
  159. package/dist/components/molecules/PageHeading/index.d.ts +3 -1
  160. package/dist/components/molecules/Pagination/Pagination.d.ts +9 -0
  161. package/dist/components/molecules/Pagination/Pagination.style.d.ts +8 -0
  162. package/dist/components/molecules/Pagination/index.d.ts +2 -0
  163. package/dist/components/molecules/PasswordStrength/PasswordStrength.d.ts +33 -0
  164. package/dist/components/molecules/PasswordStrength/PasswordStrength.styles.d.ts +13 -0
  165. package/dist/components/molecules/PasswordStrength/index.d.ts +2 -0
  166. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.d.ts +5 -0
  167. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +8 -0
  168. package/dist/components/molecules/PeopleListing/CreditListing/index.d.ts +2 -0
  169. package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +1 -0
  170. package/dist/components/molecules/PeopleListing/index.d.ts +2 -1
  171. package/dist/components/molecules/PromoWithTags/PromoWithTags.d.ts +1 -1
  172. package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +11 -4
  173. package/dist/components/molecules/PromoWithTitle/PromoChild.d.ts +9 -0
  174. package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +6 -0
  175. package/dist/components/molecules/RadioGroup/RadioGroup.style.d.ts +1 -0
  176. package/dist/components/molecules/RadioGroup/index.d.ts +2 -0
  177. package/dist/components/molecules/RadioGroup2/RadioGroup2.d.ts +38 -0
  178. package/dist/components/molecules/RadioGroup2/RadioGroup2.style.d.ts +4 -0
  179. package/dist/components/molecules/RadioGroup2/index.d.ts +2 -0
  180. package/dist/components/molecules/ReadMore/ReadMore.d.ts +4 -0
  181. package/dist/components/molecules/ReadMore/ReadMore.style.d.ts +9 -0
  182. package/dist/components/molecules/ReadMore/index.d.ts +2 -0
  183. package/dist/components/molecules/SearchBar/SearchBar.style.d.ts +1 -0
  184. package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +1 -1
  185. package/dist/components/molecules/Select/Select.d.ts +100 -0
  186. package/dist/components/molecules/Select/Select.style.d.ts +14 -0
  187. package/dist/components/molecules/Select/index.d.ts +2 -0
  188. package/dist/components/molecules/Select2/Select2.d.ts +24 -0
  189. package/dist/components/molecules/Select2/Select2.style.d.ts +5 -0
  190. package/dist/components/molecules/Select2/index.d.ts +2 -0
  191. package/dist/components/molecules/Select2Async/Select2Async.d.ts +18 -0
  192. package/dist/components/molecules/Select2Async/index.d.ts +2 -0
  193. package/dist/components/molecules/StatusBanner/StatusBanner.d.ts +4 -0
  194. package/dist/components/molecules/StatusBanner/StatusBanner.style.d.ts +3 -0
  195. package/dist/components/molecules/StatusBanner/index.d.ts +2 -0
  196. package/dist/components/molecules/Table/Table.d.ts +4 -0
  197. package/dist/components/molecules/Table/Table.style.d.ts +19 -0
  198. package/dist/components/molecules/Table/components/TableCell.d.ts +3 -0
  199. package/dist/components/molecules/Table/components/TableHelpers.d.ts +4 -0
  200. package/dist/components/molecules/Table/components/TableRow.d.ts +3 -0
  201. package/dist/components/molecules/Table/index.d.ts +2 -0
  202. package/dist/components/molecules/UpsellCard/OfferText.d.ts +2 -0
  203. package/dist/components/molecules/UpsellCard/UpsellCard.d.ts +4 -0
  204. package/dist/components/molecules/UpsellCard/UpsellCard.style.d.ts +15 -0
  205. package/dist/components/molecules/UpsellCard/index.d.ts +2 -0
  206. package/dist/components/molecules/UpsellCards/UpsellCards.d.ts +4 -0
  207. package/dist/components/molecules/UpsellCards/UpsellCards.style.d.ts +1 -0
  208. package/dist/components/molecules/UpsellCards/index.d.ts +2 -0
  209. package/dist/components/molecules/VideoWithControls/VideoWithControls.d.ts +4 -0
  210. package/dist/components/molecules/VideoWithControls/VideoWithControls.style.d.ts +2 -0
  211. package/dist/components/molecules/VideoWithControls/index.d.ts +2 -0
  212. package/dist/components/molecules/index.d.ts +19 -3
  213. package/dist/components/organisms/AnchorTabBar/AnchorTabBar.style.d.ts +4 -3
  214. package/dist/components/organisms/ModalWindow/ModalWindow.d.ts +68 -0
  215. package/dist/components/organisms/ModalWindow/ModalWindow.style.d.ts +4 -0
  216. package/dist/components/organisms/ModalWindow/index.d.ts +2 -0
  217. package/dist/components/organisms/Navigation/Navigation.style.d.ts +6 -2
  218. package/dist/components/organisms/StickyBar/StickyBar.style.d.ts +5 -1
  219. package/dist/components/organisms/UpsellSection/UpsellSection.d.ts +4 -0
  220. package/dist/components/organisms/UpsellSection/UpsellSection.style.d.ts +3 -0
  221. package/dist/components/organisms/UpsellSection/index.d.ts +2 -0
  222. package/dist/components/organisms/index.d.ts +3 -3
  223. package/dist/helpers/arrays.d.ts +6 -0
  224. package/dist/helpers/aspectRatio.d.ts +2 -0
  225. package/dist/helpers/defaultValues.d.ts +7 -0
  226. package/dist/helpers/devices.d.ts +3 -0
  227. package/dist/helpers/formatStrings.d.ts +2 -0
  228. package/dist/helpers/generateDomElementId.d.ts +8 -0
  229. package/dist/helpers/htmlStrings.d.ts +5 -1
  230. package/dist/helpers/keyboards.d.ts +3 -0
  231. package/dist/helpers/urls.d.ts +2 -0
  232. package/dist/index.d.ts +9 -4
  233. package/dist/styles/themes.d.ts +1188 -104
  234. package/dist/styles/viewports.d.ts +3 -0
  235. package/dist/types/auxiliaryNav.d.ts +39 -0
  236. package/dist/types/buttonTypes.d.ts +18 -0
  237. package/dist/types/card.d.ts +44 -0
  238. package/dist/types/carousel.d.ts +22 -1
  239. package/dist/types/creditListing.d.ts +13 -0
  240. package/dist/types/editorial.d.ts +80 -56
  241. package/dist/types/formTypes.d.ts +328 -0
  242. package/dist/types/iconTypes.d.ts +6 -0
  243. package/dist/types/image.d.ts +3 -0
  244. package/dist/types/impactHeader.d.ts +135 -0
  245. package/dist/types/index.d.ts +7 -2
  246. package/dist/types/information.d.ts +17 -12
  247. package/dist/types/miniCard.d.ts +27 -0
  248. package/dist/types/modalWindow.d.ts +20 -0
  249. package/dist/types/navigation.d.ts +68 -4
  250. package/dist/types/passwordStrength.d.ts +51 -0
  251. package/dist/types/progress.d.ts +33 -0
  252. package/dist/types/promoWithTags.d.ts +81 -0
  253. package/dist/types/tableTypes.d.ts +47 -0
  254. package/dist/types/tickbox.d.ts +35 -0
  255. package/dist/types/timer.d.ts +37 -0
  256. package/dist/types/types.d.ts +168 -10
  257. package/dist/types/typography.d.ts +18 -2
  258. package/dist/types/upsell.d.ts +78 -0
  259. package/dist/types/utility.d.ts +4 -0
  260. package/package.json +15 -4
  261. package/README.GIT +0 -122
  262. package/dist/components/atoms/Basket/Basket.d.ts +0 -3
  263. package/dist/components/organisms/Carousel/Carousel.d.ts +0 -5
  264. package/dist/components/organisms/Carousel/Carousel.style.d.ts +0 -6
  265. package/dist/components/organisms/Carousel/index.d.ts +0 -2
  266. package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.d.ts +0 -5
  267. package/dist/components/organisms/HighlightsCarousel/HighlightsCarousel.style.d.ts +0 -12
  268. package/dist/components/organisms/HighlightsCarousel/HighlightsCinema.d.ts +0 -4
  269. package/dist/components/organisms/HighlightsCarousel/HighlightsCore.d.ts +0 -4
  270. package/dist/components/organisms/HighlightsCarousel/HighlightsStream.d.ts +0 -4
  271. package/dist/components/organisms/HighlightsCarousel/index.d.ts +0 -5
  272. /package/dist/components/{atoms → molecules}/Basket/Basket.style.d.ts +0 -0
  273. /package/dist/components/{atoms → molecules}/Basket/index.d.ts +0 -0
@@ -0,0 +1,328 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ import { IGridItemProps } from './types';
3
+ import Select from 'react-select';
4
+ import SelectAsync from 'react-select/async';
5
+ export interface ITextAreaProps extends Partial<IGridItemProps>, InputHTMLAttributes<HTMLTextAreaElement> {
6
+ /**
7
+ * A text label to be shown above the text area input box.
8
+ *
9
+ * Default: `undefined`
10
+ */
11
+ label?: string;
12
+ /**
13
+ * An error message to be shown below the text area input box.
14
+ *
15
+ * Default: `undefined`
16
+ */
17
+ error?: string;
18
+ /**
19
+ * Width in pixels.
20
+ *
21
+ * Default: 100% container width
22
+ */
23
+ width?: number;
24
+ /**
25
+ * Height in pixels..
26
+ *
27
+ * Default: `200px`
28
+ */
29
+ height?: number;
30
+ /**
31
+ * Specify whether or not the containing element has a dark background.
32
+ * This property affects the border colours for focused and error states.
33
+ *
34
+ * Default: `false`
35
+ */
36
+ darkMode?: boolean;
37
+ }
38
+ export declare type ITextFieldType = 'text' | 'email' | 'password' | 'number' | 'search' | 'tel' | 'url';
39
+ export interface ITextFieldProps extends InputHTMLAttributes<HTMLInputElement> {
40
+ /**
41
+ * A text label to be shown above the text input field.
42
+ */
43
+ label?: string;
44
+ /**
45
+ * An error label to be shown below the text input field.
46
+ * Input will be rendered with a red border if this prop exist.
47
+ * Empty string can be passed to render only error state without
48
+ * error message.
49
+ */
50
+ error?: string;
51
+ /**
52
+ * Type of text field.
53
+ * It can be one of: `text`, `email`, `password`,
54
+ * `number`, `search`, `tel`, `url`.
55
+ * `password` type adds `Show/Hide` button over the input element.
56
+ * Any other types don't change the view of the element, just change
57
+ * accessibility stuff
58
+ */
59
+ type?: ITextFieldType;
60
+ /**
61
+ * A style prop that allows us to change what colours to
62
+ * use for light or dark mode (e.g. text color, border color, etc...)
63
+ * based on the background color.
64
+ *
65
+ * Defaults to `false`.
66
+ */
67
+ darkMode?: boolean;
68
+ /**
69
+ * Width in pixels.
70
+ * This will limit the maximum width of input element.
71
+ * By default it will take all available space.
72
+ */
73
+ width?: number;
74
+ }
75
+ export interface ITickbox2Props extends InputHTMLAttributes<HTMLInputElement> {
76
+ /**
77
+ * The content of tickbox
78
+ */
79
+ children: React.ReactNode;
80
+ /**
81
+ * An error label to be shown below the tickbox.
82
+ * Tickbox will be rendered with a red border if this prop exist.
83
+ * Empty string can be passed to render only error state without
84
+ * error message.
85
+ */
86
+ error?: string;
87
+ /**
88
+ * A style prop that allows us to change what colours to
89
+ * use for light or dark mode (e.g. text color, border color, etc...)
90
+ * based on the background color.
91
+ *
92
+ * Defaults to `false`.
93
+ */
94
+ darkMode?: boolean;
95
+ /**
96
+ * Use a black background and white checkmark for the tickbox.
97
+ * This style was used before as a default. Not preferred in new components.
98
+ *
99
+ * Defaults to `false`.
100
+ */
101
+ blackBox?: boolean;
102
+ }
103
+ export interface IRadio2Props extends InputHTMLAttributes<HTMLInputElement> {
104
+ /**
105
+ * The content of radio
106
+ */
107
+ children: React.ReactNode;
108
+ /**
109
+ * An error label to be shown below the radio.
110
+ * Radio will be rendered with a red border if this prop exist.
111
+ * Empty string can be passed to render only error state without
112
+ * error message.
113
+ */
114
+ error?: string;
115
+ /**
116
+ * A style prop that allows us to change what colours to
117
+ * use for light or dark mode (e.g. text color, border color, etc...)
118
+ * based on the background color.
119
+ *
120
+ * Defaults to `false`.
121
+ */
122
+ darkMode?: boolean;
123
+ /**
124
+ * Use a black background and white checkmark for the radio.
125
+ * This style was used before as a default. Not preferred in new components.
126
+ *
127
+ * Defaults to `false`.
128
+ */
129
+ blackBox?: boolean;
130
+ }
131
+ export interface IRadioGroup2Radio {
132
+ content: React.ReactNode;
133
+ value: string | number;
134
+ }
135
+ export interface IRadioGroup2Props {
136
+ /**
137
+ * Array of radios
138
+ */
139
+ radios: IRadioGroup2Radio[];
140
+ /**
141
+ * Name property for radios.
142
+ */
143
+ name: string;
144
+ /**
145
+ * Render radios horizontally.
146
+ *
147
+ * Defaults to `false`.
148
+ */
149
+ horizontalMode?: boolean;
150
+ /**
151
+ * Callback on change of radio.
152
+ */
153
+ onChange?: (value: string) => void;
154
+ /**
155
+ * Value of default checked radio.
156
+ */
157
+ defaultValue?: string | number;
158
+ /**
159
+ * Distance between radio elements in px.
160
+ *
161
+ * Defaults to `30`.
162
+ */
163
+ gap?: number;
164
+ /**
165
+ * An error label to be shown below the radiogroup.
166
+ * Radios will be rendered with a red border if this prop exist.
167
+ * Empty string can be passed to render only error state without
168
+ * error message.
169
+ */
170
+ error?: string;
171
+ /**
172
+ * A style prop that allows us to change what colours to
173
+ * use for light or dark mode (e.g. text color, border color, etc...)
174
+ * based on the background color.
175
+ *
176
+ * Defaults to `false`.
177
+ */
178
+ darkMode?: boolean;
179
+ /**
180
+ * Use a black background and white checkmark for the radio.
181
+ * This style was used before as a default. Not preferred in new components.
182
+ *
183
+ * Defaults to `false`.
184
+ */
185
+ blackBox?: boolean;
186
+ }
187
+ export interface IOption<T> {
188
+ text: string;
189
+ readonly value: T;
190
+ }
191
+ export interface ISelectProps<T = unknown> {
192
+ /** The text label to be shown above the select component. */
193
+ label: string;
194
+ /**
195
+ * The options of the select component.
196
+ * If not provided OR provided an empty array,
197
+ * the component will be disabled.
198
+ */
199
+ options: readonly IOption<T>[];
200
+ /**
201
+ * Function to be ran when an option is selected.
202
+ */
203
+ onSelect: (value: IOption<T>['value'], text: IOption<T>['text']) => void;
204
+ /**
205
+ * Disables the select component
206
+ */
207
+ disabled?: boolean;
208
+ /**
209
+ * Style prop - sets the width of the select component in px.
210
+ */
211
+ width?: number | 'default';
212
+ /**
213
+ * Style prop - sets the height of the select component in px.
214
+ */
215
+ height?: number | 'default';
216
+ /**
217
+ * Opt-in to resetting the selected value to the first option,
218
+ * when the options change.
219
+ * Defaults to `false`;
220
+ */
221
+ resetWhenOptionsUpdate?: boolean;
222
+ }
223
+ interface ISelect2MainProps {
224
+ /**
225
+ * A text label to be shown above the text input field.
226
+ */
227
+ label?: string;
228
+ /**
229
+ * An error label to be shown below the text input field.
230
+ * Input will be rendered with a red border if this prop exist.
231
+ * Empty string can be passed to render only error state without
232
+ * error message.
233
+ */
234
+ error?: string;
235
+ /**
236
+ * Width in pixels.
237
+ * This will limit the maximum width of input element.
238
+ * By default it will take all available space.
239
+ */
240
+ width?: number;
241
+ /**
242
+ * Specify whether or not the containing element has a dark background.
243
+ * This property affects the border colours for focused and error states.
244
+ *
245
+ * Default: `false`
246
+ */
247
+ darkMode?: boolean;
248
+ }
249
+ export declare type ISelect2Props = ISelect2MainProps & React.ComponentProps<typeof Select>;
250
+ export declare type ISelect2AsyncProps = ISelect2MainProps & React.ComponentProps<typeof SelectAsync>;
251
+ export interface IStepperProps {
252
+ /** The initial value to display in the center of the element */
253
+ initialValue?: number;
254
+ /**
255
+ * Function to call when the left, minus button is clicked
256
+ */
257
+ minusAction?: () => void;
258
+ /**
259
+ * Function to call when the right, plus button is clicked
260
+ */
261
+ plusAction?: () => void;
262
+ /**
263
+ * Amount to increment and decrement by
264
+ */
265
+ step?: number;
266
+ /** An error message to be shown below the stepper.
267
+ *
268
+ */
269
+ error?: string;
270
+ /**
271
+ * Set disapled state
272
+ */
273
+ disabled?: boolean;
274
+ /**
275
+ * Minimum value allowed in the stepper
276
+ */
277
+ min?: number;
278
+ /**
279
+ * A style prop that allows us to change what colours to
280
+ * use for light or dark mode (e.g. text color, border color, etc...)
281
+ * based on the background color.
282
+ *
283
+ * 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
+ */
289
+ darkMode?: boolean;
290
+ /**
291
+ * Maximum value allowed in the stepper
292
+ */
293
+ max?: number;
294
+ /**
295
+ * Description of the stepper function for screen readers,
296
+ * e.g. "Number of tickets"
297
+ */
298
+ accessibleName?: string;
299
+ }
300
+ export interface IRadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
301
+ /**
302
+ * A text label to be shown to the right of the radio.
303
+ *
304
+ * Default: `undefined`
305
+ */
306
+ label?: string;
307
+ /**
308
+ * An error message to be shown to the right of the radio button.
309
+ *
310
+ * Default: `undefined`
311
+ */
312
+ error?: string;
313
+ /**
314
+ * Callback on change of radio checked state.
315
+ */
316
+ onChange?: (label: string) => void;
317
+ }
318
+ export interface IRadioGroupProps extends Partial<IGridItemProps> {
319
+ /**
320
+ * Array of Radio Props
321
+ */
322
+ radios?: IRadioProps[];
323
+ /**
324
+ * Callback on change of radio group checked state.
325
+ */
326
+ onChange?: (checkedRadio: IRadioProps | undefined) => void;
327
+ }
328
+ export {};
@@ -5,9 +5,11 @@ export declare type IconNameType = keyof typeof IconLibrary;
5
5
  export interface IIconStyledProps {
6
6
  color?: string;
7
7
  direction?: DirectionType;
8
+ ariaLabel?: string;
8
9
  }
9
10
  export interface IconSVGProps {
10
11
  color?: string;
12
+ ariaLabel?: string;
11
13
  }
12
14
  export interface IIconProps {
13
15
  /**
@@ -30,4 +32,8 @@ export interface IIconProps {
30
32
  * Icon to display.
31
33
  */
32
34
  iconName: IconNameType;
35
+ /**
36
+ * Descriptive alt text for Assistive Tech.
37
+ */
38
+ ariaLabel?: string;
33
39
  }
@@ -4,18 +4,21 @@ export declare enum AspectRatio {
4
4
  '1:1' = "1 / 1",
5
5
  '3:4' = "3 / 4",
6
6
  '4:3' = "4 / 3",
7
+ '3:2' = "3 / 2",
7
8
  '16:9' = "16 / 9"
8
9
  }
9
10
  export declare enum AspectRatioLegacy {
10
11
  '1 / 1' = "100",
11
12
  '3 / 4' = "133",
12
13
  '4 / 3' = "75",
14
+ '3 / 2' = "66.67",
13
15
  '16 / 9' = "56.25"
14
16
  }
15
17
  export declare enum AspectRatioWidth {
16
18
  '1 / 1' = "1",
17
19
  '3 / 4' = "0.75",
18
20
  '4 / 3' = "1.33",
21
+ '3 / 2' = "1.5",
19
22
  '16 / 9' = "1.78"
20
23
  }
21
24
  export interface IImageAspectRatioWrapperProps {
@@ -0,0 +1,135 @@
1
+ import { ReactNode } from 'react';
2
+ import { EditorialLink } from '../types';
3
+ import { TypographyLevel } from './typography';
4
+ export interface IPageHeadingImpactProps {
5
+ /**
6
+ * Text placed in the impact component
7
+ */
8
+ text?: string;
9
+ /**
10
+ * Link placed in the impact component
11
+ */
12
+ link?: EditorialLink;
13
+ /**
14
+ * Boolean to show/hide sponsorship logo (default true)
15
+ */
16
+ sponsor?: boolean;
17
+ /**
18
+ * Data for custom sponsor
19
+ */
20
+ customSponsorImage?: CustomSponsorImageData;
21
+ /**
22
+ * Background url for desktops
23
+ */
24
+ bgUrlDesktop: string;
25
+ /**
26
+ * Background url for devices
27
+ */
28
+ bgUrlDevice?: string;
29
+ /**
30
+ * Alt text for the main image
31
+ */
32
+ bgImageAltText?: string;
33
+ /**
34
+ * Logo to be placed in page heading component
35
+ */
36
+ children?: ReactNode;
37
+ /**
38
+ * Internal anchor ref
39
+ */
40
+ scrollHref?: string;
41
+ /**
42
+ * Semantic level of the header
43
+ */
44
+ semanticLevel?: TypographyLevel;
45
+ }
46
+ export declare type BrandingStyle = 'BlockText' | 'BodyText' | 'StreamLogo' | 'CinemaLogo' | 'TextLink';
47
+ export interface IPageHeadingCompactProps {
48
+ /**
49
+ * Text placed in the impact component
50
+ */
51
+ title?: string;
52
+ /**
53
+ * Render title as small for long titles
54
+ */
55
+ smallTitle?: boolean;
56
+ /**
57
+ * Link placed in the impact component
58
+ */
59
+ link?: EditorialLink;
60
+ /**
61
+ * Boolean to show/hide sponsorship logo (default true)
62
+ */
63
+ sponsor?: boolean;
64
+ /**
65
+ * Data for custom sponsor
66
+ */
67
+ customSponsorImage?: CustomSponsorImageData;
68
+ /**
69
+ * Background url for desktops
70
+ */
71
+ bgUrlDesktop: string;
72
+ /**
73
+ * Background url for devices
74
+ */
75
+ bgUrlDevice?: string;
76
+ /**
77
+ * Alt text for the main image
78
+ */
79
+ bgImageAltText?: string;
80
+ /**
81
+ * Logo or Text to be placed in page heading component
82
+ * @type {string}
83
+ */
84
+ brandingStyle: BrandingStyle;
85
+ /**
86
+ * Link for the TextLink branding style option
87
+ */
88
+ brandingLink?: string;
89
+ /**
90
+ * Text to be placed in the branding section - BlockText, BodyText, or TextLink
91
+ */
92
+ brandingText?: string;
93
+ /**
94
+ * Flag whether to show inverted colors
95
+ * @default false
96
+ * @type {boolean}
97
+ * */
98
+ invert?: boolean;
99
+ /**
100
+ * Desktop video url
101
+ * @type {string}
102
+ * */
103
+ videoUrlDesktop?: string;
104
+ /**
105
+ * Mobile video url
106
+ * @type {string}
107
+ * */
108
+ videoUrlMobile?: string;
109
+ /**
110
+ * If true, shows the copy section (title, CTAs etc.). If false, only the video banner is visible. True by default.
111
+ */
112
+ showCopy?: boolean;
113
+ /**
114
+ * Semantic level of the header
115
+ */
116
+ semanticLevel?: TypographyLevel;
117
+ }
118
+ export interface CustomSponsorImageData {
119
+ /**
120
+ * Source URL for Sponsorship logo
121
+ */
122
+ src: string;
123
+ /**
124
+ * Alt Text for image.
125
+ */
126
+ altText?: string;
127
+ /**
128
+ * Used for Analytics.
129
+ */
130
+ dataRoh: string;
131
+ /**
132
+ * Used for Accessibility.
133
+ */
134
+ title: string;
135
+ }
@@ -5,6 +5,11 @@ import { CarouselType } from './carousel';
5
5
  import { IconNameType } from './iconTypes';
6
6
  import { AspectRatio } from './image';
7
7
  import { TickboxMode } from './tickbox';
8
- import { ButtonType } from './buttonTypes';
8
+ import { ButtonType, IAuxiliaryButtonProps } from './buttonTypes';
9
9
  import { EditorialLink } from './editorial';
10
- export { AspectRatio, ButtonType, CarouselType, Colors, EditorialLink, FooterData, IconNameType, INavigationProps, INavTopProps, TickboxMode, ThemeType, };
10
+ import { IPageHeadingCompactProps } from './impactHeader';
11
+ import { IntegratedTimerProps, ITimerProps } from './timer';
12
+ import { ICreditListing } from './creditListing';
13
+ import { ModalWindowProps } from './modalWindow';
14
+ import { IInformationTitleProps, IInformationCTAProps, IInformationBackgroundColour } from './information';
15
+ export { AspectRatio, ButtonType, CarouselType, Colors, EditorialLink, FooterData, IconNameType, IAuxiliaryButtonProps, ICreditListing, IPageHeadingCompactProps, INavigationProps, INavTopProps, IntegratedTimerProps, ITimerProps, ModalWindowProps, TickboxMode, ThemeType, IInformationTitleProps, IInformationCTAProps, IInformationBackgroundColour, };
@@ -1,27 +1,28 @@
1
1
  import { DirectionType, IconNameType } from './iconTypes';
2
- export declare enum CtaVariant {
2
+ import { LinkTarget } from './types';
3
+ export declare enum IInformationCtaVariant {
3
4
  Primary = "Primary",
4
5
  Secondary = "Secondary",
5
6
  Tertiary = "Tertiary",
6
7
  TextLink = "TextLink"
7
8
  }
8
- export declare enum CtaTheme {
9
+ export declare enum IInformationCtaTheme {
9
10
  Cinema = "Cinema",
10
11
  Core = "Core",
11
12
  Stream = "Stream"
12
13
  }
13
- export declare enum TitleVariant {
14
+ export declare enum IInformationTitleVariant {
14
15
  Header = "Header",
15
16
  AltHeader = "AltHeader"
16
17
  }
17
- export declare enum BackgroundColour {
18
+ export declare enum IInformationBackgroundColour {
18
19
  Cinema = "cinema",
19
20
  Core = "core",
20
21
  Stream = "stream",
21
22
  White = "white"
22
23
  }
23
24
  export declare type TitleTextSize = 3 | 4 | 5 | 6;
24
- export interface CTAProps {
25
+ export interface IInformationCTAProps {
25
26
  /**
26
27
  * Text to display on the CTA
27
28
  */
@@ -33,11 +34,11 @@ export interface CTAProps {
33
34
  /**
34
35
  * Style of the CTA. Choices are "Primary" (solid button background), "Secondary" (transparent button background) or "Tertiary" (text only)
35
36
  */
36
- variant?: CtaVariant;
37
+ variant?: IInformationCtaVariant;
37
38
  /**
38
39
  * Theme to use for the CTA. Choices are "Core" (red), "Stream" (blue), or "Cinema" (black)
39
40
  */
40
- theme?: CtaTheme;
41
+ theme?: IInformationCtaTheme;
41
42
  /**
42
43
  * Flag to decide whether to adjust the CTA colours for display on coloured backgrounds
43
44
  */
@@ -50,8 +51,12 @@ export interface CTAProps {
50
51
  * Direction of the icon used in the button
51
52
  */
52
53
  iconDirection?: DirectionType;
54
+ /**
55
+ * Attribute to specify where to open the link
56
+ */
57
+ target?: LinkTarget;
53
58
  }
54
- export interface TitleProps {
59
+ export interface IInformationTitleProps {
55
60
  /**
56
61
  * Title text to display
57
62
  */
@@ -59,7 +64,7 @@ export interface TitleProps {
59
64
  /**
60
65
  * Title typography type. Choices are Heading or AltHeader
61
66
  */
62
- variant: TitleVariant;
67
+ variant: IInformationTitleVariant;
63
68
  /**
64
69
  * The size of the title text
65
70
  */
@@ -73,13 +78,13 @@ export interface IInformationProps {
73
78
  /**
74
79
  * Optional CTA to display underneath the body text
75
80
  */
76
- cta?: CTAProps;
81
+ cta?: IInformationCTAProps;
77
82
  /**
78
83
  * Title options for the component
79
84
  */
80
- title: TitleProps;
85
+ title: IInformationTitleProps;
81
86
  /**
82
87
  * Background Colour. Choices: None, Core, Cinema, Stream
83
88
  */
84
- background?: BackgroundColour;
89
+ background?: IInformationBackgroundColour;
85
90
  }
@@ -0,0 +1,27 @@
1
+ import { IconNameType } from './iconTypes';
2
+ export interface IMiniCardProps {
3
+ /**
4
+ * Title placed in the component
5
+ */
6
+ title: string;
7
+ /**
8
+ * Subtitle placed in the component
9
+ */
10
+ subtitle?: string;
11
+ /**
12
+ * Image to render
13
+ */
14
+ image: string;
15
+ /**
16
+ * Image alt text
17
+ */
18
+ imageAltText: string;
19
+ /**
20
+ * An icon to be rendered in the middle of the image
21
+ */
22
+ iconName?: IconNameType;
23
+ /**
24
+ * A color for the icon
25
+ */
26
+ iconColor?: string;
27
+ }
@@ -0,0 +1,20 @@
1
+ import { ReactElement } from 'react';
2
+ import Modal from 'react-modal';
3
+ export interface ModalWindowProps extends Modal.Props {
4
+ /**
5
+ * Boolean indicating if the modal is open.
6
+ */
7
+ isOpen: boolean;
8
+ /**
9
+ * Function to set the open state of the modal.
10
+ */
11
+ setIsOpen: (isOpen: boolean) => void;
12
+ /**
13
+ * Content to be displayed within the modal.
14
+ */
15
+ children: ReactElement;
16
+ /**
17
+ * ID of the app element to assist with accessibility.
18
+ */
19
+ appElementId?: string;
20
+ }