@iconify-icon/react 2.1.0 → 2.3.0
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 +2 -2
- package/dist/iconify.d.ts +2 -2
- package/dist/iconify.js +6 -2
- package/dist/iconify.mjs +5 -1
- package/package.json +14 -14
package/dist/iconify.d.mts
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, iconLoaded, listIcons, loadIcon, loadIcons } from 'iconify-icon';
|
|
3
|
+
export { GetAPIConfig, IconifyAPIConfig, IconifyAPICustomQueryParams, IconifyAPIFunctions, IconifyAPIInternalFunctions, IconifyAPIModule, IconifyAPIPrepareIconsQuery, IconifyAPIQueryParams, IconifyAPISendQuery, IconifyBrowserCacheFunctions, IconifyBrowserCacheType, IconifyBuilderFunctions, IconifyCustomIconLoader, IconifyCustomIconsLoader, 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, setCustomIconLoader, setCustomIconsLoader } from 'iconify-icon';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Properties for React component
|
|
@@ -13,4 +13,4 @@ interface IconifyIconProps extends React.HTMLProps<HTMLElement>, IconifyIconProp
|
|
|
13
13
|
*/
|
|
14
14
|
declare const Icon: React.ForwardRefExoticComponent<Omit<IconifyIconProps, "ref"> & React.RefAttributes<IconifyIconHTMLElement>>;
|
|
15
15
|
|
|
16
|
-
export { Icon, IconifyIconProps };
|
|
16
|
+
export { Icon, type 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, iconLoaded, listIcons, loadIcon, loadIcons } from 'iconify-icon';
|
|
3
|
+
export { GetAPIConfig, IconifyAPIConfig, IconifyAPICustomQueryParams, IconifyAPIFunctions, IconifyAPIInternalFunctions, IconifyAPIModule, IconifyAPIPrepareIconsQuery, IconifyAPIQueryParams, IconifyAPISendQuery, IconifyBrowserCacheFunctions, IconifyBrowserCacheType, IconifyBuilderFunctions, IconifyCustomIconLoader, IconifyCustomIconsLoader, 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, setCustomIconLoader, setCustomIconsLoader } from 'iconify-icon';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Properties for React component
|
|
@@ -13,4 +13,4 @@ interface IconifyIconProps extends React.HTMLProps<HTMLElement>, IconifyIconProp
|
|
|
13
13
|
*/
|
|
14
14
|
declare const Icon: React.ForwardRefExoticComponent<Omit<IconifyIconProps, "ref"> & React.RefAttributes<IconifyIconHTMLElement>>;
|
|
15
15
|
|
|
16
|
-
export { Icon, IconifyIconProps };
|
|
16
|
+
export { Icon, type IconifyIconProps };
|
package/dist/iconify.js
CHANGED
|
@@ -45,7 +45,9 @@ __export(iconify_exports, {
|
|
|
45
45
|
iconLoaded: () => import_iconify_icon2.iconLoaded,
|
|
46
46
|
listIcons: () => import_iconify_icon2.listIcons,
|
|
47
47
|
loadIcon: () => import_iconify_icon2.loadIcon,
|
|
48
|
-
loadIcons: () => import_iconify_icon2.loadIcons
|
|
48
|
+
loadIcons: () => import_iconify_icon2.loadIcons,
|
|
49
|
+
setCustomIconLoader: () => import_iconify_icon2.setCustomIconLoader,
|
|
50
|
+
setCustomIconsLoader: () => import_iconify_icon2.setCustomIconsLoader
|
|
49
51
|
});
|
|
50
52
|
module.exports = __toCommonJS(iconify_exports);
|
|
51
53
|
var import_react = __toESM(require("react"));
|
|
@@ -86,5 +88,7 @@ var Icon = import_react.default.forwardRef(
|
|
|
86
88
|
iconLoaded,
|
|
87
89
|
listIcons,
|
|
88
90
|
loadIcon,
|
|
89
|
-
loadIcons
|
|
91
|
+
loadIcons,
|
|
92
|
+
setCustomIconLoader,
|
|
93
|
+
setCustomIconsLoader
|
|
90
94
|
});
|
package/dist/iconify.mjs
CHANGED
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
loadIcons,
|
|
16
16
|
loadIcon,
|
|
17
17
|
addAPIProvider,
|
|
18
|
+
setCustomIconLoader,
|
|
19
|
+
setCustomIconsLoader,
|
|
18
20
|
appendCustomStyle,
|
|
19
21
|
_api
|
|
20
22
|
} from "iconify-icon";
|
|
@@ -52,5 +54,7 @@ export {
|
|
|
52
54
|
iconLoaded,
|
|
53
55
|
listIcons,
|
|
54
56
|
loadIcon,
|
|
55
|
-
loadIcons
|
|
57
|
+
loadIcons,
|
|
58
|
+
setCustomIconLoader,
|
|
59
|
+
setCustomIconsLoader
|
|
56
60
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@iconify-icon/react",
|
|
3
3
|
"description": "React wrapper for Iconify Icon web component",
|
|
4
4
|
"author": "Vjacheslav Trushkin",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.3.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bugs": "https://github.com/iconify/iconify/issues",
|
|
8
8
|
"homepage": "https://iconify.design/",
|
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
"default": "./dist/iconify.js"
|
|
24
24
|
},
|
|
25
25
|
"./lib/iconify": {
|
|
26
|
-
"require": "./dist/iconify.js",
|
|
27
26
|
"import": "./dist/iconify.mjs",
|
|
28
|
-
"types": "./dist/iconify.d.ts"
|
|
27
|
+
"types": "./dist/iconify.d.ts",
|
|
28
|
+
"require": "./dist/iconify.js"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"iconify-icon": "^2.
|
|
32
|
+
"iconify-icon": "^2.3.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@types/react": "^18.
|
|
36
|
-
"@types/react-test-renderer": "^18.
|
|
37
|
-
"@vitejs/plugin-react": "^4.
|
|
38
|
-
"jest": "^29.
|
|
39
|
-
"react": "^18.
|
|
40
|
-
"react-test-renderer": "^18.
|
|
41
|
-
"rimraf": "^
|
|
42
|
-
"tsup": "^
|
|
43
|
-
"typescript": "^5.
|
|
44
|
-
"vitest": "^
|
|
35
|
+
"@types/react": "^18.3.18",
|
|
36
|
+
"@types/react-test-renderer": "^18.3.1",
|
|
37
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
38
|
+
"jest": "^29.7.0",
|
|
39
|
+
"react": "^18.3.1",
|
|
40
|
+
"react-test-renderer": "^18.3.1",
|
|
41
|
+
"rimraf": "^6.0.1",
|
|
42
|
+
"tsup": "^8.3.5",
|
|
43
|
+
"typescript": "^5.7.2",
|
|
44
|
+
"vitest": "^2.1.8"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": ">=16"
|