@thecb/components 3.6.0-beta.2 → 4.0.0
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/.storybook/main.js +1 -1
- package/.storybook/page.js +2 -0
- package/dist/index.cjs.js +293 -145
- package/package.json +2 -2
- package/src/components/atoms/alert/Alert.js +53 -35
- package/src/components/atoms/breadcrumb/Breadcrumb.js +4 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.js +2 -2
- package/src/components/atoms/checkbox/Checkbox.js +1 -0
- package/src/components/atoms/checkbox-list/CheckboxList.js +3 -1
- package/src/components/atoms/display-card/DisplayCard.js +4 -2
- package/src/components/atoms/dropdown/Dropdown.js +4 -4
- package/src/components/atoms/dropdown/Dropdown.stories.js +10 -33
- package/src/components/atoms/form-layouts/FormInput.js +7 -4
- package/src/components/atoms/form-layouts/FormLayouts.stories.js +5 -5
- package/src/components/atoms/hamburger-button/HamburgerButton.js +4 -3
- package/src/components/atoms/icons/AccountsIconSmall.js +6 -13
- package/src/components/atoms/icons/ChevronIcon.js +4 -4
- package/src/components/atoms/icons/icons.stories.js +1 -1
- package/src/components/atoms/layouts/Box.styled.js +1 -0
- package/src/components/atoms/layouts/Cluster.styled.js +5 -1
- package/src/components/atoms/layouts/Sidebar.styled.js +7 -1
- package/src/components/atoms/radio-button/RadioButton.js +1 -0
- package/src/components/atoms/radio-button/RadioButton.stories.js +26 -61
- package/src/components/atoms/toggle-switch/ToggleSwitch.js +1 -0
- package/src/components/atoms/toggle-switch/ToggleSwitch.stories.js +10 -51
- package/src/components/molecules/editable-list/EditableList.js +11 -8
- package/src/components/molecules/index.js +1 -0
- package/src/components/molecules/nav-menu/NavMenuDesktop.js +2 -1
- package/src/components/molecules/nav-menu/NavMenuMobile.js +7 -1
- package/src/components/molecules/obligation/Obligation.js +9 -7
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +23 -23
- package/src/components/molecules/pagination/Pagination.js +149 -0
- package/src/components/molecules/pagination/index.js +3 -0
- package/src/components/molecules/radio-section/RadioSection.js +7 -3
- package/src/deprecated/components/radio-button/radio-button.js +5 -1
- package/src/deprecated/icons/IconInvalid.js +7 -31
- package/src/deprecated/icons/IconNeutral.js +5 -4
- package/src/deprecated/icons/IconValid.js +8 -33
- package/src/util/general.js +10 -1
- package/src/components/molecules/content/Content.js +0 -20
- package/src/components/molecules/content/Content.theme.js +0 -60
- package/src/components/molecules/content/blocks/accordion-block/AccordionBlock.js +0 -108
- package/src/components/molecules/content/blocks/accordion-block/index.js +0 -3
- package/src/components/molecules/content/blocks/article-block/ArticleBlock.js +0 -58
- package/src/components/molecules/content/blocks/article-block/index.js +0 -3
- package/src/components/molecules/content/blocks/attached-file-block/AttachedFileBlock.js +0 -60
- package/src/components/molecules/content/blocks/attached-file-block/index.js +0 -3
- package/src/components/molecules/content/blocks/featured-content-block/FeaturedContentBlock.js +0 -0
- package/src/components/molecules/content/blocks/featured-content-block/index.js +0 -0
- package/src/components/molecules/content/blocks/hero-block/HeroBlock.js +0 -54
- package/src/components/molecules/content/blocks/hero-block/index.js +0 -3
- package/src/components/molecules/content/blocks/highlight-block/HighlightBlock.js +0 -42
- package/src/components/molecules/content/blocks/highlight-block/index.js +0 -3
- package/src/components/molecules/content/blocks/index.js +0 -33
- package/src/components/molecules/content/blocks/info-block/InfoBlock.js +0 -15
- package/src/components/molecules/content/blocks/info-block/index.js +0 -3
- package/src/components/molecules/content/blocks/location-block/LocationBlock.js +0 -228
- package/src/components/molecules/content/blocks/location-block/index.js +0 -3
- package/src/components/molecules/content/blocks/related-links-block/RelatedLinksBlock.js +0 -35
- package/src/components/molecules/content/blocks/related-links-block/index.js +0 -3
- package/src/components/molecules/content/blocks/screendoor-block/ScreendoorBlock.js +0 -57
- package/src/components/molecules/content/blocks/screendoor-block/ScreendoorForm.styled.js +0 -314
- package/src/components/molecules/content/blocks/screendoor-block/index.js +0 -3
- package/src/components/molecules/content/blocks/tagline-block/TaglineBlock.js +0 -45
- package/src/components/molecules/content/blocks/tagline-block/index.js +0 -3
- package/src/components/molecules/content/blocks/task-block/TaskBlock.js +0 -40
- package/src/components/molecules/content/blocks/task-block/index.js +0 -3
- package/src/components/molecules/content/blocks/text-block/TextBlock.js +0 -40
- package/src/components/molecules/content/blocks/text-block/index.js +0 -3
- package/src/components/molecules/content/header/Header.js +0 -283
- package/src/components/molecules/content/header/Header.theme.js +0 -11
- package/src/components/molecules/content/header/index.js +0 -3
- package/src/components/molecules/content/index.js +0 -3
package/dist/index.cjs.js
CHANGED
|
@@ -6087,12 +6087,19 @@ var displayCurrency = function displayCurrency(cents) {
|
|
|
6087
6087
|
var convertCentsToMoneyInt = function convertCentsToMoneyInt(n) {
|
|
6088
6088
|
return (n / 100).toFixed(0);
|
|
6089
6089
|
};
|
|
6090
|
+
|
|
6091
|
+
var createUniqueId = function createUniqueId() {
|
|
6092
|
+
return "_" + Math.random().toString(36).substr(2, 9);
|
|
6093
|
+
};
|
|
6094
|
+
|
|
6090
6095
|
var safeChildren = function safeChildren(children) {
|
|
6091
6096
|
var replacement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
6092
6097
|
|
|
6093
6098
|
if (children && children instanceof Array) {
|
|
6094
6099
|
return children.map(function (child) {
|
|
6095
|
-
return !child ?
|
|
6100
|
+
return !child ? /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
6101
|
+
key: createUniqueId()
|
|
6102
|
+
}, replacement) : child;
|
|
6096
6103
|
});
|
|
6097
6104
|
}
|
|
6098
6105
|
|
|
@@ -6251,7 +6258,8 @@ var BoxWrapper = styled__default(function (_ref) {
|
|
|
6251
6258
|
minWidth = _ref.minWidth,
|
|
6252
6259
|
maxWidth = _ref.maxWidth,
|
|
6253
6260
|
padding = _ref.padding,
|
|
6254
|
-
|
|
6261
|
+
hiddenStyles = _ref.hiddenStyles,
|
|
6262
|
+
props = _objectWithoutProperties(_ref, ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles"]);
|
|
6255
6263
|
|
|
6256
6264
|
return /*#__PURE__*/React__default.createElement("div", props);
|
|
6257
6265
|
})(_templateObject$1(), function (_ref2) {
|
|
@@ -6462,30 +6470,37 @@ function _templateObject$3() {
|
|
|
6462
6470
|
|
|
6463
6471
|
return data;
|
|
6464
6472
|
}
|
|
6465
|
-
|
|
6466
|
-
|
|
6473
|
+
/* eslint-disable no-unused-vars */
|
|
6474
|
+
|
|
6475
|
+
var ClusterWrapper = styled__default(function (_ref) {
|
|
6476
|
+
var overflow = _ref.overflow,
|
|
6477
|
+
props = _objectWithoutProperties(_ref, ["overflow"]);
|
|
6478
|
+
|
|
6479
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
6480
|
+
})(_templateObject$3(), function (_ref2) {
|
|
6481
|
+
var overflow = _ref2.overflow;
|
|
6467
6482
|
return overflow ? "visible" : "hidden";
|
|
6468
6483
|
});
|
|
6469
|
-
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (
|
|
6470
|
-
var nowrap =
|
|
6484
|
+
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (_ref3) {
|
|
6485
|
+
var nowrap = _ref3.nowrap;
|
|
6471
6486
|
return nowrap ? "nowrap" : "wrap";
|
|
6472
|
-
}, function (_ref3) {
|
|
6473
|
-
var justify = _ref3.justify;
|
|
6474
|
-
return justify;
|
|
6475
6487
|
}, function (_ref4) {
|
|
6476
|
-
var
|
|
6477
|
-
return
|
|
6488
|
+
var justify = _ref4.justify;
|
|
6489
|
+
return justify;
|
|
6478
6490
|
}, function (_ref5) {
|
|
6479
|
-
var
|
|
6480
|
-
return
|
|
6491
|
+
var align = _ref5.align;
|
|
6492
|
+
return align;
|
|
6481
6493
|
}, function (_ref6) {
|
|
6482
|
-
var
|
|
6483
|
-
return
|
|
6494
|
+
var childGap = _ref6.childGap;
|
|
6495
|
+
return childGap;
|
|
6484
6496
|
}, function (_ref7) {
|
|
6485
|
-
var
|
|
6486
|
-
return
|
|
6497
|
+
var minHeight = _ref7.minHeight;
|
|
6498
|
+
return minHeight;
|
|
6487
6499
|
}, function (_ref8) {
|
|
6488
|
-
var
|
|
6500
|
+
var minWidth = _ref8.minWidth;
|
|
6501
|
+
return minWidth;
|
|
6502
|
+
}, function (_ref9) {
|
|
6503
|
+
var childGap = _ref9.childGap;
|
|
6489
6504
|
return childGap;
|
|
6490
6505
|
});
|
|
6491
6506
|
|
|
@@ -6608,25 +6623,35 @@ var SidebarWrapper = styled__default.div(_templateObject$5(), function (_ref) {
|
|
|
6608
6623
|
var fullHeight = _ref.fullHeight;
|
|
6609
6624
|
return fullHeight ? "height: 100%;" : "";
|
|
6610
6625
|
});
|
|
6611
|
-
var SidebarInnerWrapper = styled__default
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6626
|
+
var SidebarInnerWrapper = styled__default( // eslint-disable-next-line no-unused-vars
|
|
6627
|
+
function (_ref2) {
|
|
6628
|
+
var onRight = _ref2.onRight,
|
|
6629
|
+
childGap = _ref2.childGap,
|
|
6630
|
+
contentMinWidth = _ref2.contentMinWidth,
|
|
6631
|
+
minHeight = _ref2.minHeight,
|
|
6632
|
+
fullHeight = _ref2.fullHeight,
|
|
6633
|
+
props = _objectWithoutProperties(_ref2, ["onRight", "childGap", "contentMinWidth", "minHeight", "fullHeight"]);
|
|
6634
|
+
|
|
6635
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
6636
|
+
})(_templateObject2$3(), function (_ref3) {
|
|
6615
6637
|
var childGap = _ref3.childGap;
|
|
6616
6638
|
return childGap;
|
|
6617
6639
|
}, function (_ref4) {
|
|
6618
|
-
var
|
|
6619
|
-
return
|
|
6640
|
+
var childGap = _ref4.childGap;
|
|
6641
|
+
return childGap;
|
|
6620
6642
|
}, function (_ref5) {
|
|
6621
|
-
var
|
|
6622
|
-
return
|
|
6643
|
+
var width = _ref5.width;
|
|
6644
|
+
return width ? "flex-basis: ".concat(width) : "";
|
|
6623
6645
|
}, function (_ref6) {
|
|
6624
|
-
var
|
|
6625
|
-
|
|
6626
|
-
childGap = _ref6.childGap;
|
|
6627
|
-
return sidebarOnRight ? "> :first-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(".concat(contentMinWidth, " - ").concat(childGap, ");\n }\n ") : "> :last-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(".concat(contentMinWidth, " - ").concat(childGap, ");\n }");
|
|
6646
|
+
var minHeight = _ref6.minHeight;
|
|
6647
|
+
return minHeight ? "margin-top: 0; margin-bottom: 0;" : "";
|
|
6628
6648
|
}, function (_ref7) {
|
|
6629
|
-
var
|
|
6649
|
+
var sidebarOnRight = _ref7.sidebarOnRight,
|
|
6650
|
+
contentMinWidth = _ref7.contentMinWidth,
|
|
6651
|
+
childGap = _ref7.childGap;
|
|
6652
|
+
return sidebarOnRight ? "> :first-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(".concat(contentMinWidth, " - ").concat(childGap, ");\n }\n ") : "> :last-child {\n flex-basis: 0;\n flex-grow: 999;\n min-width: calc(".concat(contentMinWidth, " - ").concat(childGap, ");\n }");
|
|
6653
|
+
}, function (_ref8) {
|
|
6654
|
+
var fullHeight = _ref8.fullHeight;
|
|
6630
6655
|
return fullHeight ? "min-height: 100%;" : "";
|
|
6631
6656
|
});
|
|
6632
6657
|
|
|
@@ -12641,7 +12666,7 @@ var ButtonWithAction = function ButtonWithAction(_ref) {
|
|
|
12641
12666
|
var loadingExtraStyles = "".concat(extraStyles, "; padding-top: 0.75rem; padding-bottom: 0.75rem;");
|
|
12642
12667
|
var hoverStyles = "\n outline: none;\n background-color: ".concat(themeValues.hoverBackgroundColor, ";\n border-color: ").concat(themeValues.hoverBorderColor, ";\n color: ").concat(themeValues.hoverColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
|
|
12643
12668
|
var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
|
|
12644
|
-
var disabledStyles = "\n background-clor: #6E727E;\n border-
|
|
12669
|
+
var disabledStyles = "\n background-clor: #6E727E;\n border-color: #6E727E;\n color: #FFFFFF;\n &:focus {\n box-shadow: 0 0 10px #6E727E;\n outline: none;\n }\n ";
|
|
12645
12670
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
12646
12671
|
variant: variant,
|
|
12647
12672
|
padding: themeValues.padding,
|
|
@@ -12653,7 +12678,7 @@ var ButtonWithAction = function ButtonWithAction(_ref) {
|
|
|
12653
12678
|
activeStyles: activeStyles,
|
|
12654
12679
|
disabledStyles: disabledStyles,
|
|
12655
12680
|
as: "button",
|
|
12656
|
-
onClick: action,
|
|
12681
|
+
onClick: !isLoading && action,
|
|
12657
12682
|
borderRadius: "2px",
|
|
12658
12683
|
theme: themeContext,
|
|
12659
12684
|
extraStyles: isLoading ? loadingExtraStyles : extraStyles,
|
|
@@ -12936,29 +12961,17 @@ var AccountsIconSmall = function AccountsIconSmall(_ref) {
|
|
|
12936
12961
|
width: "29",
|
|
12937
12962
|
height: "27"
|
|
12938
12963
|
})), /*#__PURE__*/React__default.createElement("g", {
|
|
12939
|
-
id: "Random-Icon-Work",
|
|
12940
12964
|
stroke: "none",
|
|
12941
12965
|
strokeWidth: "1",
|
|
12942
12966
|
fill: "none",
|
|
12943
12967
|
fillRule: "evenodd"
|
|
12944
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
12945
|
-
id: "Header/Desktop/Menu"
|
|
12946
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
12947
|
-
id: "Header/Desktop/Menu/Accounts-Tab"
|
|
12948
|
-
}, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", {
|
|
12949
|
-
id: "Payments"
|
|
12950
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
12951
|
-
id: "folder-open"
|
|
12952
|
-
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
12968
|
+
}, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("mask", {
|
|
12953
12969
|
id: "mask-2-accountssmall",
|
|
12954
12970
|
fill: "white"
|
|
12955
12971
|
}, /*#__PURE__*/React__default.createElement("use", {
|
|
12956
12972
|
xlinkHref: "#path-1-accountssmall"
|
|
12957
|
-
})), /*#__PURE__*/React__default.createElement("g", {
|
|
12958
|
-
id: "Mask"
|
|
12959
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
12973
|
+
})), /*#__PURE__*/React__default.createElement("g", null), /*#__PURE__*/React__default.createElement("path", {
|
|
12960
12974
|
d: "M1.875,17.9609424 L4.30077547,13.8125148 C4.60546242,13.2968908 5.01561733,12.8867359 5.53124128,12.5820489 C6.04686523,12.277362 6.60936389,12.1250188 7.21873726,12.1250188 L7.21873726,12.1250188 L18.7499598,12.1250188 L18.7499598,10.4375228 C18.7499598,9.9687741 18.5858975,9.57033719 18.2577734,9.24221315 C17.9296494,8.91408911 17.5312125,8.75002682 17.0624638,8.75002682 L17.0624638,8.75002682 L11.4374772,8.75002682 L9.18748257,6.50003219 L3.56249598,6.50003219 C3.09374727,6.50003219 2.69531037,6.66409447 2.36718633,6.99221851 C2.03906229,7.32034255 1.875,7.71877946 1.875,8.18752816 L1.875,8.18752816 L1.875,17.9609424 Z M17.519494,20 C17.9179303,20 18.2929296,19.900391 18.6444913,19.7011726 C18.9960529,19.5019541 19.2655837,19.2265643 19.4530831,18.8750027 L19.4530831,18.8750027 L22.0194832,14.5156381 C22.1835455,14.2343887 22.1835455,13.9531394 22.0194832,13.6718901 C21.8554209,13.3906408 21.6093278,13.2500161 21.2812037,13.2500161 L21.2812037,13.2500161 L7.21873726,13.2500161 C6.82030089,13.2500161 6.4453016,13.3496251 6.09373994,13.5488435 C5.74217828,13.748062 5.47264749,14.0234517 5.28514812,14.3750134 L5.28514812,14.3750134 L2.71874799,18.734378 C2.5546857,19.0156273 2.5546857,19.2968767 2.71874799,19.578126 C2.88281028,19.8593753 3.12890344,20 3.45702748,20 L3.45702748,20 L17.519494,20 Z",
|
|
12961
|
-
id: "f",
|
|
12962
12975
|
fill: themeValues.singleIconColor,
|
|
12963
12976
|
fillRule: "nonzero",
|
|
12964
12977
|
mask: "url(#mask-2-accountssmall)"
|
|
@@ -13099,7 +13112,8 @@ var SettingsIconSmall = function SettingsIconSmall(_ref) {
|
|
|
13099
13112
|
var SettingsIconSmall$1 = themeComponent(SettingsIconSmall, "Icons", fallbackValues$2, "primary");
|
|
13100
13113
|
|
|
13101
13114
|
var ChevronIcon = function ChevronIcon(_ref) {
|
|
13102
|
-
var themeValues = _ref.themeValues
|
|
13115
|
+
var themeValues = _ref.themeValues,
|
|
13116
|
+
iconFill = _ref.iconFill;
|
|
13103
13117
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13104
13118
|
width: "24",
|
|
13105
13119
|
height: "24",
|
|
@@ -13120,16 +13134,16 @@ var ChevronIcon = function ChevronIcon(_ref) {
|
|
|
13120
13134
|
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
13121
13135
|
id: "icon-chevron-mask-2"
|
|
13122
13136
|
}, /*#__PURE__*/React__default.createElement("use", {
|
|
13123
|
-
fill: themeValues.singleIconColor,
|
|
13137
|
+
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor,
|
|
13124
13138
|
xlinkHref: "#icon-chevron-path-1"
|
|
13125
13139
|
})), /*#__PURE__*/React__default.createElement("use", {
|
|
13126
|
-
fill: themeValues.singleIconColor,
|
|
13140
|
+
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor,
|
|
13127
13141
|
id: "icon-chevron-Fill-2",
|
|
13128
13142
|
xlinkHref: "#icon-chevron-path-1"
|
|
13129
13143
|
}), /*#__PURE__*/React__default.createElement("g", {
|
|
13130
13144
|
id: "Colors/Blue-Dark",
|
|
13131
13145
|
mask: "url(#icon-chevron-mask-2)",
|
|
13132
|
-
fill: themeValues.singleIconColor
|
|
13146
|
+
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor
|
|
13133
13147
|
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
13134
13148
|
id: "icon-chevron-rect",
|
|
13135
13149
|
width: "24",
|
|
@@ -13879,18 +13893,13 @@ var IconNeutral = function IconNeutral(_ref) {
|
|
|
13879
13893
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
13880
13894
|
style: {
|
|
13881
13895
|
margin: margin
|
|
13882
|
-
}
|
|
13896
|
+
},
|
|
13897
|
+
"aria-label": "Neutral"
|
|
13883
13898
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13884
|
-
id: "icon-neutral-group",
|
|
13885
13899
|
fill: fill,
|
|
13886
13900
|
fillRule: "nonzero",
|
|
13887
13901
|
stroke: fill
|
|
13888
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13889
|
-
id: "icon-neutral-Group-2"
|
|
13890
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13891
|
-
id: "icon-neutral-PasswordVerification-Empty"
|
|
13892
|
-
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
13893
|
-
id: "icon-neutral-Oval",
|
|
13902
|
+
}, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("circle", {
|
|
13894
13903
|
cx: "9",
|
|
13895
13904
|
cy: "9",
|
|
13896
13905
|
r: "8.5"
|
|
@@ -13917,27 +13926,22 @@ var IconValid = function IconValid(_ref) {
|
|
|
13917
13926
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
13918
13927
|
style: {
|
|
13919
13928
|
margin: margin
|
|
13920
|
-
}
|
|
13929
|
+
},
|
|
13930
|
+
"aria-label": "Valid"
|
|
13921
13931
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13922
|
-
id: "icon-valid-Authentication",
|
|
13923
13932
|
stroke: "none",
|
|
13924
13933
|
strokeWidth: "1",
|
|
13925
13934
|
fill: "none",
|
|
13926
13935
|
fillRule: "evenodd"
|
|
13927
13936
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13928
|
-
id: "icon-valid-00.1.0.1---HSS---Register---Already-Exists-Error",
|
|
13929
13937
|
transform: "translate(-538.000000, -996.000000)"
|
|
13930
13938
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13931
|
-
id: "icon-valid-Password-Requirements",
|
|
13932
13939
|
transform: "translate(457.000000, 938.000000)"
|
|
13933
13940
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13934
|
-
id: "icon-valid-Group-2",
|
|
13935
13941
|
transform: "translate(81.000000, 20.000000)"
|
|
13936
13942
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13937
|
-
id: "icon-valid-PasswordVerification-Sucess",
|
|
13938
13943
|
transform: "translate(0.000000, 38.000000)"
|
|
13939
13944
|
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
13940
|
-
id: "icon-valid-Oval",
|
|
13941
13945
|
stroke: bgFill,
|
|
13942
13946
|
fill: bgFill,
|
|
13943
13947
|
fillRule: "nonzero",
|
|
@@ -13945,13 +13949,10 @@ var IconValid = function IconValid(_ref) {
|
|
|
13945
13949
|
cy: "9",
|
|
13946
13950
|
r: "8.5"
|
|
13947
13951
|
}), /*#__PURE__*/React__default.createElement("g", {
|
|
13948
|
-
id: "icon-valid-baseline-check-24px",
|
|
13949
13952
|
transform: "translate(2.000000, 2.000000)"
|
|
13950
13953
|
}, /*#__PURE__*/React__default.createElement("polygon", {
|
|
13951
|
-
id: "icon-valid-Path",
|
|
13952
13954
|
points: "0 0 14 0 14 14 0 14"
|
|
13953
13955
|
}), /*#__PURE__*/React__default.createElement("polygon", {
|
|
13954
|
-
id: "icon-valid-Path-2",
|
|
13955
13956
|
fill: iconFill,
|
|
13956
13957
|
points: "5.25 9.4325 2.8175 7 1.98916667 7.8225 5.25 11.0833333 12.25 4.08333333 11.4275 3.26083333"
|
|
13957
13958
|
}))))))));
|
|
@@ -13977,40 +13978,33 @@ var IconInvalid = function IconInvalid(_ref) {
|
|
|
13977
13978
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
13978
13979
|
style: {
|
|
13979
13980
|
margin: margin
|
|
13980
|
-
}
|
|
13981
|
+
},
|
|
13982
|
+
"aria-label": "Invalid"
|
|
13981
13983
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13982
|
-
id: "icon-invalid-Authentication",
|
|
13983
13984
|
stroke: "none",
|
|
13984
13985
|
strokeWidth: "1",
|
|
13985
13986
|
fill: "none",
|
|
13986
13987
|
fillRule: "evenodd"
|
|
13987
13988
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13988
|
-
id: "icon-invalid-00.1.0.1---HSS---Register---Already-Exists-Error",
|
|
13989
13989
|
transform: "translate(-538.000000, -1064.000000)",
|
|
13990
13990
|
fillRule: "nonzero"
|
|
13991
13991
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13992
|
-
id: "icon-invalid-Password-Requirements",
|
|
13993
13992
|
transform: "translate(457.000000, 938.000000)"
|
|
13994
13993
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13995
|
-
id: "icon-invalid-Group-2",
|
|
13996
13994
|
transform: "translate(81.000000, 20.000000)"
|
|
13997
13995
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13998
|
-
id: "icon-invalid-PasswordVerification-Error",
|
|
13999
13996
|
transform: "translate(0.000000, 106.000000)"
|
|
14000
13997
|
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
14001
|
-
id: "icon-invalid-Oval",
|
|
14002
13998
|
stroke: bgFill,
|
|
14003
13999
|
fill: bgFill,
|
|
14004
14000
|
cx: "9",
|
|
14005
14001
|
cy: "9",
|
|
14006
14002
|
r: "8.5"
|
|
14007
14003
|
}), /*#__PURE__*/React__default.createElement("g", {
|
|
14008
|
-
id: "icon-invalid-Icon/Close",
|
|
14009
14004
|
transform: "translate(2.000000, 2.000000)",
|
|
14010
14005
|
fill: iconFill
|
|
14011
14006
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
14012
14007
|
d: "M7.58333333,7.58333333 L7.58333333,11.6666667 L6.41666667,11.6666667 L6.41666667,7.58333333 L2.33333333,7.58333333 L2.33333333,6.41666667 L6.41666667,6.41666667 L6.41666667,2.33333333 L7.58333333,2.33333333 L7.58333333,6.41666667 L11.6666667,6.41666667 L11.6666667,7.58333333 L7.58333333,7.58333333 Z",
|
|
14013
|
-
id: "icon-invalid-x",
|
|
14014
14008
|
transform: "translate(7.000000, 7.000000) rotate(45.000000) translate(-7.000000, -7.000000) "
|
|
14015
14009
|
}))))))));
|
|
14016
14010
|
};
|
|
@@ -14243,28 +14237,24 @@ var fallbackValues$4 = {
|
|
|
14243
14237
|
var Alert = function Alert(_ref) {
|
|
14244
14238
|
var heading = _ref.heading,
|
|
14245
14239
|
text = _ref.text,
|
|
14240
|
+
textOverride = _ref.textOverride,
|
|
14246
14241
|
variant = _ref.variant,
|
|
14247
14242
|
children = _ref.children,
|
|
14248
14243
|
height = _ref.height,
|
|
14249
14244
|
onLinkClick = _ref.onLinkClick,
|
|
14245
|
+
_ref$padding = _ref.padding,
|
|
14246
|
+
padding = _ref$padding === void 0 ? "0.5rem" : _ref$padding,
|
|
14250
14247
|
_ref$showQuitLink = _ref.showQuitLink,
|
|
14251
14248
|
showQuitLink = _ref$showQuitLink === void 0 ? true : _ref$showQuitLink,
|
|
14252
|
-
themeValues = _ref.themeValues
|
|
14249
|
+
themeValues = _ref.themeValues,
|
|
14250
|
+
extraStyles = _ref.extraStyles,
|
|
14251
|
+
maxContentWidth = _ref.maxContentWidth;
|
|
14253
14252
|
var Icon = AlertIcons[variant];
|
|
14254
|
-
|
|
14255
|
-
padding: "0.5rem",
|
|
14256
|
-
width: "100%",
|
|
14257
|
-
minHeight: "100px",
|
|
14258
|
-
height: height ? height : "auto",
|
|
14259
|
-
background: themeValues.background,
|
|
14260
|
-
borderRadius: "4px",
|
|
14261
|
-
borderColor: themeValues.border,
|
|
14262
|
-
borderSize: "1px"
|
|
14263
|
-
}, /*#__PURE__*/React__default.createElement(Sidebar, {
|
|
14253
|
+
var content = /*#__PURE__*/React__default.createElement(Sidebar, {
|
|
14264
14254
|
width: "24px",
|
|
14265
14255
|
childGap: "0rem"
|
|
14266
14256
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
14267
|
-
padding: "0 0
|
|
14257
|
+
padding: "0 0 0 1rem",
|
|
14268
14258
|
minHeight: "100%"
|
|
14269
14259
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
14270
14260
|
minHeight: "100%",
|
|
@@ -14276,15 +14266,15 @@ var Alert = function Alert(_ref) {
|
|
|
14276
14266
|
}, /*#__PURE__*/React__default.createElement(Icon, null)))), /*#__PURE__*/React__default.createElement(Box, {
|
|
14277
14267
|
padding: "0"
|
|
14278
14268
|
}, /*#__PURE__*/React__default.createElement(Sidebar, {
|
|
14279
|
-
|
|
14269
|
+
onRight: true,
|
|
14280
14270
|
width: "24px",
|
|
14281
14271
|
childGap: "0rem"
|
|
14282
14272
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
14283
|
-
padding: "
|
|
14273
|
+
padding: "".concat(padding, " 1rem")
|
|
14284
14274
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
14285
14275
|
justify: "flex-start",
|
|
14286
14276
|
align: "center"
|
|
14287
|
-
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
14277
|
+
}, textOverride ? textOverride : /*#__PURE__*/React__default.createElement(Stack, {
|
|
14288
14278
|
fullHeight: true,
|
|
14289
14279
|
childGap: "0.25rem"
|
|
14290
14280
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -14301,7 +14291,20 @@ var Alert = function Alert(_ref) {
|
|
|
14301
14291
|
padding: "0",
|
|
14302
14292
|
minHeight: "100%",
|
|
14303
14293
|
onClick: onLinkClick
|
|
14304
|
-
}, /*#__PURE__*/React__default.createElement(IconQuit, null))))))
|
|
14294
|
+
}, /*#__PURE__*/React__default.createElement(IconQuit, null))))));
|
|
14295
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
14296
|
+
padding: padding,
|
|
14297
|
+
width: "100%",
|
|
14298
|
+
minHeight: height && parseInt(height) < 100 ? height : "100px",
|
|
14299
|
+
height: height ? height : "auto",
|
|
14300
|
+
background: themeValues.background,
|
|
14301
|
+
borderRadius: "4px",
|
|
14302
|
+
borderColor: themeValues.border,
|
|
14303
|
+
borderSize: "1px",
|
|
14304
|
+
extraStyles: extraStyles
|
|
14305
|
+
}, maxContentWidth ? /*#__PURE__*/React__default.createElement(Center, {
|
|
14306
|
+
maxWidth: maxContentWidth
|
|
14307
|
+
}, content) : content);
|
|
14305
14308
|
};
|
|
14306
14309
|
|
|
14307
14310
|
var Alert$1 = themeComponent(Alert, "Alert", fallbackValues$4, "info");
|
|
@@ -14647,8 +14650,8 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
14647
14650
|
var themeValues = createThemeValues(themeContext, fallbackValues$7, "Breadcrumb");
|
|
14648
14651
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
14649
14652
|
padding: "0",
|
|
14650
|
-
|
|
14651
|
-
"aria-
|
|
14653
|
+
as: "nav",
|
|
14654
|
+
"aria-label": "Breadcrumb navigation"
|
|
14652
14655
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
14653
14656
|
justify: "flex-start",
|
|
14654
14657
|
align: "center"
|
|
@@ -14659,6 +14662,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
14659
14662
|
return /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
14660
14663
|
key: "breadcrumb-".concat(linkText)
|
|
14661
14664
|
}, /*#__PURE__*/React__default.createElement(InternalLink, {
|
|
14665
|
+
"aria-current": index === breadcrumbsList.length - 1 && "location",
|
|
14662
14666
|
to: linkDestination,
|
|
14663
14667
|
active: isActive.toString(),
|
|
14664
14668
|
color: themeValues.color,
|
|
@@ -16505,6 +16509,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
16505
16509
|
id: "checkbox-".concat(name),
|
|
16506
16510
|
disabled: disabled,
|
|
16507
16511
|
name: name,
|
|
16512
|
+
"aria-label": name,
|
|
16508
16513
|
checked: checked,
|
|
16509
16514
|
onChange: onChange,
|
|
16510
16515
|
tabIndex: "-1"
|
|
@@ -16619,7 +16624,8 @@ var RadioButton = function RadioButton(_ref3) {
|
|
|
16619
16624
|
name = _ref3.name;
|
|
16620
16625
|
return /*#__PURE__*/React__default.createElement(RadioButtonBorder, {
|
|
16621
16626
|
isSelected: isSelected,
|
|
16622
|
-
name: name
|
|
16627
|
+
name: name,
|
|
16628
|
+
"aria-checked": isSelected
|
|
16623
16629
|
}, isSelected && /*#__PURE__*/React__default.createElement(RadioButtonCenter, null));
|
|
16624
16630
|
};
|
|
16625
16631
|
|
|
@@ -16665,6 +16671,8 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
16665
16671
|
name = _ref.name,
|
|
16666
16672
|
imageUrl = _ref.imageUrl,
|
|
16667
16673
|
image = _ref.image,
|
|
16674
|
+
_ref$imageAlt = _ref.imageAlt,
|
|
16675
|
+
imageAlt = _ref$imageAlt === void 0 ? "checkbox icon" : _ref$imageAlt,
|
|
16668
16676
|
disabled = _ref.disabled,
|
|
16669
16677
|
borderColor = _ref.borderColor,
|
|
16670
16678
|
color = _ref.color,
|
|
@@ -16688,6 +16696,7 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
16688
16696
|
id: "checkbox-".concat(name, "-").concat(index)
|
|
16689
16697
|
}), /*#__PURE__*/React__default.createElement(CheckboxLabel, {
|
|
16690
16698
|
name: name,
|
|
16699
|
+
"aria-label": name,
|
|
16691
16700
|
htmlFor: "checkbox-".concat(name, "-").concat(index),
|
|
16692
16701
|
onClick: disabled ? noop : onSelect,
|
|
16693
16702
|
onKeyDown: disabled ? noop : onSelect,
|
|
@@ -16707,7 +16716,8 @@ var CheckboxListItem = function CheckboxListItem(_ref) {
|
|
|
16707
16716
|
justify: "flex-start",
|
|
16708
16717
|
align: "center"
|
|
16709
16718
|
}, /*#__PURE__*/React__default.createElement(CheckboxItemIcon, {
|
|
16710
|
-
src: imageUrl
|
|
16719
|
+
src: imageUrl,
|
|
16720
|
+
alt: imageAlt
|
|
16711
16721
|
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
16712
16722
|
padding: "0rem 0.5rem 0rem 0rem",
|
|
16713
16723
|
hiddenStyles: !image
|
|
@@ -16804,7 +16814,7 @@ function _templateObject4$2() {
|
|
|
16804
16814
|
}
|
|
16805
16815
|
|
|
16806
16816
|
function _templateObject3$5() {
|
|
16807
|
-
var data = _taggedTemplateLiteral(["\n background-color: ", ";\n text-align: start;\n border-
|
|
16817
|
+
var data = _taggedTemplateLiteral(["\n background-color: ", ";\n text-align: start;\n border-width: 0px;\n border-color: transparent;\n box-shadow: none;\n padding: 1rem;\n box-sizing: border-box;\n width: 100%;\n cursor: ", ";\n\n &:hover {\n background-color: ", ";\n }\n &:focus {\n background-color: ", ";\n outline: none;\n }\n"]);
|
|
16808
16818
|
|
|
16809
16819
|
_templateObject3$5 = function _templateObject3() {
|
|
16810
16820
|
return data;
|
|
@@ -17009,7 +17019,7 @@ var Dropdown = function Dropdown(_ref7) {
|
|
|
17009
17019
|
tabIndex: 0,
|
|
17010
17020
|
padding: "0",
|
|
17011
17021
|
width: "100%",
|
|
17012
|
-
|
|
17022
|
+
hoverStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
|
|
17013
17023
|
"aria-expanded": isOpen
|
|
17014
17024
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
17015
17025
|
as: "button",
|
|
@@ -17017,7 +17027,6 @@ var Dropdown = function Dropdown(_ref7) {
|
|
|
17017
17027
|
width: "100%",
|
|
17018
17028
|
padding: "12px",
|
|
17019
17029
|
hoverStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
|
|
17020
|
-
focusStyles: "background-color: ".concat(themeValues.hoverColor, ";"),
|
|
17021
17030
|
borderSize: "1px",
|
|
17022
17031
|
borderColor: isError ? ERROR_COLOR : isOpen ? themeValues.selectedColor : GREY_CHATEAU,
|
|
17023
17032
|
borderRadius: "2px",
|
|
@@ -17027,6 +17036,7 @@ var Dropdown = function Dropdown(_ref7) {
|
|
|
17027
17036
|
direction: "row",
|
|
17028
17037
|
bottomItem: 2
|
|
17029
17038
|
}, isOpen ? /*#__PURE__*/React__default.createElement(SearchInput, {
|
|
17039
|
+
"aria-label": inputValue || "Dropdown awaiting search value",
|
|
17030
17040
|
value: inputValue,
|
|
17031
17041
|
onChange: noop,
|
|
17032
17042
|
themeValues: themeValues
|
|
@@ -17039,7 +17049,7 @@ var Dropdown = function Dropdown(_ref7) {
|
|
|
17039
17049
|
}, /*#__PURE__*/React__default.createElement(DropdownIcon, null)))), isOpen ? /*#__PURE__*/React__default.createElement(DropdownContentWrapper, {
|
|
17040
17050
|
open: isOpen,
|
|
17041
17051
|
ref: dropdownRef,
|
|
17042
|
-
tabIndex:
|
|
17052
|
+
tabIndex: 0
|
|
17043
17053
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
17044
17054
|
childGap: "0"
|
|
17045
17055
|
}, filteredOptions.map(function (choice, i) {
|
|
@@ -18081,13 +18091,13 @@ var DisplayCard = function DisplayCard(_ref) {
|
|
|
18081
18091
|
variant: "smallGhost",
|
|
18082
18092
|
dataQa: buttonText,
|
|
18083
18093
|
extraStyles: "min-width: 0;"
|
|
18084
|
-
}) : /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
18094
|
+
}) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
18085
18095
|
text: buttonText,
|
|
18086
18096
|
action: buttonAction,
|
|
18087
18097
|
variant: "smallGhost",
|
|
18088
18098
|
dataQa: buttonText,
|
|
18089
18099
|
extraStyles: "min-width: 0;"
|
|
18090
|
-
}))))));
|
|
18100
|
+
}) : /*#__PURE__*/React__default.createElement(React.Fragment, null))))));
|
|
18091
18101
|
};
|
|
18092
18102
|
|
|
18093
18103
|
var src = createCommonjsModule(function (module, exports) {
|
|
@@ -18512,7 +18522,8 @@ var InputField = styled__default.input(_templateObject$p(), function (_ref) {
|
|
|
18512
18522
|
|
|
18513
18523
|
var FormattedInputField = styled__default(function (_ref7) {
|
|
18514
18524
|
var showErrors = _ref7.showErrors,
|
|
18515
|
-
|
|
18525
|
+
themeValues = _ref7.themeValues,
|
|
18526
|
+
props = _objectWithoutProperties(_ref7, ["showErrors", "themeValues"]);
|
|
18516
18527
|
|
|
18517
18528
|
return /*#__PURE__*/React__default.createElement(src_1, props);
|
|
18518
18529
|
})(_templateObject3$7(), function (_ref8) {
|
|
@@ -18571,10 +18582,12 @@ var FormInput = function FormInput(_ref13) {
|
|
|
18571
18582
|
justify: "space-between",
|
|
18572
18583
|
align: "center"
|
|
18573
18584
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
18585
|
+
as: "label",
|
|
18574
18586
|
color: themeValues.labelColor,
|
|
18575
18587
|
variant: "pS",
|
|
18576
18588
|
weight: themeValues.fontWeight,
|
|
18577
|
-
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
18589
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
18590
|
+
id: labelTextWhenNoError.replace(/\s+/g, "-")
|
|
18578
18591
|
}, labelTextWhenNoError), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
18579
18592
|
color: themeValues.linkColor,
|
|
18580
18593
|
variant: "pS",
|
|
@@ -18586,11 +18599,12 @@ var FormInput = function FormInput(_ref13) {
|
|
|
18586
18599
|
justify: "space-between",
|
|
18587
18600
|
align: "center"
|
|
18588
18601
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
18602
|
+
as: "label",
|
|
18589
18603
|
color: themeValues.labelColor,
|
|
18590
18604
|
variant: "pS",
|
|
18591
18605
|
fontWeight: themeValues.fontWeight,
|
|
18592
18606
|
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
18593
|
-
id: labelTextWhenNoError
|
|
18607
|
+
id: labelTextWhenNoError.replace(/\s+/g, "-")
|
|
18594
18608
|
}, labelTextWhenNoError), type === "password" && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
18595
18609
|
variant: "pS",
|
|
18596
18610
|
color: themeValues.linkColor,
|
|
@@ -18610,7 +18624,7 @@ var FormInput = function FormInput(_ref13) {
|
|
|
18610
18624
|
}, decorator)))), /*#__PURE__*/React__default.createElement(Box, {
|
|
18611
18625
|
padding: "0"
|
|
18612
18626
|
}, formatter ? /*#__PURE__*/React__default.createElement(FormattedInputField, _extends({
|
|
18613
|
-
"aria-labelledby": labelTextWhenNoError,
|
|
18627
|
+
"aria-labelledby": labelTextWhenNoError.replace(/\s+/g, "-"),
|
|
18614
18628
|
onChange: function onChange(e) {
|
|
18615
18629
|
return fieldActions.set(e);
|
|
18616
18630
|
},
|
|
@@ -18626,7 +18640,7 @@ var FormInput = function FormInput(_ref13) {
|
|
|
18626
18640
|
customHeight: customHeight,
|
|
18627
18641
|
extraStyles: extraStyles
|
|
18628
18642
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
18629
|
-
"aria-labelledby": labelTextWhenNoError,
|
|
18643
|
+
"aria-labelledby": labelTextWhenNoError.replace(/\s+/g, "-"),
|
|
18630
18644
|
onChange: function onChange(e) {
|
|
18631
18645
|
return fieldActions.set(e.target.value);
|
|
18632
18646
|
},
|
|
@@ -18917,13 +18931,14 @@ var HamburgerButton = function HamburgerButton(_ref4) {
|
|
|
18917
18931
|
inactiveColor = _ref4.inactiveColor,
|
|
18918
18932
|
isActive = _ref4.isActive,
|
|
18919
18933
|
_ref4$onClick = _ref4.onClick,
|
|
18920
|
-
onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick
|
|
18934
|
+
onClick = _ref4$onClick === void 0 ? noop : _ref4$onClick,
|
|
18935
|
+
controls = _ref4.controls;
|
|
18921
18936
|
return /*#__PURE__*/React__default.createElement(Hamburger, {
|
|
18922
18937
|
className: isActive === true ? "active" : "",
|
|
18923
18938
|
onClick: onClick,
|
|
18924
18939
|
type: "button",
|
|
18925
|
-
|
|
18926
|
-
|
|
18940
|
+
"aria-label": "Menu",
|
|
18941
|
+
"aria-controls": controls
|
|
18927
18942
|
}, /*#__PURE__*/React__default.createElement(HamburgerBox, null, /*#__PURE__*/React__default.createElement(HamburgerInner, {
|
|
18928
18943
|
className: isActive === true ? "active" : "",
|
|
18929
18944
|
inactiveColor: inactiveColor,
|
|
@@ -19732,6 +19747,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
19732
19747
|
animate: radioOn ? radioFocused ? "onFocused" : "on" : radioFocused ? "offFocused" : "off"
|
|
19733
19748
|
}, /*#__PURE__*/React__default.createElement(HiddenRadioButton, {
|
|
19734
19749
|
id: "#radio-".concat(name),
|
|
19750
|
+
"aria-label": name,
|
|
19735
19751
|
disabled: disabled,
|
|
19736
19752
|
onClick: toggleRadio,
|
|
19737
19753
|
tabIndex: "-1"
|
|
@@ -30537,6 +30553,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
30537
30553
|
extraStyles: "display: flex; align-items: center;",
|
|
30538
30554
|
dataQa: dataQa
|
|
30539
30555
|
}, /*#__PURE__*/React__default.createElement(HiddenToggleSwitchBox, {
|
|
30556
|
+
"aria-label": name,
|
|
30540
30557
|
checked: isOn,
|
|
30541
30558
|
onChange: disabled ? noop : onToggle,
|
|
30542
30559
|
disabled: disabled,
|
|
@@ -32618,29 +32635,31 @@ var EditableList = function EditableList(_ref) {
|
|
|
32618
32635
|
padding: "0",
|
|
32619
32636
|
borderRadius: "4px",
|
|
32620
32637
|
extraStyles: "box-shadow: 0px 2px 14px 0px rgb(246, 246, 249),\n 0px 3px 8px 0px rgb(202, 206, 216);"
|
|
32621
|
-
}, items.map(function (
|
|
32638
|
+
}, items.map(function (item) {
|
|
32622
32639
|
var _useState = React.useState(false),
|
|
32623
32640
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32624
32641
|
modalOpen = _useState2[0],
|
|
32625
32642
|
toggleModal = _useState2[1];
|
|
32626
32643
|
|
|
32627
32644
|
return /*#__PURE__*/React__default.createElement(EditableListItem, {
|
|
32628
|
-
listItemSize: !!
|
|
32629
|
-
key:
|
|
32645
|
+
listItemSize: !!item.id && item.id === autoPayMethod ? "big" : listItemSize,
|
|
32646
|
+
key: item.id || item
|
|
32630
32647
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
32631
32648
|
variant: "p",
|
|
32632
32649
|
color: CHARADE_GREY
|
|
32633
|
-
}, renderItem(
|
|
32650
|
+
}, renderItem(item)), /*#__PURE__*/React__default.createElement(EditableListItemControls, null, item.isPrimary && /*#__PURE__*/React__default.createElement(Text$1, {
|
|
32634
32651
|
variant: "p",
|
|
32635
32652
|
color: STORM_GREY,
|
|
32636
|
-
extraStyles: "font-style: italic;"
|
|
32653
|
+
extraStyles: "font-style: italic;",
|
|
32654
|
+
key: "Default ".concat(itemName)
|
|
32637
32655
|
}, "Default ", itemName), canRemove && /*#__PURE__*/React__default.createElement(Box, {
|
|
32638
32656
|
padding: "0 0.5rem",
|
|
32639
32657
|
border: "2px solid transparent",
|
|
32640
32658
|
extraStyles: ":not(:first-child) { border-left: 2px solid ".concat(BOSTON_BLUE, ";}"),
|
|
32641
|
-
dataQa: qaPrefix + " Remove"
|
|
32659
|
+
dataQa: qaPrefix + " Remove",
|
|
32660
|
+
key: "Remove ".concat(item.id)
|
|
32642
32661
|
}, useModal ? /*#__PURE__*/React__default.createElement(Modal, _extends({
|
|
32643
|
-
item: _objectSpread2({},
|
|
32662
|
+
item: _objectSpread2({}, item)
|
|
32644
32663
|
}, modalProps, {
|
|
32645
32664
|
modalOpen: modalOpen,
|
|
32646
32665
|
toggleModal: toggleModal
|
|
@@ -32648,19 +32667,20 @@ var EditableList = function EditableList(_ref) {
|
|
|
32648
32667
|
variant: "smallGhost",
|
|
32649
32668
|
text: "Remove",
|
|
32650
32669
|
action: function action() {
|
|
32651
|
-
return removeItem(
|
|
32670
|
+
return removeItem(item.id);
|
|
32652
32671
|
},
|
|
32653
32672
|
extraStyles: "min-width: 0;"
|
|
32654
32673
|
})), canEdit && /*#__PURE__*/React__default.createElement(Box, {
|
|
32655
32674
|
padding: "0 0.5rem",
|
|
32656
32675
|
border: "2px solid transparent",
|
|
32657
32676
|
extraStyles: ":not(:first-child) { border-left: 2px solid ".concat(BOSTON_BLUE, ";}"),
|
|
32658
|
-
dataQa: qaPrefix + " Edit"
|
|
32677
|
+
dataQa: qaPrefix + " Edit",
|
|
32678
|
+
key: "Edit ".concat(item.id)
|
|
32659
32679
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
32660
32680
|
variant: "smallGhost",
|
|
32661
32681
|
text: "Edit",
|
|
32662
32682
|
action: function action() {
|
|
32663
|
-
return editItem(
|
|
32683
|
+
return editItem(item.id);
|
|
32664
32684
|
},
|
|
32665
32685
|
extraStyles: "min-width: 0;"
|
|
32666
32686
|
}))));
|
|
@@ -34448,7 +34468,8 @@ var fallbackValues$s = {
|
|
|
34448
34468
|
};
|
|
34449
34469
|
|
|
34450
34470
|
var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
34451
|
-
var
|
|
34471
|
+
var id = _ref.id,
|
|
34472
|
+
_ref$top = _ref.top,
|
|
34452
34473
|
top = _ref$top === void 0 ? "125%" : _ref$top,
|
|
34453
34474
|
_ref$left = _ref.left,
|
|
34454
34475
|
left = _ref$left === void 0 ? "-100%" : _ref$left,
|
|
@@ -34463,6 +34484,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
|
34463
34484
|
themeValues = _ref.themeValues;
|
|
34464
34485
|
var menuCarat = "&:after { bottom: 100%; right: 10px; border: solid transparent; content: \" \"; height: 0; width: 0; position: absolute; pointer-events: none; border-color: ".concat(themeValues.backgroundColor, "00; border-bottom-color: ").concat(themeValues.backgroundColor, "; border-width: 10px; margin-left: -10px; }");
|
|
34465
34486
|
return /*#__PURE__*/React__default.createElement(Imposter, {
|
|
34487
|
+
id: id,
|
|
34466
34488
|
breakout: true,
|
|
34467
34489
|
top: top,
|
|
34468
34490
|
left: left,
|
|
@@ -34525,12 +34547,14 @@ var menu = posed.div({
|
|
|
34525
34547
|
var ImposterMenu = styled__default(menu)(_templateObject$y());
|
|
34526
34548
|
|
|
34527
34549
|
var NavMenuMobile = function NavMenuMobile(_ref) {
|
|
34528
|
-
var
|
|
34550
|
+
var id = _ref.id,
|
|
34551
|
+
_ref$menuContent = _ref.menuContent,
|
|
34529
34552
|
menuContent = _ref$menuContent === void 0 ? [] : _ref$menuContent,
|
|
34530
34553
|
_ref$visible = _ref.visible,
|
|
34531
34554
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
34532
34555
|
themeValues = _ref.themeValues;
|
|
34533
34556
|
return /*#__PURE__*/React__default.createElement(ImposterMenu, {
|
|
34557
|
+
id: id,
|
|
34534
34558
|
initialPose: "invisible",
|
|
34535
34559
|
pose: visible ? "visible" : "invisible"
|
|
34536
34560
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -36203,9 +36227,6 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
36203
36227
|
justify: "space-between",
|
|
36204
36228
|
align: "center",
|
|
36205
36229
|
nowrap: true
|
|
36206
|
-
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
36207
|
-
padding: "0",
|
|
36208
|
-
width: "100%"
|
|
36209
36230
|
}, /*#__PURE__*/React__default.createElement(AmountModule, {
|
|
36210
36231
|
totalAmountDue: obligations.reduce(function (acc, curr) {
|
|
36211
36232
|
return acc + curr.amountDue;
|
|
@@ -36215,19 +36236,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
36215
36236
|
deactivatePaymentSchedule: deactivatePaymentSchedule,
|
|
36216
36237
|
navigateToSettings: navigateToSettings,
|
|
36217
36238
|
autoPaySchedule: autoPaySchedule
|
|
36218
|
-
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
36219
|
-
padding: "0",
|
|
36220
|
-
width: "100%"
|
|
36221
|
-
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
36222
|
-
isLoading: isLoading,
|
|
36223
|
-
action: function action() {
|
|
36224
|
-
return handleClick(obligations);
|
|
36225
|
-
},
|
|
36226
|
-
text: "Pay Now",
|
|
36227
|
-
variant: isMobile ? "smallSecondary" : "secondary",
|
|
36228
|
-
dataQa: "Pay Now",
|
|
36229
|
-
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
36230
|
-
})))), /*#__PURE__*/React__default.createElement(Box, {
|
|
36239
|
+
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
36231
36240
|
padding: isMobile ? "16px" : "0"
|
|
36232
36241
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
36233
36242
|
justify: isMobile ? "center" : "flex-end",
|
|
@@ -36275,7 +36284,19 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
36275
36284
|
variant: isMobile ? "smallSecondary" : "secondary",
|
|
36276
36285
|
dataQa: "Pay Now",
|
|
36277
36286
|
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
36278
|
-
})))
|
|
36287
|
+
}))), isMobile && /*#__PURE__*/React__default.createElement(Box, {
|
|
36288
|
+
padding: "8px 0 0",
|
|
36289
|
+
width: "100%"
|
|
36290
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
36291
|
+
isLoading: isLoading,
|
|
36292
|
+
action: function action() {
|
|
36293
|
+
return handleClick(obligations);
|
|
36294
|
+
},
|
|
36295
|
+
text: "Pay Now",
|
|
36296
|
+
variant: isMobile ? "smallSecondary" : "secondary",
|
|
36297
|
+
dataQa: "Pay Now",
|
|
36298
|
+
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
36299
|
+
}))));
|
|
36279
36300
|
};
|
|
36280
36301
|
|
|
36281
36302
|
var Obligation = function Obligation(_ref) {
|
|
@@ -36313,7 +36334,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
36313
36334
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
36314
36335
|
justify: "flex-start",
|
|
36315
36336
|
align: "center"
|
|
36316
|
-
}, /*#__PURE__*/React__default.createElement(IconsModule, {
|
|
36337
|
+
}, !isMobile && /*#__PURE__*/React__default.createElement(IconsModule, {
|
|
36317
36338
|
icon: config.icon,
|
|
36318
36339
|
iconDefault: config.iconDefault,
|
|
36319
36340
|
configIconMap: config.iconMap,
|
|
@@ -36452,6 +36473,132 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
|
|
|
36452
36473
|
};
|
|
36453
36474
|
};
|
|
36454
36475
|
|
|
36476
|
+
var PAGING_SPACE = 2; // how many pages we want to have before/after delimiter
|
|
36477
|
+
|
|
36478
|
+
var PAGING_INIT_SPACE = 3; // first delimiter should appear after 3 pages
|
|
36479
|
+
|
|
36480
|
+
var PrevNextButton = function PrevNextButton(_ref) {
|
|
36481
|
+
var action = _ref.action,
|
|
36482
|
+
type = _ref.type,
|
|
36483
|
+
arrowColor = _ref.arrowColor,
|
|
36484
|
+
numberColor = _ref.numberColor;
|
|
36485
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
36486
|
+
padding: "0 10px 0",
|
|
36487
|
+
minHeight: "40px",
|
|
36488
|
+
extraStyles: "max-height: 40px;"
|
|
36489
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
36490
|
+
action: action,
|
|
36491
|
+
contentOverride: true,
|
|
36492
|
+
dataQa: type,
|
|
36493
|
+
extraStyles: "\n min-width: 40px;\n min-height: 100%;\n max-height: 40px;\n padding: 6px;\n border-radius: 3px;\n background-color: ".concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE, ";\n border-color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE, "\n ")
|
|
36494
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
36495
|
+
padding: "0",
|
|
36496
|
+
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
36497
|
+
}, /*#__PURE__*/React__default.createElement(ChevronIcon$1, {
|
|
36498
|
+
variant: "darkMode",
|
|
36499
|
+
iconFill: arrowColor
|
|
36500
|
+
}))));
|
|
36501
|
+
};
|
|
36502
|
+
|
|
36503
|
+
var getPagesPanel = function getPagesPanel(page, pagesCount) {
|
|
36504
|
+
if (!pagesCount || pagesCount <= 1) {
|
|
36505
|
+
return [];
|
|
36506
|
+
}
|
|
36507
|
+
|
|
36508
|
+
var lastPageNumber = pagesCount;
|
|
36509
|
+
var space = page === 1 ? PAGING_INIT_SPACE : PAGING_SPACE;
|
|
36510
|
+
var pages = [{
|
|
36511
|
+
index: 1,
|
|
36512
|
+
isButton: true
|
|
36513
|
+
}];
|
|
36514
|
+
|
|
36515
|
+
if (page > space + 1) {
|
|
36516
|
+
pages.push({
|
|
36517
|
+
isDelimiter: true
|
|
36518
|
+
});
|
|
36519
|
+
}
|
|
36520
|
+
|
|
36521
|
+
for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
|
|
36522
|
+
pages.push({
|
|
36523
|
+
index: j,
|
|
36524
|
+
isButton: true
|
|
36525
|
+
});
|
|
36526
|
+
}
|
|
36527
|
+
|
|
36528
|
+
if (page < lastPageNumber - space) {
|
|
36529
|
+
pages.push({
|
|
36530
|
+
isDelimiter: true
|
|
36531
|
+
});
|
|
36532
|
+
}
|
|
36533
|
+
|
|
36534
|
+
pages.push({
|
|
36535
|
+
index: lastPageNumber,
|
|
36536
|
+
isButton: true
|
|
36537
|
+
});
|
|
36538
|
+
var activePage = pages.find(function (p) {
|
|
36539
|
+
return p.index === page;
|
|
36540
|
+
});
|
|
36541
|
+
|
|
36542
|
+
if (activePage) {
|
|
36543
|
+
activePage.active = true;
|
|
36544
|
+
}
|
|
36545
|
+
|
|
36546
|
+
return pages;
|
|
36547
|
+
};
|
|
36548
|
+
|
|
36549
|
+
var Pagination = function Pagination(_ref2) {
|
|
36550
|
+
var pagePrevious = _ref2.pagePrevious,
|
|
36551
|
+
pageNext = _ref2.pageNext,
|
|
36552
|
+
setCurrentPage = _ref2.setCurrentPage,
|
|
36553
|
+
currentPage = _ref2.currentPage,
|
|
36554
|
+
pageCount = _ref2.pageCount,
|
|
36555
|
+
numberColor = _ref2.numberColor,
|
|
36556
|
+
arrowColor = _ref2.arrowColor;
|
|
36557
|
+
return /*#__PURE__*/React__default.createElement(Cluster, {
|
|
36558
|
+
justify: "center",
|
|
36559
|
+
childGap: "10px"
|
|
36560
|
+
}, currentPage > 1 && /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
36561
|
+
type: "prev",
|
|
36562
|
+
action: pagePrevious,
|
|
36563
|
+
arrowColor: arrowColor,
|
|
36564
|
+
numberColor: numberColor
|
|
36565
|
+
}), getPagesPanel(currentPage, pageCount).map(function (item, index) {
|
|
36566
|
+
return item.isButton ? /*#__PURE__*/React__default.createElement(Box, {
|
|
36567
|
+
padding: "0",
|
|
36568
|
+
border: item.active && "1px solid ".concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE),
|
|
36569
|
+
borderRadius: item.active && "3px",
|
|
36570
|
+
extraStyles: "max-height: 40px;"
|
|
36571
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
36572
|
+
variant: "ghost",
|
|
36573
|
+
key: item.index,
|
|
36574
|
+
text: item.index,
|
|
36575
|
+
disabled: item.active,
|
|
36576
|
+
action: !item.active ? function () {
|
|
36577
|
+
return setCurrentPage({
|
|
36578
|
+
pageNumber: item.index
|
|
36579
|
+
});
|
|
36580
|
+
} : noop,
|
|
36581
|
+
textExtraStyles: "font-size: 17px; font-weight: 900;",
|
|
36582
|
+
extraStyles: "\n min-width: 40px; min-height: 100%; padding: 0;\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n > * > span {\n color: ".concat(numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE, "\n }\n }\n &:hover { ").concat(item.active ? "cursor: default;" : "background-color: ".concat(ALABASTER_WHITE), " }\n "),
|
|
36583
|
+
dataQa: index
|
|
36584
|
+
}, item.index)) : /*#__PURE__*/React__default.createElement(Box, {
|
|
36585
|
+
padding: "0 10px"
|
|
36586
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
36587
|
+
justify: "flex-end"
|
|
36588
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
36589
|
+
key: index,
|
|
36590
|
+
variant: "pXL",
|
|
36591
|
+
weight: "900",
|
|
36592
|
+
color: numberColor !== null && numberColor !== void 0 ? numberColor : MATISSE_BLUE
|
|
36593
|
+
}, "...")));
|
|
36594
|
+
}), currentPage < pageCount && /*#__PURE__*/React__default.createElement(PrevNextButton, {
|
|
36595
|
+
type: "next",
|
|
36596
|
+
action: pageNext,
|
|
36597
|
+
arrowColor: arrowColor,
|
|
36598
|
+
numberColor: numberColor
|
|
36599
|
+
}));
|
|
36600
|
+
};
|
|
36601
|
+
|
|
36455
36602
|
var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
36456
36603
|
var _ref$forwardButtonTex = _ref.forwardButtonText,
|
|
36457
36604
|
forwardButtonText = _ref$forwardButtonTex === void 0 ? "Next" : _ref$forwardButtonTex,
|
|
@@ -37281,10 +37428,10 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
37281
37428
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
37282
37429
|
padding: section.hideRadioButton ? "1.5rem" : "1.25rem 1.5rem 1.25rem 1.25rem",
|
|
37283
37430
|
background: section.disabled ? themeValues.headingDisabledColor : themeValues.headingBackgroundColor,
|
|
37284
|
-
onClick: isMobile && supportsTouch ? noop : function () {
|
|
37431
|
+
onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
37285
37432
|
return toggleOpenSection(section.id);
|
|
37286
37433
|
},
|
|
37287
|
-
onTouchEnd: isMobile && supportsTouch ? function () {
|
|
37434
|
+
onTouchEnd: isMobile && supportsTouch || !section.disabled ? function () {
|
|
37288
37435
|
return toggleOpenSection(section.id);
|
|
37289
37436
|
} : noop,
|
|
37290
37437
|
key: "header-".concat(section.id),
|
|
@@ -37308,7 +37455,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
37308
37455
|
name: section.id,
|
|
37309
37456
|
radioOn: openSection === section.id,
|
|
37310
37457
|
radioFocused: focused === section.id,
|
|
37311
|
-
toggleRadio: function
|
|
37458
|
+
toggleRadio: section.disabled ? noop : function () {
|
|
37312
37459
|
return toggleOpenSection(section.id);
|
|
37313
37460
|
},
|
|
37314
37461
|
tabIndex: "-1"
|
|
@@ -38292,6 +38439,7 @@ exports.NavHeader = NavHeader;
|
|
|
38292
38439
|
exports.NavMenuDesktop = NavMenuDesktop$1;
|
|
38293
38440
|
exports.NavMenuMobile = NavMenuMobile$1;
|
|
38294
38441
|
exports.Obligation = Obligation;
|
|
38442
|
+
exports.Pagination = Pagination;
|
|
38295
38443
|
exports.Paragraph = Paragraph$1;
|
|
38296
38444
|
exports.PartialAmountForm = PartialAmountForm;
|
|
38297
38445
|
exports.PasswordRequirements = PasswordRequirements;
|