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

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,6 +40375,48 @@ 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
+
40378
40420
  var CollapsibleSection = function CollapsibleSection(_ref) {
40379
40421
  var _label$replaceAll;
40380
40422
 
@@ -40401,8 +40443,10 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
40401
40443
  name = _ref$name === void 0 ? "" : _ref$name,
40402
40444
  _ref$index = _ref.index,
40403
40445
  index = _ref$index === void 0 ? 1 : _ref$index,
40404
- _ref$headerEl = _ref.headerEl,
40405
- headerEl = _ref$headerEl === void 0 ? null : _ref$headerEl;
40446
+ _ref$iconColor = _ref.iconColor,
40447
+ _ref$extraStyles = _ref.extraStyles,
40448
+ extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
40449
+ CustomIcon = _ref.CustomIcon;
40406
40450
 
40407
40451
  var handleKeyDown = function handleKeyDown(e) {
40408
40452
  if (e.keyCode === 13) {
@@ -40462,7 +40506,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
40462
40506
  hoverStyles: "cursor: pointer;",
40463
40507
  tabIndex: "0",
40464
40508
  onKeyDown: handleKeyDown,
40465
- extraStyles: "z-index: 25;",
40509
+ extraStyles: "z-index: 25;".concat(extraStyles),
40466
40510
  role: "button",
40467
40511
  "aria-expanded": isOpen.toString(),
40468
40512
  "aria-controls": id,
@@ -40472,20 +40516,16 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
40472
40516
  align: "center"
40473
40517
  }, customTitle ? /*#__PURE__*/React__default.createElement(Box, {
40474
40518
  width: "calc(100% - 36px)",
40475
- padding: "0px",
40476
- id: "cristin"
40477
- }, headerEl ? headerEl : title) : /*#__PURE__*/React__default.createElement(Title$1, {
40519
+ padding: "0"
40520
+ }, title) : /*#__PURE__*/React__default.createElement(Title$1, {
40478
40521
  weight: FONT_WEIGHT_SEMIBOLD,
40479
40522
  color: themeValues.titleColor,
40480
40523
  as: "h6",
40481
- variant: "small",
40482
- id: "cristin"
40483
- }, headerEl ? headerEl : title), /*#__PURE__*/React__default.createElement(Motion, {
40524
+ variant: "small"
40525
+ }, title), /*#__PURE__*/React__default.createElement(Motion, {
40484
40526
  variants: icon,
40485
40527
  extraStyles: "display: flex; align-items: center;"
40486
- }, /*#__PURE__*/React__default.createElement(ChevronIcon$1, {
40487
- color: iconColor ? iconColor : null
40488
- }))))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
40528
+ }, CustomIcon ? /*#__PURE__*/React__default.createElement(CustomIcon, null) : /*#__PURE__*/React__default.createElement(ChevronIconWhite$1, null))))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
40489
40529
  initial: false
40490
40530
  }, isOpen && /*#__PURE__*/React__default.createElement(Motion, {
40491
40531
  padding: "0",