@altinn/altinn-components 0.27.1 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Checkmark-RgzvRNxP.js → Checkmark-D17Nyv_u.js} +1 -1
- package/dist/{ChevronRight-DUaHaWi-.js → ChevronRight-BbelnTke.js} +1 -1
- package/dist/{ChevronDown-CRAwzuD3.js → ChevronUp-DR4Lz2Jb.js} +22 -3
- package/dist/{CircleFill-IZdiBc_K.js → CircleFill-BkDF4Wm0.js} +1 -1
- package/dist/{ClockDashed-PQgzLSPC.js → DialogActivityLog-BoPREh7Y.js} +25 -13
- package/dist/{Eye-CMPIjkcy.js → Eye-BuhFHkaK.js} +1 -1
- package/dist/{FieldsetLegend-Dwb3U0vQ.js → FieldsetLegend-CiZWWPgY.js} +1 -1
- package/dist/{Label-DjSEhgyW.js → Label-9elsbqMH.js} +1 -1
- package/dist/{MagnifyingGlass-DWIcpwS4.js → MagnifyingGlass-3Ln1MufI.js} +1 -1
- package/dist/{Paragraph-CFjOkbXa.js → Paragraph-Bm-eoPYv.js} +1 -1
- package/dist/{XMark-Bv1I87Ev.js → XMark-DIqxCTTQ.js} +1 -1
- package/dist/altinn-ds-overrides.css +15 -1
- package/dist/altinn-theme.css +5 -1
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/AvatarGroup.css +1 -1
- package/dist/assets/Byline.css +1 -1
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/Divider.css +1 -0
- package/dist/assets/Flex.css +1 -1
- package/dist/assets/Grid.css +1 -1
- package/dist/assets/HeaderButton.css +1 -1
- package/dist/assets/Heading.css +1 -1
- package/dist/assets/Icon.css +1 -1
- package/dist/assets/IconOrAvatar.css +1 -0
- package/dist/assets/ListItem.css +1 -0
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/ListItemIcon.css +1 -1
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/ListItemLink.css +1 -1
- package/dist/assets/ListItemSelect.css +1 -1
- package/dist/assets/MenuItemIcon.css +1 -1
- package/dist/assets/MetaItemIcon.css +1 -0
- package/dist/assets/SearchItem.css +1 -0
- package/dist/assets/SettingsItem.css +1 -0
- package/dist/assets/TimelineBase.css +1 -1
- package/dist/assets/TimelineIcon.css +1 -0
- package/dist/components/AccessAreaList/AccessAreaList.js +2 -2
- package/dist/components/AccessAreaList/AccessAreaListItem.js +26 -25
- package/dist/components/AccessPackageList/AccessPackageList.js +3 -3
- package/dist/components/AccessPackageList/AccessPackageListItem.js +30 -11
- package/dist/components/ActivityLog/ActivityLog.js +14 -0
- package/dist/components/ActivityLog/ActivityLogItem.js +13 -0
- package/dist/components/ActivityLog/index.js +6 -0
- package/dist/components/Article/Article.js +11 -0
- package/dist/components/Article/ArticleContact.js +25 -0
- package/dist/components/Article/ArticleHeader.js +15 -0
- package/dist/components/Article/index.js +8 -0
- package/dist/components/Attachment/AttachmentLink.js +2 -2
- package/dist/components/Avatar/Avatar.js +47 -45
- package/dist/components/Avatar/AvatarGroup.js +26 -31
- package/dist/components/Avatar/index.js +6 -4
- package/dist/components/Bookmarks/BookmarksListItem.js +2 -2
- package/dist/components/Bookmarks/BookmarksSection.js +2 -2
- package/dist/components/Bookmarks/EditableBookmark.js +4 -4
- package/dist/components/Button/ButtonIcon.js +1 -1
- package/dist/components/Button/ComboButton.js +1 -2
- package/dist/components/Byline/Byline.js +18 -16
- package/dist/components/ContextMenu/ContextMenu.js +16 -17
- package/dist/components/{Page → Dashboard}/DashboardCard.js +19 -19
- package/dist/components/Dashboard/DashboardHeader.js +25 -0
- package/dist/components/Dashboard/DashboardIcon.js +26 -0
- package/dist/components/Dashboard/index.js +8 -0
- package/dist/components/Datepicker/DatepickerHeader.js +3 -3
- package/dist/components/Datepicker/DatepickerTable.js +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/DialogActions.js +18 -19
- package/dist/components/Dialog/DialogActivity.js +10 -10
- package/dist/components/Dialog/DialogActivityLog.js +5 -11
- package/dist/components/Dialog/DialogAttachments.js +4 -4
- package/dist/components/Dialog/DialogBody.js +13 -13
- package/dist/components/Dialog/DialogByline.js +3 -3
- package/dist/components/Dialog/DialogContact.js +1 -1
- package/dist/components/Dialog/DialogHeader.js +1 -1
- package/dist/components/Dialog/DialogHeading.js +1 -1
- package/dist/components/Dialog/DialogHistory.js +1 -1
- package/dist/components/Dialog/DialogHistoryItem.js +10 -10
- package/dist/components/Dialog/DialogHistorySegment.js +2 -2
- package/dist/components/Dialog/DialogLayout.js +1 -1
- package/dist/components/Dialog/DialogList.js +1 -1
- package/dist/components/Dialog/DialogListGroup.js +8 -8
- package/dist/components/Dialog/DialogListItem.js +93 -95
- package/dist/components/Dialog/DialogMetadata.js +97 -63
- package/dist/components/Dialog/DialogSection.js +1 -1
- package/dist/components/Dialog/DialogSeenBy.js +4 -4
- package/dist/components/Dialog/DialogSelect.js +1 -1
- package/dist/components/Dialog/DialogStatus.js +3 -3
- package/dist/components/Dialog/DialogTabs.js +1 -1
- package/dist/components/Dialog/SeenByLog.js +10 -10
- package/dist/components/Dialog/index.js +7 -7
- package/dist/components/Divider/Divider.js +7 -0
- package/dist/components/Divider/index.js +4 -0
- package/dist/components/Dropdown/DrawerButton.js +1 -1
- package/dist/components/Dropdown/DrawerHeader.js +2 -2
- package/dist/components/Dropdown/DrawerOrDropdown.js +1 -1
- package/dist/components/DsComponents/index.js +4 -4
- package/dist/components/Forms/Checkbox.js +1 -1
- package/dist/components/Forms/CheckboxOptions.js +1 -1
- package/dist/components/Forms/Field.js +13 -4
- package/dist/components/Forms/FieldBase.js +1 -1
- package/dist/components/Forms/Fieldset.js +2 -2
- package/dist/components/Forms/FieldsetBase.js +1 -1
- package/dist/components/Forms/Label.js +1 -1
- package/dist/components/Forms/Legend.js +1 -1
- package/dist/components/Forms/Radio.js +1 -1
- package/dist/components/Forms/RadioOptions.js +1 -1
- package/dist/components/Forms/Select.js +1 -1
- package/dist/components/Forms/SelectField.js +1 -1
- package/dist/components/Forms/Switch.js +9 -9
- package/dist/components/Forms/SwitchOptions.js +1 -1
- package/dist/components/Forms/TextField.js +1 -1
- package/dist/components/Forms/TextareaField.js +1 -1
- package/dist/components/GlobalMenu/AccountButton.js +15 -17
- package/dist/components/GlobalMenu/AccountMenu.js +22 -24
- package/dist/components/GlobalMenu/BackButton.js +26 -7
- package/dist/components/GlobalMenu/EndUserLabel.js +30 -10
- package/dist/components/GlobalMenu/GlobalMenu.js +15 -15
- package/dist/components/GlobalMenu/GlobalMenuBase.js +7 -9
- package/dist/components/GlobalMenu/LogoutButton.js +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/dist/components/Header/HeaderBase.js +1 -1
- package/dist/components/Header/HeaderButton.js +62 -43
- package/dist/components/Header/HeaderLogo.js +11 -12
- package/dist/components/Header/LocaleButton.js +16 -17
- package/dist/components/Header/LocaleSwitcher.js +1 -1
- package/dist/components/Icon/Icon.js +29 -17
- package/dist/components/Icon/IconOrAvatar.js +23 -15
- package/dist/components/Icon/index.js +11 -10
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/LayoutAction/ActionHeader.js +2 -2
- package/dist/components/LayoutAction/LayoutAction.js +1 -1
- package/dist/components/List/List.js +7 -16
- package/dist/components/List/ListBase.js +5 -5
- package/dist/components/List/ListItem.js +55 -60
- package/dist/components/List/ListItemBase.js +35 -45
- package/dist/components/List/ListItemControls.js +6 -8
- package/dist/components/List/ListItemHeader.js +76 -103
- package/dist/components/List/ListItemIcon.js +22 -10
- package/dist/components/List/ListItemLabel.js +48 -21
- package/dist/components/List/ListItemLink.js +28 -30
- package/dist/components/List/ListItemSelect.js +12 -12
- package/dist/components/List/index.js +4 -6
- package/dist/components/Menu/MenuInputField.js +23 -26
- package/dist/components/Menu/MenuItem.js +39 -58
- package/dist/components/Menu/MenuItemBase.js +1 -1
- package/dist/components/Menu/MenuItemIcon.js +21 -21
- package/dist/components/Menu/MenuItems.js +1 -1
- package/dist/components/Menu/MenuItemsVirtual.js +8 -8
- package/dist/components/Menu/MenuOption.js +1 -1
- package/dist/components/Menu/MenuSearch.js +3 -3
- package/dist/components/Metadata/MetaItem.js +24 -0
- package/dist/components/Metadata/MetaItemIcon.js +18 -0
- package/dist/components/Metadata/MetaProgress.js +16 -0
- package/dist/components/Metadata/MetaTimestamp.js +23 -0
- package/dist/components/{Meta → Metadata}/Metadata.js +1 -1
- package/dist/components/Metadata/index.js +19 -0
- package/dist/components/Page/AccordionSection.js +1 -1
- package/dist/components/Page/Breadcrumbs.js +36 -17
- package/dist/components/Page/ContactButtons.js +1 -1
- package/dist/components/Page/ContactSection.js +1 -1
- package/dist/components/Page/Flex.js +37 -35
- package/dist/components/Page/Grid.js +5 -5
- package/dist/components/Page/PageDetails.js +1 -1
- package/dist/components/Page/PageHeader.js +30 -32
- package/dist/components/Page/PageMenu.js +1 -1
- package/dist/components/Page/PageNav.js +38 -20
- package/dist/components/Page/PageTabs.js +1 -1
- package/dist/components/Page/Section.js +1 -1
- package/dist/components/Page/index.js +20 -26
- package/dist/components/Profile/AccountList.js +4 -4
- package/dist/components/Profile/AccountListItem.js +47 -49
- package/dist/components/ResourceList/ResourceList.js +3 -3
- package/dist/components/ResourceList/ResourceListItem.js +6 -6
- package/dist/components/Search/SearchItem.js +20 -0
- package/dist/components/Search/index.js +2 -21
- package/dist/components/{Search → Searchbar}/Autocomplete.js +8 -8
- package/dist/components/Searchbar/AutocompleteBase.js +11 -0
- package/dist/components/{Search → Searchbar}/AutocompleteItem.js +28 -26
- package/dist/components/{Search → Searchbar}/SearchField.js +2 -2
- package/dist/components/Searchbar/index.js +23 -0
- package/dist/components/Settings/Settings.js +20 -0
- package/dist/components/Settings/SettingsItem.js +37 -0
- package/dist/components/Settings/index.js +6 -0
- package/dist/components/Skeleton/Skeleton.js +12 -13
- package/dist/components/Snackbar/SnackbarItem.js +5 -5
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Timeline/TimelineActivity.js +2 -2
- package/dist/components/Timeline/TimelineBase.js +20 -23
- package/dist/components/Timeline/TimelineFooter.js +2 -2
- package/dist/components/Timeline/TimelineHeader.js +13 -21
- package/dist/components/Timeline/TimelineIcon.js +20 -0
- package/dist/components/Timeline/TimelineLink.js +1 -1
- package/dist/components/Timeline/TimelineSection.js +1 -1
- package/dist/components/Timeline/TimelineSegment.js +2 -2
- package/dist/components/Timeline/index.js +6 -4
- package/dist/components/Toolbar/Toolbar.js +25 -25
- package/dist/components/Toolbar/ToolbarAccountMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarAdd.js +1 -1
- package/dist/components/Toolbar/ToolbarButton.js +76 -59
- package/dist/components/Toolbar/ToolbarDaterange.js +1 -1
- package/dist/components/Toolbar/ToolbarFilter.js +1 -1
- package/dist/components/Toolbar/ToolbarMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarOptions.js +1 -1
- package/dist/components/Toolbar/ToolbarSearch.js +3 -3
- package/dist/components/Transmission/Transmission.js +45 -43
- package/dist/components/Transmission/TransmissionList.js +9 -9
- package/dist/components/Typography/Heading.js +28 -22
- package/dist/components/Typography/Typography.js +14 -14
- package/dist/components/index.js +410 -389
- package/dist/{index-Bq6w9CqA.js → index-CnWc2FNH.js} +6 -6
- package/dist/{index-DyDqjche.js → index-D-VWMqlv.js} +129 -123
- package/dist/{index-B7UjMwQm.js → index-D3Rt9ate.js} +17 -17
- package/dist/index-D8Pn8SCu.js +78 -0
- package/dist/index.js +416 -395
- package/dist/types/lib/components/AccessAreaList/AccessAreaListItem.d.ts +1 -1
- package/dist/types/lib/components/AccessPackageList/AccessPackageList.d.ts +2 -2
- package/dist/types/lib/components/AccessPackageList/AccessPackageListItem.d.ts +1 -1
- package/dist/types/lib/components/ActivityLog/ActivityLog.d.ts +5 -0
- package/dist/types/lib/components/ActivityLog/ActivityLog.stories.d.ts +8 -0
- package/dist/types/lib/components/ActivityLog/ActivityLogItem.d.ts +8 -0
- package/dist/types/lib/components/ActivityLog/index.d.ts +2 -0
- package/dist/types/lib/components/Article/Article.d.ts +7 -0
- package/dist/types/lib/components/Article/Article.stories.d.ts +19 -0
- package/dist/types/lib/components/Article/ArticleContact.d.ts +12 -0
- package/dist/types/lib/components/{Profile/AccountList.stories.d.ts → Article/ArticleContact.stories.d.ts} +3 -2
- package/dist/types/lib/components/Article/ArticleHeader.d.ts +7 -0
- package/dist/types/lib/components/{Page → Article}/ArticleHeader.stories.d.ts +2 -2
- package/dist/types/lib/components/Article/index.d.ts +3 -0
- package/dist/types/lib/components/Avatar/Avatar.d.ts +5 -2
- package/dist/types/lib/components/Avatar/AvatarGroup.d.ts +5 -1
- package/dist/types/lib/components/Avatar/AvatarGroup.stories.d.ts +7 -3
- package/dist/types/lib/components/Avatar/Examples.stories.d.ts +1 -1
- package/dist/types/lib/components/Avatar/avatar.stories.d.ts +10 -2
- package/dist/types/lib/components/Button/ComboButton.stories.d.ts +10 -0
- package/dist/types/lib/components/Button/IconButton.stories.d.ts +7 -0
- package/dist/types/lib/components/ContextMenu/ContextMenu.stories.d.ts +7 -0
- package/dist/types/lib/components/{Page → Dashboard}/DashboardCard.d.ts +2 -2
- package/dist/types/lib/components/Dashboard/DashboardIcon.d.ts +10 -0
- package/dist/types/lib/components/Dashboard/index.d.ts +3 -0
- package/dist/types/lib/components/Dialog/DialogActivity.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogActivityLog.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogAttachments.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHistorySegment.d.ts +1 -2
- package/dist/types/lib/components/Dialog/DialogList.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +3 -5
- package/dist/types/lib/components/Dialog/DialogSeenBy.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogStatus.d.ts +1 -1
- package/dist/types/lib/components/Divider/Divider.d.ts +8 -0
- package/dist/types/lib/components/Divider/index.d.ts +1 -0
- package/dist/types/lib/components/Forms/Field.d.ts +3 -2
- package/dist/types/lib/components/Forms/Switch.d.ts +2 -1
- package/dist/types/lib/components/Forms/Switch.stories.d.ts +1 -1
- package/dist/types/lib/components/Header/Header.d.ts +1 -1
- package/dist/types/lib/components/Icon/Icon.d.ts +6 -1
- package/dist/types/lib/components/Icon/Icon.stories.d.ts +3 -1
- package/dist/types/lib/components/Icon/IconOrAvatar.d.ts +2 -1
- package/dist/types/lib/components/LayoutAction/LayoutAction.stories.d.ts +5 -0
- package/dist/types/lib/components/List/List.d.ts +10 -6
- package/dist/types/lib/components/List/List.stories.d.ts +6 -12
- package/dist/types/lib/components/List/ListBase.d.ts +6 -5
- package/dist/types/lib/components/List/ListItem.d.ts +14 -18
- package/dist/types/lib/components/List/ListItem.stories.d.ts +6 -4
- package/dist/types/lib/components/List/ListItemBase.d.ts +8 -12
- package/dist/types/lib/components/List/ListItemHeader.d.ts +6 -14
- package/dist/types/lib/components/List/ListItemIcon.d.ts +7 -4
- package/dist/types/lib/components/List/ListItemLabel.d.ts +6 -6
- package/dist/types/lib/components/List/ListItemLink.d.ts +1 -3
- package/dist/types/lib/components/List/ListItemSelect.d.ts +4 -10
- package/dist/types/lib/components/List/Specimens.stories.d.ts +6 -3
- package/dist/types/lib/components/List/index.d.ts +0 -1
- package/dist/types/lib/components/Menu/MenuItem.d.ts +5 -5
- package/dist/types/lib/components/Menu/MenuItemBase.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuItemIcon.d.ts +9 -7
- package/dist/types/lib/components/{Meta → Metadata}/MetaItem.d.ts +1 -1
- package/dist/types/lib/components/{Meta/MetaItemMedia.d.ts → Metadata/MetaItemIcon.d.ts} +2 -2
- package/dist/types/lib/components/{Meta → Metadata}/MetaProgress.d.ts +1 -1
- package/dist/types/lib/components/{Meta → Metadata}/MetaTimestamp.d.ts +1 -1
- package/dist/types/lib/components/Metadata/Metadata.stories.d.ts +7 -0
- package/dist/types/lib/components/{Meta → Metadata}/index.d.ts +1 -1
- package/dist/types/lib/components/Page/ContactSection.stories.d.ts +7 -0
- package/dist/types/lib/components/Page/Flex.d.ts +3 -1
- package/dist/types/lib/components/Page/Grid.d.ts +1 -1
- package/dist/types/lib/components/Page/PageHeader.d.ts +1 -1
- package/dist/types/lib/components/Page/PageHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/Page/PageMenu.stories.d.ts +7 -0
- package/dist/types/lib/components/Page/index.d.ts +0 -3
- package/dist/types/lib/components/Profile/AccountListItem.d.ts +2 -1
- package/dist/types/lib/components/Profile/AccountListItem.stories.d.ts +57 -0
- package/dist/types/lib/components/ResourceList/ResourceList.d.ts +2 -2
- package/dist/types/lib/components/ResourceList/ResourceList.stories.d.ts +10 -3
- package/dist/types/lib/components/Search/SearchItem.d.ts +14 -0
- package/dist/types/lib/components/Search/index.d.ts +1 -10
- package/dist/types/lib/components/{Search → Searchbar}/Autocomplete.d.ts +1 -1
- package/dist/types/lib/components/{Search → Searchbar}/Searchbar.stories.d.ts +0 -1
- package/dist/types/lib/components/Searchbar/index.d.ts +10 -0
- package/dist/types/lib/components/Settings/Settings.d.ts +9 -0
- package/dist/types/lib/components/Settings/Settings.stories.d.ts +14 -0
- package/dist/types/lib/components/Settings/SettingsItem.d.ts +12 -0
- package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +51 -0
- package/dist/types/lib/components/Settings/index.d.ts +2 -0
- package/dist/types/lib/components/Timeline/TimelineActivity.stories.d.ts +0 -1
- package/dist/types/lib/components/Timeline/TimelineBase.d.ts +5 -5
- package/dist/types/lib/components/Timeline/TimelineHeader.d.ts +3 -5
- package/dist/types/lib/components/Timeline/TimelineHeader.stories.d.ts +2 -2
- package/dist/types/lib/components/Timeline/TimelineIcon.d.ts +11 -0
- package/dist/types/lib/components/Timeline/TimelineSegment.d.ts +2 -2
- package/dist/types/lib/components/Timeline/index.d.ts +1 -0
- package/dist/types/lib/components/Transmission/Transmission.d.ts +1 -1
- package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +6 -9
- package/dist/types/lib/components/Typography/Heading.d.ts +9 -5
- package/dist/types/lib/components/Typography/Heading.stories.d.ts +1 -1
- package/dist/types/lib/components/Typography/Typography.d.ts +3 -3
- package/dist/types/lib/components/Typography/Typography.stories.d.ts +1 -1
- package/dist/types/lib/components/index.d.ts +7 -1
- package/dist/types/lib/stories/Admin/Settings.stories.d.ts +10 -0
- package/dist/types/lib/stories/Admin.stories.d.ts +18 -0
- package/dist/types/lib/stories/Inbox.stories.d.ts +20 -0
- package/dist/types/lib/stories/Portal.stories.d.ts +14 -0
- package/dist/types/lib/stories/Profile/Accounts.stories.d.ts +19 -0
- package/dist/types/lib/stories/Profile/Settings.stories.d.ts +16 -0
- package/dist/types/lib/stories/Profile.stories.d.ts +16 -0
- package/dist/types/lib/types/color.d.ts +2 -2
- package/dist/useId-BVFxCjkq.js +16 -0
- package/dist/useMergeRefs-DOnoWyUH.js +29 -0
- package/dist/usePagination-D247OF6_.js +3838 -0
- package/package.json +33 -33
- package/dist/ArrowLeft-C91mClJx.js +0 -25
- package/dist/ArrowRedo-BYz1MHxK.js +0 -25
- package/dist/ArrowRight-OLgmLkGy.js +0 -25
- package/dist/Bookmark-85oKfr9m.js +0 -25
- package/dist/Buildings2-DO6ftvL7.js +0 -25
- package/dist/ChevronUp-H8Nuww4h.js +0 -25
- package/dist/DocPencil-CVby07uu.js +0 -25
- package/dist/Handshake-Bz9FuL-x.js +0 -25
- package/dist/Inbox-z7qqLz8Y.js +0 -25
- package/dist/Package-ASRzCHA7.js +0 -25
- package/dist/PadlockLocked-xJsxvaHH.js +0 -25
- package/dist/PersonCircle-DMwECpgW.js +0 -25
- package/dist/Plus-B6MBOAcH.js +0 -25
- package/dist/Trash-DMlYh49i.js +0 -44
- package/dist/assets/MetaItemMedia.css +0 -1
- package/dist/assets/NotificationsItem.css +0 -1
- package/dist/companyAccess-DVKbpCnw.js +0 -626
- package/dist/components/Meta/MetaItem.js +0 -19
- package/dist/components/Meta/MetaItemMedia.js +0 -17
- package/dist/components/Meta/MetaProgress.js +0 -11
- package/dist/components/Meta/MetaTimestamp.js +0 -18
- package/dist/components/Meta/index.js +0 -19
- package/dist/components/Page/ArticleHeader.js +0 -16
- package/dist/components/Page/DashboardHeader.js +0 -25
- package/dist/components/Search/AutocompleteBase.js +0 -11
- package/dist/floating-ui.react-DpzNAs2N.js +0 -2835
- package/dist/globalMenu-CtokaeGw.js +0 -124
- package/dist/index-C8BS_2GY.js +0 -64
- package/dist/types/lib/components/AccessAreaList/AccessAreaListItem.stories.d.ts +0 -40
- package/dist/types/lib/components/List/ListBase.stories.d.ts +0 -12
- package/dist/types/lib/components/List/MultilevelList.stories.d.ts +0 -5
- package/dist/types/lib/components/List/Patterns.stories.d.ts +0 -8
- package/dist/types/lib/components/Page/ArticleHeader.d.ts +0 -8
- package/dist/types/lib/components/Page/Examples.stories.d.ts +0 -27
- package/dist/useId-CsCRkvK3.js +0 -16
- package/dist/usePagination-B4GfH2GQ.js +0 -1026
- /package/dist/components/{Meta → Metadata}/MetaBase.js +0 -0
- /package/dist/components/{Meta → Metadata}/MetaItemBase.js +0 -0
- /package/dist/components/{Meta → Metadata}/MetaItemLabel.js +0 -0
- /package/dist/components/{Search → Searchbar}/AutocompleteGroup.js +0 -0
- /package/dist/components/{Search → Searchbar}/QueryLabel.js +0 -0
- /package/dist/components/{Search → Searchbar}/ScopeListItem.js +0 -0
- /package/dist/components/{Search → Searchbar}/Searchbar.js +0 -0
- /package/dist/components/{Search → Searchbar}/SearchbarBase.js +0 -0
- /package/dist/components/{Search → Searchbar}/SuggestListItem.js +0 -0
- /package/dist/types/lib/components/{Page → Dashboard}/DashboardHeader.d.ts +0 -0
- /package/dist/types/lib/components/{Page → Dashboard}/DashboardHeader.stories.d.ts +0 -0
- /package/dist/types/lib/components/{Meta → Metadata}/MetaBase.d.ts +0 -0
- /package/dist/types/lib/components/{Meta → Metadata}/MetaItem.stories.d.ts +0 -0
- /package/dist/types/lib/components/{Meta → Metadata}/MetaItemBase.d.ts +0 -0
- /package/dist/types/lib/components/{Meta → Metadata}/MetaItemLabel.d.ts +0 -0
- /package/dist/types/lib/components/{Meta → Metadata}/MetaProgress.stories.d.ts +0 -0
- /package/dist/types/lib/components/{Meta → Metadata}/MetaTimestamp.stories.d.ts +0 -0
- /package/dist/types/lib/components/{Meta → Metadata}/Metadata.d.ts +0 -0
- /package/dist/types/lib/components/{Search → Searchbar}/Autocomplete.stories.d.ts +0 -0
- /package/dist/types/lib/components/{Search → Searchbar}/AutocompleteBase.d.ts +0 -0
- /package/dist/types/lib/components/{Search → Searchbar}/AutocompleteGroup.d.ts +0 -0
- /package/dist/types/lib/components/{Search → Searchbar}/AutocompleteItem.d.ts +0 -0
- /package/dist/types/lib/components/{Search → Searchbar}/QueryLabel.d.ts +0 -0
- /package/dist/types/lib/components/{Search → Searchbar}/ScopeListItem.d.ts +0 -0
- /package/dist/types/lib/components/{Search → Searchbar}/SearchField.d.ts +0 -0
- /package/dist/types/lib/components/{Search → Searchbar}/Searchbar.d.ts +0 -0
- /package/dist/types/lib/components/{Search → Searchbar}/SearchbarBase.d.ts +0 -0
- /package/dist/types/lib/components/{Search → Searchbar}/SuggestListItem.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Color } from '../../types';
|
|
2
2
|
import { SvgElement } from '../Icon';
|
|
3
3
|
import { ListItemProps } from '../List';
|
|
4
|
-
interface AccessAreaListItemDefaultProps extends Pick<ListItemProps, 'size' | 'onClick' | 'expanded' | 'loading'
|
|
4
|
+
interface AccessAreaListItemDefaultProps extends Pick<ListItemProps, 'size' | 'onClick' | 'expanded' | 'loading'> {
|
|
5
5
|
/** Id of the item */
|
|
6
6
|
id: string;
|
|
7
7
|
/** Name of the Access Area */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ListProps } from '../List';
|
|
2
2
|
import { AccessPackageListItemProps } from './AccessPackageListItem';
|
|
3
|
-
export interface AccessPackageListProps extends Pick<
|
|
3
|
+
export interface AccessPackageListProps extends Pick<ListProps, 'spacing'> {
|
|
4
4
|
items: AccessPackageListItemProps[];
|
|
5
5
|
}
|
|
6
6
|
export declare const AccessPackageList: ({ items, spacing, ...props }: AccessPackageListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ListItemProps } from '../List';
|
|
2
|
-
export interface AccessPackageListItemProps extends Pick<ListItemProps, 'color' | 'onClick' | 'as' | 'title' | 'description' | 'size' | 'controls' | 'loading'
|
|
2
|
+
export interface AccessPackageListItemProps extends Pick<ListItemProps, 'color' | 'onClick' | 'as' | 'title' | 'description' | 'size' | 'controls' | 'loading'> {
|
|
3
3
|
id: string;
|
|
4
4
|
}
|
|
5
5
|
export declare const AccessPackageListItem: ({ as, title, color, ...props }: AccessPackageListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ActivityLogItemProps {
|
|
3
|
+
id: string;
|
|
4
|
+
byline?: string;
|
|
5
|
+
datetime?: string;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const ActivityLogItem: ({ byline, datetime, children }: ActivityLogItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
parameters: {};
|
|
5
|
+
args: {
|
|
6
|
+
breadcrumbs: {
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
title: string;
|
|
10
|
+
owner: import('..').AvatarProps;
|
|
11
|
+
sections: {
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
|
+
children: string;
|
|
15
|
+
}[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
export declare const Service: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Color, ContactButtonsProps, Theme } from '..';
|
|
3
|
+
export interface ArticleContactProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
items: ContactButtonsProps['items'];
|
|
9
|
+
color?: Color;
|
|
10
|
+
theme?: Theme;
|
|
11
|
+
}
|
|
12
|
+
export declare const ArticleContact: ({ color, theme, title, description, children, items, }: ArticleContactProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ items }: import('./
|
|
4
|
+
component: ({ color, theme, title, description, children, items, }: import('./ArticleContact').ArticleContactProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
8
|
-
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
9
10
|
};
|
|
10
11
|
};
|
|
11
12
|
export default meta;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SectionProps } from '..';
|
|
3
|
+
export interface ArticleHeaderProps extends SectionProps {
|
|
4
|
+
title?: ReactNode;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const ArticleHeader: ({ title, children }: ArticleHeaderProps) => 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: ({ title,
|
|
4
|
+
component: ({ title, children }: import('./ArticleHeader').ArticleHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -11,4 +11,4 @@ declare const meta: {
|
|
|
11
11
|
export default meta;
|
|
12
12
|
type Story = StoryObj<typeof meta>;
|
|
13
13
|
export declare const Default: Story;
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const WithByline: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import { CSSProperties, ReactElement } from 'react';
|
|
2
2
|
export type AvatarType = 'company' | 'person' | 'custom';
|
|
3
3
|
export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
/**
|
|
@@ -21,10 +21,13 @@ export interface AvatarProps {
|
|
|
21
21
|
outline?: boolean;
|
|
22
22
|
/** Custom label to display inside the avatar. */
|
|
23
23
|
customLabel?: string;
|
|
24
|
+
/** Custom styles. */
|
|
25
|
+
style?: CSSProperties;
|
|
24
26
|
/** Whether the avatar is loading. */
|
|
25
27
|
loading?: boolean;
|
|
26
28
|
}
|
|
29
|
+
export declare const isAvatarProps: (icon: unknown) => icon is AvatarProps;
|
|
27
30
|
/**
|
|
28
31
|
* Avatar component to display user or company avatars with various customization options.
|
|
29
32
|
*/
|
|
30
|
-
export declare const Avatar: ({ type, size, name, outline, imageUrl, imageUrlAlt, customLabel, loading, className, }: AvatarProps) => ReactElement;
|
|
33
|
+
export declare const Avatar: ({ type, size, name, outline, imageUrl, imageUrlAlt, customLabel, loading, className, style, }: AvatarProps) => ReactElement;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
1
2
|
import { AvatarProps, AvatarSize, AvatarType } from '.';
|
|
2
3
|
/**
|
|
3
4
|
* Props for the AvatarGroup components.
|
|
@@ -13,8 +14,11 @@ export interface AvatarGroupProps {
|
|
|
13
14
|
size?: AvatarSize;
|
|
14
15
|
/** Additional CSS class for styling the avatar group container. */
|
|
15
16
|
className?: string;
|
|
17
|
+
/** Custom styles. */
|
|
18
|
+
style?: CSSProperties;
|
|
16
19
|
}
|
|
20
|
+
export declare const isAvatarGroupProps: (icon: unknown) => icon is AvatarGroupProps;
|
|
17
21
|
/**
|
|
18
22
|
* Avatar group component for displaying multiple avatars as a group.
|
|
19
23
|
*/
|
|
20
|
-
export declare const AvatarGroup: ({ items, maxItemsCount, defaultType, size, className, }: AvatarGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const AvatarGroup: ({ items, maxItemsCount, defaultType, size, className, style, }: AvatarGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,16 +2,20 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { AvatarGroupProps } from '..';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ items, maxItemsCount, defaultType, size, className, }: AvatarGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: ({ items, maxItemsCount, defaultType, size, className, style, }: AvatarGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
parameters: {
|
|
8
8
|
layout: string;
|
|
9
9
|
};
|
|
10
|
-
args: {
|
|
10
|
+
args: {
|
|
11
|
+
style: {
|
|
12
|
+
fontSize: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
11
15
|
};
|
|
12
16
|
export default meta;
|
|
13
17
|
type Story = StoryObj<typeof meta>;
|
|
14
18
|
export declare const People: Story;
|
|
15
19
|
export declare const Companies: Story;
|
|
16
20
|
export declare const CompanyAndPerson: Story;
|
|
17
|
-
export declare const MaxItemsCount: () => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const MaxItemsCount: (args: AvatarGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const meta: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: ({ type, size, name, outline, imageUrl, imageUrlAlt, customLabel, loading, className, }: import('./Avatar').AvatarProps) => React.ReactElement;
|
|
3
|
+
component: ({ type, size, name, outline, imageUrl, imageUrlAlt, customLabel, loading, className, style, }: import('./Avatar').AvatarProps) => React.ReactElement;
|
|
4
4
|
parameters: {};
|
|
5
5
|
args: {};
|
|
6
6
|
};
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { AvatarProps } from '..';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
|
-
component: ({ type, size, name, outline, imageUrl, imageUrlAlt, customLabel, loading, className, }:
|
|
5
|
+
component: ({ type, size, name, outline, imageUrl, imageUrlAlt, customLabel, loading, className, style, }: AvatarProps) => React.ReactElement;
|
|
5
6
|
tags: string[];
|
|
6
7
|
parameters: {
|
|
7
8
|
layout: string;
|
|
8
9
|
};
|
|
9
10
|
args: {
|
|
11
|
+
style: {
|
|
12
|
+
fontSize: string;
|
|
13
|
+
};
|
|
10
14
|
name: string;
|
|
11
15
|
type: "person";
|
|
12
|
-
size: "xl";
|
|
13
16
|
};
|
|
14
17
|
};
|
|
15
18
|
export default meta;
|
|
@@ -17,3 +20,8 @@ type Story = StoryObj<typeof meta>;
|
|
|
17
20
|
export declare const Person: Story;
|
|
18
21
|
export declare const Company: Story;
|
|
19
22
|
export declare const Logo: Story;
|
|
23
|
+
export declare const Loading: Story;
|
|
24
|
+
export declare const Sizes: ({ type, name, imageUrl }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const People: () => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const Companies: () => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const Logos: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ComboButton } from './ComboButton';
|
|
3
|
+
declare const meta: Meta<typeof ComboButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Solid: Story;
|
|
8
|
+
export declare const Outline: Story;
|
|
9
|
+
export declare const Text: Story;
|
|
10
|
+
export declare const Disabled: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { IconButton, IconButtonProps } from './IconButton';
|
|
3
|
+
declare const meta: Meta<typeof IconButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Sizes: (args: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ContextMenu, ContextMenuProps } from './ContextMenu';
|
|
3
|
+
declare const meta: Meta<typeof ContextMenu>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const MultipleContextMenus: (props: ContextMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DashboardIconProps } from '..';
|
|
3
3
|
export interface DashboardCardProps {
|
|
4
4
|
color?: 'company' | 'person';
|
|
5
5
|
theme?: 'default' | 'tinted';
|
|
6
|
-
icon?:
|
|
6
|
+
icon?: DashboardIconProps;
|
|
7
7
|
title?: ReactNode;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
className?: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AvatarGroupProps, AvatarProps, BadgeProps, IconProps, IconTheme, SvgElement } from '..';
|
|
2
|
+
export type DashboardIconSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export interface DashboardIconProps {
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
size?: DashboardIconSize;
|
|
6
|
+
icon?: IconProps | SvgElement | AvatarProps | AvatarGroupProps;
|
|
7
|
+
theme?: IconTheme;
|
|
8
|
+
badge?: BadgeProps | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare const DashboardIcon: ({ loading, size, icon, theme, badge }: DashboardIconProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { AvatarProps, BadgeProps, Color, SvgElement, TransmissionProps } from '
|
|
2
|
+
import { AvatarProps, BadgeProps, Color, SvgElement, TransmissionProps } from '..';
|
|
3
3
|
export interface DialogActivityBadge {
|
|
4
4
|
label?: string;
|
|
5
5
|
value?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ title, items }: import('./DialogAttachments').DialogAttachmentsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
component: ({ title, items }: import('./DialogAttachments.tsx').DialogAttachmentsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
5
|
tags: string[];
|
|
6
6
|
args: {
|
|
7
7
|
title: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { TransmissionProps } from '
|
|
3
|
-
import { DialogHistoryItemProps } from './DialogHistoryItem.tsx';
|
|
2
|
+
import { DialogHistoryItemProps, TransmissionProps } from '../index.ts';
|
|
4
3
|
export interface DialogHistorySegmentProps extends TransmissionProps {
|
|
5
4
|
items: DialogHistoryItemProps[];
|
|
6
5
|
datetime?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AvatarProps, BadgeProps, Color, DialogSeenByProps, DialogStatusProps, DialogTouchedByActor, ListItemProps
|
|
2
|
-
export type DialogListItemSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
1
|
+
import { AvatarProps, BadgeProps, Color, DialogSeenByProps, DialogStatusProps, DialogTouchedByActor, ListItemProps } from '..';
|
|
2
|
+
export type DialogListItemSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
3
|
export type DialogListItemState = 'normal' | 'trashed' | 'archived';
|
|
4
4
|
export type DialogListItemTheme = 'default' | 'subtle' | 'transparent';
|
|
5
5
|
export interface DialogListItemProps extends ListItemProps {
|
|
@@ -17,8 +17,6 @@ export interface DialogListItemProps extends ListItemProps {
|
|
|
17
17
|
size?: DialogListItemSize;
|
|
18
18
|
/** Custom controls */
|
|
19
19
|
controls?: ListItemProps['controls'];
|
|
20
|
-
/** Select: Use to support batch operations */
|
|
21
|
-
select?: ListItemSelectProps;
|
|
22
20
|
/** Selected: Use to support batch operations */
|
|
23
21
|
selected?: boolean;
|
|
24
22
|
/** Dialog state */
|
|
@@ -71,4 +69,4 @@ export interface DialogListItemProps extends ListItemProps {
|
|
|
71
69
|
* summary, sender, and receiver.
|
|
72
70
|
* to mark the item as checked/unchecked and can visually indicate if it is unread.
|
|
73
71
|
*/
|
|
74
|
-
export declare const DialogListItem: ({ size, state, loading, controls, select, selected, status, sender, recipient, recipientLabel, grouped, updatedAt, updatedAtLabel, archivedAt, archivedAtLabel, trashedAt, trashedAtLabel, badge, dueAt, dueAtLabel, seen, seenBy, touchedBy, attachmentsCount, title, description, summary,
|
|
72
|
+
export declare const DialogListItem: ({ size, state, loading, controls, select, selected, status, sender, recipient, recipientLabel, grouped, updatedAt, updatedAtLabel, archivedAt, archivedAtLabel, trashedAt, trashedAtLabel, badge, dueAt, dueAtLabel, seen, seenBy, touchedBy, attachmentsCount, title, description, summary, variant, id, ...rest }: DialogListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DividerProps as DsDividerProps } from '@digdir/designsystemet-react';
|
|
2
|
+
import { FieldColor, FieldSize } from '../../types/fields.ts';
|
|
3
|
+
export type DividerProps = {
|
|
4
|
+
as?: 'hr' | 'li';
|
|
5
|
+
size?: FieldSize;
|
|
6
|
+
color?: FieldColor;
|
|
7
|
+
} & DsDividerProps;
|
|
8
|
+
export declare const Divider: ({ as, size, color }: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Divider';
|
|
@@ -3,5 +3,6 @@ import { FieldColor, FieldSize } from '../../types/fields.ts';
|
|
|
3
3
|
export type FieldProps = {
|
|
4
4
|
size?: FieldSize;
|
|
5
5
|
color?: FieldColor;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
reverse?: boolean;
|
|
7
|
+
} & Omit<DsFieldProps, 'data-size' | 'data-color' | 'data-position'>;
|
|
8
|
+
export declare const Field: ({ size, color, reverse, children, ...props }: FieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,5 +3,6 @@ import { FieldColor, FieldSize } from '../../types/fields.ts';
|
|
|
3
3
|
export type SwitchProps = {
|
|
4
4
|
size?: FieldSize;
|
|
5
5
|
color?: FieldColor;
|
|
6
|
+
reverse?: boolean;
|
|
6
7
|
} & DsSwitchProps;
|
|
7
|
-
export declare const Switch: ({ size, color, label, ...rest }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Switch: ({ reverse, size, color, label, ...rest }: SwitchProps) => 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: ({ size, color, label, ...rest }: import('./Switch').SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ reverse, size, color, label, ...rest }: import('./Switch').SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BadgeProps } from '../Badge';
|
|
2
2
|
import { GlobalMenuProps, Account } from '../GlobalMenu';
|
|
3
|
-
import { SearchbarProps } from '../
|
|
3
|
+
import { SearchbarProps } from '../Searchbar';
|
|
4
4
|
import { LocaleSwitcherProps } from './';
|
|
5
5
|
import { HeaderLogoProps } from './HeaderLogo';
|
|
6
6
|
export interface HeaderProps {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
1
2
|
import { Color, Size, Theme } from '..';
|
|
2
3
|
export type SvgElement = React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4
|
+
export type IconVariant = 'fill' | 'contain' | 'custom';
|
|
3
5
|
export type IconSize = Size | undefined;
|
|
4
6
|
export type IconColor = Color;
|
|
5
7
|
export type IconTheme = Theme;
|
|
@@ -8,9 +10,12 @@ export interface IconProps {
|
|
|
8
10
|
iconUrl?: string;
|
|
9
11
|
altText?: string;
|
|
10
12
|
loading?: boolean;
|
|
13
|
+
variant?: IconVariant;
|
|
11
14
|
size?: IconSize;
|
|
12
15
|
color?: IconColor;
|
|
13
16
|
theme?: IconTheme;
|
|
14
17
|
className?: string;
|
|
18
|
+
style?: CSSProperties;
|
|
15
19
|
}
|
|
16
|
-
export declare const
|
|
20
|
+
export declare const isIconProps: (icon: unknown) => icon is IconProps;
|
|
21
|
+
export declare const Icon: ({ loading, altText, svgElement: SvgElement, variant, size, color, theme, iconUrl, className, style, }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Icon } from '
|
|
2
|
+
import { Icon, IconProps } from '..';
|
|
3
3
|
declare const meta: Meta<typeof Icon>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
+
export declare const Loading: Story;
|
|
8
|
+
export declare const Sizes: (args: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { AvatarGroupProps, AvatarProps, BadgeProps, IconProps, IconTheme, SvgElement } from '..';
|
|
3
3
|
export type IconOrAvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export interface IconOrAvatarProps {
|
|
5
|
+
loading?: boolean;
|
|
5
6
|
size?: IconOrAvatarSize;
|
|
6
7
|
icon?: IconProps | SvgElement | ReactNode;
|
|
7
8
|
iconTheme?: IconTheme;
|
|
@@ -9,4 +10,4 @@ export interface IconOrAvatarProps {
|
|
|
9
10
|
avatarGroup?: AvatarGroupProps;
|
|
10
11
|
badge?: BadgeProps | undefined;
|
|
11
12
|
}
|
|
12
|
-
export declare const IconOrAvatar: ({ size, icon, iconTheme, avatar, avatarGroup }: IconOrAvatarProps) => string | number | bigint | true | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
13
|
+
export declare const IconOrAvatar: ({ loading, size, icon, iconTheme, avatar, avatarGroup }: IconOrAvatarProps) => string | number | bigint | true | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FlexPadding, FlexSpacing, ListItemColor, ListItemProps, ListItemSize } from '..';
|
|
3
|
+
export interface ListProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
color?: ListItemColor;
|
|
6
|
+
size?: ListItemSize;
|
|
7
|
+
spacing?: FlexSpacing;
|
|
8
|
+
padding?: FlexPadding;
|
|
9
|
+
children?: ReactNode;
|
|
3
10
|
items?: ListItemProps[];
|
|
4
|
-
defaultItemColor?: ListItemColor;
|
|
5
|
-
defaultItemTheme?: ListItemTheme;
|
|
6
|
-
defaultItemSize?: ListItemSize;
|
|
7
11
|
}
|
|
8
|
-
export declare const List: ({
|
|
12
|
+
export declare const List: ({ children, spacing, items, ...rest }: ListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
1
|
declare const meta: {
|
|
3
2
|
title: string;
|
|
4
|
-
component: ({
|
|
3
|
+
component: ({ children, spacing, items, ...rest }: import('./List').ListProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
tags: string[];
|
|
6
5
|
parameters: {};
|
|
7
|
-
args: {
|
|
8
|
-
items: {
|
|
9
|
-
id: string;
|
|
10
|
-
title: string;
|
|
11
|
-
description: string;
|
|
12
|
-
href: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
6
|
};
|
|
16
7
|
export default meta;
|
|
17
|
-
|
|
18
|
-
export declare const
|
|
8
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ListOfPeople: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const ListOfServices: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const ListOfCategories: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const MultilevelList: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { Color, FlexPadding, FlexSpacing } from '..';
|
|
3
|
-
export interface
|
|
2
|
+
import { Color, FlexPadding, FlexSpacing, ListItemSize } from '..';
|
|
3
|
+
export interface ListProps {
|
|
4
4
|
className?: string;
|
|
5
|
-
|
|
5
|
+
color?: Color;
|
|
6
|
+
size?: ListItemSize;
|
|
6
7
|
spacing?: FlexSpacing;
|
|
7
8
|
padding?: FlexPadding;
|
|
8
|
-
|
|
9
|
+
children: ReactNode;
|
|
9
10
|
}
|
|
10
|
-
export declare const
|
|
11
|
+
export declare const List: ({ size, spacing, children, ...rest }: ListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,38 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AvatarGroupProps, AvatarProps } from '../Avatar';
|
|
3
|
-
import { BadgeProps } from '../Badge';
|
|
4
|
-
import { IconProps, SvgElement } from '../Icon';
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
5
2
|
import { ListItemBaseProps } from './ListItemBase';
|
|
6
3
|
import { ListItemHeaderProps } from './ListItemHeader';
|
|
4
|
+
export type ListItemVariant = 'default' | 'subtle' | 'tinted';
|
|
7
5
|
export interface ListItemProps extends ListItemBaseProps, ListItemHeaderProps {
|
|
8
6
|
/** List item id */
|
|
9
7
|
id?: string;
|
|
8
|
+
/** The variant of the list item. */
|
|
9
|
+
variant?: ListItemVariant;
|
|
10
10
|
/** Custom className */
|
|
11
11
|
className?: string;
|
|
12
12
|
/** Element is loading, display a placeholder */
|
|
13
13
|
loading?: boolean;
|
|
14
14
|
/** Title */
|
|
15
|
-
title?:
|
|
16
|
-
/** Element type of the list-item header label. Defaults to h2 */
|
|
17
|
-
titleAs?: ElementType;
|
|
15
|
+
title?: ListItemHeaderProps['title'];
|
|
18
16
|
/** Optional description */
|
|
19
|
-
description?:
|
|
17
|
+
description?: ListItemHeaderProps['description'];
|
|
18
|
+
/** Used as decerning text for the ListItem without title, defaults to title */
|
|
19
|
+
ariaLabel?: ListItemHeaderProps['ariaLabel'];
|
|
20
20
|
/** List item icon */
|
|
21
|
-
icon?:
|
|
22
|
-
/** List item avatar */
|
|
23
|
-
avatar?: AvatarProps;
|
|
24
|
-
/** List item avatarGroup */
|
|
25
|
-
avatarGroup?: AvatarGroupProps;
|
|
26
|
-
/** Custom label */
|
|
27
|
-
label?: ReactNode | (() => ReactElement);
|
|
21
|
+
icon?: ListItemHeaderProps['icon'];
|
|
28
22
|
/** Optional badge */
|
|
29
|
-
badge?:
|
|
23
|
+
badge?: ListItemHeaderProps['badge'];
|
|
30
24
|
/** Whether to display the item with a link icon */
|
|
31
|
-
linkIcon?:
|
|
25
|
+
linkIcon?: ListItemHeaderProps['linkIcon'];
|
|
26
|
+
/** Custom label */
|
|
27
|
+
label?: ReactNode | (() => ReactElement);
|
|
32
28
|
}
|
|
33
29
|
export interface ListItemInputProps extends ListItemProps {
|
|
34
30
|
id: string;
|
|
35
31
|
/** Child items */
|
|
36
32
|
items?: ListItemProps[];
|
|
37
33
|
}
|
|
38
|
-
export declare const ListItem: ({ className,
|
|
34
|
+
export declare const ListItem: ({ className, color, variant, shadow, border, loading, collapsible, expanded, size, icon, label, title, description, badge, linkIcon, select, selected, controls, children, interactive, id, ...rest }: ListItemProps) => import("react/jsx-runtime").JSX.Element;
|