3 simpleValidatorWrapper,
6 validateEthereumAddress,
13} from '../lib/validators';
15import { prependSig } from '../lib/transformers';
18import Button from './Button';
19import UploadButton from './UploadButton';
20// import Checkbox from './Checkbox';
21import CheckboxButton from './CheckboxButton';
22import Anchor from './Anchor';
23// import ToggleButton from './ToggleButton';
26import Form from './Form';
27import Label from './Label';
28import InnerLabel from './InnerLabel';
29import InputCaption from './InputCaption';
30import Input from './Input';
31import Textarea from './Textarea';
32import advancedInput from './advancedInput';
35import DropdownItem from './DropdownItem';
36import DropdownDivider from './DropdownDivider';
37import InnerLabelDropdown from './InnerLabelDropdown';
40import HorizontalSelector from './HorizontalSelector';
43import Breadcrumb from './Breadcrumb';
44import BreadcrumbItem from './BreadcrumbItem';
47import Container from './Container';
48import Col from './Col';
49import Row from './Row';
50// import FlexRow from './FlexRow';
51// import FlexCol from './FlexCol';
52import Spacing from './Spacing';
60import Code from './Code';
61import Warning from './Warning';
64import ValidatedSigil from './ValidatedSigil';
65import ValidatedBlockie from './ValidatedBlockie';
66import Chevron from './icons/Chevron';
67import ShowBlockie from './ShowBlockie';
68import Passport from './Passport';
70// HOC validated form components
72const RequiredInput = advancedInput({
73 WrappedComponent: Input,
74 validators: [validateNotEmpty],
77const NetworkKeyInput = advancedInput({
78 WrappedComponent: Input,
79 validators: [validateNotEmpty, validateNetworkKey],
82const NetworkSeedInput = advancedInput({
83 WrappedComponent: Input,
84 validators: [validateNotEmpty, validateNetworkSeed],
87const AddressInput = advancedInput({
88 WrappedComponent: Input,
89 validators: [validateEthereumAddress, validateNotEmpty],
92const MnemonicInput = advancedInput({
93 WrappedComponent: Textarea,
94 validators: [validateMnemonic, validateNotEmpty],
97const GalaxyInput = advancedInput({
98 WrappedComponent: Input,
99 validators: [validateGalaxy, validateNotEmpty],
100 transformers: [prependSig],
103const PointInput = advancedInput({
104 WrappedComponent: Input,
105 validators: [validatePoint, validateNotEmpty],
106 transformers: [prependSig],
109const TicketInput = advancedInput({
110 WrappedComponent: Input,
111 validators: [validateTicket, validateNotEmpty],
112 transformers: [prependSig],
115const VerifyTicketInput = matchingTicket =>
117 WrappedComponent: Input,
122 // TODO: This should be in /lib/validators, but we'd need a way for
123 // validators to compare against dynamic values
125 simpleValidatorWrapper({
127 validator: d => d === matchingTicket,
128 errorMessage: 'This does not match the provided master ticket',
131 transformers: [prependSig],
134const ShardInput = advancedInput({
135 WrappedComponent: Input,
136 validators: [validateShard],
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list