@danske/sapphire-css 34.0.0 → 35.3.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,4 @@
1
+ import '@danske/sapphire-design-tokens/build/themes/realkredit/assets/fonts/realkredit/fontFace.css';
2
+ import type { Theme } from '.';
3
+ declare const theme: Theme;
4
+ export default theme;
@@ -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,4 @@
1
+ import '@danske/sapphire-design-tokens/build/themes/realkredit/assets/fonts/realkredit/fontFace.css';
2
+ import type { Theme } from '.';
3
+ declare const theme: Theme;
4
+ export 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-global-size-generic-120));
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-global-size-generic-120));
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-semantic-size-height-control-lg);
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-global-size-generic-120);
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-semantic-size-height-control-lg);
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-global-size-generic-120) - 2 *
170
+ var(--sapphire-calendar-cell-size) - 2 *
160
171
  var(--sapphire-semantic-size-focus-ring)
161
172
  );
162
173
  height: calc(
163
- var(--sapphire-global-size-generic-120) - 2 *
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;
@@ -1,6 +1,3 @@
1
- /**
2
- * TODO(v2): rename to help-button
3
- */
4
1
  .sapphire-contextual-help {
5
2
  color: var(--sapphire-semantic-color-content-default-primary);
6
3
  line-height: var(--sapphire-global-size-line-height-sm);
@@ -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
 
@@ -192,6 +192,31 @@
192
192
  list-style: none;
193
193
  }
194
194
 
195
+ .sapphire-listbox__section-header {
196
+ font-size: var(--sapphire-semantic-size-font-text-md);
197
+ color: var(--sapphire-semantic-color-content-default-secondary);
198
+ padding: var(--sapphire-semantic-size-spacing-30)
199
+ var(--sapphire-semantic-size-spacing-40)
200
+ var(--sapphire-semantic-size-spacing-20)
201
+ var(--sapphire-semantic-size-spacing-40);
202
+ }
203
+
204
+ .sapphire-listbox--md .sapphire-listbox__section-header {
205
+ font-size: var(--sapphire-semantic-size-font-text-sm);
206
+ padding: var(--sapphire-semantic-size-spacing-25)
207
+ var(--sapphire-global-size-generic-35)
208
+ var(--sapphire-global-size-generic-15)
209
+ var(--sapphire-global-size-generic-35);
210
+ }
211
+
212
+ .sapphire-listbox--sm .sapphire-listbox__section-header {
213
+ font-size: var(--sapphire-semantic-size-font-text-sm);
214
+ padding: var(--sapphire-semantic-size-spacing-20)
215
+ var(--sapphire-semantic-size-spacing-30)
216
+ var(--sapphire-semantic-size-spacing-10)
217
+ var(--sapphire-semantic-size-spacing-30);
218
+ }
219
+
195
220
  .sapphire-listbox__separator {
196
221
  height: var(--sapphire-semantic-size-border-sm);
197
222
  width: 100%;
@@ -12,6 +12,7 @@ declare const styles: {
12
12
  readonly "sapphire-listbox__secondary-text": string;
13
13
  readonly "is-disabled": string;
14
14
  readonly "sapphire-listbox__section": string;
15
+ readonly "sapphire-listbox__section-header": string;
15
16
  readonly "sapphire-listbox__separator": string;
16
17
  readonly "is-focus": string;
17
18
  readonly "js-focus": string;
@@ -17,7 +17,7 @@
17
17
  justify-content: space-between;
18
18
  padding: var(--sapphire-semantic-size-spacing-50)
19
19
  var(--sapphire-semantic-size-spacing-container-horizontal-md);
20
- gap: var(--sapphire-semantic-size-spacing-40);
20
+ gap: var(--sapphire-semantic-size-spacing-30);
21
21
  }
22
22
 
23
23
  .sapphire-modal-layout__body {
@@ -54,11 +54,7 @@
54
54
 
55
55
  .sapphire-modal-layout__subheading {
56
56
  color: var(--sapphire-semantic-color-content-default-secondary);
57
- margin-top: var(--sapphire-semantic-size-spacing-10);
58
- }
59
-
60
- .sapphire-modal-layout__close-button-container {
61
- margin-left: var(--sapphire-semantic-size-spacing-50);
57
+ margin-top: var(--sapphire-semantic-size-spacing-20);
62
58
  }
63
59
 
64
60
  .sapphire-modal-layout__header-container + .sapphire-modal-layout__body {
@@ -73,10 +69,9 @@
73
69
  }
74
70
 
75
71
  .sapphire-modal-layout:not(:has(.sapphire-modal-layout__footer))
76
- .sapphire-modal-layout__body {
72
+ .sapphire-modal-layout__body:not(.sapphire-modal-layout__body--no-padding) {
77
73
  padding-bottom: var(--sapphire-semantic-size-spacing-50);
78
74
  }
79
-
80
75
  .sapphire-modal-layout__body + .sapphire-modal-layout__footer-container {
81
76
  /** invisible line wrap attached only for visual consistency, once we get attached border-bottom with scrolled content **/
82
77
  border-top: var(--sapphire-semantic-size-border-sm) solid transparent;
@@ -8,7 +8,6 @@ declare const styles: {
8
8
  readonly "sapphire-modal-layout__footer": string;
9
9
  readonly "sapphire-modal-layout__heading-container": string;
10
10
  readonly "sapphire-modal-layout__subheading": string;
11
- readonly "sapphire-modal-layout__close-button-container": string;
12
11
  readonly "sapphire-modal-layout__body--scrolled": string;
13
12
  readonly "sapphire-modal-layout__body--scrollable": string;
14
13
  };
@@ -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-background-action-primary-default);
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(--sapphire-global-color-sapphire-50);
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(--sapphire-semantic-color-background-surface);
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-global-color-sapphire-100);
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-content-default-primary);
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-action-primary-default);
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-30);
248
+ var(--sapphire-semantic-size-spacing-20);
206
249
  }
207
250
 
208
- /* Selection cells that are suppose to contain only a checkbox */
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-table__selectionCell:not(:first-child) {
216
- padding-left: var(--sapphire-semantic-size-spacing-30);
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
- padding-left: var(--sapphire-semantic-size-spacing-30);
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
- .sapphire-table__headCell:last-child {
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
 
@@ -131,7 +131,7 @@
131
131
  }
132
132
 
133
133
  .sapphire-text--body-1 {
134
- font-size: var(--sapphire-global-size-font-106);
134
+ font-size: var(--sapphire-global-size-font-100);
135
135
  }
136
136
 
137
137
  .sapphire-text--body-2 {
@@ -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-background-action-primary-default);
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": "34.0.0",
3
+ "version": "35.3.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,
@@ -46,7 +46,7 @@
46
46
  "@babel/preset-react": "^7.18.6",
47
47
  "@babel/preset-typescript": "^7.18.6",
48
48
  "@danske/sapphire-icons": "^2.0.0",
49
- "@danske/sapphire-react": "^3.39.2",
49
+ "@danske/sapphire-react": "^4.3.0",
50
50
  "@storybook/addon-essentials": "^6.5.13",
51
51
  "@storybook/addon-links": "^6.5.13",
52
52
  "@storybook/addons": "^6.5.13",
@@ -66,7 +66,7 @@
66
66
  "typescript": "~4.6.4"
67
67
  },
68
68
  "dependencies": {
69
- "@danske/sapphire-design-tokens": "^41.1.0"
69
+ "@danske/sapphire-design-tokens": "^41.3.0"
70
70
  },
71
- "gitHead": "038080059449e1550c0283e6ee617f11437cbeb6"
71
+ "gitHead": "963a89e30f65b6a968c406b16323aaa744bd9475"
72
72
  }
@@ -0,0 +1,4 @@
1
+ import '@danske/sapphire-design-tokens/build/themes/realkredit/assets/fonts/realkredit/fontFace.css';
2
+ import type { Theme } from '.';
3
+ declare const theme: Theme;
4
+ export default theme;
@@ -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';