@norges-domstoler/dds-components 11.3.1 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (445) hide show
  1. package/README.md +0 -1
  2. package/dist/cjs/components/BackLink/BackLink.d.ts +6 -0
  3. package/dist/cjs/components/BackLink/BackLink.stories.d.ts +17 -0
  4. package/dist/cjs/components/BackLink/BackLink.tokens.d.ts +8 -0
  5. package/dist/cjs/components/BackLink/index.d.ts +1 -0
  6. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.d.ts +3 -12
  7. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -16
  8. package/dist/cjs/components/Button/Button.d.ts +1 -0
  9. package/dist/cjs/components/Button/Button.stories.d.ts +3 -3
  10. package/dist/cjs/components/Card/CardAccordion/CardAccordion.d.ts +1 -0
  11. package/dist/cjs/components/Card/CardAccordion/CardAccordionBody.d.ts +1 -0
  12. package/dist/cjs/components/Checkbox/Checkbox.d.ts +1 -0
  13. package/dist/cjs/components/Checkbox/Checkbox.stories.d.ts +2 -2
  14. package/dist/cjs/components/Checkbox/CheckboxGroup.d.ts +1 -0
  15. package/dist/cjs/components/Chip/Chip.d.ts +1 -0
  16. package/dist/cjs/components/Datepicker/Datepicker.d.ts +1 -0
  17. package/dist/cjs/components/DescriptionList/DescriptionList.d.ts +1 -0
  18. package/dist/cjs/components/DescriptionList/DescriptionListDesc.d.ts +1 -0
  19. package/dist/cjs/components/DescriptionList/DescriptionListGroup.d.ts +1 -0
  20. package/dist/cjs/components/Divider/Divider.d.ts +1 -0
  21. package/dist/cjs/components/Drawer/DrawerGroup.d.ts +1 -2
  22. package/dist/cjs/components/FileUploader/ErrorList.d.ts +1 -0
  23. package/dist/cjs/components/FileUploader/File.d.ts +1 -0
  24. package/dist/cjs/components/FileUploader/FileUploader.d.ts +1 -0
  25. package/dist/cjs/components/FileUploader/utils.d.ts +1 -0
  26. package/dist/cjs/components/GlobalMessage/GlobalMessage.d.ts +1 -0
  27. package/dist/cjs/components/Grid/Grid.context.d.ts +1 -0
  28. package/dist/cjs/components/Icon/Icon.d.ts +1 -0
  29. package/dist/cjs/components/InlineEdit/InlineEdit.d.ts +1 -0
  30. package/dist/cjs/components/InlineEdit/InlineEdit.utils.d.ts +1 -0
  31. package/dist/cjs/components/InlineEdit/InlineEditInput.d.ts +1 -0
  32. package/dist/cjs/components/InlineEdit/InlineEditTextArea.d.ts +1 -0
  33. package/dist/cjs/components/InputMessage/InputMessage.d.ts +1 -0
  34. package/dist/cjs/components/InternalHeader/InternalHeader.d.ts +1 -0
  35. package/dist/cjs/components/InternalHeader/InternalHeader.styles.d.ts +1 -0
  36. package/dist/cjs/components/List/List.d.ts +1 -0
  37. package/dist/cjs/components/LocalMessage/LocalMessage.d.ts +1 -0
  38. package/dist/cjs/components/Modal/ModalBody.d.ts +1 -0
  39. package/dist/cjs/components/OverflowMenu/OverflowMenu.d.ts +1 -0
  40. package/dist/cjs/components/ProgressTracker/ProgressTracker.context.d.ts +1 -0
  41. package/dist/cjs/components/ProgressTracker/ProgressTrackerItem.d.ts +1 -0
  42. package/dist/cjs/components/RadioButton/RadioButton.d.ts +1 -0
  43. package/dist/cjs/components/RadioButton/RadioButton.stories.d.ts +3 -3
  44. package/dist/cjs/components/ScrollableContainer/ScrollableContainer.d.ts +1 -0
  45. package/dist/cjs/components/SkipToContent/SkipToContent.d.ts +1 -0
  46. package/dist/cjs/components/Spinner/Spinner.d.ts +1 -0
  47. package/dist/cjs/components/SplitButton/SplitButton.d.ts +1 -0
  48. package/dist/cjs/components/Stack/Stack.d.ts +1 -0
  49. package/dist/cjs/components/Stack/Stack.stories.d.ts +1 -0
  50. package/dist/cjs/components/Table/Row.d.ts +1 -0
  51. package/dist/cjs/components/Table/Table.d.ts +1 -0
  52. package/dist/cjs/components/Table/collapsible/CollapsibleRow.d.ts +1 -0
  53. package/dist/cjs/components/Table/collapsible/CollapsibleTable.d.ts +1 -0
  54. package/dist/cjs/components/Table/collapsible/Table.context.d.ts +1 -0
  55. package/dist/cjs/components/Tabs/TabPanel.d.ts +1 -0
  56. package/dist/cjs/components/Tag/Tag.d.ts +1 -0
  57. package/dist/cjs/components/TextInput/CharCounter.d.ts +1 -0
  58. package/dist/cjs/components/ToggleBar/ToggleBar.d.ts +1 -0
  59. package/dist/cjs/components/ToggleButton/ToggleButton.d.ts +1 -0
  60. package/dist/cjs/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
  61. package/dist/cjs/components/ToggleButton/ToggleButtonGroup.d.ts +1 -0
  62. package/dist/cjs/components/Tooltip/Tooltip.stories.d.ts +2 -2
  63. package/dist/cjs/components/Typography/Caption/Caption.d.ts +1 -0
  64. package/dist/cjs/components/Typography/Heading/Heading.d.ts +1 -0
  65. package/dist/cjs/components/Typography/Legend/Legend.d.ts +1 -0
  66. package/dist/cjs/components/Typography/Link/Link.stories.d.ts +3 -3
  67. package/dist/cjs/components/Typography/Paragraph/Paragraph.d.ts +1 -0
  68. package/dist/cjs/components/VisuallyHidden/VisuallyHidden.d.ts +1 -0
  69. package/dist/cjs/helpers/Chevron/AnimatedChevronUpDown.d.ts +1 -0
  70. package/dist/cjs/helpers/Input/Input.utils.d.ts +1 -0
  71. package/dist/cjs/helpers/RequiredMarker/RequiredMarker.d.ts +1 -0
  72. package/dist/cjs/hooks/useFloatPosition.d.ts +1 -0
  73. package/dist/cjs/icons/tsx/apps.d.ts +1 -0
  74. package/dist/cjs/icons/tsx/archive.d.ts +1 -0
  75. package/dist/cjs/icons/tsx/arrowDown.d.ts +1 -0
  76. package/dist/cjs/icons/tsx/arrowLeft.d.ts +1 -0
  77. package/dist/cjs/icons/tsx/arrowRight.d.ts +1 -0
  78. package/dist/cjs/icons/tsx/arrowUp.d.ts +1 -0
  79. package/dist/cjs/icons/tsx/attachment.d.ts +1 -0
  80. package/dist/cjs/icons/tsx/barChart.d.ts +1 -0
  81. package/dist/cjs/icons/tsx/barChartBoxed.d.ts +1 -0
  82. package/dist/cjs/icons/tsx/block.d.ts +1 -0
  83. package/dist/cjs/icons/tsx/book.d.ts +1 -0
  84. package/dist/cjs/icons/tsx/build.d.ts +1 -0
  85. package/dist/cjs/icons/tsx/buildCircled.d.ts +1 -0
  86. package/dist/cjs/icons/tsx/calendar.d.ts +1 -0
  87. package/dist/cjs/icons/tsx/calendarMonth.d.ts +1 -0
  88. package/dist/cjs/icons/tsx/calendarViewDay.d.ts +1 -0
  89. package/dist/cjs/icons/tsx/calendarViewMonth.d.ts +1 -0
  90. package/dist/cjs/icons/tsx/calendarViewWeek.d.ts +1 -0
  91. package/dist/cjs/icons/tsx/call.d.ts +1 -0
  92. package/dist/cjs/icons/tsx/chat.d.ts +1 -0
  93. package/dist/cjs/icons/tsx/check.d.ts +1 -0
  94. package/dist/cjs/icons/tsx/checkCircled.d.ts +1 -0
  95. package/dist/cjs/icons/tsx/checklist.d.ts +1 -0
  96. package/dist/cjs/icons/tsx/chevronDown.d.ts +1 -0
  97. package/dist/cjs/icons/tsx/chevronFirst.d.ts +1 -0
  98. package/dist/cjs/icons/tsx/chevronLargeLeft.d.ts +1 -0
  99. package/dist/cjs/icons/tsx/chevronLargeRight.d.ts +1 -0
  100. package/dist/cjs/icons/tsx/chevronLast.d.ts +1 -0
  101. package/dist/cjs/icons/tsx/chevronLeft.d.ts +1 -0
  102. package/dist/cjs/icons/tsx/chevronRight.d.ts +1 -0
  103. package/dist/cjs/icons/tsx/chevronUp.d.ts +1 -0
  104. package/dist/cjs/icons/tsx/close.d.ts +1 -0
  105. package/dist/cjs/icons/tsx/closeCircled.d.ts +1 -0
  106. package/dist/cjs/icons/tsx/closeSmall.d.ts +1 -0
  107. package/dist/cjs/icons/tsx/cloud.d.ts +1 -0
  108. package/dist/cjs/icons/tsx/collapse.d.ts +1 -0
  109. package/dist/cjs/icons/tsx/comment.d.ts +1 -0
  110. package/dist/cjs/icons/tsx/copy.d.ts +1 -0
  111. package/dist/cjs/icons/tsx/court.d.ts +1 -0
  112. package/dist/cjs/icons/tsx/dateRange.d.ts +1 -0
  113. package/dist/cjs/icons/tsx/deaths.d.ts +1 -0
  114. package/dist/cjs/icons/tsx/doubleChevronLeft.d.ts +1 -0
  115. package/dist/cjs/icons/tsx/doubleChevronRight.d.ts +1 -0
  116. package/dist/cjs/icons/tsx/download.d.ts +1 -0
  117. package/dist/cjs/icons/tsx/downloadDone.d.ts +1 -0
  118. package/dist/cjs/icons/tsx/dragHandle.d.ts +1 -0
  119. package/dist/cjs/icons/tsx/edit.d.ts +1 -0
  120. package/dist/cjs/icons/tsx/error.d.ts +1 -0
  121. package/dist/cjs/icons/tsx/exclaim.d.ts +1 -0
  122. package/dist/cjs/icons/tsx/expand.d.ts +1 -0
  123. package/dist/cjs/icons/tsx/facebook.d.ts +1 -0
  124. package/dist/cjs/icons/tsx/family.d.ts +1 -0
  125. package/dist/cjs/icons/tsx/feedback.d.ts +1 -0
  126. package/dist/cjs/icons/tsx/file.d.ts +1 -0
  127. package/dist/cjs/icons/tsx/fileAdd.d.ts +1 -0
  128. package/dist/cjs/icons/tsx/fileText.d.ts +1 -0
  129. package/dist/cjs/icons/tsx/filter.d.ts +1 -0
  130. package/dist/cjs/icons/tsx/filterList.d.ts +1 -0
  131. package/dist/cjs/icons/tsx/filterListOff.d.ts +1 -0
  132. package/dist/cjs/icons/tsx/filterOff.d.ts +1 -0
  133. package/dist/cjs/icons/tsx/findInPage.d.ts +1 -0
  134. package/dist/cjs/icons/tsx/folder.d.ts +1 -0
  135. package/dist/cjs/icons/tsx/folderAdd.d.ts +1 -0
  136. package/dist/cjs/icons/tsx/fullsceenExit.d.ts +1 -0
  137. package/dist/cjs/icons/tsx/fullscreen.d.ts +1 -0
  138. package/dist/cjs/icons/tsx/gavel.d.ts +1 -0
  139. package/dist/cjs/icons/tsx/help.d.ts +1 -0
  140. package/dist/cjs/icons/tsx/helpFilled.d.ts +1 -0
  141. package/dist/cjs/icons/tsx/home.d.ts +1 -0
  142. package/dist/cjs/icons/tsx/image.d.ts +1 -0
  143. package/dist/cjs/icons/tsx/info.d.ts +1 -0
  144. package/dist/cjs/icons/tsx/instagram.d.ts +1 -0
  145. package/dist/cjs/icons/tsx/jordskifterett.d.ts +1 -0
  146. package/dist/cjs/icons/tsx/key.d.ts +1 -0
  147. package/dist/cjs/icons/tsx/lagmannsrett.d.ts +1 -0
  148. package/dist/cjs/icons/tsx/language.d.ts +1 -0
  149. package/dist/cjs/icons/tsx/libraryAdd.d.ts +1 -0
  150. package/dist/cjs/icons/tsx/lineChart.d.ts +1 -0
  151. package/dist/cjs/icons/tsx/link.d.ts +1 -0
  152. package/dist/cjs/icons/tsx/linkOff.d.ts +1 -0
  153. package/dist/cjs/icons/tsx/linkedIn.d.ts +1 -0
  154. package/dist/cjs/icons/tsx/list.d.ts +1 -0
  155. package/dist/cjs/icons/tsx/listAlt.d.ts +1 -0
  156. package/dist/cjs/icons/tsx/location.d.ts +1 -0
  157. package/dist/cjs/icons/tsx/lock.d.ts +1 -0
  158. package/dist/cjs/icons/tsx/lockOpen.d.ts +1 -0
  159. package/dist/cjs/icons/tsx/login.d.ts +1 -0
  160. package/dist/cjs/icons/tsx/logout.d.ts +1 -0
  161. package/dist/cjs/icons/tsx/mail.d.ts +1 -0
  162. package/dist/cjs/icons/tsx/mailOpen.d.ts +1 -0
  163. package/dist/cjs/icons/tsx/menu.d.ts +1 -0
  164. package/dist/cjs/icons/tsx/minus.d.ts +1 -0
  165. package/dist/cjs/icons/tsx/minusCircled.d.ts +1 -0
  166. package/dist/cjs/icons/tsx/moreHorizontal.d.ts +1 -0
  167. package/dist/cjs/icons/tsx/moreVertical.d.ts +1 -0
  168. package/dist/cjs/icons/tsx/notarial.d.ts +1 -0
  169. package/dist/cjs/icons/tsx/notifications.d.ts +1 -0
  170. package/dist/cjs/icons/tsx/notificationsOff.d.ts +1 -0
  171. package/dist/cjs/icons/tsx/onlineMeeting.d.ts +1 -0
  172. package/dist/cjs/icons/tsx/openExternal.d.ts +1 -0
  173. package/dist/cjs/icons/tsx/pdf.d.ts +1 -0
  174. package/dist/cjs/icons/tsx/person.d.ts +1 -0
  175. package/dist/cjs/icons/tsx/personAdd.d.ts +1 -0
  176. package/dist/cjs/icons/tsx/pin.d.ts +1 -0
  177. package/dist/cjs/icons/tsx/plus.d.ts +1 -0
  178. package/dist/cjs/icons/tsx/plusCircled.d.ts +1 -0
  179. package/dist/cjs/icons/tsx/print.d.ts +1 -0
  180. package/dist/cjs/icons/tsx/property.d.ts +1 -0
  181. package/dist/cjs/icons/tsx/publish.d.ts +1 -0
  182. package/dist/cjs/icons/tsx/questionAnswer.d.ts +1 -0
  183. package/dist/cjs/icons/tsx/receipt.d.ts +1 -0
  184. package/dist/cjs/icons/tsx/redo.d.ts +1 -0
  185. package/dist/cjs/icons/tsx/refresh.d.ts +1 -0
  186. package/dist/cjs/icons/tsx/replay.d.ts +1 -0
  187. package/dist/cjs/icons/tsx/search.d.ts +1 -0
  188. package/dist/cjs/icons/tsx/settings.d.ts +1 -0
  189. package/dist/cjs/icons/tsx/sms.d.ts +1 -0
  190. package/dist/cjs/icons/tsx/star.d.ts +1 -0
  191. package/dist/cjs/icons/tsx/starFilled.d.ts +1 -0
  192. package/dist/cjs/icons/tsx/sync.d.ts +1 -0
  193. package/dist/cjs/icons/tsx/time.d.ts +1 -0
  194. package/dist/cjs/icons/tsx/tingrett.d.ts +1 -0
  195. package/dist/cjs/icons/tsx/tip.d.ts +1 -0
  196. package/dist/cjs/icons/tsx/trash.d.ts +1 -0
  197. package/dist/cjs/icons/tsx/trendingDown.d.ts +1 -0
  198. package/dist/cjs/icons/tsx/trendingUp.d.ts +1 -0
  199. package/dist/cjs/icons/tsx/twitter.d.ts +1 -0
  200. package/dist/cjs/icons/tsx/undo.d.ts +1 -0
  201. package/dist/cjs/icons/tsx/unfoldLess.d.ts +1 -0
  202. package/dist/cjs/icons/tsx/unfoldMore.d.ts +1 -0
  203. package/dist/cjs/icons/tsx/upload.d.ts +1 -0
  204. package/dist/cjs/icons/tsx/visibilityOff.d.ts +1 -0
  205. package/dist/cjs/icons/tsx/visibilityOn.d.ts +1 -0
  206. package/dist/cjs/icons/tsx/warning.d.ts +1 -0
  207. package/dist/cjs/icons/tsx/zoomIn.d.ts +1 -0
  208. package/dist/cjs/icons/tsx/zoomOut.d.ts +1 -0
  209. package/dist/cjs/icons/utils/SvgWrapper.d.ts +1 -0
  210. package/dist/cjs/index.d.ts +1 -1
  211. package/dist/cjs/index.js +654 -974
  212. package/dist/cjs/test/mocks/IntersectionObserver.d.ts +1 -0
  213. package/dist/components/BackLink/BackLink.d.ts +6 -0
  214. package/dist/components/BackLink/BackLink.js +47 -0
  215. package/dist/components/BackLink/BackLink.stories.d.ts +17 -0
  216. package/dist/components/BackLink/BackLink.tokens.d.ts +8 -0
  217. package/dist/components/BackLink/BackLink.tokens.js +16 -0
  218. package/dist/components/BackLink/index.d.ts +1 -0
  219. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -12
  220. package/dist/components/Breadcrumbs/Breadcrumbs.js +3 -10
  221. package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -16
  222. package/dist/components/Button/Button.d.ts +1 -0
  223. package/dist/components/Button/Button.stories.d.ts +3 -3
  224. package/dist/components/Card/CardAccordion/CardAccordion.d.ts +1 -0
  225. package/dist/components/Card/CardAccordion/CardAccordionBody.d.ts +1 -0
  226. package/dist/components/Checkbox/Checkbox.d.ts +1 -0
  227. package/dist/components/Checkbox/Checkbox.stories.d.ts +2 -2
  228. package/dist/components/Checkbox/CheckboxGroup.d.ts +1 -0
  229. package/dist/components/Chip/Chip.d.ts +1 -0
  230. package/dist/components/Datepicker/Datepicker.d.ts +1 -0
  231. package/dist/components/DescriptionList/DescriptionList.d.ts +1 -0
  232. package/dist/components/DescriptionList/DescriptionListDesc.d.ts +1 -0
  233. package/dist/components/DescriptionList/DescriptionListGroup.d.ts +1 -0
  234. package/dist/components/Divider/Divider.d.ts +1 -0
  235. package/dist/components/Drawer/DrawerGroup.d.ts +1 -2
  236. package/dist/components/FileUploader/ErrorList.d.ts +1 -0
  237. package/dist/components/FileUploader/File.d.ts +1 -0
  238. package/dist/components/FileUploader/FileUploader.d.ts +1 -0
  239. package/dist/components/FileUploader/utils.d.ts +1 -0
  240. package/dist/components/GlobalMessage/GlobalMessage.d.ts +1 -0
  241. package/dist/components/Grid/Grid.context.d.ts +1 -0
  242. package/dist/components/Icon/Icon.d.ts +1 -0
  243. package/dist/components/InlineEdit/InlineEdit.d.ts +1 -0
  244. package/dist/components/InlineEdit/InlineEdit.utils.d.ts +1 -0
  245. package/dist/components/InlineEdit/InlineEditInput.d.ts +1 -0
  246. package/dist/components/InlineEdit/InlineEditTextArea.d.ts +1 -0
  247. package/dist/components/InputMessage/InputMessage.d.ts +1 -0
  248. package/dist/components/InternalHeader/InternalHeader.d.ts +1 -0
  249. package/dist/components/InternalHeader/InternalHeader.styles.d.ts +1 -0
  250. package/dist/components/List/List.d.ts +1 -0
  251. package/dist/components/LocalMessage/LocalMessage.d.ts +1 -0
  252. package/dist/components/Modal/ModalBody.d.ts +1 -0
  253. package/dist/components/OverflowMenu/OverflowMenu.d.ts +1 -0
  254. package/dist/components/ProgressTracker/ProgressTracker.context.d.ts +1 -0
  255. package/dist/components/ProgressTracker/ProgressTrackerItem.d.ts +1 -0
  256. package/dist/components/RadioButton/RadioButton.d.ts +1 -0
  257. package/dist/components/RadioButton/RadioButton.stories.d.ts +3 -3
  258. package/dist/components/ScrollableContainer/ScrollableContainer.d.ts +1 -0
  259. package/dist/components/SkipToContent/SkipToContent.d.ts +1 -0
  260. package/dist/components/Spinner/Spinner.d.ts +1 -0
  261. package/dist/components/SplitButton/SplitButton.d.ts +1 -0
  262. package/dist/components/Stack/Stack.d.ts +1 -0
  263. package/dist/components/Stack/Stack.stories.d.ts +1 -0
  264. package/dist/components/Table/Row.d.ts +1 -0
  265. package/dist/components/Table/Table.d.ts +1 -0
  266. package/dist/components/Table/collapsible/CollapsibleRow.d.ts +1 -0
  267. package/dist/components/Table/collapsible/CollapsibleTable.d.ts +1 -0
  268. package/dist/components/Table/collapsible/Table.context.d.ts +1 -0
  269. package/dist/components/Tabs/TabPanel.d.ts +1 -0
  270. package/dist/components/Tag/Tag.d.ts +1 -0
  271. package/dist/components/TextInput/CharCounter.d.ts +1 -0
  272. package/dist/components/ToggleBar/ToggleBar.d.ts +1 -0
  273. package/dist/components/ToggleButton/ToggleButton.d.ts +1 -0
  274. package/dist/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
  275. package/dist/components/ToggleButton/ToggleButtonGroup.d.ts +1 -0
  276. package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -2
  277. package/dist/components/Typography/Caption/Caption.d.ts +1 -0
  278. package/dist/components/Typography/Heading/Heading.d.ts +1 -0
  279. package/dist/components/Typography/Legend/Legend.d.ts +1 -0
  280. package/dist/components/Typography/Link/Link.stories.d.ts +3 -3
  281. package/dist/components/Typography/Paragraph/Paragraph.d.ts +1 -0
  282. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -0
  283. package/dist/helpers/Chevron/AnimatedChevronUpDown.d.ts +1 -0
  284. package/dist/helpers/Input/Input.utils.d.ts +1 -0
  285. package/dist/helpers/RequiredMarker/RequiredMarker.d.ts +1 -0
  286. package/dist/hooks/useFloatPosition.d.ts +1 -0
  287. package/dist/icons/tsx/apps.d.ts +1 -0
  288. package/dist/icons/tsx/archive.d.ts +1 -0
  289. package/dist/icons/tsx/arrowDown.d.ts +1 -0
  290. package/dist/icons/tsx/arrowLeft.d.ts +1 -0
  291. package/dist/icons/tsx/arrowRight.d.ts +1 -0
  292. package/dist/icons/tsx/arrowUp.d.ts +1 -0
  293. package/dist/icons/tsx/attachment.d.ts +1 -0
  294. package/dist/icons/tsx/barChart.d.ts +1 -0
  295. package/dist/icons/tsx/barChartBoxed.d.ts +1 -0
  296. package/dist/icons/tsx/block.d.ts +1 -0
  297. package/dist/icons/tsx/book.d.ts +1 -0
  298. package/dist/icons/tsx/build.d.ts +1 -0
  299. package/dist/icons/tsx/buildCircled.d.ts +1 -0
  300. package/dist/icons/tsx/calendar.d.ts +1 -0
  301. package/dist/icons/tsx/calendarMonth.d.ts +1 -0
  302. package/dist/icons/tsx/calendarViewDay.d.ts +1 -0
  303. package/dist/icons/tsx/calendarViewMonth.d.ts +1 -0
  304. package/dist/icons/tsx/calendarViewWeek.d.ts +1 -0
  305. package/dist/icons/tsx/call.d.ts +1 -0
  306. package/dist/icons/tsx/chat.d.ts +1 -0
  307. package/dist/icons/tsx/check.d.ts +1 -0
  308. package/dist/icons/tsx/checkCircled.d.ts +1 -0
  309. package/dist/icons/tsx/checklist.d.ts +1 -0
  310. package/dist/icons/tsx/chevronDown.d.ts +1 -0
  311. package/dist/icons/tsx/chevronFirst.d.ts +1 -0
  312. package/dist/icons/tsx/chevronLargeLeft.d.ts +1 -0
  313. package/dist/icons/tsx/chevronLargeRight.d.ts +1 -0
  314. package/dist/icons/tsx/chevronLast.d.ts +1 -0
  315. package/dist/icons/tsx/chevronLeft.d.ts +1 -0
  316. package/dist/icons/tsx/chevronRight.d.ts +1 -0
  317. package/dist/icons/tsx/chevronUp.d.ts +1 -0
  318. package/dist/icons/tsx/close.d.ts +1 -0
  319. package/dist/icons/tsx/closeCircled.d.ts +1 -0
  320. package/dist/icons/tsx/closeSmall.d.ts +1 -0
  321. package/dist/icons/tsx/cloud.d.ts +1 -0
  322. package/dist/icons/tsx/collapse.d.ts +1 -0
  323. package/dist/icons/tsx/comment.d.ts +1 -0
  324. package/dist/icons/tsx/copy.d.ts +1 -0
  325. package/dist/icons/tsx/court.d.ts +1 -0
  326. package/dist/icons/tsx/dateRange.d.ts +1 -0
  327. package/dist/icons/tsx/deaths.d.ts +1 -0
  328. package/dist/icons/tsx/doubleChevronLeft.d.ts +1 -0
  329. package/dist/icons/tsx/doubleChevronRight.d.ts +1 -0
  330. package/dist/icons/tsx/download.d.ts +1 -0
  331. package/dist/icons/tsx/downloadDone.d.ts +1 -0
  332. package/dist/icons/tsx/dragHandle.d.ts +1 -0
  333. package/dist/icons/tsx/edit.d.ts +1 -0
  334. package/dist/icons/tsx/error.d.ts +1 -0
  335. package/dist/icons/tsx/exclaim.d.ts +1 -0
  336. package/dist/icons/tsx/expand.d.ts +1 -0
  337. package/dist/icons/tsx/facebook.d.ts +1 -0
  338. package/dist/icons/tsx/family.d.ts +1 -0
  339. package/dist/icons/tsx/feedback.d.ts +1 -0
  340. package/dist/icons/tsx/file.d.ts +1 -0
  341. package/dist/icons/tsx/fileAdd.d.ts +1 -0
  342. package/dist/icons/tsx/fileText.d.ts +1 -0
  343. package/dist/icons/tsx/filter.d.ts +1 -0
  344. package/dist/icons/tsx/filterList.d.ts +1 -0
  345. package/dist/icons/tsx/filterListOff.d.ts +1 -0
  346. package/dist/icons/tsx/filterOff.d.ts +1 -0
  347. package/dist/icons/tsx/findInPage.d.ts +1 -0
  348. package/dist/icons/tsx/folder.d.ts +1 -0
  349. package/dist/icons/tsx/folderAdd.d.ts +1 -0
  350. package/dist/icons/tsx/fullsceenExit.d.ts +1 -0
  351. package/dist/icons/tsx/fullscreen.d.ts +1 -0
  352. package/dist/icons/tsx/gavel.d.ts +1 -0
  353. package/dist/icons/tsx/help.d.ts +1 -0
  354. package/dist/icons/tsx/helpFilled.d.ts +1 -0
  355. package/dist/icons/tsx/home.d.ts +1 -0
  356. package/dist/icons/tsx/image.d.ts +1 -0
  357. package/dist/icons/tsx/info.d.ts +1 -0
  358. package/dist/icons/tsx/instagram.d.ts +1 -0
  359. package/dist/icons/tsx/jordskifterett.d.ts +1 -0
  360. package/dist/icons/tsx/key.d.ts +1 -0
  361. package/dist/icons/tsx/lagmannsrett.d.ts +1 -0
  362. package/dist/icons/tsx/language.d.ts +1 -0
  363. package/dist/icons/tsx/libraryAdd.d.ts +1 -0
  364. package/dist/icons/tsx/lineChart.d.ts +1 -0
  365. package/dist/icons/tsx/link.d.ts +1 -0
  366. package/dist/icons/tsx/linkOff.d.ts +1 -0
  367. package/dist/icons/tsx/linkedIn.d.ts +1 -0
  368. package/dist/icons/tsx/list.d.ts +1 -0
  369. package/dist/icons/tsx/listAlt.d.ts +1 -0
  370. package/dist/icons/tsx/location.d.ts +1 -0
  371. package/dist/icons/tsx/lock.d.ts +1 -0
  372. package/dist/icons/tsx/lockOpen.d.ts +1 -0
  373. package/dist/icons/tsx/login.d.ts +1 -0
  374. package/dist/icons/tsx/logout.d.ts +1 -0
  375. package/dist/icons/tsx/mail.d.ts +1 -0
  376. package/dist/icons/tsx/mailOpen.d.ts +1 -0
  377. package/dist/icons/tsx/menu.d.ts +1 -0
  378. package/dist/icons/tsx/minus.d.ts +1 -0
  379. package/dist/icons/tsx/minusCircled.d.ts +1 -0
  380. package/dist/icons/tsx/moreHorizontal.d.ts +1 -0
  381. package/dist/icons/tsx/moreVertical.d.ts +1 -0
  382. package/dist/icons/tsx/notarial.d.ts +1 -0
  383. package/dist/icons/tsx/notifications.d.ts +1 -0
  384. package/dist/icons/tsx/notificationsOff.d.ts +1 -0
  385. package/dist/icons/tsx/onlineMeeting.d.ts +1 -0
  386. package/dist/icons/tsx/openExternal.d.ts +1 -0
  387. package/dist/icons/tsx/pdf.d.ts +1 -0
  388. package/dist/icons/tsx/person.d.ts +1 -0
  389. package/dist/icons/tsx/personAdd.d.ts +1 -0
  390. package/dist/icons/tsx/pin.d.ts +1 -0
  391. package/dist/icons/tsx/plus.d.ts +1 -0
  392. package/dist/icons/tsx/plusCircled.d.ts +1 -0
  393. package/dist/icons/tsx/print.d.ts +1 -0
  394. package/dist/icons/tsx/property.d.ts +1 -0
  395. package/dist/icons/tsx/publish.d.ts +1 -0
  396. package/dist/icons/tsx/questionAnswer.d.ts +1 -0
  397. package/dist/icons/tsx/receipt.d.ts +1 -0
  398. package/dist/icons/tsx/redo.d.ts +1 -0
  399. package/dist/icons/tsx/refresh.d.ts +1 -0
  400. package/dist/icons/tsx/replay.d.ts +1 -0
  401. package/dist/icons/tsx/search.d.ts +1 -0
  402. package/dist/icons/tsx/settings.d.ts +1 -0
  403. package/dist/icons/tsx/sms.d.ts +1 -0
  404. package/dist/icons/tsx/star.d.ts +1 -0
  405. package/dist/icons/tsx/starFilled.d.ts +1 -0
  406. package/dist/icons/tsx/sync.d.ts +1 -0
  407. package/dist/icons/tsx/time.d.ts +1 -0
  408. package/dist/icons/tsx/tingrett.d.ts +1 -0
  409. package/dist/icons/tsx/tip.d.ts +1 -0
  410. package/dist/icons/tsx/trash.d.ts +1 -0
  411. package/dist/icons/tsx/trendingDown.d.ts +1 -0
  412. package/dist/icons/tsx/trendingUp.d.ts +1 -0
  413. package/dist/icons/tsx/twitter.d.ts +1 -0
  414. package/dist/icons/tsx/undo.d.ts +1 -0
  415. package/dist/icons/tsx/unfoldLess.d.ts +1 -0
  416. package/dist/icons/tsx/unfoldMore.d.ts +1 -0
  417. package/dist/icons/tsx/upload.d.ts +1 -0
  418. package/dist/icons/tsx/visibilityOff.d.ts +1 -0
  419. package/dist/icons/tsx/visibilityOn.d.ts +1 -0
  420. package/dist/icons/tsx/warning.d.ts +1 -0
  421. package/dist/icons/tsx/zoomIn.d.ts +1 -0
  422. package/dist/icons/tsx/zoomOut.d.ts +1 -0
  423. package/dist/icons/utils/SvgWrapper.d.ts +1 -0
  424. package/dist/index.d.ts +1 -1
  425. package/dist/index.js +1 -2
  426. package/dist/test/mocks/IntersectionObserver.d.ts +1 -0
  427. package/package.json +8 -28
  428. package/dist/cjs/components/FormGenerator/FormGenerator.d.ts +0 -5
  429. package/dist/cjs/components/FormGenerator/FormGenerator.examples.d.ts +0 -5
  430. package/dist/cjs/components/FormGenerator/FormGenerator.stories.d.ts +0 -10
  431. package/dist/cjs/components/FormGenerator/FormGenerator.styles.d.ts +0 -10
  432. package/dist/cjs/components/FormGenerator/FormGenerator.tokens.d.ts +0 -19
  433. package/dist/cjs/components/FormGenerator/FormGenerator.types.d.ts +0 -223
  434. package/dist/cjs/components/FormGenerator/index.d.ts +0 -2
  435. package/dist/components/FormGenerator/FormGenerator.d.ts +0 -5
  436. package/dist/components/FormGenerator/FormGenerator.examples.d.ts +0 -5
  437. package/dist/components/FormGenerator/FormGenerator.js +0 -316
  438. package/dist/components/FormGenerator/FormGenerator.stories.d.ts +0 -10
  439. package/dist/components/FormGenerator/FormGenerator.styles.d.ts +0 -10
  440. package/dist/components/FormGenerator/FormGenerator.styles.js +0 -48
  441. package/dist/components/FormGenerator/FormGenerator.tokens.d.ts +0 -19
  442. package/dist/components/FormGenerator/FormGenerator.tokens.js +0 -21
  443. package/dist/components/FormGenerator/FormGenerator.types.d.ts +0 -223
  444. package/dist/components/FormGenerator/FormGenerator.types.js +0 -33
  445. package/dist/components/FormGenerator/index.d.ts +0 -2
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function NotificationsIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function NotificationsOffIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function OnlineMeetingIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function OpenExternalIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function PdfIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function PersonIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function PersonAddIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function PinIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function PlusIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function PlusCircledIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function PrintIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function PropertyIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function PublishIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function QuestionAnswerIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function ReceiptIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function RedoIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function RefreshIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function ReplayIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function SearchIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function SettingsIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function SmsIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function StarIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function StarFilledIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function SyncIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function TimeIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function TingrettIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function TipIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function TrashIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils';
2
3
  export declare function TrendingDownIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils';
2
3
  export declare function TrendingUpIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function TwitterIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function UndoIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function UnfoldLessIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function UnfoldMoreIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function UploadIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function VisibilityOffIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function VisibilityOnIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function WarningIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function ZoomInIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from '../utils/propTypes';
2
3
  export declare function ZoomOutIcon(props: SvgProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SvgProps } from './propTypes';
2
3
  export declare function SvgWrapper(props: SvgProps): JSX.Element;
package/dist/index.d.ts CHANGED
@@ -43,8 +43,8 @@ export * from './components/InlineEdit';
43
43
  export * from './components/TextArea';
44
44
  export * from './components/SplitButton';
45
45
  export * from './components/Stack';
46
- export * from './components/FormGenerator';
47
46
  export * from './components/FileUploader';
48
47
  export * from './types/BaseComponentProps';
49
48
  export * from './helpers/ScreenSize';
50
49
  export * from './components/EmptyContent';
50
+ export * from './components/BackLink';
package/dist/index.js CHANGED
@@ -216,9 +216,8 @@ export { InlineEditInput } from './components/InlineEdit/InlineEditInput.js';
216
216
  export { StyledTextArea, TextArea } from './components/TextArea/TextArea.js';
217
217
  export { SplitButton } from './components/SplitButton/SplitButton.js';
218
218
  export { HStack, VStack } from './components/Stack/Stack.js';
219
- export { FormGenerator } from './components/FormGenerator/FormGenerator.js';
220
- export { FormGeneratorSupportedFields } from './components/FormGenerator/FormGenerator.types.js';
221
219
  export { FileUploader } from './components/FileUploader/FileUploader.js';
222
220
  export { getBaseHTMLProps, joinClassNames } from './types/BaseComponentProps.js';
223
221
  export { getLiteralScreenSize } from './helpers/ScreenSize/ScreenSize.utils.js';
224
222
  export { EmptyContent } from './components/EmptyContent/EmptyContent.js';
223
+ export { BackLink } from './components/BackLink/BackLink.js';
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norges-domstoler/dds-components",
3
- "version": "11.3.1",
3
+ "version": "12.0.0",
4
4
  "description": "React components used in Elsa - domstolenes designsystem",
5
5
  "author": "Elsa team",
6
6
  "license": "MIT",
@@ -20,8 +20,8 @@
20
20
  "homepage": "https://design.domstol.no",
21
21
  "scripts": {
22
22
  "clean": "rm -r dist || :",
23
- "test": "jest",
24
- "test:watch": "jest --watch",
23
+ "test": "vitest run",
24
+ "test:watch": "vitest watch",
25
25
  "build": "rollup -c",
26
26
  "dev": "concurrently 'npm:dev:*'",
27
27
  "dev:rollup": "rollup -c -w",
@@ -67,7 +67,6 @@
67
67
  "@testing-library/jest-dom": "^5.16.5",
68
68
  "@testing-library/react": "^14.0.0",
69
69
  "@testing-library/user-event": "^14.4.3",
70
- "@types/jest": "^29.4.0",
71
70
  "@types/react": "^18.0.21",
72
71
  "@types/react-dom": "^18.0.11",
73
72
  "@types/styled-components": "^5.1.26",
@@ -76,13 +75,12 @@
76
75
  "babel-loader": "^9.1.2",
77
76
  "babel-plugin-styled-components": "^2.0.7",
78
77
  "concurrently": "^7.4.0",
79
- "eslint": "^8.24.0",
78
+ "eslint": "^8.38.0",
80
79
  "eslint-config-prettier": "^8.7.0",
81
80
  "eslint-plugin-prettier": "^4.2.1",
82
81
  "eslint-plugin-react": "^7.32.2",
83
82
  "eslint-plugin-storybook": "^0.6.4",
84
- "jest": "^29.4.3",
85
- "jest-environment-jsdom": "^29.4.2",
83
+ "jsdom": "^21.1.1",
86
84
  "react": "^18.2.0",
87
85
  "react-dom": "^18.2.0",
88
86
  "rollup": "^3.10.0",
@@ -90,8 +88,9 @@
90
88
  "rollup-plugin-import-css": "^3.1.0",
91
89
  "rollup-plugin-sass": "^1.12.19",
92
90
  "rollup-plugin-typescript2": "^0.34.1",
93
- "ts-jest": "^29.0.2",
94
- "typescript": "^5.0.2"
91
+ "typescript": "^5.0.2",
92
+ "vite": "^4.2.1",
93
+ "vitest": "^0.30.1"
95
94
  },
96
95
  "peerDependencies": {
97
96
  "@norges-domstoler/dds-design-tokens": "^3",
@@ -99,25 +98,6 @@
99
98
  "react-dom": "^16 || ^17 || ^18",
100
99
  "styled-components": "^5"
101
100
  },
102
- "jest": {
103
- "preset": "ts-jest",
104
- "testEnvironment": "jsdom",
105
- "setupFilesAfterEnv": [
106
- "<rootDir>/src/setupTests.ts"
107
- ],
108
- "moduleNameMapper": {
109
- "\\.css$": "<rootDir>/__mocks__/styleMock.js"
110
- },
111
- "transform": {
112
- "\\.svg$": "<rootDir>/svgTransform.js",
113
- "^.+\\.tsx?$": [
114
- "ts-jest",
115
- {
116
- "tsconfig": "tsconfig.json"
117
- }
118
- ]
119
- }
120
- },
121
101
  "dependencies": {
122
102
  "@floating-ui/react-dom": "^1.3.0",
123
103
  "attr-accept": "^2.2.2",
@@ -1,5 +0,0 @@
1
- import { FormGeneratorProps } from './FormGenerator.types';
2
- /**
3
- * @deprecated FormGenerator er flyttet til egen pakke og renamet til PageGenerator. Se @norges-domstoler/dds-page-generator.
4
- */
5
- export declare const FormGenerator: (props: FormGeneratorProps) => JSX.Element;
@@ -1,5 +0,0 @@
1
- import { FormGeneratorField, FormGeneratorRow } from './FormGenerator.types';
2
- export declare const exampleDefault: (FormGeneratorField | FormGeneratorRow)[];
3
- export declare const exampleRowTypes: (FormGeneratorField | FormGeneratorRow)[];
4
- export declare const exampleChildren: (FormGeneratorField | FormGeneratorRow)[];
5
- export declare const exampleFull: (FormGeneratorField | FormGeneratorRow)[];
@@ -1,10 +0,0 @@
1
- import { FormGeneratorProps } from './FormGenerator.types';
2
- declare const _default: {
3
- title: string;
4
- component: (props: FormGeneratorProps) => JSX.Element;
5
- };
6
- export default _default;
7
- export declare const Default: (args: FormGeneratorProps) => JSX.Element;
8
- export declare const Rows: (args: FormGeneratorProps) => JSX.Element;
9
- export declare const ComponentWithChildren: (args: FormGeneratorProps) => JSX.Element;
10
- export declare const FullExample: (args: FormGeneratorProps) => JSX.Element;
@@ -1,10 +0,0 @@
1
- import { ScreenSize } from '../../hooks/useScreenSize';
2
- export declare const FormGeneratorFlexContainer: import("styled-components").StyledComponent<"div", any, {
3
- screenSize: ScreenSize;
4
- }, never>;
5
- export declare const SubContainer: import("styled-components").StyledComponent<"div", any, {
6
- screenSize: ScreenSize;
7
- length: number;
8
- breakpoint?: ScreenSize | undefined;
9
- }, never>;
10
- export declare const ButtonRow: import("styled-components").StyledComponent<(props: import("../Grid").GridChildProps) => JSX.Element, any, {}, never>;
@@ -1,19 +0,0 @@
1
- export declare const formGeneratorTokens: {
2
- columnGaps: {
3
- 0: string;
4
- 1: string;
5
- 2: string;
6
- 3: string;
7
- 4: string;
8
- };
9
- rowGaps: {
10
- xs: string;
11
- sm: string;
12
- md: string;
13
- lg: string;
14
- xl: string;
15
- };
16
- buttonRow: {
17
- marginTop: string;
18
- };
19
- };
@@ -1,223 +0,0 @@
1
- import { ScreenSize } from '../..';
2
- import { BaseComponentPropsWithChildren } from '../../types';
3
- import { ButtonProps } from '../Button';
4
- import { CardProps } from '../Card';
5
- import { CheckboxGroupProps, CheckboxProps } from '../Checkbox';
6
- import { DatepickerProps } from '../Datepicker';
7
- import { DescriptionListProps, DescriptionListDescProps, DescriptionListGroupProps, DescriptionListTermProps } from '../DescriptionList';
8
- import { DividerProps } from '../Divider';
9
- import { GlobalMessageProps } from '../GlobalMessage';
10
- import { InputMessageProps } from '../InputMessage';
11
- import { ListProps, ListItemProps } from '../List';
12
- import { LocalMessageProps } from '../LocalMessage';
13
- import { RadioButtonGroupProps, RadioButtonProps } from '../RadioButton';
14
- import { SelectOption, SelectProps } from '../Select';
15
- import { SpinnerProps } from '../Spinner';
16
- import { TextInputProps } from '../TextInput';
17
- import { ToggleButtonProps, ToggleButtonGroupProps } from '../ToggleButton';
18
- import { HeadingProps, LabelProps, LinkProps, ParagraphProps, TypographyProps } from '../Typography';
19
- import { VisuallyHiddenProps } from '../VisuallyHidden';
20
- export type FormGeneratorProps = BaseComponentPropsWithChildren<HTMLElement, {
21
- /** Definere liste med felt/komponenter og/eller rader med felt/komponenter */
22
- fields: (FormGeneratorField | FormGeneratorRow)[];
23
- /** For å hente ut state etter endringer */
24
- stateOnChange: (newState: object) => void;
25
- }>;
26
- export type FormGeneratorRow = {
27
- rowType: 'button' | 'standard';
28
- breakpoint?: ScreenSize;
29
- fields: FormGeneratorField[];
30
- };
31
- export declare enum FormGeneratorSupportedFields {
32
- Button = "Button",
33
- Card = "Card",
34
- Checkbox = "Checkbox",
35
- CheckboxGroup = "CheckboxGroup",
36
- Datepicker = "Datepicker",
37
- DescriptionList = "DescriptionList",
38
- DescriptionListGroup = "DescriptionListGroup",
39
- DescriptionListDesc = "DescriptionListDesc",
40
- DescriptionListTerm = "DescriptionListTerm",
41
- Divider = "Divider",
42
- GlobalMessage = "GlobalMessage",
43
- Heading = "Heading",
44
- InputMessage = "InputMessage",
45
- Label = "Label",
46
- Link = "Link",
47
- List = "List",
48
- ListItem = "ListItem",
49
- LocalMessage = "LocalMessage",
50
- Paragraph = "Paragraph",
51
- RadioButton = "RadioButton",
52
- RadioButtonGroup = "RadioButtonGroup",
53
- Select = "Select",
54
- Spinner = "Spinner",
55
- TextInput = "TextInput",
56
- ToggleButton = "ToggleButton",
57
- ToggleButtonGroup = "ToggleButtonGroup",
58
- Typography = "Typography",
59
- VisuallyHidden = "VisuallyHidden"
60
- }
61
- export type FormGeneratorField = FieldWithChildren | FieldWithoutChildren;
62
- type FieldWithChildren = CheckboxGroupField | DescriptionListField | DescriptionListGroupField | ListField | RadioButtonGroupField | ToggleButtonGroupField;
63
- type FieldWithoutChildren = ButtonField | CardField | CheckboxField | DatepickerField | DescriptionListTermField | DescriptionListDescField | DividerField | GlobalMessageField | HeadingField | InputMessageField | LabelField | LinkField | ListItemField | LocalMessageField | ParagraphField | RadioButtonField | SelectField | SpinnerField | TextInputField | ToggleButtonField | TypographyField | VisuallyHiddenField;
64
- type ButtonField = {
65
- component: FormGeneratorSupportedFields.Button;
66
- props: ButtonProps;
67
- hide?: boolean;
68
- };
69
- type CardField = {
70
- component: FormGeneratorSupportedFields.Card;
71
- props: CardProps;
72
- hide?: boolean;
73
- innerHTML: JSX.Element | string;
74
- };
75
- type CheckboxField = {
76
- component: FormGeneratorSupportedFields.Checkbox;
77
- props: CheckboxProps;
78
- hide?: boolean;
79
- };
80
- type CheckboxGroupField = {
81
- component: FormGeneratorSupportedFields.CheckboxGroup;
82
- props: CheckboxGroupProps;
83
- hide?: boolean;
84
- children: CheckboxField[];
85
- };
86
- type DatepickerField = {
87
- component: FormGeneratorSupportedFields.Datepicker;
88
- props: DatepickerProps;
89
- hide?: boolean;
90
- };
91
- type DescriptionListField = {
92
- component: FormGeneratorSupportedFields.DescriptionList;
93
- props: DescriptionListProps;
94
- hide?: boolean;
95
- children: DescriptionListGroupField[];
96
- };
97
- type DescriptionListGroupField = {
98
- component: FormGeneratorSupportedFields.DescriptionListGroup;
99
- props: DescriptionListGroupProps;
100
- hide?: boolean;
101
- children: (DescriptionListTermField | DescriptionListDescField)[];
102
- };
103
- type DescriptionListTermField = {
104
- component: FormGeneratorSupportedFields.DescriptionListTerm;
105
- props: DescriptionListTermProps;
106
- hide?: boolean;
107
- innerHTML: JSX.Element | string;
108
- };
109
- type DescriptionListDescField = {
110
- component: FormGeneratorSupportedFields.DescriptionListDesc;
111
- props: DescriptionListDescProps;
112
- hide?: boolean;
113
- innerHTML: JSX.Element | string;
114
- };
115
- type DividerField = {
116
- component: FormGeneratorSupportedFields.Divider;
117
- props: DividerProps;
118
- hide?: boolean;
119
- };
120
- type GlobalMessageField = {
121
- component: FormGeneratorSupportedFields.GlobalMessage;
122
- props: GlobalMessageProps;
123
- hide?: boolean;
124
- innerHTML?: JSX.Element | string;
125
- };
126
- type HeadingField = {
127
- component: FormGeneratorSupportedFields.Heading;
128
- props: HeadingProps;
129
- hide?: boolean;
130
- innerHTML?: JSX.Element | string;
131
- };
132
- type InputMessageField = {
133
- component: FormGeneratorSupportedFields.InputMessage;
134
- props: InputMessageProps;
135
- hide?: boolean;
136
- };
137
- type LabelField = {
138
- component: FormGeneratorSupportedFields.Label;
139
- props: LabelProps;
140
- hide?: boolean;
141
- innerHTML?: JSX.Element | string;
142
- };
143
- type LinkField = {
144
- component: FormGeneratorSupportedFields.Link;
145
- props: LinkProps;
146
- hide?: boolean;
147
- innerHTML?: JSX.Element | string;
148
- };
149
- type ListItemField = {
150
- component: FormGeneratorSupportedFields.ListItem;
151
- props?: ListItemProps;
152
- hide?: boolean;
153
- innerHTML?: JSX.Element | string;
154
- };
155
- type ListField = {
156
- component: FormGeneratorSupportedFields.List;
157
- props?: ListProps;
158
- hide?: boolean;
159
- children: ListItemField[];
160
- };
161
- type LocalMessageField = {
162
- component: FormGeneratorSupportedFields.LocalMessage;
163
- props: LocalMessageProps;
164
- hide?: boolean;
165
- innerHTML?: JSX.Element | string;
166
- };
167
- type ParagraphField = {
168
- component: FormGeneratorSupportedFields.Paragraph;
169
- props: ParagraphProps;
170
- hide?: boolean;
171
- innerHTML?: JSX.Element | string;
172
- };
173
- type RadioButtonField = {
174
- component: FormGeneratorSupportedFields.RadioButton;
175
- props: RadioButtonProps;
176
- hide?: boolean;
177
- };
178
- type RadioButtonGroupField = {
179
- component: FormGeneratorSupportedFields.RadioButtonGroup;
180
- props: RadioButtonGroupProps<string | number>;
181
- hide?: boolean;
182
- children: RadioButtonField[];
183
- };
184
- type SelectField = {
185
- component: FormGeneratorSupportedFields.Select;
186
- props: SelectProps<SelectOption<unknown>, boolean>;
187
- name: string;
188
- hide?: boolean;
189
- };
190
- type SpinnerField = {
191
- component: FormGeneratorSupportedFields.Spinner;
192
- props: SpinnerProps;
193
- hide?: boolean;
194
- };
195
- type TextInputField = {
196
- component: FormGeneratorSupportedFields.TextInput;
197
- props: TextInputProps;
198
- hide?: boolean;
199
- };
200
- type ToggleButtonField = {
201
- component: FormGeneratorSupportedFields.ToggleButton;
202
- props: ToggleButtonProps;
203
- hide?: boolean;
204
- };
205
- type ToggleButtonGroupField = {
206
- component: FormGeneratorSupportedFields.ToggleButtonGroup;
207
- props: ToggleButtonGroupProps;
208
- hide?: boolean;
209
- children: ToggleButtonField[];
210
- };
211
- type TypographyField = {
212
- component: FormGeneratorSupportedFields.Typography;
213
- props: TypographyProps;
214
- hide?: boolean;
215
- innerHTML: JSX.Element | string;
216
- };
217
- type VisuallyHiddenField = {
218
- component: FormGeneratorSupportedFields.VisuallyHidden;
219
- props: VisuallyHiddenProps;
220
- hide?: boolean;
221
- innerHTML: JSX.Element | string;
222
- };
223
- export {};
@@ -1,2 +0,0 @@
1
- export * from './FormGenerator';
2
- export * from './FormGenerator.types';
@@ -1,5 +0,0 @@
1
- import { FormGeneratorProps } from './FormGenerator.types';
2
- /**
3
- * @deprecated FormGenerator er flyttet til egen pakke og renamet til PageGenerator. Se @norges-domstoler/dds-page-generator.
4
- */
5
- export declare const FormGenerator: (props: FormGeneratorProps) => JSX.Element;
@@ -1,5 +0,0 @@
1
- import { FormGeneratorField, FormGeneratorRow } from './FormGenerator.types';
2
- export declare const exampleDefault: (FormGeneratorField | FormGeneratorRow)[];
3
- export declare const exampleRowTypes: (FormGeneratorField | FormGeneratorRow)[];
4
- export declare const exampleChildren: (FormGeneratorField | FormGeneratorRow)[];
5
- export declare const exampleFull: (FormGeneratorField | FormGeneratorRow)[];