@royaloperahouse/harmonic 0.11.0-l → 0.11.0-n
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 -0
- package/dist/components/Typography/Typography.d.ts +3 -3
- package/dist/components/atoms/Buttons/Secondary/utils.d.ts +4 -4
- package/dist/components/organisms/StickyBar/StickyBar.style.d.ts +1 -1
- package/dist/harmonic.cjs.development.js +89 -86
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +89 -86
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/buttonTypes.d.ts +0 -2
- package/dist/types/navigation.d.ts +12 -18
- package/dist/types/typography.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IGenericTypographyProps, IHarmonicHeaderProps, ITaggedTypographyProps } from '../../types/typography';
|
|
3
3
|
export declare const DisplayHeader: ({ children, size, em, color, serif, className }: IGenericTypographyProps) => React.JSX.Element;
|
|
4
4
|
export declare const HarmonicHeader: ({ children, size, em, color, serif, hierarchy: Tag, className, }: IHarmonicHeaderProps) => React.JSX.Element;
|
|
5
5
|
export declare const HarmonicSubtitle: ({ children, size, color, className }: IGenericTypographyProps) => React.JSX.Element;
|
|
6
|
-
export declare const BodyCopyHarmonic: ({ children, size, color, className, bold, tag: Tag, ...props }:
|
|
6
|
+
export declare const BodyCopyHarmonic: ({ children, size, color, className, bold, tag: Tag, ...props }: ITaggedTypographyProps) => React.JSX.Element;
|
|
7
7
|
export declare const HarmonicOverline: ({ children, size, color, className, ...props }: IGenericTypographyProps) => React.JSX.Element;
|
|
8
8
|
export declare const ButtonText: ({ children, color, className }: IGenericTypographyProps) => React.JSX.Element;
|
|
9
9
|
export declare const Caption: ({ children, color, className }: IGenericTypographyProps) => React.JSX.Element;
|
|
10
|
-
export declare const NavigationText: ({ children, color, className }:
|
|
10
|
+
export declare const NavigationText: ({ children, color, tag: Tag, className }: ITaggedTypographyProps) => React.JSX.Element;
|
|
@@ -8,7 +8,7 @@ export declare const COLORS: {
|
|
|
8
8
|
readonly hover: "var(--button-secondary-hover-color)";
|
|
9
9
|
readonly pressed: "var(--button-secondary-pressed-color)";
|
|
10
10
|
};
|
|
11
|
-
export declare const getTextColor: ({ disabled, textColor
|
|
12
|
-
export declare const getBorderColor: ({ disabled, borderColor
|
|
13
|
-
export declare const getHoveredColor: ({ disabled, hoveredColor
|
|
14
|
-
export declare const getPressedColor: ({ disabled, pressedColor
|
|
11
|
+
export declare const getTextColor: ({ disabled, textColor }: SecondaryButtonProps) => string;
|
|
12
|
+
export declare const getBorderColor: ({ disabled, borderColor }: SecondaryButtonProps) => string;
|
|
13
|
+
export declare const getHoveredColor: ({ disabled, hoveredColor }: SecondaryButtonProps) => string;
|
|
14
|
+
export declare const getPressedColor: ({ disabled, pressedColor }: SecondaryButtonProps) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface IStickyBarGridProps {
|
|
2
|
-
|
|
2
|
+
bottomBorder?: boolean;
|
|
3
3
|
}
|
|
4
4
|
export declare const StickyBarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
5
|
export declare const StickyBarGrid: import("styled-components").StyledComponent<"div", any, IStickyBarGridProps, never>;
|
|
@@ -314,12 +314,14 @@ var NavigationText = function NavigationText(_ref8) {
|
|
|
314
314
|
var children = _ref8.children,
|
|
315
315
|
_ref8$color = _ref8.color,
|
|
316
316
|
color = _ref8$color === void 0 ? 'inherit' : _ref8$color,
|
|
317
|
+
_ref8$tag = _ref8.tag,
|
|
318
|
+
Tag = _ref8$tag === void 0 ? 'p' : _ref8$tag,
|
|
317
319
|
className = _ref8.className;
|
|
318
320
|
var classNames = createClassNames('navigationtext', {
|
|
319
321
|
color: color,
|
|
320
322
|
className: className
|
|
321
323
|
}, typographyStyles);
|
|
322
|
-
return /*#__PURE__*/React__default.createElement(
|
|
324
|
+
return /*#__PURE__*/React__default.createElement(Tag, {
|
|
323
325
|
className: classNames
|
|
324
326
|
}, children);
|
|
325
327
|
};
|
|
@@ -2670,70 +2672,48 @@ var COLORS$1 = {
|
|
|
2670
2672
|
hover: 'var(--button-secondary-hover-color)',
|
|
2671
2673
|
pressed: 'var(--button-secondary-pressed-color)'
|
|
2672
2674
|
};
|
|
2673
|
-
var isObjectWithKey = function isObjectWithKey(object, key) {
|
|
2674
|
-
return typeof object === 'object' && object !== null && key in object;
|
|
2675
|
-
};
|
|
2676
|
-
var hasSecondaryButtonColor = function hasSecondaryButtonColor(theme) {
|
|
2677
|
-
return isObjectWithKey(theme, 'colors') && isObjectWithKey(theme.colors, 'secondaryButton') && typeof theme.colors.secondaryButton === 'string';
|
|
2678
|
-
};
|
|
2679
2675
|
var getTextColor$1 = function getTextColor(_ref) {
|
|
2680
2676
|
var disabled = _ref.disabled,
|
|
2681
|
-
textColor = _ref.textColor
|
|
2682
|
-
theme = _ref.theme;
|
|
2677
|
+
textColor = _ref.textColor;
|
|
2683
2678
|
if (disabled) {
|
|
2684
2679
|
return COLORS$1.darkGrey;
|
|
2685
2680
|
}
|
|
2686
2681
|
if (textColor) {
|
|
2687
2682
|
return "var(--color-" + textColor + ")";
|
|
2688
2683
|
}
|
|
2689
|
-
if (hasSecondaryButtonColor(theme)) {
|
|
2690
|
-
return theme.colors.secondaryButton;
|
|
2691
|
-
}
|
|
2692
2684
|
return COLORS$1["default"];
|
|
2693
2685
|
};
|
|
2694
2686
|
var getBorderColor = function getBorderColor(_ref2) {
|
|
2695
2687
|
var disabled = _ref2.disabled,
|
|
2696
|
-
borderColor = _ref2.borderColor
|
|
2697
|
-
theme = _ref2.theme;
|
|
2688
|
+
borderColor = _ref2.borderColor;
|
|
2698
2689
|
if (disabled) {
|
|
2699
2690
|
return COLORS$1.disabled;
|
|
2700
2691
|
}
|
|
2701
2692
|
if (borderColor) {
|
|
2702
2693
|
return "var(--color-" + borderColor + ")";
|
|
2703
2694
|
}
|
|
2704
|
-
if (hasSecondaryButtonColor(theme)) {
|
|
2705
|
-
return theme.colors.secondaryButton;
|
|
2706
|
-
}
|
|
2707
2695
|
return COLORS$1.border;
|
|
2708
2696
|
};
|
|
2709
2697
|
var getHoveredColor$1 = function getHoveredColor(_ref3) {
|
|
2710
2698
|
var disabled = _ref3.disabled,
|
|
2711
|
-
hoveredColor = _ref3.hoveredColor
|
|
2712
|
-
theme = _ref3.theme;
|
|
2699
|
+
hoveredColor = _ref3.hoveredColor;
|
|
2713
2700
|
if (disabled) {
|
|
2714
2701
|
return COLORS$1.disabled;
|
|
2715
2702
|
}
|
|
2716
2703
|
if (hoveredColor) {
|
|
2717
2704
|
return "var(--color-" + hoveredColor + ")";
|
|
2718
2705
|
}
|
|
2719
|
-
if (hasSecondaryButtonColor(theme)) {
|
|
2720
|
-
return theme.colors.secondaryButton;
|
|
2721
|
-
}
|
|
2722
2706
|
return COLORS$1.hover;
|
|
2723
2707
|
};
|
|
2724
2708
|
var getPressedColor$1 = function getPressedColor(_ref4) {
|
|
2725
2709
|
var disabled = _ref4.disabled,
|
|
2726
|
-
pressedColor = _ref4.pressedColor
|
|
2727
|
-
theme = _ref4.theme;
|
|
2710
|
+
pressedColor = _ref4.pressedColor;
|
|
2728
2711
|
if (disabled) {
|
|
2729
2712
|
return COLORS$1.disabled;
|
|
2730
2713
|
}
|
|
2731
2714
|
if (pressedColor) {
|
|
2732
2715
|
return "var(--color-" + pressedColor + ")";
|
|
2733
2716
|
}
|
|
2734
|
-
if (hasSecondaryButtonColor(theme)) {
|
|
2735
|
-
return theme.colors.secondaryButton;
|
|
2736
|
-
}
|
|
2737
2717
|
return COLORS$1.pressed;
|
|
2738
2718
|
};
|
|
2739
2719
|
|
|
@@ -2806,7 +2786,9 @@ var TertiaryButton = function TertiaryButton(_ref) {
|
|
|
2806
2786
|
if (rest != null && rest.disabled) return;
|
|
2807
2787
|
rest.onClick == null || rest.onClick(e);
|
|
2808
2788
|
}, [rest.disabled, rest.onClick]);
|
|
2809
|
-
return /*#__PURE__*/React__default.createElement(TertiaryButtonWrapper, Object.assign({
|
|
2789
|
+
return /*#__PURE__*/React__default.createElement(TertiaryButtonWrapper, Object.assign({
|
|
2790
|
+
"data-testid": "tertiary-button"
|
|
2791
|
+
}, rest, {
|
|
2810
2792
|
className: className,
|
|
2811
2793
|
onClick: handleClick
|
|
2812
2794
|
}), /*#__PURE__*/React__default.createElement(ButtonText, {
|
|
@@ -3598,17 +3580,18 @@ var DEFAULT_SPONSORSHIP_IFRAME = 'https://static.roh.org.uk/rolex/v4/rolex.html?
|
|
|
3598
3580
|
var DEFAULT_SPONSORSHIP_TITLE = 'rolex';
|
|
3599
3581
|
var DEFAULT_DATA_ROH = 'ImgAdvert';
|
|
3600
3582
|
|
|
3601
|
-
|
|
3583
|
+
var _excluded$7 = ["src", "dataRoh", "title"];
|
|
3602
3584
|
var Sponsorship = function Sponsorship(_ref) {
|
|
3603
3585
|
var _ref$src = _ref.src,
|
|
3604
3586
|
src = _ref$src === void 0 ? DEFAULT_SPONSORSHIP_IFRAME : _ref$src,
|
|
3605
3587
|
_ref$dataRoh = _ref.dataRoh,
|
|
3606
3588
|
dataRoh = _ref$dataRoh === void 0 ? DEFAULT_DATA_ROH : _ref$dataRoh,
|
|
3607
3589
|
_ref$title = _ref.title,
|
|
3608
|
-
title = _ref$title === void 0 ? DEFAULT_SPONSORSHIP_TITLE : _ref$title
|
|
3590
|
+
title = _ref$title === void 0 ? DEFAULT_SPONSORSHIP_TITLE : _ref$title,
|
|
3591
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
3609
3592
|
var linkText = title + " sponsorship";
|
|
3610
3593
|
var linkDescription = linkText + " - visit " + title + "'s website (opens in new tab)";
|
|
3611
|
-
return /*#__PURE__*/React__default.createElement(SponsorshipWrapper,
|
|
3594
|
+
return /*#__PURE__*/React__default.createElement(SponsorshipWrapper, Object.assign({}, rest), /*#__PURE__*/React__default.createElement(SponsorshipLink, {
|
|
3612
3595
|
href: "https://www.rolex.com",
|
|
3613
3596
|
target: "_blank",
|
|
3614
3597
|
rel: "noopener noreferrer",
|
|
@@ -3750,7 +3733,7 @@ var TabLinkWrapper = /*#__PURE__*/styled__default.a(_templateObject$l || (_templ
|
|
|
3750
3733
|
});
|
|
3751
3734
|
var TabLinkIconWrapper = /*#__PURE__*/styled__default.span(_templateObject2$d || (_templateObject2$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: var(--button-icon-width);\n height: var(--button-icon-height);\n margin-right: var(--button-icon-margin);\n"])));
|
|
3752
3735
|
|
|
3753
|
-
var _excluded$
|
|
3736
|
+
var _excluded$8 = ["children", "iconName", "iconDirection", "color", "hoverColor", "className"];
|
|
3754
3737
|
var TabLink = function TabLink(_ref) {
|
|
3755
3738
|
var children = _ref.children,
|
|
3756
3739
|
iconName = _ref.iconName,
|
|
@@ -3760,7 +3743,7 @@ var TabLink = function TabLink(_ref) {
|
|
|
3760
3743
|
_ref$hoverColor = _ref.hoverColor,
|
|
3761
3744
|
hoverColor = _ref$hoverColor === void 0 ? ThemeColor['primary-red'] : _ref$hoverColor,
|
|
3762
3745
|
className = _ref.className,
|
|
3763
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3746
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
3764
3747
|
return /*#__PURE__*/React__default.createElement(TabLinkWrapper, Object.assign({
|
|
3765
3748
|
color: color,
|
|
3766
3749
|
iconName: iconName,
|
|
@@ -3810,7 +3793,7 @@ var TextAreaError = /*#__PURE__*/styled__default.div(_templateObject4$4 || (_tem
|
|
|
3810
3793
|
return darkMode ? 'var(--base-color-white)' : 'var(--base-color-errorstate)';
|
|
3811
3794
|
});
|
|
3812
3795
|
|
|
3813
|
-
var _excluded$
|
|
3796
|
+
var _excluded$9 = ["label", "error", "width", "darkMode", "height", "columnStartDesktop", "columnStartDevice", "columnSpanDesktop", "columnSpanDevice", "maxLength", "tabIndex"];
|
|
3814
3797
|
/**
|
|
3815
3798
|
* An HTML textarea component for Harmonic.
|
|
3816
3799
|
*
|
|
@@ -3871,7 +3854,7 @@ var TextArea = function TextArea(_ref) {
|
|
|
3871
3854
|
maxLength = _ref$maxLength === void 0 ? 950 : _ref$maxLength,
|
|
3872
3855
|
_ref$tabIndex = _ref.tabIndex,
|
|
3873
3856
|
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex,
|
|
3874
|
-
textareaProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3857
|
+
textareaProps = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
3875
3858
|
return /*#__PURE__*/React__default.createElement(GridItem, {
|
|
3876
3859
|
columnStartDesktop: columnStartDesktop,
|
|
3877
3860
|
columnSpanDesktop: columnSpanDesktop,
|
|
@@ -3931,7 +3914,7 @@ var ErrorLabel$1 = /*#__PURE__*/styled__default.div(_templateObject6$1 || (_temp
|
|
|
3931
3914
|
});
|
|
3932
3915
|
var BodyCopyHarmonicWithWrapper = /*#__PURE__*/styled__default(BodyCopyHarmonic)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: var(--color-state-error);\n"])));
|
|
3933
3916
|
|
|
3934
|
-
var _excluded$
|
|
3917
|
+
var _excluded$a = ["label", "type", "error", "darkMode", "width"];
|
|
3935
3918
|
/**
|
|
3936
3919
|
* A text field component, that wraps around the native `<input />` element
|
|
3937
3920
|
* and adds some extra states and information around it (i.e. a text and an error labels,
|
|
@@ -3978,7 +3961,7 @@ var TextFieldComponent = function TextFieldComponent(_ref, ref) {
|
|
|
3978
3961
|
_ref$darkMode = _ref.darkMode,
|
|
3979
3962
|
darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
|
|
3980
3963
|
width = _ref.width,
|
|
3981
|
-
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3964
|
+
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3982
3965
|
var _useState = React.useState(false),
|
|
3983
3966
|
showPassword = _useState[0],
|
|
3984
3967
|
setShowPassword = _useState[1];
|
|
@@ -4076,7 +4059,7 @@ var ErrorLabel$2 = /*#__PURE__*/styled__default.p(_templateObject5$3 || (_templa
|
|
|
4076
4059
|
return darkMode ? theme.colors.white : theme.colors.error;
|
|
4077
4060
|
});
|
|
4078
4061
|
|
|
4079
|
-
var _excluded$
|
|
4062
|
+
var _excluded$b = ["label", "error", "darkMode", "width"];
|
|
4080
4063
|
/**
|
|
4081
4064
|
* @deprecated
|
|
4082
4065
|
*
|
|
@@ -4090,7 +4073,7 @@ var TextFieldLegacy = function TextFieldLegacy(_ref) {
|
|
|
4090
4073
|
_ref$darkMode = _ref.darkMode,
|
|
4091
4074
|
darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
|
|
4092
4075
|
width = _ref.width,
|
|
4093
|
-
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4076
|
+
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
4094
4077
|
return /*#__PURE__*/React__default.createElement(TextFieldContainer, null, /*#__PURE__*/React__default.createElement("label", {
|
|
4095
4078
|
htmlFor: "text-field-input"
|
|
4096
4079
|
}, /*#__PURE__*/React__default.createElement(TextLabel$2, {
|
|
@@ -4119,13 +4102,13 @@ var TextLinkWrapper = /*#__PURE__*/styled__default.a(_templateObject$p || (_temp
|
|
|
4119
4102
|
}, devices.mobile);
|
|
4120
4103
|
var TextLinkIconWrapper = /*#__PURE__*/styled__default.span(_templateObject2$h || (_templateObject2$h = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: var(--button-icon-width);\n height: var(--button-icon-height);\n margin-left: var(--button-icon-margin);\n"])));
|
|
4121
4104
|
|
|
4122
|
-
var _excluded$
|
|
4105
|
+
var _excluded$c = ["children", "iconName", "iconDirection", "textColor"];
|
|
4123
4106
|
var TextLink = function TextLink(_ref) {
|
|
4124
4107
|
var children = _ref.children,
|
|
4125
4108
|
iconName = _ref.iconName,
|
|
4126
4109
|
iconDirection = _ref.iconDirection,
|
|
4127
4110
|
textColor = _ref.textColor,
|
|
4128
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4111
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
4129
4112
|
var truncatedString = children.substring(0, 30);
|
|
4130
4113
|
return /*#__PURE__*/React__default.createElement(TextLinkWrapper, Object.assign({
|
|
4131
4114
|
color: textColor,
|
|
@@ -4318,7 +4301,7 @@ var ErrorLabel$3 = /*#__PURE__*/styled__default.div(_templateObject6$2 || (_temp
|
|
|
4318
4301
|
return 'var(--base-color-errorstate)';
|
|
4319
4302
|
});
|
|
4320
4303
|
|
|
4321
|
-
var _excluded$
|
|
4304
|
+
var _excluded$d = ["children", "disabled", "error", "darkMode", "blackBox"];
|
|
4322
4305
|
/**
|
|
4323
4306
|
* A Tickbox component, that wraps around the native `<input type="checkbox"/>` element
|
|
4324
4307
|
* and adds some extra styling, states and information around it (i.e. an error label,
|
|
@@ -4347,7 +4330,7 @@ var Tickbox2Component = function Tickbox2Component(_ref, ref) {
|
|
|
4347
4330
|
darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
|
|
4348
4331
|
_ref$blackBox = _ref.blackBox,
|
|
4349
4332
|
blackBox = _ref$blackBox === void 0 ? false : _ref$blackBox,
|
|
4350
|
-
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4333
|
+
inputProps = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
4351
4334
|
return /*#__PURE__*/React__default.createElement(Container$2, null, /*#__PURE__*/React__default.createElement(TickboxLabel$2, {
|
|
4352
4335
|
darkMode: darkMode,
|
|
4353
4336
|
blackBox: blackBox
|
|
@@ -6119,7 +6102,7 @@ var HarmonicThemeProvider = function HarmonicThemeProvider(_ref) {
|
|
|
6119
6102
|
}, themedChildren.length === 1 ? themedChildren[0] : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, themedChildren));
|
|
6120
6103
|
};
|
|
6121
6104
|
|
|
6122
|
-
var _excluded$
|
|
6105
|
+
var _excluded$e = ["id", "text"];
|
|
6123
6106
|
var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
6124
6107
|
var tabs = _ref.tabs,
|
|
6125
6108
|
onTabClick = _ref.onTabClick,
|
|
@@ -6129,6 +6112,8 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
6129
6112
|
bottomBorder = _ref$bottomBorder === void 0 ? false : _ref$bottomBorder,
|
|
6130
6113
|
_ref$withShadow = _ref.withShadow,
|
|
6131
6114
|
withShadow = _ref$withShadow === void 0 ? false : _ref$withShadow,
|
|
6115
|
+
_ref$offsetHeight = _ref.offsetHeight,
|
|
6116
|
+
offsetHeight = _ref$offsetHeight === void 0 ? 0 : _ref$offsetHeight,
|
|
6132
6117
|
className = _ref.className;
|
|
6133
6118
|
var tabListRef = React.useRef(null);
|
|
6134
6119
|
var wrapperRef = React.useRef(null);
|
|
@@ -6149,12 +6134,27 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
6149
6134
|
var isSelectedItem = function isSelectedItem(id) {
|
|
6150
6135
|
return id === selectedItem;
|
|
6151
6136
|
};
|
|
6152
|
-
var
|
|
6137
|
+
var onClickTab = function onClickTab(e, id) {
|
|
6138
|
+
e.preventDefault();
|
|
6153
6139
|
if (onTabClick) {
|
|
6154
6140
|
onTabClick(e, id);
|
|
6155
6141
|
}
|
|
6156
6142
|
setSelectedItem(id);
|
|
6157
6143
|
};
|
|
6144
|
+
React.useEffect(function () {
|
|
6145
|
+
if (!selectedItem) return;
|
|
6146
|
+
var targetSectionElement = document.getElementById(selectedItem);
|
|
6147
|
+
if (targetSectionElement) {
|
|
6148
|
+
var sectionTop = targetSectionElement.getBoundingClientRect().top;
|
|
6149
|
+
var scrollPosition = window.scrollY + sectionTop - offsetHeight;
|
|
6150
|
+
// Instant scroll
|
|
6151
|
+
window.scrollTo(0, scrollPosition);
|
|
6152
|
+
}
|
|
6153
|
+
var clickedTab = document.getElementById("tablink-" + selectedItem);
|
|
6154
|
+
if (clickedTab) {
|
|
6155
|
+
clickedTab.focus();
|
|
6156
|
+
}
|
|
6157
|
+
}, [selectedItem, offsetHeight]);
|
|
6158
6158
|
var getScrollWidth = function getScrollWidth() {
|
|
6159
6159
|
var width = 0;
|
|
6160
6160
|
var selectedItemIndex = tabs.findIndex(function (el) {
|
|
@@ -6326,7 +6326,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
6326
6326
|
}, tabs.map(function (_ref4) {
|
|
6327
6327
|
var id = _ref4.id,
|
|
6328
6328
|
text = _ref4.text,
|
|
6329
|
-
rest = _objectWithoutPropertiesLoose(_ref4, _excluded$
|
|
6329
|
+
rest = _objectWithoutPropertiesLoose(_ref4, _excluded$e);
|
|
6330
6330
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
6331
6331
|
key: id
|
|
6332
6332
|
}, /*#__PURE__*/React__default.createElement(TabLink, Object.assign({
|
|
@@ -6334,7 +6334,7 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
6334
6334
|
className: "anchor-tab-bar-tablink",
|
|
6335
6335
|
id: "tablink-" + id,
|
|
6336
6336
|
onClick: function onClick(e) {
|
|
6337
|
-
return
|
|
6337
|
+
return onClickTab(e, id);
|
|
6338
6338
|
},
|
|
6339
6339
|
tabIndex: 0,
|
|
6340
6340
|
hoverColor: theme === exports.ThemeType.Core ? ThemeColor['primary-red'] : ThemeColor['primary-black']
|
|
@@ -6388,7 +6388,7 @@ var PrimaryButtonReverse = /*#__PURE__*/styled__default(PrimaryButton)(_template
|
|
|
6388
6388
|
var MessageWrapper = /*#__PURE__*/styled__default.div(_templateObject9$3 || (_templateObject9$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n margin-right: var(--grid-outer-margin);\n height: var(--button-height);\n\n h6 {\n margin: 0;\n padding: 0;\n }\n\n @media ", " {\n & {\n margin-right: var(--grid-margin);\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), devices.tablet, devices.mobile);
|
|
6389
6389
|
var MessageWrapperMobile = /*#__PURE__*/styled__default.div(_templateObject0$3 || (_templateObject0$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n h6 {\n margin: 0;\n padding: 0;\n }\n display: none;\n\n @media ", " {\n & {\n display: flex;\n align-items: center;\n margin-left: var(--grid-margin);\n padding: 12px 0;\n }\n }\n"])), devices.mobile);
|
|
6390
6390
|
|
|
6391
|
-
var _excluded$
|
|
6391
|
+
var _excluded$f = ["text"],
|
|
6392
6392
|
_excluded2$1 = ["text"];
|
|
6393
6393
|
var TitleWithCTA = function TitleWithCTA(_ref) {
|
|
6394
6394
|
var title = _ref.title,
|
|
@@ -6398,7 +6398,7 @@ var TitleWithCTA = function TitleWithCTA(_ref) {
|
|
|
6398
6398
|
message = _ref.message;
|
|
6399
6399
|
var _ref2 = (links == null ? void 0 : links[0]) || {},
|
|
6400
6400
|
primaryButtonText = _ref2.text,
|
|
6401
|
-
primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
6401
|
+
primaryButtonProps = _objectWithoutPropertiesLoose(_ref2, _excluded$f);
|
|
6402
6402
|
var _ref3 = (links == null ? void 0 : links[1]) || {},
|
|
6403
6403
|
secondaryButtonText = _ref3.text,
|
|
6404
6404
|
secondaryButtonProps = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
|
|
@@ -7180,10 +7180,10 @@ var UpsellSection = function UpsellSection(_ref) {
|
|
|
7180
7180
|
};
|
|
7181
7181
|
|
|
7182
7182
|
var _templateObject$L, _templateObject2$y;
|
|
7183
|
-
var StickyBarWrapper = /*#__PURE__*/styled__default.div(_templateObject$L || (_templateObject$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n top: 0;\n position: sticky;\n z-index: ", ";\n background-color: var(--base-
|
|
7183
|
+
var StickyBarWrapper = /*#__PURE__*/styled__default.div(_templateObject$L || (_templateObject$L = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n top: 0;\n position: sticky;\n z-index: ", ";\n background-color: var(--color-base-white);\n"])), zIndexes.anchor);
|
|
7184
7184
|
var StickyBarGrid = /*#__PURE__*/styled__default(Grid)(_templateObject2$y || (_templateObject2$y = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n padding: 28px 0 26px;\n\n @media ", " {\n padding: 24px 0 28px;\n }\n\n @media ", " {\n border-bottom: none;\n }\n"])), function (_ref) {
|
|
7185
|
-
var
|
|
7186
|
-
return
|
|
7185
|
+
var bottomBorder = _ref.bottomBorder;
|
|
7186
|
+
return bottomBorder && 'border-bottom: 1px solid var(--color-base-light-grey);';
|
|
7187
7187
|
}, devices.mobileAndTablet, devices.mobile);
|
|
7188
7188
|
|
|
7189
7189
|
var StickyBar = function StickyBar(_ref) {
|
|
@@ -7195,12 +7195,15 @@ var StickyBar = function StickyBar(_ref) {
|
|
|
7195
7195
|
columnStartDevice = _ref$columnStartDevic === void 0 ? 2 : _ref$columnStartDevic,
|
|
7196
7196
|
_ref$columnSpanDevice = _ref.columnSpanDevice,
|
|
7197
7197
|
columnSpanDevice = _ref$columnSpanDevice === void 0 ? 12 : _ref$columnSpanDevice,
|
|
7198
|
-
|
|
7199
|
-
|
|
7198
|
+
_ref$bottomBorder = _ref.bottomBorder,
|
|
7199
|
+
bottomBorder = _ref$bottomBorder === void 0 ? true : _ref$bottomBorder,
|
|
7200
|
+
children = _ref.children,
|
|
7201
|
+
className = _ref.className;
|
|
7200
7202
|
return /*#__PURE__*/React__default.createElement(StickyBarWrapper, {
|
|
7201
|
-
"data-testid": "sticky-bar-block"
|
|
7203
|
+
"data-testid": "sticky-bar-block",
|
|
7204
|
+
className: className
|
|
7202
7205
|
}, /*#__PURE__*/React__default.createElement(StickyBarGrid, {
|
|
7203
|
-
|
|
7206
|
+
bottomBorder: bottomBorder
|
|
7204
7207
|
}, /*#__PURE__*/React__default.createElement(GridItem, {
|
|
7205
7208
|
columnStartDesktop: columnStartDesktop,
|
|
7206
7209
|
columnSpanDesktop: columnSpanDesktop,
|
|
@@ -7215,7 +7218,7 @@ var CloseButton = /*#__PURE__*/styled__default.button(_templateObject2$z || (_te
|
|
|
7215
7218
|
var ContentWrapper = /*#__PURE__*/styled__default.div(_templateObject3$o || (_templateObject3$o = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
7216
7219
|
var Overlay = /*#__PURE__*/styled__default(Grid)(_templateObject4$j || (_templateObject4$j = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100vh;\n align-content: center;\n background-color: rgba(0, 0, 0, 0.4);\n"])));
|
|
7217
7220
|
|
|
7218
|
-
var _excluded$
|
|
7221
|
+
var _excluded$g = ["isOpen", "setIsOpen", "children", "appElementId"];
|
|
7219
7222
|
var MAX_Z_INDEX = 9999999999;
|
|
7220
7223
|
if (Modal.defaultStyles.content) {
|
|
7221
7224
|
Modal.defaultStyles.content.position = 'static';
|
|
@@ -7289,7 +7292,7 @@ var ModalWindow = function ModalWindow(_ref) {
|
|
|
7289
7292
|
setIsOpen = _ref.setIsOpen,
|
|
7290
7293
|
children = _ref.children,
|
|
7291
7294
|
appElementId = _ref.appElementId,
|
|
7292
|
-
modalProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7295
|
+
modalProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
7293
7296
|
var isMobile = useMobile();
|
|
7294
7297
|
var customStyles = {
|
|
7295
7298
|
overlay: {
|
|
@@ -7483,7 +7486,7 @@ var getMovedSlides = function getMovedSlides(delta, slideWidths) {
|
|
|
7483
7486
|
return movedSlides;
|
|
7484
7487
|
};
|
|
7485
7488
|
|
|
7486
|
-
var _excluded$
|
|
7489
|
+
var _excluded$h = ["children", "infinite", "onIndexChange", "slidesOffsetBefore", "slidesAriaHidden", "onActiveChange"];
|
|
7487
7490
|
var MAX_CLONES_NUMBER = 6;
|
|
7488
7491
|
var CLICK_DRAG_THRESHOLD = 10;
|
|
7489
7492
|
var getClonesCount = function getClonesCount(infinite, childrenLength) {
|
|
@@ -7508,7 +7511,7 @@ var Swipe = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7508
7511
|
_ref$slidesAriaHidden = _ref.slidesAriaHidden,
|
|
7509
7512
|
slidesAriaHidden = _ref$slidesAriaHidden === void 0 ? false : _ref$slidesAriaHidden,
|
|
7510
7513
|
onActiveChange = _ref.onActiveChange,
|
|
7511
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7514
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
7512
7515
|
var containerRef = React.useRef(null);
|
|
7513
7516
|
var childRefs = React.useRef([]);
|
|
7514
7517
|
var startX = React.useRef(0);
|
|
@@ -7904,18 +7907,18 @@ var getBackgroundColor$1 = function getBackgroundColor(_ref2) {
|
|
|
7904
7907
|
var _templateObject$Q;
|
|
7905
7908
|
var AuxiliaryButtonWrapper = /*#__PURE__*/styled__default(Button)(_templateObject$Q || (_templateObject$Q = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n background-color: ", ";\n height: 20px;\n border: none;\n padding: 0;\n color: ", ";\n width: fit-content;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n cursor: pointer;\n text-decoration: none;\n box-sizing: border-box;\n\n && span svg * {\n fill: ", ";\n }\n\n .auxiliaryButtonIcon {\n width: 12px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n"])), getBackgroundColor$1, getTextColor$3, getTextColor$3);
|
|
7906
7909
|
|
|
7907
|
-
var _excluded$
|
|
7910
|
+
var _excluded$i = ["children", "className"];
|
|
7908
7911
|
var AuxiliaryButton = function AuxiliaryButton(_ref) {
|
|
7909
7912
|
var children = _ref.children,
|
|
7910
7913
|
className = _ref.className,
|
|
7911
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7914
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
7912
7915
|
return /*#__PURE__*/React__default.createElement(AuxiliaryButtonWrapper, Object.assign({}, props, {
|
|
7913
7916
|
iconClassName: "auxiliaryButtonIcon",
|
|
7914
7917
|
className: className
|
|
7915
7918
|
}), children);
|
|
7916
7919
|
};
|
|
7917
7920
|
|
|
7918
|
-
var _excluded$
|
|
7921
|
+
var _excluded$j = ["text"],
|
|
7919
7922
|
_excluded2$2 = ["text"];
|
|
7920
7923
|
var _buttonTypeToButton;
|
|
7921
7924
|
var buttonTypeToButton = (_buttonTypeToButton = {}, _buttonTypeToButton[exports.ButtonType.Primary] = PrimaryButton, _buttonTypeToButton[exports.ButtonType.Secondary] = SecondaryButton, _buttonTypeToButton[exports.ButtonType.Tertiary] = TertiaryButton, _buttonTypeToButton);
|
|
@@ -7926,7 +7929,7 @@ var Buttons = function Buttons(_ref) {
|
|
|
7926
7929
|
var _ref2 = firstButton || {},
|
|
7927
7930
|
_ref2$text = _ref2.text,
|
|
7928
7931
|
firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
7929
|
-
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
7932
|
+
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$j);
|
|
7930
7933
|
var secondButton = links == null ? void 0 : links[1];
|
|
7931
7934
|
var _ref3 = secondButton || {},
|
|
7932
7935
|
_ref3$text = _ref3.text,
|
|
@@ -8350,7 +8353,7 @@ var ButtonsContainer$1 = /*#__PURE__*/styled__default.div(_templateObject12$2 ||
|
|
|
8350
8353
|
return '';
|
|
8351
8354
|
});
|
|
8352
8355
|
|
|
8353
|
-
var _excluded$
|
|
8356
|
+
var _excluded$k = ["text"],
|
|
8354
8357
|
_excluded2$3 = ["text"];
|
|
8355
8358
|
var _buttonTypeToButton$1;
|
|
8356
8359
|
var LENGTH_LARGE_TEXT$1 = 28;
|
|
@@ -8400,7 +8403,7 @@ var Card = function Card(_ref) {
|
|
|
8400
8403
|
var _ref2 = firstButton || {},
|
|
8401
8404
|
_ref2$text = _ref2.text,
|
|
8402
8405
|
firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
8403
|
-
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
8406
|
+
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$k);
|
|
8404
8407
|
var primaryButtonTextTruncate = size === 'small' ? truncate(firstButtonText, LENGTH_SMALL_TEXT$2) : truncate(firstButtonText, LENGTH_LARGE_TEXT$1);
|
|
8405
8408
|
var secondButton = links == null ? void 0 : links[1];
|
|
8406
8409
|
var _ref3 = secondButton || {},
|
|
@@ -8745,7 +8748,7 @@ var HotFiltersWrapper = /*#__PURE__*/styled__default.div(_templateObject$Z || (_
|
|
|
8745
8748
|
var HotFilterOptionsWrapper = /*#__PURE__*/styled__default.div(_templateObject2$K || (_templateObject2$K = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n width: fit-content;\n min-width: 400px;\n justify-content: space-between;\n gap: 16px;\n font-family: var(--font-family-sans);\n\n @media ", " {\n gap: 10px;\n }\n"])), devices.mobile);
|
|
8746
8749
|
var StyledHotFiltersButton = /*#__PURE__*/styled__default(PrimaryButton)(_templateObject3$x || (_templateObject3$x = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid var(--color-base-black);\n min-width: fit-content;\n\n :hover {\n color: var(--color-base-white);\n }\n"])));
|
|
8747
8750
|
|
|
8748
|
-
var _excluded$
|
|
8751
|
+
var _excluded$l = ["text", "onClick"];
|
|
8749
8752
|
var HotFilters = function HotFilters(_ref) {
|
|
8750
8753
|
var items = _ref.items,
|
|
8751
8754
|
className = _ref.className,
|
|
@@ -8761,7 +8764,7 @@ var HotFilters = function HotFilters(_ref) {
|
|
|
8761
8764
|
}, /*#__PURE__*/React__default.createElement(HotFilterOptionsWrapper, null, items.map(function (item, index) {
|
|
8762
8765
|
var text = item.text,
|
|
8763
8766
|
_onClick = item.onClick,
|
|
8764
|
-
rest = _objectWithoutPropertiesLoose(item, _excluded$
|
|
8767
|
+
rest = _objectWithoutPropertiesLoose(item, _excluded$l);
|
|
8765
8768
|
var isSelected = index === selectedIndex;
|
|
8766
8769
|
return /*#__PURE__*/React__default.createElement(StyledHotFiltersButton, Object.assign({
|
|
8767
8770
|
key: index,
|
|
@@ -9090,7 +9093,7 @@ var TextWrapper$1 = /*#__PURE__*/styled__default.div(_templateObject6$i || (_tem
|
|
|
9090
9093
|
var ButtonWrapper$2 = /*#__PURE__*/styled__default.div(_templateObject7$d || (_templateObject7$d = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n grid-area: button;\n align-self: end;\n display: flex;\n justify-content: center;\n margin-top: 40px;\n\n @media ", " {\n & {\n margin-top: 0px;\n margin-bottom: 20px;\n }\n }\n"])), devices.mobile);
|
|
9091
9094
|
var ScrollDownWrapper = /*#__PURE__*/styled__default.div(_templateObject8$a || (_templateObject8$a = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 20px;\n left: var(--grid-outer-margin);\n width: fit-content;\n z-index: ", ";\n\n @keyframes UpDown {\n 0%,\n 100% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(8px);\n }\n }\n\n a {\n font-size: var(--font-size-overline-1);\n font-weight: var(--font-weight-overline-1);\n letter-spacing: var(--letter-spacing-overline-1);\n border: none;\n padding: 0;\n :hover {\n border: none;\n\n > span {\n animation: UpDown 1500ms linear infinite;\n }\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n\n @media ", " {\n & {\n display: none;\n }\n }\n"])), zIndexes.contentOverlay, devices.mobile, devices.tablet);
|
|
9092
9095
|
|
|
9093
|
-
var _excluded$
|
|
9096
|
+
var _excluded$m = ["text"];
|
|
9094
9097
|
var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
9095
9098
|
var children = _ref.children,
|
|
9096
9099
|
text = _ref.text,
|
|
@@ -9108,7 +9111,7 @@ var PageHeadingImpact = function PageHeadingImpact(_ref) {
|
|
|
9108
9111
|
var truncatedText = text == null ? void 0 : text.substring(0, 75);
|
|
9109
9112
|
var _ref2 = link || {},
|
|
9110
9113
|
linkText = _ref2.text,
|
|
9111
|
-
restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
9114
|
+
restLink = _objectWithoutPropertiesLoose(_ref2, _excluded$m);
|
|
9112
9115
|
return /*#__PURE__*/React__default.createElement(ImpactWrapper, {
|
|
9113
9116
|
bgUrlDesktop: bgUrlDesktop,
|
|
9114
9117
|
bgUrlDevice: bgUrlDevice,
|
|
@@ -9522,7 +9525,7 @@ var CompactHeaderBranding = function CompactHeaderBranding(_ref) {
|
|
|
9522
9525
|
return /*#__PURE__*/React__default.createElement(CompactHeaderLogoWrapper, null, renderBranding(brandingStyle, invert, brandingText, brandingLink));
|
|
9523
9526
|
};
|
|
9524
9527
|
|
|
9525
|
-
var _excluded$
|
|
9528
|
+
var _excluded$n = ["text"];
|
|
9526
9529
|
var useResponsiveVideo = function useResponsiveVideo(video, poster) {
|
|
9527
9530
|
var mobileVideo = video.mobile || video.desktop;
|
|
9528
9531
|
var desktopVideo = video.desktop || video.mobile;
|
|
@@ -9627,7 +9630,7 @@ var PageHeadingCompact = function PageHeadingCompact(_ref4) {
|
|
|
9627
9630
|
showCopy = _ref4$showCopy === void 0 ? true : _ref4$showCopy;
|
|
9628
9631
|
var _ref5 = link || {},
|
|
9629
9632
|
linkText = _ref5.text,
|
|
9630
|
-
restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$
|
|
9633
|
+
restLink = _objectWithoutPropertiesLoose(_ref5, _excluded$n);
|
|
9631
9634
|
// const titleSize = title && title.length > 20 ? 4 : 3;
|
|
9632
9635
|
var video = {
|
|
9633
9636
|
elementId: 'compact-header-video',
|
|
@@ -10091,7 +10094,7 @@ var HarmonicHeaderWithWrapper = /*#__PURE__*/styled__default(HarmonicHeader)(_te
|
|
|
10091
10094
|
var BodyCopyHarmonicWithWrapper$1 = /*#__PURE__*/styled__default(BodyCopyHarmonic)(_templateObject15$1 || (_templateObject15$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0;\n margin: 0;\n margin-bottom: 32px;\n whiete-space: break-spaces;\n overflow-wrap: break-word;\n\n a {\n text-decoration: underline;\n cursor: pointer;\n\n &[href^='tel:'] {\n text-decoration: none;\n }\n\n &:link {\n color: var(--color-primary-black);\n }\n\n &:visited {\n color: var(--color-base-dark-grey);\n }\n\n &:hover {\n color: var(--color-primary-red);\n }\n }\n @media ", " {\n margin-bottom: 24px;\n }\n"])), devices.mobile);
|
|
10092
10095
|
var HarmonicSubtitleWithWrapper = /*#__PURE__*/styled__default(HarmonicSubtitle)(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n overflow-wrap: break-word;\n margin-bottom: 16px;\n"])));
|
|
10093
10096
|
|
|
10094
|
-
var _excluded$
|
|
10097
|
+
var _excluded$o = ["text"],
|
|
10095
10098
|
_excluded2$4 = ["text"],
|
|
10096
10099
|
_excluded3 = ["text"];
|
|
10097
10100
|
var _buttonTypeToButton$2;
|
|
@@ -10152,7 +10155,7 @@ var PromoWithTags = function PromoWithTags(_ref) {
|
|
|
10152
10155
|
var _ref2 = firstButton || {},
|
|
10153
10156
|
_ref2$text = _ref2.text,
|
|
10154
10157
|
firstButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
10155
|
-
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
10158
|
+
restFirstButton = _objectWithoutPropertiesLoose(_ref2, _excluded$o);
|
|
10156
10159
|
var primaryButtonTextTruncate = truncate(firstButtonText, LENGTH_TEXT$1);
|
|
10157
10160
|
var secondButton = links == null ? void 0 : links[1];
|
|
10158
10161
|
var _ref3 = secondButton || {},
|
|
@@ -10427,7 +10430,7 @@ var PromoChild = function PromoChild(_ref) {
|
|
|
10427
10430
|
}));
|
|
10428
10431
|
};
|
|
10429
10432
|
|
|
10430
|
-
var _excluded$
|
|
10433
|
+
var _excluded$p = ["text"],
|
|
10431
10434
|
_excluded2$5 = ["text"];
|
|
10432
10435
|
var LENGTH_TEXT$3 = 28;
|
|
10433
10436
|
var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
@@ -10454,7 +10457,7 @@ var PromoWithTitle = function PromoWithTitle(_ref) {
|
|
|
10454
10457
|
var _ref2 = primaryButton || {},
|
|
10455
10458
|
_ref2$text = _ref2.text,
|
|
10456
10459
|
primaryButtonText = _ref2$text === void 0 ? '' : _ref2$text,
|
|
10457
|
-
restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
10460
|
+
restPrimaryButton = _objectWithoutPropertiesLoose(_ref2, _excluded$p);
|
|
10458
10461
|
var primaryButtonTextTruncate = truncate(primaryButtonText, LENGTH_TEXT$3);
|
|
10459
10462
|
var tertiaryButton = links == null ? void 0 : links[1];
|
|
10460
10463
|
var _ref3 = tertiaryButton || {},
|
|
@@ -11153,7 +11156,7 @@ var ErrorLabel$5 = /*#__PURE__*/styled__default.div(_templateObject4$C || (_temp
|
|
|
11153
11156
|
return "var(--base-color-errorstate)";
|
|
11154
11157
|
});
|
|
11155
11158
|
|
|
11156
|
-
var _excluded$
|
|
11159
|
+
var _excluded$q = ["label", "error", "width", "darkMode", "isSearchable", "components"];
|
|
11157
11160
|
var DropdownIndicator = function DropdownIndicator(props) {
|
|
11158
11161
|
return /*#__PURE__*/React__default.createElement(Select$1.components.DropdownIndicator, Object.assign({}, props), /*#__PURE__*/React__default.createElement(Icon, {
|
|
11159
11162
|
iconName: "DropdownArrow"
|
|
@@ -11204,7 +11207,7 @@ var SelectComponent = function SelectComponent(_ref2) {
|
|
|
11204
11207
|
_ref2$isSearchable = _ref2.isSearchable,
|
|
11205
11208
|
isSearchable = _ref2$isSearchable === void 0 ? false : _ref2$isSearchable,
|
|
11206
11209
|
components = _ref2.components,
|
|
11207
|
-
selectProps = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
11210
|
+
selectProps = _objectWithoutPropertiesLoose(_ref2, _excluded$q);
|
|
11208
11211
|
return /*#__PURE__*/React__default.createElement(WrapperComponent, {
|
|
11209
11212
|
label: label,
|
|
11210
11213
|
error: error,
|
|
@@ -11222,7 +11225,7 @@ var SelectComponent = function SelectComponent(_ref2) {
|
|
|
11222
11225
|
})));
|
|
11223
11226
|
};
|
|
11224
11227
|
|
|
11225
|
-
var _excluded$
|
|
11228
|
+
var _excluded$r = ["label", "error", "width", "darkMode", "components"];
|
|
11226
11229
|
/**
|
|
11227
11230
|
* The Select2Async component is similar to Select 2, but uses react-select async
|
|
11228
11231
|
* component for select instead of regular react-select component. This can be used
|
|
@@ -11244,7 +11247,7 @@ var SelectComponent$1 = function SelectComponent(_ref) {
|
|
|
11244
11247
|
_ref$darkMode = _ref.darkMode,
|
|
11245
11248
|
darkMode = _ref$darkMode === void 0 ? false : _ref$darkMode,
|
|
11246
11249
|
components = _ref.components,
|
|
11247
|
-
selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
11250
|
+
selectProps = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
11248
11251
|
return /*#__PURE__*/React__default.createElement(WrapperComponent, {
|
|
11249
11252
|
label: label,
|
|
11250
11253
|
error: error,
|
|
@@ -12584,11 +12587,11 @@ var HighlightsCarousel = function HighlightsCarousel(_ref) {
|
|
|
12584
12587
|
})));
|
|
12585
12588
|
};
|
|
12586
12589
|
|
|
12587
|
-
var _excluded$
|
|
12590
|
+
var _excluded$s = ["logo", "slides"];
|
|
12588
12591
|
var HighlightsCinema = function HighlightsCinema(_ref) {
|
|
12589
12592
|
var logo = _ref.logo,
|
|
12590
12593
|
slides = _ref.slides,
|
|
12591
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12594
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
12592
12595
|
var slidesWithLinks = slides.map(function (slide) {
|
|
12593
12596
|
var links = processSlideLinks(slide.links);
|
|
12594
12597
|
return _extends({}, slide, {
|
|
@@ -12605,10 +12608,10 @@ var HighlightsCinema = function HighlightsCinema(_ref) {
|
|
|
12605
12608
|
})));
|
|
12606
12609
|
};
|
|
12607
12610
|
|
|
12608
|
-
var _excluded$
|
|
12611
|
+
var _excluded$t = ["slides"];
|
|
12609
12612
|
var HighlightsCore = function HighlightsCore(_ref) {
|
|
12610
12613
|
var slides = _ref.slides,
|
|
12611
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12614
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
12612
12615
|
var slidesWithLinks = slides.map(function (slide) {
|
|
12613
12616
|
var links = processSlideLinks(slide.links);
|
|
12614
12617
|
return _extends({}, slide, {
|
|
@@ -12622,11 +12625,11 @@ var HighlightsCore = function HighlightsCore(_ref) {
|
|
|
12622
12625
|
})));
|
|
12623
12626
|
};
|
|
12624
12627
|
|
|
12625
|
-
var _excluded$
|
|
12628
|
+
var _excluded$u = ["logo", "slides"];
|
|
12626
12629
|
var HighlightsStream = function HighlightsStream(_ref) {
|
|
12627
12630
|
var logo = _ref.logo,
|
|
12628
12631
|
slides = _ref.slides,
|
|
12629
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
12632
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
12630
12633
|
var slidesWithLinks = slides.map(function (slide) {
|
|
12631
12634
|
var links = processSlideLinks(slide.links);
|
|
12632
12635
|
return _extends({}, slide, {
|