@danske/sapphire-css 26.1.0 → 26.2.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.
@@ -1,5 +1,5 @@
1
1
  export { default as tokens } from '@danske/sapphire-design-tokens/build/themes';
2
- export declare type Theme = {
2
+ export interface Theme {
3
3
  themeClassName: string;
4
4
  contrastThemeClassName: string;
5
- };
5
+ }
@@ -1,5 +1,5 @@
1
1
  export { default as tokens } from '@danske/sapphire-design-tokens/build/themes';
2
- export declare type Theme = {
2
+ export interface Theme {
3
3
  themeClassName: string;
4
4
  contrastThemeClassName: string;
5
- };
5
+ }
@@ -1,8 +1,36 @@
1
+ @keyframes fade-in {
2
+ from {
3
+ background-color: transparent;
4
+ }
5
+
6
+ to {
7
+ background-color: var(--sapphire-backdrop-color-background);
8
+ }
9
+ }
10
+
11
+ @keyframes fade-out {
12
+ from {
13
+ background-color: var(--sapphire-backdrop-color-background);
14
+ }
15
+
16
+ to {
17
+ background-color: transparent;
18
+ }
19
+ }
20
+
1
21
  .sapphire-backdrop {
2
22
  width: 100%;
3
23
  height: 100%;
4
- background-color: var(--sapphire-backdrop-color-background);
5
24
  display: flex;
6
25
  justify-content: center;
7
26
  align-items: center;
27
+
28
+ animation-name: fade-in;
29
+ animation-duration: var(--sapphire-backdrop-time-transition);
30
+ animation-timing-function: ease-in-out;
31
+ animation-fill-mode: forwards;
32
+ }
33
+
34
+ .sapphire-backdrop--exiting {
35
+ animation-name: fade-out;
8
36
  }
@@ -1,5 +1,8 @@
1
1
  declare const styles: {
2
2
  readonly "sapphire-backdrop": string;
3
+ readonly "fade-in": string;
4
+ readonly "sapphire-backdrop--exiting": string;
5
+ readonly "fade-out": string;
3
6
  };
4
7
  export = styles;
5
8
 
@@ -592,6 +592,12 @@ a.sapphire-button {
592
592
  font-size: var(--sapphire-button-size-font-l);
593
593
  border-radius: var(--sapphire-button-size-radius-l);
594
594
  }
595
+ .sapphire-button--large.sapphire-button--secondary-text,
596
+ .sapphire-button--large.sapphire-button--tertiary-text,
597
+ .sapphire-button--large.sapphire-button--danger-text {
598
+ padding: 0;
599
+ border-radius: var(--sapphire-button-size-radius-text);
600
+ }
595
601
 
596
602
  /**
597
603
  * SMALL
@@ -603,3 +609,9 @@ a.sapphire-button {
603
609
  font-size: var(--sapphire-button-size-font-s);
604
610
  border-radius: var(--sapphire-button-size-radius-s);
605
611
  }
612
+ .sapphire-button--small.sapphire-button--secondary-text,
613
+ .sapphire-button--small.sapphire-button--tertiary-text,
614
+ .sapphire-button--small.sapphire-button--danger-text {
615
+ padding: 0;
616
+ border-radius: var(--sapphire-button-size-radius-text);
617
+ }
@@ -1,3 +1,23 @@
1
+ @keyframes fade-in {
2
+ from {
3
+ opacity: 0;
4
+ }
5
+
6
+ to {
7
+ opacity: 1;
8
+ }
9
+ }
10
+
11
+ @keyframes fade-out {
12
+ from {
13
+ opacity: 1;
14
+ }
15
+
16
+ to {
17
+ opacity: 0;
18
+ }
19
+ }
20
+
1
21
  .sapphire-dialog {
2
22
  border-radius: var(--sapphire-dialog-size-radius);
3
23
  background-color: var(--sapphire-dialog-color-background);
@@ -12,6 +32,15 @@
12
32
  /* if implemented as focusable, we don't want the outline because this is not
13
33
  * an an interactive element in itself */
14
34
  outline: none;
35
+
36
+ animation-name: fade-in;
37
+ animation-duration: var(--sapphire-dialog-time-transition);
38
+ animation-timing-function: ease-in-out;
39
+ animation-fill-mode: forwards;
40
+ }
41
+
42
+ .sapphire-dialog--exiting {
43
+ animation-name: fade-out;
15
44
  }
16
45
 
17
46
  .sapphire-dialog--small {
@@ -1,5 +1,8 @@
1
1
  declare const styles: {
2
2
  readonly "sapphire-dialog": string;
3
+ readonly "fade-in": string;
4
+ readonly "sapphire-dialog--exiting": string;
5
+ readonly "fade-out": string;
3
6
  readonly "sapphire-dialog--small": string;
4
7
  readonly "sapphire-dialog--medium": string;
5
8
  readonly "sapphire-dialog--large": string;
@@ -12,6 +12,10 @@
12
12
  */
13
13
  -webkit-font-smoothing: antialiased;
14
14
  -moz-osx-font-smoothing: grayscale;
15
+
16
+ display: flex;
17
+ flex-direction: column;
18
+ justify-content: space-between;
15
19
  }
16
20
 
17
21
  .sapphire-table--overflow {
@@ -24,7 +28,6 @@
24
28
  .sapphire-table__table {
25
29
  border-collapse: collapse;
26
30
  border-spacing: 0;
27
- height: inherit;
28
31
  background-color: var(--sapphire-table-color-background-table);
29
32
  width: 100%;
30
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-css",
3
- "version": "26.1.0",
3
+ "version": "26.2.0",
4
4
  "description": "CSS implementation of the Sapphire Design System from Danske Bank A/S",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "sideEffects": false,
@@ -46,7 +46,7 @@
46
46
  "@babel/preset-react": "^7.18.6",
47
47
  "@babel/preset-typescript": "^7.18.6",
48
48
  "@danske/sapphire-icons": "^2.0.0",
49
- "@danske/sapphire-react": "3.0.0",
49
+ "@danske/sapphire-react": "3.17.0",
50
50
  "@storybook/addon-essentials": "^6.5.13",
51
51
  "@storybook/addon-links": "^6.5.13",
52
52
  "@storybook/addons": "^6.5.13",
@@ -66,7 +66,7 @@
66
66
  "typescript": "~4.6.4"
67
67
  },
68
68
  "dependencies": {
69
- "@danske/sapphire-design-tokens": "^35.4.0"
69
+ "@danske/sapphire-design-tokens": "^35.5.0"
70
70
  },
71
- "gitHead": "0feb42a3480197d23d973f6c844f0c302d2bc99e"
71
+ "gitHead": "d760160d715ac5516586f3256f47909f8e74aa46"
72
72
  }
package/themes/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { default as tokens } from '@danske/sapphire-design-tokens/build/themes';
2
- export declare type Theme = {
2
+ export interface Theme {
3
3
  themeClassName: string;
4
4
  contrastThemeClassName: string;
5
- };
5
+ }