@thecb/components 4.3.9 → 4.3.12
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 +58 -7
- package/package.json +1 -1
- 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/internal-user-info-form/InternalUserInfoForm.js +5 -2
- package/src/components/molecules/reset-password-form/ResetPasswordForm.js +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -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
|
},
|
|
@@ -37363,6 +37410,7 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
37363
37410
|
selectAgency = _ref.selectAgency,
|
|
37364
37411
|
roleOptions = _ref.roleOptions,
|
|
37365
37412
|
clientOptions = _ref.clientOptions,
|
|
37413
|
+
namesDisabled = _ref.namesDisabled,
|
|
37366
37414
|
emailDisabled = _ref.emailDisabled,
|
|
37367
37415
|
roleDisabled = _ref.roleDisabled,
|
|
37368
37416
|
selectionDisabled = _ref.selectionDisabled,
|
|
@@ -37396,7 +37444,7 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
37396
37444
|
|
|
37397
37445
|
var lastNameErrorMessages = _defineProperty({}, required.error, "Last name is required");
|
|
37398
37446
|
|
|
37399
|
-
var emailErrorMessages = _defineProperty({},
|
|
37447
|
+
var emailErrorMessages = _defineProperty({}, isProbablyEmail.error, "Invalid email address");
|
|
37400
37448
|
|
|
37401
37449
|
var roleErrorMessages = _defineProperty({}, required.error, "Role is required");
|
|
37402
37450
|
|
|
@@ -37463,7 +37511,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
37463
37511
|
showErrors: showErrors,
|
|
37464
37512
|
onKeyDown: function onKeyDown(e) {
|
|
37465
37513
|
return e.key === "Enter" && handleSubmit(e);
|
|
37466
|
-
}
|
|
37514
|
+
},
|
|
37515
|
+
disabled: namesDisabled
|
|
37467
37516
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
37468
37517
|
labelTextWhenNoError: "Last Name",
|
|
37469
37518
|
errorMessages: lastNameErrorMessages,
|
|
@@ -37472,7 +37521,8 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
37472
37521
|
showErrors: showErrors,
|
|
37473
37522
|
onKeyDown: function onKeyDown(e) {
|
|
37474
37523
|
return e.key === "Enter" && handleSubmit(e);
|
|
37475
|
-
}
|
|
37524
|
+
},
|
|
37525
|
+
disabled: namesDisabled
|
|
37476
37526
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
37477
37527
|
labelTextWhenNoError: "Email",
|
|
37478
37528
|
errorMessages: emailErrorMessages,
|
|
@@ -40963,7 +41013,7 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
|
|
|
40963
41013
|
},
|
|
40964
41014
|
type: "password"
|
|
40965
41015
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
40966
|
-
padding:
|
|
41016
|
+
padding: "0"
|
|
40967
41017
|
}, /*#__PURE__*/React__default.createElement(PasswordRequirements, {
|
|
40968
41018
|
password: fields.password,
|
|
40969
41019
|
isMobile: isMobile
|
|
@@ -41840,6 +41890,7 @@ exports.RejectedIcon = RejectedIcon;
|
|
|
41840
41890
|
exports.RejectedVelocityIcon = RejectedVelocityIcon;
|
|
41841
41891
|
exports.ResetConfirmationForm = ResetConfirmationForm$1;
|
|
41842
41892
|
exports.ResetPasswordForm = ResetPasswordForm;
|
|
41893
|
+
exports.ResetPasswordIcon = ResetPasswordIcon;
|
|
41843
41894
|
exports.ResetPasswordSuccess = ResetPasswordSuccess;
|
|
41844
41895
|
exports.RoutingNumberImage = RoutingNumberImage;
|
|
41845
41896
|
exports.SearchIcon = SearchIcon;
|
package/package.json
CHANGED
|
@@ -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}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect } from "react";
|
|
2
|
-
import { required } from "redux-freeform";
|
|
2
|
+
import { required, isProbablyEmail } from "redux-freeform";
|
|
3
3
|
import { Stack, Box, Cluster } from "../../atoms/layouts";
|
|
4
4
|
import ButtonWithAction from "../../atoms/button-with-action";
|
|
5
5
|
import Heading from "../../atoms/heading";
|
|
@@ -47,6 +47,7 @@ const InternalUserInfoForm = ({
|
|
|
47
47
|
selectAgency,
|
|
48
48
|
roleOptions,
|
|
49
49
|
clientOptions,
|
|
50
|
+
namesDisabled,
|
|
50
51
|
emailDisabled,
|
|
51
52
|
roleDisabled,
|
|
52
53
|
selectionDisabled,
|
|
@@ -78,7 +79,7 @@ const InternalUserInfoForm = ({
|
|
|
78
79
|
[required.error]: "Last name is required"
|
|
79
80
|
};
|
|
80
81
|
const emailErrorMessages = {
|
|
81
|
-
[
|
|
82
|
+
[isProbablyEmail.error]: "Invalid email address"
|
|
82
83
|
};
|
|
83
84
|
const roleErrorMessages = {
|
|
84
85
|
[required.error]: "Role is required"
|
|
@@ -151,6 +152,7 @@ const InternalUserInfoForm = ({
|
|
|
151
152
|
fieldActions={actions.fields.firstName}
|
|
152
153
|
showErrors={showErrors}
|
|
153
154
|
onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
|
|
155
|
+
disabled={namesDisabled}
|
|
154
156
|
/>
|
|
155
157
|
<FormInput
|
|
156
158
|
labelTextWhenNoError="Last Name"
|
|
@@ -159,6 +161,7 @@ const InternalUserInfoForm = ({
|
|
|
159
161
|
fieldActions={actions.fields.lastName}
|
|
160
162
|
showErrors={showErrors}
|
|
161
163
|
onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
|
|
164
|
+
disabled={namesDisabled}
|
|
162
165
|
/>
|
|
163
166
|
<FormInput
|
|
164
167
|
labelTextWhenNoError="Email"
|
|
@@ -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>
|