@@ -3,30 +3,36 @@ import React from "react";
33import { Collection , ListBox , Popover } from "react-aria-components" ;
44import Scrollbar from "../../scrollbar" ;
55import Item , { IItem } from "./item" ;
6+ import { cn } from "../../../utils" ;
67
7- const DropdownContainer : React . FC < { isOpen ?: boolean ; items : IItem [ ] } > = ( {
8- isOpen,
9- items,
10- } ) => {
8+ const DropdownContainer : React . FC < {
9+ isOpen ?: boolean ;
10+ items : IItem [ ] ;
11+ className ?: string ;
12+ } > = ( { isOpen, items, className } ) => {
1113 return (
1214 < Popover
13- className = { clsx (
15+ className = { cn (
1416 "bg-klerosUIComponentsWhiteBackground rounded-base border-klerosUIComponentsStroke border" ,
1517 "shadow-default focus:outline-klerosUIComponentsPrimaryBlue box-border overflow-hidden outline-none" ,
1618 "origin-top transform transition" ,
1719 isOpen
1820 ? "entering:animate-scale-in scale-y-100"
1921 : "exiting:animate-scale-out scale-y-0" ,
22+ className ,
2023 ) }
2124 >
2225 < Scrollbar className = "max-h-87.5 w-59.5" >
2326 < ListBox
27+ id = "listbox"
2428 className = { clsx (
2529 "bg-klerosUIComponentsWhiteBackground box-border w-59.5" ,
2630 "cols-[repeat(auto-fill,_minmax(0,_45px))] grid grow py-4" ,
2731 ) }
2832 >
29- < Collection items = { items } > { ( item ) => < Item { ...item } /> } </ Collection >
33+ < Collection items = { items } >
34+ { ( item ) => < Item className = "listbox-item" { ...item } /> }
35+ </ Collection >
3036 </ ListBox >
3137 </ Scrollbar >
3238 </ Popover >
0 commit comments