/
index.js
51 lines (46 loc) · 1.15 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import PropTypes from 'prop-types'
import { MotionDefaultProps } from '../motion'
export const marginPropType = PropTypes.shape({
top: PropTypes.number,
right: PropTypes.number,
bottom: PropTypes.number,
left: PropTypes.number,
}).isRequired
export const motionPropTypes = {
animate: MotionDefaultProps.animate,
motionStiffness: MotionDefaultProps.stiffness,
motionDamping: MotionDefaultProps.damping,
motionConfig: MotionDefaultProps.config,
}
export const blendModes = [
'normal',
'multiply',
'screen',
'overlay',
'darken',
'lighten',
'color-dodge',
'color-burn',
'hard-light',
'soft-light',
'difference',
'exclusion',
'hue',
'saturation',
'color',
'luminosity',
]
export const blendModePropType = PropTypes.oneOf(blendModes)
export * from './colors'
export * from './curve'
export * from './defs'
export * from './stack'
export * from './treeMap'