@thecb/components 7.7.3-beta.2 → 7.7.3-beta.4

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
@@ -23696,10 +23696,10 @@ var fallbackValues$i = {
23696
23696
  popoverTriggerColor: popoverTriggerColor
23697
23697
  };
23698
23698
 
23699
- var arrowBorder = function arrowBorder(direction) {
23700
- var width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "8px";
23699
+ var arrowBorder = function arrowBorder(borderColor, direction) {
23700
+ var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
23701
23701
  var angle = "".concat(width, " solid transparent");
23702
- var straight = "".concat(width, " solid rgba(255, 255, 255, 0.85)");
23702
+ var straight = "".concat(width, " solid ").concat(borderColor);
23703
23703
 
23704
23704
  if (direction == "down") {
23705
23705
  return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
@@ -23741,7 +23741,12 @@ var Popover = function Popover(_ref) {
23741
23741
  arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
23742
23742
  _ref$transform = _ref.transform,
23743
23743
  transform = _ref$transform === void 0 ? "none" : _ref$transform,
23744
- buttonExtraStyles = _ref.buttonExtraStyles;
23744
+ buttonExtraStyles = _ref.buttonExtraStyles,
23745
+ _ref$backgroundColor = _ref.backgroundColor,
23746
+ backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
23747
+ _ref$borderColor = _ref.borderColor,
23748
+ borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
23749
+ popoverExtraStyles = _ref.popoverExtraStyles;
23745
23750
  var hoverColor = themeValues.hoverColor,
23746
23751
  activeColor = themeValues.activeColor,
23747
23752
  popoverTriggerColor = themeValues.popoverTriggerColor;
@@ -23827,7 +23832,7 @@ var Popover = function Popover(_ref) {
23827
23832
  color: popoverTriggerColor,
23828
23833
  extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
23829
23834
  }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
23830
- background: "white",
23835
+ background: backgroundColor,
23831
23836
  borderRadius: "4px",
23832
23837
  boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
23833
23838
  id: "Disclosed".concat(popoverID),
@@ -23836,10 +23841,10 @@ var Popover = function Popover(_ref) {
23836
23841
  tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
23837
23842
  minWidth: minWidth,
23838
23843
  maxWidth: maxWidth,
23839
- extraStyles: "\n display: ".concat(popoverOpen ? "block" : "none", "; \n position: absolute; \n top: ").concat(top, "; \n right: ").concat(right, "; \n bottom: ").concat(bottom, "; \n left: ").concat(left, ";\n height: ").concat(height, ";\n transform: ").concat(transform, ";\n ")
23844
+ extraStyles: "\n display: ".concat(popoverOpen ? "block" : "none", "; \n position: absolute; \n top: ").concat(top, "; \n right: ").concat(right, "; \n bottom: ").concat(bottom, "; \n left: ").concat(left, ";\n height: ").concat(height, ";\n transform: ").concat(transform, ";\n ").concat(popoverExtraStyles, ";\n ")
23840
23845
  }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
23841
23846
  padding: "0",
23842
- extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
23847
+ extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(borderColor, arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
23843
23848
  })));
23844
23849
  };
23845
23850
 
@@ -36427,7 +36432,7 @@ var LoadingLine = function LoadingLine(_ref) {
36427
36432
  var Table_styled = styled__default.table.withConfig({
36428
36433
  displayName: "Tablestyled",
36429
36434
  componentId: "sc-mveye7-0"
36430
- })(["width:100%;table-layout:auto;", ""], function (_ref) {
36435
+ })(["width:100%;table-layout:auto;border-collapse:collapse;", ""], function (_ref) {
36431
36436
  var extraStyles = _ref.extraStyles;
36432
36437
  return extraStyles;
36433
36438
  });
@@ -36443,11 +36448,20 @@ var TableBody_styled = styled__default.tbody.withConfig({
36443
36448
  var TableCell_styled = styled__default.td.withConfig({
36444
36449
  displayName: "TableCellstyled",
36445
36450
  componentId: "sc-iqndn8-0"
36446
- })(["padding:", ";font-size:0.875rem;white-space:nowrap;max-width:250px;overflow:hidden;text-overflow:ellipsis;&:last-child{text-align:right;}", ";"], function (_ref) {
36447
- var padding = _ref.padding;
36448
- return padding ? padding : "24px";
36451
+ })(["padding:", ";font-size:", " white-space:nowrap;max-width:", ";overflow:hidden;text-overflow:ellipsis;&:last-child{text-align:right;}", ";"], function (_ref) {
36452
+ var _ref$padding = _ref.padding,
36453
+ padding = _ref$padding === void 0 ? "24px" : _ref$padding;
36454
+ return padding;
36449
36455
  }, function (_ref2) {
36450
- var extraStyles = _ref2.extraStyles;
36456
+ var _ref2$fontSize = _ref2.fontSize,
36457
+ fontSize = _ref2$fontSize === void 0 ? "0.875rem" : _ref2$fontSize;
36458
+ return fontSize;
36459
+ }, function (_ref3) {
36460
+ var _ref3$maxWidth = _ref3.maxWidth,
36461
+ maxWidth = _ref3$maxWidth === void 0 ? "250px" : _ref3$maxWidth;
36462
+ return maxWidth;
36463
+ }, function (_ref4) {
36464
+ var extraStyles = _ref4.extraStyles;
36451
36465
  return extraStyles;
36452
36466
  });
36453
36467
 
@@ -36461,12 +36475,16 @@ var fallbackValues$A = {
36461
36475
  var StyledTableHead = styled__default.thead.withConfig({
36462
36476
  displayName: "TableHeadstyled",
36463
36477
  componentId: "sc-j8e6c1-0"
36464
- })(["background-color:", ";border-bottom:", ";font-size:0.875rem;"], function (_ref) {
36478
+ })(["background-color:", ";border-bottom:", ";font-size:", ";"], function (_ref) {
36465
36479
  var backgroundColor = _ref.backgroundColor;
36466
36480
  return backgroundColor;
36467
36481
  }, function (_ref2) {
36468
36482
  var borderColor = _ref2.borderColor;
36469
36483
  return "1px solid ".concat(borderColor);
36484
+ }, function (_ref3) {
36485
+ var _ref3$fontSize = _ref3.fontSize,
36486
+ fontSize = _ref3$fontSize === void 0 ? "0.875rem" : _ref3$fontSize;
36487
+ return fontSize;
36470
36488
  });
36471
36489
 
36472
36490
  var borderColor$4 = GREY_CHATEAU;
@@ -36534,11 +36552,16 @@ var TableHead$1 = themeComponent(TableHead, "TableHead", fallbackValues$A);
36534
36552
  var TableHeading_styled = styled__default.th.withConfig({
36535
36553
  displayName: "TableHeadingstyled",
36536
36554
  componentId: "sc-1ggk38d-0"
36537
- })(["padding:24px;min-width:", ";text-align:left;&:last-child{text-align:right;}", ""], function (_ref) {
36538
- var minWidth = _ref.minWidth;
36539
- return minWidth ? minWidth : "initial";
36555
+ })(["padding:", ";min-width:", ";text-align:left;&:last-child{text-align:right;}", ""], function (_ref) {
36556
+ var _ref$padding = _ref.padding,
36557
+ padding = _ref$padding === void 0 ? "24px" : _ref$padding;
36558
+ return padding;
36540
36559
  }, function (_ref2) {
36541
- var extraStyles = _ref2.extraStyles;
36560
+ var _ref2$minWidth = _ref2.minWidth,
36561
+ minWidth = _ref2$minWidth === void 0 ? "initial" : _ref2$minWidth;
36562
+ return minWidth;
36563
+ }, function (_ref3) {
36564
+ var extraStyles = _ref3.extraStyles;
36542
36565
  return extraStyles;
36543
36566
  });
36544
36567