@thecb/components 11.11.1-beta.2 → 11.11.2
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/dist/index.cjs.js +64 -61
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +64 -61
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card-type/CardType.js +1 -5
- package/src/components/atoms/formatted-bank-account/FormattedBankAccount.js +11 -5
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.js +30 -30
- package/src/components/atoms/link/InternalLink.js +3 -1
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -21673,6 +21673,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
21673
21673
|
});
|
|
21674
21674
|
/* eslint-enable no-unused-vars */
|
|
21675
21675
|
|
|
21676
|
+
var _excluded$u = ["to", "color", "children", "active", "fontSize", "lineheight", "fontWeight", "variant", "margin", "tabIndex", "dataQa", "extraStyles", "isUnderlined", "hoverUnderline", "extraHoverStyles", "extraActiveStyles", "extraFocusStyles"];
|
|
21676
21677
|
var InternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21677
21678
|
var _ref$to = _ref.to,
|
|
21678
21679
|
to = _ref$to === void 0 ? "" : _ref$to,
|
|
@@ -21699,10 +21700,11 @@ var InternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
21699
21700
|
_ref$extraActiveStyle = _ref.extraActiveStyles,
|
|
21700
21701
|
extraActiveStyles = _ref$extraActiveStyle === void 0 ? "" : _ref$extraActiveStyle,
|
|
21701
21702
|
_ref$extraFocusStyles = _ref.extraFocusStyles,
|
|
21702
|
-
extraFocusStyles = _ref$extraFocusStyles === void 0 ? "" : _ref$extraFocusStyles
|
|
21703
|
+
extraFocusStyles = _ref$extraFocusStyles === void 0 ? "" : _ref$extraFocusStyles,
|
|
21704
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
21703
21705
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
21704
21706
|
var themeValues = createThemeValues(themeContext, fallbackValues$a, "Link", variant);
|
|
21705
|
-
return /*#__PURE__*/React__default.createElement(StyledInternalLink, {
|
|
21707
|
+
return /*#__PURE__*/React__default.createElement(StyledInternalLink, _extends({
|
|
21706
21708
|
to: to,
|
|
21707
21709
|
color: color,
|
|
21708
21710
|
lineheight: lineheight,
|
|
@@ -21722,7 +21724,7 @@ var InternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
21722
21724
|
extraFocusStyles: extraFocusStyles,
|
|
21723
21725
|
"data-qa": dataQa,
|
|
21724
21726
|
ref: ref
|
|
21725
|
-
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
21727
|
+
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
21726
21728
|
});
|
|
21727
21729
|
|
|
21728
21730
|
var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
@@ -21757,7 +21759,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
21757
21759
|
})));
|
|
21758
21760
|
};
|
|
21759
21761
|
|
|
21760
|
-
var _excluded$
|
|
21762
|
+
var _excluded$v = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
21761
21763
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
21762
21764
|
var _ref$url = _ref.url,
|
|
21763
21765
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -21772,7 +21774,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
21772
21774
|
_ref$newTab = _ref.newTab,
|
|
21773
21775
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
21774
21776
|
dataQa = _ref.dataQa,
|
|
21775
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
21777
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
21776
21778
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
21777
21779
|
var children = _ref2.children,
|
|
21778
21780
|
url = _ref2.url,
|
|
@@ -21860,7 +21862,7 @@ var ParagraphText = styled__default.p.withConfig({
|
|
|
21860
21862
|
return extraStyles;
|
|
21861
21863
|
});
|
|
21862
21864
|
|
|
21863
|
-
var _excluded$
|
|
21865
|
+
var _excluded$w = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
21864
21866
|
var Paragraph = function Paragraph(_ref) {
|
|
21865
21867
|
var themeValues = _ref.themeValues,
|
|
21866
21868
|
_ref$weight = _ref.weight,
|
|
@@ -21874,7 +21876,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
21874
21876
|
dataQa = _ref.dataQa,
|
|
21875
21877
|
children = _ref.children,
|
|
21876
21878
|
as = _ref.as,
|
|
21877
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
21879
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
21878
21880
|
return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
|
|
21879
21881
|
weight: weight,
|
|
21880
21882
|
color: color,
|
|
@@ -22116,7 +22118,7 @@ var ENTER = 13;
|
|
|
22116
22118
|
var ESCAPE = 27;
|
|
22117
22119
|
var SPACEBAR = 32;
|
|
22118
22120
|
|
|
22119
|
-
var _excluded$
|
|
22121
|
+
var _excluded$x = ["title", "name", "checked", "onChange", "disabled", "themeValues", "hidden", "error", "checkboxMargin", "extraStyles", "textExtraStyles", "labelledById", "dataQa", "checkboxExtraStyles", "hasIconOverride", "icon"];
|
|
22120
22122
|
var CheckboxContainer = styled__default.span.withConfig({
|
|
22121
22123
|
displayName: "Checkbox__CheckboxContainer",
|
|
22122
22124
|
componentId: "sc-36kqbv-0"
|
|
@@ -22186,7 +22188,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
22186
22188
|
_ref5$hasIconOverride = _ref5.hasIconOverride,
|
|
22187
22189
|
hasIconOverride = _ref5$hasIconOverride === void 0 ? false : _ref5$hasIconOverride,
|
|
22188
22190
|
Icon = _ref5.icon,
|
|
22189
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
22191
|
+
rest = _objectWithoutProperties(_ref5, _excluded$x);
|
|
22190
22192
|
var _useState = React.useState(false),
|
|
22191
22193
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22192
22194
|
focused = _useState2[0],
|
|
@@ -22542,7 +22544,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
22542
22544
|
return extraStyles;
|
|
22543
22545
|
});
|
|
22544
22546
|
|
|
22545
|
-
var _excluded$
|
|
22547
|
+
var _excluded$y = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
22546
22548
|
var TableRow = function TableRow(_ref) {
|
|
22547
22549
|
var children = _ref.children,
|
|
22548
22550
|
extraStyles = _ref.extraStyles,
|
|
@@ -22552,7 +22554,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
22552
22554
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
22553
22555
|
onClick = _ref.onClick,
|
|
22554
22556
|
themeValues = _ref.themeValues,
|
|
22555
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22557
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
22556
22558
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
22557
22559
|
onClick: onClick,
|
|
22558
22560
|
hoverEffect: hoverEffect,
|
|
@@ -25389,7 +25391,7 @@ var mobileFallbackValues$1 = {
|
|
|
25389
25391
|
};
|
|
25390
25392
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
25391
25393
|
|
|
25392
|
-
var _excluded$
|
|
25394
|
+
var _excluded$z = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25393
25395
|
var isBelowBreakpoint$1 = window.innerWidth < MOBILE_BREAKPOINT$1;
|
|
25394
25396
|
var isTouchDevice$1 = "ontouchstart" in window || navigator.maxTouchPoints > 1;
|
|
25395
25397
|
var mobileDeviceDetected$1 = isBelowBreakpoint$1 && isTouchDevice$1;
|
|
@@ -25412,7 +25414,7 @@ var Detail = function Detail(_ref) {
|
|
|
25412
25414
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
25413
25415
|
dataQa = _ref.dataQa,
|
|
25414
25416
|
children = _ref.children,
|
|
25415
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25417
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
25416
25418
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
25417
25419
|
variant: variant,
|
|
25418
25420
|
as: as,
|
|
@@ -25802,7 +25804,7 @@ var fallbackValues$m = {
|
|
|
25802
25804
|
formFooterPanel: formFooterPanel
|
|
25803
25805
|
};
|
|
25804
25806
|
|
|
25805
|
-
var _excluded$
|
|
25807
|
+
var _excluded$A = ["showErrors", "themeValues"],
|
|
25806
25808
|
_excluded2 = ["ariaLabelledBy", "type", "labelDisplayOverride", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant"];
|
|
25807
25809
|
var InputField = styled__default.input.withConfig({
|
|
25808
25810
|
displayName: "FormInput__InputField",
|
|
@@ -25837,7 +25839,7 @@ var InputField = styled__default.input.withConfig({
|
|
|
25837
25839
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
25838
25840
|
var showErrors = _ref8.showErrors,
|
|
25839
25841
|
themeValues = _ref8.themeValues,
|
|
25840
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
25842
|
+
props = _objectWithoutProperties(_ref8, _excluded$A);
|
|
25841
25843
|
return /*#__PURE__*/React__default.createElement(FormattedInput, props);
|
|
25842
25844
|
}).withConfig({
|
|
25843
25845
|
displayName: "FormInput__FormattedInputField",
|
|
@@ -26042,7 +26044,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26042
26044
|
};
|
|
26043
26045
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$m, "default");
|
|
26044
26046
|
|
|
26045
|
-
var _excluded$
|
|
26047
|
+
var _excluded$B = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26046
26048
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26047
26049
|
var _ref$breakpoint = _ref.breakpoint,
|
|
26048
26050
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -26051,7 +26053,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26051
26053
|
largeChild = _ref.largeChild,
|
|
26052
26054
|
largeChildSize = _ref.largeChildSize,
|
|
26053
26055
|
children = _ref.children,
|
|
26054
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26056
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
26055
26057
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26056
26058
|
padding: "0"
|
|
26057
26059
|
}, rest), /*#__PURE__*/React__default.createElement(Switcher, {
|
|
@@ -26062,24 +26064,24 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26062
26064
|
}, children));
|
|
26063
26065
|
};
|
|
26064
26066
|
|
|
26065
|
-
var _excluded$
|
|
26067
|
+
var _excluded$C = ["childGap", "bottomItem", "children"];
|
|
26066
26068
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26067
26069
|
var _ref$childGap = _ref.childGap,
|
|
26068
26070
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26069
26071
|
bottomItem = _ref.bottomItem,
|
|
26070
26072
|
children = _ref.children,
|
|
26071
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26073
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
26072
26074
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
26073
26075
|
childGap: childGap,
|
|
26074
26076
|
bottomItem: bottomItem
|
|
26075
26077
|
}, rest), children);
|
|
26076
26078
|
};
|
|
26077
26079
|
|
|
26078
|
-
var _excluded$
|
|
26080
|
+
var _excluded$D = ["themeValues", "children"];
|
|
26079
26081
|
var FormContainer = function FormContainer(_ref) {
|
|
26080
26082
|
var themeValues = _ref.themeValues,
|
|
26081
26083
|
children = _ref.children,
|
|
26082
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26084
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
26083
26085
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
26084
26086
|
isMobile = _useContext.isMobile;
|
|
26085
26087
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
@@ -26111,7 +26113,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
|
|
|
26111
26113
|
};
|
|
26112
26114
|
var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$m, "default");
|
|
26113
26115
|
|
|
26114
|
-
var _excluded$
|
|
26116
|
+
var _excluded$E = ["ariaLabelledBy", "labelDisplayOverride", "labelTextWhenNoError", "errorMessages", "helperModal", "field", "fieldActions", "showErrors", "themeValues", "customHeight", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant", "resize", "rows", "cols", "placeholder", "maxLength"];
|
|
26115
26117
|
var TextareaField = styled__default.textarea.withConfig({
|
|
26116
26118
|
displayName: "FormTextarea__TextareaField",
|
|
26117
26119
|
componentId: "sc-94tlb0-0"
|
|
@@ -26174,7 +26176,7 @@ var FormTextarea = function FormTextarea(_ref8) {
|
|
|
26174
26176
|
cols = _ref8.cols,
|
|
26175
26177
|
placeholder = _ref8.placeholder,
|
|
26176
26178
|
maxLength = _ref8.maxLength,
|
|
26177
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
26179
|
+
props = _objectWithoutProperties(_ref8, _excluded$E);
|
|
26178
26180
|
var setValue = function setValue(value) {
|
|
26179
26181
|
if (removeFromValue !== undefined) {
|
|
26180
26182
|
return fieldActions.set(value.replace(removeFromValue, ""));
|
|
@@ -26314,9 +26316,13 @@ var BankItemWrapper = styled__default.div.withConfig({
|
|
|
26314
26316
|
displayName: "FormattedBankAccount__BankItemWrapper",
|
|
26315
26317
|
componentId: "sc-18hcgw4-0"
|
|
26316
26318
|
})(["display:flex;justify-content:flex-start;align-items:center;"]);
|
|
26319
|
+
var BankIconWrapper = styled__default.div.withConfig({
|
|
26320
|
+
displayName: "FormattedBankAccount__BankIconWrapper",
|
|
26321
|
+
componentId: "sc-18hcgw4-1"
|
|
26322
|
+
})(["margin-right:8px;width:36px;height:auto;display:flex;"]);
|
|
26317
26323
|
var BankAccountText = styled__default.h4.withConfig({
|
|
26318
26324
|
displayName: "FormattedBankAccount__BankAccountText",
|
|
26319
|
-
componentId: "sc-18hcgw4-
|
|
26325
|
+
componentId: "sc-18hcgw4-2"
|
|
26320
26326
|
})(["color:", ";font-size:1rem;font-weight:400;line-height:1.5rem;text-align:left;margin-right:0.5rem;display:inline-block;"], function (_ref) {
|
|
26321
26327
|
var color = _ref.color;
|
|
26322
26328
|
return color;
|
|
@@ -26328,10 +26334,7 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
|
|
|
26328
26334
|
accountType = _ref2.accountType,
|
|
26329
26335
|
autoPay = _ref2.autoPay,
|
|
26330
26336
|
themeValues = _ref2.themeValues;
|
|
26331
|
-
return /*#__PURE__*/React__default.createElement(BankItemWrapper, null, /*#__PURE__*/React__default.createElement(
|
|
26332
|
-
padding: "0.25rem 0 0 0",
|
|
26333
|
-
extraStyles: "margin-right: 1rem;"
|
|
26334
|
-
}, /*#__PURE__*/React__default.createElement(BankIcon, null)), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26337
|
+
return /*#__PURE__*/React__default.createElement(BankItemWrapper, null, /*#__PURE__*/React__default.createElement(BankIconWrapper, null, /*#__PURE__*/React__default.createElement(BankIconLarge, null)), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26335
26338
|
childGap: "0"
|
|
26336
26339
|
}, accountType === CHECKING && /*#__PURE__*/React__default.createElement(BankAccountText, {
|
|
26337
26340
|
color: themeValues.textColor
|
|
@@ -26386,7 +26389,7 @@ var CardType = function CardType(_ref) {
|
|
|
26386
26389
|
var _ref2 = cardBrands[normalizedType] || cardBrands["default"],
|
|
26387
26390
|
label = _ref2.label,
|
|
26388
26391
|
IconComponent = _ref2[size];
|
|
26389
|
-
return /*#__PURE__*/React__default.createElement(
|
|
26392
|
+
return /*#__PURE__*/React__default.createElement(IconComponent, null);
|
|
26390
26393
|
};
|
|
26391
26394
|
|
|
26392
26395
|
var textColor$2 = "".concat(CHARADE_GREY);
|
|
@@ -26463,7 +26466,7 @@ var CreditCardWrapper = styled__default.div.withConfig({
|
|
|
26463
26466
|
var CCIconWrapper = styled__default.div.withConfig({
|
|
26464
26467
|
displayName: "FormattedCreditCard__CCIconWrapper",
|
|
26465
26468
|
componentId: "sc-s0ta5l-1"
|
|
26466
|
-
})(["margin-right:
|
|
26469
|
+
})(["margin-right:8px;width:36px;height:auto;display:flex;"]);
|
|
26467
26470
|
var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
26468
26471
|
var lastFour = _ref.lastFour,
|
|
26469
26472
|
type = _ref.type,
|
|
@@ -26578,7 +26581,7 @@ var fallbackValues$q = {
|
|
|
26578
26581
|
fontSize: fontSize$8
|
|
26579
26582
|
};
|
|
26580
26583
|
|
|
26581
|
-
var _excluded$
|
|
26584
|
+
var _excluded$F = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
26582
26585
|
var Heading = function Heading(_ref) {
|
|
26583
26586
|
var themeValues = _ref.themeValues,
|
|
26584
26587
|
_ref$weight = _ref.weight,
|
|
@@ -26597,7 +26600,7 @@ var Heading = function Heading(_ref) {
|
|
|
26597
26600
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
26598
26601
|
dataQa = _ref.dataQa,
|
|
26599
26602
|
children = _ref.children,
|
|
26600
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26603
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
26601
26604
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
26602
26605
|
variant: variant,
|
|
26603
26606
|
as: as,
|
|
@@ -26877,11 +26880,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
26877
26880
|
}, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
|
|
26878
26881
|
};
|
|
26879
26882
|
|
|
26880
|
-
var _excluded$
|
|
26883
|
+
var _excluded$G = ["version"];
|
|
26881
26884
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
26882
26885
|
var _ref$version = _ref.version,
|
|
26883
26886
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
26884
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26887
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
26885
26888
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
26886
26889
|
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
26887
26890
|
};
|
|
@@ -26959,7 +26962,7 @@ var Loading = function Loading() {
|
|
|
26959
26962
|
})))));
|
|
26960
26963
|
};
|
|
26961
26964
|
|
|
26962
|
-
var _excluded$
|
|
26965
|
+
var _excluded$H = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
26963
26966
|
var NavFooter = function NavFooter(_ref) {
|
|
26964
26967
|
var leftContent = _ref.leftContent,
|
|
26965
26968
|
rightContent = _ref.rightContent,
|
|
@@ -26974,7 +26977,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
26974
26977
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
26975
26978
|
isMobile = _ref.isMobile,
|
|
26976
26979
|
footerWidth = _ref.footerWidth,
|
|
26977
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26980
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
26978
26981
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26979
26982
|
padding: footerPadding,
|
|
26980
26983
|
background: backgroundColor,
|
|
@@ -27005,7 +27008,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27005
27008
|
}, rightContent)))))));
|
|
27006
27009
|
};
|
|
27007
27010
|
|
|
27008
|
-
var _excluded$
|
|
27011
|
+
var _excluded$I = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
27009
27012
|
var NavHeader = function NavHeader(_ref) {
|
|
27010
27013
|
var leftContent = _ref.leftContent,
|
|
27011
27014
|
rightContent = _ref.rightContent,
|
|
@@ -27014,7 +27017,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
27014
27017
|
isMobile = _ref.isMobile,
|
|
27015
27018
|
backgroundColor = _ref.backgroundColor,
|
|
27016
27019
|
headerWidth = _ref.headerWidth,
|
|
27017
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27020
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
27018
27021
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27019
27022
|
padding: "0 16px 4px",
|
|
27020
27023
|
background: backgroundColor,
|
|
@@ -27572,7 +27575,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27572
27575
|
borderWidth: "1px",
|
|
27573
27576
|
borderStyle: "solid",
|
|
27574
27577
|
borderRadius: "12px",
|
|
27575
|
-
margin: "6px
|
|
27578
|
+
margin: "6px 8px 6px 6px",
|
|
27576
27579
|
height: "24px",
|
|
27577
27580
|
width: "24px",
|
|
27578
27581
|
variants: buttonBorder,
|
|
@@ -38875,7 +38878,7 @@ var LoadingPill = styled__default.span.withConfig({
|
|
|
38875
38878
|
return backgroundColor;
|
|
38876
38879
|
}, shineFrames);
|
|
38877
38880
|
|
|
38878
|
-
var _excluded$
|
|
38881
|
+
var _excluded$J = ["minWidth", "maxWidth", "exactWidth", "height", "margin", "backgroundColor", "foregroundColor"];
|
|
38879
38882
|
var LoadingLine = function LoadingLine(_ref) {
|
|
38880
38883
|
var minWidth = _ref.minWidth,
|
|
38881
38884
|
maxWidth = _ref.maxWidth,
|
|
@@ -38889,7 +38892,7 @@ var LoadingLine = function LoadingLine(_ref) {
|
|
|
38889
38892
|
backgroundColor = _ref$backgroundColor === void 0 ? SEASHELL_WHITE : _ref$backgroundColor,
|
|
38890
38893
|
_ref$foregroundColor = _ref.foregroundColor,
|
|
38891
38894
|
foregroundColor = _ref$foregroundColor === void 0 ? ALABASTER_WHITE : _ref$foregroundColor,
|
|
38892
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38895
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
38893
38896
|
var calculatedWidth = Math.floor(Math.random() * (parseInt(maxWidth) - parseInt(minWidth) + 1) + parseInt(minWidth));
|
|
38894
38897
|
return /*#__PURE__*/React__default.createElement(LoadingPill, _extends({
|
|
38895
38898
|
"aria-label": "loading",
|
|
@@ -45295,11 +45298,11 @@ var Modal$2 = function Modal(_ref) {
|
|
|
45295
45298
|
};
|
|
45296
45299
|
var ModalControlV2 = withWindowSize(Modal$2);
|
|
45297
45300
|
|
|
45298
|
-
var _excluded$
|
|
45301
|
+
var _excluded$K = ["version"];
|
|
45299
45302
|
var Modal$3 = function Modal(_ref) {
|
|
45300
45303
|
var _ref$version = _ref.version,
|
|
45301
45304
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
45302
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
45305
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
45303
45306
|
var ModalControl = version === "v1" ? Modal$1 : ModalControlV2;
|
|
45304
45307
|
return /*#__PURE__*/React__default.createElement(ModalControl, rest);
|
|
45305
45308
|
};
|
|
@@ -47555,7 +47558,7 @@ var fallbackValues$Q = {
|
|
|
47555
47558
|
labeledAmountTotal: labeledAmountTotal
|
|
47556
47559
|
};
|
|
47557
47560
|
|
|
47558
|
-
var _excluded$
|
|
47561
|
+
var _excluded$L = ["amount"],
|
|
47559
47562
|
_excluded2$1 = ["amount"];
|
|
47560
47563
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
47561
47564
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -47798,7 +47801,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47798
47801
|
return fee.amount > 0;
|
|
47799
47802
|
}).map(function (_ref5) {
|
|
47800
47803
|
var amount = _ref5.amount,
|
|
47801
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
47804
|
+
rest = _objectWithoutProperties(_ref5, _excluded$L);
|
|
47802
47805
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
47803
47806
|
amount: displayCurrency(amount)
|
|
47804
47807
|
});
|
|
@@ -48235,11 +48238,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48235
48238
|
}, errorMessage))))));
|
|
48236
48239
|
};
|
|
48237
48240
|
|
|
48238
|
-
var _excluded$
|
|
48241
|
+
var _excluded$M = ["version"];
|
|
48239
48242
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48240
48243
|
var _ref$version = _ref.version,
|
|
48241
48244
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48242
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48245
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
48243
48246
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48244
48247
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
48245
48248
|
};
|
|
@@ -49047,7 +49050,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49047
49050
|
}, section.content))));
|
|
49048
49051
|
};
|
|
49049
49052
|
|
|
49050
|
-
var _excluded$
|
|
49053
|
+
var _excluded$N = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections", "borderOverride"];
|
|
49051
49054
|
|
|
49052
49055
|
/**
|
|
49053
49056
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49097,7 +49100,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49097
49100
|
_ref$groupedSections = _ref.groupedSections,
|
|
49098
49101
|
groupedSections = _ref$groupedSections === void 0 ? [] : _ref$groupedSections,
|
|
49099
49102
|
borderOverride = _ref.borderOverride,
|
|
49100
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49103
|
+
rest = _objectWithoutProperties(_ref, _excluded$N);
|
|
49101
49104
|
var _useState = React.useState(null),
|
|
49102
49105
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49103
49106
|
focused = _useState2[0],
|
|
@@ -49653,7 +49656,7 @@ var Tab = function Tab(_ref) {
|
|
|
49653
49656
|
}, label));
|
|
49654
49657
|
};
|
|
49655
49658
|
|
|
49656
|
-
var _excluded$
|
|
49659
|
+
var _excluded$O = ["tabsConfig", "tabsDisplayMode", "tabsPadding", "contentPadding", "extraStyles"];
|
|
49657
49660
|
var HORIZONTAL = "horizontal";
|
|
49658
49661
|
var Tabs = function Tabs(_ref) {
|
|
49659
49662
|
var _tabsConfig$tabs$;
|
|
@@ -49666,7 +49669,7 @@ var Tabs = function Tabs(_ref) {
|
|
|
49666
49669
|
contentPadding = _ref$contentPadding === void 0 ? "0" : _ref$contentPadding,
|
|
49667
49670
|
_ref$extraStyles = _ref.extraStyles,
|
|
49668
49671
|
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
49669
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
49672
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
49670
49673
|
var _useState = React.useState(((_tabsConfig$tabs$ = tabsConfig.tabs[0]) === null || _tabsConfig$tabs$ === void 0 ? void 0 : _tabsConfig$tabs$.label) || null),
|
|
49671
49674
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49672
49675
|
activeTab = _useState2[0],
|
|
@@ -49819,7 +49822,7 @@ var Timeout = function Timeout(_ref) {
|
|
|
49819
49822
|
};
|
|
49820
49823
|
var Timeout$1 = withWindowSize(Timeout);
|
|
49821
49824
|
|
|
49822
|
-
var _excluded$
|
|
49825
|
+
var _excluded$P = ["variant", "message", "toastOpen", "closeToastNotification", "extraStyles", "minWidth", "maxWidth", "height", "childGap", "backgroundColor", "role", "ariaLive", "screenReaderMessage", "showScreenReaderMessage"];
|
|
49823
49826
|
var VARIANTS = {
|
|
49824
49827
|
SUCCESS: "success",
|
|
49825
49828
|
ERROR: "error"
|
|
@@ -49848,7 +49851,7 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
49848
49851
|
screenReaderMessage = _ref.screenReaderMessage,
|
|
49849
49852
|
_ref$showScreenReader = _ref.showScreenReaderMessage,
|
|
49850
49853
|
showScreenReaderMessage = _ref$showScreenReader === void 0 ? true : _ref$showScreenReader,
|
|
49851
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49854
|
+
rest = _objectWithoutProperties(_ref, _excluded$P);
|
|
49852
49855
|
var screenReaderMessageRef = React.useRef();
|
|
49853
49856
|
var LIVEREGION_TRANSITION_DELAY = 1000;
|
|
49854
49857
|
React.useEffect(function () {
|
|
@@ -50031,7 +50034,7 @@ var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
|
|
|
50031
50034
|
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
50032
50035
|
});
|
|
50033
50036
|
|
|
50034
|
-
var _excluded$
|
|
50037
|
+
var _excluded$Q = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
50035
50038
|
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
50036
50039
|
var id = _ref.id,
|
|
50037
50040
|
closeMenuCallback = _ref.closeMenuCallback,
|
|
@@ -50047,7 +50050,7 @@ var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
|
50047
50050
|
hoverStyles = _ref.hoverStyles,
|
|
50048
50051
|
activeStyles = _ref.activeStyles,
|
|
50049
50052
|
extraStyles = _ref.extraStyles,
|
|
50050
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
50053
|
+
rest = _objectWithoutProperties(_ref, _excluded$Q);
|
|
50051
50054
|
return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
|
|
50052
50055
|
id: id,
|
|
50053
50056
|
role: "menuItem",
|
|
@@ -50286,7 +50289,7 @@ var ActionLinkButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
50286
50289
|
});
|
|
50287
50290
|
});
|
|
50288
50291
|
|
|
50289
|
-
var _excluded$
|
|
50292
|
+
var _excluded$R = ["width", "height", "color"];
|
|
50290
50293
|
var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
50291
50294
|
var _ref$width = _ref.width,
|
|
50292
50295
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -50294,7 +50297,7 @@ var DropdownIconV2 = function DropdownIconV2(_ref) {
|
|
|
50294
50297
|
height = _ref$height === void 0 ? "19" : _ref$height,
|
|
50295
50298
|
_ref$color = _ref.color,
|
|
50296
50299
|
color = _ref$color === void 0 ? "#292A33" : _ref$color,
|
|
50297
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
50300
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
50298
50301
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
50299
50302
|
"aria-hidden": "true",
|
|
50300
50303
|
width: width,
|
|
@@ -50442,7 +50445,7 @@ var SearchBox = function SearchBox(_ref) {
|
|
|
50442
50445
|
}));
|
|
50443
50446
|
};
|
|
50444
50447
|
|
|
50445
|
-
var _excluded$
|
|
50448
|
+
var _excluded$S = ["width", "height", "color"];
|
|
50446
50449
|
var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
50447
50450
|
var _ref$width = _ref.width,
|
|
50448
50451
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
@@ -50450,7 +50453,7 @@ var CheckboxCheckmarkIcon = function CheckboxCheckmarkIcon(_ref) {
|
|
|
50450
50453
|
height = _ref$height === void 0 ? "18" : _ref$height,
|
|
50451
50454
|
_ref$color = _ref.color,
|
|
50452
50455
|
color = _ref$color === void 0 ? "#FEFEFE" : _ref$color,
|
|
50453
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
50456
|
+
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
50454
50457
|
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
50455
50458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50456
50459
|
width: width,
|
|
@@ -51146,7 +51149,7 @@ var fallbackValues$11 = {
|
|
|
51146
51149
|
justifyContent: justifyContent
|
|
51147
51150
|
};
|
|
51148
51151
|
|
|
51149
|
-
var _excluded$
|
|
51152
|
+
var _excluded$T = ["variant", "imageUrl", "isMobile", "theme", "extraStyles"],
|
|
51150
51153
|
_excluded2$2 = ["theme", "isMobile"],
|
|
51151
51154
|
_excluded3 = ["theme", "isMobile"],
|
|
51152
51155
|
_excluded4 = ["theme", "isMobile"];
|
|
@@ -51169,7 +51172,7 @@ var HeroContainer = styled__default(function (_ref2) {
|
|
|
51169
51172
|
isMobile = _ref2.isMobile,
|
|
51170
51173
|
theme = _ref2.theme,
|
|
51171
51174
|
extraStyles = _ref2.extraStyles,
|
|
51172
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
51175
|
+
props = _objectWithoutProperties(_ref2, _excluded$T);
|
|
51173
51176
|
return /*#__PURE__*/React__default.createElement(Box, props);
|
|
51174
51177
|
}).withConfig({
|
|
51175
51178
|
displayName: "HeroImagestyled__HeroContainer",
|