@evergis/react 3.1.27 → 3.1.28
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.js +6 -10
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +6 -10
- package/dist/react.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/react.esm.js
CHANGED
|
@@ -4512,7 +4512,7 @@ const Container = styled(Flex) `
|
|
|
4512
4512
|
${({ isMain, isColumn }) => (isMain || isColumn) &&
|
|
4513
4513
|
css `
|
|
4514
4514
|
> :not(:last-child) {
|
|
4515
|
-
margin-bottom:
|
|
4515
|
+
margin-bottom: 1.5rem;
|
|
4516
4516
|
}
|
|
4517
4517
|
`}
|
|
4518
4518
|
|
|
@@ -4526,8 +4526,7 @@ const Container = styled(Flex) `
|
|
|
4526
4526
|
${({ noBorders }) => noBorders && css `
|
|
4527
4527
|
${ContainerWrapper} {
|
|
4528
4528
|
box-shadow: none;
|
|
4529
|
-
padding
|
|
4530
|
-
padding-right: 0;
|
|
4529
|
+
padding: 0;
|
|
4531
4530
|
}
|
|
4532
4531
|
`}
|
|
4533
4532
|
`;
|
|
@@ -5959,7 +5958,7 @@ const ChartContainer = memo(({ elementConfig, isVisible, type, renderElement })
|
|
|
5959
5958
|
const hasItems = !!data[0]?.items?.length;
|
|
5960
5959
|
if (!loading && !hasItems && hideEmpty)
|
|
5961
5960
|
return null;
|
|
5962
|
-
return (jsxs(
|
|
5961
|
+
return (jsxs(FlexSpan, { flexDirection: "column", children: [jsx(ExpandableTitle, { elementConfig: elementConfig, type: type, renderElement: renderElement }), isVisible && (jsxs(Container, { isColumn: true, children: [aliasElement && jsx(ContainerAlias, { hasBottomMargin: true, children: renderElement({ id: "alias" }) }), jsx(ContainerValue, { column: !twoColumns, alignItems: "center", children: hasItems ? (jsxs(Fragment$1, { children: [jsx(ContainerChart, { children: renderElement({ id: "chart" }) }), jsx(ContainerLegend, { children: renderElement({ id: "legend" }) })] })) : (jsx(Fragment$1, { children: "\u2014" })) })] }))] }));
|
|
5963
5962
|
});
|
|
5964
5963
|
|
|
5965
5964
|
const PagesContainer = memo(({ type = WidgetType.Dashboard, noBorders }) => {
|
|
@@ -6470,7 +6469,7 @@ const RoundedBackgroundContainerWrapper = styled(Flex) `
|
|
|
6470
6469
|
|
|
6471
6470
|
${ContainerValue} {
|
|
6472
6471
|
flex-direction: ${({ $inlineUnits }) => ($inlineUnits ? "row" : "column")};
|
|
6473
|
-
justify-content: ${({ $big }) => ($big ? "flex-start" : "
|
|
6472
|
+
justify-content: ${({ $big }) => ($big ? "flex-start" : "center")};
|
|
6474
6473
|
align-items: ${({ $inlineUnits }) => ($inlineUnits ? "center" : "flex-start")};
|
|
6475
6474
|
line-height: 1;
|
|
6476
6475
|
}
|
|
@@ -6767,6 +6766,7 @@ const Header = styled(Flex) `
|
|
|
6767
6766
|
top: 0;
|
|
6768
6767
|
flex-shrink: 0;
|
|
6769
6768
|
overflow: hidden;
|
|
6769
|
+
width: 100%;
|
|
6770
6770
|
padding: 0.5rem;
|
|
6771
6771
|
|
|
6772
6772
|
${HeaderContainer} {
|
|
@@ -6854,8 +6854,6 @@ const HeaderFontColorMixin$1 = css `
|
|
|
6854
6854
|
}
|
|
6855
6855
|
`;
|
|
6856
6856
|
const HeaderWrapperMixin$1 = css `
|
|
6857
|
-
padding: 0.5rem 0.5rem 0;
|
|
6858
|
-
|
|
6859
6857
|
${Header} {
|
|
6860
6858
|
min-height: 5.25rem;
|
|
6861
6859
|
}
|
|
@@ -6920,8 +6918,6 @@ const HeaderFontColorMixin = css `
|
|
|
6920
6918
|
}
|
|
6921
6919
|
`;
|
|
6922
6920
|
const HeaderWrapperMixin = css `
|
|
6923
|
-
padding: 0.5rem 0.5rem 0;
|
|
6924
|
-
|
|
6925
6921
|
${Header} {
|
|
6926
6922
|
min-height: 5.25rem;
|
|
6927
6923
|
}
|
|
@@ -6979,7 +6975,7 @@ const BigIconHeaderMixin = css `
|
|
|
6979
6975
|
`;
|
|
6980
6976
|
const IconHeaderWrapper = styled.div `
|
|
6981
6977
|
${Header} {
|
|
6982
|
-
width: calc(100% +
|
|
6978
|
+
width: calc(100% + 1.5rem);
|
|
6983
6979
|
margin: -1.5rem -1.5rem 0 -1.5rem;
|
|
6984
6980
|
padding: 1.5rem;
|
|
6985
6981
|
border-top-left-radius: 0.5rem;
|