@coinbase/cdp-react 0.0.78 → 0.0.80
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.
- package/README.md +5 -0
- package/dist/assets/Badge.css +1 -0
- package/dist/assets/Banner.css +1 -1
- package/dist/assets/CDPReactProvider.css +1 -0
- package/dist/assets/CoinbaseFooter.css +1 -1
- package/dist/assets/CopyTextField.css +1 -0
- package/dist/assets/EnrollMfa.css +1 -0
- package/dist/assets/EnrollMfaDescription.css +1 -0
- package/dist/assets/EnrollMfaFlow.css +1 -0
- package/dist/assets/EnrollMfaFlowBackButton.css +1 -0
- package/dist/assets/EnrollMfaItems.css +1 -0
- package/dist/assets/EnrollMfaModal.css +1 -0
- package/dist/assets/EnrollMfaTitle.css +1 -0
- package/dist/assets/ExportWallet.css +1 -1
- package/dist/assets/OTPForm.css +1 -1
- package/dist/assets/QRCode.css +1 -0
- package/dist/assets/ToggleListItem.css +1 -0
- package/dist/assets/VerifyMfaDescription.css +1 -0
- package/dist/assets/VerifyMfaFlow.css +1 -0
- package/dist/assets/VerifyMfaImage.css +1 -0
- package/dist/assets/VerifyMfaInline.css +1 -0
- package/dist/assets/VerifyMfaTitle.css +1 -0
- package/dist/assets/totp.css +1 -0
- package/dist/chunks/CDPReactProvider.CIQm4C4z.js +299 -0
- package/dist/chunks/{LinkAuthFlow.3HN888DV.js → LinkAuthFlow.BaUSMzGH.js} +1 -1
- package/dist/chunks/index.CKQKBoX2.js +9 -0
- package/dist/chunks/{index.Bvudzh_y.js → index.C_DV0Ud7.js} +1 -1
- package/dist/chunks/index.Dp-lIxM1.js +9 -0
- package/dist/components/CDPReactProvider/index.d.ts +4 -1
- package/dist/components/CDPReactProvider/index.js +11 -79
- package/dist/components/CopyAddress/index.js +24 -60
- package/dist/components/EnrollMfa/EnrollMfaDescription.d.ts +6 -0
- package/dist/components/EnrollMfa/EnrollMfaDescription.js +21 -0
- package/dist/components/EnrollMfa/EnrollMfaFlow.d.ts +12 -0
- package/dist/components/EnrollMfa/EnrollMfaFlow.js +46 -0
- package/dist/components/EnrollMfa/EnrollMfaFlowBackButton.d.ts +9 -0
- package/dist/components/EnrollMfa/EnrollMfaFlowBackButton.js +39 -0
- package/dist/components/EnrollMfa/EnrollMfaFlowProvider.d.ts +21 -0
- package/dist/components/EnrollMfa/EnrollMfaFlowProvider.js +34 -0
- package/dist/components/EnrollMfa/EnrollMfaFooter.d.ts +2 -0
- package/dist/components/EnrollMfa/EnrollMfaFooter.js +7 -0
- package/dist/components/EnrollMfa/EnrollMfaImage.d.ts +6 -0
- package/dist/components/EnrollMfa/EnrollMfaImage.js +19 -0
- package/dist/components/EnrollMfa/EnrollMfaItem.d.ts +11 -0
- package/dist/components/EnrollMfa/EnrollMfaItem.js +21 -0
- package/dist/components/EnrollMfa/EnrollMfaItems.d.ts +9 -0
- package/dist/components/EnrollMfa/EnrollMfaItems.js +39 -0
- package/dist/components/EnrollMfa/EnrollMfaProvider.d.ts +14 -0
- package/dist/components/EnrollMfa/EnrollMfaProvider.js +24 -0
- package/dist/components/EnrollMfa/EnrollMfaTitle.d.ts +6 -0
- package/dist/components/EnrollMfa/EnrollMfaTitle.js +21 -0
- package/dist/components/EnrollMfa/index.d.ts +20 -0
- package/dist/components/EnrollMfa/index.js +171 -0
- package/dist/components/EnrollMfa/methods/totp.d.ts +6 -0
- package/dist/components/EnrollMfa/methods/totp.js +120 -0
- package/dist/components/EnrollMfa/types.d.ts +83 -0
- package/dist/components/EnrollMfa/types.js +2 -0
- package/dist/components/EnrollMfa/useEnrollMfaReducer.d.ts +3 -0
- package/dist/components/EnrollMfa/useEnrollMfaReducer.js +111 -0
- package/dist/components/EnrollMfaModal/index.d.ts +20 -0
- package/dist/components/EnrollMfaModal/index.js +144 -0
- package/dist/components/ExportWallet/index.d.ts +2 -1
- package/dist/components/ExportWallet/index.js +225 -165
- package/dist/components/ExportWalletModal/index.d.ts +7 -4
- package/dist/components/ExportWalletModal/index.js +9 -7
- package/dist/components/Fund/index.js +5 -5
- package/dist/components/FundModal/index.js +14 -14
- package/dist/components/LinkAuth/LinkAuthFlow.js +2 -2
- package/dist/components/LinkAuth/LinkAuthFlowBackButton.js +2 -2
- package/dist/components/LinkAuth/LinkAuthFlowProvider.js +2 -2
- package/dist/components/LinkAuth/LinkAuthItem.js +26 -45
- package/dist/components/LinkAuth/LinkAuthItems.js +1 -1
- package/dist/components/LinkAuth/LinkAuthProvider.js +1 -1
- package/dist/components/LinkAuth/index.js +3 -3
- package/dist/components/LinkAuth/types.js +1 -1
- package/dist/components/LinkAuth/utils.js +1 -1
- package/dist/components/LinkAuthModal/index.js +2 -2
- package/dist/components/OAuthStatusModal/index.js +1 -1
- package/dist/components/SignIn/SignInAuthMethodButtons.js +1 -1
- package/dist/components/SignIn/SignInBackButton.js +1 -1
- package/dist/components/SignIn/SignInDescription.js +2 -2
- package/dist/components/SignIn/SignInForm.js +2 -2
- package/dist/components/SignIn/SignInImage.js +5 -5
- package/dist/components/SignIn/SignInProvider.js +1 -1
- package/dist/components/SignIn/SignInTitle.js +2 -2
- package/dist/components/SignIn/flows/SignInWithEmail.js +1 -1
- package/dist/components/SignIn/flows/SignInWithOAuth.js +1 -1
- package/dist/components/SignIn/flows/SignInWithSms.js +1 -1
- package/dist/components/SignIn/index.js +4 -4
- package/dist/components/SignIn/types.js +1 -1
- package/dist/components/SignIn/useSignInReducer.js +1 -1
- package/dist/components/SignInModal/index.js +13 -13
- package/dist/components/ThemeProvider/index.d.ts +4 -6
- package/dist/components/ThemeProvider/index.js +32 -21
- package/dist/components/VerifyMfa/VerifyMfaDescription.d.ts +6 -0
- package/dist/components/VerifyMfa/VerifyMfaDescription.js +21 -0
- package/dist/components/VerifyMfa/VerifyMfaFlow.d.ts +11 -0
- package/dist/components/VerifyMfa/VerifyMfaFlow.js +19 -0
- package/dist/components/VerifyMfa/VerifyMfaFooter.d.ts +2 -0
- package/dist/components/VerifyMfa/VerifyMfaFooter.js +7 -0
- package/dist/components/VerifyMfa/VerifyMfaImage.d.ts +6 -0
- package/dist/components/VerifyMfa/VerifyMfaImage.js +21 -0
- package/dist/components/VerifyMfa/VerifyMfaProvider.d.ts +15 -0
- package/dist/components/VerifyMfa/VerifyMfaProvider.js +28 -0
- package/dist/components/VerifyMfa/VerifyMfaTitle.d.ts +6 -0
- package/dist/components/VerifyMfa/VerifyMfaTitle.js +21 -0
- package/dist/components/VerifyMfa/index.d.ts +16 -0
- package/dist/components/VerifyMfa/index.js +20 -0
- package/dist/components/VerifyMfa/methods/totp.d.ts +6 -0
- package/dist/components/VerifyMfa/methods/totp.js +69 -0
- package/dist/components/VerifyMfa/types.d.ts +60 -0
- package/dist/components/VerifyMfa/types.js +2 -0
- package/dist/components/VerifyMfa/useVerifyMfaReducer.d.ts +2 -0
- package/dist/components/VerifyMfa/useVerifyMfaReducer.js +61 -0
- package/dist/components/VerifyMfaInline/index.d.ts +40 -0
- package/dist/components/VerifyMfaInline/index.js +175 -0
- package/dist/components/VerifyMfaModal/index.d.ts +23 -0
- package/dist/components/VerifyMfaModal/index.js +19 -0
- package/dist/components/forms/AmountInput/index.d.ts +1 -1
- package/dist/components/forms/ExchangeAmountInput/index.d.ts +1 -1
- package/dist/components/forms/OTPForm/index.d.ts +2 -2
- package/dist/components/forms/OTPForm/index.js +81 -64
- package/dist/components/ui/Badge/index.d.ts +7 -0
- package/dist/components/ui/Badge/index.js +9 -0
- package/dist/components/ui/CopyTextField/index.d.ts +10 -0
- package/dist/components/ui/CopyTextField/index.js +81 -0
- package/dist/components/ui/Modal/index.js +4 -4
- package/dist/components/ui/QRCode/QRCodeSvg.d.ts +17 -0
- package/dist/components/ui/QRCode/QRCodeSvg.js +57 -0
- package/dist/components/ui/QRCode/index.d.ts +5 -0
- package/dist/components/ui/QRCode/index.js +31 -0
- package/dist/components/ui/QRCode/useCorners.d.ts +1 -0
- package/dist/components/ui/QRCode/useCorners.js +72 -0
- package/dist/components/ui/QRCode/useDotsPath.d.ts +11 -0
- package/dist/components/ui/QRCode/useDotsPath.js +66 -0
- package/dist/components/ui/QRCode/useLogo.d.ts +12 -0
- package/dist/components/ui/QRCode/useLogo.js +52 -0
- package/dist/components/ui/QRCode/useMatrix.d.ts +1 -0
- package/dist/components/ui/QRCode/useMatrix.js +17 -0
- package/dist/components/ui/ToggleListItem/index.d.ts +15 -0
- package/dist/components/ui/ToggleListItem/index.js +52 -0
- package/dist/hooks/useKeyExportPostMessage.js +67 -55
- package/dist/hooks/useVerifyMfaModal.d.ts +22 -0
- package/dist/hooks/useVerifyMfaModal.js +10 -0
- package/dist/icons/IconCoinbaseWordmark.js +10 -13
- package/dist/icons/IconPinCode.d.ts +2 -0
- package/dist/icons/IconPinCode.js +13 -0
- package/dist/icons/IconShield.d.ts +2 -0
- package/dist/icons/IconShield.js +7 -0
- package/dist/icons/IconSmartPhone.d.ts +2 -0
- package/dist/icons/IconSmartPhone.js +7 -0
- package/dist/icons/index.d.ts +5 -2
- package/dist/icons/index.js +22 -16
- package/dist/index.d.ts +6 -0
- package/dist/index.js +220 -165
- package/dist/theme/theme.d.ts +104 -0
- package/dist/theme/tokens.d.ts +312 -0
- package/dist/theme/tokens.js +70 -0
- package/dist/utils/transition.d.ts +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +9 -7
- package/dist/assets/CopyAddress.css +0 -1
- package/dist/assets/LinkAuthItem.css +0 -1
package/dist/theme/tokens.d.ts
CHANGED
|
@@ -44,6 +44,13 @@ export declare const colorsSemantic: {
|
|
|
44
44
|
readonly secondary: {
|
|
45
45
|
readonly value: "#eef0f3";
|
|
46
46
|
};
|
|
47
|
+
readonly primaryWash: {
|
|
48
|
+
readonly value: "{colors.fg.primary}";
|
|
49
|
+
readonly modify: {
|
|
50
|
+
readonly type: "color-mix";
|
|
51
|
+
readonly value: readonly [readonly ["{colors.bg.default}", "92%"]];
|
|
52
|
+
};
|
|
53
|
+
};
|
|
47
54
|
readonly positiveWash: {
|
|
48
55
|
readonly value: "{colors.fg.positive}";
|
|
49
56
|
readonly modify: {
|
|
@@ -91,6 +98,9 @@ export declare const colorsSemantic: {
|
|
|
91
98
|
readonly warning: {
|
|
92
99
|
readonly value: "#ed702f";
|
|
93
100
|
};
|
|
101
|
+
readonly onPrimaryWash: {
|
|
102
|
+
readonly value: "{colors.fg.onPrimary}";
|
|
103
|
+
};
|
|
94
104
|
readonly onPositiveWash: {
|
|
95
105
|
readonly value: "{colors.fg.default}";
|
|
96
106
|
};
|
|
@@ -434,6 +444,97 @@ export declare const colorsComponents: {
|
|
|
434
444
|
};
|
|
435
445
|
};
|
|
436
446
|
};
|
|
447
|
+
readonly badge: {
|
|
448
|
+
readonly primary: {
|
|
449
|
+
readonly bg: {
|
|
450
|
+
readonly default: {
|
|
451
|
+
readonly value: "{colors.bg.primaryWash}";
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
readonly text: {
|
|
455
|
+
readonly default: {
|
|
456
|
+
readonly value: "{colors.fg.primary}";
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
readonly secondary: {
|
|
461
|
+
readonly bg: {
|
|
462
|
+
readonly default: {
|
|
463
|
+
readonly value: "{colors.bg.secondary}";
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
readonly text: {
|
|
467
|
+
readonly default: {
|
|
468
|
+
readonly value: "{colors.fg.onSecondary}";
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
readonly warning: {
|
|
473
|
+
readonly bg: {
|
|
474
|
+
readonly default: {
|
|
475
|
+
readonly value: "{colors.bg.warningWash}";
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
readonly text: {
|
|
479
|
+
readonly default: {
|
|
480
|
+
readonly value: "{colors.fg.warning}";
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
readonly banner: {
|
|
486
|
+
readonly error: {
|
|
487
|
+
readonly bg: {
|
|
488
|
+
readonly default: {
|
|
489
|
+
readonly value: "{colors.bg.negativeWash}";
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
readonly icon: {
|
|
493
|
+
readonly default: {
|
|
494
|
+
readonly value: "{colors.fg.negative}";
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
readonly text: {
|
|
498
|
+
readonly default: {
|
|
499
|
+
readonly value: "{colors.fg.onNegativeWash}";
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
readonly success: {
|
|
504
|
+
readonly bg: {
|
|
505
|
+
readonly default: {
|
|
506
|
+
readonly value: "{colors.bg.positiveWash}";
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
readonly icon: {
|
|
510
|
+
readonly default: {
|
|
511
|
+
readonly value: "{colors.fg.positive}";
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
readonly text: {
|
|
515
|
+
readonly default: {
|
|
516
|
+
readonly value: "{colors.fg.onPositiveWash}";
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
readonly warning: {
|
|
521
|
+
readonly bg: {
|
|
522
|
+
readonly default: {
|
|
523
|
+
readonly value: "{colors.bg.warningWash}";
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
readonly icon: {
|
|
527
|
+
readonly default: {
|
|
528
|
+
readonly value: "{colors.fg.warning}";
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
readonly text: {
|
|
532
|
+
readonly default: {
|
|
533
|
+
readonly value: "{colors.fg.onWarningWash}";
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
};
|
|
537
|
+
};
|
|
437
538
|
};
|
|
438
539
|
export declare const colors: {
|
|
439
540
|
readonly page: {
|
|
@@ -750,6 +851,97 @@ export declare const colors: {
|
|
|
750
851
|
};
|
|
751
852
|
};
|
|
752
853
|
};
|
|
854
|
+
readonly badge: {
|
|
855
|
+
readonly primary: {
|
|
856
|
+
readonly bg: {
|
|
857
|
+
readonly default: {
|
|
858
|
+
readonly value: "{colors.bg.primaryWash}";
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
readonly text: {
|
|
862
|
+
readonly default: {
|
|
863
|
+
readonly value: "{colors.fg.primary}";
|
|
864
|
+
};
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
readonly secondary: {
|
|
868
|
+
readonly bg: {
|
|
869
|
+
readonly default: {
|
|
870
|
+
readonly value: "{colors.bg.secondary}";
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
readonly text: {
|
|
874
|
+
readonly default: {
|
|
875
|
+
readonly value: "{colors.fg.onSecondary}";
|
|
876
|
+
};
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
readonly warning: {
|
|
880
|
+
readonly bg: {
|
|
881
|
+
readonly default: {
|
|
882
|
+
readonly value: "{colors.bg.warningWash}";
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
readonly text: {
|
|
886
|
+
readonly default: {
|
|
887
|
+
readonly value: "{colors.fg.warning}";
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
readonly banner: {
|
|
893
|
+
readonly error: {
|
|
894
|
+
readonly bg: {
|
|
895
|
+
readonly default: {
|
|
896
|
+
readonly value: "{colors.bg.negativeWash}";
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
readonly icon: {
|
|
900
|
+
readonly default: {
|
|
901
|
+
readonly value: "{colors.fg.negative}";
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
readonly text: {
|
|
905
|
+
readonly default: {
|
|
906
|
+
readonly value: "{colors.fg.onNegativeWash}";
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
readonly success: {
|
|
911
|
+
readonly bg: {
|
|
912
|
+
readonly default: {
|
|
913
|
+
readonly value: "{colors.bg.positiveWash}";
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
readonly icon: {
|
|
917
|
+
readonly default: {
|
|
918
|
+
readonly value: "{colors.fg.positive}";
|
|
919
|
+
};
|
|
920
|
+
};
|
|
921
|
+
readonly text: {
|
|
922
|
+
readonly default: {
|
|
923
|
+
readonly value: "{colors.fg.onPositiveWash}";
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
readonly warning: {
|
|
928
|
+
readonly bg: {
|
|
929
|
+
readonly default: {
|
|
930
|
+
readonly value: "{colors.bg.warningWash}";
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
readonly icon: {
|
|
934
|
+
readonly default: {
|
|
935
|
+
readonly value: "{colors.fg.warning}";
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
readonly text: {
|
|
939
|
+
readonly default: {
|
|
940
|
+
readonly value: "{colors.fg.onWarningWash}";
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
};
|
|
753
945
|
readonly bg: {
|
|
754
946
|
readonly default: {
|
|
755
947
|
readonly value: "#ffffff";
|
|
@@ -780,6 +972,13 @@ export declare const colors: {
|
|
|
780
972
|
readonly secondary: {
|
|
781
973
|
readonly value: "#eef0f3";
|
|
782
974
|
};
|
|
975
|
+
readonly primaryWash: {
|
|
976
|
+
readonly value: "{colors.fg.primary}";
|
|
977
|
+
readonly modify: {
|
|
978
|
+
readonly type: "color-mix";
|
|
979
|
+
readonly value: readonly [readonly ["{colors.bg.default}", "92%"]];
|
|
980
|
+
};
|
|
981
|
+
};
|
|
783
982
|
readonly positiveWash: {
|
|
784
983
|
readonly value: "{colors.fg.positive}";
|
|
785
984
|
readonly modify: {
|
|
@@ -827,6 +1026,9 @@ export declare const colors: {
|
|
|
827
1026
|
readonly warning: {
|
|
828
1027
|
readonly value: "#ed702f";
|
|
829
1028
|
};
|
|
1029
|
+
readonly onPrimaryWash: {
|
|
1030
|
+
readonly value: "{colors.fg.onPrimary}";
|
|
1031
|
+
};
|
|
830
1032
|
readonly onPositiveWash: {
|
|
831
1033
|
readonly value: "{colors.fg.default}";
|
|
832
1034
|
};
|
|
@@ -997,6 +1199,9 @@ export declare const borderRadiusSemantic: {
|
|
|
997
1199
|
};
|
|
998
1200
|
};
|
|
999
1201
|
export declare const borderRadiusComponents: {
|
|
1202
|
+
readonly badge: {
|
|
1203
|
+
readonly value: "{borderRadius.full}";
|
|
1204
|
+
};
|
|
1000
1205
|
readonly banner: {
|
|
1001
1206
|
readonly value: "{borderRadius.lg}";
|
|
1002
1207
|
};
|
|
@@ -1022,6 +1227,9 @@ export declare const borderRadiusComponents: {
|
|
|
1022
1227
|
};
|
|
1023
1228
|
};
|
|
1024
1229
|
export declare const borderRadius: {
|
|
1230
|
+
readonly badge: {
|
|
1231
|
+
readonly value: "{borderRadius.full}";
|
|
1232
|
+
};
|
|
1025
1233
|
readonly banner: {
|
|
1026
1234
|
readonly value: "{borderRadius.lg}";
|
|
1027
1235
|
};
|
|
@@ -1089,6 +1297,9 @@ export declare const borderRadius: {
|
|
|
1089
1297
|
};
|
|
1090
1298
|
export declare const tokens: {
|
|
1091
1299
|
borderRadius: {
|
|
1300
|
+
readonly badge: {
|
|
1301
|
+
readonly value: "{borderRadius.full}";
|
|
1302
|
+
};
|
|
1092
1303
|
readonly banner: {
|
|
1093
1304
|
readonly value: "{borderRadius.lg}";
|
|
1094
1305
|
};
|
|
@@ -1469,6 +1680,97 @@ export declare const tokens: {
|
|
|
1469
1680
|
};
|
|
1470
1681
|
};
|
|
1471
1682
|
};
|
|
1683
|
+
readonly badge: {
|
|
1684
|
+
readonly primary: {
|
|
1685
|
+
readonly bg: {
|
|
1686
|
+
readonly default: {
|
|
1687
|
+
readonly value: "{colors.bg.primaryWash}";
|
|
1688
|
+
};
|
|
1689
|
+
};
|
|
1690
|
+
readonly text: {
|
|
1691
|
+
readonly default: {
|
|
1692
|
+
readonly value: "{colors.fg.primary}";
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
};
|
|
1696
|
+
readonly secondary: {
|
|
1697
|
+
readonly bg: {
|
|
1698
|
+
readonly default: {
|
|
1699
|
+
readonly value: "{colors.bg.secondary}";
|
|
1700
|
+
};
|
|
1701
|
+
};
|
|
1702
|
+
readonly text: {
|
|
1703
|
+
readonly default: {
|
|
1704
|
+
readonly value: "{colors.fg.onSecondary}";
|
|
1705
|
+
};
|
|
1706
|
+
};
|
|
1707
|
+
};
|
|
1708
|
+
readonly warning: {
|
|
1709
|
+
readonly bg: {
|
|
1710
|
+
readonly default: {
|
|
1711
|
+
readonly value: "{colors.bg.warningWash}";
|
|
1712
|
+
};
|
|
1713
|
+
};
|
|
1714
|
+
readonly text: {
|
|
1715
|
+
readonly default: {
|
|
1716
|
+
readonly value: "{colors.fg.warning}";
|
|
1717
|
+
};
|
|
1718
|
+
};
|
|
1719
|
+
};
|
|
1720
|
+
};
|
|
1721
|
+
readonly banner: {
|
|
1722
|
+
readonly error: {
|
|
1723
|
+
readonly bg: {
|
|
1724
|
+
readonly default: {
|
|
1725
|
+
readonly value: "{colors.bg.negativeWash}";
|
|
1726
|
+
};
|
|
1727
|
+
};
|
|
1728
|
+
readonly icon: {
|
|
1729
|
+
readonly default: {
|
|
1730
|
+
readonly value: "{colors.fg.negative}";
|
|
1731
|
+
};
|
|
1732
|
+
};
|
|
1733
|
+
readonly text: {
|
|
1734
|
+
readonly default: {
|
|
1735
|
+
readonly value: "{colors.fg.onNegativeWash}";
|
|
1736
|
+
};
|
|
1737
|
+
};
|
|
1738
|
+
};
|
|
1739
|
+
readonly success: {
|
|
1740
|
+
readonly bg: {
|
|
1741
|
+
readonly default: {
|
|
1742
|
+
readonly value: "{colors.bg.positiveWash}";
|
|
1743
|
+
};
|
|
1744
|
+
};
|
|
1745
|
+
readonly icon: {
|
|
1746
|
+
readonly default: {
|
|
1747
|
+
readonly value: "{colors.fg.positive}";
|
|
1748
|
+
};
|
|
1749
|
+
};
|
|
1750
|
+
readonly text: {
|
|
1751
|
+
readonly default: {
|
|
1752
|
+
readonly value: "{colors.fg.onPositiveWash}";
|
|
1753
|
+
};
|
|
1754
|
+
};
|
|
1755
|
+
};
|
|
1756
|
+
readonly warning: {
|
|
1757
|
+
readonly bg: {
|
|
1758
|
+
readonly default: {
|
|
1759
|
+
readonly value: "{colors.bg.warningWash}";
|
|
1760
|
+
};
|
|
1761
|
+
};
|
|
1762
|
+
readonly icon: {
|
|
1763
|
+
readonly default: {
|
|
1764
|
+
readonly value: "{colors.fg.warning}";
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
1767
|
+
readonly text: {
|
|
1768
|
+
readonly default: {
|
|
1769
|
+
readonly value: "{colors.fg.onWarningWash}";
|
|
1770
|
+
};
|
|
1771
|
+
};
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1472
1774
|
readonly bg: {
|
|
1473
1775
|
readonly default: {
|
|
1474
1776
|
readonly value: "#ffffff";
|
|
@@ -1499,6 +1801,13 @@ export declare const tokens: {
|
|
|
1499
1801
|
readonly secondary: {
|
|
1500
1802
|
readonly value: "#eef0f3";
|
|
1501
1803
|
};
|
|
1804
|
+
readonly primaryWash: {
|
|
1805
|
+
readonly value: "{colors.fg.primary}";
|
|
1806
|
+
readonly modify: {
|
|
1807
|
+
readonly type: "color-mix";
|
|
1808
|
+
readonly value: readonly [readonly ["{colors.bg.default}", "92%"]];
|
|
1809
|
+
};
|
|
1810
|
+
};
|
|
1502
1811
|
readonly positiveWash: {
|
|
1503
1812
|
readonly value: "{colors.fg.positive}";
|
|
1504
1813
|
readonly modify: {
|
|
@@ -1546,6 +1855,9 @@ export declare const tokens: {
|
|
|
1546
1855
|
readonly warning: {
|
|
1547
1856
|
readonly value: "#ed702f";
|
|
1548
1857
|
};
|
|
1858
|
+
readonly onPrimaryWash: {
|
|
1859
|
+
readonly value: "{colors.fg.onPrimary}";
|
|
1860
|
+
};
|
|
1549
1861
|
readonly onPositiveWash: {
|
|
1550
1862
|
readonly value: "{colors.fg.default}";
|
|
1551
1863
|
};
|
package/dist/theme/tokens.js
CHANGED
|
@@ -31,6 +31,10 @@ const e = {
|
|
|
31
31
|
// primary color background
|
|
32
32
|
secondary: { value: e.gray100 },
|
|
33
33
|
// secondary color background
|
|
34
|
+
primaryWash: {
|
|
35
|
+
value: "{colors.fg.primary}",
|
|
36
|
+
modify: { type: "color-mix", value: [["{colors.bg.default}", "92%"]] }
|
|
37
|
+
},
|
|
34
38
|
positiveWash: {
|
|
35
39
|
value: "{colors.fg.positive}",
|
|
36
40
|
modify: { type: "color-mix", value: [["{colors.bg.default}", "92%"]] }
|
|
@@ -61,6 +65,8 @@ const e = {
|
|
|
61
65
|
// negative color text
|
|
62
66
|
warning: { value: e.amber500 },
|
|
63
67
|
// warning color text
|
|
68
|
+
onPrimaryWash: { value: "{colors.fg.onPrimary}" },
|
|
69
|
+
// text on primary wash color
|
|
64
70
|
onPositiveWash: { value: "{colors.fg.default}" },
|
|
65
71
|
// text on positive wash color
|
|
66
72
|
onNegativeWash: { value: "{colors.fg.default}" },
|
|
@@ -263,6 +269,67 @@ const e = {
|
|
|
263
269
|
text: {
|
|
264
270
|
default: { value: "{colors.fg.default}" }
|
|
265
271
|
}
|
|
272
|
+
},
|
|
273
|
+
badge: {
|
|
274
|
+
primary: {
|
|
275
|
+
bg: {
|
|
276
|
+
default: { value: "{colors.bg.primaryWash}" }
|
|
277
|
+
},
|
|
278
|
+
text: {
|
|
279
|
+
default: { value: "{colors.fg.primary}" }
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
secondary: {
|
|
283
|
+
bg: {
|
|
284
|
+
default: { value: "{colors.bg.secondary}" }
|
|
285
|
+
},
|
|
286
|
+
text: {
|
|
287
|
+
default: { value: "{colors.fg.onSecondary}" }
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
warning: {
|
|
291
|
+
bg: {
|
|
292
|
+
default: { value: "{colors.bg.warningWash}" }
|
|
293
|
+
},
|
|
294
|
+
text: {
|
|
295
|
+
default: { value: "{colors.fg.warning}" }
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
banner: {
|
|
300
|
+
error: {
|
|
301
|
+
bg: {
|
|
302
|
+
default: { value: "{colors.bg.negativeWash}" }
|
|
303
|
+
},
|
|
304
|
+
icon: {
|
|
305
|
+
default: { value: "{colors.fg.negative}" }
|
|
306
|
+
},
|
|
307
|
+
text: {
|
|
308
|
+
default: { value: "{colors.fg.onNegativeWash}" }
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
success: {
|
|
312
|
+
bg: {
|
|
313
|
+
default: { value: "{colors.bg.positiveWash}" }
|
|
314
|
+
},
|
|
315
|
+
icon: {
|
|
316
|
+
default: { value: "{colors.fg.positive}" }
|
|
317
|
+
},
|
|
318
|
+
text: {
|
|
319
|
+
default: { value: "{colors.fg.onPositiveWash}" }
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
warning: {
|
|
323
|
+
bg: {
|
|
324
|
+
default: { value: "{colors.bg.warningWash}" }
|
|
325
|
+
},
|
|
326
|
+
icon: {
|
|
327
|
+
default: { value: "{colors.fg.warning}" }
|
|
328
|
+
},
|
|
329
|
+
text: {
|
|
330
|
+
default: { value: "{colors.fg.onWarningWash}" }
|
|
331
|
+
}
|
|
332
|
+
}
|
|
266
333
|
}
|
|
267
334
|
}, t = {
|
|
268
335
|
...a,
|
|
@@ -353,6 +420,9 @@ const e = {
|
|
|
353
420
|
value: 99999
|
|
354
421
|
}
|
|
355
422
|
}, i = {
|
|
423
|
+
badge: {
|
|
424
|
+
value: "{borderRadius.full}"
|
|
425
|
+
},
|
|
356
426
|
banner: {
|
|
357
427
|
value: "{borderRadius.lg}"
|
|
358
428
|
},
|
|
@@ -21,8 +21,8 @@ export declare const getState: (status: number) => {
|
|
|
21
21
|
isMounted: boolean;
|
|
22
22
|
isResolved: boolean;
|
|
23
23
|
};
|
|
24
|
-
export declare const startOrEnd: (unmounted: boolean) =>
|
|
25
|
-
export declare const getEndStatus: (status: number, unmountOnExit: boolean) =>
|
|
24
|
+
export declare const startOrEnd: (unmounted: boolean) => 6 | 5;
|
|
25
|
+
export declare const getEndStatus: (status: number, unmountOnExit: boolean) => 6 | 2 | 5 | undefined;
|
|
26
26
|
export declare const getTimeout: (timeout: number | {
|
|
27
27
|
enter: number;
|
|
28
28
|
exit: number;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.80";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinbase/cdp-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.80",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@internationalized/number": "3.6.4",
|
|
@@ -11,12 +11,13 @@
|
|
|
11
11
|
"@radix-ui/react-select": "^2.2.6",
|
|
12
12
|
"big.js": "7.0.1",
|
|
13
13
|
"clsx": "^2.1.1",
|
|
14
|
-
"libphonenumber-js": "^1.12.10"
|
|
14
|
+
"libphonenumber-js": "^1.12.10",
|
|
15
|
+
"qrcode": "^1.5.4"
|
|
15
16
|
},
|
|
16
17
|
"peerDependencies": {
|
|
17
18
|
"react": ">=18.2.0 <19.2.0",
|
|
18
|
-
"@coinbase/cdp-
|
|
19
|
-
"@coinbase/cdp-
|
|
19
|
+
"@coinbase/cdp-hooks": "^0.0.80",
|
|
20
|
+
"@coinbase/cdp-core": "^0.0.80"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
23
|
"@size-limit/preset-big-lib": "^11.2.0",
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"@testing-library/user-event": "^14.6.1",
|
|
30
31
|
"@types/big.js": "6.2.2",
|
|
31
32
|
"@types/glob": "^9.0.0",
|
|
33
|
+
"@types/qrcode": "^1.5.6",
|
|
32
34
|
"@types/react": "~19.1.0",
|
|
33
35
|
"@types/react-dom": "~19.1.0",
|
|
34
36
|
"@vitejs/plugin-react": "^4.6.0",
|
|
@@ -47,8 +49,8 @@
|
|
|
47
49
|
"vite": "^7.0.4",
|
|
48
50
|
"vite-plugin-dts": "^4.5.4",
|
|
49
51
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
50
|
-
"@coinbase/cdp-core": "^0.0.
|
|
51
|
-
"@coinbase/cdp-hooks": "^0.0.
|
|
52
|
+
"@coinbase/cdp-core": "^0.0.80",
|
|
53
|
+
"@coinbase/cdp-hooks": "^0.0.80"
|
|
52
54
|
},
|
|
53
55
|
"size-limit": [
|
|
54
56
|
{
|
|
@@ -56,7 +58,7 @@
|
|
|
56
58
|
"path": "./dist/index.js",
|
|
57
59
|
"import": "*",
|
|
58
60
|
"running": false,
|
|
59
|
-
"limit": "
|
|
61
|
+
"limit": "132 KB"
|
|
60
62
|
},
|
|
61
63
|
{
|
|
62
64
|
"name": "single-component",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.CopyAddress-module__address-copy___KpKeI{display:flex;flex-direction:column;gap:.25em}.CopyAddress-module__label___O2o5m{display:block}.CopyAddress-module__address-input-container___qq0TH{position:relative;background-color:var(--cdp-web-colors-input-bg-readonly);color:var(--cdp-web-colors-input-text-readonly);cursor:pointer;border-radius:var(--cdp-web-borderRadius-input);padding:.75em;display:flex;align-items:center;justify-content:space-between;gap:.5em}.CopyAddress-module__address-truncated___kr8St{font-size:.875em;color:var(--cdp-web-colors-input-text-readonly);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.CopyAddress-module__copy-button___64o2y{align-items:center;background:transparent;border:0;border-radius:var(--cdp-web-borderRadius-cta);color:var(--cdp-web-colors-input-text-readonly);cursor:pointer;display:flex;height:1.5em;line-height:1;justify-content:center;padding:0;width:1.5em}.CopyAddress-module__copy-button___64o2y:focus{outline:none}.CopyAddress-module__copy-button___64o2y:focus-visible{--cdp-web-button-ring-color: var(--cdp-web-colors-input-border-focus);--cdp-web-button-ring-inset-color: var(--cdp-web-colors-page-bg-default);box-shadow:inset 0 0 0 2px var(--cdp-web-button-ring-inset-color),0 0 0 2px var(--cdp-web-button-ring-color)}.CopyAddress-module__success-icon___qXipU{display:block;width:1.25em;height:1.25em}.CopyAddress-module__copy-icon___lUbYG{display:block;width:.875em;height:.875em}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.LinkAuthItem-module__item___NE3CT{display:flex;align-items:center;justify-content:flex-start;gap:.75em;padding:.5em 1em;margin:0;box-shadow:inset 0 0 0 1px var(--cdp-web-colors-page-border-default);color:var(--cdp-web-colors-page-text-default);border-radius:.75em}.LinkAuthItem-module__item-icon___ZIQny{display:flex;align-items:center;justify-content:center;width:1em;height:1em}.LinkAuthItem-module__item-icon___ZIQny svg{width:.875em;height:.875em}.LinkAuthItem-module__item-text___-5DVL{font-weight:500;font-size:.875em;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.LinkAuthItem-module__item-action___4wOIN{display:flex;align-items:center;margin-left:auto;margin-right:0}.LinkAuthItem-module__button___nM5Tc{width:1.5em;height:1.5em;padding:0}.LinkAuthItem-module__button___nM5Tc:disabled{opacity:.5;cursor:not-allowed}.LinkAuthItem-module__button___nM5Tc svg{width:.75em;height:.75em}
|