@reevit/react 0.4.9 → 0.5.0

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;
@@ -797,6 +829,89 @@
797
829
  gap: 12px;
798
830
  }
799
831
 
832
+ /* Success icon wrapper */
833
+ .reevit-success__icon-wrapper {
834
+ margin-bottom: 8px;
835
+ }
836
+
837
+ .reevit-success__icon-circle {
838
+ width: 72px;
839
+ height: 72px;
840
+ border-radius: 50%;
841
+ background: linear-gradient(135deg, var(--reevit-success), #10b981);
842
+ display: flex;
843
+ align-items: center;
844
+ justify-content: center;
845
+ animation: reevit-pop 0.4s ease-out;
846
+ box-shadow: 0 8px 24px -8px var(--reevit-success);
847
+ }
848
+
849
+ .reevit-success__checkmark {
850
+ width: 40px;
851
+ height: 40px;
852
+ }
853
+
854
+ .reevit-success__checkmark-circle {
855
+ stroke: rgba(255, 255, 255, 0.3);
856
+ stroke-width: 2;
857
+ stroke-dasharray: 166;
858
+ stroke-dashoffset: 166;
859
+ animation: reevit-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
860
+ }
861
+
862
+ .reevit-success__checkmark-check {
863
+ stroke: white;
864
+ stroke-width: 3;
865
+ stroke-linecap: round;
866
+ stroke-linejoin: round;
867
+ stroke-dasharray: 48;
868
+ stroke-dashoffset: 48;
869
+ animation: reevit-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
870
+ }
871
+
872
+ @keyframes reevit-stroke {
873
+ 100% { stroke-dashoffset: 0; }
874
+ }
875
+
876
+ .reevit-success__title {
877
+ font-size: 18px !important;
878
+ font-weight: 600;
879
+ color: var(--reevit-text);
880
+ margin: 0;
881
+ letter-spacing: -0.02em;
882
+ }
883
+
884
+ .reevit-success__amount {
885
+ font-size: 24px !important;
886
+ font-weight: 700;
887
+ color: var(--reevit-success);
888
+ margin: 4px 0 !important;
889
+ letter-spacing: -0.02em;
890
+ }
891
+
892
+ .reevit-success__reference {
893
+ font-size: 12px !important;
894
+ color: var(--reevit-text-secondary);
895
+ margin: 0 !important;
896
+ font-family: monospace;
897
+ background: var(--reevit-border);
898
+ padding: 6px 12px;
899
+ border-radius: var(--reevit-radius-sm);
900
+ }
901
+
902
+ .reevit-success__redirect {
903
+ font-size: 11px !important;
904
+ color: var(--reevit-muted);
905
+ margin-top: 8px !important;
906
+ animation: reevit-pulse 1.5s ease-in-out infinite;
907
+ }
908
+
909
+ @keyframes reevit-pulse {
910
+ 0%, 100% { opacity: 0.6; }
911
+ 50% { opacity: 1; }
912
+ }
913
+
914
+ /* Legacy success icon (fallback) */
800
915
  .reevit-success__icon {
801
916
  width: 48px;
802
917
  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.0",
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",