@danske/sapphire-css 44.0.0 → 45.1.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/breadcrumbs/breadcrumbs.module.css +34 -0
- package/components/breadcrumbs/breadcrumbs.module.css.d.ts +3 -0
- package/components/dropzone/dropzone.module.css +3 -3
- package/components/label/label.module.css +8 -3
- package/components/label/label.module.css.d.ts +1 -0
- package/components/list/list.module.css +26 -0
- package/components/list/list.module.css.d.ts +1 -0
- package/components/listbox/listbox.module.css +15 -1
- package/components/listbox/listbox.module.css.d.ts +1 -0
- package/components/modalLayout/modalLayout.module.css +1 -0
- package/components/progressIndicator/progressIndicator.module.css +3 -3
- package/package.json +2 -2
|
@@ -16,6 +16,24 @@
|
|
|
16
16
|
max-width: var(--sapphire-global-size-generic-480);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
.sapphire-breadcrumbs__item--static {
|
|
20
|
+
/* typography */
|
|
21
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
22
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
23
|
+
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
24
|
+
color: var(--sapphire-semantic-color-foreground-action-on-tertiary-default);
|
|
25
|
+
text-transform: none;
|
|
26
|
+
|
|
27
|
+
/* sizing */
|
|
28
|
+
padding: 0 var(--sapphire-global-size-generic-50);
|
|
29
|
+
height: var(--sapphire-semantic-size-height-control-md);
|
|
30
|
+
min-width: var(--sapphire-global-size-generic-100);
|
|
31
|
+
max-width: fit-content; /* When part of flex layout the button will otherwise expand to full width of container when container has flex-direction 'column' */
|
|
32
|
+
flex-shrink: 0; /* When part of flex layout the button will otherwise be squashed */
|
|
33
|
+
|
|
34
|
+
align-content: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
19
37
|
.sapphire-breadcrumbs .sapphire-breadcrumbs__item:last-child {
|
|
20
38
|
padding: 0 var(--sapphire-semantic-size-spacing-lg);
|
|
21
39
|
}
|
|
@@ -29,6 +47,14 @@
|
|
|
29
47
|
);
|
|
30
48
|
}
|
|
31
49
|
|
|
50
|
+
.sapphire-breadcrumbs__item--static--sm {
|
|
51
|
+
height: var(--sapphire-semantic-size-height-control-sm);
|
|
52
|
+
min-width: var(--sapphire-global-size-generic-80);
|
|
53
|
+
padding: 0 var(--sapphire-semantic-size-spacing-md);
|
|
54
|
+
font-size: var(--sapphire-semantic-size-font-control-sm);
|
|
55
|
+
border-radius: var(--sapphire-semantic-size-height-control-sm);
|
|
56
|
+
}
|
|
57
|
+
|
|
32
58
|
.sapphire-breadcrumbs.sapphire-breadcrumbs--lg
|
|
33
59
|
.sapphire-breadcrumbs__item:last-child {
|
|
34
60
|
padding: 0
|
|
@@ -38,6 +64,14 @@
|
|
|
38
64
|
);
|
|
39
65
|
}
|
|
40
66
|
|
|
67
|
+
.sapphire-breadcrumbs__item--static--lg {
|
|
68
|
+
height: var(--sapphire-semantic-size-height-control-lg);
|
|
69
|
+
min-width: var(--sapphire-global-size-generic-120);
|
|
70
|
+
padding: 0 var(--sapphire-semantic-size-spacing-xl);
|
|
71
|
+
font-size: var(--sapphire-semantic-size-font-control-lg);
|
|
72
|
+
border-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
73
|
+
}
|
|
74
|
+
|
|
41
75
|
/**
|
|
42
76
|
* Breadcrumb separator
|
|
43
77
|
*/
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
declare const styles: {
|
|
2
2
|
readonly "sapphire-breadcrumbs": string;
|
|
3
3
|
readonly "sapphire-breadcrumbs__item": string;
|
|
4
|
+
readonly "sapphire-breadcrumbs__item--static": string;
|
|
4
5
|
readonly "sapphire-breadcrumbs--sm": string;
|
|
6
|
+
readonly "sapphire-breadcrumbs__item--static--sm": string;
|
|
5
7
|
readonly "sapphire-breadcrumbs--lg": string;
|
|
8
|
+
readonly "sapphire-breadcrumbs__item--static--lg": string;
|
|
6
9
|
readonly "sapphire-breadcrumbs__separator": string;
|
|
7
10
|
};
|
|
8
11
|
export = styles;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
height: var(--sapphire-global-size-generic-480);
|
|
12
12
|
min-height: var(--sapphire-global-size-generic-480);
|
|
13
13
|
padding: var(--sapphire-semantic-size-spacing-2xl);
|
|
14
|
-
border-radius: var(--sapphire-semantic-size-radius-
|
|
14
|
+
border-radius: var(--sapphire-semantic-size-radius-md);
|
|
15
15
|
transition-property: opacity, background-color, color;
|
|
16
16
|
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
17
17
|
transition-timing-function: var(--sapphire-semantic-transitions-fade);
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
*/
|
|
30
30
|
-webkit-font-smoothing: antialiased;
|
|
31
31
|
-moz-osx-font-smoothing: grayscale;
|
|
32
|
-
--mask-data: url('data:image/svg+xml,%3csvg stroke="black" width="70%25" height="70%25" xmlns="http://www.w3.org/2000/svg"%3e%3crect width="100%25" height="100%25" fill="none" rx="
|
|
32
|
+
--mask-data: url('data:image/svg+xml,%3csvg stroke="black" width="70%25" height="70%25" xmlns="http://www.w3.org/2000/svg"%3e%3crect width="100%25" height="100%25" fill="none" rx="6" ry="6" stroke-width="2" stroke-dasharray="5 6.01126518182488" stroke-dashoffset="4" stroke-linecap="butt"/%3e%3c/svg%3e');
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/* The before is needed because the SVG image cannot take CSS var, so the background of the ::before is set to the correct color instead */
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
mask: var(--mask-data);
|
|
45
45
|
-webkit-mask: var(--mask-data);
|
|
46
46
|
background: var(--sapphire-semantic-color-border-field-default);
|
|
47
|
-
border-radius: var(--sapphire-semantic-size-radius-
|
|
47
|
+
border-radius: var(--sapphire-semantic-size-radius-md);
|
|
48
48
|
transition-property: opacity, background-color, color;
|
|
49
49
|
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
50
50
|
transition-timing-function: var(--sapphire-semantic-transitions-fade);
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
.sapphire-label {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
2
|
min-height: var(--sapphire-semantic-size-height-control-xs);
|
|
5
3
|
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
6
4
|
font-size: var(--sapphire-semantic-size-font-label-md);
|
|
7
|
-
gap: var(--sapphire-semantic-size-spacing-3xs);
|
|
8
5
|
}
|
|
9
6
|
|
|
10
7
|
.sapphire-label--md {
|
|
@@ -15,14 +12,22 @@
|
|
|
15
12
|
.sapphire-label__text {
|
|
16
13
|
font-weight: var(--sapphire-semantic-font-weight-default-medium);
|
|
17
14
|
color: var(--sapphire-semantic-color-foreground-primary);
|
|
15
|
+
vertical-align: middle;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
.sapphire-label__required-indicator {
|
|
21
19
|
background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.99999 0.583344C4.41421 0.583344 4.74999 0.91913 4.74999 1.33334V3.22127L6.6017 2.62001C6.99567 2.49208 7.41874 2.70775 7.54666 3.10172C7.67459 3.49568 7.45892 3.91876 7.06495 4.04668L5.21363 4.64782L6.3601 6.22585C6.60356 6.56096 6.52927 7.02998 6.19416 7.27345C5.85905 7.51691 5.39002 7.44262 5.14656 7.10751L3.99999 5.52935L2.85343 7.10751C2.60996 7.44262 2.14094 7.51691 1.80583 7.27345C1.47072 7.02998 1.39642 6.56096 1.63989 6.22585L2.78636 4.64782L0.935036 4.04668C0.541071 3.91876 0.325401 3.49568 0.453323 3.10172C0.581246 2.70775 1.00432 2.49208 1.39829 2.62001L3.24999 3.22127V1.33334C3.24999 0.91913 3.58578 0.583344 3.99999 0.583344Z' fill='%23DD3254'/%3E%3C/svg%3E%0A");
|
|
22
20
|
width: 8px; /* Hard coded, since it's linked to the svg above */
|
|
23
21
|
height: 8px; /* Hard coded, since it's linked to the svg above */
|
|
22
|
+
margin-left: var(--sapphire-semantic-size-spacing-3xs);
|
|
23
|
+
display: inline-block;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.sapphire-label__optional-indicator {
|
|
27
27
|
color: var(--sapphire-semantic-color-foreground-secondary);
|
|
28
|
+
margin-left: var(--sapphire-semantic-size-spacing-3xs);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sapphire-label__help-button {
|
|
32
|
+
margin-left: var(--sapphire-semantic-size-spacing-3xs);
|
|
28
33
|
}
|
|
@@ -87,6 +87,12 @@ instead of being applied on the list item itself */
|
|
|
87
87
|
align-items: inherit;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
.sapphire-list__item > .sapphire-list__item--selected {
|
|
91
|
+
background: var(
|
|
92
|
+
--sapphire-semantic-color-background-action-select-secondary-default
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
90
96
|
.sapphire-list--negative-margin-self {
|
|
91
97
|
margin-left: calc(var(--sapphire-semantic-size-spacing-md) * -1);
|
|
92
98
|
width: calc(100% + (var(--sapphire-semantic-size-spacing-md) * 2));
|
|
@@ -163,6 +169,15 @@ instead of being applied on the list item itself */
|
|
|
163
169
|
background: var(--sapphire-semantic-color-background-action-tertiary-hover);
|
|
164
170
|
}
|
|
165
171
|
|
|
172
|
+
.sapphire-list__item--selected.is-hover:not(.is-active):not(:has(.is-hover)),
|
|
173
|
+
.sapphire-list__item--selected:not(.js-hover):not([aria-disabled='true']):not(
|
|
174
|
+
:disabled
|
|
175
|
+
):not(:active):not(:has(:hover)):hover {
|
|
176
|
+
background: var(
|
|
177
|
+
--sapphire-semantic-color-background-action-select-secondary-hover
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
166
181
|
/*
|
|
167
182
|
* Focus
|
|
168
183
|
*/
|
|
@@ -193,6 +208,17 @@ instead of being applied on the list item itself */
|
|
|
193
208
|
);
|
|
194
209
|
}
|
|
195
210
|
|
|
211
|
+
.sapphire-list__item--selected:not(.is-disabled).is-active:not(
|
|
212
|
+
:has(.is-active)
|
|
213
|
+
),
|
|
214
|
+
.sapphire-list__item--selected:not([aria-disabled='true']):not(:disabled):not(
|
|
215
|
+
:has(:active)
|
|
216
|
+
):active {
|
|
217
|
+
background-color: var(
|
|
218
|
+
--sapphire-semantic-color-background-action-select-secondary-active
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
|
|
196
222
|
.sapphire-list__item[aria-disabled='true']
|
|
197
223
|
.sapphire-list__item--interactive:active,
|
|
198
224
|
.sapphire-list__item--interactive:focus-visible {
|
|
@@ -2,6 +2,7 @@ declare const styles: {
|
|
|
2
2
|
readonly "sapphire-list": string;
|
|
3
3
|
readonly "sapphire-list__item": string;
|
|
4
4
|
readonly "sapphire-list__item--interactive": string;
|
|
5
|
+
readonly "sapphire-list__item--selected": string;
|
|
5
6
|
readonly "sapphire-list--negative-margin-self": string;
|
|
6
7
|
readonly "is-focus": string;
|
|
7
8
|
readonly "js-focus": string;
|
|
@@ -112,7 +112,8 @@
|
|
|
112
112
|
transition-timing-function: var(--sapphire-semantic-transitions-fade);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
.sapphire-listbox--selection
|
|
115
|
+
.sapphire-listbox--selection
|
|
116
|
+
.sapphire-listbox__content:not(.sapphire-listbox__content--empty) {
|
|
116
117
|
/*
|
|
117
118
|
* In this case, the right-side "checkmark" icon column should always take
|
|
118
119
|
* space even if the checkmark isn't there. This is to make sure the listbox
|
|
@@ -122,6 +123,15 @@
|
|
|
122
123
|
grid-template-columns: [left-icon] var(--sapphire-semantic-size-icon-sm) [text-content] 1fr [right-icon] auto;
|
|
123
124
|
}
|
|
124
125
|
|
|
126
|
+
.sapphire-listbox__content--empty {
|
|
127
|
+
grid-template-columns: 1fr;
|
|
128
|
+
justify-items: center;
|
|
129
|
+
cursor: default;
|
|
130
|
+
}
|
|
131
|
+
.sapphire-listbox__item:has(.sapphire-listbox__content--empty) {
|
|
132
|
+
cursor: default;
|
|
133
|
+
}
|
|
134
|
+
|
|
125
135
|
/* Icon content */
|
|
126
136
|
.sapphire-listbox__icon {
|
|
127
137
|
line-height: 0;
|
|
@@ -210,6 +220,10 @@
|
|
|
210
220
|
);
|
|
211
221
|
}
|
|
212
222
|
|
|
223
|
+
.sapphire-listbox > .sapphire-listbox__separator:first-child {
|
|
224
|
+
display: none;
|
|
225
|
+
}
|
|
226
|
+
|
|
213
227
|
/* Focus */
|
|
214
228
|
|
|
215
229
|
.sapphire-listbox__item:not(.is-disabled).is-focus .sapphire-listbox__content,
|
|
@@ -5,6 +5,7 @@ declare const styles: {
|
|
|
5
5
|
readonly "sapphire-listbox__secondary-text": string;
|
|
6
6
|
readonly "sapphire-listbox__content": string;
|
|
7
7
|
readonly "sapphire-listbox--selection": string;
|
|
8
|
+
readonly "sapphire-listbox__content--empty": string;
|
|
8
9
|
readonly "sapphire-listbox__icon": string;
|
|
9
10
|
readonly "sapphire-listbox__text-container": string;
|
|
10
11
|
readonly "sapphire-listbox__primary-text": string;
|
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.sapphire-modal-layout__section-title {
|
|
117
|
+
z-index: 1; /* Only <legend> element appears above content by default when sticky, <header> needs this */
|
|
117
118
|
margin-left: calc(
|
|
118
119
|
var(--sapphire-semantic-size-spacing-container-horizontal-md) * -1
|
|
119
120
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* ProgressIndicator Track styles */
|
|
2
2
|
.sapphire-progress {
|
|
3
3
|
height: 3px;
|
|
4
4
|
width: 100%;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
display: flex;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
/*
|
|
14
|
+
/* ProgressIndicator Progress styles */
|
|
15
15
|
.sapphire-progress--indicator {
|
|
16
16
|
height: 100%;
|
|
17
17
|
background: var(--sapphire-semantic-color-background-progress-fill);
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
var(--sapphire-semantic-transitions-dynamic);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
/*
|
|
22
|
+
/* ProgressIndicator Segmented styles */
|
|
23
23
|
.sapphire-progress--segments {
|
|
24
24
|
position: absolute;
|
|
25
25
|
width: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-css",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "45.1.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,
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@danske/sapphire-design-tokens": "^42.2.1"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "fe060604b778104583e59507572af0dc0747afb4"
|
|
73
73
|
}
|