diff --git a/packages/ui-react/lib/Carousel/Carousel.tsx b/packages/ui-react/lib/Carousel/Carousel.tsx index 208fdb8..ad531da 100644 --- a/packages/ui-react/lib/Carousel/Carousel.tsx +++ b/packages/ui-react/lib/Carousel/Carousel.tsx @@ -36,6 +36,10 @@ export interface CarouselProps extends HtmlHTMLAttributes { * className */ className?: string; + /** + * itemClassName?: + */ + itemClassName?: string; } interface ContentProps { @@ -53,6 +57,7 @@ export const Carousel = React.forwardRef( selected, isSliding = true, className, + itemClassName, ...rest }, ref, @@ -159,6 +164,7 @@ export const Carousel = React.forwardRef( key={index} width={item.width || width} height={item.height || height} + className={itemClassName} > {item.children} diff --git a/packages/ui-react/lib/Carousel/CarouselItem.tsx b/packages/ui-react/lib/Carousel/CarouselItem.tsx index c44de6b..8375f0a 100644 --- a/packages/ui-react/lib/Carousel/CarouselItem.tsx +++ b/packages/ui-react/lib/Carousel/CarouselItem.tsx @@ -14,15 +14,19 @@ export interface CarouselItemProps { * height of the CarouselItem */ height?: number; + /** + * className + */ + className?: string; } export const CarouselItem = React.forwardRef( - ({ children, width, height }, ref) => { + ({ children, width, height, className }, ref) => { return ( <>
{children} diff --git a/packages/ui-react/lib/Dialog/Dialog.module.scss b/packages/ui-react/lib/Dialog/Dialog.module.scss index 81118ca..c399f38 100644 --- a/packages/ui-react/lib/Dialog/Dialog.module.scss +++ b/packages/ui-react/lib/Dialog/Dialog.module.scss @@ -45,7 +45,7 @@ width: 100%; left: 0; top: 0; - position: absolute; + position: fixed; &.mask { background-color: rgb($black-color, var(--opacity-background)); backdrop-filter: blur(var(--blur)); diff --git a/packages/ui-react/package.json b/packages/ui-react/package.json index 58e8e49..ff53dea 100644 --- a/packages/ui-react/package.json +++ b/packages/ui-react/package.json @@ -1,6 +1,6 @@ { "name": "@ui-aurora/react", - "version": "0.0.10", + "version": "0.0.11", "description": "A React UI library built for SASTOJ", "author": "sast", "license": "MIT",