Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
Signed-off-by: Praveen Juge <hello@praveenjuge.com>
  • Loading branch information
praveenjuge committed Sep 27, 2023
1 parent caa5136 commit 5293e6b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ Beautifully crafted open source icons from Myna UI.

```sh
npm i @mynaui/icons
or
bun i @mynaui/icons
or
yarn add @mynaui/icons
```

For React Projects:

```sh
npm i @mynaui/icons-react
or
bun i @mynaui/icons-react
or
yarn add @mynaui/icons-react
```

Expand Down
10 changes: 5 additions & 5 deletions packages/icons-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"name": "@mynaui/icons-react",
"version": "0.0.9",
"description": "Beautifully crafted open source icons from Myna UI.",
"homepage": "https://icons.mynaui.com",
"bugs": {
"url": "https://github.com/praveenjuge/mynaui-icons/issues"
},
"keywords": [
"icons",
"svg",
Expand All @@ -15,6 +11,10 @@
"icon-library",
"icon-pack"
],
"homepage": "https://icons.mynaui.com",
"bugs": {
"url": "https://github.com/praveenjuge/mynaui-icons/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/praveenjuge/mynaui-icons.git"
Expand Down Expand Up @@ -57,6 +57,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "ef15fb0a2037af3181eb0fb51e9c8f367e8b4a95",
"gitHead": "caa5136d29089139b118a69e06427767e98fa0d7",
"main:umd": "dist/umd/myna-icons-react.js"
}
8 changes: 4 additions & 4 deletions packages/icons-react/src/createReactComponent.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { forwardRef, createElement } from "react";
import PropTypes from "prop-types";

export default (iconName, iconNamePascal, iconNode) => {
export default (iconNamePascal, iconNode) => {
const Component = forwardRef(
(
{ color = "currentColor", size = 24, stroke = "1.5", children, ...rest },
Expand All @@ -11,15 +11,15 @@ export default (iconName, iconNamePascal, iconNode) => {
"svg",
{
ref,
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "none",
width: size,
height: size,
fill: "none",
stroke: color,
strokeWidth: stroke,
viewBox: "0 0 24 24",
strokeLinecap: "round",
strokeLinejoin: "round",
xmlns: "http://www.w3.org/2000/svg",
...rest,
},
[
Expand Down
14 changes: 7 additions & 7 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
"url": "https://praveenjuge.com/"
},
"sideEffects": false,
"exports": {
"./*": [
"./icons/*"
]
},
"style": "mynaui-font.css",
"files": [
"icons/*.svg",
Expand All @@ -54,11 +59,6 @@
"publishConfig": {
"access": "public"
},
"gitHead": "ef15fb0a2037af3181eb0fb51e9c8f367e8b4a95",
"sass": "mynaui-font.scss",
"exports": {
"./*": [
"./icons/*"
]
}
"gitHead": "caa5136d29089139b118a69e06427767e98fa0d7",
"sass": "mynaui-font.scss"
}

0 comments on commit 5293e6b

Please sign in to comment.