Skip to content

feat(Transition): update SUI to 2.3, add zoom and glow #2658

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

Merged
merged 1 commit into from
Mar 18, 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 @@ -10,6 +10,7 @@ const transitions = [
'scale',
'slide up', 'slide down', 'slide left', 'slide right',
'swing up', 'swing down', 'swing left', 'swing right',
'zoom',
]
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 @@ -10,6 +10,7 @@ const transitions = [
'scale',
'slide up', 'slide down', 'slide left', 'slide right',
'swing up', 'swing down', 'swing left', 'swing right',
'zoom',
]
const options = transitions.map(name => ({ key: name, text: name, value: name }))

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

const transitions = ['jiggle', 'flash', 'shake', 'pulse', 'tada', 'bounce']
const transitions = ['jiggle', 'flash', 'shake', 'pulse', 'tada', 'bounce', 'glow']

const options = transitions.map(name => ({ key: name, text: name, value: name }))

Expand Down
5 changes: 3 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ type SemanticDIRECTIONALTRANSITIONS = 'browse' | 'browse 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';
'swing up' | 'swing down' | 'swing left' | 'swing right' |
'zoom';
type SemanticSTATICTRANSITIONS = 'jiggle' | 'flash' | 'shake' | 'pulse' | 'tada' | 'bounce' | 'glow';

export type SemanticTRANSITIONS = SemanticDIRECTIONALTRANSITIONS | SemanticSTATICTRANSITIONS;

Expand Down
3 changes: 2 additions & 1 deletion src/lib/SUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ export const DIRECTIONAL_TRANSITIONS = [
'scale',
'slide up', 'slide down', 'slide left', 'slide right',
'swing up', 'swing down', 'swing left', 'swing right',
'zoom',
]
export const STATIC_TRANSITIONS = ['jiggle', 'flash', 'shake', 'pulse', 'tada', 'bounce']
export const STATIC_TRANSITIONS = ['jiggle', 'flash', 'shake', 'pulse', 'tada', 'bounce', 'glow']
export const TRANSITIONS = [...DIRECTIONAL_TRANSITIONS, ...STATIC_TRANSITIONS]

// Generated from:
Expand Down