@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.
Files changed (22) hide show
  1. package/README.md +2 -2
  2. package/dist/components/Atoms/Input/Input.js +42 -30
  3. package/dist/components/Atoms/Input/Input.md +14 -0
  4. package/dist/components/Atoms/Input/input.test.js +13 -1
  5. package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +145 -73
  6. package/dist/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +44 -20
  7. package/dist/components/Molecules/SearchInput/SearchInput.test.js +1 -1
  8. package/dist/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +44 -20
  9. package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +290 -179
  10. package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +90 -56
  11. package/dist/components/Organisms/Membership/Membership.test.js +1 -1
  12. package/package.json +1 -1
  13. package/src/components/Atoms/Input/Input.js +51 -34
  14. package/src/components/Atoms/Input/Input.md +14 -0
  15. package/src/components/Atoms/Input/input.test.js +173 -13
  16. package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +145 -73
  17. package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +44 -20
  18. package/src/components/Molecules/SearchInput/SearchInput.test.js +44 -20
  19. package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +44 -20
  20. package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +290 -179
  21. package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +90 -56
  22. package/src/components/Organisms/Membership/Membership.test.js +120 -81
@@ -51,7 +51,29 @@ it('renders correctly', () => {
51
51
  width: 1px;
52
52
  }
53
53
 
54
+ .c8 {
55
+ position: relative;
56
+ font-size: 1.25rem;
57
+ }
58
+
54
59
  .c9 {
60
+ position: relative;
61
+ width: 100%;
62
+ display: -webkit-box;
63
+ display: -webkit-flex;
64
+ display: -ms-flexbox;
65
+ display: flex;
66
+ -webkit-box-pack: end;
67
+ -webkit-justify-content: flex-end;
68
+ -ms-flex-pack: end;
69
+ justify-content: flex-end;
70
+ -webkit-align-items: center;
71
+ -webkit-box-align: center;
72
+ -ms-flex-align: center;
73
+ align-items: center;
74
+ }
75
+
76
+ .c10 {
55
77
  position: relative;
56
78
  box-sizing: border-box;
57
79
  width: 100%;
@@ -71,15 +93,10 @@ it('renders correctly', () => {
71
93
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
72
94
  }
73
95
 
74
- .c9:focus {
96
+ .c10:focus {
75
97
  border: 1px solid #666;
76
98
  }
77
99
 
78
- .c8 {
79
- position: relative;
80
- font-size: 1.25rem;
81
- }
82
-
83
100
  .c0 {
84
101
  width: 100%;
85
102
  max-width: 1440px;
@@ -117,9 +134,11 @@ it('renders correctly', () => {
117
134
  }
118
135
 
119
136
  @media (min-width:740px) {
120
- .c8 {
121
- max-width: 290px;
122
- }
137
+
138
+ }
139
+
140
+ @media (min-width:1024px) {
141
+
123
142
  }
124
143
 
125
144
  @media (min-width:740px) {
@@ -160,18 +179,23 @@ it('renders correctly', () => {
160
179
  className="c8"
161
180
  >
162
181
 
163
- <input
164
- aria-describedby="search"
182
+ <div
165
183
  className="c9"
166
- id="search"
167
- name="search"
168
- onChange={[Function]}
169
- placeholder=""
170
- required={false}
171
- role="searchbox"
172
- type="text"
173
- value=""
174
- />
184
+ >
185
+ <input
186
+ aria-describedby="search"
187
+ className="c10"
188
+ id="search"
189
+ name="search"
190
+ onChange={[Function]}
191
+ placeholder=""
192
+ required={false}
193
+ role="searchbox"
194
+ type="text"
195
+ value=""
196
+ />
197
+
198
+ </div>
175
199
  </div>
176
200
 
177
201
  </label>
@@ -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
- .c5:focus {
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
- .c4 {
65
- max-width: 290px;
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
- <input
92
- aria-describedby="typeahead-test"
93
- autoComplete="off"
110
+ <div
94
111
  className="c5"
95
- defaultValue=""
96
- id="typeahead-test"
97
- name="q"
98
- onChange={[Function]}
99
- placeholder="Type to start searching..."
100
- required={false}
101
- type="text"
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>