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

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
@@ -40367,48 +40367,6 @@ var fallbackValues$D = {
40367
40367
  bodyBackgroundColor: bodyBackgroundColor
40368
40368
  };
40369
40369
 
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
40370
  var CollapsibleSection = function CollapsibleSection(_ref) {
40413
40371
  var _label$replaceAll;
40414
40372
 
@@ -40436,9 +40394,11 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
40436
40394
  _ref$index = _ref.index,
40437
40395
  index = _ref$index === void 0 ? 1 : _ref$index,
40438
40396
  _ref$iconColor = _ref.iconColor,
40397
+ iconColor = _ref$iconColor === void 0 ? "" : _ref$iconColor,
40439
40398
  _ref$extraStyles = _ref.extraStyles,
40440
40399
  extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
40441
- CustomIcon = _ref.CustomIcon;
40400
+ _ref$CustomIcon = _ref.CustomIcon,
40401
+ CustomIcon = _ref$CustomIcon === void 0 ? null : _ref$CustomIcon;
40442
40402
 
40443
40403
  var handleKeyDown = function handleKeyDown(e) {
40444
40404
  if (e.keyCode === 13) {
@@ -40517,7 +40477,11 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
40517
40477
  }, title), /*#__PURE__*/React.createElement(Motion, {
40518
40478
  variants: icon,
40519
40479
  extraStyles: "display: flex; align-items: center;"
40520
- }, CustomIcon ? /*#__PURE__*/React.createElement(CustomIcon, null) : /*#__PURE__*/React.createElement(ChevronIconWhite$1, null))))), /*#__PURE__*/React.createElement(AnimatePresence, {
40480
+ }, !!CustomIcon ? /*#__PURE__*/React.createElement(CustomIcon, {
40481
+ color: iconColor
40482
+ }) : /*#__PURE__*/React.createElement(ChevronIcon$1, {
40483
+ color: iconColor
40484
+ }))))), /*#__PURE__*/React.createElement(AnimatePresence, {
40521
40485
  initial: false
40522
40486
  }, isOpen && /*#__PURE__*/React.createElement(Motion, {
40523
40487
  padding: "0",