@royaloperahouse/chord 2.9.1 → 2.10.0-a-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 (428) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +0 -0
  3. package/README.md +251 -40
  4. package/dist/chord.cjs.development.js +223 -127
  5. package/dist/chord.cjs.development.js.map +1 -1
  6. package/dist/chord.cjs.production.min.js +1 -1
  7. package/dist/chord.cjs.production.min.js.map +1 -1
  8. package/dist/chord.esm.js +223 -127
  9. package/dist/chord.esm.js.map +1 -1
  10. package/dist/components/atoms/Account/Account.d.ts +0 -0
  11. package/dist/components/atoms/Account/index.d.ts +0 -0
  12. package/dist/components/atoms/AriaAlternativeDescription/AriaAlternative.d.ts +5 -0
  13. package/dist/components/atoms/AriaAlternativeDescription/AriaAlternative.style.d.ts +3 -0
  14. package/dist/components/atoms/AriaAlternativeDescription/index.d.ts +2 -0
  15. package/dist/components/atoms/Badge/Badge.style.d.ts +0 -0
  16. package/dist/components/atoms/Badge/CinemaBadge.d.ts +0 -0
  17. package/dist/components/atoms/Badge/StreamBadge.d.ts +0 -0
  18. package/dist/components/atoms/Badge/index.d.ts +0 -0
  19. package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.d.ts +0 -0
  20. package/dist/components/atoms/Buttons/Auxiliary/AuxiliaryButton.style.d.ts +0 -0
  21. package/dist/components/atoms/Buttons/Button.d.ts +0 -0
  22. package/dist/components/atoms/Buttons/Button.style.d.ts +0 -0
  23. package/dist/components/atoms/Buttons/ButtonIconWrapper.style.d.ts +0 -0
  24. package/dist/components/atoms/Buttons/Primary/PrimaryButton.d.ts +0 -0
  25. package/dist/components/atoms/Buttons/Primary/PrimaryButtonWrapper.style.d.ts +0 -0
  26. package/dist/components/atoms/Buttons/Secondary/SecondaryButton.d.ts +0 -0
  27. package/dist/components/atoms/Buttons/Secondary/SecondaryButtonWrapper.style.d.ts +2 -2
  28. package/dist/components/atoms/Buttons/Tertiary/TertiaryButton.d.ts +0 -0
  29. package/dist/components/atoms/Buttons/Tertiary/TertiaryButton.style.d.ts +0 -0
  30. package/dist/components/atoms/Buttons/index.d.ts +0 -0
  31. package/dist/components/atoms/ControlledDropdown/ControlledDropdown.d.ts +0 -0
  32. package/dist/components/atoms/ControlledDropdown/ControlledDropdown.style.d.ts +0 -0
  33. package/dist/components/atoms/ControlledDropdown/index.d.ts +0 -0
  34. package/dist/components/atoms/Dropdown/Dropdown.d.ts +0 -0
  35. package/dist/components/atoms/Dropdown/Dropdown.style.d.ts +0 -0
  36. package/dist/components/atoms/Dropdown/index.d.ts +0 -0
  37. package/dist/components/atoms/Grid/Grid.d.ts +0 -0
  38. package/dist/components/atoms/Grid/GridItem.d.ts +0 -0
  39. package/dist/components/atoms/Grid/GridItemLegacy.d.ts +8 -0
  40. package/dist/components/atoms/Grid/index.d.ts +2 -1
  41. package/dist/components/atoms/Icons/Icons.d.ts +0 -0
  42. package/dist/components/atoms/Icons/Icons.style.d.ts +0 -0
  43. package/dist/components/atoms/Icons/StorybookSupport/Iconography.d.ts +0 -0
  44. package/dist/components/atoms/Icons/StorybookSupport/IconsDiv.style.d.ts +0 -0
  45. package/dist/components/atoms/Icons/SvgIcons/12px/Expand.svg.d.ts +0 -0
  46. package/dist/components/atoms/Icons/SvgIcons/12px/Remove.svg.d.ts +0 -0
  47. package/dist/components/atoms/Icons/SvgIcons/12px/Tick.svg.d.ts +0 -0
  48. package/dist/components/atoms/Icons/SvgIcons/Actions/AddToMyList.svg.d.ts +0 -0
  49. package/dist/components/atoms/Icons/SvgIcons/Actions/BookTickets.svg.d.ts +0 -0
  50. package/dist/components/atoms/Icons/SvgIcons/Actions/ChooseDates.svg.d.ts +0 -0
  51. package/dist/components/atoms/Icons/SvgIcons/Actions/EditMyList.svg.d.ts +0 -0
  52. package/dist/components/atoms/Icons/SvgIcons/Actions/Favourite.svg.d.ts +0 -0
  53. package/dist/components/atoms/Icons/SvgIcons/Actions/FavouriteFull.svg.d.ts +0 -0
  54. package/dist/components/atoms/Icons/SvgIcons/Actions/Filter.svg.d.ts +0 -0
  55. package/dist/components/atoms/Icons/SvgIcons/Actions/FindAScreening.svg.d.ts +0 -0
  56. package/dist/components/atoms/Icons/SvgIcons/Actions/OnMyList.svg.d.ts +0 -0
  57. package/dist/components/atoms/Icons/SvgIcons/Actions/Reminder.svg.d.ts +0 -0
  58. package/dist/components/atoms/Icons/SvgIcons/Actions/Subscribe.svg.d.ts +0 -0
  59. package/dist/components/atoms/Icons/SvgIcons/Actions/Watch.svg.d.ts +0 -0
  60. package/dist/components/atoms/Icons/SvgIcons/Arrows/Arrow.svg.d.ts +0 -0
  61. package/dist/components/atoms/Icons/SvgIcons/Arrows/CarouselArrow.svg.d.ts +0 -0
  62. package/dist/components/atoms/Icons/SvgIcons/Arrows/DropdownArrow.svg.d.ts +0 -0
  63. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Cinema.svg.d.ts +0 -0
  64. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Clock.svg.d.ts +0 -0
  65. package/dist/components/atoms/Icons/SvgIcons/Descriptors/CreditCard.svg.d.ts +0 -0
  66. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Email.svg.d.ts +0 -0
  67. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Info.svg.d.ts +0 -0
  68. package/dist/components/atoms/Icons/SvgIcons/Descriptors/List.svg.d.ts +0 -0
  69. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Location.svg.d.ts +0 -0
  70. package/dist/components/atoms/Icons/SvgIcons/Descriptors/PDF.svg.d.ts +0 -0
  71. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Phone.svg.d.ts +0 -0
  72. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Print.svg.d.ts +0 -0
  73. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Seat.svg.d.ts +0 -0
  74. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Secure.svg.d.ts +0 -0
  75. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Standing.svg.d.ts +0 -0
  76. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Tickets.svg.d.ts +0 -0
  77. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Wheelchair.svg.d.ts +0 -0
  78. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Facebook.svg.d.ts +0 -0
  79. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Instagram.svg.d.ts +0 -0
  80. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Tiktok.svg.d.ts +0 -0
  81. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Twitter.svg.d.ts +0 -0
  82. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/X.svg.d.ts +0 -0
  83. package/dist/components/atoms/Icons/SvgIcons/Logos/Social/Youtube.svg.d.ts +0 -0
  84. package/dist/components/atoms/Icons/SvgIcons/Navigation/BalletAndDance.svg.d.ts +0 -0
  85. package/dist/components/atoms/Icons/SvgIcons/Navigation/Basket.svg.d.ts +0 -0
  86. package/dist/components/atoms/Icons/SvgIcons/Navigation/BasketFull.svg.d.ts +0 -0
  87. package/dist/components/atoms/Icons/SvgIcons/Navigation/Home.svg.d.ts +0 -0
  88. package/dist/components/atoms/Icons/SvgIcons/Navigation/LiveStream.svg.d.ts +0 -0
  89. package/dist/components/atoms/Icons/SvgIcons/Navigation/Menu.svg.d.ts +0 -0
  90. package/dist/components/atoms/Icons/SvgIcons/Navigation/OperaAndMusic.svg.d.ts +0 -0
  91. package/dist/components/atoms/Icons/SvgIcons/Navigation/Search.svg.d.ts +0 -0
  92. package/dist/components/atoms/Icons/SvgIcons/Navigation/Settings.svg.d.ts +0 -0
  93. package/dist/components/atoms/Icons/SvgIcons/Navigation/User.svg.d.ts +0 -0
  94. package/dist/components/atoms/Icons/SvgIcons/Navigation/UserSignedIn.svg.d.ts +0 -0
  95. package/dist/components/atoms/Icons/SvgIcons/Text/Delete.svg.d.ts +0 -0
  96. package/dist/components/atoms/Icons/SvgIcons/Text/Shift.svg.d.ts +0 -0
  97. package/dist/components/atoms/Icons/SvgIcons/Text/Space.svg.d.ts +0 -0
  98. package/dist/components/atoms/Icons/SvgIcons/Utility/Close.svg.d.ts +0 -0
  99. package/dist/components/atoms/Icons/SvgIcons/Utility/Confirm.svg.d.ts +0 -0
  100. package/dist/components/atoms/Icons/SvgIcons/Utility/Detract.svg.d.ts +0 -0
  101. package/dist/components/atoms/Icons/SvgIcons/Utility/Expand.svg.d.ts +0 -0
  102. package/dist/components/atoms/Icons/SvgIcons/Utility/ExternalLink.svg.d.ts +0 -0
  103. package/dist/components/atoms/Icons/SvgIcons/Utility/GridView.svg.d.ts +0 -0
  104. package/dist/components/atoms/Icons/SvgIcons/Utility/ListView.svg.d.ts +0 -0
  105. package/dist/components/atoms/Icons/SvgIcons/Utility/Refresh.svg.d.ts +0 -0
  106. package/dist/components/atoms/Icons/SvgIcons/Utility/Remove.svg.d.ts +0 -0
  107. package/dist/components/atoms/Icons/SvgIcons/Utility/Star.svg.d.ts +0 -0
  108. package/dist/components/atoms/Icons/SvgIcons/Video/AudioDescription.svg.d.ts +0 -0
  109. package/dist/components/atoms/Icons/SvgIcons/Video/Back10.svg.d.ts +0 -0
  110. package/dist/components/atoms/Icons/SvgIcons/Video/Clips.svg.d.ts +0 -0
  111. package/dist/components/atoms/Icons/SvgIcons/Video/Forward10.svg.d.ts +0 -0
  112. package/dist/components/atoms/Icons/SvgIcons/Video/FullScreen.svg.d.ts +0 -0
  113. package/dist/components/atoms/Icons/SvgIcons/Video/Minimise.svg.d.ts +0 -0
  114. package/dist/components/atoms/Icons/SvgIcons/Video/Muted.svg.d.ts +0 -0
  115. package/dist/components/atoms/Icons/SvgIcons/Video/Pause.svg.d.ts +0 -0
  116. package/dist/components/atoms/Icons/SvgIcons/Video/Play.svg.d.ts +0 -0
  117. package/dist/components/atoms/Icons/SvgIcons/Video/Restart.svg.d.ts +0 -0
  118. package/dist/components/atoms/Icons/SvgIcons/Video/Subtitles.svg.d.ts +0 -0
  119. package/dist/components/atoms/Icons/SvgIcons/Video/Trailer.svg.d.ts +0 -0
  120. package/dist/components/atoms/Icons/SvgIcons/Video/Volume.svg.d.ts +0 -0
  121. package/dist/components/atoms/Icons/SvgIcons/index.d.ts +0 -0
  122. package/dist/components/atoms/Icons/index.d.ts +0 -0
  123. package/dist/components/atoms/ImageAspectRatioWrapper/ImageAspectRatioWrapper.d.ts +0 -0
  124. package/dist/components/atoms/ImageAspectRatioWrapper/index.d.ts +0 -0
  125. package/dist/components/atoms/Logo/Logo.d.ts +0 -0
  126. package/dist/components/atoms/Logo/Logo.style.d.ts +0 -0
  127. package/dist/components/atoms/Logo/index.d.ts +0 -0
  128. package/dist/components/atoms/Progress/Progress.d.ts +0 -0
  129. package/dist/components/atoms/Progress/Progress.styles.d.ts +0 -0
  130. package/dist/components/atoms/Progress/index.d.ts +0 -0
  131. package/dist/components/atoms/Radio/Radio.d.ts +0 -0
  132. package/dist/components/atoms/Radio/Radio.style.d.ts +0 -0
  133. package/dist/components/atoms/Radio/index.d.ts +0 -0
  134. package/dist/components/atoms/Radio2/Radio2.d.ts +0 -0
  135. package/dist/components/atoms/Radio2/Radio2.style.d.ts +0 -0
  136. package/dist/components/atoms/Radio2/index.d.ts +0 -0
  137. package/dist/components/atoms/RotatorButtons/RotatorButtons.d.ts +0 -0
  138. package/dist/components/atoms/RotatorButtons/RotatorButtons.style.d.ts +0 -0
  139. package/dist/components/atoms/RotatorButtons/index.d.ts +0 -0
  140. package/dist/components/atoms/Search/Search.d.ts +0 -0
  141. package/dist/components/atoms/Search/Search.style.d.ts +0 -0
  142. package/dist/components/atoms/Search/index.d.ts +0 -0
  143. package/dist/components/atoms/SecondaryLogo/SecodaryLogo.style.d.ts +0 -0
  144. package/dist/components/atoms/SecondaryLogo/SecondaryLogo.d.ts +0 -0
  145. package/dist/components/atoms/SecondaryLogo/index.d.ts +0 -0
  146. package/dist/components/atoms/SectionSplitter/SectionSplitter.d.ts +0 -0
  147. package/dist/components/atoms/SectionSplitter/SectionSplitter.style.d.ts +0 -0
  148. package/dist/components/atoms/SectionSplitter/index.d.ts +0 -0
  149. package/dist/components/atoms/SponsorLogo/SponsorLogo.d.ts +0 -0
  150. package/dist/components/atoms/SponsorLogo/SponsorLogo.style.d.ts +0 -0
  151. package/dist/components/atoms/SponsorLogo/index.d.ts +0 -0
  152. package/dist/components/atoms/Sponsorship/Sponsorship.d.ts +0 -0
  153. package/dist/components/atoms/Sponsorship/Sponsorship.style.d.ts +0 -0
  154. package/dist/components/atoms/Sponsorship/index.d.ts +0 -0
  155. package/dist/components/atoms/Stepper/Stepper.d.ts +0 -0
  156. package/dist/components/atoms/Stepper/Stepper.style.d.ts +0 -0
  157. package/dist/components/atoms/Stepper/index.d.ts +0 -0
  158. package/dist/components/atoms/Tab/Tab.d.ts +0 -0
  159. package/dist/components/atoms/Tab/Tab.style.d.ts +0 -0
  160. package/dist/components/atoms/Tab/index.d.ts +0 -0
  161. package/dist/components/atoms/TabLink/TabLink.d.ts +0 -0
  162. package/dist/components/atoms/TabLink/TabLink.style.d.ts +0 -0
  163. package/dist/components/atoms/TabLink/index.d.ts +0 -0
  164. package/dist/components/atoms/TextArea/TextArea.d.ts +0 -0
  165. package/dist/components/atoms/TextArea/TextArea.style.d.ts +0 -0
  166. package/dist/components/atoms/TextArea/index.d.ts +0 -0
  167. package/dist/components/atoms/TextField/TextField.d.ts +0 -0
  168. package/dist/components/atoms/TextField/TextField.style.d.ts +0 -0
  169. package/dist/components/atoms/TextField/TextFieldLegacy.d.ts +0 -0
  170. package/dist/components/atoms/TextField/TextFieldLegacy.style.d.ts +0 -0
  171. package/dist/components/atoms/TextField/index.d.ts +0 -0
  172. package/dist/components/atoms/TextLink/TextLink.d.ts +0 -0
  173. package/dist/components/atoms/TextLink/TextLink.style.d.ts +0 -0
  174. package/dist/components/atoms/TextLink/index.d.ts +0 -0
  175. package/dist/components/atoms/TextLogo/TextLogo.d.ts +0 -0
  176. package/dist/components/atoms/TextLogo/index.d.ts +0 -0
  177. package/dist/components/atoms/TextLogo/styled.d.ts +0 -0
  178. package/dist/components/atoms/Tickbox/Tickbox.d.ts +0 -0
  179. package/dist/components/atoms/Tickbox/Tickbox.style.d.ts +0 -0
  180. package/dist/components/atoms/Tickbox/index.d.ts +0 -0
  181. package/dist/components/atoms/Tickbox2/Tickbox2.d.ts +0 -0
  182. package/dist/components/atoms/Tickbox2/Tickbox2.style.d.ts +0 -0
  183. package/dist/components/atoms/Tickbox2/index.d.ts +0 -0
  184. package/dist/components/atoms/Timer/Timer.d.ts +0 -0
  185. package/dist/components/atoms/Timer/Timer.style.d.ts +0 -0
  186. package/dist/components/atoms/Timer/index.d.ts +0 -0
  187. package/dist/components/atoms/ToggleButton/ToggleButton.d.ts +0 -0
  188. package/dist/components/atoms/ToggleButton/ToggleButton.style.d.ts +0 -0
  189. package/dist/components/atoms/TypeTags/TypeTags.d.ts +0 -0
  190. package/dist/components/atoms/TypeTags/TypeTags.style.d.ts +0 -0
  191. package/dist/components/atoms/TypeTags/index.d.ts +0 -0
  192. package/dist/components/atoms/Typography/Typography.d.ts +0 -0
  193. package/dist/components/atoms/Typography/Typography.style.d.ts +0 -0
  194. package/dist/components/atoms/Typography/index.d.ts +0 -0
  195. package/dist/components/atoms/VideoControls/VideoControls.d.ts +0 -0
  196. package/dist/components/atoms/VideoControls/VideoControls.style.d.ts +0 -0
  197. package/dist/components/atoms/VideoControls/index.d.ts +0 -0
  198. package/dist/components/atoms/index.d.ts +2 -2
  199. package/dist/components/index.d.ts +0 -0
  200. package/dist/components/molecules/Accordion/Accordion.d.ts +0 -0
  201. package/dist/components/molecules/Accordion/Accordion.style.d.ts +0 -0
  202. package/dist/components/molecules/Accordion/index.d.ts +0 -0
  203. package/dist/components/molecules/Accordions/Accordions.d.ts +0 -0
  204. package/dist/components/molecules/Accordions/Accordions.style.d.ts +0 -0
  205. package/dist/components/molecules/Accordions/index.d.ts +0 -0
  206. package/dist/components/molecules/AnchorBar/AnchorBar.d.ts +0 -0
  207. package/dist/components/molecules/AnchorBar/AnchorBar.style.d.ts +0 -0
  208. package/dist/components/molecules/AnchorBar/index.d.ts +0 -0
  209. package/dist/components/molecules/AnnouncementBanner/AnnouncementBanner.d.ts +0 -0
  210. package/dist/components/molecules/AnnouncementBanner/AnnouncementBanner.style.d.ts +0 -0
  211. package/dist/components/molecules/AnnouncementBanner/index.d.ts +0 -0
  212. package/dist/components/molecules/AuxiliaryNav/AuxiliaryNav.d.ts +0 -0
  213. package/dist/components/molecules/AuxiliaryNav/AuxiliaryNav.styles.d.ts +0 -0
  214. package/dist/components/molecules/AuxiliaryNav/index.d.ts +0 -0
  215. package/dist/components/molecules/Basket/Basket.d.ts +0 -0
  216. package/dist/components/molecules/Basket/Basket.style.d.ts +0 -0
  217. package/dist/components/molecules/Basket/helpers.d.ts +0 -0
  218. package/dist/components/molecules/Basket/hooks.d.ts +0 -0
  219. package/dist/components/molecules/Basket/index.d.ts +0 -0
  220. package/dist/components/molecules/Card/Card.d.ts +0 -0
  221. package/dist/components/molecules/Card/Card.style.d.ts +0 -0
  222. package/dist/components/molecules/Card/index.d.ts +0 -0
  223. package/dist/components/molecules/Cards/Cards.d.ts +0 -0
  224. package/dist/components/molecules/Cards/Cards.style.d.ts +0 -0
  225. package/dist/components/molecules/Cards/index.d.ts +0 -0
  226. package/dist/components/molecules/ContactCard/ContactCard.d.ts +0 -0
  227. package/dist/components/molecules/ContactCard/ContactCard.style.d.ts +0 -0
  228. package/dist/components/molecules/ContactCard/index.d.ts +0 -0
  229. package/dist/components/molecules/ContactNewsletter/ContactNewsletter.d.ts +0 -0
  230. package/dist/components/molecules/ContactNewsletter/ContactNewsletter.style.d.ts +0 -0
  231. package/dist/components/molecules/ContactNewsletter/index.d.ts +0 -0
  232. package/dist/components/molecules/ContentSummary/ContentSummary.d.ts +0 -0
  233. package/dist/components/molecules/ContentSummary/ContentSummary.style.d.ts +0 -0
  234. package/dist/components/molecules/ContentSummary/ContentSummaryData.d.ts +0 -0
  235. package/dist/components/molecules/ContentSummary/index.d.ts +0 -0
  236. package/dist/components/molecules/Editorial/Editorial.d.ts +0 -0
  237. package/dist/components/molecules/Editorial/Editorial.style.d.ts +0 -0
  238. package/dist/components/molecules/Editorial/index.d.ts +0 -0
  239. package/dist/components/molecules/ImageWithCaption/ImageWithCaption.d.ts +0 -0
  240. package/dist/components/molecules/ImageWithCaption/ImageWithCaption.style.d.ts +0 -0
  241. package/dist/components/molecules/ImageWithCaption/index.d.ts +0 -0
  242. package/dist/components/molecules/Information/InfoCta.d.ts +0 -0
  243. package/dist/components/molecules/Information/Information.d.ts +0 -0
  244. package/dist/components/molecules/Information/Information.style.d.ts +0 -0
  245. package/dist/components/molecules/Information/index.d.ts +0 -0
  246. package/dist/components/molecules/MiniCard/MiniCard.d.ts +0 -0
  247. package/dist/components/molecules/MiniCard/MiniCard.style.d.ts +0 -0
  248. package/dist/components/molecules/MiniCard/index.d.ts +0 -0
  249. package/dist/components/molecules/NavTop/NavTop.d.ts +0 -0
  250. package/dist/components/molecules/NavTop/NavTop.style.d.ts +0 -0
  251. package/dist/components/molecules/NavTop/index.d.ts +0 -0
  252. package/dist/components/molecules/PageHeading/Cinema/Cinema.d.ts +0 -0
  253. package/dist/components/molecules/PageHeading/Cinema/index.d.ts +0 -0
  254. package/dist/components/molecules/PageHeading/Compact/Compact.d.ts +0 -0
  255. package/dist/components/molecules/PageHeading/Compact/Compact.style.d.ts +0 -0
  256. package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.d.ts +0 -0
  257. package/dist/components/molecules/PageHeading/Compact/index.d.ts +0 -0
  258. package/dist/components/molecules/PageHeading/Core/Core.d.ts +0 -0
  259. package/dist/components/molecules/PageHeading/Core/index.d.ts +0 -0
  260. package/dist/components/molecules/PageHeading/Impact/Impact.d.ts +0 -0
  261. package/dist/components/molecules/PageHeading/Impact/Impact.style.d.ts +0 -0
  262. package/dist/components/molecules/PageHeading/Impact/index.d.ts +0 -0
  263. package/dist/components/molecules/PageHeading/PageHeading.d.ts +0 -0
  264. package/dist/components/molecules/PageHeading/PageHeading.style.d.ts +0 -0
  265. package/dist/components/molecules/PageHeading/Panel/Panel.d.ts +0 -0
  266. package/dist/components/molecules/PageHeading/Panel/Panel.style.d.ts +0 -0
  267. package/dist/components/molecules/PageHeading/Panel/index.d.ts +0 -0
  268. package/dist/components/molecules/PageHeading/Stream/Stream.d.ts +0 -0
  269. package/dist/components/molecules/PageHeading/Stream/Stream.style.d.ts +0 -0
  270. package/dist/components/molecules/PageHeading/Stream/index.d.ts +0 -0
  271. package/dist/components/molecules/PageHeading/index.d.ts +1 -1
  272. package/dist/components/molecules/Pagination/Pagination.d.ts +0 -0
  273. package/dist/components/molecules/Pagination/Pagination.style.d.ts +0 -0
  274. package/dist/components/molecules/Pagination/index.d.ts +0 -0
  275. package/dist/components/molecules/PasswordStrength/PasswordStrength.d.ts +0 -0
  276. package/dist/components/molecules/PasswordStrength/PasswordStrength.styles.d.ts +0 -0
  277. package/dist/components/molecules/PasswordStrength/index.d.ts +0 -0
  278. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.d.ts +0 -0
  279. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +1 -0
  280. package/dist/components/molecules/PeopleListing/CreditListing/index.d.ts +0 -0
  281. package/dist/components/molecules/PeopleListing/PeopleListing.d.ts +0 -0
  282. package/dist/components/molecules/PeopleListing/PeopleListing.style.d.ts +0 -0
  283. package/dist/components/molecules/PeopleListing/Person.d.ts +0 -0
  284. package/dist/components/molecules/PeopleListing/index.d.ts +0 -0
  285. package/dist/components/molecules/PolicyLinks/PolicyLinks.d.ts +0 -0
  286. package/dist/components/molecules/PolicyLinks/PolicyLinks.style.d.ts +0 -0
  287. package/dist/components/molecules/PolicyLinks/index.d.ts +0 -0
  288. package/dist/components/molecules/PromoWithTags/PromoWithTags.d.ts +0 -0
  289. package/dist/components/molecules/PromoWithTags/PromoWithTags.style.d.ts +0 -0
  290. package/dist/components/molecules/PromoWithTags/index.d.ts +0 -0
  291. package/dist/components/molecules/PromoWithTitle/PromoChild.d.ts +0 -0
  292. package/dist/components/molecules/PromoWithTitle/PromoWithTitle.d.ts +0 -0
  293. package/dist/components/molecules/PromoWithTitle/PromoWithTitle.style.d.ts +0 -0
  294. package/dist/components/molecules/PromoWithTitle/index.d.ts +0 -0
  295. package/dist/components/molecules/Quote/Quote.d.ts +0 -0
  296. package/dist/components/molecules/Quote/Quote.style.d.ts +0 -0
  297. package/dist/components/molecules/Quote/index.d.ts +0 -0
  298. package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +0 -0
  299. package/dist/components/molecules/RadioGroup/RadioGroup.style.d.ts +0 -0
  300. package/dist/components/molecules/RadioGroup/index.d.ts +0 -0
  301. package/dist/components/molecules/RadioGroup2/RadioGroup2.d.ts +0 -0
  302. package/dist/components/molecules/RadioGroup2/RadioGroup2.style.d.ts +0 -0
  303. package/dist/components/molecules/RadioGroup2/index.d.ts +0 -0
  304. package/dist/components/molecules/ReadMore/ReadMore.d.ts +0 -0
  305. package/dist/components/molecules/ReadMore/ReadMore.style.d.ts +0 -0
  306. package/dist/components/molecules/ReadMore/index.d.ts +0 -0
  307. package/dist/components/molecules/SearchBar/SearchBar.d.ts +0 -0
  308. package/dist/components/molecules/SearchBar/SearchBar.style.d.ts +0 -0
  309. package/dist/components/molecules/SearchBar/index.d.ts +0 -0
  310. package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +0 -0
  311. package/dist/components/molecules/SectionTitle/SectionTitle.style.d.ts +0 -0
  312. package/dist/components/molecules/SectionTitle/index.d.ts +0 -0
  313. package/dist/components/molecules/Select/Select.d.ts +0 -0
  314. package/dist/components/molecules/Select/Select.style.d.ts +0 -0
  315. package/dist/components/molecules/Select/index.d.ts +0 -0
  316. package/dist/components/molecules/Select2/Select2.d.ts +0 -0
  317. package/dist/components/molecules/Select2/Select2.style.d.ts +0 -0
  318. package/dist/components/molecules/Select2/index.d.ts +0 -0
  319. package/dist/components/molecules/Select2Async/Select2Async.d.ts +0 -0
  320. package/dist/components/molecules/Select2Async/index.d.ts +0 -0
  321. package/dist/components/molecules/SignUpForm/SignUpForm.d.ts +0 -0
  322. package/dist/components/molecules/SignUpForm/SignUpForm.style.d.ts +0 -0
  323. package/dist/components/molecules/SignUpForm/index.d.ts +0 -0
  324. package/dist/components/molecules/StatusBanner/StatusBanner.d.ts +0 -0
  325. package/dist/components/molecules/StatusBanner/StatusBanner.style.d.ts +0 -0
  326. package/dist/components/molecules/StatusBanner/index.d.ts +0 -0
  327. package/dist/components/molecules/Table/Table.d.ts +0 -0
  328. package/dist/components/molecules/Table/Table.style.d.ts +1 -1
  329. package/dist/components/molecules/Table/components/TableCell.d.ts +0 -0
  330. package/dist/components/molecules/Table/components/TableHelpers.d.ts +0 -0
  331. package/dist/components/molecules/Table/components/TableRow.d.ts +0 -0
  332. package/dist/components/molecules/Table/index.d.ts +0 -0
  333. package/dist/components/molecules/Tabs/Tabs.d.ts +0 -0
  334. package/dist/components/molecules/Tabs/Tabs.style.d.ts +0 -0
  335. package/dist/components/molecules/Tabs/index.d.ts +0 -0
  336. package/dist/components/molecules/TextOnly/TextOnly.d.ts +0 -0
  337. package/dist/components/molecules/TextOnly/TextOnly.style.d.ts +0 -0
  338. package/dist/components/molecules/TextOnly/index.d.ts +0 -0
  339. package/dist/components/molecules/UpsellCard/OfferText.d.ts +0 -0
  340. package/dist/components/molecules/UpsellCard/UpsellCard.d.ts +0 -0
  341. package/dist/components/molecules/UpsellCard/UpsellCard.style.d.ts +3 -1
  342. package/dist/components/molecules/UpsellCard/index.d.ts +0 -0
  343. package/dist/components/molecules/UpsellCards/UpsellCards.d.ts +0 -0
  344. package/dist/components/molecules/UpsellCards/UpsellCards.style.d.ts +0 -0
  345. package/dist/components/molecules/UpsellCards/index.d.ts +0 -0
  346. package/dist/components/molecules/VideoWithControls/VideoWithControls.d.ts +0 -0
  347. package/dist/components/molecules/VideoWithControls/VideoWithControls.style.d.ts +0 -0
  348. package/dist/components/molecules/VideoWithControls/index.d.ts +0 -0
  349. package/dist/components/molecules/index.d.ts +1 -1
  350. package/dist/components/organisms/AnchorTabBar/AnchorTabBar.d.ts +0 -0
  351. package/dist/components/organisms/AnchorTabBar/AnchorTabBar.style.d.ts +0 -0
  352. package/dist/components/organisms/AnchorTabBar/index.d.ts +0 -0
  353. package/dist/components/organisms/FilterToggles/FilterToggles.d.ts +0 -0
  354. package/dist/components/organisms/FilterToggles/FilterToggles.style.d.ts +0 -0
  355. package/dist/components/organisms/FilterToggles/index.d.ts +0 -0
  356. package/dist/components/organisms/Footer/Footer.d.ts +0 -0
  357. package/dist/components/organisms/Footer/Footer.style.d.ts +0 -0
  358. package/dist/components/organisms/Footer/index.d.ts +0 -0
  359. package/dist/components/organisms/ModalWindow/ModalWindow.d.ts +0 -0
  360. package/dist/components/organisms/ModalWindow/ModalWindow.style.d.ts +0 -0
  361. package/dist/components/organisms/ModalWindow/index.d.ts +0 -0
  362. package/dist/components/organisms/Navigation/Navigation.d.ts +0 -0
  363. package/dist/components/organisms/Navigation/Navigation.style.d.ts +0 -0
  364. package/dist/components/organisms/Navigation/index.d.ts +0 -0
  365. package/dist/components/organisms/StickyBar/StickyBar.d.ts +0 -0
  366. package/dist/components/organisms/StickyBar/StickyBar.style.d.ts +0 -0
  367. package/dist/components/organisms/StickyBar/index.d.ts +0 -0
  368. package/dist/components/organisms/TitleWithCTA/TitleWithCTA.d.ts +0 -0
  369. package/dist/components/organisms/TitleWithCTA/TitleWithCTA.style.d.ts +0 -0
  370. package/dist/components/organisms/TitleWithCTA/index.d.ts +0 -0
  371. package/dist/components/organisms/UpsellSection/UpsellSection.d.ts +0 -0
  372. package/dist/components/organisms/UpsellSection/UpsellSection.style.d.ts +0 -0
  373. package/dist/components/organisms/UpsellSection/index.d.ts +0 -0
  374. package/dist/components/organisms/index.d.ts +0 -0
  375. package/dist/helpers/arrays.d.ts +0 -0
  376. package/dist/helpers/aspectRatio.d.ts +0 -0
  377. package/dist/helpers/defaultValues.d.ts +0 -0
  378. package/dist/helpers/devices.d.ts +0 -0
  379. package/dist/helpers/formatStrings.d.ts +0 -0
  380. package/dist/helpers/forms.d.ts +0 -0
  381. package/dist/helpers/generateDomElementId.d.ts +0 -0
  382. package/dist/helpers/htmlStrings.d.ts +0 -0
  383. package/dist/helpers/keyboards.d.ts +0 -0
  384. package/dist/helpers/theme.d.ts +0 -0
  385. package/dist/helpers/urls.d.ts +0 -0
  386. package/dist/index.d.ts +0 -0
  387. package/dist/index.js +0 -0
  388. package/dist/jest.setup.d.ts +0 -0
  389. package/dist/styles/GlobalStyles.d.ts +0 -0
  390. package/dist/styles/StorybookSupport/Colours/StorybookColourBox.d.ts +0 -0
  391. package/dist/styles/ThemeProvider.d.ts +0 -0
  392. package/dist/styles/themes.d.ts +0 -0
  393. package/dist/styles/viewports.d.ts +0 -0
  394. package/dist/styles/zIndexes.d.ts +0 -0
  395. package/dist/types/anchorBar.d.ts +0 -0
  396. package/dist/types/ariaAlternative.d.ts +34 -0
  397. package/dist/types/auxiliaryNav.d.ts +0 -0
  398. package/dist/types/buttonTypes.d.ts +0 -0
  399. package/dist/types/card.d.ts +0 -0
  400. package/dist/types/carousel.d.ts +0 -0
  401. package/dist/types/contactCard.d.ts +0 -0
  402. package/dist/types/creditListing.d.ts +0 -0
  403. package/dist/types/editorial.d.ts +0 -0
  404. package/dist/types/footer.d.ts +0 -0
  405. package/dist/types/formTypes.d.ts +12 -9
  406. package/dist/types/iconTypes.d.ts +0 -0
  407. package/dist/types/image.d.ts +0 -0
  408. package/dist/types/impactHeader.d.ts +0 -0
  409. package/dist/types/index.d.ts +0 -0
  410. package/dist/types/information.d.ts +0 -0
  411. package/dist/types/miniCard.d.ts +0 -0
  412. package/dist/types/modalWindow.d.ts +0 -0
  413. package/dist/types/navigation.d.ts +0 -0
  414. package/dist/types/passwordStrength.d.ts +0 -0
  415. package/dist/types/progress.d.ts +0 -0
  416. package/dist/types/promoWithTags.d.ts +0 -0
  417. package/dist/types/quote.d.ts +0 -0
  418. package/dist/types/signUpForm.d.ts +0 -0
  419. package/dist/types/tableTypes.d.ts +0 -0
  420. package/dist/types/tickbox.d.ts +0 -0
  421. package/dist/types/timer.d.ts +0 -0
  422. package/dist/types/toggleButtonTypes.d.ts +0 -0
  423. package/dist/types/types.d.ts +0 -0
  424. package/dist/types/typography.d.ts +0 -0
  425. package/dist/types/upsell.d.ts +16 -2
  426. package/dist/types/utility.d.ts +0 -0
  427. package/package.json +4 -3
  428. package/README.GIT +0 -278
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -36,13 +36,27 @@ export interface IUpsellCardProps {
36
36
  */
37
37
  offerTexts?: IOfferTextProps[];
38
38
  /**
39
- *
39
+ * Optional link for primary CTA
40
40
  */
41
41
  link?: EditorialLink;
42
42
  /**
43
- * Theme: Core, Stream, or Cinema
43
+ * Optional link for secondary CTA
44
+ */
45
+ secondaryLink?: EditorialLink;
46
+ /**
47
+ * If true, switch to stacked CTAs earlier than usual to avoid button text spanning
48
+ * two lines. Useful when this component is rendered within in a narrow parent
49
+ * such as as an item in the Upsell Section.
50
+ */
51
+ stackCtasEarly?: boolean;
52
+ /**
53
+ * Theme for primary CTA: Core, Stream, or Cinema
44
54
  */
45
55
  theme?: ThemeType;
56
+ /**
57
+ * Theme for secondary CTA: Core, Stream, or Cinema
58
+ */
59
+ secondaryTheme?: ThemeType;
46
60
  }
47
61
  export interface IUpsellCardsProps {
48
62
  /**
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royaloperahouse/chord",
3
- "version": "2.9.1",
3
+ "version": "2.10.0-a-development",
4
4
  "author": "Royal Opera House",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "storybook": "start-storybook -s ./external -p 6006",
24
24
  "build-storybook-dev": "build-storybook",
25
25
  "build-storybook": "rm -rf ./storybook-static; build-storybook -s ./src -o ./storybook-static; cp -r ./external/ ./storybook-static/",
26
- "deploy-storybook-dev": "chromatic --build-script-name build-storybook-dev",
26
+ "deploy-storybook-dev": "CHROMATIC_PROJECT_TOKEN=2b8c0fada9f2 chromatic --build-script-name build-storybook-dev",
27
27
  "deploy-storybook": "storybook-to-aws-s3 --bucket-path=chord.roh.org.uk --aws-profile=parent --existing-output-dir=storybook-static --s3-sync-options=--acl=public-read",
28
28
  "test-storybook": "tsdx test --json --passWithNoTests --outputFile=./test/jest-test-results.json",
29
29
  "publish-release": "make prepare-release-candidate; make publish-release",
@@ -123,5 +123,6 @@
123
123
  "resolutions": {
124
124
  "**/@typescript-eslint/eslint-plugin": "^4.1.1",
125
125
  "**/@typescript-eslint/parser": "^4.1.1"
126
- }
126
+ },
127
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
127
128
  }
package/README.GIT DELETED
@@ -1,278 +0,0 @@
1
- # Royal Opera House Chord - Front End Design System
2
-
3
- Welcome to The Royal Opera House Front End Design System, `@royaloperahouse/chord`
4
-
5
- This package is a library of UI components intended to be used in the ROH website.
6
-
7
- It uses React, TypeScript, TSDX and Storybook.
8
-
9
- The NPM packages are published at [https://www.npmjs.com/package/@royaloperahouse/chord](https://www.npmjs.com/package/@royaloperahouse/chord)
10
-
11
- The Storybook for the latest version of the library is hosted at [chord.roh.org.uk](chord.roh.org.uk)
12
-
13
-
14
- ## Prerequisites
15
- ---
16
-
17
- * Use a node version of 16 at the highest to run the storybook locally
18
-
19
- * Make sure the required package dependencies are installed using `yarn install`
20
-
21
- * If this is the first time you are working on Chord, make sure to run `yarn build` to build all the modules.
22
-
23
- * **To deploy the storybook publicly** you will need credentials for the **parent** 'Royal Opera House' AWS account in your `~/.aws/credentials` file.
24
- * The deploy script expects these to be called `[parent]`.
25
-
26
- * You can find these values at:
27
-
28
- *AWS 'Your Applications' page -> 'Royal Opera House' -> 'Developer Access' -> 'Command line or programmatic access'*
29
-
30
- * **To deploy a preview** for demo / QA you will need the `CHROMATIC_PROJECT_TOKEN` -- find this in 1Password
31
-
32
-
33
- * **To publish the NPM package** you will need the ROH `NPM_TOKEN` -- find this in 1Password
34
-
35
-
36
- ## Versioning
37
- ---
38
-
39
- We use [Semantic Versioning](https://semver.org/) for Chord.
40
-
41
- Given a version number MAJOR.MINOR.PATCH, increment the:
42
-
43
- * MAJOR version when you make incompatible library changes
44
- * MINOR version when you add functionality in a backwards compatible manner
45
- * PATCH version when you make backwards compatible bug fixes
46
-
47
- When you create a new release always update the `CHANGELOG` and `package.json`
48
-
49
- Increment your version from the latest stable version on `main`
50
-
51
-
52
- ## Deploying the Storybook
53
- ---
54
-
55
- ### **1. To build and deploy locally**
56
-
57
- You can quickly build and serve the contents of `/storybook-static` from your local machine, for development and manual testing. To do this run:
58
-
59
- ```bash
60
- yarn storybook
61
- ```
62
-
63
- By default the storybook will be accessible at
64
- [http://localhost:6006/](http://localhost:6006/)
65
-
66
- The server will hot-reload on most changes.
67
-
68
- ### **2. To deploy a preview version remotely**
69
-
70
- You can deploy a release candidate, or work-in-progress to [Chromatic](https://www.chromatic.com/) for showcase or QA.
71
-
72
- **NOTE:** you will need the `CHROMATIC_PROJECT_TOKEN` as described in *Prerequisites* above.
73
-
74
- Either set the token as a shell variable or use a `.env` file in the chord root directory containing the token, as so:
75
-
76
- ```
77
- CHROMATIC_PROJECT_TOKEN=tokengoeshere
78
- ```
79
-
80
- Run:
81
-
82
- ```
83
- yarn deploy-storybook-dev
84
- ```
85
-
86
- to build and deploy the storybook from your repo to Chromatic.
87
-
88
- You will find the address of your deployed storybook in the console output, looking something like this:
89
-
90
- `→ View your Storybook at https://randomHexString-randomAlphabeticalString.chromatic.com`
91
-
92
- ### **3. To deploy a release version**
93
-
94
- You can deploy the contents of `./storybook-static` to S3 as a static site, which is permanently accessible at [chord.roh.org.uk](chord.roh.org.uk)
95
-
96
- **NOTE:** To do this you will need the correct `AWS` credentials set up, as described in *Prerequisites* above.
97
-
98
- First build the storybook using:
99
-
100
- ```
101
- yarn build-storybook
102
- ```
103
-
104
- then run:
105
-
106
- ```bash
107
- yarn deploy-storybook
108
- ```
109
-
110
- > **IMPORTANT:** This URL is intended to showcase the latest stable version of Chord, it should be kept up to date with the main branch and should **only** be used for release versions. If you want to deploy a development version follow the steps above under *To deploy a preview version remotely*.
111
-
112
-
113
- ## Releasing a New Package Version
114
- ---
115
-
116
- This is the procedure for releasing a new Chord NPM package.
117
-
118
- There are two types of package:
119
-
120
- A **snapshot** can be published to use a development version of the Chord library in our frontend staging environments, to perform integrated, manual testing.
121
-
122
- A **stable** package is published for use in production.
123
-
124
- **NOTE:** You will need the `NPM_TOKEN`, as described in 'Prerequisites' above.
125
-
126
- ### **1. To release a snapshot version**
127
-
128
- > **IMPORTANT:** Make sure you always publish your **snapshots** from `development` after merging in your feature branch.
129
-
130
- For snapshots, `RELEASE_VERSION` should be the same as the latest **stable** version of the Chord Library, as found in `main`, followed by an **unused** lowercase letter.
131
-
132
- For example, if the latest stable release was 1.42.0, and the last snapshot published to NPM was 1.42.0-w, you would use RELEASE_VERSION `1.42.0-x`
133
-
134
- To publish a snapshot use:
135
-
136
- ```bash
137
- NPM_ROH_TOKEN={NPM_TOKEN} RELEASE_VERSION={RELEASE_VERSION} yarn publish-snapshot
138
- ```
139
-
140
- The version published to NPM will be named, e.g. `1.42.0-x-development`, use this to install the snapshot package in the frontend repos.
141
-
142
- ### **2. To release a stable version**
143
-
144
- > **IMPORTANT:** Make sure you always publish your **stable** packages from `main` after merging in your feature branch.
145
-
146
- For stable releases, increment your version from the latest **stable** version found on `main`, following the rules described in *Versioning* above, and use this as `RELEASE_VERSION`. (Make sure it matches the version in your `package.json` and `CHANGELOG.md`!)
147
-
148
- To publish a stable package use:
149
-
150
- ```bash
151
- NPM_ROH_TOKEN={NPM_TOKEN} RELEASE_VERSION={RELEASE_VERSION} yarn publish-release
152
- ```
153
-
154
-
155
- ## Using the Package
156
- ---
157
-
158
- The package is deployed to NPM, and can be installed using yarn or npm:
159
-
160
- ```bash
161
- npm i --save @royaloperahouse/chord
162
- ```
163
- ```bash
164
- yarn add @royaloperahouse/chord
165
- ```
166
-
167
-
168
- ## Testing
169
- ---
170
-
171
- To **Lint** the package use:
172
-
173
- ```bash
174
- yarn lint
175
- # Use the --fix option to perform automatic fixes
176
- ```
177
-
178
- To run the **unit tests** (using Jest) use:
179
-
180
- ```bash
181
- yarn test
182
-
183
- # Use the -u option to update snapshots if needed
184
- # Run `yarn test:watch` to re-run tests on changes
185
- ```
186
-
187
- To **run and and store the unit tests** for display in storybook use:
188
-
189
- ```bash
190
- yarn test-storybook
191
- # Use the -u option to update snapshots if needed
192
- ```
193
-
194
-
195
- ## Development Process
196
- ---
197
-
198
- ### **1. Branching Model**
199
- * The Chord project source can be found at [https://bitbucket.org/rohorguk/harmonic-library](https://bitbucket.org/rohorguk/harmonic-library) in the `chord` directory
200
- * The Chord **development** branch is currently `development`
201
- * The Chord **main** branch is currently `main`
202
- * All work should be done on a correctly named **feature branch** of the format: `issueType/ticketNumber-short-description-of-feature`, e.g. `feature/RD-1234-update-chord-documentation`
203
- * Always create your feature branch FROM, and submit pull requests TO, the **main** branch
204
- * For **QA / UAT** of a Chord component in isolation: following review you should deploy a preview version to Chromatic straight from your **feature branch** _without_ merging to development
205
- * For releasing an **NPM snapshot**: merge your feature branch into the **development** branch and publish the NPM snapshot from there
206
-
207
- ### **2. Detailed Workflow**
208
-
209
- #### **Before review:**
210
-
211
- * Git pull the latest version of `main`
212
- * Checkout a new, correctly-named feature branch from `main`
213
- * Do your work on this feature branch
214
- * Run: `yarn lint`
215
- * Run: `yarn test`
216
- * Commit your changes
217
- * Create a pull request from your feature branch to `main`
218
- * Add the appropriate reviewers
219
-
220
- #### **Before QA / UAT:**
221
-
222
- After your PR is approved, you have two options:
223
-
224
- **i.** For QA of a component in isolation:
225
-
226
- * Follow the steps above in *Deploying the Storybook -> 2. Deploying a preview version remotely*
227
- * Share the generated Chromatic URL with the appropriate people for QA / UAT
228
-
229
- **ii.** For integrated testing of a component in the frontend staging environments:
230
-
231
- * Check out the `development` branch
232
- * Merge your work in to `development`
233
- * Follow the steps above under *Publishing a New Package Version -> 1. To release a snapshot version*
234
- * Git push the updated `development` branch to remote
235
- * Finally, in the frontend repo:
236
-
237
- 1. Update the `package.json` to reference the new snapshot version
238
- 2. Run: `yarn install`
239
- 3. Deploy the frontend to a staging environment
240
-
241
- #### **When ready for production:**
242
-
243
- * Return to your chord **feature branch**
244
- * Update the chord version in `package.json`, incrementing from the last **stable** release, found in `main`, and following the rules described in the *Versioning* section
245
- * Update `CHANGELOG.md`, adding the new version number and a short description of your changes
246
- * Run: `yarn lint`
247
- * Run: `yarn test`
248
- * Run: `yarn test-storybook -u`
249
- * Run: `yarn build-storybook`
250
- * Git commit, push, and update your PR for final approval
251
- * Merge your approved PR to `main`
252
- * Follow the steps in *Publishing a New Package Version -> 2. To release a stable version* to publish the NPM package
253
- * Finally, follow the steps in *Deploying The Storybook -> 3. To deploy a release version*, to update the public Chord Storybook page
254
-
255
- Once you have successfully published a new release version, you can open a ticket to update to this version in any of the frontend repos.
256
-
257
-
258
- ## Notes
259
- ---
260
- ### The `storybook-static` folder
261
-
262
- This folder contains all the HTML / JS required to deploy the Storybook as a static site. It's autogenerated whenever the Storybook is built and therefore will show up a lot of merge conflicts when you merge other branches into your feature branch. It is best to leave generating the storybook until the later part of your workflow, but in case you run into conflicts earlier, it's ok to just delete the folder and regenerate using:
263
-
264
- ```bash
265
- yarn build-storybook
266
- ```
267
-
268
- For the same reason changes to this folder will cause a lot of big diffs, when looking at a PR, but can mostly be skimmed over unless something looks unusual.
269
-
270
- ---
271
- ### Examples
272
-
273
- There is an example implementation in the example folder. Alternatively there are also integration examples in storybook. Make sure to keep these updated so as to showcase the current components available.
274
-
275
- ---
276
- ### Bundle analysis
277
-
278
- Calculate the real cost of your library using [size-limit](https://github.com/ai/size-limit) with `yarn size` and visualize it with `yarn analyze`.