sate-lib 1.88.0 → 1.89.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.
|
@@ -2,8 +2,8 @@ import type { ComponentPropsWithoutRef, ElementType } from "react";
|
|
|
2
2
|
export declare function getInitials(name?: string): string;
|
|
3
3
|
type AvatarSize = "small" | "medium" | "large";
|
|
4
4
|
type AvatarShape = "circle" | "rounded";
|
|
5
|
-
type AvatarOwnProps = {
|
|
6
|
-
as?:
|
|
5
|
+
type AvatarOwnProps<T extends ElementType> = {
|
|
6
|
+
as?: T;
|
|
7
7
|
src?: string;
|
|
8
8
|
alt?: string;
|
|
9
9
|
name?: string;
|
|
@@ -13,7 +13,7 @@ type AvatarOwnProps = {
|
|
|
13
13
|
className?: string;
|
|
14
14
|
testId?: string;
|
|
15
15
|
};
|
|
16
|
-
export type AvatarProps<T extends ElementType = "img"> = AvatarOwnProps & Omit<ComponentPropsWithoutRef<T>, keyof AvatarOwnProps
|
|
16
|
+
export type AvatarProps<T extends ElementType = "img"> = AvatarOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof AvatarOwnProps<T>>;
|
|
17
17
|
export declare function Avatar<T extends ElementType = "img">({ as, src, alt, name, size, shape, border, className, testId, ...rest }: AvatarProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export {};
|
|
19
19
|
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGnE,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EA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