Skip to content

Commit

Permalink
npm publish (0.0.280)
Browse files Browse the repository at this point in the history
  • Loading branch information
baegofda committed Dec 7, 2024
1 parent bd27ca2 commit 9290b6d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bbodek-ui",
"version": "0.0.277",
"version": "0.0.280",
"type": "module",
"author": "Bbodek",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/BottomSheet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const BottomSheet = forwardRef(
>
<div
className={clsx(
'animate-bottom-sheet overflow-y-hidden p-4',
'animate-bottom-sheet overflow-y-hidden px-4 pt-4',
BOTTOM_SHEET_ROUNDED_VARIANTS_MAPPER[rounded],
className,
)}
Expand Down
7 changes: 3 additions & 4 deletions src/core/components/Modal/ModalBase/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ export const VARIANTS = {
} as const;

export const MODAL_CONTENT_POSITION: Record<VariantsType, string> = {
[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;
Expand All @@ -21,6 +20,6 @@ export const MODAL_DIMMED_COLOR: Record<VariantsType, string> = {

export const MODAL_CONTENT_SIZE: Record<VariantsType, string> = {
[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;
2 changes: 1 addition & 1 deletion src/core/components/Modal/ModalBase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ const ModalBase = forwardRef(
{cloneElement(_children, {
ref: contentRef,
className: clsx(
MODAL_CONTENT_SIZE[variants],
_children.props.className,
MODAL_CONTENT_SIZE[variants],
),
})}
</dialog>
Expand Down
4 changes: 0 additions & 4 deletions src/core/components/Modal/ModalPopUp/index.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -23,8 +21,6 @@ const ModalPopUp = forwardRef(
) => {
const { target, className, ...rest } = props;

useBlockScrollingEffect(isOpen);

return (
<ModalBase
target={target ?? 'portal'}
Expand Down
6 changes: 6 additions & 0 deletions src/styles/bbodek-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@
padding-bottom: calc(env(safe-area-inset-bottom));
}

.safe-area-bottom-pb {
padding-bottom: 1rem;
padding-bottom: calc(constant(safe-area-inset-bottom + 1rem));
padding-bottom: calc(env(safe-area-inset-bottom + 1rem));
}

.safe-area-y {
@apply safe-area-top safe-area-bottom;
}
Expand Down

0 comments on commit 9290b6d

Please sign in to comment.