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": [
|
"releases": [
|
||||||
{
|
{
|
||||||
"version": "1.1.04",
|
"version": "1.1.04",
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ export type NotificationPlacement =
|
||||||
| 'top-start'
|
| 'top-start'
|
||||||
| 'top-center'
|
| 'top-center'
|
||||||
| 'top-end'
|
| 'top-end'
|
||||||
|
| 'middle-center'
|
||||||
| 'bottom-start'
|
| 'bottom-start'
|
||||||
| 'bottom-center'
|
| 'bottom-center'
|
||||||
| 'bottom-end'
|
| 'bottom-end'
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,16 @@ const scaleTransition = (
|
||||||
...scaleMotionProps,
|
...scaleMotionProps,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'middle-center': {
|
||||||
|
default: {
|
||||||
|
top: '50%',
|
||||||
|
left: '50%',
|
||||||
|
transform: 'translate(-50%, -50%)',
|
||||||
|
},
|
||||||
|
variants: {
|
||||||
|
...scaleMotionProps,
|
||||||
|
},
|
||||||
|
},
|
||||||
'bottom-end': {
|
'bottom-end': {
|
||||||
default: {
|
default: {
|
||||||
bottom: offsetY,
|
bottom: offsetY,
|
||||||
|
|
@ -168,6 +178,16 @@ const fadeTransition = (
|
||||||
...fadeMotionProps,
|
...fadeMotionProps,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'middle-center': {
|
||||||
|
default: {
|
||||||
|
top: '50%',
|
||||||
|
left: '50%',
|
||||||
|
transform: 'translate(-50%, -50%)',
|
||||||
|
},
|
||||||
|
variants: {
|
||||||
|
...fadeMotionProps,
|
||||||
|
},
|
||||||
|
},
|
||||||
'bottom-end': {
|
'bottom-end': {
|
||||||
default: {
|
default: {
|
||||||
bottom: offsetY,
|
bottom: offsetY,
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ export const PLACEMENT = {
|
||||||
TOP_START: 'top-start',
|
TOP_START: 'top-start',
|
||||||
TOP_CENTER: 'top-center',
|
TOP_CENTER: 'top-center',
|
||||||
TOP_END: 'top-end',
|
TOP_END: 'top-end',
|
||||||
|
MIDDLE_CENTER: 'middle-center',
|
||||||
BOTTOM_START: 'bottom-start',
|
BOTTOM_START: 'bottom-start',
|
||||||
BOTTOM_CENTER: 'bottom-center',
|
BOTTOM_CENTER: 'bottom-center',
|
||||||
BOTTOM_END: 'bottom-end',
|
BOTTOM_END: 'bottom-end',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue