@goodhood-web/ui 3.0.0-development.23 → 3.0.0-development.25
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 +77 -77
- package/index.mjs +4559 -4545
- package/lib/Atoms/Buttons/Button/Button.types.d.ts +3 -4
- package/lib/Atoms/Buttons/ButtonPrimary/ButtonPrimary.d.ts +1 -1
- package/lib/Atoms/Buttons/ButtonSecondary/ButtonSecondary.d.ts +1 -1
- package/lib/Atoms/Buttons/ButtonTertiary/ButtonTertiary.d.ts +1 -1
- package/lib/Atoms/Buttons/TextButton/TextButton.d.ts +1 -1
- package/lib/Atoms/Buttons/TextButton/TextButton.types.d.ts +5 -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
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ButtonOwnProps } from '@mui/base';
|
|
2
|
-
import { AriaRole,
|
|
2
|
+
import { AriaRole, ForwardedRef, MouseEvent, ReactElement, ReactNode } from 'react';
|
|
3
3
|
import { IconProps } from '../../../Base/Icon/Icon.types';
|
|
4
4
|
interface CommonProps {
|
|
5
|
-
allowedIcons?: ElementType[];
|
|
6
5
|
ariaDescribedBy?: string;
|
|
7
6
|
ariaLabel?: string;
|
|
8
7
|
ariaLabelledBy?: string;
|
|
@@ -10,9 +9,7 @@ interface CommonProps {
|
|
|
10
9
|
'data-testid'?: string;
|
|
11
10
|
disabled?: boolean;
|
|
12
11
|
isToggleButton?: boolean;
|
|
13
|
-
leftIcon?: ReactElement<IconProps>;
|
|
14
12
|
ref?: ForwardedRef<null>;
|
|
15
|
-
rightIcon?: ReactElement<IconProps>;
|
|
16
13
|
role?: AriaRole;
|
|
17
14
|
selected?: boolean;
|
|
18
15
|
}
|
|
@@ -28,7 +25,9 @@ export interface LinkProps extends CommonProps {
|
|
|
28
25
|
}
|
|
29
26
|
export interface ButtonVariationProps {
|
|
30
27
|
fullWidth?: boolean;
|
|
28
|
+
leftIcon?: ReactElement<IconProps>;
|
|
31
29
|
loading?: boolean;
|
|
30
|
+
rightIcon?: ReactElement<IconProps>;
|
|
32
31
|
size?: 'small' | 'medium' | 'large' | 'extraLarge';
|
|
33
32
|
target?: string;
|
|
34
33
|
text?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ButtonPrimaryProps } from './ButtonPrimary.types';
|
|
2
|
-
declare const ButtonPrimary: ({ children, className, color, disabled, fullWidth, loading, size, text, ...props }: ButtonPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ButtonPrimary: ({ children, className, color, disabled, fullWidth, leftIcon, loading, rightIcon, size, text, ...props }: ButtonPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ButtonPrimary;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ButtonSecondaryProps } from './ButtonSecondary.types';
|
|
2
|
-
declare const ButtonSecondary: ({ children, className, color, disabled, fullWidth, loading, size, text, ...props }: ButtonSecondaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ButtonSecondary: ({ children, className, color, disabled, fullWidth, leftIcon, loading, rightIcon, size, text, ...props }: ButtonSecondaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ButtonSecondary;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ButtonTertiaryProps } from './ButtonTertiary.types';
|
|
2
|
-
declare const ButtonTertiary: ({ children, className, color, disabled, fullWidth, loading, size, text, ...props }: ButtonTertiaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ButtonTertiary: ({ children, className, color, disabled, fullWidth, leftIcon, loading, rightIcon, size, text, ...props }: ButtonTertiaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ButtonTertiary;
|
|
@@ -5,5 +5,5 @@ export declare const typographyType: {
|
|
|
5
5
|
medium: string;
|
|
6
6
|
small: string;
|
|
7
7
|
};
|
|
8
|
-
export declare function TextButton({ className, color, disabled, size, text, ...props }: TextButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function TextButton({ className, color, disabled, leftIcon, rightIcon, size, text, ...props }: TextButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default TextButton;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IconProps } from '../../../Base/Icon/Icon.types';
|
|
3
|
+
import { NotificationBubbleProps } from '../../NotificationBubble/NotificationBubble.types';
|
|
1
4
|
import { ButtonProps } from '../Button/Button.types';
|
|
2
5
|
export interface TextButtonProps extends Omit<ButtonProps, 'role' | 'className'> {
|
|
3
6
|
className?: string;
|
|
4
7
|
color: 'green' | 'blue' | 'deepPurple' | 'pinkLight' | 'pinkDark';
|
|
8
|
+
leftIcon?: ReactElement<IconProps | NotificationBubbleProps>;
|
|
9
|
+
rightIcon?: ReactElement<IconProps | NotificationBubbleProps>;
|
|
5
10
|
size: 'large' | 'medium' | 'small' | 'link';
|
|
6
11
|
text: string;
|
|
7
12
|
type?: 'button' | 'submit' | 'reset';
|
|
@@ -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;
|