@royaloperahouse/chord 2.1.5-e-chord-development → 2.1.6-chord-releases
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.
- package/CHANGELOG.md +4 -45
- package/dist/chord.cjs.development.js +6 -16
- package/dist/chord.cjs.development.js.map +1 -1
- package/dist/chord.cjs.production.min.js +1 -1
- package/dist/chord.cjs.production.min.js.map +1 -1
- package/dist/chord.esm.js +6 -16
- package/dist/chord.esm.js.map +1 -1
- package/dist/components/molecules/PageHeading/Compact/components/CompactHeaderBranding.d.ts +0 -1
- package/dist/components/molecules/PageHeading/index.d.ts +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/types/formTypes.d.ts +9 -12
- package/dist/types/impactHeader.d.ts +2 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
## [2.1.5]
|
|
2
|
-
-
|
|
2
|
+
- Fix screenreader accessibility for accordions
|
|
3
3
|
|
|
4
4
|
## [2.1.4]
|
|
5
5
|
- Fix screenreader accessibility for accordions
|
|
@@ -52,10 +52,6 @@
|
|
|
52
52
|
## [1.24.0]
|
|
53
53
|
- Implement Upsell Section & Upsell Cards
|
|
54
54
|
|
|
55
|
-
## [1.23.2-b]
|
|
56
|
-
- Add Stepper component
|
|
57
|
-
- Fix solo negative sign NaN bug
|
|
58
|
-
-
|
|
59
55
|
## [1.23.2]
|
|
60
56
|
- Fix BrandingStyle not showing bug
|
|
61
57
|
|
|
@@ -70,15 +66,12 @@
|
|
|
70
66
|
- TickBox: Added disabled and error states
|
|
71
67
|
|
|
72
68
|
## [1.21.1]
|
|
73
|
-
-
|
|
69
|
+
- Made select state reset behaviour opt-in
|
|
74
70
|
|
|
75
71
|
## [1.21.0]
|
|
76
72
|
- TextLogo: add new component
|
|
77
73
|
- Compact PageHeading: swap logo with TextLogo to fix iOS issues
|
|
78
74
|
|
|
79
|
-
## [1.20.2-a]
|
|
80
|
-
- Made select state reset behaviour opt-in
|
|
81
|
-
|
|
82
75
|
## [1.20.2]
|
|
83
76
|
- Card: change cursor to default for cards without buttons
|
|
84
77
|
- HighlightsCarousel: hide button in case there are no text for them
|
|
@@ -114,7 +107,7 @@
|
|
|
114
107
|
- Change to pagination component to align page numbers with URL numbers.
|
|
115
108
|
|
|
116
109
|
## [1.15.0]
|
|
117
|
-
-
|
|
110
|
+
- Implemented a new Select component
|
|
118
111
|
|
|
119
112
|
## [1.14.0]
|
|
120
113
|
- Added standfirst functionality to Accordion/ Accordions component and theme for Schools Platform
|
|
@@ -134,55 +127,21 @@
|
|
|
134
127
|
## [1.12.0]
|
|
135
128
|
- Search: Extend ContentSummary and SearchBar components to support new search results
|
|
136
129
|
|
|
137
|
-
## [1.11.0-a]
|
|
138
|
-
- Pagination: add new component
|
|
139
|
-
|
|
140
130
|
## [1.11.0]
|
|
141
131
|
- Carousels: Rewrite logic that cuts description, to support older browsers
|
|
142
132
|
|
|
143
|
-
## [1.10.0-a]
|
|
144
|
-
- ContentSummary: make image clickable
|
|
145
|
-
|
|
146
133
|
## [1.10.0]
|
|
147
134
|
- PageHeadingImpact: Replace CSS background-image with HTML image element
|
|
148
135
|
|
|
149
136
|
## [1.9.0]
|
|
150
137
|
- Card: Add a new prop for the hover line color
|
|
151
|
-
## [1.9.0-c]
|
|
152
|
-
- ContentSummary: make image clickable
|
|
153
|
-
|
|
154
|
-
## [1.9.0-b]
|
|
155
|
-
- ContentSummary: change image size
|
|
156
|
-
- SearchBar: Export component
|
|
157
|
-
|
|
158
|
-
## [1.9.0-a]
|
|
159
|
-
- ContentSummary: change image props
|
|
160
|
-
|
|
161
|
-
## [1.9.0]
|
|
162
|
-
- Card: Add a new prop for the hover line color
|
|
163
|
-
|
|
164
|
-
## [1.8.1-h]
|
|
165
|
-
- ContentSummary: add exports
|
|
166
|
-
|
|
167
|
-
## [1.8.1-g]
|
|
168
|
-
- ContentSummary: refactor
|
|
169
|
-
|
|
170
|
-
## [1.8.1-f]
|
|
171
|
-
- ContentSummary: update conditional rendering
|
|
172
|
-
|
|
173
|
-
## [1.8.1-c]
|
|
174
|
-
- ContentSummary: update for Search results
|
|
175
|
-
- ContentSummarySection: remove
|
|
176
|
-
|
|
177
|
-
## [1.8.1-b]
|
|
178
|
-
- Card: add new prop for the line color on hover
|
|
179
138
|
|
|
180
139
|
## [1.8.0]
|
|
181
140
|
- SearchBar: Disable
|
|
182
141
|
|
|
183
142
|
## [1.7.2]
|
|
184
143
|
- Add imageAltText to Card component
|
|
185
|
-
|
|
144
|
+
|
|
186
145
|
## [1.7.0]
|
|
187
146
|
- Add new ContentSummary component
|
|
188
147
|
- Add new ContentSummarySection component
|
|
@@ -6742,7 +6742,7 @@ var PrimaryButtonWithInversion = /*#__PURE__*/styled__default(PrimaryButton)(_te
|
|
|
6742
6742
|
return invert ? theme.colors.white : theme.colors.black;
|
|
6743
6743
|
});
|
|
6744
6744
|
|
|
6745
|
-
var renderBranding = function renderBranding(brandingStyle, invert, brandingText
|
|
6745
|
+
var renderBranding = function renderBranding(brandingStyle, invert, brandingText) {
|
|
6746
6746
|
var color = invert ? exports.Colors.Black : exports.Colors.White;
|
|
6747
6747
|
|
|
6748
6748
|
switch (brandingStyle) {
|
|
@@ -6756,13 +6756,6 @@ var renderBranding = function renderBranding(brandingStyle, invert, brandingText
|
|
|
6756
6756
|
}
|
|
6757
6757
|
});
|
|
6758
6758
|
|
|
6759
|
-
case 'TextLink':
|
|
6760
|
-
return (brandingText == null ? void 0 : brandingText.trim()) && /*#__PURE__*/React__default.createElement(TextLink, {
|
|
6761
|
-
target: 'blank',
|
|
6762
|
-
href: brandingLink,
|
|
6763
|
-
color: color
|
|
6764
|
-
}, truncate(stripAllHtmlTags(brandingText), 25));
|
|
6765
|
-
|
|
6766
6759
|
case 'StreamLogo':
|
|
6767
6760
|
return /*#__PURE__*/React__default.createElement(Logo, {
|
|
6768
6761
|
color: color,
|
|
@@ -6786,15 +6779,14 @@ var CompactHeaderBranding = function CompactHeaderBranding(_ref) {
|
|
|
6786
6779
|
var brandingStyle = _ref.brandingStyle,
|
|
6787
6780
|
_ref$invert = _ref.invert,
|
|
6788
6781
|
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
6789
|
-
brandingText = _ref.brandingText
|
|
6790
|
-
|
|
6791
|
-
return /*#__PURE__*/React__default.createElement(CompactHeaderLogoWrapper, null, renderBranding(brandingStyle, invert, brandingText, brandingLink));
|
|
6782
|
+
brandingText = _ref.brandingText;
|
|
6783
|
+
return /*#__PURE__*/React__default.createElement(CompactHeaderLogoWrapper, null, renderBranding(brandingStyle, invert, brandingText));
|
|
6792
6784
|
};
|
|
6793
6785
|
|
|
6794
6786
|
var isIOS = function isIOS() {
|
|
6795
6787
|
try {
|
|
6796
6788
|
console.warn('Do not use this on server side rendering, it may throw an error.');
|
|
6797
|
-
if (typeof navigator ===
|
|
6789
|
+
if (typeof navigator === undefined) return false;
|
|
6798
6790
|
return ['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'].includes(navigator.platform) || // iPad on iOS 13 detection
|
|
6799
6791
|
navigator.userAgent.includes('Mac') && 'ontouchend' in document;
|
|
6800
6792
|
} catch (e) {
|
|
@@ -6810,7 +6802,7 @@ var useIOS = function useIOS() {
|
|
|
6810
6802
|
setIOS = _useState[1];
|
|
6811
6803
|
|
|
6812
6804
|
React.useEffect(function () {
|
|
6813
|
-
if (typeof navigator ===
|
|
6805
|
+
if (typeof navigator === undefined) return;
|
|
6814
6806
|
setIOS(isIOS());
|
|
6815
6807
|
}, []);
|
|
6816
6808
|
return IOS;
|
|
@@ -6950,8 +6942,7 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
|
|
|
6950
6942
|
invert = _ref4$invert === void 0 ? false : _ref4$invert,
|
|
6951
6943
|
_ref4$brandingStyle = _ref4.brandingStyle,
|
|
6952
6944
|
brandingStyle = _ref4$brandingStyle === void 0 ? 'BlockText' : _ref4$brandingStyle,
|
|
6953
|
-
brandingText = _ref4.brandingText
|
|
6954
|
-
brandingLink = _ref4.brandingLink;
|
|
6945
|
+
brandingText = _ref4.brandingText;
|
|
6955
6946
|
|
|
6956
6947
|
var _ref5 = link || {},
|
|
6957
6948
|
linkText = _ref5.text,
|
|
@@ -6983,7 +6974,6 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
|
|
|
6983
6974
|
}, /*#__PURE__*/React__default.createElement(CompactHeaderBranding, {
|
|
6984
6975
|
brandingStyle: brandingStyle,
|
|
6985
6976
|
brandingText: brandingText,
|
|
6986
|
-
brandingLink: brandingLink,
|
|
6987
6977
|
invert: invert
|
|
6988
6978
|
}), /*#__PURE__*/React__default.createElement(CompactHeaderTitleWrapper, null, /*#__PURE__*/React__default.createElement(Header, {
|
|
6989
6979
|
level: titleSize,
|