@shoplflow/base 0.11.4 → 0.12.1
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.cts → index.d.mts} +87 -33
- package/dist/index.d.ts +87 -33
- package/dist/index.js +919 -305
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1700 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +17 -21
- package/src/index.ts +6 -0
- package/dist/index.cjs +0 -1755
- package/dist/index.cjs.map +0 -1
- /package/dist/styles/{global.d.cts → global.d.mts} +0 -0
- /package/dist/styles/{reset.d.cts → reset.d.mts} +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode, ElementType, ComponentPropsWithoutRef, ReactElement, ComponentPropsWithRef, CSSProperties, HTMLAttributes, MouseEvent } from 'react';
|
|
4
|
-
import * as zustand from 'zustand';
|
|
5
4
|
import { CustomDomComponent } from 'framer-motion';
|
|
5
|
+
import { IconSource } from '@shoplflow/shopl-assets';
|
|
6
|
+
import { IconSource as IconSource$1 } from '@shoplflow/hada-assets';
|
|
6
7
|
import * as _emotion_styled from '@emotion/styled';
|
|
7
8
|
import * as _emotion_react from '@emotion/react';
|
|
8
9
|
import { $Values } from '@shoplflow/utils';
|
|
@@ -17,10 +18,8 @@ declare const ShoplflowProvider: ({ children, domain }: ShoplflowProviderProps)
|
|
|
17
18
|
|
|
18
19
|
declare const ModalPortal: () => react_jsx_runtime.JSX.Element;
|
|
19
20
|
|
|
20
|
-
declare type
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
declare const useDomain: ({ domain }: UseDomainProps) => void;
|
|
21
|
+
declare type UseDomainType = (domain?: DomainType) => [DomainType | undefined];
|
|
22
|
+
declare const useDomain: UseDomainType;
|
|
24
23
|
declare const getDomain: () => "shopl" | "hada";
|
|
25
24
|
|
|
26
25
|
declare type ModalStateType = {
|
|
@@ -31,12 +30,8 @@ declare type RemoveModalProps = {
|
|
|
31
30
|
id?: string;
|
|
32
31
|
deps?: number;
|
|
33
32
|
};
|
|
34
|
-
declare type
|
|
35
|
-
|
|
36
|
-
addModal: (modal: ReactNode, id?: string) => void;
|
|
37
|
-
removeModal: (props?: RemoveModalProps) => void;
|
|
38
|
-
};
|
|
39
|
-
declare const useModalStore: zustand.UseBoundStore<zustand.StoreApi<UseModalStore>>;
|
|
33
|
+
declare type ModalContext = ModalStateType[];
|
|
34
|
+
declare const ModalContext: React$1.Context<ModalContext>;
|
|
40
35
|
|
|
41
36
|
declare const useHandleModal: () => {
|
|
42
37
|
addModal: (modal: React$1.ReactNode, id?: string | undefined) => void;
|
|
@@ -44,7 +39,7 @@ declare const useHandleModal: () => {
|
|
|
44
39
|
};
|
|
45
40
|
|
|
46
41
|
declare const useModalValue: () => {
|
|
47
|
-
modal:
|
|
42
|
+
modal: ModalContext;
|
|
48
43
|
};
|
|
49
44
|
|
|
50
45
|
declare const fontWeightTokens: {
|
|
@@ -166,17 +161,21 @@ interface DisableProps {
|
|
|
166
161
|
*/
|
|
167
162
|
disabled?: boolean;
|
|
168
163
|
}
|
|
164
|
+
interface ErrorProps {
|
|
165
|
+
/**
|
|
166
|
+
* 에러 여부를 설정합니다.
|
|
167
|
+
*/
|
|
168
|
+
isError?: boolean;
|
|
169
|
+
}
|
|
169
170
|
interface SelectedProps {
|
|
170
171
|
/**
|
|
171
|
-
* 선택 여부를 설정합니다.
|
|
172
|
+
* 외부에서 선택 여부를 설정합니다. 내부에서 컨트롤할 수 없습니다.
|
|
172
173
|
*/
|
|
173
174
|
isSelected?: boolean;
|
|
174
175
|
}
|
|
175
176
|
interface DefaultSelectedProps {
|
|
176
177
|
/**
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
* SelectedProps보다 우선적으로 적용됩니다.
|
|
178
|
+
* 초기 선택 값을 설정합니다.
|
|
180
179
|
*/
|
|
181
180
|
defaultSelected?: boolean;
|
|
182
181
|
}
|
|
@@ -236,6 +235,12 @@ interface BackgroundColorProps {
|
|
|
236
235
|
*/
|
|
237
236
|
background?: ColorTokens;
|
|
238
237
|
}
|
|
238
|
+
interface IconSourceProps {
|
|
239
|
+
/**
|
|
240
|
+
* Icon을 설정합니다.
|
|
241
|
+
*/
|
|
242
|
+
iconSource?: IconSource | IconSource$1;
|
|
243
|
+
}
|
|
239
244
|
interface LeftNodeProps {
|
|
240
245
|
/**
|
|
241
246
|
* 텍스트를 기준으로 왼쪽에 위치할 ReactNode를 설정합니다.
|
|
@@ -353,15 +358,15 @@ interface TextProps extends TextOptionProps, ChildrenProps, RenderConfigProps, O
|
|
|
353
358
|
|
|
354
359
|
declare const Text: React$1.ForwardRefExoticComponent<TextProps & React$1.RefAttributes<unknown>>;
|
|
355
360
|
|
|
356
|
-
declare
|
|
357
|
-
XXS
|
|
358
|
-
XS
|
|
359
|
-
S
|
|
360
|
-
M
|
|
361
|
-
L
|
|
362
|
-
XL
|
|
363
|
-
XXL
|
|
364
|
-
}
|
|
361
|
+
declare const ModalSize: {
|
|
362
|
+
readonly XXS: "XXS";
|
|
363
|
+
readonly XS: "XS";
|
|
364
|
+
readonly S: "S";
|
|
365
|
+
readonly M: "M";
|
|
366
|
+
readonly L: "L";
|
|
367
|
+
readonly XL: "XL";
|
|
368
|
+
readonly XXL: "XXL";
|
|
369
|
+
};
|
|
365
370
|
declare type ModalSizeType = $Values<typeof ModalSize>;
|
|
366
371
|
interface ModalContainerProps extends ModalContainerOptionProps, SizeVariantProps<ModalSizeType> {
|
|
367
372
|
children?: React.ReactNode | React.ReactNode[];
|
|
@@ -414,10 +419,9 @@ interface BackDropProps extends ChildrenProps, BackDropOptionProps {
|
|
|
414
419
|
interface BackDropOptionProps {
|
|
415
420
|
}
|
|
416
421
|
|
|
417
|
-
interface SwitchProps extends SwitchOptionProps, DisableProps, SelectedProps, DefaultSelectedProps,
|
|
422
|
+
interface SwitchProps extends SwitchOptionProps, DisableProps, SelectedProps, DefaultSelectedProps, HTMLAttributes<HTMLInputElement> {
|
|
418
423
|
}
|
|
419
424
|
interface SwitchOptionProps {
|
|
420
|
-
onChange?: () => void;
|
|
421
425
|
activeColor: ColorTokens;
|
|
422
426
|
}
|
|
423
427
|
|
|
@@ -495,11 +499,7 @@ declare const iconButtonStyleVar: {
|
|
|
495
499
|
GHOST: string;
|
|
496
500
|
};
|
|
497
501
|
declare type IconButtonStyleVar = $Values<typeof iconButtonStyleVar>;
|
|
498
|
-
declare type IconButtonOptionProps<T extends ElementType = 'button'> = Omit<ComponentPropsWithoutRef<T>, 'color' | 'disabled'> &
|
|
499
|
-
styleVar?: IconButtonStyleVar;
|
|
500
|
-
sizeVar?: IconButtonSizeVar;
|
|
501
|
-
disabled?: boolean;
|
|
502
|
-
};
|
|
502
|
+
declare type IconButtonOptionProps<T extends ElementType = 'button'> = Omit<ComponentPropsWithoutRef<T>, 'color' | 'disabled'> & DisableProps & SizeVariantProps<IconButtonSizeVar> & StyleVariantProps<IconButtonStyleVar> & IconSourceProps;
|
|
503
503
|
declare type IconButtonProps<T extends ElementType = 'button'> = PolymorphicComponentProps<T, IconButtonOptionProps>;
|
|
504
504
|
declare type IconButtonComponent = <T extends ElementType = 'button'>(props: IconButtonProps<T> & {
|
|
505
505
|
ref?: ComponentPropsWithRef<T>['ref'];
|
|
@@ -507,6 +507,60 @@ declare type IconButtonComponent = <T extends ElementType = 'button'>(props: Ico
|
|
|
507
507
|
|
|
508
508
|
declare const IconButton: IconButtonComponent;
|
|
509
509
|
|
|
510
|
+
declare const CalloutTypes: {
|
|
511
|
+
readonly INFORMATION: "INFORMATION";
|
|
512
|
+
readonly ALERT: "ALERT";
|
|
513
|
+
};
|
|
514
|
+
declare type CalloutType = $Values<typeof CalloutTypes>;
|
|
515
|
+
interface CalloutProps extends CalloutOptionProps, ChildrenProps, StyleVariantProps<CalloutType> {
|
|
516
|
+
}
|
|
517
|
+
interface CalloutOptionProps {
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
declare const Callout: {
|
|
521
|
+
({ children, styleVar, ...rest }: CalloutProps): react_jsx_runtime.JSX.Element;
|
|
522
|
+
Text: ({ children, ...rest }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
523
|
+
Icon: ({ iconSource }: IconSourceProps) => react_jsx_runtime.JSX.Element;
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
declare const IconSizeVariants: {
|
|
527
|
+
readonly X_SMALL: "X_SMALL";
|
|
528
|
+
readonly SMALL: "SMALL";
|
|
529
|
+
readonly MEDIUM: "MEDIUM";
|
|
530
|
+
readonly LARGE: "LARGE";
|
|
531
|
+
readonly X_LARGE: "X_LARGE";
|
|
532
|
+
};
|
|
533
|
+
declare type IconSizeVariantsType = $Values<typeof IconSizeVariants>;
|
|
534
|
+
interface IconProps extends IconOptionProps {
|
|
535
|
+
}
|
|
536
|
+
interface IconOptionProps extends SizeVariantProps<IconSizeVariantsType>, IconSourceProps, ColorTokenProps {
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
declare const Icon: React__default.ForwardRefExoticComponent<IconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
540
|
+
|
|
541
|
+
declare const StyledIcon: _emotion_styled.StyledComponent<{
|
|
542
|
+
theme?: _emotion_react.Theme | undefined;
|
|
543
|
+
as?: React$1.ElementType<any> | undefined;
|
|
544
|
+
} & IconOptionProps, React$1.SVGProps<SVGSVGElement>, {}>;
|
|
545
|
+
|
|
546
|
+
interface TextAreaOptionProps extends DisableProps, ErrorProps {
|
|
547
|
+
/**
|
|
548
|
+
* maxLength를 설정해요.
|
|
549
|
+
*/
|
|
550
|
+
maxLength?: number;
|
|
551
|
+
/**
|
|
552
|
+
* text area의 높이를 조절해요.
|
|
553
|
+
*/
|
|
554
|
+
height?: number;
|
|
555
|
+
/**
|
|
556
|
+
* text area의 최소 높이를 조절해요.
|
|
557
|
+
*/
|
|
558
|
+
minHeight?: number;
|
|
559
|
+
}
|
|
560
|
+
declare type TextAreaProps = ComponentPropsWithoutRef<'textarea'> & TextAreaOptionProps;
|
|
561
|
+
|
|
562
|
+
declare const TextArea: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & TextAreaOptionProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
563
|
+
|
|
510
564
|
interface MinusBoxProps extends MinusBoxOptionProps, Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'> {
|
|
511
565
|
}
|
|
512
566
|
interface MinusBoxOptionProps {
|
|
@@ -522,4 +576,4 @@ interface MinusBoxOptionProps {
|
|
|
522
576
|
|
|
523
577
|
declare const MinusButton: React__default.ForwardRefExoticComponent<MinusBoxProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
524
578
|
|
|
525
|
-
export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVar, ButtonStyleVar, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, FontWeightTokens, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVar, IconButtonStyleVar, 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,
|
|
579
|
+
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, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledIcon, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode, ElementType, ComponentPropsWithoutRef, ReactElement, ComponentPropsWithRef, CSSProperties, HTMLAttributes, MouseEvent } from 'react';
|
|
4
|
-
import * as zustand from 'zustand';
|
|
5
4
|
import { CustomDomComponent } from 'framer-motion';
|
|
5
|
+
import { IconSource } from '@shoplflow/shopl-assets';
|
|
6
|
+
import { IconSource as IconSource$1 } from '@shoplflow/hada-assets';
|
|
6
7
|
import * as _emotion_styled from '@emotion/styled';
|
|
7
8
|
import * as _emotion_react from '@emotion/react';
|
|
8
9
|
import { $Values } from '@shoplflow/utils';
|
|
@@ -17,10 +18,8 @@ declare const ShoplflowProvider: ({ children, domain }: ShoplflowProviderProps)
|
|
|
17
18
|
|
|
18
19
|
declare const ModalPortal: () => react_jsx_runtime.JSX.Element;
|
|
19
20
|
|
|
20
|
-
declare type
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
declare const useDomain: ({ domain }: UseDomainProps) => void;
|
|
21
|
+
declare type UseDomainType = (domain?: DomainType) => [DomainType | undefined];
|
|
22
|
+
declare const useDomain: UseDomainType;
|
|
24
23
|
declare const getDomain: () => "shopl" | "hada";
|
|
25
24
|
|
|
26
25
|
declare type ModalStateType = {
|
|
@@ -31,12 +30,8 @@ declare type RemoveModalProps = {
|
|
|
31
30
|
id?: string;
|
|
32
31
|
deps?: number;
|
|
33
32
|
};
|
|
34
|
-
declare type
|
|
35
|
-
|
|
36
|
-
addModal: (modal: ReactNode, id?: string) => void;
|
|
37
|
-
removeModal: (props?: RemoveModalProps) => void;
|
|
38
|
-
};
|
|
39
|
-
declare const useModalStore: zustand.UseBoundStore<zustand.StoreApi<UseModalStore>>;
|
|
33
|
+
declare type ModalContext = ModalStateType[];
|
|
34
|
+
declare const ModalContext: React$1.Context<ModalContext>;
|
|
40
35
|
|
|
41
36
|
declare const useHandleModal: () => {
|
|
42
37
|
addModal: (modal: React$1.ReactNode, id?: string | undefined) => void;
|
|
@@ -44,7 +39,7 @@ declare const useHandleModal: () => {
|
|
|
44
39
|
};
|
|
45
40
|
|
|
46
41
|
declare const useModalValue: () => {
|
|
47
|
-
modal:
|
|
42
|
+
modal: ModalContext;
|
|
48
43
|
};
|
|
49
44
|
|
|
50
45
|
declare const fontWeightTokens: {
|
|
@@ -166,17 +161,21 @@ interface DisableProps {
|
|
|
166
161
|
*/
|
|
167
162
|
disabled?: boolean;
|
|
168
163
|
}
|
|
164
|
+
interface ErrorProps {
|
|
165
|
+
/**
|
|
166
|
+
* 에러 여부를 설정합니다.
|
|
167
|
+
*/
|
|
168
|
+
isError?: boolean;
|
|
169
|
+
}
|
|
169
170
|
interface SelectedProps {
|
|
170
171
|
/**
|
|
171
|
-
* 선택 여부를 설정합니다.
|
|
172
|
+
* 외부에서 선택 여부를 설정합니다. 내부에서 컨트롤할 수 없습니다.
|
|
172
173
|
*/
|
|
173
174
|
isSelected?: boolean;
|
|
174
175
|
}
|
|
175
176
|
interface DefaultSelectedProps {
|
|
176
177
|
/**
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
* SelectedProps보다 우선적으로 적용됩니다.
|
|
178
|
+
* 초기 선택 값을 설정합니다.
|
|
180
179
|
*/
|
|
181
180
|
defaultSelected?: boolean;
|
|
182
181
|
}
|
|
@@ -236,6 +235,12 @@ interface BackgroundColorProps {
|
|
|
236
235
|
*/
|
|
237
236
|
background?: ColorTokens;
|
|
238
237
|
}
|
|
238
|
+
interface IconSourceProps {
|
|
239
|
+
/**
|
|
240
|
+
* Icon을 설정합니다.
|
|
241
|
+
*/
|
|
242
|
+
iconSource?: IconSource | IconSource$1;
|
|
243
|
+
}
|
|
239
244
|
interface LeftNodeProps {
|
|
240
245
|
/**
|
|
241
246
|
* 텍스트를 기준으로 왼쪽에 위치할 ReactNode를 설정합니다.
|
|
@@ -353,15 +358,15 @@ interface TextProps extends TextOptionProps, ChildrenProps, RenderConfigProps, O
|
|
|
353
358
|
|
|
354
359
|
declare const Text: React$1.ForwardRefExoticComponent<TextProps & React$1.RefAttributes<unknown>>;
|
|
355
360
|
|
|
356
|
-
declare
|
|
357
|
-
XXS
|
|
358
|
-
XS
|
|
359
|
-
S
|
|
360
|
-
M
|
|
361
|
-
L
|
|
362
|
-
XL
|
|
363
|
-
XXL
|
|
364
|
-
}
|
|
361
|
+
declare const ModalSize: {
|
|
362
|
+
readonly XXS: "XXS";
|
|
363
|
+
readonly XS: "XS";
|
|
364
|
+
readonly S: "S";
|
|
365
|
+
readonly M: "M";
|
|
366
|
+
readonly L: "L";
|
|
367
|
+
readonly XL: "XL";
|
|
368
|
+
readonly XXL: "XXL";
|
|
369
|
+
};
|
|
365
370
|
declare type ModalSizeType = $Values<typeof ModalSize>;
|
|
366
371
|
interface ModalContainerProps extends ModalContainerOptionProps, SizeVariantProps<ModalSizeType> {
|
|
367
372
|
children?: React.ReactNode | React.ReactNode[];
|
|
@@ -414,10 +419,9 @@ interface BackDropProps extends ChildrenProps, BackDropOptionProps {
|
|
|
414
419
|
interface BackDropOptionProps {
|
|
415
420
|
}
|
|
416
421
|
|
|
417
|
-
interface SwitchProps extends SwitchOptionProps, DisableProps, SelectedProps, DefaultSelectedProps,
|
|
422
|
+
interface SwitchProps extends SwitchOptionProps, DisableProps, SelectedProps, DefaultSelectedProps, HTMLAttributes<HTMLInputElement> {
|
|
418
423
|
}
|
|
419
424
|
interface SwitchOptionProps {
|
|
420
|
-
onChange?: () => void;
|
|
421
425
|
activeColor: ColorTokens;
|
|
422
426
|
}
|
|
423
427
|
|
|
@@ -495,11 +499,7 @@ declare const iconButtonStyleVar: {
|
|
|
495
499
|
GHOST: string;
|
|
496
500
|
};
|
|
497
501
|
declare type IconButtonStyleVar = $Values<typeof iconButtonStyleVar>;
|
|
498
|
-
declare type IconButtonOptionProps<T extends ElementType = 'button'> = Omit<ComponentPropsWithoutRef<T>, 'color' | 'disabled'> &
|
|
499
|
-
styleVar?: IconButtonStyleVar;
|
|
500
|
-
sizeVar?: IconButtonSizeVar;
|
|
501
|
-
disabled?: boolean;
|
|
502
|
-
};
|
|
502
|
+
declare type IconButtonOptionProps<T extends ElementType = 'button'> = Omit<ComponentPropsWithoutRef<T>, 'color' | 'disabled'> & DisableProps & SizeVariantProps<IconButtonSizeVar> & StyleVariantProps<IconButtonStyleVar> & IconSourceProps;
|
|
503
503
|
declare type IconButtonProps<T extends ElementType = 'button'> = PolymorphicComponentProps<T, IconButtonOptionProps>;
|
|
504
504
|
declare type IconButtonComponent = <T extends ElementType = 'button'>(props: IconButtonProps<T> & {
|
|
505
505
|
ref?: ComponentPropsWithRef<T>['ref'];
|
|
@@ -507,6 +507,60 @@ declare type IconButtonComponent = <T extends ElementType = 'button'>(props: Ico
|
|
|
507
507
|
|
|
508
508
|
declare const IconButton: IconButtonComponent;
|
|
509
509
|
|
|
510
|
+
declare const CalloutTypes: {
|
|
511
|
+
readonly INFORMATION: "INFORMATION";
|
|
512
|
+
readonly ALERT: "ALERT";
|
|
513
|
+
};
|
|
514
|
+
declare type CalloutType = $Values<typeof CalloutTypes>;
|
|
515
|
+
interface CalloutProps extends CalloutOptionProps, ChildrenProps, StyleVariantProps<CalloutType> {
|
|
516
|
+
}
|
|
517
|
+
interface CalloutOptionProps {
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
declare const Callout: {
|
|
521
|
+
({ children, styleVar, ...rest }: CalloutProps): react_jsx_runtime.JSX.Element;
|
|
522
|
+
Text: ({ children, ...rest }: TextProps) => react_jsx_runtime.JSX.Element;
|
|
523
|
+
Icon: ({ iconSource }: IconSourceProps) => react_jsx_runtime.JSX.Element;
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
declare const IconSizeVariants: {
|
|
527
|
+
readonly X_SMALL: "X_SMALL";
|
|
528
|
+
readonly SMALL: "SMALL";
|
|
529
|
+
readonly MEDIUM: "MEDIUM";
|
|
530
|
+
readonly LARGE: "LARGE";
|
|
531
|
+
readonly X_LARGE: "X_LARGE";
|
|
532
|
+
};
|
|
533
|
+
declare type IconSizeVariantsType = $Values<typeof IconSizeVariants>;
|
|
534
|
+
interface IconProps extends IconOptionProps {
|
|
535
|
+
}
|
|
536
|
+
interface IconOptionProps extends SizeVariantProps<IconSizeVariantsType>, IconSourceProps, ColorTokenProps {
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
declare const Icon: React__default.ForwardRefExoticComponent<IconProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
540
|
+
|
|
541
|
+
declare const StyledIcon: _emotion_styled.StyledComponent<{
|
|
542
|
+
theme?: _emotion_react.Theme | undefined;
|
|
543
|
+
as?: React$1.ElementType<any> | undefined;
|
|
544
|
+
} & IconOptionProps, React$1.SVGProps<SVGSVGElement>, {}>;
|
|
545
|
+
|
|
546
|
+
interface TextAreaOptionProps extends DisableProps, ErrorProps {
|
|
547
|
+
/**
|
|
548
|
+
* maxLength를 설정해요.
|
|
549
|
+
*/
|
|
550
|
+
maxLength?: number;
|
|
551
|
+
/**
|
|
552
|
+
* text area의 높이를 조절해요.
|
|
553
|
+
*/
|
|
554
|
+
height?: number;
|
|
555
|
+
/**
|
|
556
|
+
* text area의 최소 높이를 조절해요.
|
|
557
|
+
*/
|
|
558
|
+
minHeight?: number;
|
|
559
|
+
}
|
|
560
|
+
declare type TextAreaProps = ComponentPropsWithoutRef<'textarea'> & TextAreaOptionProps;
|
|
561
|
+
|
|
562
|
+
declare const TextArea: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & TextAreaOptionProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
563
|
+
|
|
510
564
|
interface MinusBoxProps extends MinusBoxOptionProps, Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'> {
|
|
511
565
|
}
|
|
512
566
|
interface MinusBoxOptionProps {
|
|
@@ -522,4 +576,4 @@ interface MinusBoxOptionProps {
|
|
|
522
576
|
|
|
523
577
|
declare const MinusButton: React__default.ForwardRefExoticComponent<MinusBoxProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
524
578
|
|
|
525
|
-
export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVar, ButtonStyleVar, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, FontWeightTokens, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVar, IconButtonStyleVar, 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,
|
|
579
|
+
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, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledIcon, 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 };
|