@reevit/react 0.4.9 → 0.5.1

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/dist/styles.css CHANGED
@@ -373,6 +373,38 @@
373
373
  border-bottom: none;
374
374
  }
375
375
 
376
+ /* Back button */
377
+ .reevit-psp-back-button {
378
+ display: flex;
379
+ align-items: center;
380
+ gap: 6px;
381
+ padding: 8px 12px;
382
+ margin-bottom: 12px;
383
+ background: transparent;
384
+ border: none;
385
+ border-radius: var(--reevit-radius-sm);
386
+ color: var(--reevit-text-secondary);
387
+ font-family: var(--reevit-font);
388
+ font-size: 13px;
389
+ font-weight: 500;
390
+ cursor: pointer;
391
+ transition: all 0.15s ease;
392
+ }
393
+
394
+ .reevit-psp-back-button:hover {
395
+ background: var(--reevit-border);
396
+ color: var(--reevit-text);
397
+ }
398
+
399
+ .reevit-psp-back-button:disabled {
400
+ opacity: 0.5;
401
+ cursor: not-allowed;
402
+ }
403
+
404
+ .reevit-psp-back-button svg {
405
+ flex-shrink: 0;
406
+ }
407
+
376
408
  /* ===== PAYMENT METHOD SELECTOR ===== */
377
409
  .reevit-method-selector {
378
410
  margin-bottom: 16px;
@@ -476,8 +508,9 @@
476
508
  display: flex;
477
509
  flex-direction: row;
478
510
  align-items: center;
479
- gap: 14px;
480
- padding: 14px 16px;
511
+ justify-content: flex-start;
512
+ gap: 16px;
513
+ padding: 16px 18px;
481
514
  background: transparent;
482
515
  border: none;
483
516
  border-bottom: 1px solid var(--reevit-border);
@@ -504,8 +537,8 @@
504
537
  .reevit-method-option--list .reevit-method-option__icon-wrapper {
505
538
  display: flex;
506
539
  align-items: center;
507
- justify-content: center;
508
- width: 40px;
540
+ justify-content: flex-start;
541
+ min-width: fit-content;
509
542
  height: 40px;
510
543
  background: transparent;
511
544
  flex-shrink: 0;
@@ -515,6 +548,9 @@
515
548
  .reevit-method-option--list .reevit-method-option__content {
516
549
  flex: 1;
517
550
  min-width: 0;
551
+ display: flex;
552
+ flex-direction: column;
553
+ align-items: flex-start;
518
554
  }
519
555
 
520
556
  .reevit-method-option--list .reevit-method-option__label {
@@ -545,14 +581,17 @@
545
581
  .reevit-method-option__logos {
546
582
  display: flex;
547
583
  align-items: center;
548
- gap: 4px;
584
+ gap: 6px;
549
585
  }
550
586
 
551
587
  .reevit-method-option__logo-img {
552
- width: 28px;
553
- height: 28px;
588
+ width: 36px;
589
+ height: 36px;
554
590
  object-fit: contain;
555
- border-radius: 4px;
591
+ border-radius: 6px;
592
+ background: #f8fafc;
593
+ padding: 4px;
594
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
556
595
  }
557
596
 
558
597
  .reevit-method-option--grid .reevit-method-option__logos {
@@ -797,6 +836,89 @@
797
836
  gap: 12px;
798
837
  }
799
838
 
839
+ /* Success icon wrapper */
840
+ .reevit-success__icon-wrapper {
841
+ margin-bottom: 8px;
842
+ }
843
+
844
+ .reevit-success__icon-circle {
845
+ width: 72px;
846
+ height: 72px;
847
+ border-radius: 50%;
848
+ background: linear-gradient(135deg, var(--reevit-success), #10b981);
849
+ display: flex;
850
+ align-items: center;
851
+ justify-content: center;
852
+ animation: reevit-pop 0.4s ease-out;
853
+ box-shadow: 0 8px 24px -8px var(--reevit-success);
854
+ }
855
+
856
+ .reevit-success__checkmark {
857
+ width: 40px;
858
+ height: 40px;
859
+ }
860
+
861
+ .reevit-success__checkmark-circle {
862
+ stroke: rgba(255, 255, 255, 0.3);
863
+ stroke-width: 2;
864
+ stroke-dasharray: 166;
865
+ stroke-dashoffset: 166;
866
+ animation: reevit-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
867
+ }
868
+
869
+ .reevit-success__checkmark-check {
870
+ stroke: white;
871
+ stroke-width: 3;
872
+ stroke-linecap: round;
873
+ stroke-linejoin: round;
874
+ stroke-dasharray: 48;
875
+ stroke-dashoffset: 48;
876
+ animation: reevit-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
877
+ }
878
+
879
+ @keyframes reevit-stroke {
880
+ 100% { stroke-dashoffset: 0; }
881
+ }
882
+
883
+ .reevit-success__title {
884
+ font-size: 18px !important;
885
+ font-weight: 600;
886
+ color: var(--reevit-text);
887
+ margin: 0;
888
+ letter-spacing: -0.02em;
889
+ }
890
+
891
+ .reevit-success__amount {
892
+ font-size: 24px !important;
893
+ font-weight: 700;
894
+ color: var(--reevit-success);
895
+ margin: 4px 0 !important;
896
+ letter-spacing: -0.02em;
897
+ }
898
+
899
+ .reevit-success__reference {
900
+ font-size: 12px !important;
901
+ color: var(--reevit-text-secondary);
902
+ margin: 0 !important;
903
+ font-family: monospace;
904
+ background: var(--reevit-border);
905
+ padding: 6px 12px;
906
+ border-radius: var(--reevit-radius-sm);
907
+ }
908
+
909
+ .reevit-success__redirect {
910
+ font-size: 11px !important;
911
+ color: var(--reevit-muted);
912
+ margin-top: 8px !important;
913
+ animation: reevit-pulse 1.5s ease-in-out infinite;
914
+ }
915
+
916
+ @keyframes reevit-pulse {
917
+ 0%, 100% { opacity: 0.6; }
918
+ 50% { opacity: 1; }
919
+ }
920
+
921
+ /* Legacy success icon (fallback) */
800
922
  .reevit-success__icon {
801
923
  width: 48px;
802
924
  height: 48px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reevit/react",
3
- "version": "0.4.9",
3
+ "version": "0.5.1",
4
4
  "description": "Reevit React SDK - Unified Payment Widget",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -16,7 +16,6 @@
16
16
  "scripts": {
17
17
  "build": "tsup",
18
18
  "dev": "tsup --watch",
19
- "preview": "vite --config preview/vite.config.ts",
20
19
  "lint": "eslint src/",
21
20
  "typecheck": "tsc --noEmit",
22
21
  "prepublishOnly": "npm run build"
@@ -32,12 +31,10 @@
32
31
  "@types/node": "^25.0.3",
33
32
  "@types/react": "^18.2.0",
34
33
  "@types/react-dom": "^18.2.0",
35
- "@vitejs/plugin-react": "^4.3.4",
36
34
  "react": "^18.2.0",
37
35
  "react-dom": "^18.2.0",
38
36
  "tsup": "^8.0.0",
39
- "typescript": "^5.0.0",
40
- "vite": "^6.0.0"
37
+ "typescript": "^5.0.0"
41
38
  },
42
39
  "keywords": [
43
40
  "reevit",