@tidbcloud/uikit 2.0.0-beta.23 → 2.0.0-beta.24
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/CHANGELOG.md
CHANGED
package/dist/theme/theme.cjs
CHANGED
|
@@ -826,7 +826,6 @@ const theme = {
|
|
|
826
826
|
},
|
|
827
827
|
ActionIcon: {
|
|
828
828
|
defaultProps: {
|
|
829
|
-
variant: "default",
|
|
830
829
|
color: "carbon"
|
|
831
830
|
},
|
|
832
831
|
styles(theme2, params) {
|
|
@@ -913,6 +912,20 @@ const theme = {
|
|
|
913
912
|
}
|
|
914
913
|
}
|
|
915
914
|
})
|
|
915
|
+
},
|
|
916
|
+
Anchor: {
|
|
917
|
+
styles: (theme2, params) => {
|
|
918
|
+
const color = params.color ?? "peacock";
|
|
919
|
+
const shade = color.includes("carbon") ? 9 : theme2.fn.primaryShade();
|
|
920
|
+
return {
|
|
921
|
+
root: {
|
|
922
|
+
color: theme2.fn.themeColor(color, shade),
|
|
923
|
+
"&:hover": {
|
|
924
|
+
color: theme2.fn.themeColor(color, shade)
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
};
|
|
928
|
+
}
|
|
916
929
|
}
|
|
917
930
|
}
|
|
918
931
|
};
|
package/dist/theme/theme.js
CHANGED
|
@@ -824,7 +824,6 @@ const theme = {
|
|
|
824
824
|
},
|
|
825
825
|
ActionIcon: {
|
|
826
826
|
defaultProps: {
|
|
827
|
-
variant: "default",
|
|
828
827
|
color: "carbon"
|
|
829
828
|
},
|
|
830
829
|
styles(theme2, params) {
|
|
@@ -911,6 +910,20 @@ const theme = {
|
|
|
911
910
|
}
|
|
912
911
|
}
|
|
913
912
|
})
|
|
913
|
+
},
|
|
914
|
+
Anchor: {
|
|
915
|
+
styles: (theme2, params) => {
|
|
916
|
+
const color = params.color ?? "peacock";
|
|
917
|
+
const shade = color.includes("carbon") ? 9 : theme2.fn.primaryShade();
|
|
918
|
+
return {
|
|
919
|
+
root: {
|
|
920
|
+
color: theme2.fn.themeColor(color, shade),
|
|
921
|
+
"&:hover": {
|
|
922
|
+
color: theme2.fn.themeColor(color, shade)
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
};
|
|
926
|
+
}
|
|
914
927
|
}
|
|
915
928
|
}
|
|
916
929
|
};
|