@thecb/components 9.2.0-beta.1 → 9.2.0-beta.11
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 +515 -457
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +169 -60
- package/dist/index.esm.js +514 -457
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/index.d.ts +1 -0
- package/src/components/molecules/popover/Popover.js +1 -1
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +1 -1
- package/src/components/molecules/toast-notification/ToastNotification.js +17 -31
- package/src/components/molecules/toast-notification/ToastNotification.stories.js +42 -11
- package/src/components/molecules/toast-notification/index.d.ts +18 -1
- package/src/constants/colors.d.ts +1 -0
- package/src/constants/colors.js +3 -1
- package/src/hooks/index.js +3 -0
- package/src/hooks/use-toast-notification/index.d.ts +23 -0
- package/src/hooks/use-toast-notification/index.js +38 -0
- package/src/index.d.ts +2 -1
- package/src/index.js +2 -1
- package/src/types/common/ToastVariants.ts +6 -0
- package/src/types/common/index.ts +1 -0
- package/src/util/index.js +10 -2
- /package/src/{util/useOutsideClick.js → hooks/use-outside-click/index.js} +0 -0
- /package/src/{util/useScrollTo.js → hooks/use-scroll-to/index.js} +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -4953,7 +4953,7 @@ to the one generated by name-that-color.
|
|
|
4953
4953
|
var BLACK = "#000000";
|
|
4954
4954
|
var TRANSPARENT = "transparent";
|
|
4955
4955
|
var LINK_WATER = "#FEFEFE";
|
|
4956
|
-
var WHITE
|
|
4956
|
+
var WHITE = "#FFFFFF";
|
|
4957
4957
|
var SOLITUDE_WHITE = "#EBEDF1";
|
|
4958
4958
|
var SEASHELL_WHITE = "#F1F1F1";
|
|
4959
4959
|
var ALABASTER_WHITE = "#F7F7F7";
|
|
@@ -5043,7 +5043,8 @@ var FANTASY_RED = "#FCF4F4";
|
|
|
5043
5043
|
var COSMOS_RED = "#FFD0D3";
|
|
5044
5044
|
var BLUSH_RED = "#FFF0F5"; // Second level color constants
|
|
5045
5045
|
|
|
5046
|
-
var ERROR_COLOR = RAZZMATAZZ_RED;
|
|
5046
|
+
var ERROR_COLOR = RAZZMATAZZ_RED;
|
|
5047
|
+
var ERROR_BACKGROUND_COLOR = "#FFF4F8"; // These colors are sequestered so that the alert component can reference them // by type of alert
|
|
5047
5048
|
|
|
5048
5049
|
var ALERT_COLORS = {
|
|
5049
5050
|
warn: {
|
|
@@ -5097,7 +5098,7 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
5097
5098
|
__proto__: null,
|
|
5098
5099
|
BLACK: BLACK,
|
|
5099
5100
|
TRANSPARENT: TRANSPARENT,
|
|
5100
|
-
WHITE: WHITE
|
|
5101
|
+
WHITE: WHITE,
|
|
5101
5102
|
LINK_WATER: LINK_WATER,
|
|
5102
5103
|
SOLITUDE_WHITE: SOLITUDE_WHITE,
|
|
5103
5104
|
SEASHELL_WHITE: SEASHELL_WHITE,
|
|
@@ -5174,7 +5175,8 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
5174
5175
|
RASPBERRY: RASPBERRY,
|
|
5175
5176
|
ALERT_COLORS: ALERT_COLORS,
|
|
5176
5177
|
PILL_COLORS: PILL_COLORS,
|
|
5177
|
-
ERROR_COLOR: ERROR_COLOR
|
|
5178
|
+
ERROR_COLOR: ERROR_COLOR,
|
|
5179
|
+
ERROR_BACKGROUND_COLOR: ERROR_BACKGROUND_COLOR
|
|
5178
5180
|
});
|
|
5179
5181
|
|
|
5180
5182
|
var TextSpan = styled.span.withConfig({
|
|
@@ -12598,18 +12600,18 @@ var padding = {
|
|
|
12598
12600
|
whitePrimary: "1.125rem 0.75rem"
|
|
12599
12601
|
};
|
|
12600
12602
|
var color$1 = {
|
|
12601
|
-
primary: WHITE
|
|
12603
|
+
primary: WHITE,
|
|
12602
12604
|
secondary: MATISSE_BLUE,
|
|
12603
12605
|
back: MATISSE_BLUE,
|
|
12604
|
-
smallPrimary: WHITE
|
|
12606
|
+
smallPrimary: WHITE,
|
|
12605
12607
|
smallSecondary: MATISSE_BLUE,
|
|
12606
12608
|
smallGhost: MATISSE_BLUE,
|
|
12607
12609
|
ghost: MATISSE_BLUE,
|
|
12608
12610
|
tertiary: MATISSE_BLUE,
|
|
12609
|
-
danger: WHITE
|
|
12611
|
+
danger: WHITE,
|
|
12610
12612
|
dangerSecondary: ERROR_COLOR,
|
|
12611
|
-
whiteSecondary: WHITE
|
|
12612
|
-
whitePrimary: WHITE
|
|
12613
|
+
whiteSecondary: WHITE,
|
|
12614
|
+
whitePrimary: WHITE
|
|
12613
12615
|
};
|
|
12614
12616
|
var fontSizeVariant = {
|
|
12615
12617
|
primary: "pS",
|
|
@@ -12692,7 +12694,7 @@ var border = {
|
|
|
12692
12694
|
tertiary: "none",
|
|
12693
12695
|
danger: "2px solid " + RASPBERRY,
|
|
12694
12696
|
dangerSecondary: "2px solid " + ERROR_COLOR,
|
|
12695
|
-
whiteSecondary: "2px solid " + WHITE
|
|
12697
|
+
whiteSecondary: "2px solid " + WHITE,
|
|
12696
12698
|
whitePrimary: "2px solid " + TRANSPARENT
|
|
12697
12699
|
};
|
|
12698
12700
|
var hoverBackgroundColor = {
|
|
@@ -12724,18 +12726,18 @@ var hoverBorderColor = {
|
|
|
12724
12726
|
whitePrimary: "2px solid " + TRANSPARENT
|
|
12725
12727
|
};
|
|
12726
12728
|
var hoverColor = {
|
|
12727
|
-
primary: WHITE
|
|
12729
|
+
primary: WHITE,
|
|
12728
12730
|
secondary: SAPPHIRE_BLUE,
|
|
12729
12731
|
back: SAPPHIRE_BLUE,
|
|
12730
|
-
smallPrimary: WHITE
|
|
12732
|
+
smallPrimary: WHITE,
|
|
12731
12733
|
smallSecondary: SAPPHIRE_BLUE,
|
|
12732
12734
|
smallGhost: SAPPHIRE_BLUE,
|
|
12733
12735
|
ghost: SAPPHIRE_BLUE,
|
|
12734
12736
|
tertiary: SAPPHIRE_BLUE,
|
|
12735
|
-
danger: WHITE
|
|
12737
|
+
danger: WHITE,
|
|
12736
12738
|
dangerSecondary: "#B10541",
|
|
12737
|
-
whiteSecondary: WHITE
|
|
12738
|
-
whitePrimary: WHITE
|
|
12739
|
+
whiteSecondary: WHITE,
|
|
12740
|
+
whitePrimary: WHITE
|
|
12739
12741
|
};
|
|
12740
12742
|
var activeBackgroundColor = {
|
|
12741
12743
|
primary: PEACOCK_BLUE,
|
|
@@ -12766,18 +12768,18 @@ var activeBorderColor = {
|
|
|
12766
12768
|
whitePrimary: "2px solid " + TRANSPARENT
|
|
12767
12769
|
};
|
|
12768
12770
|
var activeColor = {
|
|
12769
|
-
primary: WHITE
|
|
12771
|
+
primary: WHITE,
|
|
12770
12772
|
secondary: MATISSE_BLUE,
|
|
12771
12773
|
back: PEACOCK_BLUE,
|
|
12772
|
-
smallPrimary: WHITE
|
|
12774
|
+
smallPrimary: WHITE,
|
|
12773
12775
|
smallSecondary: PEACOCK_BLUE,
|
|
12774
12776
|
smallGhost: PEACOCK_BLUE,
|
|
12775
12777
|
ghost: PEACOCK_BLUE,
|
|
12776
12778
|
tertiary: PEACOCK_BLUE,
|
|
12777
|
-
danger: WHITE
|
|
12779
|
+
danger: WHITE,
|
|
12778
12780
|
dangerSecondary: "#910029",
|
|
12779
|
-
whiteSecondary: WHITE
|
|
12780
|
-
whitePrimary: WHITE
|
|
12781
|
+
whiteSecondary: WHITE,
|
|
12782
|
+
whitePrimary: WHITE
|
|
12781
12783
|
};
|
|
12782
12784
|
var fallbackValues$1 = {
|
|
12783
12785
|
padding: padding,
|
|
@@ -12976,9 +12978,9 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
|
12976
12978
|
};
|
|
12977
12979
|
|
|
12978
12980
|
var primaryColor = {
|
|
12979
|
-
info: "".concat(WHITE
|
|
12980
|
-
success: "".concat(WHITE
|
|
12981
|
-
error: "".concat(WHITE
|
|
12981
|
+
info: "".concat(WHITE),
|
|
12982
|
+
success: "".concat(WHITE),
|
|
12983
|
+
error: "".concat(WHITE)
|
|
12982
12984
|
};
|
|
12983
12985
|
var accentColor = {
|
|
12984
12986
|
info: "".concat(BRIGHT_GREY),
|
|
@@ -12993,7 +12995,7 @@ var subIconColor = {
|
|
|
12993
12995
|
var singleIconColor = {
|
|
12994
12996
|
primary: "".concat(MATISSE_BLUE),
|
|
12995
12997
|
secondary: "".concat(BRIGHT_GREY),
|
|
12996
|
-
darkMode: "".concat(WHITE
|
|
12998
|
+
darkMode: "".concat(WHITE)
|
|
12997
12999
|
};
|
|
12998
13000
|
var fallbackValues$2 = {
|
|
12999
13001
|
primaryColor: primaryColor,
|
|
@@ -18301,7 +18303,7 @@ var IconChevron = function IconChevron(_ref) {
|
|
|
18301
18303
|
fillRule: "evenodd"
|
|
18302
18304
|
}, /*#__PURE__*/React.createElement("mask", {
|
|
18303
18305
|
id: "icon-chevron-mask-2",
|
|
18304
|
-
fill: WHITE
|
|
18306
|
+
fill: WHITE
|
|
18305
18307
|
}, /*#__PURE__*/React.createElement("use", {
|
|
18306
18308
|
xlinkHref: "#icon-chevron-path-1"
|
|
18307
18309
|
})), /*#__PURE__*/React.createElement("use", {
|
|
@@ -18354,7 +18356,7 @@ var IconValid = function IconValid(_ref) {
|
|
|
18354
18356
|
var _ref$bgFill = _ref.bgFill,
|
|
18355
18357
|
bgFill = _ref$bgFill === void 0 ? FOREST_GREEN : _ref$bgFill,
|
|
18356
18358
|
_ref$iconFill = _ref.iconFill,
|
|
18357
|
-
iconFill = _ref$iconFill === void 0 ? WHITE
|
|
18359
|
+
iconFill = _ref$iconFill === void 0 ? WHITE : _ref$iconFill,
|
|
18358
18360
|
_ref$width = _ref.width,
|
|
18359
18361
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
18360
18362
|
_ref$height = _ref.height,
|
|
@@ -18406,7 +18408,7 @@ var IconInvalid = function IconInvalid(_ref) {
|
|
|
18406
18408
|
var _ref$bgFill = _ref.bgFill,
|
|
18407
18409
|
bgFill = _ref$bgFill === void 0 ? RAZZMATAZZ_RED : _ref$bgFill,
|
|
18408
18410
|
_ref$iconFill = _ref.iconFill,
|
|
18409
|
-
iconFill = _ref$iconFill === void 0 ? WHITE
|
|
18411
|
+
iconFill = _ref$iconFill === void 0 ? WHITE : _ref$iconFill,
|
|
18410
18412
|
_ref$width = _ref.width,
|
|
18411
18413
|
width = _ref$width === void 0 ? "18" : _ref$width,
|
|
18412
18414
|
_ref$height = _ref.height,
|
|
@@ -21829,7 +21831,7 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
21829
21831
|
|
|
21830
21832
|
var Paragraph$1 = themeComponent(Paragraph, "Paragraph", fallbackValues$b, "p");
|
|
21831
21833
|
|
|
21832
|
-
var backgroundColor$1 = WHITE
|
|
21834
|
+
var backgroundColor$1 = WHITE;
|
|
21833
21835
|
var iconBackgroundColor = GRECIAN_GREY;
|
|
21834
21836
|
var fallbackValues$c = {
|
|
21835
21837
|
backgroundColor: backgroundColor$1,
|
|
@@ -22022,10 +22024,10 @@ var textColor = {
|
|
|
22022
22024
|
"default": "".concat(CHARADE_GREY)
|
|
22023
22025
|
};
|
|
22024
22026
|
var disabledCheckColor = {
|
|
22025
|
-
"default": "".concat(WHITE
|
|
22027
|
+
"default": "".concat(WHITE, ";")
|
|
22026
22028
|
};
|
|
22027
22029
|
var checkColor = {
|
|
22028
|
-
"default": "".concat(WHITE
|
|
22030
|
+
"default": "".concat(WHITE, ";")
|
|
22029
22031
|
};
|
|
22030
22032
|
var errorStyles = {
|
|
22031
22033
|
"default": "border: 1px solid ".concat(RED, ";")
|
|
@@ -22043,7 +22045,7 @@ var checkedStyles = {
|
|
|
22043
22045
|
"default": "\n background: ".concat(MATISSE_BLUE, "; \n border: 1px solid ").concat(MATISSE_BLUE, ";\n")
|
|
22044
22046
|
};
|
|
22045
22047
|
var defaultStyles = {
|
|
22046
|
-
"default": "\n background: ".concat(WHITE
|
|
22048
|
+
"default": "\n background: ".concat(WHITE, "; \n border: 1px solid ").concat(STORM_GREY, ";\n")
|
|
22047
22049
|
};
|
|
22048
22050
|
var fallbackValues$d = {
|
|
22049
22051
|
backgroundColor: backgroundColor$2,
|
|
@@ -22196,14 +22198,14 @@ var Checkbox$1 = themeComponent(Checkbox, "Checkbox", fallbackValues$d, "default
|
|
|
22196
22198
|
|
|
22197
22199
|
var listBackgroundColor = {
|
|
22198
22200
|
"default": "".concat(ATHENS_GREY),
|
|
22199
|
-
disabled: "".concat(WHITE
|
|
22201
|
+
disabled: "".concat(WHITE)
|
|
22200
22202
|
};
|
|
22201
22203
|
var listItemColor = {
|
|
22202
22204
|
"default": "".concat(MINESHAFT_GREY),
|
|
22203
22205
|
disabled: "".concat(STORM_GREY)
|
|
22204
22206
|
};
|
|
22205
22207
|
var listItemBackgroundColor = {
|
|
22206
|
-
"default": "".concat(WHITE
|
|
22208
|
+
"default": "".concat(WHITE),
|
|
22207
22209
|
disabled: "".concat(ATHENS_GREY)
|
|
22208
22210
|
};
|
|
22209
22211
|
var listItemBorderColor = {
|
|
@@ -23705,7 +23707,7 @@ var IconWrapper = styled.div.withConfig({
|
|
|
23705
23707
|
var DropdownContentWrapper = styled.div.withConfig({
|
|
23706
23708
|
displayName: "Dropdown__DropdownContentWrapper",
|
|
23707
23709
|
componentId: "sc-pn6m0h-1"
|
|
23708
|
-
})(["transform-origin:0 0;border:1px solid ", ";border-radius:2px;background-color:", ";padding:8px 0 8px;position:absolute;width:", ";min-width:100%;max-height:", ";overflow-y:scroll;z-index:1;box-sizing:border-box;&:focus{outline:none;}ul{padding-left:0;}"], GREY_CHATEAU, WHITE
|
|
23710
|
+
})(["transform-origin:0 0;border:1px solid ", ";border-radius:2px;background-color:", ";padding:8px 0 8px;position:absolute;width:", ";min-width:100%;max-height:", ";overflow-y:scroll;z-index:1;box-sizing:border-box;&:focus{outline:none;}ul{padding-left:0;}"], GREY_CHATEAU, WHITE, function (_ref2) {
|
|
23709
23711
|
var widthFitOptions = _ref2.widthFitOptions;
|
|
23710
23712
|
return widthFitOptions ? "fit-content" : "100%";
|
|
23711
23713
|
}, function (_ref3) {
|
|
@@ -23718,7 +23720,7 @@ var DropdownItemWrapper = styled.li.withConfig({
|
|
|
23718
23720
|
})(["background-color:", ";text-align:start;border-width:0px;border-color:transparent;box-shadow:none;padding:1rem;box-sizing:border-box;width:100%;list-style:none;cursor:", ";&:hover{background-color:", ";}&:focus{background-color:", ";outline:none;}"], function (_ref4) {
|
|
23719
23721
|
var selected = _ref4.selected,
|
|
23720
23722
|
themeValues = _ref4.themeValues;
|
|
23721
|
-
return selected ? themeValues.selectedColor : WHITE
|
|
23723
|
+
return selected ? themeValues.selectedColor : WHITE;
|
|
23722
23724
|
}, function (_ref5) {
|
|
23723
23725
|
var disabled = _ref5.disabled;
|
|
23724
23726
|
return disabled ? "default" : "pointer";
|
|
@@ -23726,12 +23728,12 @@ var DropdownItemWrapper = styled.li.withConfig({
|
|
|
23726
23728
|
var selected = _ref6.selected,
|
|
23727
23729
|
disabled = _ref6.disabled,
|
|
23728
23730
|
themeValues = _ref6.themeValues;
|
|
23729
|
-
return selected ? themeValues.selectedColor : disabled ? WHITE
|
|
23731
|
+
return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
|
|
23730
23732
|
}, function (_ref7) {
|
|
23731
23733
|
var selected = _ref7.selected,
|
|
23732
23734
|
disabled = _ref7.disabled,
|
|
23733
23735
|
themeValues = _ref7.themeValues;
|
|
23734
|
-
return selected ? themeValues.selectedColor : disabled ? WHITE
|
|
23736
|
+
return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
|
|
23735
23737
|
});
|
|
23736
23738
|
|
|
23737
23739
|
var Dropdown = function Dropdown(_ref8) {
|
|
@@ -23985,7 +23987,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23985
23987
|
}, [filteredOptions]);
|
|
23986
23988
|
return /*#__PURE__*/React.createElement(Box, {
|
|
23987
23989
|
padding: "0",
|
|
23988
|
-
background: isOpen ? themeValues.hoverColor : WHITE
|
|
23990
|
+
background: isOpen ? themeValues.hoverColor : WHITE,
|
|
23989
23991
|
extraStyles: "position: relative;",
|
|
23990
23992
|
minWidth: "100%",
|
|
23991
23993
|
onClick: function onClick() {
|
|
@@ -24011,7 +24013,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24011
24013
|
"aria-expanded": isOpen,
|
|
24012
24014
|
"aria-required": options.required,
|
|
24013
24015
|
"aria-invalid": ariaInvalid,
|
|
24014
|
-
background: isOpen ? themeValues.hoverColor : WHITE
|
|
24016
|
+
background: isOpen ? themeValues.hoverColor : WHITE,
|
|
24015
24017
|
borderRadius: "2px",
|
|
24016
24018
|
borderSize: "1px",
|
|
24017
24019
|
borderColor: isError ? ERROR_COLOR : isOpen ? themeValues.selectedColor : GREY_CHATEAU,
|
|
@@ -24084,7 +24086,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24084
24086
|
}
|
|
24085
24087
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
24086
24088
|
variant: "p",
|
|
24087
|
-
color: choice.value === value ? WHITE
|
|
24089
|
+
color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
|
|
24088
24090
|
extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
|
|
24089
24091
|
}, choice.text));
|
|
24090
24092
|
}))) : /*#__PURE__*/React.createElement(Fragment$1, null)));
|
|
@@ -24120,13 +24122,13 @@ var linkColor$1 = {
|
|
|
24120
24122
|
disabled: "".concat(MATISSE_BLUE)
|
|
24121
24123
|
};
|
|
24122
24124
|
var formBackgroundColor = {
|
|
24123
|
-
"default": "".concat(WHITE
|
|
24124
|
-
disabled: "".concat(WHITE
|
|
24125
|
+
"default": "".concat(WHITE),
|
|
24126
|
+
disabled: "".concat(WHITE),
|
|
24125
24127
|
checkout: "".concat(ATHENS_GREY),
|
|
24126
24128
|
collapsible: "".concat(ATHENS_GREY)
|
|
24127
24129
|
};
|
|
24128
24130
|
var inputBackgroundColor = {
|
|
24129
|
-
"default": "".concat(WHITE
|
|
24131
|
+
"default": "".concat(WHITE),
|
|
24130
24132
|
disabled: "".concat(SEASHELL_WHITE)
|
|
24131
24133
|
};
|
|
24132
24134
|
var color$6 = {
|
|
@@ -25173,7 +25175,7 @@ var Detail = function Detail(_ref) {
|
|
|
25173
25175
|
|
|
25174
25176
|
var Detail$1 = themeComponent(Detail, "Detail", fallbacks$1, "regular");
|
|
25175
25177
|
|
|
25176
|
-
var backgroundColor$3 = WHITE
|
|
25178
|
+
var backgroundColor$3 = WHITE;
|
|
25177
25179
|
var boxShadow = "0px 2px 14px 0px ".concat(ATHENS_GREY, ", 0px 3px 8px 0px ").concat(GHOST_GREY);
|
|
25178
25180
|
var fallbackValues$i = {
|
|
25179
25181
|
backgroundColor: backgroundColor$3,
|
|
@@ -25201,6 +25203,346 @@ var DisplayBox = function DisplayBox(_ref) {
|
|
|
25201
25203
|
|
|
25202
25204
|
var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$i);
|
|
25203
25205
|
|
|
25206
|
+
/*
|
|
25207
|
+
Hook that assigns a click event listener to the main document element
|
|
25208
|
+
Returns a ref to attach to another element (like an icon/button that triggers a popover)
|
|
25209
|
+
If a click event gets captured by the document and the assigned element isn't the target
|
|
25210
|
+
hook will run whatever handler is passed (eg a function that closes a popover)
|
|
25211
|
+
|
|
25212
|
+
See popover component for implementation
|
|
25213
|
+
|
|
25214
|
+
*/
|
|
25215
|
+
|
|
25216
|
+
var useOutsideClickHook = function useOutsideClickHook(handler) {
|
|
25217
|
+
var ref = useRef();
|
|
25218
|
+
useEffect$1(function () {
|
|
25219
|
+
}, [ref]);
|
|
25220
|
+
return ref;
|
|
25221
|
+
};
|
|
25222
|
+
|
|
25223
|
+
/*
|
|
25224
|
+
Hook that takes an ID selector for an element on the screen
|
|
25225
|
+
And optionally values for top position, left position, smooth behavior
|
|
25226
|
+
Finds element on screen and scrolls it to the provided coordinates
|
|
25227
|
+
|
|
25228
|
+
(string, number, number, string, number) => undefined;
|
|
25229
|
+
*/
|
|
25230
|
+
var useScrollTo = function useScrollTo(id) {
|
|
25231
|
+
var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
25232
|
+
var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
25233
|
+
var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
|
|
25234
|
+
var delay = arguments.length > 4 ? arguments[4] : undefined;
|
|
25235
|
+
var scrollItem;
|
|
25236
|
+
|
|
25237
|
+
if (delay) {
|
|
25238
|
+
setTimeout(function () {
|
|
25239
|
+
var _scrollItem;
|
|
25240
|
+
|
|
25241
|
+
scrollItem = document.getElementById(id);
|
|
25242
|
+
(_scrollItem = scrollItem) === null || _scrollItem === void 0 ? void 0 : _scrollItem.scrollTo({
|
|
25243
|
+
top: top,
|
|
25244
|
+
left: left,
|
|
25245
|
+
behavior: behavior
|
|
25246
|
+
});
|
|
25247
|
+
}, delay);
|
|
25248
|
+
} else {
|
|
25249
|
+
var _scrollItem2;
|
|
25250
|
+
|
|
25251
|
+
scrollItem = document.getElementById(id);
|
|
25252
|
+
(_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 ? void 0 : _scrollItem2.scrollTo({
|
|
25253
|
+
top: top,
|
|
25254
|
+
left: left,
|
|
25255
|
+
behavior: behavior
|
|
25256
|
+
});
|
|
25257
|
+
}
|
|
25258
|
+
};
|
|
25259
|
+
|
|
25260
|
+
var initialToastState = {
|
|
25261
|
+
isOpen: false,
|
|
25262
|
+
variant: "",
|
|
25263
|
+
message: ""
|
|
25264
|
+
};
|
|
25265
|
+
|
|
25266
|
+
var useToastNotification = function useToastNotification() {
|
|
25267
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
25268
|
+
_ref$timeout = _ref.timeout,
|
|
25269
|
+
timeout = _ref$timeout === void 0 ? 5000 : _ref$timeout;
|
|
25270
|
+
|
|
25271
|
+
var _useState = useState(initialToastState),
|
|
25272
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25273
|
+
toastState = _useState2[0],
|
|
25274
|
+
setToastState = _useState2[1];
|
|
25275
|
+
|
|
25276
|
+
useEffect$1(function () {
|
|
25277
|
+
if (toastState.isOpen) {
|
|
25278
|
+
setTimeout(function () {
|
|
25279
|
+
setToastState(initialToastState);
|
|
25280
|
+
}, timeout);
|
|
25281
|
+
}
|
|
25282
|
+
}, [timeout, toastState.isOpen]);
|
|
25283
|
+
|
|
25284
|
+
var showToast = function showToast(_ref2) {
|
|
25285
|
+
var message = _ref2.message,
|
|
25286
|
+
variant = _ref2.variant;
|
|
25287
|
+
return setToastState({
|
|
25288
|
+
isOpen: true,
|
|
25289
|
+
variant: variant,
|
|
25290
|
+
message: message
|
|
25291
|
+
});
|
|
25292
|
+
};
|
|
25293
|
+
|
|
25294
|
+
var hideToast = function hideToast() {
|
|
25295
|
+
return setToastState(initialToastState);
|
|
25296
|
+
};
|
|
25297
|
+
|
|
25298
|
+
return {
|
|
25299
|
+
isToastOpen: toastState.isOpen,
|
|
25300
|
+
toastVariant: toastState.variant,
|
|
25301
|
+
toastMessage: toastState.message,
|
|
25302
|
+
showToast: showToast,
|
|
25303
|
+
hideToast: hideToast
|
|
25304
|
+
};
|
|
25305
|
+
};
|
|
25306
|
+
|
|
25307
|
+
|
|
25308
|
+
|
|
25309
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
25310
|
+
__proto__: null,
|
|
25311
|
+
useOutsideClick: useOutsideClickHook,
|
|
25312
|
+
useScrollTo: useScrollTo,
|
|
25313
|
+
useToastNotification: useToastNotification
|
|
25314
|
+
});
|
|
25315
|
+
|
|
25316
|
+
var hoverColor$4 = "#116285";
|
|
25317
|
+
var activeColor$4 = "#0E506D";
|
|
25318
|
+
var popoverTriggerColor = "#15749D";
|
|
25319
|
+
var fallbackValues$j = {
|
|
25320
|
+
hoverColor: hoverColor$4,
|
|
25321
|
+
activeColor: activeColor$4,
|
|
25322
|
+
popoverTriggerColor: popoverTriggerColor
|
|
25323
|
+
};
|
|
25324
|
+
|
|
25325
|
+
var arrowBorder = function arrowBorder(borderColor, direction) {
|
|
25326
|
+
var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
|
|
25327
|
+
var angle = "".concat(width, " solid transparent");
|
|
25328
|
+
var straight = "".concat(width, " solid ").concat(borderColor);
|
|
25329
|
+
|
|
25330
|
+
if (direction == "down") {
|
|
25331
|
+
return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
|
|
25332
|
+
} else if (direction == "up") {
|
|
25333
|
+
return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
|
|
25334
|
+
} else if (direction == "left") {
|
|
25335
|
+
return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
|
|
25336
|
+
} else if (direction == "right") {
|
|
25337
|
+
return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
|
|
25338
|
+
}
|
|
25339
|
+
};
|
|
25340
|
+
|
|
25341
|
+
var Popover = function Popover(_ref) {
|
|
25342
|
+
var themeValues = _ref.themeValues,
|
|
25343
|
+
_ref$triggerText = _ref.triggerText,
|
|
25344
|
+
triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
|
|
25345
|
+
_ref$content = _ref.content,
|
|
25346
|
+
content = _ref$content === void 0 ? "" : _ref$content,
|
|
25347
|
+
_ref$hasIcon = _ref.hasIcon,
|
|
25348
|
+
hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
|
|
25349
|
+
Icon = _ref.icon,
|
|
25350
|
+
_ref$iconHelpText = _ref.iconHelpText,
|
|
25351
|
+
iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
|
|
25352
|
+
_ref$popoverID = _ref.popoverID,
|
|
25353
|
+
popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
|
|
25354
|
+
_ref$popoverFocus = _ref.popoverFocus,
|
|
25355
|
+
popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
|
|
25356
|
+
extraStyles = _ref.extraStyles,
|
|
25357
|
+
textExtraStyles = _ref.textExtraStyles,
|
|
25358
|
+
_ref$minWidth = _ref.minWidth,
|
|
25359
|
+
minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
|
|
25360
|
+
_ref$maxWidth = _ref.maxWidth,
|
|
25361
|
+
maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
|
|
25362
|
+
_ref$height = _ref.height,
|
|
25363
|
+
height = _ref$height === void 0 ? "auto" : _ref$height,
|
|
25364
|
+
position = _ref.position,
|
|
25365
|
+
arrowPosition = _ref.arrowPosition,
|
|
25366
|
+
_ref$arrowDirection = _ref.arrowDirection,
|
|
25367
|
+
arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
|
|
25368
|
+
_ref$transform = _ref.transform,
|
|
25369
|
+
transform = _ref$transform === void 0 ? "none" : _ref$transform,
|
|
25370
|
+
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
25371
|
+
_ref$backgroundColor = _ref.backgroundColor,
|
|
25372
|
+
backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
|
|
25373
|
+
_ref$borderColor = _ref.borderColor,
|
|
25374
|
+
borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
|
|
25375
|
+
popoverExtraStyles = _ref.popoverExtraStyles;
|
|
25376
|
+
var hoverColor = themeValues.hoverColor,
|
|
25377
|
+
activeColor = themeValues.activeColor,
|
|
25378
|
+
popoverTriggerColor = themeValues.popoverTriggerColor;
|
|
25379
|
+
|
|
25380
|
+
var _ref2 = position !== null && position !== void 0 ? position : {},
|
|
25381
|
+
_ref2$top = _ref2.top,
|
|
25382
|
+
top = _ref2$top === void 0 ? "-110px" : _ref2$top,
|
|
25383
|
+
_ref2$right = _ref2.right,
|
|
25384
|
+
right = _ref2$right === void 0 ? "auto" : _ref2$right,
|
|
25385
|
+
_ref2$bottom = _ref2.bottom,
|
|
25386
|
+
bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
|
|
25387
|
+
_ref2$left = _ref2.left,
|
|
25388
|
+
left = _ref2$left === void 0 ? "-225px" : _ref2$left;
|
|
25389
|
+
|
|
25390
|
+
var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
|
|
25391
|
+
_ref3$arrowTop = _ref3.arrowTop,
|
|
25392
|
+
arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
|
|
25393
|
+
_ref3$arrowRight = _ref3.arrowRight,
|
|
25394
|
+
arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
|
|
25395
|
+
_ref3$arrowBottom = _ref3.arrowBottom,
|
|
25396
|
+
arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
|
|
25397
|
+
_ref3$arrowLeft = _ref3.arrowLeft,
|
|
25398
|
+
arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
|
|
25399
|
+
|
|
25400
|
+
var _useState = useState(false),
|
|
25401
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25402
|
+
popoverOpen = _useState2[0],
|
|
25403
|
+
togglePopover = _useState2[1];
|
|
25404
|
+
|
|
25405
|
+
var handleTogglePopover = function handleTogglePopover(popoverState) {
|
|
25406
|
+
if (popoverOpen !== popoverState) {
|
|
25407
|
+
togglePopover(popoverState);
|
|
25408
|
+
}
|
|
25409
|
+
};
|
|
25410
|
+
|
|
25411
|
+
var triggerRef = useOutsideClickHook();
|
|
25412
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
25413
|
+
padding: "0",
|
|
25414
|
+
extraStyles: "position: relative; ".concat(extraStyles)
|
|
25415
|
+
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
25416
|
+
action: function action() {
|
|
25417
|
+
return noop;
|
|
25418
|
+
},
|
|
25419
|
+
onFocus: function onFocus() {
|
|
25420
|
+
handleTogglePopover(true);
|
|
25421
|
+
},
|
|
25422
|
+
onBlur: function onBlur() {
|
|
25423
|
+
handleTogglePopover(false);
|
|
25424
|
+
},
|
|
25425
|
+
onKeyDown: function onKeyDown(e) {
|
|
25426
|
+
if (e.keyCode === 27) {
|
|
25427
|
+
handleTogglePopover(false);
|
|
25428
|
+
}
|
|
25429
|
+
},
|
|
25430
|
+
onTouchStart: function onTouchStart() {
|
|
25431
|
+
return handleTogglePopover(true);
|
|
25432
|
+
},
|
|
25433
|
+
onTouchEnd: function onTouchEnd() {
|
|
25434
|
+
return handleTogglePopover(false);
|
|
25435
|
+
},
|
|
25436
|
+
onMouseEnter: function onMouseEnter() {
|
|
25437
|
+
return handleTogglePopover(true);
|
|
25438
|
+
},
|
|
25439
|
+
onMouseLeave: function onMouseLeave() {
|
|
25440
|
+
return handleTogglePopover(false);
|
|
25441
|
+
},
|
|
25442
|
+
contentOverride: true,
|
|
25443
|
+
variant: "smallGhost",
|
|
25444
|
+
tabIndex: "0",
|
|
25445
|
+
id: "btnPopover".concat(popoverID),
|
|
25446
|
+
"aria-expanded": popoverOpen,
|
|
25447
|
+
"aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
|
|
25448
|
+
"aria-describedby": "Disclosure".concat(popoverID),
|
|
25449
|
+
"aria-controls": "Disclosed".concat(popoverID),
|
|
25450
|
+
ref: triggerRef,
|
|
25451
|
+
extraStyles: buttonExtraStyles
|
|
25452
|
+
}, hasIcon && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, null), /*#__PURE__*/React.createElement(Box, {
|
|
25453
|
+
padding: "0",
|
|
25454
|
+
srOnly: true
|
|
25455
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
25456
|
+
id: "btnPopover".concat(popoverID, "_info")
|
|
25457
|
+
}, iconHelpText))), !hasIcon && /*#__PURE__*/React.createElement(Text$1, {
|
|
25458
|
+
color: popoverTriggerColor,
|
|
25459
|
+
extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
|
|
25460
|
+
}, triggerText)), /*#__PURE__*/React.createElement(Box, {
|
|
25461
|
+
background: backgroundColor,
|
|
25462
|
+
borderRadius: "4px",
|
|
25463
|
+
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
|
|
25464
|
+
id: "Disclosed".concat(popoverID),
|
|
25465
|
+
role: "region",
|
|
25466
|
+
"aria-describedby": "Disclosure".concat(popoverID),
|
|
25467
|
+
tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
|
|
25468
|
+
minWidth: minWidth,
|
|
25469
|
+
maxWidth: maxWidth,
|
|
25470
|
+
extraStyles: "\n display: ".concat(popoverOpen ? "block" : "none", "; \n position: absolute; \n top: ").concat(top, "; \n right: ").concat(right, "; \n bottom: ").concat(bottom, "; \n left: ").concat(left, ";\n height: ").concat(height, ";\n transform: ").concat(transform, ";\n ").concat(popoverExtraStyles, ";\n ")
|
|
25471
|
+
}, /*#__PURE__*/React.createElement(Paragraph$1, null, content), /*#__PURE__*/React.createElement(Box, {
|
|
25472
|
+
padding: "0",
|
|
25473
|
+
extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(borderColor, arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
|
|
25474
|
+
})));
|
|
25475
|
+
};
|
|
25476
|
+
|
|
25477
|
+
var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$j);
|
|
25478
|
+
|
|
25479
|
+
var DisplayCard = function DisplayCard(_ref) {
|
|
25480
|
+
var title = _ref.title,
|
|
25481
|
+
item = _ref.item,
|
|
25482
|
+
buttonText = _ref.buttonText,
|
|
25483
|
+
buttonAction = _ref.buttonAction,
|
|
25484
|
+
url = _ref.url,
|
|
25485
|
+
_ref$link = _ref.link,
|
|
25486
|
+
link = _ref$link === void 0 ? false : _ref$link,
|
|
25487
|
+
helpText = _ref.helpText,
|
|
25488
|
+
_ref$hasPopover = _ref.hasPopover,
|
|
25489
|
+
hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
|
|
25490
|
+
_ref$popoverTriggerTe = _ref.popoverTriggerText,
|
|
25491
|
+
popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
|
|
25492
|
+
_ref$popoverContent = _ref.popoverContent,
|
|
25493
|
+
popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
|
|
25494
|
+
popoverExtraStyles = _ref.popoverExtraStyles,
|
|
25495
|
+
popoverTextExtraStyles = _ref.popoverTextExtraStyles;
|
|
25496
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
25497
|
+
padding: "0 0 16px"
|
|
25498
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
25499
|
+
childGap: "0rem"
|
|
25500
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
25501
|
+
padding: "0 0 8px 0"
|
|
25502
|
+
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
25503
|
+
justify: "space-between",
|
|
25504
|
+
align: "center",
|
|
25505
|
+
overflow: true
|
|
25506
|
+
}, /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
25507
|
+
variant: "pL",
|
|
25508
|
+
color: CHARADE_GREY,
|
|
25509
|
+
extraStyles: "letter-spacing: 0.29px"
|
|
25510
|
+
}, title), hasPopover && /*#__PURE__*/React.createElement(Popover$1, {
|
|
25511
|
+
triggerText: popoverTriggerText,
|
|
25512
|
+
content: popoverContent,
|
|
25513
|
+
popoverExtraStyles: popoverExtraStyles,
|
|
25514
|
+
popoverTextExtraStyles: popoverTextExtraStyles
|
|
25515
|
+
}))), /*#__PURE__*/React.createElement(Box, {
|
|
25516
|
+
padding: "0"
|
|
25517
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
25518
|
+
padding: "24px",
|
|
25519
|
+
borderSize: "1px",
|
|
25520
|
+
borderRadius: "4px",
|
|
25521
|
+
background: WHITE,
|
|
25522
|
+
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
25523
|
+
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
25524
|
+
justify: "space-between",
|
|
25525
|
+
align: "center"
|
|
25526
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
25527
|
+
color: CHARADE_GREY
|
|
25528
|
+
}, item), link ? /*#__PURE__*/React.createElement(ButtonWithLink, {
|
|
25529
|
+
text: buttonText,
|
|
25530
|
+
url: url,
|
|
25531
|
+
variant: "smallGhost",
|
|
25532
|
+
dataQa: buttonText,
|
|
25533
|
+
extraStyles: "min-width: 0;"
|
|
25534
|
+
}) : buttonAction ? /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
25535
|
+
text: buttonText,
|
|
25536
|
+
action: buttonAction,
|
|
25537
|
+
variant: "smallGhost",
|
|
25538
|
+
dataQa: buttonText,
|
|
25539
|
+
extraStyles: "min-width: 0;"
|
|
25540
|
+
}) : helpText ? /*#__PURE__*/React.createElement(Text$1, {
|
|
25541
|
+
color: STORM_GREY,
|
|
25542
|
+
extraStyles: "font-style: italic;"
|
|
25543
|
+
}, helpText) : /*#__PURE__*/React.createElement(Fragment$1, null))))));
|
|
25544
|
+
};
|
|
25545
|
+
|
|
25204
25546
|
function _extends$2() {
|
|
25205
25547
|
_extends$2 = Object.assign || function (target) {
|
|
25206
25548
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -25479,356 +25821,18 @@ var FormattedInput = function FormattedInput(_ref) {
|
|
|
25479
25821
|
}));
|
|
25480
25822
|
};
|
|
25481
25823
|
|
|
25482
|
-
var formatDelimiter = "_";
|
|
25483
|
-
var phoneFormats = ["", "_", "__", "(___) ", "(___) _", "(___) __", "(___) ___-", "(___) ___-_", "(___) ___-__", "(___) ___-___", "(___) ___-____"];
|
|
25484
|
-
var zipFormats = ["", "_", "__", "___", "____", "_____", "______", "_____-__", "_____-___", "_____-____"];
|
|
25485
|
-
var creditCardFormats = ["", "_", "__", "___", "____", "____ _", "____ __", "____ ___", "____ ____", "____ ____ _", "____ ____ __", "____ ____ ___", "____ ____ ____", "____ ____ ____ _", "____ ____ ____ __", "____ ____ ____ ___", "____ ____ ____ ____"];
|
|
25486
|
-
var moneyFormats = ["", "$0.0_", "$0.__", "$_.__", "$__.__", "$___.__", "$_,___.__", "$__,___.__", "$___,___.__", "$_,___,___.__", "$__,___,___.__", "$___,___,___.__", "$_,___,___,___.__", "$__,___,___,___.__", "$___,___,___,___.__", "$_,___,___,___,___.__"];
|
|
25487
|
-
var expirationDateFormats = ["", "_", "__/", "__/_", "__/__"];
|
|
25488
|
-
var zipFormat = createFormat(zipFormats, formatDelimiter);
|
|
25489
|
-
var creditCardFormat = createFormat(creditCardFormats, formatDelimiter);
|
|
25490
|
-
var expirationDateFormat = createFormat(expirationDateFormats, formatDelimiter);
|
|
25491
|
-
var phoneFormat = createFormat(phoneFormats, formatDelimiter);
|
|
25492
|
-
var moneyFormat = createFormat(moneyFormats, formatDelimiter);
|
|
25493
|
-
var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
|
|
25494
|
-
var textAlign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "right";
|
|
25495
|
-
var as = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "span";
|
|
25496
|
-
var ACTIVE = "ACTIVE";
|
|
25497
|
-
var EXPIRING_SOON = "EXPIRING_SOON";
|
|
25498
|
-
var EXPIRED = "EXPIRED";
|
|
25499
|
-
var textMargin = textAlign === "right" ? "auto" : "0";
|
|
25500
|
-
|
|
25501
|
-
switch (expirationStatus) {
|
|
25502
|
-
case ACTIVE:
|
|
25503
|
-
return /*#__PURE__*/React.createElement(Text$1, {
|
|
25504
|
-
as: as,
|
|
25505
|
-
variant: "pXS",
|
|
25506
|
-
color: ASH_GREY,
|
|
25507
|
-
extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
|
|
25508
|
-
}, "Exp Date ", expireDate);
|
|
25509
|
-
|
|
25510
|
-
case EXPIRING_SOON:
|
|
25511
|
-
return /*#__PURE__*/React.createElement(Text$1, {
|
|
25512
|
-
as: as,
|
|
25513
|
-
variant: "pXS",
|
|
25514
|
-
color: FIRE_YELLOW,
|
|
25515
|
-
extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
|
|
25516
|
-
}, "Expiring Soon ", expireDate);
|
|
25517
|
-
|
|
25518
|
-
case EXPIRED:
|
|
25519
|
-
return /*#__PURE__*/React.createElement(Text$1, {
|
|
25520
|
-
as: as,
|
|
25521
|
-
variant: "pXS",
|
|
25522
|
-
color: ASH_GREY,
|
|
25523
|
-
extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
|
|
25524
|
-
}, "Expired");
|
|
25525
|
-
}
|
|
25526
|
-
};
|
|
25527
|
-
|
|
25528
|
-
var formats = /*#__PURE__*/Object.freeze({
|
|
25529
|
-
__proto__: null,
|
|
25530
|
-
formatDelimiter: formatDelimiter,
|
|
25531
|
-
phoneFormats: phoneFormats,
|
|
25532
|
-
moneyFormats: moneyFormats,
|
|
25533
|
-
expirationDateFormats: expirationDateFormats,
|
|
25534
|
-
zipFormat: zipFormat,
|
|
25535
|
-
creditCardFormat: creditCardFormat,
|
|
25536
|
-
expirationDateFormat: expirationDateFormat,
|
|
25537
|
-
phoneFormat: phoneFormat,
|
|
25538
|
-
moneyFormat: moneyFormat,
|
|
25539
|
-
renderCardStatus: renderCardStatus
|
|
25540
|
-
});
|
|
25541
|
-
|
|
25542
|
-
var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
25543
|
-
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
25544
|
-
// Only move focus when "hasErrors" is true
|
|
25545
|
-
// "hasErrors" is managed by container page of form
|
|
25546
|
-
// typically set to "true" on attempted form submission, if errors exist
|
|
25547
|
-
// Reset errors, if provided, resets the error state tracking in order to properly re-run
|
|
25548
|
-
useEffect$1(function () {
|
|
25549
|
-
if (hasErrors) {
|
|
25550
|
-
var _inputsWithErrors$;
|
|
25551
|
-
|
|
25552
|
-
var inputsWithErrors = document.querySelectorAll("input[aria-invalid=true]");
|
|
25553
|
-
inputsWithErrors === null || inputsWithErrors === void 0 ? void 0 : (_inputsWithErrors$ = inputsWithErrors[0]) === null || _inputsWithErrors$ === void 0 ? void 0 : _inputsWithErrors$.focus();
|
|
25554
|
-
}
|
|
25555
|
-
|
|
25556
|
-
return function () {
|
|
25557
|
-
return resetHasErrors(false);
|
|
25558
|
-
};
|
|
25559
|
-
});
|
|
25560
|
-
};
|
|
25561
|
-
|
|
25562
|
-
/*
|
|
25563
|
-
Hook that assigns a click event listener to the main document element
|
|
25564
|
-
Returns a ref to attach to another element (like an icon/button that triggers a popover)
|
|
25565
|
-
If a click event gets captured by the document and the assigned element isn't the target
|
|
25566
|
-
hook will run whatever handler is passed (eg a function that closes a popover)
|
|
25567
|
-
|
|
25568
|
-
See popover component for implementation
|
|
25569
|
-
|
|
25570
|
-
*/
|
|
25571
|
-
|
|
25572
|
-
var useOutsideClickHook = function useOutsideClickHook(handler) {
|
|
25573
|
-
var ref = useRef();
|
|
25574
|
-
useEffect$1(function () {
|
|
25575
|
-
}, [ref]);
|
|
25576
|
-
return ref;
|
|
25577
|
-
};
|
|
25578
|
-
|
|
25579
|
-
|
|
25580
|
-
|
|
25581
|
-
var index$4 = /*#__PURE__*/Object.freeze({
|
|
25582
|
-
__proto__: null,
|
|
25583
|
-
formats: formats,
|
|
25584
|
-
general: general,
|
|
25585
|
-
theme: themeUtils,
|
|
25586
|
-
useFocusInvalidInput: useFocusInvalidInput,
|
|
25587
|
-
useOutsideClick: useOutsideClickHook
|
|
25588
|
-
});
|
|
25589
|
-
|
|
25590
|
-
var hoverColor$4 = "#116285";
|
|
25591
|
-
var activeColor$4 = "#0E506D";
|
|
25592
|
-
var popoverTriggerColor = "#15749D";
|
|
25593
|
-
var fallbackValues$j = {
|
|
25594
|
-
hoverColor: hoverColor$4,
|
|
25595
|
-
activeColor: activeColor$4,
|
|
25596
|
-
popoverTriggerColor: popoverTriggerColor
|
|
25597
|
-
};
|
|
25598
|
-
|
|
25599
|
-
var arrowBorder = function arrowBorder(borderColor, direction) {
|
|
25600
|
-
var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
|
|
25601
|
-
var angle = "".concat(width, " solid transparent");
|
|
25602
|
-
var straight = "".concat(width, " solid ").concat(borderColor);
|
|
25603
|
-
|
|
25604
|
-
if (direction == "down") {
|
|
25605
|
-
return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
|
|
25606
|
-
} else if (direction == "up") {
|
|
25607
|
-
return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
|
|
25608
|
-
} else if (direction == "left") {
|
|
25609
|
-
return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
|
|
25610
|
-
} else if (direction == "right") {
|
|
25611
|
-
return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
|
|
25612
|
-
}
|
|
25613
|
-
};
|
|
25614
|
-
|
|
25615
|
-
var Popover = function Popover(_ref) {
|
|
25616
|
-
var themeValues = _ref.themeValues,
|
|
25617
|
-
_ref$triggerText = _ref.triggerText,
|
|
25618
|
-
triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
|
|
25619
|
-
_ref$content = _ref.content,
|
|
25620
|
-
content = _ref$content === void 0 ? "" : _ref$content,
|
|
25621
|
-
_ref$hasIcon = _ref.hasIcon,
|
|
25622
|
-
hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
|
|
25623
|
-
Icon = _ref.icon,
|
|
25624
|
-
_ref$iconHelpText = _ref.iconHelpText,
|
|
25625
|
-
iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
|
|
25626
|
-
_ref$popoverID = _ref.popoverID,
|
|
25627
|
-
popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
|
|
25628
|
-
_ref$popoverFocus = _ref.popoverFocus,
|
|
25629
|
-
popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
|
|
25630
|
-
extraStyles = _ref.extraStyles,
|
|
25631
|
-
textExtraStyles = _ref.textExtraStyles,
|
|
25632
|
-
_ref$minWidth = _ref.minWidth,
|
|
25633
|
-
minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
|
|
25634
|
-
_ref$maxWidth = _ref.maxWidth,
|
|
25635
|
-
maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
|
|
25636
|
-
_ref$height = _ref.height,
|
|
25637
|
-
height = _ref$height === void 0 ? "auto" : _ref$height,
|
|
25638
|
-
position = _ref.position,
|
|
25639
|
-
arrowPosition = _ref.arrowPosition,
|
|
25640
|
-
_ref$arrowDirection = _ref.arrowDirection,
|
|
25641
|
-
arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
|
|
25642
|
-
_ref$transform = _ref.transform,
|
|
25643
|
-
transform = _ref$transform === void 0 ? "none" : _ref$transform,
|
|
25644
|
-
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
25645
|
-
_ref$backgroundColor = _ref.backgroundColor,
|
|
25646
|
-
backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
|
|
25647
|
-
_ref$borderColor = _ref.borderColor,
|
|
25648
|
-
borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
|
|
25649
|
-
popoverExtraStyles = _ref.popoverExtraStyles;
|
|
25650
|
-
var hoverColor = themeValues.hoverColor,
|
|
25651
|
-
activeColor = themeValues.activeColor,
|
|
25652
|
-
popoverTriggerColor = themeValues.popoverTriggerColor;
|
|
25653
|
-
|
|
25654
|
-
var _ref2 = position !== null && position !== void 0 ? position : {},
|
|
25655
|
-
_ref2$top = _ref2.top,
|
|
25656
|
-
top = _ref2$top === void 0 ? "-110px" : _ref2$top,
|
|
25657
|
-
_ref2$right = _ref2.right,
|
|
25658
|
-
right = _ref2$right === void 0 ? "auto" : _ref2$right,
|
|
25659
|
-
_ref2$bottom = _ref2.bottom,
|
|
25660
|
-
bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
|
|
25661
|
-
_ref2$left = _ref2.left,
|
|
25662
|
-
left = _ref2$left === void 0 ? "-225px" : _ref2$left;
|
|
25663
|
-
|
|
25664
|
-
var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
|
|
25665
|
-
_ref3$arrowTop = _ref3.arrowTop,
|
|
25666
|
-
arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
|
|
25667
|
-
_ref3$arrowRight = _ref3.arrowRight,
|
|
25668
|
-
arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
|
|
25669
|
-
_ref3$arrowBottom = _ref3.arrowBottom,
|
|
25670
|
-
arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
|
|
25671
|
-
_ref3$arrowLeft = _ref3.arrowLeft,
|
|
25672
|
-
arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
|
|
25673
|
-
|
|
25674
|
-
var _useState = useState(false),
|
|
25675
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
25676
|
-
popoverOpen = _useState2[0],
|
|
25677
|
-
togglePopover = _useState2[1];
|
|
25678
|
-
|
|
25679
|
-
var handleTogglePopover = function handleTogglePopover(popoverState) {
|
|
25680
|
-
if (popoverOpen !== popoverState) {
|
|
25681
|
-
togglePopover(popoverState);
|
|
25682
|
-
}
|
|
25683
|
-
};
|
|
25684
|
-
|
|
25685
|
-
var triggerRef = useOutsideClickHook();
|
|
25686
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
25687
|
-
padding: "0",
|
|
25688
|
-
extraStyles: "position: relative; ".concat(extraStyles)
|
|
25689
|
-
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
25690
|
-
action: function action() {
|
|
25691
|
-
return noop;
|
|
25692
|
-
},
|
|
25693
|
-
onFocus: function onFocus() {
|
|
25694
|
-
handleTogglePopover(true);
|
|
25695
|
-
},
|
|
25696
|
-
onBlur: function onBlur() {
|
|
25697
|
-
handleTogglePopover(false);
|
|
25698
|
-
},
|
|
25699
|
-
onKeyDown: function onKeyDown(e) {
|
|
25700
|
-
if (e.keyCode === 27) {
|
|
25701
|
-
handleTogglePopover(false);
|
|
25702
|
-
}
|
|
25703
|
-
},
|
|
25704
|
-
onTouchStart: function onTouchStart() {
|
|
25705
|
-
return handleTogglePopover(true);
|
|
25706
|
-
},
|
|
25707
|
-
onTouchEnd: function onTouchEnd() {
|
|
25708
|
-
return handleTogglePopover(false);
|
|
25709
|
-
},
|
|
25710
|
-
onMouseEnter: function onMouseEnter() {
|
|
25711
|
-
return handleTogglePopover(true);
|
|
25712
|
-
},
|
|
25713
|
-
onMouseLeave: function onMouseLeave() {
|
|
25714
|
-
return handleTogglePopover(false);
|
|
25715
|
-
},
|
|
25716
|
-
contentOverride: true,
|
|
25717
|
-
variant: "smallGhost",
|
|
25718
|
-
tabIndex: "0",
|
|
25719
|
-
id: "btnPopover".concat(popoverID),
|
|
25720
|
-
"aria-expanded": popoverOpen,
|
|
25721
|
-
"aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
|
|
25722
|
-
"aria-describedby": "Disclosure".concat(popoverID),
|
|
25723
|
-
"aria-controls": "Disclosed".concat(popoverID),
|
|
25724
|
-
ref: triggerRef,
|
|
25725
|
-
extraStyles: buttonExtraStyles
|
|
25726
|
-
}, hasIcon && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, null), /*#__PURE__*/React.createElement(Box, {
|
|
25727
|
-
padding: "0",
|
|
25728
|
-
srOnly: true
|
|
25729
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
25730
|
-
id: "btnPopover".concat(popoverID, "_info")
|
|
25731
|
-
}, iconHelpText))), !hasIcon && /*#__PURE__*/React.createElement(Text$1, {
|
|
25732
|
-
color: popoverTriggerColor,
|
|
25733
|
-
extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
|
|
25734
|
-
}, triggerText)), /*#__PURE__*/React.createElement(Box, {
|
|
25735
|
-
background: backgroundColor,
|
|
25736
|
-
borderRadius: "4px",
|
|
25737
|
-
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
|
|
25738
|
-
id: "Disclosed".concat(popoverID),
|
|
25739
|
-
role: "region",
|
|
25740
|
-
"aria-describedby": "Disclosure".concat(popoverID),
|
|
25741
|
-
tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
|
|
25742
|
-
minWidth: minWidth,
|
|
25743
|
-
maxWidth: maxWidth,
|
|
25744
|
-
extraStyles: "\n display: ".concat(popoverOpen ? "block" : "none", "; \n position: absolute; \n top: ").concat(top, "; \n right: ").concat(right, "; \n bottom: ").concat(bottom, "; \n left: ").concat(left, ";\n height: ").concat(height, ";\n transform: ").concat(transform, ";\n ").concat(popoverExtraStyles, ";\n ")
|
|
25745
|
-
}, /*#__PURE__*/React.createElement(Paragraph$1, null, content), /*#__PURE__*/React.createElement(Box, {
|
|
25746
|
-
padding: "0",
|
|
25747
|
-
extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(borderColor, arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
|
|
25748
|
-
})));
|
|
25749
|
-
};
|
|
25750
|
-
|
|
25751
|
-
var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$j);
|
|
25752
|
-
|
|
25753
|
-
var DisplayCard = function DisplayCard(_ref) {
|
|
25754
|
-
var title = _ref.title,
|
|
25755
|
-
item = _ref.item,
|
|
25756
|
-
buttonText = _ref.buttonText,
|
|
25757
|
-
buttonAction = _ref.buttonAction,
|
|
25758
|
-
url = _ref.url,
|
|
25759
|
-
_ref$link = _ref.link,
|
|
25760
|
-
link = _ref$link === void 0 ? false : _ref$link,
|
|
25761
|
-
helpText = _ref.helpText,
|
|
25762
|
-
_ref$hasPopover = _ref.hasPopover,
|
|
25763
|
-
hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
|
|
25764
|
-
_ref$popoverTriggerTe = _ref.popoverTriggerText,
|
|
25765
|
-
popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
|
|
25766
|
-
_ref$popoverContent = _ref.popoverContent,
|
|
25767
|
-
popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
|
|
25768
|
-
popoverExtraStyles = _ref.popoverExtraStyles,
|
|
25769
|
-
popoverTextExtraStyles = _ref.popoverTextExtraStyles;
|
|
25770
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
25771
|
-
padding: "0 0 16px"
|
|
25772
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
25773
|
-
childGap: "0rem"
|
|
25774
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
25775
|
-
padding: "0 0 8px 0"
|
|
25776
|
-
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
25777
|
-
justify: "space-between",
|
|
25778
|
-
align: "center",
|
|
25779
|
-
overflow: true
|
|
25780
|
-
}, /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
25781
|
-
variant: "pL",
|
|
25782
|
-
color: CHARADE_GREY,
|
|
25783
|
-
extraStyles: "letter-spacing: 0.29px"
|
|
25784
|
-
}, title), hasPopover && /*#__PURE__*/React.createElement(Popover$1, {
|
|
25785
|
-
triggerText: popoverTriggerText,
|
|
25786
|
-
content: popoverContent,
|
|
25787
|
-
popoverExtraStyles: popoverExtraStyles,
|
|
25788
|
-
popoverTextExtraStyles: popoverTextExtraStyles
|
|
25789
|
-
}))), /*#__PURE__*/React.createElement(Box, {
|
|
25790
|
-
padding: "0"
|
|
25791
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
25792
|
-
padding: "24px",
|
|
25793
|
-
borderSize: "1px",
|
|
25794
|
-
borderRadius: "4px",
|
|
25795
|
-
background: WHITE$1,
|
|
25796
|
-
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
25797
|
-
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
25798
|
-
justify: "space-between",
|
|
25799
|
-
align: "center"
|
|
25800
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
25801
|
-
color: CHARADE_GREY
|
|
25802
|
-
}, item), link ? /*#__PURE__*/React.createElement(ButtonWithLink, {
|
|
25803
|
-
text: buttonText,
|
|
25804
|
-
url: url,
|
|
25805
|
-
variant: "smallGhost",
|
|
25806
|
-
dataQa: buttonText,
|
|
25807
|
-
extraStyles: "min-width: 0;"
|
|
25808
|
-
}) : buttonAction ? /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
25809
|
-
text: buttonText,
|
|
25810
|
-
action: buttonAction,
|
|
25811
|
-
variant: "smallGhost",
|
|
25812
|
-
dataQa: buttonText,
|
|
25813
|
-
extraStyles: "min-width: 0;"
|
|
25814
|
-
}) : helpText ? /*#__PURE__*/React.createElement(Text$1, {
|
|
25815
|
-
color: STORM_GREY,
|
|
25816
|
-
extraStyles: "font-style: italic;"
|
|
25817
|
-
}, helpText) : /*#__PURE__*/React.createElement(Fragment$1, null))))));
|
|
25818
|
-
};
|
|
25819
|
-
|
|
25820
25824
|
var linkColor$2 = {
|
|
25821
25825
|
"default": "".concat(MATISSE_BLUE),
|
|
25822
25826
|
disabled: "".concat(MATISSE_BLUE)
|
|
25823
25827
|
};
|
|
25824
25828
|
var formBackgroundColor$1 = {
|
|
25825
|
-
"default": "".concat(WHITE
|
|
25826
|
-
disabled: "".concat(WHITE
|
|
25829
|
+
"default": "".concat(WHITE),
|
|
25830
|
+
disabled: "".concat(WHITE),
|
|
25827
25831
|
checkout: "".concat(ATHENS_GREY),
|
|
25828
25832
|
collapsible: "".concat(ATHENS_GREY)
|
|
25829
25833
|
};
|
|
25830
25834
|
var inputBackgroundColor$1 = {
|
|
25831
|
-
"default": "".concat(WHITE
|
|
25835
|
+
"default": "".concat(WHITE),
|
|
25832
25836
|
disabled: "".concat(SEASHELL_WHITE)
|
|
25833
25837
|
};
|
|
25834
25838
|
var color$7 = {
|
|
@@ -26283,6 +26287,66 @@ var fallbackValues$n = {
|
|
|
26283
26287
|
autopayTextColor: autopayTextColor$1
|
|
26284
26288
|
};
|
|
26285
26289
|
|
|
26290
|
+
var formatDelimiter = "_";
|
|
26291
|
+
var phoneFormats = ["", "_", "__", "(___) ", "(___) _", "(___) __", "(___) ___-", "(___) ___-_", "(___) ___-__", "(___) ___-___", "(___) ___-____"];
|
|
26292
|
+
var zipFormats = ["", "_", "__", "___", "____", "_____", "______", "_____-__", "_____-___", "_____-____"];
|
|
26293
|
+
var creditCardFormats = ["", "_", "__", "___", "____", "____ _", "____ __", "____ ___", "____ ____", "____ ____ _", "____ ____ __", "____ ____ ___", "____ ____ ____", "____ ____ ____ _", "____ ____ ____ __", "____ ____ ____ ___", "____ ____ ____ ____"];
|
|
26294
|
+
var moneyFormats = ["", "$0.0_", "$0.__", "$_.__", "$__.__", "$___.__", "$_,___.__", "$__,___.__", "$___,___.__", "$_,___,___.__", "$__,___,___.__", "$___,___,___.__", "$_,___,___,___.__", "$__,___,___,___.__", "$___,___,___,___.__", "$_,___,___,___,___.__"];
|
|
26295
|
+
var expirationDateFormats = ["", "_", "__/", "__/_", "__/__"];
|
|
26296
|
+
var zipFormat = createFormat(zipFormats, formatDelimiter);
|
|
26297
|
+
var creditCardFormat = createFormat(creditCardFormats, formatDelimiter);
|
|
26298
|
+
var expirationDateFormat = createFormat(expirationDateFormats, formatDelimiter);
|
|
26299
|
+
var phoneFormat = createFormat(phoneFormats, formatDelimiter);
|
|
26300
|
+
var moneyFormat = createFormat(moneyFormats, formatDelimiter);
|
|
26301
|
+
var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
|
|
26302
|
+
var textAlign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "right";
|
|
26303
|
+
var as = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "span";
|
|
26304
|
+
var ACTIVE = "ACTIVE";
|
|
26305
|
+
var EXPIRING_SOON = "EXPIRING_SOON";
|
|
26306
|
+
var EXPIRED = "EXPIRED";
|
|
26307
|
+
var textMargin = textAlign === "right" ? "auto" : "0";
|
|
26308
|
+
|
|
26309
|
+
switch (expirationStatus) {
|
|
26310
|
+
case ACTIVE:
|
|
26311
|
+
return /*#__PURE__*/React.createElement(Text$1, {
|
|
26312
|
+
as: as,
|
|
26313
|
+
variant: "pXS",
|
|
26314
|
+
color: ASH_GREY,
|
|
26315
|
+
extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
|
|
26316
|
+
}, "Exp Date ", expireDate);
|
|
26317
|
+
|
|
26318
|
+
case EXPIRING_SOON:
|
|
26319
|
+
return /*#__PURE__*/React.createElement(Text$1, {
|
|
26320
|
+
as: as,
|
|
26321
|
+
variant: "pXS",
|
|
26322
|
+
color: FIRE_YELLOW,
|
|
26323
|
+
extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
|
|
26324
|
+
}, "Expiring Soon ", expireDate);
|
|
26325
|
+
|
|
26326
|
+
case EXPIRED:
|
|
26327
|
+
return /*#__PURE__*/React.createElement(Text$1, {
|
|
26328
|
+
as: as,
|
|
26329
|
+
variant: "pXS",
|
|
26330
|
+
color: ASH_GREY,
|
|
26331
|
+
extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
|
|
26332
|
+
}, "Expired");
|
|
26333
|
+
}
|
|
26334
|
+
};
|
|
26335
|
+
|
|
26336
|
+
var formats = /*#__PURE__*/Object.freeze({
|
|
26337
|
+
__proto__: null,
|
|
26338
|
+
formatDelimiter: formatDelimiter,
|
|
26339
|
+
phoneFormats: phoneFormats,
|
|
26340
|
+
moneyFormats: moneyFormats,
|
|
26341
|
+
expirationDateFormats: expirationDateFormats,
|
|
26342
|
+
zipFormat: zipFormat,
|
|
26343
|
+
creditCardFormat: creditCardFormat,
|
|
26344
|
+
expirationDateFormat: expirationDateFormat,
|
|
26345
|
+
phoneFormat: phoneFormat,
|
|
26346
|
+
moneyFormat: moneyFormat,
|
|
26347
|
+
renderCardStatus: renderCardStatus
|
|
26348
|
+
});
|
|
26349
|
+
|
|
26286
26350
|
var CreditCardWrapper = styled.div.withConfig({
|
|
26287
26351
|
displayName: "FormattedCreditCard__CreditCardWrapper",
|
|
26288
26352
|
componentId: "sc-s0ta5l-0"
|
|
@@ -27101,7 +27165,7 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
27101
27165
|
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$s, "default");
|
|
27102
27166
|
|
|
27103
27167
|
var backgroundColor$4 = {
|
|
27104
|
-
"default": "".concat(WHITE
|
|
27168
|
+
"default": "".concat(WHITE)
|
|
27105
27169
|
};
|
|
27106
27170
|
var fallbackValues$t = {
|
|
27107
27171
|
backgroundColor: backgroundColor$4
|
|
@@ -38022,7 +38086,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38022
38086
|
|
|
38023
38087
|
var onBackground = "".concat(MATISSE_BLUE);
|
|
38024
38088
|
var disabledBackground = "".concat(IRON_GREY);
|
|
38025
|
-
var white = "".concat(WHITE
|
|
38089
|
+
var white = "".concat(WHITE);
|
|
38026
38090
|
var offBackground = "".concat(REGENT_GREY);
|
|
38027
38091
|
var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
|
|
38028
38092
|
var rightLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row;\n");
|
|
@@ -38206,7 +38270,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
38206
38270
|
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$y);
|
|
38207
38271
|
|
|
38208
38272
|
var background$2 = "".concat(ATHENS_GREY);
|
|
38209
|
-
var white$1 = "".concat(WHITE
|
|
38273
|
+
var white$1 = "".concat(WHITE);
|
|
38210
38274
|
var black = "#000";
|
|
38211
38275
|
var focusBorder = "".concat(MATISSE_BLUE);
|
|
38212
38276
|
var themeValues = {
|
|
@@ -38248,10 +38312,10 @@ var TypeaheadInput = function TypeaheadInput(_ref) {
|
|
|
38248
38312
|
}));
|
|
38249
38313
|
};
|
|
38250
38314
|
|
|
38251
|
-
var backgroundColor$5 = WHITE
|
|
38315
|
+
var backgroundColor$5 = WHITE;
|
|
38252
38316
|
var imageBackgroundColor = INFO_BLUE;
|
|
38253
38317
|
var headerBackgroundColor = STORM_GREY;
|
|
38254
|
-
var headerColor = WHITE
|
|
38318
|
+
var headerColor = WHITE;
|
|
38255
38319
|
var fallbackValues$z = {
|
|
38256
38320
|
backgroundColor: backgroundColor$5,
|
|
38257
38321
|
imageBackgroundColor: imageBackgroundColor,
|
|
@@ -41127,7 +41191,7 @@ var EditableListItem = styled.div.withConfig({
|
|
|
41127
41191
|
componentId: "sc-10ehkz7-0"
|
|
41128
41192
|
})(["box-sizing:border-box;background:", ";border-color:", ";height:", ";display:flex;justify-content:space-between;align-items:center;padding:1.5rem;:not(:last-child),:not(:first-child){box-shadow:inset 0px -1px 0px 0px rgb(202,206,216);}:first-child{border-top-left-radius:3px;border-top-right-radius:3px;}:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px;box-shadow:none;}"], function (_ref) {
|
|
41129
41193
|
var disabled = _ref.disabled;
|
|
41130
|
-
return disabled ? "rgba(246, 246, 249, 0.7)" : WHITE
|
|
41194
|
+
return disabled ? "rgba(246, 246, 249, 0.7)" : WHITE;
|
|
41131
41195
|
}, GHOST_GREY, function (_ref2) {
|
|
41132
41196
|
var listItemSize = _ref2.listItemSize;
|
|
41133
41197
|
return listItemSize === "big" ? "120px" : "72px";
|
|
@@ -46694,7 +46758,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
46694
46758
|
_ref$closeButtonText = _ref.closeButtonText,
|
|
46695
46759
|
closeButtonText = _ref$closeButtonText === void 0 ? "Close" : _ref$closeButtonText,
|
|
46696
46760
|
_ref$modalHeaderBg = _ref.modalHeaderBg,
|
|
46697
|
-
modalHeaderBg = _ref$modalHeaderBg === void 0 ? WHITE
|
|
46761
|
+
modalHeaderBg = _ref$modalHeaderBg === void 0 ? WHITE : _ref$modalHeaderBg,
|
|
46698
46762
|
_ref$modalBodyBg = _ref.modalBodyBg,
|
|
46699
46763
|
modalBodyBg = _ref$modalBodyBg === void 0 ? ATHENS_GREY : _ref$modalBodyBg,
|
|
46700
46764
|
_ref$useDangerButton = _ref.useDangerButton,
|
|
@@ -46878,9 +46942,9 @@ var borderRadius = {
|
|
|
46878
46942
|
small: "0.25rem"
|
|
46879
46943
|
};
|
|
46880
46944
|
var backgroundColor$a = {
|
|
46881
|
-
"default": WHITE
|
|
46882
|
-
largeTitle: WHITE
|
|
46883
|
-
small: WHITE
|
|
46945
|
+
"default": WHITE,
|
|
46946
|
+
largeTitle: WHITE,
|
|
46947
|
+
small: WHITE
|
|
46884
46948
|
};
|
|
46885
46949
|
var fallbackValues$J = {
|
|
46886
46950
|
fontSize: fontSize$9,
|
|
@@ -47660,7 +47724,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
47660
47724
|
border: "1px solid ".concat(GRECIAN_GREY),
|
|
47661
47725
|
borderWidthOverride: "1px 0 0 0"
|
|
47662
47726
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
47663
|
-
background: WHITE
|
|
47727
|
+
background: WHITE,
|
|
47664
47728
|
padding: isMobile ? "16px" : "24px 16px"
|
|
47665
47729
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
47666
47730
|
childGap: "14px"
|
|
@@ -47936,10 +48000,10 @@ var createPartialAmountFormValidators = function createPartialAmountFormValidato
|
|
|
47936
48000
|
return validators;
|
|
47937
48001
|
};
|
|
47938
48002
|
|
|
47939
|
-
var arrowColor = WHITE
|
|
48003
|
+
var arrowColor = WHITE;
|
|
47940
48004
|
var numberColor = MATISSE_BLUE;
|
|
47941
48005
|
var hoverBackgroundColor$2 = ALABASTER_WHITE;
|
|
47942
|
-
var activeBackgroundColor$2 = WHITE
|
|
48006
|
+
var activeBackgroundColor$2 = WHITE;
|
|
47943
48007
|
var activeColor$9 = MATISSE_BLUE;
|
|
47944
48008
|
var fallbackValues$M = {
|
|
47945
48009
|
activeColor: activeColor$9,
|
|
@@ -48808,43 +48872,6 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
48808
48872
|
})))));
|
|
48809
48873
|
};
|
|
48810
48874
|
|
|
48811
|
-
/*
|
|
48812
|
-
Hook that takes an ID selector for an element on the screen
|
|
48813
|
-
And optionally values for top position, left position, smooth behavior
|
|
48814
|
-
Finds element on screen and scrolls it to the provided coordinates
|
|
48815
|
-
|
|
48816
|
-
(string, number, number, string, number) => undefined;
|
|
48817
|
-
*/
|
|
48818
|
-
var useScrollTo = function useScrollTo(id) {
|
|
48819
|
-
var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
48820
|
-
var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
48821
|
-
var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
|
|
48822
|
-
var delay = arguments.length > 4 ? arguments[4] : undefined;
|
|
48823
|
-
var scrollItem;
|
|
48824
|
-
|
|
48825
|
-
if (delay) {
|
|
48826
|
-
setTimeout(function () {
|
|
48827
|
-
var _scrollItem;
|
|
48828
|
-
|
|
48829
|
-
scrollItem = document.getElementById(id);
|
|
48830
|
-
(_scrollItem = scrollItem) === null || _scrollItem === void 0 ? void 0 : _scrollItem.scrollTo({
|
|
48831
|
-
top: top,
|
|
48832
|
-
left: left,
|
|
48833
|
-
behavior: behavior
|
|
48834
|
-
});
|
|
48835
|
-
}, delay);
|
|
48836
|
-
} else {
|
|
48837
|
-
var _scrollItem2;
|
|
48838
|
-
|
|
48839
|
-
scrollItem = document.getElementById(id);
|
|
48840
|
-
(_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 ? void 0 : _scrollItem2.scrollTo({
|
|
48841
|
-
top: top,
|
|
48842
|
-
left: left,
|
|
48843
|
-
behavior: behavior
|
|
48844
|
-
});
|
|
48845
|
-
}
|
|
48846
|
-
};
|
|
48847
|
-
|
|
48848
48875
|
var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
48849
48876
|
var _ref$showCheckbox = _ref.showCheckbox,
|
|
48850
48877
|
showCheckbox = _ref$showCheckbox === void 0 ? true : _ref$showCheckbox,
|
|
@@ -49590,7 +49617,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
49590
49617
|
})));
|
|
49591
49618
|
};
|
|
49592
49619
|
|
|
49593
|
-
var headingBackgroundColor$1 = "".concat(WHITE
|
|
49620
|
+
var headingBackgroundColor$1 = "".concat(WHITE);
|
|
49594
49621
|
var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
49595
49622
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
49596
49623
|
var borderColor$6 = "".concat(GREY_CHATEAU);
|
|
@@ -49936,7 +49963,7 @@ var ResetConfirmationForm = function ResetConfirmationForm() {
|
|
|
49936
49963
|
padding: "0",
|
|
49937
49964
|
width: isMobile ? "auto" : "576px",
|
|
49938
49965
|
borderRadius: "4px",
|
|
49939
|
-
background: WHITE
|
|
49966
|
+
background: WHITE,
|
|
49940
49967
|
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
49941
49968
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
49942
49969
|
background: GRECIAN_GREY,
|
|
@@ -50059,7 +50086,7 @@ var ResetConfirmationForm$2 = function ResetConfirmationForm() {
|
|
|
50059
50086
|
padding: "0",
|
|
50060
50087
|
width: isMobile ? "auto" : "576px",
|
|
50061
50088
|
borderRadius: "4px",
|
|
50062
|
-
background: WHITE
|
|
50089
|
+
background: WHITE,
|
|
50063
50090
|
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
|
|
50064
50091
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
50065
50092
|
background: GRECIAN_GREY,
|
|
@@ -50129,7 +50156,7 @@ var Tab = function Tab(_ref) {
|
|
|
50129
50156
|
onClick: onClick,
|
|
50130
50157
|
margin: "0 0 -1px 0",
|
|
50131
50158
|
padding: "0.5rem 0.75rem",
|
|
50132
|
-
background: activeTab === label ? WHITE
|
|
50159
|
+
background: activeTab === label ? WHITE : GRECIAN_GREY,
|
|
50133
50160
|
extraStyles: "cursor: pointer; flex-grow: 1; text-align: center; ".concat(activeTab === label ? "list-style: none;" : "")
|
|
50134
50161
|
}, /*#__PURE__*/React.createElement(Text$1, null, label));
|
|
50135
50162
|
};
|
|
@@ -50282,18 +50309,18 @@ var Timeout = function Timeout(_ref) {
|
|
|
50282
50309
|
|
|
50283
50310
|
var Timeout$1 = withWindowSize(Timeout);
|
|
50284
50311
|
|
|
50285
|
-
var CloseIconWrapper = styled.div.withConfig({
|
|
50286
|
-
displayName: "ToastNotification__CloseIconWrapper",
|
|
50287
|
-
componentId: "sc-116yflm-0"
|
|
50288
|
-
})(["min-height:24px;min-width:24px;display:flex;margin:16px;justify-content:center;align-items:center;cursor:pointer;"]);
|
|
50289
50312
|
var VARIANTS = {
|
|
50290
50313
|
SUCCESS: "success",
|
|
50291
50314
|
ERROR: "error"
|
|
50292
50315
|
};
|
|
50293
50316
|
|
|
50294
50317
|
var ToastNotification = function ToastNotification(_ref) {
|
|
50295
|
-
var _ref$
|
|
50318
|
+
var _ref$variant = _ref.variant,
|
|
50319
|
+
variant = _ref$variant === void 0 ? VARIANTS.SUCCESS : _ref$variant,
|
|
50320
|
+
_ref$message = _ref.message,
|
|
50296
50321
|
message = _ref$message === void 0 ? "" : _ref$message,
|
|
50322
|
+
toastOpen = _ref.toastOpen,
|
|
50323
|
+
closeToastNotification = _ref.closeToastNotification,
|
|
50297
50324
|
extraStyles = _ref.extraStyles,
|
|
50298
50325
|
_ref$minWidth = _ref.minWidth,
|
|
50299
50326
|
minWidth = _ref$minWidth === void 0 ? "112px" : _ref$minWidth,
|
|
@@ -50301,36 +50328,34 @@ var ToastNotification = function ToastNotification(_ref) {
|
|
|
50301
50328
|
maxWidth = _ref$maxWidth === void 0 ? "350px" : _ref$maxWidth,
|
|
50302
50329
|
_ref$height = _ref.height,
|
|
50303
50330
|
height = _ref$height === void 0 ? "56px" : _ref$height,
|
|
50304
|
-
|
|
50305
|
-
|
|
50306
|
-
_ref$variant = _ref.variant,
|
|
50307
|
-
variant = _ref$variant === void 0 ? VARIANTS.SUCCESS : _ref$variant,
|
|
50331
|
+
_ref$childGap = _ref.childGap,
|
|
50332
|
+
childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
|
|
50308
50333
|
backgroundColor = _ref.backgroundColor;
|
|
50309
50334
|
return /*#__PURE__*/React.createElement(Box, {
|
|
50310
50335
|
onClick: closeToastNotification,
|
|
50311
|
-
background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === "error" ?
|
|
50336
|
+
background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === "error" ? ERROR_BACKGROUND_COLOR : WHITE,
|
|
50312
50337
|
minWidth: minWidth,
|
|
50313
50338
|
minHeight: height && parseInt(height) < 100 ? height : "100px",
|
|
50314
50339
|
height: height ? height : "auto",
|
|
50315
50340
|
tabIndex: toastOpen ? "-1" : "0",
|
|
50316
|
-
padding: "
|
|
50341
|
+
padding: "0rem 1rem",
|
|
50317
50342
|
borderRadius: "4px",
|
|
50318
50343
|
boxShadow: "0px 4px 4px rgba(41, 42, 51, 0.15), 0px 1px 7px rgba(41, 42, 51, 0.2), 0px 7px 12px rgba(41, 42, 51, 0.15)",
|
|
50319
|
-
extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n ")
|
|
50344
|
+
extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n ")
|
|
50320
50345
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
50321
50346
|
align: "center",
|
|
50322
|
-
childGap:
|
|
50323
|
-
}, variant === "success" && /*#__PURE__*/React.createElement(
|
|
50347
|
+
childGap: childGap
|
|
50348
|
+
}, variant === "success" && /*#__PURE__*/React.createElement(SuccessfulIconMedium, null), variant === "error" && /*#__PURE__*/React.createElement(ErroredIcon, null), /*#__PURE__*/React.createElement(Box, {
|
|
50324
50349
|
padding: "1rem 0",
|
|
50325
50350
|
maxWidth: maxWidth
|
|
50326
50351
|
}, /*#__PURE__*/React.createElement(Paragraph$1, {
|
|
50327
50352
|
weight: FONT_WEIGHT_SEMIBOLD,
|
|
50328
50353
|
extraStyles: "word-break: break-word;"
|
|
50329
|
-
}, message)), /*#__PURE__*/React.createElement(
|
|
50354
|
+
}, message)), /*#__PURE__*/React.createElement(IconQuitLarge, null)));
|
|
50330
50355
|
};
|
|
50331
50356
|
|
|
50332
50357
|
var fontWeight$9 = "600";
|
|
50333
|
-
var fontColor$1 = WHITE
|
|
50358
|
+
var fontColor$1 = WHITE;
|
|
50334
50359
|
var textAlign$1 = "left";
|
|
50335
50360
|
var headerBackgroundColor$1 = BRIGHT_GREY;
|
|
50336
50361
|
var imageBackgroundColor$1 = MATISSE_BLUE;
|
|
@@ -50394,7 +50419,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
50394
50419
|
_ref$buttonVariant = _ref.buttonVariant,
|
|
50395
50420
|
buttonVariant = _ref$buttonVariant === void 0 ? "primary" : _ref$buttonVariant;
|
|
50396
50421
|
return /*#__PURE__*/React.createElement(Box, {
|
|
50397
|
-
background: WHITE
|
|
50422
|
+
background: WHITE,
|
|
50398
50423
|
boxShadow: "0px 0px 5px 0px ".concat(GHOST_GREY),
|
|
50399
50424
|
padding: 0,
|
|
50400
50425
|
borderRadius: "4px"
|
|
@@ -50701,5 +50726,37 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
50701
50726
|
|
|
50702
50727
|
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$U));
|
|
50703
50728
|
|
|
50704
|
-
|
|
50729
|
+
var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
50730
|
+
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
50731
|
+
// Only move focus when "hasErrors" is true
|
|
50732
|
+
// "hasErrors" is managed by container page of form
|
|
50733
|
+
// typically set to "true" on attempted form submission, if errors exist
|
|
50734
|
+
// Reset errors, if provided, resets the error state tracking in order to properly re-run
|
|
50735
|
+
useEffect$1(function () {
|
|
50736
|
+
if (hasErrors) {
|
|
50737
|
+
var _inputsWithErrors$;
|
|
50738
|
+
|
|
50739
|
+
var inputsWithErrors = document.querySelectorAll("input[aria-invalid=true]");
|
|
50740
|
+
inputsWithErrors === null || inputsWithErrors === void 0 ? void 0 : (_inputsWithErrors$ = inputsWithErrors[0]) === null || _inputsWithErrors$ === void 0 ? void 0 : _inputsWithErrors$.focus();
|
|
50741
|
+
}
|
|
50742
|
+
|
|
50743
|
+
return function () {
|
|
50744
|
+
return resetHasErrors(false);
|
|
50745
|
+
};
|
|
50746
|
+
});
|
|
50747
|
+
};
|
|
50748
|
+
|
|
50749
|
+
|
|
50750
|
+
|
|
50751
|
+
var index$6 = /*#__PURE__*/Object.freeze({
|
|
50752
|
+
__proto__: null,
|
|
50753
|
+
formats: formats,
|
|
50754
|
+
general: general,
|
|
50755
|
+
theme: themeUtils,
|
|
50756
|
+
useFocusInvalidInput: useFocusInvalidInput,
|
|
50757
|
+
useOutsideClick: useOutsideClickHook,
|
|
50758
|
+
useToastNotification: useToastNotification
|
|
50759
|
+
});
|
|
50760
|
+
|
|
50761
|
+
export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$5 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$4 as hooks, index$6 as util, withWindowSize };
|
|
50705
50762
|
//# sourceMappingURL=index.esm.js.map
|