* chore: update project dependencies
* remove lerna
* update build
* plugin fixes
* Icons do not display when the svg is loaded from a file:// URL in Safari
fixes#1298
* Update path fill in warning-outline.svg exclamation mark
* set currentColor - fixes#1420
* add bell tag to notifications icon - fixes#1090
* add sliders and filters tags to option icon - fixes#1060
* add loveseat tag to bed icon - closes#503
* add contacts tag to people-circle
closes#779
* fix data.json
* update data.json
* set up prettier
* fix contributing link
* prettier after rebase
* add missing rimraf
* add more comments
* run prettier as part of the build
* set module resolution to bundle
* consolidate contributing guidelines and coc as part of the root directory
* fix link
* copy svg into www
* cut me some visual slack
* Update readme.md
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
* Update package.json
Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>
* Update CONTRIBUTING.md
Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>
* remove generating collections
* ensure all directories exist
* only define snapshot tolerance in config
* update dependencies
* Update src/components/icon/request.ts
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
* Update src/components/icon/request.ts
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
* Update src/components/icon/request.ts
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
* Update src/components/icon/request.ts
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
* prettier
* update release pipeline
* fix exports
* recommend to use esm.sh as cdn
---------
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
Co-authored-by: Maria Hutt <thetaPC@users.noreply.github.com>
Also provide ionicons as a custom element which can be defined using `customElements.define()`
```
import { IonIcon } from "ionicons/components/ion-icon";
customElements.define("ion-icon", IonIcon);
```
The custom element build works the same as the lazy load build, and is also able to lazy load svgs on demand, either by giving it an exact url in the `src` attribute `<ion-icon src="./path/to/airplane.svg"></ion-icon>`, or by providing the name of the ionicon to load `<ion-icon name="airplane"></ion-icon>`.
If using the `name` attribute, you'll also need to set where to find the svg directory using `setAssetPath()`
```
import { setAssetPath } from "ionicons/components";
setAssetPath(location.href);
```