@astroicons/react 0.2.1
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/README.md +55 -0
- package/dist/Icon.d.ts +9 -0
- package/dist/chunk-2pjryskj.js +2 -0
- package/dist/chunk-343hre0h.js +2 -0
- package/dist/chunk-4hn6v3ax.js +2 -0
- package/dist/chunk-5w3z8mw0.js +2 -0
- package/dist/chunk-711mmm6g.js +2 -0
- package/dist/chunk-73012pap.js +2 -0
- package/dist/chunk-9gg9ez0r.js +2 -0
- package/dist/chunk-a3yg8ag3.js +2 -0
- package/dist/chunk-a9pzfs8d.js +2 -0
- package/dist/chunk-ct93q1hh.js +2 -0
- package/dist/chunk-dhc4eg0q.js +2 -0
- package/dist/chunk-dq35bh7n.js +2 -0
- package/dist/chunk-dwe5gq1m.js +2 -0
- package/dist/chunk-f0c6z9w6.js +2 -0
- package/dist/chunk-f79c483b.js +2 -0
- package/dist/chunk-f9dz7pb7.js +2 -0
- package/dist/chunk-hc6xmh5n.js +2 -0
- package/dist/chunk-kmk5ejrg.js +2 -0
- package/dist/chunk-m4fdqagj.js +2 -0
- package/dist/chunk-mp5a62qr.js +2 -0
- package/dist/chunk-nw32c9bh.js +2 -0
- package/dist/chunk-q04740z5.js +2 -0
- package/dist/chunk-qtm5m25h.js +2 -0
- package/dist/chunk-r9gdr272.js +2 -0
- package/dist/chunk-revpkmvm.js +2 -0
- package/dist/chunk-rrjyqwg1.js +2 -0
- package/dist/chunk-tx8fq562.js +2 -0
- package/dist/chunk-v9jmqsnn.js +2 -0
- package/dist/chunk-w5rdzbes.js +2 -0
- package/dist/chunk-wr7h3nsg.js +2 -0
- package/dist/chunk-xny7jzba.js +2 -0
- package/dist/cjs/index.js +1 -0
- package/dist/createIcon.d.ts +3 -0
- package/dist/defaultAttributes.d.ts +8 -0
- package/dist/icon/index.d.ts +2 -0
- package/dist/icon/index.js +1 -0
- package/dist/iconRegistry.d.ts +34 -0
- package/dist/icons/aquarius.d.ts +2 -0
- package/dist/icons/aquarius.js +1 -0
- package/dist/icons/aries.d.ts +2 -0
- package/dist/icons/aries.js +1 -0
- package/dist/icons/ascendant.d.ts +2 -0
- package/dist/icons/ascendant.js +1 -0
- package/dist/icons/cancer.d.ts +2 -0
- package/dist/icons/cancer.js +1 -0
- package/dist/icons/capricorn.d.ts +2 -0
- package/dist/icons/capricorn.js +1 -0
- package/dist/icons/conjunction.d.ts +2 -0
- package/dist/icons/conjunction.js +1 -0
- package/dist/icons/gemini.d.ts +2 -0
- package/dist/icons/gemini.js +1 -0
- package/dist/icons/index.d.ts +30 -0
- package/dist/icons/jupiter.d.ts +2 -0
- package/dist/icons/jupiter.js +1 -0
- package/dist/icons/leo.d.ts +2 -0
- package/dist/icons/leo.js +1 -0
- package/dist/icons/libra.d.ts +2 -0
- package/dist/icons/libra.js +1 -0
- package/dist/icons/mars.d.ts +2 -0
- package/dist/icons/mars.js +1 -0
- package/dist/icons/mercury.d.ts +2 -0
- package/dist/icons/mercury.js +1 -0
- package/dist/icons/moon.d.ts +2 -0
- package/dist/icons/moon.js +1 -0
- package/dist/icons/neptune.d.ts +2 -0
- package/dist/icons/neptune.js +1 -0
- package/dist/icons/opposition.d.ts +2 -0
- package/dist/icons/opposition.js +1 -0
- package/dist/icons/pisces.d.ts +2 -0
- package/dist/icons/pisces.js +1 -0
- package/dist/icons/pluto.d.ts +2 -0
- package/dist/icons/pluto.js +1 -0
- package/dist/icons/quadrature.d.ts +2 -0
- package/dist/icons/quadrature.js +1 -0
- package/dist/icons/quincunx.d.ts +2 -0
- package/dist/icons/quincunx.js +1 -0
- package/dist/icons/sagittarius.d.ts +2 -0
- package/dist/icons/sagittarius.js +1 -0
- package/dist/icons/saturn.d.ts +2 -0
- package/dist/icons/saturn.js +1 -0
- package/dist/icons/scorpio.d.ts +2 -0
- package/dist/icons/scorpio.js +1 -0
- package/dist/icons/semisextile.d.ts +2 -0
- package/dist/icons/semisextile.js +1 -0
- package/dist/icons/sextile.d.ts +2 -0
- package/dist/icons/sextile.js +1 -0
- package/dist/icons/sun.d.ts +2 -0
- package/dist/icons/sun.js +1 -0
- package/dist/icons/taurus.d.ts +2 -0
- package/dist/icons/taurus.js +1 -0
- package/dist/icons/trigone.d.ts +2 -0
- package/dist/icons/trigone.js +1 -0
- package/dist/icons/uranus.d.ts +2 -0
- package/dist/icons/uranus.js +1 -0
- package/dist/icons/venus.d.ts +2 -0
- package/dist/icons/venus.js +1 -0
- package/dist/icons/virgo.d.ts +2 -0
- package/dist/icons/virgo.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/types.d.ts +13 -0
- package/package.json +43 -0
package/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# @astroicons/react
|
|
2
|
+
|
|
3
|
+
React components for the [Astroicons](https://github.com/marcmarine/astroicons) SVG set.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @astroicons/react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Import each icon individually as a component:
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { Neptune, Conjunction, Saturn } from '@astroicons/react';
|
|
17
|
+
|
|
18
|
+
function App() {
|
|
19
|
+
return (
|
|
20
|
+
<>
|
|
21
|
+
<Neptune />
|
|
22
|
+
<Conjunction size={16} />
|
|
23
|
+
<Saturn />
|
|
24
|
+
</>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Render an icon dynamically by name:
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
import { Icon, type IconName } from '@astroicons/react/icon'
|
|
33
|
+
|
|
34
|
+
export function Symbol({ name }: { name: IconName }) {
|
|
35
|
+
return <Icon name="venus" />
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
> ⚠️ `Icon` imports the full icon registry. Use it only when you need to resolve an icon at runtime; otherwise prefer individual imports.
|
|
40
|
+
|
|
41
|
+
## Props
|
|
42
|
+
|
|
43
|
+
All icon components accept:
|
|
44
|
+
|
|
45
|
+
| Prop | Type | Default |
|
|
46
|
+
| ------------- | ------------------------------ | ---------------- |
|
|
47
|
+
| `size` | `string \| number` | `24` |
|
|
48
|
+
| `color` | `string` | `'currentColor'` |
|
|
49
|
+
| `strokeWidth` | `string \| number` | `1` |
|
|
50
|
+
| `className` | `string` | — |
|
|
51
|
+
| `...rest` | `SVGAttributes<SVGSVGElement>` | — |
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
MIT License
|
package/dist/Icon.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type IconName } from "./iconRegistry";
|
|
2
|
+
declare const Icon: import("react").ForwardRefExoticComponent<import("react").SVGAttributes<SVGSVGElement> & {
|
|
3
|
+
size?: string | number;
|
|
4
|
+
strokeWidth?: string | number;
|
|
5
|
+
color?: string;
|
|
6
|
+
} & {
|
|
7
|
+
name: IconName;
|
|
8
|
+
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
9
|
+
export default Icon;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{E as o}from"./chunk-r9gdr272.js";var t=o("opposition",[["path",{d:"m7.625 16.375.02.019a3.338 3.338 0 1 1-.02-.019Zm0 0 8.622-8.622m0 0a3.34 3.34 0 0 1-.919-2.417l.002-.002a3.338 3.338 0 0 1 6.67 0 3.34 3.34 0 0 1-4.64 3.19 3.3 3.3 0 0 1-1.113-.771Z"}]]),i=t;
|
|
2
|
+
export{i as l};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{E as t}from"./chunk-r9gdr272.js";var o=t("sun",[["path",{fill:"currentColor",d:"M11.983 10.704a1.3 1.3 0 0 1 1.255 1.297 1.298 1.298 0 1 1-1.255-1.297Z"}],["path",{d:"M22 12c0-5.524-4.477-10-10-10S2 6.476 2 12c0 5.523 4.477 10 10 10s10-4.477 10-10Z"}]]),a=o;
|
|
2
|
+
export{a as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{E as a}from"./chunk-r9gdr272.js";var r=a("aquarius",[["path",{d:"M2 15.5a3.54 3.54 0 0 1 5 0 3.536 3.536 0 0 0 5 0 3.54 3.54 0 0 1 5 0 3.537 3.537 0 0 0 5 0m-20-7a3.54 3.54 0 0 1 5 0 3.534 3.534 0 0 0 5 0 3.54 3.54 0 0 1 5 0 3.534 3.534 0 0 0 5 0"}]]),u=r;
|
|
2
|
+
export{u as D};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createElement as c,forwardRef as f}from"react";var i={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1},r=i;var m=([o,n,e],t)=>c(o,{key:t,...n},e?.map(m)),u=(o,n)=>{let e=f(({size:t=24,strokeWidth:l=1,color:s="currentColor",className:p,...a},d)=>c("svg",{ref:d,...r,width:t,height:t,stroke:s,strokeWidth:l,className:p,...a},n.map(m)));return e.displayName=o,e},h=u;
|
|
2
|
+
export{h as E};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{E as c}from"./chunk-r9gdr272.js";var o=c("virgo",[["path",{d:"M2.269 8.768a2.5 2.5 0 0 1-.656-1.042 2.4 2.4 0 0 1-.063-1.213 2.45 2.45 0 0 1 .546-1.099 2.6 2.6 0 0 1 1.024-.723 2.74 2.74 0 0 1 2.463.23c.36.229.653.538.857.9.203.363.31.768.31 1.179m0 0v10m0-10c0-.663.277-1.299.769-1.768A2.7 2.7 0 0 1 9.375 4.5c.696 0 1.364.263 1.856.732.492.47.769 1.105.769 1.768m0 0c0-.663.277-1.299.769-1.768a2.7 2.7 0 0 1 1.856-.732c.696 0 1.364.263 1.856.732.492.47.769 1.105.769 1.768v10c0 1.38 1.176 2.5 2.625 2.5M12 7v10m5.25-7.5c0-.663.277-1.299.769-1.768A2.7 2.7 0 0 1 19.875 7c.696 0 1.364.263 1.856.732.492.47.769 1.105.769 1.768 0 1.99-.83 3.897-2.306 5.303C18.717 16.21 16.714 17 14.625 17"}]]),t=o;
|
|
2
|
+
export{t as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var{defineProperty:m,getOwnPropertyNames:B,getOwnPropertyDescriptor:W}=Object,D=Object.prototype.hasOwnProperty;function F(o){return this[o]}var K=(o)=>{var e=(c??=new WeakMap).get(o),r;if(e)return e;if(e=m({},"__esModule",{value:!0}),o&&typeof o==="object"||typeof o==="function"){for(var a of B(o))if(!D.call(e,a))m(e,a,{get:F.bind(o,a),enumerable:!(r=W(o,a))||r.enumerable})}return c.set(o,e),e},c;var X=(o)=>o;function Y(o,e){this[o]=X.bind(null,e)}var _=(o,e)=>{for(var r in e)m(o,r,{get:e[r],enumerable:!0,configurable:!0,set:Y.bind(e,r)})};var bt={};_(bt,{createIcon:()=>t,Virgo:()=>s,Venus:()=>u,Uranus:()=>S,Trigone:()=>T,Taurus:()=>G,Sun:()=>i,Sextile:()=>N,Semisextile:()=>g,Scorpio:()=>y,Saturn:()=>v,Sagittarius:()=>x,Quincunx:()=>L,Quadrature:()=>H,Pluto:()=>V,Pisces:()=>M,Opposition:()=>b,Neptune:()=>d,Moon:()=>A,Mercury:()=>q,Mars:()=>k,Libra:()=>I,Leo:()=>E,Jupiter:()=>P,Gemini:()=>Q,Conjunction:()=>h,Capricorn:()=>Z,Cancer:()=>j,Ascendant:()=>l,Aries:()=>w,Aquarius:()=>C});module.exports=K(bt);var p=require("react");var $={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1},n=$;var f=([o,e,r],a)=>p.createElement(o,{key:a,...e},r?.map(f)),tt=(o,e)=>{let r=p.forwardRef(({size:a=24,strokeWidth:R=1,color:J="currentColor",className:O,...U},z)=>p.createElement("svg",{ref:z,...n,width:a,height:a,stroke:J,strokeWidth:R,className:O,...U},e.map(f)));return r.displayName=o,r},t=tt;var ot=t("venus",[["path",{d:"M12 22v-8m0 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12Zm-4 4h8"}]]),u=ot;var et=t("virgo",[["path",{d:"M2.269 8.768a2.5 2.5 0 0 1-.656-1.042 2.4 2.4 0 0 1-.063-1.213 2.45 2.45 0 0 1 .546-1.099 2.6 2.6 0 0 1 1.024-.723 2.74 2.74 0 0 1 2.463.23c.36.229.653.538.857.9.203.363.31.768.31 1.179m0 0v10m0-10c0-.663.277-1.299.769-1.768A2.7 2.7 0 0 1 9.375 4.5c.696 0 1.364.263 1.856.732.492.47.769 1.105.769 1.768m0 0c0-.663.277-1.299.769-1.768a2.7 2.7 0 0 1 1.856-.732c.696 0 1.364.263 1.856.732.492.47.769 1.105.769 1.768v10c0 1.38 1.176 2.5 2.625 2.5M12 7v10m5.25-7.5c0-.663.277-1.299.769-1.768A2.7 2.7 0 0 1 19.875 7c.696 0 1.364.263 1.856.732.492.47.769 1.105.769 1.768 0 1.99-.83 3.897-2.306 5.303C18.717 16.21 16.714 17 14.625 17"}]]),s=et;var rt=t("neptune",[["path",{d:"M12 22V2M7 14.5h10M4.5 2a7.502 7.502 0 0 0 15 0"}]]),d=rt;var at=t("sun",[["path",{fill:"currentColor",d:"M11.983 10.704a1.3 1.3 0 0 1 1.255 1.297 1.298 1.298 0 1 1-1.255-1.297Z"}],["path",{d:"M22 12c0-5.524-4.477-10-10-10S2 6.476 2 12c0 5.523 4.477 10 10 10s10-4.477 10-10Z"}]]),i=at;var pt=t("ascendant",[["path",{d:"M9.55 5.25 12 2.8m0 0 2.45 2.45M12 2.8v19.5"}]]),l=pt;var mt=t("sagittarius",[["path",{d:"m6.912 7.088 10 10m-15 5 20-20"}],["path",{d:"M16.912 2.088h5v5"}]]),x=mt;var ct=t("conjunction",[["path",{d:"m18.664 5.336-11.04 11.04m0 0 .02.018a3.338 3.338 0 1 1-.02-.019Z"}]]),h=ct;var nt=t("pisces",[["path",{d:"M18.25 3.34a10 10 0 0 0 0 17.32m-12.5 0a10 10 0 0 0 0-17.32M2 11.996h20.006"}]]),M=nt;var ft=t("libra",[["path",{d:"M.45 12h5.775a5.775 5.775 0 0 1 11.55 0h5.775M.45 17.775h23.1"}]]),I=ft;var ut=t("saturn",[["path",{d:"M6 6h8m-4-4v10a3.998 3.998 0 1 1 6.828 2.828C15.016 16.64 14 19.44 14 22"}]]),v=ut;var st=t("moon",[["path",{d:"M7 2a10 10 0 0 1 0 20 11.55 11.55 0 0 0 5.774-10c0-4.124-2.204-7.938-5.774-10Z"}]]),A=st;var dt=t("semisextile",[["path",{d:"M22 16.33H12m-10 0h10M7 7.67l5 8.66m0 0 5-8.66"}]]),g=dt;var it=t("uranus",[["path",{d:"M12 17V4.5M7 2v10M17 2v10M7 7h10m-2.5 12.5a2.498 2.498 0 1 0-4.997.004A2.498 2.498 0 0 0 14.5 19.5Z"}]]),S=it;var lt=t("aquarius",[["path",{d:"M2 15.5a3.54 3.54 0 0 1 5 0 3.536 3.536 0 0 0 5 0 3.54 3.54 0 0 1 5 0 3.537 3.537 0 0 0 5 0m-20-7a3.54 3.54 0 0 1 5 0 3.534 3.534 0 0 0 5 0 3.54 3.54 0 0 1 5 0 3.534 3.534 0 0 0 5 0"}]]),C=lt;var xt=t("capricorn",[["path",{d:"M1.7 8.666h3.334L8.366 22 11.7 8.666h6.666A3.332 3.332 0 1 0 15.48 7l5.774 10a3.334 3.334 0 1 1-6.22 1.666"}]]),Z=xt;var ht=t("pluto",[["path",{d:"M17 20H7V4h5c2.758 0 5 1.24 5 4s-2.242 4-5 4H7"}]]),V=ht;var Mt=t("scorpio",[["path",{d:"M22.8 13.66h-3.3v3.3m0-3.3 1.768 1.572A2.501 2.501 0 1 1 17 17V7a2.5 2.5 0 0 0-5 0M2.732 8.768A2.5 2.5 0 1 1 7 7m0 0v10M7 7a2.5 2.5 0 1 1 5 0m0 0v10"}]]),y=Mt;var It=t("sextile",[["path",{d:"M22 12H2m5-8.66 10 17.32m0-17.32L7 20.66"}]]),N=It;var vt=t("leo",[["path",{d:"M9.5 14.5C9.5 12 7 9.5 7 7a5 5 0 0 1 10 0c0 5-2.5 7.5-2.5 12.5a2.5 2.5 0 1 0 5 0m-10-5a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"}]]),E=vt;var At=t("aries",[["path",{d:"M3.464 10.836A5 5 0 1 1 12 7.3m0 0a5 5 0 1 1 8.536 3.536M12 7.3v15"}]]),w=At;var gt=t("jupiter",[["path",{d:"M4.5 2a8.66 8.66 0 0 1 0 15h15m-5-5v10"}]]),P=gt;var St=t("opposition",[["path",{d:"m7.625 16.375.02.019a3.338 3.338 0 1 1-.02-.019Zm0 0 8.622-8.622m0 0a3.34 3.34 0 0 1-.919-2.417l.002-.002a3.338 3.338 0 0 1 6.67 0 3.34 3.34 0 0 1-4.64 3.19 3.3 3.3 0 0 1-1.113-.771Z"}]]),b=St;var Ct=t("quadrature",[["path",{d:"M22 22H2V2h20z"}]]),H=Ct;var Zt=t("quincunx",[["path",{d:"M22 7.67H12m-10 0h10m-5 8.66 5-8.66m0 0 5 8.66"}]]),L=Zt;var Vt=t("mercury",[["path",{d:"M12 6a4 4 0 1 1 0 8m0-8a4 4 0 1 0 0 8m0-8a4 4 0 0 1-4-4m4 4a4 4 0 0 0 4-4m-4 12v8m-4-4h8"}]]),q=Vt;var yt=t("cancer",[["path",{d:"M22 12a3.335 3.335 0 1 0-6.67 0A3.335 3.335 0 0 0 22 12Zm0 0A10 10 0 0 0 4.93 4.93M2 12a3.334 3.334 0 1 0 6.668 0A3.334 3.334 0 0 0 2 12Zm0 0a10 10 0 0 0 17.07 7.07"}]]),j=yt;var Nt=t("taurus",[["path",{d:"M11.921 8.321a7.6 7.6 0 0 1 7.599 7.601v-.002a7.6 7.6 0 1 1-7.599-7.599Zm0 0A7.604 7.604 0 0 1 4.32.72m7.601 7.601A7.6 7.6 0 0 0 19.52.72"}]]),G=Nt;var Et=t("gemini",[["path",{d:"M7 4.044v15.912M17 4.044v15.912"}],["path",{d:"M22 2A19.99 19.99 0 0 1 2 2M22 22a20 20 0 0 0-20 0"}]]),Q=Et;var wt=t("trigone",[["path",{d:"M2 21.994 12 4.672l10 17.32z"}]]),T=wt;var Pt=t("mars",[["path",{d:"M14.163 9.681 20.344 3.5M16 14c0-3.31-2.69-6-6-6s-6 2.69-6 6 2.69 6 6 6 6-2.69 6-6Z"}],["path",{d:"M16.804 3.5h3.54v3.54"}]]),k=Pt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as M}from"../chunk-4hn6v3ax.js";import{b as v}from"../chunk-tx8fq562.js";import{c as d}from"../chunk-f0c6z9w6.js";import{d as n}from"../chunk-a3yg8ag3.js";import{e as t}from"../chunk-v9jmqsnn.js";import{f as A}from"../chunk-kmk5ejrg.js";import{g}from"../chunk-f79c483b.js";import{h as p}from"../chunk-mp5a62qr.js";import{i as a}from"../chunk-343hre0h.js";import{j as e}from"../chunk-m4fdqagj.js";import{k as l}from"../chunk-wr7h3nsg.js";import{l as P}from"../chunk-9gg9ez0r.js";import{m as y}from"../chunk-w5rdzbes.js";import{n as G}from"../chunk-dq35bh7n.js";import{o as C}from"../chunk-711mmm6g.js";import{p as i}from"../chunk-73012pap.js";import{q as S}from"../chunk-qtm5m25h.js";import{r as V}from"../chunk-f9dz7pb7.js";import{s}from"../chunk-xny7jzba.js";import{t as R}from"../chunk-nw32c9bh.js";import{u as m}from"../chunk-rrjyqwg1.js";import{v as q}from"../chunk-dhc4eg0q.js";import{w as N}from"../chunk-q04740z5.js";import{x}from"../chunk-revpkmvm.js";import{y as u}from"../chunk-dwe5gq1m.js";import{z as w}from"../chunk-5w3z8mw0.js";import{A as c}from"../chunk-2pjryskj.js";import{B as f}from"../chunk-hc6xmh5n.js";import{C as b}from"../chunk-ct93q1hh.js";import{D as I}from"../chunk-a9pzfs8d.js";import"../chunk-r9gdr272.js";import{forwardRef as T}from"react";var E={venus:i,virgo:t,neptune:m,sun:n,ascendant:e,sagittarius:p,conjunction:s,pisces:f,libra:u,saturn:c,moon:a,semisextile:l,uranus:y,aquarius:I,capricorn:d,pluto:g,scorpio:x,sextile:N,leo:S,aries:q,jupiter:C,opposition:P,quadrature:V,quincunx:A,mercury:G,cancer:M,taurus:R,gemini:b,trigone:v,mars:w};import{jsxDEV as j}from"react/jsx-dev-runtime";var L=T(({name:o,...O},Q)=>{let r=E[o];if(!r)return console.warn(`[astroicons] Icon "${o}" not found in registry.`),null;return j(r,{...O,ref:Q},void 0,!1,void 0,this)});L.displayName="Icon";var k=L;export{k as Icon};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Icon } from "./types";
|
|
2
|
+
export declare const icons: {
|
|
3
|
+
venus: Icon;
|
|
4
|
+
virgo: Icon;
|
|
5
|
+
neptune: Icon;
|
|
6
|
+
sun: Icon;
|
|
7
|
+
ascendant: Icon;
|
|
8
|
+
sagittarius: Icon;
|
|
9
|
+
conjunction: Icon;
|
|
10
|
+
pisces: Icon;
|
|
11
|
+
libra: Icon;
|
|
12
|
+
saturn: Icon;
|
|
13
|
+
moon: Icon;
|
|
14
|
+
semisextile: Icon;
|
|
15
|
+
uranus: Icon;
|
|
16
|
+
aquarius: Icon;
|
|
17
|
+
capricorn: Icon;
|
|
18
|
+
pluto: Icon;
|
|
19
|
+
scorpio: Icon;
|
|
20
|
+
sextile: Icon;
|
|
21
|
+
leo: Icon;
|
|
22
|
+
aries: Icon;
|
|
23
|
+
jupiter: Icon;
|
|
24
|
+
opposition: Icon;
|
|
25
|
+
quadrature: Icon;
|
|
26
|
+
quincunx: Icon;
|
|
27
|
+
mercury: Icon;
|
|
28
|
+
cancer: Icon;
|
|
29
|
+
taurus: Icon;
|
|
30
|
+
gemini: Icon;
|
|
31
|
+
trigone: Icon;
|
|
32
|
+
mars: Icon;
|
|
33
|
+
};
|
|
34
|
+
export type IconName = keyof typeof icons;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as a}from"../chunk-a9pzfs8d.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as a}from"../chunk-dhc4eg0q.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as a}from"../chunk-m4fdqagj.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-4hn6v3ax.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as a}from"../chunk-f0c6z9w6.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as a}from"../chunk-xny7jzba.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as a}from"../chunk-ct93q1hh.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export { default as Venus } from './venus';
|
|
2
|
+
export { default as Virgo } from './virgo';
|
|
3
|
+
export { default as Neptune } from './neptune';
|
|
4
|
+
export { default as Sun } from './sun';
|
|
5
|
+
export { default as Ascendant } from './ascendant';
|
|
6
|
+
export { default as Sagittarius } from './sagittarius';
|
|
7
|
+
export { default as Conjunction } from './conjunction';
|
|
8
|
+
export { default as Pisces } from './pisces';
|
|
9
|
+
export { default as Libra } from './libra';
|
|
10
|
+
export { default as Saturn } from './saturn';
|
|
11
|
+
export { default as Moon } from './moon';
|
|
12
|
+
export { default as Semisextile } from './semisextile';
|
|
13
|
+
export { default as Uranus } from './uranus';
|
|
14
|
+
export { default as Aquarius } from './aquarius';
|
|
15
|
+
export { default as Capricorn } from './capricorn';
|
|
16
|
+
export { default as Pluto } from './pluto';
|
|
17
|
+
export { default as Scorpio } from './scorpio';
|
|
18
|
+
export { default as Sextile } from './sextile';
|
|
19
|
+
export { default as Leo } from './leo';
|
|
20
|
+
export { default as Aries } from './aries';
|
|
21
|
+
export { default as Jupiter } from './jupiter';
|
|
22
|
+
export { default as Opposition } from './opposition';
|
|
23
|
+
export { default as Quadrature } from './quadrature';
|
|
24
|
+
export { default as Quincunx } from './quincunx';
|
|
25
|
+
export { default as Mercury } from './mercury';
|
|
26
|
+
export { default as Cancer } from './cancer';
|
|
27
|
+
export { default as Taurus } from './taurus';
|
|
28
|
+
export { default as Gemini } from './gemini';
|
|
29
|
+
export { default as Trigone } from './trigone';
|
|
30
|
+
export { default as Mars } from './mars';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as a}from"../chunk-711mmm6g.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{q as a}from"../chunk-qtm5m25h.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y as a}from"../chunk-dwe5gq1m.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as a}from"../chunk-5w3z8mw0.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as a}from"../chunk-dq35bh7n.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as a}from"../chunk-343hre0h.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as a}from"../chunk-rrjyqwg1.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as a}from"../chunk-9gg9ez0r.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as a}from"../chunk-hc6xmh5n.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as a}from"../chunk-f79c483b.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a}from"../chunk-f9dz7pb7.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as a}from"../chunk-kmk5ejrg.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as a}from"../chunk-mp5a62qr.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as a}from"../chunk-2pjryskj.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{x as a}from"../chunk-revpkmvm.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as a}from"../chunk-wr7h3nsg.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w as a}from"../chunk-q04740z5.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as a}from"../chunk-a3yg8ag3.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as a}from"../chunk-nw32c9bh.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a}from"../chunk-tx8fq562.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as a}from"../chunk-w5rdzbes.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as a}from"../chunk-73012pap.js";import"../chunk-r9gdr272.js";export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as a}from"../chunk-v9jmqsnn.js";import"../chunk-r9gdr272.js";export{a as default};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as L}from"./chunk-4hn6v3ax.js";import{b as V}from"./chunk-tx8fq562.js";import{c as i}from"./chunk-f0c6z9w6.js";import{d as t}from"./chunk-a3yg8ag3.js";import{e as o}from"./chunk-v9jmqsnn.js";import{f as N}from"./chunk-kmk5ejrg.js";import{g as c}from"./chunk-f79c483b.js";import{h as f}from"./chunk-mp5a62qr.js";import{i as x}from"./chunk-343hre0h.js";import{j as a}from"./chunk-m4fdqagj.js";import{k as d}from"./chunk-wr7h3nsg.js";import{l as C}from"./chunk-9gg9ez0r.js";import{m as l}from"./chunk-w5rdzbes.js";import{n as P}from"./chunk-dq35bh7n.js";import{o as A}from"./chunk-711mmm6g.js";import{p as e}from"./chunk-73012pap.js";import{q as g}from"./chunk-qtm5m25h.js";import{r as M}from"./chunk-f9dz7pb7.js";import{s as u}from"./chunk-xny7jzba.js";import{t as Q}from"./chunk-nw32c9bh.js";import{u as r}from"./chunk-rrjyqwg1.js";import{v as y}from"./chunk-dhc4eg0q.js";import{w as I}from"./chunk-q04740z5.js";import{x as S}from"./chunk-revpkmvm.js";import{y as p}from"./chunk-dwe5gq1m.js";import{z as b}from"./chunk-5w3z8mw0.js";import{A as m}from"./chunk-2pjryskj.js";import{B as s}from"./chunk-hc6xmh5n.js";import{C as T}from"./chunk-ct93q1hh.js";import{D as n}from"./chunk-a9pzfs8d.js";import{E as j}from"./chunk-r9gdr272.js";export{j as createIcon,o as Virgo,e as Venus,l as Uranus,V as Trigone,Q as Taurus,t as Sun,I as Sextile,d as Semisextile,S as Scorpio,m as Saturn,f as Sagittarius,N as Quincunx,M as Quadrature,c as Pluto,s as Pisces,C as Opposition,r as Neptune,x as Moon,P as Mercury,b as Mars,p as Libra,g as Leo,A as Jupiter,T as Gemini,u as Conjunction,i as Capricorn,L as Cancer,a as Ascendant,y as Aries,n as Aquarius};
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, RefAttributes, SVGAttributes } from "react";
|
|
2
|
+
export type IconNodeElement = [
|
|
3
|
+
elementName: string,
|
|
4
|
+
attrs: Record<string, string | number>,
|
|
5
|
+
children?: IconNodeElement[]
|
|
6
|
+
];
|
|
7
|
+
export type IconNode = IconNodeElement[];
|
|
8
|
+
export type IconProps = SVGAttributes<SVGSVGElement> & {
|
|
9
|
+
size?: string | number;
|
|
10
|
+
strokeWidth?: string | number;
|
|
11
|
+
color?: string;
|
|
12
|
+
};
|
|
13
|
+
export type Icon = ForwardRefExoticComponent<IconProps & RefAttributes<SVGSVGElement>>;
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@astroicons/react",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "React components for Astroicons",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/cjs/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist/cjs/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./icon": {
|
|
17
|
+
"types": "./dist/icon/index.d.ts",
|
|
18
|
+
"import": "./dist/icon/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./icons/*": {
|
|
21
|
+
"types": "./dist/icons/*.d.ts",
|
|
22
|
+
"import": "./dist/icons/*.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"generate": "bun run scripts/generate.ts",
|
|
30
|
+
"build": "bun run generate && bun scripts/build.ts && tsc --emitDeclarationOnly"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"react": ">=18.0.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^26.2.0",
|
|
37
|
+
"@types/react": "^19.2.17",
|
|
38
|
+
"@types/react-dom": "^19.2.3",
|
|
39
|
+
"react": "^19.2.7",
|
|
40
|
+
"svgson": "^5.3.1",
|
|
41
|
+
"typescript": "^5.7.0"
|
|
42
|
+
}
|
|
43
|
+
}
|