@dnb/eufemia 9.46.2 → 9.47.1
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/CHANGELOG.md +22 -0
- package/cjs/components/input-masked/InputMasked.js +13 -1
- package/cjs/components/input-masked/InputMaskedHooks.js +1 -1
- package/cjs/components/input-masked/InputMaskedUtils.js +3 -3
- package/cjs/components/table/TableContainer.d.ts +3 -3
- package/cjs/components/table/TableContainer.js +20 -1
- package/cjs/components/table/TableTh.js +2 -2
- package/cjs/components/table/style/_table-accordion.scss +52 -8
- package/cjs/components/table/style/_table-container.scss +20 -2
- package/cjs/components/table/style/_table-td.scss +35 -67
- package/cjs/components/table/style/_table-th.scss +41 -34
- package/cjs/components/table/style/_table.scss +12 -13
- package/cjs/components/table/style/dnb-table-mixins.css +0 -0
- package/cjs/components/table/style/dnb-table-mixins.min.css +0 -0
- package/cjs/components/table/style/dnb-table-mixins.scss +11 -0
- package/cjs/components/table/style/dnb-table.css +124 -137
- package/cjs/components/table/style/dnb-table.min.css +8 -7
- package/cjs/components/table/style/themes/dnb-table-theme-ui.css +7 -3
- package/cjs/components/table/style/themes/dnb-table-theme-ui.min.css +1 -1
- package/cjs/components/table/style/themes/dnb-table-theme-ui.scss +6 -12
- package/cjs/components/upload/Upload.js +0 -1
- package/cjs/components/upload/UploadFileInput.js +2 -10
- package/cjs/components/upload/UploadFileList.js +0 -1
- package/cjs/components/upload/UploadFileListCell.js +22 -23
- package/cjs/components/upload/UploadInfo.js +1 -9
- package/cjs/components/upload/UploadVerify.d.ts +3 -0
- package/cjs/components/upload/UploadVerify.js +27 -3
- package/cjs/shared/Eufemia.js +1 -1
- package/cjs/style/dnb-ui-components.css +124 -137
- package/cjs/style/dnb-ui-components.min.css +8 -7
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.css +7 -3
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +1 -1
- package/cjs/style/themes/theme-ui/dnb-theme-ui.css +7 -3
- package/cjs/style/themes/theme-ui/dnb-theme-ui.min.css +1 -1
- package/components/input-masked/InputMasked.js +13 -1
- package/components/input-masked/InputMaskedHooks.js +1 -1
- package/components/input-masked/InputMaskedUtils.js +3 -3
- package/components/table/TableContainer.d.ts +3 -3
- package/components/table/TableContainer.js +21 -1
- package/components/table/TableTh.js +2 -2
- package/components/table/style/_table-accordion.scss +52 -8
- package/components/table/style/_table-container.scss +20 -2
- package/components/table/style/_table-td.scss +35 -67
- package/components/table/style/_table-th.scss +41 -34
- package/components/table/style/_table.scss +12 -13
- package/components/table/style/dnb-table-mixins.css +0 -0
- package/components/table/style/dnb-table-mixins.min.css +0 -0
- package/components/table/style/dnb-table-mixins.scss +11 -0
- package/components/table/style/dnb-table.css +124 -137
- package/components/table/style/dnb-table.min.css +8 -7
- package/components/table/style/themes/dnb-table-theme-ui.css +7 -3
- package/components/table/style/themes/dnb-table-theme-ui.min.css +1 -1
- package/components/table/style/themes/dnb-table-theme-ui.scss +6 -12
- package/components/upload/Upload.js +0 -1
- package/components/upload/UploadFileInput.js +3 -10
- package/components/upload/UploadFileList.js +0 -1
- package/components/upload/UploadFileListCell.js +17 -19
- package/components/upload/UploadInfo.js +1 -9
- package/components/upload/UploadVerify.d.ts +3 -0
- package/components/upload/UploadVerify.js +18 -1
- package/es/components/input-masked/InputMasked.js +12 -1
- package/es/components/input-masked/InputMaskedHooks.js +1 -1
- package/es/components/input-masked/InputMaskedUtils.js +3 -3
- package/es/components/table/TableContainer.d.ts +3 -3
- package/es/components/table/TableContainer.js +21 -1
- package/es/components/table/TableTh.js +2 -2
- package/es/components/table/style/_table-accordion.scss +52 -8
- package/es/components/table/style/_table-container.scss +20 -2
- package/es/components/table/style/_table-td.scss +35 -67
- package/es/components/table/style/_table-th.scss +41 -34
- package/es/components/table/style/_table.scss +12 -13
- package/es/components/table/style/dnb-table-mixins.css +0 -0
- package/es/components/table/style/dnb-table-mixins.min.css +0 -0
- package/es/components/table/style/dnb-table-mixins.scss +11 -0
- package/es/components/table/style/dnb-table.css +124 -137
- package/es/components/table/style/dnb-table.min.css +8 -7
- package/es/components/table/style/themes/dnb-table-theme-ui.css +7 -3
- package/es/components/table/style/themes/dnb-table-theme-ui.min.css +1 -1
- package/es/components/table/style/themes/dnb-table-theme-ui.scss +6 -12
- package/es/components/upload/Upload.js +0 -1
- package/es/components/upload/UploadFileInput.js +3 -7
- package/es/components/upload/UploadFileList.js +0 -1
- package/es/components/upload/UploadFileListCell.js +14 -18
- package/es/components/upload/UploadInfo.js +1 -9
- package/es/components/upload/UploadVerify.d.ts +3 -0
- package/es/components/upload/UploadVerify.js +11 -1
- package/es/shared/Eufemia.js +1 -1
- package/es/style/dnb-ui-components.css +124 -137
- package/es/style/dnb-ui-components.min.css +8 -7
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.css +7 -3
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +1 -1
- package/es/style/themes/theme-ui/dnb-theme-ui.css +7 -3
- package/es/style/themes/theme-ui/dnb-theme-ui.min.css +1 -1
- package/esm/dnb-ui-basis.min.mjs +1 -1
- package/esm/dnb-ui-components.min.mjs +1 -1
- package/esm/dnb-ui-elements.min.mjs +2 -2
- package/esm/dnb-ui-extensions.min.mjs +1 -1
- package/esm/dnb-ui-lib.min.mjs +2 -2
- package/esm/dnb-ui-web-components.min.mjs +2 -2
- package/package.json +1 -1
- package/shared/Eufemia.js +1 -1
- package/style/dnb-ui-components.css +124 -137
- package/style/dnb-ui-components.min.css +8 -7
- package/style/themes/theme-eiendom/dnb-theme-eiendom.css +7 -3
- package/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +1 -1
- package/style/themes/theme-ui/dnb-theme-ui.css +7 -3
- package/style/themes/theme-ui/dnb-theme-ui.min.css +1 -1
- package/umd/dnb-ui-basis.min.js +1 -1
- package/umd/dnb-ui-components.min.js +1 -1
- package/umd/dnb-ui-elements.min.js +2 -2
- package/umd/dnb-ui-extensions.min.js +1 -1
- package/umd/dnb-ui-lib.min.js +2 -2
- package/umd/dnb-ui-web-components.min.js +2 -2
|
@@ -12,46 +12,53 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
// table border
|
|
15
|
-
&--
|
|
15
|
+
&--border tbody &__th {
|
|
16
16
|
&::after {
|
|
17
17
|
@include tableBorder();
|
|
18
18
|
|
|
19
|
-
border-top: var(--
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&:first-of-type::after {
|
|
23
|
-
border-left: var(--outline);
|
|
24
|
-
}
|
|
25
|
-
&:last-of-type::after {
|
|
26
|
-
border-right: var(--outline);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
&--outline thead &__th:first-of-type {
|
|
30
|
-
&,
|
|
31
|
-
&::after {
|
|
32
|
-
border-radius: 0.5rem 0 0 0;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
&--outline thead &__th:last-of-type {
|
|
36
|
-
&,
|
|
37
|
-
&::after {
|
|
38
|
-
border-radius: 0 0.5rem 0 0;
|
|
19
|
+
border-top: var(--border);
|
|
39
20
|
}
|
|
40
21
|
}
|
|
41
|
-
&--outline
|
|
42
|
-
|
|
22
|
+
// &--outline thead &__th {
|
|
23
|
+
// &::after {
|
|
24
|
+
// @include tableBorder();
|
|
43
25
|
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
&--outline tbody &__tr:last-of-type &__th {
|
|
47
|
-
&::after {
|
|
48
|
-
@include tableBorder();
|
|
26
|
+
// border-top: var(--outline);
|
|
27
|
+
// }
|
|
49
28
|
|
|
50
|
-
|
|
51
|
-
|
|
29
|
+
// &:first-of-type::after {
|
|
30
|
+
// border-left: var(--outline);
|
|
31
|
+
// }
|
|
32
|
+
// &:last-of-type::after {
|
|
33
|
+
// border-right: var(--outline);
|
|
34
|
+
// }
|
|
35
|
+
// }
|
|
36
|
+
// &--outline thead &__th:first-of-type {
|
|
37
|
+
// &,
|
|
38
|
+
// &::after {
|
|
39
|
+
// border-radius: 0.5rem 0 0 0;
|
|
40
|
+
// }
|
|
41
|
+
// }
|
|
42
|
+
// &--outline thead &__th:last-of-type {
|
|
43
|
+
// &,
|
|
44
|
+
// &::after {
|
|
45
|
+
// border-radius: 0 0.5rem 0 0;
|
|
46
|
+
// }
|
|
47
|
+
// }
|
|
48
|
+
// &--outline tbody &__th:first-of-type::after {
|
|
49
|
+
// @include tableBorder();
|
|
52
50
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
// border-left: var(--outline);
|
|
52
|
+
// }
|
|
53
|
+
// &--outline tbody &__tr:last-of-type &__th {
|
|
54
|
+
// &::after {
|
|
55
|
+
// @include tableBorder();
|
|
56
|
+
|
|
57
|
+
// border-bottom: var(--outline);
|
|
58
|
+
// }
|
|
59
|
+
|
|
60
|
+
// &:first-of-type::after {
|
|
61
|
+
// border-radius: 0 0 0 0.5rem;
|
|
62
|
+
// }
|
|
63
|
+
// }
|
|
57
64
|
}
|
|
@@ -3,18 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
@
|
|
7
|
-
content: '';
|
|
8
|
-
position: absolute;
|
|
9
|
-
top: 0;
|
|
10
|
-
left: 0;
|
|
11
|
-
right: 0;
|
|
12
|
-
bottom: 0;
|
|
13
|
-
z-index: 1;
|
|
14
|
-
|
|
15
|
-
pointer-events: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
6
|
+
@import './dnb-table-mixins.scss';
|
|
18
7
|
@import './_table-header-buttons.scss';
|
|
19
8
|
|
|
20
9
|
.dnb-table {
|
|
@@ -39,9 +28,19 @@
|
|
|
39
28
|
|
|
40
29
|
& > caption {
|
|
41
30
|
caption-side: bottom;
|
|
42
|
-
|
|
31
|
+
padding: 0.5rem 0 0.5rem 1rem;
|
|
43
32
|
|
|
44
33
|
font-size: var(--font-size-basis);
|
|
34
|
+
background-color: var(--color-white);
|
|
35
|
+
text-align: left;
|
|
36
|
+
}
|
|
37
|
+
&--border > caption:not(.dnb-sr-only) {
|
|
38
|
+
position: relative;
|
|
39
|
+
&::after {
|
|
40
|
+
@include tableBorder();
|
|
41
|
+
top: -0.0625rem; // so we are behind the border-bottom (end of table)
|
|
42
|
+
border-top: var(--border);
|
|
43
|
+
}
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
&.dnb-skeleton {
|
|
File without changes
|
|
File without changes
|
|
@@ -91,9 +91,25 @@
|
|
|
91
91
|
white-space: nowrap; }
|
|
92
92
|
.dnb-table > caption {
|
|
93
93
|
caption-side: bottom;
|
|
94
|
-
|
|
94
|
+
padding: 0.5rem 0 0.5rem 1rem;
|
|
95
95
|
font-size: 1.125rem;
|
|
96
|
-
font-size: var(--font-size-basis);
|
|
96
|
+
font-size: var(--font-size-basis);
|
|
97
|
+
background-color: #fff;
|
|
98
|
+
background-color: var(--color-white);
|
|
99
|
+
text-align: left; }
|
|
100
|
+
.dnb-table--border > caption:not(.dnb-sr-only) {
|
|
101
|
+
position: relative; }
|
|
102
|
+
.dnb-table--border > caption:not(.dnb-sr-only)::after {
|
|
103
|
+
content: '';
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: 0;
|
|
106
|
+
left: 0;
|
|
107
|
+
right: 0;
|
|
108
|
+
bottom: 0;
|
|
109
|
+
z-index: 1;
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
top: -0.0625rem;
|
|
112
|
+
border-top: var(--border); }
|
|
97
113
|
.dnb-table.dnb-skeleton > * {
|
|
98
114
|
-webkit-text-fill-color: #ebebeb;
|
|
99
115
|
-webkit-text-fill-color: var(--skeleton-color); }
|
|
@@ -393,41 +409,7 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
|
|
|
393
409
|
-ms-flex-align: end;
|
|
394
410
|
align-items: flex-end; }
|
|
395
411
|
|
|
396
|
-
.dnb-table--
|
|
397
|
-
content: '';
|
|
398
|
-
position: absolute;
|
|
399
|
-
top: 0;
|
|
400
|
-
left: 0;
|
|
401
|
-
right: 0;
|
|
402
|
-
bottom: 0;
|
|
403
|
-
z-index: 1;
|
|
404
|
-
pointer-events: none;
|
|
405
|
-
border-top: var(--outline); }
|
|
406
|
-
|
|
407
|
-
.dnb-table--outline thead .dnb-table__th:first-of-type::after {
|
|
408
|
-
border-left: var(--outline); }
|
|
409
|
-
|
|
410
|
-
.dnb-table--outline thead .dnb-table__th:last-of-type::after {
|
|
411
|
-
border-right: var(--outline); }
|
|
412
|
-
|
|
413
|
-
.dnb-table--outline thead .dnb-table__th:first-of-type, .dnb-table--outline thead .dnb-table__th:first-of-type::after {
|
|
414
|
-
border-radius: 0.5rem 0 0 0; }
|
|
415
|
-
|
|
416
|
-
.dnb-table--outline thead .dnb-table__th:last-of-type, .dnb-table--outline thead .dnb-table__th:last-of-type::after {
|
|
417
|
-
border-radius: 0 0.5rem 0 0; }
|
|
418
|
-
|
|
419
|
-
.dnb-table--outline tbody .dnb-table__th:first-of-type::after {
|
|
420
|
-
content: '';
|
|
421
|
-
position: absolute;
|
|
422
|
-
top: 0;
|
|
423
|
-
left: 0;
|
|
424
|
-
right: 0;
|
|
425
|
-
bottom: 0;
|
|
426
|
-
z-index: 1;
|
|
427
|
-
pointer-events: none;
|
|
428
|
-
border-left: var(--outline); }
|
|
429
|
-
|
|
430
|
-
.dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__th::after {
|
|
412
|
+
.dnb-table--border tbody .dnb-table__th::after {
|
|
431
413
|
content: '';
|
|
432
414
|
position: absolute;
|
|
433
415
|
top: 0;
|
|
@@ -436,10 +418,7 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
|
|
|
436
418
|
bottom: 0;
|
|
437
419
|
z-index: 1;
|
|
438
420
|
pointer-events: none;
|
|
439
|
-
border-
|
|
440
|
-
|
|
441
|
-
.dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__th:first-of-type::after {
|
|
442
|
-
border-radius: 0 0 0 0.5rem; }
|
|
421
|
+
border-top: var(--border); }
|
|
443
422
|
|
|
444
423
|
/*
|
|
445
424
|
* Table component
|
|
@@ -449,28 +428,10 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
|
|
|
449
428
|
* Button mixins
|
|
450
429
|
*
|
|
451
430
|
*/
|
|
452
|
-
.dnb-table
|
|
453
|
-
content: '';
|
|
454
|
-
position: absolute;
|
|
455
|
-
top: 0;
|
|
456
|
-
left: 0;
|
|
457
|
-
right: 0;
|
|
458
|
-
bottom: 0;
|
|
459
|
-
z-index: 1;
|
|
460
|
-
pointer-events: none;
|
|
461
|
-
border: var(--border);
|
|
462
|
-
border-right: none;
|
|
463
|
-
border-bottom: none; }
|
|
464
|
-
|
|
465
|
-
.dnb-table:not(.dnb-table--outline) tbody .dnb-table__tr:last-of-type .dnb-table__td::after,
|
|
466
|
-
.dnb-table:not(.dnb-table--outline) tbody .dnb-table__tr .dnb-table__td[rowspan]::after {
|
|
467
|
-
bottom: -0.0625rem;
|
|
468
|
-
border-bottom: var(--border); }
|
|
469
|
-
|
|
470
|
-
.dnb-table--outline tbody .dnb-table__td {
|
|
431
|
+
.dnb-table {
|
|
471
432
|
/* stylelint-disable */
|
|
472
433
|
/* stylelint-enable */ }
|
|
473
|
-
.dnb-table--
|
|
434
|
+
.dnb-table--border tbody .dnb-table__td::after {
|
|
474
435
|
content: '';
|
|
475
436
|
position: absolute;
|
|
476
437
|
top: 0;
|
|
@@ -478,72 +439,55 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
|
|
|
478
439
|
right: 0;
|
|
479
440
|
bottom: 0;
|
|
480
441
|
z-index: 1;
|
|
481
|
-
pointer-events: none;
|
|
482
|
-
|
|
483
|
-
border-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
-
|
|
488
|
-
|
|
489
|
-
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
.dnb-table--outline
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
.dnb-table--outline tbody .dnb-table__tr:
|
|
510
|
-
.dnb-table--outline tbody
|
|
511
|
-
.dnb-
|
|
512
|
-
|
|
513
|
-
.dnb-
|
|
514
|
-
.dnb-table--outline tbody
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
.dnb-table--outline
|
|
519
|
-
|
|
520
|
-
.dnb-
|
|
521
|
-
.dnb-table--outline tbody
|
|
522
|
-
|
|
523
|
-
.dnb-
|
|
524
|
-
.dnb-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
.dnb-table
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
.dnb-table--outline tbody .dnb-table__tr .dnb-table__th ~ .dnb-table__td:first-of-type:first-of-type::after {
|
|
531
|
-
border-left: none; }
|
|
532
|
-
|
|
533
|
-
.dnb-table--border tbody .dnb-table__tr .dnb-table__th ~ .dnb-table__td:first-of-type:first-of-type::after {
|
|
534
|
-
border-left: var(--border); }
|
|
535
|
-
|
|
536
|
-
.dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__th ~ .dnb-table__td:first-of-type, .dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__th ~ .dnb-table__td:first-of-type::before, .dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__th ~ .dnb-table__td:first-of-type::after {
|
|
537
|
-
border-radius: 0 0 0 0; }
|
|
538
|
-
|
|
539
|
-
.dnb-table__td--no-spacing,
|
|
540
|
-
.dnb-table td.dnb-table__td--no-spacing {
|
|
541
|
-
padding: 0; }
|
|
542
|
-
|
|
543
|
-
.dnb-table__td--spacing-horizontal,
|
|
544
|
-
.dnb-table td.dnb-table__td--spacing-horizontal {
|
|
545
|
-
padding-top: 0;
|
|
546
|
-
padding-bottom: 0; }
|
|
442
|
+
pointer-events: none;
|
|
443
|
+
border: var(--border);
|
|
444
|
+
border-right: none;
|
|
445
|
+
border-bottom: none; }
|
|
446
|
+
.dnb-table--outline {
|
|
447
|
+
position: relative; }
|
|
448
|
+
.dnb-table--outline, .dnb-table--outline::after {
|
|
449
|
+
border-radius: 0.5rem; }
|
|
450
|
+
.dnb-table--outline::after {
|
|
451
|
+
content: '';
|
|
452
|
+
position: absolute;
|
|
453
|
+
top: 0;
|
|
454
|
+
left: 0;
|
|
455
|
+
right: 0;
|
|
456
|
+
bottom: 0;
|
|
457
|
+
z-index: 1;
|
|
458
|
+
pointer-events: none;
|
|
459
|
+
z-index: 3;
|
|
460
|
+
border: var(--outline); }
|
|
461
|
+
.dnb-table--outline tbody .dnb-table__tr .dnb-table__th ~ .dnb-table__td:first-of-type:first-of-type::after {
|
|
462
|
+
border-left: none; }
|
|
463
|
+
.dnb-table--border tbody .dnb-table__tr .dnb-table__th ~ .dnb-table__td:first-of-type:first-of-type::after {
|
|
464
|
+
border-left: var(--border); }
|
|
465
|
+
.dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__th ~ .dnb-table__td:first-of-type, .dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__th ~ .dnb-table__td:first-of-type::before, .dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__th ~ .dnb-table__td:first-of-type::after {
|
|
466
|
+
border-radius: 0 0 0 0; }
|
|
467
|
+
.dnb-table--outline tbody:first-child .dnb-table__tr:first-of-type .dnb-table__th::after,
|
|
468
|
+
.dnb-table--outline > :not(thead) + tbody .dnb-table__tr:first-of-type .dnb-table__th::after {
|
|
469
|
+
border-top: var(--outline); }
|
|
470
|
+
.dnb-table--outline tbody:first-child .dnb-table__tr:first-of-type .dnb-table__th:first-of-type, .dnb-table--outline tbody:first-child .dnb-table__tr:first-of-type .dnb-table__th:first-of-type::after,
|
|
471
|
+
.dnb-table--outline > :not(thead) + tbody .dnb-table__tr:first-of-type .dnb-table__th:first-of-type,
|
|
472
|
+
.dnb-table--outline > :not(thead) + tbody .dnb-table__tr:first-of-type .dnb-table__th:first-of-type::after {
|
|
473
|
+
border-radius: 0.5rem 0 0 0; }
|
|
474
|
+
.dnb-table--outline > tbody:first-child .dnb-table__tr:first-of-type .dnb-table__td::after,
|
|
475
|
+
.dnb-table--outline > :not(thead) + tbody .dnb-table__tr:first-of-type .dnb-table__td::after {
|
|
476
|
+
border-top: var(--outline); }
|
|
477
|
+
.dnb-table--outline > tbody:first-child .dnb-table__tr:first-of-type .dnb-table__td:last-of-type, .dnb-table--outline > tbody:first-child .dnb-table__tr:first-of-type .dnb-table__td:last-of-type::after,
|
|
478
|
+
.dnb-table--outline > :not(thead) + tbody .dnb-table__tr:first-of-type .dnb-table__td:last-of-type,
|
|
479
|
+
.dnb-table--outline > :not(thead) + tbody .dnb-table__tr:first-of-type .dnb-table__td:last-of-type::after {
|
|
480
|
+
border-radius: 0 0.5rem 0 0; }
|
|
481
|
+
.dnb-table:not(.dnb-table--outline).dnb-table--border > tbody:first-child .dnb-table__td:last-of-type::after,
|
|
482
|
+
.dnb-table:not(.dnb-table--outline).dnb-table--border > :not(thead) + tbody .dnb-table__td:last-of-type::after {
|
|
483
|
+
border-right: var(--border); }
|
|
484
|
+
.dnb-table__td--no-spacing,
|
|
485
|
+
.dnb-table td.dnb-table__td--no-spacing {
|
|
486
|
+
padding: 0; }
|
|
487
|
+
.dnb-table__td--spacing-horizontal,
|
|
488
|
+
.dnb-table td.dnb-table__td--spacing-horizontal {
|
|
489
|
+
padding-top: 0;
|
|
490
|
+
padding-bottom: 0; }
|
|
547
491
|
|
|
548
492
|
/*
|
|
549
493
|
* Table component
|
|
@@ -652,21 +596,42 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
|
|
|
652
596
|
-webkit-box-direction: normal;
|
|
653
597
|
-ms-flex-direction: column;
|
|
654
598
|
flex-direction: column; }
|
|
655
|
-
.dnb-table__container__body .dnb-table
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
599
|
+
.dnb-table__container__body .dnb-table {
|
|
600
|
+
position: relative;
|
|
601
|
+
/* stylelint-disable */
|
|
602
|
+
/* stylelint-enable */ }
|
|
603
|
+
.dnb-table__container__body .dnb-table:not([class*='space__bottom']) {
|
|
604
|
+
margin-bottom: 0; }
|
|
605
|
+
.dnb-table__container__body .dnb-table__size--large .dnb-table__th {
|
|
606
|
+
padding-top: 1.5rem; }
|
|
607
|
+
.dnb-table__container__body .dnb-table::after {
|
|
608
|
+
content: '';
|
|
609
|
+
position: absolute;
|
|
610
|
+
top: 0;
|
|
611
|
+
left: 0;
|
|
612
|
+
right: 0;
|
|
613
|
+
bottom: 0;
|
|
614
|
+
z-index: 1;
|
|
615
|
+
pointer-events: none;
|
|
616
|
+
border-bottom: var(--border); }
|
|
617
|
+
.dnb-table__container__body .dnb-table tbody:first-child .dnb-table__tr:first-of-type .dnb-table__th::after,
|
|
618
|
+
.dnb-table__container__body .dnb-table tbody:first-child .dnb-table__tr:first-of-type .dnb-table__td::after,
|
|
619
|
+
.dnb-table__container__body .dnb-table > :not(thead) + tbody .dnb-table__tr:first-of-type .dnb-table__th::after,
|
|
620
|
+
.dnb-table__container__body .dnb-table > :not(thead) + tbody .dnb-table__tr:first-of-type .dnb-table__td::after {
|
|
621
|
+
border-top: none; }
|
|
659
622
|
.dnb-table__container__head {
|
|
660
623
|
padding: 2rem 1rem 0; }
|
|
661
624
|
.dnb-table__container__head--empty {
|
|
662
|
-
padding: 0
|
|
625
|
+
padding: 0;
|
|
626
|
+
min-height: 1.5rem; }
|
|
663
627
|
.dnb-spacing .dnb-table__container__head .dnb-h--large:not([class*='space__top']) {
|
|
664
628
|
margin: 0; }
|
|
665
629
|
.dnb-table__container__foot {
|
|
666
630
|
padding: 1rem;
|
|
667
631
|
padding-bottom: 1.25rem; }
|
|
668
632
|
.dnb-table__container__foot--empty {
|
|
669
|
-
padding
|
|
633
|
+
padding: 0;
|
|
634
|
+
min-height: 1rem; }
|
|
670
635
|
.dnb-table__container .dnb-table__scroll-view {
|
|
671
636
|
-webkit-clip-path: inset(0 round 0 0 0.5rem 0.5rem);
|
|
672
637
|
clip-path: inset(0 round 0 0 0.5rem 0.5rem); }
|
|
@@ -782,8 +747,11 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
|
|
|
782
747
|
.dnb-table__tr--has-accordion-content, .dnb-table__tr__accordion_content {
|
|
783
748
|
position: relative;
|
|
784
749
|
z-index: 2; }
|
|
785
|
-
.dnb-table__tr--has-accordion-content
|
|
750
|
+
.dnb-table__tr--has-accordion-content.dnb-table__tr--expanded, .dnb-table__tr__accordion_content {
|
|
786
751
|
z-index: 3; }
|
|
752
|
+
.dnb-table__tr--has-accordion-content:hover, .dnb-table__tr--has-accordion-content:active,
|
|
753
|
+
html[data-whatinput='keyboard'] .dnb-table__tr--has-accordion-content:focus {
|
|
754
|
+
z-index: 5; }
|
|
787
755
|
.dnb-table__tr--has-accordion-content.dnb-table__tr--expanded .dnb-table__toggle-button .dnb-icon {
|
|
788
756
|
-webkit-transform: rotate(180deg);
|
|
789
757
|
transform: rotate(180deg); }
|
|
@@ -816,6 +784,9 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
|
|
|
816
784
|
html:not([data-whatintent='touch']) .dnb-table__tr--has-accordion-content.dnb-table__tr:not(.dnb-table__tr--disabled):hover:not([disabled]) .dnb-table__td__accordion-icon .dnb-icon {
|
|
817
785
|
color: #14555a;
|
|
818
786
|
color: var(--color-emerald-green); }
|
|
787
|
+
.dnb-table--outline tbody
|
|
788
|
+
.dnb-table__tr--has-accordion-content:not(.dnb-table__tr--expanded):not(:nth-last-child(2)) .dnb-table__td::before {
|
|
789
|
+
bottom: -0.0625rem; }
|
|
819
790
|
.dnb-table__tr--has-accordion-content.dnb-table__tr--expanded:not(.dnb-table__tr--disabled):hover .dnb-table__td {
|
|
820
791
|
background-color: #fff;
|
|
821
792
|
background-color: var(--color-white); }
|
|
@@ -855,11 +826,12 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
|
|
|
855
826
|
@supports (-webkit-appearance: none) and (stroke-color: transparent) and (not (-webkit-touch-callout: none)) {
|
|
856
827
|
.dnb-table__tr__accordion_content[hidden] {
|
|
857
828
|
/**
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
829
|
+
* By reverting the display from "none" to "block",
|
|
830
|
+
* we trick VoiceOver to not make this row as the end of the table. We still need "hidden" to get the correct number of rows (childCount).
|
|
831
|
+
*/
|
|
861
832
|
display: block; } }
|
|
862
833
|
.dnb-table__tr__accordion_content td {
|
|
834
|
+
padding: 0 !important;
|
|
863
835
|
width: calc(100% - 3.5rem); }
|
|
864
836
|
.dnb-table__size--medium .dnb-table__tr__accordion_content td {
|
|
865
837
|
width: calc(100% - 3rem); }
|
|
@@ -920,6 +892,21 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
|
|
|
920
892
|
* But we do not need baseline in this tr > td, so we reset it.
|
|
921
893
|
*/
|
|
922
894
|
vertical-align: top; }
|
|
895
|
+
.dnb-table--outline tbody
|
|
896
|
+
.dnb-table__tr.dnb-table__tr--has-accordion-content:not(.dnb-table__tr--expanded):nth-last-child(2) .dnb-table__td:first-of-type, .dnb-table--outline tbody
|
|
897
|
+
.dnb-table__tr.dnb-table__tr--has-accordion-content:not(.dnb-table__tr--expanded):nth-last-child(2) .dnb-table__td:first-of-type::before, .dnb-table--outline tbody
|
|
898
|
+
.dnb-table__tr.dnb-table__tr--has-accordion-content:not(.dnb-table__tr--expanded):nth-last-child(2) .dnb-table__td:first-of-type::after {
|
|
899
|
+
border-radius: 0 0 0 0.5rem; }
|
|
900
|
+
.dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__td:last-of-type, .dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__td:last-of-type::before, .dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__td:last-of-type::after,
|
|
901
|
+
.dnb-table--outline tbody
|
|
902
|
+
.dnb-table__tr.dnb-table__tr--has-accordion-content:not(.dnb-table__tr--expanded):nth-last-child(2) .dnb-table__td:last-of-type,
|
|
903
|
+
.dnb-table--outline tbody
|
|
904
|
+
.dnb-table__tr.dnb-table__tr--has-accordion-content:not(.dnb-table__tr--expanded):nth-last-child(2) .dnb-table__td:last-of-type::before,
|
|
905
|
+
.dnb-table--outline tbody
|
|
906
|
+
.dnb-table__tr.dnb-table__tr--has-accordion-content:not(.dnb-table__tr--expanded):nth-last-child(2) .dnb-table__td:last-of-type::after {
|
|
907
|
+
border-radius: 0 0 0.5rem 0; }
|
|
908
|
+
.dnb-table--outline tbody .dnb-table__tr.dnb-table__tr__accordion_content:last-of-type .dnb-table__td, .dnb-table--outline tbody .dnb-table__tr.dnb-table__tr__accordion_content:last-of-type .dnb-table__td::before, .dnb-table--outline tbody .dnb-table__tr.dnb-table__tr__accordion_content:last-of-type .dnb-table__td::after {
|
|
909
|
+
border-radius: 0 0 0.5rem 0.5rem; }
|
|
923
910
|
.dnb-table__tr--has-accordion-content:not(.dnb-table__tr--disabled) {
|
|
924
911
|
cursor: pointer; }
|
|
925
912
|
.dnb-table__td-wrapper {
|