@goodhood-web/ui 3.0.0-development.24 → 3.0.0-development.26
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/index.d.ts +2 -2
- package/index.js +67 -67
- package/index.mjs +4081 -4052
- package/lib/Atoms/Badges/BadgeIcon/BadgeIcon.d.ts +1 -1
- package/lib/Atoms/Badges/Sticker/Sticker.types.d.ts +1 -1
- package/lib/Atoms/Content/AvatarWithPlaceholder/AvatarWithPlaceholder.d.ts +3 -0
- package/lib/Atoms/Content/AvatarWithPlaceholder/AvatarWithPlaceholder.types.d.ts +16 -0
- package/lib/Atoms/Content/PlaceholderThumbnail/PlaceholderThumbnail.d.ts +1 -1
- package/lib/Atoms/Content/PlaceholderThumbnail/PlaceholderThumbnail.type.d.ts +2 -0
- package/lib/Molecules/Card/Card.d.ts +1 -1
- package/lib/Molecules/Card/Card.types.d.ts +10 -2
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/Atoms/Content/GroupAvatar/GroupAvatar.d.ts +0 -3
- package/lib/Atoms/Content/GroupAvatar/GroupAvatar.types.d.ts +0 -10
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as BadgeIconProps } from './BadgeIcon.types';
|
|
2
|
-
declare const BadgeIcon: ({ ariaLabel, className, role, size, type }: BadgeIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const BadgeIcon: ({ ariaLabel, className, role, size, type }: BadgeIconProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
export default BadgeIcon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Icon32 } from '../../../Base/Icon/Icon.types';
|
|
2
2
|
export interface StickerProps {
|
|
3
|
-
color: 'green' | 'pink' | 'lavender' | 'teal' | 'orange' | 'grey';
|
|
3
|
+
color: 'green' | 'pink' | 'lavender' | 'teal' | 'orange' | 'grey' | 'lightGrey';
|
|
4
4
|
icon: Icon32;
|
|
5
5
|
size: 'small' | 'medium' | 'large';
|
|
6
6
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TSquareSize } from '../Thumbnail/Thumbnail.type';
|
|
2
|
+
type BaseAvatarProps = {
|
|
3
|
+
alt: string;
|
|
4
|
+
imageSrc?: string;
|
|
5
|
+
};
|
|
6
|
+
type SquareAvatarProps = BaseAvatarProps & {
|
|
7
|
+
id?: number;
|
|
8
|
+
size: TSquareSize;
|
|
9
|
+
type: 'square';
|
|
10
|
+
};
|
|
11
|
+
type ResponsiveAvatarProps = BaseAvatarProps & {
|
|
12
|
+
id?: number;
|
|
13
|
+
type: 'mobile' | 'desktop';
|
|
14
|
+
};
|
|
15
|
+
export type AvatarWithPlaceholderProps = SquareAvatarProps | ResponsiveAvatarProps;
|
|
16
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PlaceholderThumbnailProps } from './PlaceholderThumbnail.type';
|
|
2
|
-
declare const PlaceholderThumbnail: ({ className, icon, size }: PlaceholderThumbnailProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const PlaceholderThumbnail: ({ className, icon, size, style, type, }: PlaceholderThumbnailProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default PlaceholderThumbnail;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CardProps } from './Card.types';
|
|
2
|
-
declare const Card: ({ allowedElement, ariaLabel, as: Tag, borderRadius, children, className, role, withoutPadding, }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Card: ({ allowedElement, ariaLabel, as: Tag, borderRadius, children, className, responsive, role, withoutPadding, }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Card;
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { CardBodyProps } from './CardBody/CardBody.types';
|
|
3
3
|
import { CardHeaderProps } from './CardHeader/CardHeader.types';
|
|
4
|
-
export interface
|
|
4
|
+
export interface CardBaseProps {
|
|
5
5
|
allowedElement?: React.ElementType;
|
|
6
6
|
ariaLabel?: string;
|
|
7
7
|
as?: Extract<keyof JSX.IntrinsicElements, 'section' | 'div'>;
|
|
8
|
-
borderRadius?: boolean;
|
|
9
8
|
children: ReactElement<CardBodyProps | CardHeaderProps> | ReactElement<CardBodyProps | CardHeaderProps>[];
|
|
10
9
|
className?: string;
|
|
11
10
|
role?: string;
|
|
12
11
|
withoutPadding?: boolean;
|
|
13
12
|
}
|
|
13
|
+
export type ResponsiveProps = {
|
|
14
|
+
borderRadius: true;
|
|
15
|
+
responsive?: boolean;
|
|
16
|
+
} & CardBaseProps;
|
|
17
|
+
export type NonResponsiveProps = {
|
|
18
|
+
borderRadius?: boolean;
|
|
19
|
+
responsive?: false;
|
|
20
|
+
} & CardBaseProps;
|
|
21
|
+
export type CardProps = ResponsiveProps | NonResponsiveProps;
|