@altinn/altinn-components 0.27.0 → 0.28.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/dist/{ChevronDown-CRAwzuD3.js → ChevronUp-C09jxB5F.js} +21 -2
- package/dist/{ClockDashed-PQgzLSPC.js → DialogActivityLog-wsSwha93.js} +24 -12
- 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 +1 -1
- package/dist/components/Avatar/Avatar.js +47 -45
- package/dist/components/Avatar/AvatarGroup.js +27 -32
- 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 +2 -2
- 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 +1 -1
- package/dist/components/{Page → Dashboard}/DashboardCard.js +18 -18
- 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 +1 -1
- 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 +15 -15
- package/dist/components/Dialog/DialogByline.js +1 -1
- 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 +9 -9
- package/dist/components/Dialog/DialogHistorySegment.js +1 -1
- package/dist/components/Dialog/DialogLayout.js +1 -1
- package/dist/components/Dialog/DialogList.js +1 -1
- package/dist/components/Dialog/DialogListGroup.js +7 -7
- package/dist/components/Dialog/DialogListItem.js +94 -91
- package/dist/components/Dialog/DialogMetadata.js +97 -63
- package/dist/components/Dialog/DialogSection.js +1 -1
- package/dist/components/Dialog/DialogSeenBy.js +2 -2
- 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 +9 -9
- 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 +1 -1
- package/dist/components/Dropdown/DrawerOrDropdown.js +1 -1
- package/dist/components/DsComponents/index.js +1 -1
- 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/FieldsetBase.js +1 -1
- package/dist/components/Forms/Radio.js +1 -1
- package/dist/components/Forms/RadioOptions.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 -15
- 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 +1 -1
- 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 +1 -1
- package/dist/components/Header/LocaleButton.js +1 -1
- 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 +1 -1
- 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 -58
- package/dist/components/List/ListItemBase.js +35 -43
- package/dist/components/List/ListItemHeader.js +75 -102
- 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/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 +1 -1
- package/dist/components/Menu/MenuOption.js +1 -1
- package/dist/components/Menu/MenuSearch.js +1 -1
- 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/PageHeader.js +30 -32
- package/dist/components/Page/PageMenu.js +1 -1
- package/dist/components/Page/PageNav.js +37 -18
- 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 +46 -48
- 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/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/Snackbar/SnackbarItem.js +1 -1
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Timeline/TimelineActivity.js +1 -1
- package/dist/components/Timeline/TimelineBase.js +20 -23
- package/dist/components/Timeline/TimelineFooter.js +1 -1
- 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 +1 -1
- package/dist/components/Timeline/index.js +6 -4
- 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 +1 -1
- 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.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 +10 -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/{usePagination-B4GfH2GQ.js → usePagination-Cpl0NjJN.js} +19 -20
- package/package.json +2 -2
- 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/globalMenu-CtokaeGw.js +0 -124
- 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/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}/SearchField.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,28 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useState as
|
|
2
|
+
import { jsx as L } from "react/jsx-runtime";
|
|
3
|
+
import { useState as M } from "react";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import "../
|
|
6
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import { Menu as
|
|
9
|
-
const
|
|
10
|
-
accounts:
|
|
8
|
+
import { Menu as w } from "../Menu/Menu.js";
|
|
9
|
+
const v = (p) => `${p} hits`, $ = ({
|
|
10
|
+
accounts: p = [],
|
|
11
11
|
accountGroups: y = {},
|
|
12
12
|
accountSearch: s,
|
|
13
|
-
onSelectAccount:
|
|
14
|
-
currentAccount:
|
|
13
|
+
onSelectAccount: r,
|
|
14
|
+
currentAccount: m,
|
|
15
15
|
menuItemsVirtual: C
|
|
16
16
|
}) => {
|
|
17
17
|
var f;
|
|
18
|
-
const
|
|
18
|
+
const g = p.map((e) => ({
|
|
19
19
|
id: e.id || e.name,
|
|
20
20
|
groupId: e.groupId || "search",
|
|
21
|
-
selected: e.selected ?? (
|
|
21
|
+
selected: e.selected ?? (m == null ? void 0 : m.id) === e.id,
|
|
22
22
|
title: e.name,
|
|
23
23
|
...(e == null ? void 0 : e.items) && {
|
|
24
|
-
|
|
25
|
-
size: "sm",
|
|
24
|
+
icon: {
|
|
26
25
|
items: e.items.map((i) => ({
|
|
27
26
|
name: i.name,
|
|
28
27
|
type: i.type || e.type
|
|
@@ -30,36 +29,35 @@ const w = (d) => `${d} hits`, k = ({
|
|
|
30
29
|
}
|
|
31
30
|
},
|
|
32
31
|
...!(e != null && e.items) && {
|
|
33
|
-
|
|
34
|
-
size: "md",
|
|
32
|
+
icon: {
|
|
35
33
|
type: e.type,
|
|
36
34
|
name: e.name
|
|
37
35
|
}
|
|
38
36
|
},
|
|
39
37
|
badge: e.badge,
|
|
40
38
|
alertBadge: e.alertBadge,
|
|
41
|
-
onClick: () =>
|
|
42
|
-
})), [l,
|
|
39
|
+
onClick: () => r == null ? void 0 : r(e.id || e.name)
|
|
40
|
+
})), [l, t] = M(""), d = l ? g.filter((e) => {
|
|
43
41
|
var i;
|
|
44
42
|
return (i = e == null ? void 0 : e.title) == null ? void 0 : i.toLowerCase().includes(l.toLowerCase());
|
|
45
43
|
}).map((e) => ({
|
|
46
44
|
...e,
|
|
47
45
|
groupId: "search"
|
|
48
|
-
})) :
|
|
46
|
+
})) : g, I = l ? {
|
|
49
47
|
search: {
|
|
50
|
-
title: ((f = s == null ? void 0 : s.getResultsLabel) == null ? void 0 : f.call(s,
|
|
48
|
+
title: ((f = s == null ? void 0 : s.getResultsLabel) == null ? void 0 : f.call(s, d.length)) ?? v(d.length)
|
|
51
49
|
}
|
|
52
50
|
} : y, b = {
|
|
53
51
|
name: "account-search",
|
|
54
52
|
value: l,
|
|
55
53
|
placeholder: (s == null ? void 0 : s.placeholder) ?? "Find account",
|
|
56
|
-
onChange: (e) =>
|
|
57
|
-
onClear: () =>
|
|
54
|
+
onChange: (e) => t(e.target.value),
|
|
55
|
+
onClear: () => t("")
|
|
58
56
|
}, h = [
|
|
59
|
-
...
|
|
57
|
+
...d.length > 0 ? d : [{ id: "search", groupId: "search", hidden: !0 }]
|
|
60
58
|
];
|
|
61
|
-
return /* @__PURE__ */
|
|
62
|
-
|
|
59
|
+
return /* @__PURE__ */ L(
|
|
60
|
+
w,
|
|
63
61
|
{
|
|
64
62
|
theme: "default",
|
|
65
63
|
search: s && b,
|
|
@@ -70,5 +68,5 @@ const w = (d) => `${d} hits`, k = ({
|
|
|
70
68
|
);
|
|
71
69
|
};
|
|
72
70
|
export {
|
|
73
|
-
|
|
71
|
+
$ as AccountMenu
|
|
74
72
|
};
|
|
@@ -1,12 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
3
|
import "../../index-L8X2o7IH.js";
|
|
3
|
-
import "react";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import { forwardRef as m } from "react";
|
|
4
6
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import "../
|
|
7
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
6
8
|
import "../Snackbar/useSnackbar.js";
|
|
7
|
-
import { MenuItem as
|
|
8
|
-
import {
|
|
9
|
-
|
|
9
|
+
import { MenuItem as f } from "../Menu/MenuItem.js";
|
|
10
|
+
import { u as p } from "../../useId-CsCRkvK3.js";
|
|
11
|
+
var c = function(t, l) {
|
|
12
|
+
var r = {};
|
|
13
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && l.indexOf(e) < 0 && (r[e] = t[e]);
|
|
14
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
15
|
+
for (var o = 0, e = Object.getOwnPropertySymbols(t); o < e.length; o++)
|
|
16
|
+
l.indexOf(e[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[o]) && (r[e[o]] = t[e[o]]);
|
|
17
|
+
return r;
|
|
18
|
+
};
|
|
19
|
+
const d = m((t, l) => {
|
|
20
|
+
var { title: r, titleId: e } = t, o = c(t, ["title", "titleId"]);
|
|
21
|
+
let i = p();
|
|
22
|
+
return i = r ? e || "title-" + i : void 0, n.createElement(
|
|
23
|
+
"svg",
|
|
24
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: l, "aria-labelledby": i }, o),
|
|
25
|
+
r ? n.createElement("title", { id: i }, r) : null,
|
|
26
|
+
n.createElement("path", { fill: "currentColor", d: "M16.03 3.97a.75.75 0 1 0-1.06 1.06l3.22 3.22H8a5.75 5.75 0 0 0 0 11.5h1.5a.75.75 0 0 0 0-1.5H8a4.25 4.25 0 0 1 0-8.5h10.19l-3.22 3.22a.75.75 0 0 0 1.06 1.06l4.5-4.5a.75.75 0 0 0 0-1.06z" })
|
|
27
|
+
);
|
|
28
|
+
}), v = ({ label: t, onClick: l, as: r }) => /* @__PURE__ */ a(f, { size: "sm", id: "back", icon: d, title: t, onClick: l, as: r });
|
|
10
29
|
export {
|
|
11
|
-
|
|
30
|
+
v as BackButton
|
|
12
31
|
};
|
|
@@ -1,13 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as c, jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { forwardRef as d } from "react";
|
|
5
|
+
import { u as f } from "../../useId-CsCRkvK3.js";
|
|
6
|
+
import '../../assets/EndUserLabel.css';var m = function(t, n) {
|
|
7
|
+
var r = {};
|
|
8
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
9
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
10
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
11
|
+
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
12
|
+
return r;
|
|
13
|
+
};
|
|
14
|
+
const p = d((t, n) => {
|
|
15
|
+
var { title: r, titleId: e } = t, l = m(t, ["title", "titleId"]);
|
|
16
|
+
let o = f();
|
|
17
|
+
return o = r ? e || "title-" + o : void 0, a.createElement(
|
|
18
|
+
"svg",
|
|
19
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": o }, l),
|
|
20
|
+
r ? a.createElement("title", { id: o }, r) : null,
|
|
21
|
+
a.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12 3.75a8.25 8.25 0 0 0-5.144 14.7 5.25 5.25 0 0 1 10.288 0A8.25 8.25 0 0 0 12 3.75m3.747 15.602a3.75 3.75 0 0 0-7.494 0A8.2 8.2 0 0 0 12 20.25c1.35 0 2.623-.324 3.747-.898M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12M12 7.25a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5M8.25 9.5a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0", clipRule: "evenodd" })
|
|
22
|
+
);
|
|
23
|
+
}), u = "_text_1tx3s_1", b = "_icon_1tx3s_11", x = "_label_1tx3s_15", i = {
|
|
24
|
+
text: u,
|
|
25
|
+
icon: b,
|
|
26
|
+
label: x
|
|
27
|
+
}, g = ({ children: t }) => /* @__PURE__ */ c("p", { className: i.text, children: [
|
|
28
|
+
/* @__PURE__ */ s(p, { className: i.icon, "aria-hidden": !0 }),
|
|
29
|
+
/* @__PURE__ */ s("span", { className: i.label, children: t })
|
|
10
30
|
] });
|
|
11
31
|
export {
|
|
12
|
-
|
|
32
|
+
g as EndUserLabel
|
|
13
33
|
};
|
|
@@ -8,7 +8,7 @@ import { AccountButton as J } from "./AccountButton.js";
|
|
|
8
8
|
import { BackButton as K } from "./BackButton.js";
|
|
9
9
|
import { LogoutButton as v } from "./LogoutButton.js";
|
|
10
10
|
import { EndUserLabel as x } from "./EndUserLabel.js";
|
|
11
|
-
import "../
|
|
11
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
12
12
|
import "../Snackbar/useSnackbar.js";
|
|
13
13
|
import { MenuListItem as d } from "../Menu/MenuBase.js";
|
|
14
14
|
import { Menu as G } from "../Menu/Menu.js";
|
|
@@ -4,7 +4,7 @@ import { ButtonLabel as s } from "../Button/ButtonLabel.js";
|
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import "../
|
|
7
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import '../../assets/LogoutButton.css';const i = "_button_1260s_1", m = "_label_1260s_5", o = {
|
|
10
10
|
button: i,
|
|
@@ -11,8 +11,8 @@ import { HeaderLogo as N } from "./HeaderLogo.js";
|
|
|
11
11
|
import { HeaderButton as b } from "./HeaderButton.js";
|
|
12
12
|
import { LocaleButton as H } from "./LocaleButton.js";
|
|
13
13
|
import { LocaleSwitcher as h } from "./LocaleSwitcher.js";
|
|
14
|
-
import { Searchbar as j } from "../
|
|
15
|
-
import "../
|
|
14
|
+
import { Searchbar as j } from "../Searchbar/Searchbar.js";
|
|
15
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
16
16
|
import "../Snackbar/useSnackbar.js";
|
|
17
17
|
import { HeaderGroup as B } from "./HeaderGroup.js";
|
|
18
18
|
import { HeaderSearch as L } from "./HeaderSearch.js";
|
|
@@ -3,7 +3,7 @@ import { c as p } from "../../index-L8X2o7IH.js";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
5
|
import { Backdrop as m } from "../Dropdown/Backdrop.js";
|
|
6
|
-
import "../
|
|
6
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
8
|
import '../../assets/HeaderBase.css';const i = "_header_19y6k_1", n = "_backdrop_19y6k_11", r = {
|
|
9
9
|
header: i,
|
|
@@ -1,52 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as d, jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import { c as m } from "../../index-L8X2o7IH.js";
|
|
4
|
+
import { Avatar as I } from "../Avatar/Avatar.js";
|
|
5
|
+
import { AvatarGroup as y } from "../Avatar/AvatarGroup.js";
|
|
6
|
+
import { Badge as f } from "../Badge/Badge.js";
|
|
6
7
|
import { ButtonBase as u } from "../Button/ButtonBase.js";
|
|
7
|
-
import { Icon as
|
|
8
|
-
import "react";
|
|
8
|
+
import { Icon as b } from "../Icon/Icon.js";
|
|
9
|
+
import * as _ from "react";
|
|
10
|
+
import { forwardRef as v } from "react";
|
|
9
11
|
import "../RootProvider/RootProvider.js";
|
|
10
|
-
import "../
|
|
12
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
11
13
|
import "../Snackbar/useSnackbar.js";
|
|
12
|
-
import { S as
|
|
13
|
-
import {
|
|
14
|
-
import '../../assets/HeaderButton.css';
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
import { S as N } from "../../XMark-Bv1I87Ev.js";
|
|
15
|
+
import { u as w } from "../../useId-CsCRkvK3.js";
|
|
16
|
+
import '../../assets/HeaderButton.css';var O = function(o, c) {
|
|
17
|
+
var r = {};
|
|
18
|
+
for (var e in o) Object.prototype.hasOwnProperty.call(o, e) && c.indexOf(e) < 0 && (r[e] = o[e]);
|
|
19
|
+
if (o != null && typeof Object.getOwnPropertySymbols == "function")
|
|
20
|
+
for (var n = 0, e = Object.getOwnPropertySymbols(o); n < e.length; n++)
|
|
21
|
+
c.indexOf(e[n]) < 0 && Object.prototype.propertyIsEnumerable.call(o, e[n]) && (r[e[n]] = o[e[n]]);
|
|
22
|
+
return r;
|
|
23
|
+
};
|
|
24
|
+
const x = v((o, c) => {
|
|
25
|
+
var { title: r, titleId: e } = o, n = O(o, ["title", "titleId"]);
|
|
26
|
+
let i = w();
|
|
27
|
+
return i = r ? e || "title-" + i : void 0, _.createElement(
|
|
28
|
+
"svg",
|
|
29
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: c, "aria-labelledby": i }, n),
|
|
30
|
+
r ? _.createElement("title", { id: i }, r) : null,
|
|
31
|
+
_.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M7.25 7a4.75 4.75 0 0 1 9.5 0v2.25H17c.966 0 1.75.784 1.75 1.75v9a.75.75 0 0 1-.75.75H6a.75.75 0 0 1-.75-.75v-9c0-.966.784-1.75 1.75-1.75h.25zm1.5 0a3.25 3.25 0 0 1 6.5 0v2.25h-6.5zM7 10.75a.25.25 0 0 0-.25.25v8.25h10.5V11a.25.25 0 0 0-.25-.25zm3.5 3.75a1.5 1.5 0 1 1 2.25 1.3V17a.75.75 0 0 1-1.5 0v-1.2a1.5 1.5 0 0 1-.75-1.3", clipRule: "evenodd" })
|
|
32
|
+
);
|
|
33
|
+
}), j = "_button_1p2eq_1", q = "_label_1p2eq_12", E = "_icon_1p2eq_18", S = "_avatarGroup_1p2eq_28", B = "_loginIcon_1p2eq_37", z = "_closeIcon_1p2eq_42", G = "_badge_1p2eq_46", t = {
|
|
34
|
+
button: j,
|
|
35
|
+
label: q,
|
|
36
|
+
icon: E,
|
|
37
|
+
avatarGroup: S,
|
|
38
|
+
loginIcon: B,
|
|
39
|
+
closeIcon: z,
|
|
40
|
+
badge: G
|
|
22
41
|
}, K = ({
|
|
23
|
-
className:
|
|
24
|
-
as:
|
|
25
|
-
color:
|
|
26
|
-
variant:
|
|
27
|
-
avatar:
|
|
28
|
-
avatarGroup:
|
|
29
|
-
icon:
|
|
42
|
+
className: o,
|
|
43
|
+
as: c = "button",
|
|
44
|
+
color: r = "accent",
|
|
45
|
+
variant: e = "solid",
|
|
46
|
+
avatar: n,
|
|
47
|
+
avatarGroup: i,
|
|
48
|
+
icon: h = x,
|
|
30
49
|
expanded: g,
|
|
31
|
-
label:
|
|
32
|
-
badge:
|
|
50
|
+
label: a = "Menu",
|
|
51
|
+
badge: s,
|
|
33
52
|
...p
|
|
34
|
-
}) => g ? /* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
38
|
-
] }) :
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
|
|
42
|
-
] }) :
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
46
|
-
] }) : /* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
53
|
+
}) => g ? /* @__PURE__ */ d(u, { ...p, as: c, variant: e, color: r, className: m(t.button, o), children: [
|
|
54
|
+
/* @__PURE__ */ l("span", { className: t.label, children: a }),
|
|
55
|
+
/* @__PURE__ */ l("span", { className: m(t.icon, t.closeIcon), children: /* @__PURE__ */ l(b, { svgElement: N }) }),
|
|
56
|
+
s && /* @__PURE__ */ l(f, { ...s, className: t.badge })
|
|
57
|
+
] }) : i ? /* @__PURE__ */ d(u, { ...p, as: c, variant: e, color: r, className: m(t.button, o), children: [
|
|
58
|
+
/* @__PURE__ */ l("span", { className: t.label, children: a }),
|
|
59
|
+
/* @__PURE__ */ l(y, { ...i, className: t.avatarGroup }),
|
|
60
|
+
s && /* @__PURE__ */ l(f, { ...s, className: t.badge })
|
|
61
|
+
] }) : n ? /* @__PURE__ */ d(u, { ...p, as: c, variant: e, color: r, className: m(t.button, o), children: [
|
|
62
|
+
/* @__PURE__ */ l("span", { className: t.label, children: a }),
|
|
63
|
+
/* @__PURE__ */ l(I, { type: n == null ? void 0 : n.type, name: n == null ? void 0 : n.name, style: { fontSize: "2.25rem" } }),
|
|
64
|
+
s && /* @__PURE__ */ l(f, { ...s, className: t.badge })
|
|
65
|
+
] }) : /* @__PURE__ */ d(u, { ...p, as: c, variant: e, color: r, className: m(t.button, o), children: [
|
|
66
|
+
/* @__PURE__ */ l("span", { className: t.label, children: a }),
|
|
67
|
+
/* @__PURE__ */ l("span", { className: m(t.icon, t.loginIcon), children: /* @__PURE__ */ l(b, { svgElement: h }) }),
|
|
68
|
+
s && /* @__PURE__ */ l(f, { ...s, className: t.badge })
|
|
50
69
|
] });
|
|
51
70
|
export {
|
|
52
71
|
K as HeaderButton
|
|
@@ -4,7 +4,7 @@ import { ButtonBase as e } from "../Button/ButtonBase.js";
|
|
|
4
4
|
import "react";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import { DigdirLogomark as c } from "./DigdirLogomark.js";
|
|
7
|
-
import "../
|
|
7
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import '../../assets/HeaderLogo.css';const a = "_logo_y48xn_1", x = "_symbol_y48xn_8", y = "_riksSymbol_y48xn_14", _ = "_text_y48xn_20", o = {
|
|
10
10
|
logo: a,
|
|
@@ -5,7 +5,7 @@ import * as i from "react";
|
|
|
5
5
|
import { forwardRef as c } from "react";
|
|
6
6
|
import { IconButton as m } from "../Button/IconButton.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import "../
|
|
8
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
10
|
import { u } from "../../useId-CsCRkvK3.js";
|
|
11
11
|
import '../../assets/LocaleButton.css';var f = function(e, n) {
|
|
@@ -3,7 +3,7 @@ import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { useRootContext as n } from "../RootProvider/RootProvider.js";
|
|
6
|
-
import "../
|
|
6
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
8
|
import { MenuOption as p } from "../Menu/MenuOption.js";
|
|
9
9
|
import { MenuHeader as u } from "../Menu/MenuHeader.js";
|
|
@@ -1,22 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { c as n } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Skeleton as
|
|
4
|
+
import { Skeleton as _ } from "../Skeleton/Skeleton.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import "../
|
|
6
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import '../../assets/Icon.css';const
|
|
9
|
-
icon:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
import '../../assets/Icon.css';const f = "_icon_2h14f_1", g = "_shape_2h14f_9", v = "_svg_2h14f_15", N = "_image_2h14f_16", a = {
|
|
9
|
+
icon: f,
|
|
10
|
+
shape: g,
|
|
11
|
+
svg: v,
|
|
12
|
+
image: N
|
|
13
|
+
}, z = (s) => typeof s == "object" && s !== null && ("svgElement" in s || "iconUrl" in s), E = ({
|
|
14
|
+
loading: s,
|
|
15
|
+
altText: r,
|
|
16
|
+
svgElement: c,
|
|
17
|
+
variant: i = "fill",
|
|
18
|
+
size: o,
|
|
19
|
+
color: m,
|
|
20
|
+
theme: l,
|
|
21
|
+
iconUrl: p,
|
|
22
|
+
className: t,
|
|
23
|
+
style: h
|
|
24
|
+
}) => c ? /* @__PURE__ */ e("span", { "data-size": o, "data-color": m, "data-theme": l, className: n(a.icon, t), style: h, children: /* @__PURE__ */ d(_, { loading: s, variant: "circle", className: a.shape, children: [
|
|
25
|
+
/* @__PURE__ */ e("span", { className: a.shape }),
|
|
26
|
+
/* @__PURE__ */ e(c, { "aria-hidden": "true", "alt-label": r, "data-variant": i, className: a.svg })
|
|
27
|
+
] }) }) : p ? /* @__PURE__ */ e("span", { "data-size": o, "data-color": m, "data-theme": l, className: n(a.icon, t), style: h, children: /* @__PURE__ */ d(_, { loading: s, variant: "circle", className: a.shape, children: [
|
|
28
|
+
/* @__PURE__ */ e("span", { className: a.shape }),
|
|
29
|
+
/* @__PURE__ */ e("img", { src: p, alt: r, className: a.image, "data-variant": i })
|
|
30
|
+
] }) }) : /* @__PURE__ */ e("span", { className: n(a.icon, t) });
|
|
20
31
|
export {
|
|
21
|
-
|
|
32
|
+
E as Icon,
|
|
33
|
+
z as isIconProps
|
|
22
34
|
};
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { isValidElement as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { isValidElement as f } from "react";
|
|
3
3
|
import { Icon as i } from "./Icon.js";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
|
-
import { Avatar as
|
|
6
|
-
import { AvatarGroup as
|
|
5
|
+
import { Avatar as p } from "../Avatar/Avatar.js";
|
|
6
|
+
import { AvatarGroup as c } from "../Avatar/AvatarGroup.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import "../
|
|
8
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
import { S as u } from "../../XMark-Bv1I87Ev.js";
|
|
11
|
+
import '../../assets/IconOrAvatar.css';const l = "_icon_1ez59_1", _ = "_avatar_1ez59_2", v = "_avatarGroup_1ez59_6", n = {
|
|
12
|
+
icon: l,
|
|
13
|
+
avatar: _,
|
|
14
|
+
avatarGroup: v
|
|
15
|
+
};
|
|
16
|
+
function d(r) {
|
|
17
|
+
return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || f(r);
|
|
12
18
|
}
|
|
13
|
-
const
|
|
14
|
-
if (!
|
|
19
|
+
const g = (r) => r.svgElement !== void 0 || r.iconUrl !== void 0, S = ({ loading: r, size: m, icon: t, iconTheme: s, avatar: o, avatarGroup: a }) => {
|
|
20
|
+
if (!t && !o && !a)
|
|
15
21
|
return null;
|
|
16
|
-
if (
|
|
17
|
-
return
|
|
22
|
+
if (r)
|
|
23
|
+
return /* @__PURE__ */ e(i, { className: n.icon, svgElement: u, loading: !0 });
|
|
18
24
|
if (t)
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
if (
|
|
21
|
-
return /* @__PURE__ */
|
|
25
|
+
return g(t) ? /* @__PURE__ */ e(i, { className: n.icon, theme: t.theme || s, variant: "contain", ...t }) : d(t) ? t : /* @__PURE__ */ e(i, { className: n.icon, svgElement: t, variant: "contain", theme: s });
|
|
26
|
+
if (o)
|
|
27
|
+
return /* @__PURE__ */ e(p, { ...o, size: o.size || m, className: n.avatar });
|
|
28
|
+
if (a)
|
|
29
|
+
return /* @__PURE__ */ e(c, { ...a, className: n.avatarGroup });
|
|
22
30
|
};
|
|
23
31
|
export {
|
|
24
|
-
|
|
32
|
+
S as IconOrAvatar
|
|
25
33
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Icon as e } from "./Icon.js";
|
|
2
|
-
import { CheckboxIcon as
|
|
3
|
-
import { RadioIcon as
|
|
4
|
-
import { ProgressIcon as
|
|
5
|
-
import { IconOrAvatar as
|
|
1
|
+
import { Icon as c, isIconProps as e } from "./Icon.js";
|
|
2
|
+
import { CheckboxIcon as p } from "./CheckboxIcon.js";
|
|
3
|
+
import { RadioIcon as x } from "./RadioIcon.js";
|
|
4
|
+
import { ProgressIcon as f } from "./ProgressIcon.js";
|
|
5
|
+
import { IconOrAvatar as s } from "./IconOrAvatar.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
p as CheckboxIcon,
|
|
8
|
+
c as Icon,
|
|
9
|
+
s as IconOrAvatar,
|
|
10
|
+
f as ProgressIcon,
|
|
11
|
+
x as RadioIcon,
|
|
12
|
+
e as isIconProps
|
|
12
13
|
};
|
|
@@ -10,7 +10,7 @@ import "../../index-L8X2o7IH.js";
|
|
|
10
10
|
import "react";
|
|
11
11
|
import { useRootContext as C } from "../RootProvider/RootProvider.js";
|
|
12
12
|
import { Menu as F } from "../Menu/Menu.js";
|
|
13
|
-
import "../
|
|
13
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
14
14
|
import "../Snackbar/useSnackbar.js";
|
|
15
15
|
const E = ({ color: n, theme: c = "subtle", header: u, footer: l, sidebar: o, content: t = {}, children: f }) => {
|
|
16
16
|
const { currentId: r } = C();
|
|
@@ -4,7 +4,7 @@ import "react";
|
|
|
4
4
|
import { IconButton as c } from "../Button/IconButton.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
6
|
import { Heading as l } from "../Typography/Heading.js";
|
|
7
|
-
import "../
|
|
7
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
import { S as p } from "../../XMark-Bv1I87Ev.js";
|
|
10
10
|
import '../../assets/ActionHeader.css';const h = "_header_7fwyg_1", _ = "_title_7fwyg_34", f = "_dismiss_7fwyg_40", t = {
|
|
@@ -2,7 +2,7 @@ import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import "../
|
|
5
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
6
6
|
import { LayoutBase as s } from "../Layout/LayoutBase.js";
|
|
7
7
|
import { ActionHeader as f } from "./ActionHeader.js";
|
|
8
8
|
import { ActionFooter as u } from "./ActionFooter.js";
|
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createElement as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { createElement as n } from "react";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { ListItem as
|
|
6
|
-
import
|
|
7
|
-
import "../Search/AutocompleteBase.js";
|
|
5
|
+
import { ListItem as c } from "./ListItem.js";
|
|
6
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
8
7
|
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
...r,
|
|
13
|
-
size: (r == null ? void 0 : r.size) || o,
|
|
14
|
-
color: (r == null ? void 0 : r.color) || s,
|
|
15
|
-
theme: (r == null ? void 0 : r.theme) || p,
|
|
16
|
-
key: `item-${r.id ?? t}`
|
|
17
|
-
}
|
|
18
|
-
)) });
|
|
8
|
+
import { Flex as l } from "../Page/Flex.js";
|
|
9
|
+
const j = ({ children: t, spacing: o = 2, items: m = [], ...i }) => /* @__PURE__ */ p(l, { direction: "col", as: "ul", spacing: o, ...i, children: t || m.map((r, e) => /* @__PURE__ */ n(c, { ...r, key: `item-${r.id ?? e}` })) });
|
|
19
10
|
export {
|
|
20
|
-
|
|
11
|
+
j as List
|
|
21
12
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import "../
|
|
5
|
+
import "../Searchbar/AutocompleteBase.js";
|
|
6
6
|
import "../Snackbar/useSnackbar.js";
|
|
7
|
-
import { Flex as
|
|
8
|
-
const
|
|
7
|
+
import { Flex as p } from "../Page/Flex.js";
|
|
8
|
+
const u = ({ size: o, spacing: r = 2, children: t, ...i }) => /* @__PURE__ */ m(p, { direction: "col", spacing: r, size: o, as: "ul", ...i, children: t });
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
u as List
|
|
11
11
|
};
|