@goodhood-web/ui 1.6.0-development.4 → 1.6.0-development.40
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 +40 -33
- package/index.js +51 -43
- package/index.mjs +4426 -3161
- package/lib/Badge/Badge.d.ts +4 -0
- package/lib/Badge/Badge.types.d.ts +10 -0
- package/lib/BadgeIcon/BadgeIcon.d.ts +4 -0
- package/lib/BadgeIcon/BadgeIcon.types.d.ts +9 -0
- package/lib/BadgeLabel/BadgeLabel.d.ts +4 -0
- package/lib/BadgeLabel/BadgeLabel.types.d.ts +10 -0
- package/lib/Button/Button.types.d.ts +2 -2
- package/lib/ButtonPrimary/ButtonPrimary.d.ts +1 -1
- package/lib/ButtonPrimary/ButtonPrimary.types.d.ts +2 -2
- package/lib/Card/Card.types.d.ts +2 -2
- package/lib/Card/CardHeader/CardHeader.type.d.ts +4 -5
- package/lib/Fieldset/Fieldset.d.ts +1 -1
- package/lib/Fieldset/Fieldset.types.d.ts +1 -1
- package/lib/Icon/Icon.d.ts +1 -1
- package/lib/Icon/Icon.types.d.ts +2 -2
- package/lib/Icon/icons/24x24/index.d.ts +12 -0
- package/lib/Icon/icons/32x32/index.d.ts +12 -0
- package/lib/Icon/icons/index.d.ts +24 -0
- package/lib/IconButton/IconButton.types.d.ts +1 -1
- package/lib/Markdown/Markdown.d.ts +1 -1
- package/lib/MenuItem/MenuItem.d.ts +1 -1
- package/lib/MenuItem/MenuItem.types.d.ts +5 -3
- package/lib/NavBar/NavItem/NavItem.types.d.ts +1 -1
- package/lib/NotificationListItem/NotificationListItem.d.ts +4 -0
- package/lib/NotificationListItem/NotificationListItem.types.d.ts +11 -0
- package/lib/PlaceholderThumbnail/PlaceholderThumbnail.type.d.ts +2 -1
- package/lib/Popup/Popup.d.ts +1 -1
- package/lib/Popup/Popup.types.d.ts +9 -2
- package/lib/Select/Select.d.ts +3 -0
- package/lib/Select/Select.example.d.ts +10 -0
- package/lib/Select/Select.types.d.ts +18 -0
- package/lib/Sheet/Backdrop/Backdrop.d.ts +4 -0
- package/lib/Sheet/Sheet.d.ts +4 -0
- package/lib/{Modal/Modal.types.d.ts → Sheet/Sheet.types.d.ts} +6 -5
- package/lib/Sticker/Sticker.d.ts +4 -0
- package/lib/Sticker/Sticker.types.d.ts +7 -0
- package/lib/TextArea/TextArea.d.ts +4 -0
- package/lib/TextArea/TextArea.types.d.ts +12 -0
- package/lib/TextButton/TextButton.types.d.ts +3 -3
- package/lib/TextInput/TextInput.types.d.ts +1 -1
- package/lib/Tile/Tile.d.ts +4 -0
- package/lib/Tile/Tile.type.d.ts +9 -0
- package/lib/ToggleInput/ToggleInput.types.d.ts +1 -1
- package/package.json +3 -3
- package/style.css +1 -1
- package/lib/BaseButton/BaseButton.d.ts +0 -18
- package/lib/Modal/Backdrop/Backdrop.d.ts +0 -5
- package/lib/Modal/Modal.d.ts +0 -4
- /package/lib/{Modal → Sheet}/Backdrop/Backdrop.types.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BadgeOwnProps } from '@mui/base';
|
|
2
|
+
import { default as BadgeIconProps } from '../BadgeIcon/BadgeIcon.types';
|
|
3
|
+
|
|
4
|
+
type BadgeIcon = BadgeIconProps['type'];
|
|
5
|
+
export interface BadgeProps {
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
badgeIcons: [BadgeIcon] | [BadgeIcon, BadgeIcon] | [BadgeIcon, BadgeIcon, BadgeIcon];
|
|
8
|
+
children: BadgeOwnProps['children'];
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as BadgeIconProps } from '../BadgeIcon/BadgeIcon.types';
|
|
2
|
+
import { TextButtonProps } from '../TextButton/TextButton.types';
|
|
3
|
+
|
|
4
|
+
export default interface BadgeLabelProps {
|
|
5
|
+
buttonHref: TextButtonProps['href'];
|
|
6
|
+
buttonOnClick: TextButtonProps['onClick'];
|
|
7
|
+
buttonText: string;
|
|
8
|
+
text: string;
|
|
9
|
+
type: Extract<BadgeIconProps['type'], 'ben' | 'supporter' | 'muted'>;
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AriaRole, ForwardedRef, MouseEvent, ReactNode } from 'react';
|
|
2
1
|
import { ButtonOwnProps } from '@mui/base';
|
|
2
|
+
import { AriaRole, ForwardedRef, MouseEvent, ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
interface CommonProps {
|
|
5
5
|
ariaLabel?: string;
|
|
@@ -16,7 +16,7 @@ export interface BaseButtonProps extends ButtonOwnProps, CommonProps {
|
|
|
16
16
|
export interface LinkProps extends CommonProps {
|
|
17
17
|
children: ReactNode;
|
|
18
18
|
href?: string;
|
|
19
|
-
onClick?: (event
|
|
19
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
20
20
|
rel?: string;
|
|
21
21
|
target?: string;
|
|
22
22
|
}
|
|
@@ -1,4 +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
|
+
declare const ButtonPrimary: ({ children, className, color, disabled, loading, size, text, ...props }: ButtonPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default ButtonPrimary;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { ButtonProps } from '../Button/Button.types';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
3
|
|
|
4
4
|
export interface ButtonPrimaryProps extends Omit<ButtonProps, 'children'> {
|
|
5
|
-
children?:
|
|
5
|
+
children?: ReactNode;
|
|
6
6
|
color?: 'highlight' | 'primary' | 'transparent';
|
|
7
7
|
loading?: boolean;
|
|
8
8
|
size?: 'tiny' | 'small' | 'medium' | 'large';
|
package/lib/Card/Card.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CardHeaderProps } from './CardHeader/CardHeader.type';
|
|
2
|
-
import { CardBodyProps } from './CardBody/CardBody.types';
|
|
3
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { CardBodyProps } from './CardBody/CardBody.types';
|
|
3
|
+
import { CardHeaderProps } from './CardHeader/CardHeader.type';
|
|
4
4
|
|
|
5
5
|
export interface CardProps {
|
|
6
6
|
ariaLabel?: string;
|
|
@@ -1,14 +1,13 @@
|
|
|
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
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { IconProps } from '../../Icon/Icon.types';
|
|
3
|
+
import { IconButtonProps } from '../../IconButton/IconButton.types';
|
|
4
|
+
import { TypographyProps } from '../../Typography/Typography.types';
|
|
6
5
|
|
|
7
6
|
export type CardHeaderProps = {
|
|
8
7
|
as?: Exclude<TypographyProps['as'], 'h1' | 'p' | 'span'>;
|
|
9
8
|
className?: string;
|
|
10
9
|
headline: string;
|
|
11
10
|
leftElement?: ReactElement<IconProps | IconButtonProps>;
|
|
12
|
-
rightElement?: ReactElement<
|
|
11
|
+
rightElement?: ReactElement<IconButtonProps>;
|
|
13
12
|
type?: Exclude<TypographyProps['type'], 'h1'>;
|
|
14
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FieldsetProps } from './Fieldset.types';
|
|
2
2
|
|
|
3
|
-
declare const Fieldset: ({ children,
|
|
3
|
+
declare const Fieldset: ({ children, className, disabled, form, name }: FieldsetProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Fieldset;
|
package/lib/Icon/Icon.d.ts
CHANGED
package/lib/Icon/Icon.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { default as icons32 } from './icons/32x32';
|
|
2
|
-
import { default as icons24 } from './icons/24x24';
|
|
3
1
|
import { AriaRole } from 'react';
|
|
2
|
+
import { default as icons24 } from './icons/24x24';
|
|
3
|
+
import { default as icons32 } from './icons/32x32';
|
|
4
4
|
|
|
5
5
|
export type Icon32 = keyof typeof icons32;
|
|
6
6
|
export type Icon24 = keyof typeof icons24;
|
|
@@ -69,6 +69,12 @@ declare const IconsMap: {
|
|
|
69
69
|
readonly heart: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
70
70
|
title?: string | undefined;
|
|
71
71
|
}>;
|
|
72
|
+
readonly heart_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
73
|
+
title?: string | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
readonly heart_outline: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
76
|
+
title?: string | undefined;
|
|
77
|
+
}>;
|
|
72
78
|
readonly image: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
73
79
|
title?: string | undefined;
|
|
74
80
|
}>;
|
|
@@ -111,6 +117,9 @@ declare const IconsMap: {
|
|
|
111
117
|
readonly privacy_lock_closed: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
112
118
|
title?: string | undefined;
|
|
113
119
|
}>;
|
|
120
|
+
readonly react: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
121
|
+
title?: string | undefined;
|
|
122
|
+
}>;
|
|
114
123
|
readonly search: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
115
124
|
title?: string | undefined;
|
|
116
125
|
}>;
|
|
@@ -123,6 +132,9 @@ declare const IconsMap: {
|
|
|
123
132
|
readonly sort: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
124
133
|
title?: string | undefined;
|
|
125
134
|
}>;
|
|
135
|
+
readonly special_place: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
136
|
+
title?: string | undefined;
|
|
137
|
+
}>;
|
|
126
138
|
readonly thanks: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
127
139
|
title?: string | undefined;
|
|
128
140
|
}>;
|
|
@@ -72,6 +72,9 @@ declare const IconsMap: {
|
|
|
72
72
|
readonly computer: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
73
73
|
title?: string | undefined;
|
|
74
74
|
}>;
|
|
75
|
+
readonly confetti: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
76
|
+
title?: string | undefined;
|
|
77
|
+
}>;
|
|
75
78
|
readonly couch: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
76
79
|
title?: string | undefined;
|
|
77
80
|
}>;
|
|
@@ -126,6 +129,12 @@ declare const IconsMap: {
|
|
|
126
129
|
readonly heart: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
127
130
|
title?: string | undefined;
|
|
128
131
|
}>;
|
|
132
|
+
readonly heart_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
133
|
+
title?: string | undefined;
|
|
134
|
+
}>;
|
|
135
|
+
readonly heart_outline: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
136
|
+
title?: string | undefined;
|
|
137
|
+
}>;
|
|
129
138
|
readonly house: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
130
139
|
title?: string | undefined;
|
|
131
140
|
}>;
|
|
@@ -171,6 +180,9 @@ declare const IconsMap: {
|
|
|
171
180
|
readonly more_dots_alt: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
172
181
|
title?: string | undefined;
|
|
173
182
|
}>;
|
|
183
|
+
readonly more_dots_outline: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
184
|
+
title?: string | undefined;
|
|
185
|
+
}>;
|
|
174
186
|
readonly music: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
175
187
|
title?: string | undefined;
|
|
176
188
|
}>;
|
|
@@ -70,6 +70,12 @@ declare const iconsMap: {
|
|
|
70
70
|
readonly heart: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
71
71
|
title?: string | undefined;
|
|
72
72
|
}>;
|
|
73
|
+
readonly heart_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
74
|
+
title?: string | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
readonly heart_outline: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
77
|
+
title?: string | undefined;
|
|
78
|
+
}>;
|
|
73
79
|
readonly image: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
74
80
|
title?: string | undefined;
|
|
75
81
|
}>;
|
|
@@ -112,6 +118,9 @@ declare const iconsMap: {
|
|
|
112
118
|
readonly privacy_lock_closed: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
113
119
|
title?: string | undefined;
|
|
114
120
|
}>;
|
|
121
|
+
readonly react: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
122
|
+
title?: string | undefined;
|
|
123
|
+
}>;
|
|
115
124
|
readonly search: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
116
125
|
title?: string | undefined;
|
|
117
126
|
}>;
|
|
@@ -124,6 +133,9 @@ declare const iconsMap: {
|
|
|
124
133
|
readonly sort: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
125
134
|
title?: string | undefined;
|
|
126
135
|
}>;
|
|
136
|
+
readonly special_place: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
137
|
+
title?: string | undefined;
|
|
138
|
+
}>;
|
|
127
139
|
readonly thanks: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
128
140
|
title?: string | undefined;
|
|
129
141
|
}>;
|
|
@@ -204,6 +216,9 @@ declare const iconsMap: {
|
|
|
204
216
|
readonly computer: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
205
217
|
title?: string | undefined;
|
|
206
218
|
}>;
|
|
219
|
+
readonly confetti: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
220
|
+
title?: string | undefined;
|
|
221
|
+
}>;
|
|
207
222
|
readonly couch: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
208
223
|
title?: string | undefined;
|
|
209
224
|
}>;
|
|
@@ -258,6 +273,12 @@ declare const iconsMap: {
|
|
|
258
273
|
readonly heart: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
259
274
|
title?: string | undefined;
|
|
260
275
|
}>;
|
|
276
|
+
readonly heart_filled: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
277
|
+
title?: string | undefined;
|
|
278
|
+
}>;
|
|
279
|
+
readonly heart_outline: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
280
|
+
title?: string | undefined;
|
|
281
|
+
}>;
|
|
261
282
|
readonly house: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
262
283
|
title?: string | undefined;
|
|
263
284
|
}>;
|
|
@@ -303,6 +324,9 @@ declare const iconsMap: {
|
|
|
303
324
|
readonly more_dots_alt: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
304
325
|
title?: string | undefined;
|
|
305
326
|
}>;
|
|
327
|
+
readonly more_dots_outline: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
328
|
+
title?: string | undefined;
|
|
329
|
+
}>;
|
|
306
330
|
readonly music: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
307
331
|
title?: string | undefined;
|
|
308
332
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Icon24, Icon32 } from '../Icon/Icon.types';
|
|
2
1
|
import { ButtonProps } from '../Button/Button.types';
|
|
2
|
+
import { Icon24, Icon32 } from '../Icon/Icon.types';
|
|
3
3
|
|
|
4
4
|
type BaseIconButtonProps = Omit<ButtonProps, 'children' | 'ref' | 'className'> & ({
|
|
5
5
|
ariaLabel: string;
|
|
@@ -3,5 +3,5 @@ type MarkdownProps = {
|
|
|
3
3
|
inline?: boolean;
|
|
4
4
|
text: string;
|
|
5
5
|
};
|
|
6
|
-
declare function Markdown({ text }: MarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function Markdown({ className, text }: MarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default Markdown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MenuItemProps } from './MenuItem.types';
|
|
2
2
|
|
|
3
|
-
declare const MenuItem: ({ isSelected, labelPillText, leftIcon, onClick, rightIcon, role, text, }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const MenuItem: ({ className: passedClassName, href, isSelected, labelPillText, leftIcon, onClick, rightIcon, role, text, }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default MenuItem;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { BaseButtonProps } from '../BaseButton/BaseButton';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button/Button.types';
|
|
3
3
|
|
|
4
4
|
export interface MenuItemProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
href?: string;
|
|
5
7
|
isSelected?: boolean;
|
|
6
8
|
labelPillText?: string;
|
|
7
9
|
leftIcon: ReactNode;
|
|
8
|
-
onClick
|
|
10
|
+
onClick?: ButtonProps['onClick'];
|
|
9
11
|
rightIcon?: ReactNode;
|
|
10
|
-
role?:
|
|
12
|
+
role?: ButtonProps['role'];
|
|
11
13
|
text: string;
|
|
12
14
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NotificationListItemProps } from './NotificationListItem.types';
|
|
2
|
+
|
|
3
|
+
declare const NotificationListItem: ({ defaultIcon, imgSrc, isSeen, linkText, onNotificationClick, timeAgo, title, }: NotificationListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default NotificationListItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface NotificationListItemProps {
|
|
4
|
+
defaultIcon?: React.ReactNode;
|
|
5
|
+
imgSrc?: string;
|
|
6
|
+
isSeen?: boolean;
|
|
7
|
+
linkText: string;
|
|
8
|
+
onNotificationClick?: () => void;
|
|
9
|
+
timeAgo: string;
|
|
10
|
+
title: string;
|
|
11
|
+
}
|
package/lib/Popup/Popup.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PopupProps } from './Popup.types';
|
|
2
2
|
|
|
3
|
-
declare const Popup: (
|
|
3
|
+
declare const Popup: import('react').ForwardRefExoticComponent<PopupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default Popup;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { PopupPlacement } from '@mui/base';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
export interface PopupProps {
|
|
5
5
|
anchor?: HTMLElement | null;
|
|
6
6
|
children: ReactNode;
|
|
7
|
+
container?: HTMLElement | null;
|
|
7
8
|
id?: string;
|
|
8
|
-
offset?:
|
|
9
|
+
offset?: OffsetType;
|
|
9
10
|
open: boolean;
|
|
10
11
|
placement?: PopupPlacement;
|
|
12
|
+
strategy?: 'absolute' | 'fixed';
|
|
11
13
|
}
|
|
12
14
|
export declare enum OffsetMap {
|
|
13
15
|
lg = 16,
|
|
@@ -15,3 +17,8 @@ export declare enum OffsetMap {
|
|
|
15
17
|
sm = 8,
|
|
16
18
|
xl = 24
|
|
17
19
|
}
|
|
20
|
+
type OffsetType = keyof typeof OffsetMap | Partial<{
|
|
21
|
+
crossAxis: number;
|
|
22
|
+
mainAxis: number;
|
|
23
|
+
}>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface SelectExampleProps {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
error?: boolean;
|
|
4
|
+
errorMessage?: string;
|
|
5
|
+
filled?: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function SelectExample(props: SelectExampleProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FocusEvent, KeyboardEvent, MouseEvent, ReactElement } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface SelectTypes {
|
|
4
|
+
children: ReactElement<HTMLOptionElement> | ReactElement<HTMLOptionElement>[];
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
filled?: boolean;
|
|
9
|
+
onChange: (value: string | null) => void;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
value: string | null;
|
|
12
|
+
}
|
|
13
|
+
export interface OptionTypes {
|
|
14
|
+
child?: ReactElement;
|
|
15
|
+
label?: string;
|
|
16
|
+
value: string | null;
|
|
17
|
+
}
|
|
18
|
+
export type OnChangeType = ((event: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<Element> | FocusEvent<Element, Element> | null, value: string | null) => void) | undefined;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { CardHeaderProps } from '../Card/CardHeader/CardHeader.type';
|
|
2
|
-
import { CardBodyProps } from '../Card/CardBody/CardBody.types';
|
|
3
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { CardBodyProps } from '../Card/CardBody/CardBody.types';
|
|
3
|
+
import { CardHeaderProps } from '../Card/CardHeader/CardHeader.type';
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface SheetProps {
|
|
6
6
|
ariaLabel?: string;
|
|
7
7
|
ariaLabelledBy?: string;
|
|
8
8
|
closeButtonText?: string;
|
|
9
|
-
modalBody?: ReactElement<CardBodyProps>;
|
|
10
|
-
modalHeader?: ReactElement<CardHeaderProps>;
|
|
11
9
|
onClose: () => void;
|
|
12
10
|
open: boolean;
|
|
11
|
+
sheetBody?: ReactElement<CardBodyProps>;
|
|
12
|
+
sheetFooter?: ReactElement<CardHeaderProps>;
|
|
13
|
+
sheetHeader?: ReactElement<CardHeaderProps>;
|
|
13
14
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UseInputParameters } from '@mui/base/useInput';
|
|
2
|
+
import { ForwardedRef } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface TextAreaProps extends UseInputParameters {
|
|
5
|
+
colorScheme: 'light' | 'dark';
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
ref?: ForwardedRef<null>;
|
|
11
|
+
size: 'small' | 'medium';
|
|
12
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NotificationBubbleProps } from '../NotificationBubble/NotificationBubble.types';
|
|
2
|
-
import { IconProps } from '../Icon/Icon.types';
|
|
3
|
-
import { ButtonProps } from '../Button/Button.types';
|
|
4
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button/Button.types';
|
|
3
|
+
import { IconProps } from '../Icon/Icon.types';
|
|
4
|
+
import { NotificationBubbleProps } from '../NotificationBubble/NotificationBubble.types';
|
|
5
5
|
|
|
6
6
|
export interface TextButtonProps extends Omit<ButtonProps, 'role' | 'className'> {
|
|
7
7
|
color: 'green' | 'blue' | 'text';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ButtonProps } from '../Button/Button.types';
|
|
2
|
+
import { Icon32 } from '../Icon/Icon.types';
|
|
3
|
+
|
|
4
|
+
export default interface TileProps extends Omit<ButtonProps, 'children'> {
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
icon?: Icon32;
|
|
7
|
+
primaryText?: string;
|
|
8
|
+
secondaryText?: string;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodhood-web/ui",
|
|
3
|
-
"version": "1.6.0-development.
|
|
3
|
+
"version": "1.6.0-development.40",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"private": false,
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@mui/base": "~5.0.0-beta.
|
|
19
|
-
"@goodhood/design-tokens": "1.0.0-
|
|
18
|
+
"@mui/base": "~5.0.0-beta.40",
|
|
19
|
+
"@goodhood/design-tokens": "1.0.0-develop.1"
|
|
20
20
|
}
|
|
21
21
|
}
|