@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.
- package/README.md +11 -1
- package/dist/assets/Breadcrumbs.css +1 -0
- package/dist/assets/BreadcrumbsLink.css +1 -0
- package/dist/assets/FieldBase.css +1 -0
- package/dist/assets/Flex.css +1 -0
- package/dist/assets/Grid.css +1 -0
- package/dist/assets/Heading.css +1 -1
- package/dist/assets/InputBase.css +1 -0
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/MenuItemMedia.css +1 -1
- package/dist/assets/QueryLabel.css +1 -1
- package/dist/assets/Section.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/components/Autocomplete/AutocompleteItem.js +6 -6
- package/dist/components/Autocomplete/index.js +5 -1
- package/dist/components/Bookmarks/BookmarksListItem.js +66 -7
- package/dist/components/Bookmarks/BookmarksSection.js +36 -13
- package/dist/components/Bookmarks/QueryLabel.js +9 -9
- package/dist/components/Bookmarks/index.js +7 -9
- package/dist/components/Button/Button.js +16 -15
- package/dist/components/Button/IconButton.js +22 -10
- package/dist/components/Dialog/Dialog.js +2 -2
- package/dist/components/Dialog/DialogContent.js +6 -6
- package/dist/components/Dialog/DialogListGroup.js +7 -7
- package/dist/components/Dialog/DialogSection.js +1 -1
- package/dist/components/Dialog/DraftDialog.js +24 -24
- package/dist/components/Dropdown/DropdownBase.js +8 -7
- package/dist/components/Icon/iconsMap.js +16960 -739
- package/dist/components/List/ListItemBase.js +11 -11
- package/dist/components/List/ListItemControls.js +15 -15
- package/dist/components/List/ListItemHeader.js +49 -49
- package/dist/components/List/ListItemLabel.js +8 -8
- package/dist/components/Menu/MenuItemMedia.js +5 -5
- package/dist/components/Page/Article.js +4 -4
- package/dist/components/Page/Breadcrumbs.js +22 -0
- package/dist/components/Page/BreadcrumbsLink.js +28 -0
- package/dist/components/Page/Flex.js +42 -0
- package/dist/components/Page/Grid.js +34 -0
- package/dist/components/Page/PageHeader.js +10 -9
- package/dist/components/Page/PageNav.js +20 -17
- package/dist/components/Page/Section.js +11 -40
- package/dist/components/Page/index.js +18 -14
- package/dist/components/Searchbar/SearchField.js +38 -28
- package/dist/components/Searchbar/Searchbar.js +16 -12
- package/dist/components/TextField/FieldBase.js +16 -0
- package/dist/components/TextField/InputBase.js +33 -0
- package/dist/components/TextField/TextField.js +7 -0
- package/dist/components/TextField/index.js +8 -0
- package/dist/components/Typography/Heading.js +3 -3
- package/dist/components/Typography/Typography.js +8 -9
- package/dist/components/index.js +280 -268
- package/dist/footer-BI7NNFeL.js +27 -0
- package/dist/globalMenu-A9dXKjrI.js +80 -0
- package/dist/header-B7oMg4iq.js +11 -0
- package/dist/inboxMenu-DXIoTtPz.js +48 -0
- package/dist/index.js +284 -272
- package/dist/types/lib/components/Autocomplete/index.d.ts +3 -0
- package/dist/types/lib/components/Bookmarks/BookmarksListItem.d.ts +24 -0
- package/dist/{lib → types/lib}/components/Bookmarks/BookmarksListItem.stories.d.ts +2 -3
- package/dist/types/lib/components/Bookmarks/BookmarksSection.d.ts +14 -0
- package/dist/types/lib/components/Bookmarks/BookmarksSection.stories.d.ts +52 -0
- package/dist/{lib → types/lib}/components/Bookmarks/index.d.ts +0 -1
- package/dist/{lib → types/lib}/components/Button/Button.d.ts +2 -1
- package/dist/{lib → types/lib}/components/Button/Button.stories.d.ts +1 -1
- package/dist/{lib → types/lib}/components/Button/IconButton.d.ts +2 -1
- package/dist/{lib → types/lib}/components/Button/IconButton.stories.d.ts +1 -1
- package/dist/{lib → types/lib}/components/Layout/LayoutBase.d.ts +1 -1
- package/dist/{lib → types/lib}/components/List/ListItemControls.d.ts +2 -1
- package/dist/{lib → types/lib}/components/List/ListItemHeader.d.ts +2 -2
- package/dist/{lib → types/lib}/components/Menu/MenuItemBase.d.ts +1 -1
- package/dist/{lib → types/lib}/components/Page/Article.d.ts +1 -1
- package/dist/types/lib/components/Page/Breadcrumbs.d.ts +5 -0
- package/dist/types/lib/components/Page/BreadcrumbsLink.d.ts +11 -0
- package/dist/{lib/components/Page/PageBase.stories.d.ts → types/lib/components/Page/Examples.stories.d.ts} +2 -1
- package/dist/types/lib/components/Page/Flex.d.ts +29 -0
- package/dist/types/lib/components/Page/Grid.d.ts +22 -0
- package/dist/types/lib/components/Page/PageNav.d.ts +16 -0
- package/dist/{lib → types/lib}/components/Page/PageNav.stories.d.ts +2 -1
- package/dist/types/lib/components/Page/Section.d.ts +9 -0
- package/dist/{lib → types/lib}/components/Page/index.d.ts +4 -2
- package/dist/{lib → types/lib}/components/Searchbar/Searchbar.stories.d.ts +6 -1
- package/dist/types/lib/components/TextField/FieldBase.d.ts +11 -0
- package/dist/types/lib/components/TextField/InputBase.d.ts +14 -0
- package/dist/types/lib/components/TextField/TextField.d.ts +7 -0
- package/dist/types/lib/components/TextField/index.d.ts +3 -0
- package/dist/{lib → types/lib}/components/Typography/Heading.d.ts +2 -2
- package/dist/{lib → types/lib}/components/Typography/Typography.d.ts +1 -1
- package/dist/{lib → types/lib}/components/index.d.ts +1 -0
- package/dist/{useAccountMenu-ImwZYwks.js → useAccountMenu-DgXhBMw4.js} +19 -27
- package/package.json +8 -3
- package/dist/ZoomPlusFill-xyiiemTy.js +0 -17126
- package/dist/assets/ListItemMenu.css +0 -1
- package/dist/assets/SectionFooter.css +0 -1
- package/dist/components/Bookmarks/BookmarksList.js +0 -12
- package/dist/components/Icon/__AkselIcon.js +0 -1042
- package/dist/components/List/ListItemMenu.js +0 -8
- package/dist/components/Page/SectionFooter.js +0 -8
- package/dist/components/Page/SectionHeader.js +0 -12
- package/dist/lib/components/Autocomplete/index.d.ts +0 -1
- package/dist/lib/components/Bookmarks/BookmarksList.d.ts +0 -5
- package/dist/lib/components/Bookmarks/BookmarksList.stories.d.ts +0 -34
- package/dist/lib/components/Bookmarks/BookmarksListItem.d.ts +0 -10
- package/dist/lib/components/Bookmarks/BookmarksSection.d.ts +0 -7
- package/dist/lib/components/Bookmarks/BookmarksSection.stories.d.ts +0 -36
- package/dist/lib/components/List/ListItemMenu.d.ts +0 -8
- package/dist/lib/components/Page/PageNav.d.ts +0 -13
- package/dist/lib/components/Page/Section.d.ts +0 -29
- package/dist/lib/components/Page/SectionFooter.d.ts +0 -6
- package/dist/lib/components/Page/SectionHeader.d.ts +0 -6
- /package/dist/{lib → types/lib}/components/AccessAreaList/AccessAreaList.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/AccessAreaList/AccessAreaListItem.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/AccessAreaList/AccessAreaListItem.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/AccessAreaList/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/AccessPackageList/AccessPackageList.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/AccessPackageList/AccessPackageList.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/AccessPackageList/AccessPackageListItem.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/AccessPackageList/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Attachment/AttachmentLink.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Attachment/AttachmentLink.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Attachment/AttachmentList.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Attachment/AttachmentList.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Attachment/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Autocomplete/Autocomplete.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Autocomplete/Autocomplete.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Autocomplete/AutocompleteBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Autocomplete/AutocompleteGroup.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Autocomplete/AutocompleteItem.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Autocomplete/ScopeListItem.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Avatar/Avatar.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Avatar/AvatarGroup.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Avatar/AvatarGroup.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Avatar/avatar.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Avatar/color.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Avatar/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Badge/Badge.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Badge/Badge.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Badge/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Bookmarks/QueryLabel.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Button/ButtonBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Button/ButtonIcon.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Button/ButtonLabel.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Button/Buttons.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Button/ComboButton.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Button/ComboButton.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Button/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Byline/Byline.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Byline/Byline.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Byline/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/ContextMenu/ContextMenu.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/ContextMenu/ContextMenu.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/ContextMenu/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Datepicker/Datepicker.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Datepicker/DatepickerBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Datepicker/DatepickerHeader.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Datepicker/DatepickerTable.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Datepicker/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Datepicker/useDatepicker.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/Dialog.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/Dialog.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogActions.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogActions.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogActivityLog.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogAttachments.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogAttachments.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogByline.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogBylline.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogContent.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogContent.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogDescription.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogHeading.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogHistory.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogHistory.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogHistoryDetails.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogHistoryItem.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogLabel.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogList.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogList.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogListGroup.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogListItem.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogListItem.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogMetadata.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogMetadata.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogSection.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogSeenBy.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogSeenBy.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogSelect.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogStatus.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogStatus.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogTimeline.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogTimelineItem.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogTouchedBy.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogTouchedBy.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogTransmissions.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DialogTransmissions.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DraftDialog.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/DraftDialog.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dialog/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dropdown/Backdrop.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dropdown/DrawerBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dropdown/DrawerBody.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dropdown/DrawerButton.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dropdown/DrawerFooter.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dropdown/DrawerHeader.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dropdown/DrawerOrDropdown.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dropdown/DropdownBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Dropdown/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Footer/Footer.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Footer/Footer.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Footer/FooterAddress.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Footer/FooterBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Footer/FooterLogo.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Footer/FooterMenu.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Footer/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/GlobalMenu/AccountButton.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/GlobalMenu/AccountMenu.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/GlobalMenu/AccountMenu.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/GlobalMenu/BackButton.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/GlobalMenu/GlobalMenu.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/GlobalMenu/GlobalMenu.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/GlobalMenu/GlobalMenuBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/GlobalMenu/LogoutButton.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/GlobalMenu/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Header/DigdirLogomark.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Header/Header.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Header/Header.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Header/HeaderBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Header/HeaderButton.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Header/HeaderButton.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Header/HeaderLogo.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Header/HeaderLogo.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Header/HeaderMenu.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Header/HeaderSearch.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Header/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/CheckboxCheckedIcon.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/CheckboxIcon.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/CheckboxIcon.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/CheckboxUncheckedIcon.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/Icon.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/Icon.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/ProgressIcon.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/ProgressIcon.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/RadioCheckedIcon.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/RadioIcon.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/RadioIcon.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/RadioUncheckedIcon.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/SvgIcon.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/iconsMap.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Icon/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Layout/Layout.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Layout/Layout.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Layout/LayoutBase.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Layout/LayoutBody.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Layout/LayoutBody.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Layout/LayoutContent.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Layout/LayoutContent.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Layout/LayoutSidebar.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Layout/LayoutSidebar.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Layout/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/LayoutAction/ActionFooter.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/LayoutAction/ActionFooter.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/LayoutAction/ActionHeader.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/LayoutAction/ActionHeader.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/LayoutAction/ActionMenu.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/LayoutAction/ActionMenu.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/LayoutAction/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/List/List.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/List/List.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/List/ListBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/List/ListItem.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/List/ListItem.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/List/ListItemBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/List/ListItemHeader.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/List/ListItemLabel.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/List/ListItemLink.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/List/ListItemMedia.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/List/ListItemSelect.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/List/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/Menu.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/Menu.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuHeader.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuInputField.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuItem.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuItem.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuItemLabel.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuItemMedia.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuItems.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuItems.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuOption.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuOption.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuSearch.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/MenuSearch.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Menu/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/MetaBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/MetaItem.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/MetaItem.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/MetaItemBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/MetaItemLabel.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/MetaItemMedia.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/MetaList.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/MetaList.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/MetaProgress.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/MetaProgress.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/MetaTimestamp.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/MetaTimestamp.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Meta/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Page/PageBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Page/PageHeader.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Page/PageHeader.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/ResourceList/ResourceList.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/ResourceList/ResourceList.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/ResourceList/ResourceListItem.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/ResourceList/ResourceListItem.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/ResourceList/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/RootProvider/RootProvider.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/RootProvider/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Searchbar/SearchField.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Searchbar/Searchbar.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Searchbar/SearchbarBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Searchbar/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Skeleton/Skeleton.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Skeleton/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Snackbar/Snackbar.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Snackbar/Snackbar.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Snackbar/SnackbarBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Snackbar/SnackbarLabel.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Snackbar/SnackbarMedia.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Snackbar/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Timeline/Timeline.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Timeline/Timeline.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Timeline/TimelineBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Timeline/TimelineSection.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Timeline/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/Toolbar.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/Toolbar.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarAccountMenu.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarAdd.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarAdd.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarButton.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarButton.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarDate.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarDaterange.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarDaterange.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarFilter.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarFilter.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarFilterBase.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarMenu.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarMenu.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarOptions.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarOptions.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarSearch.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/ToolbarSearch.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Toolbar/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Transmission/TransmissionItem.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Transmission/TransmissionItem.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Transmission/TransmissionList.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Transmission/TransmissionList.stories.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Transmission/TransmissionType.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Transmission/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/components/Typography/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/hooks/index.d.ts +0 -0
- /package/dist/{lib → types/lib}/hooks/useClickOutside.d.ts +0 -0
- /package/dist/{lib → types/lib}/hooks/useEnterKey.d.ts +0 -0
- /package/dist/{lib → types/lib}/hooks/useEscapeKey.d.ts +0 -0
- /package/dist/{lib → types/lib}/hooks/useMenu.d.ts +0 -0
- /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,
|
|
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;
|
|
@@ -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?:
|
|
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: ({
|
|
6
|
+
export declare const Article: ({ children, ...props }: ArticleProps) => 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:
|
|
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;
|
|
@@ -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;
|
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
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] =
|
|
7
|
+
const [t, n] = u(""), p = (s) => {
|
|
15
8
|
n(s.target.value);
|
|
16
|
-
},
|
|
9
|
+
}, i = [
|
|
17
10
|
{
|
|
18
11
|
type: "scope",
|
|
19
12
|
groupId: "1",
|
|
20
13
|
id: "inbox",
|
|
21
14
|
href: "#",
|
|
22
|
-
label: t ? () => /* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
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__ */
|
|
33
|
-
/* @__PURE__ */
|
|
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())) : [],
|
|
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: [...
|
|
49
|
+
items: [...i, ...o]
|
|
57
50
|
};
|
|
58
51
|
return {
|
|
59
52
|
name: e,
|
|
60
53
|
placeholder: r,
|
|
61
54
|
value: t,
|
|
62
|
-
onChange:
|
|
55
|
+
onChange: p,
|
|
63
56
|
onClear: () => n(""),
|
|
64
|
-
autocomplete:
|
|
57
|
+
autocomplete: l
|
|
65
58
|
};
|
|
66
|
-
},
|
|
67
|
-
const [t, n] =
|
|
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: (
|
|
73
|
-
const o = e == null ? void 0 : e.find((
|
|
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
|
-
|
|
80
|
-
|
|
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.
|
|
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
|
}
|