-
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
Jul 24, 2023
1 parent
48f31a6
commit bc4c536
Showing
296 changed files
with
33,593 additions
and
13,500 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,19 @@ | ||
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; | ||
'aria-label'?: React.AriaAttributes['aria-label']; | ||
} | ||
declare const useAccessibilityProps: ({ onClick, onKeyDown, role, ...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; | ||
'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,14 @@ | ||
/// <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'; |
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 { Name } from "../chip/Chip"; | ||
import { BaseProps } from "../../../utils/types"; | ||
export interface GenericChipProps extends BaseProps { | ||
label: string | React.ReactElement; | ||
icon?: string; | ||
clearButton?: boolean; | ||
disabled?: boolean; | ||
selected?: boolean; | ||
onClose?: () => void; | ||
onClick?: () => void; | ||
name: Name; | ||
} | ||
export declare const GenericChip: { | ||
(props: GenericChipProps): JSX.Element; | ||
displayName: 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,10 @@ | ||
import * as React from 'react'; | ||
interface Props { | ||
children: React.ReactNode; | ||
componentType: string; | ||
className?: string; | ||
} | ||
declare const GenericText: ({ children, componentType, className, ...props }: Props) => React.ReactElement<{ | ||
className: string | undefined; | ||
}, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>; | ||
export default GenericText; |
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 { BaseProps } from "../../../utils/types"; | ||
import { TooltipProps } from "../../../index.type"; | ||
import { AccentAppearance, AvatarSize } from "../../../common.type"; | ||
export interface AvatarProps extends BaseProps { | ||
appearance?: AccentAppearance; | ||
children?: string; | ||
firstName?: string; | ||
lastName?: string; | ||
withTooltip: boolean; | ||
tooltipPosition: TooltipProps['position']; | ||
size: AvatarSize; | ||
} | ||
export declare const Avatar: { | ||
(props: AvatarProps): JSX.Element; | ||
displayName: string; | ||
defaultProps: { | ||
tooltipPosition: string; | ||
withTooltip: boolean; | ||
size: 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,2 @@ | ||
export { default } from "./Avatar"; | ||
export * from "./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,2 @@ | ||
declare const AvatarCount: (props: any) => JSX.Element; | ||
export default AvatarCount; |
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,37 @@ | ||
import { BaseProps } from "../../../utils/types"; | ||
import { AvatarProps, PopoverProps } from "../../../index.type"; | ||
import { AvatarSize } from "../../../common.type"; | ||
interface AvatarData extends Record<string, any> { | ||
firstName?: string; | ||
lastName?: string; | ||
appearance?: AvatarProps['appearance']; | ||
} | ||
interface AvatarPopoverProps { | ||
popperRenderer?: (names: AvatarData[]) => JSX.Element; | ||
appendToBody?: PopoverProps['appendToBody']; | ||
dark?: PopoverProps['dark']; | ||
position?: PopoverProps['position']; | ||
on?: PopoverProps['on']; | ||
maxHeight?: number; | ||
popperClassName?: string; | ||
} | ||
export interface AvatarGroupProps extends BaseProps { | ||
list: AvatarData[]; | ||
max: number; | ||
borderColor: string; | ||
size: AvatarSize; | ||
popoverOptions: AvatarPopoverProps; | ||
tooltipPosition: PopoverProps['position']; | ||
} | ||
export declare const AvatarGroup: { | ||
(props: AvatarGroupProps): JSX.Element; | ||
displayName: string; | ||
defaultProps: { | ||
max: number; | ||
tooltipPosition: string; | ||
borderColor: string; | ||
popoverOptions: {}; | ||
size: string; | ||
}; | ||
}; | ||
export default AvatarGroup; |
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 @@ | ||
declare const AvatarPopperBody: (props: any) => any; | ||
export default AvatarPopperBody; |
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 @@ | ||
declare const Avatars: (props: any) => any; | ||
export default Avatars; |
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 "./AvatarGroup"; | ||
export * from "./AvatarGroup"; |
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'; | ||
import { BaseProps } from "../../../utils/types"; | ||
export interface BackdropProps extends BaseProps { | ||
open: boolean; | ||
zIndex?: number; | ||
} | ||
export declare const Backdrop: React.FC<BackdropProps>; | ||
export default Backdrop; |
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, default as Backdrop } from "./Backdrop"; | ||
export * from "./Backdrop"; |
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,16 @@ | ||
import * as React from 'react'; | ||
import { BaseProps } from "../../../utils/types"; | ||
import { AccentAppearance } from "../../../common.type"; | ||
export interface BadgeProps extends BaseProps { | ||
appearance: AccentAppearance; | ||
subtle?: boolean; | ||
children: React.ReactText; | ||
} | ||
export declare const Badge: { | ||
(props: BadgeProps): JSX.Element; | ||
displayName: string; | ||
defaultProps: { | ||
appearance: string; | ||
}; | ||
}; | ||
export default Badge; |
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 "./Badge"; | ||
export * from "./Badge"; |
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 @@ | ||
import { BaseProps } from "../../../utils/types"; | ||
interface Breadcrumb { | ||
label: string; | ||
link: string; | ||
} | ||
export interface BreadcrumbsProps extends BaseProps { | ||
list: Breadcrumb[]; | ||
onClick?: (link: string) => void; | ||
showTooltip?: boolean; | ||
} | ||
export declare const Breadcrumbs: (props: BreadcrumbsProps) => JSX.Element; | ||
export default Breadcrumbs; |
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 "./Breadcrumbs"; | ||
export * from "./Breadcrumbs"; |
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,27 @@ | ||
import * as React from 'react'; | ||
import { BaseProps, BaseHtmlProps } from "../../../utils/types"; | ||
export declare type ButtonType = 'button' | 'submit' | 'reset'; | ||
export declare type ButtonAppearance = 'basic' | 'primary' | 'success' | 'alert' | 'transparent'; | ||
export declare type ButtonSize = 'tiny' | 'regular' | 'large'; | ||
export declare type ButtonAlignment = 'left' | 'right'; | ||
export interface ButtonProps extends BaseProps, BaseHtmlProps<HTMLButtonElement> { | ||
type?: ButtonType; | ||
size?: ButtonSize; | ||
appearance?: ButtonAppearance; | ||
disabled?: boolean; | ||
expanded?: boolean; | ||
selected?: boolean; | ||
loading?: boolean; | ||
icon?: string; | ||
tooltip?: string; | ||
iconAlign?: ButtonAlignment; | ||
largeIcon?: boolean; | ||
children?: React.ReactText; | ||
tabIndex?: number; | ||
autoFocus?: boolean; | ||
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void; | ||
onMouseEnter?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void; | ||
onMouseLeave?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void; | ||
} | ||
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>; | ||
export default Button; |
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 "./Button"; | ||
export * from "./Button"; |
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 { BaseProps } from "../../../utils/types"; | ||
export interface CaptionProps extends BaseProps { | ||
children: React.ReactNode; | ||
error?: boolean; | ||
hide?: boolean; | ||
withInput?: boolean; | ||
} | ||
export declare const Caption: { | ||
(props: CaptionProps): JSX.Element; | ||
displayName: string; | ||
}; | ||
export default Caption; |
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 "./Caption"; | ||
export * from "./Caption"; |
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'; | ||
import { BaseHtmlProps, BaseProps } from "../../../utils/types"; | ||
export declare type Shadow = 'none' | 'default' | 'light' | 'medium' | 'dark' | 'shadow10' | 'shadow20' | 'shadow30'; | ||
export interface CardProps extends BaseProps, BaseHtmlProps<HTMLDivElement> { | ||
shadow?: Shadow; | ||
} | ||
export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>; | ||
export default Card; |
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 "./Card"; | ||
export * from "./Card"; |
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'; | ||
import { BaseProps } from "../../../utils/types"; | ||
export interface CardBodyProps extends BaseProps { | ||
children: React.ReactNode; | ||
} | ||
export declare const CardBody: { | ||
(props: CardBodyProps): JSX.Element; | ||
displayName: string; | ||
}; | ||
export default CardBody; |
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 "./CardBody"; | ||
export * from "./CardBody"; |
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 { BaseProps } from "../../../utils/types"; | ||
export interface CardFooterProps extends BaseProps { | ||
children: React.ReactNode; | ||
withSeperator: boolean; | ||
} | ||
export declare const CardFooter: { | ||
(props: CardFooterProps): JSX.Element; | ||
displayName: string; | ||
defaultProps: { | ||
withSeperator: boolean; | ||
}; | ||
}; | ||
export default CardFooter; |
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 "./CardFooter"; | ||
export * from "./CardFooter"; |
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'; | ||
import { BaseProps } from "../../../utils/types"; | ||
export interface CardHeaderProps extends BaseProps { | ||
children: React.ReactNode; | ||
} | ||
export declare const CardHeader: { | ||
(props: CardHeaderProps): JSX.Element; | ||
displayName: string; | ||
}; | ||
export default CardHeader; |
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 "./CardHeader"; | ||
export * from "./CardHeader"; |
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'; | ||
import { BaseHtmlProps, BaseProps } from "../../../utils/types"; | ||
declare type Border = 'top' | 'left' | 'right' | 'bottom'; | ||
export interface CardSubduedProps extends BaseProps, BaseHtmlProps<HTMLDivElement> { | ||
border?: Border; | ||
} | ||
export declare const CardSubdued: React.ForwardRefExoticComponent<CardSubduedProps & React.RefAttributes<HTMLDivElement>>; | ||
export default CardSubdued; |
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 "./CardSubdued"; | ||
export * from "./CardSubdued"; |
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'; | ||
import { BaseProps, OmitNativeProps } from "../../../utils/types"; | ||
import { ChangeEvent } from "../../../common.type"; | ||
export declare type CheckBoxSize = 'regular' | 'tiny'; | ||
export interface CheckboxProps extends BaseProps, OmitNativeProps<HTMLInputElement, 'onChange'> { | ||
size?: CheckBoxSize; | ||
defaultChecked?: boolean; | ||
checked?: boolean; | ||
indeterminate?: boolean; | ||
disabled?: boolean; | ||
label?: string; | ||
helpText?: string; | ||
name?: string; | ||
value?: string | number; | ||
tabIndex?: number; | ||
onChange?: (event: ChangeEvent) => void; | ||
error?: boolean; | ||
id?: string; | ||
} | ||
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>; | ||
export default Checkbox; |
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 CheckboxIconProp = { | ||
name: string; | ||
}; | ||
declare const CheckboxIcon: (props: CheckboxIconProp) => JSX.Element | null; | ||
export default CheckboxIcon; |
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 "./Checkbox"; | ||
export * from "./Checkbox"; |
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,23 @@ | ||
import * as React from 'react'; | ||
import { BaseProps } from "../../../utils/types"; | ||
export declare type ChipType = 'action' | 'selection' | 'input'; | ||
export declare type Name = number | string | object; | ||
export interface ChipProps extends BaseProps { | ||
label: string | React.ReactElement; | ||
icon?: string; | ||
clearButton?: boolean; | ||
disabled?: boolean; | ||
selected?: boolean; | ||
type: ChipType; | ||
onClose?: (name: Name) => void; | ||
onClick?: (name: Name) => void; | ||
name: Name; | ||
} | ||
export declare const Chip: { | ||
(props: ChipProps): JSX.Element; | ||
displayName: string; | ||
defaultProps: { | ||
type: string; | ||
}; | ||
}; | ||
export default Chip; |
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 "./Chip"; | ||
export * from "./Chip"; |
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 @@ | ||
import { ChipProps } from "../chip/Chip"; | ||
import { BaseProps } from "../../../utils/types"; | ||
export interface ChipGroupProps extends BaseProps { | ||
onClose?: (item: ChipProps) => void; | ||
onClick?: (item: ChipProps) => void; | ||
list: ChipProps[]; | ||
} | ||
export declare const ChipGroup: { | ||
(props: ChipGroupProps): JSX.Element; | ||
displayName: string; | ||
}; | ||
export default ChipGroup; |
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 "./ChipGroup"; | ||
export * from "./ChipGroup"; |
Oops, something went wrong.