Skip to content

Commit

Permalink
Released 2.42.0
Browse files Browse the repository at this point in the history
  • Loading branch information
release-bot committed Sep 3, 2024
1 parent d05dde9 commit 0825c6f
Show file tree
Hide file tree
Showing 448 changed files with 30,169 additions and 5,307 deletions.
Binary file added css/dist/MaterialSymbolsRounded.woff2
Binary file not shown.
10,354 changes: 10,354 additions & 0 deletions css/dist/index.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions css/dist/index.css.map

Large diffs are not rendered by default.

7,806 changes: 3,218 additions & 4,588 deletions dist/.lib/tsconfig.type.tsbuildinfo

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/core/accessibility/utils/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import isEnterKey from "./isEnterKey";
import isSpaceKey from "./isSpaceKey";
import useAccessibilityProps from "./useAccessibilityProps";
export { isEnterKey, useAccessibilityProps, isSpaceKey };
3 changes: 3 additions & 0 deletions dist/core/accessibility/utils/isEnterKey.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import React from 'react';
declare const isEnterKey: (e: React.KeyboardEvent) => boolean;
export default isEnterKey;
3 changes: 3 additions & 0 deletions dist/core/accessibility/utils/isSpaceKey.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import React from 'react';
declare const isSpaceKey: (e: React.KeyboardEvent) => boolean;
export default isSpaceKey;
21 changes: 21 additions & 0 deletions dist/core/accessibility/utils/useAccessibilityProps.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import * as React from 'react';
declare type AriaRoleType = React.AriaRole;
interface IProps {
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
onKeyDown?: (event: React.KeyboardEvent<HTMLElement>) => void;
role?: AriaRoleType;
tabIndex?: number;
'aria-label'?: React.AriaAttributes['aria-label'];
}
declare const useAccessibilityProps: ({ onClick, onKeyDown, role, tabIndex, ...rest }: IProps) => {
onClick: (event: React.MouseEvent<HTMLElement>) => void;
role: React.AriaRole;
tabIndex: number;
'aria-label': string | undefined;
onKeyDown: (e: React.SyntheticEvent<HTMLElement>) => void;
} | {
role: React.AriaRole;
tabIndex: number | undefined;
'aria-label': string | undefined;
};
export default useAccessibilityProps;
22 changes: 22 additions & 0 deletions dist/core/ai-components/AIButton/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import * as React from 'react';
import { TButtonAppearance, TButtonType, TBaseHtmlProps } from "../common.type";
export interface AIButtonProps extends TBaseHtmlProps<HTMLButtonElement> {
appearance?: TButtonAppearance;
type?: TButtonType;
disabled?: boolean;
children?: string;
tabIndex?: number;
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
onMouseEnter?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
onMouseLeave?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
'data-test'?: string;
className?: string;
}
export declare const AIButton: {
(props: AIButtonProps): JSX.Element;
defaultProps: {
appearance: string;
type: string;
};
};
export default AIButton;
10 changes: 10 additions & 0 deletions dist/core/ai-components/AIChip/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as React from 'react';
export interface AIChipProps extends React.ComponentProps<'button'> {
label: string;
icon: string;
disabled?: boolean;
'data-test'?: string;
className?: string;
}
export declare const AIChip: (props: AIChipProps) => JSX.Element;
export default AIChip;
14 changes: 14 additions & 0 deletions dist/core/ai-components/AIIconButton/SaraIcon.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { TIconPosition, TSize2Hierarchy } from "../common.type";
interface SaraIconProp {
size: TSize2Hierarchy;
position: TIconPosition;
disabled?: boolean;
}
export declare const SaraIcon: {
(props: SaraIconProp): JSX.Element;
defaultProps: {
size: string;
position: string;
};
};
export default SaraIcon;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare type SaraIconType = {
className?: string;
};
declare const SaraDisabledBottom: (props: SaraIconType) => JSX.Element;
export default SaraDisabledBottom;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare type SaraIconType = {
className?: string;
};
declare const SaraDisabledTop: (props: SaraIconType) => JSX.Element;
export default SaraDisabledTop;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare type SaraIconType = {
className?: string;
};
declare const SaraIconBottom: (props: SaraIconType) => JSX.Element;
export default SaraIconBottom;
5 changes: 5 additions & 0 deletions dist/core/ai-components/AIIconButton/icons/SaraIconTop.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare type SaraIconType = {
className?: string;
};
declare const SaraIconTop: (props: SaraIconType) => JSX.Element;
export default SaraIconTop;
26 changes: 26 additions & 0 deletions dist/core/ai-components/AIIconButton/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import * as React from 'react';
import { TIconPosition, TButtonType, TSize2Hierarchy, TBaseHtmlProps } from "../common.type";
export interface AIIconButtonProps extends Omit<TBaseHtmlProps<HTMLButtonElement>, 'size'> {
icon?: string;
size?: TSize2Hierarchy;
position?: TIconPosition;
type?: TButtonType;
tooltip?: string;
disabled?: boolean;
tabIndex?: number;
strokeColor?: string;
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
onMouseEnter?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
onMouseLeave?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
'data-test'?: string;
className?: string;
}
export declare const AIIconButton: {
(props: AIIconButtonProps): JSX.Element;
defaultProps: {
size: string;
position: string;
strokeColor: string;
};
};
export default AIIconButton;
9 changes: 9 additions & 0 deletions dist/core/ai-components/AIResponse/ChatActionBar.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as React from 'react';
import { TBaseHtmlProps } from "../common.type";
export interface ChatActionBarProps extends TBaseHtmlProps<HTMLDivElement> {
children: React.ReactNode;
'data-test'?: string;
className?: string;
}
export declare const ChatActionBar: (props: ChatActionBarProps) => JSX.Element;
export default ChatActionBar;
9 changes: 9 additions & 0 deletions dist/core/ai-components/AIResponse/ChatBody.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as React from 'react';
import { TBaseHtmlProps } from "../common.type";
export interface ChatBodyProps extends TBaseHtmlProps<HTMLDivElement> {
children: React.ReactNode;
'data-test'?: string;
className?: string;
}
export declare const ChatBody: (props: ChatBodyProps) => JSX.Element;
export default ChatBody;
9 changes: 9 additions & 0 deletions dist/core/ai-components/AIResponse/ChatBox.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as React from 'react';
import { TBaseHtmlProps } from "../common.type";
export interface ChatBoxProps extends TBaseHtmlProps<HTMLDivElement> {
children: React.ReactNode;
'data-test'?: string;
className?: string;
}
export declare const ChatBox: (props: ChatBoxProps) => JSX.Element;
export default ChatBox;
4 changes: 4 additions & 0 deletions dist/core/ai-components/AIResponse/ChatButton.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { ButtonProps } from "../../index.type";
declare type ChatButtonType = Omit<ButtonProps, 'size' | 'largeIcon' | 'appearance'>;
export declare const ChatButton: (props: ChatButtonType) => JSX.Element;
export default ChatButton;
14 changes: 14 additions & 0 deletions dist/core/ai-components/AIResponse/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as React from 'react';
import { TBaseHtmlProps } from "../common.type";
export interface AIResponseProps extends TBaseHtmlProps<HTMLDivElement> {
children: React.ReactNode;
'data-test'?: string;
className?: string;
}
export declare const AIResponse: {
(props: AIResponseProps): JSX.Element;
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" | "loading" | "iconType" | "expanded" | "iconAlign">) => JSX.Element;
ActionBar: (props: import("./ChatActionBar").ChatActionBarProps) => JSX.Element;
Body: (props: import("./ChatBody").ChatBodyProps) => JSX.Element;
};
export default AIResponse;
18 changes: 18 additions & 0 deletions dist/core/ai-components/Sara/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as React from 'react';
import { TSaraStates, TBaseHtmlProps } from "../common.type";
export interface SaraProps extends TBaseHtmlProps<HTMLDivElement> {
size?: number;
state?: TSaraStates;
alt?: string;
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
className?: string;
'data-test'?: string;
}
export declare const Sara: {
(props: SaraProps): JSX.Element;
defaultProps: {
size: number;
state: string;
};
};
export default Sara;
18 changes: 18 additions & 0 deletions dist/core/ai-components/SaraSparkle/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as React from 'react';
import { TSaraSparkleStates, TBaseHtmlProps } from "../common.type";
export interface SaraSparkleProps extends TBaseHtmlProps<HTMLDivElement> {
size?: number;
state?: TSaraSparkleStates;
alt?: string;
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
className?: string;
'data-test'?: string;
}
export declare const SaraSparkle: {
(props: SaraSparkleProps): JSX.Element;
defaultProps: {
size: number;
state: string;
};
};
export default SaraSparkle;
12 changes: 12 additions & 0 deletions dist/core/ai-components/common.type.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/// <reference types="react" />
export declare type TButtonAppearance = 'primary' | 'basic';
export declare type TButtonType = 'button' | 'submit' | 'reset';
export declare type TIconPosition = 'top' | 'bottom';
export declare type TSize2Hierarchy = 'regular' | 'large';
export declare type TSize3Hierarchy = 'regular' | 'medium' | 'large';
export declare type TSize4Hierarchy = 'tiny' | 'regular' | 'medium' | 'large';
export declare type TArrangement = 'horizontal' | 'vertical';
export declare type TSaraStates = 'default' | 'resting';
export declare type TSaraSparkleStates = 'default' | 'listening' | 'short-processing' | 'long-processing';
export declare type TProgressIndicatorStates = 'listening' | 'short-processing' | 'long-processing';
export declare type TBaseHtmlProps<T> = Omit<React.HTMLProps<T>, ''>;
25 changes: 25 additions & 0 deletions dist/core/common.type.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/// <reference types="react" />
import { OverlayFooterProps } from "./components/molecules/overlayFooter";
export declare type AccentAppearance = 'primary' | 'secondary' | 'alert' | 'warning' | 'success' | 'accent1' | 'accent2' | 'accent3' | 'accent4';
export declare type HeadingAppearance = 'default' | 'subtle' | 'disabled' | 'white';
export declare type MessageAppearance = 'default' | 'alert' | 'info' | 'success' | 'warning';
export declare type FileStatus = 'uploading' | 'completed' | 'error';
export declare type FooterOptions = {
actions: OverlayFooterProps['actions'];
};
export declare type AutoComplete = 'on' | 'off';
export declare type NumberRange = [number, number];
export declare type ChangeEvent = React.ChangeEvent<HTMLInputElement>;
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';
export declare type AvatarSize = 'regular' | 'tiny';
export declare type AvatarShape = 'round' | 'square';
export declare type IconType = 'rounded' | 'outlined';
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';
export declare type OptionType = {
label: string;
value: any;
isSelectedOption?: boolean;
};
export declare type TListboxSize = 'standard' | 'compressed' | 'tight';
export declare type TEmptyStateSize = 'standard' | 'compressed' | 'tight' | 'large' | 'small';
export declare type TTabSize = 'regular' | 'small';
25 changes: 25 additions & 0 deletions dist/core/components/atoms/_chip/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import * as React from 'react';
import { Name } from "../chip/Chip";
import { BaseProps } from "../../../utils/types";
import { IconType } from "../../../common.type";
export interface GenericChipProps extends BaseProps {
label: string | React.ReactElement;
labelPrefix?: string;
icon?: string;
clearButton?: boolean;
disabled?: boolean;
selected?: boolean;
onClose?: () => void;
onClick?: () => void;
iconType?: IconType;
name: Name;
maxWidth: string | number;
}
export declare const GenericChip: {
(props: GenericChipProps): JSX.Element;
displayName: string;
defaultProps: {
maxWidth: string;
};
};
export default GenericChip;
8 changes: 8 additions & 0 deletions dist/core/components/atoms/_text/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import * as React from 'react';
interface Props {
children: React.ReactNode;
componentType: string;
className?: string;
}
declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
export default _default;
13 changes: 13 additions & 0 deletions dist/core/components/atoms/actionCard/ActionCard.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';
import { BaseHtmlProps, BaseProps } from "../../../utils/types";
export interface ActionCardProps extends BaseProps, BaseHtmlProps<HTMLDivElement> {
children: React.ReactNode;
disabled?: boolean;
zIndex?: number;
onClick?: (e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent) => void;
}
export declare const ActionCard: {
(props: ActionCardProps): JSX.Element;
displayName: string;
};
export default ActionCard;
2 changes: 2 additions & 0 deletions dist/core/components/atoms/actionCard/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default } from "./ActionCard";
export * from "./ActionCard";
31 changes: 31 additions & 0 deletions dist/core/components/atoms/avatar/Avatar.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import * as React from 'react';
import { BaseProps } from "../../../utils/types";
import { TooltipProps } from "../../../index.type";
import { AccentAppearance, AvatarSize, AvatarShape } from "../../../common.type";
export interface AvatarProps extends BaseProps {
appearance?: AccentAppearance;
children?: string | React.ReactNode;
firstName?: string;
lastName?: string;
withTooltip: boolean;
tooltipPosition: TooltipProps['position'];
tooltipSuffix?: string;
size: AvatarSize;
shape: AvatarShape;
disabled?: boolean;
role?: string;
tabIndex?: number;
}
export declare const Avatar: {
(props: AvatarProps): JSX.Element;
displayName: string;
Icon: (props: import("./avatarIcon").AvatarIconProps) => JSX.Element;
Image: (props: import("./avatarImage").AvatarImageProps) => JSX.Element;
defaultProps: {
tooltipPosition: string;
withTooltip: boolean;
size: string;
shape: string;
};
};
export default Avatar;
10 changes: 10 additions & 0 deletions dist/core/components/atoms/avatar/AvatarProvider.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as React from 'react';
declare type ContextProps = {
size?: string;
appearance?: string;
firstName?: string;
lastName?: string;
};
export declare const AvatarContext: React.Context<ContextProps>;
declare const _default: React.Provider<ContextProps>;
export default _default;
7 changes: 7 additions & 0 deletions dist/core/components/atoms/avatar/avatarIcon/AvatarIcon.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { BaseProps } from "../../../../utils/types";
export interface AvatarIconProps extends BaseProps {
name?: string;
type?: 'outlined' | 'rounded';
}
export declare const AvatarIcon: (props: AvatarIconProps) => JSX.Element;
export default AvatarIcon;
Loading

0 comments on commit 0825c6f

Please sign in to comment.