@thecb/components 4.2.7-beta.4 → 4.2.7-beta.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
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"]);
|
|
6485
6485
|
|
|
6486
6486
|
_templateObject$3 = function _templateObject() {
|
|
6487
6487
|
return data;
|
|
@@ -6499,27 +6499,36 @@ 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;
|
|
6502
6511
|
});
|
|
6503
|
-
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (
|
|
6504
|
-
var nowrap =
|
|
6512
|
+
var ClusterInnerWrapper = styled__default.div(_templateObject2$2(), function (_ref6) {
|
|
6513
|
+
var nowrap = _ref6.nowrap;
|
|
6505
6514
|
return nowrap ? "nowrap" : "wrap";
|
|
6506
|
-
}, function (
|
|
6507
|
-
var justify =
|
|
6515
|
+
}, function (_ref7) {
|
|
6516
|
+
var justify = _ref7.justify;
|
|
6508
6517
|
return justify;
|
|
6509
|
-
}, function (
|
|
6510
|
-
var align =
|
|
6518
|
+
}, function (_ref8) {
|
|
6519
|
+
var align = _ref8.align;
|
|
6511
6520
|
return align;
|
|
6512
|
-
}, function (
|
|
6513
|
-
var childGap =
|
|
6521
|
+
}, function (_ref9) {
|
|
6522
|
+
var childGap = _ref9.childGap;
|
|
6514
6523
|
return childGap;
|
|
6515
|
-
}, function (
|
|
6516
|
-
var minHeight =
|
|
6524
|
+
}, function (_ref10) {
|
|
6525
|
+
var minHeight = _ref10.minHeight;
|
|
6517
6526
|
return minHeight;
|
|
6518
|
-
}, function (
|
|
6519
|
-
var minWidth =
|
|
6527
|
+
}, function (_ref11) {
|
|
6528
|
+
var minWidth = _ref11.minWidth;
|
|
6520
6529
|
return minWidth;
|
|
6521
|
-
}, function (
|
|
6522
|
-
var childGap =
|
|
6530
|
+
}, function (_ref12) {
|
|
6531
|
+
var childGap = _ref12.childGap;
|
|
6523
6532
|
return childGap;
|
|
6524
6533
|
});
|
|
6525
6534
|
|
|
@@ -6541,12 +6550,19 @@ var Cluster = function Cluster(_ref) {
|
|
|
6541
6550
|
nowrap = _ref.nowrap,
|
|
6542
6551
|
_ref$overflow = _ref.overflow,
|
|
6543
6552
|
overflow = _ref$overflow === void 0 ? false : _ref$overflow,
|
|
6553
|
+
justifySelf = _ref.justifySelf,
|
|
6554
|
+
alignSelf = _ref.alignSelf,
|
|
6555
|
+
flexGrow = _ref.flexGrow,
|
|
6544
6556
|
children = _ref.children,
|
|
6545
|
-
rest = _objectWithoutProperties(_ref, ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "children"]);
|
|
6557
|
+
rest = _objectWithoutProperties(_ref, ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "children"]);
|
|
6546
6558
|
|
|
6547
6559
|
return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
|
|
6548
6560
|
overflow: overflow
|
|
6549
|
-
}, rest
|
|
6561
|
+
}, rest, {
|
|
6562
|
+
justifySelf: justifySelf,
|
|
6563
|
+
alignSelf: alignSelf,
|
|
6564
|
+
flexGrow: flexGrow
|
|
6565
|
+
}), /*#__PURE__*/React__default.createElement(ClusterInnerWrapper, {
|
|
6550
6566
|
justify: justify,
|
|
6551
6567
|
align: align,
|
|
6552
6568
|
childGap: childGap,
|
|
@@ -34746,7 +34762,8 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34746
34762
|
key: "header",
|
|
34747
34763
|
hoverStyles: "cursor: pointer;",
|
|
34748
34764
|
tabIndex: "0",
|
|
34749
|
-
onKeyDown: handleKeyDown
|
|
34765
|
+
onKeyDown: handleKeyDown,
|
|
34766
|
+
extraStyles: "z-index: 25;"
|
|
34750
34767
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
34751
34768
|
justify: "space-between",
|
|
34752
34769
|
align: "center"
|
|
@@ -34771,7 +34788,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34771
34788
|
initial: initiallyOpen ? "open" : "closed",
|
|
34772
34789
|
exit: "closed",
|
|
34773
34790
|
variants: wrapper,
|
|
34774
|
-
extraStyles: "transform-origin: 100% 0;"
|
|
34791
|
+
extraStyles: "transform-origin: 100% 0; overflow-y: hidden;"
|
|
34775
34792
|
}, children))));
|
|
34776
34793
|
};
|
|
34777
34794
|
|
package/package.json
CHANGED
|
@@ -19,10 +19,19 @@ const Cluster = ({
|
|
|
19
19
|
minWidth,
|
|
20
20
|
nowrap,
|
|
21
21
|
overflow = false,
|
|
22
|
+
justifySelf,
|
|
23
|
+
alignSelf,
|
|
24
|
+
flexGrow,
|
|
22
25
|
children,
|
|
23
26
|
...rest
|
|
24
27
|
}) => (
|
|
25
|
-
<ClusterWrapper
|
|
28
|
+
<ClusterWrapper
|
|
29
|
+
overflow={overflow}
|
|
30
|
+
{...rest}
|
|
31
|
+
justifySelf={justifySelf}
|
|
32
|
+
alignSelf={alignSelf}
|
|
33
|
+
flexGrow={flexGrow}
|
|
34
|
+
>
|
|
26
35
|
<ClusterInnerWrapper
|
|
27
36
|
justify={justify}
|
|
28
37
|
align={align}
|
|
@@ -7,6 +7,9 @@ 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};
|
|
10
13
|
`;
|
|
11
14
|
|
|
12
15
|
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>
|