@thecb/components 6.2.6 → 6.2.9
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 -82
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +58 -82
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/icons/GenericCard.js +16 -28
- package/src/components/atoms/icons/GenericCardLarge.js +17 -27
- package/src/components/atoms/welcome-card/index.js +6 -6
- package/src/components/withWindowSize.js +1 -14
- package/src/util/general.js +14 -0
package/dist/index.cjs.js
CHANGED
|
@@ -6304,6 +6304,20 @@ var checkDeniedCards = function checkDeniedCards(name) {
|
|
|
6304
6304
|
var screenReaderOnlyStyle = "\n position: absolute;\n left: -10000px;\n top: auto;\n width: 1px;\n height: 1px;\n overflow: hidden;\n";
|
|
6305
6305
|
var inputPlaceholderTextStyle = "\n ::-webkit-input-placeholder {\n color: ".concat(CHARADE_GREY, ";\n }\n ::-moz-placeholder {\n color: ").concat(CHARADE_GREY, ";\n }\n ::-ms-placeholder {\n color: ").concat(CHARADE_GREY, ";\n }\n ::placeholder {\n color: ").concat(CHARADE_GREY, ";\n }\n");
|
|
6306
6306
|
var inputDisabledStyle = "\n color: #6e727e;\n background-color: #f7f7f7;\n pointer-events: none;\n";
|
|
6307
|
+
var MOBILE_WIDTH = 768;
|
|
6308
|
+
var throttle = function throttle(delay, fn) {
|
|
6309
|
+
var lastCall = 0;
|
|
6310
|
+
return function () {
|
|
6311
|
+
var now = new Date().getTime();
|
|
6312
|
+
|
|
6313
|
+
if (now - lastCall < delay) {
|
|
6314
|
+
return;
|
|
6315
|
+
}
|
|
6316
|
+
|
|
6317
|
+
lastCall = now;
|
|
6318
|
+
return fn.apply(void 0, arguments);
|
|
6319
|
+
};
|
|
6320
|
+
};
|
|
6307
6321
|
|
|
6308
6322
|
var general = /*#__PURE__*/Object.freeze({
|
|
6309
6323
|
__proto__: null,
|
|
@@ -6319,7 +6333,9 @@ var general = /*#__PURE__*/Object.freeze({
|
|
|
6319
6333
|
checkDeniedCards: checkDeniedCards,
|
|
6320
6334
|
screenReaderOnlyStyle: screenReaderOnlyStyle,
|
|
6321
6335
|
inputPlaceholderTextStyle: inputPlaceholderTextStyle,
|
|
6322
|
-
inputDisabledStyle: inputDisabledStyle
|
|
6336
|
+
inputDisabledStyle: inputDisabledStyle,
|
|
6337
|
+
MOBILE_WIDTH: MOBILE_WIDTH,
|
|
6338
|
+
throttle: throttle
|
|
6323
6339
|
});
|
|
6324
6340
|
|
|
6325
6341
|
var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
|
|
@@ -13738,42 +13754,27 @@ var BankIcon = function BankIcon() {
|
|
|
13738
13754
|
|
|
13739
13755
|
var GenericCard = function GenericCard() {
|
|
13740
13756
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13741
|
-
width: "28px",
|
|
13742
|
-
height: "18px",
|
|
13743
|
-
viewBox: "0 0 28 18",
|
|
13744
|
-
version: "1.1",
|
|
13745
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13746
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
13747
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13748
|
-
stroke: "none",
|
|
13749
|
-
strokeWidth: "1",
|
|
13750
|
-
fill: "none",
|
|
13751
|
-
fillRule: "evenodd"
|
|
13752
|
-
}, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("rect", {
|
|
13753
|
-
id: "bg",
|
|
13754
|
-
fill: "#CACED8",
|
|
13755
|
-
x: "0",
|
|
13756
|
-
y: "0",
|
|
13757
13757
|
width: "28",
|
|
13758
13758
|
height: "18",
|
|
13759
|
-
|
|
13760
|
-
|
|
13761
|
-
|
|
13762
|
-
fill: "#6D717E"
|
|
13759
|
+
viewBox: "0 0 28 18",
|
|
13760
|
+
fill: "none",
|
|
13761
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
13763
13762
|
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
13764
|
-
id: "Rectangle-Copy-7",
|
|
13765
|
-
x: "0",
|
|
13766
|
-
y: "0",
|
|
13767
13763
|
width: "28",
|
|
13768
|
-
height: "
|
|
13769
|
-
|
|
13770
|
-
|
|
13771
|
-
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
})
|
|
13764
|
+
height: "18",
|
|
13765
|
+
rx: "2",
|
|
13766
|
+
fill: "#15749D"
|
|
13767
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
13768
|
+
fillRule: "evenodd",
|
|
13769
|
+
clipRule: "evenodd",
|
|
13770
|
+
d: "M3.86108 13C3.44687 13 3.11108 13.3358 3.11108 13.75C3.11108 14.1642 3.44687 14.5 3.86108 14.5H7.80553C8.21974 14.5 8.55553 14.1642 8.55553 13.75C8.55553 13.3358 8.21974 13 7.80553 13H3.86108ZM10.8611 13C10.4469 13 10.1111 13.3358 10.1111 13.75C10.1111 14.1642 10.4469 14.5 10.8611 14.5H17.9166C18.3309 14.5 18.6666 14.1642 18.6666 13.75C18.6666 13.3358 18.3309 13 17.9166 13H10.8611Z",
|
|
13771
|
+
fill: "#E4F4FD"
|
|
13772
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
13773
|
+
fillRule: "evenodd",
|
|
13774
|
+
clipRule: "evenodd",
|
|
13775
|
+
d: "M20.2223 5.25V6.75H18.6667V6.25C18.6667 5.69772 19.1145 5.25 19.6667 5.25H20.2223ZM20.4723 5.25V6.75H22.3056V5.25H22.5556V6.75H24.1109V7H22.5556V8.25L24.1109 8.25V8.5L22.5556 8.5V9.74999L23.1111 9.74999C23.6634 9.74999 24.1111 9.30228 24.1111 8.74999V6.25C24.1111 5.69772 23.6634 5.25 23.1111 5.25H20.4723ZM22.3056 9.74999V8.5L20.4723 8.49999V9.74999L22.3056 9.74999ZM20.2223 9.74999V8.49999L18.6667 8.49999V8.74999C18.6667 9.30228 19.1145 9.74999 19.6667 9.74999H20.2223ZM18.6667 8.24999L20.2223 8.24999V7H18.6667V8.24999ZM20.4723 8.24999V7H22.3056V8.25L20.4723 8.24999Z",
|
|
13776
|
+
fill: "#F4C932"
|
|
13777
|
+
}));
|
|
13777
13778
|
};
|
|
13778
13779
|
|
|
13779
13780
|
var BankItemWrapper = styled__default.div.withConfig({
|
|
@@ -14907,36 +14908,27 @@ var ProfileIcon$1 = themeComponent(ProfileIcon, "Icons", fallbackValues$2, "info
|
|
|
14907
14908
|
|
|
14908
14909
|
var GenericCardLarge = function GenericCardLarge() {
|
|
14909
14910
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
14910
|
-
|
|
14911
|
-
|
|
14912
|
-
|
|
14913
|
-
viewBox: "0 0 34 28"
|
|
14914
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14911
|
+
width: "36",
|
|
14912
|
+
height: "24",
|
|
14913
|
+
viewBox: "0 0 36 24",
|
|
14915
14914
|
fill: "none",
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
|
|
14919
|
-
|
|
14920
|
-
|
|
14921
|
-
|
|
14922
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14923
|
-
transform: "translate(94 518)"
|
|
14924
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14925
|
-
transform: "translate(24 350)"
|
|
14926
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14927
|
-
transform: "translate(0 35)"
|
|
14928
|
-
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14929
|
-
transform: "translate(24 24)"
|
|
14930
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
14931
|
-
fill: "#CACED8",
|
|
14932
|
-
d: "M29.259.699H3.282C1.497.699.035 2.217.035 4.074v20.25c0 1.856 1.462 3.375 3.247 3.375H29.26c1.786 0 3.247-1.52 3.247-3.375V4.074c0-1.857-1.461-3.375-3.247-3.375z"
|
|
14915
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
14916
|
+
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
14917
|
+
width: "36",
|
|
14918
|
+
height: "24",
|
|
14919
|
+
rx: "2",
|
|
14920
|
+
fill: "#15749D"
|
|
14933
14921
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
14934
|
-
|
|
14935
|
-
|
|
14922
|
+
fillRule: "evenodd",
|
|
14923
|
+
clipRule: "evenodd",
|
|
14924
|
+
d: "M5 17.3333C4.44772 17.3333 4 17.781 4 18.3333C4 18.8856 4.44772 19.3333 5 19.3333H10C10.5523 19.3333 11 18.8856 11 18.3333C11 17.781 10.5523 17.3333 10 17.3333H5ZM14 17.3333C13.4477 17.3333 13 17.781 13 18.3333C13 18.8856 13.4477 19.3333 14 19.3333H23C23.5523 19.3333 24 18.8856 24 18.3333C24 17.781 23.5523 17.3333 23 17.3333H14Z",
|
|
14925
|
+
fill: "#E4F4FD"
|
|
14936
14926
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
14937
|
-
|
|
14938
|
-
|
|
14939
|
-
|
|
14927
|
+
fillRule: "evenodd",
|
|
14928
|
+
clipRule: "evenodd",
|
|
14929
|
+
d: "M26.0357 7V9.04167H24V8C24 7.44771 24.4477 7 25 7H26.0357ZM26.2857 7V9.04167H28.7142V7H28.9642V9.04167H30.9997V9.29167H28.9642V11.0417L30.9997 11.0417L30.9997 11.2917L28.9642 11.2917V13L29.9999 13C30.5522 13 30.9999 12.5523 30.9999 12V8C30.9999 7.44772 30.5522 7 29.9999 7H26.2857ZM28.7142 13V11.2917L26.2857 11.2917V13L28.7142 13ZM26.0357 13V11.2917L24 11.2917V12C24 12.5523 24.4477 13 25 13L26.0357 13ZM24 11.0417L26.0357 11.0417V9.29167H24V11.0417ZM26.2857 11.0417V9.29167H28.7142V11.0417L26.2857 11.0417Z",
|
|
14930
|
+
fill: "#F4C932"
|
|
14931
|
+
}));
|
|
14940
14932
|
};
|
|
14941
14933
|
|
|
14942
14934
|
var EmptyCartIcon = function EmptyCartIcon(_ref) {
|
|
@@ -19065,22 +19057,6 @@ var fallbackValues$b = {
|
|
|
19065
19057
|
iconBackgroundColor: iconBackgroundColor
|
|
19066
19058
|
};
|
|
19067
19059
|
|
|
19068
|
-
var MOBILE_WIDTH = 768;
|
|
19069
|
-
|
|
19070
|
-
var throttle = function throttle(delay, fn) {
|
|
19071
|
-
var lastCall = 0;
|
|
19072
|
-
return function () {
|
|
19073
|
-
var now = new Date().getTime();
|
|
19074
|
-
|
|
19075
|
-
if (now - lastCall < delay) {
|
|
19076
|
-
return;
|
|
19077
|
-
}
|
|
19078
|
-
|
|
19079
|
-
lastCall = now;
|
|
19080
|
-
return fn.apply(void 0, arguments);
|
|
19081
|
-
};
|
|
19082
|
-
};
|
|
19083
|
-
|
|
19084
19060
|
var withWindowSize = function withWindowSize(Child) {
|
|
19085
19061
|
return function (_ref) {
|
|
19086
19062
|
var props = _extends({}, _ref);
|
|
@@ -19225,8 +19201,8 @@ var cardRegistry = {
|
|
|
19225
19201
|
accounts: function accounts(props) {
|
|
19226
19202
|
return /*#__PURE__*/React__default.createElement(Card$1, _extends({
|
|
19227
19203
|
icon: "accounts",
|
|
19228
|
-
heading: "
|
|
19229
|
-
buttonText: "
|
|
19204
|
+
heading: "Find Your Account",
|
|
19205
|
+
buttonText: "Find Account",
|
|
19230
19206
|
text: "Find and attach your accounts to make your payments simple.",
|
|
19231
19207
|
cardAction: "/profile/accounts"
|
|
19232
19208
|
}, props));
|
|
@@ -19234,8 +19210,8 @@ var cardRegistry = {
|
|
|
19234
19210
|
properties: function properties(props) {
|
|
19235
19211
|
return /*#__PURE__*/React__default.createElement(Card$1, _extends({
|
|
19236
19212
|
icon: "properties",
|
|
19237
|
-
heading: "
|
|
19238
|
-
buttonText: "
|
|
19213
|
+
heading: "Find Your Property",
|
|
19214
|
+
buttonText: "Find Property",
|
|
19239
19215
|
text: "Find and attach your properties to make your tax payments simple.",
|
|
19240
19216
|
cardAction: "/profile/properties"
|
|
19241
19217
|
}, props));
|
|
@@ -19243,8 +19219,8 @@ var cardRegistry = {
|
|
|
19243
19219
|
payment: function payment(props) {
|
|
19244
19220
|
return /*#__PURE__*/React__default.createElement(Card$1, _extends({
|
|
19245
19221
|
icon: "payment",
|
|
19246
|
-
heading: "
|
|
19247
|
-
buttonText: "
|
|
19222
|
+
heading: "Manage Your Wallet",
|
|
19223
|
+
buttonText: "Go to Wallet",
|
|
19248
19224
|
text: "Add your personal information and payment methods to make fast payments.",
|
|
19249
19225
|
cardAction: "/profile/settings"
|
|
19250
19226
|
}, props));
|