@dnb/eufemia 9.38.0-beta.1 → 9.38.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/CHANGELOG.md +6 -1
- package/cjs/components/lib.d.ts +2 -3
- package/cjs/components/table/Table.d.ts +21 -6
- package/cjs/components/table/Table.js +14 -3
- package/cjs/components/table/TableContainer.d.ts +42 -0
- package/cjs/components/table/TableContainer.js +86 -0
- package/cjs/components/table/TableScrollView.d.ts +10 -0
- package/cjs/components/table/TableScrollView.js +40 -0
- package/cjs/components/table/TableStickyHeader.d.ts +2 -2
- package/cjs/components/table/TableTd.d.ts +10 -0
- package/cjs/components/table/TableTd.js +4 -2
- package/cjs/components/table/TableTh.d.ts +1 -0
- package/cjs/components/table/TableTh.js +14 -2
- package/cjs/components/table/TableTr.d.ts +5 -0
- package/cjs/components/table/TableTr.js +3 -2
- package/cjs/components/table/style/_table-cell.scss +21 -0
- package/cjs/components/table/style/_table-container.scss +61 -0
- package/cjs/components/table/style/_table-header-buttons.scss +0 -5
- package/cjs/components/table/style/_table-sticky.scss +42 -0
- package/cjs/components/table/style/_table-td.scss +132 -0
- package/cjs/components/table/style/_table-th.scss +36 -0
- package/cjs/components/table/style/_table-tr.scss +31 -0
- package/cjs/components/table/style/_table.scss +9 -36
- package/cjs/components/table/style/dnb-table.css +264 -37
- package/cjs/components/table/style/dnb-table.min.css +2 -2
- package/cjs/components/table/style/themes/dnb-table-theme-ui.css +12 -71
- 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 -72
- package/cjs/elements/Table.d.ts +6 -2
- package/cjs/elements/Td.d.ts +6 -2
- package/cjs/elements/Th.d.ts +6 -2
- package/cjs/elements/Tr.d.ts +6 -2
- package/cjs/elements/index.d.ts +1 -5
- package/cjs/elements/index.js +0 -32
- package/cjs/elements/lib.d.ts +1 -7
- package/cjs/elements/lib.js +0 -27
- package/cjs/index.d.ts +1 -4
- package/cjs/index.js +0 -24
- package/cjs/shared/Eufemia.js +1 -1
- package/cjs/style/dnb-ui-components.css +252 -37
- package/cjs/style/dnb-ui-components.min.css +2 -2
- package/cjs/style/dnb-ui-elements.css +15 -3
- package/cjs/style/dnb-ui-elements.min.css +1 -1
- package/cjs/style/dnb-ui-tags.css +25 -6
- package/cjs/style/dnb-ui-tags.min.css +1 -1
- package/cjs/style/elements/_anchor-mixins.scss +8 -4
- package/cjs/style/elements/typography.scss +14 -0
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.css +27 -74
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +2 -2
- package/cjs/style/themes/theme-ui/dnb-theme-ui.css +27 -74
- package/cjs/style/themes/theme-ui/dnb-theme-ui.min.css +2 -2
- package/components/lib.d.ts +2 -3
- package/components/table/Table.d.ts +21 -6
- package/components/table/Table.js +8 -3
- package/components/table/TableContainer.d.ts +42 -0
- package/components/table/TableContainer.js +52 -0
- package/components/table/TableScrollView.d.ts +10 -0
- package/components/table/TableScrollView.js +15 -0
- package/components/table/TableStickyHeader.d.ts +2 -2
- package/components/table/TableTd.d.ts +10 -0
- package/components/table/TableTd.js +4 -2
- package/components/table/TableTh.d.ts +1 -0
- package/components/table/TableTh.js +15 -2
- package/components/table/TableTr.d.ts +5 -0
- package/components/table/TableTr.js +3 -2
- package/components/table/style/_table-cell.scss +21 -0
- package/components/table/style/_table-container.scss +61 -0
- package/components/table/style/_table-header-buttons.scss +0 -5
- package/components/table/style/_table-sticky.scss +42 -0
- package/components/table/style/_table-td.scss +132 -0
- package/components/table/style/_table-th.scss +36 -0
- package/components/table/style/_table-tr.scss +31 -0
- package/components/table/style/_table.scss +9 -36
- package/components/table/style/dnb-table.css +264 -37
- package/components/table/style/dnb-table.min.css +2 -2
- package/components/table/style/themes/dnb-table-theme-ui.css +12 -71
- package/components/table/style/themes/dnb-table-theme-ui.min.css +1 -1
- package/components/table/style/themes/dnb-table-theme-ui.scss +6 -72
- package/elements/Table.d.ts +6 -2
- package/elements/Td.d.ts +6 -2
- package/elements/Th.d.ts +6 -2
- package/elements/Tr.d.ts +6 -2
- package/elements/index.d.ts +1 -5
- package/elements/index.js +1 -5
- package/elements/lib.d.ts +1 -7
- package/elements/lib.js +1 -7
- package/es/components/lib.d.ts +2 -3
- package/es/components/table/Table.d.ts +21 -6
- package/es/components/table/Table.js +9 -4
- package/es/components/table/TableContainer.d.ts +42 -0
- package/es/components/table/TableContainer.js +60 -0
- package/es/components/table/TableScrollView.d.ts +10 -0
- package/es/components/table/TableScrollView.js +17 -0
- package/es/components/table/TableStickyHeader.d.ts +2 -2
- package/es/components/table/TableTd.d.ts +10 -0
- package/es/components/table/TableTd.js +5 -3
- package/es/components/table/TableTh.d.ts +1 -0
- package/es/components/table/TableTh.js +16 -2
- package/es/components/table/TableTr.d.ts +5 -0
- package/es/components/table/TableTr.js +3 -2
- package/es/components/table/style/_table-cell.scss +21 -0
- package/es/components/table/style/_table-container.scss +61 -0
- package/es/components/table/style/_table-header-buttons.scss +0 -5
- package/es/components/table/style/_table-sticky.scss +42 -0
- package/es/components/table/style/_table-td.scss +132 -0
- package/es/components/table/style/_table-th.scss +36 -0
- package/es/components/table/style/_table-tr.scss +31 -0
- package/es/components/table/style/_table.scss +9 -36
- package/es/components/table/style/dnb-table.css +264 -37
- package/es/components/table/style/dnb-table.min.css +2 -2
- package/es/components/table/style/themes/dnb-table-theme-ui.css +12 -71
- 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 -72
- package/es/elements/Table.d.ts +6 -2
- package/es/elements/Td.d.ts +6 -2
- package/es/elements/Th.d.ts +6 -2
- package/es/elements/Tr.d.ts +6 -2
- package/es/elements/index.d.ts +1 -5
- package/es/elements/index.js +1 -5
- package/es/elements/lib.d.ts +1 -7
- package/es/elements/lib.js +1 -7
- package/es/index.d.ts +1 -4
- package/es/index.js +1 -4
- package/es/shared/Eufemia.js +1 -1
- package/es/style/dnb-ui-components.css +252 -37
- package/es/style/dnb-ui-components.min.css +2 -2
- package/es/style/dnb-ui-elements.css +15 -3
- package/es/style/dnb-ui-elements.min.css +1 -1
- package/es/style/dnb-ui-tags.css +25 -6
- package/es/style/dnb-ui-tags.min.css +1 -1
- package/es/style/elements/_anchor-mixins.scss +8 -4
- package/es/style/elements/typography.scss +14 -0
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.css +27 -74
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +2 -2
- package/es/style/themes/theme-ui/dnb-theme-ui.css +27 -74
- package/es/style/themes/theme-ui/dnb-theme-ui.min.css +2 -2
- 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 +4 -4
- 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/index.d.ts +1 -4
- package/index.js +1 -4
- package/package.json +1 -1
- package/shared/Eufemia.js +1 -1
- package/style/dnb-ui-components.css +252 -37
- package/style/dnb-ui-components.min.css +2 -2
- package/style/dnb-ui-elements.css +15 -3
- package/style/dnb-ui-elements.min.css +1 -1
- package/style/dnb-ui-tags.css +25 -6
- package/style/dnb-ui-tags.min.css +1 -1
- package/style/elements/_anchor-mixins.scss +8 -4
- package/style/elements/typography.scss +14 -0
- package/style/themes/theme-eiendom/dnb-theme-eiendom.css +27 -74
- package/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +2 -2
- package/style/themes/theme-ui/dnb-theme-ui.css +27 -74
- package/style/themes/theme-ui/dnb-theme-ui.min.css +2 -2
- 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 +5 -5
- 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
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Table component
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.dnb-table {
|
|
7
|
+
&__sticky-helper > td {
|
|
8
|
+
display: block;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
padding: 0 !important;
|
|
11
|
+
height: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
tr.sticky th {
|
|
15
|
+
position: sticky;
|
|
16
|
+
top: var(--table-top, 0); // is set by "stickyOffset" prop
|
|
17
|
+
z-index: 2;
|
|
18
|
+
|
|
19
|
+
&::before {
|
|
20
|
+
content: '';
|
|
21
|
+
position: absolute;
|
|
22
|
+
opacity: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
right: 0;
|
|
25
|
+
bottom: 0;
|
|
26
|
+
height: 6px;
|
|
27
|
+
|
|
28
|
+
// The @mixin defaultDropShadow() does not work in this case
|
|
29
|
+
// because we need only a bottom shadow (with clip-path)
|
|
30
|
+
box-shadow: var(--shadow-default-x) -2px 12px 8px var(--shadow-default-color);
|
|
31
|
+
clip-path: inset(6px 0 -48px 0);
|
|
32
|
+
|
|
33
|
+
transition: opacity 300ms ease-out;
|
|
34
|
+
[data-visual-test-wrapper] & {
|
|
35
|
+
transition: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
tr.sticky.show-shadow th::before {
|
|
40
|
+
opacity: 1;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Table component
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@import './_table-header-buttons.scss';
|
|
7
|
+
|
|
8
|
+
@mixin tableBorder {
|
|
9
|
+
content: '';
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
z-index: -1;
|
|
16
|
+
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dnb-table {
|
|
21
|
+
& > tr > td,
|
|
22
|
+
& > tbody > tr > td,
|
|
23
|
+
&__td,
|
|
24
|
+
& > tr > th[scope='row'] {
|
|
25
|
+
padding: var(--spacing-small);
|
|
26
|
+
padding-top: calc(var(--spacing-small) * 1.25); // 20px
|
|
27
|
+
padding-bottom: calc(var(--spacing-small) * 1.25); // 20px
|
|
28
|
+
|
|
29
|
+
color: var(--theme-color-black-80, currentColor);
|
|
30
|
+
|
|
31
|
+
vertical-align: baseline;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// table border
|
|
35
|
+
--border: 0.0625rem solid var(--color-black-8);
|
|
36
|
+
&--border tbody &__td {
|
|
37
|
+
z-index: 2; // ensure border is behind content
|
|
38
|
+
|
|
39
|
+
&::after {
|
|
40
|
+
@include tableBorder();
|
|
41
|
+
|
|
42
|
+
border: var(--border);
|
|
43
|
+
border-right: none;
|
|
44
|
+
border-bottom: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:first-of-type::after {
|
|
48
|
+
border-left: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
&:not(#{&}--outline) tbody &__tr:last-of-type &__td::after {
|
|
52
|
+
border-bottom: var(--border);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// table outline
|
|
56
|
+
--outline: 0.0625rem solid var(--color-black-8);
|
|
57
|
+
&--outline thead &__th {
|
|
58
|
+
z-index: 2; // ensure border is behind content
|
|
59
|
+
|
|
60
|
+
&::after {
|
|
61
|
+
@include tableBorder();
|
|
62
|
+
|
|
63
|
+
border-top: var(--outline);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:first-of-type::after {
|
|
67
|
+
border-left: var(--outline);
|
|
68
|
+
}
|
|
69
|
+
&:last-of-type::after {
|
|
70
|
+
border-right: var(--outline);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
&--outline tbody &__td {
|
|
74
|
+
z-index: 2; // ensure border is behind content
|
|
75
|
+
|
|
76
|
+
&:first-of-type::after,
|
|
77
|
+
&:last-of-type::after {
|
|
78
|
+
@include tableBorder();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:first-of-type::after {
|
|
82
|
+
border-left: var(--outline);
|
|
83
|
+
}
|
|
84
|
+
&:last-of-type::after {
|
|
85
|
+
border-right: var(--outline);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
&--outline tbody &__tr:last-of-type &__td {
|
|
89
|
+
z-index: 2; // ensure border is behind content
|
|
90
|
+
|
|
91
|
+
&::after {
|
|
92
|
+
@include tableBorder();
|
|
93
|
+
|
|
94
|
+
border-bottom: var(--outline);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
&--outline thead &__th:first-of-type {
|
|
98
|
+
&,
|
|
99
|
+
&::after {
|
|
100
|
+
border-radius: 0.5rem 0 0 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
&--outline thead &__th:last-of-type {
|
|
104
|
+
&,
|
|
105
|
+
&::after {
|
|
106
|
+
border-radius: 0 0.5rem 0 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
&--outline tbody &__tr:last-of-type &__td:first-of-type {
|
|
110
|
+
&,
|
|
111
|
+
&::after {
|
|
112
|
+
border-radius: 0 0 0 0.5rem;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
&--outline tbody &__tr:last-of-type &__td:last-of-type {
|
|
116
|
+
&,
|
|
117
|
+
&::after {
|
|
118
|
+
border-radius: 0 0 0.5rem 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// spacing
|
|
123
|
+
&__td--no-spacing,
|
|
124
|
+
td#{&}__td--no-spacing {
|
|
125
|
+
padding: 0;
|
|
126
|
+
}
|
|
127
|
+
&__td--spacing-horizontal,
|
|
128
|
+
td#{&}__td--spacing-horizontal {
|
|
129
|
+
padding-top: 0;
|
|
130
|
+
padding-bottom: 0;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Table component
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@import './_table-header-buttons.scss';
|
|
7
|
+
|
|
8
|
+
.dnb-table {
|
|
9
|
+
& > tr > th,
|
|
10
|
+
& > thead > tr > th,
|
|
11
|
+
&__th {
|
|
12
|
+
padding: var(--spacing-x-large) var(--spacing-small)
|
|
13
|
+
var(--spacing-x-small);
|
|
14
|
+
|
|
15
|
+
font-weight: var(--font-weight-medium);
|
|
16
|
+
color: var(--color-black);
|
|
17
|
+
|
|
18
|
+
vertical-align: bottom;
|
|
19
|
+
|
|
20
|
+
&:not([align]) {
|
|
21
|
+
text-align: inherit;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@include IS_FF {
|
|
25
|
+
// to get the perfect height of pixles, to this:
|
|
26
|
+
padding-bottom: calc(var(--spacing-x-small) - 0.5px);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
background-color: var(--color-white);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__th__horizontal {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: flex-end; // bottom align help-button or other additional elements
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Table component
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@import './_table-header-buttons.scss';
|
|
7
|
+
|
|
8
|
+
.dnb-table {
|
|
9
|
+
// Needs a double & & for specificity
|
|
10
|
+
& > tbody > tr,
|
|
11
|
+
& &__tr,
|
|
12
|
+
& &__tr--even {
|
|
13
|
+
background-color: var(--color-lavender);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Needs a double & & for specificity
|
|
17
|
+
& > tbody > tr:not(#{&}__tr--even):nth-of-type(2n),
|
|
18
|
+
& &__tr:not(#{&}__tr--even):nth-of-type(2n),
|
|
19
|
+
& &__tr--odd {
|
|
20
|
+
background-color: var(--color-white);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&--outline thead &__tr:first-of-type {
|
|
24
|
+
// use clip-path, because border-radius does not clip on tr's
|
|
25
|
+
clip-path: inset(0 round 0.5rem 0.5rem 0 0);
|
|
26
|
+
}
|
|
27
|
+
&--outline tbody &__tr:last-of-type {
|
|
28
|
+
// use clip-path, because border-radius does not clip on tr's
|
|
29
|
+
clip-path: inset(0 round 0 0 0.5rem 0.5rem);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
@import './_table-header-buttons.scss';
|
|
7
|
+
@import './_table-th.scss';
|
|
8
|
+
@import './_table-td.scss';
|
|
9
|
+
@import './_table-tr.scss';
|
|
10
|
+
@import './_table-cell.scss';
|
|
11
|
+
@import './_table-sticky.scss';
|
|
12
|
+
@import './_table-container.scss';
|
|
7
13
|
|
|
8
14
|
.dnb-table {
|
|
9
15
|
display: table;
|
|
@@ -19,13 +25,11 @@
|
|
|
19
25
|
|
|
20
26
|
&--fixed {
|
|
21
27
|
table-layout: fixed;
|
|
28
|
+
width: auto;
|
|
22
29
|
}
|
|
23
30
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
padding: 0 !important;
|
|
28
|
-
height: 0;
|
|
31
|
+
&--no-wrap {
|
|
32
|
+
white-space: nowrap;
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
// deprecated – can be removed in v10
|
|
@@ -47,37 +51,6 @@
|
|
|
47
51
|
caption-side: bottom;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
|
-
/* stylelint-disable-next-line */
|
|
51
|
-
|
|
52
|
-
tr.sticky th {
|
|
53
|
-
position: sticky;
|
|
54
|
-
top: var(--table-top, 0); // is set by "stickyOffset" prop
|
|
55
|
-
z-index: 2;
|
|
56
|
-
|
|
57
|
-
&::before {
|
|
58
|
-
content: '';
|
|
59
|
-
position: absolute;
|
|
60
|
-
opacity: 0;
|
|
61
|
-
left: 0;
|
|
62
|
-
right: 0;
|
|
63
|
-
bottom: 0;
|
|
64
|
-
height: 6px;
|
|
65
|
-
|
|
66
|
-
// The @mixin defaultDropShadow() does not work in this case
|
|
67
|
-
// because we need only a bottom shadow (with clip-path)
|
|
68
|
-
box-shadow: var(--shadow-default-x) -2px 12px 8px var(--shadow-default-color);
|
|
69
|
-
clip-path: inset(6px 0 -48px 0);
|
|
70
|
-
|
|
71
|
-
transition: opacity 300ms ease-out;
|
|
72
|
-
[data-visual-test-wrapper] & {
|
|
73
|
-
transition: none;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
tr.sticky.show-shadow th::before {
|
|
78
|
-
opacity: 1;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
54
|
/* stylelint-disable */
|
|
82
55
|
|
|
83
56
|
// deprecated – can be removed in v10
|
|
@@ -68,6 +68,50 @@
|
|
|
68
68
|
vertical-align: inherit;
|
|
69
69
|
/* 2 */ }
|
|
70
70
|
|
|
71
|
+
/*
|
|
72
|
+
* Table component
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
/*
|
|
76
|
+
* Button mixins
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
/*
|
|
80
|
+
* Table component
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
/*
|
|
84
|
+
* Button mixins
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
.dnb-table > tr > th,
|
|
88
|
+
.dnb-table > thead > tr > th, .dnb-table__th {
|
|
89
|
+
padding: 3rem 1rem 0.5rem;
|
|
90
|
+
padding: var(--spacing-x-large) var(--spacing-small) var(--spacing-x-small);
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
font-weight: var(--font-weight-medium);
|
|
93
|
+
color: #000;
|
|
94
|
+
color: var(--color-black);
|
|
95
|
+
vertical-align: bottom;
|
|
96
|
+
background-color: #fff;
|
|
97
|
+
background-color: var(--color-white); }
|
|
98
|
+
.dnb-table > tr > th:not([align]),
|
|
99
|
+
.dnb-table > thead > tr > th:not([align]), .dnb-table__th:not([align]) {
|
|
100
|
+
text-align: inherit; }
|
|
101
|
+
@supports (-moz-appearance: meterbar) and (background-blend-mode: difference, normal) {
|
|
102
|
+
.dnb-table > tr > th,
|
|
103
|
+
.dnb-table > thead > tr > th, .dnb-table__th {
|
|
104
|
+
padding-bottom: calc(0.5rem - 0.5px);
|
|
105
|
+
padding-bottom: calc(var(--spacing-x-small) - 0.5px); } }
|
|
106
|
+
|
|
107
|
+
.dnb-table__th__horizontal {
|
|
108
|
+
display: -webkit-box;
|
|
109
|
+
display: -ms-flexbox;
|
|
110
|
+
display: flex;
|
|
111
|
+
-webkit-box-align: end;
|
|
112
|
+
-ms-flex-align: end;
|
|
113
|
+
align-items: flex-end; }
|
|
114
|
+
|
|
71
115
|
/*
|
|
72
116
|
* Table component
|
|
73
117
|
*
|
|
@@ -76,6 +120,222 @@
|
|
|
76
120
|
* Button mixins
|
|
77
121
|
*
|
|
78
122
|
*/
|
|
123
|
+
.dnb-table {
|
|
124
|
+
--border: 0.0625rem solid var(--color-black-8);
|
|
125
|
+
--outline: 0.0625rem solid var(--color-black-8); }
|
|
126
|
+
.dnb-table > tr > td,
|
|
127
|
+
.dnb-table > tbody > tr > td, .dnb-table__td,
|
|
128
|
+
.dnb-table > tr > th[scope='row'] {
|
|
129
|
+
padding: 1rem;
|
|
130
|
+
padding: var(--spacing-small);
|
|
131
|
+
padding-top: 1.25rem;
|
|
132
|
+
padding-top: calc(1rem * 1.25);
|
|
133
|
+
padding-top: calc(var(--spacing-small)*1.25);
|
|
134
|
+
padding-top: calc(var(--spacing-small) * 1.25);
|
|
135
|
+
padding-bottom: 1.25rem;
|
|
136
|
+
padding-bottom: calc(1rem * 1.25);
|
|
137
|
+
padding-bottom: calc(var(--spacing-small)*1.25);
|
|
138
|
+
padding-bottom: calc(var(--spacing-small) * 1.25);
|
|
139
|
+
color: currentColor;
|
|
140
|
+
color: var(--theme-color-black-80, currentColor);
|
|
141
|
+
vertical-align: baseline; }
|
|
142
|
+
.dnb-table--border tbody .dnb-table__td {
|
|
143
|
+
z-index: 2; }
|
|
144
|
+
.dnb-table--border tbody .dnb-table__td::after {
|
|
145
|
+
content: '';
|
|
146
|
+
position: absolute;
|
|
147
|
+
top: 0;
|
|
148
|
+
left: 0;
|
|
149
|
+
right: 0;
|
|
150
|
+
bottom: 0;
|
|
151
|
+
z-index: -1;
|
|
152
|
+
pointer-events: none;
|
|
153
|
+
border: var(--border);
|
|
154
|
+
border-right: none;
|
|
155
|
+
border-bottom: none; }
|
|
156
|
+
.dnb-table--border tbody .dnb-table__td:first-of-type::after {
|
|
157
|
+
border-left: none; }
|
|
158
|
+
.dnb-table:not(.dnb-table--outline) tbody .dnb-table__tr:last-of-type .dnb-table__td::after {
|
|
159
|
+
border-bottom: var(--border); }
|
|
160
|
+
.dnb-table--outline thead .dnb-table__th {
|
|
161
|
+
z-index: 2; }
|
|
162
|
+
.dnb-table--outline thead .dnb-table__th::after {
|
|
163
|
+
content: '';
|
|
164
|
+
position: absolute;
|
|
165
|
+
top: 0;
|
|
166
|
+
left: 0;
|
|
167
|
+
right: 0;
|
|
168
|
+
bottom: 0;
|
|
169
|
+
z-index: -1;
|
|
170
|
+
pointer-events: none;
|
|
171
|
+
border-top: var(--outline); }
|
|
172
|
+
.dnb-table--outline thead .dnb-table__th:first-of-type::after {
|
|
173
|
+
border-left: var(--outline); }
|
|
174
|
+
.dnb-table--outline thead .dnb-table__th:last-of-type::after {
|
|
175
|
+
border-right: var(--outline); }
|
|
176
|
+
.dnb-table--outline tbody .dnb-table__td {
|
|
177
|
+
z-index: 2; }
|
|
178
|
+
.dnb-table--outline tbody .dnb-table__td:first-of-type::after, .dnb-table--outline tbody .dnb-table__td:last-of-type::after {
|
|
179
|
+
content: '';
|
|
180
|
+
position: absolute;
|
|
181
|
+
top: 0;
|
|
182
|
+
left: 0;
|
|
183
|
+
right: 0;
|
|
184
|
+
bottom: 0;
|
|
185
|
+
z-index: -1;
|
|
186
|
+
pointer-events: none; }
|
|
187
|
+
.dnb-table--outline tbody .dnb-table__td:first-of-type::after {
|
|
188
|
+
border-left: var(--outline); }
|
|
189
|
+
.dnb-table--outline tbody .dnb-table__td:last-of-type::after {
|
|
190
|
+
border-right: var(--outline); }
|
|
191
|
+
.dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__td {
|
|
192
|
+
z-index: 2; }
|
|
193
|
+
.dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__td::after {
|
|
194
|
+
content: '';
|
|
195
|
+
position: absolute;
|
|
196
|
+
top: 0;
|
|
197
|
+
left: 0;
|
|
198
|
+
right: 0;
|
|
199
|
+
bottom: 0;
|
|
200
|
+
z-index: -1;
|
|
201
|
+
pointer-events: none;
|
|
202
|
+
border-bottom: var(--outline); }
|
|
203
|
+
.dnb-table--outline thead .dnb-table__th:first-of-type, .dnb-table--outline thead .dnb-table__th:first-of-type::after {
|
|
204
|
+
border-radius: 0.5rem 0 0 0; }
|
|
205
|
+
.dnb-table--outline thead .dnb-table__th:last-of-type, .dnb-table--outline thead .dnb-table__th:last-of-type::after {
|
|
206
|
+
border-radius: 0 0.5rem 0 0; }
|
|
207
|
+
.dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__td:first-of-type, .dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__td:first-of-type::after {
|
|
208
|
+
border-radius: 0 0 0 0.5rem; }
|
|
209
|
+
.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::after {
|
|
210
|
+
border-radius: 0 0 0.5rem 0; }
|
|
211
|
+
.dnb-table__td--no-spacing,
|
|
212
|
+
.dnb-table td.dnb-table__td--no-spacing {
|
|
213
|
+
padding: 0; }
|
|
214
|
+
.dnb-table__td--spacing-horizontal,
|
|
215
|
+
.dnb-table td.dnb-table__td--spacing-horizontal {
|
|
216
|
+
padding-top: 0;
|
|
217
|
+
padding-bottom: 0; }
|
|
218
|
+
|
|
219
|
+
/*
|
|
220
|
+
* Table component
|
|
221
|
+
*
|
|
222
|
+
*/
|
|
223
|
+
/*
|
|
224
|
+
* Button mixins
|
|
225
|
+
*
|
|
226
|
+
*/
|
|
227
|
+
.dnb-table > tbody > tr,
|
|
228
|
+
.dnb-table .dnb-table__tr,
|
|
229
|
+
.dnb-table .dnb-table__tr--even {
|
|
230
|
+
background-color: #f2f2f5;
|
|
231
|
+
background-color: var(--color-lavender); }
|
|
232
|
+
|
|
233
|
+
.dnb-table > tbody > tr:not(.dnb-table__tr--even):nth-of-type(2n),
|
|
234
|
+
.dnb-table .dnb-table__tr:not(.dnb-table__tr--even):nth-of-type(2n),
|
|
235
|
+
.dnb-table .dnb-table__tr--odd {
|
|
236
|
+
background-color: #fff;
|
|
237
|
+
background-color: var(--color-white); }
|
|
238
|
+
|
|
239
|
+
.dnb-table--outline thead .dnb-table__tr:first-of-type {
|
|
240
|
+
-webkit-clip-path: inset(0 round 0.5rem 0.5rem 0 0);
|
|
241
|
+
clip-path: inset(0 round 0.5rem 0.5rem 0 0); }
|
|
242
|
+
|
|
243
|
+
.dnb-table--outline tbody .dnb-table__tr:last-of-type {
|
|
244
|
+
-webkit-clip-path: inset(0 round 0 0 0.5rem 0.5rem);
|
|
245
|
+
clip-path: inset(0 round 0 0 0.5rem 0.5rem); }
|
|
246
|
+
|
|
247
|
+
/*
|
|
248
|
+
* Table component
|
|
249
|
+
*
|
|
250
|
+
*/
|
|
251
|
+
.dnb-table > tr > th,
|
|
252
|
+
.dnb-table > tr > td,
|
|
253
|
+
.dnb-table > thead > tr > th,
|
|
254
|
+
.dnb-table > tbody > tr > td, .dnb-table__th, .dnb-table__td {
|
|
255
|
+
position: relative;
|
|
256
|
+
font-size: 1.125rem;
|
|
257
|
+
font-size: var(--font-size-basis);
|
|
258
|
+
line-height: 1.5rem;
|
|
259
|
+
line-height: var(--line-height-basis);
|
|
260
|
+
border-spacing: 0;
|
|
261
|
+
word-break: keep-all; }
|
|
262
|
+
|
|
263
|
+
/*
|
|
264
|
+
* Table component
|
|
265
|
+
*
|
|
266
|
+
*/
|
|
267
|
+
.dnb-table__sticky-helper > td {
|
|
268
|
+
display: block;
|
|
269
|
+
overflow: hidden;
|
|
270
|
+
padding: 0 !important;
|
|
271
|
+
height: 0; }
|
|
272
|
+
|
|
273
|
+
.dnb-table tr.sticky th {
|
|
274
|
+
position: sticky;
|
|
275
|
+
top: 0;
|
|
276
|
+
top: var(--table-top, 0);
|
|
277
|
+
z-index: 2; }
|
|
278
|
+
.dnb-table tr.sticky th::before {
|
|
279
|
+
content: '';
|
|
280
|
+
position: absolute;
|
|
281
|
+
opacity: 0;
|
|
282
|
+
left: 0;
|
|
283
|
+
right: 0;
|
|
284
|
+
bottom: 0;
|
|
285
|
+
height: 6px;
|
|
286
|
+
-webkit-box-shadow: 0 -2px 12px 8px rgba(51, 51, 51, 0.08);
|
|
287
|
+
box-shadow: 0 -2px 12px 8px rgba(51, 51, 51, 0.08);
|
|
288
|
+
-webkit-box-shadow: var(--shadow-default-x) -2px 12px 8px var(--shadow-default-color);
|
|
289
|
+
box-shadow: var(--shadow-default-x) -2px 12px 8px var(--shadow-default-color);
|
|
290
|
+
-webkit-clip-path: inset(6px 0 -48px 0);
|
|
291
|
+
clip-path: inset(6px 0 -48px 0);
|
|
292
|
+
-webkit-transition: opacity 300ms ease-out;
|
|
293
|
+
transition: opacity 300ms ease-out; }
|
|
294
|
+
[data-visual-test-wrapper] .dnb-table tr.sticky th::before {
|
|
295
|
+
-webkit-transition: none;
|
|
296
|
+
transition: none; }
|
|
297
|
+
|
|
298
|
+
.dnb-table tr.sticky.show-shadow th::before {
|
|
299
|
+
opacity: 1; }
|
|
300
|
+
|
|
301
|
+
/*
|
|
302
|
+
* Table component
|
|
303
|
+
*
|
|
304
|
+
*/
|
|
305
|
+
.dnb-table__container {
|
|
306
|
+
position: relative;
|
|
307
|
+
--border: 0.0625rem solid var(--color-black-8);
|
|
308
|
+
background-color: #fff;
|
|
309
|
+
background-color: var(--color-white); }
|
|
310
|
+
.dnb-table__container::after {
|
|
311
|
+
content: '';
|
|
312
|
+
position: absolute;
|
|
313
|
+
top: 0;
|
|
314
|
+
left: 0;
|
|
315
|
+
right: 0;
|
|
316
|
+
bottom: 0;
|
|
317
|
+
z-index: 1;
|
|
318
|
+
pointer-events: none;
|
|
319
|
+
border: var(--border); }
|
|
320
|
+
.dnb-table__container, .dnb-table__container::after {
|
|
321
|
+
border-radius: 0.5rem; }
|
|
322
|
+
.dnb-table__container, .dnb-table__container__body, .dnb-table__container__head, .dnb-table__container__foot {
|
|
323
|
+
display: -webkit-box;
|
|
324
|
+
display: -ms-flexbox;
|
|
325
|
+
display: flex;
|
|
326
|
+
-webkit-box-orient: vertical;
|
|
327
|
+
-webkit-box-direction: normal;
|
|
328
|
+
-ms-flex-direction: column;
|
|
329
|
+
flex-direction: column; }
|
|
330
|
+
.dnb-table__container__body .dnb-table:not([class*='space__bottom']) {
|
|
331
|
+
margin-bottom: 0; }
|
|
332
|
+
.dnb-table__container__head {
|
|
333
|
+
padding: 2rem 1rem 0; }
|
|
334
|
+
.dnb-spacing .dnb-table__container__head .dnb-h--large:not([class*='space__top']) {
|
|
335
|
+
margin: 0; }
|
|
336
|
+
.dnb-table__container__foot {
|
|
337
|
+
padding: 0.5rem 1rem 2rem; }
|
|
338
|
+
|
|
79
339
|
.dnb-table {
|
|
80
340
|
display: table;
|
|
81
341
|
table-layout: auto;
|
|
@@ -86,16 +346,13 @@
|
|
|
86
346
|
margin-bottom: var(--spacing-small);
|
|
87
347
|
border-spacing: 0;
|
|
88
348
|
border-collapse: collapse;
|
|
89
|
-
/* stylelint-disable-next-line */
|
|
90
349
|
/* stylelint-disable */
|
|
91
350
|
/* stylelint-enable */ }
|
|
92
351
|
.dnb-table--fixed {
|
|
93
|
-
table-layout: fixed;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
padding: 0 !important;
|
|
98
|
-
height: 0; }
|
|
352
|
+
table-layout: fixed;
|
|
353
|
+
width: auto; }
|
|
354
|
+
.dnb-table--no-wrap {
|
|
355
|
+
white-space: nowrap; }
|
|
99
356
|
.dnb-table, .dnb-table--left {
|
|
100
357
|
text-align: left; }
|
|
101
358
|
.dnb-table--right {
|
|
@@ -108,32 +365,6 @@
|
|
|
108
365
|
margin-top: 0.5rem;
|
|
109
366
|
margin-top: var(--spacing-x-small);
|
|
110
367
|
caption-side: bottom; }
|
|
111
|
-
.dnb-table tr.sticky th {
|
|
112
|
-
position: sticky;
|
|
113
|
-
top: 0;
|
|
114
|
-
top: var(--table-top, 0);
|
|
115
|
-
z-index: 2; }
|
|
116
|
-
.dnb-table tr.sticky th::before {
|
|
117
|
-
content: '';
|
|
118
|
-
position: absolute;
|
|
119
|
-
opacity: 0;
|
|
120
|
-
left: 0;
|
|
121
|
-
right: 0;
|
|
122
|
-
bottom: 0;
|
|
123
|
-
height: 6px;
|
|
124
|
-
-webkit-box-shadow: 0 -2px 12px 8px rgba(51, 51, 51, 0.08);
|
|
125
|
-
box-shadow: 0 -2px 12px 8px rgba(51, 51, 51, 0.08);
|
|
126
|
-
-webkit-box-shadow: var(--shadow-default-x) -2px 12px 8px var(--shadow-default-color);
|
|
127
|
-
box-shadow: var(--shadow-default-x) -2px 12px 8px var(--shadow-default-color);
|
|
128
|
-
-webkit-clip-path: inset(6px 0 -48px 0);
|
|
129
|
-
clip-path: inset(6px 0 -48px 0);
|
|
130
|
-
-webkit-transition: opacity 300ms ease-out;
|
|
131
|
-
transition: opacity 300ms ease-out; }
|
|
132
|
-
[data-visual-test-wrapper] .dnb-table tr.sticky th::before {
|
|
133
|
-
-webkit-transition: none;
|
|
134
|
-
transition: none; }
|
|
135
|
-
.dnb-table tr.sticky.show-shadow th::before {
|
|
136
|
-
opacity: 1; }
|
|
137
368
|
.dnb-table--small,
|
|
138
369
|
.dnb-table--small > tr > th,
|
|
139
370
|
.dnb-table--small > tr > td,
|
|
@@ -416,10 +647,6 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
|
|
|
416
647
|
transform: rotate(180deg);
|
|
417
648
|
-webkit-transform-origin: 50% 50%;
|
|
418
649
|
transform-origin: 50% 50%; }
|
|
419
|
-
.dnb-table > thead > tr > th.dnb-table--no-wrap,
|
|
420
|
-
.dnb-table > tbody > tr > th.dnb-table--no-wrap,
|
|
421
|
-
.dnb-table .dnb-table__th.dnb-table--no-wrap {
|
|
422
|
-
white-space: nowrap; }
|
|
423
650
|
.dnb-table .dnb-table__th .dnb-table__help-button,
|
|
424
651
|
.dnb-table > thead > tr > th .dnb-table__help-button {
|
|
425
652
|
margin-left: 0.5rem; }
|