@dtdot/lego 0.17.13 → 0.17.14
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/build/components/MinimalMenu/_MinimalMenuPage.component.js +12 -8
- package/package.json +1 -1
- package/build/components/MinimalMenu/desktop/_DesktopMinimalMenuPage.component.d.ts +0 -6
- package/build/components/MinimalMenu/desktop/_DesktopMinimalMenuPage.component.js +0 -9
- package/build/components/MinimalMenu/mobile/_MobileMinimalMenuPage.component.d.ts +0 -6
- package/build/components/MinimalMenu/mobile/_MobileMinimalMenuPage.component.js +0 -9
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import responsive from '../../responsive/responsive';
|
|
4
|
+
const MinimalMenuPageContainer = styled.div `
|
|
5
|
+
${responsive.useStylesFor('tablet').andLarger(`
|
|
6
|
+
padding-left: 64px;
|
|
7
|
+
`)}
|
|
8
|
+
|
|
9
|
+
${responsive.useStylesFor('mobile').andSmaller(`
|
|
10
|
+
padding-bottom: 64px;
|
|
11
|
+
`)}
|
|
12
|
+
`;
|
|
5
13
|
const MinimalMenuPage = ({ children }) => {
|
|
6
|
-
|
|
7
|
-
if (isMobile) {
|
|
8
|
-
return React.createElement(MobileMinimalMenuPage, null, children);
|
|
9
|
-
}
|
|
10
|
-
return React.createElement(DesktopMinimalMenuPage, null, children);
|
|
14
|
+
return React.createElement(MinimalMenuPageContainer, null, children);
|
|
11
15
|
};
|
|
12
16
|
export default MinimalMenuPage;
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
const PageOuter = styled.div `
|
|
4
|
-
padding-left: 64px;
|
|
5
|
-
`;
|
|
6
|
-
const DesktopMinimalMenuPage = ({ children }) => {
|
|
7
|
-
return React.createElement(PageOuter, null, children);
|
|
8
|
-
};
|
|
9
|
-
export default DesktopMinimalMenuPage;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
const PageOuter = styled.div `
|
|
4
|
-
padding-bottom: 64px;
|
|
5
|
-
`;
|
|
6
|
-
const MobileMinimalMenuPage = ({ children }) => {
|
|
7
|
-
return React.createElement(PageOuter, null, children);
|
|
8
|
-
};
|
|
9
|
-
export default MobileMinimalMenuPage;
|