@uxf/cms 10.0.0-beta.25 → 10.0.0-beta.27
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/lib/layout/layout.js +9 -6
- package/lib/layout/types.d.ts +1 -0
- package/package.json +1 -1
- package/ui/styles/layout.css +10 -0
package/lib/layout/layout.js
CHANGED
@@ -30,12 +30,15 @@ const Layout = (props) => {
|
|
30
30
|
props.ToolbarRight && (react_1.default.createElement("div", { className: "uxf-cms-layout__toolbar" }, props.ToolbarRight)),
|
31
31
|
props.MessageBar,
|
32
32
|
react_1.default.createElement(layout_container_1.LayoutContainer, { type: (_b = props.headerContainerType) !== null && _b !== void 0 ? _b : props.containerType, className: "uxf-cms-layout__container--basic" },
|
33
|
-
|
34
|
-
|
35
|
-
react_1.default.createElement("
|
36
|
-
|
37
|
-
|
38
|
-
|
33
|
+
react_1.default.createElement("div", { className: "uxf-cms-layout__avatar-title-wrapper" },
|
34
|
+
props.Avatar,
|
35
|
+
react_1.default.createElement("div", { className: "uxf-cms-layout__breadcrumbs-title-wrapper" },
|
36
|
+
props.breadcrumbs && react_1.default.createElement(breadcrumbs_1.Breadcrumbs, { items: props.breadcrumbs }),
|
37
|
+
react_1.default.createElement("div", { className: "uxf-cms-layout__title-wrapper" },
|
38
|
+
react_1.default.createElement("h1", { className: "uxf-cms-layout__title" }, props.title),
|
39
|
+
props.TitleRightContainer),
|
40
|
+
props.subtitle,
|
41
|
+
props.Header))))),
|
39
42
|
react_1.default.createElement(layout_container_1.LayoutContainer, { type: props.containerType }, props.children))))))));
|
40
43
|
};
|
41
44
|
exports.Layout = Layout;
|
package/lib/layout/types.d.ts
CHANGED
@@ -6,6 +6,7 @@ export interface LayoutContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
6
|
type?: LayoutContainerType;
|
7
7
|
}
|
8
8
|
export type LayoutProps = SidebarProps & {
|
9
|
+
Avatar?: ReactNode;
|
9
10
|
children?: ReactNode;
|
10
11
|
containerType?: LayoutContainerType;
|
11
12
|
headerContainerType?: LayoutContainerType;
|
package/package.json
CHANGED
package/ui/styles/layout.css
CHANGED
@@ -118,6 +118,16 @@
|
|
118
118
|
justify-content: space-between;
|
119
119
|
}
|
120
120
|
|
121
|
+
&__avatar-title-wrapper {
|
122
|
+
align-items: center;
|
123
|
+
display: flex;
|
124
|
+
gap: 20px;
|
125
|
+
}
|
126
|
+
|
127
|
+
&__breadcrumbs-title-wrapper {
|
128
|
+
width: 100%;
|
129
|
+
}
|
130
|
+
|
121
131
|
&__title {
|
122
132
|
@apply uxf-typo-h4;
|
123
133
|
}
|