@thecb/components 4.5.2 → 4.6.1
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 +81 -18
- package/package.json +1 -1
- package/src/components/atoms/icons/CashIcon.js +21 -0
- package/src/components/atoms/icons/WarningIconXS.js +60 -0
- package/src/components/atoms/icons/index.js +5 -1
- package/src/components/molecules/internal-user-info-form/InternalUserInfoForm.js +1 -2
package/dist/index.cjs.js
CHANGED
|
@@ -15431,6 +15431,70 @@ var CheckIcon = function CheckIcon() {
|
|
|
15431
15431
|
})))))));
|
|
15432
15432
|
};
|
|
15433
15433
|
|
|
15434
|
+
var WarningIconXS = function WarningIconXS() {
|
|
15435
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
15436
|
+
width: "16px",
|
|
15437
|
+
height: "13px",
|
|
15438
|
+
viewBox: "0 0 16 13",
|
|
15439
|
+
version: "1.1",
|
|
15440
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15441
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
15442
|
+
"aria-labelledby": "#warning-restricted-item",
|
|
15443
|
+
role: "img"
|
|
15444
|
+
}, /*#__PURE__*/React__default.createElement("title", {
|
|
15445
|
+
id: "warning-restricted-item"
|
|
15446
|
+
}, "Warning: restricted items cannot be selected"), /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
|
|
15447
|
+
d: "M11.0106463,4.4659633 C11.3063934,4.63914978 11.5526739,4.88543032 11.7258604,5.18117739 L16.7999622,13.846119 C17.3581267,14.7992854 17.0379144,16.0244612 16.0847481,16.5826257 C15.7781918,16.762142 15.4293522,16.8567653 15.0741018,16.8567653 L4.92589823,16.8567653 C3.82132873,16.8567653 2.92589823,15.9613348 2.92589823,14.8567653 C2.92589823,14.5015149 3.02052159,14.1526753 3.20003784,13.846119 L8.27413962,5.18117739 C8.83230416,4.22801102 10.0574799,3.90779877 11.0106463,4.4659633 Z M10.6666667,13.3333333 L9.33333333,13.3333333 L9.33333333,14.6666667 L10.6666667,14.6666667 L10.6666667,13.3333333 Z M10.6666667,6.66666667 L9.33333333,6.66666667 L9.33333333,12 L10.6666667,12 L10.6666667,6.66666667 Z",
|
|
15448
|
+
id: "WarningIconXs-path-1"
|
|
15449
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
15450
|
+
id: "WarningIconXs-SRV-2647---Workflow-$0-Balance",
|
|
15451
|
+
stroke: "none",
|
|
15452
|
+
strokeWidth: "1",
|
|
15453
|
+
fill: "none",
|
|
15454
|
+
fillRule: "evenodd"
|
|
15455
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
15456
|
+
id: "WarningIconXs-11---Search-Results----Checked--Copy-6",
|
|
15457
|
+
transform: "translate(-135.000000, -483.000000)"
|
|
15458
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
15459
|
+
id: "WarningIconXs-Group",
|
|
15460
|
+
transform: "translate(133.000000, 479.000000)"
|
|
15461
|
+
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
15462
|
+
id: "WarningIconXs-mask-2",
|
|
15463
|
+
fill: "white"
|
|
15464
|
+
}, /*#__PURE__*/React__default.createElement("use", {
|
|
15465
|
+
xlinkHref: "#WarningIconXs-path-1"
|
|
15466
|
+
})), /*#__PURE__*/React__default.createElement("use", {
|
|
15467
|
+
id: "WarningIconXs-Mask",
|
|
15468
|
+
fill: "#B34A00",
|
|
15469
|
+
fillRule: "nonzero",
|
|
15470
|
+
xlinkHref: "#WarningIconXs-path-1"
|
|
15471
|
+
}), /*#__PURE__*/React__default.createElement("polygon", {
|
|
15472
|
+
id: "WarningIconXs-Path",
|
|
15473
|
+
fill: "#B34A00",
|
|
15474
|
+
fillRule: "nonzero",
|
|
15475
|
+
mask: "url(#WarningIconXs-mask-2)",
|
|
15476
|
+
points: "-2.84217094e-14 -4.26325641e-14 20 -4.26325641e-14 20 20 -2.84217094e-14 20"
|
|
15477
|
+
})))));
|
|
15478
|
+
};
|
|
15479
|
+
|
|
15480
|
+
var CashIcon = function CashIcon() {
|
|
15481
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
15482
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15483
|
+
width: "36",
|
|
15484
|
+
height: "24",
|
|
15485
|
+
fill: "none",
|
|
15486
|
+
viewBox: "0 0 36 24"
|
|
15487
|
+
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
15488
|
+
width: "36",
|
|
15489
|
+
height: "24",
|
|
15490
|
+
fill: "#E8FFEF",
|
|
15491
|
+
rx: "1"
|
|
15492
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
15493
|
+
fill: "#317D4F",
|
|
15494
|
+
d: "M17.178 5.464v1.372c-1.799.294-3.115 1.407-3.094 3.08.021 1.645 1.05 2.597 2.611 2.884l1.617.308c.924.182 1.365.406 1.365 1.085 0 .609-.553 1.092-1.484 1.092-1.036 0-1.743-.455-1.932-1.267l-2.478.021c.175 1.834 1.414 2.8 3.374 3.038v1.197h2.023V17.07c1.876-.266 3.024-1.33 3.024-2.877 0-1.617-.798-2.751-2.702-3.178l-1.603-.357c-.994-.231-1.267-.497-1.267-1.029 0-.546.511-1.015 1.596-1.015 1.015 0 1.302.511 1.393 1.267l2.415-.014c.05-1.484-1.043-2.695-2.835-3.024V5.464h-2.023z"
|
|
15495
|
+
}));
|
|
15496
|
+
};
|
|
15497
|
+
|
|
15434
15498
|
var color$2 = "#15749D";
|
|
15435
15499
|
var hoverColor$1 = "#116285";
|
|
15436
15500
|
var activeColor$1 = "#0E506D";
|
|
@@ -16096,19 +16160,10 @@ function _assertThisInitialized(self) {
|
|
|
16096
16160
|
return self;
|
|
16097
16161
|
}
|
|
16098
16162
|
|
|
16099
|
-
function _setPrototypeOf(o, p) {
|
|
16100
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
16101
|
-
o.__proto__ = p;
|
|
16102
|
-
return o;
|
|
16103
|
-
};
|
|
16104
|
-
|
|
16105
|
-
return _setPrototypeOf(o, p);
|
|
16106
|
-
}
|
|
16107
|
-
|
|
16108
16163
|
function _inheritsLoose(subClass, superClass) {
|
|
16109
16164
|
subClass.prototype = Object.create(superClass.prototype);
|
|
16110
16165
|
subClass.prototype.constructor = subClass;
|
|
16111
|
-
|
|
16166
|
+
subClass.__proto__ = superClass;
|
|
16112
16167
|
}
|
|
16113
16168
|
|
|
16114
16169
|
function _getPrototypeOf(o) {
|
|
@@ -16118,6 +16173,15 @@ function _getPrototypeOf(o) {
|
|
|
16118
16173
|
return _getPrototypeOf(o);
|
|
16119
16174
|
}
|
|
16120
16175
|
|
|
16176
|
+
function _setPrototypeOf(o, p) {
|
|
16177
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
16178
|
+
o.__proto__ = p;
|
|
16179
|
+
return o;
|
|
16180
|
+
};
|
|
16181
|
+
|
|
16182
|
+
return _setPrototypeOf(o, p);
|
|
16183
|
+
}
|
|
16184
|
+
|
|
16121
16185
|
function _isNativeFunction(fn) {
|
|
16122
16186
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
16123
16187
|
}
|
|
@@ -16128,7 +16192,7 @@ function _isNativeReflectConstruct() {
|
|
|
16128
16192
|
if (typeof Proxy === "function") return true;
|
|
16129
16193
|
|
|
16130
16194
|
try {
|
|
16131
|
-
|
|
16195
|
+
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
|
16132
16196
|
return true;
|
|
16133
16197
|
} catch (e) {
|
|
16134
16198
|
return false;
|
|
@@ -16268,9 +16332,7 @@ var ERRORS = {
|
|
|
16268
16332
|
"73": "Please provide a valid CSS variable.\n\n",
|
|
16269
16333
|
"74": "CSS variable not found and no default was provided.\n\n",
|
|
16270
16334
|
"75": "important requires a valid style object, got a %s instead.\n\n",
|
|
16271
|
-
"76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n
|
|
16272
|
-
"77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
|
|
16273
|
-
"78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
|
|
16335
|
+
"76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"
|
|
16274
16336
|
};
|
|
16275
16337
|
/**
|
|
16276
16338
|
* super basic version of sprintf
|
|
@@ -16612,7 +16674,7 @@ function parseToRgb(color) {
|
|
|
16612
16674
|
};
|
|
16613
16675
|
}
|
|
16614
16676
|
|
|
16615
|
-
var rgbaMatched = rgbaRegex.exec(normalizedColor
|
|
16677
|
+
var rgbaMatched = rgbaRegex.exec(normalizedColor);
|
|
16616
16678
|
|
|
16617
16679
|
if (rgbaMatched) {
|
|
16618
16680
|
return {
|
|
@@ -16643,7 +16705,7 @@ function parseToRgb(color) {
|
|
|
16643
16705
|
};
|
|
16644
16706
|
}
|
|
16645
16707
|
|
|
16646
|
-
var hslaMatched = hslaRegex.exec(normalizedColor
|
|
16708
|
+
var hslaMatched = hslaRegex.exec(normalizedColor);
|
|
16647
16709
|
|
|
16648
16710
|
if (hslaMatched) {
|
|
16649
16711
|
var _hue = parseInt("" + hslaMatched[1], 10);
|
|
@@ -37876,7 +37938,6 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
37876
37938
|
roleDisabled = _ref.roleDisabled,
|
|
37877
37939
|
selectionDisabled = _ref.selectionDisabled,
|
|
37878
37940
|
formType = _ref.formType,
|
|
37879
|
-
isOktaUser = _ref.isOktaUser,
|
|
37880
37941
|
openChangePasswordForm = _ref.openChangePasswordForm,
|
|
37881
37942
|
firstName = _ref.firstName,
|
|
37882
37943
|
lastName = _ref.lastName;
|
|
@@ -37994,7 +38055,7 @@ var InternalUserInfoForm = function InternalUserInfoForm(_ref) {
|
|
|
37994
38055
|
return e.key === "Enter" && handleSubmit(e);
|
|
37995
38056
|
},
|
|
37996
38057
|
disabled: emailDisabled
|
|
37997
|
-
}), formType === PROFILE &&
|
|
38058
|
+
}), formType === PROFILE && /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
37998
38059
|
labelTextWhenNoError: "Password",
|
|
37999
38060
|
errorMessages: {},
|
|
38000
38061
|
field: {
|
|
@@ -42275,6 +42336,7 @@ exports.ButtonWithAction = ButtonWithAction;
|
|
|
42275
42336
|
exports.ButtonWithLink = ButtonWithLink;
|
|
42276
42337
|
exports.CalendarIcon = CalendarIcon;
|
|
42277
42338
|
exports.CarrotIcon = CarrotIcon$1;
|
|
42339
|
+
exports.CashIcon = CashIcon;
|
|
42278
42340
|
exports.Center = Center;
|
|
42279
42341
|
exports.CenterSingle = CenterSingle$1;
|
|
42280
42342
|
exports.CenterStack = CenterStack$1;
|
|
@@ -42408,6 +42470,7 @@ exports.TypeaheadInput = TypeaheadInput;
|
|
|
42408
42470
|
exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
|
|
42409
42471
|
exports.VoidedIcon = VoidedIcon;
|
|
42410
42472
|
exports.WalletIcon = WalletIcon$1;
|
|
42473
|
+
exports.WarningIconXS = WarningIconXS;
|
|
42411
42474
|
exports.WelcomeModule = WelcomeModule$1;
|
|
42412
42475
|
exports.WorkflowTile = WorkflowTile;
|
|
42413
42476
|
exports.cardRegistry = cardRegistry;
|
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
const CashIcon = () => {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width="36"
|
|
8
|
+
height="24"
|
|
9
|
+
fill="none"
|
|
10
|
+
viewBox="0 0 36 24"
|
|
11
|
+
>
|
|
12
|
+
<rect width="36" height="24" fill="#E8FFEF" rx="1"></rect>
|
|
13
|
+
<path
|
|
14
|
+
fill="#317D4F"
|
|
15
|
+
d="M17.178 5.464v1.372c-1.799.294-3.115 1.407-3.094 3.08.021 1.645 1.05 2.597 2.611 2.884l1.617.308c.924.182 1.365.406 1.365 1.085 0 .609-.553 1.092-1.484 1.092-1.036 0-1.743-.455-1.932-1.267l-2.478.021c.175 1.834 1.414 2.8 3.374 3.038v1.197h2.023V17.07c1.876-.266 3.024-1.33 3.024-2.877 0-1.617-.798-2.751-2.702-3.178l-1.603-.357c-.994-.231-1.267-.497-1.267-1.029 0-.546.511-1.015 1.596-1.015 1.015 0 1.302.511 1.393 1.267l2.415-.014c.05-1.484-1.043-2.695-2.835-3.024V5.464h-2.023z"
|
|
16
|
+
></path>
|
|
17
|
+
</svg>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default CashIcon;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
const WarningIconXS = () => (
|
|
4
|
+
<svg
|
|
5
|
+
width="16px"
|
|
6
|
+
height="13px"
|
|
7
|
+
viewBox="0 0 16 13"
|
|
8
|
+
version="1.1"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
11
|
+
aria-labelledby="#warning-restricted-item"
|
|
12
|
+
role="img"
|
|
13
|
+
>
|
|
14
|
+
<title id="warning-restricted-item">
|
|
15
|
+
Warning: restricted items cannot be selected
|
|
16
|
+
</title>
|
|
17
|
+
<defs>
|
|
18
|
+
<path
|
|
19
|
+
d="M11.0106463,4.4659633 C11.3063934,4.63914978 11.5526739,4.88543032 11.7258604,5.18117739 L16.7999622,13.846119 C17.3581267,14.7992854 17.0379144,16.0244612 16.0847481,16.5826257 C15.7781918,16.762142 15.4293522,16.8567653 15.0741018,16.8567653 L4.92589823,16.8567653 C3.82132873,16.8567653 2.92589823,15.9613348 2.92589823,14.8567653 C2.92589823,14.5015149 3.02052159,14.1526753 3.20003784,13.846119 L8.27413962,5.18117739 C8.83230416,4.22801102 10.0574799,3.90779877 11.0106463,4.4659633 Z M10.6666667,13.3333333 L9.33333333,13.3333333 L9.33333333,14.6666667 L10.6666667,14.6666667 L10.6666667,13.3333333 Z M10.6666667,6.66666667 L9.33333333,6.66666667 L9.33333333,12 L10.6666667,12 L10.6666667,6.66666667 Z"
|
|
20
|
+
id="WarningIconXs-path-1"
|
|
21
|
+
></path>
|
|
22
|
+
</defs>
|
|
23
|
+
<g
|
|
24
|
+
id="WarningIconXs-SRV-2647---Workflow-$0-Balance"
|
|
25
|
+
stroke="none"
|
|
26
|
+
strokeWidth="1"
|
|
27
|
+
fill="none"
|
|
28
|
+
fillRule="evenodd"
|
|
29
|
+
>
|
|
30
|
+
<g
|
|
31
|
+
id="WarningIconXs-11---Search-Results----Checked--Copy-6"
|
|
32
|
+
transform="translate(-135.000000, -483.000000)"
|
|
33
|
+
>
|
|
34
|
+
<g
|
|
35
|
+
id="WarningIconXs-Group"
|
|
36
|
+
transform="translate(133.000000, 479.000000)"
|
|
37
|
+
>
|
|
38
|
+
<mask id="WarningIconXs-mask-2" fill="white">
|
|
39
|
+
<use xlinkHref="#WarningIconXs-path-1"></use>
|
|
40
|
+
</mask>
|
|
41
|
+
<use
|
|
42
|
+
id="WarningIconXs-Mask"
|
|
43
|
+
fill="#B34A00"
|
|
44
|
+
fillRule="nonzero"
|
|
45
|
+
xlinkHref="#WarningIconXs-path-1"
|
|
46
|
+
></use>
|
|
47
|
+
<polygon
|
|
48
|
+
id="WarningIconXs-Path"
|
|
49
|
+
fill="#B34A00"
|
|
50
|
+
fillRule="nonzero"
|
|
51
|
+
mask="url(#WarningIconXs-mask-2)"
|
|
52
|
+
points="-2.84217094e-14 -4.26325641e-14 20 -4.26325641e-14 20 20 -2.84217094e-14 20"
|
|
53
|
+
></polygon>
|
|
54
|
+
</g>
|
|
55
|
+
</g>
|
|
56
|
+
</g>
|
|
57
|
+
</svg>
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
export default WarningIconXS;
|
|
@@ -53,6 +53,8 @@ import PaymentSearchIcon from "./PaymentSearchIcon";
|
|
|
53
53
|
import ResetPasswordIcon from "./ResetPasswordIcon";
|
|
54
54
|
import PeriscopeFailedIcon from "./PeriscopeFailedIcon";
|
|
55
55
|
import CheckIcon from "./CheckIcon";
|
|
56
|
+
import WarningIconXS from "./WarningIconXS";
|
|
57
|
+
import CashIcon from "./CashIcon";
|
|
56
58
|
|
|
57
59
|
export {
|
|
58
60
|
AccountsIcon,
|
|
@@ -109,5 +111,7 @@ export {
|
|
|
109
111
|
PaymentSearchIcon,
|
|
110
112
|
ResetPasswordIcon,
|
|
111
113
|
PeriscopeFailedIcon,
|
|
112
|
-
CheckIcon
|
|
114
|
+
CheckIcon,
|
|
115
|
+
WarningIconXS,
|
|
116
|
+
CashIcon
|
|
113
117
|
};
|
|
@@ -52,7 +52,6 @@ const InternalUserInfoForm = ({
|
|
|
52
52
|
roleDisabled,
|
|
53
53
|
selectionDisabled,
|
|
54
54
|
formType,
|
|
55
|
-
isOktaUser,
|
|
56
55
|
openChangePasswordForm,
|
|
57
56
|
firstName,
|
|
58
57
|
lastName
|
|
@@ -172,7 +171,7 @@ const InternalUserInfoForm = ({
|
|
|
172
171
|
onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
|
|
173
172
|
disabled={emailDisabled}
|
|
174
173
|
/>
|
|
175
|
-
{formType === PROFILE &&
|
|
174
|
+
{formType === PROFILE && (
|
|
176
175
|
<FormInput
|
|
177
176
|
labelTextWhenNoError="Password"
|
|
178
177
|
errorMessages={{}}
|