@norges-domstoler/dds-components 4.3.0 → 5.2.0-beta.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 (632) hide show
  1. package/README.md +6 -0
  2. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.d.ts +0 -1
  3. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -1
  4. package/dist/cjs/components/Button/Button.d.ts +1 -2
  5. package/dist/cjs/components/Button/Button.stories.d.ts +2 -3
  6. package/dist/cjs/components/Button/Button.types.d.ts +2 -3
  7. package/dist/cjs/components/Card/Card.stories.d.ts +0 -1
  8. package/dist/cjs/components/Card/CardAccordion/CardAccordion.d.ts +0 -1
  9. package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.d.ts +0 -1
  10. package/dist/cjs/components/Checkbox/Checkbox.d.ts +0 -1
  11. package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +0 -1
  12. package/dist/cjs/components/Checkbox/Checkbox.styles.d.ts +0 -1
  13. package/dist/cjs/components/Checkbox/CheckboxGroup.d.ts +0 -1
  14. package/dist/cjs/components/Checkbox/CheckboxGroup.stories.d.ts +0 -1
  15. package/dist/cjs/components/Chip/Chip.d.ts +0 -1
  16. package/dist/cjs/components/Chip/Chip.stories.d.ts +0 -1
  17. package/dist/cjs/components/Chip/ChipGroup.stories.d.ts +0 -1
  18. package/dist/cjs/components/Datepicker/Datepicker.d.ts +0 -1
  19. package/dist/cjs/components/Datepicker/Datepicker.stories.d.ts +0 -1
  20. package/dist/cjs/components/DescriptionList/DescriptionList.d.ts +0 -1
  21. package/dist/cjs/components/DescriptionList/DescriptionList.stories.d.ts +0 -1
  22. package/dist/cjs/components/DescriptionList/DescriptionListDesc.d.ts +3 -5
  23. package/dist/cjs/components/DescriptionList/DescriptionListGroup.d.ts +0 -1
  24. package/dist/cjs/components/Divider/Divider.d.ts +0 -1
  25. package/dist/cjs/components/Divider/Divider.stories.d.ts +0 -1
  26. package/dist/cjs/components/Drawer/Drawer.stories.d.ts +0 -1
  27. package/dist/cjs/components/GlobalMessage/GlobalMessage.d.ts +0 -1
  28. package/dist/cjs/components/GlobalMessage/GlobalMessage.stories.d.ts +0 -1
  29. package/dist/cjs/components/GlobalMessage/GlobalMessage.tokens.d.ts +4 -9
  30. package/dist/cjs/components/Icon/Icon.d.ts +13 -0
  31. package/dist/cjs/components/Icon/Icon.stories.d.ts +21 -0
  32. package/dist/cjs/components/Icon/index.d.ts +1 -0
  33. package/dist/cjs/components/InputMessage/InputMessage.d.ts +0 -1
  34. package/dist/cjs/components/InputMessage/InputMessage.stories.d.ts +0 -1
  35. package/dist/cjs/components/InternalHeader/InternalHeader.d.ts +0 -1
  36. package/dist/cjs/components/InternalHeader/InternalHeader.stories.d.ts +0 -1
  37. package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +0 -1
  38. package/dist/cjs/components/InternalHeader/InternalHeader.types.d.ts +2 -3
  39. package/dist/cjs/components/List/List.d.ts +0 -1
  40. package/dist/cjs/components/List/List.stories.d.ts +0 -1
  41. package/dist/cjs/components/LocalMessage/LocalMessage.d.ts +0 -1
  42. package/dist/cjs/components/LocalMessage/LocalMessage.stories.d.ts +0 -1
  43. package/dist/cjs/components/LocalMessage/LocalMessage.tokens.d.ts +7 -18
  44. package/dist/cjs/components/Modal/Modal.stories.d.ts +0 -1
  45. package/dist/cjs/components/Modal/ModalBody.d.ts +0 -1
  46. package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +0 -1
  47. package/dist/cjs/components/OverflowMenu/OverflowMenu.stories.d.ts +0 -1
  48. package/dist/cjs/components/OverflowMenu/OverflowMenu.types.d.ts +3 -4
  49. package/dist/cjs/components/OverflowMenu/OverflowMenuItem.d.ts +4 -7
  50. package/dist/cjs/components/Pagination/Pagination.stories.d.ts +0 -1
  51. package/dist/cjs/components/Popover/Popover.stories.d.ts +0 -1
  52. package/dist/cjs/components/RadioButton/RadioButton.d.ts +0 -1
  53. package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +0 -1
  54. package/dist/cjs/components/RadioButton/RadioButton.styles.d.ts +0 -1
  55. package/dist/cjs/components/RadioButton/RadioButtonGroup.stories.d.ts +0 -1
  56. package/dist/cjs/components/Search/Search.stories.d.ts +0 -1
  57. package/dist/cjs/components/Search/Search.tokens.d.ts +13 -1
  58. package/dist/cjs/components/Select/CustomSelect.stories.d.ts +66 -0
  59. package/dist/cjs/components/Select/MultiSelect.stories.d.ts +1 -2
  60. package/dist/cjs/components/Select/Select.d.ts +4 -2
  61. package/dist/cjs/components/Select/Select.stories.d.ts +1 -2
  62. package/dist/cjs/components/Select/Select.styles.d.ts +0 -3
  63. package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +0 -1
  64. package/dist/cjs/components/SkipToContent/SkipToContent.stories.d.ts +0 -1
  65. package/dist/cjs/components/Spinner/Spinner.d.ts +0 -1
  66. package/dist/cjs/components/Spinner/Spinner.stories.d.ts +0 -1
  67. package/dist/cjs/components/Stepper/Step.d.ts +20 -0
  68. package/dist/cjs/components/Stepper/Stepper.context.d.ts +6 -0
  69. package/dist/cjs/components/Stepper/Stepper.d.ts +11 -0
  70. package/dist/cjs/components/Stepper/Stepper.stories.d.ts +25 -0
  71. package/dist/cjs/components/Stepper/Stepper.tokens.d.ts +39 -0
  72. package/dist/cjs/components/Stepper/index.d.ts +2 -0
  73. package/dist/cjs/components/Table/Table.stories.d.ts +0 -1
  74. package/dist/cjs/components/Tabs/Tab.d.ts +3 -4
  75. package/dist/cjs/components/Tabs/TabPanel.d.ts +0 -1
  76. package/dist/cjs/components/Tag/Tag.d.ts +0 -1
  77. package/dist/cjs/components/Tag/Tag.stories.d.ts +0 -1
  78. package/dist/cjs/components/TextInput/CharCounter.d.ts +0 -1
  79. package/dist/cjs/components/TextInput/TextInput.stories.d.ts +0 -1
  80. package/dist/cjs/components/TextInput/TextInput.styles.d.ts +0 -1
  81. package/dist/cjs/components/ToggleButton/ToggleButton.d.ts +3 -4
  82. package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +6 -2
  83. package/dist/cjs/components/ToggleButton/ToggleButtonGroup.d.ts +0 -1
  84. package/dist/cjs/components/ToggleButton/ToggleButtonGroup.stories.d.ts +0 -1
  85. package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +0 -1
  86. package/dist/cjs/components/Typography/Body.stories.d.ts +0 -1
  87. package/dist/cjs/components/Typography/Examples.stories.d.ts +0 -1
  88. package/dist/cjs/components/Typography/Typography.d.ts +1 -0
  89. package/dist/cjs/components/Typography/Typography.stories.d.ts +0 -1
  90. package/dist/cjs/components/VisuallyHidden/VisuallyHidden.d.ts +0 -1
  91. package/dist/cjs/components/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -1
  92. package/dist/cjs/helpers/Chevron/AnimatedChevronUpDown.d.ts +0 -1
  93. package/dist/cjs/helpers/Input/Input.styles.d.ts +0 -1
  94. package/dist/cjs/helpers/RequiredMarker/RequiredMarker.d.ts +0 -1
  95. package/dist/cjs/hooks/useFloatPosition.d.ts +0 -1
  96. package/dist/cjs/hooks/useFocusTrap.d.ts +0 -1
  97. package/dist/cjs/icons/icons.stories.d.ts +5 -0
  98. package/dist/cjs/icons/tsx/apps.d.ts +2 -0
  99. package/dist/cjs/icons/tsx/archive.d.ts +2 -0
  100. package/dist/cjs/icons/tsx/arrowDown.d.ts +2 -0
  101. package/dist/cjs/icons/tsx/arrowLeft.d.ts +2 -0
  102. package/dist/cjs/icons/tsx/arrowRight.d.ts +2 -0
  103. package/dist/cjs/icons/tsx/arrowUp.d.ts +2 -0
  104. package/dist/cjs/icons/tsx/attachment.d.ts +2 -0
  105. package/dist/cjs/icons/tsx/block.d.ts +2 -0
  106. package/dist/cjs/icons/tsx/book.d.ts +2 -0
  107. package/dist/cjs/icons/tsx/build.d.ts +2 -0
  108. package/dist/cjs/icons/tsx/buildCircled.d.ts +2 -0
  109. package/dist/cjs/icons/tsx/calendar.d.ts +2 -0
  110. package/dist/cjs/icons/tsx/calendarMonth.d.ts +2 -0
  111. package/dist/cjs/icons/tsx/calendarViewDay.d.ts +2 -0
  112. package/dist/cjs/icons/tsx/calendarViewMonth.d.ts +2 -0
  113. package/dist/cjs/icons/tsx/calendarViewWeek.d.ts +2 -0
  114. package/dist/cjs/icons/tsx/call.d.ts +2 -0
  115. package/dist/cjs/icons/tsx/chat.d.ts +2 -0
  116. package/dist/cjs/icons/tsx/check.d.ts +2 -0
  117. package/dist/cjs/icons/tsx/checkCircled.d.ts +2 -0
  118. package/dist/cjs/icons/tsx/checklist.d.ts +2 -0
  119. package/dist/cjs/icons/tsx/chevronDown.d.ts +2 -0
  120. package/dist/cjs/icons/tsx/chevronFirst.d.ts +2 -0
  121. package/dist/cjs/icons/tsx/chevronLargeLeft.d.ts +2 -0
  122. package/dist/cjs/icons/tsx/chevronLargeRight.d.ts +2 -0
  123. package/dist/cjs/icons/tsx/chevronLast.d.ts +2 -0
  124. package/dist/cjs/icons/tsx/chevronLeft.d.ts +2 -0
  125. package/dist/cjs/icons/tsx/chevronRight.d.ts +2 -0
  126. package/dist/cjs/icons/tsx/chevronUp.d.ts +2 -0
  127. package/dist/cjs/icons/tsx/close.d.ts +2 -0
  128. package/dist/cjs/icons/tsx/closeCircled.d.ts +2 -0
  129. package/dist/cjs/icons/tsx/cloud.d.ts +2 -0
  130. package/dist/cjs/icons/tsx/collapse.d.ts +2 -0
  131. package/dist/cjs/icons/tsx/comment.d.ts +2 -0
  132. package/dist/cjs/icons/tsx/copy.d.ts +2 -0
  133. package/dist/cjs/icons/tsx/court.d.ts +2 -0
  134. package/dist/cjs/icons/tsx/dateRange.d.ts +2 -0
  135. package/dist/cjs/icons/tsx/deaths.d.ts +2 -0
  136. package/dist/cjs/icons/tsx/download.d.ts +2 -0
  137. package/dist/cjs/icons/tsx/downloadDone.d.ts +2 -0
  138. package/dist/cjs/icons/tsx/dragHandle.d.ts +2 -0
  139. package/dist/cjs/icons/tsx/edit.d.ts +2 -0
  140. package/dist/cjs/icons/tsx/error.d.ts +2 -0
  141. package/dist/cjs/icons/tsx/exclaim.d.ts +2 -0
  142. package/dist/cjs/icons/tsx/expand.d.ts +2 -0
  143. package/dist/cjs/icons/tsx/facebook.d.ts +2 -0
  144. package/dist/cjs/icons/tsx/family.d.ts +2 -0
  145. package/dist/cjs/icons/tsx/feedback.d.ts +2 -0
  146. package/dist/cjs/icons/tsx/file.d.ts +2 -0
  147. package/dist/cjs/icons/tsx/fileAdd.d.ts +2 -0
  148. package/dist/cjs/icons/tsx/fileText.d.ts +2 -0
  149. package/dist/cjs/icons/tsx/filter.d.ts +2 -0
  150. package/dist/cjs/icons/tsx/filterList.d.ts +2 -0
  151. package/dist/cjs/icons/tsx/filterListOff.d.ts +2 -0
  152. package/dist/cjs/icons/tsx/filterOff.d.ts +2 -0
  153. package/dist/cjs/icons/tsx/findInPage.d.ts +2 -0
  154. package/dist/cjs/icons/tsx/folder.d.ts +2 -0
  155. package/dist/cjs/icons/tsx/folderAdd.d.ts +2 -0
  156. package/dist/cjs/icons/tsx/fullsceenExit.d.ts +2 -0
  157. package/dist/cjs/icons/tsx/fullscreen.d.ts +2 -0
  158. package/dist/cjs/icons/tsx/gavel.d.ts +2 -0
  159. package/dist/cjs/icons/tsx/help.d.ts +2 -0
  160. package/dist/cjs/icons/tsx/helpFilled.d.ts +2 -0
  161. package/dist/cjs/icons/tsx/home.d.ts +2 -0
  162. package/dist/cjs/icons/tsx/image.d.ts +2 -0
  163. package/dist/cjs/icons/tsx/index.d.ts +127 -0
  164. package/dist/cjs/icons/tsx/info.d.ts +2 -0
  165. package/dist/cjs/icons/tsx/instagram.d.ts +2 -0
  166. package/dist/cjs/icons/tsx/jordskifterett.d.ts +2 -0
  167. package/dist/cjs/icons/tsx/key.d.ts +2 -0
  168. package/dist/cjs/icons/tsx/lagmannsrett.d.ts +2 -0
  169. package/dist/cjs/icons/tsx/language.d.ts +2 -0
  170. package/dist/cjs/icons/tsx/link.d.ts +2 -0
  171. package/dist/cjs/icons/tsx/linkOff.d.ts +2 -0
  172. package/dist/cjs/icons/tsx/linkedIn.d.ts +2 -0
  173. package/dist/cjs/icons/tsx/list.d.ts +2 -0
  174. package/dist/cjs/icons/tsx/listAlt.d.ts +2 -0
  175. package/dist/cjs/icons/tsx/location.d.ts +2 -0
  176. package/dist/cjs/icons/tsx/lock.d.ts +2 -0
  177. package/dist/cjs/icons/tsx/lockOpen.d.ts +2 -0
  178. package/dist/cjs/icons/tsx/login.d.ts +2 -0
  179. package/dist/cjs/icons/tsx/logout.d.ts +2 -0
  180. package/dist/cjs/icons/tsx/mail.d.ts +2 -0
  181. package/dist/cjs/icons/tsx/mailOpen.d.ts +2 -0
  182. package/dist/cjs/icons/tsx/menu.d.ts +2 -0
  183. package/dist/cjs/icons/tsx/minus.d.ts +2 -0
  184. package/dist/cjs/icons/tsx/minusCircled.d.ts +2 -0
  185. package/dist/cjs/icons/tsx/moreHorizontal.d.ts +2 -0
  186. package/dist/cjs/icons/tsx/moreVertical.d.ts +2 -0
  187. package/dist/cjs/icons/tsx/notarial.d.ts +2 -0
  188. package/dist/cjs/icons/tsx/notifications.d.ts +2 -0
  189. package/dist/cjs/icons/tsx/notificationsOff.d.ts +2 -0
  190. package/dist/cjs/icons/tsx/onlineMeeting.d.ts +2 -0
  191. package/dist/cjs/icons/tsx/openExternal.d.ts +2 -0
  192. package/dist/cjs/icons/tsx/pdf.d.ts +2 -0
  193. package/dist/cjs/icons/tsx/person.d.ts +2 -0
  194. package/dist/cjs/icons/tsx/personAdd.d.ts +2 -0
  195. package/dist/cjs/icons/tsx/pin.d.ts +2 -0
  196. package/dist/cjs/icons/tsx/plus.d.ts +2 -0
  197. package/dist/cjs/icons/tsx/plusCircled.d.ts +2 -0
  198. package/dist/cjs/icons/tsx/print.d.ts +2 -0
  199. package/dist/cjs/icons/tsx/property.d.ts +2 -0
  200. package/dist/cjs/icons/tsx/publish.d.ts +2 -0
  201. package/dist/cjs/icons/tsx/questionAnswer.d.ts +2 -0
  202. package/dist/cjs/icons/tsx/receipt.d.ts +2 -0
  203. package/dist/cjs/icons/tsx/redo.d.ts +2 -0
  204. package/dist/cjs/icons/tsx/refresh.d.ts +2 -0
  205. package/dist/cjs/icons/tsx/replay.d.ts +2 -0
  206. package/dist/cjs/icons/tsx/search.d.ts +2 -0
  207. package/dist/cjs/icons/tsx/settings.d.ts +2 -0
  208. package/dist/cjs/icons/tsx/sms.d.ts +2 -0
  209. package/dist/cjs/icons/tsx/star.d.ts +2 -0
  210. package/dist/cjs/icons/tsx/starFilled.d.ts +2 -0
  211. package/dist/cjs/icons/tsx/sync.d.ts +2 -0
  212. package/dist/cjs/icons/tsx/time.d.ts +2 -0
  213. package/dist/cjs/icons/tsx/tingrett.d.ts +2 -0
  214. package/dist/cjs/icons/tsx/tip.d.ts +2 -0
  215. package/dist/cjs/icons/tsx/trash.d.ts +2 -0
  216. package/dist/cjs/icons/tsx/twitter.d.ts +2 -0
  217. package/dist/cjs/icons/tsx/undo.d.ts +2 -0
  218. package/dist/cjs/icons/tsx/unfoldLess.d.ts +2 -0
  219. package/dist/cjs/icons/tsx/unfoldMore.d.ts +2 -0
  220. package/dist/cjs/icons/tsx/upload.d.ts +2 -0
  221. package/dist/cjs/icons/tsx/visibilityOff.d.ts +2 -0
  222. package/dist/cjs/icons/tsx/visibilityOn.d.ts +2 -0
  223. package/dist/cjs/icons/tsx/warning.d.ts +2 -0
  224. package/dist/cjs/icons/tsx/zoomIn.d.ts +2 -0
  225. package/dist/cjs/icons/tsx/zoomOut.d.ts +2 -0
  226. package/dist/cjs/icons/utils/StyledSvg.d.ts +1 -0
  227. package/dist/cjs/icons/utils/index.d.ts +2 -0
  228. package/dist/cjs/icons/utils/propTypes.d.ts +5 -0
  229. package/dist/cjs/index.d.ts +3 -1
  230. package/dist/cjs/index.js +3672 -749
  231. package/dist/cjs/types/BaseComponentProps.d.ts +1 -1
  232. package/dist/components/Breadcrumbs/Breadcrumb.tokens.js +8 -7
  233. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -1
  234. package/dist/components/Breadcrumbs/Breadcrumbs.js +19 -19
  235. package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -1
  236. package/dist/components/Button/Button.d.ts +1 -2
  237. package/dist/components/Button/Button.js +8 -8
  238. package/dist/components/Button/Button.stories.d.ts +2 -3
  239. package/dist/components/Button/Button.types.d.ts +2 -3
  240. package/dist/components/Card/Card.stories.d.ts +0 -1
  241. package/dist/components/Card/CardAccordion/CardAccordion.d.ts +0 -1
  242. package/dist/components/Card/CardAccordion/CardAccordionBody.d.ts +0 -1
  243. package/dist/components/Checkbox/Checkbox.d.ts +0 -1
  244. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -1
  245. package/dist/components/Checkbox/Checkbox.styles.d.ts +0 -1
  246. package/dist/components/Checkbox/CheckboxGroup.d.ts +0 -1
  247. package/dist/components/Checkbox/CheckboxGroup.stories.d.ts +0 -1
  248. package/dist/components/Chip/Chip.d.ts +0 -1
  249. package/dist/components/Chip/Chip.js +2 -2
  250. package/dist/components/Chip/Chip.stories.d.ts +0 -1
  251. package/dist/components/Chip/ChipGroup.stories.d.ts +0 -1
  252. package/dist/components/Datepicker/Datepicker.d.ts +0 -1
  253. package/dist/components/Datepicker/Datepicker.js +1 -1
  254. package/dist/components/Datepicker/Datepicker.stories.d.ts +0 -1
  255. package/dist/components/DescriptionList/DescriptionList.d.ts +0 -1
  256. package/dist/components/DescriptionList/DescriptionList.stories.d.ts +0 -1
  257. package/dist/components/DescriptionList/DescriptionListDesc.d.ts +3 -5
  258. package/dist/components/DescriptionList/DescriptionListDesc.js +6 -10
  259. package/dist/components/DescriptionList/DescriptionListDesc.tokens.js +7 -4
  260. package/dist/components/DescriptionList/DescriptionListGroup.d.ts +0 -1
  261. package/dist/components/Divider/Divider.d.ts +0 -1
  262. package/dist/components/Divider/Divider.stories.d.ts +0 -1
  263. package/dist/components/Drawer/Drawer.js +2 -2
  264. package/dist/components/Drawer/Drawer.stories.d.ts +0 -1
  265. package/dist/components/GlobalMessage/GlobalMessage.d.ts +0 -1
  266. package/dist/components/GlobalMessage/GlobalMessage.js +5 -5
  267. package/dist/components/GlobalMessage/GlobalMessage.stories.d.ts +0 -1
  268. package/dist/components/GlobalMessage/GlobalMessage.tokens.d.ts +4 -9
  269. package/dist/components/GlobalMessage/GlobalMessage.tokens.js +8 -7
  270. package/dist/components/Icon/Icon.d.ts +13 -0
  271. package/dist/components/Icon/Icon.js +50 -0
  272. package/dist/components/Icon/Icon.stories.d.ts +21 -0
  273. package/dist/components/Icon/index.d.ts +1 -0
  274. package/dist/components/InputMessage/InputMessage.d.ts +0 -1
  275. package/dist/components/InputMessage/InputMessage.js +5 -5
  276. package/dist/components/InputMessage/InputMessage.stories.d.ts +0 -1
  277. package/dist/components/InternalHeader/InternalHeader.d.ts +0 -1
  278. package/dist/components/InternalHeader/InternalHeader.js +3 -3
  279. package/dist/components/InternalHeader/InternalHeader.stories.d.ts +0 -1
  280. package/dist/components/InternalHeader/InternalHeader.styles.d.ts +0 -1
  281. package/dist/components/InternalHeader/InternalHeader.types.d.ts +2 -3
  282. package/dist/components/List/List.d.ts +0 -1
  283. package/dist/components/List/List.stories.d.ts +0 -1
  284. package/dist/components/LocalMessage/LocalMessage.d.ts +0 -1
  285. package/dist/components/LocalMessage/LocalMessage.js +5 -5
  286. package/dist/components/LocalMessage/LocalMessage.stories.d.ts +0 -1
  287. package/dist/components/LocalMessage/LocalMessage.tokens.d.ts +7 -18
  288. package/dist/components/LocalMessage/LocalMessage.tokens.js +11 -11
  289. package/dist/components/Modal/Modal.js +2 -2
  290. package/dist/components/Modal/Modal.stories.d.ts +0 -1
  291. package/dist/components/Modal/ModalBody.d.ts +0 -1
  292. package/dist/components/OverflowMenu/OverflowMenu.d.ts +0 -1
  293. package/dist/components/OverflowMenu/OverflowMenu.js +3 -3
  294. package/dist/components/OverflowMenu/OverflowMenu.stories.d.ts +0 -1
  295. package/dist/components/OverflowMenu/OverflowMenu.types.d.ts +3 -4
  296. package/dist/components/OverflowMenu/OverflowMenuItem.d.ts +4 -7
  297. package/dist/components/OverflowMenu/OverflowMenuItem.js +10 -14
  298. package/dist/components/Pagination/Pagination.js +12 -12
  299. package/dist/components/Pagination/Pagination.stories.d.ts +0 -1
  300. package/dist/components/Popover/Popover.js +2 -2
  301. package/dist/components/Popover/Popover.stories.d.ts +0 -1
  302. package/dist/components/RadioButton/RadioButton.d.ts +0 -1
  303. package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -1
  304. package/dist/components/RadioButton/RadioButton.styles.d.ts +0 -1
  305. package/dist/components/RadioButton/RadioButtonGroup.stories.d.ts +0 -1
  306. package/dist/components/Search/Search.js +10 -4
  307. package/dist/components/Search/Search.stories.d.ts +0 -1
  308. package/dist/components/Search/Search.tokens.d.ts +13 -1
  309. package/dist/components/Search/Search.tokens.js +16 -3
  310. package/dist/components/Select/CustomSelect.stories.d.ts +66 -0
  311. package/dist/components/Select/MultiSelect.stories.d.ts +1 -2
  312. package/dist/components/Select/Select.d.ts +4 -2
  313. package/dist/components/Select/Select.js +30 -9
  314. package/dist/components/Select/Select.stories.d.ts +1 -2
  315. package/dist/components/Select/Select.styles.d.ts +0 -3
  316. package/dist/components/Select/Select.styles.js +12 -22
  317. package/dist/components/Select/Select.tokens.js +3 -0
  318. package/dist/components/SkipToContent/SkipToContent.d.ts +0 -1
  319. package/dist/components/SkipToContent/SkipToContent.stories.d.ts +0 -1
  320. package/dist/components/Spinner/Spinner.d.ts +0 -1
  321. package/dist/components/Spinner/Spinner.stories.d.ts +0 -1
  322. package/dist/components/Stepper/Step.d.ts +20 -0
  323. package/dist/components/Stepper/Step.js +114 -0
  324. package/dist/components/Stepper/Stepper.context.d.ts +6 -0
  325. package/dist/components/Stepper/Stepper.context.js +10 -0
  326. package/dist/components/Stepper/Stepper.d.ts +11 -0
  327. package/dist/components/Stepper/Stepper.js +66 -0
  328. package/dist/components/Stepper/Stepper.stories.d.ts +25 -0
  329. package/dist/components/Stepper/Stepper.tokens.d.ts +39 -0
  330. package/dist/components/Stepper/Stepper.tokens.js +49 -0
  331. package/dist/components/Stepper/index.d.ts +2 -0
  332. package/dist/components/Table/SortCell.js +15 -15
  333. package/dist/components/Table/Table.stories.d.ts +0 -1
  334. package/dist/components/Tabs/Tab.d.ts +3 -4
  335. package/dist/components/Tabs/Tab.js +6 -6
  336. package/dist/components/Tabs/TabPanel.d.ts +0 -1
  337. package/dist/components/Tag/Tag.d.ts +0 -1
  338. package/dist/components/Tag/Tag.stories.d.ts +0 -1
  339. package/dist/components/TextInput/CharCounter.d.ts +0 -1
  340. package/dist/components/TextInput/TextInput.js +18 -2
  341. package/dist/components/TextInput/TextInput.stories.d.ts +0 -1
  342. package/dist/components/TextInput/TextInput.styles.d.ts +0 -1
  343. package/dist/components/ToggleButton/ToggleButton.d.ts +3 -4
  344. package/dist/components/ToggleButton/ToggleButton.js +6 -6
  345. package/dist/components/ToggleButton/ToggleButton.stories.d.ts +6 -2
  346. package/dist/components/ToggleButton/ToggleButtonGroup.d.ts +0 -1
  347. package/dist/components/ToggleButton/ToggleButtonGroup.stories.d.ts +0 -1
  348. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -1
  349. package/dist/components/Typography/Body.stories.d.ts +0 -1
  350. package/dist/components/Typography/Examples.stories.d.ts +0 -1
  351. package/dist/components/Typography/Typography.d.ts +1 -0
  352. package/dist/components/Typography/Typography.js +9 -9
  353. package/dist/components/Typography/Typography.stories.d.ts +0 -1
  354. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +0 -1
  355. package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -1
  356. package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -1
  357. package/dist/helpers/Chevron/AnimatedChevronUpDown.d.ts +0 -1
  358. package/dist/helpers/Input/Input.styles.d.ts +0 -1
  359. package/dist/helpers/RequiredMarker/RequiredMarker.d.ts +0 -1
  360. package/dist/hooks/useFloatPosition.d.ts +0 -1
  361. package/dist/hooks/useFocusTrap.d.ts +0 -1
  362. package/dist/icons/icons.stories.d.ts +5 -0
  363. package/dist/icons/tsx/apps.d.ts +2 -0
  364. package/dist/icons/tsx/apps.js +25 -0
  365. package/dist/icons/tsx/archive.d.ts +2 -0
  366. package/dist/icons/tsx/archive.js +27 -0
  367. package/dist/icons/tsx/arrowDown.d.ts +2 -0
  368. package/dist/icons/tsx/arrowDown.js +25 -0
  369. package/dist/icons/tsx/arrowLeft.d.ts +2 -0
  370. package/dist/icons/tsx/arrowLeft.js +25 -0
  371. package/dist/icons/tsx/arrowRight.d.ts +2 -0
  372. package/dist/icons/tsx/arrowRight.js +25 -0
  373. package/dist/icons/tsx/arrowUp.d.ts +2 -0
  374. package/dist/icons/tsx/arrowUp.js +25 -0
  375. package/dist/icons/tsx/attachment.d.ts +2 -0
  376. package/dist/icons/tsx/attachment.js +25 -0
  377. package/dist/icons/tsx/block.d.ts +2 -0
  378. package/dist/icons/tsx/block.js +25 -0
  379. package/dist/icons/tsx/book.d.ts +2 -0
  380. package/dist/icons/tsx/book.js +27 -0
  381. package/dist/icons/tsx/build.d.ts +2 -0
  382. package/dist/icons/tsx/build.js +25 -0
  383. package/dist/icons/tsx/buildCircled.d.ts +2 -0
  384. package/dist/icons/tsx/buildCircled.js +31 -0
  385. package/dist/icons/tsx/calendar.d.ts +2 -0
  386. package/dist/icons/tsx/calendar.js +25 -0
  387. package/dist/icons/tsx/calendarMonth.d.ts +2 -0
  388. package/dist/icons/tsx/calendarMonth.js +25 -0
  389. package/dist/icons/tsx/calendarViewDay.d.ts +2 -0
  390. package/dist/icons/tsx/calendarViewDay.js +25 -0
  391. package/dist/icons/tsx/calendarViewMonth.d.ts +2 -0
  392. package/dist/icons/tsx/calendarViewMonth.js +25 -0
  393. package/dist/icons/tsx/calendarViewWeek.d.ts +2 -0
  394. package/dist/icons/tsx/calendarViewWeek.js +25 -0
  395. package/dist/icons/tsx/call.d.ts +2 -0
  396. package/dist/icons/tsx/call.js +25 -0
  397. package/dist/icons/tsx/chat.d.ts +2 -0
  398. package/dist/icons/tsx/chat.js +25 -0
  399. package/dist/icons/tsx/check.d.ts +2 -0
  400. package/dist/icons/tsx/check.js +25 -0
  401. package/dist/icons/tsx/checkCircled.d.ts +2 -0
  402. package/dist/icons/tsx/checkCircled.js +25 -0
  403. package/dist/icons/tsx/checklist.d.ts +2 -0
  404. package/dist/icons/tsx/checklist.js +25 -0
  405. package/dist/icons/tsx/chevronDown.d.ts +2 -0
  406. package/dist/icons/tsx/chevronDown.js +25 -0
  407. package/dist/icons/tsx/chevronFirst.d.ts +2 -0
  408. package/dist/icons/tsx/chevronFirst.js +25 -0
  409. package/dist/icons/tsx/chevronLargeLeft.d.ts +2 -0
  410. package/dist/icons/tsx/chevronLargeLeft.js +25 -0
  411. package/dist/icons/tsx/chevronLargeRight.d.ts +2 -0
  412. package/dist/icons/tsx/chevronLargeRight.js +25 -0
  413. package/dist/icons/tsx/chevronLast.d.ts +2 -0
  414. package/dist/icons/tsx/chevronLast.js +25 -0
  415. package/dist/icons/tsx/chevronLeft.d.ts +2 -0
  416. package/dist/icons/tsx/chevronLeft.js +25 -0
  417. package/dist/icons/tsx/chevronRight.d.ts +2 -0
  418. package/dist/icons/tsx/chevronRight.js +25 -0
  419. package/dist/icons/tsx/chevronUp.d.ts +2 -0
  420. package/dist/icons/tsx/chevronUp.js +25 -0
  421. package/dist/icons/tsx/close.d.ts +2 -0
  422. package/dist/icons/tsx/close.js +25 -0
  423. package/dist/icons/tsx/closeCircled.d.ts +2 -0
  424. package/dist/icons/tsx/closeCircled.js +25 -0
  425. package/dist/icons/tsx/cloud.d.ts +2 -0
  426. package/dist/icons/tsx/cloud.js +25 -0
  427. package/dist/icons/tsx/collapse.d.ts +2 -0
  428. package/dist/icons/tsx/collapse.js +25 -0
  429. package/dist/icons/tsx/comment.d.ts +2 -0
  430. package/dist/icons/tsx/comment.js +25 -0
  431. package/dist/icons/tsx/copy.d.ts +2 -0
  432. package/dist/icons/tsx/copy.js +25 -0
  433. package/dist/icons/tsx/court.d.ts +2 -0
  434. package/dist/icons/tsx/court.js +25 -0
  435. package/dist/icons/tsx/dateRange.d.ts +2 -0
  436. package/dist/icons/tsx/dateRange.js +25 -0
  437. package/dist/icons/tsx/deaths.d.ts +2 -0
  438. package/dist/icons/tsx/deaths.js +25 -0
  439. package/dist/icons/tsx/download.d.ts +2 -0
  440. package/dist/icons/tsx/download.js +25 -0
  441. package/dist/icons/tsx/downloadDone.d.ts +2 -0
  442. package/dist/icons/tsx/downloadDone.js +25 -0
  443. package/dist/icons/tsx/dragHandle.d.ts +2 -0
  444. package/dist/icons/tsx/dragHandle.js +25 -0
  445. package/dist/icons/tsx/edit.d.ts +2 -0
  446. package/dist/icons/tsx/edit.js +25 -0
  447. package/dist/icons/tsx/error.d.ts +2 -0
  448. package/dist/icons/tsx/error.js +25 -0
  449. package/dist/icons/tsx/exclaim.d.ts +2 -0
  450. package/dist/icons/tsx/exclaim.js +25 -0
  451. package/dist/icons/tsx/expand.d.ts +2 -0
  452. package/dist/icons/tsx/expand.js +25 -0
  453. package/dist/icons/tsx/facebook.d.ts +2 -0
  454. package/dist/icons/tsx/facebook.js +25 -0
  455. package/dist/icons/tsx/family.d.ts +2 -0
  456. package/dist/icons/tsx/family.js +25 -0
  457. package/dist/icons/tsx/feedback.d.ts +2 -0
  458. package/dist/icons/tsx/feedback.js +25 -0
  459. package/dist/icons/tsx/file.d.ts +2 -0
  460. package/dist/icons/tsx/file.js +25 -0
  461. package/dist/icons/tsx/fileAdd.d.ts +2 -0
  462. package/dist/icons/tsx/fileAdd.js +25 -0
  463. package/dist/icons/tsx/fileText.d.ts +2 -0
  464. package/dist/icons/tsx/fileText.js +25 -0
  465. package/dist/icons/tsx/filter.d.ts +2 -0
  466. package/dist/icons/tsx/filter.js +25 -0
  467. package/dist/icons/tsx/filterList.d.ts +2 -0
  468. package/dist/icons/tsx/filterList.js +25 -0
  469. package/dist/icons/tsx/filterListOff.d.ts +2 -0
  470. package/dist/icons/tsx/filterListOff.js +25 -0
  471. package/dist/icons/tsx/filterOff.d.ts +2 -0
  472. package/dist/icons/tsx/filterOff.js +25 -0
  473. package/dist/icons/tsx/findInPage.d.ts +2 -0
  474. package/dist/icons/tsx/findInPage.js +25 -0
  475. package/dist/icons/tsx/folder.d.ts +2 -0
  476. package/dist/icons/tsx/folder.js +25 -0
  477. package/dist/icons/tsx/folderAdd.d.ts +2 -0
  478. package/dist/icons/tsx/folderAdd.js +25 -0
  479. package/dist/icons/tsx/fullsceenExit.d.ts +2 -0
  480. package/dist/icons/tsx/fullsceenExit.js +25 -0
  481. package/dist/icons/tsx/fullscreen.d.ts +2 -0
  482. package/dist/icons/tsx/fullscreen.js +25 -0
  483. package/dist/icons/tsx/gavel.d.ts +2 -0
  484. package/dist/icons/tsx/gavel.js +31 -0
  485. package/dist/icons/tsx/help.d.ts +2 -0
  486. package/dist/icons/tsx/help.js +25 -0
  487. package/dist/icons/tsx/helpFilled.d.ts +2 -0
  488. package/dist/icons/tsx/helpFilled.js +25 -0
  489. package/dist/icons/tsx/home.d.ts +2 -0
  490. package/dist/icons/tsx/home.js +25 -0
  491. package/dist/icons/tsx/image.d.ts +2 -0
  492. package/dist/icons/tsx/image.js +25 -0
  493. package/dist/icons/tsx/index.d.ts +127 -0
  494. package/dist/icons/tsx/info.d.ts +2 -0
  495. package/dist/icons/tsx/info.js +25 -0
  496. package/dist/icons/tsx/instagram.d.ts +2 -0
  497. package/dist/icons/tsx/instagram.js +25 -0
  498. package/dist/icons/tsx/jordskifterett.d.ts +2 -0
  499. package/dist/icons/tsx/jordskifterett.js +26 -0
  500. package/dist/icons/tsx/key.d.ts +2 -0
  501. package/dist/icons/tsx/key.js +25 -0
  502. package/dist/icons/tsx/lagmannsrett.d.ts +2 -0
  503. package/dist/icons/tsx/lagmannsrett.js +25 -0
  504. package/dist/icons/tsx/language.d.ts +2 -0
  505. package/dist/icons/tsx/language.js +23 -0
  506. package/dist/icons/tsx/link.d.ts +2 -0
  507. package/dist/icons/tsx/link.js +25 -0
  508. package/dist/icons/tsx/linkOff.d.ts +2 -0
  509. package/dist/icons/tsx/linkOff.js +25 -0
  510. package/dist/icons/tsx/linkedIn.d.ts +2 -0
  511. package/dist/icons/tsx/linkedIn.js +27 -0
  512. package/dist/icons/tsx/list.d.ts +2 -0
  513. package/dist/icons/tsx/list.js +25 -0
  514. package/dist/icons/tsx/listAlt.d.ts +2 -0
  515. package/dist/icons/tsx/listAlt.js +25 -0
  516. package/dist/icons/tsx/location.d.ts +2 -0
  517. package/dist/icons/tsx/location.js +25 -0
  518. package/dist/icons/tsx/lock.d.ts +2 -0
  519. package/dist/icons/tsx/lock.js +25 -0
  520. package/dist/icons/tsx/lockOpen.d.ts +2 -0
  521. package/dist/icons/tsx/lockOpen.js +25 -0
  522. package/dist/icons/tsx/login.d.ts +2 -0
  523. package/dist/icons/tsx/login.js +25 -0
  524. package/dist/icons/tsx/logout.d.ts +2 -0
  525. package/dist/icons/tsx/logout.js +25 -0
  526. package/dist/icons/tsx/mail.d.ts +2 -0
  527. package/dist/icons/tsx/mail.js +25 -0
  528. package/dist/icons/tsx/mailOpen.d.ts +2 -0
  529. package/dist/icons/tsx/mailOpen.js +25 -0
  530. package/dist/icons/tsx/menu.d.ts +2 -0
  531. package/dist/icons/tsx/menu.js +25 -0
  532. package/dist/icons/tsx/minus.d.ts +2 -0
  533. package/dist/icons/tsx/minus.js +25 -0
  534. package/dist/icons/tsx/minusCircled.d.ts +2 -0
  535. package/dist/icons/tsx/minusCircled.js +25 -0
  536. package/dist/icons/tsx/moreHorizontal.d.ts +2 -0
  537. package/dist/icons/tsx/moreHorizontal.js +25 -0
  538. package/dist/icons/tsx/moreVertical.d.ts +2 -0
  539. package/dist/icons/tsx/moreVertical.js +25 -0
  540. package/dist/icons/tsx/notarial.d.ts +2 -0
  541. package/dist/icons/tsx/notarial.js +25 -0
  542. package/dist/icons/tsx/notifications.d.ts +2 -0
  543. package/dist/icons/tsx/notifications.js +25 -0
  544. package/dist/icons/tsx/notificationsOff.d.ts +2 -0
  545. package/dist/icons/tsx/notificationsOff.js +25 -0
  546. package/dist/icons/tsx/onlineMeeting.d.ts +2 -0
  547. package/dist/icons/tsx/onlineMeeting.js +25 -0
  548. package/dist/icons/tsx/openExternal.d.ts +2 -0
  549. package/dist/icons/tsx/openExternal.js +25 -0
  550. package/dist/icons/tsx/pdf.d.ts +2 -0
  551. package/dist/icons/tsx/pdf.js +25 -0
  552. package/dist/icons/tsx/person.d.ts +2 -0
  553. package/dist/icons/tsx/person.js +25 -0
  554. package/dist/icons/tsx/personAdd.d.ts +2 -0
  555. package/dist/icons/tsx/personAdd.js +25 -0
  556. package/dist/icons/tsx/pin.d.ts +2 -0
  557. package/dist/icons/tsx/pin.js +25 -0
  558. package/dist/icons/tsx/plus.d.ts +2 -0
  559. package/dist/icons/tsx/plus.js +25 -0
  560. package/dist/icons/tsx/plusCircled.d.ts +2 -0
  561. package/dist/icons/tsx/plusCircled.js +25 -0
  562. package/dist/icons/tsx/print.d.ts +2 -0
  563. package/dist/icons/tsx/print.js +27 -0
  564. package/dist/icons/tsx/property.d.ts +2 -0
  565. package/dist/icons/tsx/property.js +27 -0
  566. package/dist/icons/tsx/publish.d.ts +2 -0
  567. package/dist/icons/tsx/publish.js +25 -0
  568. package/dist/icons/tsx/questionAnswer.d.ts +2 -0
  569. package/dist/icons/tsx/questionAnswer.js +25 -0
  570. package/dist/icons/tsx/receipt.d.ts +2 -0
  571. package/dist/icons/tsx/receipt.js +25 -0
  572. package/dist/icons/tsx/redo.d.ts +2 -0
  573. package/dist/icons/tsx/redo.js +25 -0
  574. package/dist/icons/tsx/refresh.d.ts +2 -0
  575. package/dist/icons/tsx/refresh.js +25 -0
  576. package/dist/icons/tsx/replay.d.ts +2 -0
  577. package/dist/icons/tsx/replay.js +25 -0
  578. package/dist/icons/tsx/search.d.ts +2 -0
  579. package/dist/icons/tsx/search.js +25 -0
  580. package/dist/icons/tsx/settings.d.ts +2 -0
  581. package/dist/icons/tsx/settings.js +25 -0
  582. package/dist/icons/tsx/sms.d.ts +2 -0
  583. package/dist/icons/tsx/sms.js +25 -0
  584. package/dist/icons/tsx/star.d.ts +2 -0
  585. package/dist/icons/tsx/star.js +25 -0
  586. package/dist/icons/tsx/starFilled.d.ts +2 -0
  587. package/dist/icons/tsx/starFilled.js +25 -0
  588. package/dist/icons/tsx/sync.d.ts +2 -0
  589. package/dist/icons/tsx/sync.js +25 -0
  590. package/dist/icons/tsx/time.d.ts +2 -0
  591. package/dist/icons/tsx/time.js +25 -0
  592. package/dist/icons/tsx/tingrett.d.ts +2 -0
  593. package/dist/icons/tsx/tingrett.js +25 -0
  594. package/dist/icons/tsx/tip.d.ts +2 -0
  595. package/dist/icons/tsx/tip.js +25 -0
  596. package/dist/icons/tsx/trash.d.ts +2 -0
  597. package/dist/icons/tsx/trash.js +25 -0
  598. package/dist/icons/tsx/twitter.d.ts +2 -0
  599. package/dist/icons/tsx/twitter.js +25 -0
  600. package/dist/icons/tsx/undo.d.ts +2 -0
  601. package/dist/icons/tsx/undo.js +25 -0
  602. package/dist/icons/tsx/unfoldLess.d.ts +2 -0
  603. package/dist/icons/tsx/unfoldLess.js +25 -0
  604. package/dist/icons/tsx/unfoldMore.d.ts +2 -0
  605. package/dist/icons/tsx/unfoldMore.js +25 -0
  606. package/dist/icons/tsx/upload.d.ts +2 -0
  607. package/dist/icons/tsx/upload.js +25 -0
  608. package/dist/icons/tsx/visibilityOff.d.ts +2 -0
  609. package/dist/icons/tsx/visibilityOff.js +25 -0
  610. package/dist/icons/tsx/visibilityOn.d.ts +2 -0
  611. package/dist/icons/tsx/visibilityOn.js +25 -0
  612. package/dist/icons/tsx/warning.d.ts +2 -0
  613. package/dist/icons/tsx/warning.js +27 -0
  614. package/dist/icons/tsx/zoomIn.d.ts +2 -0
  615. package/dist/icons/tsx/zoomIn.js +25 -0
  616. package/dist/icons/tsx/zoomOut.d.ts +2 -0
  617. package/dist/icons/tsx/zoomOut.js +25 -0
  618. package/dist/icons/utils/StyledSvg.d.ts +1 -0
  619. package/dist/icons/utils/StyledSvg.js +8 -0
  620. package/dist/icons/utils/index.d.ts +2 -0
  621. package/dist/icons/utils/propTypes.d.ts +5 -0
  622. package/dist/index.d.ts +3 -1
  623. package/dist/index.js +130 -1
  624. package/dist/types/BaseComponentProps.d.ts +1 -1
  625. package/package.json +3 -5
  626. package/dist/cjs/components/IconWrapper/IconWrapper.d.ts +0 -19
  627. package/dist/cjs/components/IconWrapper/IconWrapper.stories.d.ts +0 -22
  628. package/dist/cjs/components/IconWrapper/index.d.ts +0 -1
  629. package/dist/components/IconWrapper/IconWrapper.d.ts +0 -19
  630. package/dist/components/IconWrapper/IconWrapper.js +0 -42
  631. package/dist/components/IconWrapper/IconWrapper.stories.d.ts +0 -22
  632. package/dist/components/IconWrapper/index.d.ts +0 -1
@@ -0,0 +1,50 @@
1
+ import { __rest } from 'tslib';
2
+ import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
3
+ import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
4
+
5
+ var getSize = function getSize(iconSize) {
6
+ switch (iconSize) {
7
+ case 'small':
8
+ return ddsBaseTokens.iconSizes.DdsIconsizeSmall;
9
+
10
+ case 'medium':
11
+ return ddsBaseTokens.iconSizes.DdsIconsizeMedium;
12
+
13
+ case 'large':
14
+ return ddsBaseTokens.iconSizes.DdsIconsizeLarge;
15
+
16
+ case 'inherit':
17
+ return '1em';
18
+
19
+ default:
20
+ return ddsBaseTokens.iconSizes.DdsIconsizeMedium;
21
+ }
22
+ };
23
+
24
+ function Icon(props) {
25
+ var id = props.id,
26
+ _props$iconSize = props.iconSize,
27
+ iconSize = _props$iconSize === void 0 ? 'medium' : _props$iconSize,
28
+ _props$color = props.color,
29
+ color = _props$color === void 0 ? 'currentcolor' : _props$color,
30
+ icon = props.icon,
31
+ className = props.className,
32
+ _props$htmlProps = props.htmlProps,
33
+ htmlProps = _props$htmlProps === void 0 ? {} : _props$htmlProps,
34
+ rest = __rest(props, ["id", "iconSize", "color", "icon", "className", "htmlProps"]);
35
+
36
+ var title = htmlProps.title,
37
+ _htmlProps$ariaHidde = htmlProps['aria-hidden'],
38
+ ariaHidden = _htmlProps$ariaHidde === void 0 ? true : _htmlProps$ariaHidde;
39
+ var size = getSize(iconSize);
40
+ return icon(Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
41
+ title: title,
42
+ height: size,
43
+ width: size,
44
+ fill: color,
45
+ viewBox: '0 0 24 24',
46
+ 'aria-hidden': ariaHidden
47
+ }));
48
+ }
49
+
50
+ export { Icon };
@@ -0,0 +1,21 @@
1
+ import { Icon, IconProps } from '.';
2
+ declare const _default: {
3
+ title: string;
4
+ component: typeof Icon;
5
+ argTypes: {
6
+ color: {
7
+ control: {
8
+ type: string;
9
+ };
10
+ };
11
+ };
12
+ parameters: {
13
+ controls: {
14
+ exclude: string[];
15
+ };
16
+ };
17
+ };
18
+ export default _default;
19
+ export declare const Overview: (args: IconProps) => JSX.Element;
20
+ export declare const Default: (args: IconProps) => JSX.Element;
21
+ export declare const Inherit: (args: IconProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Icon';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseComponentProps } from '../../types';
3
2
  export declare type InputMessageType = 'error' | 'tip';
4
3
  export declare type InputMessageProps = BaseComponentProps<HTMLDivElement, {
@@ -1,11 +1,11 @@
1
1
  import { __rest } from 'tslib';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import styled, { css } from 'styled-components';
4
- import DangerOutlinedIcon from '@mui/icons-material/ReportProblemOutlined';
5
4
  import { inputMessageTokens } from './InputMessage.tokens.js';
6
5
  import { forwardRef } from 'react';
6
+ import { ErrorIcon } from '../../icons/tsx/error.js';
7
7
  import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
8
- import { IconWrapper } from '../IconWrapper/IconWrapper.js';
8
+ import { Icon } from '../Icon/Icon.js';
9
9
  import { Typography } from '../Typography/Typography.js';
10
10
 
11
11
  var InputMessageWrapper = styled.div.withConfig({
@@ -29,9 +29,9 @@ var InputMessage = /*#__PURE__*/forwardRef(function (props, ref) {
29
29
  });
30
30
  var isError = messageType === 'error';
31
31
  return jsxs(InputMessageWrapper, Object.assign({}, wrapperProps, {
32
- children: [isError && jsx(IconWrapper, {
33
- Icon: DangerOutlinedIcon,
34
- iconSize: "inline"
32
+ children: [isError && jsx(Icon, {
33
+ icon: ErrorIcon,
34
+ iconSize: "inherit"
35
35
  }), jsx(Typography, Object.assign({
36
36
  typographyType: isError ? 'supportingStyleLabel01' : 'supportingStyleHelperText01',
37
37
  as: "span",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputMessageProps } from '.';
3
2
  declare const _default: {
4
3
  title: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { InternalHeaderProps } from './InternalHeader.types';
3
2
  export declare const InternalHeader: (props: InternalHeaderProps) => JSX.Element;
@@ -2,11 +2,11 @@ import { slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBab
2
2
  import { __rest } from 'tslib';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4
  import { useState, useRef } from 'react';
5
- import MoreVertOutlinedIcon from '@mui/icons-material/MoreVertOutlined';
6
- import MenuOutlinedIcon from '@mui/icons-material/MenuOutlined';
7
5
  import { Navigation, NavigationList, Wrapper, BannerWrapper, BannerLeftWrapper, LovisaWrapper, ApplicationNameWrapper, ContextMenuGroup, StyledOverflowMenu } from './InternalHeader.styles.js';
8
6
  import { NavigationItem } from './NavigationItem.js';
9
7
  import { InternalHeaderListItem } from './InternalHeaderListItem.js';
8
+ import { MenuIcon } from '../../icons/tsx/menu.js';
9
+ import { MoreVerticalIcon } from '../../icons/tsx/moreVertical.js';
10
10
  import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
11
11
  import { Typography } from '../Typography/Typography.js';
12
12
  import { Button } from '../Button/Button.js';
@@ -100,7 +100,7 @@ var InternalHeader = function InternalHeader(props) {
100
100
  })), navigation, hasContextMenu && jsxs(ContextMenuGroup, {
101
101
  children: [jsx(Button, {
102
102
  ref: buttonRef,
103
- Icon: hasNavInContextMenu ? MenuOutlinedIcon : MoreVertOutlinedIcon,
103
+ icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
104
104
  appearance: "borderless",
105
105
  purpose: "secondary",
106
106
  onClick: handleContextMenuClick,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InternalHeaderProps } from '.';
3
2
  declare const _default: {
4
3
  title: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InternalHeaderProps } from './InternalHeader.types';
3
2
  export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
4
3
  declare type BannerProps = {
@@ -1,6 +1,5 @@
1
- import { OverridableComponent } from '@mui/material/OverridableComponent';
2
- import { SvgIconTypeMap } from '@mui/material/SvgIcon';
3
1
  import { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
2
+ import { SvgIcon } from '../../icons/utils';
4
3
  import { BaseComponentProps } from '../../types';
5
4
  declare type NavigationLinkProps = {
6
5
  href: string;
@@ -9,7 +8,7 @@ declare type NavigationLinkProps = {
9
8
  declare type ContextMenuElementProps = {
10
9
  title: string;
11
10
  href?: string;
12
- Icon?: OverridableComponent<SvgIconTypeMap<Record<string, unknown>, 'svg'>>;
11
+ icon?: SvgIcon;
13
12
  onClick?: () => void;
14
13
  } & (AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>);
15
14
  declare type InternaHeaderUserProps = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TypographyBodyType } from '../Typography';
3
2
  import { BaseComponentPropsWithChildren } from '../../types';
4
3
  export declare type ListType = 'ordered' | 'unordered';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ListProps } from '.';
3
2
  declare const _default: {
4
3
  title: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Property } from 'csstype';
3
2
  import { BaseComponentPropsWithChildren } from '../../types';
4
3
  export declare type LocalMessagePurpose = 'info' | 'warning' | 'danger' | 'confidential' | 'success' | 'tips';
@@ -2,14 +2,14 @@ import { slicedToArray as _slicedToArray } from '../../_virtual/_rollupPluginBab
2
2
  import { __rest } from 'tslib';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
  import styled, { css } from 'styled-components';
5
- import CloseOutlinedIcon from '@mui/icons-material/CloseOutlined';
6
5
  import { forwardRef, useState } from 'react';
7
6
  import { localMessageTokens } from './LocalMessage.tokens.js';
8
7
  import { typographyTokens } from '../Typography/Typography.tokens.js';
9
- import { IconWrapper } from '../IconWrapper/IconWrapper.js';
8
+ import { Icon } from '../Icon/Icon.js';
10
9
  import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
11
10
  import { Typography } from '../Typography/Typography.js';
12
11
  import { Button } from '../Button/Button.js';
12
+ import { CloseIcon } from '../../icons/tsx/close.js';
13
13
 
14
14
  var Container = styled.div.withConfig({
15
15
  displayName: "LocalMessage__Container",
@@ -27,7 +27,7 @@ var Container = styled.div.withConfig({
27
27
  var width = _ref4.width;
28
28
  return width;
29
29
  });
30
- var MessageIconWrapper = styled(IconWrapper).withConfig({
30
+ var MessageIconWrapper = styled(Icon).withConfig({
31
31
  displayName: "LocalMessage__MessageIconWrapper",
32
32
  componentId: "sc-kmfp8w-1"
33
33
  })(["margin-right:", ";"], localMessageTokens.icon.marginRight);
@@ -82,7 +82,7 @@ var LocalMessage = /*#__PURE__*/forwardRef(function (props, ref) {
82
82
  };
83
83
 
84
84
  var messageIconWrapper = jsx(MessageIconWrapper, {
85
- Icon: localMessageTokens.icon[purpose].icon,
85
+ icon: localMessageTokens.icon[purpose].icon,
86
86
  color: localMessageTokens.icon[purpose].color
87
87
  });
88
88
 
@@ -93,7 +93,7 @@ var LocalMessage = /*#__PURE__*/forwardRef(function (props, ref) {
93
93
  }));
94
94
 
95
95
  var closeButton = closable && jsx(Button, {
96
- Icon: CloseOutlinedIcon,
96
+ icon: CloseIcon,
97
97
  purpose: buttonPurpose,
98
98
  appearance: "borderless",
99
99
  onClick: function onClick() {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LocalMessageProps } from './LocalMessage';
3
2
  declare const _default: {
4
3
  title: string;
@@ -1,5 +1,6 @@
1
1
  import { CSSObject } from 'styled-components';
2
2
  import { Property } from 'csstype';
3
+ import { ErrorIcon, TipIcon, InfoIcon, WarningIcon, CheckCircledIcon } from '../../icons/tsx';
3
4
  export declare const localMessageTokens: {
4
5
  container: {
5
6
  base: CSSObject;
@@ -41,39 +42,27 @@ export declare const localMessageTokens: {
41
42
  icon: {
42
43
  marginRight: string;
43
44
  info: {
44
- icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
45
- muiName: string;
46
- };
45
+ icon: typeof InfoIcon;
47
46
  color: string;
48
47
  };
49
48
  danger: {
50
- icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
51
- muiName: string;
52
- };
49
+ icon: typeof ErrorIcon;
53
50
  color: string;
54
51
  };
55
52
  warning: {
56
- icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
57
- muiName: string;
58
- };
53
+ icon: typeof WarningIcon;
59
54
  color: string;
60
55
  };
61
56
  success: {
62
- icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
63
- muiName: string;
64
- };
57
+ icon: typeof CheckCircledIcon;
65
58
  color: string;
66
59
  };
67
60
  tips: {
68
- icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
69
- muiName: string;
70
- };
61
+ icon: typeof TipIcon;
71
62
  color: string;
72
63
  };
73
64
  confidential: {
74
- icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
75
- muiName: string;
76
- };
65
+ icon: typeof ErrorIcon;
77
66
  color: string;
78
67
  };
79
68
  };
@@ -1,9 +1,9 @@
1
1
  import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
2
- import CheckCircleOutlinedIcon from '@mui/icons-material/CheckCircleOutlined';
3
- import WarningOutlinedIcon from '@mui/icons-material/ReportOutlined';
4
- import DangerOutlinedIcon from '@mui/icons-material/ReportProblemOutlined';
5
- import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
6
- import EmojiObjectsOutlinedIcon from '@mui/icons-material/EmojiObjectsOutlined';
2
+ import { CheckCircledIcon } from '../../icons/tsx/checkCircled.js';
3
+ import { TipIcon } from '../../icons/tsx/tip.js';
4
+ import { InfoIcon } from '../../icons/tsx/info.js';
5
+ import { ErrorIcon } from '../../icons/tsx/error.js';
6
+ import { WarningIcon } from '../../icons/tsx/warning.js';
7
7
 
8
8
  var Colors = ddsBaseTokens.colors,
9
9
  Spacing = ddsBaseTokens.spacing,
@@ -102,27 +102,27 @@ var localMessageTokens = {
102
102
  icon: {
103
103
  marginRight: "".concat(Spacing.SizesDdsSpacingLocalX075),
104
104
  info: {
105
- icon: InfoOutlinedIcon,
105
+ icon: InfoIcon,
106
106
  color: Colors.DdsColorInfoDarkest
107
107
  },
108
108
  danger: {
109
- icon: DangerOutlinedIcon,
109
+ icon: ErrorIcon,
110
110
  color: Colors.DdsColorDangerDarkest
111
111
  },
112
112
  warning: {
113
- icon: WarningOutlinedIcon,
113
+ icon: WarningIcon,
114
114
  color: Colors.DdsColorWarningDarkest
115
115
  },
116
116
  success: {
117
- icon: CheckCircleOutlinedIcon,
117
+ icon: CheckCircledIcon,
118
118
  color: Colors.DdsColorSuccessDarkest
119
119
  },
120
120
  tips: {
121
- icon: EmojiObjectsOutlinedIcon,
121
+ icon: TipIcon,
122
122
  color: Colors.DdsColorPrimaryDarkest
123
123
  },
124
124
  confidential: {
125
- icon: DangerOutlinedIcon,
125
+ icon: ErrorIcon,
126
126
  color: Colors.DdsColorDangerDarkest
127
127
  }
128
128
  },
@@ -4,7 +4,6 @@ import { jsx, jsxs } from 'react/jsx-runtime';
4
4
  import { forwardRef, useState, useEffect } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { modalTokens } from './Modal.tokens.js';
7
- import CloseOutlinedIcon from '@mui/icons-material/CloseOutlined';
8
7
  import { createPortal } from 'react-dom';
9
8
  import { useMountTransition } from '../../hooks/useMountTransition.js';
10
9
  import { typographyTokens } from '../Typography/Typography.tokens.js';
@@ -17,6 +16,7 @@ import { useOnClickOutside } from '../../hooks/useOnClickOutside.js';
17
16
  import { useOnKeyDown } from '../../hooks/useOnKeyDown.js';
18
17
  import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
19
18
  import { Typography } from '../Typography/Typography.js';
19
+ import { CloseIcon } from '../../icons/tsx/close.js';
20
20
 
21
21
  var Container = styled.div.withConfig({
22
22
  displayName: "Modal__Container",
@@ -111,7 +111,7 @@ var Modal = /*#__PURE__*/forwardRef(function (props, ref) {
111
111
  size: "small",
112
112
  appearance: "borderless",
113
113
  purpose: "secondary",
114
- Icon: CloseOutlinedIcon,
114
+ icon: CloseIcon,
115
115
  onClick: handleClose,
116
116
  "aria-label": "Lukk dialog"
117
117
  })]
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ModalProps } from '.';
3
2
  declare const _default: {
4
3
  title: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BaseComponentPropsWithChildren } from '../../types';
3
2
  export declare type ModalBodyProps = BaseComponentPropsWithChildren<HTMLDivElement, {
4
3
  /**Gjør at innholdet kan scrolles. Det må eventuelt settes (max)bredde og (max)høyde styling på både denne subkomponenten og `<Modal />`. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OverflowMenuContextItem, OverflowMenuNavItem } from '.';
3
2
  declare type ContainerProps = {
4
3
  isOpen: boolean;
@@ -5,7 +5,6 @@ import { forwardRef, useEffect } from 'react';
5
5
  import styled from 'styled-components';
6
6
  import { OverflowMenuItem } from './OverflowMenuItem.js';
7
7
  import { overflowMenuTokens } from './OverflowMenu.tokens.js';
8
- import PersonOutlineOutlinedIcon from '@mui/icons-material/PersonOutlineOutlined';
9
8
  import { typographyTokens } from '../Typography/Typography.tokens.js';
10
9
  import { visibilityTransition } from '../../helpers/styling/visibilityTransition.js';
11
10
  import { Divider } from '../Divider/Divider.js';
@@ -13,6 +12,7 @@ import { useFloatPosition } from '../../hooks/useFloatPosition.js';
13
12
  import { useOnClickOutside } from '../../hooks/useOnClickOutside.js';
14
13
  import { useOnKeyDown } from '../../hooks/useOnKeyDown.js';
15
14
  import { useRoveFocus } from '../../hooks/useRoveFocus.js';
15
+ import { PersonIcon } from '../../icons/tsx/person.js';
16
16
  import { useId } from '../../hooks/useId.js';
17
17
  import { scrollbarStyling } from '../../helpers/styling/scrollbarStyling.js';
18
18
  import { useCombinedRef } from '../../hooks/useCombinedRefs.js';
@@ -105,7 +105,7 @@ var OverflowMenu = /*#__PURE__*/forwardRef(function (props, ref) {
105
105
  index: index,
106
106
  focus: focus === index && isOpen,
107
107
  setFocus: setFocus,
108
- Icon: hasInteractiveUser && index === 0 ? PersonOutlineOutlinedIcon : undefined
108
+ icon: hasInteractiveUser && index === 0 ? PersonIcon : undefined
109
109
  }, item, {
110
110
  onClick: function onClick(e) {
111
111
  item.onClick && item.onClick(e);
@@ -156,7 +156,7 @@ var OverflowMenu = /*#__PURE__*/forwardRef(function (props, ref) {
156
156
  }, {
157
157
  children: [hasStaticUser && jsx(OverflowMenuItem, {
158
158
  title: username,
159
- Icon: PersonOutlineOutlinedIcon
159
+ icon: PersonIcon
160
160
  }), interactiveContent()]
161
161
  }));
162
162
  });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OverflowMenuProps, OverflowMenuContextItem, OverflowMenuNavItem } from '.';
3
2
  declare const _default: {
4
3
  title: string;
@@ -1,15 +1,14 @@
1
- import { SvgIconTypeMap } from '@mui/material';
2
- import { OverridableComponent } from '@mui/material/OverridableComponent';
3
1
  import { Placement } from '../../hooks/useFloatPosition';
4
2
  import { AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
5
3
  import { BaseComponentProps } from '../../types';
4
+ import { SvgIcon } from '../../icons/utils';
6
5
  export declare type OverflowMenuContextItem = {
7
6
  title: string;
8
- Icon?: OverridableComponent<SvgIconTypeMap<Record<string, unknown>, 'svg'>>;
7
+ icon?: SvgIcon;
9
8
  } & (AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>);
10
9
  export declare type OverflowMenuNavItem = {
11
10
  title: string;
12
- Icon?: OverridableComponent<SvgIconTypeMap<Record<string, unknown>, 'svg'>>;
11
+ icon?: SvgIcon;
13
12
  } & AnchorHTMLAttributes<HTMLAnchorElement>;
14
13
  declare type UserProps = {
15
14
  name: string;
@@ -1,14 +1,11 @@
1
- import React, { AnchorHTMLAttributes, ButtonHTMLAttributes, Dispatch, SetStateAction } from 'react';
2
- import { OverridableComponent } from '@mui/material/OverridableComponent';
3
- import { SvgIconTypeMap } from '@mui/material/SvgIcon';
4
- import { IconWrapper } from '../IconWrapper';
1
+ import { AnchorHTMLAttributes, ButtonHTMLAttributes, Dispatch, SetStateAction } from 'react';
5
2
  import { BaseComponentProps } from '../../types';
3
+ import { SvgIcon } from '../../icons/utils';
6
4
  export declare const Span: import("styled-components").StyledComponent<"span", any, {}, never>;
7
5
  export declare const Link: import("styled-components").StyledComponent<"a", any, {}, never>;
8
- export declare const StyledIconWrapper: import("styled-components").StyledComponent<typeof IconWrapper, any, {}, never>;
9
6
  declare type BaseOverflowMenuItemProps = {
10
7
  title: string;
11
- Icon?: OverridableComponent<SvgIconTypeMap<Record<string, unknown>, 'svg'>>;
8
+ icon?: SvgIcon;
12
9
  focus?: boolean;
13
10
  setFocus?: Dispatch<SetStateAction<number>>;
14
11
  index?: number;
@@ -20,5 +17,5 @@ declare type AnchorOverflowMenuItemProps = BaseOverflowMenuItemProps & BaseCompo
20
17
  declare type ButtonOverflowMenuItemProps = BaseOverflowMenuItemProps & BaseComponentProps<HTMLButtonElement, Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'>, ButtonHTMLAttributes<HTMLButtonElement>>;
21
18
  declare type OtherOverflowMenuItemProps = BaseOverflowMenuItemProps & BaseComponentProps<HTMLSpanElement>;
22
19
  export declare type OverflowMenuItemProps = AnchorOverflowMenuItemProps | ButtonOverflowMenuItemProps | OtherOverflowMenuItemProps;
23
- export declare const OverflowMenuItem: React.ForwardRefExoticComponent<(AnchorOverflowMenuItemProps | ButtonOverflowMenuItemProps | Pick<OtherOverflowMenuItemProps, string>) & React.RefAttributes<HTMLAnchorElement>>;
20
+ export declare const OverflowMenuItem: import("react").ForwardRefExoticComponent<(AnchorOverflowMenuItemProps | ButtonOverflowMenuItemProps | Pick<OtherOverflowMenuItemProps, string>) & import("react").RefAttributes<HTMLAnchorElement>>;
24
21
  export {};
@@ -4,7 +4,7 @@ import { forwardRef, useRef, useEffect, useCallback } from 'react';
4
4
  import styled from 'styled-components';
5
5
  import { overflowMenuTokens } from './OverflowMenu.tokens.js';
6
6
  import { useCombinedRef } from '../../hooks/useCombinedRefs.js';
7
- import { IconWrapper } from '../IconWrapper/IconWrapper.js';
7
+ import { Icon } from '../Icon/Icon.js';
8
8
  import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
9
9
 
10
10
  var Span = styled.span.withConfig({
@@ -15,10 +15,6 @@ var Link = styled.a.withConfig({
15
15
  displayName: "OverflowMenuItem__Link",
16
16
  componentId: "sc-1ka2asi-1"
17
17
  })(["box-sizing:border-box;background:none;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit;width:100%;", " display:flex;align-items:center;@media (prefers-reduced-motion:no-preference){transition:background-color 0.2s;}&:hover{", "}&:active{", "}&:focus-visible,&.focus-visible{", "}"], overflowMenuTokens.link.base, overflowMenuTokens.link.hover.base, overflowMenuTokens.link.active.base, overflowMenuTokens.link.focus.base);
18
- var StyledIconWrapper = styled(IconWrapper).withConfig({
19
- displayName: "OverflowMenuItem__StyledIconWrapper",
20
- componentId: "sc-1ka2asi-2"
21
- })([""]);
22
18
 
23
19
  var isAnchorProps = function isAnchorProps(props) {
24
20
  return props.href !== undefined;
@@ -30,7 +26,7 @@ var isButtonProps = function isButtonProps(props) {
30
26
 
31
27
  var OverflowMenuItem = /*#__PURE__*/forwardRef(function (props, ref) {
32
28
  var title = props.title,
33
- Icon = props.Icon,
29
+ icon = props.icon,
34
30
  focus = props.focus,
35
31
  setFocus = props.setFocus,
36
32
  index = props.index,
@@ -38,7 +34,7 @@ var OverflowMenuItem = /*#__PURE__*/forwardRef(function (props, ref) {
38
34
  className = props.className,
39
35
  _props$htmlProps = props.htmlProps,
40
36
  htmlProps = _props$htmlProps === void 0 ? {} : _props$htmlProps,
41
- rest = __rest(props, ["title", "Icon", "focus", "setFocus", "index", "id", "className", "htmlProps"]);
37
+ rest = __rest(props, ["title", "icon", "focus", "setFocus", "index", "id", "className", "htmlProps"]);
42
38
 
43
39
  var onKeyDown = htmlProps.onKeyDown;
44
40
  var href;
@@ -83,16 +79,16 @@ var OverflowMenuItem = /*#__PURE__*/forwardRef(function (props, ref) {
83
79
  tabIndex: focus ? 0 : -1
84
80
  };
85
81
 
86
- var icon = Icon && jsx(StyledIconWrapper, {
87
- iconSize: "inline",
88
- Icon: Icon
82
+ var iconElement = icon && jsx(Icon, {
83
+ iconSize: "inherit",
84
+ icon: icon
89
85
  });
90
86
 
91
87
  if (!href && !onClick) {
92
88
  return jsxs(Span, Object.assign({}, Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
93
89
  ref: ref
94
90
  }), {
95
- children: [icon, title]
91
+ children: [iconElement, title]
96
92
  }));
97
93
  }
98
94
 
@@ -101,7 +97,7 @@ var OverflowMenuItem = /*#__PURE__*/forwardRef(function (props, ref) {
101
97
  as: "button",
102
98
  ref: combinedRef
103
99
  }, {
104
- children: [icon, title]
100
+ children: [iconElement, title]
105
101
  }));
106
102
  }
107
103
 
@@ -109,8 +105,8 @@ var OverflowMenuItem = /*#__PURE__*/forwardRef(function (props, ref) {
109
105
  as: "a",
110
106
  ref: combinedRef
111
107
  }, {
112
- children: [icon, title]
108
+ children: [iconElement, title]
113
109
  }));
114
110
  });
115
111
 
116
- export { Link, OverflowMenuItem, Span, StyledIconWrapper };
112
+ export { Link, OverflowMenuItem, Span };
@@ -3,16 +3,16 @@ import { __rest } from 'tslib';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4
  import { forwardRef, useState } from 'react';
5
5
  import styled, { css } from 'styled-components';
6
- import ChevronRightOutlinedIcon from '@mui/icons-material/ChevronRightOutlined';
7
- import ChevronLeftOutlinedIcon from '@mui/icons-material/ChevronLeftOutlined';
8
- import MoreHorizOutlinedIcon from '@mui/icons-material/MoreHorizOutlined';
9
- import FirstPageOutlinedIcon from '@mui/icons-material/FirstPageOutlined';
10
- import LastPageOutlinedIcon from '@mui/icons-material/LastPageOutlined';
11
6
  import { PaginationGenerator } from './paginationGenerator.js';
12
7
  import { paginationTokens } from './Pagination.tokens.js';
8
+ import { MoreHorizontalIcon } from '../../icons/tsx/moreHorizontal.js';
9
+ import { ChevronLeftIcon } from '../../icons/tsx/chevronLeft.js';
10
+ import { ChevronFirstIcon } from '../../icons/tsx/chevronFirst.js';
11
+ import { ChevronLastIcon } from '../../icons/tsx/chevronLast.js';
13
12
  import { Select } from '../Select/Select.js';
14
13
  import { Button } from '../Button/Button.js';
15
- import { IconWrapper } from '../IconWrapper/IconWrapper.js';
14
+ import { Icon } from '../Icon/Icon.js';
15
+ import { ChevronRightIcon } from '../../icons/tsx/chevronRight.js';
16
16
  import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
17
17
  import { Typography } from '../Typography/Typography.js';
18
18
 
@@ -115,8 +115,8 @@ var Pagination = /*#__PURE__*/forwardRef(function (props, ref) {
115
115
  onPageChange(event, item);
116
116
  },
117
117
  "aria-label": isActive ? "N\xE5v\xE6rende side (side ".concat(item, ")") : "G\xE5 til side ".concat(item)
118
- }) : jsx(IconWrapper, {
119
- Icon: MoreHorizOutlinedIcon
118
+ }) : jsx(Icon, {
119
+ icon: MoreHorizontalIcon
120
120
  })
121
121
  }, "pagination-item-".concat(i));
122
122
  }) : undefined;
@@ -125,7 +125,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (props, ref) {
125
125
  purpose: "secondary",
126
126
  appearance: "ghost",
127
127
  size: "small",
128
- Icon: ChevronLeftOutlinedIcon,
128
+ icon: ChevronLeftIcon,
129
129
  onClick: function onClick(event) {
130
130
  onPageChange(event, activePage - 1);
131
131
  },
@@ -136,7 +136,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (props, ref) {
136
136
  purpose: "secondary",
137
137
  appearance: "ghost",
138
138
  size: "small",
139
- Icon: ChevronRightOutlinedIcon,
139
+ icon: ChevronRightIcon,
140
140
  onClick: function onClick(event) {
141
141
  onPageChange(event, activePage + 1);
142
142
  },
@@ -180,7 +180,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (props, ref) {
180
180
  purpose: "secondary",
181
181
  appearance: "ghost",
182
182
  size: "small",
183
- Icon: FirstPageOutlinedIcon,
183
+ icon: ChevronFirstIcon,
184
184
  onClick: function onClick(event) {
185
185
  onPageChange(event, 1);
186
186
  },
@@ -212,7 +212,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (props, ref) {
212
212
  purpose: "secondary",
213
213
  appearance: "ghost",
214
214
  size: "small",
215
- Icon: LastPageOutlinedIcon,
215
+ icon: ChevronLastIcon,
216
216
  onClick: function onClick(event) {
217
217
  onPageChange(event, pagesLength);
218
218
  },
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PaginationProps } from '.';
3
2
  declare const _default: {
4
3
  title: string;