@thecb/components 10.2.1-beta.7 → 10.2.1-beta.8
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 +352 -49
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.esm.js +350 -50
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/breadcrumb/Breadcrumb.js +1 -0
- package/src/components/atoms/icons/CloseIcon.d.ts +1 -0
- package/src/components/atoms/icons/CloseIcon.js +48 -0
- package/src/components/atoms/icons/TrashIconV2.d.ts +1 -0
- package/src/components/atoms/icons/TrashIconV2.js +41 -0
- package/src/components/atoms/icons/icons.stories.js +5 -1
- package/src/components/atoms/icons/index.d.ts +2 -0
- package/src/components/atoms/icons/index.js +5 -1
- package/src/components/atoms/placeholder/Placeholder.js +1 -1
- package/src/components/atoms/placeholder/Placeholder.stories.js +2 -2
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.stories.js +41 -0
- package/src/components/molecules/index.d.ts +1 -0
- package/src/components/molecules/index.js +1 -0
- package/src/components/molecules/tab-sidebar/TabSidebar.js +2 -1
- package/src/components/templates/default-page-template/DefaultPageTemplate.js +3 -2
package/dist/index.cjs.js
CHANGED
|
@@ -18308,6 +18308,84 @@ var MultiCartIcon = function MultiCartIcon(_ref) {
|
|
|
18308
18308
|
}));
|
|
18309
18309
|
};
|
|
18310
18310
|
|
|
18311
|
+
var _excluded$j = ["iconFill", "iconWidth", "iconHeight"];
|
|
18312
|
+
var CloseIcon = function CloseIcon(_ref) {
|
|
18313
|
+
var _ref$iconFill = _ref.iconFill,
|
|
18314
|
+
iconFill = _ref$iconFill === void 0 ? "#3B414D" : _ref$iconFill,
|
|
18315
|
+
_ref$iconWidth = _ref.iconWidth,
|
|
18316
|
+
iconWidth = _ref$iconWidth === void 0 ? "24" : _ref$iconWidth,
|
|
18317
|
+
_ref$iconHeight = _ref.iconHeight,
|
|
18318
|
+
iconHeight = _ref$iconHeight === void 0 ? "24" : _ref$iconHeight,
|
|
18319
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
18320
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
18321
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18322
|
+
width: iconWidth,
|
|
18323
|
+
height: iconHeight,
|
|
18324
|
+
viewBox: "0 0 24 24",
|
|
18325
|
+
fill: "none"
|
|
18326
|
+
}, rest), /*#__PURE__*/React__default.createElement("title", null, "Close Icon"), /*#__PURE__*/React__default.createElement("path", {
|
|
18327
|
+
fillRule: "evenodd",
|
|
18328
|
+
clipRule: "evenodd",
|
|
18329
|
+
d: "M17.3033 5.98982C17.108 5.79456 16.7915 5.79456 16.5962 5.98982L12 10.586L7.40381 5.98982C7.20854 5.79456 6.89196 5.79456 6.6967 5.98982L5.98959 6.69693C5.79433 6.89219 5.79433 7.20878 5.98959 7.40404L10.5858 12.0002L5.98959 16.5964C5.79433 16.7917 5.79433 17.1083 5.98959 17.3035L6.6967 18.0106C6.89196 18.2059 7.20854 18.2059 7.40381 18.0106L12 13.4144L16.5962 18.0106C16.7915 18.2059 17.108 18.2059 17.3033 18.0106L18.0104 17.3035C18.2057 17.1083 18.2057 16.7917 18.0104 16.5964L13.4142 12.0002L18.0104 7.40404C18.2057 7.20878 18.2057 6.89219 18.0104 6.69693L17.3033 5.98982Z",
|
|
18330
|
+
fill: iconFill
|
|
18331
|
+
}), /*#__PURE__*/React__default.createElement("mask", {
|
|
18332
|
+
id: "mask0_3727_16765",
|
|
18333
|
+
style: {
|
|
18334
|
+
maskType: "luminance"
|
|
18335
|
+
},
|
|
18336
|
+
maskUnits: "userSpaceOnUse",
|
|
18337
|
+
x: "5",
|
|
18338
|
+
y: "5",
|
|
18339
|
+
width: "14",
|
|
18340
|
+
height: "14"
|
|
18341
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18342
|
+
fillRule: "evenodd",
|
|
18343
|
+
clipRule: "evenodd",
|
|
18344
|
+
d: "M17.3033 5.98982C17.108 5.79456 16.7915 5.79456 16.5962 5.98982L12 10.586L7.40381 5.98982C7.20854 5.79456 6.89196 5.79456 6.6967 5.98982L5.98959 6.69693C5.79433 6.89219 5.79433 7.20878 5.98959 7.40404L10.5858 12.0002L5.98959 16.5964C5.79433 16.7917 5.79433 17.1083 5.98959 17.3035L6.6967 18.0106C6.89196 18.2059 7.20854 18.2059 7.40381 18.0106L12 13.4144L16.5962 18.0106C16.7915 18.2059 17.108 18.2059 17.3033 18.0106L18.0104 17.3035C18.2057 17.1083 18.2057 16.7917 18.0104 16.5964L13.4142 12.0002L18.0104 7.40404C18.2057 7.20878 18.2057 6.89219 18.0104 6.69693L17.3033 5.98982Z",
|
|
18345
|
+
fill: "none"
|
|
18346
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
18347
|
+
mask: "url(#mask0_3727_16765)"
|
|
18348
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18349
|
+
d: "M0 0H24V24H0V0Z",
|
|
18350
|
+
fill: iconFill
|
|
18351
|
+
})));
|
|
18352
|
+
};
|
|
18353
|
+
|
|
18354
|
+
var TrashIconV2 = function TrashIconV2(_ref) {
|
|
18355
|
+
var themeValues = _ref.themeValues,
|
|
18356
|
+
iconFill = _ref.iconFill;
|
|
18357
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
18358
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18359
|
+
width: "18",
|
|
18360
|
+
height: "18",
|
|
18361
|
+
viewBox: "0 0 18 18",
|
|
18362
|
+
fill: "none"
|
|
18363
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18364
|
+
fillRule: "evenodd",
|
|
18365
|
+
clipRule: "evenodd",
|
|
18366
|
+
d: "M11.5 4H14V6H4V4H6.5L7.21429 3H10.7857L11.5 4ZM6.99048 15C6.25714 15 5.65714 14.4857 5.65714 13.8571L4.85714 7H12.8571L12.0571 13.8571C12.0571 14.4857 11.4571 15 10.7238 15H6.99048Z",
|
|
18367
|
+
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor
|
|
18368
|
+
}), /*#__PURE__*/React__default.createElement("mask", {
|
|
18369
|
+
id: "mask0_4292_11876",
|
|
18370
|
+
style: {
|
|
18371
|
+
maskType: "luminance"
|
|
18372
|
+
},
|
|
18373
|
+
maskUnits: "userSpaceOnUse",
|
|
18374
|
+
x: "4",
|
|
18375
|
+
y: "3",
|
|
18376
|
+
width: "10",
|
|
18377
|
+
height: "12"
|
|
18378
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18379
|
+
fillRule: "evenodd",
|
|
18380
|
+
clipRule: "evenodd",
|
|
18381
|
+
d: "M11.5 4H14V6H4V4H6.5L7.21429 3H10.7857L11.5 4ZM6.99048 15C6.25714 15 5.65714 14.4857 5.65714 13.8571L4.85714 7H12.8571L12.0571 13.8571C12.0571 14.4857 11.4571 15 10.7238 15H6.99048Z",
|
|
18382
|
+
fill: "white"
|
|
18383
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
18384
|
+
mask: "url(#mask0_4292_11876)"
|
|
18385
|
+
}));
|
|
18386
|
+
};
|
|
18387
|
+
var TrashIconV2$1 = themeComponent(TrashIconV2, "Icons", fallbackValues$2, "primary");
|
|
18388
|
+
|
|
18311
18389
|
var color$2 = "#15749D";
|
|
18312
18390
|
var hoverColor$1 = "#116285";
|
|
18313
18391
|
var activeColor$1 = "#0E506D";
|
|
@@ -18954,7 +19032,7 @@ var mobileFallbackValues = {
|
|
|
18954
19032
|
};
|
|
18955
19033
|
var MOBILE_BREAKPOINT = 768;
|
|
18956
19034
|
|
|
18957
|
-
var _excluded$
|
|
19035
|
+
var _excluded$k = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
18958
19036
|
|
|
18959
19037
|
/*
|
|
18960
19038
|
New responsive text component for Title elements
|
|
@@ -19001,7 +19079,7 @@ var Title = function Title(_ref) {
|
|
|
19001
19079
|
as = _ref$as === void 0 ? "h1" : _ref$as,
|
|
19002
19080
|
dataQa = _ref.dataQa,
|
|
19003
19081
|
children = _ref.children,
|
|
19004
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19082
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
19005
19083
|
return /*#__PURE__*/React__default.createElement(TitleText, _extends({
|
|
19006
19084
|
variant: variant,
|
|
19007
19085
|
as: as,
|
|
@@ -20425,12 +20503,12 @@ var fallbackValues$8 = {
|
|
|
20425
20503
|
linkColor: linkColor
|
|
20426
20504
|
};
|
|
20427
20505
|
|
|
20428
|
-
var _excluded$
|
|
20506
|
+
var _excluded$l = ["variant", "themeValues", "children"];
|
|
20429
20507
|
var BoxWithShadow = function BoxWithShadow(_ref) {
|
|
20430
20508
|
var variant = _ref.variant,
|
|
20431
20509
|
themeValues = _ref.themeValues,
|
|
20432
20510
|
children = _ref.children,
|
|
20433
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20511
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
20434
20512
|
var shadowRegistry = {
|
|
20435
20513
|
baseStandard: "0px 3px 7px 2px ".concat(rgba$1(BLACK, 0.1), ", 0px 1px 2px 1px ").concat(rgba$1(BLACK, 0.1), ";"),
|
|
20436
20514
|
baseHover: "0px 1px 7px 0px ".concat(rgba$1(BLACK, 0.3), ", 0px 1px 4px 0px ").concat(rgba$1(BLACK, 0.2), ", 0px 7px 12px 0px ").concat(rgba$1(BLACK, 0.2), ";"),
|
|
@@ -20490,7 +20568,7 @@ var fallbackValues$a = {
|
|
|
20490
20568
|
externalLinkColor: externalLinkColor
|
|
20491
20569
|
};
|
|
20492
20570
|
|
|
20493
|
-
var _excluded$
|
|
20571
|
+
var _excluded$m = ["hoverColor", "activeColor", "extrastyles"];
|
|
20494
20572
|
var ROYAL_BLUE$1 = ROYAL_BLUE;
|
|
20495
20573
|
var LINK_TEXT_DECORATION$3 = LINK_TEXT_DECORATION;
|
|
20496
20574
|
|
|
@@ -20504,7 +20582,7 @@ var StyledExternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
20504
20582
|
var hoverColor = _ref.hoverColor,
|
|
20505
20583
|
activeColor = _ref.activeColor,
|
|
20506
20584
|
extrastyles = _ref.extrastyles,
|
|
20507
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20585
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
20508
20586
|
return /*#__PURE__*/React__default.createElement("a", _extends({}, props, {
|
|
20509
20587
|
ref: ref
|
|
20510
20588
|
}));
|
|
@@ -20579,7 +20657,7 @@ var ExternalLink = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
20579
20657
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
20580
20658
|
});
|
|
20581
20659
|
|
|
20582
|
-
var _excluded$
|
|
20660
|
+
var _excluded$n = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
|
|
20583
20661
|
var ROYAL_BLUE$2 = ROYAL_BLUE;
|
|
20584
20662
|
var LINK_TEXT_DECORATION$4 = LINK_TEXT_DECORATION;
|
|
20585
20663
|
|
|
@@ -20595,7 +20673,7 @@ var StyledInternalLink = styled__default( /*#__PURE__*/React.forwardRef(function
|
|
|
20595
20673
|
active = _ref.active,
|
|
20596
20674
|
color = _ref.color,
|
|
20597
20675
|
extrastyles = _ref.extrastyles,
|
|
20598
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20676
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
20599
20677
|
return /*#__PURE__*/React__default.createElement(reactRouterDom.Link, _extends({}, props, {
|
|
20600
20678
|
ref: ref
|
|
20601
20679
|
}));
|
|
@@ -20698,7 +20776,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
20698
20776
|
lineheight: themeValues.lineHeight,
|
|
20699
20777
|
fontWeight: themeValues.fontWeight,
|
|
20700
20778
|
margin: themeValues.margin,
|
|
20701
|
-
extraStyles: "\n text-transform: uppercase;\n ".concat(isActive.toString() === "true" && "color: ".concat(themeValues.activeBreadcrumbColor, ";\n pointer-events: none;\n text-decoration: none;\n "), "\n &:first-child {\n margin-left: 0;\n }\n &:active {\n color: ").concat(themeValues.activeColor, ";\n }")
|
|
20779
|
+
extraStyles: "\n text-transform: uppercase;\n text-decoration: none;\n ".concat(isActive.toString() === "true" && "color: ".concat(themeValues.activeBreadcrumbColor, ";\n pointer-events: none;\n text-decoration: none;\n "), "\n &:first-child {\n margin-left: 0;\n }\n &:active {\n color: ").concat(themeValues.activeColor, ";\n }")
|
|
20702
20780
|
}, linkText), index < breadcrumbsList.length - 1 ? /*#__PURE__*/React__default.createElement(IconChevron, null) : /*#__PURE__*/React__default.createElement(React.Fragment, null));
|
|
20703
20781
|
})));
|
|
20704
20782
|
};
|
|
@@ -22278,7 +22356,7 @@ _curry2(function test(pattern, str) {
|
|
|
22278
22356
|
return _cloneRegExp(pattern).test(str);
|
|
22279
22357
|
});
|
|
22280
22358
|
|
|
22281
|
-
var _excluded$
|
|
22359
|
+
var _excluded$o = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
|
|
22282
22360
|
var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
22283
22361
|
var _ref$url = _ref.url,
|
|
22284
22362
|
url = _ref$url === void 0 ? "/" : _ref$url,
|
|
@@ -22293,7 +22371,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
22293
22371
|
_ref$newTab = _ref.newTab,
|
|
22294
22372
|
newTab = _ref$newTab === void 0 ? false : _ref$newTab,
|
|
22295
22373
|
dataQa = _ref.dataQa,
|
|
22296
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
22374
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
22297
22375
|
var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
|
|
22298
22376
|
var children = _ref2.children,
|
|
22299
22377
|
url = _ref2.url,
|
|
@@ -22381,7 +22459,7 @@ var ParagraphText = styled__default.p.withConfig({
|
|
|
22381
22459
|
return extraStyles;
|
|
22382
22460
|
});
|
|
22383
22461
|
|
|
22384
|
-
var _excluded$
|
|
22462
|
+
var _excluded$p = ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"];
|
|
22385
22463
|
var Paragraph = function Paragraph(_ref) {
|
|
22386
22464
|
var themeValues = _ref.themeValues,
|
|
22387
22465
|
_ref$weight = _ref.weight,
|
|
@@ -22395,7 +22473,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
22395
22473
|
dataQa = _ref.dataQa,
|
|
22396
22474
|
children = _ref.children,
|
|
22397
22475
|
as = _ref.as,
|
|
22398
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22476
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
22399
22477
|
return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
|
|
22400
22478
|
weight: weight,
|
|
22401
22479
|
color: color,
|
|
@@ -25704,7 +25782,7 @@ var mobileFallbackValues$1 = {
|
|
|
25704
25782
|
};
|
|
25705
25783
|
var MOBILE_BREAKPOINT$1 = 768;
|
|
25706
25784
|
|
|
25707
|
-
var _excluded$
|
|
25785
|
+
var _excluded$q = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
25708
25786
|
|
|
25709
25787
|
/*
|
|
25710
25788
|
New responsive text component for Detail elements
|
|
@@ -25754,7 +25832,7 @@ var Detail = function Detail(_ref) {
|
|
|
25754
25832
|
as = _ref$as === void 0 ? "p" : _ref$as,
|
|
25755
25833
|
dataQa = _ref.dataQa,
|
|
25756
25834
|
children = _ref.children,
|
|
25757
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25835
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
25758
25836
|
return /*#__PURE__*/React__default.createElement(DetailText, _extends({
|
|
25759
25837
|
variant: variant,
|
|
25760
25838
|
as: as,
|
|
@@ -26464,7 +26542,7 @@ var fallbackValues$k = {
|
|
|
26464
26542
|
formFooterPanel: formFooterPanel
|
|
26465
26543
|
};
|
|
26466
26544
|
|
|
26467
|
-
var _excluded$
|
|
26545
|
+
var _excluded$r = ["showErrors", "themeValues"],
|
|
26468
26546
|
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
|
|
26469
26547
|
var InputField = styled__default.input.withConfig({
|
|
26470
26548
|
displayName: "FormInput__InputField",
|
|
@@ -26499,7 +26577,7 @@ var InputField = styled__default.input.withConfig({
|
|
|
26499
26577
|
var FormattedInputField = styled__default(function (_ref8) {
|
|
26500
26578
|
var showErrors = _ref8.showErrors,
|
|
26501
26579
|
themeValues = _ref8.themeValues,
|
|
26502
|
-
props = _objectWithoutProperties(_ref8, _excluded$
|
|
26580
|
+
props = _objectWithoutProperties(_ref8, _excluded$r);
|
|
26503
26581
|
return /*#__PURE__*/React__default.createElement(FormattedInput, props);
|
|
26504
26582
|
}).withConfig({
|
|
26505
26583
|
displayName: "FormInput__FormattedInputField",
|
|
@@ -26671,7 +26749,7 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26671
26749
|
};
|
|
26672
26750
|
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
|
|
26673
26751
|
|
|
26674
|
-
var _excluded$
|
|
26752
|
+
var _excluded$s = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
|
|
26675
26753
|
var FormInputRow = function FormInputRow(_ref) {
|
|
26676
26754
|
var _ref$breakpoint = _ref.breakpoint,
|
|
26677
26755
|
breakpoint = _ref$breakpoint === void 0 ? "30rem" : _ref$breakpoint,
|
|
@@ -26680,7 +26758,7 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26680
26758
|
largeChild = _ref.largeChild,
|
|
26681
26759
|
largeChildSize = _ref.largeChildSize,
|
|
26682
26760
|
children = _ref.children,
|
|
26683
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26761
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
26684
26762
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
26685
26763
|
padding: "0"
|
|
26686
26764
|
}, rest), /*#__PURE__*/React__default.createElement(Switcher, {
|
|
@@ -26691,24 +26769,24 @@ var FormInputRow = function FormInputRow(_ref) {
|
|
|
26691
26769
|
}, children));
|
|
26692
26770
|
};
|
|
26693
26771
|
|
|
26694
|
-
var _excluded$
|
|
26772
|
+
var _excluded$t = ["childGap", "bottomItem", "children"];
|
|
26695
26773
|
var FormInputColumn = function FormInputColumn(_ref) {
|
|
26696
26774
|
var _ref$childGap = _ref.childGap,
|
|
26697
26775
|
childGap = _ref$childGap === void 0 ? "0.5rem" : _ref$childGap,
|
|
26698
26776
|
bottomItem = _ref.bottomItem,
|
|
26699
26777
|
children = _ref.children,
|
|
26700
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26778
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
26701
26779
|
return /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
26702
26780
|
childGap: childGap,
|
|
26703
26781
|
bottomItem: bottomItem
|
|
26704
26782
|
}, rest), children);
|
|
26705
26783
|
};
|
|
26706
26784
|
|
|
26707
|
-
var _excluded$
|
|
26785
|
+
var _excluded$u = ["themeValues", "children"];
|
|
26708
26786
|
var FormContainer = function FormContainer(_ref) {
|
|
26709
26787
|
var themeValues = _ref.themeValues,
|
|
26710
26788
|
children = _ref.children,
|
|
26711
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26789
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
26712
26790
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
26713
26791
|
isMobile = _useContext.isMobile;
|
|
26714
26792
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
@@ -27018,7 +27096,7 @@ var fallbackValues$o = {
|
|
|
27018
27096
|
fontSize: fontSize$8
|
|
27019
27097
|
};
|
|
27020
27098
|
|
|
27021
|
-
var _excluded$
|
|
27099
|
+
var _excluded$v = ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"];
|
|
27022
27100
|
var Heading = function Heading(_ref) {
|
|
27023
27101
|
var themeValues = _ref.themeValues,
|
|
27024
27102
|
_ref$weight = _ref.weight,
|
|
@@ -27037,7 +27115,7 @@ var Heading = function Heading(_ref) {
|
|
|
27037
27115
|
as = _ref$as === void 0 ? variant : _ref$as,
|
|
27038
27116
|
dataQa = _ref.dataQa,
|
|
27039
27117
|
children = _ref.children,
|
|
27040
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27118
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
27041
27119
|
return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
|
|
27042
27120
|
variant: variant,
|
|
27043
27121
|
as: as,
|
|
@@ -27238,11 +27316,11 @@ var LabeledAmountV2 = function LabeledAmountV2(_ref) {
|
|
|
27238
27316
|
}, /*#__PURE__*/React__default.createElement("span", null, label), /*#__PURE__*/React__default.createElement("span", null, amount));
|
|
27239
27317
|
};
|
|
27240
27318
|
|
|
27241
|
-
var _excluded$
|
|
27319
|
+
var _excluded$w = ["version"];
|
|
27242
27320
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
27243
27321
|
var _ref$version = _ref.version,
|
|
27244
27322
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
27245
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27323
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
27246
27324
|
var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
|
|
27247
27325
|
return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
|
|
27248
27326
|
};
|
|
@@ -27379,7 +27457,7 @@ var Loading = function Loading() {
|
|
|
27379
27457
|
})))));
|
|
27380
27458
|
};
|
|
27381
27459
|
|
|
27382
|
-
var _excluded$
|
|
27460
|
+
var _excluded$x = ["leftContent", "rightContent", "footerMinHeight", "backgroundColor", "largeSide", "largeSideSize", "footerPadding", "isMobile", "footerWidth"];
|
|
27383
27461
|
var NavFooter = function NavFooter(_ref) {
|
|
27384
27462
|
var leftContent = _ref.leftContent,
|
|
27385
27463
|
rightContent = _ref.rightContent,
|
|
@@ -27394,7 +27472,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27394
27472
|
footerPadding = _ref$footerPadding === void 0 ? "1.5rem 1rem" : _ref$footerPadding,
|
|
27395
27473
|
isMobile = _ref.isMobile,
|
|
27396
27474
|
footerWidth = _ref.footerWidth,
|
|
27397
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27475
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
27398
27476
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27399
27477
|
padding: footerPadding,
|
|
27400
27478
|
background: backgroundColor,
|
|
@@ -27425,7 +27503,7 @@ var NavFooter = function NavFooter(_ref) {
|
|
|
27425
27503
|
}, rightContent)))))));
|
|
27426
27504
|
};
|
|
27427
27505
|
|
|
27428
|
-
var _excluded$
|
|
27506
|
+
var _excluded$y = ["leftContent", "rightContent", "headerHeight", "isMobile", "backgroundColor", "headerWidth"];
|
|
27429
27507
|
var NavHeader = function NavHeader(_ref) {
|
|
27430
27508
|
var leftContent = _ref.leftContent,
|
|
27431
27509
|
rightContent = _ref.rightContent,
|
|
@@ -27434,7 +27512,7 @@ var NavHeader = function NavHeader(_ref) {
|
|
|
27434
27512
|
isMobile = _ref.isMobile,
|
|
27435
27513
|
backgroundColor = _ref.backgroundColor,
|
|
27436
27514
|
headerWidth = _ref.headerWidth,
|
|
27437
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27515
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
27438
27516
|
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
27439
27517
|
padding: "0 16px 4px",
|
|
27440
27518
|
background: backgroundColor,
|
|
@@ -27648,7 +27726,10 @@ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
|
|
|
27648
27726
|
dataQa = _ref.dataQa;
|
|
27649
27727
|
return isLink ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
27650
27728
|
to: destination,
|
|
27651
|
-
"data-qa": dataQa
|
|
27729
|
+
"data-qa": dataQa,
|
|
27730
|
+
style: {
|
|
27731
|
+
textDecoration: "none"
|
|
27732
|
+
}
|
|
27652
27733
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
27653
27734
|
padding: "0",
|
|
27654
27735
|
minHeight: "100%",
|
|
@@ -39180,7 +39261,7 @@ var TableRowWrapper = styled__default.tr.withConfig({
|
|
|
39180
39261
|
return extraStyles;
|
|
39181
39262
|
});
|
|
39182
39263
|
|
|
39183
|
-
var _excluded$
|
|
39264
|
+
var _excluded$z = ["children", "extraStyles", "hoverCursor", "hoverEffect", "onClick", "themeValues"];
|
|
39184
39265
|
var TableRow = function TableRow(_ref) {
|
|
39185
39266
|
var children = _ref.children,
|
|
39186
39267
|
extraStyles = _ref.extraStyles,
|
|
@@ -39189,7 +39270,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
39189
39270
|
hoverEffect = _ref$hoverEffect === void 0 ? true : _ref$hoverEffect,
|
|
39190
39271
|
onClick = _ref.onClick,
|
|
39191
39272
|
themeValues = _ref.themeValues,
|
|
39192
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
39273
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
39193
39274
|
return /*#__PURE__*/React__default.createElement(TableRowWrapper, _extends({
|
|
39194
39275
|
onClick: onClick,
|
|
39195
39276
|
hoverEffect: hoverEffect,
|
|
@@ -47619,7 +47700,7 @@ var fallbackValues$N = {
|
|
|
47619
47700
|
labeledAmountTotal: labeledAmountTotal
|
|
47620
47701
|
};
|
|
47621
47702
|
|
|
47622
|
-
var _excluded$
|
|
47703
|
+
var _excluded$A = ["amount"],
|
|
47623
47704
|
_excluded2$1 = ["amount"];
|
|
47624
47705
|
var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
|
|
47625
47706
|
var lineItemElems = _ref.lineItemElems,
|
|
@@ -47859,7 +47940,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
47859
47940
|
return fee.amount > 0;
|
|
47860
47941
|
}).map(function (_ref5) {
|
|
47861
47942
|
var amount = _ref5.amount,
|
|
47862
|
-
rest = _objectWithoutProperties(_ref5, _excluded$
|
|
47943
|
+
rest = _objectWithoutProperties(_ref5, _excluded$A);
|
|
47863
47944
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
47864
47945
|
amount: displayCurrency(amount)
|
|
47865
47946
|
});
|
|
@@ -48279,11 +48360,11 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
48279
48360
|
}, errorMessage))))));
|
|
48280
48361
|
};
|
|
48281
48362
|
|
|
48282
|
-
var _excluded$
|
|
48363
|
+
var _excluded$B = ["version"];
|
|
48283
48364
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48284
48365
|
var _ref$version = _ref.version,
|
|
48285
48366
|
version = _ref$version === void 0 ? "v1" : _ref$version,
|
|
48286
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
48367
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
48287
48368
|
var TermsAndConditionsControl = version === "v1" ? TermsAndConditionsControlV1 : TermsAndConditionsControlV2;
|
|
48288
48369
|
return /*#__PURE__*/React__default.createElement(TermsAndConditionsControl, rest);
|
|
48289
48370
|
};
|
|
@@ -49082,7 +49163,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
|
49082
49163
|
}, section.content))));
|
|
49083
49164
|
};
|
|
49084
49165
|
|
|
49085
|
-
var _excluded$
|
|
49166
|
+
var _excluded$C = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
|
|
49086
49167
|
|
|
49087
49168
|
/**
|
|
49088
49169
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
@@ -49130,7 +49211,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49130
49211
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
49131
49212
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
49132
49213
|
groupedSections = _ref.groupedSections,
|
|
49133
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
49214
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
49134
49215
|
var _useState = React.useState(null),
|
|
49135
49216
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49136
49217
|
focused = _useState2[0],
|
|
@@ -49602,7 +49683,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
49602
49683
|
return /*#__PURE__*/React__default.createElement(InternalLink, {
|
|
49603
49684
|
to: route,
|
|
49604
49685
|
key: "".concat(route, "-").concat(index),
|
|
49605
|
-
extraStyles: "&:hover {\n ".concat(active ? "> * {\n background-color: ".concat(themeValues.activeTabHover, ";\n }") : "> * { \n background-color: rgba(8, 27, 43, 0.05);\n }", "}")
|
|
49686
|
+
extraStyles: "text-decoration: none;\n &:hover {\n ".concat(active ? "> * {\n background-color: ".concat(themeValues.activeTabHover, ";\n }") : "> * { \n background-color: rgba(8, 27, 43, 0.05);\n }", "}")
|
|
49606
49687
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
49607
49688
|
padding: isMobile ? "6px 4px" : "18px 16px",
|
|
49608
49689
|
background: active ? themeValues.activeTabBackground : "transparent",
|
|
@@ -49811,8 +49892,225 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
49811
49892
|
}))));
|
|
49812
49893
|
};
|
|
49813
49894
|
|
|
49814
|
-
var
|
|
49895
|
+
var menuItemBackgroundColor = WHITE;
|
|
49896
|
+
var menuItemColor = ROYAL_BLUE_VIVID;
|
|
49897
|
+
var menuItemColorDelete = RAZZMATAZZ_RED;
|
|
49898
|
+
var menuItemHoverBackgroundColor = CORNFLOWER_BLUE;
|
|
49899
|
+
var menuItemHoverBackgroundColorDelete = BLUSH_RED;
|
|
49900
|
+
var menuItemHoverColor = ROYAL_BLUE_VIVID;
|
|
49815
49901
|
var fallbackValues$U = {
|
|
49902
|
+
menuItemBackgroundColor: menuItemBackgroundColor,
|
|
49903
|
+
menuItemColor: menuItemColor,
|
|
49904
|
+
menuItemColorDelete: menuItemColorDelete,
|
|
49905
|
+
menuItemHoverBackgroundColor: menuItemHoverBackgroundColor,
|
|
49906
|
+
menuItemHoverBackgroundColorDelete: menuItemHoverBackgroundColorDelete,
|
|
49907
|
+
menuItemHoverColor: menuItemHoverColor
|
|
49908
|
+
};
|
|
49909
|
+
|
|
49910
|
+
var PopupMenuItemContainer = styled__default(ButtonWithAction).withConfig({
|
|
49911
|
+
displayName: "PopupMenuItemstyled__PopupMenuItemContainer",
|
|
49912
|
+
componentId: "sc-urj1su-0"
|
|
49913
|
+
})(["width:100%;margin:0;padding:17px 11px;margin-bottom:5px;border:0;cursor:pointer;text-decoration:none;", " &:hover,&:active{text-decoration:none;", "}"], function (_ref) {
|
|
49914
|
+
var theme = _ref.theme,
|
|
49915
|
+
isDeleteAction = _ref.isDeleteAction;
|
|
49916
|
+
return "\n background-color: ".concat(theme.menuItemBackgroundColor, ";\n color: ").concat(isDeleteAction ? theme.menuItemColorDelete : theme.menuItemColor, ";\n ");
|
|
49917
|
+
}, function (_ref2) {
|
|
49918
|
+
var theme = _ref2.theme,
|
|
49919
|
+
isDeleteAction = _ref2.isDeleteAction;
|
|
49920
|
+
return "\n background-color: ".concat(isDeleteAction ? theme.menuItemHoverBackgroundColorDelete : theme.menuItemHoverBackgroundColor, ";\n ");
|
|
49921
|
+
});
|
|
49922
|
+
|
|
49923
|
+
var _excluded$D = ["id", "closeMenuCallback", "action", "themeValues", "text", "hasIcon", "isDeleteAction", "icon", "textExtraStyles", "hoverStyles", "activeStyles", "extraStyles"];
|
|
49924
|
+
var PopupMenuItem = function PopupMenuItem(_ref) {
|
|
49925
|
+
var id = _ref.id,
|
|
49926
|
+
closeMenuCallback = _ref.closeMenuCallback,
|
|
49927
|
+
_action = _ref.action,
|
|
49928
|
+
themeValues = _ref.themeValues,
|
|
49929
|
+
text = _ref.text,
|
|
49930
|
+
_ref$hasIcon = _ref.hasIcon,
|
|
49931
|
+
hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
|
|
49932
|
+
_ref$isDeleteAction = _ref.isDeleteAction,
|
|
49933
|
+
isDeleteAction = _ref$isDeleteAction === void 0 ? false : _ref$isDeleteAction,
|
|
49934
|
+
Icon = _ref.icon,
|
|
49935
|
+
textExtraStyles = _ref.textExtraStyles,
|
|
49936
|
+
hoverStyles = _ref.hoverStyles,
|
|
49937
|
+
activeStyles = _ref.activeStyles,
|
|
49938
|
+
extraStyles = _ref.extraStyles,
|
|
49939
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
49940
|
+
return /*#__PURE__*/React__default.createElement(PopupMenuItemContainer, _extends({
|
|
49941
|
+
id: id,
|
|
49942
|
+
role: "menuItem",
|
|
49943
|
+
text: text,
|
|
49944
|
+
action: function action() {
|
|
49945
|
+
_action();
|
|
49946
|
+
closeMenuCallback();
|
|
49947
|
+
},
|
|
49948
|
+
variant: "smallGhost",
|
|
49949
|
+
isDeleteAction: isDeleteAction,
|
|
49950
|
+
theme: themeValues,
|
|
49951
|
+
contentOverride: true,
|
|
49952
|
+
textExtraStyles: textExtraStyles,
|
|
49953
|
+
hoverStyles: hoverStyles,
|
|
49954
|
+
extraStyles: extraStyles,
|
|
49955
|
+
activeStyles: "outline: none; ".concat(activeStyles)
|
|
49956
|
+
}, rest), /*#__PURE__*/React__default.createElement(Box, {
|
|
49957
|
+
extraStyles: "\n display: flex;\n gap: 8px;\n justify-content: center;\n padding: 0;\n "
|
|
49958
|
+
}, hasIcon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
49959
|
+
iconFill: isDeleteAction ? themeValues.menuItemColorDelete : themeValues.menuItemColor
|
|
49960
|
+
}), text && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
49961
|
+
variant: "pS",
|
|
49962
|
+
weight: FONT_WEIGHT_SEMIBOLD,
|
|
49963
|
+
fontFamily: "Public Sans, sans-serif",
|
|
49964
|
+
color: isDeleteAction ? themeValues.menuItemColorDelete : themeValues.menuItemColor,
|
|
49965
|
+
extraStyles: textExtraStyles
|
|
49966
|
+
}, text)));
|
|
49967
|
+
};
|
|
49968
|
+
var PopupMenuItem$1 = themeComponent(PopupMenuItem, "PopupMenuItem", fallbackValues$U);
|
|
49969
|
+
|
|
49970
|
+
var hoverColor$6 = "#116285";
|
|
49971
|
+
var activeColor$a = "#0E506D";
|
|
49972
|
+
var menuTriggerColor = "#15749D";
|
|
49973
|
+
var backgroundColor$e = "white";
|
|
49974
|
+
var fallbackValues$V = {
|
|
49975
|
+
hoverColor: hoverColor$6,
|
|
49976
|
+
activeColor: activeColor$a,
|
|
49977
|
+
menuTriggerColor: menuTriggerColor,
|
|
49978
|
+
backgroundColor: backgroundColor$e
|
|
49979
|
+
};
|
|
49980
|
+
|
|
49981
|
+
var PopupMenuContainer = styled__default(Box).withConfig({
|
|
49982
|
+
displayName: "PopupMenustyled__PopupMenuContainer",
|
|
49983
|
+
componentId: "sc-1ge13q9-0"
|
|
49984
|
+
})(["display:flex;position:relative;padding:0;"]);
|
|
49985
|
+
var PopupMenuTriggerButton = styled__default(ButtonWithAction).withConfig({
|
|
49986
|
+
displayName: "PopupMenustyled__PopupMenuTriggerButton",
|
|
49987
|
+
componentId: "sc-1ge13q9-1"
|
|
49988
|
+
})(["padding:10px 15px;min-width:auto;&:active,&:focus{outline:none;border:1px solid rgba(196,206,244,1);background-color:rgba(235,239,251,1);}"]);
|
|
49989
|
+
|
|
49990
|
+
var PopupMenu = function PopupMenu(_ref) {
|
|
49991
|
+
var _ref$menuId = _ref.menuId,
|
|
49992
|
+
menuId = _ref$menuId === void 0 ? "popup-menu" : _ref$menuId,
|
|
49993
|
+
_ref$menuItems = _ref.menuItems,
|
|
49994
|
+
menuItems = _ref$menuItems === void 0 ? [] : _ref$menuItems,
|
|
49995
|
+
themeValues = _ref.themeValues,
|
|
49996
|
+
_ref$triggerText = _ref.triggerText,
|
|
49997
|
+
triggerText = _ref$triggerText === void 0 ? "trigger text" : _ref$triggerText,
|
|
49998
|
+
_ref$hasIcon = _ref.hasIcon,
|
|
49999
|
+
hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
|
|
50000
|
+
Icon = _ref.icon,
|
|
50001
|
+
_ref$iconHelpText = _ref.iconHelpText,
|
|
50002
|
+
iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
|
|
50003
|
+
menuFocus = _ref.menuFocus,
|
|
50004
|
+
containerExtraStyles = _ref.containerExtraStyles,
|
|
50005
|
+
textExtraStyles = _ref.textExtraStyles,
|
|
50006
|
+
_ref$minWidth = _ref.minWidth,
|
|
50007
|
+
minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
|
|
50008
|
+
_ref$maxWidth = _ref.maxWidth,
|
|
50009
|
+
maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
|
|
50010
|
+
_ref$height = _ref.height,
|
|
50011
|
+
height = _ref$height === void 0 ? "auto" : _ref$height,
|
|
50012
|
+
position = _ref.position,
|
|
50013
|
+
_ref$transform = _ref.transform,
|
|
50014
|
+
transform = _ref$transform === void 0 ? "none" : _ref$transform,
|
|
50015
|
+
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
50016
|
+
popupExtraStyles = _ref.popupExtraStyles;
|
|
50017
|
+
var hoverColor = themeValues.hoverColor,
|
|
50018
|
+
activeColor = themeValues.activeColor,
|
|
50019
|
+
menuTriggerColor = themeValues.menuTriggerColor,
|
|
50020
|
+
backgroundColor = themeValues.backgroundColor;
|
|
50021
|
+
var _ref2 = position !== null && position !== void 0 ? position : {},
|
|
50022
|
+
_ref2$top = _ref2.top,
|
|
50023
|
+
top = _ref2$top === void 0 ? "".concat(height, "px") : _ref2$top,
|
|
50024
|
+
_ref2$right = _ref2.right,
|
|
50025
|
+
right = _ref2$right === void 0 ? "auto" : _ref2$right,
|
|
50026
|
+
_ref2$bottom = _ref2.bottom,
|
|
50027
|
+
bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
|
|
50028
|
+
_ref2$left = _ref2.left,
|
|
50029
|
+
left = _ref2$left === void 0 ? "0" : _ref2$left;
|
|
50030
|
+
var _useState = React.useState(false),
|
|
50031
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
50032
|
+
isMenuOpen = _useState2[0],
|
|
50033
|
+
setIsMenuOpen = _useState2[1];
|
|
50034
|
+
var menuRef = React.useRef();
|
|
50035
|
+
var triggerRef = React.useRef();
|
|
50036
|
+
var toggleMenu = function toggleMenu(menuState) {
|
|
50037
|
+
return setIsMenuOpen(menuState);
|
|
50038
|
+
};
|
|
50039
|
+
React.useEffect(function () {
|
|
50040
|
+
var checkIfClickedOutside = function checkIfClickedOutside(e) {
|
|
50041
|
+
// If the menu is open and the clicked target is not within the menu or the trigger
|
|
50042
|
+
if (isMenuOpen && menuRef.current && !menuRef.current.contains(e.target) && triggerRef.current && !triggerRef.current.contains(e.target)) {
|
|
50043
|
+
toggleMenu(false);
|
|
50044
|
+
}
|
|
50045
|
+
};
|
|
50046
|
+
document.addEventListener("click", checkIfClickedOutside);
|
|
50047
|
+
return function () {
|
|
50048
|
+
document.removeEventListener("click", checkIfClickedOutside);
|
|
50049
|
+
};
|
|
50050
|
+
}, [isMenuOpen]);
|
|
50051
|
+
return /*#__PURE__*/React__default.createElement(PopupMenuContainer, {
|
|
50052
|
+
extraStyles: containerExtraStyles
|
|
50053
|
+
}, /*#__PURE__*/React__default.createElement(PopupMenuTriggerButton, {
|
|
50054
|
+
ref: triggerRef,
|
|
50055
|
+
action: function action() {
|
|
50056
|
+
toggleMenu(!isMenuOpen);
|
|
50057
|
+
},
|
|
50058
|
+
onKeyDown: function onKeyDown(e) {
|
|
50059
|
+
if (e.key === "Escape") {
|
|
50060
|
+
toggleMenu(false);
|
|
50061
|
+
}
|
|
50062
|
+
},
|
|
50063
|
+
contentOverride: true,
|
|
50064
|
+
variant: "smallGhost",
|
|
50065
|
+
tabIndex: "0",
|
|
50066
|
+
id: menuId,
|
|
50067
|
+
borderRadius: "8px",
|
|
50068
|
+
"aria-haspopup": "true",
|
|
50069
|
+
"aria-expanded": isMenuOpen,
|
|
50070
|
+
"aria-controls": "".concat(menuId, "-container"),
|
|
50071
|
+
extraStyles: buttonExtraStyles
|
|
50072
|
+
}, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
|
|
50073
|
+
padding: "0",
|
|
50074
|
+
srOnly: true
|
|
50075
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
50076
|
+
id: "btn".concat(menuId, "_info")
|
|
50077
|
+
}, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
50078
|
+
color: menuTriggerColor,
|
|
50079
|
+
extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
|
|
50080
|
+
}, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
|
|
50081
|
+
as: "div",
|
|
50082
|
+
id: "".concat(menuId, "-container"),
|
|
50083
|
+
ref: menuRef,
|
|
50084
|
+
onKeyDown: function onKeyDown(e) {
|
|
50085
|
+
if (e.key === "Escape") {
|
|
50086
|
+
toggleMenu(false);
|
|
50087
|
+
}
|
|
50088
|
+
},
|
|
50089
|
+
background: backgroundColor,
|
|
50090
|
+
borderRadius: "8px",
|
|
50091
|
+
boxShadow: "\n 0px 7px 32px 0px rgba(41, 42, 51, 0.2),\n 0px 1px 4px 0px rgba(41, 42, 51, 0.2),\n 0px 1px 8px -1px rgba(41, 42, 51, 0.3);\n ",
|
|
50092
|
+
role: "menu",
|
|
50093
|
+
"aria-labelledby": menuId,
|
|
50094
|
+
tabIndex: menuFocus && isMenuOpen ? "0" : "-1",
|
|
50095
|
+
minWidth: minWidth,
|
|
50096
|
+
maxWidth: maxWidth,
|
|
50097
|
+
extraStyles: "\n display: ".concat(isMenuOpen ? "block" : "none", ";\n position: absolute;\n padding: 8px 8px 3px 8px;\n top: ").concat(top, "; \n left: ").concat(left, ";\n right: ").concat(right, ";\n bottom: ").concat(bottom, ";\n height: ").concat(height, ";\n transform: ").concat(transform, ";\n ").concat(popupExtraStyles, ";\n ")
|
|
50098
|
+
}, menuItems.map(function (item, index) {
|
|
50099
|
+
return /*#__PURE__*/React__default.createElement(PopupMenuItem$1, _extends({
|
|
50100
|
+
key: index,
|
|
50101
|
+
id: "".concat(menuId, "-item-").concat(index),
|
|
50102
|
+
closeMenuCallback: function closeMenuCallback() {
|
|
50103
|
+
toggleMenu(false);
|
|
50104
|
+
// focus back to trigger button when menu closes
|
|
50105
|
+
triggerRef.current.focus();
|
|
50106
|
+
}
|
|
50107
|
+
}, item));
|
|
50108
|
+
})));
|
|
50109
|
+
};
|
|
50110
|
+
var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$V);
|
|
50111
|
+
|
|
50112
|
+
var pageBackground = "#FBFCFD";
|
|
50113
|
+
var fallbackValues$W = {
|
|
49816
50114
|
pageBackground: pageBackground
|
|
49817
50115
|
};
|
|
49818
50116
|
|
|
@@ -49860,7 +50158,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
49860
50158
|
padding: "0"
|
|
49861
50159
|
})));
|
|
49862
50160
|
};
|
|
49863
|
-
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$
|
|
50161
|
+
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$W));
|
|
49864
50162
|
|
|
49865
50163
|
var CenterStack = function CenterStack(_ref) {
|
|
49866
50164
|
var header = _ref.header,
|
|
@@ -49903,7 +50201,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
49903
50201
|
padding: "0"
|
|
49904
50202
|
})));
|
|
49905
50203
|
};
|
|
49906
|
-
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$
|
|
50204
|
+
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$W));
|
|
49907
50205
|
|
|
49908
50206
|
var CenterSingle$2 = function CenterSingle(_ref) {
|
|
49909
50207
|
var header = _ref.header,
|
|
@@ -49918,13 +50216,15 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
49918
50216
|
_ref$gutters = _ref.gutters,
|
|
49919
50217
|
gutters = _ref$gutters === void 0 ? "2rem" : _ref$gutters,
|
|
49920
50218
|
_ref$fillPageVertical = _ref.fillPageVertical,
|
|
49921
|
-
fillPageVertical = _ref$fillPageVertical === void 0 ? false : _ref$fillPageVertical
|
|
50219
|
+
fillPageVertical = _ref$fillPageVertical === void 0 ? false : _ref$fillPageVertical,
|
|
50220
|
+
_ref$background = _ref.background,
|
|
50221
|
+
background = _ref$background === void 0 ? COOL_GREY_05 : _ref$background;
|
|
49922
50222
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
49923
50223
|
var isMobile = themeContext.isMobile;
|
|
49924
50224
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
49925
50225
|
padding: "0",
|
|
49926
50226
|
minWidth: "100%",
|
|
49927
|
-
background:
|
|
50227
|
+
background: background,
|
|
49928
50228
|
extraStyles: "flex-grow: 1;"
|
|
49929
50229
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
49930
50230
|
childGap: "0",
|
|
@@ -49947,7 +50247,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
49947
50247
|
padding: "0"
|
|
49948
50248
|
})));
|
|
49949
50249
|
};
|
|
49950
|
-
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$
|
|
50250
|
+
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$W));
|
|
49951
50251
|
|
|
49952
50252
|
var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
49953
50253
|
var header = _ref.header,
|
|
@@ -50000,7 +50300,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
50000
50300
|
padding: "0"
|
|
50001
50301
|
})));
|
|
50002
50302
|
};
|
|
50003
|
-
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$
|
|
50303
|
+
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$W));
|
|
50004
50304
|
|
|
50005
50305
|
var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
50006
50306
|
var header = _ref.header,
|
|
@@ -50070,7 +50370,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
50070
50370
|
key: "footer-box"
|
|
50071
50371
|
})));
|
|
50072
50372
|
};
|
|
50073
|
-
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$
|
|
50373
|
+
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$W));
|
|
50074
50374
|
|
|
50075
50375
|
var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
50076
50376
|
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
@@ -50148,6 +50448,7 @@ exports.Checkbox = Checkbox$1;
|
|
|
50148
50448
|
exports.CheckboxList = CheckboxList$1;
|
|
50149
50449
|
exports.CheckmarkIcon = CheckmarkIcon;
|
|
50150
50450
|
exports.ChevronIcon = ChevronIcon$1;
|
|
50451
|
+
exports.CloseIcon = CloseIcon;
|
|
50151
50452
|
exports.Cluster = Cluster;
|
|
50152
50453
|
exports.CollapsibleSection = CollapsibleSection$1;
|
|
50153
50454
|
exports.Copyable = Copyable;
|
|
@@ -50242,6 +50543,7 @@ exports.Placeholder = Placeholder$1;
|
|
|
50242
50543
|
exports.PlusCircleIcon = PlusCircleIcon;
|
|
50243
50544
|
exports.PointOfSaleImage = PointOfSaleImage;
|
|
50244
50545
|
exports.Popover = Popover$1;
|
|
50546
|
+
exports.PopupMenu = PopupMenu$1;
|
|
50245
50547
|
exports.ProcessingFee = ProcessingFee$1;
|
|
50246
50548
|
exports.ProfileIcon = ProfileIcon$1;
|
|
50247
50549
|
exports.ProfileIconSmall = ProfileIconSmall$1;
|
|
@@ -50300,6 +50602,7 @@ exports.Title = Title$1;
|
|
|
50300
50602
|
exports.ToastNotification = ToastNotification;
|
|
50301
50603
|
exports.ToggleSwitch = ToggleSwitch$1;
|
|
50302
50604
|
exports.TrashIcon = TrashIcon$1;
|
|
50605
|
+
exports.TrashIconV2 = TrashIconV2$1;
|
|
50303
50606
|
exports.TypeaheadInput = TypeaheadInput;
|
|
50304
50607
|
exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
|
|
50305
50608
|
exports.VoidedIcon = VoidedIcon;
|