1 | import Animations from './props.animations.js'
|
2 | import Sizes from './props.sizes.js'
|
3 | import Colors from './props.colors.js'
|
4 | import ColorsHSL from './props.colors-hsl.js'
|
5 | import Fonts from './props.fonts.js'
|
6 | import Borders from './props.borders.js'
|
7 | import Aspects from './props.aspects.js'
|
8 | import Easings from './props.easing.js'
|
9 | import Gradients from './props.gradients.js'
|
10 | import Shadows from './props.shadows.js'
|
11 | import SVG from './props.svg.js'
|
12 | import Zindex from './props.zindex.js'
|
13 |
|
14 | const camelize = text => {
|
15 | text = text.replace(/[-]+(.)?/g, (_, c) => c
|
16 | ? c.toUpperCase()
|
17 | : '')
|
18 | return text.substr(0, 1).toLowerCase() + text.substr(1)
|
19 | }
|
20 |
|
21 | const mapToObjectNotation = props => {
|
22 | for (var prop in props)
|
23 | props[camelize(prop)] = props[prop]
|
24 | return props
|
25 | }
|
26 |
|
27 | const OpenProps = mapToObjectNotation({
|
28 | ...Animations,
|
29 | ...Sizes,
|
30 | ...Colors,
|
31 | ...ColorsHSL,
|
32 | ...Fonts,
|
33 | ...Borders,
|
34 | ...Aspects,
|
35 | ...Easings,
|
36 | ...SVG,
|
37 | ...Gradients,
|
38 | ...Shadows,
|
39 | ...Zindex,
|
40 | })
|
41 |
|
42 | export default OpenProps |
\ | No newline at end of file |