@thecb/components 4.2.7-beta.8 → 4.2.8-beta.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 +103 -3
- package/package.json +1 -1
- package/src/components/atoms/icons/IconQuitLarge.js +61 -0
- package/src/components/atoms/icons/TrashIcon.js +47 -0
- package/src/components/atoms/icons/index.js +5 -1
- package/src/components/atoms/jumbo/Jumbo.js +8 -1
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +3 -2
package/dist/index.cjs.js
CHANGED
|
@@ -13775,6 +13775,56 @@ var IconAdd = function IconAdd() {
|
|
|
13775
13775
|
}))))));
|
|
13776
13776
|
};
|
|
13777
13777
|
|
|
13778
|
+
var IconQuitLarge = function IconQuitLarge(_ref) {
|
|
13779
|
+
var _ref$fill = _ref.fill,
|
|
13780
|
+
fill = _ref$fill === void 0 ? "#091325" : _ref$fill;
|
|
13781
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13782
|
+
width: "14px",
|
|
13783
|
+
height: "14px",
|
|
13784
|
+
viewBox: "0 0 14 14",
|
|
13785
|
+
version: "1.1",
|
|
13786
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13787
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
13788
|
+
}, /*#__PURE__*/React__default.createElement("title", null, "Icon/X"), /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("polygon", {
|
|
13789
|
+
id: "quit-large-path-1",
|
|
13790
|
+
points: "18.9999989 6.40999946 17.589999 4.9999997 11.9999993 10.5899995 6.40999946 4.9999997 4.9999997 6.40999946 10.5899995 11.9999993 4.9999997 17.589999 6.40999946 18.9999989 11.9999993 13.409999 17.589999 18.9999989 18.9999989 17.589999 13.409999 11.9999993"
|
|
13791
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
13792
|
+
id: "quit-large-[D]-Cart---Slideout",
|
|
13793
|
+
stroke: "none",
|
|
13794
|
+
strokeWidth: "1",
|
|
13795
|
+
fill: "none",
|
|
13796
|
+
fillRule: "evenodd"
|
|
13797
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13798
|
+
id: "quit-large-[D]-Cart-Slideout---Standard",
|
|
13799
|
+
transform: "translate(-741.000000, -34.000000)"
|
|
13800
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13801
|
+
id: "quit-large-Close-Icon",
|
|
13802
|
+
transform: "translate(724.000000, 17.000000)"
|
|
13803
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13804
|
+
id: "quit-large-Group",
|
|
13805
|
+
transform: "translate(12.000000, 12.000000)"
|
|
13806
|
+
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
13807
|
+
id: "quit-large-mask-2",
|
|
13808
|
+
fill: "white"
|
|
13809
|
+
}, /*#__PURE__*/React__default.createElement("use", {
|
|
13810
|
+
xlinkHref: "#quit-large-path-1"
|
|
13811
|
+
})), /*#__PURE__*/React__default.createElement("use", {
|
|
13812
|
+
id: "quit-large-Fill-2",
|
|
13813
|
+
fill: fill,
|
|
13814
|
+
xlinkHref: "#quit-large-path-1"
|
|
13815
|
+
}), /*#__PURE__*/React__default.createElement("g", {
|
|
13816
|
+
mask: "url(#quit-large-mask-2)",
|
|
13817
|
+
fill: fill,
|
|
13818
|
+
id: "quit-large-\u2B91\uD83C\uDFA8"
|
|
13819
|
+
}, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("rect", {
|
|
13820
|
+
id: "quit-large-\u279D\u270F\uFE0F",
|
|
13821
|
+
x: "0",
|
|
13822
|
+
y: "0",
|
|
13823
|
+
width: "24",
|
|
13824
|
+
height: "24"
|
|
13825
|
+
}))))))));
|
|
13826
|
+
};
|
|
13827
|
+
|
|
13778
13828
|
var TimeoutImage = function TimeoutImage() {
|
|
13779
13829
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13780
13830
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -14855,6 +14905,45 @@ var ShoppingCartIcon = function ShoppingCartIcon() {
|
|
|
14855
14905
|
})))));
|
|
14856
14906
|
};
|
|
14857
14907
|
|
|
14908
|
+
var TrashIcon = function TrashIcon(_ref) {
|
|
14909
|
+
var themeValues = _ref.themeValues;
|
|
14910
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
14911
|
+
width: "20px",
|
|
14912
|
+
height: "20px",
|
|
14913
|
+
viewBox: "0 0 20 20",
|
|
14914
|
+
version: "1.1",
|
|
14915
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14916
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
14917
|
+
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
|
|
14918
|
+
d: "M15,7 L14,15.5714286 C14,16.3571429 13.25,17 12.3333333,17 L12.3333333,17 L7.66666667,17 C6.75,17 6,16.3571429 6,15.5714286 L6,15.5714286 L5,7 L15,7 Z M12.1428571,3 L13,4 L16,4 L16,6 L4,6 L4,4 L7,4 L7.85714286,3 L12.1428571,3 Z",
|
|
14919
|
+
id: "trash-path-1"
|
|
14920
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
14921
|
+
id: "trash-Icons-/-Small-/-20px-S-/-Trash---Mobile---20px",
|
|
14922
|
+
stroke: "none",
|
|
14923
|
+
strokeWidth: "1",
|
|
14924
|
+
fill: "none",
|
|
14925
|
+
fillRule: "evenodd"
|
|
14926
|
+
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
14927
|
+
id: "trash-mask-2",
|
|
14928
|
+
fill: "white"
|
|
14929
|
+
}, /*#__PURE__*/React__default.createElement("use", {
|
|
14930
|
+
xlinkHref: "#trash-path-1"
|
|
14931
|
+
})), /*#__PURE__*/React__default.createElement("use", {
|
|
14932
|
+
id: "trash-Mask",
|
|
14933
|
+
fill: themeValues.singleIconColor,
|
|
14934
|
+
fillRule: "nonzero",
|
|
14935
|
+
xlinkHref: "#trash-path-1"
|
|
14936
|
+
}), /*#__PURE__*/React__default.createElement("polygon", {
|
|
14937
|
+
id: "trash-Path",
|
|
14938
|
+
fill: themeValues.singleIconColor,
|
|
14939
|
+
fillRule: "nonzero",
|
|
14940
|
+
mask: "url(#trash-mask-2)",
|
|
14941
|
+
points: "0 0 20 0 20 20 0 20"
|
|
14942
|
+
})));
|
|
14943
|
+
};
|
|
14944
|
+
|
|
14945
|
+
var TrashIcon$1 = themeComponent(TrashIcon, "Icons", fallbackValues$2, "primary");
|
|
14946
|
+
|
|
14858
14947
|
var color$2 = "#15749D";
|
|
14859
14948
|
var hoverColor$1 = "#116285";
|
|
14860
14949
|
var activeColor$1 = "#0E506D";
|
|
@@ -21167,7 +21256,11 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
21167
21256
|
_ref$largeSide = _ref.largeSide,
|
|
21168
21257
|
largeSide = _ref$largeSide === void 0 ? "right" : _ref$largeSide,
|
|
21169
21258
|
_ref$largeSideSize = _ref.largeSideSize,
|
|
21170
|
-
largeSideSize = _ref$largeSideSize === void 0 ? "2" : _ref$largeSideSize
|
|
21259
|
+
largeSideSize = _ref$largeSideSize === void 0 ? "2" : _ref$largeSideSize,
|
|
21260
|
+
CartStatus = _ref.cartStatus,
|
|
21261
|
+
total = _ref.total,
|
|
21262
|
+
showCartStatus = _ref.showCartStatus,
|
|
21263
|
+
openCartSlider = _ref.openCartSlider;
|
|
21171
21264
|
|
|
21172
21265
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
21173
21266
|
isMobile = _useContext.isMobile;
|
|
@@ -21205,6 +21298,9 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
21205
21298
|
text: buttonText || "Browse Services",
|
|
21206
21299
|
variant: "primary",
|
|
21207
21300
|
extraStyles: "margin: 0 0 65px 0; min-width: 320px;"
|
|
21301
|
+
}), showCartStatus && /*#__PURE__*/React__default.createElement(CartStatus, {
|
|
21302
|
+
total: total,
|
|
21303
|
+
openCart: openCartSlider
|
|
21208
21304
|
}))))));
|
|
21209
21305
|
};
|
|
21210
21306
|
|
|
@@ -34715,7 +34811,9 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34715
34811
|
customTitle = _ref$customTitle === void 0 ? false : _ref$customTitle,
|
|
34716
34812
|
_ref$stackTitle = _ref.stackTitle,
|
|
34717
34813
|
stackTitle = _ref$stackTitle === void 0 ? false : _ref$stackTitle,
|
|
34718
|
-
stackTitleContent = _ref.stackTitleContent
|
|
34814
|
+
stackTitleContent = _ref.stackTitleContent,
|
|
34815
|
+
_ref$sectionGap = _ref.sectionGap,
|
|
34816
|
+
sectionGap = _ref$sectionGap === void 0 ? "0.5rem" : _ref$sectionGap;
|
|
34719
34817
|
|
|
34720
34818
|
var handleKeyDown = function handleKeyDown(e) {
|
|
34721
34819
|
if (e.keyCode === 13) {
|
|
@@ -34758,7 +34856,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34758
34856
|
animate: isOpen ? "open" : "closed",
|
|
34759
34857
|
positionTransition: true
|
|
34760
34858
|
}, stackTitle && /*#__PURE__*/React__default.createElement(React.Fragment, null, stackTitleContent), /*#__PURE__*/React__default.createElement(Stack, {
|
|
34761
|
-
childGap: isOpen && !isMobile ?
|
|
34859
|
+
childGap: isOpen && !isMobile ? sectionGap : "0rem"
|
|
34762
34860
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
34763
34861
|
padding: customPadding ? customPadding : "0",
|
|
34764
34862
|
background: themeValues.headingBackgroundColor,
|
|
@@ -40893,6 +40991,7 @@ exports.HamburgerButton = HamburgerButton;
|
|
|
40893
40991
|
exports.Heading = Heading$1;
|
|
40894
40992
|
exports.HighlightTabRow = HighlightTabRow$1;
|
|
40895
40993
|
exports.IconAdd = IconAdd;
|
|
40994
|
+
exports.IconQuitLarge = IconQuitLarge;
|
|
40896
40995
|
exports.Imposter = Imposter;
|
|
40897
40996
|
exports.InternalLink = InternalLink;
|
|
40898
40997
|
exports.Jumbo = Jumbo$1;
|
|
@@ -40962,6 +41061,7 @@ exports.Text = Text$1;
|
|
|
40962
41061
|
exports.Timeout = Timeout$1;
|
|
40963
41062
|
exports.TimeoutImage = TimeoutImage;
|
|
40964
41063
|
exports.ToggleSwitch = ToggleSwitch$1;
|
|
41064
|
+
exports.TrashIcon = TrashIcon$1;
|
|
40965
41065
|
exports.TypeaheadInput = TypeaheadInput;
|
|
40966
41066
|
exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
|
|
40967
41067
|
exports.VoidedIcon = VoidedIcon;
|
package/package.json
CHANGED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
const IconQuitLarge = ({ fill = "#091325" }) => (
|
|
4
|
+
<svg
|
|
5
|
+
width="14px"
|
|
6
|
+
height="14px"
|
|
7
|
+
viewBox="0 0 14 14"
|
|
8
|
+
version="1.1"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
11
|
+
>
|
|
12
|
+
<title>Icon/X</title>
|
|
13
|
+
<defs>
|
|
14
|
+
<polygon
|
|
15
|
+
id="quit-large-path-1"
|
|
16
|
+
points="18.9999989 6.40999946 17.589999 4.9999997 11.9999993 10.5899995 6.40999946 4.9999997 4.9999997 6.40999946 10.5899995 11.9999993 4.9999997 17.589999 6.40999946 18.9999989 11.9999993 13.409999 17.589999 18.9999989 18.9999989 17.589999 13.409999 11.9999993"
|
|
17
|
+
></polygon>
|
|
18
|
+
</defs>
|
|
19
|
+
<g
|
|
20
|
+
id="quit-large-[D]-Cart---Slideout"
|
|
21
|
+
stroke="none"
|
|
22
|
+
strokeWidth="1"
|
|
23
|
+
fill="none"
|
|
24
|
+
fillRule="evenodd"
|
|
25
|
+
>
|
|
26
|
+
<g
|
|
27
|
+
id="quit-large-[D]-Cart-Slideout---Standard"
|
|
28
|
+
transform="translate(-741.000000, -34.000000)"
|
|
29
|
+
>
|
|
30
|
+
<g
|
|
31
|
+
id="quit-large-Close-Icon"
|
|
32
|
+
transform="translate(724.000000, 17.000000)"
|
|
33
|
+
>
|
|
34
|
+
<g id="quit-large-Group" transform="translate(12.000000, 12.000000)">
|
|
35
|
+
<mask id="quit-large-mask-2" fill="white">
|
|
36
|
+
<use xlinkHref="#quit-large-path-1"></use>
|
|
37
|
+
</mask>
|
|
38
|
+
<use
|
|
39
|
+
id="quit-large-Fill-2"
|
|
40
|
+
fill={fill}
|
|
41
|
+
xlinkHref="#quit-large-path-1"
|
|
42
|
+
></use>
|
|
43
|
+
<g mask="url(#quit-large-mask-2)" fill={fill} id="quit-large-⮑🎨">
|
|
44
|
+
<g>
|
|
45
|
+
<rect
|
|
46
|
+
id="quit-large-➝✏️"
|
|
47
|
+
x="0"
|
|
48
|
+
y="0"
|
|
49
|
+
width="24"
|
|
50
|
+
height="24"
|
|
51
|
+
></rect>
|
|
52
|
+
</g>
|
|
53
|
+
</g>
|
|
54
|
+
</g>
|
|
55
|
+
</g>
|
|
56
|
+
</g>
|
|
57
|
+
</g>
|
|
58
|
+
</svg>
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
export default IconQuitLarge;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { fallbackValues } from "./Icons.theme";
|
|
3
|
+
import { themeComponent } from "../../../util/themeUtils";
|
|
4
|
+
|
|
5
|
+
const TrashIcon = ({ themeValues }) => (
|
|
6
|
+
<svg
|
|
7
|
+
width="20px"
|
|
8
|
+
height="20px"
|
|
9
|
+
viewBox="0 0 20 20"
|
|
10
|
+
version="1.1"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
13
|
+
>
|
|
14
|
+
<defs>
|
|
15
|
+
<path
|
|
16
|
+
d="M15,7 L14,15.5714286 C14,16.3571429 13.25,17 12.3333333,17 L12.3333333,17 L7.66666667,17 C6.75,17 6,16.3571429 6,15.5714286 L6,15.5714286 L5,7 L15,7 Z M12.1428571,3 L13,4 L16,4 L16,6 L4,6 L4,4 L7,4 L7.85714286,3 L12.1428571,3 Z"
|
|
17
|
+
id="trash-path-1"
|
|
18
|
+
></path>
|
|
19
|
+
</defs>
|
|
20
|
+
<g
|
|
21
|
+
id="trash-Icons-/-Small-/-20px-S-/-Trash---Mobile---20px"
|
|
22
|
+
stroke="none"
|
|
23
|
+
strokeWidth="1"
|
|
24
|
+
fill="none"
|
|
25
|
+
fillRule="evenodd"
|
|
26
|
+
>
|
|
27
|
+
<mask id="trash-mask-2" fill="white">
|
|
28
|
+
<use xlinkHref="#trash-path-1"></use>
|
|
29
|
+
</mask>
|
|
30
|
+
<use
|
|
31
|
+
id="trash-Mask"
|
|
32
|
+
fill={themeValues.singleIconColor}
|
|
33
|
+
fillRule="nonzero"
|
|
34
|
+
xlinkHref="#trash-path-1"
|
|
35
|
+
></use>
|
|
36
|
+
<polygon
|
|
37
|
+
id="trash-Path"
|
|
38
|
+
fill={themeValues.singleIconColor}
|
|
39
|
+
fillRule="nonzero"
|
|
40
|
+
mask="url(#trash-mask-2)"
|
|
41
|
+
points="0 0 20 0 20 20 0 20"
|
|
42
|
+
></polygon>
|
|
43
|
+
</g>
|
|
44
|
+
</svg>
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
export default themeComponent(TrashIcon, "Icons", fallbackValues, "primary");
|
|
@@ -19,6 +19,7 @@ import BankIcon from "./BankIcon";
|
|
|
19
19
|
import GenericCard from "./GenericCard";
|
|
20
20
|
import PaymentIcon from "./PaymentIcon";
|
|
21
21
|
import IconAdd from "./IconAdd";
|
|
22
|
+
import IconQuitLarge from "./IconQuitLarge";
|
|
22
23
|
import TimeoutImage from "./TimeoutImage";
|
|
23
24
|
import AutopayOnIcon from "./AutopayOnIcon";
|
|
24
25
|
import NotFoundIcon from "./NotFoundIcon";
|
|
@@ -44,6 +45,7 @@ import ProfileIcon from "./ProfileIcon";
|
|
|
44
45
|
import GenericCardLarge from "./GenericCardLarge";
|
|
45
46
|
import EmptyCartIcon from "./EmptyCartIcon";
|
|
46
47
|
import ShoppingCartIcon from "./ShoppingCartIcon";
|
|
48
|
+
import TrashIcon from "./TrashIcon";
|
|
47
49
|
|
|
48
50
|
export {
|
|
49
51
|
AccountsIcon,
|
|
@@ -67,6 +69,7 @@ export {
|
|
|
67
69
|
GenericCard,
|
|
68
70
|
PaymentIcon,
|
|
69
71
|
IconAdd,
|
|
72
|
+
IconQuitLarge,
|
|
70
73
|
TimeoutImage,
|
|
71
74
|
AutopayOnIcon,
|
|
72
75
|
NotFoundIcon,
|
|
@@ -91,5 +94,6 @@ export {
|
|
|
91
94
|
ProfileIcon,
|
|
92
95
|
GenericCardLarge,
|
|
93
96
|
EmptyCartIcon,
|
|
94
|
-
ShoppingCartIcon
|
|
97
|
+
ShoppingCartIcon,
|
|
98
|
+
TrashIcon
|
|
95
99
|
};
|
|
@@ -14,7 +14,11 @@ const Jumbo = ({
|
|
|
14
14
|
buttonText,
|
|
15
15
|
slug,
|
|
16
16
|
largeSide = "right",
|
|
17
|
-
largeSideSize = "2"
|
|
17
|
+
largeSideSize = "2",
|
|
18
|
+
cartStatus: CartStatus,
|
|
19
|
+
total,
|
|
20
|
+
showCartStatus,
|
|
21
|
+
openCartSlider
|
|
18
22
|
}) => {
|
|
19
23
|
const { isMobile } = useContext(ThemeContext);
|
|
20
24
|
return (
|
|
@@ -65,6 +69,9 @@ const Jumbo = ({
|
|
|
65
69
|
extraStyles={`margin: 0 0 65px 0; min-width: 320px;`}
|
|
66
70
|
/>
|
|
67
71
|
)}
|
|
72
|
+
{showCartStatus && (
|
|
73
|
+
<CartStatus total={total} openCart={openCartSlider} />
|
|
74
|
+
)}
|
|
68
75
|
</Cluster>
|
|
69
76
|
</Switcher>
|
|
70
77
|
</Cover>
|
|
@@ -21,7 +21,8 @@ const CollapsibleSection = ({
|
|
|
21
21
|
children,
|
|
22
22
|
customTitle = false,
|
|
23
23
|
stackTitle = false,
|
|
24
|
-
stackTitleContent
|
|
24
|
+
stackTitleContent,
|
|
25
|
+
sectionGap = "0.5rem"
|
|
25
26
|
}) => {
|
|
26
27
|
const handleKeyDown = e => {
|
|
27
28
|
if (e.keyCode === 13) {
|
|
@@ -69,7 +70,7 @@ const CollapsibleSection = ({
|
|
|
69
70
|
positionTransition
|
|
70
71
|
>
|
|
71
72
|
{stackTitle && <Fragment>{stackTitleContent}</Fragment>}
|
|
72
|
-
<Stack childGap={isOpen && !isMobile ?
|
|
73
|
+
<Stack childGap={isOpen && !isMobile ? sectionGap : "0rem"}>
|
|
73
74
|
<Box
|
|
74
75
|
padding={customPadding ? customPadding : "0"}
|
|
75
76
|
background={themeValues.headingBackgroundColor}
|