@etsoo/toolpad 1.0.16 → 1.0.17

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.
@@ -124,9 +124,9 @@ function PageContainer(props) {
124
124
  externalSlotProps: props?.slotProps?.toolbar,
125
125
  additionalProps: {}
126
126
  });
127
- return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { sx: { my: 2 }, spacing: 2, ...rest, children: [(0, jsx_runtime_1.jsxs)(Stack_1.default, { children: [(0, jsx_runtime_1.jsx)(Breadcrumbs_1.default, { "aria-label": "breadcrumb", children: resolvedBreadcrumbs
127
+ return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { sx: { m: 2 }, spacing: 2, ...rest, children: [(0, jsx_runtime_1.jsxs)(Stack_1.default, { children: [(0, jsx_runtime_1.jsx)(Breadcrumbs_1.default, { "aria-label": "breadcrumb", children: resolvedBreadcrumbs
128
128
  ? resolvedBreadcrumbs.map((item, index) => {
129
129
  return index < resolvedBreadcrumbs.length - 1 ? ((0, jsx_runtime_1.jsx)(Link_1.default, { component: Link_2.Link, underline: "hover", color: "inherit", href: item.path, children: (0, navigation_1.getItemTitle)(item) }, item.path)) : ((0, jsx_runtime_1.jsx)(Typography_1.default, { color: "text.primary", children: (0, navigation_1.getItemTitle)(item) }, item.path));
130
130
  })
131
- : null }), (0, jsx_runtime_1.jsxs)(PageContentHeader, { children: [title ? (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "h4", children: title }) : null, (0, jsx_runtime_1.jsx)(ToolbarComponent, { ...toolbarSlotProps })] })] }), (0, jsx_runtime_1.jsx)("div", { children: children })] }));
131
+ : null }), (0, jsx_runtime_1.jsxs)(PageContentHeader, { children: [title ? (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "h4", children: title }) : null, (0, jsx_runtime_1.jsx)(ToolbarComponent, { ...toolbarSlotProps })] })] }), children] }));
132
132
  }
@@ -83,10 +83,10 @@ function PageContainer(props) {
83
83
  externalSlotProps: props?.slotProps?.toolbar,
84
84
  additionalProps: {}
85
85
  });
86
- return (_jsxs(Stack, { sx: { my: 2 }, spacing: 2, ...rest, children: [_jsxs(Stack, { children: [_jsx(Breadcrumbs, { "aria-label": "breadcrumb", children: resolvedBreadcrumbs
86
+ return (_jsxs(Stack, { sx: { m: 2 }, spacing: 2, ...rest, children: [_jsxs(Stack, { children: [_jsx(Breadcrumbs, { "aria-label": "breadcrumb", children: resolvedBreadcrumbs
87
87
  ? resolvedBreadcrumbs.map((item, index) => {
88
88
  return index < resolvedBreadcrumbs.length - 1 ? (_jsx(Link, { component: ToolpadLink, underline: "hover", color: "inherit", href: item.path, children: getItemTitle(item) }, item.path)) : (_jsx(Typography, { color: "text.primary", children: getItemTitle(item) }, item.path));
89
89
  })
90
- : null }), _jsxs(PageContentHeader, { children: [title ? _jsx(Typography, { variant: "h4", children: title }) : null, _jsx(ToolbarComponent, { ...toolbarSlotProps })] })] }), _jsx("div", { children: children })] }));
90
+ : null }), _jsxs(PageContentHeader, { children: [title ? _jsx(Typography, { variant: "h4", children: title }) : null, _jsx(ToolbarComponent, { ...toolbarSlotProps })] })] }), children] }));
91
91
  }
92
92
  export { PageContainer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/toolpad",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "author": "ETSOO",
5
5
  "description": "Dashboard framework extention based on Toolpad Core",
6
6
  "main": "build/cjs/index.js",
@@ -154,7 +154,7 @@ function PageContainer(props: PageContainerProps) {
154
154
  });
155
155
 
156
156
  return (
157
- <Stack sx={{ my: 2 }} spacing={2} {...rest}>
157
+ <Stack sx={{ m: 2 }} spacing={2} {...rest}>
158
158
  <Stack>
159
159
  <Breadcrumbs aria-label="breadcrumb">
160
160
  {resolvedBreadcrumbs
@@ -177,13 +177,12 @@ function PageContainer(props: PageContainerProps) {
177
177
  })
178
178
  : null}
179
179
  </Breadcrumbs>
180
-
181
180
  <PageContentHeader>
182
181
  {title ? <Typography variant="h4">{title}</Typography> : null}
183
182
  <ToolbarComponent {...toolbarSlotProps} />
184
183
  </PageContentHeader>
185
184
  </Stack>
186
- <div>{children}</div>
185
+ {children}
187
186
  </Stack>
188
187
  );
189
188
  }