@ttoss/react-icons 0.4.2 → 0.4.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 +18 -0
- package/dist/index.d.ts +10 -0
- package/package.json +3 -3
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
+
|
|
3
|
+
// src/Icon.tsx
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { Icon as IconComponent } from "@iconify-icon/react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
var Icon = React.forwardRef((props, ref) => {
|
|
8
|
+
return /* @__PURE__ */jsx(IconComponent, {
|
|
9
|
+
ref,
|
|
10
|
+
"data-testid": "iconify-icon",
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
Icon.displayName = "Icon";
|
|
15
|
+
|
|
16
|
+
// src/index.ts
|
|
17
|
+
import { addIcon } from "@iconify-icon/react";
|
|
18
|
+
export { Icon, addIcon };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/react-icons",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "React icons library for @ttoss ecosystem",
|
|
5
5
|
"author": "ttoss",
|
|
6
6
|
"contributors": [
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"jest": "^29.7.0",
|
|
36
36
|
"react": "^18.3.1",
|
|
37
37
|
"tsup": "^8.3.0",
|
|
38
|
-
"@ttoss/config": "^1.
|
|
39
|
-
"@ttoss/test-utils": "^2.1.
|
|
38
|
+
"@ttoss/config": "^1.34.0",
|
|
39
|
+
"@ttoss/test-utils": "^2.1.16"
|
|
40
40
|
},
|
|
41
41
|
"keywords": [
|
|
42
42
|
"Icons",
|