@dtdot/lego 0.17.13 → 0.17.16
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/build/global/BodyStyle.component.js +1 -1
- package/package.json +2 -3
- 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;
|
|
@@ -6,7 +6,7 @@ const BodyStyle = createGlobalStyle `
|
|
|
6
6
|
'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
7
7
|
-webkit-font-smoothing: antialiased;
|
|
8
8
|
-moz-osx-font-smoothing: grayscale;
|
|
9
|
-
background-color:
|
|
9
|
+
background-color: ${(props) => props.theme.colours.background};
|
|
10
10
|
|
|
11
11
|
* {
|
|
12
12
|
box-sizing: border-box;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dtdot/lego",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.16",
|
|
4
4
|
"description": "Some reusable components for building my applications",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"eslint-plugin-prettier": "^3.4.1",
|
|
41
41
|
"eslint-plugin-react": "^7.28.0",
|
|
42
42
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
43
|
-
"framer-motion": "^6.2.6",
|
|
44
43
|
"prettier": "^2.5.1",
|
|
45
44
|
"prettier-eslint": "^12.0.0",
|
|
46
45
|
"react": "^17.0.2",
|
|
@@ -50,7 +49,6 @@
|
|
|
50
49
|
"typescript": "^4.5.5"
|
|
51
50
|
},
|
|
52
51
|
"peerDependencies": {
|
|
53
|
-
"framer-motion": "^6.2.6",
|
|
54
52
|
"react": "^17.0.1",
|
|
55
53
|
"react-dom": "^17.0.1",
|
|
56
54
|
"styled-components": "^5.2.1"
|
|
@@ -59,6 +57,7 @@
|
|
|
59
57
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
60
58
|
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
|
61
59
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
60
|
+
"framer-motion": "^6.2.8",
|
|
62
61
|
"identicon.js": "^2.3.3",
|
|
63
62
|
"qrcode": "^1.5.0",
|
|
64
63
|
"react-use-measure": "^2.1.1",
|
|
@@ -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;
|