@dnb/eufemia 9.38.0 → 9.39.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 +14 -0
- package/cjs/components/height-animation/useHeightAnimation.js +5 -5
- package/cjs/components/table/Table.d.ts +1 -1
- package/cjs/components/table/style/_table-cell.scss +0 -2
- package/cjs/components/table/style/_table-header-buttons.scss +3 -3
- package/cjs/components/table/style/_table-td.scss +0 -13
- package/cjs/components/table/style/_table-th.scss +0 -23
- package/cjs/components/table/style/_table-tr.scss +1 -1
- package/cjs/components/table/style/_table.scss +4 -4
- package/cjs/components/table/style/dnb-table.css +12 -54
- package/cjs/components/table/style/dnb-table.min.css +1 -1
- package/cjs/components/table/style/themes/dnb-table-theme-ui.css +64 -4
- 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 +91 -5
- package/cjs/elements/index.d.ts +5 -1
- package/cjs/elements/index.js +32 -0
- package/cjs/elements/lib.d.ts +7 -1
- package/cjs/elements/lib.js +27 -0
- package/cjs/index.d.ts +4 -1
- package/cjs/index.js +24 -0
- package/cjs/shared/Eufemia.js +1 -1
- package/cjs/style/dnb-ui-components.css +12 -54
- package/cjs/style/dnb-ui-components.min.css +1 -1
- package/cjs/style/dnb-ui-elements.css +5 -4
- package/cjs/style/dnb-ui-elements.min.css +1 -1
- package/cjs/style/dnb-ui-tags.css +5 -8
- package/cjs/style/dnb-ui-tags.min.css +1 -1
- package/cjs/style/elements/typography.scss +7 -6
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.css +69 -8
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +2 -2
- package/cjs/style/themes/theme-ui/dnb-theme-ui.css +69 -8
- package/cjs/style/themes/theme-ui/dnb-theme-ui.min.css +2 -2
- package/components/height-animation/useHeightAnimation.js +4 -3
- package/components/table/Table.d.ts +1 -1
- package/components/table/style/_table-cell.scss +0 -2
- package/components/table/style/_table-header-buttons.scss +3 -3
- package/components/table/style/_table-td.scss +0 -13
- package/components/table/style/_table-th.scss +0 -23
- package/components/table/style/_table-tr.scss +1 -1
- package/components/table/style/_table.scss +4 -4
- package/components/table/style/dnb-table.css +12 -54
- package/components/table/style/dnb-table.min.css +1 -1
- package/components/table/style/themes/dnb-table-theme-ui.css +64 -4
- package/components/table/style/themes/dnb-table-theme-ui.min.css +1 -1
- package/components/table/style/themes/dnb-table-theme-ui.scss +91 -5
- package/elements/index.d.ts +5 -1
- package/elements/index.js +5 -1
- package/elements/lib.d.ts +7 -1
- package/elements/lib.js +7 -1
- package/es/components/height-animation/useHeightAnimation.js +4 -3
- package/es/components/table/Table.d.ts +1 -1
- package/es/components/table/style/_table-cell.scss +0 -2
- package/es/components/table/style/_table-header-buttons.scss +3 -3
- package/es/components/table/style/_table-td.scss +0 -13
- package/es/components/table/style/_table-th.scss +0 -23
- package/es/components/table/style/_table-tr.scss +1 -1
- package/es/components/table/style/_table.scss +4 -4
- package/es/components/table/style/dnb-table.css +12 -54
- package/es/components/table/style/dnb-table.min.css +1 -1
- package/es/components/table/style/themes/dnb-table-theme-ui.css +64 -4
- 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 +91 -5
- package/es/elements/index.d.ts +5 -1
- package/es/elements/index.js +5 -1
- package/es/elements/lib.d.ts +7 -1
- package/es/elements/lib.js +7 -1
- package/es/index.d.ts +4 -1
- package/es/index.js +4 -1
- package/es/shared/Eufemia.js +1 -1
- package/es/style/dnb-ui-components.css +12 -54
- package/es/style/dnb-ui-components.min.css +1 -1
- package/es/style/dnb-ui-elements.css +5 -4
- package/es/style/dnb-ui-elements.min.css +1 -1
- package/es/style/dnb-ui-tags.css +5 -8
- package/es/style/dnb-ui-tags.min.css +1 -1
- package/es/style/elements/typography.scss +7 -6
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.css +69 -8
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +2 -2
- package/es/style/themes/theme-ui/dnb-theme-ui.css +69 -8
- 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 +4 -1
- package/index.js +4 -1
- package/package.json +1 -1
- package/shared/Eufemia.js +1 -1
- package/style/dnb-ui-components.css +12 -54
- package/style/dnb-ui-components.min.css +1 -1
- package/style/dnb-ui-elements.css +5 -4
- package/style/dnb-ui-elements.min.css +1 -1
- package/style/dnb-ui-tags.css +5 -8
- package/style/dnb-ui-tags.min.css +1 -1
- package/style/elements/typography.scss +7 -6
- package/style/themes/theme-eiendom/dnb-theme-eiendom.css +69 -8
- package/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +2 -2
- package/style/themes/theme-ui/dnb-theme-ui.css +69 -8
- 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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to @dnb/eufemia will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [9.39.1](https://github.com/dnbexperience/eufemia/compare/v9.39.0...v9.39.1) (2022-11-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **HeightAnimation:** avoid usage of useLayoutEffect during SSR ([#1749](https://github.com/dnbexperience/eufemia/issues/1749)) ([667059b](https://github.com/dnbexperience/eufemia/commit/667059b41652a0c92db958a019d19949c9c08655))
|
|
12
|
+
|
|
13
|
+
# [9.39.0](https://github.com/dnbexperience/eufemia/compare/v9.38.0...v9.39.0) (2022-11-22)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **Table:** set new basis Table styles including medium and small size ([#1742](https://github.com/dnbexperience/eufemia/issues/1742)) ([d541377](https://github.com/dnbexperience/eufemia/commit/d541377c5805474c0a575edbb0bac2f30c267a2b)), closes [#1743](https://github.com/dnbexperience/eufemia/issues/1743)
|
|
19
|
+
|
|
6
20
|
# [9.38.0](https://github.com/dnbexperience/eufemia/compare/v9.37.0...v9.38.0) (2022-11-22)
|
|
7
21
|
|
|
8
22
|
|
|
@@ -45,6 +45,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
45
45
|
|
|
46
46
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
47
|
|
|
48
|
+
var useLayoutEffect = typeof window === 'undefined' ? _react.default.useEffect : _react.default.useLayoutEffect;
|
|
49
|
+
|
|
48
50
|
function useHeightAnimation(targetRef) {
|
|
49
51
|
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
50
52
|
_ref$open = _ref.open,
|
|
@@ -95,7 +97,7 @@ function useHeightAnimation(targetRef) {
|
|
|
95
97
|
return setIsMounted(false);
|
|
96
98
|
}, []);
|
|
97
99
|
|
|
98
|
-
|
|
100
|
+
useLayoutEffect(function () {
|
|
99
101
|
animRef.current = new _HeightAnimationInstance.default({
|
|
100
102
|
animate: animate
|
|
101
103
|
});
|
|
@@ -158,7 +160,6 @@ function useHeightAnimation(targetRef) {
|
|
|
158
160
|
return (_animRef$current = animRef.current) === null || _animRef$current === void 0 ? void 0 : _animRef$current.remove();
|
|
159
161
|
};
|
|
160
162
|
}, [animate]);
|
|
161
|
-
|
|
162
163
|
useOpenClose({
|
|
163
164
|
open: open,
|
|
164
165
|
animRef: animRef,
|
|
@@ -185,8 +186,7 @@ function useOpenClose(_ref2) {
|
|
|
185
186
|
animRef = _ref2.animRef,
|
|
186
187
|
targetRef = _ref2.targetRef,
|
|
187
188
|
isInitialRender = _ref2.isInitialRender;
|
|
188
|
-
|
|
189
|
-
_react.default.useLayoutEffect(function () {
|
|
189
|
+
useLayoutEffect(function () {
|
|
190
190
|
if (!targetRef.current) {
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
@@ -236,7 +236,7 @@ function useAdjust(_ref3) {
|
|
|
236
236
|
}
|
|
237
237
|
}, [children]);
|
|
238
238
|
|
|
239
|
-
|
|
239
|
+
useLayoutEffect(function () {
|
|
240
240
|
if (shouldAdjust()) {
|
|
241
241
|
animRef.current.elem.style.height = '';
|
|
242
242
|
animRef.current.adjustTo(fromHeight.current, animRef.current.getHeight());
|
|
@@ -4,7 +4,7 @@ import { StickyHelper } from './TableStickyHeader';
|
|
|
4
4
|
import type { StickyTableHeaderProps } from './TableStickyHeader';
|
|
5
5
|
import type { SkeletonShow } from '../skeleton/Skeleton';
|
|
6
6
|
import type { SpacingProps } from '../../shared/types';
|
|
7
|
-
export declare type TableSizes = 'large' | 'medium';
|
|
7
|
+
export declare type TableSizes = 'large' | 'medium' | 'small';
|
|
8
8
|
export declare type TableVariants = 'generic';
|
|
9
9
|
export { StickyHelper };
|
|
10
10
|
export { ScrollView };
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// sortable
|
|
16
16
|
& > thead > tr > th#{&}--sortable,
|
|
17
17
|
& &__th#{&}--sortable {
|
|
18
|
-
color: var(--color-
|
|
18
|
+
color: var(--color-sea-green);
|
|
19
19
|
|
|
20
20
|
.dnb-table__sort-button.dnb-button {
|
|
21
21
|
> .dnb-icon {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
// underline
|
|
64
64
|
&:not(:focus) .dnb-button__text::after {
|
|
65
65
|
opacity: 1;
|
|
66
|
-
color: var(--color-
|
|
66
|
+
color: var(--color-sea-green);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
@include hover() {
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
right: -0.5rem;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
color: var(--color-
|
|
105
|
+
color: var(--color-sea-green);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
// webkit fix
|
|
@@ -18,19 +18,6 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
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
21
|
// table border
|
|
35
22
|
--border: 0.0625rem solid var(--color-black-8);
|
|
36
23
|
&--border tbody &__td {
|
|
@@ -6,29 +6,6 @@
|
|
|
6
6
|
@import './_table-header-buttons.scss';
|
|
7
7
|
|
|
8
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
9
|
&__th__horizontal {
|
|
33
10
|
display: flex;
|
|
34
11
|
align-items: flex-end; // bottom align help-button or other additional elements
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
overflow: auto;
|
|
20
20
|
margin-top: 0;
|
|
21
|
-
margin-bottom:
|
|
21
|
+
margin-bottom: 0.5rem; // give room to a scrollbar
|
|
22
22
|
|
|
23
23
|
border-spacing: 0;
|
|
24
24
|
border-collapse: collapse;
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
& > caption {
|
|
48
|
-
font-size: var(--font-size-small);
|
|
49
|
-
|
|
50
|
-
margin-top: var(--spacing-x-small);
|
|
51
48
|
caption-side: bottom;
|
|
49
|
+
margin-top: 0.5rem;
|
|
50
|
+
|
|
51
|
+
font-size: var(--font-size-basis);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/* stylelint-disable */
|
|
@@ -84,26 +84,6 @@
|
|
|
84
84
|
* Button mixins
|
|
85
85
|
*
|
|
86
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
87
|
.dnb-table__th__horizontal {
|
|
108
88
|
display: -webkit-box;
|
|
109
89
|
display: -ms-flexbox;
|
|
@@ -123,22 +103,6 @@
|
|
|
123
103
|
.dnb-table {
|
|
124
104
|
--border: 0.0625rem solid var(--color-black-8);
|
|
125
105
|
--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
106
|
.dnb-table--border tbody .dnb-table__td {
|
|
143
107
|
z-index: 2; }
|
|
144
108
|
.dnb-table--border tbody .dnb-table__td::after {
|
|
@@ -227,8 +191,8 @@
|
|
|
227
191
|
.dnb-table > tbody > tr,
|
|
228
192
|
.dnb-table .dnb-table__tr,
|
|
229
193
|
.dnb-table .dnb-table__tr--even {
|
|
230
|
-
background-color: #
|
|
231
|
-
background-color: var(--color-
|
|
194
|
+
background-color: #f8f8f8;
|
|
195
|
+
background-color: var(--color-black-3); }
|
|
232
196
|
|
|
233
197
|
.dnb-table > tbody > tr:not(.dnb-table__tr--even):nth-of-type(2n),
|
|
234
198
|
.dnb-table .dnb-table__tr:not(.dnb-table__tr--even):nth-of-type(2n),
|
|
@@ -253,10 +217,6 @@
|
|
|
253
217
|
.dnb-table > thead > tr > th,
|
|
254
218
|
.dnb-table > tbody > tr > td, .dnb-table__th, .dnb-table__td {
|
|
255
219
|
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
220
|
border-spacing: 0;
|
|
261
221
|
word-break: keep-all; }
|
|
262
222
|
|
|
@@ -342,8 +302,7 @@
|
|
|
342
302
|
width: 100%;
|
|
343
303
|
overflow: auto;
|
|
344
304
|
margin-top: 0;
|
|
345
|
-
margin-bottom:
|
|
346
|
-
margin-bottom: var(--spacing-small);
|
|
305
|
+
margin-bottom: 0.5rem;
|
|
347
306
|
border-spacing: 0;
|
|
348
307
|
border-collapse: collapse;
|
|
349
308
|
/* stylelint-disable */
|
|
@@ -360,11 +319,10 @@
|
|
|
360
319
|
.dnb-table--center {
|
|
361
320
|
text-align: center; }
|
|
362
321
|
.dnb-table > caption {
|
|
363
|
-
|
|
364
|
-
font-size: var(--font-size-small);
|
|
322
|
+
caption-side: bottom;
|
|
365
323
|
margin-top: 0.5rem;
|
|
366
|
-
|
|
367
|
-
|
|
324
|
+
font-size: 1.125rem;
|
|
325
|
+
font-size: var(--font-size-basis); }
|
|
368
326
|
.dnb-table--small,
|
|
369
327
|
.dnb-table--small > tr > th,
|
|
370
328
|
.dnb-table--small > tr > td,
|
|
@@ -408,8 +366,8 @@
|
|
|
408
366
|
-webkit-text-fill-color: var(--skeleton-color); }
|
|
409
367
|
.dnb-table > thead > tr > th.dnb-table--sortable,
|
|
410
368
|
.dnb-table .dnb-table__th.dnb-table--sortable {
|
|
411
|
-
color: #
|
|
412
|
-
color: var(--color-
|
|
369
|
+
color: #007272;
|
|
370
|
+
color: var(--color-sea-green); }
|
|
413
371
|
.dnb-table > thead > tr > th.dnb-table--sortable .dnb-table__sort-button.dnb-button,
|
|
414
372
|
.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button {
|
|
415
373
|
position: relative;
|
|
@@ -456,8 +414,8 @@
|
|
|
456
414
|
.dnb-table > thead > tr > th.dnb-table--sortable .dnb-table__sort-button.dnb-button:not(:focus) .dnb-button__text::after,
|
|
457
415
|
.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:not(:focus) .dnb-button__text::after {
|
|
458
416
|
opacity: 1;
|
|
459
|
-
color: #
|
|
460
|
-
color: var(--color-
|
|
417
|
+
color: #007272;
|
|
418
|
+
color: var(--color-sea-green); }
|
|
461
419
|
html:not([data-whatintent='touch']) .dnb-table > thead > tr > th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover[disabled], html:not([data-whatintent='touch'])
|
|
462
420
|
.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover[disabled] {
|
|
463
421
|
cursor: not-allowed; }
|
|
@@ -511,8 +469,8 @@
|
|
|
511
469
|
.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]),
|
|
512
470
|
html:not([data-whatintent='touch'])
|
|
513
471
|
.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]) {
|
|
514
|
-
color: #
|
|
515
|
-
color: var(--color-
|
|
472
|
+
color: #007272;
|
|
473
|
+
color: var(--color-sea-green); }
|
|
516
474
|
.dnb-table > thead > tr > th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled])::before,
|
|
517
475
|
html:not([data-whatintent='touch']) .dnb-table > thead > tr > th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled])::before,
|
|
518
476
|
.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled])::before,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.dnb-table{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-size:1rem;font-size:var(--font-size-small);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;padding:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-table *,.dnb-table :after,.dnb-table :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-table :after,.dnb-table :before{text-decoration:inherit;vertical-align:inherit}.dnb-table>thead>tr>th,.dnb-table>tr>th,.dnb-table__th{background-color:#fff;background-color:var(--color-white);color:#000;color:var(--color-black);font-weight:500;font-weight:var(--font-weight-medium);padding:3rem 1rem .5rem;padding:var(--spacing-x-large) var(--spacing-small) var(--spacing-x-small);vertical-align:bottom}.dnb-table>thead>tr>th:not([align]),.dnb-table>tr>th:not([align]),.dnb-table__th:not([align]){text-align:inherit}@supports (-moz-appearance:meterbar) and (background-blend-mode:difference,normal){.dnb-table>thead>tr>th,.dnb-table>tr>th,.dnb-table__th{padding-bottom:calc(.5rem - .5px);padding-bottom:calc(var(--spacing-x-small) - .5px)}}.dnb-table__th__horizontal{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex}.dnb-table{--border:0.0625rem solid var(--color-black-8);--outline:0.0625rem solid var(--color-black-8)}.dnb-table>tbody>tr>td,.dnb-table>tr>td,.dnb-table>tr>th[scope=row],.dnb-table__td{color:currentColor;color:var(--theme-color-black-80,currentColor);padding:1rem;padding:var(--spacing-small);padding-bottom:1.25rem;padding-bottom:calc(var(--spacing-small)*1.25);padding-top:1.25rem;padding-top:calc(var(--spacing-small)*1.25);vertical-align:baseline}.dnb-table--border tbody .dnb-table__td{z-index:2}.dnb-table--border tbody .dnb-table__td:after{border:var(--border);border-bottom:none;border-right:none;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}.dnb-table--border tbody .dnb-table__td:first-of-type:after{border-left:none}.dnb-table:not(.dnb-table--outline) tbody .dnb-table__tr:last-of-type .dnb-table__td:after{border-bottom:var(--border)}.dnb-table--outline thead .dnb-table__th{z-index:2}.dnb-table--outline thead .dnb-table__th:after{border-top:var(--outline);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}.dnb-table--outline thead .dnb-table__th:first-of-type:after{border-left:var(--outline)}.dnb-table--outline thead .dnb-table__th:last-of-type:after{border-right:var(--outline)}.dnb-table--outline tbody .dnb-table__td{z-index:2}.dnb-table--outline tbody .dnb-table__td:first-of-type:after,.dnb-table--outline tbody .dnb-table__td:last-of-type:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}.dnb-table--outline tbody .dnb-table__td:first-of-type:after{border-left:var(--outline)}.dnb-table--outline tbody .dnb-table__td:last-of-type:after{border-right:var(--outline)}.dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__td{z-index:2}.dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__td:after{border-bottom:var(--outline);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}.dnb-table--outline thead .dnb-table__th:first-of-type,.dnb-table--outline thead .dnb-table__th:first-of-type:after{border-radius:.5rem 0 0 0}.dnb-table--outline thead .dnb-table__th:last-of-type,.dnb-table--outline thead .dnb-table__th:last-of-type:after{border-radius:0 .5rem 0 0}.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{border-radius:0 0 0 .5rem}.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{border-radius:0 0 .5rem 0}.dnb-table__td--no-spacing,.dnb-table td.dnb-table__td--no-spacing{padding:0}.dnb-table__td--spacing-horizontal,.dnb-table td.dnb-table__td--spacing-horizontal{padding-bottom:0;padding-top:0}.dnb-table .dnb-table__tr,.dnb-table .dnb-table__tr--even,.dnb-table>tbody>tr{background-color:#f2f2f5;background-color:var(--color-lavender)}.dnb-table .dnb-table__tr--odd,.dnb-table .dnb-table__tr:not(.dnb-table__tr--even):nth-of-type(2n),.dnb-table>tbody>tr:not(.dnb-table__tr--even):nth-of-type(2n){background-color:#fff;background-color:var(--color-white)}.dnb-table--outline thead .dnb-table__tr:first-of-type{-webkit-clip-path:inset(0 round .5rem .5rem 0 0);clip-path:inset(0 round .5rem .5rem 0 0)}.dnb-table--outline tbody .dnb-table__tr:last-of-type{-webkit-clip-path:inset(0 round 0 0 .5rem .5rem);clip-path:inset(0 round 0 0 .5rem .5rem)}.dnb-table>tbody>tr>td,.dnb-table>thead>tr>th,.dnb-table>tr>td,.dnb-table>tr>th,.dnb-table__td,.dnb-table__th{border-spacing:0;font-size:1.125rem;font-size:var(--font-size-basis);line-height:1.5rem;line-height:var(--line-height-basis);position:relative;word-break:keep-all}.dnb-table__sticky-helper>td{display:block;height:0;overflow:hidden;padding:0!important}.dnb-table tr.sticky th{position:sticky;top:0;top:var(--table-top,0);z-index:2}.dnb-table tr.sticky th:before{bottom:0;-webkit-box-shadow:0 -2px 12px 8px rgba(51,51,51,.08);box-shadow:0 -2px 12px 8px rgba(51,51,51,.08);-webkit-box-shadow:var(--shadow-default-x) -2px 12px 8px var(--shadow-default-color);box-shadow:var(--shadow-default-x) -2px 12px 8px var(--shadow-default-color);-webkit-clip-path:inset(6px 0 -48px 0);clip-path:inset(6px 0 -48px 0);content:"";height:6px;left:0;opacity:0;position:absolute;right:0;-webkit-transition:opacity .3s ease-out;transition:opacity .3s ease-out}[data-visual-test-wrapper] .dnb-table tr.sticky th:before{-webkit-transition:none;transition:none}.dnb-table tr.sticky.show-shadow th:before{opacity:1}.dnb-table__container{--border:0.0625rem solid var(--color-black-8);background-color:#fff;background-color:var(--color-white);position:relative}.dnb-table__container:after{border:var(--border);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.dnb-table__container,.dnb-table__container:after{border-radius:.5rem}.dnb-table__container,.dnb-table__container__body,.dnb-table__container__foot,.dnb-table__container__head{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.dnb-table__container__body .dnb-table:not([class*=space__bottom]){margin-bottom:0}.dnb-table__container__head{padding:2rem 1rem 0}.dnb-spacing .dnb-table__container__head .dnb-h--large:not([class*=space__top]){margin:0}.dnb-table__container__foot{padding:.5rem 1rem 2rem}.dnb-table{border-collapse:collapse;border-spacing:0;display:table;margin-bottom:1rem;margin-bottom:var(--spacing-small);margin-top:0;overflow:auto;table-layout:auto;width:100%}.dnb-table--fixed{table-layout:fixed;width:auto}.dnb-table--no-wrap{white-space:nowrap}.dnb-table,.dnb-table--left{text-align:left}.dnb-table--right{text-align:right}.dnb-table--center{text-align:center}.dnb-table>caption{caption-side:bottom;margin-top:.5rem;margin-top:var(--spacing-x-small)}.dnb-table--small,.dnb-table--small>tbody>tr>td,.dnb-table--small>thead>tr>th,.dnb-table--small>tr>td,.dnb-table--small>tr>th,.dnb-table>caption,.dnb-table>tbody>tr.dnb-table--small>td,.dnb-table>tbody>tr>td.dnb-table--small,.dnb-table>thead>tr.dnb-table--small>th,.dnb-table>thead>tr>th.dnb-table--small,.dnb-table>tr.dnb-table--small>td,.dnb-table>tr.dnb-table--small>th,.dnb-table>tr>td.dnb-table--small,.dnb-table>tr>th.dnb-table--small,.dnb-table__td.dnb-table--small,.dnb-table__th.dnb-table--small{font-size:1rem;font-size:var(--font-size-small)}.dnb-table--x-small,.dnb-table--x-small>tbody>tr>td,.dnb-table--x-small>thead>tr>th,.dnb-table--x-small>tr>td,.dnb-table--x-small>tr>th,.dnb-table>tbody>tr.dnb-table--x-small>td,.dnb-table>tbody>tr>td.dnb-table--x-small,.dnb-table>thead>tr.dnb-table--x-small>th,.dnb-table>thead>tr>th.dnb-table--x-small,.dnb-table>tr.dnb-table--x-small>td,.dnb-table>tr.dnb-table--x-small>th,.dnb-table>tr>td.dnb-table--x-small,.dnb-table>tr>th.dnb-table--x-small,.dnb-table__td.dnb-table--x-small,.dnb-table__th.dnb-table--x-small{font-size:.875rem;font-size:var(--font-size-x-small)}.dnb-table.dnb-skeleton>*{-webkit-text-fill-color:#ebebeb;-webkit-text-fill-color:var(--skeleton-color)}.dnb-table .dnb-table__th.dnb-table--sortable,.dnb-table>thead>tr>th.dnb-table--sortable{color:#14555a;color:var(--color-emerald-green)}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-shadow:none;box-shadow:none;color:inherit;font-size:inherit;font-weight:500;font-weight:var(--font-weight-medium);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;padding:0 .5rem 0 0;position:relative;text-align:inherit;z-index:1}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button>.dnb-icon,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button>.dnb-icon{opacity:0;-webkit-transition:opacity .2s ease-out,-webkit-transform .5s ease-out;transition:opacity .2s ease-out,-webkit-transform .5s ease-out;transition:opacity .2s ease-out,transform .5s ease-out;transition:opacity .2s ease-out,transform .5s ease-out,-webkit-transform .5s ease-out}[data-visual-test-wrapper] .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button>.dnb-icon,[data-visual-test-wrapper] .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button>.dnb-icon{-webkit-transition:none;transition:none}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__text,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__text{font-size:inherit;margin:0}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__text:after,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__text:after{right:1rem}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__icon,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__icon{-ms-flex-item-align:end;align-self:flex-end;margin-bottom:.25rem;margin-top:auto}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:not(:focus) .dnb-button__text:after,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:not(:focus) .dnb-button__text:after{color:#14555a;color:var(--color-emerald-green);opacity:1}html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover[disabled],html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:not([disabled]),html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:not([disabled]){color:#007272;color:var(--color-sea-green)}html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:not([disabled]):not(:focus) .dnb-icon,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:not([disabled]):not(:focus) .dnb-icon{opacity:1}html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:not([disabled]) .dnb-button__text:after,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:not([disabled]) .dnb-button__text:after{opacity:0}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus[disabled],.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus[disabled],html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus[disabled],html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus[disabled]{cursor:not-allowed}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]):before,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]):before{bottom:-.5rem;content:"";left:-1rem;position:absolute;right:.5rem;right:-.5rem;top:-.5rem}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]) .dnb-icon,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]) .dnb-icon,html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]) .dnb-icon,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]) .dnb-icon{opacity:1}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active[disabled],.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active[disabled],html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active[disabled],html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active[disabled]{cursor:not-allowed}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]),.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]){color:#14555a;color:var(--color-emerald-green)}html[data-whatinput=mouse] .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=mouse] .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=mouse] html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=mouse] html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before{--border-color:var(--color-emerald-green);border-color:transparent;-webkit-box-shadow:0 0 0 .125rem var(--border-color);box-shadow:0 0 0 .125rem var(--border-color)}@media screen and (-ms-high-contrast:none){html[data-whatinput=mouse] .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=mouse] .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=mouse] html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=mouse] html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before{-webkit-box-shadow:0 0 0 .125rem #14555a;box-shadow:0 0 0 .125rem #14555a;-webkit-box-shadow:0 0 0 .125rem var(--color-emerald-green);box-shadow:0 0 0 .125rem var(--color-emerald-green)}}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before{border-radius:inherit;bottom:0;height:inherit;left:-.5rem;outline:none;top:0;z-index:1}html[data-whatinput=touch] .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=touch] .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=touch] html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=touch] html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before{--border-color:var(--color-emerald-green);border-color:transparent;-webkit-box-shadow:0 0 0 .125rem var(--border-color);box-shadow:0 0 0 .125rem var(--border-color)}@media screen and (-ms-high-contrast:none){html[data-whatinput=touch] .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=touch] .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=touch] html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=touch] html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before{-webkit-box-shadow:0 0 0 .125rem #14555a;box-shadow:0 0 0 .125rem #14555a;-webkit-box-shadow:0 0 0 .125rem var(--color-emerald-green);box-shadow:0 0 0 .125rem var(--color-emerald-green)}}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before{bottom:-.5rem;content:"";left:-1rem;position:absolute;right:.5rem;right:-.5rem;top:-.5rem}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:focus:not(:active) .dnb-button__text:after,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:focus:not(:active) .dnb-button__text:after{visibility:hidden}.dnb-table .dnb-table__th.dnb-table--sortable[align=right],.dnb-table>thead>tr>th.dnb-table--sortable[align=right]{padding-right:.5rem}.dnb-table .dnb-table__th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button,.dnb-table>thead>tr>th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.dnb-table .dnb-table__th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button--tertiary.dnb-button--icon-position-right,.dnb-table>thead>tr>th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button--tertiary.dnb-button--icon-position-right{padding-right:.5rem}.dnb-table .dnb-table__th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button--tertiary.dnb-button--icon-position-right .dnb-button__text,.dnb-table>thead>tr>th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button--tertiary.dnb-button--icon-position-right .dnb-button__text{padding-right:0}.dnb-table .dnb-table__th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button--tertiary.dnb-button--icon-position-right .dnb-button__text:after,.dnb-table>thead>tr>th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button--tertiary.dnb-button--icon-position-right .dnb-button__text:after{right:0}.dnb-table .dnb-table__th.dnb-table--active .dnb-table__sort-button.dnb-button:not(:hover) .dnb-button__text:after,.dnb-table>thead>tr>th.dnb-table--active .dnb-table__sort-button.dnb-button:not(:hover) .dnb-button__text:after{opacity:0}.dnb-table .dnb-table__th.dnb-table--active .dnb-table__sort-button.dnb-button .dnb-icon,.dnb-table>thead>tr>th.dnb-table--active .dnb-table__sort-button.dnb-button .dnb-icon{opacity:1}html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--active .dnb-table__sort-button.dnb-button:hover[disabled],html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--active .dnb-table__sort-button.dnb-button:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:not([disabled]) .dnb-button__text:after,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:not([disabled]) .dnb-button__text:after{color:#007272;color:var(--color-sea-green);opacity:1}.dnb-table .dnb-table__th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus:not(:active) .dnb-button__text:after,.dnb-table>thead>tr>th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus:not(:active) .dnb-button__text:after{visibility:visible}html[data-whatinput=keyboard] .dnb-table .dnb-table__th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus .dnb-button__text:after,html[data-whatinput=keyboard]
|
|
1
|
+
.dnb-table{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-size:1rem;font-size:var(--font-size-small);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;padding:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-table *,.dnb-table :after,.dnb-table :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-table :after,.dnb-table :before{text-decoration:inherit;vertical-align:inherit}.dnb-table__th__horizontal{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex}.dnb-table{--border:0.0625rem solid var(--color-black-8);--outline:0.0625rem solid var(--color-black-8)}.dnb-table--border tbody .dnb-table__td{z-index:2}.dnb-table--border tbody .dnb-table__td:after{border:var(--border);border-bottom:none;border-right:none;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}.dnb-table--border tbody .dnb-table__td:first-of-type:after{border-left:none}.dnb-table:not(.dnb-table--outline) tbody .dnb-table__tr:last-of-type .dnb-table__td:after{border-bottom:var(--border)}.dnb-table--outline thead .dnb-table__th{z-index:2}.dnb-table--outline thead .dnb-table__th:after{border-top:var(--outline);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}.dnb-table--outline thead .dnb-table__th:first-of-type:after{border-left:var(--outline)}.dnb-table--outline thead .dnb-table__th:last-of-type:after{border-right:var(--outline)}.dnb-table--outline tbody .dnb-table__td{z-index:2}.dnb-table--outline tbody .dnb-table__td:first-of-type:after,.dnb-table--outline tbody .dnb-table__td:last-of-type:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}.dnb-table--outline tbody .dnb-table__td:first-of-type:after{border-left:var(--outline)}.dnb-table--outline tbody .dnb-table__td:last-of-type:after{border-right:var(--outline)}.dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__td{z-index:2}.dnb-table--outline tbody .dnb-table__tr:last-of-type .dnb-table__td:after{border-bottom:var(--outline);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}.dnb-table--outline thead .dnb-table__th:first-of-type,.dnb-table--outline thead .dnb-table__th:first-of-type:after{border-radius:.5rem 0 0 0}.dnb-table--outline thead .dnb-table__th:last-of-type,.dnb-table--outline thead .dnb-table__th:last-of-type:after{border-radius:0 .5rem 0 0}.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{border-radius:0 0 0 .5rem}.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{border-radius:0 0 .5rem 0}.dnb-table__td--no-spacing,.dnb-table td.dnb-table__td--no-spacing{padding:0}.dnb-table__td--spacing-horizontal,.dnb-table td.dnb-table__td--spacing-horizontal{padding-bottom:0;padding-top:0}.dnb-table .dnb-table__tr,.dnb-table .dnb-table__tr--even,.dnb-table>tbody>tr{background-color:#f8f8f8;background-color:var(--color-black-3)}.dnb-table .dnb-table__tr--odd,.dnb-table .dnb-table__tr:not(.dnb-table__tr--even):nth-of-type(2n),.dnb-table>tbody>tr:not(.dnb-table__tr--even):nth-of-type(2n){background-color:#fff;background-color:var(--color-white)}.dnb-table--outline thead .dnb-table__tr:first-of-type{-webkit-clip-path:inset(0 round .5rem .5rem 0 0);clip-path:inset(0 round .5rem .5rem 0 0)}.dnb-table--outline tbody .dnb-table__tr:last-of-type{-webkit-clip-path:inset(0 round 0 0 .5rem .5rem);clip-path:inset(0 round 0 0 .5rem .5rem)}.dnb-table>tbody>tr>td,.dnb-table>thead>tr>th,.dnb-table>tr>td,.dnb-table>tr>th,.dnb-table__td,.dnb-table__th{border-spacing:0;position:relative;word-break:keep-all}.dnb-table__sticky-helper>td{display:block;height:0;overflow:hidden;padding:0!important}.dnb-table tr.sticky th{position:sticky;top:0;top:var(--table-top,0);z-index:2}.dnb-table tr.sticky th:before{bottom:0;-webkit-box-shadow:0 -2px 12px 8px rgba(51,51,51,.08);box-shadow:0 -2px 12px 8px rgba(51,51,51,.08);-webkit-box-shadow:var(--shadow-default-x) -2px 12px 8px var(--shadow-default-color);box-shadow:var(--shadow-default-x) -2px 12px 8px var(--shadow-default-color);-webkit-clip-path:inset(6px 0 -48px 0);clip-path:inset(6px 0 -48px 0);content:"";height:6px;left:0;opacity:0;position:absolute;right:0;-webkit-transition:opacity .3s ease-out;transition:opacity .3s ease-out}[data-visual-test-wrapper] .dnb-table tr.sticky th:before{-webkit-transition:none;transition:none}.dnb-table tr.sticky.show-shadow th:before{opacity:1}.dnb-table__container{--border:0.0625rem solid var(--color-black-8);background-color:#fff;background-color:var(--color-white);position:relative}.dnb-table__container:after{border:var(--border);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1}.dnb-table__container,.dnb-table__container:after{border-radius:.5rem}.dnb-table__container,.dnb-table__container__body,.dnb-table__container__foot,.dnb-table__container__head{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.dnb-table__container__body .dnb-table:not([class*=space__bottom]){margin-bottom:0}.dnb-table__container__head{padding:2rem 1rem 0}.dnb-spacing .dnb-table__container__head .dnb-h--large:not([class*=space__top]){margin:0}.dnb-table__container__foot{padding:.5rem 1rem 2rem}.dnb-table{border-collapse:collapse;border-spacing:0;display:table;margin-bottom:.5rem;margin-top:0;overflow:auto;table-layout:auto;width:100%}.dnb-table--fixed{table-layout:fixed;width:auto}.dnb-table--no-wrap{white-space:nowrap}.dnb-table,.dnb-table--left{text-align:left}.dnb-table--right{text-align:right}.dnb-table--center{text-align:center}.dnb-table>caption{caption-side:bottom;font-size:1.125rem;font-size:var(--font-size-basis);margin-top:.5rem}.dnb-table--small,.dnb-table--small>tbody>tr>td,.dnb-table--small>thead>tr>th,.dnb-table--small>tr>td,.dnb-table--small>tr>th,.dnb-table>tbody>tr.dnb-table--small>td,.dnb-table>tbody>tr>td.dnb-table--small,.dnb-table>thead>tr.dnb-table--small>th,.dnb-table>thead>tr>th.dnb-table--small,.dnb-table>tr.dnb-table--small>td,.dnb-table>tr.dnb-table--small>th,.dnb-table>tr>td.dnb-table--small,.dnb-table>tr>th.dnb-table--small,.dnb-table__td.dnb-table--small,.dnb-table__th.dnb-table--small{font-size:1rem;font-size:var(--font-size-small)}.dnb-table--x-small,.dnb-table--x-small>tbody>tr>td,.dnb-table--x-small>thead>tr>th,.dnb-table--x-small>tr>td,.dnb-table--x-small>tr>th,.dnb-table>tbody>tr.dnb-table--x-small>td,.dnb-table>tbody>tr>td.dnb-table--x-small,.dnb-table>thead>tr.dnb-table--x-small>th,.dnb-table>thead>tr>th.dnb-table--x-small,.dnb-table>tr.dnb-table--x-small>td,.dnb-table>tr.dnb-table--x-small>th,.dnb-table>tr>td.dnb-table--x-small,.dnb-table>tr>th.dnb-table--x-small,.dnb-table__td.dnb-table--x-small,.dnb-table__th.dnb-table--x-small{font-size:.875rem;font-size:var(--font-size-x-small)}.dnb-table.dnb-skeleton>*{-webkit-text-fill-color:#ebebeb;-webkit-text-fill-color:var(--skeleton-color)}.dnb-table .dnb-table__th.dnb-table--sortable,.dnb-table>thead>tr>th.dnb-table--sortable{color:#007272;color:var(--color-sea-green)}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-webkit-box-shadow:none;box-shadow:none;color:inherit;font-size:inherit;font-weight:500;font-weight:var(--font-weight-medium);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;padding:0 .5rem 0 0;position:relative;text-align:inherit;z-index:1}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button>.dnb-icon,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button>.dnb-icon{opacity:0;-webkit-transition:opacity .2s ease-out,-webkit-transform .5s ease-out;transition:opacity .2s ease-out,-webkit-transform .5s ease-out;transition:opacity .2s ease-out,transform .5s ease-out;transition:opacity .2s ease-out,transform .5s ease-out,-webkit-transform .5s ease-out}[data-visual-test-wrapper] .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button>.dnb-icon,[data-visual-test-wrapper] .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button>.dnb-icon{-webkit-transition:none;transition:none}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__text,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__text{font-size:inherit;margin:0}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__text:after,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__text:after{right:1rem}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__icon,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__icon{-ms-flex-item-align:end;align-self:flex-end;margin-bottom:.25rem;margin-top:auto}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:not(:focus) .dnb-button__text:after,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:not(:focus) .dnb-button__text:after{color:#007272;color:var(--color-sea-green);opacity:1}html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover[disabled],html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:not([disabled]),html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:not([disabled]){color:#007272;color:var(--color-sea-green)}html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:not([disabled]):not(:focus) .dnb-icon,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:not([disabled]):not(:focus) .dnb-icon{opacity:1}html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:not([disabled]) .dnb-button__text:after,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:not([disabled]) .dnb-button__text:after{opacity:0}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus[disabled],.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus[disabled],html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus[disabled],html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus[disabled]{cursor:not-allowed}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]):before,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]):before{bottom:-.5rem;content:"";left:-1rem;position:absolute;right:.5rem;right:-.5rem;top:-.5rem}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]) .dnb-icon,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]) .dnb-icon,html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]) .dnb-icon,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:focus:not([disabled]) .dnb-icon{opacity:1}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active[disabled],.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active[disabled],html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active[disabled],html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active[disabled]{cursor:not-allowed}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]),.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]){color:#007272;color:var(--color-sea-green)}html[data-whatinput=mouse] .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=mouse] .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=mouse] html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=mouse] html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before{--border-color:var(--color-emerald-green);border-color:transparent;-webkit-box-shadow:0 0 0 .125rem var(--border-color);box-shadow:0 0 0 .125rem var(--border-color)}@media screen and (-ms-high-contrast:none){html[data-whatinput=mouse] .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=mouse] .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=mouse] html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=mouse] html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before{-webkit-box-shadow:0 0 0 .125rem #14555a;box-shadow:0 0 0 .125rem #14555a;-webkit-box-shadow:0 0 0 .125rem var(--color-emerald-green);box-shadow:0 0 0 .125rem var(--color-emerald-green)}}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before{border-radius:inherit;bottom:0;height:inherit;left:-.5rem;outline:none;top:0;z-index:1}html[data-whatinput=touch] .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=touch] .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=touch] html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=touch] html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before{--border-color:var(--color-emerald-green);border-color:transparent;-webkit-box-shadow:0 0 0 .125rem var(--border-color);box-shadow:0 0 0 .125rem var(--border-color)}@media screen and (-ms-high-contrast:none){html[data-whatinput=touch] .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=touch] .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=touch] html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html[data-whatinput=touch] html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before{-webkit-box-shadow:0 0 0 .125rem #14555a;box-shadow:0 0 0 .125rem #14555a;-webkit-box-shadow:0 0 0 .125rem var(--color-emerald-green);box-shadow:0 0 0 .125rem var(--color-emerald-green)}}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:active:not([disabled]):before{bottom:-.5rem;content:"";left:-1rem;position:absolute;right:.5rem;right:-.5rem;top:-.5rem}.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:focus:not(:active) .dnb-button__text:after,.dnb-table>thead>tr>th.dnb-table--sortable .dnb-table__sort-button.dnb-button:hover:focus:not(:active) .dnb-button__text:after{visibility:hidden}.dnb-table .dnb-table__th.dnb-table--sortable[align=right],.dnb-table>thead>tr>th.dnb-table--sortable[align=right]{padding-right:.5rem}.dnb-table .dnb-table__th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button,.dnb-table>thead>tr>th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.dnb-table .dnb-table__th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button--tertiary.dnb-button--icon-position-right,.dnb-table>thead>tr>th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button--tertiary.dnb-button--icon-position-right{padding-right:.5rem}.dnb-table .dnb-table__th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button--tertiary.dnb-button--icon-position-right .dnb-button__text,.dnb-table>thead>tr>th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button--tertiary.dnb-button--icon-position-right .dnb-button__text{padding-right:0}.dnb-table .dnb-table__th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button--tertiary.dnb-button--icon-position-right .dnb-button__text:after,.dnb-table>thead>tr>th.dnb-table--sortable[align=right] .dnb-table__sort-button.dnb-button--tertiary.dnb-button--icon-position-right .dnb-button__text:after{right:0}.dnb-table .dnb-table__th.dnb-table--active .dnb-table__sort-button.dnb-button:not(:hover) .dnb-button__text:after,.dnb-table>thead>tr>th.dnb-table--active .dnb-table__sort-button.dnb-button:not(:hover) .dnb-button__text:after{opacity:0}.dnb-table .dnb-table__th.dnb-table--active .dnb-table__sort-button.dnb-button .dnb-icon,.dnb-table>thead>tr>th.dnb-table--active .dnb-table__sort-button.dnb-button .dnb-icon{opacity:1}html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--active .dnb-table__sort-button.dnb-button:hover[disabled],html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--active .dnb-table__sort-button.dnb-button:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-table .dnb-table__th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:not([disabled]) .dnb-button__text:after,html:not([data-whatintent=touch]) .dnb-table>thead>tr>th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:not([disabled]) .dnb-button__text:after{color:#007272;color:var(--color-sea-green);opacity:1}.dnb-table .dnb-table__th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus:not(:active) .dnb-button__text:after,.dnb-table>thead>tr>th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus:not(:active) .dnb-button__text:after{visibility:visible}html[data-whatinput=keyboard] .dnb-table .dnb-table__th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus .dnb-button__text:after,html[data-whatinput=keyboard]
|
|
2
2
|
.dnb-table>thead>tr>th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus .dnb-button__text:after{visibility:hidden}.dnb-table .dnb-table__th.dnb-table--reversed .dnb-table__sort-button.dnb-button .dnb-icon,.dnb-table>thead>tr>th.dnb-table--reversed .dnb-table__sort-button.dnb-button .dnb-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.dnb-table .dnb-table__th .dnb-table__help-button,.dnb-table>thead>tr>th .dnb-table__help-button{margin-left:.5rem}.dnb-spacing .dnb-table dl,.dnb-spacing .dnb-table ol,.dnb-spacing .dnb-table p,.dnb-spacing .dnb-table pre,.dnb-spacing .dnb-table ul{margin-bottom:0;margin-top:0}
|
|
@@ -10,10 +10,70 @@
|
|
|
10
10
|
/*
|
|
11
11
|
* Utilities
|
|
12
12
|
*/
|
|
13
|
-
.dnb-table
|
|
14
|
-
.dnb-table
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
.dnb-table > tr > th,
|
|
14
|
+
.dnb-table > thead > tr > th, .dnb-table__th {
|
|
15
|
+
padding: 2rem 1rem 1rem;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
font-weight: var(--font-weight-medium);
|
|
18
|
+
color: currentColor;
|
|
19
|
+
color: var(--theme-color-black-80, currentColor);
|
|
20
|
+
font-size: 1.125rem;
|
|
21
|
+
font-size: var(--font-size-basis);
|
|
22
|
+
line-height: 1.5rem;
|
|
23
|
+
line-height: var(--line-height-basis);
|
|
24
|
+
vertical-align: bottom;
|
|
25
|
+
background-color: #fff;
|
|
26
|
+
background-color: var(--color-white); }
|
|
27
|
+
|
|
28
|
+
.dnb-table > tr > td,
|
|
29
|
+
.dnb-table > tbody > tr > td, .dnb-table__td,
|
|
30
|
+
.dnb-table > tr > th[scope='row'] {
|
|
31
|
+
padding: 1rem;
|
|
32
|
+
color: currentColor;
|
|
33
|
+
color: var(--theme-color-black-80, currentColor);
|
|
34
|
+
font-size: 1.125rem;
|
|
35
|
+
font-size: var(--font-size-basis);
|
|
36
|
+
line-height: 1.5rem;
|
|
37
|
+
line-height: var(--line-height-basis);
|
|
38
|
+
vertical-align: baseline; }
|
|
39
|
+
|
|
40
|
+
.dnb-table__size--medium .dnb-table__th {
|
|
41
|
+
padding: 1.375rem 1rem 0.875rem;
|
|
42
|
+
font-size: 1rem;
|
|
43
|
+
font-size: var(--font-size-small);
|
|
44
|
+
line-height: 1.25rem;
|
|
45
|
+
line-height: var(--line-height-small); }
|
|
46
|
+
|
|
47
|
+
.dnb-table__size--small .dnb-table__th {
|
|
48
|
+
padding: 1.25rem 1rem 0.5rem;
|
|
49
|
+
font-size: 1rem;
|
|
50
|
+
font-size: var(--font-size-small);
|
|
51
|
+
line-height: 1.25rem;
|
|
52
|
+
line-height: var(--line-height-small); }
|
|
53
|
+
|
|
54
|
+
.dnb-table__size--medium .dnb-table__td {
|
|
55
|
+
padding: 0.875rem 1rem; }
|
|
56
|
+
.dnb-table__size--medium .dnb-table__td,
|
|
57
|
+
.dnb-table__size--medium .dnb-table__td .dnb-p {
|
|
58
|
+
font-size: 1rem;
|
|
59
|
+
font-size: var(--font-size-small);
|
|
60
|
+
line-height: 1.25rem;
|
|
61
|
+
line-height: var(--line-height-small); }
|
|
62
|
+
|
|
63
|
+
.dnb-table__size--small .dnb-table__td {
|
|
64
|
+
padding: 0.625rem 1rem; }
|
|
65
|
+
.dnb-table__size--small .dnb-table__td,
|
|
66
|
+
.dnb-table__size--small .dnb-table__td .dnb-p {
|
|
67
|
+
font-size: 1rem;
|
|
68
|
+
font-size: var(--font-size-small);
|
|
69
|
+
line-height: 1.25rem;
|
|
70
|
+
line-height: var(--line-height-small); }
|
|
71
|
+
|
|
72
|
+
.dnb-table:not(.dnb-table--border):not(.dnb-table--outline) > tbody
|
|
73
|
+
> tr:last-of-type
|
|
74
|
+
> td::after,
|
|
75
|
+
.dnb-table:not(.dnb-table--border):not(.dnb-table--outline) > tbody
|
|
76
|
+
> .dnb-table__tr:last-of-type > .dnb-table__td::after {
|
|
17
77
|
content: '';
|
|
18
78
|
position: absolute;
|
|
19
79
|
left: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.dnb-table:
|
|
1
|
+
.dnb-table>thead>tr>th,.dnb-table>tr>th,.dnb-table__th{background-color:#fff;background-color:var(--color-white);font-weight:500;font-weight:var(--font-weight-medium);padding:2rem 1rem 1rem;vertical-align:bottom}.dnb-table>tbody>tr>td,.dnb-table>thead>tr>th,.dnb-table>tr>td,.dnb-table>tr>th,.dnb-table>tr>th[scope=row],.dnb-table__td,.dnb-table__th{color:currentColor;color:var(--theme-color-black-80,currentColor);font-size:1.125rem;font-size:var(--font-size-basis);line-height:1.5rem;line-height:var(--line-height-basis)}.dnb-table>tbody>tr>td,.dnb-table>tr>td,.dnb-table>tr>th[scope=row],.dnb-table__td{padding:1rem;vertical-align:baseline}.dnb-table__size--medium .dnb-table__th{padding:1.375rem 1rem .875rem}.dnb-table__size--medium .dnb-table__th,.dnb-table__size--small .dnb-table__th{font-size:1rem;font-size:var(--font-size-small);line-height:1.25rem;line-height:var(--line-height-small)}.dnb-table__size--small .dnb-table__th{padding:1.25rem 1rem .5rem}.dnb-table__size--medium .dnb-table__td{padding:.875rem 1rem}.dnb-table__size--medium .dnb-table__td,.dnb-table__size--medium .dnb-table__td .dnb-p{font-size:1rem;font-size:var(--font-size-small);line-height:1.25rem;line-height:var(--line-height-small)}.dnb-table__size--small .dnb-table__td{padding:.625rem 1rem}.dnb-table__size--small .dnb-table__td,.dnb-table__size--small .dnb-table__td .dnb-p{font-size:1rem;font-size:var(--font-size-small);line-height:1.25rem;line-height:var(--line-height-small)}.dnb-table:not(.dnb-table--border):not(.dnb-table--outline)>tbody>.dnb-table__tr:last-of-type>.dnb-table__td:after,.dnb-table:not(.dnb-table--border):not(.dnb-table--outline)>tbody>tr:last-of-type>td:after{background-color:#ebebeb;background-color:var(--color-black-8);bottom:-.0625rem;content:"";height:.0625rem;left:0;position:absolute;right:0}
|
|
@@ -6,11 +6,97 @@
|
|
|
6
6
|
@import '../../../../style/themes/imports.scss';
|
|
7
7
|
|
|
8
8
|
.dnb-table {
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
// head
|
|
10
|
+
& > tr > th,
|
|
11
|
+
& > thead > tr > th,
|
|
12
|
+
&__th {
|
|
13
|
+
// spacing
|
|
14
|
+
padding: 2rem 1rem 1rem;
|
|
15
|
+
|
|
16
|
+
// typography
|
|
17
|
+
font-weight: var(--font-weight-medium);
|
|
18
|
+
color: var(--theme-color-black-80, currentColor);
|
|
19
|
+
font-size: var(--font-size-basis);
|
|
20
|
+
line-height: var(--line-height-basis);
|
|
21
|
+
vertical-align: bottom;
|
|
22
|
+
|
|
23
|
+
background-color: var(--color-white);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// body data
|
|
27
|
+
& > tr > td,
|
|
28
|
+
& > tbody > tr > td,
|
|
29
|
+
&__td,
|
|
30
|
+
& > tr > th[scope='row'] {
|
|
31
|
+
// spacing
|
|
32
|
+
padding: 1rem;
|
|
33
|
+
|
|
34
|
+
// typography
|
|
35
|
+
color: var(--theme-color-black-80, currentColor);
|
|
36
|
+
font-size: var(--font-size-basis);
|
|
37
|
+
line-height: var(--line-height-basis);
|
|
38
|
+
vertical-align: baseline;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__th {
|
|
42
|
+
.dnb-table__size--medium & {
|
|
43
|
+
// spacing
|
|
44
|
+
padding: 1.375rem 1rem 0.875rem;
|
|
45
|
+
|
|
46
|
+
// typography
|
|
47
|
+
font-size: var(--font-size-small);
|
|
48
|
+
line-height: var(--line-height-small);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dnb-table__size--small & {
|
|
52
|
+
// spacing
|
|
53
|
+
padding: 1.25rem 1rem 0.5rem;
|
|
54
|
+
|
|
55
|
+
// typography
|
|
56
|
+
font-size: var(--font-size-small);
|
|
57
|
+
line-height: var(--line-height-small);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__td {
|
|
62
|
+
.dnb-table__size--medium & {
|
|
63
|
+
// spacing
|
|
64
|
+
padding: 0.875rem 1rem;
|
|
65
|
+
|
|
66
|
+
// typography
|
|
67
|
+
&,
|
|
68
|
+
.dnb-p {
|
|
69
|
+
font-size: var(--font-size-small);
|
|
70
|
+
line-height: var(--line-height-small);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.dnb-table__size--small & {
|
|
75
|
+
// spacing
|
|
76
|
+
padding: 0.625rem 1rem;
|
|
77
|
+
|
|
78
|
+
// typography
|
|
79
|
+
&,
|
|
80
|
+
.dnb-p {
|
|
81
|
+
font-size: var(--font-size-small);
|
|
82
|
+
line-height: var(--line-height-small);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// NB: In case we still would need a border on the table head row
|
|
88
|
+
// &:not(#{&}--border):not(#{&}--outline) > thead > tr > th::after,
|
|
89
|
+
// &:not(#{&}--border):not(#{&}--outline) > thead > &__tr > &__th::after,
|
|
90
|
+
|
|
91
|
+
// border
|
|
92
|
+
&:not(#{&}--border):not(#{&}--outline)
|
|
93
|
+
> tbody
|
|
94
|
+
> tr:last-of-type
|
|
95
|
+
> td::after,
|
|
96
|
+
&:not(#{&}--border):not(#{&}--outline)
|
|
97
|
+
> tbody
|
|
98
|
+
> &__tr:last-of-type
|
|
99
|
+
> &__td::after {
|
|
14
100
|
content: '';
|
|
15
101
|
position: absolute;
|
|
16
102
|
left: 0;
|
package/cjs/elements/index.d.ts
CHANGED
|
@@ -22,5 +22,9 @@ import Ol from "./Ol";
|
|
|
22
22
|
import P from "./P";
|
|
23
23
|
import Paragraph from "./Paragraph";
|
|
24
24
|
import Span from "./Span";
|
|
25
|
+
import Table from "./Table";
|
|
26
|
+
import Td from "./Td";
|
|
27
|
+
import Th from "./Th";
|
|
28
|
+
import Tr from "./Tr";
|
|
25
29
|
import Ul from "./Ul";
|
|
26
|
-
export { Anchor, Blockquote, Code, Dd, Div, Dl, Dt, H, H1, H2, H3, H4, H5, H6, Hr, Img, Ingress, Lead, Li, Link, Ol, P, Paragraph, Span, Ul };
|
|
30
|
+
export { Anchor, Blockquote, Code, Dd, Div, Dl, Dt, H, H1, H2, H3, H4, H5, H6, Hr, Img, Ingress, Lead, Li, Link, Ol, P, Paragraph, Span, Table, Td, Th, Tr, Ul };
|