Skip to content

Commit 935d0ff

Browse files
authored
feat(Transition): update SUI to 2.3, add zoom and glow (#2658)
1 parent eaab06c commit 935d0ff

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

docs/app/Examples/addons/TransitionablePortal/Usage/TransitionablePortalExampleTransition.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const transitions = [
1010
'scale',
1111
'slide up', 'slide down', 'slide left', 'slide right',
1212
'swing up', 'swing down', 'swing left', 'swing right',
13+
'zoom',
1314
]
1415
const options = transitions.map(name => ({ key: name, text: name, value: name }))
1516

docs/app/Examples/modules/Transition/Explorers/TransitionExampleGroupExplorer.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const transitions = [
1010
'scale',
1111
'slide up', 'slide down', 'slide left', 'slide right',
1212
'swing up', 'swing down', 'swing left', 'swing right',
13+
'zoom',
1314
]
1415
const options = transitions.map(name => ({ key: name, text: name, value: name }))
1516

docs/app/Examples/modules/Transition/Explorers/TransitionExampleTransitionExplorer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from 'react'
22
import { Form, Grid, Image, Transition } from 'semantic-ui-react'
33

4-
const transitions = ['jiggle', 'flash', 'shake', 'pulse', 'tada', 'bounce']
4+
const transitions = ['jiggle', 'flash', 'shake', 'pulse', 'tada', 'bounce', 'glow']
55

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

src/index.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ type SemanticDIRECTIONALTRANSITIONS = 'browse' | 'browse right' |
6464
'horizontal flip' | 'vertical flip' |
6565
'scale' |
6666
'slide up' | 'slide down' | 'slide left' | 'slide right' |
67-
'swing up' | 'swing down' | 'swing left' | 'swing right';
68-
type SemanticSTATICTRANSITIONS = 'jiggle' | 'flash' | 'shake' | 'pulse' | 'tada' | 'bounce';
67+
'swing up' | 'swing down' | 'swing left' | 'swing right' |
68+
'zoom';
69+
type SemanticSTATICTRANSITIONS = 'jiggle' | 'flash' | 'shake' | 'pulse' | 'tada' | 'bounce' | 'glow';
6970

7071
export type SemanticTRANSITIONS = SemanticDIRECTIONALTRANSITIONS | SemanticSTATICTRANSITIONS;
7172

src/lib/SUI.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ export const DIRECTIONAL_TRANSITIONS = [
3838
'scale',
3939
'slide up', 'slide down', 'slide left', 'slide right',
4040
'swing up', 'swing down', 'swing left', 'swing right',
41+
'zoom',
4142
]
42-
export const STATIC_TRANSITIONS = ['jiggle', 'flash', 'shake', 'pulse', 'tada', 'bounce']
43+
export const STATIC_TRANSITIONS = ['jiggle', 'flash', 'shake', 'pulse', 'tada', 'bounce', 'glow']
4344
export const TRANSITIONS = [...DIRECTIONAL_TRANSITIONS, ...STATIC_TRANSITIONS]
4445

4546
// Generated from:

0 commit comments

Comments
 (0)