@sproutsocial/racine 11.6.1 → 11.7.0-input-beta.4

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 (35) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/__flow__/Checkbox/styles.js +75 -75
  3. package/__flow__/Collapsible/index.js +3 -2
  4. package/__flow__/Image/index.js +10 -2
  5. package/__flow__/Input/index.js +47 -23
  6. package/__flow__/Input/index.stories.js +14 -0
  7. package/__flow__/Input/index.test.js +20 -0
  8. package/__flow__/Input/styles.js +2 -2
  9. package/__flow__/SegmentedControl/index.js +3 -2
  10. package/__flow__/TableCell/index.js +9 -2
  11. package/__flow__/ToggleHint/index.js +9 -2
  12. package/__flow__/systemProps/color.js +1 -2
  13. package/__flow__/themes/extendedThemes/sproutTheme/dark/theme.js +12 -0
  14. package/__flow__/themes/extendedThemes/sproutTheme/light/theme.js +12 -0
  15. package/__flow__/themes/{dark → utils}/_themed.scss +4 -3
  16. package/__flow__/types/theme.flow.js +5 -1
  17. package/__flow__/utils/responsiveProps/index.test.js +10 -2
  18. package/commonjs/Input/index.js +40 -22
  19. package/commonjs/Input/styles.js +2 -2
  20. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +14 -2
  21. package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +14 -2
  22. package/dist/themes/dark/_themed.scss +4 -3
  23. package/dist/themes/dark/{dark.scss → theme.scss} +1 -1
  24. package/{__flow__/themes/light → dist/themes/extendedThemes/sproutTheme/dark}/_themed.scss +4 -3
  25. package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +692 -0
  26. package/dist/themes/extendedThemes/sproutTheme/light/_themed.scss +119 -0
  27. package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +692 -0
  28. package/dist/themes/light/_themed.scss +4 -3
  29. package/dist/themes/light/{light.scss → theme.scss} +1 -1
  30. package/lib/Input/index.js +40 -22
  31. package/lib/Input/styles.js +2 -2
  32. package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +12 -1
  33. package/lib/themes/extendedThemes/sproutTheme/light/theme.js +12 -1
  34. package/lib/types/theme.flow.js +1 -1
  35. package/package.json +3 -2
@@ -0,0 +1,692 @@
1
+ $theme: (
2
+ __esModule: true,
3
+ datePicker: (
4
+ comparison: (
5
+ background: (
6
+ base: #b0b6b7
7
+ ),
8
+ text: (
9
+ base: #364141
10
+ )
11
+ )
12
+ ),
13
+ default: (
14
+ utils: (
15
+
16
+ ),
17
+ breakpoints: (900px, 1200px, 1500px, 1800px),
18
+ colors: (
19
+ app: (
20
+ background: (
21
+ base: #f3f4f4
22
+ )
23
+ ),
24
+ container: (
25
+ background: (
26
+ base: #FFFFFF,
27
+ success: #d7f4d7,
28
+ warning: #fdefcd,
29
+ error: #ffd5d2,
30
+ info: #dcf2ff,
31
+ opportunity: #eaeaf9,
32
+ danger: #ffd5d2,
33
+ decorative: (
34
+ green: #d7f4d7,
35
+ blue: #dcf2ff,
36
+ purple: #eaeaf9,
37
+ yellow: #fdefcd,
38
+ orange: #fcdccc,
39
+ red: #ffd5d2,
40
+ neutral: #f3f4f4
41
+ ),
42
+ selected: #364141,
43
+ positive_sentiment: #3896e3,
44
+ negative_sentiment: #f76054,
45
+ neutral_sentiment: #c8cccc
46
+ ),
47
+ border: (
48
+ base: #dee1e1,
49
+ success: #59cb59,
50
+ warning: #ffbc00,
51
+ error: #ed4c42,
52
+ danger: #ed4c42,
53
+ info: #2b87d3,
54
+ opportunity: #9180f4,
55
+ decorative: (
56
+ green: #59cb59,
57
+ blue: #2b87d3,
58
+ purple: #9180f4,
59
+ yellow: #ffbc00,
60
+ orange: #f57d33,
61
+ red: #ed4c42,
62
+ neutral: #929a9b
63
+ ),
64
+ selected: #364141
65
+ )
66
+ ),
67
+ button: (
68
+ primary: (
69
+ background: (
70
+ base: #2079c3,
71
+ hover: #116daa,
72
+ active: #0c5689
73
+ ),
74
+ border: (
75
+ base: transparent
76
+ ),
77
+ text: (
78
+ base: #FFFFFF,
79
+ hover: #FFFFFF
80
+ )
81
+ ),
82
+ secondary: (
83
+ background: (
84
+ base: transparent,
85
+ hover: #364141,
86
+ active: #273333
87
+ ),
88
+ border: (
89
+ base: #364141
90
+ ),
91
+ text: (
92
+ base: #364141,
93
+ hover: #FFFFFF
94
+ )
95
+ ),
96
+ pill: (
97
+ background: (
98
+ base: transparent,
99
+ hover: #f3f4f4,
100
+ active: #dee1e1
101
+ ),
102
+ border: (
103
+ base: transparent
104
+ ),
105
+ text: (
106
+ base: #364141,
107
+ hover: #273333
108
+ )
109
+ ),
110
+ destructive: (
111
+ background: (
112
+ base: #c63434,
113
+ hover: #992222,
114
+ active: #6d1313
115
+ ),
116
+ border: (
117
+ base: transparent
118
+ ),
119
+ text: (
120
+ base: #FFFFFF,
121
+ hover: #FFFFFF
122
+ )
123
+ ),
124
+ placeholder: (
125
+ background: (
126
+ base: transparent,
127
+ hover: #FFFFFF,
128
+ active: #FFFFFF
129
+ ),
130
+ border: (
131
+ base: #929a9b
132
+ ),
133
+ text: (
134
+ base: #2079c3,
135
+ hover: #116daa
136
+ )
137
+ ),
138
+ unstyled: (
139
+ background: (
140
+ base: transparent
141
+ ),
142
+ border: (
143
+ base: transparent
144
+ ),
145
+ text: (
146
+ base: #515e5f,
147
+ hover: #273333
148
+ )
149
+ )
150
+ ),
151
+ link: (
152
+ base: #116daa,
153
+ hover: #0c5689
154
+ ),
155
+ text: (
156
+ headline: #273333,
157
+ subtext: #515e5f,
158
+ body: #364141,
159
+ inverse: #FFFFFF,
160
+ error: #c63434,
161
+ background: (
162
+ highlight: #ffe99a
163
+ )
164
+ ),
165
+ icon: (
166
+ base: #364141,
167
+ inverse: #FFFFFF,
168
+ success: #006b40,
169
+ warning: #944c0c,
170
+ error: #992222,
171
+ danger: #992222,
172
+ info: #0c5689,
173
+ opportunity: #5e4eba,
174
+ applied: #2079c3,
175
+ positive_sentiment: #2079c3,
176
+ negative_sentiment: #ed4c42,
177
+ neutral_sentiment: #6e797a
178
+ ),
179
+ form: (
180
+ background: (
181
+ base: #FFFFFF,
182
+ selected: #364141
183
+ ),
184
+ border: (
185
+ base: #b0b6b7,
186
+ error: #ed4c42,
187
+ warning: #ffbc00,
188
+ selected: #364141
189
+ ),
190
+ placeholder: (
191
+ base: #6e797a
192
+ )
193
+ ),
194
+ listItem: (
195
+ background: (
196
+ base: transparent,
197
+ hover: #f3f4f4,
198
+ selected: #364141
199
+ )
200
+ ),
201
+ overlay: (
202
+ background: (
203
+ base: rgba(22,32,32,0.56)
204
+ ),
205
+ text: (
206
+ base: #FFFFFF
207
+ ),
208
+ icon: (
209
+ base: #FFFFFF
210
+ )
211
+ ),
212
+ elevation: (
213
+ base: #2733333D
214
+ ),
215
+ network: (
216
+ twitter: #1da1f2,
217
+ twitter_like: #e0245e,
218
+ facebook: #217bee,
219
+ facebook_audience_network: #58409B,
220
+ linkedin: #0A66C2,
221
+ instagram: #e4405f,
222
+ feedly: #2bb24c,
223
+ analytics: #ef6c00,
224
+ youtube: #ff0000,
225
+ messenger: #0084ff,
226
+ snapchat: #fffc00,
227
+ pinterest: #E60023,
228
+ tumblr: #35465c,
229
+ reddit: #ff4500,
230
+ tripadvisor: #00B087,
231
+ glassdoor: #0CAA41,
232
+ google_my_business: #4285F4,
233
+ google_business_messages: #1A73EA,
234
+ salesforce: #1589EE,
235
+ zendesk: #03363D,
236
+ hubspot: #FF7A59,
237
+ microsoft_dynamics: #002050,
238
+ yelp: #FF1A1A,
239
+ whatsapp: #25D366,
240
+ tiktok: #000000
241
+ ),
242
+ dataviz: (
243
+ map: (
244
+ 1: #08c4b2,
245
+ 2: #6f5ed3,
246
+ 3: #ce3665,
247
+ 4: #ffcd1c,
248
+ 5: #3896e3,
249
+ 6: #db61db,
250
+ 7: #59cb59,
251
+ 8: #fc8943,
252
+ 9: #db3e3e,
253
+ 10: #026661,
254
+ 11: #a193f2,
255
+ 12: #931847,
256
+ 13: #944c0c,
257
+ 14: #0c5689,
258
+ 15: #6c2277,
259
+ 16: #006b40,
260
+ 17: #962c0b,
261
+ 18: #ff7f6e,
262
+ 19: #0ca750,
263
+ 20: #ba7506
264
+ ),
265
+ list: (#08c4b2, #6f5ed3, #ce3665, #ffcd1c, #3896e3, #db61db, #59cb59, #fc8943, #db3e3e, #026661, #a193f2, #931847, #944c0c, #0c5689, #6c2277, #006b40, #962c0b, #ff7f6e, #0ca750, #ba7506)
266
+ ),
267
+ neutral: (
268
+ 0: #FFFFFF,
269
+ 100: #f3f4f4,
270
+ 200: #dee1e1,
271
+ 300: #c8cccc,
272
+ 400: #b0b6b7,
273
+ 500: #929a9b,
274
+ 600: #6e797a,
275
+ 700: #515e5f,
276
+ 800: #364141,
277
+ 900: #273333,
278
+ 1000: #162020,
279
+ 1100: #040404
280
+ ),
281
+ green: (
282
+ 0: #ebf9eb,
283
+ 100: #d7f4d7,
284
+ 200: #c2f2bd,
285
+ 300: #98e58e,
286
+ 400: #75dd66,
287
+ 500: #59cb59,
288
+ 600: #2bb656,
289
+ 700: #0ca750,
290
+ 800: #008b46,
291
+ 900: #006b40,
292
+ 1000: #08422f,
293
+ 1100: #002b20
294
+ ),
295
+ red: (
296
+ 0: #ffeae9,
297
+ 100: #ffd5d2,
298
+ 200: #ffb8b1,
299
+ 300: #ff9c8f,
300
+ 400: #ff7f6e,
301
+ 500: #f76054,
302
+ 600: #ed4c42,
303
+ 700: #db3e3e,
304
+ 800: #c63434,
305
+ 900: #992222,
306
+ 1000: #6d1313,
307
+ 1100: #2b1111
308
+ ),
309
+ blue: (
310
+ 0: #e9f8ff,
311
+ 100: #dcf2ff,
312
+ 200: #c7e4f9,
313
+ 300: #a1d2f8,
314
+ 400: #56adf5,
315
+ 500: #3896e3,
316
+ 600: #2b87d3,
317
+ 700: #2079c3,
318
+ 800: #116daa,
319
+ 900: #0c5689,
320
+ 1000: #0a3960,
321
+ 1100: #002138
322
+ ),
323
+ teal: (
324
+ 0: #e5f9f5,
325
+ 100: #cdf7ef,
326
+ 200: #b3f2e6,
327
+ 300: #7dead5,
328
+ 400: #24e0c5,
329
+ 500: #08c4b2,
330
+ 600: #00a99c,
331
+ 700: #0b968f,
332
+ 800: #067c7c,
333
+ 900: #026661,
334
+ 1000: #083f3f,
335
+ 1100: #002528
336
+ ),
337
+ aqua: (
338
+ 0: #d9fcfb,
339
+ 100: #c5f9f9,
340
+ 200: #a5f2f2,
341
+ 300: #76e5e2,
342
+ 400: #33d6e2,
343
+ 500: #17b8ce,
344
+ 600: #0797ae,
345
+ 700: #0b8599,
346
+ 800: #0f6e84,
347
+ 900: #035e73,
348
+ 1000: #083d4f,
349
+ 1100: #002838
350
+ ),
351
+ purple: (
352
+ 0: #f2f2f9,
353
+ 100: #eaeaf9,
354
+ 200: #d8d7f9,
355
+ 300: #c1c1f7,
356
+ 400: #a193f2,
357
+ 500: #9180f4,
358
+ 600: #816fea,
359
+ 700: #6f5ed3,
360
+ 800: #5e4eba,
361
+ 900: #483a9c,
362
+ 1000: #2d246b,
363
+ 1100: #1d1d38
364
+ ),
365
+ magenta: (
366
+ 0: #fef0ff,
367
+ 100: #f9e3fc,
368
+ 200: #f4c4f7,
369
+ 300: #edadf2,
370
+ 400: #f282f5,
371
+ 500: #db61db,
372
+ 600: #c44eb9,
373
+ 700: #ac44a8,
374
+ 800: #8f3896,
375
+ 900: #6c2277,
376
+ 1000: #451551,
377
+ 1100: #29192d
378
+ ),
379
+ yellow: (
380
+ 0: #fff8e2,
381
+ 100: #fdefcd,
382
+ 200: #ffe99a,
383
+ 300: #ffe16e,
384
+ 400: #ffd943,
385
+ 500: #ffcd1c,
386
+ 600: #ffbc00,
387
+ 700: #dd9903,
388
+ 800: #ba7506,
389
+ 900: #944c0c,
390
+ 1000: #542a00,
391
+ 1100: #2d1a05
392
+ ),
393
+ pink: (
394
+ 0: #ffe9f3,
395
+ 100: #fcdbeb,
396
+ 200: #ffb5d5,
397
+ 300: #ff95c1,
398
+ 400: #ff76ae,
399
+ 500: #ef588b,
400
+ 600: #e0447c,
401
+ 700: #ce3665,
402
+ 800: #b22f5b,
403
+ 900: #931847,
404
+ 1000: #561231,
405
+ 1100: #2b1721
406
+ ),
407
+ orange: (
408
+ 0: #ffede3,
409
+ 100: #fcdccc,
410
+ 200: #ffc6a4,
411
+ 300: #ffb180,
412
+ 400: #ff9c5d,
413
+ 500: #fc8943,
414
+ 600: #f57d33,
415
+ 700: #ed7024,
416
+ 800: #ce5511,
417
+ 900: #962c0b,
418
+ 1000: #601700,
419
+ 1100: #2d130e
420
+ ),
421
+ DATAVIZ_COLORS_LIST: (#08c4b2, #6f5ed3, #ce3665, #ffcd1c, #3896e3, #db61db, #59cb59, #fc8943, #db3e3e, #026661, #a193f2, #931847, #944c0c, #0c5689, #6c2277, #006b40, #962c0b, #ff7f6e, #0ca750, #ba7506),
422
+ DATAVIZ_COLORS_MAP: (
423
+ 1: #08c4b2,
424
+ 2: #6f5ed3,
425
+ 3: #ce3665,
426
+ 4: #ffcd1c,
427
+ 5: #3896e3,
428
+ 6: #db61db,
429
+ 7: #59cb59,
430
+ 8: #fc8943,
431
+ 9: #db3e3e,
432
+ 10: #026661,
433
+ 11: #a193f2,
434
+ 12: #931847,
435
+ 13: #944c0c,
436
+ 14: #0c5689,
437
+ 15: #6c2277,
438
+ 16: #006b40,
439
+ 17: #962c0b,
440
+ 18: #ff7f6e,
441
+ 19: #0ca750,
442
+ 20: #ba7506
443
+ ),
444
+ navigation: (
445
+ main: (
446
+ background: (
447
+ base: #273333,
448
+ overflowGradient: #162020
449
+ )
450
+ ),
451
+ secondary: (
452
+ background: (
453
+ base: #364141
454
+ )
455
+ ),
456
+ text: (
457
+ base: #FFFFFF,
458
+ hover: #FFFFFF
459
+ ),
460
+ icon: (
461
+ base: #FFFFFF,
462
+ hover: #FFFFFF
463
+ ),
464
+ listItem: (
465
+ background: (
466
+ base: #364141,
467
+ hover: #162020,
468
+ selected: #515e5f
469
+ )
470
+ )
471
+ ),
472
+ datePicker: (
473
+ comparison: (
474
+ background: (
475
+ base: #b0b6b7
476
+ ),
477
+ text: (
478
+ base: #364141
479
+ )
480
+ )
481
+ )
482
+ ),
483
+ typography: (
484
+ 100: (
485
+ fontSize: 11px,
486
+ lineHeight: 18.666666666666668px
487
+ ),
488
+ 200: (
489
+ fontSize: 13px,
490
+ lineHeight: 21.333333333333332px
491
+ ),
492
+ 300: (
493
+ fontSize: 16px,
494
+ lineHeight: 24px
495
+ ),
496
+ 400: (
497
+ fontSize: 18px,
498
+ lineHeight: 26.666666666666668px
499
+ ),
500
+ 500: (
501
+ fontSize: 21px,
502
+ lineHeight: 29.333333333333332px
503
+ ),
504
+ 600: (
505
+ fontSize: 24px,
506
+ lineHeight: 32px
507
+ ),
508
+ 700: (
509
+ fontSize: 32px,
510
+ lineHeight: 40px
511
+ ),
512
+ 800: (
513
+ fontSize: 43px,
514
+ lineHeight: 50.666666666666664px
515
+ ),
516
+ 900: (
517
+ fontSize: 57px,
518
+ lineHeight: 64px
519
+ ),
520
+ 1000: (
521
+ fontSize: 76px,
522
+ lineHeight: 80px
523
+ ),
524
+ 1100: (
525
+ fontSize: 101px,
526
+ lineHeight: 101.33333333333333px
527
+ ),
528
+ 1200: (
529
+ fontSize: 135px,
530
+ lineHeight: 125.33333333333333px
531
+ ),
532
+ typography: (
533
+ 100: (
534
+ fontSize: 11px,
535
+ lineHeight: 18.666666666666668px
536
+ ),
537
+ 200: (
538
+ fontSize: 13px,
539
+ lineHeight: 21.333333333333332px
540
+ ),
541
+ 300: (
542
+ fontSize: 16px,
543
+ lineHeight: 24px
544
+ ),
545
+ 400: (
546
+ fontSize: 18px,
547
+ lineHeight: 26.666666666666668px
548
+ ),
549
+ 500: (
550
+ fontSize: 21px,
551
+ lineHeight: 29.333333333333332px
552
+ ),
553
+ 600: (
554
+ fontSize: 24px,
555
+ lineHeight: 32px
556
+ ),
557
+ 700: (
558
+ fontSize: 32px,
559
+ lineHeight: 40px
560
+ ),
561
+ 800: (
562
+ fontSize: 43px,
563
+ lineHeight: 50.666666666666664px
564
+ ),
565
+ 900: (
566
+ fontSize: 57px,
567
+ lineHeight: 64px
568
+ ),
569
+ 1000: (
570
+ fontSize: 76px,
571
+ lineHeight: 80px
572
+ ),
573
+ 1100: (
574
+ fontSize: 101px,
575
+ lineHeight: 101.33333333333333px
576
+ ),
577
+ 1200: (
578
+ fontSize: 135px,
579
+ lineHeight: 125.33333333333333px
580
+ )
581
+ )
582
+ ),
583
+ fontFamily: "system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif",
584
+ fontWeights: (
585
+ normal: 400,
586
+ semibold: 600,
587
+ bold: 700,
588
+ extrabold: 800
589
+ ),
590
+ space: (
591
+ 0: 0px,
592
+ 100: 2px,
593
+ 200: 4px,
594
+ 300: 8px,
595
+ 350: 12px,
596
+ 400: 16px,
597
+ 450: 24px,
598
+ 500: 32px,
599
+ 600: 40px,
600
+ space: (
601
+ 0: 0px,
602
+ 100: 2px,
603
+ 200: 4px,
604
+ 300: 8px,
605
+ 350: 12px,
606
+ 400: 16px,
607
+ 450: 24px,
608
+ 500: 32px,
609
+ 600: 40px
610
+ ),
611
+ -space: (
612
+ 0: -0px,
613
+ 100: -2px,
614
+ 200: -4px,
615
+ 300: -8px,
616
+ 350: -12px,
617
+ 400: -16px,
618
+ 450: -24px,
619
+ 500: -32px,
620
+ 600: -40px
621
+ )
622
+ ),
623
+ radii: (
624
+ 400: 4px,
625
+ 500: 6px,
626
+ 600: 8px,
627
+ 1000: 999999px,
628
+ inner: 6px,
629
+ outer: 8px,
630
+ pill: 999999px,
631
+ radii: (
632
+ 400: 4px,
633
+ 500: 6px,
634
+ 600: 8px,
635
+ 1000: 999999px,
636
+ inner: 6px,
637
+ outer: 8px,
638
+ pill: 999999px
639
+ )
640
+ ),
641
+ borders: (
642
+ 500: 1px solid
643
+ ),
644
+ borderWidths: (
645
+ 500: 1px
646
+ ),
647
+ shadows: (
648
+ low: 0px 2px 4px #2733333D,
649
+ medium: 0px 8px 16px #2733333D,
650
+ high: 0px 16px 32px #2733333D
651
+ ),
652
+ easing: (
653
+ ease_in: cubic-bezier(.4, 0, .7, .2),
654
+ ease_out: cubic-bezier(0, 0, .2, 1),
655
+ ease_inout: cubic-bezier(.4, 0, .2, 1)
656
+ ),
657
+ duration: (
658
+ fast: .15s,
659
+ medium: .3s,
660
+ slow: .6s
661
+ ),
662
+ mode: light
663
+ ),
664
+ navigation: (
665
+ main: (
666
+ background: (
667
+ base: #273333,
668
+ overflowGradient: #162020
669
+ )
670
+ ),
671
+ secondary: (
672
+ background: (
673
+ base: #364141
674
+ )
675
+ ),
676
+ text: (
677
+ base: #FFFFFF,
678
+ hover: #FFFFFF
679
+ ),
680
+ icon: (
681
+ base: #FFFFFF,
682
+ hover: #FFFFFF
683
+ ),
684
+ listItem: (
685
+ background: (
686
+ base: #364141,
687
+ hover: #162020,
688
+ selected: #515e5f
689
+ )
690
+ )
691
+ )
692
+ );
@@ -2,12 +2,13 @@
2
2
  // This file is excluded from stylelint, because stylelint is only set up to lint styled-components at the moment.
3
3
 
4
4
  // SET-UP
5
- // This file is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
6
- @import "../../../dist/themes/light/light.scss";
5
+ // theme.scss is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
6
+ // _themed.scss will be copied to each theme folder in /dist, where the theme.scss file for that theme will be.
7
+ @import "./theme.scss";
7
8
 
8
9
  // In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
9
10
  // so we need to map-get "default" to access it.
10
- $theme: map-get($light, "default");
11
+ $theme: map-get($theme, "default");
11
12
 
12
13
  // FUNCTIONS
13
14
  // This function will allow you to get any value from the theme.
@@ -1,4 +1,4 @@
1
- $light: (
1
+ $theme: (
2
2
  __esModule: true,
3
3
  borderWidths: (
4
4
  500: 1px