accessibility-plugin-react 2.2.1 → 2.3.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/style.css CHANGED
@@ -701,3 +701,302 @@
701
701
  min-width: 48px;
702
702
  min-height: 48px;
703
703
  }
704
+
705
+ /* Feature Cards, Control Primitives, State UI, and Profile Previews */
706
+ .arap-feature-card {
707
+ display: flex;
708
+ flex-direction: column;
709
+ align-items: stretch;
710
+ gap: 12px;
711
+ }
712
+ .arap-card-header {
713
+ display: flex;
714
+ align-items: center;
715
+ justify-content: space-between;
716
+ gap: 8px;
717
+ }
718
+ .arap-card-title {
719
+ font-weight: 600;
720
+ font-size: 15px;
721
+ color: var(--arap-text);
722
+ }
723
+ .arap-card-desc {
724
+ margin: 0;
725
+ font-size: 13px;
726
+ color: var(--arap-muted);
727
+ line-height: 1.4;
728
+ }
729
+ .arap-status-badge {
730
+ display: inline-flex;
731
+ align-items: center;
732
+ padding: 2px 8px;
733
+ border-radius: 9999px;
734
+ font-size: 11px;
735
+ font-weight: 600;
736
+ background: var(--arap-control);
737
+ border: 1px solid var(--arap-border);
738
+ color: var(--arap-muted);
739
+ text-transform: uppercase;
740
+ letter-spacing: 0.05em;
741
+ }
742
+ .arap-card-alert {
743
+ display: flex;
744
+ align-items: flex-start;
745
+ gap: 8px;
746
+ padding: 10px 12px;
747
+ border-radius: 8px;
748
+ font-size: 13px;
749
+ line-height: 1.4;
750
+ }
751
+ .arap-alert-icon {
752
+ flex: none;
753
+ font-size: 16px;
754
+ line-height: 1;
755
+ }
756
+ .arap-card-error {
757
+ background: #fef2f2;
758
+ border: 1px solid #fecaca;
759
+ color: #991b1b;
760
+ }
761
+ .arap-card-unavailable {
762
+ background: #f8fafc;
763
+ border: 1px solid var(--arap-border);
764
+ color: var(--arap-muted);
765
+ }
766
+ .arap-card-permission {
767
+ background: #fffbeb;
768
+ border: 1px solid #fde68a;
769
+ color: #92400e;
770
+ }
771
+ .arap-permission-content {
772
+ display: flex;
773
+ flex-direction: column;
774
+ gap: 6px;
775
+ }
776
+ .arap-permission-btn {
777
+ align-self: flex-start;
778
+ padding: 4px 10px;
779
+ border: 1px solid #d97706;
780
+ border-radius: 6px;
781
+ background: #f59e0b;
782
+ color: #fff;
783
+ font-size: 12px;
784
+ font-weight: 600;
785
+ cursor: pointer;
786
+ }
787
+ .arap-permission-btn:hover {
788
+ background: #d97706;
789
+ }
790
+ .arap-card-content {
791
+ display: flex;
792
+ flex-direction: column;
793
+ gap: 8px;
794
+ }
795
+
796
+ /* Choice control grouping and badges */
797
+ .arap-choice-group {
798
+ display: flex;
799
+ flex-direction: column;
800
+ gap: 6px;
801
+ width: 100%;
802
+ }
803
+ .arap-choice-group-title {
804
+ font-size: 12px;
805
+ font-weight: 600;
806
+ color: var(--arap-muted);
807
+ text-transform: uppercase;
808
+ letter-spacing: 0.05em;
809
+ }
810
+ .arap-choice-badge {
811
+ font-size: 11px;
812
+ padding: 1px 5px;
813
+ border-radius: 4px;
814
+ background: var(--arap-divider);
815
+ color: var(--arap-muted);
816
+ }
817
+ .arap-segment-active .arap-choice-badge {
818
+ background: rgba(255, 255, 255, 0.25);
819
+ color: #fff;
820
+ }
821
+
822
+ /* Stepper slider */
823
+ .arap-stepper-control-wrapper {
824
+ display: flex;
825
+ flex-direction: column;
826
+ gap: 8px;
827
+ width: 100%;
828
+ }
829
+ .arap-slider-container {
830
+ display: flex;
831
+ align-items: center;
832
+ padding: 4px 0;
833
+ }
834
+ .arap-slider {
835
+ width: 100%;
836
+ accent-color: var(--arap-accent);
837
+ cursor: pointer;
838
+ }
839
+
840
+ /* Search Count & Empty State */
841
+ .arap-search-count {
842
+ padding: 6px 0;
843
+ font-size: 12px;
844
+ font-weight: 500;
845
+ color: var(--arap-muted);
846
+ }
847
+ .arap-empty-state {
848
+ display: flex;
849
+ flex-direction: column;
850
+ align-items: center;
851
+ justify-content: center;
852
+ text-align: center;
853
+ padding: 24px 16px;
854
+ gap: 8px;
855
+ }
856
+ .arap-empty-icon {
857
+ font-size: 32px;
858
+ }
859
+ .arap-empty-title {
860
+ margin: 0;
861
+ font-size: 16px;
862
+ font-weight: 600;
863
+ color: var(--arap-text);
864
+ }
865
+ .arap-empty-desc {
866
+ margin: 0;
867
+ font-size: 13px;
868
+ color: var(--arap-muted);
869
+ }
870
+ .arap-empty-btn,
871
+ .arap-retry-btn {
872
+ margin-top: 6px;
873
+ padding: 8px 16px;
874
+ border: 1px solid var(--arap-border);
875
+ border-radius: 8px;
876
+ background: var(--arap-control);
877
+ font-weight: 500;
878
+ font-size: 13px;
879
+ color: var(--arap-text);
880
+ cursor: pointer;
881
+ }
882
+ .arap-empty-btn:hover,
883
+ .arap-retry-btn:hover {
884
+ background: var(--arap-selected);
885
+ border-color: var(--arap-accent);
886
+ color: var(--arap-accent);
887
+ }
888
+
889
+ /* Profile Preview Card */
890
+ .arap-profile-card {
891
+ display: flex;
892
+ flex-direction: column;
893
+ gap: 12px;
894
+ padding: 16px;
895
+ border: 1px solid var(--arap-border);
896
+ border-radius: 12px;
897
+ background: var(--arap-surface);
898
+ transition:
899
+ border-color 0.15s,
900
+ box-shadow 0.15s;
901
+ }
902
+ .arap-profile-card-active {
903
+ border-color: var(--arap-accent);
904
+ background: var(--arap-selected);
905
+ box-shadow: 0 0 0 1px var(--arap-accent);
906
+ }
907
+ .arap-profile-header {
908
+ display: flex;
909
+ flex-direction: column;
910
+ gap: 4px;
911
+ }
912
+ .arap-profile-title-row {
913
+ display: flex;
914
+ align-items: center;
915
+ justify-content: space-between;
916
+ gap: 8px;
917
+ }
918
+ .arap-profile-title {
919
+ margin: 0;
920
+ font-size: 15px;
921
+ font-weight: 600;
922
+ color: var(--arap-text);
923
+ }
924
+ .arap-profile-active-badge {
925
+ font-size: 11px;
926
+ font-weight: 600;
927
+ color: var(--arap-accent);
928
+ background: #dbeafe;
929
+ padding: 2px 8px;
930
+ border-radius: 9999px;
931
+ }
932
+ .arap-profile-desc {
933
+ margin: 0;
934
+ font-size: 13px;
935
+ color: var(--arap-muted);
936
+ line-height: 1.4;
937
+ }
938
+ .arap-profile-affected {
939
+ display: flex;
940
+ flex-direction: column;
941
+ gap: 6px;
942
+ }
943
+ .arap-profile-affected-label {
944
+ font-size: 11px;
945
+ font-weight: 600;
946
+ color: var(--arap-muted);
947
+ text-transform: uppercase;
948
+ letter-spacing: 0.05em;
949
+ }
950
+ .arap-profile-chips {
951
+ display: flex;
952
+ flex-wrap: wrap;
953
+ gap: 6px;
954
+ }
955
+ .arap-profile-chip {
956
+ display: inline-flex;
957
+ align-items: center;
958
+ gap: 4px;
959
+ padding: 3px 8px;
960
+ border-radius: 6px;
961
+ background: var(--arap-control);
962
+ border: 1px solid var(--arap-divider);
963
+ font-size: 12px;
964
+ color: var(--arap-text);
965
+ }
966
+ .arap-profile-actions {
967
+ display: flex;
968
+ gap: 8px;
969
+ margin-top: 4px;
970
+ }
971
+ .arap-profile-apply-btn {
972
+ flex: 1;
973
+ padding: 8px 14px;
974
+ border: 1px solid var(--arap-accent);
975
+ border-radius: 8px;
976
+ background: var(--arap-accent);
977
+ color: #fff;
978
+ font-size: 13px;
979
+ font-weight: 600;
980
+ cursor: pointer;
981
+ text-align: center;
982
+ }
983
+ .arap-profile-apply-btn:hover {
984
+ background: var(--arap-accent-hover);
985
+ }
986
+ .arap-profile-revert-btn {
987
+ flex: 1;
988
+ padding: 8px 14px;
989
+ border: 1px solid var(--arap-border);
990
+ border-radius: 8px;
991
+ background: var(--arap-surface);
992
+ color: var(--arap-muted);
993
+ font-size: 13px;
994
+ font-weight: 600;
995
+ cursor: pointer;
996
+ text-align: center;
997
+ }
998
+ .arap-profile-revert-btn:hover {
999
+ background: var(--arap-control);
1000
+ color: var(--arap-text);
1001
+ border-color: var(--arap-text);
1002
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accessibility-plugin-react",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "description": "A composable React display-preference widget with a clean light design, persistent settings and movable accessible controls.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",