@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
@@ -2,12 +2,15 @@ export declare const breakpoints: {
2
2
  xs: number;
3
3
  sm: number;
4
4
  md: number;
5
+ ml: number;
5
6
  lg: number;
6
7
  };
7
8
  export declare const devices: {
9
+ smallMobile: string;
8
10
  mobile: string;
9
11
  tablet: string;
10
12
  mobileAndTablet: string;
11
13
  desktop: string;
14
+ smallDesktop: string;
12
15
  largeDesktop: string;
13
16
  };
@@ -0,0 +1,39 @@
1
+ export interface IAuxiliaryNavProps {
2
+ /**
3
+ * Menu items
4
+ */
5
+ items: IItem[];
6
+ /**
7
+ * Item will be marked as active.
8
+ * Should be equal to text prop from one of the items
9
+ */
10
+ activeItem: string;
11
+ /**
12
+ * If component should render the mobile view
13
+ */
14
+ isMobile?: boolean;
15
+ /**
16
+ * aria-label attribute for nav element
17
+ */
18
+ ariaLabel?: string;
19
+ }
20
+ export declare type INavProps = Pick<IAuxiliaryNavProps, 'items' | 'activeItem' | 'ariaLabel'>;
21
+ export interface IItem {
22
+ /**
23
+ * Item text
24
+ */
25
+ text: string;
26
+ /**
27
+ * Href for item link
28
+ */
29
+ href: string;
30
+ /**
31
+ * Item click handler
32
+ * Default link behavior will be prevented if this specified
33
+ */
34
+ onClick?: (e: MouseEvent) => void;
35
+ }
36
+ export interface IItemProps extends IItem {
37
+ isActive: boolean;
38
+ isMobile?: boolean;
39
+ }
@@ -20,6 +20,10 @@ export interface IButtonProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
20
20
  * Direction of the icon used in the button
21
21
  */
22
22
  iconDirection?: DirectionType;
23
+ /**
24
+ * ClassName for the icon to be used in the button
25
+ */
26
+ iconClassName?: string;
23
27
  /**
24
28
  * Color of text and icon
25
29
  */
@@ -30,6 +34,20 @@ export interface IPrimaryButtonProps extends IButtonProps {
30
34
  * Button background color
31
35
  */
32
36
  bgColor?: Colors;
37
+ /**
38
+ * Disabled state
39
+ */
40
+ disabled?: boolean;
41
+ }
42
+ export interface IAuxiliaryButtonProps extends IButtonProps {
43
+ /**
44
+ * Button background color
45
+ */
46
+ bgColor?: Colors;
47
+ /**
48
+ * Function to be called when a button is clicked
49
+ */
50
+ onClick?: MouseEventHandler<HTMLAnchorElement>;
33
51
  }
34
52
  export interface ITertiaryButtonProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
35
53
  /**
@@ -1,5 +1,29 @@
1
1
  import { StyledProps } from 'styled-components';
2
+ import { Colors, EditorialLink, IconNameType } from '.';
2
3
  import { PromoLinks } from './editorial';
4
+ import { DirectionType } from './iconTypes';
5
+ export interface CardLabelProps {
6
+ /**
7
+ * Label text
8
+ */
9
+ text: string;
10
+ /**
11
+ * Name of the icon to be used in the label
12
+ */
13
+ iconName?: IconNameType;
14
+ /**
15
+ * Direction of the icon used in the label
16
+ */
17
+ iconDirection?: DirectionType;
18
+ /**
19
+ * Icon color
20
+ */
21
+ color?: Colors;
22
+ /**
23
+ * Background color
24
+ */
25
+ bgColor?: Colors;
26
+ }
3
27
  export interface ICardProps {
4
28
  /**
5
29
  * The progress percentage
@@ -9,6 +33,10 @@ export interface ICardProps {
9
33
  * Text placed in the Card component
10
34
  */
11
35
  text?: string;
36
+ /**
37
+ * Highlighted small text
38
+ */
39
+ highlightText?: string;
12
40
  /**
13
41
  * List of Type Tags to display.
14
42
  */
@@ -49,10 +77,26 @@ export interface ICardProps {
49
77
  * Defines if buttons are hidden; True by default;
50
78
  */
51
79
  onlyShowButtonsOnHover?: boolean;
80
+ /**
81
+ * Defines the color for a line that appears on hover
82
+ */
83
+ hoverLineColor?: Colors;
52
84
  /**
53
85
  * A callback to be called when the
54
86
  */
55
87
  onClick?: VoidFunction;
88
+ /**
89
+ * Renders label at the top of the card. E.g. Coming soon
90
+ */
91
+ labelParams?: CardLabelProps;
92
+ /**
93
+ * Defines if it is Card in the Grid or in the Carousel
94
+ */
95
+ isGridCard?: boolean;
96
+ /**
97
+ * Renders an auxiliary button when passed
98
+ */
99
+ auxiliaryCTA?: EditorialLink;
56
100
  }
57
101
  export interface ICardContentContainerProps extends StyledProps<any> {
58
102
  /**
@@ -2,6 +2,7 @@ import { ImgHTMLAttributes, ReactElement } from 'react';
2
2
  import { ICardProps } from './card';
3
3
  import { EditorialLink } from './editorial';
4
4
  import { IImageWithCaptionProps } from './image';
5
+ import { IntegratedTimerProps } from './timer';
5
6
  import { ILogosProps } from './types';
6
7
  export declare enum CarouselType {
7
8
  Image = "image",
@@ -12,7 +13,7 @@ export interface ICarouselProps {
12
13
  /**
13
14
  * Carousel title
14
15
  */
15
- title: string;
16
+ title?: string;
16
17
  /**
17
18
  * Carousel type.
18
19
  */
@@ -29,6 +30,10 @@ export interface ICarouselProps {
29
30
  * Carousel children (only Card and ImageAspectRatioWrapper children are allowed).
30
31
  */
31
32
  children: ReactElement<ICardProps | IImageWithCaptionProps>[];
33
+ /**
34
+ * Defines if there should be offset added at the beginning of the container. True by default;
35
+ */
36
+ useOffset?: boolean;
32
37
  }
33
38
  export interface ICarouselWrapperProps {
34
39
  /**
@@ -47,6 +52,14 @@ export interface ICarouselWrapperProps {
47
52
  * Only for image type. It sets the height in pixels of the slides in desktop(default 500)
48
53
  */
49
54
  imagesHeightDesktop?: number;
55
+ /**
56
+ * Additional top padding for slides in the carousel
57
+ */
58
+ slidesTopPadding?: number;
59
+ /**
60
+ * Sets overflow to swiper when specified
61
+ */
62
+ overflow?: string;
50
63
  }
51
64
  export declare type HighlightsCarouselSlideImage = ImgHTMLAttributes<HTMLImageElement> & {
52
65
  key: string;
@@ -68,6 +81,10 @@ export declare type HighlightsCarouselSlide = {
68
81
  * text in info section
69
82
  */
70
83
  infoText?: string;
84
+ /**
85
+ * additional info section
86
+ */
87
+ additionalInfo?: string;
71
88
  /**
72
89
  * Link in info section
73
90
  */
@@ -76,6 +93,10 @@ export declare type HighlightsCarouselSlide = {
76
93
  * Slide image
77
94
  */
78
95
  image: HighlightsCarouselSlideImage;
96
+ /**
97
+ * Params for Timer component
98
+ */
99
+ timerParams?: IntegratedTimerProps;
79
100
  };
80
101
  export interface IHighlightsCarouselProps {
81
102
  /**
@@ -0,0 +1,13 @@
1
+ import { ListingPerson } from './types';
2
+ export interface ICreditListing {
3
+ roles: {
4
+ name: string;
5
+ people: ListingPerson[];
6
+ description: string;
7
+ musicTitle: string[];
8
+ replacement: string;
9
+ additionalInfo: string;
10
+ dataROH: string;
11
+ }[];
12
+ columnCount?: number;
13
+ }
@@ -1,8 +1,9 @@
1
- import { AnchorHTMLAttributes, MouseEventHandler, ReactElement, ReactNode } from 'react';
1
+ import { AnchorHTMLAttributes, ImgHTMLAttributes, MouseEventHandler, ReactElement, ReactNode } from 'react';
2
2
  import { StyledProps } from 'styled-components';
3
3
  import { ButtonType } from './buttonTypes';
4
4
  import { DirectionType, IconNameType } from './iconTypes';
5
- import { Colors, Image } from './types';
5
+ import { Colors, IVideoWithControlsSettings } from './types';
6
+ import { TypographyLevel } from './typography';
6
7
  export interface IEditorialProps {
7
8
  /**
8
9
  * Text placed in the editorial component
@@ -42,12 +43,10 @@ export interface IEditorialGridProps {
42
43
  * Indicates if component should be hidden
43
44
  */
44
45
  hideSection?: boolean;
45
- }
46
- export interface IPromoWithTagsStyledProps {
47
46
  /**
48
- * Sets margin for the tags container
47
+ * Modifies styles to fixed height card
49
48
  */
50
- marginBottom?: number;
49
+ asCard?: boolean;
51
50
  }
52
51
  export declare type EditorialLink = AnchorHTMLAttributes<HTMLAnchorElement> & {
53
52
  /**
@@ -102,13 +101,21 @@ export interface IPromoWithTitleProps {
102
101
  */
103
102
  imagePosition?: 'left' | 'right';
104
103
  /**
105
- * Image tag or component to be displayed in the editorial component with aspect ratio 4:3
104
+ * Image tag with aspect ratio 4:3 or video tag with aspect ratio 16:9 (desktop) or 1:1 (mobile)
106
105
  */
107
- children: ReactElement<HTMLImageElement>;
106
+ children: ReactElement<HTMLImageElement | HTMLVideoElement>;
107
+ /**
108
+ * Settings for the VideoWithControls component.
109
+ */
110
+ videoSettings?: IVideoWithControlsSettings;
108
111
  /**
109
112
  * Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
110
113
  */
111
114
  links?: PromoLinks;
115
+ /**
116
+ * Semantic level of the title. Default is 2.
117
+ */
118
+ titleSemanticLevel?: TypographyLevel;
112
119
  }
113
120
  export interface IThemePageHeadingProps {
114
121
  /**
@@ -127,26 +134,26 @@ export interface IThemePageHeadingProps {
127
134
  * Boolean to show/hide sponsorship logo (default true)
128
135
  */
129
136
  sponsor?: boolean;
130
- }
131
- export interface IPageHeadingProps extends IThemePageHeadingProps {
132
137
  /**
133
- * Logo to be placed in page heading component
138
+ * Semantic level of the title. Default is 1.
134
139
  */
135
- children?: ReactNode;
136
- }
137
- export interface IPageHeadingImpactProps {
140
+ semanticLevel?: TypographyLevel;
138
141
  /**
139
- * Text placed in the impact component
142
+ * Character limit for the text
140
143
  */
141
- text?: string;
144
+ copyCharLimit?: number;
142
145
  /**
143
- * Link placed in the impact component
146
+ * Character limit for the title
144
147
  */
145
- link?: EditorialLink;
148
+ titleCharLimit?: number;
149
+ }
150
+ export interface IPageHeadingProps extends IThemePageHeadingProps {
146
151
  /**
147
- * Boolean to show/hide sponsorship logo (default true)
152
+ * Logo to be placed in page heading component
148
153
  */
149
- sponsor?: boolean;
154
+ children?: ReactNode;
155
+ }
156
+ export interface IImpactWrappersStyledProps extends StyledProps<any> {
150
157
  /**
151
158
  * Background url for desktops
152
159
  */
@@ -155,77 +162,94 @@ export interface IPageHeadingImpactProps {
155
162
  * Background url for devices
156
163
  */
157
164
  bgUrlDevice?: string;
165
+ }
166
+ export interface IHighlightsHeaderProps {
158
167
  /**
159
- * Logo to be placed in page heading component
168
+ * Text placed in the editorial component
160
169
  */
161
- children?: ReactNode;
170
+ title: string;
162
171
  /**
163
- * Internal anchor ref
172
+ * Subtitle placed in the editorial component
164
173
  */
165
- scrollHref?: string;
166
- }
167
- export interface IImpactWrappersStyledProps extends StyledProps<any> {
174
+ subtitle?: string;
168
175
  /**
169
- * Background url for desktops
176
+ * Text placed in the editorial component
170
177
  */
171
- bgUrlDesktop: string;
178
+ text?: string;
172
179
  /**
173
- * Background url for devices
180
+ * Explanation
174
181
  */
175
- bgUrlDevice?: string;
182
+ images?: Array<ImgHTMLAttributes<HTMLImageElement>>;
176
183
  }
177
- export interface IPromoWithTagsProps {
184
+ export declare type IContentSummaryLink = Omit<EditorialLink, 'buttonType' | 'bgColor' | 'iconName' | 'iconDirection'>;
185
+ interface IContentSummaryImageProps {
178
186
  /**
179
- * Text placed in the editorial component
187
+ * URL of the content summary image
180
188
  */
181
- text?: string;
189
+ src: string;
182
190
  /**
183
- * Title placed in the editorial component
191
+ * Alt text of the content summary image
184
192
  */
185
- title: string;
193
+ alt?: string;
194
+ }
195
+ export interface IContentSummaryProps {
186
196
  /**
187
- * Title size
197
+ * Title for content summary
188
198
  */
189
- titleSize?: 'small' | 'large';
199
+ title?: string;
190
200
  /**
191
- * Subtitle placed in the editorial component
201
+ * Subtitle field, used, e.g. for date in News summaries
192
202
  */
193
203
  subtitle?: string;
194
204
  /**
195
- * Position of the image in the editorial component
205
+ * Main text area for content summary item
196
206
  */
197
- imagePosition?: 'left' | 'right';
207
+ bodyText?: string;
198
208
  /**
199
- * Image to be displayed in the editorial component with aspect ratio 4:3
209
+ * Link object with text for cta, can also have <a> tag attributes href, target etc...
200
210
  */
201
- image?: Image;
211
+ link?: IContentSummaryLink;
202
212
  /**
203
- * Component to be displayed instead of the image after clicking on the button
213
+ * Image to display in the component with aspect ratio 1.3:1
204
214
  */
205
- children?: ReactElement<HTMLElement>;
215
+ image?: IContentSummaryImageProps;
206
216
  /**
207
- * Array of buttons props. First one should have PrimaryButton attributes, second one Tertiary button attributes
217
+ * Show an image to the left of the text or not
208
218
  */
209
- links?: PromoLinks;
219
+ showImage?: boolean;
210
220
  /**
211
- * Array of buttons props that will be displayed above the main buttons
221
+ * Display a larger title for e.g. displaying search results
212
222
  */
213
- textLinks?: EditorialLink[];
223
+ largeTitle?: boolean;
214
224
  /**
225
+ * Truncate the body text after the given number of lines
226
+ */
227
+ truncate?: number;
215
228
  /**
216
- * Array of tags in the editorial component
229
+ * Option to make the entire component clickable for search results
217
230
  */
218
- aboveTitleTags?: string[];
231
+ fullyClickable?: boolean;
219
232
  /**
220
- * Array of tags in the editorial component
233
+ * The base semantic header level for the component: 1 | 2 | 3 | 4 | 5 | 6
221
234
  */
222
- belowTitleTags?: string[];
235
+ baseSemanticLevel?: TypographyLevel;
236
+ }
237
+ export interface IPanelHeadingProps {
238
+ /**
239
+ * Content to display in the left hand panel
240
+ */
241
+ info: ReactElement<HTMLElement>;
223
242
  /**
224
- * Text in the middle
243
+ * Image to display in the right hand panel, aspect ratio 4:3
225
244
  */
226
- middleText?: string;
245
+ image?: ImgHTMLAttributes<HTMLImageElement>;
246
+ /**
247
+ * Colour of the info panel background
248
+ */
249
+ color?: Colors;
227
250
  /**
228
- * Text in the bottom
251
+ * Reference of the div to scroll to when clicking on Scroll Down
229
252
  */
230
- bottomText?: string;
253
+ scrollTo?: string;
231
254
  }
255
+ export {};