@thecb/components 7.13.3-beta.14 → 7.13.3-beta.16
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.esm.js
CHANGED
|
@@ -38010,7 +38010,9 @@ var Card = function Card(_ref) {
|
|
|
38010
38010
|
borderRadius: borderRadius,
|
|
38011
38011
|
padding: padding,
|
|
38012
38012
|
as: headerAs
|
|
38013
|
-
}), /*#__PURE__*/React.createElement(Stack,
|
|
38013
|
+
}), /*#__PURE__*/React.createElement(Stack, {
|
|
38014
|
+
direction: "row"
|
|
38015
|
+
}, Image && !imgSrc && /*#__PURE__*/React.createElement(Box, {
|
|
38014
38016
|
minHeight: imgHeight,
|
|
38015
38017
|
padding: "0",
|
|
38016
38018
|
background: themeValues.imageBackgroundColor
|
|
@@ -38027,7 +38029,11 @@ var Card = function Card(_ref) {
|
|
|
38027
38029
|
backgroundColor: themeValues.imageBackgroundColor,
|
|
38028
38030
|
src: imgSrc,
|
|
38029
38031
|
alt: imgAltText
|
|
38030
|
-
}), /*#__PURE__*/React.createElement(
|
|
38032
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
38033
|
+
extraStyles: {
|
|
38034
|
+
flexBasis: "100%"
|
|
38035
|
+
}
|
|
38036
|
+
}, text && /*#__PURE__*/React.createElement(CardText$1, {
|
|
38031
38037
|
padding: padding,
|
|
38032
38038
|
titleText: titleText,
|
|
38033
38039
|
text: text,
|
|
@@ -40396,9 +40402,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
40396
40402
|
_ref$iconColor = _ref.iconColor,
|
|
40397
40403
|
iconColor = _ref$iconColor === void 0 ? "" : _ref$iconColor,
|
|
40398
40404
|
_ref$extraStyles = _ref.extraStyles,
|
|
40399
|
-
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles
|
|
40400
|
-
_ref$CustomIcon = _ref.CustomIcon,
|
|
40401
|
-
CustomIcon = _ref$CustomIcon === void 0 ? null : _ref$CustomIcon;
|
|
40405
|
+
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
|
|
40402
40406
|
|
|
40403
40407
|
var handleKeyDown = function handleKeyDown(e) {
|
|
40404
40408
|
if (e.keyCode === 13) {
|
|
@@ -40448,7 +40452,8 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
40448
40452
|
padding: "0",
|
|
40449
40453
|
role: "heading",
|
|
40450
40454
|
"aria-label": label,
|
|
40451
|
-
"aria-level": 3
|
|
40455
|
+
"aria-level": 3,
|
|
40456
|
+
extraStyles: extraStyles
|
|
40452
40457
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
40453
40458
|
padding: customPadding ? customPadding : "0",
|
|
40454
40459
|
background: themeValues.headingBackgroundColor,
|
|
@@ -40477,9 +40482,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
40477
40482
|
}, title), /*#__PURE__*/React.createElement(Motion, {
|
|
40478
40483
|
variants: icon,
|
|
40479
40484
|
extraStyles: "display: flex; align-items: center;"
|
|
40480
|
-
},
|
|
40481
|
-
color: iconColor
|
|
40482
|
-
}) : /*#__PURE__*/React.createElement(ChevronIcon$1, {
|
|
40485
|
+
}, /*#__PURE__*/React.createElement(ChevronIcon$1, {
|
|
40483
40486
|
color: iconColor
|
|
40484
40487
|
}))))), /*#__PURE__*/React.createElement(AnimatePresence, {
|
|
40485
40488
|
initial: false
|