@royaloperahouse/harmonic 1.0.6-k → 1.0.6-l

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.
@@ -7,6 +7,7 @@ export declare const ChildrenContainer: import("styled-components").StyledCompon
7
7
  }, never>;
8
8
  export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, {
9
9
  hasChildren?: boolean | undefined;
10
+ titleMargin?: string | undefined;
10
11
  }, never>;
11
12
  export declare const TitleText: import("styled-components").StyledComponent<({ children, size, color, className, tag: Tag, }: import("../../../types/typography").ITaggedTypographyProps) => import("react").JSX.Element, any, {}, never>;
12
13
  export declare const ContentContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../types/typography").ITaggedTypographyProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {
@@ -5532,11 +5532,14 @@ var ChildrenContainer = /*#__PURE__*/styled__default.div(_templateObject2$q || (
5532
5532
  var isVisible = _ref4.isVisible;
5533
5533
  return isVisible ? 'auto' : 'none';
5534
5534
  }, devices.mobile);
5535
- var TitleContainer$1 = /*#__PURE__*/styled__default.div(_templateObject3$f || (_templateObject3$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding-top: 28px;\n padding-bottom: 28px;\n color: var(--color-primary-black);\n\n && svg {\n width: 24px;\n height: 24px;\n }\n\n :hover {\n cursor: ", ";\n pointer-events: ", ";\n }\n\n @media ", " {\n padding-top: 16px;\n padding-bottom: 16px;\n }\n"])), function (_ref5) {
5536
- var hasChildren = _ref5.hasChildren;
5537
- return hasChildren ? 'pointer' : 'default';
5535
+ var TitleContainer$1 = /*#__PURE__*/styled__default.div(_templateObject3$f || (_templateObject3$f = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding-top: 28px;\n padding-bottom: 28px;\n color: var(--color-primary-black);\n margin-left: ", ";\n\n && svg {\n width: 24px;\n height: 24px;\n }\n\n :hover {\n cursor: ", ";\n pointer-events: ", ";\n }\n\n @media ", " {\n padding-top: 16px;\n padding-bottom: 16px;\n margin-left: 0;\n }\n"])), function (_ref5) {
5536
+ var titleMargin = _ref5.titleMargin;
5537
+ return titleMargin || '0';
5538
5538
  }, function (_ref6) {
5539
5539
  var hasChildren = _ref6.hasChildren;
5540
+ return hasChildren ? 'pointer' : 'default';
5541
+ }, function (_ref7) {
5542
+ var hasChildren = _ref7.hasChildren;
5540
5543
  return hasChildren ? 'auto' : 'none';
5541
5544
  }, devices.mobile);
5542
5545
  var TitleText = /*#__PURE__*/styled__default(HarmonicSubtitle)(_templateObject4$e || (_templateObject4$e = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: calc(100% - 32px);\n"])));
@@ -5545,14 +5548,14 @@ var ContentContainer = /*#__PURE__*/styled__default(ExtendedBodyCopyHarmonic).wi
5545
5548
  shouldForwardProp: function shouldForwardProp(prop) {
5546
5549
  return prop !== 'textHeight';
5547
5550
  }
5548
- })(_templateObject6$6 || (_templateObject6$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-height: ", ";\n overflow: ", ";\n margin-bottom: ", ";\n\n @media print {\n max-height: max-content;\n }\n\n & em {\n font-family: var(--font-family-body-italics);\n }\n\n & u {\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n }\n\n @media ", " {\n transition: 100% 0.2s ease;\n }\n"])), function (_ref7) {
5549
- var textHeight = _ref7.textHeight;
5550
- return textHeight;
5551
- }, function (_ref8) {
5551
+ })(_templateObject6$6 || (_templateObject6$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-height: ", ";\n overflow: ", ";\n margin-bottom: ", ";\n\n @media print {\n max-height: max-content;\n }\n\n & em {\n font-family: var(--font-family-body-italics);\n }\n\n & u {\n font-size: var(--font-size-body-1);\n font-family: var(--font-family-body);\n }\n\n @media ", " {\n transition: 100% 0.2s ease;\n }\n"])), function (_ref8) {
5552
5552
  var textHeight = _ref8.textHeight;
5553
- return textHeight === '0px' ? 'hidden' : 'visible';
5553
+ return textHeight;
5554
5554
  }, function (_ref9) {
5555
5555
  var textHeight = _ref9.textHeight;
5556
+ return textHeight === '0px' ? 'hidden' : 'visible';
5557
+ }, function (_ref0) {
5558
+ var textHeight = _ref0.textHeight;
5556
5559
  return textHeight === '0px' ? '0px' : '12px';
5557
5560
  }, devices.mobile);
5558
5561
  var PrintHideWrapper = /*#__PURE__*/styled__default.div(_templateObject7$4 || (_templateObject7$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n @media print {\n display: none;\n }\n"])));
@@ -5584,7 +5587,8 @@ var Accordion = function Accordion(_ref) {
5584
5587
  className = _ref.className,
5585
5588
  expandedStateIcon = _ref.expandedStateIcon,
5586
5589
  collapsedStateIcon = _ref.collapsedStateIcon,
5587
- childrenContainerStyle = _ref.childrenContainerStyle;
5590
+ childrenContainerStyle = _ref.childrenContainerStyle,
5591
+ titleMargin = _ref.titleMargin;
5588
5592
  var _useState = React.useState(initOpen),
5589
5593
  openAccordion = _useState[0],
5590
5594
  setOpenAccordion = _useState[1];
@@ -5731,7 +5735,8 @@ var Accordion = function Accordion(_ref) {
5731
5735
  "aria-label": title,
5732
5736
  "aria-expanded": openAccordion,
5733
5737
  "aria-controls": contentContainerId,
5734
- hasChildren: !!children
5738
+ hasChildren: !!children,
5739
+ titleMargin: titleMargin
5735
5740
  }, /*#__PURE__*/React__default.createElement(TitleText, null, title), children && (/*#__PURE__*/React__default.createElement(PrintHideWrapper, null, /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, icon))))), /*#__PURE__*/React__default.createElement(ContentContainer, {
5736
5741
  "data-testid": "richcontainer",
5737
5742
  ref: content,