@altinn/altinn-components 0.54.3 → 0.55.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/{PersonCircle-DlX_3kRO.js → ChevronUpDown-DqGsU4MC.js} +5 -5
- package/dist/Eye-BrbjRZJp.js +24 -0
- package/dist/InboxFill-vGck_zM_.js +81 -0
- package/dist/InformationSquare-D3WAxfVw.js +24 -0
- package/dist/Trash-DBcymOP9.js +81 -0
- package/dist/assets/AccountMenuButton.css +1 -1
- package/dist/assets/AccountSelector.css +1 -1
- package/dist/assets/AutocompleteBase.css +1 -1
- package/dist/assets/ButtonGroup.css +1 -1
- package/dist/assets/ButtonIcon.css +1 -1
- package/dist/assets/DashboardCard.css +1 -0
- package/dist/assets/DashboardHeader.css +1 -0
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/Dropdown.css +1 -0
- package/dist/assets/DropdownBase.css +1 -1
- package/dist/assets/GlobalHeader.css +1 -1
- package/dist/assets/ItemControls.css +1 -0
- package/dist/assets/ItemLabel.css +1 -0
- package/dist/assets/ItemMedia.css +1 -0
- package/dist/assets/MenuItem.css +1 -1
- package/dist/assets/MenuListDivider.css +1 -0
- package/dist/assets/MenuListHeading.css +1 -0
- package/dist/assets/MenuListItem.css +1 -0
- package/dist/assets/MenuListSearch.css +1 -0
- package/dist/assets/MetaItemIcon.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/assets/SeenByLogButton.css +1 -0
- package/dist/assets/Switch.css +1 -0
- package/dist/assets/TabMenu.css +1 -0
- package/dist/assets/Tooltip.css +1 -0
- package/dist/assets/menuList.css +1 -0
- package/dist/components/Account/AccountList.js +1 -1
- package/dist/components/Account/AccountListVirtual.js +4 -4
- package/dist/components/Account/AccountMenu.js +14 -11
- package/dist/components/Account/AccountMenuButton.js +58 -56
- package/dist/components/Attachment/AttachmentLink.js +47 -41
- package/dist/components/Avatar/Avatar.js +11 -12
- package/dist/components/Avatar/AvatarGroup.js +38 -28
- package/dist/components/Banner/Banner.js +20 -38
- package/dist/components/Button/ButtonGroup.js +28 -12
- package/dist/components/Button/ButtonIcon.js +15 -15
- package/dist/components/Button/FloatingActionButton.js +22 -19
- package/dist/components/Byline/Byline.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +73 -67
- package/dist/components/Dashboard/DashboardCard.js +24 -21
- package/dist/components/Dashboard/DashboardHeader.js +16 -14
- package/dist/components/Dashboard/index.js +2 -4
- package/dist/components/Datepicker/Datepicker.js +16 -14
- package/dist/components/Datepicker/DatepickerHeader.js +13 -13
- package/dist/components/Dialog/DialogActions.js +9 -9
- package/dist/components/Dialog/DialogAttachments.js +1 -1
- package/dist/components/Dialog/DialogListItem.js +113 -112
- package/dist/components/Dialog/DialogMetadata.js +83 -154
- package/dist/components/Dialog/DialogSeenBy.js +24 -41
- package/dist/components/Dialog/DialogTabs.js +4 -4
- package/dist/components/Dialog/SeenByLog.js +7 -7
- package/dist/components/Dialog/SeenByLogButton.js +12 -6
- package/dist/components/Dropdown/DrawerOrDropdown.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +160 -0
- package/dist/components/Dropdown/DropdownBase.js +12 -12
- package/dist/components/Dropdown/FloatingDropdown.js +119 -74
- package/dist/components/Dropdown/index.js +18 -16
- package/dist/components/DsComponents/index.js +2 -2
- package/dist/components/Forms/SearchField.js +44 -29
- package/dist/components/Forms/Switch.js +10 -8
- package/dist/components/GlobalHeader/AccountSelector.js +55 -55
- package/dist/components/GlobalHeader/GlobalHeader.js +55 -54
- package/dist/components/GlobalHeader/GlobalSearch.js +1 -1
- package/dist/components/GlobalHeader/GlobalSearchButton.js +1 -0
- package/dist/components/GlobalMenu/BackButton.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.js +52 -43
- package/dist/components/GlobalMenu/GlobalMenuButton.js +15 -14
- package/dist/components/GlobalMenu/LocaleSwitcher.js +30 -24
- package/dist/components/GlobalMenu_old/BackButton.js +1 -1
- package/dist/components/GlobalMenu_old/CurrentAccount.js +8 -9
- package/dist/components/GlobalMenu_old/EndUserLabel.js +29 -10
- package/dist/components/GlobalMenu_old/GlobalMenu.js +15 -8
- package/dist/components/GlobalMenu_old/GlobalMenuButton.js +1 -1
- package/dist/components/Header/Header.js +6 -6
- package/dist/components/Header/HeaderBase.js +1 -1
- package/dist/components/Header/LocaleSwitcher.js +10 -10
- package/dist/components/Icon/Icon.js +19 -20
- package/dist/components/Icon/ProgressIcon.js +1 -0
- package/dist/components/Icon/index.js +4 -6
- package/dist/components/Item/ItemControls.js +8 -0
- package/dist/components/Item/ItemLabel.js +34 -0
- package/dist/components/Item/ItemMedia.js +33 -0
- package/dist/components/Item/index.js +8 -0
- package/dist/components/Layout/Layout.js +4 -4
- package/dist/components/Menu/Menu.js +67 -45
- package/dist/components/Menu/MenuItem.js +192 -66
- package/dist/components/Menu/MenuItems.js +154 -71
- package/dist/components/Menu/MenuList.js +39 -0
- package/dist/components/Menu/MenuListDivider.js +8 -0
- package/dist/components/Menu/MenuListGroup.js +7 -0
- package/dist/components/Menu/MenuListHeading.js +7 -0
- package/dist/components/Menu/MenuListItem.js +34 -0
- package/dist/components/Menu/MenuListSearch.js +83 -0
- package/dist/components/Menu/MenuOption.js +4 -87
- package/dist/components/Menu/TabMenu.js +15 -0
- package/dist/components/Menu/VirtualizedMenuItems.js +227 -0
- package/dist/components/Menu/aria.js +9 -0
- package/dist/components/Menu/example.data.js +373 -0
- package/dist/components/Menu/example.hooks.js +75 -0
- package/dist/components/Menu/index.js +24 -25
- package/dist/components/Menu/types.js +1 -0
- package/dist/components/Menu/useDropdownMenuController.js +43 -0
- package/dist/components/Menu/useMenuSearch.js +146 -0
- package/dist/components/Menu/useMenuVirtualization.js +5 -0
- package/dist/components/Metadata/MetaItemIcon.js +4 -4
- package/dist/components/Notifications/NotificationItemBase.js +49 -50
- package/dist/components/Page/ContactButtons.js +13 -10
- package/dist/components/Page/PageTabs.js +4 -13
- package/dist/components/Searchbar/Autocomplete.js +34 -32
- package/dist/components/Searchbar/AutocompleteBase.js +3 -3
- package/dist/components/Searchbar/AutocompleteItem.js +29 -42
- package/dist/components/Settings/SettingsItemBase.js +25 -26
- package/dist/components/Settings/UsedByLog.js +6 -6
- package/dist/components/Toolbar/DatepickerFilter.js +87 -0
- package/dist/components/Toolbar/SelectDateFilter.js +51 -0
- package/dist/components/Toolbar/Toolbar.js +18 -104
- package/dist/components/Toolbar/ToolbarFilter.js +69 -73
- package/dist/components/Toolbar/ToolbarFilterAddMenu.js +82 -0
- package/dist/components/Toolbar/ToolbarFilterButton.js +46 -0
- package/dist/components/Toolbar/ToolbarFilterMenu.js +117 -0
- package/dist/components/Toolbar/ToolbarMenu.js +58 -21
- package/dist/components/Toolbar/ToolbarSearch.js +15 -10
- package/dist/components/Toolbar/example.data.js +388 -0
- package/dist/components/Toolbar/example.hooks.js +68 -0
- package/dist/components/Toolbar/formatDateRange.js +19 -0
- package/dist/components/Toolbar/index.js +12 -14
- package/dist/components/Toolbar/useFilter.js +63 -0
- package/dist/components/Tooltip/Tooltip.js +101 -0
- package/dist/components/Tooltip/index.js +4 -0
- package/dist/components/index.js +389 -386
- package/dist/floating-ui.dom-bEgaHJCq.js +997 -0
- package/dist/global.css +1 -1
- package/dist/hooks/useAccountSelector.js +9 -9
- package/dist/hooks/useMenu.js +48 -47
- package/dist/index--jNxJmA8.js +2000 -0
- package/dist/index.js +402 -399
- package/dist/menuList.module-DFH60CqT.js +6 -0
- package/dist/{textfield-DAuYWtUj.js → textfield-Drdr9bio.js} +40 -39
- package/dist/types/lib/components/Account/AccountList.d.ts +2 -2
- package/dist/types/lib/components/Account/AccountList.stories.d.ts +3 -4
- package/dist/types/lib/components/Account/AccountMenu.d.ts +3 -3
- package/dist/types/lib/components/Account/AccountMenu.stories.d.ts +1 -1
- package/dist/types/lib/components/Account/AccountMenuButton.stories.d.ts +10 -2
- package/dist/types/lib/components/Attachment/AttachmentLink.d.ts +3 -1
- package/dist/types/lib/components/Attachment/AttachmentLink.stories.d.ts +1 -1
- package/dist/types/lib/components/Button/ButtonGroup.d.ts +3 -1
- package/dist/types/lib/components/Button/ButtonGroup.stories.d.ts +1 -1
- package/dist/types/lib/components/Button/FloatingActionButton.d.ts +1 -6
- package/dist/types/lib/components/ContextMenu/ContextMenu.d.ts +7 -8
- package/dist/types/lib/components/Dashboard/DashboardCard.d.ts +2 -2
- package/dist/types/lib/components/Dashboard/DashboardHeader.d.ts +2 -2
- package/dist/types/lib/components/Dashboard/index.d.ts +0 -1
- package/dist/types/lib/components/Dialog/DialogTabs.d.ts +2 -4
- package/dist/types/lib/components/Dialog/SeenByLogButton.d.ts +8 -5
- package/dist/types/lib/components/Dropdown/Dropdown.d.ts +22 -0
- package/dist/types/lib/components/Dropdown/Dropdown.stories.d.ts +14 -0
- package/dist/types/lib/components/Dropdown/DropdownBase.d.ts +3 -2
- package/dist/types/lib/components/Dropdown/index.d.ts +1 -0
- package/dist/types/lib/components/Forms/SearchField.d.ts +2 -1
- package/dist/types/lib/components/Forms/SearchField.stories.d.ts +1 -1
- 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/GlobalMenu/GlobalMenu.d.ts +1 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +1 -3
- package/dist/types/lib/components/GlobalMenu/LocaleSwitcher.d.ts +1 -1
- package/dist/types/lib/components/Header/HeaderButton.d.ts +0 -4
- package/dist/types/lib/components/Header/HeaderButton.stories.d.ts +0 -1
- package/dist/types/lib/components/Icon/Icon.d.ts +3 -2
- package/dist/types/lib/components/Icon/index.d.ts +0 -1
- package/dist/types/lib/components/Item/ItemControls.d.ts +7 -0
- package/dist/types/lib/components/Item/ItemLabel.d.ts +14 -0
- package/dist/types/lib/components/Item/ItemMedia.d.ts +9 -0
- package/dist/types/lib/components/Item/index.d.ts +3 -0
- package/dist/types/lib/components/Menu/Menu.d.ts +4 -7
- package/dist/types/lib/components/Menu/Menu.stories.d.ts +64 -4
- package/dist/types/lib/components/Menu/MenuItem.d.ts +53 -21
- package/dist/types/lib/components/Menu/MenuItems.d.ts +21 -14
- package/dist/types/lib/components/Menu/MenuList.d.ts +21 -0
- package/dist/types/lib/components/Menu/MenuListDivider.d.ts +6 -0
- package/dist/types/lib/components/Menu/MenuListGroup.d.ts +8 -0
- package/dist/types/lib/components/Menu/MenuListHeading.d.ts +8 -0
- package/dist/types/lib/components/Menu/MenuListItem.d.ts +9 -0
- package/dist/types/lib/components/Menu/MenuListSearch.d.ts +15 -0
- package/dist/types/lib/components/Menu/MenuListSearch.stories.d.ts +18 -0
- package/dist/types/lib/components/Menu/MenuOption.d.ts +5 -16
- package/dist/types/lib/components/Menu/TabMenu.d.ts +8 -0
- package/dist/types/lib/components/Menu/VirtualizedMenu.stories.d.ts +22 -0
- package/dist/types/lib/components/Menu/VirtualizedMenuItems.d.ts +2 -0
- package/dist/types/lib/components/Menu/aria.d.ts +1 -0
- package/dist/types/lib/components/Menu/example.hooks.d.ts +24 -0
- package/dist/types/lib/components/Menu/index.d.ts +10 -9
- package/dist/types/lib/components/Menu/types.d.ts +1 -0
- package/dist/types/lib/components/Menu/useDropdownMenuController.d.ts +27 -0
- package/dist/types/lib/components/Menu/useMenuSearch.d.ts +129 -0
- package/dist/types/lib/components/Menu/useMenuVirtualization.d.ts +35 -0
- package/dist/types/lib/components/Page/ContactButtons.d.ts +6 -2
- package/dist/types/lib/components/Page/PageTabs.d.ts +3 -10
- package/dist/types/lib/components/Page/PageTabs.stories.d.ts +1 -1
- package/dist/types/lib/components/Searchbar/AutocompleteItem.d.ts +3 -3
- package/dist/types/lib/components/Searchbar/Searchbar.stories.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/DatepickerFilter.d.ts +15 -0
- package/dist/types/lib/components/Toolbar/SelectDateFilter.d.ts +8 -0
- package/dist/types/lib/components/Toolbar/SelectDateFilter.stories.d.ts +9 -0
- package/dist/types/lib/components/Toolbar/Toolbar.d.ts +6 -19
- package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +21 -19
- package/dist/types/lib/components/Toolbar/ToolbarFilter.d.ts +11 -23
- package/dist/types/lib/components/Toolbar/ToolbarFilter.stories.d.ts +6 -13
- package/dist/types/lib/components/Toolbar/ToolbarFilterAddMenu.d.ts +8 -0
- package/dist/types/lib/components/Toolbar/ToolbarFilterButton.d.ts +15 -0
- package/dist/types/lib/components/Toolbar/ToolbarFilterMenu.d.ts +15 -0
- package/dist/types/lib/components/Toolbar/ToolbarMenu.d.ts +5 -10
- package/dist/types/lib/components/Toolbar/ToolbarSearch.d.ts +3 -5
- package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +635 -1
- package/dist/types/lib/components/Toolbar/example.hooks.d.ts +41 -0
- package/dist/types/lib/components/Toolbar/formatDateRange.d.ts +10 -0
- package/dist/types/lib/components/Toolbar/index.d.ts +4 -5
- package/dist/types/lib/components/Toolbar/useFilter.d.ts +173 -0
- package/dist/types/lib/components/Tooltip/Tooltip.d.ts +8 -0
- package/dist/types/lib/components/Tooltip/Tooltip.stories.d.ts +9 -0
- package/dist/types/lib/components/Tooltip/index.d.ts +1 -0
- package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +2 -2
- package/dist/types/lib/components/Typography/Heading.d.ts +2 -2
- package/dist/types/lib/components/index.d.ts +2 -0
- package/dist/types/lib/hooks/useAccountSelector.d.ts +2 -2
- package/dist/types/lib/hooks/useMenu.d.ts +3 -1
- package/dist/{index-De5bF0Gf.js → useMenuVirtualization-DpvWCsyD.js} +216 -165
- package/package.json +1 -1
- package/dist/assets/ContextMenu.css +0 -1
- package/dist/assets/IconOrAvatar.css +0 -1
- package/dist/assets/MenuBase.css +0 -1
- package/dist/assets/MenuHeader.css +0 -1
- package/dist/assets/MenuInputField.css +0 -1
- package/dist/assets/MenuItemBase.css +0 -1
- package/dist/assets/MenuItemIcon.css +0 -1
- package/dist/assets/MenuItemLabel.css +0 -1
- package/dist/assets/MenuItemsVirtual.css +0 -1
- package/dist/assets/MenuOption.css +0 -1
- package/dist/assets/MenuSearch.css +0 -1
- package/dist/assets/PageTabs.css +0 -1
- package/dist/assets/ToolbarBase.css +0 -1
- package/dist/assets/ToolbarButton.css +0 -1
- package/dist/assets/ToolbarDaterange.css +0 -1
- package/dist/assets/ToolbarFilterBase.css +0 -1
- package/dist/components/Dashboard/DashboardIcon.js +0 -11
- package/dist/components/Datepicker/DatepickerBase.js +0 -8
- package/dist/components/GlobalMenu/EndUserLabel.js +0 -13
- package/dist/components/GlobalMenu/LocaleButton.js +0 -13
- package/dist/components/Icon/IconOrAvatar.js +0 -33
- package/dist/components/Menu/MenuBase.js +0 -56
- package/dist/components/Menu/MenuHeader.js +0 -8
- package/dist/components/Menu/MenuInputField.js +0 -31
- package/dist/components/Menu/MenuItemBase.js +0 -58
- package/dist/components/Menu/MenuItemIcon.js +0 -27
- package/dist/components/Menu/MenuItemLabel.js +0 -76
- package/dist/components/Menu/MenuItemsVirtual.js +0 -168
- package/dist/components/Menu/MenuSearch.js +0 -41
- package/dist/components/Toolbar/ToolbarAccountMenu.js +0 -52
- package/dist/components/Toolbar/ToolbarAdd.js +0 -24
- package/dist/components/Toolbar/ToolbarBase.js +0 -8
- package/dist/components/Toolbar/ToolbarButton.js +0 -115
- package/dist/components/Toolbar/ToolbarDaterange.js +0 -58
- package/dist/components/Toolbar/ToolbarFilterBase.js +0 -17
- package/dist/components/Toolbar/ToolbarOptions.js +0 -84
- package/dist/index-DttADHE1.js +0 -2993
- package/dist/types/lib/components/ContextMenu/ContextMenu.stories.d.ts +0 -8
- package/dist/types/lib/components/Dashboard/DashboardIcon.d.ts +0 -7
- package/dist/types/lib/components/Datepicker/DatepickerBase.d.ts +0 -6
- package/dist/types/lib/components/GlobalMenu/EndUserLabel.d.ts +0 -5
- package/dist/types/lib/components/GlobalMenu/LocaleButton.d.ts +0 -3
- package/dist/types/lib/components/Icon/IconOrAvatar.d.ts +0 -13
- package/dist/types/lib/components/Menu/MenuBase.d.ts +0 -42
- package/dist/types/lib/components/Menu/MenuHeader.d.ts +0 -4
- package/dist/types/lib/components/Menu/MenuInputField.d.ts +0 -12
- package/dist/types/lib/components/Menu/MenuItemBase.d.ts +0 -28
- package/dist/types/lib/components/Menu/MenuItemIcon.d.ts +0 -10
- package/dist/types/lib/components/Menu/MenuItemLabel.d.ts +0 -15
- package/dist/types/lib/components/Menu/MenuItemsVirtual.d.ts +0 -2
- package/dist/types/lib/components/Menu/MenuSearch.d.ts +0 -10
- package/dist/types/lib/components/Menu/MenuSearch.stories.d.ts +0 -18
- package/dist/types/lib/components/Toolbar/ToolbarAccountMenu.d.ts +0 -8
- package/dist/types/lib/components/Toolbar/ToolbarAdd.d.ts +0 -8
- package/dist/types/lib/components/Toolbar/ToolbarAdd.stories.d.ts +0 -13
- package/dist/types/lib/components/Toolbar/ToolbarBase.d.ts +0 -5
- package/dist/types/lib/components/Toolbar/ToolbarButton.d.ts +0 -16
- package/dist/types/lib/components/Toolbar/ToolbarButton.stories.d.ts +0 -15
- package/dist/types/lib/components/Toolbar/ToolbarDate.stories.d.ts +0 -26
- package/dist/types/lib/components/Toolbar/ToolbarDaterange.d.ts +0 -11
- package/dist/types/lib/components/Toolbar/ToolbarDaterange.stories.d.ts +0 -15
- package/dist/types/lib/components/Toolbar/ToolbarFilterBase.d.ts +0 -8
- package/dist/types/lib/components/Toolbar/ToolbarMenu.stories.d.ts +0 -19
- package/dist/types/lib/components/Toolbar/ToolbarOptions.d.ts +0 -22
- package/dist/types/lib/components/Toolbar/ToolbarOptions.stories.d.ts +0 -12
- /package/dist/assets/{DatepickerBase.css → Datepicker.css} +0 -0
- /package/dist/types/lib/components/GlobalHeader/{AccountSector.stories.d.ts → AccountSelector.stories.d.ts} +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { MenuProps } from './Menu';
|
|
2
|
+
import { MenuListSearchProps } from './MenuListSearch';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
type SearchProps = Omit<MenuListSearchProps, 'name'> & {
|
|
5
|
+
name?: string;
|
|
6
|
+
};
|
|
7
|
+
interface UseMenuSearchProps extends Pick<SearchProps, 'placeholder' | 'name' | 'onChange' | 'onClear' | 'clearButtonAltText'> {
|
|
8
|
+
items?: MenuProps['items'];
|
|
9
|
+
groups?: MenuProps['groups'];
|
|
10
|
+
}
|
|
11
|
+
export declare const useMenuSearch: ({ placeholder, name, onChange, onClear, clearButtonAltText, items, groups, }: UseMenuSearchProps) => {
|
|
12
|
+
search: {
|
|
13
|
+
placeholder: string;
|
|
14
|
+
name: string;
|
|
15
|
+
value: string;
|
|
16
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
+
onClear: () => void;
|
|
18
|
+
clearButtonAltText: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
results: {
|
|
21
|
+
searchWords: string[];
|
|
22
|
+
id?: string;
|
|
23
|
+
groupId?: string;
|
|
24
|
+
role?: import('./MenuItem').MenuItemRole;
|
|
25
|
+
as?: React.ElementType;
|
|
26
|
+
size?: import('./MenuItem').MenuItemSize;
|
|
27
|
+
variant?: import('./MenuItem').MenuItemVariant;
|
|
28
|
+
color?: import('./MenuItem').MenuItemColor;
|
|
29
|
+
icon?: import('..').IconProps | import('..').SvgElement | import('..').AvatarProps | import('..').AvatarGroupProps;
|
|
30
|
+
title?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
label?: React.ReactNode | (() => React.ReactElement);
|
|
33
|
+
badge?: import('..').BadgeProps;
|
|
34
|
+
controls?: React.ReactNode;
|
|
35
|
+
count?: number;
|
|
36
|
+
highlightWords?: string[];
|
|
37
|
+
items?: import('./MenuItem').MenuItemProps[];
|
|
38
|
+
tabIndex?: number;
|
|
39
|
+
expanded?: boolean;
|
|
40
|
+
hidden?: boolean;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
selected?: boolean;
|
|
43
|
+
active?: boolean;
|
|
44
|
+
className?: string;
|
|
45
|
+
linkIcon?: boolean;
|
|
46
|
+
href?: string;
|
|
47
|
+
onClick?: () => void;
|
|
48
|
+
onKeyPress?: React.KeyboardEventHandler;
|
|
49
|
+
onMouseEnter?: React.MouseEventHandler;
|
|
50
|
+
name?: string;
|
|
51
|
+
value?: string | number;
|
|
52
|
+
checked?: boolean;
|
|
53
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
54
|
+
'data-testid'?: string;
|
|
55
|
+
"aria-activedescendant"?: string | undefined;
|
|
56
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
57
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
58
|
+
"aria-braillelabel"?: string | undefined;
|
|
59
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
60
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
61
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
62
|
+
"aria-colcount"?: number | undefined;
|
|
63
|
+
"aria-colindex"?: number | undefined;
|
|
64
|
+
"aria-colindextext"?: string | undefined;
|
|
65
|
+
"aria-colspan"?: number | undefined;
|
|
66
|
+
"aria-controls"?: string | undefined;
|
|
67
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
68
|
+
"aria-describedby"?: string | undefined;
|
|
69
|
+
"aria-description"?: string | undefined;
|
|
70
|
+
"aria-details"?: string | undefined;
|
|
71
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
72
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
73
|
+
"aria-errormessage"?: string | undefined;
|
|
74
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
75
|
+
"aria-flowto"?: string | undefined;
|
|
76
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
77
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
78
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
79
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
80
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
81
|
+
"aria-label"?: string | undefined;
|
|
82
|
+
"aria-labelledby"?: string | undefined;
|
|
83
|
+
"aria-level"?: number | undefined;
|
|
84
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
85
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
86
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
87
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
88
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
89
|
+
"aria-owns"?: string | undefined;
|
|
90
|
+
"aria-placeholder"?: string | undefined;
|
|
91
|
+
"aria-posinset"?: number | undefined;
|
|
92
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
93
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
94
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
95
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
96
|
+
"aria-roledescription"?: string | undefined;
|
|
97
|
+
"aria-rowcount"?: number | undefined;
|
|
98
|
+
"aria-rowindex"?: number | undefined;
|
|
99
|
+
"aria-rowindextext"?: string | undefined;
|
|
100
|
+
"aria-rowspan"?: number | undefined;
|
|
101
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
102
|
+
"aria-setsize"?: number | undefined;
|
|
103
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
104
|
+
"aria-valuemax"?: number | undefined;
|
|
105
|
+
"aria-valuemin"?: number | undefined;
|
|
106
|
+
"aria-valuenow"?: number | undefined;
|
|
107
|
+
"aria-valuetext"?: string | undefined;
|
|
108
|
+
}[];
|
|
109
|
+
resultCount: number;
|
|
110
|
+
hasQuery: boolean;
|
|
111
|
+
items: {
|
|
112
|
+
id?: string;
|
|
113
|
+
}[];
|
|
114
|
+
groups: {
|
|
115
|
+
search: {
|
|
116
|
+
hidden: boolean;
|
|
117
|
+
title: string;
|
|
118
|
+
};
|
|
119
|
+
selected: {
|
|
120
|
+
hidden: boolean;
|
|
121
|
+
title: string;
|
|
122
|
+
};
|
|
123
|
+
emptySearch: {
|
|
124
|
+
hidden: boolean;
|
|
125
|
+
title: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface UseMenuVirtualizationProps<TItemProps = {
|
|
2
|
+
[key: string]: unknown;
|
|
3
|
+
}> {
|
|
4
|
+
menu: Array<{
|
|
5
|
+
items: Array<{
|
|
6
|
+
props?: TItemProps & {
|
|
7
|
+
hidden?: boolean;
|
|
8
|
+
};
|
|
9
|
+
active?: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
props?: {
|
|
12
|
+
title?: string;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
16
|
+
scrollRef: React.RefObject<HTMLUListElement>;
|
|
17
|
+
open?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const useMenuVirtualization: <TItemProps = {
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}>({ menu, scrollRef, }: UseMenuVirtualizationProps<TItemProps>) => {
|
|
22
|
+
flatMenu: ({
|
|
23
|
+
type: "item";
|
|
24
|
+
itemProps: TItemProps;
|
|
25
|
+
active: boolean | undefined;
|
|
26
|
+
} | {
|
|
27
|
+
type: "divider";
|
|
28
|
+
title?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
type: "header";
|
|
31
|
+
title: string;
|
|
32
|
+
})[];
|
|
33
|
+
virtualizer: import('@tanstack/react-virtual').Virtualizer<HTMLUListElement, Element>;
|
|
34
|
+
scrollMaxHeight: number;
|
|
35
|
+
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { ButtonProps } from '..';
|
|
2
|
-
export interface ContactButtonProps
|
|
1
|
+
import { ButtonIconProps, ButtonProps } from '..';
|
|
2
|
+
export interface ContactButtonProps {
|
|
3
|
+
as?: ButtonProps['as'];
|
|
4
|
+
href?: ButtonProps['href'];
|
|
5
|
+
onClick?: ButtonProps['onClick'];
|
|
6
|
+
icon?: ButtonIconProps['icon'];
|
|
3
7
|
label: string;
|
|
4
8
|
}
|
|
5
9
|
export interface ContactButtonsProps {
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
id?: string;
|
|
5
|
-
variant?: MenuVariant;
|
|
6
|
-
color?: MenuItemColor;
|
|
7
|
-
padding?: PageTabsPadding;
|
|
8
|
-
items?: MenuItemProps[];
|
|
9
|
-
}
|
|
10
|
-
export declare const PageTabs: ({ variant, color, items, padding }: PageTabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { TabMenuProps } from '../Menu/TabMenu';
|
|
2
|
+
/** PageTabs is deprecated. Use TabMenu instead. */
|
|
3
|
+
export declare const PageTabs: (props: TabMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: (
|
|
4
|
+
component: (props: import('../Menu').TabMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
parameters: {};
|
|
7
7
|
args: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BadgeProps, MenuItemProps, QueryItemProps } from '..';
|
|
2
|
-
export type AutocompleteItemType = 'scope' | 'suggest' | 'dialog' | 'bookmark' | 'information';
|
|
2
|
+
export type AutocompleteItemType = 'scope' | 'suggest' | 'dialog' | 'bookmark' | 'information' | 'menuitem';
|
|
3
3
|
export interface AutocompleteItemProps extends MenuItemProps {
|
|
4
|
-
|
|
4
|
+
role?: AutocompleteItemType;
|
|
5
5
|
/** Badge */
|
|
6
6
|
badge?: BadgeProps;
|
|
7
7
|
/** Query params */
|
|
8
8
|
params?: QueryItemProps[];
|
|
9
9
|
}
|
|
10
|
-
export declare const AutocompleteItem: ({
|
|
10
|
+
export declare const AutocompleteItem: ({ role, params, badge, label, size, ...props }: AutocompleteItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,7 +20,7 @@ export declare const InboxScopesExpanded: () => import("react/jsx-runtime").JSX.
|
|
|
20
20
|
export declare const Expanded: Story;
|
|
21
21
|
export declare const ControlledState: {
|
|
22
22
|
(args: SearchbarProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
play({ canvasElement
|
|
23
|
+
play({ canvasElement }: {
|
|
24
24
|
canvasElement: HTMLElement;
|
|
25
25
|
}): Promise<void>;
|
|
26
26
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface DatepickerValue {
|
|
2
|
+
fromDate?: string;
|
|
3
|
+
toDate?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface DatepickerFilterProps {
|
|
6
|
+
backLabel?: string;
|
|
7
|
+
fromLabel?: string;
|
|
8
|
+
toLabel?: string;
|
|
9
|
+
selectFromDateLabel?: string;
|
|
10
|
+
selectToDateLabel?: string;
|
|
11
|
+
formData: DatepickerValue;
|
|
12
|
+
onChange?: (value: DatepickerValue) => void;
|
|
13
|
+
onSubmit?: (value: DatepickerValue) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const DatepickerFilter: ({ backLabel, fromLabel, selectFromDateLabel, toLabel, selectToDateLabel, formData, onChange, onSubmit, }: DatepickerFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MenuProps } from '../Menu';
|
|
2
|
+
import { FilterState } from './useFilter';
|
|
3
|
+
export interface SelectDateFilterProps extends MenuProps {
|
|
4
|
+
name: string;
|
|
5
|
+
filterState?: FilterState;
|
|
6
|
+
onFilterStateChange?: (state: FilterState) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SelectDateFilter: ({ name, size, searchable, keyboardEvents, items, groups, filterState, onFilterStateChange, }: SelectDateFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: ({ name, size, searchable, keyboardEvents, items, groups, filterState, onFilterStateChange, }: import('./SelectDateFilter').SelectDateFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
parameters: {};
|
|
5
|
+
args: {};
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export declare const Datepicker: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const CustomName: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { MenuOptionType } from '../Menu';
|
|
3
|
-
import { ToolbarAccountMenuProps } from './ToolbarAccountMenu.tsx';
|
|
4
2
|
import { ToolbarFilterProps } from './ToolbarFilter.tsx';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
export type FilterValue = string | number;
|
|
3
|
+
import { ToolbarMenuProps } from './ToolbarMenu';
|
|
4
|
+
import { ToolbarSearchProps } from './ToolbarSearch';
|
|
8
5
|
export interface ToolbarProps {
|
|
9
|
-
accountMenu?:
|
|
10
|
-
|
|
6
|
+
accountMenu?: ToolbarMenuProps;
|
|
7
|
+
menus?: ToolbarMenuProps[];
|
|
11
8
|
search?: ToolbarSearchProps;
|
|
12
|
-
|
|
13
|
-
getFilterLabel?: (name: string, value: FilterValue[] | undefined) => string;
|
|
14
|
-
onFilterStateChange?: (state: FilterState) => void;
|
|
15
|
-
showResultsLabel?: string;
|
|
16
|
-
addFilterButtonLabel?: string;
|
|
17
|
-
removeButtonAltText?: string;
|
|
9
|
+
filter?: ToolbarFilterProps;
|
|
18
10
|
children?: ReactNode;
|
|
19
11
|
}
|
|
20
|
-
export
|
|
21
|
-
name: string;
|
|
22
|
-
value: FilterValue;
|
|
23
|
-
type: MenuOptionType;
|
|
24
|
-
}
|
|
25
|
-
export declare const Toolbar: ({ filters, filterState, onFilterStateChange, search, accountMenu, getFilterLabel, children, showResultsLabel, removeButtonAltText, addFilterButtonLabel, }: ToolbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const Toolbar: ({ accountMenu, menus, search, filter, children }: ToolbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ToolbarFilterProps } from './';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({
|
|
5
|
-
tags: string[];
|
|
4
|
+
component: ({ accountMenu, menus, search, filter, children }: import('./Toolbar').ToolbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
parameters: {};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react-vite').ReactRenderer, {
|
|
7
|
+
accountMenu?: import('./ToolbarMenu').ToolbarMenuProps | undefined;
|
|
8
|
+
menus?: import('./ToolbarMenu').ToolbarMenuProps[] | undefined;
|
|
9
|
+
search?: import('./ToolbarSearch').ToolbarSearchProps | undefined;
|
|
10
|
+
filter?: ToolbarFilterProps | undefined;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}>, _: import('storybook/internal/csf').StoryContext<import('@storybook/react-vite').ReactRenderer, {
|
|
13
|
+
accountMenu?: import('./ToolbarMenu').ToolbarMenuProps | undefined;
|
|
14
|
+
menus?: import('./ToolbarMenu').ToolbarMenuProps[] | undefined;
|
|
15
|
+
search?: import('./ToolbarSearch').ToolbarSearchProps | undefined;
|
|
16
|
+
filter?: ToolbarFilterProps | undefined;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
19
|
+
args: {};
|
|
10
20
|
};
|
|
11
21
|
export default meta;
|
|
12
|
-
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const HiddenFilters: Story;
|
|
18
|
-
export declare const WithAccountMenu: Story;
|
|
19
|
-
export declare const WithSearch: Story;
|
|
20
|
-
export declare const LongListAccounts: Story;
|
|
21
|
-
export declare const ControlledStateFilters: Story;
|
|
22
|
-
export declare const ControlledStateAccount: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export declare const CombinedRadioCheckboxFilter: () => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export declare const SelectSubaccount: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const Composition: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const SearchAndFilter: () => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const SearchAndSwitch: () => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const AccountMenuAndFilters: () => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const AccountMenuAndSearch: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FilterChangePayload, FilterState, ToolbarSearchProps } from '../';
|
|
3
|
-
import { MenuOptionProps } from '../Menu';
|
|
4
|
-
import { OptionGroup } from './ToolbarOptions';
|
|
5
|
-
type ToolbarFilterValue = (string | number)[];
|
|
1
|
+
import { FilterProps, FilterState } from './useFilter';
|
|
6
2
|
export interface ToolbarFilterProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
filters: FilterProps[];
|
|
4
|
+
addLabel?: string;
|
|
5
|
+
addNextLabel?: string;
|
|
6
|
+
resetLabel?: string;
|
|
7
|
+
removeLabel?: string;
|
|
8
|
+
submitLabel?: string;
|
|
9
|
+
getFilterLabel?: (name: string, filterValues: (string | number)[] | undefined) => string | undefined;
|
|
14
10
|
filterState?: FilterState;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
getSelectedLabel?: (name: string, value?: ToolbarFilterValue) => string;
|
|
18
|
-
buttonAltText?: string;
|
|
19
|
-
className?: string;
|
|
20
|
-
onChange?: (payload: FilterChangePayload) => void;
|
|
21
|
-
onRemove?: MouseEventHandler;
|
|
22
|
-
showResultsLabel?: string;
|
|
23
|
-
search?: ToolbarSearchProps;
|
|
11
|
+
onFilterStateChange?: (state: FilterState) => void;
|
|
12
|
+
virtualized?: boolean;
|
|
24
13
|
}
|
|
25
|
-
export declare const ToolbarFilter: ({
|
|
26
|
-
export {};
|
|
14
|
+
export declare const ToolbarFilter: ({ filters, filterState, onFilterStateChange, addLabel, addNextLabel, resetLabel, removeLabel, submitLabel, getFilterLabel, virtualized, }: ToolbarFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({
|
|
5
|
-
tags: string[];
|
|
4
|
+
component: ({ filters, filterState, onFilterStateChange, addLabel, addNextLabel, resetLabel, removeLabel, submitLabel, getFilterLabel, virtualized, }: import('./ToolbarFilter').ToolbarFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
parameters: {};
|
|
7
|
-
args: {
|
|
8
|
-
label: string;
|
|
9
|
-
options: {
|
|
10
|
-
label: string;
|
|
11
|
-
value: string;
|
|
12
|
-
count: number;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
6
|
+
args: {};
|
|
15
7
|
};
|
|
16
8
|
export default meta;
|
|
17
9
|
type Story = StoryObj<typeof meta>;
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
10
|
+
export declare const Uncontrolled: Story;
|
|
11
|
+
export declare const Controlled: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const Removable: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Datepicker: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FilterProps } from './useFilter.tsx';
|
|
2
|
+
export interface ToolbarFilterAddMenuProps extends FilterProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onToggle: () => void;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
onAdd?: (name: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const ToolbarFilterAddMenu: ({ label, items, groups, onAdd, onToggle, onClose, open, }: ToolbarFilterAddMenuProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface ToolbarFilterButtonProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
value?: (string | number)[] | undefined;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
onRemove?: () => void;
|
|
7
|
+
removable?: boolean;
|
|
8
|
+
removeLabel?: string;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
menuId?: string;
|
|
12
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
13
|
+
}
|
|
14
|
+
export declare function ToolbarFilterButton({ name, value, onClick, removable, removeLabel, onRemove, children, open, ref, }: ToolbarFilterButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
import { FilterProps, FilterState } from './useFilter.tsx';
|
|
3
|
+
export interface ToolbarFilterMenuProps extends FilterProps {
|
|
4
|
+
as?: ElementType;
|
|
5
|
+
open: boolean;
|
|
6
|
+
onToggle: () => void;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onRemove?: () => void;
|
|
9
|
+
filterState?: FilterState;
|
|
10
|
+
onFilterStateChange?: (state: FilterState) => void;
|
|
11
|
+
onFilterChange?: (type: string, name: string, value: string) => void;
|
|
12
|
+
removeLabel?: string;
|
|
13
|
+
submitLabel?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const ToolbarFilterMenu: ({ as, size, name, label, searchable, groups, items, removable, removeLabel, filterState, onFilterStateChange, onFilterChange, onRemove, open, onToggle, onClose, submitLabel, search, virtualized, }: ToolbarFilterMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ToolbarMenuProps {
|
|
3
|
-
label: string;
|
|
4
|
-
value: string | number;
|
|
1
|
+
import { MenuProps } from '../Menu/';
|
|
2
|
+
export interface ToolbarMenuProps extends MenuProps {
|
|
5
3
|
title?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
search?: MenuSearchProps;
|
|
9
|
-
id?: string;
|
|
10
|
-
className?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
onSelectId?: (id: string) => void;
|
|
11
6
|
}
|
|
12
|
-
export declare const ToolbarMenu: ({
|
|
7
|
+
export declare const ToolbarMenu: ({ title, label, items, onSelectId, ...props }: ToolbarMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { SearchFieldProps } from '../';
|
|
1
|
+
import { SearchFieldProps } from '../Forms';
|
|
2
2
|
export interface ToolbarSearchProps extends SearchFieldProps {
|
|
3
|
-
|
|
4
|
-
name: string;
|
|
5
|
-
value?: string;
|
|
3
|
+
collapsible?: boolean;
|
|
6
4
|
}
|
|
7
|
-
export declare const ToolbarSearch: ({ value, name, placeholder, clearButtonAltText, onChange, onClear, }: ToolbarSearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ToolbarSearch: ({ value, name, placeholder, collapsible, clearButtonAltText, onChange, onClear, }: ToolbarSearchProps) => import("react/jsx-runtime").JSX.Element;
|