mirror of
https://github.com/iconify/iconify.git
synced 2025-01-23 15:18:38 +00:00
chore: fix exports in iconify-icon
This commit is contained in:
parent
5609290538
commit
3463f87533
@ -20,13 +20,13 @@ Iconify Icon web component renders icons.
|
|||||||
Add this line to your page to load IconifyIcon (you can add it to `<head>` section of the page or before `</body>`):
|
Add this line to your page to load IconifyIcon (you can add it to `<head>` section of the page or before `</body>`):
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="https://code.iconify.design/iconify-icon/1.1.0-beta.1/iconify-icon.min.js"></script>
|
<script src="https://code.iconify.design/iconify-icon/1.1.0-beta.4/iconify-icon.min.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="https://cdn.jsdelivr.net/npm/iconify-icon@1.1.0-beta.1/dist/iconify-icon.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/iconify-icon@1.1.0-beta.4/dist/iconify-icon.min.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
or, if you are building a project with a bundler, you can include the script by installing `iconify-icon` as a dependency and importing it in your project:
|
or, if you are building a project with a bundler, you can include the script by installing `iconify-icon` as a dependency and importing it in your project:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "iconify-icon",
|
"name": "iconify-icon",
|
||||||
"description": "Icon web component that loads icon data on demand. Over 150,000 icons to choose from",
|
"description": "Icon web component that loads icon data on demand. Over 150,000 icons to choose from",
|
||||||
"author": "Vjacheslav Trushkin <cyberalien@gmail.com> (https://iconify.design)",
|
"author": "Vjacheslav Trushkin <cyberalien@gmail.com> (https://iconify.design)",
|
||||||
"version": "1.1.0-beta.1",
|
"version": "1.1.0-beta.4",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"tag": "next"
|
"tag": "next"
|
||||||
},
|
},
|
||||||
|
@ -65,8 +65,8 @@ export interface IconifyExportedFunctions
|
|||||||
appendCustomStyle: (value: string) => void;
|
appendCustomStyle: (value: string) => void;
|
||||||
|
|
||||||
// Render HTML
|
// Render HTML
|
||||||
iconToHTML: typeof iconToHTML;
|
iconToHTML: (body: string, attributes: Record<string, string>) => string;
|
||||||
svgToURL: typeof svgToURL;
|
svgToURL: (svg: string) => string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -118,6 +118,8 @@ const {
|
|||||||
addCollection,
|
addCollection,
|
||||||
calculateSize,
|
calculateSize,
|
||||||
buildIcon,
|
buildIcon,
|
||||||
|
iconToHTML,
|
||||||
|
svgToURL,
|
||||||
loadIcons,
|
loadIcons,
|
||||||
loadIcon,
|
loadIcon,
|
||||||
addAPIProvider,
|
addAPIProvider,
|
||||||
@ -135,6 +137,8 @@ export {
|
|||||||
addCollection,
|
addCollection,
|
||||||
calculateSize,
|
calculateSize,
|
||||||
buildIcon,
|
buildIcon,
|
||||||
|
iconToHTML,
|
||||||
|
svgToURL,
|
||||||
loadIcons,
|
loadIcons,
|
||||||
loadIcon,
|
loadIcon,
|
||||||
addAPIProvider,
|
addAPIProvider,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user