@ttoss/react-icons 0.7.10 → 0.7.12
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/esm/index.js +8 -1
- package/dist/index.d.ts +5 -0
- package/package.json +15 -15
package/dist/esm/index.js
CHANGED
|
@@ -4,10 +4,17 @@
|
|
|
4
4
|
import { Icon as IconComponent } from "@iconify-icon/react";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
var Icon = /* @__PURE__ */React.forwardRef((props, ref) => {
|
|
7
|
+
const {
|
|
8
|
+
noobserver = true,
|
|
9
|
+
...restProps
|
|
10
|
+
} = props;
|
|
7
11
|
return /* @__PURE__ */React.createElement(IconComponent, {
|
|
8
12
|
ref,
|
|
9
13
|
"data-testid": "iconify-icon",
|
|
10
|
-
...
|
|
14
|
+
...(noobserver ? {
|
|
15
|
+
noobserver: true
|
|
16
|
+
} : {}),
|
|
17
|
+
...restProps
|
|
11
18
|
});
|
|
12
19
|
});
|
|
13
20
|
Icon.displayName = "Icon";
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ import * as React from 'react';
|
|
|
5
5
|
type IconType = string | IconifyIcon;
|
|
6
6
|
type IconProps = Omit<IconifyIconProps, 'ref'>;
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Renders an Iconify icon and disables observer behavior by default.
|
|
10
|
+
*
|
|
11
|
+
* Set `noobserver={false}` only when you need Iconify observer updates enabled.
|
|
12
|
+
*/
|
|
8
13
|
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<IconifyIconHTMLElement | null>>;
|
|
9
14
|
|
|
10
15
|
export { Icon, type IconProps, type IconType };
|
package/package.json
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/react-icons",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.12",
|
|
4
4
|
"description": "React icons library for @ttoss ecosystem",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"Pedro Arantes <pedro@arantespp.com> (https://arantespp.com/contact)"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Icons",
|
|
7
|
+
"React"
|
|
9
8
|
],
|
|
10
9
|
"repository": {
|
|
11
10
|
"type": "git",
|
|
12
11
|
"url": "https://github.com/ttoss/ttoss.git",
|
|
13
12
|
"directory": "packages/react-icons"
|
|
14
13
|
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"author": "ttoss",
|
|
16
|
+
"contributors": [
|
|
17
|
+
"Pedro Arantes <pedro@arantespp.com> (https://arantespp.com/contact)"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": false,
|
|
15
20
|
"type": "module",
|
|
16
21
|
"exports": {
|
|
17
22
|
".": {
|
|
@@ -22,26 +27,21 @@
|
|
|
22
27
|
"files": [
|
|
23
28
|
"dist"
|
|
24
29
|
],
|
|
25
|
-
"sideEffects": false,
|
|
26
30
|
"dependencies": {
|
|
27
31
|
"@iconify-icon/react": "^2.2.0"
|
|
28
32
|
},
|
|
29
|
-
"peerDependencies": {
|
|
30
|
-
"react": ">=16.8.0"
|
|
31
|
-
},
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"@types/jest": "^30.0.0",
|
|
34
35
|
"@types/react": "^19.2.14",
|
|
35
36
|
"jest": "^30.3.0",
|
|
36
37
|
"react": "^19.2.4",
|
|
37
38
|
"tsup": "^8.5.1",
|
|
38
|
-
"@ttoss/config": "^1.37.
|
|
39
|
-
"@ttoss/test-utils": "^4.2.
|
|
39
|
+
"@ttoss/config": "^1.37.11",
|
|
40
|
+
"@ttoss/test-utils": "^4.2.11"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": ">=16.8.0"
|
|
40
44
|
},
|
|
41
|
-
"keywords": [
|
|
42
|
-
"Icons",
|
|
43
|
-
"React"
|
|
44
|
-
],
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public",
|
|
47
47
|
"provenance": true
|