@synerise/ds-layout 0.14.18 → 0.15.0
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/CHANGELOG.md +19 -0
- package/dist/Page/Page.d.ts +4 -3
- package/dist/Page/Page.js +7 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.15.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-layout@0.14.19...@synerise/ds-layout@0.15.0) (2024-08-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **layout:** add className prop to Page component ([2ee7788](https://github.com/synerise/synerise-design/commit/2ee7788c245e8767f577d0b6d24490cb7fe5007a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.14.19](https://github.com/synerise/synerise-design/compare/@synerise/ds-layout@0.14.18...@synerise/ds-layout@0.14.19) (2024-07-31)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-layout
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.14.18](https://github.com/synerise/synerise-design/compare/@synerise/ds-layout@0.14.17...@synerise/ds-layout@0.14.18) (2024-07-15)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-layout
|
package/dist/Page/Page.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
type
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type PageProps = {
|
|
3
3
|
navBar?: React.ReactNode;
|
|
4
4
|
appMenu?: React.Component;
|
|
5
5
|
children: JSX.Element;
|
|
6
|
+
className?: string;
|
|
6
7
|
};
|
|
7
|
-
declare const Page: React.
|
|
8
|
+
declare const Page: ({ navBar, appMenu, children, className }: PageProps) => React.JSX.Element;
|
|
8
9
|
export default Page;
|
package/dist/Page/Page.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
2
|
import * as S from './Page.styles';
|
|
3
3
|
|
|
4
4
|
var Page = function Page(_ref) {
|
|
5
5
|
var navBar = _ref.navBar,
|
|
6
6
|
appMenu = _ref.appMenu,
|
|
7
|
-
children = _ref.children
|
|
8
|
-
|
|
7
|
+
children = _ref.children,
|
|
8
|
+
className = _ref.className;
|
|
9
|
+
var renderAppMenu = useMemo(function () {
|
|
9
10
|
if (appMenu) {
|
|
10
11
|
// @ts-ignore
|
|
11
12
|
return React.cloneElement(appMenu, {
|
|
@@ -15,7 +16,9 @@ var Page = function Page(_ref) {
|
|
|
15
16
|
|
|
16
17
|
return null;
|
|
17
18
|
}, [appMenu, navBar]);
|
|
18
|
-
return /*#__PURE__*/React.createElement(S.PageContainer,
|
|
19
|
+
return /*#__PURE__*/React.createElement(S.PageContainer, {
|
|
20
|
+
className: className
|
|
21
|
+
}, navBar, /*#__PURE__*/React.createElement(S.ContentWrapper, {
|
|
19
22
|
withNavBar: Boolean(navBar)
|
|
20
23
|
}, /*#__PURE__*/React.createElement(S.MenuWrapper, {
|
|
21
24
|
withAppMenu: Boolean(appMenu)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-layout",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Layout UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@synerise/ds-icon": "^0.64.1",
|
|
37
37
|
"@synerise/ds-scrollbar": "^0.11.4",
|
|
38
|
-
"@synerise/ds-utils": "^0.28.
|
|
38
|
+
"@synerise/ds-utils": "^0.28.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@synerise/ds-core": "*",
|
|
42
42
|
"react": ">=16.9.0 <= 17.0.2",
|
|
43
43
|
"styled-components": "5.0.1"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "fa49911755b906a6990b19d13abae131b0737a3a"
|
|
46
46
|
}
|