Notification komponentindeki middle-center
This commit is contained in:
parent
b2863328cb
commit
4d454ecb13
4 changed files with 23 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"commit": "168768b",
|
||||
"commit": "b286332",
|
||||
"releases": [
|
||||
{
|
||||
"version": "1.1.04",
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ export type NotificationPlacement =
|
|||
| 'top-start'
|
||||
| 'top-center'
|
||||
| 'top-end'
|
||||
| 'middle-center'
|
||||
| 'bottom-start'
|
||||
| 'bottom-center'
|
||||
| 'bottom-end'
|
||||
|
|
|
|||
|
|
@ -104,6 +104,16 @@ const scaleTransition = (
|
|||
...scaleMotionProps,
|
||||
},
|
||||
},
|
||||
'middle-center': {
|
||||
default: {
|
||||
top: '50%',
|
||||
left: '50%',
|
||||
transform: 'translate(-50%, -50%)',
|
||||
},
|
||||
variants: {
|
||||
...scaleMotionProps,
|
||||
},
|
||||
},
|
||||
'bottom-end': {
|
||||
default: {
|
||||
bottom: offsetY,
|
||||
|
|
@ -168,6 +178,16 @@ const fadeTransition = (
|
|||
...fadeMotionProps,
|
||||
},
|
||||
},
|
||||
'middle-center': {
|
||||
default: {
|
||||
top: '50%',
|
||||
left: '50%',
|
||||
transform: 'translate(-50%, -50%)',
|
||||
},
|
||||
variants: {
|
||||
...fadeMotionProps,
|
||||
},
|
||||
},
|
||||
'bottom-end': {
|
||||
default: {
|
||||
bottom: offsetY,
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ export const PLACEMENT = {
|
|||
TOP_START: 'top-start',
|
||||
TOP_CENTER: 'top-center',
|
||||
TOP_END: 'top-end',
|
||||
MIDDLE_CENTER: 'middle-center',
|
||||
BOTTOM_START: 'bottom-start',
|
||||
BOTTOM_CENTER: 'bottom-center',
|
||||
BOTTOM_END: 'bottom-end',
|
||||
|
|
|
|||
Loading…
Reference in a new issue