@ttoss/react-icons 0.3.12 → 0.4.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/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  import * as React from "react";
5
5
  import { Icon as IconComponent } from "@iconify-icon/react";
6
6
  import { jsx } from "react/jsx-runtime";
7
- var Icon = /*#__PURE__*/React.forwardRef((props, ref) => {
7
+ var Icon = React.forwardRef((props, ref) => {
8
8
  return /* @__PURE__ */jsx(IconComponent, {
9
9
  ref,
10
10
  "data-testid": "iconify-icon",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/react-icons",
3
- "version": "0.3.12",
3
+ "version": "0.4.0",
4
4
  "description": "React icons library for @ttoss ecosystem",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -11,10 +11,10 @@
11
11
  "url": "https://github.com/ttoss/ttoss.git",
12
12
  "directory": "packages/react-icons"
13
13
  },
14
+ "type": "module",
14
15
  "exports": {
15
16
  ".": {
16
17
  "import": "./dist/esm/index.js",
17
- "require": "./dist/index.js",
18
18
  "types": "./dist/index.d.ts"
19
19
  }
20
20
  },
@@ -35,8 +35,8 @@
35
35
  "jest": "^29.7.0",
36
36
  "react": "^18.3.1",
37
37
  "tsup": "^8.2.4",
38
- "@ttoss/config": "^1.32.8",
39
- "@ttoss/test-utils": "^2.1.12"
38
+ "@ttoss/config": "^1.32.9",
39
+ "@ttoss/test-utils": "^2.1.13"
40
40
  },
41
41
  "keywords": [
42
42
  "Icons",
@@ -48,6 +48,6 @@
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsup",
51
- "test": "jest"
51
+ "test": "jest --projects tests/unit"
52
52
  }
53
53
  }
package/dist/index.d.mts DELETED
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { IconifyIcon, IconifyIconProps, IconifyIconHTMLElement } from '@iconify-icon/react';
3
- export { IconifyIcon, addIcon } from '@iconify-icon/react';
4
-
5
- type IconType = string | IconifyIcon;
6
- type IconProps = Omit<IconifyIconProps, 'ref'>;
7
-
8
- declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<IconifyIconHTMLElement | null>>;
9
-
10
- export { Icon, type IconProps, type IconType };
package/dist/index.js DELETED
@@ -1,65 +0,0 @@
1
- /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- "use strict";
3
-
4
- var __create = Object.create;
5
- var __defProp = Object.defineProperty;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getProtoOf = Object.getPrototypeOf;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __export = (target, all) => {
11
- for (var name in all) __defProp(target, name, {
12
- get: all[name],
13
- enumerable: true
14
- });
15
- };
16
- var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") {
18
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
- get: () => from[key],
20
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
- });
22
- }
23
- return to;
24
- };
25
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
- // If the importer is in node compatibility mode or this is not an ESM
27
- // file that has been converted to a CommonJS file using a Babel-
28
- // compatible transform (i.e. "__esModule" has not been set), then set
29
- // "default" to the CommonJS "module.exports" for node compatibility.
30
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
31
- value: mod,
32
- enumerable: true
33
- }) : target, mod));
34
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
35
- value: true
36
- }), mod);
37
-
38
- // src/index.ts
39
- var src_exports = {};
40
- __export(src_exports, {
41
- Icon: () => Icon,
42
- addIcon: () => import_react2.addIcon
43
- });
44
- module.exports = __toCommonJS(src_exports);
45
-
46
- // src/Icon.tsx
47
- var React = __toESM(require("react"));
48
- var import_react = require("@iconify-icon/react");
49
- var import_jsx_runtime = require("react/jsx-runtime");
50
- var Icon = React.forwardRef((props, ref) => {
51
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react.Icon, {
52
- ref,
53
- "data-testid": "iconify-icon",
54
- ...props
55
- });
56
- });
57
- Icon.displayName = "Icon";
58
-
59
- // src/index.ts
60
- var import_react2 = require("@iconify-icon/react");
61
- // Annotate the CommonJS export names for ESM import in node:
62
- 0 && (module.exports = {
63
- Icon,
64
- addIcon
65
- });