pebble-web 2.11.1 → 2.12.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.
@@ -1,7 +1,19 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Component: Select multi-select: snapshot 1`] = `
4
- .emotion-2 {
4
+ .emotion-1 {
5
+ display: -webkit-box;
6
+ display: -webkit-flex;
7
+ display: -ms-flexbox;
8
+ display: flex;
9
+ -webkit-align-items: baseline;
10
+ -webkit-box-align: baseline;
11
+ -ms-flex-align: baseline;
12
+ align-items: baseline;
13
+ border-bottom: 1px solid #EDEDED;
14
+ }
15
+
16
+ .emotion-3 {
5
17
  height: 2px;
6
18
  background-color: #6161FF;
7
19
  margin-top: -2px;
@@ -12,12 +24,12 @@ exports[`Component: Select multi-select: snapshot 1`] = `
12
24
  z-index: 9;
13
25
  }
14
26
 
15
- .emotion-2._pebble_input_highlight_state,
16
- .emotion-2._pebble_input_highlight_focused {
27
+ .emotion-3._pebble_input_highlight_state,
28
+ .emotion-3._pebble_input_highlight_focused {
17
29
  width: 100%;
18
30
  }
19
31
 
20
- .emotion-1 {
32
+ .emotion-2 {
21
33
  color: #9FA6B0;
22
34
  font-size: 14px;
23
35
  line-height: 12px;
@@ -30,7 +42,7 @@ exports[`Component: Select multi-select: snapshot 1`] = `
30
42
  pointer-events: none;
31
43
  }
32
44
 
33
- .emotion-1._pebble_input_label_focused {
45
+ .emotion-2._pebble_input_label_focused {
34
46
  font-size: 12px;
35
47
  line-height: 10px;
36
48
  -webkit-transform: translate(0,0);
@@ -39,20 +51,20 @@ exports[`Component: Select multi-select: snapshot 1`] = `
39
51
  color: #6B7785;
40
52
  }
41
53
 
42
- .emotion-7 {
54
+ .emotion-8 {
43
55
  margin-bottom: 20px;
44
56
  }
45
57
 
46
- .emotion-6 {
58
+ .emotion-7 {
47
59
  position: relative;
48
60
  }
49
61
 
50
- .emotion-5 {
62
+ .emotion-6 {
51
63
  cursor: pointer;
52
64
  position: relative;
53
65
  }
54
66
 
55
- .emotion-4 {
67
+ .emotion-5 {
56
68
  position: absolute;
57
69
  top: 0;
58
70
  bottom: 0;
@@ -63,7 +75,7 @@ exports[`Component: Select multi-select: snapshot 1`] = `
63
75
  font-size: 10px;
64
76
  }
65
77
 
66
- .emotion-4.__pebble__select__open {
78
+ .emotion-5.__pebble__select__open {
67
79
  -webkit-transform: rotate(180deg);
68
80
  -ms-transform: rotate(180deg);
69
81
  transform: rotate(180deg);
@@ -72,7 +84,6 @@ exports[`Component: Select multi-select: snapshot 1`] = `
72
84
  .emotion-0 {
73
85
  outline: 0;
74
86
  border: 0;
75
- border-bottom: 1px solid #EDEDED;
76
87
  padding: 24px 0 12px 0;
77
88
  height: 48px;
78
89
  border-radius: 0;
@@ -124,7 +135,7 @@ exports[`Component: Select multi-select: snapshot 1`] = `
124
135
  color: #E0E0E0;
125
136
  }
126
137
 
127
- .emotion-3 {
138
+ .emotion-4 {
128
139
  position: relative;
129
140
  display: -webkit-box;
130
141
  display: -webkit-flex;
@@ -141,15 +152,15 @@ exports[`Component: Select multi-select: snapshot 1`] = `
141
152
  margin-bottom: 0;
142
153
  }
143
154
 
144
- .emotion-3._pebble_input_wrapper_textarea {
155
+ .emotion-4._pebble_input_wrapper_textarea {
145
156
  height: 110px;
146
157
  }
147
158
 
148
159
  <div
149
- className="emotion-7"
160
+ className="emotion-8"
150
161
  >
151
162
  <div
152
- className="emotion-6"
163
+ className="emotion-7"
153
164
  >
154
165
  <div
155
166
  style={
@@ -160,28 +171,32 @@ exports[`Component: Select multi-select: snapshot 1`] = `
160
171
  }
161
172
  >
162
173
  <div
163
- className="emotion-5"
174
+ className="emotion-6"
164
175
  onClick={[Function]}
165
176
  >
166
177
  <div
167
- className="emotion-3"
178
+ className="emotion-4"
168
179
  onBlur={[Function]}
169
180
  onFocus={[Function]}
170
181
  >
171
- <input
172
- aria-label="Choose Option"
173
- className="emotion-0"
174
- onChange={[Function]}
175
- readOnly={true}
176
- value=""
177
- />
178
- <label
182
+ <div
179
183
  className="emotion-1"
184
+ >
185
+ <input
186
+ aria-label="Choose Option"
187
+ className="emotion-0"
188
+ onChange={[Function]}
189
+ readOnly={true}
190
+ value=""
191
+ />
192
+ </div>
193
+ <label
194
+ className="emotion-2"
180
195
  >
181
196
  Choose Option
182
197
  </label>
183
198
  <div
184
- className="emotion-2 _pebble_input_highlight_read_only"
199
+ className="emotion-3 _pebble_input_highlight_read_only"
185
200
  style={
186
201
  Object {
187
202
  "backgroundColor": "#6161FF",
@@ -191,7 +206,7 @@ exports[`Component: Select multi-select: snapshot 1`] = `
191
206
 
192
207
  </div>
193
208
  <i
194
- className="emotion-4 pi pi-arrow-drop-down"
209
+ className="emotion-5 pi pi-arrow-drop-down"
195
210
  />
196
211
  </div>
197
212
  </div>
@@ -200,7 +215,19 @@ exports[`Component: Select multi-select: snapshot 1`] = `
200
215
  `;
201
216
 
202
217
  exports[`Component: Select single-select with searchbox: snapshot 1`] = `
203
- .emotion-2 {
218
+ .emotion-1 {
219
+ display: -webkit-box;
220
+ display: -webkit-flex;
221
+ display: -ms-flexbox;
222
+ display: flex;
223
+ -webkit-align-items: baseline;
224
+ -webkit-box-align: baseline;
225
+ -ms-flex-align: baseline;
226
+ align-items: baseline;
227
+ border-bottom: 1px solid #EDEDED;
228
+ }
229
+
230
+ .emotion-3 {
204
231
  height: 2px;
205
232
  background-color: #6161FF;
206
233
  margin-top: -2px;
@@ -211,12 +238,12 @@ exports[`Component: Select single-select with searchbox: snapshot 1`] = `
211
238
  z-index: 9;
212
239
  }
213
240
 
214
- .emotion-2._pebble_input_highlight_state,
215
- .emotion-2._pebble_input_highlight_focused {
241
+ .emotion-3._pebble_input_highlight_state,
242
+ .emotion-3._pebble_input_highlight_focused {
216
243
  width: 100%;
217
244
  }
218
245
 
219
- .emotion-1 {
246
+ .emotion-2 {
220
247
  color: #9FA6B0;
221
248
  font-size: 14px;
222
249
  line-height: 12px;
@@ -229,7 +256,7 @@ exports[`Component: Select single-select with searchbox: snapshot 1`] = `
229
256
  pointer-events: none;
230
257
  }
231
258
 
232
- .emotion-1._pebble_input_label_focused {
259
+ .emotion-2._pebble_input_label_focused {
233
260
  font-size: 12px;
234
261
  line-height: 10px;
235
262
  -webkit-transform: translate(0,0);
@@ -238,20 +265,20 @@ exports[`Component: Select single-select with searchbox: snapshot 1`] = `
238
265
  color: #6B7785;
239
266
  }
240
267
 
241
- .emotion-7 {
268
+ .emotion-8 {
242
269
  margin-bottom: 20px;
243
270
  }
244
271
 
245
- .emotion-6 {
272
+ .emotion-7 {
246
273
  position: relative;
247
274
  }
248
275
 
249
- .emotion-5 {
276
+ .emotion-6 {
250
277
  cursor: pointer;
251
278
  position: relative;
252
279
  }
253
280
 
254
- .emotion-4 {
281
+ .emotion-5 {
255
282
  position: absolute;
256
283
  top: 0;
257
284
  bottom: 0;
@@ -262,7 +289,7 @@ exports[`Component: Select single-select with searchbox: snapshot 1`] = `
262
289
  font-size: 10px;
263
290
  }
264
291
 
265
- .emotion-4.__pebble__select__open {
292
+ .emotion-5.__pebble__select__open {
266
293
  -webkit-transform: rotate(180deg);
267
294
  -ms-transform: rotate(180deg);
268
295
  transform: rotate(180deg);
@@ -271,7 +298,6 @@ exports[`Component: Select single-select with searchbox: snapshot 1`] = `
271
298
  .emotion-0 {
272
299
  outline: 0;
273
300
  border: 0;
274
- border-bottom: 1px solid #EDEDED;
275
301
  padding: 24px 0 12px 0;
276
302
  height: 48px;
277
303
  border-radius: 0;
@@ -323,7 +349,7 @@ exports[`Component: Select single-select with searchbox: snapshot 1`] = `
323
349
  color: #E0E0E0;
324
350
  }
325
351
 
326
- .emotion-3 {
352
+ .emotion-4 {
327
353
  position: relative;
328
354
  display: -webkit-box;
329
355
  display: -webkit-flex;
@@ -340,15 +366,15 @@ exports[`Component: Select single-select with searchbox: snapshot 1`] = `
340
366
  margin-bottom: 0;
341
367
  }
342
368
 
343
- .emotion-3._pebble_input_wrapper_textarea {
369
+ .emotion-4._pebble_input_wrapper_textarea {
344
370
  height: 110px;
345
371
  }
346
372
 
347
373
  <div
348
- className="emotion-7"
374
+ className="emotion-8"
349
375
  >
350
376
  <div
351
- className="emotion-6"
377
+ className="emotion-7"
352
378
  >
353
379
  <div
354
380
  style={
@@ -359,28 +385,32 @@ exports[`Component: Select single-select with searchbox: snapshot 1`] = `
359
385
  }
360
386
  >
361
387
  <div
362
- className="emotion-5"
388
+ className="emotion-6"
363
389
  onClick={[Function]}
364
390
  >
365
391
  <div
366
- className="emotion-3"
392
+ className="emotion-4"
367
393
  onBlur={[Function]}
368
394
  onFocus={[Function]}
369
395
  >
370
- <input
371
- aria-label="Choose Option"
372
- className="emotion-0"
373
- onChange={[Function]}
374
- readOnly={true}
375
- value=""
376
- />
377
- <label
396
+ <div
378
397
  className="emotion-1"
398
+ >
399
+ <input
400
+ aria-label="Choose Option"
401
+ className="emotion-0"
402
+ onChange={[Function]}
403
+ readOnly={true}
404
+ value=""
405
+ />
406
+ </div>
407
+ <label
408
+ className="emotion-2"
379
409
  >
380
410
  Choose Option
381
411
  </label>
382
412
  <div
383
- className="emotion-2 _pebble_input_highlight_read_only"
413
+ className="emotion-3 _pebble_input_highlight_read_only"
384
414
  style={
385
415
  Object {
386
416
  "backgroundColor": "#6161FF",
@@ -390,7 +420,7 @@ exports[`Component: Select single-select with searchbox: snapshot 1`] = `
390
420
 
391
421
  </div>
392
422
  <i
393
- className="emotion-4 pi pi-arrow-drop-down"
423
+ className="emotion-5 pi pi-arrow-drop-down"
394
424
  />
395
425
  </div>
396
426
  </div>
@@ -399,7 +429,19 @@ exports[`Component: Select single-select with searchbox: snapshot 1`] = `
399
429
  `;
400
430
 
401
431
  exports[`Component: Select single-select: snapshot 1`] = `
402
- .emotion-2 {
432
+ .emotion-1 {
433
+ display: -webkit-box;
434
+ display: -webkit-flex;
435
+ display: -ms-flexbox;
436
+ display: flex;
437
+ -webkit-align-items: baseline;
438
+ -webkit-box-align: baseline;
439
+ -ms-flex-align: baseline;
440
+ align-items: baseline;
441
+ border-bottom: 1px solid #EDEDED;
442
+ }
443
+
444
+ .emotion-3 {
403
445
  height: 2px;
404
446
  background-color: #6161FF;
405
447
  margin-top: -2px;
@@ -410,12 +452,12 @@ exports[`Component: Select single-select: snapshot 1`] = `
410
452
  z-index: 9;
411
453
  }
412
454
 
413
- .emotion-2._pebble_input_highlight_state,
414
- .emotion-2._pebble_input_highlight_focused {
455
+ .emotion-3._pebble_input_highlight_state,
456
+ .emotion-3._pebble_input_highlight_focused {
415
457
  width: 100%;
416
458
  }
417
459
 
418
- .emotion-1 {
460
+ .emotion-2 {
419
461
  color: #9FA6B0;
420
462
  font-size: 14px;
421
463
  line-height: 12px;
@@ -428,7 +470,7 @@ exports[`Component: Select single-select: snapshot 1`] = `
428
470
  pointer-events: none;
429
471
  }
430
472
 
431
- .emotion-1._pebble_input_label_focused {
473
+ .emotion-2._pebble_input_label_focused {
432
474
  font-size: 12px;
433
475
  line-height: 10px;
434
476
  -webkit-transform: translate(0,0);
@@ -437,20 +479,20 @@ exports[`Component: Select single-select: snapshot 1`] = `
437
479
  color: #6B7785;
438
480
  }
439
481
 
440
- .emotion-7 {
482
+ .emotion-8 {
441
483
  margin-bottom: 20px;
442
484
  }
443
485
 
444
- .emotion-6 {
486
+ .emotion-7 {
445
487
  position: relative;
446
488
  }
447
489
 
448
- .emotion-5 {
490
+ .emotion-6 {
449
491
  cursor: pointer;
450
492
  position: relative;
451
493
  }
452
494
 
453
- .emotion-4 {
495
+ .emotion-5 {
454
496
  position: absolute;
455
497
  top: 0;
456
498
  bottom: 0;
@@ -461,7 +503,7 @@ exports[`Component: Select single-select: snapshot 1`] = `
461
503
  font-size: 10px;
462
504
  }
463
505
 
464
- .emotion-4.__pebble__select__open {
506
+ .emotion-5.__pebble__select__open {
465
507
  -webkit-transform: rotate(180deg);
466
508
  -ms-transform: rotate(180deg);
467
509
  transform: rotate(180deg);
@@ -470,7 +512,6 @@ exports[`Component: Select single-select: snapshot 1`] = `
470
512
  .emotion-0 {
471
513
  outline: 0;
472
514
  border: 0;
473
- border-bottom: 1px solid #EDEDED;
474
515
  padding: 24px 0 12px 0;
475
516
  height: 48px;
476
517
  border-radius: 0;
@@ -522,7 +563,7 @@ exports[`Component: Select single-select: snapshot 1`] = `
522
563
  color: #E0E0E0;
523
564
  }
524
565
 
525
- .emotion-3 {
566
+ .emotion-4 {
526
567
  position: relative;
527
568
  display: -webkit-box;
528
569
  display: -webkit-flex;
@@ -539,15 +580,15 @@ exports[`Component: Select single-select: snapshot 1`] = `
539
580
  margin-bottom: 0;
540
581
  }
541
582
 
542
- .emotion-3._pebble_input_wrapper_textarea {
583
+ .emotion-4._pebble_input_wrapper_textarea {
543
584
  height: 110px;
544
585
  }
545
586
 
546
587
  <div
547
- className="emotion-7"
588
+ className="emotion-8"
548
589
  >
549
590
  <div
550
- className="emotion-6"
591
+ className="emotion-7"
551
592
  >
552
593
  <div
553
594
  style={
@@ -558,28 +599,32 @@ exports[`Component: Select single-select: snapshot 1`] = `
558
599
  }
559
600
  >
560
601
  <div
561
- className="emotion-5"
602
+ className="emotion-6"
562
603
  onClick={[Function]}
563
604
  >
564
605
  <div
565
- className="emotion-3"
606
+ className="emotion-4"
566
607
  onBlur={[Function]}
567
608
  onFocus={[Function]}
568
609
  >
569
- <input
570
- aria-label="Choose Option"
571
- className="emotion-0"
572
- onChange={[Function]}
573
- readOnly={true}
574
- value=""
575
- />
576
- <label
610
+ <div
577
611
  className="emotion-1"
612
+ >
613
+ <input
614
+ aria-label="Choose Option"
615
+ className="emotion-0"
616
+ onChange={[Function]}
617
+ readOnly={true}
618
+ value=""
619
+ />
620
+ </div>
621
+ <label
622
+ className="emotion-2"
578
623
  >
579
624
  Choose Option
580
625
  </label>
581
626
  <div
582
- className="emotion-2 _pebble_input_highlight_read_only"
627
+ className="emotion-3 _pebble_input_highlight_read_only"
583
628
  style={
584
629
  Object {
585
630
  "backgroundColor": "#6161FF",
@@ -589,7 +634,7 @@ exports[`Component: Select single-select: snapshot 1`] = `
589
634
 
590
635
  </div>
591
636
  <i
592
- className="emotion-4 pi pi-arrow-drop-down"
637
+ className="emotion-5 pi pi-arrow-drop-down"
593
638
  />
594
639
  </div>
595
640
  </div>
@@ -20,10 +20,15 @@ export const wrapperStyle = css({
20
20
  }
21
21
  });
22
22
 
23
+ export const inputWrapperStyle = css({
24
+ display: "flex",
25
+ alignItems: "baseline",
26
+ borderBottom: `1px solid ${colors.gray.lighter}`
27
+ });
28
+
23
29
  export const inputStyle = css({
24
30
  outline: 0,
25
31
  border: 0,
26
- borderBottom: `1px solid ${colors.gray.lighter}`,
27
32
  padding: "24px 0 12px 0",
28
33
  height: 48,
29
34
  borderRadius: 0,
@@ -91,13 +96,12 @@ export const labelStyle = css({
91
96
 
92
97
  export const messageStyle = css({
93
98
  ...typography.s.regular,
94
- marginTop: 10,
99
+ marginTop: 9,
95
100
  lineHeight: "10px",
96
101
  textAlign: "left"
97
102
  });
98
103
 
99
104
  export const loadingStyle = css({
100
- right: -10,
101
- top: 20,
102
- position: "absolute"
105
+ position: "relative",
106
+ top: 4
103
107
  });
@@ -11,12 +11,15 @@ export interface CommonInputProps {
11
11
  inputClassName?: string;
12
12
  highlightClassName?: string;
13
13
  loadingClassName?: string;
14
+ inputWrapperClassName?: string;
14
15
  loading?: boolean;
15
16
  message?: string;
16
17
  onClick?: React.MouseEventHandler<HTMLDivElement>;
17
18
  readOnly?: boolean;
18
19
  required?: boolean;
19
20
  successMessage?: string;
21
+ leftElement?: () => React.ReactNode;
22
+ rightElement?: () => React.ReactNode;
20
23
  }
21
24
 
22
25
  export type InputType =