@typeolymp/ui-components 2.2.1 → 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 +7 -3
- package/build/index.es.js.map +1 -1
- package/build/index.js +7 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -17707,7 +17707,7 @@ var LocaleSelect = function (props) {
|
|
|
17707
17707
|
.map(function (locale) { return ({
|
|
17708
17708
|
onClick: function () { return onSelectLocale(locale); },
|
|
17709
17709
|
label: (jsxs(Fragment$1, { children: [jsx$1(Flag, { locale: locale }), !props.iconOnly && (jsx$1(Heading, __assign$2({ type: "h6", as: "span" }, { children: mappers.getNativeLanguageByLocale(locale) })))] })),
|
|
17710
|
-
}); }) }, { children: jsxs(Button,
|
|
17710
|
+
}); }) }, { children: jsxs(Button, { children: [jsx$1(Flag, { locale: selectedLocale }), !props.iconOnly && (jsx$1(Heading, __assign$2({ type: "h6", as: "span" }, { children: mappers.getNativeLanguageByLocale(selectedLocale) })))] }) })));
|
|
17711
17711
|
};
|
|
17712
17712
|
|
|
17713
17713
|
var Wrapper$1 = styled.div(templateObject_1$n || (templateObject_1$n = __makeTemplateObject$1(["\n width: 100%;\n min-width: 200px;\n display: flex;\n justify-content: space-between;\n\n > div {\n display: flex;\n align-items: center;\n }\n"], ["\n width: 100%;\n min-width: 200px;\n display: flex;\n justify-content: space-between;\n\n > div {\n display: flex;\n align-items: center;\n }\n"])));
|
|
@@ -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"])));
|