@comicrelief/component-library 8.19.0 → 8.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/components/Atoms/Input/Input.js +42 -30
- package/dist/components/Atoms/Input/Input.md +14 -0
- package/dist/components/Atoms/Input/input.test.js +13 -1
- package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +145 -73
- package/dist/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +44 -20
- package/dist/components/Molecules/SearchInput/SearchInput.test.js +1 -1
- package/dist/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +44 -20
- package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +290 -179
- package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +90 -56
- package/dist/components/Organisms/Membership/Membership.test.js +1 -1
- package/package.json +1 -1
- package/src/components/Atoms/Input/Input.js +51 -34
- package/src/components/Atoms/Input/Input.md +14 -0
- package/src/components/Atoms/Input/input.test.js +173 -13
- package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +145 -73
- package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +44 -20
- package/src/components/Molecules/SearchInput/SearchInput.test.js +44 -20
- package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +44 -20
- package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +290 -179
- package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +90 -56
- package/src/components/Organisms/Membership/Membership.test.js +120 -81
|
@@ -27,7 +27,29 @@ exports[`renders correctly 1`] = `
|
|
|
27
27
|
font-weight: normal;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
.c4 {
|
|
31
|
+
position: relative;
|
|
32
|
+
font-size: 1.25rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
30
35
|
.c5 {
|
|
36
|
+
position: relative;
|
|
37
|
+
width: 100%;
|
|
38
|
+
display: -webkit-box;
|
|
39
|
+
display: -webkit-flex;
|
|
40
|
+
display: -ms-flexbox;
|
|
41
|
+
display: flex;
|
|
42
|
+
-webkit-box-pack: end;
|
|
43
|
+
-webkit-justify-content: flex-end;
|
|
44
|
+
-ms-flex-pack: end;
|
|
45
|
+
justify-content: flex-end;
|
|
46
|
+
-webkit-align-items: center;
|
|
47
|
+
-webkit-box-align: center;
|
|
48
|
+
-ms-flex-align: center;
|
|
49
|
+
align-items: center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.c6 {
|
|
31
53
|
position: relative;
|
|
32
54
|
box-sizing: border-box;
|
|
33
55
|
width: 100%;
|
|
@@ -47,23 +69,20 @@ exports[`renders correctly 1`] = `
|
|
|
47
69
|
font-family: 'Montserrat',Helvetica,Arial,sans-serif;
|
|
48
70
|
}
|
|
49
71
|
|
|
50
|
-
.
|
|
72
|
+
.c6:focus {
|
|
51
73
|
border: 1px solid #666;
|
|
52
74
|
}
|
|
53
75
|
|
|
54
|
-
.c4 {
|
|
55
|
-
position: relative;
|
|
56
|
-
font-size: 1.25rem;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
76
|
.c0 {
|
|
60
77
|
position: relative;
|
|
61
78
|
}
|
|
62
79
|
|
|
63
80
|
@media (min-width:740px) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (min-width:1024px) {
|
|
85
|
+
|
|
67
86
|
}
|
|
68
87
|
|
|
69
88
|
<div
|
|
@@ -88,18 +107,23 @@ exports[`renders correctly 1`] = `
|
|
|
88
107
|
className="c4"
|
|
89
108
|
>
|
|
90
109
|
|
|
91
|
-
<
|
|
92
|
-
aria-describedby="typeahead-test"
|
|
93
|
-
autoComplete="off"
|
|
110
|
+
<div
|
|
94
111
|
className="c5"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
112
|
+
>
|
|
113
|
+
<input
|
|
114
|
+
aria-describedby="typeahead-test"
|
|
115
|
+
autoComplete="off"
|
|
116
|
+
className="c6"
|
|
117
|
+
defaultValue=""
|
|
118
|
+
id="typeahead-test"
|
|
119
|
+
name="q"
|
|
120
|
+
onChange={[Function]}
|
|
121
|
+
placeholder="Type to start searching..."
|
|
122
|
+
required={false}
|
|
123
|
+
type="text"
|
|
124
|
+
/>
|
|
125
|
+
|
|
126
|
+
</div>
|
|
103
127
|
</div>
|
|
104
128
|
|
|
105
129
|
</label>
|