@goodhood-web/ui 1.4.0 → 1.5.0-development.2

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 (63) hide show
  1. package/index.d.ts +32 -31
  2. package/index.js +26 -26
  3. package/index.mjs +1595 -1591
  4. package/lib/Accordion/Accordion.d.ts +1 -0
  5. package/lib/Accordion/Accordion.types.d.ts +1 -0
  6. package/lib/Accordion/AccordionItem.d.ts +1 -0
  7. package/lib/Accordion/AccordionItem.types.d.ts +1 -0
  8. package/lib/BaseButton/BaseButton.d.ts +2 -1
  9. package/lib/Button/Button.d.ts +1 -0
  10. package/lib/Button/Button.types.d.ts +2 -1
  11. package/lib/ButtonPrimary/ButtonPrimary.d.ts +1 -0
  12. package/lib/ButtonPrimary/ButtonPrimary.types.d.ts +3 -2
  13. package/lib/Card/Card.d.ts +1 -0
  14. package/lib/Card/Card.types.d.ts +3 -2
  15. package/lib/Card/CardBody/CardBody.d.ts +1 -0
  16. package/lib/Card/CardBody/CardBody.types.d.ts +1 -0
  17. package/lib/Card/CardHeader/CardHeader.d.ts +2 -1
  18. package/lib/Card/CardHeader/CardHeader.type.d.ts +6 -4
  19. package/lib/Divider/Divider.d.ts +1 -0
  20. package/lib/Fieldset/Fieldset.d.ts +1 -0
  21. package/lib/Fieldset/Fieldset.types.d.ts +1 -0
  22. package/lib/Form/Form.d.ts +1 -0
  23. package/lib/Form/Form.types.d.ts +1 -0
  24. package/lib/Icon/Icon.d.ts +2 -1
  25. package/lib/Icon/Icon.types.d.ts +3 -2
  26. package/lib/Icon/icons/24x24/index.d.ts +42 -42
  27. package/lib/Icon/icons/32x32/index.d.ts +88 -88
  28. package/lib/Icon/icons/index.d.ts +130 -130
  29. package/lib/IconButton/IconButton.d.ts +2 -1
  30. package/lib/IconButton/IconButton.types.d.ts +3 -1
  31. package/lib/Image/Image.d.ts +1 -0
  32. package/lib/LabelPill/LabelPill.d.ts +1 -0
  33. package/lib/Legend/Legend.d.ts +1 -0
  34. package/lib/MenuItem/MenuItem.d.ts +1 -0
  35. package/lib/MenuItem/MenuItem.types.d.ts +2 -1
  36. package/lib/Modal/Backdrop/Backdrop.d.ts +2 -1
  37. package/lib/Modal/Modal.d.ts +1 -0
  38. package/lib/Modal/Modal.types.d.ts +3 -2
  39. package/lib/NavBar/NavBar.d.ts +1 -0
  40. package/lib/NavBar/NavBar.types.d.ts +1 -0
  41. package/lib/NavBar/NavItem/NavItem.d.ts +1 -0
  42. package/lib/NavBar/NavItem/NavItem.types.d.ts +2 -1
  43. package/lib/NotificationBubble/NotificationBubble.d.ts +1 -0
  44. package/lib/NotificationBubble/NotificationBubble.types.d.ts +1 -0
  45. package/lib/PlaceholderThumbnail/PlaceholderThumbnail.d.ts +1 -0
  46. package/lib/PlaceholderThumbnail/PlaceholderThumbnail.type.d.ts +1 -1
  47. package/lib/Popup/Popup.d.ts +1 -0
  48. package/lib/Popup/Popup.types.d.ts +2 -1
  49. package/lib/TextButton/TextButton.d.ts +1 -0
  50. package/lib/TextButton/TextButton.types.d.ts +4 -3
  51. package/lib/TextInput/TextInput.d.ts +1 -0
  52. package/lib/TextInput/TextInput.types.d.ts +2 -1
  53. package/lib/Thumbnail/Thumbnail.d.ts +1 -0
  54. package/lib/Thumbnail/Thumbnail.type.d.ts +1 -0
  55. package/lib/Toggle/Toggle.d.ts +1 -0
  56. package/lib/Toggle/Toggle.types.d.ts +1 -0
  57. package/lib/ToggleInput/ToggleInput.d.ts +1 -0
  58. package/lib/ToggleInput/ToggleInput.types.d.ts +2 -1
  59. package/lib/Typography/Typography.d.ts +1 -0
  60. package/lib/Typography/Typography.types.d.ts +1 -0
  61. package/package.json +1 -1
  62. package/style.css +1 -1
  63. package/utils/index.d.ts +1 -0
@@ -1,3 +1,4 @@
1
1
  import { AccordionProps } from './Accordion.types';
2
+
2
3
  declare const Accordion: ({ children, className, id }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default Accordion;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  export type AccordionProps = {
3
4
  children: ReactNode;
4
5
  className?: string;
@@ -1,3 +1,4 @@
1
1
  import { AccordionItemProps } from './AccordionItem.types';
2
+
2
3
  declare const AccordionItem: ({ accordionBtnClassName, accordionPanelClassName, children, id, size, title, }: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default AccordionItem;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  export type AccordionItemProps = {
3
4
  accordionBtnClassName?: string;
4
5
  accordionPanelClassName?: string;
@@ -1,5 +1,6 @@
1
- import { ButtonOwnProps } from '@mui/base';
2
1
  import { AriaRole, ForwardedRef, MouseEvent } from 'react';
2
+ import { ButtonOwnProps } from '@mui/base';
3
+
3
4
  export interface BaseButtonProps extends ButtonOwnProps {
4
5
  ariaLabel?: string;
5
6
  ariaLabelledBy?: string;
@@ -1,3 +1,4 @@
1
1
  import { ButtonProps } from './Button.types';
2
+
2
3
  declare function Button(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
3
4
  export default Button;
@@ -1,5 +1,6 @@
1
- import { ButtonOwnProps } from '@mui/base';
2
1
  import { AriaRole, ForwardedRef, MouseEvent, ReactNode } from 'react';
2
+ import { ButtonOwnProps } from '@mui/base';
3
+
3
4
  interface CommonProps {
4
5
  ariaLabel?: string;
5
6
  ariaLabelledBy?: string;
@@ -1,3 +1,4 @@
1
1
  import { ButtonPrimaryProps } from './ButtonPrimary.types';
2
+
2
3
  declare const ButtonPrimary: ({ children, className, color, loading, size, text, ...props }: ButtonPrimaryProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default ButtonPrimary;
@@ -1,10 +1,11 @@
1
- import React from 'react';
2
1
  import { ButtonProps } from '../Button/Button.types';
2
+ import { default as React } from 'react';
3
+
3
4
  export interface ButtonPrimaryProps extends Omit<ButtonProps, 'children'> {
4
5
  children?: React.ReactNode;
5
6
  color?: 'highlight' | 'primary';
6
7
  loading?: boolean;
7
- size?: 'small' | 'medium' | 'large';
8
+ size?: 'tiny' | 'small' | 'medium' | 'large';
8
9
  target?: string;
9
10
  text?: string;
10
11
  }
@@ -1,3 +1,4 @@
1
1
  import { CardProps } from './Card.types';
2
+
2
3
  declare const Card: ({ ariaLabel, as: Tag, borderRadius, children, className, role, }: CardProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default Card;
@@ -1,6 +1,7 @@
1
- import { ReactElement } from 'react';
2
- import { CardBodyProps } from './CardBody/CardBody.types';
3
1
  import { CardHeaderProps } from './CardHeader/CardHeader.type';
2
+ import { CardBodyProps } from './CardBody/CardBody.types';
3
+ import { ReactElement } from 'react';
4
+
4
5
  export interface CardProps {
5
6
  ariaLabel?: string;
6
7
  as?: Extract<keyof JSX.IntrinsicElements, 'section' | 'div'>;
@@ -1,3 +1,4 @@
1
1
  import { CardBodyProps } from './CardBody.types';
2
+
2
3
  declare const CardBody: ({ children, className }: CardBodyProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default CardBody;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  export interface CardBodyProps {
3
4
  children: ReactNode;
4
5
  className?: string;
@@ -1,3 +1,4 @@
1
1
  import { CardHeaderProps } from './CardHeader.type';
2
- declare const CardHeader: ({ as, headline, leftElement, rightElement, type, }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
2
+
3
+ declare const CardHeader: ({ as, className, headline, leftElement, rightElement, type, }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default CardHeader;
@@ -1,10 +1,12 @@
1
- import { ReactElement } from 'react';
2
- import { BaseButtonProps } from '../../BaseButton/BaseButton';
3
- import { IconProps } from '../../Icon/Icon.types';
4
- import { IconButtonProps } from '../../IconButton/IconButton.types';
5
1
  import { TypographyProps } from '../../Typography/Typography.types';
2
+ import { IconButtonProps } from '../../IconButton/IconButton.types';
3
+ import { IconProps } from '../../Icon/Icon.types';
4
+ import { BaseButtonProps } from '../../BaseButton/BaseButton';
5
+ import { ReactElement } from 'react';
6
+
6
7
  export type CardHeaderProps = {
7
8
  as?: Exclude<TypographyProps['as'], 'h1' | 'p' | 'span'>;
9
+ className?: string;
8
10
  headline: string;
9
11
  leftElement?: ReactElement<IconProps | IconButtonProps>;
10
12
  rightElement?: ReactElement<BaseButtonProps>;
@@ -1,3 +1,4 @@
1
1
  import { DividerProps } from './Divider.types';
2
+
2
3
  declare const Divider: ({ offsetLeft, offsetRight }: DividerProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default Divider;
@@ -1,3 +1,4 @@
1
1
  import { FieldsetProps } from './Fieldset.types';
2
+
2
3
  declare const Fieldset: ({ children, classname, disabled, form, name }: FieldsetProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default Fieldset;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  export interface FieldsetProps {
3
4
  children: ReactNode;
4
5
  classname?: string;
@@ -1,3 +1,4 @@
1
1
  import { FormProps } from './Form.types';
2
+
2
3
  declare const Form: ({ ariaLabel, ariaLabelledBy, children, className, id }: FormProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default Form;
@@ -1,4 +1,5 @@
1
1
  import { HTMLProps, ReactNode } from 'react';
2
+
2
3
  type NativeFormProps = HTMLProps<HTMLFormElement>;
3
4
  export type FormProps = {
4
5
  ariaLabel?: NativeFormProps['aria-label'];
@@ -1,4 +1,5 @@
1
- import { ReactElement } from 'react';
2
1
  import { IconProps } from './Icon.types';
2
+ import { ReactElement } from 'react';
3
+
3
4
  declare const Icon: ({ className, name, role, size, title, }: IconProps) => ReactElement | null;
4
5
  export default Icon;
@@ -1,6 +1,7 @@
1
+ import { default as icons32 } from './icons/32x32';
2
+ import { default as icons24 } from './icons/24x24';
1
3
  import { AriaRole } from 'react';
2
- import icons24 from './icons/24x24';
3
- import icons32 from './icons/32x32';
4
+
4
5
  export type Icon32 = keyof typeof icons32;
5
6
  export type Icon24 = keyof typeof icons24;
6
7
  type BaseIconProps = {
@@ -1,129 +1,129 @@
1
1
  /// <reference types="react" />
2
2
  declare const IconsMap: {
3
- readonly arrow_left: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
3
+ readonly arrow_left: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
4
4
  title?: string | undefined;
5
5
  }>;
6
- readonly arrow_right: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
6
+ readonly arrow_right: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
7
7
  title?: string | undefined;
8
8
  }>;
9
- readonly bookmark: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
9
+ readonly bookmark: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
10
10
  title?: string | undefined;
11
11
  }>;
12
- readonly bookmarked: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
12
+ readonly bookmarked: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
13
13
  title?: string | undefined;
14
14
  }>;
15
- readonly burger_menu: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
15
+ readonly burger_menu: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
16
16
  title?: string | undefined;
17
17
  }>;
18
- readonly camera: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
18
+ readonly camera: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
19
19
  title?: string | undefined;
20
20
  }>;
21
- readonly checkmark: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
21
+ readonly checkmark: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
22
22
  title?: string | undefined;
23
23
  }>;
24
- readonly checkmark_circle: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
24
+ readonly checkmark_circle: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
25
25
  title?: string | undefined;
26
26
  }>;
27
- readonly chevron_down: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
27
+ readonly chevron_down: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
28
28
  title?: string | undefined;
29
29
  }>;
30
- readonly chevron_left: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
30
+ readonly chevron_left: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
31
31
  title?: string | undefined;
32
32
  }>;
33
- readonly chevron_right: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
33
+ readonly chevron_right: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
34
34
  title?: string | undefined;
35
35
  }>;
36
- readonly chevron_up: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
36
+ readonly chevron_up: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
37
37
  title?: string | undefined;
38
38
  }>;
39
- readonly comment_bubble: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
39
+ readonly comment_bubble: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
40
40
  title?: string | undefined;
41
41
  }>;
42
- readonly cross: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
42
+ readonly cross: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
43
43
  title?: string | undefined;
44
44
  }>;
45
- readonly cross_circle: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
45
+ readonly cross_circle: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
46
46
  title?: string | undefined;
47
47
  }>;
48
- readonly envelope: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
48
+ readonly envelope: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
49
49
  title?: string | undefined;
50
50
  }>;
51
- readonly event_calendar: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
51
+ readonly event_calendar: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
52
52
  title?: string | undefined;
53
53
  }>;
54
- readonly external_link: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
54
+ readonly external_link: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
55
55
  title?: string | undefined;
56
56
  }>;
57
- readonly eye: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
57
+ readonly eye: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
58
58
  title?: string | undefined;
59
59
  }>;
60
- readonly eye_crossed: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
60
+ readonly eye_crossed: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
61
61
  title?: string | undefined;
62
62
  }>;
63
- readonly filter: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
63
+ readonly filter: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
64
64
  title?: string | undefined;
65
65
  }>;
66
- readonly globe: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
66
+ readonly globe: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
67
67
  title?: string | undefined;
68
68
  }>;
69
- readonly heart: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
69
+ readonly heart: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
70
70
  title?: string | undefined;
71
71
  }>;
72
- readonly image: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
72
+ readonly image: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
73
73
  title?: string | undefined;
74
74
  }>;
75
- readonly loudspeaker: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
75
+ readonly loudspeaker: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
76
76
  title?: string | undefined;
77
77
  }>;
78
- readonly marketplace: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
78
+ readonly marketplace: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
79
79
  title?: string | undefined;
80
80
  }>;
81
- readonly more_dots: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
81
+ readonly more_dots: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
82
82
  title?: string | undefined;
83
83
  }>;
84
- readonly more_dots_alt: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
84
+ readonly more_dots_alt: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
85
85
  title?: string | undefined;
86
86
  }>;
87
- readonly mute: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
87
+ readonly mute: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
88
88
  title?: string | undefined;
89
89
  }>;
90
- readonly notification_bell: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
90
+ readonly notification_bell: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
91
91
  title?: string | undefined;
92
92
  }>;
93
- readonly paperclip: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
93
+ readonly paperclip: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
94
94
  title?: string | undefined;
95
95
  }>;
96
- readonly pencil: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
96
+ readonly pencil: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
97
97
  title?: string | undefined;
98
98
  }>;
99
- readonly pin: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
99
+ readonly pin: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
100
100
  title?: string | undefined;
101
101
  }>;
102
- readonly plus: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
102
+ readonly plus: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
103
103
  title?: string | undefined;
104
104
  }>;
105
- readonly plus_circle: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
105
+ readonly plus_circle: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
106
106
  title?: string | undefined;
107
107
  }>;
108
- readonly privacy_lock: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
108
+ readonly privacy_lock: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
109
109
  title?: string | undefined;
110
110
  }>;
111
- readonly search: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
111
+ readonly search: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
112
112
  title?: string | undefined;
113
113
  }>;
114
- readonly share_arrow: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
114
+ readonly share_arrow: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
115
115
  title?: string | undefined;
116
116
  }>;
117
- readonly share_arrow_outline: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
117
+ readonly share_arrow_outline: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
118
118
  title?: string | undefined;
119
119
  }>;
120
- readonly sort: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
120
+ readonly sort: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
121
121
  title?: string | undefined;
122
122
  }>;
123
- readonly thanks: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
123
+ readonly thanks: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
124
124
  title?: string | undefined;
125
125
  }>;
126
- readonly trash_can: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
126
+ readonly trash_can: import('react').FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
127
127
  title?: string | undefined;
128
128
  }>;
129
129
  };