@goodhood-web/ui 1.12.0-development.9 → 2.0.0-development.1
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/hooks/index.d.ts +2 -0
- package/hooks/useCopyToClipboard.d.ts +2 -0
- package/index.d.ts +8 -4
- package/index.js +104 -104
- package/index.mjs +7995 -7632
- package/lib/Atoms/Badges/Badge/Badge.d.ts +0 -1
- package/lib/Atoms/Badges/Badge/Badge.types.d.ts +0 -1
- package/lib/Atoms/Badges/BadgeIcon/BadgeIcon.d.ts +0 -1
- package/lib/Atoms/Badges/BadgeIcon/BadgeIcon.types.d.ts +0 -1
- package/lib/Atoms/Badges/BadgeLabel/BadgeLabel.d.ts +0 -1
- package/lib/Atoms/Badges/BadgeLabel/BadgeLabel.types.d.ts +0 -1
- package/lib/Atoms/Badges/FeedItemCategory/FeedItemCategory.d.ts +0 -1
- package/lib/Atoms/Badges/LabelPill/LabelPill.d.ts +0 -1
- package/lib/Atoms/Badges/LabelPill/LabelPill.types.d.ts +1 -1
- package/lib/Atoms/Badges/Sticker/Sticker.d.ts +0 -1
- package/lib/Atoms/Badges/Sticker/Sticker.types.d.ts +0 -1
- package/lib/Atoms/Badges/Tooltip/Tooltip.d.ts +3 -0
- package/lib/Atoms/Badges/Tooltip/Tooltip.types.d.ts +8 -0
- package/lib/Atoms/Buttons/Bookmark/Bookmark.d.ts +0 -1
- package/lib/Atoms/Buttons/Bookmark/Bookmark.types.d.ts +0 -1
- package/lib/Atoms/Buttons/Button/Button.d.ts +0 -1
- package/lib/Atoms/Buttons/Button/Button.types.d.ts +6 -2
- package/lib/Atoms/Buttons/ButtonPrimary/ButtonPrimary.d.ts +1 -2
- package/lib/Atoms/Buttons/ButtonPrimary/ButtonPrimary.types.d.ts +0 -1
- package/lib/Atoms/Buttons/ButtonSecondary/ButtonSecondary.d.ts +1 -2
- package/lib/Atoms/Buttons/ButtonSecondary/ButtonSecondary.types.d.ts +0 -1
- package/lib/Atoms/Buttons/ButtonTertiary/ButtonTertiary.d.ts +1 -2
- package/lib/Atoms/Buttons/ButtonTertiary/ButtonTertiary.types.d.ts +0 -1
- package/lib/Atoms/Buttons/CopyLinkButton/CopyLinkButton.d.ts +3 -0
- package/lib/Atoms/Buttons/CopyLinkButton/CopyLinkButton.types.d.ts +7 -0
- package/lib/Atoms/Buttons/IconButton/IconButton.d.ts +1 -2
- package/lib/Atoms/Buttons/IconButton/IconButton.types.d.ts +5 -6
- package/lib/Atoms/Buttons/TextButton/TextButton.d.ts +0 -1
- package/lib/Atoms/Buttons/TextButton/TextButton.types.d.ts +0 -1
- package/lib/Atoms/Buttons/Tiles/FeedTile/FeedTile.d.ts +0 -1
- package/lib/Atoms/Buttons/Tiles/FeedTile/FeedTile.types.d.ts +0 -1
- package/lib/Atoms/Buttons/Tiles/MenuTile/MenuTile.d.ts +0 -1
- package/lib/Atoms/Buttons/Tiles/MenuTile/MenuTile.type.d.ts +0 -1
- package/lib/Atoms/Content/BodyText/BodyText.d.ts +0 -1
- package/lib/Atoms/Content/PlaceholderThumbnail/PlaceholderThumbnail.d.ts +0 -1
- package/lib/Atoms/Content/PlaceholderThumbnail/PlaceholderThumbnail.type.d.ts +0 -1
- package/lib/Atoms/Content/Thumbnail/Thumbnail.d.ts +0 -1
- package/lib/Atoms/Content/Thumbnail/Thumbnail.type.d.ts +4 -3
- package/lib/Atoms/Content/ThumbnailWithLabel/ThumbnailWithLabel.d.ts +0 -1
- package/lib/Atoms/Content/ThumbnailWithLabel/ThumbnailWithLabel.type.d.ts +0 -1
- package/lib/Atoms/Content/ThumbnailWrapper/ThumbnailWrapper.d.ts +0 -1
- package/lib/Atoms/Content/ThumbnailWrapper/ThumbnailWrapper.types.d.ts +0 -1
- package/lib/Atoms/Content/UserAvatar/UserAvatar.d.ts +3 -0
- package/lib/Atoms/Content/UserAvatar/UserAvatar.types.d.ts +17 -0
- package/lib/Atoms/Divider/Divider.d.ts +0 -1
- package/lib/Atoms/Dropdowns/DropdownHeader/DropdownHeader.d.ts +3 -0
- package/lib/Atoms/Dropdowns/DropdownHeader/DropdownHeader.types.d.ts +6 -0
- package/lib/Atoms/Dropdowns/DropdownOption/DropdownOption.d.ts +3 -0
- package/lib/Atoms/Dropdowns/DropdownOption/DropdownOption.types.d.ts +7 -0
- package/lib/Atoms/Dropdowns/DropdownOptionsCluster/DropdownOptionsCluster.d.ts +3 -0
- package/lib/Atoms/Dropdowns/DropdownOptionsCluster/DropdownOptionsCluster.types.d.ts +4 -0
- package/lib/Atoms/Dropdowns/Select/Select.d.ts +0 -1
- package/lib/Atoms/Dropdowns/Select/Select.types.d.ts +0 -1
- package/lib/Atoms/Image/Image.d.ts +0 -1
- package/lib/Atoms/Inputs/CheckboxInput/CheckboxInput.d.ts +0 -1
- package/lib/Atoms/Inputs/CheckboxInput/CheckboxInput.types.d.ts +0 -1
- package/lib/Atoms/Inputs/InputDetails/InputDetails.d.ts +3 -0
- package/lib/Atoms/Inputs/InputDetails/InputDetails.types.d.ts +6 -0
- package/lib/Atoms/Inputs/InputFieldSpecial/InputFieldSpecial.d.ts +0 -1
- package/lib/Atoms/Inputs/InputFieldSpecial/InputFieldSpecial.utils.d.ts +0 -1
- package/lib/Atoms/Inputs/RadioButton/RadioButton.d.ts +0 -1
- package/lib/Atoms/Inputs/RadioButton/RadioButton.types.d.ts +0 -1
- package/lib/Atoms/Inputs/TextAreaInput/TextAreaInput.d.ts +3 -0
- package/lib/Atoms/Inputs/TextAreaInput/TextAreaInput.types.d.ts +6 -0
- package/lib/Atoms/Inputs/TextInput/TextInput.d.ts +1 -2
- package/lib/Atoms/Inputs/TextInput/TextInput.types.d.ts +17 -7
- package/lib/Atoms/Inputs/Toggle/Toggle.d.ts +0 -1
- package/lib/Atoms/Inputs/Toggle/Toggle.types.d.ts +0 -1
- package/lib/Atoms/NotificationBubble/NotificationBubble.d.ts +0 -1
- package/lib/Atoms/NotificationBubble/NotificationBubble.types.d.ts +0 -1
- package/lib/Atoms/Selectables/SelectablePill/SelectablePill.d.ts +0 -1
- package/lib/Atoms/Selectables/SelectablePill/SelectablePill.types.d.ts +0 -1
- package/lib/Base/Icon/Icon.d.ts +0 -1
- package/lib/Base/Icon/Icon.types.d.ts +3 -1
- package/lib/Base/Icon/icons/24x24/index.d.ts +5 -2
- package/lib/Base/Icon/icons/32x32/index.d.ts +20 -8
- package/lib/Base/Icon/icons/index.d.ts +25 -10
- package/lib/Base/Typography/Typography.d.ts +0 -1
- package/lib/Base/Typography/Typography.types.d.ts +0 -1
- package/lib/Molecules/Card/Card.d.ts +1 -2
- package/lib/Molecules/Card/Card.types.d.ts +1 -1
- package/lib/Molecules/Card/CardBody/CardBody.d.ts +1 -2
- package/lib/Molecules/Card/CardBody/CardBody.types.d.ts +1 -1
- package/lib/Molecules/Card/CardFooters/ActionBar/ActionBar.d.ts +0 -1
- package/lib/Molecules/Card/CardFooters/ActionBar/ActionBar.types.d.ts +0 -1
- package/lib/Molecules/Card/CardFooters/ActionBar/ActionBarCta/ActionBarCta.d.ts +0 -1
- package/lib/Molecules/Card/CardFooters/ActionBar/ActionBarCta/ActionBarCta.types.d.ts +0 -1
- package/lib/Molecules/Card/CardFooters/ActionBar/ActionBarList/ActionBarList.d.ts +0 -1
- package/lib/Molecules/Card/CardFooters/ActionBar/ActionBarList/ActionBarList.types.d.ts +0 -1
- package/lib/Molecules/Card/CardFooters/ActionBar/ActionBarList/ActionItem/ActionItem.d.ts +0 -1
- package/lib/Molecules/Card/CardFooters/ActionBar/ActionBarList/ActionItem/ActionItem.types.d.ts +0 -1
- package/lib/Molecules/Card/CardHeader/CardHeader.d.ts +0 -1
- package/lib/Molecules/Card/CardHeader/CardHeader.types.d.ts +0 -1
- package/lib/Molecules/ListItems/NotificationListItem/NotificationListItem.d.ts +0 -1
- package/lib/Molecules/ListItems/NotificationListItem/NotificationListItem.types.d.ts +4 -7
- package/lib/Molecules/Markdown/Markdown.d.ts +0 -1
- package/lib/Molecules/Navigation/MenuItem/MenuItem.d.ts +0 -1
- package/lib/Molecules/Navigation/MenuItem/MenuItem.types.d.ts +0 -1
- package/lib/Molecules/Navigation/NavBar/NavBar.d.ts +0 -1
- package/lib/Molecules/Navigation/NavBar/NavBar.types.d.ts +0 -1
- package/lib/Molecules/Navigation/NavBar/NavItem/NavItem.d.ts +0 -1
- package/lib/Molecules/Navigation/NavBar/NavItem/NavItem.types.d.ts +0 -1
- package/lib/Molecules/Notices/EmptyState/EmptyState.d.ts +0 -1
- package/lib/Molecules/Notices/EmptyState/EmptyState.types.d.ts +9 -2
- package/lib/Molecules/Notices/Notice/InfoNotice/InfoNotice.d.ts +0 -1
- package/lib/Molecules/Notices/Notice/Notice.d.ts +0 -1
- package/lib/Molecules/Notices/Notice/Notice.types.d.ts +0 -1
- package/lib/Molecules/Notices/Notice/WarningNotice/WarningNotice.d.ts +0 -1
- package/lib/Molecules/Notices/Snackbar/Snackbar.d.ts +0 -1
- package/lib/Molecules/Notices/Snackbar/Snackbar.types.d.ts +0 -1
- package/lib/Molecules/Selections/RadioButtonCluster/RadioButtonCluster.d.ts +0 -1
- package/lib/Molecules/Selections/RadioButtonCluster/RadioButtonCluster.types.d.ts +0 -1
- package/lib/Molecules/Selections/SelectablePillGroup/SelectablePillGroup.d.ts +0 -1
- package/lib/Molecules/Selections/SelectablePillGroup/SelectablePillGroup.types.d.ts +0 -1
- package/lib/Molecules/Selections/SwitcherToggle/SwitcherToggle.d.ts +0 -1
- package/lib/Molecules/Selections/ToggleInput/ToggleInput.d.ts +0 -1
- package/lib/Molecules/Selections/ToggleInput/ToggleInput.types.d.ts +0 -1
- package/lib/Molecules/TabBar/NavigationTab/NavigationTab.d.ts +0 -1
- package/lib/Molecules/TabBar/NavigationTab/NavigationTab.types.d.ts +0 -1
- package/lib/Organisms/Cards/MarketplaceItemCardless/MarketplaceItemCardless.d.ts +0 -1
- package/lib/Organisms/Forms/Fieldset/Fieldset.d.ts +0 -1
- package/lib/Organisms/Forms/Fieldset/Fieldset.types.d.ts +0 -1
- package/lib/Organisms/Forms/Form/Form.d.ts +0 -1
- package/lib/Organisms/Forms/Form/Form.types.d.ts +0 -1
- package/lib/Organisms/Forms/Legend/Legend.d.ts +0 -1
- package/lib/Organisms/Modals/BottomSheet/BottomSheet.d.ts +1 -2
- package/lib/Organisms/Modals/BottomSheet/BottomSheet.types.d.ts +1 -5
- package/lib/Organisms/Modals/Modal/Backdrop/Backdrop.d.ts +0 -1
- package/lib/Organisms/Modals/Modal/Modal.d.ts +0 -1
- package/lib/Organisms/Modals/Modal/Modal.types.d.ts +0 -1
- package/lib/Organisms/Modals/Popup/Popup.d.ts +0 -1
- package/lib/Organisms/Modals/Popup/Popup.types.d.ts +1 -3
- package/lib/Organisms/Modals/Sheet/Backdrop/Backdrop.d.ts +0 -1
- package/lib/Organisms/Modals/Sheet/Sheet.d.ts +0 -1
- package/lib/Organisms/Modals/Sheet/Sheet.types.d.ts +1 -2
- package/package.json +2 -2
- package/style.css +1 -1
- package/utils/index.d.ts +0 -1
- package/lib/Atoms/Buttons/Tiles/PointOfInterestIProfileTile/PointOfInterestIProfileTile.d.ts +0 -4
- package/lib/Atoms/Buttons/Tiles/PointOfInterestIProfileTile/PointOfInterestIProfileTile.types.d.ts +0 -8
- package/lib/Atoms/Inputs/TextArea/TextArea.d.ts +0 -4
- package/lib/Atoms/Inputs/TextArea/TextArea.types.d.ts +0 -12
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TextButtonProps } from '../../Buttons/TextButton/TextButton.types';
|
|
2
2
|
import { default as BadgeIconProps } from '../BadgeIcon/BadgeIcon.types';
|
|
3
|
-
|
|
4
3
|
export default interface BadgeLabelProps {
|
|
5
4
|
buttonHref: TextButtonProps['href'];
|
|
6
5
|
buttonOnClick: TextButtonProps['onClick'];
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ButtonOwnProps } from '@mui/base';
|
|
2
|
-
import { AriaRole, ForwardedRef, MouseEvent, ReactNode } from 'react';
|
|
3
|
-
|
|
2
|
+
import { AriaRole, ForwardedRef, MouseEvent, ReactElement, ReactNode } from 'react';
|
|
3
|
+
import { IconProps } from '../../../Base/Icon/Icon.types';
|
|
4
4
|
interface CommonProps {
|
|
5
|
+
ariaDescribedBy?: string;
|
|
5
6
|
ariaLabel?: string;
|
|
6
7
|
ariaLabelledBy?: string;
|
|
7
8
|
className?: string;
|
|
9
|
+
'data-testid'?: string;
|
|
8
10
|
disabled?: boolean;
|
|
9
11
|
ref?: ForwardedRef<null>;
|
|
10
12
|
role?: AriaRole;
|
|
@@ -22,7 +24,9 @@ export interface LinkProps extends CommonProps {
|
|
|
22
24
|
}
|
|
23
25
|
export interface ButtonVariationProps {
|
|
24
26
|
fullWidth?: boolean;
|
|
27
|
+
leftIcon?: ReactElement<IconProps>;
|
|
25
28
|
loading?: boolean;
|
|
29
|
+
rightIcon?: ReactElement<IconProps>;
|
|
26
30
|
size?: 'small' | 'medium' | 'large' | 'extraLarge';
|
|
27
31
|
target?: string;
|
|
28
32
|
text?: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ButtonPrimaryProps } from './ButtonPrimary.types';
|
|
2
|
-
|
|
3
|
-
declare const ButtonPrimary: ({ children, className, color, disabled, fullWidth, loading, size, text, ...props }: ButtonPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ButtonPrimary: ({ children, className, color, disabled, fullWidth, leftIcon, loading, rightIcon, size, text, ...props }: ButtonPrimaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default ButtonPrimary;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps, ButtonVariationProps } from '../Button/Button.types';
|
|
3
|
-
|
|
4
3
|
export interface ButtonPrimaryProps extends ButtonVariationProps, Omit<ButtonProps, 'children'> {
|
|
5
4
|
children?: ReactNode;
|
|
6
5
|
color?: 'highlight' | 'primary' | 'transparent';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
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;
|
|
2
|
+
declare const ButtonSecondary: ({ children, className, color, disabled, fullWidth, leftIcon, loading, rightIcon, size, text, ...props }: ButtonSecondaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default ButtonSecondary;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps, ButtonVariationProps } from '../Button/Button.types';
|
|
3
|
-
|
|
4
3
|
export interface ButtonSecondaryProps extends ButtonVariationProps, Omit<ButtonProps, 'children'> {
|
|
5
4
|
children?: ReactNode;
|
|
6
5
|
color?: 'green' | 'pink' | 'grey' | 'teal' | 'lavender' | 'orange';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
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;
|
|
2
|
+
declare const ButtonTertiary: ({ children, className, color, disabled, fullWidth, leftIcon, loading, rightIcon, size, text, ...props }: ButtonTertiaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default ButtonTertiary;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps, ButtonVariationProps } from '../Button/Button.types';
|
|
3
|
-
|
|
4
3
|
export interface ButtonTertiaryProps extends ButtonVariationProps, Omit<ButtonProps, 'children'> {
|
|
5
4
|
children?: ReactNode;
|
|
6
5
|
color?: 'green' | 'pink' | 'blue' | 'deepPurple';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { IconButtonProps } from './IconButton.types';
|
|
2
|
-
|
|
3
|
-
declare const IconButton: ({ className, icon, iconClassName, size, variant, ...baseButtonProps }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const IconButton: ({ className, icon, iconClassName, loading, size, variant, ...baseButtonProps }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default IconButton;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Icon24, Icon32 } from '../../../Base/Icon/Icon.types';
|
|
2
2
|
import { ButtonProps } from '../Button/Button.types';
|
|
3
|
-
|
|
4
3
|
type BaseIconButtonProps = Omit<ButtonProps, 'children' | 'ref' | 'className'> & ({
|
|
5
4
|
ariaLabel: string;
|
|
6
5
|
} | {
|
|
@@ -8,17 +7,17 @@ type BaseIconButtonProps = Omit<ButtonProps, 'children' | 'ref' | 'className'> &
|
|
|
8
7
|
}) & {
|
|
9
8
|
className?: string;
|
|
10
9
|
iconClassName?: string;
|
|
10
|
+
loading?: boolean;
|
|
11
11
|
type?: 'button' | 'submit' | 'reset';
|
|
12
|
+
variant?: 'green' | 'white';
|
|
12
13
|
};
|
|
13
|
-
type IconButtonIcon24Props = {
|
|
14
|
+
export type IconButtonIcon24Props = {
|
|
14
15
|
icon: Icon24;
|
|
15
16
|
size?: 'small';
|
|
16
|
-
variant?: 'circular';
|
|
17
17
|
} & BaseIconButtonProps;
|
|
18
|
-
type IconButtonIcon32Props = {
|
|
18
|
+
export type IconButtonIcon32Props = {
|
|
19
19
|
icon: Icon32;
|
|
20
|
-
size
|
|
21
|
-
variant?: 'circular';
|
|
20
|
+
size?: 'medium' | 'large';
|
|
22
21
|
} & BaseIconButtonProps;
|
|
23
22
|
export type IconButtonProps = IconButtonIcon32Props | IconButtonIcon24Props;
|
|
24
23
|
export {};
|
|
@@ -2,7 +2,6 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { IconProps } from '../../../Base/Icon/Icon.types';
|
|
3
3
|
import { NotificationBubbleProps } from '../../NotificationBubble/NotificationBubble.types';
|
|
4
4
|
import { ButtonProps } from '../Button/Button.types';
|
|
5
|
-
|
|
6
5
|
export interface TextButtonProps extends Omit<ButtonProps, 'role' | 'className'> {
|
|
7
6
|
className?: string;
|
|
8
7
|
color: 'green' | 'blue' | 'deepPurple';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ThumbnailCircularProps, ThumbnailSquareProps } from './Thumbnail.type';
|
|
2
|
-
|
|
3
2
|
declare const Thumbnail: ({ alt, className, isPlaceholder, shape, size, src, }: ThumbnailCircularProps | ThumbnailSquareProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default Thumbnail;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ImageProps } from '../../Image/Image.type';
|
|
2
|
-
|
|
3
2
|
export interface ThumbnailProps extends ImageProps {
|
|
4
3
|
className?: string;
|
|
5
4
|
isPlaceholder?: boolean;
|
|
6
5
|
}
|
|
7
|
-
export
|
|
8
|
-
export
|
|
6
|
+
export declare const circularSizes: readonly ["28", "32", "40", "48", "56", "64", "80", "120", "280"];
|
|
7
|
+
export declare const squareSizes: readonly ["24", "32", "40", "48", "56", "64", "80", "120"];
|
|
8
|
+
export type TCircularSize = (typeof circularSizes)[number];
|
|
9
|
+
export type TSquareSize = (typeof squareSizes)[number];
|
|
9
10
|
export interface ThumbnailCircularProps extends ThumbnailProps {
|
|
10
11
|
shape: 'circular';
|
|
11
12
|
size: TCircularSize;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ThumbnailWithLabelProps } from './ThumbnailWithLabel.type';
|
|
2
|
-
|
|
3
2
|
declare const ThumbnailWithLabel: ({ alt, isPlaceholder, label, placeholderIcon, shape, src, }: ThumbnailWithLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default ThumbnailWithLabel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TCircularSize } from '../Thumbnail/Thumbnail.type';
|
|
2
|
+
export type AvatarColor = 'green' | 'purple' | 'orange' | 'blue';
|
|
3
|
+
type BaseUserAvatarProps = {
|
|
4
|
+
alt: string;
|
|
5
|
+
size: TCircularSize;
|
|
6
|
+
userImageSrc?: string;
|
|
7
|
+
};
|
|
8
|
+
type UserIdMandatory = BaseUserAvatarProps & {
|
|
9
|
+
avatarColor?: AvatarColor;
|
|
10
|
+
userId: number;
|
|
11
|
+
};
|
|
12
|
+
type AvatarColorMandatory = BaseUserAvatarProps & {
|
|
13
|
+
avatarColor: AvatarColor;
|
|
14
|
+
userId?: number;
|
|
15
|
+
};
|
|
16
|
+
export type UserAvatarProps = UserIdMandatory | AvatarColorMandatory;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Icon24 } from '../../../Base/Icon/Icon.types';
|
|
2
|
+
import { ButtonProps } from '../../Buttons/Button/Button.types';
|
|
3
|
+
export type DropdownHeaderProps = Pick<ButtonProps, 'onClick' | 'ariaLabel' | 'ariaLabelledBy' | 'disabled' | 'role'> & {
|
|
4
|
+
icon?: Icon24;
|
|
5
|
+
text?: string;
|
|
6
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { CheckboxInputProps } from './CheckboxInput.types';
|
|
2
|
-
|
|
3
2
|
export declare function CheckboxInput({ checked, children, className, disabled, id, label, onChange, size, }: CheckboxInputProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
3
|
export default CheckboxInput;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { InputFieldSpecialProps } from './InputFieldSpecial.types';
|
|
2
|
-
|
|
3
2
|
declare const InputFieldSpecial: ({ ariaLabel, disabled, errorMessage, id, maxDigits, name, onChange, placeholder, style, value, }: InputFieldSpecialProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default InputFieldSpecial;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TextAreaInputProps } from './TextAreaInput.types';
|
|
2
|
+
declare const TextAreaInput: ({ ariaDescribedby, attachment, charLimit, colorScheme, errorText, hintText, id, label, name, ref, showInputHints, size, ...props }: TextAreaInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default TextAreaInput;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IconButtonIcon24Props } from '../../Buttons/IconButton/IconButton.types';
|
|
2
|
+
import { CommonTextInputProps } from '../TextInput/TextInput.types';
|
|
3
|
+
export interface TextAreaInputProps extends CommonTextInputProps {
|
|
4
|
+
attachment?: Pick<IconButtonIcon24Props, 'icon' | 'onClick' | 'ariaLabel' | 'disabled'>[];
|
|
5
|
+
size: 'medium' | 'large';
|
|
6
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { TextInputProps } from './TextInput.types';
|
|
2
|
-
|
|
3
|
-
declare const TextInput: ({ colorScheme, errorMessage, id, label, name, ref, size, ...props }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const TextInput: ({ ariaDescribedby, charLimit, colorScheme, errorText, hintText, icon, id, inputFieldType, label, name, ref, showInputHints, size, textButton, ...props }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default TextInput;
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
import { UseInputParameters } from '@mui/base
|
|
2
|
-
import { ForwardedRef } from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { UseInputParameters } from '@mui/base';
|
|
2
|
+
import { ForwardedRef, HTMLInputTypeAttribute } from 'react';
|
|
3
|
+
import { IconProps } from '../../../Base/Icon/Icon.types';
|
|
4
|
+
import { IconButtonIcon24Props } from '../../Buttons/IconButton/IconButton.types';
|
|
5
|
+
export interface CommonTextInputProps extends UseInputParameters {
|
|
6
|
+
ariaDescribedby?: string;
|
|
7
|
+
charLimit?: number;
|
|
8
|
+
colorScheme?: 'outline' | 'filled';
|
|
9
|
+
errorText?: string;
|
|
10
|
+
hintText?: string;
|
|
7
11
|
id: string;
|
|
8
12
|
label: string;
|
|
9
13
|
name?: string;
|
|
10
14
|
ref?: ForwardedRef<null>;
|
|
11
|
-
|
|
15
|
+
showInputHints?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface TextInputProps extends CommonTextInputProps {
|
|
18
|
+
icon?: IconProps;
|
|
19
|
+
inputFieldType?: HTMLInputTypeAttribute;
|
|
20
|
+
size: 'medium' | 'large' | 'small';
|
|
21
|
+
textButton?: IconButtonIcon24Props;
|
|
12
22
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { SelectablePillProps } from './SelectablePill.types';
|
|
2
|
-
|
|
3
2
|
declare const SelectablePill: ({ disabled, icon, id, isSelected, label, onToggleChange, orientation, popular, style, value, variant, }: SelectablePillProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default SelectablePill;
|
package/lib/Base/Icon/Icon.d.ts
CHANGED
|
@@ -2,10 +2,12 @@ import { AriaRole } from 'react';
|
|
|
2
2
|
import { default as icons16 } from './icons/16x16';
|
|
3
3
|
import { default as icons24 } from './icons/24x24';
|
|
4
4
|
import { default as icons32 } from './icons/32x32';
|
|
5
|
-
|
|
6
5
|
export type Icon32 = keyof typeof icons32;
|
|
7
6
|
export type Icon24 = keyof typeof icons24;
|
|
8
7
|
export type Icon16 = keyof typeof icons16;
|
|
8
|
+
export declare const iconNames16: string[];
|
|
9
|
+
export declare const iconNames24: string[];
|
|
10
|
+
export declare const iconNames32: string[];
|
|
9
11
|
type BaseIconProps = {
|
|
10
12
|
className?: string;
|
|
11
13
|
role?: Extract<AriaRole, 'presentation' | 'img'>;
|