@thecb/components 4.2.7-beta.5 → 4.2.7-beta.8
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
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"]);
|
|
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;
|
|
@@ -6499,27 +6499,39 @@ var ClusterWrapper = styled__default(function (_ref) {
|
|
|
6499
6499
|
})(_templateObject$3(), function (_ref2) {
|
|
6500
6500
|
var overflow = _ref2.overflow;
|
|
6501
6501
|
return overflow ? "visible" : "hidden";
|
|
6502
|
+
}, function (_ref3) {
|
|
6503
|
+
var justifySelf = _ref3.justifySelf;
|
|
6504
|
+
return justifySelf;
|
|
6505
|
+
}, function (_ref4) {
|
|
6506
|
+
var alignSelf = _ref4.alignSelf;
|
|
6507
|
+
return alignSelf;
|
|
6508
|
+
}, function (_ref5) {
|
|
6509
|
+
var flexGrow = _ref5.flexGrow;
|
|
6510
|
+
return flexGrow;
|
|
6511
|
+
}, function (_ref6) {
|
|
6512
|
+
var extraStyles = _ref6.extraStyles;
|
|
6513
|
+
return extraStyles;
|
|
6502
6514
|
});
|
|
6503
|
-
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (
|
|
6504
|
-
var nowrap =
|
|
6515
|
+
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (_ref7) {
|
|
6516
|
+
var nowrap = _ref7.nowrap;
|
|
6505
6517
|
return nowrap ? "nowrap" : "wrap";
|
|
6506
|
-
}, function (
|
|
6507
|
-
var justify =
|
|
6518
|
+
}, function (_ref8) {
|
|
6519
|
+
var justify = _ref8.justify;
|
|
6508
6520
|
return justify;
|
|
6509
|
-
}, function (
|
|
6510
|
-
var align =
|
|
6521
|
+
}, function (_ref9) {
|
|
6522
|
+
var align = _ref9.align;
|
|
6511
6523
|
return align;
|
|
6512
|
-
}, function (
|
|
6513
|
-
var childGap =
|
|
6524
|
+
}, function (_ref10) {
|
|
6525
|
+
var childGap = _ref10.childGap;
|
|
6514
6526
|
return childGap;
|
|
6515
|
-
}, function (
|
|
6516
|
-
var minHeight =
|
|
6527
|
+
}, function (_ref11) {
|
|
6528
|
+
var minHeight = _ref11.minHeight;
|
|
6517
6529
|
return minHeight;
|
|
6518
|
-
}, function (
|
|
6519
|
-
var minWidth =
|
|
6530
|
+
}, function (_ref12) {
|
|
6531
|
+
var minWidth = _ref12.minWidth;
|
|
6520
6532
|
return minWidth;
|
|
6521
|
-
}, function (
|
|
6522
|
-
var childGap =
|
|
6533
|
+
}, function (_ref13) {
|
|
6534
|
+
var childGap = _ref13.childGap;
|
|
6523
6535
|
return childGap;
|
|
6524
6536
|
});
|
|
6525
6537
|
|
|
@@ -6541,12 +6553,21 @@ var Cluster = function Cluster(_ref) {
|
|
|
6541
6553
|
nowrap = _ref.nowrap,
|
|
6542
6554
|
_ref$overflow = _ref.overflow,
|
|
6543
6555
|
overflow = _ref$overflow === void 0 ? false : _ref$overflow,
|
|
6556
|
+
justifySelf = _ref.justifySelf,
|
|
6557
|
+
alignSelf = _ref.alignSelf,
|
|
6558
|
+
flexGrow = _ref.flexGrow,
|
|
6559
|
+
extraStyles = _ref.extraStyles,
|
|
6544
6560
|
children = _ref.children,
|
|
6545
|
-
rest = _objectWithoutProperties(_ref, ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "children"]);
|
|
6561
|
+
rest = _objectWithoutProperties(_ref, ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"]);
|
|
6546
6562
|
|
|
6547
6563
|
return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
|
|
6548
6564
|
overflow: overflow
|
|
6549
|
-
}, rest
|
|
6565
|
+
}, rest, {
|
|
6566
|
+
justifySelf: justifySelf,
|
|
6567
|
+
alignSelf: alignSelf,
|
|
6568
|
+
flexGrow: flexGrow,
|
|
6569
|
+
extraStyles: extraStyles
|
|
6570
|
+
}), /*#__PURE__*/React__default.createElement(ClusterInnerWrapper, {
|
|
6550
6571
|
justify: justify,
|
|
6551
6572
|
align: align,
|
|
6552
6573
|
childGap: childGap,
|
|
@@ -34746,7 +34767,8 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34746
34767
|
key: "header",
|
|
34747
34768
|
hoverStyles: "cursor: pointer;",
|
|
34748
34769
|
tabIndex: "0",
|
|
34749
|
-
onKeyDown: handleKeyDown
|
|
34770
|
+
onKeyDown: handleKeyDown,
|
|
34771
|
+
extraStyles: "z-index: 25;"
|
|
34750
34772
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
34751
34773
|
justify: "space-between",
|
|
34752
34774
|
align: "center"
|
|
@@ -34771,7 +34793,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34771
34793
|
initial: initiallyOpen ? "open" : "closed",
|
|
34772
34794
|
exit: "closed",
|
|
34773
34795
|
variants: wrapper,
|
|
34774
|
-
extraStyles: "transform-origin: 100% 0;"
|
|
34796
|
+
extraStyles: "transform-origin: 100% 0; overflow-y: hidden;"
|
|
34775
34797
|
}, children))));
|
|
34776
34798
|
};
|
|
34777
34799
|
|
package/package.json
CHANGED
|
@@ -19,10 +19,21 @@ const Cluster = ({
|
|
|
19
19
|
minWidth,
|
|
20
20
|
nowrap,
|
|
21
21
|
overflow = false,
|
|
22
|
+
justifySelf,
|
|
23
|
+
alignSelf,
|
|
24
|
+
flexGrow,
|
|
25
|
+
extraStyles,
|
|
22
26
|
children,
|
|
23
27
|
...rest
|
|
24
28
|
}) => (
|
|
25
|
-
<ClusterWrapper
|
|
29
|
+
<ClusterWrapper
|
|
30
|
+
overflow={overflow}
|
|
31
|
+
{...rest}
|
|
32
|
+
justifySelf={justifySelf}
|
|
33
|
+
alignSelf={alignSelf}
|
|
34
|
+
flexGrow={flexGrow}
|
|
35
|
+
extraStyles={extraStyles}
|
|
36
|
+
>
|
|
26
37
|
<ClusterInnerWrapper
|
|
27
38
|
justify={justify}
|
|
28
39
|
align={align}
|
|
@@ -7,6 +7,10 @@ export const ClusterWrapper = styled(({ overflow, ...props }) => (
|
|
|
7
7
|
))`
|
|
8
8
|
overflow: ${({ overflow }) => (overflow ? "visible" : "hidden")};
|
|
9
9
|
box-sizing: border-box;
|
|
10
|
+
justify-self: ${({ justifySelf }) => justifySelf};
|
|
11
|
+
align-self: ${({ alignSelf }) => alignSelf};
|
|
12
|
+
flex-grow: ${({ flexGrow }) => flexGrow};
|
|
13
|
+
${({ extraStyles }) => extraStyles};
|
|
10
14
|
`;
|
|
11
15
|
|
|
12
16
|
export const ClusterInnerWrapper = styled.div`
|
|
@@ -79,6 +79,7 @@ const CollapsibleSection = ({
|
|
|
79
79
|
hoverStyles={`cursor: pointer;`}
|
|
80
80
|
tabIndex="0"
|
|
81
81
|
onKeyDown={handleKeyDown}
|
|
82
|
+
extraStyles={`z-index: 25;`}
|
|
82
83
|
>
|
|
83
84
|
<Cluster justify="space-between" align="center">
|
|
84
85
|
{customTitle ? (
|
|
@@ -113,7 +114,7 @@ const CollapsibleSection = ({
|
|
|
113
114
|
initial={initiallyOpen ? "open" : "closed"}
|
|
114
115
|
exit="closed"
|
|
115
116
|
variants={wrapper}
|
|
116
|
-
extraStyles={`transform-origin: 100% 0;`}
|
|
117
|
+
extraStyles={`transform-origin: 100% 0; overflow-y: hidden;`}
|
|
117
118
|
>
|
|
118
119
|
{children}
|
|
119
120
|
</Motion>
|