@evergis/react 3.1.54 → 3.1.55
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/components/Dashboard/types.d.ts +1 -0
- package/dist/index.js +9 -15
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +9 -15
- package/dist/react.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5120,13 +5120,6 @@ const Container = styled(uilibGl.Flex) `
|
|
|
5120
5120
|
align-items: center;
|
|
5121
5121
|
`}
|
|
5122
5122
|
|
|
5123
|
-
${({ isMain, isColumn }) => (isMain || isColumn) &&
|
|
5124
|
-
styled.css `
|
|
5125
|
-
> :not(:last-child) {
|
|
5126
|
-
margin-bottom: 1.5rem;
|
|
5127
|
-
}
|
|
5128
|
-
`}
|
|
5129
|
-
|
|
5130
5123
|
${({ isTitle }) => isTitle &&
|
|
5131
5124
|
styled.css `
|
|
5132
5125
|
&&&& {
|
|
@@ -5147,6 +5140,7 @@ const ContainerWrapper = styled(uilibGl.Flex) `
|
|
|
5147
5140
|
width: 100%;
|
|
5148
5141
|
background: ${({ theme: { palette } }) => palette.backgroundAlpha};
|
|
5149
5142
|
box-shadow: rgb(0 0 0 / 15%) 0 0.1875rem 0.625rem;
|
|
5143
|
+
margin-bottom: 2rem;
|
|
5150
5144
|
padding: 1.5rem;
|
|
5151
5145
|
border-radius: 0.5rem;
|
|
5152
5146
|
backdrop-filter: blur(20px);
|
|
@@ -5157,6 +5151,12 @@ const ContainerWrapper = styled(uilibGl.Flex) `
|
|
|
5157
5151
|
${Container} > :not(:last-child) {
|
|
5158
5152
|
margin-bottom: 1.5rem;
|
|
5159
5153
|
}
|
|
5154
|
+
|
|
5155
|
+
${({ $noMargin }) => $noMargin && styled.css `
|
|
5156
|
+
&&&& {
|
|
5157
|
+
margin-bottom: 0;
|
|
5158
|
+
}
|
|
5159
|
+
`}
|
|
5160
5160
|
`;
|
|
5161
5161
|
const DashboardChip = styled(uilibGl.Chip) `
|
|
5162
5162
|
margin: 0 0.25rem 0.25rem 0;
|
|
@@ -5221,12 +5221,6 @@ const DashboardWrapper = styled(uilibGl.Flex) `
|
|
|
5221
5221
|
width: calc(100% - 3rem);
|
|
5222
5222
|
height: calc(100% - ${LEFT_PANEL_HEADER_HEIGHT});
|
|
5223
5223
|
|
|
5224
|
-
> ${ContainerWrapper} {
|
|
5225
|
-
> * {
|
|
5226
|
-
margin-bottom: 2rem;
|
|
5227
|
-
}
|
|
5228
|
-
}
|
|
5229
|
-
|
|
5230
5224
|
${({ hasImage, isPresentationMode }) => hasImage &&
|
|
5231
5225
|
!isPresentationMode &&
|
|
5232
5226
|
styled.css `
|
|
@@ -10258,12 +10252,12 @@ const ContainerChildren = React.memo(({ items, isColumn, isMain, renderElement }
|
|
|
10258
10252
|
index,
|
|
10259
10253
|
wrap: isColumn || isMain,
|
|
10260
10254
|
});
|
|
10261
|
-
return isMain ? (jsxRuntime.jsx(ContainerWrapper, { id: item.id, "data-templatename": item.templateName, children: jsxRuntime.jsx(DashboardWrapper, { children: render }) }, index)) : (jsxRuntime.jsx(React.Fragment, { children: render }, index));
|
|
10255
|
+
return isMain ? (jsxRuntime.jsx(ContainerWrapper, { "data-id": item.id, "data-templatename": item.templateName, "$noMargin": item.options?.noMargin, children: jsxRuntime.jsx(DashboardWrapper, { children: render }) }, index)) : (jsxRuntime.jsx(React.Fragment, { children: render }, index));
|
|
10262
10256
|
}) }));
|
|
10263
10257
|
});
|
|
10264
10258
|
|
|
10265
10259
|
const DashboardLoading = React.memo(() => {
|
|
10266
|
-
return (jsxRuntime.jsx(Container, { noBorders: true, children: jsxRuntime.jsx(ContainerWrapper, { children: jsxRuntime.jsx(DashboardWrapper, { children: jsxRuntime.jsx(DashboardPlaceholderWrap, { children: jsxRuntime.jsxs(DashboardPlaceholder, { isLoading: true, children: [jsxRuntime.jsx(uilibGl.Icon, { kind: "dashboard_loading" }), jsxRuntime.jsx(uilibGl.Flex, { width: "8rem", children: jsxRuntime.jsx(uilibGl.LinearProgress, {}) })] }) }) }) }) }));
|
|
10260
|
+
return (jsxRuntime.jsx(Container, { noBorders: true, children: jsxRuntime.jsx(ContainerWrapper, { "$noMargin": true, children: jsxRuntime.jsx(DashboardWrapper, { children: jsxRuntime.jsx(DashboardPlaceholderWrap, { children: jsxRuntime.jsxs(DashboardPlaceholder, { isLoading: true, children: [jsxRuntime.jsx(uilibGl.Icon, { kind: "dashboard_loading" }), jsxRuntime.jsx(uilibGl.Flex, { width: "8rem", children: jsxRuntime.jsx(uilibGl.LinearProgress, {}) })] }) }) }) }) }));
|
|
10267
10261
|
});
|
|
10268
10262
|
|
|
10269
10263
|
const Dashboard = React.memo(({ type = exports.WidgetType.Dashboard, config, noBorders }) => {
|