@coinbase/cdp-react 0.0.10 → 0.0.12

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 (45) hide show
  1. package/README.md +4 -4
  2. package/dist/assets/Button.css +1 -1
  3. package/dist/assets/Error.css +1 -1
  4. package/dist/assets/Field.css +1 -1
  5. package/dist/assets/Input.css +1 -1
  6. package/dist/assets/LoadingSkeleton.css +1 -1
  7. package/dist/assets/LoadingSpinner.css +1 -1
  8. package/dist/assets/OTP.css +1 -1
  9. package/dist/assets/SignIn.css +1 -1
  10. package/dist/assets/SignInDescription.css +1 -0
  11. package/dist/assets/SignInForm.css +1 -0
  12. package/dist/assets/SignInImage.css +1 -0
  13. package/dist/assets/SignInModal.css +1 -1
  14. package/dist/assets/SignInTitle.css +1 -0
  15. package/dist/assets/SignOutButton.css +1 -1
  16. package/dist/assets/VisuallyHidden.css +1 -1
  17. package/dist/components/AuthButton/index.d.ts +7 -1
  18. package/dist/components/AuthButton/index.js +51 -31
  19. package/dist/components/Button/index.js +38 -22
  20. package/dist/components/Field/index.js +11 -11
  21. package/dist/components/LoadingSpinner/index.js +7 -7
  22. package/dist/components/OTP/index.js +26 -25
  23. package/dist/components/SignIn/SignInDescription.js +20 -18
  24. package/dist/components/SignIn/SignInForm.js +113 -102
  25. package/dist/components/SignIn/SignInImage.js +13 -11
  26. package/dist/components/SignIn/SignInTitle.js +12 -11
  27. package/dist/components/SignIn/index.js +22 -21
  28. package/dist/components/SignInModal/index.js +29 -29
  29. package/dist/components/SignOutButton/index.js +7 -7
  30. package/dist/components/ThemeProvider/index.d.ts +1 -3
  31. package/dist/components/ThemeProvider/index.js +7 -7
  32. package/dist/components/VisuallyHidden/index.js +4 -4
  33. package/dist/index.js +45 -39
  34. package/dist/theme/cssVariables.d.ts +5 -0
  35. package/dist/theme/cssVariables.js +10 -0
  36. package/dist/theme/index.d.ts +1 -0
  37. package/dist/theme/index.js +14 -8
  38. package/dist/theme/theme.d.ts +237 -33
  39. package/dist/theme/theme.js +3 -3
  40. package/dist/theme/tokens.d.ts +679 -45
  41. package/dist/theme/tokens.js +142 -43
  42. package/dist/theme/utils.d.ts +14 -2
  43. package/dist/theme/utils.js +23 -14
  44. package/package.json +9 -5
  45. package/dist/chunks/SignIn.module.Dl3CqKQ_.js +0 -20
@@ -1,51 +1,685 @@
1
+ export declare const colorsBase: {
2
+ readonly blue500: "#0052ff";
3
+ readonly blue550: "#014cec";
4
+ readonly black: "#0a0b0d";
5
+ readonly white: "#ffffff";
6
+ readonly gray50: "#f9fafb";
7
+ readonly gray100: "#eef0f3";
8
+ readonly gray200: "#dcdfe4";
9
+ readonly gray500: "#9397a0";
10
+ readonly gray700: "#5b616e";
11
+ readonly gray900: "#1a1d21";
12
+ readonly red500: "#cf202f";
13
+ readonly green500: "#008531";
14
+ };
15
+ export declare const colorsSemantic: {
16
+ readonly bg: {
17
+ readonly default: {
18
+ readonly value: "#ffffff";
19
+ };
20
+ readonly alternate: {
21
+ readonly value: "#eef0f3";
22
+ };
23
+ readonly overlay: {
24
+ readonly value: "{colors.bg.alternate}";
25
+ readonly modify: {
26
+ readonly type: "alpha";
27
+ readonly value: 0.33;
28
+ };
29
+ };
30
+ readonly skeleton: {
31
+ readonly value: "{colors.fg.default}";
32
+ readonly modify: {
33
+ readonly type: "alpha";
34
+ readonly value: 0.1;
35
+ };
36
+ };
37
+ readonly primary: {
38
+ readonly value: "#0052ff";
39
+ };
40
+ readonly secondary: {
41
+ readonly value: "#eef0f3";
42
+ };
43
+ };
44
+ readonly fg: {
45
+ readonly default: {
46
+ readonly value: "#0a0b0d";
47
+ };
48
+ readonly muted: {
49
+ readonly value: "#5b616e";
50
+ };
51
+ readonly primary: {
52
+ readonly value: "#0052ff";
53
+ };
54
+ readonly onPrimary: {
55
+ readonly value: "#ffffff";
56
+ };
57
+ readonly onSecondary: {
58
+ readonly value: "#0a0b0d";
59
+ };
60
+ readonly positive: {
61
+ readonly value: "#008531";
62
+ };
63
+ readonly negative: {
64
+ readonly value: "#cf202f";
65
+ };
66
+ };
67
+ readonly line: {
68
+ readonly default: {
69
+ readonly value: "#dcdfe4";
70
+ };
71
+ readonly heavy: {
72
+ readonly value: "#9397a0";
73
+ };
74
+ readonly primary: {
75
+ readonly value: "{colors.fg.primary}";
76
+ };
77
+ readonly positive: {
78
+ readonly value: "{colors.fg.positive}";
79
+ };
80
+ readonly negative: {
81
+ readonly value: "{colors.fg.negative}";
82
+ };
83
+ };
84
+ };
85
+ export declare const colorsComponents: {
86
+ readonly page: {
87
+ readonly bg: {
88
+ readonly default: {
89
+ readonly value: "{colors.bg.default}";
90
+ };
91
+ };
92
+ readonly border: {
93
+ readonly default: {
94
+ readonly value: "{colors.line.default}";
95
+ };
96
+ };
97
+ readonly text: {
98
+ readonly default: {
99
+ readonly value: "{colors.fg.default}";
100
+ };
101
+ readonly muted: {
102
+ readonly value: "{colors.fg.muted}";
103
+ };
104
+ };
105
+ };
106
+ readonly cta: {
107
+ readonly primary: {
108
+ readonly bg: {
109
+ readonly default: {
110
+ readonly value: "{colors.bg.primary}";
111
+ };
112
+ readonly hover: {
113
+ readonly value: "{colors.bg.primary}";
114
+ readonly modify: {
115
+ readonly type: "alpha";
116
+ readonly value: "0.9";
117
+ };
118
+ };
119
+ };
120
+ readonly border: {
121
+ readonly focus: {
122
+ readonly value: "{colors.line.primary}";
123
+ };
124
+ };
125
+ readonly text: {
126
+ readonly default: {
127
+ readonly value: "{colors.fg.onPrimary}";
128
+ };
129
+ readonly hover: {
130
+ readonly value: "{colors.fg.onPrimary}";
131
+ };
132
+ };
133
+ };
134
+ readonly secondary: {
135
+ readonly bg: {
136
+ readonly default: {
137
+ readonly value: "{colors.bg.secondary}";
138
+ };
139
+ readonly hover: {
140
+ readonly value: "{colors.bg.secondary}";
141
+ readonly modify: {
142
+ readonly type: "alpha";
143
+ readonly value: "0.9";
144
+ };
145
+ };
146
+ };
147
+ readonly border: {
148
+ readonly focus: {
149
+ readonly value: "{colors.line.primary}";
150
+ };
151
+ };
152
+ readonly text: {
153
+ readonly default: {
154
+ readonly value: "{colors.fg.onSecondary}";
155
+ };
156
+ readonly hover: {
157
+ readonly value: "{colors.fg.onSecondary}";
158
+ };
159
+ };
160
+ };
161
+ };
162
+ readonly link: {
163
+ readonly primary: {
164
+ readonly text: {
165
+ readonly default: {
166
+ readonly value: "{colors.fg.primary}";
167
+ };
168
+ readonly hover: {
169
+ readonly value: "{colors.fg.primary}";
170
+ readonly modify: {
171
+ readonly type: "alpha";
172
+ readonly value: "0.9";
173
+ };
174
+ };
175
+ };
176
+ };
177
+ readonly secondary: {
178
+ readonly text: {
179
+ readonly default: {
180
+ readonly value: "{colors.fg.default}";
181
+ };
182
+ readonly hover: {
183
+ readonly value: "{colors.fg.default}";
184
+ readonly modify: {
185
+ readonly type: "alpha";
186
+ readonly value: "0.9";
187
+ };
188
+ };
189
+ };
190
+ };
191
+ };
192
+ readonly input: {
193
+ readonly bg: {
194
+ readonly default: {
195
+ readonly value: "{colors.bg.default}";
196
+ };
197
+ };
198
+ readonly border: {
199
+ readonly default: {
200
+ readonly value: "{colors.line.heavy}";
201
+ };
202
+ readonly focus: {
203
+ readonly value: "{colors.line.primary}";
204
+ };
205
+ readonly error: {
206
+ readonly value: "{colors.line.negative}";
207
+ };
208
+ };
209
+ readonly label: {
210
+ readonly default: {
211
+ readonly value: "{colors.fg.default}";
212
+ };
213
+ };
214
+ readonly placeholder: {
215
+ readonly default: {
216
+ readonly value: "{colors.fg.muted}";
217
+ };
218
+ };
219
+ readonly text: {
220
+ readonly default: {
221
+ readonly value: "{colors.fg.default}";
222
+ };
223
+ };
224
+ readonly errorText: {
225
+ readonly default: {
226
+ readonly value: "{colors.fg.negative}";
227
+ };
228
+ };
229
+ };
230
+ };
1
231
  export declare const colors: {
2
- blue500: string;
3
- blue550: string;
4
- black: string;
5
- white: string;
6
- gray50: string;
7
- gray100: string;
8
- gray200: string;
9
- gray500: string;
10
- gray700: string;
11
- gray900: string;
12
- red500: string;
13
- green500: string;
232
+ readonly page: {
233
+ readonly bg: {
234
+ readonly default: {
235
+ readonly value: "{colors.bg.default}";
236
+ };
237
+ };
238
+ readonly border: {
239
+ readonly default: {
240
+ readonly value: "{colors.line.default}";
241
+ };
242
+ };
243
+ readonly text: {
244
+ readonly default: {
245
+ readonly value: "{colors.fg.default}";
246
+ };
247
+ readonly muted: {
248
+ readonly value: "{colors.fg.muted}";
249
+ };
250
+ };
251
+ };
252
+ readonly cta: {
253
+ readonly primary: {
254
+ readonly bg: {
255
+ readonly default: {
256
+ readonly value: "{colors.bg.primary}";
257
+ };
258
+ readonly hover: {
259
+ readonly value: "{colors.bg.primary}";
260
+ readonly modify: {
261
+ readonly type: "alpha";
262
+ readonly value: "0.9";
263
+ };
264
+ };
265
+ };
266
+ readonly border: {
267
+ readonly focus: {
268
+ readonly value: "{colors.line.primary}";
269
+ };
270
+ };
271
+ readonly text: {
272
+ readonly default: {
273
+ readonly value: "{colors.fg.onPrimary}";
274
+ };
275
+ readonly hover: {
276
+ readonly value: "{colors.fg.onPrimary}";
277
+ };
278
+ };
279
+ };
280
+ readonly secondary: {
281
+ readonly bg: {
282
+ readonly default: {
283
+ readonly value: "{colors.bg.secondary}";
284
+ };
285
+ readonly hover: {
286
+ readonly value: "{colors.bg.secondary}";
287
+ readonly modify: {
288
+ readonly type: "alpha";
289
+ readonly value: "0.9";
290
+ };
291
+ };
292
+ };
293
+ readonly border: {
294
+ readonly focus: {
295
+ readonly value: "{colors.line.primary}";
296
+ };
297
+ };
298
+ readonly text: {
299
+ readonly default: {
300
+ readonly value: "{colors.fg.onSecondary}";
301
+ };
302
+ readonly hover: {
303
+ readonly value: "{colors.fg.onSecondary}";
304
+ };
305
+ };
306
+ };
307
+ };
308
+ readonly link: {
309
+ readonly primary: {
310
+ readonly text: {
311
+ readonly default: {
312
+ readonly value: "{colors.fg.primary}";
313
+ };
314
+ readonly hover: {
315
+ readonly value: "{colors.fg.primary}";
316
+ readonly modify: {
317
+ readonly type: "alpha";
318
+ readonly value: "0.9";
319
+ };
320
+ };
321
+ };
322
+ };
323
+ readonly secondary: {
324
+ readonly text: {
325
+ readonly default: {
326
+ readonly value: "{colors.fg.default}";
327
+ };
328
+ readonly hover: {
329
+ readonly value: "{colors.fg.default}";
330
+ readonly modify: {
331
+ readonly type: "alpha";
332
+ readonly value: "0.9";
333
+ };
334
+ };
335
+ };
336
+ };
337
+ };
338
+ readonly input: {
339
+ readonly bg: {
340
+ readonly default: {
341
+ readonly value: "{colors.bg.default}";
342
+ };
343
+ };
344
+ readonly border: {
345
+ readonly default: {
346
+ readonly value: "{colors.line.heavy}";
347
+ };
348
+ readonly focus: {
349
+ readonly value: "{colors.line.primary}";
350
+ };
351
+ readonly error: {
352
+ readonly value: "{colors.line.negative}";
353
+ };
354
+ };
355
+ readonly label: {
356
+ readonly default: {
357
+ readonly value: "{colors.fg.default}";
358
+ };
359
+ };
360
+ readonly placeholder: {
361
+ readonly default: {
362
+ readonly value: "{colors.fg.muted}";
363
+ };
364
+ };
365
+ readonly text: {
366
+ readonly default: {
367
+ readonly value: "{colors.fg.default}";
368
+ };
369
+ };
370
+ readonly errorText: {
371
+ readonly default: {
372
+ readonly value: "{colors.fg.negative}";
373
+ };
374
+ };
375
+ };
376
+ readonly bg: {
377
+ readonly default: {
378
+ readonly value: "#ffffff";
379
+ };
380
+ readonly alternate: {
381
+ readonly value: "#eef0f3";
382
+ };
383
+ readonly overlay: {
384
+ readonly value: "{colors.bg.alternate}";
385
+ readonly modify: {
386
+ readonly type: "alpha";
387
+ readonly value: 0.33;
388
+ };
389
+ };
390
+ readonly skeleton: {
391
+ readonly value: "{colors.fg.default}";
392
+ readonly modify: {
393
+ readonly type: "alpha";
394
+ readonly value: 0.1;
395
+ };
396
+ };
397
+ readonly primary: {
398
+ readonly value: "#0052ff";
399
+ };
400
+ readonly secondary: {
401
+ readonly value: "#eef0f3";
402
+ };
403
+ };
404
+ readonly fg: {
405
+ readonly default: {
406
+ readonly value: "#0a0b0d";
407
+ };
408
+ readonly muted: {
409
+ readonly value: "#5b616e";
410
+ };
411
+ readonly primary: {
412
+ readonly value: "#0052ff";
413
+ };
414
+ readonly onPrimary: {
415
+ readonly value: "#ffffff";
416
+ };
417
+ readonly onSecondary: {
418
+ readonly value: "#0a0b0d";
419
+ };
420
+ readonly positive: {
421
+ readonly value: "#008531";
422
+ };
423
+ readonly negative: {
424
+ readonly value: "#cf202f";
425
+ };
426
+ };
427
+ readonly line: {
428
+ readonly default: {
429
+ readonly value: "#dcdfe4";
430
+ };
431
+ readonly heavy: {
432
+ readonly value: "#9397a0";
433
+ };
434
+ readonly primary: {
435
+ readonly value: "{colors.fg.primary}";
436
+ };
437
+ readonly positive: {
438
+ readonly value: "{colors.fg.positive}";
439
+ };
440
+ readonly negative: {
441
+ readonly value: "{colors.fg.negative}";
442
+ };
443
+ };
444
+ };
445
+ export declare const font: {
446
+ readonly family: {
447
+ readonly sans: {
448
+ readonly value: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
449
+ };
450
+ };
451
+ readonly size: {
452
+ readonly base: {
453
+ readonly value: 16;
454
+ };
455
+ };
14
456
  };
15
457
  export declare const tokens: {
16
458
  colors: {
17
- error: string;
18
- success: string;
19
- background: string;
20
- backgroundOverlay: string;
21
- backgroundSkeleton: string;
22
- text: string;
23
- textSecondary: string;
24
- primary: string;
25
- primaryText: string;
26
- primaryHoverBackground: string;
27
- primaryHoverText: string;
28
- primaryFocusRing: string;
29
- secondary: string;
30
- secondaryText: string;
31
- secondaryHoverBackground: string;
32
- secondaryHoverText: string;
33
- secondaryFocusRing: string;
34
- linkText: string;
35
- linkHover: string;
36
- linkSecondaryText: string;
37
- linkSecondaryHover: string;
38
- border: string;
39
- inputBackground: string;
40
- inputBorder: string;
41
- inputFocusBorder: string;
42
- inputLabel: string;
43
- inputPlaceholder: string;
44
- inputText: string;
45
- };
46
- fontFamily: {
47
- sans: string;
48
- };
49
- fontSizeBase: number;
459
+ readonly page: {
460
+ readonly bg: {
461
+ readonly default: {
462
+ readonly value: "{colors.bg.default}";
463
+ };
464
+ };
465
+ readonly border: {
466
+ readonly default: {
467
+ readonly value: "{colors.line.default}";
468
+ };
469
+ };
470
+ readonly text: {
471
+ readonly default: {
472
+ readonly value: "{colors.fg.default}";
473
+ };
474
+ readonly muted: {
475
+ readonly value: "{colors.fg.muted}";
476
+ };
477
+ };
478
+ };
479
+ readonly cta: {
480
+ readonly primary: {
481
+ readonly bg: {
482
+ readonly default: {
483
+ readonly value: "{colors.bg.primary}";
484
+ };
485
+ readonly hover: {
486
+ readonly value: "{colors.bg.primary}";
487
+ readonly modify: {
488
+ readonly type: "alpha";
489
+ readonly value: "0.9";
490
+ };
491
+ };
492
+ };
493
+ readonly border: {
494
+ readonly focus: {
495
+ readonly value: "{colors.line.primary}";
496
+ };
497
+ };
498
+ readonly text: {
499
+ readonly default: {
500
+ readonly value: "{colors.fg.onPrimary}";
501
+ };
502
+ readonly hover: {
503
+ readonly value: "{colors.fg.onPrimary}";
504
+ };
505
+ };
506
+ };
507
+ readonly secondary: {
508
+ readonly bg: {
509
+ readonly default: {
510
+ readonly value: "{colors.bg.secondary}";
511
+ };
512
+ readonly hover: {
513
+ readonly value: "{colors.bg.secondary}";
514
+ readonly modify: {
515
+ readonly type: "alpha";
516
+ readonly value: "0.9";
517
+ };
518
+ };
519
+ };
520
+ readonly border: {
521
+ readonly focus: {
522
+ readonly value: "{colors.line.primary}";
523
+ };
524
+ };
525
+ readonly text: {
526
+ readonly default: {
527
+ readonly value: "{colors.fg.onSecondary}";
528
+ };
529
+ readonly hover: {
530
+ readonly value: "{colors.fg.onSecondary}";
531
+ };
532
+ };
533
+ };
534
+ };
535
+ readonly link: {
536
+ readonly primary: {
537
+ readonly text: {
538
+ readonly default: {
539
+ readonly value: "{colors.fg.primary}";
540
+ };
541
+ readonly hover: {
542
+ readonly value: "{colors.fg.primary}";
543
+ readonly modify: {
544
+ readonly type: "alpha";
545
+ readonly value: "0.9";
546
+ };
547
+ };
548
+ };
549
+ };
550
+ readonly secondary: {
551
+ readonly text: {
552
+ readonly default: {
553
+ readonly value: "{colors.fg.default}";
554
+ };
555
+ readonly hover: {
556
+ readonly value: "{colors.fg.default}";
557
+ readonly modify: {
558
+ readonly type: "alpha";
559
+ readonly value: "0.9";
560
+ };
561
+ };
562
+ };
563
+ };
564
+ };
565
+ readonly input: {
566
+ readonly bg: {
567
+ readonly default: {
568
+ readonly value: "{colors.bg.default}";
569
+ };
570
+ };
571
+ readonly border: {
572
+ readonly default: {
573
+ readonly value: "{colors.line.heavy}";
574
+ };
575
+ readonly focus: {
576
+ readonly value: "{colors.line.primary}";
577
+ };
578
+ readonly error: {
579
+ readonly value: "{colors.line.negative}";
580
+ };
581
+ };
582
+ readonly label: {
583
+ readonly default: {
584
+ readonly value: "{colors.fg.default}";
585
+ };
586
+ };
587
+ readonly placeholder: {
588
+ readonly default: {
589
+ readonly value: "{colors.fg.muted}";
590
+ };
591
+ };
592
+ readonly text: {
593
+ readonly default: {
594
+ readonly value: "{colors.fg.default}";
595
+ };
596
+ };
597
+ readonly errorText: {
598
+ readonly default: {
599
+ readonly value: "{colors.fg.negative}";
600
+ };
601
+ };
602
+ };
603
+ readonly bg: {
604
+ readonly default: {
605
+ readonly value: "#ffffff";
606
+ };
607
+ readonly alternate: {
608
+ readonly value: "#eef0f3";
609
+ };
610
+ readonly overlay: {
611
+ readonly value: "{colors.bg.alternate}";
612
+ readonly modify: {
613
+ readonly type: "alpha";
614
+ readonly value: 0.33;
615
+ };
616
+ };
617
+ readonly skeleton: {
618
+ readonly value: "{colors.fg.default}";
619
+ readonly modify: {
620
+ readonly type: "alpha";
621
+ readonly value: 0.1;
622
+ };
623
+ };
624
+ readonly primary: {
625
+ readonly value: "#0052ff";
626
+ };
627
+ readonly secondary: {
628
+ readonly value: "#eef0f3";
629
+ };
630
+ };
631
+ readonly fg: {
632
+ readonly default: {
633
+ readonly value: "#0a0b0d";
634
+ };
635
+ readonly muted: {
636
+ readonly value: "#5b616e";
637
+ };
638
+ readonly primary: {
639
+ readonly value: "#0052ff";
640
+ };
641
+ readonly onPrimary: {
642
+ readonly value: "#ffffff";
643
+ };
644
+ readonly onSecondary: {
645
+ readonly value: "#0a0b0d";
646
+ };
647
+ readonly positive: {
648
+ readonly value: "#008531";
649
+ };
650
+ readonly negative: {
651
+ readonly value: "#cf202f";
652
+ };
653
+ };
654
+ readonly line: {
655
+ readonly default: {
656
+ readonly value: "#dcdfe4";
657
+ };
658
+ readonly heavy: {
659
+ readonly value: "#9397a0";
660
+ };
661
+ readonly primary: {
662
+ readonly value: "{colors.fg.primary}";
663
+ };
664
+ readonly positive: {
665
+ readonly value: "{colors.fg.positive}";
666
+ };
667
+ readonly negative: {
668
+ readonly value: "{colors.fg.negative}";
669
+ };
670
+ };
671
+ };
672
+ font: {
673
+ readonly family: {
674
+ readonly sans: {
675
+ readonly value: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
676
+ };
677
+ };
678
+ readonly size: {
679
+ readonly base: {
680
+ readonly value: 16;
681
+ };
682
+ };
683
+ };
50
684
  };
51
685
  export type Tokens = typeof tokens;