@altinn/altinn-components 0.10.2 → 0.10.4

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 (421) hide show
  1. package/dist/accountMenu-MvAYkqv1.js +68 -0
  2. package/dist/attachments-Bpqu8-fZ.js +25 -0
  3. package/dist/components/Autocomplete/AutocompleteItem.js +6 -6
  4. package/dist/components/Autocomplete/index.js +5 -1
  5. package/dist/components/Searchbar/Searchbar.js +16 -12
  6. package/dist/components/index.js +272 -268
  7. package/dist/dialogContextMenu-CvlJE9ba.js +38 -0
  8. package/dist/globalMenu-DY4uIQk2.js +63 -0
  9. package/dist/index.js +276 -272
  10. package/dist/menuItems-DWpXjKEX.js +90 -0
  11. package/dist/nav-CZ8x72yY.js +8 -0
  12. package/dist/skatt-Bc2at6fO.js +8 -0
  13. package/dist/transmissionsCompletedDialog-DOK3nF7d.js +672 -0
  14. package/dist/types/lib/components/Autocomplete/index.d.ts +3 -0
  15. package/dist/types/lib/components/Dialog/Dialog.stories.d.ts +15 -0
  16. package/dist/{lib → types/lib}/components/Dialog/DialogListItem.stories.d.ts +3 -23
  17. package/dist/types/lib/components/Dialog/DraftDialog.stories.d.ts +17 -0
  18. package/dist/types/lib/components/Icon/Icon.stories.d.ts +6 -0
  19. package/dist/types/lib/components/Menu/MenuItem.stories.d.ts +24 -0
  20. package/dist/useAccountMenu-ImwZYwks.js +82 -0
  21. package/package.json +5 -5
  22. package/dist/components/AccessAreaList/AccessAreaListItem.stories.js +0 -85
  23. package/dist/components/AccessPackageList/AccessPackageList.stories.js +0 -17
  24. package/dist/components/Attachment/AttachmentLink.stories.js +0 -15
  25. package/dist/components/Attachment/AttachmentList.stories.js +0 -19
  26. package/dist/components/Autocomplete/Autocomplete.stories.js +0 -322
  27. package/dist/components/Avatar/AvatarGroup.stories.js +0 -61
  28. package/dist/components/Avatar/avatar.stories.js +0 -38
  29. package/dist/components/Badge/Badge.stories.js +0 -27
  30. package/dist/components/Bookmarks/BookmarksList.stories.js +0 -61
  31. package/dist/components/Bookmarks/BookmarksListItem.stories.js +0 -64
  32. package/dist/components/Bookmarks/BookmarksSection.stories.js +0 -63
  33. package/dist/components/Button/Button.stories.js +0 -41
  34. package/dist/components/Button/Buttons.stories.js +0 -51
  35. package/dist/components/Button/ComboButton.stories.js +0 -38
  36. package/dist/components/Button/IconButton.stories.js +0 -28
  37. package/dist/components/Byline/Byline.stories.js +0 -44
  38. package/dist/components/ContextMenu/ContextMenu.stories.js +0 -50
  39. package/dist/components/Dialog/Dialog.stories.js +0 -98
  40. package/dist/components/Dialog/DialogActions.stories.js +0 -55
  41. package/dist/components/Dialog/DialogAttachments.stories.js +0 -17
  42. package/dist/components/Dialog/DialogBylline.stories.js +0 -25
  43. package/dist/components/Dialog/DialogContent.stories.js +0 -39
  44. package/dist/components/Dialog/DialogHistory.stories.js +0 -34
  45. package/dist/components/Dialog/DialogList.stories.js +0 -44
  46. package/dist/components/Dialog/DialogListItem.stories.js +0 -222
  47. package/dist/components/Dialog/DialogMetadata.stories.js +0 -68
  48. package/dist/components/Dialog/DialogSeenBy.stories.js +0 -43
  49. package/dist/components/Dialog/DialogStatus.stories.js +0 -48
  50. package/dist/components/Dialog/DialogTouchedBy.stories.js +0 -24
  51. package/dist/components/Dialog/DialogTransmissions.stories.js +0 -184
  52. package/dist/components/Dialog/DraftDialog.stories.js +0 -142
  53. package/dist/components/Footer/Footer.stories.js +0 -37
  54. package/dist/components/GlobalMenu/AccountMenu.stories.js +0 -27
  55. package/dist/components/GlobalMenu/GlobalMenu.stories.js +0 -46
  56. package/dist/components/Header/Header.stories.js +0 -35
  57. package/dist/components/Header/HeaderButton.stories.js +0 -65
  58. package/dist/components/Header/HeaderLogo.stories.js +0 -14
  59. package/dist/components/Icon/CheckboxIcon.stories.js +0 -27
  60. package/dist/components/Icon/Icon.stories.js +0 -21
  61. package/dist/components/Icon/ProgressIcon.stories.js +0 -36
  62. package/dist/components/Icon/RadioIcon.stories.js +0 -27
  63. package/dist/components/Layout/Layout.stories.js +0 -50
  64. package/dist/components/Layout/LayoutBase.stories.js +0 -14
  65. package/dist/components/Layout/LayoutBody.stories.js +0 -14
  66. package/dist/components/Layout/LayoutContent.stories.js +0 -14
  67. package/dist/components/Layout/LayoutSidebar.stories.js +0 -14
  68. package/dist/components/LayoutAction/ActionFooter.stories.js +0 -61
  69. package/dist/components/LayoutAction/ActionHeader.stories.js +0 -16
  70. package/dist/components/LayoutAction/ActionMenu.stories.js +0 -36
  71. package/dist/components/List/List.stories.js +0 -41
  72. package/dist/components/List/ListItem.stories.js +0 -251
  73. package/dist/components/List/ListItemHeader.stories.js +0 -241
  74. package/dist/components/Menu/Menu.stories.js +0 -411
  75. package/dist/components/Menu/MenuItem.stories.js +0 -138
  76. package/dist/components/Menu/MenuItems.stories.js +0 -338
  77. package/dist/components/Menu/MenuOption.stories.js +0 -46
  78. package/dist/components/Menu/MenuSearch.stories.js +0 -16
  79. package/dist/components/Meta/MetaItem.stories.js +0 -21
  80. package/dist/components/Meta/MetaList.stories.js +0 -26
  81. package/dist/components/Meta/MetaProgress.stories.js +0 -25
  82. package/dist/components/Meta/MetaTimestamp.stories.js +0 -29
  83. package/dist/components/Page/PageBase.stories.js +0 -54
  84. package/dist/components/Page/PageHeader.stories.js +0 -91
  85. package/dist/components/Page/PageNav.stories.js +0 -41
  86. package/dist/components/ResourceList/ResourceList.stories.js +0 -270
  87. package/dist/components/ResourceList/ResourceListItem.stories.js +0 -33
  88. package/dist/components/Searchbar/Searchbar.stories.js +0 -140
  89. package/dist/components/Snackbar/Snackbar.stories.js +0 -17
  90. package/dist/components/Timeline/Timeline.stories.js +0 -65
  91. package/dist/components/Toolbar/Toolbar.stories.js +0 -72
  92. package/dist/components/Toolbar/ToolbarAdd.stories.js +0 -23
  93. package/dist/components/Toolbar/ToolbarButton.stories.js +0 -26
  94. package/dist/components/Toolbar/ToolbarDate.stories.js +0 -61
  95. package/dist/components/Toolbar/ToolbarDaterange.stories.js +0 -16
  96. package/dist/components/Toolbar/ToolbarFilter.stories.js +0 -39
  97. package/dist/components/Toolbar/ToolbarMenu.stories.js +0 -32
  98. package/dist/components/Toolbar/ToolbarOptions.stories.js +0 -57
  99. package/dist/components/Toolbar/ToolbarSearch.stories.js +0 -16
  100. package/dist/components/Transmission/TransmissionItem.stories.js +0 -56
  101. package/dist/components/Transmission/TransmissionList.stories.js +0 -27
  102. package/dist/lib/components/Autocomplete/index.d.ts +0 -1
  103. package/dist/lib/components/Dialog/Dialog.stories.d.ts +0 -57
  104. package/dist/lib/components/Dialog/DraftDialog.stories.d.ts +0 -59
  105. package/dist/lib/examples/accountMenu.d.ts +0 -2
  106. package/dist/lib/examples/attachments.d.ts +0 -2
  107. package/dist/lib/examples/avatar/brreg.d.ts +0 -2
  108. package/dist/lib/examples/avatar/index.d.ts +0 -5
  109. package/dist/lib/examples/avatar/nav.d.ts +0 -2
  110. package/dist/lib/examples/avatar/oslo.d.ts +0 -2
  111. package/dist/lib/examples/avatar/skatt.d.ts +0 -2
  112. package/dist/lib/examples/avatar/ssb.d.ts +0 -2
  113. package/dist/lib/examples/dialog/dialogContextMenu.d.ts +0 -2
  114. package/dist/lib/examples/dialog/dialogHistoryItems.d.ts +0 -2
  115. package/dist/lib/examples/dialog/dialogListItems.d.ts +0 -2
  116. package/dist/lib/examples/dialog/extendedLetterDialog.d.ts +0 -2
  117. package/dist/lib/examples/dialog/index.d.ts +0 -14
  118. package/dist/lib/examples/dialog/metadataDialog.d.ts +0 -2
  119. package/dist/lib/examples/dialog/reportingCompletedDialog.d.ts +0 -2
  120. package/dist/lib/examples/dialog/reportingDialog.d.ts +0 -2
  121. package/dist/lib/examples/dialog/reportingDraftDialog.d.ts +0 -2
  122. package/dist/lib/examples/dialog/reportingHistoryItems.d.ts +0 -2
  123. package/dist/lib/examples/dialog/reportingInProgressDialog.d.ts +0 -2
  124. package/dist/lib/examples/dialog/simpleLetterDialog.d.ts +0 -2
  125. package/dist/lib/examples/dialog/transmissionList.d.ts +0 -2
  126. package/dist/lib/examples/dialog/transmissionsCompletedDialog.d.ts +0 -2
  127. package/dist/lib/examples/dialog/transmissionsDialog.d.ts +0 -2
  128. package/dist/lib/examples/dialog/transmissionsHistoryItems.d.ts +0 -2
  129. package/dist/lib/examples/dialog/transmissionsInProgressDialog.d.ts +0 -2
  130. package/dist/lib/examples/dialog/transmissionsTimeline.d.ts +0 -2
  131. package/dist/lib/examples/footer.d.ts +0 -2
  132. package/dist/lib/examples/globalMenu.d.ts +0 -2
  133. package/dist/lib/examples/header.d.ts +0 -2
  134. package/dist/lib/examples/inboxFilters.d.ts +0 -4
  135. package/dist/lib/examples/inboxMenu.d.ts +0 -2
  136. package/dist/lib/examples/index.d.ts +0 -10
  137. package/dist/lib/examples/loginMenu.d.ts +0 -2
  138. package/dist/lib/examples/menuItems.d.ts +0 -2
  139. package/dist/lib/examples/useAccountMenu.d.ts +0 -16
  140. package/dist/lib/examples/useInboxSearch.d.ts +0 -2
  141. /package/dist/{lib → types/lib}/components/AccessAreaList/AccessAreaList.d.ts +0 -0
  142. /package/dist/{lib → types/lib}/components/AccessAreaList/AccessAreaListItem.d.ts +0 -0
  143. /package/dist/{lib → types/lib}/components/AccessAreaList/AccessAreaListItem.stories.d.ts +0 -0
  144. /package/dist/{lib → types/lib}/components/AccessAreaList/index.d.ts +0 -0
  145. /package/dist/{lib → types/lib}/components/AccessPackageList/AccessPackageList.d.ts +0 -0
  146. /package/dist/{lib → types/lib}/components/AccessPackageList/AccessPackageList.stories.d.ts +0 -0
  147. /package/dist/{lib → types/lib}/components/AccessPackageList/AccessPackageListItem.d.ts +0 -0
  148. /package/dist/{lib → types/lib}/components/AccessPackageList/index.d.ts +0 -0
  149. /package/dist/{lib → types/lib}/components/Attachment/AttachmentLink.d.ts +0 -0
  150. /package/dist/{lib → types/lib}/components/Attachment/AttachmentLink.stories.d.ts +0 -0
  151. /package/dist/{lib → types/lib}/components/Attachment/AttachmentList.d.ts +0 -0
  152. /package/dist/{lib → types/lib}/components/Attachment/AttachmentList.stories.d.ts +0 -0
  153. /package/dist/{lib → types/lib}/components/Attachment/index.d.ts +0 -0
  154. /package/dist/{lib → types/lib}/components/Autocomplete/Autocomplete.d.ts +0 -0
  155. /package/dist/{lib → types/lib}/components/Autocomplete/Autocomplete.stories.d.ts +0 -0
  156. /package/dist/{lib → types/lib}/components/Autocomplete/AutocompleteBase.d.ts +0 -0
  157. /package/dist/{lib → types/lib}/components/Autocomplete/AutocompleteGroup.d.ts +0 -0
  158. /package/dist/{lib → types/lib}/components/Autocomplete/AutocompleteItem.d.ts +0 -0
  159. /package/dist/{lib → types/lib}/components/Autocomplete/ScopeListItem.d.ts +0 -0
  160. /package/dist/{lib → types/lib}/components/Avatar/Avatar.d.ts +0 -0
  161. /package/dist/{lib → types/lib}/components/Avatar/AvatarGroup.d.ts +0 -0
  162. /package/dist/{lib → types/lib}/components/Avatar/AvatarGroup.stories.d.ts +0 -0
  163. /package/dist/{lib → types/lib}/components/Avatar/avatar.stories.d.ts +0 -0
  164. /package/dist/{lib → types/lib}/components/Avatar/color.d.ts +0 -0
  165. /package/dist/{lib → types/lib}/components/Avatar/index.d.ts +0 -0
  166. /package/dist/{lib → types/lib}/components/Badge/Badge.d.ts +0 -0
  167. /package/dist/{lib → types/lib}/components/Badge/Badge.stories.d.ts +0 -0
  168. /package/dist/{lib → types/lib}/components/Badge/index.d.ts +0 -0
  169. /package/dist/{lib → types/lib}/components/Bookmarks/BookmarksList.d.ts +0 -0
  170. /package/dist/{lib → types/lib}/components/Bookmarks/BookmarksList.stories.d.ts +0 -0
  171. /package/dist/{lib → types/lib}/components/Bookmarks/BookmarksListItem.d.ts +0 -0
  172. /package/dist/{lib → types/lib}/components/Bookmarks/BookmarksListItem.stories.d.ts +0 -0
  173. /package/dist/{lib → types/lib}/components/Bookmarks/BookmarksSection.d.ts +0 -0
  174. /package/dist/{lib → types/lib}/components/Bookmarks/BookmarksSection.stories.d.ts +0 -0
  175. /package/dist/{lib → types/lib}/components/Bookmarks/QueryLabel.d.ts +0 -0
  176. /package/dist/{lib → types/lib}/components/Bookmarks/index.d.ts +0 -0
  177. /package/dist/{lib → types/lib}/components/Button/Button.d.ts +0 -0
  178. /package/dist/{lib → types/lib}/components/Button/Button.stories.d.ts +0 -0
  179. /package/dist/{lib → types/lib}/components/Button/ButtonBase.d.ts +0 -0
  180. /package/dist/{lib → types/lib}/components/Button/ButtonIcon.d.ts +0 -0
  181. /package/dist/{lib → types/lib}/components/Button/ButtonLabel.d.ts +0 -0
  182. /package/dist/{lib → types/lib}/components/Button/Buttons.stories.d.ts +0 -0
  183. /package/dist/{lib → types/lib}/components/Button/ComboButton.d.ts +0 -0
  184. /package/dist/{lib → types/lib}/components/Button/ComboButton.stories.d.ts +0 -0
  185. /package/dist/{lib → types/lib}/components/Button/IconButton.d.ts +0 -0
  186. /package/dist/{lib → types/lib}/components/Button/IconButton.stories.d.ts +0 -0
  187. /package/dist/{lib → types/lib}/components/Button/index.d.ts +0 -0
  188. /package/dist/{lib → types/lib}/components/Byline/Byline.d.ts +0 -0
  189. /package/dist/{lib → types/lib}/components/Byline/Byline.stories.d.ts +0 -0
  190. /package/dist/{lib → types/lib}/components/Byline/index.d.ts +0 -0
  191. /package/dist/{lib → types/lib}/components/ContextMenu/ContextMenu.d.ts +0 -0
  192. /package/dist/{lib → types/lib}/components/ContextMenu/ContextMenu.stories.d.ts +0 -0
  193. /package/dist/{lib → types/lib}/components/ContextMenu/index.d.ts +0 -0
  194. /package/dist/{lib → types/lib}/components/Datepicker/Datepicker.d.ts +0 -0
  195. /package/dist/{lib → types/lib}/components/Datepicker/DatepickerBase.d.ts +0 -0
  196. /package/dist/{lib → types/lib}/components/Datepicker/DatepickerHeader.d.ts +0 -0
  197. /package/dist/{lib → types/lib}/components/Datepicker/DatepickerTable.d.ts +0 -0
  198. /package/dist/{lib → types/lib}/components/Datepicker/index.d.ts +0 -0
  199. /package/dist/{lib → types/lib}/components/Datepicker/useDatepicker.d.ts +0 -0
  200. /package/dist/{lib → types/lib}/components/Dialog/Dialog.d.ts +0 -0
  201. /package/dist/{lib → types/lib}/components/Dialog/DialogActions.d.ts +0 -0
  202. /package/dist/{lib → types/lib}/components/Dialog/DialogActions.stories.d.ts +0 -0
  203. /package/dist/{lib → types/lib}/components/Dialog/DialogActivityLog.d.ts +0 -0
  204. /package/dist/{lib → types/lib}/components/Dialog/DialogAttachments.d.ts +0 -0
  205. /package/dist/{lib → types/lib}/components/Dialog/DialogAttachments.stories.d.ts +0 -0
  206. /package/dist/{lib → types/lib}/components/Dialog/DialogByline.d.ts +0 -0
  207. /package/dist/{lib → types/lib}/components/Dialog/DialogBylline.stories.d.ts +0 -0
  208. /package/dist/{lib → types/lib}/components/Dialog/DialogContent.d.ts +0 -0
  209. /package/dist/{lib → types/lib}/components/Dialog/DialogContent.stories.d.ts +0 -0
  210. /package/dist/{lib → types/lib}/components/Dialog/DialogDescription.d.ts +0 -0
  211. /package/dist/{lib → types/lib}/components/Dialog/DialogHeading.d.ts +0 -0
  212. /package/dist/{lib → types/lib}/components/Dialog/DialogHistory.d.ts +0 -0
  213. /package/dist/{lib → types/lib}/components/Dialog/DialogHistory.stories.d.ts +0 -0
  214. /package/dist/{lib → types/lib}/components/Dialog/DialogHistoryDetails.d.ts +0 -0
  215. /package/dist/{lib → types/lib}/components/Dialog/DialogHistoryItem.d.ts +0 -0
  216. /package/dist/{lib → types/lib}/components/Dialog/DialogLabel.d.ts +0 -0
  217. /package/dist/{lib → types/lib}/components/Dialog/DialogList.d.ts +0 -0
  218. /package/dist/{lib → types/lib}/components/Dialog/DialogList.stories.d.ts +0 -0
  219. /package/dist/{lib → types/lib}/components/Dialog/DialogListGroup.d.ts +0 -0
  220. /package/dist/{lib → types/lib}/components/Dialog/DialogListItem.d.ts +0 -0
  221. /package/dist/{lib → types/lib}/components/Dialog/DialogMetadata.d.ts +0 -0
  222. /package/dist/{lib → types/lib}/components/Dialog/DialogMetadata.stories.d.ts +0 -0
  223. /package/dist/{lib → types/lib}/components/Dialog/DialogSection.d.ts +0 -0
  224. /package/dist/{lib → types/lib}/components/Dialog/DialogSeenBy.d.ts +0 -0
  225. /package/dist/{lib → types/lib}/components/Dialog/DialogSeenBy.stories.d.ts +0 -0
  226. /package/dist/{lib → types/lib}/components/Dialog/DialogSelect.d.ts +0 -0
  227. /package/dist/{lib → types/lib}/components/Dialog/DialogStatus.d.ts +0 -0
  228. /package/dist/{lib → types/lib}/components/Dialog/DialogStatus.stories.d.ts +0 -0
  229. /package/dist/{lib → types/lib}/components/Dialog/DialogTimeline.d.ts +0 -0
  230. /package/dist/{lib → types/lib}/components/Dialog/DialogTimelineItem.d.ts +0 -0
  231. /package/dist/{lib → types/lib}/components/Dialog/DialogTouchedBy.d.ts +0 -0
  232. /package/dist/{lib → types/lib}/components/Dialog/DialogTouchedBy.stories.d.ts +0 -0
  233. /package/dist/{lib → types/lib}/components/Dialog/DialogTransmissions.d.ts +0 -0
  234. /package/dist/{lib → types/lib}/components/Dialog/DialogTransmissions.stories.d.ts +0 -0
  235. /package/dist/{lib → types/lib}/components/Dialog/DraftDialog.d.ts +0 -0
  236. /package/dist/{lib → types/lib}/components/Dialog/index.d.ts +0 -0
  237. /package/dist/{lib → types/lib}/components/Dropdown/Backdrop.d.ts +0 -0
  238. /package/dist/{lib → types/lib}/components/Dropdown/DrawerBase.d.ts +0 -0
  239. /package/dist/{lib → types/lib}/components/Dropdown/DrawerBody.d.ts +0 -0
  240. /package/dist/{lib → types/lib}/components/Dropdown/DrawerButton.d.ts +0 -0
  241. /package/dist/{lib → types/lib}/components/Dropdown/DrawerFooter.d.ts +0 -0
  242. /package/dist/{lib → types/lib}/components/Dropdown/DrawerHeader.d.ts +0 -0
  243. /package/dist/{lib → types/lib}/components/Dropdown/DrawerOrDropdown.d.ts +0 -0
  244. /package/dist/{lib → types/lib}/components/Dropdown/DropdownBase.d.ts +0 -0
  245. /package/dist/{lib → types/lib}/components/Dropdown/index.d.ts +0 -0
  246. /package/dist/{lib → types/lib}/components/Footer/Footer.d.ts +0 -0
  247. /package/dist/{lib → types/lib}/components/Footer/Footer.stories.d.ts +0 -0
  248. /package/dist/{lib → types/lib}/components/Footer/FooterAddress.d.ts +0 -0
  249. /package/dist/{lib → types/lib}/components/Footer/FooterBase.d.ts +0 -0
  250. /package/dist/{lib → types/lib}/components/Footer/FooterLogo.d.ts +0 -0
  251. /package/dist/{lib → types/lib}/components/Footer/FooterMenu.d.ts +0 -0
  252. /package/dist/{lib → types/lib}/components/Footer/index.d.ts +0 -0
  253. /package/dist/{lib → types/lib}/components/GlobalMenu/AccountButton.d.ts +0 -0
  254. /package/dist/{lib → types/lib}/components/GlobalMenu/AccountMenu.d.ts +0 -0
  255. /package/dist/{lib → types/lib}/components/GlobalMenu/AccountMenu.stories.d.ts +0 -0
  256. /package/dist/{lib → types/lib}/components/GlobalMenu/BackButton.d.ts +0 -0
  257. /package/dist/{lib → types/lib}/components/GlobalMenu/GlobalMenu.d.ts +0 -0
  258. /package/dist/{lib → types/lib}/components/GlobalMenu/GlobalMenu.stories.d.ts +0 -0
  259. /package/dist/{lib → types/lib}/components/GlobalMenu/GlobalMenuBase.d.ts +0 -0
  260. /package/dist/{lib → types/lib}/components/GlobalMenu/LogoutButton.d.ts +0 -0
  261. /package/dist/{lib → types/lib}/components/GlobalMenu/index.d.ts +0 -0
  262. /package/dist/{lib → types/lib}/components/Header/DigdirLogomark.d.ts +0 -0
  263. /package/dist/{lib → types/lib}/components/Header/Header.d.ts +0 -0
  264. /package/dist/{lib → types/lib}/components/Header/Header.stories.d.ts +0 -0
  265. /package/dist/{lib → types/lib}/components/Header/HeaderBase.d.ts +0 -0
  266. /package/dist/{lib → types/lib}/components/Header/HeaderButton.d.ts +0 -0
  267. /package/dist/{lib → types/lib}/components/Header/HeaderButton.stories.d.ts +0 -0
  268. /package/dist/{lib → types/lib}/components/Header/HeaderLogo.d.ts +0 -0
  269. /package/dist/{lib → types/lib}/components/Header/HeaderLogo.stories.d.ts +0 -0
  270. /package/dist/{lib → types/lib}/components/Header/HeaderMenu.d.ts +0 -0
  271. /package/dist/{lib → types/lib}/components/Header/HeaderSearch.d.ts +0 -0
  272. /package/dist/{lib → types/lib}/components/Header/index.d.ts +0 -0
  273. /package/dist/{lib → types/lib}/components/Icon/CheckboxCheckedIcon.d.ts +0 -0
  274. /package/dist/{lib → types/lib}/components/Icon/CheckboxIcon.d.ts +0 -0
  275. /package/dist/{lib → types/lib}/components/Icon/CheckboxIcon.stories.d.ts +0 -0
  276. /package/dist/{lib → types/lib}/components/Icon/CheckboxUncheckedIcon.d.ts +0 -0
  277. /package/dist/{lib → types/lib}/components/Icon/Icon.d.ts +0 -0
  278. /package/dist/{lib → types/lib}/components/Icon/ProgressIcon.d.ts +0 -0
  279. /package/dist/{lib → types/lib}/components/Icon/ProgressIcon.stories.d.ts +0 -0
  280. /package/dist/{lib → types/lib}/components/Icon/RadioCheckedIcon.d.ts +0 -0
  281. /package/dist/{lib → types/lib}/components/Icon/RadioIcon.d.ts +0 -0
  282. /package/dist/{lib → types/lib}/components/Icon/RadioIcon.stories.d.ts +0 -0
  283. /package/dist/{lib → types/lib}/components/Icon/RadioUncheckedIcon.d.ts +0 -0
  284. /package/dist/{lib → types/lib}/components/Icon/SvgIcon.d.ts +0 -0
  285. /package/dist/{lib → types/lib}/components/Icon/iconsMap.d.ts +0 -0
  286. /package/dist/{lib → types/lib}/components/Icon/index.d.ts +0 -0
  287. /package/dist/{lib → types/lib}/components/Layout/Layout.d.ts +0 -0
  288. /package/dist/{lib → types/lib}/components/Layout/Layout.stories.d.ts +0 -0
  289. /package/dist/{lib → types/lib}/components/Layout/LayoutBase.d.ts +0 -0
  290. /package/dist/{lib → types/lib}/components/Layout/LayoutBase.stories.d.ts +0 -0
  291. /package/dist/{lib → types/lib}/components/Layout/LayoutBody.d.ts +0 -0
  292. /package/dist/{lib → types/lib}/components/Layout/LayoutBody.stories.d.ts +0 -0
  293. /package/dist/{lib → types/lib}/components/Layout/LayoutContent.d.ts +0 -0
  294. /package/dist/{lib → types/lib}/components/Layout/LayoutContent.stories.d.ts +0 -0
  295. /package/dist/{lib → types/lib}/components/Layout/LayoutSidebar.d.ts +0 -0
  296. /package/dist/{lib → types/lib}/components/Layout/LayoutSidebar.stories.d.ts +0 -0
  297. /package/dist/{lib → types/lib}/components/Layout/index.d.ts +0 -0
  298. /package/dist/{lib → types/lib}/components/LayoutAction/ActionFooter.d.ts +0 -0
  299. /package/dist/{lib → types/lib}/components/LayoutAction/ActionFooter.stories.d.ts +0 -0
  300. /package/dist/{lib → types/lib}/components/LayoutAction/ActionHeader.d.ts +0 -0
  301. /package/dist/{lib → types/lib}/components/LayoutAction/ActionHeader.stories.d.ts +0 -0
  302. /package/dist/{lib → types/lib}/components/LayoutAction/ActionMenu.d.ts +0 -0
  303. /package/dist/{lib → types/lib}/components/LayoutAction/ActionMenu.stories.d.ts +0 -0
  304. /package/dist/{lib → types/lib}/components/LayoutAction/index.d.ts +0 -0
  305. /package/dist/{lib → types/lib}/components/List/List.d.ts +0 -0
  306. /package/dist/{lib → types/lib}/components/List/List.stories.d.ts +0 -0
  307. /package/dist/{lib → types/lib}/components/List/ListBase.d.ts +0 -0
  308. /package/dist/{lib → types/lib}/components/List/ListItem.d.ts +0 -0
  309. /package/dist/{lib → types/lib}/components/List/ListItem.stories.d.ts +0 -0
  310. /package/dist/{lib → types/lib}/components/List/ListItemBase.d.ts +0 -0
  311. /package/dist/{lib → types/lib}/components/List/ListItemControls.d.ts +0 -0
  312. /package/dist/{lib → types/lib}/components/List/ListItemHeader.d.ts +0 -0
  313. /package/dist/{lib → types/lib}/components/List/ListItemHeader.stories.d.ts +0 -0
  314. /package/dist/{lib → types/lib}/components/List/ListItemLabel.d.ts +0 -0
  315. /package/dist/{lib → types/lib}/components/List/ListItemLink.d.ts +0 -0
  316. /package/dist/{lib → types/lib}/components/List/ListItemMedia.d.ts +0 -0
  317. /package/dist/{lib → types/lib}/components/List/ListItemMenu.d.ts +0 -0
  318. /package/dist/{lib → types/lib}/components/List/ListItemSelect.d.ts +0 -0
  319. /package/dist/{lib → types/lib}/components/List/index.d.ts +0 -0
  320. /package/dist/{lib → types/lib}/components/Menu/Menu.d.ts +0 -0
  321. /package/dist/{lib → types/lib}/components/Menu/Menu.stories.d.ts +0 -0
  322. /package/dist/{lib → types/lib}/components/Menu/MenuBase.d.ts +0 -0
  323. /package/dist/{lib → types/lib}/components/Menu/MenuHeader.d.ts +0 -0
  324. /package/dist/{lib → types/lib}/components/Menu/MenuInputField.d.ts +0 -0
  325. /package/dist/{lib → types/lib}/components/Menu/MenuItem.d.ts +0 -0
  326. /package/dist/{lib → types/lib}/components/Menu/MenuItemBase.d.ts +0 -0
  327. /package/dist/{lib → types/lib}/components/Menu/MenuItemLabel.d.ts +0 -0
  328. /package/dist/{lib → types/lib}/components/Menu/MenuItemMedia.d.ts +0 -0
  329. /package/dist/{lib → types/lib}/components/Menu/MenuItems.d.ts +0 -0
  330. /package/dist/{lib → types/lib}/components/Menu/MenuItems.stories.d.ts +0 -0
  331. /package/dist/{lib → types/lib}/components/Menu/MenuOption.d.ts +0 -0
  332. /package/dist/{lib → types/lib}/components/Menu/MenuOption.stories.d.ts +0 -0
  333. /package/dist/{lib → types/lib}/components/Menu/MenuSearch.d.ts +0 -0
  334. /package/dist/{lib → types/lib}/components/Menu/MenuSearch.stories.d.ts +0 -0
  335. /package/dist/{lib → types/lib}/components/Menu/index.d.ts +0 -0
  336. /package/dist/{lib → types/lib}/components/Meta/MetaBase.d.ts +0 -0
  337. /package/dist/{lib → types/lib}/components/Meta/MetaItem.d.ts +0 -0
  338. /package/dist/{lib → types/lib}/components/Meta/MetaItem.stories.d.ts +0 -0
  339. /package/dist/{lib → types/lib}/components/Meta/MetaItemBase.d.ts +0 -0
  340. /package/dist/{lib → types/lib}/components/Meta/MetaItemLabel.d.ts +0 -0
  341. /package/dist/{lib → types/lib}/components/Meta/MetaItemMedia.d.ts +0 -0
  342. /package/dist/{lib → types/lib}/components/Meta/MetaList.d.ts +0 -0
  343. /package/dist/{lib → types/lib}/components/Meta/MetaList.stories.d.ts +0 -0
  344. /package/dist/{lib → types/lib}/components/Meta/MetaProgress.d.ts +0 -0
  345. /package/dist/{lib → types/lib}/components/Meta/MetaProgress.stories.d.ts +0 -0
  346. /package/dist/{lib → types/lib}/components/Meta/MetaTimestamp.d.ts +0 -0
  347. /package/dist/{lib → types/lib}/components/Meta/MetaTimestamp.stories.d.ts +0 -0
  348. /package/dist/{lib → types/lib}/components/Meta/index.d.ts +0 -0
  349. /package/dist/{lib → types/lib}/components/Page/Article.d.ts +0 -0
  350. /package/dist/{lib → types/lib}/components/Page/PageBase.d.ts +0 -0
  351. /package/dist/{lib → types/lib}/components/Page/PageBase.stories.d.ts +0 -0
  352. /package/dist/{lib → types/lib}/components/Page/PageHeader.d.ts +0 -0
  353. /package/dist/{lib → types/lib}/components/Page/PageHeader.stories.d.ts +0 -0
  354. /package/dist/{lib → types/lib}/components/Page/PageNav.d.ts +0 -0
  355. /package/dist/{lib → types/lib}/components/Page/PageNav.stories.d.ts +0 -0
  356. /package/dist/{lib → types/lib}/components/Page/Section.d.ts +0 -0
  357. /package/dist/{lib → types/lib}/components/Page/SectionFooter.d.ts +0 -0
  358. /package/dist/{lib → types/lib}/components/Page/SectionHeader.d.ts +0 -0
  359. /package/dist/{lib → types/lib}/components/Page/index.d.ts +0 -0
  360. /package/dist/{lib → types/lib}/components/ResourceList/ResourceList.d.ts +0 -0
  361. /package/dist/{lib → types/lib}/components/ResourceList/ResourceList.stories.d.ts +0 -0
  362. /package/dist/{lib → types/lib}/components/ResourceList/ResourceListItem.d.ts +0 -0
  363. /package/dist/{lib → types/lib}/components/ResourceList/ResourceListItem.stories.d.ts +0 -0
  364. /package/dist/{lib → types/lib}/components/ResourceList/index.d.ts +0 -0
  365. /package/dist/{lib → types/lib}/components/RootProvider/RootProvider.d.ts +0 -0
  366. /package/dist/{lib → types/lib}/components/RootProvider/index.d.ts +0 -0
  367. /package/dist/{lib → types/lib}/components/Searchbar/SearchField.d.ts +0 -0
  368. /package/dist/{lib → types/lib}/components/Searchbar/Searchbar.d.ts +0 -0
  369. /package/dist/{lib → types/lib}/components/Searchbar/Searchbar.stories.d.ts +0 -0
  370. /package/dist/{lib → types/lib}/components/Searchbar/SearchbarBase.d.ts +0 -0
  371. /package/dist/{lib → types/lib}/components/Searchbar/index.d.ts +0 -0
  372. /package/dist/{lib → types/lib}/components/Skeleton/Skeleton.d.ts +0 -0
  373. /package/dist/{lib → types/lib}/components/Skeleton/index.d.ts +0 -0
  374. /package/dist/{lib → types/lib}/components/Snackbar/Snackbar.d.ts +0 -0
  375. /package/dist/{lib → types/lib}/components/Snackbar/Snackbar.stories.d.ts +0 -0
  376. /package/dist/{lib → types/lib}/components/Snackbar/SnackbarBase.d.ts +0 -0
  377. /package/dist/{lib → types/lib}/components/Snackbar/SnackbarLabel.d.ts +0 -0
  378. /package/dist/{lib → types/lib}/components/Snackbar/SnackbarMedia.d.ts +0 -0
  379. /package/dist/{lib → types/lib}/components/Snackbar/index.d.ts +0 -0
  380. /package/dist/{lib → types/lib}/components/Timeline/Timeline.d.ts +0 -0
  381. /package/dist/{lib → types/lib}/components/Timeline/Timeline.stories.d.ts +0 -0
  382. /package/dist/{lib → types/lib}/components/Timeline/TimelineBase.d.ts +0 -0
  383. /package/dist/{lib → types/lib}/components/Timeline/TimelineSection.d.ts +0 -0
  384. /package/dist/{lib → types/lib}/components/Timeline/index.d.ts +0 -0
  385. /package/dist/{lib → types/lib}/components/Toolbar/Toolbar.d.ts +0 -0
  386. /package/dist/{lib → types/lib}/components/Toolbar/Toolbar.stories.d.ts +0 -0
  387. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarAccountMenu.d.ts +0 -0
  388. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarAdd.d.ts +0 -0
  389. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarAdd.stories.d.ts +0 -0
  390. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarBase.d.ts +0 -0
  391. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarButton.d.ts +0 -0
  392. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarButton.stories.d.ts +0 -0
  393. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarDate.stories.d.ts +0 -0
  394. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarDaterange.d.ts +0 -0
  395. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarDaterange.stories.d.ts +0 -0
  396. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarFilter.d.ts +0 -0
  397. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarFilter.stories.d.ts +0 -0
  398. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarFilterBase.d.ts +0 -0
  399. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarMenu.d.ts +0 -0
  400. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarMenu.stories.d.ts +0 -0
  401. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarOptions.d.ts +0 -0
  402. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarOptions.stories.d.ts +0 -0
  403. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarSearch.d.ts +0 -0
  404. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarSearch.stories.d.ts +0 -0
  405. /package/dist/{lib → types/lib}/components/Toolbar/index.d.ts +0 -0
  406. /package/dist/{lib → types/lib}/components/Transmission/TransmissionItem.d.ts +0 -0
  407. /package/dist/{lib → types/lib}/components/Transmission/TransmissionItem.stories.d.ts +0 -0
  408. /package/dist/{lib → types/lib}/components/Transmission/TransmissionList.d.ts +0 -0
  409. /package/dist/{lib → types/lib}/components/Transmission/TransmissionList.stories.d.ts +0 -0
  410. /package/dist/{lib → types/lib}/components/Transmission/TransmissionType.d.ts +0 -0
  411. /package/dist/{lib → types/lib}/components/Transmission/index.d.ts +0 -0
  412. /package/dist/{lib → types/lib}/components/Typography/Heading.d.ts +0 -0
  413. /package/dist/{lib → types/lib}/components/Typography/Typography.d.ts +0 -0
  414. /package/dist/{lib → types/lib}/components/Typography/index.d.ts +0 -0
  415. /package/dist/{lib → types/lib}/components/index.d.ts +0 -0
  416. /package/dist/{lib → types/lib}/hooks/index.d.ts +0 -0
  417. /package/dist/{lib → types/lib}/hooks/useClickOutside.d.ts +0 -0
  418. /package/dist/{lib → types/lib}/hooks/useEnterKey.d.ts +0 -0
  419. /package/dist/{lib → types/lib}/hooks/useEscapeKey.d.ts +0 -0
  420. /package/dist/{lib → types/lib}/hooks/useMenu.d.ts +0 -0
  421. /package/dist/{lib → types/lib}/index.d.ts +0 -0
@@ -1,241 +0,0 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { Fragment as d, useState as g } from "react";
3
- import "../../index-L8X2o7IH.js";
4
- import "../Icon/SvgIcon.js";
5
- import "../Autocomplete/AutocompleteBase.js";
6
- import { Button as k } from "../Button/Button.js";
7
- import { MetaItem as r } from "../Meta/MetaItem.js";
8
- import "../RootProvider/RootProvider.js";
9
- import { ListItemHeader as t } from "./ListItemHeader.js";
10
- import { ListBase as c } from "./ListBase.js";
11
- import { List as b } from "./List.js";
12
- const l = ["lg", "md", "sm", "xs"], T = {
13
- title: "List/ListItemHeader",
14
- component: t,
15
- tags: ["autodocs"],
16
- parameters: {},
17
- args: {
18
- title: "Title",
19
- description: "Description",
20
- size: "md"
21
- }
22
- }, B = {
23
- args: {}
24
- }, E = (n) => /* @__PURE__ */ a(c, { children: [
25
- /* @__PURE__ */ e(t, { ...n }),
26
- /* @__PURE__ */ e(r, { children: "No media" }),
27
- /* @__PURE__ */ e(t, { ...n, icon: "teddy-bear" }),
28
- /* @__PURE__ */ e(r, { children: "Icon" }),
29
- /* @__PURE__ */ e(
30
- t,
31
- {
32
- ...n,
33
- avatar: {
34
- type: "person",
35
- name: "Erik Huseklepp"
36
- }
37
- }
38
- ),
39
- /* @__PURE__ */ e(r, { children: "Person" }),
40
- /* @__PURE__ */ e(
41
- t,
42
- {
43
- ...n,
44
- avatar: {
45
- type: "company",
46
- name: "Sportsklubben Brann"
47
- }
48
- }
49
- ),
50
- /* @__PURE__ */ e(r, { children: "Company" }),
51
- /* @__PURE__ */ e(
52
- t,
53
- {
54
- ...n,
55
- avatar: {
56
- type: "company",
57
- name: "Politiets sikkerhetstjeneste",
58
- imageUrl: "https://media.licdn.com/dms/image/v2/D4D0BAQH7Yv86kmHN5g/company-logo_200_200/company-logo_200_200/0/1688735908848?e=1738195200&v=beta&t=f-Mkzd03bqzdQN4IT0h89VQ9_Jri1iJ6XphYYnjsgEo"
59
- }
60
- }
61
- ),
62
- /* @__PURE__ */ e(r, { children: "Logo" }),
63
- /* @__PURE__ */ e(
64
- t,
65
- {
66
- ...n,
67
- avatarGroup: {
68
- items: [
69
- {
70
- type: "person",
71
- name: "Albert Åberg"
72
- },
73
- {
74
- type: "person",
75
- name: "Birger Meling"
76
- },
77
- {
78
- type: "person",
79
- name: "Celine Dion"
80
- }
81
- ]
82
- }
83
- }
84
- ),
85
- /* @__PURE__ */ e(r, { children: "People group" }),
86
- /* @__PURE__ */ e(
87
- t,
88
- {
89
- ...n,
90
- avatarGroup: {
91
- items: [
92
- {
93
- type: "company",
94
- name: "Albert Åberg"
95
- },
96
- {
97
- type: "company",
98
- name: "Birger Meling"
99
- },
100
- {
101
- type: "company",
102
- name: "Celine Dion"
103
- }
104
- ]
105
- }
106
- }
107
- ),
108
- /* @__PURE__ */ e(r, { children: "Company group" })
109
- ] }), S = (n) => /* @__PURE__ */ e(c, { children: l == null ? void 0 : l.map((i) => /* @__PURE__ */ a(d, { children: [
110
- /* @__PURE__ */ e(t, { ...n, icon: "teddy-bear", size: i, loading: !0 }),
111
- /* @__PURE__ */ e(t, { ...n, icon: "teddy-bear", size: i, loading: !1 }),
112
- /* @__PURE__ */ e(r, { children: i })
113
- ] }, i)) }), M = (n) => /* @__PURE__ */ a(c, { children: [
114
- /* @__PURE__ */ e(t, { ...n, linkIcon: "chevron-right" }),
115
- /* @__PURE__ */ e(r, { children: "Link icon, emphasising that this will take you somewhere" }),
116
- /* @__PURE__ */ e(t, { ...n, linkIcon: "chevron-right", linkText: "Åpne" }),
117
- /* @__PURE__ */ e(r, { children: "Link icon + link text, emphasising that this will take you somewhere" }),
118
- /* @__PURE__ */ e(t, { ...n, collapsible: !0, badge: { label: "Admin" } }),
119
- /* @__PURE__ */ e(r, { children: "Collapsible item with badge" }),
120
- /* @__PURE__ */ e(t, { ...n, collapsible: !0, expanded: !0 }),
121
- /* @__PURE__ */ e(r, { children: "Collapsible and expanded item" }),
122
- /* @__PURE__ */ e(
123
- t,
124
- {
125
- ...n,
126
- badge: { label: "Admin" },
127
- linkIcon: "chevron-right",
128
- menu: {
129
- id: "menu",
130
- items: [
131
- { id: "settings", title: "Innstillinger", icon: "cog" },
132
- { id: "log", title: "Aktivitetslogg", icon: "clock-dashed" }
133
- ]
134
- }
135
- }
136
- ),
137
- /* @__PURE__ */ e(r, { children: "List item with badge, linkIcon and context menu" }),
138
- /* @__PURE__ */ e(
139
- t,
140
- {
141
- ...n,
142
- controls: /* @__PURE__ */ e("div", { style: { position: "absolute", right: 0, display: "flex", alignItems: "center", margin: "0.625rem" }, children: /* @__PURE__ */ e(k, { icon: "pencil", size: "sm", variant: "outline", children: "Rediger" }) })
143
- }
144
- ),
145
- /* @__PURE__ */ e(r, { children: "List item with custom controls" })
146
- ] }), _ = (n) => /* @__PURE__ */ e(c, { children: l == null ? void 0 : l.map((i) => /* @__PURE__ */ a(d, { children: [
147
- /* @__PURE__ */ e(
148
- t,
149
- {
150
- ...n,
151
- size: i,
152
- select: {
153
- checked: !1
154
- }
155
- }
156
- ),
157
- /* @__PURE__ */ e(
158
- t,
159
- {
160
- ...n,
161
- size: i,
162
- select: {
163
- checked: !0
164
- },
165
- selected: !0
166
- }
167
- ),
168
- /* @__PURE__ */ e(r, { children: i })
169
- ] }, i)) }), j = (n) => /* @__PURE__ */ a(c, { children: [
170
- /* @__PURE__ */ e(t, { ...n }),
171
- /* @__PURE__ */ e(r, { children: "Default" }),
172
- /* @__PURE__ */ e(t, { ...n }),
173
- /* @__PURE__ */ e(r, { children: "Accent" })
174
- ] }), P = (n) => /* @__PURE__ */ e(c, { children: l == null ? void 0 : l.map((i) => /* @__PURE__ */ a(d, { children: [
175
- /* @__PURE__ */ e(t, { ...n, icon: "teddy-bear", selected: i === (n == null ? void 0 : n.size), linkIcon: "chevron-right" }),
176
- /* @__PURE__ */ e(r, { children: i })
177
- ] }, i)) }), G = (n) => {
178
- const [i, s] = g(!1), m = () => {
179
- s((o) => !o);
180
- }, p = [
181
- {
182
- name: "Per Ove Ludvigsen",
183
- role: "Sportlig leder",
184
- rights: "Admin"
185
- },
186
- {
187
- name: "Eirik Horneland",
188
- role: "Trener",
189
- rights: "Admin"
190
- },
191
- {
192
- name: "Erik Huseklepp",
193
- role: "Assistenttrener",
194
- rights: "Lese og skrive"
195
- },
196
- {
197
- name: "Hassan El Fakiri",
198
- role: "Toppspillerutvikler",
199
- rights: "Ingen rettigheter"
200
- }
201
- ], h = p.map((o) => ({
202
- avatar: {
203
- ...o,
204
- type: "person"
205
- },
206
- title: o == null ? void 0 : o.name,
207
- description: o == null ? void 0 : o.role,
208
- badge: { label: o == null ? void 0 : o.rights },
209
- linkIcon: "menu-elipsis-horizontal"
210
- })), u = {
211
- items: p.map((o) => ({
212
- name: o == null ? void 0 : o.name,
213
- type: "person"
214
- }))
215
- };
216
- return /* @__PURE__ */ a(d, { children: [
217
- /* @__PURE__ */ e(
218
- t,
219
- {
220
- ...n,
221
- avatarGroup: u,
222
- collapsible: !0,
223
- expanded: i,
224
- onClick: m,
225
- as: "button"
226
- }
227
- ),
228
- i && /* @__PURE__ */ e(b, { defaultItemSize: "sm", spacing: "none", items: h })
229
- ] });
230
- };
231
- export {
232
- G as Collapsible,
233
- j as Colors,
234
- M as Controls,
235
- B as Default,
236
- S as Loading,
237
- E as MediaTypes,
238
- _ as Selectable,
239
- P as Sizes,
240
- T as default
241
- };
@@ -1,411 +0,0 @@
1
- import { menuItems as l } from "../../examples/menuItems.js";
2
- import { Menu as s } from "./Menu.js";
3
- const d = {
4
- title: "Menu/Menu",
5
- component: s,
6
- tags: ["autodocs"],
7
- parameters: {},
8
- args: {}
9
- }, p = {
10
- args: {
11
- groups: {
12
- settings: {
13
- defaultItemColor: "neutral"
14
- }
15
- },
16
- items: [
17
- {
18
- id: "account",
19
- groupId: "account",
20
- size: "lg",
21
- avatar: {
22
- type: "person",
23
- name: "Herman Friele"
24
- },
25
- title: "Herman Friele",
26
- description: "Fødselsnr: XX.XX.XXXX"
27
- },
28
- {
29
- id: "inbox",
30
- groupId: "apps",
31
- size: "lg",
32
- icon: "inbox",
33
- title: "Innboks",
34
- badge: {
35
- color: "alert",
36
- label: "4"
37
- }
38
- },
39
- {
40
- id: "access",
41
- groupId: "apps",
42
- size: "lg",
43
- icon: "bookmark",
44
- title: "Tilganger",
45
- badge: {
46
- color: "alert",
47
- label: "2"
48
- }
49
- },
50
- {
51
- id: "access",
52
- groupId: "apps",
53
- size: "lg",
54
- icon: "menu-grid",
55
- title: "Alle skjema"
56
- },
57
- {
58
- id: "settings",
59
- groupId: "settings",
60
- icon: "cog",
61
- title: "Innstillinger"
62
- }
63
- ]
64
- }
65
- }, i = {
66
- args: {
67
- groups: {
68
- settings: {
69
- defaultItemColor: "neutral"
70
- }
71
- },
72
- items: [
73
- {
74
- id: "account",
75
- groupId: "account",
76
- size: "lg",
77
- avatar: {
78
- type: "person",
79
- name: "Herman Friele"
80
- },
81
- title: "Herman Friele",
82
- description: "Fødselsnr: XX.XX.XXXX"
83
- },
84
- {
85
- id: "innboks",
86
- groupId: "apps",
87
- size: "lg",
88
- icon: "inbox",
89
- title: "Innboks",
90
- collapsible: !0,
91
- items: [
92
- {
93
- id: "utkast",
94
- groupId: "1",
95
- icon: "doc-pencil",
96
- title: "Utkast"
97
- },
98
- {
99
- id: "sent",
100
- groupId: "1",
101
- icon: "file-checkmark",
102
- selected: !0,
103
- title: "Sendt"
104
- },
105
- {
106
- id: "bookmarks",
107
- groupId: "3",
108
- icon: "bookmark",
109
- title: "Lagrede søk"
110
- },
111
- {
112
- id: "arkiv",
113
- groupId: "4",
114
- icon: "archive",
115
- title: "Arkivert"
116
- },
117
- {
118
- id: "trash",
119
- groupId: "4",
120
- icon: "trash",
121
- title: "Papirkurv"
122
- }
123
- ]
124
- },
125
- {
126
- id: "tilganger",
127
- groupId: "apps",
128
- size: "lg",
129
- icon: "bookmark",
130
- title: "Tilganger"
131
- },
132
- {
133
- id: "skjema",
134
- groupId: "apps",
135
- size: "lg",
136
- icon: "menu-grid",
137
- title: "Alle skjema"
138
- },
139
- {
140
- id: "settings",
141
- groupId: "settings",
142
- icon: "cog",
143
- title: "Innstillinger"
144
- }
145
- ]
146
- }
147
- }, u = {
148
- args: {
149
- ...i.args,
150
- items: [...i.args.items].map((e) => e.collapsible ? {
151
- ...e,
152
- group: (e == null ? void 0 : e.id) === "inbox" ? "inbox" : "",
153
- expanded: !0
154
- } : e)
155
- }
156
- }, c = {
157
- args: {
158
- defaultItemColor: "subtle",
159
- groups: {
160
- "level-1": {
161
- divider: !0
162
- },
163
- "level-2": {
164
- divider: !0
165
- }
166
- },
167
- items: [
168
- {
169
- id: "people",
170
- groupId: "level-1",
171
- size: "lg",
172
- icon: "menu-grid",
173
- title: "Alle skjema",
174
- expanded: !0,
175
- items: [
176
- {
177
- groupId: "level-2",
178
- id: "tema",
179
- icon: "teddy-bear",
180
- title: "Tema",
181
- expanded: !0,
182
- items: [
183
- {
184
- id: "c1",
185
- groupId: "level-3",
186
- title: "Kategori 1"
187
- },
188
- {
189
- groupId: "level-3",
190
- id: "c2",
191
- title: "Kategori 2"
192
- },
193
- {
194
- groupId: "level-3",
195
- id: "c3",
196
- title: "Kategori 3"
197
- }
198
- ]
199
- }
200
- ]
201
- }
202
- ]
203
- }
204
- }, t = {
205
- args: {
206
- groups: {},
207
- items: [
208
- {
209
- id: "innboks",
210
- groupId: "1",
211
- size: "lg",
212
- icon: "inbox",
213
- title: "Innboks",
214
- color: "strong",
215
- badge: { color: "alert", label: "4" }
216
- },
217
- {
218
- id: "utkast",
219
- groupId: "2",
220
- icon: "doc-pencil",
221
- title: "Utkast",
222
- badge: {
223
- label: "3"
224
- }
225
- },
226
- {
227
- id: "sendt",
228
- groupId: "2",
229
- icon: "file-checkmark",
230
- selected: !0,
231
- title: "Sendt",
232
- badge: {
233
- label: "2"
234
- }
235
- },
236
- {
237
- id: "lagret",
238
- groupId: "3",
239
- icon: "bookmark",
240
- title: "Lagrede søk",
241
- badge: {
242
- label: "5"
243
- }
244
- },
245
- {
246
- id: "arkivert",
247
- groupId: "4",
248
- icon: "archive",
249
- title: "Arkivert",
250
- badge: {
251
- label: "100+"
252
- }
253
- },
254
- {
255
- id: "papirkurv",
256
- groupId: "4",
257
- disabled: !0,
258
- icon: "trash",
259
- title: "Papirkurv",
260
- badge: {
261
- label: "45"
262
- }
263
- }
264
- ],
265
- defaultItemColor: "subtle"
266
- }
267
- };
268
- var r, o;
269
- const k = {
270
- args: {
271
- groups: {
272
- ...(r = t.args) == null ? void 0 : r.groups,
273
- shortcuts: {
274
- title: "Snarveier",
275
- defaultItemColor: "default"
276
- }
277
- },
278
- items: [
279
- ...((o = t == null ? void 0 : t.args) == null ? void 0 : o.items) ?? [],
280
- {
281
- id: "users",
282
- groupId: "shortcuts",
283
- icon: "person-group",
284
- title: "Brukere"
285
- },
286
- {
287
- id: "settings",
288
- groupId: "shortcuts",
289
- icon: "cog",
290
- title: "Innstillinger"
291
- }
292
- ]
293
- }
294
- }, m = {
295
- args: {
296
- groups: {},
297
- items: [
298
- {
299
- id: "person",
300
- groupId: "1",
301
- size: "lg",
302
- avatar: {
303
- type: "person",
304
- name: "Erik Huseklepp"
305
- },
306
- title: "Erik Huseklepp"
307
- },
308
- {
309
- id: "profil",
310
- groupId: "2",
311
- icon: "person-circle",
312
- title: "Kontaktinformasjon"
313
- },
314
- {
315
- id: "varslinger",
316
- groupId: "2",
317
- icon: "bell",
318
- title: "Varslingsinnstillinger"
319
- },
320
- {
321
- id: "bookmarks",
322
- groupId: "3",
323
- icon: "bookmark",
324
- title: "Favoritter"
325
- },
326
- {
327
- id: "grupper",
328
- groupId: "3",
329
- icon: "hexagon-grid",
330
- title: "Grupper"
331
- },
332
- {
333
- id: "logg",
334
- groupId: "4",
335
- icon: "clock-dashed",
336
- title: "Aktivitetslogg"
337
- }
338
- ]
339
- }
340
- }, I = {
341
- args: {
342
- groups: {},
343
- items: [
344
- {
345
- id: "company",
346
- groupId: "1",
347
- size: "lg",
348
- avatar: {
349
- type: "company",
350
- name: "Bergen Bar"
351
- },
352
- title: "Bergen Bar"
353
- },
354
- {
355
- id: "profil",
356
- groupId: "2",
357
- icon: "buildings2",
358
- title: "Firmaprofil"
359
- },
360
- {
361
- id: "brukere",
362
- groupId: "3",
363
- icon: "person-group",
364
- title: "Brukere"
365
- },
366
- {
367
- id: "grupper",
368
- groupId: "3",
369
- icon: "hexagon-grid",
370
- title: "Grupper"
371
- },
372
- {
373
- id: "logg",
374
- groupId: "4",
375
- icon: "clock-dashed",
376
- title: "Aktivitetslogg"
377
- }
378
- ]
379
- }
380
- }, n = {
381
- args: {
382
- groups: {
383
- a1: {
384
- title: "Deg selv, favoritter og grupper"
385
- },
386
- b1: { title: "Andre kontoer" }
387
- },
388
- items: l
389
- }
390
- }, b = {
391
- args: {
392
- ...n.args,
393
- search: {
394
- name: "search",
395
- placeholder: "Søk i kontoer"
396
- }
397
- }
398
- };
399
- export {
400
- n as AccountMenu,
401
- b as AccountMenuWithSearch,
402
- i as CollapsibleGlobalMenu,
403
- I as CompanyMenu,
404
- c as DrilldownMenu,
405
- u as ExpandedGlobalMenu,
406
- p as GlobalMenu,
407
- t as InboxMenu,
408
- k as InboxMenuWithShortcuts,
409
- m as PersonMenu,
410
- d as default
411
- };