@typeolymp/ui-components 2.2.2 → 2.2.3
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/build/index.es.js +6 -2
- package/build/index.es.js.map +1 -1
- package/build/index.js +6 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -17815,9 +17815,13 @@ var Popup = function (props) {
|
|
|
17815
17815
|
});
|
|
17816
17816
|
}
|
|
17817
17817
|
});
|
|
17818
|
-
return (jsxs(Fragment$1, { children: [children, jsxs(PopupContainer, __assign$2({}, position, { isVisible: isVisible, noStyle: props.noStyle, ref: popupRef, contrast: props.contrast }, { children: [props.title && (jsxs(Fragment$1, { children: [jsx$1(Heading, __assign$2({ type: "h6" }, { children: props.title })), jsx$1(Spacer, { vertical: 10 })] })), typeof props.content === "string" && (jsx$1(Paragraph, __assign$2({ size: "small", weight: "regular" }, { children: props.content }))),
|
|
17818
|
+
return (jsxs(Fragment$1, { children: [children, jsxs(PopupContainer, __assign$2({}, position, { isVisible: isVisible, noStyle: props.noStyle, ref: popupRef, contrast: props.contrast }, { children: [props.title && (jsxs(Fragment$1, { children: [jsx$1(Heading, __assign$2({ type: "h6" }, { children: props.title })), jsx$1(Spacer, { vertical: 10 })] })), typeof props.content === "string" && (jsx$1(Paragraph, __assign$2({ size: "small", weight: "regular" }, { children: props.content }))), typeof props.content !== "string" &&
|
|
17819
|
+
Array.isArray(props.content) &&
|
|
17819
17820
|
props.content.length > 0 &&
|
|
17820
|
-
props.content.map(function (item, index) { return (jsx$1(Paragraph, __assign$2({ size: "small", weight: "regular" }, { children: item }), "".concat(item, "-").concat(index))); }), typeof props.content
|
|
17821
|
+
props.content.map(function (item, index) { return (jsx$1(Paragraph, __assign$2({ size: "small", weight: "regular" }, { children: item }), "".concat(item, "-").concat(index))); }), typeof props.content !== "string" &&
|
|
17822
|
+
!Array.isArray(props.content) &&
|
|
17823
|
+
typeof props.content === "object" &&
|
|
17824
|
+
props.content] }))] }));
|
|
17821
17825
|
};
|
|
17822
17826
|
|
|
17823
17827
|
var Wrapper = styled.div(templateObject_1$i || (templateObject_1$i = __makeTemplateObject$1(["\n width: 100%;\n display: flex;\n align-items: center;\n"], ["\n width: 100%;\n display: flex;\n align-items: center;\n"])));
|