@dnb/eufemia 9.18.0 → 9.19.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 (499) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/cjs/components/Avatar.d.ts +14 -0
  3. package/cjs/components/Avatar.js +52 -0
  4. package/cjs/components/InfoCard.d.ts +14 -0
  5. package/cjs/components/InfoCard.js +52 -0
  6. package/cjs/components/Timeline.d.ts +14 -0
  7. package/cjs/components/Timeline.js +52 -0
  8. package/cjs/components/autocomplete/Autocomplete.d.ts +2 -2
  9. package/cjs/components/avatar/Avatar.js +149 -0
  10. package/cjs/components/avatar/AvatarGroup.js +131 -0
  11. package/cjs/components/avatar/index.d.ts +8 -0
  12. package/cjs/components/avatar/index.js +52 -0
  13. package/cjs/components/avatar/style/_avatar.scss +145 -0
  14. package/cjs/components/avatar/style/dnb-avatar.css +218 -0
  15. package/cjs/components/avatar/style/dnb-avatar.min.css +1 -0
  16. package/cjs/components/avatar/style/dnb-avatar.scss +12 -0
  17. package/cjs/components/avatar/style/index.d.ts +6 -0
  18. package/cjs/components/avatar/style/index.js +3 -0
  19. package/cjs/components/avatar/style/themes/dnb-avatar-theme-ui.css +36 -0
  20. package/cjs/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -0
  21. package/cjs/components/avatar/style/themes/dnb-avatar-theme-ui.scss +29 -0
  22. package/cjs/components/avatar/style/themes/ui.js +3 -0
  23. package/cjs/components/avatar/style.js +3 -0
  24. package/cjs/components/breadcrumb/BreadcrumbItem.js +3 -3
  25. package/cjs/components/button/Button.d.ts +1 -1
  26. package/cjs/components/button/Button.js +1 -1
  27. package/cjs/components/button/style/themes/dnb-button-theme-ui.scss +3 -0
  28. package/cjs/components/date-picker/DatePicker.js +4 -2
  29. package/cjs/components/date-picker/DatePickerFooter.d.ts +1 -0
  30. package/cjs/components/date-picker/DatePickerFooter.js +10 -6
  31. package/cjs/components/dropdown/Dropdown.d.ts +4 -3
  32. package/cjs/components/form-label/FormLabel.d.ts +1 -1
  33. package/cjs/components/heading/Heading.d.ts +2 -2
  34. package/cjs/components/heading/HeadingProvider.d.ts +2 -2
  35. package/cjs/components/help-button/HelpButton.d.ts +1 -1
  36. package/cjs/components/help-button/HelpButtonInstance.d.ts +3 -2
  37. package/cjs/components/icon/Icon.d.ts +1 -1
  38. package/cjs/components/icon-primary/IconPrimary.d.ts +1 -1
  39. package/cjs/components/index.d.ts +6 -0
  40. package/cjs/components/index.js +24 -0
  41. package/cjs/components/info-card/InfoCard.js +180 -0
  42. package/cjs/components/info-card/index.d.ts +8 -0
  43. package/cjs/components/info-card/index.js +52 -0
  44. package/cjs/components/info-card/style/_info-card.scss +52 -0
  45. package/cjs/components/info-card/style/dnb-info-card.css +135 -0
  46. package/cjs/components/info-card/style/dnb-info-card.min.css +1 -0
  47. package/cjs/components/info-card/style/dnb-info-card.scss +12 -0
  48. package/cjs/components/info-card/style/index.d.ts +6 -0
  49. package/cjs/components/info-card/style/index.js +3 -0
  50. package/cjs/components/info-card/style.js +3 -0
  51. package/cjs/components/input/Input.d.ts +2 -1
  52. package/cjs/components/lib.js +27 -0
  53. package/cjs/components/number-format/NumberFormat.d.ts +2 -2
  54. package/cjs/components/pagination/Pagination.js +11 -1
  55. package/cjs/components/radio/Radio.d.ts +1 -1
  56. package/cjs/components/radio/RadioGroup.d.ts +1 -1
  57. package/cjs/components/slider/Slider.d.ts +1 -1
  58. package/cjs/components/step-indicator/StepIndicator.d.ts +3 -3
  59. package/cjs/components/step-indicator/StepIndicatorContext.d.ts +1 -1
  60. package/cjs/components/step-indicator/StepIndicatorItem.d.ts +1 -1
  61. package/cjs/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
  62. package/cjs/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
  63. package/cjs/components/switch/Switch.d.ts +1 -1
  64. package/cjs/components/tabs/Tabs.d.ts +4 -4
  65. package/cjs/components/tabs/TabsContentWrapper.d.ts +1 -1
  66. package/cjs/components/tabs/TabsCustomContent.d.ts +1 -1
  67. package/cjs/components/tag/Tag.js +85 -25
  68. package/cjs/components/tag/TagContext.js +14 -0
  69. package/cjs/components/tag/TagGroup.js +123 -0
  70. package/cjs/components/tag/style/_tag.scss +80 -16
  71. package/cjs/components/tag/style/dnb-tag.css +849 -33
  72. package/cjs/components/tag/style/dnb-tag.min.css +1 -1
  73. package/cjs/components/tag/style/dnb-tag.scss +3 -0
  74. package/cjs/components/tag/style/themes/_tag-mixins.scss +18 -0
  75. package/cjs/components/timeline/Timeline.js +129 -0
  76. package/cjs/components/timeline/TimelineItem.js +149 -0
  77. package/cjs/components/timeline/index.d.ts +8 -0
  78. package/cjs/components/timeline/index.js +52 -0
  79. package/cjs/components/timeline/style/_timeline.scss +42 -0
  80. package/cjs/components/timeline/style/dnb-timeline.css +307 -0
  81. package/cjs/components/timeline/style/dnb-timeline.min.css +1 -0
  82. package/cjs/components/timeline/style/dnb-timeline.scss +12 -0
  83. package/cjs/components/timeline/style/index.d.ts +6 -0
  84. package/cjs/components/timeline/style/index.js +3 -0
  85. package/cjs/components/timeline/style/themes/dnb-timeline-theme-ui.css +185 -0
  86. package/cjs/components/timeline/style/themes/dnb-timeline-theme-ui.min.css +1 -0
  87. package/cjs/components/timeline/style/themes/dnb-timeline-theme-ui.scss +105 -0
  88. package/cjs/components/timeline/style/themes/ui.js +3 -0
  89. package/cjs/components/timeline/style.js +3 -0
  90. package/cjs/components/toggle-button/ToggleButton.d.ts +2 -2
  91. package/cjs/components/toggle-button/ToggleButtonGroup.d.ts +1 -1
  92. package/cjs/elements/Img.d.ts +2 -2
  93. package/cjs/extensions/payment-card/PaymentCard.d.ts +1 -1
  94. package/cjs/extensions/payment-card/style/_payment-card.scss +0 -1
  95. package/cjs/extensions/payment-card/style/dnb-payment-card.css +0 -1
  96. package/cjs/extensions/payment-card/style/dnb-payment-card.min.css +1 -1
  97. package/cjs/fragments/drawer-list/DrawerListProvider.js +1 -0
  98. package/cjs/index.d.ts +6 -0
  99. package/cjs/index.js +24 -0
  100. package/cjs/shared/Context.js +10 -4
  101. package/cjs/shared/locales/en-GB.js +5 -0
  102. package/cjs/shared/locales/nb-NO.js +5 -0
  103. package/cjs/style/dnb-ui-components.css +710 -34
  104. package/cjs/style/dnb-ui-components.min.css +3 -3
  105. package/cjs/style/dnb-ui-components.scss +3 -0
  106. package/cjs/style/dnb-ui-elements.css +3 -0
  107. package/cjs/style/dnb-ui-elements.min.css +1 -1
  108. package/cjs/style/dnb-ui-extensions.css +0 -1
  109. package/cjs/style/dnb-ui-extensions.min.css +1 -1
  110. package/cjs/style/dnb-ui-tags.css +6 -0
  111. package/cjs/style/dnb-ui-tags.min.css +2 -2
  112. package/cjs/style/elements/code.scss +3 -0
  113. package/cjs/style/themes/theme-open-banking/dnb-theme-open-banking.css +226 -0
  114. package/cjs/style/themes/theme-open-banking/dnb-theme-open-banking.min.css +3 -3
  115. package/cjs/style/themes/theme-ui/dnb-theme-ui.css +226 -0
  116. package/cjs/style/themes/theme-ui/dnb-theme-ui.min.css +3 -3
  117. package/cjs/style/themes/theme-ui/dnb-theme-ui.scss +2 -0
  118. package/components/Avatar.d.ts +14 -0
  119. package/components/Avatar.js +3 -0
  120. package/components/InfoCard.d.ts +14 -0
  121. package/components/InfoCard.js +3 -0
  122. package/components/Timeline.d.ts +14 -0
  123. package/components/Timeline.js +3 -0
  124. package/components/autocomplete/Autocomplete.d.ts +2 -2
  125. package/components/avatar/Avatar.js +89 -0
  126. package/components/avatar/Avatar.tsx +163 -0
  127. package/components/avatar/AvatarGroup.js +94 -0
  128. package/components/avatar/AvatarGroup.tsx +167 -0
  129. package/components/avatar/index.d.ts +8 -0
  130. package/components/avatar/index.js +3 -0
  131. package/components/avatar/style/_avatar.scss +145 -0
  132. package/components/avatar/style/dnb-avatar.css +218 -0
  133. package/components/avatar/style/dnb-avatar.min.css +1 -0
  134. package/components/avatar/style/dnb-avatar.scss +12 -0
  135. package/components/avatar/style/index.d.ts +6 -0
  136. package/components/avatar/style/index.js +1 -0
  137. package/components/avatar/style/themes/dnb-avatar-theme-ui.css +36 -0
  138. package/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -0
  139. package/components/avatar/style/themes/dnb-avatar-theme-ui.scss +29 -0
  140. package/components/avatar/style/themes/ui.js +1 -0
  141. package/components/avatar/style.js +1 -0
  142. package/components/breadcrumb/BreadcrumbItem.js +3 -3
  143. package/components/breadcrumb/BreadcrumbItem.tsx +2 -2
  144. package/components/button/Button.js +1 -1
  145. package/components/button/style/themes/dnb-button-theme-ui.scss +3 -0
  146. package/components/date-picker/DatePicker.js +4 -2
  147. package/components/date-picker/DatePickerFooter.d.ts +1 -0
  148. package/components/date-picker/DatePickerFooter.js +10 -6
  149. package/components/dropdown/Dropdown.d.ts +4 -3
  150. package/components/form-label/FormLabel.d.ts +1 -1
  151. package/components/heading/Heading.d.ts +2 -2
  152. package/components/heading/HeadingProvider.d.ts +2 -2
  153. package/components/help-button/HelpButton.d.ts +1 -1
  154. package/components/help-button/HelpButtonInstance.d.ts +3 -2
  155. package/components/icon/Icon.d.ts +1 -1
  156. package/components/index.d.ts +6 -0
  157. package/components/index.js +4 -1
  158. package/components/info-card/InfoCard.js +140 -0
  159. package/components/info-card/InfoCard.tsx +249 -0
  160. package/components/info-card/index.d.ts +8 -0
  161. package/components/info-card/index.js +3 -0
  162. package/components/info-card/style/_info-card.scss +52 -0
  163. package/components/info-card/style/dnb-info-card.css +135 -0
  164. package/components/info-card/style/dnb-info-card.min.css +1 -0
  165. package/components/info-card/style/dnb-info-card.scss +12 -0
  166. package/components/info-card/style/index.d.ts +6 -0
  167. package/components/info-card/style/index.js +1 -0
  168. package/components/info-card/style.js +1 -0
  169. package/components/input/Input.d.ts +2 -1
  170. package/components/lib.js +7 -1
  171. package/components/number-format/NumberFormat.d.ts +2 -2
  172. package/components/pagination/Pagination.js +7 -0
  173. package/components/radio/Radio.d.ts +1 -1
  174. package/components/radio/RadioGroup.d.ts +1 -1
  175. package/components/slider/Slider.d.ts +1 -1
  176. package/components/step-indicator/StepIndicator.d.ts +3 -3
  177. package/components/step-indicator/StepIndicatorContext.d.ts +1 -1
  178. package/components/step-indicator/StepIndicatorItem.d.ts +1 -1
  179. package/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
  180. package/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
  181. package/components/switch/Switch.d.ts +1 -1
  182. package/components/tabs/Tabs.d.ts +4 -4
  183. package/components/tabs/TabsContentWrapper.d.ts +1 -1
  184. package/components/tabs/TabsCustomContent.d.ts +1 -1
  185. package/components/tag/Tag.js +84 -25
  186. package/components/tag/Tag.tsx +133 -34
  187. package/components/tag/TagContext.js +2 -0
  188. package/components/tag/TagContext.tsx +3 -0
  189. package/components/tag/TagGroup.js +60 -0
  190. package/components/tag/TagGroup.tsx +80 -0
  191. package/components/tag/style/_tag.scss +80 -16
  192. package/components/tag/style/dnb-tag.css +849 -33
  193. package/components/tag/style/dnb-tag.min.css +1 -1
  194. package/components/tag/style/dnb-tag.scss +3 -0
  195. package/components/tag/style/themes/_tag-mixins.scss +18 -0
  196. package/components/timeline/Timeline.js +57 -0
  197. package/components/timeline/Timeline.tsx +91 -0
  198. package/components/timeline/TimelineItem.js +112 -0
  199. package/components/timeline/TimelineItem.tsx +193 -0
  200. package/components/timeline/index.d.ts +8 -0
  201. package/components/timeline/index.js +3 -0
  202. package/components/timeline/style/_timeline.scss +42 -0
  203. package/components/timeline/style/dnb-timeline.css +307 -0
  204. package/components/timeline/style/dnb-timeline.min.css +1 -0
  205. package/components/timeline/style/dnb-timeline.scss +12 -0
  206. package/components/timeline/style/index.d.ts +6 -0
  207. package/components/timeline/style/index.js +1 -0
  208. package/components/timeline/style/themes/dnb-timeline-theme-ui.css +185 -0
  209. package/components/timeline/style/themes/dnb-timeline-theme-ui.min.css +1 -0
  210. package/components/timeline/style/themes/dnb-timeline-theme-ui.scss +105 -0
  211. package/components/timeline/style/themes/ui.js +1 -0
  212. package/components/timeline/style.js +1 -0
  213. package/components/toggle-button/ToggleButton.d.ts +2 -2
  214. package/components/toggle-button/ToggleButtonGroup.d.ts +1 -1
  215. package/elements/Img.d.ts +1 -1
  216. package/es/components/Avatar.d.ts +14 -0
  217. package/es/components/Avatar.js +3 -0
  218. package/es/components/InfoCard.d.ts +14 -0
  219. package/es/components/InfoCard.js +3 -0
  220. package/es/components/Timeline.d.ts +14 -0
  221. package/es/components/Timeline.js +3 -0
  222. package/es/components/autocomplete/Autocomplete.d.ts +2 -2
  223. package/es/components/avatar/Avatar.js +83 -0
  224. package/es/components/avatar/Avatar.tsx +163 -0
  225. package/es/components/avatar/AvatarGroup.js +89 -0
  226. package/es/components/avatar/AvatarGroup.tsx +167 -0
  227. package/es/components/avatar/index.d.ts +8 -0
  228. package/es/components/avatar/index.js +3 -0
  229. package/es/components/avatar/style/_avatar.scss +145 -0
  230. package/es/components/avatar/style/dnb-avatar.css +218 -0
  231. package/es/components/avatar/style/dnb-avatar.min.css +1 -0
  232. package/es/components/avatar/style/dnb-avatar.scss +12 -0
  233. package/es/components/avatar/style/index.d.ts +6 -0
  234. package/es/components/avatar/style/index.js +1 -0
  235. package/es/components/avatar/style/themes/dnb-avatar-theme-ui.css +36 -0
  236. package/es/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -0
  237. package/es/components/avatar/style/themes/dnb-avatar-theme-ui.scss +29 -0
  238. package/es/components/avatar/style/themes/ui.js +1 -0
  239. package/es/components/avatar/style.js +1 -0
  240. package/es/components/breadcrumb/BreadcrumbItem.js +3 -3
  241. package/es/components/breadcrumb/BreadcrumbItem.tsx +2 -2
  242. package/es/components/button/Button.d.ts +1 -1
  243. package/es/components/button/Button.js +1 -1
  244. package/es/components/button/style/themes/dnb-button-theme-ui.scss +3 -0
  245. package/es/components/date-picker/DatePicker.js +4 -2
  246. package/es/components/date-picker/DatePickerFooter.d.ts +1 -0
  247. package/es/components/date-picker/DatePickerFooter.js +9 -6
  248. package/es/components/dropdown/Dropdown.d.ts +4 -3
  249. package/es/components/form-label/FormLabel.d.ts +1 -1
  250. package/es/components/heading/Heading.d.ts +2 -2
  251. package/es/components/heading/HeadingProvider.d.ts +2 -2
  252. package/es/components/help-button/HelpButton.d.ts +1 -1
  253. package/es/components/help-button/HelpButtonInstance.d.ts +3 -2
  254. package/es/components/icon/Icon.d.ts +1 -1
  255. package/es/components/icon-primary/IconPrimary.d.ts +1 -1
  256. package/es/components/index.d.ts +6 -0
  257. package/es/components/index.js +4 -1
  258. package/es/components/info-card/InfoCard.js +135 -0
  259. package/es/components/info-card/InfoCard.tsx +249 -0
  260. package/es/components/info-card/index.d.ts +8 -0
  261. package/es/components/info-card/index.js +3 -0
  262. package/es/components/info-card/style/_info-card.scss +52 -0
  263. package/es/components/info-card/style/dnb-info-card.css +135 -0
  264. package/es/components/info-card/style/dnb-info-card.min.css +1 -0
  265. package/es/components/info-card/style/dnb-info-card.scss +12 -0
  266. package/es/components/info-card/style/index.d.ts +6 -0
  267. package/es/components/info-card/style/index.js +1 -0
  268. package/es/components/info-card/style.js +1 -0
  269. package/es/components/input/Input.d.ts +2 -1
  270. package/es/components/lib.js +7 -1
  271. package/es/components/number-format/NumberFormat.d.ts +2 -2
  272. package/es/components/pagination/Pagination.js +3 -0
  273. package/es/components/radio/Radio.d.ts +1 -1
  274. package/es/components/radio/RadioGroup.d.ts +1 -1
  275. package/es/components/slider/Slider.d.ts +1 -1
  276. package/es/components/step-indicator/StepIndicator.d.ts +3 -3
  277. package/es/components/step-indicator/StepIndicatorContext.d.ts +1 -1
  278. package/es/components/step-indicator/StepIndicatorItem.d.ts +1 -1
  279. package/es/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
  280. package/es/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
  281. package/es/components/switch/Switch.d.ts +1 -1
  282. package/es/components/tabs/Tabs.d.ts +4 -4
  283. package/es/components/tabs/TabsContentWrapper.d.ts +1 -1
  284. package/es/components/tabs/TabsCustomContent.d.ts +1 -1
  285. package/es/components/tag/Tag.js +83 -26
  286. package/es/components/tag/Tag.tsx +133 -34
  287. package/es/components/tag/TagContext.js +2 -0
  288. package/es/components/tag/TagContext.tsx +3 -0
  289. package/es/components/tag/TagGroup.js +53 -0
  290. package/es/components/tag/TagGroup.tsx +80 -0
  291. package/es/components/tag/style/_tag.scss +80 -16
  292. package/es/components/tag/style/dnb-tag.css +849 -33
  293. package/es/components/tag/style/dnb-tag.min.css +1 -1
  294. package/es/components/tag/style/dnb-tag.scss +3 -0
  295. package/es/components/tag/style/themes/_tag-mixins.scss +18 -0
  296. package/es/components/timeline/Timeline.js +48 -0
  297. package/es/components/timeline/Timeline.tsx +91 -0
  298. package/es/components/timeline/TimelineItem.js +111 -0
  299. package/es/components/timeline/TimelineItem.tsx +193 -0
  300. package/es/components/timeline/index.d.ts +8 -0
  301. package/es/components/timeline/index.js +3 -0
  302. package/es/components/timeline/style/_timeline.scss +42 -0
  303. package/es/components/timeline/style/dnb-timeline.css +307 -0
  304. package/es/components/timeline/style/dnb-timeline.min.css +1 -0
  305. package/es/components/timeline/style/dnb-timeline.scss +12 -0
  306. package/es/components/timeline/style/index.d.ts +6 -0
  307. package/es/components/timeline/style/index.js +1 -0
  308. package/es/components/timeline/style/themes/dnb-timeline-theme-ui.css +185 -0
  309. package/es/components/timeline/style/themes/dnb-timeline-theme-ui.min.css +1 -0
  310. package/es/components/timeline/style/themes/dnb-timeline-theme-ui.scss +105 -0
  311. package/es/components/timeline/style/themes/ui.js +1 -0
  312. package/es/components/timeline/style.js +1 -0
  313. package/es/components/toggle-button/ToggleButton.d.ts +2 -2
  314. package/es/components/toggle-button/ToggleButtonGroup.d.ts +1 -1
  315. package/es/elements/Img.d.ts +2 -2
  316. package/es/extensions/payment-card/PaymentCard.d.ts +1 -1
  317. package/es/extensions/payment-card/style/_payment-card.scss +0 -1
  318. package/es/extensions/payment-card/style/dnb-payment-card.css +0 -1
  319. package/es/extensions/payment-card/style/dnb-payment-card.min.css +1 -1
  320. package/es/fragments/drawer-list/DrawerListProvider.js +1 -0
  321. package/es/index.d.ts +6 -0
  322. package/es/index.js +4 -1
  323. package/es/shared/Context.js +10 -4
  324. package/es/shared/locales/en-GB.js +5 -0
  325. package/es/shared/locales/nb-NO.js +5 -0
  326. package/es/style/dnb-ui-components.css +710 -34
  327. package/es/style/dnb-ui-components.min.css +3 -3
  328. package/es/style/dnb-ui-components.scss +3 -0
  329. package/es/style/dnb-ui-elements.css +3 -0
  330. package/es/style/dnb-ui-elements.min.css +1 -1
  331. package/es/style/dnb-ui-extensions.css +0 -1
  332. package/es/style/dnb-ui-extensions.min.css +1 -1
  333. package/es/style/dnb-ui-tags.css +6 -0
  334. package/es/style/dnb-ui-tags.min.css +2 -2
  335. package/es/style/elements/code.scss +3 -0
  336. package/es/style/themes/theme-open-banking/dnb-theme-open-banking.css +226 -0
  337. package/es/style/themes/theme-open-banking/dnb-theme-open-banking.min.css +3 -3
  338. package/es/style/themes/theme-ui/dnb-theme-ui.css +226 -0
  339. package/es/style/themes/theme-ui/dnb-theme-ui.min.css +3 -3
  340. package/es/style/themes/theme-ui/dnb-theme-ui.scss +2 -0
  341. package/esm/components/Avatar.d.ts +14 -0
  342. package/esm/components/Avatar.js +3 -0
  343. package/esm/components/InfoCard.d.ts +14 -0
  344. package/esm/components/InfoCard.js +3 -0
  345. package/esm/components/Timeline.d.ts +14 -0
  346. package/esm/components/Timeline.js +3 -0
  347. package/esm/components/autocomplete/Autocomplete.d.ts +2 -2
  348. package/esm/components/avatar/Avatar.js +89 -0
  349. package/esm/components/avatar/Avatar.tsx +163 -0
  350. package/esm/components/avatar/AvatarGroup.js +94 -0
  351. package/esm/components/avatar/AvatarGroup.tsx +167 -0
  352. package/esm/components/avatar/index.d.ts +8 -0
  353. package/esm/components/avatar/index.js +3 -0
  354. package/esm/components/avatar/style/_avatar.scss +145 -0
  355. package/esm/components/avatar/style/dnb-avatar.css +218 -0
  356. package/esm/components/avatar/style/dnb-avatar.min.css +1 -0
  357. package/esm/components/avatar/style/dnb-avatar.scss +12 -0
  358. package/esm/components/avatar/style/index.d.ts +6 -0
  359. package/esm/components/avatar/style/index.js +1 -0
  360. package/esm/components/avatar/style/themes/dnb-avatar-theme-ui.css +36 -0
  361. package/esm/components/avatar/style/themes/dnb-avatar-theme-ui.min.css +1 -0
  362. package/esm/components/avatar/style/themes/dnb-avatar-theme-ui.scss +29 -0
  363. package/esm/components/avatar/style/themes/ui.js +1 -0
  364. package/esm/components/avatar/style.js +1 -0
  365. package/esm/components/breadcrumb/BreadcrumbItem.js +3 -3
  366. package/esm/components/breadcrumb/BreadcrumbItem.tsx +2 -2
  367. package/esm/components/button/Button.js +1 -1
  368. package/esm/components/button/style/themes/dnb-button-theme-ui.scss +3 -0
  369. package/esm/components/date-picker/DatePicker.js +4 -2
  370. package/esm/components/date-picker/DatePickerFooter.d.ts +1 -0
  371. package/esm/components/date-picker/DatePickerFooter.js +10 -6
  372. package/esm/components/dropdown/Dropdown.d.ts +4 -3
  373. package/esm/components/form-label/FormLabel.d.ts +1 -1
  374. package/esm/components/heading/Heading.d.ts +2 -2
  375. package/esm/components/heading/HeadingProvider.d.ts +2 -2
  376. package/esm/components/help-button/HelpButton.d.ts +1 -1
  377. package/esm/components/help-button/HelpButtonInstance.d.ts +3 -2
  378. package/esm/components/icon/Icon.d.ts +1 -1
  379. package/esm/components/index.d.ts +6 -0
  380. package/esm/components/index.js +4 -1
  381. package/esm/components/info-card/InfoCard.js +140 -0
  382. package/esm/components/info-card/InfoCard.tsx +249 -0
  383. package/esm/components/info-card/index.d.ts +8 -0
  384. package/esm/components/info-card/index.js +3 -0
  385. package/esm/components/info-card/style/_info-card.scss +52 -0
  386. package/esm/components/info-card/style/dnb-info-card.css +135 -0
  387. package/esm/components/info-card/style/dnb-info-card.min.css +1 -0
  388. package/esm/components/info-card/style/dnb-info-card.scss +12 -0
  389. package/esm/components/info-card/style/index.d.ts +6 -0
  390. package/esm/components/info-card/style/index.js +1 -0
  391. package/esm/components/info-card/style.js +1 -0
  392. package/esm/components/input/Input.d.ts +2 -1
  393. package/esm/components/lib.js +7 -1
  394. package/esm/components/number-format/NumberFormat.d.ts +2 -2
  395. package/esm/components/pagination/Pagination.js +7 -0
  396. package/esm/components/radio/Radio.d.ts +1 -1
  397. package/esm/components/radio/RadioGroup.d.ts +1 -1
  398. package/esm/components/slider/Slider.d.ts +1 -1
  399. package/esm/components/step-indicator/StepIndicator.d.ts +3 -3
  400. package/esm/components/step-indicator/StepIndicatorContext.d.ts +1 -1
  401. package/esm/components/step-indicator/StepIndicatorItem.d.ts +1 -1
  402. package/esm/components/step-indicator/StepIndicatorSidebar.d.ts +3 -3
  403. package/esm/components/step-indicator/StepIndicatorTriggerButton.d.ts +1 -1
  404. package/esm/components/switch/Switch.d.ts +1 -1
  405. package/esm/components/tabs/Tabs.d.ts +4 -4
  406. package/esm/components/tabs/TabsContentWrapper.d.ts +1 -1
  407. package/esm/components/tabs/TabsCustomContent.d.ts +1 -1
  408. package/esm/components/tag/Tag.js +84 -25
  409. package/esm/components/tag/Tag.tsx +133 -34
  410. package/esm/components/tag/TagContext.js +2 -0
  411. package/esm/components/tag/TagContext.tsx +3 -0
  412. package/esm/components/tag/TagGroup.js +60 -0
  413. package/esm/components/tag/TagGroup.tsx +80 -0
  414. package/esm/components/tag/style/_tag.scss +80 -16
  415. package/esm/components/tag/style/dnb-tag.css +849 -33
  416. package/esm/components/tag/style/dnb-tag.min.css +1 -1
  417. package/esm/components/tag/style/dnb-tag.scss +3 -0
  418. package/esm/components/tag/style/themes/_tag-mixins.scss +18 -0
  419. package/esm/components/timeline/Timeline.js +57 -0
  420. package/esm/components/timeline/Timeline.tsx +91 -0
  421. package/esm/components/timeline/TimelineItem.js +112 -0
  422. package/esm/components/timeline/TimelineItem.tsx +193 -0
  423. package/esm/components/timeline/index.d.ts +8 -0
  424. package/esm/components/timeline/index.js +3 -0
  425. package/esm/components/timeline/style/_timeline.scss +42 -0
  426. package/esm/components/timeline/style/dnb-timeline.css +307 -0
  427. package/esm/components/timeline/style/dnb-timeline.min.css +1 -0
  428. package/esm/components/timeline/style/dnb-timeline.scss +12 -0
  429. package/esm/components/timeline/style/index.d.ts +6 -0
  430. package/esm/components/timeline/style/index.js +1 -0
  431. package/esm/components/timeline/style/themes/dnb-timeline-theme-ui.css +185 -0
  432. package/esm/components/timeline/style/themes/dnb-timeline-theme-ui.min.css +1 -0
  433. package/esm/components/timeline/style/themes/dnb-timeline-theme-ui.scss +105 -0
  434. package/esm/components/timeline/style/themes/ui.js +1 -0
  435. package/esm/components/timeline/style.js +1 -0
  436. package/esm/components/toggle-button/ToggleButton.d.ts +2 -2
  437. package/esm/components/toggle-button/ToggleButtonGroup.d.ts +1 -1
  438. package/esm/dnb-ui-components.min.mjs +4 -4
  439. package/esm/dnb-ui-elements.min.mjs +1 -1
  440. package/esm/dnb-ui-extensions.min.mjs +3 -3
  441. package/esm/dnb-ui-lib.min.mjs +4 -4
  442. package/esm/dnb-ui-web-components.min.mjs +4 -4
  443. package/esm/elements/Img.d.ts +1 -1
  444. package/esm/extensions/payment-card/PaymentCard.d.ts +1 -1
  445. package/esm/extensions/payment-card/style/_payment-card.scss +0 -1
  446. package/esm/extensions/payment-card/style/dnb-payment-card.css +0 -1
  447. package/esm/extensions/payment-card/style/dnb-payment-card.min.css +1 -1
  448. package/esm/fragments/drawer-list/DrawerListProvider.js +1 -0
  449. package/esm/index.d.ts +6 -0
  450. package/esm/index.js +4 -1
  451. package/esm/shared/Context.js +10 -4
  452. package/esm/shared/locales/en-GB.js +5 -0
  453. package/esm/shared/locales/nb-NO.js +5 -0
  454. package/esm/style/dnb-ui-components.css +710 -34
  455. package/esm/style/dnb-ui-components.min.css +3 -3
  456. package/esm/style/dnb-ui-components.scss +3 -0
  457. package/esm/style/dnb-ui-elements.css +3 -0
  458. package/esm/style/dnb-ui-elements.min.css +1 -1
  459. package/esm/style/dnb-ui-extensions.css +0 -1
  460. package/esm/style/dnb-ui-extensions.min.css +1 -1
  461. package/esm/style/dnb-ui-tags.css +6 -0
  462. package/esm/style/dnb-ui-tags.min.css +2 -2
  463. package/esm/style/elements/code.scss +3 -0
  464. package/esm/style/themes/theme-open-banking/dnb-theme-open-banking.css +226 -0
  465. package/esm/style/themes/theme-open-banking/dnb-theme-open-banking.min.css +3 -3
  466. package/esm/style/themes/theme-ui/dnb-theme-ui.css +226 -0
  467. package/esm/style/themes/theme-ui/dnb-theme-ui.min.css +3 -3
  468. package/esm/style/themes/theme-ui/dnb-theme-ui.scss +2 -0
  469. package/extensions/payment-card/PaymentCard.d.ts +1 -1
  470. package/extensions/payment-card/style/_payment-card.scss +0 -1
  471. package/extensions/payment-card/style/dnb-payment-card.css +0 -1
  472. package/extensions/payment-card/style/dnb-payment-card.min.css +1 -1
  473. package/fragments/drawer-list/DrawerListProvider.js +1 -0
  474. package/index.d.ts +6 -0
  475. package/index.js +4 -1
  476. package/package.json +2 -3
  477. package/shared/Context.js +10 -4
  478. package/shared/locales/en-GB.js +5 -0
  479. package/shared/locales/nb-NO.js +5 -0
  480. package/style/dnb-ui-components.css +710 -34
  481. package/style/dnb-ui-components.min.css +3 -3
  482. package/style/dnb-ui-components.scss +3 -0
  483. package/style/dnb-ui-elements.css +3 -0
  484. package/style/dnb-ui-elements.min.css +1 -1
  485. package/style/dnb-ui-extensions.css +0 -1
  486. package/style/dnb-ui-extensions.min.css +1 -1
  487. package/style/dnb-ui-tags.css +6 -0
  488. package/style/dnb-ui-tags.min.css +2 -2
  489. package/style/elements/code.scss +3 -0
  490. package/style/themes/theme-open-banking/dnb-theme-open-banking.css +226 -0
  491. package/style/themes/theme-open-banking/dnb-theme-open-banking.min.css +3 -3
  492. package/style/themes/theme-ui/dnb-theme-ui.css +226 -0
  493. package/style/themes/theme-ui/dnb-theme-ui.min.css +3 -3
  494. package/style/themes/theme-ui/dnb-theme-ui.scss +2 -0
  495. package/umd/dnb-ui-components.min.js +5 -5
  496. package/umd/dnb-ui-elements.min.js +3 -3
  497. package/umd/dnb-ui-extensions.min.js +3 -3
  498. package/umd/dnb-ui-lib.min.js +5 -5
  499. package/umd/dnb-ui-web-components.min.js +5 -5
@@ -0,0 +1,307 @@
1
+ /*
2
+ * DNB Timeline
3
+ *
4
+ */
5
+ /**
6
+ * This file is only used to make components independent
7
+ * so that they can get imported individually, without the core styles
8
+ *
9
+ */
10
+ /*
11
+ * Utilities
12
+ */
13
+ /*
14
+ * Scopes
15
+ *
16
+ */
17
+ /*
18
+ * Document Reset
19
+ *
20
+ */
21
+ .dnb-timeline {
22
+ font-family: 'DNB', sans-serif;
23
+ font-family: var(--font-family-default);
24
+ font-weight: normal;
25
+ font-weight: var(--font-weight-basis);
26
+ font-size: 1rem;
27
+ font-size: var(--font-size-small);
28
+ font-style: normal;
29
+ line-height: 1.5rem;
30
+ line-height: var(--line-height-basis);
31
+ color: #333;
32
+ color: var(--color-black-80, #333);
33
+ -moz-osx-font-smoothing: grayscale;
34
+ -webkit-font-smoothing: antialiased;
35
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
36
+ /**
37
+ * Ensure consistency and use the same as HTML reset -> html {...}
38
+ * between base and code package
39
+ */
40
+ -moz-tab-size: 4;
41
+ -o-tab-size: 4;
42
+ tab-size: 4;
43
+ -ms-text-size-adjust: 100%;
44
+ -webkit-text-size-adjust: 100%;
45
+ word-break: break-word;
46
+ /**
47
+ * 1. Remove repeating backgrounds in all browsers (opinionated).
48
+ * 2. Add border box sizing in all browsers (opinionated).
49
+ */
50
+ /**
51
+ * 1. Add text decoration inheritance in all browsers (opinionated).
52
+ * 2. Add vertical alignment inheritance in all browsers (opinionated).
53
+ */
54
+ margin: 0;
55
+ padding: 0; }
56
+ .dnb-timeline *,
57
+ .dnb-timeline ::before,
58
+ .dnb-timeline ::after {
59
+ background-repeat: no-repeat;
60
+ /* 1 */
61
+ -webkit-box-sizing: border-box;
62
+ box-sizing: border-box;
63
+ /* 2 */ }
64
+ .dnb-timeline ::before,
65
+ .dnb-timeline ::after {
66
+ text-decoration: inherit;
67
+ /* 1 */
68
+ vertical-align: inherit;
69
+ /* 2 */ }
70
+
71
+ /*
72
+ * Timeline component
73
+ *
74
+ */
75
+ /*
76
+ * Timeline theme
77
+ *
78
+ */
79
+ /**
80
+ * This file is only used to make themes independent
81
+ * so that they can get imported individually, without the core styles
82
+ *
83
+ */
84
+ /*
85
+ * Utilities
86
+ */
87
+ /*
88
+ * Button mixins
89
+ *
90
+ */
91
+ :root {
92
+ --timeline-icon-height--small: var(--button-height--small);
93
+ --timeline-icon-width--small: var(--button-width--small);
94
+ --timeline-icon-border-radius--small: calc(var(--timeline-icon-height--small)/2);
95
+ --timeline-icon-border-radius--small: calc(
96
+ var(--timeline-icon-height--small) / 2
97
+ );
98
+ --timeline-icon-height--medium: var(--button-height--medium);
99
+ --timeline-icon-width--medium: var(--button-width--medium);
100
+ --timeline-icon-border-radius--medium: calc(var(--timeline-icon-height--medium)/2);
101
+ --timeline-icon-border-radius--medium: calc(
102
+ var(--timeline-icon-height--medium) / 2
103
+ );
104
+ --timeline-icon-width-diff: calc(var(--timeline-icon-width--medium)/2 - var(--timeline-icon-width--small)/2);
105
+ --timeline-icon-width-diff: calc(
106
+ (
107
+ var(--timeline-icon-width--medium) -
108
+ var(--timeline-icon-width--small)
109
+ ) / 2
110
+ );
111
+ --timeline-border-spacing: var(--spacing-small);
112
+ --timeline-border-spacing--icon-adjusted: calc(var(--timeline-icon-width-diff) + var(--timeline-border-spacing));
113
+ --timeline-border-spacing--icon-adjusted: calc(
114
+ var(--timeline-icon-width-diff) + var(--timeline-border-spacing)
115
+ ); }
116
+
117
+ .dnb-timeline__item {
118
+ margin-left: 0.25rem;
119
+ margin-left: calc(
120
+ (
121
+ 2rem -
122
+ 1.5rem) / 2
123
+ );
124
+ margin-left: var(--timeline-icon-width-diff); }
125
+ .dnb-timeline__item__label__icon {
126
+ width: 1.5rem;
127
+ width: var(--timeline-icon-width--small);
128
+ line-height: 1.5rem;
129
+ line-height: var(--timeline-icon-height--small);
130
+ border-radius: 0.75rem;
131
+ border-radius: calc(
132
+ 1.5rem / 2
133
+ );
134
+ border-radius: var(--timeline-icon-border-radius--small);
135
+ color: #333;
136
+ color: var(--color-black-80);
137
+ background-color: #fff;
138
+ background-color: var(--color-white);
139
+ --border-color: var(--color-black-80);
140
+ -webkit-box-shadow: inset 0 0 0 0.0625rem var(--border-color);
141
+ box-shadow: inset 0 0 0 0.0625rem var(--border-color);
142
+ /* iOS fix - because "inset" works not fine with border-radius */
143
+ /* Safari fix - because "inset" works not fine with border-radius if the user zooms the page */
144
+ border-color: transparent; }
145
+ @supports (-webkit-touch-callout: none) {
146
+ .dnb-timeline__item__label__icon {
147
+ -webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
148
+ box-shadow: 0 0 0 0.0625rem var(--border-color); } }
149
+ @media not all and (min-resolution: 0.001dpcm) {
150
+ @supports (-webkit-appearance: none) and (stroke-color: transparent) and (not (-webkit-overflow-scrolling: touch)) {
151
+ .dnb-timeline__item__label__icon {
152
+ -webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
153
+ box-shadow: 0 0 0 0.0625rem var(--border-color); } } }
154
+ @media screen and (-ms-high-contrast: none) {
155
+ .dnb-timeline__item__label__icon {
156
+ -webkit-box-shadow: inset 0 0 0 1px #333;
157
+ box-shadow: inset 0 0 0 1px #333;
158
+ -webkit-box-shadow: inset 0 0 0 1px var(--color-black-80);
159
+ box-shadow: inset 0 0 0 1px var(--color-black-80); } }
160
+ .dnb-timeline__item__label__name {
161
+ margin-left: 1.25rem;
162
+ margin-left: calc(
163
+ calc(
164
+ (
165
+ 2rem -
166
+ 1.5rem) / 2
167
+ ) + 1rem);
168
+ margin-left: var(--timeline-border-spacing--icon-adjusted);
169
+ font-size: 1rem;
170
+ font-size: var(--font-size-small);
171
+ line-height: 1.25rem;
172
+ line-height: var(--line-height-small); }
173
+ .dnb-timeline__item__content {
174
+ margin-left: 0.75rem;
175
+ margin-left: calc(1.5rem / 2);
176
+ margin-left: calc(var(--timeline-icon-width--small)/2);
177
+ margin-left: calc(var(--timeline-icon-width--small) / 2);
178
+ padding-left: 2rem;
179
+ padding-left: calc(1.5rem / 2 + calc(
180
+ calc(
181
+ (
182
+ 2rem -
183
+ 1.5rem) / 2
184
+ ) + 1rem));
185
+ padding-left: calc(var(--timeline-icon-width--small)/2 + var(--timeline-border-spacing--icon-adjusted));
186
+ padding-left: calc(var(--timeline-icon-width--small) / 2 + var(--timeline-border-spacing--icon-adjusted));
187
+ border-left: 1px dashed #737373;
188
+ border-left: 1px dashed var(--color-black-55); }
189
+ .dnb-timeline__item--completed .dnb-timeline__item__content {
190
+ border-left: 1px solid #333;
191
+ border-left: 1px solid var(--color-black-80); }
192
+ .dnb-timeline__item--completed .dnb-timeline__item__label__name {
193
+ color: #333;
194
+ color: var(--color-black-80); }
195
+ .dnb-timeline__item--current .dnb-timeline__item__content {
196
+ margin-left: 1rem;
197
+ margin-left: calc(2rem / 2);
198
+ margin-left: calc(var(--timeline-icon-width--medium)/2);
199
+ margin-left: calc(var(--timeline-icon-width--medium) / 2);
200
+ padding-left: 2rem;
201
+ padding-left: calc(2rem / 2 + 1rem);
202
+ padding-left: calc(var(--timeline-icon-width--medium)/2 + var(--timeline-border-spacing));
203
+ padding-left: calc(var(--timeline-icon-width--medium) / 2 + var(--timeline-border-spacing)); }
204
+ .dnb-timeline__item--current .dnb-timeline__item__label__name {
205
+ margin-left: 1rem;
206
+ margin-left: var(--timeline-border-spacing);
207
+ font-weight: 500;
208
+ font-weight: var(--font-weight-medium);
209
+ font-size: 1.125rem;
210
+ font-size: var(--font-size-basis);
211
+ line-height: 1.5rem;
212
+ line-height: var(--line-height-basis); }
213
+ .dnb-timeline__item--current .dnb-timeline__item__label__icon {
214
+ width: 2rem;
215
+ width: var(--timeline-icon-width--medium);
216
+ line-height: 2rem;
217
+ line-height: var(--timeline-icon-height--medium);
218
+ border-radius: 1rem;
219
+ border-radius: calc(
220
+ 2rem / 2
221
+ );
222
+ border-radius: var(--timeline-icon-border-radius--medium); }
223
+ .dnb-timeline__item--current {
224
+ margin-left: 0; }
225
+ .dnb-timeline__item--upcoming .dnb-timeline__item__label__name {
226
+ font-weight: normal;
227
+ font-weight: var(--font-weight-basis);
228
+ color: #737373;
229
+ color: var(--color-black-55); }
230
+ .dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
231
+ color: #737373;
232
+ color: var(--color-black-55);
233
+ background-color: #f8f8f8;
234
+ background-color: var(--color-black-3);
235
+ --border-color: var(--color-black-3);
236
+ -webkit-box-shadow: inset 0 0 0 0.0625rem var(--border-color);
237
+ box-shadow: inset 0 0 0 0.0625rem var(--border-color);
238
+ /* iOS fix - because "inset" works not fine with border-radius */
239
+ /* Safari fix - because "inset" works not fine with border-radius if the user zooms the page */
240
+ border-color: transparent; }
241
+ @supports (-webkit-touch-callout: none) {
242
+ .dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
243
+ -webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
244
+ box-shadow: 0 0 0 0.0625rem var(--border-color); } }
245
+ @media not all and (min-resolution: 0.001dpcm) {
246
+ @supports (-webkit-appearance: none) and (stroke-color: transparent) and (not (-webkit-overflow-scrolling: touch)) {
247
+ .dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
248
+ -webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
249
+ box-shadow: 0 0 0 0.0625rem var(--border-color); } } }
250
+ @media screen and (-ms-high-contrast: none) {
251
+ .dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
252
+ -webkit-box-shadow: inset 0 0 0 1px #f8f8f8;
253
+ box-shadow: inset 0 0 0 1px #f8f8f8;
254
+ -webkit-box-shadow: inset 0 0 0 1px var(--color-black-3);
255
+ box-shadow: inset 0 0 0 1px var(--color-black-3); } }
256
+ .dnb-timeline__item:only-child {
257
+ margin-left: 0; }
258
+ .dnb-timeline__item:last-child .dnb-timeline__item__content {
259
+ border-left: none; }
260
+
261
+ .dnb-timeline {
262
+ display: -webkit-box;
263
+ display: -ms-flexbox;
264
+ display: flex;
265
+ -webkit-box-orient: vertical;
266
+ -webkit-box-direction: normal;
267
+ -ms-flex-direction: column;
268
+ flex-direction: column; }
269
+ .dnb-timeline__item__label {
270
+ display: -webkit-box;
271
+ display: -ms-flexbox;
272
+ display: flex;
273
+ -webkit-box-align: center;
274
+ -ms-flex-align: center;
275
+ align-items: center;
276
+ text-align: left;
277
+ padding: 0; }
278
+ .dnb-timeline__item__label__icon {
279
+ display: -webkit-box;
280
+ display: -ms-flexbox;
281
+ display: flex;
282
+ -ms-flex-negative: 0;
283
+ flex-shrink: 0;
284
+ -webkit-box-align: center;
285
+ -ms-flex-align: center;
286
+ align-items: center;
287
+ height: auto;
288
+ -webkit-box-pack: center;
289
+ -ms-flex-pack: center;
290
+ justify-content: center;
291
+ padding: 0; }
292
+ .dnb-timeline__item__label__name {
293
+ cursor: text; }
294
+ .dnb-timeline__item__content {
295
+ padding-bottom: 1rem;
296
+ padding-bottom: var(--spacing-small); }
297
+ .dnb-timeline__item__content__date {
298
+ cursor: text;
299
+ font-size: 0.875rem;
300
+ font-size: var(--font-size-x-small);
301
+ font-weight: normal;
302
+ font-weight: var(--font-weight-basis);
303
+ color: #737373;
304
+ color: var(--color-black-55); }
305
+ .dnb-timeline__item__content__info {
306
+ padding-top: 0.5rem;
307
+ padding-top: var(--spacing-x-small); }
@@ -0,0 +1 @@
1
+ .dnb-timeline{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;color:var(--color-black-80,#333);font-family:DNB,sans-serif;font-family:var(--font-family-default);font-size:1rem;font-size:var(--font-size-small);font-style:normal;font-weight:400;font-weight:var(--font-weight-basis);line-height:1.5rem;line-height:var(--line-height-basis);margin:0;padding:0;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-break:break-word}.dnb-timeline *,.dnb-timeline :after,.dnb-timeline :before{background-repeat:no-repeat;-webkit-box-sizing:border-box;box-sizing:border-box}.dnb-timeline :after,.dnb-timeline :before{text-decoration:inherit;vertical-align:inherit}:root{--timeline-icon-height--small:var(--button-height--small);--timeline-icon-width--small:var(--button-width--small);--timeline-icon-border-radius--small:calc(var(--timeline-icon-height--small)/2);--timeline-icon-height--medium:var(--button-height--medium);--timeline-icon-width--medium:var(--button-width--medium);--timeline-icon-border-radius--medium:calc(var(--timeline-icon-height--medium)/2);--timeline-icon-width-diff:calc(var(--timeline-icon-width--medium)/2 - var(--timeline-icon-width--small)/2);--timeline-border-spacing:var(--spacing-small);--timeline-border-spacing--icon-adjusted:calc(var(--timeline-icon-width-diff) + var(--timeline-border-spacing))}.dnb-timeline__item{margin-left:.25rem;margin-left:var(--timeline-icon-width-diff)}.dnb-timeline__item__label__icon{--border-color:var(--color-black-80);background-color:#fff;background-color:var(--color-white);border-color:transparent;border-radius:.75rem;border-radius:var(--timeline-icon-border-radius--small);-webkit-box-shadow:inset 0 0 0 .0625rem var(--border-color);box-shadow:inset 0 0 0 .0625rem var(--border-color);color:#333;color:var(--color-black-80);line-height:1.5rem;line-height:var(--timeline-icon-height--small);width:1.5rem;width:var(--timeline-icon-width--small)}@supports (-webkit-touch-callout:none){.dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent) and (not (-webkit-overflow-scrolling:touch)){.dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}}@media screen and (-ms-high-contrast:none){.dnb-timeline__item__label__icon{-webkit-box-shadow:inset 0 0 0 1px #333;box-shadow:inset 0 0 0 1px #333;-webkit-box-shadow:inset 0 0 0 1px var(--color-black-80);box-shadow:inset 0 0 0 1px var(--color-black-80)}}.dnb-timeline__item__label__name{font-size:1rem;font-size:var(--font-size-small);line-height:1.25rem;line-height:var(--line-height-small);margin-left:1.25rem;margin-left:var(--timeline-border-spacing--icon-adjusted)}.dnb-timeline__item__content{border-left:1px dashed #737373;border-left:1px dashed var(--color-black-55);margin-left:.75rem;margin-left:calc(var(--timeline-icon-width--small)/2);padding-left:2rem;padding-left:calc(var(--timeline-icon-width--small)/2 + var(--timeline-border-spacing--icon-adjusted))}.dnb-timeline__item--completed .dnb-timeline__item__content{border-left:1px solid #333;border-left:1px solid var(--color-black-80)}.dnb-timeline__item--completed .dnb-timeline__item__label__name{color:#333;color:var(--color-black-80)}.dnb-timeline__item--current .dnb-timeline__item__content{margin-left:1rem;margin-left:calc(var(--timeline-icon-width--medium)/2);padding-left:2rem;padding-left:calc(var(--timeline-icon-width--medium)/2 + var(--timeline-border-spacing))}.dnb-timeline__item--current .dnb-timeline__item__label__name{font-size:1.125rem;font-size:var(--font-size-basis);font-weight:500;font-weight:var(--font-weight-medium);line-height:1.5rem;line-height:var(--line-height-basis);margin-left:1rem;margin-left:var(--timeline-border-spacing)}.dnb-timeline__item--current .dnb-timeline__item__label__icon{border-radius:1rem;border-radius:var(--timeline-icon-border-radius--medium);line-height:2rem;line-height:var(--timeline-icon-height--medium);width:2rem;width:var(--timeline-icon-width--medium)}.dnb-timeline__item--current{margin-left:0}.dnb-timeline__item--upcoming .dnb-timeline__item__label__name{color:#737373;color:var(--color-black-55);font-weight:400;font-weight:var(--font-weight-basis)}.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{--border-color:var(--color-black-3);background-color:#f8f8f8;background-color:var(--color-black-3);border-color:transparent;-webkit-box-shadow:inset 0 0 0 .0625rem var(--border-color);box-shadow:inset 0 0 0 .0625rem var(--border-color);color:#737373;color:var(--color-black-55)}@supports (-webkit-touch-callout:none){.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent) and (not (-webkit-overflow-scrolling:touch)){.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}}@media screen and (-ms-high-contrast:none){.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{-webkit-box-shadow:inset 0 0 0 1px #f8f8f8;box-shadow:inset 0 0 0 1px #f8f8f8;-webkit-box-shadow:inset 0 0 0 1px var(--color-black-3);box-shadow:inset 0 0 0 1px var(--color-black-3)}}.dnb-timeline__item:only-child{margin-left:0}.dnb-timeline__item:last-child .dnb-timeline__item__content{border-left:none}.dnb-timeline{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.dnb-timeline__item__label{text-align:left}.dnb-timeline__item__label,.dnb-timeline__item__label__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;padding:0}.dnb-timeline__item__label__icon{-ms-flex-negative:0;-webkit-box-pack:center;-ms-flex-pack:center;flex-shrink:0;height:auto;justify-content:center}.dnb-timeline__item__label__name{cursor:text}.dnb-timeline__item__content{padding-bottom:1rem;padding-bottom:var(--spacing-small)}.dnb-timeline__item__content__date{color:#737373;color:var(--color-black-55);cursor:text;font-size:.875rem;font-size:var(--font-size-x-small);font-weight:400;font-weight:var(--font-weight-basis)}.dnb-timeline__item__content__info{padding-top:.5rem;padding-top:var(--spacing-x-small)}
@@ -0,0 +1,12 @@
1
+ /*
2
+ * DNB Timeline
3
+ *
4
+ */
5
+
6
+ @import '../../../style/components/imports.scss';
7
+
8
+ .dnb-timeline {
9
+ @include componentReset();
10
+ }
11
+
12
+ @import './_timeline.scss';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Web Style Import
3
+ *
4
+ */
5
+
6
+ import './dnb-timeline.scss'
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./dnb-timeline.min.css");
@@ -0,0 +1,185 @@
1
+ /*
2
+ * Timeline theme
3
+ *
4
+ */
5
+ /**
6
+ * This file is only used to make themes independent
7
+ * so that they can get imported individually, without the core styles
8
+ *
9
+ */
10
+ /*
11
+ * Utilities
12
+ */
13
+ /*
14
+ * Button mixins
15
+ *
16
+ */
17
+ :root {
18
+ --timeline-icon-height--small: var(--button-height--small);
19
+ --timeline-icon-width--small: var(--button-width--small);
20
+ --timeline-icon-border-radius--small: calc(var(--timeline-icon-height--small)/2);
21
+ --timeline-icon-border-radius--small: calc(
22
+ var(--timeline-icon-height--small) / 2
23
+ );
24
+ --timeline-icon-height--medium: var(--button-height--medium);
25
+ --timeline-icon-width--medium: var(--button-width--medium);
26
+ --timeline-icon-border-radius--medium: calc(var(--timeline-icon-height--medium)/2);
27
+ --timeline-icon-border-radius--medium: calc(
28
+ var(--timeline-icon-height--medium) / 2
29
+ );
30
+ --timeline-icon-width-diff: calc(var(--timeline-icon-width--medium)/2 - var(--timeline-icon-width--small)/2);
31
+ --timeline-icon-width-diff: calc(
32
+ (
33
+ var(--timeline-icon-width--medium) -
34
+ var(--timeline-icon-width--small)
35
+ ) / 2
36
+ );
37
+ --timeline-border-spacing: var(--spacing-small);
38
+ --timeline-border-spacing--icon-adjusted: calc(var(--timeline-icon-width-diff) + var(--timeline-border-spacing));
39
+ --timeline-border-spacing--icon-adjusted: calc(
40
+ var(--timeline-icon-width-diff) + var(--timeline-border-spacing)
41
+ ); }
42
+
43
+ .dnb-timeline__item {
44
+ margin-left: 0.25rem;
45
+ margin-left: calc(
46
+ (
47
+ 2rem -
48
+ 1.5rem) / 2
49
+ );
50
+ margin-left: var(--timeline-icon-width-diff); }
51
+ .dnb-timeline__item__label__icon {
52
+ width: 1.5rem;
53
+ width: var(--timeline-icon-width--small);
54
+ line-height: 1.5rem;
55
+ line-height: var(--timeline-icon-height--small);
56
+ border-radius: 0.75rem;
57
+ border-radius: calc(
58
+ 1.5rem / 2
59
+ );
60
+ border-radius: var(--timeline-icon-border-radius--small);
61
+ color: #333;
62
+ color: var(--color-black-80);
63
+ background-color: #fff;
64
+ background-color: var(--color-white);
65
+ --border-color: var(--color-black-80);
66
+ -webkit-box-shadow: inset 0 0 0 0.0625rem var(--border-color);
67
+ box-shadow: inset 0 0 0 0.0625rem var(--border-color);
68
+ /* iOS fix - because "inset" works not fine with border-radius */
69
+ /* Safari fix - because "inset" works not fine with border-radius if the user zooms the page */
70
+ border-color: transparent; }
71
+ @supports (-webkit-touch-callout: none) {
72
+ .dnb-timeline__item__label__icon {
73
+ -webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
74
+ box-shadow: 0 0 0 0.0625rem var(--border-color); } }
75
+ @media not all and (min-resolution: 0.001dpcm) {
76
+ @supports (-webkit-appearance: none) and (stroke-color: transparent) and (not (-webkit-overflow-scrolling: touch)) {
77
+ .dnb-timeline__item__label__icon {
78
+ -webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
79
+ box-shadow: 0 0 0 0.0625rem var(--border-color); } } }
80
+ @media screen and (-ms-high-contrast: none) {
81
+ .dnb-timeline__item__label__icon {
82
+ -webkit-box-shadow: inset 0 0 0 1px #333;
83
+ box-shadow: inset 0 0 0 1px #333;
84
+ -webkit-box-shadow: inset 0 0 0 1px var(--color-black-80);
85
+ box-shadow: inset 0 0 0 1px var(--color-black-80); } }
86
+ .dnb-timeline__item__label__name {
87
+ margin-left: 1.25rem;
88
+ margin-left: calc(
89
+ calc(
90
+ (
91
+ 2rem -
92
+ 1.5rem) / 2
93
+ ) + 1rem);
94
+ margin-left: var(--timeline-border-spacing--icon-adjusted);
95
+ font-size: 1rem;
96
+ font-size: var(--font-size-small);
97
+ line-height: 1.25rem;
98
+ line-height: var(--line-height-small); }
99
+ .dnb-timeline__item__content {
100
+ margin-left: 0.75rem;
101
+ margin-left: calc(1.5rem / 2);
102
+ margin-left: calc(var(--timeline-icon-width--small)/2);
103
+ margin-left: calc(var(--timeline-icon-width--small) / 2);
104
+ padding-left: 2rem;
105
+ padding-left: calc(1.5rem / 2 + calc(
106
+ calc(
107
+ (
108
+ 2rem -
109
+ 1.5rem) / 2
110
+ ) + 1rem));
111
+ padding-left: calc(var(--timeline-icon-width--small)/2 + var(--timeline-border-spacing--icon-adjusted));
112
+ padding-left: calc(var(--timeline-icon-width--small) / 2 + var(--timeline-border-spacing--icon-adjusted));
113
+ border-left: 1px dashed #737373;
114
+ border-left: 1px dashed var(--color-black-55); }
115
+ .dnb-timeline__item--completed .dnb-timeline__item__content {
116
+ border-left: 1px solid #333;
117
+ border-left: 1px solid var(--color-black-80); }
118
+ .dnb-timeline__item--completed .dnb-timeline__item__label__name {
119
+ color: #333;
120
+ color: var(--color-black-80); }
121
+ .dnb-timeline__item--current .dnb-timeline__item__content {
122
+ margin-left: 1rem;
123
+ margin-left: calc(2rem / 2);
124
+ margin-left: calc(var(--timeline-icon-width--medium)/2);
125
+ margin-left: calc(var(--timeline-icon-width--medium) / 2);
126
+ padding-left: 2rem;
127
+ padding-left: calc(2rem / 2 + 1rem);
128
+ padding-left: calc(var(--timeline-icon-width--medium)/2 + var(--timeline-border-spacing));
129
+ padding-left: calc(var(--timeline-icon-width--medium) / 2 + var(--timeline-border-spacing)); }
130
+ .dnb-timeline__item--current .dnb-timeline__item__label__name {
131
+ margin-left: 1rem;
132
+ margin-left: var(--timeline-border-spacing);
133
+ font-weight: 500;
134
+ font-weight: var(--font-weight-medium);
135
+ font-size: 1.125rem;
136
+ font-size: var(--font-size-basis);
137
+ line-height: 1.5rem;
138
+ line-height: var(--line-height-basis); }
139
+ .dnb-timeline__item--current .dnb-timeline__item__label__icon {
140
+ width: 2rem;
141
+ width: var(--timeline-icon-width--medium);
142
+ line-height: 2rem;
143
+ line-height: var(--timeline-icon-height--medium);
144
+ border-radius: 1rem;
145
+ border-radius: calc(
146
+ 2rem / 2
147
+ );
148
+ border-radius: var(--timeline-icon-border-radius--medium); }
149
+ .dnb-timeline__item--current {
150
+ margin-left: 0; }
151
+ .dnb-timeline__item--upcoming .dnb-timeline__item__label__name {
152
+ font-weight: normal;
153
+ font-weight: var(--font-weight-basis);
154
+ color: #737373;
155
+ color: var(--color-black-55); }
156
+ .dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
157
+ color: #737373;
158
+ color: var(--color-black-55);
159
+ background-color: #f8f8f8;
160
+ background-color: var(--color-black-3);
161
+ --border-color: var(--color-black-3);
162
+ -webkit-box-shadow: inset 0 0 0 0.0625rem var(--border-color);
163
+ box-shadow: inset 0 0 0 0.0625rem var(--border-color);
164
+ /* iOS fix - because "inset" works not fine with border-radius */
165
+ /* Safari fix - because "inset" works not fine with border-radius if the user zooms the page */
166
+ border-color: transparent; }
167
+ @supports (-webkit-touch-callout: none) {
168
+ .dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
169
+ -webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
170
+ box-shadow: 0 0 0 0.0625rem var(--border-color); } }
171
+ @media not all and (min-resolution: 0.001dpcm) {
172
+ @supports (-webkit-appearance: none) and (stroke-color: transparent) and (not (-webkit-overflow-scrolling: touch)) {
173
+ .dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
174
+ -webkit-box-shadow: 0 0 0 0.0625rem var(--border-color);
175
+ box-shadow: 0 0 0 0.0625rem var(--border-color); } } }
176
+ @media screen and (-ms-high-contrast: none) {
177
+ .dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon {
178
+ -webkit-box-shadow: inset 0 0 0 1px #f8f8f8;
179
+ box-shadow: inset 0 0 0 1px #f8f8f8;
180
+ -webkit-box-shadow: inset 0 0 0 1px var(--color-black-3);
181
+ box-shadow: inset 0 0 0 1px var(--color-black-3); } }
182
+ .dnb-timeline__item:only-child {
183
+ margin-left: 0; }
184
+ .dnb-timeline__item:last-child .dnb-timeline__item__content {
185
+ border-left: none; }
@@ -0,0 +1 @@
1
+ :root{--timeline-icon-height--small:var(--button-height--small);--timeline-icon-width--small:var(--button-width--small);--timeline-icon-border-radius--small:calc(var(--timeline-icon-height--small)/2);--timeline-icon-height--medium:var(--button-height--medium);--timeline-icon-width--medium:var(--button-width--medium);--timeline-icon-border-radius--medium:calc(var(--timeline-icon-height--medium)/2);--timeline-icon-width-diff:calc(var(--timeline-icon-width--medium)/2 - var(--timeline-icon-width--small)/2);--timeline-border-spacing:var(--spacing-small);--timeline-border-spacing--icon-adjusted:calc(var(--timeline-icon-width-diff) + var(--timeline-border-spacing))}.dnb-timeline__item{margin-left:.25rem;margin-left:var(--timeline-icon-width-diff)}.dnb-timeline__item__label__icon{--border-color:var(--color-black-80);background-color:#fff;background-color:var(--color-white);border-color:transparent;border-radius:.75rem;border-radius:var(--timeline-icon-border-radius--small);-webkit-box-shadow:inset 0 0 0 .0625rem var(--border-color);box-shadow:inset 0 0 0 .0625rem var(--border-color);color:#333;color:var(--color-black-80);line-height:1.5rem;line-height:var(--timeline-icon-height--small);width:1.5rem;width:var(--timeline-icon-width--small)}@supports (-webkit-touch-callout:none){.dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent) and (not (-webkit-overflow-scrolling:touch)){.dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}}@media screen and (-ms-high-contrast:none){.dnb-timeline__item__label__icon{-webkit-box-shadow:inset 0 0 0 1px #333;box-shadow:inset 0 0 0 1px #333;-webkit-box-shadow:inset 0 0 0 1px var(--color-black-80);box-shadow:inset 0 0 0 1px var(--color-black-80)}}.dnb-timeline__item__label__name{font-size:1rem;font-size:var(--font-size-small);line-height:1.25rem;line-height:var(--line-height-small);margin-left:1.25rem;margin-left:var(--timeline-border-spacing--icon-adjusted)}.dnb-timeline__item__content{border-left:1px dashed #737373;border-left:1px dashed var(--color-black-55);margin-left:.75rem;margin-left:calc(var(--timeline-icon-width--small)/2);padding-left:2rem;padding-left:calc(var(--timeline-icon-width--small)/2 + var(--timeline-border-spacing--icon-adjusted))}.dnb-timeline__item--completed .dnb-timeline__item__content{border-left:1px solid #333;border-left:1px solid var(--color-black-80)}.dnb-timeline__item--completed .dnb-timeline__item__label__name{color:#333;color:var(--color-black-80)}.dnb-timeline__item--current .dnb-timeline__item__content{margin-left:1rem;margin-left:calc(var(--timeline-icon-width--medium)/2);padding-left:2rem;padding-left:calc(var(--timeline-icon-width--medium)/2 + var(--timeline-border-spacing))}.dnb-timeline__item--current .dnb-timeline__item__label__name{font-size:1.125rem;font-size:var(--font-size-basis);font-weight:500;font-weight:var(--font-weight-medium);line-height:1.5rem;line-height:var(--line-height-basis);margin-left:1rem;margin-left:var(--timeline-border-spacing)}.dnb-timeline__item--current .dnb-timeline__item__label__icon{border-radius:1rem;border-radius:var(--timeline-icon-border-radius--medium);line-height:2rem;line-height:var(--timeline-icon-height--medium);width:2rem;width:var(--timeline-icon-width--medium)}.dnb-timeline__item--current{margin-left:0}.dnb-timeline__item--upcoming .dnb-timeline__item__label__name{color:#737373;color:var(--color-black-55);font-weight:400;font-weight:var(--font-weight-basis)}.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{--border-color:var(--color-black-3);background-color:#f8f8f8;background-color:var(--color-black-3);border-color:transparent;-webkit-box-shadow:inset 0 0 0 .0625rem var(--border-color);box-shadow:inset 0 0 0 .0625rem var(--border-color);color:#737373;color:var(--color-black-55)}@supports (-webkit-touch-callout:none){.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none) and (stroke-color:transparent) and (not (-webkit-overflow-scrolling:touch)){.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{-webkit-box-shadow:0 0 0 .0625rem var(--border-color);box-shadow:0 0 0 .0625rem var(--border-color)}}}@media screen and (-ms-high-contrast:none){.dnb-timeline__item--upcoming:not(.dnb-skeleton) .dnb-timeline__item__label__icon{-webkit-box-shadow:inset 0 0 0 1px #f8f8f8;box-shadow:inset 0 0 0 1px #f8f8f8;-webkit-box-shadow:inset 0 0 0 1px var(--color-black-3);box-shadow:inset 0 0 0 1px var(--color-black-3)}}.dnb-timeline__item:only-child{margin-left:0}.dnb-timeline__item:last-child .dnb-timeline__item__content{border-left:none}
@@ -0,0 +1,105 @@
1
+ /*
2
+ * Timeline theme
3
+ *
4
+ */
5
+
6
+ @import '../../../../style/themes/imports.scss';
7
+ @import '../../../button/style/themes/_button-mixins.scss';
8
+
9
+ :root {
10
+ --timeline-icon-height--small: var(--button-height--small);
11
+ --timeline-icon-width--small: var(--button-width--small);
12
+ --timeline-icon-border-radius--small: calc(
13
+ var(--timeline-icon-height--small) / 2
14
+ );
15
+ --timeline-icon-height--medium: var(--button-height--medium);
16
+ --timeline-icon-width--medium: var(--button-width--medium);
17
+ --timeline-icon-border-radius--medium: calc(
18
+ var(--timeline-icon-height--medium) / 2
19
+ );
20
+ --timeline-icon-width-diff: calc(
21
+ (
22
+ var(--timeline-icon-width--medium) -
23
+ var(--timeline-icon-width--small)
24
+ ) / 2
25
+ );
26
+ --timeline-border-spacing: var(--spacing-small);
27
+ --timeline-border-spacing--icon-adjusted: calc(
28
+ var(--timeline-icon-width-diff) + var(--timeline-border-spacing)
29
+ );
30
+ }
31
+
32
+ @mixin centerBorder(
33
+ $width: var(--timeline-icon-width--medium),
34
+ $spacing: var(--timeline-border-spacing--icon-adjusted)
35
+ ) {
36
+ margin-left: calc(#{$width} / 2);
37
+ padding-left: calc(#{$width} / 2 + #{$spacing});
38
+ }
39
+
40
+ .dnb-timeline {
41
+ &__item {
42
+ margin-left: var(--timeline-icon-width-diff);
43
+ &__label {
44
+ &__icon {
45
+ width: var(--timeline-icon-width--small);
46
+ line-height: var(--timeline-icon-height--small);
47
+ border-radius: var(--timeline-icon-border-radius--small);
48
+ color: var(--color-black-80);
49
+ background-color: var(--color-white);
50
+ @include fakeBorder(var(--color-black-80), 0.0625rem, inset, true);
51
+ }
52
+ &__name {
53
+ margin-left: var(--timeline-border-spacing--icon-adjusted);
54
+ font-size: var(--font-size-small);
55
+ line-height: var(--line-height-small);
56
+ }
57
+ }
58
+ &__content {
59
+ @include centerBorder(var(--timeline-icon-width--small));
60
+ border-left: 1px dashed var(--color-black-55);
61
+ }
62
+
63
+ &--completed &__content {
64
+ border-left: 1px solid var(--color-black-80);
65
+ }
66
+ &--completed &__label__name {
67
+ color: var(--color-black-80);
68
+ }
69
+ &--current &__content {
70
+ @include centerBorder(
71
+ var(--timeline-icon-width--medium),
72
+ var(--timeline-border-spacing)
73
+ );
74
+ }
75
+ &--current &__label__name {
76
+ margin-left: var(--timeline-border-spacing);
77
+ font-weight: var(--font-weight-medium);
78
+ font-size: var(--font-size-basis);
79
+ line-height: var(--line-height-basis);
80
+ }
81
+ &--current &__label__icon {
82
+ width: var(--timeline-icon-width--medium);
83
+ line-height: var(--timeline-icon-height--medium);
84
+ border-radius: var(--timeline-icon-border-radius--medium);
85
+ }
86
+ &--current {
87
+ margin-left: 0;
88
+ }
89
+ &--upcoming &__label__name {
90
+ font-weight: var(--font-weight-basis);
91
+ color: var(--color-black-55);
92
+ }
93
+ &--upcoming:not(.dnb-skeleton) &__label__icon {
94
+ color: var(--color-black-55);
95
+ background-color: var(--color-black-3);
96
+ @include fakeBorder(var(--color-black-3), 0.0625rem, inset, true);
97
+ }
98
+ &:only-child {
99
+ margin-left: 0;
100
+ }
101
+ &:last-child &__content {
102
+ border-left: none;
103
+ }
104
+ }
105
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./dnb-timeline-theme-ui.min.css");
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+
3
+ require("./style/dnb-timeline.min.css");
@@ -64,7 +64,7 @@ export type ToggleButtonChildren = string | ((...args: any[]) => any);
64
64
  */
65
65
  export interface ToggleButtonProps extends React.HTMLProps<HTMLElement> {
66
66
  /**
67
- * The text shown in the ToggleButton.
67
+ * <em>(required)</em> the text shown in the ToggleButton.
68
68
  */
69
69
  text?: string;
70
70
 
@@ -121,7 +121,7 @@ export interface ToggleButtonProps extends React.HTMLProps<HTMLElement> {
121
121
  suffix?: ToggleButtonSuffix;
122
122
 
123
123
  /**
124
- * Defines the `value` as a string. Use it to get the value during the `on_change` event listener callback in the "ToggleButtonGroup".
124
+ * <em>(required)</em> defines the `value` as a string. Use it to get the value during the `on_change` event listener callback in the "ToggleButtonGroup".
125
125
  */
126
126
  value?: ToggleButtonValue;
127
127