@up42/up-components 4.7.1 → 4.8.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/cjs/index.js +2 -2
- package/dist/cjs/types/components/FeatureCard/FeatureCard.d.ts +30 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/FeatureCard/FeatureCard.d.ts +30 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +31 -2
- package/package.json +2 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { CardProps } from '@mui/material';
|
|
3
|
+
export type FeatureCardProps = CardProps & {
|
|
4
|
+
banner?: ReactNode;
|
|
5
|
+
header?: {
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
actions?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
footer?: {
|
|
10
|
+
info?: ReactNode;
|
|
11
|
+
actions?: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Whether the card is selectable.
|
|
15
|
+
*/
|
|
16
|
+
isSelectable?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Applies the selected state to the card from the parent.
|
|
19
|
+
*/
|
|
20
|
+
selected?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the card is hoverable.
|
|
23
|
+
*/
|
|
24
|
+
isHoverable?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Applies the hovered state to the card from the parent.
|
|
27
|
+
*/
|
|
28
|
+
hovered?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare const FeatureCard: ({ children, header, footer, banner, isSelectable, selected, isHoverable, hovered, ...props }: FeatureCardProps) => React.JSX.Element;
|
|
@@ -45,6 +45,7 @@ export { Badge, type BadgeProps } from './components/Badge/Badge';
|
|
|
45
45
|
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
|
+
export { FeatureCard, type FeatureCardProps } from './components/FeatureCard/FeatureCard';
|
|
48
49
|
export { DocumentationPopover, type DocumentationPopoverProps, } from './components/DocumentationPopover/DocumentationPopover';
|
|
49
50
|
export { CodeInline, type CodeInlineProps } from './components/CodeInline/CodeInline';
|
|
50
51
|
export { CodeSnippet, type CodeSnippetProps, type CodeSnippetItemProps } from './components/CodeSnippet/CodeSnippet';
|