@danske/sapphire-css 42.1.0 → 43.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.
- package/components/breadcrumbs/breadcrumbs.module.css +50 -0
- package/components/breadcrumbs/breadcrumbs.module.css.d.ts +9 -0
- package/components/checkbox/checkbox.module.css +2 -2
- package/components/dateField/dateField.module.css +8 -0
- package/components/dateField/dateField.module.css.d.ts +1 -1
- package/components/dialog/dialog.module.css +2 -2
- package/components/modalLayout/modalLayout.module.css +8 -4
- package/components/panel/panel.module.css +1 -1
- package/components/radio/radio.module.css +2 -6
- package/components/radio/radio.module.css.d.ts +0 -1
- package/components/select/select.module.css +1 -0
- package/components/table/table.module.css +0 -1
- package/components/textField/textField.module.css +8 -0
- package/package.json +3 -3
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.sapphire-breadcrumbs {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
margin: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.sapphire-breadcrumbs .sapphire-breadcrumbs__item {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
min-width: 0;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.sapphire-breadcrumbs__item * {
|
|
16
|
+
max-width: var(--sapphire-global-size-generic-480);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.sapphire-breadcrumbs .sapphire-breadcrumbs__item:last-child {
|
|
20
|
+
padding: 0 var(--sapphire-semantic-size-spacing-lg);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sapphire-breadcrumbs.sapphire-breadcrumbs--sm
|
|
24
|
+
.sapphire-breadcrumbs__item:last-child {
|
|
25
|
+
padding: 0
|
|
26
|
+
calc(
|
|
27
|
+
var(--sapphire-semantic-size-spacing-xs) +
|
|
28
|
+
var(--sapphire-semantic-size-spacing-2xs)
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.sapphire-breadcrumbs.sapphire-breadcrumbs--lg
|
|
33
|
+
.sapphire-breadcrumbs__item:last-child {
|
|
34
|
+
padding: 0
|
|
35
|
+
calc(
|
|
36
|
+
var(--sapphire-semantic-size-spacing-xs) +
|
|
37
|
+
var(--sapphire-semantic-size-spacing-md)
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Breadcrumb separator
|
|
43
|
+
*/
|
|
44
|
+
.sapphire-breadcrumbs__separator {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
color: var(--sapphire-semantic-color-foreground-primary);
|
|
49
|
+
padding: 0 var(--sapphire-semantic-size-spacing-xs);
|
|
50
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
readonly "sapphire-breadcrumbs": string;
|
|
3
|
+
readonly "sapphire-breadcrumbs__item": string;
|
|
4
|
+
readonly "sapphire-breadcrumbs--sm": string;
|
|
5
|
+
readonly "sapphire-breadcrumbs--lg": string;
|
|
6
|
+
readonly "sapphire-breadcrumbs__separator": string;
|
|
7
|
+
};
|
|
8
|
+
export = styles;
|
|
9
|
+
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
cursor: not-allowed;
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
-
.sapphire-checkbox.is-disabled
|
|
291
|
-
.sapphire-checkbox
|
|
290
|
+
.sapphire-checkbox.is-disabled,
|
|
291
|
+
.sapphire-checkbox:has(:disabled) {
|
|
292
292
|
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
293
293
|
}
|
|
@@ -107,6 +107,14 @@
|
|
|
107
107
|
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Disabled
|
|
112
|
+
*/
|
|
113
|
+
.sapphire-date-field.is-disabled {
|
|
114
|
+
cursor: not-allowed;
|
|
115
|
+
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
116
|
+
}
|
|
117
|
+
|
|
110
118
|
/**
|
|
111
119
|
* Editable segments
|
|
112
120
|
*/
|
|
@@ -7,8 +7,8 @@ declare const styles: {
|
|
|
7
7
|
readonly "sapphire-date-field__input": string;
|
|
8
8
|
readonly "sapphire-date-field__range-separator": string;
|
|
9
9
|
readonly "sapphire-date-field--md": string;
|
|
10
|
-
readonly "sapphire-date-field__segment": string;
|
|
11
10
|
readonly "is-disabled": string;
|
|
11
|
+
readonly "sapphire-date-field__segment": string;
|
|
12
12
|
readonly "is-focus": string;
|
|
13
13
|
readonly "sapphire-date-field__segment--filled": string;
|
|
14
14
|
readonly "sapphire-date-field__segment--separator": string;
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.sapphire-dialog {
|
|
22
|
-
border-radius: var(--sapphire-semantic-size-radius-
|
|
23
|
-
background: var(--sapphire-semantic-color-background-
|
|
22
|
+
border-radius: var(--sapphire-semantic-size-radius-2xl);
|
|
23
|
+
background: var(--sapphire-semantic-color-background-popover);
|
|
24
24
|
font-family: var(--sapphire-semantic-font-name-default);
|
|
25
25
|
color: var(--sapphire-semantic-color-foreground-primary);
|
|
26
26
|
box-sizing: border-box;
|
|
@@ -14,9 +14,12 @@
|
|
|
14
14
|
.sapphire-modal-layout__header {
|
|
15
15
|
display: flex;
|
|
16
16
|
justify-content: space-between;
|
|
17
|
-
padding: var(--sapphire-semantic-size-spacing-
|
|
18
|
-
var(--sapphire-semantic-size-spacing-
|
|
17
|
+
padding: var(--sapphire-semantic-size-spacing-xl)
|
|
18
|
+
var(--sapphire-semantic-size-spacing-xl)
|
|
19
|
+
var(--sapphire-semantic-size-spacing-xl)
|
|
20
|
+
var(--sapphire-semantic-size-spacing-2xl);
|
|
19
21
|
gap: var(--sapphire-semantic-size-spacing-sm);
|
|
22
|
+
min-height: var(--sapphire-semantic-size-height-control-md);
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
.sapphire-modal-layout__body {
|
|
@@ -41,10 +44,11 @@
|
|
|
41
44
|
var(--sapphire-semantic-size-spacing-container-horizontal-md);
|
|
42
45
|
}
|
|
43
46
|
|
|
44
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Container for heading and subheading
|
|
49
|
+
**/
|
|
45
50
|
.sapphire-modal-layout__heading-container {
|
|
46
51
|
flex: 1;
|
|
47
|
-
padding: var(--sapphire-semantic-size-spacing-3xs) 0;
|
|
48
52
|
display: flex;
|
|
49
53
|
flex-direction: column;
|
|
50
54
|
justify-content: center;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
var(--sapphire-semantic-transitions-standard);
|
|
10
10
|
transform: translateX(100%);
|
|
11
11
|
width: var(--sapphire-semantic-size-width-panel-lg);
|
|
12
|
-
background: var(--sapphire-semantic-color-background-
|
|
12
|
+
background: var(--sapphire-semantic-color-background-popover);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.sapphire-panel--visible {
|
|
@@ -159,11 +159,7 @@
|
|
|
159
159
|
cursor: not-allowed;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
.sapphire-radio:
|
|
163
|
-
|
|
164
|
-
~ .sapphire-radio__box,
|
|
165
|
-
.sapphire-radio:not(.sapphire-radio--no-disabled)
|
|
166
|
-
.sapphire-radio__input:disabled
|
|
167
|
-
~ .sapphire-radio__label {
|
|
162
|
+
.sapphire-radio .sapphire-radio__input:disabled ~ .sapphire-radio__box,
|
|
163
|
+
.sapphire-radio .sapphire-radio__input:disabled ~ .sapphire-radio__label {
|
|
168
164
|
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
169
165
|
}
|
|
@@ -463,7 +463,6 @@ th.sapphire-table__selectionCell:first-child {
|
|
|
463
463
|
.sapphire-table__footer {
|
|
464
464
|
position: relative;
|
|
465
465
|
z-index: 2; /* Setting to two because body rows are positioned relative */
|
|
466
|
-
margin-top: var(--sapphire-semantic-size-spacing-2xs);
|
|
467
466
|
}
|
|
468
467
|
|
|
469
468
|
.sapphire-table__footer--sticky {
|
|
@@ -194,6 +194,14 @@
|
|
|
194
194
|
var(--sapphire-semantic-color-border-negative-default);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Disabled
|
|
199
|
+
*/
|
|
200
|
+
.sapphire-text-field:has([disabled]) {
|
|
201
|
+
cursor: not-allowed;
|
|
202
|
+
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
203
|
+
}
|
|
204
|
+
|
|
197
205
|
/**
|
|
198
206
|
* Hover
|
|
199
207
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-css",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "43.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,
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"typescript": "~4.6.4"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@danske/sapphire-design-tokens": "^42.2.
|
|
70
|
+
"@danske/sapphire-design-tokens": "^42.2.1"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "5447ed85a23a82d6d7339a1617296a648256ea3e"
|
|
73
73
|
}
|