From 12e666bb880fe2b7f6d6cfada5b651a61b107591 Mon Sep 17 00:00:00 2001 From: Alexandr Romanov Date: Thu, 25 Apr 2019 16:29:11 +0300 Subject: [PATCH 1/3] Animation edit --- packages/desktop/src/modal/SimpleModal.tsx | 10 +- packages/mobile/src/modal/SimpleModal.md | 200 +++++++++++++++++++++ packages/mobile/src/modal/SimpleModal.tsx | 12 +- 3 files changed, 211 insertions(+), 11 deletions(-) create mode 100644 packages/mobile/src/modal/SimpleModal.md diff --git a/packages/desktop/src/modal/SimpleModal.tsx b/packages/desktop/src/modal/SimpleModal.tsx index 5dcfcd248..a8e134e16 100644 --- a/packages/desktop/src/modal/SimpleModal.tsx +++ b/packages/desktop/src/modal/SimpleModal.tsx @@ -19,8 +19,8 @@ const contentTransition: FunctionComponent = (props) => < contentTransition.defaultProps = { timeout: { - enter: 370, - exit: 250, + enter: 300, + exit: 150, }, enterClassName: (timeout: number) => css({ opacity: 1, @@ -29,7 +29,7 @@ contentTransition.defaultProps = { }), exitClassName: (timeout: number) => css({ opacity: 0, - transform: 'translate3d(0, 35px, 0)', + transform: 'translate3d(0, 28px, 0)', transition: `opacity ${timeout}ms ease, transform ${timeout}ms ease`, }), } @@ -38,8 +38,8 @@ const backdropTransition: FunctionComponent = (props) => backdropTransition.defaultProps = { timeout: { - enter: 370, - exit: 250, + enter: 300, + exit: 200, }, enterClassName: (timeout: number) => css({ opacity: 1, diff --git a/packages/mobile/src/modal/SimpleModal.md b/packages/mobile/src/modal/SimpleModal.md new file mode 100644 index 000000000..10dc2d932 --- /dev/null +++ b/packages/mobile/src/modal/SimpleModal.md @@ -0,0 +1,200 @@ +Рекомендуемый размер заголовка [H2](#/Компоненты/Heading) с основным текстом [Body M]() (Normal). + +В окнах применяются [Brand Button](#/Компоненты/Button) и [Simple Button](#/Компоненты/Button) в размере Normal. + +```jsx + + +