@royaloperahouse/chord 2.3.3 → 2.4.0-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 (34) hide show
  1. package/CHANGELOG.md +214 -7
  2. package/README.md +250 -40
  3. package/dist/chord.cjs.development.js +732 -491
  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 +732 -493
  8. package/dist/chord.esm.js.map +1 -1
  9. package/dist/components/atoms/Grid/GridItemLegacy.d.ts +8 -0
  10. package/dist/components/atoms/Grid/index.d.ts +2 -1
  11. package/dist/components/atoms/Icons/Icons.d.ts +1 -1
  12. package/dist/components/atoms/Icons/SvgIcons/Descriptors/Wheelchair.svg.d.ts +1 -1
  13. package/dist/components/atoms/Icons/SvgIcons/index.d.ts +1 -1
  14. package/dist/components/atoms/Typography/Typography.d.ts +1 -1
  15. package/dist/components/atoms/index.d.ts +2 -2
  16. package/dist/components/index.d.ts +3 -3
  17. package/dist/components/molecules/PageHeading/index.d.ts +1 -1
  18. package/dist/components/molecules/PeopleListing/CreditListing/CreditListing.style.d.ts +1 -0
  19. package/dist/components/molecules/PromoWithTitle/PromoChild.d.ts +2 -2
  20. package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +1 -1
  21. package/dist/components/molecules/Select/Select.style.d.ts +1 -1
  22. package/dist/components/molecules/Table/Table.style.d.ts +1 -0
  23. package/dist/components/molecules/VideoWithControls/index.d.ts +2 -0
  24. package/dist/components/molecules/index.d.ts +3 -2
  25. package/dist/helpers/generateDomElementId.d.ts +8 -0
  26. package/dist/index.d.ts +3 -2
  27. package/dist/types/editorial.d.ts +18 -2
  28. package/dist/types/formTypes.d.ts +12 -9
  29. package/dist/types/iconTypes.d.ts +5 -0
  30. package/dist/types/impactHeader.d.ts +13 -0
  31. package/dist/types/tableTypes.d.ts +4 -0
  32. package/dist/types/types.d.ts +10 -1
  33. package/package.json +1 -1
  34. package/README.GIT +0 -277
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [2.4.0]
2
+ - Added optional semantic level props to Page Heading, Alt Header, Promo With Title, and Section Title
3
+ - Added optional character limit prop to Page Heading
4
+
1
5
  ## [2.3.3]
2
6
  - Reintroduced legacy behaviour of <TextField /> via opt-in component
3
7
 
@@ -63,121 +67,172 @@
63
67
  - Read More Component
64
68
 
65
69
  ## [2.2.0]
70
+
66
71
  - Fix Grid bug introduced in 2.1.9
67
72
 
68
73
  ## [2.1.10]
74
+
69
75
  - Add missing export for `CreditListing`
70
76
 
71
77
  ## [2.1.9]
78
+
72
79
  - Add Credit Listing
73
80
 
74
81
  ## [2.1.8]
82
+
75
83
  - Add Branding Link to Compact Header
76
84
 
77
85
  ## [2.1.7]
86
+
78
87
  - Footer updates
79
88
 
80
89
  ## [2.1.6]
90
+
81
91
  - Add X logo
82
92
 
83
93
  ## [2.1.5]
84
- - Revert search error caused by previous version
94
+
95
+ - Patch search bar hidden fix
85
96
 
86
97
  ## [2.1.4]
98
+
87
99
  - Fix screenreader accessibility for accordions
88
100
 
89
101
  ## [2.1.3]
102
+
90
103
  - Navigation: make links links
91
104
  - Clear testing errors
92
105
 
93
106
  ## [2.1.2]
107
+
94
108
  - TextField: include optional width param
95
109
 
96
110
  ## [2.1.1]
111
+
97
112
  - AnchorTabBar: change grid, to move tabs to the center
98
113
 
99
114
  ## [2.1.0]
115
+
100
116
  - Convert Pagination to href instead of React Router Link
101
117
 
102
118
  ## [2.0.0]
119
+
103
120
  - Remove swiper dependency
121
+
104
122
  ## [1.28.0]
123
+
105
124
  - Add new RadioGroup component
106
125
  - Progress: add the steps
107
126
  - Compact header: hide CTA if the prop is undefined
108
127
  - Compact header: change highlight color for Stream variant
109
128
 
110
129
  ## [1.27.1]
130
+
111
131
  - Fixed failing test on timer component
112
132
 
113
133
  ## [1.27.0]
134
+
114
135
  - ContentSummary component can now be configured to be fully clickable
115
136
 
116
137
  ## [1.26.0]
138
+
117
139
  - MiniCard and MinimalCarousel: add new components
118
140
 
119
141
  ## [1.25.2]
142
+
120
143
  - Now clicking on the gray overlay closes the search bar
121
144
 
122
145
  ## [1.25.1]
146
+
123
147
  - Stepper: Properly export component
124
148
 
125
149
  ## [1.25.0]
150
+
126
151
  - Stepper: Add Stepper component
127
152
 
128
153
  ## [1.24.2]
154
+
129
155
  - Increase Upsell Card Flag character limit to 30
130
156
 
131
157
  ## [1.24.1]
158
+
132
159
  - Include link field to Upsell Cards
133
160
 
134
161
  ## [1.24.0]
162
+
135
163
  - Implement Upsell Section & Upsell Cards
136
164
 
165
+ ## [1.23.2-b]
166
+
167
+ - Add Stepper component
168
+ - Fix solo negative sign NaN bug
169
+ -
170
+
137
171
  ## [1.23.2]
172
+
138
173
  - Fix BrandingStyle not showing bug
139
174
 
140
175
  ## [1.23.1]
176
+
141
177
  - Fix enum on BrandingStyle
142
178
 
143
179
  ## [1.23.0]
180
+
144
181
  - Re-enabled compact header on iOS
145
182
 
146
183
  ## [1.22.0]
184
+
147
185
  - TextArea: Added new TextArea component
148
186
  - TickBox: Added disabled and error states
149
187
 
150
188
  ## [1.21.1]
151
- - Made select state reset behaviour opt-in
189
+
190
+ - Compact PageHeading: Refactored to support iOS devices
152
191
 
153
192
  ## [1.21.0]
193
+
154
194
  - TextLogo: add new component
155
195
  - Compact PageHeading: swap logo with TextLogo to fix iOS issues
156
196
 
197
+ ## [1.20.2-a]
198
+
199
+ - Made select state reset behaviour opt-in
200
+
157
201
  ## [1.20.2]
202
+
158
203
  - Card: change cursor to default for cards without buttons
159
204
  - HighlightsCarousel: hide button in case there are no text for them
160
205
 
161
206
  ## [1.20.1]
207
+
162
208
  - Reset the select component's selected value to the first option if options change
163
209
 
164
210
  ## [1.20.0]
211
+
165
212
  - Tickbox: Add black-on-white option
213
+
166
214
  ## [1.19.0]
215
+
167
216
  - Add timer to navigation basket
217
+
168
218
  ## [1.18.3]
219
+
169
220
  - iOS devices show image instead of video for Compact PageHeading
170
221
 
171
222
  ## [1.18.1-2]
223
+
172
224
  - Fix iOS exception on VideoControls
173
225
 
174
226
  ## [1.18.0]
227
+
175
228
  - Add Compact PageHeading component
176
229
 
177
230
  ## [1.17.0]
231
+
178
232
  - Add Page Heading Panel variant
179
233
 
180
234
  ## [1.16.0]
235
+
181
236
  - Implemented a new Timer component
182
237
  - Progress: extended the component, added it to Storybook
183
238
  - PromoWithTags: added Timer component
@@ -186,290 +241,423 @@
186
241
  - Card: added label
187
242
 
188
243
  ## [1.15.1]
244
+
189
245
  - Change to pagination component to align page numbers with URL numbers.
190
246
 
191
247
  ## [1.15.0]
192
- - Implemented a new Select component
248
+
249
+ - Add Compact PageHeading component
193
250
 
194
251
  ## [1.14.0]
252
+
195
253
  - Added standfirst functionality to Accordion/ Accordions component and theme for Schools Platform
196
254
 
197
255
  ## [1.13.2]
256
+
198
257
  - Add styled-components to dev-dependencies, to fix issues with tests that appear after adding the new styled components
199
258
 
200
259
  ## [1.13.1]
260
+
201
261
  - AnchorTabBar: fix the issues on mobile devices that are related to scroll/stickiness
202
262
 
203
263
  ## [1.13.0]
264
+
204
265
  - Implemented a new TextField component
205
266
 
206
267
  ## [1.12.4]
268
+
207
269
  - Search: change copy
208
270
 
209
271
  ## [1.12.0]
272
+
210
273
  - Search: Extend ContentSummary and SearchBar components to support new search results
211
274
 
275
+ ## [1.11.0-a]
276
+
277
+ - Pagination: add new component
278
+
212
279
  ## [1.11.0]
280
+
213
281
  - Carousels: Rewrite logic that cuts description, to support older browsers
214
282
 
283
+ ## [1.10.0-a]
284
+
285
+ - ContentSummary: make image clickable
286
+
215
287
  ## [1.10.0]
288
+
216
289
  - PageHeadingImpact: Replace CSS background-image with HTML image element
217
290
 
218
291
  ## [1.9.0]
292
+
219
293
  - Card: Add a new prop for the hover line color
220
294
 
295
+ ## [1.9.0-c]
296
+
297
+ - ContentSummary: make image clickable
298
+
299
+ ## [1.9.0-b]
300
+
301
+ - ContentSummary: change image size
302
+ - SearchBar: Export component
303
+
304
+ ## [1.9.0-a]
305
+
306
+ - ContentSummary: change image props
307
+
308
+ ## [1.9.0]
309
+
310
+ - Card: Add a new prop for the hover line color
311
+
312
+ ## [1.8.1-h]
313
+
314
+ - ContentSummary: add exports
315
+
316
+ ## [1.8.1-g]
317
+
318
+ - ContentSummary: refactor
319
+
320
+ ## [1.8.1-f]
321
+
322
+ - ContentSummary: update conditional rendering
323
+
324
+ ## [1.8.1-c]
325
+
326
+ - ContentSummary: update for Search results
327
+ - ContentSummarySection: remove
328
+
329
+ ## [1.8.1-b]
330
+
331
+ - Card: add new prop for the line color on hover
332
+
221
333
  ## [1.8.0]
334
+
222
335
  - SearchBar: Disable
223
336
 
224
337
  ## [1.7.2]
338
+
225
339
  - Add imageAltText to Card component
226
340
 
227
341
  ## [1.7.0]
342
+
228
343
  - Add new ContentSummary component
229
344
  - Add new ContentSummarySection component
230
345
  - Add Content Summary Section and individual Content Summaries
231
346
 
232
347
  ## [1.6.3]
348
+
233
349
  - Add exports for zIndexes
234
350
 
235
351
  ## [1.6.2]
236
- - ImpactHeader: add alt text for sponsors logo custom image
352
+
353
+ - ImpactHeader: add alt text for sponsors logo custom image
237
354
 
238
355
  ## [1.6.1]
356
+
239
357
  - PageHeadingHighlight component: update exports
240
358
 
241
359
  ## [1.6.0]
360
+
242
361
  - Add new PageHeadingHighlight component
243
362
 
244
363
  ## [1.5.0]
364
+
245
365
  - PageHeading: decrease header height when title is not available
246
366
 
247
367
  ## [1.4.0]
368
+
248
369
  - ImpactHeader: make it possible to pass custom image as a sponsor logo
249
370
 
250
371
  ## [1.3.1]
372
+
251
373
  - Enable reduced size textLinks on PromoWithTags/asCard
252
374
 
253
375
  ## [1.3.0]
376
+
254
377
  - Add Static Actvivity Cards as PromoWithTags variant
255
378
 
256
379
  ## [1.2.0]
257
- - Card: buttons do not change position on mobiles;
380
+
381
+ - Card: buttons do not change position on mobiles;
258
382
 
259
383
  ## [1.1.0]
384
+
260
385
  - TitleWithCTA: fix cases with a long title
261
386
  - Card: add pointer cursor to container
262
387
 
263
388
  ## [0.9.0]
389
+
264
390
  - PromoWithTags: Add margin under ExtraContent iframe
265
391
 
266
392
  ## [0.8.0]
393
+
267
394
  - Card component: buttons are aligned by height
268
395
  - Highlight carousel: added possibility to display two CTAs
269
396
 
270
397
  ## [0.7.50]
398
+
271
399
  - Add Static Actvivity Cards
272
400
 
273
401
  ## [0.7.49]
402
+
274
403
  - Change button behaviour on stream and DED pages
275
404
 
276
405
  ## [0.7.48]
406
+
277
407
  - Add background themes to Information component
278
408
 
279
409
  ## [0.7.47]
410
+
280
411
  - PromoWithTags: Swap Content & ExtraContent divs to correct keyboard tab order
281
412
 
282
413
  ## [0.7.46]
414
+
283
415
  - Information: Add new Information component
284
416
 
285
417
  ## [0.7.45]
418
+
286
419
  - PromoWithTags: extend the component to handle extra content
287
420
 
288
421
  ## [0.7.441]
422
+
289
423
  - PageHeading: increase max line height for mobile devices
290
424
 
291
425
  ## [0.7.44]
426
+
292
427
  - PromoWithTags, PromoWithTitle: change grid for text content on tablet view
293
428
 
294
429
  ## [0.7.43]
430
+
295
431
  - AnchorTabBar: fix the typo in the name of the component
296
432
  - PromoWithTags: increase spacing between tags and body text
297
433
  - PromoWithTags: change prop name for subtags
298
434
 
299
435
  ## [0.7.42]
436
+
300
437
  - Livechat: Add more branded fields
301
438
 
302
439
  ## [0.7.41]
440
+
303
441
  - PromoWithTags: convert the checks value to boolean
304
442
 
305
443
  ## [0.7.40]
444
+
306
445
  - Add new PromoWithTags component
307
446
  - StickyBar: remove bottom border for mobile viewport
308
447
 
309
448
  ## [0.7.39]
449
+
310
450
  - Livechat: restyling
311
451
 
312
452
  ## [0.7.38]
453
+
313
454
  - PromoWithTitle: add styles for headings
314
455
 
315
456
  ## [0.7.37]
457
+
316
458
  - Tabs: Fix nav item spacing for large desktop displays
317
459
 
318
460
  ## [0.7.36]
319
- - Update PromowithTitle component with tags and change highlight color for text and title in Stream Header
461
+
462
+ - Update PromowithTitle component with tags and change highlight color for text and title in Stream Header
320
463
 
321
464
  ## [0.7.35]
465
+
322
466
  - Add new StickyBar component
323
467
 
324
468
  ## [0.7.34]
469
+
325
470
  - Tabs: Left-align last dropdown menu in the navigation bar
326
471
 
327
472
  ## [0.7.33]
473
+
328
474
  - Livechat: add Talkdesk Livechat injection component
329
475
 
330
476
  ## [0.7.32]
477
+
331
478
  - Carousels: extend character limit for description
332
479
 
333
480
  ## [0.7.31]
481
+
334
482
  - Card: add image alt text as a prop
335
483
 
336
484
  ## [0.7.30]
485
+
337
486
  - Navigation: add possibility to pass basket link as prop
338
487
 
339
488
  ## [0.7.29]
489
+
340
490
  - TextOnly: change spacing for the headings
341
491
 
342
492
  ## [0.7.28]
493
+
343
494
  - Order PeopleListing component by presence of headshot
344
495
  - Show four listings per row on large desktop
345
496
 
346
497
  ## [0.7.27]
498
+
347
499
  - Extend ContactCard capabilities
348
500
  - Extend Tertiary Button text length
349
501
 
350
502
  ## [0.7.26]
503
+
351
504
  - Add storybook-deployer package
352
505
  - Update README with instructions for deployment
353
506
 
354
507
  ## [0.7.25]
508
+
355
509
  - PeopleListing: add headshot
356
510
 
357
511
  ## [0.7.24]
512
+
358
513
  - Add new ContactCard component
359
514
 
360
515
  ## [0.7.23]
516
+
361
517
  - Accordion: make accordion keyboard-navigable
362
518
 
363
519
  ## [0.7.22]
520
+
364
521
  - Add new AnnouncementBanner component
365
522
 
366
523
  ## [0.7.21]
524
+
367
525
  - PageHeading: add a possibility to handle bold and italic in text
368
526
  - Header-2: fix font size and line-height
369
527
 
370
528
  ## [0.7.20]
529
+
371
530
  - TextOnly: fix spacing between the elements
372
531
 
373
532
  ## [0.7.19]
533
+
374
534
  - TextOnly: extend styles for embedded headers and links
375
535
 
376
536
  ## [0.7.18]
537
+
377
538
  - Quote: fix qoute signs
378
539
 
379
540
  ## [0.7.17]
541
+
380
542
  - Add new Quote component
381
543
 
382
544
  ## [0.7.16]
545
+
383
546
  - Card: fix title font size for tablet
384
547
 
385
548
  ## [0.7.15]
549
+
386
550
  - Tickbox: fix keyboard key value
387
551
 
388
552
  ## [0.7.14]
553
+
389
554
  - Fix keyboard accessibility for Tickbox
390
555
 
391
556
  ## [0.7.13]
557
+
392
558
  - Fix Carousel Card typography
393
559
  - Fix Impact Header Grid
394
560
  - Fix Footer Grid
395
561
  - Add additional font sizes for tablet
396
562
 
397
563
  ## [0.7.12]
564
+
398
565
  - Tickbox: fixed issue with component's state updating
399
566
 
400
567
  ## [0.7.11]
568
+
401
569
  - PromoWithTitle: align image vertically
402
570
 
403
571
  ## [0.7.10]
572
+
404
573
  - Theme: increases font size
405
574
 
406
575
  ## [0.7.9]
576
+
407
577
  - Impact: fix sponsor click and font size on mobile
408
578
  - Carousel: add buttons to tablet
409
579
  - Navigation: position fixed when menu is open on mobile
410
580
  - Highlight Carousel: add html text to short description
411
581
 
412
582
  ## [0.7.8]
583
+
413
584
  - TitleWithCTA: add message prop
414
585
 
415
586
  ## [0.7.7]
587
+
416
588
  - Tabs: close dropdown when it is clicked twice
417
589
 
418
590
  ## [0.7.6]
591
+
419
592
  - Add new initOpen prop to Accordion component
420
593
 
421
594
  ## [0.7.5]
595
+
422
596
  - Fix Styling in PeopleListing on Desktop
423
597
 
424
598
  ## [0.7.4]
599
+
425
600
  - Fix git README
426
601
 
427
602
  ## [0.7.3]
603
+
428
604
  - Fix Styling in PeopleListing on Mobile
429
605
 
430
606
  ## [0.7.2]
607
+
431
608
  - Add align center image in Editorial component
432
609
  - Export ControlledDropdown component
433
610
 
434
611
  ## [0.7.1]
612
+
435
613
  - Fix TitleWithCTA bug (visualization in two lines) in tablet
436
614
  - Export TextLink component
437
615
  - PeopleListing: custom person separator
438
616
 
439
617
  ## [0.7.0]
618
+
440
619
  - PeopleListing: replace people prop by roles prop
441
620
 
442
621
  ## [0.6.0]
622
+
443
623
  - Refactor the AnchorTabBar to separate page title and buttons
444
624
  - Add new TitleWithCTA component
445
625
  - Export Tab component
446
626
 
447
627
  ## [0.5.11]
628
+
448
629
  - Add Tickbox component and TickboxMode enum
449
630
  - PageHeading: fix typography
450
631
 
451
632
  ## [0.5.10]
633
+
452
634
  - Highlights Carousel: tablet layout improvements
453
635
  - Navigation improvements for small desktops.
454
636
  - Hide Rotator Buttons in the Hihghlight Carousel when there is only one event
455
637
 
456
638
  ## [0.5.9]
639
+
457
640
  - Reduce tablet grid margin from 50px to 32px.
458
641
  - Add alternative to aspect-ratio css attribute.
459
642
 
460
643
  ## [0.5.8]
644
+
461
645
  - PromoWithTitle links style
462
646
 
463
647
  ## [0.5.7]
648
+
464
649
  - Added Star icon to Iconography
465
650
 
466
651
  ## [0.5.6]
652
+
467
653
  - Added Favourite and Favourite Full icons to Iconography
468
654
 
469
655
  ## [0.5.5]
656
+
470
657
  - Export ImageAspectRatioWrapper component and AspectRatio enum
471
658
 
472
659
  ## [0.5.4]
660
+
473
661
  - Fix Card typography
474
662
  - Fix Carousel title typography
475
663
  - Fix Image Carousel size
@@ -478,51 +666,63 @@
478
666
  - Fix Anchor bar internal navigation
479
667
 
480
668
  ## [0.5.3]
669
+
481
670
  - Handle keyboard events using key attribute
482
671
 
483
672
  ## [0.5.2]
673
+
484
674
  - Highlights Carousel: info change swiping slide
485
675
  - Fix RotatorButtons a11y
486
676
 
487
677
  ## [0.5.1]
678
+
488
679
  - Highlights Carousel: fix box-sizing
489
680
 
490
681
  ## [0.5.0]
682
+
491
683
  - Highlights Carousel: new slides props (breaking change)
492
684
  - Fix in PageHeadingImpact image
493
685
 
494
686
  ## [0.4.4]
687
+
495
688
  - AnchorTabBar a11y: added tabIndex to links
496
689
 
497
690
  ## [0.4.3]
691
+
498
692
  - Prevent focus when navigation tab is clicked
499
693
 
500
694
  ## [0.4.2]
695
+
501
696
  - Highlights Carousel Components
502
697
  - Keyboard navigation fix for Navigation Component
503
698
 
504
699
  ## [0.4.1]
700
+
505
701
  - Swiper included as dependency
506
702
  - Fix for italics in Editorial, Card and PromoWithTitle components
507
703
  - Extra Props for AnchorTabBar
508
704
 
509
705
  ## [0.4.0]
706
+
510
707
  - Navigation Logo breaking change
511
708
  - Colors enum exported as in types
512
709
 
513
710
  ## [0.3.9]
711
+
514
712
  - Added Carousel Component
515
713
  - Dropdowns overlap fix
516
714
  - z-index fixes (for cards overlapping Anchor Tabs)
517
715
  - Navigation menu alignment fix
518
716
 
519
717
  ## [0.3.8]
718
+
520
719
  - Add possibility to configure GridItem for TextOnly component
521
720
  - Rich Text Editor Styling fix
522
721
  - Tweaks to Button layout for components
523
722
  - Anchor navigation arrows fix
524
723
 
525
724
  ## [0.3.7]
725
+
526
726
  - Typography change for Subtitle 2
527
727
  - AltHeader, BodyText, Header, Overline and Subtitle Components
528
728
  - REMOVED Heading Component - replaced by Header Component
@@ -530,22 +730,26 @@
530
730
  - made 'devices' public
531
731
 
532
732
  ## [0.3.6]
733
+
533
734
  - PageHeading Component
534
735
  - SectionTitle multiline fix
535
736
 
536
737
  ## [0.3.5]
738
+
537
739
  - Fix for Searchbox border on iOS
538
740
  - Fix for Accordion - Mobile Styling Issue
539
741
  - Fix for Card Component - Styling Issues
540
742
  - Change in Search layout
541
743
 
542
744
  ## [0.3.4]
745
+
543
746
  - Added Rotator Buttons
544
747
  - General Gotham SSm A & B font setup fixes
545
748
  - Fix for Footer font and size in mobile view
546
749
  - Subtitles 2 typography changes
547
750
 
548
751
  ## [0.3.3]
752
+
549
753
  - Added AnchorTabBar Component
550
754
  - Added Accordion Component
551
755
  - Added Card Component
@@ -553,10 +757,13 @@
553
757
  - Fix for Navigation Search font and mobile view
554
758
 
555
759
  ## [0.3.0]
760
+
556
761
  - Design system project renamed and moved to chord
557
762
 
558
763
  ## [0.2.0]
559
- - public NPM Library
764
+
765
+ - public NPM Library
560
766
 
561
767
  ## [0.1.0]
768
+
562
769
  - Initial version