@goodhood-web/ui 1.6.0-development.8 → 1.6.0
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 +43 -32
- package/index.js +82 -45
- package/index.mjs +7604 -3685
- 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 +1 -1
- package/lib/ButtonPrimary/ButtonPrimary.d.ts +1 -1
- package/lib/ButtonPrimary/ButtonPrimary.types.d.ts +1 -1
- package/lib/Card/Card.types.d.ts +2 -2
- package/lib/Card/CardHeader/CardHeader.type.d.ts +3 -3
- package/lib/EmptyState/EmptyState.d.ts +4 -0
- package/lib/EmptyState/EmptyState.types.d.ts +21 -0
- 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 +9 -0
- package/lib/Icon/icons/index.d.ts +21 -0
- package/lib/IconButton/IconButton.types.d.ts +1 -1
- package/lib/Markdown/Markdown.d.ts +5 -6
- package/lib/Markdown/Markdown.types.d.ts +5 -0
- package/lib/MenuItem/MenuItem.d.ts +1 -1
- package/lib/MenuItem/MenuItem.types.d.ts +4 -2
- package/lib/Modal/Modal.d.ts +1 -1
- package/lib/Modal/Modal.types.d.ts +4 -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 +1 -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 +9 -0
- package/lib/Select/Select.types.d.ts +17 -0
- package/lib/Sheet/Backdrop/Backdrop.d.ts +4 -0
- package/lib/Sheet/Backdrop/Backdrop.types.d.ts +3 -0
- package/lib/Sheet/Sheet.d.ts +4 -0
- package/lib/Sheet/Sheet.types.d.ts +14 -0
- package/lib/Snackbar/Snackbar.d.ts +4 -0
- package/lib/Snackbar/Snackbar.types.d.ts +14 -0
- 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/Thumbnail/Thumbnail.type.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/lib/Typography/Typography.types.d.ts +2 -2
- package/package.json +3 -3
- package/style.css +1 -1
- package/styles/_functions.scss +1 -1
|
@@ -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,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;
|
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,7 +1,7 @@
|
|
|
1
|
-
import { TypographyProps } from '../../Typography/Typography.types';
|
|
2
|
-
import { IconButtonProps } from '../../IconButton/IconButton.types';
|
|
3
|
-
import { IconProps } from '../../Icon/Icon.types';
|
|
4
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';
|
|
5
5
|
|
|
6
6
|
export type CardHeaderProps = {
|
|
7
7
|
as?: Exclude<TypographyProps['as'], 'h1' | 'p' | 'span'>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ButtonPrimaryProps } from '../ButtonPrimary/ButtonPrimary.types';
|
|
3
|
+
import { StickerProps } from '../Sticker/Sticker.types';
|
|
4
|
+
import { TextButtonProps } from '../TextButton/TextButton.types';
|
|
5
|
+
|
|
6
|
+
type TextButton = Omit<TextButtonProps, 'size'> & {
|
|
7
|
+
buttonType: 'text';
|
|
8
|
+
};
|
|
9
|
+
type ButtonPrimary = Omit<ButtonPrimaryProps, 'size'> & {
|
|
10
|
+
buttonType: 'primary';
|
|
11
|
+
};
|
|
12
|
+
export type ButtonProps = TextButton | ButtonPrimary;
|
|
13
|
+
export default interface EmptyStateProps {
|
|
14
|
+
buttons?: ButtonProps[];
|
|
15
|
+
customVisual?: ReactElement;
|
|
16
|
+
primaryText?: string;
|
|
17
|
+
secondaryText?: string;
|
|
18
|
+
size: 'small' | 'medium' | 'large';
|
|
19
|
+
stickerProps?: Omit<StickerProps, 'size'>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -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
|
}>;
|
|
@@ -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
|
}>;
|
|
@@ -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;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
declare function Markdown({ className, text }: MarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { MarkdownProps } from './Markdown.types';
|
|
2
|
+
|
|
3
|
+
export declare const quotesToTokens: (string: string) => string;
|
|
4
|
+
export declare const tokensToQuotes: (string: string) => string;
|
|
5
|
+
declare function Markdown({ className, inline, text }: MarkdownProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
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,11 +1,13 @@
|
|
|
1
|
-
import { ButtonProps } from '../Button/Button.types';
|
|
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
12
|
role?: ButtonProps['role'];
|
|
11
13
|
text: string;
|
package/lib/Modal/Modal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ModalProps } from './Modal.types';
|
|
2
2
|
|
|
3
|
-
declare const Modal: ({ ariaLabel, ariaLabelledBy, closeButtonText, modalBody,
|
|
3
|
+
declare const Modal: ({ ariaLabel, ariaLabelledBy, closeButtonText, headerTitle, modalBody, modalFooter, onClose, open, }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Modal;
|
|
@@ -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
5
|
export interface ModalProps {
|
|
6
6
|
ariaLabel?: string;
|
|
7
7
|
ariaLabelledBy?: string;
|
|
8
8
|
closeButtonText?: string;
|
|
9
|
+
headerTitle: string;
|
|
9
10
|
modalBody?: ReactElement<CardBodyProps>;
|
|
10
|
-
|
|
11
|
+
modalFooter?: ReactElement<CardHeaderProps>;
|
|
11
12
|
onClose: () => void;
|
|
12
13
|
open: boolean;
|
|
13
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,14 +1,16 @@
|
|
|
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
7
|
container?: HTMLElement | null;
|
|
8
|
+
handleClickAway?: () => void;
|
|
8
9
|
id?: string;
|
|
9
|
-
offset?:
|
|
10
|
+
offset?: OffsetType;
|
|
10
11
|
open: boolean;
|
|
11
12
|
placement?: PopupPlacement;
|
|
13
|
+
strategy?: 'absolute' | 'fixed';
|
|
12
14
|
}
|
|
13
15
|
export declare enum OffsetMap {
|
|
14
16
|
lg = 16,
|
|
@@ -16,3 +18,8 @@ export declare enum OffsetMap {
|
|
|
16
18
|
sm = 8,
|
|
17
19
|
xl = 24
|
|
18
20
|
}
|
|
21
|
+
type OffsetType = keyof typeof OffsetMap | Partial<{
|
|
22
|
+
crossAxis: number;
|
|
23
|
+
mainAxis: number;
|
|
24
|
+
}>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface SelectExampleProps {
|
|
2
|
+
colorScheme: 'light' | 'dark';
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
errorMessage?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function SelectExample({ colorScheme, disabled, errorMessage, placeholder, value, }: SelectExampleProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FocusEvent, KeyboardEvent, MouseEvent, ReactElement } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface SelectTypes {
|
|
4
|
+
children: ReactElement<HTMLOptionElement> | ReactElement<HTMLOptionElement>[];
|
|
5
|
+
colorScheme: 'light' | 'dark';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
onChange: (value: string | null) => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
value: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface OptionTypes {
|
|
13
|
+
child?: ReactElement;
|
|
14
|
+
label?: string;
|
|
15
|
+
value: string | null;
|
|
16
|
+
}
|
|
17
|
+
export type OnChangeType = ((event: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<Element> | FocusEvent<Element, Element> | null, value: string | null) => void) | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { CardBodyProps } from '../Card/CardBody/CardBody.types';
|
|
3
|
+
import { CardHeaderProps } from '../Card/CardHeader/CardHeader.type';
|
|
4
|
+
|
|
5
|
+
export interface SheetProps {
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
ariaLabelledBy?: string;
|
|
8
|
+
closeButtonText?: string;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
open: boolean;
|
|
11
|
+
sheetBody?: ReactElement<CardBodyProps>;
|
|
12
|
+
sheetFooter?: ReactElement<CardHeaderProps>;
|
|
13
|
+
sheetHeader?: ReactElement<CardHeaderProps>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as SnackbarProps } from './Snackbar.types';
|
|
2
|
+
|
|
3
|
+
declare const Snackbar: ({ dismissable, isOpen, leftIconLarge, leftIconSmall, onClick, onClose, rightIconLarge, rightIconSmall, textButton, textLabel, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default Snackbar;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Icon24, Icon32 } from '../Icon/Icon.types';
|
|
2
|
+
|
|
3
|
+
export default interface SnackbarProps {
|
|
4
|
+
dismissable?: boolean;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
leftIconLarge?: Icon32;
|
|
7
|
+
leftIconSmall?: Icon24;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
rightIconLarge?: Icon32;
|
|
11
|
+
rightIconSmall?: Icon24;
|
|
12
|
+
textButton?: string;
|
|
13
|
+
textLabel: string;
|
|
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';
|
|
@@ -3,7 +3,7 @@ import { ImageProps } from '../Image/Image.type';
|
|
|
3
3
|
interface ThumbnailProps extends ImageProps {
|
|
4
4
|
isPlaceholder?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export type TCircularSize = '28' | '32' | '40' | '48' | '56' | '80' | '120' | '280';
|
|
6
|
+
export type TCircularSize = '28' | '32' | '40' | '48' | '56' | '64' | '80' | '120' | '280';
|
|
7
7
|
export type TSquareSize = '24' | '32' | '40' | '48' | '56' | '64' | '80' | '120';
|
|
8
8
|
export interface ThumbnailCircularProps extends ThumbnailProps {
|
|
9
9
|
shape: 'circular';
|
|
@@ -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
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { JSX } from 'react';
|
|
1
|
+
import { JSX, ReactNode } from 'react';
|
|
2
2
|
|
|
3
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';
|
|
4
4
|
export interface TypographyProps {
|
|
5
5
|
as?: Extract<keyof JSX.IntrinsicElements, 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;
|
|
6
|
-
children:
|
|
6
|
+
children: ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
type: TypographyType;
|
|
9
9
|
}
|