@royaloperahouse/chord 1.12.4-e-chord-development → 1.12.4-g-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.
package/CHANGELOG.md CHANGED
@@ -1,13 +1,21 @@
1
1
  # CHANGELOG
2
2
 
3
+
4
+ ## [1.12.4]
5
+ - Search: change copy
6
+
7
+ ## [1.12.0]
8
+ - Search: Extend ContentSummary and SearchBar components to support new search results
9
+
3
10
  ## [1.11.0-a]
4
11
  - Pagination: add new component
5
12
 
6
- ## [1.10.0-a]
7
- - ContentSummary: make image clickable
8
13
  ## [1.11.0]
9
14
  - Carousels: Rewrite logic that cuts description, to support older browsers
10
15
 
16
+ ## [1.10.0-a]
17
+ - ContentSummary: make image clickable
18
+
11
19
  ## [1.10.0]
12
20
  - PageHeadingImpact: Replace CSS background-image with HTML image element
13
21
 
@@ -569,11 +569,22 @@ var cinema = /*#__PURE__*/_extends({}, common, {
569
569
  primaryButtonReverse: colors.cinema
570
570
  })
571
571
  });
572
+ var schools = /*#__PURE__*/_extends({}, common, {
573
+ colors: /*#__PURE__*/_extends({}, commonColors, colors, {
574
+ primary: colors.stream,
575
+ primaryButton: colors.stream,
576
+ secondaryButton: commonColors.white,
577
+ tertiaryButton: 'transparent',
578
+ primaryButtonReverseBg: colors.cinema,
579
+ primaryButtonReverse: commonColors.white
580
+ })
581
+ });
572
582
  var themes = {
573
583
  core: core,
574
584
  stream: stream,
575
585
  cinema: cinema,
576
- fontFamilies: fontFamilies
586
+ fontFamilies: fontFamilies,
587
+ schools: schools
577
588
  };
578
589
 
579
590
  var _templateObject$2;
@@ -2097,6 +2108,7 @@ var PrimaryButtonWrapper = /*#__PURE__*/styled__default(Button)(_templateObject$
2097
2108
  ThemeType["Core"] = "core";
2098
2109
  ThemeType["Stream"] = "stream";
2099
2110
  ThemeType["Cinema"] = "cinema";
2111
+ ThemeType["Schools"] = "schools";
2100
2112
  })(exports.ThemeType || (exports.ThemeType = {}));
2101
2113
 
2102
2114
  (function (CarouselType) {
@@ -3819,7 +3831,7 @@ var SearchBar = function SearchBar(_ref) {
3819
3831
  "data-testid": "input-html",
3820
3832
  ref: inputRef,
3821
3833
  className: "search-input",
3822
- placeholder: "Search for anything ROH...",
3834
+ placeholder: "Search the website...",
3823
3835
  type: "text",
3824
3836
  onChange: function onChange(e) {
3825
3837
  onChangeHandler(e);
@@ -4974,6 +4986,7 @@ var Accordion = function Accordion(_ref) {
4974
4986
  _ref$showLine = _ref.showLine,
4975
4987
  showLine = _ref$showLine === void 0 ? true : _ref$showLine,
4976
4988
  children = _ref.children,
4989
+ visibleStandfirst = _ref.visibleStandfirst,
4977
4990
  _ref$initOpen = _ref.initOpen,
4978
4991
  initOpen = _ref$initOpen === void 0 ? false : _ref$initOpen;
4979
4992
 
@@ -5028,7 +5041,7 @@ var Accordion = function Accordion(_ref) {
5028
5041
  tabIndex: 0
5029
5042
  }, /*#__PURE__*/React__default.createElement("a", null, title), /*#__PURE__*/React__default.createElement(Icon, {
5030
5043
  iconName: iconName
5031
- })), /*#__PURE__*/React__default.createElement(ContentContainer, {
5044
+ })), /*#__PURE__*/React__default.createElement(ContentContainer, null, /*#__PURE__*/React__default.createElement(ChildrenContainer, null, visibleStandfirst)), /*#__PURE__*/React__default.createElement(ContentContainer, {
5032
5045
  "data-testid": "richcontainer",
5033
5046
  ref: content,
5034
5047
  style: {
@@ -5054,7 +5067,8 @@ var Accordions = function Accordions(_ref) {
5054
5067
  return /*#__PURE__*/React__default.createElement(Accordion, {
5055
5068
  key: accordion.title + "-" + index,
5056
5069
  title: accordion.title,
5057
- showLine: isLastAccordion(index)
5070
+ showLine: isLastAccordion(index),
5071
+ visibleStandfirst: accordion.visibleStandfirst
5058
5072
  }, accordion.children);
5059
5073
  }));
5060
5074
  };
@@ -5725,7 +5739,7 @@ var PageHeading = function PageHeading(_ref) {
5725
5739
  text = _ref.text,
5726
5740
  link = _ref.link,
5727
5741
  _ref$sponsor = _ref.sponsor,
5728
- sponsor = _ref$sponsor === void 0 ? true : _ref$sponsor,
5742
+ sponsor = _ref$sponsor === void 0 ? false : _ref$sponsor,
5729
5743
  children = _ref.children;
5730
5744
 
5731
5745
  var _ref2 = link || {},