@royaloperahouse/chord 2.9.0-d-development → 2.9.1-b-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,3 +1,11 @@
1
+ ## [2.10.0]
2
+ - Upsell Card, Upsell Cards, Upsell section:
3
+ - Add secondary CTA
4
+ - Update device styling
5
+
6
+ ## [2.9.1]
7
+ - AnchorBar and SignUpForm accessibility bug fixes
8
+
1
9
  ## [2.9.0]
2
10
  - Add new AnchorBar component
3
11
 
@@ -7362,7 +7362,13 @@ var PromoLabel = /*#__PURE__*/styled__default.div(_templateObject3$n || (_templa
7362
7362
  var theme = _ref.theme;
7363
7363
  return theme.colors.primary;
7364
7364
  }, exports.Colors.White);
7365
- var ButtonContainer = /*#__PURE__*/styled__default.div(_templateObject4$i || (_templateObject4$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 2em;\n width: fit-content;\n"])));
7365
+ var ButtonContainer = /*#__PURE__*/styled__default.div(_templateObject4$i || (_templateObject4$i = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-top: 2em;\n width: fit-content;\n display: flex;\n flex-direction: row;\n gap: 20px;\n\n @media ", " {\n width: 100%;\n flex-direction: column;\n gap: 16px;\n }\n\n ", "\n"])), function (_ref2) {
7366
+ var stackCtasEarly = _ref2.stackCtasEarly;
7367
+ return stackCtasEarly ? devices.smallDesktop + ", " + devices.mobileAndTablet : devices.mobile;
7368
+ }, function (_ref3) {
7369
+ var stackCtasEarly = _ref3.stackCtasEarly;
7370
+ return stackCtasEarly && "\n @media " + devices.smallDesktop + ", " + devices.mobileAndTablet + " {\n * {\n width: 100%;\n }\n }\n ";
7371
+ });
7366
7372
  var TitleContainer$1 = /*#__PURE__*/styled__default.div(_templateObject5$d || (_templateObject5$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n & > * {\n margin-top: 0;\n margin-bottom: 0.5em;\n }\n"])));
7367
7373
  var OfferTextWrapper = /*#__PURE__*/styled__default.div(_templateObject6$b || (_templateObject6$b = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n & > * {\n margin-bottom: 0.5em;\n }\n margin-bottom: 1em;\n"])));
7368
7374
  var PriceRow = /*#__PURE__*/styled__default.div(_templateObject7$6 || (_templateObject7$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px 12px;\n padding: 5px 0 8px 0;\n"])));
@@ -7409,6 +7415,9 @@ var UpsellCard = function UpsellCard(_ref) {
7409
7415
  flag = _ref.flag,
7410
7416
  offerTexts = _ref.offerTexts,
7411
7417
  link = _ref.link,
7418
+ secondaryLink = _ref.secondaryLink,
7419
+ _ref$stackCtasEarly = _ref.stackCtasEarly,
7420
+ stackCtasEarly = _ref$stackCtasEarly === void 0 ? false : _ref$stackCtasEarly,
7412
7421
  _ref$theme = _ref.theme,
7413
7422
  theme = _ref$theme === void 0 ? exports.ThemeType.Core : _ref$theme;
7414
7423
 
@@ -7431,12 +7440,15 @@ var UpsellCard = function UpsellCard(_ref) {
7431
7440
  level: 4
7432
7441
  }, formatPrice(promoPrice))) : /*#__PURE__*/React__default.createElement(PriceRow, null, /*#__PURE__*/React__default.createElement(AltHeader, {
7433
7442
  level: 4
7434
- }, formatPrice(price)))), (reducedOfferTexts == null ? void 0 : reducedOfferTexts.length) && reducedOfferTexts.map(function (offerText) {
7443
+ }, formatPrice(price)))), (reducedOfferTexts == null ? void 0 : reducedOfferTexts.length) && reducedOfferTexts.map(function (offerText, index) {
7435
7444
  return /*#__PURE__*/React__default.createElement(OfferText, {
7445
+ key: "offer-" + index,
7436
7446
  title: offerText.title,
7437
7447
  description: offerText.description
7438
7448
  });
7439
- }), link && /*#__PURE__*/React__default.createElement(ButtonContainer, null, /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, link), truncate(link.text, LENGTH_SMALL_TEXT)))));
7449
+ }), link && /*#__PURE__*/React__default.createElement(ButtonContainer, {
7450
+ stackCtasEarly: stackCtasEarly
7451
+ }, /*#__PURE__*/React__default.createElement(PrimaryButton, Object.assign({}, link), truncate(link.text, LENGTH_SMALL_TEXT)), secondaryLink && /*#__PURE__*/React__default.createElement(SecondaryButton, Object.assign({}, secondaryLink), truncate(secondaryLink.text, LENGTH_SMALL_TEXT)))));
7440
7452
  };
7441
7453
 
7442
7454
  var _templateObject$L;
@@ -7444,8 +7456,9 @@ var Wrapper$3 = /*#__PURE__*/styled__default.div(_templateObject$L || (_template
7444
7456
 
7445
7457
  var UpsellCards = function UpsellCards(_ref) {
7446
7458
  var upsellCards = _ref.upsellCards;
7447
- return /*#__PURE__*/React__default.createElement(Wrapper$3, null, upsellCards == null ? void 0 : upsellCards.map(function (card) {
7459
+ return /*#__PURE__*/React__default.createElement(Wrapper$3, null, upsellCards == null ? void 0 : upsellCards.map(function (card, index) {
7448
7460
  return /*#__PURE__*/React__default.createElement(UpsellCard, {
7461
+ key: "card-" + index,
7449
7462
  title: card.title,
7450
7463
  subTitle: card.subTitle,
7451
7464
  price: card.price,
@@ -7453,6 +7466,8 @@ var UpsellCards = function UpsellCards(_ref) {
7453
7466
  flag: card.flag,
7454
7467
  offerTexts: card.offerTexts,
7455
7468
  link: card.link,
7469
+ secondaryLink: card.secondaryLink,
7470
+ stackCtasEarly: true,
7456
7471
  theme: card.theme
7457
7472
  });
7458
7473
  }));