@shoplflow/base 0.13.0 → 0.13.2
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/index.cjs +34651 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +998 -0
- package/dist/index.d.ts +383 -32
- package/dist/index.js +32725 -533
- package/dist/index.js.map +1 -1
- package/package.json +10 -17
- package/dist/index.d.mts +0 -647
- package/dist/index.mjs +0 -1755
- package/dist/index.mjs.map +0 -1
- /package/dist/styles/{global.d.mts → global.d.cts} +0 -0
- /package/dist/styles/{reset.d.mts → reset.d.cts} +0 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,998 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { ReactNode, ElementType, ComponentPropsWithoutRef, ReactElement, ComponentPropsWithRef, CSSProperties, HTMLAttributes, MouseEvent } from 'react';
|
|
4
|
+
import * as framer_motion from 'framer-motion';
|
|
5
|
+
import { CustomDomComponent } from 'framer-motion';
|
|
6
|
+
import { IconSource } from '@shoplflow/shopl-assets';
|
|
7
|
+
import { IconSource as IconSource$1 } from '@shoplflow/hada-assets';
|
|
8
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
9
|
+
import * as _emotion_react from '@emotion/react';
|
|
10
|
+
import { $Values } from '@shoplflow/utils';
|
|
11
|
+
import { Middleware } from '@floating-ui/react-dom';
|
|
12
|
+
import { AutoPlacementOptions, Placement } from '@floating-ui/react';
|
|
13
|
+
import { OffsetOptions } from '@floating-ui/core';
|
|
14
|
+
|
|
15
|
+
declare type DomainType = 'SHOPL' | 'HADA';
|
|
16
|
+
|
|
17
|
+
interface ShoplflowProviderProps {
|
|
18
|
+
domain?: DomainType;
|
|
19
|
+
children: React__default.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare const ShoplflowProvider: ({ children, domain }: ShoplflowProviderProps) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
declare const ModalPortal: () => react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
declare type UseDomainType = (domain?: DomainType) => [DomainType | undefined];
|
|
26
|
+
declare const useDomain: UseDomainType;
|
|
27
|
+
declare const getDomain: () => "shopl" | "hada";
|
|
28
|
+
|
|
29
|
+
declare type ModalStateType = {
|
|
30
|
+
component: ReactNode;
|
|
31
|
+
id?: string;
|
|
32
|
+
};
|
|
33
|
+
declare type RemoveModalProps = {
|
|
34
|
+
id?: string;
|
|
35
|
+
deps?: number;
|
|
36
|
+
};
|
|
37
|
+
declare type ModalContext = ModalStateType[];
|
|
38
|
+
declare const ModalContext: React$1.Context<ModalContext>;
|
|
39
|
+
|
|
40
|
+
declare const useHandleModal: () => {
|
|
41
|
+
addModal: (modal: React$1.ReactNode, id?: string | undefined) => void;
|
|
42
|
+
removeModal: (props?: RemoveModalProps | undefined) => void;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
declare const useModalValue: () => {
|
|
46
|
+
modal: ModalContext;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
declare const fontWeightTokens: {
|
|
50
|
+
fontWeightRegular: string;
|
|
51
|
+
fontWeightMedium: string;
|
|
52
|
+
fontWeightBold: string;
|
|
53
|
+
};
|
|
54
|
+
declare const borderRadiusTokens: {
|
|
55
|
+
borderRadius04: string;
|
|
56
|
+
borderRadius06: string;
|
|
57
|
+
borderRadius08: string;
|
|
58
|
+
borderRadius12: string;
|
|
59
|
+
borderRadius16: string;
|
|
60
|
+
borderRadius20: string;
|
|
61
|
+
};
|
|
62
|
+
declare const colorTokens: {
|
|
63
|
+
coolgray300: string;
|
|
64
|
+
coolgray200: string;
|
|
65
|
+
coolgray100: string;
|
|
66
|
+
coolgray50: string;
|
|
67
|
+
navy400: string;
|
|
68
|
+
navy300: string;
|
|
69
|
+
neutral0: string;
|
|
70
|
+
neutral100: string;
|
|
71
|
+
neutral150: string;
|
|
72
|
+
neutral200: string;
|
|
73
|
+
neutral300: string;
|
|
74
|
+
neutral350: string;
|
|
75
|
+
neutral400: string;
|
|
76
|
+
neutral500: string;
|
|
77
|
+
neutral600: string;
|
|
78
|
+
neutral700: string;
|
|
79
|
+
neutral400_5: string;
|
|
80
|
+
red300: string;
|
|
81
|
+
red200: string;
|
|
82
|
+
red100: string;
|
|
83
|
+
ocean300: string;
|
|
84
|
+
ocean200: string;
|
|
85
|
+
ocean100: string;
|
|
86
|
+
purple400: string;
|
|
87
|
+
purple300: string;
|
|
88
|
+
purple100: string;
|
|
89
|
+
yellow300: string;
|
|
90
|
+
yellow200: string;
|
|
91
|
+
yellow100: string;
|
|
92
|
+
green300: string;
|
|
93
|
+
green200: string;
|
|
94
|
+
green100: string;
|
|
95
|
+
shopl400: string;
|
|
96
|
+
shopl300: string;
|
|
97
|
+
shopl200: string;
|
|
98
|
+
shopl150: string;
|
|
99
|
+
shopl100: string;
|
|
100
|
+
hada400: string;
|
|
101
|
+
hada300: string;
|
|
102
|
+
hada200: string;
|
|
103
|
+
hada150: string;
|
|
104
|
+
hada100: string;
|
|
105
|
+
background: string;
|
|
106
|
+
primary100: string;
|
|
107
|
+
primary150: string;
|
|
108
|
+
primary200: string;
|
|
109
|
+
primary300: string;
|
|
110
|
+
primary400: string;
|
|
111
|
+
};
|
|
112
|
+
declare const spacingTokens: {
|
|
113
|
+
spacing04: string;
|
|
114
|
+
spacing06: string;
|
|
115
|
+
spacing08: string;
|
|
116
|
+
spacing12: string;
|
|
117
|
+
spacing16: string;
|
|
118
|
+
spacing20: string;
|
|
119
|
+
spacing24: string;
|
|
120
|
+
spacing30: string;
|
|
121
|
+
spacing32: string;
|
|
122
|
+
spacing40: string;
|
|
123
|
+
};
|
|
124
|
+
declare const boxShadowTokens: {
|
|
125
|
+
dropShadow: string;
|
|
126
|
+
};
|
|
127
|
+
declare const typographyTokens: {
|
|
128
|
+
heading1_700: string;
|
|
129
|
+
heading1_400: string;
|
|
130
|
+
heading2_700: string;
|
|
131
|
+
heading2_400: string;
|
|
132
|
+
heading3_700: string;
|
|
133
|
+
heading3_400: string;
|
|
134
|
+
title1_700: string;
|
|
135
|
+
title1_400: string;
|
|
136
|
+
title2_700: string;
|
|
137
|
+
title2_500: string;
|
|
138
|
+
title2_400: string;
|
|
139
|
+
body1_700: string;
|
|
140
|
+
body1_500: string;
|
|
141
|
+
body1_400: string;
|
|
142
|
+
body2_700: string;
|
|
143
|
+
body2_500: string;
|
|
144
|
+
body2_400: string;
|
|
145
|
+
body3_400: string;
|
|
146
|
+
body3_500: string;
|
|
147
|
+
caption_700: string;
|
|
148
|
+
caption_400: string;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
declare type ColorTokens = keyof typeof colorTokens;
|
|
152
|
+
declare type SpacingTokens = keyof typeof spacingTokens;
|
|
153
|
+
declare type BorderRadiusTokens = keyof typeof borderRadiusTokens;
|
|
154
|
+
declare type BoxShadowTokens = keyof typeof boxShadowTokens;
|
|
155
|
+
declare type FontWeightTokens = keyof typeof fontWeightTokens;
|
|
156
|
+
declare type TypographyTokens = keyof typeof typographyTokens;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* HTML 태그에 대한 타입
|
|
160
|
+
*/
|
|
161
|
+
declare type StringElementType = ElementType;
|
|
162
|
+
declare type HTMLPropsWithoutRef<T extends StringElementType> = ComponentPropsWithoutRef<T>;
|
|
163
|
+
interface DisableProps {
|
|
164
|
+
/**
|
|
165
|
+
* 비활성화 여부를 설정합니다.
|
|
166
|
+
*/
|
|
167
|
+
disabled?: boolean;
|
|
168
|
+
}
|
|
169
|
+
interface ErrorProps {
|
|
170
|
+
/**
|
|
171
|
+
* 에러 여부를 설정합니다.
|
|
172
|
+
*/
|
|
173
|
+
isError?: boolean;
|
|
174
|
+
}
|
|
175
|
+
interface SelectedProps {
|
|
176
|
+
/**
|
|
177
|
+
* 외부에서 선택 여부를 설정합니다. 내부에서 컨트롤할 수 없습니다.
|
|
178
|
+
*/
|
|
179
|
+
isSelected?: boolean;
|
|
180
|
+
}
|
|
181
|
+
interface DefaultSelectedProps {
|
|
182
|
+
/**
|
|
183
|
+
* 초기 선택 값을 설정합니다.
|
|
184
|
+
*/
|
|
185
|
+
defaultSelected?: boolean;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* RadiusBooleanProps는 RadiusProps와 함께 사용할 수 없습니다.
|
|
189
|
+
*/
|
|
190
|
+
interface RadiusBooleanProps {
|
|
191
|
+
/**
|
|
192
|
+
* Radius를 토글할 수 있는 옵션입니다.
|
|
193
|
+
*/
|
|
194
|
+
radius?: boolean;
|
|
195
|
+
}
|
|
196
|
+
declare type RenderConfigProps = {
|
|
197
|
+
/**
|
|
198
|
+
* 랜더하려고 하는 HTML tag로 변환할 수 있습니다.
|
|
199
|
+
*
|
|
200
|
+
* 예를 들어 a tag로 변환한다면 as='a'로 작성해주세요.
|
|
201
|
+
*
|
|
202
|
+
* @see https://emotion.sh/docs/styled#as-prop
|
|
203
|
+
*/
|
|
204
|
+
as?: StringElementType;
|
|
205
|
+
};
|
|
206
|
+
interface SizeVariantProps<Size> {
|
|
207
|
+
/**
|
|
208
|
+
* 컴포넌트의 크기를 설정합니다.
|
|
209
|
+
*/
|
|
210
|
+
sizeVar?: Size;
|
|
211
|
+
}
|
|
212
|
+
interface StyleVariantProps<Style> {
|
|
213
|
+
/**
|
|
214
|
+
* 컴포넌트의 스타일을 설정합니다.
|
|
215
|
+
*/
|
|
216
|
+
styleVar?: Style;
|
|
217
|
+
}
|
|
218
|
+
interface ChildrenProps<Children = React__default.ReactNode> {
|
|
219
|
+
/**
|
|
220
|
+
* 컴포넌트 내부에 들어갈 children을 설정합니다.
|
|
221
|
+
*/
|
|
222
|
+
children?: Children;
|
|
223
|
+
}
|
|
224
|
+
interface TextProps$1 {
|
|
225
|
+
/**
|
|
226
|
+
* 텍스트를 설정합니다.
|
|
227
|
+
*/
|
|
228
|
+
text?: string;
|
|
229
|
+
}
|
|
230
|
+
interface ColorTokenProps {
|
|
231
|
+
/**
|
|
232
|
+
* 텍스트 혹은 아이콘의 색상을 설정합니다.
|
|
233
|
+
* styleVar이 있는 경우 메인색상을 설정합니다.
|
|
234
|
+
*/
|
|
235
|
+
color?: ColorTokens;
|
|
236
|
+
}
|
|
237
|
+
interface BackgroundColorProps {
|
|
238
|
+
/**
|
|
239
|
+
* 배경의 색상을 설정합니다.
|
|
240
|
+
*/
|
|
241
|
+
background?: ColorTokens;
|
|
242
|
+
}
|
|
243
|
+
interface IconSourceProps {
|
|
244
|
+
/**
|
|
245
|
+
* Icon을 설정합니다.
|
|
246
|
+
*/
|
|
247
|
+
iconSource?: IconSource | IconSource$1;
|
|
248
|
+
}
|
|
249
|
+
interface LeftNodeProps {
|
|
250
|
+
/**
|
|
251
|
+
* 텍스트를 기준으로 왼쪽에 위치할 ReactNode를 설정합니다.
|
|
252
|
+
*/
|
|
253
|
+
leftSource?: ReactNode;
|
|
254
|
+
}
|
|
255
|
+
interface RightNodeProps {
|
|
256
|
+
/**
|
|
257
|
+
* 텍스트를 기준으로 오른쪽에 위치할 ReactNode를 설정합니다.
|
|
258
|
+
*/
|
|
259
|
+
rightSource?: ReactNode;
|
|
260
|
+
}
|
|
261
|
+
interface LeftAndRightNodeProps extends RightNodeProps, LeftNodeProps {
|
|
262
|
+
}
|
|
263
|
+
interface LeftElementProps {
|
|
264
|
+
/**
|
|
265
|
+
* 텍스트를 기준으로 왼쪽에 위치할 ReactElement를 설정합니다.
|
|
266
|
+
*/
|
|
267
|
+
leftSource?: ReactElement;
|
|
268
|
+
}
|
|
269
|
+
interface RightElementProps {
|
|
270
|
+
/**
|
|
271
|
+
* 텍스트를 기준으로 오른쪽에 위치할 ReactElement를 설정합니다.
|
|
272
|
+
*/
|
|
273
|
+
rightSource?: ReactElement;
|
|
274
|
+
}
|
|
275
|
+
interface LeftAndRightElementProps extends RightElementProps, LeftElementProps {
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
declare type StackGenericProps<T extends StringElementType = 'div'> = RenderConfigProps & StackProps & HTMLPropsWithoutRef<T>;
|
|
279
|
+
declare type StackComponentType = <T extends StringElementType = 'div'>(props: StackGenericProps<T> & Pick<ComponentPropsWithRef<T>, 'ref'>) => ReactElement | null;
|
|
280
|
+
declare type MotionStackComponentType<T extends StringElementType = 'div'> = CustomDomComponent<RenderConfigProps & HTMLPropsWithoutRef<T> & StackProps>;
|
|
281
|
+
interface StackProps extends StackOptionProps, ChildrenProps {
|
|
282
|
+
}
|
|
283
|
+
interface StackOptionProps {
|
|
284
|
+
/**
|
|
285
|
+
* 요소들의 align-items 값
|
|
286
|
+
*/
|
|
287
|
+
align?: CSSProperties['alignItems'];
|
|
288
|
+
/**
|
|
289
|
+
* 요소들의 justify-content 값
|
|
290
|
+
*/
|
|
291
|
+
justify?: CSSProperties['justifyContent'];
|
|
292
|
+
/**
|
|
293
|
+
* 요소들의 flex-direction 값
|
|
294
|
+
* (값: row, column)
|
|
295
|
+
*/
|
|
296
|
+
direction?: CSSProperties['flexDirection'];
|
|
297
|
+
/**
|
|
298
|
+
* 요소들 사이의 간격
|
|
299
|
+
*/
|
|
300
|
+
spacing?: SpacingTokens;
|
|
301
|
+
/**
|
|
302
|
+
* flex-wrap 설정
|
|
303
|
+
*/
|
|
304
|
+
flexWrap?: CSSProperties['flexWrap'];
|
|
305
|
+
/**
|
|
306
|
+
* width 설정
|
|
307
|
+
*/
|
|
308
|
+
width?: CSSProperties['width'];
|
|
309
|
+
/**
|
|
310
|
+
* height 설정
|
|
311
|
+
*/
|
|
312
|
+
height?: CSSProperties['height'];
|
|
313
|
+
/**
|
|
314
|
+
* flex 설정
|
|
315
|
+
*/
|
|
316
|
+
flex?: CSSProperties['flex'];
|
|
317
|
+
/**
|
|
318
|
+
* background 설정
|
|
319
|
+
*/
|
|
320
|
+
background?: ColorTokens;
|
|
321
|
+
/**
|
|
322
|
+
* border-radius 설정
|
|
323
|
+
*/
|
|
324
|
+
radius?: BorderRadiusTokens;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
interface StackType extends StackComponentType {
|
|
328
|
+
Vertical: StackComponentType;
|
|
329
|
+
Horizontal: StackComponentType;
|
|
330
|
+
}
|
|
331
|
+
declare const Stack: StackType;
|
|
332
|
+
interface MotionStackType extends MotionStackComponentType {
|
|
333
|
+
Vertical: MotionStackComponentType;
|
|
334
|
+
Horizontal: MotionStackComponentType;
|
|
335
|
+
}
|
|
336
|
+
declare const MotionStack: MotionStackType;
|
|
337
|
+
|
|
338
|
+
declare const StyledStack: _emotion_styled.StyledComponent<{
|
|
339
|
+
theme?: _emotion_react.Theme | undefined;
|
|
340
|
+
as?: React$1.ElementType<any> | undefined;
|
|
341
|
+
} & StackOptionProps, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
342
|
+
|
|
343
|
+
interface TextOptionProps {
|
|
344
|
+
/**
|
|
345
|
+
* 타이포그레피를 설정합니다.
|
|
346
|
+
*/
|
|
347
|
+
typography?: TypographyTokens;
|
|
348
|
+
color?: ColorTokens;
|
|
349
|
+
/**
|
|
350
|
+
* 텍스트를 몇 줄까지 보여줄지를 설정합니다.
|
|
351
|
+
*/
|
|
352
|
+
lineClamp?: number;
|
|
353
|
+
whiteSpace?: CSSProperties['whiteSpace'];
|
|
354
|
+
display?: CSSProperties['display'];
|
|
355
|
+
textAlign?: CSSProperties['textAlign'];
|
|
356
|
+
textOverflow?: CSSProperties['textOverflow'];
|
|
357
|
+
textDecorations?: CSSProperties['textDecoration'];
|
|
358
|
+
opacity?: CSSProperties['opacity'];
|
|
359
|
+
wordBreak?: CSSProperties['wordBreak'];
|
|
360
|
+
}
|
|
361
|
+
interface TextProps extends TextOptionProps, ChildrenProps, RenderConfigProps, Omit<HTMLAttributes<HTMLSpanElement>, 'color'> {
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
declare const Text: React$1.ForwardRefExoticComponent<TextProps & React$1.RefAttributes<unknown>>;
|
|
365
|
+
|
|
366
|
+
declare const ModalSize: {
|
|
367
|
+
readonly XXS: "XXS";
|
|
368
|
+
readonly XS: "XS";
|
|
369
|
+
readonly S: "S";
|
|
370
|
+
readonly M: "M";
|
|
371
|
+
readonly L: "L";
|
|
372
|
+
readonly XL: "XL";
|
|
373
|
+
readonly XXL: "XXL";
|
|
374
|
+
};
|
|
375
|
+
declare type ModalSizeType = $Values<typeof ModalSize>;
|
|
376
|
+
interface ModalContainerProps extends ModalContainerOptionProps, SizeVariantProps<ModalSizeType> {
|
|
377
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
378
|
+
}
|
|
379
|
+
interface ModalContainerOptionProps {
|
|
380
|
+
/**
|
|
381
|
+
* 모달의 높이를 설정합니다.
|
|
382
|
+
*/
|
|
383
|
+
height?: number;
|
|
384
|
+
/**
|
|
385
|
+
* 모달의 외부를 클릭했을 때 실행되는 함수입니다.
|
|
386
|
+
* @param args
|
|
387
|
+
*/
|
|
388
|
+
outsideClick?: (args?: any) => void;
|
|
389
|
+
}
|
|
390
|
+
interface ModalHeaderProps extends ModalHeaderOptionProps, ChildrenProps {
|
|
391
|
+
}
|
|
392
|
+
interface ModalHeaderOptionProps {
|
|
393
|
+
}
|
|
394
|
+
declare const MODAL_HEADER_KEY: unique symbol;
|
|
395
|
+
interface ModalHeaderType extends React.FC<ModalHeaderProps> {
|
|
396
|
+
[MODAL_HEADER_KEY]?: boolean;
|
|
397
|
+
}
|
|
398
|
+
interface ModalBodyProps extends ModalBodyOptionProps, ChildrenProps {
|
|
399
|
+
}
|
|
400
|
+
interface ModalBodyOptionProps {
|
|
401
|
+
isIncludeHeader?: boolean;
|
|
402
|
+
isIncludeFooter?: boolean;
|
|
403
|
+
height?: number;
|
|
404
|
+
sizeVar?: ModalSizeType;
|
|
405
|
+
}
|
|
406
|
+
interface ModalFooterProps extends ModalFooterOptionProps, ChildrenProps {
|
|
407
|
+
}
|
|
408
|
+
interface ModalFooterOptionProps {
|
|
409
|
+
}
|
|
410
|
+
declare const MODAL_FOOTER_KEY: unique symbol;
|
|
411
|
+
interface ModalFooterType extends React.FC<ModalBodyProps> {
|
|
412
|
+
[MODAL_FOOTER_KEY]?: boolean;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
declare const Modal: {
|
|
416
|
+
Container: ({ children, outsideClick, ...rest }: ModalContainerProps) => react_jsx_runtime.JSX.Element;
|
|
417
|
+
Header: ModalHeaderType;
|
|
418
|
+
Body: ({ children, isIncludeHeader, isIncludeFooter, sizeVar, height: modalContainerHeight, }: ModalBodyProps) => react_jsx_runtime.JSX.Element;
|
|
419
|
+
Footer: ModalFooterType;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
interface BackDropProps extends ChildrenProps, BackDropOptionProps {
|
|
423
|
+
}
|
|
424
|
+
interface BackDropOptionProps {
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
interface SwitchProps extends SwitchOptionProps, DisableProps, SelectedProps, DefaultSelectedProps, HTMLAttributes<HTMLInputElement> {
|
|
428
|
+
}
|
|
429
|
+
interface SwitchOptionProps {
|
|
430
|
+
activeColor: ColorTokens;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
declare const Switch: ({ onChange, isSelected, disabled, activeColor, defaultSelected, ...rest }: SwitchProps) => react_jsx_runtime.JSX.Element;
|
|
434
|
+
|
|
435
|
+
declare const ChipToggleStyleVariants: {
|
|
436
|
+
readonly SOLID: "SOLID";
|
|
437
|
+
};
|
|
438
|
+
declare const ChipToggleSizeVariants: {
|
|
439
|
+
readonly S: "S";
|
|
440
|
+
readonly XS: "XS";
|
|
441
|
+
};
|
|
442
|
+
declare type ChipToggleStyleVariantType = $Values<typeof ChipToggleStyleVariants>;
|
|
443
|
+
declare type ChipToggleSizeVariantType = $Values<typeof ChipToggleSizeVariants>;
|
|
444
|
+
interface ChipToggleProps extends ChipToggleOptionProps, SelectedProps, DefaultSelectedProps, ColorTokenProps, StyleVariantProps<ChipToggleStyleVariantType>, SizeVariantProps<ChipToggleSizeVariantType>, LeftAndRightElementProps, RadiusBooleanProps, TextProps$1, DisableProps, Omit<HTMLAttributes<HTMLButtonElement>, 'color'> {
|
|
445
|
+
}
|
|
446
|
+
interface ChipToggleOptionProps {
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
declare const ChipToggle: ({ text, isSelected, defaultSelected, color, styleVar, sizeVar, leftSource, rightSource, onClick, disabled, ...rest }: ChipToggleProps) => react_jsx_runtime.JSX.Element;
|
|
450
|
+
|
|
451
|
+
declare const ChipButtonStyleVariants: {
|
|
452
|
+
readonly LINE: "LINE";
|
|
453
|
+
};
|
|
454
|
+
declare const ChipButtonSizeVariants: {
|
|
455
|
+
readonly S: "S";
|
|
456
|
+
readonly XS: "XS";
|
|
457
|
+
};
|
|
458
|
+
declare type ChipButtonStyleVariantType = $Values<typeof ChipButtonStyleVariants>;
|
|
459
|
+
declare type ChipButtonSizeVariantType = $Values<typeof ChipButtonSizeVariants>;
|
|
460
|
+
interface ChipButtonProps extends ChipButtonOptionProps, Omit<HTMLAttributes<HTMLButtonElement>, 'color'>, TextProps$1, DisableProps, LeftAndRightElementProps, SizeVariantProps<ChipButtonSizeVariantType>, StyleVariantProps<ChipButtonStyleVariantType>, ColorTokenProps, BackgroundColorProps {
|
|
461
|
+
}
|
|
462
|
+
interface ChipButtonOptionProps {
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
declare const ChipButton: ({ styleVar, color, sizeVar, text, onClick, disabled, ...rest }: ChipButtonProps) => react_jsx_runtime.JSX.Element;
|
|
466
|
+
|
|
467
|
+
declare type AsProp<T extends React__default.ElementType> = {
|
|
468
|
+
as?: T;
|
|
469
|
+
};
|
|
470
|
+
declare type PolymorphicRef<T extends React__default.ElementType> = React__default.ComponentPropsWithRef<T>['ref'];
|
|
471
|
+
declare type PolymorphicComponentProps<T extends React__default.ElementType, Props = {}> = AsProp<T> & React__default.ComponentPropsWithoutRef<T> & Props & {
|
|
472
|
+
ref?: PolymorphicRef<T>;
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
declare const buttonSizeVar: {
|
|
476
|
+
readonly S: "S";
|
|
477
|
+
readonly M: "M";
|
|
478
|
+
};
|
|
479
|
+
declare type ButtonSizeVar = $Values<typeof buttonSizeVar>;
|
|
480
|
+
declare const buttonStyleVar: {
|
|
481
|
+
readonly PRIMARY: "PRIMARY";
|
|
482
|
+
readonly SECONDARY: "SECONDARY";
|
|
483
|
+
readonly SOLID: "SOLID";
|
|
484
|
+
readonly GHOST: "GHOST";
|
|
485
|
+
};
|
|
486
|
+
declare type ButtonStyleVar = $Values<typeof buttonStyleVar>;
|
|
487
|
+
declare type ButtonOptionProps<T extends ElementType = 'button'> = Omit<ComponentPropsWithoutRef<T>, 'color' | 'disabled'> & SizeVariantProps<ButtonSizeVar> & StyleVariantProps<ButtonStyleVar> & DisableProps & {
|
|
488
|
+
typography?: TypographyTokens;
|
|
489
|
+
};
|
|
490
|
+
declare type ButtonProps<T extends ElementType = 'button'> = PolymorphicComponentProps<T, ButtonOptionProps> & LeftAndRightNodeProps;
|
|
491
|
+
declare type ButtonComponent = <T extends ElementType = 'button'>(props: ButtonProps<T> & {
|
|
492
|
+
ref?: ComponentPropsWithRef<T>['ref'];
|
|
493
|
+
}) => ReactElement | null;
|
|
494
|
+
|
|
495
|
+
declare const Button: ButtonComponent;
|
|
496
|
+
|
|
497
|
+
declare const IconSizeVariants: {
|
|
498
|
+
readonly XS: "XS";
|
|
499
|
+
readonly S: "S";
|
|
500
|
+
readonly M: "M";
|
|
501
|
+
readonly L: "L";
|
|
502
|
+
readonly XL: "XL";
|
|
503
|
+
};
|
|
504
|
+
declare type IconSizeVariantsType = $Values<typeof IconSizeVariants>;
|
|
505
|
+
interface IconProps extends IconOptionProps {
|
|
506
|
+
}
|
|
507
|
+
interface IconOptionProps extends SizeVariantProps<IconSizeVariantsType>, IconSourceProps, ColorTokenProps {
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
declare const Icon: React__default.ForwardRefExoticComponent<IconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
511
|
+
|
|
512
|
+
declare const StyledIcon: _emotion_styled.StyledComponent<{
|
|
513
|
+
theme?: _emotion_react.Theme | undefined;
|
|
514
|
+
as?: React$1.ElementType<any> | undefined;
|
|
515
|
+
} & IconOptionProps, React$1.SVGProps<SVGSVGElement>, {}>;
|
|
516
|
+
|
|
517
|
+
declare const iconButtonSizeVar: {
|
|
518
|
+
readonly S: "S";
|
|
519
|
+
readonly M: "M";
|
|
520
|
+
};
|
|
521
|
+
declare type IconButtonSizeVar = $Values<typeof iconButtonSizeVar>;
|
|
522
|
+
declare const iconButtonStyleVar: {
|
|
523
|
+
readonly SOLID: "SOLID";
|
|
524
|
+
readonly GHOST: "GHOST";
|
|
525
|
+
};
|
|
526
|
+
declare type IconButtonStyleVar = $Values<typeof iconButtonStyleVar>;
|
|
527
|
+
declare type IconButtonOptionProps<T extends ElementType = 'button'> = Omit<ComponentPropsWithoutRef<T>, 'color' | 'disabled'> & DisableProps & SizeVariantProps<IconButtonSizeVar> & StyleVariantProps<IconButtonStyleVar> & IconSourceProps & ColorTokenProps & {
|
|
528
|
+
iconSize?: IconSizeVariantsType;
|
|
529
|
+
};
|
|
530
|
+
declare type IconButtonProps<T extends ElementType = 'button'> = PolymorphicComponentProps<T, IconButtonOptionProps>;
|
|
531
|
+
declare type IconButtonComponent = <T extends ElementType = 'button'>(props: IconButtonProps<T> & {
|
|
532
|
+
ref?: ComponentPropsWithRef<T>['ref'];
|
|
533
|
+
}) => ReactElement | null;
|
|
534
|
+
|
|
535
|
+
declare const IconButton: IconButtonComponent;
|
|
536
|
+
|
|
537
|
+
declare const CalloutTypes: {
|
|
538
|
+
readonly INFORMATION: "INFORMATION";
|
|
539
|
+
readonly ALERT: "ALERT";
|
|
540
|
+
};
|
|
541
|
+
declare type CalloutType = $Values<typeof CalloutTypes>;
|
|
542
|
+
interface CalloutProps extends CalloutOptionProps, ChildrenProps, StyleVariantProps<CalloutType> {
|
|
543
|
+
}
|
|
544
|
+
interface CalloutOptionProps {
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
declare const Callout: {
|
|
548
|
+
({ children, styleVar, ...rest }: CalloutProps): react_jsx_runtime.JSX.Element;
|
|
549
|
+
Text: ({ children, ...rest }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
550
|
+
Icon: ({ iconSource }: IconSourceProps) => react_jsx_runtime.JSX.Element;
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
interface PopperProps extends PopperOptionProps {
|
|
554
|
+
}
|
|
555
|
+
interface PopperOptionProps extends ChildrenProps {
|
|
556
|
+
/**
|
|
557
|
+
* popper의 offset을 설정합니다.
|
|
558
|
+
*
|
|
559
|
+
* Ref: https://floating-ui.com/docs/offset#offset
|
|
560
|
+
*/
|
|
561
|
+
offset?: OffsetOptions;
|
|
562
|
+
/**
|
|
563
|
+
* 화면 뷰에 따라 자동으로 위치를 조정할 수 있습니다.
|
|
564
|
+
* floating ui의 autoPlacement 미들웨어를 사용합니다.
|
|
565
|
+
*
|
|
566
|
+
* Ref: https://floating-ui.com/docs/autoplacement
|
|
567
|
+
*/
|
|
568
|
+
autoPlacement?: AutoPlacementOptions;
|
|
569
|
+
/**
|
|
570
|
+
* popper의 위치를 지정할 수 있습니다.
|
|
571
|
+
*
|
|
572
|
+
* Ref: https://floating-ui.com/docs/arrow#placement
|
|
573
|
+
*/
|
|
574
|
+
placement?: Placement;
|
|
575
|
+
/**
|
|
576
|
+
* popper의 속성을 결정할 수 있습니다.
|
|
577
|
+
*/
|
|
578
|
+
strategy?: 'absolute' | 'fixed';
|
|
579
|
+
/**
|
|
580
|
+
* floating ui의 middleware를 넣을 수 있습니다.
|
|
581
|
+
*
|
|
582
|
+
* Ref: https://floating-ui.com/docs/useFloating#middleware
|
|
583
|
+
*/
|
|
584
|
+
middlewares?: Array<Middleware | null | undefined | false>;
|
|
585
|
+
}
|
|
586
|
+
interface PopperTriggerProps extends ChildrenProps, HTMLAttributes<HTMLDivElement> {
|
|
587
|
+
/**
|
|
588
|
+
* popper가 열려있는지 여부를 결정합니다.
|
|
589
|
+
*/
|
|
590
|
+
isOpen?: boolean;
|
|
591
|
+
width?: string;
|
|
592
|
+
height?: string;
|
|
593
|
+
}
|
|
594
|
+
interface PopperPortalProps extends ChildrenProps, HTMLAttributes<HTMLDivElement> {
|
|
595
|
+
/**
|
|
596
|
+
* animation을 넣을 수 있습니다.
|
|
597
|
+
* framer-motion의 animation을 사용합니다.
|
|
598
|
+
*/
|
|
599
|
+
animation?: {
|
|
600
|
+
initial: Record<string, unknown>;
|
|
601
|
+
animate: Record<string, unknown>;
|
|
602
|
+
exit: Record<string, unknown>;
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
declare const Popper: {
|
|
607
|
+
({ placement, offset: initialOffset, autoPlacement: initialAutoPlacement, strategy, middlewares, children, }: PopperProps): react_jsx_runtime.JSX.Element;
|
|
608
|
+
Trigger: React__default.ForwardRefExoticComponent<PopperTriggerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
609
|
+
Portal: React__default.ForwardRefExoticComponent<PopperPortalProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
610
|
+
};
|
|
611
|
+
declare const PopperTrigger: React__default.ForwardRefExoticComponent<PopperTriggerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
612
|
+
declare const PopperPortal: React__default.ForwardRefExoticComponent<PopperPortalProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
613
|
+
|
|
614
|
+
declare const StyledPopper: _emotion_styled.StyledComponent<{
|
|
615
|
+
theme?: _emotion_react.Theme | undefined;
|
|
616
|
+
as?: React$1.ElementType<any> | undefined;
|
|
617
|
+
} & Pick<PopperTriggerProps, "height" | "width">, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
618
|
+
|
|
619
|
+
declare const dropdownOptionVar: {
|
|
620
|
+
readonly CLICK: "CLICK";
|
|
621
|
+
readonly OUTSIDE_CLICK: "OUTSIDE_CLICK";
|
|
622
|
+
readonly NONE: "NONE";
|
|
623
|
+
};
|
|
624
|
+
declare type DropdownOptionVar = $Values<typeof dropdownOptionVar>;
|
|
625
|
+
interface DropdownProps extends DropdownOptionProps {
|
|
626
|
+
}
|
|
627
|
+
interface DropdownOptionProps {
|
|
628
|
+
/**
|
|
629
|
+
* 외부에서 `isOpen`을 제어할 수 있습니다.
|
|
630
|
+
*/
|
|
631
|
+
isOpen?: boolean;
|
|
632
|
+
content: ReactNode;
|
|
633
|
+
trigger: ReactNode;
|
|
634
|
+
/**
|
|
635
|
+
* 드롭다운이 어떻게 닫힐 수 있는지 옵션을 설정합니다.
|
|
636
|
+
*
|
|
637
|
+
*
|
|
638
|
+
* CLICK: 화면을 클릭하면 닫힙니다.
|
|
639
|
+
* OUTSIDE_CLICK: 컨텐츠 영역 외부를 클릭하면 닫힙니다.
|
|
640
|
+
* NONE: 클릭으로 닫히지 않습니다.
|
|
641
|
+
*/
|
|
642
|
+
option?: DropdownOptionVar;
|
|
643
|
+
}
|
|
644
|
+
interface DropdownContentProps extends ChildrenProps, HTMLAttributes<HTMLDivElement> {
|
|
645
|
+
/**
|
|
646
|
+
* 컨텐츠가 부모 `width`를 따라갈지, 고정될지 결정합니다.
|
|
647
|
+
*/
|
|
648
|
+
type?: 'FILL' | 'FIXED';
|
|
649
|
+
/**
|
|
650
|
+
* 컨텐츠의 `width`를 설정합니다.
|
|
651
|
+
* type이 `FILL`일 경우 무시됩니다.
|
|
652
|
+
*/
|
|
653
|
+
width?: string;
|
|
654
|
+
}
|
|
655
|
+
declare const dropdownSizeVariants: {
|
|
656
|
+
readonly S: "S";
|
|
657
|
+
readonly M: "M";
|
|
658
|
+
};
|
|
659
|
+
declare type DropdownSizeVariantType = $Values<typeof dropdownSizeVariants>;
|
|
660
|
+
interface DropdownButtonProps extends HTMLAttributes<HTMLButtonElement>, DisableProps, LeftElementProps, SizeVariantProps<DropdownSizeVariantType> {
|
|
661
|
+
/**
|
|
662
|
+
* placeholder를 설정합니다.
|
|
663
|
+
*/
|
|
664
|
+
placeholder?: string;
|
|
665
|
+
/**
|
|
666
|
+
* 선택된 값을 노출합니다.
|
|
667
|
+
*/
|
|
668
|
+
value?: string;
|
|
669
|
+
/**
|
|
670
|
+
* width를 설정합니다.
|
|
671
|
+
*/
|
|
672
|
+
width?: string;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
declare const Dropdown: {
|
|
676
|
+
({ isOpen: initialIsOpen, trigger, content, option }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
677
|
+
Button: React__default.ForwardRefExoticComponent<DropdownButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
678
|
+
Content: React__default.ForwardRefExoticComponent<DropdownContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
declare const getDropdownHeightBySizeVar: (size: DropdownSizeVariantType) => "40px" | "32px";
|
|
682
|
+
declare const getDropdownFontSizeBySizeVar: (size: DropdownSizeVariantType) => "body1_400" | "body2_400";
|
|
683
|
+
declare const getDropdownStyleBySizeVar: (size: DropdownSizeVariantType) => _emotion_react.SerializedStyles;
|
|
684
|
+
declare const getDropdownIconSizeBySizeVar: (size: DropdownSizeVariantType) => _emotion_react.SerializedStyles;
|
|
685
|
+
declare const StyledDropdown: _emotion_styled.StyledComponent<{
|
|
686
|
+
theme?: _emotion_react.Theme | undefined;
|
|
687
|
+
as?: React$1.ElementType<any> | undefined;
|
|
688
|
+
}, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
689
|
+
declare const StyledDropdownContent: _emotion_styled.StyledComponent<{
|
|
690
|
+
theme?: _emotion_react.Theme | undefined;
|
|
691
|
+
as?: React$1.ElementType<any> | undefined;
|
|
692
|
+
} & DropdownContentProps, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
693
|
+
declare const StyledDropdownButton: _emotion_styled.StyledComponent<{
|
|
694
|
+
theme?: _emotion_react.Theme | undefined;
|
|
695
|
+
as?: React$1.ElementType<any> | undefined;
|
|
696
|
+
} & DropdownButtonProps, React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
697
|
+
declare const DropdownButtonIcon: _emotion_styled.StyledComponent<{
|
|
698
|
+
slot?: string | undefined;
|
|
699
|
+
title?: string | undefined;
|
|
700
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
701
|
+
className?: string | undefined;
|
|
702
|
+
color?: string | undefined;
|
|
703
|
+
id?: string | undefined;
|
|
704
|
+
lang?: string | undefined;
|
|
705
|
+
role?: React$1.AriaRole | undefined;
|
|
706
|
+
tabIndex?: number | undefined;
|
|
707
|
+
"aria-activedescendant"?: string | undefined;
|
|
708
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
709
|
+
"aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
|
|
710
|
+
"aria-braillelabel"?: string | undefined;
|
|
711
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
712
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
713
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
714
|
+
"aria-colcount"?: number | undefined;
|
|
715
|
+
"aria-colindex"?: number | undefined;
|
|
716
|
+
"aria-colindextext"?: string | undefined;
|
|
717
|
+
"aria-colspan"?: number | undefined;
|
|
718
|
+
"aria-controls"?: string | undefined;
|
|
719
|
+
"aria-current"?: boolean | "time" | "true" | "false" | "step" | "date" | "page" | "location" | undefined;
|
|
720
|
+
"aria-describedby"?: string | undefined;
|
|
721
|
+
"aria-description"?: string | undefined;
|
|
722
|
+
"aria-details"?: string | undefined;
|
|
723
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
724
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
725
|
+
"aria-errormessage"?: string | undefined;
|
|
726
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
727
|
+
"aria-flowto"?: string | undefined;
|
|
728
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
729
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
|
|
730
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
731
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
732
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
733
|
+
"aria-label"?: string | undefined;
|
|
734
|
+
"aria-labelledby"?: string | undefined;
|
|
735
|
+
"aria-level"?: number | undefined;
|
|
736
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
737
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
738
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
739
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
740
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
741
|
+
"aria-owns"?: string | undefined;
|
|
742
|
+
"aria-placeholder"?: string | undefined;
|
|
743
|
+
"aria-posinset"?: number | undefined;
|
|
744
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
745
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
746
|
+
"aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
747
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
748
|
+
"aria-roledescription"?: string | undefined;
|
|
749
|
+
"aria-rowcount"?: number | undefined;
|
|
750
|
+
"aria-rowindex"?: number | undefined;
|
|
751
|
+
"aria-rowindextext"?: string | undefined;
|
|
752
|
+
"aria-rowspan"?: number | undefined;
|
|
753
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
754
|
+
"aria-setsize"?: number | undefined;
|
|
755
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
756
|
+
"aria-valuemax"?: number | undefined;
|
|
757
|
+
"aria-valuemin"?: number | undefined;
|
|
758
|
+
"aria-valuenow"?: number | undefined;
|
|
759
|
+
"aria-valuetext"?: string | undefined;
|
|
760
|
+
dangerouslySetInnerHTML?: {
|
|
761
|
+
__html: string | TrustedHTML;
|
|
762
|
+
} | undefined;
|
|
763
|
+
onCopy?: React$1.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
764
|
+
onCopyCapture?: React$1.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
765
|
+
onCut?: React$1.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
766
|
+
onCutCapture?: React$1.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
767
|
+
onPaste?: React$1.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
768
|
+
onPasteCapture?: React$1.ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
769
|
+
onCompositionEnd?: React$1.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
770
|
+
onCompositionEndCapture?: React$1.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
771
|
+
onCompositionStart?: React$1.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
772
|
+
onCompositionStartCapture?: React$1.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
773
|
+
onCompositionUpdate?: React$1.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
774
|
+
onCompositionUpdateCapture?: React$1.CompositionEventHandler<HTMLDivElement> | undefined;
|
|
775
|
+
onFocus?: React$1.FocusEventHandler<HTMLDivElement> | undefined;
|
|
776
|
+
onFocusCapture?: React$1.FocusEventHandler<HTMLDivElement> | undefined;
|
|
777
|
+
onBlur?: React$1.FocusEventHandler<HTMLDivElement> | undefined;
|
|
778
|
+
onBlurCapture?: React$1.FocusEventHandler<HTMLDivElement> | undefined;
|
|
779
|
+
onChange?: React$1.FormEventHandler<HTMLDivElement> | undefined;
|
|
780
|
+
onChangeCapture?: React$1.FormEventHandler<HTMLDivElement> | undefined;
|
|
781
|
+
onBeforeInput?: React$1.FormEventHandler<HTMLDivElement> | undefined;
|
|
782
|
+
onBeforeInputCapture?: React$1.FormEventHandler<HTMLDivElement> | undefined;
|
|
783
|
+
onInput?: React$1.FormEventHandler<HTMLDivElement> | undefined;
|
|
784
|
+
onInputCapture?: React$1.FormEventHandler<HTMLDivElement> | undefined;
|
|
785
|
+
onReset?: React$1.FormEventHandler<HTMLDivElement> | undefined;
|
|
786
|
+
onResetCapture?: React$1.FormEventHandler<HTMLDivElement> | undefined;
|
|
787
|
+
onSubmit?: React$1.FormEventHandler<HTMLDivElement> | undefined;
|
|
788
|
+
onSubmitCapture?: React$1.FormEventHandler<HTMLDivElement> | undefined;
|
|
789
|
+
onInvalid?: React$1.FormEventHandler<HTMLDivElement> | undefined;
|
|
790
|
+
onInvalidCapture?: React$1.FormEventHandler<HTMLDivElement> | undefined;
|
|
791
|
+
onLoad?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
792
|
+
onLoadCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
793
|
+
onError?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
794
|
+
onErrorCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
795
|
+
onKeyDown?: React$1.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
796
|
+
onKeyDownCapture?: React$1.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
797
|
+
onKeyPress?: React$1.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
798
|
+
onKeyPressCapture?: React$1.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
799
|
+
onKeyUp?: React$1.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
800
|
+
onKeyUpCapture?: React$1.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
801
|
+
onAbort?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
802
|
+
onAbortCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
803
|
+
onCanPlay?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
804
|
+
onCanPlayCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
805
|
+
onCanPlayThrough?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
806
|
+
onCanPlayThroughCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
807
|
+
onDurationChange?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
808
|
+
onDurationChangeCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
809
|
+
onEmptied?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
810
|
+
onEmptiedCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
811
|
+
onEncrypted?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
812
|
+
onEncryptedCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
813
|
+
onEnded?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
814
|
+
onEndedCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
815
|
+
onLoadedData?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
816
|
+
onLoadedDataCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
817
|
+
onLoadedMetadata?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
818
|
+
onLoadedMetadataCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
819
|
+
onLoadStart?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
820
|
+
onLoadStartCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
821
|
+
onPause?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
822
|
+
onPauseCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
823
|
+
onPlay?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
824
|
+
onPlayCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
825
|
+
onPlaying?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
826
|
+
onPlayingCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
827
|
+
onProgress?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
828
|
+
onProgressCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
829
|
+
onRateChange?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
830
|
+
onRateChangeCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
831
|
+
onResize?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
832
|
+
onResizeCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
833
|
+
onSeeked?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
834
|
+
onSeekedCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
835
|
+
onSeeking?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
836
|
+
onSeekingCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
837
|
+
onStalled?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
838
|
+
onStalledCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
839
|
+
onSuspend?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
840
|
+
onSuspendCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
841
|
+
onTimeUpdate?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
842
|
+
onTimeUpdateCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
843
|
+
onVolumeChange?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
844
|
+
onVolumeChangeCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
845
|
+
onWaiting?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
846
|
+
onWaitingCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
847
|
+
onAuxClick?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
848
|
+
onAuxClickCapture?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
849
|
+
onClick?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
850
|
+
onClickCapture?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
851
|
+
onContextMenu?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
852
|
+
onContextMenuCapture?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
853
|
+
onDoubleClick?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
854
|
+
onDoubleClickCapture?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
855
|
+
onDragCapture?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
856
|
+
onDragEndCapture?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
857
|
+
onDragEnter?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
858
|
+
onDragEnterCapture?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
859
|
+
onDragExit?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
860
|
+
onDragExitCapture?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
861
|
+
onDragLeave?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
862
|
+
onDragLeaveCapture?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
863
|
+
onDragOver?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
864
|
+
onDragOverCapture?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
865
|
+
onDragStartCapture?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
866
|
+
onDrop?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
867
|
+
onDropCapture?: React$1.DragEventHandler<HTMLDivElement> | undefined;
|
|
868
|
+
onMouseDown?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
869
|
+
onMouseDownCapture?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
870
|
+
onMouseEnter?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
871
|
+
onMouseLeave?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
872
|
+
onMouseMove?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
873
|
+
onMouseMoveCapture?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
874
|
+
onMouseOut?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
875
|
+
onMouseOutCapture?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
876
|
+
onMouseOver?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
877
|
+
onMouseOverCapture?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
878
|
+
onMouseUp?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
879
|
+
onMouseUpCapture?: React$1.MouseEventHandler<HTMLDivElement> | undefined;
|
|
880
|
+
onSelect?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
881
|
+
onSelectCapture?: React$1.ReactEventHandler<HTMLDivElement> | undefined;
|
|
882
|
+
onTouchCancel?: React$1.TouchEventHandler<HTMLDivElement> | undefined;
|
|
883
|
+
onTouchCancelCapture?: React$1.TouchEventHandler<HTMLDivElement> | undefined;
|
|
884
|
+
onTouchEnd?: React$1.TouchEventHandler<HTMLDivElement> | undefined;
|
|
885
|
+
onTouchEndCapture?: React$1.TouchEventHandler<HTMLDivElement> | undefined;
|
|
886
|
+
onTouchMove?: React$1.TouchEventHandler<HTMLDivElement> | undefined;
|
|
887
|
+
onTouchMoveCapture?: React$1.TouchEventHandler<HTMLDivElement> | undefined;
|
|
888
|
+
onTouchStart?: React$1.TouchEventHandler<HTMLDivElement> | undefined;
|
|
889
|
+
onTouchStartCapture?: React$1.TouchEventHandler<HTMLDivElement> | undefined;
|
|
890
|
+
onPointerDown?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
891
|
+
onPointerDownCapture?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
892
|
+
onPointerMove?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
893
|
+
onPointerMoveCapture?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
894
|
+
onPointerUp?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
895
|
+
onPointerUpCapture?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
896
|
+
onPointerCancel?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
897
|
+
onPointerCancelCapture?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
898
|
+
onPointerEnter?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
899
|
+
onPointerEnterCapture?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
900
|
+
onPointerLeave?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
901
|
+
onPointerLeaveCapture?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
902
|
+
onPointerOver?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
903
|
+
onPointerOverCapture?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
904
|
+
onPointerOut?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
905
|
+
onPointerOutCapture?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
906
|
+
onGotPointerCapture?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
907
|
+
onGotPointerCaptureCapture?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
908
|
+
onLostPointerCapture?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
909
|
+
onLostPointerCaptureCapture?: React$1.PointerEventHandler<HTMLDivElement> | undefined;
|
|
910
|
+
onScroll?: React$1.UIEventHandler<HTMLDivElement> | undefined;
|
|
911
|
+
onScrollCapture?: React$1.UIEventHandler<HTMLDivElement> | undefined;
|
|
912
|
+
onWheel?: React$1.WheelEventHandler<HTMLDivElement> | undefined;
|
|
913
|
+
onWheelCapture?: React$1.WheelEventHandler<HTMLDivElement> | undefined;
|
|
914
|
+
onAnimationStartCapture?: React$1.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
915
|
+
onAnimationEnd?: React$1.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
916
|
+
onAnimationEndCapture?: React$1.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
917
|
+
onAnimationIteration?: React$1.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
918
|
+
onAnimationIterationCapture?: React$1.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
919
|
+
onTransitionEnd?: React$1.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
920
|
+
onTransitionEndCapture?: React$1.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
921
|
+
defaultChecked?: boolean | undefined;
|
|
922
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
923
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
924
|
+
accessKey?: string | undefined;
|
|
925
|
+
autoFocus?: boolean | undefined;
|
|
926
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
927
|
+
contextMenu?: string | undefined;
|
|
928
|
+
dir?: string | undefined;
|
|
929
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
930
|
+
hidden?: boolean | undefined;
|
|
931
|
+
nonce?: string | undefined;
|
|
932
|
+
placeholder?: string | undefined;
|
|
933
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
934
|
+
translate?: "no" | "yes" | undefined;
|
|
935
|
+
radioGroup?: string | undefined;
|
|
936
|
+
about?: string | undefined;
|
|
937
|
+
content?: string | undefined;
|
|
938
|
+
datatype?: string | undefined;
|
|
939
|
+
inlist?: any;
|
|
940
|
+
prefix?: string | undefined;
|
|
941
|
+
property?: string | undefined;
|
|
942
|
+
rel?: string | undefined;
|
|
943
|
+
resource?: string | undefined;
|
|
944
|
+
rev?: string | undefined;
|
|
945
|
+
typeof?: string | undefined;
|
|
946
|
+
vocab?: string | undefined;
|
|
947
|
+
autoCapitalize?: string | undefined;
|
|
948
|
+
autoCorrect?: string | undefined;
|
|
949
|
+
autoSave?: string | undefined;
|
|
950
|
+
itemProp?: string | undefined;
|
|
951
|
+
itemScope?: boolean | undefined;
|
|
952
|
+
itemType?: string | undefined;
|
|
953
|
+
itemID?: string | undefined;
|
|
954
|
+
itemRef?: string | undefined;
|
|
955
|
+
results?: number | undefined;
|
|
956
|
+
security?: string | undefined;
|
|
957
|
+
unselectable?: "on" | "off" | undefined;
|
|
958
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
959
|
+
is?: string | undefined;
|
|
960
|
+
} & framer_motion.MotionProps & React$1.RefAttributes<HTMLDivElement> & {
|
|
961
|
+
theme?: _emotion_react.Theme | undefined;
|
|
962
|
+
} & DropdownButtonProps, {}, {}>;
|
|
963
|
+
|
|
964
|
+
interface TextAreaOptionProps extends DisableProps, ErrorProps {
|
|
965
|
+
width?: string;
|
|
966
|
+
/**
|
|
967
|
+
* maxLength를 설정해요.
|
|
968
|
+
*/
|
|
969
|
+
maxLength?: number;
|
|
970
|
+
/**
|
|
971
|
+
* text area의 높이를 조절해요.
|
|
972
|
+
*/
|
|
973
|
+
height?: number;
|
|
974
|
+
/**
|
|
975
|
+
* text area의 최소 높이를 조절해요.
|
|
976
|
+
*/
|
|
977
|
+
minHeight?: number;
|
|
978
|
+
}
|
|
979
|
+
declare type TextAreaProps = ComponentPropsWithoutRef<'textarea'> & TextAreaOptionProps;
|
|
980
|
+
|
|
981
|
+
declare const TextArea: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & TextAreaOptionProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
982
|
+
|
|
983
|
+
interface MinusBoxProps extends MinusBoxOptionProps, Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'> {
|
|
984
|
+
}
|
|
985
|
+
interface MinusBoxOptionProps {
|
|
986
|
+
/**
|
|
987
|
+
* 요소 클릭시 실행되는 함수
|
|
988
|
+
*/
|
|
989
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
990
|
+
/**
|
|
991
|
+
* 요소의 배경색
|
|
992
|
+
*/
|
|
993
|
+
color?: ColorTokens;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
declare const MinusButton: React__default.ForwardRefExoticComponent<MinusBoxProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
997
|
+
|
|
998
|
+
export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVar, ButtonStyleVar, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, Dropdown, DropdownButtonIcon, DropdownButtonProps, DropdownContentProps, DropdownOptionProps, DropdownOptionVar, DropdownProps, DropdownSizeVariantType, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVar, IconButtonStyleVar, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, MinusBoxOptionProps, MinusBoxProps, MinusButton, Modal, ModalBodyOptionProps, ModalBodyProps, ModalContainerOptionProps, ModalContainerProps, ModalFooterOptionProps, ModalFooterProps, ModalFooterType, ModalHeaderOptionProps, ModalHeaderProps, ModalHeaderType, ModalPortal as ModalProvider, ModalSize, ModalSizeType, MotionStack, MotionStackComponentType, Popper, PopperOptionProps, PopperPortal, PopperPortalProps, PopperProps, PopperTrigger, PopperTriggerProps, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledPopper, StyledStack, Switch, SwitchOptionProps, SwitchProps, Text, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, buttonSizeVar, buttonStyleVar, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, iconButtonSizeVar, iconButtonStyleVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|