@foris/avocado-suite 1.8.13 → 1.8.15

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.
@@ -1,7 +1,13 @@
1
1
  import { FC } from 'react';
2
+ import type { IconTypes } from '../../../../avocado-icons';
2
3
  import { AccountDetailsProps } from './components/account-details/AccountDetails';
3
4
  import { MenuLocaleDropdownProps } from './components/menu-locale-dropdown/MenuLocaleDropdown';
4
5
  import { SwitchThemeProps } from '../switch-theme/SwitchTheme';
6
+ export type AccountMenuFooterAction = {
7
+ label: string;
8
+ icon?: IconTypes;
9
+ onClick: () => void;
10
+ };
5
11
  export interface AccountMenuProps {
6
12
  className?: string;
7
13
  accountDetails?: AccountDetailsProps;
@@ -12,6 +18,7 @@ export interface AccountMenuProps {
12
18
  showTheme?: boolean;
13
19
  };
14
20
  isOpen?: boolean;
21
+ footerAction?: AccountMenuFooterAction;
15
22
  onLogout?: () => void;
16
23
  }
17
24
  declare const AccountMenu: FC<AccountMenuProps>;
@@ -2,6 +2,7 @@ import { FC } from 'react';
2
2
  import { AccountDetailsProps } from '../account-menu/components/account-details/AccountDetails';
3
3
  import { AccessPanelProps } from '../access-panel/AccessPanel';
4
4
  import { LogoProps } from './components/logo/Logo';
5
+ import { type AccountMenuFooterAction } from '../account-menu/AccountMenu';
5
6
  export interface HeaderProps {
6
7
  isSticky?: boolean;
7
8
  classNames?: {
@@ -15,6 +16,7 @@ export interface HeaderProps {
15
16
  accountDetails?: AccountDetailsProps;
16
17
  showThemeSwitch?: boolean;
17
18
  showLocaleSelector?: boolean;
19
+ footerAction?: AccountMenuFooterAction;
18
20
  onLogout?: () => void;
19
21
  };
20
22
  accessPanelProps?: Omit<AccessPanelProps, 'isOpen' | 'className'>;
package/dist/index.d.ts CHANGED
@@ -80,6 +80,7 @@ export type { TextProps } from './components/text/Text';
80
80
  export type { TabsProps } from './components/tabs/Tabs';
81
81
  export type { TimerTime } from './components/timer/Timer';
82
82
  export type { ModalProps } from './components/modal/Modal';
83
+ export type { AccountMenuFooterAction, AccountMenuProps, } from './components/account-menu/AccountMenu';
83
84
  export type { DrawerProps } from './components/drawer/Drawer';
84
85
  export type { PillProps } from './components/Pill/Pill';
85
86
  export type { PreviewerMarkdownProps } from './components/previewer-markdown/PreviewerMarkdown';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foris/avocado-suite",
3
- "version": "1.8.13",
3
+ "version": "1.8.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,8 +33,8 @@
33
33
  "react-select-async-paginate": "0.7.3",
34
34
  "react-toastify": "9.0.3",
35
35
  "zustand": "4.5.4",
36
- "@foris/avocado-core": "1.3.0",
37
- "@foris/avocado-icons": "1.16.6"
36
+ "@foris/avocado-core": "1.3.1",
37
+ "@foris/avocado-icons": "1.16.7"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@testing-library/jest-dom": "6.4.0",