@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.d.mts DELETED
@@ -1,647 +0,0 @@
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 { CustomDomComponent } from 'framer-motion';
5
- import { IconSource } from '@shoplflow/shopl-assets';
6
- import { IconSource as IconSource$1 } from '@shoplflow/hada-assets';
7
- import * as _emotion_styled from '@emotion/styled';
8
- import * as _emotion_react from '@emotion/react';
9
- import { $Values } from '@shoplflow/utils';
10
- import { Middleware } from '@floating-ui/react-dom';
11
- import { AutoPlacementOptions, Placement } from '@floating-ui/react';
12
- import { OffsetOptions } from '@floating-ui/core';
13
-
14
- declare type DomainType = 'SHOPL' | 'HADA';
15
-
16
- interface ShoplflowProviderProps {
17
- domain?: DomainType;
18
- children: React__default.ReactNode;
19
- }
20
- declare const ShoplflowProvider: ({ children, domain }: ShoplflowProviderProps) => react_jsx_runtime.JSX.Element;
21
-
22
- declare const ModalPortal: () => react_jsx_runtime.JSX.Element;
23
-
24
- declare type UseDomainType = (domain?: DomainType) => [DomainType | undefined];
25
- declare const useDomain: UseDomainType;
26
- declare const getDomain: () => "shopl" | "hada";
27
-
28
- declare type ModalStateType = {
29
- component: ReactNode;
30
- id?: string;
31
- };
32
- declare type RemoveModalProps = {
33
- id?: string;
34
- deps?: number;
35
- };
36
- declare type ModalContext = ModalStateType[];
37
- declare const ModalContext: React$1.Context<ModalContext>;
38
-
39
- declare const useHandleModal: () => {
40
- addModal: (modal: React$1.ReactNode, id?: string | undefined) => void;
41
- removeModal: (props?: RemoveModalProps | undefined) => void;
42
- };
43
-
44
- declare const useModalValue: () => {
45
- modal: ModalContext;
46
- };
47
-
48
- declare const fontWeightTokens: {
49
- fontWeightRegular: string;
50
- fontWeightMedium: string;
51
- fontWeightBold: string;
52
- };
53
- declare const borderRadiusTokens: {
54
- borderRadius04: string;
55
- borderRadius06: string;
56
- borderRadius08: string;
57
- borderRadius12: string;
58
- borderRadius16: string;
59
- borderRadius20: string;
60
- };
61
- declare const colorTokens: {
62
- coolgray300: string;
63
- coolgray200: string;
64
- coolgray100: string;
65
- coolgray50: string;
66
- navy400: string;
67
- navy300: string;
68
- neutral0: string;
69
- neutral100: string;
70
- neutral150: string;
71
- neutral200: string;
72
- neutral300: string;
73
- neutral350: string;
74
- neutral400: string;
75
- neutral500: string;
76
- neutral600: string;
77
- neutral700: string;
78
- neutral400_5: string;
79
- red300: string;
80
- red200: string;
81
- red100: string;
82
- ocean300: string;
83
- ocean200: string;
84
- ocean100: string;
85
- purple400: string;
86
- purple300: string;
87
- purple100: string;
88
- yellow300: string;
89
- yellow200: string;
90
- yellow100: string;
91
- green300: string;
92
- green200: string;
93
- green100: string;
94
- shopl400: string;
95
- shopl300: string;
96
- shopl200: string;
97
- shopl150: string;
98
- shopl100: string;
99
- hada400: string;
100
- hada300: string;
101
- hada200: string;
102
- hada150: string;
103
- hada100: string;
104
- background: string;
105
- primary100: string;
106
- primary150: string;
107
- primary200: string;
108
- primary300: string;
109
- primary400: string;
110
- };
111
- declare const spacingTokens: {
112
- spacing04: string;
113
- spacing06: string;
114
- spacing08: string;
115
- spacing12: string;
116
- spacing16: string;
117
- spacing20: string;
118
- spacing24: string;
119
- spacing30: string;
120
- spacing32: string;
121
- spacing40: string;
122
- };
123
- declare const boxShadowTokens: {
124
- dropShadow: string;
125
- };
126
- declare const typographyTokens: {
127
- heading1_700: string;
128
- heading1_400: string;
129
- heading2_700: string;
130
- heading2_400: string;
131
- heading3_700: string;
132
- heading3_400: string;
133
- title1_700: string;
134
- title1_400: string;
135
- title2_700: string;
136
- title2_500: string;
137
- title2_400: string;
138
- body1_700: string;
139
- body1_500: string;
140
- body1_400: string;
141
- body2_700: string;
142
- body2_500: string;
143
- body2_400: string;
144
- body3_400: string;
145
- body3_500: string;
146
- caption_700: string;
147
- caption_400: string;
148
- };
149
-
150
- declare type ColorTokens = keyof typeof colorTokens;
151
- declare type SpacingTokens = keyof typeof spacingTokens;
152
- declare type BorderRadiusTokens = keyof typeof borderRadiusTokens;
153
- declare type BoxShadowTokens = keyof typeof boxShadowTokens;
154
- declare type FontWeightTokens = keyof typeof fontWeightTokens;
155
- declare type TypographyTokens = keyof typeof typographyTokens;
156
-
157
- /**
158
- * HTML 태그에 대한 타입
159
- */
160
- declare type StringElementType = ElementType;
161
- declare type HTMLPropsWithoutRef<T extends StringElementType> = ComponentPropsWithoutRef<T>;
162
- interface DisableProps {
163
- /**
164
- * 비활성화 여부를 설정합니다.
165
- */
166
- disabled?: boolean;
167
- }
168
- interface ErrorProps {
169
- /**
170
- * 에러 여부를 설정합니다.
171
- */
172
- isError?: boolean;
173
- }
174
- interface SelectedProps {
175
- /**
176
- * 외부에서 선택 여부를 설정합니다. 내부에서 컨트롤할 수 없습니다.
177
- */
178
- isSelected?: boolean;
179
- }
180
- interface DefaultSelectedProps {
181
- /**
182
- * 초기 선택 값을 설정합니다.
183
- */
184
- defaultSelected?: boolean;
185
- }
186
- /**
187
- * RadiusBooleanProps는 RadiusProps와 함께 사용할 수 없습니다.
188
- */
189
- interface RadiusBooleanProps {
190
- /**
191
- * Radius를 토글할 수 있는 옵션입니다.
192
- */
193
- radius?: boolean;
194
- }
195
- declare type RenderConfigProps = {
196
- /**
197
- * 랜더하려고 하는 HTML tag로 변환할 수 있습니다.
198
- *
199
- * 예를 들어 a tag로 변환한다면 as='a'로 작성해주세요.
200
- *
201
- * @see https://emotion.sh/docs/styled#as-prop
202
- */
203
- as?: StringElementType;
204
- };
205
- interface SizeVariantProps<Size> {
206
- /**
207
- * 컴포넌트의 크기를 설정합니다.
208
- */
209
- sizeVar?: Size;
210
- }
211
- interface StyleVariantProps<Style> {
212
- /**
213
- * 컴포넌트의 스타일을 설정합니다.
214
- */
215
- styleVar?: Style;
216
- }
217
- interface ChildrenProps<Children = React__default.ReactNode> {
218
- /**
219
- * 컴포넌트 내부에 들어갈 children을 설정합니다.
220
- */
221
- children?: Children;
222
- }
223
- interface TextProps$1 {
224
- /**
225
- * 텍스트를 설정합니다.
226
- */
227
- text?: string;
228
- }
229
- interface ColorTokenProps {
230
- /**
231
- * 텍스트 혹은 아이콘의 색상을 설정합니다.
232
- * styleVar이 있는 경우 메인색상을 설정합니다.
233
- */
234
- color?: ColorTokens;
235
- }
236
- interface BackgroundColorProps {
237
- /**
238
- * 배경의 색상을 설정합니다.
239
- */
240
- background?: ColorTokens;
241
- }
242
- interface IconSourceProps {
243
- /**
244
- * Icon을 설정합니다.
245
- */
246
- iconSource?: IconSource | IconSource$1;
247
- }
248
- interface LeftNodeProps {
249
- /**
250
- * 텍스트를 기준으로 왼쪽에 위치할 ReactNode를 설정합니다.
251
- */
252
- leftSource?: ReactNode;
253
- }
254
- interface RightNodeProps {
255
- /**
256
- * 텍스트를 기준으로 오른쪽에 위치할 ReactNode를 설정합니다.
257
- */
258
- rightSource?: ReactNode;
259
- }
260
- interface LeftAndRightNodeProps extends RightNodeProps, LeftNodeProps {
261
- }
262
- interface LeftElementProps {
263
- /**
264
- * 텍스트를 기준으로 왼쪽에 위치할 ReactElement를 설정합니다.
265
- */
266
- leftSource?: ReactElement;
267
- }
268
- interface RightElementProps {
269
- /**
270
- * 텍스트를 기준으로 오른쪽에 위치할 ReactElement를 설정합니다.
271
- */
272
- rightSource?: ReactElement;
273
- }
274
- interface LeftAndRightElementProps extends RightElementProps, LeftElementProps {
275
- }
276
-
277
- declare type StackGenericProps<T extends StringElementType = 'div'> = RenderConfigProps & StackProps & HTMLPropsWithoutRef<T>;
278
- declare type StackComponentType = <T extends StringElementType = 'div'>(props: StackGenericProps<T> & Pick<ComponentPropsWithRef<T>, 'ref'>) => ReactElement | null;
279
- declare type MotionStackComponentType<T extends StringElementType = 'div'> = CustomDomComponent<RenderConfigProps & HTMLPropsWithoutRef<T> & StackProps>;
280
- interface StackProps extends StackOptionProps, ChildrenProps {
281
- }
282
- interface StackOptionProps {
283
- /**
284
- * 요소들의 align-items 값
285
- */
286
- align?: CSSProperties['alignItems'];
287
- /**
288
- * 요소들의 justify-content 값
289
- */
290
- justify?: CSSProperties['justifyContent'];
291
- /**
292
- * 요소들의 flex-direction 값
293
- * (값: row, column)
294
- */
295
- direction?: CSSProperties['flexDirection'];
296
- /**
297
- * 요소들 사이의 간격
298
- */
299
- spacing?: SpacingTokens;
300
- /**
301
- * flex-wrap 설정
302
- */
303
- flexWrap?: CSSProperties['flexWrap'];
304
- /**
305
- * width 설정
306
- */
307
- width?: CSSProperties['width'];
308
- /**
309
- * height 설정
310
- */
311
- height?: CSSProperties['height'];
312
- /**
313
- * flex 설정
314
- */
315
- flex?: CSSProperties['flex'];
316
- /**
317
- * background 설정
318
- */
319
- background?: ColorTokens;
320
- /**
321
- * border-radius 설정
322
- */
323
- radius?: BorderRadiusTokens;
324
- }
325
-
326
- interface StackType extends StackComponentType {
327
- Vertical: StackComponentType;
328
- Horizontal: StackComponentType;
329
- }
330
- declare const Stack: StackType;
331
- interface MotionStackType extends MotionStackComponentType {
332
- Vertical: MotionStackComponentType;
333
- Horizontal: MotionStackComponentType;
334
- }
335
- declare const MotionStack: MotionStackType;
336
-
337
- declare const StyledStack: _emotion_styled.StyledComponent<{
338
- theme?: _emotion_react.Theme | undefined;
339
- as?: React$1.ElementType<any> | undefined;
340
- } & StackOptionProps, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
341
-
342
- interface TextOptionProps {
343
- /**
344
- * 타이포그레피를 설정합니다.
345
- */
346
- typography?: TypographyTokens;
347
- color?: ColorTokens;
348
- /**
349
- * 텍스트를 몇 줄까지 보여줄지를 설정합니다.
350
- */
351
- lineClamp?: number;
352
- whiteSpace?: CSSProperties['whiteSpace'];
353
- display?: CSSProperties['display'];
354
- textAlign?: CSSProperties['textAlign'];
355
- textOverflow?: CSSProperties['textOverflow'];
356
- textDecorations?: CSSProperties['textDecoration'];
357
- opacity?: CSSProperties['opacity'];
358
- wordBreak?: CSSProperties['wordBreak'];
359
- }
360
- interface TextProps extends TextOptionProps, ChildrenProps, RenderConfigProps, Omit<HTMLAttributes<HTMLSpanElement>, 'color'> {
361
- }
362
-
363
- declare const Text: React$1.ForwardRefExoticComponent<TextProps & React$1.RefAttributes<unknown>>;
364
-
365
- declare const ModalSize: {
366
- readonly XXS: "XXS";
367
- readonly XS: "XS";
368
- readonly S: "S";
369
- readonly M: "M";
370
- readonly L: "L";
371
- readonly XL: "XL";
372
- readonly XXL: "XXL";
373
- };
374
- declare type ModalSizeType = $Values<typeof ModalSize>;
375
- interface ModalContainerProps extends ModalContainerOptionProps, SizeVariantProps<ModalSizeType> {
376
- children?: React.ReactNode | React.ReactNode[];
377
- }
378
- interface ModalContainerOptionProps {
379
- /**
380
- * 모달의 높이를 설정합니다.
381
- */
382
- height?: number;
383
- /**
384
- * 모달의 외부를 클릭했을 때 실행되는 함수입니다.
385
- * @param args
386
- */
387
- outsideClick?: (args?: any) => void;
388
- }
389
- interface ModalHeaderProps extends ModalHeaderOptionProps, ChildrenProps {
390
- }
391
- interface ModalHeaderOptionProps {
392
- }
393
- declare const MODAL_HEADER_KEY: unique symbol;
394
- interface ModalHeaderType extends React.FC<ModalHeaderProps> {
395
- [MODAL_HEADER_KEY]?: boolean;
396
- }
397
- interface ModalBodyProps extends ModalBodyOptionProps, ChildrenProps {
398
- }
399
- interface ModalBodyOptionProps {
400
- isIncludeHeader?: boolean;
401
- isIncludeFooter?: boolean;
402
- height?: number;
403
- sizeVar?: ModalSizeType;
404
- }
405
- interface ModalFooterProps extends ModalFooterOptionProps, ChildrenProps {
406
- }
407
- interface ModalFooterOptionProps {
408
- }
409
- declare const MODAL_FOOTER_KEY: unique symbol;
410
- interface ModalFooterType extends React.FC<ModalBodyProps> {
411
- [MODAL_FOOTER_KEY]?: boolean;
412
- }
413
-
414
- declare const Modal: {
415
- Container: ({ children, outsideClick, ...rest }: ModalContainerProps) => react_jsx_runtime.JSX.Element;
416
- Header: ModalHeaderType;
417
- Body: ({ children, isIncludeHeader, isIncludeFooter, sizeVar, height: modalContainerHeight, }: ModalBodyProps) => react_jsx_runtime.JSX.Element;
418
- Footer: ModalFooterType;
419
- };
420
-
421
- interface BackDropProps extends ChildrenProps, BackDropOptionProps {
422
- }
423
- interface BackDropOptionProps {
424
- }
425
-
426
- interface SwitchProps extends SwitchOptionProps, DisableProps, SelectedProps, DefaultSelectedProps, HTMLAttributes<HTMLInputElement> {
427
- }
428
- interface SwitchOptionProps {
429
- activeColor: ColorTokens;
430
- }
431
-
432
- declare const Switch: ({ onChange, isSelected, disabled, activeColor, defaultSelected, ...rest }: SwitchProps) => react_jsx_runtime.JSX.Element;
433
-
434
- declare const ChipToggleStyleVariants: {
435
- readonly SOLID: "SOLID";
436
- };
437
- declare const ChipToggleSizeVariants: {
438
- readonly S: "S";
439
- readonly XS: "XS";
440
- };
441
- declare type ChipToggleStyleVariantType = $Values<typeof ChipToggleStyleVariants>;
442
- declare type ChipToggleSizeVariantType = $Values<typeof ChipToggleSizeVariants>;
443
- interface ChipToggleProps extends ChipToggleOptionProps, SelectedProps, DefaultSelectedProps, ColorTokenProps, StyleVariantProps<ChipToggleStyleVariantType>, SizeVariantProps<ChipToggleSizeVariantType>, LeftAndRightElementProps, RadiusBooleanProps, TextProps$1, DisableProps, Omit<HTMLAttributes<HTMLButtonElement>, 'color'> {
444
- }
445
- interface ChipToggleOptionProps {
446
- }
447
-
448
- declare const ChipToggle: ({ text, isSelected, defaultSelected, color, styleVar, sizeVar, leftSource, rightSource, onClick, disabled, ...rest }: ChipToggleProps) => react_jsx_runtime.JSX.Element;
449
-
450
- declare const ChipButtonStyleVariants: {
451
- readonly LINE: "LINE";
452
- };
453
- declare const ChipButtonSizeVariants: {
454
- readonly S: "S";
455
- readonly XS: "XS";
456
- };
457
- declare type ChipButtonStyleVariantType = $Values<typeof ChipButtonStyleVariants>;
458
- declare type ChipButtonSizeVariantType = $Values<typeof ChipButtonSizeVariants>;
459
- interface ChipButtonProps extends ChipButtonOptionProps, Omit<HTMLAttributes<HTMLButtonElement>, 'color'>, TextProps$1, DisableProps, LeftAndRightElementProps, SizeVariantProps<ChipButtonSizeVariantType>, StyleVariantProps<ChipButtonStyleVariantType>, ColorTokenProps, BackgroundColorProps {
460
- }
461
- interface ChipButtonOptionProps {
462
- }
463
-
464
- declare const ChipButton: ({ styleVar, color, sizeVar, text, onClick, disabled, ...rest }: ChipButtonProps) => react_jsx_runtime.JSX.Element;
465
-
466
- declare type AsProp<T extends React__default.ElementType> = {
467
- as?: T;
468
- };
469
- declare type PolymorphicRef<T extends React__default.ElementType> = React__default.ComponentPropsWithRef<T>['ref'];
470
- declare type PolymorphicComponentProps<T extends React__default.ElementType, Props = {}> = AsProp<T> & React__default.ComponentPropsWithoutRef<T> & Props & {
471
- ref?: PolymorphicRef<T>;
472
- };
473
-
474
- declare const buttonSizeVar: {
475
- readonly S: "S";
476
- readonly M: "M";
477
- };
478
- declare type ButtonSizeVar = $Values<typeof buttonSizeVar>;
479
- declare const buttonStyleVar: {
480
- readonly PRIMARY: "PRIMARY";
481
- readonly SECONDARY: "SECONDARY";
482
- readonly SOLID: "SOLID";
483
- readonly GHOST: "GHOST";
484
- };
485
- declare type ButtonStyleVar = $Values<typeof buttonStyleVar>;
486
- declare type ButtonOptionProps<T extends ElementType = 'button'> = Omit<ComponentPropsWithoutRef<T>, 'color' | 'disabled'> & SizeVariantProps<ButtonSizeVar> & StyleVariantProps<ButtonStyleVar> & DisableProps & {
487
- typography?: TypographyTokens;
488
- };
489
- declare type ButtonProps<T extends ElementType = 'button'> = PolymorphicComponentProps<T, ButtonOptionProps> & LeftAndRightNodeProps;
490
- declare type ButtonComponent = <T extends ElementType = 'button'>(props: ButtonProps<T> & {
491
- ref?: ComponentPropsWithRef<T>['ref'];
492
- }) => ReactElement | null;
493
-
494
- declare const Button: ButtonComponent;
495
-
496
- declare const iconButtonSizeVar: {
497
- readonly S: "S";
498
- readonly M: "M";
499
- };
500
- declare type IconButtonSizeVar = $Values<typeof iconButtonSizeVar>;
501
- declare const iconButtonStyleVar: {
502
- readonly SOLID: "SOLID";
503
- readonly GHOST: "GHOST";
504
- };
505
- declare type IconButtonStyleVar = $Values<typeof iconButtonStyleVar>;
506
- declare type IconButtonOptionProps<T extends ElementType = 'button'> = Omit<ComponentPropsWithoutRef<T>, 'color' | 'disabled'> & DisableProps & SizeVariantProps<IconButtonSizeVar> & StyleVariantProps<IconButtonStyleVar> & IconSourceProps;
507
- declare type IconButtonProps<T extends ElementType = 'button'> = PolymorphicComponentProps<T, IconButtonOptionProps>;
508
- declare type IconButtonComponent = <T extends ElementType = 'button'>(props: IconButtonProps<T> & {
509
- ref?: ComponentPropsWithRef<T>['ref'];
510
- }) => ReactElement | null;
511
-
512
- declare const IconButton: IconButtonComponent;
513
-
514
- declare const CalloutTypes: {
515
- readonly INFORMATION: "INFORMATION";
516
- readonly ALERT: "ALERT";
517
- };
518
- declare type CalloutType = $Values<typeof CalloutTypes>;
519
- interface CalloutProps extends CalloutOptionProps, ChildrenProps, StyleVariantProps<CalloutType> {
520
- }
521
- interface CalloutOptionProps {
522
- }
523
-
524
- declare const Callout: {
525
- ({ children, styleVar, ...rest }: CalloutProps): react_jsx_runtime.JSX.Element;
526
- Text: ({ children, ...rest }: TextProps) => react_jsx_runtime.JSX.Element;
527
- Icon: ({ iconSource }: IconSourceProps) => react_jsx_runtime.JSX.Element;
528
- };
529
-
530
- interface PopperProps extends PopperOptionProps {
531
- }
532
- interface PopperOptionProps {
533
- width?: string;
534
- height?: string;
535
- /**
536
- * popper의 offset을 설정합니다.
537
- *
538
- * Ref: https://floating-ui.com/docs/offset#offset
539
- */
540
- offset?: OffsetOptions;
541
- /**
542
- * popper가 열려있는지 여부를 결정합니다.
543
- */
544
- isOpen?: boolean;
545
- /**
546
- * 화면 뷰에 따라 자동으로 위치를 조정할 수 있습니다.
547
- * floating ui의 autoPlacement 미들웨어를 사용합니다.
548
- *
549
- * Ref: https://floating-ui.com/docs/autoplacement
550
- */
551
- autoPlacement?: AutoPlacementOptions;
552
- /**
553
- * popper의 위치를 지정할 수 있습니다.
554
- *
555
- * Ref: https://floating-ui.com/docs/arrow#placement
556
- */
557
- placement?: Placement;
558
- /**
559
- * popper의 속성을 결정할 수 있습니다.
560
- */
561
- strategy?: 'absolute' | 'fixed';
562
- /**
563
- * floating ui의 middleware를 넣을 수 있습니다.
564
- *
565
- * Ref: https://floating-ui.com/docs/useFloating#middleware
566
- */
567
- middlewares?: Array<Middleware | null | undefined | false>;
568
- /**
569
- * floating ui의 animation을 넣을 수 있습니다.
570
- * framer-motion의 animation을 사용합니다.
571
- */
572
- animation?: {
573
- initial: Record<string, unknown>;
574
- animate: Record<string, unknown>;
575
- exit: Record<string, unknown>;
576
- };
577
- /**
578
- * trigger할 요소를 설정합니다.
579
- */
580
- trigger: ReactNode;
581
- /**
582
- * pop할 요소를 설정합니다.
583
- */
584
- popper: ReactNode;
585
- }
586
-
587
- declare const Popper: ({ trigger, popper, isOpen, placement, offset: initialOffset, autoPlacement: initialAutoPlacement, strategy, middlewares, animation: initialAnimation, ...rest }: PopperProps) => react_jsx_runtime.JSX.Element;
588
-
589
- declare const StyledPopper: _emotion_styled.StyledComponent<{
590
- theme?: _emotion_react.Theme | undefined;
591
- as?: React$1.ElementType<any> | undefined;
592
- } & Pick<PopperOptionProps, "height" | "width">, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
593
-
594
- declare const IconSizeVariants: {
595
- readonly X_SMALL: "X_SMALL";
596
- readonly SMALL: "SMALL";
597
- readonly MEDIUM: "MEDIUM";
598
- readonly LARGE: "LARGE";
599
- readonly X_LARGE: "X_LARGE";
600
- };
601
- declare type IconSizeVariantsType = $Values<typeof IconSizeVariants>;
602
- interface IconProps extends IconOptionProps {
603
- }
604
- interface IconOptionProps extends SizeVariantProps<IconSizeVariantsType>, IconSourceProps, ColorTokenProps {
605
- }
606
-
607
- declare const Icon: React__default.ForwardRefExoticComponent<IconProps & React__default.RefAttributes<SVGSVGElement>>;
608
-
609
- declare const StyledIcon: _emotion_styled.StyledComponent<{
610
- theme?: _emotion_react.Theme | undefined;
611
- as?: React$1.ElementType<any> | undefined;
612
- } & IconOptionProps, React$1.SVGProps<SVGSVGElement>, {}>;
613
-
614
- interface TextAreaOptionProps extends DisableProps, ErrorProps {
615
- /**
616
- * maxLength를 설정해요.
617
- */
618
- maxLength?: number;
619
- /**
620
- * text area의 높이를 조절해요.
621
- */
622
- height?: number;
623
- /**
624
- * text area의 최소 높이를 조절해요.
625
- */
626
- minHeight?: number;
627
- }
628
- declare type TextAreaProps = ComponentPropsWithoutRef<'textarea'> & TextAreaOptionProps;
629
-
630
- declare const TextArea: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & TextAreaOptionProps & React__default.RefAttributes<HTMLTextAreaElement>>;
631
-
632
- interface MinusBoxProps extends MinusBoxOptionProps, Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'> {
633
- }
634
- interface MinusBoxOptionProps {
635
- /**
636
- * 요소 클릭시 실행되는 함수
637
- */
638
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
639
- /**
640
- * 요소의 배경색
641
- */
642
- color?: ColorTokens;
643
- }
644
-
645
- declare const MinusButton: React__default.ForwardRefExoticComponent<MinusBoxProps & React__default.RefAttributes<HTMLButtonElement>>;
646
-
647
- 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, 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, PopperProps, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledIcon, StyledPopper, StyledStack, Switch, SwitchOptionProps, SwitchProps, Text, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, buttonSizeVar, buttonStyleVar, colorTokens, fontWeightTokens, getDomain, iconButtonSizeVar, iconButtonStyleVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };