@equinor/amplify-component-lib 9.7.5 → 9.7.7

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.
@@ -17,7 +17,7 @@ interface MultiSelectBase<T extends SelectOptionRequired> {
17
17
  syncParentChildSelection?: boolean;
18
18
  }
19
19
  type MultiSelectWithSelectedAsText<T extends SelectOptionRequired> = {
20
- showSelectedAsText: true;
20
+ showSelectedAsText: boolean;
21
21
  } & MultiSelectBase<T>;
22
22
  type MultiSelectWithCustomValueComponent<T extends SelectOptionRequired> = {
23
23
  showSelectedAsText?: undefined;
@@ -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 i}from"../../atoms/style/spacings.js";import{darkTokens as t}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,d=a.div`
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
- `,l=a.div`
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(${i.xxx_large}, calc(50% - ${i.xxx_large} - 1280px / 2));
20
+ max(${t.xxx_large}, calc(50% - ${t.xxx_large} - 1280px / 2));
21
21
  margin: 0 auto;
22
22
  }
23
23
  `,p=s`
24
- ${t}
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 both-edges;
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
- `,u=d;u.Container=l,u.Content=m,u.GlobalStyles=p,u.FullWidth=c;export{u as Template};
75
+ `,h=l;h.Container=d,h.Content=u,h.GlobalStyles=p,h.FullWidth=c,h.WithoutScrollGutter=m;export{h as Template};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/amplify-component-lib",
3
- "version": "9.7.5",
3
+ "version": "9.7.7",
4
4
  "description": "Frontend Typescript components for the Amplify team",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",