@danske/sapphire-css 36.0.0 → 38.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,17 @@
1
+ .sapphire-filter-dropdown {
2
+ display: flex;
3
+ flex-direction: column;
4
+ height: 100%; /* meant to be rendered as a single child of an overlay container */
5
+ }
6
+
7
+ .sapphire-filter-dropdown__body {
8
+ flex: 1;
9
+ overflow: auto;
10
+ padding: var(--sapphire-semantic-size-spacing-container-horizontal-sm);
11
+ }
12
+
13
+ .sapphire-filter-dropdown__footer {
14
+ display: flex;
15
+ justify-content: space-between;
16
+ padding: var(--sapphire-semantic-size-spacing-container-horizontal-sm);
17
+ }
@@ -0,0 +1,7 @@
1
+ declare const styles: {
2
+ readonly "sapphire-filter-dropdown": string;
3
+ readonly "sapphire-filter-dropdown__body": string;
4
+ readonly "sapphire-filter-dropdown__footer": string;
5
+ };
6
+ export = styles;
7
+
@@ -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
+
@@ -28,6 +28,18 @@
28
28
  */
29
29
  -webkit-font-smoothing: antialiased;
30
30
  -moz-osx-font-smoothing: grayscale;
31
+
32
+ /**
33
+ * flex display makes it possible to have a content container with height: 100%, which otherwise
34
+ * is not possible when popover only has a max-height and not a height.
35
+ * Having an extra block inner container (.sapphire-popover__content) then avoid having the
36
+ * content of the popover a direct flex child which comes with some side effects.
37
+ */
38
+ display: flex;
39
+ }
40
+
41
+ .sapphire-popover__content {
42
+ flex-basis: 100%;
31
43
  }
32
44
 
33
45
  .sapphire-popover--padded {
@@ -1,6 +1,7 @@
1
1
  declare const styles: {
2
2
  readonly "sapphire-popover": string;
3
3
  readonly "fade-in": string;
4
+ readonly "sapphire-popover__content": string;
4
5
  readonly "sapphire-popover--padded": string;
5
6
  readonly "sapphire-popover--max-width": string;
6
7
  };
@@ -64,6 +64,7 @@
64
64
  text-overflow: ellipsis;
65
65
  white-space: nowrap;
66
66
  color: var(--sapphire-semantic-color-content-default-secondary);
67
+ pointer-events: none;
67
68
  }
68
69
 
69
70
  .sapphire-select__icon-container {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danske/sapphire-css",
3
- "version": "36.0.0",
3
+ "version": "38.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.0.0",
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": "16.14.0",
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": "e179f6a7aeae452c8969507b46c735398037faa2"
72
+ "gitHead": "7673827573af06dab98309795b977522151a5c2c"
72
73
  }