-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
release-bot
committed
Aug 21, 2024
1 parent
2b89070
commit b42c079
Showing
440 changed files
with
29,996 additions
and
5,292 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
5 changes: 5 additions & 0 deletions
5
dist/core/ai-components/AIIconButton/icons/SaraDisabledBottom.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
5 changes: 5 additions & 0 deletions
5
dist/core/ai-components/AIIconButton/icons/SaraDisabledTop.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
5 changes: 5 additions & 0 deletions
5
dist/core/ai-components/AIIconButton/icons/SaraIconBottom.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>, ''>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default } from "./ActionCard"; | ||
export * from "./ActionCard"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.