Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Transition): add slide left #2576

Merged
merged 1 commit into from
Feb 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import React, { Component } from 'react'
import { Form, Grid, Header, Segment, TransitionablePortal } from 'semantic-ui-react'

const transitions = [
'scale',
'browse', 'browse right',
'drop',
'fade', 'fade up', 'fade down', 'fade left', 'fade right',
'fly up', 'fly down', 'fly left', 'fly right',
'horizontal flip', 'vertical flip',
'drop',
'fly left', 'fly right', 'fly up', 'fly down',
'swing left', 'swing right', 'swing up', 'swing down',
'browse', 'browse right',
'slide down', 'slide up', 'slide right',
'scale',
'slide up', 'slide down', 'slide left', 'slide right',
'swing up', 'swing down', 'swing left', 'swing right',
]
const options = transitions.map(name => ({ key: name, text: name, value: name }))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import React, { Component } from 'react'
import { Form, Grid, Image, Transition } from 'semantic-ui-react'

const transitions = [
'scale',
'browse', 'browse right',
'drop',
'fade', 'fade up', 'fade down', 'fade left', 'fade right',
'fly up', 'fly down', 'fly left', 'fly right',
'horizontal flip', 'vertical flip',
'drop',
'fly left', 'fly right', 'fly up', 'fly down',
'swing left', 'swing right', 'swing up', 'swing down',
'browse', 'browse right',
'slide down', 'slide up', 'slide right',
'scale',
'slide up', 'slide down', 'slide left', 'slide right',
'swing up', 'swing down', 'swing left', 'swing right',
]
const options = transitions.map(name => ({ key: name, text: name, value: name }))

Expand Down
11 changes: 8 additions & 3 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,14 @@ export type SemanticSIZES = 'mini' | 'tiny' | 'small' | 'medium' | 'large' | 'bi
// Transitions
// ======================================================

type SemanticDIRECTIONALTRANSITIONS = 'scale' | 'fade' | 'fade up' | 'fade down' | 'fade left' | 'fade right' |
'horizontal flip' | 'vertical flip' | 'drop' | 'fly left' | 'fly right' | 'fly up' | 'fly down' | 'swing left' |
'swing right' | 'swing up' | 'swing down' | 'browse' | 'browse right' | 'slide down' | 'slide up' | 'slide right';
type SemanticDIRECTIONALTRANSITIONS = 'browse' | 'browse right' |
'drop' |
'fade' | 'fade up' | 'fade down' | 'fade left' | 'fade right' |
'fly up' | 'fly down' | 'fly left' | 'fly right' |
'horizontal flip' | 'vertical flip' |
'scale' |
'slide up' | 'slide down' | 'slide left' | 'slide right' |
'swing up' | 'swing down' | 'swing left' | 'swing right';
type SemanticSTATICTRANSITIONS = 'jiggle' | 'flash' | 'shake' | 'pulse' | 'tada' | 'bounce';

export type SemanticTRANSITIONS = SemanticDIRECTIONALTRANSITIONS | SemanticSTATICTRANSITIONS;
Expand Down
12 changes: 6 additions & 6 deletions src/lib/SUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ export const WIDTHS = [
]

export const DIRECTIONAL_TRANSITIONS = [
'scale',
'browse', 'browse right',
'drop',
'fade', 'fade up', 'fade down', 'fade left', 'fade right',
'fly up', 'fly down', 'fly left', 'fly right',
'horizontal flip', 'vertical flip',
'drop',
'fly left', 'fly right', 'fly up', 'fly down',
'swing left', 'swing right', 'swing up', 'swing down',
'browse', 'browse right',
'slide down', 'slide up', 'slide right',
'scale',
'slide up', 'slide down', 'slide left', 'slide right',
'swing up', 'swing down', 'swing left', 'swing right',
]
export const STATIC_TRANSITIONS = ['jiggle', 'flash', 'shake', 'pulse', 'tada', 'bounce']
export const TRANSITIONS = [...DIRECTIONAL_TRANSITIONS, ...STATIC_TRANSITIONS]
Expand Down