@thecb/components 4.3.8 → 4.3.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 +113 -31
- package/package.json +1 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +9 -9
- package/src/components/atoms/icons/ResetPasswordIcon.js +54 -0
- package/src/components/atoms/icons/index.js +3 -1
- package/src/components/atoms/searchable-select/SearchableSelect.js +4 -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
|
|
|
@@ -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";
|
|
@@ -22419,13 +22464,15 @@ var SearchableSelect = function SearchableSelect(_ref) {
|
|
|
22419
22464
|
padding: "0.5rem 0",
|
|
22420
22465
|
extraStyles: "overflow-y: scroll; height: 250px;"
|
|
22421
22466
|
}, /*#__PURE__*/React__default.createElement(Stack, null, itemList.map(function (value) {
|
|
22467
|
+
var _selectedItems$find;
|
|
22468
|
+
|
|
22422
22469
|
return /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
22423
22470
|
key: value.name,
|
|
22424
22471
|
title: value.name,
|
|
22425
22472
|
name: value.name,
|
|
22426
|
-
checked: selectedItems.find(function (item) {
|
|
22427
|
-
return item.name === value.name;
|
|
22428
|
-
}),
|
|
22473
|
+
checked: (_selectedItems$find = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.find(function (item) {
|
|
22474
|
+
return (item === null || item === void 0 ? void 0 : item.name) === (value === null || value === void 0 ? void 0 : value.name);
|
|
22475
|
+
})) !== null && _selectedItems$find !== void 0 ? _selectedItems$find : false,
|
|
22429
22476
|
onChange: function onChange() {
|
|
22430
22477
|
return handleSelect(value);
|
|
22431
22478
|
},
|
|
@@ -38845,6 +38892,10 @@ var Modal$1 = function Modal(_ref) {
|
|
|
38845
38892
|
maxHeight = _ref.maxHeight,
|
|
38846
38893
|
_ref$underlayClickExi = _ref.underlayClickExits,
|
|
38847
38894
|
underlayClickExits = _ref$underlayClickExi === void 0 ? true : _ref$underlayClickExi,
|
|
38895
|
+
noBorder = _ref.noBorder,
|
|
38896
|
+
customWidth = _ref.customWidth,
|
|
38897
|
+
isLoading = _ref.isLoading,
|
|
38898
|
+
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
38848
38899
|
children = _ref.children;
|
|
38849
38900
|
|
|
38850
38901
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
@@ -38861,7 +38912,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
38861
38912
|
alignItems: "center"
|
|
38862
38913
|
},
|
|
38863
38914
|
dialogStyle: {
|
|
38864
|
-
width: "615px"
|
|
38915
|
+
width: customWidth || "615px"
|
|
38865
38916
|
},
|
|
38866
38917
|
underlayClickExits: underlayClickExits
|
|
38867
38918
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -38870,7 +38921,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
38870
38921
|
boxShadow: "inset 0px -2px 0px 0px rgb(0, 80, 149)"
|
|
38871
38922
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
38872
38923
|
background: modalHeaderBg,
|
|
38873
|
-
padding: "
|
|
38924
|
+
padding: "1.5rem"
|
|
38874
38925
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
38875
38926
|
justify: "flex-start",
|
|
38876
38927
|
align: "center"
|
|
@@ -38879,13 +38930,13 @@ var Modal$1 = function Modal(_ref) {
|
|
|
38879
38930
|
weight: FONT_WEIGHT_SEMIBOLD
|
|
38880
38931
|
}, modalHeaderText))), /*#__PURE__*/React__default.createElement(Box, {
|
|
38881
38932
|
background: modalBodyBg,
|
|
38882
|
-
padding: "
|
|
38933
|
+
padding: "1.5rem"
|
|
38883
38934
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
38884
38935
|
childGap: "1.5rem"
|
|
38885
38936
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
38886
|
-
borderWidthOverride: "0 0 2px 0",
|
|
38887
|
-
borderColor: SILVER_GREY,
|
|
38888
|
-
padding: "0 0 1.5rem 0",
|
|
38937
|
+
borderWidthOverride: noBorder && "0 0 2px 0",
|
|
38938
|
+
borderColor: !noBorder && SILVER_GREY,
|
|
38939
|
+
padding: !noBorder && "0 0 1.5rem 0",
|
|
38889
38940
|
extraStyles: maxHeight ? "max-height: ".concat(maxHeight, "; overflow: auto;") : ""
|
|
38890
38941
|
}, defaultWrapper ? /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
38891
38942
|
variant: "p"
|
|
@@ -38893,33 +38944,63 @@ var Modal$1 = function Modal(_ref) {
|
|
|
38893
38944
|
padding: maxHeight ? "0 0 1rem 0" : "0"
|
|
38894
38945
|
}, modalBodyText)), /*#__PURE__*/React__default.createElement(Box, {
|
|
38895
38946
|
padding: "0"
|
|
38896
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
38947
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
38948
|
+
direction: "row",
|
|
38897
38949
|
justify: "flex-end",
|
|
38898
38950
|
align: "center",
|
|
38899
38951
|
childGap: "0rem"
|
|
38900
|
-
}, !onlyCloseButton ? /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
38901
|
-
|
|
38902
|
-
|
|
38952
|
+
}, !onlyCloseButton ? /*#__PURE__*/React__default.createElement(React.Fragment, null, isMobile ? /*#__PURE__*/React__default.createElement(Stack, {
|
|
38953
|
+
childGap: "1rem",
|
|
38954
|
+
direction: "row"
|
|
38955
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
38956
|
+
width: "100%",
|
|
38957
|
+
padding: "0"
|
|
38903
38958
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
38904
38959
|
variant: "secondary",
|
|
38905
38960
|
action: cancelAction ? cancelAction : hideModal,
|
|
38906
38961
|
text: cancelButtonText,
|
|
38907
|
-
dataQa: cancelButtonText
|
|
38962
|
+
dataQa: cancelButtonText,
|
|
38963
|
+
extraStyles: buttonExtraStyles,
|
|
38964
|
+
className: "modal-cancel-button"
|
|
38908
38965
|
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
38909
|
-
|
|
38910
|
-
|
|
38966
|
+
width: "100%",
|
|
38967
|
+
padding: "0"
|
|
38911
38968
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
38912
38969
|
variant: useDangerButton ? "danger" : "primary",
|
|
38913
38970
|
action: continueAction,
|
|
38914
38971
|
text: continueButtonText,
|
|
38915
|
-
dataQa: continueButtonText
|
|
38972
|
+
dataQa: continueButtonText,
|
|
38973
|
+
isLoading: isLoading,
|
|
38974
|
+
extraStyles: buttonExtraStyles,
|
|
38975
|
+
className: "modal-continue-button"
|
|
38976
|
+
}))) : /*#__PURE__*/React__default.createElement(Stack, {
|
|
38977
|
+
childGap: "1rem",
|
|
38978
|
+
direction: "row",
|
|
38979
|
+
justify: "flex-end"
|
|
38980
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
38981
|
+
variant: "secondary",
|
|
38982
|
+
action: cancelAction ? cancelAction : hideModal,
|
|
38983
|
+
text: cancelButtonText,
|
|
38984
|
+
dataQa: cancelButtonText,
|
|
38985
|
+
extraStyles: buttonExtraStyles,
|
|
38986
|
+
className: "modal-cancel-button"
|
|
38987
|
+
}), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
38988
|
+
variant: useDangerButton ? "danger" : "primary",
|
|
38989
|
+
action: continueAction,
|
|
38990
|
+
text: continueButtonText,
|
|
38991
|
+
dataQa: continueButtonText,
|
|
38992
|
+
isLoading: isLoading,
|
|
38993
|
+
extraStyles: buttonExtraStyles,
|
|
38994
|
+
className: "modal-continue-button"
|
|
38916
38995
|
}))) : /*#__PURE__*/React__default.createElement(Box, {
|
|
38917
38996
|
padding: "0.5rem"
|
|
38918
38997
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
38919
38998
|
action: hideModal,
|
|
38920
38999
|
variant: "primary",
|
|
38921
39000
|
text: "Close",
|
|
38922
|
-
dataQa: "Close"
|
|
39001
|
+
dataQa: "Close",
|
|
39002
|
+
extraStyles: buttonExtraStyles,
|
|
39003
|
+
className: "modal-cancel-button"
|
|
38923
39004
|
})))))))), children);
|
|
38924
39005
|
};
|
|
38925
39006
|
|
|
@@ -40929,7 +41010,7 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
40929
41010
|
},
|
|
40930
41011
|
type: "password"
|
|
40931
41012
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
40932
|
-
padding:
|
|
41013
|
+
padding: "0"
|
|
40933
41014
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|
|
40934
41015
|
password: fields.password,
|
|
40935
41016
|
isMobile: isMobile
|
|
@@ -41806,6 +41887,7 @@ exports.RejectedIcon = RejectedIcon;
|
|
|
41806
41887
|
exports.RejectedVelocityIcon = RejectedVelocityIcon;
|
|
41807
41888
|
exports.ResetConfirmationForm = ResetConfirmationForm$1;
|
|
41808
41889
|
exports.ResetPasswordForm = ResetPasswordForm;
|
|
41890
|
+
exports.ResetPasswordIcon = ResetPasswordIcon;
|
|
41809
41891
|
exports.ResetPasswordSuccess = ResetPasswordSuccess;
|
|
41810
41892
|
exports.RoutingNumberImage = RoutingNumberImage;
|
|
41811
41893
|
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",
|
|
@@ -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
|
};
|
|
@@ -63,7 +63,10 @@ const SearchableSelect = ({
|
|
|
63
63
|
key={value.name}
|
|
64
64
|
title={value.name}
|
|
65
65
|
name={value.name}
|
|
66
|
-
checked={
|
|
66
|
+
checked={
|
|
67
|
+
selectedItems?.find(item => item?.name === value?.name) ??
|
|
68
|
+
false
|
|
69
|
+
}
|
|
67
70
|
onChange={() => handleSelect(value)}
|
|
68
71
|
textExtraStyles={`margin: 0;`}
|
|
69
72
|
disabled={disabled}
|
|
@@ -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>
|