abhi-react-food-icons 1.0.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/LICENSE +21 -0
- package/README.md +54 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +55 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +2 -0
- package/package.json +46 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Abhishek
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# abhi-react-food-icons
|
|
2
|
+
|
|
3
|
+
A set of 20 clean, consistent food icons as React components. Line-style, tree-shakeable, and typed with TypeScript. Props mirror `lucide-react` ergonomics (`size`, `color`, `strokeWidth`, `className`), so they drop into an existing icon setup with no surprises.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install abhi-react-food-icons
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { Pizza, Burger, Coffee } from 'abhi-react-food-icons';
|
|
15
|
+
|
|
16
|
+
function Menu() {
|
|
17
|
+
return (
|
|
18
|
+
<div>
|
|
19
|
+
<Pizza />
|
|
20
|
+
<Burger size={32} color="#e11d48" />
|
|
21
|
+
<Coffee size={40} strokeWidth={1.5} className="menu-icon" />
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Each icon is its own module, so bundlers only include the icons you actually import.
|
|
28
|
+
|
|
29
|
+
## Props
|
|
30
|
+
|
|
31
|
+
| Prop | Type | Default | Description |
|
|
32
|
+
| ------------- | ------------------ | ---------------- | ------------------------------------ |
|
|
33
|
+
| `size` | `number \| string` | `24` | Width and height in pixels |
|
|
34
|
+
| `color` | `string` | `'currentColor'` | Stroke color |
|
|
35
|
+
| `strokeWidth` | `number \| string` | `2` | Stroke width |
|
|
36
|
+
| `className` | `string` | — | Passed through to the `<svg>` |
|
|
37
|
+
|
|
38
|
+
Any other valid `<svg>` prop (e.g. `onClick`, `style`, `aria-label`) is forwarded as well, and a `ref` points at the underlying `<svg>` element.
|
|
39
|
+
|
|
40
|
+
By default `color` is `currentColor`, so an icon inherits the text color of its container:
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
<span style={{ color: '#f59e0b' }}>
|
|
44
|
+
<Fries />
|
|
45
|
+
</span>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Available icons
|
|
49
|
+
|
|
50
|
+
`Pizza`, `Burger`, `Fries`, `Coffee`, `Cupcake`, `IceCream`, `Donut`, `Apple`, `Cheese`, `Egg`, `Bread`, `Taco`, `Sushi`, `Ramen`, `Cookie`, `Avocado`, `Carrot`, `Wine`, `Soda`, `HotDog`
|
|
51
|
+
|
|
52
|
+
## License
|
|
53
|
+
|
|
54
|
+
MIT
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var react=require('react');var o=(c,p)=>{let r=react.forwardRef(({size:e=24,color:h="currentColor",strokeWidth:n=2,className:m,children:t,...M},d)=>react.createElement("svg",{ref:d,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:h,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:m,...M},...p.map(([i,s],x)=>react.createElement(i,{key:x,...s})),...Array.isArray(t)?t:t?[t]:[]));return r.displayName=c,r};var l=o("Pizza",[["path",{d:"M12 21 4.6 8.2a9 3.4 0 0 1 14.8 0z"}],["path",{d:"M4.6 8.2a9 3.4 0 0 0 14.8 0"}],["circle",{cx:"9.5",cy:"11",r:".6"}],["circle",{cx:"14.5",cy:"11",r:".6"}],["circle",{cx:"12",cy:"15.5",r:".6"}]]);var I=o("Burger",[["path",{d:"M4 11a8 4.5 0 0 1 16 0"}],["path",{d:"M8 8.2h.01M12 7.6h.01M16 8.2h.01"}],["path",{d:"M3.5 11h17"}],["path",{d:"M3.5 14.2h17"}],["path",{d:"M4 15.5h16a0 0 0 0 1 0 0 3 3 0 0 1-3 3H7a3 3 0 0 1-3-3z"}]]);var C=o("Fries",[["path",{d:"M6 9.5 5.2 5a1 1 0 0 1 2-.3L8 9.5M9.4 9 9 3.4a1 1 0 0 1 2 0L11 9M13 9l.4-6a1 1 0 0 1 2 .2L15 9M16.5 9.5l1-4.3a1 1 0 0 1 2 .5L18.6 9.5"}],["path",{d:"M5 9.5h14l-1.3 9.2a2 2 0 0 1-2 1.8H8.3a2 2 0 0 1-2-1.8z"}],["path",{d:"M8.5 13h7"}]]);var z=o("Coffee",[["path",{d:"M17 8h1a3 3 0 0 1 0 6h-1"}],["path",{d:"M3 8h14v6a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5z"}],["path",{d:"M7 2.5v2M11 2.5v2M15 2.5v2"}]]);var g=o("Cupcake",[["path",{d:"M5.5 11a6.5 6.5 0 0 1 13 0"}],["path",{d:"M12 4.5V6"}],["path",{d:"M6 11h12l-1.2 7a2 2 0 0 1-2 1.7H9.2a2 2 0 0 1-2-1.7z"}],["path",{d:"M8 15h8"}]]);var u=o("IceCream",[["path",{d:"M8.5 11 12 20.5 15.5 11"}],["path",{d:"M7 11a5 5 0 0 1 10 0z"}],["path",{d:"M9.5 8.2a2 2 0 0 1 2.5-1.2 2 2 0 0 1 2.5 1.2"}]]);var y=o("Donut",[["circle",{cx:"12",cy:"12",r:"8.5"}],["circle",{cx:"12",cy:"12",r:"3"}],["path",{d:"M7 8.5h.01M9 6h.01M15.5 6.5h.01M17.5 9h.01M18 13.5h.01M6.5 14h.01"}]]);var S=o("Apple",[["path",{d:"M12 8c-1.2-1.6-3.3-2-4.8-.8C5 8.7 4.6 11.6 6 14.6c.9 2 2.4 3.9 4 3.9.8 0 1.2-.35 2-.35s1.2.35 2 .35c1.6 0 3.1-1.9 4-3.9 1.4-3 1-5.9-1.2-7.4C15.3 6 13.2 6.4 12 8z"}],["path",{d:"M12 8V5"}],["path",{d:"M12 6c.8-1.6 2.6-2 3.8-1-.2 1.8-2 2.4-3.8 1z"}]]);var v=o("Cheese",[["path",{d:"M3 18V13L18 5a3 3 0 0 1 3 3v10z"}],["path",{d:"M3 13h18"}],["circle",{cx:"8",cy:"16",r:"1"}],["circle",{cx:"14",cy:"15.5",r:"1"}],["circle",{cx:"17.5",cy:"17",r:".8"}]]);var k=o("Egg",[["path",{d:"M12 2.5c-3.5 0-6.5 6-6.5 11a6.5 6.5 0 0 0 13 0c0-5-3-11-6.5-11z"}],["path",{d:"M9 15.5a3 3 0 0 0 3 0",transform:"translate(0 -1)"}]]);var A=o("Bread",[["path",{d:"M4 11a4 4 0 0 1 1.2-7.5C6 3.5 6.8 3 8 3h8c2.8 0 5 2.2 5 5 0 1.5-.7 2.6-2 3v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z"}],["path",{d:"M7 8.5c1-1.5 3-1.5 4 0M13 8.5c1-1.5 3-1.5 4 0"}]]);var V=o("Taco",[["path",{d:"M2.5 15a9.5 9.5 0 0 1 19 0z"}],["path",{d:"M2.5 15c0 1.4 1 2.5 2.3 2.5S7 16.4 7 15M17 15c0 1.4 1 2.5 2.3 2.5s2.2-1.1 2.2-2.5"}],["path",{d:"M7 15c0 1.4 1.1 2.5 2.5 2.5S12 16.4 12 15s1.1 2.5 2.5 2.5S17 16.4 17 15"}]]);var w=o("Sushi",[["rect",{x:"4",y:"8",width:"16",height:"8",rx:"4"}],["circle",{cx:"9",cy:"12",r:"2.2"}],["path",{d:"M15 8v8"}],["path",{d:"M4 12h5"}]]);var E=o("Ramen",[["path",{d:"M3 10h18v1a8 8 0 0 1-8 8h-2a8 8 0 0 1-8-8z"}],["path",{d:"M6.5 10c0-2 1.5-3.5 3-4.5M10 10c-.3-2.5.8-4 2.2-5M14 10c0-2 1.2-3.3 2.6-4"}],["path",{d:"M15 13l4.5-3"}]]);var H=o("Cookie",[["path",{d:"M12 3a9 9 0 1 0 9 9 3 3 0 0 1-3-3 3 3 0 0 1-3-3 3 3 0 0 1-3-3z"}],["path",{d:"M9 9h.01M14 8h.01M8 14h.01M15.5 14h.01M12 16.5h.01M11.5 12h.01"}]]);var P=o("Avocado",[["path",{d:"M12 2.5a4.5 4.5 0 0 0-1.8 8.6C7.8 12 6 14.6 6 17.7 6 20 8.7 21.5 12 21.5s6-1.5 6-3.8c0-3.1-1.8-5.7-4.2-6.6A4.5 4.5 0 0 0 12 2.5z"}],["circle",{cx:"12",cy:"16.5",r:"3"}]]);var R=o("Carrot",[["path",{d:"M18.5 5.5c-2 0-4 .8-5.7 2.4L4.6 16a2 2 0 0 0 3.4 3.4l8.1-8.2c1.6-1.7 2.4-3.7 2.4-5.7z"}],["path",{d:"m9 10 2 2M13 6l2 2"}],["path",{d:"M18.5 5.5 21 3M17 7c1.5-.5 3-.2 4 .5M15 4c-.5 1.5-.2 3 .5 4"}]]);var G=o("Wine",[["path",{d:"M8 3h8l-.6 5.5a3.6 3.6 0 0 1-7.2 0z"}],["path",{d:"M7.7 6.5h8.6"}],["path",{d:"M12 12v6.5"}],["path",{d:"M8.5 20.5h7"}]]);var L=o("Soda",[["path",{d:"M7 8h10l-1 11a2 2 0 0 1-2 1.8h-4a2 2 0 0 1-2-1.8z"}],["path",{d:"M8 8 9 4h6l1 4"}],["path",{d:"M9.5 4l1-1.5h3l1 1.5"}],["path",{d:"M7.5 12h9"}]]);var B=o("HotDog",[["path",{d:"M4 10.5h16a3 3 0 0 1 0 6H4a3 3 0 0 1 0-6z"}],["path",{d:"M6.5 12h11a1.5 1.5 0 0 1 0 3h-11a1.5 1.5 0 0 1 0-3z"}],["path",{d:"M7.5 13.5l2 .8 2-.8 2 .8 2-.8"}]]);
|
|
2
|
+
exports.Apple=S;exports.Avocado=P;exports.Bread=A;exports.Burger=I;exports.Carrot=R;exports.Cheese=v;exports.Coffee=z;exports.Cookie=H;exports.Cupcake=g;exports.Donut=y;exports.Egg=k;exports.Fries=C;exports.HotDog=B;exports.IceCream=u;exports.Pizza=l;exports.Ramen=E;exports.Soda=L;exports.Sushi=w;exports.Taco=V;exports.Wine=G;exports.createIcon=o;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, SVGProps, RefAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'color'> {
|
|
4
|
+
/** Width and height of the icon in pixels. @default 24 */
|
|
5
|
+
size?: number | string;
|
|
6
|
+
/** Stroke color of the icon. @default 'currentColor' */
|
|
7
|
+
color?: string;
|
|
8
|
+
/** Stroke width of the icon. @default 2 */
|
|
9
|
+
strokeWidth?: number | string;
|
|
10
|
+
}
|
|
11
|
+
type IconNode = [elementName: string, attrs: Record<string, string | number>][];
|
|
12
|
+
type IconComponent = ForwardRefExoticComponent<IconProps & RefAttributes<SVGSVGElement>>;
|
|
13
|
+
declare const createIcon: (iconName: string, iconNode: IconNode) => IconComponent;
|
|
14
|
+
|
|
15
|
+
declare const Pizza: IconComponent;
|
|
16
|
+
|
|
17
|
+
declare const Burger: IconComponent;
|
|
18
|
+
|
|
19
|
+
declare const Fries: IconComponent;
|
|
20
|
+
|
|
21
|
+
declare const Coffee: IconComponent;
|
|
22
|
+
|
|
23
|
+
declare const Cupcake: IconComponent;
|
|
24
|
+
|
|
25
|
+
declare const IceCream: IconComponent;
|
|
26
|
+
|
|
27
|
+
declare const Donut: IconComponent;
|
|
28
|
+
|
|
29
|
+
declare const Apple: IconComponent;
|
|
30
|
+
|
|
31
|
+
declare const Cheese: IconComponent;
|
|
32
|
+
|
|
33
|
+
declare const Egg: IconComponent;
|
|
34
|
+
|
|
35
|
+
declare const Bread: IconComponent;
|
|
36
|
+
|
|
37
|
+
declare const Taco: IconComponent;
|
|
38
|
+
|
|
39
|
+
declare const Sushi: IconComponent;
|
|
40
|
+
|
|
41
|
+
declare const Ramen: IconComponent;
|
|
42
|
+
|
|
43
|
+
declare const Cookie: IconComponent;
|
|
44
|
+
|
|
45
|
+
declare const Avocado: IconComponent;
|
|
46
|
+
|
|
47
|
+
declare const Carrot: IconComponent;
|
|
48
|
+
|
|
49
|
+
declare const Wine: IconComponent;
|
|
50
|
+
|
|
51
|
+
declare const Soda: IconComponent;
|
|
52
|
+
|
|
53
|
+
declare const HotDog: IconComponent;
|
|
54
|
+
|
|
55
|
+
export { Apple, Avocado, Bread, Burger, Carrot, Cheese, Coffee, Cookie, Cupcake, Donut, Egg, Fries, HotDog, IceCream, type IconComponent, type IconNode, type IconProps, Pizza, Ramen, Soda, Sushi, Taco, Wine, createIcon };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, SVGProps, RefAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'color'> {
|
|
4
|
+
/** Width and height of the icon in pixels. @default 24 */
|
|
5
|
+
size?: number | string;
|
|
6
|
+
/** Stroke color of the icon. @default 'currentColor' */
|
|
7
|
+
color?: string;
|
|
8
|
+
/** Stroke width of the icon. @default 2 */
|
|
9
|
+
strokeWidth?: number | string;
|
|
10
|
+
}
|
|
11
|
+
type IconNode = [elementName: string, attrs: Record<string, string | number>][];
|
|
12
|
+
type IconComponent = ForwardRefExoticComponent<IconProps & RefAttributes<SVGSVGElement>>;
|
|
13
|
+
declare const createIcon: (iconName: string, iconNode: IconNode) => IconComponent;
|
|
14
|
+
|
|
15
|
+
declare const Pizza: IconComponent;
|
|
16
|
+
|
|
17
|
+
declare const Burger: IconComponent;
|
|
18
|
+
|
|
19
|
+
declare const Fries: IconComponent;
|
|
20
|
+
|
|
21
|
+
declare const Coffee: IconComponent;
|
|
22
|
+
|
|
23
|
+
declare const Cupcake: IconComponent;
|
|
24
|
+
|
|
25
|
+
declare const IceCream: IconComponent;
|
|
26
|
+
|
|
27
|
+
declare const Donut: IconComponent;
|
|
28
|
+
|
|
29
|
+
declare const Apple: IconComponent;
|
|
30
|
+
|
|
31
|
+
declare const Cheese: IconComponent;
|
|
32
|
+
|
|
33
|
+
declare const Egg: IconComponent;
|
|
34
|
+
|
|
35
|
+
declare const Bread: IconComponent;
|
|
36
|
+
|
|
37
|
+
declare const Taco: IconComponent;
|
|
38
|
+
|
|
39
|
+
declare const Sushi: IconComponent;
|
|
40
|
+
|
|
41
|
+
declare const Ramen: IconComponent;
|
|
42
|
+
|
|
43
|
+
declare const Cookie: IconComponent;
|
|
44
|
+
|
|
45
|
+
declare const Avocado: IconComponent;
|
|
46
|
+
|
|
47
|
+
declare const Carrot: IconComponent;
|
|
48
|
+
|
|
49
|
+
declare const Wine: IconComponent;
|
|
50
|
+
|
|
51
|
+
declare const Soda: IconComponent;
|
|
52
|
+
|
|
53
|
+
declare const HotDog: IconComponent;
|
|
54
|
+
|
|
55
|
+
export { Apple, Avocado, Bread, Burger, Carrot, Cheese, Coffee, Cookie, Cupcake, Donut, Egg, Fries, HotDog, IceCream, type IconComponent, type IconNode, type IconProps, Pizza, Ramen, Soda, Sushi, Taco, Wine, createIcon };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {forwardRef,createElement}from'react';var o=(c,p)=>{let r=forwardRef(({size:e=24,color:h="currentColor",strokeWidth:n=2,className:m,children:t,...M},d)=>createElement("svg",{ref:d,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:h,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:m,...M},...p.map(([i,s],x)=>createElement(i,{key:x,...s})),...Array.isArray(t)?t:t?[t]:[]));return r.displayName=c,r};var l=o("Pizza",[["path",{d:"M12 21 4.6 8.2a9 3.4 0 0 1 14.8 0z"}],["path",{d:"M4.6 8.2a9 3.4 0 0 0 14.8 0"}],["circle",{cx:"9.5",cy:"11",r:".6"}],["circle",{cx:"14.5",cy:"11",r:".6"}],["circle",{cx:"12",cy:"15.5",r:".6"}]]);var I=o("Burger",[["path",{d:"M4 11a8 4.5 0 0 1 16 0"}],["path",{d:"M8 8.2h.01M12 7.6h.01M16 8.2h.01"}],["path",{d:"M3.5 11h17"}],["path",{d:"M3.5 14.2h17"}],["path",{d:"M4 15.5h16a0 0 0 0 1 0 0 3 3 0 0 1-3 3H7a3 3 0 0 1-3-3z"}]]);var C=o("Fries",[["path",{d:"M6 9.5 5.2 5a1 1 0 0 1 2-.3L8 9.5M9.4 9 9 3.4a1 1 0 0 1 2 0L11 9M13 9l.4-6a1 1 0 0 1 2 .2L15 9M16.5 9.5l1-4.3a1 1 0 0 1 2 .5L18.6 9.5"}],["path",{d:"M5 9.5h14l-1.3 9.2a2 2 0 0 1-2 1.8H8.3a2 2 0 0 1-2-1.8z"}],["path",{d:"M8.5 13h7"}]]);var z=o("Coffee",[["path",{d:"M17 8h1a3 3 0 0 1 0 6h-1"}],["path",{d:"M3 8h14v6a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5z"}],["path",{d:"M7 2.5v2M11 2.5v2M15 2.5v2"}]]);var g=o("Cupcake",[["path",{d:"M5.5 11a6.5 6.5 0 0 1 13 0"}],["path",{d:"M12 4.5V6"}],["path",{d:"M6 11h12l-1.2 7a2 2 0 0 1-2 1.7H9.2a2 2 0 0 1-2-1.7z"}],["path",{d:"M8 15h8"}]]);var u=o("IceCream",[["path",{d:"M8.5 11 12 20.5 15.5 11"}],["path",{d:"M7 11a5 5 0 0 1 10 0z"}],["path",{d:"M9.5 8.2a2 2 0 0 1 2.5-1.2 2 2 0 0 1 2.5 1.2"}]]);var y=o("Donut",[["circle",{cx:"12",cy:"12",r:"8.5"}],["circle",{cx:"12",cy:"12",r:"3"}],["path",{d:"M7 8.5h.01M9 6h.01M15.5 6.5h.01M17.5 9h.01M18 13.5h.01M6.5 14h.01"}]]);var S=o("Apple",[["path",{d:"M12 8c-1.2-1.6-3.3-2-4.8-.8C5 8.7 4.6 11.6 6 14.6c.9 2 2.4 3.9 4 3.9.8 0 1.2-.35 2-.35s1.2.35 2 .35c1.6 0 3.1-1.9 4-3.9 1.4-3 1-5.9-1.2-7.4C15.3 6 13.2 6.4 12 8z"}],["path",{d:"M12 8V5"}],["path",{d:"M12 6c.8-1.6 2.6-2 3.8-1-.2 1.8-2 2.4-3.8 1z"}]]);var v=o("Cheese",[["path",{d:"M3 18V13L18 5a3 3 0 0 1 3 3v10z"}],["path",{d:"M3 13h18"}],["circle",{cx:"8",cy:"16",r:"1"}],["circle",{cx:"14",cy:"15.5",r:"1"}],["circle",{cx:"17.5",cy:"17",r:".8"}]]);var k=o("Egg",[["path",{d:"M12 2.5c-3.5 0-6.5 6-6.5 11a6.5 6.5 0 0 0 13 0c0-5-3-11-6.5-11z"}],["path",{d:"M9 15.5a3 3 0 0 0 3 0",transform:"translate(0 -1)"}]]);var A=o("Bread",[["path",{d:"M4 11a4 4 0 0 1 1.2-7.5C6 3.5 6.8 3 8 3h8c2.8 0 5 2.2 5 5 0 1.5-.7 2.6-2 3v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z"}],["path",{d:"M7 8.5c1-1.5 3-1.5 4 0M13 8.5c1-1.5 3-1.5 4 0"}]]);var V=o("Taco",[["path",{d:"M2.5 15a9.5 9.5 0 0 1 19 0z"}],["path",{d:"M2.5 15c0 1.4 1 2.5 2.3 2.5S7 16.4 7 15M17 15c0 1.4 1 2.5 2.3 2.5s2.2-1.1 2.2-2.5"}],["path",{d:"M7 15c0 1.4 1.1 2.5 2.5 2.5S12 16.4 12 15s1.1 2.5 2.5 2.5S17 16.4 17 15"}]]);var w=o("Sushi",[["rect",{x:"4",y:"8",width:"16",height:"8",rx:"4"}],["circle",{cx:"9",cy:"12",r:"2.2"}],["path",{d:"M15 8v8"}],["path",{d:"M4 12h5"}]]);var E=o("Ramen",[["path",{d:"M3 10h18v1a8 8 0 0 1-8 8h-2a8 8 0 0 1-8-8z"}],["path",{d:"M6.5 10c0-2 1.5-3.5 3-4.5M10 10c-.3-2.5.8-4 2.2-5M14 10c0-2 1.2-3.3 2.6-4"}],["path",{d:"M15 13l4.5-3"}]]);var H=o("Cookie",[["path",{d:"M12 3a9 9 0 1 0 9 9 3 3 0 0 1-3-3 3 3 0 0 1-3-3 3 3 0 0 1-3-3z"}],["path",{d:"M9 9h.01M14 8h.01M8 14h.01M15.5 14h.01M12 16.5h.01M11.5 12h.01"}]]);var P=o("Avocado",[["path",{d:"M12 2.5a4.5 4.5 0 0 0-1.8 8.6C7.8 12 6 14.6 6 17.7 6 20 8.7 21.5 12 21.5s6-1.5 6-3.8c0-3.1-1.8-5.7-4.2-6.6A4.5 4.5 0 0 0 12 2.5z"}],["circle",{cx:"12",cy:"16.5",r:"3"}]]);var R=o("Carrot",[["path",{d:"M18.5 5.5c-2 0-4 .8-5.7 2.4L4.6 16a2 2 0 0 0 3.4 3.4l8.1-8.2c1.6-1.7 2.4-3.7 2.4-5.7z"}],["path",{d:"m9 10 2 2M13 6l2 2"}],["path",{d:"M18.5 5.5 21 3M17 7c1.5-.5 3-.2 4 .5M15 4c-.5 1.5-.2 3 .5 4"}]]);var G=o("Wine",[["path",{d:"M8 3h8l-.6 5.5a3.6 3.6 0 0 1-7.2 0z"}],["path",{d:"M7.7 6.5h8.6"}],["path",{d:"M12 12v6.5"}],["path",{d:"M8.5 20.5h7"}]]);var L=o("Soda",[["path",{d:"M7 8h10l-1 11a2 2 0 0 1-2 1.8h-4a2 2 0 0 1-2-1.8z"}],["path",{d:"M8 8 9 4h6l1 4"}],["path",{d:"M9.5 4l1-1.5h3l1 1.5"}],["path",{d:"M7.5 12h9"}]]);var B=o("HotDog",[["path",{d:"M4 10.5h16a3 3 0 0 1 0 6H4a3 3 0 0 1 0-6z"}],["path",{d:"M6.5 12h11a1.5 1.5 0 0 1 0 3h-11a1.5 1.5 0 0 1 0-3z"}],["path",{d:"M7.5 13.5l2 .8 2-.8 2 .8 2-.8"}]]);
|
|
2
|
+
export{S as Apple,P as Avocado,A as Bread,I as Burger,R as Carrot,v as Cheese,z as Coffee,H as Cookie,g as Cupcake,y as Donut,k as Egg,C as Fries,B as HotDog,u as IceCream,l as Pizza,E as Ramen,L as Soda,w as Sushi,V as Taco,G as Wine,o as createIcon};
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "abhi-react-food-icons",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A set of 20 clean, consistent, tree-shakeable food icons as React components.",
|
|
5
|
+
"author": "Abhishek",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.cjs",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsup",
|
|
24
|
+
"prepublishOnly": "npm run build"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"react",
|
|
28
|
+
"icons",
|
|
29
|
+
"svg",
|
|
30
|
+
"food",
|
|
31
|
+
"food-icons",
|
|
32
|
+
"react-icons",
|
|
33
|
+
"react-components",
|
|
34
|
+
"tree-shakeable",
|
|
35
|
+
"typescript"
|
|
36
|
+
],
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"react": ">=16.8.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/react": "^18.3.12",
|
|
42
|
+
"react": "^18.3.1",
|
|
43
|
+
"tsup": "^8.3.5",
|
|
44
|
+
"typescript": "^5.6.3"
|
|
45
|
+
}
|
|
46
|
+
}
|