elseware-ui 2.20.7 → 2.21.1
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/build/components/surfaces/card/Card.d.ts +10 -2
- package/build/components/surfaces/card/CardContent.d.ts +4 -4
- package/build/components/surfaces/card/CardFooter.d.ts +4 -4
- package/build/components/surfaces/card/CardHeader.d.ts +4 -4
- package/build/data/animations.d.ts +8 -0
- package/build/data/styles.d.ts +33 -0
- package/build/index.es.js +70 -30
- package/build/index.js +70 -30
- package/package.json +1 -1
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { Variant, Shape } from "../../../data/enums";
|
|
3
|
+
import { hoverAnimations } from "../../../data/animations";
|
|
2
4
|
export interface CardProps {
|
|
3
5
|
children?: ReactNode;
|
|
4
|
-
|
|
6
|
+
className?: string;
|
|
7
|
+
bgVariant?: keyof typeof Variant;
|
|
8
|
+
borderVariant?: keyof typeof Variant;
|
|
9
|
+
interactive?: boolean;
|
|
10
|
+
ghost?: boolean;
|
|
11
|
+
shape?: keyof typeof Shape;
|
|
12
|
+
hoverAnimation?: keyof typeof hoverAnimations;
|
|
5
13
|
}
|
|
6
|
-
declare function Card({ children,
|
|
14
|
+
declare function Card({ children, className, bgVariant, borderVariant, interactive, ghost, shape, hoverAnimation, }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
7
15
|
export default Card;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export interface CardContentProps {
|
|
3
|
-
children?: ReactNode;
|
|
4
|
-
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
5
|
}
|
|
6
|
-
declare function CardContent({ children,
|
|
6
|
+
declare function CardContent({ children, className }: CardContentProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default CardContent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export interface CardFooterProps {
|
|
3
|
-
children?: ReactNode;
|
|
4
|
-
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
5
|
}
|
|
6
|
-
declare function CardFooter({ children,
|
|
6
|
+
declare function CardFooter({ children, className }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default CardFooter;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export interface CardHeaderProps {
|
|
3
|
-
|
|
3
|
+
icon?: React.ReactNode;
|
|
4
4
|
title?: string;
|
|
5
5
|
description?: string;
|
|
6
|
-
|
|
6
|
+
className?: string;
|
|
7
7
|
}
|
|
8
|
-
declare function CardHeader({
|
|
8
|
+
declare function CardHeader({ icon, title, description, className }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default CardHeader;
|
package/build/data/styles.d.ts
CHANGED
|
@@ -71,3 +71,36 @@ export declare const shapes: {
|
|
|
71
71
|
softRoundedSquare: string;
|
|
72
72
|
circle: string;
|
|
73
73
|
};
|
|
74
|
+
export declare const cardBorderVariants: {
|
|
75
|
+
default: string;
|
|
76
|
+
primary: string;
|
|
77
|
+
secondary: string;
|
|
78
|
+
success: string;
|
|
79
|
+
danger: string;
|
|
80
|
+
warning: string;
|
|
81
|
+
info: string;
|
|
82
|
+
light: string;
|
|
83
|
+
dark: string;
|
|
84
|
+
};
|
|
85
|
+
export declare const cardHoverBorderVariants: {
|
|
86
|
+
default: string;
|
|
87
|
+
primary: string;
|
|
88
|
+
secondary: string;
|
|
89
|
+
success: string;
|
|
90
|
+
danger: string;
|
|
91
|
+
warning: string;
|
|
92
|
+
info: string;
|
|
93
|
+
light: string;
|
|
94
|
+
dark: string;
|
|
95
|
+
};
|
|
96
|
+
export declare const cardBgVariants: {
|
|
97
|
+
default: string;
|
|
98
|
+
primary: string;
|
|
99
|
+
secondary: string;
|
|
100
|
+
success: string;
|
|
101
|
+
danger: string;
|
|
102
|
+
warning: string;
|
|
103
|
+
info: string;
|
|
104
|
+
light: string;
|
|
105
|
+
dark: string;
|
|
106
|
+
};
|