@altinn/altinn-components 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/README.md +11 -1
  2. package/dist/assets/Breadcrumbs.css +1 -0
  3. package/dist/assets/BreadcrumbsLink.css +1 -0
  4. package/dist/assets/FieldBase.css +1 -0
  5. package/dist/assets/Flex.css +1 -0
  6. package/dist/assets/Grid.css +1 -0
  7. package/dist/assets/Heading.css +1 -1
  8. package/dist/assets/InputBase.css +1 -0
  9. package/dist/assets/ListItemBase.css +1 -1
  10. package/dist/assets/ListItemHeader.css +1 -1
  11. package/dist/assets/ListItemLabel.css +1 -1
  12. package/dist/assets/MenuItemMedia.css +1 -1
  13. package/dist/assets/QueryLabel.css +1 -1
  14. package/dist/assets/Section.css +1 -1
  15. package/dist/assets/Typography.css +1 -1
  16. package/dist/components/Autocomplete/AutocompleteItem.js +6 -6
  17. package/dist/components/Autocomplete/index.js +5 -1
  18. package/dist/components/Bookmarks/BookmarksListItem.js +66 -7
  19. package/dist/components/Bookmarks/BookmarksSection.js +36 -13
  20. package/dist/components/Bookmarks/QueryLabel.js +9 -9
  21. package/dist/components/Bookmarks/index.js +7 -9
  22. package/dist/components/Button/Button.js +16 -15
  23. package/dist/components/Button/IconButton.js +22 -10
  24. package/dist/components/Dialog/Dialog.js +2 -2
  25. package/dist/components/Dialog/DialogContent.js +6 -6
  26. package/dist/components/Dialog/DialogListGroup.js +7 -7
  27. package/dist/components/Dialog/DialogSection.js +1 -1
  28. package/dist/components/Dialog/DraftDialog.js +24 -24
  29. package/dist/components/Dropdown/DropdownBase.js +8 -7
  30. package/dist/components/Icon/iconsMap.js +16960 -739
  31. package/dist/components/List/ListItemBase.js +11 -11
  32. package/dist/components/List/ListItemControls.js +15 -15
  33. package/dist/components/List/ListItemHeader.js +49 -49
  34. package/dist/components/List/ListItemLabel.js +8 -8
  35. package/dist/components/Menu/MenuItemMedia.js +5 -5
  36. package/dist/components/Page/Article.js +4 -4
  37. package/dist/components/Page/Breadcrumbs.js +22 -0
  38. package/dist/components/Page/BreadcrumbsLink.js +28 -0
  39. package/dist/components/Page/Flex.js +42 -0
  40. package/dist/components/Page/Grid.js +34 -0
  41. package/dist/components/Page/PageHeader.js +10 -9
  42. package/dist/components/Page/PageNav.js +20 -17
  43. package/dist/components/Page/Section.js +11 -40
  44. package/dist/components/Page/index.js +18 -14
  45. package/dist/components/Searchbar/SearchField.js +38 -28
  46. package/dist/components/Searchbar/Searchbar.js +16 -12
  47. package/dist/components/TextField/FieldBase.js +16 -0
  48. package/dist/components/TextField/InputBase.js +33 -0
  49. package/dist/components/TextField/TextField.js +7 -0
  50. package/dist/components/TextField/index.js +8 -0
  51. package/dist/components/Typography/Heading.js +3 -3
  52. package/dist/components/Typography/Typography.js +8 -9
  53. package/dist/components/index.js +280 -268
  54. package/dist/footer-BI7NNFeL.js +27 -0
  55. package/dist/globalMenu-A9dXKjrI.js +80 -0
  56. package/dist/header-B7oMg4iq.js +11 -0
  57. package/dist/inboxMenu-DXIoTtPz.js +48 -0
  58. package/dist/index.js +284 -272
  59. package/dist/types/lib/components/Autocomplete/index.d.ts +3 -0
  60. package/dist/types/lib/components/Bookmarks/BookmarksListItem.d.ts +24 -0
  61. package/dist/{lib → types/lib}/components/Bookmarks/BookmarksListItem.stories.d.ts +2 -3
  62. package/dist/types/lib/components/Bookmarks/BookmarksSection.d.ts +14 -0
  63. package/dist/types/lib/components/Bookmarks/BookmarksSection.stories.d.ts +52 -0
  64. package/dist/{lib → types/lib}/components/Bookmarks/index.d.ts +0 -1
  65. package/dist/{lib → types/lib}/components/Button/Button.d.ts +2 -1
  66. package/dist/{lib → types/lib}/components/Button/Button.stories.d.ts +1 -1
  67. package/dist/{lib → types/lib}/components/Button/IconButton.d.ts +2 -1
  68. package/dist/{lib → types/lib}/components/Button/IconButton.stories.d.ts +1 -1
  69. package/dist/{lib → types/lib}/components/Layout/LayoutBase.d.ts +1 -1
  70. package/dist/{lib → types/lib}/components/List/ListItemControls.d.ts +2 -1
  71. package/dist/{lib → types/lib}/components/List/ListItemHeader.d.ts +2 -2
  72. package/dist/{lib → types/lib}/components/Menu/MenuItemBase.d.ts +1 -1
  73. package/dist/{lib → types/lib}/components/Page/Article.d.ts +1 -1
  74. package/dist/types/lib/components/Page/Breadcrumbs.d.ts +5 -0
  75. package/dist/types/lib/components/Page/BreadcrumbsLink.d.ts +11 -0
  76. package/dist/{lib/components/Page/PageBase.stories.d.ts → types/lib/components/Page/Examples.stories.d.ts} +2 -1
  77. package/dist/types/lib/components/Page/Flex.d.ts +29 -0
  78. package/dist/types/lib/components/Page/Grid.d.ts +22 -0
  79. package/dist/types/lib/components/Page/PageNav.d.ts +16 -0
  80. package/dist/{lib → types/lib}/components/Page/PageNav.stories.d.ts +2 -1
  81. package/dist/types/lib/components/Page/Section.d.ts +9 -0
  82. package/dist/{lib → types/lib}/components/Page/index.d.ts +4 -2
  83. package/dist/{lib → types/lib}/components/Searchbar/Searchbar.stories.d.ts +6 -1
  84. package/dist/types/lib/components/TextField/FieldBase.d.ts +11 -0
  85. package/dist/types/lib/components/TextField/InputBase.d.ts +14 -0
  86. package/dist/types/lib/components/TextField/TextField.d.ts +7 -0
  87. package/dist/types/lib/components/TextField/index.d.ts +3 -0
  88. package/dist/{lib → types/lib}/components/Typography/Heading.d.ts +2 -2
  89. package/dist/{lib → types/lib}/components/Typography/Typography.d.ts +1 -1
  90. package/dist/{lib → types/lib}/components/index.d.ts +1 -0
  91. package/dist/{useAccountMenu-ImwZYwks.js → useAccountMenu-DgXhBMw4.js} +19 -27
  92. package/package.json +8 -3
  93. package/dist/ZoomPlusFill-xyiiemTy.js +0 -17126
  94. package/dist/assets/ListItemMenu.css +0 -1
  95. package/dist/assets/SectionFooter.css +0 -1
  96. package/dist/components/Bookmarks/BookmarksList.js +0 -12
  97. package/dist/components/Icon/__AkselIcon.js +0 -1042
  98. package/dist/components/List/ListItemMenu.js +0 -8
  99. package/dist/components/Page/SectionFooter.js +0 -8
  100. package/dist/components/Page/SectionHeader.js +0 -12
  101. package/dist/lib/components/Autocomplete/index.d.ts +0 -1
  102. package/dist/lib/components/Bookmarks/BookmarksList.d.ts +0 -5
  103. package/dist/lib/components/Bookmarks/BookmarksList.stories.d.ts +0 -34
  104. package/dist/lib/components/Bookmarks/BookmarksListItem.d.ts +0 -10
  105. package/dist/lib/components/Bookmarks/BookmarksSection.d.ts +0 -7
  106. package/dist/lib/components/Bookmarks/BookmarksSection.stories.d.ts +0 -36
  107. package/dist/lib/components/List/ListItemMenu.d.ts +0 -8
  108. package/dist/lib/components/Page/PageNav.d.ts +0 -13
  109. package/dist/lib/components/Page/Section.d.ts +0 -29
  110. package/dist/lib/components/Page/SectionFooter.d.ts +0 -6
  111. package/dist/lib/components/Page/SectionHeader.d.ts +0 -6
  112. /package/dist/{lib → types/lib}/components/AccessAreaList/AccessAreaList.d.ts +0 -0
  113. /package/dist/{lib → types/lib}/components/AccessAreaList/AccessAreaListItem.d.ts +0 -0
  114. /package/dist/{lib → types/lib}/components/AccessAreaList/AccessAreaListItem.stories.d.ts +0 -0
  115. /package/dist/{lib → types/lib}/components/AccessAreaList/index.d.ts +0 -0
  116. /package/dist/{lib → types/lib}/components/AccessPackageList/AccessPackageList.d.ts +0 -0
  117. /package/dist/{lib → types/lib}/components/AccessPackageList/AccessPackageList.stories.d.ts +0 -0
  118. /package/dist/{lib → types/lib}/components/AccessPackageList/AccessPackageListItem.d.ts +0 -0
  119. /package/dist/{lib → types/lib}/components/AccessPackageList/index.d.ts +0 -0
  120. /package/dist/{lib → types/lib}/components/Attachment/AttachmentLink.d.ts +0 -0
  121. /package/dist/{lib → types/lib}/components/Attachment/AttachmentLink.stories.d.ts +0 -0
  122. /package/dist/{lib → types/lib}/components/Attachment/AttachmentList.d.ts +0 -0
  123. /package/dist/{lib → types/lib}/components/Attachment/AttachmentList.stories.d.ts +0 -0
  124. /package/dist/{lib → types/lib}/components/Attachment/index.d.ts +0 -0
  125. /package/dist/{lib → types/lib}/components/Autocomplete/Autocomplete.d.ts +0 -0
  126. /package/dist/{lib → types/lib}/components/Autocomplete/Autocomplete.stories.d.ts +0 -0
  127. /package/dist/{lib → types/lib}/components/Autocomplete/AutocompleteBase.d.ts +0 -0
  128. /package/dist/{lib → types/lib}/components/Autocomplete/AutocompleteGroup.d.ts +0 -0
  129. /package/dist/{lib → types/lib}/components/Autocomplete/AutocompleteItem.d.ts +0 -0
  130. /package/dist/{lib → types/lib}/components/Autocomplete/ScopeListItem.d.ts +0 -0
  131. /package/dist/{lib → types/lib}/components/Avatar/Avatar.d.ts +0 -0
  132. /package/dist/{lib → types/lib}/components/Avatar/AvatarGroup.d.ts +0 -0
  133. /package/dist/{lib → types/lib}/components/Avatar/AvatarGroup.stories.d.ts +0 -0
  134. /package/dist/{lib → types/lib}/components/Avatar/avatar.stories.d.ts +0 -0
  135. /package/dist/{lib → types/lib}/components/Avatar/color.d.ts +0 -0
  136. /package/dist/{lib → types/lib}/components/Avatar/index.d.ts +0 -0
  137. /package/dist/{lib → types/lib}/components/Badge/Badge.d.ts +0 -0
  138. /package/dist/{lib → types/lib}/components/Badge/Badge.stories.d.ts +0 -0
  139. /package/dist/{lib → types/lib}/components/Badge/index.d.ts +0 -0
  140. /package/dist/{lib → types/lib}/components/Bookmarks/QueryLabel.d.ts +0 -0
  141. /package/dist/{lib → types/lib}/components/Button/ButtonBase.d.ts +0 -0
  142. /package/dist/{lib → types/lib}/components/Button/ButtonIcon.d.ts +0 -0
  143. /package/dist/{lib → types/lib}/components/Button/ButtonLabel.d.ts +0 -0
  144. /package/dist/{lib → types/lib}/components/Button/Buttons.stories.d.ts +0 -0
  145. /package/dist/{lib → types/lib}/components/Button/ComboButton.d.ts +0 -0
  146. /package/dist/{lib → types/lib}/components/Button/ComboButton.stories.d.ts +0 -0
  147. /package/dist/{lib → types/lib}/components/Button/index.d.ts +0 -0
  148. /package/dist/{lib → types/lib}/components/Byline/Byline.d.ts +0 -0
  149. /package/dist/{lib → types/lib}/components/Byline/Byline.stories.d.ts +0 -0
  150. /package/dist/{lib → types/lib}/components/Byline/index.d.ts +0 -0
  151. /package/dist/{lib → types/lib}/components/ContextMenu/ContextMenu.d.ts +0 -0
  152. /package/dist/{lib → types/lib}/components/ContextMenu/ContextMenu.stories.d.ts +0 -0
  153. /package/dist/{lib → types/lib}/components/ContextMenu/index.d.ts +0 -0
  154. /package/dist/{lib → types/lib}/components/Datepicker/Datepicker.d.ts +0 -0
  155. /package/dist/{lib → types/lib}/components/Datepicker/DatepickerBase.d.ts +0 -0
  156. /package/dist/{lib → types/lib}/components/Datepicker/DatepickerHeader.d.ts +0 -0
  157. /package/dist/{lib → types/lib}/components/Datepicker/DatepickerTable.d.ts +0 -0
  158. /package/dist/{lib → types/lib}/components/Datepicker/index.d.ts +0 -0
  159. /package/dist/{lib → types/lib}/components/Datepicker/useDatepicker.d.ts +0 -0
  160. /package/dist/{lib → types/lib}/components/Dialog/Dialog.d.ts +0 -0
  161. /package/dist/{lib → types/lib}/components/Dialog/Dialog.stories.d.ts +0 -0
  162. /package/dist/{lib → types/lib}/components/Dialog/DialogActions.d.ts +0 -0
  163. /package/dist/{lib → types/lib}/components/Dialog/DialogActions.stories.d.ts +0 -0
  164. /package/dist/{lib → types/lib}/components/Dialog/DialogActivityLog.d.ts +0 -0
  165. /package/dist/{lib → types/lib}/components/Dialog/DialogAttachments.d.ts +0 -0
  166. /package/dist/{lib → types/lib}/components/Dialog/DialogAttachments.stories.d.ts +0 -0
  167. /package/dist/{lib → types/lib}/components/Dialog/DialogByline.d.ts +0 -0
  168. /package/dist/{lib → types/lib}/components/Dialog/DialogBylline.stories.d.ts +0 -0
  169. /package/dist/{lib → types/lib}/components/Dialog/DialogContent.d.ts +0 -0
  170. /package/dist/{lib → types/lib}/components/Dialog/DialogContent.stories.d.ts +0 -0
  171. /package/dist/{lib → types/lib}/components/Dialog/DialogDescription.d.ts +0 -0
  172. /package/dist/{lib → types/lib}/components/Dialog/DialogHeading.d.ts +0 -0
  173. /package/dist/{lib → types/lib}/components/Dialog/DialogHistory.d.ts +0 -0
  174. /package/dist/{lib → types/lib}/components/Dialog/DialogHistory.stories.d.ts +0 -0
  175. /package/dist/{lib → types/lib}/components/Dialog/DialogHistoryDetails.d.ts +0 -0
  176. /package/dist/{lib → types/lib}/components/Dialog/DialogHistoryItem.d.ts +0 -0
  177. /package/dist/{lib → types/lib}/components/Dialog/DialogLabel.d.ts +0 -0
  178. /package/dist/{lib → types/lib}/components/Dialog/DialogList.d.ts +0 -0
  179. /package/dist/{lib → types/lib}/components/Dialog/DialogList.stories.d.ts +0 -0
  180. /package/dist/{lib → types/lib}/components/Dialog/DialogListGroup.d.ts +0 -0
  181. /package/dist/{lib → types/lib}/components/Dialog/DialogListItem.d.ts +0 -0
  182. /package/dist/{lib → types/lib}/components/Dialog/DialogListItem.stories.d.ts +0 -0
  183. /package/dist/{lib → types/lib}/components/Dialog/DialogMetadata.d.ts +0 -0
  184. /package/dist/{lib → types/lib}/components/Dialog/DialogMetadata.stories.d.ts +0 -0
  185. /package/dist/{lib → types/lib}/components/Dialog/DialogSection.d.ts +0 -0
  186. /package/dist/{lib → types/lib}/components/Dialog/DialogSeenBy.d.ts +0 -0
  187. /package/dist/{lib → types/lib}/components/Dialog/DialogSeenBy.stories.d.ts +0 -0
  188. /package/dist/{lib → types/lib}/components/Dialog/DialogSelect.d.ts +0 -0
  189. /package/dist/{lib → types/lib}/components/Dialog/DialogStatus.d.ts +0 -0
  190. /package/dist/{lib → types/lib}/components/Dialog/DialogStatus.stories.d.ts +0 -0
  191. /package/dist/{lib → types/lib}/components/Dialog/DialogTimeline.d.ts +0 -0
  192. /package/dist/{lib → types/lib}/components/Dialog/DialogTimelineItem.d.ts +0 -0
  193. /package/dist/{lib → types/lib}/components/Dialog/DialogTouchedBy.d.ts +0 -0
  194. /package/dist/{lib → types/lib}/components/Dialog/DialogTouchedBy.stories.d.ts +0 -0
  195. /package/dist/{lib → types/lib}/components/Dialog/DialogTransmissions.d.ts +0 -0
  196. /package/dist/{lib → types/lib}/components/Dialog/DialogTransmissions.stories.d.ts +0 -0
  197. /package/dist/{lib → types/lib}/components/Dialog/DraftDialog.d.ts +0 -0
  198. /package/dist/{lib → types/lib}/components/Dialog/DraftDialog.stories.d.ts +0 -0
  199. /package/dist/{lib → types/lib}/components/Dialog/index.d.ts +0 -0
  200. /package/dist/{lib → types/lib}/components/Dropdown/Backdrop.d.ts +0 -0
  201. /package/dist/{lib → types/lib}/components/Dropdown/DrawerBase.d.ts +0 -0
  202. /package/dist/{lib → types/lib}/components/Dropdown/DrawerBody.d.ts +0 -0
  203. /package/dist/{lib → types/lib}/components/Dropdown/DrawerButton.d.ts +0 -0
  204. /package/dist/{lib → types/lib}/components/Dropdown/DrawerFooter.d.ts +0 -0
  205. /package/dist/{lib → types/lib}/components/Dropdown/DrawerHeader.d.ts +0 -0
  206. /package/dist/{lib → types/lib}/components/Dropdown/DrawerOrDropdown.d.ts +0 -0
  207. /package/dist/{lib → types/lib}/components/Dropdown/DropdownBase.d.ts +0 -0
  208. /package/dist/{lib → types/lib}/components/Dropdown/index.d.ts +0 -0
  209. /package/dist/{lib → types/lib}/components/Footer/Footer.d.ts +0 -0
  210. /package/dist/{lib → types/lib}/components/Footer/Footer.stories.d.ts +0 -0
  211. /package/dist/{lib → types/lib}/components/Footer/FooterAddress.d.ts +0 -0
  212. /package/dist/{lib → types/lib}/components/Footer/FooterBase.d.ts +0 -0
  213. /package/dist/{lib → types/lib}/components/Footer/FooterLogo.d.ts +0 -0
  214. /package/dist/{lib → types/lib}/components/Footer/FooterMenu.d.ts +0 -0
  215. /package/dist/{lib → types/lib}/components/Footer/index.d.ts +0 -0
  216. /package/dist/{lib → types/lib}/components/GlobalMenu/AccountButton.d.ts +0 -0
  217. /package/dist/{lib → types/lib}/components/GlobalMenu/AccountMenu.d.ts +0 -0
  218. /package/dist/{lib → types/lib}/components/GlobalMenu/AccountMenu.stories.d.ts +0 -0
  219. /package/dist/{lib → types/lib}/components/GlobalMenu/BackButton.d.ts +0 -0
  220. /package/dist/{lib → types/lib}/components/GlobalMenu/GlobalMenu.d.ts +0 -0
  221. /package/dist/{lib → types/lib}/components/GlobalMenu/GlobalMenu.stories.d.ts +0 -0
  222. /package/dist/{lib → types/lib}/components/GlobalMenu/GlobalMenuBase.d.ts +0 -0
  223. /package/dist/{lib → types/lib}/components/GlobalMenu/LogoutButton.d.ts +0 -0
  224. /package/dist/{lib → types/lib}/components/GlobalMenu/index.d.ts +0 -0
  225. /package/dist/{lib → types/lib}/components/Header/DigdirLogomark.d.ts +0 -0
  226. /package/dist/{lib → types/lib}/components/Header/Header.d.ts +0 -0
  227. /package/dist/{lib → types/lib}/components/Header/Header.stories.d.ts +0 -0
  228. /package/dist/{lib → types/lib}/components/Header/HeaderBase.d.ts +0 -0
  229. /package/dist/{lib → types/lib}/components/Header/HeaderButton.d.ts +0 -0
  230. /package/dist/{lib → types/lib}/components/Header/HeaderButton.stories.d.ts +0 -0
  231. /package/dist/{lib → types/lib}/components/Header/HeaderLogo.d.ts +0 -0
  232. /package/dist/{lib → types/lib}/components/Header/HeaderLogo.stories.d.ts +0 -0
  233. /package/dist/{lib → types/lib}/components/Header/HeaderMenu.d.ts +0 -0
  234. /package/dist/{lib → types/lib}/components/Header/HeaderSearch.d.ts +0 -0
  235. /package/dist/{lib → types/lib}/components/Header/index.d.ts +0 -0
  236. /package/dist/{lib → types/lib}/components/Icon/CheckboxCheckedIcon.d.ts +0 -0
  237. /package/dist/{lib → types/lib}/components/Icon/CheckboxIcon.d.ts +0 -0
  238. /package/dist/{lib → types/lib}/components/Icon/CheckboxIcon.stories.d.ts +0 -0
  239. /package/dist/{lib → types/lib}/components/Icon/CheckboxUncheckedIcon.d.ts +0 -0
  240. /package/dist/{lib → types/lib}/components/Icon/Icon.d.ts +0 -0
  241. /package/dist/{lib → types/lib}/components/Icon/Icon.stories.d.ts +0 -0
  242. /package/dist/{lib → types/lib}/components/Icon/ProgressIcon.d.ts +0 -0
  243. /package/dist/{lib → types/lib}/components/Icon/ProgressIcon.stories.d.ts +0 -0
  244. /package/dist/{lib → types/lib}/components/Icon/RadioCheckedIcon.d.ts +0 -0
  245. /package/dist/{lib → types/lib}/components/Icon/RadioIcon.d.ts +0 -0
  246. /package/dist/{lib → types/lib}/components/Icon/RadioIcon.stories.d.ts +0 -0
  247. /package/dist/{lib → types/lib}/components/Icon/RadioUncheckedIcon.d.ts +0 -0
  248. /package/dist/{lib → types/lib}/components/Icon/SvgIcon.d.ts +0 -0
  249. /package/dist/{lib → types/lib}/components/Icon/iconsMap.d.ts +0 -0
  250. /package/dist/{lib → types/lib}/components/Icon/index.d.ts +0 -0
  251. /package/dist/{lib → types/lib}/components/Layout/Layout.d.ts +0 -0
  252. /package/dist/{lib → types/lib}/components/Layout/Layout.stories.d.ts +0 -0
  253. /package/dist/{lib → types/lib}/components/Layout/LayoutBase.stories.d.ts +0 -0
  254. /package/dist/{lib → types/lib}/components/Layout/LayoutBody.d.ts +0 -0
  255. /package/dist/{lib → types/lib}/components/Layout/LayoutBody.stories.d.ts +0 -0
  256. /package/dist/{lib → types/lib}/components/Layout/LayoutContent.d.ts +0 -0
  257. /package/dist/{lib → types/lib}/components/Layout/LayoutContent.stories.d.ts +0 -0
  258. /package/dist/{lib → types/lib}/components/Layout/LayoutSidebar.d.ts +0 -0
  259. /package/dist/{lib → types/lib}/components/Layout/LayoutSidebar.stories.d.ts +0 -0
  260. /package/dist/{lib → types/lib}/components/Layout/index.d.ts +0 -0
  261. /package/dist/{lib → types/lib}/components/LayoutAction/ActionFooter.d.ts +0 -0
  262. /package/dist/{lib → types/lib}/components/LayoutAction/ActionFooter.stories.d.ts +0 -0
  263. /package/dist/{lib → types/lib}/components/LayoutAction/ActionHeader.d.ts +0 -0
  264. /package/dist/{lib → types/lib}/components/LayoutAction/ActionHeader.stories.d.ts +0 -0
  265. /package/dist/{lib → types/lib}/components/LayoutAction/ActionMenu.d.ts +0 -0
  266. /package/dist/{lib → types/lib}/components/LayoutAction/ActionMenu.stories.d.ts +0 -0
  267. /package/dist/{lib → types/lib}/components/LayoutAction/index.d.ts +0 -0
  268. /package/dist/{lib → types/lib}/components/List/List.d.ts +0 -0
  269. /package/dist/{lib → types/lib}/components/List/List.stories.d.ts +0 -0
  270. /package/dist/{lib → types/lib}/components/List/ListBase.d.ts +0 -0
  271. /package/dist/{lib → types/lib}/components/List/ListItem.d.ts +0 -0
  272. /package/dist/{lib → types/lib}/components/List/ListItem.stories.d.ts +0 -0
  273. /package/dist/{lib → types/lib}/components/List/ListItemBase.d.ts +0 -0
  274. /package/dist/{lib → types/lib}/components/List/ListItemHeader.stories.d.ts +0 -0
  275. /package/dist/{lib → types/lib}/components/List/ListItemLabel.d.ts +0 -0
  276. /package/dist/{lib → types/lib}/components/List/ListItemLink.d.ts +0 -0
  277. /package/dist/{lib → types/lib}/components/List/ListItemMedia.d.ts +0 -0
  278. /package/dist/{lib → types/lib}/components/List/ListItemSelect.d.ts +0 -0
  279. /package/dist/{lib → types/lib}/components/List/index.d.ts +0 -0
  280. /package/dist/{lib → types/lib}/components/Menu/Menu.d.ts +0 -0
  281. /package/dist/{lib → types/lib}/components/Menu/Menu.stories.d.ts +0 -0
  282. /package/dist/{lib → types/lib}/components/Menu/MenuBase.d.ts +0 -0
  283. /package/dist/{lib → types/lib}/components/Menu/MenuHeader.d.ts +0 -0
  284. /package/dist/{lib → types/lib}/components/Menu/MenuInputField.d.ts +0 -0
  285. /package/dist/{lib → types/lib}/components/Menu/MenuItem.d.ts +0 -0
  286. /package/dist/{lib → types/lib}/components/Menu/MenuItem.stories.d.ts +0 -0
  287. /package/dist/{lib → types/lib}/components/Menu/MenuItemLabel.d.ts +0 -0
  288. /package/dist/{lib → types/lib}/components/Menu/MenuItemMedia.d.ts +0 -0
  289. /package/dist/{lib → types/lib}/components/Menu/MenuItems.d.ts +0 -0
  290. /package/dist/{lib → types/lib}/components/Menu/MenuItems.stories.d.ts +0 -0
  291. /package/dist/{lib → types/lib}/components/Menu/MenuOption.d.ts +0 -0
  292. /package/dist/{lib → types/lib}/components/Menu/MenuOption.stories.d.ts +0 -0
  293. /package/dist/{lib → types/lib}/components/Menu/MenuSearch.d.ts +0 -0
  294. /package/dist/{lib → types/lib}/components/Menu/MenuSearch.stories.d.ts +0 -0
  295. /package/dist/{lib → types/lib}/components/Menu/index.d.ts +0 -0
  296. /package/dist/{lib → types/lib}/components/Meta/MetaBase.d.ts +0 -0
  297. /package/dist/{lib → types/lib}/components/Meta/MetaItem.d.ts +0 -0
  298. /package/dist/{lib → types/lib}/components/Meta/MetaItem.stories.d.ts +0 -0
  299. /package/dist/{lib → types/lib}/components/Meta/MetaItemBase.d.ts +0 -0
  300. /package/dist/{lib → types/lib}/components/Meta/MetaItemLabel.d.ts +0 -0
  301. /package/dist/{lib → types/lib}/components/Meta/MetaItemMedia.d.ts +0 -0
  302. /package/dist/{lib → types/lib}/components/Meta/MetaList.d.ts +0 -0
  303. /package/dist/{lib → types/lib}/components/Meta/MetaList.stories.d.ts +0 -0
  304. /package/dist/{lib → types/lib}/components/Meta/MetaProgress.d.ts +0 -0
  305. /package/dist/{lib → types/lib}/components/Meta/MetaProgress.stories.d.ts +0 -0
  306. /package/dist/{lib → types/lib}/components/Meta/MetaTimestamp.d.ts +0 -0
  307. /package/dist/{lib → types/lib}/components/Meta/MetaTimestamp.stories.d.ts +0 -0
  308. /package/dist/{lib → types/lib}/components/Meta/index.d.ts +0 -0
  309. /package/dist/{lib → types/lib}/components/Page/PageBase.d.ts +0 -0
  310. /package/dist/{lib → types/lib}/components/Page/PageHeader.d.ts +0 -0
  311. /package/dist/{lib → types/lib}/components/Page/PageHeader.stories.d.ts +0 -0
  312. /package/dist/{lib → types/lib}/components/ResourceList/ResourceList.d.ts +0 -0
  313. /package/dist/{lib → types/lib}/components/ResourceList/ResourceList.stories.d.ts +0 -0
  314. /package/dist/{lib → types/lib}/components/ResourceList/ResourceListItem.d.ts +0 -0
  315. /package/dist/{lib → types/lib}/components/ResourceList/ResourceListItem.stories.d.ts +0 -0
  316. /package/dist/{lib → types/lib}/components/ResourceList/index.d.ts +0 -0
  317. /package/dist/{lib → types/lib}/components/RootProvider/RootProvider.d.ts +0 -0
  318. /package/dist/{lib → types/lib}/components/RootProvider/index.d.ts +0 -0
  319. /package/dist/{lib → types/lib}/components/Searchbar/SearchField.d.ts +0 -0
  320. /package/dist/{lib → types/lib}/components/Searchbar/Searchbar.d.ts +0 -0
  321. /package/dist/{lib → types/lib}/components/Searchbar/SearchbarBase.d.ts +0 -0
  322. /package/dist/{lib → types/lib}/components/Searchbar/index.d.ts +0 -0
  323. /package/dist/{lib → types/lib}/components/Skeleton/Skeleton.d.ts +0 -0
  324. /package/dist/{lib → types/lib}/components/Skeleton/index.d.ts +0 -0
  325. /package/dist/{lib → types/lib}/components/Snackbar/Snackbar.d.ts +0 -0
  326. /package/dist/{lib → types/lib}/components/Snackbar/Snackbar.stories.d.ts +0 -0
  327. /package/dist/{lib → types/lib}/components/Snackbar/SnackbarBase.d.ts +0 -0
  328. /package/dist/{lib → types/lib}/components/Snackbar/SnackbarLabel.d.ts +0 -0
  329. /package/dist/{lib → types/lib}/components/Snackbar/SnackbarMedia.d.ts +0 -0
  330. /package/dist/{lib → types/lib}/components/Snackbar/index.d.ts +0 -0
  331. /package/dist/{lib → types/lib}/components/Timeline/Timeline.d.ts +0 -0
  332. /package/dist/{lib → types/lib}/components/Timeline/Timeline.stories.d.ts +0 -0
  333. /package/dist/{lib → types/lib}/components/Timeline/TimelineBase.d.ts +0 -0
  334. /package/dist/{lib → types/lib}/components/Timeline/TimelineSection.d.ts +0 -0
  335. /package/dist/{lib → types/lib}/components/Timeline/index.d.ts +0 -0
  336. /package/dist/{lib → types/lib}/components/Toolbar/Toolbar.d.ts +0 -0
  337. /package/dist/{lib → types/lib}/components/Toolbar/Toolbar.stories.d.ts +0 -0
  338. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarAccountMenu.d.ts +0 -0
  339. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarAdd.d.ts +0 -0
  340. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarAdd.stories.d.ts +0 -0
  341. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarBase.d.ts +0 -0
  342. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarButton.d.ts +0 -0
  343. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarButton.stories.d.ts +0 -0
  344. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarDate.stories.d.ts +0 -0
  345. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarDaterange.d.ts +0 -0
  346. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarDaterange.stories.d.ts +0 -0
  347. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarFilter.d.ts +0 -0
  348. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarFilter.stories.d.ts +0 -0
  349. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarFilterBase.d.ts +0 -0
  350. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarMenu.d.ts +0 -0
  351. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarMenu.stories.d.ts +0 -0
  352. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarOptions.d.ts +0 -0
  353. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarOptions.stories.d.ts +0 -0
  354. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarSearch.d.ts +0 -0
  355. /package/dist/{lib → types/lib}/components/Toolbar/ToolbarSearch.stories.d.ts +0 -0
  356. /package/dist/{lib → types/lib}/components/Toolbar/index.d.ts +0 -0
  357. /package/dist/{lib → types/lib}/components/Transmission/TransmissionItem.d.ts +0 -0
  358. /package/dist/{lib → types/lib}/components/Transmission/TransmissionItem.stories.d.ts +0 -0
  359. /package/dist/{lib → types/lib}/components/Transmission/TransmissionList.d.ts +0 -0
  360. /package/dist/{lib → types/lib}/components/Transmission/TransmissionList.stories.d.ts +0 -0
  361. /package/dist/{lib → types/lib}/components/Transmission/TransmissionType.d.ts +0 -0
  362. /package/dist/{lib → types/lib}/components/Transmission/index.d.ts +0 -0
  363. /package/dist/{lib → types/lib}/components/Typography/index.d.ts +0 -0
  364. /package/dist/{lib → types/lib}/hooks/index.d.ts +0 -0
  365. /package/dist/{lib → types/lib}/hooks/useClickOutside.d.ts +0 -0
  366. /package/dist/{lib → types/lib}/hooks/useEnterKey.d.ts +0 -0
  367. /package/dist/{lib → types/lib}/hooks/useEscapeKey.d.ts +0 -0
  368. /package/dist/{lib → types/lib}/hooks/useMenu.d.ts +0 -0
  369. /package/dist/{lib → types/lib}/index.d.ts +0 -0
@@ -1,8 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react';
2
- import { BookmarksListItemProps } from '..';
3
2
  declare const meta: {
4
3
  title: string;
5
- component: ({ size, title, description, params, ...rest }: BookmarksListItemProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ size, icon, expanded, loading, title, titleField, untitled, params, onToggle, saveButton, removeButton, ...rest }: import('./BookmarksListItem').BookmarksListItemProps) => import("react/jsx-runtime").JSX.Element;
6
5
  tags: string[];
7
6
  parameters: {};
8
7
  args: {
@@ -21,5 +20,5 @@ export default meta;
21
20
  type Story = StoryObj<typeof meta>;
22
21
  export declare const Default: Story;
23
22
  export declare const CustomTitle: Story;
23
+ export declare const Expanded: Story;
24
24
  export declare const LotsOfParams: Story;
25
- export declare const Sizes: (args: BookmarksListItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { BookmarksListItemProps, ButtonProps, TextFieldProps } from '../';
2
+ export interface BookmarksSectionProps {
3
+ title?: string;
4
+ description?: string;
5
+ items: BookmarksListItemProps[];
6
+ untitled?: string;
7
+ titleField?: TextFieldProps;
8
+ saveButton?: ButtonProps;
9
+ removeButton?: ButtonProps;
10
+ expandedId?: string;
11
+ onToggle?: (id: string) => void;
12
+ loading?: boolean;
13
+ }
14
+ export declare const BookmarksSection: ({ loading, title, description, items, untitled, titleField, saveButton, removeButton, expandedId, onToggle, }: BookmarksSectionProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,52 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { BookmarksSectionProps } from './BookmarksSection';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ loading, title, description, items, untitled, titleField, saveButton, removeButton, expandedId, onToggle, }: BookmarksSectionProps) => import("react/jsx-runtime").JSX.Element;
6
+ tags: string[];
7
+ parameters: {};
8
+ args: {
9
+ title: string;
10
+ untitled: string;
11
+ titleField: {
12
+ label: string;
13
+ placeholder: string;
14
+ helperText: string;
15
+ };
16
+ saveButton: {
17
+ label: string;
18
+ };
19
+ removeButton: {
20
+ label: string;
21
+ };
22
+ description: string;
23
+ items: ({
24
+ id: string;
25
+ title: string;
26
+ params: ({
27
+ type: "search";
28
+ label: string;
29
+ } | {
30
+ type: "filter";
31
+ label: string;
32
+ })[];
33
+ } | {
34
+ id: string;
35
+ params: ({
36
+ type: "search";
37
+ label: string;
38
+ } | {
39
+ type: "filter";
40
+ label: string;
41
+ })[];
42
+ title?: undefined;
43
+ })[];
44
+ };
45
+ };
46
+ export default meta;
47
+ type Story = StoryObj<typeof meta>;
48
+ export declare const Default: Story;
49
+ export declare const ExpandedItem: Story;
50
+ export declare const ControlledState: (args: BookmarksSectionProps) => import("react/jsx-runtime").JSX.Element;
51
+ export declare const LoadingState: Story;
52
+ export declare const EmptyState: Story;
@@ -1,4 +1,3 @@
1
- export * from './BookmarksList';
2
1
  export * from './BookmarksListItem';
3
2
  export * from './QueryLabel';
4
3
  export * from './BookmarksSection';
@@ -4,5 +4,6 @@ export interface ButtonProps extends Partial<ButtonBaseProps> {
4
4
  icon?: IconName;
5
5
  reverse?: boolean;
6
6
  loading?: boolean;
7
+ label?: string;
7
8
  }
8
- export declare const Button: ({ variant, color, size, reverse, selected, icon, href, children, className, loading, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const Button: ({ variant, color, size, reverse, selected, icon, href, label, children, className, loading, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ variant, color, size, reverse, selected, icon, href, children, className, loading, ...rest }: import('./Button').ButtonProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ variant, color, size, reverse, selected, icon, href, label, children, className, loading, ...rest }: import('./Button').ButtonProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  parameters: {};
7
7
  args: {
@@ -9,5 +9,6 @@ export interface IconButtonProps {
9
9
  variant?: ButtonVariant;
10
10
  className?: string;
11
11
  onClick?: MouseEventHandler;
12
+ dataTestId?: string;
12
13
  }
13
- export declare const IconButton: ({ variant, color, size, icon, iconSize, className, onClick, }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const IconButton: ({ variant, color, size, icon, iconSize, className, onClick, dataTestId, }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
2
2
  import { IconButtonProps } from './IconButton';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ variant, color, size, icon, iconSize, className, onClick, }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ variant, color, size, icon, iconSize, className, onClick, dataTestId, }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
6
6
  tags: string[];
7
7
  parameters: {};
8
8
  args: {
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export type LayoutTheme = 'global' | 'global-dark' | 'neutral' | 'company' | 'person';
2
+ export type LayoutTheme = 'inherit' | 'global' | 'global-dark' | 'neutral' | 'company' | 'person';
3
3
  export interface LayoutBaseProps {
4
4
  theme?: LayoutTheme;
5
5
  currentId?: string;
@@ -3,11 +3,12 @@ import { BadgeProps } from '../Badge';
3
3
  import { ContextMenuProps } from '../ContextMenu';
4
4
  import { IconName } from '../Icon';
5
5
  interface ListItemControlsProps {
6
+ className?: string;
6
7
  badge?: BadgeProps;
7
8
  linkText?: string;
8
9
  linkIcon?: IconName;
9
10
  menu?: ContextMenuProps;
10
11
  children?: ReactNode;
11
12
  }
12
- export declare const ListItemControls: ({ badge, linkText, linkIcon, menu, children }: ListItemControlsProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const ListItemControls: ({ className, badge, linkText, linkIcon, menu, children }: ListItemControlsProps) => import("react/jsx-runtime").JSX.Element;
13
14
  export {};
@@ -1,10 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { AvatarGroupProps, AvatarProps } from '../Avatar';
3
3
  import { BadgeProps } from '../Badge';
4
+ import { ContextMenuProps } from '../ContextMenu';
4
5
  import { IconName } from '../Icon';
5
6
  import { ListItemSize } from './ListItemBase';
6
7
  import { ListItemLinkProps } from './ListItemLink';
7
- import { ListItemMenuProps } from './ListItemMenu';
8
8
  import { ListItemSelectProps } from './ListItemSelect';
9
9
  export interface ListItemHeaderProps extends ListItemLinkProps {
10
10
  /** Header is loading */
@@ -36,7 +36,7 @@ export interface ListItemHeaderProps extends ListItemLinkProps {
36
36
  /** Optional badge */
37
37
  badge?: BadgeProps;
38
38
  /** Context menu */
39
- menu?: ListItemMenuProps;
39
+ menu?: ContextMenuProps;
40
40
  /** Custom controls */
41
41
  controls?: ReactNode;
42
42
  /** Custom label */
@@ -2,7 +2,7 @@ import { ElementType, KeyboardEventHandler, ReactNode } from 'react';
2
2
  import { BadgeProps } from '../Badge';
3
3
  import { IconName } from '../Icon';
4
4
  export type MenuItemSize = 'xs' | 'sm' | 'md' | 'lg';
5
- export type MenuItemColor = 'neutral' | 'subtle' | 'strong' | 'company' | 'person';
5
+ export type MenuItemColor = 'neutral' | 'subtle' | 'surface' | 'strong' | 'company' | 'person';
6
6
  export interface MenuItemBaseProps {
7
7
  as?: ElementType;
8
8
  size?: MenuItemSize;
@@ -3,4 +3,4 @@ import { SectionProps } from './Section';
3
3
  export interface ArticleProps extends SectionProps {
4
4
  children?: ReactNode;
5
5
  }
6
- export declare const Article: ({ theme, children, ...props }: ArticleProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const Article: ({ children, ...props }: ArticleProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { BreadcrumbsLinkProps } from '../';
2
+ export interface BreadcrumbsProps {
3
+ items?: BreadcrumbsLinkProps[];
4
+ }
5
+ export declare const Breadcrumbs: ({ items }: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { ElementType, ReactNode } from 'react';
2
+ export interface BreadcrumbsLinkProps extends React.HTMLAttributes<HTMLButtonElement> {
3
+ as?: ElementType;
4
+ selected?: boolean;
5
+ disabled?: boolean;
6
+ href?: string;
7
+ label?: string;
8
+ className?: string;
9
+ children?: ReactNode;
10
+ }
11
+ export declare const BreadcrumbsLink: ({ as, className, disabled, selected, tabIndex, label, children, ...rest }: BreadcrumbsLinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,6 +6,7 @@ declare const meta: {
6
6
  args: {};
7
7
  };
8
8
  export default meta;
9
+ export declare const Frontpage: () => import("react/jsx-runtime").JSX.Element;
10
+ export declare const ArticlePage: () => import("react/jsx-runtime").JSX.Element;
9
11
  export declare const DialogPage: () => import("react/jsx-runtime").JSX.Element;
10
12
  export declare const ProfilePage: () => import("react/jsx-runtime").JSX.Element;
11
- export declare const ArticlePage: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ export type FlexElement = 'div' | 'section' | 'article' | 'header' | 'footer' | 'nav';
3
+ export type FlexTheme = 'inherit' | 'neutral' | 'company' | 'person';
4
+ export type FlexColor = 'transparent' | 'subtle' | 'surface' | 'accent';
5
+ export type FlexDirection = 'col' | 'row';
6
+ export type FlexAlign = 'initial' | 'start' | 'end' | 'center' | 'stretch';
7
+ export type FlexJustify = 'initial' | 'start' | 'end' | 'center' | 'between';
8
+ export type FlexSpacing = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
9
+ export type FlexPadding = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
10
+ export type FlexMargin = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
11
+ export type FlexShadow = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
12
+ export interface FlexProps {
13
+ as?: FlexElement;
14
+ theme?: FlexTheme;
15
+ color?: FlexColor;
16
+ direction?: FlexDirection;
17
+ reverse?: boolean;
18
+ align?: FlexAlign;
19
+ justify?: FlexJustify;
20
+ spacing?: FlexSpacing;
21
+ padding?: FlexPadding;
22
+ margin?: FlexMargin;
23
+ shadow?: FlexShadow;
24
+ inset?: boolean;
25
+ children?: ReactNode;
26
+ className?: string;
27
+ style?: CSSProperties;
28
+ }
29
+ export declare const Flex: ({ as, theme, color, direction, reverse, align, justify, spacing, padding, margin, inset, className, style, children, ...rest }: FlexProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ export type GridTheme = 'inherit' | 'neutral' | 'company' | 'person';
3
+ export type GridColor = 'transparent' | 'subtle' | 'surface' | 'accent';
4
+ export type GridElement = 'div' | 'section' | 'article' | 'header' | 'footer';
5
+ export type GridCols = '1-2-3';
6
+ export type GridSpacing = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
7
+ export type GridPadding = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
8
+ export type GridMargin = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
9
+ export interface GridProps {
10
+ as?: GridElement;
11
+ theme?: GridTheme;
12
+ color?: GridColor;
13
+ cols?: GridCols;
14
+ reverse?: boolean;
15
+ spacing?: GridSpacing;
16
+ padding?: GridPadding;
17
+ margin?: GridMargin;
18
+ children?: ReactNode;
19
+ className?: string;
20
+ style?: CSSProperties;
21
+ }
22
+ export declare const Grid: ({ as, theme, color, cols, reverse, spacing, padding, margin, className, style, children, }: GridProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ import { BackButtonProps, BreadcrumbsLinkProps, ContextMenuProps, FlexProps } from '../';
3
+ export type PageNavPadding = 'none' | 'sm';
4
+ export type PageNavMargin = 'none' | 'sm';
5
+ export interface PageNavProps extends FlexProps {
6
+ padding?: PageNavPadding;
7
+ margin?: PageNavMargin;
8
+ backButton?: BackButtonProps;
9
+ breadcrumbs?: BreadcrumbsLinkProps[];
10
+ menu?: ContextMenuProps;
11
+ children?: ReactNode;
12
+ }
13
+ /**
14
+ * Page navigation bar with Back button and controls.
15
+ */
16
+ export declare const PageNav: ({ padding, margin, breadcrumbs, backButton, menu, children, }: PageNavProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ padding, backButton, menu, children, }: import('./PageNav').PageNavProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ padding, margin, breadcrumbs, backButton, menu, children, }: import('./PageNav').PageNavProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  parameters: {};
7
7
  args: {
@@ -14,3 +14,4 @@ export default meta;
14
14
  type Story = StoryObj<typeof meta>;
15
15
  export declare const BackButton: Story;
16
16
  export declare const BackAndContextMenu: Story;
17
+ export declare const Breadcrumbs: Story;
@@ -0,0 +1,9 @@
1
+ import { FlexProps } from '..';
2
+ export type SectionBg = 'transparent' | 'subtle' | 'surface' | 'accent';
3
+ export type SectionShadow = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
+ export interface SectionProps extends FlexProps {
5
+ inset?: boolean;
6
+ bg?: SectionBg;
7
+ shadow?: SectionShadow;
8
+ }
9
+ export declare const Section: ({ as, className, bg, shadow, children, ...rest }: SectionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,9 @@
1
1
  export * from './PageBase';
2
2
  export * from './PageNav';
3
3
  export * from './PageHeader';
4
- export * from './SectionHeader';
5
- export * from './SectionFooter';
6
4
  export * from './Article';
7
5
  export * from './Section';
6
+ export * from './Flex';
7
+ export * from './Grid';
8
+ export * from './Breadcrumbs';
9
+ export * from './BreadcrumbsLink';
@@ -16,4 +16,9 @@ type Story = StoryObj<typeof meta>;
16
16
  export declare const Default: Story;
17
17
  export declare const Query: Story;
18
18
  export declare const Expanded: Story;
19
- export declare const ControlledState: (args: SearchbarProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const ControlledState: {
20
+ (args: SearchbarProps): import("react/jsx-runtime").JSX.Element;
21
+ play({ canvasElement }: {
22
+ canvasElement: HTMLElement;
23
+ }): Promise<void>;
24
+ };
@@ -0,0 +1,11 @@
1
+ import { ElementType, ReactNode } from 'react';
2
+ export type FieldSize = 'xs' | 'sm' | 'md' | 'lg' | 'custom';
3
+ export interface FieldBaseProps {
4
+ as?: ElementType;
5
+ classname?: string;
6
+ size?: FieldSize;
7
+ label?: string;
8
+ helperText?: string;
9
+ children?: ReactNode;
10
+ }
11
+ export declare const FieldBase: ({ as, size, classname, label, helperText, children }: FieldBaseProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { ChangeEventHandler, FocusEventHandler, HTMLInputTypeAttribute } from 'react';
2
+ export type InputSize = 'xs' | 'sm' | 'md' | 'lg' | 'custom';
3
+ export interface InputBaseProps {
4
+ type?: HTMLInputTypeAttribute;
5
+ name?: string;
6
+ value?: string;
7
+ placeholder?: string;
8
+ onFocus?: FocusEventHandler;
9
+ onBlur?: FocusEventHandler;
10
+ onChange?: ChangeEventHandler;
11
+ className?: string;
12
+ size?: InputSize;
13
+ }
14
+ export declare const InputBase: ({ type, name, value, placeholder, onChange, onFocus, onBlur, size, className, ...rest }: InputBaseProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { InputBaseProps, InputSize } from './';
2
+ export interface TextFieldProps extends InputBaseProps {
3
+ size?: InputSize;
4
+ label?: string;
5
+ helperText?: string;
6
+ }
7
+ export declare const TextField: ({ size, label, helperText, ...rest }: TextFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './FieldBase';
2
+ export * from './InputBase';
3
+ export * from './TextField';
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- export type HeadingSize = 'xs' | 'sm' | 'md' | 'lg';
2
+ export type HeadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
3
  export type HeadingWeight = 'normal' | 'medium' | 'bold';
4
- export type HeadingComponent = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
4
+ export type HeadingComponent = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span';
5
5
  export interface HeadingProps {
6
6
  as?: HeadingComponent;
7
7
  size?: HeadingSize;
@@ -1,6 +1,6 @@
1
1
  import { ElementType, ReactNode } from 'react';
2
2
  export type TypographyTheme = 'inherit' | 'neutral' | 'company' | 'person' | 'article';
3
- export type TypographySize = 'xs' | 'sm' | 'md' | 'lg';
3
+ export type TypographySize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
4
  export interface TypographyProps {
5
5
  as?: ElementType;
6
6
  size?: TypographySize;
@@ -29,3 +29,4 @@ export * from './Typography';
29
29
  export * from './ResourceList';
30
30
  export * from './AccessAreaList';
31
31
  export * from './AccessPackageList';
32
+ export * from './TextField';
@@ -1,26 +1,19 @@
1
- import { g as d } from "./globalMenu-DY4uIQk2.js";
2
- import { jsxs as p, jsx as h } from "react/jsx-runtime";
3
- import { useState as c } from "react";
4
- const b = {
5
- menu: d,
6
- search: {
7
- name: "global-search",
8
- placeholder: "Søk i Altinn"
9
- }
10
- }, f = ({
1
+ import { jsxs as a, jsx as d } from "react/jsx-runtime";
2
+ import { useState as u } from "react";
3
+ const g = ({
11
4
  name: e = "inbox-search",
12
5
  placeholder: r = "Søk i innboks"
13
6
  }) => {
14
- const [t, n] = c(""), a = (s) => {
7
+ const [t, n] = u(""), p = (s) => {
15
8
  n(s.target.value);
16
- }, l = [
9
+ }, i = [
17
10
  {
18
11
  type: "scope",
19
12
  groupId: "1",
20
13
  id: "inbox",
21
14
  href: "#",
22
- label: t ? () => /* @__PURE__ */ p("span", { children: [
23
- /* @__PURE__ */ h("mark", { children: t }),
15
+ label: t ? () => /* @__PURE__ */ a("span", { children: [
16
+ /* @__PURE__ */ d("mark", { children: t }),
24
17
  " i innboksen"
25
18
  ] }) : "Alt i innboksen"
26
19
  },
@@ -29,8 +22,8 @@ const b = {
29
22
  groupId: "1",
30
23
  id: "global",
31
24
  href: "#",
32
- label: t ? () => /* @__PURE__ */ p("span", { children: [
33
- /* @__PURE__ */ h("mark", { children: t }),
25
+ label: t ? () => /* @__PURE__ */ a("span", { children: [
26
+ /* @__PURE__ */ d("mark", { children: t }),
34
27
  " i hele Altinn"
35
28
  ] }) : "Alt i hele Altinn"
36
29
  }
@@ -47,36 +40,35 @@ const b = {
47
40
  href: "http://www.altinn.no",
48
41
  title: "Skattemelding 2025"
49
42
  }
50
- ].filter((s) => s.title.toLowerCase().includes((t ?? "").toLowerCase())) : [], i = {
43
+ ].filter((s) => s.title.toLowerCase().includes((t ?? "").toLowerCase())) : [], l = {
51
44
  groups: {
52
45
  2: {
53
46
  title: `${o.length} treff i innboksen`
54
47
  }
55
48
  },
56
- items: [...l, ...o]
49
+ items: [...i, ...o]
57
50
  };
58
51
  return {
59
52
  name: e,
60
53
  placeholder: r,
61
54
  value: t,
62
- onChange: a,
55
+ onChange: p,
63
56
  onClear: () => n(""),
64
- autocomplete: i
57
+ autocomplete: l
65
58
  };
66
- }, k = ({ accounts: e, ...r }) => {
67
- const [t, n] = c(e == null ? void 0 : e[0]);
59
+ }, b = ({ accounts: e, ...r }) => {
60
+ const [t, n] = u(e == null ? void 0 : e[0]);
68
61
  return {
69
62
  ...r,
70
63
  accounts: e,
71
64
  currentAccount: t,
72
- onSelectAccount: (l) => {
73
- const o = e == null ? void 0 : e.find((i) => i.id === l);
65
+ onSelectAccount: (i) => {
66
+ const o = e == null ? void 0 : e.find((l) => l.id === i);
74
67
  n(o);
75
68
  }
76
69
  };
77
70
  };
78
71
  export {
79
- k as a,
80
- b as h,
81
- f as u
72
+ b as a,
73
+ g as u
82
74
  };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.10.3",
3
+ "version": "0.11.0",
4
4
  "main": "dist/index.js",
5
- "types": "dist/index.d.ts",
6
5
  "files": [
7
6
  "dist/",
8
7
  "!dist/stories/",
9
8
  "!dist/components/*/*.stories.js"
10
9
  ],
10
+ "types": "dist/types/lib/index.d.ts",
11
11
  "type": "module",
12
12
  "description": "Reusable react components",
13
13
  "sideEffects": [
@@ -37,14 +37,17 @@
37
37
  "@storybook/react": "^8.4.4",
38
38
  "@storybook/react-vite": "^8.4.4",
39
39
  "@storybook/test": "^8.4.4",
40
+ "@storybook/test-runner": "^0.21.0",
40
41
  "@types/react": "^18.3.11",
41
42
  "@types/react-dom": "^18.3.1",
42
43
  "@vitejs/plugin-react-swc": "^3.7.1",
43
44
  "axe-core": "^4.10.2",
44
45
  "glob": "^11.0.0",
45
46
  "lint-staged": "^15.2.10",
47
+ "playwright": "^1.49.1",
46
48
  "rollup-preserve-directives": "^1.1.2",
47
49
  "storybook": "^8.4.4",
50
+ "storybook-addon-tag-badges": "^1.3.2",
48
51
  "storybook-addon-theme-provider": "^0.2.8",
49
52
  "typescript": "^5.6.3",
50
53
  "vite": "^5.4.9",
@@ -66,6 +69,8 @@
66
69
  "build": "tsc && vite build",
67
70
  "format": "lint-staged",
68
71
  "dev": "vite",
69
- "build-storybook": "storybook build"
72
+ "build-storybook": "storybook build",
73
+ "test-storybook": "test-storybook",
74
+ "install:browsers": "pnpm exec playwright install"
70
75
  }
71
76
  }