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' ;
2
2
import { Popover as HeadlessPopover } from '@qwik-ui/headless' ;
3
3
import { cn } from '@qwik-ui/utils' ;
4
4
@@ -13,26 +13,13 @@ const Root = component$<PropsOf<typeof HeadlessPopover.Root>>(({ ...props }) =>
13
13
const Trigger = HeadlessPopover . Trigger ;
14
14
15
15
const 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
-
31
16
return (
32
17
< HeadlessPopover . Panel
33
18
{ ...props }
34
19
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' ,
36
23
props . class ,
37
24
) }
38
25
>
You can’t perform that action at this time.
0 commit comments