File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed
packages/kit-styled/src/components/popover Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change 1- import { PropsOf , Slot , component$ , useStyles$ } from '@builder.io/qwik' ;
1+ import { PropsOf , Slot , component$ } from '@builder.io/qwik' ;
22import { Popover as HeadlessPopover } from '@qwik-ui/headless' ;
33import { cn } from '@qwik-ui/utils' ;
44
@@ -13,26 +13,13 @@ const Root = component$<PropsOf<typeof HeadlessPopover.Root>>(({ ...props }) =>
1313const Trigger = HeadlessPopover . Trigger ;
1414
1515const Panel = component$ < PropsOf < typeof HeadlessPopover . Panel > > ( ( { ...props } ) => {
16- useStyles$ ( `
17- .my-transition {
18- transition: opacity 150ms, display 150ms, overlay 150ms;
19- transition-behavior: allow-discrete;
20- }
21-
22- .popover-showing {
23- opacity: 1;
24- }
25-
26- .popover-closing {
27- opacity: 0;
28- }
29- ` ) ;
30-
3116 return (
3217 < HeadlessPopover . Panel
3318 { ...props }
3419 class = { cn (
35- 'my-transition w-72 rounded-md border bg-popover p-4 text-popover-foreground opacity-0 shadow-md outline-none' ,
20+ 'my-transition w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none' ,
21+ 'data-[open]:animate-in data-[closing]:animate-out data-[closing]:fade-out data-[open]:fade-in data-[closing]:zoom-out-95 data-[open]:zoom-in-95' ,
22+ 'data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2' ,
3623 props . class ,
3724 ) }
3825 >
You can’t perform that action at this time.
0 commit comments