From 4bdf2d6c1d61fa09555f50d45a87c191de1dfa6d Mon Sep 17 00:00:00 2001 From: healtheloper Date: Wed, 13 Dec 2023 16:04:34 +0900 Subject: [PATCH] =?UTF-8?q?component=20export=20=EA=B4=80=EB=A0=A8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=ED=96=88=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/co-design-core/src/components/Badge/Badge.tsx | 2 ++ packages/co-design-core/src/components/Badge/Shield.tsx | 2 ++ .../co-design-core/src/components/Progress2/Progress2.tsx | 6 +++--- .../src/components/RingProgress2/RingProgress2.tsx | 6 +++--- .../co-design-core/src/components/RingProgress2/index.ts | 2 +- packages/co-design-core/src/components/index.ts | 6 ++++++ 6 files changed, 17 insertions(+), 7 deletions(-) diff --git a/packages/co-design-core/src/components/Badge/Badge.tsx b/packages/co-design-core/src/components/Badge/Badge.tsx index 2a1f1c4..1442916 100644 --- a/packages/co-design-core/src/components/Badge/Badge.tsx +++ b/packages/co-design-core/src/components/Badge/Badge.tsx @@ -87,4 +87,6 @@ const Badge: BadgeComponent & { displayName?: string } = forwardRef( }, ); +Badge.displayName = '@co-design/core/Badge'; + export default Badge; diff --git a/packages/co-design-core/src/components/Badge/Shield.tsx b/packages/co-design-core/src/components/Badge/Shield.tsx index e011dd4..245eebb 100644 --- a/packages/co-design-core/src/components/Badge/Shield.tsx +++ b/packages/co-design-core/src/components/Badge/Shield.tsx @@ -65,4 +65,6 @@ const ShieldBadge: ShieldBadgeComponent & { displayName?: string } = forwardRef( }, ); +ShieldBadge.displayName = '@co-design/core/ShieldBadge'; + export default ShieldBadge; diff --git a/packages/co-design-core/src/components/Progress2/Progress2.tsx b/packages/co-design-core/src/components/Progress2/Progress2.tsx index edcc82c..f502a57 100644 --- a/packages/co-design-core/src/components/Progress2/Progress2.tsx +++ b/packages/co-design-core/src/components/Progress2/Progress2.tsx @@ -8,7 +8,7 @@ import { Stack } from '../Stack'; export type ProgressStylesNames = ClassNames; -export interface ProgressProps extends CoComponentProps, React.ComponentPropsWithoutRef<'div'> { +export interface Progress2Props extends CoComponentProps, React.ComponentPropsWithoutRef<'div'> { /** ProgressBar가 채워지는 %를 정합니다. (0 ~ 100) */ value?: number; @@ -31,7 +31,7 @@ export interface ProgressProps extends CoComponentProps, Re showPercent?: boolean; } -export const Progress2 = forwardRef( +export const Progress2 = forwardRef( ( { value, @@ -44,7 +44,7 @@ export const Progress2 = forwardRef( className, overrideStyles, ...props - }: ProgressProps, + }: Progress2Props, ref, ) => { const { classes, cx, theme } = useStyles({ color, size, radius, labelPosition }, { overrideStyles, name: 'Progress' }); diff --git a/packages/co-design-core/src/components/RingProgress2/RingProgress2.tsx b/packages/co-design-core/src/components/RingProgress2/RingProgress2.tsx index 35d2fb0..8d7d52f 100644 --- a/packages/co-design-core/src/components/RingProgress2/RingProgress2.tsx +++ b/packages/co-design-core/src/components/RingProgress2/RingProgress2.tsx @@ -10,7 +10,7 @@ import { Text } from '../Text'; export type RingProgressStylesNames = ClassNames; -export interface RingProgressProps extends CoComponentProps, React.ComponentPropsWithoutRef<'div'> { +export interface RingProgress2Props extends CoComponentProps, React.ComponentPropsWithoutRef<'div'> { /** Curve가 채워지는 %를 정합니다. (0 ~ 100) */ value: number; @@ -37,7 +37,7 @@ export interface RingProgressProps extends CoComponentProps( +export const RingProgress2 = forwardRef( ( { value, @@ -52,7 +52,7 @@ export const RingProgress2 = forwardRef( style, overrideStyles, ...props - }: RingProgressProps, + }: RingProgress2Props, ref, ) => { const { classes, cx, theme } = useStyles({ size: _size }, { overrideStyles, name: 'RingProgress' }); diff --git a/packages/co-design-core/src/components/RingProgress2/index.ts b/packages/co-design-core/src/components/RingProgress2/index.ts index e779577..36b8d8a 100644 --- a/packages/co-design-core/src/components/RingProgress2/index.ts +++ b/packages/co-design-core/src/components/RingProgress2/index.ts @@ -1,2 +1,2 @@ export { RingProgress2 } from './RingProgress2'; -export type { RingProgressProps } from './RingProgress2'; +export type { RingProgress2Props } from './RingProgress2'; diff --git a/packages/co-design-core/src/components/index.ts b/packages/co-design-core/src/components/index.ts index fb7fa5c..cf98ea4 100644 --- a/packages/co-design-core/src/components/index.ts +++ b/packages/co-design-core/src/components/index.ts @@ -3,6 +3,7 @@ export * from './Anchor'; export * from './AppShell'; export * from './AspectRatio'; export * from './Avatar'; +export * from './Badge'; export * from './Breadcrumbs'; export * from './Burger'; export * from './Button'; @@ -28,6 +29,7 @@ export * from './MediaQuery'; export * from './Menu'; export * from './Modal'; export * from './NativeSelect'; +export * from './NumberBox'; export * from './Overlay'; export * from './Pagination'; export * from './PanelStack'; @@ -35,10 +37,14 @@ export * from './Paper'; export * from './Popover'; export * from './Portal'; export * from './Progress'; +export * from './Progress2'; export * from './Radio'; export * from './RingProgress'; +export * from './RingProgress2'; +export * from './Select'; export * from './Spinner'; export * from './Stack'; +export * from './Stepper'; export * from './Switch'; export * from './Tabs'; export * from './Tag';