@danske/sapphire-css 36.0.0 → 37.0.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.
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.sapphire-flag {
|
|
2
|
+
flex-shrink: 0;
|
|
3
|
+
border: var(--sapphire-semantic-size-border-sm) solid
|
|
4
|
+
var(--sapphire-semantic-color-border-separator-default);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.sapphire-flag.sapphire-flag--xs {
|
|
8
|
+
height: var(--sapphire-semantic-size-icon-md);
|
|
9
|
+
width: var(--sapphire-semantic-size-icon-md);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sapphire-flag.sapphire-flag--sm {
|
|
13
|
+
height: var(--sapphire-semantic-size-icon-lg);
|
|
14
|
+
width: var(--sapphire-semantic-size-icon-lg);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sapphire-flag.sapphire-flag--md {
|
|
18
|
+
height: var(--sapphire-semantic-size-icon-xl);
|
|
19
|
+
width: var(--sapphire-semantic-size-icon-xl);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sapphire-flag.sapphire-flag--lg {
|
|
23
|
+
height: var(--sapphire-global-size-generic-100);
|
|
24
|
+
width: var(--sapphire-global-size-generic-100);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sapphire-flag.sapphire-flag--xl {
|
|
28
|
+
height: var(--sapphire-global-size-generic-120);
|
|
29
|
+
width: var(--sapphire-global-size-generic-120);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.sapphire-flag.sapphire-flag--rounded {
|
|
33
|
+
/**
|
|
34
|
+
* This is a hack to fix the antialiasing issue when some flag are rendered rounded.
|
|
35
|
+
*/
|
|
36
|
+
transform: rotate(0.01deg);
|
|
37
|
+
border-radius: var(--sapphire-semantic-size-radius-xl);
|
|
38
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
readonly "sapphire-flag": string;
|
|
3
|
+
readonly "sapphire-flag--xs": string;
|
|
4
|
+
readonly "sapphire-flag--sm": string;
|
|
5
|
+
readonly "sapphire-flag--md": string;
|
|
6
|
+
readonly "sapphire-flag--lg": string;
|
|
7
|
+
readonly "sapphire-flag--xl": string;
|
|
8
|
+
readonly "sapphire-flag--rounded": string;
|
|
9
|
+
};
|
|
10
|
+
export = styles;
|
|
11
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-css",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "37.0.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,
|
|
@@ -45,8 +45,9 @@
|
|
|
45
45
|
"@babel/preset-env": "^7.20.2",
|
|
46
46
|
"@babel/preset-react": "^7.18.6",
|
|
47
47
|
"@babel/preset-typescript": "^7.18.6",
|
|
48
|
-
"@danske/sapphire-icons": "^2.
|
|
48
|
+
"@danske/sapphire-icons": "^2.2.0",
|
|
49
49
|
"@danske/sapphire-react": "^4.3.0",
|
|
50
|
+
"@mdx-js/react": "^1.6.22",
|
|
50
51
|
"@storybook/addon-essentials": "^6.5.13",
|
|
51
52
|
"@storybook/addon-links": "^6.5.13",
|
|
52
53
|
"@storybook/addons": "^6.5.13",
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
"cross-env": "^7.0.3",
|
|
57
58
|
"css-loader": "^5.2.4",
|
|
58
59
|
"identity-obj-proxy": "^3.0.0",
|
|
59
|
-
"react": "
|
|
60
|
+
"react": "^18.3.1",
|
|
60
61
|
"storybook-addon-themes": "^6.1.0",
|
|
61
62
|
"storybook-css-modules": "^1.0.8",
|
|
62
63
|
"style-loader": "^2.0.0",
|
|
@@ -68,5 +69,5 @@
|
|
|
68
69
|
"dependencies": {
|
|
69
70
|
"@danske/sapphire-design-tokens": "^41.4.0"
|
|
70
71
|
},
|
|
71
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "d2568c6a3ae281f2664333a4e6a30cd173aeff3e"
|
|
72
73
|
}
|