@rhinestone/deposit-modal 0.1.52 → 0.1.53

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
@@ -676,262 +676,165 @@
676
676
  ============================================================================= */
677
677
 
678
678
  .rs-phase-board {
679
- position: relative;
680
679
  padding: 14px;
681
680
  border-radius: var(--rs-radius-md);
682
681
  border: 1px solid var(--rs-border-surface);
683
- background:
684
- radial-gradient(
685
- circle at top right,
686
- rgba(24, 24, 27, 0.08),
687
- transparent 42%
688
- ),
689
- linear-gradient(180deg, var(--rs-background-secondary), var(--rs-surface));
690
- overflow: hidden;
682
+ background: var(--rs-background-secondary);
691
683
  }
692
684
 
693
685
  .rs-modal[data-theme="dark"] .rs-phase-board {
694
- background:
695
- radial-gradient(
696
- circle at top right,
697
- rgba(244, 244, 245, 0.08),
698
- transparent 42%
699
- ),
700
- linear-gradient(180deg, var(--rs-background-secondary), var(--rs-surface));
686
+ background: var(--rs-surface);
701
687
  }
702
688
 
703
- .rs-phase-board-header {
689
+ /* Horizontal progress track */
690
+ .rs-track {
704
691
  display: flex;
705
692
  align-items: flex-start;
706
693
  justify-content: space-between;
707
- gap: 12px;
708
- margin-bottom: 14px;
709
- }
710
-
711
- .rs-phase-board-kicker {
712
- display: block;
713
- margin-bottom: 2px;
714
- font-size: 11px;
715
- font-weight: 600;
716
- letter-spacing: 0.08em;
717
- text-transform: uppercase;
718
- color: var(--rs-muted-foreground);
719
- }
720
-
721
- .rs-phase-board-route {
722
- font-size: 13px;
723
- font-weight: 600;
724
- color: var(--rs-foreground);
694
+ position: relative;
695
+ padding: 0 4px;
725
696
  }
726
697
 
727
- .rs-phase-board-total {
728
- display: flex;
729
- flex-direction: column;
730
- align-items: flex-end;
731
- gap: 2px;
732
- flex-shrink: 0;
733
- text-align: right;
698
+ .rs-track-rail {
699
+ position: absolute;
700
+ top: 11px;
701
+ left: 16px;
702
+ right: 16px;
703
+ height: 3px;
704
+ border-radius: 2px;
705
+ background: var(--rs-border-surface);
706
+ overflow: hidden;
734
707
  }
735
708
 
736
- .rs-phase-board-total span {
737
- font-size: 11px;
738
- text-transform: uppercase;
739
- letter-spacing: 0.08em;
740
- color: var(--rs-muted-foreground);
709
+ .rs-track-fill {
710
+ height: 100%;
711
+ border-radius: 2px;
712
+ background: var(--rs-success);
713
+ transition: width 0.6s ease;
741
714
  }
742
715
 
743
- .rs-phase-board-total strong {
744
- font-family:
745
- ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
746
- font-size: 13px;
747
- font-weight: 700;
748
- color: var(--rs-foreground);
716
+ .rs-track-fill--failed {
717
+ background: var(--rs-error);
749
718
  }
750
719
 
751
- .rs-phase-list {
720
+ .rs-track-checkpoint {
752
721
  display: flex;
753
722
  flex-direction: column;
754
- gap: 10px;
755
- }
756
-
757
- .rs-phase-row {
758
- display: flex;
759
- gap: 10px;
760
- }
761
-
762
- .rs-phase-rail {
723
+ align-items: center;
724
+ gap: 6px;
763
725
  position: relative;
764
- width: 18px;
765
- flex-shrink: 0;
766
- display: flex;
767
- justify-content: center;
768
- }
769
-
770
- .rs-phase-rail::before {
771
- content: "";
772
- position: absolute;
773
- top: 0;
774
- bottom: -10px;
775
- width: 1px;
776
- background: var(--rs-border);
777
- }
778
-
779
- .rs-phase-row:last-child .rs-phase-rail::before {
780
- bottom: 14px;
726
+ z-index: 1;
727
+ min-width: 48px;
781
728
  }
782
729
 
783
- .rs-phase-dot {
784
- position: relative;
785
- z-index: 1;
786
- width: 10px;
787
- height: 10px;
788
- margin-top: 12px;
730
+ .rs-track-node {
731
+ width: 22px;
732
+ height: 22px;
789
733
  border-radius: 50%;
790
734
  background: var(--rs-border);
791
- box-shadow: 0 0 0 5px var(--rs-background);
792
- }
793
-
794
- .rs-phase-copy {
795
- flex: 1;
796
- min-width: 0;
797
- padding: 10px 12px;
798
- border-radius: var(--rs-radius-md);
799
- background: rgba(255, 255, 255, 0.5);
800
- box-shadow: inset 0 0 0 1px var(--rs-border-surface);
801
- }
802
-
803
- .rs-modal[data-theme="dark"] .rs-phase-copy {
804
- background: rgba(255, 255, 255, 0.03);
805
- }
806
-
807
- .rs-phase-row-header {
808
735
  display: flex;
809
- align-items: flex-start;
810
- justify-content: space-between;
811
- gap: 12px;
812
- }
813
-
814
- .rs-phase-title-block {
815
- min-width: 0;
736
+ align-items: center;
737
+ justify-content: center;
738
+ transition: background 0.3s ease, box-shadow 0.3s ease;
816
739
  }
817
740
 
818
- .rs-phase-title {
819
- font-size: 13px;
820
- font-weight: 600;
821
- color: var(--rs-foreground);
741
+ .rs-track-check-icon {
742
+ width: 11px;
743
+ height: 11px;
822
744
  }
823
745
 
824
- .rs-phase-description {
825
- margin-top: 3px;
826
- font-size: 12px;
827
- line-height: 1.5;
746
+ .rs-track-label {
747
+ font-size: 11px;
748
+ font-weight: 500;
828
749
  color: var(--rs-muted);
750
+ white-space: nowrap;
829
751
  }
830
752
 
831
- .rs-phase-meta {
832
- display: flex;
833
- flex-direction: column;
834
- align-items: flex-end;
835
- gap: 4px;
836
- flex-shrink: 0;
837
- }
838
-
839
- .rs-phase-status {
840
- display: inline-flex;
841
- align-items: center;
842
- justify-content: center;
843
- min-height: 20px;
844
- padding: 0 8px;
845
- border-radius: var(--rs-radius-full);
846
- background: var(--rs-primary-tint);
847
- font-size: 10px;
848
- font-weight: 700;
849
- letter-spacing: 0.08em;
850
- text-transform: uppercase;
851
- color: var(--rs-primary);
753
+ @keyframes rs-track-pulse {
754
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(24, 24, 27, 0.15); }
755
+ 50% { box-shadow: 0 0 0 6px rgba(24, 24, 27, 0.08); }
852
756
  }
853
757
 
854
- .rs-phase-timer {
855
- font-family:
856
- ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
857
- font-size: 12px;
858
- font-weight: 700;
859
- color: var(--rs-foreground);
758
+ .rs-modal[data-theme="dark"] .rs-track-checkpoint--active .rs-track-node {
759
+ animation-name: rs-track-pulse-dark;
860
760
  }
861
761
 
862
- @keyframes rs-phase-pulse {
863
- 0%, 100% { box-shadow: 0 0 0 5px var(--rs-primary-tint); }
864
- 50% { box-shadow: 0 0 0 8px var(--rs-primary-tint); }
762
+ @keyframes rs-track-pulse-dark {
763
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15); }
764
+ 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08); }
865
765
  }
866
766
 
867
- .rs-phase-row--active .rs-phase-dot {
767
+ .rs-track-checkpoint--active .rs-track-node {
868
768
  background: var(--rs-primary);
869
- animation: rs-phase-pulse 2s ease-in-out infinite;
769
+ animation: rs-track-pulse 2s ease-in-out infinite;
870
770
  }
871
771
 
872
- .rs-phase-row--active .rs-phase-copy {
873
- box-shadow:
874
- inset 0 0 0 1px var(--rs-border-accent),
875
- 0 8px 18px rgba(0, 0, 0, 0.04);
772
+ .rs-track-checkpoint--active .rs-track-label {
773
+ font-weight: 600;
774
+ color: var(--rs-foreground);
876
775
  }
877
776
 
878
- .rs-phase-row--warning .rs-phase-dot {
777
+ .rs-track-checkpoint--warning .rs-track-node {
879
778
  background: var(--color-amber8);
880
- box-shadow: 0 0 0 5px var(--rs-warning-tint);
881
- }
882
-
883
- .rs-phase-row--warning .rs-phase-copy {
884
- background: var(--rs-warning-tint);
885
- box-shadow: inset 0 0 0 1px rgba(226, 163, 54, 0.24);
779
+ box-shadow: 0 0 0 4px var(--rs-warning-tint);
886
780
  }
887
781
 
888
- .rs-phase-row--warning .rs-phase-status {
889
- background: rgba(226, 163, 54, 0.16);
782
+ .rs-track-checkpoint--warning .rs-track-label {
890
783
  color: var(--color-amber8);
891
784
  }
892
785
 
893
- .rs-phase-row--complete .rs-phase-dot {
786
+ .rs-track-checkpoint--complete .rs-track-node {
894
787
  background: var(--rs-success);
895
- box-shadow: 0 0 0 5px var(--rs-success-tint);
896
788
  }
897
789
 
898
- .rs-phase-row--complete .rs-phase-copy {
899
- background: var(--rs-success-tint);
900
- box-shadow: inset 0 0 0 1px rgba(48, 164, 108, 0.2);
790
+ .rs-track-checkpoint--complete .rs-track-check-icon {
791
+ stroke: white;
901
792
  }
902
793
 
903
- .rs-phase-row--complete .rs-phase-status {
904
- background: rgba(48, 164, 108, 0.14);
794
+ .rs-track-checkpoint--complete .rs-track-label {
905
795
  color: var(--rs-success);
906
796
  }
907
797
 
908
- .rs-phase-row--failed .rs-phase-dot {
798
+ .rs-track-checkpoint--failed .rs-track-node {
909
799
  background: var(--rs-error);
910
- box-shadow: 0 0 0 5px var(--rs-error-tint);
911
800
  }
912
801
 
913
- .rs-phase-row--failed .rs-phase-copy {
914
- background: var(--rs-error-tint);
915
- box-shadow: inset 0 0 0 1px rgba(229, 72, 77, 0.2);
802
+ .rs-track-checkpoint--failed .rs-track-check-icon {
803
+ stroke: white;
916
804
  }
917
805
 
918
- .rs-phase-row--failed .rs-phase-status {
919
- background: rgba(229, 72, 77, 0.14);
806
+ .rs-track-checkpoint--failed .rs-track-label {
920
807
  color: var(--rs-error);
921
808
  }
922
809
 
923
- @media (max-width: 420px) {
924
- .rs-phase-board-header,
925
- .rs-phase-row-header {
926
- flex-direction: column;
927
- align-items: flex-start;
928
- }
810
+ .rs-phase-divider {
811
+ height: 1px;
812
+ margin: 8px 0;
813
+ background: var(--rs-border-surface);
814
+ }
929
815
 
930
- .rs-phase-board-total,
931
- .rs-phase-meta {
932
- align-items: flex-start;
933
- text-align: left;
934
- }
816
+ .rs-phase-details {
817
+ display: flex;
818
+ flex-direction: column;
819
+ gap: 4px;
820
+ }
821
+
822
+ .rs-phase-detail-row {
823
+ display: flex;
824
+ align-items: center;
825
+ justify-content: space-between;
826
+ height: 24px;
827
+ }
828
+
829
+ .rs-phase-detail-label {
830
+ font-size: 12px;
831
+ color: var(--rs-muted);
832
+ }
833
+
834
+ .rs-phase-detail-value {
835
+ font-size: 12px;
836
+ font-weight: 600;
837
+ color: var(--rs-foreground);
935
838
  }
936
839
 
937
840
  /* =============================================================================
@@ -2844,3 +2747,224 @@
2844
2747
  background: var(--rs-card);
2845
2748
  color: var(--rs-foreground);
2846
2749
  }
2750
+
2751
+ /* =============================================================================
2752
+ Step Indicator (numbered circles with dotted line)
2753
+ ============================================================================= */
2754
+
2755
+ .rs-step-indicator {
2756
+ display: flex;
2757
+ align-items: center;
2758
+ }
2759
+
2760
+ .rs-step-indicator-node {
2761
+ width: 28px;
2762
+ height: 28px;
2763
+ border-radius: 50%;
2764
+ display: flex;
2765
+ align-items: center;
2766
+ justify-content: center;
2767
+ font-size: 12px;
2768
+ font-weight: 600;
2769
+ transition: background-color 0.2s, color 0.2s, border-color 0.2s;
2770
+ border: 1.5px solid var(--rs-border);
2771
+ background: transparent;
2772
+ color: var(--rs-muted);
2773
+ }
2774
+
2775
+ .rs-step-indicator-node--active {
2776
+ border-color: var(--rs-foreground);
2777
+ background: var(--rs-foreground);
2778
+ color: var(--rs-background);
2779
+ }
2780
+
2781
+ .rs-step-indicator-node--inactive {
2782
+ border-color: var(--rs-border);
2783
+ background: transparent;
2784
+ color: var(--rs-muted);
2785
+ }
2786
+
2787
+ .rs-step-indicator-node--complete {
2788
+ border-color: var(--rs-success);
2789
+ background: var(--rs-success);
2790
+ color: white;
2791
+ }
2792
+
2793
+ .rs-step-indicator-node--complete svg {
2794
+ width: 14px;
2795
+ height: 14px;
2796
+ }
2797
+
2798
+ .rs-step-indicator-line {
2799
+ width: 40px;
2800
+ height: 0;
2801
+ border-top: 2px dashed var(--rs-border);
2802
+ margin: 0 6px;
2803
+ transition: border-color 0.3s;
2804
+ }
2805
+
2806
+ .rs-step-indicator-line--active {
2807
+ border-color: var(--rs-success);
2808
+ border-top-style: solid;
2809
+ }
2810
+
2811
+ /* =============================================================================
2812
+ Processing Badges (centered icon badges)
2813
+ ============================================================================= */
2814
+
2815
+ .rs-step-header--centered {
2816
+ display: flex;
2817
+ flex-direction: column;
2818
+ align-items: center;
2819
+ text-align: center;
2820
+ padding: 16px 16px 0;
2821
+ }
2822
+
2823
+ .rs-step-header--centered .rs-step-title {
2824
+ margin-top: 0;
2825
+ }
2826
+
2827
+ .rs-step-header--centered .rs-step-description {
2828
+ max-width: 280px;
2829
+ }
2830
+
2831
+ .rs-success-badge {
2832
+ width: 56px;
2833
+ height: 56px;
2834
+ border-radius: 50%;
2835
+ background-color: var(--rs-success);
2836
+ color: white;
2837
+ display: flex;
2838
+ align-items: center;
2839
+ justify-content: center;
2840
+ margin: 0 auto 16px;
2841
+ animation: rs-success-glow 2s ease-in-out infinite;
2842
+ }
2843
+
2844
+ .rs-success-badge svg {
2845
+ width: 28px;
2846
+ height: 28px;
2847
+ }
2848
+
2849
+ @keyframes rs-success-glow {
2850
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(48, 164, 108, 0.3); }
2851
+ 50% { box-shadow: 0 0 0 12px rgba(48, 164, 108, 0); }
2852
+ }
2853
+
2854
+ .rs-modal[data-theme="dark"] .rs-success-badge {
2855
+ animation-name: rs-success-glow-dark;
2856
+ }
2857
+
2858
+ @keyframes rs-success-glow-dark {
2859
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(60, 177, 121, 0.3); }
2860
+ 50% { box-shadow: 0 0 0 12px rgba(60, 177, 121, 0); }
2861
+ }
2862
+
2863
+ .rs-processing-badge {
2864
+ width: 56px;
2865
+ height: 56px;
2866
+ border-radius: 50%;
2867
+ background-color: var(--rs-primary-tint);
2868
+ color: var(--rs-primary);
2869
+ display: flex;
2870
+ align-items: center;
2871
+ justify-content: center;
2872
+ margin: 0 auto 16px;
2873
+ }
2874
+
2875
+ .rs-processing-badge .rs-spinner {
2876
+ width: 28px;
2877
+ height: 28px;
2878
+ }
2879
+
2880
+ .rs-failed-badge {
2881
+ width: 56px;
2882
+ height: 56px;
2883
+ border-radius: 50%;
2884
+ background-color: var(--rs-error-tint);
2885
+ color: var(--rs-error);
2886
+ display: flex;
2887
+ align-items: center;
2888
+ justify-content: center;
2889
+ margin: 0 auto 16px;
2890
+ }
2891
+
2892
+ .rs-failed-badge svg {
2893
+ width: 28px;
2894
+ height: 28px;
2895
+ }
2896
+
2897
+ /* =============================================================================
2898
+ Card Value Status Colors + External Link
2899
+ ============================================================================= */
2900
+
2901
+ .rs-card-value--success {
2902
+ color: var(--rs-success);
2903
+ }
2904
+
2905
+ .rs-card-value--error {
2906
+ color: var(--rs-error);
2907
+ }
2908
+
2909
+ .rs-card-external-link {
2910
+ display: inline-flex;
2911
+ align-items: center;
2912
+ color: var(--rs-muted-foreground);
2913
+ transition: color 0.15s;
2914
+ text-decoration: none;
2915
+ }
2916
+
2917
+ .rs-card-external-link:hover {
2918
+ color: var(--rs-foreground);
2919
+ }
2920
+
2921
+ .rs-card-external-link svg {
2922
+ width: 12px;
2923
+ height: 12px;
2924
+ }
2925
+
2926
+ /* =============================================================================
2927
+ Details Toggle
2928
+ ============================================================================= */
2929
+
2930
+ .rs-details-toggle {
2931
+ display: flex;
2932
+ align-items: center;
2933
+ justify-content: center;
2934
+ gap: 4px;
2935
+ width: 100%;
2936
+ padding: 8px 0;
2937
+ border: none;
2938
+ background: transparent;
2939
+ color: var(--rs-muted-foreground);
2940
+ font-size: 12px;
2941
+ font-weight: 500;
2942
+ cursor: pointer;
2943
+ font-family: inherit;
2944
+ transition: color 0.15s;
2945
+ }
2946
+
2947
+ .rs-details-toggle:hover {
2948
+ color: var(--rs-foreground);
2949
+ }
2950
+
2951
+ .rs-details-toggle svg {
2952
+ width: 14px;
2953
+ height: 14px;
2954
+ transition: transform 0.2s;
2955
+ }
2956
+
2957
+ .rs-details-toggle--open svg {
2958
+ transform: rotate(180deg);
2959
+ }
2960
+
2961
+ /* =============================================================================
2962
+ Minimum Deposit Text
2963
+ ============================================================================= */
2964
+
2965
+ .rs-amount-minimum {
2966
+ text-align: center;
2967
+ font-size: 13px;
2968
+ color: var(--rs-muted-foreground);
2969
+ margin-top: 8px;
2970
+ }
package/dist/withdraw.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJL3R3JT6cjs = require('./chunk-JL3R3JT6.cjs');
4
- require('./chunk-RVKMKH2C.cjs');
3
+ var _chunkK57KO3SWcjs = require('./chunk-K57KO3SW.cjs');
4
+ require('./chunk-DBBSH7HP.cjs');
5
5
  require('./chunk-NELAYNA3.cjs');
6
6
 
7
7
 
8
- exports.WithdrawModal = _chunkJL3R3JT6cjs.WithdrawModal;
8
+ exports.WithdrawModal = _chunkK57KO3SWcjs.WithdrawModal;
package/dist/withdraw.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-R64A3IEI.mjs";
4
- import "./chunk-MKSZIA74.mjs";
3
+ } from "./chunk-4BL7RCZB.mjs";
4
+ import "./chunk-REDAO3MS.mjs";
5
5
  import "./chunk-ZJQZEIHA.mjs";
6
6
  export {
7
7
  WithdrawModal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {