File tree Expand file tree Collapse file tree 8 files changed +20
-22
lines changed Expand file tree Collapse file tree 8 files changed +20
-22
lines changed Original file line number Diff line number Diff line change 18
18
on:click
19
19
on:mousedown
20
20
on:mouseup
21
- transition:fade ={fadeParams }
21
+ transition:fade | local ={fadeParams }
22
22
class:blur
23
23
use:portalAction ={{ enabled : portal }}
24
24
>
Original file line number Diff line number Diff line change 98
98
$$props .class
99
99
)}
100
100
style ={$$props .style }
101
- transition:scale ={{ duration : 150 , easing : quadIn }}
101
+ transition:scale | local ={{ duration : 150 , easing : quadIn }}
102
102
on:introstart
103
103
on:outrostart
104
104
on:introend
Original file line number Diff line number Diff line change 56
56
$$props .class
57
57
)}
58
58
style ={$$props .style }
59
- transition:fly ={{
59
+ transition:fly | local ={{
60
60
x : left ? ' -100%' : right ? ' 100%' : 0 ,
61
61
y : top ? ' -100%' : bottom ? ' 100%' : 0 ,
62
62
}}
Original file line number Diff line number Diff line change 67
67
// Do not allow event to reach Popover's on:mouseup (clickOutside)
68
68
e .stopPropagation ();
69
69
}}
70
- transition:transition ={transitionParams }
70
+ transition:transition | local ={transitionParams }
71
71
use:focusMove ={{ disabled : ! moveFocus }}
72
72
>
73
73
<slot {close } />
Original file line number Diff line number Diff line change 128
128
{#key startOfMonth.valueOf()}
129
129
<div
130
130
class="col-span-full row-span-full grid grid-cols-7 grid-rows-6 gap-y-4"
131
- in:fly={{ x: '-100%' }}
132
- out:fly={{ x: '100%' }}
131
+ in:fly|local ={{ x: '-100%' }}
132
+ out:fly|local ={{ x: '100%' }}
133
133
>
134
134
{#each monthDaysByWeek ?? [] as week, weekIndex (weekIndex)}
135
135
{#each week ?? [] as day (day.valueOf())}
Original file line number Diff line number Diff line change 43
43
{#if open }
44
44
<div
45
45
class =" notification rounded-lg border bg-white shadow-lg z-10"
46
- transition:fly ={{ duration : 200 , easing : quadIn , x : 100 }}
46
+ transition:fly | local ={{ duration : 200 , easing : quadIn , x : 100 }}
47
47
on:outroend ={() => dispatch (' close' )}
48
48
on:click ={onClick }
49
49
bind:this ={notificationEl }
Original file line number Diff line number Diff line change 304
304
<output
305
305
style =" left: calc(var(--start) * 100%);"
306
306
class =" value absolute top-1/2 -translate-x-1/2 -translate-y-[180%] text-xs text-white bg-accent-500 rounded-full px-2 shadow"
307
- transition:fly ={{ y : 4 , duration : 300 }}
307
+ transition:fly | local ={{ y : 4 , duration : 300 }}
308
308
>
309
309
{value [0 ]}
310
310
</output >
314
314
<output
315
315
style =" left: calc(var(--end) * 100%);"
316
316
class =" value absolute top-1/2 -translate-x-1/2 -translate-y-[180%] text-xs text-white bg-accent-500 rounded-full px-2 shadow"
317
- transition:fly ={{ y : 4 , duration : 300 }}
317
+ transition:fly | local ={{ y : 4 , duration : 300 }}
318
318
>
319
319
{value [1 ]}
320
320
</output >
Original file line number Diff line number Diff line change 53
53
}
54
54
</script >
55
55
56
- {#if enabled }
56
+ {#if enabled && ( title || $$slots . title ) }
57
57
<Popover
58
58
anchorEl ={containerEl ?.firstElementChild }
59
59
{placement }
65
65
{...$$restProps }
66
66
>
67
67
<slot name =" title" >
68
- {#if title }
69
- <div
70
- class =" text-white text-xs bg-gray-900/90 px-2 py-1 rounded whitespace-nowrap"
71
- transition:fly ={{
72
- x : placement === ' left' ? 6 : placement === ' right' ? - 6 : 0 ,
73
- y : placement === ' top' ? 6 : placement === ' bottom' ? - 6 : 0 ,
74
- duration : 300 ,
75
- }}
76
- >
77
- {title }
78
- </div >
79
- {/if }
68
+ <div
69
+ class =" text-white text-xs bg-gray-900/90 px-2 py-1 rounded whitespace-nowrap"
70
+ transition:fly |local ={{
71
+ x : placement === ' left' ? 6 : placement === ' right' ? - 6 : 0 ,
72
+ y : placement === ' top' ? 6 : placement === ' bottom' ? - 6 : 0 ,
73
+ duration : 300 ,
74
+ }}
75
+ >
76
+ {title }
77
+ </div >
80
78
</slot >
81
79
</Popover >
82
80
{/if }
You can’t perform that action at this time.
0 commit comments