@iconify-icon/react 1.0.8 → 2.0.0-beta.1
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/iconify.d.mts +16 -0
- package/dist/iconify.d.ts +1 -1
- package/dist/iconify.js +2 -0
- package/dist/iconify.mjs +2 -0
- package/package.json +12 -9
- package/readme.md +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconifyIconProperties, IconifyIconHTMLElement } from 'iconify-icon';
|
|
3
|
+
export { GetAPIConfig, IconifyAPIConfig, IconifyAPICustomQueryParams, IconifyAPIFunctions, IconifyAPIInternalFunctions, IconifyAPIModule, IconifyAPIPrepareIconsQuery, IconifyAPIQueryParams, IconifyAPISendQuery, IconifyBrowserCacheFunctions, IconifyBrowserCacheType, IconifyBuilderFunctions, IconifyIcon, IconifyIconAttributes, IconifyIconBuildResult, IconifyIconCustomisations, IconifyIconHTMLElement, IconifyIconLoaderAbort, IconifyIconLoaderCallback, IconifyIconName, IconifyIconProperties, IconifyIconSize, IconifyJSON, IconifyRenderMode, IconifyStorageFunctions, PartialIconifyAPIConfig, _api, addAPIProvider, addCollection, addIcon, appendCustomStyle, buildIcon, calculateSize, disableCache, enableCache, getIcon, iconExists, iconLoaded, listIcons, loadIcon, loadIcons } from 'iconify-icon';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Properties for React component
|
|
7
|
+
*/
|
|
8
|
+
interface IconifyIconProps extends React.HTMLProps<HTMLElement>, IconifyIconProperties {
|
|
9
|
+
rotate?: string | number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* React component
|
|
13
|
+
*/
|
|
14
|
+
declare const Icon: React.ForwardRefExoticComponent<Omit<IconifyIconProps, "ref"> & React.RefAttributes<IconifyIconHTMLElement>>;
|
|
15
|
+
|
|
16
|
+
export { Icon, IconifyIconProps };
|
package/dist/iconify.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconifyIconProperties, IconifyIconHTMLElement } from 'iconify-icon';
|
|
3
|
-
export { GetAPIConfig, IconifyAPIConfig, IconifyAPICustomQueryParams, IconifyAPIFunctions, IconifyAPIInternalFunctions, IconifyAPIModule, IconifyAPIPrepareIconsQuery, IconifyAPIQueryParams, IconifyAPISendQuery, IconifyBrowserCacheFunctions, IconifyBrowserCacheType, IconifyBuilderFunctions, IconifyIcon, IconifyIconAttributes, IconifyIconBuildResult, IconifyIconCustomisations, IconifyIconHTMLElement, IconifyIconLoaderAbort, IconifyIconLoaderCallback, IconifyIconName, IconifyIconProperties, IconifyIconSize, IconifyJSON, IconifyRenderMode, IconifyStorageFunctions, PartialIconifyAPIConfig, _api, addAPIProvider, addCollection, addIcon, appendCustomStyle, buildIcon, calculateSize, disableCache, enableCache, getIcon, iconExists, listIcons, loadIcon, loadIcons } from 'iconify-icon';
|
|
3
|
+
export { GetAPIConfig, IconifyAPIConfig, IconifyAPICustomQueryParams, IconifyAPIFunctions, IconifyAPIInternalFunctions, IconifyAPIModule, IconifyAPIPrepareIconsQuery, IconifyAPIQueryParams, IconifyAPISendQuery, IconifyBrowserCacheFunctions, IconifyBrowserCacheType, IconifyBuilderFunctions, IconifyIcon, IconifyIconAttributes, IconifyIconBuildResult, IconifyIconCustomisations, IconifyIconHTMLElement, IconifyIconLoaderAbort, IconifyIconLoaderCallback, IconifyIconName, IconifyIconProperties, IconifyIconSize, IconifyJSON, IconifyRenderMode, IconifyStorageFunctions, PartialIconifyAPIConfig, _api, addAPIProvider, addCollection, addIcon, appendCustomStyle, buildIcon, calculateSize, disableCache, enableCache, getIcon, iconExists, iconLoaded, listIcons, loadIcon, loadIcons } from 'iconify-icon';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Properties for React component
|
package/dist/iconify.js
CHANGED
|
@@ -42,6 +42,7 @@ __export(iconify_exports, {
|
|
|
42
42
|
enableCache: () => import_iconify_icon.enableCache,
|
|
43
43
|
getIcon: () => import_iconify_icon.getIcon,
|
|
44
44
|
iconExists: () => import_iconify_icon.iconExists,
|
|
45
|
+
iconLoaded: () => import_iconify_icon.iconLoaded,
|
|
45
46
|
listIcons: () => import_iconify_icon.listIcons,
|
|
46
47
|
loadIcon: () => import_iconify_icon.loadIcon,
|
|
47
48
|
loadIcons: () => import_iconify_icon.loadIcons
|
|
@@ -81,6 +82,7 @@ var Icon = import_react.default.forwardRef(
|
|
|
81
82
|
enableCache,
|
|
82
83
|
getIcon,
|
|
83
84
|
iconExists,
|
|
85
|
+
iconLoaded,
|
|
84
86
|
listIcons,
|
|
85
87
|
loadIcon,
|
|
86
88
|
loadIcons
|
package/dist/iconify.mjs
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
"name": "@iconify-icon/react",
|
|
3
3
|
"description": "React wrapper for Iconify Icon web component",
|
|
4
4
|
"author": "Vjacheslav Trushkin",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "2.0.0-beta.1",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"tag": "next"
|
|
8
|
+
},
|
|
6
9
|
"license": "MIT",
|
|
7
10
|
"bugs": "https://github.com/iconify/iconify/issues",
|
|
8
11
|
"homepage": "https://iconify.design/",
|
|
@@ -29,19 +32,19 @@
|
|
|
29
32
|
}
|
|
30
33
|
},
|
|
31
34
|
"dependencies": {
|
|
32
|
-
"iconify-icon": "^
|
|
35
|
+
"iconify-icon": "^2.0.0-beta.1"
|
|
33
36
|
},
|
|
34
37
|
"devDependencies": {
|
|
35
|
-
"@types/react": "^18.2.
|
|
38
|
+
"@types/react": "^18.2.18",
|
|
36
39
|
"@types/react-test-renderer": "^18.0.0",
|
|
37
|
-
"@vitejs/plugin-react": "^
|
|
38
|
-
"jest": "^29.
|
|
40
|
+
"@vitejs/plugin-react": "^4.0.4",
|
|
41
|
+
"jest": "^29.6.2",
|
|
39
42
|
"react": "^18.2.0",
|
|
40
43
|
"react-test-renderer": "^18.2.0",
|
|
41
|
-
"rimraf": "^
|
|
42
|
-
"tsup": "^
|
|
43
|
-
"typescript": "^5.1.
|
|
44
|
-
"vitest": "^0.
|
|
44
|
+
"rimraf": "^5.0.1",
|
|
45
|
+
"tsup": "^7.1.0",
|
|
46
|
+
"typescript": "^5.1.6",
|
|
47
|
+
"vitest": "^0.34.1"
|
|
45
48
|
},
|
|
46
49
|
"peerDependencies": {
|
|
47
50
|
"react": ">=16"
|
package/readme.md
CHANGED
|
@@ -34,7 +34,7 @@ Then use `Icon` component with icon name or data as "icon" parameter:
|
|
|
34
34
|
<Icon icon="mdi-light:home" />
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
Component will automatically retrieve data for "mdi-light:home" from Iconify API and render it. There are over
|
|
37
|
+
Component will automatically retrieve data for "mdi-light:home" from Iconify API and render it. There are over 200,000 icons available on Iconify API from various free and open source icon sets, including all the most popular icon sets.
|
|
38
38
|
|
|
39
39
|
## Offline usage
|
|
40
40
|
|