@mrshmllw/smores-react 2.1.23 → 2.1.24

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 (27) hide show
  1. package/dist/ActionDropdown/__tests__/__snapshots__/ActionDropdown.js.snap +167 -0
  2. package/dist/Box/__tests__/__snapshots__/Box.js.snap +20 -0
  3. package/dist/Button/__tests__/__snapshots__/Button.js.snap +46 -0
  4. package/dist/Card/__tests__/__snapshots__/Card.js.snap +24 -0
  5. package/dist/CheckBox/__tests__/__snapshots__/CheckBox.js.snap +20 -0
  6. package/dist/Dropdown/__tests__/__snapshots__/Dropdown.js.snap +167 -0
  7. package/dist/Emoji/__tests__/__snapshots__/Emoji.js.snap +20 -0
  8. package/dist/Icon/__tests__/__snapshots__/Icon.js.snap +47 -0
  9. package/dist/IconWrapper/__tests__/__snapshots__/IconWrapper.js.snap +121 -0
  10. package/dist/LabelledText/__tests__/__snapshots__/LabelledText.js.snap +57 -0
  11. package/dist/Loader/__tests__/__snapshots__/Loader.js.snap +53 -0
  12. package/dist/Message/__tests__/__snapshots__/Message.js.snap +279 -0
  13. package/dist/Modal/__tests__/__snapshots__/Modal.js.snap +208 -0
  14. package/dist/NumberInput/__tests__/__snapshots__/NumberInput.js.snap +1398 -0
  15. package/dist/Pagination/__tests__/__snapshots__/Pagination.js.snap +273 -0
  16. package/dist/RadioButton/__tests__/__snapshots__/RadioButton.js.snap +146 -0
  17. package/dist/Row/__tests__/__snapshots__/Row.js.snap +96 -0
  18. package/dist/SearchInput/__tests__/__snapshots__/SearchInput.js.snap +146 -0
  19. package/dist/Tag/__tests__/__snapshots__/Tag.js.snap +54 -0
  20. package/dist/Text/Text.stories.d.ts +1 -0
  21. package/dist/Text/Text.stories.js +35 -0
  22. package/dist/Text/Text.stories.js.map +1 -1
  23. package/dist/Text/__tests__/__snapshots__/Text.js.snap +34 -0
  24. package/dist/TextInput/__tests__/__snapshots__/TextInput.js.snap +74 -0
  25. package/dist/Textarea/__tests__/__snapshots__/Textarea.js.snap +271 -0
  26. package/dist/Toggle/__tests__/__snapshots__/Toggle.js.snap +70 -0
  27. package/package.json +1 -1
@@ -0,0 +1,273 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders 1`] = `
4
+ .c0 {
5
+ display: -webkit-box;
6
+ display: -webkit-flex;
7
+ display: -ms-flexbox;
8
+ display: flex;
9
+ -webkit-flex-direction: row;
10
+ -ms-flex-direction: row;
11
+ flex-direction: row;
12
+ }
13
+
14
+ .c6 {
15
+ display: -webkit-box;
16
+ display: -webkit-flex;
17
+ display: -ms-flexbox;
18
+ display: flex;
19
+ -webkit-box-pack: center;
20
+ -webkit-justify-content: center;
21
+ -ms-flex-pack: center;
22
+ justify-content: center;
23
+ }
24
+
25
+ .c3 {
26
+ font-size: 14px;
27
+ line-height: 20px;
28
+ font-weight: 500;
29
+ margin: 0;
30
+ padding: 0;
31
+ color: #112035;
32
+ text-align: left;
33
+ cursor: inherit;
34
+ -webkit-letter-spacing: 0.15px;
35
+ -moz-letter-spacing: 0.15px;
36
+ -ms-letter-spacing: 0.15px;
37
+ letter-spacing: 0.15px;
38
+ }
39
+
40
+ .c5 {
41
+ font-size: 14px;
42
+ line-height: 20px;
43
+ font-weight: 400;
44
+ margin: 0;
45
+ padding: 0;
46
+ color: #112035;
47
+ text-align: left;
48
+ cursor: inherit;
49
+ -webkit-letter-spacing: 0.15px;
50
+ -moz-letter-spacing: 0.15px;
51
+ -ms-letter-spacing: 0.15px;
52
+ letter-spacing: 0.15px;
53
+ }
54
+
55
+ .c7 {
56
+ font-size: 14px;
57
+ line-height: 23px;
58
+ font-weight: 400;
59
+ margin: 0;
60
+ padding: 0;
61
+ color: #112035;
62
+ text-align: left;
63
+ cursor: inherit;
64
+ -webkit-letter-spacing: 0.15px;
65
+ -moz-letter-spacing: 0.15px;
66
+ -ms-letter-spacing: 0.15px;
67
+ letter-spacing: 0.15px;
68
+ }
69
+
70
+ .c8 {
71
+ display: -webkit-box;
72
+ display: -webkit-flex;
73
+ display: -ms-flexbox;
74
+ display: flex;
75
+ -webkit-align-items: center;
76
+ -webkit-box-align: center;
77
+ -ms-flex-align: center;
78
+ align-items: center;
79
+ -webkit-box-pack: center;
80
+ -webkit-justify-content: center;
81
+ -ms-flex-pack: center;
82
+ justify-content: center;
83
+ width: 100%;
84
+ max-width: 18px;
85
+ height: 18px;
86
+ -webkit-transform: rotate(180deg);
87
+ -ms-transform: rotate(180deg);
88
+ transform: rotate(180deg);
89
+ margin-top: 0;
90
+ margin-right: 0;
91
+ margin-bottom: 0;
92
+ margin-left: 0;
93
+ }
94
+
95
+ .c1 {
96
+ -webkit-align-items: center;
97
+ -webkit-box-align: center;
98
+ -ms-flex-align: center;
99
+ align-items: center;
100
+ height: 24px;
101
+ }
102
+
103
+ .c1 > div {
104
+ width: 24px;
105
+ margin-right: 4px;
106
+ }
107
+
108
+ .c1 > div:last-child {
109
+ margin-right: 0;
110
+ }
111
+
112
+ .c2 {
113
+ background: #F9F9F9;
114
+ cursor: pointer;
115
+ display: -webkit-box;
116
+ display: -webkit-flex;
117
+ display: -ms-flexbox;
118
+ display: flex;
119
+ -webkit-box-pack: center;
120
+ -webkit-justify-content: center;
121
+ -ms-flex-pack: center;
122
+ justify-content: center;
123
+ border-radius: 50%;
124
+ }
125
+
126
+ .c4 {
127
+ background: none;
128
+ cursor: pointer;
129
+ display: -webkit-box;
130
+ display: -webkit-flex;
131
+ display: -ms-flexbox;
132
+ display: flex;
133
+ -webkit-box-pack: center;
134
+ -webkit-justify-content: center;
135
+ -ms-flex-pack: center;
136
+ justify-content: center;
137
+ border-radius: 50%;
138
+ }
139
+
140
+ @media (min-width:768px) {
141
+ .c3 {
142
+ font-size: 16px;
143
+ line-height: 23px;
144
+ }
145
+ }
146
+
147
+ @media (min-width:768px) {
148
+ .c5 {
149
+ font-size: 16px;
150
+ line-height: 23px;
151
+ }
152
+ }
153
+
154
+ @media (min-width:768px) {
155
+ .c7 {
156
+ font-size: 16px;
157
+ line-height: 26px;
158
+ }
159
+ }
160
+
161
+ <div
162
+ class="c0 c1"
163
+ direction="row"
164
+ >
165
+ <div
166
+ class="c2"
167
+ >
168
+ <p
169
+ class="c3"
170
+ color="blue7"
171
+ cursor="inherit"
172
+ title=""
173
+ >
174
+ 1
175
+ </p>
176
+ </div>
177
+ <div
178
+ class="c4"
179
+ >
180
+ <p
181
+ class="c5"
182
+ color="blue7"
183
+ cursor="inherit"
184
+ title=""
185
+ >
186
+ 2
187
+ </p>
188
+ </div>
189
+ <div
190
+ class="c4"
191
+ >
192
+ <p
193
+ class="c5"
194
+ color="blue7"
195
+ cursor="inherit"
196
+ title=""
197
+ >
198
+ 3
199
+ </p>
200
+ </div>
201
+ <div
202
+ class="c4"
203
+ >
204
+ <p
205
+ class="c5"
206
+ color="blue7"
207
+ cursor="inherit"
208
+ title=""
209
+ >
210
+ 4
211
+ </p>
212
+ </div>
213
+ <div
214
+ class="c4"
215
+ >
216
+ <p
217
+ class="c5"
218
+ color="blue7"
219
+ cursor="inherit"
220
+ title=""
221
+ >
222
+ 5
223
+ </p>
224
+ </div>
225
+ <div
226
+ class="c6"
227
+ >
228
+ <p
229
+ class="c7"
230
+ color="blue7"
231
+ cursor="inherit"
232
+ title=""
233
+ >
234
+ ...
235
+ </p>
236
+ </div>
237
+ <div
238
+ class="c4"
239
+ >
240
+ <p
241
+ class="c5"
242
+ color="blue7"
243
+ cursor="inherit"
244
+ title=""
245
+ >
246
+ 11
247
+ </p>
248
+ </div>
249
+ <div
250
+ class="c4"
251
+ >
252
+ <span
253
+ class="c8"
254
+ color="blue7"
255
+ rotate="180"
256
+ size="18"
257
+ >
258
+ <svg
259
+ fill="none"
260
+ height="100%"
261
+ viewBox="0 0 24 24"
262
+ width="100%"
263
+ xmlns="http://www.w3.org/2000/svg"
264
+ >
265
+ <path
266
+ d="M2.087 12.401c.014.033.042.058.06.089a.99.99 0 00.177.238c.008.007.01.018.018.025l8 7a1 1 0 101.316-1.505L5.661 13H21a1 1 0 100-2H5.661l5.997-5.248a1 1 0 10-1.316-1.504l-8 7c-.008.007-.011.018-.018.025a.99.99 0 00-.177.238c-.018.031-.045.056-.06.089a.97.97 0 000 .801z"
267
+ fill="#112035"
268
+ />
269
+ </svg>
270
+ </span>
271
+ </div>
272
+ </div>
273
+ `;
@@ -0,0 +1,146 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders - checked 1`] = `
4
+ .c0 {
5
+ display: -webkit-box;
6
+ display: -webkit-flex;
7
+ display: -ms-flexbox;
8
+ display: flex;
9
+ -webkit-align-items: center;
10
+ -webkit-box-align: center;
11
+ -ms-flex-align: center;
12
+ align-items: center;
13
+ }
14
+
15
+ .c3 {
16
+ width: 24px;
17
+ height: 24px;
18
+ border-radius: 50%;
19
+ background-color: #ffffff;
20
+ margin-right: 10px;
21
+ border: 8px solid #55D6AA;
22
+ }
23
+
24
+ .c1 {
25
+ position: absolute;
26
+ opacity: 0;
27
+ height: 0;
28
+ width: 0;
29
+ }
30
+
31
+ .c2 {
32
+ font-family: 'Gordita',sans-serif;
33
+ text-transform: none;
34
+ font-size: 16px;
35
+ line-height: 17px;
36
+ color: #112035;
37
+ margin-bottom: 0;
38
+ display: -webkit-box;
39
+ display: -webkit-flex;
40
+ display: -ms-flexbox;
41
+ display: flex;
42
+ cursor: pointer;
43
+ }
44
+
45
+ .c4 {
46
+ position: relative;
47
+ bottom: -5px;
48
+ }
49
+
50
+ <div
51
+ class="c0"
52
+ >
53
+ <input
54
+ checked=""
55
+ class="c1"
56
+ id="radioButtonOne"
57
+ type="radio"
58
+ value="true"
59
+ />
60
+ <label
61
+ class="c2"
62
+ for="radioButtonOne"
63
+ >
64
+ <div
65
+ class="c3"
66
+ />
67
+ <span
68
+ class="c4"
69
+ >
70
+ What a lovely label
71
+ </span>
72
+ </label>
73
+ </div>
74
+ `;
75
+
76
+ exports[`renders - unchecked 1`] = `
77
+ .c0 {
78
+ display: -webkit-box;
79
+ display: -webkit-flex;
80
+ display: -ms-flexbox;
81
+ display: flex;
82
+ -webkit-align-items: center;
83
+ -webkit-box-align: center;
84
+ -ms-flex-align: center;
85
+ align-items: center;
86
+ }
87
+
88
+ .c3 {
89
+ width: 24px;
90
+ height: 24px;
91
+ border-radius: 50%;
92
+ background-color: #ffffff;
93
+ margin-right: 10px;
94
+ border: 1px solid #D2D2D2;
95
+ }
96
+
97
+ .c1 {
98
+ position: absolute;
99
+ opacity: 0;
100
+ height: 0;
101
+ width: 0;
102
+ }
103
+
104
+ .c2 {
105
+ font-family: 'Gordita',sans-serif;
106
+ text-transform: none;
107
+ font-size: 16px;
108
+ line-height: 17px;
109
+ color: #112035;
110
+ margin-bottom: 0;
111
+ display: -webkit-box;
112
+ display: -webkit-flex;
113
+ display: -ms-flexbox;
114
+ display: flex;
115
+ cursor: pointer;
116
+ }
117
+
118
+ .c4 {
119
+ position: relative;
120
+ bottom: -5px;
121
+ }
122
+
123
+ <div
124
+ class="c0"
125
+ >
126
+ <input
127
+ class="c1"
128
+ id="radioButtonOne"
129
+ type="radio"
130
+ value="false"
131
+ />
132
+ <label
133
+ class="c2"
134
+ for="radioButtonOne"
135
+ >
136
+ <div
137
+ class="c3"
138
+ />
139
+ <span
140
+ class="c4"
141
+ >
142
+ What a lovely label
143
+ </span>
144
+ </label>
145
+ </div>
146
+ `;
@@ -0,0 +1,96 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`default renders correctly 1`] = `
4
+ .c1 {
5
+ font-size: 14px;
6
+ line-height: 23px;
7
+ font-weight: 400;
8
+ margin: 0;
9
+ padding: 0;
10
+ color: #112035;
11
+ text-align: left;
12
+ cursor: inherit;
13
+ -webkit-letter-spacing: 0.15px;
14
+ -moz-letter-spacing: 0.15px;
15
+ -ms-letter-spacing: 0.15px;
16
+ letter-spacing: 0.15px;
17
+ }
18
+
19
+ .c2 {
20
+ font-size: 12px;
21
+ line-height: 16px;
22
+ font-weight: 400;
23
+ margin: 0;
24
+ padding: 0;
25
+ color: #636768;
26
+ text-align: left;
27
+ cursor: inherit;
28
+ -webkit-letter-spacing: 0.15px;
29
+ -moz-letter-spacing: 0.15px;
30
+ -ms-letter-spacing: 0.15px;
31
+ letter-spacing: 0.15px;
32
+ }
33
+
34
+ .c0 {
35
+ border-radius: 0;
36
+ border: 1px solid #D2D2D2;
37
+ display: grid;
38
+ grid-template-columns: auto 24px;
39
+ padding: 16px;
40
+ grid-gap: 16px;
41
+ -webkit-align-items: center;
42
+ -webkit-box-align: center;
43
+ -ms-flex-align: center;
44
+ align-items: center;
45
+ cursor: pointer;
46
+ }
47
+
48
+ .c0 .iconRight {
49
+ justify-self: end;
50
+ }
51
+
52
+ @media (min-width:768px) {
53
+ .c1 {
54
+ font-size: 16px;
55
+ line-height: 26px;
56
+ }
57
+ }
58
+
59
+ @media (min-width:768px) {
60
+ .c2 {
61
+ font-size: 14px;
62
+ line-height: 18px;
63
+ }
64
+ }
65
+
66
+ @media (min-width:768px) {
67
+ .c0 {
68
+ grid-gap: 24px;
69
+ }
70
+ }
71
+
72
+ <div>
73
+ <div
74
+ class="c0"
75
+ >
76
+ <div
77
+ class=""
78
+ >
79
+ <h1
80
+ class="c1"
81
+ color="blue7"
82
+ cursor="inherit"
83
+ title=""
84
+ >
85
+ This is a Row with a heading
86
+ </h1>
87
+ <p
88
+ class="c2"
89
+ color="grey8"
90
+ cursor="inherit"
91
+ title=""
92
+ />
93
+ </div>
94
+ </div>
95
+ </div>
96
+ `;
@@ -0,0 +1,146 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders 1`] = `
4
+ .c2 {
5
+ font-size: 8px;
6
+ line-height: 100%;
7
+ font-weight: 700;
8
+ text-transform: uppercase;
9
+ -webkit-letter-spacing: 0.75px;
10
+ -moz-letter-spacing: 0.75px;
11
+ -ms-letter-spacing: 0.75px;
12
+ letter-spacing: 0.75px;
13
+ margin: 0;
14
+ padding: 0;
15
+ color: #D2D2D2;
16
+ text-align: left;
17
+ cursor: inherit;
18
+ -webkit-letter-spacing: 0.15px;
19
+ -moz-letter-spacing: 0.15px;
20
+ -ms-letter-spacing: 0.15px;
21
+ letter-spacing: 0.15px;
22
+ }
23
+
24
+ .c1 {
25
+ margin-bottom: 0px;
26
+ }
27
+
28
+ .c0 {
29
+ position: relative;
30
+ width: 100%;
31
+ background: #ffffff;
32
+ }
33
+
34
+ .c3 {
35
+ display: block;
36
+ border: none;
37
+ border-bottom: 1px solid #D2D2D2;
38
+ outline: none;
39
+ color: #112035;
40
+ font-size: 16px;
41
+ height: 32px;
42
+ width: 100%;
43
+ box-sizing: border-box;
44
+ }
45
+
46
+ .c3::-webkit-input-placeholder {
47
+ color: #D2D2D2;
48
+ }
49
+
50
+ .c3::-moz-placeholder {
51
+ color: #D2D2D2;
52
+ }
53
+
54
+ .c3:-ms-input-placeholder {
55
+ color: #D2D2D2;
56
+ }
57
+
58
+ .c3::placeholder {
59
+ color: #D2D2D2;
60
+ }
61
+
62
+ .c3:hover,
63
+ .c3:focus,
64
+ .c3:focus-visible {
65
+ border-color: #9E9E9E;
66
+ }
67
+
68
+ .c4 {
69
+ box-sizing: border-box;
70
+ overflow-y: hidden;
71
+ position: absolute;
72
+ width: 100%;
73
+ visibility: hidden;
74
+ }
75
+
76
+ .c4 ul {
77
+ max-height: 0px;
78
+ }
79
+
80
+ .c5 {
81
+ position: relative;
82
+ list-style: none;
83
+ overflow-y: auto;
84
+ padding: 0;
85
+ margin: 0;
86
+ background-color: #ffffff;
87
+ border: 1px solid #D2D2D2;
88
+ border-bottom-left-radius: 8px;
89
+ border-bottom-right-radius: 8px;
90
+ z-index: 1000;
91
+ }
92
+
93
+ .c5 li {
94
+ padding: 16px 14px;
95
+ box-sizing: border-box;
96
+ font-size: 16px;
97
+ color: #112035;
98
+ cursor: pointer;
99
+ }
100
+
101
+ .c5 li:hover {
102
+ background-color: #F8F6F6;
103
+ }
104
+
105
+ @media (min-width:768px) {
106
+ .c2 {
107
+ font-size: 10px;
108
+ }
109
+ }
110
+
111
+ <div
112
+ class="c0"
113
+ >
114
+ <div
115
+ class="c1"
116
+ >
117
+ <label
118
+ class="c2"
119
+ color="grey4"
120
+ cursor="inherit"
121
+ title=""
122
+ >
123
+ Days
124
+ </label>
125
+ </div>
126
+ <input
127
+ autocomplete="off"
128
+ class="c3"
129
+ id="days"
130
+ name="search_input"
131
+ type="text"
132
+ value=""
133
+ />
134
+ <div
135
+ class="c4"
136
+ >
137
+ <ul
138
+ class="c5"
139
+ >
140
+ <li>
141
+ No results
142
+ </li>
143
+ </ul>
144
+ </div>
145
+ </div>
146
+ `;
@@ -0,0 +1,54 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders 1`] = `
4
+ .c1 {
5
+ font-size: 8px;
6
+ line-height: 100%;
7
+ font-weight: 700;
8
+ text-transform: uppercase;
9
+ -webkit-letter-spacing: 0.75px;
10
+ -moz-letter-spacing: 0.75px;
11
+ -ms-letter-spacing: 0.75px;
12
+ letter-spacing: 0.75px;
13
+ margin: 0;
14
+ padding: 0;
15
+ color: #B52525;
16
+ text-align: left;
17
+ cursor: inherit;
18
+ -webkit-letter-spacing: 0.15px;
19
+ -moz-letter-spacing: 0.15px;
20
+ -ms-letter-spacing: 0.15px;
21
+ letter-spacing: 0.15px;
22
+ }
23
+
24
+ .c0 {
25
+ display: inline-block;
26
+ border: 1px solid;
27
+ padding: 2px 13px 4px 13px;
28
+ border-radius: 8px;
29
+ }
30
+
31
+ .c2 {
32
+ font-weight: 500;
33
+ text-transform: uppercase;
34
+ }
35
+
36
+ @media (min-width:768px) {
37
+ .c1 {
38
+ font-size: 10px;
39
+ }
40
+ }
41
+
42
+ <div
43
+ class="c0"
44
+ >
45
+ <span
46
+ class="c1 c2"
47
+ color="red7"
48
+ cursor="inherit"
49
+ title=""
50
+ >
51
+ Cancelled - Refunded Manually
52
+ </span>
53
+ </div>
54
+ `;
@@ -8,3 +8,4 @@ export default _default;
8
8
  export declare const Default: any;
9
9
  export declare const Label: any;
10
10
  export declare const WithTitle: any;
11
+ export declare const Collection: any;