mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 03:02:18 +08:00

* feat(grafana-ui): build unstable entrypoint for experimental components * feat(plugins): expose grafana/ui/unstable * build(grafana-ui): add rollup plugin to create alias package.json for unstable entrypoint * build(packages): rewrite prepare npm script to generate alias packagejson files * chore(packages): use relative paths in publishConfig for exports generation * chore(frontend): move npmcli/package-json package to root package.json * revert(grafana-ui): remove rollup plugin for generating alias package.json files * chore(grafana-ui): clean up unstable directory postpack to prevent yarn lock issues * build(packages): fix scope for pkgName usage * feat(packages): create separate cjs and esm builds that validate with arethetypeswrong cli * chore(yarn): refresh lock file * fix(packages): make sure alias package.jsons point to existing files
Grafana Saga Icons
This package contains the icon React components used in Grafana and Grafana plugins.
Uploading a new icon
To add a new icon to the library, open a PR which adds the SVG file for the icon into the svg
directory. The file should be named with the icon name in kebab-case. For example, if the icon name is MyIcon
, the file should be named my-icon.svg
. Once the PR is merged, the icon will be automatically generated and added to the library.
Development
- Clone the repository
- Run
yarn install
- After the installation, the icon components can be found in the
src/icons-gen
directory. - To regenerate/update the components, run
yarn generate
.