@goodhood-web/ui 1.8.0-development.1 → 1.8.0-development.11

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.
@@ -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 { default as FeedItemCategoryProps } from './FeedItemCategory.types';
2
+
3
+ declare const FeedItemCategory: ({ className, text, type }: FeedItemCategoryProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default FeedItemCategory;
@@ -0,0 +1,5 @@
1
+ export default interface FeedItemCategoryProps {
2
+ className?: string;
3
+ text: string;
4
+ type: 'closedPost' | 'theme';
5
+ }
@@ -147,6 +147,9 @@ declare const IconsMap: {
147
147
  readonly info: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
148
148
  title?: string | undefined;
149
149
  }>;
150
+ readonly info_left: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
151
+ title?: string | undefined;
152
+ }>;
150
153
  readonly invite_neighbour: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
151
154
  title?: string | undefined;
152
155
  }>;
@@ -291,6 +291,9 @@ declare const iconsMap: {
291
291
  readonly info: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
292
292
  title?: string | undefined;
293
293
  }>;
294
+ readonly info_left: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
295
+ title?: string | undefined;
296
+ }>;
294
297
  readonly invite_neighbour: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
295
298
  title?: string | undefined;
296
299
  }>;
@@ -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'];
@@ -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
+ };
@@ -0,0 +1,4 @@
1
+ import { default as ThumbnailWrapperProps } from './ThumbnailWrapper.types';
2
+
3
+ declare const ThumbnailWrapper: ({ ariaLabel, children, thumbnail }: ThumbnailWrapperProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ThumbnailWrapper;
@@ -0,0 +1,8 @@
1
+ import { BadgeOwnProps } from '@mui/base/Badge/Badge.types';
2
+ import { ThumbnailCircularProps, ThumbnailSquareProps } from '../Thumbnail/Thumbnail.type';
3
+
4
+ export default interface ThumbnailWrapperProps {
5
+ ariaLabel?: string;
6
+ children: BadgeOwnProps['children'];
7
+ thumbnail: ThumbnailCircularProps | ThumbnailSquareProps;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/ui",
3
- "version": "1.8.0-development.1",
3
+ "version": "1.8.0-development.11",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {