@up42/up-components 4.8.0 → 4.9.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.
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { SxProps } from '@mui/material';
3
+ import { IconProps } from 'components/Icon/Icon';
4
+ export type IconAction = {
5
+ name: IconProps['name'];
6
+ tooltip?: string;
7
+ isActive?: boolean;
8
+ onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
9
+ isDisabled?: boolean;
10
+ sx?: SxProps;
11
+ };
12
+ export type MenuAction = {
13
+ label: string;
14
+ onClick: (event: React.MouseEvent<HTMLLIElement>) => void;
15
+ sx?: SxProps;
16
+ };
17
+ export type FeatureCardHeaderActionsProps = {
18
+ iconActions?: IconAction[];
19
+ menuActions?: MenuAction[];
20
+ };
21
+ export declare const FeatureCardHeaderActions: ({ iconActions, menuActions }: FeatureCardHeaderActionsProps) => React.JSX.Element;
@@ -46,6 +46,7 @@ export { Tag, type TagProps } from './components/Tag/Tag';
46
46
  export { DateTime, type DateTimeProps } from './components/DateTime/DateTime';
47
47
  export { Divider, type DividerProps } from './components/Divider/Divider';
48
48
  export { FeatureCard, type FeatureCardProps } from './components/FeatureCard/FeatureCard';
49
+ export { FeatureCardHeaderActions, type IconAction, type MenuAction, type FeatureCardHeaderActionsProps, } from './components/FeatureCardHeaderActions/FeatureCardHeaderActions';
49
50
  export { DocumentationPopover, type DocumentationPopoverProps, } from './components/DocumentationPopover/DocumentationPopover';
50
51
  export { CodeInline, type CodeInlineProps } from './components/CodeInline/CodeInline';
51
52
  export { CodeSnippet, type CodeSnippetProps, type CodeSnippetItemProps } from './components/CodeSnippet/CodeSnippet';