@dnb/eufemia 10.0.0-beta.4 → 10.0.0-beta.6
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 +36 -0
- package/cjs/components/accordion/Accordion.d.ts +1 -1
- package/cjs/components/accordion/AccordionHeader.d.ts +1 -1
- package/cjs/components/autocomplete/Autocomplete.d.ts +9 -3
- package/cjs/components/button/Button.d.ts +1 -1
- package/cjs/components/button/style/dnb-button--tertiary.css +0 -10
- package/cjs/components/button/style/dnb-button--tertiary.min.css +1 -1
- package/cjs/components/button/style/dnb-button--tertiary.scss +1 -14
- package/cjs/components/button/style/themes/dnb-button-theme-eiendom.css +4 -10
- package/cjs/components/button/style/themes/dnb-button-theme-eiendom.min.css +1 -1
- package/cjs/components/button/style/themes/dnb-button-theme-sbanken.css +128 -298
- package/cjs/components/button/style/themes/dnb-button-theme-sbanken.min.css +1 -1
- package/cjs/components/button/style/themes/dnb-button-theme-sbanken.scss +187 -33
- package/cjs/components/button/style/themes/dnb-button-theme-ui.css +4 -10
- package/cjs/components/button/style/themes/dnb-button-theme-ui.min.css +1 -1
- package/cjs/components/button/style/themes/dnb-button-theme-ui.scss +5 -0
- package/cjs/components/date-picker/DatePickerAddon.js +1 -2
- package/cjs/components/date-picker/style/dnb-date-picker.css +5 -1
- package/cjs/components/date-picker/style/dnb-date-picker.min.css +1 -1
- package/cjs/components/date-picker/style/dnb-date-picker.scss +5 -1
- package/cjs/components/dialog/parts/DialogAction.d.ts +2 -2
- package/cjs/components/dialog/parts/DialogHeader.d.ts +2 -1
- package/cjs/components/dropdown/Dropdown.d.ts +6 -2
- package/cjs/components/help-button/HelpButton.d.ts +1 -1
- package/cjs/components/input/Input.d.ts +1 -1
- package/cjs/components/input-masked/InputMasked.d.ts +1 -1
- package/cjs/components/modal/ModalContent.d.ts +1 -0
- package/cjs/components/modal/ModalContent.js +10 -2
- package/cjs/components/modal/parts/CloseButton.d.ts +1 -1
- package/cjs/components/modal/types.d.ts +3 -3
- package/cjs/components/number-format/NumberUtils.js +1 -1
- package/cjs/components/pagination/Pagination.d.ts +33 -33
- package/cjs/components/tooltip/TooltipPortal.js +20 -6
- package/cjs/elements/div/Div.d.ts +2 -0
- package/cjs/extensions/payment-card/utils/cardProducts.js +5 -5
- package/cjs/fragments/drawer-list/DrawerList.js +5 -1
- package/cjs/shared/Eufemia.js +1 -1
- package/cjs/shared/Theme.d.ts +9 -1
- package/cjs/shared/Theme.js +55 -29
- package/cjs/style/dnb-ui-components.css +5 -1
- package/cjs/style/dnb-ui-components.min.css +1 -1
- package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +13 -21
- package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
- package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.css +1 -1
- package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
- package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +133 -299
- package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
- package/cjs/style/themes/theme-sbanken/theme-mapping.scss +1 -1
- package/cjs/style/themes/theme-ui/ui-theme-components.css +9 -11
- package/cjs/style/themes/theme-ui/ui-theme-components.min.css +1 -1
- package/components/accordion/Accordion.d.ts +1 -1
- package/components/accordion/AccordionHeader.d.ts +1 -1
- package/components/autocomplete/Autocomplete.d.ts +9 -3
- package/components/button/Button.d.ts +1 -1
- package/components/button/style/dnb-button--tertiary.css +0 -10
- package/components/button/style/dnb-button--tertiary.min.css +1 -1
- package/components/button/style/dnb-button--tertiary.scss +1 -14
- package/components/button/style/themes/dnb-button-theme-eiendom.css +4 -10
- package/components/button/style/themes/dnb-button-theme-eiendom.min.css +1 -1
- package/components/button/style/themes/dnb-button-theme-sbanken.css +128 -298
- package/components/button/style/themes/dnb-button-theme-sbanken.min.css +1 -1
- package/components/button/style/themes/dnb-button-theme-sbanken.scss +187 -33
- package/components/button/style/themes/dnb-button-theme-ui.css +4 -10
- package/components/button/style/themes/dnb-button-theme-ui.min.css +1 -1
- package/components/button/style/themes/dnb-button-theme-ui.scss +5 -0
- package/components/date-picker/DatePickerAddon.js +1 -2
- package/components/date-picker/style/dnb-date-picker.css +5 -1
- package/components/date-picker/style/dnb-date-picker.min.css +1 -1
- package/components/date-picker/style/dnb-date-picker.scss +5 -1
- package/components/dialog/parts/DialogAction.d.ts +2 -2
- package/components/dialog/parts/DialogHeader.d.ts +2 -1
- package/components/dropdown/Dropdown.d.ts +6 -2
- package/components/help-button/HelpButton.d.ts +1 -1
- package/components/input/Input.d.ts +1 -1
- package/components/input-masked/InputMasked.d.ts +1 -1
- package/components/modal/ModalContent.d.ts +1 -0
- package/components/modal/ModalContent.js +8 -2
- package/components/modal/parts/CloseButton.d.ts +1 -1
- package/components/modal/types.d.ts +3 -3
- package/components/number-format/NumberUtils.js +2 -2
- package/components/pagination/Pagination.d.ts +33 -33
- package/components/tooltip/TooltipPortal.js +18 -6
- package/elements/div/Div.d.ts +2 -0
- package/es/components/accordion/Accordion.d.ts +1 -1
- package/es/components/accordion/AccordionHeader.d.ts +1 -1
- package/es/components/autocomplete/Autocomplete.d.ts +9 -3
- package/es/components/button/Button.d.ts +1 -1
- package/es/components/button/style/dnb-button--tertiary.css +0 -10
- package/es/components/button/style/dnb-button--tertiary.min.css +1 -1
- package/es/components/button/style/dnb-button--tertiary.scss +1 -14
- package/es/components/button/style/themes/dnb-button-theme-eiendom.css +4 -10
- package/es/components/button/style/themes/dnb-button-theme-eiendom.min.css +1 -1
- package/es/components/button/style/themes/dnb-button-theme-sbanken.css +128 -298
- package/es/components/button/style/themes/dnb-button-theme-sbanken.min.css +1 -1
- package/es/components/button/style/themes/dnb-button-theme-sbanken.scss +187 -33
- package/es/components/button/style/themes/dnb-button-theme-ui.css +4 -10
- package/es/components/button/style/themes/dnb-button-theme-ui.min.css +1 -1
- package/es/components/button/style/themes/dnb-button-theme-ui.scss +5 -0
- package/es/components/date-picker/DatePickerAddon.js +1 -2
- package/es/components/date-picker/style/dnb-date-picker.css +5 -1
- package/es/components/date-picker/style/dnb-date-picker.min.css +1 -1
- package/es/components/date-picker/style/dnb-date-picker.scss +5 -1
- package/es/components/dialog/parts/DialogAction.d.ts +2 -2
- package/es/components/dialog/parts/DialogHeader.d.ts +2 -1
- package/es/components/dropdown/Dropdown.d.ts +6 -2
- package/es/components/help-button/HelpButton.d.ts +1 -1
- package/es/components/input/Input.d.ts +1 -1
- package/es/components/input-masked/InputMasked.d.ts +1 -1
- package/es/components/modal/ModalContent.d.ts +1 -0
- package/es/components/modal/ModalContent.js +8 -2
- package/es/components/modal/parts/CloseButton.d.ts +1 -1
- package/es/components/modal/types.d.ts +3 -3
- package/es/components/number-format/NumberUtils.js +2 -2
- package/es/components/pagination/Pagination.d.ts +33 -33
- package/es/components/tooltip/TooltipPortal.js +17 -5
- package/es/elements/div/Div.d.ts +2 -0
- package/es/extensions/payment-card/utils/cardProducts.js +5 -5
- package/es/fragments/drawer-list/DrawerList.js +4 -1
- package/es/shared/Eufemia.js +1 -1
- package/es/shared/Theme.d.ts +9 -1
- package/es/shared/Theme.js +51 -29
- package/es/style/dnb-ui-components.css +5 -1
- package/es/style/dnb-ui-components.min.css +1 -1
- package/es/style/themes/theme-eiendom/eiendom-theme-components.css +13 -21
- package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
- package/es/style/themes/theme-sbanken/sbanken-theme-basis.css +1 -1
- package/es/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
- package/es/style/themes/theme-sbanken/sbanken-theme-components.css +133 -299
- package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
- package/es/style/themes/theme-sbanken/theme-mapping.scss +1 -1
- package/es/style/themes/theme-ui/ui-theme-components.css +9 -11
- package/es/style/themes/theme-ui/ui-theme-components.min.css +1 -1
- package/esm/dnb-ui-basis.min.mjs +1 -1
- package/esm/dnb-ui-components.min.mjs +1 -1
- package/esm/dnb-ui-elements.min.mjs +1 -1
- package/esm/dnb-ui-extensions.min.mjs +1 -1
- package/esm/dnb-ui-lib.min.mjs +1 -1
- package/extensions/payment-card/utils/cardProducts.js +5 -5
- package/fragments/drawer-list/DrawerList.js +4 -1
- package/package.json +1 -1
- package/shared/Eufemia.js +1 -1
- package/shared/Theme.d.ts +9 -1
- package/shared/Theme.js +51 -29
- package/style/dnb-ui-components.css +5 -1
- package/style/dnb-ui-components.min.css +1 -1
- package/style/themes/theme-eiendom/eiendom-theme-components.css +13 -21
- package/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
- package/style/themes/theme-sbanken/sbanken-theme-basis.css +1 -1
- package/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
- package/style/themes/theme-sbanken/sbanken-theme-components.css +133 -299
- package/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
- package/style/themes/theme-sbanken/theme-mapping.scss +1 -1
- package/style/themes/theme-ui/ui-theme-components.css +9 -11
- package/style/themes/theme-ui/ui-theme-components.min.css +1 -1
- package/umd/dnb-ui-basis.min.js +1 -1
- package/umd/dnb-ui-components.min.js +1 -1
- package/umd/dnb-ui-elements.min.js +1 -1
- package/umd/dnb-ui-extensions.min.js +1 -1
- package/umd/dnb-ui-lib.min.js +1 -1
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import Context from '../../shared/Context';
|
|
9
9
|
import { LOCALE, CURRENCY, CURRENCY_DISPLAY } from '../../shared/defaults';
|
|
10
10
|
import { warn, isTrue, slugify, escapeRegexChars } from '../../shared/component-helper';
|
|
11
|
-
import { getOffsetTop, getOffsetLeft, getSelectedElement, copyToClipboard, IS_MAC, IS_WIN
|
|
11
|
+
import { getOffsetTop, getOffsetLeft, getSelectedElement, copyToClipboard, IS_MAC, IS_WIN } from '../../shared/helpers';
|
|
12
12
|
const NUMBER_CHARS = '\\-0-9,.';
|
|
13
13
|
export const format = function (value) {
|
|
14
14
|
let {
|
|
@@ -685,7 +685,7 @@ export function getFallbackCurrencyDisplay() {
|
|
|
685
685
|
let locale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
686
686
|
let currency_display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
687
687
|
|
|
688
|
-
if (!currency_display &&
|
|
688
|
+
if (!currency_display && (!locale || /(no|nb|nn)$/i.test(locale))) {
|
|
689
689
|
currency_display = 'narrowSymbol';
|
|
690
690
|
}
|
|
691
691
|
|
|
@@ -34,170 +34,170 @@ type PaginationIndicatorElement =
|
|
|
34
34
|
| ((...args: any[]) => any)
|
|
35
35
|
| string;
|
|
36
36
|
type PaginationChildren = React.ReactNode | ((...args: any[]) => any);
|
|
37
|
-
interface PaginationProps
|
|
37
|
+
export interface PaginationProps
|
|
38
38
|
extends React.HTMLProps<HTMLElement>,
|
|
39
39
|
SpacingProps {
|
|
40
40
|
/**
|
|
41
41
|
* The page shown in the very beginning. If `current_page` is set, then it may not make too much sense to set this as well.
|
|
42
42
|
*/
|
|
43
43
|
startup_page?: PaginationStartupPage;
|
|
44
|
+
|
|
44
45
|
/**
|
|
45
46
|
* The page shown at the moment the component renders. Defaults to `1`.
|
|
46
47
|
*/
|
|
47
|
-
|
|
48
48
|
current_page?: PaginationCurrentPage;
|
|
49
|
+
|
|
49
50
|
/**
|
|
50
51
|
* The total pages count. Defaults to `1`.
|
|
51
52
|
*/
|
|
52
|
-
|
|
53
53
|
page_count?: PaginationPageCount;
|
|
54
|
+
|
|
54
55
|
/**
|
|
55
56
|
* Defines how many `infinity` pages should be loaded / shown on the first render. Defaults to `1`.
|
|
56
57
|
*/
|
|
57
|
-
|
|
58
58
|
startup_count?: PaginationStartupCount;
|
|
59
|
+
|
|
59
60
|
/**
|
|
60
61
|
* Defines how many `infinity` pages should be loaded / shown once the user scrolls down. Defaults to `1`.
|
|
61
62
|
*/
|
|
62
|
-
|
|
63
63
|
parallel_load_count?: PaginationParallelLoadCount;
|
|
64
|
+
|
|
64
65
|
/**
|
|
65
66
|
* If set to `true`, the infinity marker will be placed before the content (on top off). This could potentially have negative side effects. But it depends really on the content if this would make more sense to use instead. Defaults to `false`.
|
|
66
67
|
*/
|
|
67
|
-
|
|
68
68
|
place_maker_before_content?: boolean;
|
|
69
|
+
|
|
69
70
|
/**
|
|
70
71
|
* The minimum time to wait, if the infinity scroll was invoked under that time threshold. This prevents not intentional infinity scroll loop calls. Defaults to `400` milliseconds.
|
|
71
72
|
*/
|
|
72
|
-
|
|
73
73
|
min_wait_time?: PaginationMinWaitTime;
|
|
74
|
+
|
|
74
75
|
/**
|
|
75
76
|
* If set to `true`, all pagination bar buttons are disabled.
|
|
76
77
|
*/
|
|
77
|
-
|
|
78
78
|
disabled?: boolean;
|
|
79
|
+
|
|
79
80
|
/**
|
|
80
81
|
* If set to `true`, an overlaying skeleton with animation will be shown.
|
|
81
82
|
*/
|
|
82
|
-
|
|
83
83
|
skeleton?: SkeletonShow;
|
|
84
|
+
|
|
84
85
|
/**
|
|
85
86
|
* If set to `infinity`, then the pagination bar will be now shown and but infinity scrolling will do the content presentation. For more information, check out the <a href="https://eufemia.dnb.no/uilib/components/pagination/infinity-scroller">Infinity Scroller</a>. Defaults to `pagination`.
|
|
86
87
|
*/
|
|
87
|
-
|
|
88
88
|
mode?: PaginationMode;
|
|
89
|
+
|
|
89
90
|
/**
|
|
90
91
|
* If set to `true` it will disable the automated infinity scrolling, but shows a load more button at the of the content instead.
|
|
91
92
|
*/
|
|
92
|
-
|
|
93
93
|
use_load_button?: boolean;
|
|
94
94
|
items?: PaginationItems;
|
|
95
|
+
|
|
95
96
|
/**
|
|
96
97
|
* If set to `true` no indicator will be shown.
|
|
97
98
|
*/
|
|
98
|
-
|
|
99
99
|
hide_progress_indicator?: boolean;
|
|
100
|
+
|
|
100
101
|
/**
|
|
101
102
|
* Callback function to get the `setContent` handler from the current pagination instance. e.g. `set_content_handler={fn => (...)}`. Use this handler to insert content during infinity mode.
|
|
102
103
|
*/
|
|
103
|
-
|
|
104
104
|
set_content_handler?: PaginationSetContentHandler;
|
|
105
|
+
|
|
105
106
|
/**
|
|
106
107
|
* Callback function to get the `resetContent` handler from the current pagination instance. e.g. `reset_content_handler={fn => (...)}`. Use this handler to reset all the content. You can set it to `true`, to programmatically reset the content.
|
|
107
108
|
*/
|
|
108
|
-
|
|
109
109
|
reset_content_handler?: PaginationResetContentHandler;
|
|
110
|
+
|
|
110
111
|
/**
|
|
111
112
|
* Callback function to get the `resetInfinity` handler from the current pagination instance. e.g. `reset_pagination_handler={fn => (...)}`. Use this handler to reset all the internal states. You can set it to `true`, to programmatically reset the states.
|
|
112
113
|
*/
|
|
113
|
-
|
|
114
114
|
reset_pagination_handler?: PaginationResetPaginationHandler;
|
|
115
|
+
|
|
115
116
|
/**
|
|
116
117
|
* Callback function to get the `endInfinity` handler from the current pagination instance. e.g. `end_infinity_handler={fn => (...)}`. Use this handler to end the infinity scrolling procedure, in case the `page_count` is unknown.
|
|
117
118
|
*/
|
|
118
|
-
|
|
119
119
|
end_infinity_handler?: PaginationEndInfinityHandler;
|
|
120
|
+
|
|
120
121
|
/**
|
|
121
122
|
* By default a `<div>` is used. Set it to any element you have to use. Adds also a class: `dnb-pagination__page` shown.
|
|
122
123
|
*/
|
|
123
|
-
|
|
124
124
|
page_element?: PaginationPageElement;
|
|
125
|
+
|
|
125
126
|
/**
|
|
126
127
|
* (infinity mode) is used by the <em>indicator</em>, <em>load more</em> bar as well as by the marker. Defaults to a `div`.
|
|
127
128
|
*/
|
|
128
|
-
|
|
129
129
|
fallback_element?: PaginationFallbackElement;
|
|
130
|
+
|
|
130
131
|
/**
|
|
131
132
|
* (infinity mode) is used by the internal marker. Falls back to `fallback_element` if not defined.
|
|
132
133
|
*/
|
|
133
|
-
|
|
134
134
|
marker_element?: PaginationMarkerElement;
|
|
135
|
+
|
|
135
136
|
/**
|
|
136
137
|
* (infinity mode) is used by the <em>indicator</em>. Falls back to `fallback_element` if not defined.
|
|
137
138
|
*/
|
|
138
|
-
|
|
139
139
|
indicator_element?: PaginationIndicatorElement;
|
|
140
|
+
|
|
140
141
|
/**
|
|
141
142
|
* Define the alignment of the pagination button bar. Can be `center`, `left` or `right`. Defaults to `left`.
|
|
142
143
|
*/
|
|
143
|
-
|
|
144
144
|
align?: string;
|
|
145
|
+
|
|
145
146
|
/**
|
|
146
147
|
* The title used in every button shown in the bar. Defaults to `Side %s`.
|
|
147
148
|
*/
|
|
148
|
-
|
|
149
149
|
button_title?: string;
|
|
150
|
+
|
|
150
151
|
/**
|
|
151
152
|
* The title used in the previous page button. Defaults to `Forrige side`.
|
|
152
153
|
*/
|
|
153
|
-
|
|
154
154
|
prev_title?: string;
|
|
155
|
+
|
|
155
156
|
/**
|
|
156
157
|
* The title used in the next page button. Defaults to `Neste side`.
|
|
157
158
|
*/
|
|
158
|
-
|
|
159
159
|
next_title?: string;
|
|
160
|
+
|
|
160
161
|
/**
|
|
161
162
|
* The title used in the dots. Relevant for screen-readers. Defaults to `%s flere sider`.
|
|
162
163
|
*/
|
|
163
|
-
|
|
164
164
|
more_pages?: string;
|
|
165
|
+
|
|
165
166
|
/**
|
|
166
167
|
* Shown until new content is inserted in to the page. Defaults to `Laster nytt innhold`.
|
|
167
168
|
*/
|
|
168
|
-
|
|
169
169
|
is_loading_text?: string;
|
|
170
|
+
|
|
170
171
|
/**
|
|
171
|
-
* Used during infinity mode. If `use_load_button` is set to true
|
|
172
|
+
* Used during infinity mode. If `use_load_button` is set to `true`, then a button is show on the bottom. If the `startup_page` is higher than 1. Defaults to `Vis mer innhold`.
|
|
172
173
|
*/
|
|
173
|
-
|
|
174
174
|
load_button_text?: string;
|
|
175
175
|
class?: string;
|
|
176
176
|
className?: string;
|
|
177
|
+
|
|
177
178
|
/**
|
|
178
179
|
* The given content can be either a function or a React node, depending on your needs. A function contains several helper functions. More details down below and have a look at the examples in the demos section.
|
|
179
180
|
*/
|
|
180
|
-
|
|
181
181
|
children?: PaginationChildren;
|
|
182
|
+
|
|
182
183
|
/**
|
|
183
184
|
* Will be called for every page change, regardless if the mode is `mode="infinity"` or not. Returns an object with number of useful properties and methods. See below for more details.
|
|
184
185
|
*/
|
|
185
|
-
|
|
186
186
|
on_change?: (...args: any[]) => any;
|
|
187
|
+
|
|
187
188
|
/**
|
|
188
189
|
* Only on "infinity" mode. Will be called once the component is ready for interaction. Returns an object with number of useful properties and methods. See below for more details. "NB:" Will be called again as soon as we reset the content by calling `resetContent()`.
|
|
189
190
|
*/
|
|
190
|
-
|
|
191
191
|
on_startup?: (...args: any[]) => any;
|
|
192
|
+
|
|
192
193
|
/**
|
|
193
194
|
* Only on "infinity" mode. Will be called on every page interaction, also on the very first interaction. Returns an object with number of useful properties and methods. See below for more details.
|
|
194
195
|
*/
|
|
195
|
-
|
|
196
196
|
on_load?: (...args: any[]) => any;
|
|
197
|
+
|
|
197
198
|
/**
|
|
198
199
|
* Only on "infinity" mode. Will be called once `page_count` is reached or `endInfinity` was called.
|
|
199
200
|
*/
|
|
200
|
-
|
|
201
201
|
on_end?: (...args: any[]) => any;
|
|
202
202
|
}
|
|
203
203
|
export default class Pagination extends React.Component<
|
|
@@ -3,6 +3,8 @@ import React from 'react';
|
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
import { makeUniqueId, warn } from '../../shared/component-helper';
|
|
5
5
|
import TooltipContainer from './TooltipContainer';
|
|
6
|
+
import { useTheme } from '../../shared';
|
|
7
|
+
import { getThemeClasses } from '../../shared/Theme';
|
|
6
8
|
let tooltipPortal;
|
|
7
9
|
|
|
8
10
|
if (typeof globalThis !== 'undefined') {
|
|
@@ -26,12 +28,13 @@ function TooltipPortal(props) {
|
|
|
26
28
|
const [id] = React.useState(() => props.group || makeUniqueId());
|
|
27
29
|
const isInDOM = React.useRef(false);
|
|
28
30
|
const hasGroup = props.group;
|
|
31
|
+
const theme = useTheme();
|
|
29
32
|
|
|
30
33
|
const makePortal = () => {
|
|
31
34
|
if (!tooltipPortal[id]) {
|
|
32
35
|
tooltipPortal[id] = {
|
|
33
36
|
count: 0,
|
|
34
|
-
node: hasGroup ? createGroupElement(id) : createRootElement()
|
|
37
|
+
node: hasGroup ? createGroupElement(theme, id) : createRootElement(theme)
|
|
35
38
|
};
|
|
36
39
|
}
|
|
37
40
|
};
|
|
@@ -56,7 +59,7 @@ function TooltipPortal(props) {
|
|
|
56
59
|
if (ref.count <= 0) {
|
|
57
60
|
if (hasGroup) {
|
|
58
61
|
ReactDOM.unmountComponentAtNode(ref.node);
|
|
59
|
-
createRootElement().removeChild(ref.node);
|
|
62
|
+
createRootElement(theme).removeChild(ref.node);
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
delete tooltipPortal[id];
|
|
@@ -147,20 +150,24 @@ function TooltipPortal(props) {
|
|
|
147
150
|
|
|
148
151
|
export default TooltipPortal;
|
|
149
152
|
|
|
150
|
-
const createGroupElement = id => {
|
|
153
|
+
const createGroupElement = (theme, id) => {
|
|
151
154
|
try {
|
|
152
155
|
const elem = document.createElement('div');
|
|
153
156
|
elem.classList.add('dnb-tooltip__group');
|
|
154
157
|
elem.setAttribute('id', id);
|
|
155
|
-
createRootElement().appendChild(elem);
|
|
158
|
+
createRootElement(theme).appendChild(elem);
|
|
156
159
|
return elem;
|
|
157
160
|
} catch (e) {
|
|
158
161
|
warn(e);
|
|
159
162
|
}
|
|
160
163
|
};
|
|
161
164
|
|
|
162
|
-
const createRootElement = function () {
|
|
163
|
-
let className = arguments.length >
|
|
165
|
+
const createRootElement = function (theme) {
|
|
166
|
+
let className = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
167
|
+
|
|
168
|
+
if (!className) {
|
|
169
|
+
className = 'dnb-tooltip__portal';
|
|
170
|
+
}
|
|
164
171
|
|
|
165
172
|
try {
|
|
166
173
|
const element = document.querySelector(`.${className}`);
|
|
@@ -172,6 +179,11 @@ const createRootElement = function () {
|
|
|
172
179
|
const elem = document.createElement('div');
|
|
173
180
|
elem.classList.add(className);
|
|
174
181
|
elem.classList.add('dnb-core-style');
|
|
182
|
+
|
|
183
|
+
if (theme) {
|
|
184
|
+
elem.classList.add.call(elem.classList, ...getThemeClasses(theme).split(' '));
|
|
185
|
+
}
|
|
186
|
+
|
|
175
187
|
document.body.appendChild(elem);
|
|
176
188
|
return elem;
|
|
177
189
|
} catch (e) {
|
package/elements/div/Div.d.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import { SpacingProps } from '../../components/space/types';
|
|
7
|
+
export declare type DivProps = SpacingProps & React.HTMLAttributes<HTMLElement>;
|
|
6
8
|
declare const Div: React.ForwardRefExoticComponent<import("../../components/space/types").SpacingElementProps & {
|
|
7
9
|
space?: import("../../components/space/types").SpaceType | import("../../components/space/types").SpacingElementProps;
|
|
8
10
|
} & React.HTMLAttributes<HTMLElement> & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { ButtonIconPosition } from '../
|
|
2
|
+
import type { ButtonIconPosition } from '../Button';
|
|
3
3
|
import type { HeadingLevel } from '../Heading';
|
|
4
4
|
import type { IconIcon, IconSize } from '../Icon';
|
|
5
5
|
import type { SkeletonShow } from '../Skeleton';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { ButtonIconPosition } from '../
|
|
2
|
+
import type { ButtonIconPosition } from '../Button';
|
|
3
3
|
import type { HeadingLevel } from '../Heading';
|
|
4
4
|
import type { IconSize } from '../Icon';
|
|
5
5
|
import type { SkeletonShow } from '../Skeleton';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type {
|
|
3
|
+
DrawerListProps,
|
|
4
|
+
DrawerListData,
|
|
5
|
+
DrawerListOptionsRender
|
|
6
|
+
} from '../../fragments/DrawerList';
|
|
7
|
+
import type { ButtonIconPosition } from '../Button';
|
|
4
8
|
import type { FormLabelLabelDirection, FormLabelText } from '../FormLabel';
|
|
5
9
|
import type {
|
|
6
10
|
FormStatusProps,
|
|
@@ -10,6 +14,8 @@ import type {
|
|
|
10
14
|
import type { IconIcon, IconSize } from '../Icon';
|
|
11
15
|
import type { SkeletonShow } from '../Skeleton';
|
|
12
16
|
import type { SpacingProps } from '../space/types';
|
|
17
|
+
export type AutocompleteData = DrawerListData;
|
|
18
|
+
export type AutocompleteOptionsRender = DrawerListOptionsRender;
|
|
13
19
|
type AutocompleteMode = 'sync' | 'async';
|
|
14
20
|
type AutocompleteTitle = string | React.ReactNode;
|
|
15
21
|
type AutocompletePlaceholder = string | React.ReactNode;
|
|
@@ -23,7 +29,7 @@ type AutocompleteSubmitButtonIcon =
|
|
|
23
29
|
| ((...args: any[]) => any);
|
|
24
30
|
type AutocompleteInputRef =
|
|
25
31
|
| ((...args: any[]) => any)
|
|
26
|
-
|
|
|
32
|
+
| React.MutableRefObject<HTMLInputElement | undefined>;
|
|
27
33
|
type AutocompleteInputIcon =
|
|
28
34
|
| string
|
|
29
35
|
| React.ReactNode
|
|
@@ -53,7 +53,7 @@ export type ButtonProps = {
|
|
|
53
53
|
title?: React.ReactNode;
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* Defines the kind of button. Possible values are `primary`, `secondary`, `tertiary` and `signal`. Defaults to `primary
|
|
56
|
+
* Defines the kind of button. Possible values are `primary`, `secondary`, `tertiary` and `signal`. Defaults to `primary` (or `secondary` if icon only).
|
|
57
57
|
*/
|
|
58
58
|
variant?: ButtonVariant;
|
|
59
59
|
|
|
@@ -30,14 +30,6 @@
|
|
|
30
30
|
.dnb-skeleton .dnb-button--tertiary .dnb-button__text::after {
|
|
31
31
|
content: none;
|
|
32
32
|
}
|
|
33
|
-
.dnb-button--tertiary.dnb-button--has-text {
|
|
34
|
-
padding-left: 0;
|
|
35
|
-
padding-right: 0;
|
|
36
|
-
}
|
|
37
|
-
.dnb-button--tertiary.dnb-button--has-icon .dnb-button__text::after {
|
|
38
|
-
left: -1rem;
|
|
39
|
-
right: -1rem;
|
|
40
|
-
}
|
|
41
33
|
.dnb-button--tertiary:focus[disabled], html:not([data-whatintent=touch]) .dnb-button--tertiary:focus[disabled] {
|
|
42
34
|
cursor: not-allowed;
|
|
43
35
|
}
|
|
@@ -137,7 +129,6 @@ html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .
|
|
|
137
129
|
}
|
|
138
130
|
.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__text::after {
|
|
139
131
|
left: -0.5rem;
|
|
140
|
-
right: 0;
|
|
141
132
|
}
|
|
142
133
|
.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__icon {
|
|
143
134
|
margin-right: -0.5rem;
|
|
@@ -165,7 +156,6 @@ html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .
|
|
|
165
156
|
padding-right: 1rem;
|
|
166
157
|
}
|
|
167
158
|
.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__text::after {
|
|
168
|
-
left: 0;
|
|
169
159
|
right: -0.5rem;
|
|
170
160
|
}
|
|
171
161
|
.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__icon {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.dnb-button--tertiary .dnb-button__text{position:relative}.dnb-button--tertiary .dnb-button__text:after{background-color:currentcolor;border-radius:.0475rem;bottom:0;bottom:-.0625rem;color:var(--color-sea-green);color:transparent;content:"";height:.095rem;left:0;position:absolute;right:0;transition:color .25s ease-in-out;width:auto;z-index:1}[data-visual-test-wrapper] .dnb-button--tertiary .dnb-button__text:after{transition:none}.dnb-skeleton .dnb-button--tertiary .dnb-button__text:after{content:none}.dnb-button--tertiary
|
|
1
|
+
.dnb-button--tertiary .dnb-button__text{position:relative}.dnb-button--tertiary .dnb-button__text:after{background-color:currentcolor;border-radius:.0475rem;bottom:0;bottom:-.0625rem;color:var(--color-sea-green);color:transparent;content:"";height:.095rem;left:0;position:absolute;right:0;transition:color .25s ease-in-out;width:auto;z-index:1}[data-visual-test-wrapper] .dnb-button--tertiary .dnb-button__text:after{transition:none}.dnb-skeleton .dnb-button--tertiary .dnb-button__text:after{content:none}.dnb-button--tertiary:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary:focus[disabled]{cursor:not-allowed}.dnb-button--tertiary:focus:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]){outline:initial}html[data-whatinput=keyboard] .dnb-button--tertiary:focus:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]){box-shadow:none}.dnb-button--tertiary:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]):before{border-radius:inherit;bottom:0;content:"";height:inherit;left:-.5rem;outline:none;position:absolute;right:-.5rem;top:0;z-index:1}html[data-whatinput=keyboard] .dnb-button--tertiary:focus:not([disabled]):before,html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]):before{--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-button--tertiary:focus:not([disabled]) .dnb-button__text:after,html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]) .dnb-button__text:after{visibility:hidden}html:not([data-whatintent=touch]) .dnb-button--tertiary:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--tertiary:hover:not([disabled]) .dnb-button__text:after{visibility:visible}.dnb-button--tertiary:active[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary:active[disabled]{cursor:not-allowed}.dnb-button--tertiary:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]){outline:initial}html[data-whatinput=keyboard] .dnb-button--tertiary:active:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]){box-shadow:none}html[data-whatintent=touch] .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after,html[data-whatintent=touch] html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after{opacity:1;transition:none;visibility:visible}html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after,html:not([data-whatintent=touch]) html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after{visibility:hidden}.dnb-button--tertiary .dnb-button__icon{align-self:flex-start;margin-top:calc(var(--button-height)/2 - .5rem)}.dnb-button--tertiary.dnb-button--size-large .dnb-button__icon{margin-top:calc(var(--button-height--large)/2 - .5rem)}.dnb-button--tertiary.dnb-button--size-medium .dnb-button__icon{margin-top:calc(var(--button-height--medium)/2 - .5rem)}.dnb-button--tertiary.dnb-button--size-small .dnb-button__icon{margin-top:calc(var(--button-height--small)/2 - .5rem)}.dnb-button--tertiary.dnb-button--icon-position-top{border-radius:.5rem;flex-direction:column;vertical-align:middle}.dnb-button--tertiary.dnb-button--icon-position-top.dnb-button--has-text{padding:0}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__icon{align-self:center;margin-top:.5rem}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__text{font-size:var(--font-size-x-small);margin-bottom:.25rem;margin-top:0}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__text:after{left:0;right:0}.dnb-button--tertiary.dnb-button--icon-position-top.dnb-button--size-large .dnb-button__text{font-size:var(--font-size-small)}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__alignment{height:0;order:3}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__text{padding-left:1rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__text:after{left:-.5rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__icon{margin-left:0;margin-right:-.5rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--icon-size-large .dnb-button__text,.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--icon-size-medium .dnb-button__text{margin-left:1rem;padding-left:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--icon-size-large .dnb-button__text:after,.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--icon-size-medium .dnb-button__text:after{left:-.5rem;right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left:focus[disabled]{cursor:not-allowed}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left:focus:not([disabled]):before{right:-1rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__text{padding-right:1rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__text:after{right:-.5rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__icon{margin-left:-.5rem;margin-right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--icon-size-large .dnb-button__text,.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--icon-size-medium .dnb-button__text{margin-right:1rem;padding-right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--icon-size-large .dnb-button__text:after,.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--icon-size-medium .dnb-button__text:after{right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right:focus[disabled]{cursor:not-allowed}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right:focus:not([disabled]):before{left:-1rem}.dnb-button--tertiary.dnb-button--has-icon:not(.dnb-button--has-text):focus[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon:not(.dnb-button--has-text):focus[disabled]{cursor:not-allowed}.dnb-button--tertiary.dnb-button--has-icon:not(.dnb-button--has-text):focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon:not(.dnb-button--has-text):focus:not([disabled]):before{left:0;right:0}html[data-whatinput=keyboard] .dnb-button--tertiary:hover:focus .dnb-button__text:after{visibility:hidden}
|
|
@@ -17,17 +17,6 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
&.dnb-button--has-text {
|
|
21
|
-
padding-left: 0;
|
|
22
|
-
padding-right: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// change underline if has icon
|
|
26
|
-
&.dnb-button--has-icon .dnb-button__text::after {
|
|
27
|
-
left: -1rem;
|
|
28
|
-
right: -1rem;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
20
|
@include focus() {
|
|
32
21
|
@include removeFocusRing('keyboard');
|
|
33
22
|
@include buttonFocusRing();
|
|
@@ -62,7 +51,7 @@
|
|
|
62
51
|
}
|
|
63
52
|
|
|
64
53
|
.dnb-button__icon {
|
|
65
|
-
align-self: flex-start;
|
|
54
|
+
align-self: flex-start; // needed to vertically center icon
|
|
66
55
|
margin-top: calc(var(--button-height) / 2 - 0.5rem);
|
|
67
56
|
}
|
|
68
57
|
&.dnb-button--size-large .dnb-button__icon {
|
|
@@ -121,7 +110,6 @@
|
|
|
121
110
|
// underline
|
|
122
111
|
&::after {
|
|
123
112
|
left: -0.5rem;
|
|
124
|
-
right: 0;
|
|
125
113
|
}
|
|
126
114
|
}
|
|
127
115
|
.dnb-button__icon {
|
|
@@ -155,7 +143,6 @@
|
|
|
155
143
|
|
|
156
144
|
// underline
|
|
157
145
|
&::after {
|
|
158
|
-
left: 0;
|
|
159
146
|
right: -0.5rem;
|
|
160
147
|
}
|
|
161
148
|
}
|
|
@@ -45,14 +45,6 @@
|
|
|
45
45
|
.dnb-skeleton .dnb-button--tertiary .dnb-button__text::after {
|
|
46
46
|
content: none;
|
|
47
47
|
}
|
|
48
|
-
.dnb-button--tertiary.dnb-button--has-text {
|
|
49
|
-
padding-left: 0;
|
|
50
|
-
padding-right: 0;
|
|
51
|
-
}
|
|
52
|
-
.dnb-button--tertiary.dnb-button--has-icon .dnb-button__text::after {
|
|
53
|
-
left: -1rem;
|
|
54
|
-
right: -1rem;
|
|
55
|
-
}
|
|
56
48
|
.dnb-button--tertiary:focus[disabled], html:not([data-whatintent=touch]) .dnb-button--tertiary:focus[disabled] {
|
|
57
49
|
cursor: not-allowed;
|
|
58
50
|
}
|
|
@@ -152,7 +144,6 @@ html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .
|
|
|
152
144
|
}
|
|
153
145
|
.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__text::after {
|
|
154
146
|
left: -0.5rem;
|
|
155
|
-
right: 0;
|
|
156
147
|
}
|
|
157
148
|
.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__icon {
|
|
158
149
|
margin-right: -0.5rem;
|
|
@@ -180,7 +171,6 @@ html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .
|
|
|
180
171
|
padding-right: 1rem;
|
|
181
172
|
}
|
|
182
173
|
.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__text::after {
|
|
183
|
-
left: 0;
|
|
184
174
|
right: -0.5rem;
|
|
185
175
|
}
|
|
186
176
|
.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__icon {
|
|
@@ -377,6 +367,10 @@ html[data-whatinput=keyboard] .dnb-button--secondary:not(.dnb-button--has-text):
|
|
|
377
367
|
color: var(--color-sea-green);
|
|
378
368
|
background-color: transparent;
|
|
379
369
|
}
|
|
370
|
+
.dnb-button--tertiary.dnb-button--has-text {
|
|
371
|
+
padding-left: 0;
|
|
372
|
+
padding-right: 0;
|
|
373
|
+
}
|
|
380
374
|
html:not([data-whatintent=touch]) .dnb-button--tertiary:hover[disabled] {
|
|
381
375
|
cursor: not-allowed;
|
|
382
376
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.dnb-button--tertiary .dnb-button__text{position:relative}.dnb-button--tertiary .dnb-button__text:after{background-color:currentcolor;border-radius:.0475rem;bottom:0;bottom:-.0625rem;color:var(--color-sea-green);color:transparent;content:"";height:.095rem;left:0;position:absolute;right:0;transition:color .25s ease-in-out;width:auto;z-index:1}[data-visual-test-wrapper] .dnb-button--tertiary .dnb-button__text:after{transition:none}.dnb-skeleton .dnb-button--tertiary .dnb-button__text:after{content:none}.dnb-button--tertiary.dnb-button--has-text{padding-left:0;padding-right:0}.dnb-button--tertiary.dnb-button--has-icon .dnb-button__text:after{left:-1rem;right:-1rem}.dnb-button--tertiary:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary:focus[disabled]{cursor:not-allowed}.dnb-button--tertiary:focus:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]){outline:initial}html[data-whatinput=keyboard] .dnb-button--tertiary:focus:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]){box-shadow:none}.dnb-button--tertiary:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]):before{border-radius:inherit;bottom:0;content:"";height:inherit;left:-.5rem;outline:none;position:absolute;right:-.5rem;top:0;z-index:1}html[data-whatinput=keyboard] .dnb-button--tertiary:focus:not([disabled]):before,html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]):before{--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-button--tertiary:focus:not([disabled]) .dnb-button__text:after,html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]) .dnb-button__text:after{visibility:hidden}html:not([data-whatintent=touch]) .dnb-button--tertiary:hover:not([disabled]) .dnb-button__text:after{visibility:visible}.dnb-button--tertiary:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]){outline:initial}html[data-whatinput=keyboard] .dnb-button--tertiary:active:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]){box-shadow:none}html[data-whatintent=touch] .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after,html[data-whatintent=touch] html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after{opacity:1;transition:none;visibility:visible}html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after,html:not([data-whatintent=touch]) html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after{visibility:hidden}.dnb-button--tertiary .dnb-button__icon{align-self:flex-start;margin-top:calc(var(--button-height)/2 - .5rem)}.dnb-button--tertiary.dnb-button--size-large .dnb-button__icon{margin-top:calc(var(--button-height--large)/2 - .5rem)}.dnb-button--tertiary.dnb-button--size-medium .dnb-button__icon{margin-top:calc(var(--button-height--medium)/2 - .5rem)}.dnb-button--tertiary.dnb-button--size-small .dnb-button__icon{margin-top:calc(var(--button-height--small)/2 - .5rem)}.dnb-button--tertiary.dnb-button--icon-position-top{border-radius:.5rem;flex-direction:column;vertical-align:middle}.dnb-button--tertiary.dnb-button--icon-position-top.dnb-button--has-text{padding:0}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__icon{align-self:center;margin-top:.5rem}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__text{margin-bottom:.25rem;margin-top:0}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__text:after{left:0;right:0}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__alignment{height:0;order:3}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__text{padding-left:1rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__text:after{left:-.5rem;right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__icon{margin-left:0;margin-right:-.5rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--icon-size-large .dnb-button__text,.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--icon-size-medium .dnb-button__text{margin-left:1rem;padding-left:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--icon-size-large .dnb-button__text:after,.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--icon-size-medium .dnb-button__text:after{left:-.5rem;right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left:focus[disabled]{cursor:not-allowed}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left:focus:not([disabled]):before{right:-1rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__text{padding-right:1rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__text:after{left:0;right:-.5rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__icon{margin-left:-.5rem;margin-right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--icon-size-large .dnb-button__text,.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--icon-size-medium .dnb-button__text{margin-right:1rem;padding-right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--icon-size-large .dnb-button__text:after,.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--icon-size-medium .dnb-button__text:after{right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right:focus[disabled]{cursor:not-allowed}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right:focus:not([disabled]):before{left:-1rem}.dnb-button--tertiary.dnb-button--has-icon:not(.dnb-button--has-text):focus[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon:not(.dnb-button--has-text):focus[disabled]{cursor:not-allowed}.dnb-button--tertiary.dnb-button--has-icon:not(.dnb-button--has-text):focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon:not(.dnb-button--has-text):focus:not([disabled]):before{left:0;right:0}html[data-whatinput=keyboard] .dnb-button--tertiary:hover:focus .dnb-button__text:after{visibility:hidden}.dnb-button--primary{background-color:var(--color-sea-green);color:var(--color-white)}html:not([data-whatintent=touch]) .dnb-button--primary:hover:not([disabled]){--border-color:var(--color-emerald-green);background-color:var(--color-white);color:var(--color-sea-green)}.dnb-button--primary:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--primary:focus[disabled]{cursor:not-allowed}.dnb-button--primary:focus:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--primary:focus:not([disabled]){outline:none}html[data-whatinput=keyboard] .dnb-button--primary:focus:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--primary:focus:not([disabled]){--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);background-color:var(--color-white);border-color:transparent;box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-sea-green)}.dnb-button--primary:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--primary:active:not([disabled]){background-color:var(--color-mint-green-50);color:var(--color-sea-green)}.dnb-button--primary[disabled]{background-color:var(--color-sea-green-30);color:var(--color-white)}.dnb-button:not([disabled]).dnb-button--primary.dnb-button__status--error{background-color:var(--color-fire-red);color:var(--color-white)}.dnb-button--secondary{--border-color:var(--color-sea-green);background-color:var(--color-white);box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-sea-green)}html:not([data-whatintent=touch]) .dnb-button--secondary:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--secondary:hover:not([disabled]){--border-color:var(--color-emerald-green);--border-width:0.125rem;background-color:var(--color-white);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-sea-green)}.dnb-button--secondary:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--secondary:focus[disabled]{cursor:not-allowed}.dnb-button--secondary:focus:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--secondary:focus:not([disabled]){outline:none}html[data-whatinput=keyboard] .dnb-button--secondary:focus:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--secondary:focus:not([disabled]){--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);background-color:var(--color-white);border-color:transparent;box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-sea-green)}.dnb-button--secondary:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--secondary:active:not([disabled]){background-color:var(--color-mint-green-50);color:var(--color-sea-green)}.dnb-button--secondary[disabled],.dnb-button--secondary[disabled]:focus{--border-color:var(--color-sea-green-30);--border-width:0.0625rem;background-color:var(--color-white);border-color:transparent;box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-sea-green-30)}.dnb-button:not([disabled]).dnb-button--secondary.dnb-button__status--error{--border-color:var(--color-fire-red);--border-width:0.0625rem;border-color:transparent;box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-fire-red)}.dnb-button:not([disabled]).dnb-button--secondary.dnb-button__status--error .dnb-button__icon{color:inherit}html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):hover:not([disabled]){--border-color:var(--color-emerald-green);--border-width:0.125rem;background-color:var(--color-white);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-emerald-green)}.dnb-button--secondary:not(.dnb-button--has-text):focus[disabled],html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):focus[disabled]{cursor:not-allowed}.dnb-button--secondary:not(.dnb-button--has-text):focus:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):focus:not([disabled]){outline:none}html[data-whatinput=keyboard] .dnb-button--secondary:not(.dnb-button--has-text):focus:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):focus:not([disabled]){--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);background-color:var(--color-white);border-color:transparent;box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-emerald-green)}.dnb-button--secondary:not(.dnb-button--has-text):active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):active:not([disabled]){background-color:var(--color-mint-green-50)}.dnb-button--secondary:not(.dnb-button--has-text):not(.dnb-button--input-button).dnb-button--size-large{line-height:calc(var(--button-height--large) - .5rem);width:calc(var(--button-width--large) - .5rem)}.dnb-button--active{--border-color:var(--color-emerald-green);--border-width:0.125rem;border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-button--tertiary{background-color:transparent;color:var(--color-sea-green)}html:not([data-whatintent=touch]) .dnb-button--tertiary:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--tertiary:hover:not([disabled]) .dnb-button__text:after{color:var(--color-emerald-green)}.dnb-button--tertiary:active[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary:active[disabled]{cursor:not-allowed}html[data-whatintent=touch] .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after,html[data-whatintent=touch] html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after{color:var(--color-emerald-green)}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__text{font-size:var(--font-size-x-small)}.dnb-button--tertiary.dnb-button--icon-position-top.dnb-button--size-large .dnb-button__text{font-size:var(--font-size-small)}.dnb-button--tertiary[disabled]{color:var(--color-sea-green-30)}.dnb-button--signal{background-color:var(--color-accent-yellow);color:var(--color-ocean-green)}html:not([data-whatintent=touch]) .dnb-button--signal:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--signal:hover:not([disabled]){--border-color:var(--color-ocean-green);--border-width:0.125rem;background-color:var(--color-accent-yellow);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-ocean-green)}html:not([data-whatintent=touch]) html[data-whatintent=touch] .dnb-button--signal:active[disabled],html[data-whatintent=touch] .dnb-button--signal:active[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) html[data-whatintent=touch] .dnb-button--signal:active:not([disabled]),html[data-whatintent=touch] .dnb-button--signal:active:not([disabled]){--border-color:var(--color-ocean-green);--border-width:0.125rem;background-color:var(--color-accent-yellow);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-ocean-green)}.dnb-button--signal:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--signal:focus[disabled]{cursor:not-allowed}.dnb-button--signal:focus:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--signal:focus:not([disabled]){outline:none}html[data-whatinput=keyboard] .dnb-button--signal:focus:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--signal:focus:not([disabled]){--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);background-color:var(--color-accent-yellow);border-color:transparent;box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-ocean-green)}.dnb-button--signal:active[disabled],html:not([data-whatintent=touch]) .dnb-button--signal:active[disabled]{cursor:not-allowed}.dnb-button--signal:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--signal:active:not([disabled]){--border-color:transparent;--border-width:0.0625rem;background-color:var(--color-accent-yellow);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-ocean-green)}.dnb-button--signal[disabled]{background-color:var(--color-accent-yellow-30);color:var(--color-black-20)}.dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]){background-color:transparent;box-shadow:none}.dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):after{background-color:currentcolor;bottom:0;content:"";left:0;position:absolute;top:0;width:.0625rem}html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):focus,html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):hover{box-shadow:none;color:var(--color-white)}html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):focus,html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):focus:after,html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):hover,html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):hover:after{background-color:var(--color-sea-green)}html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):not(:active):hover{border-radius:0}html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):active{box-shadow:none;color:var(--color-sea-green)}html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):active,html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):active:after{background-color:var(--color-mint-green-50)}html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text)[disabled]{background-color:var(--color-black-3);color:var(--color-black-55)}.dnb-button--primary{background-color:var(--color-emerald-green)}html:not([data-whatintent=touch]) .dnb-button--primary:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--primary:hover:not([disabled]){--border-color:var(--color-sea-green);--border-width:0.125rem;background-color:var(--color-sea-green);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-white)}.dnb-button--primary:active[disabled],html:not([data-whatintent=touch]) .dnb-button--primary:active[disabled]{cursor:not-allowed}.dnb-button--primary:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--primary:active:not([disabled]){--border-color:transparent;--border-width:0.0625rem;background-color:var(--color-sea-green);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-white)}.dnb-button--primary[disabled]{--border-color:var(--color-black-55);--border-width:0.0625rem;background-color:var(--color-black-8);color:var(--color-black-55)}.dnb-button--primary[disabled],.dnb-button--secondary{border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-button--secondary{--border-color:var(--color-emerald-green);--border-width:0.0625rem;color:var(--color-emerald-green)}.dnb-button--secondary:active[disabled],html:not([data-whatintent=touch]) .dnb-button--secondary:active[disabled]{cursor:not-allowed}.dnb-button--secondary:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--secondary:active:not([disabled]){--border-color:transparent;--border-width:0.0625rem;background-color:var(--color-pistachio);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-emerald-green)}.dnb-button--secondary[disabled]{--border-color:var(--color-black-55);--border-width:0.0625rem;background-color:var(--color-white);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-black-55)}.dnb-button--secondary:not(.dnb-button--has-text):active[disabled],html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):active[disabled]{cursor:not-allowed}.dnb-button--secondary:not(.dnb-button--has-text):active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):active:not([disabled]){--border-color:transparent;--border-width:0.0625rem;background-color:var(--color-pistachio);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-emerald-green)}.dnb-button--tertiary{color:var(--color-emerald-green)}.dnb-button--tertiary[disabled]{color:var(--color-black-55)}
|
|
1
|
+
.dnb-button--tertiary .dnb-button__text{position:relative}.dnb-button--tertiary .dnb-button__text:after{background-color:currentcolor;border-radius:.0475rem;bottom:0;bottom:-.0625rem;color:var(--color-sea-green);color:transparent;content:"";height:.095rem;left:0;position:absolute;right:0;transition:color .25s ease-in-out;width:auto;z-index:1}[data-visual-test-wrapper] .dnb-button--tertiary .dnb-button__text:after{transition:none}.dnb-skeleton .dnb-button--tertiary .dnb-button__text:after{content:none}.dnb-button--tertiary:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary:focus[disabled]{cursor:not-allowed}.dnb-button--tertiary:focus:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]){outline:initial}html[data-whatinput=keyboard] .dnb-button--tertiary:focus:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]){box-shadow:none}.dnb-button--tertiary:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]):before{border-radius:inherit;bottom:0;content:"";height:inherit;left:-.5rem;outline:none;position:absolute;right:-.5rem;top:0;z-index:1}html[data-whatinput=keyboard] .dnb-button--tertiary:focus:not([disabled]):before,html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]):before{--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-button--tertiary:focus:not([disabled]) .dnb-button__text:after,html:not([data-whatintent=touch]) .dnb-button--tertiary:focus:not([disabled]) .dnb-button__text:after{visibility:hidden}html:not([data-whatintent=touch]) .dnb-button--tertiary:hover:not([disabled]) .dnb-button__text:after{visibility:visible}.dnb-button--tertiary:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]){outline:initial}html[data-whatinput=keyboard] .dnb-button--tertiary:active:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]){box-shadow:none}html[data-whatintent=touch] .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after,html[data-whatintent=touch] html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after{opacity:1;transition:none;visibility:visible}html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after,html:not([data-whatintent=touch]) html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after{visibility:hidden}.dnb-button--tertiary .dnb-button__icon{align-self:flex-start;margin-top:calc(var(--button-height)/2 - .5rem)}.dnb-button--tertiary.dnb-button--size-large .dnb-button__icon{margin-top:calc(var(--button-height--large)/2 - .5rem)}.dnb-button--tertiary.dnb-button--size-medium .dnb-button__icon{margin-top:calc(var(--button-height--medium)/2 - .5rem)}.dnb-button--tertiary.dnb-button--size-small .dnb-button__icon{margin-top:calc(var(--button-height--small)/2 - .5rem)}.dnb-button--tertiary.dnb-button--icon-position-top{border-radius:.5rem;flex-direction:column;vertical-align:middle}.dnb-button--tertiary.dnb-button--icon-position-top.dnb-button--has-text{padding:0}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__icon{align-self:center;margin-top:.5rem}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__text{margin-bottom:.25rem;margin-top:0}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__text:after{left:0;right:0}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__alignment{height:0;order:3}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__text{padding-left:1rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__text:after{left:-.5rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left .dnb-button__icon{margin-left:0;margin-right:-.5rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--icon-size-large .dnb-button__text,.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--icon-size-medium .dnb-button__text{margin-left:1rem;padding-left:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--icon-size-large .dnb-button__text:after,.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left.dnb-button--icon-size-medium .dnb-button__text:after{left:-.5rem;right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left:focus[disabled]{cursor:not-allowed}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-left:focus:not([disabled]):before{right:-1rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__text{padding-right:1rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__text:after{right:-.5rem}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right .dnb-button__icon{margin-left:-.5rem;margin-right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--icon-size-large .dnb-button__text,.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--icon-size-medium .dnb-button__text{margin-right:1rem;padding-right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--icon-size-large .dnb-button__text:after,.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right.dnb-button--icon-size-medium .dnb-button__text:after{right:0}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right:focus[disabled]{cursor:not-allowed}.dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right:focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon.dnb-button--has-text.dnb-button--icon-position-right:focus:not([disabled]):before{left:-1rem}.dnb-button--tertiary.dnb-button--has-icon:not(.dnb-button--has-text):focus[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon:not(.dnb-button--has-text):focus[disabled]{cursor:not-allowed}.dnb-button--tertiary.dnb-button--has-icon:not(.dnb-button--has-text):focus:not([disabled]):before,html:not([data-whatintent=touch]) .dnb-button--tertiary.dnb-button--has-icon:not(.dnb-button--has-text):focus:not([disabled]):before{left:0;right:0}html[data-whatinput=keyboard] .dnb-button--tertiary:hover:focus .dnb-button__text:after{visibility:hidden}.dnb-button--primary{background-color:var(--color-sea-green);color:var(--color-white)}html:not([data-whatintent=touch]) .dnb-button--primary:hover:not([disabled]){--border-color:var(--color-emerald-green);background-color:var(--color-white);color:var(--color-sea-green)}.dnb-button--primary:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--primary:focus[disabled]{cursor:not-allowed}.dnb-button--primary:focus:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--primary:focus:not([disabled]){outline:none}html[data-whatinput=keyboard] .dnb-button--primary:focus:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--primary:focus:not([disabled]){--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);background-color:var(--color-white);border-color:transparent;box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-sea-green)}.dnb-button--primary:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--primary:active:not([disabled]){background-color:var(--color-mint-green-50);color:var(--color-sea-green)}.dnb-button--primary[disabled]{background-color:var(--color-sea-green-30);color:var(--color-white)}.dnb-button:not([disabled]).dnb-button--primary.dnb-button__status--error{background-color:var(--color-fire-red);color:var(--color-white)}.dnb-button--secondary{--border-color:var(--color-sea-green);background-color:var(--color-white);box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-sea-green)}html:not([data-whatintent=touch]) .dnb-button--secondary:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--secondary:hover:not([disabled]){--border-color:var(--color-emerald-green);--border-width:0.125rem;background-color:var(--color-white);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-sea-green)}.dnb-button--secondary:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--secondary:focus[disabled]{cursor:not-allowed}.dnb-button--secondary:focus:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--secondary:focus:not([disabled]){outline:none}html[data-whatinput=keyboard] .dnb-button--secondary:focus:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--secondary:focus:not([disabled]){--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);background-color:var(--color-white);border-color:transparent;box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-sea-green)}.dnb-button--secondary:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--secondary:active:not([disabled]){background-color:var(--color-mint-green-50);color:var(--color-sea-green)}.dnb-button--secondary[disabled],.dnb-button--secondary[disabled]:focus{--border-color:var(--color-sea-green-30);--border-width:0.0625rem;background-color:var(--color-white);border-color:transparent;box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-sea-green-30)}.dnb-button:not([disabled]).dnb-button--secondary.dnb-button__status--error{--border-color:var(--color-fire-red);--border-width:0.0625rem;border-color:transparent;box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-fire-red)}.dnb-button:not([disabled]).dnb-button--secondary.dnb-button__status--error .dnb-button__icon{color:inherit}html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):hover:not([disabled]){--border-color:var(--color-emerald-green);--border-width:0.125rem;background-color:var(--color-white);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-emerald-green)}.dnb-button--secondary:not(.dnb-button--has-text):focus[disabled],html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):focus[disabled]{cursor:not-allowed}.dnb-button--secondary:not(.dnb-button--has-text):focus:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):focus:not([disabled]){outline:none}html[data-whatinput=keyboard] .dnb-button--secondary:not(.dnb-button--has-text):focus:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):focus:not([disabled]){--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);background-color:var(--color-white);border-color:transparent;box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-emerald-green)}.dnb-button--secondary:not(.dnb-button--has-text):active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):active:not([disabled]){background-color:var(--color-mint-green-50)}.dnb-button--secondary:not(.dnb-button--has-text):not(.dnb-button--input-button).dnb-button--size-large{line-height:calc(var(--button-height--large) - .5rem);width:calc(var(--button-width--large) - .5rem)}.dnb-button--active{--border-color:var(--color-emerald-green);--border-width:0.125rem;border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-button--tertiary{background-color:transparent;color:var(--color-sea-green)}.dnb-button--tertiary.dnb-button--has-text{padding-left:0;padding-right:0}html:not([data-whatintent=touch]) .dnb-button--tertiary:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--tertiary:hover:not([disabled]) .dnb-button__text:after{color:var(--color-emerald-green)}.dnb-button--tertiary:active[disabled],html:not([data-whatintent=touch]) .dnb-button--tertiary:active[disabled]{cursor:not-allowed}html[data-whatintent=touch] .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after,html[data-whatintent=touch] html:not([data-whatintent=touch]) .dnb-button--tertiary:active:not([disabled]) .dnb-button__text:after{color:var(--color-emerald-green)}.dnb-button--tertiary.dnb-button--icon-position-top .dnb-button__text{font-size:var(--font-size-x-small)}.dnb-button--tertiary.dnb-button--icon-position-top.dnb-button--size-large .dnb-button__text{font-size:var(--font-size-small)}.dnb-button--tertiary[disabled]{color:var(--color-sea-green-30)}.dnb-button--signal{background-color:var(--color-accent-yellow);color:var(--color-ocean-green)}html:not([data-whatintent=touch]) .dnb-button--signal:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--signal:hover:not([disabled]){--border-color:var(--color-ocean-green);--border-width:0.125rem;background-color:var(--color-accent-yellow);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-ocean-green)}html:not([data-whatintent=touch]) html[data-whatintent=touch] .dnb-button--signal:active[disabled],html[data-whatintent=touch] .dnb-button--signal:active[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) html[data-whatintent=touch] .dnb-button--signal:active:not([disabled]),html[data-whatintent=touch] .dnb-button--signal:active:not([disabled]){--border-color:var(--color-ocean-green);--border-width:0.125rem;background-color:var(--color-accent-yellow);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-ocean-green)}.dnb-button--signal:focus[disabled],html:not([data-whatintent=touch]) .dnb-button--signal:focus[disabled]{cursor:not-allowed}.dnb-button--signal:focus:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--signal:focus:not([disabled]){outline:none}html[data-whatinput=keyboard] .dnb-button--signal:focus:not([disabled]),html[data-whatinput=keyboard] html:not([data-whatintent=touch]) .dnb-button--signal:focus:not([disabled]){--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);background-color:var(--color-accent-yellow);border-color:transparent;box-shadow:inset 0 0 0 var(--border-width) var(--border-color);color:var(--color-ocean-green)}.dnb-button--signal:active[disabled],html:not([data-whatintent=touch]) .dnb-button--signal:active[disabled]{cursor:not-allowed}.dnb-button--signal:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--signal:active:not([disabled]){--border-color:transparent;--border-width:0.0625rem;background-color:var(--color-accent-yellow);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-ocean-green)}.dnb-button--signal[disabled]{background-color:var(--color-accent-yellow-30);color:var(--color-black-20)}.dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]){background-color:transparent;box-shadow:none}.dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):after{background-color:currentcolor;bottom:0;content:"";left:0;position:absolute;top:0;width:.0625rem}html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):focus,html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):hover{box-shadow:none;color:var(--color-white)}html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):focus,html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):focus:after,html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):hover,html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):hover:after{background-color:var(--color-sea-green)}html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):not(:active):hover{border-radius:0}html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):active{box-shadow:none;color:var(--color-sea-green)}html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):active,html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text):not([disabled]):active:after{background-color:var(--color-mint-green-50)}html:not([data-whatintent=touch]) .dnb-button--input-button.dnb-button--secondary:not(.dnb-button--has-text)[disabled]{background-color:var(--color-black-3);color:var(--color-black-55)}.dnb-button--primary{background-color:var(--color-emerald-green)}html:not([data-whatintent=touch]) .dnb-button--primary:hover[disabled]{cursor:not-allowed}html:not([data-whatintent=touch]) .dnb-button--primary:hover:not([disabled]){--border-color:var(--color-sea-green);--border-width:0.125rem;background-color:var(--color-sea-green);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-white)}.dnb-button--primary:active[disabled],html:not([data-whatintent=touch]) .dnb-button--primary:active[disabled]{cursor:not-allowed}.dnb-button--primary:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--primary:active:not([disabled]){--border-color:transparent;--border-width:0.0625rem;background-color:var(--color-sea-green);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-white)}.dnb-button--primary[disabled]{--border-color:var(--color-black-55);--border-width:0.0625rem;background-color:var(--color-black-8);color:var(--color-black-55)}.dnb-button--primary[disabled],.dnb-button--secondary{border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}.dnb-button--secondary{--border-color:var(--color-emerald-green);--border-width:0.0625rem;color:var(--color-emerald-green)}.dnb-button--secondary:active[disabled],html:not([data-whatintent=touch]) .dnb-button--secondary:active[disabled]{cursor:not-allowed}.dnb-button--secondary:active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--secondary:active:not([disabled]){--border-color:transparent;--border-width:0.0625rem;background-color:var(--color-pistachio);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-emerald-green)}.dnb-button--secondary[disabled]{--border-color:var(--color-black-55);--border-width:0.0625rem;background-color:var(--color-white);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-black-55)}.dnb-button--secondary:not(.dnb-button--has-text):active[disabled],html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):active[disabled]{cursor:not-allowed}.dnb-button--secondary:not(.dnb-button--has-text):active:not([disabled]),html:not([data-whatintent=touch]) .dnb-button--secondary:not(.dnb-button--has-text):active:not([disabled]){--border-color:transparent;--border-width:0.0625rem;background-color:var(--color-pistachio);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color);color:var(--color-emerald-green)}.dnb-button--tertiary{color:var(--color-emerald-green)}.dnb-button--tertiary[disabled]{color:var(--color-black-55)}
|