chore: bump toolchain & fix lint

This commit is contained in:
DarkSky
2026-05-24 06:47:17 +08:00
parent adfa51a372
commit 2aa56cbccd
39 changed files with 151 additions and 130 deletions
@@ -15,17 +15,21 @@ export interface PopoverProps extends PopoverPrimitiveProps {
portalOptions?: PopoverPortalProps;
contentOptions?: PopoverContentProps;
}
const EMPTY_CONTENT_OPTIONS: NonNullable<PopoverProps['contentOptions']> = {};
export const Popover = ({
content,
children,
portalOptions,
contentOptions: {
contentOptions,
...props
}: PopoverProps) => {
const {
className: contentClassName,
style: contentStyle,
...otherContentOptions
} = {},
...props
}: PopoverProps) => {
} = contentOptions ?? EMPTY_CONTENT_OPTIONS;
return (
<PopoverPrimitive.Root {...props}>
<PopoverPrimitive.Trigger asChild>{children}</PopoverPrimitive.Trigger>