@superlogic/spree-pay 0.1.3 → 0.1.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.
- package/build/index.cjs +3563 -3388
- package/build/index.css +59 -0
- package/build/index.d.cts +16 -1
- package/build/index.d.ts +16 -1
- package/build/index.js +3465 -3291
- package/package.json +1 -1
package/build/index.css
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
monospace;
|
|
24
24
|
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
25
25
|
--color-gray-100: oklch(96.7% 0.003 264.542);
|
|
26
|
+
--color-gray-200: oklch(92.8% 0.006 264.531);
|
|
26
27
|
--color-gray-300: oklch(87.2% 0.01 258.338);
|
|
27
28
|
--color-gray-900: oklch(21% 0.034 264.665);
|
|
28
29
|
--color-black: #000;
|
|
@@ -354,6 +355,9 @@
|
|
|
354
355
|
.mt-auto {
|
|
355
356
|
margin-top: auto;
|
|
356
357
|
}
|
|
358
|
+
.-mr-2 {
|
|
359
|
+
margin-right: calc(var(--spacing) * -2);
|
|
360
|
+
}
|
|
357
361
|
.mr-1 {
|
|
358
362
|
margin-right: calc(var(--spacing) * 1);
|
|
359
363
|
}
|
|
@@ -446,6 +450,9 @@
|
|
|
446
450
|
.h-2\.5 {
|
|
447
451
|
height: calc(var(--spacing) * 2.5);
|
|
448
452
|
}
|
|
453
|
+
.h-4 {
|
|
454
|
+
height: calc(var(--spacing) * 4);
|
|
455
|
+
}
|
|
449
456
|
.h-5 {
|
|
450
457
|
height: calc(var(--spacing) * 5);
|
|
451
458
|
}
|
|
@@ -473,6 +480,9 @@
|
|
|
473
480
|
.h-\[34px\] {
|
|
474
481
|
height: 34px;
|
|
475
482
|
}
|
|
483
|
+
.h-\[500px\] {
|
|
484
|
+
height: 500px;
|
|
485
|
+
}
|
|
476
486
|
.h-\[calc\(100\%-1px\)\] {
|
|
477
487
|
height: calc(100% - 1px);
|
|
478
488
|
}
|
|
@@ -497,6 +507,9 @@
|
|
|
497
507
|
.max-h-\(--radix-select-content-available-height\) {
|
|
498
508
|
max-height: var(--radix-select-content-available-height);
|
|
499
509
|
}
|
|
510
|
+
.max-h-\[600px\] {
|
|
511
|
+
max-height: 600px;
|
|
512
|
+
}
|
|
500
513
|
.w-\(--cell-size\) {
|
|
501
514
|
width: var(--cell-size);
|
|
502
515
|
}
|
|
@@ -536,6 +549,9 @@
|
|
|
536
549
|
.w-max {
|
|
537
550
|
width: max-content;
|
|
538
551
|
}
|
|
552
|
+
.max-w-\[680px\] {
|
|
553
|
+
max-width: 680px;
|
|
554
|
+
}
|
|
539
555
|
.max-w-\[calc\(100\%-2rem\)\] {
|
|
540
556
|
max-width: calc(100% - 2rem);
|
|
541
557
|
}
|
|
@@ -602,6 +618,9 @@
|
|
|
602
618
|
.cursor-default {
|
|
603
619
|
cursor: default;
|
|
604
620
|
}
|
|
621
|
+
.cursor-pointer {
|
|
622
|
+
cursor: pointer;
|
|
623
|
+
}
|
|
605
624
|
.touch-none {
|
|
606
625
|
touch-action: none;
|
|
607
626
|
}
|
|
@@ -641,6 +660,9 @@
|
|
|
641
660
|
.justify-center {
|
|
642
661
|
justify-content: center;
|
|
643
662
|
}
|
|
663
|
+
.justify-end {
|
|
664
|
+
justify-content: flex-end;
|
|
665
|
+
}
|
|
644
666
|
.gap-0 {
|
|
645
667
|
gap: calc(var(--spacing) * 0);
|
|
646
668
|
}
|
|
@@ -725,6 +747,10 @@
|
|
|
725
747
|
border-style: var(--tw-border-style);
|
|
726
748
|
border-width: 1px;
|
|
727
749
|
}
|
|
750
|
+
.border-0 {
|
|
751
|
+
border-style: var(--tw-border-style);
|
|
752
|
+
border-width: 0px;
|
|
753
|
+
}
|
|
728
754
|
.border-1 {
|
|
729
755
|
border-style: var(--tw-border-style);
|
|
730
756
|
border-width: 1px;
|
|
@@ -786,6 +812,12 @@
|
|
|
786
812
|
.bg-background {
|
|
787
813
|
background-color: var(--background);
|
|
788
814
|
}
|
|
815
|
+
.bg-black\/4 {
|
|
816
|
+
background-color: color-mix(in srgb, #000 4%, transparent);
|
|
817
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
818
|
+
background-color: color-mix(in oklab, var(--color-black) 4%, transparent);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
789
821
|
.bg-black\/10 {
|
|
790
822
|
background-color: color-mix(in srgb, #000 10%, transparent);
|
|
791
823
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -810,6 +842,9 @@
|
|
|
810
842
|
.bg-gray-100 {
|
|
811
843
|
background-color: var(--color-gray-100);
|
|
812
844
|
}
|
|
845
|
+
.bg-gray-200 {
|
|
846
|
+
background-color: var(--color-gray-200);
|
|
847
|
+
}
|
|
813
848
|
.bg-muted {
|
|
814
849
|
background-color: var(--muted);
|
|
815
850
|
}
|
|
@@ -918,6 +953,9 @@
|
|
|
918
953
|
.pt-0 {
|
|
919
954
|
padding-top: calc(var(--spacing) * 0);
|
|
920
955
|
}
|
|
956
|
+
.pt-6 {
|
|
957
|
+
padding-top: calc(var(--spacing) * 6);
|
|
958
|
+
}
|
|
921
959
|
.pr-1 {
|
|
922
960
|
padding-right: calc(var(--spacing) * 1);
|
|
923
961
|
}
|
|
@@ -930,6 +968,9 @@
|
|
|
930
968
|
.pr-8 {
|
|
931
969
|
padding-right: calc(var(--spacing) * 8);
|
|
932
970
|
}
|
|
971
|
+
.pb-2 {
|
|
972
|
+
padding-bottom: calc(var(--spacing) * 2);
|
|
973
|
+
}
|
|
933
974
|
.pb-4 {
|
|
934
975
|
padding-bottom: calc(var(--spacing) * 4);
|
|
935
976
|
}
|
|
@@ -972,6 +1013,10 @@
|
|
|
972
1013
|
.text-\[0\.8rem\] {
|
|
973
1014
|
font-size: 0.8rem;
|
|
974
1015
|
}
|
|
1016
|
+
.leading-\[1\.3\] {
|
|
1017
|
+
--tw-leading: 1.3;
|
|
1018
|
+
line-height: 1.3;
|
|
1019
|
+
}
|
|
975
1020
|
.leading-\[1\.7\] {
|
|
976
1021
|
--tw-leading: 1.7;
|
|
977
1022
|
line-height: 1.7;
|
|
@@ -1455,6 +1500,13 @@
|
|
|
1455
1500
|
}
|
|
1456
1501
|
}
|
|
1457
1502
|
}
|
|
1503
|
+
.hover\:bg-primary {
|
|
1504
|
+
&:hover {
|
|
1505
|
+
@media (hover: hover) {
|
|
1506
|
+
background-color: var(--primary);
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1458
1510
|
.hover\:bg-primary\/90 {
|
|
1459
1511
|
&:hover {
|
|
1460
1512
|
@media (hover: hover) {
|
|
@@ -1482,6 +1534,13 @@
|
|
|
1482
1534
|
}
|
|
1483
1535
|
}
|
|
1484
1536
|
}
|
|
1537
|
+
.hover\:text-white {
|
|
1538
|
+
&:hover {
|
|
1539
|
+
@media (hover: hover) {
|
|
1540
|
+
color: var(--color-white);
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1485
1544
|
.hover\:underline {
|
|
1486
1545
|
&:hover {
|
|
1487
1546
|
@media (hover: hover) {
|
package/build/index.d.cts
CHANGED
|
@@ -8,9 +8,13 @@ type SpreePayProps = {
|
|
|
8
8
|
|
|
9
9
|
declare const SpreePay: FC<SpreePayProps>;
|
|
10
10
|
|
|
11
|
+
declare const useCapture3DS: (searchParams: Record<string, string | null>) => void;
|
|
12
|
+
|
|
11
13
|
type ENV = {
|
|
12
14
|
environment: 'dev' | 'stg' | 'prod';
|
|
13
15
|
accessToken: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
redirect3dsURI: string;
|
|
14
18
|
};
|
|
15
19
|
|
|
16
20
|
type Coin = {
|
|
@@ -84,4 +88,15 @@ declare const useSpreePay: () => {
|
|
|
84
88
|
selectedPaymentMethod: SelectedPaymentMethod;
|
|
85
89
|
};
|
|
86
90
|
|
|
87
|
-
|
|
91
|
+
declare const bus: {
|
|
92
|
+
emit: (name: string, detail: unknown) => void;
|
|
93
|
+
on: <T>(name: string, handler: (detail: T) => void) => () => void;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
declare global {
|
|
97
|
+
interface Window {
|
|
98
|
+
SP_EVENT_BUS?: typeof bus;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export { SpreePay, SpreePayProvider, useCapture3DS, useSpreePay };
|
package/build/index.d.ts
CHANGED
|
@@ -8,9 +8,13 @@ type SpreePayProps = {
|
|
|
8
8
|
|
|
9
9
|
declare const SpreePay: FC<SpreePayProps>;
|
|
10
10
|
|
|
11
|
+
declare const useCapture3DS: (searchParams: Record<string, string | null>) => void;
|
|
12
|
+
|
|
11
13
|
type ENV = {
|
|
12
14
|
environment: 'dev' | 'stg' | 'prod';
|
|
13
15
|
accessToken: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
redirect3dsURI: string;
|
|
14
18
|
};
|
|
15
19
|
|
|
16
20
|
type Coin = {
|
|
@@ -84,4 +88,15 @@ declare const useSpreePay: () => {
|
|
|
84
88
|
selectedPaymentMethod: SelectedPaymentMethod;
|
|
85
89
|
};
|
|
86
90
|
|
|
87
|
-
|
|
91
|
+
declare const bus: {
|
|
92
|
+
emit: (name: string, detail: unknown) => void;
|
|
93
|
+
on: <T>(name: string, handler: (detail: T) => void) => () => void;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
declare global {
|
|
97
|
+
interface Window {
|
|
98
|
+
SP_EVENT_BUS?: typeof bus;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export { SpreePay, SpreePayProvider, useCapture3DS, useSpreePay };
|