@royaloperahouse/harmonic 0.18.4-a → 0.18.4-b

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
@@ -2,6 +2,9 @@
2
2
  - Carousel, Typography, HighlightCarousels added font changed prop
3
3
 
4
4
 
5
+ ## [0.18.6]
6
+ - CastFilter: Add greyscale option to cast filter
7
+
5
8
  ## [0.18.5]
6
9
  - PeopleListing, PersonCard: Added person-headshot-grayscale class to display headshots in grayscale
7
10
 
@@ -10,6 +10,7 @@ export declare const PersonToggle: import("styled-components").StyledComponent<"
10
10
  }, never>;
11
11
  export declare const PersonImage: import("styled-components").StyledComponent<"img", any, {
12
12
  isDefaultPlaceholder?: boolean | undefined;
13
+ greyscale?: boolean | undefined;
13
14
  }, never>;
14
15
  export declare const PersonName: import("styled-components").StyledComponent<"div", any, {}, never>;
15
16
  export declare const Decal: import("styled-components").StyledComponent<"div", any, {
@@ -6624,17 +6624,20 @@ var PersonToggle = /*#__PURE__*/styled__default.div(_templateObject8$4 || (_temp
6624
6624
  var isSelected = _ref.isSelected;
6625
6625
  return isSelected ? 'var(--color-primary-red)' : 'var(--color-base-light-grey)';
6626
6626
  });
6627
- var PersonImage = /*#__PURE__*/styled__default.img(_templateObject9$3 || (_templateObject9$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: calc(100% - 8px);\n height: calc(100% - 8px);\n margin: 4px;\n object-fit: cover;\n border-radius: 50%;\n\n // This is really specific to the SVG that we have been provided\n // as a fallback person image. I don't think there's a simpler and\n // more general way to handle this, so if we're given a new placeholder\n // image later, we may have to change the scale here\n ", "\n"])), function (_ref2) {
6628
- var isDefaultPlaceholder = _ref2.isDefaultPlaceholder;
6627
+ var PersonImage = /*#__PURE__*/styled__default.img(_templateObject9$3 || (_templateObject9$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: calc(100% - 8px);\n height: calc(100% - 8px);\n margin: 4px;\n object-fit: cover;\n border-radius: 50%;\n filter: ", ";\n\n // This is really specific to the SVG that we have been provided\n // as a fallback person image. I don't think there's a simpler and\n // more general way to handle this, so if we're given a new placeholder\n // image later, we may have to change the scale here\n ", "\n"])), function (_ref2) {
6628
+ var greyscale = _ref2.greyscale;
6629
+ return greyscale ? 'grayscale(100%)' : 'none';
6630
+ }, function (_ref3) {
6631
+ var isDefaultPlaceholder = _ref3.isDefaultPlaceholder;
6629
6632
  return isDefaultPlaceholder && "\n transform: scale(1.24);\n ";
6630
6633
  });
6631
6634
  var PersonName = /*#__PURE__*/styled__default.div(_templateObject0$3 || (_templateObject0$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: 86px;\n display: flex;\n flex-wrap: wrap;\n text-align: center;\n\n @media ", " {\n max-width: unset;\n text-align: left;\n font-size: 17px;\n line-height: 24px;\n }\n"])), devices.mobile);
6632
- var Decal = /*#__PURE__*/styled__default.div(_templateObject1$2 || (_templateObject1$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20px;\n height: 20px;\n border-radius: 50%;\n background: var(--color-primary-red);\n display: ", ";\n position: absolute;\n top: 6px;\n right: -6px;\n align-items: center;\n justify-content: center;\n\n span {\n display: ", ";\n width: 65%;\n height: 65%;\n }\n"])), function (_ref3) {
6633
- var isSelected = _ref3.isSelected;
6634
- return isSelected ? 'flex' : 'none';
6635
- }, function (_ref4) {
6635
+ var Decal = /*#__PURE__*/styled__default.div(_templateObject1$2 || (_templateObject1$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 20px;\n height: 20px;\n border-radius: 50%;\n background: var(--color-primary-red);\n display: ", ";\n position: absolute;\n top: 6px;\n right: -6px;\n align-items: center;\n justify-content: center;\n\n span {\n display: ", ";\n width: 65%;\n height: 65%;\n }\n"])), function (_ref4) {
6636
6636
  var isSelected = _ref4.isSelected;
6637
6637
  return isSelected ? 'flex' : 'none';
6638
+ }, function (_ref5) {
6639
+ var isSelected = _ref5.isSelected;
6640
+ return isSelected ? 'flex' : 'none';
6638
6641
  });
6639
6642
  var EmptySelectionTextSpacer = /*#__PURE__*/styled__default.div(_templateObject10$2 || (_templateObject10$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n visibility: hidden;\n\n @media ", " {\n visibility: visible;\n min-height: var(--button-height);\n }\n"])), devices.mobile);
6640
6643
 
@@ -7042,6 +7045,8 @@ var CastFilters = function CastFilters(_ref) {
7042
7045
  onSelect = _ref.onSelect,
7043
7046
  onApply = _ref.onApply,
7044
7047
  onClear = _ref.onClear,
7048
+ _ref$greyscale = _ref.greyscale,
7049
+ greyscale = _ref$greyscale === void 0 ? false : _ref$greyscale,
7045
7050
  _ref$selectedIndices = _ref.selectedIndices,
7046
7051
  selectedIndices = _ref$selectedIndices === void 0 ? [] : _ref$selectedIndices;
7047
7052
  var _useViewport = useViewport(),
@@ -7182,7 +7187,8 @@ var CastFilters = function CastFilters(_ref) {
7182
7187
  src: personImage,
7183
7188
  alt: image ? name : "Placeholder image for " + name,
7184
7189
  draggable: false,
7185
- isDefaultPlaceholder: !(!!image || !!placeholderImage)
7190
+ isDefaultPlaceholder: !(!!image || !!placeholderImage),
7191
+ greyscale: greyscale
7186
7192
  }), /*#__PURE__*/React__default.createElement(Decal, {
7187
7193
  isSelected: isSelected
7188
7194
  }, /*#__PURE__*/React__default.createElement(Icon, {
@@ -11210,7 +11216,9 @@ var themeToColor = function themeToColor(theme) {
11210
11216
  var SignUpTitle = function SignUpTitle(_ref) {
11211
11217
  var title = _ref.title,
11212
11218
  _ref$isMobile = _ref.isMobile,
11213
- isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile;
11219
+ isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile,
11220
+ _ref$titleFontFamily = _ref.titleFontFamily,
11221
+ titleFontFamily = _ref$titleFontFamily === void 0 ? false : _ref$titleFontFamily;
11214
11222
  return /*#__PURE__*/React__default.createElement(GridItem, {
11215
11223
  columnStartDesktop: 3,
11216
11224
  columnSpanDesktop: 10,
@@ -11219,7 +11227,7 @@ var SignUpTitle = function SignUpTitle(_ref) {
11219
11227
  }, /*#__PURE__*/React__default.createElement(SignUpTitleWrapper, null, /*#__PURE__*/React__default.createElement(HarmonicHeader, {
11220
11228
  color: "black",
11221
11229
  hierarchy: "h3",
11222
- serif: true,
11230
+ serif: titleFontFamily === 'Victor',
11223
11231
  size: isMobile ? 'small' : 'medium'
11224
11232
  }, title)));
11225
11233
  };