@bitrise/bitkit 9.40.1 → 9.40.2-alpha-react18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +36 -39
- package/src/Components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
- package/src/Components/EmptyState/EmptyState.theme.ts +1 -1
- package/src/Components/Menu/Menu.tsx +1 -1
- package/src/Components/Popover/PopoverTrigger.tsx +1 -2
- package/src/Foundations/Breakpoints/Breakpoints.ts +9 -3
- package/src/Old/Placement/Placement.css +0 -14
- package/src/Old/Placement/PlacementPopper.tsx +2 -17
- package/src/old.ts +0 -4
- package/src/tsconfig.tsbuildinfo +1 -1
- package/src/Old/Appear/Appear.css +0 -116
- package/src/Old/Appear/Appear.tsx +0 -74
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
.Appear {
|
|
2
|
-
animation-timing-function: var(--transition-timing-function);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.Appear--fast {
|
|
6
|
-
transition-duration: var(--transition-duration--fast);
|
|
7
|
-
animation-duration: var(--transition-duration--fast);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.Appear--base {
|
|
11
|
-
transition-duration: var(--transition-duration--base);
|
|
12
|
-
animation-duration: var(--transition-duration--base);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.Appear--slow {
|
|
16
|
-
transition-duration: var(--transition-duration--slow);
|
|
17
|
-
animation-duration: var(--transition-duration--slow);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.Appear--Fade {
|
|
21
|
-
opacity: 0;
|
|
22
|
-
transition-property: opacity;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.Appear--Fade-appear-active,
|
|
26
|
-
.Appear--Fade-appear-done,
|
|
27
|
-
.Appear--Fade-enter-active,
|
|
28
|
-
.Appear--Fade-enter-done,
|
|
29
|
-
.Appear--Fade-exit {
|
|
30
|
-
opacity: 1;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.Appear--Fade-appear,
|
|
34
|
-
.Appear--Fade-enter,
|
|
35
|
-
.Appear--Fade-exit-active,
|
|
36
|
-
.Appear--Fade-exit-done {
|
|
37
|
-
opacity: 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.Appear--FadeSlideDown,
|
|
41
|
-
.Appear--FadeSlideUp {
|
|
42
|
-
opacity: 0;
|
|
43
|
-
transition-property: transform, opacity;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.Appear--FadeSlideUp { transform: translateY(var(--size--x4)); }
|
|
47
|
-
.Appear--FadeSlideDown { transform: translateY(calc(var(--size--x4) * -1)); }
|
|
48
|
-
|
|
49
|
-
.Appear--FadeSlideDown-appear-active,
|
|
50
|
-
.Appear--FadeSlideDown-appear-done,
|
|
51
|
-
.Appear--FadeSlideDown-enter-active,
|
|
52
|
-
.Appear--FadeSlideDown-enter-done,
|
|
53
|
-
.Appear--FadeSlideDown-exit,
|
|
54
|
-
.Appear--FadeSlideUp-appear-active,
|
|
55
|
-
.Appear--FadeSlideUp-appear-done,
|
|
56
|
-
.Appear--FadeSlideUp-enter-active,
|
|
57
|
-
.Appear--FadeSlideUp-enter-done,
|
|
58
|
-
.Appear--FadeSlideUp-exit {
|
|
59
|
-
transform: translateY(0);
|
|
60
|
-
opacity: 1;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.Appear--FadeSlideDown-appear,
|
|
64
|
-
.Appear--FadeSlideDown-enter,
|
|
65
|
-
.Appear--FadeSlideDown-exit-active,
|
|
66
|
-
.Appear--FadeSlideDown-exit-done {
|
|
67
|
-
transform: translateY(calc(var(--size--x4) * -1));
|
|
68
|
-
opacity: 0;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.Appear--FadeSlideUp-appear,
|
|
72
|
-
.Appear--FadeSlideUp-enter,
|
|
73
|
-
.Appear--FadeSlideUp-exit-active,
|
|
74
|
-
.Appear--FadeSlideUp-exit-done {
|
|
75
|
-
transform: translateY(var(--size--x4));
|
|
76
|
-
opacity: 0;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.Appear--FadeSlideRight,
|
|
80
|
-
.Appear--FadeSlideLeft {
|
|
81
|
-
opacity: 0;
|
|
82
|
-
transition-property: transform, opacity;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.Appear--FadeSlideRight { transform: translateX(calc(var(--size--x4) * -1)); }
|
|
86
|
-
.Appear--FadeSlideLeft { transform: translateX(var(--size--x4)); }
|
|
87
|
-
|
|
88
|
-
.Appear--FadeSlideRight-appear-active,
|
|
89
|
-
.Appear--FadeSlideRight-appear-done,
|
|
90
|
-
.Appear--FadeSlideRight-enter-active,
|
|
91
|
-
.Appear--FadeSlideRight-enter-done,
|
|
92
|
-
.Appear--FadeSlideRight-exit,
|
|
93
|
-
.Appear--FadeSlideLeft-appear-active,
|
|
94
|
-
.Appear--FadeSlideLeft-appear-done,
|
|
95
|
-
.Appear--FadeSlideLeft-enter-active,
|
|
96
|
-
.Appear--FadeSlideLeft-enter-done,
|
|
97
|
-
.Appear--FadeSlideLeft-exit {
|
|
98
|
-
transform: translateX(0);
|
|
99
|
-
opacity: 1;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.Appear--FadeSlideRight-appear,
|
|
103
|
-
.Appear--FadeSlideRight-enter,
|
|
104
|
-
.Appear--FadeSlideRight-exit-active,
|
|
105
|
-
.Appear--FadeSlideRight-exit-done {
|
|
106
|
-
transform: translateX(calc(var(--size--x4) * -1));
|
|
107
|
-
opacity: 0;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.Appear--FadeSlideLeft-appear,
|
|
111
|
-
.Appear--FadeSlideLeft-enter,
|
|
112
|
-
.Appear--FadeSlideLeft-exit-active,
|
|
113
|
-
.Appear--FadeSlideLeft-exit-done {
|
|
114
|
-
transform: translateX(var(--size--x4));
|
|
115
|
-
opacity: 0;
|
|
116
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { CSSTransition } from 'react-transition-group';
|
|
3
|
-
import classnames from 'classnames';
|
|
4
|
-
import { transitionDurationFast, transitionDurationBase, transitionDurationSlow } from '../variables';
|
|
5
|
-
import Base, { Props as BaseProps } from '../Base/Base';
|
|
6
|
-
import './Appear.css';
|
|
7
|
-
|
|
8
|
-
const isClient = typeof window !== 'undefined';
|
|
9
|
-
|
|
10
|
-
const durations = {
|
|
11
|
-
fast: transitionDurationFast,
|
|
12
|
-
base: transitionDurationBase,
|
|
13
|
-
slow: transitionDurationSlow,
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type TypeAppearAnimationName = 'Fade' | 'FadeSlideUp' | 'FadeSlideRight' | 'FadeSlideDown' | 'FadeSlideLeft';
|
|
17
|
-
|
|
18
|
-
export interface Props extends BaseProps {
|
|
19
|
-
/** Type of enter and exit animation */
|
|
20
|
-
animation: TypeAppearAnimationName;
|
|
21
|
-
className?: string;
|
|
22
|
-
/** Entrance delay time */
|
|
23
|
-
delay?: number;
|
|
24
|
-
/** Entrance duration */
|
|
25
|
-
duration?: 'slow' | 'base' | 'fast';
|
|
26
|
-
style?: React.CSSProperties;
|
|
27
|
-
/** Flag if the element is visible or not */
|
|
28
|
-
visible?: boolean;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/** Enter and exit components into view with a bit of bedazzle */
|
|
32
|
-
const Appear: React.FunctionComponent<Props> = (props: Props) => {
|
|
33
|
-
const { animation, className, delay, duration = 'fast', style, visible, ...rest } = props;
|
|
34
|
-
|
|
35
|
-
const classes = classnames(className, 'Appear', `Appear--${animation}`, `Appear--${duration}`, {
|
|
36
|
-
[`Appear--${animation}-appear`]: !isClient && visible,
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
const transition = {
|
|
40
|
-
appear: `Appear--${animation}-appear`,
|
|
41
|
-
appearActive: `Appear--${animation}-appear-active`,
|
|
42
|
-
enter: `Appear--${animation}-enter`,
|
|
43
|
-
enterActive: `Appear--${animation}-enter-active`,
|
|
44
|
-
enterDone: `Appear--${animation}-enter-done`,
|
|
45
|
-
exit: `Appear--${animation}-exit`,
|
|
46
|
-
exitActive: `Appear--${animation}-exit-active`,
|
|
47
|
-
exitDone: `Appear--${animation}-exit-done`,
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const newStyle = {
|
|
51
|
-
...style,
|
|
52
|
-
animationDelay: `${delay}ms`,
|
|
53
|
-
transitionDelay: `${delay}ms`,
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
return (
|
|
57
|
-
<CSSTransition
|
|
58
|
-
appear={isClient && visible}
|
|
59
|
-
classNames={transition}
|
|
60
|
-
in={isClient && visible}
|
|
61
|
-
timeout={durations[duration]}
|
|
62
|
-
>
|
|
63
|
-
<Base {...rest} className={classes} style={newStyle} />
|
|
64
|
-
</CSSTransition>
|
|
65
|
-
);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
Appear.defaultProps = {
|
|
69
|
-
delay: 0,
|
|
70
|
-
duration: 'fast',
|
|
71
|
-
visible: true,
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export default Appear;
|