@@ -1,180 +0,0 @@
3− simpleValidatorWrapper,
6− validateEthereumAddress,
13−} from '../../lib/validators';
15−import { prependSig } from '../../lib/transformers';
18−import Button from './Button';
19−import UploadButton from './UploadButton';
20−// import Checkbox from './Checkbox';
21−import CheckboxButton from './CheckboxButton';
22−import Anchor from './Anchor';
23−// import ToggleButton from './ToggleButton';
26−import Form from './Form';
27−import Label from './Label';
28−import InnerLabel from './InnerLabel';
29−import InputCaption from './InputCaption';
30−import Input from './Input';
31−import Textarea from './Textarea';
32−import advancedInput from './advancedInput';
35−import DropdownItem from './DropdownItem';
36−import DropdownDivider from './DropdownDivider';
37−import InnerLabelDropdown from './InnerLabelDropdown';
40−import HorizontalSelector from './HorizontalSelector';
43−import Breadcrumb from './Breadcrumb';
44−import BreadcrumbItem from './BreadcrumbItem';
47−import Col from './Col';
48−import Row from './Row';
49−// import FlexRow from './FlexRow';
50−// import FlexCol from './FlexCol';
51−import Spacing from './Spacing';
54−import H1 from './H1';
55−import H2 from './H2';
56−import H3 from './H3';
57−import H4 from './H4';
59−import Code from './Code';
60−import Warning from './Warning';
63−import ValidatedSigil from './ValidatedSigil';
64−import ValidatedBlockie from './ValidatedBlockie';
65−import ShowBlockie from './ShowBlockie';
67−// HOC validated form components
69−const RequiredInput = advancedInput({
70− WrappedComponent: Input,
71− validators: [validateNotEmpty],
74−const NetworkKeyInput = advancedInput({
75− WrappedComponent: Input,
76− validators: [validateNotEmpty, validateNetworkKey],
79−const NetworkSeedInput = advancedInput({
80− WrappedComponent: Input,
81− validators: [validateNotEmpty, validateNetworkSeed],
84−const AddressInput = advancedInput({
85− WrappedComponent: Input,
86− validators: [validateEthereumAddress, validateNotEmpty],
89−const MnemonicInput = advancedInput({
90− WrappedComponent: Textarea,
91− validators: [validateMnemonic, validateNotEmpty],
94−const GalaxyInput = advancedInput({
95− WrappedComponent: Input,
96− validators: [validateGalaxy, validateNotEmpty],
97− transformers: [prependSig],
100−const PointInput = advancedInput({
101− WrappedComponent: Input,
102− validators: [validatePoint, validateNotEmpty],
103− transformers: [prependSig],
106−const TicketInput = advancedInput({
107− WrappedComponent: Input,
108− validators: [validateTicket, validateNotEmpty],
109− transformers: [prependSig],
112−const VerifyTicketInput = matchingTicket =>
114− WrappedComponent: Input,
119− // TODO: This should be in /lib/validators, but we'd need a way for
120− // validators to compare against dynamic values
122− simpleValidatorWrapper({
124− validator: d => d === matchingTicket,
125− errorMessage: 'This does not match the provided master ticket',
128− transformers: [prependSig],
131−const ShardInput = advancedInput({
132− WrappedComponent: Input,
133− validators: [validateShard],