@danske/sapphire-css 26.1.3 → 26.3.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/components/backdrop/backdrop.module.css +29 -1
- package/components/backdrop/backdrop.module.css.d.ts +3 -0
- package/components/contextualHelp/contextualHelp.module.css +4 -0
- package/components/contextualHelp/contextualHelp.module.css.d.ts +1 -0
- package/components/dialog/dialog.module.css +29 -0
- package/components/dialog/dialog.module.css.d.ts +3 -0
- package/package.json +4 -4
|
@@ -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,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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-css",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.3.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.
|
|
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.
|
|
69
|
+
"@danske/sapphire-design-tokens": "^35.5.0"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "a0ed76e1470520cca2aeae0ca02767703e2c3997"
|
|
72
72
|
}
|