@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.
Files changed (44) hide show
  1. package/index.d.ts +9 -4
  2. package/index.js +44 -44
  3. package/index.mjs +3587 -3275
  4. package/lib/ActionBar/ActionBar.d.ts +4 -0
  5. package/lib/ActionBar/ActionBar.types.d.ts +8 -0
  6. package/lib/ActionBar/ActionBarCta/ActionBarCta.d.ts +4 -0
  7. package/lib/ActionBar/ActionBarCta/ActionBarCta.types.d.ts +8 -0
  8. package/lib/ActionBar/ActionBarList/ActionBarList.d.ts +4 -0
  9. package/lib/ActionBar/ActionBarList/ActionBarList.types.d.ts +5 -0
  10. package/lib/ActionBar/ActionBarList/ActionItem/ActionItem.d.ts +4 -0
  11. package/lib/ActionBar/ActionBarList/ActionItem/ActionItem.types.d.ts +10 -0
  12. package/lib/BodyText/BodyText.d.ts +4 -0
  13. package/lib/BodyText/BodyText.types.d.ts +5 -0
  14. package/lib/BodyText/util.d.ts +1 -0
  15. package/lib/BottomSheet/BottomSheet.d.ts +4 -0
  16. package/lib/BottomSheet/BottomSheet.types.d.ts +15 -0
  17. package/lib/ButtonPrimary/ButtonPrimary.d.ts +1 -1
  18. package/lib/ButtonPrimary/ButtonPrimary.types.d.ts +1 -0
  19. package/lib/ButtonSecondary/ButtonSecondary.d.ts +4 -0
  20. package/lib/ButtonSecondary/ButtonSecondary.types.d.ts +12 -0
  21. package/lib/ButtonTertiary/ButtonTertiary.d.ts +4 -0
  22. package/lib/ButtonTertiary/ButtonTertiary.types.d.ts +12 -0
  23. package/lib/FeedTile/FeedTile.d.ts +4 -0
  24. package/lib/FeedTile/FeedTile.types.d.ts +10 -0
  25. package/lib/Icon/icons/24x24/index.d.ts +3 -0
  26. package/lib/Icon/icons/32x32/index.d.ts +12 -0
  27. package/lib/Icon/icons/index.d.ts +15 -0
  28. package/lib/MenuItem/MenuItem.d.ts +1 -1
  29. package/lib/MenuItem/MenuItem.types.d.ts +4 -1
  30. package/lib/MenuTile/MenuTile.d.ts +4 -0
  31. package/lib/{Tile/Tile.type.d.ts → MenuTile/MenuTile.type.d.ts} +1 -1
  32. package/lib/TextButton/TextButton.types.d.ts +1 -1
  33. package/lib/Thumbnail/Thumbnail.d.ts +1 -1
  34. package/lib/Thumbnail/Thumbnail.type.d.ts +2 -2
  35. package/lib/ThumbnailWithLabel/ThumbnailWithLabel.d.ts +4 -0
  36. package/lib/ThumbnailWithLabel/ThumbnailWithLabel.type.d.ts +9 -0
  37. package/lib/Typography/Typography.types.d.ts +1 -1
  38. package/package.json +1 -1
  39. package/style.css +1 -1
  40. package/lib/Accordion/Accordion.d.ts +0 -4
  41. package/lib/Accordion/Accordion.types.d.ts +0 -8
  42. package/lib/Accordion/AccordionItem.d.ts +0 -4
  43. package/lib/Accordion/AccordionItem.types.d.ts +0 -10
  44. package/lib/Tile/Tile.d.ts +0 -4
@@ -0,0 +1,4 @@
1
+ import { ActionBarProps } from './ActionBar.types';
2
+
3
+ declare const ActionBar: (props: ActionBarProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ActionBar;
@@ -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,4 @@
1
+ import { default as ActionBarCtaProps } from './ActionBarCta.types';
2
+
3
+ declare const ActionBarCta: ({ button, text }: ActionBarCtaProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ActionBarCta;
@@ -0,0 +1,8 @@
1
+ import { ButtonProps } from '../../Button/Button.types';
2
+
3
+ export default interface ActionBarCtaProps {
4
+ button: Pick<ButtonProps, 'onClick' | 'ariaLabel'> & {
5
+ text: string;
6
+ };
7
+ text: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ import { default as ActionBarListProps } from './ActionBarList.types';
2
+
3
+ declare const ActionBarList: ({ items }: ActionBarListProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ActionBarList;
@@ -0,0 +1,5 @@
1
+ import { default as ActionBarItemProps } from './ActionItem/ActionItem.types';
2
+
3
+ export default interface ActionBarListProps {
4
+ items: ActionBarItemProps[];
5
+ }
@@ -0,0 +1,4 @@
1
+ import { default as ActionItemProps } from './ActionItem.types';
2
+
3
+ declare const ActionItem: ({ className, disabled, icon, onClick, text }: ActionItemProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ActionItem;
@@ -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,4 @@
1
+ import { default as BodyTextProps } from './BodyText.types';
2
+
3
+ declare const BodyText: ({ bodyText, headlineText, type }: BodyTextProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default BodyText;
@@ -0,0 +1,5 @@
1
+ export default interface BodyTextProps {
2
+ bodyText?: string;
3
+ headlineText?: string;
4
+ type: 'post' | 'modal';
5
+ }
@@ -0,0 +1 @@
1
+ export declare const parseText: (text: string, regEx: RegExp) => (string | import("react/jsx-runtime").JSX.Element)[] | null;
@@ -0,0 +1,4 @@
1
+ import { SheetProps } from './BottomSheet.types';
2
+
3
+ declare const BottomSheet: ({ ariaLabel, ctaButtonProps, linkProps, onClose, open, sheetBody, sheetHeader, }: SheetProps) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default BottomSheet;
@@ -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,4 @@
1
+ import { default as FeedTileProps } from './FeedTile.types';
2
+
3
+ declare const FeedTile: ({ fullWidth, icon, onClick, text }: FeedTileProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default FeedTile;
@@ -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: ReactNode;
12
+ leftIcon?: ReactNode;
10
13
  onClick?: ButtonProps['onClick'];
11
14
  rightIcon?: ReactNode;
12
15
  role?: ButtonProps['role'];
@@ -0,0 +1,4 @@
1
+ import { default as MenuTileProps } from './MenuTile.type';
2
+
3
+ declare const MenuTile: ({ fullWidth, icon, primaryText, secondaryText, ...props }: MenuTileProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default MenuTile;
@@ -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 TileProps extends Omit<ButtonProps, 'children'> {
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' | 'text';
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "1.8.0-development.2",
3
+ "version": "1.8.0-development.21",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {