@superlogic/spree-pay 0.1.17 → 0.1.19

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.css CHANGED
@@ -25,6 +25,7 @@
25
25
  --color-gray-100: oklch(96.7% 0.003 264.542);
26
26
  --color-gray-200: oklch(92.8% 0.006 264.531);
27
27
  --color-gray-300: oklch(87.2% 0.01 258.338);
28
+ --color-gray-400: oklch(70.7% 0.022 261.325);
28
29
  --color-gray-900: oklch(21% 0.034 264.665);
29
30
  --color-black: #000;
30
31
  --color-white: #fff;
@@ -411,9 +412,18 @@
411
412
  .sl-spreepay .h-full {
412
413
  height: 100%;
413
414
  }
415
+ .sl-spreepay .max-h-\[40vh\] {
416
+ max-height: 40vh;
417
+ }
418
+ .sl-spreepay .max-h-\[90vh\] {
419
+ max-height: 90vh;
420
+ }
414
421
  .sl-spreepay .max-h-\[600px\] {
415
422
  max-height: 600px;
416
423
  }
424
+ .sl-spreepay .min-h-11 {
425
+ min-height: calc(var(--spacing) * 11);
426
+ }
417
427
  .sl-spreepay .w-2\.5 {
418
428
  width: calc(var(--spacing) * 2.5);
419
429
  }
@@ -438,6 +448,9 @@
438
448
  .sl-spreepay .max-w-\[100px\] {
439
449
  max-width: 100px;
440
450
  }
451
+ .sl-spreepay .max-w-\[540px\] {
452
+ max-width: 540px;
453
+ }
441
454
  .sl-spreepay .max-w-\[680px\] {
442
455
  max-width: 680px;
443
456
  }
@@ -527,6 +540,9 @@
527
540
  .sl-spreepay .overflow-hidden {
528
541
  overflow: hidden;
529
542
  }
543
+ .sl-spreepay .overflow-y-auto {
544
+ overflow-y: auto;
545
+ }
530
546
  .sl-spreepay .rounded-3xl {
531
547
  border-radius: var(--radius-3xl);
532
548
  }
@@ -647,6 +663,9 @@
647
663
  .sl-spreepay .bg-gray-200 {
648
664
  background-color: var(--color-gray-200);
649
665
  }
666
+ .sl-spreepay .bg-gray-400 {
667
+ background-color: var(--color-gray-400);
668
+ }
650
669
  .sl-spreepay .bg-muted {
651
670
  background-color: var(--muted);
652
671
  }
@@ -1614,7 +1633,7 @@
1614
1633
  --card-foreground: oklch(0.145 0 0);
1615
1634
  --popover: oklch(1 0 0);
1616
1635
  --popover-foreground: oklch(0.145 0 0);
1617
- --primary: oklch(0.205 0 0);
1636
+ --primary: #022664;
1618
1637
  --primary-foreground: oklch(0.985 0 0);
1619
1638
  --secondary: oklch(0.97 0 0);
1620
1639
  --secondary-foreground: oklch(0.205 0 0);
@@ -1689,9 +1708,6 @@
1689
1708
  cursor: pointer;
1690
1709
  }
1691
1710
  }
1692
- .sl-spreepay {
1693
- --primary: #022664;
1694
- }
1695
1711
  .sl-spreepay .sl-spreepay__portal {
1696
1712
  position: relative;
1697
1713
  }
package/build/index.d.cts CHANGED
@@ -72,7 +72,7 @@ type NewCard = Pick<Card, 'expireMonth' | 'expireYear' | 'lastFourNumbers' | 'sc
72
72
  };
73
73
  type CardPaymentMethod = {
74
74
  method: NewCard | Card | null;
75
- type: PaymentType.CREDIT_CARD | PaymentType.SPLIT;
75
+ type: PaymentType.CREDIT_CARD;
76
76
  splitAmount?: number;
77
77
  };
78
78
  type CryptoPaymentMethod = {
@@ -84,7 +84,8 @@ type SelectedPaymentMethod = CardPaymentMethod | CryptoPaymentMethod;
84
84
  declare enum PaymentType {
85
85
  CREDIT_CARD = "CREDIT_CARD",
86
86
  CRYPTO = "CRYPTO",
87
- SPLIT = "SPLIT"
87
+ SPLIT = "SPLIT",
88
+ POINTS = "POINTS"
88
89
  }
89
90
  declare const enum SlapiPaymentStatus {
90
91
  NOT_INITIALIZED = "NOT_INITIALIZED",// back-end only
@@ -132,4 +133,4 @@ declare global {
132
133
  }
133
134
  }
134
135
 
135
- export { SpreePay, SpreePayProvider, useCapture3DS, useSpreePay };
136
+ export { type ENV, type PaymentMethodResult, PaymentType, type ProcessFn, type ProcessFnParams, type SelectedPaymentMethod, SlapiPaymentStatus, SpreePay, type SpreePayProps, SpreePayProvider, useCapture3DS, useSpreePay };
package/build/index.d.ts CHANGED
@@ -72,7 +72,7 @@ type NewCard = Pick<Card, 'expireMonth' | 'expireYear' | 'lastFourNumbers' | 'sc
72
72
  };
73
73
  type CardPaymentMethod = {
74
74
  method: NewCard | Card | null;
75
- type: PaymentType.CREDIT_CARD | PaymentType.SPLIT;
75
+ type: PaymentType.CREDIT_CARD;
76
76
  splitAmount?: number;
77
77
  };
78
78
  type CryptoPaymentMethod = {
@@ -84,7 +84,8 @@ type SelectedPaymentMethod = CardPaymentMethod | CryptoPaymentMethod;
84
84
  declare enum PaymentType {
85
85
  CREDIT_CARD = "CREDIT_CARD",
86
86
  CRYPTO = "CRYPTO",
87
- SPLIT = "SPLIT"
87
+ SPLIT = "SPLIT",
88
+ POINTS = "POINTS"
88
89
  }
89
90
  declare const enum SlapiPaymentStatus {
90
91
  NOT_INITIALIZED = "NOT_INITIALIZED",// back-end only
@@ -132,4 +133,4 @@ declare global {
132
133
  }
133
134
  }
134
135
 
135
- export { SpreePay, SpreePayProvider, useCapture3DS, useSpreePay };
136
+ export { type ENV, type PaymentMethodResult, PaymentType, type ProcessFn, type ProcessFnParams, type SelectedPaymentMethod, SlapiPaymentStatus, SpreePay, type SpreePayProps, SpreePayProvider, useCapture3DS, useSpreePay };