@danske/sapphire-css 35.0.0 → 35.4.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/build/themes/cjs/realkredit.d.ts +4 -0
- package/build/themes/cjs/realkredit.js +11 -0
- package/build/themes/esm/realkredit.d.ts +4 -0
- package/build/themes/esm/realkredit.js +6 -0
- package/components/calendar/calendar.module.css +23 -7
- package/components/calendar/calendar.module.css.d.ts +1 -0
- package/components/contextualHelp/contextualHelp.module.css +0 -3
- package/components/iconButton/iconButton.module.css +78 -0
- package/components/iconButton/iconButton.module.css.d.ts +2 -0
- package/components/searchField/searchField.module.css +1 -1
- package/components/segmentedControl/segmentedControl.module.css +6 -2
- package/components/skeleton/skeleton.module.css +1 -1
- package/components/spinner/spinner.module.css +2 -2
- package/components/table/table.module.css +118 -14
- package/components/table/table.module.css.d.ts +7 -0
- package/components/textField/textField.module.css +1 -1
- package/package.json +3 -3
- package/themes/realkredit.d.ts +4 -0
- package/themes/realkredit.js +11 -0
- package/themes/realkredit.tokens.scss +1 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
require("@danske/sapphire-design-tokens/build/themes/realkredit/assets/fonts/realkredit/fontFace.css");
|
|
7
|
+
var tokens_module_css_1 = __importDefault(require("@danske/sapphire-design-tokens/build/themes/realkredit/css/tokens.module.css"));
|
|
8
|
+
var theme = {
|
|
9
|
+
themeClassName: tokens_module_css_1["default"]['sapphire-theme-realkredit']
|
|
10
|
+
};
|
|
11
|
+
exports["default"] = theme;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import '@danske/sapphire-design-tokens/build/themes/realkredit/assets/fonts/realkredit/fontFace.css';
|
|
2
|
+
import styles from '@danske/sapphire-design-tokens/build/themes/realkredit/css/tokens.module.css';
|
|
3
|
+
var theme = {
|
|
4
|
+
themeClassName: styles['sapphire-theme-realkredit']
|
|
5
|
+
};
|
|
6
|
+
export default theme;
|
|
@@ -5,11 +5,15 @@
|
|
|
5
5
|
box-sizing: border-box;
|
|
6
6
|
}
|
|
7
7
|
.sapphire-calendar__table-container {
|
|
8
|
+
--sapphire-calendar-cell-size: var(--sapphire-global-size-generic-120);
|
|
9
|
+
--sapphire-calendar-control-size: var(
|
|
10
|
+
--sapphire-semantic-size-height-control-lg
|
|
11
|
+
);
|
|
8
12
|
/*
|
|
9
13
|
min-width needed for months and years view. Otherwise the calendar's width changes as view is
|
|
10
14
|
switched
|
|
11
15
|
*/
|
|
12
|
-
min-width: calc(7 * var(--sapphire-
|
|
16
|
+
min-width: calc(7 * var(--sapphire-calendar-cell-size));
|
|
13
17
|
/*
|
|
14
18
|
For now we have decided to not support flexible width for the calendar grid.
|
|
15
19
|
If we want that, we only need to add a `flex: 1` here. The width of Months/Years table is
|
|
@@ -17,6 +21,13 @@
|
|
|
17
21
|
*/
|
|
18
22
|
}
|
|
19
23
|
|
|
24
|
+
.sapphire-calendar__table-container--md {
|
|
25
|
+
--sapphire-calendar-cell-size: var(--sapphire-global-size-generic-100);
|
|
26
|
+
--sapphire-calendar-control-size: var(
|
|
27
|
+
--sapphire-semantic-size-height-control-md
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
20
31
|
.sapphire-calendar__header {
|
|
21
32
|
display: flex;
|
|
22
33
|
align-items: center;
|
|
@@ -48,7 +59,7 @@
|
|
|
48
59
|
}
|
|
49
60
|
|
|
50
61
|
.sapphire-calendar__table--month-year {
|
|
51
|
-
width: calc(7 * var(--sapphire-
|
|
62
|
+
width: calc(7 * var(--sapphire-calendar-cell-size));
|
|
52
63
|
table-layout: fixed;
|
|
53
64
|
}
|
|
54
65
|
|
|
@@ -81,7 +92,7 @@
|
|
|
81
92
|
}
|
|
82
93
|
|
|
83
94
|
.sapphire-calendar__table-body-cell {
|
|
84
|
-
height: var(--sapphire-
|
|
95
|
+
height: var(--sapphire-calendar-control-size);
|
|
85
96
|
text-align: center;
|
|
86
97
|
padding: 0;
|
|
87
98
|
}
|
|
@@ -111,13 +122,13 @@
|
|
|
111
122
|
color: var(--sapphire-semantic-color-content-default-secondary);
|
|
112
123
|
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
113
124
|
font-size: var(--sapphire-semantic-size-font-text-md);
|
|
114
|
-
width: var(--sapphire-
|
|
125
|
+
width: var(--sapphire-calendar-cell-size);
|
|
115
126
|
}
|
|
116
127
|
|
|
117
128
|
.sapphire-calendar__button {
|
|
118
129
|
all: unset;
|
|
119
130
|
display: flex;
|
|
120
|
-
height: var(--sapphire-
|
|
131
|
+
height: var(--sapphire-calendar-control-size);
|
|
121
132
|
align-items: center;
|
|
122
133
|
justify-content: center;
|
|
123
134
|
cursor: pointer;
|
|
@@ -156,11 +167,11 @@
|
|
|
156
167
|
/* Customizations for day buttons */
|
|
157
168
|
.sapphire-calendar__button--day .sapphire-calendar__button-text {
|
|
158
169
|
width: calc(
|
|
159
|
-
var(--sapphire-
|
|
170
|
+
var(--sapphire-calendar-cell-size) - 2 *
|
|
160
171
|
var(--sapphire-semantic-size-focus-ring)
|
|
161
172
|
);
|
|
162
173
|
height: calc(
|
|
163
|
-
var(--sapphire-
|
|
174
|
+
var(--sapphire-calendar-cell-size) - 2 *
|
|
164
175
|
var(--sapphire-semantic-size-focus-ring)
|
|
165
176
|
);
|
|
166
177
|
padding: 0;
|
|
@@ -409,6 +420,11 @@
|
|
|
409
420
|
bottom: var(--sapphire-global-size-generic-20);
|
|
410
421
|
}
|
|
411
422
|
|
|
423
|
+
.sapphire-calendar__table-container--md
|
|
424
|
+
.sapphire-calendar__button.sapphire-calendar__button--current::after {
|
|
425
|
+
bottom: var(--sapphire-global-size-generic-10);
|
|
426
|
+
}
|
|
427
|
+
|
|
412
428
|
.sapphire-calendar__button.sapphire-calendar__button--selected:not(
|
|
413
429
|
.sapphire-calendar__button--range-selection
|
|
414
430
|
).sapphire-calendar__button--current::after,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const styles: {
|
|
2
2
|
readonly "sapphire-calendar": string;
|
|
3
3
|
readonly "sapphire-calendar__table-container": string;
|
|
4
|
+
readonly "sapphire-calendar__table-container--md": string;
|
|
4
5
|
readonly "sapphire-calendar__header": string;
|
|
5
6
|
readonly "sapphire-calendar__header--left": string;
|
|
6
7
|
readonly "sapphire-calendar__header-next-month": string;
|
|
@@ -412,3 +412,81 @@ a.sapphire-icon-button {
|
|
|
412
412
|
border-radius: var(--sapphire-semantic-size-height-control-xs);
|
|
413
413
|
font-size: var(--sapphire-semantic-size-font-control-sm);
|
|
414
414
|
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Toggle Icon Button
|
|
418
|
+
*/
|
|
419
|
+
|
|
420
|
+
/* Selected */
|
|
421
|
+
.sapphire-icon-button--selected {
|
|
422
|
+
background-color: var(
|
|
423
|
+
--sapphire-semantic-color-background-selection-selected-default
|
|
424
|
+
);
|
|
425
|
+
color: var(--sapphire-semantic-color-content-selection-selected-default);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.sapphire-icon-button--selected:not(:disabled):not(.is-disabled):not(
|
|
429
|
+
:active
|
|
430
|
+
):not(.is-active):hover,
|
|
431
|
+
.sapphire-icon-button--selected:not(:disabled):not(.is-disabled):not(
|
|
432
|
+
:active
|
|
433
|
+
):not(.is-active).is-hover {
|
|
434
|
+
background-color: var(
|
|
435
|
+
--sapphire-semantic-color-background-selection-selected-hover
|
|
436
|
+
);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.sapphire-icon-button--selected.is-focus,
|
|
440
|
+
.sapphire-icon-button--selected:not(.js-focus):focus-visible {
|
|
441
|
+
background-color: var(
|
|
442
|
+
--sapphire-semantic-color-background-selection-selected-default
|
|
443
|
+
);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.sapphire-icon-button--selected:not(:disabled):not(.is-disabled).is-active,
|
|
447
|
+
.sapphire-icon-button--selected:not(:disabled):not(.is-disabled):active,
|
|
448
|
+
.sapphire-icon-button--selected:not(:disabled):not(
|
|
449
|
+
.is-disabled
|
|
450
|
+
):focus-visible:active {
|
|
451
|
+
background-color: var(
|
|
452
|
+
--sapphire-semantic-color-background-selection-selected-active
|
|
453
|
+
);
|
|
454
|
+
color: var(--sapphire-semantic-color-content-selection-selected-active);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* Unselected */
|
|
458
|
+
.sapphire-icon-button--unselected {
|
|
459
|
+
background-color: var(
|
|
460
|
+
--sapphire-semantic-color-background-selection-unselected-default
|
|
461
|
+
);
|
|
462
|
+
color: var(--sapphire-semantic-color-content-selection-unselected-default);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.sapphire-icon-button--unselected:not(:disabled):not(.is-disabled):not(
|
|
466
|
+
:active
|
|
467
|
+
):not(.is-active):hover,
|
|
468
|
+
.sapphire-icon-button--unselected:not(:disabled):not(.is-disabled):not(
|
|
469
|
+
:active
|
|
470
|
+
):not(.is-active).is-hover {
|
|
471
|
+
background-color: var(
|
|
472
|
+
--sapphire-semantic-color-background-selection-unselected-hover
|
|
473
|
+
);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.sapphire-icon-button--unselected.is-focus,
|
|
477
|
+
.sapphire-icon-button--unselected:not(.js-focus):focus-visible {
|
|
478
|
+
background-color: var(
|
|
479
|
+
--sapphire-semantic-color-background-selection-unselected-default
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.sapphire-icon-button--unselected:not(:disabled):not(.is-disabled).is-active,
|
|
484
|
+
.sapphire-icon-button--unselected:not(:disabled):not(.is-disabled):active,
|
|
485
|
+
.sapphire-icon-button--unselected:not(:disabled):not(
|
|
486
|
+
.is-disabled
|
|
487
|
+
):focus-visible:active {
|
|
488
|
+
background-color: var(
|
|
489
|
+
--sapphire-semantic-color-background-selection-unselected-active
|
|
490
|
+
);
|
|
491
|
+
color: var(--sapphire-semantic-color-content-selection-unselected-active);
|
|
492
|
+
}
|
|
@@ -19,6 +19,8 @@ declare const styles: {
|
|
|
19
19
|
readonly "sapphire-icon-button--lg": string;
|
|
20
20
|
readonly "sapphire-icon-button--sm": string;
|
|
21
21
|
readonly "sapphire-icon-button--xs": string;
|
|
22
|
+
readonly "sapphire-icon-button--selected": string;
|
|
23
|
+
readonly "sapphire-icon-button--unselected": string;
|
|
22
24
|
};
|
|
23
25
|
export = styles;
|
|
24
26
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
height: 100%;
|
|
39
39
|
min-width: 0;
|
|
40
40
|
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
41
|
-
caret-color: var(--sapphire-semantic-color-
|
|
41
|
+
caret-color: var(--sapphire-semantic-color-cursor-default);
|
|
42
42
|
position: relative;
|
|
43
43
|
padding-left: var(--sapphire-semantic-size-height-input-lg);
|
|
44
44
|
}
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
display: inline-flex;
|
|
25
25
|
position: relative;
|
|
26
26
|
height: 100%;
|
|
27
|
-
background-color: var(
|
|
27
|
+
background-color: var(
|
|
28
|
+
--sapphire-semantic-color-background-control-special-secondary-default
|
|
29
|
+
);
|
|
28
30
|
border-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
29
31
|
padding: var(--sapphire-global-size-static-5);
|
|
30
32
|
box-sizing: border-box;
|
|
@@ -36,7 +38,9 @@
|
|
|
36
38
|
left: 0;
|
|
37
39
|
height: calc(100% - var(--sapphire-global-size-static-5) * 2);
|
|
38
40
|
display: block;
|
|
39
|
-
background-color: var(
|
|
41
|
+
background-color: var(
|
|
42
|
+
--sapphire-semantic-color-background-control-special-primary-default
|
|
43
|
+
);
|
|
40
44
|
box-shadow: var(--sapphire-global-shadow-sm);
|
|
41
45
|
box-sizing: border-box;
|
|
42
46
|
z-index: 1;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
.sapphire-skeleton {
|
|
16
16
|
width: 100%;
|
|
17
17
|
|
|
18
|
-
background-color: var(--sapphire-
|
|
18
|
+
background-color: var(--sapphire-semantic-color-background-skeleton-default);
|
|
19
19
|
|
|
20
20
|
animation: skeletonPulse infinite cubic-bezier(0.25, 0, 0.25, 1);
|
|
21
21
|
animation-duration: var(--sapphire-semantic-time-fade-slow);
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.sapphire-spinner__track {
|
|
25
|
-
fill: var(--sapphire-semantic-color-
|
|
25
|
+
fill: var(--sapphire-semantic-color-background-spinner-primary-default);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.sapphire-spinner__accent {
|
|
29
|
-
fill: var(--sapphire-semantic-color-background-
|
|
29
|
+
fill: var(--sapphire-semantic-color-background-spinner-secondary-default);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.sapphire-spinner--inherit .sapphire-spinner__track {
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
justify-content: space-between;
|
|
19
|
+
background-color: var(--sapphire-semantic-color-background-surface);
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
.sapphire-table--overflow {
|
|
@@ -28,7 +29,6 @@
|
|
|
28
29
|
.sapphire-table__table {
|
|
29
30
|
border-collapse: collapse;
|
|
30
31
|
border-spacing: 0;
|
|
31
|
-
background-color: var(--sapphire-semantic-color-background-surface);
|
|
32
32
|
width: 100%;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -72,6 +72,19 @@
|
|
|
72
72
|
text-align: end;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/* We added these to accommodate alignment in cells using flex */
|
|
76
|
+
.sapphire-table__cell-wrapper .sapphire-table__cell--alignLeft {
|
|
77
|
+
justify-content: flex-start;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.sapphire-table__cell-wrapper .sapphire-table__cell--alignCenter {
|
|
81
|
+
justify-content: center;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.sapphire-table__cell-wrapper .sapphire-table__cell--alignRight {
|
|
85
|
+
justify-content: flex-end;
|
|
86
|
+
}
|
|
87
|
+
|
|
75
88
|
.sapphire-table__headCell {
|
|
76
89
|
color: var(--sapphire-semantic-color-content-default-primary);
|
|
77
90
|
box-sizing: border-box;
|
|
@@ -83,8 +96,7 @@
|
|
|
83
96
|
}
|
|
84
97
|
|
|
85
98
|
.sapphire-table__headCell_container {
|
|
86
|
-
padding: var(--sapphire-semantic-size-spacing-20)
|
|
87
|
-
var(--sapphire-semantic-size-spacing-30);
|
|
99
|
+
padding: var(--sapphire-semantic-size-spacing-20);
|
|
88
100
|
display: inline-flex;
|
|
89
101
|
align-items: center;
|
|
90
102
|
box-sizing: border-box;
|
|
@@ -189,46 +201,118 @@
|
|
|
189
201
|
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
190
202
|
}
|
|
191
203
|
|
|
204
|
+
.sapphire-table__cell-contents {
|
|
205
|
+
display: block;
|
|
206
|
+
width: 100%;
|
|
207
|
+
}
|
|
208
|
+
|
|
192
209
|
/* Overflow behaviour */
|
|
193
210
|
.sapphire-table__cell--ellipsed,
|
|
194
|
-
.sapphire-table__headCell_content--ellipsed
|
|
211
|
+
.sapphire-table__headCell_content--ellipsed,
|
|
212
|
+
.sapphire-table__cell--ellipsed .sapphire-table__cell-contents {
|
|
195
213
|
white-space: nowrap;
|
|
196
214
|
overflow: hidden;
|
|
197
215
|
text-overflow: ellipsis;
|
|
198
216
|
}
|
|
199
217
|
|
|
218
|
+
/* Cell spacing SM */
|
|
219
|
+
.sapphire-table__table--spacing-sm .sapphire-table__cell,
|
|
220
|
+
.sapphire-table__table--spacing-sm
|
|
221
|
+
.sapphire-table__selectionCell:not(:first-child) {
|
|
222
|
+
padding-top: var(--sapphire-semantic-size-spacing-20);
|
|
223
|
+
padding-bottom: var(--sapphire-semantic-size-spacing-20);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Cell spacing LG */
|
|
227
|
+
.sapphire-table__table--spacing-lg .sapphire-table__cell,
|
|
228
|
+
.sapphire-table__table--spacing-lg
|
|
229
|
+
.sapphire-table__selectionCell:not(:first-child) {
|
|
230
|
+
padding-top: var(--sapphire-semantic-size-spacing-40);
|
|
231
|
+
padding-bottom: var(--sapphire-semantic-size-spacing-40);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* Cell spacing XL */
|
|
235
|
+
.sapphire-table__table--spacing-xl .sapphire-table__cell,
|
|
236
|
+
.sapphire-table__table--spacing-xl
|
|
237
|
+
.sapphire-table__selectionCell:not(:first-child) {
|
|
238
|
+
padding-top: var(--sapphire-global-size-generic-50);
|
|
239
|
+
padding-bottom: var(--sapphire-global-size-generic-50);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* Cell spacing MD (default) */
|
|
200
243
|
.sapphire-table__cell,
|
|
201
244
|
.sapphire-table__selectionCell {
|
|
202
245
|
font-size: var(--sapphire-semantic-size-font-text-lg);
|
|
203
246
|
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
204
247
|
padding: var(--sapphire-semantic-size-spacing-30)
|
|
205
|
-
var(--sapphire-semantic-size-spacing-
|
|
248
|
+
var(--sapphire-semantic-size-spacing-20);
|
|
206
249
|
}
|
|
207
250
|
|
|
208
|
-
/* Selection cells that are
|
|
251
|
+
/* Selection cells that are supposes to contain only a checkbox */
|
|
209
252
|
.sapphire-table__selectionCell {
|
|
210
253
|
line-height: 0;
|
|
211
|
-
padding-left: var(--sapphire-semantic-size-spacing-50);
|
|
212
254
|
width: var(--sapphire-global-size-generic-50);
|
|
213
255
|
}
|
|
214
256
|
|
|
215
|
-
.sapphire-
|
|
216
|
-
|
|
257
|
+
.sapphire-table__cell-wrapper .sapphire-table__selectionCell {
|
|
258
|
+
width: unset;
|
|
259
|
+
min-width: var(--sapphire-global-size-generic-50);
|
|
217
260
|
}
|
|
218
261
|
|
|
219
|
-
.sapphire-table__cell:first-child
|
|
262
|
+
.sapphire-table__cell:first-child,
|
|
263
|
+
.sapphire-table__selectionCell:first-child,
|
|
264
|
+
.sapphire-table__cell-wrapper:first-child > .sapphire-table__cell,
|
|
265
|
+
.sapphire-table__cell-wrapper:first-child > .sapphire-table__selectionCell {
|
|
220
266
|
padding-left: var(--sapphire-semantic-size-spacing-50);
|
|
221
267
|
}
|
|
222
|
-
.sapphire-table__cell:last-child
|
|
268
|
+
.sapphire-table__cell:last-child,
|
|
269
|
+
.sapphire-table__cell-wrapper:last-child > .sapphire-table__cell {
|
|
223
270
|
padding-right: var(--sapphire-semantic-size-spacing-50);
|
|
224
271
|
}
|
|
225
|
-
.sapphire-table__headCell:first-child
|
|
226
|
-
|
|
272
|
+
.sapphire-table__headCell:first-child,
|
|
273
|
+
.sapphire-table__cell-wrapper:first-child .sapphire-table__headCell {
|
|
274
|
+
padding-left: var(--sapphire-semantic-size-spacing-40);
|
|
227
275
|
}
|
|
228
|
-
|
|
276
|
+
|
|
277
|
+
.sapphire-table__selectionCell:first-child,
|
|
278
|
+
.sapphire-table__cell-wrapper:first-child > .sapphire-table__selectionCell {
|
|
229
279
|
padding-right: var(--sapphire-semantic-size-spacing-30);
|
|
230
280
|
}
|
|
231
281
|
|
|
282
|
+
.sapphire-table__headCell:last-child,
|
|
283
|
+
.sapphire-table__cell-wrapper:last-child > .sapphire-table__headCell {
|
|
284
|
+
padding-right: var(--sapphire-semantic-size-spacing-40);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.sapphire-table__tfoot .sapphire-table__cell {
|
|
288
|
+
font-weight: var(--sapphire-semantic-font-weight-default-bold);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.sapphire-table__cell-wrapper > .sapphire-table__cell,
|
|
292
|
+
.sapphire-table__cell-wrapper > .sapphire-table__selectionCell {
|
|
293
|
+
padding-left: var(--sapphire-semantic-size-spacing-20);
|
|
294
|
+
padding-right: var(--sapphire-semantic-size-spacing-20);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.sapphire-table__head .sapphire-table__selectionCell {
|
|
298
|
+
padding-top: var(--sapphire-semantic-size-spacing-20);
|
|
299
|
+
padding-bottom: var(--sapphire-semantic-size-spacing-20);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.sapphire-table__cell-wrapper .sapphire-table__headCell {
|
|
303
|
+
padding-left: 0;
|
|
304
|
+
padding-right: 0;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.sapphire-table__cell-wrapper .sapphire-table__cell,
|
|
308
|
+
.sapphire-table__cell-wrapper .sapphire-table__headCell,
|
|
309
|
+
.sapphire-table__cell-wrapper .sapphire-table__selectionCell {
|
|
310
|
+
display: flex;
|
|
311
|
+
align-items: center;
|
|
312
|
+
height: 100%;
|
|
313
|
+
box-sizing: border-box;
|
|
314
|
+
}
|
|
315
|
+
|
|
232
316
|
.sapphire-table__row {
|
|
233
317
|
position: relative;
|
|
234
318
|
border-bottom: var(--sapphire-semantic-size-border-sm) solid
|
|
@@ -313,6 +397,14 @@ and to avoid the complications of merging the two shadows */ {
|
|
|
313
397
|
var(--sapphire-semantic-color-background-informative-primary-default);
|
|
314
398
|
}
|
|
315
399
|
|
|
400
|
+
.sapphire-table__tfoot {
|
|
401
|
+
position: relative;
|
|
402
|
+
z-index: 2;
|
|
403
|
+
background-color: var(
|
|
404
|
+
--sapphire-semantic-color-background-action-secondary-default
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
|
|
316
408
|
/**
|
|
317
409
|
* Selection actions. Optionally shown when a table uses multiple selection.
|
|
318
410
|
*/
|
|
@@ -342,3 +434,15 @@ and to avoid the complications of merging the two shadows */ {
|
|
|
342
434
|
bottom: 0;
|
|
343
435
|
left: 0;
|
|
344
436
|
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Virtualized footer.
|
|
440
|
+
* Used when the table is virtualized and the (non-sticky) footer is present inside the scroll view.
|
|
441
|
+
*/
|
|
442
|
+
.sapphire-table__footer--virtualized {
|
|
443
|
+
position: absolute;
|
|
444
|
+
z-index: 2;
|
|
445
|
+
bottom: 0;
|
|
446
|
+
right: 0;
|
|
447
|
+
left: 0;
|
|
448
|
+
}
|
|
@@ -9,6 +9,7 @@ declare const styles: {
|
|
|
9
9
|
readonly "sapphire-table__cell--alignLeft": string;
|
|
10
10
|
readonly "sapphire-table__cell--alignCenter": string;
|
|
11
11
|
readonly "sapphire-table__cell--alignRight": string;
|
|
12
|
+
readonly "sapphire-table__cell-wrapper": string;
|
|
12
13
|
readonly "sapphire-table__headCell": string;
|
|
13
14
|
readonly "sapphire-table__headCell_container": string;
|
|
14
15
|
readonly "sapphire-table__row": string;
|
|
@@ -23,8 +24,13 @@ declare const styles: {
|
|
|
23
24
|
readonly "sapphire-table__headCell__text": string;
|
|
24
25
|
readonly "sapphire-table__headCell__icon": string;
|
|
25
26
|
readonly "sapphire-table__body": string;
|
|
27
|
+
readonly "sapphire-table__cell-contents": string;
|
|
26
28
|
readonly "sapphire-table__cell--ellipsed": string;
|
|
27
29
|
readonly "sapphire-table__headCell_content--ellipsed": string;
|
|
30
|
+
readonly "sapphire-table__table--spacing-sm": string;
|
|
31
|
+
readonly "sapphire-table__table--spacing-lg": string;
|
|
32
|
+
readonly "sapphire-table__table--spacing-xl": string;
|
|
33
|
+
readonly "sapphire-table__tfoot": string;
|
|
28
34
|
readonly "sapphire-table__row--active": string;
|
|
29
35
|
readonly "sapphire-table__row--selected": string;
|
|
30
36
|
readonly "sapphire-table__row--expanded": string;
|
|
@@ -37,6 +43,7 @@ declare const styles: {
|
|
|
37
43
|
readonly "sapphire-table__selection-action-bar": string;
|
|
38
44
|
readonly "sapphire-table__footer": string;
|
|
39
45
|
readonly "sapphire-table__footer--sticky": string;
|
|
46
|
+
readonly "sapphire-table__footer--virtualized": string;
|
|
40
47
|
};
|
|
41
48
|
export = styles;
|
|
42
49
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
font-size: inherit;
|
|
47
47
|
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
48
48
|
|
|
49
|
-
caret-color: var(--sapphire-semantic-color-
|
|
49
|
+
caret-color: var(--sapphire-semantic-color-cursor-default);
|
|
50
50
|
color: inherit;
|
|
51
51
|
|
|
52
52
|
background-color: transparent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-css",
|
|
3
|
-
"version": "35.
|
|
3
|
+
"version": "35.4.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,
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"typescript": "~4.6.4"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@danske/sapphire-design-tokens": "^41.
|
|
69
|
+
"@danske/sapphire-design-tokens": "^41.3.0"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "5289085e86eb94dc62d1e843364fbbd8f0c1903f"
|
|
72
72
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
require("@danske/sapphire-design-tokens/build/themes/realkredit/assets/fonts/realkredit/fontFace.css");
|
|
7
|
+
var tokens_module_css_1 = __importDefault(require("@danske/sapphire-design-tokens/build/themes/realkredit/css/tokens.module.css"));
|
|
8
|
+
var theme = {
|
|
9
|
+
themeClassName: tokens_module_css_1["default"]['sapphire-theme-realkredit']
|
|
10
|
+
};
|
|
11
|
+
exports["default"] = theme;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use '@danske/sapphire-design-tokens/build/themes/realkredit/css/tokens.css';
|