@altinn/altinn-components 0.56.33 → 0.56.34
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-D_a7nb-G.js +24 -0
- package/dist/ChevronUp-hn05LboH.js +24 -0
- package/dist/Plus-Cj3oOc3N.js +24 -0
- package/dist/{SearchField-QTfebYdU.js → SearchField-BU7Imhpe.js} +19 -19
- package/dist/assets/BookmarkSettingsItemLabel.css +1 -0
- package/dist/assets/BulkButton.css +1 -0
- package/dist/assets/BulkFooter.css +1 -0
- package/dist/assets/BulkHeader.css +1 -0
- package/dist/assets/GlobalAccountButton.css +1 -0
- package/dist/assets/GlobalHeader.css +1 -1
- package/dist/assets/GlobalMenuButton.css +1 -1
- package/dist/assets/GlobalMenuButton2.css +1 -1
- package/dist/assets/QueryLabel.css +1 -1
- package/dist/assets/QueryLabelItem.css +1 -0
- package/dist/components/AccessAreaListItem/AccessAreaListItem.js +1 -1
- package/dist/components/AccessPackageListItem/AccessPackageListItem.js +1 -1
- package/dist/components/Account/AccountList.js +5 -5
- package/dist/components/Account/AccountListItem.js +1 -1
- package/dist/components/Account/AccountListItemControls.js +1 -1
- package/dist/components/Account/AccountListItemDetails.js +1 -1
- package/dist/components/Account/AccountListVirtual.js +1 -1
- package/dist/components/Account/AccountMenu.js +2 -2
- package/dist/components/Account/AccountNotificationSettings.js +3 -3
- package/dist/components/Account/AccountOrganization.js +1 -1
- package/dist/components/{GlobalHeader → AccountSelector}/AccountSelector.js +1 -1
- package/dist/components/AccountSelector/index.js +4 -0
- package/dist/components/ActivityLog/ActivityLog.js +1 -1
- package/dist/components/ActivityLog/ActivityLogItem.js +1 -1
- package/dist/components/ActivityLog/ActivityLogSegment.js +1 -1
- package/dist/components/Article/Article.js +1 -1
- package/dist/components/Article/ArticleContact.js +1 -1
- package/dist/components/Article/ArticleHeader.js +1 -1
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Bookmarks/BookmarkModal.js +5 -5
- package/dist/components/Bookmarks/BookmarkSettingsItem.js +1 -1
- package/dist/components/Bookmarks/BookmarkSettingsItemLabel.js +12 -10
- package/dist/components/Bookmarks/BookmarkSettingsList.js +31 -24
- package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Bulk/BulkButton.js +15 -0
- package/dist/components/Bulk/BulkFooter.js +10 -0
- package/dist/components/Bulk/BulkHeader.js +38 -0
- package/dist/components/Bulk/index.js +8 -0
- package/dist/components/Button/ButtonIcon.js +1 -1
- package/dist/components/Button/ComboButton.js +1 -1
- package/dist/components/Button/FloatingActionButton.js +1 -1
- package/dist/components/Button/IconButton.js +1 -1
- package/dist/components/Byline/Byline.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +4 -4
- package/dist/components/Dashboard/DashboardCard.js +7 -7
- package/dist/components/Dashboard/DashboardHeader.js +7 -7
- 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 +17 -16
- package/dist/components/Dialog/DialogActivityLog.js +1 -1
- package/dist/components/Dialog/DialogAttachments.js +1 -1
- package/dist/components/Dialog/DialogBody.js +1 -1
- 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/DialogHistory.js +1 -1
- package/dist/components/Dialog/DialogHistoryItem.js +1 -1
- 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 +1 -1
- package/dist/components/Dialog/DialogListItem.js +1 -1
- package/dist/components/Dialog/DialogMetadata.js +1 -1
- package/dist/components/Dialog/DialogSection.js +1 -1
- package/dist/components/Dialog/DialogSeenBy.js +1 -1
- package/dist/components/Dialog/DialogSelect.js +1 -1
- package/dist/components/Dialog/DialogStatus.js +1 -1
- package/dist/components/Dialog/DialogTabs.js +2 -2
- package/dist/components/Dialog/SeenByLog.js +1 -1
- package/dist/components/Dialog/SeenByLogButton.js +1 -1
- package/dist/components/Dialog/SeenByLogItem.js +1 -1
- 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/Dropdown/DropdownBase.js +1 -1
- package/dist/components/Dropdown/FloatingDropdown.js +4 -4
- package/dist/components/Forms/Checkbox.js +3 -3
- package/dist/components/Forms/CheckboxOptions.js +3 -3
- package/dist/components/Forms/FieldBase.js +7 -7
- package/dist/components/Forms/FieldsetBase.js +3 -3
- package/dist/components/Forms/Radio.js +3 -3
- package/dist/components/Forms/RadioOptions.js +3 -3
- package/dist/components/Forms/SearchField.js +4 -4
- package/dist/components/Forms/SelectField.js +3 -3
- package/dist/components/Forms/Switch.js +3 -3
- package/dist/components/Forms/SwitchOptions.js +3 -3
- package/dist/components/Forms/TextField.js +3 -3
- package/dist/components/Forms/TextFieldDropdown.js +29 -28
- package/dist/components/Forms/TextareaField.js +3 -3
- package/dist/components/Forms/index.js +1 -1
- package/dist/components/GlobalHeader/GlobalAccountButton.js +127 -0
- package/dist/components/GlobalHeader/GlobalHeader.js +40 -41
- package/dist/components/GlobalHeader/GlobalMenuButton.js +26 -26
- package/dist/components/GlobalHeader/HeaderDrawer.js +62 -97
- package/dist/components/GlobalHeader/HeaderDropdown.js +1 -1
- package/dist/components/GlobalHeader/HeaderLogo.js +1 -1
- package/dist/components/GlobalHeader/index.js +4 -2
- package/dist/components/GlobalMenu/GlobalMenu.js +2 -2
- package/dist/components/GlobalMenu/LocaleSwitcher.js +2 -2
- package/dist/components/GlobalMenu/LogoutButton.js +1 -1
- package/dist/components/GlobalMenu_old/BackButton.js +2 -2
- package/dist/components/GlobalMenu_old/CurrentAccount.js +2 -2
- package/dist/components/GlobalMenu_old/GlobalMenu.js +3 -3
- package/dist/components/GlobalMenu_old/GlobalMenuButton.js +2 -2
- package/dist/components/GlobalMenu_old/LogoutButton.js +1 -1
- package/dist/components/Header/Header.js +6 -6
- package/dist/components/Header/HeaderBase.js +1 -1
- package/dist/components/Header/HeaderButton.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 +1 -1
- package/dist/components/InboxSearch/InboxSearch.js +1 -1
- package/dist/components/Item/ItemMedia.js +1 -1
- package/dist/components/Item/ItemSelect.js +12 -0
- package/dist/components/Item/index.js +4 -2
- package/dist/components/Layout/Layout.js +13 -13
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListBase.js +1 -1
- package/dist/components/List/ListItemHeader.js +13 -12
- package/dist/components/List/ListItemIcon.js +1 -1
- package/dist/components/List/ListItemLabel.js +1 -1
- package/dist/components/List/ListItemSelect.js +3 -3
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItems.js +3 -3
- package/dist/components/Menu/MenuListSearch.js +2 -2
- package/dist/components/Menu/TabMenu.js +2 -2
- package/dist/components/Menu/VirtualizedMenuItems.js +3 -3
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Metadata/MetaItem.js +1 -1
- package/dist/components/Metadata/MetaItemIcon.js +1 -1
- package/dist/components/Metadata/MetaProgress.js +1 -1
- package/dist/components/Metadata/MetaTimestamp.js +1 -1
- package/dist/components/Metadata/Metadata.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/ModalBase.js +1 -1
- package/dist/components/Modal/ModalHeader.js +1 -1
- package/dist/components/Modal/ModalIcon.js +1 -1
- package/dist/components/Notifications/NotificationItem.js +1 -1
- package/dist/components/Notifications/NotificationItemBase.js +1 -1
- package/dist/components/Notifications/NotificationItemControls.js +1 -1
- package/dist/components/Notifications/NotificationItemIcon.js +1 -1
- package/dist/components/Page/AccordionSection.js +1 -1
- package/dist/components/Page/ContactButtons.js +1 -1
- package/dist/components/Page/ContactSection.js +1 -1
- package/dist/components/Page/PageMenu.js +1 -1
- package/dist/components/Page/PageNav.js +1 -1
- package/dist/components/Page/Section.js +1 -1
- package/dist/components/ResourceListItem/ResourceListItem.js +1 -1
- package/dist/components/Search/SearchItem.js +1 -1
- package/dist/components/Searchbar/Autocomplete.js +2 -2
- package/dist/components/Searchbar/AutocompleteItem.js +3 -3
- package/dist/components/Searchbar/Searchbar.js +1 -1
- package/dist/components/Searchbar/SearchbarField.js +1 -1
- package/dist/components/Searchbar/index.js +6 -9
- package/dist/components/Settings/SettingsItem.js +2 -2
- package/dist/components/Settings/SettingsItemBase.js +1 -1
- package/dist/components/Settings/SettingsList.js +1 -1
- package/dist/components/Settings/SettingsModal.js +1 -1
- package/dist/components/Settings/SettingsSection.js +1 -1
- package/dist/components/Settings/UsedByLog.js +1 -1
- package/dist/components/Settings/UsedByLogItem.js +1 -1
- 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 +1 -1
- package/dist/components/Timeline/TimelineFooter.js +1 -1
- package/dist/components/Timeline/TimelineHeader.js +1 -1
- package/dist/components/Timeline/TimelineIcon.js +1 -1
- package/dist/components/Timeline/TimelineSection.js +1 -1
- package/dist/components/Timeline/TimelineSegment.js +1 -1
- package/dist/components/Toolbar/DatepickerFilter.js +1 -1
- package/dist/components/Toolbar/QueryLabel.js +13 -0
- package/dist/components/Toolbar/QueryLabelItem.js +7 -0
- package/dist/components/Toolbar/SelectDateFilter.js +2 -2
- package/dist/components/Toolbar/Toolbar.js +1 -1
- package/dist/components/Toolbar/ToolbarFilter.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterAddMenu.js +42 -60
- package/dist/components/Toolbar/ToolbarFilterButton.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterMenu.js +2 -2
- package/dist/components/Toolbar/ToolbarMenu.js +25 -24
- package/dist/components/Toolbar/ToolbarSearch.js +2 -2
- package/dist/components/Toolbar/index.js +10 -6
- package/dist/components/Transmission/Transmission.js +1 -1
- package/dist/components/Transmission/TransmissionList.js +1 -1
- package/dist/components/Transmission/TransmissionType.js +1 -1
- package/dist/components/Typography/Heading.js +1 -1
- package/dist/components/UserListItem/UserListItem.js +1 -1
- package/dist/components/index.js +468 -457
- package/dist/hooks/useAccountSelector.js +152 -126
- package/dist/index.js +486 -475
- package/dist/types/lib/components/Account/Account.stories.d.ts +6 -1
- package/dist/types/lib/components/Account/AccountList.stories.d.ts +3 -1
- package/dist/types/lib/components/AccountSelector/index.d.ts +1 -0
- package/dist/types/lib/components/Bookmarks/Bookmark.stories.d.ts +11 -0
- package/dist/types/lib/components/Bookmarks/BookmarkSettingsItem.d.ts +2 -0
- package/dist/types/lib/components/Bookmarks/BookmarkSettingsList.d.ts +2 -1
- package/dist/types/lib/components/Bookmarks/BookmarkSettingsList.stories.d.ts +2 -2
- package/dist/types/lib/components/Bulk/Bulk.stories.d.ts +13 -0
- package/dist/types/lib/components/Bulk/BulkButton.d.ts +8 -0
- package/dist/types/lib/components/Bulk/BulkFooter.d.ts +8 -0
- package/dist/types/lib/components/Bulk/BulkHeader.d.ts +12 -0
- package/dist/types/lib/components/Bulk/index.d.ts +3 -0
- package/dist/types/lib/components/GlobalHeader/{AccountSelectorButton.d.ts → GlobalAccountButton.d.ts} +2 -2
- package/dist/types/lib/components/GlobalHeader/{AccountSelectorButton.stories.d.ts → GlobalAccountButton.stories.d.ts} +1 -1
- package/dist/types/lib/components/GlobalHeader/GlobalHeader.d.ts +1 -1
- package/dist/types/lib/components/GlobalHeader/index.d.ts +1 -0
- package/dist/types/lib/components/Item/ItemSelect.d.ts +8 -0
- package/dist/types/lib/components/Item/index.d.ts +1 -0
- package/dist/types/lib/components/Searchbar/index.d.ts +0 -1
- package/dist/types/lib/components/Toolbar/QueryLabel.d.ts +9 -0
- package/dist/types/lib/components/Toolbar/QueryLabelItem.d.ts +13 -0
- package/dist/types/lib/components/Toolbar/ToolbarMenu.d.ts +3 -1
- package/dist/types/lib/components/Toolbar/index.d.ts +2 -0
- package/dist/types/lib/components/index.d.ts +3 -1
- package/dist/types/lib/hooks/useAccountSelector.d.ts +1 -1
- package/dist/types/lib/stories/Color.stories.d.ts +20 -0
- package/package.json +1 -1
- package/dist/ChevronUp-_BBfEirx.js +0 -43
- package/dist/assets/AccountSelectorButton.css +0 -1
- package/dist/assets/ActionFooter.css +0 -1
- package/dist/assets/ActionHeader.css +0 -1
- package/dist/components/GlobalHeader/AccountSelectorButton.js +0 -127
- package/dist/components/LayoutAction/ActionFooter.js +0 -7
- package/dist/components/LayoutAction/ActionHeader.js +0 -38
- package/dist/components/LayoutAction/LayoutAction.js +0 -38
- package/dist/components/LayoutAction/index.js +0 -8
- package/dist/components/Searchbar/QueryLabel.js +0 -14
- package/dist/types/lib/components/GlobalMenu_old/GlobalMenu.stories.d.ts +0 -30
- package/dist/types/lib/components/GlobalMenu_old/GlobalMenuButton.stories.d.ts +0 -19
- package/dist/types/lib/components/LayoutAction/ActionFooter.d.ts +0 -6
- package/dist/types/lib/components/LayoutAction/ActionHeader.d.ts +0 -11
- package/dist/types/lib/components/LayoutAction/LayoutAction.d.ts +0 -15
- package/dist/types/lib/components/LayoutAction/LayoutAction.stories.d.ts +0 -5
- package/dist/types/lib/components/LayoutAction/index.d.ts +0 -3
- package/dist/types/lib/components/Searchbar/QueryLabel.d.ts +0 -14
- /package/dist/types/lib/components/{GlobalHeader → AccountSelector}/AccountSelector.d.ts +0 -0
- /package/dist/types/lib/components/{GlobalHeader → AccountSelector}/AccountSelector.stories.d.ts +0 -0
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
declare const meta: {
|
|
2
2
|
title: string;
|
|
3
|
-
parameters: {
|
|
3
|
+
parameters: {
|
|
4
|
+
layout: string;
|
|
5
|
+
};
|
|
4
6
|
};
|
|
5
7
|
export default meta;
|
|
6
8
|
export declare const CurrentAccount: () => import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export declare const CompanyAccount: () => import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export declare const Login: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const DeprecatedCurrentAccount: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const DeprecatedCompanyAccount: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const DeprecatedLogin: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,9 @@ declare const meta: {
|
|
|
5
5
|
title: string;
|
|
6
6
|
component: ({ items, groups, sortGroupBy, virtualized }: AccountListProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
tags: string[];
|
|
8
|
-
parameters: {
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: string;
|
|
10
|
+
};
|
|
9
11
|
args: AccountListProps;
|
|
10
12
|
};
|
|
11
13
|
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AccountSelector';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
export declare const InboxSingleAccount: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const InboxAllAccounts: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const BookmarkSettings: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,6 +10,8 @@ export interface BookmarkSettingsItemProps {
|
|
|
10
10
|
loading?: boolean;
|
|
11
11
|
/** Optional title */
|
|
12
12
|
title?: string;
|
|
13
|
+
/** Searchable words */
|
|
14
|
+
searchWords?: string[];
|
|
13
15
|
/** Icon */
|
|
14
16
|
highlightWords?: SettingsItemProps['highlightWords'];
|
|
15
17
|
/** Optional title */
|
|
@@ -4,9 +4,10 @@ export interface BookmarkSettingsGroupProps {
|
|
|
4
4
|
title?: string | ReactNode;
|
|
5
5
|
}
|
|
6
6
|
export interface BookmarkSettingsListProps {
|
|
7
|
+
highlightWords?: string[];
|
|
7
8
|
items: BookmarkSettingsItemProps[];
|
|
8
9
|
groups?: Record<string, BookmarkSettingsGroupProps>;
|
|
9
10
|
sortGroupBy?: (a: [string, BookmarkSettingsItemProps[]], b: [string, BookmarkSettingsItemProps[]]) => number;
|
|
10
11
|
loading?: boolean;
|
|
11
12
|
}
|
|
12
|
-
export declare const BookmarkSettingsList: ({ loading, items, groups, sortGroupBy }: BookmarkSettingsListProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export declare const BookmarkSettingsList: ({ loading, highlightWords, items, groups, sortGroupBy, }: BookmarkSettingsListProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { BookmarkSettingsListProps } from '..';
|
|
2
2
|
declare const meta: {
|
|
3
|
-
component: ({ loading, items, groups, sortGroupBy }: BookmarkSettingsListProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
component: ({ loading, highlightWords, items, groups, sortGroupBy, }: BookmarkSettingsListProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
4
|
title: string;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
9
9
|
decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react-vite').ReactRenderer, {
|
|
10
|
+
highlightWords?: string[] | undefined;
|
|
10
11
|
items: import('./BookmarkSettingsItem').BookmarkSettingsItemProps[];
|
|
11
12
|
groups?: Record<string, import('./BookmarkSettingsList').BookmarkSettingsGroupProps> | undefined;
|
|
12
13
|
sortGroupBy?: ((a: [string, import('./BookmarkSettingsItem').BookmarkSettingsItemProps[]], b: [string, import('./BookmarkSettingsItem').BookmarkSettingsItemProps[]]) => number) | undefined;
|
|
@@ -19,4 +20,3 @@ declare const meta: {
|
|
|
19
20
|
export default meta;
|
|
20
21
|
export declare const BookmarksList: () => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export declare const GroupedBookmarksList: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare const BookmarksPage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
};
|
|
7
|
+
args: {};
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
export declare const Default: ({ defaultBulkIds }: {
|
|
11
|
+
defaultBulkIds?: string[];
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const BulkModeOn: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SvgElement } from '../Icon';
|
|
2
|
+
export interface BulkButtonProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
icon: SvgElement;
|
|
5
|
+
label: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const BulkButton: ({ icon, label, onClick }: BulkButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LayoutColor } from '../Layout';
|
|
2
|
+
import { BulkButtonProps } from './BulkButton';
|
|
3
|
+
export interface BulkFooterProps {
|
|
4
|
+
hidden?: boolean;
|
|
5
|
+
color?: LayoutColor;
|
|
6
|
+
actions?: BulkButtonProps[];
|
|
7
|
+
}
|
|
8
|
+
export declare const BulkFooter: ({ hidden, color, actions }: BulkFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LayoutColor } from '../Layout';
|
|
2
|
+
import { BulkButtonProps } from './BulkButton';
|
|
3
|
+
export interface BulkHeaderProps {
|
|
4
|
+
color?: LayoutColor;
|
|
5
|
+
dismissIconAltText?: string;
|
|
6
|
+
title: string;
|
|
7
|
+
hidden?: boolean;
|
|
8
|
+
options?: BulkButtonProps[];
|
|
9
|
+
dismissable?: boolean;
|
|
10
|
+
onDismiss?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const BulkHeader: ({ color, hidden, title, dismissable, dismissIconAltText, options, onDismiss, }: BulkHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccountMenuItemProps, ButtonProps } from '..';
|
|
2
|
-
export interface
|
|
2
|
+
export interface GlobalAccountButtonProps extends ButtonProps {
|
|
3
3
|
currentAccount?: AccountMenuItemProps;
|
|
4
4
|
className?: string;
|
|
5
5
|
expanded?: boolean;
|
|
@@ -8,4 +8,4 @@ export interface AccountSelectorButtonProps extends ButtonProps {
|
|
|
8
8
|
tabIndex?: number;
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const GlobalAccountButton: ({ className, currentAccount, expanded, minimized, loading, ...buttonProps }: GlobalAccountButtonProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ className, currentAccount, expanded, minimized, loading, ...buttonProps }: import('./
|
|
4
|
+
component: ({ className, currentAccount, expanded, minimized, loading, ...buttonProps }: import('./GlobalAccountButton').GlobalAccountButtonProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { AccountSelectorProps } from '../AccountSelector';
|
|
1
2
|
import { BadgeProps } from '../Badge';
|
|
2
3
|
import { GlobalMenuProps, LocaleSwitcherProps } from '../GlobalMenu';
|
|
3
4
|
import { MenuProps } from '../Menu';
|
|
4
|
-
import { AccountSelectorProps } from './AccountSelector.tsx';
|
|
5
5
|
import { HeaderLogoProps } from './HeaderLogo.tsx';
|
|
6
6
|
export interface GlobalHeaderProps {
|
|
7
7
|
globalMenu: GlobalMenuProps;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LayoutColor } from '../Layout';
|
|
2
|
+
import { QueryItemProps } from './QueryLabelItem';
|
|
3
|
+
export interface QueryLabelProps {
|
|
4
|
+
params?: QueryItemProps[];
|
|
5
|
+
size?: QueryItemProps['size'];
|
|
6
|
+
variant?: QueryItemProps['variant'];
|
|
7
|
+
color?: LayoutColor;
|
|
8
|
+
}
|
|
9
|
+
export declare const QueryLabel: ({ params, size, variant, color }: QueryLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type QueryItemType = 'scope' | 'search' | 'filter' | 'connector';
|
|
3
|
+
export type QueryItemSize = 'xs' | 'xxs';
|
|
4
|
+
export type QueryItemVariant = 'default' | 'subtle';
|
|
5
|
+
export interface QueryItemProps {
|
|
6
|
+
type?: QueryItemType;
|
|
7
|
+
size?: QueryItemSize;
|
|
8
|
+
variant?: QueryItemVariant;
|
|
9
|
+
value?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const QueryItem: ({ type, size, variant, children, label }: QueryItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { ButtonProps } from '../Button';
|
|
1
2
|
import { DropdownProps } from '../Dropdown';
|
|
2
3
|
import { MenuProps } from '../Menu/';
|
|
3
4
|
export interface ToolbarMenuProps extends Omit<MenuProps, 'variant'> {
|
|
4
5
|
title?: string;
|
|
5
6
|
label?: string;
|
|
7
|
+
variant?: ButtonProps['variant'];
|
|
6
8
|
dropdownSize?: DropdownProps['size'];
|
|
7
9
|
onSelectId?: (id: string) => void;
|
|
8
10
|
}
|
|
9
|
-
export declare const ToolbarMenu: ({
|
|
11
|
+
export declare const ToolbarMenu: ({ label, variant, title, items, dropdownSize, id, onSelectId, ...props }: ToolbarMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,7 @@ export * from '../types/';
|
|
|
2
2
|
export * from './Attachment';
|
|
3
3
|
export * from './Avatar';
|
|
4
4
|
export * from './Account';
|
|
5
|
+
export * from './AccountSelector';
|
|
5
6
|
export * from './Alert';
|
|
6
7
|
export * from './Badge';
|
|
7
8
|
export * from './Banner';
|
|
@@ -14,13 +15,14 @@ export * from './Dialog';
|
|
|
14
15
|
export * from './Divider';
|
|
15
16
|
export * from './Dropdown';
|
|
16
17
|
export * from './Footer';
|
|
18
|
+
export * from './GlobalHeader';
|
|
17
19
|
export * from './GlobalMenu_old';
|
|
18
20
|
export * from './Header';
|
|
19
21
|
export type { GlobalHeaderProps } from './GlobalHeader';
|
|
20
22
|
export * from './Icon';
|
|
21
23
|
export * from './Item';
|
|
22
24
|
export * from './Layout';
|
|
23
|
-
export * from './
|
|
25
|
+
export * from './Bulk';
|
|
24
26
|
export * from './List';
|
|
25
27
|
export * from './Menu';
|
|
26
28
|
export * from './Metadata';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
tags: string[];
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
};
|
|
7
|
+
args: {};
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
interface DesignToken {
|
|
11
|
+
$type?: "color" | string;
|
|
12
|
+
$value: string;
|
|
13
|
+
$description?: string;
|
|
14
|
+
}
|
|
15
|
+
type TokenGroup = Record<string, DesignToken>;
|
|
16
|
+
type SemanticCategoryMap = Record<string, TokenGroup>;
|
|
17
|
+
export interface DesignTokensSchema {
|
|
18
|
+
color: SemanticCategoryMap;
|
|
19
|
+
}
|
|
20
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import i, { forwardRef as a } from "react";
|
|
3
|
-
import { u as d } from "./useId-BVFxCjkq.js";
|
|
4
|
-
var f = function(t, n) {
|
|
5
|
-
var r = {};
|
|
6
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
7
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
8
|
-
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
9
|
-
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
10
|
-
return r;
|
|
11
|
-
};
|
|
12
|
-
const m = a((t, n) => {
|
|
13
|
-
var { title: r, titleId: e } = t, l = f(t, ["title", "titleId"]);
|
|
14
|
-
let o = d();
|
|
15
|
-
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
16
|
-
"svg",
|
|
17
|
-
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),
|
|
18
|
-
r ? i.createElement("title", { id: o }, r) : null,
|
|
19
|
-
i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M5.97 9.47a.75.75 0 0 1 1.06 0L12 14.44l4.97-4.97a.75.75 0 1 1 1.06 1.06l-5.5 5.5a.75.75 0 0 1-1.06 0l-5.5-5.5a.75.75 0 0 1 0-1.06", clipRule: "evenodd" })
|
|
20
|
-
);
|
|
21
|
-
});
|
|
22
|
-
var c = function(t, n) {
|
|
23
|
-
var r = {};
|
|
24
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
25
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
26
|
-
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
27
|
-
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
28
|
-
return r;
|
|
29
|
-
};
|
|
30
|
-
const v = a((t, n) => {
|
|
31
|
-
var { title: r, titleId: e } = t, l = c(t, ["title", "titleId"]);
|
|
32
|
-
let o = d();
|
|
33
|
-
return o = r ? e || "title-" + o : void 0, i.createElement(
|
|
34
|
-
"svg",
|
|
35
|
-
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),
|
|
36
|
-
r ? i.createElement("title", { id: o }, r) : null,
|
|
37
|
-
i.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M11.47 7.97a.75.75 0 0 1 1.06 0l5.5 5.5a.75.75 0 1 1-1.06 1.06L12 9.56l-4.97 4.97a.75.75 0 0 1-1.06-1.06z", clipRule: "evenodd" })
|
|
38
|
-
);
|
|
39
|
-
});
|
|
40
|
-
export {
|
|
41
|
-
v as S,
|
|
42
|
-
m as a
|
|
43
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._button_18gkt_3{flex-shrink:0;position:relative;display:inline-flex;align-items:center;height:3.25rem;min-width:3.25rem;padding:0 .5rem}._loginButton_18gkt_13{padding:0 .75rem}._avatar_18gkt_17{font-size:2.25rem}._loginIcon_18gkt_21{width:2.25rem;height:2.25rem;background-color:#e0e2e4;border-radius:50%;color:#000;display:flex;justify-content:center;align-items:center}._label_18gkt_32{display:flex;flex-direction:column}._title_18gkt_37{font-size:1rem;line-height:1.2;font-weight:500;color:var(--ds-color-neutral-text-default)}._description_18gkt_44{font-size:.875rem;font-weight:400;color:var(--ds-color-neutral-text-subtle)}._icon_18gkt_50{display:block;font-size:1.5rem;margin:0!important}._badge_18gkt_56{position:absolute;top:0;right:0;margin-top:-.75rem;margin-right:-.75rem}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._footer_fteo0_1{position:fixed;z-index:10;inset:auto 0 0;display:flex;flex-direction:column;row-gap:.5rem;padding:1rem}._footer_fteo0_1{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transform:translateY(0)}._footer_fteo0_1[aria-hidden=true]{transform:translateY(100%)}._footer_fteo0_1[aria-hidden=true] *{display:none}@media(min-width:1024px){._footer_fteo0_1{align-items:center}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._header_f05a9_1{position:fixed;z-index:10;inset:0 0 auto}._header_f05a9_1{background-color:var(--ds-color-base-default);color:var(--ds-color-base-contrast-default);height:76px}._header_f05a9_1{display:flex;align-items:center;justify-content:space-between;padding:1rem}._header_f05a9_1{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transform:translateY(0)}._header_f05a9_1[aria-hidden=true]{transform:translateY(-100%)}._header_f05a9_1[aria-hidden=true] *{display:none}._title_f05a9_38{font-size:1rem;font-weight:400;margin:0 .5rem}._dismiss_f05a9_44[data-variant=solid]{border-color:var(--ds-theme-contrast-subtle)}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as i, jsxs as u } from "react/jsx-runtime";
|
|
3
|
-
import { c as d } from "../../index-p1eeF8LQ.js";
|
|
4
|
-
import g, { forwardRef as b, isValidElement as _ } from "react";
|
|
5
|
-
import { Avatar as p } from "../Avatar/Avatar.js";
|
|
6
|
-
import { Button as m } from "../Button/Button.js";
|
|
7
|
-
import "react-dom";
|
|
8
|
-
import { useRootContext as h } from "../RootProvider/RootProvider.js";
|
|
9
|
-
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { S as v } from "../../XMark-tKk6aExO.js";
|
|
11
|
-
import { S as y } from "../../ChevronUpDown-DqGsU4MC.js";
|
|
12
|
-
import { u as k } from "../../useId-BVFxCjkq.js";
|
|
13
|
-
import '../../assets/AccountSelectorButton.css';var w = function(t, a) {
|
|
14
|
-
var o = {};
|
|
15
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && a.indexOf(e) < 0 && (o[e] = t[e]);
|
|
16
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
17
|
-
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
18
|
-
a.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (o[e[l]] = t[e[l]]);
|
|
19
|
-
return o;
|
|
20
|
-
};
|
|
21
|
-
const N = b((t, a) => {
|
|
22
|
-
var { title: o, titleId: e } = t, l = w(t, ["title", "titleId"]);
|
|
23
|
-
let r = k();
|
|
24
|
-
return r = o ? e || "title-" + r : void 0, g.createElement(
|
|
25
|
-
"svg",
|
|
26
|
-
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: a, "aria-labelledby": r }, l),
|
|
27
|
-
o ? g.createElement("title", { id: r }, o) : null,
|
|
28
|
-
g.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M15.5 3.25a.75.75 0 0 0 0 1.5H19a.25.25 0 0 1 .25.25v14a.25.25 0 0 1-.25.25h-3.5a.75.75 0 0 0 0 1.5H19A1.75 1.75 0 0 0 20.75 19V5A1.75 1.75 0 0 0 19 3.25zM9.97 6.97a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06l3.22-3.22H3.5a.75.75 0 0 1 0-1.5h9.69L9.97 8.03a.75.75 0 0 1 0-1.06", clipRule: "evenodd" })
|
|
29
|
-
);
|
|
30
|
-
}), O = "_button_18gkt_3", x = "_loginButton_18gkt_13", S = "_avatar_18gkt_17", j = "_label_18gkt_32", B = "_title_18gkt_37", E = "_description_18gkt_44", I = "_icon_18gkt_50", n = {
|
|
31
|
-
button: O,
|
|
32
|
-
loginButton: x,
|
|
33
|
-
avatar: S,
|
|
34
|
-
label: j,
|
|
35
|
-
title: B,
|
|
36
|
-
description: E,
|
|
37
|
-
icon: I
|
|
38
|
-
}, z = ({
|
|
39
|
-
className: t,
|
|
40
|
-
currentAccount: a,
|
|
41
|
-
expanded: o = !1,
|
|
42
|
-
minimized: e = !1,
|
|
43
|
-
loading: l = !1,
|
|
44
|
-
...r
|
|
45
|
-
}) => {
|
|
46
|
-
const { languageCode: f } = h(), c = L(f);
|
|
47
|
-
if (l)
|
|
48
|
-
return /* @__PURE__ */ i(
|
|
49
|
-
m,
|
|
50
|
-
{
|
|
51
|
-
...r,
|
|
52
|
-
as: "button",
|
|
53
|
-
type: "button",
|
|
54
|
-
variant: "ghost",
|
|
55
|
-
color: "company",
|
|
56
|
-
className: d(n.button, n.loading, t),
|
|
57
|
-
disabled: !0,
|
|
58
|
-
"aria-label": "loading",
|
|
59
|
-
children: /* @__PURE__ */ i(p, { name: "loading", loading: !0, className: n.avatar })
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
if (a) {
|
|
63
|
-
let s = a.description;
|
|
64
|
-
return a.role === "subunit" && typeof s == "string" && s && (s = `${s.split(",")[0]}, ${c.subunit}`), /* @__PURE__ */ u(
|
|
65
|
-
m,
|
|
66
|
-
{
|
|
67
|
-
...r,
|
|
68
|
-
as: "button",
|
|
69
|
-
type: "button",
|
|
70
|
-
variant: "ghost",
|
|
71
|
-
color: "company",
|
|
72
|
-
className: d(n.button, t),
|
|
73
|
-
"aria-label": o ? c.close : a.name,
|
|
74
|
-
"aria-expanded": o,
|
|
75
|
-
children: [
|
|
76
|
-
/* @__PURE__ */ i(p, { ...a?.icon, className: n.avatar }),
|
|
77
|
-
!e && /* @__PURE__ */ u("div", { className: n.label, children: [
|
|
78
|
-
/* @__PURE__ */ i("span", { className: n.title, children: a.name }),
|
|
79
|
-
/* @__PURE__ */ i("span", { className: n.description, children: typeof s == "string" || _(s) ? s : null })
|
|
80
|
-
] }),
|
|
81
|
-
o ? /* @__PURE__ */ i(v, { className: n.icon, "aria-hidden": !0 }) : /* @__PURE__ */ i(y, { className: n.icon, "aria-hidden": !0 })
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
return o ? null : /* @__PURE__ */ u(
|
|
87
|
-
m,
|
|
88
|
-
{
|
|
89
|
-
...r,
|
|
90
|
-
as: "button",
|
|
91
|
-
type: "button",
|
|
92
|
-
variant: "ghost",
|
|
93
|
-
color: "company",
|
|
94
|
-
"aria-label": c.login,
|
|
95
|
-
className: d(n.button, n.loginButton, t),
|
|
96
|
-
"aria-expanded": o,
|
|
97
|
-
children: [
|
|
98
|
-
!e && /* @__PURE__ */ i("span", { className: n.label, children: c.login }),
|
|
99
|
-
/* @__PURE__ */ i(N, { className: n.icon, "aria-hidden": !0 })
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
}, L = (t) => {
|
|
104
|
-
switch (t) {
|
|
105
|
-
case "nn":
|
|
106
|
-
return {
|
|
107
|
-
login: "Logg inn",
|
|
108
|
-
close: "Lukk kontomeny",
|
|
109
|
-
subunit: "undereining"
|
|
110
|
-
};
|
|
111
|
-
case "en":
|
|
112
|
-
return {
|
|
113
|
-
login: "Log in",
|
|
114
|
-
close: "Close Account Menu",
|
|
115
|
-
subunit: "subunit"
|
|
116
|
-
};
|
|
117
|
-
default:
|
|
118
|
-
return {
|
|
119
|
-
login: "Logg inn",
|
|
120
|
-
close: "Lukk kontomeny",
|
|
121
|
-
subunit: "underenhet"
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
export {
|
|
126
|
-
z as AccountSelectorButton
|
|
127
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/ActionFooter.css';const r = "_footer_fteo0_1", s = {
|
|
3
|
-
footer: r
|
|
4
|
-
}, n = ({ hidden: o = !1, children: t }) => /* @__PURE__ */ e("footer", { className: s.footer, "aria-hidden": o, children: t });
|
|
5
|
-
export {
|
|
6
|
-
n as ActionFooter
|
|
7
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-p1eeF8LQ.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import { Heading as n } from "../Typography/Heading.js";
|
|
5
|
-
import { Button as c } from "../Button/Button.js";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import "../Snackbar/useSnackbar.js";
|
|
9
|
-
import { S as h } from "../../XMark-tKk6aExO.js";
|
|
10
|
-
import '../../assets/ActionHeader.css';const p = "_header_f05a9_1", f = "_title_f05a9_38", _ = "_dismiss_f05a9_44", t = {
|
|
11
|
-
header: p,
|
|
12
|
-
title: f,
|
|
13
|
-
dismiss: _
|
|
14
|
-
}, z = ({
|
|
15
|
-
color: i,
|
|
16
|
-
theme: s,
|
|
17
|
-
hidden: a = !1,
|
|
18
|
-
title: r,
|
|
19
|
-
dismissable: o = !0,
|
|
20
|
-
dismissIconAltText: m = "Close",
|
|
21
|
-
onDismiss: d
|
|
22
|
-
}) => /* @__PURE__ */ l("header", { className: t.header, "aria-hidden": a, "data-color": i, "data-theme": s, children: [
|
|
23
|
-
/* @__PURE__ */ e(n, { size: "sm", className: t.title, children: r }),
|
|
24
|
-
o && /* @__PURE__ */ e(
|
|
25
|
-
c,
|
|
26
|
-
{
|
|
27
|
-
color: i,
|
|
28
|
-
variant: "outline",
|
|
29
|
-
onClick: d,
|
|
30
|
-
className: t.dismiss,
|
|
31
|
-
"aria-label": m,
|
|
32
|
-
children: /* @__PURE__ */ e(h, { style: { fontSize: "1.5em" } })
|
|
33
|
-
}
|
|
34
|
-
)
|
|
35
|
-
] });
|
|
36
|
-
export {
|
|
37
|
-
z as ActionHeader
|
|
38
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-p1eeF8LQ.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "../Button/Button.js";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { LayoutBase as s } from "../Layout/LayoutBase.js";
|
|
8
|
-
import { ActionHeader as f } from "./ActionHeader.js";
|
|
9
|
-
import { ActionFooter as u } from "./ActionFooter.js";
|
|
10
|
-
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { PageMenu as x } from "../Page/PageMenu.js";
|
|
12
|
-
const H = ({
|
|
13
|
-
color: m = "company",
|
|
14
|
-
theme: i = "base",
|
|
15
|
-
hidden: r,
|
|
16
|
-
title: p,
|
|
17
|
-
menu: t,
|
|
18
|
-
dismissable: e,
|
|
19
|
-
onDismiss: a,
|
|
20
|
-
children: c
|
|
21
|
-
}) => /* @__PURE__ */ n(s, { children: [
|
|
22
|
-
/* @__PURE__ */ o(
|
|
23
|
-
f,
|
|
24
|
-
{
|
|
25
|
-
theme: i,
|
|
26
|
-
color: m,
|
|
27
|
-
hidden: r,
|
|
28
|
-
title: p,
|
|
29
|
-
dismissable: e,
|
|
30
|
-
onDismiss: a
|
|
31
|
-
}
|
|
32
|
-
),
|
|
33
|
-
c,
|
|
34
|
-
/* @__PURE__ */ o(u, { hidden: r, children: t && /* @__PURE__ */ o(x, { ...t }) })
|
|
35
|
-
] });
|
|
36
|
-
export {
|
|
37
|
-
H as LayoutAction
|
|
38
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/QueryLabel.css';const o = "_label_1qrdy_1", d = "_group_1qrdy_31", p = "_plus_1qrdy_37", u = "_item_1qrdy_41", a = {
|
|
3
|
-
label: o,
|
|
4
|
-
group: d,
|
|
5
|
-
plus: p,
|
|
6
|
-
item: u
|
|
7
|
-
}, i = ({ type: s = "search", label: l }) => /* @__PURE__ */ e("span", { className: a.item, "data-type": s, children: l }), _ = ({ params: s = [], size: l = "sm", variant: r = "default" }) => /* @__PURE__ */ e("div", { className: a.label, "data-size": l, "data-variant": r, children: s.map((c, t) => /* @__PURE__ */ n("div", { className: a.group, children: [
|
|
8
|
-
/* @__PURE__ */ e(i, { ...c }),
|
|
9
|
-
s[t + 1] && /* @__PURE__ */ e("span", { className: a.plus, children: "+" })
|
|
10
|
-
] }, t)) });
|
|
11
|
-
export {
|
|
12
|
-
i as QueryItem,
|
|
13
|
-
_ as QueryLabel
|
|
14
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Account, GlobalMenuProps_old, MenuProps } from '..';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ accountMenu, menu, backLabel, currentAccount, onSelectAccount, onClose, logoutButton, ariaLabel, }: GlobalMenuProps_old) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
parameters: {};
|
|
8
|
-
args: {
|
|
9
|
-
accountMenu?: import('..').AccountMenuProps;
|
|
10
|
-
menu?: MenuProps;
|
|
11
|
-
menuLabel?: string;
|
|
12
|
-
backLabel?: string;
|
|
13
|
-
logoutButton?: import('./LogoutButton').LogoutButtonProps;
|
|
14
|
-
changeLabel?: string;
|
|
15
|
-
className?: string;
|
|
16
|
-
currentAccount?: Account;
|
|
17
|
-
currentEndUserLabel?: string;
|
|
18
|
-
onSelectAccount?: (id: string) => void;
|
|
19
|
-
onClose?: () => void;
|
|
20
|
-
ariaLabel?: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export default meta;
|
|
24
|
-
type Story = StoryObj<typeof meta>;
|
|
25
|
-
export declare const CurrentAccount: (args: GlobalMenuProps_old) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export declare const CompanyAccount: (args: GlobalMenuProps_old) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export declare const MobileMenu: (args: GlobalMenuProps_old) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export declare const SingleAccount: (args: GlobalMenuProps_old) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export declare const Login: Story;
|
|
30
|
-
export declare const InterimMenu: (args: GlobalMenuProps_old) => import("react/jsx-runtime").JSX.Element;
|