@thecb/components 7.7.3-beta.3 → 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 +12 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +12 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/popover/Popover.js +9 -5
- package/src/components/molecules/popover/index.d.ts +3 -0
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 >
|
|
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
|
|
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:
|
|
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
|
|