@flopay/ui 1.10.1 → 1.11.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.
@@ -731,3 +731,203 @@
731
731
  width: 100%;
732
732
  border: 0;
733
733
  }
734
+
735
+ /* ── Checklist (tick list) ── */
736
+ /* A rule naming a shared class (.checklist-tick, .step-indicator-marker) never uses
737
+ --success: only the done modifiers do, so an empty tick or upcoming step stays neutral. */
738
+ .checklist {
739
+ display: flex;
740
+ flex-direction: column;
741
+ margin: 0;
742
+ padding: 0;
743
+ list-style: none;
744
+ font-family: var(--font);
745
+ }
746
+
747
+ .checklist-row {
748
+ position: relative;
749
+ }
750
+
751
+ .checklist-row + .checklist-row {
752
+ border-top: 1px solid var(--border-light);
753
+ }
754
+
755
+ .checklist-row-body {
756
+ display: flex;
757
+ align-items: center;
758
+ gap: 12px;
759
+ padding: 12px;
760
+ font-size: 14px;
761
+ color: var(--text);
762
+ }
763
+
764
+ .checklist-row-link {
765
+ border-radius: var(--radius);
766
+ color: inherit;
767
+ text-decoration: none;
768
+ transition: background 0.15s;
769
+ }
770
+
771
+ .checklist-row-link:hover {
772
+ background: var(--bg-subtle);
773
+ }
774
+
775
+ .checklist-row-link:focus-visible {
776
+ outline: none;
777
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
778
+ }
779
+
780
+ .checklist-tick {
781
+ display: inline-flex;
782
+ flex-shrink: 0;
783
+ align-items: center;
784
+ justify-content: center;
785
+ width: 20px;
786
+ height: 20px;
787
+ border: 1.5px solid var(--border);
788
+ border-radius: 50%;
789
+ background: var(--bg-card);
790
+ }
791
+
792
+ .checklist-tick-done {
793
+ border-color: var(--success);
794
+ background: var(--success);
795
+ color: var(--bg-card);
796
+ }
797
+
798
+ .checklist-tick-icon {
799
+ width: 12px;
800
+ height: 12px;
801
+ }
802
+
803
+ .checklist-row-label {
804
+ min-width: 0;
805
+ }
806
+
807
+ .checklist-row-status {
808
+ margin-left: auto;
809
+ font-size: 13px;
810
+ color: var(--text-secondary);
811
+ white-space: nowrap;
812
+ }
813
+
814
+ /* ── Checklist skeleton ── */
815
+ .checklist-skeleton {
816
+ position: relative;
817
+ display: flex;
818
+ flex-direction: column;
819
+ }
820
+
821
+ .checklist-skeleton-row {
822
+ display: flex;
823
+ align-items: center;
824
+ gap: 12px;
825
+ padding: 12px;
826
+ animation: fp-pulse 1.5s ease-in-out infinite;
827
+ }
828
+
829
+ .checklist-skeleton-row + .checklist-skeleton-row {
830
+ border-top: 1px solid var(--border-light);
831
+ }
832
+
833
+ .checklist-skeleton-tick {
834
+ flex-shrink: 0;
835
+ width: 20px;
836
+ height: 20px;
837
+ border-radius: 50%;
838
+ background: var(--bg-muted);
839
+ }
840
+
841
+ .checklist-skeleton-line {
842
+ width: 60%;
843
+ height: 12px;
844
+ border-radius: 6px;
845
+ background: var(--bg-muted);
846
+ }
847
+
848
+ @keyframes fp-pulse {
849
+ 50% {
850
+ opacity: 0.5;
851
+ }
852
+ }
853
+
854
+ @media (prefers-reduced-motion: reduce) {
855
+ .checklist-skeleton-row {
856
+ animation: none;
857
+ }
858
+ }
859
+
860
+ /* ── Step indicator ── */
861
+ .step-indicator {
862
+ display: flex;
863
+ flex-wrap: wrap;
864
+ align-items: center;
865
+ gap: 8px;
866
+ margin: 0;
867
+ padding: 0;
868
+ list-style: none;
869
+ font-family: var(--font);
870
+ font-size: 14px;
871
+ }
872
+
873
+ .step-indicator-step {
874
+ position: relative;
875
+ display: flex;
876
+ flex: 1 1 auto;
877
+ align-items: center;
878
+ gap: 8px;
879
+ }
880
+
881
+ .step-indicator-step:last-child {
882
+ flex: 0 0 auto;
883
+ }
884
+
885
+ /* Connector between steps. */
886
+ .step-indicator-step:not(:last-child)::after {
887
+ content: '';
888
+ flex: 1 1 16px;
889
+ min-width: 16px;
890
+ height: 1px;
891
+ background: var(--border);
892
+ }
893
+
894
+ .step-indicator-marker {
895
+ display: inline-flex;
896
+ flex-shrink: 0;
897
+ align-items: center;
898
+ justify-content: center;
899
+ width: 24px;
900
+ height: 24px;
901
+ border: 2px solid var(--border);
902
+ border-radius: 50%;
903
+ background: var(--bg-card);
904
+ font-size: 12px;
905
+ font-weight: 600;
906
+ color: var(--text-secondary);
907
+ }
908
+
909
+ .step-indicator-marker-done {
910
+ border-color: var(--success);
911
+ background: var(--success);
912
+ color: var(--bg-card);
913
+ }
914
+
915
+ .step-indicator-marker-current {
916
+ border-color: var(--brand);
917
+ color: var(--brand);
918
+ }
919
+
920
+ .step-indicator-icon {
921
+ width: 14px;
922
+ height: 14px;
923
+ }
924
+
925
+ .step-indicator-label {
926
+ color: var(--text-secondary);
927
+ white-space: nowrap;
928
+ }
929
+
930
+ .step-indicator-label-current {
931
+ font-weight: 600;
932
+ color: var(--text);
933
+ }