@equinor/amplify-component-lib 9.7.5 → 9.7.6
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.
|
@@ -9,6 +9,7 @@ type TemplateType = IStyledComponent<'web', any> & {
|
|
|
9
9
|
Content: typeof Content;
|
|
10
10
|
GlobalStyles: typeof GlobalStyles;
|
|
11
11
|
FullWidth: string;
|
|
12
|
+
WithoutScrollGutter: string;
|
|
12
13
|
};
|
|
13
14
|
export declare const Template: TemplateType;
|
|
14
15
|
export type { ContentProps, TemplateType };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{tokens as o}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import"../../atoms/style/colors.js";import{spacings as
|
|
1
|
+
import{tokens as o}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import"../../atoms/style/colors.js";import{spacings as t}from"../../atoms/style/spacings.js";import{darkTokens as i}from"../../atoms/style/darkTokens.js";import{lightTokens as e}from"../../atoms/style/lightTokens.js";import{spacingTokens as n}from"../../atoms/style/spacingTokens.js";import a,{createGlobalStyle as s}from"styled-components";const{colors:r}=o,l=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
min-height: 100vh;
|
|
5
5
|
min-width: 100vw;
|
|
6
6
|
background: ${r.ui.background__light.rgba};
|
|
7
|
-
`,
|
|
7
|
+
`,d=a.div`
|
|
8
8
|
display: flex;
|
|
9
|
-
`,c="fullwidth",m=a.div`
|
|
9
|
+
`,c="fullwidth",m="fullwidth-without-scroll",u=a.div`
|
|
10
10
|
position: relative;
|
|
11
11
|
display: flex;
|
|
12
12
|
/* 64px is height of TopBar */
|
|
@@ -17,11 +17,11 @@ import{tokens as o}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
|
|
|
17
17
|
min-width: calc(100% - ${o=>o.$open?"231px":"64px"});
|
|
18
18
|
&:not(:has(.${c})) {
|
|
19
19
|
padding: 0
|
|
20
|
-
max(${
|
|
20
|
+
max(${t.xxx_large}, calc(50% - ${t.xxx_large} - 1280px / 2));
|
|
21
21
|
margin: 0 auto;
|
|
22
22
|
}
|
|
23
23
|
`,p=s`
|
|
24
|
-
${
|
|
24
|
+
${i}
|
|
25
25
|
${e}
|
|
26
26
|
${n}
|
|
27
27
|
|
|
@@ -29,8 +29,8 @@ import{tokens as o}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
|
|
|
29
29
|
box-sizing: border-box;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
body, #content:not(:has(.select-field)) {
|
|
33
|
-
scrollbar-gutter: stable
|
|
32
|
+
body, #content:not(:has(.select-field), :has(.${m})) {
|
|
33
|
+
scrollbar-gutter: stable;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
dialog {
|
|
@@ -72,4 +72,4 @@ import{tokens as o}from"../../node_modules/@equinor/eds-tokens/dist/esm/base/ind
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
`,
|
|
75
|
+
`,h=l;h.Container=d,h.Content=u,h.GlobalStyles=p,h.FullWidth=c,h.WithoutScrollGutter=m;export{h as Template};
|