Skip to content

Commit 37f648a

Browse files
author
release-bot
committed
Released 3.4.0
1 parent 0001106 commit 37f648a

File tree

454 files changed

+35500
-15231
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

454 files changed

+35500
-15231
lines changed

css/dist/MaterialSymbolsRounded.woff2

401 KB
Binary file not shown.

css/dist/index.css

+9,894
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/dist/index.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/.lib/tsconfig.type.tsbuildinfo

+3,361-4,586
Large diffs are not rendered by default.
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import isEnterKey from "./isEnterKey";
2+
import isSpaceKey from "./isSpaceKey";
3+
import useAccessibilityProps from "./useAccessibilityProps";
4+
export { isEnterKey, useAccessibilityProps, isSpaceKey };
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import React from 'react';
2+
declare const isEnterKey: (e: React.KeyboardEvent) => boolean;
3+
export default isEnterKey;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import React from 'react';
2+
declare const isSpaceKey: (e: React.KeyboardEvent) => boolean;
3+
export default isSpaceKey;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as React from 'react';
2+
declare type AriaRoleType = React.AriaRole;
3+
interface IProps {
4+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
5+
onKeyDown?: (event: React.KeyboardEvent<HTMLElement>) => void;
6+
role?: AriaRoleType;
7+
tabIndex?: number;
8+
'aria-label'?: React.AriaAttributes['aria-label'];
9+
}
10+
declare const useAccessibilityProps: ({ onClick, onKeyDown, role, tabIndex, ...rest }: IProps) => {
11+
onClick: (event: React.MouseEvent<HTMLElement>) => void;
12+
role: React.AriaRole;
13+
tabIndex: number;
14+
'aria-label': string | undefined;
15+
onKeyDown: (e: React.SyntheticEvent<HTMLElement>) => void;
16+
} | {
17+
role: React.AriaRole;
18+
tabIndex: number | undefined;
19+
'aria-label': string | undefined;
20+
};
21+
export default useAccessibilityProps;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import * as React from 'react';
2+
import { TButtonAppearance, TButtonType, TBaseHtmlProps } from "../common.type";
3+
export interface AIButtonProps extends TBaseHtmlProps<HTMLButtonElement> {
4+
appearance?: TButtonAppearance;
5+
type?: TButtonType;
6+
disabled?: boolean;
7+
children?: string;
8+
tabIndex?: number;
9+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
10+
onMouseEnter?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
11+
onMouseLeave?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
12+
'data-test'?: string;
13+
className?: string;
14+
}
15+
export declare const AIButton: {
16+
(props: AIButtonProps): JSX.Element;
17+
defaultProps: {
18+
appearance: string;
19+
type: string;
20+
};
21+
};
22+
export default AIButton;
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import * as React from 'react';
2+
export interface AIChipProps extends React.ComponentProps<'button'> {
3+
label: string;
4+
icon: string;
5+
disabled?: boolean;
6+
'data-test'?: string;
7+
className?: string;
8+
}
9+
export declare const AIChip: (props: AIChipProps) => JSX.Element;
10+
export default AIChip;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { TIconPosition, TSize2Hierarchy } from "../common.type";
2+
interface SaraIconProp {
3+
size: TSize2Hierarchy;
4+
position: TIconPosition;
5+
disabled?: boolean;
6+
}
7+
export declare const SaraIcon: {
8+
(props: SaraIconProp): JSX.Element;
9+
defaultProps: {
10+
size: string;
11+
position: string;
12+
};
13+
};
14+
export default SaraIcon;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare type SaraIconType = {
2+
className?: string;
3+
};
4+
declare const SaraDisabledBottom: (props: SaraIconType) => JSX.Element;
5+
export default SaraDisabledBottom;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare type SaraIconType = {
2+
className?: string;
3+
};
4+
declare const SaraDisabledTop: (props: SaraIconType) => JSX.Element;
5+
export default SaraDisabledTop;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare type SaraIconType = {
2+
className?: string;
3+
};
4+
declare const SaraIconBottom: (props: SaraIconType) => JSX.Element;
5+
export default SaraIconBottom;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare type SaraIconType = {
2+
className?: string;
3+
};
4+
declare const SaraIconTop: (props: SaraIconType) => JSX.Element;
5+
export default SaraIconTop;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import * as React from 'react';
2+
import { TIconPosition, TButtonType, TSize2Hierarchy, TBaseHtmlProps } from "../common.type";
3+
export interface AIIconButtonProps extends Omit<TBaseHtmlProps<HTMLButtonElement>, 'size'> {
4+
icon?: string;
5+
size?: TSize2Hierarchy;
6+
position?: TIconPosition;
7+
type?: TButtonType;
8+
tooltip?: string;
9+
disabled?: boolean;
10+
tabIndex?: number;
11+
strokeColor?: string;
12+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
13+
onMouseEnter?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
14+
onMouseLeave?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
15+
'data-test'?: string;
16+
className?: string;
17+
}
18+
export declare const AIIconButton: {
19+
(props: AIIconButtonProps): JSX.Element;
20+
defaultProps: {
21+
size: string;
22+
position: string;
23+
strokeColor: string;
24+
};
25+
};
26+
export default AIIconButton;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as React from 'react';
2+
import { TBaseHtmlProps } from "../common.type";
3+
export interface ChatActionBarProps extends TBaseHtmlProps<HTMLDivElement> {
4+
children: React.ReactNode;
5+
'data-test'?: string;
6+
className?: string;
7+
}
8+
export declare const ChatActionBar: (props: ChatActionBarProps) => JSX.Element;
9+
export default ChatActionBar;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as React from 'react';
2+
import { TBaseHtmlProps } from "../common.type";
3+
export interface ChatBodyProps extends TBaseHtmlProps<HTMLDivElement> {
4+
children: React.ReactNode;
5+
'data-test'?: string;
6+
className?: string;
7+
}
8+
export declare const ChatBody: (props: ChatBodyProps) => JSX.Element;
9+
export default ChatBody;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import * as React from 'react';
2+
import { TBaseHtmlProps } from "../common.type";
3+
export interface ChatBoxProps extends TBaseHtmlProps<HTMLDivElement> {
4+
children: React.ReactNode;
5+
'data-test'?: string;
6+
className?: string;
7+
}
8+
export declare const ChatBox: (props: ChatBoxProps) => JSX.Element;
9+
export default ChatBox;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { ButtonProps } from "../../index.type";
2+
declare type ChatButtonType = Omit<ButtonProps, 'size' | 'largeIcon' | 'appearance'>;
3+
export declare const ChatButton: (props: ChatButtonType) => JSX.Element;
4+
export default ChatButton;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import * as React from 'react';
2+
import { TBaseHtmlProps } from "../common.type";
3+
export interface AIResponseProps extends TBaseHtmlProps<HTMLDivElement> {
4+
children: React.ReactNode;
5+
'data-test'?: string;
6+
className?: string;
7+
}
8+
export declare const AIResponse: {
9+
(props: AIResponseProps): JSX.Element;
10+
Button: (props: Pick<import("../../index.type").ButtonProps, "className" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "key" | "data-test" | "tooltip" | "icon" | "expanded" | "loading" | "iconType" | "iconAlign">) => JSX.Element;
11+
ActionBar: (props: import("./ChatActionBar").ChatActionBarProps) => JSX.Element;
12+
Body: (props: import("./ChatBody").ChatBodyProps) => JSX.Element;
13+
};
14+
export default AIResponse;
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import * as React from 'react';
2+
import { TSaraStates, TBaseHtmlProps } from "../common.type";
3+
export interface SaraProps extends TBaseHtmlProps<HTMLDivElement> {
4+
size?: number;
5+
state?: TSaraStates;
6+
alt?: string;
7+
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
8+
className?: string;
9+
'data-test'?: string;
10+
}
11+
export declare const Sara: {
12+
(props: SaraProps): JSX.Element;
13+
defaultProps: {
14+
size: number;
15+
state: string;
16+
};
17+
};
18+
export default Sara;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import * as React from 'react';
2+
import { TSaraSparkleStates, TBaseHtmlProps } from "../common.type";
3+
export interface SaraSparkleProps extends TBaseHtmlProps<HTMLDivElement> {
4+
size?: number;
5+
state?: TSaraSparkleStates;
6+
alt?: string;
7+
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
8+
className?: string;
9+
'data-test'?: string;
10+
}
11+
export declare const SaraSparkle: {
12+
(props: SaraSparkleProps): JSX.Element;
13+
defaultProps: {
14+
size: number;
15+
state: string;
16+
};
17+
};
18+
export default SaraSparkle;
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/// <reference types="react" />
2+
export declare type TButtonAppearance = 'primary' | 'basic';
3+
export declare type TButtonType = 'button' | 'submit' | 'reset';
4+
export declare type TIconPosition = 'top' | 'bottom';
5+
export declare type TSize2Hierarchy = 'regular' | 'large';
6+
export declare type TSize3Hierarchy = 'regular' | 'medium' | 'large';
7+
export declare type TSize4Hierarchy = 'tiny' | 'regular' | 'medium' | 'large';
8+
export declare type TArrangement = 'horizontal' | 'vertical';
9+
export declare type TSaraStates = 'default' | 'resting';
10+
export declare type TSaraSparkleStates = 'default' | 'listening' | 'short-processing' | 'long-processing';
11+
export declare type TProgressIndicatorStates = 'listening' | 'short-processing' | 'long-processing';
12+
export declare type TBaseHtmlProps<T> = Omit<React.HTMLProps<T>, ''>;

dist/core/common.type.d.ts

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/// <reference types="react" />
2+
import { OverlayFooterProps } from "./components/molecules/overlayFooter";
3+
export declare type AccentAppearance = 'primary' | 'secondary' | 'alert' | 'warning' | 'success' | 'accent1' | 'accent2' | 'accent3' | 'accent4';
4+
export declare type HeadingAppearance = 'default' | 'subtle' | 'disabled' | 'white';
5+
export declare type MessageAppearance = 'default' | 'alert' | 'info' | 'success' | 'warning';
6+
export declare type FileStatus = 'uploading' | 'completed' | 'error';
7+
export declare type FooterOptions = {
8+
actions: OverlayFooterProps['actions'];
9+
};
10+
export declare type AutoComplete = 'on' | 'off';
11+
export declare type NumberRange = [number, number];
12+
export declare type ChangeEvent = React.ChangeEvent<HTMLInputElement>;
13+
export declare type TextColor = 'white' | 'primary' | 'secondary' | 'success' | 'alert' | 'warning' | 'accent1' | 'accent2' | 'accent3' | 'accent4' | 'inverse' | 'primary-dark' | 'secondary-dark' | 'success-dark' | 'alert-dark' | 'warning-dark' | 'accent1-dark' | 'accent2-dark' | 'accent3-dark' | 'accent4-dark' | 'primary-darker' | 'success-darker' | 'alert-darker' | 'warning-darker' | 'accent1-darker' | 'accent2-darker' | 'accent3-darker' | 'accent4-darker' | 'primary-light' | 'secondary-light' | 'success-light' | 'alert-light' | 'warning-light' | 'accent1-light' | 'accent2-light' | 'accent3-light' | 'accent4-light' | 'inverse-light' | 'primary-lighter' | 'secondary-lighter' | 'success-lighter' | 'alert-lighter' | 'warning-lighter' | 'accent1-lighter' | 'accent2-lighter' | 'accent3-lighter' | 'accent4-lighter' | 'inverse-lighter' | 'primary-lightest' | 'secondary-lightest' | 'success-lightest' | 'alert-lightest' | 'warning-lightest' | 'accent1-lightest' | 'accent2-lightest' | 'accent3-lightest' | 'accent4-lightest' | 'inverse-lightest' | 'primary-shadow' | 'secondary-shadow' | 'success-shadow' | 'alert-shadow' | 'warning-shadow' | 'accent1-shadow' | 'accent2-shadow' | 'accent3-shadow' | 'accent4-shadow' | 'inverse-shadow';
14+
export declare type AvatarSize = 'regular' | 'tiny';
15+
export declare type AvatarShape = 'round' | 'square';
16+
export declare type IconType = 'rounded' | 'outlined';
17+
export declare type PositionType = 'auto-start' | 'auto' | 'auto-end' | 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
18+
export declare type OptionType = {
19+
label: string;
20+
value: any;
21+
isSelectedOption?: boolean;
22+
};
23+
export declare type TListboxSize = 'standard' | 'compressed' | 'tight';
24+
export declare type TEmptyStateSize = 'standard' | 'compressed' | 'tight' | 'large' | 'small';
25+
export declare type TTabSize = 'regular' | 'small';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import * as React from 'react';
2+
import { Name } from "../chip/Chip";
3+
import { BaseProps } from "../../../utils/types";
4+
import { IconType } from "../../../common.type";
5+
export interface GenericChipProps extends BaseProps {
6+
label: string | React.ReactElement;
7+
labelPrefix?: string;
8+
icon?: string;
9+
clearButton?: boolean;
10+
disabled?: boolean;
11+
selected?: boolean;
12+
onClose?: () => void;
13+
onClick?: () => void;
14+
iconType?: IconType;
15+
name: Name;
16+
maxWidth: string | number;
17+
}
18+
export declare const GenericChip: {
19+
(props: GenericChipProps): JSX.Element;
20+
displayName: string;
21+
defaultProps: {
22+
maxWidth: string;
23+
};
24+
};
25+
export default GenericChip;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import * as React from 'react';
2+
interface Props {
3+
children: React.ReactNode;
4+
componentType: string;
5+
className?: string;
6+
}
7+
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
8+
export default _default;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import * as React from 'react';
2+
import { BaseHtmlProps, BaseProps } from "../../../utils/types";
3+
export interface ActionCardProps extends BaseProps, BaseHtmlProps<HTMLDivElement> {
4+
children: React.ReactNode;
5+
disabled?: boolean;
6+
zIndex?: number;
7+
onClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent) => void;
8+
}
9+
export declare const ActionCard: {
10+
(props: ActionCardProps): JSX.Element;
11+
displayName: string;
12+
};
13+
export default ActionCard;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default } from "./ActionCard";
2+
export * from "./ActionCard";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import * as React from 'react';
2+
import { BaseProps } from "../../../utils/types";
3+
import { TooltipProps } from "../../../index.type";
4+
import { AccentAppearance, AvatarSize, AvatarShape } from "../../../common.type";
5+
export interface AvatarProps extends BaseProps {
6+
appearance?: AccentAppearance;
7+
children?: string | React.ReactNode;
8+
firstName?: string;
9+
lastName?: string;
10+
withTooltip: boolean;
11+
tooltipPosition: TooltipProps['position'];
12+
tooltipSuffix?: string;
13+
size: AvatarSize;
14+
shape: AvatarShape;
15+
disabled?: boolean;
16+
role?: string;
17+
tabIndex?: number;
18+
}
19+
export declare const Avatar: {
20+
(props: AvatarProps): JSX.Element;
21+
displayName: string;
22+
Icon: (props: import("./avatarIcon").AvatarIconProps) => JSX.Element;
23+
Image: (props: import("./avatarImage").AvatarImageProps) => JSX.Element;
24+
defaultProps: {
25+
tooltipPosition: string;
26+
withTooltip: boolean;
27+
size: string;
28+
shape: string;
29+
};
30+
};
31+
export default Avatar;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import * as React from 'react';
2+
declare type ContextProps = {
3+
size?: string;
4+
appearance?: string;
5+
firstName?: string;
6+
lastName?: string;
7+
darkAppearance: string[];
8+
};
9+
export declare const AvatarContext: React.Context<ContextProps>;
10+
declare const _default: React.Provider<ContextProps>;
11+
export default _default;

0 commit comments

Comments
 (0)