@maz-ui/mcp 4.1.3 → 4.1.7-beta.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/mcp.mjs CHANGED
@@ -7,7 +7,7 @@ import { existsSync, readFileSync, readdirSync } from 'node:fs';
7
7
  import { resolve, dirname, join } from 'node:path';
8
8
  import { fileURLToPath } from 'node:url';
9
9
 
10
- const version = "4.1.2";
10
+ const version = "4.1.6";
11
11
 
12
12
  const _dirname = dirname(fileURLToPath(import.meta.url));
13
13
  class DocumentationService {
@@ -690,7 +690,6 @@ You can use async functions in the validation schema.
690
690
  minLength(3, 'Name must be at least 3 characters'),
691
691
  checkAsync(
692
692
  async (name) => {
693
- console.log('name', name)
694
693
  await sleep(2000)
695
694
  return false
696
695
  },
@@ -1111,7 +1110,6 @@ interface FormFieldOptions<T> {
1111
1110
  minLength(3, 'Name must be at least 3 characters'),
1112
1111
  checkAsync(
1113
1112
  async (name) => {
1114
- console.log('name', name)
1115
1113
  await sleep(2000)
1116
1114
  return false
1117
1115
  },
@@ -783,6 +783,389 @@ The system automatically generates all necessary variables:
783
783
  }
784
784
  ```
785
785
 
786
+ ::: details View all generated CSS variables (with maz-ui preset)
787
+
788
+ ```css
789
+ @layer maz-ui-theme {
790
+ :root {
791
+ --maz-background: 0 0% 100%;
792
+ --maz-foreground: 210 8% 14%;
793
+ --maz-primary: 210 100% 56%;
794
+ --maz-primary-foreground: 0 0% 100%;
795
+ --maz-secondary: 272 99% 54%;
796
+ --maz-secondary-foreground: 0 0% 100%;
797
+ --maz-accent: 164 76% 46%;
798
+ --maz-accent-foreground: 0 0% 100%;
799
+ --maz-destructive: 356.95 95.91% 57.73%;
800
+ --maz-destructive-foreground: 0 0% 100%;
801
+ --maz-success: 80 61% 50%;
802
+ --maz-success-foreground: 210 8% 14%;
803
+ --maz-warning: 40 97% 59%;
804
+ --maz-warning-foreground: 210 8% 14%;
805
+ --maz-info: 188 78% 41%;
806
+ --maz-info-foreground: 0 0% 100%;
807
+ --maz-contrast: 235 16% 15%;
808
+ --maz-contrast-foreground: 255 0% 95%;
809
+ --maz-muted: 0 0% 54%;
810
+ --maz-shadow: 240 5.9% 10%;
811
+ --maz-border: 220 13.04% 90.98%;
812
+ --maz-radius: 0.7rem;
813
+ --maz-font-family: Manrope, sans-serif, system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, oxygen, ubuntu, cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
814
+ --maz-base-font-size: 14px;
815
+ --maz-border-width: 0.0625rem;
816
+ }
817
+
818
+ .dark {
819
+ --maz-background: 235 16% 15%;
820
+ --maz-foreground: 0 0% 85%;
821
+ --maz-primary: 210 100% 56%;
822
+ --maz-primary-foreground: 0 0% 100%;
823
+ --maz-secondary: 272 99% 54%;
824
+ --maz-secondary-foreground: 0 0% 100%;
825
+ --maz-accent: 164 76% 46%;
826
+ --maz-accent-foreground: 0 0% 100%;
827
+ --maz-destructive: 1 100% 71%;
828
+ --maz-destructive-foreground: 0 0% 100%;
829
+ --maz-success: 80 61% 50%;
830
+ --maz-success-foreground: 210 8% 14%;
831
+ --maz-warning: 40 97% 59%;
832
+ --maz-warning-foreground: 210 8% 14%;
833
+ --maz-info: 188 78% 41%;
834
+ --maz-info-foreground: 0 0% 100%;
835
+ --maz-contrast: 0 0% 100%;
836
+ --maz-contrast-foreground: 210 8% 14%;
837
+ --maz-muted: 255 0% 54%;
838
+ --maz-shadow: 240 3.7% 15.9%;
839
+ --maz-border: 238 17% 25%;
840
+ --maz-radius: 0.7rem;
841
+ --maz-font-family: Manrope, sans-serif, system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, oxygen, ubuntu, cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
842
+ --maz-base-font-size: 14px;
843
+ --maz-border-width: 0.0625rem;
844
+ }
845
+ }
846
+
847
+ @layer maz-ui-theme {
848
+
849
+ :root {
850
+ --maz-overlay: 0 0% 40%;
851
+ --maz-primary-50: 210 77.5% 93.5%;
852
+ --maz-primary-100: 210 80% 86%;
853
+ --maz-primary-200: 210 85% 78.5%;
854
+ --maz-primary-300: 210 90% 71%;
855
+ --maz-primary-400: 210 95% 63.5%;
856
+ --maz-primary-500: 210 100% 56%;
857
+ --maz-primary-600: 210 100% 48.5%;
858
+ --maz-primary-700: 210 100% 41%;
859
+ --maz-primary-800: 210 100% 33.5%;
860
+ --maz-primary-900: 210 100% 26%;
861
+ --maz-primary-950: 210 100% 18.5%;
862
+ --maz-secondary-50: 272 76.9% 91.5%;
863
+ --maz-secondary-100: 272 79.4% 84%;
864
+ --maz-secondary-200: 272 84.3% 76.5%;
865
+ --maz-secondary-300: 272 89.2% 69%;
866
+ --maz-secondary-400: 272 94.1% 61.5%;
867
+ --maz-secondary-500: 272 99% 54%;
868
+ --maz-secondary-600: 272 100% 46.5%;
869
+ --maz-secondary-700: 272 100% 39%;
870
+ --maz-secondary-800: 272 100% 31.5%;
871
+ --maz-secondary-900: 272 100% 24%;
872
+ --maz-secondary-950: 272 100% 16.5%;
873
+ --maz-accent-50: 164 63% 83.5%;
874
+ --maz-accent-100: 164 64.4% 76%;
875
+ --maz-accent-200: 164 67.3% 68.5%;
876
+ --maz-accent-300: 164 70.2% 61%;
877
+ --maz-accent-400: 164 73.1% 53.5%;
878
+ --maz-accent-500: 164 76% 46%;
879
+ --maz-accent-600: 164 78.2% 38.5%;
880
+ --maz-accent-700: 164 80.3% 31%;
881
+ --maz-accent-800: 164 82.5% 23.5%;
882
+ --maz-accent-900: 164 84.7% 16%;
883
+ --maz-accent-950: 164 85.7% 8.5%;
884
+ --maz-destructive-50: 357 75.2% 95.2%;
885
+ --maz-destructive-100: 357 77.5% 87.7%;
886
+ --maz-destructive-200: 357 82.1% 80.2%;
887
+ --maz-destructive-300: 357 86.7% 72.7%;
888
+ --maz-destructive-400: 357 91.3% 65.2%;
889
+ --maz-destructive-500: 357 95.9% 57.7%;
890
+ --maz-destructive-600: 357 99.4% 50.2%;
891
+ --maz-destructive-700: 357 100% 42.7%;
892
+ --maz-destructive-800: 357 100% 35.2%;
893
+ --maz-destructive-900: 357 100% 27.7%;
894
+ --maz-destructive-950: 357 100% 20.2%;
895
+ --maz-success-50: 80 52.6% 87.5%;
896
+ --maz-success-100: 80 53.6% 80%;
897
+ --maz-success-200: 80 55.4% 72.5%;
898
+ --maz-success-300: 80 57.3% 65%;
899
+ --maz-success-400: 80 59.1% 57.5%;
900
+ --maz-success-500: 80 61% 50%;
901
+ --maz-success-600: 80 62.4% 42.5%;
902
+ --maz-success-700: 80 63.8% 35%;
903
+ --maz-success-800: 80 65.2% 27.5%;
904
+ --maz-success-900: 80 66.6% 20%;
905
+ --maz-success-950: 80 67.3% 12.5%;
906
+ --maz-warning-50: 40 75.8% 96.5%;
907
+ --maz-warning-100: 40 78.2% 89%;
908
+ --maz-warning-200: 40 82.9% 81.5%;
909
+ --maz-warning-300: 40 87.6% 74%;
910
+ --maz-warning-400: 40 92.3% 66.5%;
911
+ --maz-warning-500: 40 97% 59%;
912
+ --maz-warning-600: 40 100% 51.5%;
913
+ --maz-warning-700: 40 100% 44%;
914
+ --maz-warning-800: 40 100% 36.5%;
915
+ --maz-warning-900: 40 100% 29%;
916
+ --maz-warning-950: 40 100% 21.5%;
917
+ --maz-info-50: 188 64.3% 78.5%;
918
+ --maz-info-100: 188 65.8% 71%;
919
+ --maz-info-200: 188 68.9% 63.5%;
920
+ --maz-info-300: 188 71.9% 56%;
921
+ --maz-info-400: 188 75% 48.5%;
922
+ --maz-info-500: 188 78% 41%;
923
+ --maz-info-600: 188 80.3% 33.5%;
924
+ --maz-info-700: 188 82.6% 26%;
925
+ --maz-info-800: 188 84.8% 18.5%;
926
+ --maz-info-900: 188 87.1% 11%;
927
+ --maz-info-950: 188 88.3% 3.5%;
928
+ --maz-contrast-50: 235 15.4% 52.5%;
929
+ --maz-contrast-100: 235 15.5% 45%;
930
+ --maz-contrast-200: 235 15.6% 37.5%;
931
+ --maz-contrast-300: 235 15.7% 30%;
932
+ --maz-contrast-400: 235 15.9% 22.5%;
933
+ --maz-contrast-500: 235 16% 15%;
934
+ --maz-contrast-600: 235 16.1% 7.5%;
935
+ --maz-contrast-700: 235 16.2% 0%;
936
+ --maz-contrast-800: 235 16.3% 0%;
937
+ --maz-contrast-900: 235 16.4% 0%;
938
+ --maz-contrast-950: 235 16.4% 0%;
939
+ --maz-background-50: 0 5% 100%;
940
+ --maz-background-100: 0 5% 100%;
941
+ --maz-background-200: 0 5% 100%;
942
+ --maz-background-300: 0 5% 100%;
943
+ --maz-background-400: 0 5% 100%;
944
+ --maz-background-500: 0 0% 100%;
945
+ --maz-background-600: 0 5% 92.5%;
946
+ --maz-background-700: 0 5% 85%;
947
+ --maz-background-800: 0 5% 77.5%;
948
+ --maz-background-900: 0 5% 70%;
949
+ --maz-background-950: 0 5% 62.5%;
950
+ --maz-foreground-50: 210 7.9% 51.5%;
951
+ --maz-foreground-100: 210 7.9% 44%;
952
+ --maz-foreground-200: 210 7.9% 36.5%;
953
+ --maz-foreground-300: 210 7.9% 29%;
954
+ --maz-foreground-400: 210 8% 21.5%;
955
+ --maz-foreground-500: 210 8% 14%;
956
+ --maz-foreground-600: 210 8% 6.5%;
957
+ --maz-foreground-700: 210 8% 0%;
958
+ --maz-foreground-800: 210 8.1% 0%;
959
+ --maz-foreground-900: 210 8.1% 0%;
960
+ --maz-foreground-950: 210 8.1% 0%;
961
+ --maz-border-50: 220 12.7% 100%;
962
+ --maz-border-100: 220 12.7% 100%;
963
+ --maz-border-200: 220 12.8% 100%;
964
+ --maz-border-300: 220 12.9% 100%;
965
+ --maz-border-400: 220 13% 98.5%;
966
+ --maz-border-500: 220 13% 91%;
967
+ --maz-border-600: 220 13.1% 83.5%;
968
+ --maz-border-700: 220 13.2% 76%;
969
+ --maz-border-800: 220 13.2% 68.5%;
970
+ --maz-border-900: 220 13.3% 61%;
971
+ --maz-border-950: 220 13.3% 53.5%;
972
+ --maz-muted-50: 0 5% 91.5%;
973
+ --maz-muted-100: 0 5% 84%;
974
+ --maz-muted-200: 0 5% 76.5%;
975
+ --maz-muted-300: 0 5% 69%;
976
+ --maz-muted-400: 0 5% 61.5%;
977
+ --maz-muted-500: 0 0% 54%;
978
+ --maz-muted-600: 0 5% 46.5%;
979
+ --maz-muted-700: 0 5% 39%;
980
+ --maz-muted-800: 0 5% 31.5%;
981
+ --maz-muted-900: 0 5% 24%;
982
+ --maz-muted-950: 0 5% 16.5%;
983
+ --maz-overlay-50: 0 5% 77.5%;
984
+ --maz-overlay-100: 0 5% 70%;
985
+ --maz-overlay-200: 0 5% 62.5%;
986
+ --maz-overlay-300: 0 5% 55%;
987
+ --maz-overlay-400: 0 5% 47.5%;
988
+ --maz-overlay-500: 0 0% 40%;
989
+ --maz-overlay-600: 0 5% 32.5%;
990
+ --maz-overlay-700: 0 5% 25%;
991
+ --maz-overlay-800: 0 5% 17.5%;
992
+ --maz-overlay-900: 0 5% 10%;
993
+ --maz-overlay-950: 0 5% 2.5%;
994
+ --maz-shadow-50: 240 5.8% 47.5%;
995
+ --maz-shadow-100: 240 5.8% 40%;
996
+ --maz-shadow-200: 240 5.8% 32.5%;
997
+ --maz-shadow-300: 240 5.9% 25%;
998
+ --maz-shadow-400: 240 5.9% 17.5%;
999
+ --maz-shadow-500: 240 5.9% 10%;
1000
+ --maz-shadow-600: 240 5.9% 2.5%;
1001
+ --maz-shadow-700: 240 5.9% 0%;
1002
+ --maz-shadow-800: 240 5.9% 0%;
1003
+ --maz-shadow-900: 240 6% 0%;
1004
+ --maz-shadow-950: 240 6% 0%;
1005
+ }
1006
+
1007
+ .dark {
1008
+ --maz-overlay: 0 0% 15%;
1009
+ --maz-primary-50: 210 77.5% 93.5%;
1010
+ --maz-primary-100: 210 80% 86%;
1011
+ --maz-primary-200: 210 85% 78.5%;
1012
+ --maz-primary-300: 210 90% 71%;
1013
+ --maz-primary-400: 210 95% 63.5%;
1014
+ --maz-primary-500: 210 100% 56%;
1015
+ --maz-primary-600: 210 100% 48.5%;
1016
+ --maz-primary-700: 210 100% 41%;
1017
+ --maz-primary-800: 210 100% 33.5%;
1018
+ --maz-primary-900: 210 100% 26%;
1019
+ --maz-primary-950: 210 100% 18.5%;
1020
+ --maz-secondary-50: 272 76.9% 91.5%;
1021
+ --maz-secondary-100: 272 79.4% 84%;
1022
+ --maz-secondary-200: 272 84.3% 76.5%;
1023
+ --maz-secondary-300: 272 89.2% 69%;
1024
+ --maz-secondary-400: 272 94.1% 61.5%;
1025
+ --maz-secondary-500: 272 99% 54%;
1026
+ --maz-secondary-600: 272 100% 46.5%;
1027
+ --maz-secondary-700: 272 100% 39%;
1028
+ --maz-secondary-800: 272 100% 31.5%;
1029
+ --maz-secondary-900: 272 100% 24%;
1030
+ --maz-secondary-950: 272 100% 16.5%;
1031
+ --maz-accent-50: 164 63% 83.5%;
1032
+ --maz-accent-100: 164 64.4% 76%;
1033
+ --maz-accent-200: 164 67.3% 68.5%;
1034
+ --maz-accent-300: 164 70.2% 61%;
1035
+ --maz-accent-400: 164 73.1% 53.5%;
1036
+ --maz-accent-500: 164 76% 46%;
1037
+ --maz-accent-600: 164 78.2% 38.5%;
1038
+ --maz-accent-700: 164 80.3% 31%;
1039
+ --maz-accent-800: 164 82.5% 23.5%;
1040
+ --maz-accent-900: 164 84.7% 16%;
1041
+ --maz-accent-950: 164 85.7% 8.5%;
1042
+ --maz-destructive-50: 1 77.5% 100%;
1043
+ --maz-destructive-100: 1 80% 100%;
1044
+ --maz-destructive-200: 1 85% 93.5%;
1045
+ --maz-destructive-300: 1 90% 86%;
1046
+ --maz-destructive-400: 1 95% 78.5%;
1047
+ --maz-destructive-500: 1 100% 71%;
1048
+ --maz-destructive-600: 1 100% 63.5%;
1049
+ --maz-destructive-700: 1 100% 56%;
1050
+ --maz-destructive-800: 1 100% 48.5%;
1051
+ --maz-destructive-900: 1 100% 41%;
1052
+ --maz-destructive-950: 1 100% 33.5%;
1053
+ --maz-success-50: 80 52.6% 87.5%;
1054
+ --maz-success-100: 80 53.6% 80%;
1055
+ --maz-success-200: 80 55.4% 72.5%;
1056
+ --maz-success-300: 80 57.3% 65%;
1057
+ --maz-success-400: 80 59.1% 57.5%;
1058
+ --maz-success-500: 80 61% 50%;
1059
+ --maz-success-600: 80 62.4% 42.5%;
1060
+ --maz-success-700: 80 63.8% 35%;
1061
+ --maz-success-800: 80 65.2% 27.5%;
1062
+ --maz-success-900: 80 66.6% 20%;
1063
+ --maz-success-950: 80 67.3% 12.5%;
1064
+ --maz-warning-50: 40 75.8% 96.5%;
1065
+ --maz-warning-100: 40 78.2% 89%;
1066
+ --maz-warning-200: 40 82.9% 81.5%;
1067
+ --maz-warning-300: 40 87.6% 74%;
1068
+ --maz-warning-400: 40 92.3% 66.5%;
1069
+ --maz-warning-500: 40 97% 59%;
1070
+ --maz-warning-600: 40 100% 51.5%;
1071
+ --maz-warning-700: 40 100% 44%;
1072
+ --maz-warning-800: 40 100% 36.5%;
1073
+ --maz-warning-900: 40 100% 29%;
1074
+ --maz-warning-950: 40 100% 21.5%;
1075
+ --maz-info-50: 188 64.3% 78.5%;
1076
+ --maz-info-100: 188 65.8% 71%;
1077
+ --maz-info-200: 188 68.9% 63.5%;
1078
+ --maz-info-300: 188 71.9% 56%;
1079
+ --maz-info-400: 188 75% 48.5%;
1080
+ --maz-info-500: 188 78% 41%;
1081
+ --maz-info-600: 188 80.3% 33.5%;
1082
+ --maz-info-700: 188 82.6% 26%;
1083
+ --maz-info-800: 188 84.8% 18.5%;
1084
+ --maz-info-900: 188 87.1% 11%;
1085
+ --maz-info-950: 188 88.3% 3.5%;
1086
+ --maz-contrast-50: 0 5% 100%;
1087
+ --maz-contrast-100: 0 5% 100%;
1088
+ --maz-contrast-200: 0 5% 100%;
1089
+ --maz-contrast-300: 0 5% 100%;
1090
+ --maz-contrast-400: 0 5% 100%;
1091
+ --maz-contrast-500: 0 0% 100%;
1092
+ --maz-contrast-600: 0 5% 92.5%;
1093
+ --maz-contrast-700: 0 5% 85%;
1094
+ --maz-contrast-800: 0 5% 77.5%;
1095
+ --maz-contrast-900: 0 5% 70%;
1096
+ --maz-contrast-950: 0 5% 62.5%;
1097
+ --maz-background-50: 235 15.4% 52.5%;
1098
+ --maz-background-100: 235 15.5% 45%;
1099
+ --maz-background-200: 235 15.6% 37.5%;
1100
+ --maz-background-300: 235 15.7% 30%;
1101
+ --maz-background-400: 235 15.9% 22.5%;
1102
+ --maz-background-500: 235 16% 15%;
1103
+ --maz-background-600: 235 16.1% 7.5%;
1104
+ --maz-background-700: 235 16.2% 0%;
1105
+ --maz-background-800: 235 16.3% 0%;
1106
+ --maz-background-900: 235 16.4% 0%;
1107
+ --maz-background-950: 235 16.4% 0%;
1108
+ --maz-foreground-50: 0 5% 100%;
1109
+ --maz-foreground-100: 0 5% 100%;
1110
+ --maz-foreground-200: 0 5% 100%;
1111
+ --maz-foreground-300: 0 5% 100%;
1112
+ --maz-foreground-400: 0 5% 92.5%;
1113
+ --maz-foreground-500: 0 0% 85%;
1114
+ --maz-foreground-600: 0 5% 77.5%;
1115
+ --maz-foreground-700: 0 5% 70%;
1116
+ --maz-foreground-800: 0 5% 62.5%;
1117
+ --maz-foreground-900: 0 5% 55%;
1118
+ --maz-foreground-950: 0 5% 47.5%;
1119
+ --maz-border-50: 238 16.3% 62.5%;
1120
+ --maz-border-100: 238 16.4% 55%;
1121
+ --maz-border-200: 238 16.6% 47.5%;
1122
+ --maz-border-300: 238 16.7% 40%;
1123
+ --maz-border-400: 238 16.9% 32.5%;
1124
+ --maz-border-500: 238 17% 25%;
1125
+ --maz-border-600: 238 17.1% 17.5%;
1126
+ --maz-border-700: 238 17.2% 10%;
1127
+ --maz-border-800: 238 17.3% 2.5%;
1128
+ --maz-border-900: 238 17.4% 0%;
1129
+ --maz-border-950: 238 17.5% 0%;
1130
+ --maz-muted-50: 255 5% 91.5%;
1131
+ --maz-muted-100: 255 5% 84%;
1132
+ --maz-muted-200: 255 5% 76.5%;
1133
+ --maz-muted-300: 255 5% 69%;
1134
+ --maz-muted-400: 255 5% 61.5%;
1135
+ --maz-muted-500: 255 0% 54%;
1136
+ --maz-muted-600: 255 5% 46.5%;
1137
+ --maz-muted-700: 255 5% 39%;
1138
+ --maz-muted-800: 255 5% 31.5%;
1139
+ --maz-muted-900: 255 5% 24%;
1140
+ --maz-muted-950: 255 5% 16.5%;
1141
+ --maz-overlay-50: 0 5% 52.5%;
1142
+ --maz-overlay-100: 0 5% 45%;
1143
+ --maz-overlay-200: 0 5% 37.5%;
1144
+ --maz-overlay-300: 0 5% 30%;
1145
+ --maz-overlay-400: 0 5% 22.5%;
1146
+ --maz-overlay-500: 0 0% 15%;
1147
+ --maz-overlay-600: 0 5% 7.5%;
1148
+ --maz-overlay-700: 0 5% 0%;
1149
+ --maz-overlay-800: 0 5% 0%;
1150
+ --maz-overlay-900: 0 5% 0%;
1151
+ --maz-overlay-950: 0 5% 0%;
1152
+ --maz-shadow-50: 240 5% 53.4%;
1153
+ --maz-shadow-100: 240 5% 45.9%;
1154
+ --maz-shadow-200: 240 5% 38.4%;
1155
+ --maz-shadow-300: 240 5% 30.9%;
1156
+ --maz-shadow-400: 240 5% 23.4%;
1157
+ --maz-shadow-500: 240 3.7% 15.9%;
1158
+ --maz-shadow-600: 240 5% 8.4%;
1159
+ --maz-shadow-700: 240 5% 0.9%;
1160
+ --maz-shadow-800: 240 5% 0%;
1161
+ --maz-shadow-900: 240 5% 0%;
1162
+ --maz-shadow-950: 240 5% 0%;
1163
+ }
1164
+ }
1165
+ ```
1166
+
1167
+ :::
1168
+
786
1169
  ## Usage with Nuxt
787
1170
 
788
1171
  For Nuxt users, check the [dedicated Nuxt documentation](/guide/nuxt) which covers installation and framework-specific configuration.
package/docs/src/index.md CHANGED
@@ -80,10 +80,10 @@ description: Build amazing interfaces with Maz-UI - standalone components & tool
80
80
  <div class="maz-flex maz-justify-between maz-items-start tab-l:maz-items-center maz-gap-4 maz-mb-4 maz-flex-col-reverse tab-l:maz-flex-row">
81
81
  <MazTabsBar :items="['Dashboard', 'Product Page', 'Auth Page']" />
82
82
  <div class="maz-flex maz-gap-2 maz-items-center maz-flex-row-reverse tab-l:maz-flex-row">
83
- <MazBtn fab color="background" :icon="isDark ? MazMoon : MazSun" outlined @click="toggleDarkMode" />
83
+ <MazBtn size="sm" fab color="background" :icon="isDark ? MazMoon : MazSun" outlined @click="toggleDarkMode" />
84
84
  <MazRadioButtons
85
85
  :model-value="presetName"
86
- size="lg"
86
+ size="sm"
87
87
  :options="[{
88
88
  label: 'Pristine',
89
89
  value: 'pristine'
@@ -514,9 +514,9 @@ description: Build amazing interfaces with Maz-UI - standalone components & tool
514
514
  </section>
515
515
 
516
516
  <script lang="ts" setup>
517
- import DemoAuthPage from './demo/DemoAuthPage.vue'
518
- import DemoDashboardPage from './demo/DemoDashboardPage.vue'
519
- import DemoProductPage from './demo/DemoProductPage.vue'
517
+ import DemoAuthPage from '../components/DemoAuthPage.vue'
518
+ import DemoDashboardPage from '../components/DemoDashboardPage.vue'
519
+ import DemoProductPage from '../components/DemoProductPage.vue'
520
520
 
521
521
  import { ref, computed } from 'vue'
522
522
  import { MazStar, MazPlay, MazGithub, MazSun, MazMoon } from '@maz-ui/icons'
@@ -17,5 +17,5 @@ sidebar: false
17
17
  <ThemeEditorPage />
18
18
 
19
19
  <script setup lang="ts">
20
- import ThemeEditorPage from './demo/ThemeEditorPage.vue'
20
+ import ThemeEditorPage from '../components/ThemeEditorPage.vue'
21
21
  </script>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maz-ui/mcp",
3
3
  "type": "module",
4
- "version": "4.1.3",
4
+ "version": "4.1.7-beta.0",
5
5
  "description": "Maz-UI ModelContextProtocol Client",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -58,13 +58,13 @@
58
58
  "test:unit:coverage": "pnpm generate:docs && vitest run --coverage"
59
59
  },
60
60
  "dependencies": {
61
- "@maz-ui/node": "4.1.3",
62
- "@maz-ui/utils": "4.1.3",
61
+ "@maz-ui/node": "4.1.7-beta.0",
62
+ "@maz-ui/utils": "4.1.7-beta.0",
63
63
  "@modelcontextprotocol/sdk": "^1.17.2"
64
64
  },
65
65
  "devDependencies": {
66
- "@maz-ui/eslint-config": "4.1.2",
67
- "@modelcontextprotocol/inspector": "^0.16.2",
66
+ "@maz-ui/eslint-config": "4.1.7-beta.0",
67
+ "@modelcontextprotocol/inspector": "^0.16.3",
68
68
  "@swc/core": "1.13.3",
69
69
  "@types/node": "^24.2.1",
70
70
  "@vitest/coverage-v8": "^3.2.4",
@@ -72,7 +72,7 @@
72
72
  "lint-staged": "^16.1.5",
73
73
  "prettier": "^3.5.3",
74
74
  "ts-node-maintained": "^10.9.5",
75
- "tsx": "^4.20.3",
75
+ "tsx": "^4.20.4",
76
76
  "typescript": "^5.9.2",
77
77
  "unbuild": "^3.6.0",
78
78
  "vitest": "^3.2.4"
@@ -80,5 +80,5 @@
80
80
  "lint-staged": {
81
81
  "*.{js,ts,mjs,mts,cjs,md,yml,json}": "cross-env NODE_ENV=production eslint --fix"
82
82
  },
83
- "gitHead": "09f62e1bb3a3faaaa1dc48ea6434f8da80a23d76"
83
+ "gitHead": "96035148527e2e795db6a7ea06f42e45995335b2"
84
84
  }
@@ -1,167 +0,0 @@
1
- <script setup lang="ts">
2
- /* eslint-disable style/max-statements-per-line */
3
-
4
- import type { HSL } from '@maz-ui/themes'
5
- import { computed, ref, watch } from 'vue'
6
-
7
- interface Props {
8
- modelValue: HSL
9
- label?: string
10
- disabled?: boolean
11
- }
12
-
13
- const props = withDefaults(defineProps<Props>(), {
14
- disabled: false,
15
- })
16
-
17
- const emit = defineEmits<{
18
- 'update:modelValue': [value: HSL]
19
- }>()
20
-
21
- const colorInput = ref<HTMLInputElement>()
22
-
23
- function hslToHex(hsl: HSL): string {
24
- const match = hsl.match(/(\d+(?:\.\d+)?)\s+(\d+(?:\.\d+)?)%\s+(\d+(?:\.\d+)?)%/)
25
- if (!match)
26
- return '#000000'
27
-
28
- const h = Number.parseFloat(match[1]) / 360
29
- const s = Number.parseFloat(match[2]) / 100
30
- const l = Number.parseFloat(match[3]) / 100
31
-
32
- const hue2rgb = (p: number, q: number, t: number) => {
33
- if (t < 0)
34
- t += 1
35
- if (t > 1)
36
- t -= 1
37
- if (t < 1 / 6)
38
- return p + (q - p) * 6 * t
39
- if (t < 1 / 2)
40
- return q
41
- if (t < 2 / 3)
42
- return p + (q - p) * (2 / 3 - t) * 6
43
- return p
44
- }
45
-
46
- let r: number
47
- let g: number
48
- let b: number
49
-
50
- if (s === 0) {
51
- r = g = b = l
52
- }
53
- else {
54
- const q = l < 0.5 ? l * (1 + s) : l + s - l * s
55
- const p = 2 * l - q
56
- r = hue2rgb(p, q, h + 1 / 3)
57
- g = hue2rgb(p, q, h)
58
- b = hue2rgb(p, q, h - 1 / 3)
59
- }
60
-
61
- const toHex = (c: number) => {
62
- const hex = Math.round(c * 255).toString(16)
63
- return hex.length === 1 ? `0${hex}` : hex
64
- }
65
-
66
- return `#${toHex(r)}${toHex(g)}${toHex(b)}`
67
- }
68
-
69
- function hexToHsl(hex: string): HSL {
70
- const r = Number.parseInt(hex.slice(1, 3), 16) / 255
71
- const g = Number.parseInt(hex.slice(3, 5), 16) / 255
72
- const b = Number.parseInt(hex.slice(5, 7), 16) / 255
73
-
74
- const max = Math.max(r, g, b)
75
- const min = Math.min(r, g, b)
76
- let h: number
77
- let s: number
78
- const l = (max + min) / 2
79
-
80
- if (max === min) {
81
- h = s = 0
82
- }
83
- else {
84
- const d = max - min
85
- s = l > 0.5 ? d / (2 - max - min) : d / (max + min)
86
-
87
- switch (max) {
88
- case r: h = (g - b) / d + (g < b ? 6 : 0); break
89
- case g: h = (b - r) / d + 2; break
90
- case b: h = (r - g) / d + 4; break
91
- default: h = 0
92
- }
93
- h /= 6
94
- }
95
-
96
- const hue = Math.round(h * 360)
97
- const saturation = Math.round(s * 100)
98
- const lightness = Math.round(l * 100)
99
-
100
- return `${hue} ${saturation}% ${lightness}%` as HSL
101
- }
102
-
103
- const hexValue = computed(() => hslToHex(props.modelValue))
104
-
105
- function handleColorChange(event: Event) {
106
- const target = event.target as HTMLInputElement
107
- const hslValue = hexToHsl(target.value)
108
- emit('update:modelValue', hslValue)
109
- }
110
-
111
- watch(() => props.modelValue, () => {
112
- if (colorInput.value) {
113
- colorInput.value.value = hexValue.value
114
- }
115
- }, { immediate: true })
116
- </script>
117
-
118
- <template>
119
- <div class="color-picker">
120
- <label v-if="label" for="input-color">
121
- {{ label }}
122
- </label>
123
-
124
- <input
125
- id="input-color"
126
- ref="colorInput"
127
- type="color"
128
- :value="hexValue"
129
- :disabled="disabled"
130
- @change="handleColorChange"
131
- >
132
- </div>
133
- </template>
134
-
135
- <style lang="postcss" scoped>
136
- .color-picker {
137
- @apply maz-inline-flex maz-flex-col maz-gap-1;
138
-
139
- label {
140
- @apply maz-text-sm maz-font-medium maz-text-foreground maz-truncate;
141
- }
142
-
143
- input[type='color'] {
144
- -webkit-appearance: none;
145
- appearance: none;
146
- background: none;
147
- cursor: pointer;
148
-
149
- @apply maz-h-10 maz-w-full maz-cursor-pointer maz-overflow-hidden maz-rounded maz-border maz-border-solid maz-border-divider disabled:maz-cursor-not-allowed disabled:maz-opacity-50;
150
-
151
- &::-webkit-color-swatch-wrapper {
152
- padding: 0;
153
- @apply maz-rounded;
154
- }
155
-
156
- &::-webkit-color-swatch {
157
- border: none;
158
- @apply maz-rounded;
159
- }
160
-
161
- &::-moz-color-swatch {
162
- border: none;
163
- @apply maz-rounded;
164
- }
165
- }
166
- }
167
- </style>