@thecb/components 4.2.7-beta.7 → 4.2.7
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 +117 -19
- 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/layouts/Cluster.js +2 -0
- package/src/components/atoms/layouts/Cluster.styled.js +1 -0
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +3 -2
package/dist/index.cjs.js
CHANGED
|
@@ -6481,7 +6481,7 @@ function _templateObject2$2() {
|
|
|
6481
6481
|
}
|
|
6482
6482
|
|
|
6483
6483
|
function _templateObject$3() {
|
|
6484
|
-
var data = _taggedTemplateLiteral(["\n overflow: ", ";\n box-sizing: border-box;\n justify-self: ", ";\n align-self: ", ";\n flex-grow: ", ";\n"]);
|
|
6484
|
+
var data = _taggedTemplateLiteral(["\n overflow: ", ";\n box-sizing: border-box;\n justify-self: ", ";\n align-self: ", ";\n flex-grow: ", ";\n ", ";\n"]);
|
|
6485
6485
|
|
|
6486
6486
|
_templateObject$3 = function _templateObject() {
|
|
6487
6487
|
return data;
|
|
@@ -6508,27 +6508,30 @@ var ClusterWrapper = styled__default(function (_ref) {
|
|
|
6508
6508
|
}, function (_ref5) {
|
|
6509
6509
|
var flexGrow = _ref5.flexGrow;
|
|
6510
6510
|
return flexGrow;
|
|
6511
|
+
}, function (_ref6) {
|
|
6512
|
+
var extraStyles = _ref6.extraStyles;
|
|
6513
|
+
return extraStyles;
|
|
6511
6514
|
});
|
|
6512
|
-
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (
|
|
6513
|
-
var nowrap =
|
|
6515
|
+
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (_ref7) {
|
|
6516
|
+
var nowrap = _ref7.nowrap;
|
|
6514
6517
|
return nowrap ? "nowrap" : "wrap";
|
|
6515
|
-
}, function (_ref7) {
|
|
6516
|
-
var justify = _ref7.justify;
|
|
6517
|
-
return justify;
|
|
6518
6518
|
}, function (_ref8) {
|
|
6519
|
-
var
|
|
6520
|
-
return
|
|
6519
|
+
var justify = _ref8.justify;
|
|
6520
|
+
return justify;
|
|
6521
6521
|
}, function (_ref9) {
|
|
6522
|
-
var
|
|
6523
|
-
return
|
|
6522
|
+
var align = _ref9.align;
|
|
6523
|
+
return align;
|
|
6524
6524
|
}, function (_ref10) {
|
|
6525
|
-
var
|
|
6526
|
-
return
|
|
6525
|
+
var childGap = _ref10.childGap;
|
|
6526
|
+
return childGap;
|
|
6527
6527
|
}, function (_ref11) {
|
|
6528
|
-
var
|
|
6529
|
-
return
|
|
6528
|
+
var minHeight = _ref11.minHeight;
|
|
6529
|
+
return minHeight;
|
|
6530
6530
|
}, function (_ref12) {
|
|
6531
|
-
var
|
|
6531
|
+
var minWidth = _ref12.minWidth;
|
|
6532
|
+
return minWidth;
|
|
6533
|
+
}, function (_ref13) {
|
|
6534
|
+
var childGap = _ref13.childGap;
|
|
6532
6535
|
return childGap;
|
|
6533
6536
|
});
|
|
6534
6537
|
|
|
@@ -6553,15 +6556,17 @@ var Cluster = function Cluster(_ref) {
|
|
|
6553
6556
|
justifySelf = _ref.justifySelf,
|
|
6554
6557
|
alignSelf = _ref.alignSelf,
|
|
6555
6558
|
flexGrow = _ref.flexGrow,
|
|
6559
|
+
extraStyles = _ref.extraStyles,
|
|
6556
6560
|
children = _ref.children,
|
|
6557
|
-
rest = _objectWithoutProperties(_ref, ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "children"]);
|
|
6561
|
+
rest = _objectWithoutProperties(_ref, ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"]);
|
|
6558
6562
|
|
|
6559
6563
|
return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
|
|
6560
6564
|
overflow: overflow
|
|
6561
6565
|
}, rest, {
|
|
6562
6566
|
justifySelf: justifySelf,
|
|
6563
6567
|
alignSelf: alignSelf,
|
|
6564
|
-
flexGrow: flexGrow
|
|
6568
|
+
flexGrow: flexGrow,
|
|
6569
|
+
extraStyles: extraStyles
|
|
6565
6570
|
}), /*#__PURE__*/React__default.createElement(ClusterInnerWrapper, {
|
|
6566
6571
|
justify: justify,
|
|
6567
6572
|
align: align,
|
|
@@ -13770,6 +13775,56 @@ var IconAdd = function IconAdd() {
|
|
|
13770
13775
|
}))))));
|
|
13771
13776
|
};
|
|
13772
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
|
+
|
|
13773
13828
|
var TimeoutImage = function TimeoutImage() {
|
|
13774
13829
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13775
13830
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -14850,6 +14905,45 @@ var ShoppingCartIcon = function ShoppingCartIcon() {
|
|
|
14850
14905
|
})))));
|
|
14851
14906
|
};
|
|
14852
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
|
+
|
|
14853
14947
|
var color$2 = "#15749D";
|
|
14854
14948
|
var hoverColor$1 = "#116285";
|
|
14855
14949
|
var activeColor$1 = "#0E506D";
|
|
@@ -34710,7 +34804,9 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34710
34804
|
customTitle = _ref$customTitle === void 0 ? false : _ref$customTitle,
|
|
34711
34805
|
_ref$stackTitle = _ref.stackTitle,
|
|
34712
34806
|
stackTitle = _ref$stackTitle === void 0 ? false : _ref$stackTitle,
|
|
34713
|
-
stackTitleContent = _ref.stackTitleContent
|
|
34807
|
+
stackTitleContent = _ref.stackTitleContent,
|
|
34808
|
+
_ref$sectionGap = _ref.sectionGap,
|
|
34809
|
+
sectionGap = _ref$sectionGap === void 0 ? "0.5rem" : _ref$sectionGap;
|
|
34714
34810
|
|
|
34715
34811
|
var handleKeyDown = function handleKeyDown(e) {
|
|
34716
34812
|
if (e.keyCode === 13) {
|
|
@@ -34753,7 +34849,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34753
34849
|
animate: isOpen ? "open" : "closed",
|
|
34754
34850
|
positionTransition: true
|
|
34755
34851
|
}, stackTitle && /*#__PURE__*/React__default.createElement(React.Fragment, null, stackTitleContent), /*#__PURE__*/React__default.createElement(Stack, {
|
|
34756
|
-
childGap: isOpen && !isMobile ?
|
|
34852
|
+
childGap: isOpen && !isMobile ? sectionGap : "0rem"
|
|
34757
34853
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
34758
34854
|
padding: customPadding ? customPadding : "0",
|
|
34759
34855
|
background: themeValues.headingBackgroundColor,
|
|
@@ -40888,6 +40984,7 @@ exports.HamburgerButton = HamburgerButton;
|
|
|
40888
40984
|
exports.Heading = Heading$1;
|
|
40889
40985
|
exports.HighlightTabRow = HighlightTabRow$1;
|
|
40890
40986
|
exports.IconAdd = IconAdd;
|
|
40987
|
+
exports.IconQuitLarge = IconQuitLarge;
|
|
40891
40988
|
exports.Imposter = Imposter;
|
|
40892
40989
|
exports.InternalLink = InternalLink;
|
|
40893
40990
|
exports.Jumbo = Jumbo$1;
|
|
@@ -40957,6 +41054,7 @@ exports.Text = Text$1;
|
|
|
40957
41054
|
exports.Timeout = Timeout$1;
|
|
40958
41055
|
exports.TimeoutImage = TimeoutImage;
|
|
40959
41056
|
exports.ToggleSwitch = ToggleSwitch$1;
|
|
41057
|
+
exports.TrashIcon = TrashIcon$1;
|
|
40960
41058
|
exports.TypeaheadInput = TypeaheadInput;
|
|
40961
41059
|
exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
|
|
40962
41060
|
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
|
};
|
|
@@ -22,6 +22,7 @@ const Cluster = ({
|
|
|
22
22
|
justifySelf,
|
|
23
23
|
alignSelf,
|
|
24
24
|
flexGrow,
|
|
25
|
+
extraStyles,
|
|
25
26
|
children,
|
|
26
27
|
...rest
|
|
27
28
|
}) => (
|
|
@@ -31,6 +32,7 @@ const Cluster = ({
|
|
|
31
32
|
justifySelf={justifySelf}
|
|
32
33
|
alignSelf={alignSelf}
|
|
33
34
|
flexGrow={flexGrow}
|
|
35
|
+
extraStyles={extraStyles}
|
|
34
36
|
>
|
|
35
37
|
<ClusterInnerWrapper
|
|
36
38
|
justify={justify}
|
|
@@ -10,6 +10,7 @@ export const ClusterWrapper = styled(({ overflow, ...props }) => (
|
|
|
10
10
|
justify-self: ${({ justifySelf }) => justifySelf};
|
|
11
11
|
align-self: ${({ alignSelf }) => alignSelf};
|
|
12
12
|
flex-grow: ${({ flexGrow }) => flexGrow};
|
|
13
|
+
${({ extraStyles }) => extraStyles};
|
|
13
14
|
`;
|
|
14
15
|
|
|
15
16
|
export const ClusterInnerWrapper = styled.div`
|
|
@@ -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}
|