@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.d.ts
CHANGED
|
@@ -431,6 +431,9 @@ interface PopoverProps {
|
|
|
431
431
|
arrowDirection?: "left" | "right" | "top" | "bottom";
|
|
432
432
|
transform?: string;
|
|
433
433
|
disclosedExtraStyles?: string;
|
|
434
|
+
borderColor?: string;
|
|
435
|
+
backgroundColor?: string;
|
|
436
|
+
popoverExtraStyles?: string;
|
|
434
437
|
}
|
|
435
438
|
|
|
436
439
|
declare const Popover: React.FC<Expand<PopoverProps> &
|
package/dist/index.esm.js
CHANGED
|
@@ -23688,10 +23688,10 @@ var fallbackValues$i = {
|
|
|
23688
23688
|
popoverTriggerColor: popoverTriggerColor
|
|
23689
23689
|
};
|
|
23690
23690
|
|
|
23691
|
-
var arrowBorder = function arrowBorder(direction) {
|
|
23692
|
-
var width = arguments.length >
|
|
23691
|
+
var arrowBorder = function arrowBorder(borderColor, direction) {
|
|
23692
|
+
var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
|
|
23693
23693
|
var angle = "".concat(width, " solid transparent");
|
|
23694
|
-
var straight = "".concat(width, " solid
|
|
23694
|
+
var straight = "".concat(width, " solid ").concat(borderColor);
|
|
23695
23695
|
|
|
23696
23696
|
if (direction == "down") {
|
|
23697
23697
|
return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
|
|
@@ -23733,7 +23733,12 @@ var Popover = function Popover(_ref) {
|
|
|
23733
23733
|
arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
|
|
23734
23734
|
_ref$transform = _ref.transform,
|
|
23735
23735
|
transform = _ref$transform === void 0 ? "none" : _ref$transform,
|
|
23736
|
-
buttonExtraStyles = _ref.buttonExtraStyles
|
|
23736
|
+
buttonExtraStyles = _ref.buttonExtraStyles,
|
|
23737
|
+
_ref$backgroundColor = _ref.backgroundColor,
|
|
23738
|
+
backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
|
|
23739
|
+
_ref$borderColor = _ref.borderColor,
|
|
23740
|
+
borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
|
|
23741
|
+
popoverExtraStyles = _ref.popoverExtraStyles;
|
|
23737
23742
|
var hoverColor = themeValues.hoverColor,
|
|
23738
23743
|
activeColor = themeValues.activeColor,
|
|
23739
23744
|
popoverTriggerColor = themeValues.popoverTriggerColor;
|
|
@@ -23819,7 +23824,7 @@ var Popover = function Popover(_ref) {
|
|
|
23819
23824
|
color: popoverTriggerColor,
|
|
23820
23825
|
extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
|
|
23821
23826
|
}, triggerText)), /*#__PURE__*/React.createElement(Box, {
|
|
23822
|
-
background:
|
|
23827
|
+
background: backgroundColor,
|
|
23823
23828
|
borderRadius: "4px",
|
|
23824
23829
|
boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
|
|
23825
23830
|
id: "Disclosed".concat(popoverID),
|
|
@@ -23828,10 +23833,10 @@ var Popover = function Popover(_ref) {
|
|
|
23828
23833
|
tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
|
|
23829
23834
|
minWidth: minWidth,
|
|
23830
23835
|
maxWidth: maxWidth,
|
|
23831
|
-
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 ")
|
|
23836
|
+
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 ")
|
|
23832
23837
|
}, /*#__PURE__*/React.createElement(Paragraph$1, null, content), /*#__PURE__*/React.createElement(Box, {
|
|
23833
23838
|
padding: "0",
|
|
23834
|
-
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 ")
|
|
23839
|
+
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 ")
|
|
23835
23840
|
})));
|
|
23836
23841
|
};
|
|
23837
23842
|
|