diff --git a/packages/wow-ui/src/components/ActionSheet/ActionSheet.stories.tsx b/packages/wow-ui/src/components/ActionSheet/ActionSheet.stories.tsx index f42583ad..9083a26d 100644 --- a/packages/wow-ui/src/components/ActionSheet/ActionSheet.stories.tsx +++ b/packages/wow-ui/src/components/ActionSheet/ActionSheet.stories.tsx @@ -72,16 +72,14 @@ export const Controlled = () => { <> - - + + + - - + + + diff --git a/packages/wow-ui/src/components/ActionSheet/ActionSheetBody.tsx b/packages/wow-ui/src/components/ActionSheet/ActionSheetBody.tsx index 30340bdd..608eef2e 100644 --- a/packages/wow-ui/src/components/ActionSheet/ActionSheetBody.tsx +++ b/packages/wow-ui/src/components/ActionSheet/ActionSheetBody.tsx @@ -1,25 +1,22 @@ "use client"; - -import { styled } from "@styled-system/jsx"; -import type { CSSProperties, PropsWithChildren } from "react"; +import type { FlexProps } from "@styled-system/jsx"; +import { Flex } from "@styled-system/jsx"; +import type { ReactNode } from "react"; /** * @description ActionSheet의 바디 요소를 나타내는 ActionSheetBody 컴포넌트입니다. * * @param {string} children 액션시트의 바디 요소. - * @param {CSSProperties} [style] 액션시트 바디의 커스텀 스타일. - * @param {string} [className] 액션시트 바디에 전달하는 커스텀 클래스. */ -export interface ActionSheetBodyProps extends PropsWithChildren { - style?: CSSProperties; - className?: string; +export interface ActionSheetBodyProps extends FlexProps { + children: ReactNode; } const ActionSheetBody = ({ children, ...rest }: ActionSheetBodyProps) => { return ( - + {children} - + ); }; diff --git a/packages/wow-ui/src/components/ActionSheet/ActionSheetFooter.tsx b/packages/wow-ui/src/components/ActionSheet/ActionSheetFooter.tsx index bd125a52..3f6016fd 100644 --- a/packages/wow-ui/src/components/ActionSheet/ActionSheetFooter.tsx +++ b/packages/wow-ui/src/components/ActionSheet/ActionSheetFooter.tsx @@ -1,25 +1,28 @@ "use client"; -import { styled } from "@styled-system/jsx"; -import type { CSSProperties, PropsWithChildren } from "react"; +import type { FlexProps } from "@styled-system/jsx"; +import { Flex } from "@styled-system/jsx"; +import type { ReactElement } from "react"; + +import type Button from "@/components/Button"; +import type TextButton from "@/components/TextButton"; /** * @description ActionSheet의 푸터 요소를 나타내는 ActionSheetFooter 컴포넌트입니다. * - * @param {children} text 액션시트의 푸터에 들어갈 버튼. - * @param {CSSProperties} [style] 액션시트 푸터의 커스텀 스타일. - * @param {string} [className] 액션시트 푸터에 전달하는 커스텀 클래스. + * @param {children} children 액션시트의 푸터에 들어갈 버튼. */ -export interface ActionSheetFooterProps extends PropsWithChildren { - style?: CSSProperties; - className?: string; +export interface ActionSheetFooterProps extends FlexProps { + children: + | ReactElement + | ReactElement[]; } const ActionSheetFooter = ({ children, ...rest }: ActionSheetFooterProps) => { return ( - + {children} - + ); };