@ttoss/react-icons 0.7.13 → 0.7.14

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/index.cjs ADDED
@@ -0,0 +1,66 @@
1
+ /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
+ Object.defineProperty(exports, Symbol.toStringTag, {
3
+ value: 'Module'
4
+ });
5
+ //#region \0rolldown/runtime.js
6
+ var __create = Object.create;
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __getProtoOf = Object.getPrototypeOf;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
15
+ key = keys[i];
16
+ if (!__hasOwnProp.call(to, key) && key !== except) {
17
+ __defProp(to, key, {
18
+ get: (k => from[k]).bind(null, key),
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ }
22
+ }
23
+ }
24
+ return to;
25
+ };
26
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
27
+ value: mod,
28
+ enumerable: true
29
+ }) : target, mod));
30
+
31
+ //#endregion
32
+ let _iconify_icon_react = require("@iconify-icon/react");
33
+ let react = require("react");
34
+ react = __toESM(react);
35
+ let react_jsx_runtime = require("react/jsx-runtime");
36
+
37
+ //#region src/Icon.tsx
38
+ /**
39
+ * Renders an Iconify icon and disables observer behavior by default.
40
+ *
41
+ * Set `noobserver={false}` only when you need Iconify observer updates enabled.
42
+ */
43
+ const Icon = react.forwardRef((props, ref) => {
44
+ const {
45
+ noobserver = true,
46
+ ...restProps
47
+ } = props;
48
+ return /* @__PURE__ */(0, react_jsx_runtime.jsx)(_iconify_icon_react.Icon, {
49
+ ref,
50
+ "data-testid": "iconify-icon",
51
+ ...(noobserver ? {
52
+ noobserver: true
53
+ } : {}),
54
+ ...restProps
55
+ });
56
+ });
57
+ Icon.displayName = "Icon";
58
+
59
+ //#endregion
60
+ exports.Icon = Icon;
61
+ Object.defineProperty(exports, 'addIcon', {
62
+ enumerable: true,
63
+ get: function () {
64
+ return _iconify_icon_react.addIcon;
65
+ }
66
+ });
@@ -1,15 +1,15 @@
1
- import { IconifyIconProps, IconifyIconHTMLElement, IconifyIcon } from '@iconify-icon/react';
2
- export { IconifyIcon, addIcon } from '@iconify-icon/react';
3
- import * as React from 'react';
4
1
 
2
+ import { IconifyIcon, IconifyIconHTMLElement, IconifyIconProps, addIcon } from "@iconify-icon/react";
3
+ import * as React from "react";
4
+
5
+ //#region src/Icon.d.ts
5
6
  type IconType = string | IconifyIcon;
6
7
  type IconProps = Omit<IconifyIconProps, 'ref'>;
7
-
8
8
  /**
9
9
  * Renders an Iconify icon and disables observer behavior by default.
10
10
  *
11
11
  * Set `noobserver={false}` only when you need Iconify observer updates enabled.
12
12
  */
13
13
  declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<IconifyIconHTMLElement | null>>;
14
-
15
- export { Icon, type IconProps, type IconType };
14
+ //#endregion
15
+ export { Icon, type IconProps, type IconType, type IconifyIcon, addIcon };
@@ -0,0 +1,15 @@
1
+
2
+ import { IconifyIcon, IconifyIconHTMLElement, IconifyIconProps, addIcon } from "@iconify-icon/react";
3
+ import * as React from "react";
4
+
5
+ //#region src/Icon.d.ts
6
+ type IconType = string | IconifyIcon;
7
+ type IconProps = Omit<IconifyIconProps, 'ref'>;
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
+ */
13
+ declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<IconifyIconHTMLElement | null>>;
14
+ //#endregion
15
+ export { Icon, type IconProps, type IconType, type IconifyIcon, addIcon };
package/dist/index.mjs ADDED
@@ -0,0 +1,29 @@
1
+ /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
+ import { Icon as Icon$1, addIcon } from "@iconify-icon/react";
3
+ import * as React from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+
6
+ //#region src/Icon.tsx
7
+ /**
8
+ * Renders an Iconify icon and disables observer behavior by default.
9
+ *
10
+ * Set `noobserver={false}` only when you need Iconify observer updates enabled.
11
+ */
12
+ const Icon = React.forwardRef((props, ref) => {
13
+ const {
14
+ noobserver = true,
15
+ ...restProps
16
+ } = props;
17
+ return /* @__PURE__ */jsx(Icon$1, {
18
+ ref,
19
+ "data-testid": "iconify-icon",
20
+ ...(noobserver ? {
21
+ noobserver: true
22
+ } : {}),
23
+ ...restProps
24
+ });
25
+ });
26
+ Icon.displayName = "Icon";
27
+
28
+ //#endregion
29
+ export { Icon, addIcon };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/react-icons",
3
- "version": "0.7.13",
3
+ "version": "0.7.14",
4
4
  "description": "React icons library for @ttoss ecosystem",
5
5
  "keywords": [
6
6
  "Icons",
@@ -34,10 +34,10 @@
34
34
  "@types/jest": "^30.0.0",
35
35
  "@types/react": "^19.2.14",
36
36
  "jest": "^30.3.0",
37
- "react": "^19.2.4",
38
- "tsup": "^8.5.1",
39
- "@ttoss/config": "^1.37.12",
40
- "@ttoss/test-utils": "^4.2.12"
37
+ "react": "^19.2.6",
38
+ "tsdown": "^0.22.0",
39
+ "@ttoss/config": "^1.37.13",
40
+ "@ttoss/test-utils": "^4.2.13"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": ">=16.8.0"
@@ -47,7 +47,7 @@
47
47
  "provenance": true
48
48
  },
49
49
  "scripts": {
50
- "build": "tsup",
50
+ "build": "tsdown",
51
51
  "test": "jest --projects tests/unit"
52
52
  }
53
53
  }
package/dist/esm/index.js DELETED
@@ -1,24 +0,0 @@
1
- /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
-
3
- // src/Icon.tsx
4
- import { Icon as IconComponent } from "@iconify-icon/react";
5
- import * as React from "react";
6
- var Icon = /* @__PURE__ */React.forwardRef((props, ref) => {
7
- const {
8
- noobserver = true,
9
- ...restProps
10
- } = props;
11
- return /* @__PURE__ */React.createElement(IconComponent, {
12
- ref,
13
- "data-testid": "iconify-icon",
14
- ...(noobserver ? {
15
- noobserver: true
16
- } : {}),
17
- ...restProps
18
- });
19
- });
20
- Icon.displayName = "Icon";
21
-
22
- // src/index.ts
23
- import { addIcon } from "@iconify-icon/react";
24
- export { Icon, addIcon };