@goodhood-web/ui 1.8.0-development.2 → 1.8.0-development.21
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 +9 -4
- package/index.js +44 -44
- package/index.mjs +3587 -3275
- package/lib/ActionBar/ActionBar.d.ts +4 -0
- package/lib/ActionBar/ActionBar.types.d.ts +8 -0
- package/lib/ActionBar/ActionBarCta/ActionBarCta.d.ts +4 -0
- package/lib/ActionBar/ActionBarCta/ActionBarCta.types.d.ts +8 -0
- package/lib/ActionBar/ActionBarList/ActionBarList.d.ts +4 -0
- package/lib/ActionBar/ActionBarList/ActionBarList.types.d.ts +5 -0
- package/lib/ActionBar/ActionBarList/ActionItem/ActionItem.d.ts +4 -0
- package/lib/ActionBar/ActionBarList/ActionItem/ActionItem.types.d.ts +10 -0
- package/lib/BodyText/BodyText.d.ts +4 -0
- package/lib/BodyText/BodyText.types.d.ts +5 -0
- package/lib/BodyText/util.d.ts +1 -0
- package/lib/BottomSheet/BottomSheet.d.ts +4 -0
- package/lib/BottomSheet/BottomSheet.types.d.ts +15 -0
- package/lib/ButtonPrimary/ButtonPrimary.d.ts +1 -1
- package/lib/ButtonPrimary/ButtonPrimary.types.d.ts +1 -0
- package/lib/ButtonSecondary/ButtonSecondary.d.ts +4 -0
- package/lib/ButtonSecondary/ButtonSecondary.types.d.ts +12 -0
- package/lib/ButtonTertiary/ButtonTertiary.d.ts +4 -0
- package/lib/ButtonTertiary/ButtonTertiary.types.d.ts +12 -0
- package/lib/FeedTile/FeedTile.d.ts +4 -0
- package/lib/FeedTile/FeedTile.types.d.ts +10 -0
- package/lib/Icon/icons/24x24/index.d.ts +3 -0
- package/lib/Icon/icons/32x32/index.d.ts +12 -0
- package/lib/Icon/icons/index.d.ts +15 -0
- package/lib/MenuItem/MenuItem.d.ts +1 -1
- package/lib/MenuItem/MenuItem.types.d.ts +4 -1
- package/lib/MenuTile/MenuTile.d.ts +4 -0
- package/lib/{Tile/Tile.type.d.ts → MenuTile/MenuTile.type.d.ts} +1 -1
- package/lib/TextButton/TextButton.types.d.ts +1 -1
- package/lib/Thumbnail/Thumbnail.d.ts +1 -1
- package/lib/Thumbnail/Thumbnail.type.d.ts +2 -2
- package/lib/ThumbnailWithLabel/ThumbnailWithLabel.d.ts +4 -0
- package/lib/ThumbnailWithLabel/ThumbnailWithLabel.type.d.ts +9 -0
- package/lib/Typography/Typography.types.d.ts +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/Accordion/Accordion.d.ts +0 -4
- package/lib/Accordion/Accordion.types.d.ts +0 -8
- package/lib/Accordion/AccordionItem.d.ts +0 -4
- package/lib/Accordion/AccordionItem.types.d.ts +0 -10
- package/lib/Tile/Tile.d.ts +0 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as ActionBarCtaProps } from './ActionBarCta/ActionBarCta.types';
|
|
2
|
+
import { default as ActionBarListProps } from './ActionBarList/ActionBarList.types';
|
|
3
|
+
|
|
4
|
+
export type ActionBarProps = (ActionBarListProps & {
|
|
5
|
+
type: 'list';
|
|
6
|
+
}) | (ActionBarCtaProps & {
|
|
7
|
+
type: 'cta';
|
|
8
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonProps } from '../../../Button/Button.types';
|
|
2
|
+
import { Icon24 } from '../../../Icon/Icon.types';
|
|
3
|
+
|
|
4
|
+
export default interface ActionBarItemProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
icon: Icon24;
|
|
8
|
+
onClick?: ButtonProps['onClick'];
|
|
9
|
+
text: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseText: (text: string, regEx: RegExp) => (string | import("react/jsx-runtime").JSX.Element)[] | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ButtonPrimaryProps } from '../ButtonPrimary/ButtonPrimary.types';
|
|
3
|
+
import { CardBodyProps } from '../Card/CardBody/CardBody.types';
|
|
4
|
+
import { CardHeaderProps } from '../Card/CardHeader/CardHeader.type';
|
|
5
|
+
import { TextButtonProps } from '../TextButton/TextButton.types';
|
|
6
|
+
|
|
7
|
+
export interface SheetProps {
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
ctaButtonProps?: ButtonPrimaryProps;
|
|
10
|
+
linkProps?: TextButtonProps;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
open: boolean;
|
|
13
|
+
sheetBody?: ReactElement<CardBodyProps>;
|
|
14
|
+
sheetHeader?: ReactElement<CardHeaderProps>;
|
|
15
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ButtonSecondaryProps } from './ButtonSecondary.types';
|
|
2
|
+
|
|
3
|
+
declare const ButtonSecondary: ({ children, className, color, disabled, fullWidth, loading, size, text, ...props }: ButtonSecondaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default ButtonSecondary;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button/Button.types';
|
|
3
|
+
|
|
4
|
+
export interface ButtonSecondaryProps extends Omit<ButtonProps, 'children'> {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
color?: 'green' | 'pink' | 'grey';
|
|
7
|
+
fullWidth?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
size?: 'tiny' | 'small' | 'medium' | 'large';
|
|
10
|
+
target?: string;
|
|
11
|
+
text?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ButtonTertiaryProps } from './ButtonTertiary.types';
|
|
2
|
+
|
|
3
|
+
declare const ButtonTertiary: ({ children, className, color, disabled, fullWidth, loading, size, text, ...props }: ButtonTertiaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default ButtonTertiary;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button/Button.types';
|
|
3
|
+
|
|
4
|
+
export interface ButtonTertiaryProps extends Omit<ButtonProps, 'children'> {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
color?: 'green' | 'pink' | 'blue';
|
|
7
|
+
fullWidth?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
size?: 'tiny' | 'small' | 'medium' | 'large';
|
|
10
|
+
target?: string;
|
|
11
|
+
text?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseButtonProps } from '../Button/Button.types';
|
|
3
|
+
import { Icon32 } from '../Icon/Icon.types';
|
|
4
|
+
|
|
5
|
+
export default interface FeedTileProps {
|
|
6
|
+
fullWidth?: boolean;
|
|
7
|
+
icon: Icon32;
|
|
8
|
+
onClick?: BaseButtonProps['onClick'];
|
|
9
|
+
text: ReactNode;
|
|
10
|
+
}
|
|
@@ -15,6 +15,9 @@ declare const IconsMap: {
|
|
|
15
15
|
readonly burger_menu: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
16
16
|
title?: string | undefined;
|
|
17
17
|
}>;
|
|
18
|
+
readonly business: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
19
|
+
title?: string | undefined;
|
|
20
|
+
}>;
|
|
18
21
|
readonly camera: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
19
22
|
title?: string | undefined;
|
|
20
23
|
}>;
|
|
@@ -120,12 +120,18 @@ declare const IconsMap: {
|
|
|
120
120
|
readonly gift: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
121
121
|
title?: string | undefined;
|
|
122
122
|
}>;
|
|
123
|
+
readonly gift_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
124
|
+
title?: string | undefined;
|
|
125
|
+
}>;
|
|
123
126
|
readonly globe: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
124
127
|
title?: string | undefined;
|
|
125
128
|
}>;
|
|
126
129
|
readonly group: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
127
130
|
title?: string | undefined;
|
|
128
131
|
}>;
|
|
132
|
+
readonly group_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
133
|
+
title?: string | undefined;
|
|
134
|
+
}>;
|
|
129
135
|
readonly healthcare: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
130
136
|
title?: string | undefined;
|
|
131
137
|
}>;
|
|
@@ -135,6 +141,9 @@ declare const IconsMap: {
|
|
|
135
141
|
readonly heart_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
136
142
|
title?: string | undefined;
|
|
137
143
|
}>;
|
|
144
|
+
readonly heart_handShake_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
145
|
+
title?: string | undefined;
|
|
146
|
+
}>;
|
|
138
147
|
readonly heart_outline: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
139
148
|
title?: string | undefined;
|
|
140
149
|
}>;
|
|
@@ -147,6 +156,9 @@ declare const IconsMap: {
|
|
|
147
156
|
readonly info: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
148
157
|
title?: string | undefined;
|
|
149
158
|
}>;
|
|
159
|
+
readonly info_left: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
160
|
+
title?: string | undefined;
|
|
161
|
+
}>;
|
|
150
162
|
readonly invite_neighbour: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
151
163
|
title?: string | undefined;
|
|
152
164
|
}>;
|
|
@@ -16,6 +16,9 @@ declare const iconsMap: {
|
|
|
16
16
|
readonly burger_menu: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
17
17
|
title?: string | undefined;
|
|
18
18
|
}>;
|
|
19
|
+
readonly business: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
}>;
|
|
19
22
|
readonly camera: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
20
23
|
title?: string | undefined;
|
|
21
24
|
}>;
|
|
@@ -264,12 +267,18 @@ declare const iconsMap: {
|
|
|
264
267
|
readonly gift: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
265
268
|
title?: string | undefined;
|
|
266
269
|
}>;
|
|
270
|
+
readonly gift_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
271
|
+
title?: string | undefined;
|
|
272
|
+
}>;
|
|
267
273
|
readonly globe: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
268
274
|
title?: string | undefined;
|
|
269
275
|
}>;
|
|
270
276
|
readonly group: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
271
277
|
title?: string | undefined;
|
|
272
278
|
}>;
|
|
279
|
+
readonly group_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
280
|
+
title?: string | undefined;
|
|
281
|
+
}>;
|
|
273
282
|
readonly healthcare: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
274
283
|
title?: string | undefined;
|
|
275
284
|
}>;
|
|
@@ -279,6 +288,9 @@ declare const iconsMap: {
|
|
|
279
288
|
readonly heart_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
280
289
|
title?: string | undefined;
|
|
281
290
|
}>;
|
|
291
|
+
readonly heart_handShake_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
292
|
+
title?: string | undefined;
|
|
293
|
+
}>;
|
|
282
294
|
readonly heart_outline: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
283
295
|
title?: string | undefined;
|
|
284
296
|
}>;
|
|
@@ -291,6 +303,9 @@ declare const iconsMap: {
|
|
|
291
303
|
readonly info: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
292
304
|
title?: string | undefined;
|
|
293
305
|
}>;
|
|
306
|
+
readonly info_left: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
307
|
+
title?: string | undefined;
|
|
308
|
+
}>;
|
|
294
309
|
readonly invite_neighbour: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
295
310
|
title?: string | undefined;
|
|
296
311
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MenuItemProps } from './MenuItem.types';
|
|
2
2
|
|
|
3
|
-
declare const MenuItem: ({ className: passedClassName, href, isSelected, labelPillText, leftIcon, onClick, rightIcon, role, text, }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const MenuItem: ({ className: passedClassName, compact, href, isSelected, labelPillClassName, labelPillText, leftIcon, onClick, rightIcon, role, text, }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default MenuItem;
|
|
@@ -3,10 +3,13 @@ import { ButtonProps } from '../Button/Button.types';
|
|
|
3
3
|
|
|
4
4
|
export interface MenuItemProps {
|
|
5
5
|
className?: string;
|
|
6
|
+
compact?: boolean;
|
|
6
7
|
href?: string;
|
|
8
|
+
id?: string;
|
|
7
9
|
isSelected?: boolean;
|
|
10
|
+
labelPillClassName?: string;
|
|
8
11
|
labelPillText?: string;
|
|
9
|
-
leftIcon
|
|
12
|
+
leftIcon?: ReactNode;
|
|
10
13
|
onClick?: ButtonProps['onClick'];
|
|
11
14
|
rightIcon?: ReactNode;
|
|
12
15
|
role?: ButtonProps['role'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonProps } from '../Button/Button.types';
|
|
2
2
|
import { Icon32 } from '../Icon/Icon.types';
|
|
3
3
|
|
|
4
|
-
export default interface
|
|
4
|
+
export default interface MenuTileProps extends Omit<ButtonProps, 'children'> {
|
|
5
5
|
fullWidth?: boolean;
|
|
6
6
|
icon?: Icon32;
|
|
7
7
|
primaryText?: string;
|
|
@@ -4,7 +4,7 @@ import { IconProps } from '../Icon/Icon.types';
|
|
|
4
4
|
import { NotificationBubbleProps } from '../NotificationBubble/NotificationBubble.types';
|
|
5
5
|
|
|
6
6
|
export interface TextButtonProps extends Omit<ButtonProps, 'role' | 'className'> {
|
|
7
|
-
color: 'green' | 'blue' | '
|
|
7
|
+
color: 'green' | 'blue' | 'deepPurple';
|
|
8
8
|
leftIcon?: ReactElement<IconProps | NotificationBubbleProps>;
|
|
9
9
|
rightIcon?: ReactElement<IconProps | NotificationBubbleProps>;
|
|
10
10
|
size: 'large' | 'medium' | 'small';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ThumbnailCircularProps, ThumbnailSquareProps } from './Thumbnail.type';
|
|
2
2
|
|
|
3
|
-
declare const Thumbnail: ({ alt, isPlaceholder, shape, size, src, }: ThumbnailCircularProps | ThumbnailSquareProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Thumbnail: ({ alt, className, isPlaceholder, shape, size, src, }: ThumbnailCircularProps | ThumbnailSquareProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Thumbnail;
|
|
@@ -1,6 +1,7 @@
|
|
|
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
6
|
}
|
|
6
7
|
export type TCircularSize = '28' | '32' | '40' | '48' | '56' | '64' | '80' | '120' | '280';
|
|
@@ -13,4 +14,3 @@ export interface ThumbnailSquareProps extends ThumbnailProps {
|
|
|
13
14
|
shape: 'square';
|
|
14
15
|
size: TSquareSize;
|
|
15
16
|
}
|
|
16
|
-
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
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
export type TypographyType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7' | 'h8' | 'body-large' | 'body-regular' | 'body-semibold' | 'body-italic' | 'detail-medium' | 'detail-bold' | 'detail-upper-case' | 'detail-regular';
|
|
3
|
+
export type TypographyType = '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';
|
|
4
4
|
export interface TypographyProps {
|
|
5
5
|
as?: Extract<keyof JSX.IntrinsicElements, 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;
|
|
6
6
|
children: ReactNode;
|