@goodhood-web/ui 1.8.0-development.2 → 1.8.0-development.20

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 (43) hide show
  1. package/index.d.ts +9 -4
  2. package/index.js +44 -44
  3. package/index.mjs +3545 -3234
  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/32x32/index.d.ts +12 -0
  26. package/lib/Icon/icons/index.d.ts +12 -0
  27. package/lib/MenuItem/MenuItem.d.ts +1 -1
  28. package/lib/MenuItem/MenuItem.types.d.ts +4 -1
  29. package/lib/MenuTile/MenuTile.d.ts +4 -0
  30. package/lib/{Tile/Tile.type.d.ts → MenuTile/MenuTile.type.d.ts} +1 -1
  31. package/lib/TextButton/TextButton.types.d.ts +1 -1
  32. package/lib/Thumbnail/Thumbnail.d.ts +1 -1
  33. package/lib/Thumbnail/Thumbnail.type.d.ts +2 -2
  34. package/lib/ThumbnailWithLabel/ThumbnailWithLabel.d.ts +4 -0
  35. package/lib/ThumbnailWithLabel/ThumbnailWithLabel.type.d.ts +9 -0
  36. package/lib/Typography/Typography.types.d.ts +1 -1
  37. package/package.json +1 -1
  38. package/style.css +1 -1
  39. package/lib/Accordion/Accordion.d.ts +0 -4
  40. package/lib/Accordion/Accordion.types.d.ts +0 -8
  41. package/lib/Accordion/AccordionItem.d.ts +0 -4
  42. package/lib/Accordion/AccordionItem.types.d.ts +0 -10
  43. 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
+ }
@@ -84,12 +84,21 @@ declare const IconsMap: {
84
84
  readonly cross_circle: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
85
85
  title?: string | undefined;
86
86
  }>;
87
+ readonly gift_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
88
+ title?: string | undefined;
89
+ }>;
87
90
  readonly cutlery: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
88
91
  title?: string | undefined;
89
92
  }>;
93
+ readonly group_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
94
+ title?: string | undefined;
95
+ }>;
90
96
  readonly drill_tool: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
91
97
  title?: string | undefined;
92
98
  }>;
99
+ readonly heart_handShake_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
100
+ title?: string | undefined;
101
+ }>;
93
102
  readonly email: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
94
103
  title?: string | undefined;
95
104
  }>;
@@ -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
  }>;
@@ -228,12 +228,21 @@ declare const iconsMap: {
228
228
  readonly cross_circle: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
229
229
  title?: string | undefined;
230
230
  }>;
231
+ readonly gift_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
232
+ title?: string | undefined;
233
+ }>;
231
234
  readonly cutlery: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
232
235
  title?: string | undefined;
233
236
  }>;
237
+ readonly group_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
238
+ title?: string | undefined;
239
+ }>;
234
240
  readonly drill_tool: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
235
241
  title?: string | undefined;
236
242
  }>;
243
+ readonly heart_handShake_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
244
+ title?: string | undefined;
245
+ }>;
237
246
  readonly email: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
238
247
  title?: string | undefined;
239
248
  }>;
@@ -291,6 +300,9 @@ declare const iconsMap: {
291
300
  readonly info: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
292
301
  title?: string | undefined;
293
302
  }>;
303
+ readonly info_left: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
304
+ title?: string | undefined;
305
+ }>;
294
306
  readonly invite_neighbour: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
295
307
  title?: string | undefined;
296
308
  }>;
@@ -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.20",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {