@goodhood-web/ui 3.0.0-development.5 → 3.0.0-development.51
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 +4 -2
- package/index.js +82 -82
- package/index.mjs +7549 -7415
- package/lib/Atoms/Badges/Badge/Badge.d.ts +1 -1
- package/lib/Atoms/Badges/Badge/Badge.types.d.ts +1 -0
- package/lib/Atoms/Badges/BadgeIcon/BadgeIcon.d.ts +1 -1
- package/lib/Atoms/Badges/BadgeIcon/BadgeIcon.types.d.ts +1 -1
- package/lib/Atoms/Badges/LabelPill/LabelPill.types.d.ts +1 -1
- package/lib/Atoms/Badges/Sticker/Sticker.types.d.ts +1 -1
- package/lib/Atoms/Buttons/Button/Button.types.d.ts +2 -1
- 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/IconButton/IconButton.types.d.ts +6 -2
- package/lib/Atoms/Buttons/IconButton/utils.d.ts +2 -2
- package/lib/Atoms/Buttons/TextButton/TextButton.d.ts +1 -0
- package/lib/Atoms/Buttons/TextButton/TextButton.types.d.ts +2 -2
- 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/Atoms/Content/PoiAvatar/PoiAvatar.d.ts +3 -0
- package/lib/Atoms/Content/PoiAvatar/PoiAvatar.type.d.ts +6 -0
- package/lib/Atoms/Content/Thumbnail/Thumbnail.type.d.ts +1 -1
- package/lib/Atoms/Content/ThumbnailWrapper/ThumbnailWrapper.d.ts +2 -2
- package/lib/Atoms/Content/ThumbnailWrapper/ThumbnailWrapper.types.d.ts +9 -1
- package/lib/Atoms/Inputs/InputFieldSpecial/InputFieldSpecial.types.d.ts +1 -1
- package/lib/Atoms/Inputs/RadioButton/RadioButton.d.ts +2 -2
- package/lib/Atoms/Inputs/RadioButton/RadioButton.types.d.ts +10 -3
- package/lib/Atoms/Progress/ProgressBar/ProgressBar.d.ts +3 -0
- package/lib/Atoms/Progress/ProgressBar/ProgressBar.types.d.ts +4 -0
- package/lib/Atoms/Selectables/SelectablePill/SelectablePill.d.ts +1 -1
- package/lib/Atoms/Selectables/SelectablePill/SelectablePill.types.d.ts +3 -2
- package/lib/Base/Icon/icons/index.d.ts +42 -0
- package/lib/Base/Icon/icons/outline/16x16/index.d.ts +18 -0
- package/lib/Base/Icon/icons/outline/24x24/index.d.ts +18 -0
- package/lib/Base/Icon/icons/outline/32x32/index.d.ts +6 -0
- package/lib/Base/Icon/icons/outline/index.d.ts +42 -0
- package/lib/Base/Typography/Typography.types.d.ts +1 -1
- package/lib/Molecules/Card/Card.d.ts +1 -1
- package/lib/Molecules/Card/Card.types.d.ts +10 -2
- package/lib/Molecules/Card/CardHeader/CardHeader.types.d.ts +1 -1
- package/lib/Molecules/Navigation/MenuItem/MenuItem.d.ts +1 -1
- package/lib/Molecules/Navigation/MenuItem/MenuItem.types.d.ts +1 -0
- package/lib/Molecules/Notices/EmptyState/EmptyState.types.d.ts +3 -3
- package/lib/Molecules/Notices/Notice/Notice.d.ts +2 -2
- package/lib/Molecules/Notices/Notice/Notice.types.d.ts +62 -12
- package/lib/Molecules/Notices/Snackbar/Snackbar.d.ts +1 -1
- package/lib/Molecules/Notices/Snackbar/Snackbar.types.d.ts +2 -0
- package/lib/Organisms/Modals/Popup/Popup.types.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/_functions.scss +5 -0
- package/lib/Atoms/Content/GroupAvatar/GroupAvatar.d.ts +0 -3
- package/lib/Atoms/Content/GroupAvatar/GroupAvatar.types.d.ts +0 -10
- package/lib/Molecules/Notices/Notice/InfoNotice/InfoNotice.d.ts +0 -3
- package/lib/Molecules/Notices/Notice/WarningNotice/WarningNotice.d.ts +0 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BadgeProps } from './Badge.types';
|
|
2
|
-
declare const Badge: ({ ariaLabel, badgeIcons, children }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Badge: ({ ariaLabel, badgeIcons, children, size }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Badge;
|
|
@@ -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
|
}
|
|
@@ -12,6 +12,7 @@ interface CommonProps {
|
|
|
12
12
|
ref?: ForwardedRef<null>;
|
|
13
13
|
role?: AriaRole;
|
|
14
14
|
selected?: boolean;
|
|
15
|
+
type?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
15
16
|
}
|
|
16
17
|
export interface BaseButtonProps extends ButtonOwnProps, CommonProps {
|
|
17
18
|
onClick: (event: MouseEvent<HTMLElement>) => void;
|
|
@@ -28,7 +29,7 @@ export interface ButtonVariationProps {
|
|
|
28
29
|
leftIcon?: ReactElement<IconProps>;
|
|
29
30
|
loading?: boolean;
|
|
30
31
|
rightIcon?: ReactElement<IconProps>;
|
|
31
|
-
size?: '
|
|
32
|
+
size?: 'tiny' | 'small' | 'medium' | 'large';
|
|
32
33
|
target?: string;
|
|
33
34
|
text?: string;
|
|
34
35
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ButtonPrimaryProps } from './ButtonPrimary.types';
|
|
2
|
-
declare const ButtonPrimary: ({ children, className, color, disabled, fullWidth, leftIcon, loading, rightIcon, size, text, ...props }: ButtonPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ButtonPrimary: ({ children, className, color, disabled, fullWidth, leftIcon, loading, onClick, 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, leftIcon, loading, rightIcon, size, text, ...props }: ButtonSecondaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ButtonSecondary: ({ children, className, color, disabled, fullWidth, leftIcon, loading, onClick, 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, leftIcon, loading, rightIcon, size, text, ...props }: ButtonTertiaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ButtonTertiary: ({ children, className, color, disabled, fullWidth, leftIcon, loading, onClick, rightIcon, size, text, ...props }: ButtonTertiaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ButtonTertiary;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Icon24, Icon32 } from '../../../Base/Icon/Icon.types';
|
|
1
|
+
import { Icon16, Icon24, Icon32 } from '../../../Base/Icon/Icon.types';
|
|
2
2
|
import { ButtonProps } from '../Button/Button.types';
|
|
3
3
|
type BaseIconButtonProps = Omit<ButtonProps, 'children' | 'ref' | 'className'> & ({
|
|
4
4
|
ariaLabel: string;
|
|
@@ -11,6 +11,10 @@ type BaseIconButtonProps = Omit<ButtonProps, 'children' | 'ref' | 'className'> &
|
|
|
11
11
|
type?: 'button' | 'submit' | 'reset';
|
|
12
12
|
variant?: 'green' | 'white' | 'grey';
|
|
13
13
|
};
|
|
14
|
+
export type IconButtonIcon16Props = {
|
|
15
|
+
icon: Icon16;
|
|
16
|
+
size?: 'extraSmall';
|
|
17
|
+
} & BaseIconButtonProps;
|
|
14
18
|
export type IconButtonIcon24Props = {
|
|
15
19
|
icon: Icon24;
|
|
16
20
|
size?: 'small';
|
|
@@ -19,5 +23,5 @@ export type IconButtonIcon32Props = {
|
|
|
19
23
|
icon: Icon32;
|
|
20
24
|
size?: 'medium' | 'large';
|
|
21
25
|
} & BaseIconButtonProps;
|
|
22
|
-
export type IconButtonProps = IconButtonIcon32Props | IconButtonIcon24Props;
|
|
26
|
+
export type IconButtonProps = IconButtonIcon32Props | IconButtonIcon24Props | IconButtonIcon16Props;
|
|
23
27
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
type IconButtonSize = 'large' | 'medium' | 'small';
|
|
2
|
-
export declare const getIconSize: (size: IconButtonSize) => "32" | "24";
|
|
1
|
+
type IconButtonSize = 'large' | 'medium' | 'small' | 'extraSmall';
|
|
2
|
+
export declare const getIconSize: (size: IconButtonSize) => "32" | "24" | "16";
|
|
3
3
|
export {};
|
|
@@ -4,6 +4,7 @@ export declare const typographyType: {
|
|
|
4
4
|
link: string;
|
|
5
5
|
medium: string;
|
|
6
6
|
small: string;
|
|
7
|
+
tiny: string;
|
|
7
8
|
};
|
|
8
9
|
export declare function TextButton({ className, color, disabled, leftIcon, rightIcon, size, text, ...props }: TextButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default TextButton;
|
|
@@ -4,10 +4,10 @@ import { NotificationBubbleProps } from '../../NotificationBubble/NotificationBu
|
|
|
4
4
|
import { ButtonProps } from '../Button/Button.types';
|
|
5
5
|
export interface TextButtonProps extends Omit<ButtonProps, 'role' | 'className'> {
|
|
6
6
|
className?: string;
|
|
7
|
-
color: 'green' | 'blue' | 'deepPurple';
|
|
7
|
+
color: 'green' | 'blue' | 'deepPurple' | 'pinkLight' | 'pinkDark';
|
|
8
8
|
leftIcon?: ReactElement<IconProps | NotificationBubbleProps>;
|
|
9
9
|
rightIcon?: ReactElement<IconProps | NotificationBubbleProps>;
|
|
10
|
-
size: 'large' | 'medium' | 'small' | 'link';
|
|
10
|
+
size: 'large' | 'medium' | 'small' | 'link' | 'tiny';
|
|
11
11
|
text: string;
|
|
12
12
|
type?: 'button' | 'submit' | 'reset';
|
|
13
13
|
}
|
|
@@ -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;
|
|
@@ -4,7 +4,7 @@ export interface ThumbnailProps extends ImageProps {
|
|
|
4
4
|
isPlaceholder?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const circularSizes: readonly ["28", "32", "40", "48", "56", "64", "80", "120", "280"];
|
|
7
|
-
export declare const squareSizes: readonly ["24", "32", "40", "48", "56", "64", "80", "120"];
|
|
7
|
+
export declare const squareSizes: readonly ["24", "32", "40", "48", "56", "64", "80", "96", "120"];
|
|
8
8
|
export type TCircularSize = (typeof circularSizes)[number];
|
|
9
9
|
export type TSquareSize = (typeof squareSizes)[number];
|
|
10
10
|
export interface ThumbnailCircularProps extends ThumbnailProps {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const ThumbnailWrapper: (
|
|
1
|
+
import { ThumbnailWrapperProps } from './ThumbnailWrapper.types';
|
|
2
|
+
declare const ThumbnailWrapper: (props: ThumbnailWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ThumbnailWrapper;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { BadgeOwnProps } from '@mui/base/Badge/Badge.types';
|
|
2
2
|
import { ThumbnailCircularProps, ThumbnailSquareProps } from '../Thumbnail/Thumbnail.type';
|
|
3
|
-
|
|
3
|
+
import { UserAvatarProps } from '../UserAvatar/UserAvatar.types';
|
|
4
|
+
interface CommonProps {
|
|
4
5
|
ariaLabel?: string;
|
|
5
6
|
children: BadgeOwnProps['children'];
|
|
7
|
+
}
|
|
8
|
+
interface HasThumbnail extends CommonProps {
|
|
6
9
|
thumbnail: ThumbnailCircularProps | ThumbnailSquareProps;
|
|
7
10
|
}
|
|
11
|
+
interface HasUserAvatar extends CommonProps {
|
|
12
|
+
userAvatar: UserAvatarProps;
|
|
13
|
+
}
|
|
14
|
+
export type ThumbnailWrapperProps = HasThumbnail | HasUserAvatar;
|
|
15
|
+
export {};
|
|
@@ -5,7 +5,7 @@ export interface InputFieldSpecialProps {
|
|
|
5
5
|
id: string;
|
|
6
6
|
maxDigits?: 'two' | 'three' | 'four';
|
|
7
7
|
name?: string;
|
|
8
|
-
onChange: (
|
|
8
|
+
onChange: (value: number) => void;
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
style?: 'outline' | 'filled';
|
|
11
11
|
value?: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function RadioButton({ checked, disabled, id, label, onChange, size, value, }:
|
|
1
|
+
import { RadioButtonPropsType } from './RadioButton.types';
|
|
2
|
+
export declare function RadioButton({ checked, disabled, id, label, onChange, pill, secondaryText, size, value, }: RadioButtonPropsType): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default RadioButton;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type RadioButtonPropsType = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {
|
|
3
3
|
id: string;
|
|
4
4
|
label: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
} & ({
|
|
6
|
+
pill?: never;
|
|
7
|
+
secondaryText?: never;
|
|
8
|
+
size: 'tiny' | 'small';
|
|
9
|
+
} | {
|
|
10
|
+
pill?: string;
|
|
11
|
+
secondaryText?: string;
|
|
12
|
+
size: 'medium';
|
|
13
|
+
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SelectablePillProps } from './SelectablePill.types';
|
|
2
|
-
declare const SelectablePill: ({ disabled, icon, id, isSelected, label, onToggleChange, orientation, popular, style, value, variant, }: SelectablePillProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const SelectablePill: ({ disabled, icon, iconSize, id, isSelected, label, onToggleChange, orientation, popular, style, value, variant, }: SelectablePillProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default SelectablePill;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Icon32 } from '../../../Base/Icon/Icon.types';
|
|
1
|
+
import { Icon24, Icon32 } from '../../../Base/Icon/Icon.types';
|
|
2
2
|
export interface SelectablePillProps {
|
|
3
3
|
disabled?: boolean;
|
|
4
|
-
icon?: Icon32;
|
|
4
|
+
icon?: Icon24 | Icon32;
|
|
5
|
+
iconSize?: '24' | '32';
|
|
5
6
|
id: string;
|
|
6
7
|
isSelected?: boolean;
|
|
7
8
|
label: string;
|
|
@@ -111,18 +111,36 @@ declare const iconsMap: {
|
|
|
111
111
|
desc?: string;
|
|
112
112
|
descId?: string;
|
|
113
113
|
}>;
|
|
114
|
+
external_link: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
115
|
+
title?: string;
|
|
116
|
+
titleId?: string;
|
|
117
|
+
desc?: string;
|
|
118
|
+
descId?: string;
|
|
119
|
+
}>;
|
|
114
120
|
heart_outline: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
115
121
|
title?: string;
|
|
116
122
|
titleId?: string;
|
|
117
123
|
desc?: string;
|
|
118
124
|
descId?: string;
|
|
119
125
|
}>;
|
|
126
|
+
list: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
127
|
+
title?: string;
|
|
128
|
+
titleId?: string;
|
|
129
|
+
desc?: string;
|
|
130
|
+
descId?: string;
|
|
131
|
+
}>;
|
|
120
132
|
privacy_lock_closed: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
121
133
|
title?: string;
|
|
122
134
|
titleId?: string;
|
|
123
135
|
desc?: string;
|
|
124
136
|
descId?: string;
|
|
125
137
|
}>;
|
|
138
|
+
send: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
139
|
+
title?: string;
|
|
140
|
+
titleId?: string;
|
|
141
|
+
desc?: string;
|
|
142
|
+
descId?: string;
|
|
143
|
+
}>;
|
|
126
144
|
};
|
|
127
145
|
'24': {
|
|
128
146
|
readonly arrow_left: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
@@ -197,6 +215,12 @@ declare const iconsMap: {
|
|
|
197
215
|
desc?: string;
|
|
198
216
|
descId?: string;
|
|
199
217
|
}>;
|
|
218
|
+
readonly clock: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
219
|
+
title?: string;
|
|
220
|
+
titleId?: string;
|
|
221
|
+
desc?: string;
|
|
222
|
+
descId?: string;
|
|
223
|
+
}>;
|
|
200
224
|
readonly comment_bubble: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
201
225
|
title?: string;
|
|
202
226
|
titleId?: string;
|
|
@@ -221,12 +245,24 @@ declare const iconsMap: {
|
|
|
221
245
|
desc?: string;
|
|
222
246
|
descId?: string;
|
|
223
247
|
}>;
|
|
248
|
+
readonly emoji: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
249
|
+
title?: string;
|
|
250
|
+
titleId?: string;
|
|
251
|
+
desc?: string;
|
|
252
|
+
descId?: string;
|
|
253
|
+
}>;
|
|
224
254
|
readonly envelope: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
225
255
|
title?: string;
|
|
226
256
|
titleId?: string;
|
|
227
257
|
desc?: string;
|
|
228
258
|
descId?: string;
|
|
229
259
|
}>;
|
|
260
|
+
readonly error: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
261
|
+
title?: string;
|
|
262
|
+
titleId?: string;
|
|
263
|
+
desc?: string;
|
|
264
|
+
descId?: string;
|
|
265
|
+
}>;
|
|
230
266
|
readonly event_calendar: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
231
267
|
title?: string;
|
|
232
268
|
titleId?: string;
|
|
@@ -985,6 +1021,12 @@ declare const iconsMap: {
|
|
|
985
1021
|
desc?: string;
|
|
986
1022
|
descId?: string;
|
|
987
1023
|
}>;
|
|
1024
|
+
readonly shield: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
1025
|
+
title?: string;
|
|
1026
|
+
titleId?: string;
|
|
1027
|
+
desc?: string;
|
|
1028
|
+
descId?: string;
|
|
1029
|
+
}>;
|
|
988
1030
|
readonly shopping_bag: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
989
1031
|
title?: string;
|
|
990
1032
|
titleId?: string;
|
|
@@ -23,17 +23,35 @@ declare const IconsMap: {
|
|
|
23
23
|
desc?: string;
|
|
24
24
|
descId?: string;
|
|
25
25
|
}>;
|
|
26
|
+
external_link: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
27
|
+
title?: string;
|
|
28
|
+
titleId?: string;
|
|
29
|
+
desc?: string;
|
|
30
|
+
descId?: string;
|
|
31
|
+
}>;
|
|
26
32
|
heart_outline: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
27
33
|
title?: string;
|
|
28
34
|
titleId?: string;
|
|
29
35
|
desc?: string;
|
|
30
36
|
descId?: string;
|
|
31
37
|
}>;
|
|
38
|
+
list: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
39
|
+
title?: string;
|
|
40
|
+
titleId?: string;
|
|
41
|
+
desc?: string;
|
|
42
|
+
descId?: string;
|
|
43
|
+
}>;
|
|
32
44
|
privacy_lock_closed: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
33
45
|
title?: string;
|
|
34
46
|
titleId?: string;
|
|
35
47
|
desc?: string;
|
|
36
48
|
descId?: string;
|
|
37
49
|
}>;
|
|
50
|
+
send: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
51
|
+
title?: string;
|
|
52
|
+
titleId?: string;
|
|
53
|
+
desc?: string;
|
|
54
|
+
descId?: string;
|
|
55
|
+
}>;
|
|
38
56
|
};
|
|
39
57
|
export default IconsMap;
|
|
@@ -71,6 +71,12 @@ declare const IconsMap: {
|
|
|
71
71
|
desc?: string;
|
|
72
72
|
descId?: string;
|
|
73
73
|
}>;
|
|
74
|
+
readonly clock: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
75
|
+
title?: string;
|
|
76
|
+
titleId?: string;
|
|
77
|
+
desc?: string;
|
|
78
|
+
descId?: string;
|
|
79
|
+
}>;
|
|
74
80
|
readonly comment_bubble: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
75
81
|
title?: string;
|
|
76
82
|
titleId?: string;
|
|
@@ -95,12 +101,24 @@ declare const IconsMap: {
|
|
|
95
101
|
desc?: string;
|
|
96
102
|
descId?: string;
|
|
97
103
|
}>;
|
|
104
|
+
readonly emoji: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
105
|
+
title?: string;
|
|
106
|
+
titleId?: string;
|
|
107
|
+
desc?: string;
|
|
108
|
+
descId?: string;
|
|
109
|
+
}>;
|
|
98
110
|
readonly envelope: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
99
111
|
title?: string;
|
|
100
112
|
titleId?: string;
|
|
101
113
|
desc?: string;
|
|
102
114
|
descId?: string;
|
|
103
115
|
}>;
|
|
116
|
+
readonly error: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
117
|
+
title?: string;
|
|
118
|
+
titleId?: string;
|
|
119
|
+
desc?: string;
|
|
120
|
+
descId?: string;
|
|
121
|
+
}>;
|
|
104
122
|
readonly event_calendar: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
105
123
|
title?: string;
|
|
106
124
|
titleId?: string;
|
|
@@ -557,6 +557,12 @@ declare const IconsMap: {
|
|
|
557
557
|
desc?: string;
|
|
558
558
|
descId?: string;
|
|
559
559
|
}>;
|
|
560
|
+
readonly shield: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
561
|
+
title?: string;
|
|
562
|
+
titleId?: string;
|
|
563
|
+
desc?: string;
|
|
564
|
+
descId?: string;
|
|
565
|
+
}>;
|
|
560
566
|
readonly shopping_bag: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
561
567
|
title?: string;
|
|
562
568
|
titleId?: string;
|
|
@@ -24,18 +24,36 @@ declare const iconsMap: {
|
|
|
24
24
|
desc?: string;
|
|
25
25
|
descId?: string;
|
|
26
26
|
}>;
|
|
27
|
+
external_link: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
28
|
+
title?: string;
|
|
29
|
+
titleId?: string;
|
|
30
|
+
desc?: string;
|
|
31
|
+
descId?: string;
|
|
32
|
+
}>;
|
|
27
33
|
heart_outline: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
28
34
|
title?: string;
|
|
29
35
|
titleId?: string;
|
|
30
36
|
desc?: string;
|
|
31
37
|
descId?: string;
|
|
32
38
|
}>;
|
|
39
|
+
list: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
40
|
+
title?: string;
|
|
41
|
+
titleId?: string;
|
|
42
|
+
desc?: string;
|
|
43
|
+
descId?: string;
|
|
44
|
+
}>;
|
|
33
45
|
privacy_lock_closed: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
34
46
|
title?: string;
|
|
35
47
|
titleId?: string;
|
|
36
48
|
desc?: string;
|
|
37
49
|
descId?: string;
|
|
38
50
|
}>;
|
|
51
|
+
send: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
52
|
+
title?: string;
|
|
53
|
+
titleId?: string;
|
|
54
|
+
desc?: string;
|
|
55
|
+
descId?: string;
|
|
56
|
+
}>;
|
|
39
57
|
};
|
|
40
58
|
'24': {
|
|
41
59
|
readonly arrow_left: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
@@ -110,6 +128,12 @@ declare const iconsMap: {
|
|
|
110
128
|
desc?: string;
|
|
111
129
|
descId?: string;
|
|
112
130
|
}>;
|
|
131
|
+
readonly clock: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
132
|
+
title?: string;
|
|
133
|
+
titleId?: string;
|
|
134
|
+
desc?: string;
|
|
135
|
+
descId?: string;
|
|
136
|
+
}>;
|
|
113
137
|
readonly comment_bubble: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
114
138
|
title?: string;
|
|
115
139
|
titleId?: string;
|
|
@@ -134,12 +158,24 @@ declare const iconsMap: {
|
|
|
134
158
|
desc?: string;
|
|
135
159
|
descId?: string;
|
|
136
160
|
}>;
|
|
161
|
+
readonly emoji: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
162
|
+
title?: string;
|
|
163
|
+
titleId?: string;
|
|
164
|
+
desc?: string;
|
|
165
|
+
descId?: string;
|
|
166
|
+
}>;
|
|
137
167
|
readonly envelope: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
138
168
|
title?: string;
|
|
139
169
|
titleId?: string;
|
|
140
170
|
desc?: string;
|
|
141
171
|
descId?: string;
|
|
142
172
|
}>;
|
|
173
|
+
readonly error: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
174
|
+
title?: string;
|
|
175
|
+
titleId?: string;
|
|
176
|
+
desc?: string;
|
|
177
|
+
descId?: string;
|
|
178
|
+
}>;
|
|
143
179
|
readonly event_calendar: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
144
180
|
title?: string;
|
|
145
181
|
titleId?: string;
|
|
@@ -898,6 +934,12 @@ declare const iconsMap: {
|
|
|
898
934
|
desc?: string;
|
|
899
935
|
descId?: string;
|
|
900
936
|
}>;
|
|
937
|
+
readonly shield: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
938
|
+
title?: string;
|
|
939
|
+
titleId?: string;
|
|
940
|
+
desc?: string;
|
|
941
|
+
descId?: string;
|
|
942
|
+
}>;
|
|
901
943
|
readonly shopping_bag: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
902
944
|
title?: string;
|
|
903
945
|
titleId?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ElementType, PropsWithChildren } from 'react';
|
|
2
2
|
export type TypographyTypeLanding = 'claim' | 'claim-uppercase' | 'h1' | 'h1-uppercase' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'overline' | 'body-large' | 'body-large-semibold' | 'body' | 'body-semibold' | 'body-italic' | 'quote-large' | 'detail-small' | 'detail-small-bold';
|
|
3
|
-
export type TypographyTypeProduct = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7' | 'h8' | 'body-large' | 'body-regular' | 'body-semibold' | 'body-italic' | 'body-text-link' | 'detail-medium' | 'detail-bold' | 'detail-upper-case' | 'detail-regular';
|
|
3
|
+
export type TypographyTypeProduct = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7' | 'h8' | 'body-large' | 'body-regular' | 'body-semibold' | 'body-italic' | 'body-text-link' | 'detail-medium' | 'detail-bold' | 'detail-upper-case' | 'detail-regular' | 'detail-text-link';
|
|
4
4
|
type AsProp<C extends ElementType> = {
|
|
5
5
|
as?: C;
|
|
6
6
|
markdown?: boolean;
|
|
@@ -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;
|
|
@@ -6,7 +6,7 @@ export type CardHeaderProps = {
|
|
|
6
6
|
as?: Exclude<AllowedTypographyHTMLTags, 'h1' | 'p' | 'span'>;
|
|
7
7
|
className?: string;
|
|
8
8
|
headline: string;
|
|
9
|
-
leftElement?: ReactElement<IconProps | IconButtonProps
|
|
9
|
+
leftElement?: ReactElement<IconProps | IconButtonProps> | ReactNode;
|
|
10
10
|
rightElement?: ReactElement<IconButtonProps> | ReactNode;
|
|
11
11
|
type?: Exclude<TypographyTypeProduct, 'h1'>;
|
|
12
12
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MenuItemProps } from './MenuItem.types';
|
|
2
|
-
declare const MenuItem: ({ className: passedClassName, compact, href, isSelected, labelPillClassName, labelPillText, leftIcon, onClick, rightIcon, role, text, }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const MenuItem: ({ className: passedClassName, compact, descriptionText, href, isSelected, labelPillClassName, labelPillText, leftIcon, onClick, rightIcon, role, text, }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MenuItem;
|