greenole-design-system 1.1.83 → 1.1.85
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/components/Card/Card.d.ts +17 -2
- package/dist/components/Card/Card.stories.d.ts +5 -4
- package/dist/components/Card/Card.styles.d.ts +13 -10
- package/dist/components/Card/Card.types.d.ts +28 -19
- package/dist/components/Card/index.d.ts +1 -4
- package/dist/components/Table/Table.stories.d.ts +1 -0
- package/dist/components/Table/Table.types.d.ts +1 -0
- package/dist/greenole-design-system.cjs.js +366 -349
- package/dist/greenole-design-system.js +4181 -4117
- package/dist/greenole.css +9 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/Card/CardBody.d.ts +0 -4
- package/dist/components/Card/CardFooter.d.ts +0 -4
- package/dist/components/Card/CardHeader.d.ts +0 -4
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { CardProps } from './Card.types';
|
|
3
|
-
declare const
|
|
2
|
+
import { CardContentProps, CardDescriptionProps, CardProps, CardSectionProps, CardTitleProps } from './Card.types';
|
|
3
|
+
declare const CardHeader: React.FC<CardSectionProps>;
|
|
4
|
+
declare const CardTitle: React.FC<CardTitleProps>;
|
|
5
|
+
declare const CardDescription: React.FC<CardDescriptionProps>;
|
|
6
|
+
declare const CardAction: React.FC<CardSectionProps>;
|
|
7
|
+
declare const CardContent: React.FC<CardContentProps>;
|
|
8
|
+
declare const CardFooter: React.FC<CardSectionProps>;
|
|
9
|
+
type CardCompound = React.FC<CardProps> & {
|
|
10
|
+
Header: typeof CardHeader;
|
|
11
|
+
Title: typeof CardTitle;
|
|
12
|
+
Description: typeof CardDescription;
|
|
13
|
+
Action: typeof CardAction;
|
|
14
|
+
Content: typeof CardContent;
|
|
15
|
+
Footer: typeof CardFooter;
|
|
16
|
+
};
|
|
17
|
+
declare const Card: CardCompound;
|
|
18
|
+
export { CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
|
|
4
19
|
export default Card;
|
|
@@ -3,7 +3,8 @@ import { Card } from './';
|
|
|
3
3
|
declare const meta: Meta<typeof Card>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Card>;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const AlertsWithScroll: Story;
|
|
8
|
+
export declare const InsightsWithScroll: Story;
|
|
9
|
+
export declare const CommandLogsWithFilterAndSearch: Story;
|
|
10
|
+
export declare const AllCardFeatures: Story;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
export declare const CardWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
2
|
$width?: string;
|
|
3
3
|
$height?: string;
|
|
4
|
+
$padding?: string;
|
|
5
|
+
$gap?: string;
|
|
6
|
+
$bordered: boolean;
|
|
7
|
+
$shadow: boolean;
|
|
8
|
+
$dividers: boolean;
|
|
4
9
|
}>> & string;
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
$
|
|
11
|
-
|
|
12
|
-
export declare const CardBodyContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
-
export declare const CardFooterWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
14
|
-
$align: "left" | "center" | "right";
|
|
10
|
+
export declare const CardHeaderCompound: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
+
export declare const CardTitleCompound: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export declare const CardDescriptionCompound: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
+
export declare const CardActionCompound: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
+
export declare const CardContentCompound: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
15
|
+
$scrollable?: boolean;
|
|
16
|
+
$maxHeight?: string;
|
|
15
17
|
}>> & string;
|
|
18
|
+
export declare const CardFooterCompound: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,26 +1,35 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
className?: string;
|
|
2
|
+
import { TypographyVariant } from '../Typography/Typography';
|
|
3
|
+
export interface CardLayout {
|
|
5
4
|
width?: string | number;
|
|
6
5
|
height?: string | number;
|
|
6
|
+
padding?: string | number;
|
|
7
|
+
gap?: string | number;
|
|
7
8
|
}
|
|
8
|
-
export interface
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
icon?: ReactNode;
|
|
13
|
-
actions?: ReactNode;
|
|
14
|
-
background?: string;
|
|
9
|
+
export interface CardOptions {
|
|
10
|
+
bordered?: boolean;
|
|
11
|
+
shadow?: boolean;
|
|
12
|
+
dividers?: boolean;
|
|
15
13
|
}
|
|
16
|
-
export interface
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
image?: ReactNode;
|
|
14
|
+
export interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
15
|
+
layout?: CardLayout;
|
|
16
|
+
options?: CardOptions;
|
|
17
|
+
children?: ReactNode;
|
|
21
18
|
}
|
|
22
|
-
export interface
|
|
23
|
-
children
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
export interface CardSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export interface CardContentProps extends CardSectionProps {
|
|
23
|
+
scrollable?: boolean;
|
|
24
|
+
maxHeight?: string | number;
|
|
25
|
+
}
|
|
26
|
+
export interface CardTitleProps extends Omit<HTMLAttributes<HTMLHeadingElement>, "title"> {
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
variant?: TypographyVariant;
|
|
29
|
+
color?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface CardDescriptionProps extends Omit<HTMLAttributes<HTMLParagraphElement>, "title"> {
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
variant?: TypographyVariant;
|
|
34
|
+
color?: string;
|
|
26
35
|
}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
export { default as Card } from './Card';
|
|
1
|
+
export { default as Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from './Card';
|
|
2
2
|
export * from './Card.types';
|
|
3
|
-
export { default as CardBody } from './CardBody';
|
|
4
|
-
export { default as CardFooter } from './CardFooter';
|
|
5
|
-
export { default as CardHeader } from './CardHeader';
|
|
@@ -9,6 +9,7 @@ export declare const WithTitleAndSearch: Story;
|
|
|
9
9
|
export declare const WithTitleSearchAndActions: Story;
|
|
10
10
|
export declare const ManageColumns: Story;
|
|
11
11
|
export declare const SortableWithRenderContent: Story;
|
|
12
|
+
export declare const SearchableWithRenderContent: Story;
|
|
12
13
|
export declare const FetchData: Story;
|
|
13
14
|
export declare const WithReactQuery: Story;
|
|
14
15
|
export declare const WithActions: Story;
|