@ttoss/react-icons 0.2.1 → 0.2.3

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
@@ -2,10 +2,10 @@
2
2
 
3
3
  // src/Icon.tsx
4
4
  import * as React from "react";
5
- import { Icon as IconifyIcon } from "@iconify-icon/react";
5
+ import { Icon as IconComponent } from "@iconify-icon/react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  var Icon = /*#__PURE__*/React.forwardRef((props, ref) => {
8
- return /* @__PURE__ */jsx(IconifyIcon, {
8
+ return /* @__PURE__ */jsx(IconComponent, {
9
9
  ref,
10
10
  "data-testid": "iconify-icon",
11
11
  ...props
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
- import { IconifyIconProps, IconifyIconHTMLElement } from '@iconify-icon/react';
3
- export { addIcon } from '@iconify-icon/react';
4
- import { IconifyIcon } from '@iconify/types';
2
+ import { IconifyIcon, IconifyIconProps, IconifyIconHTMLElement } from '@iconify-icon/react';
3
+ export { IconifyIcon, addIcon } from '@iconify-icon/react';
5
4
 
6
5
  type IconType = string | IconifyIcon;
7
6
  type IconProps = Omit<IconifyIconProps, 'ref'>;
7
+
8
8
  declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<IconifyIconHTMLElement | null>>;
9
9
 
10
- export { Icon, IconProps, IconType };
10
+ export { Icon, type IconProps, type IconType };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
- import { IconifyIconProps, IconifyIconHTMLElement } from '@iconify-icon/react';
3
- export { addIcon } from '@iconify-icon/react';
4
- import { IconifyIcon } from '@iconify/types';
2
+ import { IconifyIcon, IconifyIconProps, IconifyIconHTMLElement } from '@iconify-icon/react';
3
+ export { IconifyIcon, addIcon } from '@iconify-icon/react';
5
4
 
6
5
  type IconType = string | IconifyIcon;
7
6
  type IconProps = Omit<IconifyIconProps, 'ref'>;
7
+
8
8
  declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<IconifyIconHTMLElement | null>>;
9
9
 
10
- export { Icon, IconProps, IconType };
10
+ 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.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "React icons library for @ttoss ecosystem",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -26,14 +26,13 @@
26
26
  "react": ">=16.8.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@iconify/types": "^2.0.0",
30
- "@types/jest": "^29.5.5",
31
- "@types/react": "^18.2.29",
29
+ "@types/jest": "^29.5.10",
30
+ "@types/react": "^18.2.38",
32
31
  "jest": "^29.7.0",
33
32
  "react": "^18.2.0",
34
- "tsup": "^7.2.0",
35
- "@ttoss/config": "^1.31.0",
36
- "@ttoss/test-utils": "^1.24.1"
33
+ "tsup": "^8.0.1",
34
+ "@ttoss/config": "^1.31.1",
35
+ "@ttoss/test-utils": "^2.0.0"
37
36
  },
38
37
  "keywords": [
39
38
  "Icons",
package/src/Icon.tsx CHANGED
@@ -1,18 +1,20 @@
1
1
  import * as React from 'react';
2
2
  import {
3
- Icon as IconifyIcon,
3
+ Icon as IconComponent,
4
+ IconifyIcon,
4
5
  IconifyIconHTMLElement,
5
6
  IconifyIconProps,
6
7
  } from '@iconify-icon/react';
7
- import type { IconifyIcon as IconifyIconType } from '@iconify/types';
8
8
 
9
- export type IconType = string | IconifyIconType;
9
+ export type IconType = string | IconifyIcon;
10
10
 
11
11
  export type IconProps = Omit<IconifyIconProps, 'ref'>;
12
12
 
13
+ export type { IconifyIcon };
14
+
13
15
  export const Icon = React.forwardRef<IconifyIconHTMLElement | null, IconProps>(
14
16
  (props, ref) => {
15
- return <IconifyIcon ref={ref} data-testid="iconify-icon" {...props} />;
17
+ return <IconComponent ref={ref} data-testid="iconify-icon" {...props} />;
16
18
  }
17
19
  );
18
20
 
package/src/index.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { Icon, type IconProps, type IconType } from './Icon';
1
+ export { Icon, type IconProps, type IconType, type IconifyIcon } from './Icon';
2
2
  export { addIcon } from '@iconify-icon/react';