@altinn/altinn-components 0.5.2 → 0.6.1

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 (544) hide show
  1. package/README.md +14 -2
  2. package/dist/components/Attachment/AttachmentLink.d.ts +10 -0
  3. package/dist/components/Attachment/AttachmentList.d.ts +7 -0
  4. package/dist/components/Avatar/Avatar.d.ts +27 -0
  5. package/dist/components/Avatar/AvatarGroup.d.ts +20 -0
  6. package/dist/components/Avatar/color.d.ts +4 -0
  7. package/dist/components/Badge/Badge.d.ts +11 -0
  8. package/dist/components/Bookmarks/BookmarksList.d.ts +7 -0
  9. package/dist/components/Bookmarks/BookmarksListItem.d.ts +21 -0
  10. package/dist/components/Bookmarks/QueryLabel.d.ts +11 -0
  11. package/dist/components/Bookmarks/index.d.ts +3 -0
  12. package/dist/components/Button/Button.d.ts +8 -0
  13. package/dist/components/Button/ButtonBase.d.ts +20 -0
  14. package/dist/components/Button/ButtonIcon.d.ts +7 -0
  15. package/dist/components/Button/ButtonLabel.d.ts +8 -0
  16. package/dist/components/Button/ComboButton.d.ts +10 -0
  17. package/dist/components/Button/IconButton.d.ts +14 -0
  18. package/dist/components/ContextMenu/ContextMenu.d.ts +8 -0
  19. package/dist/components/ContextMenu/ContextMenuBase.d.ts +9 -0
  20. package/dist/components/Datepicker/index.d.ts +1 -0
  21. package/dist/components/Dialog/Dialog.d.ts +54 -0
  22. package/dist/components/Dialog/DialogActions.d.ts +16 -0
  23. package/dist/components/Dialog/DialogActivityLog.d.ts +10 -0
  24. package/dist/components/Dialog/DialogArticleBase.d.ts +6 -0
  25. package/dist/components/Dialog/DialogAttachments.d.ts +6 -0
  26. package/dist/components/Dialog/DialogBase.d.ts +5 -0
  27. package/dist/components/Dialog/DialogBodyBase.d.ts +5 -0
  28. package/dist/components/Dialog/DialogBorder.d.ts +9 -0
  29. package/dist/components/Dialog/DialogContent.d.ts +9 -0
  30. package/dist/components/Dialog/DialogFooter.d.ts +4 -0
  31. package/dist/components/Dialog/DialogGroup.d.ts +6 -0
  32. package/dist/components/Dialog/DialogHeader.d.ts +10 -0
  33. package/dist/components/Dialog/DialogHeaderBase.d.ts +5 -0
  34. package/dist/components/Dialog/DialogHeadings.d.ts +24 -0
  35. package/dist/components/Dialog/DialogHistory.d.ts +6 -0
  36. package/dist/components/Dialog/DialogList.d.ts +7 -0
  37. package/dist/components/Dialog/DialogListItem.d.ts +59 -0
  38. package/dist/components/Dialog/DialogListItemBase.d.ts +28 -0
  39. package/dist/components/Dialog/DialogMetadata.d.ts +22 -0
  40. package/dist/components/Dialog/DialogNav.d.ts +21 -0
  41. package/dist/components/Dialog/DialogSectionBase.d.ts +6 -0
  42. package/dist/components/Dialog/DialogSeenBy.d.ts +19 -0
  43. package/dist/components/Dialog/DialogSelect.d.ts +10 -0
  44. package/dist/components/Dialog/DialogStatus.d.ts +25 -0
  45. package/dist/components/Dialog/DialogTitle.d.ts +20 -0
  46. package/dist/components/Dialog/DialogTouchedBy.d.ts +10 -0
  47. package/dist/components/Dropdown/Backdrop.d.ts +6 -0
  48. package/dist/components/Dropdown/DrawerBase.d.ts +9 -0
  49. package/dist/components/Dropdown/DrawerBody.d.ts +6 -0
  50. package/dist/components/Dropdown/DrawerButton.d.ts +7 -0
  51. package/dist/components/Dropdown/DrawerFooter.d.ts +6 -0
  52. package/dist/components/Dropdown/DrawerHeader.d.ts +7 -0
  53. package/dist/components/Dropdown/DrawerOrDropdown.d.ts +10 -0
  54. package/dist/components/Dropdown/DropdownBase.d.ts +10 -0
  55. package/{lib/components/Dropdown/index.ts → dist/components/Dropdown/index.d.ts} +0 -1
  56. package/dist/components/Footer/Footer.d.ts +6 -0
  57. package/dist/components/Footer/FooterAddress.d.ts +6 -0
  58. package/dist/components/Footer/FooterBase.d.ts +6 -0
  59. package/dist/components/Footer/FooterLogo.d.ts +5 -0
  60. package/dist/components/Footer/FooterMenu.d.ts +14 -0
  61. package/dist/components/GlobalMenu/AccountButton.d.ts +14 -0
  62. package/dist/components/GlobalMenu/AccountMenu.d.ts +20 -0
  63. package/dist/components/GlobalMenu/BackButton.d.ts +5 -0
  64. package/dist/components/GlobalMenu/GlobalMenu.d.ts +16 -0
  65. package/dist/components/GlobalMenu/GlobalMenuBase.d.ts +7 -0
  66. package/dist/components/GlobalMenu/LogoutButton.d.ts +7 -0
  67. package/dist/components/Header/DigdirLogomark.d.ts +5 -0
  68. package/dist/components/Header/Header.d.ts +9 -0
  69. package/dist/components/Header/HeaderBase.d.ts +9 -0
  70. package/dist/components/Header/HeaderButton.d.ts +15 -0
  71. package/dist/components/Header/HeaderLogo.d.ts +9 -0
  72. package/dist/components/Header/HeaderMenu.d.ts +7 -0
  73. package/dist/components/Header/HeaderSearch.d.ts +7 -0
  74. package/dist/components/History/HistoryAttachments.d.ts +6 -0
  75. package/dist/components/History/HistoryBorder.d.ts +7 -0
  76. package/dist/components/History/HistoryItem.d.ts +14 -0
  77. package/dist/components/History/HistoryList.d.ts +6 -0
  78. package/dist/components/Icon/CheckboxCheckedIcon.d.ts +8 -0
  79. package/dist/components/Icon/CheckboxIcon.d.ts +10 -0
  80. package/dist/components/Icon/CheckboxUncheckedIcon.d.ts +9 -0
  81. package/dist/components/Icon/Icon.d.ts +9 -0
  82. package/dist/components/Icon/ProgressIcon.d.ts +6 -0
  83. package/dist/components/Icon/RadioCheckedIcon.d.ts +8 -0
  84. package/dist/components/Icon/RadioIcon.d.ts +10 -0
  85. package/dist/components/Icon/RadioUncheckedIcon.d.ts +9 -0
  86. package/dist/components/Icon/SvgIcon.d.ts +9 -0
  87. package/dist/components/Icon/iconsMap.d.ts +1911 -0
  88. package/dist/components/Layout/Layout.d.ts +24 -0
  89. package/dist/components/Layout/LayoutBase.d.ts +21 -0
  90. package/dist/components/Layout/LayoutBody.d.ts +7 -0
  91. package/dist/components/Layout/LayoutContent.d.ts +7 -0
  92. package/dist/components/Layout/LayoutSidebar.d.ts +13 -0
  93. package/dist/components/LayoutAction/ActionFooter.d.ts +6 -0
  94. package/dist/components/LayoutAction/ActionHeader.d.ts +7 -0
  95. package/dist/components/LayoutAction/ActionMenu.d.ts +6 -0
  96. package/dist/components/List/List.d.ts +10 -0
  97. package/dist/components/List/ListBase.d.ts +9 -0
  98. package/dist/components/List/ListItem.d.ts +46 -0
  99. package/dist/components/List/ListItemBase.d.ts +27 -0
  100. package/dist/components/List/ListItemLabel.d.ts +9 -0
  101. package/dist/components/List/ListItemMedia.d.ts +14 -0
  102. package/dist/components/Menu/Menu.d.ts +8 -0
  103. package/dist/components/Menu/MenuBase.d.ts +27 -0
  104. package/dist/components/Menu/MenuHeader.d.ts +4 -0
  105. package/dist/components/Menu/MenuInputField.d.ts +12 -0
  106. package/dist/components/Menu/MenuItem.d.ts +35 -0
  107. package/dist/components/Menu/MenuItemBase.d.ts +23 -0
  108. package/dist/components/Menu/MenuItemLabel.d.ts +10 -0
  109. package/dist/components/Menu/MenuItemMedia.d.ts +14 -0
  110. package/dist/components/Menu/MenuItems.d.ts +17 -0
  111. package/dist/components/Menu/MenuOption.d.ts +19 -0
  112. package/dist/components/Menu/MenuSearch.d.ts +8 -0
  113. package/{lib/components/Menu/index.ts → dist/components/Menu/index.d.ts} +1 -0
  114. package/dist/components/Meta/MetaBase.d.ts +7 -0
  115. package/dist/components/Meta/MetaItem.d.ts +18 -0
  116. package/dist/components/Meta/MetaItemBase.d.ts +15 -0
  117. package/dist/components/Meta/MetaItemLabel.d.ts +11 -0
  118. package/dist/components/Meta/MetaItemMedia.d.ts +9 -0
  119. package/dist/components/Meta/MetaList.d.ts +12 -0
  120. package/dist/components/Meta/MetaProgress.d.ts +13 -0
  121. package/dist/components/Meta/MetaTimestamp.d.ts +16 -0
  122. package/dist/components/Page/PageBase.d.ts +6 -0
  123. package/dist/components/Page/PageHeader.d.ts +7 -0
  124. package/dist/components/Page/PageHeaderMedia.d.ts +10 -0
  125. package/dist/components/Page/PageNav.d.ts +14 -0
  126. package/dist/components/Page/SectionBase.d.ts +19 -0
  127. package/dist/components/Page/SectionFooter.d.ts +6 -0
  128. package/dist/components/Page/SectionHeader.d.ts +7 -0
  129. package/dist/components/RootProvider/RootProvider.d.ts +19 -0
  130. package/dist/components/Searchbar/Autocomplete.d.ts +9 -0
  131. package/dist/components/Searchbar/AutocompleteBase.d.ts +7 -0
  132. package/dist/components/Searchbar/AutocompleteGroup.d.ts +6 -0
  133. package/dist/components/Searchbar/AutocompleteItem.d.ts +13 -0
  134. package/dist/components/Searchbar/SearchField.d.ts +16 -0
  135. package/dist/components/Searchbar/Searchbar.d.ts +9 -0
  136. package/dist/components/Searchbar/SearchbarBase.d.ts +8 -0
  137. package/dist/components/Snackbar/Snackbar.d.ts +21 -0
  138. package/dist/components/Snackbar/SnackbarBase.d.ts +13 -0
  139. package/dist/components/Snackbar/SnackbarLabel.d.ts +5 -0
  140. package/dist/components/Snackbar/SnackbarMedia.d.ts +6 -0
  141. package/dist/components/Toolbar/Toolbar.d.ts +15 -0
  142. package/dist/components/Toolbar/ToolbarAdd.d.ts +10 -0
  143. package/dist/components/Toolbar/ToolbarBase.d.ts +7 -0
  144. package/dist/components/Toolbar/ToolbarButton.d.ts +14 -0
  145. package/dist/components/Toolbar/ToolbarFilter.d.ts +23 -0
  146. package/dist/components/Toolbar/ToolbarFilterBase.d.ts +6 -0
  147. package/dist/components/Toolbar/ToolbarMenu.d.ts +13 -0
  148. package/dist/components/Toolbar/ToolbarOptions.d.ts +18 -0
  149. package/dist/components/Toolbar/ToolbarSearch.d.ts +8 -0
  150. package/dist/components/Typography/Heading.d.ts +10 -0
  151. package/dist/components/Typography/Typography.d.ts +11 -0
  152. package/{lib/components/index.ts → dist/components/index.d.ts} +3 -1
  153. package/dist/hooks/useClickOutside.d.ts +2 -0
  154. package/dist/hooks/useEscapeKey.d.ts +1 -0
  155. package/dist/hooks/useMenu.d.ts +21 -0
  156. package/dist/index.css +1 -0
  157. package/dist/index.es.js +3340 -0
  158. package/package.json +27 -19
  159. package/.github/workflows/ci-cd-main.yml +0 -47
  160. package/.github/workflows/ci-cd-pull-request.yml +0 -39
  161. package/.github/workflows/workflow-deploy-storybook.yml +0 -35
  162. package/.node-version +0 -1
  163. package/.storybook/StoryDecorator.tsx +0 -29
  164. package/.storybook/ThemeProvider.tsx +0 -16
  165. package/.storybook/main.ts +0 -20
  166. package/.storybook/preview.tsx +0 -63
  167. package/.storybook/storyDecorator.module.css +0 -20
  168. package/.storybook/theme.module.css +0 -3
  169. package/CHANGELOG.md +0 -90
  170. package/CONTRIBUTING.MD +0 -59
  171. package/biome.jsonc +0 -65
  172. package/lib/components/Attachment/AttachmentLink.stories.ts +0 -19
  173. package/lib/components/Attachment/AttachmentLink.tsx +0 -20
  174. package/lib/components/Attachment/AttachmentList.stories.ts +0 -39
  175. package/lib/components/Attachment/AttachmentList.tsx +0 -26
  176. package/lib/components/Attachment/attachmentLink.module.css +0 -20
  177. package/lib/components/Attachment/attachmentList.module.css +0 -12
  178. package/lib/components/Avatar/Avatar.tsx +0 -83
  179. package/lib/components/Avatar/AvatarGroup.stories.ts +0 -66
  180. package/lib/components/Avatar/AvatarGroup.tsx +0 -60
  181. package/lib/components/Avatar/avatar.module.css +0 -61
  182. package/lib/components/Avatar/avatar.stories.tsx +0 -40
  183. package/lib/components/Avatar/avatarGroup.module.css +0 -78
  184. package/lib/components/Avatar/color.ts +0 -71
  185. package/lib/components/Badge/Badge.stories.ts +0 -32
  186. package/lib/components/Badge/Badge.tsx +0 -22
  187. package/lib/components/Badge/badge.module.css +0 -27
  188. package/lib/components/Button/Button.stories.ts +0 -50
  189. package/lib/components/Button/Button.tsx +0 -60
  190. package/lib/components/Button/ButtonBase.tsx +0 -53
  191. package/lib/components/Button/ButtonIcon.tsx +0 -16
  192. package/lib/components/Button/ButtonLabel.tsx +0 -18
  193. package/lib/components/Button/Buttons.stories.tsx +0 -64
  194. package/lib/components/Button/ComboButton.stories.ts +0 -45
  195. package/lib/components/Button/ComboButton.tsx +0 -46
  196. package/lib/components/Button/IconButton.stories.tsx +0 -47
  197. package/lib/components/Button/IconButton.tsx +0 -31
  198. package/lib/components/Button/button.module.css +0 -22
  199. package/lib/components/Button/buttonBase.module.css +0 -142
  200. package/lib/components/Button/buttonIcon.module.css +0 -17
  201. package/lib/components/Button/buttonLabel.module.css +0 -17
  202. package/lib/components/Button/comboButton.module.css +0 -35
  203. package/lib/components/Button/iconButton.module.css +0 -31
  204. package/lib/components/ContextMenu/ContextMenu.stories.ts +0 -49
  205. package/lib/components/ContextMenu/ContextMenu.tsx +0 -20
  206. package/lib/components/ContextMenu/ContextMenuBase.tsx +0 -33
  207. package/lib/components/ContextMenu/contextMenuBase.module.css +0 -35
  208. package/lib/components/Dialog/Dialog.stories.ts +0 -331
  209. package/lib/components/Dialog/Dialog.tsx +0 -111
  210. package/lib/components/Dialog/DialogActions.stories.ts +0 -60
  211. package/lib/components/Dialog/DialogActions.tsx +0 -80
  212. package/lib/components/Dialog/DialogActivityLog.tsx +0 -18
  213. package/lib/components/Dialog/DialogArticleBase.tsx +0 -10
  214. package/lib/components/Dialog/DialogAttachments.stories.ts +0 -38
  215. package/lib/components/Dialog/DialogAttachments.tsx +0 -25
  216. package/lib/components/Dialog/DialogBase.tsx +0 -10
  217. package/lib/components/Dialog/DialogBodyBase.tsx +0 -17
  218. package/lib/components/Dialog/DialogBorder.tsx +0 -19
  219. package/lib/components/Dialog/DialogContent.stories.ts +0 -26
  220. package/lib/components/Dialog/DialogContent.tsx +0 -23
  221. package/lib/components/Dialog/DialogFooter.tsx +0 -14
  222. package/lib/components/Dialog/DialogGroup.tsx +0 -24
  223. package/lib/components/Dialog/DialogHeader.stories.ts +0 -24
  224. package/lib/components/Dialog/DialogHeader.tsx +0 -23
  225. package/lib/components/Dialog/DialogHeaderBase.tsx +0 -10
  226. package/lib/components/Dialog/DialogHeadings.stories.ts +0 -35
  227. package/lib/components/Dialog/DialogHeadings.tsx +0 -77
  228. package/lib/components/Dialog/DialogHistory.stories.ts +0 -67
  229. package/lib/components/Dialog/DialogHistory.tsx +0 -19
  230. package/lib/components/Dialog/DialogList.stories.ts +0 -65
  231. package/lib/components/Dialog/DialogList.tsx +0 -35
  232. package/lib/components/Dialog/DialogListItem.stories.tsx +0 -238
  233. package/lib/components/Dialog/DialogListItem.tsx +0 -126
  234. package/lib/components/Dialog/DialogListItemBase.tsx +0 -52
  235. package/lib/components/Dialog/DialogMetadata.stories.ts +0 -75
  236. package/lib/components/Dialog/DialogMetadata.tsx +0 -56
  237. package/lib/components/Dialog/DialogNav.stories.ts +0 -88
  238. package/lib/components/Dialog/DialogNav.tsx +0 -56
  239. package/lib/components/Dialog/DialogSectionBase.tsx +0 -20
  240. package/lib/components/Dialog/DialogSeenBy.stories.tsx +0 -56
  241. package/lib/components/Dialog/DialogSeenBy.tsx +0 -36
  242. package/lib/components/Dialog/DialogSelect.tsx +0 -23
  243. package/lib/components/Dialog/DialogStatus.stories.ts +0 -57
  244. package/lib/components/Dialog/DialogStatus.tsx +0 -61
  245. package/lib/components/Dialog/DialogTitle.stories.ts +0 -31
  246. package/lib/components/Dialog/DialogTitle.tsx +0 -31
  247. package/lib/components/Dialog/DialogTouchedBy.stories.tsx +0 -27
  248. package/lib/components/Dialog/DialogTouchedBy.tsx +0 -19
  249. package/lib/components/Dialog/dialog.module.css +0 -21
  250. package/lib/components/Dialog/dialogAction.module.css +0 -26
  251. package/lib/components/Dialog/dialogArticleBase.module.css +0 -5
  252. package/lib/components/Dialog/dialogBodyBase.module.css +0 -13
  253. package/lib/components/Dialog/dialogBorder.module.css +0 -42
  254. package/lib/components/Dialog/dialogGroup.module.css +0 -35
  255. package/lib/components/Dialog/dialogHeaderBase.module.css +0 -6
  256. package/lib/components/Dialog/dialogHeadings.module.css +0 -24
  257. package/lib/components/Dialog/dialogHistory.module.css +0 -12
  258. package/lib/components/Dialog/dialogListItem.module.css +0 -81
  259. package/lib/components/Dialog/dialogListItemBase.module.css +0 -28
  260. package/lib/components/Dialog/dialogNav.module.css +0 -12
  261. package/lib/components/Dialog/dialogSectionBase.module.css +0 -11
  262. package/lib/components/Dialog/dialogSelect.module.css +0 -34
  263. package/lib/components/Dialog/dialogTitle.module.css +0 -47
  264. package/lib/components/Dropdown/Backdrop.tsx +0 -12
  265. package/lib/components/Dropdown/DrawerBase.tsx +0 -20
  266. package/lib/components/Dropdown/DrawerBody.tsx +0 -12
  267. package/lib/components/Dropdown/DrawerButton.tsx +0 -17
  268. package/lib/components/Dropdown/DrawerFooter.tsx +0 -12
  269. package/lib/components/Dropdown/DrawerHeader.tsx +0 -19
  270. package/lib/components/Dropdown/DrawerOrDropdown.tsx +0 -29
  271. package/lib/components/Dropdown/DropdownBase.tsx +0 -32
  272. package/lib/components/Dropdown/backdrop.module.css +0 -11
  273. package/lib/components/Dropdown/drawerBase.module.css +0 -17
  274. package/lib/components/Dropdown/drawerBody.module.css +0 -5
  275. package/lib/components/Dropdown/drawerButton.module.css +0 -6
  276. package/lib/components/Dropdown/drawerFooter.module.css +0 -13
  277. package/lib/components/Dropdown/drawerHeader.module.css +0 -17
  278. package/lib/components/Dropdown/drawerOrDropdown.module.css +0 -19
  279. package/lib/components/Dropdown/dropdownBase.module.css +0 -34
  280. package/lib/components/Footer/Footer.stories.ts +0 -37
  281. package/lib/components/Footer/Footer.tsx +0 -21
  282. package/lib/components/Footer/FooterAddress.tsx +0 -12
  283. package/lib/components/Footer/FooterBase.tsx +0 -16
  284. package/lib/components/Footer/FooterLogo.tsx +0 -17
  285. package/lib/components/Footer/FooterMenu.tsx +0 -43
  286. package/lib/components/Footer/footerAddress.module.css +0 -8
  287. package/lib/components/Footer/footerBase.module.css +0 -28
  288. package/lib/components/Footer/footerLogo.module.css +0 -12
  289. package/lib/components/Footer/footerMenu.module.css +0 -35
  290. package/lib/components/GlobalMenu/AccountButton.tsx +0 -30
  291. package/lib/components/GlobalMenu/AccountMenu.stories.tsx +0 -65
  292. package/lib/components/GlobalMenu/AccountMenu.tsx +0 -82
  293. package/lib/components/GlobalMenu/BackButton.tsx +0 -10
  294. package/lib/components/GlobalMenu/GlobalMenu.stories.tsx +0 -181
  295. package/lib/components/GlobalMenu/GlobalMenu.tsx +0 -81
  296. package/lib/components/GlobalMenu/GlobalMenuBase.tsx +0 -22
  297. package/lib/components/GlobalMenu/LogoutButton.tsx +0 -19
  298. package/lib/components/GlobalMenu/globalMenuBase.module.css +0 -39
  299. package/lib/components/GlobalMenu/logoutButton.module.css +0 -9
  300. package/lib/components/Header/DigdirLogomark.tsx +0 -23
  301. package/lib/components/Header/Header.stories.tsx +0 -188
  302. package/lib/components/Header/Header.tsx +0 -74
  303. package/lib/components/Header/HeaderBase.tsx +0 -21
  304. package/lib/components/Header/HeaderButton.stories.ts +0 -70
  305. package/lib/components/Header/HeaderButton.tsx +0 -67
  306. package/lib/components/Header/HeaderLogo.stories.ts +0 -17
  307. package/lib/components/Header/HeaderLogo.tsx +0 -22
  308. package/lib/components/Header/HeaderMenu.tsx +0 -17
  309. package/lib/components/Header/header.module.css +0 -45
  310. package/lib/components/Header/headerBase.module.css +0 -51
  311. package/lib/components/Header/headerButton.module.css +0 -37
  312. package/lib/components/Header/headerLogo.module.css +0 -24
  313. package/lib/components/Header/headerMenu.module.css +0 -3
  314. package/lib/components/Header/mobileMenu.module.css +0 -28
  315. package/lib/components/History/HistoryAttachments.tsx +0 -22
  316. package/lib/components/History/HistoryBorder.tsx +0 -17
  317. package/lib/components/History/HistoryItem.stories.ts +0 -56
  318. package/lib/components/History/HistoryItem.tsx +0 -56
  319. package/lib/components/History/HistoryList.stories.ts +0 -70
  320. package/lib/components/History/HistoryList.tsx +0 -26
  321. package/lib/components/History/historyBorder.module.css +0 -8
  322. package/lib/components/History/historyItem.module.css +0 -19
  323. package/lib/components/History/historyList.module.css +0 -12
  324. package/lib/components/Icon/CheckboxCheckedIcon.tsx +0 -28
  325. package/lib/components/Icon/CheckboxIcon.stories.ts +0 -32
  326. package/lib/components/Icon/CheckboxIcon.tsx +0 -17
  327. package/lib/components/Icon/CheckboxUncheckedIcon.tsx +0 -38
  328. package/lib/components/Icon/Icon.stories.ts +0 -24
  329. package/lib/components/Icon/Icon.tsx +0 -23
  330. package/lib/components/Icon/ProgressIcon.stories.ts +0 -43
  331. package/lib/components/Icon/ProgressIcon.tsx +0 -44
  332. package/lib/components/Icon/RadioCheckedIcon.tsx +0 -29
  333. package/lib/components/Icon/RadioIcon.stories.ts +0 -32
  334. package/lib/components/Icon/RadioIcon.tsx +0 -17
  335. package/lib/components/Icon/RadioUncheckedIcon.tsx +0 -30
  336. package/lib/components/Icon/SvgIcon.tsx +0 -18
  337. package/lib/components/Icon/__AkselIcon.tsx +0 -37
  338. package/lib/components/Icon/checkboxIcon.module.css +0 -23
  339. package/lib/components/Icon/icon.module.css +0 -4
  340. package/lib/components/Icon/iconsMap.tsx +0 -2078
  341. package/lib/components/Icon/progressIcon.module.css +0 -29
  342. package/lib/components/Icon/radioIcon.module.css +0 -21
  343. package/lib/components/Layout/Layout.stories.tsx +0 -308
  344. package/lib/components/Layout/Layout.tsx +0 -46
  345. package/lib/components/Layout/LayoutBase.stories.ts +0 -17
  346. package/lib/components/Layout/LayoutBase.tsx +0 -31
  347. package/lib/components/Layout/LayoutBody.stories.ts +0 -17
  348. package/lib/components/Layout/LayoutBody.tsx +0 -16
  349. package/lib/components/Layout/LayoutContent.stories.ts +0 -17
  350. package/lib/components/Layout/LayoutContent.tsx +0 -15
  351. package/lib/components/Layout/LayoutSidebar.stories.ts +0 -17
  352. package/lib/components/Layout/LayoutSidebar.tsx +0 -23
  353. package/lib/components/Layout/layoutBase.module.css +0 -22
  354. package/lib/components/Layout/layoutBody.module.css +0 -15
  355. package/lib/components/Layout/layoutContent.module.css +0 -13
  356. package/lib/components/Layout/layoutSidebar.module.css +0 -20
  357. package/lib/components/LayoutAction/ActionFooter.stories.tsx +0 -70
  358. package/lib/components/LayoutAction/ActionFooter.tsx +0 -15
  359. package/lib/components/LayoutAction/ActionHeader.stories.ts +0 -20
  360. package/lib/components/LayoutAction/ActionHeader.tsx +0 -19
  361. package/lib/components/LayoutAction/ActionMenu.stories.tsx +0 -40
  362. package/lib/components/LayoutAction/ActionMenu.tsx +0 -23
  363. package/lib/components/LayoutAction/actionFooter.module.css +0 -28
  364. package/lib/components/LayoutAction/actionHeader.module.css +0 -55
  365. package/lib/components/LayoutAction/actionMenu.module.css +0 -30
  366. package/lib/components/List/List.stories.tsx +0 -43
  367. package/lib/components/List/List.tsx +0 -20
  368. package/lib/components/List/ListBase.tsx +0 -19
  369. package/lib/components/List/ListItem.stories.tsx +0 -208
  370. package/lib/components/List/ListItem.tsx +0 -73
  371. package/lib/components/List/ListItemBase.tsx +0 -78
  372. package/lib/components/List/ListItemLabel.tsx +0 -29
  373. package/lib/components/List/ListItemMedia.tsx +0 -59
  374. package/lib/components/List/listBase.module.css +0 -16
  375. package/lib/components/List/listItemBase.module.css +0 -90
  376. package/lib/components/List/listItemLabel.module.css +0 -55
  377. package/lib/components/List/listItemMedia.module.css +0 -41
  378. package/lib/components/Menu/Menu.stories.ts +0 -514
  379. package/lib/components/Menu/Menu.tsx +0 -24
  380. package/lib/components/Menu/MenuBase.tsx +0 -63
  381. package/lib/components/Menu/MenuHeader.tsx +0 -13
  382. package/lib/components/Menu/MenuItem.stories.tsx +0 -164
  383. package/lib/components/Menu/MenuItem.tsx +0 -63
  384. package/lib/components/Menu/MenuItemBase.tsx +0 -77
  385. package/lib/components/Menu/MenuItemLabel.tsx +0 -30
  386. package/lib/components/Menu/MenuItemMedia.tsx +0 -42
  387. package/lib/components/Menu/MenuItems.stories.ts +0 -438
  388. package/lib/components/Menu/MenuItems.tsx +0 -96
  389. package/lib/components/Menu/MenuOption.stories.ts +0 -52
  390. package/lib/components/Menu/MenuOption.tsx +0 -48
  391. package/lib/components/Menu/MenuSearch.stories.ts +0 -18
  392. package/lib/components/Menu/MenuSearch.tsx +0 -25
  393. package/lib/components/Menu/menu.module.css +0 -25
  394. package/lib/components/Menu/menuBase.module.css +0 -25
  395. package/lib/components/Menu/menuHeader.module.css +0 -12
  396. package/lib/components/Menu/menuItemBase.module.css +0 -72
  397. package/lib/components/Menu/menuItemLabel.module.css +0 -32
  398. package/lib/components/Menu/menuItemMedia.module.css +0 -38
  399. package/lib/components/Menu/menuOption.module.css +0 -27
  400. package/lib/components/Menu/menuSearch.module.css +0 -30
  401. package/lib/components/Meta/MetaBase.tsx +0 -15
  402. package/lib/components/Meta/MetaItem.stories.ts +0 -25
  403. package/lib/components/Meta/MetaItem.tsx +0 -31
  404. package/lib/components/Meta/MetaItemBase.tsx +0 -46
  405. package/lib/components/Meta/MetaItemLabel.tsx +0 -20
  406. package/lib/components/Meta/MetaItemMedia.tsx +0 -22
  407. package/lib/components/Meta/MetaList.stories.ts +0 -29
  408. package/lib/components/Meta/MetaList.tsx +0 -43
  409. package/lib/components/Meta/MetaProgress.stories.ts +0 -29
  410. package/lib/components/Meta/MetaProgress.tsx +0 -26
  411. package/lib/components/Meta/MetaTimestamp.stories.ts +0 -33
  412. package/lib/components/Meta/MetaTimestamp.tsx +0 -29
  413. package/lib/components/Meta/meta.module.css +0 -6
  414. package/lib/components/Meta/metaItem.module.css +0 -107
  415. package/lib/components/Meta/metaList.module.css +0 -15
  416. package/lib/components/Page/PageBase.tsx +0 -14
  417. package/lib/components/Page/PageHeader.tsx +0 -21
  418. package/lib/components/Page/PageHeaderMedia.tsx +0 -25
  419. package/lib/components/Page/SectionBase.tsx +0 -52
  420. package/lib/components/Page/SectionFooter.tsx +0 -15
  421. package/lib/components/Page/SectionHeader.tsx +0 -16
  422. package/lib/components/Page/pageHeader.module.css +0 -5
  423. package/lib/components/Page/sectionBase.module.css +0 -82
  424. package/lib/components/Page/sectionFooter.module.css +0 -8
  425. package/lib/components/Page/sectionHeader.module.css +0 -9
  426. package/lib/components/RootProvider/RootProvider.tsx +0 -55
  427. package/lib/components/Searchbar/Autocomplete.stories.tsx +0 -77
  428. package/lib/components/Searchbar/Autocomplete.tsx +0 -44
  429. package/lib/components/Searchbar/AutocompleteBase.tsx +0 -16
  430. package/lib/components/Searchbar/AutocompleteGroup.tsx +0 -17
  431. package/lib/components/Searchbar/AutocompleteItem.tsx +0 -23
  432. package/lib/components/Searchbar/SearchField.tsx +0 -78
  433. package/lib/components/Searchbar/Searchbar.stories.tsx +0 -151
  434. package/lib/components/Searchbar/Searchbar.tsx +0 -18
  435. package/lib/components/Searchbar/SearchbarBase.tsx +0 -23
  436. package/lib/components/Searchbar/autocompleteBase.module.css +0 -17
  437. package/lib/components/Searchbar/autocompleteGroup.module.css +0 -3
  438. package/lib/components/Searchbar/autocompleteItem.module.css +0 -19
  439. package/lib/components/Searchbar/searchField.module.css +0 -54
  440. package/lib/components/Searchbar/searchbarBase.module.css +0 -20
  441. package/lib/components/Snackbar/Snackbar.stories.tsx +0 -21
  442. package/lib/components/Snackbar/Snackbar.tsx +0 -32
  443. package/lib/components/Snackbar/SnackbarBase.tsx +0 -39
  444. package/lib/components/Snackbar/SnackbarLabel.tsx +0 -10
  445. package/lib/components/Snackbar/SnackbarMedia.tsx +0 -14
  446. package/lib/components/Snackbar/snackbarBase.module.css +0 -55
  447. package/lib/components/Snackbar/snackbarLabel.module.css +0 -6
  448. package/lib/components/Snackbar/snackbarMedia.module.css +0 -10
  449. package/lib/components/Toolbar/Toolbar.stories.tsx +0 -188
  450. package/lib/components/Toolbar/Toolbar.tsx +0 -156
  451. package/lib/components/Toolbar/ToolbarAdd.stories.ts +0 -23
  452. package/lib/components/Toolbar/ToolbarAdd.tsx +0 -26
  453. package/lib/components/Toolbar/ToolbarBase.tsx +0 -12
  454. package/lib/components/Toolbar/ToolbarButton.stories.ts +0 -32
  455. package/lib/components/Toolbar/ToolbarButton.tsx +0 -65
  456. package/lib/components/Toolbar/ToolbarFilter.stories.ts +0 -64
  457. package/lib/components/Toolbar/ToolbarFilter.tsx +0 -75
  458. package/lib/components/Toolbar/ToolbarMenu.stories.ts +0 -37
  459. package/lib/components/Toolbar/ToolbarMenu.tsx +0 -29
  460. package/lib/components/Toolbar/ToolbarOptions.stories.ts +0 -108
  461. package/lib/components/Toolbar/ToolbarOptions.tsx +0 -74
  462. package/lib/components/Toolbar/ToolbarSearch.stories.ts +0 -19
  463. package/lib/components/Toolbar/ToolbarSearch.tsx +0 -24
  464. package/lib/components/Toolbar/toolbarAdd.module.css +0 -7
  465. package/lib/components/Toolbar/toolbarBase.module.css +0 -19
  466. package/lib/components/Toolbar/toolbarButton.module.css +0 -3
  467. package/lib/components/Toolbar/toolbarFilter.module.css +0 -25
  468. package/lib/components/Toolbar/toolbarMenu.module.css +0 -7
  469. package/lib/components/Toolbar/toolbarSearch.module.css +0 -28
  470. package/lib/components/Typography/Heading.tsx +0 -23
  471. package/lib/components/Typography/Typography.tsx +0 -24
  472. package/lib/components/Typography/heading.module.css +0 -21
  473. package/lib/components/Typography/typography.module.css +0 -64
  474. package/lib/css/colors.css +0 -113
  475. package/lib/css/global.css +0 -15
  476. package/lib/css/shadows.css +0 -7
  477. package/lib/css/theme-article.css +0 -15
  478. package/lib/css/theme-company.css +0 -15
  479. package/lib/css/theme-global-dark.css +0 -19
  480. package/lib/css/theme-global.css +0 -15
  481. package/lib/css/theme-neutral.css +0 -15
  482. package/lib/css/theme-person.css +0 -15
  483. package/lib/css/theme.css +0 -22
  484. package/lib/hooks/useClickOutside.ts +0 -22
  485. package/lib/hooks/useEscapeKey.ts +0 -17
  486. package/lib/hooks/useMenu.tsx +0 -80
  487. package/lib/stories/Color/MenuItem.stories.tsx +0 -43
  488. package/lib/stories/Color/Swatches.stories.tsx +0 -19
  489. package/lib/stories/Color/Swatches.tsx +0 -42
  490. package/lib/stories/Color/colors.json +0 -62
  491. package/lib/stories/Color/swatches.module.css +0 -14
  492. package/lib/stories/Inbox/BookmarksPage.tsx +0 -52
  493. package/lib/stories/Inbox/DialogPage.tsx +0 -15
  494. package/lib/stories/Inbox/Inbox.stories.tsx +0 -55
  495. package/lib/stories/Inbox/Inbox.tsx +0 -12
  496. package/lib/stories/Inbox/InboxLayout.tsx +0 -51
  497. package/lib/stories/Inbox/InboxPage.tsx +0 -50
  498. package/lib/stories/Inbox/InboxProvider.tsx +0 -135
  499. package/lib/stories/Inbox/InboxSection.tsx +0 -39
  500. package/lib/stories/Inbox/InboxToolbar.tsx +0 -94
  501. package/lib/stories/Inbox/ProfilePage.tsx +0 -35
  502. package/lib/stories/Inbox/SettingsPage.tsx +0 -19
  503. package/lib/stories/Inbox/accounts/accounts.ts +0 -24
  504. package/lib/stories/Inbox/accounts/index.ts +0 -1
  505. package/lib/stories/Inbox/actionMenu.ts +0 -24
  506. package/lib/stories/Inbox/dialogs/brreg-completed.json +0 -35
  507. package/lib/stories/Inbox/dialogs/brreg-draft.json +0 -45
  508. package/lib/stories/Inbox/dialogs/index.ts +0 -10
  509. package/lib/stories/Inbox/dialogs/skatt-2023.json +0 -33
  510. package/lib/stories/Inbox/groupBy.ts +0 -19
  511. package/lib/stories/Inbox/inboxSection.module.css +0 -19
  512. package/lib/stories/Inbox/index.ts +0 -15
  513. package/lib/stories/Inbox/layout/footer.ts +0 -27
  514. package/lib/stories/Inbox/layout/header.ts +0 -11
  515. package/lib/stories/Inbox/layout/index.ts +0 -3
  516. package/lib/stories/Inbox/layout/menu.ts +0 -64
  517. package/renovate.json +0 -4
  518. package/tsconfig.json +0 -28
  519. package/tsconfig.node.json +0 -11
  520. package/typings.d.ts +0 -1
  521. package/vite.config.ts +0 -20
  522. /package/{lib/components/Attachment/index.ts → dist/components/Attachment/index.d.ts} +0 -0
  523. /package/{lib/components/Avatar/index.ts → dist/components/Avatar/index.d.ts} +0 -0
  524. /package/{lib/components/Badge/index.tsx → dist/components/Badge/index.d.ts} +0 -0
  525. /package/{lib/components/Button/index.ts → dist/components/Button/index.d.ts} +0 -0
  526. /package/{lib/components/ContextMenu/index.ts → dist/components/ContextMenu/index.d.ts} +0 -0
  527. /package/{lib/components/Dialog/index.ts → dist/components/Dialog/index.d.ts} +0 -0
  528. /package/{lib/components/Footer/index.ts → dist/components/Footer/index.d.ts} +0 -0
  529. /package/{lib/components/GlobalMenu/index.tsx → dist/components/GlobalMenu/index.d.ts} +0 -0
  530. /package/{lib/components/Header/index.tsx → dist/components/Header/index.d.ts} +0 -0
  531. /package/{lib/components/History/index.ts → dist/components/History/index.d.ts} +0 -0
  532. /package/{lib/components/Icon/index.ts → dist/components/Icon/index.d.ts} +0 -0
  533. /package/{lib/components/Layout/index.tsx → dist/components/Layout/index.d.ts} +0 -0
  534. /package/{lib/components/LayoutAction/index.ts → dist/components/LayoutAction/index.d.ts} +0 -0
  535. /package/{lib/components/List/index.ts → dist/components/List/index.d.ts} +0 -0
  536. /package/{lib/components/Meta/index.ts → dist/components/Meta/index.d.ts} +0 -0
  537. /package/{lib/components/Page/index.ts → dist/components/Page/index.d.ts} +0 -0
  538. /package/{lib/components/RootProvider/index.ts → dist/components/RootProvider/index.d.ts} +0 -0
  539. /package/{lib/components/Searchbar/index.ts → dist/components/Searchbar/index.d.ts} +0 -0
  540. /package/{lib/components/Snackbar/index.ts → dist/components/Snackbar/index.d.ts} +0 -0
  541. /package/{lib/components/Toolbar/index.ts → dist/components/Toolbar/index.d.ts} +0 -0
  542. /package/{lib/components/Typography/index.ts → dist/components/Typography/index.d.ts} +0 -0
  543. /package/{lib/hooks/index.ts → dist/hooks/index.d.ts} +0 -0
  544. /package/{lib/index.ts → dist/index.d.ts} +0 -0
@@ -1,94 +0,0 @@
1
- 'use client';
2
- import { Toolbar } from '../../components';
3
- import { useInbox } from './';
4
-
5
- export function InboxToolbar({ items }) {
6
- const { accounts = [], accountId, onAccountId } = useInbox();
7
-
8
- const senderOptions = {};
9
-
10
- items?.map((item) => {
11
- const { sender } = item;
12
-
13
- if (!senderOptions[sender?.name]) {
14
- senderOptions[sender?.name] = {
15
- label: sender.name,
16
- value: sender.name,
17
- count: 0,
18
- };
19
- }
20
-
21
- senderOptions[sender?.name].count++;
22
- });
23
-
24
- const currentAccount = accounts?.find((item) => item.id === accountId);
25
-
26
- const accountMenu = {
27
- label: currentAccount?.name,
28
- value: currentAccount?.id,
29
- items: accounts.map((item) => {
30
- return {
31
- group: item.type,
32
- title: item?.name,
33
- avatar: item,
34
- selected: item.selected,
35
- onClick: () => onAccountId(item.id),
36
- };
37
- }),
38
- };
39
-
40
- const filters =
41
- items &&
42
- [
43
- {
44
- name: 'status',
45
- label: 'Velg status',
46
- optionType: 'checkbox',
47
- options: [
48
- {
49
- groupId: '1',
50
- value: 'draft',
51
- label: 'Utkast',
52
- },
53
- {
54
- groupId: '1',
55
- value: 'sent',
56
- label: 'Sendt',
57
- },
58
- {
59
- groupId: '2',
60
- value: 'in-progress',
61
- label: 'Under arbeid',
62
- },
63
- {
64
- groupId: '2',
65
- value: 'requires-attention',
66
- label: 'Krever handling',
67
- },
68
- {
69
- groupId: '2',
70
- value: 'completed',
71
- label: 'Avsluttet',
72
- },
73
- ],
74
- },
75
- {
76
- name: 'sender',
77
- label: 'Velg avsender',
78
- optionType: 'checkbox',
79
- options: Object.values(senderOptions)?.map((item) => {
80
- return {
81
- ...item,
82
- badge: { label: item?.count.toString() || '2' },
83
- };
84
- }),
85
- },
86
- ].map((item) => {
87
- return {
88
- ...item,
89
- removable: true,
90
- };
91
- });
92
-
93
- return <Toolbar menu={accountMenu} filters={filters} />;
94
- }
@@ -1,35 +0,0 @@
1
- 'use client';
2
- import {
3
- Avatar,
4
- Heading,
5
- ListBase,
6
- ListItem,
7
- MetaItem,
8
- PageBase,
9
- PageHeader,
10
- SectionBase,
11
- SectionFooter,
12
- SectionHeader,
13
- Typography,
14
- } from '../../components';
15
- import { useProfile } from './';
16
-
17
- export function ProfilePage() {
18
- const { account } = useProfile();
19
-
20
- return (
21
- <PageBase>
22
- <PageHeader
23
- title={account.name}
24
- avatar={{ type: account?.type, name: account.name }}
25
- inset
26
- padding
27
- spacing="lg"
28
- color="white"
29
- shadow="xs"
30
- >
31
- <Typography size="lg">Lorem ipsum dolor sit amet</Typography>
32
- </PageHeader>
33
- </PageBase>
34
- );
35
- }
@@ -1,19 +0,0 @@
1
- 'use client';
2
- import {
3
- Heading,
4
- ListBase,
5
- ListItem,
6
- MetaItem,
7
- PageBase,
8
- SectionBase,
9
- SectionFooter,
10
- SectionHeader,
11
- Typography,
12
- } from '../../components';
13
- import { useProfile } from './';
14
-
15
- export function SettingsPage() {
16
- const { account } = useProfile;
17
-
18
- return <PageBase inset>{JSON.stringify(account)}</PageBase>;
19
- }
@@ -1,24 +0,0 @@
1
- export const accounts = [
2
- {
3
- type: 'person',
4
- name: 'Aurora Mikalsen',
5
- selected: true,
6
- },
7
- {
8
- type: 'company',
9
- name: 'Auroras blomster',
10
- },
11
- {
12
- type: 'company',
13
- name: 'Aurora bier',
14
- },
15
- {
16
- type: 'company',
17
- name: 'Auroras bier og blomster',
18
- },
19
- ].map((item, index) => {
20
- return {
21
- ...item,
22
- id: 'a' + index,
23
- };
24
- });
@@ -1 +0,0 @@
1
- export * from './accounts';
@@ -1,24 +0,0 @@
1
- import type { MenuItemProps } from '../../components';
2
-
3
- export const actionMenu: MenuItemProps[] = [
4
- {
5
- id: '1',
6
- icon: 'arrow-redo',
7
- title: 'Del og gi tilgang',
8
- },
9
- {
10
- id: '2',
11
- icon: 'eye',
12
- title: 'Marker som lest',
13
- },
14
- {
15
- id: '3',
16
- icon: 'archive',
17
- title: 'Flytt til arkiv',
18
- },
19
- {
20
- id: '4',
21
- icon: 'trash',
22
- title: 'Flytt til papirkurv',
23
- },
24
- ];
@@ -1,35 +0,0 @@
1
- {
2
- "_createdAt": "2024-10-23T09:33:00Z",
3
- "_id": "95f30463-b886-402d-b765-95d9eccf68c0",
4
- "_rev": "n6M6ED8lI6VdyYqDQoyiME",
5
- "_type": "dialog",
6
- "_updatedAt": "2024-10-28T17:07:12Z",
7
- "additionalInfo": "For at du skal kunne registrere enkeltpersonforetaket, er du nødt til å drive med næringsaktivitet. Dette er aktivitet som er egnet til å ha et visst omfang og varighet.",
8
- "body": "## Nøkkelinformasjon\n- **Foretakets navn:** Olas Enkeltmannsforetak\n- **Organisasjonsnummer:** 999 999 999\n- **Dato registrert**: 14. mai 2024\n\n## Hva nå?\nTips og triks til deg som har startet enkeltpersonforetak:\n- Få en regnskapsfører.\n- Slik driver du selskapet ditt.\n- Bla bla bla.",
9
- "history": [
10
- {
11
- "_key": "334c343862da",
12
- "_type": "historyItem",
13
- "summary": "Skjema ble opprettet."
14
- },
15
- {
16
- "_key": "f5cc7d1053c9",
17
- "_type": "historyItem",
18
- "summary": "Bla bla bla."
19
- }
20
- ],
21
- "recipient": {
22
- "type": "person",
23
- "name": "Rein Regnskapsfører",
24
- "imageUrl": null
25
- },
26
- "sender": {
27
- "type": "company",
28
- "name": "Brønnøysundregistrene",
29
- "imageUrl": "https://cdn.sanity.io/images/z3it2oa7/production/3be5df0229c0b58c7ab59db2ade6208cc83954d2-300x300.png?w=96"
30
- },
31
- "status": { "label": "Avsluttet", "value": "completed" },
32
- "summary": "Gratulerer! Ditt enkeltpersonforetak er godkjent og klart til bruk.",
33
- "title": "Registrering av enkeltmannsforetak",
34
- "updatedAt": "2024-10-28T17:07:12Z"
35
- }
@@ -1,45 +0,0 @@
1
- {
2
- "_createdAt": "2024-10-23T07:17:42Z",
3
- "_id": "7cda3a28-2171-488c-8554-6b061b48e533",
4
- "_rev": "n6M6ED8lI6VdyYqDQoylrM",
5
- "_type": "dialog",
6
- "_updatedAt": "2024-10-28T17:07:32Z",
7
- "action": [
8
- { "priority": "primary", "label": "Til skjema" },
9
- {
10
- "label": "Forkast utkast"
11
- }
12
- ],
13
- "additionalInfo": "For at du skal kunne registrere enkeltpersonforetaket, er du nødt til å drive med næringsaktivitet. Dette er aktivitet som er egnet til å ha et visst omfang og varighet.",
14
- "body": "## Oppsummering\n- **Foretakets navn:** Olas Enkeltmannsforetak\n- **Lorem ipsum:** Data",
15
- "history": [
16
- {
17
- "_key": "334c343862da",
18
- "_type": "historyItem",
19
- "summary": "Skjema ble opprettet."
20
- },
21
- {
22
- "_key": "f5cc7d1053c9",
23
- "_type": "historyItem",
24
- "summary": "Bla bla bla."
25
- }
26
- ],
27
- "recipient": { "type": "person", "name": "Ola Nordmann", "imageUrl": null },
28
- "sender": {
29
- "type": "company",
30
- "name": "Brønnøysundregistrene",
31
- "imageUrl": "https://cdn.sanity.io/images/z3it2oa7/production/3be5df0229c0b58c7ab59db2ade6208cc83954d2-300x300.png?w=96"
32
- },
33
- "status": { "label": "Draft", "value": "draft" },
34
- "summary": "Et utkast til skjema er lagret.",
35
- "title": "Registrering av enkeltmannsforetak",
36
- "updatedAt": "2024-10-28T17:07:32Z",
37
- "actions": [
38
- { "_key": "4af713286bf6", "_type": "dialogAction", "label": "Til skjema" },
39
- {
40
- "_key": "1ef5bc424eee",
41
- "_type": "dialogAction",
42
- "label": "Forkast utkast"
43
- }
44
- ]
45
- }
@@ -1,10 +0,0 @@
1
- import brregCompleted from './brreg-completed.json';
2
- import brregDraft from './brreg-draft.json';
3
- import skatt2023 from './skatt-2023.json';
4
-
5
- export const dialogs = [brregDraft, brregCompleted, skatt2023].map((item, index) => {
6
- return {
7
- ...item,
8
- id: 'd' + index,
9
- };
10
- });
@@ -1,33 +0,0 @@
1
- {
2
- "_createdAt": "2024-10-23T21:31:44Z",
3
- "_id": "83b80be7-9b3a-474e-94bc-d5d24710ec9c",
4
- "_rev": "5k1KJXrtipgHMEvoTB1MJV",
5
- "_type": "dialog",
6
- "_updatedAt": "2024-10-28T17:07:25Z",
7
- "action": [
8
- {
9
- "_key": "2d7c53da7794",
10
- "_type": "dialogAction",
11
- "label": "Åpne skattemeldingen"
12
- }
13
- ],
14
- "dueAt": "2024-05-31",
15
- "recipient": { "type": "person", "name": "Ola Nordmann", "imageUrl": null },
16
- "sender": {
17
- "type": "company",
18
- "name": "Skatteetaten",
19
- "imageUrl": "https://cdn.sanity.io/images/z3it2oa7/production/e16a4f384d1d5ed959e1d74f0626259711d67509-88x88.png?w=96"
20
- },
21
- "status": { "label": "Krever handling", "value": "requires-attention" },
22
- "summary": "Skattemeldingen for 2023 er tilgjengelig. Du bør sjekke at opplysningene er riktige.",
23
- "title": "Skatten din 2023",
24
- "updatedAt": "2024-10-28T17:07:25Z",
25
- "actions": [
26
- {
27
- "_key": "2d7c53da7794",
28
- "_type": "dialogAction",
29
- "label": "Åpne skattemeldingen"
30
- }
31
- ],
32
- "history": null
33
- }
@@ -1,19 +0,0 @@
1
- interface GroupableItem {
2
- group: string;
3
- }
4
-
5
- export const groupBy = (items: GroupableItem[]) => {
6
- const groups: Record<string, GroupableItem[]> = items?.reduce(
7
- (acc: Record<string, GroupableItem[]>, item) => {
8
- const group = item?.group || '';
9
- if (!acc[group]) {
10
- acc[group] = [];
11
- }
12
- acc[group].push(item);
13
- return acc;
14
- },
15
- {} as Record<string, GroupableItem[]>,
16
- );
17
-
18
- return groups;
19
- };
@@ -1,19 +0,0 @@
1
- .section {
2
- width: 100%;
3
- display: flex;
4
- flex-direction: column;
5
- row-gap: 1rem;
6
- }
7
-
8
- .header {
9
- width: 100%;
10
- display: flex;
11
- flex-direction: column;
12
- }
13
-
14
- .title {
15
- font-size: 1.25rem;
16
- font-weight: 600;
17
- line-height: 1.25;
18
- margin: 6px 0;
19
- }
@@ -1,15 +0,0 @@
1
- export * from './accounts/';
2
- export * from './dialogs/';
3
- export * from './layout/';
4
-
5
- export * from './actionMenu';
6
-
7
- export * from './InboxProvider';
8
- export * from './InboxLayout';
9
- export * from './InboxSection';
10
-
11
- export * from './InboxPage';
12
- export * from './DialogPage';
13
- export * from './BookmarksPage';
14
- export * from './ProfilePage';
15
- export * from './SettingsPage';
@@ -1,27 +0,0 @@
1
- export const footer = {
2
- address: 'Postboks 1382 Vika, 0114 Oslo.',
3
- menu: {
4
- items: [
5
- {
6
- id: '1',
7
- href: '#',
8
- title: 'Om Altinn',
9
- },
10
- {
11
- id: '2',
12
- href: '#',
13
- title: 'Driftsmeldinger',
14
- },
15
- {
16
- id: '3',
17
- href: '#',
18
- title: 'Personvern',
19
- },
20
- {
21
- id: '4',
22
- href: '#',
23
- title: 'Tilgjengelighet',
24
- },
25
- ],
26
- },
27
- };
@@ -1,11 +0,0 @@
1
- import { accounts } from '../accounts/';
2
-
3
- export const header = {
4
- search: {
5
- name: 'search',
6
- placeholder: 'Søk i innboksen',
7
- },
8
- menu: {
9
- accounts,
10
- },
11
- };
@@ -1,3 +0,0 @@
1
- export * from './menu';
2
- export * from './footer';
3
- export * from './header';
@@ -1,64 +0,0 @@
1
- export const menu = {
2
- groups: {
3
- shortcuts: {
4
- title: 'Snarveier',
5
- defaultItemColor: 'neutral',
6
- },
7
- },
8
- items: [
9
- {
10
- id: 'inbox',
11
- groupId: 1,
12
- size: 'lg',
13
- icon: 'inbox',
14
- title: 'Innboks',
15
- color: 'strong',
16
- },
17
- {
18
- id: 'drafts',
19
- groupId: 2,
20
- icon: 'doc-pencil',
21
- title: 'Utkast',
22
- },
23
- {
24
- id: 'sent',
25
- groupId: 2,
26
- icon: 'file-checkmark',
27
- selected: true,
28
- title: 'Sendt',
29
- },
30
- {
31
- id: 'bookmarks',
32
- groupId: 3,
33
- icon: 'bookmark',
34
- // disabled: true,
35
- title: 'Lagrede søk',
36
- },
37
- {
38
- id: 'archived',
39
- groupId: 4,
40
- disabled: true,
41
- icon: 'archive',
42
- title: 'Arkivert',
43
- },
44
- {
45
- id: 'trash',
46
- groupId: 4,
47
- disabled: true,
48
- icon: 'trash',
49
- title: 'Papirkurv',
50
- },
51
- {
52
- id: 'profile',
53
- groupId: 'shortcuts',
54
- icon: 'person-circle',
55
- title: 'Din profil',
56
- },
57
- {
58
- id: 'settings',
59
- groupId: 'shortcuts',
60
- icon: 'cog',
61
- title: 'Innstillinger',
62
- },
63
- ],
64
- };
package/renovate.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
- "extends": ["local>Altinn/renovate-config"]
4
- }
package/tsconfig.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "useDefineForClassFields": true,
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
- "module": "ESNext",
7
- "skipLibCheck": true,
8
- "moduleResolution": "bundler",
9
- "allowImportingTsExtensions": true,
10
- "resolveJsonModule": true,
11
- "isolatedModules": true,
12
- "noEmit": true,
13
- "jsx": "react-jsx",
14
- "strict": true,
15
- "noUnusedLocals": true,
16
- "noUnusedParameters": true,
17
- "noFallthroughCasesInSwitch": true,
18
- "allowSyntheticDefaultImports": true
19
- },
20
- "include": ["./lib/**/*.ts", "./lib/hooks/*.tsx", "./**/*.d.ts"],
21
- "exclude": [
22
- "./lib/stories/**/*",
23
- "lib/components/**/*.stories.ts",
24
- "lib/components/**/*.stories.tsx",
25
- "./lib/components/Icon/__AkselIcon.tsx"
26
- ],
27
- "references": [{ "path": "./tsconfig.node.json" }]
28
- }
@@ -1,11 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "skipLibCheck": true,
5
- "module": "ESNext",
6
- "moduleResolution": "bundler",
7
- "allowSyntheticDefaultImports": true
8
- },
9
- "include": ["vite.config.ts"],
10
- "exclude": ["node_modules", "build", "dist"]
11
- }
package/typings.d.ts DELETED
@@ -1 +0,0 @@
1
- declare module '*.module.css';
package/vite.config.ts DELETED
@@ -1,20 +0,0 @@
1
- import react from '@vitejs/plugin-react-swc';
2
- import { defineConfig } from 'vite';
3
-
4
- // https://vitejs.dev/config/
5
- export default () => {
6
- return defineConfig({
7
- plugins: [react()],
8
- build: {
9
- cssCodeSplit: true,
10
- lib: {
11
- entry: ['./lib/index.ts', './lib/css/global.css'],
12
- name: 'altinn-components',
13
- formats: ['es'],
14
- },
15
- rollupOptions: {
16
- external: ['./lib/**/*.stories.tsx', '.storybook', '.idea'],
17
- },
18
- },
19
- });
20
- };
File without changes
File without changes