@dnb/eufemia 10.0.0-beta.7 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (417) hide show
  1. package/CHANGELOG.md +273 -286
  2. package/cjs/components/anchor/Anchor.d.ts +5 -1
  3. package/cjs/components/anchor/Anchor.js +53 -4
  4. package/cjs/components/anchor/style/anchor-mixins.scss +8 -4
  5. package/cjs/components/anchor/style/dnb-anchor.css +8 -9
  6. package/cjs/components/anchor/style/dnb-anchor.min.css +1 -1
  7. package/cjs/components/anchor/style/dnb-anchor.scss +2 -1
  8. package/cjs/components/anchor/style/themes/dnb-anchor-theme-sbanken.css +63 -1
  9. package/cjs/components/anchor/style/themes/dnb-anchor-theme-sbanken.min.css +1 -1
  10. package/cjs/components/anchor/style/themes/dnb-anchor-theme-sbanken.scss +88 -26
  11. package/cjs/components/anchor/style/themes/dnb-anchor-theme-ui.css +4 -4
  12. package/cjs/components/anchor/style/themes/dnb-anchor-theme-ui.min.css +1 -1
  13. package/cjs/components/anchor/style/themes/dnb-anchor-theme-ui.scss +4 -4
  14. package/cjs/components/autocomplete/Autocomplete.d.ts +3 -2
  15. package/cjs/components/autocomplete/Autocomplete.js +8 -5
  16. package/cjs/components/button/Button.d.ts +3 -2
  17. package/cjs/components/button/Button.js +8 -5
  18. package/cjs/components/button/style/dnb-button--tertiary.css +16 -7
  19. package/cjs/components/button/style/dnb-button--tertiary.min.css +1 -1
  20. package/cjs/components/button/style/dnb-button--tertiary.scss +28 -18
  21. package/cjs/components/button/style/dnb-button.css +1 -3
  22. package/cjs/components/button/style/dnb-button.min.css +1 -1
  23. package/cjs/components/button/style/dnb-button.scss +0 -1
  24. package/cjs/components/button/style/themes/button-mixins.scss +4 -4
  25. package/cjs/components/button/style/themes/dnb-button-theme-eiendom.css +16 -7
  26. package/cjs/components/button/style/themes/dnb-button-theme-eiendom.min.css +1 -1
  27. package/cjs/components/button/style/themes/dnb-button-theme-sbanken.css +38 -7
  28. package/cjs/components/button/style/themes/dnb-button-theme-sbanken.min.css +1 -1
  29. package/cjs/components/button/style/themes/dnb-button-theme-sbanken.scss +6 -0
  30. package/cjs/components/button/style/themes/dnb-button-theme-ui.css +16 -7
  31. package/cjs/components/button/style/themes/dnb-button-theme-ui.min.css +1 -1
  32. package/cjs/components/checkbox/Checkbox.d.ts +3 -2
  33. package/cjs/components/checkbox/Checkbox.js +8 -5
  34. package/cjs/components/date-picker/DatePicker.d.ts +3 -2
  35. package/cjs/components/date-picker/DatePicker.js +9 -5
  36. package/cjs/components/dialog/style/dnb-dialog.css +3 -3
  37. package/cjs/components/dialog/style/dnb-dialog.min.css +1 -1
  38. package/cjs/components/dialog/style/dnb-dialog.scss +2 -4
  39. package/cjs/components/dropdown/Dropdown.d.ts +3 -2
  40. package/cjs/components/dropdown/Dropdown.js +8 -5
  41. package/cjs/components/form-row/FormRow.d.ts +2 -1
  42. package/cjs/components/form-row/FormRow.js +8 -5
  43. package/cjs/components/form-set/FormSet.d.ts +2 -1
  44. package/cjs/components/form-status/FormStatus.d.ts +6 -6
  45. package/cjs/components/form-status/FormStatus.js +13 -7
  46. package/cjs/components/global-error/GlobalError.d.ts +64 -62
  47. package/cjs/components/global-error/GlobalError.js +76 -509
  48. package/cjs/components/global-error/style/dnb-global-error.css +21 -31
  49. package/cjs/components/global-error/style/dnb-global-error.min.css +1 -1
  50. package/cjs/components/global-error/style/dnb-global-error.scss +19 -29
  51. package/cjs/components/global-status/GlobalStatus.d.ts +8 -0
  52. package/cjs/components/help-button/HelpButton.d.ts +1 -3
  53. package/cjs/components/help-button/HelpButton.js +9 -17
  54. package/cjs/components/icon/style/dnb-icon.css +7 -3
  55. package/cjs/components/icon/style/dnb-icon.min.css +1 -1
  56. package/cjs/components/icon/style/dnb-icon.scss +16 -10
  57. package/cjs/components/input/Input.d.ts +11 -5
  58. package/cjs/components/input/Input.js +8 -5
  59. package/cjs/components/input-masked/InputMasked.d.ts +3 -2
  60. package/cjs/components/input-masked/InputMaskedUtils.js +7 -3
  61. package/cjs/components/lib.d.ts +1 -1
  62. package/cjs/components/modal/Modal.js +21 -7
  63. package/cjs/components/modal/ModalContent.js +2 -2
  64. package/cjs/components/number-format/NumberUtils.js +5 -4
  65. package/cjs/components/progress-indicator/ProgressIndicator.d.ts +1 -1
  66. package/cjs/components/progress-indicator/ProgressIndicatorCircular.d.ts +1 -1
  67. package/cjs/components/progress-indicator/ProgressIndicatorLinear.d.ts +1 -1
  68. package/cjs/components/radio/Radio.d.ts +4 -3
  69. package/cjs/components/radio/Radio.js +8 -5
  70. package/cjs/components/radio/RadioGroup.d.ts +4 -3
  71. package/cjs/components/radio/RadioGroup.js +8 -5
  72. package/cjs/components/radio/style/dnb-radio.css +1 -0
  73. package/cjs/components/radio/style/dnb-radio.min.css +1 -1
  74. package/cjs/components/radio/style/dnb-radio.scss +1 -0
  75. package/cjs/components/slider/SliderInstance.js +2 -3
  76. package/cjs/components/slider/SliderProvider.js +2 -2
  77. package/cjs/components/slider/types.d.ts +2 -1
  78. package/cjs/components/switch/Switch.d.ts +3 -2
  79. package/cjs/components/switch/Switch.js +8 -5
  80. package/cjs/components/textarea/Textarea.d.ts +3 -2
  81. package/cjs/components/textarea/Textarea.js +8 -5
  82. package/cjs/components/timeline/TimelineItem.d.ts +2 -2
  83. package/cjs/components/toggle-button/ToggleButton.d.ts +3 -2
  84. package/cjs/components/toggle-button/ToggleButton.js +8 -5
  85. package/cjs/components/toggle-button/ToggleButtonGroup.d.ts +3 -2
  86. package/cjs/components/toggle-button/ToggleButtonGroup.js +8 -5
  87. package/cjs/components/tooltip/TooltipWithEvents.d.ts +2 -2
  88. package/cjs/components/tooltip/TooltipWithEvents.js +6 -1
  89. package/cjs/components/visually-hidden/style/dnb-visually-hidden.css +14 -14
  90. package/cjs/components/visually-hidden/style/dnb-visually-hidden.min.css +1 -1
  91. package/cjs/elements/Link.d.ts +1 -1
  92. package/cjs/elements/lib.d.ts +1 -1
  93. package/cjs/elements/typography/style/themes/dnb-typography-theme-sbanken.scss +16 -0
  94. package/cjs/elements/typography/style/themes/dnb-typography-theme-ui.scss +4 -23
  95. package/cjs/elements/typography/style/typography-mixins.scss +33 -0
  96. package/cjs/extensions/payment-card/PaymentCard.d.ts +6 -29
  97. package/cjs/shared/Context.d.ts +2 -0
  98. package/cjs/shared/Eufemia.d.ts +1 -0
  99. package/cjs/shared/Eufemia.js +4 -1
  100. package/cjs/shared/Theme.d.ts +6 -2
  101. package/cjs/shared/Theme.js +11 -5
  102. package/cjs/shared/VisibilityByTheme.js +1 -1
  103. package/cjs/shared/locales/en-GB.d.ts +2 -2
  104. package/cjs/shared/locales/en-GB.js +7 -7
  105. package/cjs/shared/locales/en-US.d.ts +2 -2
  106. package/cjs/shared/locales/index.d.ts +4 -4
  107. package/cjs/shared/locales/nb-NO.d.ts +2 -2
  108. package/cjs/shared/locales/nb-NO.js +7 -7
  109. package/cjs/style/core/scopes.scss +1 -1
  110. package/cjs/style/core/utilities.scss +17 -13
  111. package/cjs/style/dnb-ui-basis.css +16 -16
  112. package/cjs/style/dnb-ui-basis.min.css +1 -1
  113. package/cjs/style/dnb-ui-body.css +2 -2
  114. package/cjs/style/dnb-ui-body.min.css +1 -1
  115. package/cjs/style/dnb-ui-components.css +55 -63
  116. package/cjs/style/dnb-ui-components.min.css +1 -1
  117. package/cjs/style/dnb-ui-core.css +16 -16
  118. package/cjs/style/dnb-ui-core.min.css +1 -1
  119. package/cjs/style/themes/theme-eiendom/eiendom-theme-basis.css +5 -0
  120. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +91 -81
  121. package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
  122. package/cjs/style/themes/theme-eiendom/eiendom-theme-elements.css +5 -0
  123. package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.css +39 -30
  124. package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
  125. package/cjs/style/themes/theme-sbanken/sbanken-theme-basis.scss +4 -0
  126. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +155 -71
  127. package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
  128. package/cjs/style/themes/theme-sbanken/sbanken-theme-elements.css +36 -31
  129. package/cjs/style/themes/theme-sbanken/sbanken-theme-elements.min.css +1 -1
  130. package/cjs/style/themes/theme-sbanken/sbanken-theme-elements.scss +1 -1
  131. package/cjs/style/themes/theme-ui/ui-theme-basis.css +5 -0
  132. package/cjs/style/themes/theme-ui/ui-theme-components.css +75 -74
  133. package/cjs/style/themes/theme-ui/ui-theme-components.min.css +1 -1
  134. package/cjs/style/themes/theme-ui/ui-theme-elements.css +5 -0
  135. package/cjs/style/themes/theme-ui/ui-theme-tags.css +3 -3
  136. package/cjs/style/themes/theme-ui/ui-theme-tags.min.css +1 -1
  137. package/components/anchor/Anchor.d.ts +5 -1
  138. package/components/anchor/Anchor.js +49 -4
  139. package/components/anchor/style/anchor-mixins.scss +8 -4
  140. package/components/anchor/style/dnb-anchor.css +8 -9
  141. package/components/anchor/style/dnb-anchor.min.css +1 -1
  142. package/components/anchor/style/dnb-anchor.scss +2 -1
  143. package/components/anchor/style/themes/dnb-anchor-theme-sbanken.css +63 -1
  144. package/components/anchor/style/themes/dnb-anchor-theme-sbanken.min.css +1 -1
  145. package/components/anchor/style/themes/dnb-anchor-theme-sbanken.scss +88 -26
  146. package/components/anchor/style/themes/dnb-anchor-theme-ui.css +4 -4
  147. package/components/anchor/style/themes/dnb-anchor-theme-ui.min.css +1 -1
  148. package/components/anchor/style/themes/dnb-anchor-theme-ui.scss +4 -4
  149. package/components/autocomplete/Autocomplete.d.ts +3 -2
  150. package/components/autocomplete/Autocomplete.js +8 -5
  151. package/components/button/Button.d.ts +3 -2
  152. package/components/button/Button.js +8 -5
  153. package/components/button/style/dnb-button--tertiary.css +16 -7
  154. package/components/button/style/dnb-button--tertiary.min.css +1 -1
  155. package/components/button/style/dnb-button--tertiary.scss +28 -18
  156. package/components/button/style/dnb-button.css +1 -3
  157. package/components/button/style/dnb-button.min.css +1 -1
  158. package/components/button/style/dnb-button.scss +0 -1
  159. package/components/button/style/themes/button-mixins.scss +4 -4
  160. package/components/button/style/themes/dnb-button-theme-eiendom.css +16 -7
  161. package/components/button/style/themes/dnb-button-theme-eiendom.min.css +1 -1
  162. package/components/button/style/themes/dnb-button-theme-sbanken.css +38 -7
  163. package/components/button/style/themes/dnb-button-theme-sbanken.min.css +1 -1
  164. package/components/button/style/themes/dnb-button-theme-sbanken.scss +6 -0
  165. package/components/button/style/themes/dnb-button-theme-ui.css +16 -7
  166. package/components/button/style/themes/dnb-button-theme-ui.min.css +1 -1
  167. package/components/checkbox/Checkbox.d.ts +3 -2
  168. package/components/checkbox/Checkbox.js +8 -5
  169. package/components/date-picker/DatePicker.d.ts +3 -2
  170. package/components/date-picker/DatePicker.js +9 -5
  171. package/components/dialog/style/dnb-dialog.css +3 -3
  172. package/components/dialog/style/dnb-dialog.min.css +1 -1
  173. package/components/dialog/style/dnb-dialog.scss +2 -4
  174. package/components/dropdown/Dropdown.d.ts +3 -2
  175. package/components/dropdown/Dropdown.js +8 -5
  176. package/components/form-row/FormRow.d.ts +2 -1
  177. package/components/form-row/FormRow.js +8 -5
  178. package/components/form-set/FormSet.d.ts +2 -1
  179. package/components/form-status/FormStatus.d.ts +6 -6
  180. package/components/form-status/FormStatus.js +13 -7
  181. package/components/global-error/GlobalError.d.ts +64 -62
  182. package/components/global-error/GlobalError.js +77 -510
  183. package/components/global-error/style/dnb-global-error.css +21 -31
  184. package/components/global-error/style/dnb-global-error.min.css +1 -1
  185. package/components/global-error/style/dnb-global-error.scss +19 -29
  186. package/components/global-status/GlobalStatus.d.ts +8 -0
  187. package/components/help-button/HelpButton.d.ts +1 -3
  188. package/components/help-button/HelpButton.js +9 -16
  189. package/components/icon/style/dnb-icon.css +7 -3
  190. package/components/icon/style/dnb-icon.min.css +1 -1
  191. package/components/icon/style/dnb-icon.scss +16 -10
  192. package/components/input/Input.d.ts +11 -5
  193. package/components/input/Input.js +8 -5
  194. package/components/input-masked/InputMasked.d.ts +3 -2
  195. package/components/input-masked/InputMaskedUtils.js +7 -3
  196. package/components/lib.d.ts +1 -1
  197. package/components/modal/Modal.js +21 -7
  198. package/components/modal/ModalContent.js +2 -2
  199. package/components/number-format/NumberUtils.js +5 -4
  200. package/components/progress-indicator/ProgressIndicator.d.ts +1 -1
  201. package/components/progress-indicator/ProgressIndicatorCircular.d.ts +1 -1
  202. package/components/progress-indicator/ProgressIndicatorLinear.d.ts +1 -1
  203. package/components/radio/Radio.d.ts +4 -3
  204. package/components/radio/Radio.js +8 -5
  205. package/components/radio/RadioGroup.d.ts +4 -3
  206. package/components/radio/RadioGroup.js +8 -5
  207. package/components/radio/style/dnb-radio.css +1 -0
  208. package/components/radio/style/dnb-radio.min.css +1 -1
  209. package/components/radio/style/dnb-radio.scss +1 -0
  210. package/components/slider/SliderInstance.js +2 -3
  211. package/components/slider/SliderProvider.js +2 -2
  212. package/components/slider/types.d.ts +2 -1
  213. package/components/switch/Switch.d.ts +3 -2
  214. package/components/switch/Switch.js +8 -5
  215. package/components/textarea/Textarea.d.ts +3 -2
  216. package/components/textarea/Textarea.js +8 -5
  217. package/components/timeline/TimelineItem.d.ts +2 -2
  218. package/components/toggle-button/ToggleButton.d.ts +3 -2
  219. package/components/toggle-button/ToggleButton.js +8 -5
  220. package/components/toggle-button/ToggleButtonGroup.d.ts +3 -2
  221. package/components/toggle-button/ToggleButtonGroup.js +8 -5
  222. package/components/tooltip/TooltipWithEvents.d.ts +2 -2
  223. package/components/tooltip/TooltipWithEvents.js +6 -1
  224. package/components/visually-hidden/style/dnb-visually-hidden.css +14 -14
  225. package/components/visually-hidden/style/dnb-visually-hidden.min.css +1 -1
  226. package/elements/Link.d.ts +1 -1
  227. package/elements/lib.d.ts +1 -1
  228. package/elements/typography/style/themes/dnb-typography-theme-sbanken.scss +16 -0
  229. package/elements/typography/style/themes/dnb-typography-theme-ui.scss +4 -23
  230. package/elements/typography/style/typography-mixins.scss +33 -0
  231. package/es/components/anchor/Anchor.d.ts +5 -1
  232. package/es/components/anchor/Anchor.js +49 -4
  233. package/es/components/anchor/style/anchor-mixins.scss +8 -4
  234. package/es/components/anchor/style/dnb-anchor.css +8 -9
  235. package/es/components/anchor/style/dnb-anchor.min.css +1 -1
  236. package/es/components/anchor/style/dnb-anchor.scss +2 -1
  237. package/es/components/anchor/style/themes/dnb-anchor-theme-sbanken.css +63 -1
  238. package/es/components/anchor/style/themes/dnb-anchor-theme-sbanken.min.css +1 -1
  239. package/es/components/anchor/style/themes/dnb-anchor-theme-sbanken.scss +88 -26
  240. package/es/components/anchor/style/themes/dnb-anchor-theme-ui.css +4 -4
  241. package/es/components/anchor/style/themes/dnb-anchor-theme-ui.min.css +1 -1
  242. package/es/components/anchor/style/themes/dnb-anchor-theme-ui.scss +4 -4
  243. package/es/components/autocomplete/Autocomplete.d.ts +3 -2
  244. package/es/components/autocomplete/Autocomplete.js +8 -5
  245. package/es/components/button/Button.d.ts +3 -2
  246. package/es/components/button/Button.js +8 -5
  247. package/es/components/button/style/dnb-button--tertiary.css +16 -7
  248. package/es/components/button/style/dnb-button--tertiary.min.css +1 -1
  249. package/es/components/button/style/dnb-button--tertiary.scss +28 -18
  250. package/es/components/button/style/dnb-button.css +1 -3
  251. package/es/components/button/style/dnb-button.min.css +1 -1
  252. package/es/components/button/style/dnb-button.scss +0 -1
  253. package/es/components/button/style/themes/button-mixins.scss +4 -4
  254. package/es/components/button/style/themes/dnb-button-theme-eiendom.css +16 -7
  255. package/es/components/button/style/themes/dnb-button-theme-eiendom.min.css +1 -1
  256. package/es/components/button/style/themes/dnb-button-theme-sbanken.css +38 -7
  257. package/es/components/button/style/themes/dnb-button-theme-sbanken.min.css +1 -1
  258. package/es/components/button/style/themes/dnb-button-theme-sbanken.scss +6 -0
  259. package/es/components/button/style/themes/dnb-button-theme-ui.css +16 -7
  260. package/es/components/button/style/themes/dnb-button-theme-ui.min.css +1 -1
  261. package/es/components/checkbox/Checkbox.d.ts +3 -2
  262. package/es/components/checkbox/Checkbox.js +8 -5
  263. package/es/components/date-picker/DatePicker.d.ts +3 -2
  264. package/es/components/date-picker/DatePicker.js +9 -5
  265. package/es/components/dialog/style/dnb-dialog.css +3 -3
  266. package/es/components/dialog/style/dnb-dialog.min.css +1 -1
  267. package/es/components/dialog/style/dnb-dialog.scss +2 -4
  268. package/es/components/dropdown/Dropdown.d.ts +3 -2
  269. package/es/components/dropdown/Dropdown.js +8 -5
  270. package/es/components/form-row/FormRow.d.ts +2 -1
  271. package/es/components/form-row/FormRow.js +8 -5
  272. package/es/components/form-set/FormSet.d.ts +2 -1
  273. package/es/components/form-status/FormStatus.d.ts +6 -6
  274. package/es/components/form-status/FormStatus.js +13 -7
  275. package/es/components/global-error/GlobalError.d.ts +64 -62
  276. package/es/components/global-error/GlobalError.js +76 -510
  277. package/es/components/global-error/style/dnb-global-error.css +21 -31
  278. package/es/components/global-error/style/dnb-global-error.min.css +1 -1
  279. package/es/components/global-error/style/dnb-global-error.scss +19 -29
  280. package/es/components/global-status/GlobalStatus.d.ts +8 -0
  281. package/es/components/help-button/HelpButton.d.ts +1 -3
  282. package/es/components/help-button/HelpButton.js +9 -16
  283. package/es/components/icon/style/dnb-icon.css +7 -3
  284. package/es/components/icon/style/dnb-icon.min.css +1 -1
  285. package/es/components/icon/style/dnb-icon.scss +16 -10
  286. package/es/components/input/Input.d.ts +11 -5
  287. package/es/components/input/Input.js +8 -5
  288. package/es/components/input-masked/InputMasked.d.ts +3 -2
  289. package/es/components/input-masked/InputMaskedUtils.js +7 -3
  290. package/es/components/lib.d.ts +1 -1
  291. package/es/components/modal/Modal.js +21 -7
  292. package/es/components/modal/ModalContent.js +2 -2
  293. package/es/components/number-format/NumberUtils.js +5 -4
  294. package/es/components/progress-indicator/ProgressIndicator.d.ts +1 -1
  295. package/es/components/progress-indicator/ProgressIndicatorCircular.d.ts +1 -1
  296. package/es/components/progress-indicator/ProgressIndicatorLinear.d.ts +1 -1
  297. package/es/components/radio/Radio.d.ts +4 -3
  298. package/es/components/radio/Radio.js +8 -5
  299. package/es/components/radio/RadioGroup.d.ts +4 -3
  300. package/es/components/radio/RadioGroup.js +8 -5
  301. package/es/components/radio/style/dnb-radio.css +1 -0
  302. package/es/components/radio/style/dnb-radio.min.css +1 -1
  303. package/es/components/radio/style/dnb-radio.scss +1 -0
  304. package/es/components/slider/SliderInstance.js +2 -3
  305. package/es/components/slider/SliderProvider.js +2 -2
  306. package/es/components/slider/types.d.ts +2 -1
  307. package/es/components/switch/Switch.d.ts +3 -2
  308. package/es/components/switch/Switch.js +8 -5
  309. package/es/components/textarea/Textarea.d.ts +3 -2
  310. package/es/components/textarea/Textarea.js +8 -5
  311. package/es/components/timeline/TimelineItem.d.ts +2 -2
  312. package/es/components/toggle-button/ToggleButton.d.ts +3 -2
  313. package/es/components/toggle-button/ToggleButton.js +8 -5
  314. package/es/components/toggle-button/ToggleButtonGroup.d.ts +3 -2
  315. package/es/components/toggle-button/ToggleButtonGroup.js +8 -5
  316. package/es/components/tooltip/TooltipWithEvents.d.ts +2 -2
  317. package/es/components/tooltip/TooltipWithEvents.js +6 -1
  318. package/es/components/visually-hidden/style/dnb-visually-hidden.css +14 -14
  319. package/es/components/visually-hidden/style/dnb-visually-hidden.min.css +1 -1
  320. package/es/elements/Link.d.ts +1 -1
  321. package/es/elements/lib.d.ts +1 -1
  322. package/es/elements/typography/style/themes/dnb-typography-theme-sbanken.scss +16 -0
  323. package/es/elements/typography/style/themes/dnb-typography-theme-ui.scss +4 -23
  324. package/es/elements/typography/style/typography-mixins.scss +33 -0
  325. package/es/extensions/payment-card/PaymentCard.d.ts +6 -29
  326. package/es/shared/Context.d.ts +2 -0
  327. package/es/shared/Eufemia.d.ts +1 -0
  328. package/es/shared/Eufemia.js +2 -1
  329. package/es/shared/Theme.d.ts +6 -2
  330. package/es/shared/Theme.js +11 -5
  331. package/es/shared/VisibilityByTheme.js +1 -1
  332. package/es/shared/locales/en-GB.d.ts +2 -2
  333. package/es/shared/locales/en-GB.js +7 -7
  334. package/es/shared/locales/en-US.d.ts +2 -2
  335. package/es/shared/locales/index.d.ts +4 -4
  336. package/es/shared/locales/nb-NO.d.ts +2 -2
  337. package/es/shared/locales/nb-NO.js +7 -7
  338. package/es/style/core/scopes.scss +1 -1
  339. package/es/style/core/utilities.scss +17 -13
  340. package/es/style/dnb-ui-basis.css +16 -16
  341. package/es/style/dnb-ui-basis.min.css +1 -1
  342. package/es/style/dnb-ui-body.css +2 -2
  343. package/es/style/dnb-ui-body.min.css +1 -1
  344. package/es/style/dnb-ui-components.css +55 -63
  345. package/es/style/dnb-ui-components.min.css +1 -1
  346. package/es/style/dnb-ui-core.css +16 -16
  347. package/es/style/dnb-ui-core.min.css +1 -1
  348. package/es/style/themes/theme-eiendom/eiendom-theme-basis.css +5 -0
  349. package/es/style/themes/theme-eiendom/eiendom-theme-components.css +91 -81
  350. package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
  351. package/es/style/themes/theme-eiendom/eiendom-theme-elements.css +5 -0
  352. package/es/style/themes/theme-sbanken/sbanken-theme-basis.css +39 -30
  353. package/es/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
  354. package/es/style/themes/theme-sbanken/sbanken-theme-basis.scss +4 -0
  355. package/es/style/themes/theme-sbanken/sbanken-theme-components.css +155 -71
  356. package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
  357. package/es/style/themes/theme-sbanken/sbanken-theme-elements.css +36 -31
  358. package/es/style/themes/theme-sbanken/sbanken-theme-elements.min.css +1 -1
  359. package/es/style/themes/theme-sbanken/sbanken-theme-elements.scss +1 -1
  360. package/es/style/themes/theme-ui/ui-theme-basis.css +5 -0
  361. package/es/style/themes/theme-ui/ui-theme-components.css +75 -74
  362. package/es/style/themes/theme-ui/ui-theme-components.min.css +1 -1
  363. package/es/style/themes/theme-ui/ui-theme-elements.css +5 -0
  364. package/es/style/themes/theme-ui/ui-theme-tags.css +3 -3
  365. package/es/style/themes/theme-ui/ui-theme-tags.min.css +1 -1
  366. package/esm/dnb-ui-basis.min.mjs +1 -1
  367. package/esm/dnb-ui-components.min.mjs +1 -1
  368. package/esm/dnb-ui-elements.min.mjs +1 -1
  369. package/esm/dnb-ui-extensions.min.mjs +1 -1
  370. package/esm/dnb-ui-lib.min.mjs +1 -1
  371. package/extensions/payment-card/PaymentCard.d.ts +6 -29
  372. package/package.json +1 -1
  373. package/shared/Context.d.ts +2 -0
  374. package/shared/Eufemia.d.ts +1 -0
  375. package/shared/Eufemia.js +2 -1
  376. package/shared/Theme.d.ts +6 -2
  377. package/shared/Theme.js +11 -5
  378. package/shared/VisibilityByTheme.js +1 -1
  379. package/shared/locales/en-GB.d.ts +2 -2
  380. package/shared/locales/en-GB.js +7 -7
  381. package/shared/locales/en-US.d.ts +2 -2
  382. package/shared/locales/index.d.ts +4 -4
  383. package/shared/locales/nb-NO.d.ts +2 -2
  384. package/shared/locales/nb-NO.js +7 -7
  385. package/style/core/scopes.scss +1 -1
  386. package/style/core/utilities.scss +17 -13
  387. package/style/dnb-ui-basis.css +16 -16
  388. package/style/dnb-ui-basis.min.css +1 -1
  389. package/style/dnb-ui-body.css +2 -2
  390. package/style/dnb-ui-body.min.css +1 -1
  391. package/style/dnb-ui-components.css +55 -63
  392. package/style/dnb-ui-components.min.css +1 -1
  393. package/style/dnb-ui-core.css +16 -16
  394. package/style/dnb-ui-core.min.css +1 -1
  395. package/style/themes/theme-eiendom/eiendom-theme-basis.css +5 -0
  396. package/style/themes/theme-eiendom/eiendom-theme-components.css +91 -81
  397. package/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
  398. package/style/themes/theme-eiendom/eiendom-theme-elements.css +5 -0
  399. package/style/themes/theme-sbanken/sbanken-theme-basis.css +39 -30
  400. package/style/themes/theme-sbanken/sbanken-theme-basis.min.css +1 -1
  401. package/style/themes/theme-sbanken/sbanken-theme-basis.scss +4 -0
  402. package/style/themes/theme-sbanken/sbanken-theme-components.css +155 -71
  403. package/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
  404. package/style/themes/theme-sbanken/sbanken-theme-elements.css +36 -31
  405. package/style/themes/theme-sbanken/sbanken-theme-elements.min.css +1 -1
  406. package/style/themes/theme-sbanken/sbanken-theme-elements.scss +1 -1
  407. package/style/themes/theme-ui/ui-theme-basis.css +5 -0
  408. package/style/themes/theme-ui/ui-theme-components.css +75 -74
  409. package/style/themes/theme-ui/ui-theme-components.min.css +1 -1
  410. package/style/themes/theme-ui/ui-theme-elements.css +5 -0
  411. package/style/themes/theme-ui/ui-theme-tags.css +3 -3
  412. package/style/themes/theme-ui/ui-theme-tags.min.css +1 -1
  413. package/umd/dnb-ui-basis.min.js +1 -1
  414. package/umd/dnb-ui-components.min.js +1 -1
  415. package/umd/dnb-ui-elements.min.js +1 -1
  416. package/umd/dnb-ui-extensions.min.js +1 -1
  417. package/umd/dnb-ui-lib.min.js +1 -1
@@ -972,6 +972,11 @@ html[data-whatinput=keyboard] .dnb-blockquote:not(.dnb-blockquote--no-background
972
972
  color: var(--theme-color-black-80, currentColor);
973
973
  }
974
974
 
975
+ /*
976
+ * Core Styles
977
+ * Mainly only the margins are defined in here
978
+ *
979
+ */
975
980
  .dnb-p {
976
981
  color: var(--theme-color-black-80, currentColor);
977
982
  }
@@ -28,15 +28,15 @@
28
28
  */
29
29
  .dnb-core-style a {
30
30
  display: inline;
31
- padding: 0.05575em 0.125em;
31
+ padding: 0.05575em 0;
32
32
  font-size: var(--font-size-basis);
33
33
  text-decoration: underline;
34
34
  -webkit-text-decoration-color: currentcolor;
35
35
  text-decoration-color: currentcolor;
36
- text-decoration-thickness: 0.0938rem;
36
+ text-decoration-thickness: var(--anchor-underline-thickness);
37
37
  text-underline-offset: 0.25em;
38
38
  border-radius: 0;
39
- transition: background-color 200ms ease-in-out, border-radius 200ms ease-in-out;
39
+ transition: box-shadow 200ms ease-in-out, border-radius 200ms ease-in-out;
40
40
  }
41
41
  sup .dnb-core-style a, sub .dnb-core-style a {
42
42
  padding: 0 0.025em;
@@ -1 +1 @@
1
- @charset "UTF-8";.dnb-core-style a{border-radius:0;display:inline;font-size:var(--font-size-basis);padding:.05575em .125em;text-decoration:underline;-webkit-text-decoration-color:currentcolor;text-decoration-color:currentcolor;text-decoration-thickness:.0938rem;text-underline-offset:.25em;transition:background-color .2s ease-in-out,border-radius .2s ease-in-out}sub .dnb-core-style a,sup .dnb-core-style a{padding:0 .025em}.dnb-h--basis .dnb-core-style a,.dnb-h--large .dnb-core-style a,.dnb-h--medium .dnb-core-style a,.dnb-h--small .dnb-core-style a,.dnb-h--x-large .dnb-core-style a,.dnb-h--x-small .dnb-core-style a,.dnb-h--xx-large .dnb-core-style a,.dnb-lead .dnb-core-style a,.dnb-p .dnb-core-style a{font-size:inherit}.dnb-core-style a:focus{border-radius:.25em;outline:none}.dnb-core-style a:focus:not(:active){background-color:transparent;transition:none}.dnb-core-style a:focus:not(:active),.dnb-section .dnb-core-style a:focus:not(:active).dnb-anchor{text-decoration:none}html[data-whatinput=keyboard] .dnb-core-style a:focus{--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-core-style a:active,.dnb-core-style a:hover{border-radius:.25em}.dnb-core-style a:active,.dnb-core-style a:hover,.dnb-section .dnb-core-style a:active.dnb-anchor,.dnb-section .dnb-core-style a:hover.dnb-anchor{text-decoration:none}.dnb-core-style a:active{border-radius:.25em}.dnb-core-style a:active,.dnb-section .dnb-core-style a:active.dnb-anchor{text-decoration:none}.dnb-core-style a[target=_blank]:not(:empty):not(.dnb-anchor--no-icon){background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhLjc1Ljc1IDAgMCAwIDAgMS41VjB6bTQgLjc1aC43NUEuNzUuNzUgMCAwIDAgMTUgMHYuNzV6bS0uNzUgNGEuNzUuNzUgMCAwIDAgMS41IDBoLTEuNXptMS41IDRhLjc1Ljc1IDAgMCAwLTEuNSAwaDEuNXptLS43NSA2LjVWMTZjLjQxIDAgLjc1LS4zNC43NS0uNzVIMTV6bS0xNCAwSC4yNWMwIC40MS4zNC43NS43NS43NXYtLjc1ek0xIC43NVYwYS43NS43NSAwIDAgMC0uNzUuNzVIMXptNS43NS43NWEuNzUuNzUgMCAwIDAgMC0xLjV2MS41em0yLjcyIDMuNzJhLjc1Ljc1IDAgMCAwIDEuMDYgMS4wNkw5LjQ3IDUuMjJ6TTE0LjI1Ljc1djRoMS41di00aC0xLjV6bTAgOHY2LjVoMS41di02LjVoLTEuNXpNMTUgMTQuNUgxVjE2aDE0di0xLjV6bS0xMy4yNS43NVYuNzVILjI1djE0LjVoMS41ek0xIDEuNWg1Ljc1VjBIMXYxLjV6bTEwIDBoNFYwaC00djEuNXptLS40NyA0Ljc4IDUtNUwxNC40Ny4yMmwtNSA1IDEuMDYgMS4wNnoiIGZpbGw9IiMwMDcyNzIiLz48L3N2Zz4=");background-size:0;position:relative}.dnb-core-style a[target=_blank]:not(:empty):not(.dnb-anchor--no-icon):after{background-image:inherit;background-size:cover;color:inherit;content:"";display:inline-block;height:.889em;margin-left:.3em;margin-right:.125em;position:relative;transform-origin:bottom;transition:transform .3s ease-out,filter 1s ease-in-out;width:.889em}.dnb-core-style a[target=_blank]:not(:empty):not(.dnb-anchor--no-icon):active{background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhLjc1Ljc1IDAgMCAwIDAgMS41VjB6bTQgLjc1aC43NUEuNzUuNzUgMCAwIDAgMTUgMHYuNzV6bS0uNzUgNGEuNzUuNzUgMCAwIDAgMS41IDBoLTEuNXptMS41IDRhLjc1Ljc1IDAgMCAwLTEuNSAwaDEuNXptLS43NSA2LjVWMTZjLjQxIDAgLjc1LS4zNC43NS0uNzVIMTV6bS0xNCAwSC4yNWMwIC40MS4zNC43NS43NS43NXYtLjc1ek0xIC43NVYwYS43NS43NSAwIDAgMC0uNzUuNzVIMXptNS43NS43NWEuNzUuNzUgMCAwIDAgMC0xLjV2MS41em0yLjcyIDMuNzJhLjc1Ljc1IDAgMCAwIDEuMDYgMS4wNkw5LjQ3IDUuMjJ6TTE0LjI1Ljc1djRoMS41di00aC0xLjV6bTAgOHY2LjVoMS41di02LjVoLTEuNXpNMTUgMTQuNUgxVjE2aDE0di0xLjV6bS0xMy4yNS43NVYuNzVILjI1djE0LjVoMS41ek0xIDEuNWg1Ljc1VjBIMXYxLjV6bTEwIDBoNFYwaC00djEuNXptLS40NyA0Ljc4IDUtNUwxNC40Ny4yMmwtNSA1IDEuMDYgMS4wNnoiIGZpbGw9IiNhNWUxZDIiLz48L3N2Zz4=")}.dnb-core-style a[target=_blank]:not(:empty):not(.dnb-anchor--no-icon):after{top:.125em}[data-visual-test-wrapper] .dnb-core-style a{transition:none}.dnb-core-style a .dnb-icon{display:inline-block;transform:translateY(-.0625em)}.dnb-core-style img{border-radius:inherit;border-style:none;box-sizing:content-box;max-width:100%;position:relative;z-index:2}.dnb-core-style img[alt]:after{align-items:center;border-radius:inherit;content:attr(alt);display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:3}.dnb-core-style blockquote{border-radius:1rem;display:inline-block;font-size:var(--font-size-small);line-height:var(--line-height-small);padding:1.5rem;position:relative;width:auto}.dnb-core-style blockquote:not([class*=dnb-space]){margin:0}.dnb-core-style blockquote:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0E1RTFEMiIgc3Ryb2tlPSIjQTVFMUQyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJNMzcuNSAyNy41YTkgOSAwIDEgMCAwLTE4IDkgOSAwIDAgMCAwIDE4eiIvPjxwYXRoIHN0cm9rZT0iI0E1RTFEMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuNSIgZD0iTTQ2LjUgMTguNWEyMSAyMSAwIDAgMS0yMSAyMSIvPjxwYXRoIGZpbGw9IiNBNUUxRDIiIHN0cm9rZT0iI0E1RTFEMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuNSIgZD0iTTEzLjUgMjcuNWE5IDkgMCAxIDAgMC0xOCA5IDkgMCAwIDAgMCAxOHoiLz48cGF0aCBzdHJva2U9IiNBNUUxRDIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxLjUiIGQ9Ik0yMi41IDE4LjVhMjEgMjEgMCAwIDEtMjEgMjEiLz48L3N2Zz4=");background-size:cover;content:"";height:3em;left:1.5rem;position:absolute;top:2rem;width:3em}.dnb-core-style blockquote,.dnb-core-style blockquote.dnb-blockquote--left{padding-bottom:3rem;padding-left:6rem;padding-top:2rem}.dnb-core-style blockquote.dnb-blockquote--top{padding-bottom:3rem;padding-left:1.5rem;padding-top:6rem}.dnb-core-style blockquote.dnb-blockquote--no-background{background-color:transparent}.dnb-core-style blockquote .dnb-cite,.dnb-core-style blockquote .dnb-figcaption,.dnb-core-style blockquote cite,.dnb-core-style blockquote figcaption,.dnb-core-style blockquote footer{display:block;font-style:italic;font-weight:var(--font-weight-medium);line-height:var(--line-height-basis);margin-top:1rem}.dnb-core-style blockquote .dnb-cite:before,.dnb-core-style blockquote .dnb-figcaption:before,.dnb-core-style blockquote cite:before,.dnb-core-style blockquote figcaption:before,.dnb-core-style blockquote footer:before{content:"—";display:inline-block;padding-right:.5rem}.dnb-spacing .dnb-core-style blockquote .dnb-h--large,.dnb-spacing .dnb-core-style blockquote .dnb-h--medium,.dnb-spacing .dnb-core-style blockquote .dnb-h--xx-large,.dnb-spacing .dnb-core-style blockquote .dnb-lead,.dnb-spacing .dnb-core-style blockquote h1,.dnb-spacing .dnb-core-style blockquote h2,.dnb-spacing .dnb-core-style blockquote h3{margin:0}.dnb-core-style blockquote .dnb-anchor{font-size:inherit}.dnb-core-style .dnb-spacing blockquote:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style .dnb-spacing blockquote:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}.dnb-core-style .dnb-spacing blockquote p:last-child{margin-bottom:0}.dnb-core-style hr{border:0;display:flex;height:0;padding:0;position:relative}.dnb-core-style hr:not([class*=dnb-space]){margin:0}.dnb-core-style hr:after{background-color:currentcolor;border-radius:.5px;color:inherit;content:"";height:1px;left:0;position:absolute;right:0;top:0;width:100%;z-index:1}.dnb-core-style .dnb-spacing hr:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style .dnb-spacing hr:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}.dnb-core-style p{font-size:var(--font-size-basis);padding:0}.dnb-core-style p:not([class*=space__top]){margin-top:0}.dnb-core-style p:not([class*=space__bottom]){margin-bottom:0}.dnb-core-style p--lead{font-size:var(--font-size-medium);font-weight:var(--font-weight-medium);line-height:var(--line-height-lead)}.dnb-core-style p--lead>small{font-size:var(--font-size-basis);line-height:var(--line-height-basis)}.dnb-core-style p--medium,.dnb-core-style p b,.dnb-core-style p strong{font-weight:var(--font-weight-medium)}.dnb-core-style p--bold{font-weight:var(--font-weight-bold)}.dnb-core-style p__size--xx-large{font-size:var(--font-size-xx-large);line-height:var(--line-height-x-large)}.dnb-core-style p__size--x-large{font-size:var(--font-size-x-large);line-height:var(--line-height-x-large)}.dnb-core-style p__size--large{font-size:var(--font-size-large);line-height:var(--line-height-large)}.dnb-core-style p__size--basis{font-size:var(--font-size-basis);line-height:var(--line-height-basis)}.dnb-core-style p__size--medium{font-size:var(--font-size-medium);line-height:var(--line-height-medium)}.dnb-core-style p--small,.dnb-core-style p>small,.dnb-core-style p__size--small{font-size:var(--font-size-small);line-height:var(--line-height-small)}.dnb-core-style p--x-small,.dnb-core-style p__size--x-small{font-size:var(--font-size-x-small);line-height:var(--line-height-x-small)}.dnb-core-style p>cite{font-style:italic;font-weight:var(--font-weight-medium);line-height:var(--line-height-basis)}.dnb-core-style b,.dnb-core-style strong{font-weight:var(--font-weight-bold)}.dnb-core-style small{font-size:var(--font-size-small)}.dnb-core-style h1,.dnb-core-style h2,.dnb-core-style h3,.dnb-core-style h4,.dnb-core-style h5,.dnb-core-style h6{font-family:var(--font-family-default);font-weight:var(--font-weight-medium);padding:0}.dnb-core-style h1:not([class*=dnb-space]),.dnb-core-style h2:not([class*=dnb-space]),.dnb-core-style h3:not([class*=dnb-space]),.dnb-core-style h4:not([class*=dnb-space]),.dnb-core-style h5:not([class*=dnb-space]),.dnb-core-style h6:not([class*=dnb-space]){margin:0}.dnb-core-style h1 .dnb-icon--default,.dnb-core-style h2 .dnb-icon--default,.dnb-core-style h3 .dnb-icon--default,.dnb-core-style h4 .dnb-icon--default,.dnb-core-style h5 .dnb-icon--default,.dnb-core-style h6 .dnb-icon--default{font-size:1em}.dnb-core-style h1 .dnb-icon--medium,.dnb-core-style h2 .dnb-icon--medium,.dnb-core-style h3 .dnb-icon--medium,.dnb-core-style h4 .dnb-icon--medium,.dnb-core-style h5 .dnb-icon--medium,.dnb-core-style h6 .dnb-icon--medium{font-size:1.5em}.dnb-core-style h1 .dnb-anchor,.dnb-core-style h1 a,.dnb-core-style h2 .dnb-anchor,.dnb-core-style h2 a,.dnb-core-style h3 .dnb-anchor,.dnb-core-style h3 a,.dnb-core-style h4 .dnb-anchor,.dnb-core-style h4 a,.dnb-core-style h5 .dnb-anchor,.dnb-core-style h5 a,.dnb-core-style h6 .dnb-anchor,.dnb-core-style h6 a{padding-bottom:.03125rem;padding-top:0}.dnb-core-style h1{font-size:var(--font-size-xx-large);line-height:var(--line-height-x-large)}.dnb-core-style h1>small{display:block;font-size:var(--font-size-x-large);line-height:var(--line-height-large)}.dnb-core-style h2{font-size:var(--font-size-large);line-height:var(--line-height-medium)}.dnb-core-style h2>small{font-size:var(--font-size-medium);line-height:calc(var(--line-height-medium) - .125rem)}.dnb-core-style h3{font-size:var(--font-size-medium);line-height:var(--line-height-lead)}.dnb-core-style h3>small,.dnb-core-style h4{font-size:var(--font-size-basis);line-height:var(--line-height-basis)}.dnb-core-style h4>small,.dnb-core-style h5{font-size:var(--font-size-small);line-height:var(--line-height-small)}.dnb-core-style h5>small{font-size:var(--font-size-x-small);line-height:var(--line-height-small)}.dnb-core-style h6{font-size:var(--font-size-x-small);line-height:var(--line-height-x-small)}.dnb-core-style h2>small,.dnb-core-style h3>small,.dnb-core-style h4>small,.dnb-core-style h5>small,.dnb-core-style h6>small{line-height:var(--line-height-xx-small--em)}.dnb-core-style .dnb-core-style .dnb-spacing h1:not([class*=space__top]),.dnb-core-style .dnb-spacing h1:not([class*=space__top]){margin-top:3rem}.dnb-core-style .dnb-core-style .dnb-spacing h1:not([class*=space__bottom]),.dnb-core-style .dnb-spacing h1:not([class*=space__bottom]){margin-bottom:2.5rem}.dnb-core-style .dnb-core-style .dnb-spacing h2:not([class*=space__top]),.dnb-core-style .dnb-spacing h2:not([class*=space__top]){margin-top:3rem}.dnb-core-style .dnb-core-style .dnb-spacing h2:not([class*=space__bottom]),.dnb-core-style .dnb-spacing h2:not([class*=space__bottom]){margin-bottom:1rem}.dnb-core-style .dnb-core-style .dnb-spacing h3:not([class*=space__top]),.dnb-core-style .dnb-core-style .dnb-spacing h4:not([class*=space__top]),.dnb-core-style .dnb-core-style .dnb-spacing h5:not([class*=space__top]),.dnb-core-style .dnb-core-style .dnb-spacing h6:not([class*=space__top]),.dnb-core-style .dnb-spacing h3:not([class*=space__top]),.dnb-core-style .dnb-spacing h4:not([class*=space__top]),.dnb-core-style .dnb-spacing h5:not([class*=space__top]),.dnb-core-style .dnb-spacing h6:not([class*=space__top]){margin-top:2rem}.dnb-core-style .dnb-core-style .dnb-spacing h3:not([class*=space__bottom]),.dnb-core-style .dnb-core-style .dnb-spacing h4:not([class*=space__bottom]),.dnb-core-style .dnb-core-style .dnb-spacing h5:not([class*=space__bottom]),.dnb-core-style .dnb-core-style .dnb-spacing h6:not([class*=space__bottom]),.dnb-core-style .dnb-spacing h3:not([class*=space__bottom]),.dnb-core-style .dnb-spacing h4:not([class*=space__bottom]),.dnb-core-style .dnb-spacing h5:not([class*=space__bottom]),.dnb-core-style .dnb-spacing h6:not([class*=space__bottom]){margin-bottom:1rem}.dnb-core-style .dnb-core-style .dnb-spacing p:not([class*=dnb-space__top]),.dnb-core-style .dnb-spacing p:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style .dnb-core-style .dnb-spacing p:not([class*=dnb-space__bottom]),.dnb-core-style .dnb-spacing p:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}.dnb-core-style ul{font-size:var(--font-size-basis);line-height:var(--line-height-basis);padding:0}.dnb-core-style ul:not([class*=dnb-space]){margin:0}.dnb-core-style ul:not([class*=dnb-space__left]){padding-left:2rem}.dnb-core-style ul ol,.dnb-core-style ul ul{margin-bottom:1.5rem;margin-top:0;padding-left:2rem}.dnb-core-style ul--outside li,.dnb-core-style ul li{position:relative}.dnb-core-style ul--outside li:before,.dnb-core-style ul li:before{left:-10rem;padding-right:.25rem;position:absolute;text-align:right;width:10rem}.dnb-core-style ul--inside li:before{left:0;padding-right:0;position:relative;text-align:initial;width:auto}.dnb-core-style ul .dnb-anchor{font-size:inherit}.dnb-core-style ul li{display:list-item;margin-bottom:.5rem;margin-top:.5rem}.dnb-core-style .dnb-spacing ul:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style .dnb-spacing ul:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}.dnb-core-style .dnb-spacing ul>li{margin-bottom:1rem;margin-top:1rem}.dnb-core-style .dnb-spacing ul>li>p{margin-top:1rem}.dnb-core-style .dnb-spacing ul:not([class*=dnb-space]) li>ol,.dnb-core-style .dnb-spacing ul:not([class*=dnb-space]) li>ul,.dnb-core-style .dnb-spacing ul li>ol,.dnb-core-style .dnb-spacing ul li>ul{margin-top:-.5rem}.dnb-core-style ol{font-size:var(--font-size-basis);line-height:var(--line-height-basis);padding:0}.dnb-core-style ol:not([class*=dnb-space]){margin:0}.dnb-core-style ol:not([class*=dnb-space__left]){padding-left:2rem}.dnb-core-style ol li{display:list-item;margin-bottom:.5rem;margin-top:.5rem}.dnb-core-style ol ol,.dnb-core-style ol ul{margin-bottom:1.5rem;margin-top:0;padding-left:2rem}.dnb-core-style ol--outside li,.dnb-core-style ol li{position:relative}.dnb-core-style ol--outside li:before,.dnb-core-style ol li:before{left:-10rem;padding-right:.25rem;position:absolute;text-align:right;width:10rem}.dnb-core-style ol--inside li:before{left:0;padding-right:0;position:relative;text-align:initial;width:auto}.dnb-core-style ol .dnb-anchor{font-size:inherit}.dnb-core-style ol li{list-style-type:decimal}.dnb-core-style ol--nested,.dnb-core-style ol--nested ol{counter-reset:item}.dnb-core-style ol--nested li{display:block}.dnb-core-style ol--nested li:before{content:counters(item,".") ". ";counter-increment:item}.dnb-core-style ol--nested li li:before{content:counters(item,".") " ";counter-increment:item}.dnb-core-style ol[type] li{display:list-item;list-style-type:inherit}.dnb-core-style ol[type] li:before,.dnb-core-style ol[type] li li:before{content:none}.dnb-core-style .dnb-spacing ol:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style .dnb-spacing ol:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}.dnb-core-style .dnb-spacing ol>li{margin-bottom:1rem;margin-top:1rem}.dnb-core-style .dnb-spacing ol>li>p{margin-top:1rem}.dnb-core-style .dnb-spacing ol:not([class*=dnb-space]) li>ol,.dnb-core-style .dnb-spacing ol:not([class*=dnb-space]) li>ul,.dnb-core-style .dnb-spacing ol li>ol,.dnb-core-style .dnb-spacing ol li>ul{margin-top:-.5rem}.dnb-core-style dl{font-size:var(--font-size-basis);line-height:var(--line-height-basis);padding:0}.dnb-core-style dl:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style dl:not([class*=dnb-space__bottom]){margin-bottom:0}.dnb-core-style dl dt{font-weight:var(--font-weight-medium);margin-top:1rem;padding:0}.dnb-core-style dl dd~dt{margin-top:1.5rem}.dnb-core-style dl dd{margin:.5rem 0 1rem;padding:0}.dnb-core-style dl:not([class*=dnb-space])>dd>dl,.dnb-core-style dl>dd>dl{margin-left:2rem;margin-top:1.5rem}@media screen and (min-width:40em){.dnb-core-style dl__direction--horizontal{display:flex;flex-wrap:wrap}.dnb-core-style dl__direction--horizontal dt{margin-right:1rem;max-width:40%}.dnb-core-style dl__direction--horizontal dd{width:calc(60% - 1rem)}.dnb-core-style dl__direction--horizontal dd,.dnb-core-style dl__direction--horizontal dd~dt,.dnb-core-style dl__direction--horizontal dt{margin-bottom:0;margin-top:.5rem}.dnb-core-style dl__direction--horizontal dd:first-of-type,.dnb-core-style dl__direction--horizontal dd~dt:first-of-type,.dnb-core-style dl__direction--horizontal dt:first-of-type{margin-top:0}.dnb-core-style dl dd.dnb-core-style dl__item{flex-basis:100%;height:0;margin:0}}.dnb-core-style .dnb-spacing dl:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style .dnb-spacing dl:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}.dnb-core-style label{cursor:pointer;overflow-wrap:break-word}.dnb-core-style label[disabled]{cursor:not-allowed}.dnb-core-style code{border-radius:.1875em;color:inherit;display:inline-block;font-size:inherit;line-height:var(--line-height-xx-small--em);padding:.25em;text-decoration:inherit}del .dnb-core-style code{text-decoration:line-through}.dnb-core-style code:not([class*=dnb-space]){margin:-.25em 0}.dnb-core-style pre{word-wrap:normal;border-radius:.5rem;display:block;font-family:var(--font-family-monospace);font-size:inherit;-webkit-hyphens:none;hyphens:none;outline:none;overflow:auto;padding:1rem;-moz-tab-size:2;tab-size:2;text-align:left;text-shadow:none;vertical-align:baseline;white-space:pre;word-break:normal;word-spacing:normal}.dnb-core-style pre:not([class*=dnb-space]){margin:0}.dnb-core-style pre pre{padding:1rem}.dnb-core-style pre .dnb-spacing pre:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style pre .dnb-spacing pre:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}
1
+ @charset "UTF-8";.dnb-core-style a{border-radius:0;display:inline;font-size:var(--font-size-basis);padding:.05575em 0;text-decoration:underline;-webkit-text-decoration-color:currentcolor;text-decoration-color:currentcolor;text-decoration-thickness:var(--anchor-underline-thickness);text-underline-offset:.25em;transition:box-shadow .2s ease-in-out,border-radius .2s ease-in-out}sub .dnb-core-style a,sup .dnb-core-style a{padding:0 .025em}.dnb-h--basis .dnb-core-style a,.dnb-h--large .dnb-core-style a,.dnb-h--medium .dnb-core-style a,.dnb-h--small .dnb-core-style a,.dnb-h--x-large .dnb-core-style a,.dnb-h--x-small .dnb-core-style a,.dnb-h--xx-large .dnb-core-style a,.dnb-lead .dnb-core-style a,.dnb-p .dnb-core-style a{font-size:inherit}.dnb-core-style a:focus{border-radius:.25em;outline:none}.dnb-core-style a:focus:not(:active){background-color:transparent;transition:none}.dnb-core-style a:focus:not(:active),.dnb-section .dnb-core-style a:focus:not(:active).dnb-anchor{text-decoration:none}html[data-whatinput=keyboard] .dnb-core-style a:focus{--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-core-style a:active,.dnb-core-style a:hover{border-radius:.25em}.dnb-core-style a:active,.dnb-core-style a:hover,.dnb-section .dnb-core-style a:active.dnb-anchor,.dnb-section .dnb-core-style a:hover.dnb-anchor{text-decoration:none}.dnb-core-style a:active{border-radius:.25em}.dnb-core-style a:active,.dnb-section .dnb-core-style a:active.dnb-anchor{text-decoration:none}.dnb-core-style a[target=_blank]:not(:empty):not(.dnb-anchor--no-icon){background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhLjc1Ljc1IDAgMCAwIDAgMS41VjB6bTQgLjc1aC43NUEuNzUuNzUgMCAwIDAgMTUgMHYuNzV6bS0uNzUgNGEuNzUuNzUgMCAwIDAgMS41IDBoLTEuNXptMS41IDRhLjc1Ljc1IDAgMCAwLTEuNSAwaDEuNXptLS43NSA2LjVWMTZjLjQxIDAgLjc1LS4zNC43NS0uNzVIMTV6bS0xNCAwSC4yNWMwIC40MS4zNC43NS43NS43NXYtLjc1ek0xIC43NVYwYS43NS43NSAwIDAgMC0uNzUuNzVIMXptNS43NS43NWEuNzUuNzUgMCAwIDAgMC0xLjV2MS41em0yLjcyIDMuNzJhLjc1Ljc1IDAgMCAwIDEuMDYgMS4wNkw5LjQ3IDUuMjJ6TTE0LjI1Ljc1djRoMS41di00aC0xLjV6bTAgOHY2LjVoMS41di02LjVoLTEuNXpNMTUgMTQuNUgxVjE2aDE0di0xLjV6bS0xMy4yNS43NVYuNzVILjI1djE0LjVoMS41ek0xIDEuNWg1Ljc1VjBIMXYxLjV6bTEwIDBoNFYwaC00djEuNXptLS40NyA0Ljc4IDUtNUwxNC40Ny4yMmwtNSA1IDEuMDYgMS4wNnoiIGZpbGw9IiMwMDcyNzIiLz48L3N2Zz4=");background-size:0;position:relative}.dnb-core-style a[target=_blank]:not(:empty):not(.dnb-anchor--no-icon):after{background-image:inherit;background-size:cover;color:inherit;content:"";display:inline-block;height:.889em;margin-left:.3em;margin-right:.125em;position:relative;transform-origin:bottom;transition:transform .3s ease-out,filter 1s ease-in-out;width:.889em}.dnb-core-style a[target=_blank]:not(:empty):not(.dnb-anchor--no-icon):active{background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhLjc1Ljc1IDAgMCAwIDAgMS41VjB6bTQgLjc1aC43NUEuNzUuNzUgMCAwIDAgMTUgMHYuNzV6bS0uNzUgNGEuNzUuNzUgMCAwIDAgMS41IDBoLTEuNXptMS41IDRhLjc1Ljc1IDAgMCAwLTEuNSAwaDEuNXptLS43NSA2LjVWMTZjLjQxIDAgLjc1LS4zNC43NS0uNzVIMTV6bS0xNCAwSC4yNWMwIC40MS4zNC43NS43NS43NXYtLjc1ek0xIC43NVYwYS43NS43NSAwIDAgMC0uNzUuNzVIMXptNS43NS43NWEuNzUuNzUgMCAwIDAgMC0xLjV2MS41em0yLjcyIDMuNzJhLjc1Ljc1IDAgMCAwIDEuMDYgMS4wNkw5LjQ3IDUuMjJ6TTE0LjI1Ljc1djRoMS41di00aC0xLjV6bTAgOHY2LjVoMS41di02LjVoLTEuNXpNMTUgMTQuNUgxVjE2aDE0di0xLjV6bS0xMy4yNS43NVYuNzVILjI1djE0LjVoMS41ek0xIDEuNWg1Ljc1VjBIMXYxLjV6bTEwIDBoNFYwaC00djEuNXptLS40NyA0Ljc4IDUtNUwxNC40Ny4yMmwtNSA1IDEuMDYgMS4wNnoiIGZpbGw9IiNhNWUxZDIiLz48L3N2Zz4=")}.dnb-core-style a[target=_blank]:not(:empty):not(.dnb-anchor--no-icon):after{top:.125em}[data-visual-test-wrapper] .dnb-core-style a{transition:none}.dnb-core-style a .dnb-icon{display:inline-block;transform:translateY(-.0625em)}.dnb-core-style img{border-radius:inherit;border-style:none;box-sizing:content-box;max-width:100%;position:relative;z-index:2}.dnb-core-style img[alt]:after{align-items:center;border-radius:inherit;content:attr(alt);display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:3}.dnb-core-style blockquote{border-radius:1rem;display:inline-block;font-size:var(--font-size-small);line-height:var(--line-height-small);padding:1.5rem;position:relative;width:auto}.dnb-core-style blockquote:not([class*=dnb-space]){margin:0}.dnb-core-style blockquote:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0E1RTFEMiIgc3Ryb2tlPSIjQTVFMUQyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJNMzcuNSAyNy41YTkgOSAwIDEgMCAwLTE4IDkgOSAwIDAgMCAwIDE4eiIvPjxwYXRoIHN0cm9rZT0iI0E1RTFEMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuNSIgZD0iTTQ2LjUgMTguNWEyMSAyMSAwIDAgMS0yMSAyMSIvPjxwYXRoIGZpbGw9IiNBNUUxRDIiIHN0cm9rZT0iI0E1RTFEMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuNSIgZD0iTTEzLjUgMjcuNWE5IDkgMCAxIDAgMC0xOCA5IDkgMCAwIDAgMCAxOHoiLz48cGF0aCBzdHJva2U9IiNBNUUxRDIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxLjUiIGQ9Ik0yMi41IDE4LjVhMjEgMjEgMCAwIDEtMjEgMjEiLz48L3N2Zz4=");background-size:cover;content:"";height:3em;left:1.5rem;position:absolute;top:2rem;width:3em}.dnb-core-style blockquote,.dnb-core-style blockquote.dnb-blockquote--left{padding-bottom:3rem;padding-left:6rem;padding-top:2rem}.dnb-core-style blockquote.dnb-blockquote--top{padding-bottom:3rem;padding-left:1.5rem;padding-top:6rem}.dnb-core-style blockquote.dnb-blockquote--no-background{background-color:transparent}.dnb-core-style blockquote .dnb-cite,.dnb-core-style blockquote .dnb-figcaption,.dnb-core-style blockquote cite,.dnb-core-style blockquote figcaption,.dnb-core-style blockquote footer{display:block;font-style:italic;font-weight:var(--font-weight-medium);line-height:var(--line-height-basis);margin-top:1rem}.dnb-core-style blockquote .dnb-cite:before,.dnb-core-style blockquote .dnb-figcaption:before,.dnb-core-style blockquote cite:before,.dnb-core-style blockquote figcaption:before,.dnb-core-style blockquote footer:before{content:"—";display:inline-block;padding-right:.5rem}.dnb-spacing .dnb-core-style blockquote .dnb-h--large,.dnb-spacing .dnb-core-style blockquote .dnb-h--medium,.dnb-spacing .dnb-core-style blockquote .dnb-h--xx-large,.dnb-spacing .dnb-core-style blockquote .dnb-lead,.dnb-spacing .dnb-core-style blockquote h1,.dnb-spacing .dnb-core-style blockquote h2,.dnb-spacing .dnb-core-style blockquote h3{margin:0}.dnb-core-style blockquote .dnb-anchor{font-size:inherit}.dnb-core-style .dnb-spacing blockquote:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style .dnb-spacing blockquote:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}.dnb-core-style .dnb-spacing blockquote p:last-child{margin-bottom:0}.dnb-core-style hr{border:0;display:flex;height:0;padding:0;position:relative}.dnb-core-style hr:not([class*=dnb-space]){margin:0}.dnb-core-style hr:after{background-color:currentcolor;border-radius:.5px;color:inherit;content:"";height:1px;left:0;position:absolute;right:0;top:0;width:100%;z-index:1}.dnb-core-style .dnb-spacing hr:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style .dnb-spacing hr:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}.dnb-core-style p{font-size:var(--font-size-basis);padding:0}.dnb-core-style p:not([class*=space__top]){margin-top:0}.dnb-core-style p:not([class*=space__bottom]){margin-bottom:0}.dnb-core-style p--lead{font-size:var(--font-size-medium);font-weight:var(--font-weight-medium);line-height:var(--line-height-lead)}.dnb-core-style p--lead>small{font-size:var(--font-size-basis);line-height:var(--line-height-basis)}.dnb-core-style p--medium,.dnb-core-style p b,.dnb-core-style p strong{font-weight:var(--font-weight-medium)}.dnb-core-style p--bold{font-weight:var(--font-weight-bold)}.dnb-core-style p__size--xx-large{font-size:var(--font-size-xx-large);line-height:var(--line-height-x-large)}.dnb-core-style p__size--x-large{font-size:var(--font-size-x-large);line-height:var(--line-height-x-large)}.dnb-core-style p__size--large{font-size:var(--font-size-large);line-height:var(--line-height-large)}.dnb-core-style p__size--basis{font-size:var(--font-size-basis);line-height:var(--line-height-basis)}.dnb-core-style p__size--medium{font-size:var(--font-size-medium);line-height:var(--line-height-medium)}.dnb-core-style p--small,.dnb-core-style p>small,.dnb-core-style p__size--small{font-size:var(--font-size-small);line-height:var(--line-height-small)}.dnb-core-style p--x-small,.dnb-core-style p__size--x-small{font-size:var(--font-size-x-small);line-height:var(--line-height-x-small)}.dnb-core-style p>cite{font-style:italic;font-weight:var(--font-weight-medium);line-height:var(--line-height-basis)}.dnb-core-style b,.dnb-core-style strong{font-weight:var(--font-weight-bold)}.dnb-core-style small{font-size:var(--font-size-small)}.dnb-core-style h1,.dnb-core-style h2,.dnb-core-style h3,.dnb-core-style h4,.dnb-core-style h5,.dnb-core-style h6{font-family:var(--font-family-default);font-weight:var(--font-weight-medium);padding:0}.dnb-core-style h1:not([class*=dnb-space]),.dnb-core-style h2:not([class*=dnb-space]),.dnb-core-style h3:not([class*=dnb-space]),.dnb-core-style h4:not([class*=dnb-space]),.dnb-core-style h5:not([class*=dnb-space]),.dnb-core-style h6:not([class*=dnb-space]){margin:0}.dnb-core-style h1 .dnb-icon--default,.dnb-core-style h2 .dnb-icon--default,.dnb-core-style h3 .dnb-icon--default,.dnb-core-style h4 .dnb-icon--default,.dnb-core-style h5 .dnb-icon--default,.dnb-core-style h6 .dnb-icon--default{font-size:1em}.dnb-core-style h1 .dnb-icon--medium,.dnb-core-style h2 .dnb-icon--medium,.dnb-core-style h3 .dnb-icon--medium,.dnb-core-style h4 .dnb-icon--medium,.dnb-core-style h5 .dnb-icon--medium,.dnb-core-style h6 .dnb-icon--medium{font-size:1.5em}.dnb-core-style h1 .dnb-anchor,.dnb-core-style h1 a,.dnb-core-style h2 .dnb-anchor,.dnb-core-style h2 a,.dnb-core-style h3 .dnb-anchor,.dnb-core-style h3 a,.dnb-core-style h4 .dnb-anchor,.dnb-core-style h4 a,.dnb-core-style h5 .dnb-anchor,.dnb-core-style h5 a,.dnb-core-style h6 .dnb-anchor,.dnb-core-style h6 a{padding-bottom:.03125rem;padding-top:0}.dnb-core-style h1{font-size:var(--font-size-xx-large);line-height:var(--line-height-x-large)}.dnb-core-style h1>small{display:block;font-size:var(--font-size-x-large);line-height:var(--line-height-large)}.dnb-core-style h2{font-size:var(--font-size-large);line-height:var(--line-height-medium)}.dnb-core-style h2>small{font-size:var(--font-size-medium);line-height:calc(var(--line-height-medium) - .125rem)}.dnb-core-style h3{font-size:var(--font-size-medium);line-height:var(--line-height-lead)}.dnb-core-style h3>small,.dnb-core-style h4{font-size:var(--font-size-basis);line-height:var(--line-height-basis)}.dnb-core-style h4>small,.dnb-core-style h5{font-size:var(--font-size-small);line-height:var(--line-height-small)}.dnb-core-style h5>small{font-size:var(--font-size-x-small);line-height:var(--line-height-small)}.dnb-core-style h6{font-size:var(--font-size-x-small);line-height:var(--line-height-x-small)}.dnb-core-style h2>small,.dnb-core-style h3>small,.dnb-core-style h4>small,.dnb-core-style h5>small,.dnb-core-style h6>small{line-height:var(--line-height-xx-small--em)}.dnb-core-style .dnb-core-style .dnb-spacing h1:not([class*=space__top]),.dnb-core-style .dnb-spacing h1:not([class*=space__top]){margin-top:3rem}.dnb-core-style .dnb-core-style .dnb-spacing h1:not([class*=space__bottom]),.dnb-core-style .dnb-spacing h1:not([class*=space__bottom]){margin-bottom:2.5rem}.dnb-core-style .dnb-core-style .dnb-spacing h2:not([class*=space__top]),.dnb-core-style .dnb-spacing h2:not([class*=space__top]){margin-top:3rem}.dnb-core-style .dnb-core-style .dnb-spacing h2:not([class*=space__bottom]),.dnb-core-style .dnb-spacing h2:not([class*=space__bottom]){margin-bottom:1rem}.dnb-core-style .dnb-core-style .dnb-spacing h3:not([class*=space__top]),.dnb-core-style .dnb-core-style .dnb-spacing h4:not([class*=space__top]),.dnb-core-style .dnb-core-style .dnb-spacing h5:not([class*=space__top]),.dnb-core-style .dnb-core-style .dnb-spacing h6:not([class*=space__top]),.dnb-core-style .dnb-spacing h3:not([class*=space__top]),.dnb-core-style .dnb-spacing h4:not([class*=space__top]),.dnb-core-style .dnb-spacing h5:not([class*=space__top]),.dnb-core-style .dnb-spacing h6:not([class*=space__top]){margin-top:2rem}.dnb-core-style .dnb-core-style .dnb-spacing h3:not([class*=space__bottom]),.dnb-core-style .dnb-core-style .dnb-spacing h4:not([class*=space__bottom]),.dnb-core-style .dnb-core-style .dnb-spacing h5:not([class*=space__bottom]),.dnb-core-style .dnb-core-style .dnb-spacing h6:not([class*=space__bottom]),.dnb-core-style .dnb-spacing h3:not([class*=space__bottom]),.dnb-core-style .dnb-spacing h4:not([class*=space__bottom]),.dnb-core-style .dnb-spacing h5:not([class*=space__bottom]),.dnb-core-style .dnb-spacing h6:not([class*=space__bottom]){margin-bottom:1rem}.dnb-core-style .dnb-core-style .dnb-spacing p:not([class*=dnb-space__top]),.dnb-core-style .dnb-spacing p:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style .dnb-core-style .dnb-spacing p:not([class*=dnb-space__bottom]),.dnb-core-style .dnb-spacing p:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}.dnb-core-style ul{font-size:var(--font-size-basis);line-height:var(--line-height-basis);padding:0}.dnb-core-style ul:not([class*=dnb-space]){margin:0}.dnb-core-style ul:not([class*=dnb-space__left]){padding-left:2rem}.dnb-core-style ul ol,.dnb-core-style ul ul{margin-bottom:1.5rem;margin-top:0;padding-left:2rem}.dnb-core-style ul--outside li,.dnb-core-style ul li{position:relative}.dnb-core-style ul--outside li:before,.dnb-core-style ul li:before{left:-10rem;padding-right:.25rem;position:absolute;text-align:right;width:10rem}.dnb-core-style ul--inside li:before{left:0;padding-right:0;position:relative;text-align:initial;width:auto}.dnb-core-style ul .dnb-anchor{font-size:inherit}.dnb-core-style ul li{display:list-item;margin-bottom:.5rem;margin-top:.5rem}.dnb-core-style .dnb-spacing ul:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style .dnb-spacing ul:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}.dnb-core-style .dnb-spacing ul>li{margin-bottom:1rem;margin-top:1rem}.dnb-core-style .dnb-spacing ul>li>p{margin-top:1rem}.dnb-core-style .dnb-spacing ul:not([class*=dnb-space]) li>ol,.dnb-core-style .dnb-spacing ul:not([class*=dnb-space]) li>ul,.dnb-core-style .dnb-spacing ul li>ol,.dnb-core-style .dnb-spacing ul li>ul{margin-top:-.5rem}.dnb-core-style ol{font-size:var(--font-size-basis);line-height:var(--line-height-basis);padding:0}.dnb-core-style ol:not([class*=dnb-space]){margin:0}.dnb-core-style ol:not([class*=dnb-space__left]){padding-left:2rem}.dnb-core-style ol li{display:list-item;margin-bottom:.5rem;margin-top:.5rem}.dnb-core-style ol ol,.dnb-core-style ol ul{margin-bottom:1.5rem;margin-top:0;padding-left:2rem}.dnb-core-style ol--outside li,.dnb-core-style ol li{position:relative}.dnb-core-style ol--outside li:before,.dnb-core-style ol li:before{left:-10rem;padding-right:.25rem;position:absolute;text-align:right;width:10rem}.dnb-core-style ol--inside li:before{left:0;padding-right:0;position:relative;text-align:initial;width:auto}.dnb-core-style ol .dnb-anchor{font-size:inherit}.dnb-core-style ol li{list-style-type:decimal}.dnb-core-style ol--nested,.dnb-core-style ol--nested ol{counter-reset:item}.dnb-core-style ol--nested li{display:block}.dnb-core-style ol--nested li:before{content:counters(item,".") ". ";counter-increment:item}.dnb-core-style ol--nested li li:before{content:counters(item,".") " ";counter-increment:item}.dnb-core-style ol[type] li{display:list-item;list-style-type:inherit}.dnb-core-style ol[type] li:before,.dnb-core-style ol[type] li li:before{content:none}.dnb-core-style .dnb-spacing ol:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style .dnb-spacing ol:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}.dnb-core-style .dnb-spacing ol>li{margin-bottom:1rem;margin-top:1rem}.dnb-core-style .dnb-spacing ol>li>p{margin-top:1rem}.dnb-core-style .dnb-spacing ol:not([class*=dnb-space]) li>ol,.dnb-core-style .dnb-spacing ol:not([class*=dnb-space]) li>ul,.dnb-core-style .dnb-spacing ol li>ol,.dnb-core-style .dnb-spacing ol li>ul{margin-top:-.5rem}.dnb-core-style dl{font-size:var(--font-size-basis);line-height:var(--line-height-basis);padding:0}.dnb-core-style dl:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style dl:not([class*=dnb-space__bottom]){margin-bottom:0}.dnb-core-style dl dt{font-weight:var(--font-weight-medium);margin-top:1rem;padding:0}.dnb-core-style dl dd~dt{margin-top:1.5rem}.dnb-core-style dl dd{margin:.5rem 0 1rem;padding:0}.dnb-core-style dl:not([class*=dnb-space])>dd>dl,.dnb-core-style dl>dd>dl{margin-left:2rem;margin-top:1.5rem}@media screen and (min-width:40em){.dnb-core-style dl__direction--horizontal{display:flex;flex-wrap:wrap}.dnb-core-style dl__direction--horizontal dt{margin-right:1rem;max-width:40%}.dnb-core-style dl__direction--horizontal dd{width:calc(60% - 1rem)}.dnb-core-style dl__direction--horizontal dd,.dnb-core-style dl__direction--horizontal dd~dt,.dnb-core-style dl__direction--horizontal dt{margin-bottom:0;margin-top:.5rem}.dnb-core-style dl__direction--horizontal dd:first-of-type,.dnb-core-style dl__direction--horizontal dd~dt:first-of-type,.dnb-core-style dl__direction--horizontal dt:first-of-type{margin-top:0}.dnb-core-style dl dd.dnb-core-style dl__item{flex-basis:100%;height:0;margin:0}}.dnb-core-style .dnb-spacing dl:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style .dnb-spacing dl:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}.dnb-core-style label{cursor:pointer;overflow-wrap:break-word}.dnb-core-style label[disabled]{cursor:not-allowed}.dnb-core-style code{border-radius:.1875em;color:inherit;display:inline-block;font-size:inherit;line-height:var(--line-height-xx-small--em);padding:.25em;text-decoration:inherit}del .dnb-core-style code{text-decoration:line-through}.dnb-core-style code:not([class*=dnb-space]){margin:-.25em 0}.dnb-core-style pre{word-wrap:normal;border-radius:.5rem;display:block;font-family:var(--font-family-monospace);font-size:inherit;-webkit-hyphens:none;hyphens:none;outline:none;overflow:auto;padding:1rem;-moz-tab-size:2;tab-size:2;text-align:left;text-shadow:none;vertical-align:baseline;white-space:pre;word-break:normal;word-spacing:normal}.dnb-core-style pre:not([class*=dnb-space]){margin:0}.dnb-core-style pre pre{padding:1rem}.dnb-core-style pre .dnb-spacing pre:not([class*=dnb-space__top]){margin-top:0}.dnb-core-style pre .dnb-spacing pre:not([class*=dnb-space__bottom]){margin-bottom:1.5rem}
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import { ElementIsType } from '../../elements/Element';
7
+ import type { IconIcon } from '../icon/Icon';
7
8
  import type { SkeletonShow } from '../skeleton/Skeleton';
8
9
  import type { SpacingProps } from '../../shared/types';
9
10
  export declare type AnchorProps = {
@@ -13,6 +14,8 @@ export declare type AnchorProps = {
13
14
  targetBlankTitle?: string;
14
15
  target?: string;
15
16
  tooltip?: React.ReactNode;
17
+ icon?: IconIcon;
18
+ iconPosition?: 'left' | 'right';
16
19
  skeleton?: SkeletonShow;
17
20
  omitClass?: boolean;
18
21
  innerRef?: React.RefObject<HTMLAnchorElement>;
@@ -23,5 +26,6 @@ export declare type AnchorAllProps = AnchorProps & React.HTMLProps<HTMLAnchorEle
23
26
  export declare function AnchorInstance(localProps: AnchorAllProps): JSX.Element;
24
27
  declare const Anchor: React.ForwardRefExoticComponent<Pick<AnchorProps & React.HTMLProps<HTMLAnchorElement> & import("../space/types").SpacingElementProps & {
25
28
  space?: import("../space/types").SpaceType | import("../space/types").SpacingElementProps;
26
- }, "aria-hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "accessKey" | "key" | "value" | "space" | "top" | "right" | "bottom" | "left" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "className" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "list" | "tooltip" | "step" | "shape" | "skeleton" | "as" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "target" | "type" | "useMap" | "width" | "wmode" | "wrap" | "to" | "element" | "targetBlankTitle" | "omitClass" | "inner_ref"> & React.RefAttributes<HTMLAnchorElement>>;
29
+ }, "aria-hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "accessKey" | "key" | "value" | "space" | "top" | "right" | "bottom" | "left" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "className" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "list" | "tooltip" | "step" | "shape" | "skeleton" | "as" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "target" | "type" | "useMap" | "width" | "wmode" | "wrap" | "to" | "icon" | "element" | "targetBlankTitle" | "iconPosition" | "omitClass" | "inner_ref"> & React.RefAttributes<HTMLAnchorElement>>;
27
30
  export default Anchor;
31
+ export declare function scrollToHashHandler(e: React.MouseEvent<HTMLAnchorElement, MouseEvent>): void;
@@ -1,11 +1,13 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- const _excluded = ["id", "element", "className", "children", "tooltip", "omitClass", "innerRef", "targetBlankTitle"];
3
+ const _excluded = ["id", "element", "className", "children", "tooltip", "icon", "iconPosition", "omitClass", "innerRef", "targetBlankTitle"];
4
4
  import React from 'react';
5
5
  import classnames from 'classnames';
6
6
  import E from '../../elements/Element';
7
7
  import Context from '../../shared/Context';
8
8
  import { makeUniqueId, extendPropsWithContext } from '../../shared/component-helper';
9
+ import { getOffsetTop } from '../../shared/helpers';
10
+ import IconPrimary from '../icon-primary/IconPrimary';
9
11
  import Tooltip from '../tooltip/Tooltip';
10
12
  const defaultProps = {};
11
13
  export function AnchorInstance(localProps) {
@@ -29,6 +31,8 @@ export function AnchorInstance(localProps) {
29
31
  className,
30
32
  children,
31
33
  tooltip,
34
+ icon,
35
+ iconPosition = 'left',
32
36
  omitClass,
33
37
  innerRef,
34
38
  targetBlankTitle
@@ -39,13 +43,28 @@ export function AnchorInstance(localProps) {
39
43
  const internalId = id || 'id' + makeUniqueId();
40
44
  const showTooltip = tooltip || allProps.target === '_blank' && !allProps.title;
41
45
  const as = element || 'a';
46
+ let prefix;
47
+ let suffix;
48
+
49
+ if (icon) {
50
+ const iconNode = typeof icon === 'string' ? React.createElement(IconPrimary, {
51
+ icon: icon
52
+ }) : icon;
53
+
54
+ if (iconPosition === 'left') {
55
+ prefix = React.createElement(React.Fragment, null, iconNode, " ");
56
+ } else if (iconPosition === 'right') {
57
+ suffix = React.createElement(React.Fragment, null, " ", iconNode);
58
+ }
59
+ }
60
+
42
61
  return React.createElement(React.Fragment, null, React.createElement(E, _extends({
43
62
  as: as,
44
63
  id: id,
45
- className: classnames(className, omitClass !== true && 'dnb-anchor', allProps.target === '_blank' && typeof children !== 'string' && 'dnb-anchor--no-icon')
64
+ className: classnames(className, omitClass !== true && 'dnb-anchor', typeof children !== 'string' && 'dnb-anchor--has-icon', prefix && 'dnb-anchor--icon-left', suffix && 'dnb-anchor--icon-right', allProps.target === '_blank' && (typeof children !== 'string' || suffix) && 'dnb-anchor--no-icon')
46
65
  }, attributes, {
47
66
  innerRef: innerRef
48
- }), children), showTooltip && React.createElement(Tooltip, {
67
+ }), prefix, children, suffix), showTooltip && React.createElement(Tooltip, {
49
68
  showDelay: 100,
50
69
  id: internalId + '-tooltip',
51
70
  targetElement: innerRef,
@@ -57,4 +76,30 @@ const Anchor = React.forwardRef((props, ref) => {
57
76
  innerRef: ref
58
77
  }, props));
59
78
  });
60
- export default Anchor;
79
+ export default Anchor;
80
+ export function scrollToHashHandler(e) {
81
+ var _element$pathname;
82
+
83
+ const element = e.currentTarget;
84
+ const href = element.getAttribute('href');
85
+
86
+ if (typeof document === 'undefined' || !href.includes('#')) {
87
+ return;
88
+ }
89
+
90
+ const isSamePath = href.startsWith('#') || window.location.href.includes((_element$pathname = element.pathname) === null || _element$pathname === void 0 ? void 0 : _element$pathname.replace(/\/$/, ''));
91
+
92
+ if (isSamePath) {
93
+ const id = href.split(/#/g).reverse()[0];
94
+ const anchorElem = document.getElementById(id);
95
+
96
+ if (anchorElem instanceof HTMLElement) {
97
+ e.preventDefault();
98
+ const scrollPadding = parseFloat(window.getComputedStyle(document.documentElement).scrollPaddingTop);
99
+ const top = getOffsetTop(anchorElem) - scrollPadding || 0;
100
+ window.scroll({
101
+ top
102
+ });
103
+ }
104
+ }
105
+ }
@@ -9,12 +9,12 @@
9
9
  // make sure we have always `display: inline;` as inline-block is breaking the border-bottom
10
10
  display: inline;
11
11
 
12
- padding: 0.05575em 0.125em; // the total body height will then be 24px if font-size is 18px
12
+ padding: 0.05575em 0; // the total body height will then be 24px if font-size is 18px
13
13
 
14
14
  font-size: var(--font-size-basis);
15
15
  text-decoration: underline;
16
16
  text-decoration-color: currentcolor;
17
- text-decoration-thickness: 0.0938rem;
17
+ text-decoration-thickness: var(--anchor-underline-thickness);
18
18
  text-underline-offset: 0.25em;
19
19
  border-radius: 0;
20
20
 
@@ -107,6 +107,11 @@
107
107
  border-radius: 0.25em;
108
108
  }
109
109
 
110
+ @mixin anchorBackground($color) {
111
+ box-shadow: inset 100vw 100vw 0 0 $color, -0.125em 0 0 0 $color,
112
+ 0.125em 0 0 0 $color;
113
+ }
114
+
110
115
  // other styles
111
116
  @mixin useAnchorContrastStyle($contrastColor: var(--color-emerald-green)) {
112
117
  color: var(--color-white);
@@ -197,8 +202,7 @@
197
202
  }
198
203
  }
199
204
 
200
- transition: background-color 200ms ease-in-out,
201
- border-radius 200ms ease-in-out;
205
+ transition: box-shadow 200ms ease-in-out, border-radius 200ms ease-in-out;
202
206
 
203
207
  [data-visual-test-wrapper] & {
204
208
  transition: none;
@@ -20,16 +20,17 @@ button.dnb-anchor {
20
20
  }
21
21
 
22
22
  .dnb-anchor {
23
+ --anchor-underline-thickness: 0.0938rem;
23
24
  display: inline;
24
- padding: 0.05575em 0.125em;
25
+ padding: 0.05575em 0;
25
26
  font-size: var(--font-size-basis);
26
27
  text-decoration: underline;
27
28
  -webkit-text-decoration-color: currentcolor;
28
29
  text-decoration-color: currentcolor;
29
- text-decoration-thickness: 0.0938rem;
30
+ text-decoration-thickness: var(--anchor-underline-thickness);
30
31
  text-underline-offset: 0.25em;
31
32
  border-radius: 0;
32
- transition: background-color 200ms ease-in-out, border-radius 200ms ease-in-out;
33
+ transition: box-shadow 200ms ease-in-out, border-radius 200ms ease-in-out;
33
34
  }
34
35
  sup .dnb-anchor, sub .dnb-anchor {
35
36
  padding: 0 0.025em;
@@ -115,6 +116,10 @@ html[data-whatinput=keyboard] .dnb-anchor:focus {
115
116
 
116
117
  .dnb-anchor--focus {
117
118
  outline: none;
119
+ --border-color: var(--focus-ring-color);
120
+ --border-width: var(--focus-ring-width);
121
+ box-shadow: 0 0 0 var(--border-width) var(--border-color);
122
+ border-color: transparent;
118
123
  border-radius: 0.25em;
119
124
  }
120
125
  .dnb-anchor--focus:not(:active) {
@@ -124,12 +129,6 @@ html[data-whatinput=keyboard] .dnb-anchor:focus {
124
129
  .dnb-anchor--focus:not(:active), .dnb-section .dnb-anchor--focus:not(:active).dnb-anchor {
125
130
  text-decoration: none;
126
131
  }
127
- html[data-whatinput=mouse] .dnb-anchor--focus {
128
- --border-color: var(--focus-ring-color);
129
- --border-width: var(--focus-ring-width);
130
- box-shadow: 0 0 0 var(--border-width) var(--border-color);
131
- border-color: transparent;
132
- }
133
132
 
134
133
  .dnb-anchor--no-style {
135
134
  color: inherit;
@@ -1 +1 @@
1
- button.dnb-anchor{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:pointer;line-height:calc(var(--line-height-basis) + .125rem)}.dnb-anchor{border-radius:0;display:inline;font-size:var(--font-size-basis);padding:.05575em .125em;text-decoration:underline;-webkit-text-decoration-color:currentcolor;text-decoration-color:currentcolor;text-decoration-thickness:.0938rem;text-underline-offset:.25em;transition:background-color .2s ease-in-out,border-radius .2s ease-in-out}sub .dnb-anchor,sup .dnb-anchor{padding:0 .025em}.dnb-h--basis .dnb-anchor,.dnb-h--large .dnb-anchor,.dnb-h--medium .dnb-anchor,.dnb-h--small .dnb-anchor,.dnb-h--x-large .dnb-anchor,.dnb-h--x-small .dnb-anchor,.dnb-h--xx-large .dnb-anchor,.dnb-lead .dnb-anchor,.dnb-p .dnb-anchor{font-size:inherit}.dnb-anchor:focus{border-radius:.25em;outline:none}.dnb-anchor:focus:not(:active){background-color:transparent;transition:none}.dnb-anchor:focus:not(:active),.dnb-section .dnb-anchor:focus:not(:active).dnb-anchor{text-decoration:none}html[data-whatinput=keyboard] .dnb-anchor:focus{--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-anchor:active,.dnb-anchor:hover{border-radius:.25em}.dnb-anchor:active,.dnb-anchor:hover,.dnb-section .dnb-anchor:active.dnb-anchor,.dnb-section .dnb-anchor:hover.dnb-anchor{text-decoration:none}.dnb-anchor:active{border-radius:.25em}.dnb-anchor:active,.dnb-section .dnb-anchor:active.dnb-anchor{text-decoration:none}.dnb-anchor[target=_blank]:not(:empty):not(.dnb-anchor--no-icon){background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhLjc1Ljc1IDAgMCAwIDAgMS41VjB6bTQgLjc1aC43NUEuNzUuNzUgMCAwIDAgMTUgMHYuNzV6bS0uNzUgNGEuNzUuNzUgMCAwIDAgMS41IDBoLTEuNXptMS41IDRhLjc1Ljc1IDAgMCAwLTEuNSAwaDEuNXptLS43NSA2LjVWMTZjLjQxIDAgLjc1LS4zNC43NS0uNzVIMTV6bS0xNCAwSC4yNWMwIC40MS4zNC43NS43NS43NXYtLjc1ek0xIC43NVYwYS43NS43NSAwIDAgMC0uNzUuNzVIMXptNS43NS43NWEuNzUuNzUgMCAwIDAgMC0xLjV2MS41em0yLjcyIDMuNzJhLjc1Ljc1IDAgMCAwIDEuMDYgMS4wNkw5LjQ3IDUuMjJ6TTE0LjI1Ljc1djRoMS41di00aC0xLjV6bTAgOHY2LjVoMS41di02LjVoLTEuNXpNMTUgMTQuNUgxVjE2aDE0di0xLjV6bS0xMy4yNS43NVYuNzVILjI1djE0LjVoMS41ek0xIDEuNWg1Ljc1VjBIMXYxLjV6bTEwIDBoNFYwaC00djEuNXptLS40NyA0Ljc4IDUtNUwxNC40Ny4yMmwtNSA1IDEuMDYgMS4wNnoiIGZpbGw9IiMwMDcyNzIiLz48L3N2Zz4=");background-size:0;position:relative}.dnb-anchor[target=_blank]:not(:empty):not(.dnb-anchor--no-icon):after{background-image:inherit;background-size:cover;color:inherit;content:"";display:inline-block;height:.889em;margin-left:.3em;margin-right:.125em;position:relative;transform-origin:bottom;transition:transform .3s ease-out,filter 1s ease-in-out;width:.889em}.dnb-anchor[target=_blank]:not(:empty):not(.dnb-anchor--no-icon):active{background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhLjc1Ljc1IDAgMCAwIDAgMS41VjB6bTQgLjc1aC43NUEuNzUuNzUgMCAwIDAgMTUgMHYuNzV6bS0uNzUgNGEuNzUuNzUgMCAwIDAgMS41IDBoLTEuNXptMS41IDRhLjc1Ljc1IDAgMCAwLTEuNSAwaDEuNXptLS43NSA2LjVWMTZjLjQxIDAgLjc1LS4zNC43NS0uNzVIMTV6bS0xNCAwSC4yNWMwIC40MS4zNC43NS43NS43NXYtLjc1ek0xIC43NVYwYS43NS43NSAwIDAgMC0uNzUuNzVIMXptNS43NS43NWEuNzUuNzUgMCAwIDAgMC0xLjV2MS41em0yLjcyIDMuNzJhLjc1Ljc1IDAgMCAwIDEuMDYgMS4wNkw5LjQ3IDUuMjJ6TTE0LjI1Ljc1djRoMS41di00aC0xLjV6bTAgOHY2LjVoMS41di02LjVoLTEuNXpNMTUgMTQuNUgxVjE2aDE0di0xLjV6bS0xMy4yNS43NVYuNzVILjI1djE0LjVoMS41ek0xIDEuNWg1Ljc1VjBIMXYxLjV6bTEwIDBoNFYwaC00djEuNXptLS40NyA0Ljc4IDUtNUwxNC40Ny4yMmwtNSA1IDEuMDYgMS4wNnoiIGZpbGw9IiNhNWUxZDIiLz48L3N2Zz4=")}.dnb-anchor[target=_blank]:not(:empty):not(.dnb-anchor--no-icon):after{top:.125em}[data-visual-test-wrapper] .dnb-anchor{transition:none}.dnb-anchor .dnb-icon{display:inline-block;transform:translateY(-.0625em)}.dnb-anchor--hover{border-radius:.25em}.dnb-anchor--hover,.dnb-section .dnb-anchor--hover.dnb-anchor{text-decoration:none}.dnb-anchor--active{border-radius:.25em}.dnb-anchor--active,.dnb-section .dnb-anchor--active.dnb-anchor{text-decoration:none}.dnb-anchor--focus{border-radius:.25em;outline:none}.dnb-anchor--focus:not(:active){background-color:transparent;transition:none}.dnb-anchor--focus:not(:active),.dnb-section .dnb-anchor--focus:not(:active).dnb-anchor{text-decoration:none}html[data-whatinput=mouse] .dnb-anchor--focus{--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-anchor--no-style{color:inherit;transition:none}.dnb-anchor--no-style,.dnb-section .dnb-anchor--no-style.dnb-anchor{text-decoration:none}.dnb-anchor--no-style:hover{background-color:transparent;color:inherit}.dnb-anchor--no-underline,.dnb-section .dnb-anchor--no-underline.dnb-anchor{text-decoration:none}.dnb-anchor--no-hover:hover{background-color:transparent;color:inherit}.dnb-anchor--no-radius,.dnb-anchor--no-radius:active,.dnb-anchor--no-radius:focus,.dnb-anchor--no-radius:hover{border-radius:0}.dnb-anchor--no-animation,a.dnb-button{transition:none}.dnb-anchor.dnb-skeleton,.dnb-skeleton>.dnb-anchor{text-decoration:none}.dnb-anchor.dnb-skeleton:after,.dnb-skeleton>.dnb-anchor:after{filter:grayscale(100%) opacity(.3)}
1
+ button.dnb-anchor{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;cursor:pointer;line-height:calc(var(--line-height-basis) + .125rem)}.dnb-anchor{--anchor-underline-thickness:0.0938rem;border-radius:0;display:inline;font-size:var(--font-size-basis);padding:.05575em 0;text-decoration:underline;-webkit-text-decoration-color:currentcolor;text-decoration-color:currentcolor;text-decoration-thickness:var(--anchor-underline-thickness);text-underline-offset:.25em;transition:box-shadow .2s ease-in-out,border-radius .2s ease-in-out}sub .dnb-anchor,sup .dnb-anchor{padding:0 .025em}.dnb-h--basis .dnb-anchor,.dnb-h--large .dnb-anchor,.dnb-h--medium .dnb-anchor,.dnb-h--small .dnb-anchor,.dnb-h--x-large .dnb-anchor,.dnb-h--x-small .dnb-anchor,.dnb-h--xx-large .dnb-anchor,.dnb-lead .dnb-anchor,.dnb-p .dnb-anchor{font-size:inherit}.dnb-anchor:focus{border-radius:.25em;outline:none}.dnb-anchor:focus:not(:active){background-color:transparent;transition:none}.dnb-anchor:focus:not(:active),.dnb-section .dnb-anchor:focus:not(:active).dnb-anchor{text-decoration:none}html[data-whatinput=keyboard] .dnb-anchor:focus{--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-anchor:active,.dnb-anchor:hover{border-radius:.25em}.dnb-anchor:active,.dnb-anchor:hover,.dnb-section .dnb-anchor:active.dnb-anchor,.dnb-section .dnb-anchor:hover.dnb-anchor{text-decoration:none}.dnb-anchor:active{border-radius:.25em}.dnb-anchor:active,.dnb-section .dnb-anchor:active.dnb-anchor{text-decoration:none}.dnb-anchor[target=_blank]:not(:empty):not(.dnb-anchor--no-icon){background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhLjc1Ljc1IDAgMCAwIDAgMS41VjB6bTQgLjc1aC43NUEuNzUuNzUgMCAwIDAgMTUgMHYuNzV6bS0uNzUgNGEuNzUuNzUgMCAwIDAgMS41IDBoLTEuNXptMS41IDRhLjc1Ljc1IDAgMCAwLTEuNSAwaDEuNXptLS43NSA2LjVWMTZjLjQxIDAgLjc1LS4zNC43NS0uNzVIMTV6bS0xNCAwSC4yNWMwIC40MS4zNC43NS43NS43NXYtLjc1ek0xIC43NVYwYS43NS43NSAwIDAgMC0uNzUuNzVIMXptNS43NS43NWEuNzUuNzUgMCAwIDAgMC0xLjV2MS41em0yLjcyIDMuNzJhLjc1Ljc1IDAgMCAwIDEuMDYgMS4wNkw5LjQ3IDUuMjJ6TTE0LjI1Ljc1djRoMS41di00aC0xLjV6bTAgOHY2LjVoMS41di02LjVoLTEuNXpNMTUgMTQuNUgxVjE2aDE0di0xLjV6bS0xMy4yNS43NVYuNzVILjI1djE0LjVoMS41ek0xIDEuNWg1Ljc1VjBIMXYxLjV6bTEwIDBoNFYwaC00djEuNXptLS40NyA0Ljc4IDUtNUwxNC40Ny4yMmwtNSA1IDEuMDYgMS4wNnoiIGZpbGw9IiMwMDcyNzIiLz48L3N2Zz4=");background-size:0;position:relative}.dnb-anchor[target=_blank]:not(:empty):not(.dnb-anchor--no-icon):after{background-image:inherit;background-size:cover;color:inherit;content:"";display:inline-block;height:.889em;margin-left:.3em;margin-right:.125em;position:relative;transform-origin:bottom;transition:transform .3s ease-out,filter 1s ease-in-out;width:.889em}.dnb-anchor[target=_blank]:not(:empty):not(.dnb-anchor--no-icon):active{background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhLjc1Ljc1IDAgMCAwIDAgMS41VjB6bTQgLjc1aC43NUEuNzUuNzUgMCAwIDAgMTUgMHYuNzV6bS0uNzUgNGEuNzUuNzUgMCAwIDAgMS41IDBoLTEuNXptMS41IDRhLjc1Ljc1IDAgMCAwLTEuNSAwaDEuNXptLS43NSA2LjVWMTZjLjQxIDAgLjc1LS4zNC43NS0uNzVIMTV6bS0xNCAwSC4yNWMwIC40MS4zNC43NS43NS43NXYtLjc1ek0xIC43NVYwYS43NS43NSAwIDAgMC0uNzUuNzVIMXptNS43NS43NWEuNzUuNzUgMCAwIDAgMC0xLjV2MS41em0yLjcyIDMuNzJhLjc1Ljc1IDAgMCAwIDEuMDYgMS4wNkw5LjQ3IDUuMjJ6TTE0LjI1Ljc1djRoMS41di00aC0xLjV6bTAgOHY2LjVoMS41di02LjVoLTEuNXpNMTUgMTQuNUgxVjE2aDE0di0xLjV6bS0xMy4yNS43NVYuNzVILjI1djE0LjVoMS41ek0xIDEuNWg1Ljc1VjBIMXYxLjV6bTEwIDBoNFYwaC00djEuNXptLS40NyA0Ljc4IDUtNUwxNC40Ny4yMmwtNSA1IDEuMDYgMS4wNnoiIGZpbGw9IiNhNWUxZDIiLz48L3N2Zz4=")}.dnb-anchor[target=_blank]:not(:empty):not(.dnb-anchor--no-icon):after{top:.125em}[data-visual-test-wrapper] .dnb-anchor{transition:none}.dnb-anchor .dnb-icon{display:inline-block;transform:translateY(-.0625em)}.dnb-anchor--hover{border-radius:.25em}.dnb-anchor--hover,.dnb-section .dnb-anchor--hover.dnb-anchor{text-decoration:none}.dnb-anchor--active{border-radius:.25em}.dnb-anchor--active,.dnb-section .dnb-anchor--active.dnb-anchor{text-decoration:none}.dnb-anchor--focus{--border-color:var(--focus-ring-color);--border-width:var(--focus-ring-width);border-color:transparent;border-radius:.25em;box-shadow:0 0 0 var(--border-width) var(--border-color);outline:none}.dnb-anchor--focus:not(:active){background-color:transparent;transition:none}.dnb-anchor--focus:not(:active),.dnb-section .dnb-anchor--focus:not(:active).dnb-anchor{text-decoration:none}.dnb-anchor--no-style{color:inherit;transition:none}.dnb-anchor--no-style,.dnb-section .dnb-anchor--no-style.dnb-anchor{text-decoration:none}.dnb-anchor--no-style:hover{background-color:transparent;color:inherit}.dnb-anchor--no-underline,.dnb-section .dnb-anchor--no-underline.dnb-anchor{text-decoration:none}.dnb-anchor--no-hover:hover{background-color:transparent;color:inherit}.dnb-anchor--no-radius,.dnb-anchor--no-radius:active,.dnb-anchor--no-radius:focus,.dnb-anchor--no-radius:hover{border-radius:0}.dnb-anchor--no-animation,a.dnb-button{transition:none}.dnb-anchor.dnb-skeleton,.dnb-skeleton>.dnb-anchor{text-decoration:none}.dnb-anchor.dnb-skeleton:after,.dnb-skeleton>.dnb-anchor:after{filter:grayscale(100%) opacity(.3)}
@@ -17,6 +17,7 @@ button.dnb-anchor {
17
17
  }
18
18
 
19
19
  .dnb-anchor {
20
+ --anchor-underline-thickness: 0.0938rem;
20
21
  @include anchorStyle();
21
22
  }
22
23
 
@@ -29,7 +30,7 @@ button.dnb-anchor {
29
30
  }
30
31
 
31
32
  .dnb-anchor--focus {
32
- @include anchorFocusStyle('mouse');
33
+ @include anchorFocusStyle('always');
33
34
  }
34
35
 
35
36
  // no use case for that yet
@@ -1,3 +1,7 @@
1
+ @charset "UTF-8";
2
+ /*
3
+ * Utilities
4
+ */
1
5
  /*
2
6
  * Anchor mixins
3
7
  *
@@ -6,14 +10,17 @@
6
10
  * Utilities
7
11
  */
8
12
  .dnb-anchor {
13
+ --anchor-underline-thickness: 0.125rem;
9
14
  font-weight: var(--sb-font-weight-bold);
10
15
  color: var(--sb-color-gray-dark-3);
11
16
  -webkit-text-decoration-color: var(--sb-color-green-dark);
12
17
  text-decoration-color: var(--sb-color-green-dark);
18
+ padding: calc((var(--line-height-basis) - 1.2em) / 2) 0.25em;
13
19
  }
14
20
  .dnb-anchor:hover {
15
21
  color: var(--sb-color-text);
16
22
  background-color: var(--sb-color-green-dark);
23
+ transition: none;
17
24
  border-radius: 0.5rem;
18
25
  }
19
26
  .dnb-anchor:active {
@@ -21,15 +28,58 @@
21
28
  background-color: var(--sb-color-green);
22
29
  border-radius: 0.5rem;
23
30
  }
24
- .dnb-anchor:focus:not(:active) {
31
+ html[data-whatinput=keyboard] .dnb-anchor:focus:not(:active) {
25
32
  color: var(--sb-color-blue-dark);
26
33
  background-color: var(--sb-color-blue-light-3);
27
34
  border-radius: 0.25rem;
28
35
  }
36
+ html[data-whatinput=keyboard] .dnb-anchor:focus:not(:active).dnb-anchor--icon-left {
37
+ margin-left: 0;
38
+ }
39
+ html[data-whatinput=keyboard] .dnb-anchor:focus:not(:active).dnb-anchor--icon-left .dnb-icon {
40
+ margin-left: 0;
41
+ }
42
+ html[data-whatinput=keyboard] .dnb-anchor:focus:not(:active).dnb-anchor--icon-right {
43
+ margin-right: 0;
44
+ }
45
+ html[data-whatinput=keyboard] .dnb-anchor:focus:not(:active).dnb-anchor--icon-right .dnb-icon {
46
+ margin-right: 0;
47
+ }
48
+ .dnb-anchor.dnb-anchor--icon-left {
49
+ padding-left: 0;
50
+ margin-left: 1.125em;
51
+ }
52
+ .dnb-anchor.dnb-anchor--icon-left .dnb-icon {
53
+ font-size: 1em;
54
+ margin-right: 0.125em;
55
+ margin-left: -1.125em;
56
+ }
57
+ .dnb-anchor.dnb-anchor--icon-right {
58
+ padding-right: 0;
59
+ margin-right: 1.125em;
60
+ }
61
+ .dnb-anchor.dnb-anchor--icon-right .dnb-icon {
62
+ font-size: 1em;
63
+ margin-left: 0.125em;
64
+ margin-right: -1.125em;
65
+ }
66
+ .dnb-anchor:not(.dnb-anchor--no-underline):not(.dnb-anchor--has-icon):not(.anchor-hash):not(.dnb-anchor--icon-left) {
67
+ padding-left: 0;
68
+ }
69
+ .dnb-anchor:not(.dnb-anchor--no-underline):not(.dnb-anchor--has-icon):not(.anchor-hash):not(.dnb-anchor--icon-left)::before {
70
+ content: " ";
71
+ }
72
+ .dnb-anchor:not(.dnb-anchor--no-underline):not(.dnb-anchor--has-icon):not(.anchor-hash):not(.dnb-anchor--icon-right):not(.dnb-anchor[target=_blank]) {
73
+ padding-right: 0;
74
+ }
75
+ .dnb-anchor:not(.dnb-anchor--no-underline):not(.dnb-anchor--has-icon):not(.anchor-hash):not(.dnb-anchor--icon-right):not(.dnb-anchor[target=_blank])::after {
76
+ content: " ";
77
+ }
29
78
 
30
79
  .dnb-anchor--hover {
31
80
  color: var(--sb-color-text);
32
81
  background-color: var(--sb-color-green-dark);
82
+ transition: none;
33
83
  border-radius: 0.5rem;
34
84
  }
35
85
 
@@ -44,6 +94,18 @@
44
94
  background-color: var(--sb-color-blue-light-3);
45
95
  border-radius: 0.25rem;
46
96
  }
97
+ .dnb-anchor--focus:not(:active).dnb-anchor--icon-left {
98
+ margin-left: 0;
99
+ }
100
+ .dnb-anchor--focus:not(:active).dnb-anchor--icon-left .dnb-icon {
101
+ margin-left: 0;
102
+ }
103
+ .dnb-anchor--focus:not(:active).dnb-anchor--icon-right {
104
+ margin-right: 0;
105
+ }
106
+ .dnb-anchor--focus:not(:active).dnb-anchor--icon-right .dnb-icon {
107
+ margin-right: 0;
108
+ }
47
109
 
48
110
  .dnb-anchor--contrast {
49
111
  color: var(--color-white);
@@ -1 +1 @@
1
- .dnb-anchor{color:var(--sb-color-gray-dark-3);font-weight:var(--sb-font-weight-bold);-webkit-text-decoration-color:var(--sb-color-green-dark);text-decoration-color:var(--sb-color-green-dark)}.dnb-anchor:hover{background-color:var(--sb-color-green-dark)}.dnb-anchor:active,.dnb-anchor:hover{border-radius:.5rem;color:var(--sb-color-text)}.dnb-anchor:active{background-color:var(--sb-color-green)}.dnb-anchor:focus:not(:active){background-color:var(--sb-color-blue-light-3);border-radius:.25rem;color:var(--sb-color-blue-dark)}.dnb-anchor--hover{background-color:var(--sb-color-green-dark)}.dnb-anchor--active,.dnb-anchor--hover{border-radius:.5rem;color:var(--sb-color-text)}.dnb-anchor--active{background-color:var(--sb-color-green)}.dnb-anchor--focus:not(:active){background-color:var(--sb-color-blue-light-3);border-radius:.25rem;color:var(--sb-color-blue-dark)}.dnb-anchor--contrast{color:var(--color-white)}.dnb-anchor--contrast:active,.dnb-anchor--contrast:hover{text-decoration:none}.dnb-anchor--contrast:active,.dnb-anchor--contrast:hover{background-color:var(--color-white);color:var(--color-emerald-green)}.dnb-anchor--contrast:not(:disabled):focus{background-color:transparent;color:var(--color-white);outline:none}html[data-whatinput=keyboard] .dnb-anchor--contrast:not(:disabled):focus{--border-color:var(--color-white);--border-width:var(--focus-ring-width);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}
1
+ @charset "UTF-8";.dnb-anchor{--anchor-underline-thickness:0.125rem;color:var(--sb-color-gray-dark-3);font-weight:var(--sb-font-weight-bold);padding:calc(var(--line-height-basis)/2 - .6em) .25em;-webkit-text-decoration-color:var(--sb-color-green-dark);text-decoration-color:var(--sb-color-green-dark)}.dnb-anchor:hover{background-color:var(--sb-color-green-dark);transition:none}.dnb-anchor:active,.dnb-anchor:hover{border-radius:.5rem;color:var(--sb-color-text)}.dnb-anchor:active{background-color:var(--sb-color-green)}html[data-whatinput=keyboard] .dnb-anchor:focus:not(:active){background-color:var(--sb-color-blue-light-3);border-radius:.25rem;color:var(--sb-color-blue-dark)}html[data-whatinput=keyboard] .dnb-anchor:focus:not(:active).dnb-anchor--icon-left,html[data-whatinput=keyboard] .dnb-anchor:focus:not(:active).dnb-anchor--icon-left .dnb-icon{margin-left:0}html[data-whatinput=keyboard] .dnb-anchor:focus:not(:active).dnb-anchor--icon-right,html[data-whatinput=keyboard] .dnb-anchor:focus:not(:active).dnb-anchor--icon-right .dnb-icon{margin-right:0}.dnb-anchor.dnb-anchor--icon-left{margin-left:1.125em;padding-left:0}.dnb-anchor.dnb-anchor--icon-left .dnb-icon{font-size:1em;margin-left:-1.125em;margin-right:.125em}.dnb-anchor.dnb-anchor--icon-right{margin-right:1.125em;padding-right:0}.dnb-anchor.dnb-anchor--icon-right .dnb-icon{font-size:1em;margin-left:.125em;margin-right:-1.125em}.dnb-anchor:not(.dnb-anchor--no-underline):not(.dnb-anchor--has-icon):not(.anchor-hash):not(.dnb-anchor--icon-left){padding-left:0}.dnb-anchor:not(.dnb-anchor--no-underline):not(.dnb-anchor--has-icon):not(.anchor-hash):not(.dnb-anchor--icon-left):before{content:" "}.dnb-anchor:not(.dnb-anchor--no-underline):not(.dnb-anchor--has-icon):not(.anchor-hash):not(.dnb-anchor--icon-right):not(.dnb-anchor[target=_blank]){padding-right:0}.dnb-anchor:not(.dnb-anchor--no-underline):not(.dnb-anchor--has-icon):not(.anchor-hash):not(.dnb-anchor--icon-right):not(.dnb-anchor[target=_blank]):after{content:" "}.dnb-anchor--hover{background-color:var(--sb-color-green-dark);transition:none}.dnb-anchor--active,.dnb-anchor--hover{border-radius:.5rem;color:var(--sb-color-text)}.dnb-anchor--active{background-color:var(--sb-color-green)}.dnb-anchor--focus:not(:active){background-color:var(--sb-color-blue-light-3);border-radius:.25rem;color:var(--sb-color-blue-dark)}.dnb-anchor--focus:not(:active).dnb-anchor--icon-left,.dnb-anchor--focus:not(:active).dnb-anchor--icon-left .dnb-icon{margin-left:0}.dnb-anchor--focus:not(:active).dnb-anchor--icon-right,.dnb-anchor--focus:not(:active).dnb-anchor--icon-right .dnb-icon{margin-right:0}.dnb-anchor--contrast{color:var(--color-white)}.dnb-anchor--contrast:active,.dnb-anchor--contrast:hover{text-decoration:none}.dnb-anchor--contrast:active,.dnb-anchor--contrast:hover{background-color:var(--color-white);color:var(--color-emerald-green)}.dnb-anchor--contrast:not(:disabled):focus{background-color:transparent;color:var(--color-white);outline:none}html[data-whatinput=keyboard] .dnb-anchor--contrast:not(:disabled):focus{--border-color:var(--color-white);--border-width:var(--focus-ring-width);border-color:transparent;box-shadow:0 0 0 var(--border-width) var(--border-color)}