@vention/machine-ui 5.20.8 → 5.21.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/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "./global-styles.css";
|
|
2
2
|
export * from "./lib/components/vention-alert/vention-alert";
|
|
3
|
+
export * from "./lib/components/vention-avatar/vention-avatar";
|
|
3
4
|
export * from "./lib/components/vention-badge/vention-badge";
|
|
4
5
|
export * from "./lib/components/vention-button/vention-button";
|
|
5
6
|
export * from "./lib/components/vention-button/vention-icon-button/vention-icon-button";
|
|
@@ -38,6 +39,7 @@ export * from "./lib/components/vention-checkbox/vention-checkbox";
|
|
|
38
39
|
export * from "./lib/components/vention-uploadfile/vention-uploadfile";
|
|
39
40
|
export * from "./lib/components/vention-dropzone/vention-dropzone";
|
|
40
41
|
export * from "./lib/components/vention-input-group-label/vention-input-group-label";
|
|
42
|
+
export * from "./lib/components/vention-person-card/vention-person-card";
|
|
41
43
|
export * from "./lib/components/shared/vention-positioned-component";
|
|
42
44
|
export * from "./lib/theme/machine-ui-theme";
|
|
43
45
|
export * from "./lib/theme/colors";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Sizes, StrictExtract } from "../../theme/machine-ui-theme";
|
|
2
|
+
export type VentionAvatarSizes = StrictExtract<Sizes, "small" | "medium" | "large">;
|
|
3
|
+
export type VentionAvatarVariants = "image" | "initials-filled" | "initials-subtle";
|
|
4
|
+
export type VentionAvatarColors = "grayscale";
|
|
5
|
+
export type VentionAvatarStates = "default" | "disabled";
|
|
6
|
+
export interface VentionAvatarProps {
|
|
7
|
+
name: string;
|
|
8
|
+
size: VentionAvatarSizes;
|
|
9
|
+
variant?: VentionAvatarVariants;
|
|
10
|
+
color?: VentionAvatarColors;
|
|
11
|
+
state?: VentionAvatarStates;
|
|
12
|
+
imageUrl?: string;
|
|
13
|
+
initials?: string;
|
|
14
|
+
focused?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function VentionAvatar({ initials, name, size, variant, color, state, className, imageUrl, focused, }: VentionAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Sizes, StrictExtract } from "../../theme/machine-ui-theme";
|
|
2
|
+
import { VentionAvatarVariants } from "../vention-avatar/vention-avatar";
|
|
3
|
+
export type VentionPersonCardSizes = StrictExtract<Sizes, "small" | "medium" | "large">;
|
|
4
|
+
export type VentionPersonCardStates = "default" | "disabled";
|
|
5
|
+
export interface VentionPersonCardProps {
|
|
6
|
+
name: string;
|
|
7
|
+
size: VentionPersonCardSizes;
|
|
8
|
+
description?: string;
|
|
9
|
+
state?: VentionPersonCardStates;
|
|
10
|
+
hideName?: boolean;
|
|
11
|
+
avatarVariant?: VentionAvatarVariants;
|
|
12
|
+
imageUrl?: string;
|
|
13
|
+
initials?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function VentionPersonCard({ name, size, description, state, hideName, avatarVariant, imageUrl, initials, className, }: VentionPersonCardProps): import("react/jsx-runtime").JSX.Element;
|