@maelstrom-futurism/layout 0.7.4 → 0.8.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/dist/Container.d.ts +2 -1
- package/dist/Container.d.ts.map +1 -1
- package/dist/Container.js +2 -1
- package/dist/Container.js.map +1 -1
- package/package.json +3 -3
package/dist/Container.d.ts
CHANGED
|
@@ -3,9 +3,10 @@ interface ContainerProps {
|
|
|
3
3
|
fluid?: boolean;
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
margin?: string;
|
|
6
|
+
padding?: string;
|
|
6
7
|
maxWidth?: string;
|
|
7
8
|
[rest: string]: any;
|
|
8
9
|
}
|
|
9
|
-
declare const Container: ({ fluid, children, margin, maxWidth, ...rest }: ContainerProps) => ReactNode;
|
|
10
|
+
declare const Container: ({ fluid, children, margin, padding, maxWidth, ...rest }: ContainerProps) => ReactNode;
|
|
10
11
|
export default Container;
|
|
11
12
|
//# sourceMappingURL=Container.d.ts.map
|
package/dist/Container.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../src/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,UAAU,cAAc;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;CACvB;AAED,QAAA,MAAM,SAAS,GAAI,
|
|
1
|
+
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../src/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,UAAU,cAAc;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;CACvB;AAED,QAAA,MAAM,SAAS,GAAI,yDAAyD,cAAc,KAAG,SAsC5F,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/dist/Container.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
|
2
2
|
import { css } from "@emotion/react";
|
|
3
3
|
import { useTheme } from "@maelstrom-futurism/core";
|
|
4
4
|
;
|
|
5
|
-
const Container = ({ fluid, children, margin, maxWidth, ...rest }) => {
|
|
5
|
+
const Container = ({ fluid, children, margin, padding, maxWidth, ...rest }) => {
|
|
6
6
|
const theme = useTheme();
|
|
7
7
|
let fWidth;
|
|
8
8
|
if (fluid) {
|
|
@@ -17,6 +17,7 @@ const Container = ({ fluid, children, margin, maxWidth, ...rest }) => {
|
|
|
17
17
|
// Necessary for some of the background calculations done in child components
|
|
18
18
|
background-color: ${theme.color("background")};
|
|
19
19
|
|
|
20
|
+
padding: ${padding ? padding : '0 1rem'};
|
|
20
21
|
padding-left: 1rem;
|
|
21
22
|
padding-right: 1rem;
|
|
22
23
|
|
package/dist/Container.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.js","sourceRoot":"","sources":["../src/Container.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"Container.js","sourceRoot":"","sources":["../src/Container.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AASnD,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAkB,EAAa,EAAE;IACrG,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,IAAI,MAAM,CAAC;IACX,IAAI,KAAK,EAAE,CAAC;QACR,MAAM,GAAG,MAAM,CAAC;IACpB,CAAC;IACD,IAAI,QAAQ,EAAE,CAAC;QACX,MAAM,GAAG,QAAQ,CAAC;IACtB,CAAC;IAED,OAAO,CACH,cAAK,GAAG,EAAE,GAAG,CAAA;sBACC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ;qBAC3B,MAAM;;gCAEK,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC;;uBAElC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;;;;iDAIF,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC;;;;iDAId,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC;6BAClC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;;;iDAGJ,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC;6BAClC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ;;aAEzC,KACG,IAAI,YAEP,QAAQ,GACP,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maelstrom-futurism/layout",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Basic layout components of MF",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layout",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"url": "https://github.com/DawsonG/maelstrom-futurism/issues"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@maelstrom-futurism/core": "^0.
|
|
42
|
+
"@maelstrom-futurism/core": "^0.8.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@emotion/react": ">= 11.10.5",
|
|
46
46
|
"react": ">= 18.0.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "38c4e6dff8d93b52e28b3ead27b9a187c6f4d365"
|
|
49
49
|
}
|