@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.cjs.js
CHANGED
|
@@ -40375,48 +40375,6 @@ var fallbackValues$D = {
|
|
|
40375
40375
|
bodyBackgroundColor: bodyBackgroundColor
|
|
40376
40376
|
};
|
|
40377
40377
|
|
|
40378
|
-
var ChevronIconWhite = function ChevronIconWhite(_ref) {
|
|
40379
|
-
var themeValues = _ref.themeValues,
|
|
40380
|
-
iconFill = _ref.iconFill;
|
|
40381
|
-
return /*#__PURE__*/React__default.createElement("svg", {
|
|
40382
|
-
width: "24",
|
|
40383
|
-
height: "24",
|
|
40384
|
-
viewBox: "0 0 24 24",
|
|
40385
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
40386
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
40387
|
-
style: {
|
|
40388
|
-
display: "inline-block",
|
|
40389
|
-
verticalAlign: "text-bottom"
|
|
40390
|
-
}
|
|
40391
|
-
}, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("polygon", {
|
|
40392
|
-
id: "icon-chevron-path-1",
|
|
40393
|
-
points: "10.4099998 6 9 7.40999976 13.5799996 11.9999996 9 16.5899995 10.4099998 17.9999993 16.4099994 11.9999996"
|
|
40394
|
-
})), /*#__PURE__*/React__default.createElement("g", {
|
|
40395
|
-
id: "icon-chevron-Icon/Chevron-Down",
|
|
40396
|
-
fill: "#ffffff",
|
|
40397
|
-
fillRule: "evenodd"
|
|
40398
|
-
}, /*#__PURE__*/React__default.createElement("mask", {
|
|
40399
|
-
id: "icon-chevron-mask-2"
|
|
40400
|
-
}, /*#__PURE__*/React__default.createElement("use", {
|
|
40401
|
-
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor,
|
|
40402
|
-
xlinkHref: "#icon-chevron-path-1"
|
|
40403
|
-
})), /*#__PURE__*/React__default.createElement("use", {
|
|
40404
|
-
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor,
|
|
40405
|
-
id: "icon-chevron-Fill-2",
|
|
40406
|
-
xlinkHref: "#icon-chevron-path-1"
|
|
40407
|
-
}), /*#__PURE__*/React__default.createElement("g", {
|
|
40408
|
-
id: "Colors/Blue-Dark",
|
|
40409
|
-
mask: "url(#icon-chevron-mask-2)",
|
|
40410
|
-
fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor
|
|
40411
|
-
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
40412
|
-
id: "icon-chevron-rect",
|
|
40413
|
-
width: "24",
|
|
40414
|
-
height: "24"
|
|
40415
|
-
}))));
|
|
40416
|
-
};
|
|
40417
|
-
|
|
40418
|
-
var ChevronIconWhite$1 = themeComponent(ChevronIconWhite, "Icons", fallbackValues$2, "secondary");
|
|
40419
|
-
|
|
40420
40378
|
var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
40421
40379
|
var _label$replaceAll;
|
|
40422
40380
|
|
|
@@ -40444,9 +40402,11 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
40444
40402
|
_ref$index = _ref.index,
|
|
40445
40403
|
index = _ref$index === void 0 ? 1 : _ref$index,
|
|
40446
40404
|
_ref$iconColor = _ref.iconColor,
|
|
40405
|
+
iconColor = _ref$iconColor === void 0 ? "" : _ref$iconColor,
|
|
40447
40406
|
_ref$extraStyles = _ref.extraStyles,
|
|
40448
40407
|
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
40449
|
-
CustomIcon = _ref.CustomIcon
|
|
40408
|
+
_ref$CustomIcon = _ref.CustomIcon,
|
|
40409
|
+
CustomIcon = _ref$CustomIcon === void 0 ? null : _ref$CustomIcon;
|
|
40450
40410
|
|
|
40451
40411
|
var handleKeyDown = function handleKeyDown(e) {
|
|
40452
40412
|
if (e.keyCode === 13) {
|
|
@@ -40525,7 +40485,11 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
40525
40485
|
}, title), /*#__PURE__*/React__default.createElement(Motion, {
|
|
40526
40486
|
variants: icon,
|
|
40527
40487
|
extraStyles: "display: flex; align-items: center;"
|
|
40528
|
-
}, CustomIcon ? /*#__PURE__*/React__default.createElement(CustomIcon,
|
|
40488
|
+
}, !!CustomIcon ? /*#__PURE__*/React__default.createElement(CustomIcon, {
|
|
40489
|
+
color: iconColor
|
|
40490
|
+
}) : /*#__PURE__*/React__default.createElement(ChevronIcon$1, {
|
|
40491
|
+
color: iconColor
|
|
40492
|
+
}))))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
|
|
40529
40493
|
initial: false
|
|
40530
40494
|
}, isOpen && /*#__PURE__*/React__default.createElement(Motion, {
|
|
40531
40495
|
padding: "0",
|