@goodhood-web/ui 1.8.0-development.5 → 1.8.0-development.7
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.js +24 -24
- package/index.mjs +800 -796
- package/lib/ButtonPrimary/ButtonPrimary.d.ts +1 -1
- package/lib/ButtonPrimary/ButtonPrimary.types.d.ts +1 -0
- package/lib/Thumbnail/Thumbnail.d.ts +1 -1
- package/lib/Thumbnail/Thumbnail.type.d.ts +2 -3
- package/lib/ThumbnailWithLabel/ThumbnailWithLabel.d.ts +4 -0
- package/lib/ThumbnailWithLabel/ThumbnailWithLabel.type.d.ts +9 -0
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ButtonPrimaryProps } from './ButtonPrimary.types';
|
|
2
2
|
|
|
3
|
-
declare const ButtonPrimary: ({ children, className, color, disabled, loading, size, text, ...props }: ButtonPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const ButtonPrimary: ({ children, className, color, disabled, fullWidth, loading, size, text, ...props }: ButtonPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default ButtonPrimary;
|
|
@@ -4,6 +4,7 @@ import { ButtonProps } from '../Button/Button.types';
|
|
|
4
4
|
export interface ButtonPrimaryProps extends Omit<ButtonProps, 'children'> {
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
color?: 'highlight' | 'primary' | 'transparent';
|
|
7
|
+
fullWidth?: boolean;
|
|
7
8
|
loading?: boolean;
|
|
8
9
|
size?: 'tiny' | 'small' | 'medium' | 'large';
|
|
9
10
|
target?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ThumbnailCircularProps, ThumbnailSquareProps } from './Thumbnail.type';
|
|
2
2
|
|
|
3
|
-
declare const Thumbnail: ({ alt,
|
|
3
|
+
declare const Thumbnail: ({ alt, className, isPlaceholder, shape, size, src, }: ThumbnailCircularProps | ThumbnailSquareProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Thumbnail;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ImageProps } from '../Image/Image.type';
|
|
2
2
|
|
|
3
|
-
interface ThumbnailProps extends ImageProps {
|
|
3
|
+
export interface ThumbnailProps extends ImageProps {
|
|
4
|
+
className?: string;
|
|
4
5
|
isPlaceholder?: boolean;
|
|
5
|
-
label?: string;
|
|
6
6
|
}
|
|
7
7
|
export type TCircularSize = '28' | '32' | '40' | '48' | '56' | '64' | '80' | '120' | '280';
|
|
8
8
|
export type TSquareSize = '24' | '32' | '40' | '48' | '56' | '64' | '80' | '120';
|
|
@@ -14,4 +14,3 @@ export interface ThumbnailSquareProps extends ThumbnailProps {
|
|
|
14
14
|
shape: 'square';
|
|
15
15
|
size: TSquareSize;
|
|
16
16
|
}
|
|
17
|
-
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThumbnailWithLabelProps } from './ThumbnailWithLabel.type';
|
|
2
|
+
|
|
3
|
+
declare const ThumbnailWithLabel: ({ alt, isPlaceholder, label, placeholderIcon, shape, src, }: ThumbnailWithLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default ThumbnailWithLabel;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Icon32 } from '../Icon/Icon.types';
|
|
2
|
+
import { ThumbnailProps } from '../Thumbnail/Thumbnail.type';
|
|
3
|
+
|
|
4
|
+
export type ThumbnailWithLabelProps = ThumbnailProps & {
|
|
5
|
+
label: string;
|
|
6
|
+
placeholderIcon?: Icon32;
|
|
7
|
+
shape: 'circular' | 'square';
|
|
8
|
+
src?: string;
|
|
9
|
+
};
|