@ttoss/react-icons 0.7.10 → 0.7.11

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 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
- ...props
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/react-icons",
3
- "version": "0.7.10",
3
+ "version": "0.7.11",
4
4
  "description": "React icons library for @ttoss ecosystem",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",