UNPKG

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