@thecb/components 7.13.3-beta.10 → 7.13.3-beta.12

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
@@ -38001,7 +38001,8 @@ var Card = function Card(_ref) {
38001
38001
  }, /*#__PURE__*/React.createElement(Stack, {
38002
38002
  fullHeight: true,
38003
38003
  childGap: "0",
38004
- bottomItem: numberOfChildren
38004
+ bottomItem: numberOfChildren,
38005
+ direction: "row"
38005
38006
  }, headerText && /*#__PURE__*/React.createElement(CardHeader, {
38006
38007
  headerText: headerText,
38007
38008
  headerColor: themeValues.headerColor,
@@ -40367,48 +40368,6 @@ var fallbackValues$D = {
40367
40368
  bodyBackgroundColor: bodyBackgroundColor
40368
40369
  };
40369
40370
 
40370
- var ChevronIconWhite = function ChevronIconWhite(_ref) {
40371
- var themeValues = _ref.themeValues,
40372
- iconFill = _ref.iconFill;
40373
- return /*#__PURE__*/React.createElement("svg", {
40374
- width: "24",
40375
- height: "24",
40376
- viewBox: "0 0 24 24",
40377
- xmlns: "http://www.w3.org/2000/svg",
40378
- xmlnsXlink: "http://www.w3.org/1999/xlink",
40379
- style: {
40380
- display: "inline-block",
40381
- verticalAlign: "text-bottom"
40382
- }
40383
- }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("polygon", {
40384
- id: "icon-chevron-path-1",
40385
- points: "10.4099998 6 9 7.40999976 13.5799996 11.9999996 9 16.5899995 10.4099998 17.9999993 16.4099994 11.9999996"
40386
- })), /*#__PURE__*/React.createElement("g", {
40387
- id: "icon-chevron-Icon/Chevron-Down",
40388
- fill: "#ffffff",
40389
- fillRule: "evenodd"
40390
- }, /*#__PURE__*/React.createElement("mask", {
40391
- id: "icon-chevron-mask-2"
40392
- }, /*#__PURE__*/React.createElement("use", {
40393
- fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor,
40394
- xlinkHref: "#icon-chevron-path-1"
40395
- })), /*#__PURE__*/React.createElement("use", {
40396
- fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor,
40397
- id: "icon-chevron-Fill-2",
40398
- xlinkHref: "#icon-chevron-path-1"
40399
- }), /*#__PURE__*/React.createElement("g", {
40400
- id: "Colors/Blue-Dark",
40401
- mask: "url(#icon-chevron-mask-2)",
40402
- fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor
40403
- }, /*#__PURE__*/React.createElement("rect", {
40404
- id: "icon-chevron-rect",
40405
- width: "24",
40406
- height: "24"
40407
- }))));
40408
- };
40409
-
40410
- var ChevronIconWhite$1 = themeComponent(ChevronIconWhite, "Icons", fallbackValues$2, "secondary");
40411
-
40412
40371
  var CollapsibleSection = function CollapsibleSection(_ref) {
40413
40372
  var _label$replaceAll;
40414
40373
 
@@ -40436,9 +40395,11 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
40436
40395
  _ref$index = _ref.index,
40437
40396
  index = _ref$index === void 0 ? 1 : _ref$index,
40438
40397
  _ref$iconColor = _ref.iconColor,
40398
+ iconColor = _ref$iconColor === void 0 ? "" : _ref$iconColor,
40439
40399
  _ref$extraStyles = _ref.extraStyles,
40440
40400
  extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
40441
- CustomIcon = _ref.CustomIcon;
40401
+ _ref$CustomIcon = _ref.CustomIcon,
40402
+ CustomIcon = _ref$CustomIcon === void 0 ? null : _ref$CustomIcon;
40442
40403
 
40443
40404
  var handleKeyDown = function handleKeyDown(e) {
40444
40405
  if (e.keyCode === 13) {
@@ -40517,7 +40478,11 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
40517
40478
  }, title), /*#__PURE__*/React.createElement(Motion, {
40518
40479
  variants: icon,
40519
40480
  extraStyles: "display: flex; align-items: center;"
40520
- }, CustomIcon ? /*#__PURE__*/React.createElement(CustomIcon, null) : /*#__PURE__*/React.createElement(ChevronIconWhite$1, null))))), /*#__PURE__*/React.createElement(AnimatePresence, {
40481
+ }, !!CustomIcon ? /*#__PURE__*/React.createElement(CustomIcon, {
40482
+ color: iconColor
40483
+ }) : /*#__PURE__*/React.createElement(ChevronIcon$1, {
40484
+ color: iconColor
40485
+ }))))), /*#__PURE__*/React.createElement(AnimatePresence, {
40521
40486
  initial: false
40522
40487
  }, isOpen && /*#__PURE__*/React.createElement(Motion, {
40523
40488
  padding: "0",