1 | import { compose } from '../utils/func'
|
2 | import inputable from '../Form/inputable'
|
3 | import inputBorder from '../hoc/inputBorder'
|
4 | import delay from '../hoc/delay'
|
5 | import trim from '../hoc/trim'
|
6 | import coin from '../hoc/coin'
|
7 | import Input from './Input'
|
8 | import Number from './Number'
|
9 | import Group from './Group'
|
10 | import Password from './Password'
|
11 |
|
12 | const exports = compose(
|
13 | inputable,
|
14 | inputBorder({}),
|
15 | delay(400),
|
16 | trim,
|
17 | coin('input')
|
18 | )(Input)
|
19 | exports.Group = inputBorder({ tag: 'div', isGroup: true })(Group)
|
20 | exports.Number = compose(
|
21 | inputable,
|
22 | inputBorder({}),
|
23 | coin()
|
24 | )(Number)
|
25 | exports.Password = compose(
|
26 | inputable,
|
27 | inputBorder({})
|
28 | )(Password)
|
29 |
|
30 | exports.displayName = 'ShineoutInput'
|
31 | exports.Group.displayName = 'ShineoutInputGroup'
|
32 |
|
33 | export default exports
|