@superlogic/spree-pay 0.1.16 → 0.1.17
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/build/index.cjs +1898 -581
- package/build/index.css +224 -16
- package/build/index.d.cts +6 -3
- package/build/index.d.ts +6 -3
- package/build/index.js +1900 -583
- package/package.json +3 -2
package/build/index.css
CHANGED
|
@@ -34,6 +34,8 @@
|
|
|
34
34
|
--text-xs--line-height: calc(1 / 0.75);
|
|
35
35
|
--text-sm: 0.875rem;
|
|
36
36
|
--text-sm--line-height: calc(1.25 / 0.875);
|
|
37
|
+
--text-base: 1rem;
|
|
38
|
+
--text-base--line-height: calc(1.5 / 1);
|
|
37
39
|
--text-lg: 1.125rem;
|
|
38
40
|
--text-lg--line-height: calc(1.75 / 1.125);
|
|
39
41
|
--text-xl: 1.25rem;
|
|
@@ -258,6 +260,9 @@
|
|
|
258
260
|
.sl-spreepay .fixed {
|
|
259
261
|
position: fixed;
|
|
260
262
|
}
|
|
263
|
+
.sl-spreepay .relative {
|
|
264
|
+
position: relative;
|
|
265
|
+
}
|
|
261
266
|
.sl-spreepay .inset-0 {
|
|
262
267
|
inset: calc(var(--spacing) * 0);
|
|
263
268
|
}
|
|
@@ -303,9 +308,6 @@
|
|
|
303
308
|
.sl-spreepay .mt-4 {
|
|
304
309
|
margin-top: calc(var(--spacing) * 4);
|
|
305
310
|
}
|
|
306
|
-
.sl-spreepay .-mr-2 {
|
|
307
|
-
margin-right: calc(var(--spacing) * -2);
|
|
308
|
-
}
|
|
309
311
|
.sl-spreepay .mr-1 {
|
|
310
312
|
margin-right: calc(var(--spacing) * 1);
|
|
311
313
|
}
|
|
@@ -433,12 +435,18 @@
|
|
|
433
435
|
.sl-spreepay .w-full {
|
|
434
436
|
width: 100%;
|
|
435
437
|
}
|
|
438
|
+
.sl-spreepay .max-w-\[100px\] {
|
|
439
|
+
max-width: 100px;
|
|
440
|
+
}
|
|
436
441
|
.sl-spreepay .max-w-\[680px\] {
|
|
437
442
|
max-width: 680px;
|
|
438
443
|
}
|
|
439
444
|
.sl-spreepay .max-w-\[calc\(100\%-2rem\)\] {
|
|
440
445
|
max-width: calc(100% - 2rem);
|
|
441
446
|
}
|
|
447
|
+
.sl-spreepay .min-w-0 {
|
|
448
|
+
min-width: calc(var(--spacing) * 0);
|
|
449
|
+
}
|
|
442
450
|
.sl-spreepay .flex-1 {
|
|
443
451
|
flex: 1;
|
|
444
452
|
}
|
|
@@ -448,6 +456,9 @@
|
|
|
448
456
|
.sl-spreepay .shrink-0 {
|
|
449
457
|
flex-shrink: 0;
|
|
450
458
|
}
|
|
459
|
+
.sl-spreepay .grow {
|
|
460
|
+
flex-grow: 1;
|
|
461
|
+
}
|
|
451
462
|
.sl-spreepay .translate-x-\[-50\%\] {
|
|
452
463
|
--tw-translate-x: -50%;
|
|
453
464
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -468,6 +479,9 @@
|
|
|
468
479
|
.sl-spreepay .cursor-pointer {
|
|
469
480
|
cursor: pointer;
|
|
470
481
|
}
|
|
482
|
+
.sl-spreepay .touch-none {
|
|
483
|
+
touch-action: none;
|
|
484
|
+
}
|
|
471
485
|
.sl-spreepay .flex-col {
|
|
472
486
|
flex-direction: column;
|
|
473
487
|
}
|
|
@@ -633,6 +647,9 @@
|
|
|
633
647
|
.sl-spreepay .bg-gray-200 {
|
|
634
648
|
background-color: var(--color-gray-200);
|
|
635
649
|
}
|
|
650
|
+
.sl-spreepay .bg-muted {
|
|
651
|
+
background-color: var(--muted);
|
|
652
|
+
}
|
|
636
653
|
.sl-spreepay .bg-primary {
|
|
637
654
|
background-color: var(--primary);
|
|
638
655
|
}
|
|
@@ -651,6 +668,9 @@
|
|
|
651
668
|
.sl-spreepay .bg-secondary {
|
|
652
669
|
background-color: var(--secondary);
|
|
653
670
|
}
|
|
671
|
+
.sl-spreepay .bg-transparent {
|
|
672
|
+
background-color: transparent;
|
|
673
|
+
}
|
|
654
674
|
.sl-spreepay .bg-white {
|
|
655
675
|
background-color: var(--color-white);
|
|
656
676
|
}
|
|
@@ -684,6 +704,9 @@
|
|
|
684
704
|
.sl-spreepay .px-8 {
|
|
685
705
|
padding-inline: calc(var(--spacing) * 8);
|
|
686
706
|
}
|
|
707
|
+
.sl-spreepay .py-1 {
|
|
708
|
+
padding-block: calc(var(--spacing) * 1);
|
|
709
|
+
}
|
|
687
710
|
.sl-spreepay .py-1\.5 {
|
|
688
711
|
padding-block: calc(var(--spacing) * 1.5);
|
|
689
712
|
}
|
|
@@ -696,15 +719,27 @@
|
|
|
696
719
|
.sl-spreepay .py-5 {
|
|
697
720
|
padding-block: calc(var(--spacing) * 5);
|
|
698
721
|
}
|
|
722
|
+
.sl-spreepay .pt-5 {
|
|
723
|
+
padding-top: calc(var(--spacing) * 5);
|
|
724
|
+
}
|
|
699
725
|
.sl-spreepay .pt-6 {
|
|
700
726
|
padding-top: calc(var(--spacing) * 6);
|
|
701
727
|
}
|
|
702
728
|
.sl-spreepay .pb-2 {
|
|
703
729
|
padding-bottom: calc(var(--spacing) * 2);
|
|
704
730
|
}
|
|
731
|
+
.sl-spreepay .pb-5 {
|
|
732
|
+
padding-bottom: calc(var(--spacing) * 5);
|
|
733
|
+
}
|
|
734
|
+
.sl-spreepay .pb-6 {
|
|
735
|
+
padding-bottom: calc(var(--spacing) * 6);
|
|
736
|
+
}
|
|
705
737
|
.sl-spreepay .text-center {
|
|
706
738
|
text-align: center;
|
|
707
739
|
}
|
|
740
|
+
.sl-spreepay .text-left {
|
|
741
|
+
text-align: left;
|
|
742
|
+
}
|
|
708
743
|
.sl-spreepay .text-right {
|
|
709
744
|
text-align: right;
|
|
710
745
|
}
|
|
@@ -712,6 +747,10 @@
|
|
|
712
747
|
font-size: var(--text-2xl);
|
|
713
748
|
line-height: var(--tw-leading, var(--text-2xl--line-height));
|
|
714
749
|
}
|
|
750
|
+
.sl-spreepay .text-base {
|
|
751
|
+
font-size: var(--text-base);
|
|
752
|
+
line-height: var(--tw-leading, var(--text-base--line-height));
|
|
753
|
+
}
|
|
715
754
|
.sl-spreepay .text-lg {
|
|
716
755
|
font-size: var(--text-lg);
|
|
717
756
|
line-height: var(--tw-leading, var(--text-lg--line-height));
|
|
@@ -736,6 +775,10 @@
|
|
|
736
775
|
--tw-leading: 1.7;
|
|
737
776
|
line-height: 1.7;
|
|
738
777
|
}
|
|
778
|
+
.sl-spreepay .leading-\[20px\] {
|
|
779
|
+
--tw-leading: 20px;
|
|
780
|
+
line-height: 20px;
|
|
781
|
+
}
|
|
739
782
|
.sl-spreepay .leading-\[34px\] {
|
|
740
783
|
--tw-leading: 34px;
|
|
741
784
|
line-height: 34px;
|
|
@@ -758,6 +801,12 @@
|
|
|
758
801
|
.sl-spreepay .text-black {
|
|
759
802
|
color: var(--color-black);
|
|
760
803
|
}
|
|
804
|
+
.sl-spreepay .text-black\/45 {
|
|
805
|
+
color: color-mix(in srgb, #000 45%, transparent);
|
|
806
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
807
|
+
color: color-mix(in oklab, var(--color-black) 45%, transparent);
|
|
808
|
+
}
|
|
809
|
+
}
|
|
761
810
|
.sl-spreepay .text-black\/50 {
|
|
762
811
|
color: color-mix(in srgb, #000 50%, transparent);
|
|
763
812
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -815,6 +864,15 @@
|
|
|
815
864
|
var(--tw-ring-shadow),
|
|
816
865
|
var(--tw-shadow);
|
|
817
866
|
}
|
|
867
|
+
.sl-spreepay .shadow-sm {
|
|
868
|
+
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
869
|
+
box-shadow:
|
|
870
|
+
var(--tw-inset-shadow),
|
|
871
|
+
var(--tw-inset-ring-shadow),
|
|
872
|
+
var(--tw-ring-offset-shadow),
|
|
873
|
+
var(--tw-ring-shadow),
|
|
874
|
+
var(--tw-shadow);
|
|
875
|
+
}
|
|
818
876
|
.sl-spreepay .shadow-xs {
|
|
819
877
|
--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
|
|
820
878
|
box-shadow:
|
|
@@ -855,6 +913,11 @@
|
|
|
855
913
|
outline-style: var(--tw-outline-style);
|
|
856
914
|
outline-width: 1px;
|
|
857
915
|
}
|
|
916
|
+
.sl-spreepay .transition-\[color\,box-shadow\] {
|
|
917
|
+
transition-property: color, box-shadow;
|
|
918
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
919
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
920
|
+
}
|
|
858
921
|
.sl-spreepay .transition-all {
|
|
859
922
|
transition-property: all;
|
|
860
923
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
@@ -914,6 +977,60 @@
|
|
|
914
977
|
opacity: 50%;
|
|
915
978
|
}
|
|
916
979
|
}
|
|
980
|
+
.sl-spreepay .selection\:bg-primary {
|
|
981
|
+
.sl-spreepay & *::selection {
|
|
982
|
+
background-color: var(--primary);
|
|
983
|
+
}
|
|
984
|
+
.sl-spreepay &::selection {
|
|
985
|
+
background-color: var(--primary);
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
.sl-spreepay .selection\:text-primary-foreground {
|
|
989
|
+
.sl-spreepay & *::selection {
|
|
990
|
+
color: var(--primary-foreground);
|
|
991
|
+
}
|
|
992
|
+
.sl-spreepay &::selection {
|
|
993
|
+
color: var(--primary-foreground);
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
.sl-spreepay .file\:inline-flex {
|
|
997
|
+
.sl-spreepay &::file-selector-button {
|
|
998
|
+
display: inline-flex;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
.sl-spreepay .file\:h-7 {
|
|
1002
|
+
.sl-spreepay &::file-selector-button {
|
|
1003
|
+
height: calc(var(--spacing) * 7);
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
.sl-spreepay .file\:border-0 {
|
|
1007
|
+
.sl-spreepay &::file-selector-button {
|
|
1008
|
+
border-style: var(--tw-border-style);
|
|
1009
|
+
border-width: 0px;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
.sl-spreepay .file\:bg-transparent {
|
|
1013
|
+
.sl-spreepay &::file-selector-button {
|
|
1014
|
+
background-color: transparent;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
.sl-spreepay .file\:text-sm {
|
|
1018
|
+
.sl-spreepay &::file-selector-button {
|
|
1019
|
+
font-size: var(--text-sm);
|
|
1020
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
.sl-spreepay .file\:font-medium {
|
|
1024
|
+
.sl-spreepay &::file-selector-button {
|
|
1025
|
+
--tw-font-weight: var(--font-weight-medium);
|
|
1026
|
+
font-weight: var(--font-weight-medium);
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
.sl-spreepay .file\:text-foreground {
|
|
1030
|
+
.sl-spreepay &::file-selector-button {
|
|
1031
|
+
color: var(--foreground);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
917
1034
|
.sl-spreepay .placeholder\:text-muted-foreground {
|
|
918
1035
|
.sl-spreepay &::placeholder {
|
|
919
1036
|
color: var(--muted-foreground);
|
|
@@ -950,13 +1067,6 @@
|
|
|
950
1067
|
}
|
|
951
1068
|
}
|
|
952
1069
|
}
|
|
953
|
-
.sl-spreepay .hover\:bg-primary {
|
|
954
|
-
.sl-spreepay &:hover {
|
|
955
|
-
@media (hover: hover) {
|
|
956
|
-
background-color: var(--primary);
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
1070
|
.sl-spreepay .hover\:bg-primary\/90 {
|
|
961
1071
|
.sl-spreepay &:hover {
|
|
962
1072
|
@media (hover: hover) {
|
|
@@ -984,24 +1094,30 @@
|
|
|
984
1094
|
}
|
|
985
1095
|
}
|
|
986
1096
|
}
|
|
987
|
-
.sl-spreepay .hover\:
|
|
1097
|
+
.sl-spreepay .hover\:underline {
|
|
988
1098
|
.sl-spreepay &:hover {
|
|
989
1099
|
@media (hover: hover) {
|
|
990
|
-
|
|
1100
|
+
text-decoration-line: underline;
|
|
991
1101
|
}
|
|
992
1102
|
}
|
|
993
1103
|
}
|
|
994
|
-
.sl-spreepay .hover\:
|
|
1104
|
+
.sl-spreepay .hover\:opacity-100 {
|
|
995
1105
|
.sl-spreepay &:hover {
|
|
996
1106
|
@media (hover: hover) {
|
|
997
|
-
|
|
1107
|
+
opacity: 100%;
|
|
998
1108
|
}
|
|
999
1109
|
}
|
|
1000
1110
|
}
|
|
1001
|
-
.sl-spreepay .hover\:
|
|
1111
|
+
.sl-spreepay .hover\:ring-4 {
|
|
1002
1112
|
.sl-spreepay &:hover {
|
|
1003
1113
|
@media (hover: hover) {
|
|
1004
|
-
|
|
1114
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1115
|
+
box-shadow:
|
|
1116
|
+
var(--tw-inset-shadow),
|
|
1117
|
+
var(--tw-inset-ring-shadow),
|
|
1118
|
+
var(--tw-ring-offset-shadow),
|
|
1119
|
+
var(--tw-ring-shadow),
|
|
1120
|
+
var(--tw-shadow);
|
|
1005
1121
|
}
|
|
1006
1122
|
}
|
|
1007
1123
|
}
|
|
@@ -1053,6 +1169,17 @@
|
|
|
1053
1169
|
var(--tw-shadow);
|
|
1054
1170
|
}
|
|
1055
1171
|
}
|
|
1172
|
+
.sl-spreepay .focus-visible\:ring-4 {
|
|
1173
|
+
.sl-spreepay &:focus-visible {
|
|
1174
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1175
|
+
box-shadow:
|
|
1176
|
+
var(--tw-inset-shadow),
|
|
1177
|
+
var(--tw-inset-ring-shadow),
|
|
1178
|
+
var(--tw-ring-offset-shadow),
|
|
1179
|
+
var(--tw-ring-shadow),
|
|
1180
|
+
var(--tw-shadow);
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1056
1183
|
.sl-spreepay .focus-visible\:ring-\[3px\] {
|
|
1057
1184
|
.sl-spreepay &:focus-visible {
|
|
1058
1185
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
@@ -1096,6 +1223,16 @@
|
|
|
1096
1223
|
--tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1097
1224
|
}
|
|
1098
1225
|
}
|
|
1226
|
+
.sl-spreepay .focus-visible\:outline-hidden {
|
|
1227
|
+
.sl-spreepay &:focus-visible {
|
|
1228
|
+
--tw-outline-style: none;
|
|
1229
|
+
outline-style: none;
|
|
1230
|
+
@media (forced-colors: active) {
|
|
1231
|
+
outline: 2px solid transparent;
|
|
1232
|
+
outline-offset: 2px;
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1099
1236
|
.sl-spreepay .focus-visible\:outline-none {
|
|
1100
1237
|
.sl-spreepay &:focus-visible {
|
|
1101
1238
|
--tw-outline-style: none;
|
|
@@ -1150,6 +1287,56 @@
|
|
|
1150
1287
|
}
|
|
1151
1288
|
}
|
|
1152
1289
|
}
|
|
1290
|
+
.sl-spreepay .data-\[disabled\]\:opacity-50 {
|
|
1291
|
+
.sl-spreepay &[data-disabled] {
|
|
1292
|
+
opacity: 50%;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
.sl-spreepay .data-\[orientation\=horizontal\]\:h-1\.5 {
|
|
1296
|
+
.sl-spreepay &[data-orientation=horizontal] {
|
|
1297
|
+
height: calc(var(--spacing) * 1.5);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
.sl-spreepay .data-\[orientation\=horizontal\]\:h-full {
|
|
1301
|
+
.sl-spreepay &[data-orientation=horizontal] {
|
|
1302
|
+
height: 100%;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
.sl-spreepay .data-\[orientation\=horizontal\]\:w-full {
|
|
1306
|
+
.sl-spreepay &[data-orientation=horizontal] {
|
|
1307
|
+
width: 100%;
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
.sl-spreepay .data-\[orientation\=vertical\]\:h-full {
|
|
1311
|
+
.sl-spreepay &[data-orientation=vertical] {
|
|
1312
|
+
height: 100%;
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
.sl-spreepay .data-\[orientation\=vertical\]\:min-h-44 {
|
|
1316
|
+
.sl-spreepay &[data-orientation=vertical] {
|
|
1317
|
+
min-height: calc(var(--spacing) * 44);
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
.sl-spreepay .data-\[orientation\=vertical\]\:w-1\.5 {
|
|
1321
|
+
.sl-spreepay &[data-orientation=vertical] {
|
|
1322
|
+
width: calc(var(--spacing) * 1.5);
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
.sl-spreepay .data-\[orientation\=vertical\]\:w-auto {
|
|
1326
|
+
.sl-spreepay &[data-orientation=vertical] {
|
|
1327
|
+
width: auto;
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
.sl-spreepay .data-\[orientation\=vertical\]\:w-full {
|
|
1331
|
+
.sl-spreepay &[data-orientation=vertical] {
|
|
1332
|
+
width: 100%;
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
.sl-spreepay .data-\[orientation\=vertical\]\:flex-col {
|
|
1336
|
+
.sl-spreepay &[data-orientation=vertical] {
|
|
1337
|
+
flex-direction: column;
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1153
1340
|
.sl-spreepay .data-\[state\=checked\]\:translate-x-\[calc\(100\%-2px\)\] {
|
|
1154
1341
|
.sl-spreepay &[data-state=checked] {
|
|
1155
1342
|
--tw-translate-x: calc(100% - 2px);
|
|
@@ -1251,6 +1438,11 @@
|
|
|
1251
1438
|
display: block;
|
|
1252
1439
|
}
|
|
1253
1440
|
}
|
|
1441
|
+
.sl-spreepay .md\:px-4 {
|
|
1442
|
+
@media (width >= 48rem) {
|
|
1443
|
+
padding-inline: calc(var(--spacing) * 4);
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1254
1446
|
.sl-spreepay .md\:px-7 {
|
|
1255
1447
|
@media (width >= 48rem) {
|
|
1256
1448
|
padding-inline: calc(var(--spacing) * 7);
|
|
@@ -1266,6 +1458,22 @@
|
|
|
1266
1458
|
padding-block: calc(var(--spacing) * 6);
|
|
1267
1459
|
}
|
|
1268
1460
|
}
|
|
1461
|
+
.sl-spreepay .md\:pt-6 {
|
|
1462
|
+
@media (width >= 48rem) {
|
|
1463
|
+
padding-top: calc(var(--spacing) * 6);
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
.sl-spreepay .md\:pb-7 {
|
|
1467
|
+
@media (width >= 48rem) {
|
|
1468
|
+
padding-bottom: calc(var(--spacing) * 7);
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
.sl-spreepay .md\:text-sm {
|
|
1472
|
+
@media (width >= 48rem) {
|
|
1473
|
+
font-size: var(--text-sm);
|
|
1474
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1269
1477
|
.sl-spreepay .md\:text-xl {
|
|
1270
1478
|
@media (width >= 48rem) {
|
|
1271
1479
|
font-size: var(--text-xl);
|
package/build/index.d.cts
CHANGED
|
@@ -5,6 +5,7 @@ type SpreePayProps = {
|
|
|
5
5
|
amount?: number;
|
|
6
6
|
className?: string;
|
|
7
7
|
isProcessing?: boolean;
|
|
8
|
+
transactionFeePercentage?: number;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
declare const SpreePay: FC<SpreePayProps>;
|
|
@@ -71,16 +72,19 @@ type NewCard = Pick<Card, 'expireMonth' | 'expireYear' | 'lastFourNumbers' | 'sc
|
|
|
71
72
|
};
|
|
72
73
|
type CardPaymentMethod = {
|
|
73
74
|
method: NewCard | Card | null;
|
|
74
|
-
type: PaymentType.CREDIT_CARD;
|
|
75
|
+
type: PaymentType.CREDIT_CARD | PaymentType.SPLIT;
|
|
76
|
+
splitAmount?: number;
|
|
75
77
|
};
|
|
76
78
|
type CryptoPaymentMethod = {
|
|
77
79
|
method: Coin | NativeCoin | null;
|
|
78
80
|
type: PaymentType.CRYPTO;
|
|
81
|
+
splitAmount?: number;
|
|
79
82
|
};
|
|
80
83
|
type SelectedPaymentMethod = CardPaymentMethod | CryptoPaymentMethod;
|
|
81
84
|
declare enum PaymentType {
|
|
82
85
|
CREDIT_CARD = "CREDIT_CARD",
|
|
83
|
-
CRYPTO = "CRYPTO"
|
|
86
|
+
CRYPTO = "CRYPTO",
|
|
87
|
+
SPLIT = "SPLIT"
|
|
84
88
|
}
|
|
85
89
|
declare const enum SlapiPaymentStatus {
|
|
86
90
|
NOT_INITIALIZED = "NOT_INITIALIZED",// back-end only
|
|
@@ -102,7 +106,6 @@ type ProcessFnParams = {
|
|
|
102
106
|
hash: string;
|
|
103
107
|
capture?: boolean;
|
|
104
108
|
metadata?: Record<string, unknown>;
|
|
105
|
-
transactionFee?: number;
|
|
106
109
|
};
|
|
107
110
|
type ProcessFn = (data: ProcessFnParams) => Promise<PaymentMethodResult>;
|
|
108
111
|
|
package/build/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ type SpreePayProps = {
|
|
|
5
5
|
amount?: number;
|
|
6
6
|
className?: string;
|
|
7
7
|
isProcessing?: boolean;
|
|
8
|
+
transactionFeePercentage?: number;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
declare const SpreePay: FC<SpreePayProps>;
|
|
@@ -71,16 +72,19 @@ type NewCard = Pick<Card, 'expireMonth' | 'expireYear' | 'lastFourNumbers' | 'sc
|
|
|
71
72
|
};
|
|
72
73
|
type CardPaymentMethod = {
|
|
73
74
|
method: NewCard | Card | null;
|
|
74
|
-
type: PaymentType.CREDIT_CARD;
|
|
75
|
+
type: PaymentType.CREDIT_CARD | PaymentType.SPLIT;
|
|
76
|
+
splitAmount?: number;
|
|
75
77
|
};
|
|
76
78
|
type CryptoPaymentMethod = {
|
|
77
79
|
method: Coin | NativeCoin | null;
|
|
78
80
|
type: PaymentType.CRYPTO;
|
|
81
|
+
splitAmount?: number;
|
|
79
82
|
};
|
|
80
83
|
type SelectedPaymentMethod = CardPaymentMethod | CryptoPaymentMethod;
|
|
81
84
|
declare enum PaymentType {
|
|
82
85
|
CREDIT_CARD = "CREDIT_CARD",
|
|
83
|
-
CRYPTO = "CRYPTO"
|
|
86
|
+
CRYPTO = "CRYPTO",
|
|
87
|
+
SPLIT = "SPLIT"
|
|
84
88
|
}
|
|
85
89
|
declare const enum SlapiPaymentStatus {
|
|
86
90
|
NOT_INITIALIZED = "NOT_INITIALIZED",// back-end only
|
|
@@ -102,7 +106,6 @@ type ProcessFnParams = {
|
|
|
102
106
|
hash: string;
|
|
103
107
|
capture?: boolean;
|
|
104
108
|
metadata?: Record<string, unknown>;
|
|
105
|
-
transactionFee?: number;
|
|
106
109
|
};
|
|
107
110
|
type ProcessFn = (data: ProcessFnParams) => Promise<PaymentMethodResult>;
|
|
108
111
|
|