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 Col from './Col';
48import Row from './Row';
49// import FlexRow from './FlexRow';
50// import FlexCol from './FlexCol';
51import Spacing from './Spacing';
59import Code from './Code';
60import Warning from './Warning';
63import ValidatedSigil from './ValidatedSigil';
64import ValidatedBlockie from './ValidatedBlockie';
65import ShowBlockie from './ShowBlockie';
66import Passport from './Passport';
68// HOC validated form components
70const RequiredInput = advancedInput({
71 WrappedComponent: Input,
72 validators: [validateNotEmpty],
75const NetworkKeyInput = advancedInput({
76 WrappedComponent: Input,
77 validators: [validateNotEmpty, validateNetworkKey],
80const NetworkSeedInput = advancedInput({
81 WrappedComponent: Input,
82 validators: [validateNotEmpty, validateNetworkSeed],
85const AddressInput = advancedInput({
86 WrappedComponent: Input,
87 validators: [validateEthereumAddress, validateNotEmpty],
90const MnemonicInput = advancedInput({
91 WrappedComponent: Textarea,
92 validators: [validateMnemonic, validateNotEmpty],
95const GalaxyInput = advancedInput({
96 WrappedComponent: Input,
97 validators: [validateGalaxy, validateNotEmpty],
98 transformers: [prependSig],
101const PointInput = advancedInput({
102 WrappedComponent: Input,
103 validators: [validatePoint, validateNotEmpty],
104 transformers: [prependSig],
107const TicketInput = advancedInput({
108 WrappedComponent: Input,
109 validators: [validateTicket, validateNotEmpty],
110 transformers: [prependSig],
113const VerifyTicketInput = matchingTicket =>
115 WrappedComponent: Input,
120 // TODO: This should be in /lib/validators, but we'd need a way for
121 // validators to compare against dynamic values
123 simpleValidatorWrapper({
125 validator: d => d === matchingTicket,
126 errorMessage: 'This does not match the provided master ticket',
129 transformers: [prependSig],
132const ShardInput = advancedInput({
133 WrappedComponent: Input,
134 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