@thecb/components 4.3.7 → 4.3.10
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 +116 -36
- package/package.json +1 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +9 -9
- package/src/components/atoms/icons/CustomerSearchIcon.js +11 -4
- package/src/components/atoms/icons/PaymentSearchIcon.js +11 -4
- package/src/components/atoms/icons/ResetPasswordIcon.js +54 -0
- package/src/components/atoms/icons/index.js +3 -1
- package/src/components/molecules/modal/Modal.js +68 -30
- package/src/components/molecules/reset-password-form/ResetPasswordForm.js +1 -1
- package/src/deprecated/spinner/Spinner.js +7 -3
package/dist/index.cjs.js
CHANGED
|
@@ -12469,10 +12469,10 @@ var border = {
|
|
|
12469
12469
|
};
|
|
12470
12470
|
var hoverBackgroundColor = {
|
|
12471
12471
|
primary: "#116285",
|
|
12472
|
-
secondary: "
|
|
12472
|
+
secondary: "#DBEAF0",
|
|
12473
12473
|
back: "transparent",
|
|
12474
12474
|
smallPrimary: "#116285",
|
|
12475
|
-
smallSecondary: "
|
|
12475
|
+
smallSecondary: "#DBEAF0",
|
|
12476
12476
|
smallGhost: "transparent",
|
|
12477
12477
|
ghost: "transparent",
|
|
12478
12478
|
tertiary: "transparent",
|
|
@@ -12482,10 +12482,10 @@ var hoverBackgroundColor = {
|
|
|
12482
12482
|
};
|
|
12483
12483
|
var hoverBorderColor = {
|
|
12484
12484
|
primary: "#116285",
|
|
12485
|
-
secondary: "#
|
|
12485
|
+
secondary: "#15749D",
|
|
12486
12486
|
back: "#DCEAF1",
|
|
12487
12487
|
smallPrimary: "#116285",
|
|
12488
|
-
smallSecondary: "#
|
|
12488
|
+
smallSecondary: "#15749D",
|
|
12489
12489
|
smallGhost: "transparent",
|
|
12490
12490
|
ghost: "transparent",
|
|
12491
12491
|
tertiary: "transparent",
|
|
@@ -12508,10 +12508,10 @@ var hoverColor = {
|
|
|
12508
12508
|
};
|
|
12509
12509
|
var activeBackgroundColor = {
|
|
12510
12510
|
primary: "#0E506D",
|
|
12511
|
-
secondary: "
|
|
12511
|
+
secondary: "#B8D5E1",
|
|
12512
12512
|
back: "transparent",
|
|
12513
12513
|
smallPrimary: "#0E506D",
|
|
12514
|
-
smallSecondary: "
|
|
12514
|
+
smallSecondary: "#B8D5E1",
|
|
12515
12515
|
smallGhost: "transparent",
|
|
12516
12516
|
ghost: "transparent",
|
|
12517
12517
|
tertiary: "transparent",
|
|
@@ -12521,10 +12521,10 @@ var activeBackgroundColor = {
|
|
|
12521
12521
|
};
|
|
12522
12522
|
var activeBorderColor = {
|
|
12523
12523
|
primary: "#0E506D",
|
|
12524
|
-
secondary: "#
|
|
12524
|
+
secondary: "#15749D",
|
|
12525
12525
|
back: "#0E506D",
|
|
12526
12526
|
smallPrimary: "#0E506D",
|
|
12527
|
-
smallSecondary: "#
|
|
12527
|
+
smallSecondary: "#15749D",
|
|
12528
12528
|
smallGhost: "transparent",
|
|
12529
12529
|
ghost: "transparent",
|
|
12530
12530
|
tertiary: "transparent",
|
|
@@ -12534,7 +12534,7 @@ var activeBorderColor = {
|
|
|
12534
12534
|
};
|
|
12535
12535
|
var activeColor = {
|
|
12536
12536
|
primary: "#FFFFFF",
|
|
12537
|
-
secondary: "#
|
|
12537
|
+
secondary: "#15749D",
|
|
12538
12538
|
back: "#0E506D",
|
|
12539
12539
|
smallPrimary: "#FFFFFF",
|
|
12540
12540
|
smallSecondary: "#0E506D",
|
|
@@ -12620,7 +12620,7 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
|
|
|
12620
12620
|
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
12621
12621
|
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
|
|
12622
12622
|
d: "M72.1558149,36 C72.0733136,36 72.0151877,35.9981252 71.9829372,35.9970003 C66.1928468,35.9876262 60,31.1685779 60,23.9985001 C60,16.821298 66.204847,12 71.9998125,12 C78.2804106,12 84,17.7189638 84,23.9985001 C84,24.4124613 83.6639947,24.7484298 83.2499883,24.7484298 C82.8356068,24.7484298 82.4999766,24.4124613 82.4999766,23.9985001 C82.4999766,18.5041402 77.4951484,13.4998594 71.9998125,13.4998594 C66.9289833,13.4998594 61.5000234,17.7185889 61.5000234,23.9985001 C61.5000234,30.2784114 66.9289833,34.4971409 71.9998125,34.4971409 C72.0129377,34.4971409 72.0260629,34.4975159 72.0391881,34.4982658 C72.0789387,34.4990157 76.2268785,34.6471268 79.907186,30.9675968 C80.2000656,30.6747492 80.675198,30.6747492 80.9677026,30.9675968 C81.2605822,31.2604443 81.2605822,31.7351498 80.9677026,32.0279974 C77.2236441,35.7716464 73.1034547,36 72.1558149,36 L72.1558149,36 Z",
|
|
12623
|
-
id: "path-1"
|
|
12623
|
+
id: "spinner-path-1"
|
|
12624
12624
|
})), /*#__PURE__*/React__default.createElement("g", {
|
|
12625
12625
|
id: "Symbols",
|
|
12626
12626
|
fill: "none",
|
|
@@ -12632,11 +12632,11 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
|
|
|
12632
12632
|
id: "mask-2",
|
|
12633
12633
|
fill: color || "white"
|
|
12634
12634
|
}, /*#__PURE__*/React__default.createElement("use", {
|
|
12635
|
-
xlinkHref: "#path-1"
|
|
12635
|
+
xlinkHref: "#spinner-path-1"
|
|
12636
12636
|
})), /*#__PURE__*/React__default.createElement("use", {
|
|
12637
12637
|
id: "loader",
|
|
12638
12638
|
fill: color || "white",
|
|
12639
|
-
xlinkHref: "#path-1"
|
|
12639
|
+
xlinkHref: "#spinner-path-1"
|
|
12640
12640
|
}))))));
|
|
12641
12641
|
};
|
|
12642
12642
|
|
|
@@ -15037,14 +15037,14 @@ var CustomerSearchIcon = function CustomerSearchIcon() {
|
|
|
15037
15037
|
height: "209",
|
|
15038
15038
|
viewBox: "0 0 366 209"
|
|
15039
15039
|
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("rect", {
|
|
15040
|
-
id: "path-1",
|
|
15040
|
+
id: "customer-search-path-1",
|
|
15041
15041
|
width: "64",
|
|
15042
15042
|
height: "64",
|
|
15043
15043
|
x: "39",
|
|
15044
15044
|
y: "40",
|
|
15045
15045
|
rx: "6"
|
|
15046
15046
|
}), /*#__PURE__*/React__default.createElement("filter", {
|
|
15047
|
-
id: "filter-2",
|
|
15047
|
+
id: "customer-search-filter-2",
|
|
15048
15048
|
width: "178.1%",
|
|
15049
15049
|
height: "178.1%",
|
|
15050
15050
|
x: "-39.1%",
|
|
@@ -15089,8 +15089,8 @@ var CustomerSearchIcon = function CustomerSearchIcon() {
|
|
|
15089
15089
|
}), /*#__PURE__*/React__default.createElement("use", {
|
|
15090
15090
|
fill: "#000",
|
|
15091
15091
|
fillOpacity: "1",
|
|
15092
|
-
filter: "url(#filter-2)",
|
|
15093
|
-
xlinkHref: "#path-1"
|
|
15092
|
+
filter: "url(#customer-search-filter-2)",
|
|
15093
|
+
xlinkHref: "#customer-search-path-1"
|
|
15094
15094
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
15095
15095
|
fill: "#E4F4FD",
|
|
15096
15096
|
d: "M185 185c28.719 0 52 5.373 52 12s-23.281 12-52 12c-28.718 0-52-5.373-52-12s23.282-12 52-12zM97 44a2 2 0 012 2v52a2 2 0 01-2 2H45a2 2 0 01-2-2V46a2 2 0 012-2h52zM80 70c-3.535 0-6.145 1.941-7.827 5.824C70.192 73.274 67.633 72 64.5 72c-5.912 0-9.773 4.536-11.585 13.608a2 2 0 001.83 2.388l.13.004h19.25l.148-.005a2 2 0 001.812-2.387 37.807 37.807 0 00-.733-3.045L75.184 82h11.893l.15-.005a2 2 0 001.797-2.451C87.534 73.18 84.526 70 80 70zm136-26c10.493 0 19 8.507 19 19s-8.507 19-19 19-19-8.507-19-19 8.507-19 19-19zM64.5 56a7 7 0 100 14 7 7 0 000-14zM216 58c-4.206 0-7.903 2.689-9.348 6.641a2.5 2.5 0 004.635 1.87l.061-.152.083-.214c.786-1.896 2.575-3.145 4.57-3.145 1.994 0 3.782 1.249 4.568 3.145l.083.214.061.152a2.5 2.5 0 004.635-1.87C223.903 60.69 220.207 58 216.001 58zM80 57a5.5 5.5 0 100 11 5.5 5.5 0 000-11z"
|
|
@@ -15109,14 +15109,14 @@ var PaymentSearchIcon = function PaymentSearchIcon() {
|
|
|
15109
15109
|
height: "209",
|
|
15110
15110
|
viewBox: "0 0 366 209"
|
|
15111
15111
|
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("rect", {
|
|
15112
|
-
id: "path-1",
|
|
15112
|
+
id: "payment-search-path-1",
|
|
15113
15113
|
width: "64",
|
|
15114
15114
|
height: "64",
|
|
15115
15115
|
x: "39",
|
|
15116
15116
|
y: "40",
|
|
15117
15117
|
rx: "6"
|
|
15118
15118
|
}), /*#__PURE__*/React__default.createElement("filter", {
|
|
15119
|
-
id: "filter-2",
|
|
15119
|
+
id: "payment-search-filter-2",
|
|
15120
15120
|
width: "178.1%",
|
|
15121
15121
|
height: "178.1%",
|
|
15122
15122
|
x: "-39.1%",
|
|
@@ -15164,8 +15164,8 @@ var PaymentSearchIcon = function PaymentSearchIcon() {
|
|
|
15164
15164
|
}), /*#__PURE__*/React__default.createElement("use", {
|
|
15165
15165
|
fill: "#000",
|
|
15166
15166
|
fillOpacity: "1",
|
|
15167
|
-
filter: "url(#filter-2)",
|
|
15168
|
-
xlinkHref: "#path-1"
|
|
15167
|
+
filter: "url(#payment-search-filter-2)",
|
|
15168
|
+
xlinkHref: "#payment-search-path-1"
|
|
15169
15169
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
15170
15170
|
fill: "#E8FFEF",
|
|
15171
15171
|
d: "M185 185c28.719 0 52 5.373 52 12s-23.281 12-52 12c-28.718 0-52-5.373-52-12s23.282-12 52-12zM97 44a2 2 0 012 2v52a2 2 0 01-2 2H45a2 2 0 01-2-2V46a2 2 0 012-2h52zM74.134 56h-5.268c-.441 0-.806.304-.86.696l-.006.1v2.456c-4.391.845-7.029 3.74-7.144 7.532l-.004.26v.072c0 5.135 4.208 6.644 9.66 7.865 3.408.801 4.302 1.333 4.351 2.348l.002.093v.073c0 1.077-1.025 1.723-2.963 1.723-2.717 0-5.28-.875-7.66-2.542a.896.896 0 00-1.112.082l-.078.081-2.845 3.336a.84.84 0 00.11 1.21c2.061 1.596 4.522 2.668 7.182 3.207l.5.095.001 2.581c0 .37.3.677.688.725l.108.007h5.407c.403 0 .737-.275.79-.632l.007-.1v-2.602c4.212-.902 6.88-3.587 6.996-7.58l.004-.273v-.072c0-4.705-3.659-6.572-9.513-7.83-3.483-.767-4.411-1.263-4.462-2.344l-.002-.097v-.072c0-.934.842-1.616 2.562-1.616 2.041 0 4.32.669 6.462 2.007a.9.9 0 001.13-.126l.073-.089 2.566-3.556a.841.841 0 00-.185-1.18 14.999 14.999 0 00-5.178-2.318l-.451-.103-.002-2.62c0-.44-.388-.797-.866-.797z"
|
|
@@ -15176,6 +15176,51 @@ var PaymentSearchIcon = function PaymentSearchIcon() {
|
|
|
15176
15176
|
}))))));
|
|
15177
15177
|
};
|
|
15178
15178
|
|
|
15179
|
+
var ResetPasswordIcon = function ResetPasswordIcon() {
|
|
15180
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
15181
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15182
|
+
width: "86",
|
|
15183
|
+
height: "80",
|
|
15184
|
+
viewBox: "0 0 86 80"
|
|
15185
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
15186
|
+
fill: "none",
|
|
15187
|
+
fillRule: "evenodd",
|
|
15188
|
+
stroke: "none",
|
|
15189
|
+
strokeWidth: "1"
|
|
15190
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
15191
|
+
transform: "translate(-677 -192)"
|
|
15192
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
15193
|
+
transform: "translate(432 168)"
|
|
15194
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
15195
|
+
transform: "translate(245 24)"
|
|
15196
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
15197
|
+
fill: "#FFF",
|
|
15198
|
+
d: "M36 2.44311523L50.2941895 1.66943359 67 7.32739258 78 18.2668457 85 35.1682129 83 53.0935059 75.1977539 66.3569336 62.1745605 75.9748535 46 80 36 78z"
|
|
15199
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
15200
|
+
fill: "#E5E7EC",
|
|
15201
|
+
d: "M46 6h17.5l11.749 10H46a1 1 0 01-1-1V7a1 1 0 011-1zm27 62L58.5 78H46a1 1 0 01-1-1v-8a1 1 0 011-1h27zm10-16l-4.506 10H46a1 1 0 01-1-1v-8a1 1 0 011-1h37zm2-16l-.382 10H46a1 1 0 01-1-1v-8a1 1 0 011-1h39zm-7-16l4 10H46a1 1 0 01-1-1v-8a1 1 0 011-1h32z"
|
|
15202
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
15203
|
+
fill: "#15749D",
|
|
15204
|
+
d: "M45.09 0c22.091 0 40 17.909 40 40s-17.909 40-40 40C28.569 80 14.387 69.984 8.286 55.693H5a5 5 0 01-5-5V33.345a5 5 0 015-5h1.814C11.804 11.939 27.052 0 45.09 0zm33.573 55.693l-42.202-.001v20.326c2.78.667 5.682 1.02 8.667 1.02 14.84 0 27.639-8.735 33.535-21.345zm-45.24-.001l-21.83.001c4.271 9.134 12.164 16.235 21.83 19.456V55.692zm-23.41-27.345l23.41-.001V4.928C22.4 8.601 13.683 17.321 10.013 28.347zM45.128 3.038c-2.985 0-5.887.354-8.667 1.021v24.287h43.782C75.349 13.643 61.477 3.039 45.128 3.039z"
|
|
15205
|
+
}), /*#__PURE__*/React__default.createElement("g", {
|
|
15206
|
+
transform: "translate(8 38)"
|
|
15207
|
+
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
15208
|
+
width: "11",
|
|
15209
|
+
height: "7",
|
|
15210
|
+
x: "0",
|
|
15211
|
+
y: "2",
|
|
15212
|
+
fill: "#FFF",
|
|
15213
|
+
rx: "1"
|
|
15214
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
15215
|
+
stroke: "#FFF",
|
|
15216
|
+
strokeWidth: "2",
|
|
15217
|
+
d: "M5.5-1l.205.008c.609.05 1.156.317 1.563.724C7.72.185 8 .81 8 1.5h0V3H3V1.5c0-.69.28-1.315.732-1.768A2.492 2.492 0 015.5-1h0z"
|
|
15218
|
+
})), /*#__PURE__*/React__default.createElement("path", {
|
|
15219
|
+
fill: "#FFF",
|
|
15220
|
+
d: "M41.5 38a3.5 3.5 0 110 7 3.5 3.5 0 010-7zm11 0a3.5 3.5 0 110 7 3.5 3.5 0 010-7zm11 0a3.5 3.5 0 110 7 3.5 3.5 0 010-7zm11 0a3.5 3.5 0 110 7 3.5 3.5 0 010-7zm-44 0a3.5 3.5 0 110 7 3.5 3.5 0 010-7z"
|
|
15221
|
+
}))))));
|
|
15222
|
+
};
|
|
15223
|
+
|
|
15179
15224
|
var color$2 = "#15749D";
|
|
15180
15225
|
var hoverColor$1 = "#116285";
|
|
15181
15226
|
var activeColor$1 = "#0E506D";
|
|
@@ -38845,6 +38890,10 @@ var Modal$1 = function Modal(_ref) {
|
|
|
38845
38890
|
maxHeight = _ref.maxHeight,
|
|
38846
38891
|
_ref$underlayClickExi = _ref.underlayClickExits,
|
|
38847
38892
|
underlayClickExits = _ref$underlayClickExi === void 0 ? true : _ref$underlayClickExi,
|
|
38893
|
+
noBorder = _ref.noBorder,
|
|
38894
|
+
customWidth = _ref.customWidth,
|
|
38895
|
+
isLoading = _ref.isLoading,
|
|
38896
|
+
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
38848
38897
|
children = _ref.children;
|
|
38849
38898
|
|
|
38850
38899
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
@@ -38861,7 +38910,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
38861
38910
|
alignItems: "center"
|
|
38862
38911
|
},
|
|
38863
38912
|
dialogStyle: {
|
|
38864
|
-
width: "615px"
|
|
38913
|
+
width: customWidth || "615px"
|
|
38865
38914
|
},
|
|
38866
38915
|
underlayClickExits: underlayClickExits
|
|
38867
38916
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -38870,7 +38919,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
38870
38919
|
boxShadow: "inset 0px -2px 0px 0px rgb(0, 80, 149)"
|
|
38871
38920
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
38872
38921
|
background: modalHeaderBg,
|
|
38873
|
-
padding: "
|
|
38922
|
+
padding: "1.5rem"
|
|
38874
38923
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
38875
38924
|
justify: "flex-start",
|
|
38876
38925
|
align: "center"
|
|
@@ -38879,13 +38928,13 @@ var Modal$1 = function Modal(_ref) {
|
|
|
38879
38928
|
weight: FONT_WEIGHT_SEMIBOLD
|
|
38880
38929
|
}, modalHeaderText))), /*#__PURE__*/React__default.createElement(Box, {
|
|
38881
38930
|
background: modalBodyBg,
|
|
38882
|
-
padding: "
|
|
38931
|
+
padding: "1.5rem"
|
|
38883
38932
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
38884
38933
|
childGap: "1.5rem"
|
|
38885
38934
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
38886
|
-
borderWidthOverride: "0 0 2px 0",
|
|
38887
|
-
borderColor: SILVER_GREY,
|
|
38888
|
-
padding: "0 0 1.5rem 0",
|
|
38935
|
+
borderWidthOverride: noBorder && "0 0 2px 0",
|
|
38936
|
+
borderColor: !noBorder && SILVER_GREY,
|
|
38937
|
+
padding: !noBorder && "0 0 1.5rem 0",
|
|
38889
38938
|
extraStyles: maxHeight ? "max-height: ".concat(maxHeight, "; overflow: auto;") : ""
|
|
38890
38939
|
}, defaultWrapper ? /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
38891
38940
|
variant: "p"
|
|
@@ -38893,33 +38942,63 @@ var Modal$1 = function Modal(_ref) {
|
|
|
38893
38942
|
padding: maxHeight ? "0 0 1rem 0" : "0"
|
|
38894
38943
|
}, modalBodyText)), /*#__PURE__*/React__default.createElement(Box, {
|
|
38895
38944
|
padding: "0"
|
|
38896
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
38945
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
38946
|
+
direction: "row",
|
|
38897
38947
|
justify: "flex-end",
|
|
38898
38948
|
align: "center",
|
|
38899
38949
|
childGap: "0rem"
|
|
38900
|
-
}, !onlyCloseButton ? /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
38901
|
-
|
|
38902
|
-
|
|
38950
|
+
}, !onlyCloseButton ? /*#__PURE__*/React__default.createElement(React.Fragment, null, isMobile ? /*#__PURE__*/React__default.createElement(Stack, {
|
|
38951
|
+
childGap: "1rem",
|
|
38952
|
+
direction: "row"
|
|
38953
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
38954
|
+
width: "100%",
|
|
38955
|
+
padding: "0"
|
|
38903
38956
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
38904
38957
|
variant: "secondary",
|
|
38905
38958
|
action: cancelAction ? cancelAction : hideModal,
|
|
38906
38959
|
text: cancelButtonText,
|
|
38907
|
-
dataQa: cancelButtonText
|
|
38960
|
+
dataQa: cancelButtonText,
|
|
38961
|
+
extraStyles: buttonExtraStyles,
|
|
38962
|
+
className: "modal-cancel-button"
|
|
38908
38963
|
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
38909
|
-
|
|
38910
|
-
|
|
38964
|
+
width: "100%",
|
|
38965
|
+
padding: "0"
|
|
38911
38966
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
38912
38967
|
variant: useDangerButton ? "danger" : "primary",
|
|
38913
38968
|
action: continueAction,
|
|
38914
38969
|
text: continueButtonText,
|
|
38915
|
-
dataQa: continueButtonText
|
|
38970
|
+
dataQa: continueButtonText,
|
|
38971
|
+
isLoading: isLoading,
|
|
38972
|
+
extraStyles: buttonExtraStyles,
|
|
38973
|
+
className: "modal-continue-button"
|
|
38974
|
+
}))) : /*#__PURE__*/React__default.createElement(Stack, {
|
|
38975
|
+
childGap: "1rem",
|
|
38976
|
+
direction: "row",
|
|
38977
|
+
justify: "flex-end"
|
|
38978
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
38979
|
+
variant: "secondary",
|
|
38980
|
+
action: cancelAction ? cancelAction : hideModal,
|
|
38981
|
+
text: cancelButtonText,
|
|
38982
|
+
dataQa: cancelButtonText,
|
|
38983
|
+
extraStyles: buttonExtraStyles,
|
|
38984
|
+
className: "modal-cancel-button"
|
|
38985
|
+
}), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
38986
|
+
variant: useDangerButton ? "danger" : "primary",
|
|
38987
|
+
action: continueAction,
|
|
38988
|
+
text: continueButtonText,
|
|
38989
|
+
dataQa: continueButtonText,
|
|
38990
|
+
isLoading: isLoading,
|
|
38991
|
+
extraStyles: buttonExtraStyles,
|
|
38992
|
+
className: "modal-continue-button"
|
|
38916
38993
|
}))) : /*#__PURE__*/React__default.createElement(Box, {
|
|
38917
38994
|
padding: "0.5rem"
|
|
38918
38995
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
38919
38996
|
action: hideModal,
|
|
38920
38997
|
variant: "primary",
|
|
38921
38998
|
text: "Close",
|
|
38922
|
-
dataQa: "Close"
|
|
38999
|
+
dataQa: "Close",
|
|
39000
|
+
extraStyles: buttonExtraStyles,
|
|
39001
|
+
className: "modal-cancel-button"
|
|
38923
39002
|
})))))))), children);
|
|
38924
39003
|
};
|
|
38925
39004
|
|
|
@@ -40929,7 +41008,7 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
40929
41008
|
},
|
|
40930
41009
|
type: "password"
|
|
40931
41010
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
40932
|
-
padding:
|
|
41011
|
+
padding: "0"
|
|
40933
41012
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|
|
40934
41013
|
password: fields.password,
|
|
40935
41014
|
isMobile: isMobile
|
|
@@ -41806,6 +41885,7 @@ exports.RejectedIcon = RejectedIcon;
|
|
|
41806
41885
|
exports.RejectedVelocityIcon = RejectedVelocityIcon;
|
|
41807
41886
|
exports.ResetConfirmationForm = ResetConfirmationForm$1;
|
|
41808
41887
|
exports.ResetPasswordForm = ResetPasswordForm;
|
|
41888
|
+
exports.ResetPasswordIcon = ResetPasswordIcon;
|
|
41809
41889
|
exports.ResetPasswordSuccess = ResetPasswordSuccess;
|
|
41810
41890
|
exports.RoutingNumberImage = RoutingNumberImage;
|
|
41811
41891
|
exports.SearchIcon = SearchIcon;
|
package/package.json
CHANGED
|
@@ -117,10 +117,10 @@ const border = {
|
|
|
117
117
|
|
|
118
118
|
const hoverBackgroundColor = {
|
|
119
119
|
primary: "#116285",
|
|
120
|
-
secondary: "
|
|
120
|
+
secondary: "#DBEAF0",
|
|
121
121
|
back: "transparent",
|
|
122
122
|
smallPrimary: "#116285",
|
|
123
|
-
smallSecondary: "
|
|
123
|
+
smallSecondary: "#DBEAF0",
|
|
124
124
|
smallGhost: "transparent",
|
|
125
125
|
ghost: "transparent",
|
|
126
126
|
tertiary: "transparent",
|
|
@@ -131,10 +131,10 @@ const hoverBackgroundColor = {
|
|
|
131
131
|
|
|
132
132
|
const hoverBorderColor = {
|
|
133
133
|
primary: "#116285",
|
|
134
|
-
secondary: "#
|
|
134
|
+
secondary: "#15749D",
|
|
135
135
|
back: "#DCEAF1",
|
|
136
136
|
smallPrimary: "#116285",
|
|
137
|
-
smallSecondary: "#
|
|
137
|
+
smallSecondary: "#15749D",
|
|
138
138
|
smallGhost: "transparent",
|
|
139
139
|
ghost: "transparent",
|
|
140
140
|
tertiary: "transparent",
|
|
@@ -159,10 +159,10 @@ const hoverColor = {
|
|
|
159
159
|
|
|
160
160
|
const activeBackgroundColor = {
|
|
161
161
|
primary: "#0E506D",
|
|
162
|
-
secondary: "
|
|
162
|
+
secondary: "#B8D5E1",
|
|
163
163
|
back: "transparent",
|
|
164
164
|
smallPrimary: "#0E506D",
|
|
165
|
-
smallSecondary: "
|
|
165
|
+
smallSecondary: "#B8D5E1",
|
|
166
166
|
smallGhost: "transparent",
|
|
167
167
|
ghost: "transparent",
|
|
168
168
|
tertiary: "transparent",
|
|
@@ -173,10 +173,10 @@ const activeBackgroundColor = {
|
|
|
173
173
|
|
|
174
174
|
const activeBorderColor = {
|
|
175
175
|
primary: "#0E506D",
|
|
176
|
-
secondary: "#
|
|
176
|
+
secondary: "#15749D",
|
|
177
177
|
back: "#0E506D",
|
|
178
178
|
smallPrimary: "#0E506D",
|
|
179
|
-
smallSecondary: "#
|
|
179
|
+
smallSecondary: "#15749D",
|
|
180
180
|
smallGhost: "transparent",
|
|
181
181
|
ghost: "transparent",
|
|
182
182
|
tertiary: "transparent",
|
|
@@ -187,7 +187,7 @@ const activeBorderColor = {
|
|
|
187
187
|
|
|
188
188
|
const activeColor = {
|
|
189
189
|
primary: "#FFFFFF",
|
|
190
|
-
secondary: "#
|
|
190
|
+
secondary: "#15749D",
|
|
191
191
|
back: "#0E506D",
|
|
192
192
|
smallPrimary: "#FFFFFF",
|
|
193
193
|
smallSecondary: "#0E506D",
|
|
@@ -10,9 +10,16 @@ const CustomerSearchIcon = () => {
|
|
|
10
10
|
viewBox="0 0 366 209"
|
|
11
11
|
>
|
|
12
12
|
<defs>
|
|
13
|
-
<rect
|
|
13
|
+
<rect
|
|
14
|
+
id="customer-search-path-1"
|
|
15
|
+
width="64"
|
|
16
|
+
height="64"
|
|
17
|
+
x="39"
|
|
18
|
+
y="40"
|
|
19
|
+
rx="6"
|
|
20
|
+
></rect>
|
|
14
21
|
<filter
|
|
15
|
-
id="filter-2"
|
|
22
|
+
id="customer-search-filter-2"
|
|
16
23
|
width="178.1%"
|
|
17
24
|
height="178.1%"
|
|
18
25
|
x="-39.1%"
|
|
@@ -60,8 +67,8 @@ const CustomerSearchIcon = () => {
|
|
|
60
67
|
<use
|
|
61
68
|
fill="#000"
|
|
62
69
|
fillOpacity="1"
|
|
63
|
-
filter="url(#filter-2)"
|
|
64
|
-
xlinkHref="#path-1"
|
|
70
|
+
filter="url(#customer-search-filter-2)"
|
|
71
|
+
xlinkHref="#customer-search-path-1"
|
|
65
72
|
></use>
|
|
66
73
|
<path
|
|
67
74
|
fill="#E4F4FD"
|
|
@@ -10,9 +10,16 @@ const PaymentSearchIcon = () => {
|
|
|
10
10
|
viewBox="0 0 366 209"
|
|
11
11
|
>
|
|
12
12
|
<defs>
|
|
13
|
-
<rect
|
|
13
|
+
<rect
|
|
14
|
+
id="payment-search-path-1"
|
|
15
|
+
width="64"
|
|
16
|
+
height="64"
|
|
17
|
+
x="39"
|
|
18
|
+
y="40"
|
|
19
|
+
rx="6"
|
|
20
|
+
></rect>
|
|
14
21
|
<filter
|
|
15
|
-
id="filter-2"
|
|
22
|
+
id="payment-search-filter-2"
|
|
16
23
|
width="178.1%"
|
|
17
24
|
height="178.1%"
|
|
18
25
|
x="-39.1%"
|
|
@@ -64,8 +71,8 @@ const PaymentSearchIcon = () => {
|
|
|
64
71
|
<use
|
|
65
72
|
fill="#000"
|
|
66
73
|
fillOpacity="1"
|
|
67
|
-
filter="url(#filter-2)"
|
|
68
|
-
xlinkHref="#path-1"
|
|
74
|
+
filter="url(#payment-search-filter-2)"
|
|
75
|
+
xlinkHref="#payment-search-path-1"
|
|
69
76
|
></use>
|
|
70
77
|
<path
|
|
71
78
|
fill="#E8FFEF"
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
const ResetPasswordIcon = () => {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width="86"
|
|
8
|
+
height="80"
|
|
9
|
+
viewBox="0 0 86 80"
|
|
10
|
+
>
|
|
11
|
+
<g fill="none" fillRule="evenodd" stroke="none" strokeWidth="1">
|
|
12
|
+
<g transform="translate(-677 -192)">
|
|
13
|
+
<g transform="translate(432 168)">
|
|
14
|
+
<g transform="translate(245 24)">
|
|
15
|
+
<path
|
|
16
|
+
fill="#FFF"
|
|
17
|
+
d="M36 2.44311523L50.2941895 1.66943359 67 7.32739258 78 18.2668457 85 35.1682129 83 53.0935059 75.1977539 66.3569336 62.1745605 75.9748535 46 80 36 78z"
|
|
18
|
+
></path>
|
|
19
|
+
<path
|
|
20
|
+
fill="#E5E7EC"
|
|
21
|
+
d="M46 6h17.5l11.749 10H46a1 1 0 01-1-1V7a1 1 0 011-1zm27 62L58.5 78H46a1 1 0 01-1-1v-8a1 1 0 011-1h27zm10-16l-4.506 10H46a1 1 0 01-1-1v-8a1 1 0 011-1h37zm2-16l-.382 10H46a1 1 0 01-1-1v-8a1 1 0 011-1h39zm-7-16l4 10H46a1 1 0 01-1-1v-8a1 1 0 011-1h32z"
|
|
22
|
+
></path>
|
|
23
|
+
<path
|
|
24
|
+
fill="#15749D"
|
|
25
|
+
d="M45.09 0c22.091 0 40 17.909 40 40s-17.909 40-40 40C28.569 80 14.387 69.984 8.286 55.693H5a5 5 0 01-5-5V33.345a5 5 0 015-5h1.814C11.804 11.939 27.052 0 45.09 0zm33.573 55.693l-42.202-.001v20.326c2.78.667 5.682 1.02 8.667 1.02 14.84 0 27.639-8.735 33.535-21.345zm-45.24-.001l-21.83.001c4.271 9.134 12.164 16.235 21.83 19.456V55.692zm-23.41-27.345l23.41-.001V4.928C22.4 8.601 13.683 17.321 10.013 28.347zM45.128 3.038c-2.985 0-5.887.354-8.667 1.021v24.287h43.782C75.349 13.643 61.477 3.039 45.128 3.039z"
|
|
26
|
+
></path>
|
|
27
|
+
<g transform="translate(8 38)">
|
|
28
|
+
<rect
|
|
29
|
+
width="11"
|
|
30
|
+
height="7"
|
|
31
|
+
x="0"
|
|
32
|
+
y="2"
|
|
33
|
+
fill="#FFF"
|
|
34
|
+
rx="1"
|
|
35
|
+
></rect>
|
|
36
|
+
<path
|
|
37
|
+
stroke="#FFF"
|
|
38
|
+
strokeWidth="2"
|
|
39
|
+
d="M5.5-1l.205.008c.609.05 1.156.317 1.563.724C7.72.185 8 .81 8 1.5h0V3H3V1.5c0-.69.28-1.315.732-1.768A2.492 2.492 0 015.5-1h0z"
|
|
40
|
+
></path>
|
|
41
|
+
</g>
|
|
42
|
+
<path
|
|
43
|
+
fill="#FFF"
|
|
44
|
+
d="M41.5 38a3.5 3.5 0 110 7 3.5 3.5 0 010-7zm11 0a3.5 3.5 0 110 7 3.5 3.5 0 010-7zm11 0a3.5 3.5 0 110 7 3.5 3.5 0 010-7zm11 0a3.5 3.5 0 110 7 3.5 3.5 0 010-7zm-44 0a3.5 3.5 0 110 7 3.5 3.5 0 010-7z"
|
|
45
|
+
></path>
|
|
46
|
+
</g>
|
|
47
|
+
</g>
|
|
48
|
+
</g>
|
|
49
|
+
</g>
|
|
50
|
+
</svg>
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export default ResetPasswordIcon;
|
|
@@ -50,6 +50,7 @@ import NoCustomerResultsIcon from "./NoCustomerResultsIcon";
|
|
|
50
50
|
import NoPaymentResultsIcon from "./NoPaymentResultsIcon";
|
|
51
51
|
import CustomerSearchIcon from "./CustomerSearchIcon";
|
|
52
52
|
import PaymentSearchIcon from "./PaymentSearchIcon";
|
|
53
|
+
import ResetPasswordIcon from "./ResetPasswordIcon";
|
|
53
54
|
|
|
54
55
|
export {
|
|
55
56
|
AccountsIcon,
|
|
@@ -103,5 +104,6 @@ export {
|
|
|
103
104
|
NoCustomerResultsIcon,
|
|
104
105
|
NoPaymentResultsIcon,
|
|
105
106
|
CustomerSearchIcon,
|
|
106
|
-
PaymentSearchIcon
|
|
107
|
+
PaymentSearchIcon,
|
|
108
|
+
ResetPasswordIcon
|
|
107
109
|
};
|
|
@@ -36,6 +36,10 @@ const Modal = ({
|
|
|
36
36
|
onlyCloseButton = false,
|
|
37
37
|
maxHeight,
|
|
38
38
|
underlayClickExits = true,
|
|
39
|
+
noBorder,
|
|
40
|
+
customWidth,
|
|
41
|
+
isLoading,
|
|
42
|
+
buttonExtraStyles,
|
|
39
43
|
children
|
|
40
44
|
}) => {
|
|
41
45
|
const { isMobile } = useContext(ThemeContext);
|
|
@@ -53,7 +57,7 @@ const Modal = ({
|
|
|
53
57
|
alignItems: "center"
|
|
54
58
|
}}
|
|
55
59
|
dialogStyle={{
|
|
56
|
-
width: "615px"
|
|
60
|
+
width: customWidth || "615px"
|
|
57
61
|
}}
|
|
58
62
|
underlayClickExits={underlayClickExits}
|
|
59
63
|
>
|
|
@@ -62,19 +66,19 @@ const Modal = ({
|
|
|
62
66
|
borderRadius="2px"
|
|
63
67
|
boxShadow="inset 0px -2px 0px 0px rgb(0, 80, 149)"
|
|
64
68
|
>
|
|
65
|
-
<Box background={modalHeaderBg} padding="
|
|
69
|
+
<Box background={modalHeaderBg} padding="1.5rem">
|
|
66
70
|
<Cluster justify="flex-start" align="center">
|
|
67
71
|
<Heading variant="h6" weight={FONT_WEIGHT_SEMIBOLD}>
|
|
68
72
|
{modalHeaderText}
|
|
69
73
|
</Heading>
|
|
70
74
|
</Cluster>
|
|
71
75
|
</Box>
|
|
72
|
-
<Box background={modalBodyBg} padding="
|
|
76
|
+
<Box background={modalBodyBg} padding="1.5rem">
|
|
73
77
|
<Stack childGap="1.5rem">
|
|
74
78
|
<Box
|
|
75
|
-
borderWidthOverride="0 0 2px 0"
|
|
76
|
-
borderColor={SILVER_GREY}
|
|
77
|
-
padding="0 0 1.5rem 0"
|
|
79
|
+
borderWidthOverride={noBorder && "0 0 2px 0"}
|
|
80
|
+
borderColor={!noBorder && SILVER_GREY}
|
|
81
|
+
padding={!noBorder && "0 0 1.5rem 0"}
|
|
78
82
|
extraStyles={
|
|
79
83
|
maxHeight ? `max-height: ${maxHeight}; overflow: auto;` : ``
|
|
80
84
|
}
|
|
@@ -88,31 +92,63 @@ const Modal = ({
|
|
|
88
92
|
)}
|
|
89
93
|
</Box>
|
|
90
94
|
<Box padding="0">
|
|
91
|
-
<
|
|
95
|
+
<Stack
|
|
96
|
+
direction="row"
|
|
97
|
+
justify="flex-end"
|
|
98
|
+
align="center"
|
|
99
|
+
childGap="0rem"
|
|
100
|
+
>
|
|
92
101
|
{!onlyCloseButton ? (
|
|
93
102
|
<Fragment>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
103
|
+
{isMobile ? (
|
|
104
|
+
<Stack childGap="1rem" direction="row">
|
|
105
|
+
<Box width="100%" padding="0">
|
|
106
|
+
<ButtonWithAction
|
|
107
|
+
variant="secondary"
|
|
108
|
+
action={cancelAction ? cancelAction : hideModal}
|
|
109
|
+
text={cancelButtonText}
|
|
110
|
+
dataQa={cancelButtonText}
|
|
111
|
+
extraStyles={buttonExtraStyles}
|
|
112
|
+
className="modal-cancel-button"
|
|
113
|
+
/>
|
|
114
|
+
</Box>
|
|
115
|
+
<Box width="100%" padding="0">
|
|
116
|
+
<ButtonWithAction
|
|
117
|
+
variant={useDangerButton ? "danger" : "primary"}
|
|
118
|
+
action={continueAction}
|
|
119
|
+
text={continueButtonText}
|
|
120
|
+
dataQa={continueButtonText}
|
|
121
|
+
isLoading={isLoading}
|
|
122
|
+
extraStyles={buttonExtraStyles}
|
|
123
|
+
className="modal-continue-button"
|
|
124
|
+
/>
|
|
125
|
+
</Box>
|
|
126
|
+
</Stack>
|
|
127
|
+
) : (
|
|
128
|
+
<Stack
|
|
129
|
+
childGap="1rem"
|
|
130
|
+
direction="row"
|
|
131
|
+
justify="flex-end"
|
|
132
|
+
>
|
|
133
|
+
<ButtonWithAction
|
|
134
|
+
variant="secondary"
|
|
135
|
+
action={cancelAction ? cancelAction : hideModal}
|
|
136
|
+
text={cancelButtonText}
|
|
137
|
+
dataQa={cancelButtonText}
|
|
138
|
+
extraStyles={buttonExtraStyles}
|
|
139
|
+
className="modal-cancel-button"
|
|
140
|
+
/>
|
|
141
|
+
<ButtonWithAction
|
|
142
|
+
variant={useDangerButton ? "danger" : "primary"}
|
|
143
|
+
action={continueAction}
|
|
144
|
+
text={continueButtonText}
|
|
145
|
+
dataQa={continueButtonText}
|
|
146
|
+
isLoading={isLoading}
|
|
147
|
+
extraStyles={buttonExtraStyles}
|
|
148
|
+
className="modal-continue-button"
|
|
149
|
+
/>
|
|
150
|
+
</Stack>
|
|
151
|
+
)}
|
|
116
152
|
</Fragment>
|
|
117
153
|
) : (
|
|
118
154
|
<Box padding="0.5rem">
|
|
@@ -121,10 +157,12 @@ const Modal = ({
|
|
|
121
157
|
variant="primary"
|
|
122
158
|
text="Close"
|
|
123
159
|
dataQa="Close"
|
|
160
|
+
extraStyles={buttonExtraStyles}
|
|
161
|
+
className="modal-cancel-button"
|
|
124
162
|
/>
|
|
125
163
|
</Box>
|
|
126
164
|
)}
|
|
127
|
-
</
|
|
165
|
+
</Stack>
|
|
128
166
|
</Box>
|
|
129
167
|
</Stack>
|
|
130
168
|
</Box>
|
|
@@ -59,7 +59,7 @@ const ResetPasswordForm = ({
|
|
|
59
59
|
onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
|
|
60
60
|
type="password"
|
|
61
61
|
/>
|
|
62
|
-
<Box padding=
|
|
62
|
+
<Box padding="0">
|
|
63
63
|
<PasswordRequirements password={fields.password} isMobile={isMobile} />
|
|
64
64
|
</Box>
|
|
65
65
|
</FormInputColumn>
|
|
@@ -45,7 +45,7 @@ const SpinnerIcon = ({ color, isMobile }) => (
|
|
|
45
45
|
<defs>
|
|
46
46
|
<path
|
|
47
47
|
d="M72.1558149,36 C72.0733136,36 72.0151877,35.9981252 71.9829372,35.9970003 C66.1928468,35.9876262 60,31.1685779 60,23.9985001 C60,16.821298 66.204847,12 71.9998125,12 C78.2804106,12 84,17.7189638 84,23.9985001 C84,24.4124613 83.6639947,24.7484298 83.2499883,24.7484298 C82.8356068,24.7484298 82.4999766,24.4124613 82.4999766,23.9985001 C82.4999766,18.5041402 77.4951484,13.4998594 71.9998125,13.4998594 C66.9289833,13.4998594 61.5000234,17.7185889 61.5000234,23.9985001 C61.5000234,30.2784114 66.9289833,34.4971409 71.9998125,34.4971409 C72.0129377,34.4971409 72.0260629,34.4975159 72.0391881,34.4982658 C72.0789387,34.4990157 76.2268785,34.6471268 79.907186,30.9675968 C80.2000656,30.6747492 80.675198,30.6747492 80.9677026,30.9675968 C81.2605822,31.2604443 81.2605822,31.7351498 80.9677026,32.0279974 C77.2236441,35.7716464 73.1034547,36 72.1558149,36 L72.1558149,36 Z"
|
|
48
|
-
id="path-1"
|
|
48
|
+
id="spinner-path-1"
|
|
49
49
|
/>
|
|
50
50
|
</defs>
|
|
51
51
|
<g id="Symbols" fill="none" fillRule="evenodd">
|
|
@@ -54,9 +54,13 @@ const SpinnerIcon = ({ color, isMobile }) => (
|
|
|
54
54
|
transform="translate(-60 -12)"
|
|
55
55
|
>
|
|
56
56
|
<mask id="mask-2" fill={color || "white"}>
|
|
57
|
-
<use xlinkHref="#path-1" />
|
|
57
|
+
<use xlinkHref="#spinner-path-1" />
|
|
58
58
|
</mask>
|
|
59
|
-
<use
|
|
59
|
+
<use
|
|
60
|
+
id="loader"
|
|
61
|
+
fill={color || "white"}
|
|
62
|
+
xlinkHref="#spinner-path-1"
|
|
63
|
+
/>
|
|
60
64
|
</g>
|
|
61
65
|
</g>
|
|
62
66
|
</svg>
|