@idbrnd/design-system 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/BasicIcon/BasicIconButton.d.ts +10 -0
- package/dist/components/Button/Fill/FillButton.d.ts +15 -0
- package/dist/components/Button/FillIcon/FillIconButton.d.ts +12 -0
- package/dist/components/Button/Outline/OutlineButton.d.ts +15 -0
- package/dist/components/Button/OutlineIcon/OutlineIconButton.d.ts +10 -0
- package/dist/components/Button/Text/TextButton.d.ts +15 -0
- package/dist/components/Button/Weak/WeakButton.d.ts +15 -0
- package/dist/components/Input/Input.d.ts +25 -0
- package/dist/components/Input/Input.types.d.ts +103 -0
- package/dist/components/Input/InputTrailing.d.ts +7 -0
- package/dist/components/Input/useInputState.d.ts +18 -0
- package/dist/components/PushBadge/PushBadge.d.ts +13 -0
- package/dist/components/SearchBar/SearchBar.d.ts +31 -0
- package/dist/components/Snackbar/Snackbar.d.ts +14 -0
- package/dist/components/Spinner/Spinner.d.ts +20 -0
- package/dist/components/Toast/Toast.d.ts +10 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +1085 -0
- package/dist/style.css +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export type BasicIconButtonSize = 'large' | 'small';
|
|
3
|
+
export interface BasicIconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
4
|
+
size?: BasicIconButtonSize;
|
|
5
|
+
keepFocusOnClick?: boolean;
|
|
6
|
+
customStyle?: CSSProperties;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function BasicIconButton({ size, disabled, keepFocusOnClick, customStyle, onClick, className, children, type, ...rest }: BasicIconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default BasicIconButton;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
export type FillButtonWidthType = 'fixed' | 'flexible';
|
|
3
|
+
export type FillButtonVariant = 'primary' | 'assistive' | 'error';
|
|
4
|
+
export type FillButtonSize = 'large' | 'medium' | 'small' | 'xsmall';
|
|
5
|
+
export interface FillButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
6
|
+
widthType?: FillButtonWidthType;
|
|
7
|
+
variant?: FillButtonVariant;
|
|
8
|
+
size?: FillButtonSize;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
keepFocusOnClick?: boolean;
|
|
11
|
+
customStyle?: CSSProperties;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare function FillButton({ widthType, variant, size, disabled, loading, keepFocusOnClick, customStyle, onClick, className, children, type, ...rest }: FillButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default FillButton;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export type FillIconButtonVariant = 'basic' | 'overlay' | 'primary';
|
|
3
|
+
export type FillIconButtonSize = 'large' | 'medium';
|
|
4
|
+
export interface FillIconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
5
|
+
variant?: FillIconButtonVariant;
|
|
6
|
+
size?: FillIconButtonSize;
|
|
7
|
+
keepFocusOnClick?: boolean;
|
|
8
|
+
customStyle?: CSSProperties;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare function FillIconButton({ variant, size, disabled, keepFocusOnClick, customStyle, onClick, children, type, ...rest }: FillIconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default FillIconButton;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
export type OutlineButtonWidthType = 'fixed' | 'flexible';
|
|
3
|
+
export type OutlineButtonVariant = 'primary' | 'assistive' | 'secondary';
|
|
4
|
+
export type OutlineButtonSize = 'large' | 'medium' | 'small' | 'xsmall';
|
|
5
|
+
export interface OutlineButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
6
|
+
widthType?: OutlineButtonWidthType;
|
|
7
|
+
variant?: OutlineButtonVariant;
|
|
8
|
+
size?: OutlineButtonSize;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
keepFocusOnClick?: boolean;
|
|
11
|
+
customStyle?: CSSProperties;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare function OutlineButton({ widthType, variant, size, disabled, loading, keepFocusOnClick, customStyle, onClick, className, children, type, ...rest }: OutlineButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default OutlineButton;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export type OutlineIconButtonSize = 'large' | 'medium';
|
|
3
|
+
export interface OutlineIconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
4
|
+
size?: OutlineIconButtonSize;
|
|
5
|
+
keepFocusOnClick?: boolean;
|
|
6
|
+
customStyle?: CSSProperties;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function OutlineIconButton({ size, disabled, keepFocusOnClick, customStyle, onClick, children, type, ...rest }: OutlineIconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default OutlineIconButton;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
export type TextButtonWidthType = 'fixed' | 'flexible';
|
|
3
|
+
export type TextButtonVariant = 'primary' | 'assistive' | 'secondary';
|
|
4
|
+
export type TextButtonSize = 'large' | 'medium' | 'small' | 'xsmall';
|
|
5
|
+
export interface TextButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
6
|
+
widthType?: TextButtonWidthType;
|
|
7
|
+
variant?: TextButtonVariant;
|
|
8
|
+
size?: TextButtonSize;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
keepFocusOnClick?: boolean;
|
|
11
|
+
customStyle?: CSSProperties;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare function TextButton({ widthType, variant, size, disabled, loading, keepFocusOnClick, customStyle, onClick, className, children, type, ...rest }: TextButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default TextButton;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
export type WeakButtonWidthType = 'fixed' | 'flexible';
|
|
3
|
+
export type WeakButtonVariant = 'primary' | 'assistive' | 'error';
|
|
4
|
+
export type WeakButtonSize = 'large' | 'medium' | 'small' | 'xsmall';
|
|
5
|
+
export interface WeakButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
|
|
6
|
+
widthType?: WeakButtonWidthType;
|
|
7
|
+
variant?: WeakButtonVariant;
|
|
8
|
+
size?: WeakButtonSize;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
keepFocusOnClick?: boolean;
|
|
11
|
+
customStyle?: CSSProperties;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare function WeakButton({ widthType, variant, size, disabled, loading, keepFocusOnClick, customStyle, onClick, className, children, type, ...rest }: WeakButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default WeakButton;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { InputProps } from './Input.types';
|
|
2
|
+
export type { InputProps, InputSize, InputVariant, InputType } from './Input.types';
|
|
3
|
+
declare function Input({ type, // input HTML 타입
|
|
4
|
+
designType, // 인풋 외형 타입
|
|
5
|
+
size, // 인풋 높이 크기
|
|
6
|
+
variant, // 상태 variant
|
|
7
|
+
width, // 루트 너비
|
|
8
|
+
heading, // 라벨 표시 여부
|
|
9
|
+
headingContent, // 라벨 내용
|
|
10
|
+
required, // 라벨 우측 *
|
|
11
|
+
description, // 하단 안내 문구
|
|
12
|
+
fixedDescriptionHeight, // 하단 문구 영역 높이 고정 여부
|
|
13
|
+
errorMessage, // 에러 상태 문구
|
|
14
|
+
leadingIcon, // 좌측 아이콘 슬롯
|
|
15
|
+
trailingContent, // 우측 trailing 슬롯 콘텐츠
|
|
16
|
+
customStyle, // 루트 커스텀 스타일
|
|
17
|
+
id, // input id
|
|
18
|
+
onFocus, // 포커스 진입 핸들러
|
|
19
|
+
onBlur, // 포커스 이탈 핸들러
|
|
20
|
+
onChange, // 값 변경 핸들러
|
|
21
|
+
value, // 현재 값
|
|
22
|
+
disabled, // 전체 비활성화 여부
|
|
23
|
+
readOnly, // 읽기 전용 여부
|
|
24
|
+
...rest }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export default Input;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLInputTypeAttribute, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Input 컨테이너의 시각 스타일 타입.
|
|
4
|
+
* @defaultValue `'outline'`
|
|
5
|
+
*/
|
|
6
|
+
export type InputType = 'outline' | 'fill';
|
|
7
|
+
/**
|
|
8
|
+
* Input 높이 타입.
|
|
9
|
+
* @defaultValue `'default'`
|
|
10
|
+
*/
|
|
11
|
+
export type InputSize = 'default' | 'small';
|
|
12
|
+
/**
|
|
13
|
+
* Input 상태 variant 타입.
|
|
14
|
+
* - `basic`: 기본 상태
|
|
15
|
+
* - `error`: 에러 상태
|
|
16
|
+
* - `onTyping`: 입력 중 상태
|
|
17
|
+
* - `typed`: 값이 입력된 상태
|
|
18
|
+
* - `onFocus`: 포커스 상태
|
|
19
|
+
* - `success`: 성공 상태
|
|
20
|
+
*/
|
|
21
|
+
export type InputVariant = 'basic' | 'error' | 'onTyping' | 'typed' | 'onFocus' | 'success';
|
|
22
|
+
/** `Input` 컴포넌트 public props. */
|
|
23
|
+
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'type' | 'width' | 'required' | 'className' | 'defaultValue' | 'value'> {
|
|
24
|
+
/**
|
|
25
|
+
* 실제 HTML input 타입.
|
|
26
|
+
* (`text`, `password`, `number`, `email` 등)
|
|
27
|
+
* @defaultValue `'text'`
|
|
28
|
+
*/
|
|
29
|
+
type?: HTMLInputTypeAttribute;
|
|
30
|
+
/**
|
|
31
|
+
* Input 컨테이너 외형 타입.
|
|
32
|
+
* @defaultValue `'outline'`
|
|
33
|
+
*/
|
|
34
|
+
designType?: InputType;
|
|
35
|
+
/**
|
|
36
|
+
* Input 높이.
|
|
37
|
+
* - `default`: 44px
|
|
38
|
+
* - `small`: 40px
|
|
39
|
+
* @defaultValue `'default'`
|
|
40
|
+
*/
|
|
41
|
+
size?: InputSize;
|
|
42
|
+
/**
|
|
43
|
+
* Input 상태 variant.
|
|
44
|
+
* 미지정 시 내부 상호작용(포커스/입력/값 존재 여부)으로 자동 계산한다.
|
|
45
|
+
*/
|
|
46
|
+
variant?: InputVariant;
|
|
47
|
+
/**
|
|
48
|
+
* 루트 너비.
|
|
49
|
+
* 미지정 시 `100%`가 적용된다.
|
|
50
|
+
*/
|
|
51
|
+
width?: number | string;
|
|
52
|
+
/**
|
|
53
|
+
* Input 값.
|
|
54
|
+
* 이 컴포넌트는 controlled 방식만 지원하므로 필수로 전달해야 한다.
|
|
55
|
+
*/
|
|
56
|
+
value: Exclude<InputHTMLAttributes<HTMLInputElement>['value'], undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* 상단 heading(라벨) 표시 여부.
|
|
59
|
+
* @defaultValue `true`
|
|
60
|
+
*/
|
|
61
|
+
heading?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* 상단 heading(라벨) 텍스트/노드.
|
|
64
|
+
* @defaultValue `'Label'`
|
|
65
|
+
*/
|
|
66
|
+
headingContent?: ReactNode;
|
|
67
|
+
/**
|
|
68
|
+
* 필수 입력 여부.
|
|
69
|
+
* `true`면 input의 `required` 속성을 적용하고, heading 노출 시 `*`를 함께 표시한다.
|
|
70
|
+
* @defaultValue `false`
|
|
71
|
+
*/
|
|
72
|
+
required?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* 하단 안내 문구
|
|
75
|
+
* - `false`: 안내 문구 없음
|
|
76
|
+
* - `true`: 기본 안내 문구 사용
|
|
77
|
+
* - `ReactNode`: 커스텀 안내 문구 사용
|
|
78
|
+
*
|
|
79
|
+
* 주의:
|
|
80
|
+
* - `variant === 'error'`이면 description 대신 에러 문구가 우선 노출된다.
|
|
81
|
+
* @defaultValue `false`
|
|
82
|
+
*/
|
|
83
|
+
description?: ReactNode | boolean;
|
|
84
|
+
/**
|
|
85
|
+
* helper 영역(안내/에러 문구)의 높이를 고정할지 여부
|
|
86
|
+
* - `true`(기본): 메시지 토글 시 레이아웃 점프 방지
|
|
87
|
+
* - `false`: 메시지가 없으면 helper 영역 자체를 제거
|
|
88
|
+
* @defaultValue `true`
|
|
89
|
+
*/
|
|
90
|
+
fixedDescriptionHeight?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* 에러 문구.
|
|
93
|
+
* `variant === 'error'`일 때 사용된다.
|
|
94
|
+
* 미지정 시 기본 에러 문구를 표시한다.
|
|
95
|
+
*/
|
|
96
|
+
errorMessage?: ReactNode;
|
|
97
|
+
/** 입력창 좌측에 표시할 leading 아이콘 */
|
|
98
|
+
leadingIcon?: ReactNode;
|
|
99
|
+
/** 우측 trailing 슬롯에 렌더링할 콘텐츠 */
|
|
100
|
+
trailingContent?: ReactNode;
|
|
101
|
+
/** 루트 컨테이너에 적용할 추가 style */
|
|
102
|
+
customStyle?: CSSProperties;
|
|
103
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
interface InputTrailingProps {
|
|
3
|
+
content?: ReactNode;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function InputTrailing({ content, disabled }: InputTrailingProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default InputTrailing;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ChangeEvent, type FocusEvent } from 'react';
|
|
2
|
+
import type { InputProps } from './Input.types';
|
|
3
|
+
interface UseInputStateParams {
|
|
4
|
+
value: InputProps['value'];
|
|
5
|
+
onFocus: InputProps['onFocus'];
|
|
6
|
+
onBlur: InputProps['onBlur'];
|
|
7
|
+
onChange: InputProps['onChange'];
|
|
8
|
+
}
|
|
9
|
+
export interface UseInputStateResult {
|
|
10
|
+
currentValue: InputProps['value'];
|
|
11
|
+
isFocused: boolean;
|
|
12
|
+
isTyping: boolean;
|
|
13
|
+
handleFocus: (event: FocusEvent<HTMLInputElement>) => void;
|
|
14
|
+
handleBlur: (event: FocusEvent<HTMLInputElement>) => void;
|
|
15
|
+
handleChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
+
}
|
|
17
|
+
export default function useInputState({ value, onFocus, onBlur, onChange }: UseInputStateParams): UseInputStateResult;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
export type PushBadgeVariant = 'dot' | 'number' | 'info';
|
|
3
|
+
export interface PushBadgeProps {
|
|
4
|
+
variant?: PushBadgeVariant;
|
|
5
|
+
count?: number;
|
|
6
|
+
bgColor?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
customStyle?: CSSProperties;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare function PushBadge({ variant, count, bgColor, color, disabled, customStyle, className }: PushBadgeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export default PushBadge;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { InputProps, InputSize } from '../Input/Input';
|
|
2
|
+
export type SearchBarSize = InputSize;
|
|
3
|
+
export interface SearchBarProps extends Omit<InputProps, 'type' | 'value' | 'onChange'> {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: NonNullable<InputProps['onChange']>;
|
|
6
|
+
onSearch: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare function SearchBar({ value, // 검색어 값
|
|
9
|
+
onChange, // 입력 변경 핸들러
|
|
10
|
+
onSearch, // 검색 실행 핸들러
|
|
11
|
+
size, // 인풋 크기
|
|
12
|
+
width, // 컴포넌트 너비
|
|
13
|
+
designType, // 인풋 외형 타입
|
|
14
|
+
heading, // 라벨 표시 여부
|
|
15
|
+
headingContent, // 라벨 내용
|
|
16
|
+
variant, // 인풋 상태 variant
|
|
17
|
+
description, // 하단 안내 문구
|
|
18
|
+
fixedDescriptionHeight, // 하단 문구 영역 높이 고정 여부
|
|
19
|
+
disabled, // 전체 비활성화 여부
|
|
20
|
+
readOnly, // 읽기 전용 여부
|
|
21
|
+
id, // input id
|
|
22
|
+
name, // input name
|
|
23
|
+
placeholder, // placeholder 텍스트
|
|
24
|
+
leadingIcon, // 좌측 아이콘 슬롯
|
|
25
|
+
maxLength, // 최대 입력 길이
|
|
26
|
+
required, // 필수 입력 여부
|
|
27
|
+
errorMessage, // 에러 상태 문구
|
|
28
|
+
onBlur, // 포커스 이탈 핸들러
|
|
29
|
+
onKeyDown, // 키다운 핸들러
|
|
30
|
+
...inputRestProps }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export default SearchBar;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
export type SnackbarVariant = 'basic' | 'loading';
|
|
3
|
+
export interface SnackbarShowOptions {
|
|
4
|
+
variant?: SnackbarVariant;
|
|
5
|
+
heading?: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
actionLabel?: ReactNode;
|
|
9
|
+
onActionClick?: () => void;
|
|
10
|
+
closeButton?: boolean;
|
|
11
|
+
customStyle?: CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
export declare function showSnackbar({ variant, heading, description, icon, actionLabel, onActionClick, closeButton, customStyle }: SnackbarShowOptions): void;
|
|
14
|
+
export declare function dismissSnackbar(): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface CustomSpinnerProps {
|
|
2
|
+
color?: string;
|
|
3
|
+
size?: number;
|
|
4
|
+
}
|
|
5
|
+
export interface ClipProps {
|
|
6
|
+
color?: string;
|
|
7
|
+
size?: number;
|
|
8
|
+
text?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface FadeSpinnerProps {
|
|
11
|
+
color?: string;
|
|
12
|
+
width?: number;
|
|
13
|
+
height?: number;
|
|
14
|
+
radius?: number;
|
|
15
|
+
margin?: number;
|
|
16
|
+
}
|
|
17
|
+
export default function Spinner(): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function CustomSpinner({ color, size }: CustomSpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function Clip({ color, size, text }: ClipProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function FadeSpinner({ color, width, height, radius, margin }: FadeSpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
export type ToastVariant = 'basic' | 'positive' | 'negative';
|
|
3
|
+
export interface ToastShowOptions {
|
|
4
|
+
message: ReactNode;
|
|
5
|
+
variant?: ToastVariant;
|
|
6
|
+
customStyle?: CSSProperties;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function showToast({ message, variant, customStyle, icon }: ToastShowOptions): void;
|
|
10
|
+
export declare function dismissToast(): void;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import './styles/variables.css';
|
|
2
|
+
import './styles/font-metrics.css';
|
|
3
|
+
export { default as BasicIconButton } from './components/Button/BasicIcon/BasicIconButton';
|
|
4
|
+
export { default as FillButton } from './components/Button/Fill/FillButton';
|
|
5
|
+
export { default as FillIconButton } from './components/Button/FillIcon/FillIconButton';
|
|
6
|
+
export { default as Input } from './components/Input/Input';
|
|
7
|
+
export { default as OutlineButton } from './components/Button/Outline/OutlineButton';
|
|
8
|
+
export { default as OutlineIconButton } from './components/Button/OutlineIcon/OutlineIconButton';
|
|
9
|
+
export { default as PushBadge } from './components/PushBadge/PushBadge';
|
|
10
|
+
export { default as SearchBar } from './components/SearchBar/SearchBar';
|
|
11
|
+
export { dismissSnackbar, showSnackbar } from './components/Snackbar/Snackbar';
|
|
12
|
+
export { default as Spinner, Clip, CustomSpinner, FadeSpinner } from './components/Spinner/Spinner';
|
|
13
|
+
export { dismissToast, showToast } from './components/Toast/Toast';
|
|
14
|
+
export { default as TextButton } from './components/Button/Text/TextButton';
|
|
15
|
+
export { default as WeakButton } from './components/Button/Weak/WeakButton';
|
|
16
|
+
export type { BasicIconButtonProps, BasicIconButtonSize } from './components/Button/BasicIcon/BasicIconButton';
|
|
17
|
+
export type { FillButtonProps, FillButtonSize, FillButtonVariant, FillButtonWidthType } from './components/Button/Fill/FillButton';
|
|
18
|
+
export type { FillIconButtonProps, FillIconButtonSize, FillIconButtonVariant } from './components/Button/FillIcon/FillIconButton';
|
|
19
|
+
export type { InputProps, InputSize, InputType, InputVariant } from './components/Input/Input';
|
|
20
|
+
export type { PushBadgeProps, PushBadgeVariant } from './components/PushBadge/PushBadge';
|
|
21
|
+
export type { SearchBarProps, SearchBarSize } from './components/SearchBar/SearchBar';
|
|
22
|
+
export type { SnackbarShowOptions, SnackbarVariant } from './components/Snackbar/Snackbar';
|
|
23
|
+
export type { ClipProps, CustomSpinnerProps, FadeSpinnerProps } from './components/Spinner/Spinner';
|
|
24
|
+
export type { ToastShowOptions, ToastVariant } from './components/Toast/Toast';
|
|
25
|
+
export type { OutlineButtonProps, OutlineButtonSize, OutlineButtonVariant, OutlineButtonWidthType } from './components/Button/Outline/OutlineButton';
|
|
26
|
+
export type { OutlineIconButtonProps, OutlineIconButtonSize } from './components/Button/OutlineIcon/OutlineIconButton';
|
|
27
|
+
export type { TextButtonProps, TextButtonSize, TextButtonVariant, TextButtonWidthType } from './components/Button/Text/TextButton';
|
|
28
|
+
export type { WeakButtonProps, WeakButtonSize, WeakButtonVariant, WeakButtonWidthType } from './components/Button/Weak/WeakButton';
|