From 9290b6dc0063e8b1e81f44604248387df1939c41 Mon Sep 17 00:00:00 2001 From: baegofda Date: Sun, 8 Dec 2024 00:02:12 +0900 Subject: [PATCH] npm publish (0.0.280) --- package.json | 2 +- src/core/components/BottomSheet/index.tsx | 2 +- src/core/components/Modal/ModalBase/constants/index.ts | 7 +++---- src/core/components/Modal/ModalBase/index.tsx | 2 +- src/core/components/Modal/ModalPopUp/index.tsx | 4 ---- src/styles/bbodek-theme.css | 6 ++++++ 6 files changed, 12 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 604d15a..99b55bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bbodek-ui", - "version": "0.0.277", + "version": "0.0.280", "type": "module", "author": "Bbodek", "license": "MIT", diff --git a/src/core/components/BottomSheet/index.tsx b/src/core/components/BottomSheet/index.tsx index f510612..0a8f8b4 100644 --- a/src/core/components/BottomSheet/index.tsx +++ b/src/core/components/BottomSheet/index.tsx @@ -38,7 +38,7 @@ const BottomSheet = forwardRef( >
= { - [VARIANTS.MODAL]: - 'fixed flex items-center justify-center z-50 safe-area-bottom', + [VARIANTS.MODAL]: 'fixed flex items-center justify-center z-50', [VARIANTS.DRAWER]: 'flex justify-end z-40', [VARIANTS.BOTTOM_SHEET]: 'fixed flex justify-center items-end z-50', } as const; @@ -21,6 +20,6 @@ export const MODAL_DIMMED_COLOR: Record = { export const MODAL_CONTENT_SIZE: Record = { [VARIANTS.MODAL]: 'h-auto', - [VARIANTS.DRAWER]: 'h-full safe-area-bottom', - [VARIANTS.BOTTOM_SHEET]: 'h-auto safe-area-bottom bg-white', + [VARIANTS.DRAWER]: 'h-full', + [VARIANTS.BOTTOM_SHEET]: 'h-auto safe-area-bottom-pb bg-white', } as const; diff --git a/src/core/components/Modal/ModalBase/index.tsx b/src/core/components/Modal/ModalBase/index.tsx index 451fef4..aada19d 100644 --- a/src/core/components/Modal/ModalBase/index.tsx +++ b/src/core/components/Modal/ModalBase/index.tsx @@ -67,8 +67,8 @@ const ModalBase = forwardRef( {cloneElement(_children, { ref: contentRef, className: clsx( - MODAL_CONTENT_SIZE[variants], _children.props.className, + MODAL_CONTENT_SIZE[variants], ), })} diff --git a/src/core/components/Modal/ModalPopUp/index.tsx b/src/core/components/Modal/ModalPopUp/index.tsx index b35ec75..289c733 100644 --- a/src/core/components/Modal/ModalPopUp/index.tsx +++ b/src/core/components/Modal/ModalPopUp/index.tsx @@ -1,7 +1,5 @@ import clsx from 'clsx'; import { forwardRef, PropsWithChildren } from 'react'; - -import { useBlockScrollingEffect } from '@/hooks/effects/useBlockScrollingEffect'; import Section from '../../Section'; import ModalBase from '../ModalBase'; import { VARIANTS } from '../ModalBase/constants'; @@ -23,8 +21,6 @@ const ModalPopUp = forwardRef( ) => { const { target, className, ...rest } = props; - useBlockScrollingEffect(isOpen); - return (